@zuplo/core 6.63.34 → 6.63.35
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/customer.cli.minified.js +66 -66
- package/index.minified.js +114 -114
- package/package.json +4 -4
package/customer.cli.minified.js
CHANGED
|
@@ -34,61 +34,19 @@ var aGt=Object.create;var _V=Object.defineProperty;var oGt=Object.getOwnProperty
|
|
|
34
34
|
`):f+=y;return f}t(Mrt,"highlight");var Irt=!1,Ort=/\r\n|[\n\r\u2028\u2029]/;function WGt(o,s,f){let d=Object.assign({column:0,line:-1},o.start),y=Object.assign({},d,o.end),{linesAbove:x=2,linesBelow:P=3}=f||{},F=d.line,J=d.column,G=y.line,Se=y.column,de=Math.max(F-(x+1),0),ae=Math.min(s.length,G+P);F===-1&&(de=0),G===-1&&(ae=s.length);let Ke=G-F,$e={};if(Ke)for(let Fe=0;Fe<=Ke;Fe++){let Gt=Fe+F;if(!J)$e[Gt]=!0;else if(Fe===0){let jt=s[Gt-1].length;$e[Gt]=[J,jt-J+1]}else if(Fe===Ke)$e[Gt]=[0,Se];else{let jt=s[Gt-Fe].length;$e[Gt]=[0,jt]}}else J===Se?J?$e[F]=[J,0]:$e[F]=!0:$e[F]=[J,Se-J];return{start:de,end:ae,markerLines:$e}}t(WGt,"getMarkerLines");function jrt(o,s,f={}){let d=f.forceColor||jGt()&&f.highlightCode,y=Lrt(d),x=o.split(Ort),{start:P,end:F,markerLines:J}=WGt(s,x,f),G=s.start&&typeof s.start.column=="number",Se=String(F).length,ae=(d?Mrt(o):o).split(Ort,F).slice(P,F).map((Ke,$e)=>{let Fe=P+1+$e,jt=` ${` ${Fe}`.slice(-Se)} |`,Pr=J[Fe],Fn=!J[Fe+1];if(Pr){let sn="";if(Array.isArray(Pr)){let Un=Ke.slice(0,Math.max(Pr[0]-1,0)).replace(/[^\t]/g," "),Er=Pr[1]||1;sn=[`
|
|
35
35
|
`,y.gutter(jt.replace(/\d/g," "))," ",Un,y.marker("^").repeat(Er)].join(""),Fn&&f.message&&(sn+=" "+y.message(f.message))}return[y.marker(">"),y.gutter(jt),Ke.length>0?` ${Ke}`:"",sn].join("")}else return` ${y.gutter(jt)}${Ke.length>0?` ${Ke}`:""}`}).join(`
|
|
36
36
|
`);return f.message&&!G&&(ae=`${" ".repeat(Se+1)}${f.message}
|
|
37
|
-
${ae}`),d?y.reset(ae):ae}t(jrt,"codeFrameColumns");function qGt(o,s,f,d={}){if(!Irt){Irt=!0;let x="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(x,"DeprecationWarning");else{let P=new Error(x);P.name="DeprecationWarning",console.warn(new Error(x))}}return f=Math.max(f,0),jrt(o,{start:{column:f,line:s}},d)}t(qGt,"index");yV.codeFrameColumns=jrt;yV.default=qGt;yV.highlight=Mrt});var Wrt=or((Wxr,Jrt)=>{"use strict";Jrt.exports=zrt;function zrt(o,s,f){o instanceof RegExp&&(o=Urt(o,f)),s instanceof RegExp&&(s=Urt(s,f));var d=$rt(o,s,f);return d&&{start:d[0],end:d[1],pre:f.slice(0,d[0]),body:f.slice(d[0]+o.length,d[1]),post:f.slice(d[1]+s.length)}}t(zrt,"balanced");function Urt(o,s){var f=s.match(o);return f?f[0]:null}t(Urt,"maybeMatch");zrt.range=$rt;function $rt(o,s,f){var d,y,x,P,F,J=f.indexOf(o),G=f.indexOf(s,J+1),Se=J;if(J>=0&&G>0){if(o===s)return[J,G];for(d=[],x=f.length;Se>=0&&!F;)Se==J?(d.push(Se),J=f.indexOf(o,Se+1)):d.length==1?F=[d.pop(),G]:(y=d.pop(),y<x&&(x=y,P=G),G=f.indexOf(s,Se+1)),Se=J<G&&J>=0?J:G;d.length&&(F=[x,P])}return F}t($rt,"range")});var Zrt=or((Vxr,Xrt)=>{var qrt=Wrt();Xrt.exports=GGt;var Vrt="\0SLASH"+Math.random()+"\0",Hrt="\0OPEN"+Math.random()+"\0",OPe="\0CLOSE"+Math.random()+"\0",Grt="\0COMMA"+Math.random()+"\0",Yrt="\0PERIOD"+Math.random()+"\0";function IPe(o){return parseInt(o,10)==o?parseInt(o,10):o.charCodeAt(0)}t(IPe,"numeric");function VGt(o){return o.split("\\\\").join(Vrt).split("\\{").join(Hrt).split("\\}").join(OPe).split("\\,").join(Grt).split("\\.").join(Yrt)}t(VGt,"escapeBraces");function HGt(o){return o.split(Vrt).join("\\").split(Hrt).join("{").split(OPe).join("}").split(Grt).join(",").split(Yrt).join(".")}t(HGt,"unescapeBraces");function Krt(o){if(!o)return[""];var s=[],f=qrt("{","}",o);if(!f)return o.split(",");var d=f.pre,y=f.body,x=f.post,P=d.split(",");P[P.length-1]+="{"+y+"}";var F=Krt(x);return x.length&&(P[P.length-1]+=F.shift(),P.push.apply(P,F)),s.push.apply(s,P),s}t(Krt,"parseCommaParts");function GGt(o){return o?(o.substr(0,2)==="{}"&&(o="\\{\\}"+o.substr(2)),vV(VGt(o),!0).map(HGt)):[]}t(GGt,"expandTop");function YGt(o){return"{"+o+"}"}t(YGt,"embrace");function KGt(o){return/^-?0\d/.test(o)}t(KGt,"isPadded");function XGt(o,s){return o<=s}t(XGt,"lte");function ZGt(o,s){return o>=s}t(ZGt,"gte");function vV(o,s){var f=[],d=qrt("{","}",o);if(!d)return[o];var y=d.pre,x=d.post.length?vV(d.post,!1):[""];if(/\$$/.test(d.pre))for(var P=0;P<x.length;P++){var F=y+"{"+d.body+"}"+x[P];f.push(F)}else{var J=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(d.body),G=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(d.body),Se=J||G,de=d.body.indexOf(",")>=0;if(!Se&&!de)return d.post.match(/,(?!,).*\}/)?(o=d.pre+"{"+d.body+OPe+d.post,vV(o)):[o];var ae;if(Se)ae=d.body.split(/\.\./);else if(ae=Krt(d.body),ae.length===1&&(ae=vV(ae[0],!1).map(YGt),ae.length===1))return x.map(function(nc){return d.pre+ae[0]+nc});var Ke;if(Se){var $e=IPe(ae[0]),Fe=IPe(ae[1]),Gt=Math.max(ae[0].length,ae[1].length),jt=ae.length==3?Math.abs(IPe(ae[2])):1,Pr=XGt,Fn=Fe<$e;Fn&&(jt*=-1,Pr=ZGt);var sn=ae.some(KGt);Ke=[];for(var Un=$e;Pr(Un,Fe);Un+=jt){var Er;if(G)Er=String.fromCharCode(Un),Er==="\\"&&(Er="");else if(Er=String(Un),sn){var vr=Gt-Er.length;if(vr>0){var ls=new Array(vr+1).join("0");Un<0?Er="-"+ls+Er.slice(1):Er=ls+Er}}Ke.push(Er)}}else{Ke=[];for(var Ni=0;Ni<ae.length;Ni++)Ke.push.apply(Ke,vV(ae[Ni],!1))}for(var Ni=0;Ni<Ke.length;Ni++)for(var P=0;P<x.length;P++){var F=y+Ke[Ni]+x[P];(!s||Se||F)&&f.push(F)}}return f}t(vV,"expand")});var qoe=or(Z9=>{"use strict";Object.defineProperty(Z9,"__esModule",{value:!0});Z9.getDeepKeys=Z9.toJSON=void 0;var XKt=["function","symbol","undefined"],ZKt=["constructor","prototype","__proto__"],QKt=Object.getPrototypeOf({});function eXt(){let o={},s=this;for(let f of Hnt(s))if(typeof f=="string"){let d=s[f],y=typeof d;XKt.includes(y)||(o[f]=d)}return o}t(eXt,"toJSON");Z9.toJSON=eXt;function Hnt(o,s=[]){let f=[];for(;o&&o!==QKt;)f=f.concat(Object.getOwnPropertyNames(o),Object.getOwnPropertySymbols(o)),o=Object.getPrototypeOf(o);let d=new Set(f);for(let y of s.concat(ZKt))d.delete(y);return d}t(Hnt,"getDeepKeys");Z9.getDeepKeys=Hnt});var cAe=or(Q9=>{"use strict";Object.defineProperty(Q9,"__esModule",{value:!0});Q9.addInspectMethod=Q9.format=void 0;var Gnt=_o("util"),tXt=qoe(),Ynt=Gnt.inspect.custom||Symbol.for("nodejs.util.inspect.custom");Q9.format=Gnt.format;function rXt(o){o[Ynt]=nXt}t(rXt,"addInspectMethod");Q9.addInspectMethod=rXt;function nXt(){let o={},s=this;for(let f of tXt.getDeepKeys(s)){let d=s[f];o[f]=d}return delete o[Ynt],o}t(nXt,"inspect")});var Znt=or(Ik=>{"use strict";Object.defineProperty(Ik,"__esModule",{value:!0});Ik.lazyJoinStacks=Ik.joinStacks=Ik.isWritableStack=Ik.isLazyStack=void 0;var iXt=/\r?\n/,sXt=/\bono[ @]/;function aXt(o){return!!(o&&o.configurable&&typeof o.get=="function")}t(aXt,"isLazyStack");Ik.isLazyStack=aXt;function oXt(o){return!!(!o||o.writable||typeof o.set=="function")}t(oXt,"isWritableStack");Ik.isWritableStack=oXt;function Knt(o,s){let f=Xnt(o.stack),d=s?s.stack:void 0;return f&&d?f+`
|
|
38
|
-
|
|
39
|
-
`+d:f||d}t(Knt,"joinStacks");Ik.joinStacks=Knt;function cXt(o,s,f){f?Object.defineProperty(s,"stack",{get:t(()=>{let d=o.get.apply(s);return Knt({stack:d},f)},"get"),enumerable:!1,configurable:!0}):lXt(s,o)}t(cXt,"lazyJoinStacks");Ik.lazyJoinStacks=cXt;function Xnt(o){if(o){let s=o.split(iXt),f;for(let d=0;d<s.length;d++){let y=s[d];if(sXt.test(y))f===void 0&&(f=d);else if(f!==void 0){s.splice(f,d-f);break}}if(s.length>0)return s.join(`
|
|
40
|
-
`)}return o}t(Xnt,"popStack");function lXt(o,s){Object.defineProperty(o,"stack",{get:t(()=>Xnt(s.get.apply(o)),"get"),enumerable:!1,configurable:!0})}t(lXt,"lazyPopStack")});var tit=or(Hoe=>{"use strict";Object.defineProperty(Hoe,"__esModule",{value:!0});Hoe.extendError=void 0;var Qnt=cAe(),Voe=Znt(),eit=qoe(),uXt=["name","message","stack"];function fXt(o,s,f){let d=o;return _Xt(d,s),s&&typeof s=="object"&&pXt(d,s),d.toJSON=eit.toJSON,Qnt.addInspectMethod&&Qnt.addInspectMethod(d),f&&typeof f=="object"&&Object.assign(d,f),d}t(fXt,"extendError");Hoe.extendError=fXt;function _Xt(o,s){let f=Object.getOwnPropertyDescriptor(o,"stack");Voe.isLazyStack(f)?Voe.lazyJoinStacks(f,o,s):Voe.isWritableStack(f)&&(o.stack=Voe.joinStacks(o,s))}t(_Xt,"extendStack");function pXt(o,s){let f=eit.getDeepKeys(s,uXt),d=o,y=s;for(let x of f)if(d[x]===void 0)try{d[x]=y[x]}catch{}}t(pXt,"mergeErrors")});var rit=or(eM=>{"use strict";Object.defineProperty(eM,"__esModule",{value:!0});eM.normalizeArgs=eM.normalizeOptions=void 0;var dXt=cAe();function mXt(o){return o=o||{},{concatMessages:o.concatMessages===void 0?!0:!!o.concatMessages,format:o.format===void 0?dXt.format:typeof o.format=="function"?o.format:!1}}t(mXt,"normalizeOptions");eM.normalizeOptions=mXt;function hXt(o,s){let f,d,y,x="";return typeof o[0]=="string"?y=o:typeof o[1]=="string"?(o[0]instanceof Error?f=o[0]:d=o[0],y=o.slice(1)):(f=o[0],d=o[1],y=o.slice(2)),y.length>0&&(s.format?x=s.format.apply(void 0,y):x=y.join(" ")),s.concatMessages&&f&&f.message&&(x+=(x?`
|
|
41
|
-
`:"")+f.message),{originalError:f,props:d,message:x}}t(hXt,"normalizeArgs");eM.normalizeArgs=hXt});var uAe=or(Yoe=>{"use strict";Object.defineProperty(Yoe,"__esModule",{value:!0});Yoe.Ono=void 0;var Goe=tit(),nit=rit(),gXt=qoe(),yXt=lAe;Yoe.Ono=yXt;function lAe(o,s){s=nit.normalizeOptions(s);function f(...d){let{originalError:y,props:x,message:P}=nit.normalizeArgs(d,s),F=new o(P);return Goe.extendError(F,y,x)}return t(f,"ono"),f[Symbol.species]=o,f}t(lAe,"Ono");lAe.toJSON=t(function(s){return gXt.toJSON.call(s)},"toJSON");lAe.extend=t(function(s,f,d){return d||f instanceof Error?Goe.extendError(s,f,d):f?Goe.extendError(s,void 0,f):Goe.extendError(s)},"extend")});var iit=or(Koe=>{"use strict";Object.defineProperty(Koe,"__esModule",{value:!0});Koe.ono=void 0;var hO=uAe(),vXt=Ok;Koe.ono=vXt;Ok.error=new hO.Ono(Error);Ok.eval=new hO.Ono(EvalError);Ok.range=new hO.Ono(RangeError);Ok.reference=new hO.Ono(ReferenceError);Ok.syntax=new hO.Ono(SyntaxError);Ok.type=new hO.Ono(TypeError);Ok.uri=new hO.Ono(URIError);var bXt=Ok;function Ok(...o){let s=o[0];if(typeof s=="object"&&typeof s.name=="string"){for(let f of Object.values(bXt))if(typeof f=="function"&&f.name==="ono"){let d=f[Symbol.species];if(d&&d!==Error&&(s instanceof d||s.name===d.name))return f.apply(void 0,o)}}return Ok.error.apply(void 0,o)}t(Ok,"ono")});var ait=or(sit=>{"use strict";Object.defineProperty(sit,"__esModule",{value:!0});var KCr=_o("util")});var YN=or((SE,tM)=>{"use strict";var SXt=SE&&SE.__createBinding||(Object.create?function(o,s,f,d){d===void 0&&(d=f),Object.defineProperty(o,d,{enumerable:!0,get:t(function(){return s[f]},"get")})}:function(o,s,f,d){d===void 0&&(d=f),o[d]=s[f]}),TXt=SE&&SE.__exportStar||function(o,s){for(var f in o)f!=="default"&&!s.hasOwnProperty(f)&&SXt(s,o,f)};Object.defineProperty(SE,"__esModule",{value:!0});SE.ono=void 0;var oit=iit();Object.defineProperty(SE,"ono",{enumerable:!0,get:t(function(){return oit.ono},"get")});var xXt=uAe();Object.defineProperty(SE,"Ono",{enumerable:!0,get:t(function(){return xXt.Ono},"get")});TXt(ait(),SE);SE.default=oit.ono;typeof tM=="object"&&typeof tM.exports=="object"&&(tM.exports=Object.assign(tM.exports.default,tM.exports))});var fAe=or(UV=>{"use strict";var EXt=UV&&UV.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(UV,"__esModule",{value:!0});UV.default=CXt;var cit=EXt(_o("path"));function CXt(o){return o.startsWith("\\\\?\\")?o:o.split(cit.default?.win32?.sep).join(cit.default?.posix?.sep??"/")}t(CXt,"convertPathToPosix")});var lit=or(Xoe=>{"use strict";Object.defineProperty(Xoe,"__esModule",{value:!0});Xoe.isWindows=void 0;var kXt=/^win/.test(globalThis.process?globalThis.process.platform:""),wXt=t(()=>kXt,"isWindows");Xoe.isWindows=wXt});var oT=or(Dp=>{"use strict";var DXt=Dp&&Dp.__createBinding||(Object.create?function(o,s,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(s,f);(!y||("get"in y?!s.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return s[f]},"get")}),Object.defineProperty(o,d,y)}:function(o,s,f,d){d===void 0&&(d=f),o[d]=s[f]}),PXt=Dp&&Dp.__setModuleDefault||(Object.create?function(o,s){Object.defineProperty(o,"default",{enumerable:!0,value:s})}:function(o,s){o.default=s}),AXt=Dp&&Dp.__importStar||function(o){if(o&&o.__esModule)return o;var s={};if(o!=null)for(var f in o)f!=="default"&&Object.prototype.hasOwnProperty.call(o,f)&&DXt(s,o,f);return PXt(s,o),s},NXt=Dp&&Dp.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Dp,"__esModule",{value:!0});Dp.parse=void 0;Dp.resolve=uit;Dp.cwd=fit;Dp.getProtocol=hAe;Dp.getExtension=BXt;Dp.stripQuery=_it;Dp.getHash=pit;Dp.stripHash=dAe;Dp.isHttp=UXt;Dp.isFileSystemPath=mAe;Dp.fromFileSystemPath=zXt;Dp.toFileSystemPath=$Xt;Dp.safePointerToPath=JXt;Dp.relative=WXt;var Qoe=NXt(fAe()),pAe=AXt(_o("path")),IXt=/\//g,OXt=/^(\w{2,}):\/\//i,FXt=/~1/g,LXt=/~0/g,RXt=_o("path"),Zoe=lit(),MXt=[[/\?/g,"%3F"],[/#/g,"%23"]],_Ae=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],jXt=t(o=>new URL(o),"parse");Dp.parse=jXt;function uit(o,s){let f=new URL((0,Qoe.default)(o),"resolve://"),d=new URL((0,Qoe.default)(s),f),y=s.match(/(\s*)$/)?.[1]||"";if(d.protocol==="resolve:"){let{pathname:x,search:P,hash:F}=d;return x+P+F+y}return d.toString()+y}t(uit,"resolve");function fit(){if(typeof window<"u")return location.href;let o=process.cwd(),s=o.slice(-1);return s==="/"||s==="\\"?o:o+"/"}t(fit,"cwd");function hAe(o){let s=OXt.exec(o||"");if(s)return s[1].toLowerCase()}t(hAe,"getProtocol");function BXt(o){let s=o.lastIndexOf(".");return s>=0?_it(o.substr(s).toLowerCase()):""}t(BXt,"getExtension");function _it(o){let s=o.indexOf("?");return s>=0&&(o=o.substr(0,s)),o}t(_it,"stripQuery");function pit(o){if(!o)return"#";let s=o.indexOf("#");return s>=0?o.substring(s):"#"}t(pit,"getHash");function dAe(o){if(!o)return"";let s=o.indexOf("#");return s>=0&&(o=o.substring(0,s)),o}t(dAe,"stripHash");function UXt(o){let s=hAe(o);return s==="http"||s==="https"?!0:s===void 0?typeof window<"u":!1}t(UXt,"isHttp");function mAe(o){if(typeof window<"u"||typeof process<"u"&&process.browser)return!1;let s=hAe(o);return s===void 0||s==="file"}t(mAe,"isFileSystemPath");function zXt(o){if((0,Zoe.isWindows)()){let s=fit(),f=o.toUpperCase(),y=(0,Qoe.default)(s).toUpperCase(),x=f.includes(y),P=f.includes(y),F=pAe.win32?.isAbsolute(o)||o.startsWith("http://")||o.startsWith("https://")||o.startsWith("file://");!(x||P||F)&&!s.startsWith("http")&&(o=(0,RXt.join)(s,o)),o=(0,Qoe.default)(o)}o=encodeURI(o);for(let s of MXt)o=o.replace(s[0],s[1]);return o}t(zXt,"fromFileSystemPath");function $Xt(o,s){o=decodeURI(o);for(let d=0;d<_Ae.length;d+=2)o=o.replace(_Ae[d],_Ae[d+1]);let f=o.substr(0,7).toLowerCase()==="file://";return f&&(o=o[7]==="/"?o.substr(8):o.substr(7),(0,Zoe.isWindows)()&&o[1]==="/"&&(o=o[0]+":"+o.substr(1)),s?o="file:///"+o:(f=!1,o=(0,Zoe.isWindows)()?o:"/"+o)),(0,Zoe.isWindows)()&&!f&&(o=o.replace(IXt,"\\"),o.substr(1,2)===":\\"&&(o=o[0].toUpperCase()+o.substr(1))),o}t($Xt,"toFileSystemPath");function JXt(o){return o.length<=1||o[0]!=="#"||o[1]!=="/"?[]:o.slice(2).split("/").map(s=>decodeURIComponent(s).replace(FXt,"/").replace(LXt,"~"))}t(JXt,"safePointerToPath");function WXt(o,s){if(!mAe(o)||!mAe(s))return uit(o,s);let f=pAe.default.dirname(dAe(o)),d=dAe(s);return pAe.default.relative(f,d)+pit(s)}t(WXt,"relative")});var cT=or(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});Zd.InvalidPointerError=Zd.TimeoutError=Zd.MissingPointerError=Zd.UnmatchedResolverError=Zd.ResolverError=Zd.UnmatchedParserError=Zd.ParserError=Zd.JSONParserErrorGroup=Zd.JSONParserError=void 0;Zd.isHandledError=qXt;Zd.normalizeError=VXt;var dit=YN(),EAe=oT(),TE=class extends Error{static{t(this,"JSONParserError")}constructor(s,f){super(),this.code="EUNKNOWN",this.name="JSONParserError",this.message=s,this.source=f,this.path=null,dit.Ono.extend(this)}get footprint(){return`${this.path}+${this.source}+${this.code}+${this.message}`}};Zd.JSONParserError=TE;var ece=class o extends Error{static{t(this,"JSONParserErrorGroup")}constructor(s){super(),this.files=s,this.name="JSONParserErrorGroup",this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${(0,EAe.toFileSystemPath)(s.$refs._root$Ref.path)}'`,dit.Ono.extend(this)}static getParserErrors(s){let f=[];for(let d of Object.values(s.$refs._$refs))d.errors&&f.push(...d.errors);return f}get errors(){return o.getParserErrors(this.files)}};Zd.JSONParserErrorGroup=ece;var gAe=class extends TE{static{t(this,"ParserError")}constructor(s,f){super(`Error parsing ${f}: ${s}`,f),this.code="EPARSER",this.name="ParserError"}};Zd.ParserError=gAe;var yAe=class extends TE{static{t(this,"UnmatchedParserError")}constructor(s){super(`Could not find parser for "${s}"`,s),this.code="EUNMATCHEDPARSER",this.name="UnmatchedParserError"}};Zd.UnmatchedParserError=yAe;var vAe=class extends TE{static{t(this,"ResolverError")}constructor(s,f){super(s.message||`Error reading file "${f}"`,f),this.code="ERESOLVER",this.name="ResolverError","code"in s&&(this.ioErrorCode=String(s.code))}};Zd.ResolverError=vAe;var bAe=class extends TE{static{t(this,"UnmatchedResolverError")}constructor(s){super(`Could not find resolver for "${s}"`,s),this.code="EUNMATCHEDRESOLVER",this.name="UnmatchedResolverError"}};Zd.UnmatchedResolverError=bAe;var SAe=class extends TE{static{t(this,"MissingPointerError")}constructor(s,f){super(`Token "${s}" does not exist.`,(0,EAe.stripHash)(f)),this.code="EUNMATCHEDRESOLVER",this.name="MissingPointerError"}};Zd.MissingPointerError=SAe;var TAe=class extends TE{static{t(this,"TimeoutError")}constructor(s){super(`Dereferencing timeout reached: ${s}ms`),this.code="ETIMEOUT",this.name="TimeoutError"}};Zd.TimeoutError=TAe;var xAe=class extends TE{static{t(this,"InvalidPointerError")}constructor(s,f){super(`Invalid $ref pointer "${s}". Pointers must begin with "#/"`,(0,EAe.stripHash)(f)),this.code="EUNMATCHEDRESOLVER",this.name="InvalidPointerError"}};Zd.InvalidPointerError=xAe;function qXt(o){return o instanceof TE||o instanceof ece}t(qXt,"isHandledError");function VXt(o){return o.path===null&&(o.path=[]),o}t(VXt,"normalizeError")});var zV=or(xE=>{"use strict";var HXt=xE&&xE.__createBinding||(Object.create?function(o,s,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(s,f);(!y||("get"in y?!s.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return s[f]},"get")}),Object.defineProperty(o,d,y)}:function(o,s,f,d){d===void 0&&(d=f),o[d]=s[f]}),GXt=xE&&xE.__setModuleDefault||(Object.create?function(o,s){Object.defineProperty(o,"default",{enumerable:!0,value:s})}:function(o,s){o.default=s}),YXt=xE&&xE.__importStar||function(o){if(o&&o.__esModule)return o;var s={};if(o!=null)for(var f in o)f!=="default"&&Object.prototype.hasOwnProperty.call(o,f)&&HXt(s,o,f);return GXt(s,o),s},KXt=xE&&xE.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(xE,"__esModule",{value:!0});var CAe=KXt(rM()),kAe=YXt(oT()),rce=cT(),XXt=/\//g,ZXt=/~/g,QXt=/~1/g,eZt=/~0/g,tZt=t(o=>{try{return decodeURIComponent(o)}catch{return o}},"safeDecodeURIComponent"),nce=class o{static{t(this,"Pointer")}constructor(s,f,d){this.$ref=s,this.path=f,this.originalPath=d||f,this.value=void 0,this.circular=!1,this.indirections=0}resolve(s,f,d){let y=o.parse(this.path,this.originalPath);this.value=hit(s);for(let x=0;x<y.length;x++){if(tce(this,f,d)&&(this.path=o.join(this.path,y.slice(x))),typeof this.value=="object"&&this.value!==null&&!git(d)&&"$ref"in this.value)return this;let P=y[x];if(this.value[P]===void 0||this.value[P]===null&&x===y.length-1){let F=!1;for(let J=y.length-1;J>x;J--){let G=y.slice(x,J+1).join("/");if(this.value[G]!==void 0){this.value=this.value[G],x=J,F=!0;break}}if(F)continue;throw this.value=null,new rce.MissingPointerError(P,decodeURI(this.originalPath))}else this.value=this.value[P]}return(!this.value||this.value.$ref&&kAe.resolve(this.path,this.value.$ref)!==d)&&tce(this,f,d),this}set(s,f,d){let y=o.parse(this.path),x;if(y.length===0)return this.value=f,f;this.value=hit(s);for(let P=0;P<y.length-1;P++)tce(this,d),x=y[P],this.value&&this.value[x]!==void 0?this.value=this.value[x]:this.value=mit(this,x,{});return tce(this,d),x=y[y.length-1],mit(this,x,f),s}static parse(s,f){let d=kAe.getHash(s).substring(1);if(!d)return[];let y=d.split("/");for(let x=0;x<y.length;x++)y[x]=tZt(y[x].replace(QXt,"/").replace(eZt,"~"));if(y[0]!=="")throw new rce.InvalidPointerError(y,f===void 0?s:f);return y.slice(1)}static join(s,f){s.indexOf("#")===-1&&(s+="#"),f=Array.isArray(f)?f:[f];for(let d=0;d<f.length;d++){let y=f[d];s+="/"+encodeURIComponent(y.replace(ZXt,"~0").replace(XXt,"~1"))}return s}};function tce(o,s,f){if(CAe.default.isAllowed$Ref(o.value,s)){let d=kAe.resolve(o.path,o.value.$ref);if(d===o.path&&!git(f))o.circular=!0;else{let y=o.$ref.$refs._resolve(d,o.path,s);return y===null?!1:(o.indirections+=y.indirections+1,CAe.default.isExtended$Ref(o.value)?(o.value=CAe.default.dereference(o.value,y.value),!1):(o.$ref=y.$ref,o.path=y.path,o.value=y.value,!0))}}}t(tce,"resolveIf$Ref");xE.default=nce;function mit(o,s,f){if(o.value&&typeof o.value=="object")s==="-"&&Array.isArray(o.value)?o.value.push(f):o.value[s]=f;else throw new rce.JSONParserError(`Error assigning $ref pointer "${o.path}".
|
|
42
|
-
Cannot set "${s}" of a non-object.`);return f}t(mit,"setValue");function hit(o){if((0,rce.isHandledError)(o))throw o;return o}t(hit,"unwrapOrThrow");function git(o){return typeof o=="string"&&nce.parse(o).length==0}t(git,"isRootPath")});var rM=or($V=>{"use strict";var rZt=$V&&$V.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty($V,"__esModule",{value:!0});var yit=rZt(zV()),ice=cT(),wAe=oT(),DAe=class o{static{t(this,"$Ref")}constructor(s){this.errors=[],this.$refs=s}addError(s){this.errors===void 0&&(this.errors=[]);let f=this.errors.map(({footprint:d})=>d);"errors"in s&&Array.isArray(s.errors)?this.errors.push(...s.errors.map(ice.normalizeError).filter(({footprint:d})=>!f.includes(d))):(!("footprint"in s)||!f.includes(s.footprint))&&this.errors.push((0,ice.normalizeError)(s))}exists(s,f){try{return this.resolve(s,f),!0}catch{return!1}}get(s,f){return this.resolve(s,f)?.value}resolve(s,f,d,y){let x=new yit.default(this,s,d);try{return x.resolve(this.value,f,y)}catch(P){if(!f||!f.continueOnError||!(0,ice.isHandledError)(P))throw P;return P.path===null&&(P.path=(0,wAe.safePointerToPath)((0,wAe.getHash)(y))),P instanceof ice.InvalidPointerError&&(P.source=decodeURI((0,wAe.stripHash)(y))),this.addError(P),null}}set(s,f){let d=new yit.default(this,s);this.value=d.set(this.value,f)}static is$Ref(s){return!!s&&typeof s=="object"&&s!==null&&"$ref"in s&&typeof s.$ref=="string"&&s.$ref.length>0}static isExternal$Ref(s){return o.is$Ref(s)&&s.$ref[0]!=="#"}static isAllowed$Ref(s,f){if(this.is$Ref(s)){if(s.$ref.substring(0,2)==="#/"||s.$ref==="#")return!0;if(s.$ref[0]!=="#"&&(!f||f.resolve?.external))return!0}}static isExtended$Ref(s){return o.is$Ref(s)&&Object.keys(s).length>1}static dereference(s,f){if(f&&typeof f=="object"&&o.isExtended$Ref(s)){let d={};for(let y of Object.keys(s))y!=="$ref"&&(d[y]=s[y]);for(let y of Object.keys(f))y in d||(d[y]=f[y]);return d}else return f}};$V.default=DAe});var xit=or(EE=>{"use strict";var nZt=EE&&EE.__createBinding||(Object.create?function(o,s,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(s,f);(!y||("get"in y?!s.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return s[f]},"get")}),Object.defineProperty(o,d,y)}:function(o,s,f,d){d===void 0&&(d=f),o[d]=s[f]}),iZt=EE&&EE.__setModuleDefault||(Object.create?function(o,s){Object.defineProperty(o,"default",{enumerable:!0,value:s})}:function(o,s){o.default=s}),sZt=EE&&EE.__importStar||function(o){if(o&&o.__esModule)return o;var s={};if(o!=null)for(var f in o)f!=="default"&&Object.prototype.hasOwnProperty.call(o,f)&&nZt(s,o,f);return iZt(s,o),s},Tit=EE&&EE.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(EE,"__esModule",{value:!0});var vit=YN(),aZt=Tit(rM()),KN=sZt(oT()),bit=Tit(fAe()),PAe=class{static{t(this,"$Refs")}paths(...s){return Sit(this._$refs,s.flat()).map(d=>(0,bit.default)(d.decoded))}values(...s){let f=this._$refs;return Sit(f,s.flat()).reduce((y,x)=>(y[(0,bit.default)(x.decoded)]=f[x.encoded].value,y),{})}exists(s,f){try{return this._resolve(s,"",f),!0}catch{return!1}}get(s,f){return this._resolve(s,"",f).value}set(s,f){let d=KN.resolve(this._root$Ref.path,s),y=KN.stripHash(d),x=this._$refs[y];if(!x)throw(0,vit.ono)(`Error resolving $ref pointer "${s}".
|
|
43
|
-
"${y}" not found.`);x.set(d,f)}_get$Ref(s){s=KN.resolve(this._root$Ref.path,s);let f=KN.stripHash(s);return this._$refs[f]}_add(s){let f=KN.stripHash(s),d=new aZt.default(this);return d.path=f,this._$refs[f]=d,this._root$Ref=this._root$Ref||d,d}_resolve(s,f,d){let y=KN.resolve(this._root$Ref.path,s),x=KN.stripHash(y),P=this._$refs[x];if(!P)throw(0,vit.ono)(`Error resolving $ref pointer "${s}".
|
|
44
|
-
"${x}" not found.`);return P.resolve(y,d,s,f)}constructor(){this._$refs={},this.toJSON=this.values,this.circular=!1,this._$refs={},this._root$Ref=null}};EE.default=PAe;function Sit(o,s){let f=Object.keys(o);return s=Array.isArray(s[0])?s[0]:Array.prototype.slice.call(s),s.length>0&&s[0]&&(f=f.filter(d=>s.includes(o[d].pathType))),f.map(d=>({encoded:d,decoded:o[d].pathType==="file"?KN.toFileSystemPath(d,!0):d}))}t(Sit,"getPaths")});var Cit=or(nM=>{"use strict";Object.defineProperty(nM,"__esModule",{value:!0});nM.all=oZt;nM.filter=cZt;nM.sort=lZt;nM.run=uZt;function oZt(o){return Object.keys(o||{}).filter(s=>typeof o[s]=="object").map(s=>(o[s].name=s,o[s]))}t(oZt,"all");function cZt(o,s,f){return o.filter(d=>!!Eit(d,s,f))}t(cZt,"filter");function lZt(o){for(let s of o)s.order=s.order||Number.MAX_SAFE_INTEGER;return o.sort((s,f)=>s.order-f.order)}t(lZt,"sort");async function uZt(o,s,f,d){let y,x,P=0;return new Promise((F,J)=>{G();function G(){if(y=o[P++],!y)return J(x);try{let Ke=Eit(y,s,f,Se,d);if(Ke&&typeof Ke.then=="function")Ke.then(de,ae);else if(Ke!==void 0)de(Ke);else if(P===o.length)throw new Error("No promise has been returned or callback has been called.")}catch(Ke){ae(Ke)}}t(G,"runNextPlugin");function Se(Ke,$e){Ke?ae(Ke):de($e)}t(Se,"callback");function de(Ke){F({plugin:y,result:Ke})}t(de,"onSuccess");function ae(Ke){x={plugin:y,error:Ke},G()}t(ae,"onError")})}t(uZt,"run");function Eit(o,s,f,d,y){let x=o[s];if(typeof x=="function")return x.apply(o,[f,d,y]);if(!d){if(x instanceof RegExp)return x.test(f.url);if(typeof x=="string")return x===f.extension;if(Array.isArray(x))return x.indexOf(f.extension)!==-1}return x}t(Eit,"getResult")});var NAe=or(UP=>{"use strict";var fZt=UP&&UP.__createBinding||(Object.create?function(o,s,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(s,f);(!y||("get"in y?!s.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return s[f]},"get")}),Object.defineProperty(o,d,y)}:function(o,s,f,d){d===void 0&&(d=f),o[d]=s[f]}),_Zt=UP&&UP.__setModuleDefault||(Object.create?function(o,s){Object.defineProperty(o,"default",{enumerable:!0,value:s})}:function(o,s){o.default=s}),kit=UP&&UP.__importStar||function(o){if(o&&o.__esModule)return o;var s={};if(o!=null)for(var f in o)f!=="default"&&Object.prototype.hasOwnProperty.call(o,f)&&fZt(s,o,f);return _Zt(s,o),s};Object.defineProperty(UP,"__esModule",{value:!0});var AAe=YN(),pZt=kit(oT()),XN=kit(Cit()),gO=cT();async function dZt(o,s,f){let d=o.indexOf("#"),y="";d>=0&&(y=o.substring(d),o=o.substring(0,d));let x=s._add(o),P={url:o,hash:y,extension:pZt.getExtension(o)};try{let F=await mZt(P,f,s);x.pathType=F.plugin.name,P.data=F.result;let J=await hZt(P,f,s);return x.value=J.result,J.result}catch(F){throw(0,gO.isHandledError)(F)&&(x.value=F),F}}t(dZt,"parse");async function mZt(o,s,f){let d=XN.all(s.resolve);d=XN.filter(d,"canRead",o),XN.sort(d);try{return await XN.run(d,"read",o,f)}catch(y){throw!y&&s.continueOnError?new gO.UnmatchedResolverError(o.url):!y||!("error"in y)?AAe.ono.syntax(`Unable to resolve $ref pointer "${o.url}"`):y.error instanceof gO.ResolverError?y.error:new gO.ResolverError(y,o.url)}}t(mZt,"readFile");async function hZt(o,s,f){let d=XN.all(s.parse),y=XN.filter(d,"canParse",o),x=y.length>0?y:d;XN.sort(x);try{let P=await XN.run(x,"parse",o,f);if(!P.plugin.allowEmpty&&gZt(P.result))throw AAe.ono.syntax(`Error parsing "${o.url}" as ${P.plugin.name}.
|
|
45
|
-
Parsed value is empty`);return P}catch(P){throw!P&&s.continueOnError?new gO.UnmatchedParserError(o.url):P&&P.message&&P.message.startsWith("Error parsing")?P:!P||!("error"in P)?AAe.ono.syntax(`Unable to parse ${o.url}`):P.error instanceof gO.ParserError?P.error:new gO.ParserError(P.error.message,o.url)}}t(hZt,"parseFile");function gZt(o){return o===void 0||typeof o=="object"&&Object.keys(o).length===0||typeof o=="string"&&o.trim().length===0||Buffer.isBuffer(o)&&o.length===0}t(gZt,"isEmpty");UP.default=dZt});var Dit=or(IAe=>{"use strict";Object.defineProperty(IAe,"__esModule",{value:!0});var wit=cT();IAe.default={order:100,allowEmpty:!0,canParse:".json",allowBOM:!0,async parse(o){let s=o.data;if(Buffer.isBuffer(s)&&(s=s.toString()),typeof s=="string"){if(s.trim().length===0)return;try{return JSON.parse(s)}catch(f){if(this.allowBOM)try{let d=s.indexOf("{");return s=s.slice(d),JSON.parse(s)}catch(d){throw new wit.ParserError(d.message,o.url)}throw new wit.ParserError(f.message,o.url)}}else return s}}});var iM=or((ykr,yO)=>{"use strict";function Pit(o){return typeof o>"u"||o===null}t(Pit,"isNothing");function yZt(o){return typeof o=="object"&&o!==null}t(yZt,"isObject");function vZt(o){return Array.isArray(o)?o:Pit(o)?[]:[o]}t(vZt,"toArray");function bZt(o,s){var f,d,y,x;if(s)for(x=Object.keys(s),f=0,d=x.length;f<d;f+=1)y=x[f],o[y]=s[y];return o}t(bZt,"extend");function SZt(o,s){var f="",d;for(d=0;d<s;d+=1)f+=o;return f}t(SZt,"repeat");function TZt(o){return o===0&&Number.NEGATIVE_INFINITY===1/o}t(TZt,"isNegativeZero");yO.exports.isNothing=Pit;yO.exports.isObject=yZt;yO.exports.toArray=vZt;yO.exports.repeat=SZt;yO.exports.isNegativeZero=TZt;yO.exports.extend=bZt});var sM=or((bkr,Nit)=>{"use strict";function Ait(o,s){var f="",d=o.reason||"(unknown reason)";return o.mark?(o.mark.name&&(f+='in "'+o.mark.name+'" '),f+="("+(o.mark.line+1)+":"+(o.mark.column+1)+")",!s&&o.mark.snippet&&(f+=`
|
|
46
|
-
|
|
47
|
-
`+o.mark.snippet),d+" "+f):d}t(Ait,"formatError");function JV(o,s){Error.call(this),this.name="YAMLException",this.reason=o,this.mark=s,this.message=Ait(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}t(JV,"YAMLException");JV.prototype=Object.create(Error.prototype);JV.prototype.constructor=JV;JV.prototype.toString=t(function(s){return this.name+": "+Ait(this,s)},"toString");Nit.exports=JV});var Oit=or((Tkr,Iit)=>{"use strict";var WV=iM();function OAe(o,s,f,d,y){var x="",P="",F=Math.floor(y/2)-1;return d-s>F&&(x=" ... ",s=d-F+x.length),f-d>F&&(P=" ...",f=d+F-P.length),{str:x+o.slice(s,f).replace(/\t/g,"\u2192")+P,pos:d-s+x.length}}t(OAe,"getLine");function FAe(o,s){return WV.repeat(" ",s-o.length)+o}t(FAe,"padStart");function xZt(o,s){if(s=Object.create(s||null),!o.buffer)return null;s.maxLength||(s.maxLength=79),typeof s.indent!="number"&&(s.indent=1),typeof s.linesBefore!="number"&&(s.linesBefore=3),typeof s.linesAfter!="number"&&(s.linesAfter=2);for(var f=/\r?\n|\r|\0/g,d=[0],y=[],x,P=-1;x=f.exec(o.buffer);)y.push(x.index),d.push(x.index+x[0].length),o.position<=x.index&&P<0&&(P=d.length-2);P<0&&(P=d.length-1);var F="",J,G,Se=Math.min(o.line+s.linesAfter,y.length).toString().length,de=s.maxLength-(s.indent+Se+3);for(J=1;J<=s.linesBefore&&!(P-J<0);J++)G=OAe(o.buffer,d[P-J],y[P-J],o.position-(d[P]-d[P-J]),de),F=WV.repeat(" ",s.indent)+FAe((o.line-J+1).toString(),Se)+" | "+G.str+`
|
|
48
|
-
`+F;for(G=OAe(o.buffer,d[P],y[P],o.position,de),F+=WV.repeat(" ",s.indent)+FAe((o.line+1).toString(),Se)+" | "+G.str+`
|
|
49
|
-
`,F+=WV.repeat("-",s.indent+Se+3+G.pos)+`^
|
|
50
|
-
`,J=1;J<=s.linesAfter&&!(P+J>=y.length);J++)G=OAe(o.buffer,d[P+J],y[P+J],o.position-(d[P]-d[P+J]),de),F+=WV.repeat(" ",s.indent)+FAe((o.line+J+1).toString(),Se)+" | "+G.str+`
|
|
51
|
-
`;return F.replace(/\n$/,"")}t(xZt,"makeSnippet");Iit.exports=xZt});var ky=or((Ekr,Lit)=>{"use strict";var Fit=sM(),EZt=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],CZt=["scalar","sequence","mapping"];function kZt(o){var s={};return o!==null&&Object.keys(o).forEach(function(f){o[f].forEach(function(d){s[String(d)]=f})}),s}t(kZt,"compileStyleAliases");function wZt(o,s){if(s=s||{},Object.keys(s).forEach(function(f){if(EZt.indexOf(f)===-1)throw new Fit('Unknown option "'+f+'" is met in definition of "'+o+'" YAML type.')}),this.options=s,this.tag=o,this.kind=s.kind||null,this.resolve=s.resolve||function(){return!0},this.construct=s.construct||function(f){return f},this.instanceOf=s.instanceOf||null,this.predicate=s.predicate||null,this.represent=s.represent||null,this.representName=s.representName||null,this.defaultStyle=s.defaultStyle||null,this.multi=s.multi||!1,this.styleAliases=kZt(s.styleAliases||null),CZt.indexOf(this.kind)===-1)throw new Fit('Unknown kind "'+this.kind+'" is specified for "'+o+'" YAML type.')}t(wZt,"Type");Lit.exports=wZt});var MAe=or((kkr,Mit)=>{"use strict";var qV=sM(),LAe=ky();function Rit(o,s){var f=[];return o[s].forEach(function(d){var y=f.length;f.forEach(function(x,P){x.tag===d.tag&&x.kind===d.kind&&x.multi===d.multi&&(y=P)}),f[y]=d}),f}t(Rit,"compileList");function DZt(){var o={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},s,f;function d(y){y.multi?(o.multi[y.kind].push(y),o.multi.fallback.push(y)):o[y.kind][y.tag]=o.fallback[y.tag]=y}for(t(d,"collectType"),s=0,f=arguments.length;s<f;s+=1)arguments[s].forEach(d);return o}t(DZt,"compileMap");function RAe(o){return this.extend(o)}t(RAe,"Schema");RAe.prototype.extend=t(function(s){var f=[],d=[];if(s instanceof LAe)d.push(s);else if(Array.isArray(s))d=d.concat(s);else if(s&&(Array.isArray(s.implicit)||Array.isArray(s.explicit)))s.implicit&&(f=f.concat(s.implicit)),s.explicit&&(d=d.concat(s.explicit));else throw new qV("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");f.forEach(function(x){if(!(x instanceof LAe))throw new qV("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(x.loadKind&&x.loadKind!=="scalar")throw new qV("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(x.multi)throw new qV("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),d.forEach(function(x){if(!(x instanceof LAe))throw new qV("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var y=Object.create(RAe.prototype);return y.implicit=(this.implicit||[]).concat(f),y.explicit=(this.explicit||[]).concat(d),y.compiledImplicit=Rit(y,"implicit"),y.compiledExplicit=Rit(y,"explicit"),y.compiledTypeMap=DZt(y.compiledImplicit,y.compiledExplicit),y},"extend");Mit.exports=RAe});var jAe=or((Dkr,jit)=>{"use strict";var PZt=ky();jit.exports=new PZt("tag:yaml.org,2002:str",{kind:"scalar",construct:t(function(o){return o!==null?o:""},"construct")})});var BAe=or((Akr,Bit)=>{"use strict";var AZt=ky();Bit.exports=new AZt("tag:yaml.org,2002:seq",{kind:"sequence",construct:t(function(o){return o!==null?o:[]},"construct")})});var UAe=or((Ikr,Uit)=>{"use strict";var NZt=ky();Uit.exports=new NZt("tag:yaml.org,2002:map",{kind:"mapping",construct:t(function(o){return o!==null?o:{}},"construct")})});var zAe=or((Fkr,zit)=>{"use strict";var IZt=MAe();zit.exports=new IZt({explicit:[jAe(),BAe(),UAe()]})});var $Ae=or((Lkr,$it)=>{"use strict";var OZt=ky();function FZt(o){if(o===null)return!0;var s=o.length;return s===1&&o==="~"||s===4&&(o==="null"||o==="Null"||o==="NULL")}t(FZt,"resolveYamlNull");function LZt(){return null}t(LZt,"constructYamlNull");function RZt(o){return o===null}t(RZt,"isNull");$it.exports=new OZt("tag:yaml.org,2002:null",{kind:"scalar",resolve:FZt,construct:LZt,predicate:RZt,represent:{canonical:t(function(){return"~"},"canonical"),lowercase:t(function(){return"null"},"lowercase"),uppercase:t(function(){return"NULL"},"uppercase"),camelcase:t(function(){return"Null"},"camelcase"),empty:t(function(){return""},"empty")},defaultStyle:"lowercase"})});var JAe=or((Mkr,Jit)=>{"use strict";var MZt=ky();function jZt(o){if(o===null)return!1;var s=o.length;return s===4&&(o==="true"||o==="True"||o==="TRUE")||s===5&&(o==="false"||o==="False"||o==="FALSE")}t(jZt,"resolveYamlBoolean");function BZt(o){return o==="true"||o==="True"||o==="TRUE"}t(BZt,"constructYamlBoolean");function UZt(o){return Object.prototype.toString.call(o)==="[object Boolean]"}t(UZt,"isBoolean");Jit.exports=new MZt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:jZt,construct:BZt,predicate:UZt,represent:{lowercase:t(function(o){return o?"true":"false"},"lowercase"),uppercase:t(function(o){return o?"TRUE":"FALSE"},"uppercase"),camelcase:t(function(o){return o?"True":"False"},"camelcase")},defaultStyle:"lowercase"})});var WAe=or((Bkr,Wit)=>{"use strict";var zZt=iM(),$Zt=ky();function JZt(o){return 48<=o&&o<=57||65<=o&&o<=70||97<=o&&o<=102}t(JZt,"isHexCode");function WZt(o){return 48<=o&&o<=55}t(WZt,"isOctCode");function qZt(o){return 48<=o&&o<=57}t(qZt,"isDecCode");function VZt(o){if(o===null)return!1;var s=o.length,f=0,d=!1,y;if(!s)return!1;if(y=o[f],(y==="-"||y==="+")&&(y=o[++f]),y==="0"){if(f+1===s)return!0;if(y=o[++f],y==="b"){for(f++;f<s;f++)if(y=o[f],y!=="_"){if(y!=="0"&&y!=="1")return!1;d=!0}return d&&y!=="_"}if(y==="x"){for(f++;f<s;f++)if(y=o[f],y!=="_"){if(!JZt(o.charCodeAt(f)))return!1;d=!0}return d&&y!=="_"}if(y==="o"){for(f++;f<s;f++)if(y=o[f],y!=="_"){if(!WZt(o.charCodeAt(f)))return!1;d=!0}return d&&y!=="_"}}if(y==="_")return!1;for(;f<s;f++)if(y=o[f],y!=="_"){if(!qZt(o.charCodeAt(f)))return!1;d=!0}return!(!d||y==="_")}t(VZt,"resolveYamlInteger");function HZt(o){var s=o,f=1,d;if(s.indexOf("_")!==-1&&(s=s.replace(/_/g,"")),d=s[0],(d==="-"||d==="+")&&(d==="-"&&(f=-1),s=s.slice(1),d=s[0]),s==="0")return 0;if(d==="0"){if(s[1]==="b")return f*parseInt(s.slice(2),2);if(s[1]==="x")return f*parseInt(s.slice(2),16);if(s[1]==="o")return f*parseInt(s.slice(2),8)}return f*parseInt(s,10)}t(HZt,"constructYamlInteger");function GZt(o){return Object.prototype.toString.call(o)==="[object Number]"&&o%1===0&&!zZt.isNegativeZero(o)}t(GZt,"isInteger");Wit.exports=new $Zt("tag:yaml.org,2002:int",{kind:"scalar",resolve:VZt,construct:HZt,predicate:GZt,represent:{binary:t(function(o){return o>=0?"0b"+o.toString(2):"-0b"+o.toString(2).slice(1)},"binary"),octal:t(function(o){return o>=0?"0o"+o.toString(8):"-0o"+o.toString(8).slice(1)},"octal"),decimal:t(function(o){return o.toString(10)},"decimal"),hexadecimal:t(function(o){return o>=0?"0x"+o.toString(16).toUpperCase():"-0x"+o.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var qAe=or((zkr,Vit)=>{"use strict";var qit=iM(),YZt=ky(),KZt=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function XZt(o){return!(o===null||!KZt.test(o)||o[o.length-1]==="_")}t(XZt,"resolveYamlFloat");function ZZt(o){var s,f;return s=o.replace(/_/g,"").toLowerCase(),f=s[0]==="-"?-1:1,"+-".indexOf(s[0])>=0&&(s=s.slice(1)),s===".inf"?f===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:s===".nan"?NaN:f*parseFloat(s,10)}t(ZZt,"constructYamlFloat");var QZt=/^[-+]?[0-9]+e/;function eQt(o,s){var f;if(isNaN(o))switch(s){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===o)switch(s){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===o)switch(s){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(qit.isNegativeZero(o))return"-0.0";return f=o.toString(10),QZt.test(f)?f.replace("e",".e"):f}t(eQt,"representYamlFloat");function tQt(o){return Object.prototype.toString.call(o)==="[object Number]"&&(o%1!==0||qit.isNegativeZero(o))}t(tQt,"isFloat");Vit.exports=new YZt("tag:yaml.org,2002:float",{kind:"scalar",resolve:XZt,construct:ZZt,predicate:tQt,represent:eQt,defaultStyle:"lowercase"})});var VAe=or((Jkr,Hit)=>{"use strict";Hit.exports=zAe().extend({implicit:[$Ae(),JAe(),WAe(),qAe()]})});var HAe=or((Wkr,Git)=>{"use strict";Git.exports=VAe()});var GAe=or((qkr,Xit)=>{"use strict";var rQt=ky(),Yit=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Kit=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 nQt(o){return o===null?!1:Yit.exec(o)!==null||Kit.exec(o)!==null}t(nQt,"resolveYamlTimestamp");function iQt(o){var s,f,d,y,x,P,F,J=0,G=null,Se,de,ae;if(s=Yit.exec(o),s===null&&(s=Kit.exec(o)),s===null)throw new Error("Date resolve error");if(f=+s[1],d=+s[2]-1,y=+s[3],!s[4])return new Date(Date.UTC(f,d,y));if(x=+s[4],P=+s[5],F=+s[6],s[7]){for(J=s[7].slice(0,3);J.length<3;)J+="0";J=+J}return s[9]&&(Se=+s[10],de=+(s[11]||0),G=(Se*60+de)*6e4,s[9]==="-"&&(G=-G)),ae=new Date(Date.UTC(f,d,y,x,P,F,J)),G&&ae.setTime(ae.getTime()-G),ae}t(iQt,"constructYamlTimestamp");function sQt(o){return o.toISOString()}t(sQt,"representYamlTimestamp");Xit.exports=new rQt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:nQt,construct:iQt,instanceOf:Date,represent:sQt})});var YAe=or((Hkr,Zit)=>{"use strict";var aQt=ky();function oQt(o){return o==="<<"||o===null}t(oQt,"resolveYamlMerge");Zit.exports=new aQt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:oQt})});var XAe=or((Ykr,Qit)=>{"use strict";var cQt=ky(),KAe=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
52
|
-
\r`;function lQt(o){if(o===null)return!1;var s,f,d=0,y=o.length,x=KAe;for(f=0;f<y;f++)if(s=x.indexOf(o.charAt(f)),!(s>64)){if(s<0)return!1;d+=6}return d%8===0}t(lQt,"resolveYamlBinary");function uQt(o){var s,f,d=o.replace(/[\r\n=]/g,""),y=d.length,x=KAe,P=0,F=[];for(s=0;s<y;s++)s%4===0&&s&&(F.push(P>>16&255),F.push(P>>8&255),F.push(P&255)),P=P<<6|x.indexOf(d.charAt(s));return f=y%4*6,f===0?(F.push(P>>16&255),F.push(P>>8&255),F.push(P&255)):f===18?(F.push(P>>10&255),F.push(P>>2&255)):f===12&&F.push(P>>4&255),new Uint8Array(F)}t(uQt,"constructYamlBinary");function fQt(o){var s="",f=0,d,y,x=o.length,P=KAe;for(d=0;d<x;d++)d%3===0&&d&&(s+=P[f>>18&63],s+=P[f>>12&63],s+=P[f>>6&63],s+=P[f&63]),f=(f<<8)+o[d];return y=x%3,y===0?(s+=P[f>>18&63],s+=P[f>>12&63],s+=P[f>>6&63],s+=P[f&63]):y===2?(s+=P[f>>10&63],s+=P[f>>4&63],s+=P[f<<2&63],s+=P[64]):y===1&&(s+=P[f>>2&63],s+=P[f<<4&63],s+=P[64],s+=P[64]),s}t(fQt,"representYamlBinary");function _Qt(o){return Object.prototype.toString.call(o)==="[object Uint8Array]"}t(_Qt,"isBinary");Qit.exports=new cQt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:lQt,construct:uQt,predicate:_Qt,represent:fQt})});var ZAe=or((Xkr,est)=>{"use strict";var pQt=ky(),dQt=Object.prototype.hasOwnProperty,mQt=Object.prototype.toString;function hQt(o){if(o===null)return!0;var s=[],f,d,y,x,P,F=o;for(f=0,d=F.length;f<d;f+=1){if(y=F[f],P=!1,mQt.call(y)!=="[object Object]")return!1;for(x in y)if(dQt.call(y,x))if(!P)P=!0;else return!1;if(!P)return!1;if(s.indexOf(x)===-1)s.push(x);else return!1}return!0}t(hQt,"resolveYamlOmap");function gQt(o){return o!==null?o:[]}t(gQt,"constructYamlOmap");est.exports=new pQt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:hQt,construct:gQt})});var QAe=or((Qkr,tst)=>{"use strict";var yQt=ky(),vQt=Object.prototype.toString;function bQt(o){if(o===null)return!0;var s,f,d,y,x,P=o;for(x=new Array(P.length),s=0,f=P.length;s<f;s+=1){if(d=P[s],vQt.call(d)!=="[object Object]"||(y=Object.keys(d),y.length!==1))return!1;x[s]=[y[0],d[y[0]]]}return!0}t(bQt,"resolveYamlPairs");function SQt(o){if(o===null)return[];var s,f,d,y,x,P=o;for(x=new Array(P.length),s=0,f=P.length;s<f;s+=1)d=P[s],y=Object.keys(d),x[s]=[y[0],d[y[0]]];return x}t(SQt,"constructYamlPairs");tst.exports=new yQt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:bQt,construct:SQt})});var e6e=or((twr,rst)=>{"use strict";var TQt=ky(),xQt=Object.prototype.hasOwnProperty;function EQt(o){if(o===null)return!0;var s,f=o;for(s in f)if(xQt.call(f,s)&&f[s]!==null)return!1;return!0}t(EQt,"resolveYamlSet");function CQt(o){return o!==null?o:{}}t(CQt,"constructYamlSet");rst.exports=new TQt("tag:yaml.org,2002:set",{kind:"mapping",resolve:EQt,construct:CQt})});var sce=or((nwr,nst)=>{"use strict";nst.exports=HAe().extend({implicit:[GAe(),YAe()],explicit:[XAe(),ZAe(),QAe(),e6e()]})});var vst=or((iwr,i6e)=>{"use strict";var bO=iM(),ust=sM(),kQt=Oit(),wQt=sce(),QN=Object.prototype.hasOwnProperty,ace=1,fst=2,_st=3,oce=4,t6e=1,DQt=2,ist=3,PQt=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,AQt=/[\x85\u2028\u2029]/,NQt=/[,\[\]\{\}]/,pst=/^(?:!|!!|![a-z\-]+!)$/i,dst=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function sst(o){return Object.prototype.toString.call(o)}t(sst,"_class");function Fk(o){return o===10||o===13}t(Fk,"is_EOL");function SO(o){return o===9||o===32}t(SO,"is_WHITE_SPACE");function Gv(o){return o===9||o===32||o===10||o===13}t(Gv,"is_WS_OR_EOL");function aM(o){return o===44||o===91||o===93||o===123||o===125}t(aM,"is_FLOW_INDICATOR");function IQt(o){var s;return 48<=o&&o<=57?o-48:(s=o|32,97<=s&&s<=102?s-97+10:-1)}t(IQt,"fromHexCode");function OQt(o){return o===120?2:o===117?4:o===85?8:0}t(OQt,"escapedHexLen");function FQt(o){return 48<=o&&o<=57?o-48:-1}t(FQt,"fromDecimalCode");function ast(o){return o===48?"\0":o===97?"\x07":o===98?"\b":o===116||o===9?" ":o===110?`
|
|
53
|
-
`:o===118?"\v":o===102?"\f":o===114?"\r":o===101?"\x1B":o===32?" ":o===34?'"':o===47?"/":o===92?"\\":o===78?"\x85":o===95?"\xA0":o===76?"\u2028":o===80?"\u2029":""}t(ast,"simpleEscapeSequence");function LQt(o){return o<=65535?String.fromCharCode(o):String.fromCharCode((o-65536>>10)+55296,(o-65536&1023)+56320)}t(LQt,"charFromCodepoint");var mst=new Array(256),hst=new Array(256);for(vO=0;vO<256;vO++)mst[vO]=ast(vO)?1:0,hst[vO]=ast(vO);var vO;function RQt(o,s){this.input=o,this.filename=s.filename||null,this.schema=s.schema||wQt,this.onWarning=s.onWarning||null,this.legacy=s.legacy||!1,this.json=s.json||!1,this.listener=s.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=o.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}t(RQt,"State");function gst(o,s){var f={name:o.filename,buffer:o.input.slice(0,-1),position:o.position,line:o.line,column:o.position-o.lineStart};return f.snippet=kQt(f),new ust(s,f)}t(gst,"generateError");function Ao(o,s){throw gst(o,s)}t(Ao,"throwError");function cce(o,s){o.onWarning&&o.onWarning.call(null,gst(o,s))}t(cce,"throwWarning");var ost={YAML:t(function(s,f,d){var y,x,P;s.version!==null&&Ao(s,"duplication of %YAML directive"),d.length!==1&&Ao(s,"YAML directive accepts exactly one argument"),y=/^([0-9]+)\.([0-9]+)$/.exec(d[0]),y===null&&Ao(s,"ill-formed argument of the YAML directive"),x=parseInt(y[1],10),P=parseInt(y[2],10),x!==1&&Ao(s,"unacceptable YAML version of the document"),s.version=d[0],s.checkLineBreaks=P<2,P!==1&&P!==2&&cce(s,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:t(function(s,f,d){var y,x;d.length!==2&&Ao(s,"TAG directive accepts exactly two arguments"),y=d[0],x=d[1],pst.test(y)||Ao(s,"ill-formed tag handle (first argument) of the TAG directive"),QN.call(s.tagMap,y)&&Ao(s,'there is a previously declared suffix for "'+y+'" tag handle'),dst.test(x)||Ao(s,"ill-formed tag prefix (second argument) of the TAG directive");try{x=decodeURIComponent(x)}catch{Ao(s,"tag prefix is malformed: "+x)}s.tagMap[y]=x},"handleTagDirective")};function ZN(o,s,f,d){var y,x,P,F;if(s<f){if(F=o.input.slice(s,f),d)for(y=0,x=F.length;y<x;y+=1)P=F.charCodeAt(y),P===9||32<=P&&P<=1114111||Ao(o,"expected valid JSON character");else PQt.test(F)&&Ao(o,"the stream contains non-printable characters");o.result+=F}}t(ZN,"captureSegment");function cst(o,s,f,d){var y,x,P,F;for(bO.isObject(f)||Ao(o,"cannot merge mappings; the provided source object is unacceptable"),y=Object.keys(f),P=0,F=y.length;P<F;P+=1)x=y[P],QN.call(s,x)||(s[x]=f[x],d[x]=!0)}t(cst,"mergeMappings");function oM(o,s,f,d,y,x,P,F,J){var G,Se;if(Array.isArray(y))for(y=Array.prototype.slice.call(y),G=0,Se=y.length;G<Se;G+=1)Array.isArray(y[G])&&Ao(o,"nested arrays are not supported inside keys"),typeof y=="object"&&sst(y[G])==="[object Object]"&&(y[G]="[object Object]");if(typeof y=="object"&&sst(y)==="[object Object]"&&(y="[object Object]"),y=String(y),s===null&&(s={}),d==="tag:yaml.org,2002:merge")if(Array.isArray(x))for(G=0,Se=x.length;G<Se;G+=1)cst(o,s,x[G],f);else cst(o,s,x,f);else!o.json&&!QN.call(f,y)&&QN.call(s,y)&&(o.line=P||o.line,o.lineStart=F||o.lineStart,o.position=J||o.position,Ao(o,"duplicated mapping key")),y==="__proto__"?Object.defineProperty(s,y,{configurable:!0,enumerable:!0,writable:!0,value:x}):s[y]=x,delete f[y];return s}t(oM,"storeMappingPair");function r6e(o){var s;s=o.input.charCodeAt(o.position),s===10?o.position++:s===13?(o.position++,o.input.charCodeAt(o.position)===10&&o.position++):Ao(o,"a line break is expected"),o.line+=1,o.lineStart=o.position,o.firstTabInLine=-1}t(r6e,"readLineBreak");function Hm(o,s,f){for(var d=0,y=o.input.charCodeAt(o.position);y!==0;){for(;SO(y);)y===9&&o.firstTabInLine===-1&&(o.firstTabInLine=o.position),y=o.input.charCodeAt(++o.position);if(s&&y===35)do y=o.input.charCodeAt(++o.position);while(y!==10&&y!==13&&y!==0);if(Fk(y))for(r6e(o),y=o.input.charCodeAt(o.position),d++,o.lineIndent=0;y===32;)o.lineIndent++,y=o.input.charCodeAt(++o.position);else break}return f!==-1&&d!==0&&o.lineIndent<f&&cce(o,"deficient indentation"),d}t(Hm,"skipSeparationSpace");function lce(o){var s=o.position,f;return f=o.input.charCodeAt(s),!!((f===45||f===46)&&f===o.input.charCodeAt(s+1)&&f===o.input.charCodeAt(s+2)&&(s+=3,f=o.input.charCodeAt(s),f===0||Gv(f)))}t(lce,"testDocumentSeparator");function n6e(o,s){s===1?o.result+=" ":s>1&&(o.result+=bO.repeat(`
|
|
54
|
-
`,s-1))}t(n6e,"writeFoldedLines");function MQt(o,s,f){var d,y,x,P,F,J,G,Se,de=o.kind,ae=o.result,Ke;if(Ke=o.input.charCodeAt(o.position),Gv(Ke)||aM(Ke)||Ke===35||Ke===38||Ke===42||Ke===33||Ke===124||Ke===62||Ke===39||Ke===34||Ke===37||Ke===64||Ke===96||(Ke===63||Ke===45)&&(y=o.input.charCodeAt(o.position+1),Gv(y)||f&&aM(y)))return!1;for(o.kind="scalar",o.result="",x=P=o.position,F=!1;Ke!==0;){if(Ke===58){if(y=o.input.charCodeAt(o.position+1),Gv(y)||f&&aM(y))break}else if(Ke===35){if(d=o.input.charCodeAt(o.position-1),Gv(d))break}else{if(o.position===o.lineStart&&lce(o)||f&&aM(Ke))break;if(Fk(Ke))if(J=o.line,G=o.lineStart,Se=o.lineIndent,Hm(o,!1,-1),o.lineIndent>=s){F=!0,Ke=o.input.charCodeAt(o.position);continue}else{o.position=P,o.line=J,o.lineStart=G,o.lineIndent=Se;break}}F&&(ZN(o,x,P,!1),n6e(o,o.line-J),x=P=o.position,F=!1),SO(Ke)||(P=o.position+1),Ke=o.input.charCodeAt(++o.position)}return ZN(o,x,P,!1),o.result?!0:(o.kind=de,o.result=ae,!1)}t(MQt,"readPlainScalar");function jQt(o,s){var f,d,y;if(f=o.input.charCodeAt(o.position),f!==39)return!1;for(o.kind="scalar",o.result="",o.position++,d=y=o.position;(f=o.input.charCodeAt(o.position))!==0;)if(f===39)if(ZN(o,d,o.position,!0),f=o.input.charCodeAt(++o.position),f===39)d=o.position,o.position++,y=o.position;else return!0;else Fk(f)?(ZN(o,d,y,!0),n6e(o,Hm(o,!1,s)),d=y=o.position):o.position===o.lineStart&&lce(o)?Ao(o,"unexpected end of the document within a single quoted scalar"):(o.position++,y=o.position);Ao(o,"unexpected end of the stream within a single quoted scalar")}t(jQt,"readSingleQuotedScalar");function BQt(o,s){var f,d,y,x,P,F;if(F=o.input.charCodeAt(o.position),F!==34)return!1;for(o.kind="scalar",o.result="",o.position++,f=d=o.position;(F=o.input.charCodeAt(o.position))!==0;){if(F===34)return ZN(o,f,o.position,!0),o.position++,!0;if(F===92){if(ZN(o,f,o.position,!0),F=o.input.charCodeAt(++o.position),Fk(F))Hm(o,!1,s);else if(F<256&&mst[F])o.result+=hst[F],o.position++;else if((P=OQt(F))>0){for(y=P,x=0;y>0;y--)F=o.input.charCodeAt(++o.position),(P=IQt(F))>=0?x=(x<<4)+P:Ao(o,"expected hexadecimal character");o.result+=LQt(x),o.position++}else Ao(o,"unknown escape sequence");f=d=o.position}else Fk(F)?(ZN(o,f,d,!0),n6e(o,Hm(o,!1,s)),f=d=o.position):o.position===o.lineStart&&lce(o)?Ao(o,"unexpected end of the document within a double quoted scalar"):(o.position++,d=o.position)}Ao(o,"unexpected end of the stream within a double quoted scalar")}t(BQt,"readDoubleQuotedScalar");function UQt(o,s){var f=!0,d,y,x,P=o.tag,F,J=o.anchor,G,Se,de,ae,Ke,$e=Object.create(null),Fe,Gt,jt,Pr;if(Pr=o.input.charCodeAt(o.position),Pr===91)Se=93,Ke=!1,F=[];else if(Pr===123)Se=125,Ke=!0,F={};else return!1;for(o.anchor!==null&&(o.anchorMap[o.anchor]=F),Pr=o.input.charCodeAt(++o.position);Pr!==0;){if(Hm(o,!0,s),Pr=o.input.charCodeAt(o.position),Pr===Se)return o.position++,o.tag=P,o.anchor=J,o.kind=Ke?"mapping":"sequence",o.result=F,!0;f?Pr===44&&Ao(o,"expected the node content, but found ','"):Ao(o,"missed comma between flow collection entries"),Gt=Fe=jt=null,de=ae=!1,Pr===63&&(G=o.input.charCodeAt(o.position+1),Gv(G)&&(de=ae=!0,o.position++,Hm(o,!0,s))),d=o.line,y=o.lineStart,x=o.position,cM(o,s,ace,!1,!0),Gt=o.tag,Fe=o.result,Hm(o,!0,s),Pr=o.input.charCodeAt(o.position),(ae||o.line===d)&&Pr===58&&(de=!0,Pr=o.input.charCodeAt(++o.position),Hm(o,!0,s),cM(o,s,ace,!1,!0),jt=o.result),Ke?oM(o,F,$e,Gt,Fe,jt,d,y,x):de?F.push(oM(o,null,$e,Gt,Fe,jt,d,y,x)):F.push(Fe),Hm(o,!0,s),Pr=o.input.charCodeAt(o.position),Pr===44?(f=!0,Pr=o.input.charCodeAt(++o.position)):f=!1}Ao(o,"unexpected end of the stream within a flow collection")}t(UQt,"readFlowCollection");function zQt(o,s){var f,d,y=t6e,x=!1,P=!1,F=s,J=0,G=!1,Se,de;if(de=o.input.charCodeAt(o.position),de===124)d=!1;else if(de===62)d=!0;else return!1;for(o.kind="scalar",o.result="";de!==0;)if(de=o.input.charCodeAt(++o.position),de===43||de===45)t6e===y?y=de===43?ist:DQt:Ao(o,"repeat of a chomping mode identifier");else if((Se=FQt(de))>=0)Se===0?Ao(o,"bad explicit indentation width of a block scalar; it cannot be less than one"):P?Ao(o,"repeat of an indentation width identifier"):(F=s+Se-1,P=!0);else break;if(SO(de)){do de=o.input.charCodeAt(++o.position);while(SO(de));if(de===35)do de=o.input.charCodeAt(++o.position);while(!Fk(de)&&de!==0)}for(;de!==0;){for(r6e(o),o.lineIndent=0,de=o.input.charCodeAt(o.position);(!P||o.lineIndent<F)&&de===32;)o.lineIndent++,de=o.input.charCodeAt(++o.position);if(!P&&o.lineIndent>F&&(F=o.lineIndent),Fk(de)){J++;continue}if(o.lineIndent<F){y===ist?o.result+=bO.repeat(`
|
|
55
|
-
`,x?1+J:J):y===t6e&&x&&(o.result+=`
|
|
56
|
-
`);break}for(d?SO(de)?(G=!0,o.result+=bO.repeat(`
|
|
57
|
-
`,x?1+J:J)):G?(G=!1,o.result+=bO.repeat(`
|
|
58
|
-
`,J+1)):J===0?x&&(o.result+=" "):o.result+=bO.repeat(`
|
|
59
|
-
`,J):o.result+=bO.repeat(`
|
|
60
|
-
`,x?1+J:J),x=!0,P=!0,J=0,f=o.position;!Fk(de)&&de!==0;)de=o.input.charCodeAt(++o.position);ZN(o,f,o.position,!1)}return!0}t(zQt,"readBlockScalar");function lst(o,s){var f,d=o.tag,y=o.anchor,x=[],P,F=!1,J;if(o.firstTabInLine!==-1)return!1;for(o.anchor!==null&&(o.anchorMap[o.anchor]=x),J=o.input.charCodeAt(o.position);J!==0&&(o.firstTabInLine!==-1&&(o.position=o.firstTabInLine,Ao(o,"tab characters must not be used in indentation")),!(J!==45||(P=o.input.charCodeAt(o.position+1),!Gv(P))));){if(F=!0,o.position++,Hm(o,!0,-1)&&o.lineIndent<=s){x.push(null),J=o.input.charCodeAt(o.position);continue}if(f=o.line,cM(o,s,_st,!1,!0),x.push(o.result),Hm(o,!0,-1),J=o.input.charCodeAt(o.position),(o.line===f||o.lineIndent>s)&&J!==0)Ao(o,"bad indentation of a sequence entry");else if(o.lineIndent<s)break}return F?(o.tag=d,o.anchor=y,o.kind="sequence",o.result=x,!0):!1}t(lst,"readBlockSequence");function $Qt(o,s,f){var d,y,x,P,F,J,G=o.tag,Se=o.anchor,de={},ae=Object.create(null),Ke=null,$e=null,Fe=null,Gt=!1,jt=!1,Pr;if(o.firstTabInLine!==-1)return!1;for(o.anchor!==null&&(o.anchorMap[o.anchor]=de),Pr=o.input.charCodeAt(o.position);Pr!==0;){if(!Gt&&o.firstTabInLine!==-1&&(o.position=o.firstTabInLine,Ao(o,"tab characters must not be used in indentation")),d=o.input.charCodeAt(o.position+1),x=o.line,(Pr===63||Pr===58)&&Gv(d))Pr===63?(Gt&&(oM(o,de,ae,Ke,$e,null,P,F,J),Ke=$e=Fe=null),jt=!0,Gt=!0,y=!0):Gt?(Gt=!1,y=!0):Ao(o,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),o.position+=1,Pr=d;else{if(P=o.line,F=o.lineStart,J=o.position,!cM(o,f,fst,!1,!0))break;if(o.line===x){for(Pr=o.input.charCodeAt(o.position);SO(Pr);)Pr=o.input.charCodeAt(++o.position);if(Pr===58)Pr=o.input.charCodeAt(++o.position),Gv(Pr)||Ao(o,"a whitespace character is expected after the key-value separator within a block mapping"),Gt&&(oM(o,de,ae,Ke,$e,null,P,F,J),Ke=$e=Fe=null),jt=!0,Gt=!1,y=!1,Ke=o.tag,$e=o.result;else if(jt)Ao(o,"can not read an implicit mapping pair; a colon is missed");else return o.tag=G,o.anchor=Se,!0}else if(jt)Ao(o,"can not read a block mapping entry; a multiline key may not be an implicit key");else return o.tag=G,o.anchor=Se,!0}if((o.line===x||o.lineIndent>s)&&(Gt&&(P=o.line,F=o.lineStart,J=o.position),cM(o,s,oce,!0,y)&&(Gt?$e=o.result:Fe=o.result),Gt||(oM(o,de,ae,Ke,$e,Fe,P,F,J),Ke=$e=Fe=null),Hm(o,!0,-1),Pr=o.input.charCodeAt(o.position)),(o.line===x||o.lineIndent>s)&&Pr!==0)Ao(o,"bad indentation of a mapping entry");else if(o.lineIndent<s)break}return Gt&&oM(o,de,ae,Ke,$e,null,P,F,J),jt&&(o.tag=G,o.anchor=Se,o.kind="mapping",o.result=de),jt}t($Qt,"readBlockMapping");function JQt(o){var s,f=!1,d=!1,y,x,P;if(P=o.input.charCodeAt(o.position),P!==33)return!1;if(o.tag!==null&&Ao(o,"duplication of a tag property"),P=o.input.charCodeAt(++o.position),P===60?(f=!0,P=o.input.charCodeAt(++o.position)):P===33?(d=!0,y="!!",P=o.input.charCodeAt(++o.position)):y="!",s=o.position,f){do P=o.input.charCodeAt(++o.position);while(P!==0&&P!==62);o.position<o.length?(x=o.input.slice(s,o.position),P=o.input.charCodeAt(++o.position)):Ao(o,"unexpected end of the stream within a verbatim tag")}else{for(;P!==0&&!Gv(P);)P===33&&(d?Ao(o,"tag suffix cannot contain exclamation marks"):(y=o.input.slice(s-1,o.position+1),pst.test(y)||Ao(o,"named tag handle cannot contain such characters"),d=!0,s=o.position+1)),P=o.input.charCodeAt(++o.position);x=o.input.slice(s,o.position),NQt.test(x)&&Ao(o,"tag suffix cannot contain flow indicator characters")}x&&!dst.test(x)&&Ao(o,"tag name cannot contain such characters: "+x);try{x=decodeURIComponent(x)}catch{Ao(o,"tag name is malformed: "+x)}return f?o.tag=x:QN.call(o.tagMap,y)?o.tag=o.tagMap[y]+x:y==="!"?o.tag="!"+x:y==="!!"?o.tag="tag:yaml.org,2002:"+x:Ao(o,'undeclared tag handle "'+y+'"'),!0}t(JQt,"readTagProperty");function WQt(o){var s,f;if(f=o.input.charCodeAt(o.position),f!==38)return!1;for(o.anchor!==null&&Ao(o,"duplication of an anchor property"),f=o.input.charCodeAt(++o.position),s=o.position;f!==0&&!Gv(f)&&!aM(f);)f=o.input.charCodeAt(++o.position);return o.position===s&&Ao(o,"name of an anchor node must contain at least one character"),o.anchor=o.input.slice(s,o.position),!0}t(WQt,"readAnchorProperty");function qQt(o){var s,f,d;if(d=o.input.charCodeAt(o.position),d!==42)return!1;for(d=o.input.charCodeAt(++o.position),s=o.position;d!==0&&!Gv(d)&&!aM(d);)d=o.input.charCodeAt(++o.position);return o.position===s&&Ao(o,"name of an alias node must contain at least one character"),f=o.input.slice(s,o.position),QN.call(o.anchorMap,f)||Ao(o,'unidentified alias "'+f+'"'),o.result=o.anchorMap[f],Hm(o,!0,-1),!0}t(qQt,"readAlias");function cM(o,s,f,d,y){var x,P,F,J=1,G=!1,Se=!1,de,ae,Ke,$e,Fe,Gt;if(o.listener!==null&&o.listener("open",o),o.tag=null,o.anchor=null,o.kind=null,o.result=null,x=P=F=oce===f||_st===f,d&&Hm(o,!0,-1)&&(G=!0,o.lineIndent>s?J=1:o.lineIndent===s?J=0:o.lineIndent<s&&(J=-1)),J===1)for(;JQt(o)||WQt(o);)Hm(o,!0,-1)?(G=!0,F=x,o.lineIndent>s?J=1:o.lineIndent===s?J=0:o.lineIndent<s&&(J=-1)):F=!1;if(F&&(F=G||y),(J===1||oce===f)&&(ace===f||fst===f?Fe=s:Fe=s+1,Gt=o.position-o.lineStart,J===1?F&&(lst(o,Gt)||$Qt(o,Gt,Fe))||UQt(o,Fe)?Se=!0:(P&&zQt(o,Fe)||jQt(o,Fe)||BQt(o,Fe)?Se=!0:qQt(o)?(Se=!0,(o.tag!==null||o.anchor!==null)&&Ao(o,"alias node should not have any properties")):MQt(o,Fe,ace===f)&&(Se=!0,o.tag===null&&(o.tag="?")),o.anchor!==null&&(o.anchorMap[o.anchor]=o.result)):J===0&&(Se=F&&lst(o,Gt))),o.tag===null)o.anchor!==null&&(o.anchorMap[o.anchor]=o.result);else if(o.tag==="?"){for(o.result!==null&&o.kind!=="scalar"&&Ao(o,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+o.kind+'"'),de=0,ae=o.implicitTypes.length;de<ae;de+=1)if($e=o.implicitTypes[de],$e.resolve(o.result)){o.result=$e.construct(o.result),o.tag=$e.tag,o.anchor!==null&&(o.anchorMap[o.anchor]=o.result);break}}else if(o.tag!=="!"){if(QN.call(o.typeMap[o.kind||"fallback"],o.tag))$e=o.typeMap[o.kind||"fallback"][o.tag];else for($e=null,Ke=o.typeMap.multi[o.kind||"fallback"],de=0,ae=Ke.length;de<ae;de+=1)if(o.tag.slice(0,Ke[de].tag.length)===Ke[de].tag){$e=Ke[de];break}$e||Ao(o,"unknown tag !<"+o.tag+">"),o.result!==null&&$e.kind!==o.kind&&Ao(o,"unacceptable node kind for !<"+o.tag+'> tag; it should be "'+$e.kind+'", not "'+o.kind+'"'),$e.resolve(o.result,o.tag)?(o.result=$e.construct(o.result,o.tag),o.anchor!==null&&(o.anchorMap[o.anchor]=o.result)):Ao(o,"cannot resolve a node with !<"+o.tag+"> explicit tag")}return o.listener!==null&&o.listener("close",o),o.tag!==null||o.anchor!==null||Se}t(cM,"composeNode");function VQt(o){var s=o.position,f,d,y,x=!1,P;for(o.version=null,o.checkLineBreaks=o.legacy,o.tagMap=Object.create(null),o.anchorMap=Object.create(null);(P=o.input.charCodeAt(o.position))!==0&&(Hm(o,!0,-1),P=o.input.charCodeAt(o.position),!(o.lineIndent>0||P!==37));){for(x=!0,P=o.input.charCodeAt(++o.position),f=o.position;P!==0&&!Gv(P);)P=o.input.charCodeAt(++o.position);for(d=o.input.slice(f,o.position),y=[],d.length<1&&Ao(o,"directive name must not be less than one character in length");P!==0;){for(;SO(P);)P=o.input.charCodeAt(++o.position);if(P===35){do P=o.input.charCodeAt(++o.position);while(P!==0&&!Fk(P));break}if(Fk(P))break;for(f=o.position;P!==0&&!Gv(P);)P=o.input.charCodeAt(++o.position);y.push(o.input.slice(f,o.position))}P!==0&&r6e(o),QN.call(ost,d)?ost[d](o,d,y):cce(o,'unknown document directive "'+d+'"')}if(Hm(o,!0,-1),o.lineIndent===0&&o.input.charCodeAt(o.position)===45&&o.input.charCodeAt(o.position+1)===45&&o.input.charCodeAt(o.position+2)===45?(o.position+=3,Hm(o,!0,-1)):x&&Ao(o,"directives end mark is expected"),cM(o,o.lineIndent-1,oce,!1,!0),Hm(o,!0,-1),o.checkLineBreaks&&AQt.test(o.input.slice(s,o.position))&&cce(o,"non-ASCII line breaks are interpreted as content"),o.documents.push(o.result),o.position===o.lineStart&&lce(o)){o.input.charCodeAt(o.position)===46&&(o.position+=3,Hm(o,!0,-1));return}if(o.position<o.length-1)Ao(o,"end of the stream or a document separator is expected");else return}t(VQt,"readDocument");function yst(o,s){o=String(o),s=s||{},o.length!==0&&(o.charCodeAt(o.length-1)!==10&&o.charCodeAt(o.length-1)!==13&&(o+=`
|
|
61
|
-
`),o.charCodeAt(0)===65279&&(o=o.slice(1)));var f=new RQt(o,s),d=o.indexOf("\0");for(d!==-1&&(f.position=d,Ao(f,"null byte is not allowed in input")),f.input+="\0";f.input.charCodeAt(f.position)===32;)f.lineIndent+=1,f.position+=1;for(;f.position<f.length-1;)VQt(f);return f.documents}t(yst,"loadDocuments");function HQt(o,s,f){s!==null&&typeof s=="object"&&typeof f>"u"&&(f=s,s=null);var d=yst(o,f);if(typeof s!="function")return d;for(var y=0,x=d.length;y<x;y+=1)s(d[y])}t(HQt,"loadAll");function GQt(o,s){var f=yst(o,s);if(f.length!==0){if(f.length===1)return f[0];throw new ust("expected a single document in the stream, but found more")}}t(GQt,"load");i6e.exports.loadAll=HQt;i6e.exports.load=GQt});var Ust=or((awr,Bst)=>{"use strict";var _ce=iM(),KV=sM(),YQt=sce(),Dst=Object.prototype.toString,Pst=Object.prototype.hasOwnProperty,l6e=65279,KQt=9,HV=10,XQt=13,ZQt=32,QQt=33,eer=34,s6e=35,ter=37,rer=38,ner=39,ier=42,Ast=44,ser=45,uce=58,aer=61,oer=62,cer=63,ler=64,Nst=91,Ist=93,uer=96,Ost=123,fer=124,Fst=125,wy={};wy[0]="\\0";wy[7]="\\a";wy[8]="\\b";wy[9]="\\t";wy[10]="\\n";wy[11]="\\v";wy[12]="\\f";wy[13]="\\r";wy[27]="\\e";wy[34]='\\"';wy[92]="\\\\";wy[133]="\\N";wy[160]="\\_";wy[8232]="\\L";wy[8233]="\\P";var _er=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],per=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function der(o,s){var f,d,y,x,P,F,J;if(s===null)return{};for(f={},d=Object.keys(s),y=0,x=d.length;y<x;y+=1)P=d[y],F=String(s[P]),P.slice(0,2)==="!!"&&(P="tag:yaml.org,2002:"+P.slice(2)),J=o.compiledTypeMap.fallback[P],J&&Pst.call(J.styleAliases,F)&&(F=J.styleAliases[F]),f[P]=F;return f}t(der,"compileStyleMap");function mer(o){var s,f,d;if(s=o.toString(16).toUpperCase(),o<=255)f="x",d=2;else if(o<=65535)f="u",d=4;else if(o<=4294967295)f="U",d=8;else throw new KV("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+f+_ce.repeat("0",d-s.length)+s}t(mer,"encodeHex");var her=1,GV=2;function ger(o){this.schema=o.schema||YQt,this.indent=Math.max(1,o.indent||2),this.noArrayIndent=o.noArrayIndent||!1,this.skipInvalid=o.skipInvalid||!1,this.flowLevel=_ce.isNothing(o.flowLevel)?-1:o.flowLevel,this.styleMap=der(this.schema,o.styles||null),this.sortKeys=o.sortKeys||!1,this.lineWidth=o.lineWidth||80,this.noRefs=o.noRefs||!1,this.noCompatMode=o.noCompatMode||!1,this.condenseFlow=o.condenseFlow||!1,this.quotingType=o.quotingType==='"'?GV:her,this.forceQuotes=o.forceQuotes||!1,this.replacer=typeof o.replacer=="function"?o.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}t(ger,"State");function bst(o,s){for(var f=_ce.repeat(" ",s),d=0,y=-1,x="",P,F=o.length;d<F;)y=o.indexOf(`
|
|
62
|
-
`,d),y===-1?(P=o.slice(d),d=F):(P=o.slice(d,y+1),d=y+1),P.length&&P!==`
|
|
63
|
-
`&&(x+=f),x+=P;return x}t(bst,"indentString");function a6e(o,s){return`
|
|
64
|
-
`+_ce.repeat(" ",o.indent*s)}t(a6e,"generateNextLine");function yer(o,s){var f,d,y;for(f=0,d=o.implicitTypes.length;f<d;f+=1)if(y=o.implicitTypes[f],y.resolve(s))return!0;return!1}t(yer,"testImplicitResolving");function fce(o){return o===ZQt||o===KQt}t(fce,"isWhitespace");function YV(o){return 32<=o&&o<=126||161<=o&&o<=55295&&o!==8232&&o!==8233||57344<=o&&o<=65533&&o!==l6e||65536<=o&&o<=1114111}t(YV,"isPrintable");function Sst(o){return YV(o)&&o!==l6e&&o!==XQt&&o!==HV}t(Sst,"isNsCharOrWhitespace");function Tst(o,s,f){var d=Sst(o),y=d&&!fce(o);return(f?d:d&&o!==Ast&&o!==Nst&&o!==Ist&&o!==Ost&&o!==Fst)&&o!==s6e&&!(s===uce&&!y)||Sst(s)&&!fce(s)&&o===s6e||s===uce&&y}t(Tst,"isPlainSafe");function ver(o){return YV(o)&&o!==l6e&&!fce(o)&&o!==ser&&o!==cer&&o!==uce&&o!==Ast&&o!==Nst&&o!==Ist&&o!==Ost&&o!==Fst&&o!==s6e&&o!==rer&&o!==ier&&o!==QQt&&o!==fer&&o!==aer&&o!==oer&&o!==ner&&o!==eer&&o!==ter&&o!==ler&&o!==uer}t(ver,"isPlainSafeFirst");function ber(o){return!fce(o)&&o!==uce}t(ber,"isPlainSafeLast");function VV(o,s){var f=o.charCodeAt(s),d;return f>=55296&&f<=56319&&s+1<o.length&&(d=o.charCodeAt(s+1),d>=56320&&d<=57343)?(f-55296)*1024+d-56320+65536:f}t(VV,"codePointAt");function Lst(o){var s=/^\n* /;return s.test(o)}t(Lst,"needIndentIndicator");var Rst=1,o6e=2,Mst=3,jst=4,lM=5;function Ser(o,s,f,d,y,x,P,F){var J,G=0,Se=null,de=!1,ae=!1,Ke=d!==-1,$e=-1,Fe=ver(VV(o,0))&&ber(VV(o,o.length-1));if(s||P)for(J=0;J<o.length;G>=65536?J+=2:J++){if(G=VV(o,J),!YV(G))return lM;Fe=Fe&&Tst(G,Se,F),Se=G}else{for(J=0;J<o.length;G>=65536?J+=2:J++){if(G=VV(o,J),G===HV)de=!0,Ke&&(ae=ae||J-$e-1>d&&o[$e+1]!==" ",$e=J);else if(!YV(G))return lM;Fe=Fe&&Tst(G,Se,F),Se=G}ae=ae||Ke&&J-$e-1>d&&o[$e+1]!==" "}return!de&&!ae?Fe&&!P&&!y(o)?Rst:x===GV?lM:o6e:f>9&&Lst(o)?lM:P?x===GV?lM:o6e:ae?jst:Mst}t(Ser,"chooseScalarStyle");function Ter(o,s,f,d,y){o.dump=function(){if(s.length===0)return o.quotingType===GV?'""':"''";if(!o.noCompatMode&&(_er.indexOf(s)!==-1||per.test(s)))return o.quotingType===GV?'"'+s+'"':"'"+s+"'";var x=o.indent*Math.max(1,f),P=o.lineWidth===-1?-1:Math.max(Math.min(o.lineWidth,40),o.lineWidth-x),F=d||o.flowLevel>-1&&f>=o.flowLevel;function J(G){return yer(o,G)}switch(t(J,"testAmbiguity"),Ser(s,F,o.indent,P,J,o.quotingType,o.forceQuotes&&!d,y)){case Rst:return s;case o6e:return"'"+s.replace(/'/g,"''")+"'";case Mst:return"|"+xst(s,o.indent)+Est(bst(s,x));case jst:return">"+xst(s,o.indent)+Est(bst(xer(s,P),x));case lM:return'"'+Eer(s,P)+'"';default:throw new KV("impossible error: invalid scalar style")}}()}t(Ter,"writeScalar");function xst(o,s){var f=Lst(o)?String(s):"",d=o[o.length-1]===`
|
|
65
|
-
`,y=d&&(o[o.length-2]===`
|
|
66
|
-
`||o===`
|
|
67
|
-
`),x=y?"+":d?"":"-";return f+x+`
|
|
68
|
-
`}t(xst,"blockHeader");function Est(o){return o[o.length-1]===`
|
|
69
|
-
`?o.slice(0,-1):o}t(Est,"dropEndingNewline");function xer(o,s){for(var f=/(\n+)([^\n]*)/g,d=function(){var G=o.indexOf(`
|
|
70
|
-
`);return G=G!==-1?G:o.length,f.lastIndex=G,Cst(o.slice(0,G),s)}(),y=o[0]===`
|
|
71
|
-
`||o[0]===" ",x,P;P=f.exec(o);){var F=P[1],J=P[2];x=J[0]===" ",d+=F+(!y&&!x&&J!==""?`
|
|
72
|
-
`:"")+Cst(J,s),y=x}return d}t(xer,"foldString");function Cst(o,s){if(o===""||o[0]===" ")return o;for(var f=/ [^ ]/g,d,y=0,x,P=0,F=0,J="";d=f.exec(o);)F=d.index,F-y>s&&(x=P>y?P:F,J+=`
|
|
73
|
-
`+o.slice(y,x),y=x+1),P=F;return J+=`
|
|
74
|
-
`,o.length-y>s&&P>y?J+=o.slice(y,P)+`
|
|
75
|
-
`+o.slice(P+1):J+=o.slice(y),J.slice(1)}t(Cst,"foldLine");function Eer(o){for(var s="",f=0,d,y=0;y<o.length;f>=65536?y+=2:y++)f=VV(o,y),d=wy[f],!d&&YV(f)?(s+=o[y],f>=65536&&(s+=o[y+1])):s+=d||mer(f);return s}t(Eer,"escapeString");function Cer(o,s,f){var d="",y=o.tag,x,P,F;for(x=0,P=f.length;x<P;x+=1)F=f[x],o.replacer&&(F=o.replacer.call(f,String(x),F)),(zP(o,s,F,!1,!1)||typeof F>"u"&&zP(o,s,null,!1,!1))&&(d!==""&&(d+=","+(o.condenseFlow?"":" ")),d+=o.dump);o.tag=y,o.dump="["+d+"]"}t(Cer,"writeFlowSequence");function kst(o,s,f,d){var y="",x=o.tag,P,F,J;for(P=0,F=f.length;P<F;P+=1)J=f[P],o.replacer&&(J=o.replacer.call(f,String(P),J)),(zP(o,s+1,J,!0,!0,!1,!0)||typeof J>"u"&&zP(o,s+1,null,!0,!0,!1,!0))&&((!d||y!=="")&&(y+=a6e(o,s)),o.dump&&HV===o.dump.charCodeAt(0)?y+="-":y+="- ",y+=o.dump);o.tag=x,o.dump=y||"[]"}t(kst,"writeBlockSequence");function ker(o,s,f){var d="",y=o.tag,x=Object.keys(f),P,F,J,G,Se;for(P=0,F=x.length;P<F;P+=1)Se="",d!==""&&(Se+=", "),o.condenseFlow&&(Se+='"'),J=x[P],G=f[J],o.replacer&&(G=o.replacer.call(f,J,G)),zP(o,s,J,!1,!1)&&(o.dump.length>1024&&(Se+="? "),Se+=o.dump+(o.condenseFlow?'"':"")+":"+(o.condenseFlow?"":" "),zP(o,s,G,!1,!1)&&(Se+=o.dump,d+=Se));o.tag=y,o.dump="{"+d+"}"}t(ker,"writeFlowMapping");function wer(o,s,f,d){var y="",x=o.tag,P=Object.keys(f),F,J,G,Se,de,ae;if(o.sortKeys===!0)P.sort();else if(typeof o.sortKeys=="function")P.sort(o.sortKeys);else if(o.sortKeys)throw new KV("sortKeys must be a boolean or a function");for(F=0,J=P.length;F<J;F+=1)ae="",(!d||y!=="")&&(ae+=a6e(o,s)),G=P[F],Se=f[G],o.replacer&&(Se=o.replacer.call(f,G,Se)),zP(o,s+1,G,!0,!0,!0)&&(de=o.tag!==null&&o.tag!=="?"||o.dump&&o.dump.length>1024,de&&(o.dump&&HV===o.dump.charCodeAt(0)?ae+="?":ae+="? "),ae+=o.dump,de&&(ae+=a6e(o,s)),zP(o,s+1,Se,!0,de)&&(o.dump&&HV===o.dump.charCodeAt(0)?ae+=":":ae+=": ",ae+=o.dump,y+=ae));o.tag=x,o.dump=y||"{}"}t(wer,"writeBlockMapping");function wst(o,s,f){var d,y,x,P,F,J;for(y=f?o.explicitTypes:o.implicitTypes,x=0,P=y.length;x<P;x+=1)if(F=y[x],(F.instanceOf||F.predicate)&&(!F.instanceOf||typeof s=="object"&&s instanceof F.instanceOf)&&(!F.predicate||F.predicate(s))){if(f?F.multi&&F.representName?o.tag=F.representName(s):o.tag=F.tag:o.tag="?",F.represent){if(J=o.styleMap[F.tag]||F.defaultStyle,Dst.call(F.represent)==="[object Function]")d=F.represent(s,J);else if(Pst.call(F.represent,J))d=F.represent[J](s,J);else throw new KV("!<"+F.tag+'> tag resolver accepts not "'+J+'" style');o.dump=d}return!0}return!1}t(wst,"detectType");function zP(o,s,f,d,y,x,P){o.tag=null,o.dump=f,wst(o,f,!1)||wst(o,f,!0);var F=Dst.call(o.dump),J=d,G;d&&(d=o.flowLevel<0||o.flowLevel>s);var Se=F==="[object Object]"||F==="[object Array]",de,ae;if(Se&&(de=o.duplicates.indexOf(f),ae=de!==-1),(o.tag!==null&&o.tag!=="?"||ae||o.indent!==2&&s>0)&&(y=!1),ae&&o.usedDuplicates[de])o.dump="*ref_"+de;else{if(Se&&ae&&!o.usedDuplicates[de]&&(o.usedDuplicates[de]=!0),F==="[object Object]")d&&Object.keys(o.dump).length!==0?(wer(o,s,o.dump,y),ae&&(o.dump="&ref_"+de+o.dump)):(ker(o,s,o.dump),ae&&(o.dump="&ref_"+de+" "+o.dump));else if(F==="[object Array]")d&&o.dump.length!==0?(o.noArrayIndent&&!P&&s>0?kst(o,s-1,o.dump,y):kst(o,s,o.dump,y),ae&&(o.dump="&ref_"+de+o.dump)):(Cer(o,s,o.dump),ae&&(o.dump="&ref_"+de+" "+o.dump));else if(F==="[object String]")o.tag!=="?"&&Ter(o,o.dump,s,x,J);else{if(F==="[object Undefined]")return!1;if(o.skipInvalid)return!1;throw new KV("unacceptable kind of an object to dump "+F)}o.tag!==null&&o.tag!=="?"&&(G=encodeURI(o.tag[0]==="!"?o.tag.slice(1):o.tag).replace(/!/g,"%21"),o.tag[0]==="!"?G="!"+G:G.slice(0,18)==="tag:yaml.org,2002:"?G="!!"+G.slice(18):G="!<"+G+">",o.dump=G+" "+o.dump)}return!0}t(zP,"writeNode");function Der(o,s){var f=[],d=[],y,x;for(c6e(o,f,d),y=0,x=d.length;y<x;y+=1)s.duplicates.push(f[d[y]]);s.usedDuplicates=new Array(x)}t(Der,"getDuplicateReferences");function c6e(o,s,f){var d,y,x;if(o!==null&&typeof o=="object")if(y=s.indexOf(o),y!==-1)f.indexOf(y)===-1&&f.push(y);else if(s.push(o),Array.isArray(o))for(y=0,x=o.length;y<x;y+=1)c6e(o[y],s,f);else for(d=Object.keys(o),y=0,x=d.length;y<x;y+=1)c6e(o[d[y]],s,f)}t(c6e,"inspectNode");function Per(o,s){s=s||{};var f=new ger(s);f.noRefs||Der(o,f);var d=o;return f.replacer&&(d=f.replacer.call({"":d},"",d)),zP(f,0,d,!0,!0)?f.dump+`
|
|
76
|
-
`:""}t(Per,"dump");Bst.exports.dump=Per});var f6e=or((cwr,I1)=>{"use strict";var zst=vst(),Aer=Ust();function u6e(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.")}}t(u6e,"renamed");I1.exports.Type=ky();I1.exports.Schema=MAe();I1.exports.FAILSAFE_SCHEMA=zAe();I1.exports.JSON_SCHEMA=VAe();I1.exports.CORE_SCHEMA=HAe();I1.exports.DEFAULT_SCHEMA=sce();I1.exports.load=zst.load;I1.exports.loadAll=zst.loadAll;I1.exports.dump=Aer.dump;I1.exports.YAMLException=sM();I1.exports.types={binary:XAe(),float:qAe(),map:UAe(),null:$Ae(),pairs:QAe(),set:e6e(),timestamp:GAe(),bool:JAe(),int:WAe(),merge:YAe(),omap:ZAe(),seq:BAe(),str:jAe()};I1.exports.safeLoad=u6e("safeLoad","load");I1.exports.safeLoadAll=u6e("safeLoadAll","loadAll");I1.exports.safeDump=u6e("safeDump","dump")});var $st=or(XV=>{"use strict";var Ner=XV&&XV.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(XV,"__esModule",{value:!0});var Ier=cT(),Oer=Ner(f6e()),Fer=f6e();XV.default={order:200,allowEmpty:!0,canParse:[".yaml",".yml",".json"],async parse(o){let s=o.data;if(Buffer.isBuffer(s)&&(s=s.toString()),typeof s=="string")try{return Oer.default.load(s,{schema:Fer.JSON_SCHEMA})}catch(f){throw new Ier.ParserError(f?.message||"Parser Error",o.url)}else return s}}});var Jst=or(_6e=>{"use strict";Object.defineProperty(_6e,"__esModule",{value:!0});var Ler=cT(),Rer=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;_6e.default={order:300,allowEmpty:!0,encoding:"utf8",canParse(o){return(typeof o.data=="string"||Buffer.isBuffer(o.data))&&Rer.test(o.url)},parse(o){if(typeof o.data=="string")return o.data;if(Buffer.isBuffer(o.data))return o.data.toString(this.encoding);throw new Ler.ParserError("data is not text",o.url)}}});var Wst=or(p6e=>{"use strict";Object.defineProperty(p6e,"__esModule",{value:!0});var Mer=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;p6e.default={order:400,allowEmpty:!0,canParse(o){return Buffer.isBuffer(o.data)&&Mer.test(o.url)},parse(o){return Buffer.isBuffer(o.data)?o.data:Buffer.from(o.data)}}});var Gst=or(CE=>{"use strict";var jer=CE&&CE.__createBinding||(Object.create?function(o,s,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(s,f);(!y||("get"in y?!s.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return s[f]},"get")}),Object.defineProperty(o,d,y)}:function(o,s,f,d){d===void 0&&(d=f),o[d]=s[f]}),Ber=CE&&CE.__setModuleDefault||(Object.create?function(o,s){Object.defineProperty(o,"default",{enumerable:!0,value:s})}:function(o,s){o.default=s}),Uer=CE&&CE.__importStar||function(o){if(o&&o.__esModule)return o;var s={};if(o!=null)for(var f in o)f!=="default"&&Object.prototype.hasOwnProperty.call(o,f)&&jer(s,o,f);return Ber(s,o),s},zer=CE&&CE.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(CE,"__esModule",{value:!0});var $er=zer(_o("fs")),qst=YN(),Vst=Uer(oT()),Hst=cT();CE.default={order:100,canRead(o){return Vst.isFileSystemPath(o.url)},async read(o){let s;try{s=Vst.toFileSystemPath(o.url)}catch(f){throw new Hst.ResolverError(qst.ono.uri(f,`Malformed URI: ${o.url}`),o.url)}try{return await $er.default.promises.readFile(s)}catch(f){throw new Hst.ResolverError((0,qst.ono)(f,`Error opening file "${s}"`),s)}}}});var Xst=or($P=>{"use strict";var Jer=$P&&$P.__createBinding||(Object.create?function(o,s,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(s,f);(!y||("get"in y?!s.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return s[f]},"get")}),Object.defineProperty(o,d,y)}:function(o,s,f,d){d===void 0&&(d=f),o[d]=s[f]}),Wer=$P&&$P.__setModuleDefault||(Object.create?function(o,s){Object.defineProperty(o,"default",{enumerable:!0,value:s})}:function(o,s){o.default=s}),qer=$P&&$P.__importStar||function(o){if(o&&o.__esModule)return o;var s={};if(o!=null)for(var f in o)f!=="default"&&Object.prototype.hasOwnProperty.call(o,f)&&Jer(s,o,f);return Wer(s,o),s};Object.defineProperty($P,"__esModule",{value:!0});var pce=YN(),ZV=qer(oT()),Yst=cT();$P.default={order:200,headers:null,timeout:6e4,redirects:5,withCredentials:!1,canRead(o){return ZV.isHttp(o.url)},read(o){let s=ZV.parse(o.url);return typeof window<"u"&&!s.protocol&&(s.protocol=ZV.parse(location.href).protocol),Kst(s,this)}};async function Kst(o,s,f){o=ZV.parse(o);let d=f||[];d.push(o.href);try{let y=await Ver(o,s);if(y.status>=400)throw(0,pce.ono)({status:y.status},`HTTP ERROR ${y.status}`);if(y.status>=300){if(!Number.isNaN(s.redirects)&&d.length>s.redirects)throw new Yst.ResolverError((0,pce.ono)({status:y.status},`Error downloading ${d[0]}.
|
|
77
|
-
Too many redirects:
|
|
78
|
-
${d.join(`
|
|
79
|
-
`)}`));if(!("location"in y.headers)||!y.headers.location)throw(0,pce.ono)({status:y.status},`HTTP ${y.status} redirect with no location header`);{let x=ZV.resolve(o.href,y.headers.location);return Kst(x,s,d)}}else{if(y.body){let x=await y.arrayBuffer();return Buffer.from(x)}return Buffer.alloc(0)}}catch(y){throw new Yst.ResolverError((0,pce.ono)(y,`Error downloading ${o.href}`),o.href)}}t(Kst,"download");async function Ver(o,s){let f,d;s.timeout&&(f=new AbortController,d=setTimeout(()=>f.abort(),s.timeout));let y=await fetch(o,{method:"GET",headers:s.headers||{},credentials:s.withCredentials?"include":"same-origin",signal:f?f.signal:null});return d&&clearTimeout(d),y}t(Ver,"get")});var d6e=or(JP=>{"use strict";var uM=JP&&JP.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(JP,"__esModule",{value:!0});JP.getNewOptions=JP.getJsonSchemaRefParserDefaultOptions=void 0;var Her=uM(Dit()),Ger=uM($st()),Yer=uM(Jst()),Ker=uM(Wst()),Xer=uM(Gst()),Zer=uM(Xst()),Qer=t(()=>({parse:{json:{...Her.default},yaml:{...Ger.default},text:{...Yer.default},binary:{...Ker.default}},resolve:{file:{...Xer.default},http:{...Zer.default},external:!0},continueOnError:!1,dereference:{circular:!0,excludedPathMatcher:t(()=>!1,"excludedPathMatcher"),referenceResolution:"relative"},mutateInputSchema:!0}),"getJsonSchemaRefParserDefaultOptions");JP.getJsonSchemaRefParserDefaultOptions=Qer;var etr=t(o=>{let s=(0,JP.getJsonSchemaRefParserDefaultOptions)();return o&&Qst(s,o),s},"getNewOptions");JP.getNewOptions=etr;function Qst(o,s){if(Zst(s)){let f=Object.keys(s).filter(d=>!["__proto__","constructor","prototype"].includes(d));for(let d=0;d<f.length;d++){let y=f[d],x=s[y],P=o[y];Zst(x)?o[y]=Qst(P||{},x):x!==void 0&&(o[y]=x)}}return o}t(Qst,"merge");function Zst(o){return o&&typeof o=="object"&&!Array.isArray(o)&&!(o instanceof RegExp)&&!(o instanceof Date)}t(Zst,"isMergeable")});var tat=or(dce=>{"use strict";Object.defineProperty(dce,"__esModule",{value:!0});dce.normalizeArgs=eat;var ttr=d6e();function eat(o){let s,f,d,y,x=Array.prototype.slice.call(o);typeof x[x.length-1]=="function"&&(y=x.pop()),typeof x[0]=="string"?(s=x[0],typeof x[2]=="object"?(f=x[1],d=x[2]):(f=void 0,d=x[1])):(s="",f=x[0],d=x[1]);try{d=(0,ttr.getNewOptions)(d)}catch(P){console.error(`JSON Schema Ref Parser: Error normalizing options: ${P}`)}return!d.mutateInputSchema&&typeof f=="object"&&(f=JSON.parse(JSON.stringify(f))),{path:s,schema:f,options:d,callback:y}}t(eat,"normalizeArgs");dce.default=eat});var rat=or(kE=>{"use strict";var rtr=kE&&kE.__createBinding||(Object.create?function(o,s,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(s,f);(!y||("get"in y?!s.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return s[f]},"get")}),Object.defineProperty(o,d,y)}:function(o,s,f,d){d===void 0&&(d=f),o[d]=s[f]}),ntr=kE&&kE.__setModuleDefault||(Object.create?function(o,s){Object.defineProperty(o,"default",{enumerable:!0,value:s})}:function(o,s){o.default=s}),itr=kE&&kE.__importStar||function(o){if(o&&o.__esModule)return o;var s={};if(o!=null)for(var f in o)f!=="default"&&Object.prototype.hasOwnProperty.call(o,f)&&rtr(s,o,f);return ntr(s,o),s},m6e=kE&&kE.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(kE,"__esModule",{value:!0});var str=m6e(rM()),atr=m6e(zV()),otr=m6e(NAe()),fM=itr(oT()),ctr=cT();function ltr(o,s){if(!s.resolve?.external)return Promise.resolve();try{let f=h6e(o.schema,o.$refs._root$Ref.path+"#",o.$refs,s);return Promise.all(f)}catch(f){return Promise.reject(f)}}t(ltr,"resolveExternal");function h6e(o,s,f,d,y,x){y||(y=new Set);let P=[];if(o&&typeof o=="object"&&!ArrayBuffer.isView(o)&&!y.has(o)){y.add(o),str.default.isExternal$Ref(o)&&P.push(utr(o,s,f,d));let F=Object.keys(o);for(let J of F){let G=atr.default.join(s,J),Se=o[J];P=P.concat(h6e(Se,G,f,d,y,x))}}return P}t(h6e,"crawl");async function utr(o,s,f,d){let y=d.dereference?.externalReferenceResolution==="root",x=fM.resolve(y?fM.cwd():s,o.$ref),P=fM.stripHash(x),F=f._$refs[P];if(F)return Promise.resolve(F.value);try{let J=await(0,otr.default)(x,f,d),G=h6e(J,P+"#",f,d,new Set,!0);return Promise.all(G)}catch(J){if(!d?.continueOnError||!(0,ctr.isHandledError)(J))throw J;return f._$refs[P]&&(J.source=decodeURI(fM.stripHash(s)),J.path=fM.safePointerToPath(fM.getHash(s))),[]}}t(utr,"resolve$Ref");kE.default=ltr});var sat=or(wE=>{"use strict";var ftr=wE&&wE.__createBinding||(Object.create?function(o,s,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(s,f);(!y||("get"in y?!s.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return s[f]},"get")}),Object.defineProperty(o,d,y)}:function(o,s,f,d){d===void 0&&(d=f),o[d]=s[f]}),_tr=wE&&wE.__setModuleDefault||(Object.create?function(o,s){Object.defineProperty(o,"default",{enumerable:!0,value:s})}:function(o,s){o.default=s}),ptr=wE&&wE.__importStar||function(o){if(o&&o.__esModule)return o;var s={};if(o!=null)for(var f in o)f!=="default"&&Object.prototype.hasOwnProperty.call(o,f)&&ftr(s,o,f);return _tr(s,o),s},iat=wE&&wE.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(wE,"__esModule",{value:!0});var mce=iat(rM()),QV=iat(zV()),g6e=ptr(oT());function dtr(o,s){let f=[];y6e(o,"schema",o.$refs._root$Ref.path+"#","#",0,f,o.$refs,s),mtr(f)}t(dtr,"bundle");function y6e(o,s,f,d,y,x,P,F){let J=s===null?o:o[s];if(J&&typeof J=="object"&&!ArrayBuffer.isView(J))if(mce.default.isAllowed$Ref(J))nat(o,s,f,d,y,x,P,F);else{let G=Object.keys(J).sort((Se,de)=>Se==="definitions"?-1:de==="definitions"?1:Se.length-de.length);for(let Se of G){let de=QV.default.join(f,Se),ae=QV.default.join(d,Se),Ke=J[Se];mce.default.isAllowed$Ref(Ke)?nat(J,Se,f,ae,y,x,P,F):y6e(J,Se,de,ae,y,x,P,F)}}}t(y6e,"crawl");function nat(o,s,f,d,y,x,P,F){let J=s===null?o:o[s],G=g6e.resolve(f,J.$ref),Se=P._resolve(G,d,F);if(Se===null)return;let ae=QV.default.parse(d).length,Ke=g6e.stripHash(Se.path),$e=g6e.getHash(Se.path),Fe=Ke!==P._root$Ref.path,Gt=mce.default.isExtended$Ref(J);y+=Se.indirections;let jt=htr(x,o,s);if(jt)if(ae<jt.depth||y<jt.indirections)gtr(x,jt);else return;x.push({$ref:J,parent:o,key:s,pathFromRoot:d,depth:ae,file:Ke,hash:$e,value:Se.value,circular:Se.circular,extended:Gt,external:Fe,indirections:y}),(!jt||Fe)&&y6e(Se.value,null,Se.path,d,y+1,x,P,F)}t(nat,"inventory$Ref");function mtr(o){o.sort((y,x)=>{if(y.file!==x.file)return y.file<x.file?-1:1;if(y.hash!==x.hash)return y.hash<x.hash?-1:1;if(y.circular!==x.circular)return y.circular?-1:1;if(y.extended!==x.extended)return y.extended?1:-1;if(y.indirections!==x.indirections)return y.indirections-x.indirections;if(y.depth!==x.depth)return y.depth-x.depth;{let P=y.pathFromRoot.lastIndexOf("/definitions"),F=x.pathFromRoot.lastIndexOf("/definitions");return P!==F?F-P:y.pathFromRoot.length-x.pathFromRoot.length}});let s,f,d;for(let y of o)y.external?y.file===s&&y.hash===f?y.$ref.$ref=d:y.file===s&&y.hash.indexOf(f+"/")===0?y.$ref.$ref=QV.default.join(d,QV.default.parse(y.hash.replace(f,"#"))):(s=y.file,f=y.hash,d=y.pathFromRoot,y.$ref=y.parent[y.key]=mce.default.dereference(y.$ref,y.value),y.circular&&(y.$ref.$ref=y.pathFromRoot)):y.$ref.$ref=y.hash}t(mtr,"remap");function htr(o,s,f){for(let d of o)if(d&&d.parent===s&&d.key===f)return d}t(htr,"findInInventory");function gtr(o,s){let f=o.indexOf(s);o.splice(f,1)}t(gtr,"removeFromInventory");wE.default=dtr});var fat=or(DE=>{"use strict";var ytr=DE&&DE.__createBinding||(Object.create?function(o,s,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(s,f);(!y||("get"in y?!s.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return s[f]},"get")}),Object.defineProperty(o,d,y)}:function(o,s,f,d){d===void 0&&(d=f),o[d]=s[f]}),vtr=DE&&DE.__setModuleDefault||(Object.create?function(o,s){Object.defineProperty(o,"default",{enumerable:!0,value:s})}:function(o,s){o.default=s}),btr=DE&&DE.__importStar||function(o){if(o&&o.__esModule)return o;var s={};if(o!=null)for(var f in o)f!=="default"&&Object.prototype.hasOwnProperty.call(o,f)&&ytr(s,o,f);return vtr(s,o),s},lat=DE&&DE.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(DE,"__esModule",{value:!0});var hce=lat(rM()),aat=lat(zV()),Str=YN(),oat=btr(oT()),Ttr=cT();DE.default=xtr;function xtr(o,s){let f=Date.now(),d=v6e(o.schema,o.$refs._root$Ref.path,"#",new Set,new Set,new Map,o.$refs,s,f);o.$refs.circular=d.circular,o.schema=d.value}t(xtr,"dereference");function v6e(o,s,f,d,y,x,P,F,J){let G,Se={value:o,circular:!1};if(F&&F.timeoutMs&&Date.now()-J>F.timeoutMs)throw new Ttr.TimeoutError(F.timeoutMs);let de=F.dereference||{},ae=de.excludedPathMatcher||(()=>!1);if((de?.circular==="ignore"||!y.has(o))&&o&&typeof o=="object"&&!ArrayBuffer.isView(o)&&!ae(f)){if(d.add(o),y.add(o),hce.default.isAllowed$Ref(o,F))G=cat(o,s,f,d,y,x,P,F,J),Se.circular=G.circular,Se.value=G.value;else for(let Ke of Object.keys(o)){let $e=aat.default.join(s,Ke),Fe=aat.default.join(f,Ke);if(ae(Fe))continue;let Gt=o[Ke],jt=!1;hce.default.isAllowed$Ref(Gt,F)?(G=cat(Gt,$e,Fe,d,y,x,P,F,J),jt=G.circular,o[Ke]!==G.value&&(o[Ke]=G.value,de?.onDereference?.(Gt.$ref,o[Ke],o,Ke))):d.has(Gt)?jt=uat($e,P,F):(G=v6e(Gt,$e,Fe,d,y,x,P,F,J),jt=G.circular,o[Ke]!==G.value&&(o[Ke]=G.value)),Se.circular=Se.circular||jt}d.delete(o)}return Se}t(v6e,"crawl");function cat(o,s,f,d,y,x,P,F,J){let Se=hce.default.isExternal$Ref(o)&&F?.dereference?.externalReferenceResolution==="root",de=oat.resolve(Se?oat.cwd():s,o.$ref),ae=x.get(de);if(ae&&!ae.circular){let Pr=Object.keys(o);if(Pr.length>1){let Fn={};for(let sn of Pr)sn!=="$ref"&&!(sn in ae.value)&&(Fn[sn]=o[sn]);return{circular:ae.circular,value:Object.assign({},ae.value,Fn)}}return ae}let Ke=P._resolve(de,s,F);if(Ke===null)return{circular:!1,value:null};let $e=Ke.circular,Fe=$e||d.has(Ke.value);Fe&&uat(s,P,F);let Gt=hce.default.dereference(o,Ke.value);if(!Fe){let Pr=v6e(Gt,Ke.path,f,d,y,x,P,F,J);Fe=Pr.circular,Gt=Pr.value}Fe&&!$e&&F.dereference?.circular==="ignore"&&(Gt=o),$e&&(Gt.$ref=f);let jt={circular:Fe,value:Gt};return Object.keys(o).length===1&&x.set(de,jt),jt}t(cat,"dereference$Ref");function uat(o,s,f){if(s.circular=!0,!f.dereference.circular)throw Str.ono.reference(`Circular $ref pointer found at ${o}`);return!0}t(uat,"foundCircularReference")});var _at=or(b6e=>{"use strict";Object.defineProperty(b6e,"__esModule",{value:!0});function Etr(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:t(function(s){setTimeout(s,0)},"next")}t(Etr,"makeNext");b6e.default=Etr()});var dat=or(eH=>{"use strict";var Ctr=eH&&eH.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(eH,"__esModule",{value:!0});eH.default=ktr;var pat=Ctr(_at());function ktr(o,s){if(o){s.then(function(f){(0,pat.default)(function(){o(null,f)})},function(f){(0,pat.default)(function(){o(f)})});return}else return s}t(ktr,"maybe")});var T6e=or(zc=>{"use strict";var wtr=zc&&zc.__createBinding||(Object.create?function(o,s,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(s,f);(!y||("get"in y?!s.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return s[f]},"get")}),Object.defineProperty(o,d,y)}:function(o,s,f,d){d===void 0&&(d=f),o[d]=s[f]}),Dtr=zc&&zc.__setModuleDefault||(Object.create?function(o,s){Object.defineProperty(o,"default",{enumerable:!0,value:s})}:function(o,s){o.default=s}),Ptr=zc&&zc.__importStar||function(o){if(o&&o.__esModule)return o;var s={};if(o!=null)for(var f in o)f!=="default"&&Object.prototype.hasOwnProperty.call(o,f)&&wtr(s,o,f);return Dtr(s,o),s},xO=zc&&zc.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(zc,"__esModule",{value:!0});zc.getJsonSchemaRefParserDefaultOptions=zc.jsonSchemaParserNormalizeArgs=zc.dereferenceInternal=zc.JSONParserErrorGroup=zc.isHandledError=zc.UnmatchedParserError=zc.ParserError=zc.ResolverError=zc.MissingPointerError=zc.InvalidPointerError=zc.JSONParserError=zc.UnmatchedResolverError=zc.dereference=zc.bundle=zc.resolve=zc.parse=zc.$RefParser=void 0;var mat=xO(xit()),Atr=xO(NAe()),tH=xO(tat());zc.jsonSchemaParserNormalizeArgs=tH.default;var Ntr=xO(rat()),Itr=xO(sat()),gat=xO(fat());zc.dereferenceInternal=gat.default;var TO=Ptr(oT()),lT=cT();Object.defineProperty(zc,"JSONParserError",{enumerable:!0,get:t(function(){return lT.JSONParserError},"get")});Object.defineProperty(zc,"InvalidPointerError",{enumerable:!0,get:t(function(){return lT.InvalidPointerError},"get")});Object.defineProperty(zc,"MissingPointerError",{enumerable:!0,get:t(function(){return lT.MissingPointerError},"get")});Object.defineProperty(zc,"ResolverError",{enumerable:!0,get:t(function(){return lT.ResolverError},"get")});Object.defineProperty(zc,"ParserError",{enumerable:!0,get:t(function(){return lT.ParserError},"get")});Object.defineProperty(zc,"UnmatchedParserError",{enumerable:!0,get:t(function(){return lT.UnmatchedParserError},"get")});Object.defineProperty(zc,"UnmatchedResolverError",{enumerable:!0,get:t(function(){return lT.UnmatchedResolverError},"get")});Object.defineProperty(zc,"isHandledError",{enumerable:!0,get:t(function(){return lT.isHandledError},"get")});Object.defineProperty(zc,"JSONParserErrorGroup",{enumerable:!0,get:t(function(){return lT.JSONParserErrorGroup},"get")});var hat=YN(),PE=xO(dat()),Otr=d6e();Object.defineProperty(zc,"getJsonSchemaRefParserDefaultOptions",{enumerable:!0,get:t(function(){return Otr.getJsonSchemaRefParserDefaultOptions},"get")});var eI=class o{static{t(this,"$RefParser")}constructor(){this.schema=null,this.$refs=new mat.default}async parse(){let s=(0,tH.default)(arguments),f;if(!s.path&&!s.schema){let y=(0,hat.ono)(`Expected a file path, URL, or object. Got ${s.path||s.schema}`);return(0,PE.default)(s.callback,Promise.reject(y))}this.schema=null,this.$refs=new mat.default;let d="http";if(TO.isFileSystemPath(s.path))s.path=TO.fromFileSystemPath(s.path),d="file";else if(!s.path&&s.schema&&"$id"in s.schema&&s.schema.$id){let y=TO.parse(s.schema.$id),x=y.protocol==="https:"?443:80;s.path=`${y.protocol}//${y.hostname}:${x}`}if(s.path=TO.resolve(TO.cwd(),s.path),s.schema&&typeof s.schema=="object"){let y=this.$refs._add(s.path);y.value=s.schema,y.pathType=d,f=Promise.resolve(s.schema)}else f=(0,Atr.default)(s.path,this.$refs,s.options);try{let y=await f;if(y!==null&&typeof y=="object"&&!Buffer.isBuffer(y))return this.schema=y,(0,PE.default)(s.callback,Promise.resolve(this.schema));if(s.options.continueOnError)return this.schema=null,(0,PE.default)(s.callback,Promise.resolve(this.schema));throw hat.ono.syntax(`"${this.$refs._root$Ref.path||y}" is not a valid JSON Schema`)}catch(y){return!s.options.continueOnError||!(0,lT.isHandledError)(y)?(0,PE.default)(s.callback,Promise.reject(y)):(this.$refs._$refs[TO.stripHash(s.path)]&&this.$refs._$refs[TO.stripHash(s.path)].addError(y),(0,PE.default)(s.callback,Promise.resolve(null)))}}static parse(){let s=new o;return s.parse.apply(s,arguments)}async resolve(){let s=(0,tH.default)(arguments);try{return await this.parse(s.path,s.schema,s.options),await(0,Ntr.default)(this,s.options),S6e(this),(0,PE.default)(s.callback,Promise.resolve(this.$refs))}catch(f){return(0,PE.default)(s.callback,Promise.reject(f))}}static resolve(){let s=new o;return s.resolve.apply(s,arguments)}static bundle(){let s=new o;return s.bundle.apply(s,arguments)}async bundle(){let s=(0,tH.default)(arguments);try{return await this.resolve(s.path,s.schema,s.options),(0,Itr.default)(this,s.options),S6e(this),(0,PE.default)(s.callback,Promise.resolve(this.schema))}catch(f){return(0,PE.default)(s.callback,Promise.reject(f))}}static dereference(){let s=new o;return s.dereference.apply(s,arguments)}async dereference(){let s=(0,tH.default)(arguments);try{return await this.resolve(s.path,s.schema,s.options),(0,gat.default)(this,s.options),S6e(this),(0,PE.default)(s.callback,Promise.resolve(this.schema))}catch(f){return(0,PE.default)(s.callback,Promise.reject(f))}}};zc.$RefParser=eI;zc.default=eI;function S6e(o){if(lT.JSONParserErrorGroup.getParserErrors(o).length>0)throw new lT.JSONParserErrorGroup(o)}t(S6e,"finalize");zc.parse=eI.parse;zc.resolve=eI.resolve;zc.bundle=eI.bundle;zc.dereference=eI.dereference});var F1=or(kS=>{"use strict";kS.__esModule=!0;kS.extend=Uat;kS.indexOf=Err;kS.escapeExpression=Crr;kS.isEmpty=krr;kS.createFrame=wrr;kS.blockParams=Drr;kS.appendContextPath=Prr;var brr={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},Srr=/[&<>"'`=]/g,Trr=/[&<>"'`=]/;function xrr(o){return brr[o]}t(xrr,"escapeChar");function Uat(o){for(var s=1;s<arguments.length;s++)for(var f in arguments[s])Object.prototype.hasOwnProperty.call(arguments[s],f)&&(o[f]=arguments[s][f]);return o}t(Uat,"extend");var L6e=Object.prototype.toString;kS.toString=L6e;var F6e=t(function(s){return typeof s=="function"},"isFunction");F6e(/x/)&&(kS.isFunction=F6e=t(function(o){return typeof o=="function"&&L6e.call(o)==="[object Function]"},"isFunction"));kS.isFunction=F6e;var zat=Array.isArray||function(o){return o&&typeof o=="object"?L6e.call(o)==="[object Array]":!1};kS.isArray=zat;function Err(o,s){for(var f=0,d=o.length;f<d;f++)if(o[f]===s)return f;return-1}t(Err,"indexOf");function Crr(o){if(typeof o!="string"){if(o&&o.toHTML)return o.toHTML();if(o==null)return"";if(!o)return o+"";o=""+o}return Trr.test(o)?o.replace(Srr,xrr):o}t(Crr,"escapeExpression");function krr(o){return!o&&o!==0?!0:!!(zat(o)&&o.length===0)}t(krr,"isEmpty");function wrr(o){var s=Uat({},o);return s._parent=o,s}t(wrr,"createFrame");function Drr(o,s){return o.path=s,o}t(Drr,"blockParams");function Prr(o,s){return(o?o+".":"")+s}t(Prr,"appendContextPath")});var fT=or((Tce,$at)=>{"use strict";Tce.__esModule=!0;var R6e=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function M6e(o,s){var f=s&&s.loc,d=void 0,y=void 0,x=void 0,P=void 0;f&&(d=f.start.line,y=f.end.line,x=f.start.column,P=f.end.column,o+=" - "+d+":"+x);for(var F=Error.prototype.constructor.call(this,o),J=0;J<R6e.length;J++)this[R6e[J]]=F[R6e[J]];Error.captureStackTrace&&Error.captureStackTrace(this,M6e);try{f&&(this.lineNumber=d,this.endLineNumber=y,Object.defineProperty?(Object.defineProperty(this,"column",{value:x,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:P,enumerable:!0})):(this.column=x,this.endColumn=P))}catch{}}t(M6e,"Exception");M6e.prototype=new Error;Tce.default=M6e;$at.exports=Tce.default});var Wat=or((xce,Jat)=>{"use strict";xce.__esModule=!0;var j6e=F1();xce.default=function(o){o.registerHelper("blockHelperMissing",function(s,f){var d=f.inverse,y=f.fn;if(s===!0)return y(this);if(s===!1||s==null)return d(this);if(j6e.isArray(s))return s.length>0?(f.ids&&(f.ids=[f.name]),o.helpers.each(s,f)):d(this);if(f.data&&f.ids){var x=j6e.createFrame(f.data);x.contextPath=j6e.appendContextPath(f.data.contextPath,f.name),f={data:x}}return y(s,f)})};Jat.exports=xce.default});var Vat=or((Ece,qat)=>{"use strict";Ece.__esModule=!0;function Arr(o){return o&&o.__esModule?o:{default:o}}t(Arr,"_interopRequireDefault");var oH=F1(),Nrr=fT(),Irr=Arr(Nrr);Ece.default=function(o){o.registerHelper("each",function(s,f){if(!f)throw new Irr.default("Must pass iterator to #each");var d=f.fn,y=f.inverse,x=0,P="",F=void 0,J=void 0;f.data&&f.ids&&(J=oH.appendContextPath(f.data.contextPath,f.ids[0])+"."),oH.isFunction(s)&&(s=s.call(this)),f.data&&(F=oH.createFrame(f.data));function G($e,Fe,Gt){F&&(F.key=$e,F.index=Fe,F.first=Fe===0,F.last=!!Gt,J&&(F.contextPath=J+$e)),P=P+d(s[$e],{data:F,blockParams:oH.blockParams([s[$e],$e],[J+$e,null])})}if(t(G,"execIteration"),s&&typeof s=="object")if(oH.isArray(s))for(var Se=s.length;x<Se;x++)x in s&&G(x,x,x===s.length-1);else if(typeof Symbol=="function"&&s[Symbol.iterator]){for(var de=[],ae=s[Symbol.iterator](),Ke=ae.next();!Ke.done;Ke=ae.next())de.push(Ke.value);s=de;for(var Se=s.length;x<Se;x++)G(x,x,x===s.length-1)}else(function(){var $e=void 0;Object.keys(s).forEach(function(Fe){$e!==void 0&&G($e,x-1),$e=Fe,x++}),$e!==void 0&&G($e,x-1,!0)})();return x===0&&(P=y(this)),P})};qat.exports=Ece.default});var Gat=or((Cce,Hat)=>{"use strict";Cce.__esModule=!0;function Orr(o){return o&&o.__esModule?o:{default:o}}t(Orr,"_interopRequireDefault");var Frr=fT(),Lrr=Orr(Frr);Cce.default=function(o){o.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new Lrr.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};Hat.exports=Cce.default});var Zat=or((kce,Xat)=>{"use strict";kce.__esModule=!0;function Rrr(o){return o&&o.__esModule?o:{default:o}}t(Rrr,"_interopRequireDefault");var Yat=F1(),Mrr=fT(),Kat=Rrr(Mrr);kce.default=function(o){o.registerHelper("if",function(s,f){if(arguments.length!=2)throw new Kat.default("#if requires exactly one argument");return Yat.isFunction(s)&&(s=s.call(this)),!f.hash.includeZero&&!s||Yat.isEmpty(s)?f.inverse(this):f.fn(this)}),o.registerHelper("unless",function(s,f){if(arguments.length!=2)throw new Kat.default("#unless requires exactly one argument");return o.helpers.if.call(this,s,{fn:f.inverse,inverse:f.fn,hash:f.hash})})};Xat.exports=kce.default});var eot=or((wce,Qat)=>{"use strict";wce.__esModule=!0;wce.default=function(o){o.registerHelper("log",function(){for(var s=[void 0],f=arguments[arguments.length-1],d=0;d<arguments.length-1;d++)s.push(arguments[d]);var y=1;f.hash.level!=null?y=f.hash.level:f.data&&f.data.level!=null&&(y=f.data.level),s[0]=y,o.log.apply(o,s)})};Qat.exports=wce.default});var rot=or((Dce,tot)=>{"use strict";Dce.__esModule=!0;Dce.default=function(o){o.registerHelper("lookup",function(s,f,d){return s&&d.lookupProperty(s,f)})};tot.exports=Dce.default});var iot=or((Pce,not)=>{"use strict";Pce.__esModule=!0;function jrr(o){return o&&o.__esModule?o:{default:o}}t(jrr,"_interopRequireDefault");var cH=F1(),Brr=fT(),Urr=jrr(Brr);Pce.default=function(o){o.registerHelper("with",function(s,f){if(arguments.length!=2)throw new Urr.default("#with requires exactly one argument");cH.isFunction(s)&&(s=s.call(this));var d=f.fn;if(cH.isEmpty(s))return f.inverse(this);var y=f.data;return f.data&&f.ids&&(y=cH.createFrame(f.data),y.contextPath=cH.appendContextPath(f.data.contextPath,f.ids[0])),d(s,{data:y,blockParams:cH.blockParams([s],[y&&y.contextPath])})})};not.exports=Pce.default});var B6e=or(Ace=>{"use strict";Ace.__esModule=!0;Ace.registerDefaultHelpers=tnr;Ace.moveHelperToHooks=rnr;function CO(o){return o&&o.__esModule?o:{default:o}}t(CO,"_interopRequireDefault");var zrr=Wat(),$rr=CO(zrr),Jrr=Vat(),Wrr=CO(Jrr),qrr=Gat(),Vrr=CO(qrr),Hrr=Zat(),Grr=CO(Hrr),Yrr=eot(),Krr=CO(Yrr),Xrr=rot(),Zrr=CO(Xrr),Qrr=iot(),enr=CO(Qrr);function tnr(o){$rr.default(o),Wrr.default(o),Vrr.default(o),Grr.default(o),Krr.default(o),Zrr.default(o),enr.default(o)}t(tnr,"registerDefaultHelpers");function rnr(o,s,f){o.helpers[s]&&(o.hooks[s]=o.helpers[s],f||delete o.helpers[s])}t(rnr,"moveHelperToHooks")});var aot=or((Nce,sot)=>{"use strict";Nce.__esModule=!0;var nnr=F1();Nce.default=function(o){o.registerDecorator("inline",function(s,f,d,y){var x=s;return f.partials||(f.partials={},x=t(function(P,F){var J=d.partials;d.partials=nnr.extend({},J,f.partials);var G=s(P,F);return d.partials=J,G},"ret")),f.partials[y.args[0]]=y.fn,x})};sot.exports=Nce.default});var oot=or(U6e=>{"use strict";U6e.__esModule=!0;U6e.registerDefaultDecorators=onr;function inr(o){return o&&o.__esModule?o:{default:o}}t(inr,"_interopRequireDefault");var snr=aot(),anr=inr(snr);function onr(o){anr.default(o)}t(onr,"registerDefaultDecorators")});var z6e=or((Ice,cot)=>{"use strict";Ice.__esModule=!0;var cnr=F1(),mM={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:t(function(s){if(typeof s=="string"){var f=cnr.indexOf(mM.methodMap,s.toLowerCase());f>=0?s=f:s=parseInt(s,10)}return s},"lookupLevel"),log:t(function(s){if(s=mM.lookupLevel(s),typeof console<"u"&&mM.lookupLevel(mM.level)<=s){var f=mM.methodMap[s];console[f]||(f="log");for(var d=arguments.length,y=Array(d>1?d-1:0),x=1;x<d;x++)y[x-1]=arguments[x];console[f].apply(console,y)}},"log")};Ice.default=mM;cot.exports=Ice.default});var lot=or($6e=>{"use strict";$6e.__esModule=!0;$6e.createNewLookupObject=unr;var lnr=F1();function unr(){for(var o=arguments.length,s=Array(o),f=0;f<o;f++)s[f]=arguments[f];return lnr.extend.apply(void 0,[Object.create(null)].concat(s))}t(unr,"createNewLookupObject")});var J6e=or(lH=>{"use strict";lH.__esModule=!0;lH.createProtoAccessControl=dnr;lH.resultIsAllowed=mnr;lH.resetLoggedProperties=gnr;function fnr(o){return o&&o.__esModule?o:{default:o}}t(fnr,"_interopRequireDefault");var uot=lot(),_nr=z6e(),pnr=fnr(_nr),Oce=Object.create(null);function dnr(o){var s=Object.create(null);s.constructor=!1,s.__defineGetter__=!1,s.__defineSetter__=!1,s.__lookupGetter__=!1;var f=Object.create(null);return f.__proto__=!1,{properties:{whitelist:uot.createNewLookupObject(f,o.allowedProtoProperties),defaultValue:o.allowProtoPropertiesByDefault},methods:{whitelist:uot.createNewLookupObject(s,o.allowedProtoMethods),defaultValue:o.allowProtoMethodsByDefault}}}t(dnr,"createProtoAccessControl");function mnr(o,s,f){return fot(typeof o=="function"?s.methods:s.properties,f)}t(mnr,"resultIsAllowed");function fot(o,s){return o.whitelist[s]!==void 0?o.whitelist[s]===!0:o.defaultValue!==void 0?o.defaultValue:(hnr(s),!1)}t(fot,"checkWhiteList");function hnr(o){Oce[o]!==!0&&(Oce[o]=!0,pnr.default.log("error",'Handlebars: Access has been denied to resolve the property "'+o+`" because it is not an "own property" of its parent.
|
|
37
|
+
${ae}`),d?y.reset(ae):ae}t(jrt,"codeFrameColumns");function qGt(o,s,f,d={}){if(!Irt){Irt=!0;let x="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(x,"DeprecationWarning");else{let P=new Error(x);P.name="DeprecationWarning",console.warn(new Error(x))}}return f=Math.max(f,0),jrt(o,{start:{column:f,line:s}},d)}t(qGt,"index");yV.codeFrameColumns=jrt;yV.default=qGt;yV.highlight=Mrt});var Wrt=or((Wxr,Jrt)=>{"use strict";Jrt.exports=zrt;function zrt(o,s,f){o instanceof RegExp&&(o=Urt(o,f)),s instanceof RegExp&&(s=Urt(s,f));var d=$rt(o,s,f);return d&&{start:d[0],end:d[1],pre:f.slice(0,d[0]),body:f.slice(d[0]+o.length,d[1]),post:f.slice(d[1]+s.length)}}t(zrt,"balanced");function Urt(o,s){var f=s.match(o);return f?f[0]:null}t(Urt,"maybeMatch");zrt.range=$rt;function $rt(o,s,f){var d,y,x,P,F,J=f.indexOf(o),G=f.indexOf(s,J+1),Se=J;if(J>=0&&G>0){if(o===s)return[J,G];for(d=[],x=f.length;Se>=0&&!F;)Se==J?(d.push(Se),J=f.indexOf(o,Se+1)):d.length==1?F=[d.pop(),G]:(y=d.pop(),y<x&&(x=y,P=G),G=f.indexOf(s,Se+1)),Se=J<G&&J>=0?J:G;d.length&&(F=[x,P])}return F}t($rt,"range")});var Zrt=or((Vxr,Xrt)=>{var qrt=Wrt();Xrt.exports=GGt;var Vrt="\0SLASH"+Math.random()+"\0",Hrt="\0OPEN"+Math.random()+"\0",OPe="\0CLOSE"+Math.random()+"\0",Grt="\0COMMA"+Math.random()+"\0",Yrt="\0PERIOD"+Math.random()+"\0";function IPe(o){return parseInt(o,10)==o?parseInt(o,10):o.charCodeAt(0)}t(IPe,"numeric");function VGt(o){return o.split("\\\\").join(Vrt).split("\\{").join(Hrt).split("\\}").join(OPe).split("\\,").join(Grt).split("\\.").join(Yrt)}t(VGt,"escapeBraces");function HGt(o){return o.split(Vrt).join("\\").split(Hrt).join("{").split(OPe).join("}").split(Grt).join(",").split(Yrt).join(".")}t(HGt,"unescapeBraces");function Krt(o){if(!o)return[""];var s=[],f=qrt("{","}",o);if(!f)return o.split(",");var d=f.pre,y=f.body,x=f.post,P=d.split(",");P[P.length-1]+="{"+y+"}";var F=Krt(x);return x.length&&(P[P.length-1]+=F.shift(),P.push.apply(P,F)),s.push.apply(s,P),s}t(Krt,"parseCommaParts");function GGt(o){return o?(o.substr(0,2)==="{}"&&(o="\\{\\}"+o.substr(2)),vV(VGt(o),!0).map(HGt)):[]}t(GGt,"expandTop");function YGt(o){return"{"+o+"}"}t(YGt,"embrace");function KGt(o){return/^-?0\d/.test(o)}t(KGt,"isPadded");function XGt(o,s){return o<=s}t(XGt,"lte");function ZGt(o,s){return o>=s}t(ZGt,"gte");function vV(o,s){var f=[],d=qrt("{","}",o);if(!d)return[o];var y=d.pre,x=d.post.length?vV(d.post,!1):[""];if(/\$$/.test(d.pre))for(var P=0;P<x.length;P++){var F=y+"{"+d.body+"}"+x[P];f.push(F)}else{var J=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(d.body),G=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(d.body),Se=J||G,de=d.body.indexOf(",")>=0;if(!Se&&!de)return d.post.match(/,(?!,).*\}/)?(o=d.pre+"{"+d.body+OPe+d.post,vV(o)):[o];var ae;if(Se)ae=d.body.split(/\.\./);else if(ae=Krt(d.body),ae.length===1&&(ae=vV(ae[0],!1).map(YGt),ae.length===1))return x.map(function(nc){return d.pre+ae[0]+nc});var Ke;if(Se){var $e=IPe(ae[0]),Fe=IPe(ae[1]),Gt=Math.max(ae[0].length,ae[1].length),jt=ae.length==3?Math.abs(IPe(ae[2])):1,Pr=XGt,Fn=Fe<$e;Fn&&(jt*=-1,Pr=ZGt);var sn=ae.some(KGt);Ke=[];for(var Un=$e;Pr(Un,Fe);Un+=jt){var Er;if(G)Er=String.fromCharCode(Un),Er==="\\"&&(Er="");else if(Er=String(Un),sn){var vr=Gt-Er.length;if(vr>0){var ls=new Array(vr+1).join("0");Un<0?Er="-"+ls+Er.slice(1):Er=ls+Er}}Ke.push(Er)}}else{Ke=[];for(var Ni=0;Ni<ae.length;Ni++)Ke.push.apply(Ke,vV(ae[Ni],!1))}for(var Ni=0;Ni<Ke.length;Ni++)for(var P=0;P<x.length;P++){var F=y+Ke[Ni]+x[P];(!s||Se||F)&&f.push(F)}}return f}t(vV,"expand")});var O1=or(kS=>{"use strict";kS.__esModule=!0;kS.extend=fit;kS.indexOf=IXt;kS.escapeExpression=OXt;kS.isEmpty=FXt;kS.createFrame=LXt;kS.blockParams=RXt;kS.appendContextPath=MXt;var DXt={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},PXt=/[&<>"'`=]/g,AXt=/[&<>"'`=]/;function NXt(o){return DXt[o]}t(NXt,"escapeChar");function fit(o){for(var s=1;s<arguments.length;s++)for(var f in arguments[s])Object.prototype.hasOwnProperty.call(arguments[s],f)&&(o[f]=arguments[s][f]);return o}t(fit,"extend");var vAe=Object.prototype.toString;kS.toString=vAe;var yAe=t(function(s){return typeof s=="function"},"isFunction");yAe(/x/)&&(kS.isFunction=yAe=t(function(o){return typeof o=="function"&&vAe.call(o)==="[object Function]"},"isFunction"));kS.isFunction=yAe;var _it=Array.isArray||function(o){return o&&typeof o=="object"?vAe.call(o)==="[object Array]":!1};kS.isArray=_it;function IXt(o,s){for(var f=0,d=o.length;f<d;f++)if(o[f]===s)return f;return-1}t(IXt,"indexOf");function OXt(o){if(typeof o!="string"){if(o&&o.toHTML)return o.toHTML();if(o==null)return"";if(!o)return o+"";o=""+o}return AXt.test(o)?o.replace(PXt,NXt):o}t(OXt,"escapeExpression");function FXt(o){return!o&&o!==0?!0:!!(_it(o)&&o.length===0)}t(FXt,"isEmpty");function LXt(o){var s=fit({},o);return s._parent=o,s}t(LXt,"createFrame");function RXt(o,s){return o.path=s,o}t(RXt,"blockParams");function MXt(o,s){return(o?o+".":"")+s}t(MXt,"appendContextPath")});var oT=or((Yoe,pit)=>{"use strict";Yoe.__esModule=!0;var bAe=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function SAe(o,s){var f=s&&s.loc,d=void 0,y=void 0,x=void 0,P=void 0;f&&(d=f.start.line,y=f.end.line,x=f.start.column,P=f.end.column,o+=" - "+d+":"+x);for(var F=Error.prototype.constructor.call(this,o),J=0;J<bAe.length;J++)this[bAe[J]]=F[bAe[J]];Error.captureStackTrace&&Error.captureStackTrace(this,SAe);try{f&&(this.lineNumber=d,this.endLineNumber=y,Object.defineProperty?(Object.defineProperty(this,"column",{value:x,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:P,enumerable:!0})):(this.column=x,this.endColumn=P))}catch{}}t(SAe,"Exception");SAe.prototype=new Error;Yoe.default=SAe;pit.exports=Yoe.default});var mit=or((Koe,dit)=>{"use strict";Koe.__esModule=!0;var TAe=O1();Koe.default=function(o){o.registerHelper("blockHelperMissing",function(s,f){var d=f.inverse,y=f.fn;if(s===!0)return y(this);if(s===!1||s==null)return d(this);if(TAe.isArray(s))return s.length>0?(f.ids&&(f.ids=[f.name]),o.helpers.each(s,f)):d(this);if(f.data&&f.ids){var x=TAe.createFrame(f.data);x.contextPath=TAe.appendContextPath(f.data.contextPath,f.name),f={data:x}}return y(s,f)})};dit.exports=Koe.default});var git=or((Xoe,hit)=>{"use strict";Xoe.__esModule=!0;function jXt(o){return o&&o.__esModule?o:{default:o}}t(jXt,"_interopRequireDefault");var WV=O1(),BXt=oT(),UXt=jXt(BXt);Xoe.default=function(o){o.registerHelper("each",function(s,f){if(!f)throw new UXt.default("Must pass iterator to #each");var d=f.fn,y=f.inverse,x=0,P="",F=void 0,J=void 0;f.data&&f.ids&&(J=WV.appendContextPath(f.data.contextPath,f.ids[0])+"."),WV.isFunction(s)&&(s=s.call(this)),f.data&&(F=WV.createFrame(f.data));function G($e,Fe,Gt){F&&(F.key=$e,F.index=Fe,F.first=Fe===0,F.last=!!Gt,J&&(F.contextPath=J+$e)),P=P+d(s[$e],{data:F,blockParams:WV.blockParams([s[$e],$e],[J+$e,null])})}if(t(G,"execIteration"),s&&typeof s=="object")if(WV.isArray(s))for(var Se=s.length;x<Se;x++)x in s&&G(x,x,x===s.length-1);else if(typeof Symbol=="function"&&s[Symbol.iterator]){for(var de=[],ae=s[Symbol.iterator](),Ke=ae.next();!Ke.done;Ke=ae.next())de.push(Ke.value);s=de;for(var Se=s.length;x<Se;x++)G(x,x,x===s.length-1)}else(function(){var $e=void 0;Object.keys(s).forEach(function(Fe){$e!==void 0&&G($e,x-1),$e=Fe,x++}),$e!==void 0&&G($e,x-1,!0)})();return x===0&&(P=y(this)),P})};hit.exports=Xoe.default});var vit=or((Zoe,yit)=>{"use strict";Zoe.__esModule=!0;function zXt(o){return o&&o.__esModule?o:{default:o}}t(zXt,"_interopRequireDefault");var $Xt=oT(),JXt=zXt($Xt);Zoe.default=function(o){o.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new JXt.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};yit.exports=Zoe.default});var xit=or((Qoe,Tit)=>{"use strict";Qoe.__esModule=!0;function WXt(o){return o&&o.__esModule?o:{default:o}}t(WXt,"_interopRequireDefault");var bit=O1(),qXt=oT(),Sit=WXt(qXt);Qoe.default=function(o){o.registerHelper("if",function(s,f){if(arguments.length!=2)throw new Sit.default("#if requires exactly one argument");return bit.isFunction(s)&&(s=s.call(this)),!f.hash.includeZero&&!s||bit.isEmpty(s)?f.inverse(this):f.fn(this)}),o.registerHelper("unless",function(s,f){if(arguments.length!=2)throw new Sit.default("#unless requires exactly one argument");return o.helpers.if.call(this,s,{fn:f.inverse,inverse:f.fn,hash:f.hash})})};Tit.exports=Qoe.default});var Cit=or((ece,Eit)=>{"use strict";ece.__esModule=!0;ece.default=function(o){o.registerHelper("log",function(){for(var s=[void 0],f=arguments[arguments.length-1],d=0;d<arguments.length-1;d++)s.push(arguments[d]);var y=1;f.hash.level!=null?y=f.hash.level:f.data&&f.data.level!=null&&(y=f.data.level),s[0]=y,o.log.apply(o,s)})};Eit.exports=ece.default});var wit=or((tce,kit)=>{"use strict";tce.__esModule=!0;tce.default=function(o){o.registerHelper("lookup",function(s,f,d){return s&&d.lookupProperty(s,f)})};kit.exports=tce.default});var Pit=or((rce,Dit)=>{"use strict";rce.__esModule=!0;function VXt(o){return o&&o.__esModule?o:{default:o}}t(VXt,"_interopRequireDefault");var qV=O1(),HXt=oT(),GXt=VXt(HXt);rce.default=function(o){o.registerHelper("with",function(s,f){if(arguments.length!=2)throw new GXt.default("#with requires exactly one argument");qV.isFunction(s)&&(s=s.call(this));var d=f.fn;if(qV.isEmpty(s))return f.inverse(this);var y=f.data;return f.data&&f.ids&&(y=qV.createFrame(f.data),y.contextPath=qV.appendContextPath(f.data.contextPath,f.ids[0])),d(s,{data:y,blockParams:qV.blockParams([s],[y&&y.contextPath])})})};Dit.exports=rce.default});var xAe=or(nce=>{"use strict";nce.__esModule=!0;nce.registerDefaultHelpers=lZt;nce.moveHelperToHooks=uZt;function hO(o){return o&&o.__esModule?o:{default:o}}t(hO,"_interopRequireDefault");var YXt=mit(),KXt=hO(YXt),XXt=git(),ZXt=hO(XXt),QXt=vit(),eZt=hO(QXt),tZt=xit(),rZt=hO(tZt),nZt=Cit(),iZt=hO(nZt),sZt=wit(),aZt=hO(sZt),oZt=Pit(),cZt=hO(oZt);function lZt(o){KXt.default(o),ZXt.default(o),eZt.default(o),rZt.default(o),iZt.default(o),aZt.default(o),cZt.default(o)}t(lZt,"registerDefaultHelpers");function uZt(o,s,f){o.helpers[s]&&(o.hooks[s]=o.helpers[s],f||delete o.helpers[s])}t(uZt,"moveHelperToHooks")});var Nit=or((ice,Ait)=>{"use strict";ice.__esModule=!0;var fZt=O1();ice.default=function(o){o.registerDecorator("inline",function(s,f,d,y){var x=s;return f.partials||(f.partials={},x=t(function(P,F){var J=d.partials;d.partials=fZt.extend({},J,f.partials);var G=s(P,F);return d.partials=J,G},"ret")),f.partials[y.args[0]]=y.fn,x})};Ait.exports=ice.default});var Iit=or(EAe=>{"use strict";EAe.__esModule=!0;EAe.registerDefaultDecorators=mZt;function _Zt(o){return o&&o.__esModule?o:{default:o}}t(_Zt,"_interopRequireDefault");var pZt=Nit(),dZt=_Zt(pZt);function mZt(o){dZt.default(o)}t(mZt,"registerDefaultDecorators")});var CAe=or((sce,Oit)=>{"use strict";sce.__esModule=!0;var hZt=O1(),eM={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:t(function(s){if(typeof s=="string"){var f=hZt.indexOf(eM.methodMap,s.toLowerCase());f>=0?s=f:s=parseInt(s,10)}return s},"lookupLevel"),log:t(function(s){if(s=eM.lookupLevel(s),typeof console<"u"&&eM.lookupLevel(eM.level)<=s){var f=eM.methodMap[s];console[f]||(f="log");for(var d=arguments.length,y=Array(d>1?d-1:0),x=1;x<d;x++)y[x-1]=arguments[x];console[f].apply(console,y)}},"log")};sce.default=eM;Oit.exports=sce.default});var Fit=or(kAe=>{"use strict";kAe.__esModule=!0;kAe.createNewLookupObject=yZt;var gZt=O1();function yZt(){for(var o=arguments.length,s=Array(o),f=0;f<o;f++)s[f]=arguments[f];return gZt.extend.apply(void 0,[Object.create(null)].concat(s))}t(yZt,"createNewLookupObject")});var wAe=or(VV=>{"use strict";VV.__esModule=!0;VV.createProtoAccessControl=TZt;VV.resultIsAllowed=xZt;VV.resetLoggedProperties=CZt;function vZt(o){return o&&o.__esModule?o:{default:o}}t(vZt,"_interopRequireDefault");var Lit=Fit(),bZt=CAe(),SZt=vZt(bZt),ace=Object.create(null);function TZt(o){var s=Object.create(null);s.constructor=!1,s.__defineGetter__=!1,s.__defineSetter__=!1,s.__lookupGetter__=!1;var f=Object.create(null);return f.__proto__=!1,{properties:{whitelist:Lit.createNewLookupObject(f,o.allowedProtoProperties),defaultValue:o.allowProtoPropertiesByDefault},methods:{whitelist:Lit.createNewLookupObject(s,o.allowedProtoMethods),defaultValue:o.allowProtoMethodsByDefault}}}t(TZt,"createProtoAccessControl");function xZt(o,s,f){return Rit(typeof o=="function"?s.methods:s.properties,f)}t(xZt,"resultIsAllowed");function Rit(o,s){return o.whitelist[s]!==void 0?o.whitelist[s]===!0:o.defaultValue!==void 0?o.defaultValue:(EZt(s),!1)}t(Rit,"checkWhiteList");function EZt(o){ace[o]!==!0&&(ace[o]=!0,SZt.default.log("error",'Handlebars: Access has been denied to resolve the property "'+o+`" because it is not an "own property" of its parent.
|
|
80
38
|
You can add a runtime option to disable the check or this warning:
|
|
81
|
-
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}t(
|
|
39
|
+
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}t(EZt,"logUnexpecedPropertyAccessOnce");function CZt(){Object.keys(ace).forEach(function(o){delete ace[o]})}t(CZt,"resetLoggedProperties")});var cce=or(Ik=>{"use strict";Ik.__esModule=!0;Ik.HandlebarsEnvironment=AAe;function Mit(o){return o&&o.__esModule?o:{default:o}}t(Mit,"_interopRequireDefault");var gO=O1(),kZt=oT(),DAe=Mit(kZt),wZt=xAe(),DZt=Iit(),PZt=CAe(),oce=Mit(PZt),AZt=wAe(),NZt="4.7.8";Ik.VERSION=NZt;var IZt=8;Ik.COMPILER_REVISION=IZt;var OZt=7;Ik.LAST_COMPATIBLE_COMPILER_REVISION=OZt;var FZt={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"};Ik.REVISION_CHANGES=FZt;var PAe="[object Object]";function AAe(o,s,f){this.helpers=o||{},this.partials=s||{},this.decorators=f||{},wZt.registerDefaultHelpers(this),DZt.registerDefaultDecorators(this)}t(AAe,"HandlebarsEnvironment");AAe.prototype={constructor:AAe,logger:oce.default,log:oce.default.log,registerHelper:t(function(s,f){if(gO.toString.call(s)===PAe){if(f)throw new DAe.default("Arg not supported with multiple helpers");gO.extend(this.helpers,s)}else this.helpers[s]=f},"registerHelper"),unregisterHelper:t(function(s){delete this.helpers[s]},"unregisterHelper"),registerPartial:t(function(s,f){if(gO.toString.call(s)===PAe)gO.extend(this.partials,s);else{if(typeof f>"u")throw new DAe.default('Attempting to register a partial called "'+s+'" as undefined');this.partials[s]=f}},"registerPartial"),unregisterPartial:t(function(s){delete this.partials[s]},"unregisterPartial"),registerDecorator:t(function(s,f){if(gO.toString.call(s)===PAe){if(f)throw new DAe.default("Arg not supported with multiple decorators");gO.extend(this.decorators,s)}else this.decorators[s]=f},"registerDecorator"),unregisterDecorator:t(function(s){delete this.decorators[s]},"unregisterDecorator"),resetLoggedPropertyAccesses:t(function(){AZt.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var LZt=oce.default.log;Ik.log=LZt;Ik.createFrame=gO.createFrame;Ik.logger=oce.default});var Bit=or((lce,jit)=>{"use strict";lce.__esModule=!0;function NAe(o){this.string=o}t(NAe,"SafeString");NAe.prototype.toString=NAe.prototype.toHTML=function(){return""+this.string};lce.default=NAe;jit.exports=lce.default});var Uit=or(IAe=>{"use strict";IAe.__esModule=!0;IAe.wrapHelper=RZt;function RZt(o,s){if(typeof o!="function")return o;var f=t(function(){var y=arguments[arguments.length-1];return arguments[arguments.length-1]=s(y),o.apply(this,arguments)},"wrapper");return f}t(RZt,"wrapHelper")});var qit=or(XN=>{"use strict";XN.__esModule=!0;XN.checkRevision=$Zt;XN.template=JZt;XN.wrapProgram=uce;XN.resolvePartial=WZt;XN.invokePartial=qZt;XN.noop=Jit;function MZt(o){return o&&o.__esModule?o:{default:o}}t(MZt,"_interopRequireDefault");function jZt(o){if(o&&o.__esModule)return o;var s={};if(o!=null)for(var f in o)Object.prototype.hasOwnProperty.call(o,f)&&(s[f]=o[f]);return s.default=o,s}t(jZt,"_interopRequireWildcard");var BZt=O1(),$P=jZt(BZt),UZt=oT(),JP=MZt(UZt),WP=cce(),zit=xAe(),zZt=Uit(),$it=wAe();function $Zt(o){var s=o&&o[0]||1,f=WP.COMPILER_REVISION;if(!(s>=WP.LAST_COMPATIBLE_COMPILER_REVISION&&s<=WP.COMPILER_REVISION))if(s<WP.LAST_COMPATIBLE_COMPILER_REVISION){var d=WP.REVISION_CHANGES[f],y=WP.REVISION_CHANGES[s];throw new JP.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+d+") or downgrade your runtime to an older version ("+y+").")}else throw new JP.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+o[1]+").")}t($Zt,"checkRevision");function JZt(o,s){if(!s)throw new JP.default("No environment passed to template");if(!o||!o.main)throw new JP.default("Unknown template object: "+typeof o);o.main.decorator=o.main_d,s.VM.checkRevision(o.compiler);var f=o.compiler&&o.compiler[0]===7;function d(P,F,J){J.hash&&(F=$P.extend({},F,J.hash),J.ids&&(J.ids[0]=!0)),P=s.VM.resolvePartial.call(this,P,F,J);var G=$P.extend({},J,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),Se=s.VM.invokePartial.call(this,P,F,G);if(Se==null&&s.compile&&(J.partials[J.name]=s.compile(P,o.compilerOptions,s),Se=J.partials[J.name](F,G)),Se!=null){if(J.indent){for(var de=Se.split(`
|
|
82
40
|
`),ae=0,Ke=de.length;ae<Ke&&!(!de[ae]&&ae+1===Ke);ae++)de[ae]=J.indent+de[ae];Se=de.join(`
|
|
83
|
-
`)}return Se}else throw new HP.default("The partial "+J.name+" could not be compiled when running in runtime-only mode")}t(d,"invokePartialWrapper");var y={strict:t(function(F,J,G){if(!F||!(J in F))throw new HP.default('"'+J+'" not defined in '+F,{loc:G});return y.lookupProperty(F,J)},"strict"),lookupProperty:t(function(F,J){var G=F[J];if(G==null||Object.prototype.hasOwnProperty.call(F,J)||got.resultIsAllowed(G,y.protoAccessControl,J))return G},"lookupProperty"),lookup:t(function(F,J){for(var G=F.length,Se=0;Se<G;Se++){var de=F[Se]&&y.lookupProperty(F[Se],J);if(de!=null)return F[Se][J]}},"lookup"),lambda:t(function(F,J){return typeof F=="function"?F.call(J):F},"lambda"),escapeExpression:VP.escapeExpression,invokePartial:d,fn:t(function(F){var J=o[F];return J.decorator=o[F+"_d"],J},"fn"),programs:[],program:t(function(F,J,G,Se,de){var ae=this.programs[F],Ke=this.fn(F);return J||de||Se||G?ae=Mce(this,F,Ke,J,G,Se,de):ae||(ae=this.programs[F]=Mce(this,F,Ke)),ae},"program"),data:t(function(F,J){for(;F&&J--;)F=F._parent;return F},"data"),mergeIfNeeded:t(function(F,J){var G=F||J;return F&&J&&F!==J&&(G=VP.extend({},J,F)),G},"mergeIfNeeded"),nullContext:Object.seal({}),noop:s.VM.noop,compilerInfo:o.compiler};function x(P){var F=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],J=F.data;x._setup(F),!F.partial&&o.useData&&(J=jnr(P,J));var G=void 0,Se=o.useBlockParams?[]:void 0;o.useDepths&&(F.depths?G=P!=F.depths[0]?[P].concat(F.depths):F.depths:G=[P]);function de(ae){return""+o.main(y,ae,y.helpers,y.partials,J,Se,G)}return t(de,"main"),de=vot(o.main,de,y,F.depths||[],J,Se),de(P,F)}return t(x,"ret"),x.isTop=!0,x._setup=function(P){if(P.partial)y.protoAccessControl=P.protoAccessControl,y.helpers=P.helpers,y.partials=P.partials,y.decorators=P.decorators,y.hooks=P.hooks;else{var F=VP.extend({},s.helpers,P.helpers);Bnr(F,y),y.helpers=F,o.usePartial&&(y.partials=y.mergeIfNeeded(P.partials,s.partials)),(o.usePartial||o.useDecorators)&&(y.decorators=VP.extend({},s.decorators,P.decorators)),y.hooks={},y.protoAccessControl=got.createProtoAccessControl(P);var J=P.allowCallsToHelperMissing||f;hot.moveHelperToHooks(y,"helperMissing",J),hot.moveHelperToHooks(y,"blockHelperMissing",J)}},x._child=function(P,F,J,G){if(o.useBlockParams&&!J)throw new HP.default("must pass block params");if(o.useDepths&&!G)throw new HP.default("must pass parent depths");return Mce(y,P,o[P],F,0,J,G)},x}t(Lnr,"template");function Mce(o,s,f,d,y,x,P){function F(J){var G=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],Se=P;return P&&J!=P[0]&&!(J===o.nullContext&&P[0]===null)&&(Se=[J].concat(P)),f(o,J,o.helpers,o.partials,G.data||d,x&&[G.blockParams].concat(x),Se)}return t(F,"prog"),F=vot(f,F,o,P,d,x),F.program=s,F.depth=P?P.length:0,F.blockParams=y||0,F}t(Mce,"wrapProgram");function Rnr(o,s,f){return o?!o.call&&!f.name&&(f.name=o,o=f.partials[o]):f.name==="@partial-block"?o=f.data["partial-block"]:o=f.partials[f.name],o}t(Rnr,"resolvePartial");function Mnr(o,s,f){var d=f.data&&f.data["partial-block"];f.partial=!0,f.ids&&(f.data.contextPath=f.ids[0]||f.data.contextPath);var y=void 0;if(f.fn&&f.fn!==yot&&function(){f.data=GP.createFrame(f.data);var x=f.fn;y=f.data["partial-block"]=t(function(F){var J=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return J.data=GP.createFrame(J.data),J.data["partial-block"]=d,x(F,J)},"partialBlockWrapper"),x.partials&&(f.partials=VP.extend({},f.partials,x.partials))}(),o===void 0&&y&&(o=y),o===void 0)throw new HP.default("The partial "+f.name+" could not be found");if(o instanceof Function)return o(s,f)}t(Mnr,"invokePartial");function yot(){return""}t(yot,"noop");function jnr(o,s){return(!s||!("root"in s))&&(s=s?GP.createFrame(s):{},s.root=o),s}t(jnr,"initData");function vot(o,s,f,d,y,x){if(o.decorator){var P={};s=o.decorator(s,P,f,d&&d[0],y,x,d),VP.extend(s,P)}return s}t(vot,"executeDecorators");function Bnr(o,s){Object.keys(o).forEach(function(f){var d=o[f];o[f]=Unr(d,s)})}t(Bnr,"wrapHelpersToPassLookupProperty");function Unr(o,s){var f=s.lookupProperty;return Onr.wrapHelper(o,function(d){return VP.extend({lookupProperty:f},d)})}t(Unr,"passLookupPropertyOption")});var Y6e=or((jce,Sot)=>{"use strict";jce.__esModule=!0;jce.default=function(o){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var s=globalThis.Handlebars;o.noConflict=function(){return globalThis.Handlebars===o&&(globalThis.Handlebars=s),o}};Sot.exports=jce.default});var kot=or((Bce,Cot)=>{"use strict";Bce.__esModule=!0;function X6e(o){return o&&o.__esModule?o:{default:o}}t(X6e,"_interopRequireDefault");function Z6e(o){if(o&&o.__esModule)return o;var s={};if(o!=null)for(var f in o)Object.prototype.hasOwnProperty.call(o,f)&&(s[f]=o[f]);return s.default=o,s}t(Z6e,"_interopRequireWildcard");var znr=Lce(),Tot=Z6e(znr),$nr=dot(),Jnr=X6e($nr),Wnr=fT(),qnr=X6e(Wnr),Vnr=F1(),K6e=Z6e(Vnr),Hnr=bot(),xot=Z6e(Hnr),Gnr=Y6e(),Ynr=X6e(Gnr);function Eot(){var o=new Tot.HandlebarsEnvironment;return K6e.extend(o,Tot),o.SafeString=Jnr.default,o.Exception=qnr.default,o.Utils=K6e,o.escapeExpression=K6e.escapeExpression,o.VM=xot,o.template=function(s){return xot.template(s,o)},o}t(Eot,"create");var uH=Eot();uH.create=Eot;Ynr.default(uH);uH.default=uH;Bce.default=uH;Cot.exports=Bce.default});var Q6e=or((Uce,Dot)=>{"use strict";Uce.__esModule=!0;var wot={helpers:{helperExpression:t(function(s){return s.type==="SubExpression"||(s.type==="MustacheStatement"||s.type==="BlockStatement")&&!!(s.params&&s.params.length||s.hash)},"helperExpression"),scopedId:t(function(s){return/^\.|this\b/.test(s.original)},"scopedId"),simpleId:t(function(s){return s.parts.length===1&&!wot.helpers.scopedId(s)&&!s.depth},"simpleId")}};Uce.default=wot;Dot.exports=Uce.default});var Aot=or((zce,Pot)=>{"use strict";zce.__esModule=!0;var Knr=function(){var o={trace:t(function(){},"trace"),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:t(function(y,x,P,F,J,G,Se){var de=G.length-1;switch(J){case 1:return G[de-1];case 2:this.$=F.prepareProgram(G[de]);break;case 3:this.$=G[de];break;case 4:this.$=G[de];break;case 5:this.$=G[de];break;case 6:this.$=G[de];break;case 7:this.$=G[de];break;case 8:this.$=G[de];break;case 9:this.$={type:"CommentStatement",value:F.stripComment(G[de]),strip:F.stripFlags(G[de],G[de]),loc:F.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:G[de],value:G[de],loc:F.locInfo(this._$)};break;case 11:this.$=F.prepareRawBlock(G[de-2],G[de-1],G[de],this._$);break;case 12:this.$={path:G[de-3],params:G[de-2],hash:G[de-1]};break;case 13:this.$=F.prepareBlock(G[de-3],G[de-2],G[de-1],G[de],!1,this._$);break;case 14:this.$=F.prepareBlock(G[de-3],G[de-2],G[de-1],G[de],!0,this._$);break;case 15:this.$={open:G[de-5],path:G[de-4],params:G[de-3],hash:G[de-2],blockParams:G[de-1],strip:F.stripFlags(G[de-5],G[de])};break;case 16:this.$={path:G[de-4],params:G[de-3],hash:G[de-2],blockParams:G[de-1],strip:F.stripFlags(G[de-5],G[de])};break;case 17:this.$={path:G[de-4],params:G[de-3],hash:G[de-2],blockParams:G[de-1],strip:F.stripFlags(G[de-5],G[de])};break;case 18:this.$={strip:F.stripFlags(G[de-1],G[de-1]),program:G[de]};break;case 19:var ae=F.prepareBlock(G[de-2],G[de-1],G[de],G[de],!1,this._$),Ke=F.prepareProgram([ae],G[de-1].loc);Ke.chained=!0,this.$={strip:G[de-2].strip,program:Ke,chain:!0};break;case 20:this.$=G[de];break;case 21:this.$={path:G[de-1],strip:F.stripFlags(G[de-2],G[de])};break;case 22:this.$=F.prepareMustache(G[de-3],G[de-2],G[de-1],G[de-4],F.stripFlags(G[de-4],G[de]),this._$);break;case 23:this.$=F.prepareMustache(G[de-3],G[de-2],G[de-1],G[de-4],F.stripFlags(G[de-4],G[de]),this._$);break;case 24:this.$={type:"PartialStatement",name:G[de-3],params:G[de-2],hash:G[de-1],indent:"",strip:F.stripFlags(G[de-4],G[de]),loc:F.locInfo(this._$)};break;case 25:this.$=F.preparePartialBlock(G[de-2],G[de-1],G[de],this._$);break;case 26:this.$={path:G[de-3],params:G[de-2],hash:G[de-1],strip:F.stripFlags(G[de-4],G[de])};break;case 27:this.$=G[de];break;case 28:this.$=G[de];break;case 29:this.$={type:"SubExpression",path:G[de-3],params:G[de-2],hash:G[de-1],loc:F.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:G[de],loc:F.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:F.id(G[de-2]),value:G[de],loc:F.locInfo(this._$)};break;case 32:this.$=F.id(G[de-1]);break;case 33:this.$=G[de];break;case 34:this.$=G[de];break;case 35:this.$={type:"StringLiteral",value:G[de],original:G[de],loc:F.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(G[de]),original:Number(G[de]),loc:F.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:G[de]==="true",original:G[de]==="true",loc:F.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:F.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:F.locInfo(this._$)};break;case 40:this.$=G[de];break;case 41:this.$=G[de];break;case 42:this.$=F.preparePath(!0,G[de],this._$);break;case 43:this.$=F.preparePath(!1,G[de],this._$);break;case 44:G[de-2].push({part:F.id(G[de]),original:G[de],separator:G[de-1]}),this.$=G[de-2];break;case 45:this.$=[{part:F.id(G[de]),original:G[de]}];break;case 46:this.$=[];break;case 47:G[de-1].push(G[de]);break;case 48:this.$=[];break;case 49:G[de-1].push(G[de]);break;case 50:this.$=[];break;case 51:G[de-1].push(G[de]);break;case 58:this.$=[];break;case 59:G[de-1].push(G[de]);break;case 64:this.$=[];break;case 65:G[de-1].push(G[de]);break;case 70:this.$=[];break;case 71:G[de-1].push(G[de]);break;case 78:this.$=[];break;case 79:G[de-1].push(G[de]);break;case 82:this.$=[];break;case 83:G[de-1].push(G[de]);break;case 86:this.$=[];break;case 87:G[de-1].push(G[de]);break;case 90:this.$=[];break;case 91:G[de-1].push(G[de]);break;case 94:this.$=[];break;case 95:G[de-1].push(G[de]);break;case 98:this.$=[G[de]];break;case 99:G[de-1].push(G[de]);break;case 100:this.$=[G[de]];break;case 101:G[de-1].push(G[de]);break}},"anonymous"),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:t(function(y,x){throw new Error(y)},"parseError"),parse:t(function(y){var x=this,P=[0],F=[null],J=[],G=this.table,Se="",de=0,ae=0,Ke=0,$e=2,Fe=1;this.lexer.setInput(y),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var Gt=this.lexer.yylloc;J.push(Gt);var jt=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function Pr(Fl){P.length=P.length-2*Fl,F.length=F.length-Fl,J.length=J.length-Fl}t(Pr,"popStack");function Fn(){var Fl;return Fl=x.lexer.lex()||1,typeof Fl!="number"&&(Fl=x.symbols_[Fl]||Fl),Fl}t(Fn,"lex");for(var sn,Un,Er,vr,ls,Ni,nc={},bi,Qf,S_,Ln;;){if(Er=P[P.length-1],this.defaultActions[Er]?vr=this.defaultActions[Er]:((sn===null||typeof sn>"u")&&(sn=Fn()),vr=G[Er]&&G[Er][sn]),typeof vr>"u"||!vr.length||!vr[0]){var zE="";if(!Ke){Ln=[];for(bi in G[Er])this.terminals_[bi]&&bi>2&&Ln.push("'"+this.terminals_[bi]+"'");this.lexer.showPosition?zE="Parse error on line "+(de+1)+`:
|
|
41
|
+
`)}return Se}else throw new JP.default("The partial "+J.name+" could not be compiled when running in runtime-only mode")}t(d,"invokePartialWrapper");var y={strict:t(function(F,J,G){if(!F||!(J in F))throw new JP.default('"'+J+'" not defined in '+F,{loc:G});return y.lookupProperty(F,J)},"strict"),lookupProperty:t(function(F,J){var G=F[J];if(G==null||Object.prototype.hasOwnProperty.call(F,J)||$it.resultIsAllowed(G,y.protoAccessControl,J))return G},"lookupProperty"),lookup:t(function(F,J){for(var G=F.length,Se=0;Se<G;Se++){var de=F[Se]&&y.lookupProperty(F[Se],J);if(de!=null)return F[Se][J]}},"lookup"),lambda:t(function(F,J){return typeof F=="function"?F.call(J):F},"lambda"),escapeExpression:$P.escapeExpression,invokePartial:d,fn:t(function(F){var J=o[F];return J.decorator=o[F+"_d"],J},"fn"),programs:[],program:t(function(F,J,G,Se,de){var ae=this.programs[F],Ke=this.fn(F);return J||de||Se||G?ae=uce(this,F,Ke,J,G,Se,de):ae||(ae=this.programs[F]=uce(this,F,Ke)),ae},"program"),data:t(function(F,J){for(;F&&J--;)F=F._parent;return F},"data"),mergeIfNeeded:t(function(F,J){var G=F||J;return F&&J&&F!==J&&(G=$P.extend({},J,F)),G},"mergeIfNeeded"),nullContext:Object.seal({}),noop:s.VM.noop,compilerInfo:o.compiler};function x(P){var F=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],J=F.data;x._setup(F),!F.partial&&o.useData&&(J=VZt(P,J));var G=void 0,Se=o.useBlockParams?[]:void 0;o.useDepths&&(F.depths?G=P!=F.depths[0]?[P].concat(F.depths):F.depths:G=[P]);function de(ae){return""+o.main(y,ae,y.helpers,y.partials,J,Se,G)}return t(de,"main"),de=Wit(o.main,de,y,F.depths||[],J,Se),de(P,F)}return t(x,"ret"),x.isTop=!0,x._setup=function(P){if(P.partial)y.protoAccessControl=P.protoAccessControl,y.helpers=P.helpers,y.partials=P.partials,y.decorators=P.decorators,y.hooks=P.hooks;else{var F=$P.extend({},s.helpers,P.helpers);HZt(F,y),y.helpers=F,o.usePartial&&(y.partials=y.mergeIfNeeded(P.partials,s.partials)),(o.usePartial||o.useDecorators)&&(y.decorators=$P.extend({},s.decorators,P.decorators)),y.hooks={},y.protoAccessControl=$it.createProtoAccessControl(P);var J=P.allowCallsToHelperMissing||f;zit.moveHelperToHooks(y,"helperMissing",J),zit.moveHelperToHooks(y,"blockHelperMissing",J)}},x._child=function(P,F,J,G){if(o.useBlockParams&&!J)throw new JP.default("must pass block params");if(o.useDepths&&!G)throw new JP.default("must pass parent depths");return uce(y,P,o[P],F,0,J,G)},x}t(JZt,"template");function uce(o,s,f,d,y,x,P){function F(J){var G=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],Se=P;return P&&J!=P[0]&&!(J===o.nullContext&&P[0]===null)&&(Se=[J].concat(P)),f(o,J,o.helpers,o.partials,G.data||d,x&&[G.blockParams].concat(x),Se)}return t(F,"prog"),F=Wit(f,F,o,P,d,x),F.program=s,F.depth=P?P.length:0,F.blockParams=y||0,F}t(uce,"wrapProgram");function WZt(o,s,f){return o?!o.call&&!f.name&&(f.name=o,o=f.partials[o]):f.name==="@partial-block"?o=f.data["partial-block"]:o=f.partials[f.name],o}t(WZt,"resolvePartial");function qZt(o,s,f){var d=f.data&&f.data["partial-block"];f.partial=!0,f.ids&&(f.data.contextPath=f.ids[0]||f.data.contextPath);var y=void 0;if(f.fn&&f.fn!==Jit&&function(){f.data=WP.createFrame(f.data);var x=f.fn;y=f.data["partial-block"]=t(function(F){var J=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return J.data=WP.createFrame(J.data),J.data["partial-block"]=d,x(F,J)},"partialBlockWrapper"),x.partials&&(f.partials=$P.extend({},f.partials,x.partials))}(),o===void 0&&y&&(o=y),o===void 0)throw new JP.default("The partial "+f.name+" could not be found");if(o instanceof Function)return o(s,f)}t(qZt,"invokePartial");function Jit(){return""}t(Jit,"noop");function VZt(o,s){return(!s||!("root"in s))&&(s=s?WP.createFrame(s):{},s.root=o),s}t(VZt,"initData");function Wit(o,s,f,d,y,x){if(o.decorator){var P={};s=o.decorator(s,P,f,d&&d[0],y,x,d),$P.extend(s,P)}return s}t(Wit,"executeDecorators");function HZt(o,s){Object.keys(o).forEach(function(f){var d=o[f];o[f]=GZt(d,s)})}t(HZt,"wrapHelpersToPassLookupProperty");function GZt(o,s){var f=s.lookupProperty;return zZt.wrapHelper(o,function(d){return $P.extend({lookupProperty:f},d)})}t(GZt,"passLookupPropertyOption")});var OAe=or((fce,Vit)=>{"use strict";fce.__esModule=!0;fce.default=function(o){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var s=globalThis.Handlebars;o.noConflict=function(){return globalThis.Handlebars===o&&(globalThis.Handlebars=s),o}};Vit.exports=fce.default});var Xit=or((_ce,Kit)=>{"use strict";_ce.__esModule=!0;function LAe(o){return o&&o.__esModule?o:{default:o}}t(LAe,"_interopRequireDefault");function RAe(o){if(o&&o.__esModule)return o;var s={};if(o!=null)for(var f in o)Object.prototype.hasOwnProperty.call(o,f)&&(s[f]=o[f]);return s.default=o,s}t(RAe,"_interopRequireWildcard");var YZt=cce(),Hit=RAe(YZt),KZt=Bit(),XZt=LAe(KZt),ZZt=oT(),QZt=LAe(ZZt),eQt=O1(),FAe=RAe(eQt),tQt=qit(),Git=RAe(tQt),rQt=OAe(),nQt=LAe(rQt);function Yit(){var o=new Hit.HandlebarsEnvironment;return FAe.extend(o,Hit),o.SafeString=XZt.default,o.Exception=QZt.default,o.Utils=FAe,o.escapeExpression=FAe.escapeExpression,o.VM=Git,o.template=function(s){return Git.template(s,o)},o}t(Yit,"create");var HV=Yit();HV.create=Yit;nQt.default(HV);HV.default=HV;_ce.default=HV;Kit.exports=_ce.default});var MAe=or((pce,Qit)=>{"use strict";pce.__esModule=!0;var Zit={helpers:{helperExpression:t(function(s){return s.type==="SubExpression"||(s.type==="MustacheStatement"||s.type==="BlockStatement")&&!!(s.params&&s.params.length||s.hash)},"helperExpression"),scopedId:t(function(s){return/^\.|this\b/.test(s.original)},"scopedId"),simpleId:t(function(s){return s.parts.length===1&&!Zit.helpers.scopedId(s)&&!s.depth},"simpleId")}};pce.default=Zit;Qit.exports=pce.default});var tst=or((dce,est)=>{"use strict";dce.__esModule=!0;var iQt=function(){var o={trace:t(function(){},"trace"),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:t(function(y,x,P,F,J,G,Se){var de=G.length-1;switch(J){case 1:return G[de-1];case 2:this.$=F.prepareProgram(G[de]);break;case 3:this.$=G[de];break;case 4:this.$=G[de];break;case 5:this.$=G[de];break;case 6:this.$=G[de];break;case 7:this.$=G[de];break;case 8:this.$=G[de];break;case 9:this.$={type:"CommentStatement",value:F.stripComment(G[de]),strip:F.stripFlags(G[de],G[de]),loc:F.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:G[de],value:G[de],loc:F.locInfo(this._$)};break;case 11:this.$=F.prepareRawBlock(G[de-2],G[de-1],G[de],this._$);break;case 12:this.$={path:G[de-3],params:G[de-2],hash:G[de-1]};break;case 13:this.$=F.prepareBlock(G[de-3],G[de-2],G[de-1],G[de],!1,this._$);break;case 14:this.$=F.prepareBlock(G[de-3],G[de-2],G[de-1],G[de],!0,this._$);break;case 15:this.$={open:G[de-5],path:G[de-4],params:G[de-3],hash:G[de-2],blockParams:G[de-1],strip:F.stripFlags(G[de-5],G[de])};break;case 16:this.$={path:G[de-4],params:G[de-3],hash:G[de-2],blockParams:G[de-1],strip:F.stripFlags(G[de-5],G[de])};break;case 17:this.$={path:G[de-4],params:G[de-3],hash:G[de-2],blockParams:G[de-1],strip:F.stripFlags(G[de-5],G[de])};break;case 18:this.$={strip:F.stripFlags(G[de-1],G[de-1]),program:G[de]};break;case 19:var ae=F.prepareBlock(G[de-2],G[de-1],G[de],G[de],!1,this._$),Ke=F.prepareProgram([ae],G[de-1].loc);Ke.chained=!0,this.$={strip:G[de-2].strip,program:Ke,chain:!0};break;case 20:this.$=G[de];break;case 21:this.$={path:G[de-1],strip:F.stripFlags(G[de-2],G[de])};break;case 22:this.$=F.prepareMustache(G[de-3],G[de-2],G[de-1],G[de-4],F.stripFlags(G[de-4],G[de]),this._$);break;case 23:this.$=F.prepareMustache(G[de-3],G[de-2],G[de-1],G[de-4],F.stripFlags(G[de-4],G[de]),this._$);break;case 24:this.$={type:"PartialStatement",name:G[de-3],params:G[de-2],hash:G[de-1],indent:"",strip:F.stripFlags(G[de-4],G[de]),loc:F.locInfo(this._$)};break;case 25:this.$=F.preparePartialBlock(G[de-2],G[de-1],G[de],this._$);break;case 26:this.$={path:G[de-3],params:G[de-2],hash:G[de-1],strip:F.stripFlags(G[de-4],G[de])};break;case 27:this.$=G[de];break;case 28:this.$=G[de];break;case 29:this.$={type:"SubExpression",path:G[de-3],params:G[de-2],hash:G[de-1],loc:F.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:G[de],loc:F.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:F.id(G[de-2]),value:G[de],loc:F.locInfo(this._$)};break;case 32:this.$=F.id(G[de-1]);break;case 33:this.$=G[de];break;case 34:this.$=G[de];break;case 35:this.$={type:"StringLiteral",value:G[de],original:G[de],loc:F.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(G[de]),original:Number(G[de]),loc:F.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:G[de]==="true",original:G[de]==="true",loc:F.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:F.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:F.locInfo(this._$)};break;case 40:this.$=G[de];break;case 41:this.$=G[de];break;case 42:this.$=F.preparePath(!0,G[de],this._$);break;case 43:this.$=F.preparePath(!1,G[de],this._$);break;case 44:G[de-2].push({part:F.id(G[de]),original:G[de],separator:G[de-1]}),this.$=G[de-2];break;case 45:this.$=[{part:F.id(G[de]),original:G[de]}];break;case 46:this.$=[];break;case 47:G[de-1].push(G[de]);break;case 48:this.$=[];break;case 49:G[de-1].push(G[de]);break;case 50:this.$=[];break;case 51:G[de-1].push(G[de]);break;case 58:this.$=[];break;case 59:G[de-1].push(G[de]);break;case 64:this.$=[];break;case 65:G[de-1].push(G[de]);break;case 70:this.$=[];break;case 71:G[de-1].push(G[de]);break;case 78:this.$=[];break;case 79:G[de-1].push(G[de]);break;case 82:this.$=[];break;case 83:G[de-1].push(G[de]);break;case 86:this.$=[];break;case 87:G[de-1].push(G[de]);break;case 90:this.$=[];break;case 91:G[de-1].push(G[de]);break;case 94:this.$=[];break;case 95:G[de-1].push(G[de]);break;case 98:this.$=[G[de]];break;case 99:G[de-1].push(G[de]);break;case 100:this.$=[G[de]];break;case 101:G[de-1].push(G[de]);break}},"anonymous"),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:t(function(y,x){throw new Error(y)},"parseError"),parse:t(function(y){var x=this,P=[0],F=[null],J=[],G=this.table,Se="",de=0,ae=0,Ke=0,$e=2,Fe=1;this.lexer.setInput(y),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var Gt=this.lexer.yylloc;J.push(Gt);var jt=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function Pr(Fl){P.length=P.length-2*Fl,F.length=F.length-Fl,J.length=J.length-Fl}t(Pr,"popStack");function Fn(){var Fl;return Fl=x.lexer.lex()||1,typeof Fl!="number"&&(Fl=x.symbols_[Fl]||Fl),Fl}t(Fn,"lex");for(var sn,Un,Er,vr,ls,Ni,nc={},bi,Qf,S_,Ln;;){if(Er=P[P.length-1],this.defaultActions[Er]?vr=this.defaultActions[Er]:((sn===null||typeof sn>"u")&&(sn=Fn()),vr=G[Er]&&G[Er][sn]),typeof vr>"u"||!vr.length||!vr[0]){var zE="";if(!Ke){Ln=[];for(bi in G[Er])this.terminals_[bi]&&bi>2&&Ln.push("'"+this.terminals_[bi]+"'");this.lexer.showPosition?zE="Parse error on line "+(de+1)+`:
|
|
84
42
|
`+this.lexer.showPosition()+`
|
|
85
43
|
Expecting `+Ln.join(", ")+", got '"+(this.terminals_[sn]||sn)+"'":zE="Parse error on line "+(de+1)+": Unexpected "+(sn==1?"end of input":"'"+(this.terminals_[sn]||sn)+"'"),this.parseError(zE,{text:this.lexer.match,token:this.terminals_[sn]||sn,line:this.lexer.yylineno,loc:Gt,expected:Ln})}}if(vr[0]instanceof Array&&vr.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Er+", token: "+sn);switch(vr[0]){case 1:P.push(sn),F.push(this.lexer.yytext),J.push(this.lexer.yylloc),P.push(vr[1]),sn=null,Un?(sn=Un,Un=null):(ae=this.lexer.yyleng,Se=this.lexer.yytext,de=this.lexer.yylineno,Gt=this.lexer.yylloc,Ke>0&&Ke--);break;case 2:if(Qf=this.productions_[vr[1]][1],nc.$=F[F.length-Qf],nc._$={first_line:J[J.length-(Qf||1)].first_line,last_line:J[J.length-1].last_line,first_column:J[J.length-(Qf||1)].first_column,last_column:J[J.length-1].last_column},jt&&(nc._$.range=[J[J.length-(Qf||1)].range[0],J[J.length-1].range[1]]),Ni=this.performAction.call(nc,Se,ae,de,this.yy,vr[1],F,J),typeof Ni<"u")return Ni;Qf&&(P=P.slice(0,-1*Qf*2),F=F.slice(0,-1*Qf),J=J.slice(0,-1*Qf)),P.push(this.productions_[vr[1]][0]),F.push(nc.$),J.push(nc._$),S_=G[P[P.length-2]][P[P.length-1]],P.push(S_);break;case 3:return!0}}return!0},"parse")},s=function(){var d={EOF:1,parseError:t(function(x,P){if(this.yy.parser)this.yy.parser.parseError(x,P);else throw new Error(x)},"parseError"),setInput:t(function(x){return this._input=x,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},"setInput"),input:t(function(){var x=this._input[0];this.yytext+=x,this.yyleng++,this.offset++,this.match+=x,this.matched+=x;var P=x.match(/(?:\r\n?|\n).*/g);return P?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),x},"input"),unput:t(function(x){var P=x.length,F=x.split(/(?:\r\n?|\n)/g);this._input=x+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-P-1),this.offset-=P;var J=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),F.length-1&&(this.yylineno-=F.length-1);var G=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:F?(F.length===J.length?this.yylloc.first_column:0)+J[J.length-F.length].length-F[0].length:this.yylloc.first_column-P},this.options.ranges&&(this.yylloc.range=[G[0],G[0]+this.yyleng-P]),this},"unput"),more:t(function(){return this._more=!0,this},"more"),less:t(function(x){this.unput(this.match.slice(x))},"less"),pastInput:t(function(){var x=this.matched.substr(0,this.matched.length-this.match.length);return(x.length>20?"...":"")+x.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var x=this.match;return x.length<20&&(x+=this._input.substr(0,20-x.length)),(x.substr(0,20)+(x.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var x=this.pastInput(),P=new Array(x.length+1).join("-");return x+this.upcomingInput()+`
|
|
86
44
|
`+P+"^"},"showPosition"),next:t(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var x,P,F,J,G,Se;this._more||(this.yytext="",this.match="");for(var de=this._currentRules(),ae=0;ae<de.length&&(F=this._input.match(this.rules[de[ae]]),!(F&&(!P||F[0].length>P[0].length)&&(P=F,J=ae,!this.options.flex)));ae++);return P?(Se=P[0].match(/(?:\r\n?|\n).*/g),Se&&(this.yylineno+=Se.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Se?Se[Se.length-1].length-Se[Se.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+P[0].length},this.yytext+=P[0],this.match+=P[0],this.matches=P,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(P[0].length),this.matched+=P[0],x=this.performAction.call(this,this.yy,this,de[J],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),x||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
87
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var x=this.next();return typeof x<"u"?x:this.lex()},"lex"),begin:t(function(x){this.conditionStack.push(x)},"begin"),popState:t(function(){return this.conditionStack.pop()},"popState"),_currentRules:t(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:t(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:t(function(x){this.begin(x)},"begin")};return d.options={},d.performAction=t(function(x,P,F,J){function G(de,ae){return P.yytext=P.yytext.substring(de,P.yyleng-ae+de)}t(G,"strip");var Se=J;switch(F){case 0:if(P.yytext.slice(-2)==="\\\\"?(G(0,1),this.begin("mu")):P.yytext.slice(-1)==="\\"?(G(0,1),this.begin("emu")):this.begin("mu"),P.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:(G(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(P.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 P.yytext=G(1,2).replace(/\\"/g,'"'),80;break;case 32:return P.yytext=G(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 P.yytext=P.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),d.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\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],d.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}},d}();o.lexer=s;function f(){this.yy={}}return t(f,"Parser"),f.prototype=o,o.Parser=f,new f}();zce.default=Knr;Pot.exports=zce.default});var qce=or((Wce,Oot)=>{"use strict";Wce.__esModule=!0;function Xnr(o){return o&&o.__esModule?o:{default:o}}t(Xnr,"_interopRequireDefault");var Znr=fT(),eNe=Xnr(Znr);function $ce(){this.parents=[]}t($ce,"Visitor");$ce.prototype={constructor:$ce,mutating:!1,acceptKey:t(function(s,f){var d=this.accept(s[f]);if(this.mutating){if(d&&!$ce.prototype[d.type])throw new eNe.default('Unexpected node type "'+d.type+'" found when accepting '+f+" on "+s.type);s[f]=d}},"acceptKey"),acceptRequired:t(function(s,f){if(this.acceptKey(s,f),!s[f])throw new eNe.default(s.type+" requires "+f)},"acceptRequired"),acceptArray:t(function(s){for(var f=0,d=s.length;f<d;f++)this.acceptKey(s,f),s[f]||(s.splice(f,1),f--,d--)},"acceptArray"),accept:t(function(s){if(s){if(!this[s.type])throw new eNe.default("Unknown type: "+s.type,s);this.current&&this.parents.unshift(this.current),this.current=s;var f=this[s.type](s);if(this.current=this.parents.shift(),!this.mutating||f)return f;if(f!==!1)return s}},"accept"),Program:t(function(s){this.acceptArray(s.body)},"Program"),MustacheStatement:Jce,Decorator:Jce,BlockStatement:Not,DecoratorBlock:Not,PartialStatement:Iot,PartialBlockStatement:t(function(s){Iot.call(this,s),this.acceptKey(s,"program")},"PartialBlockStatement"),ContentStatement:t(function(){},"ContentStatement"),CommentStatement:t(function(){},"CommentStatement"),SubExpression:Jce,PathExpression:t(function(){},"PathExpression"),StringLiteral:t(function(){},"StringLiteral"),NumberLiteral:t(function(){},"NumberLiteral"),BooleanLiteral:t(function(){},"BooleanLiteral"),UndefinedLiteral:t(function(){},"UndefinedLiteral"),NullLiteral:t(function(){},"NullLiteral"),Hash:t(function(s){this.acceptArray(s.pairs)},"Hash"),HashPair:t(function(s){this.acceptRequired(s,"value")},"HashPair")};function Jce(o){this.acceptRequired(o,"path"),this.acceptArray(o.params),this.acceptKey(o,"hash")}t(Jce,"visitSubExpression");function Not(o){Jce.call(this,o),this.acceptKey(o,"program"),this.acceptKey(o,"inverse")}t(Not,"visitBlock");function Iot(o){this.acceptRequired(o,"name"),this.acceptArray(o.params),this.acceptKey(o,"hash")}t(Iot,"visitPartial");Wce.default=$ce;Oot.exports=Wce.default});var Lot=or((Vce,Fot)=>{"use strict";Vce.__esModule=!0;function Qnr(o){return o&&o.__esModule?o:{default:o}}t(Qnr,"_interopRequireDefault");var eir=qce(),tir=Qnr(eir);function Rk(){var o=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=o}t(Rk,"WhitespaceControl");Rk.prototype=new tir.default;Rk.prototype.Program=function(o){var s=!this.options.ignoreStandalone,f=!this.isRootSeen;this.isRootSeen=!0;for(var d=o.body,y=0,x=d.length;y<x;y++){var P=d[y],F=this.accept(P);if(F){var J=tNe(d,y,f),G=rNe(d,y,f),Se=F.openStandalone&&J,de=F.closeStandalone&&G,ae=F.inlineStandalone&&J&&G;F.close&&wO(d,y,!0),F.open&&sI(d,y,!0),s&&ae&&(wO(d,y),sI(d,y)&&P.type==="PartialStatement"&&(P.indent=/([ \t]+$)/.exec(d[y-1].original)[1])),s&&Se&&(wO((P.program||P.inverse).body),sI(d,y)),s&&de&&(wO(d,y),sI((P.inverse||P.program).body))}}return o};Rk.prototype.BlockStatement=Rk.prototype.DecoratorBlock=Rk.prototype.PartialBlockStatement=function(o){this.accept(o.program),this.accept(o.inverse);var s=o.program||o.inverse,f=o.program&&o.inverse,d=f,y=f;if(f&&f.chained)for(d=f.body[0].program;y.chained;)y=y.body[y.body.length-1].program;var x={open:o.openStrip.open,close:o.closeStrip.close,openStandalone:rNe(s.body),closeStandalone:tNe((d||s).body)};if(o.openStrip.close&&wO(s.body,null,!0),f){var P=o.inverseStrip;P.open&&sI(s.body,null,!0),P.close&&wO(d.body,null,!0),o.closeStrip.open&&sI(y.body,null,!0),!this.options.ignoreStandalone&&tNe(s.body)&&rNe(d.body)&&(sI(s.body),wO(d.body))}else o.closeStrip.open&&sI(s.body,null,!0);return x};Rk.prototype.Decorator=Rk.prototype.MustacheStatement=function(o){return o.strip};Rk.prototype.PartialStatement=Rk.prototype.CommentStatement=function(o){var s=o.strip||{};return{inlineStandalone:!0,open:s.open,close:s.close}};function tNe(o,s,f){s===void 0&&(s=o.length);var d=o[s-1],y=o[s-2];if(!d)return f;if(d.type==="ContentStatement")return(y||!f?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(d.original)}t(tNe,"isPrevWhitespace");function rNe(o,s,f){s===void 0&&(s=-1);var d=o[s+1],y=o[s+2];if(!d)return f;if(d.type==="ContentStatement")return(y||!f?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(d.original)}t(rNe,"isNextWhitespace");function wO(o,s,f){var d=o[s==null?0:s+1];if(!(!d||d.type!=="ContentStatement"||!f&&d.rightStripped)){var y=d.value;d.value=d.value.replace(f?/^\s+/:/^[ \t]*\r?\n?/,""),d.rightStripped=d.value!==y}}t(wO,"omitRight");function sI(o,s,f){var d=o[s==null?o.length-1:s-1];if(!(!d||d.type!=="ContentStatement"||!f&&d.leftStripped)){var y=d.value;return d.value=d.value.replace(f?/\s+$/:/[ \t]+$/,""),d.leftStripped=d.value!==y,d.leftStripped}}t(sI,"omitLeft");Vce.default=Rk;Fot.exports=Vce.default});var Rot=or(_T=>{"use strict";_T.__esModule=!0;_T.SourceLocation=iir;_T.id=sir;_T.stripFlags=air;_T.stripComment=oir;_T.preparePath=cir;_T.prepareMustache=lir;_T.prepareRawBlock=uir;_T.prepareBlock=fir;_T.prepareProgram=_ir;_T.preparePartialBlock=pir;function rir(o){return o&&o.__esModule?o:{default:o}}t(rir,"_interopRequireDefault");var nir=fT(),nNe=rir(nir);function iNe(o,s){if(s=s.path?s.path.original:s,o.path.original!==s){var f={loc:o.path.loc};throw new nNe.default(o.path.original+" doesn't match "+s,f)}}t(iNe,"validateClose");function iir(o,s){this.source=o,this.start={line:s.first_line,column:s.first_column},this.end={line:s.last_line,column:s.last_column}}t(iir,"SourceLocation");function sir(o){return/^\[.*\]$/.test(o)?o.substring(1,o.length-1):o}t(sir,"id");function air(o,s){return{open:o.charAt(2)==="~",close:s.charAt(s.length-3)==="~"}}t(air,"stripFlags");function oir(o){return o.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}t(oir,"stripComment");function cir(o,s,f){f=this.locInfo(f);for(var d=o?"@":"",y=[],x=0,P=0,F=s.length;P<F;P++){var J=s[P].part,G=s[P].original!==J;if(d+=(s[P].separator||"")+J,!G&&(J===".."||J==="."||J==="this")){if(y.length>0)throw new nNe.default("Invalid path: "+d,{loc:f});J===".."&&x++}else y.push(J)}return{type:"PathExpression",data:o,depth:x,parts:y,original:d,loc:f}}t(cir,"preparePath");function lir(o,s,f,d,y,x){var P=d.charAt(3)||d.charAt(2),F=P!=="{"&&P!=="&",J=/\*/.test(d);return{type:J?"Decorator":"MustacheStatement",path:o,params:s,hash:f,escaped:F,strip:y,loc:this.locInfo(x)}}t(lir,"prepareMustache");function uir(o,s,f,d){iNe(o,f),d=this.locInfo(d);var y={type:"Program",body:s,strip:{},loc:d};return{type:"BlockStatement",path:o.path,params:o.params,hash:o.hash,program:y,openStrip:{},inverseStrip:{},closeStrip:{},loc:d}}t(uir,"prepareRawBlock");function fir(o,s,f,d,y,x){d&&d.path&&iNe(o,d);var P=/\*/.test(o.open);s.blockParams=o.blockParams;var F=void 0,J=void 0;if(f){if(P)throw new nNe.default("Unexpected inverse block on decorator",f);f.chain&&(f.program.body[0].closeStrip=d.strip),J=f.strip,F=f.program}return y&&(y=F,F=s,s=y),{type:P?"DecoratorBlock":"BlockStatement",path:o.path,params:o.params,hash:o.hash,program:s,inverse:F,openStrip:o.strip,inverseStrip:J,closeStrip:d&&d.strip,loc:this.locInfo(x)}}t(fir,"prepareBlock");function _ir(o,s){if(!s&&o.length){var f=o[0].loc,d=o[o.length-1].loc;f&&d&&(s={source:f.source,start:{line:f.start.line,column:f.start.column},end:{line:d.end.line,column:d.end.column}})}return{type:"Program",body:o,strip:{},loc:s}}t(_ir,"prepareProgram");function pir(o,s,f,d){return iNe(o,f),{type:"PartialBlockStatement",name:o.path,params:o.params,hash:o.hash,program:s,openStrip:o.strip,closeStrip:f&&f.strip,loc:this.locInfo(d)}}t(pir,"preparePartialBlock")});var Bot=or(fH=>{"use strict";fH.__esModule=!0;fH.parseWithoutProcessing=jot;fH.parse=Sir;function dir(o){if(o&&o.__esModule)return o;var s={};if(o!=null)for(var f in o)Object.prototype.hasOwnProperty.call(o,f)&&(s[f]=o[f]);return s.default=o,s}t(dir,"_interopRequireWildcard");function Mot(o){return o&&o.__esModule?o:{default:o}}t(Mot,"_interopRequireDefault");var mir=Aot(),sNe=Mot(mir),hir=Lot(),gir=Mot(hir),yir=Rot(),vir=dir(yir),bir=F1();fH.parser=sNe.default;var Hce={};bir.extend(Hce,vir);function jot(o,s){if(o.type==="Program")return o;sNe.default.yy=Hce,Hce.locInfo=function(d){return new Hce.SourceLocation(s&&s.srcName,d)};var f=sNe.default.parse(o);return f}t(jot,"parseWithoutProcessing");function Sir(o,s){var f=jot(o,s),d=new gir.default(s);return d.accept(f)}t(Sir,"parse")});var Jot=or(mH=>{"use strict";mH.__esModule=!0;mH.Compiler=aNe;mH.precompile=Cir;mH.compile=kir;function zot(o){return o&&o.__esModule?o:{default:o}}t(zot,"_interopRequireDefault");var Tir=fT(),pH=zot(Tir),dH=F1(),xir=Q6e(),_H=zot(xir),Eir=[].slice;function aNe(){}t(aNe,"Compiler");aNe.prototype={compiler:aNe,equals:t(function(s){var f=this.opcodes.length;if(s.opcodes.length!==f)return!1;for(var d=0;d<f;d++){var y=this.opcodes[d],x=s.opcodes[d];if(y.opcode!==x.opcode||!$ot(y.args,x.args))return!1}f=this.children.length;for(var d=0;d<f;d++)if(!this.children[d].equals(s.children[d]))return!1;return!0},"equals"),guid:0,compile:t(function(s,f){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=f,this.stringParams=f.stringParams,this.trackIds=f.trackIds,f.blockParams=f.blockParams||[],f.knownHelpers=dH.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},f.knownHelpers),this.accept(s)},"compile"),compileProgram:t(function(s){var f=new this.compiler,d=f.compile(s,this.options),y=this.guid++;return this.usePartial=this.usePartial||d.usePartial,this.children[y]=d,this.useDepths=this.useDepths||d.useDepths,y},"compileProgram"),accept:t(function(s){if(!this[s.type])throw new pH.default("Unknown type: "+s.type,s);this.sourceNode.unshift(s);var f=this[s.type](s);return this.sourceNode.shift(),f},"accept"),Program:t(function(s){this.options.blockParams.unshift(s.blockParams);for(var f=s.body,d=f.length,y=0;y<d;y++)this.accept(f[y]);return this.options.blockParams.shift(),this.isSimple=d===1,this.blockParams=s.blockParams?s.blockParams.length:0,this},"Program"),BlockStatement:t(function(s){Uot(s);var f=s.program,d=s.inverse;f=f&&this.compileProgram(f),d=d&&this.compileProgram(d);var y=this.classifySexpr(s);y==="helper"?this.helperSexpr(s,f,d):y==="simple"?(this.simpleSexpr(s),this.opcode("pushProgram",f),this.opcode("pushProgram",d),this.opcode("emptyHash"),this.opcode("blockValue",s.path.original)):(this.ambiguousSexpr(s,f,d),this.opcode("pushProgram",f),this.opcode("pushProgram",d),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},"BlockStatement"),DecoratorBlock:t(function(s){var f=s.program&&this.compileProgram(s.program),d=this.setupFullMustacheParams(s,f,void 0),y=s.path;this.useDecorators=!0,this.opcode("registerDecorator",d.length,y.original)},"DecoratorBlock"),PartialStatement:t(function(s){this.usePartial=!0;var f=s.program;f&&(f=this.compileProgram(s.program));var d=s.params;if(d.length>1)throw new pH.default("Unsupported number of partial arguments: "+d.length,s);d.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):d.push({type:"PathExpression",parts:[],depth:0}));var y=s.name.original,x=s.name.type==="SubExpression";x&&this.accept(s.name),this.setupFullMustacheParams(s,f,void 0,!0);var P=s.indent||"";this.options.preventIndent&&P&&(this.opcode("appendContent",P),P=""),this.opcode("invokePartial",x,y,P),this.opcode("append")},"PartialStatement"),PartialBlockStatement:t(function(s){this.PartialStatement(s)},"PartialBlockStatement"),MustacheStatement:t(function(s){this.SubExpression(s),s.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},"MustacheStatement"),Decorator:t(function(s){this.DecoratorBlock(s)},"Decorator"),ContentStatement:t(function(s){s.value&&this.opcode("appendContent",s.value)},"ContentStatement"),CommentStatement:t(function(){},"CommentStatement"),SubExpression:t(function(s){Uot(s);var f=this.classifySexpr(s);f==="simple"?this.simpleSexpr(s):f==="helper"?this.helperSexpr(s):this.ambiguousSexpr(s)},"SubExpression"),ambiguousSexpr:t(function(s,f,d){var y=s.path,x=y.parts[0],P=f!=null||d!=null;this.opcode("getContext",y.depth),this.opcode("pushProgram",f),this.opcode("pushProgram",d),y.strict=!0,this.accept(y),this.opcode("invokeAmbiguous",x,P)},"ambiguousSexpr"),simpleSexpr:t(function(s){var f=s.path;f.strict=!0,this.accept(f),this.opcode("resolvePossibleLambda")},"simpleSexpr"),helperSexpr:t(function(s,f,d){var y=this.setupFullMustacheParams(s,f,d),x=s.path,P=x.parts[0];if(this.options.knownHelpers[P])this.opcode("invokeKnownHelper",y.length,P);else{if(this.options.knownHelpersOnly)throw new pH.default("You specified knownHelpersOnly, but used the unknown helper "+P,s);x.strict=!0,x.falsy=!0,this.accept(x),this.opcode("invokeHelper",y.length,x.original,_H.default.helpers.simpleId(x))}},"helperSexpr"),PathExpression:t(function(s){this.addDepth(s.depth),this.opcode("getContext",s.depth);var f=s.parts[0],d=_H.default.helpers.scopedId(s),y=!s.depth&&!d&&this.blockParamIndex(f);y?this.opcode("lookupBlockParam",y,s.parts):f?s.data?(this.options.data=!0,this.opcode("lookupData",s.depth,s.parts,s.strict)):this.opcode("lookupOnContext",s.parts,s.falsy,s.strict,d):this.opcode("pushContext")},"PathExpression"),StringLiteral:t(function(s){this.opcode("pushString",s.value)},"StringLiteral"),NumberLiteral:t(function(s){this.opcode("pushLiteral",s.value)},"NumberLiteral"),BooleanLiteral:t(function(s){this.opcode("pushLiteral",s.value)},"BooleanLiteral"),UndefinedLiteral:t(function(){this.opcode("pushLiteral","undefined")},"UndefinedLiteral"),NullLiteral:t(function(){this.opcode("pushLiteral","null")},"NullLiteral"),Hash:t(function(s){var f=s.pairs,d=0,y=f.length;for(this.opcode("pushHash");d<y;d++)this.pushParam(f[d].value);for(;d--;)this.opcode("assignToHash",f[d].key);this.opcode("popHash")},"Hash"),opcode:t(function(s){this.opcodes.push({opcode:s,args:Eir.call(arguments,1),loc:this.sourceNode[0].loc})},"opcode"),addDepth:t(function(s){s&&(this.useDepths=!0)},"addDepth"),classifySexpr:t(function(s){var f=_H.default.helpers.simpleId(s.path),d=f&&!!this.blockParamIndex(s.path.parts[0]),y=!d&&_H.default.helpers.helperExpression(s),x=!d&&(y||f);if(x&&!y){var P=s.path.parts[0],F=this.options;F.knownHelpers[P]?y=!0:F.knownHelpersOnly&&(x=!1)}return y?"helper":x?"ambiguous":"simple"},"classifySexpr"),pushParams:t(function(s){for(var f=0,d=s.length;f<d;f++)this.pushParam(s[f])},"pushParams"),pushParam:t(function(s){var f=s.value!=null?s.value:s.original||"";if(this.stringParams)f.replace&&(f=f.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),s.depth&&this.addDepth(s.depth),this.opcode("getContext",s.depth||0),this.opcode("pushStringParam",f,s.type),s.type==="SubExpression"&&this.accept(s);else{if(this.trackIds){var d=void 0;if(s.parts&&!_H.default.helpers.scopedId(s)&&!s.depth&&(d=this.blockParamIndex(s.parts[0])),d){var y=s.parts.slice(1).join(".");this.opcode("pushId","BlockParam",d,y)}else f=s.original||f,f.replace&&(f=f.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",s.type,f)}this.accept(s)}},"pushParam"),setupFullMustacheParams:t(function(s,f,d,y){var x=s.params;return this.pushParams(x),this.opcode("pushProgram",f),this.opcode("pushProgram",d),s.hash?this.accept(s.hash):this.opcode("emptyHash",y),x},"setupFullMustacheParams"),blockParamIndex:t(function(s){for(var f=0,d=this.options.blockParams.length;f<d;f++){var y=this.options.blockParams[f],x=y&&dH.indexOf(y,s);if(y&&x>=0)return[f,x]}},"blockParamIndex")};function Cir(o,s,f){if(o==null||typeof o!="string"&&o.type!=="Program")throw new pH.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+o);s=s||{},"data"in s||(s.data=!0),s.compat&&(s.useDepths=!0);var d=f.parse(o,s),y=new f.Compiler().compile(d,s);return new f.JavaScriptCompiler().compile(y,s)}t(Cir,"precompile");function kir(o,s,f){if(s===void 0&&(s={}),o==null||typeof o!="string"&&o.type!=="Program")throw new pH.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+o);s=dH.extend({},s),"data"in s||(s.data=!0),s.compat&&(s.useDepths=!0);var d=void 0;function y(){var P=f.parse(o,s),F=new f.Compiler().compile(P,s),J=new f.JavaScriptCompiler().compile(F,s,void 0,!0);return f.template(J)}t(y,"compileInput");function x(P,F){return d||(d=y()),d.call(this,P,F)}return t(x,"ret"),x._setup=function(P){return d||(d=y()),d._setup(P)},x._child=function(P,F,J,G){return d||(d=y()),d._child(P,F,J,G)},x}t(kir,"compile");function $ot(o,s){if(o===s)return!0;if(dH.isArray(o)&&dH.isArray(s)&&o.length===s.length){for(var f=0;f<o.length;f++)if(!$ot(o[f],s[f]))return!1;return!0}}t($ot,"argEquals");function Uot(o){if(!o.path.parts){var s=o.path;o.path={type:"PathExpression",data:!1,depth:0,parts:[s.original+""],original:s.original+"",loc:s.loc}}}t(Uot,"transformLiteralToPath")});var Hot=or((Gce,Vot)=>{"use strict";Gce.__esModule=!0;var cNe=F1(),DO=void 0;try{(typeof define!="function"||!define.amd)&&(Wot=_o("source-map"),DO=Wot.SourceNode)}catch{}var Wot;DO||(DO=t(function(o,s,f,d){this.src="",d&&this.add(d)},"SourceNode"),DO.prototype={add:t(function(s){cNe.isArray(s)&&(s=s.join("")),this.src+=s},"add"),prepend:t(function(s){cNe.isArray(s)&&(s=s.join("")),this.src=s+this.src},"prepend"),toStringWithSourceMap:t(function(){return{code:this.toString()}},"toStringWithSourceMap"),toString:t(function(){return this.src},"toString")});function oNe(o,s,f){if(cNe.isArray(o)){for(var d=[],y=0,x=o.length;y<x;y++)d.push(s.wrap(o[y],f));return d}else if(typeof o=="boolean"||typeof o=="number")return o+"";return o}t(oNe,"castChunk");function qot(o){this.srcFile=o,this.source=[]}t(qot,"CodeGen");qot.prototype={isEmpty:t(function(){return!this.source.length},"isEmpty"),prepend:t(function(s,f){this.source.unshift(this.wrap(s,f))},"prepend"),push:t(function(s,f){this.source.push(this.wrap(s,f))},"push"),merge:t(function(){var s=this.empty();return this.each(function(f){s.add([" ",f,`
|
|
88
|
-
`])}),s},"merge"),each:t(function(s){for(var f=0,d=this.source.length;f<d;f++)s(this.source[f])},"each"),empty:t(function(){var s=this.currentLocation||{start:{}};return new
|
|
45
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var x=this.next();return typeof x<"u"?x:this.lex()},"lex"),begin:t(function(x){this.conditionStack.push(x)},"begin"),popState:t(function(){return this.conditionStack.pop()},"popState"),_currentRules:t(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:t(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:t(function(x){this.begin(x)},"begin")};return d.options={},d.performAction=t(function(x,P,F,J){function G(de,ae){return P.yytext=P.yytext.substring(de,P.yyleng-ae+de)}t(G,"strip");var Se=J;switch(F){case 0:if(P.yytext.slice(-2)==="\\\\"?(G(0,1),this.begin("mu")):P.yytext.slice(-1)==="\\"?(G(0,1),this.begin("emu")):this.begin("mu"),P.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:(G(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(P.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 P.yytext=G(1,2).replace(/\\"/g,'"'),80;break;case 32:return P.yytext=G(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 P.yytext=P.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),d.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\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],d.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}},d}();o.lexer=s;function f(){this.yy={}}return t(f,"Parser"),f.prototype=o,o.Parser=f,new f}();dce.default=iQt;est.exports=dce.default});var yce=or((gce,ist)=>{"use strict";gce.__esModule=!0;function sQt(o){return o&&o.__esModule?o:{default:o}}t(sQt,"_interopRequireDefault");var aQt=oT(),jAe=sQt(aQt);function mce(){this.parents=[]}t(mce,"Visitor");mce.prototype={constructor:mce,mutating:!1,acceptKey:t(function(s,f){var d=this.accept(s[f]);if(this.mutating){if(d&&!mce.prototype[d.type])throw new jAe.default('Unexpected node type "'+d.type+'" found when accepting '+f+" on "+s.type);s[f]=d}},"acceptKey"),acceptRequired:t(function(s,f){if(this.acceptKey(s,f),!s[f])throw new jAe.default(s.type+" requires "+f)},"acceptRequired"),acceptArray:t(function(s){for(var f=0,d=s.length;f<d;f++)this.acceptKey(s,f),s[f]||(s.splice(f,1),f--,d--)},"acceptArray"),accept:t(function(s){if(s){if(!this[s.type])throw new jAe.default("Unknown type: "+s.type,s);this.current&&this.parents.unshift(this.current),this.current=s;var f=this[s.type](s);if(this.current=this.parents.shift(),!this.mutating||f)return f;if(f!==!1)return s}},"accept"),Program:t(function(s){this.acceptArray(s.body)},"Program"),MustacheStatement:hce,Decorator:hce,BlockStatement:rst,DecoratorBlock:rst,PartialStatement:nst,PartialBlockStatement:t(function(s){nst.call(this,s),this.acceptKey(s,"program")},"PartialBlockStatement"),ContentStatement:t(function(){},"ContentStatement"),CommentStatement:t(function(){},"CommentStatement"),SubExpression:hce,PathExpression:t(function(){},"PathExpression"),StringLiteral:t(function(){},"StringLiteral"),NumberLiteral:t(function(){},"NumberLiteral"),BooleanLiteral:t(function(){},"BooleanLiteral"),UndefinedLiteral:t(function(){},"UndefinedLiteral"),NullLiteral:t(function(){},"NullLiteral"),Hash:t(function(s){this.acceptArray(s.pairs)},"Hash"),HashPair:t(function(s){this.acceptRequired(s,"value")},"HashPair")};function hce(o){this.acceptRequired(o,"path"),this.acceptArray(o.params),this.acceptKey(o,"hash")}t(hce,"visitSubExpression");function rst(o){hce.call(this,o),this.acceptKey(o,"program"),this.acceptKey(o,"inverse")}t(rst,"visitBlock");function nst(o){this.acceptRequired(o,"name"),this.acceptArray(o.params),this.acceptKey(o,"hash")}t(nst,"visitPartial");gce.default=mce;ist.exports=gce.default});var ast=or((vce,sst)=>{"use strict";vce.__esModule=!0;function oQt(o){return o&&o.__esModule?o:{default:o}}t(oQt,"_interopRequireDefault");var cQt=yce(),lQt=oQt(cQt);function Ok(){var o=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=o}t(Ok,"WhitespaceControl");Ok.prototype=new lQt.default;Ok.prototype.Program=function(o){var s=!this.options.ignoreStandalone,f=!this.isRootSeen;this.isRootSeen=!0;for(var d=o.body,y=0,x=d.length;y<x;y++){var P=d[y],F=this.accept(P);if(F){var J=BAe(d,y,f),G=UAe(d,y,f),Se=F.openStandalone&&J,de=F.closeStandalone&&G,ae=F.inlineStandalone&&J&&G;F.close&&yO(d,y,!0),F.open&&ZN(d,y,!0),s&&ae&&(yO(d,y),ZN(d,y)&&P.type==="PartialStatement"&&(P.indent=/([ \t]+$)/.exec(d[y-1].original)[1])),s&&Se&&(yO((P.program||P.inverse).body),ZN(d,y)),s&&de&&(yO(d,y),ZN((P.inverse||P.program).body))}}return o};Ok.prototype.BlockStatement=Ok.prototype.DecoratorBlock=Ok.prototype.PartialBlockStatement=function(o){this.accept(o.program),this.accept(o.inverse);var s=o.program||o.inverse,f=o.program&&o.inverse,d=f,y=f;if(f&&f.chained)for(d=f.body[0].program;y.chained;)y=y.body[y.body.length-1].program;var x={open:o.openStrip.open,close:o.closeStrip.close,openStandalone:UAe(s.body),closeStandalone:BAe((d||s).body)};if(o.openStrip.close&&yO(s.body,null,!0),f){var P=o.inverseStrip;P.open&&ZN(s.body,null,!0),P.close&&yO(d.body,null,!0),o.closeStrip.open&&ZN(y.body,null,!0),!this.options.ignoreStandalone&&BAe(s.body)&&UAe(d.body)&&(ZN(s.body),yO(d.body))}else o.closeStrip.open&&ZN(s.body,null,!0);return x};Ok.prototype.Decorator=Ok.prototype.MustacheStatement=function(o){return o.strip};Ok.prototype.PartialStatement=Ok.prototype.CommentStatement=function(o){var s=o.strip||{};return{inlineStandalone:!0,open:s.open,close:s.close}};function BAe(o,s,f){s===void 0&&(s=o.length);var d=o[s-1],y=o[s-2];if(!d)return f;if(d.type==="ContentStatement")return(y||!f?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(d.original)}t(BAe,"isPrevWhitespace");function UAe(o,s,f){s===void 0&&(s=-1);var d=o[s+1],y=o[s+2];if(!d)return f;if(d.type==="ContentStatement")return(y||!f?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(d.original)}t(UAe,"isNextWhitespace");function yO(o,s,f){var d=o[s==null?0:s+1];if(!(!d||d.type!=="ContentStatement"||!f&&d.rightStripped)){var y=d.value;d.value=d.value.replace(f?/^\s+/:/^[ \t]*\r?\n?/,""),d.rightStripped=d.value!==y}}t(yO,"omitRight");function ZN(o,s,f){var d=o[s==null?o.length-1:s-1];if(!(!d||d.type!=="ContentStatement"||!f&&d.leftStripped)){var y=d.value;return d.value=d.value.replace(f?/\s+$/:/[ \t]+$/,""),d.leftStripped=d.value!==y,d.leftStripped}}t(ZN,"omitLeft");vce.default=Ok;sst.exports=vce.default});var ost=or(cT=>{"use strict";cT.__esModule=!0;cT.SourceLocation=_Qt;cT.id=pQt;cT.stripFlags=dQt;cT.stripComment=mQt;cT.preparePath=hQt;cT.prepareMustache=gQt;cT.prepareRawBlock=yQt;cT.prepareBlock=vQt;cT.prepareProgram=bQt;cT.preparePartialBlock=SQt;function uQt(o){return o&&o.__esModule?o:{default:o}}t(uQt,"_interopRequireDefault");var fQt=oT(),zAe=uQt(fQt);function $Ae(o,s){if(s=s.path?s.path.original:s,o.path.original!==s){var f={loc:o.path.loc};throw new zAe.default(o.path.original+" doesn't match "+s,f)}}t($Ae,"validateClose");function _Qt(o,s){this.source=o,this.start={line:s.first_line,column:s.first_column},this.end={line:s.last_line,column:s.last_column}}t(_Qt,"SourceLocation");function pQt(o){return/^\[.*\]$/.test(o)?o.substring(1,o.length-1):o}t(pQt,"id");function dQt(o,s){return{open:o.charAt(2)==="~",close:s.charAt(s.length-3)==="~"}}t(dQt,"stripFlags");function mQt(o){return o.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}t(mQt,"stripComment");function hQt(o,s,f){f=this.locInfo(f);for(var d=o?"@":"",y=[],x=0,P=0,F=s.length;P<F;P++){var J=s[P].part,G=s[P].original!==J;if(d+=(s[P].separator||"")+J,!G&&(J===".."||J==="."||J==="this")){if(y.length>0)throw new zAe.default("Invalid path: "+d,{loc:f});J===".."&&x++}else y.push(J)}return{type:"PathExpression",data:o,depth:x,parts:y,original:d,loc:f}}t(hQt,"preparePath");function gQt(o,s,f,d,y,x){var P=d.charAt(3)||d.charAt(2),F=P!=="{"&&P!=="&",J=/\*/.test(d);return{type:J?"Decorator":"MustacheStatement",path:o,params:s,hash:f,escaped:F,strip:y,loc:this.locInfo(x)}}t(gQt,"prepareMustache");function yQt(o,s,f,d){$Ae(o,f),d=this.locInfo(d);var y={type:"Program",body:s,strip:{},loc:d};return{type:"BlockStatement",path:o.path,params:o.params,hash:o.hash,program:y,openStrip:{},inverseStrip:{},closeStrip:{},loc:d}}t(yQt,"prepareRawBlock");function vQt(o,s,f,d,y,x){d&&d.path&&$Ae(o,d);var P=/\*/.test(o.open);s.blockParams=o.blockParams;var F=void 0,J=void 0;if(f){if(P)throw new zAe.default("Unexpected inverse block on decorator",f);f.chain&&(f.program.body[0].closeStrip=d.strip),J=f.strip,F=f.program}return y&&(y=F,F=s,s=y),{type:P?"DecoratorBlock":"BlockStatement",path:o.path,params:o.params,hash:o.hash,program:s,inverse:F,openStrip:o.strip,inverseStrip:J,closeStrip:d&&d.strip,loc:this.locInfo(x)}}t(vQt,"prepareBlock");function bQt(o,s){if(!s&&o.length){var f=o[0].loc,d=o[o.length-1].loc;f&&d&&(s={source:f.source,start:{line:f.start.line,column:f.start.column},end:{line:d.end.line,column:d.end.column}})}return{type:"Program",body:o,strip:{},loc:s}}t(bQt,"prepareProgram");function SQt(o,s,f,d){return $Ae(o,f),{type:"PartialBlockStatement",name:o.path,params:o.params,hash:o.hash,program:s,openStrip:o.strip,closeStrip:f&&f.strip,loc:this.locInfo(d)}}t(SQt,"preparePartialBlock")});var ust=or(GV=>{"use strict";GV.__esModule=!0;GV.parseWithoutProcessing=lst;GV.parse=PQt;function TQt(o){if(o&&o.__esModule)return o;var s={};if(o!=null)for(var f in o)Object.prototype.hasOwnProperty.call(o,f)&&(s[f]=o[f]);return s.default=o,s}t(TQt,"_interopRequireWildcard");function cst(o){return o&&o.__esModule?o:{default:o}}t(cst,"_interopRequireDefault");var xQt=tst(),JAe=cst(xQt),EQt=ast(),CQt=cst(EQt),kQt=ost(),wQt=TQt(kQt),DQt=O1();GV.parser=JAe.default;var bce={};DQt.extend(bce,wQt);function lst(o,s){if(o.type==="Program")return o;JAe.default.yy=bce,bce.locInfo=function(d){return new bce.SourceLocation(s&&s.srcName,d)};var f=JAe.default.parse(o);return f}t(lst,"parseWithoutProcessing");function PQt(o,s){var f=lst(o,s),d=new CQt.default(s);return d.accept(f)}t(PQt,"parse")});var dst=or(ZV=>{"use strict";ZV.__esModule=!0;ZV.Compiler=WAe;ZV.precompile=OQt;ZV.compile=FQt;function _st(o){return o&&o.__esModule?o:{default:o}}t(_st,"_interopRequireDefault");var AQt=oT(),KV=_st(AQt),XV=O1(),NQt=MAe(),YV=_st(NQt),IQt=[].slice;function WAe(){}t(WAe,"Compiler");WAe.prototype={compiler:WAe,equals:t(function(s){var f=this.opcodes.length;if(s.opcodes.length!==f)return!1;for(var d=0;d<f;d++){var y=this.opcodes[d],x=s.opcodes[d];if(y.opcode!==x.opcode||!pst(y.args,x.args))return!1}f=this.children.length;for(var d=0;d<f;d++)if(!this.children[d].equals(s.children[d]))return!1;return!0},"equals"),guid:0,compile:t(function(s,f){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=f,this.stringParams=f.stringParams,this.trackIds=f.trackIds,f.blockParams=f.blockParams||[],f.knownHelpers=XV.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},f.knownHelpers),this.accept(s)},"compile"),compileProgram:t(function(s){var f=new this.compiler,d=f.compile(s,this.options),y=this.guid++;return this.usePartial=this.usePartial||d.usePartial,this.children[y]=d,this.useDepths=this.useDepths||d.useDepths,y},"compileProgram"),accept:t(function(s){if(!this[s.type])throw new KV.default("Unknown type: "+s.type,s);this.sourceNode.unshift(s);var f=this[s.type](s);return this.sourceNode.shift(),f},"accept"),Program:t(function(s){this.options.blockParams.unshift(s.blockParams);for(var f=s.body,d=f.length,y=0;y<d;y++)this.accept(f[y]);return this.options.blockParams.shift(),this.isSimple=d===1,this.blockParams=s.blockParams?s.blockParams.length:0,this},"Program"),BlockStatement:t(function(s){fst(s);var f=s.program,d=s.inverse;f=f&&this.compileProgram(f),d=d&&this.compileProgram(d);var y=this.classifySexpr(s);y==="helper"?this.helperSexpr(s,f,d):y==="simple"?(this.simpleSexpr(s),this.opcode("pushProgram",f),this.opcode("pushProgram",d),this.opcode("emptyHash"),this.opcode("blockValue",s.path.original)):(this.ambiguousSexpr(s,f,d),this.opcode("pushProgram",f),this.opcode("pushProgram",d),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},"BlockStatement"),DecoratorBlock:t(function(s){var f=s.program&&this.compileProgram(s.program),d=this.setupFullMustacheParams(s,f,void 0),y=s.path;this.useDecorators=!0,this.opcode("registerDecorator",d.length,y.original)},"DecoratorBlock"),PartialStatement:t(function(s){this.usePartial=!0;var f=s.program;f&&(f=this.compileProgram(s.program));var d=s.params;if(d.length>1)throw new KV.default("Unsupported number of partial arguments: "+d.length,s);d.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):d.push({type:"PathExpression",parts:[],depth:0}));var y=s.name.original,x=s.name.type==="SubExpression";x&&this.accept(s.name),this.setupFullMustacheParams(s,f,void 0,!0);var P=s.indent||"";this.options.preventIndent&&P&&(this.opcode("appendContent",P),P=""),this.opcode("invokePartial",x,y,P),this.opcode("append")},"PartialStatement"),PartialBlockStatement:t(function(s){this.PartialStatement(s)},"PartialBlockStatement"),MustacheStatement:t(function(s){this.SubExpression(s),s.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},"MustacheStatement"),Decorator:t(function(s){this.DecoratorBlock(s)},"Decorator"),ContentStatement:t(function(s){s.value&&this.opcode("appendContent",s.value)},"ContentStatement"),CommentStatement:t(function(){},"CommentStatement"),SubExpression:t(function(s){fst(s);var f=this.classifySexpr(s);f==="simple"?this.simpleSexpr(s):f==="helper"?this.helperSexpr(s):this.ambiguousSexpr(s)},"SubExpression"),ambiguousSexpr:t(function(s,f,d){var y=s.path,x=y.parts[0],P=f!=null||d!=null;this.opcode("getContext",y.depth),this.opcode("pushProgram",f),this.opcode("pushProgram",d),y.strict=!0,this.accept(y),this.opcode("invokeAmbiguous",x,P)},"ambiguousSexpr"),simpleSexpr:t(function(s){var f=s.path;f.strict=!0,this.accept(f),this.opcode("resolvePossibleLambda")},"simpleSexpr"),helperSexpr:t(function(s,f,d){var y=this.setupFullMustacheParams(s,f,d),x=s.path,P=x.parts[0];if(this.options.knownHelpers[P])this.opcode("invokeKnownHelper",y.length,P);else{if(this.options.knownHelpersOnly)throw new KV.default("You specified knownHelpersOnly, but used the unknown helper "+P,s);x.strict=!0,x.falsy=!0,this.accept(x),this.opcode("invokeHelper",y.length,x.original,YV.default.helpers.simpleId(x))}},"helperSexpr"),PathExpression:t(function(s){this.addDepth(s.depth),this.opcode("getContext",s.depth);var f=s.parts[0],d=YV.default.helpers.scopedId(s),y=!s.depth&&!d&&this.blockParamIndex(f);y?this.opcode("lookupBlockParam",y,s.parts):f?s.data?(this.options.data=!0,this.opcode("lookupData",s.depth,s.parts,s.strict)):this.opcode("lookupOnContext",s.parts,s.falsy,s.strict,d):this.opcode("pushContext")},"PathExpression"),StringLiteral:t(function(s){this.opcode("pushString",s.value)},"StringLiteral"),NumberLiteral:t(function(s){this.opcode("pushLiteral",s.value)},"NumberLiteral"),BooleanLiteral:t(function(s){this.opcode("pushLiteral",s.value)},"BooleanLiteral"),UndefinedLiteral:t(function(){this.opcode("pushLiteral","undefined")},"UndefinedLiteral"),NullLiteral:t(function(){this.opcode("pushLiteral","null")},"NullLiteral"),Hash:t(function(s){var f=s.pairs,d=0,y=f.length;for(this.opcode("pushHash");d<y;d++)this.pushParam(f[d].value);for(;d--;)this.opcode("assignToHash",f[d].key);this.opcode("popHash")},"Hash"),opcode:t(function(s){this.opcodes.push({opcode:s,args:IQt.call(arguments,1),loc:this.sourceNode[0].loc})},"opcode"),addDepth:t(function(s){s&&(this.useDepths=!0)},"addDepth"),classifySexpr:t(function(s){var f=YV.default.helpers.simpleId(s.path),d=f&&!!this.blockParamIndex(s.path.parts[0]),y=!d&&YV.default.helpers.helperExpression(s),x=!d&&(y||f);if(x&&!y){var P=s.path.parts[0],F=this.options;F.knownHelpers[P]?y=!0:F.knownHelpersOnly&&(x=!1)}return y?"helper":x?"ambiguous":"simple"},"classifySexpr"),pushParams:t(function(s){for(var f=0,d=s.length;f<d;f++)this.pushParam(s[f])},"pushParams"),pushParam:t(function(s){var f=s.value!=null?s.value:s.original||"";if(this.stringParams)f.replace&&(f=f.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),s.depth&&this.addDepth(s.depth),this.opcode("getContext",s.depth||0),this.opcode("pushStringParam",f,s.type),s.type==="SubExpression"&&this.accept(s);else{if(this.trackIds){var d=void 0;if(s.parts&&!YV.default.helpers.scopedId(s)&&!s.depth&&(d=this.blockParamIndex(s.parts[0])),d){var y=s.parts.slice(1).join(".");this.opcode("pushId","BlockParam",d,y)}else f=s.original||f,f.replace&&(f=f.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",s.type,f)}this.accept(s)}},"pushParam"),setupFullMustacheParams:t(function(s,f,d,y){var x=s.params;return this.pushParams(x),this.opcode("pushProgram",f),this.opcode("pushProgram",d),s.hash?this.accept(s.hash):this.opcode("emptyHash",y),x},"setupFullMustacheParams"),blockParamIndex:t(function(s){for(var f=0,d=this.options.blockParams.length;f<d;f++){var y=this.options.blockParams[f],x=y&&XV.indexOf(y,s);if(y&&x>=0)return[f,x]}},"blockParamIndex")};function OQt(o,s,f){if(o==null||typeof o!="string"&&o.type!=="Program")throw new KV.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+o);s=s||{},"data"in s||(s.data=!0),s.compat&&(s.useDepths=!0);var d=f.parse(o,s),y=new f.Compiler().compile(d,s);return new f.JavaScriptCompiler().compile(y,s)}t(OQt,"precompile");function FQt(o,s,f){if(s===void 0&&(s={}),o==null||typeof o!="string"&&o.type!=="Program")throw new KV.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+o);s=XV.extend({},s),"data"in s||(s.data=!0),s.compat&&(s.useDepths=!0);var d=void 0;function y(){var P=f.parse(o,s),F=new f.Compiler().compile(P,s),J=new f.JavaScriptCompiler().compile(F,s,void 0,!0);return f.template(J)}t(y,"compileInput");function x(P,F){return d||(d=y()),d.call(this,P,F)}return t(x,"ret"),x._setup=function(P){return d||(d=y()),d._setup(P)},x._child=function(P,F,J,G){return d||(d=y()),d._child(P,F,J,G)},x}t(FQt,"compile");function pst(o,s){if(o===s)return!0;if(XV.isArray(o)&&XV.isArray(s)&&o.length===s.length){for(var f=0;f<o.length;f++)if(!pst(o[f],s[f]))return!1;return!0}}t(pst,"argEquals");function fst(o){if(!o.path.parts){var s=o.path;o.path={type:"PathExpression",data:!1,depth:0,parts:[s.original+""],original:s.original+"",loc:s.loc}}}t(fst,"transformLiteralToPath")});var yst=or((Sce,gst)=>{"use strict";Sce.__esModule=!0;var VAe=O1(),vO=void 0;try{(typeof define!="function"||!define.amd)&&(mst=_o("source-map"),vO=mst.SourceNode)}catch{}var mst;vO||(vO=t(function(o,s,f,d){this.src="",d&&this.add(d)},"SourceNode"),vO.prototype={add:t(function(s){VAe.isArray(s)&&(s=s.join("")),this.src+=s},"add"),prepend:t(function(s){VAe.isArray(s)&&(s=s.join("")),this.src=s+this.src},"prepend"),toStringWithSourceMap:t(function(){return{code:this.toString()}},"toStringWithSourceMap"),toString:t(function(){return this.src},"toString")});function qAe(o,s,f){if(VAe.isArray(o)){for(var d=[],y=0,x=o.length;y<x;y++)d.push(s.wrap(o[y],f));return d}else if(typeof o=="boolean"||typeof o=="number")return o+"";return o}t(qAe,"castChunk");function hst(o){this.srcFile=o,this.source=[]}t(hst,"CodeGen");hst.prototype={isEmpty:t(function(){return!this.source.length},"isEmpty"),prepend:t(function(s,f){this.source.unshift(this.wrap(s,f))},"prepend"),push:t(function(s,f){this.source.push(this.wrap(s,f))},"push"),merge:t(function(){var s=this.empty();return this.each(function(f){s.add([" ",f,`
|
|
46
|
+
`])}),s},"merge"),each:t(function(s){for(var f=0,d=this.source.length;f<d;f++)s(this.source[f])},"each"),empty:t(function(){var s=this.currentLocation||{start:{}};return new vO(s.start.line,s.start.column,this.srcFile)},"empty"),wrap:t(function(s){var f=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return s instanceof vO?s:(s=qAe(s,this,f),new vO(f.start.line,f.start.column,this.srcFile,s))},"wrap"),functionCall:t(function(s,f,d){return d=this.generateList(d),this.wrap([s,f?"."+f+"(":"(",d,")"])},"functionCall"),quotedString:t(function(s){return'"'+(s+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:t(function(s){var f=this,d=[];Object.keys(s).forEach(function(x){var P=qAe(s[x],f);P!=="undefined"&&d.push([f.quotedString(x),":",P])});var y=this.generateList(d);return y.prepend("{"),y.add("}"),y},"objectLiteral"),generateList:t(function(s){for(var f=this.empty(),d=0,y=s.length;d<y;d++)d&&f.add(","),f.add(qAe(s[d],this));return f},"generateList"),generateArray:t(function(s){var f=this.generateList(s);return f.prepend("["),f.add("]"),f},"generateArray")};Sce.default=hst;gst.exports=Sce.default});var xst=or((Tce,Tst)=>{"use strict";Tce.__esModule=!0;function Sst(o){return o&&o.__esModule?o:{default:o}}t(Sst,"_interopRequireDefault");var vst=cce(),LQt=oT(),HAe=Sst(LQt),RQt=O1(),MQt=yst(),bst=Sst(MQt);function tM(o){this.value=o}t(tM,"Literal");function rM(){}t(rM,"JavaScriptCompiler");rM.prototype={nameLookup:t(function(s,f){return this.internalNameLookup(s,f)},"nameLookup"),depthedLookup:t(function(s){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(s),")"]},"depthedLookup"),compilerInfo:t(function(){var s=vst.COMPILER_REVISION,f=vst.REVISION_CHANGES[s];return[s,f]},"compilerInfo"),appendToBuffer:t(function(s,f,d){return RQt.isArray(s)||(s=[s]),s=this.source.wrap(s,f),this.environment.isSimple?["return ",s,";"]:d?["buffer += ",s,";"]:(s.appendToBuffer=!0,s)},"appendToBuffer"),initializeBuffer:t(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:t(function(s,f){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",s,",",JSON.stringify(f),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:t(function(s,f,d,y){this.environment=s,this.options=f,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!y,this.name=this.environment.name,this.isChild=!!d,this.context=d||{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(s,f),this.useDepths=this.useDepths||s.useDepths||s.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||s.useBlockParams;var x=s.opcodes,P=void 0,F=void 0,J=void 0,G=void 0;for(J=0,G=x.length;J<G;J++)P=x[J],this.source.currentLocation=P.loc,F=F||P.loc,this[P.opcode].apply(this,P.args);if(this.source.currentLocation=F,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new HAe.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(),`;
|
|
89
47
|
`]),this.decorators.push("return fn;"),y?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) {
|
|
90
48
|
`),this.decorators.push(`}
|
|
91
|
-
`),this.decorators=this.decorators.merge()));var Se=this.createFunctionContext(y);if(this.isChild)return Se;var de={compiler:this.compilerInfo(),main:Se};this.decorators&&(de.main_d=this.decorators,de.useDecorators=!0);var ae=this.context,Ke=ae.programs,$e=ae.decorators;for(J=0,G=Ke.length;J<G;J++)Ke[J]&&(de[J]=Ke[J],$e[J]&&(de[J+"_d"]=$e[J],de.useDecorators=!0));return this.environment.usePartial&&(de.usePartial=!0),this.options.data&&(de.useData=!0),this.useDepths&&(de.useDepths=!0),this.useBlockParams&&(de.useBlockParams=!0),this.options.compat&&(de.compat=!0),y?de.compilerOptions=this.options:(de.compiler=JSON.stringify(de.compiler),this.source.currentLocation={start:{line:1,column:0}},de=this.objectLiteral(de),f.srcName?(de=de.toStringWithSourceMap({file:f.destName}),de.map=de.map&&de.map.toString()):de=de.toString()),de},"compile"),preamble:t(function(){this.lastContext=0,this.source=new
|
|
49
|
+
`),this.decorators=this.decorators.merge()));var Se=this.createFunctionContext(y);if(this.isChild)return Se;var de={compiler:this.compilerInfo(),main:Se};this.decorators&&(de.main_d=this.decorators,de.useDecorators=!0);var ae=this.context,Ke=ae.programs,$e=ae.decorators;for(J=0,G=Ke.length;J<G;J++)Ke[J]&&(de[J]=Ke[J],$e[J]&&(de[J+"_d"]=$e[J],de.useDecorators=!0));return this.environment.usePartial&&(de.usePartial=!0),this.options.data&&(de.useData=!0),this.useDepths&&(de.useDepths=!0),this.useBlockParams&&(de.useBlockParams=!0),this.options.compat&&(de.compat=!0),y?de.compilerOptions=this.options:(de.compiler=JSON.stringify(de.compiler),this.source.currentLocation={start:{line:1,column:0}},de=this.objectLiteral(de),f.srcName?(de=de.toStringWithSourceMap({file:f.destName}),de.map=de.map&&de.map.toString()):de=de.toString()),de},"compile"),preamble:t(function(){this.lastContext=0,this.source=new bst.default(this.options.srcName),this.decorators=new bst.default(this.options.srcName)},"preamble"),createFunctionContext:t(function(s){var f=this,d="",y=this.stackVars.concat(this.registers.list);y.length>0&&(d+=", "+y.join(", "));var x=0;Object.keys(this.aliases).forEach(function(J){var G=f.aliases[J];G.children&&G.referenceCount>1&&(d+=", alias"+ ++x+"="+J,G.children[0]="alias"+x)}),this.lookupPropertyFunctionIsUsed&&(d+=", "+this.lookupPropertyFunctionVarDeclaration());var P=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&P.push("blockParams"),this.useDepths&&P.push("depths");var F=this.mergeSource(d);return s?(P.push(F),Function.apply(this,P)):this.source.wrap(["function(",P.join(","),`) {
|
|
92
50
|
`,F,"}"])},"createFunctionContext"),mergeSource:t(function(s){var f=this.environment.isSimple,d=!this.forceBuffer,y=void 0,x=void 0,P=void 0,F=void 0;return this.source.each(function(J){J.appendToBuffer?(P?J.prepend(" + "):P=J,F=J):(P&&(x?P.prepend("buffer += "):y=!0,F.add(";"),P=F=void 0),x=!0,f||(d=!1))}),d?P?(P.prepend("return "),F.add(";")):x||this.source.push('return "";'):(s+=", buffer = "+(y?"":this.initializeBuffer()),P?(P.prepend("return buffer + "),F.add(";")):this.source.push("return buffer;")),s&&this.source.prepend("var "+s.substring(2)+(y?"":`;
|
|
93
51
|
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:t(function(){return`
|
|
94
52
|
lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
@@ -97,15 +55,57 @@ Expecting `+Ln.join(", ")+", got '"+(this.terminals_[sn]||sn)+"'":zE="Parse erro
|
|
|
97
55
|
}
|
|
98
56
|
return undefined
|
|
99
57
|
}
|
|
100
|
-
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:t(function(s){var f=this.aliasable("container.hooks.blockHelperMissing"),d=[this.contextName(0)];this.setupHelperArgs(s,0,d);var y=this.popStack();d.splice(1,0,y),this.push(this.source.functionCall(f,"call",d))},"blockValue"),ambiguousBlockValue:t(function(){var s=this.aliasable("container.hooks.blockHelperMissing"),f=[this.contextName(0)];this.setupHelperArgs("",0,f,!0),this.flushInline();var d=this.topStack();f.splice(1,0,d),this.pushSource(["if (!",this.lastHelper,") { ",d," = ",this.source.functionCall(s,"call",f),"}"])},"ambiguousBlockValue"),appendContent:t(function(s){this.pendingContent?s=this.pendingContent+s:this.pendingLocation=this.source.currentLocation,this.pendingContent=s},"appendContent"),append:t(function(){if(this.isInline())this.replaceStack(function(f){return[" != null ? ",f,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var s=this.popStack();this.pushSource(["if (",s," != null) { ",this.appendToBuffer(s,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:t(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:t(function(s){this.lastContext=s},"getContext"),pushContext:t(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:t(function(s,f,d,y){var x=0;!y&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(s[x++])):this.pushContext(),this.resolvePath("context",s,x,f,d)},"lookupOnContext"),lookupBlockParam:t(function(s,f){this.useBlockParams=!0,this.push(["blockParams[",s[0],"][",s[1],"]"]),this.resolvePath("context",f,1)},"lookupBlockParam"),lookupData:t(function(s,f,d){s?this.pushStackLiteral("container.data(data, "+s+")"):this.pushStackLiteral("data"),this.resolvePath("data",f,0,!0,d)},"lookupData"),resolvePath:t(function(s,f,d,y,x){var P=this;if(this.options.strict||this.options.assumeObjects){this.push(Air(this.options.strict&&x,this,f,d,s));return}for(var F=f.length;d<F;d++)this.replaceStack(function(J){var G=P.nameLookup(J,f[d],s);return y?[" && ",G]:[" != null ? ",G," : ",J]})},"resolvePath"),resolvePossibleLambda:t(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:t(function(s,f){this.pushContext(),this.pushString(f),f!=="SubExpression"&&(typeof s=="string"?this.pushString(s):this.pushStackLiteral(s))},"pushStringParam"),emptyHash:t(function(s){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(s?"undefined":"{}")},"emptyHash"),pushHash:t(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:t(function(){var s=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(s.ids)),this.stringParams&&(this.push(this.objectLiteral(s.contexts)),this.push(this.objectLiteral(s.types))),this.push(this.objectLiteral(s.values))},"popHash"),pushString:t(function(s){this.pushStackLiteral(this.quotedString(s))},"pushString"),pushLiteral:t(function(s){this.pushStackLiteral(s)},"pushLiteral"),pushProgram:t(function(s){s!=null?this.pushStackLiteral(this.programExpression(s)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:t(function(s,f){var d=this.nameLookup("decorators",f,"decorator"),y=this.setupHelperArgs(f,s);this.decorators.push(["fn = ",this.decorators.functionCall(d,"",["fn","props","container",y])," || fn;"])},"registerDecorator"),invokeHelper:t(function(s,f,d){var y=this.popStack(),x=this.setupHelper(s,f),P=[];d&&P.push(x.name),P.push(y),this.options.strict||P.push(this.aliasable("container.hooks.helperMissing"));var F=["(",this.itemsSeparatedBy(P,"||"),")"],J=this.source.functionCall(F,"call",x.callParams);this.push(J)},"invokeHelper"),itemsSeparatedBy:t(function(s,f){var d=[];d.push(s[0]);for(var y=1;y<s.length;y++)d.push(f,s[y]);return d},"itemsSeparatedBy"),invokeKnownHelper:t(function(s,f){var d=this.setupHelper(s,f);this.push(this.source.functionCall(d.name,"call",d.callParams))},"invokeKnownHelper"),invokeAmbiguous:t(function(s,f){this.useRegister("helper");var d=this.popStack();this.emptyHash();var y=this.setupHelper(0,s,f),x=this.lastHelper=this.nameLookup("helpers",s,"helper"),P=["(","(helper = ",x," || ",d,")"];this.options.strict||(P[0]="(helper = ",P.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",P,y.paramsInit?["),(",y.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",y.callParams)," : helper))"])},"invokeAmbiguous"),invokePartial:t(function(s,f,d){var y=[],x=this.setupParams(f,1,y);s&&(f=this.popStack(),delete x.name),d&&(x.indent=JSON.stringify(d)),x.helpers="helpers",x.partials="partials",x.decorators="container.decorators",s?y.unshift(f):y.unshift(this.nameLookup("partials",f,"partial")),this.options.compat&&(x.depths="depths"),x=this.objectLiteral(x),y.push(x),this.push(this.source.functionCall("container.invokePartial","",y))},"invokePartial"),assignToHash:t(function(s){var f=this.popStack(),d=void 0,y=void 0,x=void 0;this.trackIds&&(x=this.popStack()),this.stringParams&&(y=this.popStack(),d=this.popStack());var P=this.hash;d&&(P.contexts[s]=d),y&&(P.types[s]=y),x&&(P.ids[s]=x),P.values[s]=f},"assignToHash"),pushId:t(function(s,f,d){s==="BlockParam"?this.pushStackLiteral("blockParams["+f[0]+"].path["+f[1]+"]"+(d?" + "+JSON.stringify("."+d):"")):s==="PathExpression"?this.pushString(f):s==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},"pushId"),compiler:gM,compileChildren:t(function(s,f){for(var d=s.children,y=void 0,x=void 0,P=0,F=d.length;P<F;P++){y=d[P],x=new this.compiler;var J=this.matchExistingProgram(y);if(J==null){this.context.programs.push("");var G=this.context.programs.length;y.index=G,y.name="program"+G,this.context.programs[G]=x.compile(y,f,this.context,!this.precompile),this.context.decorators[G]=x.decorators,this.context.environments[G]=y,this.useDepths=this.useDepths||x.useDepths,this.useBlockParams=this.useBlockParams||x.useBlockParams,y.useDepths=this.useDepths,y.useBlockParams=this.useBlockParams}else y.index=J.index,y.name="program"+J.index,this.useDepths=this.useDepths||J.useDepths,this.useBlockParams=this.useBlockParams||J.useBlockParams}},"compileChildren"),matchExistingProgram:t(function(s){for(var f=0,d=this.context.environments.length;f<d;f++){var y=this.context.environments[f];if(y&&y.equals(s))return y}},"matchExistingProgram"),programExpression:t(function(s){var f=this.environment.children[s],d=[f.index,"data",f.blockParams];return(this.useBlockParams||this.useDepths)&&d.push("blockParams"),this.useDepths&&d.push("depths"),"container.program("+d.join(", ")+")"},"programExpression"),useRegister:t(function(s){this.registers[s]||(this.registers[s]=!0,this.registers.list.push(s))},"useRegister"),push:t(function(s){return s instanceof hM||(s=this.source.wrap(s)),this.inlineStack.push(s),s},"push"),pushStackLiteral:t(function(s){this.push(new hM(s))},"pushStackLiteral"),pushSource:t(function(s){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),s&&this.source.push(s)},"pushSource"),replaceStack:t(function(s){var f=["("],d=void 0,y=void 0,x=void 0;if(!this.isInline())throw new lNe.default("replaceStack on non-inline");var P=this.popStack(!0);if(P instanceof hM)d=[P.value],f=["(",d],x=!0;else{y=!0;var F=this.incrStack();f=["((",this.push(F)," = ",P,")"],d=this.topStack()}var J=s.call(this,d);x||this.popStack(),y&&this.stackSlot--,this.push(f.concat(J,")"))},"replaceStack"),incrStack:t(function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},"incrStack"),topStackName:t(function(){return"stack"+this.stackSlot},"topStackName"),flushInline:t(function(){var s=this.inlineStack;this.inlineStack=[];for(var f=0,d=s.length;f<d;f++){var y=s[f];if(y instanceof hM)this.compileStack.push(y);else{var x=this.incrStack();this.pushSource([x," = ",y,";"]),this.compileStack.push(x)}}},"flushInline"),isInline:t(function(){return this.inlineStack.length},"isInline"),popStack:t(function(s){var f=this.isInline(),d=(f?this.inlineStack:this.compileStack).pop();if(!s&&d instanceof hM)return d.value;if(!f){if(!this.stackSlot)throw new lNe.default("Invalid stack pop");this.stackSlot--}return d},"popStack"),topStack:t(function(){var s=this.isInline()?this.inlineStack:this.compileStack,f=s[s.length-1];return f instanceof hM?f.value:f},"topStack"),contextName:t(function(s){return this.useDepths&&s?"depths["+s+"]":"depth"+s},"contextName"),quotedString:t(function(s){return this.source.quotedString(s)},"quotedString"),objectLiteral:t(function(s){return this.source.objectLiteral(s)},"objectLiteral"),aliasable:t(function(s){var f=this.aliases[s];return f?(f.referenceCount++,f):(f=this.aliases[s]=this.source.wrap(s),f.aliasable=!0,f.referenceCount=1,f)},"aliasable"),setupHelper:t(function(s,f,d){var y=[],x=this.setupHelperArgs(f,s,y,d),P=this.nameLookup("helpers",f,"helper"),F=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:y,paramsInit:x,name:P,callParams:[F].concat(y)}},"setupHelper"),setupParams:t(function(s,f,d){var y={},x=[],P=[],F=[],J=!d,G=void 0;J&&(d=[]),y.name=this.quotedString(s),y.hash=this.popStack(),this.trackIds&&(y.hashIds=this.popStack()),this.stringParams&&(y.hashTypes=this.popStack(),y.hashContexts=this.popStack());var Se=this.popStack(),de=this.popStack();(de||Se)&&(y.fn=de||"container.noop",y.inverse=Se||"container.noop");for(var ae=f;ae--;)G=this.popStack(),d[ae]=G,this.trackIds&&(F[ae]=this.popStack()),this.stringParams&&(P[ae]=this.popStack(),x[ae]=this.popStack());return J&&(y.args=this.source.generateArray(d)),this.trackIds&&(y.ids=this.source.generateArray(F)),this.stringParams&&(y.types=this.source.generateArray(P),y.contexts=this.source.generateArray(x)),this.options.data&&(y.data="data"),this.useBlockParams&&(y.blockParams="blockParams"),y},"setupParams"),setupHelperArgs:t(function(s,f,d,y){var x=this.setupParams(s,f,d);return x.loc=JSON.stringify(this.source.currentLocation),x=this.objectLiteral(x),y?(this.useRegister("options"),d.push("options"),["options=",x]):d?(d.push(x),""):x},"setupHelperArgs")};(function(){for(var o="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),s=gM.RESERVED_WORDS={},f=0,d=o.length;f<d;f++)s[o[f]]=!0})();gM.isValidJavaScriptVariableName=function(o){return!gM.RESERVED_WORDS[o]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(o)};function Air(o,s,f,d,y){var x=s.popStack(),P=f.length;for(o&&P--;d<P;d++)x=s.nameLookup(x,f[d],y);return o?[s.aliasable("container.strict"),"(",x,", ",s.quotedString(f[d]),", ",JSON.stringify(s.source.currentLocation)," )"]:x}t(Air,"strictLookup");Yce.default=gM;Xot.exports=Yce.default});var tct=or((Kce,ect)=>{"use strict";Kce.__esModule=!0;function hH(o){return o&&o.__esModule?o:{default:o}}t(hH,"_interopRequireDefault");var Nir=kot(),Iir=hH(Nir),Oir=Q6e(),Fir=hH(Oir),uNe=Bot(),fNe=Jot(),Lir=Zot(),Rir=hH(Lir),Mir=qce(),jir=hH(Mir),Bir=Y6e(),Uir=hH(Bir),zir=Iir.default.create;function Qot(){var o=zir();return o.compile=function(s,f){return fNe.compile(s,f,o)},o.precompile=function(s,f){return fNe.precompile(s,f,o)},o.AST=Fir.default,o.Compiler=fNe.Compiler,o.JavaScriptCompiler=Rir.default,o.Parser=uNe.parser,o.parse=uNe.parse,o.parseWithoutProcessing=uNe.parseWithoutProcessing,o}t(Qot,"create");var yM=Qot();yM.create=Qot;Uir.default(yM);yM.Visitor=jir.default;yM.default=yM;Kce.default=yM;ect.exports=Kce.default});var rct=or(Xce=>{"use strict";Xce.__esModule=!0;Xce.print=qir;Xce.PrintVisitor=Qd;function $ir(o){return o&&o.__esModule?o:{default:o}}t($ir,"_interopRequireDefault");var Jir=qce(),Wir=$ir(Jir);function qir(o){return new Qd().accept(o)}t(qir,"print");function Qd(){this.padding=0}t(Qd,"PrintVisitor");Qd.prototype=new Wir.default;Qd.prototype.pad=function(o){for(var s="",f=0,d=this.padding;f<d;f++)s+=" ";return s+=o+`
|
|
101
|
-
`,s};Qd.prototype.Program=function(o){var s="",f=o.body,d=void 0,y=void 0;if(o.blockParams){var x="BLOCK PARAMS: [";for(d=0,y=o.blockParams.length;d<y;d++)x+=" "+o.blockParams[d];x+=" ]",s+=this.pad(x)}for(d=0,y=f.length;d<y;d++)s+=this.accept(f[d]);return this.padding--,s};Qd.prototype.MustacheStatement=function(o){return this.pad("{{ "+this.SubExpression(o)+" }}")};Qd.prototype.Decorator=function(o){return this.pad("{{ DIRECTIVE "+this.SubExpression(o)+" }}")};Qd.prototype.BlockStatement=Qd.prototype.DecoratorBlock=function(o){var s="";return s+=this.pad((o.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,s+=this.pad(this.SubExpression(o)),o.program&&(s+=this.pad("PROGRAM:"),this.padding++,s+=this.accept(o.program),this.padding--),o.inverse&&(o.program&&this.padding++,s+=this.pad("{{^}}"),this.padding++,s+=this.accept(o.inverse),this.padding--,o.program&&this.padding--),this.padding--,s};Qd.prototype.PartialStatement=function(o){var s="PARTIAL:"+o.name.original;return o.params[0]&&(s+=" "+this.accept(o.params[0])),o.hash&&(s+=" "+this.accept(o.hash)),this.pad("{{> "+s+" }}")};Qd.prototype.PartialBlockStatement=function(o){var s="PARTIAL BLOCK:"+o.name.original;return o.params[0]&&(s+=" "+this.accept(o.params[0])),o.hash&&(s+=" "+this.accept(o.hash)),s+=" "+this.pad("PROGRAM:"),this.padding++,s+=this.accept(o.program),this.padding--,this.pad("{{> "+s+" }}")};Qd.prototype.ContentStatement=function(o){return this.pad("CONTENT[ '"+o.value+"' ]")};Qd.prototype.CommentStatement=function(o){return this.pad("{{! '"+o.value+"' }}")};Qd.prototype.SubExpression=function(o){for(var s=o.params,f=[],d=void 0,y=0,x=s.length;y<x;y++)f.push(this.accept(s[y]));return s="["+f.join(", ")+"]",d=o.hash?" "+this.accept(o.hash):"",this.accept(o.path)+" "+s+d};Qd.prototype.PathExpression=function(o){var s=o.parts.join("/");return(o.data?"@":"")+"PATH:"+s};Qd.prototype.StringLiteral=function(o){return'"'+o.value+'"'};Qd.prototype.NumberLiteral=function(o){return"NUMBER{"+o.value+"}"};Qd.prototype.BooleanLiteral=function(o){return"BOOLEAN{"+o.value+"}"};Qd.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Qd.prototype.NullLiteral=function(){return"NULL"};Qd.prototype.Hash=function(o){for(var s=o.pairs,f=[],d=0,y=s.length;d<y;d++)f.push(this.accept(s[d]));return"HASH{"+f.join(", ")+"}"};Qd.prototype.HashPair=function(o){return o.key+"="+this.accept(o.value)}});var act=or((MPr,sct)=>{var Zce=tct().default,ict=rct();Zce.PrintVisitor=ict.PrintVisitor;Zce.print=ict.print;sct.exports=Zce;function nct(o,s){var f=_o("fs"),d=f.readFileSync(s,"utf8");o.exports=Zce.compile(d)}t(nct,"extension");typeof _o<"u"&&_o.extensions&&(_o.extensions[".handlebars"]=nct,_o.extensions[".hbs"]=nct)});var Oct=or(jk=>{"use strict";Object.defineProperty(jk,"__esModule",{value:!0});jk.formatNames=jk.fastFormats=jk.fullFormats=void 0;function Mk(o,s){return{validate:o,compare:s}}t(Mk,"fmtDef");jk.fullFormats={date:Mk(Pct,TNe),time:Mk(bNe(!0),xNe),"date-time":Mk(kct(!0),Nct),"iso-time":Mk(bNe(),Act),"iso-date-time":Mk(kct(),Ict),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:Msr,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:Wsr,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:jsr,int32:{type:"number",validate:zsr},int64:{type:"number",validate:$sr},float:{type:"number",validate:Dct},double:{type:"number",validate:Dct},password:!0,binary:!0};jk.fastFormats={...jk.fullFormats,date:Mk(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,TNe),time:Mk(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,xNe),"date-time":Mk(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,Nct),"iso-time":Mk(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,Act),"iso-date-time":Mk(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,Ict),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};jk.formatNames=Object.keys(jk.fullFormats);function Isr(o){return o%4===0&&(o%100!==0||o%400===0)}t(Isr,"isLeapYear");var Osr=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,Fsr=[0,31,28,31,30,31,30,31,31,30,31,30,31];function Pct(o){let s=Osr.exec(o);if(!s)return!1;let f=+s[1],d=+s[2],y=+s[3];return d>=1&&d<=12&&y>=1&&y<=(d===2&&Isr(f)?29:Fsr[d])}t(Pct,"date");function TNe(o,s){if(o&&s)return o>s?1:o<s?-1:0}t(TNe,"compareDate");var vNe=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function bNe(o){return t(function(f){let d=vNe.exec(f);if(!d)return!1;let y=+d[1],x=+d[2],P=+d[3],F=d[4],J=d[5]==="-"?-1:1,G=+(d[6]||0),Se=+(d[7]||0);if(G>23||Se>59||o&&!F)return!1;if(y<=23&&x<=59&&P<60)return!0;let de=x-Se*J,ae=y-G*J-(de<0?1:0);return(ae===23||ae===-1)&&(de===59||de===-1)&&P<61},"time")}t(bNe,"getTime");function xNe(o,s){if(!(o&&s))return;let f=new Date("2020-01-01T"+o).valueOf(),d=new Date("2020-01-01T"+s).valueOf();if(f&&d)return f-d}t(xNe,"compareTime");function Act(o,s){if(!(o&&s))return;let f=vNe.exec(o),d=vNe.exec(s);if(f&&d)return o=f[1]+f[2]+f[3],s=d[1]+d[2]+d[3],o>s?1:o<s?-1:0}t(Act,"compareIsoTime");var SNe=/t|\s/i;function kct(o){let s=bNe(o);return t(function(d){let y=d.split(SNe);return y.length===2&&Pct(y[0])&&s(y[1])},"date_time")}t(kct,"getDateTime");function Nct(o,s){if(!(o&&s))return;let f=new Date(o).valueOf(),d=new Date(s).valueOf();if(f&&d)return f-d}t(Nct,"compareDateTime");function Ict(o,s){if(!(o&&s))return;let[f,d]=o.split(SNe),[y,x]=s.split(SNe),P=TNe(f,y);if(P!==void 0)return P||xNe(d,x)}t(Ict,"compareIsoDateTime");var Lsr=/\/|:/,Rsr=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function Msr(o){return Lsr.test(o)&&Rsr.test(o)}t(Msr,"uri");var wct=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function jsr(o){return wct.lastIndex=0,wct.test(o)}t(jsr,"byte");var Bsr=-(2**31),Usr=2**31-1;function zsr(o){return Number.isInteger(o)&&o<=Usr&&o>=Bsr}t(zsr,"validateInt32");function $sr(o){return Number.isInteger(o)}t($sr,"validateInt64");function Dct(){return!0}t(Dct,"validateNumber");var Jsr=/[^\\]\\Z/;function Wsr(o){if(Jsr.test(o))return!1;try{return new RegExp(o),!0}catch{return!1}}t(Wsr,"regex")});var TM=or(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.regexpCode=qu.getEsmExportName=qu.getProperty=qu.safeStringify=qu.stringify=qu.strConcat=qu.addCodeArg=qu.str=qu._=qu.nil=qu._Code=qu.Name=qu.IDENTIFIER=qu._CodeOrName=void 0;var EH=class{static{t(this,"_CodeOrName")}};qu._CodeOrName=EH;qu.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var PO=class extends EH{static{t(this,"Name")}constructor(s){if(super(),!qu.IDENTIFIER.test(s))throw new Error("CodeGen: name must be a valid identifier");this.str=s}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};qu.Name=PO;var mT=class extends EH{static{t(this,"_Code")}constructor(s){super(),this._items=typeof s=="string"?[s]:s}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let s=this._items[0];return s===""||s==='""'}get str(){var s;return(s=this._str)!==null&&s!==void 0?s:this._str=this._items.reduce((f,d)=>`${f}${d}`,"")}get names(){var s;return(s=this._names)!==null&&s!==void 0?s:this._names=this._items.reduce((f,d)=>(d instanceof PO&&(f[d.str]=(f[d.str]||0)+1),f),{})}};qu._Code=mT;qu.nil=new mT("");function Fct(o,...s){let f=[o[0]],d=0;for(;d<s.length;)CNe(f,s[d]),f.push(o[++d]);return new mT(f)}t(Fct,"_");qu._=Fct;var ENe=new mT("+");function Lct(o,...s){let f=[CH(o[0])],d=0;for(;d<s.length;)f.push(ENe),CNe(f,s[d]),f.push(ENe,CH(o[++d]));return qsr(f),new mT(f)}t(Lct,"str");qu.str=Lct;function CNe(o,s){s instanceof mT?o.push(...s._items):s instanceof PO?o.push(s):o.push(Gsr(s))}t(CNe,"addCodeArg");qu.addCodeArg=CNe;function qsr(o){let s=1;for(;s<o.length-1;){if(o[s]===ENe){let f=Vsr(o[s-1],o[s+1]);if(f!==void 0){o.splice(s-1,3,f);continue}o[s++]="+"}s++}}t(qsr,"optimize");function Vsr(o,s){if(s==='""')return o;if(o==='""')return s;if(typeof o=="string")return s instanceof PO||o[o.length-1]!=='"'?void 0:typeof s!="string"?`${o.slice(0,-1)}${s}"`:s[0]==='"'?o.slice(0,-1)+s.slice(1):void 0;if(typeof s=="string"&&s[0]==='"'&&!(o instanceof PO))return`"${o}${s.slice(1)}`}t(Vsr,"mergeExprItems");function Hsr(o,s){return s.emptyStr()?o:o.emptyStr()?s:Lct`${o}${s}`}t(Hsr,"strConcat");qu.strConcat=Hsr;function Gsr(o){return typeof o=="number"||typeof o=="boolean"||o===null?o:CH(Array.isArray(o)?o.join(","):o)}t(Gsr,"interpolate");function Ysr(o){return new mT(CH(o))}t(Ysr,"stringify");qu.stringify=Ysr;function CH(o){return JSON.stringify(o).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t(CH,"safeStringify");qu.safeStringify=CH;function Ksr(o){return typeof o=="string"&&qu.IDENTIFIER.test(o)?new mT(`.${o}`):Fct`[${o}]`}t(Ksr,"getProperty");qu.getProperty=Ksr;function Xsr(o){if(typeof o=="string"&&qu.IDENTIFIER.test(o))return new mT(`${o}`);throw new Error(`CodeGen: invalid export name: ${o}, use explicit $id name mapping`)}t(Xsr,"getEsmExportName");qu.getEsmExportName=Xsr;function Zsr(o){return new mT(o.toString())}t(Zsr,"regexpCode");qu.regexpCode=Zsr});var rle=or(Kv=>{"use strict";Object.defineProperty(Kv,"__esModule",{value:!0});Kv.ValueScope=Kv.ValueScopeName=Kv.Scope=Kv.varKinds=Kv.UsedValueState=void 0;var Yv=TM(),kNe=class extends Error{static{t(this,"ValueError")}constructor(s){super(`CodeGen: "code" for ${s} not defined`),this.value=s.value}},Qce;(function(o){o[o.Started=0]="Started",o[o.Completed=1]="Completed"})(Qce||(Kv.UsedValueState=Qce={}));Kv.varKinds={const:new Yv.Name("const"),let:new Yv.Name("let"),var:new Yv.Name("var")};var ele=class{static{t(this,"Scope")}constructor({prefixes:s,parent:f}={}){this._names={},this._prefixes=s,this._parent=f}toName(s){return s instanceof Yv.Name?s:this.name(s)}name(s){return new Yv.Name(this._newName(s))}_newName(s){let f=this._names[s]||this._nameGroup(s);return`${s}${f.index++}`}_nameGroup(s){var f,d;if(!((d=(f=this._parent)===null||f===void 0?void 0:f._prefixes)===null||d===void 0)&&d.has(s)||this._prefixes&&!this._prefixes.has(s))throw new Error(`CodeGen: prefix "${s}" is not allowed in this scope`);return this._names[s]={prefix:s,index:0}}};Kv.Scope=ele;var tle=class extends Yv.Name{static{t(this,"ValueScopeName")}constructor(s,f){super(f),this.prefix=s}setValue(s,{property:f,itemIndex:d}){this.value=s,this.scopePath=(0,Yv._)`.${new Yv.Name(f)}[${d}]`}};Kv.ValueScopeName=tle;var Qsr=(0,Yv._)`\n`,wNe=class extends ele{static{t(this,"ValueScope")}constructor(s){super(s),this._values={},this._scope=s.scope,this.opts={...s,_n:s.lines?Qsr:Yv.nil}}get(){return this._scope}name(s){return new tle(s,this._newName(s))}value(s,f){var d;if(f.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let y=this.toName(s),{prefix:x}=y,P=(d=f.key)!==null&&d!==void 0?d:f.ref,F=this._values[x];if(F){let Se=F.get(P);if(Se)return Se}else F=this._values[x]=new Map;F.set(P,y);let J=this._scope[x]||(this._scope[x]=[]),G=J.length;return J[G]=f.ref,y.setValue(f,{property:x,itemIndex:G}),y}getValue(s,f){let d=this._values[s];if(d)return d.get(f)}scopeRefs(s,f=this._values){return this._reduceValues(f,d=>{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,Yv._)`${s}${d.scopePath}`})}scopeCode(s=this._values,f,d){return this._reduceValues(s,y=>{if(y.value===void 0)throw new Error(`CodeGen: name "${y}" has no value`);return y.value.code},f,d)}_reduceValues(s,f,d={},y){let x=Yv.nil;for(let P in s){let F=s[P];if(!F)continue;let J=d[P]=d[P]||new Map;F.forEach(G=>{if(J.has(G))return;J.set(G,Qce.Started);let Se=f(G);if(Se){let de=this.opts.es5?Kv.varKinds.var:Kv.varKinds.const;x=(0,Yv._)`${x}${de} ${G} = ${Se};${this.opts._n}`}else if(Se=y?.(G))x=(0,Yv._)`${x}${Se}${this.opts._n}`;else throw new kNe(G);J.set(G,Qce.Completed)})}return x}};Kv.ValueScope=wNe});var Cc=or(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.or=Nl.and=Nl.not=Nl.CodeGen=Nl.operators=Nl.varKinds=Nl.ValueScopeName=Nl.ValueScope=Nl.Scope=Nl.Name=Nl.regexpCode=Nl.stringify=Nl.getProperty=Nl.nil=Nl.strConcat=Nl.str=Nl._=void 0;var vu=TM(),AE=rle(),lI=TM();Object.defineProperty(Nl,"_",{enumerable:!0,get:t(function(){return lI._},"get")});Object.defineProperty(Nl,"str",{enumerable:!0,get:t(function(){return lI.str},"get")});Object.defineProperty(Nl,"strConcat",{enumerable:!0,get:t(function(){return lI.strConcat},"get")});Object.defineProperty(Nl,"nil",{enumerable:!0,get:t(function(){return lI.nil},"get")});Object.defineProperty(Nl,"getProperty",{enumerable:!0,get:t(function(){return lI.getProperty},"get")});Object.defineProperty(Nl,"stringify",{enumerable:!0,get:t(function(){return lI.stringify},"get")});Object.defineProperty(Nl,"regexpCode",{enumerable:!0,get:t(function(){return lI.regexpCode},"get")});Object.defineProperty(Nl,"Name",{enumerable:!0,get:t(function(){return lI.Name},"get")});var ale=rle();Object.defineProperty(Nl,"Scope",{enumerable:!0,get:t(function(){return ale.Scope},"get")});Object.defineProperty(Nl,"ValueScope",{enumerable:!0,get:t(function(){return ale.ValueScope},"get")});Object.defineProperty(Nl,"ValueScopeName",{enumerable:!0,get:t(function(){return ale.ValueScopeName},"get")});Object.defineProperty(Nl,"varKinds",{enumerable:!0,get:t(function(){return ale.varKinds},"get")});Nl.operators={GT:new vu._Code(">"),GTE:new vu._Code(">="),LT:new vu._Code("<"),LTE:new vu._Code("<="),EQ:new vu._Code("==="),NEQ:new vu._Code("!=="),NOT:new vu._Code("!"),OR:new vu._Code("||"),AND:new vu._Code("&&"),ADD:new vu._Code("+")};var ZP=class{static{t(this,"Node")}optimizeNodes(){return this}optimizeNames(s,f){return this}},DNe=class extends ZP{static{t(this,"Def")}constructor(s,f,d){super(),this.varKind=s,this.name=f,this.rhs=d}render({es5:s,_n:f}){let d=s?AE.varKinds.var:this.varKind,y=this.rhs===void 0?"":` = ${this.rhs}`;return`${d} ${this.name}${y};`+f}optimizeNames(s,f){if(s[this.name.str])return this.rhs&&(this.rhs=EM(this.rhs,s,f)),this}get names(){return this.rhs instanceof vu._CodeOrName?this.rhs.names:{}}},nle=class extends ZP{static{t(this,"Assign")}constructor(s,f,d){super(),this.lhs=s,this.rhs=f,this.sideEffects=d}render({_n:s}){return`${this.lhs} = ${this.rhs};`+s}optimizeNames(s,f){if(!(this.lhs instanceof vu.Name&&!s[this.lhs.str]&&!this.sideEffects))return this.rhs=EM(this.rhs,s,f),this}get names(){let s=this.lhs instanceof vu.Name?{}:{...this.lhs.names};return sle(s,this.rhs)}},PNe=class extends nle{static{t(this,"AssignOp")}constructor(s,f,d,y){super(s,d,y),this.op=f}render({_n:s}){return`${this.lhs} ${this.op}= ${this.rhs};`+s}},ANe=class extends ZP{static{t(this,"Label")}constructor(s){super(),this.label=s,this.names={}}render({_n:s}){return`${this.label}:`+s}},NNe=class extends ZP{static{t(this,"Break")}constructor(s){super(),this.label=s,this.names={}}render({_n:s}){return`break${this.label?` ${this.label}`:""};`+s}},INe=class extends ZP{static{t(this,"Throw")}constructor(s){super(),this.error=s}render({_n:s}){return`throw ${this.error};`+s}get names(){return this.error.names}},ONe=class extends ZP{static{t(this,"AnyCode")}constructor(s){super(),this.code=s}render({_n:s}){return`${this.code};`+s}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(s,f){return this.code=EM(this.code,s,f),this}get names(){return this.code instanceof vu._CodeOrName?this.code.names:{}}},kH=class extends ZP{static{t(this,"ParentNode")}constructor(s=[]){super(),this.nodes=s}render(s){return this.nodes.reduce((f,d)=>f+d.render(s),"")}optimizeNodes(){let{nodes:s}=this,f=s.length;for(;f--;){let d=s[f].optimizeNodes();Array.isArray(d)?s.splice(f,1,...d):d?s[f]=d:s.splice(f,1)}return s.length>0?this:void 0}optimizeNames(s,f){let{nodes:d}=this,y=d.length;for(;y--;){let x=d[y];x.optimizeNames(s,f)||(ear(s,x.names),d.splice(y,1))}return d.length>0?this:void 0}get names(){return this.nodes.reduce((s,f)=>IO(s,f.names),{})}},QP=class extends kH{static{t(this,"BlockNode")}render(s){return"{"+s._n+super.render(s)+"}"+s._n}},FNe=class extends kH{static{t(this,"Root")}},xM=class extends QP{static{t(this,"Else")}};xM.kind="else";var AO=class o extends QP{static{t(this,"If")}constructor(s,f){super(f),this.condition=s}render(s){let f=`if(${this.condition})`+super.render(s);return this.else&&(f+="else "+this.else.render(s)),f}optimizeNodes(){super.optimizeNodes();let s=this.condition;if(s===!0)return this.nodes;let f=this.else;if(f){let d=f.optimizeNodes();f=this.else=Array.isArray(d)?new xM(d):d}if(f)return s===!1?f instanceof o?f:f.nodes:this.nodes.length?this:new o(Rct(s),f instanceof o?[f]:f.nodes);if(!(s===!1||!this.nodes.length))return this}optimizeNames(s,f){var d;if(this.else=(d=this.else)===null||d===void 0?void 0:d.optimizeNames(s,f),!!(super.optimizeNames(s,f)||this.else))return this.condition=EM(this.condition,s,f),this}get names(){let s=super.names;return sle(s,this.condition),this.else&&IO(s,this.else.names),s}};AO.kind="if";var NO=class extends QP{static{t(this,"For")}};NO.kind="for";var LNe=class extends NO{static{t(this,"ForLoop")}constructor(s){super(),this.iteration=s}render(s){return`for(${this.iteration})`+super.render(s)}optimizeNames(s,f){if(super.optimizeNames(s,f))return this.iteration=EM(this.iteration,s,f),this}get names(){return IO(super.names,this.iteration.names)}},RNe=class extends NO{static{t(this,"ForRange")}constructor(s,f,d,y){super(),this.varKind=s,this.name=f,this.from=d,this.to=y}render(s){let f=s.es5?AE.varKinds.var:this.varKind,{name:d,from:y,to:x}=this;return`for(${f} ${d}=${y}; ${d}<${x}; ${d}++)`+super.render(s)}get names(){let s=sle(super.names,this.from);return sle(s,this.to)}},ile=class extends NO{static{t(this,"ForIter")}constructor(s,f,d,y){super(),this.loop=s,this.varKind=f,this.name=d,this.iterable=y}render(s){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(s)}optimizeNames(s,f){if(super.optimizeNames(s,f))return this.iterable=EM(this.iterable,s,f),this}get names(){return IO(super.names,this.iterable.names)}},wH=class extends QP{static{t(this,"Func")}constructor(s,f,d){super(),this.name=s,this.args=f,this.async=d}render(s){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(s)}};wH.kind="func";var DH=class extends kH{static{t(this,"Return")}render(s){return"return "+super.render(s)}};DH.kind="return";var MNe=class extends QP{static{t(this,"Try")}render(s){let f="try"+super.render(s);return this.catch&&(f+=this.catch.render(s)),this.finally&&(f+=this.finally.render(s)),f}optimizeNodes(){var s,f;return super.optimizeNodes(),(s=this.catch)===null||s===void 0||s.optimizeNodes(),(f=this.finally)===null||f===void 0||f.optimizeNodes(),this}optimizeNames(s,f){var d,y;return super.optimizeNames(s,f),(d=this.catch)===null||d===void 0||d.optimizeNames(s,f),(y=this.finally)===null||y===void 0||y.optimizeNames(s,f),this}get names(){let s=super.names;return this.catch&&IO(s,this.catch.names),this.finally&&IO(s,this.finally.names),s}},PH=class extends QP{static{t(this,"Catch")}constructor(s){super(),this.error=s}render(s){return`catch(${this.error})`+super.render(s)}};PH.kind="catch";var AH=class extends QP{static{t(this,"Finally")}render(s){return"finally"+super.render(s)}};AH.kind="finally";var jNe=class{static{t(this,"CodeGen")}constructor(s,f={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...f,_n:f.lines?`
|
|
102
|
-
`:""},this._extScope=s,this._scope=new AE.Scope({parent:s}),this._nodes=[new FNe]}toString(){return this._root.render(this.opts)}name(s){return this._scope.name(s)}scopeName(s){return this._extScope.name(s)}scopeValue(s,f){let d=this._extScope.value(s,f);return(this._values[d.prefix]||(this._values[d.prefix]=new Set)).add(d),d}getScopeValue(s,f){return this._extScope.getValue(s,f)}scopeRefs(s){return this._extScope.scopeRefs(s,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(s,f,d,y){let x=this._scope.toName(f);return d!==void 0&&y&&(this._constants[x.str]=d),this._leafNode(new DNe(s,x,d)),x}const(s,f,d){return this._def(AE.varKinds.const,s,f,d)}let(s,f,d){return this._def(AE.varKinds.let,s,f,d)}var(s,f,d){return this._def(AE.varKinds.var,s,f,d)}assign(s,f,d){return this._leafNode(new nle(s,f,d))}add(s,f){return this._leafNode(new PNe(s,Nl.operators.ADD,f))}code(s){return typeof s=="function"?s():s!==vu.nil&&this._leafNode(new ONe(s)),this}object(...s){let f=["{"];for(let[d,y]of s)f.length>1&&f.push(","),f.push(d),(d!==y||this.opts.es5)&&(f.push(":"),(0,vu.addCodeArg)(f,y));return f.push("}"),new vu._Code(f)}if(s,f,d){if(this._blockNode(new AO(s)),f&&d)this.code(f).else().code(d).endIf();else if(f)this.code(f).endIf();else if(d)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(s){return this._elseNode(new AO(s))}else(){return this._elseNode(new xM)}endIf(){return this._endBlockNode(AO,xM)}_for(s,f){return this._blockNode(s),f&&this.code(f).endFor(),this}for(s,f){return this._for(new LNe(s),f)}forRange(s,f,d,y,x=this.opts.es5?AE.varKinds.var:AE.varKinds.let){let P=this._scope.toName(s);return this._for(new RNe(x,P,f,d),()=>y(P))}forOf(s,f,d,y=AE.varKinds.const){let x=this._scope.toName(s);if(this.opts.es5){let P=f instanceof vu.Name?f:this.var("_arr",f);return this.forRange("_i",0,(0,vu._)`${P}.length`,F=>{this.var(x,(0,vu._)`${P}[${F}]`),d(x)})}return this._for(new ile("of",y,x,f),()=>d(x))}forIn(s,f,d,y=this.opts.es5?AE.varKinds.var:AE.varKinds.const){if(this.opts.ownProperties)return this.forOf(s,(0,vu._)`Object.keys(${f})`,d);let x=this._scope.toName(s);return this._for(new ile("in",y,x,f),()=>d(x))}endFor(){return this._endBlockNode(NO)}label(s){return this._leafNode(new ANe(s))}break(s){return this._leafNode(new NNe(s))}return(s){let f=new DH;if(this._blockNode(f),this.code(s),f.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(DH)}try(s,f,d){if(!f&&!d)throw new Error('CodeGen: "try" without "catch" and "finally"');let y=new MNe;if(this._blockNode(y),this.code(s),f){let x=this.name("e");this._currNode=y.catch=new PH(x),f(x)}return d&&(this._currNode=y.finally=new AH,this.code(d)),this._endBlockNode(PH,AH)}throw(s){return this._leafNode(new INe(s))}block(s,f){return this._blockStarts.push(this._nodes.length),s&&this.code(s).endBlock(f),this}endBlock(s){let f=this._blockStarts.pop();if(f===void 0)throw new Error("CodeGen: not in self-balancing block");let d=this._nodes.length-f;if(d<0||s!==void 0&&d!==s)throw new Error(`CodeGen: wrong number of nodes: ${d} vs ${s} expected`);return this._nodes.length=f,this}func(s,f=vu.nil,d,y){return this._blockNode(new wH(s,f,d)),y&&this.code(y).endFunc(),this}endFunc(){return this._endBlockNode(wH)}optimize(s=1){for(;s-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(s){return this._currNode.nodes.push(s),this}_blockNode(s){this._currNode.nodes.push(s),this._nodes.push(s)}_endBlockNode(s,f){let d=this._currNode;if(d instanceof s||f&&d instanceof f)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${f?`${s.kind}/${f.kind}`:s.kind}"`)}_elseNode(s){let f=this._currNode;if(!(f instanceof AO))throw new Error('CodeGen: "else" without "if"');return this._currNode=f.else=s,this}get _root(){return this._nodes[0]}get _currNode(){let s=this._nodes;return s[s.length-1]}set _currNode(s){let f=this._nodes;f[f.length-1]=s}};Nl.CodeGen=jNe;function IO(o,s){for(let f in s)o[f]=(o[f]||0)+(s[f]||0);return o}t(IO,"addNames");function sle(o,s){return s instanceof vu._CodeOrName?IO(o,s.names):o}t(sle,"addExprNames");function EM(o,s,f){if(o instanceof vu.Name)return d(o);if(!y(o))return o;return new vu._Code(o._items.reduce((x,P)=>(P instanceof vu.Name&&(P=d(P)),P instanceof vu._Code?x.push(...P._items):x.push(P),x),[]));function d(x){let P=f[x.str];return P===void 0||s[x.str]!==1?x:(delete s[x.str],P)}function y(x){return x instanceof vu._Code&&x._items.some(P=>P instanceof vu.Name&&s[P.str]===1&&f[P.str]!==void 0)}}t(EM,"optimizeExpr");function ear(o,s){for(let f in s)o[f]=(o[f]||0)-(s[f]||0)}t(ear,"subtractNames");function Rct(o){return typeof o=="boolean"||typeof o=="number"||o===null?!o:(0,vu._)`!${BNe(o)}`}t(Rct,"not");Nl.not=Rct;var tar=Mct(Nl.operators.AND);function rar(...o){return o.reduce(tar)}t(rar,"and");Nl.and=rar;var nar=Mct(Nl.operators.OR);function iar(...o){return o.reduce(nar)}t(iar,"or");Nl.or=iar;function Mct(o){return(s,f)=>s===vu.nil?f:f===vu.nil?s:(0,vu._)`${BNe(s)} ${o} ${BNe(f)}`}t(Mct,"mappend");function BNe(o){return o instanceof vu.Name?o:(0,vu._)`(${o})`}t(BNe,"par")});var ru=or(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});ql.checkStrictMode=ql.getErrorPath=ql.Type=ql.useFunc=ql.setEvaluated=ql.evaluatedPropsToName=ql.mergeEvaluated=ql.eachItem=ql.unescapeJsonPointer=ql.escapeJsonPointer=ql.escapeFragment=ql.unescapeFragment=ql.schemaRefOrVal=ql.schemaHasRulesButRef=ql.schemaHasRules=ql.checkUnknownRules=ql.alwaysValidSchema=ql.toHash=void 0;var j_=Cc(),sar=TM();function aar(o){let s={};for(let f of o)s[f]=!0;return s}t(aar,"toHash");ql.toHash=aar;function oar(o,s){return typeof s=="boolean"?s:Object.keys(s).length===0?!0:(Uct(o,s),!zct(s,o.self.RULES.all))}t(oar,"alwaysValidSchema");ql.alwaysValidSchema=oar;function Uct(o,s=o.schema){let{opts:f,self:d}=o;if(!f.strictSchema||typeof s=="boolean")return;let y=d.RULES.keywords;for(let x in s)y[x]||Wct(o,`unknown keyword: "${x}"`)}t(Uct,"checkUnknownRules");ql.checkUnknownRules=Uct;function zct(o,s){if(typeof o=="boolean")return!o;for(let f in o)if(s[f])return!0;return!1}t(zct,"schemaHasRules");ql.schemaHasRules=zct;function car(o,s){if(typeof o=="boolean")return!o;for(let f in o)if(f!=="$ref"&&s.all[f])return!0;return!1}t(car,"schemaHasRulesButRef");ql.schemaHasRulesButRef=car;function lar({topSchemaRef:o,schemaPath:s},f,d,y){if(!y){if(typeof f=="number"||typeof f=="boolean")return f;if(typeof f=="string")return(0,j_._)`${f}`}return(0,j_._)`${o}${s}${(0,j_.getProperty)(d)}`}t(lar,"schemaRefOrVal");ql.schemaRefOrVal=lar;function uar(o){return $ct(decodeURIComponent(o))}t(uar,"unescapeFragment");ql.unescapeFragment=uar;function far(o){return encodeURIComponent(zNe(o))}t(far,"escapeFragment");ql.escapeFragment=far;function zNe(o){return typeof o=="number"?`${o}`:o.replace(/~/g,"~0").replace(/\//g,"~1")}t(zNe,"escapeJsonPointer");ql.escapeJsonPointer=zNe;function $ct(o){return o.replace(/~1/g,"/").replace(/~0/g,"~")}t($ct,"unescapeJsonPointer");ql.unescapeJsonPointer=$ct;function _ar(o,s){if(Array.isArray(o))for(let f of o)s(f);else s(o)}t(_ar,"eachItem");ql.eachItem=_ar;function jct({mergeNames:o,mergeToName:s,mergeValues:f,resultToName:d}){return(y,x,P,F)=>{let J=P===void 0?x:P instanceof j_.Name?(x instanceof j_.Name?o(y,x,P):s(y,x,P),P):x instanceof j_.Name?(s(y,P,x),x):f(x,P);return F===j_.Name&&!(J instanceof j_.Name)?d(y,J):J}}t(jct,"makeMergeEvaluated");ql.mergeEvaluated={props:jct({mergeNames:t((o,s,f)=>o.if((0,j_._)`${f} !== true && ${s} !== undefined`,()=>{o.if((0,j_._)`${s} === true`,()=>o.assign(f,!0),()=>o.assign(f,(0,j_._)`${f} || {}`).code((0,j_._)`Object.assign(${f}, ${s})`))}),"mergeNames"),mergeToName:t((o,s,f)=>o.if((0,j_._)`${f} !== true`,()=>{s===!0?o.assign(f,!0):(o.assign(f,(0,j_._)`${f} || {}`),$Ne(o,f,s))}),"mergeToName"),mergeValues:t((o,s)=>o===!0?!0:{...o,...s},"mergeValues"),resultToName:Jct}),items:jct({mergeNames:t((o,s,f)=>o.if((0,j_._)`${f} !== true && ${s} !== undefined`,()=>o.assign(f,(0,j_._)`${s} === true ? true : ${f} > ${s} ? ${f} : ${s}`)),"mergeNames"),mergeToName:t((o,s,f)=>o.if((0,j_._)`${f} !== true`,()=>o.assign(f,s===!0?!0:(0,j_._)`${f} > ${s} ? ${f} : ${s}`)),"mergeToName"),mergeValues:t((o,s)=>o===!0?!0:Math.max(o,s),"mergeValues"),resultToName:t((o,s)=>o.var("items",s),"resultToName")})};function Jct(o,s){if(s===!0)return o.var("props",!0);let f=o.var("props",(0,j_._)`{}`);return s!==void 0&&$Ne(o,f,s),f}t(Jct,"evaluatedPropsToName");ql.evaluatedPropsToName=Jct;function $Ne(o,s,f){Object.keys(f).forEach(d=>o.assign((0,j_._)`${s}${(0,j_.getProperty)(d)}`,!0))}t($Ne,"setEvaluated");ql.setEvaluated=$Ne;var Bct={};function par(o,s){return o.scopeValue("func",{ref:s,code:Bct[s.code]||(Bct[s.code]=new sar._Code(s.code))})}t(par,"useFunc");ql.useFunc=par;var UNe;(function(o){o[o.Num=0]="Num",o[o.Str=1]="Str"})(UNe||(ql.Type=UNe={}));function dar(o,s,f){if(o instanceof j_.Name){let d=s===UNe.Num;return f?d?(0,j_._)`"[" + ${o} + "]"`:(0,j_._)`"['" + ${o} + "']"`:d?(0,j_._)`"/" + ${o}`:(0,j_._)`"/" + ${o}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return f?(0,j_.getProperty)(o).toString():"/"+zNe(o)}t(dar,"getErrorPath");ql.getErrorPath=dar;function Wct(o,s,f=o.opts.strictSchema){if(f){if(s=`strict mode: ${s}`,f===!0)throw new Error(s);o.self.logger.warn(s)}}t(Wct,"checkStrictMode");ql.checkStrictMode=Wct});var hT=or(JNe=>{"use strict";Object.defineProperty(JNe,"__esModule",{value:!0});var Dy=Cc(),mar={data:new Dy.Name("data"),valCxt:new Dy.Name("valCxt"),instancePath:new Dy.Name("instancePath"),parentData:new Dy.Name("parentData"),parentDataProperty:new Dy.Name("parentDataProperty"),rootData:new Dy.Name("rootData"),dynamicAnchors:new Dy.Name("dynamicAnchors"),vErrors:new Dy.Name("vErrors"),errors:new Dy.Name("errors"),this:new Dy.Name("this"),self:new Dy.Name("self"),scope:new Dy.Name("scope"),json:new Dy.Name("json"),jsonPos:new Dy.Name("jsonPos"),jsonLen:new Dy.Name("jsonLen"),jsonPart:new Dy.Name("jsonPart")};JNe.default=mar});var NH=or(Py=>{"use strict";Object.defineProperty(Py,"__esModule",{value:!0});Py.extendErrors=Py.resetErrorsCount=Py.reportExtraError=Py.reportError=Py.keyword$DataError=Py.keywordError=void 0;var Iu=Cc(),ole=ru(),L1=hT();Py.keywordError={message:t(({keyword:o})=>(0,Iu.str)`must pass "${o}" keyword validation`,"message")};Py.keyword$DataError={message:t(({keyword:o,schemaType:s})=>s?(0,Iu.str)`"${o}" keyword must be ${s} ($data)`:(0,Iu.str)`"${o}" keyword is invalid ($data)`,"message")};function har(o,s=Py.keywordError,f,d){let{it:y}=o,{gen:x,compositeRule:P,allErrors:F}=y,J=Hct(o,s,f);d??(P||F)?qct(x,J):Vct(y,(0,Iu._)`[${J}]`)}t(har,"reportError");Py.reportError=har;function gar(o,s=Py.keywordError,f){let{it:d}=o,{gen:y,compositeRule:x,allErrors:P}=d,F=Hct(o,s,f);qct(y,F),x||P||Vct(d,L1.default.vErrors)}t(gar,"reportExtraError");Py.reportExtraError=gar;function yar(o,s){o.assign(L1.default.errors,s),o.if((0,Iu._)`${L1.default.vErrors} !== null`,()=>o.if(s,()=>o.assign((0,Iu._)`${L1.default.vErrors}.length`,s),()=>o.assign(L1.default.vErrors,null)))}t(yar,"resetErrorsCount");Py.resetErrorsCount=yar;function bar({gen:o,keyword:s,schemaValue:f,data:d,errsCount:y,it:x}){if(y===void 0)throw new Error("ajv implementation error");let P=o.name("err");o.forRange("i",y,L1.default.errors,F=>{o.const(P,(0,Iu._)`${L1.default.vErrors}[${F}]`),o.if((0,Iu._)`${P}.instancePath === undefined`,()=>o.assign((0,Iu._)`${P}.instancePath`,(0,Iu.strConcat)(L1.default.instancePath,x.errorPath))),o.assign((0,Iu._)`${P}.schemaPath`,(0,Iu.str)`${x.errSchemaPath}/${s}`),x.opts.verbose&&(o.assign((0,Iu._)`${P}.schema`,f),o.assign((0,Iu._)`${P}.data`,d))})}t(bar,"extendErrors");Py.extendErrors=bar;function qct(o,s){let f=o.const("err",s);o.if((0,Iu._)`${L1.default.vErrors} === null`,()=>o.assign(L1.default.vErrors,(0,Iu._)`[${f}]`),(0,Iu._)`${L1.default.vErrors}.push(${f})`),o.code((0,Iu._)`${L1.default.errors}++`)}t(qct,"addError");function Vct(o,s){let{gen:f,validateName:d,schemaEnv:y}=o;y.$async?f.throw((0,Iu._)`new ${o.ValidationError}(${s})`):(f.assign((0,Iu._)`${d}.errors`,s),f.return(!1))}t(Vct,"returnErrors");var OO={keyword:new Iu.Name("keyword"),schemaPath:new Iu.Name("schemaPath"),params:new Iu.Name("params"),propertyName:new Iu.Name("propertyName"),message:new Iu.Name("message"),schema:new Iu.Name("schema"),parentSchema:new Iu.Name("parentSchema")};function Hct(o,s,f){let{createErrors:d}=o.it;return d===!1?(0,Iu._)`{}`:Sar(o,s,f)}t(Hct,"errorObjectCode");function Sar(o,s,f={}){let{gen:d,it:y}=o,x=[Tar(y,f),xar(o,f)];return Ear(o,s,x),d.object(...x)}t(Sar,"errorObject");function Tar({errorPath:o},{instancePath:s}){let f=s?(0,Iu.str)`${o}${(0,ole.getErrorPath)(s,ole.Type.Str)}`:o;return[L1.default.instancePath,(0,Iu.strConcat)(L1.default.instancePath,f)]}t(Tar,"errorInstancePath");function xar({keyword:o,it:{errSchemaPath:s}},{schemaPath:f,parentSchema:d}){let y=d?s:(0,Iu.str)`${s}/${o}`;return f&&(y=(0,Iu.str)`${y}${(0,ole.getErrorPath)(f,ole.Type.Str)}`),[OO.schemaPath,y]}t(xar,"errorSchemaPath");function Ear(o,{params:s,message:f},d){let{keyword:y,data:x,schemaValue:P,it:F}=o,{opts:J,propertyName:G,topSchemaRef:Se,schemaPath:de}=F;d.push([OO.keyword,y],[OO.params,typeof s=="function"?s(o):s||(0,Iu._)`{}`]),J.messages&&d.push([OO.message,typeof f=="function"?f(o):f]),J.verbose&&d.push([OO.schema,P],[OO.parentSchema,(0,Iu._)`${Se}${de}`],[L1.default.data,x]),G&&d.push([OO.propertyName,G])}t(Ear,"extraErrorProps")});var Yct=or(CM=>{"use strict";Object.defineProperty(CM,"__esModule",{value:!0});CM.boolOrEmptySchema=CM.topBoolOrEmptySchema=void 0;var Car=NH(),kar=Cc(),war=hT(),Dar={message:"boolean schema is false"};function Par(o){let{gen:s,schema:f,validateName:d}=o;f===!1?Gct(o,!1):typeof f=="object"&&f.$async===!0?s.return(war.default.data):(s.assign((0,kar._)`${d}.errors`,null),s.return(!0))}t(Par,"topBoolOrEmptySchema");CM.topBoolOrEmptySchema=Par;function Aar(o,s){let{gen:f,schema:d}=o;d===!1?(f.var(s,!1),Gct(o)):f.var(s,!0)}t(Aar,"boolOrEmptySchema");CM.boolOrEmptySchema=Aar;function Gct(o,s){let{gen:f,data:d}=o,y={gen:f,keyword:"false schema",data:d,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:o};(0,Car.reportError)(y,Dar,void 0,s)}t(Gct,"falseSchemaError")});var WNe=or(kM=>{"use strict";Object.defineProperty(kM,"__esModule",{value:!0});kM.getRules=kM.isJSONType=void 0;var Nar=["string","number","integer","boolean","null","object","array"],Iar=new Set(Nar);function Oar(o){return typeof o=="string"&&Iar.has(o)}t(Oar,"isJSONType");kM.isJSONType=Oar;function Far(){let o={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...o,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},o.number,o.string,o.array,o.object],post:{rules:[]},all:{},keywords:{}}}t(Far,"getRules");kM.getRules=Far});var qNe=or(uI=>{"use strict";Object.defineProperty(uI,"__esModule",{value:!0});uI.shouldUseRule=uI.shouldUseGroup=uI.schemaHasRulesForType=void 0;function Lar({schema:o,self:s},f){let d=s.RULES.types[f];return d&&d!==!0&&Kct(o,d)}t(Lar,"schemaHasRulesForType");uI.schemaHasRulesForType=Lar;function Kct(o,s){return s.rules.some(f=>Xct(o,f))}t(Kct,"shouldUseGroup");uI.shouldUseGroup=Kct;function Xct(o,s){var f;return o[s.keyword]!==void 0||((f=s.definition.implements)===null||f===void 0?void 0:f.some(d=>o[d]!==void 0))}t(Xct,"shouldUseRule");uI.shouldUseRule=Xct});var IH=or(Ay=>{"use strict";Object.defineProperty(Ay,"__esModule",{value:!0});Ay.reportTypeError=Ay.checkDataTypes=Ay.checkDataType=Ay.coerceAndCheckDataType=Ay.getJSONTypes=Ay.getSchemaTypes=Ay.DataType=void 0;var Rar=WNe(),Mar=qNe(),jar=NH(),hl=Cc(),Zct=ru(),wM;(function(o){o[o.Correct=0]="Correct",o[o.Wrong=1]="Wrong"})(wM||(Ay.DataType=wM={}));function Bar(o){let s=Qct(o.type);if(s.includes("null")){if(o.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!s.length&&o.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');o.nullable===!0&&s.push("null")}return s}t(Bar,"getSchemaTypes");Ay.getSchemaTypes=Bar;function Qct(o){let s=Array.isArray(o)?o:o?[o]:[];if(s.every(Rar.isJSONType))return s;throw new Error("type must be JSONType or JSONType[]: "+s.join(","))}t(Qct,"getJSONTypes");Ay.getJSONTypes=Qct;function Uar(o,s){let{gen:f,data:d,opts:y}=o,x=zar(s,y.coerceTypes),P=s.length>0&&!(x.length===0&&s.length===1&&(0,Mar.schemaHasRulesForType)(o,s[0]));if(P){let F=HNe(s,d,y.strictNumbers,wM.Wrong);f.if(F,()=>{x.length?$ar(o,s,x):GNe(o)})}return P}t(Uar,"coerceAndCheckDataType");Ay.coerceAndCheckDataType=Uar;var elt=new Set(["string","number","integer","boolean","null"]);function zar(o,s){return s?o.filter(f=>elt.has(f)||s==="array"&&f==="array"):[]}t(zar,"coerceToTypes");function $ar(o,s,f){let{gen:d,data:y,opts:x}=o,P=d.let("dataType",(0,hl._)`typeof ${y}`),F=d.let("coerced",(0,hl._)`undefined`);x.coerceTypes==="array"&&d.if((0,hl._)`${P} == 'object' && Array.isArray(${y}) && ${y}.length == 1`,()=>d.assign(y,(0,hl._)`${y}[0]`).assign(P,(0,hl._)`typeof ${y}`).if(HNe(s,y,x.strictNumbers),()=>d.assign(F,y))),d.if((0,hl._)`${F} !== undefined`);for(let G of f)(elt.has(G)||G==="array"&&x.coerceTypes==="array")&&J(G);d.else(),GNe(o),d.endIf(),d.if((0,hl._)`${F} !== undefined`,()=>{d.assign(y,F),Jar(o,F)});function J(G){switch(G){case"string":d.elseIf((0,hl._)`${P} == "number" || ${P} == "boolean"`).assign(F,(0,hl._)`"" + ${y}`).elseIf((0,hl._)`${y} === null`).assign(F,(0,hl._)`""`);return;case"number":d.elseIf((0,hl._)`${P} == "boolean" || ${y} === null
|
|
58
|
+
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:t(function(s){var f=this.aliasable("container.hooks.blockHelperMissing"),d=[this.contextName(0)];this.setupHelperArgs(s,0,d);var y=this.popStack();d.splice(1,0,y),this.push(this.source.functionCall(f,"call",d))},"blockValue"),ambiguousBlockValue:t(function(){var s=this.aliasable("container.hooks.blockHelperMissing"),f=[this.contextName(0)];this.setupHelperArgs("",0,f,!0),this.flushInline();var d=this.topStack();f.splice(1,0,d),this.pushSource(["if (!",this.lastHelper,") { ",d," = ",this.source.functionCall(s,"call",f),"}"])},"ambiguousBlockValue"),appendContent:t(function(s){this.pendingContent?s=this.pendingContent+s:this.pendingLocation=this.source.currentLocation,this.pendingContent=s},"appendContent"),append:t(function(){if(this.isInline())this.replaceStack(function(f){return[" != null ? ",f,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var s=this.popStack();this.pushSource(["if (",s," != null) { ",this.appendToBuffer(s,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:t(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:t(function(s){this.lastContext=s},"getContext"),pushContext:t(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:t(function(s,f,d,y){var x=0;!y&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(s[x++])):this.pushContext(),this.resolvePath("context",s,x,f,d)},"lookupOnContext"),lookupBlockParam:t(function(s,f){this.useBlockParams=!0,this.push(["blockParams[",s[0],"][",s[1],"]"]),this.resolvePath("context",f,1)},"lookupBlockParam"),lookupData:t(function(s,f,d){s?this.pushStackLiteral("container.data(data, "+s+")"):this.pushStackLiteral("data"),this.resolvePath("data",f,0,!0,d)},"lookupData"),resolvePath:t(function(s,f,d,y,x){var P=this;if(this.options.strict||this.options.assumeObjects){this.push(jQt(this.options.strict&&x,this,f,d,s));return}for(var F=f.length;d<F;d++)this.replaceStack(function(J){var G=P.nameLookup(J,f[d],s);return y?[" && ",G]:[" != null ? ",G," : ",J]})},"resolvePath"),resolvePossibleLambda:t(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:t(function(s,f){this.pushContext(),this.pushString(f),f!=="SubExpression"&&(typeof s=="string"?this.pushString(s):this.pushStackLiteral(s))},"pushStringParam"),emptyHash:t(function(s){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(s?"undefined":"{}")},"emptyHash"),pushHash:t(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:t(function(){var s=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(s.ids)),this.stringParams&&(this.push(this.objectLiteral(s.contexts)),this.push(this.objectLiteral(s.types))),this.push(this.objectLiteral(s.values))},"popHash"),pushString:t(function(s){this.pushStackLiteral(this.quotedString(s))},"pushString"),pushLiteral:t(function(s){this.pushStackLiteral(s)},"pushLiteral"),pushProgram:t(function(s){s!=null?this.pushStackLiteral(this.programExpression(s)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:t(function(s,f){var d=this.nameLookup("decorators",f,"decorator"),y=this.setupHelperArgs(f,s);this.decorators.push(["fn = ",this.decorators.functionCall(d,"",["fn","props","container",y])," || fn;"])},"registerDecorator"),invokeHelper:t(function(s,f,d){var y=this.popStack(),x=this.setupHelper(s,f),P=[];d&&P.push(x.name),P.push(y),this.options.strict||P.push(this.aliasable("container.hooks.helperMissing"));var F=["(",this.itemsSeparatedBy(P,"||"),")"],J=this.source.functionCall(F,"call",x.callParams);this.push(J)},"invokeHelper"),itemsSeparatedBy:t(function(s,f){var d=[];d.push(s[0]);for(var y=1;y<s.length;y++)d.push(f,s[y]);return d},"itemsSeparatedBy"),invokeKnownHelper:t(function(s,f){var d=this.setupHelper(s,f);this.push(this.source.functionCall(d.name,"call",d.callParams))},"invokeKnownHelper"),invokeAmbiguous:t(function(s,f){this.useRegister("helper");var d=this.popStack();this.emptyHash();var y=this.setupHelper(0,s,f),x=this.lastHelper=this.nameLookup("helpers",s,"helper"),P=["(","(helper = ",x," || ",d,")"];this.options.strict||(P[0]="(helper = ",P.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",P,y.paramsInit?["),(",y.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",y.callParams)," : helper))"])},"invokeAmbiguous"),invokePartial:t(function(s,f,d){var y=[],x=this.setupParams(f,1,y);s&&(f=this.popStack(),delete x.name),d&&(x.indent=JSON.stringify(d)),x.helpers="helpers",x.partials="partials",x.decorators="container.decorators",s?y.unshift(f):y.unshift(this.nameLookup("partials",f,"partial")),this.options.compat&&(x.depths="depths"),x=this.objectLiteral(x),y.push(x),this.push(this.source.functionCall("container.invokePartial","",y))},"invokePartial"),assignToHash:t(function(s){var f=this.popStack(),d=void 0,y=void 0,x=void 0;this.trackIds&&(x=this.popStack()),this.stringParams&&(y=this.popStack(),d=this.popStack());var P=this.hash;d&&(P.contexts[s]=d),y&&(P.types[s]=y),x&&(P.ids[s]=x),P.values[s]=f},"assignToHash"),pushId:t(function(s,f,d){s==="BlockParam"?this.pushStackLiteral("blockParams["+f[0]+"].path["+f[1]+"]"+(d?" + "+JSON.stringify("."+d):"")):s==="PathExpression"?this.pushString(f):s==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},"pushId"),compiler:rM,compileChildren:t(function(s,f){for(var d=s.children,y=void 0,x=void 0,P=0,F=d.length;P<F;P++){y=d[P],x=new this.compiler;var J=this.matchExistingProgram(y);if(J==null){this.context.programs.push("");var G=this.context.programs.length;y.index=G,y.name="program"+G,this.context.programs[G]=x.compile(y,f,this.context,!this.precompile),this.context.decorators[G]=x.decorators,this.context.environments[G]=y,this.useDepths=this.useDepths||x.useDepths,this.useBlockParams=this.useBlockParams||x.useBlockParams,y.useDepths=this.useDepths,y.useBlockParams=this.useBlockParams}else y.index=J.index,y.name="program"+J.index,this.useDepths=this.useDepths||J.useDepths,this.useBlockParams=this.useBlockParams||J.useBlockParams}},"compileChildren"),matchExistingProgram:t(function(s){for(var f=0,d=this.context.environments.length;f<d;f++){var y=this.context.environments[f];if(y&&y.equals(s))return y}},"matchExistingProgram"),programExpression:t(function(s){var f=this.environment.children[s],d=[f.index,"data",f.blockParams];return(this.useBlockParams||this.useDepths)&&d.push("blockParams"),this.useDepths&&d.push("depths"),"container.program("+d.join(", ")+")"},"programExpression"),useRegister:t(function(s){this.registers[s]||(this.registers[s]=!0,this.registers.list.push(s))},"useRegister"),push:t(function(s){return s instanceof tM||(s=this.source.wrap(s)),this.inlineStack.push(s),s},"push"),pushStackLiteral:t(function(s){this.push(new tM(s))},"pushStackLiteral"),pushSource:t(function(s){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),s&&this.source.push(s)},"pushSource"),replaceStack:t(function(s){var f=["("],d=void 0,y=void 0,x=void 0;if(!this.isInline())throw new HAe.default("replaceStack on non-inline");var P=this.popStack(!0);if(P instanceof tM)d=[P.value],f=["(",d],x=!0;else{y=!0;var F=this.incrStack();f=["((",this.push(F)," = ",P,")"],d=this.topStack()}var J=s.call(this,d);x||this.popStack(),y&&this.stackSlot--,this.push(f.concat(J,")"))},"replaceStack"),incrStack:t(function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},"incrStack"),topStackName:t(function(){return"stack"+this.stackSlot},"topStackName"),flushInline:t(function(){var s=this.inlineStack;this.inlineStack=[];for(var f=0,d=s.length;f<d;f++){var y=s[f];if(y instanceof tM)this.compileStack.push(y);else{var x=this.incrStack();this.pushSource([x," = ",y,";"]),this.compileStack.push(x)}}},"flushInline"),isInline:t(function(){return this.inlineStack.length},"isInline"),popStack:t(function(s){var f=this.isInline(),d=(f?this.inlineStack:this.compileStack).pop();if(!s&&d instanceof tM)return d.value;if(!f){if(!this.stackSlot)throw new HAe.default("Invalid stack pop");this.stackSlot--}return d},"popStack"),topStack:t(function(){var s=this.isInline()?this.inlineStack:this.compileStack,f=s[s.length-1];return f instanceof tM?f.value:f},"topStack"),contextName:t(function(s){return this.useDepths&&s?"depths["+s+"]":"depth"+s},"contextName"),quotedString:t(function(s){return this.source.quotedString(s)},"quotedString"),objectLiteral:t(function(s){return this.source.objectLiteral(s)},"objectLiteral"),aliasable:t(function(s){var f=this.aliases[s];return f?(f.referenceCount++,f):(f=this.aliases[s]=this.source.wrap(s),f.aliasable=!0,f.referenceCount=1,f)},"aliasable"),setupHelper:t(function(s,f,d){var y=[],x=this.setupHelperArgs(f,s,y,d),P=this.nameLookup("helpers",f,"helper"),F=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:y,paramsInit:x,name:P,callParams:[F].concat(y)}},"setupHelper"),setupParams:t(function(s,f,d){var y={},x=[],P=[],F=[],J=!d,G=void 0;J&&(d=[]),y.name=this.quotedString(s),y.hash=this.popStack(),this.trackIds&&(y.hashIds=this.popStack()),this.stringParams&&(y.hashTypes=this.popStack(),y.hashContexts=this.popStack());var Se=this.popStack(),de=this.popStack();(de||Se)&&(y.fn=de||"container.noop",y.inverse=Se||"container.noop");for(var ae=f;ae--;)G=this.popStack(),d[ae]=G,this.trackIds&&(F[ae]=this.popStack()),this.stringParams&&(P[ae]=this.popStack(),x[ae]=this.popStack());return J&&(y.args=this.source.generateArray(d)),this.trackIds&&(y.ids=this.source.generateArray(F)),this.stringParams&&(y.types=this.source.generateArray(P),y.contexts=this.source.generateArray(x)),this.options.data&&(y.data="data"),this.useBlockParams&&(y.blockParams="blockParams"),y},"setupParams"),setupHelperArgs:t(function(s,f,d,y){var x=this.setupParams(s,f,d);return x.loc=JSON.stringify(this.source.currentLocation),x=this.objectLiteral(x),y?(this.useRegister("options"),d.push("options"),["options=",x]):d?(d.push(x),""):x},"setupHelperArgs")};(function(){for(var o="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),s=rM.RESERVED_WORDS={},f=0,d=o.length;f<d;f++)s[o[f]]=!0})();rM.isValidJavaScriptVariableName=function(o){return!rM.RESERVED_WORDS[o]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(o)};function jQt(o,s,f,d,y){var x=s.popStack(),P=f.length;for(o&&P--;d<P;d++)x=s.nameLookup(x,f[d],y);return o?[s.aliasable("container.strict"),"(",x,", ",s.quotedString(f[d]),", ",JSON.stringify(s.source.currentLocation)," )"]:x}t(jQt,"strictLookup");Tce.default=rM;Tst.exports=Tce.default});var kst=or((xce,Cst)=>{"use strict";xce.__esModule=!0;function QV(o){return o&&o.__esModule?o:{default:o}}t(QV,"_interopRequireDefault");var BQt=Xit(),UQt=QV(BQt),zQt=MAe(),$Qt=QV(zQt),GAe=ust(),YAe=dst(),JQt=xst(),WQt=QV(JQt),qQt=yce(),VQt=QV(qQt),HQt=OAe(),GQt=QV(HQt),YQt=UQt.default.create;function Est(){var o=YQt();return o.compile=function(s,f){return YAe.compile(s,f,o)},o.precompile=function(s,f){return YAe.precompile(s,f,o)},o.AST=$Qt.default,o.Compiler=YAe.Compiler,o.JavaScriptCompiler=WQt.default,o.Parser=GAe.parser,o.parse=GAe.parse,o.parseWithoutProcessing=GAe.parseWithoutProcessing,o}t(Est,"create");var nM=Est();nM.create=Est;GQt.default(nM);nM.Visitor=VQt.default;nM.default=nM;xce.default=nM;Cst.exports=xce.default});var wst=or(Ece=>{"use strict";Ece.__esModule=!0;Ece.print=QQt;Ece.PrintVisitor=Zd;function KQt(o){return o&&o.__esModule?o:{default:o}}t(KQt,"_interopRequireDefault");var XQt=yce(),ZQt=KQt(XQt);function QQt(o){return new Zd().accept(o)}t(QQt,"print");function Zd(){this.padding=0}t(Zd,"PrintVisitor");Zd.prototype=new ZQt.default;Zd.prototype.pad=function(o){for(var s="",f=0,d=this.padding;f<d;f++)s+=" ";return s+=o+`
|
|
59
|
+
`,s};Zd.prototype.Program=function(o){var s="",f=o.body,d=void 0,y=void 0;if(o.blockParams){var x="BLOCK PARAMS: [";for(d=0,y=o.blockParams.length;d<y;d++)x+=" "+o.blockParams[d];x+=" ]",s+=this.pad(x)}for(d=0,y=f.length;d<y;d++)s+=this.accept(f[d]);return this.padding--,s};Zd.prototype.MustacheStatement=function(o){return this.pad("{{ "+this.SubExpression(o)+" }}")};Zd.prototype.Decorator=function(o){return this.pad("{{ DIRECTIVE "+this.SubExpression(o)+" }}")};Zd.prototype.BlockStatement=Zd.prototype.DecoratorBlock=function(o){var s="";return s+=this.pad((o.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,s+=this.pad(this.SubExpression(o)),o.program&&(s+=this.pad("PROGRAM:"),this.padding++,s+=this.accept(o.program),this.padding--),o.inverse&&(o.program&&this.padding++,s+=this.pad("{{^}}"),this.padding++,s+=this.accept(o.inverse),this.padding--,o.program&&this.padding--),this.padding--,s};Zd.prototype.PartialStatement=function(o){var s="PARTIAL:"+o.name.original;return o.params[0]&&(s+=" "+this.accept(o.params[0])),o.hash&&(s+=" "+this.accept(o.hash)),this.pad("{{> "+s+" }}")};Zd.prototype.PartialBlockStatement=function(o){var s="PARTIAL BLOCK:"+o.name.original;return o.params[0]&&(s+=" "+this.accept(o.params[0])),o.hash&&(s+=" "+this.accept(o.hash)),s+=" "+this.pad("PROGRAM:"),this.padding++,s+=this.accept(o.program),this.padding--,this.pad("{{> "+s+" }}")};Zd.prototype.ContentStatement=function(o){return this.pad("CONTENT[ '"+o.value+"' ]")};Zd.prototype.CommentStatement=function(o){return this.pad("{{! '"+o.value+"' }}")};Zd.prototype.SubExpression=function(o){for(var s=o.params,f=[],d=void 0,y=0,x=s.length;y<x;y++)f.push(this.accept(s[y]));return s="["+f.join(", ")+"]",d=o.hash?" "+this.accept(o.hash):"",this.accept(o.path)+" "+s+d};Zd.prototype.PathExpression=function(o){var s=o.parts.join("/");return(o.data?"@":"")+"PATH:"+s};Zd.prototype.StringLiteral=function(o){return'"'+o.value+'"'};Zd.prototype.NumberLiteral=function(o){return"NUMBER{"+o.value+"}"};Zd.prototype.BooleanLiteral=function(o){return"BOOLEAN{"+o.value+"}"};Zd.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Zd.prototype.NullLiteral=function(){return"NULL"};Zd.prototype.Hash=function(o){for(var s=o.pairs,f=[],d=0,y=s.length;d<y;d++)f.push(this.accept(s[d]));return"HASH{"+f.join(", ")+"}"};Zd.prototype.HashPair=function(o){return o.key+"="+this.accept(o.value)}});var Nst=or((Iwr,Ast)=>{var Cce=kst().default,Pst=wst();Cce.PrintVisitor=Pst.PrintVisitor;Cce.print=Pst.print;Ast.exports=Cce;function Dst(o,s){var f=_o("fs"),d=f.readFileSync(s,"utf8");o.exports=Cce.compile(d)}t(Dst,"extension");typeof _o<"u"&&_o.extensions&&(_o.extensions[".handlebars"]=Dst,_o.extensions[".hbs"]=Dst)});var oM=or(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.regexpCode=qu.getEsmExportName=qu.getProperty=qu.safeStringify=qu.stringify=qu.strConcat=qu.addCodeArg=qu.str=qu._=qu.nil=qu._Code=qu.Name=qu.IDENTIFIER=qu._CodeOrName=void 0;var oH=class{static{t(this,"_CodeOrName")}};qu._CodeOrName=oH;qu.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var bO=class extends oH{static{t(this,"Name")}constructor(s){if(super(),!qu.IDENTIFIER.test(s))throw new Error("CodeGen: name must be a valid identifier");this.str=s}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};qu.Name=bO;var fT=class extends oH{static{t(this,"_Code")}constructor(s){super(),this._items=typeof s=="string"?[s]:s}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let s=this._items[0];return s===""||s==='""'}get str(){var s;return(s=this._str)!==null&&s!==void 0?s:this._str=this._items.reduce((f,d)=>`${f}${d}`,"")}get names(){var s;return(s=this._names)!==null&&s!==void 0?s:this._names=this._items.reduce((f,d)=>(d instanceof bO&&(f[d.str]=(f[d.str]||0)+1),f),{})}};qu._Code=fT;qu.nil=new fT("");function Xst(o,...s){let f=[o[0]],d=0;for(;d<s.length;)i6e(f,s[d]),f.push(o[++d]);return new fT(f)}t(Xst,"_");qu._=Xst;var n6e=new fT("+");function Zst(o,...s){let f=[cH(o[0])],d=0;for(;d<s.length;)f.push(n6e),i6e(f,s[d]),f.push(n6e,cH(o[++d]));return Uer(f),new fT(f)}t(Zst,"str");qu.str=Zst;function i6e(o,s){s instanceof fT?o.push(...s._items):s instanceof bO?o.push(s):o.push(Jer(s))}t(i6e,"addCodeArg");qu.addCodeArg=i6e;function Uer(o){let s=1;for(;s<o.length-1;){if(o[s]===n6e){let f=zer(o[s-1],o[s+1]);if(f!==void 0){o.splice(s-1,3,f);continue}o[s++]="+"}s++}}t(Uer,"optimize");function zer(o,s){if(s==='""')return o;if(o==='""')return s;if(typeof o=="string")return s instanceof bO||o[o.length-1]!=='"'?void 0:typeof s!="string"?`${o.slice(0,-1)}${s}"`:s[0]==='"'?o.slice(0,-1)+s.slice(1):void 0;if(typeof s=="string"&&s[0]==='"'&&!(o instanceof bO))return`"${o}${s.slice(1)}`}t(zer,"mergeExprItems");function $er(o,s){return s.emptyStr()?o:o.emptyStr()?s:Zst`${o}${s}`}t($er,"strConcat");qu.strConcat=$er;function Jer(o){return typeof o=="number"||typeof o=="boolean"||o===null?o:cH(Array.isArray(o)?o.join(","):o)}t(Jer,"interpolate");function Wer(o){return new fT(cH(o))}t(Wer,"stringify");qu.stringify=Wer;function cH(o){return JSON.stringify(o).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t(cH,"safeStringify");qu.safeStringify=cH;function qer(o){return typeof o=="string"&&qu.IDENTIFIER.test(o)?new fT(`.${o}`):Xst`[${o}]`}t(qer,"getProperty");qu.getProperty=qer;function Ver(o){if(typeof o=="string"&&qu.IDENTIFIER.test(o))return new fT(`${o}`);throw new Error(`CodeGen: invalid export name: ${o}, use explicit $id name mapping`)}t(Ver,"getEsmExportName");qu.getEsmExportName=Ver;function Her(o){return new fT(o.toString())}t(Her,"regexpCode");qu.regexpCode=Her});var Pce=or(Yv=>{"use strict";Object.defineProperty(Yv,"__esModule",{value:!0});Yv.ValueScope=Yv.ValueScopeName=Yv.Scope=Yv.varKinds=Yv.UsedValueState=void 0;var Gv=oM(),s6e=class extends Error{static{t(this,"ValueError")}constructor(s){super(`CodeGen: "code" for ${s} not defined`),this.value=s.value}},kce;(function(o){o[o.Started=0]="Started",o[o.Completed=1]="Completed"})(kce||(Yv.UsedValueState=kce={}));Yv.varKinds={const:new Gv.Name("const"),let:new Gv.Name("let"),var:new Gv.Name("var")};var wce=class{static{t(this,"Scope")}constructor({prefixes:s,parent:f}={}){this._names={},this._prefixes=s,this._parent=f}toName(s){return s instanceof Gv.Name?s:this.name(s)}name(s){return new Gv.Name(this._newName(s))}_newName(s){let f=this._names[s]||this._nameGroup(s);return`${s}${f.index++}`}_nameGroup(s){var f,d;if(!((d=(f=this._parent)===null||f===void 0?void 0:f._prefixes)===null||d===void 0)&&d.has(s)||this._prefixes&&!this._prefixes.has(s))throw new Error(`CodeGen: prefix "${s}" is not allowed in this scope`);return this._names[s]={prefix:s,index:0}}};Yv.Scope=wce;var Dce=class extends Gv.Name{static{t(this,"ValueScopeName")}constructor(s,f){super(f),this.prefix=s}setValue(s,{property:f,itemIndex:d}){this.value=s,this.scopePath=(0,Gv._)`.${new Gv.Name(f)}[${d}]`}};Yv.ValueScopeName=Dce;var Ger=(0,Gv._)`\n`,a6e=class extends wce{static{t(this,"ValueScope")}constructor(s){super(s),this._values={},this._scope=s.scope,this.opts={...s,_n:s.lines?Ger:Gv.nil}}get(){return this._scope}name(s){return new Dce(s,this._newName(s))}value(s,f){var d;if(f.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let y=this.toName(s),{prefix:x}=y,P=(d=f.key)!==null&&d!==void 0?d:f.ref,F=this._values[x];if(F){let Se=F.get(P);if(Se)return Se}else F=this._values[x]=new Map;F.set(P,y);let J=this._scope[x]||(this._scope[x]=[]),G=J.length;return J[G]=f.ref,y.setValue(f,{property:x,itemIndex:G}),y}getValue(s,f){let d=this._values[s];if(d)return d.get(f)}scopeRefs(s,f=this._values){return this._reduceValues(f,d=>{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,Gv._)`${s}${d.scopePath}`})}scopeCode(s=this._values,f,d){return this._reduceValues(s,y=>{if(y.value===void 0)throw new Error(`CodeGen: name "${y}" has no value`);return y.value.code},f,d)}_reduceValues(s,f,d={},y){let x=Gv.nil;for(let P in s){let F=s[P];if(!F)continue;let J=d[P]=d[P]||new Map;F.forEach(G=>{if(J.has(G))return;J.set(G,kce.Started);let Se=f(G);if(Se){let de=this.opts.es5?Yv.varKinds.var:Yv.varKinds.const;x=(0,Gv._)`${x}${de} ${G} = ${Se};${this.opts._n}`}else if(Se=y?.(G))x=(0,Gv._)`${x}${Se}${this.opts._n}`;else throw new s6e(G);J.set(G,kce.Completed)})}return x}};Yv.ValueScope=a6e});var Cc=or(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.or=Nl.and=Nl.not=Nl.CodeGen=Nl.operators=Nl.varKinds=Nl.ValueScopeName=Nl.ValueScope=Nl.Scope=Nl.Name=Nl.regexpCode=Nl.stringify=Nl.getProperty=Nl.nil=Nl.strConcat=Nl.str=Nl._=void 0;var vu=oM(),SE=Pce(),rI=oM();Object.defineProperty(Nl,"_",{enumerable:!0,get:t(function(){return rI._},"get")});Object.defineProperty(Nl,"str",{enumerable:!0,get:t(function(){return rI.str},"get")});Object.defineProperty(Nl,"strConcat",{enumerable:!0,get:t(function(){return rI.strConcat},"get")});Object.defineProperty(Nl,"nil",{enumerable:!0,get:t(function(){return rI.nil},"get")});Object.defineProperty(Nl,"getProperty",{enumerable:!0,get:t(function(){return rI.getProperty},"get")});Object.defineProperty(Nl,"stringify",{enumerable:!0,get:t(function(){return rI.stringify},"get")});Object.defineProperty(Nl,"regexpCode",{enumerable:!0,get:t(function(){return rI.regexpCode},"get")});Object.defineProperty(Nl,"Name",{enumerable:!0,get:t(function(){return rI.Name},"get")});var Oce=Pce();Object.defineProperty(Nl,"Scope",{enumerable:!0,get:t(function(){return Oce.Scope},"get")});Object.defineProperty(Nl,"ValueScope",{enumerable:!0,get:t(function(){return Oce.ValueScope},"get")});Object.defineProperty(Nl,"ValueScopeName",{enumerable:!0,get:t(function(){return Oce.ValueScopeName},"get")});Object.defineProperty(Nl,"varKinds",{enumerable:!0,get:t(function(){return Oce.varKinds},"get")});Nl.operators={GT:new vu._Code(">"),GTE:new vu._Code(">="),LT:new vu._Code("<"),LTE:new vu._Code("<="),EQ:new vu._Code("==="),NEQ:new vu._Code("!=="),NOT:new vu._Code("!"),OR:new vu._Code("||"),AND:new vu._Code("&&"),ADD:new vu._Code("+")};var GP=class{static{t(this,"Node")}optimizeNodes(){return this}optimizeNames(s,f){return this}},o6e=class extends GP{static{t(this,"Def")}constructor(s,f,d){super(),this.varKind=s,this.name=f,this.rhs=d}render({es5:s,_n:f}){let d=s?SE.varKinds.var:this.varKind,y=this.rhs===void 0?"":` = ${this.rhs}`;return`${d} ${this.name}${y};`+f}optimizeNames(s,f){if(s[this.name.str])return this.rhs&&(this.rhs=lM(this.rhs,s,f)),this}get names(){return this.rhs instanceof vu._CodeOrName?this.rhs.names:{}}},Ace=class extends GP{static{t(this,"Assign")}constructor(s,f,d){super(),this.lhs=s,this.rhs=f,this.sideEffects=d}render({_n:s}){return`${this.lhs} = ${this.rhs};`+s}optimizeNames(s,f){if(!(this.lhs instanceof vu.Name&&!s[this.lhs.str]&&!this.sideEffects))return this.rhs=lM(this.rhs,s,f),this}get names(){let s=this.lhs instanceof vu.Name?{}:{...this.lhs.names};return Ice(s,this.rhs)}},c6e=class extends Ace{static{t(this,"AssignOp")}constructor(s,f,d,y){super(s,d,y),this.op=f}render({_n:s}){return`${this.lhs} ${this.op}= ${this.rhs};`+s}},l6e=class extends GP{static{t(this,"Label")}constructor(s){super(),this.label=s,this.names={}}render({_n:s}){return`${this.label}:`+s}},u6e=class extends GP{static{t(this,"Break")}constructor(s){super(),this.label=s,this.names={}}render({_n:s}){return`break${this.label?` ${this.label}`:""};`+s}},f6e=class extends GP{static{t(this,"Throw")}constructor(s){super(),this.error=s}render({_n:s}){return`throw ${this.error};`+s}get names(){return this.error.names}},_6e=class extends GP{static{t(this,"AnyCode")}constructor(s){super(),this.code=s}render({_n:s}){return`${this.code};`+s}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(s,f){return this.code=lM(this.code,s,f),this}get names(){return this.code instanceof vu._CodeOrName?this.code.names:{}}},lH=class extends GP{static{t(this,"ParentNode")}constructor(s=[]){super(),this.nodes=s}render(s){return this.nodes.reduce((f,d)=>f+d.render(s),"")}optimizeNodes(){let{nodes:s}=this,f=s.length;for(;f--;){let d=s[f].optimizeNodes();Array.isArray(d)?s.splice(f,1,...d):d?s[f]=d:s.splice(f,1)}return s.length>0?this:void 0}optimizeNames(s,f){let{nodes:d}=this,y=d.length;for(;y--;){let x=d[y];x.optimizeNames(s,f)||(Yer(s,x.names),d.splice(y,1))}return d.length>0?this:void 0}get names(){return this.nodes.reduce((s,f)=>xO(s,f.names),{})}},YP=class extends lH{static{t(this,"BlockNode")}render(s){return"{"+s._n+super.render(s)+"}"+s._n}},p6e=class extends lH{static{t(this,"Root")}},cM=class extends YP{static{t(this,"Else")}};cM.kind="else";var SO=class o extends YP{static{t(this,"If")}constructor(s,f){super(f),this.condition=s}render(s){let f=`if(${this.condition})`+super.render(s);return this.else&&(f+="else "+this.else.render(s)),f}optimizeNodes(){super.optimizeNodes();let s=this.condition;if(s===!0)return this.nodes;let f=this.else;if(f){let d=f.optimizeNodes();f=this.else=Array.isArray(d)?new cM(d):d}if(f)return s===!1?f instanceof o?f:f.nodes:this.nodes.length?this:new o(Qst(s),f instanceof o?[f]:f.nodes);if(!(s===!1||!this.nodes.length))return this}optimizeNames(s,f){var d;if(this.else=(d=this.else)===null||d===void 0?void 0:d.optimizeNames(s,f),!!(super.optimizeNames(s,f)||this.else))return this.condition=lM(this.condition,s,f),this}get names(){let s=super.names;return Ice(s,this.condition),this.else&&xO(s,this.else.names),s}};SO.kind="if";var TO=class extends YP{static{t(this,"For")}};TO.kind="for";var d6e=class extends TO{static{t(this,"ForLoop")}constructor(s){super(),this.iteration=s}render(s){return`for(${this.iteration})`+super.render(s)}optimizeNames(s,f){if(super.optimizeNames(s,f))return this.iteration=lM(this.iteration,s,f),this}get names(){return xO(super.names,this.iteration.names)}},m6e=class extends TO{static{t(this,"ForRange")}constructor(s,f,d,y){super(),this.varKind=s,this.name=f,this.from=d,this.to=y}render(s){let f=s.es5?SE.varKinds.var:this.varKind,{name:d,from:y,to:x}=this;return`for(${f} ${d}=${y}; ${d}<${x}; ${d}++)`+super.render(s)}get names(){let s=Ice(super.names,this.from);return Ice(s,this.to)}},Nce=class extends TO{static{t(this,"ForIter")}constructor(s,f,d,y){super(),this.loop=s,this.varKind=f,this.name=d,this.iterable=y}render(s){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(s)}optimizeNames(s,f){if(super.optimizeNames(s,f))return this.iterable=lM(this.iterable,s,f),this}get names(){return xO(super.names,this.iterable.names)}},uH=class extends YP{static{t(this,"Func")}constructor(s,f,d){super(),this.name=s,this.args=f,this.async=d}render(s){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(s)}};uH.kind="func";var fH=class extends lH{static{t(this,"Return")}render(s){return"return "+super.render(s)}};fH.kind="return";var h6e=class extends YP{static{t(this,"Try")}render(s){let f="try"+super.render(s);return this.catch&&(f+=this.catch.render(s)),this.finally&&(f+=this.finally.render(s)),f}optimizeNodes(){var s,f;return super.optimizeNodes(),(s=this.catch)===null||s===void 0||s.optimizeNodes(),(f=this.finally)===null||f===void 0||f.optimizeNodes(),this}optimizeNames(s,f){var d,y;return super.optimizeNames(s,f),(d=this.catch)===null||d===void 0||d.optimizeNames(s,f),(y=this.finally)===null||y===void 0||y.optimizeNames(s,f),this}get names(){let s=super.names;return this.catch&&xO(s,this.catch.names),this.finally&&xO(s,this.finally.names),s}},_H=class extends YP{static{t(this,"Catch")}constructor(s){super(),this.error=s}render(s){return`catch(${this.error})`+super.render(s)}};_H.kind="catch";var pH=class extends YP{static{t(this,"Finally")}render(s){return"finally"+super.render(s)}};pH.kind="finally";var g6e=class{static{t(this,"CodeGen")}constructor(s,f={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...f,_n:f.lines?`
|
|
60
|
+
`:""},this._extScope=s,this._scope=new SE.Scope({parent:s}),this._nodes=[new p6e]}toString(){return this._root.render(this.opts)}name(s){return this._scope.name(s)}scopeName(s){return this._extScope.name(s)}scopeValue(s,f){let d=this._extScope.value(s,f);return(this._values[d.prefix]||(this._values[d.prefix]=new Set)).add(d),d}getScopeValue(s,f){return this._extScope.getValue(s,f)}scopeRefs(s){return this._extScope.scopeRefs(s,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(s,f,d,y){let x=this._scope.toName(f);return d!==void 0&&y&&(this._constants[x.str]=d),this._leafNode(new o6e(s,x,d)),x}const(s,f,d){return this._def(SE.varKinds.const,s,f,d)}let(s,f,d){return this._def(SE.varKinds.let,s,f,d)}var(s,f,d){return this._def(SE.varKinds.var,s,f,d)}assign(s,f,d){return this._leafNode(new Ace(s,f,d))}add(s,f){return this._leafNode(new c6e(s,Nl.operators.ADD,f))}code(s){return typeof s=="function"?s():s!==vu.nil&&this._leafNode(new _6e(s)),this}object(...s){let f=["{"];for(let[d,y]of s)f.length>1&&f.push(","),f.push(d),(d!==y||this.opts.es5)&&(f.push(":"),(0,vu.addCodeArg)(f,y));return f.push("}"),new vu._Code(f)}if(s,f,d){if(this._blockNode(new SO(s)),f&&d)this.code(f).else().code(d).endIf();else if(f)this.code(f).endIf();else if(d)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(s){return this._elseNode(new SO(s))}else(){return this._elseNode(new cM)}endIf(){return this._endBlockNode(SO,cM)}_for(s,f){return this._blockNode(s),f&&this.code(f).endFor(),this}for(s,f){return this._for(new d6e(s),f)}forRange(s,f,d,y,x=this.opts.es5?SE.varKinds.var:SE.varKinds.let){let P=this._scope.toName(s);return this._for(new m6e(x,P,f,d),()=>y(P))}forOf(s,f,d,y=SE.varKinds.const){let x=this._scope.toName(s);if(this.opts.es5){let P=f instanceof vu.Name?f:this.var("_arr",f);return this.forRange("_i",0,(0,vu._)`${P}.length`,F=>{this.var(x,(0,vu._)`${P}[${F}]`),d(x)})}return this._for(new Nce("of",y,x,f),()=>d(x))}forIn(s,f,d,y=this.opts.es5?SE.varKinds.var:SE.varKinds.const){if(this.opts.ownProperties)return this.forOf(s,(0,vu._)`Object.keys(${f})`,d);let x=this._scope.toName(s);return this._for(new Nce("in",y,x,f),()=>d(x))}endFor(){return this._endBlockNode(TO)}label(s){return this._leafNode(new l6e(s))}break(s){return this._leafNode(new u6e(s))}return(s){let f=new fH;if(this._blockNode(f),this.code(s),f.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(fH)}try(s,f,d){if(!f&&!d)throw new Error('CodeGen: "try" without "catch" and "finally"');let y=new h6e;if(this._blockNode(y),this.code(s),f){let x=this.name("e");this._currNode=y.catch=new _H(x),f(x)}return d&&(this._currNode=y.finally=new pH,this.code(d)),this._endBlockNode(_H,pH)}throw(s){return this._leafNode(new f6e(s))}block(s,f){return this._blockStarts.push(this._nodes.length),s&&this.code(s).endBlock(f),this}endBlock(s){let f=this._blockStarts.pop();if(f===void 0)throw new Error("CodeGen: not in self-balancing block");let d=this._nodes.length-f;if(d<0||s!==void 0&&d!==s)throw new Error(`CodeGen: wrong number of nodes: ${d} vs ${s} expected`);return this._nodes.length=f,this}func(s,f=vu.nil,d,y){return this._blockNode(new uH(s,f,d)),y&&this.code(y).endFunc(),this}endFunc(){return this._endBlockNode(uH)}optimize(s=1){for(;s-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(s){return this._currNode.nodes.push(s),this}_blockNode(s){this._currNode.nodes.push(s),this._nodes.push(s)}_endBlockNode(s,f){let d=this._currNode;if(d instanceof s||f&&d instanceof f)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${f?`${s.kind}/${f.kind}`:s.kind}"`)}_elseNode(s){let f=this._currNode;if(!(f instanceof SO))throw new Error('CodeGen: "else" without "if"');return this._currNode=f.else=s,this}get _root(){return this._nodes[0]}get _currNode(){let s=this._nodes;return s[s.length-1]}set _currNode(s){let f=this._nodes;f[f.length-1]=s}};Nl.CodeGen=g6e;function xO(o,s){for(let f in s)o[f]=(o[f]||0)+(s[f]||0);return o}t(xO,"addNames");function Ice(o,s){return s instanceof vu._CodeOrName?xO(o,s.names):o}t(Ice,"addExprNames");function lM(o,s,f){if(o instanceof vu.Name)return d(o);if(!y(o))return o;return new vu._Code(o._items.reduce((x,P)=>(P instanceof vu.Name&&(P=d(P)),P instanceof vu._Code?x.push(...P._items):x.push(P),x),[]));function d(x){let P=f[x.str];return P===void 0||s[x.str]!==1?x:(delete s[x.str],P)}function y(x){return x instanceof vu._Code&&x._items.some(P=>P instanceof vu.Name&&s[P.str]===1&&f[P.str]!==void 0)}}t(lM,"optimizeExpr");function Yer(o,s){for(let f in s)o[f]=(o[f]||0)-(s[f]||0)}t(Yer,"subtractNames");function Qst(o){return typeof o=="boolean"||typeof o=="number"||o===null?!o:(0,vu._)`!${y6e(o)}`}t(Qst,"not");Nl.not=Qst;var Ker=eat(Nl.operators.AND);function Xer(...o){return o.reduce(Ker)}t(Xer,"and");Nl.and=Xer;var Zer=eat(Nl.operators.OR);function Qer(...o){return o.reduce(Zer)}t(Qer,"or");Nl.or=Qer;function eat(o){return(s,f)=>s===vu.nil?f:f===vu.nil?s:(0,vu._)`${y6e(s)} ${o} ${y6e(f)}`}t(eat,"mappend");function y6e(o){return o instanceof vu.Name?o:(0,vu._)`(${o})`}t(y6e,"par")});var ru=or(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});ql.checkStrictMode=ql.getErrorPath=ql.Type=ql.useFunc=ql.setEvaluated=ql.evaluatedPropsToName=ql.mergeEvaluated=ql.eachItem=ql.unescapeJsonPointer=ql.escapeJsonPointer=ql.escapeFragment=ql.unescapeFragment=ql.schemaRefOrVal=ql.schemaHasRulesButRef=ql.schemaHasRules=ql.checkUnknownRules=ql.alwaysValidSchema=ql.toHash=void 0;var j_=Cc(),etr=oM();function ttr(o){let s={};for(let f of o)s[f]=!0;return s}t(ttr,"toHash");ql.toHash=ttr;function rtr(o,s){return typeof s=="boolean"?s:Object.keys(s).length===0?!0:(nat(o,s),!iat(s,o.self.RULES.all))}t(rtr,"alwaysValidSchema");ql.alwaysValidSchema=rtr;function nat(o,s=o.schema){let{opts:f,self:d}=o;if(!f.strictSchema||typeof s=="boolean")return;let y=d.RULES.keywords;for(let x in s)y[x]||oat(o,`unknown keyword: "${x}"`)}t(nat,"checkUnknownRules");ql.checkUnknownRules=nat;function iat(o,s){if(typeof o=="boolean")return!o;for(let f in o)if(s[f])return!0;return!1}t(iat,"schemaHasRules");ql.schemaHasRules=iat;function ntr(o,s){if(typeof o=="boolean")return!o;for(let f in o)if(f!=="$ref"&&s.all[f])return!0;return!1}t(ntr,"schemaHasRulesButRef");ql.schemaHasRulesButRef=ntr;function itr({topSchemaRef:o,schemaPath:s},f,d,y){if(!y){if(typeof f=="number"||typeof f=="boolean")return f;if(typeof f=="string")return(0,j_._)`${f}`}return(0,j_._)`${o}${s}${(0,j_.getProperty)(d)}`}t(itr,"schemaRefOrVal");ql.schemaRefOrVal=itr;function str(o){return sat(decodeURIComponent(o))}t(str,"unescapeFragment");ql.unescapeFragment=str;function atr(o){return encodeURIComponent(b6e(o))}t(atr,"escapeFragment");ql.escapeFragment=atr;function b6e(o){return typeof o=="number"?`${o}`:o.replace(/~/g,"~0").replace(/\//g,"~1")}t(b6e,"escapeJsonPointer");ql.escapeJsonPointer=b6e;function sat(o){return o.replace(/~1/g,"/").replace(/~0/g,"~")}t(sat,"unescapeJsonPointer");ql.unescapeJsonPointer=sat;function otr(o,s){if(Array.isArray(o))for(let f of o)s(f);else s(o)}t(otr,"eachItem");ql.eachItem=otr;function tat({mergeNames:o,mergeToName:s,mergeValues:f,resultToName:d}){return(y,x,P,F)=>{let J=P===void 0?x:P instanceof j_.Name?(x instanceof j_.Name?o(y,x,P):s(y,x,P),P):x instanceof j_.Name?(s(y,P,x),x):f(x,P);return F===j_.Name&&!(J instanceof j_.Name)?d(y,J):J}}t(tat,"makeMergeEvaluated");ql.mergeEvaluated={props:tat({mergeNames:t((o,s,f)=>o.if((0,j_._)`${f} !== true && ${s} !== undefined`,()=>{o.if((0,j_._)`${s} === true`,()=>o.assign(f,!0),()=>o.assign(f,(0,j_._)`${f} || {}`).code((0,j_._)`Object.assign(${f}, ${s})`))}),"mergeNames"),mergeToName:t((o,s,f)=>o.if((0,j_._)`${f} !== true`,()=>{s===!0?o.assign(f,!0):(o.assign(f,(0,j_._)`${f} || {}`),S6e(o,f,s))}),"mergeToName"),mergeValues:t((o,s)=>o===!0?!0:{...o,...s},"mergeValues"),resultToName:aat}),items:tat({mergeNames:t((o,s,f)=>o.if((0,j_._)`${f} !== true && ${s} !== undefined`,()=>o.assign(f,(0,j_._)`${s} === true ? true : ${f} > ${s} ? ${f} : ${s}`)),"mergeNames"),mergeToName:t((o,s,f)=>o.if((0,j_._)`${f} !== true`,()=>o.assign(f,s===!0?!0:(0,j_._)`${f} > ${s} ? ${f} : ${s}`)),"mergeToName"),mergeValues:t((o,s)=>o===!0?!0:Math.max(o,s),"mergeValues"),resultToName:t((o,s)=>o.var("items",s),"resultToName")})};function aat(o,s){if(s===!0)return o.var("props",!0);let f=o.var("props",(0,j_._)`{}`);return s!==void 0&&S6e(o,f,s),f}t(aat,"evaluatedPropsToName");ql.evaluatedPropsToName=aat;function S6e(o,s,f){Object.keys(f).forEach(d=>o.assign((0,j_._)`${s}${(0,j_.getProperty)(d)}`,!0))}t(S6e,"setEvaluated");ql.setEvaluated=S6e;var rat={};function ctr(o,s){return o.scopeValue("func",{ref:s,code:rat[s.code]||(rat[s.code]=new etr._Code(s.code))})}t(ctr,"useFunc");ql.useFunc=ctr;var v6e;(function(o){o[o.Num=0]="Num",o[o.Str=1]="Str"})(v6e||(ql.Type=v6e={}));function ltr(o,s,f){if(o instanceof j_.Name){let d=s===v6e.Num;return f?d?(0,j_._)`"[" + ${o} + "]"`:(0,j_._)`"['" + ${o} + "']"`:d?(0,j_._)`"/" + ${o}`:(0,j_._)`"/" + ${o}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return f?(0,j_.getProperty)(o).toString():"/"+b6e(o)}t(ltr,"getErrorPath");ql.getErrorPath=ltr;function oat(o,s,f=o.opts.strictSchema){if(f){if(s=`strict mode: ${s}`,f===!0)throw new Error(s);o.self.logger.warn(s)}}t(oat,"checkStrictMode");ql.checkStrictMode=oat});var _T=or(T6e=>{"use strict";Object.defineProperty(T6e,"__esModule",{value:!0});var ky=Cc(),utr={data:new ky.Name("data"),valCxt:new ky.Name("valCxt"),instancePath:new ky.Name("instancePath"),parentData:new ky.Name("parentData"),parentDataProperty:new ky.Name("parentDataProperty"),rootData:new ky.Name("rootData"),dynamicAnchors:new ky.Name("dynamicAnchors"),vErrors:new ky.Name("vErrors"),errors:new ky.Name("errors"),this:new ky.Name("this"),self:new ky.Name("self"),scope:new ky.Name("scope"),json:new ky.Name("json"),jsonPos:new ky.Name("jsonPos"),jsonLen:new ky.Name("jsonLen"),jsonPart:new ky.Name("jsonPart")};T6e.default=utr});var dH=or(wy=>{"use strict";Object.defineProperty(wy,"__esModule",{value:!0});wy.extendErrors=wy.resetErrorsCount=wy.reportExtraError=wy.reportError=wy.keyword$DataError=wy.keywordError=void 0;var Iu=Cc(),Fce=ru(),F1=_T();wy.keywordError={message:t(({keyword:o})=>(0,Iu.str)`must pass "${o}" keyword validation`,"message")};wy.keyword$DataError={message:t(({keyword:o,schemaType:s})=>s?(0,Iu.str)`"${o}" keyword must be ${s} ($data)`:(0,Iu.str)`"${o}" keyword is invalid ($data)`,"message")};function ftr(o,s=wy.keywordError,f,d){let{it:y}=o,{gen:x,compositeRule:P,allErrors:F}=y,J=uat(o,s,f);d??(P||F)?cat(x,J):lat(y,(0,Iu._)`[${J}]`)}t(ftr,"reportError");wy.reportError=ftr;function _tr(o,s=wy.keywordError,f){let{it:d}=o,{gen:y,compositeRule:x,allErrors:P}=d,F=uat(o,s,f);cat(y,F),x||P||lat(d,F1.default.vErrors)}t(_tr,"reportExtraError");wy.reportExtraError=_tr;function ptr(o,s){o.assign(F1.default.errors,s),o.if((0,Iu._)`${F1.default.vErrors} !== null`,()=>o.if(s,()=>o.assign((0,Iu._)`${F1.default.vErrors}.length`,s),()=>o.assign(F1.default.vErrors,null)))}t(ptr,"resetErrorsCount");wy.resetErrorsCount=ptr;function dtr({gen:o,keyword:s,schemaValue:f,data:d,errsCount:y,it:x}){if(y===void 0)throw new Error("ajv implementation error");let P=o.name("err");o.forRange("i",y,F1.default.errors,F=>{o.const(P,(0,Iu._)`${F1.default.vErrors}[${F}]`),o.if((0,Iu._)`${P}.instancePath === undefined`,()=>o.assign((0,Iu._)`${P}.instancePath`,(0,Iu.strConcat)(F1.default.instancePath,x.errorPath))),o.assign((0,Iu._)`${P}.schemaPath`,(0,Iu.str)`${x.errSchemaPath}/${s}`),x.opts.verbose&&(o.assign((0,Iu._)`${P}.schema`,f),o.assign((0,Iu._)`${P}.data`,d))})}t(dtr,"extendErrors");wy.extendErrors=dtr;function cat(o,s){let f=o.const("err",s);o.if((0,Iu._)`${F1.default.vErrors} === null`,()=>o.assign(F1.default.vErrors,(0,Iu._)`[${f}]`),(0,Iu._)`${F1.default.vErrors}.push(${f})`),o.code((0,Iu._)`${F1.default.errors}++`)}t(cat,"addError");function lat(o,s){let{gen:f,validateName:d,schemaEnv:y}=o;y.$async?f.throw((0,Iu._)`new ${o.ValidationError}(${s})`):(f.assign((0,Iu._)`${d}.errors`,s),f.return(!1))}t(lat,"returnErrors");var EO={keyword:new Iu.Name("keyword"),schemaPath:new Iu.Name("schemaPath"),params:new Iu.Name("params"),propertyName:new Iu.Name("propertyName"),message:new Iu.Name("message"),schema:new Iu.Name("schema"),parentSchema:new Iu.Name("parentSchema")};function uat(o,s,f){let{createErrors:d}=o.it;return d===!1?(0,Iu._)`{}`:mtr(o,s,f)}t(uat,"errorObjectCode");function mtr(o,s,f={}){let{gen:d,it:y}=o,x=[htr(y,f),gtr(o,f)];return ytr(o,s,x),d.object(...x)}t(mtr,"errorObject");function htr({errorPath:o},{instancePath:s}){let f=s?(0,Iu.str)`${o}${(0,Fce.getErrorPath)(s,Fce.Type.Str)}`:o;return[F1.default.instancePath,(0,Iu.strConcat)(F1.default.instancePath,f)]}t(htr,"errorInstancePath");function gtr({keyword:o,it:{errSchemaPath:s}},{schemaPath:f,parentSchema:d}){let y=d?s:(0,Iu.str)`${s}/${o}`;return f&&(y=(0,Iu.str)`${y}${(0,Fce.getErrorPath)(f,Fce.Type.Str)}`),[EO.schemaPath,y]}t(gtr,"errorSchemaPath");function ytr(o,{params:s,message:f},d){let{keyword:y,data:x,schemaValue:P,it:F}=o,{opts:J,propertyName:G,topSchemaRef:Se,schemaPath:de}=F;d.push([EO.keyword,y],[EO.params,typeof s=="function"?s(o):s||(0,Iu._)`{}`]),J.messages&&d.push([EO.message,typeof f=="function"?f(o):f]),J.verbose&&d.push([EO.schema,P],[EO.parentSchema,(0,Iu._)`${Se}${de}`],[F1.default.data,x]),G&&d.push([EO.propertyName,G])}t(ytr,"extraErrorProps")});var _at=or(uM=>{"use strict";Object.defineProperty(uM,"__esModule",{value:!0});uM.boolOrEmptySchema=uM.topBoolOrEmptySchema=void 0;var vtr=dH(),btr=Cc(),Str=_T(),Ttr={message:"boolean schema is false"};function xtr(o){let{gen:s,schema:f,validateName:d}=o;f===!1?fat(o,!1):typeof f=="object"&&f.$async===!0?s.return(Str.default.data):(s.assign((0,btr._)`${d}.errors`,null),s.return(!0))}t(xtr,"topBoolOrEmptySchema");uM.topBoolOrEmptySchema=xtr;function Etr(o,s){let{gen:f,schema:d}=o;d===!1?(f.var(s,!1),fat(o)):f.var(s,!0)}t(Etr,"boolOrEmptySchema");uM.boolOrEmptySchema=Etr;function fat(o,s){let{gen:f,data:d}=o,y={gen:f,keyword:"false schema",data:d,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:o};(0,vtr.reportError)(y,Ttr,void 0,s)}t(fat,"falseSchemaError")});var x6e=or(fM=>{"use strict";Object.defineProperty(fM,"__esModule",{value:!0});fM.getRules=fM.isJSONType=void 0;var Ctr=["string","number","integer","boolean","null","object","array"],ktr=new Set(Ctr);function wtr(o){return typeof o=="string"&&ktr.has(o)}t(wtr,"isJSONType");fM.isJSONType=wtr;function Dtr(){let o={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...o,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},o.number,o.string,o.array,o.object],post:{rules:[]},all:{},keywords:{}}}t(Dtr,"getRules");fM.getRules=Dtr});var E6e=or(nI=>{"use strict";Object.defineProperty(nI,"__esModule",{value:!0});nI.shouldUseRule=nI.shouldUseGroup=nI.schemaHasRulesForType=void 0;function Ptr({schema:o,self:s},f){let d=s.RULES.types[f];return d&&d!==!0&&pat(o,d)}t(Ptr,"schemaHasRulesForType");nI.schemaHasRulesForType=Ptr;function pat(o,s){return s.rules.some(f=>dat(o,f))}t(pat,"shouldUseGroup");nI.shouldUseGroup=pat;function dat(o,s){var f;return o[s.keyword]!==void 0||((f=s.definition.implements)===null||f===void 0?void 0:f.some(d=>o[d]!==void 0))}t(dat,"shouldUseRule");nI.shouldUseRule=dat});var mH=or(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0});Dy.reportTypeError=Dy.checkDataTypes=Dy.checkDataType=Dy.coerceAndCheckDataType=Dy.getJSONTypes=Dy.getSchemaTypes=Dy.DataType=void 0;var Atr=x6e(),Ntr=E6e(),Itr=dH(),hl=Cc(),mat=ru(),_M;(function(o){o[o.Correct=0]="Correct",o[o.Wrong=1]="Wrong"})(_M||(Dy.DataType=_M={}));function Otr(o){let s=hat(o.type);if(s.includes("null")){if(o.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!s.length&&o.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');o.nullable===!0&&s.push("null")}return s}t(Otr,"getSchemaTypes");Dy.getSchemaTypes=Otr;function hat(o){let s=Array.isArray(o)?o:o?[o]:[];if(s.every(Atr.isJSONType))return s;throw new Error("type must be JSONType or JSONType[]: "+s.join(","))}t(hat,"getJSONTypes");Dy.getJSONTypes=hat;function Ftr(o,s){let{gen:f,data:d,opts:y}=o,x=Ltr(s,y.coerceTypes),P=s.length>0&&!(x.length===0&&s.length===1&&(0,Ntr.schemaHasRulesForType)(o,s[0]));if(P){let F=k6e(s,d,y.strictNumbers,_M.Wrong);f.if(F,()=>{x.length?Rtr(o,s,x):w6e(o)})}return P}t(Ftr,"coerceAndCheckDataType");Dy.coerceAndCheckDataType=Ftr;var gat=new Set(["string","number","integer","boolean","null"]);function Ltr(o,s){return s?o.filter(f=>gat.has(f)||s==="array"&&f==="array"):[]}t(Ltr,"coerceToTypes");function Rtr(o,s,f){let{gen:d,data:y,opts:x}=o,P=d.let("dataType",(0,hl._)`typeof ${y}`),F=d.let("coerced",(0,hl._)`undefined`);x.coerceTypes==="array"&&d.if((0,hl._)`${P} == 'object' && Array.isArray(${y}) && ${y}.length == 1`,()=>d.assign(y,(0,hl._)`${y}[0]`).assign(P,(0,hl._)`typeof ${y}`).if(k6e(s,y,x.strictNumbers),()=>d.assign(F,y))),d.if((0,hl._)`${F} !== undefined`);for(let G of f)(gat.has(G)||G==="array"&&x.coerceTypes==="array")&&J(G);d.else(),w6e(o),d.endIf(),d.if((0,hl._)`${F} !== undefined`,()=>{d.assign(y,F),Mtr(o,F)});function J(G){switch(G){case"string":d.elseIf((0,hl._)`${P} == "number" || ${P} == "boolean"`).assign(F,(0,hl._)`"" + ${y}`).elseIf((0,hl._)`${y} === null`).assign(F,(0,hl._)`""`);return;case"number":d.elseIf((0,hl._)`${P} == "boolean" || ${y} === null
|
|
103
61
|
|| (${P} == "string" && ${y} && ${y} == +${y})`).assign(F,(0,hl._)`+${y}`);return;case"integer":d.elseIf((0,hl._)`${P} === "boolean" || ${y} === null
|
|
104
62
|
|| (${P} === "string" && ${y} && ${y} == +${y} && !(${y} % 1))`).assign(F,(0,hl._)`+${y}`);return;case"boolean":d.elseIf((0,hl._)`${y} === "false" || ${y} === 0 || ${y} === null`).assign(F,!1).elseIf((0,hl._)`${y} === "true" || ${y} === 1`).assign(F,!0);return;case"null":d.elseIf((0,hl._)`${y} === "" || ${y} === 0 || ${y} === false`),d.assign(F,null);return;case"array":d.elseIf((0,hl._)`${P} === "string" || ${P} === "number"
|
|
105
|
-
|| ${P} === "boolean" || ${y} === null`).assign(F,(0,hl._)`[${y}]`)}}t(J,"coerceSpecificType")}t($ar,"coerceData");function Jar({gen:o,parentData:s,parentDataProperty:f},d){o.if((0,hl._)`${s} !== undefined`,()=>o.assign((0,hl._)`${s}[${f}]`,d))}t(Jar,"assignParentData");function VNe(o,s,f,d=wM.Correct){let y=d===wM.Correct?hl.operators.EQ:hl.operators.NEQ,x;switch(o){case"null":return(0,hl._)`${s} ${y} null`;case"array":x=(0,hl._)`Array.isArray(${s})`;break;case"object":x=(0,hl._)`${s} && typeof ${s} == "object" && !Array.isArray(${s})`;break;case"integer":x=P((0,hl._)`!(${s} % 1) && !isNaN(${s})`);break;case"number":x=P();break;default:return(0,hl._)`typeof ${s} ${y} ${o}`}return d===wM.Correct?x:(0,hl.not)(x);function P(F=hl.nil){return(0,hl.and)((0,hl._)`typeof ${s} == "number"`,F,f?(0,hl._)`isFinite(${s})`:hl.nil)}}t(VNe,"checkDataType");Ay.checkDataType=VNe;function HNe(o,s,f,d){if(o.length===1)return VNe(o[0],s,f,d);let y,x=(0,Zct.toHash)(o);if(x.array&&x.object){let P=(0,hl._)`typeof ${s} != "object"`;y=x.null?P:(0,hl._)`!${s} || ${P}`,delete x.null,delete x.array,delete x.object}else y=hl.nil;x.number&&delete x.integer;for(let P in x)y=(0,hl.and)(y,VNe(P,s,f,d));return y}t(HNe,"checkDataTypes");Ay.checkDataTypes=HNe;var War={message:t(({schema:o})=>`must be ${o}`,"message"),params:t(({schema:o,schemaValue:s})=>typeof o=="string"?(0,hl._)`{type: ${o}}`:(0,hl._)`{type: ${s}}`,"params")};function GNe(o){let s=qar(o);(0,jar.reportError)(s,War)}t(GNe,"reportTypeError");Ay.reportTypeError=GNe;function qar(o){let{gen:s,data:f,schema:d}=o,y=(0,Zct.schemaRefOrVal)(o,d,"type");return{gen:s,keyword:"type",data:f,schema:d.type,schemaCode:y,schemaValue:y,parentSchema:d,params:{},it:o}}t(qar,"getTypeErrorContext")});var rlt=or(cle=>{"use strict";Object.defineProperty(cle,"__esModule",{value:!0});cle.assignDefaults=void 0;var DM=Cc(),Var=ru();function Har(o,s){let{properties:f,items:d}=o.schema;if(s==="object"&&f)for(let y in f)tlt(o,y,f[y].default);else s==="array"&&Array.isArray(d)&&d.forEach((y,x)=>tlt(o,x,y.default))}t(Har,"assignDefaults");cle.assignDefaults=Har;function tlt(o,s,f){let{gen:d,compositeRule:y,data:x,opts:P}=o;if(f===void 0)return;let F=(0,DM._)`${x}${(0,DM.getProperty)(s)}`;if(y){(0,Var.checkStrictMode)(o,`default is ignored for: ${F}`);return}let J=(0,DM._)`${F} === undefined`;P.useDefaults==="empty"&&(J=(0,DM._)`${J} || ${F} === null || ${F} === ""`),d.if(J,(0,DM._)`${F} = ${(0,DM.stringify)(f)}`)}t(tlt,"assignDefault")});var gT=or(v_=>{"use strict";Object.defineProperty(v_,"__esModule",{value:!0});v_.validateUnion=v_.validateArray=v_.usePattern=v_.callValidateCode=v_.schemaProperties=v_.allSchemaProperties=v_.noPropertyInData=v_.propertyInData=v_.isOwnProperty=v_.hasPropFunc=v_.reportMissingProp=v_.checkMissingProp=v_.checkReportMissingProp=void 0;var Pp=Cc(),YNe=ru(),fI=hT(),Gar=ru();function Yar(o,s){let{gen:f,data:d,it:y}=o;f.if(XNe(f,d,s,y.opts.ownProperties),()=>{o.setParams({missingProperty:(0,Pp._)`${s}`},!0),o.error()})}t(Yar,"checkReportMissingProp");v_.checkReportMissingProp=Yar;function Kar({gen:o,data:s,it:{opts:f}},d,y){return(0,Pp.or)(...d.map(x=>(0,Pp.and)(XNe(o,s,x,f.ownProperties),(0,Pp._)`${y} = ${x}`)))}t(Kar,"checkMissingProp");v_.checkMissingProp=Kar;function Xar(o,s){o.setParams({missingProperty:s},!0),o.error()}t(Xar,"reportMissingProp");v_.reportMissingProp=Xar;function nlt(o){return o.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Pp._)`Object.prototype.hasOwnProperty`})}t(nlt,"hasPropFunc");v_.hasPropFunc=nlt;function KNe(o,s,f){return(0,Pp._)`${nlt(o)}.call(${s}, ${f})`}t(KNe,"isOwnProperty");v_.isOwnProperty=KNe;function Zar(o,s,f,d){let y=(0,Pp._)`${s}${(0,Pp.getProperty)(f)} !== undefined`;return d?(0,Pp._)`${y} && ${KNe(o,s,f)}`:y}t(Zar,"propertyInData");v_.propertyInData=Zar;function XNe(o,s,f,d){let y=(0,Pp._)`${s}${(0,Pp.getProperty)(f)} === undefined`;return d?(0,Pp.or)(y,(0,Pp.not)(KNe(o,s,f))):y}t(XNe,"noPropertyInData");v_.noPropertyInData=XNe;function ilt(o){return o?Object.keys(o).filter(s=>s!=="__proto__"):[]}t(ilt,"allSchemaProperties");v_.allSchemaProperties=ilt;function Qar(o,s){return ilt(s).filter(f=>!(0,YNe.alwaysValidSchema)(o,s[f]))}t(Qar,"schemaProperties");v_.schemaProperties=Qar;function eor({schemaCode:o,data:s,it:{gen:f,topSchemaRef:d,schemaPath:y,errorPath:x},it:P},F,J,G){let Se=G?(0,Pp._)`${o}, ${s}, ${d}${y}`:s,de=[[fI.default.instancePath,(0,Pp.strConcat)(fI.default.instancePath,x)],[fI.default.parentData,P.parentData],[fI.default.parentDataProperty,P.parentDataProperty],[fI.default.rootData,fI.default.rootData]];P.opts.dynamicRef&&de.push([fI.default.dynamicAnchors,fI.default.dynamicAnchors]);let ae=(0,Pp._)`${Se}, ${f.object(...de)}`;return J!==Pp.nil?(0,Pp._)`${F}.call(${J}, ${ae})`:(0,Pp._)`${F}(${ae})`}t(eor,"callValidateCode");v_.callValidateCode=eor;var tor=(0,Pp._)`new RegExp`;function ror({gen:o,it:{opts:s}},f){let d=s.unicodeRegExp?"u":"",{regExp:y}=s.code,x=y(f,d);return o.scopeValue("pattern",{key:x.toString(),ref:x,code:(0,Pp._)`${y.code==="new RegExp"?tor:(0,Gar.useFunc)(o,y)}(${f}, ${d})`})}t(ror,"usePattern");v_.usePattern=ror;function nor(o){let{gen:s,data:f,keyword:d,it:y}=o,x=s.name("valid");if(y.allErrors){let F=s.let("valid",!0);return P(()=>s.assign(F,!1)),F}return s.var(x,!0),P(()=>s.break()),x;function P(F){let J=s.const("len",(0,Pp._)`${f}.length`);s.forRange("i",0,J,G=>{o.subschema({keyword:d,dataProp:G,dataPropType:YNe.Type.Num},x),s.if((0,Pp.not)(x),F)})}t(P,"validateItems")}t(nor,"validateArray");v_.validateArray=nor;function ior(o){let{gen:s,schema:f,keyword:d,it:y}=o;if(!Array.isArray(f))throw new Error("ajv implementation error");if(f.some(J=>(0,YNe.alwaysValidSchema)(y,J))&&!y.opts.unevaluated)return;let P=s.let("valid",!1),F=s.name("_valid");s.block(()=>f.forEach((J,G)=>{let Se=o.subschema({keyword:d,schemaProp:G,compositeRule:!0},F);s.assign(P,(0,Pp._)`${P} || ${F}`),o.mergeValidEvaluated(Se,F)||s.if((0,Pp.not)(P))})),o.result(P,()=>o.reset(),()=>o.error(!0))}t(ior,"validateUnion");v_.validateUnion=ior});var olt=or(Bk=>{"use strict";Object.defineProperty(Bk,"__esModule",{value:!0});Bk.validateKeywordUsage=Bk.validSchemaType=Bk.funcKeywordCode=Bk.macroKeywordCode=void 0;var R1=Cc(),FO=hT(),sor=gT(),aor=NH();function oor(o,s){let{gen:f,keyword:d,schema:y,parentSchema:x,it:P}=o,F=s.macro.call(P.self,y,x,P),J=alt(f,d,F);P.opts.validateSchema!==!1&&P.self.validateSchema(F,!0);let G=f.name("valid");o.subschema({schema:F,schemaPath:R1.nil,errSchemaPath:`${P.errSchemaPath}/${d}`,topSchemaRef:J,compositeRule:!0},G),o.pass(G,()=>o.error(!0))}t(oor,"macroKeywordCode");Bk.macroKeywordCode=oor;function cor(o,s){var f;let{gen:d,keyword:y,schema:x,parentSchema:P,$data:F,it:J}=o;uor(J,s);let G=!F&&s.compile?s.compile.call(J.self,x,P,J):s.validate,Se=alt(d,y,G),de=d.let("valid");o.block$data(de,ae),o.ok((f=s.valid)!==null&&f!==void 0?f:de);function ae(){if(s.errors===!1)Fe(),s.modifying&&slt(o),Gt(()=>o.error());else{let jt=s.async?Ke():$e();s.modifying&&slt(o),Gt(()=>lor(o,jt))}}t(ae,"validateKeyword");function Ke(){let jt=d.let("ruleErrs",null);return d.try(()=>Fe((0,R1._)`await `),Pr=>d.assign(de,!1).if((0,R1._)`${Pr} instanceof ${J.ValidationError}`,()=>d.assign(jt,(0,R1._)`${Pr}.errors`),()=>d.throw(Pr))),jt}t(Ke,"validateAsync");function $e(){let jt=(0,R1._)`${Se}.errors`;return d.assign(jt,null),Fe(R1.nil),jt}t($e,"validateSync");function Fe(jt=s.async?(0,R1._)`await `:R1.nil){let Pr=J.opts.passContext?FO.default.this:FO.default.self,Fn=!("compile"in s&&!F||s.schema===!1);d.assign(de,(0,R1._)`${jt}${(0,sor.callValidateCode)(o,Se,Pr,Fn)}`,s.modifying)}t(Fe,"assignValid");function Gt(jt){var Pr;d.if((0,R1.not)((Pr=s.valid)!==null&&Pr!==void 0?Pr:de),jt)}t(Gt,"reportErrs")}t(cor,"funcKeywordCode");Bk.funcKeywordCode=cor;function slt(o){let{gen:s,data:f,it:d}=o;s.if(d.parentData,()=>s.assign(f,(0,R1._)`${d.parentData}[${d.parentDataProperty}]`))}t(slt,"modifyData");function lor(o,s){let{gen:f}=o;f.if((0,R1._)`Array.isArray(${s})`,()=>{f.assign(FO.default.vErrors,(0,R1._)`${FO.default.vErrors} === null ? ${s} : ${FO.default.vErrors}.concat(${s})`).assign(FO.default.errors,(0,R1._)`${FO.default.vErrors}.length`),(0,aor.extendErrors)(o)},()=>o.error())}t(lor,"addErrs");function uor({schemaEnv:o},s){if(s.async&&!o.$async)throw new Error("async keyword in sync schema")}t(uor,"checkAsyncKeyword");function alt(o,s,f){if(f===void 0)throw new Error(`keyword "${s}" failed to compile`);return o.scopeValue("keyword",typeof f=="function"?{ref:f}:{ref:f,code:(0,R1.stringify)(f)})}t(alt,"useKeyword");function _or(o,s,f=!1){return!s.length||s.some(d=>d==="array"?Array.isArray(o):d==="object"?o&&typeof o=="object"&&!Array.isArray(o):typeof o==d||f&&typeof o>"u")}t(_or,"validSchemaType");Bk.validSchemaType=_or;function por({schema:o,opts:s,self:f,errSchemaPath:d},y,x){if(Array.isArray(y.keyword)?!y.keyword.includes(x):y.keyword!==x)throw new Error("ajv implementation error");let P=y.dependencies;if(P?.some(F=>!Object.prototype.hasOwnProperty.call(o,F)))throw new Error(`parent schema must have dependencies of ${x}: ${P.join(",")}`);if(y.validateSchema&&!y.validateSchema(o[x])){let J=`keyword "${x}" value is invalid at path "${d}": `+f.errorsText(y.validateSchema.errors);if(s.validateSchema==="log")f.logger.error(J);else throw new Error(J)}}t(por,"validateKeywordUsage");Bk.validateKeywordUsage=por});var llt=or(_I=>{"use strict";Object.defineProperty(_I,"__esModule",{value:!0});_I.extendSubschemaMode=_I.extendSubschemaData=_I.getSubschema=void 0;var Uk=Cc(),clt=ru();function dor(o,{keyword:s,schemaProp:f,schema:d,schemaPath:y,errSchemaPath:x,topSchemaRef:P}){if(s!==void 0&&d!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(s!==void 0){let F=o.schema[s];return f===void 0?{schema:F,schemaPath:(0,Uk._)`${o.schemaPath}${(0,Uk.getProperty)(s)}`,errSchemaPath:`${o.errSchemaPath}/${s}`}:{schema:F[f],schemaPath:(0,Uk._)`${o.schemaPath}${(0,Uk.getProperty)(s)}${(0,Uk.getProperty)(f)}`,errSchemaPath:`${o.errSchemaPath}/${s}/${(0,clt.escapeFragment)(f)}`}}if(d!==void 0){if(y===void 0||x===void 0||P===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:d,schemaPath:y,topSchemaRef:P,errSchemaPath:x}}throw new Error('either "keyword" or "schema" must be passed')}t(dor,"getSubschema");_I.getSubschema=dor;function mor(o,s,{dataProp:f,dataPropType:d,data:y,dataTypes:x,propertyName:P}){if(y!==void 0&&f!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:F}=s;if(f!==void 0){let{errorPath:G,dataPathArr:Se,opts:de}=s,ae=F.let("data",(0,Uk._)`${s.data}${(0,Uk.getProperty)(f)}`,!0);J(ae),o.errorPath=(0,Uk.str)`${G}${(0,clt.getErrorPath)(f,d,de.jsPropertySyntax)}`,o.parentDataProperty=(0,Uk._)`${f}`,o.dataPathArr=[...Se,o.parentDataProperty]}if(y!==void 0){let G=y instanceof Uk.Name?y:F.let("data",y,!0);J(G),P!==void 0&&(o.propertyName=P)}x&&(o.dataTypes=x);function J(G){o.data=G,o.dataLevel=s.dataLevel+1,o.dataTypes=[],s.definedProperties=new Set,o.parentData=s.data,o.dataNames=[...s.dataNames,G]}t(J,"dataContextProps")}t(mor,"extendSubschemaData");_I.extendSubschemaData=mor;function hor(o,{jtdDiscriminator:s,jtdMetadata:f,compositeRule:d,createErrors:y,allErrors:x}){d!==void 0&&(o.compositeRule=d),y!==void 0&&(o.createErrors=y),x!==void 0&&(o.allErrors=x),o.jtdDiscriminator=s,o.jtdMetadata=f}t(hor,"extendSubschemaMode");_I.extendSubschemaMode=hor});var ZNe=or((YAr,ult)=>{"use strict";ult.exports=t(function o(s,f){if(s===f)return!0;if(s&&f&&typeof s=="object"&&typeof f=="object"){if(s.constructor!==f.constructor)return!1;var d,y,x;if(Array.isArray(s)){if(d=s.length,d!=f.length)return!1;for(y=d;y--!==0;)if(!o(s[y],f[y]))return!1;return!0}if(s.constructor===RegExp)return s.source===f.source&&s.flags===f.flags;if(s.valueOf!==Object.prototype.valueOf)return s.valueOf()===f.valueOf();if(s.toString!==Object.prototype.toString)return s.toString()===f.toString();if(x=Object.keys(s),d=x.length,d!==Object.keys(f).length)return!1;for(y=d;y--!==0;)if(!Object.prototype.hasOwnProperty.call(f,x[y]))return!1;for(y=d;y--!==0;){var P=x[y];if(!o(s[P],f[P]))return!1}return!0}return s!==s&&f!==f},"equal")});var _lt=or((XAr,flt)=>{"use strict";var pI=flt.exports=function(o,s,f){typeof s=="function"&&(f=s,s={}),f=s.cb||f;var d=typeof f=="function"?f:f.pre||function(){},y=f.post||function(){};lle(s,d,y,o,"",o)};pI.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};pI.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};pI.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};pI.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 lle(o,s,f,d,y,x,P,F,J,G){if(d&&typeof d=="object"&&!Array.isArray(d)){s(d,y,x,P,F,J,G);for(var Se in d){var de=d[Se];if(Array.isArray(de)){if(Se in pI.arrayKeywords)for(var ae=0;ae<de.length;ae++)lle(o,s,f,de[ae],y+"/"+Se+"/"+ae,x,y,Se,d,ae)}else if(Se in pI.propsKeywords){if(de&&typeof de=="object")for(var Ke in de)lle(o,s,f,de[Ke],y+"/"+Se+"/"+gor(Ke),x,y,Se,d,Ke)}else(Se in pI.keywords||o.allKeys&&!(Se in pI.skipKeywords))&&lle(o,s,f,de,y+"/"+Se,x,y,Se,d)}f(d,y,x,P,F,J,G)}}t(lle,"_traverse");function gor(o){return o.replace(/~/g,"~0").replace(/\//g,"~1")}t(gor,"escapeJsonPtr")});var OH=or(Xv=>{"use strict";Object.defineProperty(Xv,"__esModule",{value:!0});Xv.getSchemaRefs=Xv.resolveUrl=Xv.normalizeId=Xv._getFullPath=Xv.getFullPath=Xv.inlineRef=void 0;var yor=ru(),vor=ZNe(),bor=_lt(),Sor=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Tor(o,s=!0){return typeof o=="boolean"?!0:s===!0?!QNe(o):s?plt(o)<=s:!1}t(Tor,"inlineRef");Xv.inlineRef=Tor;var xor=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function QNe(o){for(let s in o){if(xor.has(s))return!0;let f=o[s];if(Array.isArray(f)&&f.some(QNe)||typeof f=="object"&&QNe(f))return!0}return!1}t(QNe,"hasRef");function plt(o){let s=0;for(let f in o){if(f==="$ref")return 1/0;if(s++,!Sor.has(f)&&(typeof o[f]=="object"&&(0,yor.eachItem)(o[f],d=>s+=plt(d)),s===1/0))return 1/0}return s}t(plt,"countKeys");function dlt(o,s="",f){f!==!1&&(s=PM(s));let d=o.parse(s);return mlt(o,d)}t(dlt,"getFullPath");Xv.getFullPath=dlt;function mlt(o,s){return o.serialize(s).split("#")[0]+"#"}t(mlt,"_getFullPath");Xv._getFullPath=mlt;var Eor=/#\/?$/;function PM(o){return o?o.replace(Eor,""):""}t(PM,"normalizeId");Xv.normalizeId=PM;function Cor(o,s,f){return f=PM(f),o.resolve(s,f)}t(Cor,"resolveUrl");Xv.resolveUrl=Cor;var kor=/^[a-z_][-a-z0-9._]*$/i;function wor(o,s){if(typeof o=="boolean")return{};let{schemaId:f,uriResolver:d}=this.opts,y=PM(o[f]||s),x={"":y},P=dlt(d,y,!1),F={},J=new Set;return bor(o,{allKeys:!0},(de,ae,Ke,$e)=>{if($e===void 0)return;let Fe=P+ae,Gt=x[$e];typeof de[f]=="string"&&(Gt=jt.call(this,de[f])),Pr.call(this,de.$anchor),Pr.call(this,de.$dynamicAnchor),x[ae]=Gt;function jt(Fn){let sn=this.opts.uriResolver.resolve;if(Fn=PM(Gt?sn(Gt,Fn):Fn),J.has(Fn))throw Se(Fn);J.add(Fn);let Un=this.refs[Fn];return typeof Un=="string"&&(Un=this.refs[Un]),typeof Un=="object"?G(de,Un.schema,Fn):Fn!==PM(Fe)&&(Fn[0]==="#"?(G(de,F[Fn],Fn),F[Fn]=de):this.refs[Fn]=Fe),Fn}t(jt,"addRef");function Pr(Fn){if(typeof Fn=="string"){if(!kor.test(Fn))throw new Error(`invalid anchor "${Fn}"`);jt.call(this,`#${Fn}`)}}t(Pr,"addAnchor")}),F;function G(de,ae,Ke){if(ae!==void 0&&!vor(de,ae))throw Se(Ke)}t(G,"checkAmbiguosRef");function Se(de){return new Error(`reference "${de}" resolves to more than one schema`)}t(Se,"ambiguos")}t(wor,"getSchemaRefs");Xv.getSchemaRefs=wor});var AM=or(dI=>{"use strict";Object.defineProperty(dI,"__esModule",{value:!0});dI.getData=dI.KeywordCxt=dI.validateFunctionCode=void 0;var blt=Yct(),hlt=IH(),tIe=qNe(),ule=IH(),Dor=rlt(),LH=olt(),eIe=llt(),xo=Cc(),Ic=hT(),Por=OH(),eA=ru(),FH=NH();function Aor(o){if(xlt(o)&&(Elt(o),Tlt(o))){Oor(o);return}Slt(o,()=>(0,blt.topBoolOrEmptySchema)(o))}t(Aor,"validateFunctionCode");dI.validateFunctionCode=Aor;function Slt({gen:o,validateName:s,schema:f,schemaEnv:d,opts:y},x){y.code.es5?o.func(s,(0,xo._)`${Ic.default.data}, ${Ic.default.valCxt}`,d.$async,()=>{o.code((0,xo._)`"use strict"; ${glt(f,y)}`),Ior(o,y),o.code(x)}):o.func(s,(0,xo._)`${Ic.default.data}, ${Nor(y)}`,d.$async,()=>o.code(glt(f,y)).code(x))}t(Slt,"validateFunction");function Nor(o){return(0,xo._)`{${Ic.default.instancePath}="", ${Ic.default.parentData}, ${Ic.default.parentDataProperty}, ${Ic.default.rootData}=${Ic.default.data}${o.dynamicRef?(0,xo._)`, ${Ic.default.dynamicAnchors}={}`:xo.nil}}={}`}t(Nor,"destructureValCxt");function Ior(o,s){o.if(Ic.default.valCxt,()=>{o.var(Ic.default.instancePath,(0,xo._)`${Ic.default.valCxt}.${Ic.default.instancePath}`),o.var(Ic.default.parentData,(0,xo._)`${Ic.default.valCxt}.${Ic.default.parentData}`),o.var(Ic.default.parentDataProperty,(0,xo._)`${Ic.default.valCxt}.${Ic.default.parentDataProperty}`),o.var(Ic.default.rootData,(0,xo._)`${Ic.default.valCxt}.${Ic.default.rootData}`),s.dynamicRef&&o.var(Ic.default.dynamicAnchors,(0,xo._)`${Ic.default.valCxt}.${Ic.default.dynamicAnchors}`)},()=>{o.var(Ic.default.instancePath,(0,xo._)`""`),o.var(Ic.default.parentData,(0,xo._)`undefined`),o.var(Ic.default.parentDataProperty,(0,xo._)`undefined`),o.var(Ic.default.rootData,Ic.default.data),s.dynamicRef&&o.var(Ic.default.dynamicAnchors,(0,xo._)`{}`)})}t(Ior,"destructureValCxtES5");function Oor(o){let{schema:s,opts:f,gen:d}=o;Slt(o,()=>{f.$comment&&s.$comment&&klt(o),jor(o),d.let(Ic.default.vErrors,null),d.let(Ic.default.errors,0),f.unevaluated&&For(o),Clt(o),zor(o)})}t(Oor,"topSchemaObjCode");function For(o){let{gen:s,validateName:f}=o;o.evaluated=s.const("evaluated",(0,xo._)`${f}.evaluated`),s.if((0,xo._)`${o.evaluated}.dynamicProps`,()=>s.assign((0,xo._)`${o.evaluated}.props`,(0,xo._)`undefined`)),s.if((0,xo._)`${o.evaluated}.dynamicItems`,()=>s.assign((0,xo._)`${o.evaluated}.items`,(0,xo._)`undefined`))}t(For,"resetEvaluated");function glt(o,s){let f=typeof o=="object"&&o[s.schemaId];return f&&(s.code.source||s.code.process)?(0,xo._)`/*# sourceURL=${f} */`:xo.nil}t(glt,"funcSourceUrl");function Lor(o,s){if(xlt(o)&&(Elt(o),Tlt(o))){Ror(o,s);return}(0,blt.boolOrEmptySchema)(o,s)}t(Lor,"subschemaCode");function Tlt({schema:o,self:s}){if(typeof o=="boolean")return!o;for(let f in o)if(s.RULES.all[f])return!0;return!1}t(Tlt,"schemaCxtHasRules");function xlt(o){return typeof o.schema!="boolean"}t(xlt,"isSchemaObj");function Ror(o,s){let{schema:f,gen:d,opts:y}=o;y.$comment&&f.$comment&&klt(o),Bor(o),Uor(o);let x=d.const("_errs",Ic.default.errors);Clt(o,x),d.var(s,(0,xo._)`${x} === ${Ic.default.errors}`)}t(Ror,"subSchemaObjCode");function Elt(o){(0,eA.checkUnknownRules)(o),Mor(o)}t(Elt,"checkKeywords");function Clt(o,s){if(o.opts.jtd)return ylt(o,[],!1,s);let f=(0,hlt.getSchemaTypes)(o.schema),d=(0,hlt.coerceAndCheckDataType)(o,f);ylt(o,f,!d,s)}t(Clt,"typeAndKeywords");function Mor(o){let{schema:s,errSchemaPath:f,opts:d,self:y}=o;s.$ref&&d.ignoreKeywordsWithRef&&(0,eA.schemaHasRulesButRef)(s,y.RULES)&&y.logger.warn(`$ref: keywords ignored in schema at path "${f}"`)}t(Mor,"checkRefsAndKeywords");function jor(o){let{schema:s,opts:f}=o;s.default!==void 0&&f.useDefaults&&f.strictSchema&&(0,eA.checkStrictMode)(o,"default is ignored in the schema root")}t(jor,"checkNoDefault");function Bor(o){let s=o.schema[o.opts.schemaId];s&&(o.baseId=(0,Por.resolveUrl)(o.opts.uriResolver,o.baseId,s))}t(Bor,"updateContext");function Uor(o){if(o.schema.$async&&!o.schemaEnv.$async)throw new Error("async schema in sync schema")}t(Uor,"checkAsyncSchema");function klt({gen:o,schemaEnv:s,schema:f,errSchemaPath:d,opts:y}){let x=f.$comment;if(y.$comment===!0)o.code((0,xo._)`${Ic.default.self}.logger.log(${x})`);else if(typeof y.$comment=="function"){let P=(0,xo.str)`${d}/$comment`,F=o.scopeValue("root",{ref:s.root});o.code((0,xo._)`${Ic.default.self}.opts.$comment(${x}, ${P}, ${F}.schema)`)}}t(klt,"commentKeyword");function zor(o){let{gen:s,schemaEnv:f,validateName:d,ValidationError:y,opts:x}=o;f.$async?s.if((0,xo._)`${Ic.default.errors} === 0`,()=>s.return(Ic.default.data),()=>s.throw((0,xo._)`new ${y}(${Ic.default.vErrors})`)):(s.assign((0,xo._)`${d}.errors`,Ic.default.vErrors),x.unevaluated&&$or(o),s.return((0,xo._)`${Ic.default.errors} === 0`))}t(zor,"returnResults");function $or({gen:o,evaluated:s,props:f,items:d}){f instanceof xo.Name&&o.assign((0,xo._)`${s}.props`,f),d instanceof xo.Name&&o.assign((0,xo._)`${s}.items`,d)}t($or,"assignEvaluated");function ylt(o,s,f,d){let{gen:y,schema:x,data:P,allErrors:F,opts:J,self:G}=o,{RULES:Se}=G;if(x.$ref&&(J.ignoreKeywordsWithRef||!(0,eA.schemaHasRulesButRef)(x,Se))){y.block(()=>Dlt(o,"$ref",Se.all.$ref.definition));return}J.jtd||Jor(o,s),y.block(()=>{for(let ae of Se.rules)de(ae);de(Se.post)});function de(ae){(0,tIe.shouldUseGroup)(x,ae)&&(ae.type?(y.if((0,ule.checkDataType)(ae.type,P,J.strictNumbers)),vlt(o,ae),s.length===1&&s[0]===ae.type&&f&&(y.else(),(0,ule.reportTypeError)(o)),y.endIf()):vlt(o,ae),F||y.if((0,xo._)`${Ic.default.errors} === ${d||0}`))}t(de,"groupKeywords")}t(ylt,"schemaKeywords");function vlt(o,s){let{gen:f,schema:d,opts:{useDefaults:y}}=o;y&&(0,Dor.assignDefaults)(o,s.type),f.block(()=>{for(let x of s.rules)(0,tIe.shouldUseRule)(d,x)&&Dlt(o,x.keyword,x.definition,s.type)})}t(vlt,"iterateKeywords");function Jor(o,s){o.schemaEnv.meta||!o.opts.strictTypes||(Wor(o,s),o.opts.allowUnionTypes||qor(o,s),Vor(o,o.dataTypes))}t(Jor,"checkStrictTypes");function Wor(o,s){if(s.length){if(!o.dataTypes.length){o.dataTypes=s;return}s.forEach(f=>{wlt(o.dataTypes,f)||rIe(o,`type "${f}" not allowed by context "${o.dataTypes.join(",")}"`)}),Gor(o,s)}}t(Wor,"checkContextTypes");function qor(o,s){s.length>1&&!(s.length===2&&s.includes("null"))&&rIe(o,"use allowUnionTypes to allow union type keyword")}t(qor,"checkMultipleTypes");function Vor(o,s){let f=o.self.RULES.all;for(let d in f){let y=f[d];if(typeof y=="object"&&(0,tIe.shouldUseRule)(o.schema,y)){let{type:x}=y.definition;x.length&&!x.some(P=>Hor(s,P))&&rIe(o,`missing type "${x.join(",")}" for keyword "${d}"`)}}}t(Vor,"checkKeywordTypes");function Hor(o,s){return o.includes(s)||s==="number"&&o.includes("integer")}t(Hor,"hasApplicableType");function wlt(o,s){return o.includes(s)||s==="integer"&&o.includes("number")}t(wlt,"includesType");function Gor(o,s){let f=[];for(let d of o.dataTypes)wlt(s,d)?f.push(d):s.includes("integer")&&d==="number"&&f.push("integer");o.dataTypes=f}t(Gor,"narrowSchemaTypes");function rIe(o,s){let f=o.schemaEnv.baseId+o.errSchemaPath;s+=` at "${f}" (strictTypes)`,(0,eA.checkStrictMode)(o,s,o.opts.strictTypes)}t(rIe,"strictTypesError");var fle=class{static{t(this,"KeywordCxt")}constructor(s,f,d){if((0,LH.validateKeywordUsage)(s,f,d),this.gen=s.gen,this.allErrors=s.allErrors,this.keyword=d,this.data=s.data,this.schema=s.schema[d],this.$data=f.$data&&s.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,eA.schemaRefOrVal)(s,this.schema,d,this.$data),this.schemaType=f.schemaType,this.parentSchema=s.schema,this.params={},this.it=s,this.def=f,this.$data)this.schemaCode=s.gen.const("vSchema",Plt(this.$data,s));else if(this.schemaCode=this.schemaValue,!(0,LH.validSchemaType)(this.schema,f.schemaType,f.allowUndefined))throw new Error(`${d} value must be ${JSON.stringify(f.schemaType)}`);("code"in f?f.trackErrors:f.errors!==!1)&&(this.errsCount=s.gen.const("_errs",Ic.default.errors))}result(s,f,d){this.failResult((0,xo.not)(s),f,d)}failResult(s,f,d){this.gen.if(s),d?d():this.error(),f?(this.gen.else(),f(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(s,f){this.failResult((0,xo.not)(s),void 0,f)}fail(s){if(s===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(s),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(s){if(!this.$data)return this.fail(s);let{schemaCode:f}=this;this.fail((0,xo._)`${f} !== undefined && (${(0,xo.or)(this.invalid$data(),s)})`)}error(s,f,d){if(f){this.setParams(f),this._error(s,d),this.setParams({});return}this._error(s,d)}_error(s,f){(s?FH.reportExtraError:FH.reportError)(this,this.def.error,f)}$dataError(){(0,FH.reportError)(this,this.def.$dataError||FH.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,FH.resetErrorsCount)(this.gen,this.errsCount)}ok(s){this.allErrors||this.gen.if(s)}setParams(s,f){f?Object.assign(this.params,s):this.params=s}block$data(s,f,d=xo.nil){this.gen.block(()=>{this.check$data(s,d),f()})}check$data(s=xo.nil,f=xo.nil){if(!this.$data)return;let{gen:d,schemaCode:y,schemaType:x,def:P}=this;d.if((0,xo.or)((0,xo._)`${y} === undefined`,f)),s!==xo.nil&&d.assign(s,!0),(x.length||P.validateSchema)&&(d.elseIf(this.invalid$data()),this.$dataError(),s!==xo.nil&&d.assign(s,!1)),d.else()}invalid$data(){let{gen:s,schemaCode:f,schemaType:d,def:y,it:x}=this;return(0,xo.or)(P(),F());function P(){if(d.length){if(!(f instanceof xo.Name))throw new Error("ajv implementation error");let J=Array.isArray(d)?d:[d];return(0,xo._)`${(0,ule.checkDataTypes)(J,f,x.opts.strictNumbers,ule.DataType.Wrong)}`}return xo.nil}function F(){if(y.validateSchema){let J=s.scopeValue("validate$data",{ref:y.validateSchema});return(0,xo._)`!${J}(${f})`}return xo.nil}}subschema(s,f){let d=(0,eIe.getSubschema)(this.it,s);(0,eIe.extendSubschemaData)(d,this.it,s),(0,eIe.extendSubschemaMode)(d,s);let y={...this.it,...d,items:void 0,props:void 0};return Lor(y,f),y}mergeEvaluated(s,f){let{it:d,gen:y}=this;d.opts.unevaluated&&(d.props!==!0&&s.props!==void 0&&(d.props=eA.mergeEvaluated.props(y,s.props,d.props,f)),d.items!==!0&&s.items!==void 0&&(d.items=eA.mergeEvaluated.items(y,s.items,d.items,f)))}mergeValidEvaluated(s,f){let{it:d,gen:y}=this;if(d.opts.unevaluated&&(d.props!==!0||d.items!==!0))return y.if(f,()=>this.mergeEvaluated(s,xo.Name)),!0}};dI.KeywordCxt=fle;function Dlt(o,s,f,d){let y=new fle(o,f,s);"code"in f?f.code(y,d):y.$data&&f.validate?(0,LH.funcKeywordCode)(y,f):"macro"in f?(0,LH.macroKeywordCode)(y,f):(f.compile||f.validate)&&(0,LH.funcKeywordCode)(y,f)}t(Dlt,"keywordCode");var Yor=/^\/(?:[^~]|~0|~1)*$/,Kor=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Plt(o,{dataLevel:s,dataNames:f,dataPathArr:d}){let y,x;if(o==="")return Ic.default.rootData;if(o[0]==="/"){if(!Yor.test(o))throw new Error(`Invalid JSON-pointer: ${o}`);y=o,x=Ic.default.rootData}else{let G=Kor.exec(o);if(!G)throw new Error(`Invalid JSON-pointer: ${o}`);let Se=+G[1];if(y=G[2],y==="#"){if(Se>=s)throw new Error(J("property/index",Se));return d[s-Se]}if(Se>s)throw new Error(J("data",Se));if(x=f[s-Se],!y)return x}let P=x,F=y.split("/");for(let G of F)G&&(x=(0,xo._)`${x}${(0,xo.getProperty)((0,eA.unescapeJsonPointer)(G))}`,P=(0,xo._)`${P} && ${x}`);return P;function J(G,Se){return`Cannot access ${G} ${Se} levels up, current level is ${s}`}}t(Plt,"getData");dI.getData=Plt});var RH=or(iIe=>{"use strict";Object.defineProperty(iIe,"__esModule",{value:!0});var nIe=class extends Error{static{t(this,"ValidationError")}constructor(s){super("validation failed"),this.errors=s,this.ajv=this.validation=!0}};iIe.default=nIe});var NM=or(oIe=>{"use strict";Object.defineProperty(oIe,"__esModule",{value:!0});var sIe=OH(),aIe=class extends Error{static{t(this,"MissingRefError")}constructor(s,f,d,y){super(y||`can't resolve reference ${d} from id ${f}`),this.missingRef=(0,sIe.resolveUrl)(s,f,d),this.missingSchema=(0,sIe.normalizeId)((0,sIe.getFullPath)(s,this.missingRef))}};oIe.default=aIe});var MH=or(yT=>{"use strict";Object.defineProperty(yT,"__esModule",{value:!0});yT.resolveSchema=yT.getCompilingSchema=yT.resolveRef=yT.compileSchema=yT.SchemaEnv=void 0;var NE=Cc(),Xor=RH(),LO=hT(),IE=OH(),Alt=ru(),Zor=AM(),IM=class{static{t(this,"SchemaEnv")}constructor(s){var f;this.refs={},this.dynamicAnchors={};let d;typeof s.schema=="object"&&(d=s.schema),this.schema=s.schema,this.schemaId=s.schemaId,this.root=s.root||this,this.baseId=(f=s.baseId)!==null&&f!==void 0?f:(0,IE.normalizeId)(d?.[s.schemaId||"$id"]),this.schemaPath=s.schemaPath,this.localRefs=s.localRefs,this.meta=s.meta,this.$async=d?.$async,this.refs={}}};yT.SchemaEnv=IM;function lIe(o){let s=Nlt.call(this,o);if(s)return s;let f=(0,IE.getFullPath)(this.opts.uriResolver,o.root.baseId),{es5:d,lines:y}=this.opts.code,{ownProperties:x}=this.opts,P=new NE.CodeGen(this.scope,{es5:d,lines:y,ownProperties:x}),F;o.$async&&(F=P.scopeValue("Error",{ref:Xor.default,code:(0,NE._)`require("ajv/dist/runtime/validation_error").default`}));let J=P.scopeName("validate");o.validateName=J;let G={gen:P,allErrors:this.opts.allErrors,data:LO.default.data,parentData:LO.default.parentData,parentDataProperty:LO.default.parentDataProperty,dataNames:[LO.default.data],dataPathArr:[NE.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:P.scopeValue("schema",this.opts.code.source===!0?{ref:o.schema,code:(0,NE.stringify)(o.schema)}:{ref:o.schema}),validateName:J,ValidationError:F,schema:o.schema,schemaEnv:o,rootId:f,baseId:o.baseId||f,schemaPath:NE.nil,errSchemaPath:o.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,NE._)`""`,opts:this.opts,self:this},Se;try{this._compilations.add(o),(0,Zor.validateFunctionCode)(G),P.optimize(this.opts.code.optimize);let de=P.toString();Se=`${P.scopeRefs(LO.default.scope)}return ${de}`,this.opts.code.process&&(Se=this.opts.code.process(Se,o));let Ke=new Function(`${LO.default.self}`,`${LO.default.scope}`,Se)(this,this.scope.get());if(this.scope.value(J,{ref:Ke}),Ke.errors=null,Ke.schema=o.schema,Ke.schemaEnv=o,o.$async&&(Ke.$async=!0),this.opts.code.source===!0&&(Ke.source={validateName:J,validateCode:de,scopeValues:P._values}),this.opts.unevaluated){let{props:$e,items:Fe}=G;Ke.evaluated={props:$e instanceof NE.Name?void 0:$e,items:Fe instanceof NE.Name?void 0:Fe,dynamicProps:$e instanceof NE.Name,dynamicItems:Fe instanceof NE.Name},Ke.source&&(Ke.source.evaluated=(0,NE.stringify)(Ke.evaluated))}return o.validate=Ke,o}catch(de){throw delete o.validate,delete o.validateName,Se&&this.logger.error("Error compiling schema, function code:",Se),de}finally{this._compilations.delete(o)}}t(lIe,"compileSchema");yT.compileSchema=lIe;function Qor(o,s,f){var d;f=(0,IE.resolveUrl)(this.opts.uriResolver,s,f);let y=o.refs[f];if(y)return y;let x=rcr.call(this,o,f);if(x===void 0){let P=(d=o.localRefs)===null||d===void 0?void 0:d[f],{schemaId:F}=this.opts;P&&(x=new IM({schema:P,schemaId:F,root:o,baseId:s}))}if(x!==void 0)return o.refs[f]=ecr.call(this,x)}t(Qor,"resolveRef");yT.resolveRef=Qor;function ecr(o){return(0,IE.inlineRef)(o.schema,this.opts.inlineRefs)?o.schema:o.validate?o:lIe.call(this,o)}t(ecr,"inlineOrCompile");function Nlt(o){for(let s of this._compilations)if(tcr(s,o))return s}t(Nlt,"getCompilingSchema");yT.getCompilingSchema=Nlt;function tcr(o,s){return o.schema===s.schema&&o.root===s.root&&o.baseId===s.baseId}t(tcr,"sameSchemaEnv");function rcr(o,s){let f;for(;typeof(f=this.refs[s])=="string";)s=f;return f||this.schemas[s]||_le.call(this,o,s)}t(rcr,"resolve");function _le(o,s){let f=this.opts.uriResolver.parse(s),d=(0,IE._getFullPath)(this.opts.uriResolver,f),y=(0,IE.getFullPath)(this.opts.uriResolver,o.baseId,void 0);if(Object.keys(o.schema).length>0&&d===y)return cIe.call(this,f,o);let x=(0,IE.normalizeId)(d),P=this.refs[x]||this.schemas[x];if(typeof P=="string"){let F=_le.call(this,o,P);return typeof F?.schema!="object"?void 0:cIe.call(this,f,F)}if(typeof P?.schema=="object"){if(P.validate||lIe.call(this,P),x===(0,IE.normalizeId)(s)){let{schema:F}=P,{schemaId:J}=this.opts,G=F[J];return G&&(y=(0,IE.resolveUrl)(this.opts.uriResolver,y,G)),new IM({schema:F,schemaId:J,root:o,baseId:y})}return cIe.call(this,f,P)}}t(_le,"resolveSchema");yT.resolveSchema=_le;var ncr=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function cIe(o,{baseId:s,schema:f,root:d}){var y;if(((y=o.fragment)===null||y===void 0?void 0:y[0])!=="/")return;for(let F of o.fragment.slice(1).split("/")){if(typeof f=="boolean")return;let J=f[(0,Alt.unescapeFragment)(F)];if(J===void 0)return;f=J;let G=typeof f=="object"&&f[this.opts.schemaId];!ncr.has(F)&&G&&(s=(0,IE.resolveUrl)(this.opts.uriResolver,s,G))}let x;if(typeof f!="boolean"&&f.$ref&&!(0,Alt.schemaHasRulesButRef)(f,this.RULES)){let F=(0,IE.resolveUrl)(this.opts.uriResolver,s,f.$ref);x=_le.call(this,d,F)}let{schemaId:P}=this.opts;if(x=x||new IM({schema:f,schemaId:P,root:d,baseId:s}),x.schema!==x.root.schema)return x}t(cIe,"getJsonPointer")});var Ilt=or((l6r,icr)=>{icr.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 fIe=or((u6r,Rlt)=>{"use strict";var scr=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),Flt=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function uIe(o){let s="",f=0,d=0;for(d=0;d<o.length;d++)if(f=o[d].charCodeAt(0),f!==48){if(!(f>=48&&f<=57||f>=65&&f<=70||f>=97&&f<=102))return"";s+=o[d];break}for(d+=1;d<o.length;d++){if(f=o[d].charCodeAt(0),!(f>=48&&f<=57||f>=65&&f<=70||f>=97&&f<=102))return"";s+=o[d]}return s}t(uIe,"stringArrayToHexStripped");var acr=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function Olt(o){return o.length=0,!0}t(Olt,"consumeIsZone");function ocr(o,s,f){if(o.length){let d=uIe(o);if(d!=="")s.push(d);else return f.error=!0,!1;o.length=0}return!0}t(ocr,"consumeHextets");function ccr(o){let s=0,f={error:!1,address:"",zone:""},d=[],y=[],x=!1,P=!1,F=ocr;for(let J=0;J<o.length;J++){let G=o[J];if(!(G==="["||G==="]"))if(G===":"){if(x===!0&&(P=!0),!F(y,d,f))break;if(++s>7){f.error=!0;break}J>0&&o[J-1]===":"&&(x=!0),d.push(":");continue}else if(G==="%"){if(!F(y,d,f))break;F=Olt}else{y.push(G);continue}}return y.length&&(F===Olt?f.zone=y.join(""):P?d.push(y.join("")):d.push(uIe(y))),f.address=d.join(""),f}t(ccr,"getIPV6");function Llt(o){if(lcr(o,":")<2)return{host:o,isIPV6:!1};let s=ccr(o);if(s.error)return{host:o,isIPV6:!1};{let f=s.address,d=s.address;return s.zone&&(f+="%"+s.zone,d+="%25"+s.zone),{host:f,isIPV6:!0,escapedHost:d}}}t(Llt,"normalizeIPv6");function lcr(o,s){let f=0;for(let d=0;d<o.length;d++)o[d]===s&&f++;return f}t(lcr,"findToken");function ucr(o){let s=o,f=[],d=-1,y=0;for(;y=s.length;){if(y===1){if(s===".")break;if(s==="/"){f.push("/");break}else{f.push(s);break}}else if(y===2){if(s[0]==="."){if(s[1]===".")break;if(s[1]==="/"){s=s.slice(2);continue}}else if(s[0]==="/"&&(s[1]==="."||s[1]==="/")){f.push("/");break}}else if(y===3&&s==="/.."){f.length!==0&&f.pop(),f.push("/");break}if(s[0]==="."){if(s[1]==="."){if(s[2]==="/"){s=s.slice(3);continue}}else if(s[1]==="/"){s=s.slice(2);continue}}else if(s[0]==="/"&&s[1]==="."){if(s[2]==="/"){s=s.slice(2);continue}else if(s[2]==="."&&s[3]==="/"){s=s.slice(3),f.length!==0&&f.pop();continue}}if((d=s.indexOf("/",1))===-1){f.push(s);break}else f.push(s.slice(0,d)),s=s.slice(d)}return f.join("")}t(ucr,"removeDotSegments");function fcr(o,s){let f=s!==!0?escape:unescape;return o.scheme!==void 0&&(o.scheme=f(o.scheme)),o.userinfo!==void 0&&(o.userinfo=f(o.userinfo)),o.host!==void 0&&(o.host=f(o.host)),o.path!==void 0&&(o.path=f(o.path)),o.query!==void 0&&(o.query=f(o.query)),o.fragment!==void 0&&(o.fragment=f(o.fragment)),o}t(fcr,"normalizeComponentEncoding");function _cr(o){let s=[];if(o.userinfo!==void 0&&(s.push(o.userinfo),s.push("@")),o.host!==void 0){let f=unescape(o.host);if(!Flt(f)){let d=Llt(f);d.isIPV6===!0?f=`[${d.escapedHost}]`:f=o.host}s.push(f)}return(typeof o.port=="number"||typeof o.port=="string")&&(s.push(":"),s.push(String(o.port))),s.length?s.join(""):void 0}t(_cr,"recomposeAuthority");Rlt.exports={nonSimpleDomain:acr,recomposeAuthority:_cr,normalizeComponentEncoding:fcr,removeDotSegments:ucr,isIPv4:Flt,isUUID:scr,normalizeIPv6:Llt,stringArrayToHexStripped:uIe}});var zlt=or((_6r,Ult)=>{"use strict";var{isUUID:pcr}=fIe(),dcr=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,mcr=["http","https","ws","wss","urn","urn:uuid"];function hcr(o){return mcr.indexOf(o)!==-1}t(hcr,"isValidSchemeName");function _Ie(o){return o.secure===!0?!0:o.secure===!1?!1:o.scheme?o.scheme.length===3&&(o.scheme[0]==="w"||o.scheme[0]==="W")&&(o.scheme[1]==="s"||o.scheme[1]==="S")&&(o.scheme[2]==="s"||o.scheme[2]==="S"):!1}t(_Ie,"wsIsSecure");function Mlt(o){return o.host||(o.error=o.error||"HTTP URIs must have a host."),o}t(Mlt,"httpParse");function jlt(o){let s=String(o.scheme).toLowerCase()==="https";return(o.port===(s?443:80)||o.port==="")&&(o.port=void 0),o.path||(o.path="/"),o}t(jlt,"httpSerialize");function gcr(o){return o.secure=_Ie(o),o.resourceName=(o.path||"/")+(o.query?"?"+o.query:""),o.path=void 0,o.query=void 0,o}t(gcr,"wsParse");function ycr(o){if((o.port===(_Ie(o)?443:80)||o.port==="")&&(o.port=void 0),typeof o.secure=="boolean"&&(o.scheme=o.secure?"wss":"ws",o.secure=void 0),o.resourceName){let[s,f]=o.resourceName.split("?");o.path=s&&s!=="/"?s:void 0,o.query=f,o.resourceName=void 0}return o.fragment=void 0,o}t(ycr,"wsSerialize");function vcr(o,s){if(!o.path)return o.error="URN can not be parsed",o;let f=o.path.match(dcr);if(f){let d=s.scheme||o.scheme||"urn";o.nid=f[1].toLowerCase(),o.nss=f[2];let y=`${d}:${s.nid||o.nid}`,x=pIe(y);o.path=void 0,x&&(o=x.parse(o,s))}else o.error=o.error||"URN can not be parsed.";return o}t(vcr,"urnParse");function bcr(o,s){if(o.nid===void 0)throw new Error("URN without nid cannot be serialized");let f=s.scheme||o.scheme||"urn",d=o.nid.toLowerCase(),y=`${f}:${s.nid||d}`,x=pIe(y);x&&(o=x.serialize(o,s));let P=o,F=o.nss;return P.path=`${d||s.nid}:${F}`,s.skipEscape=!0,P}t(bcr,"urnSerialize");function Scr(o,s){let f=o;return f.uuid=f.nss,f.nss=void 0,!s.tolerant&&(!f.uuid||!pcr(f.uuid))&&(f.error=f.error||"UUID is not valid."),f}t(Scr,"urnuuidParse");function Tcr(o){let s=o;return s.nss=(o.uuid||"").toLowerCase(),s}t(Tcr,"urnuuidSerialize");var Blt={scheme:"http",domainHost:!0,parse:Mlt,serialize:jlt},xcr={scheme:"https",domainHost:Blt.domainHost,parse:Mlt,serialize:jlt},ple={scheme:"ws",domainHost:!0,parse:gcr,serialize:ycr},Ecr={scheme:"wss",domainHost:ple.domainHost,parse:ple.parse,serialize:ple.serialize},Ccr={scheme:"urn",parse:vcr,serialize:bcr,skipNormalize:!0},kcr={scheme:"urn:uuid",parse:Scr,serialize:Tcr,skipNormalize:!0},dle={http:Blt,https:xcr,ws:ple,wss:Ecr,urn:Ccr,"urn:uuid":kcr};Object.setPrototypeOf(dle,null);function pIe(o){return o&&(dle[o]||dle[o.toLowerCase()])||void 0}t(pIe,"getSchemeHandler");Ult.exports={wsIsSecure:_Ie,SCHEMES:dle,isValidSchemeName:hcr,getSchemeHandler:pIe}});var Wlt=or((d6r,hle)=>{"use strict";var{normalizeIPv6:wcr,removeDotSegments:jH,recomposeAuthority:Dcr,normalizeComponentEncoding:mle,isIPv4:Pcr,nonSimpleDomain:Acr}=fIe(),{SCHEMES:Ncr,getSchemeHandler:$lt}=zlt();function Icr(o,s){return typeof o=="string"?o=zk(tA(o,s),s):typeof o=="object"&&(o=tA(zk(o,s),s)),o}t(Icr,"normalize");function Ocr(o,s,f){let d=f?Object.assign({scheme:"null"},f):{scheme:"null"},y=Jlt(tA(o,d),tA(s,d),d,!0);return d.skipEscape=!0,zk(y,d)}t(Ocr,"resolve");function Jlt(o,s,f,d){let y={};return d||(o=tA(zk(o,f),f),s=tA(zk(s,f),f)),f=f||{},!f.tolerant&&s.scheme?(y.scheme=s.scheme,y.userinfo=s.userinfo,y.host=s.host,y.port=s.port,y.path=jH(s.path||""),y.query=s.query):(s.userinfo!==void 0||s.host!==void 0||s.port!==void 0?(y.userinfo=s.userinfo,y.host=s.host,y.port=s.port,y.path=jH(s.path||""),y.query=s.query):(s.path?(s.path[0]==="/"?y.path=jH(s.path):((o.userinfo!==void 0||o.host!==void 0||o.port!==void 0)&&!o.path?y.path="/"+s.path:o.path?y.path=o.path.slice(0,o.path.lastIndexOf("/")+1)+s.path:y.path=s.path,y.path=jH(y.path)),y.query=s.query):(y.path=o.path,s.query!==void 0?y.query=s.query:y.query=o.query),y.userinfo=o.userinfo,y.host=o.host,y.port=o.port),y.scheme=o.scheme),y.fragment=s.fragment,y}t(Jlt,"resolveComponent");function Fcr(o,s,f){return typeof o=="string"?(o=unescape(o),o=zk(mle(tA(o,f),!0),{...f,skipEscape:!0})):typeof o=="object"&&(o=zk(mle(o,!0),{...f,skipEscape:!0})),typeof s=="string"?(s=unescape(s),s=zk(mle(tA(s,f),!0),{...f,skipEscape:!0})):typeof s=="object"&&(s=zk(mle(s,!0),{...f,skipEscape:!0})),o.toLowerCase()===s.toLowerCase()}t(Fcr,"equal");function zk(o,s){let f={host:o.host,scheme:o.scheme,userinfo:o.userinfo,port:o.port,path:o.path,query:o.query,nid:o.nid,nss:o.nss,uuid:o.uuid,fragment:o.fragment,reference:o.reference,resourceName:o.resourceName,secure:o.secure,error:""},d=Object.assign({},s),y=[],x=$lt(d.scheme||f.scheme);x&&x.serialize&&x.serialize(f,d),f.path!==void 0&&(d.skipEscape?f.path=unescape(f.path):(f.path=escape(f.path),f.scheme!==void 0&&(f.path=f.path.split("%3A").join(":")))),d.reference!=="suffix"&&f.scheme&&y.push(f.scheme,":");let P=Dcr(f);if(P!==void 0&&(d.reference!=="suffix"&&y.push("//"),y.push(P),f.path&&f.path[0]!=="/"&&y.push("/")),f.path!==void 0){let F=f.path;!d.absolutePath&&(!x||!x.absolutePath)&&(F=jH(F)),P===void 0&&F[0]==="/"&&F[1]==="/"&&(F="/%2F"+F.slice(2)),y.push(F)}return f.query!==void 0&&y.push("?",f.query),f.fragment!==void 0&&y.push("#",f.fragment),y.join("")}t(zk,"serialize");var Lcr=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function tA(o,s){let f=Object.assign({},s),d={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},y=!1;f.reference==="suffix"&&(f.scheme?o=f.scheme+":"+o:o="//"+o);let x=o.match(Lcr);if(x){if(d.scheme=x[1],d.userinfo=x[3],d.host=x[4],d.port=parseInt(x[5],10),d.path=x[6]||"",d.query=x[7],d.fragment=x[8],isNaN(d.port)&&(d.port=x[5]),d.host)if(Pcr(d.host)===!1){let J=wcr(d.host);d.host=J.host.toLowerCase(),y=J.isIPV6}else y=!0;d.scheme===void 0&&d.userinfo===void 0&&d.host===void 0&&d.port===void 0&&d.query===void 0&&!d.path?d.reference="same-document":d.scheme===void 0?d.reference="relative":d.fragment===void 0?d.reference="absolute":d.reference="uri",f.reference&&f.reference!=="suffix"&&f.reference!==d.reference&&(d.error=d.error||"URI is not a "+f.reference+" reference.");let P=$lt(f.scheme||d.scheme);if(!f.unicodeSupport&&(!P||!P.unicodeSupport)&&d.host&&(f.domainHost||P&&P.domainHost)&&y===!1&&Acr(d.host))try{d.host=URL.domainToASCII(d.host.toLowerCase())}catch(F){d.error=d.error||"Host's domain name can not be converted to ASCII: "+F}(!P||P&&!P.skipNormalize)&&(o.indexOf("%")!==-1&&(d.scheme!==void 0&&(d.scheme=unescape(d.scheme)),d.host!==void 0&&(d.host=unescape(d.host))),d.path&&(d.path=escape(unescape(d.path))),d.fragment&&(d.fragment=encodeURI(decodeURIComponent(d.fragment)))),P&&P.parse&&P.parse(d,f)}else d.error=d.error||"URI can not be parsed.";return d}t(tA,"parse");var dIe={SCHEMES:Ncr,normalize:Icr,resolve:Ocr,resolveComponent:Jlt,equal:Fcr,serialize:zk,parse:tA};hle.exports=dIe;hle.exports.default=dIe;hle.exports.fastUri=dIe});var Vlt=or(mIe=>{"use strict";Object.defineProperty(mIe,"__esModule",{value:!0});var qlt=Wlt();qlt.code='require("ajv/dist/runtime/uri").default';mIe.default=qlt});var yIe=or(x0=>{"use strict";Object.defineProperty(x0,"__esModule",{value:!0});x0.CodeGen=x0.Name=x0.nil=x0.stringify=x0.str=x0._=x0.KeywordCxt=void 0;var Rcr=AM();Object.defineProperty(x0,"KeywordCxt",{enumerable:!0,get:t(function(){return Rcr.KeywordCxt},"get")});var OM=Cc();Object.defineProperty(x0,"_",{enumerable:!0,get:t(function(){return OM._},"get")});Object.defineProperty(x0,"str",{enumerable:!0,get:t(function(){return OM.str},"get")});Object.defineProperty(x0,"stringify",{enumerable:!0,get:t(function(){return OM.stringify},"get")});Object.defineProperty(x0,"nil",{enumerable:!0,get:t(function(){return OM.nil},"get")});Object.defineProperty(x0,"Name",{enumerable:!0,get:t(function(){return OM.Name},"get")});Object.defineProperty(x0,"CodeGen",{enumerable:!0,get:t(function(){return OM.CodeGen},"get")});var Mcr=RH(),Xlt=NM(),jcr=WNe(),BH=MH(),Bcr=Cc(),UH=OH(),gle=IH(),gIe=ru(),Hlt=Ilt(),Ucr=Vlt(),Zlt=t((o,s)=>new RegExp(o,s),"defaultRegExp");Zlt.code="new RegExp";var zcr=["removeAdditional","useDefaults","coerceTypes"],$cr=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),Jcr={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."},Wcr={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},Glt=200;function qcr(o){var s,f,d,y,x,P,F,J,G,Se,de,ae,Ke,$e,Fe,Gt,jt,Pr,Fn,sn,Un,Er,vr,ls,Ni;let nc=o.strict,bi=(s=o.code)===null||s===void 0?void 0:s.optimize,Qf=bi===!0||bi===void 0?1:bi||0,S_=(d=(f=o.code)===null||f===void 0?void 0:f.regExp)!==null&&d!==void 0?d:Zlt,Ln=(y=o.uriResolver)!==null&&y!==void 0?y:Ucr.default;return{strictSchema:(P=(x=o.strictSchema)!==null&&x!==void 0?x:nc)!==null&&P!==void 0?P:!0,strictNumbers:(J=(F=o.strictNumbers)!==null&&F!==void 0?F:nc)!==null&&J!==void 0?J:!0,strictTypes:(Se=(G=o.strictTypes)!==null&&G!==void 0?G:nc)!==null&&Se!==void 0?Se:"log",strictTuples:(ae=(de=o.strictTuples)!==null&&de!==void 0?de:nc)!==null&&ae!==void 0?ae:"log",strictRequired:($e=(Ke=o.strictRequired)!==null&&Ke!==void 0?Ke:nc)!==null&&$e!==void 0?$e:!1,code:o.code?{...o.code,optimize:Qf,regExp:S_}:{optimize:Qf,regExp:S_},loopRequired:(Fe=o.loopRequired)!==null&&Fe!==void 0?Fe:Glt,loopEnum:(Gt=o.loopEnum)!==null&&Gt!==void 0?Gt:Glt,meta:(jt=o.meta)!==null&&jt!==void 0?jt:!0,messages:(Pr=o.messages)!==null&&Pr!==void 0?Pr:!0,inlineRefs:(Fn=o.inlineRefs)!==null&&Fn!==void 0?Fn:!0,schemaId:(sn=o.schemaId)!==null&&sn!==void 0?sn:"$id",addUsedSchema:(Un=o.addUsedSchema)!==null&&Un!==void 0?Un:!0,validateSchema:(Er=o.validateSchema)!==null&&Er!==void 0?Er:!0,validateFormats:(vr=o.validateFormats)!==null&&vr!==void 0?vr:!0,unicodeRegExp:(ls=o.unicodeRegExp)!==null&&ls!==void 0?ls:!0,int32range:(Ni=o.int32range)!==null&&Ni!==void 0?Ni:!0,uriResolver:Ln}}t(qcr,"requiredOptions");var zH=class{static{t(this,"Ajv")}constructor(s={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,s=this.opts={...s,...qcr(s)};let{es5:f,lines:d}=this.opts.code;this.scope=new Bcr.ValueScope({scope:{},prefixes:$cr,es5:f,lines:d}),this.logger=Xcr(s.logger);let y=s.validateFormats;s.validateFormats=!1,this.RULES=(0,jcr.getRules)(),Ylt.call(this,Jcr,s,"NOT SUPPORTED"),Ylt.call(this,Wcr,s,"DEPRECATED","warn"),this._metaOpts=Ycr.call(this),s.formats&&Hcr.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),s.keywords&&Gcr.call(this,s.keywords),typeof s.meta=="object"&&this.addMetaSchema(s.meta),Vcr.call(this),s.validateFormats=y}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:s,meta:f,schemaId:d}=this.opts,y=Hlt;d==="id"&&(y={...Hlt},y.id=y.$id,delete y.$id),f&&s&&this.addMetaSchema(y,y[d],!1)}defaultMeta(){let{meta:s,schemaId:f}=this.opts;return this.opts.defaultMeta=typeof s=="object"?s[f]||s:void 0}validate(s,f){let d;if(typeof s=="string"){if(d=this.getSchema(s),!d)throw new Error(`no schema with key or ref "${s}"`)}else d=this.compile(s);let y=d(f);return"$async"in d||(this.errors=d.errors),y}compile(s,f){let d=this._addSchema(s,f);return d.validate||this._compileSchemaEnv(d)}compileAsync(s,f){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:d}=this.opts;return y.call(this,s,f);async function y(Se,de){await x.call(this,Se.$schema);let ae=this._addSchema(Se,de);return ae.validate||P.call(this,ae)}async function x(Se){Se&&!this.getSchema(Se)&&await y.call(this,{$ref:Se},!0)}async function P(Se){try{return this._compileSchemaEnv(Se)}catch(de){if(!(de instanceof Xlt.default))throw de;return F.call(this,de),await J.call(this,de.missingSchema),P.call(this,Se)}}function F({missingSchema:Se,missingRef:de}){if(this.refs[Se])throw new Error(`AnySchema ${Se} is loaded but ${de} cannot be resolved`)}async function J(Se){let de=await G.call(this,Se);this.refs[Se]||await x.call(this,de.$schema),this.refs[Se]||this.addSchema(de,Se,f)}async function G(Se){let de=this._loading[Se];if(de)return de;try{return await(this._loading[Se]=d(Se))}finally{delete this._loading[Se]}}}addSchema(s,f,d,y=this.opts.validateSchema){if(Array.isArray(s)){for(let P of s)this.addSchema(P,void 0,d,y);return this}let x;if(typeof s=="object"){let{schemaId:P}=this.opts;if(x=s[P],x!==void 0&&typeof x!="string")throw new Error(`schema ${P} must be string`)}return f=(0,UH.normalizeId)(f||x),this._checkUnique(f),this.schemas[f]=this._addSchema(s,d,f,y,!0),this}addMetaSchema(s,f,d=this.opts.validateSchema){return this.addSchema(s,f,!0,d),this}validateSchema(s,f){if(typeof s=="boolean")return!0;let d;if(d=s.$schema,d!==void 0&&typeof d!="string")throw new Error("$schema must be a string");if(d=d||this.opts.defaultMeta||this.defaultMeta(),!d)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let y=this.validate(d,s);if(!y&&f){let x="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(x);else throw new Error(x)}return y}getSchema(s){let f;for(;typeof(f=Klt.call(this,s))=="string";)s=f;if(f===void 0){let{schemaId:d}=this.opts,y=new BH.SchemaEnv({schema:{},schemaId:d});if(f=BH.resolveSchema.call(this,y,s),!f)return;this.refs[s]=f}return f.validate||this._compileSchemaEnv(f)}removeSchema(s){if(s instanceof RegExp)return this._removeAllSchemas(this.schemas,s),this._removeAllSchemas(this.refs,s),this;switch(typeof s){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let f=Klt.call(this,s);return typeof f=="object"&&this._cache.delete(f.schema),delete this.schemas[s],delete this.refs[s],this}case"object":{let f=s;this._cache.delete(f);let d=s[this.opts.schemaId];return d&&(d=(0,UH.normalizeId)(d),delete this.schemas[d],delete this.refs[d]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(s){for(let f of s)this.addKeyword(f);return this}addKeyword(s,f){let d;if(typeof s=="string")d=s,typeof f=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),f.keyword=d);else if(typeof s=="object"&&f===void 0){if(f=s,d=f.keyword,Array.isArray(d)&&!d.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(Qcr.call(this,d,f),!f)return(0,gIe.eachItem)(d,x=>hIe.call(this,x)),this;tlr.call(this,f);let y={...f,type:(0,gle.getJSONTypes)(f.type),schemaType:(0,gle.getJSONTypes)(f.schemaType)};return(0,gIe.eachItem)(d,y.type.length===0?x=>hIe.call(this,x,y):x=>y.type.forEach(P=>hIe.call(this,x,y,P))),this}getKeyword(s){let f=this.RULES.all[s];return typeof f=="object"?f.definition:!!f}removeKeyword(s){let{RULES:f}=this;delete f.keywords[s],delete f.all[s];for(let d of f.rules){let y=d.rules.findIndex(x=>x.keyword===s);y>=0&&d.rules.splice(y,1)}return this}addFormat(s,f){return typeof f=="string"&&(f=new RegExp(f)),this.formats[s]=f,this}errorsText(s=this.errors,{separator:f=", ",dataVar:d="data"}={}){return!s||s.length===0?"No errors":s.map(y=>`${d}${y.instancePath} ${y.message}`).reduce((y,x)=>y+f+x)}$dataMetaSchema(s,f){let d=this.RULES.all;s=JSON.parse(JSON.stringify(s));for(let y of f){let x=y.split("/").slice(1),P=s;for(let F of x)P=P[F];for(let F in d){let J=d[F];if(typeof J!="object")continue;let{$data:G}=J.definition,Se=P[F];G&&Se&&(P[F]=Qlt(Se))}}return s}_removeAllSchemas(s,f){for(let d in s){let y=s[d];(!f||f.test(d))&&(typeof y=="string"?delete s[d]:y&&!y.meta&&(this._cache.delete(y.schema),delete s[d]))}}_addSchema(s,f,d,y=this.opts.validateSchema,x=this.opts.addUsedSchema){let P,{schemaId:F}=this.opts;if(typeof s=="object")P=s[F];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof s!="boolean")throw new Error("schema must be object or boolean")}let J=this._cache.get(s);if(J!==void 0)return J;d=(0,UH.normalizeId)(P||d);let G=UH.getSchemaRefs.call(this,s,d);return J=new BH.SchemaEnv({schema:s,schemaId:F,meta:f,baseId:d,localRefs:G}),this._cache.set(J.schema,J),x&&!d.startsWith("#")&&(d&&this._checkUnique(d),this.refs[d]=J),y&&this.validateSchema(s,!0),J}_checkUnique(s){if(this.schemas[s]||this.refs[s])throw new Error(`schema with key or id "${s}" already exists`)}_compileSchemaEnv(s){if(s.meta?this._compileMetaSchema(s):BH.compileSchema.call(this,s),!s.validate)throw new Error("ajv implementation error");return s.validate}_compileMetaSchema(s){let f=this.opts;this.opts=this._metaOpts;try{BH.compileSchema.call(this,s)}finally{this.opts=f}}};zH.ValidationError=Mcr.default;zH.MissingRefError=Xlt.default;x0.default=zH;function Ylt(o,s,f,d="error"){for(let y in o){let x=y;x in s&&this.logger[d](`${f}: option ${y}. ${o[x]}`)}}t(Ylt,"checkOptions");function Klt(o){return o=(0,UH.normalizeId)(o),this.schemas[o]||this.refs[o]}t(Klt,"getSchEnv");function Vcr(){let o=this.opts.schemas;if(o)if(Array.isArray(o))this.addSchema(o);else for(let s in o)this.addSchema(o[s],s)}t(Vcr,"addInitialSchemas");function Hcr(){for(let o in this.opts.formats){let s=this.opts.formats[o];s&&this.addFormat(o,s)}}t(Hcr,"addInitialFormats");function Gcr(o){if(Array.isArray(o)){this.addVocabulary(o);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let s in o){let f=o[s];f.keyword||(f.keyword=s),this.addKeyword(f)}}t(Gcr,"addInitialKeywords");function Ycr(){let o={...this.opts};for(let s of zcr)delete o[s];return o}t(Ycr,"getMetaSchemaOptions");var Kcr={log(){},warn(){},error(){}};function Xcr(o){if(o===!1)return Kcr;if(o===void 0)return console;if(o.log&&o.warn&&o.error)return o;throw new Error("logger must implement log, warn and error methods")}t(Xcr,"getLogger");var Zcr=/^[a-z_$][a-z0-9_$:-]*$/i;function Qcr(o,s){let{RULES:f}=this;if((0,gIe.eachItem)(o,d=>{if(f.keywords[d])throw new Error(`Keyword ${d} is already defined`);if(!Zcr.test(d))throw new Error(`Keyword ${d} has invalid name`)}),!!s&&s.$data&&!("code"in s||"validate"in s))throw new Error('$data keyword must have "code" or "validate" function')}t(Qcr,"checkKeyword");function hIe(o,s,f){var d;let y=s?.post;if(f&&y)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:x}=this,P=y?x.post:x.rules.find(({type:J})=>J===f);if(P||(P={type:f,rules:[]},x.rules.push(P)),x.keywords[o]=!0,!s)return;let F={keyword:o,definition:{...s,type:(0,gle.getJSONTypes)(s.type),schemaType:(0,gle.getJSONTypes)(s.schemaType)}};s.before?elr.call(this,P,F,s.before):P.rules.push(F),x.all[o]=F,(d=s.implements)===null||d===void 0||d.forEach(J=>this.addKeyword(J))}t(hIe,"addRule");function elr(o,s,f){let d=o.rules.findIndex(y=>y.keyword===f);d>=0?o.rules.splice(d,0,s):(o.rules.push(s),this.logger.warn(`rule ${f} is not defined`))}t(elr,"addBeforeRule");function tlr(o){let{metaSchema:s}=o;s!==void 0&&(o.$data&&this.opts.$data&&(s=Qlt(s)),o.validateSchema=this.compile(s,!0))}t(tlr,"keywordMetaschema");var rlr={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Qlt(o){return{anyOf:[o,rlr]}}t(Qlt,"schemaOrData")});var eut=or(vIe=>{"use strict";Object.defineProperty(vIe,"__esModule",{value:!0});var nlr={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};vIe.default=nlr});var ble=or(RO=>{"use strict";Object.defineProperty(RO,"__esModule",{value:!0});RO.callRef=RO.getValidate=void 0;var ilr=NM(),tut=gT(),Zv=Cc(),FM=hT(),rut=MH(),yle=ru(),slr={keyword:"$ref",schemaType:"string",code(o){let{gen:s,schema:f,it:d}=o,{baseId:y,schemaEnv:x,validateName:P,opts:F,self:J}=d,{root:G}=x;if((f==="#"||f==="#/")&&y===G.baseId)return de();let Se=rut.resolveRef.call(J,G,y,f);if(Se===void 0)throw new ilr.default(d.opts.uriResolver,y,f);if(Se instanceof rut.SchemaEnv)return ae(Se);return Ke(Se);function de(){if(x===G)return vle(o,P,x,x.$async);let $e=s.scopeValue("root",{ref:G});return vle(o,(0,Zv._)`${$e}.validate`,G,G.$async)}function ae($e){let Fe=nut(o,$e);vle(o,Fe,$e,$e.$async)}function Ke($e){let Fe=s.scopeValue("schema",F.code.source===!0?{ref:$e,code:(0,Zv.stringify)($e)}:{ref:$e}),Gt=s.name("valid"),jt=o.subschema({schema:$e,dataTypes:[],schemaPath:Zv.nil,topSchemaRef:Fe,errSchemaPath:f},Gt);o.mergeEvaluated(jt),o.ok(Gt)}}};function nut(o,s){let{gen:f}=o;return s.validate?f.scopeValue("validate",{ref:s.validate}):(0,Zv._)`${f.scopeValue("wrapper",{ref:s})}.validate`}t(nut,"getValidate");RO.getValidate=nut;function vle(o,s,f,d){let{gen:y,it:x}=o,{allErrors:P,schemaEnv:F,opts:J}=x,G=J.passContext?FM.default.this:Zv.nil;d?Se():de();function Se(){if(!F.$async)throw new Error("async schema referenced by sync schema");let $e=y.let("valid");y.try(()=>{y.code((0,Zv._)`await ${(0,tut.callValidateCode)(o,s,G)}`),Ke(s),P||y.assign($e,!0)},Fe=>{y.if((0,Zv._)`!(${Fe} instanceof ${x.ValidationError})`,()=>y.throw(Fe)),ae(Fe),P||y.assign($e,!1)}),o.ok($e)}t(Se,"callAsyncRef");function de(){o.result((0,tut.callValidateCode)(o,s,G),()=>Ke(s),()=>ae(s))}t(de,"callSyncRef");function ae($e){let Fe=(0,Zv._)`${$e}.errors`;y.assign(FM.default.vErrors,(0,Zv._)`${FM.default.vErrors} === null ? ${Fe} : ${FM.default.vErrors}.concat(${Fe})`),y.assign(FM.default.errors,(0,Zv._)`${FM.default.vErrors}.length`)}t(ae,"addErrorsFrom");function Ke($e){var Fe;if(!x.opts.unevaluated)return;let Gt=(Fe=f?.validate)===null||Fe===void 0?void 0:Fe.evaluated;if(x.props!==!0)if(Gt&&!Gt.dynamicProps)Gt.props!==void 0&&(x.props=yle.mergeEvaluated.props(y,Gt.props,x.props));else{let jt=y.var("props",(0,Zv._)`${$e}.evaluated.props`);x.props=yle.mergeEvaluated.props(y,jt,x.props,Zv.Name)}if(x.items!==!0)if(Gt&&!Gt.dynamicItems)Gt.items!==void 0&&(x.items=yle.mergeEvaluated.items(y,Gt.items,x.items));else{let jt=y.var("items",(0,Zv._)`${$e}.evaluated.items`);x.items=yle.mergeEvaluated.items(y,jt,x.items,Zv.Name)}}t(Ke,"addEvaluatedFrom")}t(vle,"callRef");RO.callRef=vle;RO.default=slr});var SIe=or(bIe=>{"use strict";Object.defineProperty(bIe,"__esModule",{value:!0});var alr=eut(),olr=ble(),clr=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",alr.default,olr.default];bIe.default=clr});var iut=or(TIe=>{"use strict";Object.defineProperty(TIe,"__esModule",{value:!0});var Sle=Cc(),mI=Sle.operators,Tle={maximum:{okStr:"<=",ok:mI.LTE,fail:mI.GT},minimum:{okStr:">=",ok:mI.GTE,fail:mI.LT},exclusiveMaximum:{okStr:"<",ok:mI.LT,fail:mI.GTE},exclusiveMinimum:{okStr:">",ok:mI.GT,fail:mI.LTE}},llr={message:t(({keyword:o,schemaCode:s})=>(0,Sle.str)`must be ${Tle[o].okStr} ${s}`,"message"),params:t(({keyword:o,schemaCode:s})=>(0,Sle._)`{comparison: ${Tle[o].okStr}, limit: ${s}}`,"params")},ulr={keyword:Object.keys(Tle),type:"number",schemaType:"number",$data:!0,error:llr,code(o){let{keyword:s,data:f,schemaCode:d}=o;o.fail$data((0,Sle._)`${f} ${Tle[s].fail} ${d} || isNaN(${f})`)}};TIe.default=ulr});var sut=or(xIe=>{"use strict";Object.defineProperty(xIe,"__esModule",{value:!0});var $H=Cc(),flr={message:t(({schemaCode:o})=>(0,$H.str)`must be multiple of ${o}`,"message"),params:t(({schemaCode:o})=>(0,$H._)`{multipleOf: ${o}}`,"params")},_lr={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:flr,code(o){let{gen:s,data:f,schemaCode:d,it:y}=o,x=y.opts.multipleOfPrecision,P=s.let("res"),F=x?(0,$H._)`Math.abs(Math.round(${P}) - ${P}) > 1e-${x}`:(0,$H._)`${P} !== parseInt(${P})`;o.fail$data((0,$H._)`(${d} === 0 || (${P} = ${f}/${d}, ${F}))`)}};xIe.default=_lr});var out=or(EIe=>{"use strict";Object.defineProperty(EIe,"__esModule",{value:!0});function aut(o){let s=o.length,f=0,d=0,y;for(;d<s;)f++,y=o.charCodeAt(d++),y>=55296&&y<=56319&&d<s&&(y=o.charCodeAt(d),(y&64512)===56320&&d++);return f}t(aut,"ucs2length");EIe.default=aut;aut.code='require("ajv/dist/runtime/ucs2length").default'});var cut=or(CIe=>{"use strict";Object.defineProperty(CIe,"__esModule",{value:!0});var MO=Cc(),plr=ru(),dlr=out(),mlr={message({keyword:o,schemaCode:s}){let f=o==="maxLength"?"more":"fewer";return(0,MO.str)`must NOT have ${f} than ${s} characters`},params:t(({schemaCode:o})=>(0,MO._)`{limit: ${o}}`,"params")},hlr={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:mlr,code(o){let{keyword:s,data:f,schemaCode:d,it:y}=o,x=s==="maxLength"?MO.operators.GT:MO.operators.LT,P=y.opts.unicode===!1?(0,MO._)`${f}.length`:(0,MO._)`${(0,plr.useFunc)(o.gen,dlr.default)}(${f})`;o.fail$data((0,MO._)`${P} ${x} ${d}`)}};CIe.default=hlr});var lut=or(kIe=>{"use strict";Object.defineProperty(kIe,"__esModule",{value:!0});var glr=gT(),xle=Cc(),ylr={message:t(({schemaCode:o})=>(0,xle.str)`must match pattern "${o}"`,"message"),params:t(({schemaCode:o})=>(0,xle._)`{pattern: ${o}}`,"params")},vlr={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:ylr,code(o){let{data:s,$data:f,schema:d,schemaCode:y,it:x}=o,P=x.opts.unicodeRegExp?"u":"",F=f?(0,xle._)`(new RegExp(${y}, ${P}))`:(0,glr.usePattern)(o,d);o.fail$data((0,xle._)`!${F}.test(${s})`)}};kIe.default=vlr});var uut=or(wIe=>{"use strict";Object.defineProperty(wIe,"__esModule",{value:!0});var JH=Cc(),blr={message({keyword:o,schemaCode:s}){let f=o==="maxProperties"?"more":"fewer";return(0,JH.str)`must NOT have ${f} than ${s} properties`},params:t(({schemaCode:o})=>(0,JH._)`{limit: ${o}}`,"params")},Slr={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:blr,code(o){let{keyword:s,data:f,schemaCode:d}=o,y=s==="maxProperties"?JH.operators.GT:JH.operators.LT;o.fail$data((0,JH._)`Object.keys(${f}).length ${y} ${d}`)}};wIe.default=Slr});var fut=or(DIe=>{"use strict";Object.defineProperty(DIe,"__esModule",{value:!0});var WH=gT(),qH=Cc(),Tlr=ru(),xlr={message:t(({params:{missingProperty:o}})=>(0,qH.str)`must have required property '${o}'`,"message"),params:t(({params:{missingProperty:o}})=>(0,qH._)`{missingProperty: ${o}}`,"params")},Elr={keyword:"required",type:"object",schemaType:"array",$data:!0,error:xlr,code(o){let{gen:s,schema:f,schemaCode:d,data:y,$data:x,it:P}=o,{opts:F}=P;if(!x&&f.length===0)return;let J=f.length>=F.loopRequired;if(P.allErrors?G():Se(),F.strictRequired){let Ke=o.parentSchema.properties,{definedProperties:$e}=o.it;for(let Fe of f)if(Ke?.[Fe]===void 0&&!$e.has(Fe)){let Gt=P.schemaEnv.baseId+P.errSchemaPath,jt=`required property "${Fe}" is not defined at "${Gt}" (strictRequired)`;(0,Tlr.checkStrictMode)(P,jt,P.opts.strictRequired)}}function G(){if(J||x)o.block$data(qH.nil,de);else for(let Ke of f)(0,WH.checkReportMissingProp)(o,Ke)}t(G,"allErrorsMode");function Se(){let Ke=s.let("missing");if(J||x){let $e=s.let("valid",!0);o.block$data($e,()=>ae(Ke,$e)),o.ok($e)}else s.if((0,WH.checkMissingProp)(o,f,Ke)),(0,WH.reportMissingProp)(o,Ke),s.else()}t(Se,"exitOnErrorMode");function de(){s.forOf("prop",d,Ke=>{o.setParams({missingProperty:Ke}),s.if((0,WH.noPropertyInData)(s,y,Ke,F.ownProperties),()=>o.error())})}t(de,"loopAllRequired");function ae(Ke,$e){o.setParams({missingProperty:Ke}),s.forOf(Ke,d,()=>{s.assign($e,(0,WH.propertyInData)(s,y,Ke,F.ownProperties)),s.if((0,qH.not)($e),()=>{o.error(),s.break()})},qH.nil)}t(ae,"loopUntilMissing")}};DIe.default=Elr});var _ut=or(PIe=>{"use strict";Object.defineProperty(PIe,"__esModule",{value:!0});var VH=Cc(),Clr={message({keyword:o,schemaCode:s}){let f=o==="maxItems"?"more":"fewer";return(0,VH.str)`must NOT have ${f} than ${s} items`},params:t(({schemaCode:o})=>(0,VH._)`{limit: ${o}}`,"params")},klr={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Clr,code(o){let{keyword:s,data:f,schemaCode:d}=o,y=s==="maxItems"?VH.operators.GT:VH.operators.LT;o.fail$data((0,VH._)`${f}.length ${y} ${d}`)}};PIe.default=klr});var Ele=or(AIe=>{"use strict";Object.defineProperty(AIe,"__esModule",{value:!0});var put=ZNe();put.code='require("ajv/dist/runtime/equal").default';AIe.default=put});var dut=or(IIe=>{"use strict";Object.defineProperty(IIe,"__esModule",{value:!0});var NIe=IH(),E0=Cc(),wlr=ru(),Dlr=Ele(),Plr={message:t(({params:{i:o,j:s}})=>(0,E0.str)`must NOT have duplicate items (items ## ${s} and ${o} are identical)`,"message"),params:t(({params:{i:o,j:s}})=>(0,E0._)`{i: ${o}, j: ${s}}`,"params")},Alr={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Plr,code(o){let{gen:s,data:f,$data:d,schema:y,parentSchema:x,schemaCode:P,it:F}=o;if(!d&&!y)return;let J=s.let("valid"),G=x.items?(0,NIe.getSchemaTypes)(x.items):[];o.block$data(J,Se,(0,E0._)`${P} === false`),o.ok(J);function Se(){let $e=s.let("i",(0,E0._)`${f}.length`),Fe=s.let("j");o.setParams({i:$e,j:Fe}),s.assign(J,!0),s.if((0,E0._)`${$e} > 1`,()=>(de()?ae:Ke)($e,Fe))}t(Se,"validateUniqueItems");function de(){return G.length>0&&!G.some($e=>$e==="object"||$e==="array")}t(de,"canOptimize");function ae($e,Fe){let Gt=s.name("item"),jt=(0,NIe.checkDataTypes)(G,Gt,F.opts.strictNumbers,NIe.DataType.Wrong),Pr=s.const("indices",(0,E0._)`{}`);s.for((0,E0._)`;${$e}--;`,()=>{s.let(Gt,(0,E0._)`${f}[${$e}]`),s.if(jt,(0,E0._)`continue`),G.length>1&&s.if((0,E0._)`typeof ${Gt} == "string"`,(0,E0._)`${Gt} += "_"`),s.if((0,E0._)`typeof ${Pr}[${Gt}] == "number"`,()=>{s.assign(Fe,(0,E0._)`${Pr}[${Gt}]`),o.error(),s.assign(J,!1).break()}).code((0,E0._)`${Pr}[${Gt}] = ${$e}`)})}t(ae,"loopN");function Ke($e,Fe){let Gt=(0,wlr.useFunc)(s,Dlr.default),jt=s.name("outer");s.label(jt).for((0,E0._)`;${$e}--;`,()=>s.for((0,E0._)`${Fe} = ${$e}; ${Fe}--;`,()=>s.if((0,E0._)`${Gt}(${f}[${$e}], ${f}[${Fe}])`,()=>{o.error(),s.assign(J,!1).break(jt)})))}t(Ke,"loopN2")}};IIe.default=Alr});var mut=or(FIe=>{"use strict";Object.defineProperty(FIe,"__esModule",{value:!0});var OIe=Cc(),Nlr=ru(),Ilr=Ele(),Olr={message:"must be equal to constant",params:t(({schemaCode:o})=>(0,OIe._)`{allowedValue: ${o}}`,"params")},Flr={keyword:"const",$data:!0,error:Olr,code(o){let{gen:s,data:f,$data:d,schemaCode:y,schema:x}=o;d||x&&typeof x=="object"?o.fail$data((0,OIe._)`!${(0,Nlr.useFunc)(s,Ilr.default)}(${f}, ${y})`):o.fail((0,OIe._)`${x} !== ${f}`)}};FIe.default=Flr});var hut=or(LIe=>{"use strict";Object.defineProperty(LIe,"__esModule",{value:!0});var HH=Cc(),Llr=ru(),Rlr=Ele(),Mlr={message:"must be equal to one of the allowed values",params:t(({schemaCode:o})=>(0,HH._)`{allowedValues: ${o}}`,"params")},jlr={keyword:"enum",schemaType:"array",$data:!0,error:Mlr,code(o){let{gen:s,data:f,$data:d,schema:y,schemaCode:x,it:P}=o;if(!d&&y.length===0)throw new Error("enum must have non-empty array");let F=y.length>=P.opts.loopEnum,J,G=t(()=>J??(J=(0,Llr.useFunc)(s,Rlr.default)),"getEql"),Se;if(F||d)Se=s.let("valid"),o.block$data(Se,de);else{if(!Array.isArray(y))throw new Error("ajv implementation error");let Ke=s.const("vSchema",x);Se=(0,HH.or)(...y.map(($e,Fe)=>ae(Ke,Fe)))}o.pass(Se);function de(){s.assign(Se,!1),s.forOf("v",x,Ke=>s.if((0,HH._)`${G()}(${f}, ${Ke})`,()=>s.assign(Se,!0).break()))}t(de,"loopEnum");function ae(Ke,$e){let Fe=y[$e];return typeof Fe=="object"&&Fe!==null?(0,HH._)`${G()}(${f}, ${Ke}[${$e}])`:(0,HH._)`${f} === ${Fe}`}t(ae,"equalCode")}};LIe.default=jlr});var MIe=or(RIe=>{"use strict";Object.defineProperty(RIe,"__esModule",{value:!0});var Blr=iut(),Ulr=sut(),zlr=cut(),$lr=lut(),Jlr=uut(),Wlr=fut(),qlr=_ut(),Vlr=dut(),Hlr=mut(),Glr=hut(),Ylr=[Blr.default,Ulr.default,zlr.default,$lr.default,Jlr.default,Wlr.default,qlr.default,Vlr.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Hlr.default,Glr.default];RIe.default=Ylr});var BIe=or(GH=>{"use strict";Object.defineProperty(GH,"__esModule",{value:!0});GH.validateAdditionalItems=void 0;var jO=Cc(),jIe=ru(),Klr={message:t(({params:{len:o}})=>(0,jO.str)`must NOT have more than ${o} items`,"message"),params:t(({params:{len:o}})=>(0,jO._)`{limit: ${o}}`,"params")},Xlr={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Klr,code(o){let{parentSchema:s,it:f}=o,{items:d}=s;if(!Array.isArray(d)){(0,jIe.checkStrictMode)(f,'"additionalItems" is ignored when "items" is not an array of schemas');return}gut(o,d)}};function gut(o,s){let{gen:f,schema:d,data:y,keyword:x,it:P}=o;P.items=!0;let F=f.const("len",(0,jO._)`${y}.length`);if(d===!1)o.setParams({len:s.length}),o.pass((0,jO._)`${F} <= ${s.length}`);else if(typeof d=="object"&&!(0,jIe.alwaysValidSchema)(P,d)){let G=f.var("valid",(0,jO._)`${F} <= ${s.length}`);f.if((0,jO.not)(G),()=>J(G)),o.ok(G)}function J(G){f.forRange("i",s.length,F,Se=>{o.subschema({keyword:x,dataProp:Se,dataPropType:jIe.Type.Num},G),P.allErrors||f.if((0,jO.not)(G),()=>f.break())})}t(J,"validateItems")}t(gut,"validateAdditionalItems");GH.validateAdditionalItems=gut;GH.default=Xlr});var UIe=or(YH=>{"use strict";Object.defineProperty(YH,"__esModule",{value:!0});YH.validateTuple=void 0;var yut=Cc(),Cle=ru(),Zlr=gT(),Qlr={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(o){let{schema:s,it:f}=o;if(Array.isArray(s))return vut(o,"additionalItems",s);f.items=!0,!(0,Cle.alwaysValidSchema)(f,s)&&o.ok((0,Zlr.validateArray)(o))}};function vut(o,s,f=o.schema){let{gen:d,parentSchema:y,data:x,keyword:P,it:F}=o;Se(y),F.opts.unevaluated&&f.length&&F.items!==!0&&(F.items=Cle.mergeEvaluated.items(d,f.length,F.items));let J=d.name("valid"),G=d.const("len",(0,yut._)`${x}.length`);f.forEach((de,ae)=>{(0,Cle.alwaysValidSchema)(F,de)||(d.if((0,yut._)`${G} > ${ae}`,()=>o.subschema({keyword:P,schemaProp:ae,dataProp:ae},J)),o.ok(J))});function Se(de){let{opts:ae,errSchemaPath:Ke}=F,$e=f.length,Fe=$e===de.minItems&&($e===de.maxItems||de[s]===!1);if(ae.strictTuples&&!Fe){let Gt=`"${P}" is ${$e}-tuple, but minItems or maxItems/${s} are not specified or different at path "${Ke}"`;(0,Cle.checkStrictMode)(F,Gt,ae.strictTuples)}}t(Se,"checkStrictTuple")}t(vut,"validateTuple");YH.validateTuple=vut;YH.default=Qlr});var but=or(zIe=>{"use strict";Object.defineProperty(zIe,"__esModule",{value:!0});var eur=UIe(),tur={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t(o=>(0,eur.validateTuple)(o,"items"),"code")};zIe.default=tur});var Tut=or($Ie=>{"use strict";Object.defineProperty($Ie,"__esModule",{value:!0});var Sut=Cc(),rur=ru(),nur=gT(),iur=BIe(),sur={message:t(({params:{len:o}})=>(0,Sut.str)`must NOT have more than ${o} items`,"message"),params:t(({params:{len:o}})=>(0,Sut._)`{limit: ${o}}`,"params")},aur={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:sur,code(o){let{schema:s,parentSchema:f,it:d}=o,{prefixItems:y}=f;d.items=!0,!(0,rur.alwaysValidSchema)(d,s)&&(y?(0,iur.validateAdditionalItems)(o,y):o.ok((0,nur.validateArray)(o)))}};$Ie.default=aur});var xut=or(JIe=>{"use strict";Object.defineProperty(JIe,"__esModule",{value:!0});var vT=Cc(),kle=ru(),our={message:t(({params:{min:o,max:s}})=>s===void 0?(0,vT.str)`must contain at least ${o} valid item(s)`:(0,vT.str)`must contain at least ${o} and no more than ${s} valid item(s)`,"message"),params:t(({params:{min:o,max:s}})=>s===void 0?(0,vT._)`{minContains: ${o}}`:(0,vT._)`{minContains: ${o}, maxContains: ${s}}`,"params")},cur={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:our,code(o){let{gen:s,schema:f,parentSchema:d,data:y,it:x}=o,P,F,{minContains:J,maxContains:G}=d;x.opts.next?(P=J===void 0?1:J,F=G):P=1;let Se=s.const("len",(0,vT._)`${y}.length`);if(o.setParams({min:P,max:F}),F===void 0&&P===0){(0,kle.checkStrictMode)(x,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(F!==void 0&&P>F){(0,kle.checkStrictMode)(x,'"minContains" > "maxContains" is always invalid'),o.fail();return}if((0,kle.alwaysValidSchema)(x,f)){let Fe=(0,vT._)`${Se} >= ${P}`;F!==void 0&&(Fe=(0,vT._)`${Fe} && ${Se} <= ${F}`),o.pass(Fe);return}x.items=!0;let de=s.name("valid");F===void 0&&P===1?Ke(de,()=>s.if(de,()=>s.break())):P===0?(s.let(de,!0),F!==void 0&&s.if((0,vT._)`${y}.length > 0`,ae)):(s.let(de,!1),ae()),o.result(de,()=>o.reset());function ae(){let Fe=s.name("_valid"),Gt=s.let("count",0);Ke(Fe,()=>s.if(Fe,()=>$e(Gt)))}t(ae,"validateItemsWithCount");function Ke(Fe,Gt){s.forRange("i",0,Se,jt=>{o.subschema({keyword:"contains",dataProp:jt,dataPropType:kle.Type.Num,compositeRule:!0},Fe),Gt()})}t(Ke,"validateItems");function $e(Fe){s.code((0,vT._)`${Fe}++`),F===void 0?s.if((0,vT._)`${Fe} >= ${P}`,()=>s.assign(de,!0).break()):(s.if((0,vT._)`${Fe} > ${F}`,()=>s.assign(de,!1).break()),P===1?s.assign(de,!0):s.if((0,vT._)`${Fe} >= ${P}`,()=>s.assign(de,!0)))}t($e,"checkLimits")}};JIe.default=cur});var wle=or($k=>{"use strict";Object.defineProperty($k,"__esModule",{value:!0});$k.validateSchemaDeps=$k.validatePropertyDeps=$k.error=void 0;var WIe=Cc(),lur=ru(),KH=gT();$k.error={message:t(({params:{property:o,depsCount:s,deps:f}})=>{let d=s===1?"property":"properties";return(0,WIe.str)`must have ${d} ${f} when property ${o} is present`},"message"),params:t(({params:{property:o,depsCount:s,deps:f,missingProperty:d}})=>(0,WIe._)`{property: ${o},
|
|
63
|
+
|| ${P} === "boolean" || ${y} === null`).assign(F,(0,hl._)`[${y}]`)}}t(J,"coerceSpecificType")}t(Rtr,"coerceData");function Mtr({gen:o,parentData:s,parentDataProperty:f},d){o.if((0,hl._)`${s} !== undefined`,()=>o.assign((0,hl._)`${s}[${f}]`,d))}t(Mtr,"assignParentData");function C6e(o,s,f,d=_M.Correct){let y=d===_M.Correct?hl.operators.EQ:hl.operators.NEQ,x;switch(o){case"null":return(0,hl._)`${s} ${y} null`;case"array":x=(0,hl._)`Array.isArray(${s})`;break;case"object":x=(0,hl._)`${s} && typeof ${s} == "object" && !Array.isArray(${s})`;break;case"integer":x=P((0,hl._)`!(${s} % 1) && !isNaN(${s})`);break;case"number":x=P();break;default:return(0,hl._)`typeof ${s} ${y} ${o}`}return d===_M.Correct?x:(0,hl.not)(x);function P(F=hl.nil){return(0,hl.and)((0,hl._)`typeof ${s} == "number"`,F,f?(0,hl._)`isFinite(${s})`:hl.nil)}}t(C6e,"checkDataType");Dy.checkDataType=C6e;function k6e(o,s,f,d){if(o.length===1)return C6e(o[0],s,f,d);let y,x=(0,mat.toHash)(o);if(x.array&&x.object){let P=(0,hl._)`typeof ${s} != "object"`;y=x.null?P:(0,hl._)`!${s} || ${P}`,delete x.null,delete x.array,delete x.object}else y=hl.nil;x.number&&delete x.integer;for(let P in x)y=(0,hl.and)(y,C6e(P,s,f,d));return y}t(k6e,"checkDataTypes");Dy.checkDataTypes=k6e;var jtr={message:t(({schema:o})=>`must be ${o}`,"message"),params:t(({schema:o,schemaValue:s})=>typeof o=="string"?(0,hl._)`{type: ${o}}`:(0,hl._)`{type: ${s}}`,"params")};function w6e(o){let s=Btr(o);(0,Itr.reportError)(s,jtr)}t(w6e,"reportTypeError");Dy.reportTypeError=w6e;function Btr(o){let{gen:s,data:f,schema:d}=o,y=(0,mat.schemaRefOrVal)(o,d,"type");return{gen:s,keyword:"type",data:f,schema:d.type,schemaCode:y,schemaValue:y,parentSchema:d,params:{},it:o}}t(Btr,"getTypeErrorContext")});var vat=or(Lce=>{"use strict";Object.defineProperty(Lce,"__esModule",{value:!0});Lce.assignDefaults=void 0;var pM=Cc(),Utr=ru();function ztr(o,s){let{properties:f,items:d}=o.schema;if(s==="object"&&f)for(let y in f)yat(o,y,f[y].default);else s==="array"&&Array.isArray(d)&&d.forEach((y,x)=>yat(o,x,y.default))}t(ztr,"assignDefaults");Lce.assignDefaults=ztr;function yat(o,s,f){let{gen:d,compositeRule:y,data:x,opts:P}=o;if(f===void 0)return;let F=(0,pM._)`${x}${(0,pM.getProperty)(s)}`;if(y){(0,Utr.checkStrictMode)(o,`default is ignored for: ${F}`);return}let J=(0,pM._)`${F} === undefined`;P.useDefaults==="empty"&&(J=(0,pM._)`${J} || ${F} === null || ${F} === ""`),d.if(J,(0,pM._)`${F} = ${(0,pM.stringify)(f)}`)}t(yat,"assignDefault")});var pT=or(v_=>{"use strict";Object.defineProperty(v_,"__esModule",{value:!0});v_.validateUnion=v_.validateArray=v_.usePattern=v_.callValidateCode=v_.schemaProperties=v_.allSchemaProperties=v_.noPropertyInData=v_.propertyInData=v_.isOwnProperty=v_.hasPropFunc=v_.reportMissingProp=v_.checkMissingProp=v_.checkReportMissingProp=void 0;var Dp=Cc(),D6e=ru(),iI=_T(),$tr=ru();function Jtr(o,s){let{gen:f,data:d,it:y}=o;f.if(A6e(f,d,s,y.opts.ownProperties),()=>{o.setParams({missingProperty:(0,Dp._)`${s}`},!0),o.error()})}t(Jtr,"checkReportMissingProp");v_.checkReportMissingProp=Jtr;function Wtr({gen:o,data:s,it:{opts:f}},d,y){return(0,Dp.or)(...d.map(x=>(0,Dp.and)(A6e(o,s,x,f.ownProperties),(0,Dp._)`${y} = ${x}`)))}t(Wtr,"checkMissingProp");v_.checkMissingProp=Wtr;function qtr(o,s){o.setParams({missingProperty:s},!0),o.error()}t(qtr,"reportMissingProp");v_.reportMissingProp=qtr;function bat(o){return o.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Dp._)`Object.prototype.hasOwnProperty`})}t(bat,"hasPropFunc");v_.hasPropFunc=bat;function P6e(o,s,f){return(0,Dp._)`${bat(o)}.call(${s}, ${f})`}t(P6e,"isOwnProperty");v_.isOwnProperty=P6e;function Vtr(o,s,f,d){let y=(0,Dp._)`${s}${(0,Dp.getProperty)(f)} !== undefined`;return d?(0,Dp._)`${y} && ${P6e(o,s,f)}`:y}t(Vtr,"propertyInData");v_.propertyInData=Vtr;function A6e(o,s,f,d){let y=(0,Dp._)`${s}${(0,Dp.getProperty)(f)} === undefined`;return d?(0,Dp.or)(y,(0,Dp.not)(P6e(o,s,f))):y}t(A6e,"noPropertyInData");v_.noPropertyInData=A6e;function Sat(o){return o?Object.keys(o).filter(s=>s!=="__proto__"):[]}t(Sat,"allSchemaProperties");v_.allSchemaProperties=Sat;function Htr(o,s){return Sat(s).filter(f=>!(0,D6e.alwaysValidSchema)(o,s[f]))}t(Htr,"schemaProperties");v_.schemaProperties=Htr;function Gtr({schemaCode:o,data:s,it:{gen:f,topSchemaRef:d,schemaPath:y,errorPath:x},it:P},F,J,G){let Se=G?(0,Dp._)`${o}, ${s}, ${d}${y}`:s,de=[[iI.default.instancePath,(0,Dp.strConcat)(iI.default.instancePath,x)],[iI.default.parentData,P.parentData],[iI.default.parentDataProperty,P.parentDataProperty],[iI.default.rootData,iI.default.rootData]];P.opts.dynamicRef&&de.push([iI.default.dynamicAnchors,iI.default.dynamicAnchors]);let ae=(0,Dp._)`${Se}, ${f.object(...de)}`;return J!==Dp.nil?(0,Dp._)`${F}.call(${J}, ${ae})`:(0,Dp._)`${F}(${ae})`}t(Gtr,"callValidateCode");v_.callValidateCode=Gtr;var Ytr=(0,Dp._)`new RegExp`;function Ktr({gen:o,it:{opts:s}},f){let d=s.unicodeRegExp?"u":"",{regExp:y}=s.code,x=y(f,d);return o.scopeValue("pattern",{key:x.toString(),ref:x,code:(0,Dp._)`${y.code==="new RegExp"?Ytr:(0,$tr.useFunc)(o,y)}(${f}, ${d})`})}t(Ktr,"usePattern");v_.usePattern=Ktr;function Xtr(o){let{gen:s,data:f,keyword:d,it:y}=o,x=s.name("valid");if(y.allErrors){let F=s.let("valid",!0);return P(()=>s.assign(F,!1)),F}return s.var(x,!0),P(()=>s.break()),x;function P(F){let J=s.const("len",(0,Dp._)`${f}.length`);s.forRange("i",0,J,G=>{o.subschema({keyword:d,dataProp:G,dataPropType:D6e.Type.Num},x),s.if((0,Dp.not)(x),F)})}t(P,"validateItems")}t(Xtr,"validateArray");v_.validateArray=Xtr;function Ztr(o){let{gen:s,schema:f,keyword:d,it:y}=o;if(!Array.isArray(f))throw new Error("ajv implementation error");if(f.some(J=>(0,D6e.alwaysValidSchema)(y,J))&&!y.opts.unevaluated)return;let P=s.let("valid",!1),F=s.name("_valid");s.block(()=>f.forEach((J,G)=>{let Se=o.subschema({keyword:d,schemaProp:G,compositeRule:!0},F);s.assign(P,(0,Dp._)`${P} || ${F}`),o.mergeValidEvaluated(Se,F)||s.if((0,Dp.not)(P))})),o.result(P,()=>o.reset(),()=>o.error(!0))}t(Ztr,"validateUnion");v_.validateUnion=Ztr});var Eat=or(Fk=>{"use strict";Object.defineProperty(Fk,"__esModule",{value:!0});Fk.validateKeywordUsage=Fk.validSchemaType=Fk.funcKeywordCode=Fk.macroKeywordCode=void 0;var L1=Cc(),CO=_T(),Qtr=pT(),err=dH();function trr(o,s){let{gen:f,keyword:d,schema:y,parentSchema:x,it:P}=o,F=s.macro.call(P.self,y,x,P),J=xat(f,d,F);P.opts.validateSchema!==!1&&P.self.validateSchema(F,!0);let G=f.name("valid");o.subschema({schema:F,schemaPath:L1.nil,errSchemaPath:`${P.errSchemaPath}/${d}`,topSchemaRef:J,compositeRule:!0},G),o.pass(G,()=>o.error(!0))}t(trr,"macroKeywordCode");Fk.macroKeywordCode=trr;function rrr(o,s){var f;let{gen:d,keyword:y,schema:x,parentSchema:P,$data:F,it:J}=o;irr(J,s);let G=!F&&s.compile?s.compile.call(J.self,x,P,J):s.validate,Se=xat(d,y,G),de=d.let("valid");o.block$data(de,ae),o.ok((f=s.valid)!==null&&f!==void 0?f:de);function ae(){if(s.errors===!1)Fe(),s.modifying&&Tat(o),Gt(()=>o.error());else{let jt=s.async?Ke():$e();s.modifying&&Tat(o),Gt(()=>nrr(o,jt))}}t(ae,"validateKeyword");function Ke(){let jt=d.let("ruleErrs",null);return d.try(()=>Fe((0,L1._)`await `),Pr=>d.assign(de,!1).if((0,L1._)`${Pr} instanceof ${J.ValidationError}`,()=>d.assign(jt,(0,L1._)`${Pr}.errors`),()=>d.throw(Pr))),jt}t(Ke,"validateAsync");function $e(){let jt=(0,L1._)`${Se}.errors`;return d.assign(jt,null),Fe(L1.nil),jt}t($e,"validateSync");function Fe(jt=s.async?(0,L1._)`await `:L1.nil){let Pr=J.opts.passContext?CO.default.this:CO.default.self,Fn=!("compile"in s&&!F||s.schema===!1);d.assign(de,(0,L1._)`${jt}${(0,Qtr.callValidateCode)(o,Se,Pr,Fn)}`,s.modifying)}t(Fe,"assignValid");function Gt(jt){var Pr;d.if((0,L1.not)((Pr=s.valid)!==null&&Pr!==void 0?Pr:de),jt)}t(Gt,"reportErrs")}t(rrr,"funcKeywordCode");Fk.funcKeywordCode=rrr;function Tat(o){let{gen:s,data:f,it:d}=o;s.if(d.parentData,()=>s.assign(f,(0,L1._)`${d.parentData}[${d.parentDataProperty}]`))}t(Tat,"modifyData");function nrr(o,s){let{gen:f}=o;f.if((0,L1._)`Array.isArray(${s})`,()=>{f.assign(CO.default.vErrors,(0,L1._)`${CO.default.vErrors} === null ? ${s} : ${CO.default.vErrors}.concat(${s})`).assign(CO.default.errors,(0,L1._)`${CO.default.vErrors}.length`),(0,err.extendErrors)(o)},()=>o.error())}t(nrr,"addErrs");function irr({schemaEnv:o},s){if(s.async&&!o.$async)throw new Error("async keyword in sync schema")}t(irr,"checkAsyncKeyword");function xat(o,s,f){if(f===void 0)throw new Error(`keyword "${s}" failed to compile`);return o.scopeValue("keyword",typeof f=="function"?{ref:f}:{ref:f,code:(0,L1.stringify)(f)})}t(xat,"useKeyword");function srr(o,s,f=!1){return!s.length||s.some(d=>d==="array"?Array.isArray(o):d==="object"?o&&typeof o=="object"&&!Array.isArray(o):typeof o==d||f&&typeof o>"u")}t(srr,"validSchemaType");Fk.validSchemaType=srr;function arr({schema:o,opts:s,self:f,errSchemaPath:d},y,x){if(Array.isArray(y.keyword)?!y.keyword.includes(x):y.keyword!==x)throw new Error("ajv implementation error");let P=y.dependencies;if(P?.some(F=>!Object.prototype.hasOwnProperty.call(o,F)))throw new Error(`parent schema must have dependencies of ${x}: ${P.join(",")}`);if(y.validateSchema&&!y.validateSchema(o[x])){let J=`keyword "${x}" value is invalid at path "${d}": `+f.errorsText(y.validateSchema.errors);if(s.validateSchema==="log")f.logger.error(J);else throw new Error(J)}}t(arr,"validateKeywordUsage");Fk.validateKeywordUsage=arr});var kat=or(sI=>{"use strict";Object.defineProperty(sI,"__esModule",{value:!0});sI.extendSubschemaMode=sI.extendSubschemaData=sI.getSubschema=void 0;var Lk=Cc(),Cat=ru();function orr(o,{keyword:s,schemaProp:f,schema:d,schemaPath:y,errSchemaPath:x,topSchemaRef:P}){if(s!==void 0&&d!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(s!==void 0){let F=o.schema[s];return f===void 0?{schema:F,schemaPath:(0,Lk._)`${o.schemaPath}${(0,Lk.getProperty)(s)}`,errSchemaPath:`${o.errSchemaPath}/${s}`}:{schema:F[f],schemaPath:(0,Lk._)`${o.schemaPath}${(0,Lk.getProperty)(s)}${(0,Lk.getProperty)(f)}`,errSchemaPath:`${o.errSchemaPath}/${s}/${(0,Cat.escapeFragment)(f)}`}}if(d!==void 0){if(y===void 0||x===void 0||P===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:d,schemaPath:y,topSchemaRef:P,errSchemaPath:x}}throw new Error('either "keyword" or "schema" must be passed')}t(orr,"getSubschema");sI.getSubschema=orr;function crr(o,s,{dataProp:f,dataPropType:d,data:y,dataTypes:x,propertyName:P}){if(y!==void 0&&f!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:F}=s;if(f!==void 0){let{errorPath:G,dataPathArr:Se,opts:de}=s,ae=F.let("data",(0,Lk._)`${s.data}${(0,Lk.getProperty)(f)}`,!0);J(ae),o.errorPath=(0,Lk.str)`${G}${(0,Cat.getErrorPath)(f,d,de.jsPropertySyntax)}`,o.parentDataProperty=(0,Lk._)`${f}`,o.dataPathArr=[...Se,o.parentDataProperty]}if(y!==void 0){let G=y instanceof Lk.Name?y:F.let("data",y,!0);J(G),P!==void 0&&(o.propertyName=P)}x&&(o.dataTypes=x);function J(G){o.data=G,o.dataLevel=s.dataLevel+1,o.dataTypes=[],s.definedProperties=new Set,o.parentData=s.data,o.dataNames=[...s.dataNames,G]}t(J,"dataContextProps")}t(crr,"extendSubschemaData");sI.extendSubschemaData=crr;function lrr(o,{jtdDiscriminator:s,jtdMetadata:f,compositeRule:d,createErrors:y,allErrors:x}){d!==void 0&&(o.compositeRule=d),y!==void 0&&(o.createErrors=y),x!==void 0&&(o.allErrors=x),o.jtdDiscriminator=s,o.jtdMetadata=f}t(lrr,"extendSubschemaMode");sI.extendSubschemaMode=lrr});var N6e=or(($Dr,wat)=>{"use strict";wat.exports=t(function o(s,f){if(s===f)return!0;if(s&&f&&typeof s=="object"&&typeof f=="object"){if(s.constructor!==f.constructor)return!1;var d,y,x;if(Array.isArray(s)){if(d=s.length,d!=f.length)return!1;for(y=d;y--!==0;)if(!o(s[y],f[y]))return!1;return!0}if(s.constructor===RegExp)return s.source===f.source&&s.flags===f.flags;if(s.valueOf!==Object.prototype.valueOf)return s.valueOf()===f.valueOf();if(s.toString!==Object.prototype.toString)return s.toString()===f.toString();if(x=Object.keys(s),d=x.length,d!==Object.keys(f).length)return!1;for(y=d;y--!==0;)if(!Object.prototype.hasOwnProperty.call(f,x[y]))return!1;for(y=d;y--!==0;){var P=x[y];if(!o(s[P],f[P]))return!1}return!0}return s!==s&&f!==f},"equal")});var Pat=or((WDr,Dat)=>{"use strict";var aI=Dat.exports=function(o,s,f){typeof s=="function"&&(f=s,s={}),f=s.cb||f;var d=typeof f=="function"?f:f.pre||function(){},y=f.post||function(){};Rce(s,d,y,o,"",o)};aI.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};aI.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};aI.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};aI.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Rce(o,s,f,d,y,x,P,F,J,G){if(d&&typeof d=="object"&&!Array.isArray(d)){s(d,y,x,P,F,J,G);for(var Se in d){var de=d[Se];if(Array.isArray(de)){if(Se in aI.arrayKeywords)for(var ae=0;ae<de.length;ae++)Rce(o,s,f,de[ae],y+"/"+Se+"/"+ae,x,y,Se,d,ae)}else if(Se in aI.propsKeywords){if(de&&typeof de=="object")for(var Ke in de)Rce(o,s,f,de[Ke],y+"/"+Se+"/"+urr(Ke),x,y,Se,d,Ke)}else(Se in aI.keywords||o.allKeys&&!(Se in aI.skipKeywords))&&Rce(o,s,f,de,y+"/"+Se,x,y,Se,d)}f(d,y,x,P,F,J,G)}}t(Rce,"_traverse");function urr(o){return o.replace(/~/g,"~0").replace(/\//g,"~1")}t(urr,"escapeJsonPtr")});var hH=or(Kv=>{"use strict";Object.defineProperty(Kv,"__esModule",{value:!0});Kv.getSchemaRefs=Kv.resolveUrl=Kv.normalizeId=Kv._getFullPath=Kv.getFullPath=Kv.inlineRef=void 0;var frr=ru(),_rr=N6e(),prr=Pat(),drr=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function mrr(o,s=!0){return typeof o=="boolean"?!0:s===!0?!I6e(o):s?Aat(o)<=s:!1}t(mrr,"inlineRef");Kv.inlineRef=mrr;var hrr=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function I6e(o){for(let s in o){if(hrr.has(s))return!0;let f=o[s];if(Array.isArray(f)&&f.some(I6e)||typeof f=="object"&&I6e(f))return!0}return!1}t(I6e,"hasRef");function Aat(o){let s=0;for(let f in o){if(f==="$ref")return 1/0;if(s++,!drr.has(f)&&(typeof o[f]=="object"&&(0,frr.eachItem)(o[f],d=>s+=Aat(d)),s===1/0))return 1/0}return s}t(Aat,"countKeys");function Nat(o,s="",f){f!==!1&&(s=dM(s));let d=o.parse(s);return Iat(o,d)}t(Nat,"getFullPath");Kv.getFullPath=Nat;function Iat(o,s){return o.serialize(s).split("#")[0]+"#"}t(Iat,"_getFullPath");Kv._getFullPath=Iat;var grr=/#\/?$/;function dM(o){return o?o.replace(grr,""):""}t(dM,"normalizeId");Kv.normalizeId=dM;function yrr(o,s,f){return f=dM(f),o.resolve(s,f)}t(yrr,"resolveUrl");Kv.resolveUrl=yrr;var vrr=/^[a-z_][-a-z0-9._]*$/i;function brr(o,s){if(typeof o=="boolean")return{};let{schemaId:f,uriResolver:d}=this.opts,y=dM(o[f]||s),x={"":y},P=Nat(d,y,!1),F={},J=new Set;return prr(o,{allKeys:!0},(de,ae,Ke,$e)=>{if($e===void 0)return;let Fe=P+ae,Gt=x[$e];typeof de[f]=="string"&&(Gt=jt.call(this,de[f])),Pr.call(this,de.$anchor),Pr.call(this,de.$dynamicAnchor),x[ae]=Gt;function jt(Fn){let sn=this.opts.uriResolver.resolve;if(Fn=dM(Gt?sn(Gt,Fn):Fn),J.has(Fn))throw Se(Fn);J.add(Fn);let Un=this.refs[Fn];return typeof Un=="string"&&(Un=this.refs[Un]),typeof Un=="object"?G(de,Un.schema,Fn):Fn!==dM(Fe)&&(Fn[0]==="#"?(G(de,F[Fn],Fn),F[Fn]=de):this.refs[Fn]=Fe),Fn}t(jt,"addRef");function Pr(Fn){if(typeof Fn=="string"){if(!vrr.test(Fn))throw new Error(`invalid anchor "${Fn}"`);jt.call(this,`#${Fn}`)}}t(Pr,"addAnchor")}),F;function G(de,ae,Ke){if(ae!==void 0&&!_rr(de,ae))throw Se(Ke)}t(G,"checkAmbiguosRef");function Se(de){return new Error(`reference "${de}" resolves to more than one schema`)}t(Se,"ambiguos")}t(brr,"getSchemaRefs");Kv.getSchemaRefs=brr});var mM=or(oI=>{"use strict";Object.defineProperty(oI,"__esModule",{value:!0});oI.getData=oI.KeywordCxt=oI.validateFunctionCode=void 0;var Mat=_at(),Oat=mH(),F6e=E6e(),Mce=mH(),Srr=vat(),yH=Eat(),O6e=kat(),xo=Cc(),Ic=_T(),Trr=hH(),KP=ru(),gH=dH();function xrr(o){if(Uat(o)&&(zat(o),Bat(o))){krr(o);return}jat(o,()=>(0,Mat.topBoolOrEmptySchema)(o))}t(xrr,"validateFunctionCode");oI.validateFunctionCode=xrr;function jat({gen:o,validateName:s,schema:f,schemaEnv:d,opts:y},x){y.code.es5?o.func(s,(0,xo._)`${Ic.default.data}, ${Ic.default.valCxt}`,d.$async,()=>{o.code((0,xo._)`"use strict"; ${Fat(f,y)}`),Crr(o,y),o.code(x)}):o.func(s,(0,xo._)`${Ic.default.data}, ${Err(y)}`,d.$async,()=>o.code(Fat(f,y)).code(x))}t(jat,"validateFunction");function Err(o){return(0,xo._)`{${Ic.default.instancePath}="", ${Ic.default.parentData}, ${Ic.default.parentDataProperty}, ${Ic.default.rootData}=${Ic.default.data}${o.dynamicRef?(0,xo._)`, ${Ic.default.dynamicAnchors}={}`:xo.nil}}={}`}t(Err,"destructureValCxt");function Crr(o,s){o.if(Ic.default.valCxt,()=>{o.var(Ic.default.instancePath,(0,xo._)`${Ic.default.valCxt}.${Ic.default.instancePath}`),o.var(Ic.default.parentData,(0,xo._)`${Ic.default.valCxt}.${Ic.default.parentData}`),o.var(Ic.default.parentDataProperty,(0,xo._)`${Ic.default.valCxt}.${Ic.default.parentDataProperty}`),o.var(Ic.default.rootData,(0,xo._)`${Ic.default.valCxt}.${Ic.default.rootData}`),s.dynamicRef&&o.var(Ic.default.dynamicAnchors,(0,xo._)`${Ic.default.valCxt}.${Ic.default.dynamicAnchors}`)},()=>{o.var(Ic.default.instancePath,(0,xo._)`""`),o.var(Ic.default.parentData,(0,xo._)`undefined`),o.var(Ic.default.parentDataProperty,(0,xo._)`undefined`),o.var(Ic.default.rootData,Ic.default.data),s.dynamicRef&&o.var(Ic.default.dynamicAnchors,(0,xo._)`{}`)})}t(Crr,"destructureValCxtES5");function krr(o){let{schema:s,opts:f,gen:d}=o;jat(o,()=>{f.$comment&&s.$comment&&Jat(o),Nrr(o),d.let(Ic.default.vErrors,null),d.let(Ic.default.errors,0),f.unevaluated&&wrr(o),$at(o),Frr(o)})}t(krr,"topSchemaObjCode");function wrr(o){let{gen:s,validateName:f}=o;o.evaluated=s.const("evaluated",(0,xo._)`${f}.evaluated`),s.if((0,xo._)`${o.evaluated}.dynamicProps`,()=>s.assign((0,xo._)`${o.evaluated}.props`,(0,xo._)`undefined`)),s.if((0,xo._)`${o.evaluated}.dynamicItems`,()=>s.assign((0,xo._)`${o.evaluated}.items`,(0,xo._)`undefined`))}t(wrr,"resetEvaluated");function Fat(o,s){let f=typeof o=="object"&&o[s.schemaId];return f&&(s.code.source||s.code.process)?(0,xo._)`/*# sourceURL=${f} */`:xo.nil}t(Fat,"funcSourceUrl");function Drr(o,s){if(Uat(o)&&(zat(o),Bat(o))){Prr(o,s);return}(0,Mat.boolOrEmptySchema)(o,s)}t(Drr,"subschemaCode");function Bat({schema:o,self:s}){if(typeof o=="boolean")return!o;for(let f in o)if(s.RULES.all[f])return!0;return!1}t(Bat,"schemaCxtHasRules");function Uat(o){return typeof o.schema!="boolean"}t(Uat,"isSchemaObj");function Prr(o,s){let{schema:f,gen:d,opts:y}=o;y.$comment&&f.$comment&&Jat(o),Irr(o),Orr(o);let x=d.const("_errs",Ic.default.errors);$at(o,x),d.var(s,(0,xo._)`${x} === ${Ic.default.errors}`)}t(Prr,"subSchemaObjCode");function zat(o){(0,KP.checkUnknownRules)(o),Arr(o)}t(zat,"checkKeywords");function $at(o,s){if(o.opts.jtd)return Lat(o,[],!1,s);let f=(0,Oat.getSchemaTypes)(o.schema),d=(0,Oat.coerceAndCheckDataType)(o,f);Lat(o,f,!d,s)}t($at,"typeAndKeywords");function Arr(o){let{schema:s,errSchemaPath:f,opts:d,self:y}=o;s.$ref&&d.ignoreKeywordsWithRef&&(0,KP.schemaHasRulesButRef)(s,y.RULES)&&y.logger.warn(`$ref: keywords ignored in schema at path "${f}"`)}t(Arr,"checkRefsAndKeywords");function Nrr(o){let{schema:s,opts:f}=o;s.default!==void 0&&f.useDefaults&&f.strictSchema&&(0,KP.checkStrictMode)(o,"default is ignored in the schema root")}t(Nrr,"checkNoDefault");function Irr(o){let s=o.schema[o.opts.schemaId];s&&(o.baseId=(0,Trr.resolveUrl)(o.opts.uriResolver,o.baseId,s))}t(Irr,"updateContext");function Orr(o){if(o.schema.$async&&!o.schemaEnv.$async)throw new Error("async schema in sync schema")}t(Orr,"checkAsyncSchema");function Jat({gen:o,schemaEnv:s,schema:f,errSchemaPath:d,opts:y}){let x=f.$comment;if(y.$comment===!0)o.code((0,xo._)`${Ic.default.self}.logger.log(${x})`);else if(typeof y.$comment=="function"){let P=(0,xo.str)`${d}/$comment`,F=o.scopeValue("root",{ref:s.root});o.code((0,xo._)`${Ic.default.self}.opts.$comment(${x}, ${P}, ${F}.schema)`)}}t(Jat,"commentKeyword");function Frr(o){let{gen:s,schemaEnv:f,validateName:d,ValidationError:y,opts:x}=o;f.$async?s.if((0,xo._)`${Ic.default.errors} === 0`,()=>s.return(Ic.default.data),()=>s.throw((0,xo._)`new ${y}(${Ic.default.vErrors})`)):(s.assign((0,xo._)`${d}.errors`,Ic.default.vErrors),x.unevaluated&&Lrr(o),s.return((0,xo._)`${Ic.default.errors} === 0`))}t(Frr,"returnResults");function Lrr({gen:o,evaluated:s,props:f,items:d}){f instanceof xo.Name&&o.assign((0,xo._)`${s}.props`,f),d instanceof xo.Name&&o.assign((0,xo._)`${s}.items`,d)}t(Lrr,"assignEvaluated");function Lat(o,s,f,d){let{gen:y,schema:x,data:P,allErrors:F,opts:J,self:G}=o,{RULES:Se}=G;if(x.$ref&&(J.ignoreKeywordsWithRef||!(0,KP.schemaHasRulesButRef)(x,Se))){y.block(()=>qat(o,"$ref",Se.all.$ref.definition));return}J.jtd||Rrr(o,s),y.block(()=>{for(let ae of Se.rules)de(ae);de(Se.post)});function de(ae){(0,F6e.shouldUseGroup)(x,ae)&&(ae.type?(y.if((0,Mce.checkDataType)(ae.type,P,J.strictNumbers)),Rat(o,ae),s.length===1&&s[0]===ae.type&&f&&(y.else(),(0,Mce.reportTypeError)(o)),y.endIf()):Rat(o,ae),F||y.if((0,xo._)`${Ic.default.errors} === ${d||0}`))}t(de,"groupKeywords")}t(Lat,"schemaKeywords");function Rat(o,s){let{gen:f,schema:d,opts:{useDefaults:y}}=o;y&&(0,Srr.assignDefaults)(o,s.type),f.block(()=>{for(let x of s.rules)(0,F6e.shouldUseRule)(d,x)&&qat(o,x.keyword,x.definition,s.type)})}t(Rat,"iterateKeywords");function Rrr(o,s){o.schemaEnv.meta||!o.opts.strictTypes||(Mrr(o,s),o.opts.allowUnionTypes||jrr(o,s),Brr(o,o.dataTypes))}t(Rrr,"checkStrictTypes");function Mrr(o,s){if(s.length){if(!o.dataTypes.length){o.dataTypes=s;return}s.forEach(f=>{Wat(o.dataTypes,f)||L6e(o,`type "${f}" not allowed by context "${o.dataTypes.join(",")}"`)}),zrr(o,s)}}t(Mrr,"checkContextTypes");function jrr(o,s){s.length>1&&!(s.length===2&&s.includes("null"))&&L6e(o,"use allowUnionTypes to allow union type keyword")}t(jrr,"checkMultipleTypes");function Brr(o,s){let f=o.self.RULES.all;for(let d in f){let y=f[d];if(typeof y=="object"&&(0,F6e.shouldUseRule)(o.schema,y)){let{type:x}=y.definition;x.length&&!x.some(P=>Urr(s,P))&&L6e(o,`missing type "${x.join(",")}" for keyword "${d}"`)}}}t(Brr,"checkKeywordTypes");function Urr(o,s){return o.includes(s)||s==="number"&&o.includes("integer")}t(Urr,"hasApplicableType");function Wat(o,s){return o.includes(s)||s==="integer"&&o.includes("number")}t(Wat,"includesType");function zrr(o,s){let f=[];for(let d of o.dataTypes)Wat(s,d)?f.push(d):s.includes("integer")&&d==="number"&&f.push("integer");o.dataTypes=f}t(zrr,"narrowSchemaTypes");function L6e(o,s){let f=o.schemaEnv.baseId+o.errSchemaPath;s+=` at "${f}" (strictTypes)`,(0,KP.checkStrictMode)(o,s,o.opts.strictTypes)}t(L6e,"strictTypesError");var jce=class{static{t(this,"KeywordCxt")}constructor(s,f,d){if((0,yH.validateKeywordUsage)(s,f,d),this.gen=s.gen,this.allErrors=s.allErrors,this.keyword=d,this.data=s.data,this.schema=s.schema[d],this.$data=f.$data&&s.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,KP.schemaRefOrVal)(s,this.schema,d,this.$data),this.schemaType=f.schemaType,this.parentSchema=s.schema,this.params={},this.it=s,this.def=f,this.$data)this.schemaCode=s.gen.const("vSchema",Vat(this.$data,s));else if(this.schemaCode=this.schemaValue,!(0,yH.validSchemaType)(this.schema,f.schemaType,f.allowUndefined))throw new Error(`${d} value must be ${JSON.stringify(f.schemaType)}`);("code"in f?f.trackErrors:f.errors!==!1)&&(this.errsCount=s.gen.const("_errs",Ic.default.errors))}result(s,f,d){this.failResult((0,xo.not)(s),f,d)}failResult(s,f,d){this.gen.if(s),d?d():this.error(),f?(this.gen.else(),f(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(s,f){this.failResult((0,xo.not)(s),void 0,f)}fail(s){if(s===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(s),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(s){if(!this.$data)return this.fail(s);let{schemaCode:f}=this;this.fail((0,xo._)`${f} !== undefined && (${(0,xo.or)(this.invalid$data(),s)})`)}error(s,f,d){if(f){this.setParams(f),this._error(s,d),this.setParams({});return}this._error(s,d)}_error(s,f){(s?gH.reportExtraError:gH.reportError)(this,this.def.error,f)}$dataError(){(0,gH.reportError)(this,this.def.$dataError||gH.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,gH.resetErrorsCount)(this.gen,this.errsCount)}ok(s){this.allErrors||this.gen.if(s)}setParams(s,f){f?Object.assign(this.params,s):this.params=s}block$data(s,f,d=xo.nil){this.gen.block(()=>{this.check$data(s,d),f()})}check$data(s=xo.nil,f=xo.nil){if(!this.$data)return;let{gen:d,schemaCode:y,schemaType:x,def:P}=this;d.if((0,xo.or)((0,xo._)`${y} === undefined`,f)),s!==xo.nil&&d.assign(s,!0),(x.length||P.validateSchema)&&(d.elseIf(this.invalid$data()),this.$dataError(),s!==xo.nil&&d.assign(s,!1)),d.else()}invalid$data(){let{gen:s,schemaCode:f,schemaType:d,def:y,it:x}=this;return(0,xo.or)(P(),F());function P(){if(d.length){if(!(f instanceof xo.Name))throw new Error("ajv implementation error");let J=Array.isArray(d)?d:[d];return(0,xo._)`${(0,Mce.checkDataTypes)(J,f,x.opts.strictNumbers,Mce.DataType.Wrong)}`}return xo.nil}function F(){if(y.validateSchema){let J=s.scopeValue("validate$data",{ref:y.validateSchema});return(0,xo._)`!${J}(${f})`}return xo.nil}}subschema(s,f){let d=(0,O6e.getSubschema)(this.it,s);(0,O6e.extendSubschemaData)(d,this.it,s),(0,O6e.extendSubschemaMode)(d,s);let y={...this.it,...d,items:void 0,props:void 0};return Drr(y,f),y}mergeEvaluated(s,f){let{it:d,gen:y}=this;d.opts.unevaluated&&(d.props!==!0&&s.props!==void 0&&(d.props=KP.mergeEvaluated.props(y,s.props,d.props,f)),d.items!==!0&&s.items!==void 0&&(d.items=KP.mergeEvaluated.items(y,s.items,d.items,f)))}mergeValidEvaluated(s,f){let{it:d,gen:y}=this;if(d.opts.unevaluated&&(d.props!==!0||d.items!==!0))return y.if(f,()=>this.mergeEvaluated(s,xo.Name)),!0}};oI.KeywordCxt=jce;function qat(o,s,f,d){let y=new jce(o,f,s);"code"in f?f.code(y,d):y.$data&&f.validate?(0,yH.funcKeywordCode)(y,f):"macro"in f?(0,yH.macroKeywordCode)(y,f):(f.compile||f.validate)&&(0,yH.funcKeywordCode)(y,f)}t(qat,"keywordCode");var $rr=/^\/(?:[^~]|~0|~1)*$/,Jrr=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Vat(o,{dataLevel:s,dataNames:f,dataPathArr:d}){let y,x;if(o==="")return Ic.default.rootData;if(o[0]==="/"){if(!$rr.test(o))throw new Error(`Invalid JSON-pointer: ${o}`);y=o,x=Ic.default.rootData}else{let G=Jrr.exec(o);if(!G)throw new Error(`Invalid JSON-pointer: ${o}`);let Se=+G[1];if(y=G[2],y==="#"){if(Se>=s)throw new Error(J("property/index",Se));return d[s-Se]}if(Se>s)throw new Error(J("data",Se));if(x=f[s-Se],!y)return x}let P=x,F=y.split("/");for(let G of F)G&&(x=(0,xo._)`${x}${(0,xo.getProperty)((0,KP.unescapeJsonPointer)(G))}`,P=(0,xo._)`${P} && ${x}`);return P;function J(G,Se){return`Cannot access ${G} ${Se} levels up, current level is ${s}`}}t(Vat,"getData");oI.getData=Vat});var vH=or(M6e=>{"use strict";Object.defineProperty(M6e,"__esModule",{value:!0});var R6e=class extends Error{static{t(this,"ValidationError")}constructor(s){super("validation failed"),this.errors=s,this.ajv=this.validation=!0}};M6e.default=R6e});var hM=or(U6e=>{"use strict";Object.defineProperty(U6e,"__esModule",{value:!0});var j6e=hH(),B6e=class extends Error{static{t(this,"MissingRefError")}constructor(s,f,d,y){super(y||`can't resolve reference ${d} from id ${f}`),this.missingRef=(0,j6e.resolveUrl)(s,f,d),this.missingSchema=(0,j6e.normalizeId)((0,j6e.getFullPath)(s,this.missingRef))}};U6e.default=B6e});var bH=or(dT=>{"use strict";Object.defineProperty(dT,"__esModule",{value:!0});dT.resolveSchema=dT.getCompilingSchema=dT.resolveRef=dT.compileSchema=dT.SchemaEnv=void 0;var TE=Cc(),Wrr=vH(),kO=_T(),xE=hH(),Hat=ru(),qrr=mM(),gM=class{static{t(this,"SchemaEnv")}constructor(s){var f;this.refs={},this.dynamicAnchors={};let d;typeof s.schema=="object"&&(d=s.schema),this.schema=s.schema,this.schemaId=s.schemaId,this.root=s.root||this,this.baseId=(f=s.baseId)!==null&&f!==void 0?f:(0,xE.normalizeId)(d?.[s.schemaId||"$id"]),this.schemaPath=s.schemaPath,this.localRefs=s.localRefs,this.meta=s.meta,this.$async=d?.$async,this.refs={}}};dT.SchemaEnv=gM;function $6e(o){let s=Gat.call(this,o);if(s)return s;let f=(0,xE.getFullPath)(this.opts.uriResolver,o.root.baseId),{es5:d,lines:y}=this.opts.code,{ownProperties:x}=this.opts,P=new TE.CodeGen(this.scope,{es5:d,lines:y,ownProperties:x}),F;o.$async&&(F=P.scopeValue("Error",{ref:Wrr.default,code:(0,TE._)`require("ajv/dist/runtime/validation_error").default`}));let J=P.scopeName("validate");o.validateName=J;let G={gen:P,allErrors:this.opts.allErrors,data:kO.default.data,parentData:kO.default.parentData,parentDataProperty:kO.default.parentDataProperty,dataNames:[kO.default.data],dataPathArr:[TE.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:P.scopeValue("schema",this.opts.code.source===!0?{ref:o.schema,code:(0,TE.stringify)(o.schema)}:{ref:o.schema}),validateName:J,ValidationError:F,schema:o.schema,schemaEnv:o,rootId:f,baseId:o.baseId||f,schemaPath:TE.nil,errSchemaPath:o.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,TE._)`""`,opts:this.opts,self:this},Se;try{this._compilations.add(o),(0,qrr.validateFunctionCode)(G),P.optimize(this.opts.code.optimize);let de=P.toString();Se=`${P.scopeRefs(kO.default.scope)}return ${de}`,this.opts.code.process&&(Se=this.opts.code.process(Se,o));let Ke=new Function(`${kO.default.self}`,`${kO.default.scope}`,Se)(this,this.scope.get());if(this.scope.value(J,{ref:Ke}),Ke.errors=null,Ke.schema=o.schema,Ke.schemaEnv=o,o.$async&&(Ke.$async=!0),this.opts.code.source===!0&&(Ke.source={validateName:J,validateCode:de,scopeValues:P._values}),this.opts.unevaluated){let{props:$e,items:Fe}=G;Ke.evaluated={props:$e instanceof TE.Name?void 0:$e,items:Fe instanceof TE.Name?void 0:Fe,dynamicProps:$e instanceof TE.Name,dynamicItems:Fe instanceof TE.Name},Ke.source&&(Ke.source.evaluated=(0,TE.stringify)(Ke.evaluated))}return o.validate=Ke,o}catch(de){throw delete o.validate,delete o.validateName,Se&&this.logger.error("Error compiling schema, function code:",Se),de}finally{this._compilations.delete(o)}}t($6e,"compileSchema");dT.compileSchema=$6e;function Vrr(o,s,f){var d;f=(0,xE.resolveUrl)(this.opts.uriResolver,s,f);let y=o.refs[f];if(y)return y;let x=Yrr.call(this,o,f);if(x===void 0){let P=(d=o.localRefs)===null||d===void 0?void 0:d[f],{schemaId:F}=this.opts;P&&(x=new gM({schema:P,schemaId:F,root:o,baseId:s}))}if(x!==void 0)return o.refs[f]=Hrr.call(this,x)}t(Vrr,"resolveRef");dT.resolveRef=Vrr;function Hrr(o){return(0,xE.inlineRef)(o.schema,this.opts.inlineRefs)?o.schema:o.validate?o:$6e.call(this,o)}t(Hrr,"inlineOrCompile");function Gat(o){for(let s of this._compilations)if(Grr(s,o))return s}t(Gat,"getCompilingSchema");dT.getCompilingSchema=Gat;function Grr(o,s){return o.schema===s.schema&&o.root===s.root&&o.baseId===s.baseId}t(Grr,"sameSchemaEnv");function Yrr(o,s){let f;for(;typeof(f=this.refs[s])=="string";)s=f;return f||this.schemas[s]||Bce.call(this,o,s)}t(Yrr,"resolve");function Bce(o,s){let f=this.opts.uriResolver.parse(s),d=(0,xE._getFullPath)(this.opts.uriResolver,f),y=(0,xE.getFullPath)(this.opts.uriResolver,o.baseId,void 0);if(Object.keys(o.schema).length>0&&d===y)return z6e.call(this,f,o);let x=(0,xE.normalizeId)(d),P=this.refs[x]||this.schemas[x];if(typeof P=="string"){let F=Bce.call(this,o,P);return typeof F?.schema!="object"?void 0:z6e.call(this,f,F)}if(typeof P?.schema=="object"){if(P.validate||$6e.call(this,P),x===(0,xE.normalizeId)(s)){let{schema:F}=P,{schemaId:J}=this.opts,G=F[J];return G&&(y=(0,xE.resolveUrl)(this.opts.uriResolver,y,G)),new gM({schema:F,schemaId:J,root:o,baseId:y})}return z6e.call(this,f,P)}}t(Bce,"resolveSchema");dT.resolveSchema=Bce;var Krr=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function z6e(o,{baseId:s,schema:f,root:d}){var y;if(((y=o.fragment)===null||y===void 0?void 0:y[0])!=="/")return;for(let F of o.fragment.slice(1).split("/")){if(typeof f=="boolean")return;let J=f[(0,Hat.unescapeFragment)(F)];if(J===void 0)return;f=J;let G=typeof f=="object"&&f[this.opts.schemaId];!Krr.has(F)&&G&&(s=(0,xE.resolveUrl)(this.opts.uriResolver,s,G))}let x;if(typeof f!="boolean"&&f.$ref&&!(0,Hat.schemaHasRulesButRef)(f,this.RULES)){let F=(0,xE.resolveUrl)(this.opts.uriResolver,s,f.$ref);x=Bce.call(this,d,F)}let{schemaId:P}=this.opts;if(x=x||new gM({schema:f,schemaId:P,root:d,baseId:s}),x.schema!==x.root.schema)return x}t(z6e,"getJsonPointer")});var Yat=or((rPr,Xrr)=>{Xrr.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 W6e=or((nPr,Qat)=>{"use strict";var Zrr=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),Xat=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function J6e(o){let s="",f=0,d=0;for(d=0;d<o.length;d++)if(f=o[d].charCodeAt(0),f!==48){if(!(f>=48&&f<=57||f>=65&&f<=70||f>=97&&f<=102))return"";s+=o[d];break}for(d+=1;d<o.length;d++){if(f=o[d].charCodeAt(0),!(f>=48&&f<=57||f>=65&&f<=70||f>=97&&f<=102))return"";s+=o[d]}return s}t(J6e,"stringArrayToHexStripped");var Qrr=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function Kat(o){return o.length=0,!0}t(Kat,"consumeIsZone");function enr(o,s,f){if(o.length){let d=J6e(o);if(d!=="")s.push(d);else return f.error=!0,!1;o.length=0}return!0}t(enr,"consumeHextets");function tnr(o){let s=0,f={error:!1,address:"",zone:""},d=[],y=[],x=!1,P=!1,F=enr;for(let J=0;J<o.length;J++){let G=o[J];if(!(G==="["||G==="]"))if(G===":"){if(x===!0&&(P=!0),!F(y,d,f))break;if(++s>7){f.error=!0;break}J>0&&o[J-1]===":"&&(x=!0),d.push(":");continue}else if(G==="%"){if(!F(y,d,f))break;F=Kat}else{y.push(G);continue}}return y.length&&(F===Kat?f.zone=y.join(""):P?d.push(y.join("")):d.push(J6e(y))),f.address=d.join(""),f}t(tnr,"getIPV6");function Zat(o){if(rnr(o,":")<2)return{host:o,isIPV6:!1};let s=tnr(o);if(s.error)return{host:o,isIPV6:!1};{let f=s.address,d=s.address;return s.zone&&(f+="%"+s.zone,d+="%25"+s.zone),{host:f,isIPV6:!0,escapedHost:d}}}t(Zat,"normalizeIPv6");function rnr(o,s){let f=0;for(let d=0;d<o.length;d++)o[d]===s&&f++;return f}t(rnr,"findToken");function nnr(o){let s=o,f=[],d=-1,y=0;for(;y=s.length;){if(y===1){if(s===".")break;if(s==="/"){f.push("/");break}else{f.push(s);break}}else if(y===2){if(s[0]==="."){if(s[1]===".")break;if(s[1]==="/"){s=s.slice(2);continue}}else if(s[0]==="/"&&(s[1]==="."||s[1]==="/")){f.push("/");break}}else if(y===3&&s==="/.."){f.length!==0&&f.pop(),f.push("/");break}if(s[0]==="."){if(s[1]==="."){if(s[2]==="/"){s=s.slice(3);continue}}else if(s[1]==="/"){s=s.slice(2);continue}}else if(s[0]==="/"&&s[1]==="."){if(s[2]==="/"){s=s.slice(2);continue}else if(s[2]==="."&&s[3]==="/"){s=s.slice(3),f.length!==0&&f.pop();continue}}if((d=s.indexOf("/",1))===-1){f.push(s);break}else f.push(s.slice(0,d)),s=s.slice(d)}return f.join("")}t(nnr,"removeDotSegments");function inr(o,s){let f=s!==!0?escape:unescape;return o.scheme!==void 0&&(o.scheme=f(o.scheme)),o.userinfo!==void 0&&(o.userinfo=f(o.userinfo)),o.host!==void 0&&(o.host=f(o.host)),o.path!==void 0&&(o.path=f(o.path)),o.query!==void 0&&(o.query=f(o.query)),o.fragment!==void 0&&(o.fragment=f(o.fragment)),o}t(inr,"normalizeComponentEncoding");function snr(o){let s=[];if(o.userinfo!==void 0&&(s.push(o.userinfo),s.push("@")),o.host!==void 0){let f=unescape(o.host);if(!Xat(f)){let d=Zat(f);d.isIPV6===!0?f=`[${d.escapedHost}]`:f=o.host}s.push(f)}return(typeof o.port=="number"||typeof o.port=="string")&&(s.push(":"),s.push(String(o.port))),s.length?s.join(""):void 0}t(snr,"recomposeAuthority");Qat.exports={nonSimpleDomain:Qrr,recomposeAuthority:snr,normalizeComponentEncoding:inr,removeDotSegments:nnr,isIPv4:Xat,isUUID:Zrr,normalizeIPv6:Zat,stringArrayToHexStripped:J6e}});var iot=or((sPr,not)=>{"use strict";var{isUUID:anr}=W6e(),onr=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,cnr=["http","https","ws","wss","urn","urn:uuid"];function lnr(o){return cnr.indexOf(o)!==-1}t(lnr,"isValidSchemeName");function q6e(o){return o.secure===!0?!0:o.secure===!1?!1:o.scheme?o.scheme.length===3&&(o.scheme[0]==="w"||o.scheme[0]==="W")&&(o.scheme[1]==="s"||o.scheme[1]==="S")&&(o.scheme[2]==="s"||o.scheme[2]==="S"):!1}t(q6e,"wsIsSecure");function eot(o){return o.host||(o.error=o.error||"HTTP URIs must have a host."),o}t(eot,"httpParse");function tot(o){let s=String(o.scheme).toLowerCase()==="https";return(o.port===(s?443:80)||o.port==="")&&(o.port=void 0),o.path||(o.path="/"),o}t(tot,"httpSerialize");function unr(o){return o.secure=q6e(o),o.resourceName=(o.path||"/")+(o.query?"?"+o.query:""),o.path=void 0,o.query=void 0,o}t(unr,"wsParse");function fnr(o){if((o.port===(q6e(o)?443:80)||o.port==="")&&(o.port=void 0),typeof o.secure=="boolean"&&(o.scheme=o.secure?"wss":"ws",o.secure=void 0),o.resourceName){let[s,f]=o.resourceName.split("?");o.path=s&&s!=="/"?s:void 0,o.query=f,o.resourceName=void 0}return o.fragment=void 0,o}t(fnr,"wsSerialize");function _nr(o,s){if(!o.path)return o.error="URN can not be parsed",o;let f=o.path.match(onr);if(f){let d=s.scheme||o.scheme||"urn";o.nid=f[1].toLowerCase(),o.nss=f[2];let y=`${d}:${s.nid||o.nid}`,x=V6e(y);o.path=void 0,x&&(o=x.parse(o,s))}else o.error=o.error||"URN can not be parsed.";return o}t(_nr,"urnParse");function pnr(o,s){if(o.nid===void 0)throw new Error("URN without nid cannot be serialized");let f=s.scheme||o.scheme||"urn",d=o.nid.toLowerCase(),y=`${f}:${s.nid||d}`,x=V6e(y);x&&(o=x.serialize(o,s));let P=o,F=o.nss;return P.path=`${d||s.nid}:${F}`,s.skipEscape=!0,P}t(pnr,"urnSerialize");function dnr(o,s){let f=o;return f.uuid=f.nss,f.nss=void 0,!s.tolerant&&(!f.uuid||!anr(f.uuid))&&(f.error=f.error||"UUID is not valid."),f}t(dnr,"urnuuidParse");function mnr(o){let s=o;return s.nss=(o.uuid||"").toLowerCase(),s}t(mnr,"urnuuidSerialize");var rot={scheme:"http",domainHost:!0,parse:eot,serialize:tot},hnr={scheme:"https",domainHost:rot.domainHost,parse:eot,serialize:tot},Uce={scheme:"ws",domainHost:!0,parse:unr,serialize:fnr},gnr={scheme:"wss",domainHost:Uce.domainHost,parse:Uce.parse,serialize:Uce.serialize},ynr={scheme:"urn",parse:_nr,serialize:pnr,skipNormalize:!0},vnr={scheme:"urn:uuid",parse:dnr,serialize:mnr,skipNormalize:!0},zce={http:rot,https:hnr,ws:Uce,wss:gnr,urn:ynr,"urn:uuid":vnr};Object.setPrototypeOf(zce,null);function V6e(o){return o&&(zce[o]||zce[o.toLowerCase()])||void 0}t(V6e,"getSchemeHandler");not.exports={wsIsSecure:q6e,SCHEMES:zce,isValidSchemeName:lnr,getSchemeHandler:V6e}});var oot=or((oPr,Jce)=>{"use strict";var{normalizeIPv6:bnr,removeDotSegments:SH,recomposeAuthority:Snr,normalizeComponentEncoding:$ce,isIPv4:Tnr,nonSimpleDomain:xnr}=W6e(),{SCHEMES:Enr,getSchemeHandler:sot}=iot();function Cnr(o,s){return typeof o=="string"?o=Rk(XP(o,s),s):typeof o=="object"&&(o=XP(Rk(o,s),s)),o}t(Cnr,"normalize");function knr(o,s,f){let d=f?Object.assign({scheme:"null"},f):{scheme:"null"},y=aot(XP(o,d),XP(s,d),d,!0);return d.skipEscape=!0,Rk(y,d)}t(knr,"resolve");function aot(o,s,f,d){let y={};return d||(o=XP(Rk(o,f),f),s=XP(Rk(s,f),f)),f=f||{},!f.tolerant&&s.scheme?(y.scheme=s.scheme,y.userinfo=s.userinfo,y.host=s.host,y.port=s.port,y.path=SH(s.path||""),y.query=s.query):(s.userinfo!==void 0||s.host!==void 0||s.port!==void 0?(y.userinfo=s.userinfo,y.host=s.host,y.port=s.port,y.path=SH(s.path||""),y.query=s.query):(s.path?(s.path[0]==="/"?y.path=SH(s.path):((o.userinfo!==void 0||o.host!==void 0||o.port!==void 0)&&!o.path?y.path="/"+s.path:o.path?y.path=o.path.slice(0,o.path.lastIndexOf("/")+1)+s.path:y.path=s.path,y.path=SH(y.path)),y.query=s.query):(y.path=o.path,s.query!==void 0?y.query=s.query:y.query=o.query),y.userinfo=o.userinfo,y.host=o.host,y.port=o.port),y.scheme=o.scheme),y.fragment=s.fragment,y}t(aot,"resolveComponent");function wnr(o,s,f){return typeof o=="string"?(o=unescape(o),o=Rk($ce(XP(o,f),!0),{...f,skipEscape:!0})):typeof o=="object"&&(o=Rk($ce(o,!0),{...f,skipEscape:!0})),typeof s=="string"?(s=unescape(s),s=Rk($ce(XP(s,f),!0),{...f,skipEscape:!0})):typeof s=="object"&&(s=Rk($ce(s,!0),{...f,skipEscape:!0})),o.toLowerCase()===s.toLowerCase()}t(wnr,"equal");function Rk(o,s){let f={host:o.host,scheme:o.scheme,userinfo:o.userinfo,port:o.port,path:o.path,query:o.query,nid:o.nid,nss:o.nss,uuid:o.uuid,fragment:o.fragment,reference:o.reference,resourceName:o.resourceName,secure:o.secure,error:""},d=Object.assign({},s),y=[],x=sot(d.scheme||f.scheme);x&&x.serialize&&x.serialize(f,d),f.path!==void 0&&(d.skipEscape?f.path=unescape(f.path):(f.path=escape(f.path),f.scheme!==void 0&&(f.path=f.path.split("%3A").join(":")))),d.reference!=="suffix"&&f.scheme&&y.push(f.scheme,":");let P=Snr(f);if(P!==void 0&&(d.reference!=="suffix"&&y.push("//"),y.push(P),f.path&&f.path[0]!=="/"&&y.push("/")),f.path!==void 0){let F=f.path;!d.absolutePath&&(!x||!x.absolutePath)&&(F=SH(F)),P===void 0&&F[0]==="/"&&F[1]==="/"&&(F="/%2F"+F.slice(2)),y.push(F)}return f.query!==void 0&&y.push("?",f.query),f.fragment!==void 0&&y.push("#",f.fragment),y.join("")}t(Rk,"serialize");var Dnr=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function XP(o,s){let f=Object.assign({},s),d={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},y=!1;f.reference==="suffix"&&(f.scheme?o=f.scheme+":"+o:o="//"+o);let x=o.match(Dnr);if(x){if(d.scheme=x[1],d.userinfo=x[3],d.host=x[4],d.port=parseInt(x[5],10),d.path=x[6]||"",d.query=x[7],d.fragment=x[8],isNaN(d.port)&&(d.port=x[5]),d.host)if(Tnr(d.host)===!1){let J=bnr(d.host);d.host=J.host.toLowerCase(),y=J.isIPV6}else y=!0;d.scheme===void 0&&d.userinfo===void 0&&d.host===void 0&&d.port===void 0&&d.query===void 0&&!d.path?d.reference="same-document":d.scheme===void 0?d.reference="relative":d.fragment===void 0?d.reference="absolute":d.reference="uri",f.reference&&f.reference!=="suffix"&&f.reference!==d.reference&&(d.error=d.error||"URI is not a "+f.reference+" reference.");let P=sot(f.scheme||d.scheme);if(!f.unicodeSupport&&(!P||!P.unicodeSupport)&&d.host&&(f.domainHost||P&&P.domainHost)&&y===!1&&xnr(d.host))try{d.host=URL.domainToASCII(d.host.toLowerCase())}catch(F){d.error=d.error||"Host's domain name can not be converted to ASCII: "+F}(!P||P&&!P.skipNormalize)&&(o.indexOf("%")!==-1&&(d.scheme!==void 0&&(d.scheme=unescape(d.scheme)),d.host!==void 0&&(d.host=unescape(d.host))),d.path&&(d.path=escape(unescape(d.path))),d.fragment&&(d.fragment=encodeURI(decodeURIComponent(d.fragment)))),P&&P.parse&&P.parse(d,f)}else d.error=d.error||"URI can not be parsed.";return d}t(XP,"parse");var H6e={SCHEMES:Enr,normalize:Cnr,resolve:knr,resolveComponent:aot,equal:wnr,serialize:Rk,parse:XP};Jce.exports=H6e;Jce.exports.default=H6e;Jce.exports.fastUri=H6e});var lot=or(G6e=>{"use strict";Object.defineProperty(G6e,"__esModule",{value:!0});var cot=oot();cot.code='require("ajv/dist/runtime/uri").default';G6e.default=cot});var X6e=or(x0=>{"use strict";Object.defineProperty(x0,"__esModule",{value:!0});x0.CodeGen=x0.Name=x0.nil=x0.stringify=x0.str=x0._=x0.KeywordCxt=void 0;var Pnr=mM();Object.defineProperty(x0,"KeywordCxt",{enumerable:!0,get:t(function(){return Pnr.KeywordCxt},"get")});var yM=Cc();Object.defineProperty(x0,"_",{enumerable:!0,get:t(function(){return yM._},"get")});Object.defineProperty(x0,"str",{enumerable:!0,get:t(function(){return yM.str},"get")});Object.defineProperty(x0,"stringify",{enumerable:!0,get:t(function(){return yM.stringify},"get")});Object.defineProperty(x0,"nil",{enumerable:!0,get:t(function(){return yM.nil},"get")});Object.defineProperty(x0,"Name",{enumerable:!0,get:t(function(){return yM.Name},"get")});Object.defineProperty(x0,"CodeGen",{enumerable:!0,get:t(function(){return yM.CodeGen},"get")});var Anr=vH(),dot=hM(),Nnr=x6e(),TH=bH(),Inr=Cc(),xH=hH(),Wce=mH(),K6e=ru(),uot=Yat(),Onr=lot(),mot=t((o,s)=>new RegExp(o,s),"defaultRegExp");mot.code="new RegExp";var Fnr=["removeAdditional","useDefaults","coerceTypes"],Lnr=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),Rnr={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."},Mnr={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},fot=200;function jnr(o){var s,f,d,y,x,P,F,J,G,Se,de,ae,Ke,$e,Fe,Gt,jt,Pr,Fn,sn,Un,Er,vr,ls,Ni;let nc=o.strict,bi=(s=o.code)===null||s===void 0?void 0:s.optimize,Qf=bi===!0||bi===void 0?1:bi||0,S_=(d=(f=o.code)===null||f===void 0?void 0:f.regExp)!==null&&d!==void 0?d:mot,Ln=(y=o.uriResolver)!==null&&y!==void 0?y:Onr.default;return{strictSchema:(P=(x=o.strictSchema)!==null&&x!==void 0?x:nc)!==null&&P!==void 0?P:!0,strictNumbers:(J=(F=o.strictNumbers)!==null&&F!==void 0?F:nc)!==null&&J!==void 0?J:!0,strictTypes:(Se=(G=o.strictTypes)!==null&&G!==void 0?G:nc)!==null&&Se!==void 0?Se:"log",strictTuples:(ae=(de=o.strictTuples)!==null&&de!==void 0?de:nc)!==null&&ae!==void 0?ae:"log",strictRequired:($e=(Ke=o.strictRequired)!==null&&Ke!==void 0?Ke:nc)!==null&&$e!==void 0?$e:!1,code:o.code?{...o.code,optimize:Qf,regExp:S_}:{optimize:Qf,regExp:S_},loopRequired:(Fe=o.loopRequired)!==null&&Fe!==void 0?Fe:fot,loopEnum:(Gt=o.loopEnum)!==null&&Gt!==void 0?Gt:fot,meta:(jt=o.meta)!==null&&jt!==void 0?jt:!0,messages:(Pr=o.messages)!==null&&Pr!==void 0?Pr:!0,inlineRefs:(Fn=o.inlineRefs)!==null&&Fn!==void 0?Fn:!0,schemaId:(sn=o.schemaId)!==null&&sn!==void 0?sn:"$id",addUsedSchema:(Un=o.addUsedSchema)!==null&&Un!==void 0?Un:!0,validateSchema:(Er=o.validateSchema)!==null&&Er!==void 0?Er:!0,validateFormats:(vr=o.validateFormats)!==null&&vr!==void 0?vr:!0,unicodeRegExp:(ls=o.unicodeRegExp)!==null&&ls!==void 0?ls:!0,int32range:(Ni=o.int32range)!==null&&Ni!==void 0?Ni:!0,uriResolver:Ln}}t(jnr,"requiredOptions");var EH=class{static{t(this,"Ajv")}constructor(s={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,s=this.opts={...s,...jnr(s)};let{es5:f,lines:d}=this.opts.code;this.scope=new Inr.ValueScope({scope:{},prefixes:Lnr,es5:f,lines:d}),this.logger=Wnr(s.logger);let y=s.validateFormats;s.validateFormats=!1,this.RULES=(0,Nnr.getRules)(),_ot.call(this,Rnr,s,"NOT SUPPORTED"),_ot.call(this,Mnr,s,"DEPRECATED","warn"),this._metaOpts=$nr.call(this),s.formats&&Unr.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),s.keywords&&znr.call(this,s.keywords),typeof s.meta=="object"&&this.addMetaSchema(s.meta),Bnr.call(this),s.validateFormats=y}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:s,meta:f,schemaId:d}=this.opts,y=uot;d==="id"&&(y={...uot},y.id=y.$id,delete y.$id),f&&s&&this.addMetaSchema(y,y[d],!1)}defaultMeta(){let{meta:s,schemaId:f}=this.opts;return this.opts.defaultMeta=typeof s=="object"?s[f]||s:void 0}validate(s,f){let d;if(typeof s=="string"){if(d=this.getSchema(s),!d)throw new Error(`no schema with key or ref "${s}"`)}else d=this.compile(s);let y=d(f);return"$async"in d||(this.errors=d.errors),y}compile(s,f){let d=this._addSchema(s,f);return d.validate||this._compileSchemaEnv(d)}compileAsync(s,f){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:d}=this.opts;return y.call(this,s,f);async function y(Se,de){await x.call(this,Se.$schema);let ae=this._addSchema(Se,de);return ae.validate||P.call(this,ae)}async function x(Se){Se&&!this.getSchema(Se)&&await y.call(this,{$ref:Se},!0)}async function P(Se){try{return this._compileSchemaEnv(Se)}catch(de){if(!(de instanceof dot.default))throw de;return F.call(this,de),await J.call(this,de.missingSchema),P.call(this,Se)}}function F({missingSchema:Se,missingRef:de}){if(this.refs[Se])throw new Error(`AnySchema ${Se} is loaded but ${de} cannot be resolved`)}async function J(Se){let de=await G.call(this,Se);this.refs[Se]||await x.call(this,de.$schema),this.refs[Se]||this.addSchema(de,Se,f)}async function G(Se){let de=this._loading[Se];if(de)return de;try{return await(this._loading[Se]=d(Se))}finally{delete this._loading[Se]}}}addSchema(s,f,d,y=this.opts.validateSchema){if(Array.isArray(s)){for(let P of s)this.addSchema(P,void 0,d,y);return this}let x;if(typeof s=="object"){let{schemaId:P}=this.opts;if(x=s[P],x!==void 0&&typeof x!="string")throw new Error(`schema ${P} must be string`)}return f=(0,xH.normalizeId)(f||x),this._checkUnique(f),this.schemas[f]=this._addSchema(s,d,f,y,!0),this}addMetaSchema(s,f,d=this.opts.validateSchema){return this.addSchema(s,f,!0,d),this}validateSchema(s,f){if(typeof s=="boolean")return!0;let d;if(d=s.$schema,d!==void 0&&typeof d!="string")throw new Error("$schema must be a string");if(d=d||this.opts.defaultMeta||this.defaultMeta(),!d)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let y=this.validate(d,s);if(!y&&f){let x="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(x);else throw new Error(x)}return y}getSchema(s){let f;for(;typeof(f=pot.call(this,s))=="string";)s=f;if(f===void 0){let{schemaId:d}=this.opts,y=new TH.SchemaEnv({schema:{},schemaId:d});if(f=TH.resolveSchema.call(this,y,s),!f)return;this.refs[s]=f}return f.validate||this._compileSchemaEnv(f)}removeSchema(s){if(s instanceof RegExp)return this._removeAllSchemas(this.schemas,s),this._removeAllSchemas(this.refs,s),this;switch(typeof s){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let f=pot.call(this,s);return typeof f=="object"&&this._cache.delete(f.schema),delete this.schemas[s],delete this.refs[s],this}case"object":{let f=s;this._cache.delete(f);let d=s[this.opts.schemaId];return d&&(d=(0,xH.normalizeId)(d),delete this.schemas[d],delete this.refs[d]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(s){for(let f of s)this.addKeyword(f);return this}addKeyword(s,f){let d;if(typeof s=="string")d=s,typeof f=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),f.keyword=d);else if(typeof s=="object"&&f===void 0){if(f=s,d=f.keyword,Array.isArray(d)&&!d.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(Vnr.call(this,d,f),!f)return(0,K6e.eachItem)(d,x=>Y6e.call(this,x)),this;Gnr.call(this,f);let y={...f,type:(0,Wce.getJSONTypes)(f.type),schemaType:(0,Wce.getJSONTypes)(f.schemaType)};return(0,K6e.eachItem)(d,y.type.length===0?x=>Y6e.call(this,x,y):x=>y.type.forEach(P=>Y6e.call(this,x,y,P))),this}getKeyword(s){let f=this.RULES.all[s];return typeof f=="object"?f.definition:!!f}removeKeyword(s){let{RULES:f}=this;delete f.keywords[s],delete f.all[s];for(let d of f.rules){let y=d.rules.findIndex(x=>x.keyword===s);y>=0&&d.rules.splice(y,1)}return this}addFormat(s,f){return typeof f=="string"&&(f=new RegExp(f)),this.formats[s]=f,this}errorsText(s=this.errors,{separator:f=", ",dataVar:d="data"}={}){return!s||s.length===0?"No errors":s.map(y=>`${d}${y.instancePath} ${y.message}`).reduce((y,x)=>y+f+x)}$dataMetaSchema(s,f){let d=this.RULES.all;s=JSON.parse(JSON.stringify(s));for(let y of f){let x=y.split("/").slice(1),P=s;for(let F of x)P=P[F];for(let F in d){let J=d[F];if(typeof J!="object")continue;let{$data:G}=J.definition,Se=P[F];G&&Se&&(P[F]=hot(Se))}}return s}_removeAllSchemas(s,f){for(let d in s){let y=s[d];(!f||f.test(d))&&(typeof y=="string"?delete s[d]:y&&!y.meta&&(this._cache.delete(y.schema),delete s[d]))}}_addSchema(s,f,d,y=this.opts.validateSchema,x=this.opts.addUsedSchema){let P,{schemaId:F}=this.opts;if(typeof s=="object")P=s[F];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof s!="boolean")throw new Error("schema must be object or boolean")}let J=this._cache.get(s);if(J!==void 0)return J;d=(0,xH.normalizeId)(P||d);let G=xH.getSchemaRefs.call(this,s,d);return J=new TH.SchemaEnv({schema:s,schemaId:F,meta:f,baseId:d,localRefs:G}),this._cache.set(J.schema,J),x&&!d.startsWith("#")&&(d&&this._checkUnique(d),this.refs[d]=J),y&&this.validateSchema(s,!0),J}_checkUnique(s){if(this.schemas[s]||this.refs[s])throw new Error(`schema with key or id "${s}" already exists`)}_compileSchemaEnv(s){if(s.meta?this._compileMetaSchema(s):TH.compileSchema.call(this,s),!s.validate)throw new Error("ajv implementation error");return s.validate}_compileMetaSchema(s){let f=this.opts;this.opts=this._metaOpts;try{TH.compileSchema.call(this,s)}finally{this.opts=f}}};EH.ValidationError=Anr.default;EH.MissingRefError=dot.default;x0.default=EH;function _ot(o,s,f,d="error"){for(let y in o){let x=y;x in s&&this.logger[d](`${f}: option ${y}. ${o[x]}`)}}t(_ot,"checkOptions");function pot(o){return o=(0,xH.normalizeId)(o),this.schemas[o]||this.refs[o]}t(pot,"getSchEnv");function Bnr(){let o=this.opts.schemas;if(o)if(Array.isArray(o))this.addSchema(o);else for(let s in o)this.addSchema(o[s],s)}t(Bnr,"addInitialSchemas");function Unr(){for(let o in this.opts.formats){let s=this.opts.formats[o];s&&this.addFormat(o,s)}}t(Unr,"addInitialFormats");function znr(o){if(Array.isArray(o)){this.addVocabulary(o);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let s in o){let f=o[s];f.keyword||(f.keyword=s),this.addKeyword(f)}}t(znr,"addInitialKeywords");function $nr(){let o={...this.opts};for(let s of Fnr)delete o[s];return o}t($nr,"getMetaSchemaOptions");var Jnr={log(){},warn(){},error(){}};function Wnr(o){if(o===!1)return Jnr;if(o===void 0)return console;if(o.log&&o.warn&&o.error)return o;throw new Error("logger must implement log, warn and error methods")}t(Wnr,"getLogger");var qnr=/^[a-z_$][a-z0-9_$:-]*$/i;function Vnr(o,s){let{RULES:f}=this;if((0,K6e.eachItem)(o,d=>{if(f.keywords[d])throw new Error(`Keyword ${d} is already defined`);if(!qnr.test(d))throw new Error(`Keyword ${d} has invalid name`)}),!!s&&s.$data&&!("code"in s||"validate"in s))throw new Error('$data keyword must have "code" or "validate" function')}t(Vnr,"checkKeyword");function Y6e(o,s,f){var d;let y=s?.post;if(f&&y)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:x}=this,P=y?x.post:x.rules.find(({type:J})=>J===f);if(P||(P={type:f,rules:[]},x.rules.push(P)),x.keywords[o]=!0,!s)return;let F={keyword:o,definition:{...s,type:(0,Wce.getJSONTypes)(s.type),schemaType:(0,Wce.getJSONTypes)(s.schemaType)}};s.before?Hnr.call(this,P,F,s.before):P.rules.push(F),x.all[o]=F,(d=s.implements)===null||d===void 0||d.forEach(J=>this.addKeyword(J))}t(Y6e,"addRule");function Hnr(o,s,f){let d=o.rules.findIndex(y=>y.keyword===f);d>=0?o.rules.splice(d,0,s):(o.rules.push(s),this.logger.warn(`rule ${f} is not defined`))}t(Hnr,"addBeforeRule");function Gnr(o){let{metaSchema:s}=o;s!==void 0&&(o.$data&&this.opts.$data&&(s=hot(s)),o.validateSchema=this.compile(s,!0))}t(Gnr,"keywordMetaschema");var Ynr={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function hot(o){return{anyOf:[o,Ynr]}}t(hot,"schemaOrData")});var got=or(Z6e=>{"use strict";Object.defineProperty(Z6e,"__esModule",{value:!0});var Knr={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Z6e.default=Knr});var Hce=or(wO=>{"use strict";Object.defineProperty(wO,"__esModule",{value:!0});wO.callRef=wO.getValidate=void 0;var Xnr=hM(),yot=pT(),Xv=Cc(),vM=_T(),vot=bH(),qce=ru(),Znr={keyword:"$ref",schemaType:"string",code(o){let{gen:s,schema:f,it:d}=o,{baseId:y,schemaEnv:x,validateName:P,opts:F,self:J}=d,{root:G}=x;if((f==="#"||f==="#/")&&y===G.baseId)return de();let Se=vot.resolveRef.call(J,G,y,f);if(Se===void 0)throw new Xnr.default(d.opts.uriResolver,y,f);if(Se instanceof vot.SchemaEnv)return ae(Se);return Ke(Se);function de(){if(x===G)return Vce(o,P,x,x.$async);let $e=s.scopeValue("root",{ref:G});return Vce(o,(0,Xv._)`${$e}.validate`,G,G.$async)}function ae($e){let Fe=bot(o,$e);Vce(o,Fe,$e,$e.$async)}function Ke($e){let Fe=s.scopeValue("schema",F.code.source===!0?{ref:$e,code:(0,Xv.stringify)($e)}:{ref:$e}),Gt=s.name("valid"),jt=o.subschema({schema:$e,dataTypes:[],schemaPath:Xv.nil,topSchemaRef:Fe,errSchemaPath:f},Gt);o.mergeEvaluated(jt),o.ok(Gt)}}};function bot(o,s){let{gen:f}=o;return s.validate?f.scopeValue("validate",{ref:s.validate}):(0,Xv._)`${f.scopeValue("wrapper",{ref:s})}.validate`}t(bot,"getValidate");wO.getValidate=bot;function Vce(o,s,f,d){let{gen:y,it:x}=o,{allErrors:P,schemaEnv:F,opts:J}=x,G=J.passContext?vM.default.this:Xv.nil;d?Se():de();function Se(){if(!F.$async)throw new Error("async schema referenced by sync schema");let $e=y.let("valid");y.try(()=>{y.code((0,Xv._)`await ${(0,yot.callValidateCode)(o,s,G)}`),Ke(s),P||y.assign($e,!0)},Fe=>{y.if((0,Xv._)`!(${Fe} instanceof ${x.ValidationError})`,()=>y.throw(Fe)),ae(Fe),P||y.assign($e,!1)}),o.ok($e)}t(Se,"callAsyncRef");function de(){o.result((0,yot.callValidateCode)(o,s,G),()=>Ke(s),()=>ae(s))}t(de,"callSyncRef");function ae($e){let Fe=(0,Xv._)`${$e}.errors`;y.assign(vM.default.vErrors,(0,Xv._)`${vM.default.vErrors} === null ? ${Fe} : ${vM.default.vErrors}.concat(${Fe})`),y.assign(vM.default.errors,(0,Xv._)`${vM.default.vErrors}.length`)}t(ae,"addErrorsFrom");function Ke($e){var Fe;if(!x.opts.unevaluated)return;let Gt=(Fe=f?.validate)===null||Fe===void 0?void 0:Fe.evaluated;if(x.props!==!0)if(Gt&&!Gt.dynamicProps)Gt.props!==void 0&&(x.props=qce.mergeEvaluated.props(y,Gt.props,x.props));else{let jt=y.var("props",(0,Xv._)`${$e}.evaluated.props`);x.props=qce.mergeEvaluated.props(y,jt,x.props,Xv.Name)}if(x.items!==!0)if(Gt&&!Gt.dynamicItems)Gt.items!==void 0&&(x.items=qce.mergeEvaluated.items(y,Gt.items,x.items));else{let jt=y.var("items",(0,Xv._)`${$e}.evaluated.items`);x.items=qce.mergeEvaluated.items(y,jt,x.items,Xv.Name)}}t(Ke,"addEvaluatedFrom")}t(Vce,"callRef");wO.callRef=Vce;wO.default=Znr});var eNe=or(Q6e=>{"use strict";Object.defineProperty(Q6e,"__esModule",{value:!0});var Qnr=got(),eir=Hce(),tir=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Qnr.default,eir.default];Q6e.default=tir});var Sot=or(tNe=>{"use strict";Object.defineProperty(tNe,"__esModule",{value:!0});var Gce=Cc(),cI=Gce.operators,Yce={maximum:{okStr:"<=",ok:cI.LTE,fail:cI.GT},minimum:{okStr:">=",ok:cI.GTE,fail:cI.LT},exclusiveMaximum:{okStr:"<",ok:cI.LT,fail:cI.GTE},exclusiveMinimum:{okStr:">",ok:cI.GT,fail:cI.LTE}},rir={message:t(({keyword:o,schemaCode:s})=>(0,Gce.str)`must be ${Yce[o].okStr} ${s}`,"message"),params:t(({keyword:o,schemaCode:s})=>(0,Gce._)`{comparison: ${Yce[o].okStr}, limit: ${s}}`,"params")},nir={keyword:Object.keys(Yce),type:"number",schemaType:"number",$data:!0,error:rir,code(o){let{keyword:s,data:f,schemaCode:d}=o;o.fail$data((0,Gce._)`${f} ${Yce[s].fail} ${d} || isNaN(${f})`)}};tNe.default=nir});var Tot=or(rNe=>{"use strict";Object.defineProperty(rNe,"__esModule",{value:!0});var CH=Cc(),iir={message:t(({schemaCode:o})=>(0,CH.str)`must be multiple of ${o}`,"message"),params:t(({schemaCode:o})=>(0,CH._)`{multipleOf: ${o}}`,"params")},sir={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:iir,code(o){let{gen:s,data:f,schemaCode:d,it:y}=o,x=y.opts.multipleOfPrecision,P=s.let("res"),F=x?(0,CH._)`Math.abs(Math.round(${P}) - ${P}) > 1e-${x}`:(0,CH._)`${P} !== parseInt(${P})`;o.fail$data((0,CH._)`(${d} === 0 || (${P} = ${f}/${d}, ${F}))`)}};rNe.default=sir});var Eot=or(nNe=>{"use strict";Object.defineProperty(nNe,"__esModule",{value:!0});function xot(o){let s=o.length,f=0,d=0,y;for(;d<s;)f++,y=o.charCodeAt(d++),y>=55296&&y<=56319&&d<s&&(y=o.charCodeAt(d),(y&64512)===56320&&d++);return f}t(xot,"ucs2length");nNe.default=xot;xot.code='require("ajv/dist/runtime/ucs2length").default'});var Cot=or(iNe=>{"use strict";Object.defineProperty(iNe,"__esModule",{value:!0});var DO=Cc(),air=ru(),oir=Eot(),cir={message({keyword:o,schemaCode:s}){let f=o==="maxLength"?"more":"fewer";return(0,DO.str)`must NOT have ${f} than ${s} characters`},params:t(({schemaCode:o})=>(0,DO._)`{limit: ${o}}`,"params")},lir={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:cir,code(o){let{keyword:s,data:f,schemaCode:d,it:y}=o,x=s==="maxLength"?DO.operators.GT:DO.operators.LT,P=y.opts.unicode===!1?(0,DO._)`${f}.length`:(0,DO._)`${(0,air.useFunc)(o.gen,oir.default)}(${f})`;o.fail$data((0,DO._)`${P} ${x} ${d}`)}};iNe.default=lir});var kot=or(sNe=>{"use strict";Object.defineProperty(sNe,"__esModule",{value:!0});var uir=pT(),Kce=Cc(),fir={message:t(({schemaCode:o})=>(0,Kce.str)`must match pattern "${o}"`,"message"),params:t(({schemaCode:o})=>(0,Kce._)`{pattern: ${o}}`,"params")},_ir={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:fir,code(o){let{data:s,$data:f,schema:d,schemaCode:y,it:x}=o,P=x.opts.unicodeRegExp?"u":"",F=f?(0,Kce._)`(new RegExp(${y}, ${P}))`:(0,uir.usePattern)(o,d);o.fail$data((0,Kce._)`!${F}.test(${s})`)}};sNe.default=_ir});var wot=or(aNe=>{"use strict";Object.defineProperty(aNe,"__esModule",{value:!0});var kH=Cc(),pir={message({keyword:o,schemaCode:s}){let f=o==="maxProperties"?"more":"fewer";return(0,kH.str)`must NOT have ${f} than ${s} properties`},params:t(({schemaCode:o})=>(0,kH._)`{limit: ${o}}`,"params")},dir={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:pir,code(o){let{keyword:s,data:f,schemaCode:d}=o,y=s==="maxProperties"?kH.operators.GT:kH.operators.LT;o.fail$data((0,kH._)`Object.keys(${f}).length ${y} ${d}`)}};aNe.default=dir});var Dot=or(oNe=>{"use strict";Object.defineProperty(oNe,"__esModule",{value:!0});var wH=pT(),DH=Cc(),mir=ru(),hir={message:t(({params:{missingProperty:o}})=>(0,DH.str)`must have required property '${o}'`,"message"),params:t(({params:{missingProperty:o}})=>(0,DH._)`{missingProperty: ${o}}`,"params")},gir={keyword:"required",type:"object",schemaType:"array",$data:!0,error:hir,code(o){let{gen:s,schema:f,schemaCode:d,data:y,$data:x,it:P}=o,{opts:F}=P;if(!x&&f.length===0)return;let J=f.length>=F.loopRequired;if(P.allErrors?G():Se(),F.strictRequired){let Ke=o.parentSchema.properties,{definedProperties:$e}=o.it;for(let Fe of f)if(Ke?.[Fe]===void 0&&!$e.has(Fe)){let Gt=P.schemaEnv.baseId+P.errSchemaPath,jt=`required property "${Fe}" is not defined at "${Gt}" (strictRequired)`;(0,mir.checkStrictMode)(P,jt,P.opts.strictRequired)}}function G(){if(J||x)o.block$data(DH.nil,de);else for(let Ke of f)(0,wH.checkReportMissingProp)(o,Ke)}t(G,"allErrorsMode");function Se(){let Ke=s.let("missing");if(J||x){let $e=s.let("valid",!0);o.block$data($e,()=>ae(Ke,$e)),o.ok($e)}else s.if((0,wH.checkMissingProp)(o,f,Ke)),(0,wH.reportMissingProp)(o,Ke),s.else()}t(Se,"exitOnErrorMode");function de(){s.forOf("prop",d,Ke=>{o.setParams({missingProperty:Ke}),s.if((0,wH.noPropertyInData)(s,y,Ke,F.ownProperties),()=>o.error())})}t(de,"loopAllRequired");function ae(Ke,$e){o.setParams({missingProperty:Ke}),s.forOf(Ke,d,()=>{s.assign($e,(0,wH.propertyInData)(s,y,Ke,F.ownProperties)),s.if((0,DH.not)($e),()=>{o.error(),s.break()})},DH.nil)}t(ae,"loopUntilMissing")}};oNe.default=gir});var Pot=or(cNe=>{"use strict";Object.defineProperty(cNe,"__esModule",{value:!0});var PH=Cc(),yir={message({keyword:o,schemaCode:s}){let f=o==="maxItems"?"more":"fewer";return(0,PH.str)`must NOT have ${f} than ${s} items`},params:t(({schemaCode:o})=>(0,PH._)`{limit: ${o}}`,"params")},vir={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:yir,code(o){let{keyword:s,data:f,schemaCode:d}=o,y=s==="maxItems"?PH.operators.GT:PH.operators.LT;o.fail$data((0,PH._)`${f}.length ${y} ${d}`)}};cNe.default=vir});var Xce=or(lNe=>{"use strict";Object.defineProperty(lNe,"__esModule",{value:!0});var Aot=N6e();Aot.code='require("ajv/dist/runtime/equal").default';lNe.default=Aot});var Not=or(fNe=>{"use strict";Object.defineProperty(fNe,"__esModule",{value:!0});var uNe=mH(),E0=Cc(),bir=ru(),Sir=Xce(),Tir={message:t(({params:{i:o,j:s}})=>(0,E0.str)`must NOT have duplicate items (items ## ${s} and ${o} are identical)`,"message"),params:t(({params:{i:o,j:s}})=>(0,E0._)`{i: ${o}, j: ${s}}`,"params")},xir={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Tir,code(o){let{gen:s,data:f,$data:d,schema:y,parentSchema:x,schemaCode:P,it:F}=o;if(!d&&!y)return;let J=s.let("valid"),G=x.items?(0,uNe.getSchemaTypes)(x.items):[];o.block$data(J,Se,(0,E0._)`${P} === false`),o.ok(J);function Se(){let $e=s.let("i",(0,E0._)`${f}.length`),Fe=s.let("j");o.setParams({i:$e,j:Fe}),s.assign(J,!0),s.if((0,E0._)`${$e} > 1`,()=>(de()?ae:Ke)($e,Fe))}t(Se,"validateUniqueItems");function de(){return G.length>0&&!G.some($e=>$e==="object"||$e==="array")}t(de,"canOptimize");function ae($e,Fe){let Gt=s.name("item"),jt=(0,uNe.checkDataTypes)(G,Gt,F.opts.strictNumbers,uNe.DataType.Wrong),Pr=s.const("indices",(0,E0._)`{}`);s.for((0,E0._)`;${$e}--;`,()=>{s.let(Gt,(0,E0._)`${f}[${$e}]`),s.if(jt,(0,E0._)`continue`),G.length>1&&s.if((0,E0._)`typeof ${Gt} == "string"`,(0,E0._)`${Gt} += "_"`),s.if((0,E0._)`typeof ${Pr}[${Gt}] == "number"`,()=>{s.assign(Fe,(0,E0._)`${Pr}[${Gt}]`),o.error(),s.assign(J,!1).break()}).code((0,E0._)`${Pr}[${Gt}] = ${$e}`)})}t(ae,"loopN");function Ke($e,Fe){let Gt=(0,bir.useFunc)(s,Sir.default),jt=s.name("outer");s.label(jt).for((0,E0._)`;${$e}--;`,()=>s.for((0,E0._)`${Fe} = ${$e}; ${Fe}--;`,()=>s.if((0,E0._)`${Gt}(${f}[${$e}], ${f}[${Fe}])`,()=>{o.error(),s.assign(J,!1).break(jt)})))}t(Ke,"loopN2")}};fNe.default=xir});var Iot=or(pNe=>{"use strict";Object.defineProperty(pNe,"__esModule",{value:!0});var _Ne=Cc(),Eir=ru(),Cir=Xce(),kir={message:"must be equal to constant",params:t(({schemaCode:o})=>(0,_Ne._)`{allowedValue: ${o}}`,"params")},wir={keyword:"const",$data:!0,error:kir,code(o){let{gen:s,data:f,$data:d,schemaCode:y,schema:x}=o;d||x&&typeof x=="object"?o.fail$data((0,_Ne._)`!${(0,Eir.useFunc)(s,Cir.default)}(${f}, ${y})`):o.fail((0,_Ne._)`${x} !== ${f}`)}};pNe.default=wir});var Oot=or(dNe=>{"use strict";Object.defineProperty(dNe,"__esModule",{value:!0});var AH=Cc(),Dir=ru(),Pir=Xce(),Air={message:"must be equal to one of the allowed values",params:t(({schemaCode:o})=>(0,AH._)`{allowedValues: ${o}}`,"params")},Nir={keyword:"enum",schemaType:"array",$data:!0,error:Air,code(o){let{gen:s,data:f,$data:d,schema:y,schemaCode:x,it:P}=o;if(!d&&y.length===0)throw new Error("enum must have non-empty array");let F=y.length>=P.opts.loopEnum,J,G=t(()=>J??(J=(0,Dir.useFunc)(s,Pir.default)),"getEql"),Se;if(F||d)Se=s.let("valid"),o.block$data(Se,de);else{if(!Array.isArray(y))throw new Error("ajv implementation error");let Ke=s.const("vSchema",x);Se=(0,AH.or)(...y.map(($e,Fe)=>ae(Ke,Fe)))}o.pass(Se);function de(){s.assign(Se,!1),s.forOf("v",x,Ke=>s.if((0,AH._)`${G()}(${f}, ${Ke})`,()=>s.assign(Se,!0).break()))}t(de,"loopEnum");function ae(Ke,$e){let Fe=y[$e];return typeof Fe=="object"&&Fe!==null?(0,AH._)`${G()}(${f}, ${Ke}[${$e}])`:(0,AH._)`${f} === ${Fe}`}t(ae,"equalCode")}};dNe.default=Nir});var hNe=or(mNe=>{"use strict";Object.defineProperty(mNe,"__esModule",{value:!0});var Iir=Sot(),Oir=Tot(),Fir=Cot(),Lir=kot(),Rir=wot(),Mir=Dot(),jir=Pot(),Bir=Not(),Uir=Iot(),zir=Oot(),$ir=[Iir.default,Oir.default,Fir.default,Lir.default,Rir.default,Mir.default,jir.default,Bir.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Uir.default,zir.default];mNe.default=$ir});var yNe=or(NH=>{"use strict";Object.defineProperty(NH,"__esModule",{value:!0});NH.validateAdditionalItems=void 0;var PO=Cc(),gNe=ru(),Jir={message:t(({params:{len:o}})=>(0,PO.str)`must NOT have more than ${o} items`,"message"),params:t(({params:{len:o}})=>(0,PO._)`{limit: ${o}}`,"params")},Wir={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Jir,code(o){let{parentSchema:s,it:f}=o,{items:d}=s;if(!Array.isArray(d)){(0,gNe.checkStrictMode)(f,'"additionalItems" is ignored when "items" is not an array of schemas');return}Fot(o,d)}};function Fot(o,s){let{gen:f,schema:d,data:y,keyword:x,it:P}=o;P.items=!0;let F=f.const("len",(0,PO._)`${y}.length`);if(d===!1)o.setParams({len:s.length}),o.pass((0,PO._)`${F} <= ${s.length}`);else if(typeof d=="object"&&!(0,gNe.alwaysValidSchema)(P,d)){let G=f.var("valid",(0,PO._)`${F} <= ${s.length}`);f.if((0,PO.not)(G),()=>J(G)),o.ok(G)}function J(G){f.forRange("i",s.length,F,Se=>{o.subschema({keyword:x,dataProp:Se,dataPropType:gNe.Type.Num},G),P.allErrors||f.if((0,PO.not)(G),()=>f.break())})}t(J,"validateItems")}t(Fot,"validateAdditionalItems");NH.validateAdditionalItems=Fot;NH.default=Wir});var vNe=or(IH=>{"use strict";Object.defineProperty(IH,"__esModule",{value:!0});IH.validateTuple=void 0;var Lot=Cc(),Zce=ru(),qir=pT(),Vir={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(o){let{schema:s,it:f}=o;if(Array.isArray(s))return Rot(o,"additionalItems",s);f.items=!0,!(0,Zce.alwaysValidSchema)(f,s)&&o.ok((0,qir.validateArray)(o))}};function Rot(o,s,f=o.schema){let{gen:d,parentSchema:y,data:x,keyword:P,it:F}=o;Se(y),F.opts.unevaluated&&f.length&&F.items!==!0&&(F.items=Zce.mergeEvaluated.items(d,f.length,F.items));let J=d.name("valid"),G=d.const("len",(0,Lot._)`${x}.length`);f.forEach((de,ae)=>{(0,Zce.alwaysValidSchema)(F,de)||(d.if((0,Lot._)`${G} > ${ae}`,()=>o.subschema({keyword:P,schemaProp:ae,dataProp:ae},J)),o.ok(J))});function Se(de){let{opts:ae,errSchemaPath:Ke}=F,$e=f.length,Fe=$e===de.minItems&&($e===de.maxItems||de[s]===!1);if(ae.strictTuples&&!Fe){let Gt=`"${P}" is ${$e}-tuple, but minItems or maxItems/${s} are not specified or different at path "${Ke}"`;(0,Zce.checkStrictMode)(F,Gt,ae.strictTuples)}}t(Se,"checkStrictTuple")}t(Rot,"validateTuple");IH.validateTuple=Rot;IH.default=Vir});var Mot=or(bNe=>{"use strict";Object.defineProperty(bNe,"__esModule",{value:!0});var Hir=vNe(),Gir={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t(o=>(0,Hir.validateTuple)(o,"items"),"code")};bNe.default=Gir});var Bot=or(SNe=>{"use strict";Object.defineProperty(SNe,"__esModule",{value:!0});var jot=Cc(),Yir=ru(),Kir=pT(),Xir=yNe(),Zir={message:t(({params:{len:o}})=>(0,jot.str)`must NOT have more than ${o} items`,"message"),params:t(({params:{len:o}})=>(0,jot._)`{limit: ${o}}`,"params")},Qir={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:Zir,code(o){let{schema:s,parentSchema:f,it:d}=o,{prefixItems:y}=f;d.items=!0,!(0,Yir.alwaysValidSchema)(d,s)&&(y?(0,Xir.validateAdditionalItems)(o,y):o.ok((0,Kir.validateArray)(o)))}};SNe.default=Qir});var Uot=or(TNe=>{"use strict";Object.defineProperty(TNe,"__esModule",{value:!0});var mT=Cc(),Qce=ru(),esr={message:t(({params:{min:o,max:s}})=>s===void 0?(0,mT.str)`must contain at least ${o} valid item(s)`:(0,mT.str)`must contain at least ${o} and no more than ${s} valid item(s)`,"message"),params:t(({params:{min:o,max:s}})=>s===void 0?(0,mT._)`{minContains: ${o}}`:(0,mT._)`{minContains: ${o}, maxContains: ${s}}`,"params")},tsr={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:esr,code(o){let{gen:s,schema:f,parentSchema:d,data:y,it:x}=o,P,F,{minContains:J,maxContains:G}=d;x.opts.next?(P=J===void 0?1:J,F=G):P=1;let Se=s.const("len",(0,mT._)`${y}.length`);if(o.setParams({min:P,max:F}),F===void 0&&P===0){(0,Qce.checkStrictMode)(x,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(F!==void 0&&P>F){(0,Qce.checkStrictMode)(x,'"minContains" > "maxContains" is always invalid'),o.fail();return}if((0,Qce.alwaysValidSchema)(x,f)){let Fe=(0,mT._)`${Se} >= ${P}`;F!==void 0&&(Fe=(0,mT._)`${Fe} && ${Se} <= ${F}`),o.pass(Fe);return}x.items=!0;let de=s.name("valid");F===void 0&&P===1?Ke(de,()=>s.if(de,()=>s.break())):P===0?(s.let(de,!0),F!==void 0&&s.if((0,mT._)`${y}.length > 0`,ae)):(s.let(de,!1),ae()),o.result(de,()=>o.reset());function ae(){let Fe=s.name("_valid"),Gt=s.let("count",0);Ke(Fe,()=>s.if(Fe,()=>$e(Gt)))}t(ae,"validateItemsWithCount");function Ke(Fe,Gt){s.forRange("i",0,Se,jt=>{o.subschema({keyword:"contains",dataProp:jt,dataPropType:Qce.Type.Num,compositeRule:!0},Fe),Gt()})}t(Ke,"validateItems");function $e(Fe){s.code((0,mT._)`${Fe}++`),F===void 0?s.if((0,mT._)`${Fe} >= ${P}`,()=>s.assign(de,!0).break()):(s.if((0,mT._)`${Fe} > ${F}`,()=>s.assign(de,!1).break()),P===1?s.assign(de,!0):s.if((0,mT._)`${Fe} >= ${P}`,()=>s.assign(de,!0)))}t($e,"checkLimits")}};TNe.default=tsr});var ele=or(Mk=>{"use strict";Object.defineProperty(Mk,"__esModule",{value:!0});Mk.validateSchemaDeps=Mk.validatePropertyDeps=Mk.error=void 0;var xNe=Cc(),rsr=ru(),OH=pT();Mk.error={message:t(({params:{property:o,depsCount:s,deps:f}})=>{let d=s===1?"property":"properties";return(0,xNe.str)`must have ${d} ${f} when property ${o} is present`},"message"),params:t(({params:{property:o,depsCount:s,deps:f,missingProperty:d}})=>(0,xNe._)`{property: ${o},
|
|
106
64
|
missingProperty: ${d},
|
|
107
65
|
depsCount: ${s},
|
|
108
|
-
deps: ${f}}`,"params")};var uur={keyword:"dependencies",type:"object",schemaType:"object",error:$k.error,code(o){let[s,f]=fur(o);Eut(o,s),Cut(o,f)}};function fur({schema:o}){let s={},f={};for(let d in o){if(d==="__proto__")continue;let y=Array.isArray(o[d])?s:f;y[d]=o[d]}return[s,f]}t(fur,"splitDependencies");function Eut(o,s=o.schema){let{gen:f,data:d,it:y}=o;if(Object.keys(s).length===0)return;let x=f.let("missing");for(let P in s){let F=s[P];if(F.length===0)continue;let J=(0,KH.propertyInData)(f,d,P,y.opts.ownProperties);o.setParams({property:P,depsCount:F.length,deps:F.join(", ")}),y.allErrors?f.if(J,()=>{for(let G of F)(0,KH.checkReportMissingProp)(o,G)}):(f.if((0,WIe._)`${J} && (${(0,KH.checkMissingProp)(o,F,x)})`),(0,KH.reportMissingProp)(o,x),f.else())}}t(Eut,"validatePropertyDeps");$k.validatePropertyDeps=Eut;function Cut(o,s=o.schema){let{gen:f,data:d,keyword:y,it:x}=o,P=f.name("valid");for(let F in s)(0,lur.alwaysValidSchema)(x,s[F])||(f.if((0,KH.propertyInData)(f,d,F,x.opts.ownProperties),()=>{let J=o.subschema({keyword:y,schemaProp:F},P);o.mergeValidEvaluated(J,P)},()=>f.var(P,!0)),o.ok(P))}t(Cut,"validateSchemaDeps");$k.validateSchemaDeps=Cut;$k.default=uur});var wut=or(qIe=>{"use strict";Object.defineProperty(qIe,"__esModule",{value:!0});var kut=Cc(),_ur=ru(),pur={message:"property name must be valid",params:t(({params:o})=>(0,kut._)`{propertyName: ${o.propertyName}}`,"params")},dur={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:pur,code(o){let{gen:s,schema:f,data:d,it:y}=o;if((0,_ur.alwaysValidSchema)(y,f))return;let x=s.name("valid");s.forIn("key",d,P=>{o.setParams({propertyName:P}),o.subschema({keyword:"propertyNames",data:P,dataTypes:["string"],propertyName:P,compositeRule:!0},x),s.if((0,kut.not)(x),()=>{o.error(!0),y.allErrors||s.break()})}),o.ok(x)}};qIe.default=dur});var HIe=or(VIe=>{"use strict";Object.defineProperty(VIe,"__esModule",{value:!0});var Dle=gT(),OE=Cc(),mur=hT(),Ple=ru(),hur={message:"must NOT have additional properties",params:t(({params:o})=>(0,OE._)`{additionalProperty: ${o.additionalProperty}}`,"params")},gur={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:hur,code(o){let{gen:s,schema:f,parentSchema:d,data:y,errsCount:x,it:P}=o;if(!x)throw new Error("ajv implementation error");let{allErrors:F,opts:J}=P;if(P.props=!0,J.removeAdditional!=="all"&&(0,Ple.alwaysValidSchema)(P,f))return;let G=(0,Dle.allSchemaProperties)(d.properties),Se=(0,Dle.allSchemaProperties)(d.patternProperties);de(),o.ok((0,OE._)`${x} === ${mur.default.errors}`);function de(){s.forIn("key",y,Gt=>{!G.length&&!Se.length?$e(Gt):s.if(ae(Gt),()=>$e(Gt))})}t(de,"checkAdditionalProperties");function ae(Gt){let jt;if(G.length>8){let Pr=(0,Ple.schemaRefOrVal)(P,d.properties,"properties");jt=(0,Dle.isOwnProperty)(s,Pr,Gt)}else G.length?jt=(0,OE.or)(...G.map(Pr=>(0,OE._)`${Gt} === ${Pr}`)):jt=OE.nil;return Se.length&&(jt=(0,OE.or)(jt,...Se.map(Pr=>(0,OE._)`${(0,Dle.usePattern)(o,Pr)}.test(${Gt})`))),(0,OE.not)(jt)}t(ae,"isAdditional");function Ke(Gt){s.code((0,OE._)`delete ${y}[${Gt}]`)}t(Ke,"deleteAdditional");function $e(Gt){if(J.removeAdditional==="all"||J.removeAdditional&&f===!1){Ke(Gt);return}if(f===!1){o.setParams({additionalProperty:Gt}),o.error(),F||s.break();return}if(typeof f=="object"&&!(0,Ple.alwaysValidSchema)(P,f)){let jt=s.name("valid");J.removeAdditional==="failing"?(Fe(Gt,jt,!1),s.if((0,OE.not)(jt),()=>{o.reset(),Ke(Gt)})):(Fe(Gt,jt),F||s.if((0,OE.not)(jt),()=>s.break()))}}t($e,"additionalPropertyCode");function Fe(Gt,jt,Pr){let Fn={keyword:"additionalProperties",dataProp:Gt,dataPropType:Ple.Type.Str};Pr===!1&&Object.assign(Fn,{compositeRule:!0,createErrors:!1,allErrors:!1}),o.subschema(Fn,jt)}t(Fe,"applyAdditionalSchema")}};VIe.default=gur});var Aut=or(YIe=>{"use strict";Object.defineProperty(YIe,"__esModule",{value:!0});var yur=AM(),Dut=gT(),GIe=ru(),Put=HIe(),vur={keyword:"properties",type:"object",schemaType:"object",code(o){let{gen:s,schema:f,parentSchema:d,data:y,it:x}=o;x.opts.removeAdditional==="all"&&d.additionalProperties===void 0&&Put.default.code(new yur.KeywordCxt(x,Put.default,"additionalProperties"));let P=(0,Dut.allSchemaProperties)(f);for(let de of P)x.definedProperties.add(de);x.opts.unevaluated&&P.length&&x.props!==!0&&(x.props=GIe.mergeEvaluated.props(s,(0,GIe.toHash)(P),x.props));let F=P.filter(de=>!(0,GIe.alwaysValidSchema)(x,f[de]));if(F.length===0)return;let J=s.name("valid");for(let de of F)G(de)?Se(de):(s.if((0,Dut.propertyInData)(s,y,de,x.opts.ownProperties)),Se(de),x.allErrors||s.else().var(J,!0),s.endIf()),o.it.definedProperties.add(de),o.ok(J);function G(de){return x.opts.useDefaults&&!x.compositeRule&&f[de].default!==void 0}t(G,"hasDefault");function Se(de){o.subschema({keyword:"properties",schemaProp:de,dataProp:de},J)}t(Se,"applyPropertySchema")}};YIe.default=vur});var Fut=or(KIe=>{"use strict";Object.defineProperty(KIe,"__esModule",{value:!0});var Nut=gT(),Ale=Cc(),Iut=ru(),Out=ru(),bur={keyword:"patternProperties",type:"object",schemaType:"object",code(o){let{gen:s,schema:f,data:d,parentSchema:y,it:x}=o,{opts:P}=x,F=(0,Nut.allSchemaProperties)(f),J=F.filter(Fe=>(0,Iut.alwaysValidSchema)(x,f[Fe]));if(F.length===0||J.length===F.length&&(!x.opts.unevaluated||x.props===!0))return;let G=P.strictSchema&&!P.allowMatchingProperties&&y.properties,Se=s.name("valid");x.props!==!0&&!(x.props instanceof Ale.Name)&&(x.props=(0,Out.evaluatedPropsToName)(s,x.props));let{props:de}=x;ae();function ae(){for(let Fe of F)G&&Ke(Fe),x.allErrors?$e(Fe):(s.var(Se,!0),$e(Fe),s.if(Se))}t(ae,"validatePatternProperties");function Ke(Fe){for(let Gt in G)new RegExp(Fe).test(Gt)&&(0,Iut.checkStrictMode)(x,`property ${Gt} matches pattern ${Fe} (use allowMatchingProperties)`)}t(Ke,"checkMatchingProperties");function $e(Fe){s.forIn("key",d,Gt=>{s.if((0,Ale._)`${(0,Nut.usePattern)(o,Fe)}.test(${Gt})`,()=>{let jt=J.includes(Fe);jt||o.subschema({keyword:"patternProperties",schemaProp:Fe,dataProp:Gt,dataPropType:Out.Type.Str},Se),x.opts.unevaluated&&de!==!0?s.assign((0,Ale._)`${de}[${Gt}]`,!0):!jt&&!x.allErrors&&s.if((0,Ale.not)(Se),()=>s.break())})})}t($e,"validateProperties")}};KIe.default=bur});var Lut=or(XIe=>{"use strict";Object.defineProperty(XIe,"__esModule",{value:!0});var Sur=ru(),Tur={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(o){let{gen:s,schema:f,it:d}=o;if((0,Sur.alwaysValidSchema)(d,f)){o.fail();return}let y=s.name("valid");o.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},y),o.failResult(y,()=>o.reset(),()=>o.error())},error:{message:"must NOT be valid"}};XIe.default=Tur});var Rut=or(ZIe=>{"use strict";Object.defineProperty(ZIe,"__esModule",{value:!0});var xur=gT(),Eur={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:xur.validateUnion,error:{message:"must match a schema in anyOf"}};ZIe.default=Eur});var Mut=or(QIe=>{"use strict";Object.defineProperty(QIe,"__esModule",{value:!0});var Nle=Cc(),Cur=ru(),kur={message:"must match exactly one schema in oneOf",params:t(({params:o})=>(0,Nle._)`{passingSchemas: ${o.passing}}`,"params")},wur={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:kur,code(o){let{gen:s,schema:f,parentSchema:d,it:y}=o;if(!Array.isArray(f))throw new Error("ajv implementation error");if(y.opts.discriminator&&d.discriminator)return;let x=f,P=s.let("valid",!1),F=s.let("passing",null),J=s.name("_valid");o.setParams({passing:F}),s.block(G),o.result(P,()=>o.reset(),()=>o.error(!0));function G(){x.forEach((Se,de)=>{let ae;(0,Cur.alwaysValidSchema)(y,Se)?s.var(J,!0):ae=o.subschema({keyword:"oneOf",schemaProp:de,compositeRule:!0},J),de>0&&s.if((0,Nle._)`${J} && ${P}`).assign(P,!1).assign(F,(0,Nle._)`[${F}, ${de}]`).else(),s.if(J,()=>{s.assign(P,!0),s.assign(F,de),ae&&o.mergeEvaluated(ae,Nle.Name)})})}t(G,"validateOneOf")}};QIe.default=wur});var jut=or(e4e=>{"use strict";Object.defineProperty(e4e,"__esModule",{value:!0});var Dur=ru(),Pur={keyword:"allOf",schemaType:"array",code(o){let{gen:s,schema:f,it:d}=o;if(!Array.isArray(f))throw new Error("ajv implementation error");let y=s.name("valid");f.forEach((x,P)=>{if((0,Dur.alwaysValidSchema)(d,x))return;let F=o.subschema({keyword:"allOf",schemaProp:P},y);o.ok(y),o.mergeEvaluated(F)})}};e4e.default=Pur});var zut=or(t4e=>{"use strict";Object.defineProperty(t4e,"__esModule",{value:!0});var Ile=Cc(),Uut=ru(),Aur={message:t(({params:o})=>(0,Ile.str)`must match "${o.ifClause}" schema`,"message"),params:t(({params:o})=>(0,Ile._)`{failingKeyword: ${o.ifClause}}`,"params")},Nur={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Aur,code(o){let{gen:s,parentSchema:f,it:d}=o;f.then===void 0&&f.else===void 0&&(0,Uut.checkStrictMode)(d,'"if" without "then" and "else" is ignored');let y=But(d,"then"),x=But(d,"else");if(!y&&!x)return;let P=s.let("valid",!0),F=s.name("_valid");if(J(),o.reset(),y&&x){let Se=s.let("ifClause");o.setParams({ifClause:Se}),s.if(F,G("then",Se),G("else",Se))}else y?s.if(F,G("then")):s.if((0,Ile.not)(F),G("else"));o.pass(P,()=>o.error(!0));function J(){let Se=o.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},F);o.mergeEvaluated(Se)}t(J,"validateIf");function G(Se,de){return()=>{let ae=o.subschema({keyword:Se},F);s.assign(P,F),o.mergeValidEvaluated(ae,P),de?s.assign(de,(0,Ile._)`${Se}`):o.setParams({ifClause:Se})}}t(G,"validateClause")}};function But(o,s){let f=o.schema[s];return f!==void 0&&!(0,Uut.alwaysValidSchema)(o,f)}t(But,"hasSchema");t4e.default=Nur});var $ut=or(r4e=>{"use strict";Object.defineProperty(r4e,"__esModule",{value:!0});var Iur=ru(),Our={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:o,parentSchema:s,it:f}){s.if===void 0&&(0,Iur.checkStrictMode)(f,`"${o}" without "if" is ignored`)}};r4e.default=Our});var i4e=or(n4e=>{"use strict";Object.defineProperty(n4e,"__esModule",{value:!0});var Fur=BIe(),Lur=but(),Rur=UIe(),Mur=Tut(),jur=xut(),Bur=wle(),Uur=wut(),zur=HIe(),$ur=Aut(),Jur=Fut(),Wur=Lut(),qur=Rut(),Vur=Mut(),Hur=jut(),Gur=zut(),Yur=$ut();function Kur(o=!1){let s=[Wur.default,qur.default,Vur.default,Hur.default,Gur.default,Yur.default,Uur.default,zur.default,Bur.default,$ur.default,Jur.default];return o?s.push(Lur.default,Mur.default):s.push(Fur.default,Rur.default),s.push(jur.default),s}t(Kur,"getApplicator");n4e.default=Kur});var Jut=or(s4e=>{"use strict";Object.defineProperty(s4e,"__esModule",{value:!0});var Cm=Cc(),Xur={message:t(({schemaCode:o})=>(0,Cm.str)`must match format "${o}"`,"message"),params:t(({schemaCode:o})=>(0,Cm._)`{format: ${o}}`,"params")},Zur={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:Xur,code(o,s){let{gen:f,data:d,$data:y,schema:x,schemaCode:P,it:F}=o,{opts:J,errSchemaPath:G,schemaEnv:Se,self:de}=F;if(!J.validateFormats)return;y?ae():Ke();function ae(){let $e=f.scopeValue("formats",{ref:de.formats,code:J.code.formats}),Fe=f.const("fDef",(0,Cm._)`${$e}[${P}]`),Gt=f.let("fType"),jt=f.let("format");f.if((0,Cm._)`typeof ${Fe} == "object" && !(${Fe} instanceof RegExp)`,()=>f.assign(Gt,(0,Cm._)`${Fe}.type || "string"`).assign(jt,(0,Cm._)`${Fe}.validate`),()=>f.assign(Gt,(0,Cm._)`"string"`).assign(jt,Fe)),o.fail$data((0,Cm.or)(Pr(),Fn()));function Pr(){return J.strictSchema===!1?Cm.nil:(0,Cm._)`${P} && !${jt}`}t(Pr,"unknownFmt");function Fn(){let sn=Se.$async?(0,Cm._)`(${Fe}.async ? await ${jt}(${d}) : ${jt}(${d}))`:(0,Cm._)`${jt}(${d})`,Un=(0,Cm._)`(typeof ${jt} == "function" ? ${sn} : ${jt}.test(${d}))`;return(0,Cm._)`${jt} && ${jt} !== true && ${Gt} === ${s} && !${Un}`}t(Fn,"invalidFmt")}t(ae,"validate$DataFormat");function Ke(){let $e=de.formats[x];if(!$e){Pr();return}if($e===!0)return;let[Fe,Gt,jt]=Fn($e);Fe===s&&o.pass(sn());function Pr(){if(J.strictSchema===!1){de.logger.warn(Un());return}throw new Error(Un());function Un(){return`unknown format "${x}" ignored in schema at path "${G}"`}}t(Pr,"unknownFormat");function Fn(Un){let Er=Un instanceof RegExp?(0,Cm.regexpCode)(Un):J.code.formats?(0,Cm._)`${J.code.formats}${(0,Cm.getProperty)(x)}`:void 0,vr=f.scopeValue("formats",{key:x,ref:Un,code:Er});return typeof Un=="object"&&!(Un instanceof RegExp)?[Un.type||"string",Un.validate,(0,Cm._)`${vr}.validate`]:["string",Un,vr]}t(Fn,"getFormat");function sn(){if(typeof $e=="object"&&!($e instanceof RegExp)&&$e.async){if(!Se.$async)throw new Error("async format in sync schema");return(0,Cm._)`await ${jt}(${d})`}return typeof Gt=="function"?(0,Cm._)`${jt}(${d})`:(0,Cm._)`${jt}.test(${d})`}t(sn,"validCondition")}t(Ke,"validateFormat")}};s4e.default=Zur});var o4e=or(a4e=>{"use strict";Object.defineProperty(a4e,"__esModule",{value:!0});var Qur=Jut(),efr=[Qur.default];a4e.default=efr});var c4e=or(LM=>{"use strict";Object.defineProperty(LM,"__esModule",{value:!0});LM.contentVocabulary=LM.metadataVocabulary=void 0;LM.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];LM.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var qut=or(l4e=>{"use strict";Object.defineProperty(l4e,"__esModule",{value:!0});var tfr=SIe(),rfr=MIe(),nfr=i4e(),ifr=o4e(),Wut=c4e(),sfr=[tfr.default,rfr.default,(0,nfr.default)(),ifr.default,Wut.metadataVocabulary,Wut.contentVocabulary];l4e.default=sfr});var Hut=or(Ole=>{"use strict";Object.defineProperty(Ole,"__esModule",{value:!0});Ole.DiscrError=void 0;var Vut;(function(o){o.Tag="tag",o.Mapping="mapping"})(Vut||(Ole.DiscrError=Vut={}))});var _4e=or(f4e=>{"use strict";Object.defineProperty(f4e,"__esModule",{value:!0});var RM=Cc(),u4e=Hut(),Gut=MH(),afr=NM(),ofr=ru(),cfr={message:t(({params:{discrError:o,tagName:s}})=>o===u4e.DiscrError.Tag?`tag "${s}" must be string`:`value of tag "${s}" must be in oneOf`,"message"),params:t(({params:{discrError:o,tag:s,tagName:f}})=>(0,RM._)`{error: ${o}, tag: ${f}, tagValue: ${s}}`,"params")},lfr={keyword:"discriminator",type:"object",schemaType:"object",error:cfr,code(o){let{gen:s,data:f,schema:d,parentSchema:y,it:x}=o,{oneOf:P}=y;if(!x.opts.discriminator)throw new Error("discriminator: requires discriminator option");let F=d.propertyName;if(typeof F!="string")throw new Error("discriminator: requires propertyName");if(d.mapping)throw new Error("discriminator: mapping is not supported");if(!P)throw new Error("discriminator: requires oneOf keyword");let J=s.let("valid",!1),G=s.const("tag",(0,RM._)`${f}${(0,RM.getProperty)(F)}`);s.if((0,RM._)`typeof ${G} == "string"`,()=>Se(),()=>o.error(!1,{discrError:u4e.DiscrError.Tag,tag:G,tagName:F})),o.ok(J);function Se(){let Ke=ae();s.if(!1);for(let $e in Ke)s.elseIf((0,RM._)`${G} === ${$e}`),s.assign(J,de(Ke[$e]));s.else(),o.error(!1,{discrError:u4e.DiscrError.Mapping,tag:G,tagName:F}),s.endIf()}t(Se,"validateMapping");function de(Ke){let $e=s.name("valid"),Fe=o.subschema({keyword:"oneOf",schemaProp:Ke},$e);return o.mergeEvaluated(Fe,RM.Name),$e}t(de,"applyTagSchema");function ae(){var Ke;let $e={},Fe=jt(y),Gt=!0;for(let sn=0;sn<P.length;sn++){let Un=P[sn];if(Un?.$ref&&!(0,ofr.schemaHasRulesButRef)(Un,x.self.RULES)){let vr=Un.$ref;if(Un=Gut.resolveRef.call(x.self,x.schemaEnv.root,x.baseId,vr),Un instanceof Gut.SchemaEnv&&(Un=Un.schema),Un===void 0)throw new afr.default(x.opts.uriResolver,x.baseId,vr)}let Er=(Ke=Un?.properties)===null||Ke===void 0?void 0:Ke[F];if(typeof Er!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${F}"`);Gt=Gt&&(Fe||jt(Un)),Pr(Er,sn)}if(!Gt)throw new Error(`discriminator: "${F}" must be required`);return $e;function jt({required:sn}){return Array.isArray(sn)&&sn.includes(F)}function Pr(sn,Un){if(sn.const)Fn(sn.const,Un);else if(sn.enum)for(let Er of sn.enum)Fn(Er,Un);else throw new Error(`discriminator: "properties/${F}" must have "const" or "enum"`)}function Fn(sn,Un){if(typeof sn!="string"||sn in $e)throw new Error(`discriminator: "${F}" values must be unique strings`);$e[sn]=Un}}t(ae,"getMapping")}};f4e.default=lfr});var Yut=or((NNr,ufr)=>{ufr.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var Lle=or((Ap,p4e)=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0});Ap.MissingRefError=Ap.ValidationError=Ap.CodeGen=Ap.Name=Ap.nil=Ap.stringify=Ap.str=Ap._=Ap.KeywordCxt=Ap.Ajv=void 0;var ffr=yIe(),_fr=qut(),pfr=_4e(),Kut=Yut(),dfr=["/properties"],Fle="http://json-schema.org/draft-07/schema",MM=class extends ffr.default{static{t(this,"Ajv")}_addVocabularies(){super._addVocabularies(),_fr.default.forEach(s=>this.addVocabulary(s)),this.opts.discriminator&&this.addKeyword(pfr.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let s=this.opts.$data?this.$dataMetaSchema(Kut,dfr):Kut;this.addMetaSchema(s,Fle,!1),this.refs["http://json-schema.org/schema"]=Fle}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Fle)?Fle:void 0)}};Ap.Ajv=MM;p4e.exports=Ap=MM;p4e.exports.Ajv=MM;Object.defineProperty(Ap,"__esModule",{value:!0});Ap.default=MM;var mfr=AM();Object.defineProperty(Ap,"KeywordCxt",{enumerable:!0,get:t(function(){return mfr.KeywordCxt},"get")});var jM=Cc();Object.defineProperty(Ap,"_",{enumerable:!0,get:t(function(){return jM._},"get")});Object.defineProperty(Ap,"str",{enumerable:!0,get:t(function(){return jM.str},"get")});Object.defineProperty(Ap,"stringify",{enumerable:!0,get:t(function(){return jM.stringify},"get")});Object.defineProperty(Ap,"nil",{enumerable:!0,get:t(function(){return jM.nil},"get")});Object.defineProperty(Ap,"Name",{enumerable:!0,get:t(function(){return jM.Name},"get")});Object.defineProperty(Ap,"CodeGen",{enumerable:!0,get:t(function(){return jM.CodeGen},"get")});var hfr=RH();Object.defineProperty(Ap,"ValidationError",{enumerable:!0,get:t(function(){return hfr.default},"get")});var gfr=NM();Object.defineProperty(Ap,"MissingRefError",{enumerable:!0,get:t(function(){return gfr.default},"get")})});var Xut=or(BM=>{"use strict";Object.defineProperty(BM,"__esModule",{value:!0});BM.formatLimitDefinition=void 0;var yfr=Lle(),FE=Cc(),hI=FE.operators,Rle={formatMaximum:{okStr:"<=",ok:hI.LTE,fail:hI.GT},formatMinimum:{okStr:">=",ok:hI.GTE,fail:hI.LT},formatExclusiveMaximum:{okStr:"<",ok:hI.LT,fail:hI.GTE},formatExclusiveMinimum:{okStr:">",ok:hI.GT,fail:hI.LTE}},vfr={message:t(({keyword:o,schemaCode:s})=>(0,FE.str)`should be ${Rle[o].okStr} ${s}`,"message"),params:t(({keyword:o,schemaCode:s})=>(0,FE._)`{comparison: ${Rle[o].okStr}, limit: ${s}}`,"params")};BM.formatLimitDefinition={keyword:Object.keys(Rle),type:"string",schemaType:"string",$data:!0,error:vfr,code(o){let{gen:s,data:f,schemaCode:d,keyword:y,it:x}=o,{opts:P,self:F}=x;if(!P.validateFormats)return;let J=new yfr.KeywordCxt(x,F.RULES.all.format.definition,"format");J.$data?G():Se();function G(){let ae=s.scopeValue("formats",{ref:F.formats,code:P.code.formats}),Ke=s.const("fmt",(0,FE._)`${ae}[${J.schemaCode}]`);o.fail$data((0,FE.or)((0,FE._)`typeof ${Ke} != "object"`,(0,FE._)`${Ke} instanceof RegExp`,(0,FE._)`typeof ${Ke}.compare != "function"`,de(Ke)))}t(G,"validate$DataFormat");function Se(){let ae=J.schema,Ke=F.formats[ae];if(!Ke||Ke===!0)return;if(typeof Ke!="object"||Ke instanceof RegExp||typeof Ke.compare!="function")throw new Error(`"${y}": format "${ae}" does not define "compare" function`);let $e=s.scopeValue("formats",{key:ae,ref:Ke,code:P.code.formats?(0,FE._)`${P.code.formats}${(0,FE.getProperty)(ae)}`:void 0});o.fail$data(de($e))}t(Se,"validateFormat");function de(ae){return(0,FE._)`${ae}.compare(${f}, ${d}) ${Rle[y].fail} 0`}t(de,"compareCode")},dependencies:["format"]};var bfr=t(o=>(o.addKeyword(BM.formatLimitDefinition),o),"formatLimitPlugin");BM.default=bfr});var tft=or((XH,eft)=>{"use strict";Object.defineProperty(XH,"__esModule",{value:!0});var UM=Oct(),Sfr=Xut(),d4e=Cc(),Zut=new d4e.Name("fullFormats"),Tfr=new d4e.Name("fastFormats"),m4e=t((o,s={keywords:!0})=>{if(Array.isArray(s))return Qut(o,s,UM.fullFormats,Zut),o;let[f,d]=s.mode==="fast"?[UM.fastFormats,Tfr]:[UM.fullFormats,Zut],y=s.formats||UM.formatNames;return Qut(o,y,f,d),s.keywords&&(0,Sfr.default)(o),o},"formatsPlugin");m4e.get=(o,s="full")=>{let d=(s==="fast"?UM.fastFormats:UM.fullFormats)[o];if(!d)throw new Error(`Unknown format "${o}"`);return d};function Qut(o,s,f,d){var y,x;(y=(x=o.opts.code).formats)!==null&&y!==void 0||(x.formats=(0,d4e._)`require("ajv-formats/dist/formats").${d}`);for(let P of s)o.addFormat(P,f[P])}t(Qut,"addFormats");eft.exports=XH=m4e;Object.defineProperty(XH,"__esModule",{value:!0});XH.default=m4e});var g4e=or(ZH=>{"use strict";Object.defineProperty(ZH,"__esModule",{value:!0});ZH.dynamicAnchor=void 0;var h4e=Cc(),xfr=hT(),rft=MH(),Efr=ble(),Cfr={keyword:"$dynamicAnchor",schemaType:"string",code:t(o=>nft(o,o.schema),"code")};function nft(o,s){let{gen:f,it:d}=o;d.schemaEnv.root.dynamicAnchors[s]=!0;let y=(0,h4e._)`${xfr.default.dynamicAnchors}${(0,h4e.getProperty)(s)}`,x=d.errSchemaPath==="#"?d.validateName:kfr(o);f.if((0,h4e._)`!${y}`,()=>f.assign(y,x))}t(nft,"dynamicAnchor");ZH.dynamicAnchor=nft;function kfr(o){let{schemaEnv:s,schema:f,self:d}=o.it,{root:y,baseId:x,localRefs:P,meta:F}=s.root,{schemaId:J}=d.opts,G=new rft.SchemaEnv({schema:f,schemaId:J,root:y,baseId:x,localRefs:P,meta:F});return rft.compileSchema.call(d,G),(0,Efr.getValidate)(o,G)}t(kfr,"_getValidate");ZH.default=Cfr});var y4e=or(QH=>{"use strict";Object.defineProperty(QH,"__esModule",{value:!0});QH.dynamicRef=void 0;var ift=Cc(),wfr=hT(),sft=ble(),Dfr={keyword:"$dynamicRef",schemaType:"string",code:t(o=>aft(o,o.schema),"code")};function aft(o,s){let{gen:f,keyword:d,it:y}=o;if(s[0]!=="#")throw new Error(`"${d}" only supports hash fragment reference`);let x=s.slice(1);if(y.allErrors)P();else{let J=f.let("valid",!1);P(J),o.ok(J)}function P(J){if(y.schemaEnv.root.dynamicAnchors[x]){let G=f.let("_v",(0,ift._)`${wfr.default.dynamicAnchors}${(0,ift.getProperty)(x)}`);f.if(G,F(G,J),F(y.validateName,J))}else F(y.validateName,J)()}t(P,"_dynamicRef");function F(J,G){return G?()=>f.block(()=>{(0,sft.callRef)(o,J),f.let(G,!0)}):()=>(0,sft.callRef)(o,J)}t(F,"_callRef")}t(aft,"dynamicRef");QH.dynamicRef=aft;QH.default=Dfr});var oft=or(v4e=>{"use strict";Object.defineProperty(v4e,"__esModule",{value:!0});var Pfr=g4e(),Afr=ru(),Nfr={keyword:"$recursiveAnchor",schemaType:"boolean",code(o){o.schema?(0,Pfr.dynamicAnchor)(o,""):(0,Afr.checkStrictMode)(o.it,"$recursiveAnchor: false is ignored")}};v4e.default=Nfr});var cft=or(b4e=>{"use strict";Object.defineProperty(b4e,"__esModule",{value:!0});var Ifr=y4e(),Ofr={keyword:"$recursiveRef",schemaType:"string",code:t(o=>(0,Ifr.dynamicRef)(o,o.schema),"code")};b4e.default=Ofr});var lft=or(S4e=>{"use strict";Object.defineProperty(S4e,"__esModule",{value:!0});var Ffr=g4e(),Lfr=y4e(),Rfr=oft(),Mfr=cft(),jfr=[Ffr.default,Lfr.default,Rfr.default,Mfr.default];S4e.default=jfr});var fft=or(T4e=>{"use strict";Object.defineProperty(T4e,"__esModule",{value:!0});var uft=wle(),Bfr={keyword:"dependentRequired",type:"object",schemaType:"object",error:uft.error,code:t(o=>(0,uft.validatePropertyDeps)(o),"code")};T4e.default=Bfr});var _ft=or(x4e=>{"use strict";Object.defineProperty(x4e,"__esModule",{value:!0});var Ufr=wle(),zfr={keyword:"dependentSchemas",type:"object",schemaType:"object",code:t(o=>(0,Ufr.validateSchemaDeps)(o),"code")};x4e.default=zfr});var pft=or(E4e=>{"use strict";Object.defineProperty(E4e,"__esModule",{value:!0});var $fr=ru(),Jfr={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:o,parentSchema:s,it:f}){s.contains===void 0&&(0,$fr.checkStrictMode)(f,`"${o}" without "contains" is ignored`)}};E4e.default=Jfr});var dft=or(C4e=>{"use strict";Object.defineProperty(C4e,"__esModule",{value:!0});var Wfr=fft(),qfr=_ft(),Vfr=pft(),Hfr=[Wfr.default,qfr.default,Vfr.default];C4e.default=Hfr});var hft=or(k4e=>{"use strict";Object.defineProperty(k4e,"__esModule",{value:!0});var gI=Cc(),mft=ru(),Gfr=hT(),Yfr={message:"must NOT have unevaluated properties",params:t(({params:o})=>(0,gI._)`{unevaluatedProperty: ${o.unevaluatedProperty}}`,"params")},Kfr={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:Yfr,code(o){let{gen:s,schema:f,data:d,errsCount:y,it:x}=o;if(!y)throw new Error("ajv implementation error");let{allErrors:P,props:F}=x;F instanceof gI.Name?s.if((0,gI._)`${F} !== true`,()=>s.forIn("key",d,de=>s.if(G(F,de),()=>J(de)))):F!==!0&&s.forIn("key",d,de=>F===void 0?J(de):s.if(Se(F,de),()=>J(de))),x.props=!0,o.ok((0,gI._)`${y} === ${Gfr.default.errors}`);function J(de){if(f===!1){o.setParams({unevaluatedProperty:de}),o.error(),P||s.break();return}if(!(0,mft.alwaysValidSchema)(x,f)){let ae=s.name("valid");o.subschema({keyword:"unevaluatedProperties",dataProp:de,dataPropType:mft.Type.Str},ae),P||s.if((0,gI.not)(ae),()=>s.break())}}t(J,"unevaluatedPropCode");function G(de,ae){return(0,gI._)`!${de} || !${de}[${ae}]`}t(G,"unevaluatedDynamic");function Se(de,ae){let Ke=[];for(let $e in de)de[$e]===!0&&Ke.push((0,gI._)`${ae} !== ${$e}`);return(0,gI.and)(...Ke)}t(Se,"unevaluatedStatic")}};k4e.default=Kfr});var yft=or(w4e=>{"use strict";Object.defineProperty(w4e,"__esModule",{value:!0});var BO=Cc(),gft=ru(),Xfr={message:t(({params:{len:o}})=>(0,BO.str)`must NOT have more than ${o} items`,"message"),params:t(({params:{len:o}})=>(0,BO._)`{limit: ${o}}`,"params")},Zfr={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:Xfr,code(o){let{gen:s,schema:f,data:d,it:y}=o,x=y.items||0;if(x===!0)return;let P=s.const("len",(0,BO._)`${d}.length`);if(f===!1)o.setParams({len:x}),o.fail((0,BO._)`${P} > ${x}`);else if(typeof f=="object"&&!(0,gft.alwaysValidSchema)(y,f)){let J=s.var("valid",(0,BO._)`${P} <= ${x}`);s.if((0,BO.not)(J),()=>F(J,x)),o.ok(J)}y.items=!0;function F(J,G){s.forRange("i",G,P,Se=>{o.subschema({keyword:"unevaluatedItems",dataProp:Se,dataPropType:gft.Type.Num},J),y.allErrors||s.if((0,BO.not)(J),()=>s.break())})}t(F,"validateItems")}};w4e.default=Zfr});var vft=or(D4e=>{"use strict";Object.defineProperty(D4e,"__esModule",{value:!0});var Qfr=hft(),e_r=yft(),t_r=[Qfr.default,e_r.default];D4e.default=t_r});var Sft=or(P4e=>{"use strict";Object.defineProperty(P4e,"__esModule",{value:!0});var r_r=SIe(),n_r=MIe(),i_r=i4e(),s_r=lft(),a_r=dft(),o_r=vft(),c_r=o4e(),bft=c4e(),l_r=[s_r.default,r_r.default,n_r.default,(0,i_r.default)(!0),c_r.default,bft.metadataVocabulary,bft.contentVocabulary,a_r.default,o_r.default];P4e.default=l_r});var Tft=or((rIr,u_r)=>{u_r.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 xft=or((nIr,f_r)=>{f_r.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 Eft=or((iIr,__r)=>{__r.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 Cft=or((sIr,p_r)=>{p_r.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 kft=or((aIr,d_r)=>{d_r.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 wft=or((oIr,m_r)=>{m_r.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 Dft=or((cIr,h_r)=>{h_r.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 Pft=or((lIr,g_r)=>{g_r.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 Aft=or(A4e=>{"use strict";Object.defineProperty(A4e,"__esModule",{value:!0});var y_r=Tft(),v_r=xft(),b_r=Eft(),S_r=Cft(),T_r=kft(),x_r=wft(),E_r=Dft(),C_r=Pft(),k_r=["/properties"];function w_r(o){return[y_r,v_r,b_r,S_r,T_r,s(this,x_r),E_r,s(this,C_r)].forEach(f=>this.addMetaSchema(f,void 0,!1)),this;function s(f,d){return o?f.$dataMetaSchema(d,k_r):d}t(s,"with$data")}t(w_r,"addMetaSchema2020");A4e.default=w_r});var Mle=or((Np,I4e)=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});Np.MissingRefError=Np.ValidationError=Np.CodeGen=Np.Name=Np.nil=Np.stringify=Np.str=Np._=Np.KeywordCxt=Np.Ajv2020=void 0;var D_r=yIe(),P_r=Sft(),A_r=_4e(),N_r=Aft(),N4e="https://json-schema.org/draft/2020-12/schema",zM=class extends D_r.default{static{t(this,"Ajv2020")}constructor(s={}){super({...s,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),P_r.default.forEach(s=>this.addVocabulary(s)),this.opts.discriminator&&this.addKeyword(A_r.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:s,meta:f}=this.opts;f&&(N_r.default.call(this,s),this.refs["http://json-schema.org/schema"]=N4e)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(N4e)?N4e:void 0)}};Np.Ajv2020=zM;I4e.exports=Np=zM;I4e.exports.Ajv2020=zM;Object.defineProperty(Np,"__esModule",{value:!0});Np.default=zM;var I_r=AM();Object.defineProperty(Np,"KeywordCxt",{enumerable:!0,get:t(function(){return I_r.KeywordCxt},"get")});var $M=Cc();Object.defineProperty(Np,"_",{enumerable:!0,get:t(function(){return $M._},"get")});Object.defineProperty(Np,"str",{enumerable:!0,get:t(function(){return $M.str},"get")});Object.defineProperty(Np,"stringify",{enumerable:!0,get:t(function(){return $M.stringify},"get")});Object.defineProperty(Np,"nil",{enumerable:!0,get:t(function(){return $M.nil},"get")});Object.defineProperty(Np,"Name",{enumerable:!0,get:t(function(){return $M.Name},"get")});Object.defineProperty(Np,"CodeGen",{enumerable:!0,get:t(function(){return $M.CodeGen},"get")});var O_r=RH();Object.defineProperty(Np,"ValidationError",{enumerable:!0,get:t(function(){return O_r.default},"get")});var F_r=NM();Object.defineProperty(Np,"MissingRefError",{enumerable:!0,get:t(function(){return F_r.default},"get")})});var m_t=or(Wk=>{"use strict";Object.defineProperty(Wk,"__esModule",{value:!0});Wk.formatNames=Wk.fastFormats=Wk.fullFormats=void 0;function Jk(o,s){return{validate:o,compare:s}}t(Jk,"fmtDef");Wk.fullFormats={date:Jk(f_t,V4e),time:Jk(W4e(!0),H4e),"date-time":Jk(c_t(!0),p_t),"iso-time":Jk(W4e(),__t),"iso-date-time":Jk(c_t(),d_t),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:Cpr,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:Ipr,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:kpr,int32:{type:"number",validate:Ppr},int64:{type:"number",validate:Apr},float:{type:"number",validate:u_t},double:{type:"number",validate:u_t},password:!0,binary:!0};Wk.fastFormats={...Wk.fullFormats,date:Jk(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,V4e),time:Jk(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,H4e),"date-time":Jk(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,p_t),"iso-time":Jk(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,__t),"iso-date-time":Jk(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,d_t),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};Wk.formatNames=Object.keys(Wk.fullFormats);function bpr(o){return o%4===0&&(o%100!==0||o%400===0)}t(bpr,"isLeapYear");var Spr=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,Tpr=[0,31,28,31,30,31,30,31,31,30,31,30,31];function f_t(o){let s=Spr.exec(o);if(!s)return!1;let f=+s[1],d=+s[2],y=+s[3];return d>=1&&d<=12&&y>=1&&y<=(d===2&&bpr(f)?29:Tpr[d])}t(f_t,"date");function V4e(o,s){if(o&&s)return o>s?1:o<s?-1:0}t(V4e,"compareDate");var J4e=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function W4e(o){return t(function(f){let d=J4e.exec(f);if(!d)return!1;let y=+d[1],x=+d[2],P=+d[3],F=d[4],J=d[5]==="-"?-1:1,G=+(d[6]||0),Se=+(d[7]||0);if(G>23||Se>59||o&&!F)return!1;if(y<=23&&x<=59&&P<60)return!0;let de=x-Se*J,ae=y-G*J-(de<0?1:0);return(ae===23||ae===-1)&&(de===59||de===-1)&&P<61},"time")}t(W4e,"getTime");function H4e(o,s){if(!(o&&s))return;let f=new Date("2020-01-01T"+o).valueOf(),d=new Date("2020-01-01T"+s).valueOf();if(f&&d)return f-d}t(H4e,"compareTime");function __t(o,s){if(!(o&&s))return;let f=J4e.exec(o),d=J4e.exec(s);if(f&&d)return o=f[1]+f[2]+f[3],s=d[1]+d[2]+d[3],o>s?1:o<s?-1:0}t(__t,"compareIsoTime");var q4e=/t|\s/i;function c_t(o){let s=W4e(o);return t(function(d){let y=d.split(q4e);return y.length===2&&f_t(y[0])&&s(y[1])},"date_time")}t(c_t,"getDateTime");function p_t(o,s){if(!(o&&s))return;let f=new Date(o).valueOf(),d=new Date(s).valueOf();if(f&&d)return f-d}t(p_t,"compareDateTime");function d_t(o,s){if(!(o&&s))return;let[f,d]=o.split(q4e),[y,x]=s.split(q4e),P=V4e(f,y);if(P!==void 0)return P||H4e(d,x)}t(d_t,"compareIsoDateTime");var xpr=/\/|:/,Epr=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function Cpr(o){return xpr.test(o)&&Epr.test(o)}t(Cpr,"uri");var l_t=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function kpr(o){return l_t.lastIndex=0,l_t.test(o)}t(kpr,"byte");var wpr=-(2**31),Dpr=2**31-1;function Ppr(o){return Number.isInteger(o)&&o<=Dpr&&o>=wpr}t(Ppr,"validateInt32");function Apr(o){return Number.isInteger(o)}t(Apr,"validateInt64");function u_t(){return!0}t(u_t,"validateNumber");var Npr=/[^\\]\\Z/;function Ipr(o){if(Npr.test(o))return!1;try{return new RegExp(o),!0}catch{return!1}}t(Ipr,"regex")});var h_t=or(WM=>{"use strict";Object.defineProperty(WM,"__esModule",{value:!0});WM.formatLimitDefinition=void 0;var Opr=Lle(),RE=Cc(),bI=RE.operators,Xle={formatMaximum:{okStr:"<=",ok:bI.LTE,fail:bI.GT},formatMinimum:{okStr:">=",ok:bI.GTE,fail:bI.LT},formatExclusiveMaximum:{okStr:"<",ok:bI.LT,fail:bI.GTE},formatExclusiveMinimum:{okStr:">",ok:bI.GT,fail:bI.LTE}},Fpr={message:t(({keyword:o,schemaCode:s})=>(0,RE.str)`should be ${Xle[o].okStr} ${s}`,"message"),params:t(({keyword:o,schemaCode:s})=>(0,RE._)`{comparison: ${Xle[o].okStr}, limit: ${s}}`,"params")};WM.formatLimitDefinition={keyword:Object.keys(Xle),type:"string",schemaType:"string",$data:!0,error:Fpr,code(o){let{gen:s,data:f,schemaCode:d,keyword:y,it:x}=o,{opts:P,self:F}=x;if(!P.validateFormats)return;let J=new Opr.KeywordCxt(x,F.RULES.all.format.definition,"format");J.$data?G():Se();function G(){let ae=s.scopeValue("formats",{ref:F.formats,code:P.code.formats}),Ke=s.const("fmt",(0,RE._)`${ae}[${J.schemaCode}]`);o.fail$data((0,RE.or)((0,RE._)`typeof ${Ke} != "object"`,(0,RE._)`${Ke} instanceof RegExp`,(0,RE._)`typeof ${Ke}.compare != "function"`,de(Ke)))}t(G,"validate$DataFormat");function Se(){let ae=J.schema,Ke=F.formats[ae];if(!Ke||Ke===!0)return;if(typeof Ke!="object"||Ke instanceof RegExp||typeof Ke.compare!="function")throw new Error(`"${y}": format "${ae}" does not define "compare" function`);let $e=s.scopeValue("formats",{key:ae,ref:Ke,code:P.code.formats?(0,RE._)`${P.code.formats}${(0,RE.getProperty)(ae)}`:void 0});o.fail$data(de($e))}t(Se,"validateFormat");function de(ae){return(0,RE._)`${ae}.compare(${f}, ${d}) ${Xle[y].fail} 0`}t(de,"compareCode")},dependencies:["format"]};var Lpr=t(o=>(o.addKeyword(WM.formatLimitDefinition),o),"formatLimitPlugin");WM.default=Lpr});var b_t=or((tG,v_t)=>{"use strict";Object.defineProperty(tG,"__esModule",{value:!0});var qM=m_t(),Rpr=h_t(),G4e=Cc(),g_t=new G4e.Name("fullFormats"),Mpr=new G4e.Name("fastFormats"),Y4e=t((o,s={keywords:!0})=>{if(Array.isArray(s))return y_t(o,s,qM.fullFormats,g_t),o;let[f,d]=s.mode==="fast"?[qM.fastFormats,Mpr]:[qM.fullFormats,g_t],y=s.formats||qM.formatNames;return y_t(o,y,f,d),s.keywords&&(0,Rpr.default)(o),o},"formatsPlugin");Y4e.get=(o,s="full")=>{let d=(s==="fast"?qM.fastFormats:qM.fullFormats)[o];if(!d)throw new Error(`Unknown format "${o}"`);return d};function y_t(o,s,f,d){var y,x;(y=(x=o.opts.code).formats)!==null&&y!==void 0||(x.formats=(0,G4e._)`require("ajv-formats/dist/formats").${d}`);for(let P of s)o.addFormat(P,f[P])}t(y_t,"addFormats");v_t.exports=tG=Y4e;Object.defineProperty(tG,"__esModule",{value:!0});tG.default=Y4e});var K4e=or((nG,T_t)=>{"use strict";Object.defineProperty(nG,"__esModule",{value:!0});var rG=rle(),ME=TM();function S_t(o,s){if(!o.opts.code.source)throw new Error("moduleCode: ajv instance must have code.source option");let{_n:f}=o.scope.opts;return typeof s=="function"?y(s.source):s!==void 0?x(s,d):x(o.schemas,F=>F.meta?void 0:o.compile(F.schema));function d(F){let J=o.getSchema(F);if(!J)throw new Error(`moduleCode: no schema with id ${F}`);return J}function y(F){let J={},G=F?.validateName,Se=P(J,F);return o.opts.code.esm?`"use strict";${f}export const validate = ${G};${f}export default ${G};${f}${Se}`:`"use strict";${f}module.exports = ${G};${f}module.exports.default = ${G};${f}${Se}`}function x(F,J){var G;let Se={},de=(0,ME._)`"use strict";`;for(let ae in F){let Ke=J(F[ae]);if(Ke){let $e=P(Se,Ke.source),Fe=o.opts.code.esm?(0,ME._)`export const ${(0,ME.getEsmExportName)(ae)}`:(0,ME._)`exports${(0,ME.getProperty)(ae)}`;de=(0,ME._)`${de}${f}${Fe} = ${(G=Ke.source)===null||G===void 0?void 0:G.validateName};${f}${$e}`}}return`${de}`}function P(F,J){if(!J)throw new Error('moduleCode: function does not have "source" property');if(ae(J.validateName)===rG.UsedValueState.Completed)return ME.nil;Ke(J.validateName,rG.UsedValueState.Started);let G=o.scope.scopeCode(J.scopeValues,F,de),Se=new ME._Code(`${G}${f}${J.validateCode}`);return J.evaluated?(0,ME._)`${Se}${J.validateName}.evaluated = ${J.evaluated};${f}`:Se;function de($e){var Fe;let Gt=(Fe=$e.value)===null||Fe===void 0?void 0:Fe.ref;if($e.prefix==="validate"&&typeof Gt=="function")return P(F,Gt.source);if(($e.prefix==="root"||$e.prefix==="wrapper")&&typeof Gt=="object"){let{validate:jt,validateName:Pr}=Gt;if(!Pr)throw new Error("ajv internal error");let Fn=o.opts.code.es5?rG.varKinds.var:rG.varKinds.const,sn=(0,ME._)`${Fn} ${$e} = {validate: ${Pr}};`;if(ae(Pr)===rG.UsedValueState.Started)return sn;let Un=P(F,jt?.source);return(0,ME._)`${sn}${f}${Un}`}}function ae($e){var Fe;return(Fe=F[$e.prefix])===null||Fe===void 0?void 0:Fe.get($e)}function Ke($e,Fe){let{prefix:Gt}=$e;(F[Gt]=F[Gt]||new Map).set($e,Fe)}}}t(S_t,"standaloneCode");T_t.exports=nG=S_t;Object.defineProperty(nG,"__esModule",{value:!0});nG.default=S_t});var dpt=or((i7r,ppt)=>{var Idr=Object.prototype.toString,a3e=typeof Buffer<"u"&&typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function Odr(o){return Idr.call(o).slice(8,-1)==="ArrayBuffer"}t(Odr,"isArrayBuffer");function Fdr(o,s,f){s>>>=0;var d=o.byteLength-s;if(d<0)throw new RangeError("'offset' is out of bounds");if(f===void 0)f=d;else if(f>>>=0,f>d)throw new RangeError("'length' is out of bounds");return a3e?Buffer.from(o.slice(s,s+f)):new Buffer(new Uint8Array(o.slice(s,s+f)))}t(Fdr,"fromArrayBuffer");function Ldr(o,s){if((typeof s!="string"||s==="")&&(s="utf8"),!Buffer.isEncoding(s))throw new TypeError('"encoding" must be a valid string encoding');return a3e?Buffer.from(o,s):new Buffer(o,s)}t(Ldr,"fromString");function Rdr(o,s,f){if(typeof o=="number")throw new TypeError('"value" argument must not be a number');return Odr(o)?Fdr(o,s,f):typeof o=="string"?Ldr(o,s):a3e?Buffer.from(o):new Buffer(o)}t(Rdr,"bufferFrom");ppt.exports=Rdr});var Tpt=or((WO,u3e)=>{var Mdr=_o("source-map").SourceMapConsumer,o3e=_o("path"),Hk;try{Hk=_o("fs"),(!Hk.existsSync||!Hk.readFileSync)&&(Hk=null)}catch{}var jdr=dpt();function mpt(o,s){return o.require(s)}t(mpt,"dynamicRequire");var hpt=!1,gpt=!1,c3e=!1,uG="auto",JO={},fG={},Bdr=/^data:application\/json[^,]+base64,/,EI=[],CI=[];function f3e(){return uG==="browser"?!0:uG==="node"?!1:typeof window<"u"&&typeof XMLHttpRequest=="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}t(f3e,"isInBrowser");function Udr(){return typeof process=="object"&&process!==null&&typeof process.on=="function"}t(Udr,"hasGlobalProcessEventEmitter");function zdr(){return typeof process=="object"&&process!==null?process.version:""}t(zdr,"globalProcessVersion");function $dr(){if(typeof process=="object"&&process!==null)return process.stderr}t($dr,"globalProcessStderr");function Jdr(o){if(typeof process=="object"&&process!==null&&typeof process.exit=="function")return process.exit(o)}t(Jdr,"globalProcessExit");function sue(o){return function(s){for(var f=0;f<o.length;f++){var d=o[f](s);if(d)return d}return null}}t(sue,"handlerExec");var _3e=sue(EI);EI.push(function(o){if(o=o.trim(),/^file:/.test(o)&&(o=o.replace(/file:\/\/\/(\w:)?/,function(d,y){return y?"":"/"})),o in JO)return JO[o];var s="";try{if(Hk)Hk.existsSync(o)&&(s=Hk.readFileSync(o,"utf8"));else{var f=new XMLHttpRequest;f.open("GET",o,!1),f.send(null),f.readyState===4&&f.status===200&&(s=f.responseText)}}catch{}return JO[o]=s});function l3e(o,s){if(!o)return s;var f=o3e.dirname(o),d=/^\w+:\/\/[^\/]*/.exec(f),y=d?d[0]:"",x=f.slice(y.length);return y&&/^\/\w\:/.test(x)?(y+="/",y+o3e.resolve(f.slice(y.length),s).replace(/\\/g,"/")):y+o3e.resolve(f.slice(y.length),s)}t(l3e,"supportRelativeURL");function Wdr(o){var s;if(f3e())try{var f=new XMLHttpRequest;f.open("GET",o,!1),f.send(null),s=f.readyState===4?f.responseText:null;var d=f.getResponseHeader("SourceMap")||f.getResponseHeader("X-SourceMap");if(d)return d}catch{}s=_3e(o);for(var y=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg,x,P;P=y.exec(s);)x=P;return x?x[1]:null}t(Wdr,"retrieveSourceMapURL");var p3e=sue(CI);CI.push(function(o){var s=Wdr(o);if(!s)return null;var f;if(Bdr.test(s)){var d=s.slice(s.indexOf(",")+1);f=jdr(d,"base64").toString(),s=o}else s=l3e(o,s),f=_3e(s);return f?{url:s,map:f}:null});function d3e(o){var s=fG[o.source];if(!s){var f=p3e(o.source);f?(s=fG[o.source]={url:f.url,map:new Mdr(f.map)},s.map.sourcesContent&&s.map.sources.forEach(function(y,x){var P=s.map.sourcesContent[x];if(P){var F=l3e(s.url,y);JO[F]=P}})):s=fG[o.source]={url:null,map:null}}if(s&&s.map&&typeof s.map.originalPositionFor=="function"){var d=s.map.originalPositionFor(o);if(d.source!==null)return d.source=l3e(s.url,d.source),d}return o}t(d3e,"mapSourcePosition");function vpt(o){var s=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(o);if(s){var f=d3e({source:s[2],line:+s[3],column:s[4]-1});return"eval at "+s[1]+" ("+f.source+":"+f.line+":"+(f.column+1)+")"}return s=/^eval at ([^(]+) \((.+)\)$/.exec(o),s?"eval at "+s[1]+" ("+vpt(s[2])+")":o}t(vpt,"mapEvalOrigin");function qdr(){var o,s="";if(this.isNative())s="native";else{o=this.getScriptNameOrSourceURL(),!o&&this.isEval()&&(s=this.getEvalOrigin(),s+=", "),o?s+=o:s+="<anonymous>";var f=this.getLineNumber();if(f!=null){s+=":"+f;var d=this.getColumnNumber();d&&(s+=":"+d)}}var y="",x=this.getFunctionName(),P=!0,F=this.isConstructor(),J=!(this.isToplevel()||F);if(J){var G=this.getTypeName();G==="[object Object]"&&(G="null");var Se=this.getMethodName();x?(G&&x.indexOf(G)!=0&&(y+=G+"."),y+=x,Se&&x.indexOf("."+Se)!=x.length-Se.length-1&&(y+=" [as "+Se+"]")):y+=G+"."+(Se||"<anonymous>")}else F?y+="new "+(x||"<anonymous>"):x?y+=x:(y+=s,P=!1);return P&&(y+=" ("+s+")"),y}t(qdr,"CallSiteToString");function ypt(o){var s={};return Object.getOwnPropertyNames(Object.getPrototypeOf(o)).forEach(function(f){s[f]=/^(?:is|get)/.test(f)?function(){return o[f].call(o)}:o[f]}),s.toString=qdr,s}t(ypt,"cloneCallSite");function bpt(o,s){if(s===void 0&&(s={nextPosition:null,curPosition:null}),o.isNative())return s.curPosition=null,o;var f=o.getFileName()||o.getScriptNameOrSourceURL();if(f){var d=o.getLineNumber(),y=o.getColumnNumber()-1,x=/^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/,P=x.test(zdr())?0:62;d===1&&y>P&&!f3e()&&!o.isEval()&&(y-=P);var F=d3e({source:f,line:d,column:y});s.curPosition=F,o=ypt(o);var J=o.getFunctionName;return o.getFunctionName=function(){return s.nextPosition==null?J():s.nextPosition.name||J()},o.getFileName=function(){return F.source},o.getLineNumber=function(){return F.line},o.getColumnNumber=function(){return F.column+1},o.getScriptNameOrSourceURL=function(){return F.source},o}var G=o.isEval()&&o.getEvalOrigin();return G&&(G=vpt(G),o=ypt(o),o.getEvalOrigin=function(){return G}),o}t(bpt,"wrapCallSite");function Vdr(o,s){c3e&&(JO={},fG={});for(var f=o.name||"Error",d=o.message||"",y=f+": "+d,x={nextPosition:null,curPosition:null},P=[],F=s.length-1;F>=0;F--)P.push(`
|
|
66
|
+
deps: ${f}}`,"params")};var nsr={keyword:"dependencies",type:"object",schemaType:"object",error:Mk.error,code(o){let[s,f]=isr(o);zot(o,s),$ot(o,f)}};function isr({schema:o}){let s={},f={};for(let d in o){if(d==="__proto__")continue;let y=Array.isArray(o[d])?s:f;y[d]=o[d]}return[s,f]}t(isr,"splitDependencies");function zot(o,s=o.schema){let{gen:f,data:d,it:y}=o;if(Object.keys(s).length===0)return;let x=f.let("missing");for(let P in s){let F=s[P];if(F.length===0)continue;let J=(0,OH.propertyInData)(f,d,P,y.opts.ownProperties);o.setParams({property:P,depsCount:F.length,deps:F.join(", ")}),y.allErrors?f.if(J,()=>{for(let G of F)(0,OH.checkReportMissingProp)(o,G)}):(f.if((0,xNe._)`${J} && (${(0,OH.checkMissingProp)(o,F,x)})`),(0,OH.reportMissingProp)(o,x),f.else())}}t(zot,"validatePropertyDeps");Mk.validatePropertyDeps=zot;function $ot(o,s=o.schema){let{gen:f,data:d,keyword:y,it:x}=o,P=f.name("valid");for(let F in s)(0,rsr.alwaysValidSchema)(x,s[F])||(f.if((0,OH.propertyInData)(f,d,F,x.opts.ownProperties),()=>{let J=o.subschema({keyword:y,schemaProp:F},P);o.mergeValidEvaluated(J,P)},()=>f.var(P,!0)),o.ok(P))}t($ot,"validateSchemaDeps");Mk.validateSchemaDeps=$ot;Mk.default=nsr});var Wot=or(ENe=>{"use strict";Object.defineProperty(ENe,"__esModule",{value:!0});var Jot=Cc(),ssr=ru(),asr={message:"property name must be valid",params:t(({params:o})=>(0,Jot._)`{propertyName: ${o.propertyName}}`,"params")},osr={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:asr,code(o){let{gen:s,schema:f,data:d,it:y}=o;if((0,ssr.alwaysValidSchema)(y,f))return;let x=s.name("valid");s.forIn("key",d,P=>{o.setParams({propertyName:P}),o.subschema({keyword:"propertyNames",data:P,dataTypes:["string"],propertyName:P,compositeRule:!0},x),s.if((0,Jot.not)(x),()=>{o.error(!0),y.allErrors||s.break()})}),o.ok(x)}};ENe.default=osr});var kNe=or(CNe=>{"use strict";Object.defineProperty(CNe,"__esModule",{value:!0});var tle=pT(),EE=Cc(),csr=_T(),rle=ru(),lsr={message:"must NOT have additional properties",params:t(({params:o})=>(0,EE._)`{additionalProperty: ${o.additionalProperty}}`,"params")},usr={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:lsr,code(o){let{gen:s,schema:f,parentSchema:d,data:y,errsCount:x,it:P}=o;if(!x)throw new Error("ajv implementation error");let{allErrors:F,opts:J}=P;if(P.props=!0,J.removeAdditional!=="all"&&(0,rle.alwaysValidSchema)(P,f))return;let G=(0,tle.allSchemaProperties)(d.properties),Se=(0,tle.allSchemaProperties)(d.patternProperties);de(),o.ok((0,EE._)`${x} === ${csr.default.errors}`);function de(){s.forIn("key",y,Gt=>{!G.length&&!Se.length?$e(Gt):s.if(ae(Gt),()=>$e(Gt))})}t(de,"checkAdditionalProperties");function ae(Gt){let jt;if(G.length>8){let Pr=(0,rle.schemaRefOrVal)(P,d.properties,"properties");jt=(0,tle.isOwnProperty)(s,Pr,Gt)}else G.length?jt=(0,EE.or)(...G.map(Pr=>(0,EE._)`${Gt} === ${Pr}`)):jt=EE.nil;return Se.length&&(jt=(0,EE.or)(jt,...Se.map(Pr=>(0,EE._)`${(0,tle.usePattern)(o,Pr)}.test(${Gt})`))),(0,EE.not)(jt)}t(ae,"isAdditional");function Ke(Gt){s.code((0,EE._)`delete ${y}[${Gt}]`)}t(Ke,"deleteAdditional");function $e(Gt){if(J.removeAdditional==="all"||J.removeAdditional&&f===!1){Ke(Gt);return}if(f===!1){o.setParams({additionalProperty:Gt}),o.error(),F||s.break();return}if(typeof f=="object"&&!(0,rle.alwaysValidSchema)(P,f)){let jt=s.name("valid");J.removeAdditional==="failing"?(Fe(Gt,jt,!1),s.if((0,EE.not)(jt),()=>{o.reset(),Ke(Gt)})):(Fe(Gt,jt),F||s.if((0,EE.not)(jt),()=>s.break()))}}t($e,"additionalPropertyCode");function Fe(Gt,jt,Pr){let Fn={keyword:"additionalProperties",dataProp:Gt,dataPropType:rle.Type.Str};Pr===!1&&Object.assign(Fn,{compositeRule:!0,createErrors:!1,allErrors:!1}),o.subschema(Fn,jt)}t(Fe,"applyAdditionalSchema")}};CNe.default=usr});var Hot=or(DNe=>{"use strict";Object.defineProperty(DNe,"__esModule",{value:!0});var fsr=mM(),qot=pT(),wNe=ru(),Vot=kNe(),_sr={keyword:"properties",type:"object",schemaType:"object",code(o){let{gen:s,schema:f,parentSchema:d,data:y,it:x}=o;x.opts.removeAdditional==="all"&&d.additionalProperties===void 0&&Vot.default.code(new fsr.KeywordCxt(x,Vot.default,"additionalProperties"));let P=(0,qot.allSchemaProperties)(f);for(let de of P)x.definedProperties.add(de);x.opts.unevaluated&&P.length&&x.props!==!0&&(x.props=wNe.mergeEvaluated.props(s,(0,wNe.toHash)(P),x.props));let F=P.filter(de=>!(0,wNe.alwaysValidSchema)(x,f[de]));if(F.length===0)return;let J=s.name("valid");for(let de of F)G(de)?Se(de):(s.if((0,qot.propertyInData)(s,y,de,x.opts.ownProperties)),Se(de),x.allErrors||s.else().var(J,!0),s.endIf()),o.it.definedProperties.add(de),o.ok(J);function G(de){return x.opts.useDefaults&&!x.compositeRule&&f[de].default!==void 0}t(G,"hasDefault");function Se(de){o.subschema({keyword:"properties",schemaProp:de,dataProp:de},J)}t(Se,"applyPropertySchema")}};DNe.default=_sr});var Xot=or(PNe=>{"use strict";Object.defineProperty(PNe,"__esModule",{value:!0});var Got=pT(),nle=Cc(),Yot=ru(),Kot=ru(),psr={keyword:"patternProperties",type:"object",schemaType:"object",code(o){let{gen:s,schema:f,data:d,parentSchema:y,it:x}=o,{opts:P}=x,F=(0,Got.allSchemaProperties)(f),J=F.filter(Fe=>(0,Yot.alwaysValidSchema)(x,f[Fe]));if(F.length===0||J.length===F.length&&(!x.opts.unevaluated||x.props===!0))return;let G=P.strictSchema&&!P.allowMatchingProperties&&y.properties,Se=s.name("valid");x.props!==!0&&!(x.props instanceof nle.Name)&&(x.props=(0,Kot.evaluatedPropsToName)(s,x.props));let{props:de}=x;ae();function ae(){for(let Fe of F)G&&Ke(Fe),x.allErrors?$e(Fe):(s.var(Se,!0),$e(Fe),s.if(Se))}t(ae,"validatePatternProperties");function Ke(Fe){for(let Gt in G)new RegExp(Fe).test(Gt)&&(0,Yot.checkStrictMode)(x,`property ${Gt} matches pattern ${Fe} (use allowMatchingProperties)`)}t(Ke,"checkMatchingProperties");function $e(Fe){s.forIn("key",d,Gt=>{s.if((0,nle._)`${(0,Got.usePattern)(o,Fe)}.test(${Gt})`,()=>{let jt=J.includes(Fe);jt||o.subschema({keyword:"patternProperties",schemaProp:Fe,dataProp:Gt,dataPropType:Kot.Type.Str},Se),x.opts.unevaluated&&de!==!0?s.assign((0,nle._)`${de}[${Gt}]`,!0):!jt&&!x.allErrors&&s.if((0,nle.not)(Se),()=>s.break())})})}t($e,"validateProperties")}};PNe.default=psr});var Zot=or(ANe=>{"use strict";Object.defineProperty(ANe,"__esModule",{value:!0});var dsr=ru(),msr={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(o){let{gen:s,schema:f,it:d}=o;if((0,dsr.alwaysValidSchema)(d,f)){o.fail();return}let y=s.name("valid");o.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},y),o.failResult(y,()=>o.reset(),()=>o.error())},error:{message:"must NOT be valid"}};ANe.default=msr});var Qot=or(NNe=>{"use strict";Object.defineProperty(NNe,"__esModule",{value:!0});var hsr=pT(),gsr={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:hsr.validateUnion,error:{message:"must match a schema in anyOf"}};NNe.default=gsr});var ect=or(INe=>{"use strict";Object.defineProperty(INe,"__esModule",{value:!0});var ile=Cc(),ysr=ru(),vsr={message:"must match exactly one schema in oneOf",params:t(({params:o})=>(0,ile._)`{passingSchemas: ${o.passing}}`,"params")},bsr={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:vsr,code(o){let{gen:s,schema:f,parentSchema:d,it:y}=o;if(!Array.isArray(f))throw new Error("ajv implementation error");if(y.opts.discriminator&&d.discriminator)return;let x=f,P=s.let("valid",!1),F=s.let("passing",null),J=s.name("_valid");o.setParams({passing:F}),s.block(G),o.result(P,()=>o.reset(),()=>o.error(!0));function G(){x.forEach((Se,de)=>{let ae;(0,ysr.alwaysValidSchema)(y,Se)?s.var(J,!0):ae=o.subschema({keyword:"oneOf",schemaProp:de,compositeRule:!0},J),de>0&&s.if((0,ile._)`${J} && ${P}`).assign(P,!1).assign(F,(0,ile._)`[${F}, ${de}]`).else(),s.if(J,()=>{s.assign(P,!0),s.assign(F,de),ae&&o.mergeEvaluated(ae,ile.Name)})})}t(G,"validateOneOf")}};INe.default=bsr});var tct=or(ONe=>{"use strict";Object.defineProperty(ONe,"__esModule",{value:!0});var Ssr=ru(),Tsr={keyword:"allOf",schemaType:"array",code(o){let{gen:s,schema:f,it:d}=o;if(!Array.isArray(f))throw new Error("ajv implementation error");let y=s.name("valid");f.forEach((x,P)=>{if((0,Ssr.alwaysValidSchema)(d,x))return;let F=o.subschema({keyword:"allOf",schemaProp:P},y);o.ok(y),o.mergeEvaluated(F)})}};ONe.default=Tsr});var ict=or(FNe=>{"use strict";Object.defineProperty(FNe,"__esModule",{value:!0});var sle=Cc(),nct=ru(),xsr={message:t(({params:o})=>(0,sle.str)`must match "${o.ifClause}" schema`,"message"),params:t(({params:o})=>(0,sle._)`{failingKeyword: ${o.ifClause}}`,"params")},Esr={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:xsr,code(o){let{gen:s,parentSchema:f,it:d}=o;f.then===void 0&&f.else===void 0&&(0,nct.checkStrictMode)(d,'"if" without "then" and "else" is ignored');let y=rct(d,"then"),x=rct(d,"else");if(!y&&!x)return;let P=s.let("valid",!0),F=s.name("_valid");if(J(),o.reset(),y&&x){let Se=s.let("ifClause");o.setParams({ifClause:Se}),s.if(F,G("then",Se),G("else",Se))}else y?s.if(F,G("then")):s.if((0,sle.not)(F),G("else"));o.pass(P,()=>o.error(!0));function J(){let Se=o.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},F);o.mergeEvaluated(Se)}t(J,"validateIf");function G(Se,de){return()=>{let ae=o.subschema({keyword:Se},F);s.assign(P,F),o.mergeValidEvaluated(ae,P),de?s.assign(de,(0,sle._)`${Se}`):o.setParams({ifClause:Se})}}t(G,"validateClause")}};function rct(o,s){let f=o.schema[s];return f!==void 0&&!(0,nct.alwaysValidSchema)(o,f)}t(rct,"hasSchema");FNe.default=Esr});var sct=or(LNe=>{"use strict";Object.defineProperty(LNe,"__esModule",{value:!0});var Csr=ru(),ksr={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:o,parentSchema:s,it:f}){s.if===void 0&&(0,Csr.checkStrictMode)(f,`"${o}" without "if" is ignored`)}};LNe.default=ksr});var MNe=or(RNe=>{"use strict";Object.defineProperty(RNe,"__esModule",{value:!0});var wsr=yNe(),Dsr=Mot(),Psr=vNe(),Asr=Bot(),Nsr=Uot(),Isr=ele(),Osr=Wot(),Fsr=kNe(),Lsr=Hot(),Rsr=Xot(),Msr=Zot(),jsr=Qot(),Bsr=ect(),Usr=tct(),zsr=ict(),$sr=sct();function Jsr(o=!1){let s=[Msr.default,jsr.default,Bsr.default,Usr.default,zsr.default,$sr.default,Osr.default,Fsr.default,Isr.default,Lsr.default,Rsr.default];return o?s.push(Dsr.default,Asr.default):s.push(wsr.default,Psr.default),s.push(Nsr.default),s}t(Jsr,"getApplicator");RNe.default=Jsr});var BNe=or(FH=>{"use strict";Object.defineProperty(FH,"__esModule",{value:!0});FH.dynamicAnchor=void 0;var jNe=Cc(),Wsr=_T(),act=bH(),qsr=Hce(),Vsr={keyword:"$dynamicAnchor",schemaType:"string",code:t(o=>oct(o,o.schema),"code")};function oct(o,s){let{gen:f,it:d}=o;d.schemaEnv.root.dynamicAnchors[s]=!0;let y=(0,jNe._)`${Wsr.default.dynamicAnchors}${(0,jNe.getProperty)(s)}`,x=d.errSchemaPath==="#"?d.validateName:Hsr(o);f.if((0,jNe._)`!${y}`,()=>f.assign(y,x))}t(oct,"dynamicAnchor");FH.dynamicAnchor=oct;function Hsr(o){let{schemaEnv:s,schema:f,self:d}=o.it,{root:y,baseId:x,localRefs:P,meta:F}=s.root,{schemaId:J}=d.opts,G=new act.SchemaEnv({schema:f,schemaId:J,root:y,baseId:x,localRefs:P,meta:F});return act.compileSchema.call(d,G),(0,qsr.getValidate)(o,G)}t(Hsr,"_getValidate");FH.default=Vsr});var UNe=or(LH=>{"use strict";Object.defineProperty(LH,"__esModule",{value:!0});LH.dynamicRef=void 0;var cct=Cc(),Gsr=_T(),lct=Hce(),Ysr={keyword:"$dynamicRef",schemaType:"string",code:t(o=>uct(o,o.schema),"code")};function uct(o,s){let{gen:f,keyword:d,it:y}=o;if(s[0]!=="#")throw new Error(`"${d}" only supports hash fragment reference`);let x=s.slice(1);if(y.allErrors)P();else{let J=f.let("valid",!1);P(J),o.ok(J)}function P(J){if(y.schemaEnv.root.dynamicAnchors[x]){let G=f.let("_v",(0,cct._)`${Gsr.default.dynamicAnchors}${(0,cct.getProperty)(x)}`);f.if(G,F(G,J),F(y.validateName,J))}else F(y.validateName,J)()}t(P,"_dynamicRef");function F(J,G){return G?()=>f.block(()=>{(0,lct.callRef)(o,J),f.let(G,!0)}):()=>(0,lct.callRef)(o,J)}t(F,"_callRef")}t(uct,"dynamicRef");LH.dynamicRef=uct;LH.default=Ysr});var fct=or(zNe=>{"use strict";Object.defineProperty(zNe,"__esModule",{value:!0});var Ksr=BNe(),Xsr=ru(),Zsr={keyword:"$recursiveAnchor",schemaType:"boolean",code(o){o.schema?(0,Ksr.dynamicAnchor)(o,""):(0,Xsr.checkStrictMode)(o.it,"$recursiveAnchor: false is ignored")}};zNe.default=Zsr});var _ct=or($Ne=>{"use strict";Object.defineProperty($Ne,"__esModule",{value:!0});var Qsr=UNe(),ear={keyword:"$recursiveRef",schemaType:"string",code:t(o=>(0,Qsr.dynamicRef)(o,o.schema),"code")};$Ne.default=ear});var pct=or(JNe=>{"use strict";Object.defineProperty(JNe,"__esModule",{value:!0});var tar=BNe(),rar=UNe(),nar=fct(),iar=_ct(),sar=[tar.default,rar.default,nar.default,iar.default];JNe.default=sar});var mct=or(WNe=>{"use strict";Object.defineProperty(WNe,"__esModule",{value:!0});var dct=ele(),aar={keyword:"dependentRequired",type:"object",schemaType:"object",error:dct.error,code:t(o=>(0,dct.validatePropertyDeps)(o),"code")};WNe.default=aar});var hct=or(qNe=>{"use strict";Object.defineProperty(qNe,"__esModule",{value:!0});var oar=ele(),car={keyword:"dependentSchemas",type:"object",schemaType:"object",code:t(o=>(0,oar.validateSchemaDeps)(o),"code")};qNe.default=car});var gct=or(VNe=>{"use strict";Object.defineProperty(VNe,"__esModule",{value:!0});var lar=ru(),uar={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:o,parentSchema:s,it:f}){s.contains===void 0&&(0,lar.checkStrictMode)(f,`"${o}" without "contains" is ignored`)}};VNe.default=uar});var yct=or(HNe=>{"use strict";Object.defineProperty(HNe,"__esModule",{value:!0});var far=mct(),_ar=hct(),par=gct(),dar=[far.default,_ar.default,par.default];HNe.default=dar});var bct=or(GNe=>{"use strict";Object.defineProperty(GNe,"__esModule",{value:!0});var lI=Cc(),vct=ru(),mar=_T(),har={message:"must NOT have unevaluated properties",params:t(({params:o})=>(0,lI._)`{unevaluatedProperty: ${o.unevaluatedProperty}}`,"params")},gar={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:har,code(o){let{gen:s,schema:f,data:d,errsCount:y,it:x}=o;if(!y)throw new Error("ajv implementation error");let{allErrors:P,props:F}=x;F instanceof lI.Name?s.if((0,lI._)`${F} !== true`,()=>s.forIn("key",d,de=>s.if(G(F,de),()=>J(de)))):F!==!0&&s.forIn("key",d,de=>F===void 0?J(de):s.if(Se(F,de),()=>J(de))),x.props=!0,o.ok((0,lI._)`${y} === ${mar.default.errors}`);function J(de){if(f===!1){o.setParams({unevaluatedProperty:de}),o.error(),P||s.break();return}if(!(0,vct.alwaysValidSchema)(x,f)){let ae=s.name("valid");o.subschema({keyword:"unevaluatedProperties",dataProp:de,dataPropType:vct.Type.Str},ae),P||s.if((0,lI.not)(ae),()=>s.break())}}t(J,"unevaluatedPropCode");function G(de,ae){return(0,lI._)`!${de} || !${de}[${ae}]`}t(G,"unevaluatedDynamic");function Se(de,ae){let Ke=[];for(let $e in de)de[$e]===!0&&Ke.push((0,lI._)`${ae} !== ${$e}`);return(0,lI.and)(...Ke)}t(Se,"unevaluatedStatic")}};GNe.default=gar});var Tct=or(YNe=>{"use strict";Object.defineProperty(YNe,"__esModule",{value:!0});var AO=Cc(),Sct=ru(),yar={message:t(({params:{len:o}})=>(0,AO.str)`must NOT have more than ${o} items`,"message"),params:t(({params:{len:o}})=>(0,AO._)`{limit: ${o}}`,"params")},bar={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:yar,code(o){let{gen:s,schema:f,data:d,it:y}=o,x=y.items||0;if(x===!0)return;let P=s.const("len",(0,AO._)`${d}.length`);if(f===!1)o.setParams({len:x}),o.fail((0,AO._)`${P} > ${x}`);else if(typeof f=="object"&&!(0,Sct.alwaysValidSchema)(y,f)){let J=s.var("valid",(0,AO._)`${P} <= ${x}`);s.if((0,AO.not)(J),()=>F(J,x)),o.ok(J)}y.items=!0;function F(J,G){s.forRange("i",G,P,Se=>{o.subschema({keyword:"unevaluatedItems",dataProp:Se,dataPropType:Sct.Type.Num},J),y.allErrors||s.if((0,AO.not)(J),()=>s.break())})}t(F,"validateItems")}};YNe.default=bar});var xct=or(KNe=>{"use strict";Object.defineProperty(KNe,"__esModule",{value:!0});var Sar=bct(),Tar=Tct(),xar=[Sar.default,Tar.default];KNe.default=xar});var Ect=or(XNe=>{"use strict";Object.defineProperty(XNe,"__esModule",{value:!0});var Cm=Cc(),Ear={message:t(({schemaCode:o})=>(0,Cm.str)`must match format "${o}"`,"message"),params:t(({schemaCode:o})=>(0,Cm._)`{format: ${o}}`,"params")},Car={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:Ear,code(o,s){let{gen:f,data:d,$data:y,schema:x,schemaCode:P,it:F}=o,{opts:J,errSchemaPath:G,schemaEnv:Se,self:de}=F;if(!J.validateFormats)return;y?ae():Ke();function ae(){let $e=f.scopeValue("formats",{ref:de.formats,code:J.code.formats}),Fe=f.const("fDef",(0,Cm._)`${$e}[${P}]`),Gt=f.let("fType"),jt=f.let("format");f.if((0,Cm._)`typeof ${Fe} == "object" && !(${Fe} instanceof RegExp)`,()=>f.assign(Gt,(0,Cm._)`${Fe}.type || "string"`).assign(jt,(0,Cm._)`${Fe}.validate`),()=>f.assign(Gt,(0,Cm._)`"string"`).assign(jt,Fe)),o.fail$data((0,Cm.or)(Pr(),Fn()));function Pr(){return J.strictSchema===!1?Cm.nil:(0,Cm._)`${P} && !${jt}`}t(Pr,"unknownFmt");function Fn(){let sn=Se.$async?(0,Cm._)`(${Fe}.async ? await ${jt}(${d}) : ${jt}(${d}))`:(0,Cm._)`${jt}(${d})`,Un=(0,Cm._)`(typeof ${jt} == "function" ? ${sn} : ${jt}.test(${d}))`;return(0,Cm._)`${jt} && ${jt} !== true && ${Gt} === ${s} && !${Un}`}t(Fn,"invalidFmt")}t(ae,"validate$DataFormat");function Ke(){let $e=de.formats[x];if(!$e){Pr();return}if($e===!0)return;let[Fe,Gt,jt]=Fn($e);Fe===s&&o.pass(sn());function Pr(){if(J.strictSchema===!1){de.logger.warn(Un());return}throw new Error(Un());function Un(){return`unknown format "${x}" ignored in schema at path "${G}"`}}t(Pr,"unknownFormat");function Fn(Un){let Er=Un instanceof RegExp?(0,Cm.regexpCode)(Un):J.code.formats?(0,Cm._)`${J.code.formats}${(0,Cm.getProperty)(x)}`:void 0,vr=f.scopeValue("formats",{key:x,ref:Un,code:Er});return typeof Un=="object"&&!(Un instanceof RegExp)?[Un.type||"string",Un.validate,(0,Cm._)`${vr}.validate`]:["string",Un,vr]}t(Fn,"getFormat");function sn(){if(typeof $e=="object"&&!($e instanceof RegExp)&&$e.async){if(!Se.$async)throw new Error("async format in sync schema");return(0,Cm._)`await ${jt}(${d})`}return typeof Gt=="function"?(0,Cm._)`${jt}(${d})`:(0,Cm._)`${jt}.test(${d})`}t(sn,"validCondition")}t(Ke,"validateFormat")}};XNe.default=Car});var QNe=or(ZNe=>{"use strict";Object.defineProperty(ZNe,"__esModule",{value:!0});var kar=Ect(),war=[kar.default];ZNe.default=war});var eIe=or(bM=>{"use strict";Object.defineProperty(bM,"__esModule",{value:!0});bM.contentVocabulary=bM.metadataVocabulary=void 0;bM.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];bM.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var kct=or(tIe=>{"use strict";Object.defineProperty(tIe,"__esModule",{value:!0});var Dar=eNe(),Par=hNe(),Aar=MNe(),Nar=pct(),Iar=yct(),Oar=xct(),Far=QNe(),Cct=eIe(),Lar=[Nar.default,Dar.default,Par.default,(0,Aar.default)(!0),Far.default,Cct.metadataVocabulary,Cct.contentVocabulary,Iar.default,Oar.default];tIe.default=Lar});var Dct=or(ale=>{"use strict";Object.defineProperty(ale,"__esModule",{value:!0});ale.DiscrError=void 0;var wct;(function(o){o.Tag="tag",o.Mapping="mapping"})(wct||(ale.DiscrError=wct={}))});var iIe=or(nIe=>{"use strict";Object.defineProperty(nIe,"__esModule",{value:!0});var SM=Cc(),rIe=Dct(),Pct=bH(),Rar=hM(),Mar=ru(),jar={message:t(({params:{discrError:o,tagName:s}})=>o===rIe.DiscrError.Tag?`tag "${s}" must be string`:`value of tag "${s}" must be in oneOf`,"message"),params:t(({params:{discrError:o,tag:s,tagName:f}})=>(0,SM._)`{error: ${o}, tag: ${f}, tagValue: ${s}}`,"params")},Bar={keyword:"discriminator",type:"object",schemaType:"object",error:jar,code(o){let{gen:s,data:f,schema:d,parentSchema:y,it:x}=o,{oneOf:P}=y;if(!x.opts.discriminator)throw new Error("discriminator: requires discriminator option");let F=d.propertyName;if(typeof F!="string")throw new Error("discriminator: requires propertyName");if(d.mapping)throw new Error("discriminator: mapping is not supported");if(!P)throw new Error("discriminator: requires oneOf keyword");let J=s.let("valid",!1),G=s.const("tag",(0,SM._)`${f}${(0,SM.getProperty)(F)}`);s.if((0,SM._)`typeof ${G} == "string"`,()=>Se(),()=>o.error(!1,{discrError:rIe.DiscrError.Tag,tag:G,tagName:F})),o.ok(J);function Se(){let Ke=ae();s.if(!1);for(let $e in Ke)s.elseIf((0,SM._)`${G} === ${$e}`),s.assign(J,de(Ke[$e]));s.else(),o.error(!1,{discrError:rIe.DiscrError.Mapping,tag:G,tagName:F}),s.endIf()}t(Se,"validateMapping");function de(Ke){let $e=s.name("valid"),Fe=o.subschema({keyword:"oneOf",schemaProp:Ke},$e);return o.mergeEvaluated(Fe,SM.Name),$e}t(de,"applyTagSchema");function ae(){var Ke;let $e={},Fe=jt(y),Gt=!0;for(let sn=0;sn<P.length;sn++){let Un=P[sn];if(Un?.$ref&&!(0,Mar.schemaHasRulesButRef)(Un,x.self.RULES)){let vr=Un.$ref;if(Un=Pct.resolveRef.call(x.self,x.schemaEnv.root,x.baseId,vr),Un instanceof Pct.SchemaEnv&&(Un=Un.schema),Un===void 0)throw new Rar.default(x.opts.uriResolver,x.baseId,vr)}let Er=(Ke=Un?.properties)===null||Ke===void 0?void 0:Ke[F];if(typeof Er!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${F}"`);Gt=Gt&&(Fe||jt(Un)),Pr(Er,sn)}if(!Gt)throw new Error(`discriminator: "${F}" must be required`);return $e;function jt({required:sn}){return Array.isArray(sn)&&sn.includes(F)}function Pr(sn,Un){if(sn.const)Fn(sn.const,Un);else if(sn.enum)for(let Er of sn.enum)Fn(Er,Un);else throw new Error(`discriminator: "properties/${F}" must have "const" or "enum"`)}function Fn(sn,Un){if(typeof sn!="string"||sn in $e)throw new Error(`discriminator: "${F}" values must be unique strings`);$e[sn]=Un}}t(ae,"getMapping")}};nIe.default=Bar});var Act=or((JAr,Uar)=>{Uar.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 Nct=or((WAr,zar)=>{zar.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 Ict=or((qAr,$ar)=>{$ar.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 Oct=or((VAr,Jar)=>{Jar.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 Fct=or((HAr,War)=>{War.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 Lct=or((GAr,qar)=>{qar.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 Rct=or((YAr,Var)=>{Var.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 Mct=or((KAr,Har)=>{Har.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 jct=or(sIe=>{"use strict";Object.defineProperty(sIe,"__esModule",{value:!0});var Gar=Act(),Yar=Nct(),Kar=Ict(),Xar=Oct(),Zar=Fct(),Qar=Lct(),eor=Rct(),tor=Mct(),ror=["/properties"];function nor(o){return[Gar,Yar,Kar,Xar,Zar,s(this,Qar),eor,s(this,tor)].forEach(f=>this.addMetaSchema(f,void 0,!1)),this;function s(f,d){return o?f.$dataMetaSchema(d,ror):d}t(s,"with$data")}t(nor,"addMetaSchema2020");sIe.default=nor});var ole=or((Pp,oIe)=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});Pp.MissingRefError=Pp.ValidationError=Pp.CodeGen=Pp.Name=Pp.nil=Pp.stringify=Pp.str=Pp._=Pp.KeywordCxt=Pp.Ajv2020=void 0;var ior=X6e(),sor=kct(),aor=iIe(),oor=jct(),aIe="https://json-schema.org/draft/2020-12/schema",TM=class extends ior.default{static{t(this,"Ajv2020")}constructor(s={}){super({...s,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),sor.default.forEach(s=>this.addVocabulary(s)),this.opts.discriminator&&this.addKeyword(aor.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:s,meta:f}=this.opts;f&&(oor.default.call(this,s),this.refs["http://json-schema.org/schema"]=aIe)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(aIe)?aIe:void 0)}};Pp.Ajv2020=TM;oIe.exports=Pp=TM;oIe.exports.Ajv2020=TM;Object.defineProperty(Pp,"__esModule",{value:!0});Pp.default=TM;var cor=mM();Object.defineProperty(Pp,"KeywordCxt",{enumerable:!0,get:t(function(){return cor.KeywordCxt},"get")});var xM=Cc();Object.defineProperty(Pp,"_",{enumerable:!0,get:t(function(){return xM._},"get")});Object.defineProperty(Pp,"str",{enumerable:!0,get:t(function(){return xM.str},"get")});Object.defineProperty(Pp,"stringify",{enumerable:!0,get:t(function(){return xM.stringify},"get")});Object.defineProperty(Pp,"nil",{enumerable:!0,get:t(function(){return xM.nil},"get")});Object.defineProperty(Pp,"Name",{enumerable:!0,get:t(function(){return xM.Name},"get")});Object.defineProperty(Pp,"CodeGen",{enumerable:!0,get:t(function(){return xM.CodeGen},"get")});var lor=vH();Object.defineProperty(Pp,"ValidationError",{enumerable:!0,get:t(function(){return lor.default},"get")});var uor=hM();Object.defineProperty(Pp,"MissingRefError",{enumerable:!0,get:t(function(){return uor.default},"get")})});var Vct=or(Bk=>{"use strict";Object.defineProperty(Bk,"__esModule",{value:!0});Bk.formatNames=Bk.fastFormats=Bk.fullFormats=void 0;function jk(o,s){return{validate:o,compare:s}}t(jk,"fmtDef");Bk.fullFormats={date:jk($ct,fIe),time:jk(lIe(!0),_Ie),"date-time":jk(Bct(!0),Wct),"iso-time":jk(lIe(),Jct),"iso-date-time":jk(Bct(),qct),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:gor,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:Eor,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:yor,int32:{type:"number",validate:Sor},int64:{type:"number",validate:Tor},float:{type:"number",validate:zct},double:{type:"number",validate:zct},password:!0,binary:!0};Bk.fastFormats={...Bk.fullFormats,date:jk(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,fIe),time:jk(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,_Ie),"date-time":jk(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,Wct),"iso-time":jk(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,Jct),"iso-date-time":jk(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,qct),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};Bk.formatNames=Object.keys(Bk.fullFormats);function _or(o){return o%4===0&&(o%100!==0||o%400===0)}t(_or,"isLeapYear");var por=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,dor=[0,31,28,31,30,31,30,31,31,30,31,30,31];function $ct(o){let s=por.exec(o);if(!s)return!1;let f=+s[1],d=+s[2],y=+s[3];return d>=1&&d<=12&&y>=1&&y<=(d===2&&_or(f)?29:dor[d])}t($ct,"date");function fIe(o,s){if(o&&s)return o>s?1:o<s?-1:0}t(fIe,"compareDate");var cIe=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function lIe(o){return t(function(f){let d=cIe.exec(f);if(!d)return!1;let y=+d[1],x=+d[2],P=+d[3],F=d[4],J=d[5]==="-"?-1:1,G=+(d[6]||0),Se=+(d[7]||0);if(G>23||Se>59||o&&!F)return!1;if(y<=23&&x<=59&&P<60)return!0;let de=x-Se*J,ae=y-G*J-(de<0?1:0);return(ae===23||ae===-1)&&(de===59||de===-1)&&P<61},"time")}t(lIe,"getTime");function _Ie(o,s){if(!(o&&s))return;let f=new Date("2020-01-01T"+o).valueOf(),d=new Date("2020-01-01T"+s).valueOf();if(f&&d)return f-d}t(_Ie,"compareTime");function Jct(o,s){if(!(o&&s))return;let f=cIe.exec(o),d=cIe.exec(s);if(f&&d)return o=f[1]+f[2]+f[3],s=d[1]+d[2]+d[3],o>s?1:o<s?-1:0}t(Jct,"compareIsoTime");var uIe=/t|\s/i;function Bct(o){let s=lIe(o);return t(function(d){let y=d.split(uIe);return y.length===2&&$ct(y[0])&&s(y[1])},"date_time")}t(Bct,"getDateTime");function Wct(o,s){if(!(o&&s))return;let f=new Date(o).valueOf(),d=new Date(s).valueOf();if(f&&d)return f-d}t(Wct,"compareDateTime");function qct(o,s){if(!(o&&s))return;let[f,d]=o.split(uIe),[y,x]=s.split(uIe),P=fIe(f,y);if(P!==void 0)return P||_Ie(d,x)}t(qct,"compareIsoDateTime");var mor=/\/|:/,hor=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function gor(o){return mor.test(o)&&hor.test(o)}t(gor,"uri");var Uct=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function yor(o){return Uct.lastIndex=0,Uct.test(o)}t(yor,"byte");var vor=-(2**31),bor=2**31-1;function Sor(o){return Number.isInteger(o)&&o<=bor&&o>=vor}t(Sor,"validateInt32");function Tor(o){return Number.isInteger(o)}t(Tor,"validateInt64");function zct(){return!0}t(zct,"validateNumber");var xor=/[^\\]\\Z/;function Eor(o){if(xor.test(o))return!1;try{return new RegExp(o),!0}catch{return!1}}t(Eor,"regex")});var Gct=or(pIe=>{"use strict";Object.defineProperty(pIe,"__esModule",{value:!0});var Cor=eNe(),kor=hNe(),wor=MNe(),Dor=QNe(),Hct=eIe(),Por=[Cor.default,kor.default,(0,wor.default)(),Dor.default,Hct.metadataVocabulary,Hct.contentVocabulary];pIe.default=Por});var Yct=or((n6r,Aor)=>{Aor.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var lle=or((Ap,dIe)=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0});Ap.MissingRefError=Ap.ValidationError=Ap.CodeGen=Ap.Name=Ap.nil=Ap.stringify=Ap.str=Ap._=Ap.KeywordCxt=Ap.Ajv=void 0;var Nor=X6e(),Ior=Gct(),Oor=iIe(),Kct=Yct(),For=["/properties"],cle="http://json-schema.org/draft-07/schema",EM=class extends Nor.default{static{t(this,"Ajv")}_addVocabularies(){super._addVocabularies(),Ior.default.forEach(s=>this.addVocabulary(s)),this.opts.discriminator&&this.addKeyword(Oor.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let s=this.opts.$data?this.$dataMetaSchema(Kct,For):Kct;this.addMetaSchema(s,cle,!1),this.refs["http://json-schema.org/schema"]=cle}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(cle)?cle:void 0)}};Ap.Ajv=EM;dIe.exports=Ap=EM;dIe.exports.Ajv=EM;Object.defineProperty(Ap,"__esModule",{value:!0});Ap.default=EM;var Lor=mM();Object.defineProperty(Ap,"KeywordCxt",{enumerable:!0,get:t(function(){return Lor.KeywordCxt},"get")});var CM=Cc();Object.defineProperty(Ap,"_",{enumerable:!0,get:t(function(){return CM._},"get")});Object.defineProperty(Ap,"str",{enumerable:!0,get:t(function(){return CM.str},"get")});Object.defineProperty(Ap,"stringify",{enumerable:!0,get:t(function(){return CM.stringify},"get")});Object.defineProperty(Ap,"nil",{enumerable:!0,get:t(function(){return CM.nil},"get")});Object.defineProperty(Ap,"Name",{enumerable:!0,get:t(function(){return CM.Name},"get")});Object.defineProperty(Ap,"CodeGen",{enumerable:!0,get:t(function(){return CM.CodeGen},"get")});var Ror=vH();Object.defineProperty(Ap,"ValidationError",{enumerable:!0,get:t(function(){return Ror.default},"get")});var Mor=hM();Object.defineProperty(Ap,"MissingRefError",{enumerable:!0,get:t(function(){return Mor.default},"get")})});var Xct=or(kM=>{"use strict";Object.defineProperty(kM,"__esModule",{value:!0});kM.formatLimitDefinition=void 0;var jor=lle(),CE=Cc(),uI=CE.operators,ule={formatMaximum:{okStr:"<=",ok:uI.LTE,fail:uI.GT},formatMinimum:{okStr:">=",ok:uI.GTE,fail:uI.LT},formatExclusiveMaximum:{okStr:"<",ok:uI.LT,fail:uI.GTE},formatExclusiveMinimum:{okStr:">",ok:uI.GT,fail:uI.LTE}},Bor={message:t(({keyword:o,schemaCode:s})=>(0,CE.str)`should be ${ule[o].okStr} ${s}`,"message"),params:t(({keyword:o,schemaCode:s})=>(0,CE._)`{comparison: ${ule[o].okStr}, limit: ${s}}`,"params")};kM.formatLimitDefinition={keyword:Object.keys(ule),type:"string",schemaType:"string",$data:!0,error:Bor,code(o){let{gen:s,data:f,schemaCode:d,keyword:y,it:x}=o,{opts:P,self:F}=x;if(!P.validateFormats)return;let J=new jor.KeywordCxt(x,F.RULES.all.format.definition,"format");J.$data?G():Se();function G(){let ae=s.scopeValue("formats",{ref:F.formats,code:P.code.formats}),Ke=s.const("fmt",(0,CE._)`${ae}[${J.schemaCode}]`);o.fail$data((0,CE.or)((0,CE._)`typeof ${Ke} != "object"`,(0,CE._)`${Ke} instanceof RegExp`,(0,CE._)`typeof ${Ke}.compare != "function"`,de(Ke)))}t(G,"validate$DataFormat");function Se(){let ae=J.schema,Ke=F.formats[ae];if(!Ke||Ke===!0)return;if(typeof Ke!="object"||Ke instanceof RegExp||typeof Ke.compare!="function")throw new Error(`"${y}": format "${ae}" does not define "compare" function`);let $e=s.scopeValue("formats",{key:ae,ref:Ke,code:P.code.formats?(0,CE._)`${P.code.formats}${(0,CE.getProperty)(ae)}`:void 0});o.fail$data(de($e))}t(Se,"validateFormat");function de(ae){return(0,CE._)`${ae}.compare(${f}, ${d}) ${ule[y].fail} 0`}t(de,"compareCode")},dependencies:["format"]};var Uor=t(o=>(o.addKeyword(kM.formatLimitDefinition),o),"formatLimitPlugin");kM.default=Uor});var tlt=or((RH,elt)=>{"use strict";Object.defineProperty(RH,"__esModule",{value:!0});var wM=Vct(),zor=Xct(),mIe=Cc(),Zct=new mIe.Name("fullFormats"),$or=new mIe.Name("fastFormats"),hIe=t((o,s={keywords:!0})=>{if(Array.isArray(s))return Qct(o,s,wM.fullFormats,Zct),o;let[f,d]=s.mode==="fast"?[wM.fastFormats,$or]:[wM.fullFormats,Zct],y=s.formats||wM.formatNames;return Qct(o,y,f,d),s.keywords&&(0,zor.default)(o),o},"formatsPlugin");hIe.get=(o,s="full")=>{let d=(s==="fast"?wM.fastFormats:wM.fullFormats)[o];if(!d)throw new Error(`Unknown format "${o}"`);return d};function Qct(o,s,f,d){var y,x;(y=(x=o.opts.code).formats)!==null&&y!==void 0||(x.formats=(0,mIe._)`require("ajv-formats/dist/formats").${d}`);for(let P of s)o.addFormat(P,f[P])}t(Qct,"addFormats");elt.exports=RH=hIe;Object.defineProperty(RH,"__esModule",{value:!0});RH.default=hIe});var Sle=or(DM=>{"use strict";Object.defineProperty(DM,"__esModule",{value:!0});DM.getDeepKeys=DM.toJSON=void 0;var mcr=["function","symbol","undefined"],hcr=["constructor","prototype","__proto__"],gcr=Object.getPrototypeOf({});function ycr(){let o={},s=this;for(let f of mlt(s))if(typeof f=="string"){let d=s[f],y=typeof d;mcr.includes(y)||(o[f]=d)}return o}t(ycr,"toJSON");DM.toJSON=ycr;function mlt(o,s=[]){let f=[];for(;o&&o!==gcr;)f=f.concat(Object.getOwnPropertyNames(o),Object.getOwnPropertySymbols(o)),o=Object.getPrototypeOf(o);let d=new Set(f);for(let y of s.concat(hcr))d.delete(y);return d}t(mlt,"getDeepKeys");DM.getDeepKeys=mlt});var SIe=or(PM=>{"use strict";Object.defineProperty(PM,"__esModule",{value:!0});PM.addInspectMethod=PM.format=void 0;var hlt=_o("util"),vcr=Sle(),glt=hlt.inspect.custom||Symbol.for("nodejs.util.inspect.custom");PM.format=hlt.format;function bcr(o){o[glt]=Scr}t(bcr,"addInspectMethod");PM.addInspectMethod=bcr;function Scr(){let o={},s=this;for(let f of vcr.getDeepKeys(s)){let d=s[f];o[f]=d}return delete o[glt],o}t(Scr,"inspect")});var blt=or(Uk=>{"use strict";Object.defineProperty(Uk,"__esModule",{value:!0});Uk.lazyJoinStacks=Uk.joinStacks=Uk.isWritableStack=Uk.isLazyStack=void 0;var Tcr=/\r?\n/,xcr=/\bono[ @]/;function Ecr(o){return!!(o&&o.configurable&&typeof o.get=="function")}t(Ecr,"isLazyStack");Uk.isLazyStack=Ecr;function Ccr(o){return!!(!o||o.writable||typeof o.set=="function")}t(Ccr,"isWritableStack");Uk.isWritableStack=Ccr;function ylt(o,s){let f=vlt(o.stack),d=s?s.stack:void 0;return f&&d?f+`
|
|
67
|
+
|
|
68
|
+
`+d:f||d}t(ylt,"joinStacks");Uk.joinStacks=ylt;function kcr(o,s,f){f?Object.defineProperty(s,"stack",{get:t(()=>{let d=o.get.apply(s);return ylt({stack:d},f)},"get"),enumerable:!1,configurable:!0}):wcr(s,o)}t(kcr,"lazyJoinStacks");Uk.lazyJoinStacks=kcr;function vlt(o){if(o){let s=o.split(Tcr),f;for(let d=0;d<s.length;d++){let y=s[d];if(xcr.test(y))f===void 0&&(f=d);else if(f!==void 0){s.splice(f,d-f);break}}if(s.length>0)return s.join(`
|
|
69
|
+
`)}return o}t(vlt,"popStack");function wcr(o,s){Object.defineProperty(o,"stack",{get:t(()=>vlt(s.get.apply(o)),"get"),enumerable:!1,configurable:!0})}t(wcr,"lazyPopStack")});var xlt=or(xle=>{"use strict";Object.defineProperty(xle,"__esModule",{value:!0});xle.extendError=void 0;var Slt=SIe(),Tle=blt(),Tlt=Sle(),Dcr=["name","message","stack"];function Pcr(o,s,f){let d=o;return Acr(d,s),s&&typeof s=="object"&&Ncr(d,s),d.toJSON=Tlt.toJSON,Slt.addInspectMethod&&Slt.addInspectMethod(d),f&&typeof f=="object"&&Object.assign(d,f),d}t(Pcr,"extendError");xle.extendError=Pcr;function Acr(o,s){let f=Object.getOwnPropertyDescriptor(o,"stack");Tle.isLazyStack(f)?Tle.lazyJoinStacks(f,o,s):Tle.isWritableStack(f)&&(o.stack=Tle.joinStacks(o,s))}t(Acr,"extendStack");function Ncr(o,s){let f=Tlt.getDeepKeys(s,Dcr),d=o,y=s;for(let x of f)if(d[x]===void 0)try{d[x]=y[x]}catch{}}t(Ncr,"mergeErrors")});var Elt=or(AM=>{"use strict";Object.defineProperty(AM,"__esModule",{value:!0});AM.normalizeArgs=AM.normalizeOptions=void 0;var Icr=SIe();function Ocr(o){return o=o||{},{concatMessages:o.concatMessages===void 0?!0:!!o.concatMessages,format:o.format===void 0?Icr.format:typeof o.format=="function"?o.format:!1}}t(Ocr,"normalizeOptions");AM.normalizeOptions=Ocr;function Fcr(o,s){let f,d,y,x="";return typeof o[0]=="string"?y=o:typeof o[1]=="string"?(o[0]instanceof Error?f=o[0]:d=o[0],y=o.slice(1)):(f=o[0],d=o[1],y=o.slice(2)),y.length>0&&(s.format?x=s.format.apply(void 0,y):x=y.join(" ")),s.concatMessages&&f&&f.message&&(x+=(x?`
|
|
70
|
+
`:"")+f.message),{originalError:f,props:d,message:x}}t(Fcr,"normalizeArgs");AM.normalizeArgs=Fcr});var xIe=or(Cle=>{"use strict";Object.defineProperty(Cle,"__esModule",{value:!0});Cle.Ono=void 0;var Ele=xlt(),Clt=Elt(),Lcr=Sle(),Rcr=TIe;Cle.Ono=Rcr;function TIe(o,s){s=Clt.normalizeOptions(s);function f(...d){let{originalError:y,props:x,message:P}=Clt.normalizeArgs(d,s),F=new o(P);return Ele.extendError(F,y,x)}return t(f,"ono"),f[Symbol.species]=o,f}t(TIe,"Ono");TIe.toJSON=t(function(s){return Lcr.toJSON.call(s)},"toJSON");TIe.extend=t(function(s,f,d){return d||f instanceof Error?Ele.extendError(s,f,d):f?Ele.extendError(s,void 0,f):Ele.extendError(s)},"extend")});var klt=or(kle=>{"use strict";Object.defineProperty(kle,"__esModule",{value:!0});kle.ono=void 0;var NO=xIe(),Mcr=zk;kle.ono=Mcr;zk.error=new NO.Ono(Error);zk.eval=new NO.Ono(EvalError);zk.range=new NO.Ono(RangeError);zk.reference=new NO.Ono(ReferenceError);zk.syntax=new NO.Ono(SyntaxError);zk.type=new NO.Ono(TypeError);zk.uri=new NO.Ono(URIError);var jcr=zk;function zk(...o){let s=o[0];if(typeof s=="object"&&typeof s.name=="string"){for(let f of Object.values(jcr))if(typeof f=="function"&&f.name==="ono"){let d=f[Symbol.species];if(d&&d!==Error&&(s instanceof d||s.name===d.name))return f.apply(void 0,o)}}return zk.error.apply(void 0,o)}t(zk,"ono")});var Dlt=or(wlt=>{"use strict";Object.defineProperty(wlt,"__esModule",{value:!0});var vNr=_o("util")});var pI=or((kE,NM)=>{"use strict";var Bcr=kE&&kE.__createBinding||(Object.create?function(o,s,f,d){d===void 0&&(d=f),Object.defineProperty(o,d,{enumerable:!0,get:t(function(){return s[f]},"get")})}:function(o,s,f,d){d===void 0&&(d=f),o[d]=s[f]}),Ucr=kE&&kE.__exportStar||function(o,s){for(var f in o)f!=="default"&&!s.hasOwnProperty(f)&&Bcr(s,o,f)};Object.defineProperty(kE,"__esModule",{value:!0});kE.ono=void 0;var Plt=klt();Object.defineProperty(kE,"ono",{enumerable:!0,get:t(function(){return Plt.ono},"get")});var zcr=xIe();Object.defineProperty(kE,"Ono",{enumerable:!0,get:t(function(){return zcr.Ono},"get")});Ucr(Dlt(),kE);kE.default=Plt.ono;typeof NM=="object"&&typeof NM.exports=="object"&&(NM.exports=Object.assign(NM.exports.default,NM.exports))});var EIe=or(jH=>{"use strict";var $cr=jH&&jH.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(jH,"__esModule",{value:!0});jH.default=Jcr;var Alt=$cr(_o("path"));function Jcr(o){return o.startsWith("\\\\?\\")?o:o.split(Alt.default?.win32?.sep).join(Alt.default?.posix?.sep??"/")}t(Jcr,"convertPathToPosix")});var Nlt=or(wle=>{"use strict";Object.defineProperty(wle,"__esModule",{value:!0});wle.isWindows=void 0;var Wcr=/^win/.test(globalThis.process?globalThis.process.platform:""),qcr=t(()=>Wcr,"isWindows");wle.isWindows=qcr});var hT=or(Np=>{"use strict";var Vcr=Np&&Np.__createBinding||(Object.create?function(o,s,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(s,f);(!y||("get"in y?!s.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return s[f]},"get")}),Object.defineProperty(o,d,y)}:function(o,s,f,d){d===void 0&&(d=f),o[d]=s[f]}),Hcr=Np&&Np.__setModuleDefault||(Object.create?function(o,s){Object.defineProperty(o,"default",{enumerable:!0,value:s})}:function(o,s){o.default=s}),Gcr=Np&&Np.__importStar||function(o){if(o&&o.__esModule)return o;var s={};if(o!=null)for(var f in o)f!=="default"&&Object.prototype.hasOwnProperty.call(o,f)&&Vcr(s,o,f);return Hcr(s,o),s},Ycr=Np&&Np.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Np,"__esModule",{value:!0});Np.parse=void 0;Np.resolve=Ilt;Np.cwd=Olt;Np.getProtocol=PIe;Np.getExtension=nlr;Np.stripQuery=Flt;Np.getHash=Llt;Np.stripHash=wIe;Np.isHttp=ilr;Np.isFileSystemPath=DIe;Np.fromFileSystemPath=slr;Np.toFileSystemPath=alr;Np.safePointerToPath=olr;Np.relative=clr;var Ple=Ycr(EIe()),kIe=Gcr(_o("path")),Kcr=/\//g,Xcr=/^(\w{2,}):\/\//i,Zcr=/~1/g,Qcr=/~0/g,elr=_o("path"),Dle=Nlt(),tlr=[[/\?/g,"%3F"],[/#/g,"%23"]],CIe=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],rlr=t(o=>new URL(o),"parse");Np.parse=rlr;function Ilt(o,s){let f=new URL((0,Ple.default)(o),"resolve://"),d=new URL((0,Ple.default)(s),f),y=s.match(/(\s*)$/)?.[1]||"";if(d.protocol==="resolve:"){let{pathname:x,search:P,hash:F}=d;return x+P+F+y}return d.toString()+y}t(Ilt,"resolve");function Olt(){if(typeof window<"u")return location.href;let o=process.cwd(),s=o.slice(-1);return s==="/"||s==="\\"?o:o+"/"}t(Olt,"cwd");function PIe(o){let s=Xcr.exec(o||"");if(s)return s[1].toLowerCase()}t(PIe,"getProtocol");function nlr(o){let s=o.lastIndexOf(".");return s>=0?Flt(o.substr(s).toLowerCase()):""}t(nlr,"getExtension");function Flt(o){let s=o.indexOf("?");return s>=0&&(o=o.substr(0,s)),o}t(Flt,"stripQuery");function Llt(o){if(!o)return"#";let s=o.indexOf("#");return s>=0?o.substring(s):"#"}t(Llt,"getHash");function wIe(o){if(!o)return"";let s=o.indexOf("#");return s>=0&&(o=o.substring(0,s)),o}t(wIe,"stripHash");function ilr(o){let s=PIe(o);return s==="http"||s==="https"?!0:s===void 0?typeof window<"u":!1}t(ilr,"isHttp");function DIe(o){if(typeof window<"u"||typeof process<"u"&&process.browser)return!1;let s=PIe(o);return s===void 0||s==="file"}t(DIe,"isFileSystemPath");function slr(o){if((0,Dle.isWindows)()){let s=Olt(),f=o.toUpperCase(),y=(0,Ple.default)(s).toUpperCase(),x=f.includes(y),P=f.includes(y),F=kIe.win32?.isAbsolute(o)||o.startsWith("http://")||o.startsWith("https://")||o.startsWith("file://");!(x||P||F)&&!s.startsWith("http")&&(o=(0,elr.join)(s,o)),o=(0,Ple.default)(o)}o=encodeURI(o);for(let s of tlr)o=o.replace(s[0],s[1]);return o}t(slr,"fromFileSystemPath");function alr(o,s){o=decodeURI(o);for(let d=0;d<CIe.length;d+=2)o=o.replace(CIe[d],CIe[d+1]);let f=o.substr(0,7).toLowerCase()==="file://";return f&&(o=o[7]==="/"?o.substr(8):o.substr(7),(0,Dle.isWindows)()&&o[1]==="/"&&(o=o[0]+":"+o.substr(1)),s?o="file:///"+o:(f=!1,o=(0,Dle.isWindows)()?o:"/"+o)),(0,Dle.isWindows)()&&!f&&(o=o.replace(Kcr,"\\"),o.substr(1,2)===":\\"&&(o=o[0].toUpperCase()+o.substr(1))),o}t(alr,"toFileSystemPath");function olr(o){return o.length<=1||o[0]!=="#"||o[1]!=="/"?[]:o.slice(2).split("/").map(s=>decodeURIComponent(s).replace(Zcr,"/").replace(Qcr,"~"))}t(olr,"safePointerToPath");function clr(o,s){if(!DIe(o)||!DIe(s))return Ilt(o,s);let f=kIe.default.dirname(wIe(o)),d=wIe(s);return kIe.default.relative(f,d)+Llt(s)}t(clr,"relative")});var gT=or(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});Qd.InvalidPointerError=Qd.TimeoutError=Qd.MissingPointerError=Qd.UnmatchedResolverError=Qd.ResolverError=Qd.UnmatchedParserError=Qd.ParserError=Qd.JSONParserErrorGroup=Qd.JSONParserError=void 0;Qd.isHandledError=llr;Qd.normalizeError=ulr;var Rlt=pI(),MIe=hT(),wE=class extends Error{static{t(this,"JSONParserError")}constructor(s,f){super(),this.code="EUNKNOWN",this.name="JSONParserError",this.message=s,this.source=f,this.path=null,Rlt.Ono.extend(this)}get footprint(){return`${this.path}+${this.source}+${this.code}+${this.message}`}};Qd.JSONParserError=wE;var Ale=class o extends Error{static{t(this,"JSONParserErrorGroup")}constructor(s){super(),this.files=s,this.name="JSONParserErrorGroup",this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${(0,MIe.toFileSystemPath)(s.$refs._root$Ref.path)}'`,Rlt.Ono.extend(this)}static getParserErrors(s){let f=[];for(let d of Object.values(s.$refs._$refs))d.errors&&f.push(...d.errors);return f}get errors(){return o.getParserErrors(this.files)}};Qd.JSONParserErrorGroup=Ale;var AIe=class extends wE{static{t(this,"ParserError")}constructor(s,f){super(`Error parsing ${f}: ${s}`,f),this.code="EPARSER",this.name="ParserError"}};Qd.ParserError=AIe;var NIe=class extends wE{static{t(this,"UnmatchedParserError")}constructor(s){super(`Could not find parser for "${s}"`,s),this.code="EUNMATCHEDPARSER",this.name="UnmatchedParserError"}};Qd.UnmatchedParserError=NIe;var IIe=class extends wE{static{t(this,"ResolverError")}constructor(s,f){super(s.message||`Error reading file "${f}"`,f),this.code="ERESOLVER",this.name="ResolverError","code"in s&&(this.ioErrorCode=String(s.code))}};Qd.ResolverError=IIe;var OIe=class extends wE{static{t(this,"UnmatchedResolverError")}constructor(s){super(`Could not find resolver for "${s}"`,s),this.code="EUNMATCHEDRESOLVER",this.name="UnmatchedResolverError"}};Qd.UnmatchedResolverError=OIe;var FIe=class extends wE{static{t(this,"MissingPointerError")}constructor(s,f){super(`Token "${s}" does not exist.`,(0,MIe.stripHash)(f)),this.code="EUNMATCHEDRESOLVER",this.name="MissingPointerError"}};Qd.MissingPointerError=FIe;var LIe=class extends wE{static{t(this,"TimeoutError")}constructor(s){super(`Dereferencing timeout reached: ${s}ms`),this.code="ETIMEOUT",this.name="TimeoutError"}};Qd.TimeoutError=LIe;var RIe=class extends wE{static{t(this,"InvalidPointerError")}constructor(s,f){super(`Invalid $ref pointer "${s}". Pointers must begin with "#/"`,(0,MIe.stripHash)(f)),this.code="EUNMATCHEDRESOLVER",this.name="InvalidPointerError"}};Qd.InvalidPointerError=RIe;function llr(o){return o instanceof wE||o instanceof Ale}t(llr,"isHandledError");function ulr(o){return o.path===null&&(o.path=[]),o}t(ulr,"normalizeError")});var BH=or(DE=>{"use strict";var flr=DE&&DE.__createBinding||(Object.create?function(o,s,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(s,f);(!y||("get"in y?!s.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return s[f]},"get")}),Object.defineProperty(o,d,y)}:function(o,s,f,d){d===void 0&&(d=f),o[d]=s[f]}),_lr=DE&&DE.__setModuleDefault||(Object.create?function(o,s){Object.defineProperty(o,"default",{enumerable:!0,value:s})}:function(o,s){o.default=s}),plr=DE&&DE.__importStar||function(o){if(o&&o.__esModule)return o;var s={};if(o!=null)for(var f in o)f!=="default"&&Object.prototype.hasOwnProperty.call(o,f)&&flr(s,o,f);return _lr(s,o),s},dlr=DE&&DE.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(DE,"__esModule",{value:!0});var jIe=dlr(IM()),BIe=plr(hT()),Ile=gT(),mlr=/\//g,hlr=/~/g,glr=/~1/g,ylr=/~0/g,vlr=t(o=>{try{return decodeURIComponent(o)}catch{return o}},"safeDecodeURIComponent"),Ole=class o{static{t(this,"Pointer")}constructor(s,f,d){this.$ref=s,this.path=f,this.originalPath=d||f,this.value=void 0,this.circular=!1,this.indirections=0}resolve(s,f,d){let y=o.parse(this.path,this.originalPath);this.value=jlt(s);for(let x=0;x<y.length;x++){if(Nle(this,f,d)&&(this.path=o.join(this.path,y.slice(x))),typeof this.value=="object"&&this.value!==null&&!Blt(d)&&"$ref"in this.value)return this;let P=y[x];if(this.value[P]===void 0||this.value[P]===null&&x===y.length-1){let F=!1;for(let J=y.length-1;J>x;J--){let G=y.slice(x,J+1).join("/");if(this.value[G]!==void 0){this.value=this.value[G],x=J,F=!0;break}}if(F)continue;throw this.value=null,new Ile.MissingPointerError(P,decodeURI(this.originalPath))}else this.value=this.value[P]}return(!this.value||this.value.$ref&&BIe.resolve(this.path,this.value.$ref)!==d)&&Nle(this,f,d),this}set(s,f,d){let y=o.parse(this.path),x;if(y.length===0)return this.value=f,f;this.value=jlt(s);for(let P=0;P<y.length-1;P++)Nle(this,d),x=y[P],this.value&&this.value[x]!==void 0?this.value=this.value[x]:this.value=Mlt(this,x,{});return Nle(this,d),x=y[y.length-1],Mlt(this,x,f),s}static parse(s,f){let d=BIe.getHash(s).substring(1);if(!d)return[];let y=d.split("/");for(let x=0;x<y.length;x++)y[x]=vlr(y[x].replace(glr,"/").replace(ylr,"~"));if(y[0]!=="")throw new Ile.InvalidPointerError(y,f===void 0?s:f);return y.slice(1)}static join(s,f){s.indexOf("#")===-1&&(s+="#"),f=Array.isArray(f)?f:[f];for(let d=0;d<f.length;d++){let y=f[d];s+="/"+encodeURIComponent(y.replace(hlr,"~0").replace(mlr,"~1"))}return s}};function Nle(o,s,f){if(jIe.default.isAllowed$Ref(o.value,s)){let d=BIe.resolve(o.path,o.value.$ref);if(d===o.path&&!Blt(f))o.circular=!0;else{let y=o.$ref.$refs._resolve(d,o.path,s);return y===null?!1:(o.indirections+=y.indirections+1,jIe.default.isExtended$Ref(o.value)?(o.value=jIe.default.dereference(o.value,y.value),!1):(o.$ref=y.$ref,o.path=y.path,o.value=y.value,!0))}}}t(Nle,"resolveIf$Ref");DE.default=Ole;function Mlt(o,s,f){if(o.value&&typeof o.value=="object")s==="-"&&Array.isArray(o.value)?o.value.push(f):o.value[s]=f;else throw new Ile.JSONParserError(`Error assigning $ref pointer "${o.path}".
|
|
71
|
+
Cannot set "${s}" of a non-object.`);return f}t(Mlt,"setValue");function jlt(o){if((0,Ile.isHandledError)(o))throw o;return o}t(jlt,"unwrapOrThrow");function Blt(o){return typeof o=="string"&&Ole.parse(o).length==0}t(Blt,"isRootPath")});var IM=or(UH=>{"use strict";var blr=UH&&UH.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(UH,"__esModule",{value:!0});var Ult=blr(BH()),Fle=gT(),UIe=hT(),zIe=class o{static{t(this,"$Ref")}constructor(s){this.errors=[],this.$refs=s}addError(s){this.errors===void 0&&(this.errors=[]);let f=this.errors.map(({footprint:d})=>d);"errors"in s&&Array.isArray(s.errors)?this.errors.push(...s.errors.map(Fle.normalizeError).filter(({footprint:d})=>!f.includes(d))):(!("footprint"in s)||!f.includes(s.footprint))&&this.errors.push((0,Fle.normalizeError)(s))}exists(s,f){try{return this.resolve(s,f),!0}catch{return!1}}get(s,f){return this.resolve(s,f)?.value}resolve(s,f,d,y){let x=new Ult.default(this,s,d);try{return x.resolve(this.value,f,y)}catch(P){if(!f||!f.continueOnError||!(0,Fle.isHandledError)(P))throw P;return P.path===null&&(P.path=(0,UIe.safePointerToPath)((0,UIe.getHash)(y))),P instanceof Fle.InvalidPointerError&&(P.source=decodeURI((0,UIe.stripHash)(y))),this.addError(P),null}}set(s,f){let d=new Ult.default(this,s);this.value=d.set(this.value,f)}static is$Ref(s){return!!s&&typeof s=="object"&&s!==null&&"$ref"in s&&typeof s.$ref=="string"&&s.$ref.length>0}static isExternal$Ref(s){return o.is$Ref(s)&&s.$ref[0]!=="#"}static isAllowed$Ref(s,f){if(this.is$Ref(s)){if(s.$ref.substring(0,2)==="#/"||s.$ref==="#")return!0;if(s.$ref[0]!=="#"&&(!f||f.resolve?.external))return!0}}static isExtended$Ref(s){return o.is$Ref(s)&&Object.keys(s).length>1}static dereference(s,f){if(f&&typeof f=="object"&&o.isExtended$Ref(s)){let d={};for(let y of Object.keys(s))y!=="$ref"&&(d[y]=s[y]);for(let y of Object.keys(f))y in d||(d[y]=f[y]);return d}else return f}};UH.default=zIe});var qlt=or(PE=>{"use strict";var Slr=PE&&PE.__createBinding||(Object.create?function(o,s,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(s,f);(!y||("get"in y?!s.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return s[f]},"get")}),Object.defineProperty(o,d,y)}:function(o,s,f,d){d===void 0&&(d=f),o[d]=s[f]}),Tlr=PE&&PE.__setModuleDefault||(Object.create?function(o,s){Object.defineProperty(o,"default",{enumerable:!0,value:s})}:function(o,s){o.default=s}),xlr=PE&&PE.__importStar||function(o){if(o&&o.__esModule)return o;var s={};if(o!=null)for(var f in o)f!=="default"&&Object.prototype.hasOwnProperty.call(o,f)&&Slr(s,o,f);return Tlr(s,o),s},Wlt=PE&&PE.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(PE,"__esModule",{value:!0});var zlt=pI(),Elr=Wlt(IM()),dI=xlr(hT()),$lt=Wlt(EIe()),$Ie=class{static{t(this,"$Refs")}paths(...s){return Jlt(this._$refs,s.flat()).map(d=>(0,$lt.default)(d.decoded))}values(...s){let f=this._$refs;return Jlt(f,s.flat()).reduce((y,x)=>(y[(0,$lt.default)(x.decoded)]=f[x.encoded].value,y),{})}exists(s,f){try{return this._resolve(s,"",f),!0}catch{return!1}}get(s,f){return this._resolve(s,"",f).value}set(s,f){let d=dI.resolve(this._root$Ref.path,s),y=dI.stripHash(d),x=this._$refs[y];if(!x)throw(0,zlt.ono)(`Error resolving $ref pointer "${s}".
|
|
72
|
+
"${y}" not found.`);x.set(d,f)}_get$Ref(s){s=dI.resolve(this._root$Ref.path,s);let f=dI.stripHash(s);return this._$refs[f]}_add(s){let f=dI.stripHash(s),d=new Elr.default(this);return d.path=f,this._$refs[f]=d,this._root$Ref=this._root$Ref||d,d}_resolve(s,f,d){let y=dI.resolve(this._root$Ref.path,s),x=dI.stripHash(y),P=this._$refs[x];if(!P)throw(0,zlt.ono)(`Error resolving $ref pointer "${s}".
|
|
73
|
+
"${x}" not found.`);return P.resolve(y,d,s,f)}constructor(){this._$refs={},this.toJSON=this.values,this.circular=!1,this._$refs={},this._root$Ref=null}};PE.default=$Ie;function Jlt(o,s){let f=Object.keys(o);return s=Array.isArray(s[0])?s[0]:Array.prototype.slice.call(s),s.length>0&&s[0]&&(f=f.filter(d=>s.includes(o[d].pathType))),f.map(d=>({encoded:d,decoded:o[d].pathType==="file"?dI.toFileSystemPath(d,!0):d}))}t(Jlt,"getPaths")});var Hlt=or(OM=>{"use strict";Object.defineProperty(OM,"__esModule",{value:!0});OM.all=Clr;OM.filter=klr;OM.sort=wlr;OM.run=Dlr;function Clr(o){return Object.keys(o||{}).filter(s=>typeof o[s]=="object").map(s=>(o[s].name=s,o[s]))}t(Clr,"all");function klr(o,s,f){return o.filter(d=>!!Vlt(d,s,f))}t(klr,"filter");function wlr(o){for(let s of o)s.order=s.order||Number.MAX_SAFE_INTEGER;return o.sort((s,f)=>s.order-f.order)}t(wlr,"sort");async function Dlr(o,s,f,d){let y,x,P=0;return new Promise((F,J)=>{G();function G(){if(y=o[P++],!y)return J(x);try{let Ke=Vlt(y,s,f,Se,d);if(Ke&&typeof Ke.then=="function")Ke.then(de,ae);else if(Ke!==void 0)de(Ke);else if(P===o.length)throw new Error("No promise has been returned or callback has been called.")}catch(Ke){ae(Ke)}}t(G,"runNextPlugin");function Se(Ke,$e){Ke?ae(Ke):de($e)}t(Se,"callback");function de(Ke){F({plugin:y,result:Ke})}t(de,"onSuccess");function ae(Ke){x={plugin:y,error:Ke},G()}t(ae,"onError")})}t(Dlr,"run");function Vlt(o,s,f,d,y){let x=o[s];if(typeof x=="function")return x.apply(o,[f,d,y]);if(!d){if(x instanceof RegExp)return x.test(f.url);if(typeof x=="string")return x===f.extension;if(Array.isArray(x))return x.indexOf(f.extension)!==-1}return x}t(Vlt,"getResult")});var WIe=or(QP=>{"use strict";var Plr=QP&&QP.__createBinding||(Object.create?function(o,s,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(s,f);(!y||("get"in y?!s.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return s[f]},"get")}),Object.defineProperty(o,d,y)}:function(o,s,f,d){d===void 0&&(d=f),o[d]=s[f]}),Alr=QP&&QP.__setModuleDefault||(Object.create?function(o,s){Object.defineProperty(o,"default",{enumerable:!0,value:s})}:function(o,s){o.default=s}),Glt=QP&&QP.__importStar||function(o){if(o&&o.__esModule)return o;var s={};if(o!=null)for(var f in o)f!=="default"&&Object.prototype.hasOwnProperty.call(o,f)&&Plr(s,o,f);return Alr(s,o),s};Object.defineProperty(QP,"__esModule",{value:!0});var JIe=pI(),Nlr=Glt(hT()),mI=Glt(Hlt()),IO=gT();async function Ilr(o,s,f){let d=o.indexOf("#"),y="";d>=0&&(y=o.substring(d),o=o.substring(0,d));let x=s._add(o),P={url:o,hash:y,extension:Nlr.getExtension(o)};try{let F=await Olr(P,f,s);x.pathType=F.plugin.name,P.data=F.result;let J=await Flr(P,f,s);return x.value=J.result,J.result}catch(F){throw(0,IO.isHandledError)(F)&&(x.value=F),F}}t(Ilr,"parse");async function Olr(o,s,f){let d=mI.all(s.resolve);d=mI.filter(d,"canRead",o),mI.sort(d);try{return await mI.run(d,"read",o,f)}catch(y){throw!y&&s.continueOnError?new IO.UnmatchedResolverError(o.url):!y||!("error"in y)?JIe.ono.syntax(`Unable to resolve $ref pointer "${o.url}"`):y.error instanceof IO.ResolverError?y.error:new IO.ResolverError(y,o.url)}}t(Olr,"readFile");async function Flr(o,s,f){let d=mI.all(s.parse),y=mI.filter(d,"canParse",o),x=y.length>0?y:d;mI.sort(x);try{let P=await mI.run(x,"parse",o,f);if(!P.plugin.allowEmpty&&Llr(P.result))throw JIe.ono.syntax(`Error parsing "${o.url}" as ${P.plugin.name}.
|
|
74
|
+
Parsed value is empty`);return P}catch(P){throw!P&&s.continueOnError?new IO.UnmatchedParserError(o.url):P&&P.message&&P.message.startsWith("Error parsing")?P:!P||!("error"in P)?JIe.ono.syntax(`Unable to parse ${o.url}`):P.error instanceof IO.ParserError?P.error:new IO.ParserError(P.error.message,o.url)}}t(Flr,"parseFile");function Llr(o){return o===void 0||typeof o=="object"&&Object.keys(o).length===0||typeof o=="string"&&o.trim().length===0||Buffer.isBuffer(o)&&o.length===0}t(Llr,"isEmpty");QP.default=Ilr});var Klt=or(qIe=>{"use strict";Object.defineProperty(qIe,"__esModule",{value:!0});var Ylt=gT();qIe.default={order:100,allowEmpty:!0,canParse:".json",allowBOM:!0,async parse(o){let s=o.data;if(Buffer.isBuffer(s)&&(s=s.toString()),typeof s=="string"){if(s.trim().length===0)return;try{return JSON.parse(s)}catch(f){if(this.allowBOM)try{let d=s.indexOf("{");return s=s.slice(d),JSON.parse(s)}catch(d){throw new Ylt.ParserError(d.message,o.url)}throw new Ylt.ParserError(f.message,o.url)}}else return s}}});var FM=or((zNr,OO)=>{"use strict";function Xlt(o){return typeof o>"u"||o===null}t(Xlt,"isNothing");function Rlr(o){return typeof o=="object"&&o!==null}t(Rlr,"isObject");function Mlr(o){return Array.isArray(o)?o:Xlt(o)?[]:[o]}t(Mlr,"toArray");function jlr(o,s){var f,d,y,x;if(s)for(x=Object.keys(s),f=0,d=x.length;f<d;f+=1)y=x[f],o[y]=s[y];return o}t(jlr,"extend");function Blr(o,s){var f="",d;for(d=0;d<s;d+=1)f+=o;return f}t(Blr,"repeat");function Ulr(o){return o===0&&Number.NEGATIVE_INFINITY===1/o}t(Ulr,"isNegativeZero");OO.exports.isNothing=Xlt;OO.exports.isObject=Rlr;OO.exports.toArray=Mlr;OO.exports.repeat=Blr;OO.exports.isNegativeZero=Ulr;OO.exports.extend=jlr});var LM=or((JNr,Qlt)=>{"use strict";function Zlt(o,s){var f="",d=o.reason||"(unknown reason)";return o.mark?(o.mark.name&&(f+='in "'+o.mark.name+'" '),f+="("+(o.mark.line+1)+":"+(o.mark.column+1)+")",!s&&o.mark.snippet&&(f+=`
|
|
75
|
+
|
|
76
|
+
`+o.mark.snippet),d+" "+f):d}t(Zlt,"formatError");function zH(o,s){Error.call(this),this.name="YAMLException",this.reason=o,this.mark=s,this.message=Zlt(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}t(zH,"YAMLException");zH.prototype=Object.create(Error.prototype);zH.prototype.constructor=zH;zH.prototype.toString=t(function(s){return this.name+": "+Zlt(this,s)},"toString");Qlt.exports=zH});var tut=or((qNr,eut)=>{"use strict";var $H=FM();function VIe(o,s,f,d,y){var x="",P="",F=Math.floor(y/2)-1;return d-s>F&&(x=" ... ",s=d-F+x.length),f-d>F&&(P=" ...",f=d+F-P.length),{str:x+o.slice(s,f).replace(/\t/g,"\u2192")+P,pos:d-s+x.length}}t(VIe,"getLine");function HIe(o,s){return $H.repeat(" ",s-o.length)+o}t(HIe,"padStart");function zlr(o,s){if(s=Object.create(s||null),!o.buffer)return null;s.maxLength||(s.maxLength=79),typeof s.indent!="number"&&(s.indent=1),typeof s.linesBefore!="number"&&(s.linesBefore=3),typeof s.linesAfter!="number"&&(s.linesAfter=2);for(var f=/\r?\n|\r|\0/g,d=[0],y=[],x,P=-1;x=f.exec(o.buffer);)y.push(x.index),d.push(x.index+x[0].length),o.position<=x.index&&P<0&&(P=d.length-2);P<0&&(P=d.length-1);var F="",J,G,Se=Math.min(o.line+s.linesAfter,y.length).toString().length,de=s.maxLength-(s.indent+Se+3);for(J=1;J<=s.linesBefore&&!(P-J<0);J++)G=VIe(o.buffer,d[P-J],y[P-J],o.position-(d[P]-d[P-J]),de),F=$H.repeat(" ",s.indent)+HIe((o.line-J+1).toString(),Se)+" | "+G.str+`
|
|
77
|
+
`+F;for(G=VIe(o.buffer,d[P],y[P],o.position,de),F+=$H.repeat(" ",s.indent)+HIe((o.line+1).toString(),Se)+" | "+G.str+`
|
|
78
|
+
`,F+=$H.repeat("-",s.indent+Se+3+G.pos)+`^
|
|
79
|
+
`,J=1;J<=s.linesAfter&&!(P+J>=y.length);J++)G=VIe(o.buffer,d[P+J],y[P+J],o.position-(d[P]-d[P+J]),de),F+=$H.repeat(" ",s.indent)+HIe((o.line+J+1).toString(),Se)+" | "+G.str+`
|
|
80
|
+
`;return F.replace(/\n$/,"")}t(zlr,"makeSnippet");eut.exports=zlr});var Py=or((HNr,nut)=>{"use strict";var rut=LM(),$lr=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Jlr=["scalar","sequence","mapping"];function Wlr(o){var s={};return o!==null&&Object.keys(o).forEach(function(f){o[f].forEach(function(d){s[String(d)]=f})}),s}t(Wlr,"compileStyleAliases");function qlr(o,s){if(s=s||{},Object.keys(s).forEach(function(f){if($lr.indexOf(f)===-1)throw new rut('Unknown option "'+f+'" is met in definition of "'+o+'" YAML type.')}),this.options=s,this.tag=o,this.kind=s.kind||null,this.resolve=s.resolve||function(){return!0},this.construct=s.construct||function(f){return f},this.instanceOf=s.instanceOf||null,this.predicate=s.predicate||null,this.represent=s.represent||null,this.representName=s.representName||null,this.defaultStyle=s.defaultStyle||null,this.multi=s.multi||!1,this.styleAliases=Wlr(s.styleAliases||null),Jlr.indexOf(this.kind)===-1)throw new rut('Unknown kind "'+this.kind+'" is specified for "'+o+'" YAML type.')}t(qlr,"Type");nut.exports=qlr});var KIe=or((YNr,sut)=>{"use strict";var JH=LM(),GIe=Py();function iut(o,s){var f=[];return o[s].forEach(function(d){var y=f.length;f.forEach(function(x,P){x.tag===d.tag&&x.kind===d.kind&&x.multi===d.multi&&(y=P)}),f[y]=d}),f}t(iut,"compileList");function Vlr(){var o={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},s,f;function d(y){y.multi?(o.multi[y.kind].push(y),o.multi.fallback.push(y)):o[y.kind][y.tag]=o.fallback[y.tag]=y}for(t(d,"collectType"),s=0,f=arguments.length;s<f;s+=1)arguments[s].forEach(d);return o}t(Vlr,"compileMap");function YIe(o){return this.extend(o)}t(YIe,"Schema");YIe.prototype.extend=t(function(s){var f=[],d=[];if(s instanceof GIe)d.push(s);else if(Array.isArray(s))d=d.concat(s);else if(s&&(Array.isArray(s.implicit)||Array.isArray(s.explicit)))s.implicit&&(f=f.concat(s.implicit)),s.explicit&&(d=d.concat(s.explicit));else throw new JH("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");f.forEach(function(x){if(!(x instanceof GIe))throw new JH("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(x.loadKind&&x.loadKind!=="scalar")throw new JH("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(x.multi)throw new JH("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),d.forEach(function(x){if(!(x instanceof GIe))throw new JH("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var y=Object.create(YIe.prototype);return y.implicit=(this.implicit||[]).concat(f),y.explicit=(this.explicit||[]).concat(d),y.compiledImplicit=iut(y,"implicit"),y.compiledExplicit=iut(y,"explicit"),y.compiledTypeMap=Vlr(y.compiledImplicit,y.compiledExplicit),y},"extend");sut.exports=YIe});var XIe=or((XNr,aut)=>{"use strict";var Hlr=Py();aut.exports=new Hlr("tag:yaml.org,2002:str",{kind:"scalar",construct:t(function(o){return o!==null?o:""},"construct")})});var ZIe=or((QNr,out)=>{"use strict";var Glr=Py();out.exports=new Glr("tag:yaml.org,2002:seq",{kind:"sequence",construct:t(function(o){return o!==null?o:[]},"construct")})});var QIe=or((tIr,cut)=>{"use strict";var Ylr=Py();cut.exports=new Ylr("tag:yaml.org,2002:map",{kind:"mapping",construct:t(function(o){return o!==null?o:{}},"construct")})});var e4e=or((nIr,lut)=>{"use strict";var Klr=KIe();lut.exports=new Klr({explicit:[XIe(),ZIe(),QIe()]})});var t4e=or((iIr,uut)=>{"use strict";var Xlr=Py();function Zlr(o){if(o===null)return!0;var s=o.length;return s===1&&o==="~"||s===4&&(o==="null"||o==="Null"||o==="NULL")}t(Zlr,"resolveYamlNull");function Qlr(){return null}t(Qlr,"constructYamlNull");function eur(o){return o===null}t(eur,"isNull");uut.exports=new Xlr("tag:yaml.org,2002:null",{kind:"scalar",resolve:Zlr,construct:Qlr,predicate:eur,represent:{canonical:t(function(){return"~"},"canonical"),lowercase:t(function(){return"null"},"lowercase"),uppercase:t(function(){return"NULL"},"uppercase"),camelcase:t(function(){return"Null"},"camelcase"),empty:t(function(){return""},"empty")},defaultStyle:"lowercase"})});var r4e=or((aIr,fut)=>{"use strict";var tur=Py();function rur(o){if(o===null)return!1;var s=o.length;return s===4&&(o==="true"||o==="True"||o==="TRUE")||s===5&&(o==="false"||o==="False"||o==="FALSE")}t(rur,"resolveYamlBoolean");function nur(o){return o==="true"||o==="True"||o==="TRUE"}t(nur,"constructYamlBoolean");function iur(o){return Object.prototype.toString.call(o)==="[object Boolean]"}t(iur,"isBoolean");fut.exports=new tur("tag:yaml.org,2002:bool",{kind:"scalar",resolve:rur,construct:nur,predicate:iur,represent:{lowercase:t(function(o){return o?"true":"false"},"lowercase"),uppercase:t(function(o){return o?"TRUE":"FALSE"},"uppercase"),camelcase:t(function(o){return o?"True":"False"},"camelcase")},defaultStyle:"lowercase"})});var n4e=or((cIr,_ut)=>{"use strict";var sur=FM(),aur=Py();function our(o){return 48<=o&&o<=57||65<=o&&o<=70||97<=o&&o<=102}t(our,"isHexCode");function cur(o){return 48<=o&&o<=55}t(cur,"isOctCode");function lur(o){return 48<=o&&o<=57}t(lur,"isDecCode");function uur(o){if(o===null)return!1;var s=o.length,f=0,d=!1,y;if(!s)return!1;if(y=o[f],(y==="-"||y==="+")&&(y=o[++f]),y==="0"){if(f+1===s)return!0;if(y=o[++f],y==="b"){for(f++;f<s;f++)if(y=o[f],y!=="_"){if(y!=="0"&&y!=="1")return!1;d=!0}return d&&y!=="_"}if(y==="x"){for(f++;f<s;f++)if(y=o[f],y!=="_"){if(!our(o.charCodeAt(f)))return!1;d=!0}return d&&y!=="_"}if(y==="o"){for(f++;f<s;f++)if(y=o[f],y!=="_"){if(!cur(o.charCodeAt(f)))return!1;d=!0}return d&&y!=="_"}}if(y==="_")return!1;for(;f<s;f++)if(y=o[f],y!=="_"){if(!lur(o.charCodeAt(f)))return!1;d=!0}return!(!d||y==="_")}t(uur,"resolveYamlInteger");function fur(o){var s=o,f=1,d;if(s.indexOf("_")!==-1&&(s=s.replace(/_/g,"")),d=s[0],(d==="-"||d==="+")&&(d==="-"&&(f=-1),s=s.slice(1),d=s[0]),s==="0")return 0;if(d==="0"){if(s[1]==="b")return f*parseInt(s.slice(2),2);if(s[1]==="x")return f*parseInt(s.slice(2),16);if(s[1]==="o")return f*parseInt(s.slice(2),8)}return f*parseInt(s,10)}t(fur,"constructYamlInteger");function _ur(o){return Object.prototype.toString.call(o)==="[object Number]"&&o%1===0&&!sur.isNegativeZero(o)}t(_ur,"isInteger");_ut.exports=new aur("tag:yaml.org,2002:int",{kind:"scalar",resolve:uur,construct:fur,predicate:_ur,represent:{binary:t(function(o){return o>=0?"0b"+o.toString(2):"-0b"+o.toString(2).slice(1)},"binary"),octal:t(function(o){return o>=0?"0o"+o.toString(8):"-0o"+o.toString(8).slice(1)},"octal"),decimal:t(function(o){return o.toString(10)},"decimal"),hexadecimal:t(function(o){return o>=0?"0x"+o.toString(16).toUpperCase():"-0x"+o.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var i4e=or((uIr,dut)=>{"use strict";var put=FM(),pur=Py(),dur=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function mur(o){return!(o===null||!dur.test(o)||o[o.length-1]==="_")}t(mur,"resolveYamlFloat");function hur(o){var s,f;return s=o.replace(/_/g,"").toLowerCase(),f=s[0]==="-"?-1:1,"+-".indexOf(s[0])>=0&&(s=s.slice(1)),s===".inf"?f===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:s===".nan"?NaN:f*parseFloat(s,10)}t(hur,"constructYamlFloat");var gur=/^[-+]?[0-9]+e/;function yur(o,s){var f;if(isNaN(o))switch(s){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===o)switch(s){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===o)switch(s){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(put.isNegativeZero(o))return"-0.0";return f=o.toString(10),gur.test(f)?f.replace("e",".e"):f}t(yur,"representYamlFloat");function vur(o){return Object.prototype.toString.call(o)==="[object Number]"&&(o%1!==0||put.isNegativeZero(o))}t(vur,"isFloat");dut.exports=new pur("tag:yaml.org,2002:float",{kind:"scalar",resolve:mur,construct:hur,predicate:vur,represent:yur,defaultStyle:"lowercase"})});var s4e=or((_Ir,mut)=>{"use strict";mut.exports=e4e().extend({implicit:[t4e(),r4e(),n4e(),i4e()]})});var a4e=or((pIr,hut)=>{"use strict";hut.exports=s4e()});var o4e=or((dIr,vut)=>{"use strict";var bur=Py(),gut=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),yut=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 Sur(o){return o===null?!1:gut.exec(o)!==null||yut.exec(o)!==null}t(Sur,"resolveYamlTimestamp");function Tur(o){var s,f,d,y,x,P,F,J=0,G=null,Se,de,ae;if(s=gut.exec(o),s===null&&(s=yut.exec(o)),s===null)throw new Error("Date resolve error");if(f=+s[1],d=+s[2]-1,y=+s[3],!s[4])return new Date(Date.UTC(f,d,y));if(x=+s[4],P=+s[5],F=+s[6],s[7]){for(J=s[7].slice(0,3);J.length<3;)J+="0";J=+J}return s[9]&&(Se=+s[10],de=+(s[11]||0),G=(Se*60+de)*6e4,s[9]==="-"&&(G=-G)),ae=new Date(Date.UTC(f,d,y,x,P,F,J)),G&&ae.setTime(ae.getTime()-G),ae}t(Tur,"constructYamlTimestamp");function xur(o){return o.toISOString()}t(xur,"representYamlTimestamp");vut.exports=new bur("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Sur,construct:Tur,instanceOf:Date,represent:xur})});var c4e=or((hIr,but)=>{"use strict";var Eur=Py();function Cur(o){return o==="<<"||o===null}t(Cur,"resolveYamlMerge");but.exports=new Eur("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Cur})});var u4e=or((yIr,Sut)=>{"use strict";var kur=Py(),l4e=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
81
|
+
\r`;function wur(o){if(o===null)return!1;var s,f,d=0,y=o.length,x=l4e;for(f=0;f<y;f++)if(s=x.indexOf(o.charAt(f)),!(s>64)){if(s<0)return!1;d+=6}return d%8===0}t(wur,"resolveYamlBinary");function Dur(o){var s,f,d=o.replace(/[\r\n=]/g,""),y=d.length,x=l4e,P=0,F=[];for(s=0;s<y;s++)s%4===0&&s&&(F.push(P>>16&255),F.push(P>>8&255),F.push(P&255)),P=P<<6|x.indexOf(d.charAt(s));return f=y%4*6,f===0?(F.push(P>>16&255),F.push(P>>8&255),F.push(P&255)):f===18?(F.push(P>>10&255),F.push(P>>2&255)):f===12&&F.push(P>>4&255),new Uint8Array(F)}t(Dur,"constructYamlBinary");function Pur(o){var s="",f=0,d,y,x=o.length,P=l4e;for(d=0;d<x;d++)d%3===0&&d&&(s+=P[f>>18&63],s+=P[f>>12&63],s+=P[f>>6&63],s+=P[f&63]),f=(f<<8)+o[d];return y=x%3,y===0?(s+=P[f>>18&63],s+=P[f>>12&63],s+=P[f>>6&63],s+=P[f&63]):y===2?(s+=P[f>>10&63],s+=P[f>>4&63],s+=P[f<<2&63],s+=P[64]):y===1&&(s+=P[f>>2&63],s+=P[f<<4&63],s+=P[64],s+=P[64]),s}t(Pur,"representYamlBinary");function Aur(o){return Object.prototype.toString.call(o)==="[object Uint8Array]"}t(Aur,"isBinary");Sut.exports=new kur("tag:yaml.org,2002:binary",{kind:"scalar",resolve:wur,construct:Dur,predicate:Aur,represent:Pur})});var f4e=or((bIr,Tut)=>{"use strict";var Nur=Py(),Iur=Object.prototype.hasOwnProperty,Our=Object.prototype.toString;function Fur(o){if(o===null)return!0;var s=[],f,d,y,x,P,F=o;for(f=0,d=F.length;f<d;f+=1){if(y=F[f],P=!1,Our.call(y)!=="[object Object]")return!1;for(x in y)if(Iur.call(y,x))if(!P)P=!0;else return!1;if(!P)return!1;if(s.indexOf(x)===-1)s.push(x);else return!1}return!0}t(Fur,"resolveYamlOmap");function Lur(o){return o!==null?o:[]}t(Lur,"constructYamlOmap");Tut.exports=new Nur("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Fur,construct:Lur})});var _4e=or((TIr,xut)=>{"use strict";var Rur=Py(),Mur=Object.prototype.toString;function jur(o){if(o===null)return!0;var s,f,d,y,x,P=o;for(x=new Array(P.length),s=0,f=P.length;s<f;s+=1){if(d=P[s],Mur.call(d)!=="[object Object]"||(y=Object.keys(d),y.length!==1))return!1;x[s]=[y[0],d[y[0]]]}return!0}t(jur,"resolveYamlPairs");function Bur(o){if(o===null)return[];var s,f,d,y,x,P=o;for(x=new Array(P.length),s=0,f=P.length;s<f;s+=1)d=P[s],y=Object.keys(d),x[s]=[y[0],d[y[0]]];return x}t(Bur,"constructYamlPairs");xut.exports=new Rur("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:jur,construct:Bur})});var p4e=or((EIr,Eut)=>{"use strict";var Uur=Py(),zur=Object.prototype.hasOwnProperty;function $ur(o){if(o===null)return!0;var s,f=o;for(s in f)if(zur.call(f,s)&&f[s]!==null)return!1;return!0}t($ur,"resolveYamlSet");function Jur(o){return o!==null?o:{}}t(Jur,"constructYamlSet");Eut.exports=new Uur("tag:yaml.org,2002:set",{kind:"mapping",resolve:$ur,construct:Jur})});var Lle=or((kIr,Cut)=>{"use strict";Cut.exports=a4e().extend({implicit:[o4e(),c4e()],explicit:[u4e(),f4e(),_4e(),p4e()]})});var zut=or((wIr,g4e)=>{"use strict";var LO=FM(),Iut=LM(),Wur=tut(),qur=Lle(),gI=Object.prototype.hasOwnProperty,Rle=1,Out=2,Fut=3,Mle=4,d4e=1,Vur=2,kut=3,Hur=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Gur=/[\x85\u2028\u2029]/,Yur=/[,\[\]\{\}]/,Lut=/^(?:!|!!|![a-z\-]+!)$/i,Rut=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function wut(o){return Object.prototype.toString.call(o)}t(wut,"_class");function $k(o){return o===10||o===13}t($k,"is_EOL");function RO(o){return o===9||o===32}t(RO,"is_WHITE_SPACE");function Zv(o){return o===9||o===32||o===10||o===13}t(Zv,"is_WS_OR_EOL");function RM(o){return o===44||o===91||o===93||o===123||o===125}t(RM,"is_FLOW_INDICATOR");function Kur(o){var s;return 48<=o&&o<=57?o-48:(s=o|32,97<=s&&s<=102?s-97+10:-1)}t(Kur,"fromHexCode");function Xur(o){return o===120?2:o===117?4:o===85?8:0}t(Xur,"escapedHexLen");function Zur(o){return 48<=o&&o<=57?o-48:-1}t(Zur,"fromDecimalCode");function Dut(o){return o===48?"\0":o===97?"\x07":o===98?"\b":o===116||o===9?" ":o===110?`
|
|
82
|
+
`:o===118?"\v":o===102?"\f":o===114?"\r":o===101?"\x1B":o===32?" ":o===34?'"':o===47?"/":o===92?"\\":o===78?"\x85":o===95?"\xA0":o===76?"\u2028":o===80?"\u2029":""}t(Dut,"simpleEscapeSequence");function Qur(o){return o<=65535?String.fromCharCode(o):String.fromCharCode((o-65536>>10)+55296,(o-65536&1023)+56320)}t(Qur,"charFromCodepoint");var Mut=new Array(256),jut=new Array(256);for(FO=0;FO<256;FO++)Mut[FO]=Dut(FO)?1:0,jut[FO]=Dut(FO);var FO;function efr(o,s){this.input=o,this.filename=s.filename||null,this.schema=s.schema||qur,this.onWarning=s.onWarning||null,this.legacy=s.legacy||!1,this.json=s.json||!1,this.listener=s.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=o.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}t(efr,"State");function But(o,s){var f={name:o.filename,buffer:o.input.slice(0,-1),position:o.position,line:o.line,column:o.position-o.lineStart};return f.snippet=Wur(f),new Iut(s,f)}t(But,"generateError");function Ao(o,s){throw But(o,s)}t(Ao,"throwError");function jle(o,s){o.onWarning&&o.onWarning.call(null,But(o,s))}t(jle,"throwWarning");var Put={YAML:t(function(s,f,d){var y,x,P;s.version!==null&&Ao(s,"duplication of %YAML directive"),d.length!==1&&Ao(s,"YAML directive accepts exactly one argument"),y=/^([0-9]+)\.([0-9]+)$/.exec(d[0]),y===null&&Ao(s,"ill-formed argument of the YAML directive"),x=parseInt(y[1],10),P=parseInt(y[2],10),x!==1&&Ao(s,"unacceptable YAML version of the document"),s.version=d[0],s.checkLineBreaks=P<2,P!==1&&P!==2&&jle(s,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:t(function(s,f,d){var y,x;d.length!==2&&Ao(s,"TAG directive accepts exactly two arguments"),y=d[0],x=d[1],Lut.test(y)||Ao(s,"ill-formed tag handle (first argument) of the TAG directive"),gI.call(s.tagMap,y)&&Ao(s,'there is a previously declared suffix for "'+y+'" tag handle'),Rut.test(x)||Ao(s,"ill-formed tag prefix (second argument) of the TAG directive");try{x=decodeURIComponent(x)}catch{Ao(s,"tag prefix is malformed: "+x)}s.tagMap[y]=x},"handleTagDirective")};function hI(o,s,f,d){var y,x,P,F;if(s<f){if(F=o.input.slice(s,f),d)for(y=0,x=F.length;y<x;y+=1)P=F.charCodeAt(y),P===9||32<=P&&P<=1114111||Ao(o,"expected valid JSON character");else Hur.test(F)&&Ao(o,"the stream contains non-printable characters");o.result+=F}}t(hI,"captureSegment");function Aut(o,s,f,d){var y,x,P,F;for(LO.isObject(f)||Ao(o,"cannot merge mappings; the provided source object is unacceptable"),y=Object.keys(f),P=0,F=y.length;P<F;P+=1)x=y[P],gI.call(s,x)||(s[x]=f[x],d[x]=!0)}t(Aut,"mergeMappings");function MM(o,s,f,d,y,x,P,F,J){var G,Se;if(Array.isArray(y))for(y=Array.prototype.slice.call(y),G=0,Se=y.length;G<Se;G+=1)Array.isArray(y[G])&&Ao(o,"nested arrays are not supported inside keys"),typeof y=="object"&&wut(y[G])==="[object Object]"&&(y[G]="[object Object]");if(typeof y=="object"&&wut(y)==="[object Object]"&&(y="[object Object]"),y=String(y),s===null&&(s={}),d==="tag:yaml.org,2002:merge")if(Array.isArray(x))for(G=0,Se=x.length;G<Se;G+=1)Aut(o,s,x[G],f);else Aut(o,s,x,f);else!o.json&&!gI.call(f,y)&&gI.call(s,y)&&(o.line=P||o.line,o.lineStart=F||o.lineStart,o.position=J||o.position,Ao(o,"duplicated mapping key")),y==="__proto__"?Object.defineProperty(s,y,{configurable:!0,enumerable:!0,writable:!0,value:x}):s[y]=x,delete f[y];return s}t(MM,"storeMappingPair");function m4e(o){var s;s=o.input.charCodeAt(o.position),s===10?o.position++:s===13?(o.position++,o.input.charCodeAt(o.position)===10&&o.position++):Ao(o,"a line break is expected"),o.line+=1,o.lineStart=o.position,o.firstTabInLine=-1}t(m4e,"readLineBreak");function Hm(o,s,f){for(var d=0,y=o.input.charCodeAt(o.position);y!==0;){for(;RO(y);)y===9&&o.firstTabInLine===-1&&(o.firstTabInLine=o.position),y=o.input.charCodeAt(++o.position);if(s&&y===35)do y=o.input.charCodeAt(++o.position);while(y!==10&&y!==13&&y!==0);if($k(y))for(m4e(o),y=o.input.charCodeAt(o.position),d++,o.lineIndent=0;y===32;)o.lineIndent++,y=o.input.charCodeAt(++o.position);else break}return f!==-1&&d!==0&&o.lineIndent<f&&jle(o,"deficient indentation"),d}t(Hm,"skipSeparationSpace");function Ble(o){var s=o.position,f;return f=o.input.charCodeAt(s),!!((f===45||f===46)&&f===o.input.charCodeAt(s+1)&&f===o.input.charCodeAt(s+2)&&(s+=3,f=o.input.charCodeAt(s),f===0||Zv(f)))}t(Ble,"testDocumentSeparator");function h4e(o,s){s===1?o.result+=" ":s>1&&(o.result+=LO.repeat(`
|
|
83
|
+
`,s-1))}t(h4e,"writeFoldedLines");function tfr(o,s,f){var d,y,x,P,F,J,G,Se,de=o.kind,ae=o.result,Ke;if(Ke=o.input.charCodeAt(o.position),Zv(Ke)||RM(Ke)||Ke===35||Ke===38||Ke===42||Ke===33||Ke===124||Ke===62||Ke===39||Ke===34||Ke===37||Ke===64||Ke===96||(Ke===63||Ke===45)&&(y=o.input.charCodeAt(o.position+1),Zv(y)||f&&RM(y)))return!1;for(o.kind="scalar",o.result="",x=P=o.position,F=!1;Ke!==0;){if(Ke===58){if(y=o.input.charCodeAt(o.position+1),Zv(y)||f&&RM(y))break}else if(Ke===35){if(d=o.input.charCodeAt(o.position-1),Zv(d))break}else{if(o.position===o.lineStart&&Ble(o)||f&&RM(Ke))break;if($k(Ke))if(J=o.line,G=o.lineStart,Se=o.lineIndent,Hm(o,!1,-1),o.lineIndent>=s){F=!0,Ke=o.input.charCodeAt(o.position);continue}else{o.position=P,o.line=J,o.lineStart=G,o.lineIndent=Se;break}}F&&(hI(o,x,P,!1),h4e(o,o.line-J),x=P=o.position,F=!1),RO(Ke)||(P=o.position+1),Ke=o.input.charCodeAt(++o.position)}return hI(o,x,P,!1),o.result?!0:(o.kind=de,o.result=ae,!1)}t(tfr,"readPlainScalar");function rfr(o,s){var f,d,y;if(f=o.input.charCodeAt(o.position),f!==39)return!1;for(o.kind="scalar",o.result="",o.position++,d=y=o.position;(f=o.input.charCodeAt(o.position))!==0;)if(f===39)if(hI(o,d,o.position,!0),f=o.input.charCodeAt(++o.position),f===39)d=o.position,o.position++,y=o.position;else return!0;else $k(f)?(hI(o,d,y,!0),h4e(o,Hm(o,!1,s)),d=y=o.position):o.position===o.lineStart&&Ble(o)?Ao(o,"unexpected end of the document within a single quoted scalar"):(o.position++,y=o.position);Ao(o,"unexpected end of the stream within a single quoted scalar")}t(rfr,"readSingleQuotedScalar");function nfr(o,s){var f,d,y,x,P,F;if(F=o.input.charCodeAt(o.position),F!==34)return!1;for(o.kind="scalar",o.result="",o.position++,f=d=o.position;(F=o.input.charCodeAt(o.position))!==0;){if(F===34)return hI(o,f,o.position,!0),o.position++,!0;if(F===92){if(hI(o,f,o.position,!0),F=o.input.charCodeAt(++o.position),$k(F))Hm(o,!1,s);else if(F<256&&Mut[F])o.result+=jut[F],o.position++;else if((P=Xur(F))>0){for(y=P,x=0;y>0;y--)F=o.input.charCodeAt(++o.position),(P=Kur(F))>=0?x=(x<<4)+P:Ao(o,"expected hexadecimal character");o.result+=Qur(x),o.position++}else Ao(o,"unknown escape sequence");f=d=o.position}else $k(F)?(hI(o,f,d,!0),h4e(o,Hm(o,!1,s)),f=d=o.position):o.position===o.lineStart&&Ble(o)?Ao(o,"unexpected end of the document within a double quoted scalar"):(o.position++,d=o.position)}Ao(o,"unexpected end of the stream within a double quoted scalar")}t(nfr,"readDoubleQuotedScalar");function ifr(o,s){var f=!0,d,y,x,P=o.tag,F,J=o.anchor,G,Se,de,ae,Ke,$e=Object.create(null),Fe,Gt,jt,Pr;if(Pr=o.input.charCodeAt(o.position),Pr===91)Se=93,Ke=!1,F=[];else if(Pr===123)Se=125,Ke=!0,F={};else return!1;for(o.anchor!==null&&(o.anchorMap[o.anchor]=F),Pr=o.input.charCodeAt(++o.position);Pr!==0;){if(Hm(o,!0,s),Pr=o.input.charCodeAt(o.position),Pr===Se)return o.position++,o.tag=P,o.anchor=J,o.kind=Ke?"mapping":"sequence",o.result=F,!0;f?Pr===44&&Ao(o,"expected the node content, but found ','"):Ao(o,"missed comma between flow collection entries"),Gt=Fe=jt=null,de=ae=!1,Pr===63&&(G=o.input.charCodeAt(o.position+1),Zv(G)&&(de=ae=!0,o.position++,Hm(o,!0,s))),d=o.line,y=o.lineStart,x=o.position,jM(o,s,Rle,!1,!0),Gt=o.tag,Fe=o.result,Hm(o,!0,s),Pr=o.input.charCodeAt(o.position),(ae||o.line===d)&&Pr===58&&(de=!0,Pr=o.input.charCodeAt(++o.position),Hm(o,!0,s),jM(o,s,Rle,!1,!0),jt=o.result),Ke?MM(o,F,$e,Gt,Fe,jt,d,y,x):de?F.push(MM(o,null,$e,Gt,Fe,jt,d,y,x)):F.push(Fe),Hm(o,!0,s),Pr=o.input.charCodeAt(o.position),Pr===44?(f=!0,Pr=o.input.charCodeAt(++o.position)):f=!1}Ao(o,"unexpected end of the stream within a flow collection")}t(ifr,"readFlowCollection");function sfr(o,s){var f,d,y=d4e,x=!1,P=!1,F=s,J=0,G=!1,Se,de;if(de=o.input.charCodeAt(o.position),de===124)d=!1;else if(de===62)d=!0;else return!1;for(o.kind="scalar",o.result="";de!==0;)if(de=o.input.charCodeAt(++o.position),de===43||de===45)d4e===y?y=de===43?kut:Vur:Ao(o,"repeat of a chomping mode identifier");else if((Se=Zur(de))>=0)Se===0?Ao(o,"bad explicit indentation width of a block scalar; it cannot be less than one"):P?Ao(o,"repeat of an indentation width identifier"):(F=s+Se-1,P=!0);else break;if(RO(de)){do de=o.input.charCodeAt(++o.position);while(RO(de));if(de===35)do de=o.input.charCodeAt(++o.position);while(!$k(de)&&de!==0)}for(;de!==0;){for(m4e(o),o.lineIndent=0,de=o.input.charCodeAt(o.position);(!P||o.lineIndent<F)&&de===32;)o.lineIndent++,de=o.input.charCodeAt(++o.position);if(!P&&o.lineIndent>F&&(F=o.lineIndent),$k(de)){J++;continue}if(o.lineIndent<F){y===kut?o.result+=LO.repeat(`
|
|
84
|
+
`,x?1+J:J):y===d4e&&x&&(o.result+=`
|
|
85
|
+
`);break}for(d?RO(de)?(G=!0,o.result+=LO.repeat(`
|
|
86
|
+
`,x?1+J:J)):G?(G=!1,o.result+=LO.repeat(`
|
|
87
|
+
`,J+1)):J===0?x&&(o.result+=" "):o.result+=LO.repeat(`
|
|
88
|
+
`,J):o.result+=LO.repeat(`
|
|
89
|
+
`,x?1+J:J),x=!0,P=!0,J=0,f=o.position;!$k(de)&&de!==0;)de=o.input.charCodeAt(++o.position);hI(o,f,o.position,!1)}return!0}t(sfr,"readBlockScalar");function Nut(o,s){var f,d=o.tag,y=o.anchor,x=[],P,F=!1,J;if(o.firstTabInLine!==-1)return!1;for(o.anchor!==null&&(o.anchorMap[o.anchor]=x),J=o.input.charCodeAt(o.position);J!==0&&(o.firstTabInLine!==-1&&(o.position=o.firstTabInLine,Ao(o,"tab characters must not be used in indentation")),!(J!==45||(P=o.input.charCodeAt(o.position+1),!Zv(P))));){if(F=!0,o.position++,Hm(o,!0,-1)&&o.lineIndent<=s){x.push(null),J=o.input.charCodeAt(o.position);continue}if(f=o.line,jM(o,s,Fut,!1,!0),x.push(o.result),Hm(o,!0,-1),J=o.input.charCodeAt(o.position),(o.line===f||o.lineIndent>s)&&J!==0)Ao(o,"bad indentation of a sequence entry");else if(o.lineIndent<s)break}return F?(o.tag=d,o.anchor=y,o.kind="sequence",o.result=x,!0):!1}t(Nut,"readBlockSequence");function afr(o,s,f){var d,y,x,P,F,J,G=o.tag,Se=o.anchor,de={},ae=Object.create(null),Ke=null,$e=null,Fe=null,Gt=!1,jt=!1,Pr;if(o.firstTabInLine!==-1)return!1;for(o.anchor!==null&&(o.anchorMap[o.anchor]=de),Pr=o.input.charCodeAt(o.position);Pr!==0;){if(!Gt&&o.firstTabInLine!==-1&&(o.position=o.firstTabInLine,Ao(o,"tab characters must not be used in indentation")),d=o.input.charCodeAt(o.position+1),x=o.line,(Pr===63||Pr===58)&&Zv(d))Pr===63?(Gt&&(MM(o,de,ae,Ke,$e,null,P,F,J),Ke=$e=Fe=null),jt=!0,Gt=!0,y=!0):Gt?(Gt=!1,y=!0):Ao(o,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),o.position+=1,Pr=d;else{if(P=o.line,F=o.lineStart,J=o.position,!jM(o,f,Out,!1,!0))break;if(o.line===x){for(Pr=o.input.charCodeAt(o.position);RO(Pr);)Pr=o.input.charCodeAt(++o.position);if(Pr===58)Pr=o.input.charCodeAt(++o.position),Zv(Pr)||Ao(o,"a whitespace character is expected after the key-value separator within a block mapping"),Gt&&(MM(o,de,ae,Ke,$e,null,P,F,J),Ke=$e=Fe=null),jt=!0,Gt=!1,y=!1,Ke=o.tag,$e=o.result;else if(jt)Ao(o,"can not read an implicit mapping pair; a colon is missed");else return o.tag=G,o.anchor=Se,!0}else if(jt)Ao(o,"can not read a block mapping entry; a multiline key may not be an implicit key");else return o.tag=G,o.anchor=Se,!0}if((o.line===x||o.lineIndent>s)&&(Gt&&(P=o.line,F=o.lineStart,J=o.position),jM(o,s,Mle,!0,y)&&(Gt?$e=o.result:Fe=o.result),Gt||(MM(o,de,ae,Ke,$e,Fe,P,F,J),Ke=$e=Fe=null),Hm(o,!0,-1),Pr=o.input.charCodeAt(o.position)),(o.line===x||o.lineIndent>s)&&Pr!==0)Ao(o,"bad indentation of a mapping entry");else if(o.lineIndent<s)break}return Gt&&MM(o,de,ae,Ke,$e,null,P,F,J),jt&&(o.tag=G,o.anchor=Se,o.kind="mapping",o.result=de),jt}t(afr,"readBlockMapping");function ofr(o){var s,f=!1,d=!1,y,x,P;if(P=o.input.charCodeAt(o.position),P!==33)return!1;if(o.tag!==null&&Ao(o,"duplication of a tag property"),P=o.input.charCodeAt(++o.position),P===60?(f=!0,P=o.input.charCodeAt(++o.position)):P===33?(d=!0,y="!!",P=o.input.charCodeAt(++o.position)):y="!",s=o.position,f){do P=o.input.charCodeAt(++o.position);while(P!==0&&P!==62);o.position<o.length?(x=o.input.slice(s,o.position),P=o.input.charCodeAt(++o.position)):Ao(o,"unexpected end of the stream within a verbatim tag")}else{for(;P!==0&&!Zv(P);)P===33&&(d?Ao(o,"tag suffix cannot contain exclamation marks"):(y=o.input.slice(s-1,o.position+1),Lut.test(y)||Ao(o,"named tag handle cannot contain such characters"),d=!0,s=o.position+1)),P=o.input.charCodeAt(++o.position);x=o.input.slice(s,o.position),Yur.test(x)&&Ao(o,"tag suffix cannot contain flow indicator characters")}x&&!Rut.test(x)&&Ao(o,"tag name cannot contain such characters: "+x);try{x=decodeURIComponent(x)}catch{Ao(o,"tag name is malformed: "+x)}return f?o.tag=x:gI.call(o.tagMap,y)?o.tag=o.tagMap[y]+x:y==="!"?o.tag="!"+x:y==="!!"?o.tag="tag:yaml.org,2002:"+x:Ao(o,'undeclared tag handle "'+y+'"'),!0}t(ofr,"readTagProperty");function cfr(o){var s,f;if(f=o.input.charCodeAt(o.position),f!==38)return!1;for(o.anchor!==null&&Ao(o,"duplication of an anchor property"),f=o.input.charCodeAt(++o.position),s=o.position;f!==0&&!Zv(f)&&!RM(f);)f=o.input.charCodeAt(++o.position);return o.position===s&&Ao(o,"name of an anchor node must contain at least one character"),o.anchor=o.input.slice(s,o.position),!0}t(cfr,"readAnchorProperty");function lfr(o){var s,f,d;if(d=o.input.charCodeAt(o.position),d!==42)return!1;for(d=o.input.charCodeAt(++o.position),s=o.position;d!==0&&!Zv(d)&&!RM(d);)d=o.input.charCodeAt(++o.position);return o.position===s&&Ao(o,"name of an alias node must contain at least one character"),f=o.input.slice(s,o.position),gI.call(o.anchorMap,f)||Ao(o,'unidentified alias "'+f+'"'),o.result=o.anchorMap[f],Hm(o,!0,-1),!0}t(lfr,"readAlias");function jM(o,s,f,d,y){var x,P,F,J=1,G=!1,Se=!1,de,ae,Ke,$e,Fe,Gt;if(o.listener!==null&&o.listener("open",o),o.tag=null,o.anchor=null,o.kind=null,o.result=null,x=P=F=Mle===f||Fut===f,d&&Hm(o,!0,-1)&&(G=!0,o.lineIndent>s?J=1:o.lineIndent===s?J=0:o.lineIndent<s&&(J=-1)),J===1)for(;ofr(o)||cfr(o);)Hm(o,!0,-1)?(G=!0,F=x,o.lineIndent>s?J=1:o.lineIndent===s?J=0:o.lineIndent<s&&(J=-1)):F=!1;if(F&&(F=G||y),(J===1||Mle===f)&&(Rle===f||Out===f?Fe=s:Fe=s+1,Gt=o.position-o.lineStart,J===1?F&&(Nut(o,Gt)||afr(o,Gt,Fe))||ifr(o,Fe)?Se=!0:(P&&sfr(o,Fe)||rfr(o,Fe)||nfr(o,Fe)?Se=!0:lfr(o)?(Se=!0,(o.tag!==null||o.anchor!==null)&&Ao(o,"alias node should not have any properties")):tfr(o,Fe,Rle===f)&&(Se=!0,o.tag===null&&(o.tag="?")),o.anchor!==null&&(o.anchorMap[o.anchor]=o.result)):J===0&&(Se=F&&Nut(o,Gt))),o.tag===null)o.anchor!==null&&(o.anchorMap[o.anchor]=o.result);else if(o.tag==="?"){for(o.result!==null&&o.kind!=="scalar"&&Ao(o,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+o.kind+'"'),de=0,ae=o.implicitTypes.length;de<ae;de+=1)if($e=o.implicitTypes[de],$e.resolve(o.result)){o.result=$e.construct(o.result),o.tag=$e.tag,o.anchor!==null&&(o.anchorMap[o.anchor]=o.result);break}}else if(o.tag!=="!"){if(gI.call(o.typeMap[o.kind||"fallback"],o.tag))$e=o.typeMap[o.kind||"fallback"][o.tag];else for($e=null,Ke=o.typeMap.multi[o.kind||"fallback"],de=0,ae=Ke.length;de<ae;de+=1)if(o.tag.slice(0,Ke[de].tag.length)===Ke[de].tag){$e=Ke[de];break}$e||Ao(o,"unknown tag !<"+o.tag+">"),o.result!==null&&$e.kind!==o.kind&&Ao(o,"unacceptable node kind for !<"+o.tag+'> tag; it should be "'+$e.kind+'", not "'+o.kind+'"'),$e.resolve(o.result,o.tag)?(o.result=$e.construct(o.result,o.tag),o.anchor!==null&&(o.anchorMap[o.anchor]=o.result)):Ao(o,"cannot resolve a node with !<"+o.tag+"> explicit tag")}return o.listener!==null&&o.listener("close",o),o.tag!==null||o.anchor!==null||Se}t(jM,"composeNode");function ufr(o){var s=o.position,f,d,y,x=!1,P;for(o.version=null,o.checkLineBreaks=o.legacy,o.tagMap=Object.create(null),o.anchorMap=Object.create(null);(P=o.input.charCodeAt(o.position))!==0&&(Hm(o,!0,-1),P=o.input.charCodeAt(o.position),!(o.lineIndent>0||P!==37));){for(x=!0,P=o.input.charCodeAt(++o.position),f=o.position;P!==0&&!Zv(P);)P=o.input.charCodeAt(++o.position);for(d=o.input.slice(f,o.position),y=[],d.length<1&&Ao(o,"directive name must not be less than one character in length");P!==0;){for(;RO(P);)P=o.input.charCodeAt(++o.position);if(P===35){do P=o.input.charCodeAt(++o.position);while(P!==0&&!$k(P));break}if($k(P))break;for(f=o.position;P!==0&&!Zv(P);)P=o.input.charCodeAt(++o.position);y.push(o.input.slice(f,o.position))}P!==0&&m4e(o),gI.call(Put,d)?Put[d](o,d,y):jle(o,'unknown document directive "'+d+'"')}if(Hm(o,!0,-1),o.lineIndent===0&&o.input.charCodeAt(o.position)===45&&o.input.charCodeAt(o.position+1)===45&&o.input.charCodeAt(o.position+2)===45?(o.position+=3,Hm(o,!0,-1)):x&&Ao(o,"directives end mark is expected"),jM(o,o.lineIndent-1,Mle,!1,!0),Hm(o,!0,-1),o.checkLineBreaks&&Gur.test(o.input.slice(s,o.position))&&jle(o,"non-ASCII line breaks are interpreted as content"),o.documents.push(o.result),o.position===o.lineStart&&Ble(o)){o.input.charCodeAt(o.position)===46&&(o.position+=3,Hm(o,!0,-1));return}if(o.position<o.length-1)Ao(o,"end of the stream or a document separator is expected");else return}t(ufr,"readDocument");function Uut(o,s){o=String(o),s=s||{},o.length!==0&&(o.charCodeAt(o.length-1)!==10&&o.charCodeAt(o.length-1)!==13&&(o+=`
|
|
90
|
+
`),o.charCodeAt(0)===65279&&(o=o.slice(1)));var f=new efr(o,s),d=o.indexOf("\0");for(d!==-1&&(f.position=d,Ao(f,"null byte is not allowed in input")),f.input+="\0";f.input.charCodeAt(f.position)===32;)f.lineIndent+=1,f.position+=1;for(;f.position<f.length-1;)ufr(f);return f.documents}t(Uut,"loadDocuments");function ffr(o,s,f){s!==null&&typeof s=="object"&&typeof f>"u"&&(f=s,s=null);var d=Uut(o,f);if(typeof s!="function")return d;for(var y=0,x=d.length;y<x;y+=1)s(d[y])}t(ffr,"loadAll");function _fr(o,s){var f=Uut(o,s);if(f.length!==0){if(f.length===1)return f[0];throw new Iut("expected a single document in the stream, but found more")}}t(_fr,"load");g4e.exports.loadAll=ffr;g4e.exports.load=_fr});var cft=or((PIr,oft)=>{"use strict";var $le=FM(),GH=LM(),pfr=Lle(),Kut=Object.prototype.toString,Xut=Object.prototype.hasOwnProperty,T4e=65279,dfr=9,qH=10,mfr=13,hfr=32,gfr=33,yfr=34,y4e=35,vfr=37,bfr=38,Sfr=39,Tfr=42,Zut=44,xfr=45,Ule=58,Efr=61,Cfr=62,kfr=63,wfr=64,Qut=91,eft=93,Dfr=96,tft=123,Pfr=124,rft=125,Ay={};Ay[0]="\\0";Ay[7]="\\a";Ay[8]="\\b";Ay[9]="\\t";Ay[10]="\\n";Ay[11]="\\v";Ay[12]="\\f";Ay[13]="\\r";Ay[27]="\\e";Ay[34]='\\"';Ay[92]="\\\\";Ay[133]="\\N";Ay[160]="\\_";Ay[8232]="\\L";Ay[8233]="\\P";var Afr=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Nfr=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Ifr(o,s){var f,d,y,x,P,F,J;if(s===null)return{};for(f={},d=Object.keys(s),y=0,x=d.length;y<x;y+=1)P=d[y],F=String(s[P]),P.slice(0,2)==="!!"&&(P="tag:yaml.org,2002:"+P.slice(2)),J=o.compiledTypeMap.fallback[P],J&&Xut.call(J.styleAliases,F)&&(F=J.styleAliases[F]),f[P]=F;return f}t(Ifr,"compileStyleMap");function Ofr(o){var s,f,d;if(s=o.toString(16).toUpperCase(),o<=255)f="x",d=2;else if(o<=65535)f="u",d=4;else if(o<=4294967295)f="U",d=8;else throw new GH("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+f+$le.repeat("0",d-s.length)+s}t(Ofr,"encodeHex");var Ffr=1,VH=2;function Lfr(o){this.schema=o.schema||pfr,this.indent=Math.max(1,o.indent||2),this.noArrayIndent=o.noArrayIndent||!1,this.skipInvalid=o.skipInvalid||!1,this.flowLevel=$le.isNothing(o.flowLevel)?-1:o.flowLevel,this.styleMap=Ifr(this.schema,o.styles||null),this.sortKeys=o.sortKeys||!1,this.lineWidth=o.lineWidth||80,this.noRefs=o.noRefs||!1,this.noCompatMode=o.noCompatMode||!1,this.condenseFlow=o.condenseFlow||!1,this.quotingType=o.quotingType==='"'?VH:Ffr,this.forceQuotes=o.forceQuotes||!1,this.replacer=typeof o.replacer=="function"?o.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}t(Lfr,"State");function $ut(o,s){for(var f=$le.repeat(" ",s),d=0,y=-1,x="",P,F=o.length;d<F;)y=o.indexOf(`
|
|
91
|
+
`,d),y===-1?(P=o.slice(d),d=F):(P=o.slice(d,y+1),d=y+1),P.length&&P!==`
|
|
92
|
+
`&&(x+=f),x+=P;return x}t($ut,"indentString");function v4e(o,s){return`
|
|
93
|
+
`+$le.repeat(" ",o.indent*s)}t(v4e,"generateNextLine");function Rfr(o,s){var f,d,y;for(f=0,d=o.implicitTypes.length;f<d;f+=1)if(y=o.implicitTypes[f],y.resolve(s))return!0;return!1}t(Rfr,"testImplicitResolving");function zle(o){return o===hfr||o===dfr}t(zle,"isWhitespace");function HH(o){return 32<=o&&o<=126||161<=o&&o<=55295&&o!==8232&&o!==8233||57344<=o&&o<=65533&&o!==T4e||65536<=o&&o<=1114111}t(HH,"isPrintable");function Jut(o){return HH(o)&&o!==T4e&&o!==mfr&&o!==qH}t(Jut,"isNsCharOrWhitespace");function Wut(o,s,f){var d=Jut(o),y=d&&!zle(o);return(f?d:d&&o!==Zut&&o!==Qut&&o!==eft&&o!==tft&&o!==rft)&&o!==y4e&&!(s===Ule&&!y)||Jut(s)&&!zle(s)&&o===y4e||s===Ule&&y}t(Wut,"isPlainSafe");function Mfr(o){return HH(o)&&o!==T4e&&!zle(o)&&o!==xfr&&o!==kfr&&o!==Ule&&o!==Zut&&o!==Qut&&o!==eft&&o!==tft&&o!==rft&&o!==y4e&&o!==bfr&&o!==Tfr&&o!==gfr&&o!==Pfr&&o!==Efr&&o!==Cfr&&o!==Sfr&&o!==yfr&&o!==vfr&&o!==wfr&&o!==Dfr}t(Mfr,"isPlainSafeFirst");function jfr(o){return!zle(o)&&o!==Ule}t(jfr,"isPlainSafeLast");function WH(o,s){var f=o.charCodeAt(s),d;return f>=55296&&f<=56319&&s+1<o.length&&(d=o.charCodeAt(s+1),d>=56320&&d<=57343)?(f-55296)*1024+d-56320+65536:f}t(WH,"codePointAt");function nft(o){var s=/^\n* /;return s.test(o)}t(nft,"needIndentIndicator");var ift=1,b4e=2,sft=3,aft=4,BM=5;function Bfr(o,s,f,d,y,x,P,F){var J,G=0,Se=null,de=!1,ae=!1,Ke=d!==-1,$e=-1,Fe=Mfr(WH(o,0))&&jfr(WH(o,o.length-1));if(s||P)for(J=0;J<o.length;G>=65536?J+=2:J++){if(G=WH(o,J),!HH(G))return BM;Fe=Fe&&Wut(G,Se,F),Se=G}else{for(J=0;J<o.length;G>=65536?J+=2:J++){if(G=WH(o,J),G===qH)de=!0,Ke&&(ae=ae||J-$e-1>d&&o[$e+1]!==" ",$e=J);else if(!HH(G))return BM;Fe=Fe&&Wut(G,Se,F),Se=G}ae=ae||Ke&&J-$e-1>d&&o[$e+1]!==" "}return!de&&!ae?Fe&&!P&&!y(o)?ift:x===VH?BM:b4e:f>9&&nft(o)?BM:P?x===VH?BM:b4e:ae?aft:sft}t(Bfr,"chooseScalarStyle");function Ufr(o,s,f,d,y){o.dump=function(){if(s.length===0)return o.quotingType===VH?'""':"''";if(!o.noCompatMode&&(Afr.indexOf(s)!==-1||Nfr.test(s)))return o.quotingType===VH?'"'+s+'"':"'"+s+"'";var x=o.indent*Math.max(1,f),P=o.lineWidth===-1?-1:Math.max(Math.min(o.lineWidth,40),o.lineWidth-x),F=d||o.flowLevel>-1&&f>=o.flowLevel;function J(G){return Rfr(o,G)}switch(t(J,"testAmbiguity"),Bfr(s,F,o.indent,P,J,o.quotingType,o.forceQuotes&&!d,y)){case ift:return s;case b4e:return"'"+s.replace(/'/g,"''")+"'";case sft:return"|"+qut(s,o.indent)+Vut($ut(s,x));case aft:return">"+qut(s,o.indent)+Vut($ut(zfr(s,P),x));case BM:return'"'+$fr(s,P)+'"';default:throw new GH("impossible error: invalid scalar style")}}()}t(Ufr,"writeScalar");function qut(o,s){var f=nft(o)?String(s):"",d=o[o.length-1]===`
|
|
94
|
+
`,y=d&&(o[o.length-2]===`
|
|
95
|
+
`||o===`
|
|
96
|
+
`),x=y?"+":d?"":"-";return f+x+`
|
|
97
|
+
`}t(qut,"blockHeader");function Vut(o){return o[o.length-1]===`
|
|
98
|
+
`?o.slice(0,-1):o}t(Vut,"dropEndingNewline");function zfr(o,s){for(var f=/(\n+)([^\n]*)/g,d=function(){var G=o.indexOf(`
|
|
99
|
+
`);return G=G!==-1?G:o.length,f.lastIndex=G,Hut(o.slice(0,G),s)}(),y=o[0]===`
|
|
100
|
+
`||o[0]===" ",x,P;P=f.exec(o);){var F=P[1],J=P[2];x=J[0]===" ",d+=F+(!y&&!x&&J!==""?`
|
|
101
|
+
`:"")+Hut(J,s),y=x}return d}t(zfr,"foldString");function Hut(o,s){if(o===""||o[0]===" ")return o;for(var f=/ [^ ]/g,d,y=0,x,P=0,F=0,J="";d=f.exec(o);)F=d.index,F-y>s&&(x=P>y?P:F,J+=`
|
|
102
|
+
`+o.slice(y,x),y=x+1),P=F;return J+=`
|
|
103
|
+
`,o.length-y>s&&P>y?J+=o.slice(y,P)+`
|
|
104
|
+
`+o.slice(P+1):J+=o.slice(y),J.slice(1)}t(Hut,"foldLine");function $fr(o){for(var s="",f=0,d,y=0;y<o.length;f>=65536?y+=2:y++)f=WH(o,y),d=Ay[f],!d&&HH(f)?(s+=o[y],f>=65536&&(s+=o[y+1])):s+=d||Ofr(f);return s}t($fr,"escapeString");function Jfr(o,s,f){var d="",y=o.tag,x,P,F;for(x=0,P=f.length;x<P;x+=1)F=f[x],o.replacer&&(F=o.replacer.call(f,String(x),F)),(eA(o,s,F,!1,!1)||typeof F>"u"&&eA(o,s,null,!1,!1))&&(d!==""&&(d+=","+(o.condenseFlow?"":" ")),d+=o.dump);o.tag=y,o.dump="["+d+"]"}t(Jfr,"writeFlowSequence");function Gut(o,s,f,d){var y="",x=o.tag,P,F,J;for(P=0,F=f.length;P<F;P+=1)J=f[P],o.replacer&&(J=o.replacer.call(f,String(P),J)),(eA(o,s+1,J,!0,!0,!1,!0)||typeof J>"u"&&eA(o,s+1,null,!0,!0,!1,!0))&&((!d||y!=="")&&(y+=v4e(o,s)),o.dump&&qH===o.dump.charCodeAt(0)?y+="-":y+="- ",y+=o.dump);o.tag=x,o.dump=y||"[]"}t(Gut,"writeBlockSequence");function Wfr(o,s,f){var d="",y=o.tag,x=Object.keys(f),P,F,J,G,Se;for(P=0,F=x.length;P<F;P+=1)Se="",d!==""&&(Se+=", "),o.condenseFlow&&(Se+='"'),J=x[P],G=f[J],o.replacer&&(G=o.replacer.call(f,J,G)),eA(o,s,J,!1,!1)&&(o.dump.length>1024&&(Se+="? "),Se+=o.dump+(o.condenseFlow?'"':"")+":"+(o.condenseFlow?"":" "),eA(o,s,G,!1,!1)&&(Se+=o.dump,d+=Se));o.tag=y,o.dump="{"+d+"}"}t(Wfr,"writeFlowMapping");function qfr(o,s,f,d){var y="",x=o.tag,P=Object.keys(f),F,J,G,Se,de,ae;if(o.sortKeys===!0)P.sort();else if(typeof o.sortKeys=="function")P.sort(o.sortKeys);else if(o.sortKeys)throw new GH("sortKeys must be a boolean or a function");for(F=0,J=P.length;F<J;F+=1)ae="",(!d||y!=="")&&(ae+=v4e(o,s)),G=P[F],Se=f[G],o.replacer&&(Se=o.replacer.call(f,G,Se)),eA(o,s+1,G,!0,!0,!0)&&(de=o.tag!==null&&o.tag!=="?"||o.dump&&o.dump.length>1024,de&&(o.dump&&qH===o.dump.charCodeAt(0)?ae+="?":ae+="? "),ae+=o.dump,de&&(ae+=v4e(o,s)),eA(o,s+1,Se,!0,de)&&(o.dump&&qH===o.dump.charCodeAt(0)?ae+=":":ae+=": ",ae+=o.dump,y+=ae));o.tag=x,o.dump=y||"{}"}t(qfr,"writeBlockMapping");function Yut(o,s,f){var d,y,x,P,F,J;for(y=f?o.explicitTypes:o.implicitTypes,x=0,P=y.length;x<P;x+=1)if(F=y[x],(F.instanceOf||F.predicate)&&(!F.instanceOf||typeof s=="object"&&s instanceof F.instanceOf)&&(!F.predicate||F.predicate(s))){if(f?F.multi&&F.representName?o.tag=F.representName(s):o.tag=F.tag:o.tag="?",F.represent){if(J=o.styleMap[F.tag]||F.defaultStyle,Kut.call(F.represent)==="[object Function]")d=F.represent(s,J);else if(Xut.call(F.represent,J))d=F.represent[J](s,J);else throw new GH("!<"+F.tag+'> tag resolver accepts not "'+J+'" style');o.dump=d}return!0}return!1}t(Yut,"detectType");function eA(o,s,f,d,y,x,P){o.tag=null,o.dump=f,Yut(o,f,!1)||Yut(o,f,!0);var F=Kut.call(o.dump),J=d,G;d&&(d=o.flowLevel<0||o.flowLevel>s);var Se=F==="[object Object]"||F==="[object Array]",de,ae;if(Se&&(de=o.duplicates.indexOf(f),ae=de!==-1),(o.tag!==null&&o.tag!=="?"||ae||o.indent!==2&&s>0)&&(y=!1),ae&&o.usedDuplicates[de])o.dump="*ref_"+de;else{if(Se&&ae&&!o.usedDuplicates[de]&&(o.usedDuplicates[de]=!0),F==="[object Object]")d&&Object.keys(o.dump).length!==0?(qfr(o,s,o.dump,y),ae&&(o.dump="&ref_"+de+o.dump)):(Wfr(o,s,o.dump),ae&&(o.dump="&ref_"+de+" "+o.dump));else if(F==="[object Array]")d&&o.dump.length!==0?(o.noArrayIndent&&!P&&s>0?Gut(o,s-1,o.dump,y):Gut(o,s,o.dump,y),ae&&(o.dump="&ref_"+de+o.dump)):(Jfr(o,s,o.dump),ae&&(o.dump="&ref_"+de+" "+o.dump));else if(F==="[object String]")o.tag!=="?"&&Ufr(o,o.dump,s,x,J);else{if(F==="[object Undefined]")return!1;if(o.skipInvalid)return!1;throw new GH("unacceptable kind of an object to dump "+F)}o.tag!==null&&o.tag!=="?"&&(G=encodeURI(o.tag[0]==="!"?o.tag.slice(1):o.tag).replace(/!/g,"%21"),o.tag[0]==="!"?G="!"+G:G.slice(0,18)==="tag:yaml.org,2002:"?G="!!"+G.slice(18):G="!<"+G+">",o.dump=G+" "+o.dump)}return!0}t(eA,"writeNode");function Vfr(o,s){var f=[],d=[],y,x;for(S4e(o,f,d),y=0,x=d.length;y<x;y+=1)s.duplicates.push(f[d[y]]);s.usedDuplicates=new Array(x)}t(Vfr,"getDuplicateReferences");function S4e(o,s,f){var d,y,x;if(o!==null&&typeof o=="object")if(y=s.indexOf(o),y!==-1)f.indexOf(y)===-1&&f.push(y);else if(s.push(o),Array.isArray(o))for(y=0,x=o.length;y<x;y+=1)S4e(o[y],s,f);else for(d=Object.keys(o),y=0,x=d.length;y<x;y+=1)S4e(o[d[y]],s,f)}t(S4e,"inspectNode");function Hfr(o,s){s=s||{};var f=new Lfr(s);f.noRefs||Vfr(o,f);var d=o;return f.replacer&&(d=f.replacer.call({"":d},"",d)),eA(f,0,d,!0,!0)?f.dump+`
|
|
105
|
+
`:""}t(Hfr,"dump");oft.exports.dump=Hfr});var E4e=or((NIr,R1)=>{"use strict";var lft=zut(),Gfr=cft();function x4e(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.")}}t(x4e,"renamed");R1.exports.Type=Py();R1.exports.Schema=KIe();R1.exports.FAILSAFE_SCHEMA=e4e();R1.exports.JSON_SCHEMA=s4e();R1.exports.CORE_SCHEMA=a4e();R1.exports.DEFAULT_SCHEMA=Lle();R1.exports.load=lft.load;R1.exports.loadAll=lft.loadAll;R1.exports.dump=Gfr.dump;R1.exports.YAMLException=LM();R1.exports.types={binary:u4e(),float:i4e(),map:QIe(),null:t4e(),pairs:_4e(),set:p4e(),timestamp:o4e(),bool:r4e(),int:n4e(),merge:c4e(),omap:f4e(),seq:ZIe(),str:XIe()};R1.exports.safeLoad=x4e("safeLoad","load");R1.exports.safeLoadAll=x4e("safeLoadAll","loadAll");R1.exports.safeDump=x4e("safeDump","dump")});var uft=or(YH=>{"use strict";var Yfr=YH&&YH.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(YH,"__esModule",{value:!0});var Kfr=gT(),Xfr=Yfr(E4e()),Zfr=E4e();YH.default={order:200,allowEmpty:!0,canParse:[".yaml",".yml",".json"],async parse(o){let s=o.data;if(Buffer.isBuffer(s)&&(s=s.toString()),typeof s=="string")try{return Xfr.default.load(s,{schema:Zfr.JSON_SCHEMA})}catch(f){throw new Kfr.ParserError(f?.message||"Parser Error",o.url)}else return s}}});var fft=or(C4e=>{"use strict";Object.defineProperty(C4e,"__esModule",{value:!0});var Qfr=gT(),e_r=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;C4e.default={order:300,allowEmpty:!0,encoding:"utf8",canParse(o){return(typeof o.data=="string"||Buffer.isBuffer(o.data))&&e_r.test(o.url)},parse(o){if(typeof o.data=="string")return o.data;if(Buffer.isBuffer(o.data))return o.data.toString(this.encoding);throw new Qfr.ParserError("data is not text",o.url)}}});var _ft=or(k4e=>{"use strict";Object.defineProperty(k4e,"__esModule",{value:!0});var t_r=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;k4e.default={order:400,allowEmpty:!0,canParse(o){return Buffer.isBuffer(o.data)&&t_r.test(o.url)},parse(o){return Buffer.isBuffer(o.data)?o.data:Buffer.from(o.data)}}});var hft=or(AE=>{"use strict";var r_r=AE&&AE.__createBinding||(Object.create?function(o,s,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(s,f);(!y||("get"in y?!s.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return s[f]},"get")}),Object.defineProperty(o,d,y)}:function(o,s,f,d){d===void 0&&(d=f),o[d]=s[f]}),n_r=AE&&AE.__setModuleDefault||(Object.create?function(o,s){Object.defineProperty(o,"default",{enumerable:!0,value:s})}:function(o,s){o.default=s}),i_r=AE&&AE.__importStar||function(o){if(o&&o.__esModule)return o;var s={};if(o!=null)for(var f in o)f!=="default"&&Object.prototype.hasOwnProperty.call(o,f)&&r_r(s,o,f);return n_r(s,o),s},s_r=AE&&AE.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(AE,"__esModule",{value:!0});var a_r=s_r(_o("fs")),pft=pI(),dft=i_r(hT()),mft=gT();AE.default={order:100,canRead(o){return dft.isFileSystemPath(o.url)},async read(o){let s;try{s=dft.toFileSystemPath(o.url)}catch(f){throw new mft.ResolverError(pft.ono.uri(f,`Malformed URI: ${o.url}`),o.url)}try{return await a_r.default.promises.readFile(s)}catch(f){throw new mft.ResolverError((0,pft.ono)(f,`Error opening file "${s}"`),s)}}}});var vft=or(tA=>{"use strict";var o_r=tA&&tA.__createBinding||(Object.create?function(o,s,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(s,f);(!y||("get"in y?!s.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return s[f]},"get")}),Object.defineProperty(o,d,y)}:function(o,s,f,d){d===void 0&&(d=f),o[d]=s[f]}),c_r=tA&&tA.__setModuleDefault||(Object.create?function(o,s){Object.defineProperty(o,"default",{enumerable:!0,value:s})}:function(o,s){o.default=s}),l_r=tA&&tA.__importStar||function(o){if(o&&o.__esModule)return o;var s={};if(o!=null)for(var f in o)f!=="default"&&Object.prototype.hasOwnProperty.call(o,f)&&o_r(s,o,f);return c_r(s,o),s};Object.defineProperty(tA,"__esModule",{value:!0});var Jle=pI(),KH=l_r(hT()),gft=gT();tA.default={order:200,headers:null,timeout:6e4,redirects:5,withCredentials:!1,canRead(o){return KH.isHttp(o.url)},read(o){let s=KH.parse(o.url);return typeof window<"u"&&!s.protocol&&(s.protocol=KH.parse(location.href).protocol),yft(s,this)}};async function yft(o,s,f){o=KH.parse(o);let d=f||[];d.push(o.href);try{let y=await u_r(o,s);if(y.status>=400)throw(0,Jle.ono)({status:y.status},`HTTP ERROR ${y.status}`);if(y.status>=300){if(!Number.isNaN(s.redirects)&&d.length>s.redirects)throw new gft.ResolverError((0,Jle.ono)({status:y.status},`Error downloading ${d[0]}.
|
|
106
|
+
Too many redirects:
|
|
107
|
+
${d.join(`
|
|
108
|
+
`)}`));if(!("location"in y.headers)||!y.headers.location)throw(0,Jle.ono)({status:y.status},`HTTP ${y.status} redirect with no location header`);{let x=KH.resolve(o.href,y.headers.location);return yft(x,s,d)}}else{if(y.body){let x=await y.arrayBuffer();return Buffer.from(x)}return Buffer.alloc(0)}}catch(y){throw new gft.ResolverError((0,Jle.ono)(y,`Error downloading ${o.href}`),o.href)}}t(yft,"download");async function u_r(o,s){let f,d;s.timeout&&(f=new AbortController,d=setTimeout(()=>f.abort(),s.timeout));let y=await fetch(o,{method:"GET",headers:s.headers||{},credentials:s.withCredentials?"include":"same-origin",signal:f?f.signal:null});return d&&clearTimeout(d),y}t(u_r,"get")});var w4e=or(rA=>{"use strict";var UM=rA&&rA.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(rA,"__esModule",{value:!0});rA.getNewOptions=rA.getJsonSchemaRefParserDefaultOptions=void 0;var f_r=UM(Klt()),__r=UM(uft()),p_r=UM(fft()),d_r=UM(_ft()),m_r=UM(hft()),h_r=UM(vft()),g_r=t(()=>({parse:{json:{...f_r.default},yaml:{...__r.default},text:{...p_r.default},binary:{...d_r.default}},resolve:{file:{...m_r.default},http:{...h_r.default},external:!0},continueOnError:!1,dereference:{circular:!0,excludedPathMatcher:t(()=>!1,"excludedPathMatcher"),referenceResolution:"relative"},mutateInputSchema:!0}),"getJsonSchemaRefParserDefaultOptions");rA.getJsonSchemaRefParserDefaultOptions=g_r;var y_r=t(o=>{let s=(0,rA.getJsonSchemaRefParserDefaultOptions)();return o&&Sft(s,o),s},"getNewOptions");rA.getNewOptions=y_r;function Sft(o,s){if(bft(s)){let f=Object.keys(s).filter(d=>!["__proto__","constructor","prototype"].includes(d));for(let d=0;d<f.length;d++){let y=f[d],x=s[y],P=o[y];bft(x)?o[y]=Sft(P||{},x):x!==void 0&&(o[y]=x)}}return o}t(Sft,"merge");function bft(o){return o&&typeof o=="object"&&!Array.isArray(o)&&!(o instanceof RegExp)&&!(o instanceof Date)}t(bft,"isMergeable")});var xft=or(Wle=>{"use strict";Object.defineProperty(Wle,"__esModule",{value:!0});Wle.normalizeArgs=Tft;var v_r=w4e();function Tft(o){let s,f,d,y,x=Array.prototype.slice.call(o);typeof x[x.length-1]=="function"&&(y=x.pop()),typeof x[0]=="string"?(s=x[0],typeof x[2]=="object"?(f=x[1],d=x[2]):(f=void 0,d=x[1])):(s="",f=x[0],d=x[1]);try{d=(0,v_r.getNewOptions)(d)}catch(P){console.error(`JSON Schema Ref Parser: Error normalizing options: ${P}`)}return!d.mutateInputSchema&&typeof f=="object"&&(f=JSON.parse(JSON.stringify(f))),{path:s,schema:f,options:d,callback:y}}t(Tft,"normalizeArgs");Wle.default=Tft});var Eft=or(NE=>{"use strict";var b_r=NE&&NE.__createBinding||(Object.create?function(o,s,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(s,f);(!y||("get"in y?!s.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return s[f]},"get")}),Object.defineProperty(o,d,y)}:function(o,s,f,d){d===void 0&&(d=f),o[d]=s[f]}),S_r=NE&&NE.__setModuleDefault||(Object.create?function(o,s){Object.defineProperty(o,"default",{enumerable:!0,value:s})}:function(o,s){o.default=s}),T_r=NE&&NE.__importStar||function(o){if(o&&o.__esModule)return o;var s={};if(o!=null)for(var f in o)f!=="default"&&Object.prototype.hasOwnProperty.call(o,f)&&b_r(s,o,f);return S_r(s,o),s},D4e=NE&&NE.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(NE,"__esModule",{value:!0});var x_r=D4e(IM()),E_r=D4e(BH()),C_r=D4e(WIe()),zM=T_r(hT()),k_r=gT();function w_r(o,s){if(!s.resolve?.external)return Promise.resolve();try{let f=P4e(o.schema,o.$refs._root$Ref.path+"#",o.$refs,s);return Promise.all(f)}catch(f){return Promise.reject(f)}}t(w_r,"resolveExternal");function P4e(o,s,f,d,y,x){y||(y=new Set);let P=[];if(o&&typeof o=="object"&&!ArrayBuffer.isView(o)&&!y.has(o)){y.add(o),x_r.default.isExternal$Ref(o)&&P.push(D_r(o,s,f,d));let F=Object.keys(o);for(let J of F){let G=E_r.default.join(s,J),Se=o[J];P=P.concat(P4e(Se,G,f,d,y,x))}}return P}t(P4e,"crawl");async function D_r(o,s,f,d){let y=d.dereference?.externalReferenceResolution==="root",x=zM.resolve(y?zM.cwd():s,o.$ref),P=zM.stripHash(x),F=f._$refs[P];if(F)return Promise.resolve(F.value);try{let J=await(0,C_r.default)(x,f,d),G=P4e(J,P+"#",f,d,new Set,!0);return Promise.all(G)}catch(J){if(!d?.continueOnError||!(0,k_r.isHandledError)(J))throw J;return f._$refs[P]&&(J.source=decodeURI(zM.stripHash(s)),J.path=zM.safePointerToPath(zM.getHash(s))),[]}}t(D_r,"resolve$Ref");NE.default=w_r});var wft=or(IE=>{"use strict";var P_r=IE&&IE.__createBinding||(Object.create?function(o,s,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(s,f);(!y||("get"in y?!s.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return s[f]},"get")}),Object.defineProperty(o,d,y)}:function(o,s,f,d){d===void 0&&(d=f),o[d]=s[f]}),A_r=IE&&IE.__setModuleDefault||(Object.create?function(o,s){Object.defineProperty(o,"default",{enumerable:!0,value:s})}:function(o,s){o.default=s}),N_r=IE&&IE.__importStar||function(o){if(o&&o.__esModule)return o;var s={};if(o!=null)for(var f in o)f!=="default"&&Object.prototype.hasOwnProperty.call(o,f)&&P_r(s,o,f);return A_r(s,o),s},kft=IE&&IE.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(IE,"__esModule",{value:!0});var qle=kft(IM()),XH=kft(BH()),A4e=N_r(hT());function I_r(o,s){let f=[];N4e(o,"schema",o.$refs._root$Ref.path+"#","#",0,f,o.$refs,s),O_r(f)}t(I_r,"bundle");function N4e(o,s,f,d,y,x,P,F){let J=s===null?o:o[s];if(J&&typeof J=="object"&&!ArrayBuffer.isView(J))if(qle.default.isAllowed$Ref(J))Cft(o,s,f,d,y,x,P,F);else{let G=Object.keys(J).sort((Se,de)=>Se==="definitions"?-1:de==="definitions"?1:Se.length-de.length);for(let Se of G){let de=XH.default.join(f,Se),ae=XH.default.join(d,Se),Ke=J[Se];qle.default.isAllowed$Ref(Ke)?Cft(J,Se,f,ae,y,x,P,F):N4e(J,Se,de,ae,y,x,P,F)}}}t(N4e,"crawl");function Cft(o,s,f,d,y,x,P,F){let J=s===null?o:o[s],G=A4e.resolve(f,J.$ref),Se=P._resolve(G,d,F);if(Se===null)return;let ae=XH.default.parse(d).length,Ke=A4e.stripHash(Se.path),$e=A4e.getHash(Se.path),Fe=Ke!==P._root$Ref.path,Gt=qle.default.isExtended$Ref(J);y+=Se.indirections;let jt=F_r(x,o,s);if(jt)if(ae<jt.depth||y<jt.indirections)L_r(x,jt);else return;x.push({$ref:J,parent:o,key:s,pathFromRoot:d,depth:ae,file:Ke,hash:$e,value:Se.value,circular:Se.circular,extended:Gt,external:Fe,indirections:y}),(!jt||Fe)&&N4e(Se.value,null,Se.path,d,y+1,x,P,F)}t(Cft,"inventory$Ref");function O_r(o){o.sort((y,x)=>{if(y.file!==x.file)return y.file<x.file?-1:1;if(y.hash!==x.hash)return y.hash<x.hash?-1:1;if(y.circular!==x.circular)return y.circular?-1:1;if(y.extended!==x.extended)return y.extended?1:-1;if(y.indirections!==x.indirections)return y.indirections-x.indirections;if(y.depth!==x.depth)return y.depth-x.depth;{let P=y.pathFromRoot.lastIndexOf("/definitions"),F=x.pathFromRoot.lastIndexOf("/definitions");return P!==F?F-P:y.pathFromRoot.length-x.pathFromRoot.length}});let s,f,d;for(let y of o)y.external?y.file===s&&y.hash===f?y.$ref.$ref=d:y.file===s&&y.hash.indexOf(f+"/")===0?y.$ref.$ref=XH.default.join(d,XH.default.parse(y.hash.replace(f,"#"))):(s=y.file,f=y.hash,d=y.pathFromRoot,y.$ref=y.parent[y.key]=qle.default.dereference(y.$ref,y.value),y.circular&&(y.$ref.$ref=y.pathFromRoot)):y.$ref.$ref=y.hash}t(O_r,"remap");function F_r(o,s,f){for(let d of o)if(d&&d.parent===s&&d.key===f)return d}t(F_r,"findInInventory");function L_r(o,s){let f=o.indexOf(s);o.splice(f,1)}t(L_r,"removeFromInventory");IE.default=I_r});var Oft=or(OE=>{"use strict";var R_r=OE&&OE.__createBinding||(Object.create?function(o,s,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(s,f);(!y||("get"in y?!s.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return s[f]},"get")}),Object.defineProperty(o,d,y)}:function(o,s,f,d){d===void 0&&(d=f),o[d]=s[f]}),M_r=OE&&OE.__setModuleDefault||(Object.create?function(o,s){Object.defineProperty(o,"default",{enumerable:!0,value:s})}:function(o,s){o.default=s}),j_r=OE&&OE.__importStar||function(o){if(o&&o.__esModule)return o;var s={};if(o!=null)for(var f in o)f!=="default"&&Object.prototype.hasOwnProperty.call(o,f)&&R_r(s,o,f);return M_r(s,o),s},Nft=OE&&OE.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(OE,"__esModule",{value:!0});var Vle=Nft(IM()),Dft=Nft(BH()),B_r=pI(),Pft=j_r(hT()),U_r=gT();OE.default=z_r;function z_r(o,s){let f=Date.now(),d=I4e(o.schema,o.$refs._root$Ref.path,"#",new Set,new Set,new Map,o.$refs,s,f);o.$refs.circular=d.circular,o.schema=d.value}t(z_r,"dereference");function I4e(o,s,f,d,y,x,P,F,J){let G,Se={value:o,circular:!1};if(F&&F.timeoutMs&&Date.now()-J>F.timeoutMs)throw new U_r.TimeoutError(F.timeoutMs);let de=F.dereference||{},ae=de.excludedPathMatcher||(()=>!1);if((de?.circular==="ignore"||!y.has(o))&&o&&typeof o=="object"&&!ArrayBuffer.isView(o)&&!ae(f)){if(d.add(o),y.add(o),Vle.default.isAllowed$Ref(o,F))G=Aft(o,s,f,d,y,x,P,F,J),Se.circular=G.circular,Se.value=G.value;else for(let Ke of Object.keys(o)){let $e=Dft.default.join(s,Ke),Fe=Dft.default.join(f,Ke);if(ae(Fe))continue;let Gt=o[Ke],jt=!1;Vle.default.isAllowed$Ref(Gt,F)?(G=Aft(Gt,$e,Fe,d,y,x,P,F,J),jt=G.circular,o[Ke]!==G.value&&(o[Ke]=G.value,de?.onDereference?.(Gt.$ref,o[Ke],o,Ke))):d.has(Gt)?jt=Ift($e,P,F):(G=I4e(Gt,$e,Fe,d,y,x,P,F,J),jt=G.circular,o[Ke]!==G.value&&(o[Ke]=G.value)),Se.circular=Se.circular||jt}d.delete(o)}return Se}t(I4e,"crawl");function Aft(o,s,f,d,y,x,P,F,J){let Se=Vle.default.isExternal$Ref(o)&&F?.dereference?.externalReferenceResolution==="root",de=Pft.resolve(Se?Pft.cwd():s,o.$ref),ae=x.get(de);if(ae&&!ae.circular){let Pr=Object.keys(o);if(Pr.length>1){let Fn={};for(let sn of Pr)sn!=="$ref"&&!(sn in ae.value)&&(Fn[sn]=o[sn]);return{circular:ae.circular,value:Object.assign({},ae.value,Fn)}}return ae}let Ke=P._resolve(de,s,F);if(Ke===null)return{circular:!1,value:null};let $e=Ke.circular,Fe=$e||d.has(Ke.value);Fe&&Ift(s,P,F);let Gt=Vle.default.dereference(o,Ke.value);if(!Fe){let Pr=I4e(Gt,Ke.path,f,d,y,x,P,F,J);Fe=Pr.circular,Gt=Pr.value}Fe&&!$e&&F.dereference?.circular==="ignore"&&(Gt=o),$e&&(Gt.$ref=f);let jt={circular:Fe,value:Gt};return Object.keys(o).length===1&&x.set(de,jt),jt}t(Aft,"dereference$Ref");function Ift(o,s,f){if(s.circular=!0,!f.dereference.circular)throw B_r.ono.reference(`Circular $ref pointer found at ${o}`);return!0}t(Ift,"foundCircularReference")});var Fft=or(O4e=>{"use strict";Object.defineProperty(O4e,"__esModule",{value:!0});function $_r(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:t(function(s){setTimeout(s,0)},"next")}t($_r,"makeNext");O4e.default=$_r()});var Rft=or(ZH=>{"use strict";var J_r=ZH&&ZH.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(ZH,"__esModule",{value:!0});ZH.default=W_r;var Lft=J_r(Fft());function W_r(o,s){if(o){s.then(function(f){(0,Lft.default)(function(){o(null,f)})},function(f){(0,Lft.default)(function(){o(f)})});return}else return s}t(W_r,"maybe")});var L4e=or(zc=>{"use strict";var q_r=zc&&zc.__createBinding||(Object.create?function(o,s,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(s,f);(!y||("get"in y?!s.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return s[f]},"get")}),Object.defineProperty(o,d,y)}:function(o,s,f,d){d===void 0&&(d=f),o[d]=s[f]}),V_r=zc&&zc.__setModuleDefault||(Object.create?function(o,s){Object.defineProperty(o,"default",{enumerable:!0,value:s})}:function(o,s){o.default=s}),H_r=zc&&zc.__importStar||function(o){if(o&&o.__esModule)return o;var s={};if(o!=null)for(var f in o)f!=="default"&&Object.prototype.hasOwnProperty.call(o,f)&&q_r(s,o,f);return V_r(s,o),s},jO=zc&&zc.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(zc,"__esModule",{value:!0});zc.getJsonSchemaRefParserDefaultOptions=zc.jsonSchemaParserNormalizeArgs=zc.dereferenceInternal=zc.JSONParserErrorGroup=zc.isHandledError=zc.UnmatchedParserError=zc.ParserError=zc.ResolverError=zc.MissingPointerError=zc.InvalidPointerError=zc.JSONParserError=zc.UnmatchedResolverError=zc.dereference=zc.bundle=zc.resolve=zc.parse=zc.$RefParser=void 0;var Mft=jO(qlt()),G_r=jO(WIe()),QH=jO(xft());zc.jsonSchemaParserNormalizeArgs=QH.default;var Y_r=jO(Eft()),K_r=jO(wft()),Bft=jO(Oft());zc.dereferenceInternal=Bft.default;var MO=H_r(hT()),yT=gT();Object.defineProperty(zc,"JSONParserError",{enumerable:!0,get:t(function(){return yT.JSONParserError},"get")});Object.defineProperty(zc,"InvalidPointerError",{enumerable:!0,get:t(function(){return yT.InvalidPointerError},"get")});Object.defineProperty(zc,"MissingPointerError",{enumerable:!0,get:t(function(){return yT.MissingPointerError},"get")});Object.defineProperty(zc,"ResolverError",{enumerable:!0,get:t(function(){return yT.ResolverError},"get")});Object.defineProperty(zc,"ParserError",{enumerable:!0,get:t(function(){return yT.ParserError},"get")});Object.defineProperty(zc,"UnmatchedParserError",{enumerable:!0,get:t(function(){return yT.UnmatchedParserError},"get")});Object.defineProperty(zc,"UnmatchedResolverError",{enumerable:!0,get:t(function(){return yT.UnmatchedResolverError},"get")});Object.defineProperty(zc,"isHandledError",{enumerable:!0,get:t(function(){return yT.isHandledError},"get")});Object.defineProperty(zc,"JSONParserErrorGroup",{enumerable:!0,get:t(function(){return yT.JSONParserErrorGroup},"get")});var jft=pI(),FE=jO(Rft()),X_r=w4e();Object.defineProperty(zc,"getJsonSchemaRefParserDefaultOptions",{enumerable:!0,get:t(function(){return X_r.getJsonSchemaRefParserDefaultOptions},"get")});var yI=class o{static{t(this,"$RefParser")}constructor(){this.schema=null,this.$refs=new Mft.default}async parse(){let s=(0,QH.default)(arguments),f;if(!s.path&&!s.schema){let y=(0,jft.ono)(`Expected a file path, URL, or object. Got ${s.path||s.schema}`);return(0,FE.default)(s.callback,Promise.reject(y))}this.schema=null,this.$refs=new Mft.default;let d="http";if(MO.isFileSystemPath(s.path))s.path=MO.fromFileSystemPath(s.path),d="file";else if(!s.path&&s.schema&&"$id"in s.schema&&s.schema.$id){let y=MO.parse(s.schema.$id),x=y.protocol==="https:"?443:80;s.path=`${y.protocol}//${y.hostname}:${x}`}if(s.path=MO.resolve(MO.cwd(),s.path),s.schema&&typeof s.schema=="object"){let y=this.$refs._add(s.path);y.value=s.schema,y.pathType=d,f=Promise.resolve(s.schema)}else f=(0,G_r.default)(s.path,this.$refs,s.options);try{let y=await f;if(y!==null&&typeof y=="object"&&!Buffer.isBuffer(y))return this.schema=y,(0,FE.default)(s.callback,Promise.resolve(this.schema));if(s.options.continueOnError)return this.schema=null,(0,FE.default)(s.callback,Promise.resolve(this.schema));throw jft.ono.syntax(`"${this.$refs._root$Ref.path||y}" is not a valid JSON Schema`)}catch(y){return!s.options.continueOnError||!(0,yT.isHandledError)(y)?(0,FE.default)(s.callback,Promise.reject(y)):(this.$refs._$refs[MO.stripHash(s.path)]&&this.$refs._$refs[MO.stripHash(s.path)].addError(y),(0,FE.default)(s.callback,Promise.resolve(null)))}}static parse(){let s=new o;return s.parse.apply(s,arguments)}async resolve(){let s=(0,QH.default)(arguments);try{return await this.parse(s.path,s.schema,s.options),await(0,Y_r.default)(this,s.options),F4e(this),(0,FE.default)(s.callback,Promise.resolve(this.$refs))}catch(f){return(0,FE.default)(s.callback,Promise.reject(f))}}static resolve(){let s=new o;return s.resolve.apply(s,arguments)}static bundle(){let s=new o;return s.bundle.apply(s,arguments)}async bundle(){let s=(0,QH.default)(arguments);try{return await this.resolve(s.path,s.schema,s.options),(0,K_r.default)(this,s.options),F4e(this),(0,FE.default)(s.callback,Promise.resolve(this.schema))}catch(f){return(0,FE.default)(s.callback,Promise.reject(f))}}static dereference(){let s=new o;return s.dereference.apply(s,arguments)}async dereference(){let s=(0,QH.default)(arguments);try{return await this.resolve(s.path,s.schema,s.options),(0,Bft.default)(this,s.options),F4e(this),(0,FE.default)(s.callback,Promise.resolve(this.schema))}catch(f){return(0,FE.default)(s.callback,Promise.reject(f))}}};zc.$RefParser=yI;zc.default=yI;function F4e(o){if(yT.JSONParserErrorGroup.getParserErrors(o).length>0)throw new yT.JSONParserErrorGroup(o)}t(F4e,"finalize");zc.parse=yI.parse;zc.resolve=yI.resolve;zc.bundle=yI.bundle;zc.dereference=yI.dereference});var J4e=or((rG,l_t)=>{"use strict";Object.defineProperty(rG,"__esModule",{value:!0});var tG=Pce(),RE=oM();function c_t(o,s){if(!o.opts.code.source)throw new Error("moduleCode: ajv instance must have code.source option");let{_n:f}=o.scope.opts;return typeof s=="function"?y(s.source):s!==void 0?x(s,d):x(o.schemas,F=>F.meta?void 0:o.compile(F.schema));function d(F){let J=o.getSchema(F);if(!J)throw new Error(`moduleCode: no schema with id ${F}`);return J}function y(F){let J={},G=F?.validateName,Se=P(J,F);return o.opts.code.esm?`"use strict";${f}export const validate = ${G};${f}export default ${G};${f}${Se}`:`"use strict";${f}module.exports = ${G};${f}module.exports.default = ${G};${f}${Se}`}function x(F,J){var G;let Se={},de=(0,RE._)`"use strict";`;for(let ae in F){let Ke=J(F[ae]);if(Ke){let $e=P(Se,Ke.source),Fe=o.opts.code.esm?(0,RE._)`export const ${(0,RE.getEsmExportName)(ae)}`:(0,RE._)`exports${(0,RE.getProperty)(ae)}`;de=(0,RE._)`${de}${f}${Fe} = ${(G=Ke.source)===null||G===void 0?void 0:G.validateName};${f}${$e}`}}return`${de}`}function P(F,J){if(!J)throw new Error('moduleCode: function does not have "source" property');if(ae(J.validateName)===tG.UsedValueState.Completed)return RE.nil;Ke(J.validateName,tG.UsedValueState.Started);let G=o.scope.scopeCode(J.scopeValues,F,de),Se=new RE._Code(`${G}${f}${J.validateCode}`);return J.evaluated?(0,RE._)`${Se}${J.validateName}.evaluated = ${J.evaluated};${f}`:Se;function de($e){var Fe;let Gt=(Fe=$e.value)===null||Fe===void 0?void 0:Fe.ref;if($e.prefix==="validate"&&typeof Gt=="function")return P(F,Gt.source);if(($e.prefix==="root"||$e.prefix==="wrapper")&&typeof Gt=="object"){let{validate:jt,validateName:Pr}=Gt;if(!Pr)throw new Error("ajv internal error");let Fn=o.opts.code.es5?tG.varKinds.var:tG.varKinds.const,sn=(0,RE._)`${Fn} ${$e} = {validate: ${Pr}};`;if(ae(Pr)===tG.UsedValueState.Started)return sn;let Un=P(F,jt?.source);return(0,RE._)`${sn}${f}${Un}`}}function ae($e){var Fe;return(Fe=F[$e.prefix])===null||Fe===void 0?void 0:Fe.get($e)}function Ke($e,Fe){let{prefix:Gt}=$e;(F[Gt]=F[Gt]||new Map).set($e,Fe)}}}t(c_t,"standaloneCode");l_t.exports=rG=c_t;Object.defineProperty(rG,"__esModule",{value:!0});rG.default=c_t});var g_t=or(Wk=>{"use strict";Object.defineProperty(Wk,"__esModule",{value:!0});Wk.formatNames=Wk.fastFormats=Wk.fullFormats=void 0;function Jk(o,s){return{validate:o,compare:s}}t(Jk,"fmtDef");Wk.fullFormats={date:Jk(p_t,H4e),time:Jk(q4e(!0),G4e),"date-time":Jk(u_t(!0),m_t),"iso-time":Jk(q4e(),d_t),"iso-date-time":Jk(u_t(),h_t),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:Cpr,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:Ipr,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:kpr,int32:{type:"number",validate:Ppr},int64:{type:"number",validate:Apr},float:{type:"number",validate:__t},double:{type:"number",validate:__t},password:!0,binary:!0};Wk.fastFormats={...Wk.fullFormats,date:Jk(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,H4e),time:Jk(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,G4e),"date-time":Jk(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,m_t),"iso-time":Jk(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,d_t),"iso-date-time":Jk(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,h_t),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};Wk.formatNames=Object.keys(Wk.fullFormats);function bpr(o){return o%4===0&&(o%100!==0||o%400===0)}t(bpr,"isLeapYear");var Spr=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,Tpr=[0,31,28,31,30,31,30,31,31,30,31,30,31];function p_t(o){let s=Spr.exec(o);if(!s)return!1;let f=+s[1],d=+s[2],y=+s[3];return d>=1&&d<=12&&y>=1&&y<=(d===2&&bpr(f)?29:Tpr[d])}t(p_t,"date");function H4e(o,s){if(o&&s)return o>s?1:o<s?-1:0}t(H4e,"compareDate");var W4e=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function q4e(o){return t(function(f){let d=W4e.exec(f);if(!d)return!1;let y=+d[1],x=+d[2],P=+d[3],F=d[4],J=d[5]==="-"?-1:1,G=+(d[6]||0),Se=+(d[7]||0);if(G>23||Se>59||o&&!F)return!1;if(y<=23&&x<=59&&P<60)return!0;let de=x-Se*J,ae=y-G*J-(de<0?1:0);return(ae===23||ae===-1)&&(de===59||de===-1)&&P<61},"time")}t(q4e,"getTime");function G4e(o,s){if(!(o&&s))return;let f=new Date("2020-01-01T"+o).valueOf(),d=new Date("2020-01-01T"+s).valueOf();if(f&&d)return f-d}t(G4e,"compareTime");function d_t(o,s){if(!(o&&s))return;let f=W4e.exec(o),d=W4e.exec(s);if(f&&d)return o=f[1]+f[2]+f[3],s=d[1]+d[2]+d[3],o>s?1:o<s?-1:0}t(d_t,"compareIsoTime");var V4e=/t|\s/i;function u_t(o){let s=q4e(o);return t(function(d){let y=d.split(V4e);return y.length===2&&p_t(y[0])&&s(y[1])},"date_time")}t(u_t,"getDateTime");function m_t(o,s){if(!(o&&s))return;let f=new Date(o).valueOf(),d=new Date(s).valueOf();if(f&&d)return f-d}t(m_t,"compareDateTime");function h_t(o,s){if(!(o&&s))return;let[f,d]=o.split(V4e),[y,x]=s.split(V4e),P=H4e(f,y);if(P!==void 0)return P||G4e(d,x)}t(h_t,"compareIsoDateTime");var xpr=/\/|:/,Epr=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function Cpr(o){return xpr.test(o)&&Epr.test(o)}t(Cpr,"uri");var f_t=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function kpr(o){return f_t.lastIndex=0,f_t.test(o)}t(kpr,"byte");var wpr=-(2**31),Dpr=2**31-1;function Ppr(o){return Number.isInteger(o)&&o<=Dpr&&o>=wpr}t(Ppr,"validateInt32");function Apr(o){return Number.isInteger(o)}t(Apr,"validateInt64");function __t(){return!0}t(__t,"validateNumber");var Npr=/[^\\]\\Z/;function Ipr(o){if(Npr.test(o))return!1;try{return new RegExp(o),!0}catch{return!1}}t(Ipr,"regex")});var y_t=or(WM=>{"use strict";Object.defineProperty(WM,"__esModule",{value:!0});WM.formatLimitDefinition=void 0;var Opr=lle(),ME=Cc(),bI=ME.operators,Xle={formatMaximum:{okStr:"<=",ok:bI.LTE,fail:bI.GT},formatMinimum:{okStr:">=",ok:bI.GTE,fail:bI.LT},formatExclusiveMaximum:{okStr:"<",ok:bI.LT,fail:bI.GTE},formatExclusiveMinimum:{okStr:">",ok:bI.GT,fail:bI.LTE}},Fpr={message:t(({keyword:o,schemaCode:s})=>(0,ME.str)`should be ${Xle[o].okStr} ${s}`,"message"),params:t(({keyword:o,schemaCode:s})=>(0,ME._)`{comparison: ${Xle[o].okStr}, limit: ${s}}`,"params")};WM.formatLimitDefinition={keyword:Object.keys(Xle),type:"string",schemaType:"string",$data:!0,error:Fpr,code(o){let{gen:s,data:f,schemaCode:d,keyword:y,it:x}=o,{opts:P,self:F}=x;if(!P.validateFormats)return;let J=new Opr.KeywordCxt(x,F.RULES.all.format.definition,"format");J.$data?G():Se();function G(){let ae=s.scopeValue("formats",{ref:F.formats,code:P.code.formats}),Ke=s.const("fmt",(0,ME._)`${ae}[${J.schemaCode}]`);o.fail$data((0,ME.or)((0,ME._)`typeof ${Ke} != "object"`,(0,ME._)`${Ke} instanceof RegExp`,(0,ME._)`typeof ${Ke}.compare != "function"`,de(Ke)))}t(G,"validate$DataFormat");function Se(){let ae=J.schema,Ke=F.formats[ae];if(!Ke||Ke===!0)return;if(typeof Ke!="object"||Ke instanceof RegExp||typeof Ke.compare!="function")throw new Error(`"${y}": format "${ae}" does not define "compare" function`);let $e=s.scopeValue("formats",{key:ae,ref:Ke,code:P.code.formats?(0,ME._)`${P.code.formats}${(0,ME.getProperty)(ae)}`:void 0});o.fail$data(de($e))}t(Se,"validateFormat");function de(ae){return(0,ME._)`${ae}.compare(${f}, ${d}) ${Xle[y].fail} 0`}t(de,"compareCode")},dependencies:["format"]};var Lpr=t(o=>(o.addKeyword(WM.formatLimitDefinition),o),"formatLimitPlugin");WM.default=Lpr});var T_t=or((nG,S_t)=>{"use strict";Object.defineProperty(nG,"__esModule",{value:!0});var qM=g_t(),Rpr=y_t(),Y4e=Cc(),v_t=new Y4e.Name("fullFormats"),Mpr=new Y4e.Name("fastFormats"),K4e=t((o,s={keywords:!0})=>{if(Array.isArray(s))return b_t(o,s,qM.fullFormats,v_t),o;let[f,d]=s.mode==="fast"?[qM.fastFormats,Mpr]:[qM.fullFormats,v_t],y=s.formats||qM.formatNames;return b_t(o,y,f,d),s.keywords&&(0,Rpr.default)(o),o},"formatsPlugin");K4e.get=(o,s="full")=>{let d=(s==="fast"?qM.fastFormats:qM.fullFormats)[o];if(!d)throw new Error(`Unknown format "${o}"`);return d};function b_t(o,s,f,d){var y,x;(y=(x=o.opts.code).formats)!==null&&y!==void 0||(x.formats=(0,Y4e._)`require("ajv-formats/dist/formats").${d}`);for(let P of s)o.addFormat(P,f[P])}t(b_t,"addFormats");S_t.exports=nG=K4e;Object.defineProperty(nG,"__esModule",{value:!0});nG.default=K4e});var dpt=or((i7r,ppt)=>{var Idr=Object.prototype.toString,a3e=typeof Buffer<"u"&&typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function Odr(o){return Idr.call(o).slice(8,-1)==="ArrayBuffer"}t(Odr,"isArrayBuffer");function Fdr(o,s,f){s>>>=0;var d=o.byteLength-s;if(d<0)throw new RangeError("'offset' is out of bounds");if(f===void 0)f=d;else if(f>>>=0,f>d)throw new RangeError("'length' is out of bounds");return a3e?Buffer.from(o.slice(s,s+f)):new Buffer(new Uint8Array(o.slice(s,s+f)))}t(Fdr,"fromArrayBuffer");function Ldr(o,s){if((typeof s!="string"||s==="")&&(s="utf8"),!Buffer.isEncoding(s))throw new TypeError('"encoding" must be a valid string encoding');return a3e?Buffer.from(o,s):new Buffer(o,s)}t(Ldr,"fromString");function Rdr(o,s,f){if(typeof o=="number")throw new TypeError('"value" argument must not be a number');return Odr(o)?Fdr(o,s,f):typeof o=="string"?Ldr(o,s):a3e?Buffer.from(o):new Buffer(o)}t(Rdr,"bufferFrom");ppt.exports=Rdr});var Tpt=or((WO,u3e)=>{var Mdr=_o("source-map").SourceMapConsumer,o3e=_o("path"),Hk;try{Hk=_o("fs"),(!Hk.existsSync||!Hk.readFileSync)&&(Hk=null)}catch{}var jdr=dpt();function mpt(o,s){return o.require(s)}t(mpt,"dynamicRequire");var hpt=!1,gpt=!1,c3e=!1,uG="auto",JO={},fG={},Bdr=/^data:application\/json[^,]+base64,/,EI=[],CI=[];function f3e(){return uG==="browser"?!0:uG==="node"?!1:typeof window<"u"&&typeof XMLHttpRequest=="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}t(f3e,"isInBrowser");function Udr(){return typeof process=="object"&&process!==null&&typeof process.on=="function"}t(Udr,"hasGlobalProcessEventEmitter");function zdr(){return typeof process=="object"&&process!==null?process.version:""}t(zdr,"globalProcessVersion");function $dr(){if(typeof process=="object"&&process!==null)return process.stderr}t($dr,"globalProcessStderr");function Jdr(o){if(typeof process=="object"&&process!==null&&typeof process.exit=="function")return process.exit(o)}t(Jdr,"globalProcessExit");function sue(o){return function(s){for(var f=0;f<o.length;f++){var d=o[f](s);if(d)return d}return null}}t(sue,"handlerExec");var _3e=sue(EI);EI.push(function(o){if(o=o.trim(),/^file:/.test(o)&&(o=o.replace(/file:\/\/\/(\w:)?/,function(d,y){return y?"":"/"})),o in JO)return JO[o];var s="";try{if(Hk)Hk.existsSync(o)&&(s=Hk.readFileSync(o,"utf8"));else{var f=new XMLHttpRequest;f.open("GET",o,!1),f.send(null),f.readyState===4&&f.status===200&&(s=f.responseText)}}catch{}return JO[o]=s});function l3e(o,s){if(!o)return s;var f=o3e.dirname(o),d=/^\w+:\/\/[^\/]*/.exec(f),y=d?d[0]:"",x=f.slice(y.length);return y&&/^\/\w\:/.test(x)?(y+="/",y+o3e.resolve(f.slice(y.length),s).replace(/\\/g,"/")):y+o3e.resolve(f.slice(y.length),s)}t(l3e,"supportRelativeURL");function Wdr(o){var s;if(f3e())try{var f=new XMLHttpRequest;f.open("GET",o,!1),f.send(null),s=f.readyState===4?f.responseText:null;var d=f.getResponseHeader("SourceMap")||f.getResponseHeader("X-SourceMap");if(d)return d}catch{}s=_3e(o);for(var y=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg,x,P;P=y.exec(s);)x=P;return x?x[1]:null}t(Wdr,"retrieveSourceMapURL");var p3e=sue(CI);CI.push(function(o){var s=Wdr(o);if(!s)return null;var f;if(Bdr.test(s)){var d=s.slice(s.indexOf(",")+1);f=jdr(d,"base64").toString(),s=o}else s=l3e(o,s),f=_3e(s);return f?{url:s,map:f}:null});function d3e(o){var s=fG[o.source];if(!s){var f=p3e(o.source);f?(s=fG[o.source]={url:f.url,map:new Mdr(f.map)},s.map.sourcesContent&&s.map.sources.forEach(function(y,x){var P=s.map.sourcesContent[x];if(P){var F=l3e(s.url,y);JO[F]=P}})):s=fG[o.source]={url:null,map:null}}if(s&&s.map&&typeof s.map.originalPositionFor=="function"){var d=s.map.originalPositionFor(o);if(d.source!==null)return d.source=l3e(s.url,d.source),d}return o}t(d3e,"mapSourcePosition");function vpt(o){var s=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(o);if(s){var f=d3e({source:s[2],line:+s[3],column:s[4]-1});return"eval at "+s[1]+" ("+f.source+":"+f.line+":"+(f.column+1)+")"}return s=/^eval at ([^(]+) \((.+)\)$/.exec(o),s?"eval at "+s[1]+" ("+vpt(s[2])+")":o}t(vpt,"mapEvalOrigin");function qdr(){var o,s="";if(this.isNative())s="native";else{o=this.getScriptNameOrSourceURL(),!o&&this.isEval()&&(s=this.getEvalOrigin(),s+=", "),o?s+=o:s+="<anonymous>";var f=this.getLineNumber();if(f!=null){s+=":"+f;var d=this.getColumnNumber();d&&(s+=":"+d)}}var y="",x=this.getFunctionName(),P=!0,F=this.isConstructor(),J=!(this.isToplevel()||F);if(J){var G=this.getTypeName();G==="[object Object]"&&(G="null");var Se=this.getMethodName();x?(G&&x.indexOf(G)!=0&&(y+=G+"."),y+=x,Se&&x.indexOf("."+Se)!=x.length-Se.length-1&&(y+=" [as "+Se+"]")):y+=G+"."+(Se||"<anonymous>")}else F?y+="new "+(x||"<anonymous>"):x?y+=x:(y+=s,P=!1);return P&&(y+=" ("+s+")"),y}t(qdr,"CallSiteToString");function ypt(o){var s={};return Object.getOwnPropertyNames(Object.getPrototypeOf(o)).forEach(function(f){s[f]=/^(?:is|get)/.test(f)?function(){return o[f].call(o)}:o[f]}),s.toString=qdr,s}t(ypt,"cloneCallSite");function bpt(o,s){if(s===void 0&&(s={nextPosition:null,curPosition:null}),o.isNative())return s.curPosition=null,o;var f=o.getFileName()||o.getScriptNameOrSourceURL();if(f){var d=o.getLineNumber(),y=o.getColumnNumber()-1,x=/^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/,P=x.test(zdr())?0:62;d===1&&y>P&&!f3e()&&!o.isEval()&&(y-=P);var F=d3e({source:f,line:d,column:y});s.curPosition=F,o=ypt(o);var J=o.getFunctionName;return o.getFunctionName=function(){return s.nextPosition==null?J():s.nextPosition.name||J()},o.getFileName=function(){return F.source},o.getLineNumber=function(){return F.line},o.getColumnNumber=function(){return F.column+1},o.getScriptNameOrSourceURL=function(){return F.source},o}var G=o.isEval()&&o.getEvalOrigin();return G&&(G=vpt(G),o=ypt(o),o.getEvalOrigin=function(){return G}),o}t(bpt,"wrapCallSite");function Vdr(o,s){c3e&&(JO={},fG={});for(var f=o.name||"Error",d=o.message||"",y=f+": "+d,x={nextPosition:null,curPosition:null},P=[],F=s.length-1;F>=0;F--)P.push(`
|
|
109
109
|
at `+bpt(s[F],x)),x.nextPosition=x.curPosition;return x.curPosition=x.nextPosition=null,y+P.reverse().join("")}t(Vdr,"prepareStackTrace");function Spt(o){var s=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(o.stack);if(s){var f=s[1],d=+s[2],y=+s[3],x=JO[f];if(!x&&Hk&&Hk.existsSync(f))try{x=Hk.readFileSync(f,"utf8")}catch{x=""}if(x){var P=x.split(/(?:\r\n|\r|\n)/)[d-1];if(P)return f+":"+d+`
|
|
110
110
|
`+P+`
|
|
111
111
|
`+new Array(y).join(" ")+"^"}}return null}t(Spt,"getErrorSource");function Hdr(o){var s=Spt(o),f=$dr();f&&f._handle&&f._handle.setBlocking&&f._handle.setBlocking(!0),s&&(console.error(),console.error(s)),console.error(o.stack),Jdr(1)}t(Hdr,"printErrorAndExit");function Gdr(){var o=process.emit;process.emit=function(s){if(s==="uncaughtException"){var f=arguments[1]&&arguments[1].stack,d=this.listeners(s).length>0;if(f&&!d)return Hdr(arguments[1])}return o.apply(this,arguments)}}t(Gdr,"shimEmitUncaughtException");var Ydr=EI.slice(0),Kdr=CI.slice(0);WO.wrapCallSite=bpt;WO.getErrorSource=Spt;WO.mapSourcePosition=d3e;WO.retrieveSourceMap=p3e;WO.install=function(o){if(o=o||{},o.environment&&(uG=o.environment,["node","browser","auto"].indexOf(uG)===-1))throw new Error("environment "+uG+" was unknown. Available options are {auto, browser, node}");if(o.retrieveFile&&(o.overrideRetrieveFile&&(EI.length=0),EI.unshift(o.retrieveFile)),o.retrieveSourceMap&&(o.overrideRetrieveSourceMap&&(CI.length=0),CI.unshift(o.retrieveSourceMap)),o.hookRequire&&!f3e()){var s=mpt(u3e,"module"),f=s.prototype._compile;f.__sourceMapSupport||(s.prototype._compile=function(x,P){return JO[P]=x,fG[P]=void 0,f.call(this,x,P)},s.prototype._compile.__sourceMapSupport=!0)}if(c3e||(c3e="emptyCacheBetweenOperations"in o?o.emptyCacheBetweenOperations:!1),hpt||(hpt=!0,Error.prepareStackTrace=Vdr),!gpt){var d="handleUncaughtExceptions"in o?o.handleUncaughtExceptions:!0;try{var y=mpt(u3e,"worker_threads");y.isMainThread===!1&&(d=!1)}catch{}d&&Udr()&&(gpt=!0,Gdr())}};WO.resetRetrieveHandlers=function(){EI.length=0,CI.length=0,EI=Ydr.slice(0),CI=Kdr.slice(0),p3e=sue(CI),_3e=sue(EI)}});var b3e=or((o7r,oue)=>{var xpt={};(o=>{"use strict";var s=Object.defineProperty,f=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,y=Object.prototype.hasOwnProperty,x=t((e,r)=>{for(var i in r)s(e,i,{get:r[i],enumerable:!0})},"__export"),P=t((e,r,i,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let c of d(r))!y.call(e,c)&&c!==i&&s(e,c,{get:t(()=>r[c],"get"),enumerable:!(a=f(r,c))||a.enumerable});return e},"__copyProps"),F=t(e=>e,"__toCommonJS"),J={};x(J,{ANONYMOUS:t(()=>xre,"ANONYMOUS"),AccessFlags:t(()=>ppe,"AccessFlags"),AssertionLevel:t(()=>x_e,"AssertionLevel"),AssignmentDeclarationKind:t(()=>Tpe,"AssignmentDeclarationKind"),AssignmentKind:t(()=>Hme,"AssignmentKind"),Associativity:t(()=>the,"Associativity"),BreakpointResolver:t(()=>Sne,"BreakpointResolver"),BuilderFileEmit:t(()=>Z1e,"BuilderFileEmit"),BuilderProgramKind:t(()=>ave,"BuilderProgramKind"),BuilderState:t(()=>uh,"BuilderState"),CallHierarchy:t(()=>AD,"CallHierarchy"),CharacterCodes:t(()=>Ope,"CharacterCodes"),CheckFlags:t(()=>lpe,"CheckFlags"),CheckMode:t(()=>WQ,"CheckMode"),ClassificationType:t(()=>Ite,"ClassificationType"),ClassificationTypeNames:t(()=>cbe,"ClassificationTypeNames"),CommentDirectiveType:t(()=>G_e,"CommentDirectiveType"),Comparison:t(()=>de,"Comparison"),CompletionInfoFlags:t(()=>tbe,"CompletionInfoFlags"),CompletionTriggerKind:t(()=>Ate,"CompletionTriggerKind"),Completions:t(()=>LD,"Completions"),ContainerFlags:t(()=>Iye,"ContainerFlags"),ContextFlags:t(()=>tpe,"ContextFlags"),Debug:t(()=>L,"Debug"),DiagnosticCategory:t(()=>Gj,"DiagnosticCategory"),Diagnostics:t(()=>v,"Diagnostics"),DocumentHighlights:t(()=>WJ,"DocumentHighlights"),ElementFlags:t(()=>_pe,"ElementFlags"),EmitFlags:t(()=>PY,"EmitFlags"),EmitHint:t(()=>Mpe,"EmitHint"),EmitOnly:t(()=>K_e,"EmitOnly"),EndOfLineState:t(()=>ibe,"EndOfLineState"),ExitStatus:t(()=>X_e,"ExitStatus"),ExportKind:t(()=>eSe,"ExportKind"),Extension:t(()=>Fpe,"Extension"),ExternalEmitHelpers:t(()=>Rpe,"ExternalEmitHelpers"),FileIncludeKind:t(()=>vY,"FileIncludeKind"),FilePreprocessingDiagnosticsKind:t(()=>Y_e,"FilePreprocessingDiagnosticsKind"),FileSystemEntryKind:t(()=>Vpe,"FileSystemEntryKind"),FileWatcherEventKind:t(()=>Jpe,"FileWatcherEventKind"),FindAllReferences:t(()=>ec,"FindAllReferences"),FlattenLevel:t(()=>e1e,"FlattenLevel"),FlowFlags:t(()=>Hj,"FlowFlags"),ForegroundColorEscapeSequences:t(()=>$1e,"ForegroundColorEscapeSequences"),FunctionFlags:t(()=>Qme,"FunctionFlags"),GeneratedIdentifierFlags:t(()=>yY,"GeneratedIdentifierFlags"),GetLiteralTextFlags:t(()=>ume,"GetLiteralTextFlags"),GoToDefinition:t(()=>Z6,"GoToDefinition"),HighlightSpanKind:t(()=>Qve,"HighlightSpanKind"),IdentifierNameMap:t(()=>w6,"IdentifierNameMap"),ImportKind:t(()=>Qbe,"ImportKind"),ImportsNotUsedAsValues:t(()=>Dpe,"ImportsNotUsedAsValues"),IndentStyle:t(()=>ebe,"IndentStyle"),IndexFlags:t(()=>dpe,"IndexFlags"),IndexKind:t(()=>gpe,"IndexKind"),InferenceFlags:t(()=>bpe,"InferenceFlags"),InferencePriority:t(()=>vpe,"InferencePriority"),InlayHintKind:t(()=>Zve,"InlayHintKind"),InlayHints:t(()=>_ie,"InlayHints"),InternalEmitFlags:t(()=>Lpe,"InternalEmitFlags"),InternalNodeBuilderFlags:t(()=>npe,"InternalNodeBuilderFlags"),InternalSymbolName:t(()=>upe,"InternalSymbolName"),IntersectionFlags:t(()=>epe,"IntersectionFlags"),InvalidatedProjectKind:t(()=>Pve,"InvalidatedProjectKind"),JSDocParsingMode:t(()=>$pe,"JSDocParsingMode"),JsDoc:t(()=>g2,"JsDoc"),JsTyping:t(()=>Kb,"JsTyping"),JsxEmit:t(()=>wpe,"JsxEmit"),JsxFlags:t(()=>W_e,"JsxFlags"),JsxReferenceKind:t(()=>mpe,"JsxReferenceKind"),LanguageFeatureMinimumTarget:t(()=>mu,"LanguageFeatureMinimumTarget"),LanguageServiceMode:t(()=>Kve,"LanguageServiceMode"),LanguageVariant:t(()=>Npe,"LanguageVariant"),LexicalEnvironmentFlags:t(()=>Bpe,"LexicalEnvironmentFlags"),ListFormat:t(()=>Upe,"ListFormat"),LogLevel:t(()=>O_e,"LogLevel"),MapCode:t(()=>pie,"MapCode"),MemberOverrideStatus:t(()=>Z_e,"MemberOverrideStatus"),ModifierFlags:t(()=>hY,"ModifierFlags"),ModuleDetectionKind:t(()=>xpe,"ModuleDetectionKind"),ModuleInstanceState:t(()=>Aye,"ModuleInstanceState"),ModuleKind:t(()=>mA,"ModuleKind"),ModuleResolutionKind:t(()=>dA,"ModuleResolutionKind"),ModuleSpecifierEnding:t(()=>Xhe,"ModuleSpecifierEnding"),NavigateTo:t(()=>ESe,"NavigateTo"),NavigationBar:t(()=>kSe,"NavigationBar"),NewLineKind:t(()=>Ppe,"NewLineKind"),NodeBuilderFlags:t(()=>rpe,"NodeBuilderFlags"),NodeCheckFlags:t(()=>TY,"NodeCheckFlags"),NodeFactoryFlags:t(()=>kge,"NodeFactoryFlags"),NodeFlags:t(()=>mY,"NodeFlags"),NodeResolutionFeatures:t(()=>bye,"NodeResolutionFeatures"),ObjectFlags:t(()=>EY,"ObjectFlags"),OperationCanceledException:t(()=>QI,"OperationCanceledException"),OperatorPrecedence:t(()=>rhe,"OperatorPrecedence"),OrganizeImports:t(()=>y2,"OrganizeImports"),OrganizeImportsMode:t(()=>Pte,"OrganizeImportsMode"),OuterExpressionKinds:t(()=>jpe,"OuterExpressionKinds"),OutliningElementsCollector:t(()=>mie,"OutliningElementsCollector"),OutliningSpanKind:t(()=>rbe,"OutliningSpanKind"),OutputFileType:t(()=>nbe,"OutputFileType"),PackageJsonAutoImportPreference:t(()=>Yve,"PackageJsonAutoImportPreference"),PackageJsonDependencyGroup:t(()=>Gve,"PackageJsonDependencyGroup"),PatternMatchKind:t(()=>$re,"PatternMatchKind"),PollingInterval:t(()=>AY,"PollingInterval"),PollingWatchKind:t(()=>kpe,"PollingWatchKind"),PragmaKindFlags:t(()=>zpe,"PragmaKindFlags"),PredicateSemantics:t(()=>q_e,"PredicateSemantics"),PreparePasteEdits:t(()=>Aie,"PreparePasteEdits"),PrivateIdentifierKind:t(()=>Rge,"PrivateIdentifierKind"),ProcessLevel:t(()=>i1e,"ProcessLevel"),ProgramUpdateLevel:t(()=>M1e,"ProgramUpdateLevel"),QuotePreference:t(()=>Abe,"QuotePreference"),RegularExpressionFlags:t(()=>V_e,"RegularExpressionFlags"),RelationComparisonResult:t(()=>gY,"RelationComparisonResult"),Rename:t(()=>wW,"Rename"),ScriptElementKind:t(()=>abe,"ScriptElementKind"),ScriptElementKindModifier:t(()=>obe,"ScriptElementKindModifier"),ScriptKind:t(()=>kY,"ScriptKind"),ScriptSnapshot:t(()=>rJ,"ScriptSnapshot"),ScriptTarget:t(()=>Ape,"ScriptTarget"),SemanticClassificationFormat:t(()=>Xve,"SemanticClassificationFormat"),SemanticMeaning:t(()=>lbe,"SemanticMeaning"),SemicolonPreference:t(()=>Nte,"SemicolonPreference"),SignatureCheckMode:t(()=>qQ,"SignatureCheckMode"),SignatureFlags:t(()=>CY,"SignatureFlags"),SignatureHelp:t(()=>pR,"SignatureHelp"),SignatureInfo:t(()=>X1e,"SignatureInfo"),SignatureKind:t(()=>hpe,"SignatureKind"),SmartSelectionRange:t(()=>yie,"SmartSelectionRange"),SnippetKind:t(()=>DY,"SnippetKind"),StatisticType:t(()=>jve,"StatisticType"),StructureIsReused:t(()=>bY,"StructureIsReused"),SymbolAccessibility:t(()=>ape,"SymbolAccessibility"),SymbolDisplay:t(()=>pv,"SymbolDisplay"),SymbolDisplayPartKind:t(()=>iJ,"SymbolDisplayPartKind"),SymbolFlags:t(()=>SY,"SymbolFlags"),SymbolFormatFlags:t(()=>spe,"SymbolFormatFlags"),SyntaxKind:t(()=>dY,"SyntaxKind"),Ternary:t(()=>Spe,"Ternary"),ThrottledCancellationToken:t(()=>F2e,"ThrottledCancellationToken"),TokenClass:t(()=>sbe,"TokenClass"),TokenFlags:t(()=>H_e,"TokenFlags"),TransformFlags:t(()=>wY,"TransformFlags"),TypeFacts:t(()=>JQ,"TypeFacts"),TypeFlags:t(()=>xY,"TypeFlags"),TypeFormatFlags:t(()=>ipe,"TypeFormatFlags"),TypeMapKind:t(()=>ype,"TypeMapKind"),TypePredicateKind:t(()=>ope,"TypePredicateKind"),TypeReferenceSerializationKind:t(()=>cpe,"TypeReferenceSerializationKind"),UnionReduction:t(()=>Q_e,"UnionReduction"),UpToDateStatusType:t(()=>Tve,"UpToDateStatusType"),VarianceFlags:t(()=>fpe,"VarianceFlags"),Version:t(()=>Xm,"Version"),VersionRange:t(()=>Vj,"VersionRange"),WatchDirectoryFlags:t(()=>Ipe,"WatchDirectoryFlags"),WatchDirectoryKind:t(()=>Cpe,"WatchDirectoryKind"),WatchFileKind:t(()=>Epe,"WatchFileKind"),WatchLogLevel:t(()=>B1e,"WatchLogLevel"),WatchType:t(()=>xu,"WatchType"),accessPrivateIdentifier:t(()=>Qye,"accessPrivateIdentifier"),addEmitFlags:t(()=>Gh,"addEmitFlags"),addEmitHelper:t(()=>Xw,"addEmitHelper"),addEmitHelpers:t(()=>G0,"addEmitHelpers"),addInternalEmitFlags:t(()=>mC,"addInternalEmitFlags"),addNodeFactoryPatcher:t(()=>CFe,"addNodeFactoryPatcher"),addObjectAllocatorPatcher:t(()=>uFe,"addObjectAllocatorPatcher"),addRange:t(()=>Zn,"addRange"),addRelatedInfo:t(()=>ma,"addRelatedInfo"),addSyntheticLeadingComment:t(()=>sx,"addSyntheticLeadingComment"),addSyntheticTrailingComment:t(()=>_3,"addSyntheticTrailingComment"),addToSeen:t(()=>cm,"addToSeen"),advancedAsyncSuperHelper:t(()=>pz,"advancedAsyncSuperHelper"),affectsDeclarationPathOptionDeclarations:t(()=>J0e,"affectsDeclarationPathOptionDeclarations"),affectsEmitOptionDeclarations:t(()=>$0e,"affectsEmitOptionDeclarations"),allKeysStartWithDot:t(()=>o$,"allKeysStartWithDot"),altDirectorySeparator:t(()=>Zj,"altDirectorySeparator"),and:t(()=>Jj,"and"),append:t(()=>Kr,"append"),appendIfUnique:t(()=>Fy,"appendIfUnique"),arrayFrom:t(()=>Ps,"arrayFrom"),arrayIsEqualTo:t(()=>Qp,"arrayIsEqualTo"),arrayIsHomogeneous:t(()=>sge,"arrayIsHomogeneous"),arrayOf:t(()=>v_e,"arrayOf"),arrayReverseIterator:t(()=>GG,"arrayReverseIterator"),arrayToMap:t(()=>uA,"arrayToMap"),arrayToMultiMap:t(()=>T7,"arrayToMultiMap"),arrayToNumericMap:t(()=>S_e,"arrayToNumericMap"),assertType:t(()=>UOe,"assertType"),assign:t(()=>$E,"assign"),asyncSuperHelper:t(()=>_z,"asyncSuperHelper"),attachFileToDiagnostics:t(()=>$w,"attachFileToDiagnostics"),base64decode:t(()=>xhe,"base64decode"),base64encode:t(()=>The,"base64encode"),binarySearch:t(()=>cb,"binarySearch"),binarySearchKey:t(()=>aw,"binarySearchKey"),bindSourceFile:t(()=>Oye,"bindSourceFile"),breakIntoCharacterSpans:t(()=>hSe,"breakIntoCharacterSpans"),breakIntoWordSpans:t(()=>gSe,"breakIntoWordSpans"),buildLinkParts:t(()=>jbe,"buildLinkParts"),buildOpts:t(()=>B5,"buildOpts"),buildOverload:t(()=>fGe,"buildOverload"),bundlerModuleNameResolver:t(()=>Sye,"bundlerModuleNameResolver"),canBeConvertedToAsync:t(()=>Gre,"canBeConvertedToAsync"),canHaveDecorators:t(()=>mx,"canHaveDecorators"),canHaveExportModifier:t(()=>l5,"canHaveExportModifier"),canHaveFlowNode:t(()=>BA,"canHaveFlowNode"),canHaveIllegalDecorators:t(()=>ZZ,"canHaveIllegalDecorators"),canHaveIllegalModifiers:t(()=>T0e,"canHaveIllegalModifiers"),canHaveIllegalType:t(()=>XFe,"canHaveIllegalType"),canHaveIllegalTypeParameters:t(()=>S0e,"canHaveIllegalTypeParameters"),canHaveJSDoc:t(()=>NF,"canHaveJSDoc"),canHaveLocals:t(()=>$g,"canHaveLocals"),canHaveModifiers:t(()=>_m,"canHaveModifiers"),canHaveModuleSpecifier:t(()=>Wme,"canHaveModuleSpecifier"),canHaveSymbol:t(()=>eh,"canHaveSymbol"),canIncludeBindAndCheckDiagnostics:t(()=>r3,"canIncludeBindAndCheckDiagnostics"),canJsonReportNoInputFiles:t(()=>q5,"canJsonReportNoInputFiles"),canProduceDiagnostics:t(()=>tL,"canProduceDiagnostics"),canUsePropertyAccess:t(()=>sZ,"canUsePropertyAccess"),canWatchAffectingLocation:t(()=>dve,"canWatchAffectingLocation"),canWatchAtTypes:t(()=>pve,"canWatchAtTypes"),canWatchDirectoryOrFile:t(()=>Vee,"canWatchDirectoryOrFile"),canWatchDirectoryOrFilePath:t(()=>hL,"canWatchDirectoryOrFilePath"),cartesianProduct:t(()=>N_e,"cartesianProduct"),cast:t(()=>ga,"cast"),chainBundle:t(()=>lh,"chainBundle"),chainDiagnosticMessages:t(()=>qs,"chainDiagnosticMessages"),changeAnyExtension:t(()=>P7,"changeAnyExtension"),changeCompilerHostLikeToUseCache:t(()=>G3,"changeCompilerHostLikeToUseCache"),changeExtension:t(()=>Hy,"changeExtension"),changeFullExtension:t(()=>tB,"changeFullExtension"),changesAffectModuleResolution:t(()=>DB,"changesAffectModuleResolution"),changesAffectingProgramStructure:t(()=>rme,"changesAffectingProgramStructure"),characterCodeToRegularExpressionFlag:t(()=>zY,"characterCodeToRegularExpressionFlag"),childIsDecorated:t(()=>w4,"childIsDecorated"),classElementOrClassElementParameterIsDecorated:t(()=>UK,"classElementOrClassElementParameterIsDecorated"),classHasClassThisAssignment:t(()=>aee,"classHasClassThisAssignment"),classHasDeclaredOrExplicitlyAssignedName:t(()=>oee,"classHasDeclaredOrExplicitlyAssignedName"),classHasExplicitlyAssignedName:t(()=>b$,"classHasExplicitlyAssignedName"),classOrConstructorParameterIsDecorated:t(()=>Y1,"classOrConstructorParameterIsDecorated"),classicNameResolver:t(()=>Dye,"classicNameResolver"),classifier:t(()=>j2e,"classifier"),cleanExtendedConfigCache:t(()=>k$,"cleanExtendedConfigCache"),clear:t(()=>Fl,"clear"),clearMap:t(()=>z_,"clearMap"),clearSharedExtendedConfigFileWatcher:t(()=>See,"clearSharedExtendedConfigFileWatcher"),climbPastPropertyAccess:t(()=>oJ,"climbPastPropertyAccess"),clone:t(()=>T_e,"clone"),cloneCompilerOptions:t(()=>Xte,"cloneCompilerOptions"),closeFileWatcher:t(()=>Im,"closeFileWatcher"),closeFileWatcherOf:t(()=>Ud,"closeFileWatcherOf"),codefix:t(()=>Df,"codefix"),collapseTextChangeRangesAcrossMultipleVersions:t(()=>mde,"collapseTextChangeRangesAcrossMultipleVersions"),collectExternalModuleInfo:t(()=>ree,"collectExternalModuleInfo"),combine:t(()=>sw,"combine"),combinePaths:t(()=>ei,"combinePaths"),commandLineOptionOfCustomType:t(()=>V0e,"commandLineOptionOfCustomType"),commentPragmas:t(()=>Yj,"commentPragmas"),commonOptionsWithBuild:t(()=>Uz,"commonOptionsWithBuild"),compact:t(()=>b7,"compact"),compareBooleans:t(()=>AS,"compareBooleans"),compareDataObjects:t(()=>OX,"compareDataObjects"),compareDiagnostics:t(()=>Y4,"compareDiagnostics"),compareEmitHelpers:t(()=>jge,"compareEmitHelpers"),compareNumberOfDirectorySeparators:t(()=>a5,"compareNumberOfDirectorySeparators"),comparePaths:t(()=>Ry,"comparePaths"),comparePathsCaseInsensitive:t(()=>u7e,"comparePathsCaseInsensitive"),comparePathsCaseSensitive:t(()=>l7e,"comparePathsCaseSensitive"),comparePatternKeys:t(()=>RQ,"comparePatternKeys"),compareProperties:t(()=>w_e,"compareProperties"),compareStringsCaseInsensitive:t(()=>E7,"compareStringsCaseInsensitive"),compareStringsCaseInsensitiveEslintCompatible:t(()=>E_e,"compareStringsCaseInsensitiveEslintCompatible"),compareStringsCaseSensitive:t(()=>lf,"compareStringsCaseSensitive"),compareStringsCaseSensitiveUI:t(()=>C7,"compareStringsCaseSensitiveUI"),compareTextSpans:t(()=>zj,"compareTextSpans"),compareValues:t(()=>qo,"compareValues"),compilerOptionsAffectDeclarationPath:t(()=>qhe,"compilerOptionsAffectDeclarationPath"),compilerOptionsAffectEmit:t(()=>Whe,"compilerOptionsAffectEmit"),compilerOptionsAffectSemanticDiagnostics:t(()=>Jhe,"compilerOptionsAffectSemanticDiagnostics"),compilerOptionsDidYouMeanDiagnostics:t(()=>Wz,"compilerOptionsDidYouMeanDiagnostics"),compilerOptionsIndicateEsModules:t(()=>nre,"compilerOptionsIndicateEsModules"),computeCommonSourceDirectoryOfFilenames:t(()=>U1e,"computeCommonSourceDirectoryOfFilenames"),computeLineAndCharacterOfPosition:t(()=>yA,"computeLineAndCharacterOfPosition"),computeLineOfPosition:t(()=>i4,"computeLineOfPosition"),computeLineStarts:t(()=>mw,"computeLineStarts"),computePositionOfLineAndCharacter:t(()=>sB,"computePositionOfLineAndCharacter"),computeSignatureWithDiagnostics:t(()=>Uee,"computeSignatureWithDiagnostics"),computeSuggestionDiagnostics:t(()=>qre,"computeSuggestionDiagnostics"),computedOptions:t(()=>K4,"computedOptions"),concatenate:t(()=>fs,"concatenate"),concatenateDiagnosticMessageChains:t(()=>Rhe,"concatenateDiagnosticMessageChains"),consumesNodeCoreModules:t(()=>LJ,"consumesNodeCoreModules"),contains:t(()=>bi,"contains"),containsIgnoredPath:t(()=>s3,"containsIgnoredPath"),containsObjectRestOrSpread:t(()=>L5,"containsObjectRestOrSpread"),containsParseError:t(()=>Cw,"containsParseError"),containsPath:t(()=>wd,"containsPath"),convertCompilerOptionsForTelemetry:t(()=>cye,"convertCompilerOptionsForTelemetry"),convertCompilerOptionsFromJson:t(()=>sLe,"convertCompilerOptionsFromJson"),convertJsonOption:t(()=>PC,"convertJsonOption"),convertToBase64:t(()=>She,"convertToBase64"),convertToJson:t(()=>$5,"convertToJson"),convertToObject:t(()=>tye,"convertToObject"),convertToOptionsWithAbsolutePaths:t(()=>Gz,"convertToOptionsWithAbsolutePaths"),convertToRelativePath:t(()=>r4,"convertToRelativePath"),convertToTSConfig:t(()=>vQ,"convertToTSConfig"),convertTypeAcquisitionFromJson:t(()=>aLe,"convertTypeAcquisitionFromJson"),copyComments:t(()=>jC,"copyComments"),copyEntries:t(()=>PB,"copyEntries"),copyLeadingComments:t(()=>W6,"copyLeadingComments"),copyProperties:t(()=>eY,"copyProperties"),copyTrailingAsLeadingComments:t(()=>jL,"copyTrailingAsLeadingComments"),copyTrailingComments:t(()=>u8,"copyTrailingComments"),couldStartTrivia:t(()=>tde,"couldStartTrivia"),countWhere:t(()=>S_,"countWhere"),createAbstractBuilder:t(()=>_9e,"createAbstractBuilder"),createAccessorPropertyBackingField:t(()=>tQ,"createAccessorPropertyBackingField"),createAccessorPropertyGetRedirector:t(()=>A0e,"createAccessorPropertyGetRedirector"),createAccessorPropertySetRedirector:t(()=>N0e,"createAccessorPropertySetRedirector"),createBaseNodeFactory:t(()=>Sge,"createBaseNodeFactory"),createBinaryExpressionTrampoline:t(()=>Lz,"createBinaryExpressionTrampoline"),createBuilderProgram:t(()=>zee,"createBuilderProgram"),createBuilderProgramUsingIncrementalBuildInfo:t(()=>uve,"createBuilderProgramUsingIncrementalBuildInfo"),createBuilderStatusReporter:t(()=>G$,"createBuilderStatusReporter"),createCacheableExportInfoMap:t(()=>Fre,"createCacheableExportInfoMap"),createCachedDirectoryStructureHost:t(()=>E$,"createCachedDirectoryStructureHost"),createClassifier:t(()=>JMe,"createClassifier"),createCommentDirectivesMap:t(()=>cme,"createCommentDirectivesMap"),createCompilerDiagnostic:t(()=>wc,"createCompilerDiagnostic"),createCompilerDiagnosticForInvalidCustomType:t(()=>H0e,"createCompilerDiagnosticForInvalidCustomType"),createCompilerDiagnosticFromMessageChain:t(()=>OU,"createCompilerDiagnosticFromMessageChain"),createCompilerHost:t(()=>z1e,"createCompilerHost"),createCompilerHostFromProgramHost:t(()=>ote,"createCompilerHostFromProgramHost"),createCompilerHostWorker:t(()=>w$,"createCompilerHostWorker"),createDetachedDiagnostic:t(()=>zw,"createDetachedDiagnostic"),createDiagnosticCollection:t(()=>B4,"createDiagnosticCollection"),createDiagnosticForFileFromMessageChain:t(()=>LK,"createDiagnosticForFileFromMessageChain"),createDiagnosticForNode:t(()=>Sn,"createDiagnosticForNode"),createDiagnosticForNodeArray:t(()=>NA,"createDiagnosticForNodeArray"),createDiagnosticForNodeArrayFromMessageChain:t(()=>oF,"createDiagnosticForNodeArrayFromMessageChain"),createDiagnosticForNodeFromMessageChain:t(()=>j0,"createDiagnosticForNodeFromMessageChain"),createDiagnosticForNodeInSourceFile:t(()=>Pd,"createDiagnosticForNodeInSourceFile"),createDiagnosticForRange:t(()=>Tme,"createDiagnosticForRange"),createDiagnosticMessageChainFromDiagnostic:t(()=>Sme,"createDiagnosticMessageChainFromDiagnostic"),createDiagnosticReporter:t(()=>TD,"createDiagnosticReporter"),createDocumentPositionMapper:t(()=>Gye,"createDocumentPositionMapper"),createDocumentRegistry:t(()=>sSe,"createDocumentRegistry"),createDocumentRegistryInternal:t(()=>Bre,"createDocumentRegistryInternal"),createEmitAndSemanticDiagnosticsBuilderProgram:t(()=>qee,"createEmitAndSemanticDiagnosticsBuilderProgram"),createEmitHelperFactory:t(()=>Mge,"createEmitHelperFactory"),createEmptyExports:t(()=>w5,"createEmptyExports"),createEvaluator:t(()=>mge,"createEvaluator"),createExpressionForJsxElement:t(()=>m0e,"createExpressionForJsxElement"),createExpressionForJsxFragment:t(()=>h0e,"createExpressionForJsxFragment"),createExpressionForObjectLiteralElementLike:t(()=>g0e,"createExpressionForObjectLiteralElementLike"),createExpressionForPropertyName:t(()=>VZ,"createExpressionForPropertyName"),createExpressionFromEntityName:t(()=>D5,"createExpressionFromEntityName"),createExternalHelpersImportDeclarationIfNeeded:t(()=>YZ,"createExternalHelpersImportDeclarationIfNeeded"),createFileDiagnostic:t(()=>au,"createFileDiagnostic"),createFileDiagnosticFromMessageChain:t(()=>BB,"createFileDiagnosticFromMessageChain"),createFlowNode:t(()=>Xg,"createFlowNode"),createForOfBindingStatement:t(()=>qZ,"createForOfBindingStatement"),createFutureSourceFile:t(()=>zJ,"createFutureSourceFile"),createGetCanonicalFileName:t(()=>Hu,"createGetCanonicalFileName"),createGetIsolatedDeclarationErrors:t(()=>w1e,"createGetIsolatedDeclarationErrors"),createGetSourceFile:t(()=>kee,"createGetSourceFile"),createGetSymbolAccessibilityDiagnosticForNode:t(()=>a2,"createGetSymbolAccessibilityDiagnosticForNode"),createGetSymbolAccessibilityDiagnosticForNodeName:t(()=>k1e,"createGetSymbolAccessibilityDiagnosticForNodeName"),createGetSymbolWalker:t(()=>Fye,"createGetSymbolWalker"),createIncrementalCompilerHost:t(()=>H$,"createIncrementalCompilerHost"),createIncrementalProgram:t(()=>Sve,"createIncrementalProgram"),createJsxFactoryExpression:t(()=>WZ,"createJsxFactoryExpression"),createLanguageService:t(()=>L2e,"createLanguageService"),createLanguageServiceSourceFile:t(()=>aW,"createLanguageServiceSourceFile"),createMemberAccessForPropertyName:t(()=>wC,"createMemberAccessForPropertyName"),createModeAwareCache:t(()=>T6,"createModeAwareCache"),createModeAwareCacheKey:t(()=>F3,"createModeAwareCacheKey"),createModeMismatchDetails:t(()=>vK,"createModeMismatchDetails"),createModuleNotFoundChain:t(()=>NB,"createModuleNotFoundChain"),createModuleResolutionCache:t(()=>x6,"createModuleResolutionCache"),createModuleResolutionLoader:t(()=>Iee,"createModuleResolutionLoader"),createModuleResolutionLoaderUsingGlobalCache:t(()=>yve,"createModuleResolutionLoaderUsingGlobalCache"),createModuleSpecifierResolutionHost:t(()=>u2,"createModuleSpecifierResolutionHost"),createMultiMap:t(()=>tm,"createMultiMap"),createNameResolver:t(()=>uZ,"createNameResolver"),createNodeConverters:t(()=>Ege,"createNodeConverters"),createNodeFactory:t(()=>p5,"createNodeFactory"),createOptionNameMap:t(()=>$z,"createOptionNameMap"),createOverload:t(()=>Iie,"createOverload"),createPackageJsonImportFilter:t(()=>q6,"createPackageJsonImportFilter"),createPackageJsonInfo:t(()=>kre,"createPackageJsonInfo"),createParenthesizerRules:t(()=>Tge,"createParenthesizerRules"),createPatternMatcher:t(()=>uSe,"createPatternMatcher"),createPrinter:t(()=>Gb,"createPrinter"),createPrinterWithDefaults:t(()=>L1e,"createPrinterWithDefaults"),createPrinterWithRemoveComments:t(()=>vx,"createPrinterWithRemoveComments"),createPrinterWithRemoveCommentsNeverAsciiEscape:t(()=>R1e,"createPrinterWithRemoveCommentsNeverAsciiEscape"),createPrinterWithRemoveCommentsOmitTrailingSemicolon:t(()=>bee,"createPrinterWithRemoveCommentsOmitTrailingSemicolon"),createProgram:t(()=>pL,"createProgram"),createProgramDiagnostics:t(()=>Y1e,"createProgramDiagnostics"),createProgramHost:t(()=>cte,"createProgramHost"),createPropertyNameNodeForIdentifierOrLiteral:t(()=>QU,"createPropertyNameNodeForIdentifierOrLiteral"),createQueue:t(()=>x7,"createQueue"),createRange:t(()=>Id,"createRange"),createRedirectedBuilderProgram:t(()=>Wee,"createRedirectedBuilderProgram"),createResolutionCache:t(()=>Gee,"createResolutionCache"),createRuntimeTypeSerializer:t(()=>l1e,"createRuntimeTypeSerializer"),createScanner:t(()=>I0,"createScanner"),createSemanticDiagnosticsBuilderProgram:t(()=>f9e,"createSemanticDiagnosticsBuilderProgram"),createSet:t(()=>tY,"createSet"),createSolutionBuilder:t(()=>kve,"createSolutionBuilder"),createSolutionBuilderHost:t(()=>Eve,"createSolutionBuilderHost"),createSolutionBuilderWithWatch:t(()=>wve,"createSolutionBuilderWithWatch"),createSolutionBuilderWithWatchHost:t(()=>Cve,"createSolutionBuilderWithWatchHost"),createSortedArray:t(()=>HG,"createSortedArray"),createSourceFile:t(()=>pD,"createSourceFile"),createSourceMapGenerator:t(()=>Jye,"createSourceMapGenerator"),createSourceMapSource:t(()=>PFe,"createSourceMapSource"),createSuperAccessVariableStatement:t(()=>T$,"createSuperAccessVariableStatement"),createSymbolTable:t(()=>ya,"createSymbolTable"),createSymlinkCache:t(()=>JX,"createSymlinkCache"),createSyntacticTypeNodeBuilder:t(()=>qve,"createSyntacticTypeNodeBuilder"),createSystemWatchFunctions:t(()=>Hpe,"createSystemWatchFunctions"),createTextChange:t(()=>AL,"createTextChange"),createTextChangeFromStartLength:t(()=>bJ,"createTextChangeFromStartLength"),createTextChangeRange:t(()=>B7,"createTextChangeRange"),createTextRangeFromNode:t(()=>ere,"createTextRangeFromNode"),createTextRangeFromSpan:t(()=>vJ,"createTextRangeFromSpan"),createTextSpan:t(()=>Gu,"createTextSpan"),createTextSpanFromBounds:t(()=>ul,"createTextSpanFromBounds"),createTextSpanFromNode:t(()=>l_,"createTextSpanFromNode"),createTextSpanFromRange:t(()=>uv,"createTextSpanFromRange"),createTextSpanFromStringLiteralLikeContent:t(()=>Qte,"createTextSpanFromStringLiteralLikeContent"),createTextWriter:t(()=>JF,"createTextWriter"),createTokenRange:t(()=>DX,"createTokenRange"),createTypeChecker:t(()=>zye,"createTypeChecker"),createTypeReferenceDirectiveResolutionCache:t(()=>i$,"createTypeReferenceDirectiveResolutionCache"),createTypeReferenceResolutionLoader:t(()=>A$,"createTypeReferenceResolutionLoader"),createWatchCompilerHost:t(()=>T9e,"createWatchCompilerHost"),createWatchCompilerHostOfConfigFile:t(()=>lte,"createWatchCompilerHostOfConfigFile"),createWatchCompilerHostOfFilesAndCompilerOptions:t(()=>ute,"createWatchCompilerHostOfFilesAndCompilerOptions"),createWatchFactory:t(()=>ate,"createWatchFactory"),createWatchHost:t(()=>ste,"createWatchHost"),createWatchProgram:t(()=>fte,"createWatchProgram"),createWatchStatusReporter:t(()=>Yee,"createWatchStatusReporter"),createWriteFileMeasuringIO:t(()=>wee,"createWriteFileMeasuringIO"),declarationNameToString:t(()=>zo,"declarationNameToString"),decodeMappings:t(()=>QQ,"decodeMappings"),decodedTextSpanIntersectsWith:t(()=>j7,"decodedTextSpanIntersectsWith"),deduplicate:t(()=>AT,"deduplicate"),defaultInitCompilerOptions:t(()=>_Q,"defaultInitCompilerOptions"),defaultMaximumTruncationLength:t(()=>b4,"defaultMaximumTruncationLength"),diagnosticCategoryName:t(()=>WE,"diagnosticCategoryName"),diagnosticToString:t(()=>Cx,"diagnosticToString"),diagnosticsEqualityComparer:t(()=>FU,"diagnosticsEqualityComparer"),directoryProbablyExists:t(()=>nh,"directoryProbablyExists"),directorySeparator:t(()=>Xo,"directorySeparator"),displayPart:t(()=>W_,"displayPart"),displayPartsToString:t(()=>XL,"displayPartsToString"),disposeEmitNodes:t(()=>vZ,"disposeEmitNodes"),documentSpansEqual:t(()=>ure,"documentSpansEqual"),dumpTracingLegend:t(()=>J_e,"dumpTracingLegend"),elementAt:t(()=>ob,"elementAt"),elideNodes:t(()=>P0e,"elideNodes"),emitDetachedComments:t(()=>fhe,"emitDetachedComments"),emitFiles:t(()=>yee,"emitFiles"),emitFilesAndReportErrors:t(()=>J$,"emitFilesAndReportErrors"),emitFilesAndReportErrorsAndGetExitStatus:t(()=>ite,"emitFilesAndReportErrorsAndGetExitStatus"),emitModuleKindIsNonNodeESM:t(()=>r5,"emitModuleKindIsNonNodeESM"),emitNewLineBeforeLeadingCommentOfPosition:t(()=>uhe,"emitNewLineBeforeLeadingCommentOfPosition"),emitResolverSkipsTypeChecking:t(()=>gee,"emitResolverSkipsTypeChecking"),emitSkippedWithNoDiagnostics:t(()=>Lee,"emitSkippedWithNoDiagnostics"),emptyArray:t(()=>ae,"emptyArray"),emptyFileSystemEntries:t(()=>XX,"emptyFileSystemEntries"),emptyMap:t(()=>Ke,"emptyMap"),emptyOptions:t(()=>pm,"emptyOptions"),endsWith:t(()=>sc,"endsWith"),ensurePathIsNonModuleName:t(()=>qE,"ensurePathIsNonModuleName"),ensureScriptKind:t(()=>WU,"ensureScriptKind"),ensureTrailingDirectorySeparator:t(()=>iu,"ensureTrailingDirectorySeparator"),entityNameToString:t(()=>op,"entityNameToString"),enumerateInsertsAndDeletes:t(()=>qj,"enumerateInsertsAndDeletes"),equalOwnProperties:t(()=>b_e,"equalOwnProperties"),equateStringsCaseInsensitive:t(()=>_b,"equateStringsCaseInsensitive"),equateStringsCaseSensitive:t(()=>OT,"equateStringsCaseSensitive"),equateValues:t(()=>fb,"equateValues"),escapeJsxAttributeString:t(()=>uX,"escapeJsxAttributeString"),escapeLeadingUnderscores:t(()=>Rc,"escapeLeadingUnderscores"),escapeNonAsciiString:t(()=>_U,"escapeNonAsciiString"),escapeSnippetText:t(()=>ix,"escapeSnippetText"),escapeString:t(()=>Hg,"escapeString"),escapeTemplateSubstitution:t(()=>cX,"escapeTemplateSubstitution"),evaluatorResult:t(()=>ou,"evaluatorResult"),every:t(()=>Er,"every"),exclusivelyPrefixedNodeCoreModules:t(()=>az,"exclusivelyPrefixedNodeCoreModules"),executeCommandLine:t(()=>tMe,"executeCommandLine"),expandPreOrPostfixIncrementOrDecrementExpression:t(()=>Az,"expandPreOrPostfixIncrementOrDecrementExpression"),explainFiles:t(()=>Qee,"explainFiles"),explainIfFileIsRedirectAndImpliedFormat:t(()=>ete,"explainIfFileIsRedirectAndImpliedFormat"),exportAssignmentIsAlias:t(()=>LF,"exportAssignmentIsAlias"),expressionResultIsUnused:t(()=>oge,"expressionResultIsUnused"),extend:t(()=>Uj,"extend"),extensionFromPath:t(()=>e3,"extensionFromPath"),extensionIsTS:t(()=>YU,"extensionIsTS"),extensionsNotSupportingExtensionlessResolution:t(()=>GU,"extensionsNotSupportingExtensionlessResolution"),externalHelpersModuleNameText:t(()=>Cb,"externalHelpersModuleNameText"),factory:t(()=>B,"factory"),fileExtensionIs:t(()=>Sc,"fileExtensionIs"),fileExtensionIsOneOf:t(()=>ll,"fileExtensionIsOneOf"),fileIncludeReasonToDiagnostics:t(()=>nte,"fileIncludeReasonToDiagnostics"),fileShouldUseJavaScriptRequire:t(()=>Ore,"fileShouldUseJavaScriptRequire"),filter:t(()=>Ln,"filter"),filterMutate:t(()=>zE,"filterMutate"),filterSemanticDiagnostics:t(()=>F$,"filterSemanticDiagnostics"),find:t(()=>vr,"find"),findAncestor:t(()=>Nr,"findAncestor"),findBestPatternMatch:t(()=>oY,"findBestPatternMatch"),findChildOfKind:t(()=>Do,"findChildOfKind"),findComputedPropertyNameCacheAssignment:t(()=>Rz,"findComputedPropertyNameCacheAssignment"),findConfigFile:t(()=>Eee,"findConfigFile"),findConstructorDeclaration:t(()=>_5,"findConstructorDeclaration"),findContainingList:t(()=>_J,"findContainingList"),findDiagnosticForNode:t(()=>Kbe,"findDiagnosticForNode"),findFirstNonJsxWhitespaceToken:t(()=>gbe,"findFirstNonJsxWhitespaceToken"),findIndex:t(()=>Ni,"findIndex"),findLast:t(()=>ls,"findLast"),findLastIndex:t(()=>nc,"findLastIndex"),findListItemInfo:t(()=>hbe,"findListItemInfo"),findModifier:t(()=>z6,"findModifier"),findNextToken:t(()=>xx,"findNextToken"),findPackageJson:t(()=>Ybe,"findPackageJson"),findPackageJsons:t(()=>Cre,"findPackageJsons"),findPrecedingMatchingToken:t(()=>gJ,"findPrecedingMatchingToken"),findPrecedingToken:t(()=>Kl,"findPrecedingToken"),findSuperStatementIndexPath:t(()=>h$,"findSuperStatementIndexPath"),findTokenOnLeftOfPosition:t(()=>n8,"findTokenOnLeftOfPosition"),findUseStrictPrologue:t(()=>GZ,"findUseStrictPrologue"),first:t(()=>Ga,"first"),firstDefined:t(()=>jt,"firstDefined"),firstDefinedIterator:t(()=>Pr,"firstDefinedIterator"),firstIterator:t(()=>KG,"firstIterator"),firstOrOnly:t(()=>Pre,"firstOrOnly"),firstOrUndefined:t(()=>Ll,"firstOrUndefined"),firstOrUndefinedIterator:t(()=>S7,"firstOrUndefinedIterator"),fixupCompilerOptions:t(()=>Yre,"fixupCompilerOptions"),flatMap:t(()=>Hs,"flatMap"),flatMapIterator:t(()=>w0,"flatMapIterator"),flatMapToMutable:t(()=>Oh,"flatMapToMutable"),flatten:t(()=>Zp,"flatten"),flattenCommaList:t(()=>I0e,"flattenCommaList"),flattenDestructuringAssignment:t(()=>OC,"flattenDestructuringAssignment"),flattenDestructuringBinding:t(()=>yx,"flattenDestructuringBinding"),flattenDiagnosticMessageText:t(()=>ng,"flattenDiagnosticMessageText"),forEach:t(()=>Fe,"forEach"),forEachAncestor:t(()=>nme,"forEachAncestor"),forEachAncestorDirectory:t(()=>n4,"forEachAncestorDirectory"),forEachAncestorDirectoryStoppingAtGlobalCache:t(()=>Kg,"forEachAncestorDirectoryStoppingAtGlobalCache"),forEachChild:t(()=>Gs,"forEachChild"),forEachChildRecursively:t(()=>_D,"forEachChildRecursively"),forEachDynamicImportOrRequireCall:t(()=>oz,"forEachDynamicImportOrRequireCall"),forEachEmittedFile:t(()=>pee,"forEachEmittedFile"),forEachEnclosingBlockScopeContainer:t(()=>yme,"forEachEnclosingBlockScopeContainer"),forEachEntry:t(()=>su,"forEachEntry"),forEachExternalModuleToImportFrom:t(()=>Rre,"forEachExternalModuleToImportFrom"),forEachImportClauseDeclaration:t(()=>qme,"forEachImportClauseDeclaration"),forEachKey:t(()=>R0,"forEachKey"),forEachLeadingCommentRange:t(()=>I7,"forEachLeadingCommentRange"),forEachNameInAccessChainWalkingLeft:t(()=>Nhe,"forEachNameInAccessChainWalkingLeft"),forEachNameOfDefaultExport:t(()=>JJ,"forEachNameOfDefaultExport"),forEachOptionsSyntaxByName:t(()=>hZ,"forEachOptionsSyntaxByName"),forEachProjectReference:t(()=>u3,"forEachProjectReference"),forEachPropertyAssignment:t(()=>FA,"forEachPropertyAssignment"),forEachResolvedProjectReference:t(()=>dZ,"forEachResolvedProjectReference"),forEachReturnStatement:t(()=>Pb,"forEachReturnStatement"),forEachRight:t(()=>Gt,"forEachRight"),forEachTrailingCommentRange:t(()=>O7,"forEachTrailingCommentRange"),forEachTsConfigPropArray:t(()=>_F,"forEachTsConfigPropArray"),forEachUnique:t(()=>_re,"forEachUnique"),forEachYieldExpression:t(()=>kme,"forEachYieldExpression"),formatColorAndReset:t(()=>bx,"formatColorAndReset"),formatDiagnostic:t(()=>Dee,"formatDiagnostic"),formatDiagnostics:t(()=>BRe,"formatDiagnostics"),formatDiagnosticsWithColorAndContext:t(()=>q1e,"formatDiagnosticsWithColorAndContext"),formatGeneratedName:t(()=>t2,"formatGeneratedName"),formatGeneratedNamePart:t(()=>y6,"formatGeneratedNamePart"),formatLocation:t(()=>Pee,"formatLocation"),formatMessage:t(()=>Jw,"formatMessage"),formatStringFromArgs:t(()=>J0,"formatStringFromArgs"),formatting:t(()=>$l,"formatting"),generateDjb2Hash:t(()=>e4,"generateDjb2Hash"),generateTSConfig:t(()=>nye,"generateTSConfig"),getAdjustedReferenceLocation:t(()=>qte,"getAdjustedReferenceLocation"),getAdjustedRenameLocation:t(()=>dJ,"getAdjustedRenameLocation"),getAliasDeclarationFromName:t(()=>ZK,"getAliasDeclarationFromName"),getAllAccessorDeclarations:t(()=>QT,"getAllAccessorDeclarations"),getAllDecoratorsOfClass:t(()=>iee,"getAllDecoratorsOfClass"),getAllDecoratorsOfClassElement:t(()=>y$,"getAllDecoratorsOfClassElement"),getAllJSDocTags:t(()=>_B,"getAllJSDocTags"),getAllJSDocTagsOfKind:t(()=>O7e,"getAllJSDocTagsOfKind"),getAllKeys:t(()=>ROe,"getAllKeys"),getAllProjectOutputs:t(()=>x$,"getAllProjectOutputs"),getAllSuperTypeNodes:t(()=>F4,"getAllSuperTypeNodes"),getAllowImportingTsExtensions:t(()=>jhe,"getAllowImportingTsExtensions"),getAllowJSCompilerOption:t(()=>Rb,"getAllowJSCompilerOption"),getAllowSyntheticDefaultImports:t(()=>Ww,"getAllowSyntheticDefaultImports"),getAncestor:t(()=>zS,"getAncestor"),getAnyExtensionFromPath:t(()=>_w,"getAnyExtensionFromPath"),getAreDeclarationMapsEnabled:t(()=>LU,"getAreDeclarationMapsEnabled"),getAssignedExpandoInitializer:t(()=>Dw,"getAssignedExpandoInitializer"),getAssignedName:t(()=>lB,"getAssignedName"),getAssignmentDeclarationKind:t(()=>fl,"getAssignmentDeclarationKind"),getAssignmentDeclarationPropertyAccessKind:t(()=>CF,"getAssignmentDeclarationPropertyAccessKind"),getAssignmentTargetKind:t(()=>Ab,"getAssignmentTargetKind"),getAutomaticTypeDirectiveNames:t(()=>r$,"getAutomaticTypeDirectiveNames"),getBaseFileName:t(()=>Rl,"getBaseFileName"),getBinaryOperatorPrecedence:t(()=>UF,"getBinaryOperatorPrecedence"),getBuildInfo:t(()=>vee,"getBuildInfo"),getBuildInfoFileVersionMap:t(()=>Jee,"getBuildInfoFileVersionMap"),getBuildInfoText:t(()=>O1e,"getBuildInfoText"),getBuildOrderFromAnyBuildOrder:t(()=>yL,"getBuildOrderFromAnyBuildOrder"),getBuilderCreationParameters:t(()=>j$,"getBuilderCreationParameters"),getBuilderFileEmit:t(()=>Yb,"getBuilderFileEmit"),getCanonicalDiagnostic:t(()=>xme,"getCanonicalDiagnostic"),getCheckFlags:t(()=>Jc,"getCheckFlags"),getClassExtendsHeritageElement:t(()=>YT,"getClassExtendsHeritageElement"),getClassLikeDeclarationOfSymbol:t(()=>Vy,"getClassLikeDeclarationOfSymbol"),getCombinedLocalAndExportSymbolFlags:t(()=>GA,"getCombinedLocalAndExportSymbolFlags"),getCombinedModifierFlags:t(()=>IS,"getCombinedModifierFlags"),getCombinedNodeFlags:t(()=>jy,"getCombinedNodeFlags"),getCombinedNodeFlagsAlwaysIncludeJSDoc:t(()=>HY,"getCombinedNodeFlagsAlwaysIncludeJSDoc"),getCommentRange:t(()=>Yh,"getCommentRange"),getCommonSourceDirectory:t(()=>H3,"getCommonSourceDirectory"),getCommonSourceDirectoryOfConfig:t(()=>FC,"getCommonSourceDirectoryOfConfig"),getCompilerOptionValue:t(()=>jU,"getCompilerOptionValue"),getCompilerOptionsDiffValue:t(()=>rye,"getCompilerOptionsDiffValue"),getConditions:t(()=>qb,"getConditions"),getConfigFileParsingDiagnostics:t(()=>Sx,"getConfigFileParsingDiagnostics"),getConstantValue:t(()=>Pge,"getConstantValue"),getContainerFlags:t(()=>jQ,"getContainerFlags"),getContainerNode:t(()=>MC,"getContainerNode"),getContainingClass:t(()=>Mu,"getContainingClass"),getContainingClassExcludingClassDecorators:t(()=>HB,"getContainingClassExcludingClassDecorators"),getContainingClassStaticBlock:t(()=>Fme,"getContainingClassStaticBlock"),getContainingFunction:t(()=>td,"getContainingFunction"),getContainingFunctionDeclaration:t(()=>Ome,"getContainingFunctionDeclaration"),getContainingFunctionOrClassStaticBlock:t(()=>VB,"getContainingFunctionOrClassStaticBlock"),getContainingNodeArray:t(()=>cge,"getContainingNodeArray"),getContainingObjectLiteralElement:t(()=>ZL,"getContainingObjectLiteralElement"),getContextualTypeFromParent:t(()=>PJ,"getContextualTypeFromParent"),getContextualTypeFromParentOrAncestorTypeNode:t(()=>pJ,"getContextualTypeFromParentOrAncestorTypeNode"),getDeclarationDiagnostics:t(()=>D1e,"getDeclarationDiagnostics"),getDeclarationEmitExtensionForPath:t(()=>mU,"getDeclarationEmitExtensionForPath"),getDeclarationEmitOutputFilePath:t(()=>ahe,"getDeclarationEmitOutputFilePath"),getDeclarationEmitOutputFilePathWorker:t(()=>dU,"getDeclarationEmitOutputFilePathWorker"),getDeclarationFileExtension:t(()=>jz,"getDeclarationFileExtension"),getDeclarationFromName:t(()=>O4,"getDeclarationFromName"),getDeclarationModifierFlagsFromSymbol:t(()=>Fd,"getDeclarationModifierFlagsFromSymbol"),getDeclarationOfKind:t(()=>dc,"getDeclarationOfKind"),getDeclarationsOfKind:t(()=>tme,"getDeclarationsOfKind"),getDeclaredExpandoInitializer:t(()=>A4,"getDeclaredExpandoInitializer"),getDecorators:t(()=>gb,"getDecorators"),getDefaultCompilerOptions:t(()=>sW,"getDefaultCompilerOptions"),getDefaultFormatCodeSettings:t(()=>nJ,"getDefaultFormatCodeSettings"),getDefaultLibFileName:t(()=>L7,"getDefaultLibFileName"),getDefaultLibFilePath:t(()=>R2e,"getDefaultLibFilePath"),getDefaultLikeExportInfo:t(()=>$J,"getDefaultLikeExportInfo"),getDefaultLikeExportNameFromDeclaration:t(()=>Are,"getDefaultLikeExportNameFromDeclaration"),getDefaultResolutionModeForFileWorker:t(()=>O$,"getDefaultResolutionModeForFileWorker"),getDiagnosticText:t(()=>P_,"getDiagnosticText"),getDiagnosticsWithinSpan:t(()=>Xbe,"getDiagnosticsWithinSpan"),getDirectoryPath:t(()=>_i,"getDirectoryPath"),getDirectoryToWatchFailedLookupLocation:t(()=>Hee,"getDirectoryToWatchFailedLookupLocation"),getDirectoryToWatchFailedLookupLocationFromTypeRoot:t(()=>hve,"getDirectoryToWatchFailedLookupLocationFromTypeRoot"),getDocumentPositionMapper:t(()=>Wre,"getDocumentPositionMapper"),getDocumentSpansEqualityComparer:t(()=>fre,"getDocumentSpansEqualityComparer"),getESModuleInterop:t(()=>W0,"getESModuleInterop"),getEditsForFileRename:t(()=>oSe,"getEditsForFileRename"),getEffectiveBaseTypeNode:t(()=>$h,"getEffectiveBaseTypeNode"),getEffectiveConstraintOfTypeParameter:t(()=>TA,"getEffectiveConstraintOfTypeParameter"),getEffectiveContainerForJSDocTemplateTag:t(()=>sU,"getEffectiveContainerForJSDocTemplateTag"),getEffectiveImplementsTypeNodes:t(()=>zA,"getEffectiveImplementsTypeNodes"),getEffectiveInitializer:t(()=>TF,"getEffectiveInitializer"),getEffectiveJSDocHost:t(()=>US,"getEffectiveJSDocHost"),getEffectiveModifierFlags:t(()=>zf,"getEffectiveModifierFlags"),getEffectiveModifierFlagsAlwaysIncludeJSDoc:t(()=>mhe,"getEffectiveModifierFlagsAlwaysIncludeJSDoc"),getEffectiveModifierFlagsNoCache:t(()=>hhe,"getEffectiveModifierFlagsNoCache"),getEffectiveReturnTypeNode:t(()=>Rp,"getEffectiveReturnTypeNode"),getEffectiveSetAccessorTypeAnnotationNode:t(()=>yX,"getEffectiveSetAccessorTypeAnnotationNode"),getEffectiveTypeAnnotationNode:t(()=>Ml,"getEffectiveTypeAnnotationNode"),getEffectiveTypeParameterDeclarations:t(()=>vb,"getEffectiveTypeParameterDeclarations"),getEffectiveTypeRoots:t(()=>O3,"getEffectiveTypeRoots"),getElementOrPropertyAccessArgumentExpressionOrName:t(()=>iU,"getElementOrPropertyAccessArgumentExpressionOrName"),getElementOrPropertyAccessName:t(()=>zy,"getElementOrPropertyAccessName"),getElementsOfBindingOrAssignmentPattern:t(()=>g6,"getElementsOfBindingOrAssignmentPattern"),getEmitDeclarations:t(()=>$_,"getEmitDeclarations"),getEmitFlags:t(()=>Ya,"getEmitFlags"),getEmitHelpers:t(()=>bZ,"getEmitHelpers"),getEmitModuleDetectionKind:t(()=>Bhe,"getEmitModuleDetectionKind"),getEmitModuleFormatOfFileWorker:t(()=>X3,"getEmitModuleFormatOfFileWorker"),getEmitModuleKind:t(()=>$f,"getEmitModuleKind"),getEmitModuleResolutionKind:t(()=>xf,"getEmitModuleResolutionKind"),getEmitScriptTarget:t(()=>Ja,"getEmitScriptTarget"),getEmitStandardClassFields:t(()=>zX,"getEmitStandardClassFields"),getEnclosingBlockScopeContainer:t(()=>th,"getEnclosingBlockScopeContainer"),getEnclosingContainer:t(()=>jB,"getEnclosingContainer"),getEncodedSemanticClassifications:t(()=>Mre,"getEncodedSemanticClassifications"),getEncodedSyntacticClassifications:t(()=>jre,"getEncodedSyntacticClassifications"),getEndLinePosition:t(()=>rF,"getEndLinePosition"),getEntityNameFromTypeNode:t(()=>mF,"getEntityNameFromTypeNode"),getEntrypointsFromPackageJsonInfo:t(()=>OQ,"getEntrypointsFromPackageJsonInfo"),getErrorCountForSummary:t(()=>z$,"getErrorCountForSummary"),getErrorSpanForNode:t(()=>tC,"getErrorSpanForNode"),getErrorSummaryText:t(()=>Xee,"getErrorSummaryText"),getEscapedTextOfIdentifierOrLiteral:t(()=>M4,"getEscapedTextOfIdentifierOrLiteral"),getEscapedTextOfJsxAttributeName:t(()=>c3,"getEscapedTextOfJsxAttributeName"),getEscapedTextOfJsxNamespacedName:t(()=>Gw,"getEscapedTextOfJsxNamespacedName"),getExpandoInitializer:t(()=>jS,"getExpandoInitializer"),getExportAssignmentExpression:t(()=>QK,"getExportAssignmentExpression"),getExportInfoMap:t(()=>WL,"getExportInfoMap"),getExportNeedsImportStarHelper:t(()=>Yye,"getExportNeedsImportStarHelper"),getExpressionAssociativity:t(()=>aX,"getExpressionAssociativity"),getExpressionPrecedence:t(()=>j4,"getExpressionPrecedence"),getExternalHelpersModuleName:t(()=>A5,"getExternalHelpersModuleName"),getExternalModuleImportEqualsDeclarationExpression:t(()=>D4,"getExternalModuleImportEqualsDeclarationExpression"),getExternalModuleName:t(()=>Aw,"getExternalModuleName"),getExternalModuleNameFromDeclaration:t(()=>ihe,"getExternalModuleNameFromDeclaration"),getExternalModuleNameFromPath:t(()=>pX,"getExternalModuleNameFromPath"),getExternalModuleNameLiteral:t(()=>fD,"getExternalModuleNameLiteral"),getExternalModuleRequireArgument:t(()=>$K,"getExternalModuleRequireArgument"),getFallbackOptions:t(()=>uL,"getFallbackOptions"),getFileEmitOutput:t(()=>K1e,"getFileEmitOutput"),getFileMatcherPatterns:t(()=>JU,"getFileMatcherPatterns"),getFileNamesFromConfigSpecs:t(()=>N3,"getFileNamesFromConfigSpecs"),getFileWatcherEventKind:t(()=>OY,"getFileWatcherEventKind"),getFilesInErrorForSummary:t(()=>$$,"getFilesInErrorForSummary"),getFirstConstructorWithBody:t(()=>z0,"getFirstConstructorWithBody"),getFirstIdentifier:t(()=>n_,"getFirstIdentifier"),getFirstNonSpaceCharacterPosition:t(()=>zbe,"getFirstNonSpaceCharacterPosition"),getFirstProjectOutput:t(()=>hee,"getFirstProjectOutput"),getFixableErrorSpanExpression:t(()=>wre,"getFixableErrorSpanExpression"),getFormatCodeSettingsForWriting:t(()=>BJ,"getFormatCodeSettingsForWriting"),getFullWidth:t(()=>eF,"getFullWidth"),getFunctionFlags:t(()=>gl,"getFunctionFlags"),getHeritageClause:t(()=>RF,"getHeritageClause"),getHostSignatureFromJSDoc:t(()=>BS,"getHostSignatureFromJSDoc"),getIdentifierAutoGenerate:t(()=>IFe,"getIdentifierAutoGenerate"),getIdentifierGeneratedImportReference:t(()=>Lge,"getIdentifierGeneratedImportReference"),getIdentifierTypeArguments:t(()=>hC,"getIdentifierTypeArguments"),getImmediatelyInvokedFunctionExpression:t(()=>WT,"getImmediatelyInvokedFunctionExpression"),getImpliedNodeFormatForEmitWorker:t(()=>LC,"getImpliedNodeFormatForEmitWorker"),getImpliedNodeFormatForFile:t(()=>_L,"getImpliedNodeFormatForFile"),getImpliedNodeFormatForFileWorker:t(()=>I$,"getImpliedNodeFormatForFileWorker"),getImportNeedsImportDefaultHelper:t(()=>tee,"getImportNeedsImportDefaultHelper"),getImportNeedsImportStarHelper:t(()=>d$,"getImportNeedsImportStarHelper"),getIndentString:t(()=>pU,"getIndentString"),getInferredLibraryNameResolveFrom:t(()=>N$,"getInferredLibraryNameResolveFrom"),getInitializedVariables:t(()=>V4,"getInitializedVariables"),getInitializerOfBinaryExpression:t(()=>VK,"getInitializerOfBinaryExpression"),getInitializerOfBindingOrAssignmentElement:t(()=>I5,"getInitializerOfBindingOrAssignmentElement"),getInterfaceBaseTypeNodes:t(()=>L4,"getInterfaceBaseTypeNodes"),getInternalEmitFlags:t(()=>Am,"getInternalEmitFlags"),getInvokedExpression:t(()=>KB,"getInvokedExpression"),getIsFileExcluded:t(()=>rSe,"getIsFileExcluded"),getIsolatedModules:t(()=>lm,"getIsolatedModules"),getJSDocAugmentsTag:t(()=>Cde,"getJSDocAugmentsTag"),getJSDocClassTag:t(()=>KY,"getJSDocClassTag"),getJSDocCommentRanges:t(()=>MK,"getJSDocCommentRanges"),getJSDocCommentsAndTags:t(()=>HK,"getJSDocCommentsAndTags"),getJSDocDeprecatedTag:t(()=>XY,"getJSDocDeprecatedTag"),getJSDocDeprecatedTagNoCache:t(()=>Ide,"getJSDocDeprecatedTagNoCache"),getJSDocEnumTag:t(()=>ZY,"getJSDocEnumTag"),getJSDocHost:t(()=>HT,"getJSDocHost"),getJSDocImplementsTags:t(()=>kde,"getJSDocImplementsTags"),getJSDocOverloadTags:t(()=>YK,"getJSDocOverloadTags"),getJSDocOverrideTagNoCache:t(()=>Nde,"getJSDocOverrideTagNoCache"),getJSDocParameterTags:t(()=>SA,"getJSDocParameterTags"),getJSDocParameterTagsNoCache:t(()=>Sde,"getJSDocParameterTagsNoCache"),getJSDocPrivateTag:t(()=>P7e,"getJSDocPrivateTag"),getJSDocPrivateTagNoCache:t(()=>Dde,"getJSDocPrivateTagNoCache"),getJSDocProtectedTag:t(()=>A7e,"getJSDocProtectedTag"),getJSDocProtectedTagNoCache:t(()=>Pde,"getJSDocProtectedTagNoCache"),getJSDocPublicTag:t(()=>D7e,"getJSDocPublicTag"),getJSDocPublicTagNoCache:t(()=>wde,"getJSDocPublicTagNoCache"),getJSDocReadonlyTag:t(()=>N7e,"getJSDocReadonlyTag"),getJSDocReadonlyTagNoCache:t(()=>Ade,"getJSDocReadonlyTagNoCache"),getJSDocReturnTag:t(()=>Ode,"getJSDocReturnTag"),getJSDocReturnType:t(()=>z7,"getJSDocReturnType"),getJSDocRoot:t(()=>UA,"getJSDocRoot"),getJSDocSatisfiesExpressionType:t(()=>oZ,"getJSDocSatisfiesExpressionType"),getJSDocSatisfiesTag:t(()=>QY,"getJSDocSatisfiesTag"),getJSDocTags:t(()=>FS,"getJSDocTags"),getJSDocTemplateTag:t(()=>I7e,"getJSDocTemplateTag"),getJSDocThisTag:t(()=>uB,"getJSDocThisTag"),getJSDocType:t(()=>yb,"getJSDocType"),getJSDocTypeAliasName:t(()=>XZ,"getJSDocTypeAliasName"),getJSDocTypeAssertionType:t(()=>m6,"getJSDocTypeAssertionType"),getJSDocTypeParameterDeclarations:t(()=>bU,"getJSDocTypeParameterDeclarations"),getJSDocTypeParameterTags:t(()=>Tde,"getJSDocTypeParameterTags"),getJSDocTypeParameterTagsNoCache:t(()=>xde,"getJSDocTypeParameterTagsNoCache"),getJSDocTypeTag:t(()=>OS,"getJSDocTypeTag"),getJSXImplicitImportBase:t(()=>n5,"getJSXImplicitImportBase"),getJSXRuntimeImport:t(()=>UU,"getJSXRuntimeImport"),getJSXTransformEnabled:t(()=>BU,"getJSXTransformEnabled"),getKeyForCompilerOptions:t(()=>DQ,"getKeyForCompilerOptions"),getLanguageVariant:t(()=>XF,"getLanguageVariant"),getLastChild:t(()=>FX,"getLastChild"),getLeadingCommentRanges:t(()=>N0,"getLeadingCommentRanges"),getLeadingCommentRangesOfNode:t(()=>RK,"getLeadingCommentRangesOfNode"),getLeftmostAccessExpression:t(()=>YA,"getLeftmostAccessExpression"),getLeftmostExpression:t(()=>KA,"getLeftmostExpression"),getLibFileNameFromLibReference:t(()=>pZ,"getLibFileNameFromLibReference"),getLibNameFromLibReference:t(()=>_Z,"getLibNameFromLibReference"),getLibraryNameFromLibFileName:t(()=>Oee,"getLibraryNameFromLibFileName"),getLineAndCharacterOfPosition:t(()=>pa,"getLineAndCharacterOfPosition"),getLineInfo:t(()=>ZQ,"getLineInfo"),getLineOfLocalPosition:t(()=>U4,"getLineOfLocalPosition"),getLineStartPositionForPosition:t(()=>dm,"getLineStartPositionForPosition"),getLineStarts:t(()=>P0,"getLineStarts"),getLinesBetweenPositionAndNextNonWhitespaceCharacter:t(()=>Dhe,"getLinesBetweenPositionAndNextNonWhitespaceCharacter"),getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:t(()=>whe,"getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter"),getLinesBetweenPositions:t(()=>s4,"getLinesBetweenPositions"),getLinesBetweenRangeEndAndRangeStart:t(()=>PX,"getLinesBetweenRangeEndAndRangeStart"),getLinesBetweenRangeEndPositions:t(()=>cFe,"getLinesBetweenRangeEndPositions"),getLiteralText:t(()=>fme,"getLiteralText"),getLocalNameForExternalImport:t(()=>h6,"getLocalNameForExternalImport"),getLocalSymbolForExportDefault:t(()=>W4,"getLocalSymbolForExportDefault"),getLocaleSpecificMessage:t(()=>Js,"getLocaleSpecificMessage"),getLocaleTimeString:t(()=>gL,"getLocaleTimeString"),getMappedContextSpan:t(()=>pre,"getMappedContextSpan"),getMappedDocumentSpan:t(()=>kJ,"getMappedDocumentSpan"),getMappedLocation:t(()=>o8,"getMappedLocation"),getMatchedFileSpec:t(()=>tte,"getMatchedFileSpec"),getMatchedIncludeSpec:t(()=>rte,"getMatchedIncludeSpec"),getMeaningFromDeclaration:t(()=>sJ,"getMeaningFromDeclaration"),getMeaningFromLocation:t(()=>RC,"getMeaningFromLocation"),getMembersOfDeclaration:t(()=>wme,"getMembersOfDeclaration"),getModeForFileReference:t(()=>V1e,"getModeForFileReference"),getModeForResolutionAtIndex:t(()=>qRe,"getModeForResolutionAtIndex"),getModeForUsageLocation:t(()=>Nee,"getModeForUsageLocation"),getModifiedTime:t(()=>fw,"getModifiedTime"),getModifiers:t(()=>LT,"getModifiers"),getModuleInstanceState:t(()=>Xy,"getModuleInstanceState"),getModuleNameStringLiteralAt:t(()=>dL,"getModuleNameStringLiteralAt"),getModuleSpecifierEndingPreference:t(()=>Zhe,"getModuleSpecifierEndingPreference"),getModuleSpecifierResolverHost:t(()=>ire,"getModuleSpecifierResolverHost"),getNameForExportedSymbol:t(()=>RJ,"getNameForExportedSymbol"),getNameFromImportAttribute:t(()=>nz,"getNameFromImportAttribute"),getNameFromIndexInfo:t(()=>vme,"getNameFromIndexInfo"),getNameFromPropertyName:t(()=>IL,"getNameFromPropertyName"),getNameOfAccessExpression:t(()=>RX,"getNameOfAccessExpression"),getNameOfCompilerOptionValue:t(()=>bQ,"getNameOfCompilerOptionValue"),getNameOfDeclaration:t(()=>Ls,"getNameOfDeclaration"),getNameOfExpando:t(()=>JK,"getNameOfExpando"),getNameOfJSDocTypedef:t(()=>bde,"getNameOfJSDocTypedef"),getNameOfScriptTarget:t(()=>MU,"getNameOfScriptTarget"),getNameOrArgument:t(()=>EF,"getNameOrArgument"),getNameTable:t(()=>bne,"getNameTable"),getNamespaceDeclarationNode:t(()=>jA,"getNamespaceDeclarationNode"),getNewLineCharacter:t(()=>Z1,"getNewLineCharacter"),getNewLineKind:t(()=>JL,"getNewLineKind"),getNewLineOrDefaultFromHost:t(()=>Qy,"getNewLineOrDefaultFromHost"),getNewTargetContainer:t(()=>Rme,"getNewTargetContainer"),getNextJSDocCommentLocation:t(()=>GK,"getNextJSDocCommentLocation"),getNodeChildren:t(()=>$Z,"getNodeChildren"),getNodeForGeneratedName:t(()=>F5,"getNodeForGeneratedName"),getNodeId:t(()=>so,"getNodeId"),getNodeKind:t(()=>Tx,"getNodeKind"),getNodeModifiers:t(()=>i8,"getNodeModifiers"),getNodeModulePathParts:t(()=>ez,"getNodeModulePathParts"),getNonAssignedNameOfDeclaration:t(()=>cB,"getNonAssignedNameOfDeclaration"),getNonAssignmentOperatorForCompoundAssignment:t(()=>z3,"getNonAssignmentOperatorForCompoundAssignment"),getNonAugmentationDeclaration:t(()=>PK,"getNonAugmentationDeclaration"),getNonDecoratorTokenPosOfNode:t(()=>xK,"getNonDecoratorTokenPosOfNode"),getNonIncrementalBuildInfoRoots:t(()=>fve,"getNonIncrementalBuildInfoRoots"),getNonModifierTokenPosOfNode:t(()=>lme,"getNonModifierTokenPosOfNode"),getNormalizedAbsolutePath:t(()=>Ss,"getNormalizedAbsolutePath"),getNormalizedAbsolutePathWithoutRoot:t(()=>MY,"getNormalizedAbsolutePathWithoutRoot"),getNormalizedPathComponents:t(()=>eB,"getNormalizedPathComponents"),getObjectFlags:t(()=>Gn,"getObjectFlags"),getOperatorAssociativity:t(()=>oX,"getOperatorAssociativity"),getOperatorPrecedence:t(()=>BF,"getOperatorPrecedence"),getOptionFromName:t(()=>dQ,"getOptionFromName"),getOptionsForLibraryResolution:t(()=>PQ,"getOptionsForLibraryResolution"),getOptionsNameMap:t(()=>b6,"getOptionsNameMap"),getOptionsSyntaxByArrayElementValue:t(()=>mZ,"getOptionsSyntaxByArrayElementValue"),getOptionsSyntaxByValue:t(()=>bge,"getOptionsSyntaxByValue"),getOrCreateEmitNode:t(()=>pf,"getOrCreateEmitNode"),getOrUpdate:t(()=>PT,"getOrUpdate"),getOriginalNode:t(()=>Tc,"getOriginalNode"),getOriginalNodeId:t(()=>c_,"getOriginalNodeId"),getOutputDeclarationFileName:t(()=>P6,"getOutputDeclarationFileName"),getOutputDeclarationFileNameWorker:t(()=>dee,"getOutputDeclarationFileNameWorker"),getOutputExtension:t(()=>oL,"getOutputExtension"),getOutputFileNames:t(()=>MRe,"getOutputFileNames"),getOutputJSFileNameWorker:t(()=>mee,"getOutputJSFileNameWorker"),getOutputPathsFor:t(()=>V3,"getOutputPathsFor"),getOwnEmitOutputFilePath:t(()=>she,"getOwnEmitOutputFilePath"),getOwnKeys:t(()=>Fh,"getOwnKeys"),getOwnValues:t(()=>ow,"getOwnValues"),getPackageJsonTypesVersionsPaths:t(()=>t$,"getPackageJsonTypesVersionsPaths"),getPackageNameFromTypesPackageName:t(()=>M3,"getPackageNameFromTypesPackageName"),getPackageScopeForPath:t(()=>R3,"getPackageScopeForPath"),getParameterSymbolFromJSDoc:t(()=>IF,"getParameterSymbolFromJSDoc"),getParentNodeInSpan:t(()=>FL,"getParentNodeInSpan"),getParseTreeNode:t(()=>zs,"getParseTreeNode"),getParsedCommandLineOfConfigFile:t(()=>U5,"getParsedCommandLineOfConfigFile"),getPathComponents:t(()=>uf,"getPathComponents"),getPathFromPathComponents:t(()=>NS,"getPathFromPathComponents"),getPathUpdater:t(()=>zre,"getPathUpdater"),getPathsBasePath:t(()=>hU,"getPathsBasePath"),getPatternFromSpec:t(()=>VX,"getPatternFromSpec"),getPendingEmitKindWithSeen:t(()=>M$,"getPendingEmitKindWithSeen"),getPositionOfLineAndCharacter:t(()=>A7,"getPositionOfLineAndCharacter"),getPossibleGenericSignatures:t(()=>Hte,"getPossibleGenericSignatures"),getPossibleOriginalInputExtensionForExtension:t(()=>dX,"getPossibleOriginalInputExtensionForExtension"),getPossibleOriginalInputPathWithoutChangingExt:t(()=>mX,"getPossibleOriginalInputPathWithoutChangingExt"),getPossibleTypeArgumentsInfo:t(()=>Gte,"getPossibleTypeArgumentsInfo"),getPreEmitDiagnostics:t(()=>jRe,"getPreEmitDiagnostics"),getPrecedingNonSpaceCharacterPosition:t(()=>wJ,"getPrecedingNonSpaceCharacterPosition"),getPrivateIdentifier:t(()=>see,"getPrivateIdentifier"),getProperties:t(()=>nee,"getProperties"),getProperty:t(()=>Bj,"getProperty"),getPropertyAssignmentAliasLikeExpression:t(()=>Zme,"getPropertyAssignmentAliasLikeExpression"),getPropertyNameForPropertyNameNode:t(()=>lC,"getPropertyNameForPropertyNameNode"),getPropertyNameFromType:t(()=>Rd,"getPropertyNameFromType"),getPropertyNameOfBindingOrAssignmentElement:t(()=>KZ,"getPropertyNameOfBindingOrAssignmentElement"),getPropertySymbolFromBindingElement:t(()=>CJ,"getPropertySymbolFromBindingElement"),getPropertySymbolsFromContextualType:t(()=>oW,"getPropertySymbolsFromContextualType"),getQuoteFromPreference:t(()=>are,"getQuoteFromPreference"),getQuotePreference:t(()=>mp,"getQuotePreference"),getRangesWhere:t(()=>VG,"getRangesWhere"),getRefactorContextSpan:t(()=>kD,"getRefactorContextSpan"),getReferencedFileLocation:t(()=>K3,"getReferencedFileLocation"),getRegexFromPattern:t(()=>Q1,"getRegexFromPattern"),getRegularExpressionForWildcard:t(()=>X4,"getRegularExpressionForWildcard"),getRegularExpressionsForWildcards:t(()=>zU,"getRegularExpressionsForWildcards"),getRelativePathFromDirectory:t(()=>ed,"getRelativePathFromDirectory"),getRelativePathFromFile:t(()=>gA,"getRelativePathFromFile"),getRelativePathToDirectoryOrUrl:t(()=>dw,"getRelativePathToDirectoryOrUrl"),getRenameLocation:t(()=>ML,"getRenameLocation"),getReplacementSpanForContextToken:t(()=>Zte,"getReplacementSpanForContextToken"),getResolutionDiagnostic:t(()=>Mee,"getResolutionDiagnostic"),getResolutionModeOverride:t(()=>A6,"getResolutionModeOverride"),getResolveJsonModule:t(()=>tx,"getResolveJsonModule"),getResolvePackageJsonExports:t(()=>QF,"getResolvePackageJsonExports"),getResolvePackageJsonImports:t(()=>e5,"getResolvePackageJsonImports"),getResolvedExternalModuleName:t(()=>_X,"getResolvedExternalModuleName"),getResolvedModuleFromResolution:t(()=>Ew,"getResolvedModuleFromResolution"),getResolvedTypeReferenceDirectiveFromResolution:t(()=>AB,"getResolvedTypeReferenceDirectiveFromResolution"),getRestIndicatorOfBindingOrAssignmentElement:t(()=>Oz,"getRestIndicatorOfBindingOrAssignmentElement"),getRestParameterElementType:t(()=>jK,"getRestParameterElementType"),getRightMostAssignedExpression:t(()=>xF,"getRightMostAssignedExpression"),getRootDeclaration:t(()=>Wh,"getRootDeclaration"),getRootDirectoryOfResolutionCache:t(()=>gve,"getRootDirectoryOfResolutionCache"),getRootLength:t(()=>Zm,"getRootLength"),getScriptKind:t(()=>gre,"getScriptKind"),getScriptKindFromFileName:t(()=>qU,"getScriptKindFromFileName"),getScriptTargetFeatures:t(()=>EK,"getScriptTargetFeatures"),getSelectedEffectiveModifierFlags:t(()=>Rw,"getSelectedEffectiveModifierFlags"),getSelectedSyntacticModifierFlags:t(()=>phe,"getSelectedSyntacticModifierFlags"),getSemanticClassifications:t(()=>nSe,"getSemanticClassifications"),getSemanticJsxChildren:t(()=>JA,"getSemanticJsxChildren"),getSetAccessorTypeAnnotationNode:t(()=>che,"getSetAccessorTypeAnnotationNode"),getSetAccessorValueParameter:t(()=>z4,"getSetAccessorValueParameter"),getSetExternalModuleIndicator:t(()=>ZF,"getSetExternalModuleIndicator"),getShebang:t(()=>aB,"getShebang"),getSingleVariableOfVariableStatement:t(()=>Ow,"getSingleVariableOfVariableStatement"),getSnapshotText:t(()=>CD,"getSnapshotText"),getSnippetElement:t(()=>SZ,"getSnippetElement"),getSourceFileOfModule:t(()=>tF,"getSourceFileOfModule"),getSourceFileOfNode:t(()=>Hr,"getSourceFileOfNode"),getSourceFilePathInNewDir:t(()=>yU,"getSourceFilePathInNewDir"),getSourceFileVersionAsHashFromText:t(()=>W$,"getSourceFileVersionAsHashFromText"),getSourceFilesToEmit:t(()=>gU,"getSourceFilesToEmit"),getSourceMapRange:t(()=>tv,"getSourceMapRange"),getSourceMapper:t(()=>vSe,"getSourceMapper"),getSourceTextOfNodeFromSourceFile:t(()=>UT,"getSourceTextOfNodeFromSourceFile"),getSpanOfTokenAtPosition:t(()=>Bh,"getSpanOfTokenAtPosition"),getSpellingSuggestion:t(()=>FT,"getSpellingSuggestion"),getStartPositionOfLine:t(()=>kb,"getStartPositionOfLine"),getStartPositionOfRange:t(()=>q4,"getStartPositionOfRange"),getStartsOnNewLine:t(()=>f3,"getStartsOnNewLine"),getStaticPropertiesAndClassStaticBlock:t(()=>g$,"getStaticPropertiesAndClassStaticBlock"),getStrictOptionValue:t(()=>_f,"getStrictOptionValue"),getStringComparer:t(()=>_A,"getStringComparer"),getSubPatternFromSpec:t(()=>$U,"getSubPatternFromSpec"),getSuperCallFromStatement:t(()=>m$,"getSuperCallFromStatement"),getSuperContainer:t(()=>pF,"getSuperContainer"),getSupportedCodeFixes:t(()=>yne,"getSupportedCodeFixes"),getSupportedExtensions:t(()=>Z4,"getSupportedExtensions"),getSupportedExtensionsWithJsonIfResolveJsonModule:t(()=>s5,"getSupportedExtensionsWithJsonIfResolveJsonModule"),getSwitchedType:t(()=>Tre,"getSwitchedType"),getSymbolId:t(()=>Da,"getSymbolId"),getSymbolNameForPrivateIdentifier:t(()=>MF,"getSymbolNameForPrivateIdentifier"),getSymbolTarget:t(()=>yre,"getSymbolTarget"),getSyntacticClassifications:t(()=>iSe,"getSyntacticClassifications"),getSyntacticModifierFlags:t(()=>K1,"getSyntacticModifierFlags"),getSyntacticModifierFlagsNoCache:t(()=>SX,"getSyntacticModifierFlagsNoCache"),getSynthesizedDeepClone:t(()=>yo,"getSynthesizedDeepClone"),getSynthesizedDeepCloneWithReplacements:t(()=>RL,"getSynthesizedDeepCloneWithReplacements"),getSynthesizedDeepClones:t(()=>Ex,"getSynthesizedDeepClones"),getSynthesizedDeepClonesWithReplacements:t(()=>vre,"getSynthesizedDeepClonesWithReplacements"),getSyntheticLeadingComments:t(()=>r6,"getSyntheticLeadingComments"),getSyntheticTrailingComments:t(()=>g5,"getSyntheticTrailingComments"),getTargetLabel:t(()=>cJ,"getTargetLabel"),getTargetOfBindingOrAssignmentElement:t(()=>Jb,"getTargetOfBindingOrAssignmentElement"),getTemporaryModuleResolutionState:t(()=>L3,"getTemporaryModuleResolutionState"),getTextOfConstantValue:t(()=>_me,"getTextOfConstantValue"),getTextOfIdentifierOrLiteral:t(()=>Nd,"getTextOfIdentifierOrLiteral"),getTextOfJSDocComment:t(()=>$7,"getTextOfJSDocComment"),getTextOfJsxAttributeName:t(()=>f5,"getTextOfJsxAttributeName"),getTextOfJsxNamespacedName:t(()=>l3,"getTextOfJsxNamespacedName"),getTextOfNode:t(()=>kc,"getTextOfNode"),getTextOfNodeFromSourceText:t(()=>T4,"getTextOfNodeFromSourceText"),getTextOfPropertyName:t(()=>ww,"getTextOfPropertyName"),getThisContainer:t(()=>Uf,"getThisContainer"),getThisParameter:t(()=>XT,"getThisParameter"),getTokenAtPosition:t(()=>ji,"getTokenAtPosition"),getTokenPosOfNode:t(()=>wb,"getTokenPosOfNode"),getTokenSourceMapRange:t(()=>AFe,"getTokenSourceMapRange"),getTouchingPropertyName:t(()=>A_,"getTouchingPropertyName"),getTouchingToken:t(()=>B6,"getTouchingToken"),getTrailingCommentRanges:t(()=>hb,"getTrailingCommentRanges"),getTrailingSemicolonDeferringWriter:t(()=>fX,"getTrailingSemicolonDeferringWriter"),getTransformers:t(()=>A1e,"getTransformers"),getTsBuildInfoEmitOutputFilePath:t(()=>o2,"getTsBuildInfoEmitOutputFilePath"),getTsConfigObjectLiteralExpression:t(()=>k4,"getTsConfigObjectLiteralExpression"),getTsConfigPropArrayElementValue:t(()=>qB,"getTsConfigPropArrayElementValue"),getTypeAnnotationNode:t(()=>lhe,"getTypeAnnotationNode"),getTypeArgumentOrTypeParameterList:t(()=>Ebe,"getTypeArgumentOrTypeParameterList"),getTypeKeywordOfTypeOnlyImport:t(()=>lre,"getTypeKeywordOfTypeOnlyImport"),getTypeNode:t(()=>Oge,"getTypeNode"),getTypeNodeIfAccessible:t(()=>_8,"getTypeNodeIfAccessible"),getTypeParameterFromJsDoc:t(()=>Vme,"getTypeParameterFromJsDoc"),getTypeParameterOwner:t(()=>E7e,"getTypeParameterOwner"),getTypesPackageName:t(()=>c$,"getTypesPackageName"),getUILocale:t(()=>C_e,"getUILocale"),getUniqueName:t(()=>BC,"getUniqueName"),getUniqueSymbolId:t(()=>Ube,"getUniqueSymbolId"),getUseDefineForClassFields:t(()=>t5,"getUseDefineForClassFields"),getWatchErrorSummaryDiagnosticMessage:t(()=>Kee,"getWatchErrorSummaryDiagnosticMessage"),getWatchFactory:t(()=>xee,"getWatchFactory"),group:t(()=>fA,"group"),groupBy:t(()=>QG,"groupBy"),guessIndentation:t(()=>Qde,"guessIndentation"),handleNoEmitOptions:t(()=>Ree,"handleNoEmitOptions"),handleWatchOptionsConfigDirTemplateSubstitution:t(()=>Yz,"handleWatchOptionsConfigDirTemplateSubstitution"),hasAbstractModifier:t(()=>ex,"hasAbstractModifier"),hasAccessorModifier:t(()=>qh,"hasAccessorModifier"),hasAmbientModifier:t(()=>bX,"hasAmbientModifier"),hasChangesInResolutions:t(()=>bK,"hasChangesInResolutions"),hasContextSensitiveParameters:t(()=>ZU,"hasContextSensitiveParameters"),hasDecorators:t(()=>nd,"hasDecorators"),hasDocComment:t(()=>Tbe,"hasDocComment"),hasDynamicName:t(()=>$y,"hasDynamicName"),hasEffectiveModifier:t(()=>up,"hasEffectiveModifier"),hasEffectiveModifiers:t(()=>vX,"hasEffectiveModifiers"),hasEffectiveReadonlyModifier:t(()=>fC,"hasEffectiveReadonlyModifier"),hasExtension:t(()=>hA,"hasExtension"),hasImplementationTSFileExtension:t(()=>Khe,"hasImplementationTSFileExtension"),hasIndexSignature:t(()=>Sre,"hasIndexSignature"),hasInferredType:t(()=>sz,"hasInferredType"),hasInitializer:t(()=>H1,"hasInitializer"),hasInvalidEscape:t(()=>lX,"hasInvalidEscape"),hasJSDocNodes:t(()=>Fp,"hasJSDocNodes"),hasJSDocParameterTags:t(()=>Ede,"hasJSDocParameterTags"),hasJSFileExtension:t(()=>q0,"hasJSFileExtension"),hasJsonModuleEmitEnabled:t(()=>RU,"hasJsonModuleEmitEnabled"),hasOnlyExpressionInitializer:t(()=>QE,"hasOnlyExpressionInitializer"),hasOverrideModifier:t(()=>SU,"hasOverrideModifier"),hasPossibleExternalModuleReference:t(()=>gme,"hasPossibleExternalModuleReference"),hasProperty:t(()=>Ro,"hasProperty"),hasPropertyAccessExpressionWithName:t(()=>EL,"hasPropertyAccessExpressionWithName"),hasQuestionToken:t(()=>Nw,"hasQuestionToken"),hasRecordedExternalHelpers:t(()=>b0e,"hasRecordedExternalHelpers"),hasResolutionModeOverride:t(()=>pge,"hasResolutionModeOverride"),hasRestParameter:t(()=>mK,"hasRestParameter"),hasScopeMarker:t(()=>Wde,"hasScopeMarker"),hasStaticModifier:t(()=>Gl,"hasStaticModifier"),hasSyntacticModifier:t(()=>di,"hasSyntacticModifier"),hasSyntacticModifiers:t(()=>_he,"hasSyntacticModifiers"),hasTSFileExtension:t(()=>pC,"hasTSFileExtension"),hasTabstop:t(()=>uge,"hasTabstop"),hasTrailingDirectorySeparator:t(()=>db,"hasTrailingDirectorySeparator"),hasType:t(()=>CB,"hasType"),hasTypeArguments:t(()=>Z7e,"hasTypeArguments"),hasZeroOrOneAsteriskCharacter:t(()=>$X,"hasZeroOrOneAsteriskCharacter"),hostGetCanonicalFileName:t(()=>Jy,"hostGetCanonicalFileName"),hostUsesCaseSensitiveFileNames:t(()=>uC,"hostUsesCaseSensitiveFileNames"),idText:t(()=>Xn,"idText"),identifierIsThisKeyword:t(()=>gX,"identifierIsThisKeyword"),identifierToKeywordKind:t(()=>HE,"identifierToKeywordKind"),identity:t(()=>Wo,"identity"),identitySourceMapConsumer:t(()=>eee,"identitySourceMapConsumer"),ignoreSourceNewlines:t(()=>xZ,"ignoreSourceNewlines"),ignoredPaths:t(()=>Xj,"ignoredPaths"),importFromModuleSpecifier:t(()=>N4,"importFromModuleSpecifier"),importSyntaxAffectsModuleResolution:t(()=>UX,"importSyntaxAffectsModuleResolution"),indexOfAnyCharCode:t(()=>Qf,"indexOfAnyCharCode"),indexOfNode:t(()=>PA,"indexOfNode"),indicesOf:t(()=>jj,"indicesOf"),inferredTypesContainingFile:t(()=>Y3,"inferredTypesContainingFile"),injectClassNamedEvaluationHelperBlockIfMissing:t(()=>S$,"injectClassNamedEvaluationHelperBlockIfMissing"),injectClassThisAssignmentIfMissing:t(()=>n1e,"injectClassThisAssignmentIfMissing"),insertImports:t(()=>cre,"insertImports"),insertSorted:t(()=>ab,"insertSorted"),insertStatementAfterCustomPrologue:t(()=>eC,"insertStatementAfterCustomPrologue"),insertStatementAfterStandardPrologue:t(()=>q7e,"insertStatementAfterStandardPrologue"),insertStatementsAfterCustomPrologue:t(()=>SK,"insertStatementsAfterCustomPrologue"),insertStatementsAfterStandardPrologue:t(()=>M0,"insertStatementsAfterStandardPrologue"),intersperse:t(()=>Un,"intersperse"),intrinsicTagNameToString:t(()=>cZ,"intrinsicTagNameToString"),introducesArgumentsExoticObject:t(()=>Ame,"introducesArgumentsExoticObject"),inverseJsxOptionMap:t(()=>j5,"inverseJsxOptionMap"),isAbstractConstructorSymbol:t(()=>Phe,"isAbstractConstructorSymbol"),isAbstractModifier:t(()=>qge,"isAbstractModifier"),isAccessExpression:t(()=>Zo,"isAccessExpression"),isAccessibilityModifier:t(()=>Kte,"isAccessibilityModifier"),isAccessor:t(()=>xb,"isAccessor"),isAccessorModifier:t(()=>Hge,"isAccessorModifier"),isAliasableExpression:t(()=>aU,"isAliasableExpression"),isAmbientModule:t(()=>Bf,"isAmbientModule"),isAmbientPropertyDeclaration:t(()=>NK,"isAmbientPropertyDeclaration"),isAnyDirectorySeparator:t(()=>FY,"isAnyDirectorySeparator"),isAnyImportOrBareOrAccessedRequire:t(()=>mme,"isAnyImportOrBareOrAccessedRequire"),isAnyImportOrReExport:t(()=>sF,"isAnyImportOrReExport"),isAnyImportOrRequireStatement:t(()=>hme,"isAnyImportOrRequireStatement"),isAnyImportSyntax:t(()=>kw,"isAnyImportSyntax"),isAnySupportedFileExtension:t(()=>TFe,"isAnySupportedFileExtension"),isApplicableVersionedTypesKey:t(()=>G5,"isApplicableVersionedTypesKey"),isArgumentExpressionOfElementAccess:t(()=>Bte,"isArgumentExpressionOfElementAccess"),isArray:t(()=>Bs,"isArray"),isArrayBindingElement:t(()=>vB,"isArrayBindingElement"),isArrayBindingOrAssignmentElement:t(()=>G7,"isArrayBindingOrAssignmentElement"),isArrayBindingOrAssignmentPattern:t(()=>lK,"isArrayBindingOrAssignmentPattern"),isArrayBindingPattern:t(()=>sv,"isArrayBindingPattern"),isArrayLiteralExpression:t(()=>Xu,"isArrayLiteralExpression"),isArrayLiteralOrObjectLiteralDestructuringPattern:t(()=>lv,"isArrayLiteralOrObjectLiteralDestructuringPattern"),isArrayTypeNode:t(()=>T5,"isArrayTypeNode"),isArrowFunction:t(()=>Qo,"isArrowFunction"),isAsExpression:t(()=>a6,"isAsExpression"),isAssertClause:t(()=>e0e,"isAssertClause"),isAssertEntry:t(()=>zFe,"isAssertEntry"),isAssertionExpression:t(()=>BT,"isAssertionExpression"),isAssertsKeyword:t(()=>Jge,"isAssertsKeyword"),isAssignmentDeclaration:t(()=>P4,"isAssignmentDeclaration"),isAssignmentExpression:t(()=>Su,"isAssignmentExpression"),isAssignmentOperator:t(()=>Wy,"isAssignmentOperator"),isAssignmentPattern:t(()=>y4,"isAssignmentPattern"),isAssignmentTarget:t(()=>Nb,"isAssignmentTarget"),isAsteriskToken:t(()=>v5,"isAsteriskToken"),isAsyncFunction:t(()=>R4,"isAsyncFunction"),isAsyncModifier:t(()=>m3,"isAsyncModifier"),isAutoAccessorPropertyDeclaration:t(()=>x_,"isAutoAccessorPropertyDeclaration"),isAwaitExpression:t(()=>zb,"isAwaitExpression"),isAwaitKeyword:t(()=>DZ,"isAwaitKeyword"),isBigIntLiteral:t(()=>d3,"isBigIntLiteral"),isBinaryExpression:t(()=>In,"isBinaryExpression"),isBinaryLogicalOperator:t(()=>WF,"isBinaryLogicalOperator"),isBinaryOperatorToken:t(()=>D0e,"isBinaryOperatorToken"),isBindableObjectDefinePropertyCall:t(()=>sC,"isBindableObjectDefinePropertyCall"),isBindableStaticAccessExpression:t(()=>VT,"isBindableStaticAccessExpression"),isBindableStaticElementAccessExpression:t(()=>nU,"isBindableStaticElementAccessExpression"),isBindableStaticNameExpression:t(()=>aC,"isBindableStaticNameExpression"),isBindingElement:t(()=>qa,"isBindingElement"),isBindingElementOfBareOrAccessedRequire:t(()=>Bme,"isBindingElementOfBareOrAccessedRequire"),isBindingName:t(()=>XE,"isBindingName"),isBindingOrAssignmentElement:t(()=>Ude,"isBindingOrAssignmentElement"),isBindingOrAssignmentPattern:t(()=>V7,"isBindingOrAssignmentPattern"),isBindingPattern:t(()=>na,"isBindingPattern"),isBlock:t(()=>Qs,"isBlock"),isBlockLike:t(()=>wD,"isBlockLike"),isBlockOrCatchScoped:t(()=>CK,"isBlockOrCatchScoped"),isBlockScope:t(()=>IK,"isBlockScope"),isBlockScopedContainerTopLevel:t(()=>dme,"isBlockScopedContainerTopLevel"),isBooleanLiteral:t(()=>g4,"isBooleanLiteral"),isBreakOrContinueStatement:t(()=>p4,"isBreakOrContinueStatement"),isBreakStatement:t(()=>jFe,"isBreakStatement"),isBuildCommand:t(()=>Bve,"isBuildCommand"),isBuildInfoFile:t(()=>N1e,"isBuildInfoFile"),isBuilderProgram:t(()=>Zee,"isBuilderProgram"),isBundle:t(()=>i0e,"isBundle"),isCallChain:t(()=>GE,"isCallChain"),isCallExpression:t(()=>ua,"isCallExpression"),isCallExpressionTarget:t(()=>Ote,"isCallExpressionTarget"),isCallLikeExpression:t(()=>jT,"isCallLikeExpression"),isCallLikeOrFunctionLikeExpression:t(()=>uK,"isCallLikeOrFunctionLikeExpression"),isCallOrNewExpression:t(()=>Mh,"isCallOrNewExpression"),isCallOrNewExpressionTarget:t(()=>Fte,"isCallOrNewExpressionTarget"),isCallSignatureDeclaration:t(()=>rD,"isCallSignatureDeclaration"),isCallToHelper:t(()=>p3,"isCallToHelper"),isCaseBlock:t(()=>T3,"isCaseBlock"),isCaseClause:t(()=>u6,"isCaseClause"),isCaseKeyword:t(()=>Gge,"isCaseKeyword"),isCaseOrDefaultClause:t(()=>xB,"isCaseOrDefaultClause"),isCatchClause:t(()=>px,"isCatchClause"),isCatchClauseVariableDeclaration:t(()=>lge,"isCatchClauseVariableDeclaration"),isCatchClauseVariableDeclarationOrBindingElement:t(()=>kK,"isCatchClauseVariableDeclarationOrBindingElement"),isCheckJsEnabledForFile:t(()=>t3,"isCheckJsEnabledForFile"),isCircularBuildOrder:t(()=>xD,"isCircularBuildOrder"),isClassDeclaration:t(()=>Ul,"isClassDeclaration"),isClassElement:t(()=>xl,"isClassElement"),isClassExpression:t(()=>Bl,"isClassExpression"),isClassInstanceProperty:t(()=>jde,"isClassInstanceProperty"),isClassLike:t(()=>yi,"isClassLike"),isClassMemberModifier:t(()=>aK,"isClassMemberModifier"),isClassNamedEvaluationHelperBlock:t(()=>bD,"isClassNamedEvaluationHelperBlock"),isClassOrTypeElement:t(()=>yB,"isClassOrTypeElement"),isClassStaticBlockDeclaration:t(()=>Zc,"isClassStaticBlockDeclaration"),isClassThisAssignmentBlock:t(()=>J3,"isClassThisAssignmentBlock"),isColonToken:t(()=>zge,"isColonToken"),isCommaExpression:t(()=>P5,"isCommaExpression"),isCommaListExpression:t(()=>b3,"isCommaListExpression"),isCommaSequence:t(()=>w3,"isCommaSequence"),isCommaToken:t(()=>Uge,"isCommaToken"),isComment:t(()=>yJ,"isComment"),isCommonJsExportPropertyAssignment:t(()=>JB,"isCommonJsExportPropertyAssignment"),isCommonJsExportedExpression:t(()=>Dme,"isCommonJsExportedExpression"),isCompoundAssignment:t(()=>U3,"isCompoundAssignment"),isComputedNonLiteralName:t(()=>aF,"isComputedNonLiteralName"),isComputedPropertyName:t(()=>Ia,"isComputedPropertyName"),isConciseBody:t(()=>SB,"isConciseBody"),isConditionalExpression:t(()=>SC,"isConditionalExpression"),isConditionalTypeNode:t(()=>ox,"isConditionalTypeNode"),isConstAssertion:t(()=>lZ,"isConstAssertion"),isConstTypeReference:t(()=>Dm,"isConstTypeReference"),isConstructSignatureDeclaration:t(()=>S5,"isConstructSignatureDeclaration"),isConstructorDeclaration:t(()=>Dc,"isConstructorDeclaration"),isConstructorTypeNode:t(()=>n6,"isConstructorTypeNode"),isContextualKeyword:t(()=>cU,"isContextualKeyword"),isContinueStatement:t(()=>MFe,"isContinueStatement"),isCustomPrologue:t(()=>fF,"isCustomPrologue"),isDebuggerStatement:t(()=>BFe,"isDebuggerStatement"),isDeclaration:t(()=>yu,"isDeclaration"),isDeclarationBindingElement:t(()=>q7,"isDeclarationBindingElement"),isDeclarationFileName:t(()=>fu,"isDeclarationFileName"),isDeclarationName:t(()=>Vg,"isDeclarationName"),isDeclarationNameOfEnumOrNamespace:t(()=>NX,"isDeclarationNameOfEnumOrNamespace"),isDeclarationReadonly:t(()=>cF,"isDeclarationReadonly"),isDeclarationStatement:t(()=>Gde,"isDeclarationStatement"),isDeclarationWithTypeParameterChildren:t(()=>FK,"isDeclarationWithTypeParameterChildren"),isDeclarationWithTypeParameters:t(()=>OK,"isDeclarationWithTypeParameters"),isDecorator:t(()=>cu,"isDecorator"),isDecoratorTarget:t(()=>fbe,"isDecoratorTarget"),isDefaultClause:t(()=>x3,"isDefaultClause"),isDefaultImport:t(()=>oC,"isDefaultImport"),isDefaultModifier:t(()=>gz,"isDefaultModifier"),isDefaultedExpandoInitializer:t(()=>Ume,"isDefaultedExpandoInitializer"),isDeleteExpression:t(()=>Kge,"isDeleteExpression"),isDeleteTarget:t(()=>XK,"isDeleteTarget"),isDeprecatedDeclaration:t(()=>MJ,"isDeprecatedDeclaration"),isDestructuringAssignment:t(()=>X1,"isDestructuringAssignment"),isDiskPathRoot:t(()=>LY,"isDiskPathRoot"),isDoStatement:t(()=>RFe,"isDoStatement"),isDocumentRegistryEntry:t(()=>qL,"isDocumentRegistryEntry"),isDotDotDotToken:t(()=>mz,"isDotDotDotToken"),isDottedName:t(()=>VF,"isDottedName"),isDynamicName:t(()=>uU,"isDynamicName"),isEffectiveExternalModule:t(()=>AA,"isEffectiveExternalModule"),isEffectiveStrictModeSourceFile:t(()=>AK,"isEffectiveStrictModeSourceFile"),isElementAccessChain:t(()=>eK,"isElementAccessChain"),isElementAccessExpression:t(()=>$o,"isElementAccessExpression"),isEmittedFileOfProgram:t(()=>j1e,"isEmittedFileOfProgram"),isEmptyArrayLiteral:t(()=>bhe,"isEmptyArrayLiteral"),isEmptyBindingElement:t(()=>gde,"isEmptyBindingElement"),isEmptyBindingPattern:t(()=>hde,"isEmptyBindingPattern"),isEmptyObjectLiteral:t(()=>kX,"isEmptyObjectLiteral"),isEmptyStatement:t(()=>NZ,"isEmptyStatement"),isEmptyStringLiteral:t(()=>zK,"isEmptyStringLiteral"),isEntityName:t(()=>t_,"isEntityName"),isEntityNameExpression:t(()=>No,"isEntityNameExpression"),isEnumConst:t(()=>RS,"isEnumConst"),isEnumDeclaration:t(()=>ux,"isEnumDeclaration"),isEnumMember:t(()=>av,"isEnumMember"),isEqualityOperatorKind:t(()=>AJ,"isEqualityOperatorKind"),isEqualsGreaterThanToken:t(()=>$ge,"isEqualsGreaterThanToken"),isExclamationToken:t(()=>b5,"isExclamationToken"),isExcludedFile:t(()=>sye,"isExcludedFile"),isExclusivelyTypeOnlyImportOrExport:t(()=>Aee,"isExclusivelyTypeOnlyImportOrExport"),isExpandoPropertyDeclaration:t(()=>Yw,"isExpandoPropertyDeclaration"),isExportAssignment:t(()=>uc,"isExportAssignment"),isExportDeclaration:t(()=>yl,"isExportDeclaration"),isExportModifier:t(()=>eD,"isExportModifier"),isExportName:t(()=>Nz,"isExportName"),isExportNamespaceAsDefaultDeclaration:t(()=>LB,"isExportNamespaceAsDefaultDeclaration"),isExportOrDefaultModifier:t(()=>O5,"isExportOrDefaultModifier"),isExportSpecifier:t(()=>Ef,"isExportSpecifier"),isExportsIdentifier:t(()=>iC,"isExportsIdentifier"),isExportsOrModuleExportsOrAlias:t(()=>hx,"isExportsOrModuleExportsOrAlias"),isExpression:t(()=>kt,"isExpression"),isExpressionNode:t(()=>rh,"isExpressionNode"),isExpressionOfExternalModuleImportEqualsDeclaration:t(()=>dbe,"isExpressionOfExternalModuleImportEqualsDeclaration"),isExpressionOfOptionalChainRoot:t(()=>dB,"isExpressionOfOptionalChainRoot"),isExpressionStatement:t(()=>Tu,"isExpressionStatement"),isExpressionWithTypeArguments:t(()=>Gy,"isExpressionWithTypeArguments"),isExpressionWithTypeArgumentsInClassExtendsClause:t(()=>xU,"isExpressionWithTypeArgumentsInClassExtendsClause"),isExternalModule:t(()=>Yl,"isExternalModule"),isExternalModuleAugmentation:t(()=>$T,"isExternalModuleAugmentation"),isExternalModuleImportEqualsDeclaration:t(()=>MS,"isExternalModuleImportEqualsDeclaration"),isExternalModuleIndicator:t(()=>K7,"isExternalModuleIndicator"),isExternalModuleNameRelative:t(()=>hu,"isExternalModuleNameRelative"),isExternalModuleReference:t(()=>Yy,"isExternalModuleReference"),isExternalModuleSymbol:t(()=>Tw,"isExternalModuleSymbol"),isExternalOrCommonJsModule:t(()=>cp,"isExternalOrCommonJsModule"),isFileLevelReservedGeneratedIdentifier:t(()=>W7,"isFileLevelReservedGeneratedIdentifier"),isFileLevelUniqueName:t(()=>OB,"isFileLevelUniqueName"),isFileProbablyExternalModule:t(()=>R5,"isFileProbablyExternalModule"),isFirstDeclarationOfSymbolParameter:t(()=>dre,"isFirstDeclarationOfSymbolParameter"),isFixablePromiseHandler:t(()=>Hre,"isFixablePromiseHandler"),isForInOrOfStatement:t(()=>ZE,"isForInOrOfStatement"),isForInStatement:t(()=>Tz,"isForInStatement"),isForInitializer:t(()=>Dd,"isForInitializer"),isForOfStatement:t(()=>E5,"isForOfStatement"),isForStatement:t(()=>XS,"isForStatement"),isFullSourceFile:t(()=>B0,"isFullSourceFile"),isFunctionBlock:t(()=>JT,"isFunctionBlock"),isFunctionBody:t(()=>_K,"isFunctionBody"),isFunctionDeclaration:t(()=>nl,"isFunctionDeclaration"),isFunctionExpression:t(()=>Vo,"isFunctionExpression"),isFunctionExpressionOrArrowFunction:t(()=>Mb,"isFunctionExpressionOrArrowFunction"),isFunctionLike:t(()=>Ys,"isFunctionLike"),isFunctionLikeDeclaration:t(()=>Uo,"isFunctionLikeDeclaration"),isFunctionLikeKind:t(()=>yw,"isFunctionLikeKind"),isFunctionLikeOrClassStaticBlockDeclaration:t(()=>CA,"isFunctionLikeOrClassStaticBlockDeclaration"),isFunctionOrConstructorTypeNode:t(()=>Bde,"isFunctionOrConstructorTypeNode"),isFunctionOrModuleBlock:t(()=>oK,"isFunctionOrModuleBlock"),isFunctionSymbol:t(()=>Jme,"isFunctionSymbol"),isFunctionTypeNode:t(()=>Gg,"isFunctionTypeNode"),isGeneratedIdentifier:t(()=>_c,"isGeneratedIdentifier"),isGeneratedPrivateIdentifier:t(()=>KE,"isGeneratedPrivateIdentifier"),isGetAccessor:t(()=>F0,"isGetAccessor"),isGetAccessorDeclaration:t(()=>Md,"isGetAccessorDeclaration"),isGetOrSetAccessorDeclaration:t(()=>J7,"isGetOrSetAccessorDeclaration"),isGlobalScopeAugmentation:t(()=>qg,"isGlobalScopeAugmentation"),isGlobalSourceFile:t(()=>G1,"isGlobalSourceFile"),isGrammarError:t(()=>ome,"isGrammarError"),isHeritageClause:t(()=>_p,"isHeritageClause"),isHoistedFunction:t(()=>zB,"isHoistedFunction"),isHoistedVariableStatement:t(()=>$B,"isHoistedVariableStatement"),isIdentifier:t(()=>Ye,"isIdentifier"),isIdentifierANonContextualKeyword:t(()=>rX,"isIdentifierANonContextualKeyword"),isIdentifierName:t(()=>Xme,"isIdentifierName"),isIdentifierOrThisTypeNode:t(()=>E0e,"isIdentifierOrThisTypeNode"),isIdentifierPart:t(()=>My,"isIdentifierPart"),isIdentifierStart:t(()=>zg,"isIdentifierStart"),isIdentifierText:t(()=>B_,"isIdentifierText"),isIdentifierTypePredicate:t(()=>Nme,"isIdentifierTypePredicate"),isIdentifierTypeReference:t(()=>ige,"isIdentifierTypeReference"),isIfStatement:t(()=>KS,"isIfStatement"),isIgnoredFileFromWildCardWatching:t(()=>lL,"isIgnoredFileFromWildCardWatching"),isImplicitGlob:t(()=>qX,"isImplicitGlob"),isImportAttribute:t(()=>t0e,"isImportAttribute"),isImportAttributeName:t(()=>Mde,"isImportAttributeName"),isImportAttributes:t(()=>xC,"isImportAttributes"),isImportCall:t(()=>Lp,"isImportCall"),isImportClause:t(()=>Fm,"isImportClause"),isImportDeclaration:t(()=>xc,"isImportDeclaration"),isImportEqualsDeclaration:t(()=>uu,"isImportEqualsDeclaration"),isImportKeyword:t(()=>g3,"isImportKeyword"),isImportMeta:t(()=>OA,"isImportMeta"),isImportOrExportSpecifier:t(()=>Sb,"isImportOrExportSpecifier"),isImportOrExportSpecifierName:t(()=>Bbe,"isImportOrExportSpecifierName"),isImportSpecifier:t(()=>qf,"isImportSpecifier"),isImportTypeAssertionContainer:t(()=>UFe,"isImportTypeAssertionContainer"),isImportTypeNode:t(()=>Kh,"isImportTypeNode"),isImportable:t(()=>Lre,"isImportable"),isInComment:t(()=>cv,"isInComment"),isInCompoundLikeAssignment:t(()=>KK,"isInCompoundLikeAssignment"),isInExpressionContext:t(()=>XB,"isInExpressionContext"),isInJSDoc:t(()=>yF,"isInJSDoc"),isInJSFile:t(()=>xn,"isInJSFile"),isInJSXText:t(()=>Sbe,"isInJSXText"),isInJsonFile:t(()=>QB,"isInJsonFile"),isInNonReferenceComment:t(()=>wbe,"isInNonReferenceComment"),isInReferenceComment:t(()=>kbe,"isInReferenceComment"),isInRightSideOfInternalImportEqualsDeclaration:t(()=>aJ,"isInRightSideOfInternalImportEqualsDeclaration"),isInString:t(()=>ED,"isInString"),isInTemplateString:t(()=>Vte,"isInTemplateString"),isInTopLevelContext:t(()=>GB,"isInTopLevelContext"),isInTypeQuery:t(()=>Lw,"isInTypeQuery"),isIncrementalBuildInfo:t(()=>mL,"isIncrementalBuildInfo"),isIncrementalBundleEmitBuildInfo:t(()=>sve,"isIncrementalBundleEmitBuildInfo"),isIncrementalCompilation:t(()=>rx,"isIncrementalCompilation"),isIndexSignatureDeclaration:t(()=>Ub,"isIndexSignatureDeclaration"),isIndexedAccessTypeNode:t(()=>cx,"isIndexedAccessTypeNode"),isInferTypeNode:t(()=>yC,"isInferTypeNode"),isInfinityOrNaNString:t(()=>a3,"isInfinityOrNaNString"),isInitializedProperty:t(()=>Q5,"isInitializedProperty"),isInitializedVariable:t(()=>KF,"isInitializedVariable"),isInsideJsxElement:t(()=>hJ,"isInsideJsxElement"),isInsideJsxElementOrAttribute:t(()=>bbe,"isInsideJsxElementOrAttribute"),isInsideNodeModules:t(()=>UL,"isInsideNodeModules"),isInsideTemplateLiteral:t(()=>PL,"isInsideTemplateLiteral"),isInstanceOfExpression:t(()=>EU,"isInstanceOfExpression"),isInstantiatedModule:t(()=>HQ,"isInstantiatedModule"),isInterfaceDeclaration:t(()=>Zu,"isInterfaceDeclaration"),isInternalDeclaration:t(()=>eme,"isInternalDeclaration"),isInternalModuleImportEqualsDeclaration:t(()=>nC,"isInternalModuleImportEqualsDeclaration"),isInternalName:t(()=>HZ,"isInternalName"),isIntersectionTypeNode:t(()=>sD,"isIntersectionTypeNode"),isIntrinsicJsxName:t(()=>WA,"isIntrinsicJsxName"),isIterationStatement:t(()=>Eb,"isIterationStatement"),isJSDoc:t(()=>ch,"isJSDoc"),isJSDocAllType:t(()=>o0e,"isJSDocAllType"),isJSDocAugmentsTag:t(()=>uD,"isJSDocAugmentsTag"),isJSDocAuthorTag:t(()=>qFe,"isJSDocAuthorTag"),isJSDocCallbackTag:t(()=>LZ,"isJSDocCallbackTag"),isJSDocClassTag:t(()=>l0e,"isJSDocClassTag"),isJSDocCommentContainingNode:t(()=>EB,"isJSDocCommentContainingNode"),isJSDocConstructSignature:t(()=>Iw,"isJSDocConstructSignature"),isJSDocDeprecatedTag:t(()=>UZ,"isJSDocDeprecatedTag"),isJSDocEnumTag:t(()=>k5,"isJSDocEnumTag"),isJSDocFunctionType:t(()=>_6,"isJSDocFunctionType"),isJSDocImplementsTag:t(()=>Dz,"isJSDocImplementsTag"),isJSDocImportTag:t(()=>tg,"isJSDocImportTag"),isJSDocIndexSignature:t(()=>tU,"isJSDocIndexSignature"),isJSDocLikeText:t(()=>rQ,"isJSDocLikeText"),isJSDocLink:t(()=>s0e,"isJSDocLink"),isJSDocLinkCode:t(()=>a0e,"isJSDocLinkCode"),isJSDocLinkLike:t(()=>Sw,"isJSDocLinkLike"),isJSDocLinkPlain:t(()=>JFe,"isJSDocLinkPlain"),isJSDocMemberName:t(()=>e2,"isJSDocMemberName"),isJSDocNameReference:t(()=>E3,"isJSDocNameReference"),isJSDocNamepathType:t(()=>WFe,"isJSDocNamepathType"),isJSDocNamespaceBody:t(()=>j7e,"isJSDocNamespaceBody"),isJSDocNode:t(()=>kA,"isJSDocNode"),isJSDocNonNullableType:t(()=>Ez,"isJSDocNonNullableType"),isJSDocNullableType:t(()=>f6,"isJSDocNullableType"),isJSDocOptionalParameter:t(()=>tz,"isJSDocOptionalParameter"),isJSDocOptionalType:t(()=>FZ,"isJSDocOptionalType"),isJSDocOverloadTag:t(()=>p6,"isJSDocOverloadTag"),isJSDocOverrideTag:t(()=>kz,"isJSDocOverrideTag"),isJSDocParameterTag:t(()=>sd,"isJSDocParameterTag"),isJSDocPrivateTag:t(()=>MZ,"isJSDocPrivateTag"),isJSDocPropertyLikeTag:t(()=>d4,"isJSDocPropertyLikeTag"),isJSDocPropertyTag:t(()=>u0e,"isJSDocPropertyTag"),isJSDocProtectedTag:t(()=>jZ,"isJSDocProtectedTag"),isJSDocPublicTag:t(()=>RZ,"isJSDocPublicTag"),isJSDocReadonlyTag:t(()=>BZ,"isJSDocReadonlyTag"),isJSDocReturnTag:t(()=>wz,"isJSDocReturnTag"),isJSDocSatisfiesExpression:t(()=>aZ,"isJSDocSatisfiesExpression"),isJSDocSatisfiesTag:t(()=>Pz,"isJSDocSatisfiesTag"),isJSDocSeeTag:t(()=>VFe,"isJSDocSeeTag"),isJSDocSignature:t(()=>ov,"isJSDocSignature"),isJSDocTag:t(()=>wA,"isJSDocTag"),isJSDocTemplateTag:t(()=>fm,"isJSDocTemplateTag"),isJSDocThisTag:t(()=>zZ,"isJSDocThisTag"),isJSDocThrowsTag:t(()=>GFe,"isJSDocThrowsTag"),isJSDocTypeAlias:t(()=>am,"isJSDocTypeAlias"),isJSDocTypeAssertion:t(()=>dx,"isJSDocTypeAssertion"),isJSDocTypeExpression:t(()=>QS,"isJSDocTypeExpression"),isJSDocTypeLiteral:t(()=>CC,"isJSDocTypeLiteral"),isJSDocTypeTag:t(()=>C3,"isJSDocTypeTag"),isJSDocTypedefTag:t(()=>kC,"isJSDocTypedefTag"),isJSDocUnknownTag:t(()=>HFe,"isJSDocUnknownTag"),isJSDocUnknownType:t(()=>c0e,"isJSDocUnknownType"),isJSDocVariadicType:t(()=>Cz,"isJSDocVariadicType"),isJSXTagName:t(()=>RA,"isJSXTagName"),isJsonEqual:t(()=>KU,"isJsonEqual"),isJsonSourceFile:t(()=>Ad,"isJsonSourceFile"),isJsxAttribute:t(()=>eg,"isJsxAttribute"),isJsxAttributeLike:t(()=>TB,"isJsxAttributeLike"),isJsxAttributeName:t(()=>_ge,"isJsxAttributeName"),isJsxAttributes:t(()=>_x,"isJsxAttributes"),isJsxCallLike:t(()=>Zde,"isJsxCallLike"),isJsxChild:t(()=>Q7,"isJsxChild"),isJsxClosingElement:t(()=>fx,"isJsxClosingElement"),isJsxClosingFragment:t(()=>n0e,"isJsxClosingFragment"),isJsxElement:t(()=>Qh,"isJsxElement"),isJsxExpression:t(()=>l6,"isJsxExpression"),isJsxFragment:t(()=>ZS,"isJsxFragment"),isJsxNamespacedName:t(()=>oh,"isJsxNamespacedName"),isJsxOpeningElement:t(()=>ah,"isJsxOpeningElement"),isJsxOpeningFragment:t(()=>Lm,"isJsxOpeningFragment"),isJsxOpeningLikeElement:t(()=>Tf,"isJsxOpeningLikeElement"),isJsxOpeningLikeElementTagName:t(()=>_be,"isJsxOpeningLikeElementTagName"),isJsxSelfClosingElement:t(()=>EC,"isJsxSelfClosingElement"),isJsxSpreadAttribute:t(()=>lD,"isJsxSpreadAttribute"),isJsxTagNameExpression:t(()=>v4,"isJsxTagNameExpression"),isJsxText:t(()=>Zw,"isJsxText"),isJumpStatementTarget:t(()=>CL,"isJumpStatementTarget"),isKeyword:t(()=>k_,"isKeyword"),isKeywordOrPunctuation:t(()=>oU,"isKeywordOrPunctuation"),isKnownSymbol:t(()=>jF,"isKnownSymbol"),isLabelName:t(()=>Mte,"isLabelName"),isLabelOfLabeledStatement:t(()=>Rte,"isLabelOfLabeledStatement"),isLabeledStatement:t(()=>$b,"isLabeledStatement"),isLateVisibilityPaintedStatement:t(()=>MB,"isLateVisibilityPaintedStatement"),isLeftHandSideExpression:t(()=>E_,"isLeftHandSideExpression"),isLet:t(()=>UB,"isLet"),isLineBreak:t(()=>bf,"isLineBreak"),isLiteralComputedPropertyDeclarationName:t(()=>FF,"isLiteralComputedPropertyDeclarationName"),isLiteralExpression:t(()=>YE,"isLiteralExpression"),isLiteralExpressionOfObject:t(()=>iK,"isLiteralExpressionOfObject"),isLiteralImportTypeNode:t(()=>Uy,"isLiteralImportTypeNode"),isLiteralKind:t(()=>m4,"isLiteralKind"),isLiteralNameOfPropertyDeclarationOrIndexAccess:t(()=>lJ,"isLiteralNameOfPropertyDeclarationOrIndexAccess"),isLiteralTypeLiteral:t(()=>Jde,"isLiteralTypeLiteral"),isLiteralTypeNode:t(()=>iv,"isLiteralTypeNode"),isLocalName:t(()=>Ky,"isLocalName"),isLogicalOperator:t(()=>ghe,"isLogicalOperator"),isLogicalOrCoalescingAssignmentExpression:t(()=>TX,"isLogicalOrCoalescingAssignmentExpression"),isLogicalOrCoalescingAssignmentOperator:t(()=>$4,"isLogicalOrCoalescingAssignmentOperator"),isLogicalOrCoalescingBinaryExpression:t(()=>qF,"isLogicalOrCoalescingBinaryExpression"),isLogicalOrCoalescingBinaryOperator:t(()=>TU,"isLogicalOrCoalescingBinaryOperator"),isMappedTypeNode:t(()=>bC,"isMappedTypeNode"),isMemberName:t(()=>O0,"isMemberName"),isMetaProperty:t(()=>v3,"isMetaProperty"),isMethodDeclaration:t(()=>Wc,"isMethodDeclaration"),isMethodOrAccessor:t(()=>vw,"isMethodOrAccessor"),isMethodSignature:t(()=>Om,"isMethodSignature"),isMinusToken:t(()=>wZ,"isMinusToken"),isMissingDeclaration:t(()=>$Fe,"isMissingDeclaration"),isMissingPackageJsonInfo:t(()=>gye,"isMissingPackageJsonInfo"),isModifier:t(()=>wa,"isModifier"),isModifierKind:t(()=>Tb,"isModifierKind"),isModifierLike:t(()=>pc,"isModifierLike"),isModuleAugmentationExternal:t(()=>DK,"isModuleAugmentationExternal"),isModuleBlock:t(()=>Xh,"isModuleBlock"),isModuleBody:t(()=>qde,"isModuleBody"),isModuleDeclaration:t(()=>El,"isModuleDeclaration"),isModuleExportName:t(()=>xz,"isModuleExportName"),isModuleExportsAccessExpression:t(()=>U0,"isModuleExportsAccessExpression"),isModuleIdentifier:t(()=>WK,"isModuleIdentifier"),isModuleName:t(()=>w0e,"isModuleName"),isModuleOrEnumDeclaration:t(()=>X7,"isModuleOrEnumDeclaration"),isModuleReference:t(()=>Kde,"isModuleReference"),isModuleSpecifierLike:t(()=>EJ,"isModuleSpecifierLike"),isModuleWithStringLiteralName:t(()=>RB,"isModuleWithStringLiteralName"),isNameOfFunctionDeclaration:t(()=>zte,"isNameOfFunctionDeclaration"),isNameOfModuleDeclaration:t(()=>Ute,"isNameOfModuleDeclaration"),isNamedDeclaration:t(()=>gu,"isNamedDeclaration"),isNamedEvaluation:t(()=>lp,"isNamedEvaluation"),isNamedEvaluationSource:t(()=>nX,"isNamedEvaluationSource"),isNamedExportBindings:t(()=>rK,"isNamedExportBindings"),isNamedExports:t(()=>Bd,"isNamedExports"),isNamedImportBindings:t(()=>pK,"isNamedImportBindings"),isNamedImports:t(()=>Zh,"isNamedImports"),isNamedImportsOrExports:t(()=>NU,"isNamedImportsOrExports"),isNamedTupleMember:t(()=>i6,"isNamedTupleMember"),isNamespaceBody:t(()=>M7e,"isNamespaceBody"),isNamespaceExport:t(()=>Yg,"isNamespaceExport"),isNamespaceExportDeclaration:t(()=>C5,"isNamespaceExportDeclaration"),isNamespaceImport:t(()=>Y0,"isNamespaceImport"),isNamespaceReexportDeclaration:t(()=>jme,"isNamespaceReexportDeclaration"),isNewExpression:t(()=>lx,"isNewExpression"),isNewExpressionTarget:t(()=>t8,"isNewExpressionTarget"),isNewScopeNode:t(()=>vge,"isNewScopeNode"),isNoSubstitutionTemplateLiteral:t(()=>gC,"isNoSubstitutionTemplateLiteral"),isNodeArray:t(()=>RT,"isNodeArray"),isNodeArrayMultiLine:t(()=>khe,"isNodeArrayMultiLine"),isNodeDescendantOf:t(()=>GT,"isNodeDescendantOf"),isNodeKind:t(()=>hB,"isNodeKind"),isNodeLikeSystem:t(()=>uY,"isNodeLikeSystem"),isNodeModulesDirectory:t(()=>rB,"isNodeModulesDirectory"),isNodeWithPossibleHoistedDeclaration:t(()=>Yme,"isNodeWithPossibleHoistedDeclaration"),isNonContextualKeyword:t(()=>tX,"isNonContextualKeyword"),isNonGlobalAmbientModule:t(()=>wK,"isNonGlobalAmbientModule"),isNonNullAccess:t(()=>fge,"isNonNullAccess"),isNonNullChain:t(()=>mB,"isNonNullChain"),isNonNullExpression:t(()=>oD,"isNonNullExpression"),isNonStaticMethodOrAccessorWithPrivateName:t(()=>Kye,"isNonStaticMethodOrAccessorWithPrivateName"),isNotEmittedStatement:t(()=>r0e,"isNotEmittedStatement"),isNullishCoalesce:t(()=>tK,"isNullishCoalesce"),isNumber:t(()=>lb,"isNumber"),isNumericLiteral:t(()=>D_,"isNumericLiteral"),isNumericLiteralName:t(()=>H0,"isNumericLiteralName"),isObjectBindingElementWithoutPropertyName:t(()=>OL,"isObjectBindingElementWithoutPropertyName"),isObjectBindingOrAssignmentElement:t(()=>H7,"isObjectBindingOrAssignmentElement"),isObjectBindingOrAssignmentPattern:t(()=>cK,"isObjectBindingOrAssignmentPattern"),isObjectBindingPattern:t(()=>id,"isObjectBindingPattern"),isObjectLiteralElement:t(()=>dK,"isObjectLiteralElement"),isObjectLiteralElementLike:t(()=>By,"isObjectLiteralElementLike"),isObjectLiteralExpression:t(()=>ja,"isObjectLiteralExpression"),isObjectLiteralMethod:t(()=>sm,"isObjectLiteralMethod"),isObjectLiteralOrClassExpressionMethodOrAccessor:t(()=>WB,"isObjectLiteralOrClassExpressionMethodOrAccessor"),isObjectTypeDeclaration:t(()=>Uw,"isObjectTypeDeclaration"),isOmittedExpression:t(()=>lu,"isOmittedExpression"),isOptionalChain:t(()=>Sf,"isOptionalChain"),isOptionalChainRoot:t(()=>f4,"isOptionalChainRoot"),isOptionalDeclaration:t(()=>Hw,"isOptionalDeclaration"),isOptionalJSDocPropertyLikeTag:t(()=>u5,"isOptionalJSDocPropertyLikeTag"),isOptionalTypeNode:t(()=>yz,"isOptionalTypeNode"),isOuterExpression:t(()=>Iz,"isOuterExpression"),isOutermostOptionalChain:t(()=>_4,"isOutermostOptionalChain"),isOverrideModifier:t(()=>Vge,"isOverrideModifier"),isPackageJsonInfo:t(()=>n$,"isPackageJsonInfo"),isPackedArrayLiteral:t(()=>iZ,"isPackedArrayLiteral"),isParameter:t(()=>rs,"isParameter"),isParameterPropertyDeclaration:t(()=>ap,"isParameterPropertyDeclaration"),isParameterPropertyModifier:t(()=>h4,"isParameterPropertyModifier"),isParenthesizedExpression:t(()=>a_,"isParenthesizedExpression"),isParenthesizedTypeNode:t(()=>vC,"isParenthesizedTypeNode"),isParseTreeNode:t(()=>u4,"isParseTreeNode"),isPartOfParameterDeclaration:t(()=>$S,"isPartOfParameterDeclaration"),isPartOfTypeNode:t(()=>zh,"isPartOfTypeNode"),isPartOfTypeOnlyImportOrExportDeclaration:t(()=>Rde,"isPartOfTypeOnlyImportOrExportDeclaration"),isPartOfTypeQuery:t(()=>ZB,"isPartOfTypeQuery"),isPartiallyEmittedExpression:t(()=>Xge,"isPartiallyEmittedExpression"),isPatternMatch:t(()=>$j,"isPatternMatch"),isPinnedComment:t(()=>FB,"isPinnedComment"),isPlainJsFile:t(()=>S4,"isPlainJsFile"),isPlusToken:t(()=>kZ,"isPlusToken"),isPossiblyTypeArgumentPosition:t(()=>DL,"isPossiblyTypeArgumentPosition"),isPostfixUnaryExpression:t(()=>AZ,"isPostfixUnaryExpression"),isPrefixUnaryExpression:t(()=>YS,"isPrefixUnaryExpression"),isPrimitiveLiteralValue:t(()=>iz,"isPrimitiveLiteralValue"),isPrivateIdentifier:t(()=>Qi,"isPrivateIdentifier"),isPrivateIdentifierClassElementDeclaration:t(()=>jf,"isPrivateIdentifierClassElementDeclaration"),isPrivateIdentifierPropertyAccessExpression:t(()=>EA,"isPrivateIdentifierPropertyAccessExpression"),isPrivateIdentifierSymbol:t(()=>ehe,"isPrivateIdentifierSymbol"),isProgramUptoDate:t(()=>Fee,"isProgramUptoDate"),isPrologueDirective:t(()=>Uh,"isPrologueDirective"),isPropertyAccessChain:t(()=>pB,"isPropertyAccessChain"),isPropertyAccessEntityNameExpression:t(()=>HF,"isPropertyAccessEntityNameExpression"),isPropertyAccessExpression:t(()=>Hn,"isPropertyAccessExpression"),isPropertyAccessOrQualifiedName:t(()=>Y7,"isPropertyAccessOrQualifiedName"),isPropertyAccessOrQualifiedNameOrImportTypeNode:t(()=>zde,"isPropertyAccessOrQualifiedNameOrImportTypeNode"),isPropertyAssignment:t(()=>zl,"isPropertyAssignment"),isPropertyDeclaration:t(()=>As,"isPropertyDeclaration"),isPropertyName:t(()=>Tl,"isPropertyName"),isPropertyNameLiteral:t(()=>Jh,"isPropertyNameLiteral"),isPropertySignature:t(()=>Wf,"isPropertySignature"),isPrototypeAccess:t(()=>Fb,"isPrototypeAccess"),isPrototypePropertyAssignment:t(()=>kF,"isPrototypePropertyAssignment"),isPunctuation:t(()=>eX,"isPunctuation"),isPushOrUnshiftIdentifier:t(()=>iX,"isPushOrUnshiftIdentifier"),isQualifiedName:t(()=>i_,"isQualifiedName"),isQuestionDotToken:t(()=>hz,"isQuestionDotToken"),isQuestionOrExclamationToken:t(()=>x0e,"isQuestionOrExclamationToken"),isQuestionOrPlusOrMinusToken:t(()=>k0e,"isQuestionOrPlusOrMinusToken"),isQuestionToken:t(()=>Bb,"isQuestionToken"),isReadonlyKeyword:t(()=>Wge,"isReadonlyKeyword"),isReadonlyKeywordOrPlusOrMinusToken:t(()=>C0e,"isReadonlyKeywordOrPlusOrMinusToken"),isRecognizedTripleSlashComment:t(()=>TK,"isRecognizedTripleSlashComment"),isReferenceFileLocation:t(()=>N6,"isReferenceFileLocation"),isReferencedFile:t(()=>c2,"isReferencedFile"),isRegularExpressionLiteral:t(()=>EZ,"isRegularExpressionLiteral"),isRequireCall:t(()=>C_,"isRequireCall"),isRequireVariableStatement:t(()=>bF,"isRequireVariableStatement"),isRestParameter:t(()=>Jg,"isRestParameter"),isRestTypeNode:t(()=>vz,"isRestTypeNode"),isReturnStatement:t(()=>Mp,"isReturnStatement"),isReturnStatementWithFixablePromiseHandler:t(()=>qJ,"isReturnStatementWithFixablePromiseHandler"),isRightSideOfAccessExpression:t(()=>CX,"isRightSideOfAccessExpression"),isRightSideOfInstanceofExpression:t(()=>vhe,"isRightSideOfInstanceofExpression"),isRightSideOfPropertyAccess:t(()=>R6,"isRightSideOfPropertyAccess"),isRightSideOfQualifiedName:t(()=>pbe,"isRightSideOfQualifiedName"),isRightSideOfQualifiedNameOrPropertyAccess:t(()=>J4,"isRightSideOfQualifiedNameOrPropertyAccess"),isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:t(()=>yhe,"isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName"),isRootedDiskPath:t(()=>sp,"isRootedDiskPath"),isSameEntityName:t(()=>MA,"isSameEntityName"),isSatisfiesExpression:t(()=>o6,"isSatisfiesExpression"),isSemicolonClassElement:t(()=>Zge,"isSemicolonClassElement"),isSetAccessor:t(()=>jh,"isSetAccessor"),isSetAccessorDeclaration:t(()=>J_,"isSetAccessorDeclaration"),isShiftOperatorOrHigher:t(()=>QZ,"isShiftOperatorOrHigher"),isShorthandAmbientModuleSymbol:t(()=>iF,"isShorthandAmbientModuleSymbol"),isShorthandPropertyAssignment:t(()=>df,"isShorthandPropertyAssignment"),isSideEffectImport:t(()=>fZ,"isSideEffectImport"),isSignedNumericLiteral:t(()=>lU,"isSignedNumericLiteral"),isSimpleCopiableExpression:t(()=>gx,"isSimpleCopiableExpression"),isSimpleInlineableExpression:t(()=>rg,"isSimpleInlineableExpression"),isSimpleParameterList:t(()=>eL,"isSimpleParameterList"),isSingleOrDoubleQuote:t(()=>SF,"isSingleOrDoubleQuote"),isSolutionConfig:t(()=>xQ,"isSolutionConfig"),isSourceElement:t(()=>dge,"isSourceElement"),isSourceFile:t(()=>Yi,"isSourceFile"),isSourceFileFromLibrary:t(()=>V6,"isSourceFileFromLibrary"),isSourceFileJS:t(()=>r_,"isSourceFileJS"),isSourceFileNotJson:t(()=>eU,"isSourceFileNotJson"),isSourceMapping:t(()=>Hye,"isSourceMapping"),isSpecialPropertyDeclaration:t(()=>$me,"isSpecialPropertyDeclaration"),isSpreadAssignment:t(()=>K0,"isSpreadAssignment"),isSpreadElement:t(()=>jd,"isSpreadElement"),isStatement:t(()=>$i,"isStatement"),isStatementButNotDeclaration:t(()=>Z7,"isStatementButNotDeclaration"),isStatementOrBlock:t(()=>Yde,"isStatementOrBlock"),isStatementWithLocals:t(()=>ame,"isStatementWithLocals"),isStatic:t(()=>da,"isStatic"),isStaticModifier:t(()=>tD,"isStaticModifier"),isString:t(()=>Fs,"isString"),isStringANonContextualKeyword:t(()=>Fw,"isStringANonContextualKeyword"),isStringAndEmptyAnonymousObjectIntersection:t(()=>Cbe,"isStringAndEmptyAnonymousObjectIntersection"),isStringDoubleQuoted:t(()=>rU,"isStringDoubleQuoted"),isStringLiteral:t(()=>Na,"isStringLiteral"),isStringLiteralLike:t(()=>uo,"isStringLiteralLike"),isStringLiteralOrJsxExpression:t(()=>Xde,"isStringLiteralOrJsxExpression"),isStringLiteralOrTemplate:t(()=>qbe,"isStringLiteralOrTemplate"),isStringOrNumericLiteralLike:t(()=>rd,"isStringOrNumericLiteralLike"),isStringOrRegularExpressionOrTemplateLiteral:t(()=>Yte,"isStringOrRegularExpressionOrTemplateLiteral"),isStringTextContainingNode:t(()=>sK,"isStringTextContainingNode"),isSuperCall:t(()=>rC,"isSuperCall"),isSuperKeyword:t(()=>h3,"isSuperKeyword"),isSuperProperty:t(()=>U_,"isSuperProperty"),isSupportedSourceFileName:t(()=>KX,"isSupportedSourceFileName"),isSwitchStatement:t(()=>S3,"isSwitchStatement"),isSyntaxList:t(()=>d6,"isSyntaxList"),isSyntheticExpression:t(()=>LFe,"isSyntheticExpression"),isSyntheticReference:t(()=>cD,"isSyntheticReference"),isTagName:t(()=>jte,"isTagName"),isTaggedTemplateExpression:t(()=>GS,"isTaggedTemplateExpression"),isTaggedTemplateTag:t(()=>ube,"isTaggedTemplateTag"),isTemplateExpression:t(()=>Sz,"isTemplateExpression"),isTemplateHead:t(()=>Qw,"isTemplateHead"),isTemplateLiteral:t(()=>bw,"isTemplateLiteral"),isTemplateLiteralKind:t(()=>bb,"isTemplateLiteralKind"),isTemplateLiteralToken:t(()=>Fde,"isTemplateLiteralToken"),isTemplateLiteralTypeNode:t(()=>Yge,"isTemplateLiteralTypeNode"),isTemplateLiteralTypeSpan:t(()=>PZ,"isTemplateLiteralTypeSpan"),isTemplateMiddle:t(()=>CZ,"isTemplateMiddle"),isTemplateMiddleOrTemplateTail:t(()=>gB,"isTemplateMiddleOrTemplateTail"),isTemplateSpan:t(()=>c6,"isTemplateSpan"),isTemplateTail:t(()=>dz,"isTemplateTail"),isTextWhiteSpaceLike:t(()=>Nbe,"isTextWhiteSpaceLike"),isThis:t(()=>M6,"isThis"),isThisContainerOrFunctionBlock:t(()=>Lme,"isThisContainerOrFunctionBlock"),isThisIdentifier:t(()=>Ob,"isThisIdentifier"),isThisInTypeQuery:t(()=>ZT,"isThisInTypeQuery"),isThisInitializedDeclaration:t(()=>YB,"isThisInitializedDeclaration"),isThisInitializedObjectBindingExpression:t(()=>Mme,"isThisInitializedObjectBindingExpression"),isThisProperty:t(()=>dF,"isThisProperty"),isThisTypeNode:t(()=>y3,"isThisTypeNode"),isThisTypeParameter:t(()=>o3,"isThisTypeParameter"),isThisTypePredicate:t(()=>Ime,"isThisTypePredicate"),isThrowStatement:t(()=>OZ,"isThrowStatement"),isToken:t(()=>gw,"isToken"),isTokenKind:t(()=>nK,"isTokenKind"),isTraceEnabled:t(()=>Wb,"isTraceEnabled"),isTransientSymbol:t(()=>L0,"isTransientSymbol"),isTrivia:t(()=>$A,"isTrivia"),isTryStatement:t(()=>TC,"isTryStatement"),isTupleTypeNode:t(()=>iD,"isTupleTypeNode"),isTypeAlias:t(()=>AF,"isTypeAlias"),isTypeAliasDeclaration:t(()=>um,"isTypeAliasDeclaration"),isTypeAssertionExpression:t(()=>bz,"isTypeAssertionExpression"),isTypeDeclaration:t(()=>Vw,"isTypeDeclaration"),isTypeElement:t(()=>MT,"isTypeElement"),isTypeKeyword:t(()=>s8,"isTypeKeyword"),isTypeKeywordTokenOrIdentifier:t(()=>SJ,"isTypeKeywordTokenOrIdentifier"),isTypeLiteralNode:t(()=>s_,"isTypeLiteralNode"),isTypeNode:t(()=>Pi,"isTypeNode"),isTypeNodeKind:t(()=>LX,"isTypeNodeKind"),isTypeOfExpression:t(()=>s6,"isTypeOfExpression"),isTypeOnlyExportDeclaration:t(()=>Lde,"isTypeOnlyExportDeclaration"),isTypeOnlyImportDeclaration:t(()=>xA,"isTypeOnlyImportDeclaration"),isTypeOnlyImportOrExportDeclaration:t(()=>V1,"isTypeOnlyImportOrExportDeclaration"),isTypeOperatorNode:t(()=>HS,"isTypeOperatorNode"),isTypeParameterDeclaration:t(()=>lc,"isTypeParameterDeclaration"),isTypePredicateNode:t(()=>nD,"isTypePredicateNode"),isTypeQueryNode:t(()=>ax,"isTypeQueryNode"),isTypeReferenceNode:t(()=>fp,"isTypeReferenceNode"),isTypeReferenceType:t(()=>kB,"isTypeReferenceType"),isTypeUsableAsPropertyName:t(()=>Ld,"isTypeUsableAsPropertyName"),isUMDExportSymbol:t(()=>AU,"isUMDExportSymbol"),isUnaryExpression:t(()=>fK,"isUnaryExpression"),isUnaryExpressionWithWrite:t(()=>$de,"isUnaryExpressionWithWrite"),isUnicodeIdentifierStart:t(()=>iB,"isUnicodeIdentifierStart"),isUnionTypeNode:t(()=>nv,"isUnionTypeNode"),isUrl:t(()=>Ype,"isUrl"),isValidBigIntString:t(()=>XU,"isValidBigIntString"),isValidESSymbolDeclaration:t(()=>Pme,"isValidESSymbolDeclaration"),isValidTypeOnlyAliasUseSite:t(()=>WS,"isValidTypeOnlyAliasUseSite"),isValueSignatureDeclaration:t(()=>cC,"isValueSignatureDeclaration"),isVarAwaitUsing:t(()=>lF,"isVarAwaitUsing"),isVarConst:t(()=>IA,"isVarConst"),isVarConstLike:t(()=>Cme,"isVarConstLike"),isVarUsing:t(()=>uF,"isVarUsing"),isVariableDeclaration:t(()=>Ti,"isVariableDeclaration"),isVariableDeclarationInVariableStatement:t(()=>C4,"isVariableDeclarationInVariableStatement"),isVariableDeclarationInitializedToBareOrAccessedRequire:t(()=>qT,"isVariableDeclarationInitializedToBareOrAccessedRequire"),isVariableDeclarationInitializedToRequire:t(()=>vF,"isVariableDeclarationInitializedToRequire"),isVariableDeclarationList:t(()=>ju,"isVariableDeclarationList"),isVariableLike:t(()=>E4,"isVariableLike"),isVariableStatement:t(()=>rl,"isVariableStatement"),isVoidExpression:t(()=>aD,"isVoidExpression"),isWatchSet:t(()=>IX,"isWatchSet"),isWhileStatement:t(()=>IZ,"isWhileStatement"),isWhiteSpaceLike:t(()=>A0,"isWhiteSpaceLike"),isWhiteSpaceSingleLine:t(()=>Rh,"isWhiteSpaceSingleLine"),isWithStatement:t(()=>Qge,"isWithStatement"),isWriteAccess:t(()=>Bw,"isWriteAccess"),isWriteOnlyAccess:t(()=>PU,"isWriteOnlyAccess"),isYieldExpression:t(()=>x5,"isYieldExpression"),jsxModeNeedsExplicitImport:t(()=>Ire,"jsxModeNeedsExplicitImport"),keywordPart:t(()=>hp,"keywordPart"),last:t(()=>za,"last"),lastOrUndefined:t(()=>ic,"lastOrUndefined"),length:t(()=>$e,"length"),libMap:t(()=>oQ,"libMap"),libs:t(()=>Bz,"libs"),lineBreakPart:t(()=>J6,"lineBreakPart"),loadModuleFromGlobalCache:t(()=>Pye,"loadModuleFromGlobalCache"),loadWithModeAwareCache:t(()=>fL,"loadWithModeAwareCache"),makeIdentifierFromModuleName:t(()=>pme,"makeIdentifierFromModuleName"),makeImport:t(()=>Xb,"makeImport"),makeStringLiteral:t(()=>a8,"makeStringLiteral"),mangleScopedPackageName:t(()=>C6,"mangleScopedPackageName"),map:t(()=>Ar,"map"),mapAllOrFail:t(()=>iw,"mapAllOrFail"),mapDefined:t(()=>Wi,"mapDefined"),mapDefinedIterator:t(()=>D0,"mapDefinedIterator"),mapEntries:t(()=>h_e,"mapEntries"),mapIterator:t(()=>DT,"mapIterator"),mapOneOrMany:t(()=>Dre,"mapOneOrMany"),mapToDisplayParts:t(()=>f2,"mapToDisplayParts"),matchFiles:t(()=>HX,"matchFiles"),matchPatternOrExact:t(()=>ZX,"matchPatternOrExact"),matchedText:t(()=>A_e,"matchedText"),matchesExclude:t(()=>Zz,"matchesExclude"),matchesExcludeWorker:t(()=>Qz,"matchesExcludeWorker"),maxBy:t(()=>rY,"maxBy"),maybeBind:t(()=>la,"maybeBind"),maybeSetLocalizedDiagnosticMessages:t(()=>Lhe,"maybeSetLocalizedDiagnosticMessages"),memoize:t(()=>Mf,"memoize"),memoizeOne:t(()=>Lh,"memoizeOne"),min:t(()=>nY,"min"),minAndMax:t(()=>tge,"minAndMax"),missingFileModifiedTime:t(()=>ip,"missingFileModifiedTime"),modifierToFlag:t(()=>Mw,"modifierToFlag"),modifiersToFlags:t(()=>Vh,"modifiersToFlags"),moduleExportNameIsDefault:t(()=>Wg,"moduleExportNameIsDefault"),moduleExportNameTextEscaped:t(()=>zT,"moduleExportNameTextEscaped"),moduleExportNameTextUnescaped:t(()=>Db,"moduleExportNameTextUnescaped"),moduleOptionDeclaration:t(()=>B0e,"moduleOptionDeclaration"),moduleResolutionIsEqualTo:t(()=>ime,"moduleResolutionIsEqualTo"),moduleResolutionNameAndModeGetter:t(()=>P$,"moduleResolutionNameAndModeGetter"),moduleResolutionOptionDeclarations:t(()=>lQ,"moduleResolutionOptionDeclarations"),moduleResolutionSupportsPackageJsonExportsAndImports:t(()=>XA,"moduleResolutionSupportsPackageJsonExportsAndImports"),moduleResolutionUsesNodeModules:t(()=>TJ,"moduleResolutionUsesNodeModules"),moduleSpecifierToValidIdentifier:t(()=>$L,"moduleSpecifierToValidIdentifier"),moduleSpecifiers:t(()=>Zy,"moduleSpecifiers"),moduleSupportsImportAttributes:t(()=>$he,"moduleSupportsImportAttributes"),moduleSymbolToValidIdentifier:t(()=>zL,"moduleSymbolToValidIdentifier"),moveEmitHelpers:t(()=>Nge,"moveEmitHelpers"),moveRangeEnd:t(()=>wU,"moveRangeEnd"),moveRangePastDecorators:t(()=>qy,"moveRangePastDecorators"),moveRangePastModifiers:t(()=>Hh,"moveRangePastModifiers"),moveRangePos:t(()=>JS,"moveRangePos"),moveSyntheticComments:t(()=>Dge,"moveSyntheticComments"),mutateMap:t(()=>G4,"mutateMap"),mutateMapSkippingNewValues:t(()=>$0,"mutateMapSkippingNewValues"),needsParentheses:t(()=>DJ,"needsParentheses"),needsScopeMarker:t(()=>bB,"needsScopeMarker"),newCaseClauseTracker:t(()=>UJ,"newCaseClauseTracker"),newPrivateEnvironment:t(()=>Zye,"newPrivateEnvironment"),noEmitNotification:t(()=>iL,"noEmitNotification"),noEmitSubstitution:t(()=>q3,"noEmitSubstitution"),noTransformers:t(()=>P1e,"noTransformers"),noTruncationMaximumTruncationLength:t(()=>gK,"noTruncationMaximumTruncationLength"),nodeCanBeDecorated:t(()=>hF,"nodeCanBeDecorated"),nodeCoreModules:t(()=>t6,"nodeCoreModules"),nodeHasName:t(()=>U7,"nodeHasName"),nodeIsDecorated:t(()=>LA,"nodeIsDecorated"),nodeIsMissing:t(()=>$c,"nodeIsMissing"),nodeIsPresent:t(()=>im,"nodeIsPresent"),nodeIsSynthesized:t(()=>Mo,"nodeIsSynthesized"),nodeModuleNameResolver:t(()=>Tye,"nodeModuleNameResolver"),nodeModulesPathPart:t(()=>X0,"nodeModulesPathPart"),nodeNextJsonConfigResolver:t(()=>xye,"nodeNextJsonConfigResolver"),nodeOrChildIsDecorated:t(()=>gF,"nodeOrChildIsDecorated"),nodeOverlapsWithStartEnd:t(()=>uJ,"nodeOverlapsWithStartEnd"),nodePosToString:t(()=>z7e,"nodePosToString"),nodeSeenTracker:t(()=>U6,"nodeSeenTracker"),nodeStartsNewLexicalEnvironment:t(()=>sX,"nodeStartsNewLexicalEnvironment"),noop:t(()=>go,"noop"),noopFileWatcher:t(()=>F6,"noopFileWatcher"),normalizePath:t(()=>Sa,"normalizePath"),normalizeSlashes:t(()=>Ru,"normalizeSlashes"),normalizeSpans:t(()=>VY,"normalizeSpans"),not:t(()=>Wj,"not"),notImplemented:t(()=>ba,"notImplemented"),notImplementedResolver:t(()=>F1e,"notImplementedResolver"),nullNodeConverters:t(()=>Cge,"nullNodeConverters"),nullParenthesizerRules:t(()=>xge,"nullParenthesizerRules"),nullTransformationContext:t(()=>aL,"nullTransformationContext"),objectAllocator:t(()=>Ku,"objectAllocator"),operatorPart:t(()=>c8,"operatorPart"),optionDeclarations:t(()=>Rm,"optionDeclarations"),optionMapToObject:t(()=>Vz,"optionMapToObject"),optionsAffectingProgramStructure:t(()=>W0e,"optionsAffectingProgramStructure"),optionsForBuild:t(()=>fQ,"optionsForBuild"),optionsForWatch:t(()=>mD,"optionsForWatch"),optionsHaveChanges:t(()=>xw,"optionsHaveChanges"),or:t(()=>np,"or"),orderedRemoveItem:t(()=>VI,"orderedRemoveItem"),orderedRemoveItemAt:t(()=>pb,"orderedRemoveItemAt"),packageIdToPackageName:t(()=>IB,"packageIdToPackageName"),packageIdToString:t(()=>LS,"packageIdToString"),parameterIsThisKeyword:t(()=>Ib,"parameterIsThisKeyword"),parameterNamePart:t(()=>Obe,"parameterNamePart"),parseBaseNodeFactory:t(()=>O0e,"parseBaseNodeFactory"),parseBigInt:t(()=>nge,"parseBigInt"),parseBuildCommand:t(()=>Z0e,"parseBuildCommand"),parseCommandLine:t(()=>K0e,"parseCommandLine"),parseCommandLineWorker:t(()=>pQ,"parseCommandLineWorker"),parseConfigFileTextToJson:t(()=>mQ,"parseConfigFileTextToJson"),parseConfigFileWithSystem:t(()=>vve,"parseConfigFileWithSystem"),parseConfigHostFromCompilerHostLike:t(()=>L$,"parseConfigHostFromCompilerHostLike"),parseCustomTypeOption:t(()=>Jz,"parseCustomTypeOption"),parseIsolatedEntityName:t(()=>dD,"parseIsolatedEntityName"),parseIsolatedJSDocComment:t(()=>L0e,"parseIsolatedJSDocComment"),parseJSDocTypeExpressionForTests:t(()=>y5e,"parseJSDocTypeExpressionForTests"),parseJsonConfigFileContent:t(()=>H5e,"parseJsonConfigFileContent"),parseJsonSourceFileConfigFileContent:t(()=>J5,"parseJsonSourceFileConfigFileContent"),parseJsonText:t(()=>M5,"parseJsonText"),parseListTypeOption:t(()=>G0e,"parseListTypeOption"),parseNodeFactory:t(()=>r2,"parseNodeFactory"),parseNodeModuleFromPath:t(()=>H5,"parseNodeModuleFromPath"),parsePackageName:t(()=>a$,"parsePackageName"),parsePseudoBigInt:t(()=>n3,"parsePseudoBigInt"),parseValidBigInt:t(()=>rZ,"parseValidBigInt"),pasteEdits:t(()=>Nie,"pasteEdits"),patchWriteFileEnsuringDirectory:t(()=>Gpe,"patchWriteFileEnsuringDirectory"),pathContainsNodeModules:t(()=>Vb,"pathContainsNodeModules"),pathIsAbsolute:t(()=>t4,"pathIsAbsolute"),pathIsBareSpecifier:t(()=>RY,"pathIsBareSpecifier"),pathIsRelative:t(()=>Op,"pathIsRelative"),patternText:t(()=>P_e,"patternText"),performIncrementalCompilation:t(()=>bve,"performIncrementalCompilation"),performance:t(()=>j_e,"performance"),positionBelongsToNode:t(()=>$te,"positionBelongsToNode"),positionIsASICandidate:t(()=>NJ,"positionIsASICandidate"),positionIsSynthesized:t(()=>ih,"positionIsSynthesized"),positionsAreOnSameLine:t(()=>Od,"positionsAreOnSameLine"),preProcessFile:t(()=>nje,"preProcessFile"),probablyUsesSemicolons:t(()=>BL,"probablyUsesSemicolons"),processCommentPragmas:t(()=>sQ,"processCommentPragmas"),processPragmasIntoFields:t(()=>aQ,"processPragmasIntoFields"),processTaggedTemplateExpression:t(()=>cee,"processTaggedTemplateExpression"),programContainsEsModules:t(()=>Pbe,"programContainsEsModules"),programContainsModules:t(()=>Dbe,"programContainsModules"),projectReferenceIsEqualTo:t(()=>yK,"projectReferenceIsEqualTo"),propertyNamePart:t(()=>Fbe,"propertyNamePart"),pseudoBigIntToString:t(()=>nx,"pseudoBigIntToString"),punctuationPart:t(()=>wf,"punctuationPart"),pushIfUnique:t(()=>Cd,"pushIfUnique"),quote:t(()=>f8,"quote"),quotePreferenceFromString:t(()=>sre,"quotePreferenceFromString"),rangeContainsPosition:t(()=>j6,"rangeContainsPosition"),rangeContainsPositionExclusive:t(()=>kL,"rangeContainsPositionExclusive"),rangeContainsRange:t(()=>w_,"rangeContainsRange"),rangeContainsRangeExclusive:t(()=>mbe,"rangeContainsRangeExclusive"),rangeContainsStartEnd:t(()=>wL,"rangeContainsStartEnd"),rangeEndIsOnSameLineAsRangeStart:t(()=>YF,"rangeEndIsOnSameLineAsRangeStart"),rangeEndPositionsAreOnSameLine:t(()=>Ehe,"rangeEndPositionsAreOnSameLine"),rangeEquals:t(()=>YG,"rangeEquals"),rangeIsOnSingleLine:t(()=>_C,"rangeIsOnSingleLine"),rangeOfNode:t(()=>eZ,"rangeOfNode"),rangeOfTypeParameters:t(()=>tZ,"rangeOfTypeParameters"),rangeOverlapsWithStartEnd:t(()=>r8,"rangeOverlapsWithStartEnd"),rangeStartIsOnSameLineAsRangeEnd:t(()=>Che,"rangeStartIsOnSameLineAsRangeEnd"),rangeStartPositionsAreOnSameLine:t(()=>DU,"rangeStartPositionsAreOnSameLine"),readBuilderProgram:t(()=>V$,"readBuilderProgram"),readConfigFile:t(()=>z5,"readConfigFile"),readJson:t(()=>HA,"readJson"),readJsonConfigFile:t(()=>Q0e,"readJsonConfigFile"),readJsonOrUndefined:t(()=>wX,"readJsonOrUndefined"),reduceEachLeadingCommentRange:t(()=>nde,"reduceEachLeadingCommentRange"),reduceEachTrailingCommentRange:t(()=>ide,"reduceEachTrailingCommentRange"),reduceLeft:t(()=>e_,"reduceLeft"),reduceLeftIterator:t(()=>Fn,"reduceLeftIterator"),reducePathComponents:t(()=>pw,"reducePathComponents"),refactor:t(()=>PD,"refactor"),regExpEscape:t(()=>hFe,"regExpEscape"),regularExpressionFlagToCharacterCode:t(()=>m7e,"regularExpressionFlagToCharacterCode"),relativeComplement:t(()=>g_e,"relativeComplement"),removeAllComments:t(()=>m5,"removeAllComments"),removeEmitHelper:t(()=>NFe,"removeEmitHelper"),removeExtension:t(()=>o5,"removeExtension"),removeFileExtension:t(()=>Jf,"removeFileExtension"),removeIgnoredPath:t(()=>B$,"removeIgnoredPath"),removeMinAndVersionNumbers:t(()=>aY,"removeMinAndVersionNumbers"),removePrefix:t(()=>HI,"removePrefix"),removeSuffix:t(()=>pA,"removeSuffix"),removeTrailingDirectorySeparator:t(()=>q1,"removeTrailingDirectorySeparator"),repeatString:t(()=>NL,"repeatString"),replaceElement:t(()=>ZG,"replaceElement"),replaceFirstStar:t(()=>dC,"replaceFirstStar"),resolutionExtensionIsTSOrJson:t(()=>Q4,"resolutionExtensionIsTSOrJson"),resolveConfigFileProjectName:t(()=>_te,"resolveConfigFileProjectName"),resolveJSModule:t(()=>vye,"resolveJSModule"),resolveLibrary:t(()=>s$,"resolveLibrary"),resolveModuleName:t(()=>AC,"resolveModuleName"),resolveModuleNameFromCache:t(()=>xLe,"resolveModuleNameFromCache"),resolvePackageNameToPackageJson:t(()=>wQ,"resolvePackageNameToPackageJson"),resolvePath:t(()=>mb,"resolvePath"),resolveProjectReferencePath:t(()=>SD,"resolveProjectReferencePath"),resolveTripleslashReference:t(()=>Cee,"resolveTripleslashReference"),resolveTypeReferenceDirective:t(()=>mye,"resolveTypeReferenceDirective"),resolvingEmptyArray:t(()=>hK,"resolvingEmptyArray"),returnFalse:t(()=>Ly,"returnFalse"),returnNoopFileWatcher:t(()=>Z3,"returnNoopFileWatcher"),returnTrue:t(()=>NT,"returnTrue"),returnUndefined:t(()=>IT,"returnUndefined"),returnsPromise:t(()=>Vre,"returnsPromise"),rewriteModuleSpecifier:t(()=>yD,"rewriteModuleSpecifier"),sameFlatMap:t(()=>v7,"sameFlatMap"),sameMap:t(()=>bc,"sameMap"),sameMapping:t(()=>pRe,"sameMapping"),scanTokenAtPosition:t(()=>Eme,"scanTokenAtPosition"),scanner:t(()=>Bu,"scanner"),semanticDiagnosticsOptionDeclarations:t(()=>z0e,"semanticDiagnosticsOptionDeclarations"),serializeCompilerOptions:t(()=>Hz,"serializeCompilerOptions"),server:t(()=>sYe,"server"),servicesVersion:t(()=>VBe,"servicesVersion"),setCommentRange:t(()=>jl,"setCommentRange"),setConfigFileInOptions:t(()=>SQ,"setConfigFileInOptions"),setConstantValue:t(()=>Age,"setConstantValue"),setEmitFlags:t(()=>wn,"setEmitFlags"),setGetSourceFileAsHashVersioned:t(()=>q$,"setGetSourceFileAsHashVersioned"),setIdentifierAutoGenerate:t(()=>y5,"setIdentifierAutoGenerate"),setIdentifierGeneratedImportReference:t(()=>Fge,"setIdentifierGeneratedImportReference"),setIdentifierTypeArguments:t(()=>rv,"setIdentifierTypeArguments"),setInternalEmitFlags:t(()=>h5,"setInternalEmitFlags"),setLocalizedDiagnosticMessages:t(()=>Fhe,"setLocalizedDiagnosticMessages"),setNodeChildren:t(()=>f0e,"setNodeChildren"),setNodeFlags:t(()=>age,"setNodeFlags"),setObjectAllocator:t(()=>Ohe,"setObjectAllocator"),setOriginalNode:t(()=>Vn,"setOriginalNode"),setParent:t(()=>mo,"setParent"),setParentRecursive:t(()=>qS,"setParentRecursive"),setPrivateIdentifier:t(()=>IC,"setPrivateIdentifier"),setSnippetElement:t(()=>TZ,"setSnippetElement"),setSourceMapRange:t(()=>Wa,"setSourceMapRange"),setStackTraceLimit:t(()=>ZOe,"setStackTraceLimit"),setStartsOnNewLine:t(()=>uz,"setStartsOnNewLine"),setSyntheticLeadingComments:t(()=>VS,"setSyntheticLeadingComments"),setSyntheticTrailingComments:t(()=>Kw,"setSyntheticTrailingComments"),setSys:t(()=>i7e,"setSys"),setSysLog:t(()=>qpe,"setSysLog"),setTextRange:t(()=>Et,"setTextRange"),setTextRangeEnd:t(()=>e6,"setTextRangeEnd"),setTextRangePos:t(()=>i3,"setTextRangePos"),setTextRangePosEnd:t(()=>sh,"setTextRangePosEnd"),setTextRangePosWidth:t(()=>nZ,"setTextRangePosWidth"),setTokenSourceMapRange:t(()=>wge,"setTokenSourceMapRange"),setTypeNode:t(()=>Ige,"setTypeNode"),setUILocale:t(()=>k_e,"setUILocale"),setValueDeclaration:t(()=>wF,"setValueDeclaration"),shouldAllowImportingTsExtension:t(()=>k6,"shouldAllowImportingTsExtension"),shouldPreserveConstEnums:t(()=>Lb,"shouldPreserveConstEnums"),shouldRewriteModuleSpecifier:t(()=>PF,"shouldRewriteModuleSpecifier"),shouldUseUriStyleNodeCoreModules:t(()=>jJ,"shouldUseUriStyleNodeCoreModules"),showModuleSpecifier:t(()=>Ahe,"showModuleSpecifier"),signatureHasRestParameter:t(()=>kf,"signatureHasRestParameter"),signatureToDisplayParts:t(()=>hre,"signatureToDisplayParts"),single:t(()=>XG,"single"),singleElementArray:t(()=>uw,"singleElementArray"),singleIterator:t(()=>m_e,"singleIterator"),singleOrMany:t(()=>Bg,"singleOrMany"),singleOrUndefined:t(()=>jg,"singleOrUndefined"),skipAlias:t(()=>Yu,"skipAlias"),skipConstraint:t(()=>rre,"skipConstraint"),skipOuterExpressions:t(()=>il,"skipOuterExpressions"),skipParentheses:t(()=>po,"skipParentheses"),skipPartiallyEmittedExpressions:t(()=>Pm,"skipPartiallyEmittedExpressions"),skipTrivia:t(()=>Ma,"skipTrivia"),skipTypeChecking:t(()=>QA,"skipTypeChecking"),skipTypeCheckingIgnoringNoCheck:t(()=>rge,"skipTypeCheckingIgnoringNoCheck"),skipTypeParentheses:t(()=>I4,"skipTypeParentheses"),skipWhile:t(()=>I_e,"skipWhile"),sliceAfter:t(()=>QX,"sliceAfter"),some:t(()=>xt,"some"),sortAndDeduplicate:t(()=>qI,"sortAndDeduplicate"),sortAndDeduplicateDiagnostics:t(()=>bA,"sortAndDeduplicateDiagnostics"),sourceFileAffectingCompilerOptions:t(()=>uQ,"sourceFileAffectingCompilerOptions"),sourceFileMayBeEmitted:t(()=>KT,"sourceFileMayBeEmitted"),sourceMapCommentRegExp:t(()=>KQ,"sourceMapCommentRegExp"),sourceMapCommentRegExpDontCareLineStart:t(()=>Wye,"sourceMapCommentRegExpDontCareLineStart"),spacePart:t(()=>Qc,"spacePart"),spanMap:t(()=>qG,"spanMap"),startEndContainsRange:t(()=>AX,"startEndContainsRange"),startEndOverlapsWithStartEnd:t(()=>fJ,"startEndOverlapsWithStartEnd"),startOnNewLine:t(()=>Cf,"startOnNewLine"),startTracing:t(()=>$_e,"startTracing"),startsWith:t(()=>_s,"startsWith"),startsWithDirectory:t(()=>BY,"startsWithDirectory"),startsWithUnderscore:t(()=>Nre,"startsWithUnderscore"),startsWithUseStrict:t(()=>y0e,"startsWithUseStrict"),stringContainsAt:t(()=>Zbe,"stringContainsAt"),stringToToken:t(()=>VE,"stringToToken"),stripQuotes:t(()=>om,"stripQuotes"),supportedDeclarationExtensions:t(()=>HU,"supportedDeclarationExtensions"),supportedJSExtensionsFlat:t(()=>ZA,"supportedJSExtensionsFlat"),supportedLocaleDirectories:t(()=>vde,"supportedLocaleDirectories"),supportedTSExtensionsFlat:t(()=>GX,"supportedTSExtensionsFlat"),supportedTSImplementationExtensions:t(()=>i5,"supportedTSImplementationExtensions"),suppressLeadingAndTrailingTrivia:t(()=>gp,"suppressLeadingAndTrailingTrivia"),suppressLeadingTrivia:t(()=>bre,"suppressLeadingTrivia"),suppressTrailingTrivia:t(()=>$be,"suppressTrailingTrivia"),symbolEscapedNameNoDefault:t(()=>xJ,"symbolEscapedNameNoDefault"),symbolName:t(()=>tl,"symbolName"),symbolNameNoDefault:t(()=>ore,"symbolNameNoDefault"),symbolToDisplayParts:t(()=>l8,"symbolToDisplayParts"),sys:t(()=>nu,"sys"),sysLog:t(()=>D7,"sysLog"),tagNamesAreEquivalent:t(()=>i2,"tagNamesAreEquivalent"),takeWhile:t(()=>lY,"takeWhile"),targetOptionDeclaration:t(()=>cQ,"targetOptionDeclaration"),targetToLibMap:t(()=>sde,"targetToLibMap"),testFormatSettings:t(()=>EMe,"testFormatSettings"),textChangeRangeIsUnchanged:t(()=>dde,"textChangeRangeIsUnchanged"),textChangeRangeNewSpan:t(()=>l4,"textChangeRangeNewSpan"),textChanges:t(()=>Cn,"textChanges"),textOrKeywordPart:t(()=>mre,"textOrKeywordPart"),textPart:t(()=>ld,"textPart"),textRangeContainsPositionInclusive:t(()=>R7,"textRangeContainsPositionInclusive"),textRangeContainsTextSpan:t(()=>cde,"textRangeContainsTextSpan"),textRangeIntersectsWithTextSpan:t(()=>_de,"textRangeIntersectsWithTextSpan"),textSpanContainsPosition:t(()=>WY,"textSpanContainsPosition"),textSpanContainsTextRange:t(()=>qY,"textSpanContainsTextRange"),textSpanContainsTextSpan:t(()=>ode,"textSpanContainsTextSpan"),textSpanEnd:t(()=>Lc,"textSpanEnd"),textSpanIntersection:t(()=>pde,"textSpanIntersection"),textSpanIntersectsWith:t(()=>M7,"textSpanIntersectsWith"),textSpanIntersectsWithPosition:t(()=>fde,"textSpanIntersectsWithPosition"),textSpanIntersectsWithTextSpan:t(()=>ude,"textSpanIntersectsWithTextSpan"),textSpanIsEmpty:t(()=>ade,"textSpanIsEmpty"),textSpanOverlap:t(()=>lde,"textSpanOverlap"),textSpanOverlapsWith:t(()=>x7e,"textSpanOverlapsWith"),textSpansEqual:t(()=>$6,"textSpansEqual"),textToKeywordObj:t(()=>nB,"textToKeywordObj"),timestamp:t(()=>jo,"timestamp"),toArray:t(()=>cw,"toArray"),toBuilderFileEmit:t(()=>cve,"toBuilderFileEmit"),toBuilderStateFileInfoForMultiEmit:t(()=>ove,"toBuilderStateFileInfoForMultiEmit"),toEditorSettings:t(()=>KL,"toEditorSettings"),toFileNameLowerCase:t(()=>ub,"toFileNameLowerCase"),toPath:t(()=>Bo,"toPath"),toProgramEmitPending:t(()=>lve,"toProgramEmitPending"),toSorted:t(()=>rp,"toSorted"),tokenIsIdentifierOrKeyword:t(()=>T_,"tokenIsIdentifierOrKeyword"),tokenIsIdentifierOrKeywordOrGreaterThan:t(()=>Xpe,"tokenIsIdentifierOrKeywordOrGreaterThan"),tokenToString:t(()=>xa,"tokenToString"),trace:t(()=>ks,"trace"),tracing:t(()=>En,"tracing"),tracingEnabled:t(()=>w7,"tracingEnabled"),transferSourceFileChildren:t(()=>_0e,"transferSourceFileChildren"),transform:t(()=>rUe,"transform"),transformClassFields:t(()=>c1e,"transformClassFields"),transformDeclarations:t(()=>_ee,"transformDeclarations"),transformECMAScriptModule:t(()=>fee,"transformECMAScriptModule"),transformES2015:t(()=>T1e,"transformES2015"),transformES2016:t(()=>S1e,"transformES2016"),transformES2017:t(()=>_1e,"transformES2017"),transformES2018:t(()=>p1e,"transformES2018"),transformES2019:t(()=>d1e,"transformES2019"),transformES2020:t(()=>m1e,"transformES2020"),transformES2021:t(()=>h1e,"transformES2021"),transformESDecorators:t(()=>f1e,"transformESDecorators"),transformESNext:t(()=>g1e,"transformESNext"),transformGenerators:t(()=>x1e,"transformGenerators"),transformImpliedNodeFormatDependentModule:t(()=>C1e,"transformImpliedNodeFormatDependentModule"),transformJsx:t(()=>b1e,"transformJsx"),transformLegacyDecorators:t(()=>u1e,"transformLegacyDecorators"),transformModule:t(()=>uee,"transformModule"),transformNamedEvaluation:t(()=>pp,"transformNamedEvaluation"),transformNodes:t(()=>sL,"transformNodes"),transformSystemModule:t(()=>E1e,"transformSystemModule"),transformTypeScript:t(()=>o1e,"transformTypeScript"),transpile:t(()=>_je,"transpile"),transpileDeclaration:t(()=>uje,"transpileDeclaration"),transpileModule:t(()=>SSe,"transpileModule"),transpileOptionValueCompilerOptions:t(()=>q0e,"transpileOptionValueCompilerOptions"),tryAddToSet:t(()=>W1,"tryAddToSet"),tryAndIgnoreErrors:t(()=>FJ,"tryAndIgnoreErrors"),tryCast:t(()=>si,"tryCast"),tryDirectoryExists:t(()=>OJ,"tryDirectoryExists"),tryExtractTSExtension:t(()=>CU,"tryExtractTSExtension"),tryFileExists:t(()=>p8,"tryFileExists"),tryGetClassExtendingExpressionWithTypeArguments:t(()=>xX,"tryGetClassExtendingExpressionWithTypeArguments"),tryGetClassImplementingOrExtendingExpressionWithTypeArguments:t(()=>EX,"tryGetClassImplementingOrExtendingExpressionWithTypeArguments"),tryGetDirectories:t(()=>IJ,"tryGetDirectories"),tryGetExtensionFromPath:t(()=>V0,"tryGetExtensionFromPath"),tryGetImportFromModuleSpecifier:t(()=>DF,"tryGetImportFromModuleSpecifier"),tryGetJSDocSatisfiesTypeNode:t(()=>rz,"tryGetJSDocSatisfiesTypeNode"),tryGetModuleNameFromFile:t(()=>N5,"tryGetModuleNameFromFile"),tryGetModuleSpecifierFromDeclaration:t(()=>Pw,"tryGetModuleSpecifierFromDeclaration"),tryGetNativePerformanceHooks:t(()=>M_e,"tryGetNativePerformanceHooks"),tryGetPropertyAccessOrIdentifierToString:t(()=>GF,"tryGetPropertyAccessOrIdentifierToString"),tryGetPropertyNameOfBindingOrAssignmentElement:t(()=>Fz,"tryGetPropertyNameOfBindingOrAssignmentElement"),tryGetSourceMappingURL:t(()=>qye,"tryGetSourceMappingURL"),tryGetTextOfPropertyName:t(()=>x4,"tryGetTextOfPropertyName"),tryParseJson:t(()=>kU,"tryParseJson"),tryParsePattern:t(()=>qw,"tryParsePattern"),tryParsePatterns:t(()=>c5,"tryParsePatterns"),tryParseRawSourceMap:t(()=>Vye,"tryParseRawSourceMap"),tryReadDirectory:t(()=>Ere,"tryReadDirectory"),tryReadFile:t(()=>A3,"tryReadFile"),tryRemoveDirectoryPrefix:t(()=>WX,"tryRemoveDirectoryPrefix"),tryRemoveExtension:t(()=>ege,"tryRemoveExtension"),tryRemovePrefix:t(()=>cY,"tryRemovePrefix"),tryRemoveSuffix:t(()=>D_e,"tryRemoveSuffix"),tscBuildOption:t(()=>DC,"tscBuildOption"),typeAcquisitionDeclarations:t(()=>zz,"typeAcquisitionDeclarations"),typeAliasNamePart:t(()=>Lbe,"typeAliasNamePart"),typeDirectiveIsEqualTo:t(()=>sme,"typeDirectiveIsEqualTo"),typeKeywords:t(()=>tre,"typeKeywords"),typeParameterNamePart:t(()=>Rbe,"typeParameterNamePart"),typeToDisplayParts:t(()=>LL,"typeToDisplayParts"),unchangedPollThresholds:t(()=>Kj,"unchangedPollThresholds"),unchangedTextChangeRange:t(()=>oB,"unchangedTextChangeRange"),unescapeLeadingUnderscores:t(()=>Zi,"unescapeLeadingUnderscores"),unmangleScopedPackageName:t(()=>Y5,"unmangleScopedPackageName"),unorderedRemoveItem:t(()=>lw,"unorderedRemoveItem"),unprefixedNodeCoreModules:t(()=>yge,"unprefixedNodeCoreModules"),unreachableCodeIsError:t(()=>Uhe,"unreachableCodeIsError"),unsetNodeChildren:t(()=>JZ,"unsetNodeChildren"),unusedLabelIsError:t(()=>zhe,"unusedLabelIsError"),unwrapInnermostStatementOfLabel:t(()=>BK,"unwrapInnermostStatementOfLabel"),unwrapParenthesizedExpression:t(()=>hge,"unwrapParenthesizedExpression"),updateErrorForNoInputFiles:t(()=>Xz,"updateErrorForNoInputFiles"),updateLanguageServiceSourceFile:t(()=>vne,"updateLanguageServiceSourceFile"),updateMissingFilePathsWatch:t(()=>Tee,"updateMissingFilePathsWatch"),updateResolutionField:t(()=>S6,"updateResolutionField"),updateSharedExtendedConfigFileWatcher:t(()=>C$,"updateSharedExtendedConfigFileWatcher"),updateSourceFile:t(()=>nQ,"updateSourceFile"),updateWatchingWildcardDirectories:t(()=>cL,"updateWatchingWildcardDirectories"),usingSingleLineStringWriter:t(()=>DA,"usingSingleLineStringWriter"),utf16EncodeAsString:t(()=>c4,"utf16EncodeAsString"),validateLocaleAndSetLanguage:t(()=>GY,"validateLocaleAndSetLanguage"),version:t(()=>Se,"version"),versionMajorMinor:t(()=>G,"versionMajorMinor"),visitArray:t(()=>j3,"visitArray"),visitCommaListElements:t(()=>Z5,"visitCommaListElements"),visitEachChild:t(()=>Ur,"visitEachChild"),visitFunctionBody:t(()=>cd,"visitFunctionBody"),visitIterationBody:t(()=>o_,"visitIterationBody"),visitLexicalEnvironment:t(()=>YQ,"visitLexicalEnvironment"),visitNode:t(()=>ut,"visitNode"),visitNodes:t(()=>rn,"visitNodes"),visitParameterList:t(()=>qc,"visitParameterList"),walkUpBindingElementsAndPatterns:t(()=>hw,"walkUpBindingElementsAndPatterns"),walkUpOuterExpressions:t(()=>v0e,"walkUpOuterExpressions"),walkUpParenthesizedExpressions:t(()=>Nm,"walkUpParenthesizedExpressions"),walkUpParenthesizedTypes:t(()=>OF,"walkUpParenthesizedTypes"),walkUpParenthesizedTypesAndGetParentAndChild:t(()=>Kme,"walkUpParenthesizedTypesAndGetParentAndChild"),whitespaceOrMapCommentRegExp:t(()=>XQ,"whitespaceOrMapCommentRegExp"),writeCommentRange:t(()=>VA,"writeCommentRange"),writeFile:t(()=>vU,"writeFile"),writeFileEnsuringDirectories:t(()=>hX,"writeFileEnsuringDirectories"),zipWith:t(()=>sn,"zipWith")}),o.exports=F(J);var G="5.8",Se="5.8.2",de=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(de||{}),ae=[],Ke=new Map;function $e(e){return e!==void 0?e.length:0}t($e,"length");function Fe(e,r){if(e!==void 0)for(let i=0;i<e.length;i++){let a=r(e[i],i);if(a)return a}}t(Fe,"forEach");function Gt(e,r){if(e!==void 0)for(let i=e.length-1;i>=0;i--){let a=r(e[i],i);if(a)return a}}t(Gt,"forEachRight");function jt(e,r){if(e!==void 0)for(let i=0;i<e.length;i++){let a=r(e[i],i);if(a!==void 0)return a}}t(jt,"firstDefined");function Pr(e,r){for(let i of e){let a=r(i);if(a!==void 0)return a}}t(Pr,"firstDefinedIterator");function Fn(e,r,i){let a=i;if(e){let c=0;for(let u of e)a=r(a,u,c),c++}return a}t(Fn,"reduceLeftIterator");function sn(e,r,i){let a=[];L.assertEqual(e.length,r.length);for(let c=0;c<e.length;c++)a.push(i(e[c],r[c],c));return a}t(sn,"zipWith");function Un(e,r){if(e.length<=1)return e;let i=[];for(let a=0,c=e.length;a<c;a++)a!==0&&i.push(r),i.push(e[a]);return i}t(Un,"intersperse");function Er(e,r){if(e!==void 0){for(let i=0;i<e.length;i++)if(!r(e[i],i))return!1}return!0}t(Er,"every");function vr(e,r,i){if(e!==void 0)for(let a=i??0;a<e.length;a++){let c=e[a];if(r(c,a))return c}}t(vr,"find");function ls(e,r,i){if(e!==void 0)for(let a=i??e.length-1;a>=0;a--){let c=e[a];if(r(c,a))return c}}t(ls,"findLast");function Ni(e,r,i){if(e===void 0)return-1;for(let a=i??0;a<e.length;a++)if(r(e[a],a))return a;return-1}t(Ni,"findIndex");function nc(e,r,i){if(e===void 0)return-1;for(let a=i??e.length-1;a>=0;a--)if(r(e[a],a))return a;return-1}t(nc,"findLastIndex");function bi(e,r,i=fb){if(e!==void 0){for(let a=0;a<e.length;a++)if(i(e[a],r))return!0}return!1}t(bi,"contains");function Qf(e,r,i){for(let a=i??0;a<e.length;a++)if(bi(r,e.charCodeAt(a)))return a;return-1}t(Qf,"indexOfAnyCharCode");function S_(e,r){let i=0;if(e!==void 0)for(let a=0;a<e.length;a++){let c=e[a];r(c,a)&&i++}return i}t(S_,"countWhere");function Ln(e,r){if(e!==void 0){let i=e.length,a=0;for(;a<i&&r(e[a]);)a++;if(a<i){let c=e.slice(0,a);for(a++;a<i;){let u=e[a];r(u)&&c.push(u),a++}return c}}return e}t(Ln,"filter");function zE(e,r){let i=0;for(let a=0;a<e.length;a++)r(e[a],a,e)&&(e[i]=e[a],i++);e.length=i}t(zE,"filterMutate");function Fl(e){e.length=0}t(Fl,"clear");function Ar(e,r){let i;if(e!==void 0){i=[];for(let a=0;a<e.length;a++)i.push(r(e[a],a))}return i}t(Ar,"map");function*DT(e,r){for(let i of e)yield r(i)}t(DT,"mapIterator");function bc(e,r){if(e!==void 0)for(let i=0;i<e.length;i++){let a=e[i],c=r(a,i);if(a!==c){let u=e.slice(0,i);for(u.push(c),i++;i<e.length;i++)u.push(r(e[i],i));return u}}return e}t(bc,"sameMap");function Zp(e){let r=[];for(let i=0;i<e.length;i++){let a=e[i];a&&(Bs(a)?Zn(r,a):r.push(a))}return r}t(Zp,"flatten");function Hs(e,r){let i;if(e!==void 0)for(let a=0;a<e.length;a++){let c=r(e[a],a);c&&(Bs(c)?i=Zn(i,c):i=Kr(i,c))}return i??ae}t(Hs,"flatMap");function Oh(e,r){let i=[];if(e!==void 0)for(let a=0;a<e.length;a++){let c=r(e[a],a);c&&(Bs(c)?Zn(i,c):i.push(c))}return i}t(Oh,"flatMapToMutable");function*w0(e,r){for(let i of e){let a=r(i);a&&(yield*a)}}t(w0,"flatMapIterator");function v7(e,r){let i;if(e!==void 0)for(let a=0;a<e.length;a++){let c=e[a],u=r(c,a);(i||c!==u||Bs(u))&&(i||(i=e.slice(0,a)),Bs(u)?Zn(i,u):i.push(u))}return i??e}t(v7,"sameFlatMap");function iw(e,r){let i=[];for(let a=0;a<e.length;a++){let c=r(e[a],a);if(c===void 0)return;i.push(c)}return i}t(iw,"mapAllOrFail");function Wi(e,r){let i=[];if(e!==void 0)for(let a=0;a<e.length;a++){let c=r(e[a],a);c!==void 0&&i.push(c)}return i}t(Wi,"mapDefined");function*D0(e,r){for(let i of e){let a=r(i);a!==void 0&&(yield a)}}t(D0,"mapDefinedIterator");function PT(e,r,i){if(e.has(r))return e.get(r);let a=i();return e.set(r,a),a}t(PT,"getOrUpdate");function W1(e,r){return e.has(r)?!1:(e.add(r),!0)}t(W1,"tryAddToSet");function*m_e(e){yield e}t(m_e,"singleIterator");function qG(e,r,i){let a;if(e!==void 0){a=[];let c=e.length,u,_,h=0,m=0;for(;h<c;){for(;m<c;){let T=e[m];if(_=r(T,m),m===0)u=_;else if(_!==u)break;m++}if(h<m){let T=i(e.slice(h,m),u,h,m);T&&a.push(T),h=m}u=_,m++}}return a}t(qG,"spanMap");function h_e(e,r){if(e===void 0)return;let i=new Map;return e.forEach((a,c)=>{let[u,_]=r(c,a);i.set(u,_)}),i}t(h_e,"mapEntries");function xt(e,r){if(e!==void 0)if(r!==void 0){for(let i=0;i<e.length;i++)if(r(e[i]))return!0}else return e.length>0;return!1}t(xt,"some");function VG(e,r,i){let a;for(let c=0;c<e.length;c++)r(e[c])?a=a===void 0?c:a:a!==void 0&&(i(a,c),a=void 0);a!==void 0&&i(a,e.length)}t(VG,"getRangesWhere");function fs(e,r){return r===void 0||r.length===0?e:e===void 0||e.length===0?r:[...e,...r]}t(fs,"concatenate");function uSt(e,r){return r}t(uSt,"selectIndex");function jj(e){return e.map(uSt)}t(jj,"indicesOf");function fSt(e,r,i){let a=jj(e);dSt(e,a,i);let c=e[a[0]],u=[a[0]];for(let _=1;_<a.length;_++){let h=a[_],m=e[h];r(c,m)||(u.push(h),c=m)}return u.sort(),u.map(_=>e[_])}t(fSt,"deduplicateRelational");function _St(e,r){let i=[];for(let a=0;a<e.length;a++)Cd(i,e[a],r);return i}t(_St,"deduplicateEquality");function AT(e,r,i){return e.length===0?[]:e.length===1?e.slice():i?fSt(e,r,i):_St(e,r)}t(AT,"deduplicate");function pSt(e,r){if(e.length===0)return ae;let i=e[0],a=[i];for(let c=1;c<e.length;c++){let u=e[c];switch(r(u,i)){case!0:case 0:continue;case-1:return L.fail("Array is unsorted.")}a.push(i=u)}return a}t(pSt,"deduplicateSorted");function HG(){return[]}t(HG,"createSortedArray");function ab(e,r,i,a,c){if(e.length===0)return e.push(r),!0;let u=cb(e,r,Wo,i);if(u<0){if(a&&!c){let _=~u;if(_>0&&a(r,e[_-1]))return!1;if(_<e.length&&a(r,e[_]))return e.splice(_,1,r),!0}return e.splice(~u,0,r),!0}return c?(e.splice(u,0,r),!0):!1}t(ab,"insertSorted");function qI(e,r,i){return pSt(rp(e,r),i??r??lf)}t(qI,"sortAndDeduplicate");function Qp(e,r,i=fb){if(e===void 0||r===void 0)return e===r;if(e.length!==r.length)return!1;for(let a=0;a<e.length;a++)if(!i(e[a],r[a],a))return!1;return!0}t(Qp,"arrayIsEqualTo");function b7(e){let r;if(e!==void 0)for(let i=0;i<e.length;i++){let a=e[i];(r??!a)&&(r??(r=e.slice(0,i)),a&&r.push(a))}return r??e}t(b7,"compact");function g_e(e,r,i){if(!r||!e||r.length===0||e.length===0)return r;let a=[];e:for(let c=0,u=0;u<r.length;u++){u>0&&L.assertGreaterThanOrEqual(i(r[u],r[u-1]),0);t:for(let _=c;c<e.length;c++)switch(c>_&&L.assertGreaterThanOrEqual(i(e[c],e[c-1]),0),i(r[u],e[c])){case-1:a.push(r[u]);continue e;case 0:continue e;case 1:continue t}}return a}t(g_e,"relativeComplement");function Kr(e,r){return r===void 0?e:e===void 0?[r]:(e.push(r),e)}t(Kr,"append");function sw(e,r){return e===void 0?r:r===void 0?e:Bs(e)?Bs(r)?fs(e,r):Kr(e,r):Bs(r)?Kr(r,e):[e,r]}t(sw,"combine");function y_e(e,r){return r<0?e.length+r:r}t(y_e,"toOffset");function Zn(e,r,i,a){if(r===void 0||r.length===0)return e;if(e===void 0)return r.slice(i,a);i=i===void 0?0:y_e(r,i),a=a===void 0?r.length:y_e(r,a);for(let c=i;c<a&&c<r.length;c++)r[c]!==void 0&&e.push(r[c]);return e}t(Zn,"addRange");function Cd(e,r,i){return bi(e,r,i)?!1:(e.push(r),!0)}t(Cd,"pushIfUnique");function Fy(e,r,i){return e!==void 0?(Cd(e,r,i),e):[r]}t(Fy,"appendIfUnique");function dSt(e,r,i){r.sort((a,c)=>i(e[a],e[c])||qo(a,c))}t(dSt,"stableSortIndices");function rp(e,r){return e.length===0?ae:e.slice().sort(r)}t(rp,"toSorted");function*GG(e){for(let r=e.length-1;r>=0;r--)yield e[r]}t(GG,"arrayReverseIterator");function YG(e,r,i,a){for(;i<a;){if(e[i]!==r[i])return!1;i++}return!0}t(YG,"rangeEquals");var ob=Array.prototype.at?(e,r)=>e?.at(r):(e,r)=>{if(e!==void 0&&(r=y_e(e,r),r<e.length))return e[r]};function Ll(e){return e===void 0||e.length===0?void 0:e[0]}t(Ll,"firstOrUndefined");function S7(e){if(e!==void 0)for(let r of e)return r}t(S7,"firstOrUndefinedIterator");function Ga(e){return L.assert(e.length!==0),e[0]}t(Ga,"first");function KG(e){for(let r of e)return r;L.fail("iterator is empty")}t(KG,"firstIterator");function ic(e){return e===void 0||e.length===0?void 0:e[e.length-1]}t(ic,"lastOrUndefined");function za(e){return L.assert(e.length!==0),e[e.length-1]}t(za,"last");function jg(e){return e!==void 0&&e.length===1?e[0]:void 0}t(jg,"singleOrUndefined");function XG(e){return L.checkDefined(jg(e))}t(XG,"single");function Bg(e){return e!==void 0&&e.length===1?e[0]:e}t(Bg,"singleOrMany");function ZG(e,r,i){let a=e.slice(0);return a[r]=i,a}t(ZG,"replaceElement");function cb(e,r,i,a,c){return aw(e,i(r),i,a,c)}t(cb,"binarySearch");function aw(e,r,i,a,c){if(!xt(e))return-1;let u=c??0,_=e.length-1;for(;u<=_;){let h=u+(_-u>>1),m=i(e[h],h);switch(a(m,r)){case-1:u=h+1;break;case 0:return h;case 1:_=h-1;break}}return~u}t(aw,"binarySearchKey");function e_(e,r,i,a,c){if(e&&e.length>0){let u=e.length;if(u>0){let _=a===void 0||a<0?0:a,h=c===void 0||_+c>u-1?u-1:_+c,m;for(arguments.length<=2?(m=e[_],_++):m=i;_<=h;)m=r(m,e[_],_),_++;return m}}return i}t(e_,"reduceLeft");var PS=Object.prototype.hasOwnProperty;function Ro(e,r){return PS.call(e,r)}t(Ro,"hasProperty");function Bj(e,r){return PS.call(e,r)?e[r]:void 0}t(Bj,"getProperty");function Fh(e){let r=[];for(let i in e)PS.call(e,i)&&r.push(i);return r}t(Fh,"getOwnKeys");function ROe(e){let r=[];do{let i=Object.getOwnPropertyNames(e);for(let a of i)Cd(r,a)}while(e=Object.getPrototypeOf(e));return r}t(ROe,"getAllKeys");function ow(e){let r=[];for(let i in e)PS.call(e,i)&&r.push(e[i]);return r}t(ow,"getOwnValues");function v_e(e,r){let i=new Array(e);for(let a=0;a<e;a++)i[a]=r(a);return i}t(v_e,"arrayOf");function Ps(e,r){let i=[];for(let a of e)i.push(r?r(a):a);return i}t(Ps,"arrayFrom");function $E(e,...r){for(let i of r)if(i!==void 0)for(let a in i)Ro(i,a)&&(e[a]=i[a]);return e}t($E,"assign");function b_e(e,r,i=fb){if(e===r)return!0;if(!e||!r)return!1;for(let a in e)if(PS.call(e,a)&&(!PS.call(r,a)||!i(e[a],r[a])))return!1;for(let a in r)if(PS.call(r,a)&&!PS.call(e,a))return!1;return!0}t(b_e,"equalOwnProperties");function uA(e,r,i=Wo){let a=new Map;for(let c=0;c<e.length;c++){let u=e[c],_=r(u);_!==void 0&&a.set(_,i(u))}return a}t(uA,"arrayToMap");function S_e(e,r,i=Wo){let a=[];for(let c=0;c<e.length;c++){let u=e[c];a[r(u)]=i(u)}return a}t(S_e,"arrayToNumericMap");function T7(e,r,i=Wo){let a=tm();for(let c=0;c<e.length;c++){let u=e[c];a.add(r(u),i(u))}return a}t(T7,"arrayToMultiMap");function fA(e,r,i=Wo){return Ps(T7(e,r).values(),i)}t(fA,"group");function QG(e,r){let i={};if(e!==void 0)for(let a=0;a<e.length;a++){let c=e[a],u=`${r(c)}`;(i[u]??(i[u]=[])).push(c)}return i}t(QG,"groupBy");function T_e(e){let r={};for(let i in e)PS.call(e,i)&&(r[i]=e[i]);return r}t(T_e,"clone");function Uj(e,r){let i={};for(let a in r)PS.call(r,a)&&(i[a]=r[a]);for(let a in e)PS.call(e,a)&&(i[a]=e[a]);return i}t(Uj,"extend");function eY(e,r){for(let i in r)PS.call(r,i)&&(e[i]=r[i])}t(eY,"copyProperties");function la(e,r){return r?.bind(e)}t(la,"maybeBind");function tm(){let e=new Map;return e.add=mSt,e.remove=hSt,e}t(tm,"createMultiMap");function mSt(e,r){let i=this.get(e);return i!==void 0?i.push(r):this.set(e,i=[r]),i}t(mSt,"multiMapAdd");function hSt(e,r){let i=this.get(e);i!==void 0&&(lw(i,r),i.length||this.delete(e))}t(hSt,"multiMapRemove");function x7(e){let r=e?.slice()??[],i=0;function a(){return i===r.length}t(a,"isEmpty");function c(..._){r.push(..._)}t(c,"enqueue");function u(){if(a())throw new Error("Queue is empty");let _=r[i];if(r[i]=void 0,i++,i>100&&i>r.length>>1){let h=r.length-i;r.copyWithin(0,i),r.length=h,i=0}return _}return t(u,"dequeue"),{enqueue:c,dequeue:u,isEmpty:a}}t(x7,"createQueue");function tY(e,r){let i=new Map,a=0;function*c(){for(let _ of i.values())Bs(_)?yield*_:yield _}t(c,"getElementIterator");let u={has(_){let h=e(_);if(!i.has(h))return!1;let m=i.get(h);return Bs(m)?bi(m,_,r):r(m,_)},add(_){let h=e(_);if(i.has(h)){let m=i.get(h);if(Bs(m))bi(m,_,r)||(m.push(_),a++);else{let T=m;r(T,_)||(i.set(h,[T,_]),a++)}}else i.set(h,_),a++;return this},delete(_){let h=e(_);if(!i.has(h))return!1;let m=i.get(h);if(Bs(m)){for(let T=0;T<m.length;T++)if(r(m[T],_))return m.length===1?i.delete(h):m.length===2?i.set(h,m[1-T]):BOe(m,T),a--,!0}else if(r(m,_))return i.delete(h),a--,!0;return!1},clear(){i.clear(),a=0},get size(){return a},forEach(_){for(let h of Ps(i.values()))if(Bs(h))for(let m of h)_(m,m,u);else{let m=h;_(m,m,u)}},keys(){return c()},values(){return c()},*entries(){for(let _ of c())yield[_,_]},[Symbol.iterator]:()=>c(),[Symbol.toStringTag]:i[Symbol.toStringTag]};return u}t(tY,"createSet");function Bs(e){return Array.isArray(e)}t(Bs,"isArray");function cw(e){return Bs(e)?e:[e]}t(cw,"toArray");function Fs(e){return typeof e=="string"}t(Fs,"isString");function lb(e){return typeof e=="number"}t(lb,"isNumber");function si(e,r){return e!==void 0&&r(e)?e:void 0}t(si,"tryCast");function ga(e,r){return e!==void 0&&r(e)?e:L.fail(`Invalid cast. The supplied value ${e} did not pass the test '${L.getFunctionName(r)}'.`)}t(ga,"cast");function go(e){}t(go,"noop");function Ly(){return!1}t(Ly,"returnFalse");function NT(){return!0}t(NT,"returnTrue");function IT(){}t(IT,"returnUndefined");function Wo(e){return e}t(Wo,"identity");function gSt(e){return e.toLowerCase()}t(gSt,"toLowerCase");var MOe=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g;function ub(e){return MOe.test(e)?e.replace(MOe,gSt):e}t(ub,"toFileNameLowerCase");function ba(){throw new Error("Not implemented")}t(ba,"notImplemented");function Mf(e){let r;return()=>(e&&(r=e(),e=void 0),r)}t(Mf,"memoize");function Lh(e){let r=new Map;return i=>{let a=`${typeof i}:${i}`,c=r.get(a);return c===void 0&&!r.has(a)&&(c=e(i),r.set(a,c)),c}}t(Lh,"memoizeOne");var x_e=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(x_e||{});function fb(e,r){return e===r}t(fb,"equateValues");function _b(e,r){return e===r||e!==void 0&&r!==void 0&&e.toUpperCase()===r.toUpperCase()}t(_b,"equateStringsCaseInsensitive");function OT(e,r){return fb(e,r)}t(OT,"equateStringsCaseSensitive");function jOe(e,r){return e===r?0:e===void 0?-1:r===void 0?1:e<r?-1:1}t(jOe,"compareComparableValues");function qo(e,r){return jOe(e,r)}t(qo,"compareValues");function zj(e,r){return qo(e?.start,r?.start)||qo(e?.length,r?.length)}t(zj,"compareTextSpans");function rY(e,r,i){for(let a=0;a<e.length;a++)r=Math.max(r,i(e[a]));return r}t(rY,"maxBy");function nY(e,r){return e_(e,(i,a)=>r(i,a)===-1?i:a)}t(nY,"min");function E7(e,r){return e===r?0:e===void 0?-1:r===void 0?1:(e=e.toUpperCase(),r=r.toUpperCase(),e<r?-1:e>r?1:0)}t(E7,"compareStringsCaseInsensitive");function E_e(e,r){return e===r?0:e===void 0?-1:r===void 0?1:(e=e.toLowerCase(),r=r.toLowerCase(),e<r?-1:e>r?1:0)}t(E_e,"compareStringsCaseInsensitiveEslintCompatible");function lf(e,r){return jOe(e,r)}t(lf,"compareStringsCaseSensitive");function _A(e){return e?E7:lf}t(_A,"getStringComparer");var ySt=(()=>{return r;function e(i,a,c){if(i===a)return 0;if(i===void 0)return-1;if(a===void 0)return 1;let u=c(i,a);return u<0?-1:u>0?1:0}function r(i){let a=new Intl.Collator(i,{usage:"sort",sensitivity:"variant",numeric:!0}).compare;return(c,u)=>e(c,u,a)}})(),iY,sY;function C_e(){return sY}t(C_e,"getUILocale");function k_e(e){sY!==e&&(sY=e,iY=void 0)}t(k_e,"setUILocale");function C7(e,r){return iY??(iY=ySt(sY)),iY(e,r)}t(C7,"compareStringsCaseSensitiveUI");function w_e(e,r,i,a){return e===r?0:e===void 0?-1:r===void 0?1:a(e[i],r[i])}t(w_e,"compareProperties");function AS(e,r){return qo(e?1:0,r?1:0)}t(AS,"compareBooleans");function FT(e,r,i){let a=Math.max(2,Math.floor(e.length*.34)),c=Math.floor(e.length*.4)+1,u;for(let _ of r){let h=i(_);if(h!==void 0&&Math.abs(h.length-e.length)<=a){if(h===e||h.length<3&&h.toLowerCase()!==e.toLowerCase())continue;let m=vSt(e,h,c-.1);if(m===void 0)continue;L.assert(m<c),c=m,u=_}}return u}t(FT,"getSpellingSuggestion");function vSt(e,r,i){let a=new Array(r.length+1),c=new Array(r.length+1),u=i+.01;for(let h=0;h<=r.length;h++)a[h]=h;for(let h=1;h<=e.length;h++){let m=e.charCodeAt(h-1),T=Math.ceil(h>i?h-i:1),S=Math.floor(r.length>i+h?i+h:r.length);c[0]=h;let E=h;for(let A=1;A<T;A++)c[A]=u;for(let A=T;A<=S;A++){let I=e[h-1].toLowerCase()===r[A-1].toLowerCase()?a[A-1]+.1:a[A-1]+2,R=m===r.charCodeAt(A-1)?a[A-1]:Math.min(a[A]+1,c[A-1]+1,I);c[A]=R,E=Math.min(E,R)}for(let A=S+1;A<=r.length;A++)c[A]=u;if(E>i)return;let D=a;a=c,c=D}let _=a[r.length];return _>i?void 0:_}t(vSt,"levenshteinWithMax");function sc(e,r,i){let a=e.length-r.length;return a>=0&&(i?_b(e.slice(a),r):e.indexOf(r,a)===a)}t(sc,"endsWith");function pA(e,r){return sc(e,r)?e.slice(0,e.length-r.length):e}t(pA,"removeSuffix");function D_e(e,r){return sc(e,r)?e.slice(0,e.length-r.length):void 0}t(D_e,"tryRemoveSuffix");function aY(e){let r=e.length;for(let i=r-1;i>0;i--){let a=e.charCodeAt(i);if(a>=48&&a<=57)do--i,a=e.charCodeAt(i);while(i>0&&a>=48&&a<=57);else if(i>4&&(a===110||a===78)){if(--i,a=e.charCodeAt(i),a!==105&&a!==73||(--i,a=e.charCodeAt(i),a!==109&&a!==77))break;--i,a=e.charCodeAt(i)}else break;if(a!==45&&a!==46)break;r=i}return r===e.length?e:e.slice(0,r)}t(aY,"removeMinAndVersionNumbers");function VI(e,r){for(let i=0;i<e.length;i++)if(e[i]===r)return pb(e,i),!0;return!1}t(VI,"orderedRemoveItem");function pb(e,r){for(let i=r;i<e.length-1;i++)e[i]=e[i+1];e.pop()}t(pb,"orderedRemoveItemAt");function BOe(e,r){e[r]=e[e.length-1],e.pop()}t(BOe,"unorderedRemoveItemAt");function lw(e,r){return bSt(e,i=>i===r)}t(lw,"unorderedRemoveItem");function bSt(e,r){for(let i=0;i<e.length;i++)if(r(e[i]))return BOe(e,i),!0;return!1}t(bSt,"unorderedRemoveFirstItemWhere");function Hu(e){return e?Wo:ub}t(Hu,"createGetCanonicalFileName");function P_e({prefix:e,suffix:r}){return`${e}*${r}`}t(P_e,"patternText");function A_e(e,r){return L.assert($j(e,r)),r.substring(e.prefix.length,r.length-e.suffix.length)}t(A_e,"matchedText");function oY(e,r,i){let a,c=-1;for(let u=0;u<e.length;u++){let _=e[u],h=r(_);h.prefix.length>c&&$j(h,i)&&(c=h.prefix.length,a=_)}return a}t(oY,"findBestPatternMatch");function _s(e,r,i){return i?_b(e.slice(0,r.length),r):e.lastIndexOf(r,0)===0}t(_s,"startsWith");function HI(e,r){return _s(e,r)?e.substr(r.length):e}t(HI,"removePrefix");function cY(e,r,i=Wo){return _s(i(e),i(r))?e.substring(r.length):void 0}t(cY,"tryRemovePrefix");function $j({prefix:e,suffix:r},i){return i.length>=e.length+r.length&&_s(i,e)&&sc(i,r)}t($j,"isPatternMatch");function Jj(e,r){return i=>e(i)&&r(i)}t(Jj,"and");function np(...e){return(...r)=>{let i;for(let a of e)if(i=a(...r),i)return i;return i}}t(np,"or");function Wj(e){return(...r)=>!e(...r)}t(Wj,"not");function UOe(e){}t(UOe,"assertType");function uw(e){return e===void 0?void 0:[e]}t(uw,"singleElementArray");function qj(e,r,i,a,c,u){u??(u=go);let _=0,h=0,m=e.length,T=r.length,S=!1;for(;_<m&&h<T;){let E=e[_],D=r[h],A=i(E,D);A===-1?(a(E),_++,S=!0):A===1?(c(D),h++,S=!0):(u(D,E),_++,h++)}for(;_<m;)a(e[_++]),S=!0;for(;h<T;)c(r[h++]),S=!0;return S}t(qj,"enumerateInsertsAndDeletes");function N_e(e){let r=[];return zOe(e,r,void 0,0),r}t(N_e,"cartesianProduct");function zOe(e,r,i,a){for(let c of e[a]){let u;i?(u=i.slice(),u.push(c)):u=[c],a===e.length-1?r.push(u):zOe(e,r,u,a+1)}}t(zOe,"cartesianProductWorker");function lY(e,r){if(e!==void 0){let i=e.length,a=0;for(;a<i&&r(e[a]);)a++;return e.slice(0,a)}}t(lY,"takeWhile");function I_e(e,r){if(e!==void 0){let i=e.length,a=0;for(;a<i&&r(e[a]);)a++;return e.slice(a)}}t(I_e,"skipWhile");function uY(){return typeof process<"u"&&!!process.nextTick&&!process.browser&&typeof _o<"u"}t(uY,"isNodeLikeSystem");var O_e=(e=>(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(O_e||{}),L;(e=>{let r=0;e.currentLogLevel=2,e.isDebugging=!1;function i(rt){return e.currentLogLevel<=rt}t(i,"shouldLog"),e.shouldLog=i;function a(rt,Pt){e.loggingHost&&i(rt)&&e.loggingHost.log(rt,Pt)}t(a,"logMessage");function c(rt){a(3,rt)}t(c,"log"),e.log=c,(rt=>{function Pt(fi){a(1,fi)}t(Pt,"error2"),rt.error=Pt;function br(fi){a(2,fi)}t(br,"warn"),rt.warn=br;function pn(fi){a(3,fi)}t(pn,"log2"),rt.log=pn;function pi(fi){a(4,fi)}t(pi,"trace2"),rt.trace=pi})(c=e.log||(e.log={}));let u={};function _(){return r}t(_,"getAssertionLevel"),e.getAssertionLevel=_;function h(rt){let Pt=r;if(r=rt,rt>Pt)for(let br of Fh(u)){let pn=u[br];pn!==void 0&&e[br]!==pn.assertion&&rt>=pn.level&&(e[br]=pn,u[br]=void 0)}}t(h,"setAssertionLevel"),e.setAssertionLevel=h;function m(rt){return r>=rt}t(m,"shouldAssert"),e.shouldAssert=m;function T(rt,Pt){return m(rt)?!0:(u[Pt]={level:rt,assertion:e[Pt]},e[Pt]=go,!1)}t(T,"shouldAssertFunction");function S(rt,Pt){debugger;let br=new Error(rt?`Debug Failure. ${rt}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(br,Pt||S),br}t(S,"fail"),e.fail=S;function E(rt,Pt,br){return S(`${Pt||"Unexpected node."}\r
|
|
@@ -567,18 +567,18 @@ globstar while`,s,ae,f,Ke,$e),this.matchOne(s.slice(ae),f.slice(Ke),d))return th
|
|
|
567
567
|
>>> no match, partial?`,s,ae,f,Ke),ae===J))}let Fe;if(typeof Se=="string"?(Fe=de===Se,this.debug("string match",Se,de,Fe)):(Fe=Se.test(de),this.debug("pattern match",Se,de,Fe)),!Fe)return!1}if(P===J&&F===G)return!0;if(P===J)return d;if(F===G)return P===J-1&&s[P]==="";throw new Error("wtf?")}braceExpand(){return unt(this.pattern,this.options)}parse(s){bV(s);let f=this.options;if(s==="**")return T0;if(s==="")return"";let d,y=null;(d=s.match(gYt))?y=f.dot?vYt:yYt:(d=s.match(oYt))?y=(f.nocase?f.dot?fYt:uYt:f.dot?lYt:cYt)(d[1]):(d=s.match(bYt))?y=(f.nocase?f.dot?TYt:SYt:f.dot?xYt:EYt)(d):(d=s.match(_Yt))?y=f.dot?dYt:pYt:(d=s.match(mYt))&&(y=hYt);let x=z9.fromGlob(s,this.options).toMMPattern();return y&&typeof x=="object"&&Reflect.defineProperty(x,"test",{value:y}),x}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let s=this.set;if(!s.length)return this.regexp=!1,this.regexp;let f=this.options,d=f.noglobstar?wYt:f.dot?DYt:PYt,y=new Set(f.nocase?["i"]:[]),x=s.map(J=>{let G=J.map(Se=>{if(Se instanceof RegExp)for(let de of Se.flags.split(""))y.add(de);return typeof Se=="string"?FYt(Se):Se===T0?T0:Se._src});return G.forEach((Se,de)=>{let ae=G[de+1],Ke=G[de-1];Se!==T0||Ke===T0||(Ke===void 0?ae!==void 0&&ae!==T0?G[de+1]="(?:\\/|"+d+"\\/)?"+ae:G[de]=d:ae===void 0?G[de-1]=Ke+"(?:\\/|"+d+")?":ae!==T0&&(G[de-1]=Ke+"(?:\\/|\\/"+d+"\\/)"+ae,G[de+1]=T0))}),G.filter(Se=>Se!==T0).join("/")}).join("|"),[P,F]=s.length>1?["(?:",")"]:["",""];x="^"+P+x+F+"$",this.negate&&(x="^(?!"+x+").+$");try{this.regexp=new RegExp(x,[...y].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(s){return this.preserveMultipleSlashes?s.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(s)?["",...s.split(/\/+/)]:s.split(/\/+/)}match(s,f=this.partial){if(this.debug("match",s,this.pattern),this.comment)return!1;if(this.empty)return s==="";if(s==="/"&&f)return!0;let d=this.options;this.isWindows&&(s=s.split("\\").join("/"));let y=this.slashSplit(s);this.debug(this.pattern,"split",y);let x=this.set;this.debug(this.pattern,"set",x);let P=y[y.length-1];if(!P)for(let F=y.length-2;!P&&F>=0;F--)P=y[F];for(let F=0;F<x.length;F++){let J=x[F],G=y;if(d.matchBase&&J.length===1&&(G=[P]),this.matchOne(G,J,f))return d.flipNegate?!0:!this.negate}return d.flipNegate?!1:this.negate}static defaults(s){return P1.defaults(s).Minimatch}};P1.AST=z9;P1.Minimatch=ES;P1.escape=$9;P1.unescape=hE;import{fileURLToPath as _Kt}from"node:url";var J9=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,_nt=new Set,LPe=typeof process=="object"&&process?process:{},pnt=t((o,s,f,d)=>{typeof LPe.emitWarning=="function"?LPe.emitWarning(o,s,f,d):console.error(`[${f}] ${s}: ${o}`)},"emitWarning"),Soe=globalThis.AbortController,fnt=globalThis.AbortSignal;if(typeof Soe>"u"){fnt=class{static{t(this,"AbortSignal")}onabort;_onabort=[];reason;aborted=!1;addEventListener(d,y){this._onabort.push(y)}},Soe=class{static{t(this,"AbortController")}constructor(){s()}signal=new fnt;abort(d){if(!this.signal.aborted){this.signal.reason=d,this.signal.aborted=!0;for(let y of this.signal._onabort)y(d);this.signal.onabort?.(d)}}};let o=LPe.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",s=t(()=>{o&&(o=!1,pnt("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",s))},"warnACPolyfill")}var LYt=t(o=>!_nt.has(o),"shouldWarn"),vEr=Symbol("type"),qN=t(o=>o&&o===Math.floor(o)&&o>0&&isFinite(o),"isPosInt"),dnt=t(o=>qN(o)?o<=Math.pow(2,8)?Uint8Array:o<=Math.pow(2,16)?Uint16Array:o<=Math.pow(2,32)?Uint32Array:o<=Number.MAX_SAFE_INTEGER?W9:null:null,"getUintArray"),W9=class extends Array{static{t(this,"ZeroArray")}constructor(s){super(s),this.fill(0)}},RPe=class o{static{t(this,"Stack")}heap;length;static#e=!1;static create(s){let f=dnt(s);if(!f)return[];o.#e=!0;let d=new o(s,f);return o.#e=!1,d}constructor(s,f){if(!o.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new f(s),this.length=0}push(s){this.heap[this.length++]=s}pop(){return this.heap[--this.length]}},TV=class o{static{t(this,"LRUCache")}#e;#n;#t;#r;#s;#p;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#_;#u;#c;#i;#a;#h;#m;#f;#d;#g;#y;#E;#T;#C;#k;#v;static unsafeExposeInternals(s){return{starts:s.#E,ttls:s.#T,sizes:s.#y,keyMap:s.#u,keyList:s.#c,valList:s.#i,next:s.#a,prev:s.#h,get head(){return s.#m},get tail(){return s.#f},free:s.#d,isBackgroundFetch:t(f=>s.#b(f),"isBackgroundFetch"),backgroundFetch:t((f,d,y,x)=>s.#z(f,d,y,x),"backgroundFetch"),moveToTail:t(f=>s.#S(f),"moveToTail"),indexes:t(f=>s.#F(f),"indexes"),rindexes:t(f=>s.#L(f),"rindexes"),isStale:t(f=>s.#w(f),"isStale")}}get max(){return this.#e}get maxSize(){return this.#n}get calculatedSize(){return this.#_}get size(){return this.#o}get fetchMethod(){return this.#s}get memoMethod(){return this.#p}get dispose(){return this.#t}get disposeAfter(){return this.#r}constructor(s){let{max:f=0,ttl:d,ttlResolution:y=1,ttlAutopurge:x,updateAgeOnGet:P,updateAgeOnHas:F,allowStale:J,dispose:G,disposeAfter:Se,noDisposeOnSet:de,noUpdateTTL:ae,maxSize:Ke=0,maxEntrySize:$e=0,sizeCalculation:Fe,fetchMethod:Gt,memoMethod:jt,noDeleteOnFetchRejection:Pr,noDeleteOnStaleGet:Fn,allowStaleOnFetchRejection:sn,allowStaleOnFetchAbort:Un,ignoreFetchAbort:Er}=s;if(f!==0&&!qN(f))throw new TypeError("max option must be a nonnegative integer");let vr=f?dnt(f):Array;if(!vr)throw new Error("invalid max value: "+f);if(this.#e=f,this.#n=Ke,this.maxEntrySize=$e||this.#n,this.sizeCalculation=Fe,this.sizeCalculation){if(!this.#n&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(jt!==void 0&&typeof jt!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#p=jt,Gt!==void 0&&typeof Gt!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#s=Gt,this.#k=!!Gt,this.#u=new Map,this.#c=new Array(f).fill(void 0),this.#i=new Array(f).fill(void 0),this.#a=new vr(f),this.#h=new vr(f),this.#m=0,this.#f=0,this.#d=RPe.create(f),this.#o=0,this.#_=0,typeof G=="function"&&(this.#t=G),typeof Se=="function"?(this.#r=Se,this.#g=[]):(this.#r=void 0,this.#g=void 0),this.#C=!!this.#t,this.#v=!!this.#r,this.noDisposeOnSet=!!de,this.noUpdateTTL=!!ae,this.noDeleteOnFetchRejection=!!Pr,this.allowStaleOnFetchRejection=!!sn,this.allowStaleOnFetchAbort=!!Un,this.ignoreFetchAbort=!!Er,this.maxEntrySize!==0){if(this.#n!==0&&!qN(this.#n))throw new TypeError("maxSize must be a positive integer if specified");if(!qN(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#D()}if(this.allowStale=!!J,this.noDeleteOnStaleGet=!!Fn,this.updateAgeOnGet=!!P,this.updateAgeOnHas=!!F,this.ttlResolution=qN(y)||y===0?y:1,this.ttlAutopurge=!!x,this.ttl=d||0,this.ttl){if(!qN(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#x()}if(this.#e===0&&this.ttl===0&&this.#n===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#n){let ls="LRU_CACHE_UNBOUNDED";LYt(ls)&&(_nt.add(ls),pnt("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",ls,o))}}getRemainingTTL(s){return this.#u.has(s)?1/0:0}#x(){let s=new W9(this.#e),f=new W9(this.#e);this.#T=s,this.#E=f,this.#O=(x,P,F=J9.now())=>{if(f[x]=P!==0?F:0,s[x]=P,P!==0&&this.ttlAutopurge){let J=setTimeout(()=>{this.#w(x)&&this.#M(this.#c[x],"expire")},P+1);J.unref&&J.unref()}},this.#A=x=>{f[x]=s[x]!==0?J9.now():0},this.#l=(x,P)=>{if(s[P]){let F=s[P],J=f[P];if(!F||!J)return;x.ttl=F,x.start=J,x.now=d||y();let G=x.now-J;x.remainingTTL=F-G}};let d=0,y=t(()=>{let x=J9.now();if(this.ttlResolution>0){d=x;let P=setTimeout(()=>d=0,this.ttlResolution);P.unref&&P.unref()}return x},"getNow");this.getRemainingTTL=x=>{let P=this.#u.get(x);if(P===void 0)return 0;let F=s[P],J=f[P];if(!F||!J)return 1/0;let G=(d||y())-J;return F-G},this.#w=x=>{let P=f[x],F=s[x];return!!F&&!!P&&(d||y())-P>F}}#A=t(()=>{},"#updateItemAge");#l=t(()=>{},"#statusTTL");#O=t(()=>{},"#setItemTTL");#w=t(()=>!1,"#isStale");#D(){let s=new W9(this.#e);this.#_=0,this.#y=s,this.#P=f=>{this.#_-=s[f],s[f]=0},this.#R=(f,d,y,x)=>{if(this.#b(d))return 0;if(!qN(y))if(x){if(typeof x!="function")throw new TypeError("sizeCalculation must be a function");if(y=x(d,f),!qN(y))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return y},this.#U=(f,d,y)=>{if(s[f]=d,this.#n){let x=this.#n-s[f];for(;this.#_>x;)this.#I(!0)}this.#_+=s[f],y&&(y.entrySize=d,y.totalCalculatedSize=this.#_)}}#P=t(s=>{},"#removeItemSize");#U=t((s,f,d)=>{},"#addItemSize");#R=t((s,f,d,y)=>{if(d||y)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0},"#requireSize");*#F({allowStale:s=this.allowStale}={}){if(this.#o)for(let f=this.#f;!(!this.#N(f)||((s||!this.#w(f))&&(yield f),f===this.#m));)f=this.#h[f]}*#L({allowStale:s=this.allowStale}={}){if(this.#o)for(let f=this.#m;!(!this.#N(f)||((s||!this.#w(f))&&(yield f),f===this.#f));)f=this.#a[f]}#N(s){return s!==void 0&&this.#u.get(this.#c[s])===s}*entries(){for(let s of this.#F())this.#i[s]!==void 0&&this.#c[s]!==void 0&&!this.#b(this.#i[s])&&(yield[this.#c[s],this.#i[s]])}*rentries(){for(let s of this.#L())this.#i[s]!==void 0&&this.#c[s]!==void 0&&!this.#b(this.#i[s])&&(yield[this.#c[s],this.#i[s]])}*keys(){for(let s of this.#F()){let f=this.#c[s];f!==void 0&&!this.#b(this.#i[s])&&(yield f)}}*rkeys(){for(let s of this.#L()){let f=this.#c[s];f!==void 0&&!this.#b(this.#i[s])&&(yield f)}}*values(){for(let s of this.#F())this.#i[s]!==void 0&&!this.#b(this.#i[s])&&(yield this.#i[s])}*rvalues(){for(let s of this.#L())this.#i[s]!==void 0&&!this.#b(this.#i[s])&&(yield this.#i[s])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(s,f={}){for(let d of this.#F()){let y=this.#i[d],x=this.#b(y)?y.__staleWhileFetching:y;if(x!==void 0&&s(x,this.#c[d],this))return this.get(this.#c[d],f)}}forEach(s,f=this){for(let d of this.#F()){let y=this.#i[d],x=this.#b(y)?y.__staleWhileFetching:y;x!==void 0&&s.call(f,x,this.#c[d],this)}}rforEach(s,f=this){for(let d of this.#L()){let y=this.#i[d],x=this.#b(y)?y.__staleWhileFetching:y;x!==void 0&&s.call(f,x,this.#c[d],this)}}purgeStale(){let s=!1;for(let f of this.#L({allowStale:!0}))this.#w(f)&&(this.#M(this.#c[f],"expire"),s=!0);return s}info(s){let f=this.#u.get(s);if(f===void 0)return;let d=this.#i[f],y=this.#b(d)?d.__staleWhileFetching:d;if(y===void 0)return;let x={value:y};if(this.#T&&this.#E){let P=this.#T[f],F=this.#E[f];if(P&&F){let J=P-(J9.now()-F);x.ttl=J,x.start=Date.now()}}return this.#y&&(x.size=this.#y[f]),x}dump(){let s=[];for(let f of this.#F({allowStale:!0})){let d=this.#c[f],y=this.#i[f],x=this.#b(y)?y.__staleWhileFetching:y;if(x===void 0||d===void 0)continue;let P={value:x};if(this.#T&&this.#E){P.ttl=this.#T[f];let F=J9.now()-this.#E[f];P.start=Math.floor(Date.now()-F)}this.#y&&(P.size=this.#y[f]),s.unshift([d,P])}return s}load(s){this.clear();for(let[f,d]of s){if(d.start){let y=Date.now()-d.start;d.start=J9.now()-y}this.set(f,d.value,d)}}set(s,f,d={}){if(f===void 0)return this.delete(s),this;let{ttl:y=this.ttl,start:x,noDisposeOnSet:P=this.noDisposeOnSet,sizeCalculation:F=this.sizeCalculation,status:J}=d,{noUpdateTTL:G=this.noUpdateTTL}=d,Se=this.#R(s,f,d.size||0,F);if(this.maxEntrySize&&Se>this.maxEntrySize)return J&&(J.set="miss",J.maxEntrySizeExceeded=!0),this.#M(s,"set"),this;let de=this.#o===0?void 0:this.#u.get(s);if(de===void 0)de=this.#o===0?this.#f:this.#d.length!==0?this.#d.pop():this.#o===this.#e?this.#I(!1):this.#o,this.#c[de]=s,this.#i[de]=f,this.#u.set(s,de),this.#a[this.#f]=de,this.#h[de]=this.#f,this.#f=de,this.#o++,this.#U(de,Se,J),J&&(J.set="add"),G=!1;else{this.#S(de);let ae=this.#i[de];if(f!==ae){if(this.#k&&this.#b(ae)){ae.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:Ke}=ae;Ke!==void 0&&!P&&(this.#C&&this.#t?.(Ke,s,"set"),this.#v&&this.#g?.push([Ke,s,"set"]))}else P||(this.#C&&this.#t?.(ae,s,"set"),this.#v&&this.#g?.push([ae,s,"set"]));if(this.#P(de),this.#U(de,Se,J),this.#i[de]=f,J){J.set="replace";let Ke=ae&&this.#b(ae)?ae.__staleWhileFetching:ae;Ke!==void 0&&(J.oldValue=Ke)}}else J&&(J.set="update")}if(y!==0&&!this.#T&&this.#x(),this.#T&&(G||this.#O(de,y,x),J&&this.#l(J,de)),!P&&this.#v&&this.#g){let ae=this.#g,Ke;for(;Ke=ae?.shift();)this.#r?.(...Ke)}return this}pop(){try{for(;this.#o;){let s=this.#i[this.#m];if(this.#I(!0),this.#b(s)){if(s.__staleWhileFetching)return s.__staleWhileFetching}else if(s!==void 0)return s}}finally{if(this.#v&&this.#g){let s=this.#g,f;for(;f=s?.shift();)this.#r?.(...f)}}}#I(s){let f=this.#m,d=this.#c[f],y=this.#i[f];return this.#k&&this.#b(y)?y.__abortController.abort(new Error("evicted")):(this.#C||this.#v)&&(this.#C&&this.#t?.(y,d,"evict"),this.#v&&this.#g?.push([y,d,"evict"])),this.#P(f),s&&(this.#c[f]=void 0,this.#i[f]=void 0,this.#d.push(f)),this.#o===1?(this.#m=this.#f=0,this.#d.length=0):this.#m=this.#a[f],this.#u.delete(d),this.#o--,f}has(s,f={}){let{updateAgeOnHas:d=this.updateAgeOnHas,status:y}=f,x=this.#u.get(s);if(x!==void 0){let P=this.#i[x];if(this.#b(P)&&P.__staleWhileFetching===void 0)return!1;if(this.#w(x))y&&(y.has="stale",this.#l(y,x));else return d&&this.#A(x),y&&(y.has="hit",this.#l(y,x)),!0}else y&&(y.has="miss");return!1}peek(s,f={}){let{allowStale:d=this.allowStale}=f,y=this.#u.get(s);if(y===void 0||!d&&this.#w(y))return;let x=this.#i[y];return this.#b(x)?x.__staleWhileFetching:x}#z(s,f,d,y){let x=f===void 0?void 0:this.#i[f];if(this.#b(x))return x;let P=new Soe,{signal:F}=d;F?.addEventListener("abort",()=>P.abort(F.reason),{signal:P.signal});let J={signal:P.signal,options:d,context:y},G=t((Fe,Gt=!1)=>{let{aborted:jt}=P.signal,Pr=d.ignoreFetchAbort&&Fe!==void 0;if(d.status&&(jt&&!Gt?(d.status.fetchAborted=!0,d.status.fetchError=P.signal.reason,Pr&&(d.status.fetchAbortIgnored=!0)):d.status.fetchResolved=!0),jt&&!Pr&&!Gt)return de(P.signal.reason);let Fn=Ke;return this.#i[f]===Ke&&(Fe===void 0?Fn.__staleWhileFetching?this.#i[f]=Fn.__staleWhileFetching:this.#M(s,"fetch"):(d.status&&(d.status.fetchUpdated=!0),this.set(s,Fe,J.options))),Fe},"cb"),Se=t(Fe=>(d.status&&(d.status.fetchRejected=!0,d.status.fetchError=Fe),de(Fe)),"eb"),de=t(Fe=>{let{aborted:Gt}=P.signal,jt=Gt&&d.allowStaleOnFetchAbort,Pr=jt||d.allowStaleOnFetchRejection,Fn=Pr||d.noDeleteOnFetchRejection,sn=Ke;if(this.#i[f]===Ke&&(!Fn||sn.__staleWhileFetching===void 0?this.#M(s,"fetch"):jt||(this.#i[f]=sn.__staleWhileFetching)),Pr)return d.status&&sn.__staleWhileFetching!==void 0&&(d.status.returnedStale=!0),sn.__staleWhileFetching;if(sn.__returned===sn)throw Fe},"fetchFail"),ae=t((Fe,Gt)=>{let jt=this.#s?.(s,x,J);jt&&jt instanceof Promise&&jt.then(Pr=>Fe(Pr===void 0?void 0:Pr),Gt),P.signal.addEventListener("abort",()=>{(!d.ignoreFetchAbort||d.allowStaleOnFetchAbort)&&(Fe(void 0),d.allowStaleOnFetchAbort&&(Fe=t(Pr=>G(Pr,!0),"res")))})},"pcall");d.status&&(d.status.fetchDispatched=!0);let Ke=new Promise(ae).then(G,Se),$e=Object.assign(Ke,{__abortController:P,__staleWhileFetching:x,__returned:void 0});return f===void 0?(this.set(s,$e,{...J.options,status:void 0}),f=this.#u.get(s)):this.#i[f]=$e,$e}#b(s){if(!this.#k)return!1;let f=s;return!!f&&f instanceof Promise&&f.hasOwnProperty("__staleWhileFetching")&&f.__abortController instanceof Soe}async fetch(s,f={}){let{allowStale:d=this.allowStale,updateAgeOnGet:y=this.updateAgeOnGet,noDeleteOnStaleGet:x=this.noDeleteOnStaleGet,ttl:P=this.ttl,noDisposeOnSet:F=this.noDisposeOnSet,size:J=0,sizeCalculation:G=this.sizeCalculation,noUpdateTTL:Se=this.noUpdateTTL,noDeleteOnFetchRejection:de=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:ae=this.allowStaleOnFetchRejection,ignoreFetchAbort:Ke=this.ignoreFetchAbort,allowStaleOnFetchAbort:$e=this.allowStaleOnFetchAbort,context:Fe,forceRefresh:Gt=!1,status:jt,signal:Pr}=f;if(!this.#k)return jt&&(jt.fetch="get"),this.get(s,{allowStale:d,updateAgeOnGet:y,noDeleteOnStaleGet:x,status:jt});let Fn={allowStale:d,updateAgeOnGet:y,noDeleteOnStaleGet:x,ttl:P,noDisposeOnSet:F,size:J,sizeCalculation:G,noUpdateTTL:Se,noDeleteOnFetchRejection:de,allowStaleOnFetchRejection:ae,allowStaleOnFetchAbort:$e,ignoreFetchAbort:Ke,status:jt,signal:Pr},sn=this.#u.get(s);if(sn===void 0){jt&&(jt.fetch="miss");let Un=this.#z(s,sn,Fn,Fe);return Un.__returned=Un}else{let Un=this.#i[sn];if(this.#b(Un)){let nc=d&&Un.__staleWhileFetching!==void 0;return jt&&(jt.fetch="inflight",nc&&(jt.returnedStale=!0)),nc?Un.__staleWhileFetching:Un.__returned=Un}let Er=this.#w(sn);if(!Gt&&!Er)return jt&&(jt.fetch="hit"),this.#S(sn),y&&this.#A(sn),jt&&this.#l(jt,sn),Un;let vr=this.#z(s,sn,Fn,Fe),Ni=vr.__staleWhileFetching!==void 0&&d;return jt&&(jt.fetch=Er?"stale":"refresh",Ni&&Er&&(jt.returnedStale=!0)),Ni?vr.__staleWhileFetching:vr.__returned=vr}}async forceFetch(s,f={}){let d=await this.fetch(s,f);if(d===void 0)throw new Error("fetch() returned undefined");return d}memo(s,f={}){let d=this.#p;if(!d)throw new Error("no memoMethod provided to constructor");let{context:y,forceRefresh:x,...P}=f,F=this.get(s,P);if(!x&&F!==void 0)return F;let J=d(s,F,{options:P,context:y});return this.set(s,J,P),J}get(s,f={}){let{allowStale:d=this.allowStale,updateAgeOnGet:y=this.updateAgeOnGet,noDeleteOnStaleGet:x=this.noDeleteOnStaleGet,status:P}=f,F=this.#u.get(s);if(F!==void 0){let J=this.#i[F],G=this.#b(J);return P&&this.#l(P,F),this.#w(F)?(P&&(P.get="stale"),G?(P&&d&&J.__staleWhileFetching!==void 0&&(P.returnedStale=!0),d?J.__staleWhileFetching:void 0):(x||this.#M(s,"expire"),P&&d&&(P.returnedStale=!0),d?J:void 0)):(P&&(P.get="hit"),G?J.__staleWhileFetching:(this.#S(F),y&&this.#A(F),J))}else P&&(P.get="miss")}#j(s,f){this.#h[f]=s,this.#a[s]=f}#S(s){s!==this.#f&&(s===this.#m?this.#m=this.#a[s]:this.#j(this.#h[s],this.#a[s]),this.#j(this.#f,s),this.#f=s)}delete(s){return this.#M(s,"delete")}#M(s,f){let d=!1;if(this.#o!==0){let y=this.#u.get(s);if(y!==void 0)if(d=!0,this.#o===1)this.#$(f);else{this.#P(y);let x=this.#i[y];if(this.#b(x)?x.__abortController.abort(new Error("deleted")):(this.#C||this.#v)&&(this.#C&&this.#t?.(x,s,f),this.#v&&this.#g?.push([x,s,f])),this.#u.delete(s),this.#c[y]=void 0,this.#i[y]=void 0,y===this.#f)this.#f=this.#h[y];else if(y===this.#m)this.#m=this.#a[y];else{let P=this.#h[y];this.#a[P]=this.#a[y];let F=this.#a[y];this.#h[F]=this.#h[y]}this.#o--,this.#d.push(y)}}if(this.#v&&this.#g?.length){let y=this.#g,x;for(;x=y?.shift();)this.#r?.(...x)}return d}clear(){return this.#$("delete")}#$(s){for(let f of this.#L({allowStale:!0})){let d=this.#i[f];if(this.#b(d))d.__abortController.abort(new Error("deleted"));else{let y=this.#c[f];this.#C&&this.#t?.(d,y,s),this.#v&&this.#g?.push([d,y,s])}}if(this.#u.clear(),this.#i.fill(void 0),this.#c.fill(void 0),this.#T&&this.#E&&(this.#T.fill(0),this.#E.fill(0)),this.#y&&this.#y.fill(0),this.#m=0,this.#f=0,this.#d.length=0,this.#_=0,this.#o=0,this.#v&&this.#g){let f=this.#g,d;for(;d=f?.shift();)this.#r?.(...d)}}};import{posix as VYt,win32 as VPe}from"node:path";import{fileURLToPath as HYt}from"node:url";import{lstatSync as GYt,readdir as YYt,readdirSync as KYt,readlinkSync as XYt,realpathSync as ZYt}from"fs";import*as QYt from"node:fs";import{lstat as tKt,readdir as rKt,readlink as nKt,realpath as iKt}from"node:fs/promises";import{EventEmitter as JPe}from"node:events";import vnt from"node:stream";import{StringDecoder as RYt}from"node:string_decoder";var mnt=typeof process=="object"&&process?process:{stdout:null,stderr:null},MYt=t(o=>!!o&&typeof o=="object"&&(o instanceof HN||o instanceof vnt||jYt(o)||BYt(o)),"isStream"),jYt=t(o=>!!o&&typeof o=="object"&&o instanceof JPe&&typeof o.pipe=="function"&&o.pipe!==vnt.Writable.prototype.pipe,"isReadable"),BYt=t(o=>!!o&&typeof o=="object"&&o instanceof JPe&&typeof o.write=="function"&&typeof o.end=="function","isWritable"),RP=Symbol("EOF"),MP=Symbol("maybeEmitEnd"),VN=Symbol("emittedEnd"),Toe=Symbol("emittingEnd"),xV=Symbol("emittedError"),xoe=Symbol("closed"),hnt=Symbol("read"),Eoe=Symbol("flush"),gnt=Symbol("flushChunk"),gE=Symbol("encoding"),q9=Symbol("decoder"),Ig=Symbol("flowing"),EV=Symbol("paused"),V9=Symbol("resume"),Og=Symbol("buffer"),A1=Symbol("pipes"),Fg=Symbol("bufferLength"),MPe=Symbol("bufferPush"),Coe=Symbol("bufferShift"),Ey=Symbol("objectMode"),xm=Symbol("destroyed"),jPe=Symbol("error"),BPe=Symbol("emitData"),ynt=Symbol("emitEnd"),UPe=Symbol("emitEnd2"),Ak=Symbol("async"),zPe=Symbol("abort"),koe=Symbol("aborted"),CV=Symbol("signal"),_O=Symbol("dataListeners"),CS=Symbol("discarded"),kV=t(o=>Promise.resolve().then(o),"defer"),UYt=t(o=>o(),"nodefer"),zYt=t(o=>o==="end"||o==="finish"||o==="prefinish","isEndish"),$Yt=t(o=>o instanceof ArrayBuffer||!!o&&typeof o=="object"&&o.constructor&&o.constructor.name==="ArrayBuffer"&&o.byteLength>=0,"isArrayBufferLike"),JYt=t(o=>!Buffer.isBuffer(o)&&ArrayBuffer.isView(o),"isArrayBufferView"),woe=class{static{t(this,"Pipe")}src;dest;opts;ondrain;constructor(s,f,d){this.src=s,this.dest=f,this.opts=d,this.ondrain=()=>s[V9](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(s){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},$Pe=class extends woe{static{t(this,"PipeProxyErrors")}unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(s,f,d){super(s,f,d),this.proxyErrors=y=>f.emit("error",y),s.on("error",this.proxyErrors)}},WYt=t(o=>!!o.objectMode,"isObjectModeOptions"),qYt=t(o=>!o.objectMode&&!!o.encoding&&o.encoding!=="buffer","isEncodingOptions"),HN=class extends JPe{static{t(this,"Minipass")}[Ig]=!1;[EV]=!1;[A1]=[];[Og]=[];[Ey];[gE];[Ak];[q9];[RP]=!1;[VN]=!1;[Toe]=!1;[xoe]=!1;[xV]=null;[Fg]=0;[xm]=!1;[CV];[koe]=!1;[_O]=0;[CS]=!1;writable=!0;readable=!0;constructor(...s){let f=s[0]||{};if(super(),f.objectMode&&typeof f.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");WYt(f)?(this[Ey]=!0,this[gE]=null):qYt(f)?(this[gE]=f.encoding,this[Ey]=!1):(this[Ey]=!1,this[gE]=null),this[Ak]=!!f.async,this[q9]=this[gE]?new RYt(this[gE]):null,f&&f.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:t(()=>this[Og],"get")}),f&&f.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:t(()=>this[A1],"get")});let{signal:d}=f;d&&(this[CV]=d,d.aborted?this[zPe]():d.addEventListener("abort",()=>this[zPe]()))}get bufferLength(){return this[Fg]}get encoding(){return this[gE]}set encoding(s){throw new Error("Encoding must be set at instantiation time")}setEncoding(s){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[Ey]}set objectMode(s){throw new Error("objectMode must be set at instantiation time")}get async(){return this[Ak]}set async(s){this[Ak]=this[Ak]||!!s}[zPe](){this[koe]=!0,this.emit("abort",this[CV]?.reason),this.destroy(this[CV]?.reason)}get aborted(){return this[koe]}set aborted(s){}write(s,f,d){if(this[koe])return!1;if(this[RP])throw new Error("write after end");if(this[xm])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof f=="function"&&(d=f,f="utf8"),f||(f="utf8");let y=this[Ak]?kV:UYt;if(!this[Ey]&&!Buffer.isBuffer(s)){if(JYt(s))s=Buffer.from(s.buffer,s.byteOffset,s.byteLength);else if($Yt(s))s=Buffer.from(s);else if(typeof s!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[Ey]?(this[Ig]&&this[Fg]!==0&&this[Eoe](!0),this[Ig]?this.emit("data",s):this[MPe](s),this[Fg]!==0&&this.emit("readable"),d&&y(d),this[Ig]):s.length?(typeof s=="string"&&!(f===this[gE]&&!this[q9]?.lastNeed)&&(s=Buffer.from(s,f)),Buffer.isBuffer(s)&&this[gE]&&(s=this[q9].write(s)),this[Ig]&&this[Fg]!==0&&this[Eoe](!0),this[Ig]?this.emit("data",s):this[MPe](s),this[Fg]!==0&&this.emit("readable"),d&&y(d),this[Ig]):(this[Fg]!==0&&this.emit("readable"),d&&y(d),this[Ig])}read(s){if(this[xm])return null;if(this[CS]=!1,this[Fg]===0||s===0||s&&s>this[Fg])return this[MP](),null;this[Ey]&&(s=null),this[Og].length>1&&!this[Ey]&&(this[Og]=[this[gE]?this[Og].join(""):Buffer.concat(this[Og],this[Fg])]);let f=this[hnt](s||null,this[Og][0]);return this[MP](),f}[hnt](s,f){if(this[Ey])this[Coe]();else{let d=f;s===d.length||s===null?this[Coe]():typeof d=="string"?(this[Og][0]=d.slice(s),f=d.slice(0,s),this[Fg]-=s):(this[Og][0]=d.subarray(s),f=d.subarray(0,s),this[Fg]-=s)}return this.emit("data",f),!this[Og].length&&!this[RP]&&this.emit("drain"),f}end(s,f,d){return typeof s=="function"&&(d=s,s=void 0),typeof f=="function"&&(d=f,f="utf8"),s!==void 0&&this.write(s,f),d&&this.once("end",d),this[RP]=!0,this.writable=!1,(this[Ig]||!this[EV])&&this[MP](),this}[V9](){this[xm]||(!this[_O]&&!this[A1].length&&(this[CS]=!0),this[EV]=!1,this[Ig]=!0,this.emit("resume"),this[Og].length?this[Eoe]():this[RP]?this[MP]():this.emit("drain"))}resume(){return this[V9]()}pause(){this[Ig]=!1,this[EV]=!0,this[CS]=!1}get destroyed(){return this[xm]}get flowing(){return this[Ig]}get paused(){return this[EV]}[MPe](s){this[Ey]?this[Fg]+=1:this[Fg]+=s.length,this[Og].push(s)}[Coe](){return this[Ey]?this[Fg]-=1:this[Fg]-=this[Og][0].length,this[Og].shift()}[Eoe](s=!1){do;while(this[gnt](this[Coe]())&&this[Og].length);!s&&!this[Og].length&&!this[RP]&&this.emit("drain")}[gnt](s){return this.emit("data",s),this[Ig]}pipe(s,f){if(this[xm])return s;this[CS]=!1;let d=this[VN];return f=f||{},s===mnt.stdout||s===mnt.stderr?f.end=!1:f.end=f.end!==!1,f.proxyErrors=!!f.proxyErrors,d?f.end&&s.end():(this[A1].push(f.proxyErrors?new $Pe(this,s,f):new woe(this,s,f)),this[Ak]?kV(()=>this[V9]()):this[V9]()),s}unpipe(s){let f=this[A1].find(d=>d.dest===s);f&&(this[A1].length===1?(this[Ig]&&this[_O]===0&&(this[Ig]=!1),this[A1]=[]):this[A1].splice(this[A1].indexOf(f),1),f.unpipe())}addListener(s,f){return this.on(s,f)}on(s,f){let d=super.on(s,f);if(s==="data")this[CS]=!1,this[_O]++,!this[A1].length&&!this[Ig]&&this[V9]();else if(s==="readable"&&this[Fg]!==0)super.emit("readable");else if(zYt(s)&&this[VN])super.emit(s),this.removeAllListeners(s);else if(s==="error"&&this[xV]){let y=f;this[Ak]?kV(()=>y.call(this,this[xV])):y.call(this,this[xV])}return d}removeListener(s,f){return this.off(s,f)}off(s,f){let d=super.off(s,f);return s==="data"&&(this[_O]=this.listeners("data").length,this[_O]===0&&!this[CS]&&!this[A1].length&&(this[Ig]=!1)),d}removeAllListeners(s){let f=super.removeAllListeners(s);return(s==="data"||s===void 0)&&(this[_O]=0,!this[CS]&&!this[A1].length&&(this[Ig]=!1)),f}get emittedEnd(){return this[VN]}[MP](){!this[Toe]&&!this[VN]&&!this[xm]&&this[Og].length===0&&this[RP]&&(this[Toe]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[xoe]&&this.emit("close"),this[Toe]=!1)}emit(s,...f){let d=f[0];if(s!=="error"&&s!=="close"&&s!==xm&&this[xm])return!1;if(s==="data")return!this[Ey]&&!d?!1:this[Ak]?(kV(()=>this[BPe](d)),!0):this[BPe](d);if(s==="end")return this[ynt]();if(s==="close"){if(this[xoe]=!0,!this[VN]&&!this[xm])return!1;let x=super.emit("close");return this.removeAllListeners("close"),x}else if(s==="error"){this[xV]=d,super.emit(jPe,d);let x=!this[CV]||this.listeners("error").length?super.emit("error",d):!1;return this[MP](),x}else if(s==="resume"){let x=super.emit("resume");return this[MP](),x}else if(s==="finish"||s==="prefinish"){let x=super.emit(s);return this.removeAllListeners(s),x}let y=super.emit(s,...f);return this[MP](),y}[BPe](s){for(let d of this[A1])d.dest.write(s)===!1&&this.pause();let f=this[CS]?!1:super.emit("data",s);return this[MP](),f}[ynt](){return this[VN]?!1:(this[VN]=!0,this.readable=!1,this[Ak]?(kV(()=>this[UPe]()),!0):this[UPe]())}[UPe](){if(this[q9]){let f=this[q9].end();if(f){for(let d of this[A1])d.dest.write(f);this[CS]||super.emit("data",f)}}for(let f of this[A1])f.end();let s=super.emit("end");return this.removeAllListeners("end"),s}async collect(){let s=Object.assign([],{dataLength:0});this[Ey]||(s.dataLength=0);let f=this.promise();return this.on("data",d=>{s.push(d),this[Ey]||(s.dataLength+=d.length)}),await f,s}async concat(){if(this[Ey])throw new Error("cannot concat in objectMode");let s=await this.collect();return this[gE]?s.join(""):Buffer.concat(s,s.dataLength)}async promise(){return new Promise((s,f)=>{this.on(xm,()=>f(new Error("stream destroyed"))),this.on("error",d=>f(d)),this.on("end",()=>s())})}[Symbol.asyncIterator](){this[CS]=!1;let s=!1,f=t(async()=>(this.pause(),s=!0,{value:void 0,done:!0}),"stop");return{next:t(()=>{if(s)return f();let y=this.read();if(y!==null)return Promise.resolve({done:!1,value:y});if(this[RP])return f();let x,P,F=t(de=>{this.off("data",J),this.off("end",G),this.off(xm,Se),f(),P(de)},"onerr"),J=t(de=>{this.off("error",F),this.off("end",G),this.off(xm,Se),this.pause(),x({value:de,done:!!this[RP]})},"ondata"),G=t(()=>{this.off("error",F),this.off("data",J),this.off(xm,Se),f(),x({done:!0,value:void 0})},"onend"),Se=t(()=>F(new Error("stream destroyed")),"ondestroy");return new Promise((de,ae)=>{P=ae,x=de,this.once(xm,Se),this.once("error",F),this.once("end",G),this.once("data",J)})},"next"),throw:f,return:f,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[CS]=!1;let s=!1,f=t(()=>(this.pause(),this.off(jPe,f),this.off(xm,f),this.off("end",f),s=!0,{done:!0,value:void 0}),"stop"),d=t(()=>{if(s)return f();let y=this.read();return y===null?f():{done:!1,value:y}},"next");return this.once("end",f),this.once(jPe,f),this.once(xm,f),{next:d,throw:f,return:f,[Symbol.iterator](){return this}}}destroy(s){if(this[xm])return s?this.emit("error",s):this.emit(xm),this;this[xm]=!0,this[CS]=!0,this[Og].length=0,this[Fg]=0;let f=this;return typeof f.close=="function"&&!this[xoe]&&f.close(),s?this.emit("error",s):this.emit(xm),this}static get isStream(){return MYt}};var eKt=ZYt.native,DV={lstatSync:GYt,readdir:YYt,readdirSync:KYt,readlinkSync:XYt,realpathSync:eKt,promises:{lstat:tKt,readdir:rKt,readlink:nKt,realpath:iKt}},Ent=t(o=>!o||o===DV||o===QYt?DV:{...DV,...o,promises:{...DV.promises,...o.promises||{}}},"fsFromOption"),Cnt=/^\\\\\?\\([a-z]:)\\?$/i,sKt=t(o=>o.replace(/\//g,"\\").replace(Cnt,"$1\\"),"uncToDrive"),aKt=/[\\\/]/,sT=0,knt=1,wnt=2,Nk=4,Dnt=6,Pnt=8,pO=10,Ant=12,iT=15,wV=~iT,WPe=16,bnt=32,PV=64,yE=128,Doe=256,Aoe=512,Snt=PV|yE|Aoe,oKt=1023,qPe=t(o=>o.isFile()?Pnt:o.isDirectory()?Nk:o.isSymbolicLink()?pO:o.isCharacterDevice()?wnt:o.isBlockDevice()?Dnt:o.isSocket()?Ant:o.isFIFO()?knt:sT,"entToType"),Tnt=new Map,AV=t(o=>{let s=Tnt.get(o);if(s)return s;let f=o.normalize("NFKD");return Tnt.set(o,f),f},"normalize"),xnt=new Map,Poe=t(o=>{let s=xnt.get(o);if(s)return s;let f=AV(o.toLowerCase());return xnt.set(o,f),f},"normalizeNocase"),Noe=class extends TV{static{t(this,"ResolveCache")}constructor(){super({max:256})}},HPe=class extends TV{static{t(this,"ChildrenCache")}constructor(s=16*1024){super({maxSize:s,sizeCalculation:t(f=>f.length+1,"sizeCalculation")})}},Nnt=Symbol("PathScurry setAsCwd"),Cy=class{static{t(this,"PathBase")}name;root;roots;parent;nocase;isCWD=!1;#e;#n;get dev(){return this.#n}#t;get mode(){return this.#t}#r;get nlink(){return this.#r}#s;get uid(){return this.#s}#p;get gid(){return this.#p}#o;get rdev(){return this.#o}#_;get blksize(){return this.#_}#u;get ino(){return this.#u}#c;get size(){return this.#c}#i;get blocks(){return this.#i}#a;get atimeMs(){return this.#a}#h;get mtimeMs(){return this.#h}#m;get ctimeMs(){return this.#m}#f;get birthtimeMs(){return this.#f}#d;get atime(){return this.#d}#g;get mtime(){return this.#g}#y;get ctime(){return this.#y}#E;get birthtime(){return this.#E}#T;#C;#k;#v;#x;#A;#l;#O;#w;#D;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(s,f=sT,d,y,x,P,F){this.name=s,this.#T=x?Poe(s):AV(s),this.#l=f&oKt,this.nocase=x,this.roots=y,this.root=d||this,this.#O=P,this.#k=F.fullpath,this.#x=F.relative,this.#A=F.relativePosix,this.parent=F.parent,this.parent?this.#e=this.parent.#e:this.#e=Ent(F.fs)}depth(){return this.#C!==void 0?this.#C:this.parent?this.#C=this.parent.depth()+1:this.#C=0}childrenCache(){return this.#O}resolve(s){if(!s)return this;let f=this.getRootString(s),y=s.substring(f.length).split(this.splitSep);return f?this.getRoot(f).#P(y):this.#P(y)}#P(s){let f=this;for(let d of s)f=f.child(d);return f}children(){let s=this.#O.get(this);if(s)return s;let f=Object.assign([],{provisional:0});return this.#O.set(this,f),this.#l&=~WPe,f}child(s,f){if(s===""||s===".")return this;if(s==="..")return this.parent||this;let d=this.children(),y=this.nocase?Poe(s):AV(s);for(let J of d)if(J.#T===y)return J;let x=this.parent?this.sep:"",P=this.#k?this.#k+x+s:void 0,F=this.newChild(s,sT,{...f,parent:this,fullpath:P});return this.canReaddir()||(F.#l|=yE),d.push(F),F}relative(){if(this.isCWD)return"";if(this.#x!==void 0)return this.#x;let s=this.name,f=this.parent;if(!f)return this.#x=this.name;let d=f.relative();return d+(!d||!f.parent?"":this.sep)+s}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#A!==void 0)return this.#A;let s=this.name,f=this.parent;if(!f)return this.#A=this.fullpathPosix();let d=f.relativePosix();return d+(!d||!f.parent?"":"/")+s}fullpath(){if(this.#k!==void 0)return this.#k;let s=this.name,f=this.parent;if(!f)return this.#k=this.name;let y=f.fullpath()+(f.parent?this.sep:"")+s;return this.#k=y}fullpathPosix(){if(this.#v!==void 0)return this.#v;if(this.sep==="/")return this.#v=this.fullpath();if(!this.parent){let y=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(y)?this.#v=`//?/${y}`:this.#v=y}let s=this.parent,f=s.fullpathPosix(),d=f+(!f||!s.parent?"":"/")+this.name;return this.#v=d}isUnknown(){return(this.#l&iT)===sT}isType(s){return this[`is${s}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#l&iT)===Pnt}isDirectory(){return(this.#l&iT)===Nk}isCharacterDevice(){return(this.#l&iT)===wnt}isBlockDevice(){return(this.#l&iT)===Dnt}isFIFO(){return(this.#l&iT)===knt}isSocket(){return(this.#l&iT)===Ant}isSymbolicLink(){return(this.#l&pO)===pO}lstatCached(){return this.#l&bnt?this:void 0}readlinkCached(){return this.#w}realpathCached(){return this.#D}readdirCached(){let s=this.children();return s.slice(0,s.provisional)}canReadlink(){if(this.#w)return!0;if(!this.parent)return!1;let s=this.#l&iT;return!(s!==sT&&s!==pO||this.#l&Doe||this.#l&yE)}calledReaddir(){return!!(this.#l&WPe)}isENOENT(){return!!(this.#l&yE)}isNamed(s){return this.nocase?this.#T===Poe(s):this.#T===AV(s)}async readlink(){let s=this.#w;if(s)return s;if(this.canReadlink()&&this.parent)try{let f=await this.#e.promises.readlink(this.fullpath()),d=(await this.parent.realpath())?.resolve(f);if(d)return this.#w=d}catch(f){this.#b(f.code);return}}readlinkSync(){let s=this.#w;if(s)return s;if(this.canReadlink()&&this.parent)try{let f=this.#e.readlinkSync(this.fullpath()),d=this.parent.realpathSync()?.resolve(f);if(d)return this.#w=d}catch(f){this.#b(f.code);return}}#U(s){this.#l|=WPe;for(let f=s.provisional;f<s.length;f++){let d=s[f];d&&d.#R()}}#R(){this.#l&yE||(this.#l=(this.#l|yE)&wV,this.#F())}#F(){let s=this.children();s.provisional=0;for(let f of s)f.#R()}#L(){this.#l|=Aoe,this.#N()}#N(){if(this.#l&PV)return;let s=this.#l;(s&iT)===Nk&&(s&=wV),this.#l=s|PV,this.#F()}#I(s=""){s==="ENOTDIR"||s==="EPERM"?this.#N():s==="ENOENT"?this.#R():this.children().provisional=0}#z(s=""){s==="ENOTDIR"?this.parent.#N():s==="ENOENT"&&this.#R()}#b(s=""){let f=this.#l;f|=Doe,s==="ENOENT"&&(f|=yE),(s==="EINVAL"||s==="UNKNOWN")&&(f&=wV),this.#l=f,s==="ENOTDIR"&&this.parent&&this.parent.#N()}#j(s,f){return this.#M(s,f)||this.#S(s,f)}#S(s,f){let d=qPe(s),y=this.newChild(s.name,d,{parent:this}),x=y.#l&iT;return x!==Nk&&x!==pO&&x!==sT&&(y.#l|=PV),f.unshift(y),f.provisional++,y}#M(s,f){for(let d=f.provisional;d<f.length;d++){let y=f[d];if((this.nocase?Poe(s.name):AV(s.name))===y.#T)return this.#$(s,y,d,f)}}#$(s,f,d,y){let x=f.name;return f.#l=f.#l&wV|qPe(s),x!==s.name&&(f.name=s.name),d!==y.provisional&&(d===y.length-1?y.pop():y.splice(d,1),y.unshift(f)),y.provisional++,f}async lstat(){if((this.#l&yE)===0)try{return this.#B(await this.#e.promises.lstat(this.fullpath())),this}catch(s){this.#z(s.code)}}lstatSync(){if((this.#l&yE)===0)try{return this.#B(this.#e.lstatSync(this.fullpath())),this}catch(s){this.#z(s.code)}}#B(s){let{atime:f,atimeMs:d,birthtime:y,birthtimeMs:x,blksize:P,blocks:F,ctime:J,ctimeMs:G,dev:Se,gid:de,ino:ae,mode:Ke,mtime:$e,mtimeMs:Fe,nlink:Gt,rdev:jt,size:Pr,uid:Fn}=s;this.#d=f,this.#a=d,this.#E=y,this.#f=x,this.#_=P,this.#i=F,this.#y=J,this.#m=G,this.#n=Se,this.#p=de,this.#u=ae,this.#t=Ke,this.#g=$e,this.#h=Fe,this.#r=Gt,this.#o=jt,this.#c=Pr,this.#s=Fn;let sn=qPe(s);this.#l=this.#l&wV|sn|bnt,sn!==sT&&sn!==Nk&&sn!==pO&&(this.#l|=PV)}#J=[];#q=!1;#V(s){this.#q=!1;let f=this.#J.slice();this.#J.length=0,f.forEach(d=>d(null,s))}readdirCB(s,f=!1){if(!this.canReaddir()){f?s(null,[]):queueMicrotask(()=>s(null,[]));return}let d=this.children();if(this.calledReaddir()){let x=d.slice(0,d.provisional);f?s(null,x):queueMicrotask(()=>s(null,x));return}if(this.#J.push(s),this.#q)return;this.#q=!0;let y=this.fullpath();this.#e.readdir(y,{withFileTypes:!0},(x,P)=>{if(x)this.#I(x.code),d.provisional=0;else{for(let F of P)this.#j(F,d);this.#U(d)}this.#V(d.slice(0,d.provisional))})}#W;async readdir(){if(!this.canReaddir())return[];let s=this.children();if(this.calledReaddir())return s.slice(0,s.provisional);let f=this.fullpath();if(this.#W)await this.#W;else{let d=t(()=>{},"resolve");this.#W=new Promise(y=>d=y);try{for(let y of await this.#e.promises.readdir(f,{withFileTypes:!0}))this.#j(y,s);this.#U(s)}catch(y){this.#I(y.code),s.provisional=0}this.#W=void 0,d()}return s.slice(0,s.provisional)}readdirSync(){if(!this.canReaddir())return[];let s=this.children();if(this.calledReaddir())return s.slice(0,s.provisional);let f=this.fullpath();try{for(let d of this.#e.readdirSync(f,{withFileTypes:!0}))this.#j(d,s);this.#U(s)}catch(d){this.#I(d.code),s.provisional=0}return s.slice(0,s.provisional)}canReaddir(){if(this.#l&Snt)return!1;let s=iT&this.#l;return s===sT||s===Nk||s===pO}shouldWalk(s,f){return(this.#l&Nk)===Nk&&!(this.#l&Snt)&&!s.has(this)&&(!f||f(this))}async realpath(){if(this.#D)return this.#D;if(!((Aoe|Doe|yE)&this.#l))try{let s=await this.#e.promises.realpath(this.fullpath());return this.#D=this.resolve(s)}catch{this.#L()}}realpathSync(){if(this.#D)return this.#D;if(!((Aoe|Doe|yE)&this.#l))try{let s=this.#e.realpathSync(this.fullpath());return this.#D=this.resolve(s)}catch{this.#L()}}[Nnt](s){if(s===this)return;s.isCWD=!1,this.isCWD=!0;let f=new Set([]),d=[],y=this;for(;y&&y.parent;)f.add(y),y.#x=d.join(this.sep),y.#A=d.join("/"),y=y.parent,d.push("..");for(y=s;y&&y.parent&&!f.has(y);)y.#x=void 0,y.#A=void 0,y=y.parent}},Ioe=class o extends Cy{static{t(this,"PathWin32")}sep="\\";splitSep=aKt;constructor(s,f=sT,d,y,x,P,F){super(s,f,d,y,x,P,F)}newChild(s,f=sT,d={}){return new o(s,f,this.root,this.roots,this.nocase,this.childrenCache(),d)}getRootString(s){return VPe.parse(s).root}getRoot(s){if(s=sKt(s.toUpperCase()),s===this.root.name)return this.root;for(let[f,d]of Object.entries(this.roots))if(this.sameRoot(s,f))return this.roots[s]=d;return this.roots[s]=new H9(s,this).root}sameRoot(s,f=this.root.name){return s=s.toUpperCase().replace(/\//g,"\\").replace(Cnt,"$1\\"),s===f}},Ooe=class o extends Cy{static{t(this,"PathPosix")}splitSep="/";sep="/";constructor(s,f=sT,d,y,x,P,F){super(s,f,d,y,x,P,F)}getRootString(s){return s.startsWith("/")?"/":""}getRoot(s){return this.root}newChild(s,f=sT,d={}){return new o(s,f,this.root,this.roots,this.nocase,this.childrenCache(),d)}},Foe=class{static{t(this,"PathScurryBase")}root;rootPath;roots;cwd;#e;#n;#t;nocase;#r;constructor(s=process.cwd(),f,d,{nocase:y,childrenCacheSize:x=16*1024,fs:P=DV}={}){this.#r=Ent(P),(s instanceof URL||s.startsWith("file://"))&&(s=HYt(s));let F=f.resolve(s);this.roots=Object.create(null),this.rootPath=this.parseRootPath(F),this.#e=new Noe,this.#n=new Noe,this.#t=new HPe(x);let J=F.substring(this.rootPath.length).split(d);if(J.length===1&&!J[0]&&J.pop(),y===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=y,this.root=this.newRoot(this.#r),this.roots[this.rootPath]=this.root;let G=this.root,Se=J.length-1,de=f.sep,ae=this.rootPath,Ke=!1;for(let $e of J){let Fe=Se--;G=G.child($e,{relative:new Array(Fe).fill("..").join(de),relativePosix:new Array(Fe).fill("..").join("/"),fullpath:ae+=(Ke?"":de)+$e}),Ke=!0}this.cwd=G}depth(s=this.cwd){return typeof s=="string"&&(s=this.cwd.resolve(s)),s.depth()}childrenCache(){return this.#t}resolve(...s){let f="";for(let x=s.length-1;x>=0;x--){let P=s[x];if(!(!P||P===".")&&(f=f?`${P}/${f}`:P,this.isAbsolute(P)))break}let d=this.#e.get(f);if(d!==void 0)return d;let y=this.cwd.resolve(f).fullpath();return this.#e.set(f,y),y}resolvePosix(...s){let f="";for(let x=s.length-1;x>=0;x--){let P=s[x];if(!(!P||P===".")&&(f=f?`${P}/${f}`:P,this.isAbsolute(P)))break}let d=this.#n.get(f);if(d!==void 0)return d;let y=this.cwd.resolve(f).fullpathPosix();return this.#n.set(f,y),y}relative(s=this.cwd){return typeof s=="string"&&(s=this.cwd.resolve(s)),s.relative()}relativePosix(s=this.cwd){return typeof s=="string"&&(s=this.cwd.resolve(s)),s.relativePosix()}basename(s=this.cwd){return typeof s=="string"&&(s=this.cwd.resolve(s)),s.name}dirname(s=this.cwd){return typeof s=="string"&&(s=this.cwd.resolve(s)),(s.parent||s).fullpath()}async readdir(s=this.cwd,f={withFileTypes:!0}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Cy||(f=s,s=this.cwd);let{withFileTypes:d}=f;if(s.canReaddir()){let y=await s.readdir();return d?y:y.map(x=>x.name)}else return[]}readdirSync(s=this.cwd,f={withFileTypes:!0}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Cy||(f=s,s=this.cwd);let{withFileTypes:d=!0}=f;return s.canReaddir()?d?s.readdirSync():s.readdirSync().map(y=>y.name):[]}async lstat(s=this.cwd){return typeof s=="string"&&(s=this.cwd.resolve(s)),s.lstat()}lstatSync(s=this.cwd){return typeof s=="string"&&(s=this.cwd.resolve(s)),s.lstatSync()}async readlink(s=this.cwd,{withFileTypes:f}={withFileTypes:!1}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Cy||(f=s.withFileTypes,s=this.cwd);let d=await s.readlink();return f?d:d?.fullpath()}readlinkSync(s=this.cwd,{withFileTypes:f}={withFileTypes:!1}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Cy||(f=s.withFileTypes,s=this.cwd);let d=s.readlinkSync();return f?d:d?.fullpath()}async realpath(s=this.cwd,{withFileTypes:f}={withFileTypes:!1}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Cy||(f=s.withFileTypes,s=this.cwd);let d=await s.realpath();return f?d:d?.fullpath()}realpathSync(s=this.cwd,{withFileTypes:f}={withFileTypes:!1}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Cy||(f=s.withFileTypes,s=this.cwd);let d=s.realpathSync();return f?d:d?.fullpath()}async walk(s=this.cwd,f={}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Cy||(f=s,s=this.cwd);let{withFileTypes:d=!0,follow:y=!1,filter:x,walkFilter:P}=f,F=[];(!x||x(s))&&F.push(d?s:s.fullpath());let J=new Set,G=t((de,ae)=>{J.add(de),de.readdirCB((Ke,$e)=>{if(Ke)return ae(Ke);let Fe=$e.length;if(!Fe)return ae();let Gt=t(()=>{--Fe===0&&ae()},"next");for(let jt of $e)(!x||x(jt))&&F.push(d?jt:jt.fullpath()),y&&jt.isSymbolicLink()?jt.realpath().then(Pr=>Pr?.isUnknown()?Pr.lstat():Pr).then(Pr=>Pr?.shouldWalk(J,P)?G(Pr,Gt):Gt()):jt.shouldWalk(J,P)?G(jt,Gt):Gt()},!0)},"walk"),Se=s;return new Promise((de,ae)=>{G(Se,Ke=>{if(Ke)return ae(Ke);de(F)})})}walkSync(s=this.cwd,f={}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Cy||(f=s,s=this.cwd);let{withFileTypes:d=!0,follow:y=!1,filter:x,walkFilter:P}=f,F=[];(!x||x(s))&&F.push(d?s:s.fullpath());let J=new Set([s]);for(let G of J){let Se=G.readdirSync();for(let de of Se){(!x||x(de))&&F.push(d?de:de.fullpath());let ae=de;if(de.isSymbolicLink()){if(!(y&&(ae=de.realpathSync())))continue;ae.isUnknown()&&ae.lstatSync()}ae.shouldWalk(J,P)&&J.add(ae)}}return F}[Symbol.asyncIterator](){return this.iterate()}iterate(s=this.cwd,f={}){return typeof s=="string"?s=this.cwd.resolve(s):s instanceof Cy||(f=s,s=this.cwd),this.stream(s,f)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(s=this.cwd,f={}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Cy||(f=s,s=this.cwd);let{withFileTypes:d=!0,follow:y=!1,filter:x,walkFilter:P}=f;(!x||x(s))&&(yield d?s:s.fullpath());let F=new Set([s]);for(let J of F){let G=J.readdirSync();for(let Se of G){(!x||x(Se))&&(yield d?Se:Se.fullpath());let de=Se;if(Se.isSymbolicLink()){if(!(y&&(de=Se.realpathSync())))continue;de.isUnknown()&&de.lstatSync()}de.shouldWalk(F,P)&&F.add(de)}}}stream(s=this.cwd,f={}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Cy||(f=s,s=this.cwd);let{withFileTypes:d=!0,follow:y=!1,filter:x,walkFilter:P}=f,F=new HN({objectMode:!0});(!x||x(s))&&F.write(d?s:s.fullpath());let J=new Set,G=[s],Se=0,de=t(()=>{let ae=!1;for(;!ae;){let Ke=G.shift();if(!Ke){Se===0&&F.end();return}Se++,J.add(Ke);let $e=t((Gt,jt,Pr=!1)=>{if(Gt)return F.emit("error",Gt);if(y&&!Pr){let Fn=[];for(let sn of jt)sn.isSymbolicLink()&&Fn.push(sn.realpath().then(Un=>Un?.isUnknown()?Un.lstat():Un));if(Fn.length){Promise.all(Fn).then(()=>$e(null,jt,!0));return}}for(let Fn of jt)Fn&&(!x||x(Fn))&&(F.write(d?Fn:Fn.fullpath())||(ae=!0));Se--;for(let Fn of jt){let sn=Fn.realpathCached()||Fn;sn.shouldWalk(J,P)&&G.push(sn)}ae&&!F.flowing?F.once("drain",de):Fe||de()},"onReaddir"),Fe=!0;Ke.readdirCB($e,!0),Fe=!1}},"process");return de(),F}streamSync(s=this.cwd,f={}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Cy||(f=s,s=this.cwd);let{withFileTypes:d=!0,follow:y=!1,filter:x,walkFilter:P}=f,F=new HN({objectMode:!0}),J=new Set;(!x||x(s))&&F.write(d?s:s.fullpath());let G=[s],Se=0,de=t(()=>{let ae=!1;for(;!ae;){let Ke=G.shift();if(!Ke){Se===0&&F.end();return}Se++,J.add(Ke);let $e=Ke.readdirSync();for(let Fe of $e)(!x||x(Fe))&&(F.write(d?Fe:Fe.fullpath())||(ae=!0));Se--;for(let Fe of $e){let Gt=Fe;if(Fe.isSymbolicLink()){if(!(y&&(Gt=Fe.realpathSync())))continue;Gt.isUnknown()&&Gt.lstatSync()}Gt.shouldWalk(J,P)&&G.push(Gt)}}ae&&!F.flowing&&F.once("drain",de)},"process");return de(),F}chdir(s=this.cwd){let f=this.cwd;this.cwd=typeof s=="string"?this.cwd.resolve(s):s,this.cwd[Nnt](f)}},H9=class extends Foe{static{t(this,"PathScurryWin32")}sep="\\";constructor(s=process.cwd(),f={}){let{nocase:d=!0}=f;super(s,VPe,"\\",{...f,nocase:d}),this.nocase=d;for(let y=this.cwd;y;y=y.parent)y.nocase=this.nocase}parseRootPath(s){return VPe.parse(s).root.toUpperCase()}newRoot(s){return new Ioe(this.rootPath,Nk,void 0,this.roots,this.nocase,this.childrenCache(),{fs:s})}isAbsolute(s){return s.startsWith("/")||s.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(s)}},G9=class extends Foe{static{t(this,"PathScurryPosix")}sep="/";constructor(s=process.cwd(),f={}){let{nocase:d=!1}=f;super(s,VYt,"/",{...f,nocase:d}),this.nocase=d}parseRootPath(s){return"/"}newRoot(s){return new Ooe(this.rootPath,Nk,void 0,this.roots,this.nocase,this.childrenCache(),{fs:s})}isAbsolute(s){return s.startsWith("/")}},NV=class extends G9{static{t(this,"PathScurryDarwin")}constructor(s=process.cwd(),f={}){let{nocase:d=!0}=f;super(s,{...f,nocase:d})}},OEr=process.platform==="win32"?Ioe:Ooe,Int=process.platform==="win32"?H9:process.platform==="darwin"?NV:G9;var cKt=t(o=>o.length>=1,"isPatternList"),lKt=t(o=>o.length>=1,"isGlobList"),Y9=class o{static{t(this,"Pattern")}#e;#n;#t;length;#r;#s;#p;#o;#_;#u;#c=!0;constructor(s,f,d,y){if(!cKt(s))throw new TypeError("empty pattern list");if(!lKt(f))throw new TypeError("empty glob list");if(f.length!==s.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=s.length,d<0||d>=this.length)throw new TypeError("index out of range");if(this.#e=s,this.#n=f,this.#t=d,this.#r=y,this.#t===0){if(this.isUNC()){let[x,P,F,J,...G]=this.#e,[Se,de,ae,Ke,...$e]=this.#n;G[0]===""&&(G.shift(),$e.shift());let Fe=[x,P,F,J,""].join("/"),Gt=[Se,de,ae,Ke,""].join("/");this.#e=[Fe,...G],this.#n=[Gt,...$e],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[x,...P]=this.#e,[F,...J]=this.#n;P[0]===""&&(P.shift(),J.shift());let G=x+"/",Se=F+"/";this.#e=[G,...P],this.#n=[Se,...J],this.length=this.#e.length}}}pattern(){return this.#e[this.#t]}isString(){return typeof this.#e[this.#t]=="string"}isGlobstar(){return this.#e[this.#t]===T0}isRegExp(){return this.#e[this.#t]instanceof RegExp}globString(){return this.#p=this.#p||(this.#t===0?this.isAbsolute()?this.#n[0]+this.#n.slice(1).join("/"):this.#n.join("/"):this.#n.slice(this.#t).join("/"))}hasMore(){return this.length>this.#t+1}rest(){return this.#s!==void 0?this.#s:this.hasMore()?(this.#s=new o(this.#e,this.#n,this.#t+1,this.#r),this.#s.#u=this.#u,this.#s.#_=this.#_,this.#s.#o=this.#o,this.#s):this.#s=null}isUNC(){let s=this.#e;return this.#_!==void 0?this.#_:this.#_=this.#r==="win32"&&this.#t===0&&s[0]===""&&s[1]===""&&typeof s[2]=="string"&&!!s[2]&&typeof s[3]=="string"&&!!s[3]}isDrive(){let s=this.#e;return this.#o!==void 0?this.#o:this.#o=this.#r==="win32"&&this.#t===0&&this.length>1&&typeof s[0]=="string"&&/^[a-z]:$/i.test(s[0])}isAbsolute(){let s=this.#e;return this.#u!==void 0?this.#u:this.#u=s[0]===""&&s.length>1||this.isDrive()||this.isUNC()}root(){let s=this.#e[0];return typeof s=="string"&&this.isAbsolute()&&this.#t===0?s:""}checkFollowGlobstar(){return!(this.#t===0||!this.isGlobstar()||!this.#c)}markFollowGlobstar(){return this.#t===0||!this.isGlobstar()||!this.#c?!1:(this.#c=!1,!0)}};var uKt=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",K9=class{static{t(this,"Ignore")}relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(s,{nobrace:f,nocase:d,noext:y,noglobstar:x,platform:P=uKt}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=P,this.mmopts={dot:!0,nobrace:f,nocase:d,noext:y,noglobstar:x,optimizationLevel:2,platform:P,nocomment:!0,nonegate:!0};for(let F of s)this.add(F)}add(s){let f=new ES(s,this.mmopts);for(let d=0;d<f.set.length;d++){let y=f.set[d],x=f.globParts[d];if(!y||!x)throw new Error("invalid pattern object");for(;y[0]==="."&&x[0]===".";)y.shift(),x.shift();let P=new Y9(y,x,0,this.platform),F=new ES(P.globString(),this.mmopts),J=x[x.length-1]==="**",G=P.isAbsolute();G?this.absolute.push(F):this.relative.push(F),J&&(G?this.absoluteChildren.push(F):this.relativeChildren.push(F))}}ignored(s){let f=s.fullpath(),d=`${f}/`,y=s.relative()||".",x=`${y}/`;for(let P of this.relative)if(P.match(y)||P.match(x))return!0;for(let P of this.absolute)if(P.match(f)||P.match(d))return!0;return!1}childrenIgnored(s){let f=s.fullpath()+"/",d=(s.relative()||".")+"/";for(let y of this.relativeChildren)if(y.match(d))return!0;for(let y of this.absoluteChildren)if(y.match(f))return!0;return!1}};var GPe=class o{static{t(this,"HasWalkedCache")}store;constructor(s=new Map){this.store=s}copy(){return new o(new Map(this.store))}hasWalked(s,f){return this.store.get(s.fullpath())?.has(f.globString())}storeWalked(s,f){let d=s.fullpath(),y=this.store.get(d);y?y.add(f.globString()):this.store.set(d,new Set([f.globString()]))}},YPe=class{static{t(this,"MatchRecord")}store=new Map;add(s,f,d){let y=(f?2:0)|(d?1:0),x=this.store.get(s);this.store.set(s,x===void 0?y:y&x)}entries(){return[...this.store.entries()].map(([s,f])=>[s,!!(f&2),!!(f&1)])}},KPe=class{static{t(this,"SubWalks")}store=new Map;add(s,f){if(!s.canReaddir())return;let d=this.store.get(s);d?d.find(y=>y.globString()===f.globString())||d.push(f):this.store.set(s,[f])}get(s){let f=this.store.get(s);if(!f)throw new Error("attempting to walk unknown path");return f}entries(){return this.keys().map(s=>[s,this.store.get(s)])}keys(){return[...this.store.keys()].filter(s=>s.canReaddir())}},IV=class o{static{t(this,"Processor")}hasWalkedCache;matches=new YPe;subwalks=new KPe;patterns;follow;dot;opts;constructor(s,f){this.opts=s,this.follow=!!s.follow,this.dot=!!s.dot,this.hasWalkedCache=f?f.copy():new GPe}processPatterns(s,f){this.patterns=f;let d=f.map(y=>[s,y]);for(let[y,x]of d){this.hasWalkedCache.storeWalked(y,x);let P=x.root(),F=x.isAbsolute()&&this.opts.absolute!==!1;if(P){y=y.resolve(P==="/"&&this.opts.root!==void 0?this.opts.root:P);let de=x.rest();if(de)x=de;else{this.matches.add(y,!0,!1);continue}}if(y.isENOENT())continue;let J,G,Se=!1;for(;typeof(J=x.pattern())=="string"&&(G=x.rest());)y=y.resolve(J),x=G,Se=!0;if(J=x.pattern(),G=x.rest(),Se){if(this.hasWalkedCache.hasWalked(y,x))continue;this.hasWalkedCache.storeWalked(y,x)}if(typeof J=="string"){let de=J===".."||J===""||J===".";this.matches.add(y.resolve(J),F,de);continue}else if(J===T0){(!y.isSymbolicLink()||this.follow||x.checkFollowGlobstar())&&this.subwalks.add(y,x);let de=G?.pattern(),ae=G?.rest();if(!G||(de===""||de===".")&&!ae)this.matches.add(y,F,de===""||de===".");else if(de===".."){let Ke=y.parent||y;ae?this.hasWalkedCache.hasWalked(Ke,ae)||this.subwalks.add(Ke,ae):this.matches.add(Ke,F,!0)}}else J instanceof RegExp&&this.subwalks.add(y,x)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new o(this.opts,this.hasWalkedCache)}filterEntries(s,f){let d=this.subwalks.get(s),y=this.child();for(let x of f)for(let P of d){let F=P.isAbsolute(),J=P.pattern(),G=P.rest();J===T0?y.testGlobstar(x,P,G,F):J instanceof RegExp?y.testRegExp(x,J,G,F):y.testString(x,J,G,F)}return y}testGlobstar(s,f,d,y){if((this.dot||!s.name.startsWith("."))&&(f.hasMore()||this.matches.add(s,y,!1),s.canReaddir()&&(this.follow||!s.isSymbolicLink()?this.subwalks.add(s,f):s.isSymbolicLink()&&(d&&f.checkFollowGlobstar()?this.subwalks.add(s,d):f.markFollowGlobstar()&&this.subwalks.add(s,f)))),d){let x=d.pattern();if(typeof x=="string"&&x!==".."&&x!==""&&x!==".")this.testString(s,x,d.rest(),y);else if(x===".."){let P=s.parent||s;this.subwalks.add(P,d)}else x instanceof RegExp&&this.testRegExp(s,x,d.rest(),y)}}testRegExp(s,f,d,y){f.test(s.name)&&(d?this.subwalks.add(s,d):this.matches.add(s,y,!1))}testString(s,f,d,y){s.isNamed(f)&&(d?this.subwalks.add(s,d):this.matches.add(s,y,!1))}};var fKt=t((o,s)=>typeof o=="string"?new K9([o],s):Array.isArray(o)?new K9(o,s):o,"makeIgnore"),Loe=class{static{t(this,"GlobUtil")}path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#n;#t;signal;maxDepth;includeChildMatches;constructor(s,f,d){if(this.patterns=s,this.path=f,this.opts=d,this.#t=!d.posix&&d.platform==="win32"?"\\":"/",this.includeChildMatches=d.includeChildMatches!==!1,(d.ignore||!this.includeChildMatches)&&(this.#n=fKt(d.ignore??[],d),!this.includeChildMatches&&typeof this.#n.add!="function")){let y="cannot ignore child matches, ignore lacks add() method.";throw new Error(y)}this.maxDepth=d.maxDepth||1/0,d.signal&&(this.signal=d.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#r(s){return this.seen.has(s)||!!this.#n?.ignored?.(s)}#s(s){return!!this.#n?.childrenIgnored?.(s)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let s;for(;!this.paused&&(s=this.#e.shift());)s()}onResume(s){this.signal?.aborted||(this.paused?this.#e.push(s):s())}async matchCheck(s,f){if(f&&this.opts.nodir)return;let d;if(this.opts.realpath){if(d=s.realpathCached()||await s.realpath(),!d)return;s=d}let x=s.isUnknown()||this.opts.stat?await s.lstat():s;if(this.opts.follow&&this.opts.nodir&&x?.isSymbolicLink()){let P=await x.realpath();P&&(P.isUnknown()||this.opts.stat)&&await P.lstat()}return this.matchCheckTest(x,f)}matchCheckTest(s,f){return s&&(this.maxDepth===1/0||s.depth()<=this.maxDepth)&&(!f||s.canReaddir())&&(!this.opts.nodir||!s.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!s.isSymbolicLink()||!s.realpathCached()?.isDirectory())&&!this.#r(s)?s:void 0}matchCheckSync(s,f){if(f&&this.opts.nodir)return;let d;if(this.opts.realpath){if(d=s.realpathCached()||s.realpathSync(),!d)return;s=d}let x=s.isUnknown()||this.opts.stat?s.lstatSync():s;if(this.opts.follow&&this.opts.nodir&&x?.isSymbolicLink()){let P=x.realpathSync();P&&(P?.isUnknown()||this.opts.stat)&&P.lstatSync()}return this.matchCheckTest(x,f)}matchFinish(s,f){if(this.#r(s))return;if(!this.includeChildMatches&&this.#n?.add){let x=`${s.relativePosix()}/**`;this.#n.add(x)}let d=this.opts.absolute===void 0?f:this.opts.absolute;this.seen.add(s);let y=this.opts.mark&&s.isDirectory()?this.#t:"";if(this.opts.withFileTypes)this.matchEmit(s);else if(d){let x=this.opts.posix?s.fullpathPosix():s.fullpath();this.matchEmit(x+y)}else{let x=this.opts.posix?s.relativePosix():s.relative(),P=this.opts.dotRelative&&!x.startsWith(".."+this.#t)?"."+this.#t:"";this.matchEmit(x?P+x+y:"."+y)}}async match(s,f,d){let y=await this.matchCheck(s,d);y&&this.matchFinish(y,f)}matchSync(s,f,d){let y=this.matchCheckSync(s,d);y&&this.matchFinish(y,f)}walkCB(s,f,d){this.signal?.aborted&&d(),this.walkCB2(s,f,new IV(this.opts),d)}walkCB2(s,f,d,y){if(this.#s(s))return y();if(this.signal?.aborted&&y(),this.paused){this.onResume(()=>this.walkCB2(s,f,d,y));return}d.processPatterns(s,f);let x=1,P=t(()=>{--x===0&&y()},"next");for(let[F,J,G]of d.matches.entries())this.#r(F)||(x++,this.match(F,J,G).then(()=>P()));for(let F of d.subwalkTargets()){if(this.maxDepth!==1/0&&F.depth()>=this.maxDepth)continue;x++;let J=F.readdirCached();F.calledReaddir()?this.walkCB3(F,J,d,P):F.readdirCB((G,Se)=>this.walkCB3(F,Se,d,P),!0)}P()}walkCB3(s,f,d,y){d=d.filterEntries(s,f);let x=1,P=t(()=>{--x===0&&y()},"next");for(let[F,J,G]of d.matches.entries())this.#r(F)||(x++,this.match(F,J,G).then(()=>P()));for(let[F,J]of d.subwalks.entries())x++,this.walkCB2(F,J,d.child(),P);P()}walkCBSync(s,f,d){this.signal?.aborted&&d(),this.walkCB2Sync(s,f,new IV(this.opts),d)}walkCB2Sync(s,f,d,y){if(this.#s(s))return y();if(this.signal?.aborted&&y(),this.paused){this.onResume(()=>this.walkCB2Sync(s,f,d,y));return}d.processPatterns(s,f);let x=1,P=t(()=>{--x===0&&y()},"next");for(let[F,J,G]of d.matches.entries())this.#r(F)||this.matchSync(F,J,G);for(let F of d.subwalkTargets()){if(this.maxDepth!==1/0&&F.depth()>=this.maxDepth)continue;x++;let J=F.readdirSync();this.walkCB3Sync(F,J,d,P)}P()}walkCB3Sync(s,f,d,y){d=d.filterEntries(s,f);let x=1,P=t(()=>{--x===0&&y()},"next");for(let[F,J,G]of d.matches.entries())this.#r(F)||this.matchSync(F,J,G);for(let[F,J]of d.subwalks.entries())x++,this.walkCB2Sync(F,J,d.child(),P);P()}},OV=class extends Loe{static{t(this,"GlobWalker")}matches=new Set;constructor(s,f,d){super(s,f,d)}matchEmit(s){this.matches.add(s)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((s,f)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?f(this.signal.reason):s(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}},FV=class extends Loe{static{t(this,"GlobStream")}results;constructor(s,f,d){super(s,f,d),this.results=new HN({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(s){this.results.write(s),this.results.flowing||this.pause()}stream(){let s=this.path;return s.isUnknown()?s.lstat().then(()=>{this.walkCB(s,this.patterns,()=>this.results.end())}):this.walkCB(s,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};var pKt=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",vE=class{static{t(this,"Glob")}absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(s,f){if(!f)throw new TypeError("glob options required");if(this.withFileTypes=!!f.withFileTypes,this.signal=f.signal,this.follow=!!f.follow,this.dot=!!f.dot,this.dotRelative=!!f.dotRelative,this.nodir=!!f.nodir,this.mark=!!f.mark,f.cwd?(f.cwd instanceof URL||f.cwd.startsWith("file://"))&&(f.cwd=_Kt(f.cwd)):this.cwd="",this.cwd=f.cwd||"",this.root=f.root,this.magicalBraces=!!f.magicalBraces,this.nobrace=!!f.nobrace,this.noext=!!f.noext,this.realpath=!!f.realpath,this.absolute=f.absolute,this.includeChildMatches=f.includeChildMatches!==!1,this.noglobstar=!!f.noglobstar,this.matchBase=!!f.matchBase,this.maxDepth=typeof f.maxDepth=="number"?f.maxDepth:1/0,this.stat=!!f.stat,this.ignore=f.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof s=="string"&&(s=[s]),this.windowsPathsNoEscape=!!f.windowsPathsNoEscape||f.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(s=s.map(J=>J.replace(/\\/g,"/"))),this.matchBase){if(f.noglobstar)throw new TypeError("base matching requires globstar");s=s.map(J=>J.includes("/")?J:`./**/${J}`)}if(this.pattern=s,this.platform=f.platform||pKt,this.opts={...f,platform:this.platform},f.scurry){if(this.scurry=f.scurry,f.nocase!==void 0&&f.nocase!==f.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let J=f.platform==="win32"?H9:f.platform==="darwin"?NV:f.platform?G9:Int;this.scurry=new J(this.cwd,{nocase:f.nocase,fs:f.fs})}this.nocase=this.scurry.nocase;let d=this.platform==="darwin"||this.platform==="win32",y={...f,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:d,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},x=this.pattern.map(J=>new ES(J,y)),[P,F]=x.reduce((J,G)=>(J[0].push(...G.set),J[1].push(...G.globParts),J),[[],[]]);this.patterns=P.map((J,G)=>{let Se=F[G];if(!Se)throw new Error("invalid pattern object");return new Y9(J,Se,0,this.platform)})}async walk(){return[...await new OV(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new OV(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new FV(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new FV(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};var XPe=t((o,s={})=>{Array.isArray(o)||(o=[o]);for(let f of o)if(new ES(f,s).hasMagic())return!0;return!1},"hasMagic");function Roe(o,s={}){return new vE(o,s).streamSync()}t(Roe,"globStreamSync");function Fnt(o,s={}){return new vE(o,s).stream()}t(Fnt,"globStream");function Lnt(o,s={}){return new vE(o,s).walkSync()}t(Lnt,"globSync");async function Ont(o,s={}){return new vE(o,s).walk()}t(Ont,"glob_");function Moe(o,s={}){return new vE(o,s).iterateSync()}t(Moe,"globIterateSync");function Rnt(o,s={}){return new vE(o,s).iterate()}t(Rnt,"globIterate");var dKt=Roe,mKt=Object.assign(Fnt,{sync:Roe}),hKt=Moe,gKt=Object.assign(Rnt,{sync:Moe}),yKt=Object.assign(Lnt,{stream:Roe,iterate:Moe}),LV=Object.assign(Ont,{glob:Ont,globSync:Lnt,sync:yKt,globStream:Fnt,stream:mKt,globStreamSync:Roe,streamSync:dKt,globIterate:Rnt,iterate:gKt,globIterateSync:Moe,iterateSync:hKt,Glob:vE,hasMagic:XPe,escape:$9,unescape:hE});LV.glob=LV;var N1=class extends Error{static{t(this,"CompilationError")}buildMessages;constructor(s){super("An error occurred during compilation."),this.buildMessages=Array.isArray(s)?s:[s]}toBuildResult(){return{content:"",errors:this.buildMessages}}};var vKt="[",bKt="]",SKt="{",TKt="}",xKt=":",EKt=",",CKt="true",kKt="false",wKt="null",DKt="NaN",PKt="Infinity",QPe='"',RV=new Map([[34,QPe],[92,"\\"],[47,"/"],[98,"\b"],[110,`
|
|
568
568
|
`],[102,"\f"],[114,"\r"],[116," "]]),Uoe=new Map([...RV,[118,"\v"],[48,"\0"]]),AKt=new Map([[QPe,QPe],["\\","\\"],["/","/"],["\b","b"],[`
|
|
569
569
|
`,"n"],["\f","f"],["\r","r"],[" ","t"]]),yCr=new Map([...AKt,["\v","v"],["\0","0"],["\u2028","u2028"],["\u2029","u2029"]]),Boe=new Map([[vKt,"LBracket"],[bKt,"RBracket"],[SKt,"LBrace"],[TKt,"RBrace"],[xKt,"Colon"],[EKt,"Comma"],[CKt,"Boolean"],[kKt,"Boolean"],[wKt,"Null"]]),joe=new Map([...Boe,[DKt,"Number"],[PKt,"Number"]]),eAe=new Set([10,13,8232,8233]),BP=class extends Error{static{t(this,"ErrorWithLocation")}constructor(s,{line:f,column:d,offset:y}){super(`${s} (${f}:${d})`),this.line=f,this.column=d,this.offset=y}},tAe=class extends BP{static{t(this,"UnexpectedChar")}constructor(s,f){super(`Unexpected character '${String.fromCharCode(s)}' found.`,f)}},rAe=class extends BP{static{t(this,"UnexpectedIdentifier")}constructor(s,f){super(`Unexpected identifier '${s}' found.`,f)}},dO=class extends BP{static{t(this,"UnexpectedToken")}constructor(s){super(`Unexpected token ${s.type} found.`,s.loc.start)}},zoe=class extends BP{static{t(this,"UnexpectedEOF")}constructor(s){super("Unexpected end of input found.",s)}},NKt=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,IKt=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,OKt=13,Mnt=10,nAe=class{static{t(this,"CharCodeReader")}#e="";#n=1;#t=0;#r=-1;#s=!1;#p=-1;#o=!1;constructor(s){this.#e=s}#_(){this.#o||(this.#t++,this.#r++,this.#p=-1,this.#o=!0)}locate(){return{line:this.#n,column:this.#t,offset:this.#r}}next(){if(this.#r>=this.#e.length-1)return this.#_(),-1;this.#r++;let s=this.#e.charCodeAt(this.#r);return this.#s?(this.#n++,this.#t=1,this.#s=!1):this.#t++,s===OKt?(this.#s=!0,this.peek()===Mnt&&this.#r++):s===Mnt&&(this.#s=!0),this.#p=s,s}peek(){return this.#r===this.#e.length-1?-1:this.#e.charCodeAt(this.#r+1)}match(s){return s(this.peek())?(this.next(),!0):!1}current(){return this.#p}},FKt="Infinity",LKt="NaN",RKt=new Set([116,102,110]),iAe=new Set([32,9,10,13]),jnt=new Set([...iAe,11,12,160,8232,8233,65279,160,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288]),MKt={mode:"json",ranges:!1},jKt=new Set(["true","false","null"]),y_={EOF:0,Number:1,String:2,Boolean:3,Null:4,NaN:5,Infinity:6,Identifier:7,Colon:20,LBrace:21,RBrace:22,LBracket:23,RBracket:24,Comma:25,LineComment:40,BlockComment:41};function jP(o){return o>=48&&o<=57}t(jP,"isDigit");function ZPe(o){return jP(o)||o>=65&&o<=70||o>=97&&o<=102}t(ZPe,"isHexDigit");function BKt(o){return o>=49&&o<=57}t(BKt,"isPositiveDigit");function UKt(o){return RKt.has(o)}t(UKt,"isKeywordStart");function Unt(o){return jP(o)||o===46||o===45}t(Unt,"isNumberStart");function zKt(o){return Unt(o)||o===43}t(zKt,"isJSON5NumberStart");function Bnt(o,s){return o===34||s&&o===39}t(Bnt,"isStringStart");function znt(o){if(o===36||o===95||o===92||o>=97&&o<=122||o>=65&&o<=90||o===8204||o===8205)return!0;let s=String.fromCharCode(o);return NKt.test(s)}t(znt,"isJSON5IdentifierStart");function $Kt(o){if(znt(o)||jP(o))return!0;let s=String.fromCharCode(o);return IKt.test(s)}t($Kt,"isJSON5IdentifierPart");var sAe=class{static{t(this,"Tokenizer")}#e;#n;#t;#r;#s;#p;#o;#_;#u;#c;#i;constructor(s,f){this.#n=s,this.#e={...MKt,...f},this.#t=new nAe(s),this.#r=this.#e.mode==="json5",this.#s=this.#e.mode!=="json",this.#p=this.#e.ranges,this.#_=this.#r?Uoe.has.bind(Uoe):RV.has.bind(RV),this.#u=this.#r?eAe.has.bind(eAe):()=>!1,this.#c=this.#r?d=>d===120:()=>!1,this.#i=this.#r?jnt.has.bind(jnt):iAe.has.bind(iAe)}#a(s,f=this.#t.locate()){throw new tAe(s,f)}#h(s,f=this.#t.locate()){throw new rAe(s,f)}#m(){throw new zoe(this.#t.locate())}#f(s,f,d,y){let x=d.offset+f,P=this.#e.ranges?{range:[d.offset,x]}:void 0;return{type:s,loc:{start:d,end:y||{line:d.line,column:d.column+f,offset:x}},...P}}#d(s){let f="",d;for(let y=0;y<s;y++){if(d=this.#t.peek(),ZPe(d)){this.#t.next(),f+=String.fromCharCode(d);continue}this.#a(d)}return f}#g(s){let f="";do{if(f+=String.fromCharCode(s),s===92&&(s=this.#t.next(),s!==117&&this.#a(s),f+=String.fromCharCode(s),f+=this.#d(4)),s=this.#t.peek(),!$Kt(s))break;this.#t.next()}while(!0);return f}#y(s){let f=s,d=1;for(s=this.#t.peek();s!==-1&&s!==f;){if(this.#t.next(),d++,s===92)if(s=this.#t.peek(),this.#_(s)||this.#u(s))this.#t.next(),d++;else if(s===117){this.#t.next(),d++;let y=this.#d(4);d+=y.length}else if(this.#c(s)){this.#t.next(),d++;let y=this.#d(2);d+=y.length}else this.#r?(this.#t.next(),d++):this.#a(s);s=this.#t.peek()}return s===-1&&(this.#t.next(),this.#m()),this.#t.next(),d++,d}#E(s){let f=1;if(s===45||this.#r&&s===43){if(s=this.#t.peek(),this.#r&&(s===73||s===78)){this.#t.next();let d=this.#g(s);return d!==FKt&&d!==LKt&&this.#a(s),f+d.length}jP(s)||this.#a(s),this.#t.next(),f++}if(s===48)if(s=this.#t.peek(),this.#r&&(s===120||s===88)){this.#t.next(),f++,s=this.#t.peek(),ZPe(s)||(this.#t.next(),this.#a(s));do this.#t.next(),f++,s=this.#t.peek();while(ZPe(s))}else jP(s)&&this.#a(s);else if(!this.#r||s!==46)for(BKt(s)||this.#a(s),s=this.#t.peek();jP(s);)this.#t.next(),f++,s=this.#t.peek();if(s===46){let d=-1;for(this.#t.next(),f++,d++,s=this.#t.peek();jP(s);)this.#t.next(),f++,d++,s=this.#t.peek();!this.#r&&d===0&&(this.#t.next(),s?this.#a(s):this.#m())}if(s===101||s===69)for(this.#t.next(),f++,s=this.#t.peek(),(s===43||s===45)&&(this.#t.next(),f++,s=this.#t.peek()),s===-1&&(this.#t.next(),this.#m()),jP(s)||(this.#t.next(),this.#a(s));jP(s);)this.#t.next(),f++,s=this.#t.peek();return f}#T(s){let f=1;if(s=this.#t.peek(),s===47){do this.#t.next(),f+=1,s=this.#t.peek();while(s>-1&&s!==13&&s!==10);return{length:f,multiline:!1}}if(s===42){for(this.#t.next(),f+=1;s>-1;)if(s=this.#t.peek(),s===42){if(this.#t.next(),f+=1,s=this.#t.peek(),s===47)return this.#t.next(),f+=1,{length:f,multiline:!0}}else this.#t.next(),f+=1;this.#t.next(),this.#m()}this.#t.next(),this.#a(s)}next(){let s=this.#t.next();for(;this.#i(s);)s=this.#t.next();if(s===-1)return y_.EOF;let f=this.#t.locate(),d=String.fromCharCode(s);if(this.#r)if(joe.has(d))this.#o=this.#f(joe.get(d),1,f);else if(znt(s)){let y=this.#g(s);joe.has(y)?this.#o=this.#f(joe.get(y),y.length,f):this.#o=this.#f("Identifier",y.length,f)}else if(zKt(s)){let y=this.#E(s);this.#o=this.#f("Number",y,f)}else if(Bnt(s,this.#r)){let y=this.#y(s),x=this.#t.locate();this.#o=this.#f("String",y,f,{line:x.line,column:x.column+1,offset:x.offset+1})}else if(s===47&&this.#s){let y=this.#T(s),x=this.#t.locate();this.#o=this.#f(y.multiline?"BlockComment":"LineComment",y.length,f,{line:x.line,column:x.column+1,offset:x.offset+1})}else this.#a(s);else if(Boe.has(d))this.#o=this.#f(Boe.get(d),1,f);else if(UKt(s)){let y=this.#g(s);jKt.has(y)||this.#h(y,f),this.#o=this.#f(Boe.get(y),y.length,f)}else if(Unt(s)){let y=this.#E(s);this.#o=this.#f("Number",y,f)}else if(Bnt(s,this.#r)){let y=this.#y(s);this.#o=this.#f("String",y,f)}else if(s===47&&this.#s){let y=this.#T(s),x=this.#t.locate();this.#o=this.#f(y.multiline?"BlockComment":"LineComment",y.length,f,{line:x.line,column:x.column+1,offset:x.offset+1})}else this.#a(s);return y_[this.#o.type]}get token(){return this.#o}};var aT={document(o,s={}){return{type:"Document",body:o,loc:s.loc,...s}},string(o,s={}){return{type:"String",value:o,loc:s.loc,...s}},number(o,s={}){return{type:"Number",value:o,loc:s.loc,...s}},boolean(o,s={}){return{type:"Boolean",value:o,loc:s.loc,...s}},null(o={}){return{type:"Null",loc:o.loc,...o}},array(o,s={}){return{type:"Array",elements:o,loc:s.loc,...s}},element(o,s={}){return{type:"Element",value:o,loc:s.loc,...s}},object(o,s={}){return{type:"Object",members:o,loc:s.loc,...s}},member(o,s,f={}){return{type:"Member",name:o,value:s,loc:f.loc,...f}},identifier(o,s={}){return{type:"Identifier",name:o,loc:s.loc,...s}},nan(o="",s={}){return{type:"NaN",sign:o,loc:s.loc,...s}},infinity(o="",s={}){return{type:"Infinity",sign:o,loc:s.loc,...s}}},JKt={mode:"json",ranges:!1,tokens:!1,allowTrailingCommas:!1};function WKt(o,s,f=!1){let d="",y=o.indexOf("\\"),x=0;for(;y>=0;){d+=o.slice(x,y);let P=o.charAt(y+1),F=P.charCodeAt(0);if(f&&Uoe.has(F))d+=Uoe.get(F),x=y+2;else if(RV.has(F))d+=RV.get(F),x=y+2;else if(P==="u"){let J=o.slice(y+2,y+6);if(J.length<4||/[^0-9a-f]/i.test(J))throw new BP(`Invalid unicode escape \\u${J}.`,{line:s.loc.start.line,column:s.loc.start.column+y,offset:s.loc.start.offset+y});d+=String.fromCharCode(parseInt(J,16)),x=y+6}else if(f&&P==="x"){let J=o.slice(y+2,y+4);if(J.length<2||/[^0-9a-f]/i.test(J))throw new BP(`Invalid hex escape \\x${J}.`,{line:s.loc.start.line,column:s.loc.start.column+y,offset:s.loc.start.offset+y});d+=String.fromCharCode(parseInt(J,16)),x=y+4}else if(f&&eAe.has(F))x=y+2,P==="\r"&&o.charAt(x)===`
|
|
570
|
-
`&&x++;else if(f)d+=P,x=y+2;else throw new BP(`Invalid escape \\${P}.`,{line:s.loc.start.line,column:s.loc.start.column+y,offset:s.loc.start.offset+y});y=o.indexOf("\\",x)}return d+=o.slice(x),d}t(WKt,"getStringValue");function qKt(o,s,f=!1){switch(s.type){case"Boolean":return o==="true";case"Number":return Number(o);case"String":return WKt(o.slice(1,-1),s,f);default:throw new TypeError(`Unknown token type "${s.type}.`)}}t(qKt,"getLiteralValue");function $nt(o,s){s=Object.freeze({...JKt,...s});let f=[],d=new sAe(o,{mode:s.mode,ranges:s.ranges}),y=s.mode==="json5",x=s.allowTrailingCommas||y;function P(){let Er=d.next();return Er&&s.tokens&&f.push(d.token),Er}t(P,"nextNoComments");function F(){let Er=d.next();return Er&&s.tokens&&f.push(d.token),Er>=y_.LineComment?F():Er}t(F,"nextSkipComments");let J=s.mode==="json"?P:F;function G(Er,vr){if(Er!==vr)throw new dO(d.token)}t(G,"assertTokenType");function Se(Er,vr){if(!vr.includes(Er))throw new dO(d.token)}t(Se,"assertTokenTypes");function de(Er,vr){return s.ranges?{range:[Er.offset,vr.offset]}:void 0}t(de,"createRange");function ae(Er){let vr=d.token,ls=de(vr.loc.start,vr.loc.end),Ni=qKt(o.slice(vr.loc.start.offset,vr.loc.end.offset),vr,y),bi={loc:{start:{...vr.loc.start},end:{...vr.loc.end}},...ls};switch(Er){case y_.String:return aT.string(Ni,bi);case y_.Number:return aT.number(Ni,bi);case y_.Boolean:return aT.boolean(Ni,bi);default:throw new TypeError(`Unknown token type ${vr.type}.`)}}t(ae,"createLiteralNode");function Ke(Er){let vr=de(Er.loc.start,Er.loc.end),ls=o.slice(Er.loc.start.offset,Er.loc.end.offset),nc={loc:{start:{...Er.loc.start},end:{...Er.loc.end}},...vr};if(Er.type!=="Identifier"){let bi="";return(ls[0]==="+"||ls[0]==="-")&&(bi=ls[0]),aT[ls.includes("NaN")?"nan":"infinity"](bi,nc)}return aT.identifier(ls,nc)}t(Ke,"createJSON5IdentifierNode");function $e(Er){let vr=de(Er.loc.start,Er.loc.end);return aT.null({loc:{start:{...Er.loc.start},end:{...Er.loc.end}},...vr})}t($e,"createNullNode");function Fe(Er){y?Se(Er,[y_.String,y_.Identifier,y_.Number]):G(Er,y_.String);let vr=d.token,ls=Er===y_.String?ae(Er):Ke(vr);if(y&&(ls.type==="NaN"||ls.type==="Infinity")){if(ls.sign!=="")throw new dO(d.token);ls=aT.identifier(ls.type,{loc:ls.loc,...de(ls.loc.start,ls.loc.end)})}Er=J(),G(Er,y_.Colon);let Ni=Pr(),nc=de(ls.loc.start,Ni.loc.end);return aT.member(ls,Ni,{loc:{start:{...ls.loc.start},end:{...Ni.loc.end}},...nc})}t(Fe,"parseProperty");function Gt(Er){G(Er,y_.LBrace);let vr=d.token,ls=[],Ni=J();if(Ni!==y_.RBrace)do{if(ls.push(Fe(Ni)),Ni=J(),!Ni)throw new zoe(ls[ls.length-1].loc.end);if(Ni===y_.Comma){if(Ni=J(),x&&Ni===y_.RBrace)break}else break}while(Ni);G(Ni,y_.RBrace);let nc=d.token,bi=de(vr.loc.start,nc.loc.end);return aT.object(ls,{loc:{start:{...vr.loc.start},end:{...nc.loc.end}},...bi})}t(Gt,"parseObject");function jt(Er){G(Er,y_.LBracket);let vr=d.token,ls=[],Ni=J();if(Ni!==y_.RBracket)do{let Qf=Pr(Ni);if(ls.push(aT.element(Qf,{loc:Qf.loc})),Ni=J(),Ni===y_.Comma){if(Ni=J(),x&&Ni===y_.RBracket)break}else break}while(Ni);G(Ni,y_.RBracket);let nc=d.token,bi=de(vr.loc.start,nc.loc.end);return aT.array(ls,{loc:{start:{...vr.loc.start},end:{...nc.loc.end}},...bi})}t(jt,"parseArray");function Pr(Er){Er=Er??J();let vr=d.token;switch(Er){case y_.String:case y_.Boolean:return ae(Er);case y_.Number:if(y){let ls=o.slice(vr.loc.start.offset,vr.loc.end.offset);if((ls[0]==="+"||ls[0]==="-")&&(ls=ls.slice(1)),ls==="NaN"||ls==="Infinity")return Ke(vr)}return ae(Er);case y_.Null:return $e(vr);case y_.LBrace:return Gt(Er);case y_.LBracket:return jt(Er);default:throw new dO(vr)}}t(Pr,"parseValue");let Fn=Pr();if(J())throw new dO(d.token);let Un={loc:{start:{line:1,column:1,offset:0},end:{...Fn.loc.end}}};return s.tokens&&(Un.tokens=f),s.ranges&&(Un.range=[Un.loc.start.offset,Un.loc.end.offset]),aT.document(Fn,Un)}t($nt,"parse");var VKt=new Map([["Document",["body"]],["Object",["members"]],["Member",["name","value"]],["Element",["value"]],["Array",["elements"]],["String",[]],["Number",[]],["Boolean",[]],["Null",[]],["NaN",[]],["Infinity",[]],["Identifier",[]]]);function Jnt(o){return o&&typeof o=="object"}t(Jnt,"isObject");function HKt(o){return Jnt(o)&&typeof o.type=="string"}t(HKt,"isNode");function GKt(o,s){function f(d,y){typeof s.enter=="function"&&s.enter(d,y);for(let x of VKt.get(d.type)){let P=d[x];Jnt(P)&&(Array.isArray(P)?P.forEach(F=>f(F,d)):HKt(P)&&f(P,d))}typeof s.exit=="function"&&s.exit(d,y)}t(f,"visitNode"),f(o)}t(GKt,"traverse");function Wnt(o,s=()=>!0){let f=[];return GKt(o,{enter(d,y){f.push({node:d,parent:y,phase:"enter"})},exit(d,y){f.push({node:d,parent:y,phase:"exit"})}}),f.filter(s).values()}t(Wnt,"iterator");import YKt from"node:fs/promises";var MV=t((o,s)=>o.split(/\r?\n/)[s-1],"getFileLineContent"),$oe=t(async o=>{try{return await YKt.readFile(o,"utf-8")}catch{return}},"getSchemaContent"),jV=t(async o=>{try{return $nt(o)}catch(s){if(s.column&&s.line&&s.message){let f=MV(o,s.line);return{column:s.column,line:s.line,length:void 0,lineText:f}}return}},"getSchemaAST");var qnt=t(async(o,s,f)=>{try{if(o.length===0)return;for(let d of o){let y=await $oe(d),x=await KKt(y,d,s,f);if(x)return x}}catch{}},"getRouteLocationByValue"),KKt=t(async(o,s,f,d)=>{try{if(!o)return;let y=null,x=await jV(o);if(x){for(let{node:P}of Wnt(x))if(P.value&&P.value===f){y=P.loc;break}if(y!==null){let P=MV(o,y.start.line);return{file:s,line:y.start.line,column:y.start.column,length:y.end.column-y.start.column,lineText:P,suggestion:d}}}}catch{}},"getRouteLocationByValueFromSchema");import Vnt from"node:fs/promises";import bE from"node:path";var aAe="schemas",oAe=".oas.json";var mO=t(async o=>(await Vnt.readdir(o)).map(f=>bE.join(o,f)).filter(f=>f.endsWith(oAe)).sort(),"getOpenApiFilesByAlphabetical"),X9=t(async o=>{let s=bE.resolve(o,"config");return(await Vnt.readdir(s)).filter(d=>d.endsWith(oAe)).length>=1},"oasFileInProject");function BV(o,s,f,d,y,x,P){if(x.has(f))return;let F;try{F=d.get(f)}catch($e){throw new w1({text:`Failed to resolve reference: ${f}`,detail:$e.message,severity:"error",message:"Failed to resolve reference",location:{file:o,column:0,line:0,length:0,lineText:f,namespace:s,suggestion:"Check the reference and try again."}})}let J=Woe(f),G=bE.basename(J,bE.extname(J)),Se=f.indexOf("#"),de=Se>=0?f.substring(0,Se):f,ae=Se>=0?f.substring(Se+1):"",Ke=d.get(de);if(ae){let $e=ae.split("/").filter(Boolean);for(let Fe of $e)if(Ke=Ke[Fe],Ke===void 0)throw new Error(`Cannot resolve JSON pointer: ${ae}`)}if(Ke&&typeof Ke=="object"&&"$ref"in Ke&&typeof Ke.$ref=="string"&&!Ke.$ref.startsWith("#")){let $e=bE.resolve(bE.dirname(de),Ke.$ref);if(J=$e,G=bE.basename(J,bE.extname(J)),de=$e,x.has(de)){let Gt=x.get(de);if(Gt===void 0)throw new Error(`Expected to find ${de} in refsVisited map`);x.set(f,Gt);return}let Fe=y.length;x.set(f,Fe),x.set(de,Fe),y.push(de),Joe(J,G,F,d,y,x,P)}else x.set(f,y.length),y.push(f),Joe(Woe(f),s,F,d,y,x,P)}t(BV,"chaseRefs");function Joe(o,s,f,d,y,x,P){if(Array.isArray(f))for(let F of f)Joe(o,s,F,d,y,x,P);else if(typeof f=="object")for(let F in f){if(F==="$ref"){let J=f[F];P&&(f[F]=P(s,J,o)),BV(o,s,GN(o,J),d,y,x,P)}Joe(o,s,f[F],d,y,x,P)}}t(Joe,"lookForRefs");function GN(o,s){let f=s.indexOf("#");return f>=0?`${bE.resolve(o,s.substring(0,f))}${s.substring(f)}`:bE.resolve(bE.dirname(o),s)}t(GN,"getFullyQualifiedRefName");function Woe(o){let s=o.indexOf("#");return s>=0?o.substring(0,s):o}t(Woe,"getFilePathNameFromRefName");var rH=Sd(T6e(),1);import{readFile as Gtr}from"node:fs/promises";var E6e={};Gtt(E6e,{UnsafePathError:()=>gce,deleteFolder:()=>Htr,dirExists:()=>x6e,fileExists:()=>Mtr,getParentDirFilename:()=>Wtr,isNotFileOrDirectory:()=>Btr,listFolderContents:()=>bat,listFolders:()=>ztr,mkDirTemp:()=>jtr,mkdirForFilePathIfNotExits:()=>$tr,mkdirIfNotExists:()=>Sat,safePath:()=>Jtr,tarFolder:()=>qtr,untarFile:()=>Vtr});import{spawn as yat}from"node:child_process";import{randomUUID as Ftr}from"node:crypto";import tI from"node:fs/promises";import{platform as Ltr,tmpdir as Rtr}from"node:os";import O1 from"node:path";var vat=[".git","node_modules",".yarn",".DS_Store"];async function Mtr(o){try{return(await tI.stat(o)).isFile()}catch{return!1}}t(Mtr,"fileExists");async function jtr(){let o=process.env.BUILD_FILE_PATH??Rtr(),s=Ftr().replaceAll("-",""),f=O1.join(o,s);return await tI.mkdir(f,{recursive:!0}),f}t(jtr,"mkDirTemp");async function x6e(o){try{return(await tI.stat(o)).isDirectory()}catch{return!1}}t(x6e,"dirExists");async function Btr(o){try{return await tI.stat(o),!1}catch{return!0}}t(Btr,"isNotFileOrDirectory");function Utr(o,s){let f=O1.sep==="\\"?"\\\\":O1.sep,d=new RegExp(`(.*)(${f}${s})$|(.*)(${s}${f})`),y=o.match(d);if(!y)return"";let x=o.split(y[0]);return x[1]===""?"":O1.join(O1.sep,x[1])}t(Utr,"getParentDirectory");async function ztr(o){if(!await x6e(o))return[];let s=await tI.readdir(o,{withFileTypes:!0}),f=[];for await(let d of s)vat.includes(d.name)||d.isDirectory()&&f.push(d.name);return f}t(ztr,"listFolders");async function bat(o,s,f=!0){let d=Utr(o,s),y=await tI.readdir(o,{withFileTypes:!0}),x=[];for await(let P of y)if(!vat.includes(P.name)||!f)if(P.isDirectory()){let F=await bat(O1.join(o,P.name),s,f);x.push(...F)}else x.push(O1.join(d,P.name));return x}t(bat,"listFolderContents");var Sat=t(async o=>{await tI.mkdir(o,{recursive:!0})},"mkdirIfNotExists"),$tr=t(async o=>{let s=O1.dirname(o);return Sat(s)},"mkdirForFilePathIfNotExits"),gce=class extends Error{static{t(this,"UnsafePathError")}};function Jtr(o){let s=O1.normalize(o),f=t(d=>{let y=O1.normalize(d),x=process.platform==="win32",P=!1;if(x?P=y.toLowerCase().startsWith(s.toLowerCase()):P=y.startsWith(s),!P)throw new gce("Resolved path is not part of the project.");return y},"ensureSafePath");return{resolve:t((...d)=>f(O1.resolve(...d)),"resolve")}}t(Jtr,"safePath");function Wtr(o){return O1.join(O1.basename(O1.dirname(o)),O1.basename(o))}t(Wtr,"getParentDirFilename");async function qtr({folderPath:o,outputTarPath:s,exclude:f=["node_modules",".git","dist"],logger:d}){let y=[],x=[],P;try{await new Promise((F,J)=>{let G=yat("tar",[...f.flatMap(Se=>["--exclude",Se]),...Ltr()!=="darwin"?["--warning=no-file-changed"]:[],"-cvf",s,"-C",o,"."]);G.stdout.on("data",Se=>{let de=Se.toString().trim();de.length>0&&y.push(de.trim())}),G.stderr.on("data",Se=>{let de=Se.toString().trim();de.length>0&&x.push(de.trim())}),G.on("close",Se=>{P=Se,Se===0?F():J(new Error(`tar process exited with code ${Se}`))}),G.on("error",Se=>{J(Se)})})}catch(F){throw new Error("Failed to tar folder",{cause:F})}finally{d.info({stdout:y.join(`
|
|
570
|
+
`&&x++;else if(f)d+=P,x=y+2;else throw new BP(`Invalid escape \\${P}.`,{line:s.loc.start.line,column:s.loc.start.column+y,offset:s.loc.start.offset+y});y=o.indexOf("\\",x)}return d+=o.slice(x),d}t(WKt,"getStringValue");function qKt(o,s,f=!1){switch(s.type){case"Boolean":return o==="true";case"Number":return Number(o);case"String":return WKt(o.slice(1,-1),s,f);default:throw new TypeError(`Unknown token type "${s.type}.`)}}t(qKt,"getLiteralValue");function $nt(o,s){s=Object.freeze({...JKt,...s});let f=[],d=new sAe(o,{mode:s.mode,ranges:s.ranges}),y=s.mode==="json5",x=s.allowTrailingCommas||y;function P(){let Er=d.next();return Er&&s.tokens&&f.push(d.token),Er}t(P,"nextNoComments");function F(){let Er=d.next();return Er&&s.tokens&&f.push(d.token),Er>=y_.LineComment?F():Er}t(F,"nextSkipComments");let J=s.mode==="json"?P:F;function G(Er,vr){if(Er!==vr)throw new dO(d.token)}t(G,"assertTokenType");function Se(Er,vr){if(!vr.includes(Er))throw new dO(d.token)}t(Se,"assertTokenTypes");function de(Er,vr){return s.ranges?{range:[Er.offset,vr.offset]}:void 0}t(de,"createRange");function ae(Er){let vr=d.token,ls=de(vr.loc.start,vr.loc.end),Ni=qKt(o.slice(vr.loc.start.offset,vr.loc.end.offset),vr,y),bi={loc:{start:{...vr.loc.start},end:{...vr.loc.end}},...ls};switch(Er){case y_.String:return aT.string(Ni,bi);case y_.Number:return aT.number(Ni,bi);case y_.Boolean:return aT.boolean(Ni,bi);default:throw new TypeError(`Unknown token type ${vr.type}.`)}}t(ae,"createLiteralNode");function Ke(Er){let vr=de(Er.loc.start,Er.loc.end),ls=o.slice(Er.loc.start.offset,Er.loc.end.offset),nc={loc:{start:{...Er.loc.start},end:{...Er.loc.end}},...vr};if(Er.type!=="Identifier"){let bi="";return(ls[0]==="+"||ls[0]==="-")&&(bi=ls[0]),aT[ls.includes("NaN")?"nan":"infinity"](bi,nc)}return aT.identifier(ls,nc)}t(Ke,"createJSON5IdentifierNode");function $e(Er){let vr=de(Er.loc.start,Er.loc.end);return aT.null({loc:{start:{...Er.loc.start},end:{...Er.loc.end}},...vr})}t($e,"createNullNode");function Fe(Er){y?Se(Er,[y_.String,y_.Identifier,y_.Number]):G(Er,y_.String);let vr=d.token,ls=Er===y_.String?ae(Er):Ke(vr);if(y&&(ls.type==="NaN"||ls.type==="Infinity")){if(ls.sign!=="")throw new dO(d.token);ls=aT.identifier(ls.type,{loc:ls.loc,...de(ls.loc.start,ls.loc.end)})}Er=J(),G(Er,y_.Colon);let Ni=Pr(),nc=de(ls.loc.start,Ni.loc.end);return aT.member(ls,Ni,{loc:{start:{...ls.loc.start},end:{...Ni.loc.end}},...nc})}t(Fe,"parseProperty");function Gt(Er){G(Er,y_.LBrace);let vr=d.token,ls=[],Ni=J();if(Ni!==y_.RBrace)do{if(ls.push(Fe(Ni)),Ni=J(),!Ni)throw new zoe(ls[ls.length-1].loc.end);if(Ni===y_.Comma){if(Ni=J(),x&&Ni===y_.RBrace)break}else break}while(Ni);G(Ni,y_.RBrace);let nc=d.token,bi=de(vr.loc.start,nc.loc.end);return aT.object(ls,{loc:{start:{...vr.loc.start},end:{...nc.loc.end}},...bi})}t(Gt,"parseObject");function jt(Er){G(Er,y_.LBracket);let vr=d.token,ls=[],Ni=J();if(Ni!==y_.RBracket)do{let Qf=Pr(Ni);if(ls.push(aT.element(Qf,{loc:Qf.loc})),Ni=J(),Ni===y_.Comma){if(Ni=J(),x&&Ni===y_.RBracket)break}else break}while(Ni);G(Ni,y_.RBracket);let nc=d.token,bi=de(vr.loc.start,nc.loc.end);return aT.array(ls,{loc:{start:{...vr.loc.start},end:{...nc.loc.end}},...bi})}t(jt,"parseArray");function Pr(Er){Er=Er??J();let vr=d.token;switch(Er){case y_.String:case y_.Boolean:return ae(Er);case y_.Number:if(y){let ls=o.slice(vr.loc.start.offset,vr.loc.end.offset);if((ls[0]==="+"||ls[0]==="-")&&(ls=ls.slice(1)),ls==="NaN"||ls==="Infinity")return Ke(vr)}return ae(Er);case y_.Null:return $e(vr);case y_.LBrace:return Gt(Er);case y_.LBracket:return jt(Er);default:throw new dO(vr)}}t(Pr,"parseValue");let Fn=Pr();if(J())throw new dO(d.token);let Un={loc:{start:{line:1,column:1,offset:0},end:{...Fn.loc.end}}};return s.tokens&&(Un.tokens=f),s.ranges&&(Un.range=[Un.loc.start.offset,Un.loc.end.offset]),aT.document(Fn,Un)}t($nt,"parse");var VKt=new Map([["Document",["body"]],["Object",["members"]],["Member",["name","value"]],["Element",["value"]],["Array",["elements"]],["String",[]],["Number",[]],["Boolean",[]],["Null",[]],["NaN",[]],["Infinity",[]],["Identifier",[]]]);function Jnt(o){return o&&typeof o=="object"}t(Jnt,"isObject");function HKt(o){return Jnt(o)&&typeof o.type=="string"}t(HKt,"isNode");function GKt(o,s){function f(d,y){typeof s.enter=="function"&&s.enter(d,y);for(let x of VKt.get(d.type)){let P=d[x];Jnt(P)&&(Array.isArray(P)?P.forEach(F=>f(F,d)):HKt(P)&&f(P,d))}typeof s.exit=="function"&&s.exit(d,y)}t(f,"visitNode"),f(o)}t(GKt,"traverse");function Wnt(o,s=()=>!0){let f=[];return GKt(o,{enter(d,y){f.push({node:d,parent:y,phase:"enter"})},exit(d,y){f.push({node:d,parent:y,phase:"exit"})}}),f.filter(s).values()}t(Wnt,"iterator");import YKt from"node:fs/promises";var MV=t((o,s)=>o.split(/\r?\n/)[s-1],"getFileLineContent"),$oe=t(async o=>{try{return await YKt.readFile(o,"utf-8")}catch{return}},"getSchemaContent"),jV=t(async o=>{try{return $nt(o)}catch(s){if(s.column&&s.line&&s.message){let f=MV(o,s.line);return{column:s.column,line:s.line,length:void 0,lineText:f}}return}},"getSchemaAST");var qnt=t(async(o,s,f)=>{try{if(o.length===0)return;for(let d of o){let y=await $oe(d),x=await KKt(y,d,s,f);if(x)return x}}catch{}},"getRouteLocationByValue"),KKt=t(async(o,s,f,d)=>{try{if(!o)return;let y=null,x=await jV(o);if(x){for(let{node:P}of Wnt(x))if(P.value&&P.value===f){y=P.loc;break}if(y!==null){let P=MV(o,y.start.line);return{file:s,line:y.start.line,column:y.start.column,length:y.end.column-y.start.column,lineText:P,suggestion:d}}}}catch{}},"getRouteLocationByValueFromSchema");import Vnt from"node:fs/promises";import bE from"node:path";var aAe="schemas",oAe=".oas.json";var mO=t(async o=>(await Vnt.readdir(o)).map(f=>bE.join(o,f)).filter(f=>f.endsWith(oAe)).sort(),"getOpenApiFilesByAlphabetical"),X9=t(async o=>{let s=bE.resolve(o,"config");return(await Vnt.readdir(s)).filter(d=>d.endsWith(oAe)).length>=1},"oasFileInProject");function BV(o,s,f,d,y,x,P){if(x.has(f))return;let F;try{F=d.get(f)}catch($e){throw new w1({text:`Failed to resolve reference: ${f}`,detail:$e.message,severity:"error",message:"Failed to resolve reference",location:{file:o,column:0,line:0,length:0,lineText:f,namespace:s,suggestion:"Check the reference and try again."}})}let J=Woe(f),G=bE.basename(J,bE.extname(J)),Se=f.indexOf("#"),de=Se>=0?f.substring(0,Se):f,ae=Se>=0?f.substring(Se+1):"",Ke=d.get(de);if(ae){let $e=ae.split("/").filter(Boolean);for(let Fe of $e)if(Ke=Ke[Fe],Ke===void 0)throw new Error(`Cannot resolve JSON pointer: ${ae}`)}if(Ke&&typeof Ke=="object"&&"$ref"in Ke&&typeof Ke.$ref=="string"&&!Ke.$ref.startsWith("#")){let $e=bE.resolve(bE.dirname(de),Ke.$ref);if(J=$e,G=bE.basename(J,bE.extname(J)),de=$e,x.has(de)){let Gt=x.get(de);if(Gt===void 0)throw new Error(`Expected to find ${de} in refsVisited map`);x.set(f,Gt);return}let Fe=y.length;x.set(f,Fe),x.set(de,Fe),y.push(de),Joe(J,G,F,d,y,x,P)}else x.set(f,y.length),y.push(f),Joe(Woe(f),s,F,d,y,x,P)}t(BV,"chaseRefs");function Joe(o,s,f,d,y,x,P){if(Array.isArray(f))for(let F of f)Joe(o,s,F,d,y,x,P);else if(typeof f=="object")for(let F in f){if(F==="$ref"){let J=f[F];P&&(f[F]=P(s,J,o)),BV(o,s,GN(o,J),d,y,x,P)}Joe(o,s,f[F],d,y,x,P)}}t(Joe,"lookForRefs");function GN(o,s){let f=s.indexOf("#");return f>=0?`${bE.resolve(o,s.substring(0,f))}${s.substring(f)}`:bE.resolve(bE.dirname(o),s)}t(GN,"getFullyQualifiedRefName");function Woe(o){let s=o.indexOf("#");return s>=0?o.substring(0,s):o}t(Woe,"getFilePathNameFromRefName");import ble from"node:path";function XKt(o){if(o.length>=255)throw new TypeError("Alphabet too long");let s=new Uint8Array(256);for(let G=0;G<s.length;G++)s[G]=255;for(let G=0;G<o.length;G++){let Se=o.charAt(G),de=Se.charCodeAt(0);if(s[de]!==255)throw new TypeError(Se+" is ambiguous");s[de]=G}let f=o.length,d=o.charAt(0),y=Math.log(f)/Math.log(256),x=Math.log(256)/Math.log(f);function P(G){if(G instanceof Uint8Array||(ArrayBuffer.isView(G)?G=new Uint8Array(G.buffer,G.byteOffset,G.byteLength):Array.isArray(G)&&(G=Uint8Array.from(G))),!(G instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(G.length===0)return"";let Se=0,de=0,ae=0,Ke=G.length;for(;ae!==Ke&&G[ae]===0;)ae++,Se++;let $e=(Ke-ae)*x+1>>>0,Fe=new Uint8Array($e);for(;ae!==Ke;){let Pr=G[ae],Fn=0;for(let sn=$e-1;(Pr!==0||Fn<de)&&sn!==-1;sn--,Fn++)Pr+=256*Fe[sn]>>>0,Fe[sn]=Pr%f>>>0,Pr=Pr/f>>>0;if(Pr!==0)throw new Error("Non-zero carry");de=Fn,ae++}let Gt=$e-de;for(;Gt!==$e&&Fe[Gt]===0;)Gt++;let jt=d.repeat(Se);for(;Gt<$e;++Gt)jt+=o.charAt(Fe[Gt]);return jt}t(P,"encode");function F(G){if(typeof G!="string")throw new TypeError("Expected String");if(G.length===0)return new Uint8Array;let Se=0,de=0,ae=0;for(;G[Se]===d;)de++,Se++;let Ke=(G.length-Se)*y+1>>>0,$e=new Uint8Array(Ke);for(;G[Se];){let Pr=s[G.charCodeAt(Se)];if(Pr===255)return;let Fn=0;for(let sn=Ke-1;(Pr!==0||Fn<ae)&&sn!==-1;sn--,Fn++)Pr+=f*$e[sn]>>>0,$e[sn]=Pr%256>>>0,Pr=Pr/256>>>0;if(Pr!==0)throw new Error("Non-zero carry");ae=Fn,Se++}let Fe=Ke-ae;for(;Fe!==Ke&&$e[Fe]===0;)Fe++;let Gt=new Uint8Array(de+(Ke-Fe)),jt=de;for(;Fe!==Ke;)Gt[jt++]=$e[Fe++];return Gt}t(F,"decodeUnsafe");function J(G){let Se=F(G);if(Se)return Se;throw new Error("Non-base"+f+" character")}return t(J,"decode"),{encode:P,decodeUnsafe:F,decode:J}}t(XKt,"base");var Hnt=XKt;var ZKt="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",qoe=Hnt(ZKt);var QKt=!1;function Z9(o,s){return{open:`\x1B[${o.join(";")}m`,close:`\x1B[${s}m`,regexp:new RegExp(`\\x1b\\[${s}m`,"g")}}t(Z9,"code");function Q9(o,s){return QKt?`${s.open}${o.replace(s.regexp,s.open)}${s.close}`:o}t(Q9,"run");function eXt(o){return Q9(o,Z9([31],39))}t(eXt,"red");function tXt(o){return Q9(o,Z9([32],39))}t(tXt,"green");function rXt(o){return Q9(o,Z9([33],39))}t(rXt,"yellow");function nXt(o){return Q9(o,Z9([34],39))}t(nXt,"blue");function iXt(o){return Q9(o,Z9([35],39))}t(iXt,"magenta");function sXt(o){return Q9(o,Z9([36],39))}t(sXt,"cyan");var UCr=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|"),"g");var Gnt=[eXt,tXt,rXt,nXt,iXt,sXt];function aXt(o){let s=0,f=o.length,d=0;if(f>0)for(;d<f;)s=(s<<5)-s+o.charCodeAt(d++)|0;return s}t(aXt,"hashCode");function Ynt(o){let s=Math.abs(aXt(o));return Gnt[s%Gnt.length]}t(Ynt,"generateColor");import{inspect as oXt}from"node:util";function Knt(o,s,...f){let d=0,y=f.length,x=String(s).replace(/%[sdjoO%]/g,P=>{if(P==="%%")return"%";if(d>=y)return P;switch(P){case"%s":return String(f[d++]);case"%d":return Number(f[d++]).toString();case"%o":return o(f[d++]).split(`
|
|
571
|
+
`).map(F=>F.trim()).join(" ");case"%O":return o(f[d++]);case"%j":try{return JSON.stringify(f[d++])}catch{return"[Circular]"}default:return P}});for(let P of f.splice(d))P===null||!(typeof P=="object"&&P!==null)?x+=" "+P:x+=" "+o(P);return x}t(Knt,"format");var Xnt=t((o,...s)=>Knt(oXt,o,s),"format");var cAe=class{static{t(this,"Debugger")}manager;ns;color;last;enabled;constructor(s,f){this.manager=s,this.ns=f,this.color=Ynt(f),this.last=0,this.enabled=s.enabled.some(d=>d.test(f))}log(...s){if(!this.enabled)return;let f,d=s[0];typeof d=="function"?f=d():f=String(d);let y=Date.now()-(this.last||Date.now());f=Xnt(f,...s);let x=`${this.color(this.ns)} ${f} ${this.color(`+${y}ms`)}`;console.log(x),this.last=Date.now()}},lAe=class{static{t(this,"DebugManager")}debuggers;enabled;constructor(s){this.debuggers=new Map,this.enabled=s??[]}};function cXt(o){return!o||o.length===0?[]:(o=o.replace(/\s/g,"").replace(/\*/g,".+"),o.split(",").map(s=>new RegExp(`^${s}$`)))}t(cXt,"extract");var Voe;function Hoe(o){Voe||(Voe=new lAe(cXt(process.env.DEBUG)));let s=new cAe(Voe,o);return Voe.debuggers.set(o,s),Object.assign(s.log.bind(s),{self:s})}t(Hoe,"debug");var Znt="zp-local-service";var ekr=Symbol("zuplo_meters"),tkr=Symbol("zuplo_dynamic_meters");var UP=class extends Error{static{t(this,"RuntimeError")}extensionMembers;constructor(s,f){typeof s=="string"?super(s,f):(super(s.message,f),this.extensionMembers=s.extensionMembers),this.name="RuntimeError"}};var YN=Hoe("zuplo:runtime:external-service");function lXt(){let o,{__ZUPLO_EXTERNAL_SERVICE_TOKEN:s}=Em.instance.runtime;if(s&&s!=="undefined")try{let f=atob(s);o=JSON.parse(f)}catch{}return o}t(lXt,"getServiceAuth");async function Qnt(o,s){let f=".proxy",d=".tunnel";if(typeof o=="string"){let y=new URL(o),x=y.hostname;if(x.endsWith(f)){let Gt=x.slice(0,-f.length),jt=new URL(`http://${Gt}${y.pathname}${y.search}`);YN(`Routing to proxy: ${jt.toString()}`);let Pr=s??{};return UV(jt.toString(),Pr)}let P=x.endsWith(d),F=x.indexOf(".")===-1;if(!(P||F))throw new UP(`Invalid service hostname suffix: ${x}. Use .proxy for proxy routing, .tunnel for explicit tunnel routing, or no suffix for default tunnel routing.`);let G=P?x.slice(0,-d.length):x,Se=lXt();if(!Se)throw YN("There is no external service auth configured for this zup."),new UP("There are no external services configured for this zup.");YN(`Using external service auth. ClientId: ${Se.clientId})`);let de=s??{},ae=new Headers(de.headers||{});ae.set("CF-Access-Client-Id",Se.clientId),ae.set("CF-Access-Client-Secret",Se.clientSecret),de.headers=ae;let Ke;if(Se.customServiceMapping?.[G])Ke=`https://${Se.customServiceMapping[G]}`;else if(Em.instance.useLegacyServiceRouting)Ke=`https://${G}.zuptunnel.com`;else{YN("Using sha256 service routing");let Gt=Em.instance.build;if(Gt.ACCOUNT_NAME&&Gt.PROJECT_NAME&&Gt.ENVIRONMENT_TYPE){let jt=await uXt(G,Gt.ACCOUNT_NAME,Gt.PROJECT_NAME,Gt.ENVIRONMENT_TYPE),Pr=tit(Gt.ENVIRONMENT_TYPE),Fn=await uAe(`${Gt.ACCOUNT_NAME}-${Gt.PROJECT_NAME}-${Pr}`);Fn==="40d7ad502f5d743997999594c177184a00161a77865423511f3a1ea21eb5a5e"||Fn==="d05bffe8fa91a300187d2cf43e8aa4a56bd809c442ae10d1ee49af7d29a5a11"?Ke=`https://${jt}.zuptunnel.com`:Ke=`https://${jt}.t.zuplo.app`}else throw YN("Cannot use sha256 service routing, missing build variables"),new UP("Failed to generate fully qualified tunnel url.")}let $e=new URL(`${Ke}${y.pathname}${y.search}`);YN(`Calling external service: ${$e.toString()}`);let Fe=await UV($e.toString(),de);if(Fe.status===403&&Fe.headers.get("cf-access-domain")!==null)throw zV.console.error("403 Forbidden when calling external service.",{clientId:Se.clientId,tunnelHost:Ke}),new UP("Could not connect to secure tunnel.");return Fe}else throw YN("Cannot call external service with Request object"),new UP("Currently, we only support fetch(<some_string>, ...).")}t(Qnt,"externalServiceHandler");async function eit(o,s){if(typeof o=="string"){let f=new URL(o),d=f.hostname,y=s??{},x=`http://${d}.zuplo.svc.cluster.local:9000`,P=new URL(`${x}${f.pathname}${f.search}`),F=new Headers(y.headers||{});return F.set(Znt,d),y.headers=F,await UV(P.toString(),y)}else throw new UP("Currently, we only support fetch(<some_string>, ...).")}t(eit,"clusterServiceHandler");async function uXt(o,s,f,d){let y=o.toLowerCase(),x=s.toLowerCase(),P=f.toLowerCase(),F=tit(d);YN(`Hashing service name: ${x}-${y}.${x}-${P}-${F}`);let J=await uAe(`${x}-${y}`),G=await uAe(`${x}-${P}-${F}`);return`${J}.${G}`}t(uXt,"hashServiceName");async function uAe(o){let s=new TextEncoder().encode(o),f=await crypto.subtle.digest("SHA-256",s);return Array.from(new Uint8Array(f)).map(x=>x.toString(16).padStart(2,"0")).join("").slice(0,-1)}t(uAe,"hashSegment");function tit(o){let s=o.toLowerCase();switch(s){case"production":case"preview":return s;default:return"working-copy"}}t(tit,"sanitizeEnvironmentType");var fAe=new Map;fAe.set("service:",Qnt);fAe.set("local:",eit);var UV=globalThis.fetch;function _Ae(o,s){let{transformedInit:f,mtlsCertificate:d}=fXt(s);if(typeof o=="string"){let y=new URL(o),x=fAe.get(y.protocol);return x?x(o,f):rit(o,f,d)}else return rit(o,f,d)}t(_Ae,"internalFetch");globalThis.fetch=_Ae;function rit(o,s,f){if(!f)return UV(o,s);if(Em.instance.isCloudflare){let y=Em.instance.runtime[f];if(!y)throw new Error(`mTLS certificate binding '${f}' not found. Ensure the certificate is uploaded and properly configured.`);if(typeof y!="object"||typeof y.fetch!="function")throw new Error(`mTLS certificate binding '${f}' is not a valid mTLS certificate binding. Make sure it's configured as an mTLS certificate, not an environment variable.`);return y.fetch(o,s)}else throw Em.instance.isDeno?new Error("mTLS client certificates are not yet supported in Deno runtime. This will be added in a future update."):new Error("mTLS client certificates are not supported in this runtime environment")}t(rit,"performFetch");var fXt=t(o=>{if(!o||o instanceof Request)return{transformedInit:o,mtlsCertificate:void 0};let s=o;if(!s.zuplo)return{transformedInit:o,mtlsCertificate:void 0};let f=s.zuplo.mtlsCertificate,d=o;return d.cf={cacheEverything:s.zuplo?.cacheEverything,cacheTtl:s.zuplo?.cacheTtlSeconds},delete o.zuplo,{transformedInit:o,mtlsCertificate:f}},"transformInit");var _Xt={console:{log:console.log.bind(console),info:console.info.bind(console),warn:console.warn.bind(console),error:console.error.bind(console),debug:console.debug.bind(console),assert:console.assert.bind(console),clear:console.clear.bind(console),count:console.count.bind(console),countReset:console.countReset.bind(console),dir:console.dir.bind(console),dirxml:console.dirxml.bind(console),group:console.group.bind(console),groupCollapsed:console.groupCollapsed.bind(console),groupEnd:console.groupEnd.bind(console),table:console.table.bind(console),time:console.time.bind(console),timeEnd:console.timeEnd.bind(console),timeLog:console.timeLog.bind(console),timeStamp:console.timeStamp.bind(console),trace:console.trace.bind(console),profile:console.profile.bind(console),profileEnd:console.profileEnd.bind(console)},fetch:_Ae},zV=_Xt;var pAe="2025-02-06",nit=Object.freeze({none:{runOutboundPoliciesOnHandlerOnAllStatuses:!1,doNotRunHooksOnSystemRoutes:!1,removeAllVendorHeadersExceptListed:!1,allowCustomPorts:!1,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1},"2023-03-14":{runOutboundPoliciesOnHandlerOnAllStatuses:!1,doNotRunHooksOnSystemRoutes:!1,removeAllVendorHeadersExceptListed:!1,allowCustomPorts:!1,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1},"2024-01-15":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!1,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1},"2024-03-14":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!1,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1},"2024-09-02":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!0,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1},"2025-02-06":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!0,removeLegacyLogInitialization:!0,useForwardRedirectsPropOnUrlForwardHandler:!0}});function iit(){return new Em({build:{ACCOUNT_NAME:"mock-account-name",PROJECT_NAME:"mock-project-name",API_VERSION:"0.0.0",BUILD_ID:crypto.randomUUID(),TIMESTAMP:new Date().toISOString(),BUILD_ENV:"test",ZUPLO_VERSION:"0.0.0",COMPATIBILITY_DATE:pAe,ENVIRONMENT_TYPE:"mock-environment-type",GIT_SHA:void 0,IS_LOCAL_DEVELOPMENT:!1,COMPATIBILITY_FLAGS:nit[pAe]},runtime:{RUNTIME_ENV:"test",RUNTIME_STAGE:"test",__ZUPLO_DEPLOYMENT_NAME:"mock-deployment-name",__ZUPLO_LOG_LEVEL:"debug",__ZUPLO_LOG_FORMAT:"pretty",__ZUPLO_MANAGEMENT_API_URL:"",__ZUPLO_RUNTIME_TYPE:"cloudflare",__ZUPLO_AUTH_API_JWT:"",ZUPLO_SERVICE_BUCKET_ID:"mock-bucket-id"}})}t(iit,"getMockEnvironment");var Em=class o{static{t(this,"Environment")}config;static#e;static#n=!1;static initialize(s){o.#e||(o.#e=new o(s),o.#n=!0)}static get instance(){return o.#n||(zV.console.debug("Environment has not been initialized. This is okay when running tests, a mock environment will be used."),o.#e=iit()),o.#e}constructor({build:s,runtime:f}){let d;try{if(f.ZUPLO_SYSTEM_CONFIGURATIONS){let y=new TextDecoder().decode(qoe.decode(f.ZUPLO_SYSTEM_CONFIGURATIONS)),x=JSON.parse(y);for(let P of Object.keys(x))f[P]||(f[P]=x[P])}if(f.__ZUPLO_CONFIG){let y=atob(f.__ZUPLO_CONFIG);d=JSON.parse(y)}}catch(y){zV.console.error("Failed to parse runtime configuration",y)}this.config=d??{},this.build=s,this.runtime=f,this.instanceId=crypto.randomUUID()}build;runtime;instanceId;get deploymentName(){return this.runtime.__ZUPLO_DEPLOYMENT_NAME??this.config.deployment_name??void 0}get useLegacyServiceRouting(){return this.config.use_legacy_service_routing??void 0}get useProxyForFetchFromZups(){return this.config.use_proxy_for_fetch_from_zups??void 0}get devPortalBaseUrl(){return this.runtime.__ZUPLO_DEV_PORTAL_URL??this.config.dev_portal_url??"https://dev-portal-v4-1.zuplo.com"}get buildAssetsUrl(){return this.runtime.__ZUPLO_BUILD_ASSETS_URL??this.config.build_assets_url??"https://build-assets.zuplo.com"}get zuploEdgeApiUrl(){return this.config.zuplo_edge_api_url??"https://api.zuploedge.com"}get remoteLogToken(){return this.runtime.__ZUPLO_REMOTE_LOG_TOKEN??this.config.remote_log_token??void 0}get zuploClientAuthBucketId(){return this.config.zuplo_auth_client_bucket_id??"auth_o8PUdhKxSTOiB794GWPwLQCD"}get managementApiURL(){return this.runtime.__ZUPLO_MANAGEMENT_API_URL??this.config.management_api_url??"https://api.zuplo.com"}get developerApiUrl(){return this.config.developer_api_url??"https://dev.zuplo.com"}get cdnURL(){return this.runtime.__ZUPLO_CDN_URL??this.config.cdn_url??"https://cdn.zuplo.com"}get remoteLogURL(){return this.runtime.__ZUPLO_REMOTE_LOG_URL??this.config.log_event_api??"https://ellie.zuploedge.com"}get loggingId(){return this.runtime.__ZUPLO_LOGGING_ID??this.config.logging_id??void 0}get redisURL(){return this.runtime.__ZUPLO_REDIS_URL??this.config.redis_proxy_url??"https://redis-proxy.zuploedge.com"}get apiKeyServiceUrl(){return this.runtime.__ZUPLO_API_KEY_SERVICE_URL??this.config.api_key_service_url??"https://apikey.zuploedge.com"}get meteringServiceUrl(){return this.config.metering_service_url??"https://meters.zuploedge.com"}get authApiJWT(){return this.runtime.__ZUPLO_AUTH_API_JWT??void 0}get authClientId(){return this.config.auth_client_id??this.runtime.__ZUPLO_AUTH_CLIENT_ID}get authClientSecret(){return this.config.auth_client_secret??this.runtime.__ZUPLO_AUTH_CLIENT_SECRET}get authPublicKey(){return this.config.auth_public_key??this.runtime.__ZUPLO_AUTH_PUBLIC_KEY}get authPrivateKey(){return this.config.auth_private_key??this.runtime.__ZUPLO_AUTH_PRIVATE_KEY}get userLogLevel(){return this.runtime.ZUPLO_LOG_LEVEL??this.runtime.__ZUPLO_LOG_LEVEL??this.config.user_log_level??"debug"}get systemLogLevel(){return this.runtime.__ZUPLO_LOG_LEVEL??this.config.system_log_level??"debug"}get logFormat(){return this.runtime.__ZUPLO_LOG_FORMAT??this.config.log_format??"cloudflare"}get isCloudflare(){return this.runtime.__ZUPLO_RUNTIME_TYPE?this.runtime.__ZUPLO_RUNTIME_TYPE==="cloudflare":this.config.runtime_type?this.config.runtime_type==="cloudflare":typeof WebSocketPair=="function"}get isManagedDedicated(){return this.runtime.__ZUPLO_IS_MANAGED_DEDICATED==="true"}get isDeno(){if(this.runtime.__ZUPLO_RUNTIME_TYPE)return this.runtime.__ZUPLO_RUNTIME_TYPE==="deno";if(this.config.runtime_type)return this.config.runtime_type==="deno";{let s=globalThis.Deno?.version?.deno;return typeof WebSocketPair!="function"&&s}}get isLocalDevelopment(){return this.build.IS_LOCAL_DEVELOPMENT}get isTestMode(){return!!this.runtime.__ZUPLO_TEST_MODE}get systemUserAgent(){return`Zuplo/${this.build.ZUPLO_VERSION}`}get loggingEnvironmentType(){return this.isCloudflare?"edge":this.isLocalDevelopment?"local":this.isDeno?"working-copy":"unknown"}get loggingEnvironmentStage(){return this.build.ENVIRONMENT_TYPE==="PRODUCTION"?"production":this.build.ENVIRONMENT_TYPE==="PREVIEW"?"preview":this.isLocalDevelopment?"local":this.isWorkingCopy?"working-copy":"unknown"}get isWorkingCopy(){return this.build.ENVIRONMENT_TYPE==="WORKING_COPY"}get rateLimitServiceTimeoutMs(){let s=this.runtime.__ZUPLO_RATE_LIMIT_TIMEOUT_MS,f=this.config.rate_limit_service_timeout_ms,d=s??f;if(!d)return 500;let y=Number(d);return Number.isFinite(y)&&y>0?y:500}};var pXt=["ZUPLO_USER_LOGGER_DATA_DOG_API_KEY","ZUPLO_USER_LOGGER_DATA_DOG_URL","ZUPLO_LOG_LEVEL","ZUPLO_HANDLER_WRITE_LOG_LEVEL"];function sit(o){return o.startsWith("__ZUPLO")||o.startsWith("ZUPLO_")?!pXt.includes(o)&&!o.startsWith("ZUPLO_PUBLIC_"):o.startsWith("ZUDOKU_")?!o.startsWith("ZUDOKU_PUBLIC_"):!1}t(sit,"isRestrictedEnvVariableName");function ait(o){return!!o.startsWith("ZUPLO_")}t(ait,"isZuploReadableEnvVariableName");var Akr=new Proxy({},{get(o,s){let f=String(s);switch(f){case"ZUPLO_ENVIRONMENT_TYPE":return Em.instance.loggingEnvironmentType;case"ZUPLO_ENVIRONMENT_STAGE":return Em.instance.loggingEnvironmentStage;case"ZUPLO_ENVIRONMENT_NAME":return Em.instance.runtime.__ZUPLO_DEPLOYMENT_NAME;case"ZUPLO_ACCOUNT_NAME":return Em.instance.build.ACCOUNT_NAME;case"ZUPLO_PROJECT_NAME":return Em.instance.build.PROJECT_NAME;case"ZUPLO_BUILD_ID":return Em.instance.build.BUILD_ID;case"ZUPLO_COMPATIBILITY_DATE":return Em.instance.build.COMPATIBILITY_DATE}if(!(sit(f)&&!ait(f)))return Em.instance.runtime[f]}});function $V(o,s,f){return`_${zP(`${o}_${s}_${f}`)}`}t($V,"getRawOperationDataIdentifierName");function dAe(o,s,f,d){return`_${zP(o.toLowerCase())}_${s.toLowerCase()}_${f.toLowerCase()}_${d.toLowerCase()}`}t(dAe,"getIdForParameterSchema");function mAe(o,s,f){return`_${zP(o.toLowerCase())}_${s.toLowerCase()}_rb_${zP(f.toLowerCase())}`}t(mAe,"getIdForRequestBodySchema");function JV(o,s){return`_${zP(o)}_${zP(s)}`}t(JV,"getIdForRefSchema");function zP(o){let s=o.replace(/\[/g,"_LBRACKET_").replace(/\]/g,"_RBRACKET_").replace(/\{/g,"_LCURLY_").replace(/\}/g,"_RCURLY_").replace(/\//g,"_SLASH_").replace(/-/g,"_DASH_").replace(/\./g,"_DOT_").replace(/\+/g,"_PLUS_").replace(/:/g,"_COLON_").replace(/@/g,"_AT_").replace(/\$/g,"_DOLLAR_").replace(/[^a-zA-Z0-9_]/g,"_");return/^[a-zA-Z_]/.test(s)||(s=`_${s}`),s}t(zP,"sanitizedIdentifierName");var gAe={};Gtt(gAe,{UnsafePathError:()=>Goe,deleteFolder:()=>wXt,dirExists:()=>hAe,fileExists:()=>gXt,getParentDirFilename:()=>EXt,isNotFileOrDirectory:()=>vXt,listFolderContents:()=>lit,listFolders:()=>SXt,mkDirTemp:()=>yXt,mkdirForFilePathIfNotExits:()=>TXt,mkdirIfNotExists:()=>uit,safePath:()=>xXt,tarFolder:()=>CXt,untarFile:()=>kXt});import{spawn as oit}from"node:child_process";import{randomUUID as dXt}from"node:crypto";import KN from"node:fs/promises";import{platform as mXt,tmpdir as hXt}from"node:os";import I1 from"node:path";var cit=[".git","node_modules",".yarn",".DS_Store"];async function gXt(o){try{return(await KN.stat(o)).isFile()}catch{return!1}}t(gXt,"fileExists");async function yXt(){let o=process.env.BUILD_FILE_PATH??hXt(),s=dXt().replaceAll("-",""),f=I1.join(o,s);return await KN.mkdir(f,{recursive:!0}),f}t(yXt,"mkDirTemp");async function hAe(o){try{return(await KN.stat(o)).isDirectory()}catch{return!1}}t(hAe,"dirExists");async function vXt(o){try{return await KN.stat(o),!1}catch{return!0}}t(vXt,"isNotFileOrDirectory");function bXt(o,s){let f=I1.sep==="\\"?"\\\\":I1.sep,d=new RegExp(`(.*)(${f}${s})$|(.*)(${s}${f})`),y=o.match(d);if(!y)return"";let x=o.split(y[0]);return x[1]===""?"":I1.join(I1.sep,x[1])}t(bXt,"getParentDirectory");async function SXt(o){if(!await hAe(o))return[];let s=await KN.readdir(o,{withFileTypes:!0}),f=[];for await(let d of s)cit.includes(d.name)||d.isDirectory()&&f.push(d.name);return f}t(SXt,"listFolders");async function lit(o,s,f=!0){let d=bXt(o,s),y=await KN.readdir(o,{withFileTypes:!0}),x=[];for await(let P of y)if(!cit.includes(P.name)||!f)if(P.isDirectory()){let F=await lit(I1.join(o,P.name),s,f);x.push(...F)}else x.push(I1.join(d,P.name));return x}t(lit,"listFolderContents");var uit=t(async o=>{await KN.mkdir(o,{recursive:!0})},"mkdirIfNotExists"),TXt=t(async o=>{let s=I1.dirname(o);return uit(s)},"mkdirForFilePathIfNotExits"),Goe=class extends Error{static{t(this,"UnsafePathError")}};function xXt(o){let s=I1.normalize(o),f=t(d=>{let y=I1.normalize(d),x=process.platform==="win32",P=!1;if(x?P=y.toLowerCase().startsWith(s.toLowerCase()):P=y.startsWith(s),!P)throw new Goe("Resolved path is not part of the project.");return y},"ensureSafePath");return{resolve:t((...d)=>f(I1.resolve(...d)),"resolve")}}t(xXt,"safePath");function EXt(o){return I1.join(I1.basename(I1.dirname(o)),I1.basename(o))}t(EXt,"getParentDirFilename");async function CXt({folderPath:o,outputTarPath:s,exclude:f=["node_modules",".git","dist"],logger:d}){let y=[],x=[],P;try{await new Promise((F,J)=>{let G=oit("tar",[...f.flatMap(Se=>["--exclude",Se]),...mXt()!=="darwin"?["--warning=no-file-changed"]:[],"-cvf",s,"-C",o,"."]);G.stdout.on("data",Se=>{let de=Se.toString().trim();de.length>0&&y.push(de.trim())}),G.stderr.on("data",Se=>{let de=Se.toString().trim();de.length>0&&x.push(de.trim())}),G.on("close",Se=>{P=Se,Se===0?F():J(new Error(`tar process exited with code ${Se}`))}),G.on("error",Se=>{J(Se)})})}catch(F){throw new Error("Failed to tar folder",{cause:F})}finally{d.info({stdout:y.join(`
|
|
571
572
|
`),stderr:x.join(`
|
|
572
|
-
`),exitCode:P},"Tar process logs")}}t(
|
|
573
|
+
`),exitCode:P},"Tar process logs")}}t(CXt,"tarFolder");async function kXt({tarFilePath:o,outputDir:s,logger:f}){let d=[],y=[],x;try{await new Promise((P,F)=>{let J=oit("sh",["-c",`tar -xvf ${o} -C ${s};`]);J.stdout.on("data",G=>{let Se=G.toString().trim();Se.length>0&&d.push(Se.trim())}),J.stderr.on("data",G=>{let Se=G.toString().trim();Se.length>0&&y.push(Se.trim())}),J.on("close",G=>{x=G,G===0?P():F(new Error(`tar process exited with code ${G}`))}),J.on("error",G=>{F(G)})})}catch(P){throw new Error("Failed to untar file",{cause:P})}finally{f.info({stdout:d.join(`
|
|
573
574
|
`),stderr:y.join(`
|
|
574
|
-
`),exitCode:x},"Untar process logs")}}t(Vtr,"untarFile");async function Htr(o){if(await x6e(o))return await tI.rm(o,{recursive:!0})}t(Htr,"deleteFolder");var tu=E6e;var uT=Sd(T6e(),1);var EO=class extends Error{static{t(this,"CustomResolveError")}},rI=class{static{t(this,"RefParser")}sourceDirectory;logger;constructor(s,f){this.sourceDirectory=s,this.logger=f}dereference(s,f){return rH.$RefParser.dereference(s,{resolve:{json:!0,file:yce(this.sourceDirectory,this.logger),external:!0,http:!1},dereference:{circular:"ignore",onDereference:f?.onDereference}})}bundle(s){return rH.$RefParser.bundle(s,{resolve:{file:yce(this.sourceDirectory,this.logger),external:!0,http:!1}})}parse(s){return rH.$RefParser.parse(s,{resolve:{file:yce(this.sourceDirectory,this.logger),external:!0,http:!1}})}resolve(s){return rH.$RefParser.resolve(s,{resolve:{file:yce(this.sourceDirectory,this.logger),external:!0,http:!1}})}};function yce(o,s){return{order:100,canRead(f){let d=Xtr(f.url);if(!(d===void 0||d==="file"))return!1;let x;try{x=Tat(f.url)}catch(P){throw new EO(`Malformed URI: ${f.url}`,{cause:P})}try{tu.safePath(o).resolve(x)}catch(P){return s?.warn(P),!1}return!0},async read(f){let d;try{d=Tat(f.url)}catch(y){throw new EO(`Malformed URI: ${f.url}`,{cause:y})}try{return await Gtr(d)}catch(y){throw new EO(`Error opening file "${d}"`,{cause:y})}}}}t(yce,"customResolver");var _M=/^win/.test(globalThis.process?globalThis.process.platform:""),Ytr=/\//g,Ktr=/^(\w{2,}):\/\//i,C6e=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"];function Xtr(o){let s=Ktr.exec(o);if(s)return s[1].toLowerCase()}t(Xtr,"getProtocol");function Tat(o,s){o=decodeURI(o);for(let d=0;d<C6e.length;d+=2)o=o.replace(C6e[d],C6e[d+1]);let f=o.substr(0,7).toLowerCase()==="file://";if(f&&(o=o[7]==="/"?o.substr(8):o.substr(7),_M&&o[1]==="/"&&(o=`${o[0]}:${o.substr(1)}`),s?o=`file:///${o}`:(f=!1,o=_M?o:`/${o}`)),!f){let d=o.split(_M?"\\":"/"),y=[];for(let x of d)x===".."?y.length&&y[y.length-1]!==""&&y.pop():(x!==""||y.length===0)&&y.push(x);o=y.join(_M?"\\":"/"),!_M&&y[0]===""&&(o=`/${o.substring(1)}`)}return _M&&!f&&(o=o.replace(Ytr,"\\"),o.substr(1,2)===":\\"&&(o=o[0].toUpperCase()+o.substr(1))),o}t(Tat,"toFileSystemPath");var xat="YOUR_KEY_HERE";async function Eat(o){let f=await new rI(o.sourceDirectory,o.logger).bundle(o.openApiDocPath),d=o.openApiDocPath.replace(o.sourceDirectory,"");return Ztr({...o,relativeOpenApiPath:d},f)}t(Eat,"buildPublicOpenApiFile");async function Ztr(o,s){rrr({relativeOpenApiPath:o.relativeOpenApiPath},s);let f=s;return f=err(f),Qtr(f,o.urls?.api?.defaultUrl),f=trr(f,o),Cat(f,"x-zuplo"),f}t(Ztr,"buildRawOpenApiFile");function Qtr(o,s){s?o.servers=[{url:s}]:o.servers=[]}t(Qtr,"addServerHost");function err(o){if(!o.paths)return o;let{components:s}=o,f=s?{...s}:void 0,d=[];f&&f.parameters&&(d=Object.entries(f.parameters).reduce((x,[P,F])=>(M9 in F&&uoe(F[M9])&&(x.push(P),f.parameters&&delete f.parameters[P]),x),[]));let y=Object.entries(o.paths).reduce((x,[P,F])=>{if(!F)return x;let J={...F},G=["delete","get","head","patch","post","put","trace","options"];return G.forEach(Se=>{let de=F[Se];if(!de)return;if(uoe(de[M9])){delete J[Se];return}let{parameters:ae}=de;if(!ae)return;let Ke=ae.filter($e=>{if(M9 in $e&&uoe($e[M9]))return!1;if("$ref"in $e){let Fe=$e.$ref.split("/").pop();return Fe?!d.includes(Fe):!0}return!0});J[Se]={...de,parameters:Ke}}),G.some(Se=>!!J[Se])&&(x[P]=J),x},{});return{...o,paths:y,components:f}}t(err,"removeHiddenRoutesAndParams");function trr(o,{policiesConfig:s}){if(!o.paths)return o;let f=Object.entries(o.paths).reduce((d,[y,x])=>{if(!x)return d;let P={...x};return[P.delete,P.get,P.head,P.patch,P.post,P.put,P.trace,P.options].forEach(F=>{if(!F)return;let J=F["x-zuplo-route"]?.policies?.inbound?.reduce((de,ae)=>{let Ke=s.policies?.find(({name:Gt})=>Gt===ae);if(!Ke)return de;if(!(Ke.handler.export==="CompositeInboundPolicy"))return de.concat(ae);let Fe=Ke.handler.options?.policies;return Fe?de.concat(Fe):de},[]),G=[];if(J&&J.forEach(de=>{s.policies?.forEach(ae=>{ae.name===de&&(ae.handler.export==="ApiAuthKeyInboundPolicy"||ae.handler.export==="ApiKeyInboundPolicy")&&!ae.handler.options?.disableAutomaticallyAddingKeyHeaderToOpenApi&&G.push(ae)})}),G.length>0){let de=G.length>0&&G[0].handler&&G[0].handler.options&&G[0].handler.options.authHeader?G[0].handler.options.authHeader:"Authorization",ae=G.length>0&&G[0].handler&&G[0].handler.options&&(G[0].handler.options.authScheme||G[0].handler.options.authScheme==="")?G[0].handler.options.authScheme:"Bearer",Ke=ae!==""?`${ae} ${xat}`:xat,$e={name:de,in:"header",required:!0,example:Ke,schema:{type:"string"},description:`The \`${de}\` header is used to authenticate with the API using your API key. Value is of the format \`${Ke}\`.`};F.parameters?F.parameters.some(Pr=>"name"in Pr&&Pr.name===$e.name)||F.parameters.unshift($e):F.parameters=[$e];let Fe={type:"http",scheme:ae.toLowerCase()},Gt="api_key";o.components?.securitySchemes?Object.values(o.components?.securitySchemes).some(Pr=>"name"in Pr&&Pr.type==="apiKey"||"type"in Pr&&Pr.type==="http"&&Pr.scheme===ae)||(o.components.securitySchemes={...o.components.securitySchemes,[Gt]:Fe}):(o.components||(o.components={}),o.components.securitySchemes={[Gt]:Fe});let jt={[Gt]:[]};F.security?F.security.some(Pr=>Pr[Gt]!==void 0)||F.security.unshift(jt):F.security=[jt]}let Se=[];if(J&&J.forEach(de=>{s.policies?.forEach(ae=>{ae.name===de&&(ae.handler.export==="RateLimitInboundPolicy"||ae.handler.export==="ComplexRateLimitInboundPolicy")&&Se.push(ae)})}),Se.length>0){let de={description:"Rate Limiting Response",content:{"application/json":{schema:{type:"object",required:["type","title","status"],examples:[{type:"https://httpproblems.com/http-status/429",title:"Too Many Requests",status:429,instance:"/foo/bar"}],properties:{type:{type:"string",example:"https://httpproblems.com/http-status/429",description:"A URI reference that identifies the problem."},title:{type:"string",example:"Too Many Requests",description:"A short, human-readable summary of the problem."},status:{type:"number",example:429,description:"The HTTP status code."},instance:{type:"string",example:"/foo/bar"}}}}}},ae={...de,headers:{"retry-after":{description:"The number of seconds to wait before making a new request.",schema:{type:"integer",example:60}}}};o.components?.responses||o.components||(o.components={}),o.components.responses={...o.components.responses,RateLimitNoRetryAfter:de,RateLimitWithRetryAfter:ae},F.responses||(F.responses={});let Ke=Se.some($e=>$e.handler.options?.headerMode!=="none");F.responses[429]||(F.responses[429]={$ref:Ke?"#/components/responses/RateLimitWithRetryAfter":"#/components/responses/RateLimitNoRetryAfter"})}}),d[y]=P,d},{});return{...o,paths:f}}t(trr,"enrichSpecWithZuploData");function Cat(o,s){for(let f in o)f.startsWith(s)?delete o[f]:typeof o[f]=="object"&&Cat(o[f],s)}t(Cat,"removePropertiesByPrefix");function rrr({relativeOpenApiPath:o},s){if(!s||typeof s!="object")throw new w1({message:"The OpenAPI Document could not be parsed.",severity:"error"});if(!("info"in s)||typeof s.info!="object"||!s.info)throw new w1({message:"The OpenAPI document does not have the required 'info' property.",location:{file:o,column:0,length:0,line:0,lineText:"",namespace:"",suggestion:"Add the required 'info' property. https://spec.openapis.org/oas/v3.1.0#info-object"},severity:"error"});if(!("title"in s.info)||typeof s.info.title!="string")throw new w1({message:"The OpenAPI document does not have the required 'info.title' property.",location:{file:o,column:0,length:0,line:0,lineText:"",namespace:"",suggestion:"Add the required 'info.title' property. https://spec.openapis.org/oas/v3.1.0#info-object"},severity:"error"})}t(rrr,"assertIsZuploOpenApiSpec");import Hle from"node:path";function nrr(o){if(o.length>=255)throw new TypeError("Alphabet too long");let s=new Uint8Array(256);for(let G=0;G<s.length;G++)s[G]=255;for(let G=0;G<o.length;G++){let Se=o.charAt(G),de=Se.charCodeAt(0);if(s[de]!==255)throw new TypeError(Se+" is ambiguous");s[de]=G}let f=o.length,d=o.charAt(0),y=Math.log(f)/Math.log(256),x=Math.log(256)/Math.log(f);function P(G){if(G instanceof Uint8Array||(ArrayBuffer.isView(G)?G=new Uint8Array(G.buffer,G.byteOffset,G.byteLength):Array.isArray(G)&&(G=Uint8Array.from(G))),!(G instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(G.length===0)return"";let Se=0,de=0,ae=0,Ke=G.length;for(;ae!==Ke&&G[ae]===0;)ae++,Se++;let $e=(Ke-ae)*x+1>>>0,Fe=new Uint8Array($e);for(;ae!==Ke;){let Pr=G[ae],Fn=0;for(let sn=$e-1;(Pr!==0||Fn<de)&&sn!==-1;sn--,Fn++)Pr+=256*Fe[sn]>>>0,Fe[sn]=Pr%f>>>0,Pr=Pr/f>>>0;if(Pr!==0)throw new Error("Non-zero carry");de=Fn,ae++}let Gt=$e-de;for(;Gt!==$e&&Fe[Gt]===0;)Gt++;let jt=d.repeat(Se);for(;Gt<$e;++Gt)jt+=o.charAt(Fe[Gt]);return jt}t(P,"encode");function F(G){if(typeof G!="string")throw new TypeError("Expected String");if(G.length===0)return new Uint8Array;let Se=0,de=0,ae=0;for(;G[Se]===d;)de++,Se++;let Ke=(G.length-Se)*y+1>>>0,$e=new Uint8Array(Ke);for(;G[Se];){let Pr=s[G.charCodeAt(Se)];if(Pr===255)return;let Fn=0;for(let sn=Ke-1;(Pr!==0||Fn<ae)&&sn!==-1;sn--,Fn++)Pr+=f*$e[sn]>>>0,$e[sn]=Pr%256>>>0,Pr=Pr/256>>>0;if(Pr!==0)throw new Error("Non-zero carry");ae=Fn,Se++}let Fe=Ke-ae;for(;Fe!==Ke&&$e[Fe]===0;)Fe++;let Gt=new Uint8Array(de+(Ke-Fe)),jt=de;for(;Fe!==Ke;)Gt[jt++]=$e[Fe++];return Gt}t(F,"decodeUnsafe");function J(G){let Se=F(G);if(Se)return Se;throw new Error("Non-base"+f+" character")}return t(J,"decode"),{encode:P,decodeUnsafe:F,decode:J}}t(nrr,"base");var kat=nrr;var irr="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",vce=kat(irr);var srr=!1;function pM(o,s){return{open:`\x1B[${o.join(";")}m`,close:`\x1B[${s}m`,regexp:new RegExp(`\\x1b\\[${s}m`,"g")}}t(pM,"code");function dM(o,s){return srr?`${s.open}${o.replace(s.regexp,s.open)}${s.close}`:o}t(dM,"run");function arr(o){return dM(o,pM([31],39))}t(arr,"red");function orr(o){return dM(o,pM([32],39))}t(orr,"green");function crr(o){return dM(o,pM([33],39))}t(crr,"yellow");function lrr(o){return dM(o,pM([34],39))}t(lrr,"blue");function urr(o){return dM(o,pM([35],39))}t(urr,"magenta");function frr(o){return dM(o,pM([36],39))}t(frr,"cyan");var Qwr=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|"),"g");var wat=[arr,orr,crr,lrr,urr,frr];function _rr(o){let s=0,f=o.length,d=0;if(f>0)for(;d<f;)s=(s<<5)-s+o.charCodeAt(d++)|0;return s}t(_rr,"hashCode");function Dat(o){let s=Math.abs(_rr(o));return wat[s%wat.length]}t(Dat,"generateColor");import{inspect as prr}from"node:util";function Pat(o,s,...f){let d=0,y=f.length,x=String(s).replace(/%[sdjoO%]/g,P=>{if(P==="%%")return"%";if(d>=y)return P;switch(P){case"%s":return String(f[d++]);case"%d":return Number(f[d++]).toString();case"%o":return o(f[d++]).split(`
|
|
575
|
-
`).map(F=>F.trim()).join(" ");case"%O":return o(f[d++]);case"%j":try{return JSON.stringify(f[d++])}catch{return"[Circular]"}default:return P}});for(let P of f.splice(d))P===null||!(typeof P=="object"&&P!==null)?x+=" "+P:x+=" "+o(P);return x}t(Pat,"format");var Aat=t((o,...s)=>Pat(prr,o,s),"format");var k6e=class{static{t(this,"Debugger")}manager;ns;color;last;enabled;constructor(s,f){this.manager=s,this.ns=f,this.color=Dat(f),this.last=0,this.enabled=s.enabled.some(d=>d.test(f))}log(...s){if(!this.enabled)return;let f,d=s[0];typeof d=="function"?f=d():f=String(d);let y=Date.now()-(this.last||Date.now());f=Aat(f,...s);let x=`${this.color(this.ns)} ${f} ${this.color(`+${y}ms`)}`;console.log(x),this.last=Date.now()}},w6e=class{static{t(this,"DebugManager")}debuggers;enabled;constructor(s){this.debuggers=new Map,this.enabled=s??[]}};function drr(o){return!o||o.length===0?[]:(o=o.replace(/\s/g,"").replace(/\*/g,".+"),o.split(",").map(s=>new RegExp(`^${s}$`)))}t(drr,"extract");var bce;function Sce(o){bce||(bce=new w6e(drr(process.env.DEBUG)));let s=new k6e(bce,o);return bce.debuggers.set(o,s),Object.assign(s.log.bind(s),{self:s})}t(Sce,"debug");var WP=class extends Error{static{t(this,"RuntimeError")}extensionMembers;constructor(s,f){typeof s=="string"?super(s,f):(super(s.message,f),this.extensionMembers=s.extensionMembers),this.name="RuntimeError"}};var Nat="zp-local-service";var mDr=Symbol("zuplo_meters"),hDr=Symbol("zuplo_dynamic_meters");var nI=Sce("zuplo:runtime:external-service");function mrr(){let o,{__ZUPLO_EXTERNAL_SERVICE_TOKEN:s}=Em.instance.runtime;if(s&&s!=="undefined")try{let f=atob(s);o=JSON.parse(f)}catch{}return o}t(mrr,"getServiceAuth");async function Iat(o,s){let f=".proxy",d=".tunnel";if(typeof o=="string"){let y=new URL(o),x=y.hostname;if(x.endsWith(f)){let Gt=x.slice(0,-f.length),jt=new URL(`http://${Gt}${y.pathname}${y.search}`);nI(`Routing to proxy: ${jt.toString()}`);let Pr=s??{};return nH(jt.toString(),Pr)}let P=x.endsWith(d),F=x.indexOf(".")===-1;if(!(P||F))throw new WP(`Invalid service hostname suffix: ${x}. Use .proxy for proxy routing, .tunnel for explicit tunnel routing, or no suffix for default tunnel routing.`);let G=P?x.slice(0,-d.length):x,Se=mrr();if(!Se)throw nI("There is no external service auth configured for this zup."),new WP("There are no external services configured for this zup.");nI(`Using external service auth. ClientId: ${Se.clientId})`);let de=s??{},ae=new Headers(de.headers||{});ae.set("CF-Access-Client-Id",Se.clientId),ae.set("CF-Access-Client-Secret",Se.clientSecret),de.headers=ae;let Ke;if(Se.customServiceMapping?.[G])Ke=`https://${Se.customServiceMapping[G]}`;else if(Em.instance.useLegacyServiceRouting)Ke=`https://${G}.zuptunnel.com`;else{nI("Using sha256 service routing");let Gt=Em.instance.build;if(Gt.ACCOUNT_NAME&&Gt.PROJECT_NAME&&Gt.ENVIRONMENT_TYPE){let jt=await hrr(G,Gt.ACCOUNT_NAME,Gt.PROJECT_NAME,Gt.ENVIRONMENT_TYPE),Pr=Fat(Gt.ENVIRONMENT_TYPE),Fn=await D6e(`${Gt.ACCOUNT_NAME}-${Gt.PROJECT_NAME}-${Pr}`);Fn==="40d7ad502f5d743997999594c177184a00161a77865423511f3a1ea21eb5a5e"||Fn==="d05bffe8fa91a300187d2cf43e8aa4a56bd809c442ae10d1ee49af7d29a5a11"?Ke=`https://${jt}.zuptunnel.com`:Ke=`https://${jt}.t.zuplo.app`}else throw nI("Cannot use sha256 service routing, missing build variables"),new WP("Failed to generate fully qualified tunnel url.")}let $e=new URL(`${Ke}${y.pathname}${y.search}`);nI(`Calling external service: ${$e.toString()}`);let Fe=await nH($e.toString(),de);if(Fe.status===403&&Fe.headers.get("cf-access-domain")!==null)throw iH.console.error("403 Forbidden when calling external service.",{clientId:Se.clientId,tunnelHost:Ke}),new WP("Could not connect to secure tunnel.");return Fe}else throw nI("Cannot call external service with Request object"),new WP("Currently, we only support fetch(<some_string>, ...).")}t(Iat,"externalServiceHandler");async function Oat(o,s){if(typeof o=="string"){let f=new URL(o),d=f.hostname,y=s??{},x=`http://${d}.zuplo.svc.cluster.local:9000`,P=new URL(`${x}${f.pathname}${f.search}`),F=new Headers(y.headers||{});return F.set(Nat,d),y.headers=F,await nH(P.toString(),y)}else throw new WP("Currently, we only support fetch(<some_string>, ...).")}t(Oat,"clusterServiceHandler");async function hrr(o,s,f,d){let y=o.toLowerCase(),x=s.toLowerCase(),P=f.toLowerCase(),F=Fat(d);nI(`Hashing service name: ${x}-${y}.${x}-${P}-${F}`);let J=await D6e(`${x}-${y}`),G=await D6e(`${x}-${P}-${F}`);return`${J}.${G}`}t(hrr,"hashServiceName");async function D6e(o){let s=new TextEncoder().encode(o),f=await crypto.subtle.digest("SHA-256",s);return Array.from(new Uint8Array(f)).map(x=>x.toString(16).padStart(2,"0")).join("").slice(0,-1)}t(D6e,"hashSegment");function Fat(o){let s=o.toLowerCase();switch(s){case"production":case"preview":return s;default:return"working-copy"}}t(Fat,"sanitizeEnvironmentType");var P6e=new Map;P6e.set("service:",Iat);P6e.set("local:",Oat);var nH=globalThis.fetch;function A6e(o,s){let{transformedInit:f,mtlsCertificate:d}=grr(s);if(typeof o=="string"){let y=new URL(o),x=P6e.get(y.protocol);return x?x(o,f):Lat(o,f,d)}else return Lat(o,f,d)}t(A6e,"internalFetch");globalThis.fetch=A6e;function Lat(o,s,f){if(!f)return nH(o,s);if(Em.instance.isCloudflare){let y=Em.instance.runtime[f];if(!y)throw new Error(`mTLS certificate binding '${f}' not found. Ensure the certificate is uploaded and properly configured.`);if(typeof y!="object"||typeof y.fetch!="function")throw new Error(`mTLS certificate binding '${f}' is not a valid mTLS certificate binding. Make sure it's configured as an mTLS certificate, not an environment variable.`);return y.fetch(o,s)}else throw Em.instance.isDeno?new Error("mTLS client certificates are not yet supported in Deno runtime. This will be added in a future update."):new Error("mTLS client certificates are not supported in this runtime environment")}t(Lat,"performFetch");var grr=t(o=>{if(!o||o instanceof Request)return{transformedInit:o,mtlsCertificate:void 0};let s=o;if(!s.zuplo)return{transformedInit:o,mtlsCertificate:void 0};let f=s.zuplo.mtlsCertificate,d=o;return d.cf={cacheEverything:s.zuplo?.cacheEverything,cacheTtl:s.zuplo?.cacheTtlSeconds},delete o.zuplo,{transformedInit:o,mtlsCertificate:f}},"transformInit");var yrr={console:{log:console.log.bind(console),info:console.info.bind(console),warn:console.warn.bind(console),error:console.error.bind(console),debug:console.debug.bind(console),assert:console.assert.bind(console),clear:console.clear.bind(console),count:console.count.bind(console),countReset:console.countReset.bind(console),dir:console.dir.bind(console),dirxml:console.dirxml.bind(console),group:console.group.bind(console),groupCollapsed:console.groupCollapsed.bind(console),groupEnd:console.groupEnd.bind(console),table:console.table.bind(console),time:console.time.bind(console),timeEnd:console.timeEnd.bind(console),timeLog:console.timeLog.bind(console),timeStamp:console.timeStamp.bind(console),trace:console.trace.bind(console),profile:console.profile.bind(console),profileEnd:console.profileEnd.bind(console)},fetch:A6e},iH=yrr;var N6e="2025-02-06",Rat=Object.freeze({none:{runOutboundPoliciesOnHandlerOnAllStatuses:!1,doNotRunHooksOnSystemRoutes:!1,removeAllVendorHeadersExceptListed:!1,allowCustomPorts:!1,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1},"2023-03-14":{runOutboundPoliciesOnHandlerOnAllStatuses:!1,doNotRunHooksOnSystemRoutes:!1,removeAllVendorHeadersExceptListed:!1,allowCustomPorts:!1,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1},"2024-01-15":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!1,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1},"2024-03-14":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!1,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1},"2024-09-02":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!0,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1},"2025-02-06":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!0,removeLegacyLogInitialization:!0,useForwardRedirectsPropOnUrlForwardHandler:!0}});function Mat(){return new Em({build:{ACCOUNT_NAME:"mock-account-name",PROJECT_NAME:"mock-project-name",API_VERSION:"0.0.0",BUILD_ID:crypto.randomUUID(),TIMESTAMP:new Date().toISOString(),BUILD_ENV:"test",ZUPLO_VERSION:"0.0.0",COMPATIBILITY_DATE:N6e,ENVIRONMENT_TYPE:"mock-environment-type",GIT_SHA:void 0,IS_LOCAL_DEVELOPMENT:!1,COMPATIBILITY_FLAGS:Rat[N6e]},runtime:{RUNTIME_ENV:"test",RUNTIME_STAGE:"test",__ZUPLO_DEPLOYMENT_NAME:"mock-deployment-name",__ZUPLO_LOG_LEVEL:"debug",__ZUPLO_LOG_FORMAT:"pretty",__ZUPLO_MANAGEMENT_API_URL:"",__ZUPLO_RUNTIME_TYPE:"cloudflare",__ZUPLO_AUTH_API_JWT:"",ZUPLO_SERVICE_BUCKET_ID:"mock-bucket-id"}})}t(Mat,"getMockEnvironment");var Em=class o{static{t(this,"Environment")}config;static#e;static#n=!1;static initialize(s){o.#e||(o.#e=new o(s),o.#n=!0)}static get instance(){return o.#n||(iH.console.debug("Environment has not been initialized. This is okay when running tests, a mock environment will be used."),o.#e=Mat()),o.#e}constructor({build:s,runtime:f}){let d;try{if(f.ZUPLO_SYSTEM_CONFIGURATIONS){let y=new TextDecoder().decode(vce.decode(f.ZUPLO_SYSTEM_CONFIGURATIONS)),x=JSON.parse(y);for(let P of Object.keys(x))f[P]||(f[P]=x[P])}if(f.__ZUPLO_CONFIG){let y=atob(f.__ZUPLO_CONFIG);d=JSON.parse(y)}}catch(y){iH.console.error("Failed to parse runtime configuration",y)}this.config=d??{},this.build=s,this.runtime=f,this.instanceId=crypto.randomUUID()}build;runtime;instanceId;get deploymentName(){return this.runtime.__ZUPLO_DEPLOYMENT_NAME??this.config.deployment_name??void 0}get useLegacyServiceRouting(){return this.config.use_legacy_service_routing??void 0}get useProxyForFetchFromZups(){return this.config.use_proxy_for_fetch_from_zups??void 0}get devPortalBaseUrl(){return this.runtime.__ZUPLO_DEV_PORTAL_URL??this.config.dev_portal_url??"https://dev-portal-v4-1.zuplo.com"}get buildAssetsUrl(){return this.runtime.__ZUPLO_BUILD_ASSETS_URL??this.config.build_assets_url??"https://build-assets.zuplo.com"}get zuploEdgeApiUrl(){return this.config.zuplo_edge_api_url??"https://api.zuploedge.com"}get remoteLogToken(){return this.runtime.__ZUPLO_REMOTE_LOG_TOKEN??this.config.remote_log_token??void 0}get zuploClientAuthBucketId(){return this.config.zuplo_auth_client_bucket_id??"auth_o8PUdhKxSTOiB794GWPwLQCD"}get managementApiURL(){return this.runtime.__ZUPLO_MANAGEMENT_API_URL??this.config.management_api_url??"https://api.zuplo.com"}get developerApiUrl(){return this.config.developer_api_url??"https://dev.zuplo.com"}get cdnURL(){return this.runtime.__ZUPLO_CDN_URL??this.config.cdn_url??"https://cdn.zuplo.com"}get remoteLogURL(){return this.runtime.__ZUPLO_REMOTE_LOG_URL??this.config.log_event_api??"https://ellie.zuploedge.com"}get loggingId(){return this.runtime.__ZUPLO_LOGGING_ID??this.config.logging_id??void 0}get redisURL(){return this.runtime.__ZUPLO_REDIS_URL??this.config.redis_proxy_url??"https://redis-proxy.zuploedge.com"}get apiKeyServiceUrl(){return this.runtime.__ZUPLO_API_KEY_SERVICE_URL??this.config.api_key_service_url??"https://apikey.zuploedge.com"}get meteringServiceUrl(){return this.config.metering_service_url??"https://meters.zuploedge.com"}get authApiJWT(){return this.runtime.__ZUPLO_AUTH_API_JWT??void 0}get authClientId(){return this.config.auth_client_id??this.runtime.__ZUPLO_AUTH_CLIENT_ID}get authClientSecret(){return this.config.auth_client_secret??this.runtime.__ZUPLO_AUTH_CLIENT_SECRET}get authPublicKey(){return this.config.auth_public_key??this.runtime.__ZUPLO_AUTH_PUBLIC_KEY}get authPrivateKey(){return this.config.auth_private_key??this.runtime.__ZUPLO_AUTH_PRIVATE_KEY}get userLogLevel(){return this.runtime.ZUPLO_LOG_LEVEL??this.runtime.__ZUPLO_LOG_LEVEL??this.config.user_log_level??"debug"}get systemLogLevel(){return this.runtime.__ZUPLO_LOG_LEVEL??this.config.system_log_level??"debug"}get logFormat(){return this.runtime.__ZUPLO_LOG_FORMAT??this.config.log_format??"cloudflare"}get isCloudflare(){return this.runtime.__ZUPLO_RUNTIME_TYPE?this.runtime.__ZUPLO_RUNTIME_TYPE==="cloudflare":this.config.runtime_type?this.config.runtime_type==="cloudflare":typeof WebSocketPair=="function"}get isManagedDedicated(){return this.runtime.__ZUPLO_IS_MANAGED_DEDICATED==="true"}get isDeno(){if(this.runtime.__ZUPLO_RUNTIME_TYPE)return this.runtime.__ZUPLO_RUNTIME_TYPE==="deno";if(this.config.runtime_type)return this.config.runtime_type==="deno";{let s=globalThis.Deno?.version?.deno;return typeof WebSocketPair!="function"&&s}}get isLocalDevelopment(){return this.build.IS_LOCAL_DEVELOPMENT}get isTestMode(){return!!this.runtime.__ZUPLO_TEST_MODE}get systemUserAgent(){return`Zuplo/${this.build.ZUPLO_VERSION}`}get loggingEnvironmentType(){return this.isCloudflare?"edge":this.isLocalDevelopment?"local":this.isDeno?"working-copy":"unknown"}get loggingEnvironmentStage(){return this.build.ENVIRONMENT_TYPE==="PRODUCTION"?"production":this.build.ENVIRONMENT_TYPE==="PREVIEW"?"preview":this.isLocalDevelopment?"local":this.isWorkingCopy?"working-copy":"unknown"}get isWorkingCopy(){return this.build.ENVIRONMENT_TYPE==="WORKING_COPY"}get rateLimitServiceTimeoutMs(){let s=this.runtime.__ZUPLO_RATE_LIMIT_TIMEOUT_MS,f=this.config.rate_limit_service_timeout_ms,d=s??f;if(!d)return 500;let y=Number(d);return Number.isFinite(y)&&y>0?y:500}};var vrr=["ZUPLO_USER_LOGGER_DATA_DOG_API_KEY","ZUPLO_USER_LOGGER_DATA_DOG_URL","ZUPLO_LOG_LEVEL","ZUPLO_HANDLER_WRITE_LOG_LEVEL"];function jat(o){return o.startsWith("__ZUPLO")||o.startsWith("ZUPLO_")?!vrr.includes(o)&&!o.startsWith("ZUPLO_PUBLIC_"):o.startsWith("ZUDOKU_")?!o.startsWith("ZUDOKU_PUBLIC_"):!1}t(jat,"isRestrictedEnvVariableName");function Bat(o){return!!o.startsWith("ZUPLO_")}t(Bat,"isZuploReadableEnvVariableName");var JDr=new Proxy({},{get(o,s){let f=String(s);switch(f){case"ZUPLO_ENVIRONMENT_TYPE":return Em.instance.loggingEnvironmentType;case"ZUPLO_ENVIRONMENT_STAGE":return Em.instance.loggingEnvironmentStage;case"ZUPLO_ENVIRONMENT_NAME":return Em.instance.runtime.__ZUPLO_DEPLOYMENT_NAME;case"ZUPLO_ACCOUNT_NAME":return Em.instance.build.ACCOUNT_NAME;case"ZUPLO_PROJECT_NAME":return Em.instance.build.PROJECT_NAME;case"ZUPLO_BUILD_ID":return Em.instance.build.BUILD_ID;case"ZUPLO_COMPATIBILITY_DATE":return Em.instance.build.COMPATIBILITY_DATE}if(!(jat(f)&&!Bat(f)))return Em.instance.runtime[f]}});function sH(o,s,f){return`_${qP(`${o}_${s}_${f}`)}`}t(sH,"getRawOperationDataIdentifierName");function I6e(o,s,f,d){return`_${qP(o.toLowerCase())}_${s.toLowerCase()}_${f.toLowerCase()}_${d.toLowerCase()}`}t(I6e,"getIdForParameterSchema");function O6e(o,s,f){return`_${qP(o.toLowerCase())}_${s.toLowerCase()}_rb_${qP(f.toLowerCase())}`}t(O6e,"getIdForRequestBodySchema");function aH(o,s){return`_${qP(o)}_${qP(s)}`}t(aH,"getIdForRefSchema");function qP(o){let s=o.replace(/\[/g,"_LBRACKET_").replace(/\]/g,"_RBRACKET_").replace(/\{/g,"_LCURLY_").replace(/\}/g,"_RCURLY_").replace(/\//g,"_SLASH_").replace(/-/g,"_DASH_").replace(/\./g,"_DOT_").replace(/\+/g,"_PLUS_").replace(/:/g,"_COLON_").replace(/@/g,"_AT_").replace(/\$/g,"_DOLLAR_").replace(/[^a-zA-Z0-9_]/g,"_");return/^[a-zA-Z_]/.test(s)||(s=`_${s}`),s}t(qP,"sanitizedIdentifierName");var zft=Sd(act(),1);var vH=class{static{t(this,"R")}type=3;name="";prefix="";value="";suffix="";modifier=3;constructor(o,s,f,d,y,x){this.type=o,this.name=s,this.prefix=f,this.value=d,this.suffix=y,this.modifier=x}hasCustomName(){return this.name!==""&&typeof this.name!="number"}},Vir=/[$_\p{ID_Start}]/u,Hir=/[$_\u200C\u200D\p{ID_Continue}]/u,pNe=".*";function Gir(o,s){return(s?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(o)}t(Gir,"Re");function lct(o,s=!1){let f=[],d=0;for(;d<o.length;){let y=o[d],x=t(function(P){if(!s)throw new TypeError(P);f.push({type:"INVALID_CHAR",index:d,value:o[d++]})},"c");if(y==="*"){f.push({type:"ASTERISK",index:d,value:o[d++]});continue}if(y==="+"||y==="?"){f.push({type:"OTHER_MODIFIER",index:d,value:o[d++]});continue}if(y==="\\"){f.push({type:"ESCAPED_CHAR",index:d++,value:o[d++]});continue}if(y==="{"){f.push({type:"OPEN",index:d,value:o[d++]});continue}if(y==="}"){f.push({type:"CLOSE",index:d,value:o[d++]});continue}if(y===":"){let P="",F=d+1;for(;F<o.length;){let J=o.substr(F,1);if(F===d+1&&Vir.test(J)||F!==d+1&&Hir.test(J)){P+=o[F++];continue}break}if(!P){x(`Missing parameter name at ${d}`);continue}f.push({type:"NAME",index:d,value:P}),d=F;continue}if(y==="("){let P=1,F="",J=d+1,G=!1;if(o[J]==="?"){x(`Pattern cannot start with "?" at ${J}`);continue}for(;J<o.length;){if(!Gir(o[J],!1)){x(`Invalid character '${o[J]}' at ${J}.`),G=!0;break}if(o[J]==="\\"){F+=o[J++]+o[J++];continue}if(o[J]===")"){if(P--,P===0){J++;break}}else if(o[J]==="("&&(P++,o[J+1]!=="?")){x(`Capturing groups are not allowed at ${J}`),G=!0;break}F+=o[J++]}if(G)continue;if(P){x(`Unbalanced pattern at ${d}`);continue}if(!F){x(`Missing pattern at ${d}`);continue}f.push({type:"REGEX",index:d,value:F}),d=J;continue}f.push({type:"CHAR",index:d,value:o[d++]})}return f.push({type:"END",index:d,value:""}),f}t(lct,"v");function uct(o,s={}){let f=lct(o);s.delimiter??="/#?",s.prefixes??="./";let d=`[^${pT(s.delimiter)}]+?`,y=[],x=0,P=0,F="",J=new Set,G=t(Fn=>{if(P<f.length&&f[P].type===Fn)return f[P++].value},"a"),Se=t(()=>G("OTHER_MODIFIER")??G("ASTERISK"),"f"),de=t(Fn=>{let sn=G(Fn);if(sn!==void 0)return sn;let{type:Un,index:Er}=f[P];throw new TypeError(`Unexpected ${Un} at ${Er}, expected ${Fn}`)},"d"),ae=t(()=>{let Fn="",sn;for(;sn=G("CHAR")??G("ESCAPED_CHAR");)Fn+=sn;return Fn},"T"),Ke=t(Fn=>Fn,"Se"),$e=s.encodePart||Ke,Fe="",Gt=t(Fn=>{Fe+=Fn},"U"),jt=t(()=>{Fe.length&&(y.push(new vH(3,"","",$e(Fe),"",3)),Fe="")},"$"),Pr=t((Fn,sn,Un,Er,vr)=>{let ls=3;switch(vr){case"?":ls=1;break;case"*":ls=0;break;case"+":ls=2;break}if(!sn&&!Un&&ls===3){Gt(Fn);return}if(jt(),!sn&&!Un){if(!Fn)return;y.push(new vH(3,"","",$e(Fn),"",ls));return}let Ni;Un?Un==="*"?Ni=pNe:Ni=Un:Ni=d;let nc=2;Ni===d?(nc=1,Ni=""):Ni===pNe&&(nc=0,Ni="");let bi;if(sn?bi=sn:Un&&(bi=x++),J.has(bi))throw new TypeError(`Duplicate name '${bi}'.`);J.add(bi),y.push(new vH(nc,bi,$e(Fn),Ni,$e(Er),ls))},"V");for(;P<f.length;){let Fn=G("CHAR"),sn=G("NAME"),Un=G("REGEX");if(!sn&&!Un&&(Un=G("ASTERISK")),sn||Un){let vr=Fn??"";s.prefixes.indexOf(vr)===-1&&(Gt(vr),vr=""),jt();let ls=Se();Pr(vr,sn,Un,"",ls);continue}let Er=Fn??G("ESCAPED_CHAR");if(Er){Gt(Er);continue}if(G("OPEN")){let vr=ae(),ls=G("NAME"),Ni=G("REGEX");!ls&&!Ni&&(Ni=G("ASTERISK"));let nc=ae();de("CLOSE");let bi=Se();Pr(vr,ls,Ni,nc,bi);continue}jt(),de("END")}return y}t(uct,"D");function pT(o){return o.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}t(pT,"S");function oct(o){return o&&o.ignoreCase?"ui":"u"}t(oct,"X");function Yir(o,s,f){return fct(uct(o,f),s,f)}t(Yir,"Z");function vM(o){switch(o){case 0:return"*";case 1:return"?";case 2:return"+";case 3:return""}}t(vM,"k");function fct(o,s,f={}){f.delimiter??="/#?",f.prefixes??="./",f.sensitive??=!1,f.strict??=!1,f.end??=!0,f.start??=!0,f.endsWith="";let d=f.start?"^":"";for(let F of o){if(F.type===3){F.modifier===3?d+=pT(F.value):d+=`(?:${pT(F.value)})${vM(F.modifier)}`;continue}s&&s.push(F.name);let J=`[^${pT(f.delimiter)}]+?`,G=F.value;if(F.type===1?G=J:F.type===0&&(G=pNe),!F.prefix.length&&!F.suffix.length){F.modifier===3||F.modifier===1?d+=`(${G})${vM(F.modifier)}`:d+=`((?:${G})${vM(F.modifier)})`;continue}if(F.modifier===3||F.modifier===1){d+=`(?:${pT(F.prefix)}(${G})${pT(F.suffix)})`,d+=vM(F.modifier);continue}d+=`(?:${pT(F.prefix)}`,d+=`((?:${G})(?:`,d+=pT(F.suffix),d+=pT(F.prefix),d+=`(?:${G}))*)${pT(F.suffix)})`,F.modifier===0&&(d+="?")}let y=`[${pT(f.endsWith)}]|$`,x=`[${pT(f.delimiter)}]`;if(f.end)return f.strict||(d+=`${x}?`),f.endsWith.length?d+=`(?=${y})`:d+="$",new RegExp(d,oct(f));f.strict||(d+=`(?:${x}(?=${y}))?`);let P=!1;if(o.length){let F=o[o.length-1];F.type===3&&F.modifier===3&&(P=f.delimiter.indexOf(F)>-1)}return P||(d+=`(?=${x}|${y})`),new RegExp(d,oct(f))}t(fct,"F");var oI={delimiter:"",prefixes:"",sensitive:!0,strict:!0},Kir={delimiter:".",prefixes:"",sensitive:!0,strict:!0},Xir={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function Zir(o,s){return o.length?o[0]==="/"?!0:!s||o.length<2?!1:(o[0]=="\\"||o[0]=="{")&&o[1]=="/":!1}t(Zir,"J");function _ct(o,s){return o.startsWith(s)?o.substring(s.length,o.length):o}t(_ct,"Q");function Qir(o,s){return o.endsWith(s)?o.substr(0,o.length-s.length):o}t(Qir,"Ee");function pct(o){return!o||o.length<2?!1:o[0]==="["||(o[0]==="\\"||o[0]==="{")&&o[1]==="["}t(pct,"W");var dct=["ftp","file","http","https","ws","wss"];function mct(o){if(!o)return!0;for(let s of dct)if(o.test(s))return!0;return!1}t(mct,"N");function esr(o,s){if(o=_ct(o,"#"),s||o==="")return o;let f=new URL("https://example.com");return f.hash=o,f.hash?f.hash.substring(1,f.hash.length):""}t(esr,"te");function tsr(o,s){if(o=_ct(o,"?"),s||o==="")return o;let f=new URL("https://example.com");return f.search=o,f.search?f.search.substring(1,f.search.length):""}t(tsr,"re");function rsr(o,s){return s||o===""?o:pct(o)?yct(o):gct(o)}t(rsr,"ne");function nsr(o,s){if(s||o==="")return o;let f=new URL("https://example.com");return f.password=o,f.password}t(nsr,"se");function isr(o,s){if(s||o==="")return o;let f=new URL("https://example.com");return f.username=o,f.username}t(isr,"ie");function ssr(o,s,f){if(f||o==="")return o;if(s&&!dct.includes(s))return new URL(`${s}:${o}`).pathname;let d=o[0]=="/";return o=new URL(d?o:"/-"+o,"https://example.com").pathname,d||(o=o.substring(2,o.length)),o}t(ssr,"ae");function asr(o,s,f){return hct(s)===o&&(o=""),f||o===""?o:vct(o)}t(asr,"oe");function osr(o,s){return o=Qir(o,":"),s||o===""?o:dNe(o)}t(osr,"ce");function hct(o){switch(o){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}t(hct,"_");function dNe(o){if(o==="")return o;if(/^[-+.A-Za-z0-9]*$/.test(o))return o.toLowerCase();throw new TypeError(`Invalid protocol '${o}'.`)}t(dNe,"y");function csr(o){if(o==="")return o;let s=new URL("https://example.com");return s.username=o,s.username}t(csr,"le");function lsr(o){if(o==="")return o;let s=new URL("https://example.com");return s.password=o,s.password}t(lsr,"fe");function gct(o){if(o==="")return o;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(o))throw new TypeError(`Invalid hostname '${o}'`);let s=new URL("https://example.com");return s.hostname=o,s.hostname}t(gct,"z");function yct(o){if(o==="")return o;if(/[^0-9a-fA-F[\]:]/g.test(o))throw new TypeError(`Invalid IPv6 hostname '${o}'`);return o.toLowerCase()}t(yct,"j");function vct(o){if(o===""||/^[0-9]*$/.test(o)&&parseInt(o)<=65535)return o;throw new TypeError(`Invalid port '${o}'.`)}t(vct,"K");function usr(o){if(o==="")return o;let s=new URL("https://example.com");return s.pathname=o[0]!=="/"?"/-"+o:o,o[0]!=="/"?s.pathname.substring(2,s.pathname.length):s.pathname}t(usr,"he");function fsr(o){return o===""?o:new URL(`data:${o}`).pathname}t(fsr,"ue");function _sr(o){if(o==="")return o;let s=new URL("https://example.com");return s.search=o,s.search.substring(1,s.search.length)}t(_sr,"de");function psr(o){if(o==="")return o;let s=new URL("https://example.com");return s.hash=o,s.hash.substring(1,s.hash.length)}t(psr,"pe");var dsr=class{static{t(this,"H")}#e;#n=[];#t={};#r=0;#s=1;#p=0;#o=0;#_=0;#u=0;#c=!1;constructor(o){this.#e=o}get result(){return this.#t}parse(){for(this.#n=lct(this.#e,!0);this.#r<this.#n.length;this.#r+=this.#s){if(this.#s=1,this.#n[this.#r].type==="END"){if(this.#o===0){this.#h(),this.#x()?this.#i(9,1):this.#v()?this.#i(8,1):this.#i(7,0);continue}else if(this.#o===2){this.#m(5);continue}this.#i(10,0);break}if(this.#_>0)if(this.#l())this.#_-=1;else continue;if(this.#A()){this.#_+=1;continue}switch(this.#o){case 0:this.#g()&&this.#m(1);break;case 1:if(this.#g()){this.#P();let o=7,s=1;this.#y()?(o=2,s=3):this.#c&&(o=2),this.#i(o,s)}break;case 2:this.#E()?this.#m(3):(this.#k()||this.#v()||this.#x())&&this.#m(5);break;case 3:this.#T()?this.#i(4,1):this.#E()&&this.#i(5,1);break;case 4:this.#E()&&this.#i(5,1);break;case 5:this.#O()?this.#u+=1:this.#w()&&(this.#u-=1),this.#C()&&!this.#u?this.#i(6,1):this.#k()?this.#i(7,0):this.#v()?this.#i(8,1):this.#x()&&this.#i(9,1);break;case 6:this.#k()?this.#i(7,0):this.#v()?this.#i(8,1):this.#x()&&this.#i(9,1);break;case 7:this.#v()?this.#i(8,1):this.#x()&&this.#i(9,1);break;case 8:this.#x()&&this.#i(9,1);break;case 9:break;case 10:break}}this.#t.hostname!==void 0&&this.#t.port===void 0&&(this.#t.port="")}#i(o,s){switch(this.#o){case 0:break;case 1:this.#t.protocol=this.#D();break;case 2:break;case 3:this.#t.username=this.#D();break;case 4:this.#t.password=this.#D();break;case 5:this.#t.hostname=this.#D();break;case 6:this.#t.port=this.#D();break;case 7:this.#t.pathname=this.#D();break;case 8:this.#t.search=this.#D();break;case 9:this.#t.hash=this.#D();break;case 10:break}this.#o!==0&&o!==10&&([1,2,3,4].includes(this.#o)&&[6,7,8,9].includes(o)&&(this.#t.hostname??=""),[1,2,3,4,5,6].includes(this.#o)&&[8,9].includes(o)&&(this.#t.pathname??=this.#c?"/":""),[1,2,3,4,5,6,7].includes(this.#o)&&o===9&&(this.#t.search??="")),this.#a(o,s)}#a(o,s){this.#o=o,this.#p=this.#r+s,this.#r+=s,this.#s=0}#h(){this.#r=this.#p,this.#s=0}#m(o){this.#h(),this.#o=o}#f(o){return o<0&&(o=this.#n.length-o),o<this.#n.length?this.#n[o]:this.#n[this.#n.length-1]}#d(o,s){let f=this.#f(o);return f.value===s&&(f.type==="CHAR"||f.type==="ESCAPED_CHAR"||f.type==="INVALID_CHAR")}#g(){return this.#d(this.#r,":")}#y(){return this.#d(this.#r+1,"/")&&this.#d(this.#r+2,"/")}#E(){return this.#d(this.#r,"@")}#T(){return this.#d(this.#r,":")}#C(){return this.#d(this.#r,":")}#k(){return this.#d(this.#r,"/")}#v(){if(this.#d(this.#r,"?"))return!0;if(this.#n[this.#r].value!=="?")return!1;let o=this.#f(this.#r-1);return o.type!=="NAME"&&o.type!=="REGEX"&&o.type!=="CLOSE"&&o.type!=="ASTERISK"}#x(){return this.#d(this.#r,"#")}#A(){return this.#n[this.#r].type=="OPEN"}#l(){return this.#n[this.#r].type=="CLOSE"}#O(){return this.#d(this.#r,"[")}#w(){return this.#d(this.#r,"]")}#D(){let o=this.#n[this.#r],s=this.#f(this.#p).index;return this.#e.substring(s,o.index)}#P(){let o={};Object.assign(o,oI),o.encodePart=dNe;let s=Yir(this.#D(),void 0,o);this.#c=mct(s)}},_Ne=["protocol","username","password","hostname","port","pathname","search","hash"],aI="*";function cct(o,s){if(typeof o!="string")throw new TypeError("parameter 1 is not of type 'string'.");let f=new URL(o,s);return{protocol:f.protocol.substring(0,f.protocol.length-1),username:f.username,password:f.password,hostname:f.hostname,port:f.port,pathname:f.pathname,search:f.search!==""?f.search.substring(1,f.search.length):void 0,hash:f.hash!==""?f.hash.substring(1,f.hash.length):void 0}}t(cct,"ge");function YP(o,s){return s?yH(o):o}t(YP,"b");function gH(o,s,f){let d;if(typeof s.baseURL=="string")try{d=new URL(s.baseURL),s.protocol===void 0&&(o.protocol=YP(d.protocol.substring(0,d.protocol.length-1),f)),!f&&s.protocol===void 0&&s.hostname===void 0&&s.port===void 0&&s.username===void 0&&(o.username=YP(d.username,f)),!f&&s.protocol===void 0&&s.hostname===void 0&&s.port===void 0&&s.username===void 0&&s.password===void 0&&(o.password=YP(d.password,f)),s.protocol===void 0&&s.hostname===void 0&&(o.hostname=YP(d.hostname,f)),s.protocol===void 0&&s.hostname===void 0&&s.port===void 0&&(o.port=YP(d.port,f)),s.protocol===void 0&&s.hostname===void 0&&s.port===void 0&&s.pathname===void 0&&(o.pathname=YP(d.pathname,f)),s.protocol===void 0&&s.hostname===void 0&&s.port===void 0&&s.pathname===void 0&&s.search===void 0&&(o.search=YP(d.search.substring(1,d.search.length),f)),s.protocol===void 0&&s.hostname===void 0&&s.port===void 0&&s.pathname===void 0&&s.search===void 0&&s.hash===void 0&&(o.hash=YP(d.hash.substring(1,d.hash.length),f))}catch{throw new TypeError(`invalid baseURL '${s.baseURL}'.`)}if(typeof s.protocol=="string"&&(o.protocol=osr(s.protocol,f)),typeof s.username=="string"&&(o.username=isr(s.username,f)),typeof s.password=="string"&&(o.password=nsr(s.password,f)),typeof s.hostname=="string"&&(o.hostname=rsr(s.hostname,f)),typeof s.port=="string"&&(o.port=asr(s.port,o.protocol,f)),typeof s.pathname=="string"){if(o.pathname=s.pathname,d&&!Zir(o.pathname,f)){let y=d.pathname.lastIndexOf("/");y>=0&&(o.pathname=YP(d.pathname.substring(0,y+1),f)+o.pathname)}o.pathname=ssr(o.pathname,o.protocol,f)}return typeof s.search=="string"&&(o.search=tsr(s.search,f)),typeof s.hash=="string"&&(o.hash=esr(s.hash,f)),o}t(gH,"w");function yH(o){return o.replace(/([+*?:{}()\\])/g,"\\$1")}t(yH,"C");function msr(o){return o.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}t(msr,"Oe");function hsr(o,s){s.delimiter??="/#?",s.prefixes??="./",s.sensitive??=!1,s.strict??=!1,s.end??=!0,s.start??=!0,s.endsWith="";let f=".*",d=`[^${msr(s.delimiter)}]+?`,y=/[$_\u200C\u200D\p{ID_Continue}]/u,x="";for(let P=0;P<o.length;++P){let F=o[P];if(F.type===3){if(F.modifier===3){x+=yH(F.value);continue}x+=`{${yH(F.value)}}${vM(F.modifier)}`;continue}let J=F.hasCustomName(),G=!!F.suffix.length||!!F.prefix.length&&(F.prefix.length!==1||!s.prefixes.includes(F.prefix)),Se=P>0?o[P-1]:null,de=P<o.length-1?o[P+1]:null;if(!G&&J&&F.type===1&&F.modifier===3&&de&&!de.prefix.length&&!de.suffix.length)if(de.type===3){let ae=de.value.length>0?de.value[0]:"";G=y.test(ae)}else G=!de.hasCustomName();if(!G&&!F.prefix.length&&Se&&Se.type===3){let ae=Se.value[Se.value.length-1];G=s.prefixes.includes(ae)}G&&(x+="{"),x+=yH(F.prefix),J&&(x+=`:${F.name}`),F.type===2?x+=`(${F.value})`:F.type===1?J||(x+=`(${d})`):F.type===0&&(!J&&(!Se||Se.type===3||Se.modifier!==3||G||F.prefix!=="")?x+="*":x+=`(${f})`),F.type===1&&J&&F.suffix.length&&y.test(F.suffix[0])&&(x+="\\"),x+=yH(F.suffix),G&&(x+="}"),F.modifier!==3&&(x+=vM(F.modifier))}return x}t(hsr,"ke");var bct=class{static{t(this,"me")}#e;#n={};#t={};#r={};#s={};#p=!1;constructor(o={},s,f){try{let d;if(typeof s=="string"?d=s:f=s,typeof o=="string"){let F=new dsr(o);if(F.parse(),o=F.result,d===void 0&&typeof o.protocol!="string")throw new TypeError("A base URL must be provided for a relative constructor string.");o.baseURL=d}else{if(!o||typeof o!="object")throw new TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(d)throw new TypeError("parameter 1 is not of type 'string'.")}typeof f>"u"&&(f={ignoreCase:!1});let y={ignoreCase:f.ignoreCase===!0},x={pathname:aI,protocol:aI,username:aI,password:aI,hostname:aI,port:aI,search:aI,hash:aI};this.#e=gH(x,o,!0),hct(this.#e.protocol)===this.#e.port&&(this.#e.port="");let P;for(P of _Ne){if(!(P in this.#e))continue;let F={},J=this.#e[P];switch(this.#t[P]=[],P){case"protocol":Object.assign(F,oI),F.encodePart=dNe;break;case"username":Object.assign(F,oI),F.encodePart=csr;break;case"password":Object.assign(F,oI),F.encodePart=lsr;break;case"hostname":Object.assign(F,Kir),pct(J)?F.encodePart=yct:F.encodePart=gct;break;case"port":Object.assign(F,oI),F.encodePart=vct;break;case"pathname":mct(this.#n.protocol)?(Object.assign(F,Xir,y),F.encodePart=usr):(Object.assign(F,oI,y),F.encodePart=fsr);break;case"search":Object.assign(F,oI,y),F.encodePart=_sr;break;case"hash":Object.assign(F,oI,y),F.encodePart=psr;break}try{this.#s[P]=uct(J,F),this.#n[P]=fct(this.#s[P],this.#t[P],F),this.#r[P]=hsr(this.#s[P],F),this.#p=this.#p||this.#s[P].some(G=>G.type===2)}catch{throw new TypeError(`invalid ${P} pattern '${this.#e[P]}'.`)}}}catch(d){throw new TypeError(`Failed to construct 'URLPattern': ${d.message}`)}}test(o={},s){let f={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof o!="string"&&s)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof o>"u")return!1;try{typeof o=="object"?f=gH(f,o,!1):f=gH(f,cct(o,s),!1)}catch{return!1}let d;for(d of _Ne)if(!this.#n[d].exec(f[d]))return!1;return!0}exec(o={},s){let f={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof o!="string"&&s)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof o>"u")return;try{typeof o=="object"?f=gH(f,o,!1):f=gH(f,cct(o,s),!1)}catch{return null}let d={};s?d.inputs=[o,s]:d.inputs=[o];let y;for(y of _Ne){let x=this.#n[y].exec(f[y]);if(!x)return null;let P={};for(let[F,J]of this.#t[y].entries())if(typeof J=="string"||typeof J=="number"){let G=x[F+1];P[J]=G}d[y]={input:f[y]??"",groups:P}}return d}static compareComponent(o,s,f){let d=t((F,J)=>{for(let G of["type","modifier","prefix","value","suffix"]){if(F[G]<J[G])return-1;if(F[G]!==J[G])return 1}return 0},"o"),y=new vH(3,"","","","",3),x=new vH(0,"","","","",3),P=t((F,J)=>{let G=0;for(;G<Math.min(F.length,J.length);++G){let Se=d(F[G],J[G]);if(Se)return Se}return F.length===J.length?0:d(F[G]??y,J[G]??y)},"s");return!s.#r[o]&&!f.#r[o]?0:s.#r[o]&&!f.#r[o]?P(s.#s[o],[x]):!s.#r[o]&&f.#r[o]?P([x],f.#s[o]):P(s.#s[o],f.#s[o])}get protocol(){return this.#r.protocol}get username(){return this.#r.username}get password(){return this.#r.password}get hostname(){return this.#r.hostname}get port(){return this.#r.port}get pathname(){return this.#r.pathname}get search(){return this.#r.search}get hash(){return this.#r.hash}get hasRegExpGroups(){return this.#p}};globalThis.URLPattern||(globalThis.URLPattern=bct);import{AssertionError as gsr}from"node:assert";function KP(o,s){if(o===!1)throw new gsr({message:s})}t(KP,"assert");var Ko;(function(o){o.Object="Object",o.Property="Property",o.Array="Array",o.Literal="Literal",o.TemplateString="TemplateString",o.Identifier="Identifier",o.FunctionCall="FunctionCall",o.Raw="Raw"})(Ko||(Ko={}));function bM(o){return o.type===Ko.Object}t(bM,"isAstObject");function XP(o){return o.type===Ko.Property}t(XP,"isAstProperty");function Sct(o){return o.type===Ko.Array}t(Sct,"isAstArray");function SM(o){return o.type===Ko.Literal}t(SM,"isAstLiteral");function cI(o){if(o===void 0)throw new Error("Node is undefined");if(!bM(o))throw new Error("Node is not object")}t(cI,"assertAstObject");import{findNodeAtLocation as ysr,getNodeValue as vsr,printParseErrorCode as bsr,visit as Ssr}from"jsonc-parser";var Tsr={DEFAULT:{allowTrailingComma:!1}};function bH(o,s=[],f=Tsr.DEFAULT){let d={type:"array",offset:-1,length:-1,line:-1,column:-1,children:[],parent:void 0};function y(J){d.type==="property"&&(d.length=J-d.offset,d=d.parent)}t(y,"ensurePropertyComplete");function x(J){return d.children?.push(J),J}t(x,"onValue"),Ssr(o,{onObjectBegin:t((J,G,Se)=>{d=x({type:"object",offset:J,length:-1,line:G+1,column:Se+1,parent:d,children:[]})},"onObjectBegin"),onObjectProperty:t((J,G,Se,de,ae)=>{d=x({type:"property",offset:G,length:-1,line:de+1,column:ae+1,parent:d,children:[]}),d.children?.push({type:"string",value:J,offset:G,length:Se,line:de,column:ae,parent:d})},"onObjectProperty"),onObjectEnd:t((J,G)=>{y(J+G),d.length=J+G-d.offset,d=d.parent,y(J+G)},"onObjectEnd"),onArrayBegin:t((J,G,Se,de)=>{d=x({type:"array",offset:J,length:-1,line:Se+1,column:de+1,parent:d,children:[]})},"onArrayBegin"),onArrayEnd:t((J,G)=>{d.length=J+G-d.offset,d=d.parent,y(J+G)},"onArrayEnd"),onLiteralValue:t((J,G,Se,de,ae)=>{x({type:xsr(J),offset:G,length:Se,line:de+1,column:ae+1,parent:d,value:J}),y(G+Se)},"onLiteralValue"),onSeparator:t((J,G)=>{d.type==="property"&&(J===":"?d.colonOffset=G:J===","&&y(G))},"onSeparator"),onError:t((J,G,Se,de,ae)=>{s.push({error:J,offset:G,length:Se,line:de+1,column:ae+1})},"onError")},f);let F=d.children?.[0];return F&&delete F.parent,F}t(bH,"parse");function xsr(o){switch(typeof o){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(o){if(Array.isArray(o))return"array"}else return"null";return"object"}default:return"null"}}t(xsr,"getNodeType");function mNe(o,s){return ysr(o,s)}t(mNe,"findNodeAtLocation");function SH(o){return vsr(o)}t(SH,"getNodeValue");function Tct(o){return bsr(o)}t(Tct,"printParseErrorCode");var TH=class{static{t(this,"AstAdapter")}parse(s){let d=bH(s,[]);if(d)return this.parseNode(d,void 0);throw new Error("Failed to parse JSON")}convert(s){return this.parseNode(s,void 0)}parseNode(s,f){switch(s.type){case"object":return this.createObject(s,f);case"array":return this.createArray(s,f);case"property":return this.createProperty(s,f);case"string":return this.createLiteral(s,f);case"number":return this.createLiteral(s,f);case"boolean":return this.createLiteral(s,f);case"null":return this.createLiteral(s,f)}}createLiteral(s,f){return{type:Ko.Literal,location:{line:s.line,column:s.column},parent:f,value:s.type==="null"?null:s.value}}createObject(s,f){let d={type:Ko.Object,children:[],parent:f,location:{line:s.line,column:s.column}};return s.children?.forEach(y=>{d.children.push(this.parseNode(y,d))}),d}createProperty(s,f){KP(s.children?.length===2,"Invalid property node");let d={type:Ko.Property,location:{line:s.line,column:s.column},parent:f,name:null,value:null};return d.name={value:s.children[0].value,location:{line:s.line,column:s.column},type:Ko.Identifier,parent:d},d.value=this.parseNode(s.children[1],d),d}createArray(s,f){let d={type:Ko.Array,location:{line:s.line,column:s.column},parent:f,children:[]};return s.children?.forEach(y=>d.children.push(this.parseNode(y,d))),d}};var dT={createLiteral:t((o,s)=>({type:Ko.Literal,parent:s,value:o}),"createLiteral"),createTemplateString:t((o,s)=>({type:Ko.TemplateString,parent:s,value:o}),"createTemplateString"),createIdentifier:t((o,s)=>({type:Ko.Identifier,value:o,parent:s}),"createIdentifier"),createProperty:t((o,s,f)=>{let d={type:Ko.Property,parent:f,name:null,value:s};return d.name={value:o,type:Ko.Identifier,parent:d},d.value.parent=d,d},"createProperty"),createArrayOfLiterals:t((o,s)=>{let f={type:Ko.Array,parent:s,children:[]};for(let d of o)f.children.push(dT.createLiteral(d,f));return f},"createArrayOfLiterals")};var Esr=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/,xH=class{static{t(this,"SourceGenerator")}generate(s){let f=[];return this.generateSource(f,s),f.join("")}generateSource(s,f){switch(f.type){case Ko.Array:return this.generateArray(s,f);case Ko.Object:return this.generateObject(s,f);case Ko.Property:return this.generateProperty(s,f);case Ko.Literal:return this.generateLiteral(s,f);case Ko.FunctionCall:return this.generateFunctionCall(s,f);case Ko.Identifier:return this.generateIdentifier(s,f);case Ko.Raw:return this.generateRaw(s,f);case Ko.TemplateString:return this.generateTemplateString(s,f)}}generateArray(s,f){s.push("["),f.children.map(d=>{this.generateSource(s,d),s.push(",")}),s.push("]")}generateObject(s,f){s.push("{"),f.children.forEach(d=>{this.generateSource(s,d),s.push(",")}),s.push("}")}generateProperty(s,f){this.generateIdentifier(s,f.name),s.push(":"),this.generateSource(s,f.value)}generateFunctionCall(s,f){s.push(f.name.value),s.push("("),f.children.forEach((d,y,x)=>{this.generateSource(s,d),y<x.length&&s.push(",")}),s.push(")")}generateRaw(s,f){s.push(f.value)}generateTemplateString(s,f){s.push("`"),s.push(f.value.replaceAll("`","\\`")),s.push("`")}generateLiteral(s,f){if(f.value===null)return s.push("null");switch(typeof f.value){case"number":case"boolean":return s.push(`${f.value}`);case"string":{let d=f.value,y=JSON.stringify(d);return s.push(`${y}`)}}}generateIdentifier(s,f){let d=Esr.test(f.value)?f.value:`'${f.value}'`;s.push(d)}};import Csr from"node:fs/promises";import{parse as ksr}from"@swc/core";var xct=t(async o=>{let s=new Set;try{let f=await Csr.readFile(o,"utf-8");(await ksr(f,{syntax:"typescript"})).body.forEach(y=>{y.type==="ExportDefaultDeclaration"||y.type==="ExportDefaultExpression"?s.add("default"):y.type==="ExportDeclaration"&&y.declaration.type==="FunctionDeclaration"?s.add(y.declaration.identifier.value):y.type==="ExportDeclaration"&&y.declaration.type==="VariableDeclaration"&&y.declaration.declarations[0].id.type==="Identifier"&&s.add(y.declaration.declarations[0].id.value)})}catch{return null}return s},"getJSFileExports");var Ect={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/fragments.schema.json",$defs:{corsPolicyConfiguration:{type:"object",required:["name","allowedOrigins"],additionalProperties:!1,properties:{name:{type:"string",pattern:"^[0-9a-z-]+$"},allowCredentials:{type:"boolean"},maxAge:{type:"number"},allowedOrigins:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},allowedMethods:{oneOf:[{type:"array",items:{$ref:"fragments.schema.json#/$defs/httpMethod"}},{type:"string"}]},allowedHeaders:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},exposeHeaders:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]}}},handlerDefinition:{type:"object",properties:{module:{type:"string",pattern:"^\\$import\\([^ )]*?\\)$"},export:{type:"string"},options:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["module","export"]},httpMethod:{type:"string",enum:["GET","HEAD","POST","PUT","DELETE","CONNECT","OPTIONS","TRACE","PATCH"]}}};var hNe={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/policies.schema.json",title:"Policies Config File",type:"object",additionalProperties:!1,properties:{policies:{type:"array",items:{$ref:"policy-configuration.schema.json"}},corsPolicies:{type:"array",items:{$ref:"fragments.schema.json#/$defs/corsPolicyConfiguration"}}}};var Cct={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/policy-configuration.schema.json",title:"Policy Configuration Fragment",type:"object",required:["name","policyType","handler"],additionalProperties:!1,properties:{name:{type:"string",pattern:"^[0-9a-z-]+$"},policyType:{type:"string"},handler:{$ref:"fragments.schema.json#/$defs/handlerDefinition"},options:{type:"object",additionalProperties:!0}}};var gNe={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/route-configuration-open-api.schema.json",title:"Open API Route Configuration Fragment",description:"These are the properties that can appear under the x-zuplo-route extension in a PathObject in Open API. It's a subset of what can appear in Zuplo's routes.json.",type:"object",required:["handler"],additionalProperties:!1,properties:{label:{type:"string",description:"An internal user-friendly identifier of the route."},key:{type:"string",deprecated:!0},handler:{$ref:"fragments.schema.json#/$defs/handlerDefinition"},corsPolicy:{type:"string",pattern:"^[0-9a-z-]+$"},custom:{},mcp:{type:"object",additionalProperties:!1,properties:{enabled:{type:"boolean"}}},policies:{type:"object",additionalProperties:!1,properties:{inbound:{type:"array",items:{type:"string",pattern:"^[0-9a-z-]+$"}},outbound:{type:"array",items:{type:"string",pattern:"^[0-9a-z-]+$"}}}},tags:{type:"array",items:{type:"string"}}}};var yNe={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/route-configuration.schema.json",title:"Route Configuration Fragment",description:"",type:"object",required:["path","methods","handler"],additionalProperties:!1,$defs:{corsPolicy:{type:"string",pattern:"^[0-9a-z-]+$"}},properties:{operationId:{type:"string"},path:{type:"string",pattern:"^/[^\\s]*$"},methods:{type:"array",items:{$ref:"fragments.schema.json#/$defs/httpMethod"}},label:{type:"string",description:"An internal user-friendly identifier of the route."},enforceOpenApi:{type:"boolean",description:"If true, schema validation found in the OpenAPI spec will be enforced on requests/responses."},key:{type:"string",deprecated:!0},handler:{$ref:"fragments.schema.json#/$defs/handlerDefinition"},corsPolicy:{$ref:"#/$defs/corsPolicy"},custom:{},mcp:{type:"object",additionalProperties:!1,properties:{enabled:{type:"boolean"}}},policies:{type:"object",additionalProperties:!1,properties:{inbound:{type:"array",items:{type:"string",pattern:"^[0-9a-z-]+$"}},outbound:{type:"array",items:{type:"string",pattern:"^[0-9a-z-]+$"}}}},summary:{type:"string"},description:{type:"string"},excludeFromOpenApi:{type:"boolean"},tags:{type:"array",items:{type:"string"}}}};var Nft=Sd(tft(),1),Ift=Sd(Mle(),1);var jle=class o{static{t(this,"JsonValidator")}static#e=new o;static get instance(){return o.#e}ajv;constructor(){this.ajv=new Ift.Ajv2020({allErrors:!0,allowUnionTypes:!0}),this.ajv.addKeyword("faker"),(0,Nft.default)(this.ajv,{mode:"fast"})}addSchema(s,f){this.ajv.addSchema(s,f)}compile(s){let f=this.ajv.compile(s);return t(y=>({isValid:f(y),errors:this.toSimpleErrors(f.errors,y),warnings:[]}),"validator")}toSimpleErrors(s,f){let d=[];return s?.forEach(y=>{y.keyword==="enum"&&y.params.allowedValues&&Array.isArray(y.params.allowedValues)&&(y.message+=`; ${y.params.allowedValues.join(", ")}`),y.instancePath&&(y.instancePath=y.instancePath.replaceAll(/(\/)?(~1)(\/)?/gm,"/"));let x={details:{}},P=y.instancePath.split("/");if(P.length>2){let J=P[1],G=P[2]?parseInt(P[2],10):0,Se=P[3],de=Number.isNaN(G)?void 0:f[J][G][Se];x={details:{property:J,index:G,field:Se,fieldValue:de}}}if(y.keyword==="required"&&y.params.missingProperty&&y.instancePath&&(y.message=`A 'path' is missing required property '${y.params.missingProperty}'`),y.keyword==="additionalProperties"&&y.params.additionalProperty&&y.instancePath&&(y.message=`A 'path' should NOT include property '${y.params.additionalProperty}'`),y.keyword==="type"&&y.params.type&&y.instancePath){let J=y.instancePath.split("/"),G=J[J.length-1];y.message=`Value of property '${G}' must be '${y.params.type}'`}let F=Object.assign(y,x);d.push(F)}),d}};var yI=jle.instance;yI.addSchema(yNe,"route-configuration.schema.json");yI.addSchema(Cct,"policy-configuration.schema.json");yI.addSchema(hNe,"policies.schema.json");yI.addSchema(gNe,"open-api-route-configuration.schema.json");yI.addSchema(Ect,"fragments.schema.json");var SIr=yI.compile(yNe),Oft=yI.compile(gNe),O4e=yI.compile(hNe);var Ble=class{static{t(this,"PoliciesConfigurationValidator")}results;validate(s){return this.results=O4e(s),this.results}};var Ule=class{static{t(this,"OpenAPILocalizedValidator")}results;validate(s){return this.results=Oft(s),this.results}};import R_r from"node:path";var F4e=/\$import\((.*)\)/,zle=/\$env\((.*?)\)/g;var rA=class extends Error{static{t(this,"CodeGenError")}location;constructor(s,f,d,y){super(s),this.location={file:f,namespace:"",line:d?d.line:0,column:d?d.column:0,length:0,lineText:y??"",suggestion:""}}},L_r=t(o=>{let s=[],f=o;for(;f.parent;)s.push(f),f=f.parent;return s.reverse()},"invertTree"),vI=t((o,s)=>{if(!o)return!1;let f=L_r(o);return s.split("/").every((x,P)=>{let F=f[P];return F?x==="*"||XP(F)&&F.name.value===x?!0:x==="{}"?F.type===Ko.Object:x==="[]"?F.type===Ko.Array:!1:!1})},"testPosition");var $le=class{static{t(this,"AstTransformer")}errors=[];transform(s){return this.visitor(s),s}visitor(s){this.visit(s),bM(s)?s.children.forEach(f=>{this.visitor(f)}):Sct(s)?s.children.forEach(f=>{this.visitor(f)}):XP(s)&&this.visitor(s.value)}},Fft=t((o,s,f)=>d=>{if(!XP(d)||!SM(d.value)||typeof d.value.value!="string")return;if(!o.some(x=>vI(d,x))){zle.test(d.value.value)&&s.push(new rA("An $env() statement is not expected at this location.",f,d.location,d.value.value));return}let y=new RegExp(zle).exec(d.value.value);if(y?.length===2&&y[0]===d.value.value){let x={type:Ko.Raw,parent:null,value:`environment["${y[1]}"]`};d.value=x}else{let x=d.value.value.replaceAll(new RegExp(zle),(P,F)=>`\${environment["${F}"] ? environment["${F}"] : ""}`);x!==d.value.value&&(d.value=dT.createTemplateString(x,d))}},"getEnvStatementTransformer");var eG="config/routes.json",M_r=["handler/{}/options/*","policies/[]/{}/handler/{}/options/*","corsPolicies/[]/{}/*"],j_r=["handler/{}/module","handler/{}/options/{}/policies/{}/inbound/[]/{}/module","handler/{}/options/{}/policies/{}/outbound/[]/{}/module","policies/[]/{}/handler/{}/module","policies/[]/{}/handler/{}/options/{}/identifier/{}/module","policies/[]/{}/handler/{}/options/{}/validator"],Lft=["handler/{}/options/*","policies/[]/{}/handler/{}/options/*"],B_r="handler/{}/options/{}/rewritePattern",U_r="handler/{}/options/{}/baseUrl",Jle=class extends $le{static{t(this,"OpenAPIRoutesFragmentAstTransformer")}importCount=0;addedImports=new Map;getImportName(s){this.addedImports.has(s)||this.addedImports.set(s,`__import${this.importCount++}`);let f=this.addedImports.get(s);if(!f)throw new Error("Import name is undefined. This should not happen.");return f}getImports(){let s=[];return this.addedImports.forEach((f,d)=>{s.push({name:f,path:d})}),s}visit(s){this.rewriteHandlerFunction(s),this.rewriteForwardFunction(s),this.replaceImportStatements(s),this.replaceEnvStatements(s)}rewriteHandlerFunction(s){if(!(!XP(s)||!SM(s.value)||typeof s.value.value!="string")&&vI(s,B_r)){if(!s.parent||!bM(s.parent)){this.errors.push(new rA("Invalid node, expected object",eG,s.parent?s.parent.location:s.location,void 0));return}let f=s.value.value,d={type:Ko.Raw,parent:null,value:Rft(f)},y=dT.createProperty("__rewriteFunction",d,s);s.parent.children.push(y)}}rewriteForwardFunction(s){if(!(!XP(s)||!SM(s.value)||typeof s.value.value!="string")&&vI(s,U_r)){if(!s.parent||!bM(s.parent)){this.errors.push(new rA("Invalid node, expected object",eG,s.parent?s.parent.location:s.location,void 0));return}let f=s.value.value,d={type:Ko.Raw,parent:null,value:Rft(f)},y=dT.createProperty("__rewriteFunction",d,s);s.parent.children.push(y)}}replaceImportStatements(s){if(!XP(s)||!SM(s.value))return;let f=s.value.value;if(typeof f!="string")return;if(!j_r.some(F=>vI(s,F))&&!Lft.some(F=>vI(s,F))){if(F4e.test(f)){if(s.name.value==="$ref")return;this.errors.push(new rA("An $import() statement is not expected at this location.",eG,s.location,f))}return}let d=F4e.exec(f);if(Lft.some(F=>vI(s,F))&&!d)return;if(!d){this.errors.push(new rA("Invalid $import() statement",eG,s.location,f));return}let y=d[1];y=y.replace(/\\/g,"/"),y.startsWith(".")&&(y=R_r.posix.join("..",y));let x=this.getImportName(y),P={type:Ko.Identifier,parent:s.parent,value:x};s.value=P}replaceEnvStatements=Fft(M_r,this.errors,eG)};function Rft(o){return`(request, context) => {
|
|
575
|
+
`),exitCode:x},"Untar process logs")}}t(kXt,"untarFile");async function wXt(o){if(await hAe(o))return await KN.rm(o,{recursive:!0})}t(wXt,"deleteFolder");var tu=gAe;var _lt=Sd(Nst(),1);var rH=class{static{t(this,"R")}type=3;name="";prefix="";value="";suffix="";modifier=3;constructor(o,s,f,d,y,x){this.type=o,this.name=s,this.prefix=f,this.value=d,this.suffix=y,this.modifier=x}hasCustomName(){return this.name!==""&&typeof this.name!="number"}},eer=/[$_\p{ID_Start}]/u,ter=/[$_\u200C\u200D\p{ID_Continue}]/u,XAe=".*";function rer(o,s){return(s?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(o)}t(rer,"Re");function Fst(o,s=!1){let f=[],d=0;for(;d<o.length;){let y=o[d],x=t(function(P){if(!s)throw new TypeError(P);f.push({type:"INVALID_CHAR",index:d,value:o[d++]})},"c");if(y==="*"){f.push({type:"ASTERISK",index:d,value:o[d++]});continue}if(y==="+"||y==="?"){f.push({type:"OTHER_MODIFIER",index:d,value:o[d++]});continue}if(y==="\\"){f.push({type:"ESCAPED_CHAR",index:d++,value:o[d++]});continue}if(y==="{"){f.push({type:"OPEN",index:d,value:o[d++]});continue}if(y==="}"){f.push({type:"CLOSE",index:d,value:o[d++]});continue}if(y===":"){let P="",F=d+1;for(;F<o.length;){let J=o.substr(F,1);if(F===d+1&&eer.test(J)||F!==d+1&&ter.test(J)){P+=o[F++];continue}break}if(!P){x(`Missing parameter name at ${d}`);continue}f.push({type:"NAME",index:d,value:P}),d=F;continue}if(y==="("){let P=1,F="",J=d+1,G=!1;if(o[J]==="?"){x(`Pattern cannot start with "?" at ${J}`);continue}for(;J<o.length;){if(!rer(o[J],!1)){x(`Invalid character '${o[J]}' at ${J}.`),G=!0;break}if(o[J]==="\\"){F+=o[J++]+o[J++];continue}if(o[J]===")"){if(P--,P===0){J++;break}}else if(o[J]==="("&&(P++,o[J+1]!=="?")){x(`Capturing groups are not allowed at ${J}`),G=!0;break}F+=o[J++]}if(G)continue;if(P){x(`Unbalanced pattern at ${d}`);continue}if(!F){x(`Missing pattern at ${d}`);continue}f.push({type:"REGEX",index:d,value:F}),d=J;continue}f.push({type:"CHAR",index:d,value:o[d++]})}return f.push({type:"END",index:d,value:""}),f}t(Fst,"v");function Lst(o,s={}){let f=Fst(o);s.delimiter??="/#?",s.prefixes??="./";let d=`[^${lT(s.delimiter)}]+?`,y=[],x=0,P=0,F="",J=new Set,G=t(Fn=>{if(P<f.length&&f[P].type===Fn)return f[P++].value},"a"),Se=t(()=>G("OTHER_MODIFIER")??G("ASTERISK"),"f"),de=t(Fn=>{let sn=G(Fn);if(sn!==void 0)return sn;let{type:Un,index:Er}=f[P];throw new TypeError(`Unexpected ${Un} at ${Er}, expected ${Fn}`)},"d"),ae=t(()=>{let Fn="",sn;for(;sn=G("CHAR")??G("ESCAPED_CHAR");)Fn+=sn;return Fn},"T"),Ke=t(Fn=>Fn,"Se"),$e=s.encodePart||Ke,Fe="",Gt=t(Fn=>{Fe+=Fn},"U"),jt=t(()=>{Fe.length&&(y.push(new rH(3,"","",$e(Fe),"",3)),Fe="")},"$"),Pr=t((Fn,sn,Un,Er,vr)=>{let ls=3;switch(vr){case"?":ls=1;break;case"*":ls=0;break;case"+":ls=2;break}if(!sn&&!Un&&ls===3){Gt(Fn);return}if(jt(),!sn&&!Un){if(!Fn)return;y.push(new rH(3,"","",$e(Fn),"",ls));return}let Ni;Un?Un==="*"?Ni=XAe:Ni=Un:Ni=d;let nc=2;Ni===d?(nc=1,Ni=""):Ni===XAe&&(nc=0,Ni="");let bi;if(sn?bi=sn:Un&&(bi=x++),J.has(bi))throw new TypeError(`Duplicate name '${bi}'.`);J.add(bi),y.push(new rH(nc,bi,$e(Fn),Ni,$e(Er),ls))},"V");for(;P<f.length;){let Fn=G("CHAR"),sn=G("NAME"),Un=G("REGEX");if(!sn&&!Un&&(Un=G("ASTERISK")),sn||Un){let vr=Fn??"";s.prefixes.indexOf(vr)===-1&&(Gt(vr),vr=""),jt();let ls=Se();Pr(vr,sn,Un,"",ls);continue}let Er=Fn??G("ESCAPED_CHAR");if(Er){Gt(Er);continue}if(G("OPEN")){let vr=ae(),ls=G("NAME"),Ni=G("REGEX");!ls&&!Ni&&(Ni=G("ASTERISK"));let nc=ae();de("CLOSE");let bi=Se();Pr(vr,ls,Ni,nc,bi);continue}jt(),de("END")}return y}t(Lst,"D");function lT(o){return o.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}t(lT,"S");function Ist(o){return o&&o.ignoreCase?"ui":"u"}t(Ist,"X");function ner(o,s,f){return Rst(Lst(o,f),s,f)}t(ner,"Z");function iM(o){switch(o){case 0:return"*";case 1:return"?";case 2:return"+";case 3:return""}}t(iM,"k");function Rst(o,s,f={}){f.delimiter??="/#?",f.prefixes??="./",f.sensitive??=!1,f.strict??=!1,f.end??=!0,f.start??=!0,f.endsWith="";let d=f.start?"^":"";for(let F of o){if(F.type===3){F.modifier===3?d+=lT(F.value):d+=`(?:${lT(F.value)})${iM(F.modifier)}`;continue}s&&s.push(F.name);let J=`[^${lT(f.delimiter)}]+?`,G=F.value;if(F.type===1?G=J:F.type===0&&(G=XAe),!F.prefix.length&&!F.suffix.length){F.modifier===3||F.modifier===1?d+=`(${G})${iM(F.modifier)}`:d+=`((?:${G})${iM(F.modifier)})`;continue}if(F.modifier===3||F.modifier===1){d+=`(?:${lT(F.prefix)}(${G})${lT(F.suffix)})`,d+=iM(F.modifier);continue}d+=`(?:${lT(F.prefix)}`,d+=`((?:${G})(?:`,d+=lT(F.suffix),d+=lT(F.prefix),d+=`(?:${G}))*)${lT(F.suffix)})`,F.modifier===0&&(d+="?")}let y=`[${lT(f.endsWith)}]|$`,x=`[${lT(f.delimiter)}]`;if(f.end)return f.strict||(d+=`${x}?`),f.endsWith.length?d+=`(?=${y})`:d+="$",new RegExp(d,Ist(f));f.strict||(d+=`(?:${x}(?=${y}))?`);let P=!1;if(o.length){let F=o[o.length-1];F.type===3&&F.modifier===3&&(P=f.delimiter.indexOf(F)>-1)}return P||(d+=`(?=${x}|${y})`),new RegExp(d,Ist(f))}t(Rst,"F");var eI={delimiter:"",prefixes:"",sensitive:!0,strict:!0},ier={delimiter:".",prefixes:"",sensitive:!0,strict:!0},ser={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function aer(o,s){return o.length?o[0]==="/"?!0:!s||o.length<2?!1:(o[0]=="\\"||o[0]=="{")&&o[1]=="/":!1}t(aer,"J");function Mst(o,s){return o.startsWith(s)?o.substring(s.length,o.length):o}t(Mst,"Q");function oer(o,s){return o.endsWith(s)?o.substr(0,o.length-s.length):o}t(oer,"Ee");function jst(o){return!o||o.length<2?!1:o[0]==="["||(o[0]==="\\"||o[0]==="{")&&o[1]==="["}t(jst,"W");var Bst=["ftp","file","http","https","ws","wss"];function Ust(o){if(!o)return!0;for(let s of Bst)if(o.test(s))return!0;return!1}t(Ust,"N");function cer(o,s){if(o=Mst(o,"#"),s||o==="")return o;let f=new URL("https://example.com");return f.hash=o,f.hash?f.hash.substring(1,f.hash.length):""}t(cer,"te");function ler(o,s){if(o=Mst(o,"?"),s||o==="")return o;let f=new URL("https://example.com");return f.search=o,f.search?f.search.substring(1,f.search.length):""}t(ler,"re");function uer(o,s){return s||o===""?o:jst(o)?Jst(o):$st(o)}t(uer,"ne");function fer(o,s){if(s||o==="")return o;let f=new URL("https://example.com");return f.password=o,f.password}t(fer,"se");function _er(o,s){if(s||o==="")return o;let f=new URL("https://example.com");return f.username=o,f.username}t(_er,"ie");function per(o,s,f){if(f||o==="")return o;if(s&&!Bst.includes(s))return new URL(`${s}:${o}`).pathname;let d=o[0]=="/";return o=new URL(d?o:"/-"+o,"https://example.com").pathname,d||(o=o.substring(2,o.length)),o}t(per,"ae");function der(o,s,f){return zst(s)===o&&(o=""),f||o===""?o:Wst(o)}t(der,"oe");function mer(o,s){return o=oer(o,":"),s||o===""?o:ZAe(o)}t(mer,"ce");function zst(o){switch(o){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}t(zst,"_");function ZAe(o){if(o==="")return o;if(/^[-+.A-Za-z0-9]*$/.test(o))return o.toLowerCase();throw new TypeError(`Invalid protocol '${o}'.`)}t(ZAe,"y");function her(o){if(o==="")return o;let s=new URL("https://example.com");return s.username=o,s.username}t(her,"le");function ger(o){if(o==="")return o;let s=new URL("https://example.com");return s.password=o,s.password}t(ger,"fe");function $st(o){if(o==="")return o;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(o))throw new TypeError(`Invalid hostname '${o}'`);let s=new URL("https://example.com");return s.hostname=o,s.hostname}t($st,"z");function Jst(o){if(o==="")return o;if(/[^0-9a-fA-F[\]:]/g.test(o))throw new TypeError(`Invalid IPv6 hostname '${o}'`);return o.toLowerCase()}t(Jst,"j");function Wst(o){if(o===""||/^[0-9]*$/.test(o)&&parseInt(o)<=65535)return o;throw new TypeError(`Invalid port '${o}'.`)}t(Wst,"K");function yer(o){if(o==="")return o;let s=new URL("https://example.com");return s.pathname=o[0]!=="/"?"/-"+o:o,o[0]!=="/"?s.pathname.substring(2,s.pathname.length):s.pathname}t(yer,"he");function ver(o){return o===""?o:new URL(`data:${o}`).pathname}t(ver,"ue");function ber(o){if(o==="")return o;let s=new URL("https://example.com");return s.search=o,s.search.substring(1,s.search.length)}t(ber,"de");function Ser(o){if(o==="")return o;let s=new URL("https://example.com");return s.hash=o,s.hash.substring(1,s.hash.length)}t(Ser,"pe");var Ter=class{static{t(this,"H")}#e;#n=[];#t={};#r=0;#s=1;#p=0;#o=0;#_=0;#u=0;#c=!1;constructor(o){this.#e=o}get result(){return this.#t}parse(){for(this.#n=Fst(this.#e,!0);this.#r<this.#n.length;this.#r+=this.#s){if(this.#s=1,this.#n[this.#r].type==="END"){if(this.#o===0){this.#h(),this.#x()?this.#i(9,1):this.#v()?this.#i(8,1):this.#i(7,0);continue}else if(this.#o===2){this.#m(5);continue}this.#i(10,0);break}if(this.#_>0)if(this.#l())this.#_-=1;else continue;if(this.#A()){this.#_+=1;continue}switch(this.#o){case 0:this.#g()&&this.#m(1);break;case 1:if(this.#g()){this.#P();let o=7,s=1;this.#y()?(o=2,s=3):this.#c&&(o=2),this.#i(o,s)}break;case 2:this.#E()?this.#m(3):(this.#k()||this.#v()||this.#x())&&this.#m(5);break;case 3:this.#T()?this.#i(4,1):this.#E()&&this.#i(5,1);break;case 4:this.#E()&&this.#i(5,1);break;case 5:this.#O()?this.#u+=1:this.#w()&&(this.#u-=1),this.#C()&&!this.#u?this.#i(6,1):this.#k()?this.#i(7,0):this.#v()?this.#i(8,1):this.#x()&&this.#i(9,1);break;case 6:this.#k()?this.#i(7,0):this.#v()?this.#i(8,1):this.#x()&&this.#i(9,1);break;case 7:this.#v()?this.#i(8,1):this.#x()&&this.#i(9,1);break;case 8:this.#x()&&this.#i(9,1);break;case 9:break;case 10:break}}this.#t.hostname!==void 0&&this.#t.port===void 0&&(this.#t.port="")}#i(o,s){switch(this.#o){case 0:break;case 1:this.#t.protocol=this.#D();break;case 2:break;case 3:this.#t.username=this.#D();break;case 4:this.#t.password=this.#D();break;case 5:this.#t.hostname=this.#D();break;case 6:this.#t.port=this.#D();break;case 7:this.#t.pathname=this.#D();break;case 8:this.#t.search=this.#D();break;case 9:this.#t.hash=this.#D();break;case 10:break}this.#o!==0&&o!==10&&([1,2,3,4].includes(this.#o)&&[6,7,8,9].includes(o)&&(this.#t.hostname??=""),[1,2,3,4,5,6].includes(this.#o)&&[8,9].includes(o)&&(this.#t.pathname??=this.#c?"/":""),[1,2,3,4,5,6,7].includes(this.#o)&&o===9&&(this.#t.search??="")),this.#a(o,s)}#a(o,s){this.#o=o,this.#p=this.#r+s,this.#r+=s,this.#s=0}#h(){this.#r=this.#p,this.#s=0}#m(o){this.#h(),this.#o=o}#f(o){return o<0&&(o=this.#n.length-o),o<this.#n.length?this.#n[o]:this.#n[this.#n.length-1]}#d(o,s){let f=this.#f(o);return f.value===s&&(f.type==="CHAR"||f.type==="ESCAPED_CHAR"||f.type==="INVALID_CHAR")}#g(){return this.#d(this.#r,":")}#y(){return this.#d(this.#r+1,"/")&&this.#d(this.#r+2,"/")}#E(){return this.#d(this.#r,"@")}#T(){return this.#d(this.#r,":")}#C(){return this.#d(this.#r,":")}#k(){return this.#d(this.#r,"/")}#v(){if(this.#d(this.#r,"?"))return!0;if(this.#n[this.#r].value!=="?")return!1;let o=this.#f(this.#r-1);return o.type!=="NAME"&&o.type!=="REGEX"&&o.type!=="CLOSE"&&o.type!=="ASTERISK"}#x(){return this.#d(this.#r,"#")}#A(){return this.#n[this.#r].type=="OPEN"}#l(){return this.#n[this.#r].type=="CLOSE"}#O(){return this.#d(this.#r,"[")}#w(){return this.#d(this.#r,"]")}#D(){let o=this.#n[this.#r],s=this.#f(this.#p).index;return this.#e.substring(s,o.index)}#P(){let o={};Object.assign(o,eI),o.encodePart=ZAe;let s=ner(this.#D(),void 0,o);this.#c=Ust(s)}},KAe=["protocol","username","password","hostname","port","pathname","search","hash"],QN="*";function Ost(o,s){if(typeof o!="string")throw new TypeError("parameter 1 is not of type 'string'.");let f=new URL(o,s);return{protocol:f.protocol.substring(0,f.protocol.length-1),username:f.username,password:f.password,hostname:f.hostname,port:f.port,pathname:f.pathname,search:f.search!==""?f.search.substring(1,f.search.length):void 0,hash:f.hash!==""?f.hash.substring(1,f.hash.length):void 0}}t(Ost,"ge");function qP(o,s){return s?tH(o):o}t(qP,"b");function eH(o,s,f){let d;if(typeof s.baseURL=="string")try{d=new URL(s.baseURL),s.protocol===void 0&&(o.protocol=qP(d.protocol.substring(0,d.protocol.length-1),f)),!f&&s.protocol===void 0&&s.hostname===void 0&&s.port===void 0&&s.username===void 0&&(o.username=qP(d.username,f)),!f&&s.protocol===void 0&&s.hostname===void 0&&s.port===void 0&&s.username===void 0&&s.password===void 0&&(o.password=qP(d.password,f)),s.protocol===void 0&&s.hostname===void 0&&(o.hostname=qP(d.hostname,f)),s.protocol===void 0&&s.hostname===void 0&&s.port===void 0&&(o.port=qP(d.port,f)),s.protocol===void 0&&s.hostname===void 0&&s.port===void 0&&s.pathname===void 0&&(o.pathname=qP(d.pathname,f)),s.protocol===void 0&&s.hostname===void 0&&s.port===void 0&&s.pathname===void 0&&s.search===void 0&&(o.search=qP(d.search.substring(1,d.search.length),f)),s.protocol===void 0&&s.hostname===void 0&&s.port===void 0&&s.pathname===void 0&&s.search===void 0&&s.hash===void 0&&(o.hash=qP(d.hash.substring(1,d.hash.length),f))}catch{throw new TypeError(`invalid baseURL '${s.baseURL}'.`)}if(typeof s.protocol=="string"&&(o.protocol=mer(s.protocol,f)),typeof s.username=="string"&&(o.username=_er(s.username,f)),typeof s.password=="string"&&(o.password=fer(s.password,f)),typeof s.hostname=="string"&&(o.hostname=uer(s.hostname,f)),typeof s.port=="string"&&(o.port=der(s.port,o.protocol,f)),typeof s.pathname=="string"){if(o.pathname=s.pathname,d&&!aer(o.pathname,f)){let y=d.pathname.lastIndexOf("/");y>=0&&(o.pathname=qP(d.pathname.substring(0,y+1),f)+o.pathname)}o.pathname=per(o.pathname,o.protocol,f)}return typeof s.search=="string"&&(o.search=ler(s.search,f)),typeof s.hash=="string"&&(o.hash=cer(s.hash,f)),o}t(eH,"w");function tH(o){return o.replace(/([+*?:{}()\\])/g,"\\$1")}t(tH,"C");function xer(o){return o.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}t(xer,"Oe");function Eer(o,s){s.delimiter??="/#?",s.prefixes??="./",s.sensitive??=!1,s.strict??=!1,s.end??=!0,s.start??=!0,s.endsWith="";let f=".*",d=`[^${xer(s.delimiter)}]+?`,y=/[$_\u200C\u200D\p{ID_Continue}]/u,x="";for(let P=0;P<o.length;++P){let F=o[P];if(F.type===3){if(F.modifier===3){x+=tH(F.value);continue}x+=`{${tH(F.value)}}${iM(F.modifier)}`;continue}let J=F.hasCustomName(),G=!!F.suffix.length||!!F.prefix.length&&(F.prefix.length!==1||!s.prefixes.includes(F.prefix)),Se=P>0?o[P-1]:null,de=P<o.length-1?o[P+1]:null;if(!G&&J&&F.type===1&&F.modifier===3&&de&&!de.prefix.length&&!de.suffix.length)if(de.type===3){let ae=de.value.length>0?de.value[0]:"";G=y.test(ae)}else G=!de.hasCustomName();if(!G&&!F.prefix.length&&Se&&Se.type===3){let ae=Se.value[Se.value.length-1];G=s.prefixes.includes(ae)}G&&(x+="{"),x+=tH(F.prefix),J&&(x+=`:${F.name}`),F.type===2?x+=`(${F.value})`:F.type===1?J||(x+=`(${d})`):F.type===0&&(!J&&(!Se||Se.type===3||Se.modifier!==3||G||F.prefix!=="")?x+="*":x+=`(${f})`),F.type===1&&J&&F.suffix.length&&y.test(F.suffix[0])&&(x+="\\"),x+=tH(F.suffix),G&&(x+="}"),F.modifier!==3&&(x+=iM(F.modifier))}return x}t(Eer,"ke");var qst=class{static{t(this,"me")}#e;#n={};#t={};#r={};#s={};#p=!1;constructor(o={},s,f){try{let d;if(typeof s=="string"?d=s:f=s,typeof o=="string"){let F=new Ter(o);if(F.parse(),o=F.result,d===void 0&&typeof o.protocol!="string")throw new TypeError("A base URL must be provided for a relative constructor string.");o.baseURL=d}else{if(!o||typeof o!="object")throw new TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(d)throw new TypeError("parameter 1 is not of type 'string'.")}typeof f>"u"&&(f={ignoreCase:!1});let y={ignoreCase:f.ignoreCase===!0},x={pathname:QN,protocol:QN,username:QN,password:QN,hostname:QN,port:QN,search:QN,hash:QN};this.#e=eH(x,o,!0),zst(this.#e.protocol)===this.#e.port&&(this.#e.port="");let P;for(P of KAe){if(!(P in this.#e))continue;let F={},J=this.#e[P];switch(this.#t[P]=[],P){case"protocol":Object.assign(F,eI),F.encodePart=ZAe;break;case"username":Object.assign(F,eI),F.encodePart=her;break;case"password":Object.assign(F,eI),F.encodePart=ger;break;case"hostname":Object.assign(F,ier),jst(J)?F.encodePart=Jst:F.encodePart=$st;break;case"port":Object.assign(F,eI),F.encodePart=Wst;break;case"pathname":Ust(this.#n.protocol)?(Object.assign(F,ser,y),F.encodePart=yer):(Object.assign(F,eI,y),F.encodePart=ver);break;case"search":Object.assign(F,eI,y),F.encodePart=ber;break;case"hash":Object.assign(F,eI,y),F.encodePart=Ser;break}try{this.#s[P]=Lst(J,F),this.#n[P]=Rst(this.#s[P],this.#t[P],F),this.#r[P]=Eer(this.#s[P],F),this.#p=this.#p||this.#s[P].some(G=>G.type===2)}catch{throw new TypeError(`invalid ${P} pattern '${this.#e[P]}'.`)}}}catch(d){throw new TypeError(`Failed to construct 'URLPattern': ${d.message}`)}}test(o={},s){let f={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof o!="string"&&s)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof o>"u")return!1;try{typeof o=="object"?f=eH(f,o,!1):f=eH(f,Ost(o,s),!1)}catch{return!1}let d;for(d of KAe)if(!this.#n[d].exec(f[d]))return!1;return!0}exec(o={},s){let f={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof o!="string"&&s)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof o>"u")return;try{typeof o=="object"?f=eH(f,o,!1):f=eH(f,Ost(o,s),!1)}catch{return null}let d={};s?d.inputs=[o,s]:d.inputs=[o];let y;for(y of KAe){let x=this.#n[y].exec(f[y]);if(!x)return null;let P={};for(let[F,J]of this.#t[y].entries())if(typeof J=="string"||typeof J=="number"){let G=x[F+1];P[J]=G}d[y]={input:f[y]??"",groups:P}}return d}static compareComponent(o,s,f){let d=t((F,J)=>{for(let G of["type","modifier","prefix","value","suffix"]){if(F[G]<J[G])return-1;if(F[G]!==J[G])return 1}return 0},"o"),y=new rH(3,"","","","",3),x=new rH(0,"","","","",3),P=t((F,J)=>{let G=0;for(;G<Math.min(F.length,J.length);++G){let Se=d(F[G],J[G]);if(Se)return Se}return F.length===J.length?0:d(F[G]??y,J[G]??y)},"s");return!s.#r[o]&&!f.#r[o]?0:s.#r[o]&&!f.#r[o]?P(s.#s[o],[x]):!s.#r[o]&&f.#r[o]?P([x],f.#s[o]):P(s.#s[o],f.#s[o])}get protocol(){return this.#r.protocol}get username(){return this.#r.username}get password(){return this.#r.password}get hostname(){return this.#r.hostname}get port(){return this.#r.port}get pathname(){return this.#r.pathname}get search(){return this.#r.search}get hash(){return this.#r.hash}get hasRegExpGroups(){return this.#p}};globalThis.URLPattern||(globalThis.URLPattern=qst);import{AssertionError as Cer}from"node:assert";function VP(o,s){if(o===!1)throw new Cer({message:s})}t(VP,"assert");var Ko;(function(o){o.Object="Object",o.Property="Property",o.Array="Array",o.Literal="Literal",o.TemplateString="TemplateString",o.Identifier="Identifier",o.FunctionCall="FunctionCall",o.Raw="Raw"})(Ko||(Ko={}));function sM(o){return o.type===Ko.Object}t(sM,"isAstObject");function HP(o){return o.type===Ko.Property}t(HP,"isAstProperty");function Vst(o){return o.type===Ko.Array}t(Vst,"isAstArray");function aM(o){return o.type===Ko.Literal}t(aM,"isAstLiteral");function tI(o){if(o===void 0)throw new Error("Node is undefined");if(!sM(o))throw new Error("Node is not object")}t(tI,"assertAstObject");import{findNodeAtLocation as ker,getNodeValue as wer,printParseErrorCode as Der,visit as Per}from"jsonc-parser";var Aer={DEFAULT:{allowTrailingComma:!1}};function nH(o,s=[],f=Aer.DEFAULT){let d={type:"array",offset:-1,length:-1,line:-1,column:-1,children:[],parent:void 0};function y(J){d.type==="property"&&(d.length=J-d.offset,d=d.parent)}t(y,"ensurePropertyComplete");function x(J){return d.children?.push(J),J}t(x,"onValue"),Per(o,{onObjectBegin:t((J,G,Se)=>{d=x({type:"object",offset:J,length:-1,line:G+1,column:Se+1,parent:d,children:[]})},"onObjectBegin"),onObjectProperty:t((J,G,Se,de,ae)=>{d=x({type:"property",offset:G,length:-1,line:de+1,column:ae+1,parent:d,children:[]}),d.children?.push({type:"string",value:J,offset:G,length:Se,line:de,column:ae,parent:d})},"onObjectProperty"),onObjectEnd:t((J,G)=>{y(J+G),d.length=J+G-d.offset,d=d.parent,y(J+G)},"onObjectEnd"),onArrayBegin:t((J,G,Se,de)=>{d=x({type:"array",offset:J,length:-1,line:Se+1,column:de+1,parent:d,children:[]})},"onArrayBegin"),onArrayEnd:t((J,G)=>{d.length=J+G-d.offset,d=d.parent,y(J+G)},"onArrayEnd"),onLiteralValue:t((J,G,Se,de,ae)=>{x({type:Ner(J),offset:G,length:Se,line:de+1,column:ae+1,parent:d,value:J}),y(G+Se)},"onLiteralValue"),onSeparator:t((J,G)=>{d.type==="property"&&(J===":"?d.colonOffset=G:J===","&&y(G))},"onSeparator"),onError:t((J,G,Se,de,ae)=>{s.push({error:J,offset:G,length:Se,line:de+1,column:ae+1})},"onError")},f);let F=d.children?.[0];return F&&delete F.parent,F}t(nH,"parse");function Ner(o){switch(typeof o){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(o){if(Array.isArray(o))return"array"}else return"null";return"object"}default:return"null"}}t(Ner,"getNodeType");function QAe(o,s){return ker(o,s)}t(QAe,"findNodeAtLocation");function iH(o){return wer(o)}t(iH,"getNodeValue");function Hst(o){return Der(o)}t(Hst,"printParseErrorCode");var sH=class{static{t(this,"AstAdapter")}parse(s){let d=nH(s,[]);if(d)return this.parseNode(d,void 0);throw new Error("Failed to parse JSON")}convert(s){return this.parseNode(s,void 0)}parseNode(s,f){switch(s.type){case"object":return this.createObject(s,f);case"array":return this.createArray(s,f);case"property":return this.createProperty(s,f);case"string":return this.createLiteral(s,f);case"number":return this.createLiteral(s,f);case"boolean":return this.createLiteral(s,f);case"null":return this.createLiteral(s,f)}}createLiteral(s,f){return{type:Ko.Literal,location:{line:s.line,column:s.column},parent:f,value:s.type==="null"?null:s.value}}createObject(s,f){let d={type:Ko.Object,children:[],parent:f,location:{line:s.line,column:s.column}};return s.children?.forEach(y=>{d.children.push(this.parseNode(y,d))}),d}createProperty(s,f){VP(s.children?.length===2,"Invalid property node");let d={type:Ko.Property,location:{line:s.line,column:s.column},parent:f,name:null,value:null};return d.name={value:s.children[0].value,location:{line:s.line,column:s.column},type:Ko.Identifier,parent:d},d.value=this.parseNode(s.children[1],d),d}createArray(s,f){let d={type:Ko.Array,location:{line:s.line,column:s.column},parent:f,children:[]};return s.children?.forEach(y=>d.children.push(this.parseNode(y,d))),d}};var uT={createLiteral:t((o,s)=>({type:Ko.Literal,parent:s,value:o}),"createLiteral"),createTemplateString:t((o,s)=>({type:Ko.TemplateString,parent:s,value:o}),"createTemplateString"),createIdentifier:t((o,s)=>({type:Ko.Identifier,value:o,parent:s}),"createIdentifier"),createProperty:t((o,s,f)=>{let d={type:Ko.Property,parent:f,name:null,value:s};return d.name={value:o,type:Ko.Identifier,parent:d},d.value.parent=d,d},"createProperty"),createArrayOfLiterals:t((o,s)=>{let f={type:Ko.Array,parent:s,children:[]};for(let d of o)f.children.push(uT.createLiteral(d,f));return f},"createArrayOfLiterals")};var Ier=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/,aH=class{static{t(this,"SourceGenerator")}generate(s){let f=[];return this.generateSource(f,s),f.join("")}generateSource(s,f){switch(f.type){case Ko.Array:return this.generateArray(s,f);case Ko.Object:return this.generateObject(s,f);case Ko.Property:return this.generateProperty(s,f);case Ko.Literal:return this.generateLiteral(s,f);case Ko.FunctionCall:return this.generateFunctionCall(s,f);case Ko.Identifier:return this.generateIdentifier(s,f);case Ko.Raw:return this.generateRaw(s,f);case Ko.TemplateString:return this.generateTemplateString(s,f)}}generateArray(s,f){s.push("["),f.children.map(d=>{this.generateSource(s,d),s.push(",")}),s.push("]")}generateObject(s,f){s.push("{"),f.children.forEach(d=>{this.generateSource(s,d),s.push(",")}),s.push("}")}generateProperty(s,f){this.generateIdentifier(s,f.name),s.push(":"),this.generateSource(s,f.value)}generateFunctionCall(s,f){s.push(f.name.value),s.push("("),f.children.forEach((d,y,x)=>{this.generateSource(s,d),y<x.length&&s.push(",")}),s.push(")")}generateRaw(s,f){s.push(f.value)}generateTemplateString(s,f){s.push("`"),s.push(f.value.replaceAll("`","\\`")),s.push("`")}generateLiteral(s,f){if(f.value===null)return s.push("null");switch(typeof f.value){case"number":case"boolean":return s.push(`${f.value}`);case"string":{let d=f.value,y=JSON.stringify(d);return s.push(`${y}`)}}}generateIdentifier(s,f){let d=Ier.test(f.value)?f.value:`'${f.value}'`;s.push(d)}};import Oer from"node:fs/promises";import{parse as Fer}from"@swc/core";var Gst=t(async o=>{let s=new Set;try{let f=await Oer.readFile(o,"utf-8");(await Fer(f,{syntax:"typescript"})).body.forEach(y=>{y.type==="ExportDefaultDeclaration"||y.type==="ExportDefaultExpression"?s.add("default"):y.type==="ExportDeclaration"&&y.declaration.type==="FunctionDeclaration"?s.add(y.declaration.identifier.value):y.type==="ExportDeclaration"&&y.declaration.type==="VariableDeclaration"&&y.declaration.declarations[0].id.type==="Identifier"&&s.add(y.declaration.declarations[0].id.value)})}catch{return null}return s},"getJSFileExports");var Yst={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/fragments.schema.json",$defs:{corsPolicyConfiguration:{type:"object",required:["name","allowedOrigins"],additionalProperties:!1,properties:{name:{type:"string",pattern:"^[0-9a-z-]+$"},allowCredentials:{type:"boolean"},maxAge:{type:"number"},allowedOrigins:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},allowedMethods:{oneOf:[{type:"array",items:{$ref:"fragments.schema.json#/$defs/httpMethod"}},{type:"string"}]},allowedHeaders:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},exposeHeaders:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]}}},handlerDefinition:{type:"object",properties:{module:{type:"string",pattern:"^\\$import\\([^ )]*?\\)$"},export:{type:"string"},options:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["module","export"]},httpMethod:{type:"string",enum:["GET","HEAD","POST","PUT","DELETE","CONNECT","OPTIONS","TRACE","PATCH"]}}};var e6e={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/policies.schema.json",title:"Policies Config File",type:"object",additionalProperties:!1,properties:{policies:{type:"array",items:{$ref:"policy-configuration.schema.json"}},corsPolicies:{type:"array",items:{$ref:"fragments.schema.json#/$defs/corsPolicyConfiguration"}}}};var Kst={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/policy-configuration.schema.json",title:"Policy Configuration Fragment",type:"object",required:["name","policyType","handler"],additionalProperties:!1,properties:{name:{type:"string",pattern:"^[0-9a-z-]+$"},policyType:{type:"string"},handler:{$ref:"fragments.schema.json#/$defs/handlerDefinition"},options:{type:"object",additionalProperties:!0}}};var t6e={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/route-configuration.schema.json",title:"Route Configuration Fragment",description:"",type:"object",required:["path","methods","handler"],additionalProperties:!1,$defs:{corsPolicy:{type:"string",pattern:"^[0-9a-z-]+$"}},properties:{operationId:{type:"string"},path:{type:"string",pattern:"^/[^\\s]*$"},methods:{type:"array",items:{$ref:"fragments.schema.json#/$defs/httpMethod"}},label:{type:"string",description:"An internal user-friendly identifier of the route."},enforceOpenApi:{type:"boolean",description:"If true, schema validation found in the OpenAPI spec will be enforced on requests/responses."},key:{type:"string",deprecated:!0},handler:{$ref:"fragments.schema.json#/$defs/handlerDefinition"},corsPolicy:{$ref:"#/$defs/corsPolicy"},custom:{},mcp:{type:"object",additionalProperties:!1,properties:{enabled:{type:"boolean"}}},policies:{type:"object",additionalProperties:!1,properties:{inbound:{type:"array",items:{type:"string",pattern:"^[0-9a-z-]+$"}},outbound:{type:"array",items:{type:"string",pattern:"^[0-9a-z-]+$"}}}},summary:{type:"string"},description:{type:"string"},excludeFromOpenApi:{type:"boolean"},tags:{type:"array",items:{type:"string"}}}};var r6e={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/route-configuration-open-api.schema.json",title:"Open API Route Configuration Fragment",description:"These are the properties that can appear under the x-zuplo-route extension in a PathObject in Open API. It's a subset of what can appear in Zuplo's routes.json.",type:"object",required:["handler"],additionalProperties:!1,properties:{label:{type:"string",description:"An internal user-friendly identifier of the route."},key:{type:"string",deprecated:!0},handler:{$ref:"fragments.schema.json#/$defs/handlerDefinition"},corsPolicy:{type:"string",pattern:"^[0-9a-z-]+$"},custom:{},mcp:{type:"object",additionalProperties:!1,properties:{enabled:{type:"boolean"}}},policies:{type:"object",additionalProperties:!1,properties:{inbound:{type:"array",items:{type:"string",pattern:"^[0-9a-z-]+$"}},outbound:{type:"array",items:{type:"string",pattern:"^[0-9a-z-]+$"}}}},tags:{type:"array",items:{type:"string"}}}};var rlt=Sd(ole(),1),nlt=Sd(tlt(),1);var fle=class o{static{t(this,"JsonValidator")}static#e=new o;static get instance(){return o.#e}ajv;constructor(){this.ajv=new rlt.Ajv2020({allErrors:!0,allowUnionTypes:!0}),this.ajv.addKeyword("faker"),(0,nlt.default)(this.ajv,{mode:"fast"})}addSchema(s,f){this.ajv.addSchema(s,f)}compile(s){let f=this.ajv.compile(s);return t(y=>({isValid:f(y),errors:this.toSimpleErrors(f.errors,y),warnings:[]}),"validator")}toSimpleErrors(s,f){let d=[];return s?.forEach(y=>{y.keyword==="enum"&&y.params.allowedValues&&Array.isArray(y.params.allowedValues)&&(y.message+=`; ${y.params.allowedValues.join(", ")}`),y.instancePath&&(y.instancePath=y.instancePath.replaceAll(/(\/)?(~1)(\/)?/gm,"/"));let x={details:{}},P=y.instancePath.split("/");if(P.length>2){let J=P[1],G=P[2]?parseInt(P[2],10):0,Se=P[3],de=Number.isNaN(G)?void 0:f[J][G][Se];x={details:{property:J,index:G,field:Se,fieldValue:de}}}if(y.keyword==="required"&&y.params.missingProperty&&y.instancePath&&(y.message=`A 'path' is missing required property '${y.params.missingProperty}'`),y.keyword==="additionalProperties"&&y.params.additionalProperty&&y.instancePath&&(y.message=`A 'path' should NOT include property '${y.params.additionalProperty}'`),y.keyword==="type"&&y.params.type&&y.instancePath){let J=y.instancePath.split("/"),G=J[J.length-1];y.message=`Value of property '${G}' must be '${y.params.type}'`}let F=Object.assign(y,x);d.push(F)}),d}};var fI=fle.instance;fI.addSchema(t6e,"route-configuration.schema.json");fI.addSchema(Kst,"policy-configuration.schema.json");fI.addSchema(e6e,"policies.schema.json");fI.addSchema(r6e,"open-api-route-configuration.schema.json");fI.addSchema(Yst,"fragments.schema.json");var h6r=fI.compile(t6e),ilt=fI.compile(r6e),gIe=fI.compile(e6e);var _le=class{static{t(this,"PoliciesConfigurationValidator")}results;validate(s){return this.results=gIe(s),this.results}};var ple=class{static{t(this,"OpenAPILocalizedValidator")}results;validate(s){return this.results=ilt(s),this.results}};import Wor from"node:path";var yIe=/\$import\((.*)\)/,dle=/\$env\((.*?)\)/g;var ZP=class extends Error{static{t(this,"CodeGenError")}location;constructor(s,f,d,y){super(s),this.location={file:f,namespace:"",line:d?d.line:0,column:d?d.column:0,length:0,lineText:y??"",suggestion:""}}},Jor=t(o=>{let s=[],f=o;for(;f.parent;)s.push(f),f=f.parent;return s.reverse()},"invertTree"),_I=t((o,s)=>{if(!o)return!1;let f=Jor(o);return s.split("/").every((x,P)=>{let F=f[P];return F?x==="*"||HP(F)&&F.name.value===x?!0:x==="{}"?F.type===Ko.Object:x==="[]"?F.type===Ko.Array:!1:!1})},"testPosition");var mle=class{static{t(this,"AstTransformer")}errors=[];transform(s){return this.visitor(s),s}visitor(s){this.visit(s),sM(s)?s.children.forEach(f=>{this.visitor(f)}):Vst(s)?s.children.forEach(f=>{this.visitor(f)}):HP(s)&&this.visitor(s.value)}},slt=t((o,s,f)=>d=>{if(!HP(d)||!aM(d.value)||typeof d.value.value!="string")return;if(!o.some(x=>_I(d,x))){dle.test(d.value.value)&&s.push(new ZP("An $env() statement is not expected at this location.",f,d.location,d.value.value));return}let y=new RegExp(dle).exec(d.value.value);if(y?.length===2&&y[0]===d.value.value){let x={type:Ko.Raw,parent:null,value:`environment["${y[1]}"]`};d.value=x}else{let x=d.value.value.replaceAll(new RegExp(dle),(P,F)=>`\${environment["${F}"] ? environment["${F}"] : ""}`);x!==d.value.value&&(d.value=uT.createTemplateString(x,d))}},"getEnvStatementTransformer");var MH="config/routes.json",qor=["handler/{}/options/*","policies/[]/{}/handler/{}/options/*","corsPolicies/[]/{}/*"],Vor=["handler/{}/module","handler/{}/options/{}/policies/{}/inbound/[]/{}/module","handler/{}/options/{}/policies/{}/outbound/[]/{}/module","policies/[]/{}/handler/{}/module","policies/[]/{}/handler/{}/options/{}/identifier/{}/module","policies/[]/{}/handler/{}/options/{}/validator"],alt=["handler/{}/options/*","policies/[]/{}/handler/{}/options/*"],Hor="handler/{}/options/{}/rewritePattern",Gor="handler/{}/options/{}/baseUrl",hle=class extends mle{static{t(this,"OpenAPIRoutesFragmentAstTransformer")}importCount=0;addedImports=new Map;getImportName(s){this.addedImports.has(s)||this.addedImports.set(s,`__import${this.importCount++}`);let f=this.addedImports.get(s);if(!f)throw new Error("Import name is undefined. This should not happen.");return f}getImports(){let s=[];return this.addedImports.forEach((f,d)=>{s.push({name:f,path:d})}),s}visit(s){this.rewriteHandlerFunction(s),this.rewriteForwardFunction(s),this.replaceImportStatements(s),this.replaceEnvStatements(s)}rewriteHandlerFunction(s){if(!(!HP(s)||!aM(s.value)||typeof s.value.value!="string")&&_I(s,Hor)){if(!s.parent||!sM(s.parent)){this.errors.push(new ZP("Invalid node, expected object",MH,s.parent?s.parent.location:s.location,void 0));return}let f=s.value.value,d={type:Ko.Raw,parent:null,value:olt(f)},y=uT.createProperty("__rewriteFunction",d,s);s.parent.children.push(y)}}rewriteForwardFunction(s){if(!(!HP(s)||!aM(s.value)||typeof s.value.value!="string")&&_I(s,Gor)){if(!s.parent||!sM(s.parent)){this.errors.push(new ZP("Invalid node, expected object",MH,s.parent?s.parent.location:s.location,void 0));return}let f=s.value.value,d={type:Ko.Raw,parent:null,value:olt(f)},y=uT.createProperty("__rewriteFunction",d,s);s.parent.children.push(y)}}replaceImportStatements(s){if(!HP(s)||!aM(s.value))return;let f=s.value.value;if(typeof f!="string")return;if(!Vor.some(F=>_I(s,F))&&!alt.some(F=>_I(s,F))){if(yIe.test(f)){if(s.name.value==="$ref")return;this.errors.push(new ZP("An $import() statement is not expected at this location.",MH,s.location,f))}return}let d=yIe.exec(f);if(alt.some(F=>_I(s,F))&&!d)return;if(!d){this.errors.push(new ZP("Invalid $import() statement",MH,s.location,f));return}let y=d[1];y=y.replace(/\\/g,"/"),y.startsWith(".")&&(y=Wor.posix.join("..",y));let x=this.getImportName(y),P={type:Ko.Identifier,parent:s.parent,value:x};s.value=P}replaceEnvStatements=slt(qor,this.errors,MH)};function olt(o){return`(request, context) => {
|
|
576
576
|
const { params, url, query, method, headers } = request;
|
|
577
577
|
const { host, hostname, origin, pathname, port, search } = new URL(url);
|
|
578
578
|
const e = encodeURIComponent;
|
|
579
579
|
const env = environment;
|
|
580
580
|
return \`${o.replaceAll("`","\\`")}\`
|
|
581
|
-
}`}t(
|
|
581
|
+
}`}t(olt,"buildRewriteFunction");var clt="x-zuplo-path",gle="x-zuplo-route",vIe="url-pattern",yle="open-api",Yor=["get","put","post","delete","options","head","patch","trace"];function vle(o){if(o.startsWith("x-"))return!1;let s=o.split(",").map(f=>f.trim().toLowerCase());return s.length>0&&s.every(f=>Yor.includes(f))}t(vle,"isValidHttpMethodKey");var Kor=_lt.default.compile(`
|
|
582
582
|
import { environment } from "@zuplo/runtime";
|
|
583
583
|
import * as rawRouteData from "zuplo:raw-routes";
|
|
584
584
|
const routes = async () => {
|
|
@@ -596,20 +596,20 @@ globstar while`,s,ae,f,Ke,$e),this.matchOne(s.slice(ae),f.slice(Ke),d))return th
|
|
|
596
596
|
};
|
|
597
597
|
}
|
|
598
598
|
export default routes;
|
|
599
|
-
`),J_r=["2023-03-14","2024-01-15","2024-03-14","2024-09-02"];function $ft(o){return!o||J_r.includes(o)}t($ft,"isLegacyPathBehavior");async function R4e(o){try{let{content:s,warnings:f}=await W_r(o);return{content:s,errors:[],warnings:f}}catch(s){if(s instanceof N1)return s.toBuildResult();throw s}}t(R4e,"compileRoutes");async function W_r({sourceDirectory:o,policiesContent:s,oasContent:f,compatibilityDate:d,allowDuplicateRoutes:y}){let x=[],P=[],F=new Jle,J=new xH,{policiesNode:G,policiesData:Se}=H_r(s),{generatedPolicies:de,policyNames:ae}=G_r(F,J,G,Se),{generatedCorsPolicies:Ke,corsPoliciesNames:$e}=Y_r(F,J,G,Se),Fe=K_r(o,f),Gt=[],jt=new Map;for(let Un of Fe){let{node:Er,oas:vr,oasProjectRelativePath:ls}=Un,Ni=mNe(Er,["paths"]);if(!Ni)continue;let nc=Hle.basename(vr.fileName,".oas.json");for(let bi of Ni.children??[])if(bi.children){let Qf=rpr(bi),S_=Qf[Mft]?.pathMode;if(S_){if(S_!==qle&&S_!==L4e)throw new N1({text:`Unknown path mode ${S_}`,location:{line:0,column:0,file:ls}})}else S_=qle;for(let[Ln,zE]of Object.entries(Qf)){if(!Vle(Ln))continue;let Fl=Ln,Ar=Fl.split(/,/).map(Hs=>Hs.trim().toUpperCase()),DT=zE,bc=DT[Wle];if(bc){let Oh=new Ule().validate(bc);if(Oh.isValid){let w0=jft(bi);if(!jt.has(w0)&&(jt.set(w0,new Set),$ft(d)))try{new URLPattern({pathname:w0})}catch{P.push({text:`Path '${w0}' contains invalid characters. The value must be a valid URLPattern.`,location:{line:bi.line,column:bi.column,file:ls}})}if(!y){let D0=jt.get(w0);Ar.forEach(PT=>{D0.has(PT)?P.push({text:`Cannot have duplicate routes declared. Route '${PT.toUpperCase()} ${w0}' declared more than once.`,location:{line:bi.line,column:bi.column,file:ls}}):D0.add(PT)})}let v7=Bft(bi,[w0,Fl,Wle]),iw=await ipr(v7,vr);if(!iw.valid)throw new N1({text:iw.errorMsg??`Unknown error on handler for path '${w0}'`,location:{line:iw.line??0,column:iw.column??0,file:ls}});let Wi=apr(v7,vr);if(!Wi.valid)throw new N1(Wi.errors);Wi.warnings&&x.push(...Wi.warnings),Gt.push({path:w0,pathPattern:w0,pathMode:S_,httpMethods:Ar,rawOperation:Fl,rawOpenAPI:DT,oasFileName:nc,oasProjectRelativePath:ls,config:Bft(bi,[w0,Fl,Wle])})}else throw new N1({text:JSON.stringify(Oh.errors),location:{line:0,column:0,file:ls}})}else{let Hs=jft(bi),Oh={corsPolicy:"none",handler:npr(Hs,Er)};Gt.push({path:Hs,pathPattern:Hs,pathMode:qle,rawOpenAPI:DT,oasFileName:nc,oasProjectRelativePath:ls,httpMethods:Ar,rawOperation:Fl,config:bH(JSON.stringify(Oh))})}if(bc&&"policies"in bc){let Hs=bc.policies;Hs.inbound?.forEach(Oh=>{ae.includes(Oh)||P.push({text:`Policy '${Oh}' does not exist in policies.json. Please add it and rebuild.`,location:{line:Qf.line,column:Qf.column,file:ls}})}),Hs.outbound?.forEach(Oh=>{ae.includes(Oh)||P.push({text:`Policy '${Oh}' does not exist in policies.json. Please add it and rebuild.`,location:{line:Qf.line,column:Qf.column,file:ls}})})}if(P.length>0)throw new N1(P);let Zp=["none","anything-goes"];if(bc&&"corsPolicy"in bc){let Hs=bc.corsPolicy;if(Zp.includes(Hs))continue;$e.includes(Hs)||P.push({text:`Cors policy '${Hs}' does not exist in policies.json. Please add it and rebuild.`,location:{line:Qf.line,column:Qf.column,file:ls}})}}}if(P.length>0)throw new N1(P)}let Pr=[];for(let Un of Gt){let Er=new TH().convert(Un.config);X_r(Er,Un),Z_r(Er,Un,d),Q_r(Er,Un),epr(Er,Un),tpr(Er,Un);let vr=F.transform(Er),ls=F.errors;if(ls.length>0)throw new N1({text:JSON.stringify(ls),location:{line:0,column:0,file:Un.oasProjectRelativePath}});let nc=new xH().generate(vr);Pr.push(nc)}if(KP(Fe.length===f.length,"Tree length should match OAS file length"),KP(Gt.length===Pr.length,`The number of validated nodes should match the number of generated fragments. There were ${Gt.length} validated nodes and ${Pr.length} generated fragments.`),P.length>0)throw new N1(P);let Fn={routes:Pr,imports:F.getImports(),policies:de,corsPolicies:Ke};return{content:$_r(Fn),warnings:x}}t(W_r,"generateSourceCode");var q_r=0,V_r=1;function H_r(o){let s=new Ble,f=JSON.parse(o.content),d=s.validate(f);if(!d.isValid)throw new N1({text:JSON.stringify(d.errors),location:{line:0,column:0,file:"/config/policies.json"}});let y=new TH().parse(JSON.stringify(f));return{policiesData:f,policiesNode:y}}t(H_r,"getPolicyData");function G_r(o,s,f,d){let y=[],x;cI(f);let P=f.children.find(F=>F.name.value==="policies");if(P){let F=o.transform(P);x=s.generate(F),y=d.policies.map(({name:J})=>J)}else x="policies: []";return{generatedPolicies:x,policyNames:y}}t(G_r,"generatePolicies");function Y_r(o,s,f,d){let y,x;cI(f);let P=f.children.find(F=>F.name.value==="corsPolicies");if(P){let F=o.transform(P);x=s.generate(F),y=d.corsPolicies.map(({name:J})=>J)}else x="corsPolicies: []",y=[];return{generatedCorsPolicies:x,corsPoliciesNames:y}}t(Y_r,"generateCorsPolicies");function K_r(o,s){let f=[];for(let d of s){let y=[],x=bH(d.content,y),P=`./${Hle.posix.relative(o.replace(/\\/g,"/"),d.fileName.replace(/\\/g,"/"))}`;if(y.length>0)throw new N1(y.map(F=>({text:Tct(F.error),location:{file:P,line:F.line,column:F.column}})));if(!x)throw new N1({text:"Error parsing the OpenAPI file. Check the contents of the file.",location:{file:P,line:0,column:0}});f.push({node:x,oas:d,oasProjectRelativePath:P})}return f}t(K_r,"getOasTrees");function X_r(o,s){let f={type:Ko.Property,parent:o,name:null,value:null};f.name={value:"path",type:Ko.Identifier,parent:f},f.value=dT.createLiteral(s.path,f),cI(o),o.children.unshift(f)}t(X_r,"embellishWithPath");function Z_r(o,s,f){let d={type:Ko.Property,parent:o,name:null,value:null};if(d.name={value:"pathPattern",type:Ko.Identifier,parent:d},s.pathMode===L4e)d.value=dT.createLiteral(s.path,d);else{let y=/{(\S+?)}/gm,x=":$1",P=$ft(f)?s.path:s.path.replace(/([*+?()[\].|^$\\:])/g,"\\$1");P=P.replace(y,x),s.path.endsWith("/")||(P=`${P}{/}?`),d.value=dT.createLiteral(P,d)}cI(o),o.children.unshift(d)}t(Z_r,"embellishWithPathPattern");function Q_r(o,s){let f={type:Ko.Property,parent:o,name:null,value:null};f.name={value:"methods",type:Ko.Identifier,parent:f},f.value=dT.createArrayOfLiterals(s.httpMethods,f),cI(o),o.children.unshift(f)}t(Q_r,"embellishWithMethods");function epr(o,s){let f={type:Ko.Property,parent:o,name:null,value:null};f.name={value:"raw",type:Ko.Identifier,parent:o};let d=sH(s.oasFileName,s.path,s.rawOperation);f.value={type:Ko.Raw,parent:f,value:`() => {return rawRouteData.${d};}`},cI(o),o.children.unshift(f)}t(epr,"embellishWithRawOpenApi");function tpr(o,s){let f={type:Ko.Property,parent:o,name:null,value:null};f.name={value:"metadata",type:Ko.Identifier,parent:o};let d={type:Ko.Property,parent:f,name:null,value:null};d.name={value:"filepath",type:Ko.Identifier,parent:d},d.value=dT.createLiteral(s.oasProjectRelativePath,d),f.value={type:Ko.Object,parent:f,children:[d]},cI(o),o.children.unshift(f)}t(tpr,"embellishWithMetadata");function rpr(o){return KP(o.type==="property"),KP(Array.isArray(o.children)),SH(o.children[V_r])}t(rpr,"evaluatePathItem");function jft(o){return KP(o.type==="property"),KP(Array.isArray(o.children)),SH(o.children[q_r])}t(jft,"evaluatePath");function Bft(o,s){return mNe(o.parent,s)}t(Bft,"extractZuploRouteNode");function Jft(o){return SH(o)}t(Jft,"evaluateZuploRouteNode");function npr(o,s){let f=/{(\S+?)}/gm,y=o.replace(f,"${params.$1}"),x=SH(s);return{export:"urlRewriteHandler",module:"$import(@zuplo/runtime)",options:{rewritePattern:`${x.servers&&x.servers.length>0?x.servers[0].url:"http://example.com"}${y}`,forwardSearch:!0}}}t(npr,"addDefaultUrlRewriteHandler");async function ipr(o,s){let f=Jft(o),d=f.handler.module.replace(/^\$import\(/,"").replace(/\)$/,""),y=Hle.join(Hle.dirname(s.fileName),"..",`${d}.ts`),x=f.handler.export;if(d==="@zuplo/runtime")return{valid:!0};if(await tu.fileExists(y)){let P=await xct(y);if(P===null)return{valid:!1,errorMsg:`Could not find any export due to a compile error in '${tu.getParentDirFilename(y)}'`};if(!P.has(x)){let F=`Could not find export "${x}" in '${tu.getParentDirFilename(y)}'`,J=0,G=0;if(o.children)for(let Se of o.children)Se.children&&Se.children.forEach(de=>{de.value==="handler"&&(J=de.line,G=de.column)});return{valid:!1,errorMsg:F,line:J,column:G}}return{valid:!0}}else return{valid:!1,errorMsg:`Could not find module '${d}'`}}t(ipr,"checkModuleIsValid");var Uft=t((o,s)=>{let f=0,d=0;if(o.children)for(let y of o.children)y.children&&y.children.forEach(x=>{x.value==="options"&&x.children?.forEach(P=>{x.value===s&&(f=P.line,d=P.column)})});return{line:f,column:d}},"getHandlerOptionLocation"),spr="$env(";function apr(o,s){let f=Jft(o),d=f.handler.export;if(d!=="urlForwardHandler"&&d!=="urlRewriteHandler")return{valid:!0};let y="rewritePattern";d==="urlForwardHandler"&&(y="baseUrl");let x=f.handler.options[y];if(!x){let P=Uft(o,y);return{valid:!1,errors:[{text:`Invalid request handler configuration. handler.options.${y} is required but was not provided.`,location:{file:s.fileName,line:P.line,column:P.column}}]}}if(x.includes(spr)){let P=Uft(o,y);return{valid:!0,warnings:[{text:`Invalid environment variable access syntax detected. Use \${env.VAR_NAME} instead of $env(VAR_NAME) for handler.options.${y}.`,location:{file:s.fileName,line:P.line,column:P.column}}]}}return{valid:!0}}t(apr,"checkHandlerIsValid");import ppr from"node:fs/promises";import dpr from"node:path";var{stringify:opr}=JSON;if(!String.prototype.repeat)throw new Error("String.prototype.repeat is undefined, see https://github.com/davidbonnet/astring#installation");if(!String.prototype.endsWith)throw new Error("String.prototype.endsWith is undefined, see https://github.com/davidbonnet/astring#installation");var Gle={"||":2,"??":3,"&&":4,"|":5,"^":6,"&":7,"==":8,"!=":8,"===":8,"!==":8,"<":9,">":9,"<=":9,">=":9,in:9,instanceof:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"%":12,"/":12,"**":13},LE=17,cpr={ArrayExpression:20,TaggedTemplateExpression:20,ThisExpression:20,Identifier:20,PrivateIdentifier:20,Literal:18,TemplateLiteral:20,Super:20,SequenceExpression:20,MemberExpression:19,ChainExpression:19,CallExpression:19,NewExpression:19,ArrowFunctionExpression:LE,ClassExpression:LE,FunctionExpression:LE,ObjectExpression:LE,UpdateExpression:16,UnaryExpression:15,AwaitExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,AssignmentExpression:3,YieldExpression:2,RestElement:1};function JM(o,s){let{generator:f}=o;if(o.write("("),s!=null&&s.length>0){f[s[0].type](s[0],o);let{length:d}=s;for(let y=1;y<d;y++){let x=s[y];o.write(", "),f[x.type](x,o)}}o.write(")")}t(JM,"formatSequence");function Kft(o,s,f,d){let y=o.expressionsPrecedence[s.type];if(y===LE)return!0;let x=o.expressionsPrecedence[f.type];return y!==x?!d&&y===15&&x===14&&f.operator==="**"||y<x:y!==13&&y!==14?!1:s.operator==="**"&&f.operator==="**"?!d:y===13&&x===13&&(s.operator==="??"||f.operator==="??")?!0:d?Gle[s.operator]<=Gle[f.operator]:Gle[s.operator]<Gle[f.operator]}t(Kft,"expressionNeedsParenthesis");function Yle(o,s,f,d){let{generator:y}=o;Kft(o,s,f,d)?(o.write("("),y[s.type](s,o),o.write(")")):y[s.type](s,o)}t(Yle,"formatExpression");function lpr(o,s,f,d){let y=s.split(`
|
|
599
|
+
`),Xor=["2023-03-14","2024-01-15","2024-03-14","2024-09-02"];function plt(o){return!o||Xor.includes(o)}t(plt,"isLegacyPathBehavior");async function bIe(o){try{let{content:s,warnings:f}=await Zor(o);return{content:s,errors:[],warnings:f}}catch(s){if(s instanceof N1)return s.toBuildResult();throw s}}t(bIe,"compileRoutes");async function Zor({sourceDirectory:o,policiesContent:s,oasContent:f,compatibilityDate:d,allowDuplicateRoutes:y}){let x=[],P=[],F=new hle,J=new aH,{policiesNode:G,policiesData:Se}=tcr(s),{generatedPolicies:de,policyNames:ae}=rcr(F,J,G,Se),{generatedCorsPolicies:Ke,corsPoliciesNames:$e}=ncr(F,J,G,Se),Fe=icr(o,f),Gt=[],jt=new Map;for(let Un of Fe){let{node:Er,oas:vr,oasProjectRelativePath:ls}=Un,Ni=QAe(Er,["paths"]);if(!Ni)continue;let nc=ble.basename(vr.fileName,".oas.json");for(let bi of Ni.children??[])if(bi.children){let Qf=ucr(bi),S_=Qf[clt]?.pathMode;if(S_){if(S_!==yle&&S_!==vIe)throw new N1({text:`Unknown path mode ${S_}`,location:{line:0,column:0,file:ls}})}else S_=yle;for(let[Ln,zE]of Object.entries(Qf)){if(!vle(Ln))continue;let Fl=Ln,Ar=Fl.split(/,/).map(Hs=>Hs.trim().toUpperCase()),DT=zE,bc=DT[gle];if(bc){let Oh=new ple().validate(bc);if(Oh.isValid){let w0=llt(bi);if(!jt.has(w0)&&(jt.set(w0,new Set),plt(d)))try{new URLPattern({pathname:w0})}catch{P.push({text:`Path '${w0}' contains invalid characters. The value must be a valid URLPattern.`,location:{line:bi.line,column:bi.column,file:ls}})}if(!y){let D0=jt.get(w0);Ar.forEach(PT=>{D0.has(PT)?P.push({text:`Cannot have duplicate routes declared. Route '${PT.toUpperCase()} ${w0}' declared more than once.`,location:{line:bi.line,column:bi.column,file:ls}}):D0.add(PT)})}let v7=ult(bi,[w0,Fl,gle]),iw=await _cr(v7,vr);if(!iw.valid)throw new N1({text:iw.errorMsg??`Unknown error on handler for path '${w0}'`,location:{line:iw.line??0,column:iw.column??0,file:ls}});let Wi=dcr(v7,vr);if(!Wi.valid)throw new N1(Wi.errors);Wi.warnings&&x.push(...Wi.warnings),Gt.push({path:w0,pathPattern:w0,pathMode:S_,httpMethods:Ar,rawOperation:Fl,rawOpenAPI:DT,oasFileName:nc,oasProjectRelativePath:ls,config:ult(bi,[w0,Fl,gle])})}else throw new N1({text:JSON.stringify(Oh.errors),location:{line:0,column:0,file:ls}})}else{let Hs=llt(bi),Oh={corsPolicy:"none",handler:fcr(Hs,Er)};Gt.push({path:Hs,pathPattern:Hs,pathMode:yle,rawOpenAPI:DT,oasFileName:nc,oasProjectRelativePath:ls,httpMethods:Ar,rawOperation:Fl,config:nH(JSON.stringify(Oh))})}if(bc&&"policies"in bc){let Hs=bc.policies;Hs.inbound?.forEach(Oh=>{ae.includes(Oh)||P.push({text:`Policy '${Oh}' does not exist in policies.json. Please add it and rebuild.`,location:{line:Qf.line,column:Qf.column,file:ls}})}),Hs.outbound?.forEach(Oh=>{ae.includes(Oh)||P.push({text:`Policy '${Oh}' does not exist in policies.json. Please add it and rebuild.`,location:{line:Qf.line,column:Qf.column,file:ls}})})}if(P.length>0)throw new N1(P);let Zp=["none","anything-goes"];if(bc&&"corsPolicy"in bc){let Hs=bc.corsPolicy;if(Zp.includes(Hs))continue;$e.includes(Hs)||P.push({text:`Cors policy '${Hs}' does not exist in policies.json. Please add it and rebuild.`,location:{line:Qf.line,column:Qf.column,file:ls}})}}}if(P.length>0)throw new N1(P)}let Pr=[];for(let Un of Gt){let Er=new sH().convert(Un.config);scr(Er,Un),acr(Er,Un,d),ocr(Er,Un),ccr(Er,Un),lcr(Er,Un);let vr=F.transform(Er),ls=F.errors;if(ls.length>0)throw new N1({text:JSON.stringify(ls),location:{line:0,column:0,file:Un.oasProjectRelativePath}});let nc=new aH().generate(vr);Pr.push(nc)}if(VP(Fe.length===f.length,"Tree length should match OAS file length"),VP(Gt.length===Pr.length,`The number of validated nodes should match the number of generated fragments. There were ${Gt.length} validated nodes and ${Pr.length} generated fragments.`),P.length>0)throw new N1(P);let Fn={routes:Pr,imports:F.getImports(),policies:de,corsPolicies:Ke};return{content:Kor(Fn),warnings:x}}t(Zor,"generateSourceCode");var Qor=0,ecr=1;function tcr(o){let s=new _le,f=JSON.parse(o.content),d=s.validate(f);if(!d.isValid)throw new N1({text:JSON.stringify(d.errors),location:{line:0,column:0,file:"/config/policies.json"}});let y=new sH().parse(JSON.stringify(f));return{policiesData:f,policiesNode:y}}t(tcr,"getPolicyData");function rcr(o,s,f,d){let y=[],x;tI(f);let P=f.children.find(F=>F.name.value==="policies");if(P){let F=o.transform(P);x=s.generate(F),y=d.policies.map(({name:J})=>J)}else x="policies: []";return{generatedPolicies:x,policyNames:y}}t(rcr,"generatePolicies");function ncr(o,s,f,d){let y,x;tI(f);let P=f.children.find(F=>F.name.value==="corsPolicies");if(P){let F=o.transform(P);x=s.generate(F),y=d.corsPolicies.map(({name:J})=>J)}else x="corsPolicies: []",y=[];return{generatedCorsPolicies:x,corsPoliciesNames:y}}t(ncr,"generateCorsPolicies");function icr(o,s){let f=[];for(let d of s){let y=[],x=nH(d.content,y),P=`./${ble.posix.relative(o.replace(/\\/g,"/"),d.fileName.replace(/\\/g,"/"))}`;if(y.length>0)throw new N1(y.map(F=>({text:Hst(F.error),location:{file:P,line:F.line,column:F.column}})));if(!x)throw new N1({text:"Error parsing the OpenAPI file. Check the contents of the file.",location:{file:P,line:0,column:0}});f.push({node:x,oas:d,oasProjectRelativePath:P})}return f}t(icr,"getOasTrees");function scr(o,s){let f={type:Ko.Property,parent:o,name:null,value:null};f.name={value:"path",type:Ko.Identifier,parent:f},f.value=uT.createLiteral(s.path,f),tI(o),o.children.unshift(f)}t(scr,"embellishWithPath");function acr(o,s,f){let d={type:Ko.Property,parent:o,name:null,value:null};if(d.name={value:"pathPattern",type:Ko.Identifier,parent:d},s.pathMode===vIe)d.value=uT.createLiteral(s.path,d);else{let y=/{(\S+?)}/gm,x=":$1",P=plt(f)?s.path:s.path.replace(/([*+?()[\].|^$\\:])/g,"\\$1");P=P.replace(y,x),s.path.endsWith("/")||(P=`${P}{/}?`),d.value=uT.createLiteral(P,d)}tI(o),o.children.unshift(d)}t(acr,"embellishWithPathPattern");function ocr(o,s){let f={type:Ko.Property,parent:o,name:null,value:null};f.name={value:"methods",type:Ko.Identifier,parent:f},f.value=uT.createArrayOfLiterals(s.httpMethods,f),tI(o),o.children.unshift(f)}t(ocr,"embellishWithMethods");function ccr(o,s){let f={type:Ko.Property,parent:o,name:null,value:null};f.name={value:"raw",type:Ko.Identifier,parent:o};let d=$V(s.oasFileName,s.path,s.rawOperation);f.value={type:Ko.Raw,parent:f,value:`() => {return rawRouteData.${d};}`},tI(o),o.children.unshift(f)}t(ccr,"embellishWithRawOpenApi");function lcr(o,s){let f={type:Ko.Property,parent:o,name:null,value:null};f.name={value:"metadata",type:Ko.Identifier,parent:o};let d={type:Ko.Property,parent:f,name:null,value:null};d.name={value:"filepath",type:Ko.Identifier,parent:d},d.value=uT.createLiteral(s.oasProjectRelativePath,d),f.value={type:Ko.Object,parent:f,children:[d]},tI(o),o.children.unshift(f)}t(lcr,"embellishWithMetadata");function ucr(o){return VP(o.type==="property"),VP(Array.isArray(o.children)),iH(o.children[ecr])}t(ucr,"evaluatePathItem");function llt(o){return VP(o.type==="property"),VP(Array.isArray(o.children)),iH(o.children[Qor])}t(llt,"evaluatePath");function ult(o,s){return QAe(o.parent,s)}t(ult,"extractZuploRouteNode");function dlt(o){return iH(o)}t(dlt,"evaluateZuploRouteNode");function fcr(o,s){let f=/{(\S+?)}/gm,y=o.replace(f,"${params.$1}"),x=iH(s);return{export:"urlRewriteHandler",module:"$import(@zuplo/runtime)",options:{rewritePattern:`${x.servers&&x.servers.length>0?x.servers[0].url:"http://example.com"}${y}`,forwardSearch:!0}}}t(fcr,"addDefaultUrlRewriteHandler");async function _cr(o,s){let f=dlt(o),d=f.handler.module.replace(/^\$import\(/,"").replace(/\)$/,""),y=ble.join(ble.dirname(s.fileName),"..",`${d}.ts`),x=f.handler.export;if(d==="@zuplo/runtime")return{valid:!0};if(await tu.fileExists(y)){let P=await Gst(y);if(P===null)return{valid:!1,errorMsg:`Could not find any export due to a compile error in '${tu.getParentDirFilename(y)}'`};if(!P.has(x)){let F=`Could not find export "${x}" in '${tu.getParentDirFilename(y)}'`,J=0,G=0;if(o.children)for(let Se of o.children)Se.children&&Se.children.forEach(de=>{de.value==="handler"&&(J=de.line,G=de.column)});return{valid:!1,errorMsg:F,line:J,column:G}}return{valid:!0}}else return{valid:!1,errorMsg:`Could not find module '${d}'`}}t(_cr,"checkModuleIsValid");var flt=t((o,s)=>{let f=0,d=0;if(o.children)for(let y of o.children)y.children&&y.children.forEach(x=>{x.value==="options"&&x.children?.forEach(P=>{x.value===s&&(f=P.line,d=P.column)})});return{line:f,column:d}},"getHandlerOptionLocation"),pcr="$env(";function dcr(o,s){let f=dlt(o),d=f.handler.export;if(d!=="urlForwardHandler"&&d!=="urlRewriteHandler")return{valid:!0};let y="rewritePattern";d==="urlForwardHandler"&&(y="baseUrl");let x=f.handler.options[y];if(!x){let P=flt(o,y);return{valid:!1,errors:[{text:`Invalid request handler configuration. handler.options.${y} is required but was not provided.`,location:{file:s.fileName,line:P.line,column:P.column}}]}}if(x.includes(pcr)){let P=flt(o,y);return{valid:!0,warnings:[{text:`Invalid environment variable access syntax detected. Use \${env.VAR_NAME} instead of $env(VAR_NAME) for handler.options.${y}.`,location:{file:s.fileName,line:P.line,column:P.column}}]}}return{valid:!0}}t(dcr,"checkHandlerIsValid");var eG=Sd(L4e(),1);import{readFile as Z_r}from"node:fs/promises";var vT=Sd(L4e(),1);var BO=class extends Error{static{t(this,"CustomResolveError")}},vI=class{static{t(this,"RefParser")}sourceDirectory;logger;constructor(s,f){this.sourceDirectory=s,this.logger=f}dereference(s,f){return eG.$RefParser.dereference(s,{resolve:{json:!0,file:Hle(this.sourceDirectory,this.logger),external:!0,http:!1},dereference:{circular:"ignore",onDereference:f?.onDereference}})}bundle(s){return eG.$RefParser.bundle(s,{resolve:{file:Hle(this.sourceDirectory,this.logger),external:!0,http:!1}})}parse(s){return eG.$RefParser.parse(s,{resolve:{file:Hle(this.sourceDirectory,this.logger),external:!0,http:!1}})}resolve(s){return eG.$RefParser.resolve(s,{resolve:{file:Hle(this.sourceDirectory,this.logger),external:!0,http:!1}})}};function Hle(o,s){return{order:100,canRead(f){let d=tpr(f.url);if(!(d===void 0||d==="file"))return!1;let x;try{x=Uft(f.url)}catch(P){throw new BO(`Malformed URI: ${f.url}`,{cause:P})}try{tu.safePath(o).resolve(x)}catch(P){return s?.warn(P),!1}return!0},async read(f){let d;try{d=Uft(f.url)}catch(y){throw new BO(`Malformed URI: ${f.url}`,{cause:y})}try{return await Z_r(d)}catch(y){throw new BO(`Error opening file "${d}"`,{cause:y})}}}}t(Hle,"customResolver");var $M=/^win/.test(globalThis.process?globalThis.process.platform:""),Q_r=/\//g,epr=/^(\w{2,}):\/\//i,R4e=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"];function tpr(o){let s=epr.exec(o);if(s)return s[1].toLowerCase()}t(tpr,"getProtocol");function Uft(o,s){o=decodeURI(o);for(let d=0;d<R4e.length;d+=2)o=o.replace(R4e[d],R4e[d+1]);let f=o.substr(0,7).toLowerCase()==="file://";if(f&&(o=o[7]==="/"?o.substr(8):o.substr(7),$M&&o[1]==="/"&&(o=`${o[0]}:${o.substr(1)}`),s?o=`file:///${o}`:(f=!1,o=$M?o:`/${o}`)),!f){let d=o.split($M?"\\":"/"),y=[];for(let x of d)x===".."?y.length&&y[y.length-1]!==""&&y.pop():(x!==""||y.length===0)&&y.push(x);o=y.join($M?"\\":"/"),!$M&&y[0]===""&&(o=`/${o.substring(1)}`)}return $M&&!f&&(o=o.replace(Q_r,"\\"),o.substr(1,2)===":\\"&&(o=o[0].toUpperCase()+o.substr(1))),o}t(Uft,"toFileSystemPath");var zft="YOUR_KEY_HERE";async function $ft(o){let f=await new vI(o.sourceDirectory,o.logger).bundle(o.openApiDocPath),d=o.openApiDocPath.replace(o.sourceDirectory,"");return rpr({...o,relativeOpenApiPath:d},f)}t($ft,"buildPublicOpenApiFile");async function rpr(o,s){apr({relativeOpenApiPath:o.relativeOpenApiPath},s);let f=s;return f=ipr(f),npr(f,o.urls?.api?.defaultUrl),f=spr(f,o),Jft(f,"x-zuplo"),f}t(rpr,"buildRawOpenApiFile");function npr(o,s){s?o.servers=[{url:s}]:o.servers=[]}t(npr,"addServerHost");function ipr(o){if(!o.paths)return o;let{components:s}=o,f=s?{...s}:void 0,d=[];f&&f.parameters&&(d=Object.entries(f.parameters).reduce((x,[P,F])=>(M9 in F&&uoe(F[M9])&&(x.push(P),f.parameters&&delete f.parameters[P]),x),[]));let y=Object.entries(o.paths).reduce((x,[P,F])=>{if(!F)return x;let J={...F},G=["delete","get","head","patch","post","put","trace","options"];return G.forEach(Se=>{let de=F[Se];if(!de)return;if(uoe(de[M9])){delete J[Se];return}let{parameters:ae}=de;if(!ae)return;let Ke=ae.filter($e=>{if(M9 in $e&&uoe($e[M9]))return!1;if("$ref"in $e){let Fe=$e.$ref.split("/").pop();return Fe?!d.includes(Fe):!0}return!0});J[Se]={...de,parameters:Ke}}),G.some(Se=>!!J[Se])&&(x[P]=J),x},{});return{...o,paths:y,components:f}}t(ipr,"removeHiddenRoutesAndParams");function spr(o,{policiesConfig:s}){if(!o.paths)return o;let f=Object.entries(o.paths).reduce((d,[y,x])=>{if(!x)return d;let P={...x};return[P.delete,P.get,P.head,P.patch,P.post,P.put,P.trace,P.options].forEach(F=>{if(!F)return;let J=F["x-zuplo-route"]?.policies?.inbound?.reduce((de,ae)=>{let Ke=s.policies?.find(({name:Gt})=>Gt===ae);if(!Ke)return de;if(!(Ke.handler.export==="CompositeInboundPolicy"))return de.concat(ae);let Fe=Ke.handler.options?.policies;return Fe?de.concat(Fe):de},[]),G=[];if(J&&J.forEach(de=>{s.policies?.forEach(ae=>{ae.name===de&&(ae.handler.export==="ApiAuthKeyInboundPolicy"||ae.handler.export==="ApiKeyInboundPolicy")&&!ae.handler.options?.disableAutomaticallyAddingKeyHeaderToOpenApi&&G.push(ae)})}),G.length>0){let de=G.length>0&&G[0].handler&&G[0].handler.options&&G[0].handler.options.authHeader?G[0].handler.options.authHeader:"Authorization",ae=G.length>0&&G[0].handler&&G[0].handler.options&&(G[0].handler.options.authScheme||G[0].handler.options.authScheme==="")?G[0].handler.options.authScheme:"Bearer",Ke=ae!==""?`${ae} ${zft}`:zft,$e={name:de,in:"header",required:!0,example:Ke,schema:{type:"string"},description:`The \`${de}\` header is used to authenticate with the API using your API key. Value is of the format \`${Ke}\`.`};F.parameters?F.parameters.some(Pr=>"name"in Pr&&Pr.name===$e.name)||F.parameters.unshift($e):F.parameters=[$e];let Fe={type:"http",scheme:ae.toLowerCase()},Gt="api_key";o.components?.securitySchemes?Object.values(o.components?.securitySchemes).some(Pr=>"name"in Pr&&Pr.type==="apiKey"||"type"in Pr&&Pr.type==="http"&&Pr.scheme===ae)||(o.components.securitySchemes={...o.components.securitySchemes,[Gt]:Fe}):(o.components||(o.components={}),o.components.securitySchemes={[Gt]:Fe});let jt={[Gt]:[]};F.security?F.security.some(Pr=>Pr[Gt]!==void 0)||F.security.unshift(jt):F.security=[jt]}let Se=[];if(J&&J.forEach(de=>{s.policies?.forEach(ae=>{ae.name===de&&(ae.handler.export==="RateLimitInboundPolicy"||ae.handler.export==="ComplexRateLimitInboundPolicy")&&Se.push(ae)})}),Se.length>0){let de={description:"Rate Limiting Response",content:{"application/json":{schema:{type:"object",required:["type","title","status"],examples:[{type:"https://httpproblems.com/http-status/429",title:"Too Many Requests",status:429,instance:"/foo/bar"}],properties:{type:{type:"string",example:"https://httpproblems.com/http-status/429",description:"A URI reference that identifies the problem."},title:{type:"string",example:"Too Many Requests",description:"A short, human-readable summary of the problem."},status:{type:"number",example:429,description:"The HTTP status code."},instance:{type:"string",example:"/foo/bar"}}}}}},ae={...de,headers:{"retry-after":{description:"The number of seconds to wait before making a new request.",schema:{type:"integer",example:60}}}};o.components?.responses||o.components||(o.components={}),o.components.responses={...o.components.responses,RateLimitNoRetryAfter:de,RateLimitWithRetryAfter:ae},F.responses||(F.responses={});let Ke=Se.some($e=>$e.handler.options?.headerMode!=="none");F.responses[429]||(F.responses[429]={$ref:Ke?"#/components/responses/RateLimitWithRetryAfter":"#/components/responses/RateLimitNoRetryAfter"})}}),d[y]=P,d},{});return{...o,paths:f}}t(spr,"enrichSpecWithZuploData");function Jft(o,s){for(let f in o)f.startsWith(s)?delete o[f]:typeof o[f]=="object"&&Jft(o[f],s)}t(Jft,"removePropertiesByPrefix");function apr({relativeOpenApiPath:o},s){if(!s||typeof s!="object")throw new w1({message:"The OpenAPI Document could not be parsed.",severity:"error"});if(!("info"in s)||typeof s.info!="object"||!s.info)throw new w1({message:"The OpenAPI document does not have the required 'info' property.",location:{file:o,column:0,length:0,line:0,lineText:"",namespace:"",suggestion:"Add the required 'info' property. https://spec.openapis.org/oas/v3.1.0#info-object"},severity:"error"});if(!("title"in s.info)||typeof s.info.title!="string")throw new w1({message:"The OpenAPI document does not have the required 'info.title' property.",location:{file:o,column:0,length:0,line:0,lineText:"",namespace:"",suggestion:"Add the required 'info.title' property. https://spec.openapis.org/oas/v3.1.0#info-object"},severity:"error"})}t(apr,"assertIsZuploOpenApiSpec");import ppr from"node:fs/promises";import dpr from"node:path";var{stringify:opr}=JSON;if(!String.prototype.repeat)throw new Error("String.prototype.repeat is undefined, see https://github.com/davidbonnet/astring#installation");if(!String.prototype.endsWith)throw new Error("String.prototype.endsWith is undefined, see https://github.com/davidbonnet/astring#installation");var Gle={"||":2,"??":3,"&&":4,"|":5,"^":6,"&":7,"==":8,"!=":8,"===":8,"!==":8,"<":9,">":9,"<=":9,">=":9,in:9,instanceof:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"%":12,"/":12,"**":13},LE=17,cpr={ArrayExpression:20,TaggedTemplateExpression:20,ThisExpression:20,Identifier:20,PrivateIdentifier:20,Literal:18,TemplateLiteral:20,Super:20,SequenceExpression:20,MemberExpression:19,ChainExpression:19,CallExpression:19,NewExpression:19,ArrowFunctionExpression:LE,ClassExpression:LE,FunctionExpression:LE,ObjectExpression:LE,UpdateExpression:16,UnaryExpression:15,AwaitExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,AssignmentExpression:3,YieldExpression:2,RestElement:1};function JM(o,s){let{generator:f}=o;if(o.write("("),s!=null&&s.length>0){f[s[0].type](s[0],o);let{length:d}=s;for(let y=1;y<d;y++){let x=s[y];o.write(", "),f[x.type](x,o)}}o.write(")")}t(JM,"formatSequence");function Kft(o,s,f,d){let y=o.expressionsPrecedence[s.type];if(y===LE)return!0;let x=o.expressionsPrecedence[f.type];return y!==x?!d&&y===15&&x===14&&f.operator==="**"||y<x:y!==13&&y!==14?!1:s.operator==="**"&&f.operator==="**"?!d:y===13&&x===13&&(s.operator==="??"||f.operator==="??")?!0:d?Gle[s.operator]<=Gle[f.operator]:Gle[s.operator]<Gle[f.operator]}t(Kft,"expressionNeedsParenthesis");function Yle(o,s,f,d){let{generator:y}=o;Kft(o,s,f,d)?(o.write("("),y[s.type](s,o),o.write(")")):y[s.type](s,o)}t(Yle,"formatExpression");function lpr(o,s,f,d){let y=s.split(`
|
|
600
600
|
`),x=y.length-1;if(o.write(y[0].trim()),x>0){o.write(d);for(let P=1;P<x;P++)o.write(f+y[P].trim()+d);o.write(f+y[x].trim())}}t(lpr,"reindent");function M1(o,s,f,d){let{length:y}=s;for(let x=0;x<y;x++){let P=s[x];o.write(f),P.type[0]==="L"?o.write("// "+P.value.trim()+`
|
|
601
601
|
`,P):(o.write("/*"),lpr(o,P.value,f,d),o.write("*/"+d))}}t(M1,"formatComments");function upr(o){let s=o;for(;s!=null;){let{type:f}=s;if(f[0]==="C"&&f[1]==="a")return!0;if(f[0]==="M"&&f[1]==="e"&&f[2]==="m")s=s.object;else return!1}}t(upr,"hasCallExpression");function M4e(o,s){let{generator:f}=o,{declarations:d}=s;o.write(s.kind+" ");let{length:y}=d;if(y>0){f.VariableDeclarator(d[0],o);for(let x=1;x<y;x++)o.write(", "),f.VariableDeclarator(d[x],o)}}t(M4e,"formatVariableDeclaration");var Wft,qft,Vft,Hft,Gft,Yft,fpr={Program(o,s){let f=s.indent.repeat(s.indentLevel),{lineEnd:d,writeComments:y}=s;y&&o.comments!=null&&M1(s,o.comments,f,d);let x=o.body,{length:P}=x;for(let F=0;F<P;F++){let J=x[F];y&&J.comments!=null&&M1(s,J.comments,f,d),s.write(f),this[J.type](J,s),s.write(d)}y&&o.trailingComments!=null&&M1(s,o.trailingComments,f,d)},BlockStatement:Yft=t(function(o,s){let f=s.indent.repeat(s.indentLevel++),{lineEnd:d,writeComments:y}=s,x=f+s.indent;s.write("{");let P=o.body;if(P!=null&&P.length>0){s.write(d),y&&o.comments!=null&&M1(s,o.comments,x,d);let{length:F}=P;for(let J=0;J<F;J++){let G=P[J];y&&G.comments!=null&&M1(s,G.comments,x,d),s.write(x),this[G.type](G,s),s.write(d)}s.write(f)}else y&&o.comments!=null&&(s.write(d),M1(s,o.comments,x,d),s.write(f));y&&o.trailingComments!=null&&M1(s,o.trailingComments,x,d),s.write("}"),s.indentLevel--},"BlockStatement"),ClassBody:Yft,StaticBlock(o,s){s.write("static "),this.BlockStatement(o,s)},EmptyStatement(o,s){s.write(";")},ExpressionStatement(o,s){let f=s.expressionsPrecedence[o.expression.type];f===LE||f===3&&o.expression.left.type[0]==="O"?(s.write("("),this[o.expression.type](o.expression,s),s.write(")")):this[o.expression.type](o.expression,s),s.write(";")},IfStatement(o,s){s.write("if ("),this[o.test.type](o.test,s),s.write(") "),this[o.consequent.type](o.consequent,s),o.alternate!=null&&(s.write(" else "),this[o.alternate.type](o.alternate,s))},LabeledStatement(o,s){this[o.label.type](o.label,s),s.write(": "),this[o.body.type](o.body,s)},BreakStatement(o,s){s.write("break"),o.label!=null&&(s.write(" "),this[o.label.type](o.label,s)),s.write(";")},ContinueStatement(o,s){s.write("continue"),o.label!=null&&(s.write(" "),this[o.label.type](o.label,s)),s.write(";")},WithStatement(o,s){s.write("with ("),this[o.object.type](o.object,s),s.write(") "),this[o.body.type](o.body,s)},SwitchStatement(o,s){let f=s.indent.repeat(s.indentLevel++),{lineEnd:d,writeComments:y}=s;s.indentLevel++;let x=f+s.indent,P=x+s.indent;s.write("switch ("),this[o.discriminant.type](o.discriminant,s),s.write(") {"+d);let{cases:F}=o,{length:J}=F;for(let G=0;G<J;G++){let Se=F[G];y&&Se.comments!=null&&M1(s,Se.comments,x,d),Se.test?(s.write(x+"case "),this[Se.test.type](Se.test,s),s.write(":"+d)):s.write(x+"default:"+d);let{consequent:de}=Se,{length:ae}=de;for(let Ke=0;Ke<ae;Ke++){let $e=de[Ke];y&&$e.comments!=null&&M1(s,$e.comments,P,d),s.write(P),this[$e.type]($e,s),s.write(d)}}s.indentLevel-=2,s.write(f+"}")},ReturnStatement(o,s){s.write("return"),o.argument&&(s.write(" "),this[o.argument.type](o.argument,s)),s.write(";")},ThrowStatement(o,s){s.write("throw "),this[o.argument.type](o.argument,s),s.write(";")},TryStatement(o,s){if(s.write("try "),this[o.block.type](o.block,s),o.handler){let{handler:f}=o;f.param==null?s.write(" catch "):(s.write(" catch ("),this[f.param.type](f.param,s),s.write(") ")),this[f.body.type](f.body,s)}o.finalizer&&(s.write(" finally "),this[o.finalizer.type](o.finalizer,s))},WhileStatement(o,s){s.write("while ("),this[o.test.type](o.test,s),s.write(") "),this[o.body.type](o.body,s)},DoWhileStatement(o,s){s.write("do "),this[o.body.type](o.body,s),s.write(" while ("),this[o.test.type](o.test,s),s.write(");")},ForStatement(o,s){if(s.write("for ("),o.init!=null){let{init:f}=o;f.type[0]==="V"?M4e(s,f):this[f.type](f,s)}s.write("; "),o.test&&this[o.test.type](o.test,s),s.write("; "),o.update&&this[o.update.type](o.update,s),s.write(") "),this[o.body.type](o.body,s)},ForInStatement:Wft=t(function(o,s){s.write(`for ${o.await?"await ":""}(`);let{left:f}=o;f.type[0]==="V"?M4e(s,f):this[f.type](f,s),s.write(o.type[3]==="I"?" in ":" of "),this[o.right.type](o.right,s),s.write(") "),this[o.body.type](o.body,s)},"ForInStatement"),ForOfStatement:Wft,DebuggerStatement(o,s){s.write("debugger;",o)},FunctionDeclaration:qft=t(function(o,s){s.write((o.async?"async ":"")+(o.generator?"function* ":"function ")+(o.id?o.id.name:""),o),JM(s,o.params),s.write(" "),this[o.body.type](o.body,s)},"FunctionDeclaration"),FunctionExpression:qft,VariableDeclaration(o,s){M4e(s,o),s.write(";")},VariableDeclarator(o,s){this[o.id.type](o.id,s),o.init!=null&&(s.write(" = "),this[o.init.type](o.init,s))},ClassDeclaration(o,s){if(s.write("class "+(o.id?`${o.id.name} `:""),o),o.superClass){s.write("extends ");let{superClass:f}=o,{type:d}=f,y=s.expressionsPrecedence[d];(d[0]!=="C"||d[1]!=="l"||d[5]!=="E")&&(y===LE||y<s.expressionsPrecedence.ClassExpression)?(s.write("("),this[o.superClass.type](f,s),s.write(")")):this[f.type](f,s),s.write(" ")}this.ClassBody(o.body,s)},ImportDeclaration(o,s){s.write("import ");let{specifiers:f,attributes:d}=o,{length:y}=f,x=0;if(y>0){for(;x<y;){x>0&&s.write(", ");let P=f[x],F=P.type[6];if(F==="D")s.write(P.local.name,P),x++;else if(F==="N")s.write("* as "+P.local.name,P),x++;else break}if(x<y){for(s.write("{");;){let P=f[x],{name:F}=P.imported;if(s.write(F,P),F!==P.local.name&&s.write(" as "+P.local.name),++x<y)s.write(", ");else break}s.write("}")}s.write(" from ")}if(this.Literal(o.source,s),d&&d.length>0){s.write(" with { ");for(let P=0;P<d.length;P++)this.ImportAttribute(d[P],s),P<d.length-1&&s.write(", ");s.write(" }")}s.write(";")},ImportAttribute(o,s){this.Identifier(o.key,s),s.write(": "),this.Literal(o.value,s)},ImportExpression(o,s){s.write("import("),this[o.source.type](o.source,s),s.write(")")},ExportDefaultDeclaration(o,s){s.write("export default "),this[o.declaration.type](o.declaration,s),s.expressionsPrecedence[o.declaration.type]!=null&&o.declaration.type[0]!=="F"&&s.write(";")},ExportNamedDeclaration(o,s){if(s.write("export "),o.declaration)this[o.declaration.type](o.declaration,s);else{s.write("{");let{specifiers:f}=o,{length:d}=f;if(d>0)for(let y=0;;){let x=f[y],{name:P}=x.local;if(s.write(P,x),P!==x.exported.name&&s.write(" as "+x.exported.name),++y<d)s.write(", ");else break}if(s.write("}"),o.source&&(s.write(" from "),this.Literal(o.source,s)),o.attributes&&o.attributes.length>0){s.write(" with { ");for(let y=0;y<o.attributes.length;y++)this.ImportAttribute(o.attributes[y],s),y<o.attributes.length-1&&s.write(", ");s.write(" }")}s.write(";")}},ExportAllDeclaration(o,s){if(o.exported!=null?s.write("export * as "+o.exported.name+" from "):s.write("export * from "),this.Literal(o.source,s),o.attributes&&o.attributes.length>0){s.write(" with { ");for(let f=0;f<o.attributes.length;f++)this.ImportAttribute(o.attributes[f],s),f<o.attributes.length-1&&s.write(", ");s.write(" }")}s.write(";")},MethodDefinition(o,s){o.static&&s.write("static ");let f=o.kind[0];(f==="g"||f==="s")&&s.write(o.kind+" "),o.value.async&&s.write("async "),o.value.generator&&s.write("*"),o.computed?(s.write("["),this[o.key.type](o.key,s),s.write("]")):this[o.key.type](o.key,s),JM(s,o.value.params),s.write(" "),this[o.value.body.type](o.value.body,s)},ClassExpression(o,s){this.ClassDeclaration(o,s)},ArrowFunctionExpression(o,s){s.write(o.async?"async ":"",o);let{params:f}=o;f!=null&&(f.length===1&&f[0].type[0]==="I"?s.write(f[0].name,f[0]):JM(s,o.params)),s.write(" => "),o.body.type[0]==="O"?(s.write("("),this.ObjectExpression(o.body,s),s.write(")")):this[o.body.type](o.body,s)},ThisExpression(o,s){s.write("this",o)},Super(o,s){s.write("super",o)},RestElement:Vft=t(function(o,s){s.write("..."),this[o.argument.type](o.argument,s)},"RestElement"),SpreadElement:Vft,YieldExpression(o,s){s.write(o.delegate?"yield*":"yield"),o.argument&&(s.write(" "),this[o.argument.type](o.argument,s))},AwaitExpression(o,s){s.write("await ",o),Yle(s,o.argument,o)},TemplateLiteral(o,s){let{quasis:f,expressions:d}=o;s.write("`");let{length:y}=d;for(let P=0;P<y;P++){let F=d[P],J=f[P];s.write(J.value.raw,J),s.write("${"),this[F.type](F,s),s.write("}")}let x=f[f.length-1];s.write(x.value.raw,x),s.write("`")},TemplateElement(o,s){s.write(o.value.raw,o)},TaggedTemplateExpression(o,s){Yle(s,o.tag,o),this[o.quasi.type](o.quasi,s)},ArrayExpression:Gft=t(function(o,s){if(s.write("["),o.elements.length>0){let{elements:f}=o,{length:d}=f;for(let y=0;;){let x=f[y];if(x!=null&&this[x.type](x,s),++y<d)s.write(", ");else{x==null&&s.write(", ");break}}}s.write("]")},"ArrayExpression"),ArrayPattern:Gft,ObjectExpression(o,s){let f=s.indent.repeat(s.indentLevel++),{lineEnd:d,writeComments:y}=s,x=f+s.indent;if(s.write("{"),o.properties.length>0){s.write(d),y&&o.comments!=null&&M1(s,o.comments,x,d);let P=","+d,{properties:F}=o,{length:J}=F;for(let G=0;;){let Se=F[G];if(y&&Se.comments!=null&&M1(s,Se.comments,x,d),s.write(x),this[Se.type](Se,s),++G<J)s.write(P);else break}s.write(d),y&&o.trailingComments!=null&&M1(s,o.trailingComments,x,d),s.write(f+"}")}else y?o.comments!=null?(s.write(d),M1(s,o.comments,x,d),o.trailingComments!=null&&M1(s,o.trailingComments,x,d),s.write(f+"}")):o.trailingComments!=null?(s.write(d),M1(s,o.trailingComments,x,d),s.write(f+"}")):s.write("}"):s.write("}");s.indentLevel--},Property(o,s){o.method||o.kind[0]!=="i"?this.MethodDefinition(o,s):(o.shorthand||(o.computed?(s.write("["),this[o.key.type](o.key,s),s.write("]")):this[o.key.type](o.key,s),s.write(": ")),this[o.value.type](o.value,s))},PropertyDefinition(o,s){if(o.static&&s.write("static "),o.computed&&s.write("["),this[o.key.type](o.key,s),o.computed&&s.write("]"),o.value==null){o.key.type[0]!=="F"&&s.write(";");return}s.write(" = "),this[o.value.type](o.value,s),s.write(";")},ObjectPattern(o,s){if(s.write("{"),o.properties.length>0){let{properties:f}=o,{length:d}=f;for(let y=0;this[f[y].type](f[y],s),++y<d;)s.write(", ")}s.write("}")},SequenceExpression(o,s){JM(s,o.expressions)},UnaryExpression(o,s){if(o.prefix){let{operator:f,argument:d,argument:{type:y}}=o;s.write(f);let x=Kft(s,d,o);!x&&(f.length>1||y[0]==="U"&&(y[1]==="n"||y[1]==="p")&&d.prefix&&d.operator[0]===f&&(f==="+"||f==="-"))&&s.write(" "),x?(s.write(f.length>1?" (":"("),this[y](d,s),s.write(")")):this[y](d,s)}else this[o.argument.type](o.argument,s),s.write(o.operator)},UpdateExpression(o,s){o.prefix?(s.write(o.operator),this[o.argument.type](o.argument,s)):(this[o.argument.type](o.argument,s),s.write(o.operator))},AssignmentExpression(o,s){this[o.left.type](o.left,s),s.write(" "+o.operator+" "),this[o.right.type](o.right,s)},AssignmentPattern(o,s){this[o.left.type](o.left,s),s.write(" = "),this[o.right.type](o.right,s)},BinaryExpression:Hft=t(function(o,s){let f=o.operator==="in";f&&s.write("("),Yle(s,o.left,o,!1),s.write(" "+o.operator+" "),Yle(s,o.right,o,!0),f&&s.write(")")},"BinaryExpression"),LogicalExpression:Hft,ConditionalExpression(o,s){let{test:f}=o,d=s.expressionsPrecedence[f.type];d===LE||d<=s.expressionsPrecedence.ConditionalExpression?(s.write("("),this[f.type](f,s),s.write(")")):this[f.type](f,s),s.write(" ? "),this[o.consequent.type](o.consequent,s),s.write(" : "),this[o.alternate.type](o.alternate,s)},NewExpression(o,s){s.write("new ");let f=s.expressionsPrecedence[o.callee.type];f===LE||f<s.expressionsPrecedence.CallExpression||upr(o.callee)?(s.write("("),this[o.callee.type](o.callee,s),s.write(")")):this[o.callee.type](o.callee,s),JM(s,o.arguments)},CallExpression(o,s){let f=s.expressionsPrecedence[o.callee.type];f===LE||f<s.expressionsPrecedence.CallExpression?(s.write("("),this[o.callee.type](o.callee,s),s.write(")")):this[o.callee.type](o.callee,s),o.optional&&s.write("?."),JM(s,o.arguments)},ChainExpression(o,s){this[o.expression.type](o.expression,s)},MemberExpression(o,s){let f=s.expressionsPrecedence[o.object.type];f===LE||f<s.expressionsPrecedence.MemberExpression?(s.write("("),this[o.object.type](o.object,s),s.write(")")):this[o.object.type](o.object,s),o.computed?(o.optional&&s.write("?."),s.write("["),this[o.property.type](o.property,s),s.write("]")):(o.optional?s.write("?."):s.write("."),this[o.property.type](o.property,s))},MetaProperty(o,s){s.write(o.meta.name+"."+o.property.name,o)},Identifier(o,s){s.write(o.name,o)},PrivateIdentifier(o,s){s.write(`#${o.name}`,o)},Literal(o,s){o.raw!=null?s.write(o.raw,o):o.regex!=null?this.RegExpLiteral(o,s):o.bigint!=null?s.write(o.bigint+"n",o):s.write(opr(o.value),o)},RegExpLiteral(o,s){let{regex:f}=o;s.write(`/${f.pattern}/${f.flags}`,o)}},_pr={};var j4e=class{static{t(this,"State")}constructor(s){let f=s??_pr;this.output="",f.output!=null?(this.output=f.output,this.write=this.writeToStream):this.output="",this.generator=f.generator!=null?f.generator:fpr,this.expressionsPrecedence=f.expressionsPrecedence!=null?f.expressionsPrecedence:cpr,this.indent=f.indent!=null?f.indent:" ",this.lineEnd=f.lineEnd!=null?f.lineEnd:`
|
|
602
602
|
`,this.indentLevel=f.startingIndentLevel!=null?f.startingIndentLevel:0,this.writeComments=f.comments?f.comments:!1,f.sourceMap!=null&&(this.write=f.output==null?this.writeAndMap:this.writeToStreamAndMap,this.sourceMap=f.sourceMap,this.line=1,this.column=0,this.lineEndSize=this.lineEnd.split(`
|
|
603
603
|
`).length-1,this.mapping={original:null,generated:this,name:void 0,source:f.sourceMap.file||f.sourceMap._file})}write(s){this.output+=s}writeToStream(s){this.output.write(s)}writeAndMap(s,f){this.output+=s,this.map(s,f)}writeToStreamAndMap(s,f){this.output.write(s),this.map(s,f)}map(s,f){if(f!=null){let{type:x}=f;if(x[0]==="L"&&x[2]==="n"){this.column=0,this.line++;return}if(f.loc!=null){let{mapping:P}=this;P.original=f.loc.start,P.name=f.name,this.sourceMap.addMapping(P)}if(x[0]==="T"&&x[8]==="E"||x[0]==="L"&&x[1]==="i"&&typeof f.value=="string"){let{length:P}=s,{column:F,line:J}=this;for(let G=0;G<P;G++)s[G]===`
|
|
604
|
-
`?(F=0,J++):F++;this.column=F,this.line=J;return}}let{length:d}=s,{lineEnd:y}=this;d>0&&(this.lineEndSize>0&&(y.length===1?s[d-1]===y:s.endsWith(y))?(this.line+=this.lineEndSize,this.column=0):this.column+=d)}toString(){return this.output}};function Xft(o,s){let f=new j4e(s);return f.generator[o.type](o,f),f.output}t(Xft,"generate");async function B4e({oasFiles:o,sourceDirectory:s,logger:f}){let d=await mpr({oasFiles:o,sourceDirectory:s,logger:f});return Xft(d)}t(B4e,"generateRawRouteSource");async function mpr({oasFiles:o,sourceDirectory:s,logger:f}){let d=new
|
|
605
|
-
export default environment;`;function o_t(o){return{name:"environment",setup(s){s.onResolve({filter:/@app\/environment$/},()=>({namespace:a_t,pluginName:s_t,path:i_t.join(o.sourceDirectory,Ng,"environment.js")})),s.onLoad({filter:/.*/,namespace:a_t},async f=>({contents:vpr,loader:"ts",resolveDir:i_t.dirname(f.path),pluginName:s_t}))}}}t(o_t,"environmentPlugin");import zpr from"node:fs/promises";import bT from"node:path";var x_t=Sd(Lle(),1),E_t=Sd(b_t(),1),C_t=Sd(Mle(),1),k_t=Sd(K4e(),1);import{performance as jE}from"node:perf_hooks";var iG=[];async function jpr(o,s){let f=jE.now();try{return await s()}finally{let d=jE.now()-f;iG.push({name:o,duration:d})}}t(jpr,"timeFn");var Bpr={mark:t(o=>{jE.mark(o)},"mark"),measure:t((o,s,f)=>{try{jE.measure(o,s,f)}finally{jE.clearMarks(s),jE.clearMarks(f),jE.clearMeasures(o)}},"measure"),timeFn:jpr,report:t(()=>{if(iG.length>0){let o=iG.reduce((s,{name:f,duration:d})=>(s[f]=`${d.toFixed(0)}ms`,s),{});console.table(o),iG.length=0}},"report"),getDuration:t(o=>{let s=jE.getEntriesByName(o);if(s.length===0)return 0;let f=s[0].duration;return jE.clearMeasures(o),f},"getDuration"),clear:t(()=>{iG.length=0,jE.clearMarks(),jE.clearMeasures()},"clear")},Ou=Bpr;import{writeFile as Upr}from"node:fs/promises";async function qk(o,s){await tu.mkdirForFilePathIfNotExits(o);let f=await import("prettier"),d=s;try{d=await f.format(s,{parser:"babel"})}catch{}await Upr(o,d,"utf-8")}t(qk,"writeDebugSourceFile");var Vk="schemas",Zle="json-schema";function w_t(o){return{name:Vk,async setup(s){let f=new C_t.Ajv2020({code:{source:!0},allErrors:!0,strict:!1,verbose:!0,meta:!0}),d=bT.join(o.sourceDirectory,mV),y=[],x=[],P;await Ou.timeFn("Initializing schema validation",async()=>{if((0,E_t.default)(f,{mode:"fast"}),f.opts.code.formats=x_t._`require("ajv-formats/dist/formats").fastFormats`,await tu.dirExists(d)&&(f.addKeyword("faker"),P=(await tu.listFolderContents(d,mV)).sort(),await Promise.all(P.map(async F=>{try{let J=tu.safePath(o.sourceDirectory).resolve(d,F);if(!J.startsWith(d))throw new Error("All schemas must be in the schemas directory");let G=await zpr.readFile(J,"utf-8");if(G===""||G===void 0)throw new Error(`Schema 'schemas/${F}' is empty and will be ignored.`);let Se=JSON.parse(G);if(Se.$schema&&Se.$schema!=="https://json-schema.org/draft/2020-12/schema")throw new Error(`Error in ${F}: All JSON schemas must use version 2020-12. See release notes for changes: https://json-schema.org/draft/2020-12/release-notes.html`);if(f.addSchema(Se,F),f.errors?.length){let de=f.errors[0];y.push({id:"json-schema-validation-error",pluginName:Vk,text:`Error: ${de.message}`,location:{file:bT.join(mV,F)},detail:{params:de.params,propertyName:de.propertyName,schemaPath:de.schemaPath,data:de.data}})}}catch(J){if(J.message.endsWith("is empty and will be ignored.")){x.push({id:"empty-json-schema-file",pluginName:Vk,text:`Schema 'schemas/${F}' is empty and will be ignored.`,location:{file:`schemas/${F}`,suggestion:"Add schema details or remove the file from the project."},detail:"EmptyJSONSchemaFile",notes:[{text:`Schema 'schemas/${F}' is empty and will be ignored.`,location:{file:`schemas/${F}`,suggestion:"Add schema details or remove the file from the project."}}]});return}let G=await U4e(F,o.sourceDirectory,J.message);y.push({id:"json-schema-add-error",pluginName:Vk,text:`Error: ${J.message}`,location:G,detail:"InvalidAddSchemaError",notes:[{text:J.message}]})}})),await Promise.all(P.map(async F=>{try{let J=f.getSchema(F);J&&f.compile(J.schema).errors?.forEach(Se=>{y.push({text:`Failed to compile ${F}: ${Se.message}`})})}catch(J){let G=await U4e(F,o.sourceDirectory,J.message);y.push({id:"json-schema-compile-error",pluginName:Vk,text:`The schema file '${F}' is not valid. Error: ${J.message}`,location:G,detail:"InvalidSchemaError",notes:[{text:J.message}]})}})),Gm.DEBUG_BUILD_MODE)){let F=bT.resolve(o.outputDirectory,mV);await tu.mkdirIfNotExists(F)}}),s.onStart(async()=>{if(P)return{errors:y,warnings:x}}),s.onResolve({filter:/schemas\/.*\.json$/},async F=>Ou.timeFn("Generating JSON schemas...",async()=>{let J=bT.isAbsolute(F.path)?F.path:bT.join(F.resolveDir,F.path);if(F.importer&&F.namespace!=="open-api-routes-json")return{path:J};if(!await tu.fileExists(J)){let G="policies.json";return{errors:[{id:"json-schema-build-error",text:`Unable to resolve reference to '${F.path}' from ${G}`,location:{file:bT.join(F.resolveDir,G),namespace:Zle,line:1,column:0,length:0,lineText:`Invalid JSON schema reference in ${G}`,suggestion:""},detail:"RouteReferenceError",pluginName:Vk,notes:[{text:`Unable to resolve reference to '${F.path}' from ${G}`,location:null}]}],namespace:Zle,path:J,pluginName:Vk}}return{path:J,namespace:Zle,pluginName:Vk}})),s.onLoad({filter:/.*/,namespace:Zle},async F=>Ou.timeFn(`Generating json schema data: ${bT.basename(F.path)}`,async()=>{let J=[],G;try{let Se=bT.relative(d,F.path),de=f.getSchema(Se);if(!de)throw new Error(`Could not load schema at ${F.path}`);G=de.source?.validateCode;let ae=f.compile(de.schema);G=(0,k_t.default)(f,ae)}catch(Se){J.push({pluginName:Vk,text:`Cannot parse project's schemas/${bT.basename(F.path)} file. Error: ${Se.message}`,location:null,notes:[{text:Se.message,location:null}],detail:Se})}if(Gm.DEBUG_BUILD_MODE&&G){let Se=bT.relative(d,F.path),de=bT.join(o.sourceDirectory,Ng,`${Se}.js`);await qk(de,G)}return{contents:G,errors:J,pluginName:Vk,resolveDir:bT.dirname(F.path),watchFiles:[F.path]}}))}}}t(w_t,"jsonSchemaPlugin");import{relative as $pr}from"node:path";var D_t=["node:assert","node:async_hooks","node:buffer","node:crypto","node:diagnostics_channel","node:events","node:path","node:process","node:stream","node:string_decoder","node:util"],Jpr="nodejs-compat-plugin";function P_t({sourceDirectory:o}){return{name:Jpr,setup(s){let f=new Set;s.onStart(()=>{f.clear()}),s.onResolve({filter:/node:.*/},async({path:d,kind:y,resolveDir:x,...P})=>{let F=`${d}:${y}:${x}:${P.importer}`;if(f.has(F))return;f.add(F);let J=await s.resolve(d,{kind:y,resolveDir:x,importer:P.importer});return J.errors.length>0?D_t.includes(d)||d.includes("/")&&D_t.includes(d.split("/")[0])?{external:!0}:{external:!0,warnings:J.errors.map(Se=>({...Se,location:{file:$pr(o,P.importer),line:0,column:0,namespace:"",length:0,lineText:"",suggestion:"Remove the imported node module"},detail:`The package "${d}" wasn't found on the file system but is built into node. If this code is executed it will fail.`}))}:J})}}}t(P_t,"nodejsCompatPlugin");import A_t from"node:fs/promises";import BE from"node:path";var SI="open-api-routes-plugin",sG="open-api-routes-json";function N_t(o){return{name:"open-api-routes-plugin",setup(s){s.onResolve({filter:/zuplo:routes$/},f=>({watchFiles:[...X4e(BE.join(o.sourceDirectory,D1),[".oas.json"],!0),BE.join(o.sourceDirectory,D1,doe)],namespace:sG,path:BE.isAbsolute(f.path)?f.path:BE.join(f.resolveDir,f.path),pluginName:SI})),s.onResolve({filter:/^\.\.\/modules\/.*/,namespace:sG},async f=>Ou.timeFn("Generating route data...",async()=>{async function d(){let x=BE.resolve(o.sourceDirectory,"config"),P=await mO(x),F=`$import(.${f.path.replace(/^../,"")})`;return{location:await qnt(P,F,"Update your route configuration to use code from the 'modules' folder"),originalImportValue:F}}t(d,"getLocation");let y=BE.join(f.resolveDir,`${f.path}.ts`);if(f.path.endsWith(".ts")){let{location:x,originalImportValue:P}=await d();return{errors:[{id:"route-build-error",text:`Invalid handler reference '${P}' in ${x?.file??"OpenAPI file"}. Imports must NOT include the '.ts' file extension.`,location:x,detail:"RouteReferenceError",pluginName:SI}],namespace:sG,path:f.path,pluginName:SI}}else if(!await tu.fileExists(y)){let{location:x,originalImportValue:P}=await d();return{errors:[{id:"route-build-error",text:`Invalid handler reference in route. Unable to resolve reference to '${P}' in ${x?.file??"OpenAPI file"}`,location:x,detail:"RouteReferenceError",pluginName:SI}],namespace:sG,path:f.path,pluginName:SI}}})),s.onLoad({filter:/.*/,namespace:sG},async f=>Ou.timeFn("Generating route.json data",async()=>{let d=BE.resolve(o.sourceDirectory,"config"),y=await mO(d),x=await Promise.all(y.map(async G=>({content:await A_t.readFile(G,"utf-8"),fileName:G}))),P=BE.resolve(d,"policies.json");if(!await tu.fileExists(P))return{errors:[{text:"The project must include a policies file ('/config/policies.json')",detail:"OASPoliciesFileMissing",pluginName:SI,location:{line:0,column:0,file:"/config/policies.json"}}],pluginName:SI};let F={content:await A_t.readFile(P,"utf-8"),fileName:P},J;try{J=await R4e({sourceDirectory:o.sourceDirectory,oasContent:x,policiesContent:F,compatibilityDate:o.config.compatibilityDate,allowDuplicateRoutes:o.config.allowDuplicateRoutes})}catch(G){throw new Error(`Error compiling routes: ${G.message}`)}if(Gm.DEBUG_BUILD_MODE&&J.content){let G=BE.join(o.sourceDirectory,Ng),Se=BE.resolve(G,"routes.js");await qk(Se,J.content)}return{contents:J.content,errors:J.errors,pluginName:SI,resolveDir:BE.dirname(f.path),watchFiles:[f.path]}}))}}}t(N_t,"openApiRoutesPlugin");import Qle from"node:path";var aG="raw-route-plugin",I_t="raw-route";function O_t(o){return{name:"raw-route-plugin",setup(s){s.onResolve({filter:/zuplo:raw-routes$/},f=>({namespace:I_t,path:f.path,pluginName:aG})),s.onLoad({filter:/.*/,namespace:I_t},async f=>Ou.timeFn("Building route data",async()=>{let d=Qle.resolve(o.sourceDirectory,D1);if(!await tu.dirExists(d))return{loader:"js",resolveDir:Qle.dirname(f.path),pluginName:aG};let y=await mO(d);try{let x=await B4e({oasFiles:y,sourceDirectory:o.sourceDirectory,logger:o.logger});if(Gm.DEBUG_BUILD_MODE&&x){let P=Qle.join(o.sourceDirectory,Ng,"raw-routes.js");await qk(P,x)}return{contents:x,loader:"js",resolveDir:Qle.dirname(f.path),pluginName:aG}}catch(x){if(x instanceof w1)return{contents:"",loader:"ts",errors:[{id:"route-build-error",text:x.issue.text,location:x.issue.location,detail:x.issue.detail,pluginName:aG}],pluginName:aG};throw x}}))}}}t(O_t,"rawRoutePlugin");import Wpr from"node:fs/promises";import F_t from"node:path";var eue="runtime-extensions-plugin",L_t="runtime-extensions";function R_t(o){return{name:eue,setup(s){s.onResolve({filter:/zuplo:runtime-extension$/},f=>({namespace:L_t,path:f.path,pluginName:eue})),s.onLoad({filter:/.*/,namespace:L_t},async()=>Ou.timeFn("Generating zuplo.runtime.ts data",async()=>{let f="export const runtimeInit = undefined;",d=F_t.resolve(o.sourceDirectory,frt,"zuplo.runtime.ts"),y=[];return await tu.fileExists(d)?(f=await Wpr.readFile(d,"utf-8"),{contents:f,loader:"ts",resolveDir:F_t.dirname(d),errors:y,pluginName:eue,watchFiles:[d]}):{contents:f,loader:"ts",errors:y,pluginName:eue}}))}}}t(R_t,"runtimeExtensionsPlugin");import j_t from"node:path";import{readFile as qpr}from"node:fs/promises";import TI from"node:path";var VM=class extends Error{static{t(this,"DevPortalConfigError")}filename;constructor(s,f){super(s,f),this.name="DevPortalConfigError",this.filename=f?.filename}};async function M_t(o){let s=["zudoku.config.tsx","zudoku.config.ts","zudoku.config.js","zudoku.config.jsx","zudoku.config.mjs"];for(;s.length;){let P=s.pop();if(P){let F=TI.join("docs",P),J=TI.join(o,F);try{if(await tu.fileExists(J))return{enabled:!0,type:"zudoku",basePath:void 0,filepath:F}}catch(G){throw new VM("Failed to read dev portal configuration file.",{cause:G,filename:F})}}}let f=TI.join(D1,prt),d=TI.join(o,f),y=!0,x;if(await tu.fileExists(d)){try{let P=await qpr(d,"utf-8"),F=JSON.parse(P);F.enabled===!1&&(y=!1),x=F.sitePathname}catch(P){throw new VM("Failed to parse dev-portal.json file.",{cause:P,filename:f})}return{enabled:y,type:"legacy",basePath:x,filepath:f}}return{enabled:!1,type:void 0,basePath:void 0,filepath:void 0}}t(M_t,"getDevPortalConfig");function HM(o,s){let f=TI.resolve(o,U9);return Object.keys(s?.outputs??{}).map(x=>{let P=TI.normalize(x);return`./${TI.relative(f,P).split(TI.sep).join("/")}`})}t(HM,"getBuildModules");var B_t="/docs",Vpr="/__zuplo/dev-portal";function Hpr(o){let s=o.trim().toLowerCase();return s.endsWith("/")&&(s=s.slice(0,-1)),s}t(Hpr,"normalizePathname");function Gpr(o,s){let d={developerPortal:{basePath:o?.basePath===Vpr?B_t:o?.basePath?Hpr(o.basePath):B_t,enabled:o?o.enabled??!0:!1,type:o?.type??void 0,urls:o?.urls?{defaultUrl:o.urls.defaultUrl,urls:o.urls.urls.map(x=>new URL(x).origin)}:void 0},api:s};return`const runtimeSettings = ${JSON.stringify(d)};
|
|
606
|
-
export default runtimeSettings;`}t(Gpr,"generateSource");var oG="runtime-settings-plugin",tue="runtime-settings";function U_t(o){return{name:oG,setup(s){s.onResolve({filter:/zuplo:runtime-settings$/},f=>({namespace:tue,path:f.path,pluginName:oG})),s.onLoad({filter:/.*/,namespace:tue},async()=>Ou.timeFn("Generating runtime settings",async()=>{let f=[],d,y;try{let F=await M_t(o.sourceDirectory);y=F.filepath,d={...F,urls:o.urls?.devPortal}}catch(F){let J="Failed to load dev portal config",G="config/dev-portal.json";F instanceof VM&&(J=F.message,G=F.filename??G),f.push({id:"dev-portal-build-error",text:J,location:{file:G,namespace:tue,line:1,column:0,length:0,lineText:"",suggestion:""},detail:"DevPortalValidationError",pluginName:oG,notes:[{text:F.message,location:null}]})}let x={urls:o.urls?.api},P;try{if(P=Gpr(d,x),Gm.DEBUG_BUILD_MODE&&P){let F=j_t.join(o.sourceDirectory,Ng,"dev-portal.js");await qk(F,P)}}catch(F){f.push({id:"dev-portal-build-error",text:F.message,location:{file:"dev-portal.json",namespace:tue,line:1,column:0,length:0,lineText:"issue",suggestion:""},detail:"DevPortalValidationError",pluginName:oG,notes:[{text:F.message,location:null}]})}return{contents:P,errors:f,pluginName:oG,loader:"js",resolveDir:y?j_t.dirname(y):void 0}}))}}}t(U_t,"runtimeSettingsPlugin");import e3e from"node:fs/promises";import UO from"node:path";var $_t=Sd(Mle(),1),J_t=Sd(K4e(),1);var Z4e="schema-validation-plugin",z_t="schema-validation",Ypr="module.exports = {}";function W_t(o){return{name:"schema-validation-plugin",setup(s){s.onResolve({filter:/zuplo:schema-validations$/},f=>({namespace:z_t,path:f.path,pluginName:Z4e})),s.onLoad({filter:/.*/,namespace:z_t},async()=>Ou.timeFn("Validating schemas",async()=>{let f=UO.resolve(o.sourceDirectory,D1,"policies.json");if(!await tu.fileExists(f))return{contents:Ypr,loader:"js",resolveDir:UO.dirname(f),pluginName:Z4e};let d=await Xpr(o.sourceDirectory),y=UO.resolve(o.sourceDirectory,D1),x=await mO(y),P=await tdr(x,d),F=await Kpr({oasFiles:x,routesWithSchemaValidation:P,sourceDirectory:o.sourceDirectory,logger:o.logger});if(Gm.DEBUG_BUILD_MODE&&F){let J=UO.join(o.sourceDirectory,Ng,"schema-validation.js");await qk(J,F)}return{contents:F,loader:"js",resolveDir:UO.dirname(f),pluginName:Z4e}}))}}}t(W_t,"schemaValidationPlugin");async function Kpr({oasFiles:o,routesWithSchemaValidation:s,sourceDirectory:f,logger:d}){let y="",x=new rI(f,d);if(s.length===0)return y;let P=new $_t.Ajv2020({code:{source:!0},allErrors:!0,strict:!1,verbose:!0,meta:!0});for(let F of o){let J=await e3e.readFile(F,"utf-8"),G=UO.basename(F,".oas.json"),Se=s.filter(Fe=>Fe.fileName===G),de=await x.resolve(F),ae=JSON.parse(J),Ke=[],$e=new Map;Se.forEach(Fe=>{let Gt=ae.paths[Fe.path][Fe.method];if(Gt.requestBody){let jt;if(Gt.requestBody.$ref){let Pr=Gt.requestBody.$ref;jt=de.get(Pr)?.content}else Gt.requestBody.content&&(jt=Gt.requestBody.content);if(jt)for(let Pr in jt){let Fn=jt[Pr].schema,sn=O6e(Fe.path,Fe.method,Pr);Fn.$id=sn,P.addSchema(Fn),Q4e(Fn,F,G,P,de,Ke,$e)}}if(Gt.parameters)for(let jt of Gt.parameters){let Pr=jt.$ref?de.get(jt.$ref):jt,Fn=Pr.schema.$ref?de.get(Pr.schema.$ref):Pr.schema,sn=I6e(Fe.path,Fe.method,Pr.in,Pr.name);Fn.$id=sn,P.addSchema(Fn),Q4e(Pr,F,G,P,de,Ke,$e)}});for(let Fe of Ke){let Gt=de.get(Fe),jt=aH(G,Fe);P.addSchema(Gt,jt)}}return y=(0,J_t.default)(P),y}t(Kpr,"schemaValidationSource");function Q4e(o,s,f,d,y,x,P){for(let F in o){let J=o[F];if(F==="$ref"){let G=aH(f,GN(s,J));o[F]=G,BV(s,f,GN(s,J),y,x,P,(Se,de,ae)=>aH(Se,GN(ae,de)))}else typeof J=="object"&&Q4e(J,s,f,d,y,x,P)}}t(Q4e,"addRefsToSchema");async function Xpr(o){let s=new Set(["RequestValidationInboundPolicy"]),f=await e3e.readFile(`${o}/config/policies.json`,"utf-8"),d=JSON.parse(f);return Zpr(d,s)}t(Xpr,"getPolicyNamesUsingSchemaValidationPolicies");function Zpr(o,s){let f=new Set;o.policies?.forEach(y=>{y.handler?.export&&s.has(y.handler.export)&&y.handler.module==="$import(@zuplo/runtime)"&&f.add(y.name)});let d=Qpr(o,f);return new Set([...f,...d])}t(Zpr,"getPolicyNamesReferencingPolicyHandlers");function Qpr(o,s){let f=new Set;return o.policies?.forEach(d=>{d.handler?.export==="CompositeInboundPolicy"&&d.handler?.options?.policies?.forEach(y=>{s.has(y)&&f.add(d.name)})}),f}t(Qpr,"getCompositePoliciesContainingPolicy");function edr(o,s){if(!o["x-zuplo-route"]||!o["x-zuplo-route"].policies)return!1;let f=o["x-zuplo-route"].policies.inbound;if(f){for(let y of f)if(s.has(y))return!0}let d=o["x-zuplo-route"].policies.outbound;if(d){for(let y of d)if(s.has(y))return!0}return!1}t(edr,"isPolicyPresentInOperation");async function tdr(o,s){let f=[];for(let d of o){let y=await e3e.readFile(d,"utf-8"),P=JSON.parse(y).paths;for(let F in P){let J=P[F];for(let G in J){let Se=J[G];edr(Se,s)&&f.push({fileName:UO.basename(d,".oas.json"),path:F,method:G})}}}return f}t(tdr,"getRoutesContainingPolicies");import{mkdirSync as rdr,writeFileSync as ndr}from"node:fs";import idr from"node:path";function q_t(o){return{name:"write-modules-plugin",setup(s){s.onEnd(async f=>{if(f){let d=HM(o.sourceDirectory,f.metafile);rdr(o.outputDirectory,{recursive:!0}),ndr(idr.join(o.outputDirectory,"modules.json"),JSON.stringify(d,null,2))}})}}}t(q_t,"writeModulesPlugin");var sdr=Sce("zuplo:core:build"),adr=["workerd","worker","browser"],G_t=[...process.env.GLOBAL_MODULE_LOCATION?[process.env.GLOBAL_MODULE_LOCATION]:[],t3e.resolve(V_t(H_t(import.meta.url)),"..","..","..","node_modules"),t3e.resolve(V_t(H_t(import.meta.url)),"..","..","..","..","..","node_modules")];async function cG({systemDirectory:o,outputDirectory:s,sourceDirectory:f,cacheDirectory:d,logger:y,minify:x=!0,command:P,config:F,urls:J}){let G=t3e.join(o,hoe);sdr(`Building with node paths: ${G_t.join(", ")}`);let Se=x&&P!=="dev"&&!process.env.DEBUG_BUILD_DISABLE_MINIFY?{minify:!0,chunkNames:"[hash]"}:{minify:!1,keepNames:!0,chunkNames:"[name]-[hash]"},de=Object.freeze({sourceDirectory:f,outputDirectory:s,cacheDirectory:d,logger:y,debugMode:Gm.DEBUG_BUILD_MODE,config:F,urls:J});return{platform:"browser",target:"es2022",outdir:s,splitting:!0,metafile:!0,format:"esm",nodePaths:G_t,entryPoints:[G],sourcemap:"linked",legalComments:"none",treeShaking:!0,bundle:!0,...Se,external:[],logLevel:"silent",conditions:adr,plugins:[o_t(de),n_t(de),N_t(de),O_t(de),W_t(de),R_t(de),U_t(de),w_t(de),P_t(de),q_t(de)]}}t(cG,"getBaseESBuildConfig");var zO="run-esbuild",K_t=t(async function({systemDirectory:o,outputDirectory:s,sourceDirectory:f,cacheDirectory:d,buildId:y,logger:x,config:P,command:F,minify:J,urls:G},{data:Se}){x.debug("Running esbuild");let de=await cG({command:F,minify:J,systemDirectory:o,outputDirectory:s,cacheDirectory:d,sourceDirectory:f,logger:x,config:P,urls:G}),ae;try{if(!await X9(f))throw new Error("Failed to build project because no open-api file was found on the 'config' folder");ae=await Y_t.build(de),Se.set("metafile",ae.metafile)}catch(Fe){if(x.error(Fe),Fe.errors||Fe.warnings)ae=Fe;else if(Fe.message.includes("Failed to build project because no open-api file was found on the 'config' folder"))ae={warnings:[],errors:[{id:"missing-open-api-file",text:"Failed to build project because no open-api file was found on the 'config' folder",pluginName:zO,location:null,notes:[],detail:"Failed to build project because no open-api file was found on the 'config' folder"}],outputFiles:void 0,metafile:void 0,mangleCache:void 0};else throw Fe}ae.errors.length>0&&ae.errors.length>1&&(ae.errors.length=1);let{errors:Ke,warnings:$e}=r3e({buildId:y,result:ae});return{errors:Ke,warnings:$e}},"runEsbuild");function r3e({buildId:o,result:s}){return{status:s.errors.length>0?"Failed":s.warnings.length>0?"Warnings":"Good",runtimeVersion:"0.0.0",buildTime:"",buildTimeMs:0,buildId:o,warnings:s.warnings.map(d=>d.text==="Using direct eval with a bundler is not recommended and may cause problems"?{location:d.location,detail:d.detail,id:d.id,notes:d.notes,message:"We do not support the use of 'eval' or 'new Function(...)'",severity:loe,pluginName:d.pluginName||zO}:{location:d.location,detail:d.detail,id:d.id,notes:d.notes,message:d.text,severity:loe,pluginName:d.pluginName||zO}),errors:s.errors.map(d=>({location:d.location,detail:d.detail,id:d.id,notes:d.notes,message:d.text,severity:bPe,pluginName:d.pluginName||zO})),metafile:s.metafile}}t(r3e,"esbuildResultToBuildResult");var odr=t((o,s)=>{let f=s;if(s.includes(o)){let d=new RegExp(`.*(${o})`,"g");f=s.replace(d,"")}return f.match(/^(\/)?(\.\.(\/)?)+/)&&(f=f.replace(/^(\/)?(\.\.(\/)?)+/,"/")),f},"removePrefixFromString"),cdr=t((o,s)=>{let f=s;if(f.includes(o)){let d=new RegExp(`[a-zA-Z0-9-_.\\/]+(${o})`,"g");f=f.replace(d,"")}return f},"cleanFilePathsInMessage"),X_t=t((o,s,f)=>{if(!o||o.length<=0)return o;let d=o.filter(y=>y.message!=='Could not resolve "@zuplo/runtime"');return d&&d.length>0&&d.forEach(y=>{try{y.location?.file&&(y.location.file=odr(s,y.location.file)),y.location?.lineText?.includes("@zuplo/core/index.minified.js")&&(y.location.lineText=`${y.location.lineText.substring(0,200)}...<Truncated>`),y.message=cdr(s,y.message),y.notes&&y.notes.length>0&&delete y.notes,y.text&&delete y.text,y.pluginName===""&&(y.pluginName=f)}catch{}}),d},"cleanDataOnBuildIssue");function Z_t(o,s){let f=n3e.basename(s);o.errors&&(o.errors=X_t(o.errors,f,zO)),o.warnings&&(o.warnings=X_t(o.warnings,f,zO))}t(Z_t,"formatBuildResult");var ldr=t(o=>n3e.basename(o).startsWith("."),"isHiddenOnUnix"),udr=t((o,s=[])=>s.map(f=>f.startsWith(".")?f:`.${f}`).some(f=>o.endsWith(f)),"hasMatchingExtname");function X4e(o,s=[],f=!1){let d=[],y;if(!rue.existsSync(o)){let x;if(LV.hasMagic(o))x=o;else{let P=s.map(F=>F.startsWith(".")?F:`.${F}`).join("|");x=`${o}+(${P})`}if(d.push(...LV.sync(x,{nodir:!0})),!d.length)throw Error(`Cannot find any files matching pattern "${o}"`);return d}try{if(y=rue.statSync(o),y.isFile())return[o]}catch{return[]}return rue.readdirSync(o).forEach(x=>{let P=n3e.join(o,x),F;try{if(F=rue.statSync(P),F.isDirectory()){f&&d.push(...X4e(P,s,f));return}}catch{return}if(!s.length)throw Error(`Argument '${s}' required when argument '${o}' is a directory`);!F.isFile()||!udr(P,s)||ldr(P)||d.push(P)}),d}t(X4e,"lookupFiles");var $O=new _oe,xI=` ${$O.gray("|")} `;function i3e({output:o,buildId:s,runtimeVersion:f,compatibilityDate:d}){let y=["Building Zuplo API...",`${xI}Build ID: ${s}`,`${xI}Runtime Version: ${f}`];d&&y.push(`${xI}Compatibility Date: ${d}`),o.info(y.join(`
|
|
604
|
+
`?(F=0,J++):F++;this.column=F,this.line=J;return}}let{length:d}=s,{lineEnd:y}=this;d>0&&(this.lineEndSize>0&&(y.length===1?s[d-1]===y:s.endsWith(y))?(this.line+=this.lineEndSize,this.column=0):this.column+=d)}toString(){return this.output}};function Xft(o,s){let f=new j4e(s);return f.generator[o.type](o,f),f.output}t(Xft,"generate");async function B4e({oasFiles:o,sourceDirectory:s,logger:f}){let d=await mpr({oasFiles:o,sourceDirectory:s,logger:f});return Xft(d)}t(B4e,"generateRawRouteSource");async function mpr({oasFiles:o,sourceDirectory:s,logger:f}){let d=new vI(s,f),y=[];for(let P of o){let F=dpr.basename(P,".oas.json"),J=await d.resolve(P),G=[],Se=new Map,de=await ppr.readFile(P,"utf-8"),ae=JSON.parse(de);for(let Ke in ae.paths){let $e=ae.paths[Ke],Fe=$e.parameters||[],Gt={};$e.summary&&(Gt.pathSummary=$e.summary),$e.description&&(Gt.pathDescription=$e.description),$e.servers&&(Gt.pathServers=$e.servers);for(let jt in $e){if(!vle(jt))continue;let Pr=$e[jt],Fn=[...Fe,...Pr.parameters||[]],sn={...Pr,...Fn.length>0&&{parameters:Fn},...Gt,...Pr.description&&{description:Pr.description.length>350?`${Pr.description.substring(0,350).trim()}...`:Pr.description}},Un=$V(F,Ke,jt),Er=Kle(P,F,sn,J,G,Se);y.unshift(Qft(Un,Er))}}y.unshift(...hpr(F,J,G,Se).reverse())}return{type:"Program",body:y,sourceType:"module"}}t(mpr,"generateAst");function Kle(o,s,f,d,y,x){let P=[];for(let F in f){let J=f[F];if(F==="$ref")return BV(o,s,GN(o,J),d,y,x),{type:"Identifier",name:e_t(s,x.get(GN(o,J)))};let G;switch(typeof J){case"string":case"number":case"boolean":G={type:"Literal",value:J};break;default:Array.isArray(J)?G=Zft(J,o,s,d,y,x):typeof J=="object"&&J!==null&&(G=Kle(o,s,J,d,y,x));break}if(G){let Se=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(F),de=Se?{type:"Identifier",name:F}:{type:"Literal",value:F};P.push({type:"Property",key:de,value:G,kind:"init",method:!1,shorthand:!1,computed:!Se})}}return{type:"ObjectExpression",properties:P}}t(Kle,"processNode");function Zft(o,s,f,d,y,x){return{type:"ArrayExpression",elements:o.map(P=>{if(Array.isArray(P))return Zft(P,s,f,d,y,x);if(typeof P=="object"&&P!==null){let F=Kle(s,f,P,d,y,x);return F.type==="Identifier"?F:{type:"ObjectExpression",properties:F.properties||[]}}else return{type:"Literal",value:P}})}}t(Zft,"processArray");function Qft(o,s){return{type:"ExportNamedDeclaration",declaration:{type:"VariableDeclaration",declarations:[{type:"VariableDeclarator",id:{type:"Identifier",name:o},init:s}],kind:"var"},specifiers:[],source:null}}t(Qft,"createExportedConstAssignment");function hpr(o,s,f,d){let y=[];for(let x=0;x<f.length;x++){let P=e_t(o,x),F=s.get(f[x]),J=Kle(Woe(f[x]),o,F,s,f,d);y.push(Qft(P,J))}return y}t(hpr,"generateRefs");function e_t(o,s){return`${zP(o)}__ref__${s}`}t(e_t,"getRefIdentifierName");import t_t from"node:path";var r_t=t(o=>{let s=null;if(o.value.type==="Object"&&o.value.members.length>0)for(let f of o.value.members){let d=r_t(f);if(d!==null&&(s=d),f.name.value==="enum"&&f.value.type==="Array"&&f.value.elements.length===0){let y=f.value,x=y.loc.start.line,P=y.loc.start.column,F=y.loc.end.column;s={line:x,column:P,length:F-P,lineText:""}}}return s},"findEmptyEnums"),gpr=t(o=>{if(o.startsWith("schema with key or id")&&o.endsWith("already exists"))return"Update your schema's '$id' to be unique across your project.";if(o.includes("All JSON schemas must use version 2020-12"))return"All JSON schemas must use version 2020-12. See release notes for changes: https://json-schema.org/draft/2020-12/release-notes.html";if(o==='"nullable" cannot be used without "type"')return'Property "nullable" can only be used when property "type" value is "object".';if(o==='NOT SUPPORTED: keyword "id", use "$id" for schema ID')return'Replace keyword "id" with "$id" when defining a schema Id.';if(o.startsWith("can't resolve reference http"))return"Cannot resolve remote references, try adding them directly to the schema file or as a schema file in the project.";if(o.startsWith("can't resolve reference"))return"Make sure all references are defined in the schema.";if(o.includes("oneOf must NOT have fewer than 1 items"))return'Property "oneOf" must have at least 1 item configured.';if(o.includes("enum must have non-empty array"))return'Property "enum" must be configured with at least one value.';if(o.includes("Unexpected")&&o.includes("in JSON at position"))return"Update your schema to only use valid properties."},"getSuggestions"),U4e=t(async(o,s,f)=>{if(!o)return null;let d={file:t_t.join(aAe,o),suggestion:gpr(f)},y=t_t.join(s,aAe),x=tu.safePath(s).resolve(y,o),P=await $oe(x);if(f.includes("enum must have non-empty array")){if(P){let F=await jV(P);if(F&&F.body.members!==null)for(let J of F.body.members){let G=r_t(J);G&&G!==null&&(d=Object.assign(d??{},G))}if(d){let J=d.line?d.line:0;d.lineText=MV(P,J)}}}else if(f.includes("Unexpected")&&f.includes("in JSON at position")&&P){let F=await jV(P);F&&"lineText"in F&&(d=Object.assign(d??{},F))}return d},"getLocation");import*as Y_t from"esbuild";import t3e,{dirname as V_t}from"node:path";import{fileURLToPath as H_t}from"node:url";var z4e=class{static{t(this,"Environment")}get DEV_SERVER_PORT(){return process.env.DEV_SERVER_PORT?parseInt(process.env.DEV_SERVER_PORT,10):3e3}get DEBUG_BUILD_MODE(){return!!process.env.DEBUG_BUILD_MODE}get USE_MONOREPO_PACKAGES(){return process.env.USE_MONOREPO_PACKAGES==="true"}get EXPERIMENTAL_CODEGEN(){return!!process.env.EXPERIMENTAL_CODEGEN}get NODE_ENV(){return process.env.NODE_ENV}isProduction(){return this.NODE_ENV==="production"}isLocalDevelopment(){return process.env.ZUPLO_IS_LOCAL_DEVELOPMENT==="true"}},ypr=new z4e,Gm=ypr;var $4e="no-remote-module";function n_t({logger:o}){return{name:$4e,async setup(s){s.onResolve({filter:/^https?:\/\//},f=>(o.error(f,"User attempted to load a remote module"),{errors:[{text:`Remote modules are not supported. Attempted to load module ${f.path}`,detail:"InvalidRemoteModule",pluginName:$4e,location:{line:0,column:0,file:""}}],pluginName:$4e}))}}}t(n_t,"blockRemoteModulePlugin");import i_t from"node:path";var s_t="legacy-environment",a_t="legacy-environment",vpr=`import { environment } from "@zuplo/runtime";
|
|
605
|
+
export default environment;`;function o_t(o){return{name:"environment",setup(s){s.onResolve({filter:/@app\/environment$/},()=>({namespace:a_t,pluginName:s_t,path:i_t.join(o.sourceDirectory,Ng,"environment.js")})),s.onLoad({filter:/.*/,namespace:a_t},async f=>({contents:vpr,loader:"ts",resolveDir:i_t.dirname(f.path),pluginName:s_t}))}}}t(o_t,"environmentPlugin");import zpr from"node:fs/promises";import bT from"node:path";var x_t=Sd(lle(),1),E_t=Sd(ole(),1),C_t=Sd(J4e(),1),k_t=Sd(T_t(),1);import{performance as jE}from"node:perf_hooks";var iG=[];async function jpr(o,s){let f=jE.now();try{return await s()}finally{let d=jE.now()-f;iG.push({name:o,duration:d})}}t(jpr,"timeFn");var Bpr={mark:t(o=>{jE.mark(o)},"mark"),measure:t((o,s,f)=>{try{jE.measure(o,s,f)}finally{jE.clearMarks(s),jE.clearMarks(f),jE.clearMeasures(o)}},"measure"),timeFn:jpr,report:t(()=>{if(iG.length>0){let o=iG.reduce((s,{name:f,duration:d})=>(s[f]=`${d.toFixed(0)}ms`,s),{});console.table(o),iG.length=0}},"report"),getDuration:t(o=>{let s=jE.getEntriesByName(o);if(s.length===0)return 0;let f=s[0].duration;return jE.clearMeasures(o),f},"getDuration"),clear:t(()=>{iG.length=0,jE.clearMarks(),jE.clearMeasures()},"clear")},Ou=Bpr;import{writeFile as Upr}from"node:fs/promises";async function qk(o,s){await tu.mkdirForFilePathIfNotExits(o);let f=await import("prettier"),d=s;try{d=await f.format(s,{parser:"babel"})}catch{}await Upr(o,d,"utf-8")}t(qk,"writeDebugSourceFile");var Vk="schemas",Zle="json-schema";function w_t(o){return{name:Vk,async setup(s){let f=new E_t.Ajv2020({code:{source:!0},allErrors:!0,strict:!1,verbose:!0,meta:!0}),d=bT.join(o.sourceDirectory,mV),y=[],x=[],P;await Ou.timeFn("Initializing schema validation",async()=>{if((0,k_t.default)(f,{mode:"fast"}),f.opts.code.formats=x_t._`require("ajv-formats/dist/formats").fastFormats`,await tu.dirExists(d)&&(f.addKeyword("faker"),P=(await tu.listFolderContents(d,mV)).sort(),await Promise.all(P.map(async F=>{try{let J=tu.safePath(o.sourceDirectory).resolve(d,F);if(!J.startsWith(d))throw new Error("All schemas must be in the schemas directory");let G=await zpr.readFile(J,"utf-8");if(G===""||G===void 0)throw new Error(`Schema 'schemas/${F}' is empty and will be ignored.`);let Se=JSON.parse(G);if(Se.$schema&&Se.$schema!=="https://json-schema.org/draft/2020-12/schema")throw new Error(`Error in ${F}: All JSON schemas must use version 2020-12. See release notes for changes: https://json-schema.org/draft/2020-12/release-notes.html`);if(f.addSchema(Se,F),f.errors?.length){let de=f.errors[0];y.push({id:"json-schema-validation-error",pluginName:Vk,text:`Error: ${de.message}`,location:{file:bT.join(mV,F)},detail:{params:de.params,propertyName:de.propertyName,schemaPath:de.schemaPath,data:de.data}})}}catch(J){if(J.message.endsWith("is empty and will be ignored.")){x.push({id:"empty-json-schema-file",pluginName:Vk,text:`Schema 'schemas/${F}' is empty and will be ignored.`,location:{file:`schemas/${F}`,suggestion:"Add schema details or remove the file from the project."},detail:"EmptyJSONSchemaFile",notes:[{text:`Schema 'schemas/${F}' is empty and will be ignored.`,location:{file:`schemas/${F}`,suggestion:"Add schema details or remove the file from the project."}}]});return}let G=await U4e(F,o.sourceDirectory,J.message);y.push({id:"json-schema-add-error",pluginName:Vk,text:`Error: ${J.message}`,location:G,detail:"InvalidAddSchemaError",notes:[{text:J.message}]})}})),await Promise.all(P.map(async F=>{try{let J=f.getSchema(F);J&&f.compile(J.schema).errors?.forEach(Se=>{y.push({text:`Failed to compile ${F}: ${Se.message}`})})}catch(J){let G=await U4e(F,o.sourceDirectory,J.message);y.push({id:"json-schema-compile-error",pluginName:Vk,text:`The schema file '${F}' is not valid. Error: ${J.message}`,location:G,detail:"InvalidSchemaError",notes:[{text:J.message}]})}})),Gm.DEBUG_BUILD_MODE)){let F=bT.resolve(o.outputDirectory,mV);await tu.mkdirIfNotExists(F)}}),s.onStart(async()=>{if(P)return{errors:y,warnings:x}}),s.onResolve({filter:/schemas\/.*\.json$/},async F=>Ou.timeFn("Generating JSON schemas...",async()=>{let J=bT.isAbsolute(F.path)?F.path:bT.join(F.resolveDir,F.path);if(F.importer&&F.namespace!=="open-api-routes-json")return{path:J};if(!await tu.fileExists(J)){let G="policies.json";return{errors:[{id:"json-schema-build-error",text:`Unable to resolve reference to '${F.path}' from ${G}`,location:{file:bT.join(F.resolveDir,G),namespace:Zle,line:1,column:0,length:0,lineText:`Invalid JSON schema reference in ${G}`,suggestion:""},detail:"RouteReferenceError",pluginName:Vk,notes:[{text:`Unable to resolve reference to '${F.path}' from ${G}`,location:null}]}],namespace:Zle,path:J,pluginName:Vk}}return{path:J,namespace:Zle,pluginName:Vk}})),s.onLoad({filter:/.*/,namespace:Zle},async F=>Ou.timeFn(`Generating json schema data: ${bT.basename(F.path)}`,async()=>{let J=[],G;try{let Se=bT.relative(d,F.path),de=f.getSchema(Se);if(!de)throw new Error(`Could not load schema at ${F.path}`);G=de.source?.validateCode;let ae=f.compile(de.schema);G=(0,C_t.default)(f,ae)}catch(Se){J.push({pluginName:Vk,text:`Cannot parse project's schemas/${bT.basename(F.path)} file. Error: ${Se.message}`,location:null,notes:[{text:Se.message,location:null}],detail:Se})}if(Gm.DEBUG_BUILD_MODE&&G){let Se=bT.relative(d,F.path),de=bT.join(o.sourceDirectory,Ng,`${Se}.js`);await qk(de,G)}return{contents:G,errors:J,pluginName:Vk,resolveDir:bT.dirname(F.path),watchFiles:[F.path]}}))}}}t(w_t,"jsonSchemaPlugin");import{relative as $pr}from"node:path";var D_t=["node:assert","node:async_hooks","node:buffer","node:crypto","node:diagnostics_channel","node:events","node:path","node:process","node:stream","node:string_decoder","node:util"],Jpr="nodejs-compat-plugin";function P_t({sourceDirectory:o}){return{name:Jpr,setup(s){let f=new Set;s.onStart(()=>{f.clear()}),s.onResolve({filter:/node:.*/},async({path:d,kind:y,resolveDir:x,...P})=>{let F=`${d}:${y}:${x}:${P.importer}`;if(f.has(F))return;f.add(F);let J=await s.resolve(d,{kind:y,resolveDir:x,importer:P.importer});return J.errors.length>0?D_t.includes(d)||d.includes("/")&&D_t.includes(d.split("/")[0])?{external:!0}:{external:!0,warnings:J.errors.map(Se=>({...Se,location:{file:$pr(o,P.importer),line:0,column:0,namespace:"",length:0,lineText:"",suggestion:"Remove the imported node module"},detail:`The package "${d}" wasn't found on the file system but is built into node. If this code is executed it will fail.`}))}:J})}}}t(P_t,"nodejsCompatPlugin");import A_t from"node:fs/promises";import BE from"node:path";var SI="open-api-routes-plugin",sG="open-api-routes-json";function N_t(o){return{name:"open-api-routes-plugin",setup(s){s.onResolve({filter:/zuplo:routes$/},f=>({watchFiles:[...X4e(BE.join(o.sourceDirectory,D1),[".oas.json"],!0),BE.join(o.sourceDirectory,D1,doe)],namespace:sG,path:BE.isAbsolute(f.path)?f.path:BE.join(f.resolveDir,f.path),pluginName:SI})),s.onResolve({filter:/^\.\.\/modules\/.*/,namespace:sG},async f=>Ou.timeFn("Generating route data...",async()=>{async function d(){let x=BE.resolve(o.sourceDirectory,"config"),P=await mO(x),F=`$import(.${f.path.replace(/^../,"")})`;return{location:await qnt(P,F,"Update your route configuration to use code from the 'modules' folder"),originalImportValue:F}}t(d,"getLocation");let y=BE.join(f.resolveDir,`${f.path}.ts`);if(f.path.endsWith(".ts")){let{location:x,originalImportValue:P}=await d();return{errors:[{id:"route-build-error",text:`Invalid handler reference '${P}' in ${x?.file??"OpenAPI file"}. Imports must NOT include the '.ts' file extension.`,location:x,detail:"RouteReferenceError",pluginName:SI}],namespace:sG,path:f.path,pluginName:SI}}else if(!await tu.fileExists(y)){let{location:x,originalImportValue:P}=await d();return{errors:[{id:"route-build-error",text:`Invalid handler reference in route. Unable to resolve reference to '${P}' in ${x?.file??"OpenAPI file"}`,location:x,detail:"RouteReferenceError",pluginName:SI}],namespace:sG,path:f.path,pluginName:SI}}})),s.onLoad({filter:/.*/,namespace:sG},async f=>Ou.timeFn("Generating route.json data",async()=>{let d=BE.resolve(o.sourceDirectory,"config"),y=await mO(d),x=await Promise.all(y.map(async G=>({content:await A_t.readFile(G,"utf-8"),fileName:G}))),P=BE.resolve(d,"policies.json");if(!await tu.fileExists(P))return{errors:[{text:"The project must include a policies file ('/config/policies.json')",detail:"OASPoliciesFileMissing",pluginName:SI,location:{line:0,column:0,file:"/config/policies.json"}}],pluginName:SI};let F={content:await A_t.readFile(P,"utf-8"),fileName:P},J;try{J=await bIe({sourceDirectory:o.sourceDirectory,oasContent:x,policiesContent:F,compatibilityDate:o.config.compatibilityDate,allowDuplicateRoutes:o.config.allowDuplicateRoutes})}catch(G){throw new Error(`Error compiling routes: ${G.message}`)}if(Gm.DEBUG_BUILD_MODE&&J.content){let G=BE.join(o.sourceDirectory,Ng),Se=BE.resolve(G,"routes.js");await qk(Se,J.content)}return{contents:J.content,errors:J.errors,pluginName:SI,resolveDir:BE.dirname(f.path),watchFiles:[f.path]}}))}}}t(N_t,"openApiRoutesPlugin");import Qle from"node:path";var aG="raw-route-plugin",I_t="raw-route";function O_t(o){return{name:"raw-route-plugin",setup(s){s.onResolve({filter:/zuplo:raw-routes$/},f=>({namespace:I_t,path:f.path,pluginName:aG})),s.onLoad({filter:/.*/,namespace:I_t},async f=>Ou.timeFn("Building route data",async()=>{let d=Qle.resolve(o.sourceDirectory,D1);if(!await tu.dirExists(d))return{loader:"js",resolveDir:Qle.dirname(f.path),pluginName:aG};let y=await mO(d);try{let x=await B4e({oasFiles:y,sourceDirectory:o.sourceDirectory,logger:o.logger});if(Gm.DEBUG_BUILD_MODE&&x){let P=Qle.join(o.sourceDirectory,Ng,"raw-routes.js");await qk(P,x)}return{contents:x,loader:"js",resolveDir:Qle.dirname(f.path),pluginName:aG}}catch(x){if(x instanceof w1)return{contents:"",loader:"ts",errors:[{id:"route-build-error",text:x.issue.text,location:x.issue.location,detail:x.issue.detail,pluginName:aG}],pluginName:aG};throw x}}))}}}t(O_t,"rawRoutePlugin");import Wpr from"node:fs/promises";import F_t from"node:path";var eue="runtime-extensions-plugin",L_t="runtime-extensions";function R_t(o){return{name:eue,setup(s){s.onResolve({filter:/zuplo:runtime-extension$/},f=>({namespace:L_t,path:f.path,pluginName:eue})),s.onLoad({filter:/.*/,namespace:L_t},async()=>Ou.timeFn("Generating zuplo.runtime.ts data",async()=>{let f="export const runtimeInit = undefined;",d=F_t.resolve(o.sourceDirectory,frt,"zuplo.runtime.ts"),y=[];return await tu.fileExists(d)?(f=await Wpr.readFile(d,"utf-8"),{contents:f,loader:"ts",resolveDir:F_t.dirname(d),errors:y,pluginName:eue,watchFiles:[d]}):{contents:f,loader:"ts",errors:y,pluginName:eue}}))}}}t(R_t,"runtimeExtensionsPlugin");import j_t from"node:path";import{readFile as qpr}from"node:fs/promises";import TI from"node:path";var VM=class extends Error{static{t(this,"DevPortalConfigError")}filename;constructor(s,f){super(s,f),this.name="DevPortalConfigError",this.filename=f?.filename}};async function M_t(o){let s=["zudoku.config.tsx","zudoku.config.ts","zudoku.config.js","zudoku.config.jsx","zudoku.config.mjs"];for(;s.length;){let P=s.pop();if(P){let F=TI.join("docs",P),J=TI.join(o,F);try{if(await tu.fileExists(J))return{enabled:!0,type:"zudoku",basePath:void 0,filepath:F}}catch(G){throw new VM("Failed to read dev portal configuration file.",{cause:G,filename:F})}}}let f=TI.join(D1,prt),d=TI.join(o,f),y=!0,x;if(await tu.fileExists(d)){try{let P=await qpr(d,"utf-8"),F=JSON.parse(P);F.enabled===!1&&(y=!1),x=F.sitePathname}catch(P){throw new VM("Failed to parse dev-portal.json file.",{cause:P,filename:f})}return{enabled:y,type:"legacy",basePath:x,filepath:f}}return{enabled:!1,type:void 0,basePath:void 0,filepath:void 0}}t(M_t,"getDevPortalConfig");function HM(o,s){let f=TI.resolve(o,U9);return Object.keys(s?.outputs??{}).map(x=>{let P=TI.normalize(x);return`./${TI.relative(f,P).split(TI.sep).join("/")}`})}t(HM,"getBuildModules");var B_t="/docs",Vpr="/__zuplo/dev-portal";function Hpr(o){let s=o.trim().toLowerCase();return s.endsWith("/")&&(s=s.slice(0,-1)),s}t(Hpr,"normalizePathname");function Gpr(o,s){let d={developerPortal:{basePath:o?.basePath===Vpr?B_t:o?.basePath?Hpr(o.basePath):B_t,enabled:o?o.enabled??!0:!1,type:o?.type??void 0,urls:o?.urls?{defaultUrl:o.urls.defaultUrl,urls:o.urls.urls.map(x=>new URL(x).origin)}:void 0},api:s};return`const runtimeSettings = ${JSON.stringify(d)};
|
|
606
|
+
export default runtimeSettings;`}t(Gpr,"generateSource");var oG="runtime-settings-plugin",tue="runtime-settings";function U_t(o){return{name:oG,setup(s){s.onResolve({filter:/zuplo:runtime-settings$/},f=>({namespace:tue,path:f.path,pluginName:oG})),s.onLoad({filter:/.*/,namespace:tue},async()=>Ou.timeFn("Generating runtime settings",async()=>{let f=[],d,y;try{let F=await M_t(o.sourceDirectory);y=F.filepath,d={...F,urls:o.urls?.devPortal}}catch(F){let J="Failed to load dev portal config",G="config/dev-portal.json";F instanceof VM&&(J=F.message,G=F.filename??G),f.push({id:"dev-portal-build-error",text:J,location:{file:G,namespace:tue,line:1,column:0,length:0,lineText:"",suggestion:""},detail:"DevPortalValidationError",pluginName:oG,notes:[{text:F.message,location:null}]})}let x={urls:o.urls?.api},P;try{if(P=Gpr(d,x),Gm.DEBUG_BUILD_MODE&&P){let F=j_t.join(o.sourceDirectory,Ng,"dev-portal.js");await qk(F,P)}}catch(F){f.push({id:"dev-portal-build-error",text:F.message,location:{file:"dev-portal.json",namespace:tue,line:1,column:0,length:0,lineText:"issue",suggestion:""},detail:"DevPortalValidationError",pluginName:oG,notes:[{text:F.message,location:null}]})}return{contents:P,errors:f,pluginName:oG,loader:"js",resolveDir:y?j_t.dirname(y):void 0}}))}}}t(U_t,"runtimeSettingsPlugin");import e3e from"node:fs/promises";import UO from"node:path";var $_t=Sd(ole(),1),J_t=Sd(J4e(),1);var Z4e="schema-validation-plugin",z_t="schema-validation",Ypr="module.exports = {}";function W_t(o){return{name:"schema-validation-plugin",setup(s){s.onResolve({filter:/zuplo:schema-validations$/},f=>({namespace:z_t,path:f.path,pluginName:Z4e})),s.onLoad({filter:/.*/,namespace:z_t},async()=>Ou.timeFn("Validating schemas",async()=>{let f=UO.resolve(o.sourceDirectory,D1,"policies.json");if(!await tu.fileExists(f))return{contents:Ypr,loader:"js",resolveDir:UO.dirname(f),pluginName:Z4e};let d=await Xpr(o.sourceDirectory),y=UO.resolve(o.sourceDirectory,D1),x=await mO(y),P=await tdr(x,d),F=await Kpr({oasFiles:x,routesWithSchemaValidation:P,sourceDirectory:o.sourceDirectory,logger:o.logger});if(Gm.DEBUG_BUILD_MODE&&F){let J=UO.join(o.sourceDirectory,Ng,"schema-validation.js");await qk(J,F)}return{contents:F,loader:"js",resolveDir:UO.dirname(f),pluginName:Z4e}}))}}}t(W_t,"schemaValidationPlugin");async function Kpr({oasFiles:o,routesWithSchemaValidation:s,sourceDirectory:f,logger:d}){let y="",x=new vI(f,d);if(s.length===0)return y;let P=new $_t.Ajv2020({code:{source:!0},allErrors:!0,strict:!1,verbose:!0,meta:!0});for(let F of o){let J=await e3e.readFile(F,"utf-8"),G=UO.basename(F,".oas.json"),Se=s.filter(Fe=>Fe.fileName===G),de=await x.resolve(F),ae=JSON.parse(J),Ke=[],$e=new Map;Se.forEach(Fe=>{let Gt=ae.paths[Fe.path][Fe.method];if(Gt.requestBody){let jt;if(Gt.requestBody.$ref){let Pr=Gt.requestBody.$ref;jt=de.get(Pr)?.content}else Gt.requestBody.content&&(jt=Gt.requestBody.content);if(jt)for(let Pr in jt){let Fn=jt[Pr].schema,sn=mAe(Fe.path,Fe.method,Pr);Fn.$id=sn,P.addSchema(Fn),Q4e(Fn,F,G,P,de,Ke,$e)}}if(Gt.parameters)for(let jt of Gt.parameters){let Pr=jt.$ref?de.get(jt.$ref):jt,Fn=Pr.schema.$ref?de.get(Pr.schema.$ref):Pr.schema,sn=dAe(Fe.path,Fe.method,Pr.in,Pr.name);Fn.$id=sn,P.addSchema(Fn),Q4e(Pr,F,G,P,de,Ke,$e)}});for(let Fe of Ke){let Gt=de.get(Fe),jt=JV(G,Fe);P.addSchema(Gt,jt)}}return y=(0,J_t.default)(P),y}t(Kpr,"schemaValidationSource");function Q4e(o,s,f,d,y,x,P){for(let F in o){let J=o[F];if(F==="$ref"){let G=JV(f,GN(s,J));o[F]=G,BV(s,f,GN(s,J),y,x,P,(Se,de,ae)=>JV(Se,GN(ae,de)))}else typeof J=="object"&&Q4e(J,s,f,d,y,x,P)}}t(Q4e,"addRefsToSchema");async function Xpr(o){let s=new Set(["RequestValidationInboundPolicy"]),f=await e3e.readFile(`${o}/config/policies.json`,"utf-8"),d=JSON.parse(f);return Zpr(d,s)}t(Xpr,"getPolicyNamesUsingSchemaValidationPolicies");function Zpr(o,s){let f=new Set;o.policies?.forEach(y=>{y.handler?.export&&s.has(y.handler.export)&&y.handler.module==="$import(@zuplo/runtime)"&&f.add(y.name)});let d=Qpr(o,f);return new Set([...f,...d])}t(Zpr,"getPolicyNamesReferencingPolicyHandlers");function Qpr(o,s){let f=new Set;return o.policies?.forEach(d=>{d.handler?.export==="CompositeInboundPolicy"&&d.handler?.options?.policies?.forEach(y=>{s.has(y)&&f.add(d.name)})}),f}t(Qpr,"getCompositePoliciesContainingPolicy");function edr(o,s){if(!o["x-zuplo-route"]||!o["x-zuplo-route"].policies)return!1;let f=o["x-zuplo-route"].policies.inbound;if(f){for(let y of f)if(s.has(y))return!0}let d=o["x-zuplo-route"].policies.outbound;if(d){for(let y of d)if(s.has(y))return!0}return!1}t(edr,"isPolicyPresentInOperation");async function tdr(o,s){let f=[];for(let d of o){let y=await e3e.readFile(d,"utf-8"),P=JSON.parse(y).paths;for(let F in P){let J=P[F];for(let G in J){let Se=J[G];edr(Se,s)&&f.push({fileName:UO.basename(d,".oas.json"),path:F,method:G})}}}return f}t(tdr,"getRoutesContainingPolicies");import{mkdirSync as rdr,writeFileSync as ndr}from"node:fs";import idr from"node:path";function q_t(o){return{name:"write-modules-plugin",setup(s){s.onEnd(async f=>{if(f){let d=HM(o.sourceDirectory,f.metafile);rdr(o.outputDirectory,{recursive:!0}),ndr(idr.join(o.outputDirectory,"modules.json"),JSON.stringify(d,null,2))}})}}}t(q_t,"writeModulesPlugin");var sdr=Hoe("zuplo:core:build"),adr=["workerd","worker","browser"],G_t=[...process.env.GLOBAL_MODULE_LOCATION?[process.env.GLOBAL_MODULE_LOCATION]:[],t3e.resolve(V_t(H_t(import.meta.url)),"..","..","..","node_modules"),t3e.resolve(V_t(H_t(import.meta.url)),"..","..","..","..","..","node_modules")];async function cG({systemDirectory:o,outputDirectory:s,sourceDirectory:f,cacheDirectory:d,logger:y,minify:x=!0,command:P,config:F,urls:J}){let G=t3e.join(o,hoe);sdr(`Building with node paths: ${G_t.join(", ")}`);let Se=x&&P!=="dev"&&!process.env.DEBUG_BUILD_DISABLE_MINIFY?{minify:!0,chunkNames:"[hash]"}:{minify:!1,keepNames:!0,chunkNames:"[name]-[hash]"},de=Object.freeze({sourceDirectory:f,outputDirectory:s,cacheDirectory:d,logger:y,debugMode:Gm.DEBUG_BUILD_MODE,config:F,urls:J});return{platform:"browser",target:"es2022",outdir:s,splitting:!0,metafile:!0,format:"esm",nodePaths:G_t,entryPoints:[G],sourcemap:"linked",legalComments:"none",treeShaking:!0,bundle:!0,...Se,external:[],logLevel:"silent",conditions:adr,plugins:[o_t(de),n_t(de),N_t(de),O_t(de),W_t(de),R_t(de),U_t(de),w_t(de),P_t(de),q_t(de)]}}t(cG,"getBaseESBuildConfig");var zO="run-esbuild",K_t=t(async function({systemDirectory:o,outputDirectory:s,sourceDirectory:f,cacheDirectory:d,buildId:y,logger:x,config:P,command:F,minify:J,urls:G},{data:Se}){x.debug("Running esbuild");let de=await cG({command:F,minify:J,systemDirectory:o,outputDirectory:s,cacheDirectory:d,sourceDirectory:f,logger:x,config:P,urls:G}),ae;try{if(!await X9(f))throw new Error("Failed to build project because no open-api file was found on the 'config' folder");ae=await Y_t.build(de),Se.set("metafile",ae.metafile)}catch(Fe){if(x.error(Fe),Fe.errors||Fe.warnings)ae=Fe;else if(Fe.message.includes("Failed to build project because no open-api file was found on the 'config' folder"))ae={warnings:[],errors:[{id:"missing-open-api-file",text:"Failed to build project because no open-api file was found on the 'config' folder",pluginName:zO,location:null,notes:[],detail:"Failed to build project because no open-api file was found on the 'config' folder"}],outputFiles:void 0,metafile:void 0,mangleCache:void 0};else throw Fe}ae.errors.length>0&&ae.errors.length>1&&(ae.errors.length=1);let{errors:Ke,warnings:$e}=r3e({buildId:y,result:ae});return{errors:Ke,warnings:$e}},"runEsbuild");function r3e({buildId:o,result:s}){return{status:s.errors.length>0?"Failed":s.warnings.length>0?"Warnings":"Good",runtimeVersion:"0.0.0",buildTime:"",buildTimeMs:0,buildId:o,warnings:s.warnings.map(d=>d.text==="Using direct eval with a bundler is not recommended and may cause problems"?{location:d.location,detail:d.detail,id:d.id,notes:d.notes,message:"We do not support the use of 'eval' or 'new Function(...)'",severity:loe,pluginName:d.pluginName||zO}:{location:d.location,detail:d.detail,id:d.id,notes:d.notes,message:d.text,severity:loe,pluginName:d.pluginName||zO}),errors:s.errors.map(d=>({location:d.location,detail:d.detail,id:d.id,notes:d.notes,message:d.text,severity:bPe,pluginName:d.pluginName||zO})),metafile:s.metafile}}t(r3e,"esbuildResultToBuildResult");var odr=t((o,s)=>{let f=s;if(s.includes(o)){let d=new RegExp(`.*(${o})`,"g");f=s.replace(d,"")}return f.match(/^(\/)?(\.\.(\/)?)+/)&&(f=f.replace(/^(\/)?(\.\.(\/)?)+/,"/")),f},"removePrefixFromString"),cdr=t((o,s)=>{let f=s;if(f.includes(o)){let d=new RegExp(`[a-zA-Z0-9-_.\\/]+(${o})`,"g");f=f.replace(d,"")}return f},"cleanFilePathsInMessage"),X_t=t((o,s,f)=>{if(!o||o.length<=0)return o;let d=o.filter(y=>y.message!=='Could not resolve "@zuplo/runtime"');return d&&d.length>0&&d.forEach(y=>{try{y.location?.file&&(y.location.file=odr(s,y.location.file)),y.location?.lineText?.includes("@zuplo/core/index.minified.js")&&(y.location.lineText=`${y.location.lineText.substring(0,200)}...<Truncated>`),y.message=cdr(s,y.message),y.notes&&y.notes.length>0&&delete y.notes,y.text&&delete y.text,y.pluginName===""&&(y.pluginName=f)}catch{}}),d},"cleanDataOnBuildIssue");function Z_t(o,s){let f=n3e.basename(s);o.errors&&(o.errors=X_t(o.errors,f,zO)),o.warnings&&(o.warnings=X_t(o.warnings,f,zO))}t(Z_t,"formatBuildResult");var ldr=t(o=>n3e.basename(o).startsWith("."),"isHiddenOnUnix"),udr=t((o,s=[])=>s.map(f=>f.startsWith(".")?f:`.${f}`).some(f=>o.endsWith(f)),"hasMatchingExtname");function X4e(o,s=[],f=!1){let d=[],y;if(!rue.existsSync(o)){let x;if(LV.hasMagic(o))x=o;else{let P=s.map(F=>F.startsWith(".")?F:`.${F}`).join("|");x=`${o}+(${P})`}if(d.push(...LV.sync(x,{nodir:!0})),!d.length)throw Error(`Cannot find any files matching pattern "${o}"`);return d}try{if(y=rue.statSync(o),y.isFile())return[o]}catch{return[]}return rue.readdirSync(o).forEach(x=>{let P=n3e.join(o,x),F;try{if(F=rue.statSync(P),F.isDirectory()){f&&d.push(...X4e(P,s,f));return}}catch{return}if(!s.length)throw Error(`Argument '${s}' required when argument '${o}' is a directory`);!F.isFile()||!udr(P,s)||ldr(P)||d.push(P)}),d}t(X4e,"lookupFiles");var $O=new _oe,xI=` ${$O.gray("|")} `;function i3e({output:o,buildId:s,runtimeVersion:f,compatibilityDate:d}){let y=["Building Zuplo API...",`${xI}Build ID: ${s}`,`${xI}Runtime Version: ${f}`];d&&y.push(`${xI}Compatibility Date: ${d}`),o.info(y.join(`
|
|
607
607
|
`))}t(i3e,"outputApiBuildStart");async function nue(o,s,f){Z_t(f,o),await Promise.all(f.warnings.map(async y=>Q_t(o,s,y))),await Promise.all(f.errors.map(async y=>Q_t(o,s,y)));let d=process.env.CODEBUILD_BUILD_ID?new Date(Date.now()+1):new Date;f.status==="Good"?s.info($O.green("Build succeeded"),{timestamp:d}):f.status==="Warnings"?s.warn($O.yellow("Build succeeded with warnings"),{timestamp:d}):f.status==="Failed"&&s.error($O.red("Build failed."),{timestamp:d})}t(nue,"outputBuildResult");async function Q_t(o,s,f){let d=[],y=f.severity??"error",x=y==="error"?$O.red:$O.yellow,P=x(`${y.toUpperCase()}: ${f.message}${f.detail?`
|
|
608
608
|
${xI}${f.detail.toString().split(`
|
|
609
609
|
`).join(`
|
|
610
610
|
${xI}`)}`:""}`);d.push(P);let F=pdr(f.location??void 0);if(F&&d.push(`${xI}${x(`The error was found in the file: ${F}`)}`),f.location?.file&&f.location.column!==0&&f.location.line!==0)try{let J=_dr.join(o,f.location.file),G=await fdr(J,"utf-8"),Se=(0,ept.codeFrameColumns)(G,{start:{line:f.location.line,column:f.location.column}},{highlightCode:!0,message:f.message,linesAbove:3,linesBelow:3});d.push(xI),d.push(Se)}catch{}else f.location?.file&&d.push($O.red(`${xI}File: ${f.location.file}:${f.location.line}:${f.location.column}`));d.push(""),f.severity==="warning"?s.warn(d.join(`
|
|
611
611
|
`)):s.error(d.join(`
|
|
612
|
-
`))}t(Q_t,"logIssue");function pdr(o){if(o?.file){let s=o.file;if(o.line)return`${s}:${o.line}`;if(o.column)return`${s}:${o.column}`}}t(pdr,"getFileLocation");var ST=class{static{t(this,"PluginResult")}errors=[];warnings=[];constructor(s){s&&this.errors.push(s)}};async function tpt(o,s,f){let d=[],y=[],x=new Map;for await(let P of o)try{let F=await P(s,{data:x,errors:y,warnings:d});if(y.push(...F.errors.map(J=>(J.pluginName===""&&(J.pluginName=P.name),J))),d.push(...F.warnings),F.errors.length>0)break}catch(F){if(F instanceof w1?y.push({...F.issue,pluginName:F.pluginName??"unknown"}):y.push(F),f?.throwOnException)throw F;break}return{errors:y,warnings:d,data:x}}t(tpt,"runPlugins");import{readFile as ddr}from"node:fs/promises";import rpt from"node:path";import{parse as mdr}from"jsonc-parser";var s3e={version:1,compatibilityDate:void 0,allowDuplicateRoutes:!1,allowHostHeaderOverride:!1,flags:{},experimental:{},projectType:"managed-edge"};async function GM(o){let s=rpt.join(o,drt),f=rpt.join(o,mrt),d=!1,y=s;await tu.fileExists(s)?(d=!0,y=s):await tu.fileExists(f)&&(d=!0,y=f);let x;if(d){let F=await ddr(y,"utf-8");if(x=mdr(F,[]),typeof x!="object")return{status:L9,errors:[{message:"Invalid zuplo.jsonc file.",detail:"The zuplo.jsonc file is not a valid JSON object",pluginName:"buildData",severity:"error"}]};let G=[];"version"in x&&x.version!==1&&G.push({message:"Invalid version set in zuplo.jsonc file.",detail:"version in zuplo.jsonc must be set to 1",pluginName:"buildData",severity:"error"}),"compatibilityDate"in x&&R9&&typeof x.compatibilityDate=="string"&&(R9.includes(x.compatibilityDate)||G.push({message:"Invalid compatibilityDate set in zuplo.jsonc file.",detail:`compatibilityDate was set to ${x.compatibilityDate}. Valid compatibility dates are ${R9.join(", ")}`,pluginName:"buildData",severity:"error"}));for(let Se of["allowDuplicateRoutes","allowHostHeaderOverride"]){let de=x[Se];de!==void 0&&typeof de!="boolean"&&G.push({message:`Invalid property type for ${Se}`,detail:`The property ${Se} must be a boolean.`,pluginName:"buildData",severity:"error"})}if(x.projectType!==void 0&&!["managed-edge","managed-dedicated","self-managed"].includes(x.projectType)&&G.push({message:"Invalid projectType set in zuplo.jsonc file.",detail:`projectType was set to ${x.projectType}. Valid project types are managed-edge, managed-dedicated, self-managed`,pluginName:"buildData",severity:"error"}),G.length>0)return{status:L9,errors:G};x.flags=coe(x.compatibilityDate,x.flags)}else x={version:1,flags:coe(void 0,void 0)};let P={...s3e,...x};return{status:LP,config:P}}t(GM,"getZuploConfig");import hdr from"node:fs";import{mkdir as npt,
|
|
612
|
+
`))}t(Q_t,"logIssue");function pdr(o){if(o?.file){let s=o.file;if(o.line)return`${s}:${o.line}`;if(o.column)return`${s}:${o.column}`}}t(pdr,"getFileLocation");var ST=class{static{t(this,"PluginResult")}errors=[];warnings=[];constructor(s){s&&this.errors.push(s)}};async function tpt(o,s,f){let d=[],y=[],x=new Map;for await(let P of o)try{let F=await P(s,{data:x,errors:y,warnings:d});if(y.push(...F.errors.map(J=>(J.pluginName===""&&(J.pluginName=P.name),J))),d.push(...F.warnings),F.errors.length>0)break}catch(F){if(F instanceof w1?y.push({...F.issue,pluginName:F.pluginName??"unknown"}):y.push(F),f?.throwOnException)throw F;break}return{errors:y,warnings:d,data:x}}t(tpt,"runPlugins");import{readFile as ddr}from"node:fs/promises";import rpt from"node:path";import{parse as mdr}from"jsonc-parser";var s3e={version:1,compatibilityDate:void 0,allowDuplicateRoutes:!1,allowHostHeaderOverride:!1,flags:{},experimental:{},projectType:"managed-edge"};async function GM(o){let s=rpt.join(o,drt),f=rpt.join(o,mrt),d=!1,y=s;await tu.fileExists(s)?(d=!0,y=s):await tu.fileExists(f)&&(d=!0,y=f);let x;if(d){let F=await ddr(y,"utf-8");if(x=mdr(F,[]),typeof x!="object")return{status:L9,errors:[{message:"Invalid zuplo.jsonc file.",detail:"The zuplo.jsonc file is not a valid JSON object",pluginName:"buildData",severity:"error"}]};let G=[];"version"in x&&x.version!==1&&G.push({message:"Invalid version set in zuplo.jsonc file.",detail:"version in zuplo.jsonc must be set to 1",pluginName:"buildData",severity:"error"}),"compatibilityDate"in x&&R9&&typeof x.compatibilityDate=="string"&&(R9.includes(x.compatibilityDate)||G.push({message:"Invalid compatibilityDate set in zuplo.jsonc file.",detail:`compatibilityDate was set to ${x.compatibilityDate}. Valid compatibility dates are ${R9.join(", ")}`,pluginName:"buildData",severity:"error"}));for(let Se of["allowDuplicateRoutes","allowHostHeaderOverride"]){let de=x[Se];de!==void 0&&typeof de!="boolean"&&G.push({message:`Invalid property type for ${Se}`,detail:`The property ${Se} must be a boolean.`,pluginName:"buildData",severity:"error"})}if(x.projectType!==void 0&&!["managed-edge","managed-dedicated","self-managed"].includes(x.projectType)&&G.push({message:"Invalid projectType set in zuplo.jsonc file.",detail:`projectType was set to ${x.projectType}. Valid project types are managed-edge, managed-dedicated, self-managed`,pluginName:"buildData",severity:"error"}),G.length>0)return{status:L9,errors:G};x.flags=coe(x.compatibilityDate,x.flags)}else x={version:1,flags:coe(void 0,void 0)};let P={...s3e,...x};return{status:LP,config:P}}t(GM,"getZuploConfig");import hdr from"node:fs";import{mkdir as npt,readdir as gdr,readFile as ydr,writeFile as vdr}from"node:fs/promises";import lG from"node:path";import bdr from"node:readline";var ipt=t(async function({sourceDirectory:o,logger:s,outputDirectory:f,deploymentName:d,environmentType:y,urls:x}){return Ou.timeFn("Building OpenAPI files",async()=>{s.debug("Building OpenAPI files");let P=lG.join(o,D1),F=lG.join(P,doe),J=lG.join(f,_rt,D1);try{if(await tu.dirExists(f)||await npt(f),await tu.dirExists(J)||await npt(J,{recursive:!0}),!await X9(o))return new ST({message:"Failed to build project because no OpenAPI file was found on the 'config' folder",pluginName:"build-open-api-files",severity:"error"});let de=(await gdr(P)).filter(Fe=>Fe.endsWith(".oas.json"));if(!await tu.fileExists(F))return new ST({message:"The project must include a policies file ('/config/policies.json')",pluginName:"build-open-api-files",severity:"error"});let ae=await ydr(F,"utf-8"),Ke=JSON.parse(ae),$e=t(async Fe=>{let Gt=lG.join(P,Fe);if(!await Sdr(Gt)){s.debug(`Skipping ${Fe} as it does not use the OpenAPI handler`);return}let jt;try{jt=await $ft({sourceDirectory:o,openApiDocPath:Gt,policiesConfig:Ke,logger:s,environmentType:y,deploymentName:d,urls:x})}catch(sn){if(s.error(sn),sn instanceof SyntaxError||sn instanceof vT.ResolverError||sn instanceof vT.JSONParserError||sn instanceof vT.ParserError||sn instanceof vT.MissingPointerError||sn instanceof BO)return new ST({message:sn.message,location:{file:Fe,column:0,length:0,line:0,lineText:"",namespace:"",suggestion:""},pluginName:"build-open-api-files",severity:"error"});if(sn instanceof w1)return new ST({...sn.issue,pluginName:"build-open-api-files"});throw sn}let Pr=JSON.stringify(jt,null,2),Fn=lG.join(J,Fe);await vdr(Fn,Pr,"utf-8")},"processFile");await Promise.all(de.map($e))}catch(G){return s.error(G),new ST({message:"Error building OpenAPI files",pluginName:"build-open-api-files",severity:"error"})}return new ST})},"buildOpenApiFiles");async function Sdr(o){let s=hdr.createReadStream(o),f=bdr.createInterface({input:s,crlfDelay:1/0}),d=!1,y=!1;for await(let x of f)if(x.includes('"openApiSpecHandler"')&&(d=!0),x.includes('"openApiFilePath"')&&(y=!0),d&&y)break;return f.close(),s.destroy(),d&&y}t(Sdr,"usesOpenApiHandler");import Tdr from"node:fs/promises";import xdr from"node:path";var spt=t(async function({outputDirectory:o,systemDirectory:s,cacheDirectory:f,logger:d}){return Ou.timeFn("Cleaning output",async()=>{d.debug("Cleaning output");let y=xdr.join(f,"routes");return await Promise.all([o,s,y].map(async x=>{try{await Tdr.rm(x,{recursive:!0,force:!0})}catch(P){d.error(P)}})),{warnings:[],errors:[]}})},"cleanOutput");import apt from"node:fs/promises";var opt=t(async function({systemDirectory:o,cacheDirectory:s,logger:f}){return Ou.timeFn("Creating system directory",async()=>{f.debug("Creating system directory");try{return await Promise.all([apt.mkdir(o,{recursive:!0}),apt.mkdir(s,{recursive:!0})]),{warnings:[],errors:[]}}catch(d){return f.error(d),{warnings:[],errors:[]}}return{warnings:[],errors:[]}})},"createSystemDir");var cpt=t(async function({logger:o}){return Ou.timeFn("Checking for breaking changes",async()=>(o.debug("Checking for breaking changes"),{warnings:[],errors:[]}))},"checkForDeprecations");import{readFile as Edr,writeFile as Cdr}from"node:fs/promises";import kdr from"node:path";var lpt=t(async function({systemDirectory:o,buildId:s,logger:f,config:d,publicZuploEnvironmentVariables:y}){return Ou.timeFn("Generating build data",async()=>{f.debug("Generating build data");let x=await Edr(new URL("../../../package.json",import.meta.url),"utf-8"),P=JSON.parse(x),F={BUILD_ID:s??"",GIT_SHA:process.env.GIT_SHA,TIMESTAMP:new Date().toISOString(),BUILD_ENV:Gm.NODE_ENV,ZUPLO_VERSION:P.version,API_VERSION:process.env.API_VERSION,COMPATIBILITY_DATE:d?.compatibilityDate,ACCOUNT_NAME:y?.ZUPLO_ACCOUNT_NAME,PROJECT_NAME:y?.ZUPLO_PROJECT_NAME,ENVIRONMENT_TYPE:y?.ZUPLO_ENVIRONMENT_TYPE,IS_LOCAL_DEVELOPMENT:Gm.isLocalDevelopment(),COMPATIBILITY_FLAGS:SPe[d?.compatibilityDate??"none"]},J=JSON.stringify(F,void 0,2),G=kdr.join(o,moe);try{await Cdr(G,J.trimStart(),"utf-8")}catch(Se){f.error(Se);let de={message:`Error creating file at ${G}`,pluginName:"buildData",severity:"error"};return{warnings:[],errors:[de]}}return{warnings:[],errors:[]}})},"generateBuildData");import wdr from"node:fs/promises";import Ddr from"node:path";var Pdr=`import { Handler, ServiceProviderImpl } from "@zuplo/runtime";
|
|
613
613
|
import routeLoader from "zuplo:routes";
|
|
614
614
|
import * as schemaValidations from "zuplo:schema-validations";
|
|
615
615
|
import { runtimeInit } from "zuplo:runtime-extension";
|
|
@@ -637,12 +637,12 @@ export default {
|
|
|
637
637
|
return handler.requestHandler(request, env, ctx)
|
|
638
638
|
},
|
|
639
639
|
};
|
|
640
|
-
`,upt=t(async function({systemDirectory:o,logger:s}){return Ou.timeFn("Generating Worker shim",async()=>{s.debug("Generating Worker shim");let f=Ddr.join(o,hoe);try{await wdr.writeFile(f,Pdr,"utf-8")}catch(d){s.error(d);let y={message:`Error creating file at ${f}`,pluginName:"generate-worker-entry",severity:"error"};return{warnings:[],errors:[y]}}return{warnings:[],errors:[]}})},"generateWorker");import{
|
|
640
|
+
`,upt=t(async function({systemDirectory:o,logger:s}){return Ou.timeFn("Generating Worker shim",async()=>{s.debug("Generating Worker shim");let f=Ddr.join(o,hoe);try{await wdr.writeFile(f,Pdr,"utf-8")}catch(d){s.error(d);let y={message:`Error creating file at ${f}`,pluginName:"generate-worker-entry",severity:"error"};return{warnings:[],errors:[y]}}return{warnings:[],errors:[]}})},"generateWorker");import{readdir as Adr,readFile as Ndr}from"node:fs/promises";import fpt from"node:path";var iue="validate-open-api-files",_pt=t(async function({sourceDirectory:o,logger:s}){return Ou.timeFn("Validating OpenAPI files",async()=>{s.debug("Validating OpenAPI files");let f=fpt.join(o,D1),d=[];try{if(!await X9(o))return new ST({message:"Failed to build project because no open-api file was found on the 'config' folder",pluginName:iue,severity:"error"});let P=(await Adr(f)).filter(J=>J.endsWith(".oas.json")),F=t(async J=>{let G=fpt.join(f,J);try{J==="zp.oas.json"&&d.push({message:"Open API files cannot be named 'zp.oas.json' since 'zp' is a reserved prefix. Update the file name to solve this build issue.",pluginName:iue,severity:"error"});let Se=await Ndr(G,"utf-8"),de=JSON.parse(Se);if(de?.paths){let ae=Object.entries(de.paths).filter(Ke=>Ke[0]==="zp"||Ke[0]==="/zp");if(ae.length>0){let Ke=ae.length===1?"includes one route path":`includes '${ae.length}' routes`;d.push({message:`Open API file '${J}' ${Ke} that's named '/zp' which is a reserved route name. Updating the route to something other than '/zp' will solve this build issue.`,pluginName:iue,severity:"error"})}}}catch(Se){s.error(Se)}},"validateOpenApiFile");await Promise.all(P.map(F))}catch(y){return s.error(y),d.length>0?{errors:d,warnings:[]}:new ST({message:"Failed while validating the open api files in the project",pluginName:iue,severity:"warning"})}return{errors:d,warnings:[]}})},"validateOpenAPIFiles");import{readFile as Xdr,writeFile as Ipt}from"node:fs/promises";import Zdr from"node:path";var XM=Sd(b3e(),1);import{parse as Qdr}from"jsonc-parser";var KM=Sd(b3e(),1);var Npt=t(()=>({include:["modules/**/*",".zuplo/**/*","tests/**/*"],exclude:["./node_modules","./dist"],compilerOptions:{module:KM.ModuleKind.ESNext,target:KM.ScriptTarget.ES2022,moduleResolution:KM.ModuleResolutionKind.Bundler,lib:["ESNext","WebWorker","Webworker.Iterable"],preserveConstEnums:!0,useUnknownInCatchVariables:!1,forceConsistentCasingInFileNames:!0,importHelpers:!0,esModuleInterop:!0,strictNullChecks:!0,noEmit:!0}}),"getZuploTsConfigTemplate");var qO="validate-tsconfig",Opt=t(async function({sourceDirectory:o,logger:s,command:f,environmentType:d}){return Ou.timeFn("Validate TSConfig",async()=>{s.debug("Validate TSConfig");let y=d==="WORKING_COPY"||f==="dev";try{let x=Npt(),P=Zdr.join(o,"tsconfig.json");if(!await tu.fileExists(P))return y?(await Ipt(P,JSON.stringify(x,null,2)),{warnings:[{message:"This project does not have a tsconfig.json file. The file has been created for you.",severity:"warning",pluginName:qO,helpUrl:"https://zuplo.com/docs/articles/tsconfig"}],errors:[]}):{warnings:[],errors:[{message:"This project does not have a tsconfig.json file.",severity:"error",pluginName:qO,helpUrl:"https://zuplo.com/docs/articles/tsconfig"}]};let F=await Xdr(P,"utf-8"),J=Qdr(F);if(!(J&&typeof J=="object"&&"compilerOptions"in J))return y?(await Ipt(P,JSON.stringify(x,null,2)),{warnings:[{message:"This project's tsconfig.json file was invalid. A valid file has been written for you.",severity:"warning",pluginName:qO,helpUrl:"https://zuplo.com/docs/articles/tsconfig"}],errors:[]}):{warnings:[],errors:[{message:"This project's tsconfig.json file is invalid. It must have a compilerOptions.",severity:"error",pluginName:qO,helpUrl:"https://zuplo.com/docs/articles/tsconfig"}]};let G=XM.default.convertCompilerOptionsFromJson(J.compilerOptions,o);if(G.errors.length>0)return{warnings:[],errors:G.errors.map(Un=>({severity:"error",pluginName:qO,message:Un.messageText.toString(),detail:"You will need to modify your tsconfig.json file to build this project.",helpUrl:"https://zuplo.com/docs/articles/tsconfig",location:Un.file?{line:Un.file.getLineStarts()[0],length:Un.file.getWidth(),file:Un.file.fileName,column:Un.file.getStart(),lineText:"",namespace:"",suggestion:""}:void 0}))};if(!J||typeof J!="object")throw new TypeError("The userConfigRaw is not an object, this should not happen.");if(!("compilerOptions"in J)||J.compilerOptions===null||J.compilerOptions===void 0||typeof J.compilerOptions!="object")throw new TypeError("The userConfigRaw.compilerOptions property is not an object, this should not happen.");let Se=t((Un,Er,vr)=>`The compiler option '${Un}' should ${Er===void 0?"not be set":`be set to '${typeof Er=="string"?Er:JSON.stringify(Er)}'`}, it was ${vr===void 0?"not set":`set to '${typeof vr=="string"?vr:JSON.stringify(vr)}'`}`,"getMessage"),de="ESNext",ae=XM.ModuleKind.ESNext,Ke=[];G.options.module!==ae&&Ke.push(Se("module",de,J.compilerOptions.module));let $e="ES2022",Fe=XM.default.ScriptTarget.ES2022;G.options.target!==Fe&&Ke.push(Se("target",$e,J.compilerOptions.target));let Gt="Bundler",jt=XM.default.ModuleResolutionKind.Bundler;G.options.moduleResolution!==jt&&Ke.push(Se("moduleResolution",Gt,J.compilerOptions.moduleResolution));let Pr=["ESNext","WebWorker","Webworker.Iterable"];t(Un=>{let Er=Pr.map(ls=>ls.toLowerCase()),vr=Un.map(ls=>ls.toLowerCase());return Er.every(ls=>vr.includes(ls))},"includesAllLibs")(J.compilerOptions.lib??[])||Ke.push(Se("lib",Pr,J.compilerOptions.lib)),G.options.baseUrl&&Ke.push(Se("baseUrl",void 0,J.compilerOptions.baseUrl));let sn=[];return Ke.length>0&&sn.push({message:"This project's tsconfig.json was not set to the recommended settings. Custom settings may cause build issues. For guidance on how to adjust your settings, please visit: https://zuplo.com/docs/articles/tsconfig",severity:"warning",detail:Ke.join(`
|
|
641
641
|
`),pluginName:qO,helpUrl:"https://zuplo.com/docs/articles/tsconfig"}),{warnings:sn,errors:[]}}catch(x){s.error(x);let P={message:`Error validating tsconfig.json : ${x.message}`,severity:"error",pluginName:qO};return{warnings:[],errors:[P]}}})},"validateTSConfig");var VO;try{let o=emr(new URL("../../package.json",import.meta.url),"utf-8");VO=JSON.parse(o).version}catch{VO="0.0.0"}function tmr(o){let{ZUPLO:s,ZUPLO_BUILD_ID:f,ZUPLO_BUILD_CONFIG:d}=process.env;if(s&&f&&d){let y;try{y=JSON.parse(d)}catch{throw new Error("Couuld not parse ZUPLO_BUILD_CONFIG")}let x={ZUPLO_PROJECT_ID:y.projectId,ZUPLO_ACCOUNT_NAME:y.accountName,ZUPLO_PROJECT_NAME:y.projectName,ZUPLO_ENVIRONMENT_TYPE:y.environmentType};for(let[P,F]of Object.entries(process.env))P.startsWith("ZUPLO_PUBLIC_")&&(x[P]=F??"");return{...o,buildId:f,...y,publicZuploEnvironmentVariables:x}}return o}t(tmr,"getBuildConfig");async function S3e(o){let s=performance.now(),{buildId:f,sourceDirectory:d,deploymentName:y=cue.basename(d),command:x,minify:P,entitlements:F,environmentType:J,logger:G,output:Se,noCompile:de=!1,projectId:ae,urls:Ke,publicZuploEnvironmentVariables:$e}=tmr(o),Fe=await GM(d),Gt=cue.join(d,U9),jt;if("errors"in Fe)i3e({output:Se.child("api"),buildId:f,runtimeVersion:VO}),jt={status:"Failed",runtimeVersion:VO,outputPath:Gt,buildTime:new Date().toISOString(),buildTimeMs:0,buildId:f,warnings:[],errors:Fe.errors,metafile:void 0,config:void 0};else{de||i3e({output:Se.child("api"),buildId:f,runtimeVersion:VO,compatibilityDate:Fe.config.compatibilityDate});let sn={command:x,minify:P,deploymentName:y,sourceDirectory:d,outputDirectory:Gt,systemDirectory:cue.join(d,Ng),cacheDirectory:cue.join(d,"node_modules",Ng),buildId:f,logger:G,output:Se,config:Fe.config,publicZuploEnvironmentVariables:$e,projectId:ae,entitlements:F,environmentType:J,urls:Ke},Un=[];Un.push(spt),Un.push(opt),Un.push(cpt),Un.push(lpt),Un.push(Opt),Un.push(_pt),Un.push(upt),de||Un.push(K_t),Un.push(ipt);let Er=await tpt(Un,sn),vr=Er.errors.length>0?L9:Er.warnings.length>0?vPe:LP,ls=Er.data.get("metafile");jt=vr==="Failed"?{status:vr,config:void 0,runtimeVersion:VO,outputPath:Gt,buildTime:new Date().toISOString(),buildTimeMs:0,metafile:ls,buildId:f,warnings:Er.warnings,errors:Er.errors}:{status:vr,config:Fe.config,runtimeVersion:VO,outputPath:Gt,buildTime:new Date().toISOString(),buildTimeMs:0,metafile:ls,buildId:f,warnings:Er.warnings,errors:Er.errors}}jt.warnings.length>0&&jt.warnings.forEach(sn=>{G.warn(sn)}),jt.errors.length>0&&jt.errors.forEach(sn=>{G.error(sn)});let{metafile:Pr,...Fn}=jt;if(G.debug(Fn,"Compiler completed"),jt.buildTimeMs=performance.now()-s,de||await nue(d,Se.child("api"),jt),process.env.ZUPLO_SHOW_PERF){console.log();let sn=jt.buildTimeMs<2e3?"green":jt.buildTimeMs<5e3?"yellow":"red";console.log(g_[sn](`Build time: ${jt.buildTimeMs.toFixed(0)}ms`)),Ou.report()}return Ou.clear(),jt}t(S3e,"build");import{existsSync as Ivr}from"node:fs";import{mkdir as Ovr,readFile as Fvr}from"node:fs/promises";import AG from"node:path";var L0t=Sd(I8e(),1);import{randomUUID as Qht}from"node:crypto";import Zyr from"node:events";import CG from"node:path";import Qyr from"chokidar";import*as egt from"esbuild";var O8e=class extends Zyr{static{t(this,"WatchEmitter")}},MI=class{static{t(this,"BuildWatcher")}esbuildContext;emitter=new O8e;envFilesWatcher;outputDirectory;sourceDirectory;command;logger;publicZuploEnvironmentVariables;buildId;output;urls;constructor({sourceDirectory:s,command:f,logger:d,publicZuploEnvironmentVariables:y={},buildId:x,output:P,urls:F}){this.sourceDirectory=s,this.command=f,this.outputDirectory=CG.join(s,U9),this.logger=d,this.publicZuploEnvironmentVariables=y,this.buildId=x,this.output=P,this.urls=F,this.envFilesWatcher=Qyr.watch([CG.join(s,".env"),CG.join(s,".env.zuplo")])}watchEnvFiles(){this.envFilesWatcher.on("change",()=>{this.emitter.emit("reload",null,null)}),this.envFilesWatcher.on("add",()=>{this.emitter.emit("reload",null,null)}),this.envFilesWatcher.on("unlink",()=>{this.emitter.emit("reload",null,null)})}onReload=t(s=>{this.emitter.on("reload",s)},"onReload");async start(){let{sourceDirectory:s}=this;if(this.esbuildContext!==void 0)throw new Error("Watcher cannot be started more than once");let f=await S3e({buildId:this.buildId,output:this.output,sourceDirectory:s,noCompile:!0,command:this.command,publicZuploEnvironmentVariables:this.publicZuploEnvironmentVariables,logger:this.logger,urls:this.urls}),d=await cG({command:this.command,systemDirectory:CG.join(s,Ng),cacheDirectory:CG.join(s,"node_modules",Ng),outputDirectory:this.outputDirectory,sourceDirectory:s,config:f.config??s3e,logger:this.logger,urls:this.urls}),y=this;d.plugins?.push({name:"on-end",setup(x){x.onEnd(P=>{y.logger.debug("Watcher (build) reloaded");let F=r3e({buildId:Qht(),result:P});F.errors.length>0?y.logger.error(F.errors,"Build errors"):y.logger.debug(`Successfully rebuilt watched project. Build id ${F.buildId}`);let J={...F,...f.status==="Good"?{config:f.config}:{config:void 0}};y.emitter.emit("reload",J,null)})}}),this.esbuildContext=await egt.context(d);try{if((await this.esbuildContext.rebuild()).errors.length>0){let P={status:"Failed",runtimeVersion:"0.0.0",buildTime:"",buildTimeMs:0,buildId:Qht(),warnings:[],errors:[],metafile:void 0,config:void 0};await nue(s,y.output.child("api"),P),this.logger.error(P.errors,"Build errors")}}catch(x){throw await this.close(),x}await this.esbuildContext.watch()}async close(){try{await this.envFilesWatcher.close(),this.esbuildContext&&(await this.esbuildContext.dispose(),this.logger.debug("ESBuild watcher closed"))}catch(s){this.logger.error(s)}}};import{existsSync as O0t,readFileSync as F0t}from"node:fs";import Vfe from"node:path";var iOe=Sd(agt(),1);var N0t=Sd(Ggt(),1);import{Buffer as kvr}from"node:buffer";import wvr from"node:path";import A0t from"node:child_process";import qfe from"node:process";function q8e(o){let s=typeof o=="string"?`
|
|
642
642
|
`:10,f=typeof o=="string"?"\r":13;return o[o.length-1]===s&&(o=o.slice(0,-1)),o[o.length-1]===f&&(o=o.slice(0,-1)),o}t(q8e,"stripFinalNewline");import Mfe from"node:process";import wG from"node:path";import{fileURLToPath as Ygt}from"node:url";function Rfe(o={}){let{env:s=process.env,platform:f=process.platform}=o;return f!=="win32"?"PATH":Object.keys(s).reverse().find(d=>d.toUpperCase()==="PATH")||"Path"}t(Rfe,"pathKey");var U1r=t(({cwd:o=Mfe.cwd(),path:s=Mfe.env[Rfe()],preferLocal:f=!0,execPath:d=Mfe.execPath,addExecPath:y=!0}={})=>{let x=o instanceof URL?Ygt(o):o,P=wG.resolve(x),F=[];return f&&z1r(F,P),y&&$1r(F,d,P),[...F,s].join(wG.delimiter)},"npmRunPath"),z1r=t((o,s)=>{let f;for(;f!==s;)o.push(wG.join(s,"node_modules/.bin")),f=s,s=wG.resolve(s,"..")},"applyPreferLocal"),$1r=t((o,s,f)=>{let d=s instanceof URL?Ygt(s):s;o.push(wG.resolve(f,d,".."))},"applyExecPath"),Kgt=t(({env:o=Mfe.env,...s}={})=>{o={...o};let f=Rfe({env:o});return s.path=o[f],o[f]=U1r(s),o},"npmRunPathEnv");var J1r=t((o,s,f,d)=>{if(f==="length"||f==="prototype"||f==="arguments"||f==="caller")return;let y=Object.getOwnPropertyDescriptor(o,f),x=Object.getOwnPropertyDescriptor(s,f);!W1r(y,x)&&d||Object.defineProperty(o,f,x)},"copyProperty"),W1r=t(function(o,s){return o===void 0||o.configurable||o.writable===s.writable&&o.enumerable===s.enumerable&&o.configurable===s.configurable&&(o.writable||o.value===s.value)},"canCopyProperty"),q1r=t((o,s)=>{let f=Object.getPrototypeOf(s);f!==Object.getPrototypeOf(o)&&Object.setPrototypeOf(o,f)},"changePrototype"),V1r=t((o,s)=>`/* Wrapped ${o}*/
|
|
643
643
|
${s}`,"wrappedToString"),H1r=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),G1r=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),Y1r=t((o,s,f)=>{let d=f===""?"":`with ${f.trim()}() `,y=V1r.bind(null,d,s.toString());Object.defineProperty(y,"name",G1r),Object.defineProperty(o,"toString",{...H1r,value:y})},"changeToString");function V8e(o,s,{ignoreNonConfigurable:f=!1}={}){let{name:d}=o;for(let y of Reflect.ownKeys(s))J1r(o,s,y,f);return q1r(o,s),Y1r(o,s,d),o}t(V8e,"mimicFunction");var jfe=new WeakMap,Xgt=t((o,s={})=>{if(typeof o!="function")throw new TypeError("Expected a function");let f,d=0,y=o.displayName||o.name||"<anonymous>",x=t(function(...P){if(jfe.set(x,++d),d===1)f=o.apply(this,P),o=null;else if(s.throw===!0)throw new Error(`Function \`${y}\` can only be called once`);return f},"onetime");return V8e(x,o),jfe.set(x,d),x},"onetime");Xgt.callCount=o=>{if(!jfe.has(o))throw new Error(`The given function \`${o.name}\` is not wrapped by the \`onetime\` package`);return jfe.get(o)};var Zgt=Xgt;import{constants as Q1r}from"os";var Qgt=t(function(){let o=H8e-e0t+1;return Array.from({length:o},K1r)},"getRealtimeSignals"),K1r=t(function(o,s){return{name:`SIGRT${s+1}`,number:e0t+s,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},"getRealtimeSignal"),e0t=34,H8e=64;import{constants as X1r}from"os";var t0t=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];var G8e=t(function(){let o=Qgt();return[...t0t,...o].map(Z1r)},"getSignals"),Z1r=t(function({name:o,number:s,description:f,action:d,forced:y=!1,standard:x}){let{signals:{[o]:P}}=X1r,F=P!==void 0;return{name:o,number:F?P:s,description:f,supported:F,action:d,forced:y,standard:x}},"normalizeSignal");var evr=t(function(){return G8e().reduce(tvr,{})},"getSignalsByName"),tvr=t(function(o,{name:s,number:f,description:d,supported:y,action:x,forced:P,standard:F}){return{...o,[s]:{name:s,number:f,description:d,supported:y,action:x,forced:P,standard:F}}},"getSignalByName"),r0t=evr(),rvr=t(function(){let o=G8e(),s=H8e+1,f=Array.from({length:s},(d,y)=>nvr(y,o));return Object.assign({},...f)},"getSignalsByNumber"),nvr=t(function(o,s){let f=ivr(o,s);if(f===void 0)return{};let{name:d,description:y,supported:x,action:P,forced:F,standard:J}=f;return{[o]:{name:d,number:o,description:y,supported:x,action:P,forced:F,standard:J}}},"getSignalByNumber"),ivr=t(function(o,s){let f=s.find(({name:d})=>Q1r.signals[d]===o);return f!==void 0?f:s.find(d=>d.number===o)},"findSignalByNumber"),IRr=rvr();var svr=t(({timedOut:o,timeout:s,errorCode:f,signal:d,signalDescription:y,exitCode:x,isCanceled:P})=>o?`timed out after ${s} milliseconds`:P?"was canceled":f!==void 0?`failed with ${f}`:d!==void 0?`was killed with ${d} (${y})`:x!==void 0?`failed with exit code ${x}`:"failed","getErrorPrefix"),Y8e=t(({stdout:o,stderr:s,all:f,error:d,signal:y,exitCode:x,command:P,escapedCommand:F,timedOut:J,isCanceled:G,killed:Se,parsed:{options:{timeout:de}}})=>{x=x===null?void 0:x,y=y===null?void 0:y;let ae=y===void 0?void 0:r0t[y].description,Ke=d&&d.code,Fe=`Command ${svr({timedOut:J,timeout:de,errorCode:Ke,signal:y,signalDescription:ae,exitCode:x,isCanceled:G})}: ${P}`,Gt=Object.prototype.toString.call(d)==="[object Error]",jt=Gt?`${Fe}
|
|
644
644
|
${d.message}`:Fe,Pr=[jt,s,o].filter(Boolean).join(`
|
|
645
|
-
`);return Gt?(d.originalMessage=d.message,d.message=Pr):d=new Error(Pr),d.shortMessage=jt,d.command=P,d.escapedCommand=F,d.exitCode=x,d.signal=y,d.signalDescription=ae,d.stdout=o,d.stderr=s,f!==void 0&&(d.all=f),"bufferedData"in d&&delete d.bufferedData,d.failed=!0,d.timedOut=!!J,d.isCanceled=G,d.killed=Se&&!J,d},"makeError");var Bfe=["stdin","stdout","stderr"],avr=t(o=>Bfe.some(s=>o[s]!==void 0),"hasAlias"),n0t=t(o=>{if(!o)return;let{stdio:s}=o;if(s===void 0)return Bfe.map(d=>o[d]);if(avr(o))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Bfe.map(d=>`\`${d}\``).join(", ")}`);if(typeof s=="string")return s;if(!Array.isArray(s))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof s}\``);let f=Math.max(s.length,Bfe.length);return Array.from({length:f},(d,y)=>s[y])},"normalizeStdio");var u0t=Sd(l0t(),1);import ovr from"node:os";var cvr=1e3*5,f0t=t((o,s="SIGTERM",f={})=>{let d=o(s);return lvr(o,s,f,d),d},"spawnedKill"),lvr=t((o,s,f,d)=>{if(!uvr(s,f,d))return;let y=_vr(f),x=setTimeout(()=>{o("SIGKILL")},y);x.unref&&x.unref()},"setKillTimeout"),uvr=t((o,{forceKillAfterTimeout:s},f)=>fvr(o)&&s!==!1&&f,"shouldForceKill"),fvr=t(o=>o===ovr.constants.signals.SIGTERM||typeof o=="string"&&o.toUpperCase()==="SIGTERM","isSigterm"),_vr=t(({forceKillAfterTimeout:o=!0})=>{if(o===!0)return cvr;if(!Number.isFinite(o)||o<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${o}\` (${typeof o})`);return o},"getForceKillAfterTimeout"),_0t=t((o,s)=>{o.kill()&&(s.isCanceled=!0)},"spawnedCancel"),pvr=t((o,s,f)=>{o.kill(s),f(Object.assign(new Error("Timed out"),{timedOut:!0,signal:s}))},"timeoutKill"),p0t=t((o,{timeout:s,killSignal:f="SIGTERM"},d)=>{if(s===0||s===void 0)return d;let y,x=new Promise((F,J)=>{y=setTimeout(()=>{pvr(o,f,J)},s)}),P=d.finally(()=>{clearTimeout(y)});return Promise.race([x,P])},"setupTimeout"),d0t=t(({timeout:o})=>{if(o!==void 0&&(!Number.isFinite(o)||o<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${o}\` (${typeof o})`)},"validateTimeout"),m0t=t(async(o,{cleanup:s,detached:f},d)=>{if(!s||f)return d;let y=(0,u0t.default)(()=>{o.kill()});return d.finally(()=>{y()})},"setExitHandler");function h0t(o){return o!==null&&typeof o=="object"&&typeof o.pipe=="function"}t(h0t,"isStream");var tOe=Sd(v0t(),1),T0t=Sd(S0t(),1);var x0t=t((o,s)=>{s===void 0||o.stdin===void 0||(h0t(s)?s.pipe(o.stdin):o.stdin.end(s))},"handleInput"),E0t=t((o,{all:s})=>{if(!s||!o.stdout&&!o.stderr)return;let f=(0,T0t.default)();return o.stdout&&f.add(o.stdout),o.stderr&&f.add(o.stderr),f},"makeAllStream"),Q8e=t(async(o,s)=>{if(o){o.destroy();try{return await s}catch(f){return f.bufferedData}}},"getBufferedData"),eOe=t((o,{encoding:s,buffer:f,maxBuffer:d})=>{if(!(!o||!f))return s?(0,tOe.default)(o,{encoding:s,maxBuffer:d}):tOe.default.buffer(o,{maxBuffer:d})},"getStreamPromise"),C0t=t(async({stdout:o,stderr:s,all:f},{encoding:d,buffer:y,maxBuffer:x},P)=>{let F=eOe(o,{encoding:d,buffer:y,maxBuffer:x}),J=eOe(s,{encoding:d,buffer:y,maxBuffer:x}),G=eOe(f,{encoding:d,buffer:y,maxBuffer:x*2});try{return await Promise.all([P,F,J,G])}catch(Se){return Promise.all([{error:Se,signal:Se.signal,timedOut:Se.timedOut},Q8e(o,F),Q8e(s,J),Q8e(f,G)])}},"getSpawnedResult");var Svr=(async()=>{})().constructor.prototype,Tvr=["then","catch","finally"].map(o=>[o,Reflect.getOwnPropertyDescriptor(Svr,o)]),rOe=t((o,s)=>{for(let[f,d]of Tvr){let y=typeof s=="function"?(...x)=>Reflect.apply(d.value,s(),x):d.value.bind(s);Reflect.defineProperty(o,f,{...d,value:y})}return o},"mergePromise"),k0t=t(o=>new Promise((s,f)=>{o.on("exit",(d,y)=>{s({exitCode:d,signal:y})}),o.on("error",d=>{f(d)}),o.stdin&&o.stdin.on("error",d=>{f(d)})}),"getSpawnedPromise");var w0t=t((o,s=[])=>Array.isArray(s)?[o,...s]:[o],"normalizeArgs"),xvr=/^[\w.-]+$/,Evr=/"/g,Cvr=t(o=>typeof o!="string"||xvr.test(o)?o:`"${o.replace(Evr,'\\"')}"`,"escapeArg"),D0t=t((o,s)=>w0t(o,s).join(" "),"joinCommand"),P0t=t((o,s)=>w0t(o,s).map(f=>Cvr(f)).join(" "),"getEscapedCommand");var Dvr=1e3*1e3*100,Pvr=t(({env:o,extendEnv:s,preferLocal:f,localDir:d,execPath:y})=>{let x=s?{...qfe.env,...o}:o;return f?Kgt({env:x,cwd:d,execPath:y}):x},"getEnv"),Avr=t((o,s,f={})=>{let d=N0t.default._parse(o,s,f);return o=d.command,s=d.args,f=d.options,f={maxBuffer:Dvr,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:f.cwd||qfe.cwd(),execPath:qfe.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...f},f.env=Pvr(f),f.stdio=n0t(f),qfe.platform==="win32"&&wvr.basename(o,".exe")==="cmd"&&s.unshift("/q"),{file:o,args:s,options:f,parsed:d}},"handleArguments"),nOe=t((o,s,f)=>typeof s!="string"&&!kvr.isBuffer(s)?f===void 0?void 0:"":o.stripFinalNewline?q8e(s):s,"handleOutput");function I0t(o,s,f){let d=Avr(o,s,f),y=D0t(o,s),x=P0t(o,s);d0t(d.options);let P;try{P=A0t.spawn(d.file,d.args,d.options)}catch(Ke){let $e=new A0t.ChildProcess,Fe=Promise.reject(Y8e({error:Ke,stdout:"",stderr:"",all:"",command:y,escapedCommand:x,parsed:d,timedOut:!1,isCanceled:!1,killed:!1}));return rOe($e,Fe)}let F=k0t(P),J=p0t(P,d.options,F),G=m0t(P,d.options,J),Se={isCanceled:!1};P.kill=f0t.bind(null,P.kill.bind(P)),P.cancel=_0t.bind(null,P,Se);let ae=Zgt(t(async()=>{let[{error:Ke,exitCode:$e,signal:Fe,timedOut:Gt},jt,Pr,Fn]=await C0t(P,d.options,G),sn=nOe(d.options,jt),Un=nOe(d.options,Pr),Er=nOe(d.options,Fn);if(Ke||$e!==0||Fe!==null){let vr=Y8e({error:Ke,exitCode:$e,signal:Fe,stdout:sn,stderr:Un,all:Er,command:y,escapedCommand:x,parsed:d,timedOut:Gt,isCanceled:Se.isCanceled||(d.options.signal?d.options.signal.aborted:!1),killed:P.killed});if(!d.options.reject)return vr;throw vr}return{command:y,escapedCommand:x,exitCode:0,stdout:sn,stderr:Un,all:Er,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},"handlePromise"));return x0t(P,d.options.input),P.all=E0t(P,d.options),rOe(P,ae)}t(I0t,"execa");async function Hfe(o,s){if(o.__ZUPLO_LOG_LEVEL=process.env.__ZUPLO_LOG_LEVEL??process.env.LOG_LEVEL,o.__ZUPLO_LOG_FORMAT=process.env.__ZUPLO_LOG_FORMAT??process.env.LOG_FORMAT,o.LOG_LEVEL=process.env.LOG_LEVEL??process.env.LOG_LEVEL,o.LOG_FORMAT=process.env.LOG_FORMAT??process.env.LOG_FORMAT,o.GIT_SHA=process.env.GIT_SHA??await Nvr(s),process.env.__ZUPLO_CONFIG&&(o.__ZUPLO_CONFIG=process.env.__ZUPLO_CONFIG),O0t(Vfe.join(s,".env.zuplo"))){let f=F0t(Vfe.join(s,".env.zuplo"),"utf8"),d=iOe.default.parse(f);for(let y of Object.keys(d))if(o[y]=d[y],y==="ZUPLO_SYSTEM_CONFIGURATIONS"){let x=Buffer.from(vce.decode(d[y])).toString(),P=JSON.parse(x);for(let F of Object.keys(P))o[F]=P[F]}}if(O0t(Vfe.join(s,".env"))){let f=F0t(Vfe.join(s,".env"),"utf8"),d=iOe.default.parse(f);for(let y of Object.keys(d))o[y]=d[y]}for(let f of Object.keys(o))o[f]===void 0&&delete o[f];return o}t(Hfe,"setEnvironment");async function Nvr(o){let s="unknown";try{let{stdout:f}=await I0t("git",["rev-parse","HEAD"],{cwd:o});f.trim().length===40&&(s=f.trim())}catch{}return s}t(Nvr,"getGitSha");async function Lvr({buildId:o,output:s,sourceDirectory:f,bundledDir:d,port:y,binaryName:x,publicZuploEnvironmentVariables:P,logger:F,handleRuntimeStdio:J}){if(d){let Se=AG.join(f,d,"modules.json");if(!Ivr(Se))throw new Error("The bundled-dir does not contain a modules.json file.");let de=await Fvr(Se,"utf-8").then(JSON.parse),ae=await GM(f);return ae.status===LP?new Promise((Ke,$e)=>{G(ae.config.compatibilityDate,AG.join(f,d),de,Ke,J)().catch(Fe=>{F.error(Fe),$e(Fe)})}):(F.warn("Failed to get Zuplo config. Using default compatibility date."),new Promise((Ke,$e)=>{G(void 0,f,de,Ke,J)().catch(Fe=>{F.error(Fe),$e(Fe)})}))}else{let Se=new MI({buildId:o,output:s,sourceDirectory:f,command:"dev",logger:F,publicZuploEnvironmentVariables:P??{ZUPLO_ENVIRONMENT_TYPE:"LOCAL_DEVELOPMENT"},urls:void 0});try{await Se.start()}catch{F.info("Ran into irrecoverable error while building. Fix the error and rerun the command."),process.exit(1)}return new Promise((de,ae)=>{Se.onReload((Ke,$e)=>{($e||Ke?.errors&&Ke.errors.length>0)&&ae($e??Ke?.errors),G(Ke?.config?.compatibilityDate,AG.join(f,"dist"),HM(f,Ke?.metafile),de,J)().catch(Fe=>{F.error(Fe),ae(Fe)})})})}function G(Se,de,ae,Ke,$e){return async()=>{let Fe={};await Hfe(Fe,f);let Gt=new L0t.ZuploWorkerd({compatibilityDate:Se,scriptDirectory:de,modules:ae,port:y??Gm.DEV_SERVER_PORT,bindings:Fe,handleRuntimeStdio:$e}),jt=x??"compiled-zup",Pr=AG.join(f,"dist");await Ovr(Pr,{recursive:!0}),await Gt.compileBinary({binaryPath:AG.join(f,"dist",jt)}),await Gt.dispose(),Ke(void 0)}}t(G,"compile")}t(Lvr,"compileWorkerdServer");var R0t=Sd(I8e(),1);import Mvr from"node:path";import Rvr from"node:net";function NG(o,s){return new Promise(f=>{let d=new Rvr.Socket;d.connect(s,o),d.on("connect",()=>{d.destroy(),f(!1)}),d.on("error",()=>{d.destroy(),f(!0)})})}t(NG,"isPortAvailable");var Gfe=class{static{t(this,"WorkerdServer")}sourceDirectory;port;debugPort;buildWatcher;workerd;logger;output;handleRuntimeStdio;onReload;constructor(s){if(this.sourceDirectory=s.sourceDirectory,this.port=s.port??Gm.DEV_SERVER_PORT,this.debugPort=s.debugPort,this.logger=s.logger,this.output=s.output,this.handleRuntimeStdio=s.handleRuntimeStdio,this.onReload=s.onReload,!s.zupTestMode){let f="http://localhost:3000",d=`http://localhost:${this.port}`;this.buildWatcher=new MI({...s,logger:this.logger,publicZuploEnvironmentVariables:{...s.publicZuploEnvironmentVariables,ZUPLO_ENVIRONMENT_TYPE:"LOCAL_DEVELOPMENT"},urls:{devPortal:{defaultUrl:f,urls:[f]},api:{defaultUrl:d,urls:[d]}}}),this.buildWatcher.watchEnvFiles()}}async start(){if(!await NG("localhost",this.port))throw new Error(`Port ${this.port} is currently in use. Please use a different port.`);if(this.buildWatcher)try{await this.buildWatcher.start()}catch(f){this.output.child("api").error(f.toString());let d="Ran into irrecoverable error while starting watcher. Fix the error and restart the server.";this.output.child("api").error(d),this.logger?.info(d),process.exit(1)}this.buildWatcher?.onReload((f,d)=>{d||f?.errors&&f.errors.length>0||(this.onReload(f,d),this.startOrReload(f).catch(y=>{this.output.child("api").error(y.toString()),this.logger?.error(y)}))})}async startOrReload(s){try{let f={};await Hfe(f,this.sourceDirectory),await this.workerd?.dispose(),this.workerd=new R0t.ZuploWorkerd({compatibilityDate:s?.config?.compatibilityDate,scriptDirectory:Mvr.join(this.sourceDirectory,"dist"),modules:HM(this.sourceDirectory,s?.metafile),port:this.port,inspectorPort:this.debugPort??void 0,bindings:f,handleRuntimeStdio:this.handleRuntimeStdio}),await this.workerd.serve()}catch(f){this.logger?.debug(f)}}async stop(){await this.buildWatcher?.close(),await this.workerd?.dispose()}};import{fileURLToPath as z0t}from"node:url";import{Readable as M0t}from"node:stream";import j0t from"node:assert";import jvr from"node:child_process";import Bvr from"node:fs";import Yfe from"node:os";import Uvr from"node:path";function B0t(o,s){let f=import.meta.resolve(o),d=new URL(".",f),y=new URL(s,d);if(Bvr.existsSync(y))return z0t(y)}t(B0t,"getValidExecutablePath");function zvr(){let o=Yfe.platform()==="win32"?"deno.exe":"deno",s=B0t("deno/package.json",o);if(s)return s;let f=$vr(),d=B0t(`@deno/${f}/package.json`,o);if(d)return d;throw new Error("Failed to locate the managed-dedicated server executable.")}t(zvr,"locateDenoExecutable");function $vr(){let o=Yfe.platform();return o==="linux"?`${o}-${U0t()}-glibc`:`${o}-${U0t()}`}t($vr,"getTarget");function U0t(){let o=Yfe.arch();if(o!=="arm64"&&o!=="x64")throw new Error("Unsupported architecture "+Yfe.arch()+". Only x64 and aarch64 binaries are available.");return o}t(U0t,"getArch");var Kfe=class{static{t(this,"ZenoServer")}serverProcess;sourceDirectory;port;debugPort;processExitPromise;logger;output;buildWatcher;onReload;handleRuntimeStdio;denoExecutablePath;unsafelyIgnoreCertificateErrors;constructor(s){if(this.port=s.port??9e3,this.debugPort=s.debugPort,this.logger=s.logger,this.output=s.output,this.onReload=s.onReload,this.handleRuntimeStdio=s.handleRuntimeStdio,this.sourceDirectory=s.sourceDirectory,this.unsafelyIgnoreCertificateErrors=!!s.unsafelyIgnoreCertificateErrors,!s.zupTestMode){let f="http://localhost:3000",d=`http://localhost:${this.port}`;this.buildWatcher=new MI({sourceDirectory:s.sourceDirectory,command:"dev",logger:s.logger,publicZuploEnvironmentVariables:{...s.publicZuploEnvironmentVariables,ZUPLO_ENVIRONMENT_TYPE:"LOCAL_DEVELOPMENT"},buildId:"dev",output:s.output,urls:{devPortal:{defaultUrl:f,urls:[f]},api:{defaultUrl:d,urls:[d]}}}),this.buildWatcher.watchEnvFiles()}this.denoExecutablePath=zvr()}getServeArgs(){let s=`${Uvr.dirname(z0t(import.meta.url))}/zeno.js`,f=["run","--allow-read","--allow-net","--allow-env","--allow-write",...this.unsafelyIgnoreCertificateErrors?["--unsafely-ignore-certificate-errors"]:[]];return this.debugPort&&f.push(`--inspect=127.0.0.1:${this.debugPort}`),f.push(s),f.push("--dir",this.sourceDirectory),f.push("--port",this.port.toString()),f}async getUnavailablePorts(){let s=[];return this.debugPort&&!await NG("127.0.0.1",this.debugPort)&&s.push(this.debugPort),await NG("127.0.0.1",this.port)||s.push(this.port),s}async start(){let s=await this.getUnavailablePorts();if(s.length>0)throw new Error(`The following ports are not available: ${s.join(", ")}`);if(this.buildWatcher)try{await this.buildWatcher.start()}catch(f){this.output.child("api").error(f.toString());let d="Ran into irrecoverable error while starting watcher. Fix the error and restart the server.";this.output.child("api").error(d),this.logger?.info(d),process.exit(1)}await this.startOrReload(),this.buildWatcher?.onReload((f,d)=>{d||f?.errors&&f.errors.length>0||(this.onReload(f,d),this.startOrReload().catch(y=>{this.output.child("api").error(y.toString()),this.logger?.error(y)}))})}async startOrReload(){try{await this.dispose(),this.logger?.info("Starting managed-dedicated local server");let s=this.getServeArgs();this.serverProcess=jvr.spawn(this.denoExecutablePath,s,{stdio:["pipe","pipe","pipe"],env:{...process.env,FORCE_COLOR:"1"}}),j0t(this.serverProcess.stdout instanceof M0t),j0t(this.serverProcess.stderr instanceof M0t),this.processExitPromise=this.waitForExit(),this.handleRuntimeStdio(this.serverProcess.stdout,this.serverProcess.stderr)}catch(s){this.logger?.debug(s)}}waitForExit(){return new Promise(s=>{this.serverProcess?.once("exit",s)})}dispose(){return this.serverProcess?.kill("SIGKILL"),this.processExitPromise}async stop(){await this.dispose(),await this.buildWatcher?.close()}};async function Jvr(o){let s=await GM(o),f=!1;return s.status===LP&&(f=s.config.projectType!=="managed-edge"||(s.config.flags?.managedDedicatedFlags?.useZeno??!1)),f||process.env.ZUPLO_DEV_RUNTIME==="zeno"}t(Jvr,"useZeno");async function Wvr({sourceDirectory:o,port:s,debugPort:f,publicZuploEnvironmentVariables:d,unsafelyIgnoreCertificateErrors:y,logger:x,output:P,buildId:F,onReload:J,handleRuntimeStdio:G}){process.env.ZUPLO_IS_LOCAL_DEVELOPMENT="true";let Se;await Jvr(o)?(x.debug("Starting managed-dedicated local dev server."),Se=new Kfe({sourceDirectory:o,port:s,debugPort:f,logger:x,output:P,publicZuploEnvironmentVariables:d,onReload:J,handleRuntimeStdio:G,unsafelyIgnoreCertificateErrors:y})):(x.debug("Starting edge local dev server."),Se=new Gfe({sourceDirectory:o,command:"dev",port:s,debugPort:f,publicZuploEnvironmentVariables:d,logger:x,output:P,buildId:F,onReload:J,handleRuntimeStdio:G})),await Se.start();async function de(){await Se.stop()}t(de,"handle"),process.on("SIGTERM",de),process.on("SIGINT",de)}t(Wvr,"startDevServer");var Iy=new URL("./public/",import.meta.url);import{readFile as Xfe}from"fs/promises";var J1=class{static{t(this,"BaseComponent")}#e;#n;#t;scriptFile;cssFile;constructor(o){this.#t=o}async getStyles(){return this.cssFile?this.#t?await Xfe(this.cssFile,"utf-8"):(this.#e=this.#e??await Xfe(this.cssFile,"utf-8"),this.#e):null}async getScript(){return this.scriptFile?this.#t?await Xfe(this.scriptFile,"utf-8"):(this.#n=this.#n??await Xfe(this.scriptFile,"utf-8"),this.#n):null}};var $0t=class extends J1{static{t(this,"Layout")}cssFile=new URL("./layout/style.css",Iy);scriptFile=new URL("./layout/script.js",Iy);async toHTML(o){return`<!DOCTYPE html>
|
|
645
|
+
`);return Gt?(d.originalMessage=d.message,d.message=Pr):d=new Error(Pr),d.shortMessage=jt,d.command=P,d.escapedCommand=F,d.exitCode=x,d.signal=y,d.signalDescription=ae,d.stdout=o,d.stderr=s,f!==void 0&&(d.all=f),"bufferedData"in d&&delete d.bufferedData,d.failed=!0,d.timedOut=!!J,d.isCanceled=G,d.killed=Se&&!J,d},"makeError");var Bfe=["stdin","stdout","stderr"],avr=t(o=>Bfe.some(s=>o[s]!==void 0),"hasAlias"),n0t=t(o=>{if(!o)return;let{stdio:s}=o;if(s===void 0)return Bfe.map(d=>o[d]);if(avr(o))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Bfe.map(d=>`\`${d}\``).join(", ")}`);if(typeof s=="string")return s;if(!Array.isArray(s))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof s}\``);let f=Math.max(s.length,Bfe.length);return Array.from({length:f},(d,y)=>s[y])},"normalizeStdio");var u0t=Sd(l0t(),1);import ovr from"node:os";var cvr=1e3*5,f0t=t((o,s="SIGTERM",f={})=>{let d=o(s);return lvr(o,s,f,d),d},"spawnedKill"),lvr=t((o,s,f,d)=>{if(!uvr(s,f,d))return;let y=_vr(f),x=setTimeout(()=>{o("SIGKILL")},y);x.unref&&x.unref()},"setKillTimeout"),uvr=t((o,{forceKillAfterTimeout:s},f)=>fvr(o)&&s!==!1&&f,"shouldForceKill"),fvr=t(o=>o===ovr.constants.signals.SIGTERM||typeof o=="string"&&o.toUpperCase()==="SIGTERM","isSigterm"),_vr=t(({forceKillAfterTimeout:o=!0})=>{if(o===!0)return cvr;if(!Number.isFinite(o)||o<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${o}\` (${typeof o})`);return o},"getForceKillAfterTimeout"),_0t=t((o,s)=>{o.kill()&&(s.isCanceled=!0)},"spawnedCancel"),pvr=t((o,s,f)=>{o.kill(s),f(Object.assign(new Error("Timed out"),{timedOut:!0,signal:s}))},"timeoutKill"),p0t=t((o,{timeout:s,killSignal:f="SIGTERM"},d)=>{if(s===0||s===void 0)return d;let y,x=new Promise((F,J)=>{y=setTimeout(()=>{pvr(o,f,J)},s)}),P=d.finally(()=>{clearTimeout(y)});return Promise.race([x,P])},"setupTimeout"),d0t=t(({timeout:o})=>{if(o!==void 0&&(!Number.isFinite(o)||o<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${o}\` (${typeof o})`)},"validateTimeout"),m0t=t(async(o,{cleanup:s,detached:f},d)=>{if(!s||f)return d;let y=(0,u0t.default)(()=>{o.kill()});return d.finally(()=>{y()})},"setExitHandler");function h0t(o){return o!==null&&typeof o=="object"&&typeof o.pipe=="function"}t(h0t,"isStream");var tOe=Sd(v0t(),1),T0t=Sd(S0t(),1);var x0t=t((o,s)=>{s===void 0||o.stdin===void 0||(h0t(s)?s.pipe(o.stdin):o.stdin.end(s))},"handleInput"),E0t=t((o,{all:s})=>{if(!s||!o.stdout&&!o.stderr)return;let f=(0,T0t.default)();return o.stdout&&f.add(o.stdout),o.stderr&&f.add(o.stderr),f},"makeAllStream"),Q8e=t(async(o,s)=>{if(o){o.destroy();try{return await s}catch(f){return f.bufferedData}}},"getBufferedData"),eOe=t((o,{encoding:s,buffer:f,maxBuffer:d})=>{if(!(!o||!f))return s?(0,tOe.default)(o,{encoding:s,maxBuffer:d}):tOe.default.buffer(o,{maxBuffer:d})},"getStreamPromise"),C0t=t(async({stdout:o,stderr:s,all:f},{encoding:d,buffer:y,maxBuffer:x},P)=>{let F=eOe(o,{encoding:d,buffer:y,maxBuffer:x}),J=eOe(s,{encoding:d,buffer:y,maxBuffer:x}),G=eOe(f,{encoding:d,buffer:y,maxBuffer:x*2});try{return await Promise.all([P,F,J,G])}catch(Se){return Promise.all([{error:Se,signal:Se.signal,timedOut:Se.timedOut},Q8e(o,F),Q8e(s,J),Q8e(f,G)])}},"getSpawnedResult");var Svr=(async()=>{})().constructor.prototype,Tvr=["then","catch","finally"].map(o=>[o,Reflect.getOwnPropertyDescriptor(Svr,o)]),rOe=t((o,s)=>{for(let[f,d]of Tvr){let y=typeof s=="function"?(...x)=>Reflect.apply(d.value,s(),x):d.value.bind(s);Reflect.defineProperty(o,f,{...d,value:y})}return o},"mergePromise"),k0t=t(o=>new Promise((s,f)=>{o.on("exit",(d,y)=>{s({exitCode:d,signal:y})}),o.on("error",d=>{f(d)}),o.stdin&&o.stdin.on("error",d=>{f(d)})}),"getSpawnedPromise");var w0t=t((o,s=[])=>Array.isArray(s)?[o,...s]:[o],"normalizeArgs"),xvr=/^[\w.-]+$/,Evr=/"/g,Cvr=t(o=>typeof o!="string"||xvr.test(o)?o:`"${o.replace(Evr,'\\"')}"`,"escapeArg"),D0t=t((o,s)=>w0t(o,s).join(" "),"joinCommand"),P0t=t((o,s)=>w0t(o,s).map(f=>Cvr(f)).join(" "),"getEscapedCommand");var Dvr=1e3*1e3*100,Pvr=t(({env:o,extendEnv:s,preferLocal:f,localDir:d,execPath:y})=>{let x=s?{...qfe.env,...o}:o;return f?Kgt({env:x,cwd:d,execPath:y}):x},"getEnv"),Avr=t((o,s,f={})=>{let d=N0t.default._parse(o,s,f);return o=d.command,s=d.args,f=d.options,f={maxBuffer:Dvr,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:f.cwd||qfe.cwd(),execPath:qfe.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...f},f.env=Pvr(f),f.stdio=n0t(f),qfe.platform==="win32"&&wvr.basename(o,".exe")==="cmd"&&s.unshift("/q"),{file:o,args:s,options:f,parsed:d}},"handleArguments"),nOe=t((o,s,f)=>typeof s!="string"&&!kvr.isBuffer(s)?f===void 0?void 0:"":o.stripFinalNewline?q8e(s):s,"handleOutput");function I0t(o,s,f){let d=Avr(o,s,f),y=D0t(o,s),x=P0t(o,s);d0t(d.options);let P;try{P=A0t.spawn(d.file,d.args,d.options)}catch(Ke){let $e=new A0t.ChildProcess,Fe=Promise.reject(Y8e({error:Ke,stdout:"",stderr:"",all:"",command:y,escapedCommand:x,parsed:d,timedOut:!1,isCanceled:!1,killed:!1}));return rOe($e,Fe)}let F=k0t(P),J=p0t(P,d.options,F),G=m0t(P,d.options,J),Se={isCanceled:!1};P.kill=f0t.bind(null,P.kill.bind(P)),P.cancel=_0t.bind(null,P,Se);let ae=Zgt(t(async()=>{let[{error:Ke,exitCode:$e,signal:Fe,timedOut:Gt},jt,Pr,Fn]=await C0t(P,d.options,G),sn=nOe(d.options,jt),Un=nOe(d.options,Pr),Er=nOe(d.options,Fn);if(Ke||$e!==0||Fe!==null){let vr=Y8e({error:Ke,exitCode:$e,signal:Fe,stdout:sn,stderr:Un,all:Er,command:y,escapedCommand:x,parsed:d,timedOut:Gt,isCanceled:Se.isCanceled||(d.options.signal?d.options.signal.aborted:!1),killed:P.killed});if(!d.options.reject)return vr;throw vr}return{command:y,escapedCommand:x,exitCode:0,stdout:sn,stderr:Un,all:Er,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},"handlePromise"));return x0t(P,d.options.input),P.all=E0t(P,d.options),rOe(P,ae)}t(I0t,"execa");async function Hfe(o,s){if(o.__ZUPLO_LOG_LEVEL=process.env.__ZUPLO_LOG_LEVEL??process.env.LOG_LEVEL,o.__ZUPLO_LOG_FORMAT=process.env.__ZUPLO_LOG_FORMAT??process.env.LOG_FORMAT,o.LOG_LEVEL=process.env.LOG_LEVEL??process.env.LOG_LEVEL,o.LOG_FORMAT=process.env.LOG_FORMAT??process.env.LOG_FORMAT,o.GIT_SHA=process.env.GIT_SHA??await Nvr(s),process.env.__ZUPLO_CONFIG&&(o.__ZUPLO_CONFIG=process.env.__ZUPLO_CONFIG),O0t(Vfe.join(s,".env.zuplo"))){let f=F0t(Vfe.join(s,".env.zuplo"),"utf8"),d=iOe.default.parse(f);for(let y of Object.keys(d))if(o[y]=d[y],y==="ZUPLO_SYSTEM_CONFIGURATIONS"){let x=Buffer.from(qoe.decode(d[y])).toString(),P=JSON.parse(x);for(let F of Object.keys(P))o[F]=P[F]}}if(O0t(Vfe.join(s,".env"))){let f=F0t(Vfe.join(s,".env"),"utf8"),d=iOe.default.parse(f);for(let y of Object.keys(d))o[y]=d[y]}for(let f of Object.keys(o))o[f]===void 0&&delete o[f];return o}t(Hfe,"setEnvironment");async function Nvr(o){let s="unknown";try{let{stdout:f}=await I0t("git",["rev-parse","HEAD"],{cwd:o});f.trim().length===40&&(s=f.trim())}catch{}return s}t(Nvr,"getGitSha");async function Lvr({buildId:o,output:s,sourceDirectory:f,bundledDir:d,port:y,binaryName:x,publicZuploEnvironmentVariables:P,logger:F,handleRuntimeStdio:J}){if(d){let Se=AG.join(f,d,"modules.json");if(!Ivr(Se))throw new Error("The bundled-dir does not contain a modules.json file.");let de=await Fvr(Se,"utf-8").then(JSON.parse),ae=await GM(f);return ae.status===LP?new Promise((Ke,$e)=>{G(ae.config.compatibilityDate,AG.join(f,d),de,Ke,J)().catch(Fe=>{F.error(Fe),$e(Fe)})}):(F.warn("Failed to get Zuplo config. Using default compatibility date."),new Promise((Ke,$e)=>{G(void 0,f,de,Ke,J)().catch(Fe=>{F.error(Fe),$e(Fe)})}))}else{let Se=new MI({buildId:o,output:s,sourceDirectory:f,command:"dev",logger:F,publicZuploEnvironmentVariables:P??{ZUPLO_ENVIRONMENT_TYPE:"LOCAL_DEVELOPMENT"},urls:void 0});try{await Se.start()}catch{F.info("Ran into irrecoverable error while building. Fix the error and rerun the command."),process.exit(1)}return new Promise((de,ae)=>{Se.onReload((Ke,$e)=>{($e||Ke?.errors&&Ke.errors.length>0)&&ae($e??Ke?.errors),G(Ke?.config?.compatibilityDate,AG.join(f,"dist"),HM(f,Ke?.metafile),de,J)().catch(Fe=>{F.error(Fe),ae(Fe)})})})}function G(Se,de,ae,Ke,$e){return async()=>{let Fe={};await Hfe(Fe,f);let Gt=new L0t.ZuploWorkerd({compatibilityDate:Se,scriptDirectory:de,modules:ae,port:y??Gm.DEV_SERVER_PORT,bindings:Fe,handleRuntimeStdio:$e}),jt=x??"compiled-zup",Pr=AG.join(f,"dist");await Ovr(Pr,{recursive:!0}),await Gt.compileBinary({binaryPath:AG.join(f,"dist",jt)}),await Gt.dispose(),Ke(void 0)}}t(G,"compile")}t(Lvr,"compileWorkerdServer");import R0t from"node:assert";import Mvr from"node:child_process";import jvr from"node:fs";import Gfe from"node:os";import Bvr from"node:path";import{Readable as M0t}from"node:stream";import{fileURLToPath as U0t}from"node:url";import Rvr from"node:net";function NG(o,s){return new Promise(f=>{let d=new Rvr.Socket;d.connect(s,o),d.on("connect",()=>{d.destroy(),f(!1)}),d.on("error",()=>{d.destroy(),f(!0)})})}t(NG,"isPortAvailable");function j0t(o,s){let f=import.meta.resolve(o),d=new URL(".",f),y=new URL(s,d);if(jvr.existsSync(y))return U0t(y)}t(j0t,"getValidExecutablePath");function Uvr(){let o=Gfe.platform()==="win32"?"deno.exe":"deno",s=j0t("deno/package.json",o);if(s)return s;let f=zvr(),d=j0t(`@deno/${f}/package.json`,o);if(d)return d;throw new Error("Failed to locate the managed-dedicated server executable.")}t(Uvr,"locateDenoExecutable");function zvr(){let o=Gfe.platform();return o==="linux"?`${o}-${B0t()}-glibc`:`${o}-${B0t()}`}t(zvr,"getTarget");function B0t(){let o=Gfe.arch();if(o!=="arm64"&&o!=="x64")throw new Error("Unsupported architecture "+Gfe.arch()+". Only x64 and aarch64 binaries are available.");return o}t(B0t,"getArch");var Yfe=class{static{t(this,"ZenoServer")}serverProcess;sourceDirectory;port;debugPort;processExitPromise;logger;output;buildWatcher;onReload;handleRuntimeStdio;denoExecutablePath;unsafelyIgnoreCertificateErrors;constructor(s){if(this.port=s.port??9e3,this.debugPort=s.debugPort,this.logger=s.logger,this.output=s.output,this.onReload=s.onReload,this.handleRuntimeStdio=s.handleRuntimeStdio,this.sourceDirectory=s.sourceDirectory,this.unsafelyIgnoreCertificateErrors=!!s.unsafelyIgnoreCertificateErrors,!s.zupTestMode){let f="http://localhost:3000",d=`http://localhost:${this.port}`;this.buildWatcher=new MI({sourceDirectory:s.sourceDirectory,command:"dev",logger:s.logger,publicZuploEnvironmentVariables:{...s.publicZuploEnvironmentVariables,ZUPLO_ENVIRONMENT_TYPE:"LOCAL_DEVELOPMENT"},buildId:"dev",output:s.output,urls:{devPortal:{defaultUrl:f,urls:[f]},api:{defaultUrl:d,urls:[d]}}}),this.buildWatcher.watchEnvFiles()}this.denoExecutablePath=Uvr()}getServeArgs(){let s=`${Bvr.dirname(U0t(import.meta.url))}/zeno.js`,f=["run","--allow-read","--allow-net","--allow-env","--allow-write",...this.unsafelyIgnoreCertificateErrors?["--unsafely-ignore-certificate-errors"]:[]];return this.debugPort&&f.push(`--inspect=127.0.0.1:${this.debugPort}`),f.push(s),f.push("--dir",this.sourceDirectory),f.push("--port",this.port.toString()),f}async getUnavailablePorts(){let s=[];return this.debugPort&&!await NG("127.0.0.1",this.debugPort)&&s.push(this.debugPort),await NG("127.0.0.1",this.port)||s.push(this.port),s}async start(){let s=await this.getUnavailablePorts();if(s.length>0)throw new Error(`The following ports are not available: ${s.join(", ")}`);if(this.buildWatcher)try{await this.buildWatcher.start()}catch(f){this.output.child("api").error(f.toString());let d="Ran into irrecoverable error while starting watcher. Fix the error and restart the server.";this.output.child("api").error(d),this.logger?.info(d),process.exit(1)}await this.startOrReload(),this.buildWatcher?.onReload((f,d)=>{d||f?.errors&&f.errors.length>0||(this.onReload(f,d),this.startOrReload().catch(y=>{this.output.child("api").error(y.toString()),this.logger?.error(y)}))})}async startOrReload(){try{await this.dispose(),this.logger?.info("Starting managed-dedicated local server");let s=this.getServeArgs();this.serverProcess=Mvr.spawn(this.denoExecutablePath,s,{stdio:["pipe","pipe","pipe"],env:{...process.env,FORCE_COLOR:"1"}}),R0t(this.serverProcess.stdout instanceof M0t),R0t(this.serverProcess.stderr instanceof M0t),this.processExitPromise=this.waitForExit(),this.handleRuntimeStdio(this.serverProcess.stdout,this.serverProcess.stderr)}catch(s){this.logger?.debug(s)}}waitForExit(){return new Promise(s=>{this.serverProcess?.once("exit",s)})}dispose(){return this.serverProcess?.kill("SIGKILL"),this.processExitPromise}async stop(){await this.dispose(),await this.buildWatcher?.close()}};var z0t=Sd(I8e(),1);import $vr from"node:path";var Kfe=class{static{t(this,"WorkerdServer")}sourceDirectory;port;debugPort;buildWatcher;workerd;logger;output;handleRuntimeStdio;onReload;constructor(s){if(this.sourceDirectory=s.sourceDirectory,this.port=s.port??Gm.DEV_SERVER_PORT,this.debugPort=s.debugPort,this.logger=s.logger,this.output=s.output,this.handleRuntimeStdio=s.handleRuntimeStdio,this.onReload=s.onReload,!s.zupTestMode){let f="http://localhost:3000",d=`http://localhost:${this.port}`;this.buildWatcher=new MI({...s,logger:this.logger,publicZuploEnvironmentVariables:{...s.publicZuploEnvironmentVariables,ZUPLO_ENVIRONMENT_TYPE:"LOCAL_DEVELOPMENT"},urls:{devPortal:{defaultUrl:f,urls:[f]},api:{defaultUrl:d,urls:[d]}}}),this.buildWatcher.watchEnvFiles()}}async start(){if(!await NG("localhost",this.port))throw new Error(`Port ${this.port} is currently in use. Please use a different port.`);if(this.buildWatcher)try{await this.buildWatcher.start()}catch(f){this.output.child("api").error(f.toString());let d="Ran into irrecoverable error while starting watcher. Fix the error and restart the server.";this.output.child("api").error(d),this.logger?.info(d),process.exit(1)}this.buildWatcher?.onReload((f,d)=>{d||f?.errors&&f.errors.length>0||(this.onReload(f,d),this.startOrReload(f).catch(y=>{this.output.child("api").error(y.toString()),this.logger?.error(y)}))})}async startOrReload(s){try{let f={};await Hfe(f,this.sourceDirectory),await this.workerd?.dispose(),this.workerd=new z0t.ZuploWorkerd({compatibilityDate:s?.config?.compatibilityDate,scriptDirectory:$vr.join(this.sourceDirectory,"dist"),modules:HM(this.sourceDirectory,s?.metafile),port:this.port,inspectorPort:this.debugPort??void 0,bindings:f,handleRuntimeStdio:this.handleRuntimeStdio}),await this.workerd.serve()}catch(f){this.logger?.debug(f)}}async stop(){await this.buildWatcher?.close(),await this.workerd?.dispose()}};async function Jvr(o){let s=await GM(o),f=!1;return s.status===LP&&(f=s.config.projectType!=="managed-edge"||(s.config.flags?.managedDedicatedFlags?.useZeno??!1)),f||process.env.ZUPLO_DEV_RUNTIME==="zeno"}t(Jvr,"useZeno");async function Wvr({sourceDirectory:o,port:s,debugPort:f,publicZuploEnvironmentVariables:d,unsafelyIgnoreCertificateErrors:y,logger:x,output:P,buildId:F,onReload:J,handleRuntimeStdio:G}){process.env.ZUPLO_IS_LOCAL_DEVELOPMENT="true";let Se;await Jvr(o)?(x.debug("Starting managed-dedicated local dev server."),Se=new Yfe({sourceDirectory:o,port:s,debugPort:f,logger:x,output:P,publicZuploEnvironmentVariables:d,onReload:J,handleRuntimeStdio:G,unsafelyIgnoreCertificateErrors:y})):(x.debug("Starting edge local dev server."),Se=new Kfe({sourceDirectory:o,command:"dev",port:s,debugPort:f,publicZuploEnvironmentVariables:d,logger:x,output:P,buildId:F,onReload:J,handleRuntimeStdio:G})),await Se.start();async function de(){await Se.stop()}t(de,"handle"),process.on("SIGTERM",de),process.on("SIGINT",de)}t(Wvr,"startDevServer");var Iy=new URL("./public/",import.meta.url);import{readFile as Xfe}from"fs/promises";var J1=class{static{t(this,"BaseComponent")}#e;#n;#t;scriptFile;cssFile;constructor(o){this.#t=o}async getStyles(){return this.cssFile?this.#t?await Xfe(this.cssFile,"utf-8"):(this.#e=this.#e??await Xfe(this.cssFile,"utf-8"),this.#e):null}async getScript(){return this.scriptFile?this.#t?await Xfe(this.scriptFile,"utf-8"):(this.#n=this.#n??await Xfe(this.scriptFile,"utf-8"),this.#n):null}};var $0t=class extends J1{static{t(this,"Layout")}cssFile=new URL("./layout/style.css",Iy);scriptFile=new URL("./layout/script.js",Iy);async toHTML(o){return`<!DOCTYPE html>
|
|
646
646
|
<html lang="en">
|
|
647
647
|
<head>
|
|
648
648
|
<meta charset="UTF-8" />
|
|
@@ -916,7 +916,7 @@ ${(await Nbt(x,f)).split(`
|
|
|
916
916
|
`)}
|
|
917
917
|
${s}`,scripts:d.join(`
|
|
918
918
|
`)}}async#s(o){if(!this.#n.has(o)){let s=await this.#e[o].getStyles();s&&this.#n.set(o,s)}if(!this.#t.has(o)){let s=await this.#e[o].getScript();s&&this.#t.set(o,s)}}async#p(o,s){let f=this.#e[o];if(!f)throw new Error(`Invalid template "${o}"`);return await this.#s(o),f.toHTML(s)}async#o(o,s){let f=this.#e[o];if(!f)throw new Error(`Invalid template "${o}"`);return f.toANSI(s)}use(o,s){return this.#e[o]=s,this}injectStyles(o){let s=this.#n.get("injected")??"";return s+=`
|
|
919
|
-
${o}`,this.#n.set("injected",s),this}async toHTML(o){let s=await this.#p("layout",{title:o.title,ide:o.ide,cspNonce:o.cspNonce,children:t(async()=>{let y=await this.#p("header",o),x=await this.#p("errorInfo",o),P=await this.#p("errorStack",{ide:process.env.EDITOR??"vscode",sourceCodeRenderer:t((G,Se)=>this.#p("errorStackSource",{error:G,frame:Se,ide:o.ide,cspNonce:o.cspNonce}),"sourceCodeRenderer"),...o}),F=await this.#p("errorCause",o),J=await this.#p("errorMetadata",o);return`${y}${x}${P}${F}${J}`},"children")}),{scripts:f,styles:d}=this.#r(o.cspNonce);return s.replace("<!-- STYLES -->",d).replace("<!-- SCRIPTS -->",f)}async toANSI(o){return await this.#o("layout",{title:o.title,children:t(async()=>{let f=await this.#o("header",{}),d=await this.#o("errorInfo",o),y=await this.#o("errorStack",{ide:process.env.EDITOR??"vscode",sourceCodeRenderer:t((F,J)=>this.#o("errorStackSource",{error:F,frame:J}),"sourceCodeRenderer"),...o}),x=await this.#o("errorCause",o),P=await this.#o("errorMetadata",o);return`${f}${d}${y}${x}${P}`},"children")})}},Qbt=class{static{t(this,"Youch")}#e;#n=[];#t=[];templates=new STr(!1);metadata=new bTr;#r(o){let s=new Kbt(o);return this.#e&&s.defineSourceLoader(this.#e),this.#n.forEach(f=>s.useParser(f)),this.#t.forEach(f=>s.useTransformer(f)),s}#s(o){!o||Object.keys(o).length===0||this.metadata.group("Request",{...o.url?{url:{key:"URL",value:o.url}}:{},...o.method?{method:{key:"Method",value:o.method}}:{},...o.headers?{headers:Object.keys(o.headers).map(s=>{let f=o.headers[s];return{key:s,value:s==="cookie"?{...Zbt.default.parse(f)}:f}})}:{}})}defineSourceLoader(o){return this.#e=o,this}useParser(o){return this.#n.push(o),this}useTransformer(o){return this.#t.push(o),this}async toJSON(o,s){return s={...s},this.#r({offset:s.offset}).parse(o)}async toHTML(o,s){s={...s},this.#s(s.request);let f=await this.#r({offset:s.offset}).parse(o);return this.templates.toHTML({title:s.title??"An error has occurred",ide:s.ide??process.env.IDE??"vscode",cspNonce:s.cspNonce,error:f,metadata:this.metadata})}async toANSI(o,s){s={...s};let f=await this.#r({offset:s.offset}).parse(o);return this.templates.toANSI({title:"",error:f,metadata:this.metadata})}};import{SourceMapConsumer as xTr}from"source-map";var Rj=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,tSt=new Set,OOe=typeof process=="object"&&process?process:{},rSt=t((o,s,f,d)=>{typeof OOe.emitWarning=="function"?OOe.emitWarning(o,s,f,d):console.error(`[${f}] ${s}: ${o}`)},"emitWarning"),__e=globalThis.AbortController,eSt=globalThis.AbortSignal;if(typeof __e>"u"){eSt=class{static{t(this,"AbortSignal")}onabort;_onabort=[];reason;aborted=!1;addEventListener(d,y){this._onabort.push(y)}},__e=class{static{t(this,"AbortController")}constructor(){s()}signal=new eSt;abort(d){if(!this.signal.aborted){this.signal.reason=d,this.signal.aborted=!0;for(let y of this.signal._onabort)y(d);this.signal.onabort?.(d)}}};let o=OOe.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",s=t(()=>{o&&(o=!1,rSt("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",s))},"warnACPolyfill")}var TTr=t(o=>!tSt.has(o),"shouldWarn"),$Br=Symbol("type"),WI=t(o=>o&&o===Math.floor(o)&&o>0&&isFinite(o),"isPosInt"),nSt=t(o=>WI(o)?o<=Math.pow(2,8)?Uint8Array:o<=Math.pow(2,16)?Uint16Array:o<=Math.pow(2,32)?Uint32Array:o<=Number.MAX_SAFE_INTEGER?Mj:null:null,"getUintArray"),Mj=class extends Array{static{t(this,"ZeroArray")}constructor(s){super(s),this.fill(0)}},FOe=class o{static{t(this,"Stack")}heap;length;static#e=!1;static create(s){let f=nSt(s);if(!f)return[];o.#e=!0;let d=new o(s,f);return o.#e=!1,d}constructor(s,f){if(!o.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new f(s),this.length=0}push(s){this.heap[this.length++]=s}pop(){return this.heap[--this.length]}},p_e=class o{static{t(this,"LRUCache")}#e;#n;#t;#r;#s;#p;#o;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#_;#u;#c;#i;#a;#h;#m;#f;#d;#g;#y;#E;#T;#C;#k;#v;#x;#A;static unsafeExposeInternals(s){return{starts:s.#T,ttls:s.#C,sizes:s.#E,keyMap:s.#c,keyList:s.#i,valList:s.#a,next:s.#h,prev:s.#m,get head(){return s.#f},get tail(){return s.#d},free:s.#g,isBackgroundFetch:t(f=>s.#S(f),"isBackgroundFetch"),backgroundFetch:t((f,d,y,x)=>s.#j(f,d,y,x),"backgroundFetch"),moveToTail:t(f=>s.#$(f),"moveToTail"),indexes:t(f=>s.#N(f),"indexes"),rindexes:t(f=>s.#I(f),"rindexes"),isStale:t(f=>s.#P(f),"isStale")}}get max(){return this.#e}get maxSize(){return this.#n}get calculatedSize(){return this.#u}get size(){return this.#_}get fetchMethod(){return this.#p}get memoMethod(){return this.#o}get dispose(){return this.#t}get onInsert(){return this.#r}get disposeAfter(){return this.#s}constructor(s){let{max:f=0,ttl:d,ttlResolution:y=1,ttlAutopurge:x,updateAgeOnGet:P,updateAgeOnHas:F,allowStale:J,dispose:G,onInsert:Se,disposeAfter:de,noDisposeOnSet:ae,noUpdateTTL:Ke,maxSize:$e=0,maxEntrySize:Fe=0,sizeCalculation:Gt,fetchMethod:jt,memoMethod:Pr,noDeleteOnFetchRejection:Fn,noDeleteOnStaleGet:sn,allowStaleOnFetchRejection:Un,allowStaleOnFetchAbort:Er,ignoreFetchAbort:vr}=s;if(f!==0&&!WI(f))throw new TypeError("max option must be a nonnegative integer");let ls=f?nSt(f):Array;if(!ls)throw new Error("invalid max value: "+f);if(this.#e=f,this.#n=$e,this.maxEntrySize=Fe||this.#n,this.sizeCalculation=Gt,this.sizeCalculation){if(!this.#n&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(Pr!==void 0&&typeof Pr!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#o=Pr,jt!==void 0&&typeof jt!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#p=jt,this.#v=!!jt,this.#c=new Map,this.#i=new Array(f).fill(void 0),this.#a=new Array(f).fill(void 0),this.#h=new ls(f),this.#m=new ls(f),this.#f=0,this.#d=0,this.#g=FOe.create(f),this.#_=0,this.#u=0,typeof G=="function"&&(this.#t=G),typeof Se=="function"&&(this.#r=Se),typeof de=="function"?(this.#s=de,this.#y=[]):(this.#s=void 0,this.#y=void 0),this.#k=!!this.#t,this.#A=!!this.#r,this.#x=!!this.#s,this.noDisposeOnSet=!!ae,this.noUpdateTTL=!!Ke,this.noDeleteOnFetchRejection=!!Fn,this.allowStaleOnFetchRejection=!!Un,this.allowStaleOnFetchAbort=!!Er,this.ignoreFetchAbort=!!vr,this.maxEntrySize!==0){if(this.#n!==0&&!WI(this.#n))throw new TypeError("maxSize must be a positive integer if specified");if(!WI(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#U()}if(this.allowStale=!!J,this.noDeleteOnStaleGet=!!sn,this.updateAgeOnGet=!!P,this.updateAgeOnHas=!!F,this.ttlResolution=WI(y)||y===0?y:1,this.ttlAutopurge=!!x,this.ttl=d||0,this.ttl){if(!WI(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#l()}if(this.#e===0&&this.ttl===0&&this.#n===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#n){let Ni="LRU_CACHE_UNBOUNDED";TTr(Ni)&&(tSt.add(Ni),rSt("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",Ni,o))}}getRemainingTTL(s){return this.#c.has(s)?1/0:0}#l(){let s=new Mj(this.#e),f=new Mj(this.#e);this.#C=s,this.#T=f,this.#D=(x,P,F=Rj.now())=>{if(f[x]=P!==0?F:0,s[x]=P,P!==0&&this.ttlAutopurge){let J=setTimeout(()=>{this.#P(x)&&this.#B(this.#i[x],"expire")},P+1);J.unref&&J.unref()}},this.#O=x=>{f[x]=s[x]!==0?Rj.now():0},this.#w=(x,P)=>{if(s[P]){let F=s[P],J=f[P];if(!F||!J)return;x.ttl=F,x.start=J,x.now=d||y();let G=x.now-J;x.remainingTTL=F-G}};let d=0,y=t(()=>{let x=Rj.now();if(this.ttlResolution>0){d=x;let P=setTimeout(()=>d=0,this.ttlResolution);P.unref&&P.unref()}return x},"getNow");this.getRemainingTTL=x=>{let P=this.#c.get(x);if(P===void 0)return 0;let F=s[P],J=f[P];if(!F||!J)return 1/0;let G=(d||y())-J;return F-G},this.#P=x=>{let P=f[x],F=s[x];return!!F&&!!P&&(d||y())-P>F}}#O=t(()=>{},"#updateItemAge");#w=t(()=>{},"#statusTTL");#D=t(()=>{},"#setItemTTL");#P=t(()=>!1,"#isStale");#U(){let s=new Mj(this.#e);this.#u=0,this.#E=s,this.#R=f=>{this.#u-=s[f],s[f]=0},this.#L=(f,d,y,x)=>{if(this.#S(d))return 0;if(!WI(y))if(x){if(typeof x!="function")throw new TypeError("sizeCalculation must be a function");if(y=x(d,f),!WI(y))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return y},this.#F=(f,d,y)=>{if(s[f]=d,this.#n){let x=this.#n-s[f];for(;this.#u>x;)this.#b(!0)}this.#u+=s[f],y&&(y.entrySize=d,y.totalCalculatedSize=this.#u)}}#R=t(s=>{},"#removeItemSize");#F=t((s,f,d)=>{},"#addItemSize");#L=t((s,f,d,y)=>{if(d||y)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0},"#requireSize");*#N({allowStale:s=this.allowStale}={}){if(this.#_)for(let f=this.#d;!(!this.#z(f)||((s||!this.#P(f))&&(yield f),f===this.#f));)f=this.#m[f]}*#I({allowStale:s=this.allowStale}={}){if(this.#_)for(let f=this.#f;!(!this.#z(f)||((s||!this.#P(f))&&(yield f),f===this.#d));)f=this.#h[f]}#z(s){return s!==void 0&&this.#c.get(this.#i[s])===s}*entries(){for(let s of this.#N())this.#a[s]!==void 0&&this.#i[s]!==void 0&&!this.#S(this.#a[s])&&(yield[this.#i[s],this.#a[s]])}*rentries(){for(let s of this.#I())this.#a[s]!==void 0&&this.#i[s]!==void 0&&!this.#S(this.#a[s])&&(yield[this.#i[s],this.#a[s]])}*keys(){for(let s of this.#N()){let f=this.#i[s];f!==void 0&&!this.#S(this.#a[s])&&(yield f)}}*rkeys(){for(let s of this.#I()){let f=this.#i[s];f!==void 0&&!this.#S(this.#a[s])&&(yield f)}}*values(){for(let s of this.#N())this.#a[s]!==void 0&&!this.#S(this.#a[s])&&(yield this.#a[s])}*rvalues(){for(let s of this.#I())this.#a[s]!==void 0&&!this.#S(this.#a[s])&&(yield this.#a[s])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(s,f={}){for(let d of this.#N()){let y=this.#a[d],x=this.#S(y)?y.__staleWhileFetching:y;if(x!==void 0&&s(x,this.#i[d],this))return this.get(this.#i[d],f)}}forEach(s,f=this){for(let d of this.#N()){let y=this.#a[d],x=this.#S(y)?y.__staleWhileFetching:y;x!==void 0&&s.call(f,x,this.#i[d],this)}}rforEach(s,f=this){for(let d of this.#I()){let y=this.#a[d],x=this.#S(y)?y.__staleWhileFetching:y;x!==void 0&&s.call(f,x,this.#i[d],this)}}purgeStale(){let s=!1;for(let f of this.#I({allowStale:!0}))this.#P(f)&&(this.#B(this.#i[f],"expire"),s=!0);return s}info(s){let f=this.#c.get(s);if(f===void 0)return;let d=this.#a[f],y=this.#S(d)?d.__staleWhileFetching:d;if(y===void 0)return;let x={value:y};if(this.#C&&this.#T){let P=this.#C[f],F=this.#T[f];if(P&&F){let J=P-(Rj.now()-F);x.ttl=J,x.start=Date.now()}}return this.#E&&(x.size=this.#E[f]),x}dump(){let s=[];for(let f of this.#N({allowStale:!0})){let d=this.#i[f],y=this.#a[f],x=this.#S(y)?y.__staleWhileFetching:y;if(x===void 0||d===void 0)continue;let P={value:x};if(this.#C&&this.#T){P.ttl=this.#C[f];let F=Rj.now()-this.#T[f];P.start=Math.floor(Date.now()-F)}this.#E&&(P.size=this.#E[f]),s.unshift([d,P])}return s}load(s){this.clear();for(let[f,d]of s){if(d.start){let y=Date.now()-d.start;d.start=Rj.now()-y}this.set(f,d.value,d)}}set(s,f,d={}){if(f===void 0)return this.delete(s),this;let{ttl:y=this.ttl,start:x,noDisposeOnSet:P=this.noDisposeOnSet,sizeCalculation:F=this.sizeCalculation,status:J}=d,{noUpdateTTL:G=this.noUpdateTTL}=d,Se=this.#L(s,f,d.size||0,F);if(this.maxEntrySize&&Se>this.maxEntrySize)return J&&(J.set="miss",J.maxEntrySizeExceeded=!0),this.#B(s,"set"),this;let de=this.#_===0?void 0:this.#c.get(s);if(de===void 0)de=this.#_===0?this.#d:this.#g.length!==0?this.#g.pop():this.#_===this.#e?this.#b(!1):this.#_,this.#i[de]=s,this.#a[de]=f,this.#c.set(s,de),this.#h[this.#d]=de,this.#m[de]=this.#d,this.#d=de,this.#_++,this.#F(de,Se,J),J&&(J.set="add"),G=!1,this.#A&&this.#r?.(f,s,"add");else{this.#$(de);let ae=this.#a[de];if(f!==ae){if(this.#v&&this.#S(ae)){ae.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:Ke}=ae;Ke!==void 0&&!P&&(this.#k&&this.#t?.(Ke,s,"set"),this.#x&&this.#y?.push([Ke,s,"set"]))}else P||(this.#k&&this.#t?.(ae,s,"set"),this.#x&&this.#y?.push([ae,s,"set"]));if(this.#R(de),this.#F(de,Se,J),this.#a[de]=f,J){J.set="replace";let Ke=ae&&this.#S(ae)?ae.__staleWhileFetching:ae;Ke!==void 0&&(J.oldValue=Ke)}}else J&&(J.set="update");this.#A&&this.onInsert?.(f,s,f===ae?"update":"replace")}if(y!==0&&!this.#C&&this.#l(),this.#C&&(G||this.#D(de,y,x),J&&this.#w(J,de)),!P&&this.#x&&this.#y){let ae=this.#y,Ke;for(;Ke=ae?.shift();)this.#s?.(...Ke)}return this}pop(){try{for(;this.#_;){let s=this.#a[this.#f];if(this.#b(!0),this.#S(s)){if(s.__staleWhileFetching)return s.__staleWhileFetching}else if(s!==void 0)return s}}finally{if(this.#x&&this.#y){let s=this.#y,f;for(;f=s?.shift();)this.#s?.(...f)}}}#b(s){let f=this.#f,d=this.#i[f],y=this.#a[f];return this.#v&&this.#S(y)?y.__abortController.abort(new Error("evicted")):(this.#k||this.#x)&&(this.#k&&this.#t?.(y,d,"evict"),this.#x&&this.#y?.push([y,d,"evict"])),this.#R(f),s&&(this.#i[f]=void 0,this.#a[f]=void 0,this.#g.push(f)),this.#_===1?(this.#f=this.#d=0,this.#g.length=0):this.#f=this.#h[f],this.#c.delete(d),this.#_--,f}has(s,f={}){let{updateAgeOnHas:d=this.updateAgeOnHas,status:y}=f,x=this.#c.get(s);if(x!==void 0){let P=this.#a[x];if(this.#S(P)&&P.__staleWhileFetching===void 0)return!1;if(this.#P(x))y&&(y.has="stale",this.#w(y,x));else return d&&this.#O(x),y&&(y.has="hit",this.#w(y,x)),!0}else y&&(y.has="miss");return!1}peek(s,f={}){let{allowStale:d=this.allowStale}=f,y=this.#c.get(s);if(y===void 0||!d&&this.#P(y))return;let x=this.#a[y];return this.#S(x)?x.__staleWhileFetching:x}#j(s,f,d,y){let x=f===void 0?void 0:this.#a[f];if(this.#S(x))return x;let P=new __e,{signal:F}=d;F?.addEventListener("abort",()=>P.abort(F.reason),{signal:P.signal});let J={signal:P.signal,options:d,context:y},G=t((Fe,Gt=!1)=>{let{aborted:jt}=P.signal,Pr=d.ignoreFetchAbort&&Fe!==void 0;if(d.status&&(jt&&!Gt?(d.status.fetchAborted=!0,d.status.fetchError=P.signal.reason,Pr&&(d.status.fetchAbortIgnored=!0)):d.status.fetchResolved=!0),jt&&!Pr&&!Gt)return de(P.signal.reason);let Fn=Ke;return this.#a[f]===Ke&&(Fe===void 0?Fn.__staleWhileFetching?this.#a[f]=Fn.__staleWhileFetching:this.#B(s,"fetch"):(d.status&&(d.status.fetchUpdated=!0),this.set(s,Fe,J.options))),Fe},"cb"),Se=t(Fe=>(d.status&&(d.status.fetchRejected=!0,d.status.fetchError=Fe),de(Fe)),"eb"),de=t(Fe=>{let{aborted:Gt}=P.signal,jt=Gt&&d.allowStaleOnFetchAbort,Pr=jt||d.allowStaleOnFetchRejection,Fn=Pr||d.noDeleteOnFetchRejection,sn=Ke;if(this.#a[f]===Ke&&(!Fn||sn.__staleWhileFetching===void 0?this.#B(s,"fetch"):jt||(this.#a[f]=sn.__staleWhileFetching)),Pr)return d.status&&sn.__staleWhileFetching!==void 0&&(d.status.returnedStale=!0),sn.__staleWhileFetching;if(sn.__returned===sn)throw Fe},"fetchFail"),ae=t((Fe,Gt)=>{let jt=this.#p?.(s,x,J);jt&&jt instanceof Promise&&jt.then(Pr=>Fe(Pr===void 0?void 0:Pr),Gt),P.signal.addEventListener("abort",()=>{(!d.ignoreFetchAbort||d.allowStaleOnFetchAbort)&&(Fe(void 0),d.allowStaleOnFetchAbort&&(Fe=t(Pr=>G(Pr,!0),"res")))})},"pcall");d.status&&(d.status.fetchDispatched=!0);let Ke=new Promise(ae).then(G,Se),$e=Object.assign(Ke,{__abortController:P,__staleWhileFetching:x,__returned:void 0});return f===void 0?(this.set(s,$e,{...J.options,status:void 0}),f=this.#c.get(s)):this.#a[f]=$e,$e}#S(s){if(!this.#v)return!1;let f=s;return!!f&&f instanceof Promise&&f.hasOwnProperty("__staleWhileFetching")&&f.__abortController instanceof __e}async fetch(s,f={}){let{allowStale:d=this.allowStale,updateAgeOnGet:y=this.updateAgeOnGet,noDeleteOnStaleGet:x=this.noDeleteOnStaleGet,ttl:P=this.ttl,noDisposeOnSet:F=this.noDisposeOnSet,size:J=0,sizeCalculation:G=this.sizeCalculation,noUpdateTTL:Se=this.noUpdateTTL,noDeleteOnFetchRejection:de=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:ae=this.allowStaleOnFetchRejection,ignoreFetchAbort:Ke=this.ignoreFetchAbort,allowStaleOnFetchAbort:$e=this.allowStaleOnFetchAbort,context:Fe,forceRefresh:Gt=!1,status:jt,signal:Pr}=f;if(!this.#v)return jt&&(jt.fetch="get"),this.get(s,{allowStale:d,updateAgeOnGet:y,noDeleteOnStaleGet:x,status:jt});let Fn={allowStale:d,updateAgeOnGet:y,noDeleteOnStaleGet:x,ttl:P,noDisposeOnSet:F,size:J,sizeCalculation:G,noUpdateTTL:Se,noDeleteOnFetchRejection:de,allowStaleOnFetchRejection:ae,allowStaleOnFetchAbort:$e,ignoreFetchAbort:Ke,status:jt,signal:Pr},sn=this.#c.get(s);if(sn===void 0){jt&&(jt.fetch="miss");let Un=this.#j(s,sn,Fn,Fe);return Un.__returned=Un}else{let Un=this.#a[sn];if(this.#S(Un)){let nc=d&&Un.__staleWhileFetching!==void 0;return jt&&(jt.fetch="inflight",nc&&(jt.returnedStale=!0)),nc?Un.__staleWhileFetching:Un.__returned=Un}let Er=this.#P(sn);if(!Gt&&!Er)return jt&&(jt.fetch="hit"),this.#$(sn),y&&this.#O(sn),jt&&this.#w(jt,sn),Un;let vr=this.#j(s,sn,Fn,Fe),Ni=vr.__staleWhileFetching!==void 0&&d;return jt&&(jt.fetch=Er?"stale":"refresh",Ni&&Er&&(jt.returnedStale=!0)),Ni?vr.__staleWhileFetching:vr.__returned=vr}}async forceFetch(s,f={}){let d=await this.fetch(s,f);if(d===void 0)throw new Error("fetch() returned undefined");return d}memo(s,f={}){let d=this.#o;if(!d)throw new Error("no memoMethod provided to constructor");let{context:y,forceRefresh:x,...P}=f,F=this.get(s,P);if(!x&&F!==void 0)return F;let J=d(s,F,{options:P,context:y});return this.set(s,J,P),J}get(s,f={}){let{allowStale:d=this.allowStale,updateAgeOnGet:y=this.updateAgeOnGet,noDeleteOnStaleGet:x=this.noDeleteOnStaleGet,status:P}=f,F=this.#c.get(s);if(F!==void 0){let J=this.#a[F],G=this.#S(J);return P&&this.#w(P,F),this.#P(F)?(P&&(P.get="stale"),G?(P&&d&&J.__staleWhileFetching!==void 0&&(P.returnedStale=!0),d?J.__staleWhileFetching:void 0):(x||this.#B(s,"expire"),P&&d&&(P.returnedStale=!0),d?J:void 0)):(P&&(P.get="hit"),G?J.__staleWhileFetching:(this.#$(F),y&&this.#O(F),J))}else P&&(P.get="miss")}#M(s,f){this.#m[f]=s,this.#h[s]=f}#$(s){s!==this.#d&&(s===this.#f?this.#f=this.#h[s]:this.#M(this.#m[s],this.#h[s]),this.#M(this.#d,s),this.#d=s)}delete(s){return this.#B(s,"delete")}#B(s,f){let d=!1;if(this.#_!==0){let y=this.#c.get(s);if(y!==void 0)if(d=!0,this.#_===1)this.#J(f);else{this.#R(y);let x=this.#a[y];if(this.#S(x)?x.__abortController.abort(new Error("deleted")):(this.#k||this.#x)&&(this.#k&&this.#t?.(x,s,f),this.#x&&this.#y?.push([x,s,f])),this.#c.delete(s),this.#i[y]=void 0,this.#a[y]=void 0,y===this.#d)this.#d=this.#m[y];else if(y===this.#f)this.#f=this.#h[y];else{let P=this.#m[y];this.#h[P]=this.#h[y];let F=this.#h[y];this.#m[F]=this.#m[y]}this.#_--,this.#g.push(y)}}if(this.#x&&this.#y?.length){let y=this.#y,x;for(;x=y?.shift();)this.#s?.(...x)}return d}clear(){return this.#J("delete")}#J(s){for(let f of this.#I({allowStale:!0})){let d=this.#a[f];if(this.#S(d))d.__abortController.abort(new Error("deleted"));else{let y=this.#i[f];this.#k&&this.#t?.(d,y,s),this.#x&&this.#y?.push([d,y,s])}}if(this.#c.clear(),this.#a.fill(void 0),this.#i.fill(void 0),this.#C&&this.#T&&(this.#C.fill(0),this.#T.fill(0)),this.#E&&this.#E.fill(0),this.#f=0,this.#d=0,this.#g.length=0,this.#u=0,this.#_=0,this.#x&&this.#y){let f=this.#y,d;for(;d=f?.shift();)this.#s?.(...d)}}};import*as d_e from"node:path";var LOe=new p_e({max:100,ttl:1e3*60*5,dispose:t(o=>{o&&o.destroy()},"dispose")});function ETr(o){let s=o.split(`
|
|
919
|
+
${o}`,this.#n.set("injected",s),this}async toHTML(o){let s=await this.#p("layout",{title:o.title,ide:o.ide,cspNonce:o.cspNonce,children:t(async()=>{let y=await this.#p("header",o),x=await this.#p("errorInfo",o),P=await this.#p("errorStack",{ide:process.env.EDITOR??"vscode",sourceCodeRenderer:t((G,Se)=>this.#p("errorStackSource",{error:G,frame:Se,ide:o.ide,cspNonce:o.cspNonce}),"sourceCodeRenderer"),...o}),F=await this.#p("errorCause",o),J=await this.#p("errorMetadata",o);return`${y}${x}${P}${F}${J}`},"children")}),{scripts:f,styles:d}=this.#r(o.cspNonce);return s.replace("<!-- STYLES -->",d).replace("<!-- SCRIPTS -->",f)}async toANSI(o){return await this.#o("layout",{title:o.title,children:t(async()=>{let f=await this.#o("header",{}),d=await this.#o("errorInfo",o),y=await this.#o("errorStack",{ide:process.env.EDITOR??"vscode",sourceCodeRenderer:t((F,J)=>this.#o("errorStackSource",{error:F,frame:J}),"sourceCodeRenderer"),...o}),x=await this.#o("errorCause",o),P=await this.#o("errorMetadata",o);return`${f}${d}${y}${x}${P}`},"children")})}},Qbt=class{static{t(this,"Youch")}#e;#n=[];#t=[];templates=new STr(!1);metadata=new bTr;#r(o){let s=new Kbt(o);return this.#e&&s.defineSourceLoader(this.#e),this.#n.forEach(f=>s.useParser(f)),this.#t.forEach(f=>s.useTransformer(f)),s}#s(o){!o||Object.keys(o).length===0||this.metadata.group("Request",{...o.url?{url:{key:"URL",value:o.url}}:{},...o.method?{method:{key:"Method",value:o.method}}:{},...o.headers?{headers:Object.keys(o.headers).map(s=>{let f=o.headers[s];return{key:s,value:s==="cookie"?{...Zbt.default.parse(f)}:f}})}:{}})}defineSourceLoader(o){return this.#e=o,this}useParser(o){return this.#n.push(o),this}useTransformer(o){return this.#t.push(o),this}async toJSON(o,s){return s={...s},this.#r({offset:s.offset}).parse(o)}async toHTML(o,s){s={...s},this.#s(s.request);let f=await this.#r({offset:s.offset}).parse(o);return this.templates.toHTML({title:s.title??"An error has occurred",ide:s.ide??process.env.IDE??"vscode",cspNonce:s.cspNonce,error:f,metadata:this.metadata})}async toANSI(o,s){s={...s};let f=await this.#r({offset:s.offset}).parse(o);return this.templates.toANSI({title:"",error:f,metadata:this.metadata})}};import*as d_e from"node:path";var Rj=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,tSt=new Set,OOe=typeof process=="object"&&process?process:{},rSt=t((o,s,f,d)=>{typeof OOe.emitWarning=="function"?OOe.emitWarning(o,s,f,d):console.error(`[${f}] ${s}: ${o}`)},"emitWarning"),__e=globalThis.AbortController,eSt=globalThis.AbortSignal;if(typeof __e>"u"){eSt=class{static{t(this,"AbortSignal")}onabort;_onabort=[];reason;aborted=!1;addEventListener(d,y){this._onabort.push(y)}},__e=class{static{t(this,"AbortController")}constructor(){s()}signal=new eSt;abort(d){if(!this.signal.aborted){this.signal.reason=d,this.signal.aborted=!0;for(let y of this.signal._onabort)y(d);this.signal.onabort?.(d)}}};let o=OOe.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",s=t(()=>{o&&(o=!1,rSt("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",s))},"warnACPolyfill")}var TTr=t(o=>!tSt.has(o),"shouldWarn"),$Br=Symbol("type"),WI=t(o=>o&&o===Math.floor(o)&&o>0&&isFinite(o),"isPosInt"),nSt=t(o=>WI(o)?o<=Math.pow(2,8)?Uint8Array:o<=Math.pow(2,16)?Uint16Array:o<=Math.pow(2,32)?Uint32Array:o<=Number.MAX_SAFE_INTEGER?Mj:null:null,"getUintArray"),Mj=class extends Array{static{t(this,"ZeroArray")}constructor(s){super(s),this.fill(0)}},FOe=class o{static{t(this,"Stack")}heap;length;static#e=!1;static create(s){let f=nSt(s);if(!f)return[];o.#e=!0;let d=new o(s,f);return o.#e=!1,d}constructor(s,f){if(!o.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new f(s),this.length=0}push(s){this.heap[this.length++]=s}pop(){return this.heap[--this.length]}},p_e=class o{static{t(this,"LRUCache")}#e;#n;#t;#r;#s;#p;#o;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#_;#u;#c;#i;#a;#h;#m;#f;#d;#g;#y;#E;#T;#C;#k;#v;#x;#A;static unsafeExposeInternals(s){return{starts:s.#T,ttls:s.#C,sizes:s.#E,keyMap:s.#c,keyList:s.#i,valList:s.#a,next:s.#h,prev:s.#m,get head(){return s.#f},get tail(){return s.#d},free:s.#g,isBackgroundFetch:t(f=>s.#S(f),"isBackgroundFetch"),backgroundFetch:t((f,d,y,x)=>s.#j(f,d,y,x),"backgroundFetch"),moveToTail:t(f=>s.#$(f),"moveToTail"),indexes:t(f=>s.#N(f),"indexes"),rindexes:t(f=>s.#I(f),"rindexes"),isStale:t(f=>s.#P(f),"isStale")}}get max(){return this.#e}get maxSize(){return this.#n}get calculatedSize(){return this.#u}get size(){return this.#_}get fetchMethod(){return this.#p}get memoMethod(){return this.#o}get dispose(){return this.#t}get onInsert(){return this.#r}get disposeAfter(){return this.#s}constructor(s){let{max:f=0,ttl:d,ttlResolution:y=1,ttlAutopurge:x,updateAgeOnGet:P,updateAgeOnHas:F,allowStale:J,dispose:G,onInsert:Se,disposeAfter:de,noDisposeOnSet:ae,noUpdateTTL:Ke,maxSize:$e=0,maxEntrySize:Fe=0,sizeCalculation:Gt,fetchMethod:jt,memoMethod:Pr,noDeleteOnFetchRejection:Fn,noDeleteOnStaleGet:sn,allowStaleOnFetchRejection:Un,allowStaleOnFetchAbort:Er,ignoreFetchAbort:vr}=s;if(f!==0&&!WI(f))throw new TypeError("max option must be a nonnegative integer");let ls=f?nSt(f):Array;if(!ls)throw new Error("invalid max value: "+f);if(this.#e=f,this.#n=$e,this.maxEntrySize=Fe||this.#n,this.sizeCalculation=Gt,this.sizeCalculation){if(!this.#n&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(Pr!==void 0&&typeof Pr!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#o=Pr,jt!==void 0&&typeof jt!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#p=jt,this.#v=!!jt,this.#c=new Map,this.#i=new Array(f).fill(void 0),this.#a=new Array(f).fill(void 0),this.#h=new ls(f),this.#m=new ls(f),this.#f=0,this.#d=0,this.#g=FOe.create(f),this.#_=0,this.#u=0,typeof G=="function"&&(this.#t=G),typeof Se=="function"&&(this.#r=Se),typeof de=="function"?(this.#s=de,this.#y=[]):(this.#s=void 0,this.#y=void 0),this.#k=!!this.#t,this.#A=!!this.#r,this.#x=!!this.#s,this.noDisposeOnSet=!!ae,this.noUpdateTTL=!!Ke,this.noDeleteOnFetchRejection=!!Fn,this.allowStaleOnFetchRejection=!!Un,this.allowStaleOnFetchAbort=!!Er,this.ignoreFetchAbort=!!vr,this.maxEntrySize!==0){if(this.#n!==0&&!WI(this.#n))throw new TypeError("maxSize must be a positive integer if specified");if(!WI(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#U()}if(this.allowStale=!!J,this.noDeleteOnStaleGet=!!sn,this.updateAgeOnGet=!!P,this.updateAgeOnHas=!!F,this.ttlResolution=WI(y)||y===0?y:1,this.ttlAutopurge=!!x,this.ttl=d||0,this.ttl){if(!WI(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#l()}if(this.#e===0&&this.ttl===0&&this.#n===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#n){let Ni="LRU_CACHE_UNBOUNDED";TTr(Ni)&&(tSt.add(Ni),rSt("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",Ni,o))}}getRemainingTTL(s){return this.#c.has(s)?1/0:0}#l(){let s=new Mj(this.#e),f=new Mj(this.#e);this.#C=s,this.#T=f,this.#D=(x,P,F=Rj.now())=>{if(f[x]=P!==0?F:0,s[x]=P,P!==0&&this.ttlAutopurge){let J=setTimeout(()=>{this.#P(x)&&this.#B(this.#i[x],"expire")},P+1);J.unref&&J.unref()}},this.#O=x=>{f[x]=s[x]!==0?Rj.now():0},this.#w=(x,P)=>{if(s[P]){let F=s[P],J=f[P];if(!F||!J)return;x.ttl=F,x.start=J,x.now=d||y();let G=x.now-J;x.remainingTTL=F-G}};let d=0,y=t(()=>{let x=Rj.now();if(this.ttlResolution>0){d=x;let P=setTimeout(()=>d=0,this.ttlResolution);P.unref&&P.unref()}return x},"getNow");this.getRemainingTTL=x=>{let P=this.#c.get(x);if(P===void 0)return 0;let F=s[P],J=f[P];if(!F||!J)return 1/0;let G=(d||y())-J;return F-G},this.#P=x=>{let P=f[x],F=s[x];return!!F&&!!P&&(d||y())-P>F}}#O=t(()=>{},"#updateItemAge");#w=t(()=>{},"#statusTTL");#D=t(()=>{},"#setItemTTL");#P=t(()=>!1,"#isStale");#U(){let s=new Mj(this.#e);this.#u=0,this.#E=s,this.#R=f=>{this.#u-=s[f],s[f]=0},this.#L=(f,d,y,x)=>{if(this.#S(d))return 0;if(!WI(y))if(x){if(typeof x!="function")throw new TypeError("sizeCalculation must be a function");if(y=x(d,f),!WI(y))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return y},this.#F=(f,d,y)=>{if(s[f]=d,this.#n){let x=this.#n-s[f];for(;this.#u>x;)this.#b(!0)}this.#u+=s[f],y&&(y.entrySize=d,y.totalCalculatedSize=this.#u)}}#R=t(s=>{},"#removeItemSize");#F=t((s,f,d)=>{},"#addItemSize");#L=t((s,f,d,y)=>{if(d||y)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0},"#requireSize");*#N({allowStale:s=this.allowStale}={}){if(this.#_)for(let f=this.#d;!(!this.#z(f)||((s||!this.#P(f))&&(yield f),f===this.#f));)f=this.#m[f]}*#I({allowStale:s=this.allowStale}={}){if(this.#_)for(let f=this.#f;!(!this.#z(f)||((s||!this.#P(f))&&(yield f),f===this.#d));)f=this.#h[f]}#z(s){return s!==void 0&&this.#c.get(this.#i[s])===s}*entries(){for(let s of this.#N())this.#a[s]!==void 0&&this.#i[s]!==void 0&&!this.#S(this.#a[s])&&(yield[this.#i[s],this.#a[s]])}*rentries(){for(let s of this.#I())this.#a[s]!==void 0&&this.#i[s]!==void 0&&!this.#S(this.#a[s])&&(yield[this.#i[s],this.#a[s]])}*keys(){for(let s of this.#N()){let f=this.#i[s];f!==void 0&&!this.#S(this.#a[s])&&(yield f)}}*rkeys(){for(let s of this.#I()){let f=this.#i[s];f!==void 0&&!this.#S(this.#a[s])&&(yield f)}}*values(){for(let s of this.#N())this.#a[s]!==void 0&&!this.#S(this.#a[s])&&(yield this.#a[s])}*rvalues(){for(let s of this.#I())this.#a[s]!==void 0&&!this.#S(this.#a[s])&&(yield this.#a[s])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(s,f={}){for(let d of this.#N()){let y=this.#a[d],x=this.#S(y)?y.__staleWhileFetching:y;if(x!==void 0&&s(x,this.#i[d],this))return this.get(this.#i[d],f)}}forEach(s,f=this){for(let d of this.#N()){let y=this.#a[d],x=this.#S(y)?y.__staleWhileFetching:y;x!==void 0&&s.call(f,x,this.#i[d],this)}}rforEach(s,f=this){for(let d of this.#I()){let y=this.#a[d],x=this.#S(y)?y.__staleWhileFetching:y;x!==void 0&&s.call(f,x,this.#i[d],this)}}purgeStale(){let s=!1;for(let f of this.#I({allowStale:!0}))this.#P(f)&&(this.#B(this.#i[f],"expire"),s=!0);return s}info(s){let f=this.#c.get(s);if(f===void 0)return;let d=this.#a[f],y=this.#S(d)?d.__staleWhileFetching:d;if(y===void 0)return;let x={value:y};if(this.#C&&this.#T){let P=this.#C[f],F=this.#T[f];if(P&&F){let J=P-(Rj.now()-F);x.ttl=J,x.start=Date.now()}}return this.#E&&(x.size=this.#E[f]),x}dump(){let s=[];for(let f of this.#N({allowStale:!0})){let d=this.#i[f],y=this.#a[f],x=this.#S(y)?y.__staleWhileFetching:y;if(x===void 0||d===void 0)continue;let P={value:x};if(this.#C&&this.#T){P.ttl=this.#C[f];let F=Rj.now()-this.#T[f];P.start=Math.floor(Date.now()-F)}this.#E&&(P.size=this.#E[f]),s.unshift([d,P])}return s}load(s){this.clear();for(let[f,d]of s){if(d.start){let y=Date.now()-d.start;d.start=Rj.now()-y}this.set(f,d.value,d)}}set(s,f,d={}){if(f===void 0)return this.delete(s),this;let{ttl:y=this.ttl,start:x,noDisposeOnSet:P=this.noDisposeOnSet,sizeCalculation:F=this.sizeCalculation,status:J}=d,{noUpdateTTL:G=this.noUpdateTTL}=d,Se=this.#L(s,f,d.size||0,F);if(this.maxEntrySize&&Se>this.maxEntrySize)return J&&(J.set="miss",J.maxEntrySizeExceeded=!0),this.#B(s,"set"),this;let de=this.#_===0?void 0:this.#c.get(s);if(de===void 0)de=this.#_===0?this.#d:this.#g.length!==0?this.#g.pop():this.#_===this.#e?this.#b(!1):this.#_,this.#i[de]=s,this.#a[de]=f,this.#c.set(s,de),this.#h[this.#d]=de,this.#m[de]=this.#d,this.#d=de,this.#_++,this.#F(de,Se,J),J&&(J.set="add"),G=!1,this.#A&&this.#r?.(f,s,"add");else{this.#$(de);let ae=this.#a[de];if(f!==ae){if(this.#v&&this.#S(ae)){ae.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:Ke}=ae;Ke!==void 0&&!P&&(this.#k&&this.#t?.(Ke,s,"set"),this.#x&&this.#y?.push([Ke,s,"set"]))}else P||(this.#k&&this.#t?.(ae,s,"set"),this.#x&&this.#y?.push([ae,s,"set"]));if(this.#R(de),this.#F(de,Se,J),this.#a[de]=f,J){J.set="replace";let Ke=ae&&this.#S(ae)?ae.__staleWhileFetching:ae;Ke!==void 0&&(J.oldValue=Ke)}}else J&&(J.set="update");this.#A&&this.onInsert?.(f,s,f===ae?"update":"replace")}if(y!==0&&!this.#C&&this.#l(),this.#C&&(G||this.#D(de,y,x),J&&this.#w(J,de)),!P&&this.#x&&this.#y){let ae=this.#y,Ke;for(;Ke=ae?.shift();)this.#s?.(...Ke)}return this}pop(){try{for(;this.#_;){let s=this.#a[this.#f];if(this.#b(!0),this.#S(s)){if(s.__staleWhileFetching)return s.__staleWhileFetching}else if(s!==void 0)return s}}finally{if(this.#x&&this.#y){let s=this.#y,f;for(;f=s?.shift();)this.#s?.(...f)}}}#b(s){let f=this.#f,d=this.#i[f],y=this.#a[f];return this.#v&&this.#S(y)?y.__abortController.abort(new Error("evicted")):(this.#k||this.#x)&&(this.#k&&this.#t?.(y,d,"evict"),this.#x&&this.#y?.push([y,d,"evict"])),this.#R(f),s&&(this.#i[f]=void 0,this.#a[f]=void 0,this.#g.push(f)),this.#_===1?(this.#f=this.#d=0,this.#g.length=0):this.#f=this.#h[f],this.#c.delete(d),this.#_--,f}has(s,f={}){let{updateAgeOnHas:d=this.updateAgeOnHas,status:y}=f,x=this.#c.get(s);if(x!==void 0){let P=this.#a[x];if(this.#S(P)&&P.__staleWhileFetching===void 0)return!1;if(this.#P(x))y&&(y.has="stale",this.#w(y,x));else return d&&this.#O(x),y&&(y.has="hit",this.#w(y,x)),!0}else y&&(y.has="miss");return!1}peek(s,f={}){let{allowStale:d=this.allowStale}=f,y=this.#c.get(s);if(y===void 0||!d&&this.#P(y))return;let x=this.#a[y];return this.#S(x)?x.__staleWhileFetching:x}#j(s,f,d,y){let x=f===void 0?void 0:this.#a[f];if(this.#S(x))return x;let P=new __e,{signal:F}=d;F?.addEventListener("abort",()=>P.abort(F.reason),{signal:P.signal});let J={signal:P.signal,options:d,context:y},G=t((Fe,Gt=!1)=>{let{aborted:jt}=P.signal,Pr=d.ignoreFetchAbort&&Fe!==void 0;if(d.status&&(jt&&!Gt?(d.status.fetchAborted=!0,d.status.fetchError=P.signal.reason,Pr&&(d.status.fetchAbortIgnored=!0)):d.status.fetchResolved=!0),jt&&!Pr&&!Gt)return de(P.signal.reason);let Fn=Ke;return this.#a[f]===Ke&&(Fe===void 0?Fn.__staleWhileFetching?this.#a[f]=Fn.__staleWhileFetching:this.#B(s,"fetch"):(d.status&&(d.status.fetchUpdated=!0),this.set(s,Fe,J.options))),Fe},"cb"),Se=t(Fe=>(d.status&&(d.status.fetchRejected=!0,d.status.fetchError=Fe),de(Fe)),"eb"),de=t(Fe=>{let{aborted:Gt}=P.signal,jt=Gt&&d.allowStaleOnFetchAbort,Pr=jt||d.allowStaleOnFetchRejection,Fn=Pr||d.noDeleteOnFetchRejection,sn=Ke;if(this.#a[f]===Ke&&(!Fn||sn.__staleWhileFetching===void 0?this.#B(s,"fetch"):jt||(this.#a[f]=sn.__staleWhileFetching)),Pr)return d.status&&sn.__staleWhileFetching!==void 0&&(d.status.returnedStale=!0),sn.__staleWhileFetching;if(sn.__returned===sn)throw Fe},"fetchFail"),ae=t((Fe,Gt)=>{let jt=this.#p?.(s,x,J);jt&&jt instanceof Promise&&jt.then(Pr=>Fe(Pr===void 0?void 0:Pr),Gt),P.signal.addEventListener("abort",()=>{(!d.ignoreFetchAbort||d.allowStaleOnFetchAbort)&&(Fe(void 0),d.allowStaleOnFetchAbort&&(Fe=t(Pr=>G(Pr,!0),"res")))})},"pcall");d.status&&(d.status.fetchDispatched=!0);let Ke=new Promise(ae).then(G,Se),$e=Object.assign(Ke,{__abortController:P,__staleWhileFetching:x,__returned:void 0});return f===void 0?(this.set(s,$e,{...J.options,status:void 0}),f=this.#c.get(s)):this.#a[f]=$e,$e}#S(s){if(!this.#v)return!1;let f=s;return!!f&&f instanceof Promise&&f.hasOwnProperty("__staleWhileFetching")&&f.__abortController instanceof __e}async fetch(s,f={}){let{allowStale:d=this.allowStale,updateAgeOnGet:y=this.updateAgeOnGet,noDeleteOnStaleGet:x=this.noDeleteOnStaleGet,ttl:P=this.ttl,noDisposeOnSet:F=this.noDisposeOnSet,size:J=0,sizeCalculation:G=this.sizeCalculation,noUpdateTTL:Se=this.noUpdateTTL,noDeleteOnFetchRejection:de=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:ae=this.allowStaleOnFetchRejection,ignoreFetchAbort:Ke=this.ignoreFetchAbort,allowStaleOnFetchAbort:$e=this.allowStaleOnFetchAbort,context:Fe,forceRefresh:Gt=!1,status:jt,signal:Pr}=f;if(!this.#v)return jt&&(jt.fetch="get"),this.get(s,{allowStale:d,updateAgeOnGet:y,noDeleteOnStaleGet:x,status:jt});let Fn={allowStale:d,updateAgeOnGet:y,noDeleteOnStaleGet:x,ttl:P,noDisposeOnSet:F,size:J,sizeCalculation:G,noUpdateTTL:Se,noDeleteOnFetchRejection:de,allowStaleOnFetchRejection:ae,allowStaleOnFetchAbort:$e,ignoreFetchAbort:Ke,status:jt,signal:Pr},sn=this.#c.get(s);if(sn===void 0){jt&&(jt.fetch="miss");let Un=this.#j(s,sn,Fn,Fe);return Un.__returned=Un}else{let Un=this.#a[sn];if(this.#S(Un)){let nc=d&&Un.__staleWhileFetching!==void 0;return jt&&(jt.fetch="inflight",nc&&(jt.returnedStale=!0)),nc?Un.__staleWhileFetching:Un.__returned=Un}let Er=this.#P(sn);if(!Gt&&!Er)return jt&&(jt.fetch="hit"),this.#$(sn),y&&this.#O(sn),jt&&this.#w(jt,sn),Un;let vr=this.#j(s,sn,Fn,Fe),Ni=vr.__staleWhileFetching!==void 0&&d;return jt&&(jt.fetch=Er?"stale":"refresh",Ni&&Er&&(jt.returnedStale=!0)),Ni?vr.__staleWhileFetching:vr.__returned=vr}}async forceFetch(s,f={}){let d=await this.fetch(s,f);if(d===void 0)throw new Error("fetch() returned undefined");return d}memo(s,f={}){let d=this.#o;if(!d)throw new Error("no memoMethod provided to constructor");let{context:y,forceRefresh:x,...P}=f,F=this.get(s,P);if(!x&&F!==void 0)return F;let J=d(s,F,{options:P,context:y});return this.set(s,J,P),J}get(s,f={}){let{allowStale:d=this.allowStale,updateAgeOnGet:y=this.updateAgeOnGet,noDeleteOnStaleGet:x=this.noDeleteOnStaleGet,status:P}=f,F=this.#c.get(s);if(F!==void 0){let J=this.#a[F],G=this.#S(J);return P&&this.#w(P,F),this.#P(F)?(P&&(P.get="stale"),G?(P&&d&&J.__staleWhileFetching!==void 0&&(P.returnedStale=!0),d?J.__staleWhileFetching:void 0):(x||this.#B(s,"expire"),P&&d&&(P.returnedStale=!0),d?J:void 0)):(P&&(P.get="hit"),G?J.__staleWhileFetching:(this.#$(F),y&&this.#O(F),J))}else P&&(P.get="miss")}#M(s,f){this.#m[f]=s,this.#h[s]=f}#$(s){s!==this.#d&&(s===this.#f?this.#f=this.#h[s]:this.#M(this.#m[s],this.#h[s]),this.#M(this.#d,s),this.#d=s)}delete(s){return this.#B(s,"delete")}#B(s,f){let d=!1;if(this.#_!==0){let y=this.#c.get(s);if(y!==void 0)if(d=!0,this.#_===1)this.#J(f);else{this.#R(y);let x=this.#a[y];if(this.#S(x)?x.__abortController.abort(new Error("deleted")):(this.#k||this.#x)&&(this.#k&&this.#t?.(x,s,f),this.#x&&this.#y?.push([x,s,f])),this.#c.delete(s),this.#i[y]=void 0,this.#a[y]=void 0,y===this.#d)this.#d=this.#m[y];else if(y===this.#f)this.#f=this.#h[y];else{let P=this.#m[y];this.#h[P]=this.#h[y];let F=this.#h[y];this.#m[F]=this.#m[y]}this.#_--,this.#g.push(y)}}if(this.#x&&this.#y?.length){let y=this.#y,x;for(;x=y?.shift();)this.#s?.(...x)}return d}clear(){return this.#J("delete")}#J(s){for(let f of this.#I({allowStale:!0})){let d=this.#a[f];if(this.#S(d))d.__abortController.abort(new Error("deleted"));else{let y=this.#i[f];this.#k&&this.#t?.(d,y,s),this.#x&&this.#y?.push([d,y,s])}}if(this.#c.clear(),this.#a.fill(void 0),this.#i.fill(void 0),this.#C&&this.#T&&(this.#C.fill(0),this.#T.fill(0)),this.#E&&this.#E.fill(0),this.#f=0,this.#d=0,this.#g.length=0,this.#u=0,this.#_=0,this.#x&&this.#y){let f=this.#y,d;for(;d=f?.shift();)this.#s?.(...d)}}};import{SourceMapConsumer as xTr}from"source-map";var LOe=new p_e({max:100,ttl:1e3*60*5,dispose:t(o=>{o&&o.destroy()},"dispose")});function ETr(o){let s=o.split(`
|
|
920
920
|
`),f=[],d="",y=/^\s*at\s+(?:(.+?)\s+\()?(.+?):(\d+):(\d+)\)?$/;for(let x=0;x<s.length&&!(x>10);x++){let P=s[x],F=y.exec(P);F?f.push({functionName:F[1]||"<anonymous>",fileName:F[2],lineNumber:parseInt(F[3],10),columnNumber:parseInt(F[4],10),source:P}):x===0&&(d=P)}return{errorMessage:d,frames:f}}t(ETr,"parseStackTrace");async function iSt(o,s){try{return await s(o)}catch{return null}}t(iSt,"loadSourceMap");async function CTr(o,s){let f=`${o}.map`,d=await iSt(f,s);if(d)return d;try{let y=await s(o),P=/\/\/[#@]\s*sourceMappingURL=(.+?)$/m.exec(y);if(P){let F=P[1].trim();if(F.startsWith("data:")){let Se=/^data:application\/json;(?:charset=utf-8;)?base64,(.+)$/.exec(F);if(Se)return Buffer.from(Se[1],"base64").toString("utf-8")}let J=d_e.resolve(d_e.dirname(o),F);if(d=await iSt(J,s),d)return d}}catch{}return null}t(CTr,"findSourceMap");async function sSt(o,s){let{errorMessage:f,frames:d}=ETr(o),y=[];for(let x of d){if(!x.fileName||!x.lineNumber||!x.columnNumber){y.push(x);continue}if(x.fileName.startsWith("http://")||x.fileName.startsWith("https://")){y.push(x);continue}let P=x.fileName.replace(/^file:\/\//,"");if(!LOe.has(P)){let J=await CTr(P,s);if(J)try{let G=await new xTr(JSON.parse(J));LOe.set(P,G)}catch{}}let F=LOe.get(P);if(F)try{let J=F.originalPositionFor({line:x.lineNumber,column:x.columnNumber-1});if(J.source){let G=J.source.startsWith("../")?J.source.replace(/^\.\.\/+/,""):J.source;G.includes("@zuplo/")&&(G=G.replace(/@zuplo\/([^/]+)\/out\/(?:esm|cjs)\/@zuplo\/\1\//,"@zuplo/$1/"),G=G.replace(/@zuplo\/([^/]+)\/dist\/@zuplo\/\1\//,"@zuplo/$1/")),G.includes("/app/packages/")&&G.includes("/src/")&&(G=G.replace(/.*\/app\/packages\/([^/]+)\/src\//,"@zuplo/$1/")),G.includes("node_modules/")&&(G=G.replace(/.*node_modules\//,""));let Se=J.name??void 0;if(!Se&&x.functionName&&x.functionName.length<=2){let ae=[];for(let $e=1;$e<=30;$e++){let Fe=F.originalPositionFor({line:x.lineNumber,column:Math.max(0,x.columnNumber-1-$e)});Fe.name&&ae.push({name:Fe.name,distance:$e})}let Ke=ae.find($e=>$e.name.includes("default")||$e.name.includes("Default"))||ae.find($e=>$e.name.includes("_"))||ae.find($e=>/^[a-z][A-Za-z0-9]*$/.test($e.name)&&$e.name.length>5)||ae[0];Ke&&(Se=Ke.name)}Se=Se??x.functionName;let de={...x,originalFileName:G,originalLineNumber:J.line??void 0,originalColumnNumber:J.column!=null?J.column+1:void 0,originalFunctionName:Se};if(J.line){let ae=F.sourceContentFor(J.source,!0);if(ae){let Ke=ae.split(`
|
|
921
921
|
`);Ke[J.line-1]&&(de.originalSource=Ke[J.line-1].trim())}}if(de.originalFileName?.includes("@opentelemetry/api/")&&(de.originalFileName.includes("/context/")||de.originalFileName.includes("/trace/")||de.originalFunctionName?.includes(".with")||de.originalFunctionName?.includes("startActiveSpan")))continue;y.push(de);continue}}catch{}y.push(x)}return kTr(f,y)}t(sSt,"mapStacktrace");function kTr(o,s){let f=[];o&&f.push(o);for(let d of s)if(d.originalFileName&&d.originalLineNumber){let y=d.originalFunctionName||d.functionName||"<anonymous>",x=d.originalFileName,P=d.originalLineNumber,F=d.originalColumnNumber||1;f.push(` at ${y} (${x}:${P}:${F})`),d.originalSource&&f.push(` ${d.originalSource}`)}else f.push(d.source);return f.join(`
|
|
922
922
|
`)}t(kTr,"formatMappedStackTrace");var wTr={GET:g_.green(g_.bold("GET")),POST:g_.blue(g_.bold("POST")),PUT:g_.yellow(g_.bold("PUT")),DELETE:g_.red(g_.bold("DELETE")),PATCH:g_.magenta(g_.bold("PATCH")),HEAD:g_.cyan(g_.bold("HEAD")),OPTIONS:g_.gray(g_.bold("OPTIONS"))},aSt={error:g_.red(g_.bold("ERROR".padEnd(5))),warn:g_.yellow(g_.bold("WARN".padEnd(5))),info:g_.blue(g_.bold("INFO".padEnd(5))),debug:g_.gray(g_.bold("DEBUG".padEnd(5)))},oSt;function DTr(){return oSt??=new Intl.DateTimeFormat(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1,fractionalSecondDigits:3}),oSt}t(DTr,"getTimeFormatter");function cSt(o){return g_.white(g_.dim(`[${DTr().format(o?new Date(o):new Date)}]`))}t(cSt,"getTimestamp");var lSt=class{static{t(this,"LogFormatter")}getFile;youch=new Qbt;constructor(s){this.getFile=s}formatLine(s,f){let d=typeof f=="string"?f:JSON.stringify(f);return`${cSt()} ${aSt[s]} ${d}`}async formatStructured(s,f){if(typeof f=="object"&&f&&Object.keys(f).length===0)return;let{level:d,route:y,method:x,timestamp:P}=s,F=y.endsWith("{/}?")?y.slice(0,-4):y,J=await this.formatMessage(f);return`${cSt(P)} ${aSt[d]} [${wTr[x.toUpperCase()]} ${g_.blue(F)}] ${J}`}async formatMessage(s){let f=s.trim();if(f.startsWith("{")&&f.endsWith("}"))try{let d=JSON.parse(f);if("stack"in d&&PTr(d.stack)){let{stack:y,message:x,name:P,...F}=d,J=await this.formatError(y),G;return P&&x?G=`${P}: ${x}`:x?G=`Error: ${x}`:G="An error occurred",Object.keys(F).length>0&&(G+=`
|