@famibee/skynovel 1.31.1 → 1.31.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/appMain.js CHANGED
@@ -1,16 +1,16 @@
1
- "use strict";var Xi=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var fe=(e,t,r)=>(Xi(e,t,"read from private field"),r?r.call(e):t.get(e)),qe=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},Xe=(e,t,r,n)=>(Xi(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var Pr=(e,t,r)=>(Xi(e,t,"access private method"),r);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const le=require("electron"),Nf=require("fs"),If=require("constants"),Of=require("stream"),Tf=require("util"),Df=require("assert"),Rf=require("path"),Cf=require("crypto"),Pf=require("events"),Af=require("os"),bf=require("zlib"),Dt=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},Lf=Dt(le),Yr=Dt(Nf),Ff=Dt(If),jf=Dt(Of),Oi=Dt(Tf),Ds=Dt(Df),Re=Dt(Rf),Nc=Dt(Cf),Mf=Dt(Pf),kf=Dt(Af),Ic=Dt(bf);var tr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Or={},nt={};nt.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((r,n)=>{e.call(this,...t,(i,s)=>i!=null?n(i):r(s))})},"name",{value:e.name})};nt.fromPromise=function(e){return Object.defineProperty(function(...t){const r=t[t.length-1];if(typeof r!="function")return e.apply(this,t);e.apply(this,t.slice(0,-1)).then(n=>r(null,n),r)},"name",{value:e.name})};var Wt=Ff.default,Uf=process.cwd,ni=null,zf=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return ni||(ni=Uf.call(process)),ni};try{process.cwd()}catch{}if(typeof process.chdir=="function"){var ra=process.chdir;process.chdir=function(e){ni=null,ra.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,ra)}var xf=Vf;function Vf(e){Wt.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=s(e.chown),e.fchown=s(e.fchown),e.lchown=s(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=o(e.chownSync),e.fchownSync=o(e.fchownSync),e.lchownSync=o(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=c(e.stat),e.fstat=c(e.fstat),e.lstat=c(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(a,l,y){y&&process.nextTick(y)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(a,l,y,d){d&&process.nextTick(d)},e.lchownSync=function(){}),zf==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(a){function l(y,d,h){var m=Date.now(),E=0;a(y,d,function f($){if($&&($.code==="EACCES"||$.code==="EPERM")&&Date.now()-m<6e4){setTimeout(function(){e.stat(d,function(_,O){_&&_.code==="ENOENT"?a(y,d,f):h($)})},E),E<100&&(E+=10);return}h&&h($)})}return Object.setPrototypeOf&&Object.setPrototypeOf(l,a),l}(e.rename)),e.read=typeof e.read!="function"?e.read:function(a){function l(y,d,h,m,E,f){var $;if(f&&typeof f=="function"){var _=0;$=function(O,q,R){if(O&&O.code==="EAGAIN"&&_<10)return _++,a.call(e,y,d,h,m,E,$);f.apply(this,arguments)}}return a.call(e,y,d,h,m,E,$)}return Object.setPrototypeOf&&Object.setPrototypeOf(l,a),l}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(a){return function(l,y,d,h,m){for(var E=0;;)try{return a.call(e,l,y,d,h,m)}catch(f){if(f.code==="EAGAIN"&&E<10){E++;continue}throw f}}}(e.readSync);function t(a){a.lchmod=function(l,y,d){a.open(l,Wt.O_WRONLY|Wt.O_SYMLINK,y,function(h,m){if(h){d&&d(h);return}a.fchmod(m,y,function(E){a.close(m,function(f){d&&d(E||f)})})})},a.lchmodSync=function(l,y){var d=a.openSync(l,Wt.O_WRONLY|Wt.O_SYMLINK,y),h=!0,m;try{m=a.fchmodSync(d,y),h=!1}finally{if(h)try{a.closeSync(d)}catch{}else a.closeSync(d)}return m}}function r(a){Wt.hasOwnProperty("O_SYMLINK")&&a.futimes?(a.lutimes=function(l,y,d,h){a.open(l,Wt.O_SYMLINK,function(m,E){if(m){h&&h(m);return}a.futimes(E,y,d,function(f){a.close(E,function($){h&&h(f||$)})})})},a.lutimesSync=function(l,y,d){var h=a.openSync(l,Wt.O_SYMLINK),m,E=!0;try{m=a.futimesSync(h,y,d),E=!1}finally{if(E)try{a.closeSync(h)}catch{}else a.closeSync(h)}return m}):a.futimes&&(a.lutimes=function(l,y,d,h){h&&process.nextTick(h)},a.lutimesSync=function(){})}function n(a){return a&&function(l,y,d){return a.call(e,l,y,function(h){p(h)&&(h=null),d&&d.apply(this,arguments)})}}function i(a){return a&&function(l,y){try{return a.call(e,l,y)}catch(d){if(!p(d))throw d}}}function s(a){return a&&function(l,y,d,h){return a.call(e,l,y,d,function(m){p(m)&&(m=null),h&&h.apply(this,arguments)})}}function o(a){return a&&function(l,y,d){try{return a.call(e,l,y,d)}catch(h){if(!p(h))throw h}}}function c(a){return a&&function(l,y,d){typeof y=="function"&&(d=y,y=null);function h(m,E){E&&(E.uid<0&&(E.uid+=4294967296),E.gid<0&&(E.gid+=4294967296)),d&&d.apply(this,arguments)}return y?a.call(e,l,y,h):a.call(e,l,h)}}function u(a){return a&&function(l,y){var d=y?a.call(e,l,y):a.call(e,l);return d&&(d.uid<0&&(d.uid+=4294967296),d.gid<0&&(d.gid+=4294967296)),d}}function p(a){if(!a||a.code==="ENOSYS")return!0;var l=!process.getuid||process.getuid()!==0;return!!(l&&(a.code==="EINVAL"||a.code==="EPERM"))}}var na=jf.default.Stream,qf=Gf;function Gf(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);na.call(this);var s=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var o=Object.keys(i),c=0,u=o.length;c<u;c++){var p=o[c];this[p]=i[p]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}e.open(this.path,this.flags,this.mode,function(a,l){if(a){s.emit("error",a),s.readable=!1;return}s.fd=l,s.emit("open",l),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);na.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),o=0,c=s.length;o<c;o++){var u=s[o];this[u]=i[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}var Bf=Kf,Hf=Object.getPrototypeOf||function(e){return e.__proto__};function Kf(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:Hf(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}var Te=Yr.default,Wf=xf,Xf=qf,Zf=Bf,qn=Oi.default,Ke,mi;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Ke=Symbol.for("graceful-fs.queue"),mi=Symbol.for("graceful-fs.previous")):(Ke="___graceful-fs.queue",mi="___graceful-fs.previous");function Jf(){}function Oc(e,t){Object.defineProperty(e,Ke,{get:function(){return t}})}var Sr=Jf;qn.debuglog?Sr=qn.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Sr=function(){var e=qn.format.apply(qn,arguments);e="GFS4: "+e.split(/\n/).join(`
2
- GFS4: `),console.error(e)});if(!Te[Ke]){var Yf=tr[Ke]||[];Oc(Te,Yf),Te.close=function(e){function t(r,n){return e.call(Te,r,function(i){i||ia(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,mi,{value:e}),t}(Te.close),Te.closeSync=function(e){function t(r){e.apply(Te,arguments),ia()}return Object.defineProperty(t,mi,{value:e}),t}(Te.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Sr(Te[Ke]),Ds.default.equal(Te[Ke].length,0)})}tr[Ke]||Oc(tr,Te[Ke]);var it=Rs(Zf(Te));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Te.__patched&&(it=Rs(Te),Te.__patched=!0);function Rs(e){Wf(e),e.gracefulify=Rs,e.createReadStream=q,e.createWriteStream=R;var t=e.readFile;e.readFile=r;function r(L,G,j){return typeof G=="function"&&(j=G,G=null),b(L,G,j);function b(K,B,X,Z){return t(K,B,function(W){W&&(W.code==="EMFILE"||W.code==="ENFILE")?Ar([b,[K,B,X],W,Z||Date.now(),Date.now()]):typeof X=="function"&&X.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(L,G,j,b){return typeof j=="function"&&(b=j,j=null),K(L,G,j,b);function K(B,X,Z,W,F){return n(B,X,Z,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?Ar([K,[B,X,Z,W],z,F||Date.now(),Date.now()]):typeof W=="function"&&W.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=o);function o(L,G,j,b){return typeof j=="function"&&(b=j,j=null),K(L,G,j,b);function K(B,X,Z,W,F){return s(B,X,Z,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?Ar([K,[B,X,Z,W],z,F||Date.now(),Date.now()]):typeof W=="function"&&W.apply(this,arguments)})}}var c=e.copyFile;c&&(e.copyFile=u);function u(L,G,j,b){return typeof j=="function"&&(b=j,j=0),K(L,G,j,b);function K(B,X,Z,W,F){return c(B,X,Z,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?Ar([K,[B,X,Z,W],z,F||Date.now(),Date.now()]):typeof W=="function"&&W.apply(this,arguments)})}}var p=e.readdir;e.readdir=l;var a=/^v[0-5]\./;function l(L,G,j){typeof G=="function"&&(j=G,G=null);var b=a.test(process.version)?function(X,Z,W,F){return p(X,K(X,Z,W,F))}:function(X,Z,W,F){return p(X,Z,K(X,Z,W,F))};return b(L,G,j);function K(B,X,Z,W){return function(F,z){F&&(F.code==="EMFILE"||F.code==="ENFILE")?Ar([b,[B,X,Z],F,W||Date.now(),Date.now()]):(z&&z.sort&&z.sort(),typeof Z=="function"&&Z.call(this,F,z))}}}if(process.version.substr(0,4)==="v0.8"){var y=Xf(e);f=y.ReadStream,_=y.WriteStream}var d=e.ReadStream;d&&(f.prototype=Object.create(d.prototype),f.prototype.open=$);var h=e.WriteStream;h&&(_.prototype=Object.create(h.prototype),_.prototype.open=O),Object.defineProperty(e,"ReadStream",{get:function(){return f},set:function(L){f=L},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return _},set:function(L){_=L},enumerable:!0,configurable:!0});var m=f;Object.defineProperty(e,"FileReadStream",{get:function(){return m},set:function(L){m=L},enumerable:!0,configurable:!0});var E=_;Object.defineProperty(e,"FileWriteStream",{get:function(){return E},set:function(L){E=L},enumerable:!0,configurable:!0});function f(L,G){return this instanceof f?(d.apply(this,arguments),this):f.apply(Object.create(f.prototype),arguments)}function $(){var L=this;V(L.path,L.flags,L.mode,function(G,j){G?(L.autoClose&&L.destroy(),L.emit("error",G)):(L.fd=j,L.emit("open",j),L.read())})}function _(L,G){return this instanceof _?(h.apply(this,arguments),this):_.apply(Object.create(_.prototype),arguments)}function O(){var L=this;V(L.path,L.flags,L.mode,function(G,j){G?(L.destroy(),L.emit("error",G)):(L.fd=j,L.emit("open",j))})}function q(L,G){return new e.ReadStream(L,G)}function R(L,G){return new e.WriteStream(L,G)}var C=e.open;e.open=V;function V(L,G,j,b){return typeof j=="function"&&(b=j,j=null),K(L,G,j,b);function K(B,X,Z,W,F){return C(B,X,Z,function(z,T){z&&(z.code==="EMFILE"||z.code==="ENFILE")?Ar([K,[B,X,Z,W],z,F||Date.now(),Date.now()]):typeof W=="function"&&W.apply(this,arguments)})}}return e}function Ar(e){Sr("ENQUEUE",e[0].name,e[1]),Te[Ke].push(e),Cs()}var Gn;function ia(){for(var e=Date.now(),t=0;t<Te[Ke].length;++t)Te[Ke][t].length>2&&(Te[Ke][t][3]=e,Te[Ke][t][4]=e);Cs()}function Cs(){if(clearTimeout(Gn),Gn=void 0,Te[Ke].length!==0){var e=Te[Ke].shift(),t=e[0],r=e[1],n=e[2],i=e[3],s=e[4];if(i===void 0)Sr("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){Sr("TIMEOUT",t.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var c=Date.now()-s,u=Math.max(s-i,1),p=Math.min(u*1.2,100);c>=p?(Sr("RETRY",t.name,r),t.apply(null,r.concat([i]))):Te[Ke].push(e)}Gn===void 0&&(Gn=setTimeout(Cs,0))}}(function(e){const t=nt.fromCallback,r=it,n=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(i=>typeof r[i]=="function");Object.assign(e,r),n.forEach(i=>{e[i]=t(r[i])}),e.exists=function(i,s){return typeof s=="function"?r.exists(i,s):new Promise(o=>r.exists(i,o))},e.read=function(i,s,o,c,u,p){return typeof p=="function"?r.read(i,s,o,c,u,p):new Promise((a,l)=>{r.read(i,s,o,c,u,(y,d,h)=>{if(y)return l(y);a({bytesRead:d,buffer:h})})})},e.write=function(i,s,...o){return typeof o[o.length-1]=="function"?r.write(i,s,...o):new Promise((c,u)=>{r.write(i,s,...o,(p,a,l)=>{if(p)return u(p);c({bytesWritten:a,buffer:l})})})},typeof r.writev=="function"&&(e.writev=function(i,s,...o){return typeof o[o.length-1]=="function"?r.writev(i,s,...o):new Promise((c,u)=>{r.writev(i,s,...o,(p,a,l)=>{if(p)return u(p);c({bytesWritten:a,buffers:l})})})}),typeof r.realpath.native=="function"?e.realpath.native=t(r.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")})(Or);var Ps={},Tc={};const Qf=Re.default;Tc.checkPath=function(t){if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace(Qf.parse(t).root,""))){const n=new Error(`Path contains invalid characters: ${t}`);throw n.code="EINVAL",n}};const Dc=Or,{checkPath:Rc}=Tc,Cc=e=>{const t={mode:511};return typeof e=="number"?e:{...t,...e}.mode};Ps.makeDir=async(e,t)=>(Rc(e),Dc.mkdir(e,{mode:Cc(t),recursive:!0}));Ps.makeDirSync=(e,t)=>(Rc(e),Dc.mkdirSync(e,{mode:Cc(t),recursive:!0}));const el=nt.fromPromise,{makeDir:tl,makeDirSync:Zi}=Ps,Ji=el(tl);var Mt={mkdirs:Ji,mkdirsSync:Zi,mkdirp:Ji,mkdirpSync:Zi,ensureDir:Ji,ensureDirSync:Zi};const rl=nt.fromPromise,Pc=Or;function nl(e){return Pc.access(e).then(()=>!0).catch(()=>!1)}var Tr={pathExists:rl(nl),pathExistsSync:Pc.existsSync};const zr=it;function il(e,t,r,n){zr.open(e,"r+",(i,s)=>{if(i)return n(i);zr.futimes(s,t,r,o=>{zr.close(s,c=>{n&&n(o||c)})})})}function sl(e,t,r){const n=zr.openSync(e,"r+");return zr.futimesSync(n,t,r),zr.closeSync(n)}var Ac={utimesMillis:il,utimesMillisSync:sl};const Kr=Or,ze=Re.default,ol=Oi.default;function al(e,t,r){const n=r.dereference?i=>Kr.stat(i,{bigint:!0}):i=>Kr.lstat(i,{bigint:!0});return Promise.all([n(e),n(t).catch(i=>{if(i.code==="ENOENT")return null;throw i})]).then(([i,s])=>({srcStat:i,destStat:s}))}function cl(e,t,r){let n;const i=r.dereference?o=>Kr.statSync(o,{bigint:!0}):o=>Kr.lstatSync(o,{bigint:!0}),s=i(e);try{n=i(t)}catch(o){if(o.code==="ENOENT")return{srcStat:s,destStat:null};throw o}return{srcStat:s,destStat:n}}function ul(e,t,r,n,i){ol.callbackify(al)(e,t,n,(s,o)=>{if(s)return i(s);const{srcStat:c,destStat:u}=o;if(u){if(jn(c,u)){const p=ze.basename(e),a=ze.basename(t);return r==="move"&&p!==a&&p.toLowerCase()===a.toLowerCase()?i(null,{srcStat:c,destStat:u,isChangingCase:!0}):i(new Error("Source and destination must not be the same."))}if(c.isDirectory()&&!u.isDirectory())return i(new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`));if(!c.isDirectory()&&u.isDirectory())return i(new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`))}return c.isDirectory()&&As(e,t)?i(new Error(Ti(e,t,r))):i(null,{srcStat:c,destStat:u})})}function fl(e,t,r,n){const{srcStat:i,destStat:s}=cl(e,t,n);if(s){if(jn(i,s)){const o=ze.basename(e),c=ze.basename(t);if(r==="move"&&o!==c&&o.toLowerCase()===c.toLowerCase())return{srcStat:i,destStat:s,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(i.isDirectory()&&!s.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!i.isDirectory()&&s.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(i.isDirectory()&&As(e,t))throw new Error(Ti(e,t,r));return{srcStat:i,destStat:s}}function bc(e,t,r,n,i){const s=ze.resolve(ze.dirname(e)),o=ze.resolve(ze.dirname(r));if(o===s||o===ze.parse(o).root)return i();Kr.stat(o,{bigint:!0},(c,u)=>c?c.code==="ENOENT"?i():i(c):jn(t,u)?i(new Error(Ti(e,r,n))):bc(e,t,o,n,i))}function Lc(e,t,r,n){const i=ze.resolve(ze.dirname(e)),s=ze.resolve(ze.dirname(r));if(s===i||s===ze.parse(s).root)return;let o;try{o=Kr.statSync(s,{bigint:!0})}catch(c){if(c.code==="ENOENT")return;throw c}if(jn(t,o))throw new Error(Ti(e,r,n));return Lc(e,t,s,n)}function jn(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function As(e,t){const r=ze.resolve(e).split(ze.sep).filter(i=>i),n=ze.resolve(t).split(ze.sep).filter(i=>i);return r.reduce((i,s,o)=>i&&n[o]===s,!0)}function Ti(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}var Qr={checkPaths:ul,checkPathsSync:fl,checkParentPaths:bc,checkParentPathsSync:Lc,isSrcSubdir:As,areIdentical:jn};const ft=it,wn=Re.default,ll=Mt.mkdirs,dl=Tr.pathExists,hl=Ac.utimesMillis,Nn=Qr;function ml(e,t,r,n){typeof r=="function"&&!n?(n=r,r={}):typeof r=="function"&&(r={filter:r}),n=n||function(){},r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
1
+ "use strict";var Xi=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var fe=(e,t,r)=>(Xi(e,t,"read from private field"),r?r.call(e):t.get(e)),qe=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},Xe=(e,t,r,n)=>(Xi(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var Pr=(e,t,r)=>(Xi(e,t,"access private method"),r);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const le=require("electron"),Nf=require("fs"),If=require("constants"),Of=require("stream"),Tf=require("util"),Df=require("assert"),Rf=require("path"),Cf=require("crypto"),Pf=require("events"),Af=require("os"),bf=require("zlib"),Dt=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},Lf=Dt(le),Yr=Dt(Nf),Ff=Dt(If),jf=Dt(Of),Oi=Dt(Tf),Ds=Dt(Df),Re=Dt(Rf),Ic=Dt(Cf),Mf=Dt(Pf),kf=Dt(Af),Oc=Dt(bf);var tr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Or={},nt={};nt.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((r,n)=>{e.call(this,...t,(i,s)=>i!=null?n(i):r(s))})},"name",{value:e.name})};nt.fromPromise=function(e){return Object.defineProperty(function(...t){const r=t[t.length-1];if(typeof r!="function")return e.apply(this,t);e.apply(this,t.slice(0,-1)).then(n=>r(null,n),r)},"name",{value:e.name})};var Wt=Ff.default,Uf=process.cwd,ni=null,zf=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return ni||(ni=Uf.call(process)),ni};try{process.cwd()}catch{}if(typeof process.chdir=="function"){var ra=process.chdir;process.chdir=function(e){ni=null,ra.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,ra)}var xf=Vf;function Vf(e){Wt.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=s(e.chown),e.fchown=s(e.fchown),e.lchown=s(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=o(e.chownSync),e.fchownSync=o(e.fchownSync),e.lchownSync=o(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=c(e.stat),e.fstat=c(e.fstat),e.lstat=c(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(a,l,y){y&&process.nextTick(y)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(a,l,y,d){d&&process.nextTick(d)},e.lchownSync=function(){}),zf==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(a){function l(y,d,h){var m=Date.now(),E=0;a(y,d,function f($){if($&&($.code==="EACCES"||$.code==="EPERM")&&Date.now()-m<6e4){setTimeout(function(){e.stat(d,function(_,O){_&&_.code==="ENOENT"?a(y,d,f):h($)})},E),E<100&&(E+=10);return}h&&h($)})}return Object.setPrototypeOf&&Object.setPrototypeOf(l,a),l}(e.rename)),e.read=typeof e.read!="function"?e.read:function(a){function l(y,d,h,m,E,f){var $;if(f&&typeof f=="function"){var _=0;$=function(O,q,R){if(O&&O.code==="EAGAIN"&&_<10)return _++,a.call(e,y,d,h,m,E,$);f.apply(this,arguments)}}return a.call(e,y,d,h,m,E,$)}return Object.setPrototypeOf&&Object.setPrototypeOf(l,a),l}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(a){return function(l,y,d,h,m){for(var E=0;;)try{return a.call(e,l,y,d,h,m)}catch(f){if(f.code==="EAGAIN"&&E<10){E++;continue}throw f}}}(e.readSync);function t(a){a.lchmod=function(l,y,d){a.open(l,Wt.O_WRONLY|Wt.O_SYMLINK,y,function(h,m){if(h){d&&d(h);return}a.fchmod(m,y,function(E){a.close(m,function(f){d&&d(E||f)})})})},a.lchmodSync=function(l,y){var d=a.openSync(l,Wt.O_WRONLY|Wt.O_SYMLINK,y),h=!0,m;try{m=a.fchmodSync(d,y),h=!1}finally{if(h)try{a.closeSync(d)}catch{}else a.closeSync(d)}return m}}function r(a){Wt.hasOwnProperty("O_SYMLINK")&&a.futimes?(a.lutimes=function(l,y,d,h){a.open(l,Wt.O_SYMLINK,function(m,E){if(m){h&&h(m);return}a.futimes(E,y,d,function(f){a.close(E,function($){h&&h(f||$)})})})},a.lutimesSync=function(l,y,d){var h=a.openSync(l,Wt.O_SYMLINK),m,E=!0;try{m=a.futimesSync(h,y,d),E=!1}finally{if(E)try{a.closeSync(h)}catch{}else a.closeSync(h)}return m}):a.futimes&&(a.lutimes=function(l,y,d,h){h&&process.nextTick(h)},a.lutimesSync=function(){})}function n(a){return a&&function(l,y,d){return a.call(e,l,y,function(h){p(h)&&(h=null),d&&d.apply(this,arguments)})}}function i(a){return a&&function(l,y){try{return a.call(e,l,y)}catch(d){if(!p(d))throw d}}}function s(a){return a&&function(l,y,d,h){return a.call(e,l,y,d,function(m){p(m)&&(m=null),h&&h.apply(this,arguments)})}}function o(a){return a&&function(l,y,d){try{return a.call(e,l,y,d)}catch(h){if(!p(h))throw h}}}function c(a){return a&&function(l,y,d){typeof y=="function"&&(d=y,y=null);function h(m,E){E&&(E.uid<0&&(E.uid+=4294967296),E.gid<0&&(E.gid+=4294967296)),d&&d.apply(this,arguments)}return y?a.call(e,l,y,h):a.call(e,l,h)}}function u(a){return a&&function(l,y){var d=y?a.call(e,l,y):a.call(e,l);return d&&(d.uid<0&&(d.uid+=4294967296),d.gid<0&&(d.gid+=4294967296)),d}}function p(a){if(!a||a.code==="ENOSYS")return!0;var l=!process.getuid||process.getuid()!==0;return!!(l&&(a.code==="EINVAL"||a.code==="EPERM"))}}var na=jf.default.Stream,qf=Gf;function Gf(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);na.call(this);var s=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var o=Object.keys(i),c=0,u=o.length;c<u;c++){var p=o[c];this[p]=i[p]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}e.open(this.path,this.flags,this.mode,function(a,l){if(a){s.emit("error",a),s.readable=!1;return}s.fd=l,s.emit("open",l),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);na.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),o=0,c=s.length;o<c;o++){var u=s[o];this[u]=i[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}var Bf=Kf,Hf=Object.getPrototypeOf||function(e){return e.__proto__};function Kf(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:Hf(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}var Te=Yr.default,Wf=xf,Xf=qf,Zf=Bf,qn=Oi.default,Ke,mi;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Ke=Symbol.for("graceful-fs.queue"),mi=Symbol.for("graceful-fs.previous")):(Ke="___graceful-fs.queue",mi="___graceful-fs.previous");function Jf(){}function Tc(e,t){Object.defineProperty(e,Ke,{get:function(){return t}})}var Sr=Jf;qn.debuglog?Sr=qn.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Sr=function(){var e=qn.format.apply(qn,arguments);e="GFS4: "+e.split(/\n/).join(`
2
+ GFS4: `),console.error(e)});if(!Te[Ke]){var Yf=tr[Ke]||[];Tc(Te,Yf),Te.close=function(e){function t(r,n){return e.call(Te,r,function(i){i||ia(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,mi,{value:e}),t}(Te.close),Te.closeSync=function(e){function t(r){e.apply(Te,arguments),ia()}return Object.defineProperty(t,mi,{value:e}),t}(Te.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Sr(Te[Ke]),Ds.default.equal(Te[Ke].length,0)})}tr[Ke]||Tc(tr,Te[Ke]);var it=Rs(Zf(Te));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Te.__patched&&(it=Rs(Te),Te.__patched=!0);function Rs(e){Wf(e),e.gracefulify=Rs,e.createReadStream=q,e.createWriteStream=R;var t=e.readFile;e.readFile=r;function r(L,G,j){return typeof G=="function"&&(j=G,G=null),b(L,G,j);function b(K,B,X,Z){return t(K,B,function(W){W&&(W.code==="EMFILE"||W.code==="ENFILE")?Ar([b,[K,B,X],W,Z||Date.now(),Date.now()]):typeof X=="function"&&X.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(L,G,j,b){return typeof j=="function"&&(b=j,j=null),K(L,G,j,b);function K(B,X,Z,W,F){return n(B,X,Z,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?Ar([K,[B,X,Z,W],z,F||Date.now(),Date.now()]):typeof W=="function"&&W.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=o);function o(L,G,j,b){return typeof j=="function"&&(b=j,j=null),K(L,G,j,b);function K(B,X,Z,W,F){return s(B,X,Z,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?Ar([K,[B,X,Z,W],z,F||Date.now(),Date.now()]):typeof W=="function"&&W.apply(this,arguments)})}}var c=e.copyFile;c&&(e.copyFile=u);function u(L,G,j,b){return typeof j=="function"&&(b=j,j=0),K(L,G,j,b);function K(B,X,Z,W,F){return c(B,X,Z,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?Ar([K,[B,X,Z,W],z,F||Date.now(),Date.now()]):typeof W=="function"&&W.apply(this,arguments)})}}var p=e.readdir;e.readdir=l;var a=/^v[0-5]\./;function l(L,G,j){typeof G=="function"&&(j=G,G=null);var b=a.test(process.version)?function(X,Z,W,F){return p(X,K(X,Z,W,F))}:function(X,Z,W,F){return p(X,Z,K(X,Z,W,F))};return b(L,G,j);function K(B,X,Z,W){return function(F,z){F&&(F.code==="EMFILE"||F.code==="ENFILE")?Ar([b,[B,X,Z],F,W||Date.now(),Date.now()]):(z&&z.sort&&z.sort(),typeof Z=="function"&&Z.call(this,F,z))}}}if(process.version.substr(0,4)==="v0.8"){var y=Xf(e);f=y.ReadStream,_=y.WriteStream}var d=e.ReadStream;d&&(f.prototype=Object.create(d.prototype),f.prototype.open=$);var h=e.WriteStream;h&&(_.prototype=Object.create(h.prototype),_.prototype.open=O),Object.defineProperty(e,"ReadStream",{get:function(){return f},set:function(L){f=L},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return _},set:function(L){_=L},enumerable:!0,configurable:!0});var m=f;Object.defineProperty(e,"FileReadStream",{get:function(){return m},set:function(L){m=L},enumerable:!0,configurable:!0});var E=_;Object.defineProperty(e,"FileWriteStream",{get:function(){return E},set:function(L){E=L},enumerable:!0,configurable:!0});function f(L,G){return this instanceof f?(d.apply(this,arguments),this):f.apply(Object.create(f.prototype),arguments)}function $(){var L=this;V(L.path,L.flags,L.mode,function(G,j){G?(L.autoClose&&L.destroy(),L.emit("error",G)):(L.fd=j,L.emit("open",j),L.read())})}function _(L,G){return this instanceof _?(h.apply(this,arguments),this):_.apply(Object.create(_.prototype),arguments)}function O(){var L=this;V(L.path,L.flags,L.mode,function(G,j){G?(L.destroy(),L.emit("error",G)):(L.fd=j,L.emit("open",j))})}function q(L,G){return new e.ReadStream(L,G)}function R(L,G){return new e.WriteStream(L,G)}var C=e.open;e.open=V;function V(L,G,j,b){return typeof j=="function"&&(b=j,j=null),K(L,G,j,b);function K(B,X,Z,W,F){return C(B,X,Z,function(z,T){z&&(z.code==="EMFILE"||z.code==="ENFILE")?Ar([K,[B,X,Z,W],z,F||Date.now(),Date.now()]):typeof W=="function"&&W.apply(this,arguments)})}}return e}function Ar(e){Sr("ENQUEUE",e[0].name,e[1]),Te[Ke].push(e),Cs()}var Gn;function ia(){for(var e=Date.now(),t=0;t<Te[Ke].length;++t)Te[Ke][t].length>2&&(Te[Ke][t][3]=e,Te[Ke][t][4]=e);Cs()}function Cs(){if(clearTimeout(Gn),Gn=void 0,Te[Ke].length!==0){var e=Te[Ke].shift(),t=e[0],r=e[1],n=e[2],i=e[3],s=e[4];if(i===void 0)Sr("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){Sr("TIMEOUT",t.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var c=Date.now()-s,u=Math.max(s-i,1),p=Math.min(u*1.2,100);c>=p?(Sr("RETRY",t.name,r),t.apply(null,r.concat([i]))):Te[Ke].push(e)}Gn===void 0&&(Gn=setTimeout(Cs,0))}}(function(e){const t=nt.fromCallback,r=it,n=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(i=>typeof r[i]=="function");Object.assign(e,r),n.forEach(i=>{e[i]=t(r[i])}),e.exists=function(i,s){return typeof s=="function"?r.exists(i,s):new Promise(o=>r.exists(i,o))},e.read=function(i,s,o,c,u,p){return typeof p=="function"?r.read(i,s,o,c,u,p):new Promise((a,l)=>{r.read(i,s,o,c,u,(y,d,h)=>{if(y)return l(y);a({bytesRead:d,buffer:h})})})},e.write=function(i,s,...o){return typeof o[o.length-1]=="function"?r.write(i,s,...o):new Promise((c,u)=>{r.write(i,s,...o,(p,a,l)=>{if(p)return u(p);c({bytesWritten:a,buffer:l})})})},typeof r.writev=="function"&&(e.writev=function(i,s,...o){return typeof o[o.length-1]=="function"?r.writev(i,s,...o):new Promise((c,u)=>{r.writev(i,s,...o,(p,a,l)=>{if(p)return u(p);c({bytesWritten:a,buffers:l})})})}),typeof r.realpath.native=="function"?e.realpath.native=t(r.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")})(Or);var Ps={},Dc={};const Qf=Re.default;Dc.checkPath=function(t){if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace(Qf.parse(t).root,""))){const n=new Error(`Path contains invalid characters: ${t}`);throw n.code="EINVAL",n}};const Rc=Or,{checkPath:Cc}=Dc,Pc=e=>{const t={mode:511};return typeof e=="number"?e:{...t,...e}.mode};Ps.makeDir=async(e,t)=>(Cc(e),Rc.mkdir(e,{mode:Pc(t),recursive:!0}));Ps.makeDirSync=(e,t)=>(Cc(e),Rc.mkdirSync(e,{mode:Pc(t),recursive:!0}));const el=nt.fromPromise,{makeDir:tl,makeDirSync:Zi}=Ps,Ji=el(tl);var Mt={mkdirs:Ji,mkdirsSync:Zi,mkdirp:Ji,mkdirpSync:Zi,ensureDir:Ji,ensureDirSync:Zi};const rl=nt.fromPromise,Ac=Or;function nl(e){return Ac.access(e).then(()=>!0).catch(()=>!1)}var Tr={pathExists:rl(nl),pathExistsSync:Ac.existsSync};const zr=it;function il(e,t,r,n){zr.open(e,"r+",(i,s)=>{if(i)return n(i);zr.futimes(s,t,r,o=>{zr.close(s,c=>{n&&n(o||c)})})})}function sl(e,t,r){const n=zr.openSync(e,"r+");return zr.futimesSync(n,t,r),zr.closeSync(n)}var bc={utimesMillis:il,utimesMillisSync:sl};const Kr=Or,ze=Re.default,ol=Oi.default;function al(e,t,r){const n=r.dereference?i=>Kr.stat(i,{bigint:!0}):i=>Kr.lstat(i,{bigint:!0});return Promise.all([n(e),n(t).catch(i=>{if(i.code==="ENOENT")return null;throw i})]).then(([i,s])=>({srcStat:i,destStat:s}))}function cl(e,t,r){let n;const i=r.dereference?o=>Kr.statSync(o,{bigint:!0}):o=>Kr.lstatSync(o,{bigint:!0}),s=i(e);try{n=i(t)}catch(o){if(o.code==="ENOENT")return{srcStat:s,destStat:null};throw o}return{srcStat:s,destStat:n}}function ul(e,t,r,n,i){ol.callbackify(al)(e,t,n,(s,o)=>{if(s)return i(s);const{srcStat:c,destStat:u}=o;if(u){if(jn(c,u)){const p=ze.basename(e),a=ze.basename(t);return r==="move"&&p!==a&&p.toLowerCase()===a.toLowerCase()?i(null,{srcStat:c,destStat:u,isChangingCase:!0}):i(new Error("Source and destination must not be the same."))}if(c.isDirectory()&&!u.isDirectory())return i(new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`));if(!c.isDirectory()&&u.isDirectory())return i(new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`))}return c.isDirectory()&&As(e,t)?i(new Error(Ti(e,t,r))):i(null,{srcStat:c,destStat:u})})}function fl(e,t,r,n){const{srcStat:i,destStat:s}=cl(e,t,n);if(s){if(jn(i,s)){const o=ze.basename(e),c=ze.basename(t);if(r==="move"&&o!==c&&o.toLowerCase()===c.toLowerCase())return{srcStat:i,destStat:s,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(i.isDirectory()&&!s.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!i.isDirectory()&&s.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(i.isDirectory()&&As(e,t))throw new Error(Ti(e,t,r));return{srcStat:i,destStat:s}}function Lc(e,t,r,n,i){const s=ze.resolve(ze.dirname(e)),o=ze.resolve(ze.dirname(r));if(o===s||o===ze.parse(o).root)return i();Kr.stat(o,{bigint:!0},(c,u)=>c?c.code==="ENOENT"?i():i(c):jn(t,u)?i(new Error(Ti(e,r,n))):Lc(e,t,o,n,i))}function Fc(e,t,r,n){const i=ze.resolve(ze.dirname(e)),s=ze.resolve(ze.dirname(r));if(s===i||s===ze.parse(s).root)return;let o;try{o=Kr.statSync(s,{bigint:!0})}catch(c){if(c.code==="ENOENT")return;throw c}if(jn(t,o))throw new Error(Ti(e,r,n));return Fc(e,t,s,n)}function jn(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function As(e,t){const r=ze.resolve(e).split(ze.sep).filter(i=>i),n=ze.resolve(t).split(ze.sep).filter(i=>i);return r.reduce((i,s,o)=>i&&n[o]===s,!0)}function Ti(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}var Qr={checkPaths:ul,checkPathsSync:fl,checkParentPaths:Lc,checkParentPathsSync:Fc,isSrcSubdir:As,areIdentical:jn};const ft=it,wn=Re.default,ll=Mt.mkdirs,dl=Tr.pathExists,hl=bc.utimesMillis,Nn=Qr;function ml(e,t,r,n){typeof r=="function"&&!n?(n=r,r={}):typeof r=="function"&&(r={filter:r}),n=n||function(){},r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
3
3
 
4
- see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001"),Nn.checkPaths(e,t,"copy",r,(i,s)=>{if(i)return n(i);const{srcStat:o,destStat:c}=s;Nn.checkParentPaths(e,o,t,"copy",u=>u?n(u):r.filter?Fc(sa,c,e,t,r,n):sa(c,e,t,r,n))})}function sa(e,t,r,n,i){const s=wn.dirname(r);dl(s,(o,c)=>{if(o)return i(o);if(c)return pi(e,t,r,n,i);ll(s,u=>u?i(u):pi(e,t,r,n,i))})}function Fc(e,t,r,n,i,s){Promise.resolve(i.filter(r,n)).then(o=>o?e(t,r,n,i,s):s(),o=>s(o))}function pl(e,t,r,n,i){return n.filter?Fc(pi,e,t,r,n,i):pi(e,t,r,n,i)}function pi(e,t,r,n,i){(n.dereference?ft.stat:ft.lstat)(t,(o,c)=>o?i(o):c.isDirectory()?Sl(c,e,t,r,n,i):c.isFile()||c.isCharacterDevice()||c.isBlockDevice()?yl(c,e,t,r,n,i):c.isSymbolicLink()?Il(e,t,r,n,i):c.isSocket()?i(new Error(`Cannot copy a socket file: ${t}`)):c.isFIFO()?i(new Error(`Cannot copy a FIFO pipe: ${t}`)):i(new Error(`Unknown file: ${t}`)))}function yl(e,t,r,n,i,s){return t?El(e,r,n,i,s):jc(e,r,n,i,s)}function El(e,t,r,n,i){if(n.overwrite)ft.unlink(r,s=>s?i(s):jc(e,t,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function jc(e,t,r,n,i){ft.copyFile(t,r,s=>s?i(s):n.preserveTimestamps?vl(e.mode,t,r,i):Di(r,e.mode,i))}function vl(e,t,r,n){return gl(e)?$l(r,e,i=>i?n(i):oa(e,t,r,n)):oa(e,t,r,n)}function gl(e){return(e&128)===0}function $l(e,t,r){return Di(e,t|128,r)}function oa(e,t,r,n){_l(t,r,i=>i?n(i):Di(r,e,n))}function Di(e,t,r){return ft.chmod(e,t,r)}function _l(e,t,r){ft.stat(e,(n,i)=>n?r(n):hl(t,i.atime,i.mtime,r))}function Sl(e,t,r,n,i,s){return t?Mc(r,n,i,s):wl(e.mode,r,n,i,s)}function wl(e,t,r,n,i){ft.mkdir(r,s=>{if(s)return i(s);Mc(t,r,n,o=>o?i(o):Di(r,e,i))})}function Mc(e,t,r,n){ft.readdir(e,(i,s)=>i?n(i):kc(s,e,t,r,n))}function kc(e,t,r,n,i){const s=e.pop();return s?Nl(e,s,t,r,n,i):i()}function Nl(e,t,r,n,i,s){const o=wn.join(r,t),c=wn.join(n,t);Nn.checkPaths(o,c,"copy",i,(u,p)=>{if(u)return s(u);const{destStat:a}=p;pl(a,o,c,i,l=>l?s(l):kc(e,r,n,i,s))})}function Il(e,t,r,n,i){ft.readlink(t,(s,o)=>{if(s)return i(s);if(n.dereference&&(o=wn.resolve(process.cwd(),o)),e)ft.readlink(r,(c,u)=>c?c.code==="EINVAL"||c.code==="UNKNOWN"?ft.symlink(o,r,i):i(c):(n.dereference&&(u=wn.resolve(process.cwd(),u)),Nn.isSrcSubdir(o,u)?i(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${u}'.`)):e.isDirectory()&&Nn.isSrcSubdir(u,o)?i(new Error(`Cannot overwrite '${u}' with '${o}'.`)):Ol(o,r,i)));else return ft.symlink(o,r,i)})}function Ol(e,t,r){ft.unlink(t,n=>n?r(n):ft.symlink(e,t,r))}var Tl=ml;const Ye=it,In=Re.default,Dl=Mt.mkdirsSync,Rl=Ac.utimesMillisSync,On=Qr;function Cl(e,t,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
4
+ see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001"),Nn.checkPaths(e,t,"copy",r,(i,s)=>{if(i)return n(i);const{srcStat:o,destStat:c}=s;Nn.checkParentPaths(e,o,t,"copy",u=>u?n(u):r.filter?jc(sa,c,e,t,r,n):sa(c,e,t,r,n))})}function sa(e,t,r,n,i){const s=wn.dirname(r);dl(s,(o,c)=>{if(o)return i(o);if(c)return pi(e,t,r,n,i);ll(s,u=>u?i(u):pi(e,t,r,n,i))})}function jc(e,t,r,n,i,s){Promise.resolve(i.filter(r,n)).then(o=>o?e(t,r,n,i,s):s(),o=>s(o))}function pl(e,t,r,n,i){return n.filter?jc(pi,e,t,r,n,i):pi(e,t,r,n,i)}function pi(e,t,r,n,i){(n.dereference?ft.stat:ft.lstat)(t,(o,c)=>o?i(o):c.isDirectory()?Sl(c,e,t,r,n,i):c.isFile()||c.isCharacterDevice()||c.isBlockDevice()?yl(c,e,t,r,n,i):c.isSymbolicLink()?Il(e,t,r,n,i):c.isSocket()?i(new Error(`Cannot copy a socket file: ${t}`)):c.isFIFO()?i(new Error(`Cannot copy a FIFO pipe: ${t}`)):i(new Error(`Unknown file: ${t}`)))}function yl(e,t,r,n,i,s){return t?El(e,r,n,i,s):Mc(e,r,n,i,s)}function El(e,t,r,n,i){if(n.overwrite)ft.unlink(r,s=>s?i(s):Mc(e,t,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function Mc(e,t,r,n,i){ft.copyFile(t,r,s=>s?i(s):n.preserveTimestamps?vl(e.mode,t,r,i):Di(r,e.mode,i))}function vl(e,t,r,n){return gl(e)?$l(r,e,i=>i?n(i):oa(e,t,r,n)):oa(e,t,r,n)}function gl(e){return(e&128)===0}function $l(e,t,r){return Di(e,t|128,r)}function oa(e,t,r,n){_l(t,r,i=>i?n(i):Di(r,e,n))}function Di(e,t,r){return ft.chmod(e,t,r)}function _l(e,t,r){ft.stat(e,(n,i)=>n?r(n):hl(t,i.atime,i.mtime,r))}function Sl(e,t,r,n,i,s){return t?kc(r,n,i,s):wl(e.mode,r,n,i,s)}function wl(e,t,r,n,i){ft.mkdir(r,s=>{if(s)return i(s);kc(t,r,n,o=>o?i(o):Di(r,e,i))})}function kc(e,t,r,n){ft.readdir(e,(i,s)=>i?n(i):Uc(s,e,t,r,n))}function Uc(e,t,r,n,i){const s=e.pop();return s?Nl(e,s,t,r,n,i):i()}function Nl(e,t,r,n,i,s){const o=wn.join(r,t),c=wn.join(n,t);Nn.checkPaths(o,c,"copy",i,(u,p)=>{if(u)return s(u);const{destStat:a}=p;pl(a,o,c,i,l=>l?s(l):Uc(e,r,n,i,s))})}function Il(e,t,r,n,i){ft.readlink(t,(s,o)=>{if(s)return i(s);if(n.dereference&&(o=wn.resolve(process.cwd(),o)),e)ft.readlink(r,(c,u)=>c?c.code==="EINVAL"||c.code==="UNKNOWN"?ft.symlink(o,r,i):i(c):(n.dereference&&(u=wn.resolve(process.cwd(),u)),Nn.isSrcSubdir(o,u)?i(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${u}'.`)):e.isDirectory()&&Nn.isSrcSubdir(u,o)?i(new Error(`Cannot overwrite '${u}' with '${o}'.`)):Ol(o,r,i)));else return ft.symlink(o,r,i)})}function Ol(e,t,r){ft.unlink(t,n=>n?r(n):ft.symlink(e,t,r))}var Tl=ml;const Ye=it,In=Re.default,Dl=Mt.mkdirsSync,Rl=bc.utimesMillisSync,On=Qr;function Cl(e,t,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
5
5
 
6
- see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");const{srcStat:n,destStat:i}=On.checkPathsSync(e,t,"copy",r);return On.checkParentPathsSync(e,n,t,"copy"),Pl(i,e,t,r)}function Pl(e,t,r,n){if(n.filter&&!n.filter(t,r))return;const i=In.dirname(r);return Ye.existsSync(i)||Dl(i),Uc(e,t,r,n)}function Al(e,t,r,n){if(!(n.filter&&!n.filter(t,r)))return Uc(e,t,r,n)}function Uc(e,t,r,n){const s=(n.dereference?Ye.statSync:Ye.lstatSync)(t);if(s.isDirectory())return Ul(s,e,t,r,n);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return bl(s,e,t,r,n);if(s.isSymbolicLink())return Vl(e,t,r,n);throw s.isSocket()?new Error(`Cannot copy a socket file: ${t}`):s.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${t}`):new Error(`Unknown file: ${t}`)}function bl(e,t,r,n,i){return t?Ll(e,r,n,i):zc(e,r,n,i)}function Ll(e,t,r,n){if(n.overwrite)return Ye.unlinkSync(r),zc(e,t,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function zc(e,t,r,n){return Ye.copyFileSync(t,r),n.preserveTimestamps&&Fl(e.mode,t,r),bs(r,e.mode)}function Fl(e,t,r){return jl(e)&&Ml(r,e),kl(t,r)}function jl(e){return(e&128)===0}function Ml(e,t){return bs(e,t|128)}function bs(e,t){return Ye.chmodSync(e,t)}function kl(e,t){const r=Ye.statSync(e);return Rl(t,r.atime,r.mtime)}function Ul(e,t,r,n,i){return t?xc(r,n,i):zl(e.mode,r,n,i)}function zl(e,t,r,n){return Ye.mkdirSync(r),xc(t,r,n),bs(r,e)}function xc(e,t,r){Ye.readdirSync(e).forEach(n=>xl(n,e,t,r))}function xl(e,t,r,n){const i=In.join(t,e),s=In.join(r,e),{destStat:o}=On.checkPathsSync(i,s,"copy",n);return Al(o,i,s,n)}function Vl(e,t,r,n){let i=Ye.readlinkSync(t);if(n.dereference&&(i=In.resolve(process.cwd(),i)),e){let s;try{s=Ye.readlinkSync(r)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return Ye.symlinkSync(i,r);throw o}if(n.dereference&&(s=In.resolve(process.cwd(),s)),On.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(Ye.statSync(r).isDirectory()&&On.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return ql(i,r)}else return Ye.symlinkSync(i,r)}function ql(e,t){return Ye.unlinkSync(t),Ye.symlinkSync(e,t)}var Gl=Cl;const Bl=nt.fromCallback;var Ls={copy:Bl(Tl),copySync:Gl};const aa=it,Vc=Re.default,ge=Ds.default,Tn=process.platform==="win32";function qc(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{e[r]=e[r]||aa[r],r=r+"Sync",e[r]=e[r]||aa[r]}),e.maxBusyTries=e.maxBusyTries||3}function Fs(e,t,r){let n=0;typeof t=="function"&&(r=t,t={}),ge(e,"rimraf: missing path"),ge.strictEqual(typeof e,"string","rimraf: path should be a string"),ge.strictEqual(typeof r,"function","rimraf: callback function required"),ge(t,"rimraf: invalid options argument provided"),ge.strictEqual(typeof t,"object","rimraf: options should be object"),qc(t),ca(e,t,function i(s){if(s){if((s.code==="EBUSY"||s.code==="ENOTEMPTY"||s.code==="EPERM")&&n<t.maxBusyTries){n++;const o=n*100;return setTimeout(()=>ca(e,t,i),o)}s.code==="ENOENT"&&(s=null)}r(s)})}function ca(e,t,r){ge(e),ge(t),ge(typeof r=="function"),t.lstat(e,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&Tn)return ua(e,t,n,r);if(i&&i.isDirectory())return ii(e,t,n,r);t.unlink(e,s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return Tn?ua(e,t,s,r):ii(e,t,s,r);if(s.code==="EISDIR")return ii(e,t,s,r)}return r(s)})})}function ua(e,t,r,n){ge(e),ge(t),ge(typeof n=="function"),t.chmod(e,438,i=>{i?n(i.code==="ENOENT"?null:r):t.stat(e,(s,o)=>{s?n(s.code==="ENOENT"?null:r):o.isDirectory()?ii(e,t,r,n):t.unlink(e,n)})})}function fa(e,t,r){let n;ge(e),ge(t);try{t.chmodSync(e,438)}catch(i){if(i.code==="ENOENT")return;throw r}try{n=t.statSync(e)}catch(i){if(i.code==="ENOENT")return;throw r}n.isDirectory()?si(e,t,r):t.unlinkSync(e)}function ii(e,t,r,n){ge(e),ge(t),ge(typeof n=="function"),t.rmdir(e,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?Hl(e,t,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function Hl(e,t,r){ge(e),ge(t),ge(typeof r=="function"),t.readdir(e,(n,i)=>{if(n)return r(n);let s=i.length,o;if(s===0)return t.rmdir(e,r);i.forEach(c=>{Fs(Vc.join(e,c),t,u=>{if(!o){if(u)return r(o=u);--s===0&&t.rmdir(e,r)}})})})}function Gc(e,t){let r;t=t||{},qc(t),ge(e,"rimraf: missing path"),ge.strictEqual(typeof e,"string","rimraf: path should be a string"),ge(t,"rimraf: missing options"),ge.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&Tn&&fa(e,t,n)}try{r&&r.isDirectory()?si(e,t,null):t.unlinkSync(e)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return Tn?fa(e,t,n):si(e,t,n);if(n.code!=="EISDIR")throw n;si(e,t,n)}}function si(e,t,r){ge(e),ge(t);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")Kl(e,t);else if(n.code!=="ENOENT")throw n}}function Kl(e,t){if(ge(e),ge(t),t.readdirSync(e).forEach(r=>Gc(Vc.join(e,r),t)),Tn){const r=Date.now();do try{return t.rmdirSync(e,t)}catch{}while(Date.now()-r<500)}else return t.rmdirSync(e,t)}var Wl=Fs;Fs.sync=Gc;const yi=it,Xl=nt.fromCallback,Bc=Wl;function Zl(e,t){if(yi.rm)return yi.rm(e,{recursive:!0,force:!0},t);Bc(e,t)}function Jl(e){if(yi.rmSync)return yi.rmSync(e,{recursive:!0,force:!0});Bc.sync(e)}var Ri={remove:Xl(Zl),removeSync:Jl};const Yl=nt.fromPromise,Hc=Or,Kc=Re.default,Wc=Mt,Xc=Ri,la=Yl(async function(t){let r;try{r=await Hc.readdir(t)}catch{return Wc.mkdirs(t)}return Promise.all(r.map(n=>Xc.remove(Kc.join(t,n))))});function da(e){let t;try{t=Hc.readdirSync(e)}catch{return Wc.mkdirsSync(e)}t.forEach(r=>{r=Kc.join(e,r),Xc.removeSync(r)})}var Ql={emptyDirSync:da,emptydirSync:da,emptyDir:la,emptydir:la};const ed=nt.fromCallback,Zc=Re.default,rr=it,Jc=Mt;function td(e,t){function r(){rr.writeFile(e,"",n=>{if(n)return t(n);t()})}rr.stat(e,(n,i)=>{if(!n&&i.isFile())return t();const s=Zc.dirname(e);rr.stat(s,(o,c)=>{if(o)return o.code==="ENOENT"?Jc.mkdirs(s,u=>{if(u)return t(u);r()}):t(o);c.isDirectory()?r():rr.readdir(s,u=>{if(u)return t(u)})})})}function rd(e){let t;try{t=rr.statSync(e)}catch{}if(t&&t.isFile())return;const r=Zc.dirname(e);try{rr.statSync(r).isDirectory()||rr.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")Jc.mkdirsSync(r);else throw n}rr.writeFileSync(e,"")}var nd={createFile:ed(td),createFileSync:rd};const id=nt.fromCallback,Yc=Re.default,Jt=it,Qc=Mt,sd=Tr.pathExists,{areIdentical:eu}=Qr;function od(e,t,r){function n(i,s){Jt.link(i,s,o=>{if(o)return r(o);r(null)})}Jt.lstat(t,(i,s)=>{Jt.lstat(e,(o,c)=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),r(o);if(s&&eu(c,s))return r(null);const u=Yc.dirname(t);sd(u,(p,a)=>{if(p)return r(p);if(a)return n(e,t);Qc.mkdirs(u,l=>{if(l)return r(l);n(e,t)})})})})}function ad(e,t){let r;try{r=Jt.lstatSync(t)}catch{}try{const s=Jt.lstatSync(e);if(r&&eu(s,r))return}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}const n=Yc.dirname(t);return Jt.existsSync(n)||Qc.mkdirsSync(n),Jt.linkSync(e,t)}var cd={createLink:id(od),createLinkSync:ad};const nr=Re.default,yn=it,ud=Tr.pathExists;function fd(e,t,r){if(nr.isAbsolute(e))return yn.lstat(e,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:e,toDst:e}));{const n=nr.dirname(t),i=nr.join(n,e);return ud(i,(s,o)=>s?r(s):o?r(null,{toCwd:i,toDst:e}):yn.lstat(e,c=>c?(c.message=c.message.replace("lstat","ensureSymlink"),r(c)):r(null,{toCwd:e,toDst:nr.relative(n,e)})))}}function ld(e,t){let r;if(nr.isAbsolute(e)){if(r=yn.existsSync(e),!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{const n=nr.dirname(t),i=nr.join(n,e);if(r=yn.existsSync(i),r)return{toCwd:i,toDst:e};if(r=yn.existsSync(e),!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:nr.relative(n,e)}}}var dd={symlinkPaths:fd,symlinkPathsSync:ld};const tu=it;function hd(e,t,r){if(r=typeof t=="function"?t:r,t=typeof t=="function"?!1:t,t)return r(null,t);tu.lstat(e,(n,i)=>{if(n)return r(null,"file");t=i&&i.isDirectory()?"dir":"file",r(null,t)})}function md(e,t){let r;if(t)return t;try{r=tu.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}var pd={symlinkType:hd,symlinkTypeSync:md};const yd=nt.fromCallback,ru=Re.default,Ot=Or,nu=Mt,Ed=nu.mkdirs,vd=nu.mkdirsSync,iu=dd,gd=iu.symlinkPaths,$d=iu.symlinkPathsSync,su=pd,_d=su.symlinkType,Sd=su.symlinkTypeSync,wd=Tr.pathExists,{areIdentical:ou}=Qr;function Nd(e,t,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,Ot.lstat(t,(i,s)=>{!i&&s.isSymbolicLink()?Promise.all([Ot.stat(e),Ot.stat(t)]).then(([o,c])=>{if(ou(o,c))return n(null);ha(e,t,r,n)}):ha(e,t,r,n)})}function ha(e,t,r,n){gd(e,t,(i,s)=>{if(i)return n(i);e=s.toDst,_d(s.toCwd,r,(o,c)=>{if(o)return n(o);const u=ru.dirname(t);wd(u,(p,a)=>{if(p)return n(p);if(a)return Ot.symlink(e,t,c,n);Ed(u,l=>{if(l)return n(l);Ot.symlink(e,t,c,n)})})})})}function Id(e,t,r){let n;try{n=Ot.lstatSync(t)}catch{}if(n&&n.isSymbolicLink()){const c=Ot.statSync(e),u=Ot.statSync(t);if(ou(c,u))return}const i=$d(e,t);e=i.toDst,r=Sd(i.toCwd,r);const s=ru.dirname(t);return Ot.existsSync(s)||vd(s),Ot.symlinkSync(e,t,r)}var Od={createSymlink:yd(Nd),createSymlinkSync:Id};const{createFile:ma,createFileSync:pa}=nd,{createLink:ya,createLinkSync:Ea}=cd,{createSymlink:va,createSymlinkSync:ga}=Od;var Td={createFile:ma,createFileSync:pa,ensureFile:ma,ensureFileSync:pa,createLink:ya,createLinkSync:Ea,ensureLink:ya,ensureLinkSync:Ea,createSymlink:va,createSymlinkSync:ga,ensureSymlink:va,ensureSymlinkSync:ga};function Dd(e,{EOL:t=`
7
- `,finalEOL:r=!0,replacer:n=null,spaces:i}={}){const s=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+s}function Rd(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}var js={stringify:Dd,stripBom:Rd};let Wr;try{Wr=it}catch{Wr=Yr.default}const Ci=nt,{stringify:au,stripBom:cu}=js;async function Cd(e,t={}){typeof t=="string"&&(t={encoding:t});const r=t.fs||Wr,n="throws"in t?t.throws:!0;let i=await Ci.fromCallback(r.readFile)(e,t);i=cu(i);let s;try{s=JSON.parse(i,t?t.reviver:null)}catch(o){if(n)throw o.message=`${e}: ${o.message}`,o;return null}return s}const Pd=Ci.fromPromise(Cd);function Ad(e,t={}){typeof t=="string"&&(t={encoding:t});const r=t.fs||Wr,n="throws"in t?t.throws:!0;try{let i=r.readFileSync(e,t);return i=cu(i),JSON.parse(i,t.reviver)}catch(i){if(n)throw i.message=`${e}: ${i.message}`,i;return null}}async function bd(e,t,r={}){const n=r.fs||Wr,i=au(t,r);await Ci.fromCallback(n.writeFile)(e,i,r)}const Ld=Ci.fromPromise(bd);function Fd(e,t,r={}){const n=r.fs||Wr,i=au(t,r);return n.writeFileSync(e,i,r)}const jd={readFile:Pd,readFileSync:Ad,writeFile:Ld,writeFileSync:Fd};var Md=jd;const Bn=Md;var kd={readJson:Bn.readFile,readJsonSync:Bn.readFileSync,writeJson:Bn.writeFile,writeJsonSync:Bn.writeFileSync};const Ud=nt.fromCallback,En=it,uu=Re.default,fu=Mt,zd=Tr.pathExists;function xd(e,t,r,n){typeof r=="function"&&(n=r,r="utf8");const i=uu.dirname(e);zd(i,(s,o)=>{if(s)return n(s);if(o)return En.writeFile(e,t,r,n);fu.mkdirs(i,c=>{if(c)return n(c);En.writeFile(e,t,r,n)})})}function Vd(e,...t){const r=uu.dirname(e);if(En.existsSync(r))return En.writeFileSync(e,...t);fu.mkdirsSync(r),En.writeFileSync(e,...t)}var Ms={outputFile:Ud(xd),outputFileSync:Vd};const{stringify:qd}=js,{outputFile:Gd}=Ms;async function Bd(e,t,r={}){const n=qd(t,r);await Gd(e,n,r)}var Hd=Bd;const{stringify:Kd}=js,{outputFileSync:Wd}=Ms;function Xd(e,t,r){const n=Kd(t,r);Wd(e,n,r)}var Zd=Xd;const Jd=nt.fromPromise,rt=kd;rt.outputJson=Jd(Hd);rt.outputJsonSync=Zd;rt.outputJSON=rt.outputJson;rt.outputJSONSync=rt.outputJsonSync;rt.writeJSON=rt.writeJson;rt.writeJSONSync=rt.writeJsonSync;rt.readJSON=rt.readJson;rt.readJSONSync=rt.readJsonSync;var Yd=rt;const Qd=it,ms=Re.default,eh=Ls.copy,lu=Ri.remove,th=Mt.mkdirp,rh=Tr.pathExists,$a=Qr;function nh(e,t,r,n){typeof r=="function"&&(n=r,r={}),r=r||{};const i=r.overwrite||r.clobber||!1;$a.checkPaths(e,t,"move",r,(s,o)=>{if(s)return n(s);const{srcStat:c,isChangingCase:u=!1}=o;$a.checkParentPaths(e,c,t,"move",p=>{if(p)return n(p);if(ih(t))return _a(e,t,i,u,n);th(ms.dirname(t),a=>a?n(a):_a(e,t,i,u,n))})})}function ih(e){const t=ms.dirname(e);return ms.parse(t).root===t}function _a(e,t,r,n,i){if(n)return Yi(e,t,r,i);if(r)return lu(t,s=>s?i(s):Yi(e,t,r,i));rh(t,(s,o)=>s?i(s):o?i(new Error("dest already exists.")):Yi(e,t,r,i))}function Yi(e,t,r,n){Qd.rename(e,t,i=>i?i.code!=="EXDEV"?n(i):sh(e,t,r,n):n())}function sh(e,t,r,n){eh(e,t,{overwrite:r,errorOnExist:!0},s=>s?n(s):lu(e,n))}var oh=nh;const du=it,ps=Re.default,ah=Ls.copySync,hu=Ri.removeSync,ch=Mt.mkdirpSync,Sa=Qr;function uh(e,t,r){r=r||{};const n=r.overwrite||r.clobber||!1,{srcStat:i,isChangingCase:s=!1}=Sa.checkPathsSync(e,t,"move",r);return Sa.checkParentPathsSync(e,i,t,"move"),fh(t)||ch(ps.dirname(t)),lh(e,t,n,s)}function fh(e){const t=ps.dirname(e);return ps.parse(t).root===t}function lh(e,t,r,n){if(n)return Qi(e,t,r);if(r)return hu(t),Qi(e,t,r);if(du.existsSync(t))throw new Error("dest already exists.");return Qi(e,t,r)}function Qi(e,t,r){try{du.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return dh(e,t,r)}}function dh(e,t,r){return ah(e,t,{overwrite:r,errorOnExist:!0}),hu(e)}var hh=uh;const mh=nt.fromCallback;var ph={move:mh(oh),moveSync:hh},vt={...Or,...Ls,...Ql,...Td,...Yd,...Mt,...ph,...Ms,...Tr,...Ri},ys={exports:{}},yh=e=>{const t=typeof e;return e!==null&&(t==="object"||t==="function")};const dr=yh,Eh=new Set(["__proto__","prototype","constructor"]),vh=e=>!e.some(t=>Eh.has(t));function Hn(e){const t=e.split("."),r=[];for(let n=0;n<t.length;n++){let i=t[n];for(;i[i.length-1]==="\\"&&t[n+1]!==void 0;)i=i.slice(0,-1)+".",i+=t[++n];r.push(i)}return vh(r)?r:[]}var gh={get(e,t,r){if(!dr(e)||typeof t!="string")return r===void 0?e:r;const n=Hn(t);if(n.length!==0){for(let i=0;i<n.length;i++)if(e=e[n[i]],e==null){if(i!==n.length-1)return r;break}return e===void 0?r:e}},set(e,t,r){if(!dr(e)||typeof t!="string")return e;const n=e,i=Hn(t);for(let s=0;s<i.length;s++){const o=i[s];dr(e[o])||(e[o]={}),s===i.length-1&&(e[o]=r),e=e[o]}return n},delete(e,t){if(!dr(e)||typeof t!="string")return!1;const r=Hn(t);for(let n=0;n<r.length;n++){const i=r[n];if(n===r.length-1)return delete e[i],!0;if(e=e[i],!dr(e))return!1}},has(e,t){if(!dr(e)||typeof t!="string")return!1;const r=Hn(t);if(r.length===0)return!1;for(let n=0;n<r.length;n++)if(dr(e)){if(!(r[n]in e))return!1;e=e[r[n]]}else return!1;return!0}},ks={exports:{}},Us={exports:{}},zs={exports:{}},xs={exports:{}};const mu=Yr.default;xs.exports=e=>new Promise(t=>{mu.access(e,r=>{t(!r)})});xs.exports.sync=e=>{try{return mu.accessSync(e),!0}catch{return!1}};var Vs={exports:{}},qs={exports:{}};const pu=(e,...t)=>new Promise(r=>{r(e(...t))});qs.exports=pu;qs.exports.default=pu;const $h=qs.exports,yu=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));const t=[];let r=0;const n=()=>{r--,t.length>0&&t.shift()()},i=(c,u,...p)=>{r++;const a=$h(c,...p);u(a),a.then(n,n)},s=(c,u,...p)=>{r<e?i(c,u,...p):t.push(i.bind(null,c,u,...p))},o=(c,...u)=>new Promise(p=>s(c,p,...u));return Object.defineProperties(o,{activeCount:{get:()=>r},pendingCount:{get:()=>t.length},clearQueue:{value:()=>{t.length=0}}}),o};Vs.exports=yu;Vs.exports.default=yu;const wa=Vs.exports;class Eu extends Error{constructor(t){super(),this.value=t}}const _h=(e,t)=>Promise.resolve(e).then(t),Sh=e=>Promise.all(e).then(t=>t[1]===!0&&Promise.reject(new Eu(t[0])));var wh=(e,t,r)=>{r=Object.assign({concurrency:1/0,preserveOrder:!0},r);const n=wa(r.concurrency),i=[...e].map(o=>[o,n(_h,o,t)]),s=wa(r.preserveOrder?1:1/0);return Promise.all(i.map(o=>s(Sh,o))).then(()=>{}).catch(o=>o instanceof Eu?o.value:Promise.reject(o))};const vu=Re.default,gu=xs.exports,Nh=wh;zs.exports=(e,t)=>(t=Object.assign({cwd:process.cwd()},t),Nh(e,r=>gu(vu.resolve(t.cwd,r)),t));zs.exports.sync=(e,t)=>{t=Object.assign({cwd:process.cwd()},t);for(const r of e)if(gu.sync(vu.resolve(t.cwd,r)))return r};const ir=Re.default,$u=zs.exports;Us.exports=(e,t={})=>{const r=ir.resolve(t.cwd||""),{root:n}=ir.parse(r),i=[].concat(e);return new Promise(s=>{(function o(c){$u(i,{cwd:c}).then(u=>{u?s(ir.join(c,u)):c===n?s(null):o(ir.dirname(c))})})(r)})};Us.exports.sync=(e,t={})=>{let r=ir.resolve(t.cwd||"");const{root:n}=ir.parse(r),i=[].concat(e);for(;;){const s=$u.sync(i,{cwd:r});if(s)return ir.join(r,s);if(r===n)return null;r=ir.dirname(r)}};const _u=Us.exports;ks.exports=async({cwd:e}={})=>_u("package.json",{cwd:e});ks.exports.sync=({cwd:e}={})=>_u.sync("package.json",{cwd:e});var Gs={exports:{}};const De=Re.default,Su=kf.default,Yt=Su.homedir(),Bs=Su.tmpdir(),{env:kr}=process,Ih=e=>{const t=De.join(Yt,"Library");return{data:De.join(t,"Application Support",e),config:De.join(t,"Preferences",e),cache:De.join(t,"Caches",e),log:De.join(t,"Logs",e),temp:De.join(Bs,e)}},Oh=e=>{const t=kr.APPDATA||De.join(Yt,"AppData","Roaming"),r=kr.LOCALAPPDATA||De.join(Yt,"AppData","Local");return{data:De.join(r,e,"Data"),config:De.join(t,e,"Config"),cache:De.join(r,e,"Cache"),log:De.join(r,e,"Log"),temp:De.join(Bs,e)}},Th=e=>{const t=De.basename(Yt);return{data:De.join(kr.XDG_DATA_HOME||De.join(Yt,".local","share"),e),config:De.join(kr.XDG_CONFIG_HOME||De.join(Yt,".config"),e),cache:De.join(kr.XDG_CACHE_HOME||De.join(Yt,".cache"),e),log:De.join(kr.XDG_STATE_HOME||De.join(Yt,".local","state"),e),temp:De.join(Bs,t,e)}},wu=(e,t)=>{if(typeof e!="string")throw new TypeError(`Expected string, got ${typeof e}`);return t=Object.assign({suffix:"nodejs"},t),t.suffix&&(e+=`-${t.suffix}`),process.platform==="darwin"?Ih(e):process.platform==="win32"?Oh(e):Th(e)};Gs.exports=wu;Gs.exports.default=wu;var jt={},ye={};Object.defineProperty(ye,"__esModule",{value:!0});ye.NOOP=ye.LIMIT_FILES_DESCRIPTORS=ye.LIMIT_BASENAME_LENGTH=ye.IS_USER_ROOT=ye.IS_POSIX=ye.DEFAULT_TIMEOUT_SYNC=ye.DEFAULT_TIMEOUT_ASYNC=ye.DEFAULT_WRITE_OPTIONS=ye.DEFAULT_READ_OPTIONS=ye.DEFAULT_FOLDER_MODE=ye.DEFAULT_FILE_MODE=ye.DEFAULT_ENCODING=void 0;const Dh="utf8";ye.DEFAULT_ENCODING=Dh;const Rh=438;ye.DEFAULT_FILE_MODE=Rh;const Ch=511;ye.DEFAULT_FOLDER_MODE=Ch;const Ph={};ye.DEFAULT_READ_OPTIONS=Ph;const Ah={};ye.DEFAULT_WRITE_OPTIONS=Ah;const bh=5e3;ye.DEFAULT_TIMEOUT_ASYNC=bh;const Lh=100;ye.DEFAULT_TIMEOUT_SYNC=Lh;const Fh=!!process.getuid;ye.IS_POSIX=Fh;const jh=process.getuid?!process.getuid():!1;ye.IS_USER_ROOT=jh;const Mh=128;ye.LIMIT_BASENAME_LENGTH=Mh;const kh=1e4;ye.LIMIT_FILES_DESCRIPTORS=kh;const Uh=()=>{};ye.NOOP=Uh;var Pi={},Xr={};Object.defineProperty(Xr,"__esModule",{value:!0});Xr.attemptifySync=Xr.attemptifyAsync=void 0;const Nu=ye,zh=(e,t=Nu.NOOP)=>function(){return e.apply(void 0,arguments).catch(t)};Xr.attemptifyAsync=zh;const xh=(e,t=Nu.NOOP)=>function(){try{return e.apply(void 0,arguments)}catch(r){return t(r)}};Xr.attemptifySync=xh;var Hs={};Object.defineProperty(Hs,"__esModule",{value:!0});const Vh=ye,Iu={isChangeErrorOk:e=>{const{code:t}=e;return t==="ENOSYS"||!Vh.IS_USER_ROOT&&(t==="EINVAL"||t==="EPERM")},isRetriableError:e=>{const{code:t}=e;return t==="EMFILE"||t==="ENFILE"||t==="EAGAIN"||t==="EBUSY"||t==="EACCESS"||t==="EACCS"||t==="EPERM"},onChangeError:e=>{if(!Iu.isChangeErrorOk(e))throw e}};Hs.default=Iu;var Zr={},Ks={};Object.defineProperty(Ks,"__esModule",{value:!0});const qh=ye,_e={interval:25,intervalId:void 0,limit:qh.LIMIT_FILES_DESCRIPTORS,queueActive:new Set,queueWaiting:new Set,init:()=>{_e.intervalId||(_e.intervalId=setInterval(_e.tick,_e.interval))},reset:()=>{!_e.intervalId||(clearInterval(_e.intervalId),delete _e.intervalId)},add:e=>{_e.queueWaiting.add(e),_e.queueActive.size<_e.limit/2?_e.tick():_e.init()},remove:e=>{_e.queueWaiting.delete(e),_e.queueActive.delete(e)},schedule:()=>new Promise(e=>{const t=()=>_e.remove(r),r=()=>e(t);_e.add(r)}),tick:()=>{if(!(_e.queueActive.size>=_e.limit)){if(!_e.queueWaiting.size)return _e.reset();for(const e of _e.queueWaiting){if(_e.queueActive.size>=_e.limit)break;_e.queueWaiting.delete(e),_e.queueActive.add(e),e()}}}};Ks.default=_e;Object.defineProperty(Zr,"__esModule",{value:!0});Zr.retryifySync=Zr.retryifyAsync=void 0;const Gh=Ks,Bh=(e,t)=>function(r){return function n(){return Gh.default.schedule().then(i=>e.apply(void 0,arguments).then(s=>(i(),s),s=>{if(i(),Date.now()>=r)throw s;if(t(s)){const o=Math.round(100+400*Math.random());return new Promise(u=>setTimeout(u,o)).then(()=>n.apply(void 0,arguments))}throw s}))}};Zr.retryifyAsync=Bh;const Hh=(e,t)=>function(r){return function n(){try{return e.apply(void 0,arguments)}catch(i){if(Date.now()>r)throw i;if(t(i))return n.apply(void 0,arguments);throw i}}};Zr.retryifySync=Hh;Object.defineProperty(Pi,"__esModule",{value:!0});const Ee=Yr.default,Qe=Oi.default,et=Xr,ke=Hs,at=Zr,Kh={chmodAttempt:et.attemptifyAsync(Qe.promisify(Ee.chmod),ke.default.onChangeError),chownAttempt:et.attemptifyAsync(Qe.promisify(Ee.chown),ke.default.onChangeError),closeAttempt:et.attemptifyAsync(Qe.promisify(Ee.close)),fsyncAttempt:et.attemptifyAsync(Qe.promisify(Ee.fsync)),mkdirAttempt:et.attemptifyAsync(Qe.promisify(Ee.mkdir)),realpathAttempt:et.attemptifyAsync(Qe.promisify(Ee.realpath)),statAttempt:et.attemptifyAsync(Qe.promisify(Ee.stat)),unlinkAttempt:et.attemptifyAsync(Qe.promisify(Ee.unlink)),closeRetry:at.retryifyAsync(Qe.promisify(Ee.close),ke.default.isRetriableError),fsyncRetry:at.retryifyAsync(Qe.promisify(Ee.fsync),ke.default.isRetriableError),openRetry:at.retryifyAsync(Qe.promisify(Ee.open),ke.default.isRetriableError),readFileRetry:at.retryifyAsync(Qe.promisify(Ee.readFile),ke.default.isRetriableError),renameRetry:at.retryifyAsync(Qe.promisify(Ee.rename),ke.default.isRetriableError),statRetry:at.retryifyAsync(Qe.promisify(Ee.stat),ke.default.isRetriableError),writeRetry:at.retryifyAsync(Qe.promisify(Ee.write),ke.default.isRetriableError),chmodSyncAttempt:et.attemptifySync(Ee.chmodSync,ke.default.onChangeError),chownSyncAttempt:et.attemptifySync(Ee.chownSync,ke.default.onChangeError),closeSyncAttempt:et.attemptifySync(Ee.closeSync),mkdirSyncAttempt:et.attemptifySync(Ee.mkdirSync),realpathSyncAttempt:et.attemptifySync(Ee.realpathSync),statSyncAttempt:et.attemptifySync(Ee.statSync),unlinkSyncAttempt:et.attemptifySync(Ee.unlinkSync),closeSyncRetry:at.retryifySync(Ee.closeSync,ke.default.isRetriableError),fsyncSyncRetry:at.retryifySync(Ee.fsyncSync,ke.default.isRetriableError),openSyncRetry:at.retryifySync(Ee.openSync,ke.default.isRetriableError),readFileSyncRetry:at.retryifySync(Ee.readFileSync,ke.default.isRetriableError),renameSyncRetry:at.retryifySync(Ee.renameSync,ke.default.isRetriableError),statSyncRetry:at.retryifySync(Ee.statSync,ke.default.isRetriableError),writeSyncRetry:at.retryifySync(Ee.writeSync,ke.default.isRetriableError)};Pi.default=Kh;var Ws={};Object.defineProperty(Ws,"__esModule",{value:!0});const Wh={isFunction:e=>typeof e=="function",isString:e=>typeof e=="string",isUndefined:e=>typeof e>"u"};Ws.default=Wh;var Xs={};Object.defineProperty(Xs,"__esModule",{value:!0});const Kn={},Es={next:e=>{const t=Kn[e];if(!t)return;t.shift();const r=t[0];r?r(()=>Es.next(e)):delete Kn[e]},schedule:e=>new Promise(t=>{let r=Kn[e];r||(r=Kn[e]=[]),r.push(t),!(r.length>1)&&t(()=>Es.next(e))})};Xs.default=Es;var Zs={};Object.defineProperty(Zs,"__esModule",{value:!0});const Xh=Re.default,Na=ye,Ia=Pi,ht={store:{},create:e=>{const t=`000000${Math.floor(Math.random()*16777215).toString(16)}`.slice(-6),r=Date.now().toString().slice(-10),n="tmp-",i=`.${n}${r}${t}`;return`${e}${i}`},get:(e,t,r=!0)=>{const n=ht.truncate(t(e));return n in ht.store?ht.get(e,t,r):(ht.store[n]=r,[n,()=>delete ht.store[n]])},purge:e=>{!ht.store[e]||(delete ht.store[e],Ia.default.unlinkAttempt(e))},purgeSync:e=>{!ht.store[e]||(delete ht.store[e],Ia.default.unlinkSyncAttempt(e))},purgeSyncAll:()=>{for(const e in ht.store)ht.purgeSync(e)},truncate:e=>{const t=Xh.basename(e);if(t.length<=Na.LIMIT_BASENAME_LENGTH)return e;const r=/^(\.?)(.*?)((?:\.[^.]+)?(?:\.tmp-\d{10}[a-f0-9]{6})?)$/.exec(t);if(!r)return e;const n=t.length-Na.LIMIT_BASENAME_LENGTH;return`${e.slice(0,-t.length)}${r[1]}${r[2].slice(0,-n)}${r[3]}`}};process.on("exit",ht.purgeSyncAll);Zs.default=ht;Object.defineProperty(jt,"__esModule",{value:!0});jt.writeFileSync=jt.writeFile=jt.readFileSync=jt.readFile=void 0;const Ou=Re.default,Be=ye,pe=Pi,mt=Ws,Zh=Xs,sr=Zs;function Tu(e,t=Be.DEFAULT_READ_OPTIONS){var r;if(mt.default.isString(t))return Tu(e,{encoding:t});const n=Date.now()+((r=t.timeout)!==null&&r!==void 0?r:Be.DEFAULT_TIMEOUT_ASYNC);return pe.default.readFileRetry(n)(e,t)}jt.readFile=Tu;function Du(e,t=Be.DEFAULT_READ_OPTIONS){var r;if(mt.default.isString(t))return Du(e,{encoding:t});const n=Date.now()+((r=t.timeout)!==null&&r!==void 0?r:Be.DEFAULT_TIMEOUT_SYNC);return pe.default.readFileSyncRetry(n)(e,t)}jt.readFileSync=Du;const Ru=(e,t,r,n)=>{if(mt.default.isFunction(r))return Ru(e,t,Be.DEFAULT_WRITE_OPTIONS,r);const i=Cu(e,t,r);return n&&i.then(n,n),i};jt.writeFile=Ru;const Cu=async(e,t,r=Be.DEFAULT_WRITE_OPTIONS)=>{var n;if(mt.default.isString(r))return Cu(e,t,{encoding:r});const i=Date.now()+((n=r.timeout)!==null&&n!==void 0?n:Be.DEFAULT_TIMEOUT_ASYNC);let s=null,o=null,c=null,u=null,p=null;try{r.schedule&&(s=await r.schedule(e)),o=await Zh.default.schedule(e),e=await pe.default.realpathAttempt(e)||e,[u,c]=sr.default.get(e,r.tmpCreate||sr.default.create,r.tmpPurge!==!1);const a=Be.IS_POSIX&&mt.default.isUndefined(r.chown),l=mt.default.isUndefined(r.mode);if(a||l){const d=await pe.default.statAttempt(e);d&&(r={...r},a&&(r.chown={uid:d.uid,gid:d.gid}),l&&(r.mode=d.mode))}const y=Ou.dirname(e);await pe.default.mkdirAttempt(y,{mode:Be.DEFAULT_FOLDER_MODE,recursive:!0}),p=await pe.default.openRetry(i)(u,"w",r.mode||Be.DEFAULT_FILE_MODE),r.tmpCreated&&r.tmpCreated(u),mt.default.isString(t)?await pe.default.writeRetry(i)(p,t,0,r.encoding||Be.DEFAULT_ENCODING):mt.default.isUndefined(t)||await pe.default.writeRetry(i)(p,t,0,t.length,0),r.fsync!==!1&&(r.fsyncWait!==!1?await pe.default.fsyncRetry(i)(p):pe.default.fsyncAttempt(p)),await pe.default.closeRetry(i)(p),p=null,r.chown&&await pe.default.chownAttempt(u,r.chown.uid,r.chown.gid),r.mode&&await pe.default.chmodAttempt(u,r.mode);try{await pe.default.renameRetry(i)(u,e)}catch(d){if(d.code!=="ENAMETOOLONG")throw d;await pe.default.renameRetry(i)(u,sr.default.truncate(e))}c(),u=null}finally{p&&await pe.default.closeAttempt(p),u&&sr.default.purge(u),s&&s(),o&&o()}},Pu=(e,t,r=Be.DEFAULT_WRITE_OPTIONS)=>{var n;if(mt.default.isString(r))return Pu(e,t,{encoding:r});const i=Date.now()+((n=r.timeout)!==null&&n!==void 0?n:Be.DEFAULT_TIMEOUT_SYNC);let s=null,o=null,c=null;try{e=pe.default.realpathSyncAttempt(e)||e,[o,s]=sr.default.get(e,r.tmpCreate||sr.default.create,r.tmpPurge!==!1);const u=Be.IS_POSIX&&mt.default.isUndefined(r.chown),p=mt.default.isUndefined(r.mode);if(u||p){const l=pe.default.statSyncAttempt(e);l&&(r={...r},u&&(r.chown={uid:l.uid,gid:l.gid}),p&&(r.mode=l.mode))}const a=Ou.dirname(e);pe.default.mkdirSyncAttempt(a,{mode:Be.DEFAULT_FOLDER_MODE,recursive:!0}),c=pe.default.openSyncRetry(i)(o,"w",r.mode||Be.DEFAULT_FILE_MODE),r.tmpCreated&&r.tmpCreated(o),mt.default.isString(t)?pe.default.writeSyncRetry(i)(c,t,0,r.encoding||Be.DEFAULT_ENCODING):mt.default.isUndefined(t)||pe.default.writeSyncRetry(i)(c,t,0,t.length,0),r.fsync!==!1&&(r.fsyncWait!==!1?pe.default.fsyncSyncRetry(i)(c):pe.default.fsyncAttempt(c)),pe.default.closeSyncRetry(i)(c),c=null,r.chown&&pe.default.chownSyncAttempt(o,r.chown.uid,r.chown.gid),r.mode&&pe.default.chmodSyncAttempt(o,r.mode);try{pe.default.renameSyncRetry(i)(o,e)}catch(l){if(l.code!=="ENAMETOOLONG")throw l;pe.default.renameSyncRetry(i)(o,sr.default.truncate(e))}s(),o=null}finally{c&&pe.default.closeSyncAttempt(c),o&&sr.default.purge(o)}};jt.writeFileSync=Pu;var Ei={exports:{}},Au={},zt={},hr={},Mn={},oe={},Dn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor($){if(super(),!e.IDENTIFIER.test($))throw new Error("CodeGen: name must be a valid identifier");this.str=$}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor($){super(),this._items=typeof $=="string"?[$]:$}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const $=this._items[0];return $===""||$==='""'}get str(){var $;return($=this._str)!==null&&$!==void 0?$:this._str=this._items.reduce((_,O)=>`${_}${O}`,"")}get names(){var $;return($=this._names)!==null&&$!==void 0?$:this._names=this._items.reduce((_,O)=>(O instanceof r&&(_[O.str]=(_[O.str]||0)+1),_),{})}}e._Code=n,e.nil=new n("");function i(f,...$){const _=[f[0]];let O=0;for(;O<$.length;)c(_,$[O]),_.push(f[++O]);return new n(_)}e._=i;const s=new n("+");function o(f,...$){const _=[d(f[0])];let O=0;for(;O<$.length;)_.push(s),c(_,$[O]),_.push(s,d(f[++O]));return u(_),new n(_)}e.str=o;function c(f,$){$ instanceof n?f.push(...$._items):$ instanceof r?f.push($):f.push(l($))}e.addCodeArg=c;function u(f){let $=1;for(;$<f.length-1;){if(f[$]===s){const _=p(f[$-1],f[$+1]);if(_!==void 0){f.splice($-1,3,_);continue}f[$++]="+"}$++}}function p(f,$){if($==='""')return f;if(f==='""')return $;if(typeof f=="string")return $ instanceof r||f[f.length-1]!=='"'?void 0:typeof $!="string"?`${f.slice(0,-1)}${$}"`:$[0]==='"'?f.slice(0,-1)+$.slice(1):void 0;if(typeof $=="string"&&$[0]==='"'&&!(f instanceof r))return`"${f}${$.slice(1)}`}function a(f,$){return $.emptyStr()?f:f.emptyStr()?$:o`${f}${$}`}e.strConcat=a;function l(f){return typeof f=="number"||typeof f=="boolean"||f===null?f:d(Array.isArray(f)?f.join(","):f)}function y(f){return new n(d(f))}e.stringify=y;function d(f){return JSON.stringify(f).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=d;function h(f){return typeof f=="string"&&e.IDENTIFIER.test(f)?new n(`.${f}`):i`[${f}]`}e.getProperty=h;function m(f){if(typeof f=="string"&&e.IDENTIFIER.test(f))return new n(`${f}`);throw new Error(`CodeGen: invalid export name: ${f}, use explicit $id name mapping`)}e.getEsmExportName=m;function E(f){return new n(f.toString())}e.regexpCode=E})(Dn);var vs={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Dn;class r extends Error{constructor(p){super(`CodeGen: "code" for ${p} not defined`),this.value=p.value}}var n;(function(u){u[u.Started=0]="Started",u[u.Completed=1]="Completed"})(n=e.UsedValueState||(e.UsedValueState={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class i{constructor({prefixes:p,parent:a}={}){this._names={},this._prefixes=p,this._parent=a}toName(p){return p instanceof t.Name?p:this.name(p)}name(p){return new t.Name(this._newName(p))}_newName(p){const a=this._names[p]||this._nameGroup(p);return`${p}${a.index++}`}_nameGroup(p){var a,l;if(((l=(a=this._parent)===null||a===void 0?void 0:a._prefixes)===null||l===void 0?void 0:l.has(p))||this._prefixes&&!this._prefixes.has(p))throw new Error(`CodeGen: prefix "${p}" is not allowed in this scope`);return this._names[p]={prefix:p,index:0}}}e.Scope=i;class s extends t.Name{constructor(p,a){super(a),this.prefix=p}setValue(p,{property:a,itemIndex:l}){this.value=p,this.scopePath=(0,t._)`.${new t.Name(a)}[${l}]`}}e.ValueScopeName=s;const o=(0,t._)`\n`;class c extends i{constructor(p){super(p),this._values={},this._scope=p.scope,this.opts={...p,_n:p.lines?o:t.nil}}get(){return this._scope}name(p){return new s(p,this._newName(p))}value(p,a){var l;if(a.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const y=this.toName(p),{prefix:d}=y,h=(l=a.key)!==null&&l!==void 0?l:a.ref;let m=this._values[d];if(m){const $=m.get(h);if($)return $}else m=this._values[d]=new Map;m.set(h,y);const E=this._scope[d]||(this._scope[d]=[]),f=E.length;return E[f]=a.ref,y.setValue(a,{property:d,itemIndex:f}),y}getValue(p,a){const l=this._values[p];if(!!l)return l.get(a)}scopeRefs(p,a=this._values){return this._reduceValues(a,l=>{if(l.scopePath===void 0)throw new Error(`CodeGen: name "${l}" has no value`);return(0,t._)`${p}${l.scopePath}`})}scopeCode(p=this._values,a,l){return this._reduceValues(p,y=>{if(y.value===void 0)throw new Error(`CodeGen: name "${y}" has no value`);return y.value.code},a,l)}_reduceValues(p,a,l={},y){let d=t.nil;for(const h in p){const m=p[h];if(!m)continue;const E=l[h]=l[h]||new Map;m.forEach(f=>{if(E.has(f))return;E.set(f,n.Started);let $=a(f);if($){const _=this.opts.es5?e.varKinds.var:e.varKinds.const;d=(0,t._)`${d}${_} ${f} = ${$};${this.opts._n}`}else if($=y==null?void 0:y(f))d=(0,t._)`${d}${$}${this.opts._n}`;else throw new r(f);E.set(f,n.Completed)})}return d}}e.ValueScope=c})(vs);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=Dn,r=vs;var n=Dn;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var i=vs;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class s{optimizeNodes(){return this}optimizeNames(v,S){return this}}class o extends s{constructor(v,S,x){super(),this.varKind=v,this.name=S,this.rhs=x}render({es5:v,_n:S}){const x=v?r.varKinds.var:this.varKind,Y=this.rhs===void 0?"":` = ${this.rhs}`;return`${x} ${this.name}${Y};`+S}optimizeNames(v,S){if(!!v[this.name.str])return this.rhs&&(this.rhs=B(this.rhs,v,S)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class c extends s{constructor(v,S,x){super(),this.lhs=v,this.rhs=S,this.sideEffects=x}render({_n:v}){return`${this.lhs} = ${this.rhs};`+v}optimizeNames(v,S){if(!(this.lhs instanceof t.Name&&!v[this.lhs.str]&&!this.sideEffects))return this.rhs=B(this.rhs,v,S),this}get names(){const v=this.lhs instanceof t.Name?{}:{...this.lhs.names};return K(v,this.rhs)}}class u extends c{constructor(v,S,x,Y){super(v,x,Y),this.op=S}render({_n:v}){return`${this.lhs} ${this.op}= ${this.rhs};`+v}}class p extends s{constructor(v){super(),this.label=v,this.names={}}render({_n:v}){return`${this.label}:`+v}}class a extends s{constructor(v){super(),this.label=v,this.names={}}render({_n:v}){return`break${this.label?` ${this.label}`:""};`+v}}class l extends s{constructor(v){super(),this.error=v}render({_n:v}){return`throw ${this.error};`+v}get names(){return this.error.names}}class y extends s{constructor(v){super(),this.code=v}render({_n:v}){return`${this.code};`+v}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(v,S){return this.code=B(this.code,v,S),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class d extends s{constructor(v=[]){super(),this.nodes=v}render(v){return this.nodes.reduce((S,x)=>S+x.render(v),"")}optimizeNodes(){const{nodes:v}=this;let S=v.length;for(;S--;){const x=v[S].optimizeNodes();Array.isArray(x)?v.splice(S,1,...x):x?v[S]=x:v.splice(S,1)}return v.length>0?this:void 0}optimizeNames(v,S){const{nodes:x}=this;let Y=x.length;for(;Y--;){const Q=x[Y];Q.optimizeNames(v,S)||(X(v,Q.names),x.splice(Y,1))}return x.length>0?this:void 0}get names(){return this.nodes.reduce((v,S)=>b(v,S.names),{})}}class h extends d{render(v){return"{"+v._n+super.render(v)+"}"+v._n}}class m extends d{}class E extends h{}E.kind="else";class f extends h{constructor(v,S){super(S),this.condition=v}render(v){let S=`if(${this.condition})`+super.render(v);return this.else&&(S+="else "+this.else.render(v)),S}optimizeNodes(){super.optimizeNodes();const v=this.condition;if(v===!0)return this.nodes;let S=this.else;if(S){const x=S.optimizeNodes();S=this.else=Array.isArray(x)?new E(x):x}if(S)return v===!1?S instanceof f?S:S.nodes:this.nodes.length?this:new f(Z(v),S instanceof f?[S]:S.nodes);if(!(v===!1||!this.nodes.length))return this}optimizeNames(v,S){var x;if(this.else=(x=this.else)===null||x===void 0?void 0:x.optimizeNames(v,S),!!(super.optimizeNames(v,S)||this.else))return this.condition=B(this.condition,v,S),this}get names(){const v=super.names;return K(v,this.condition),this.else&&b(v,this.else.names),v}}f.kind="if";class $ extends h{}$.kind="for";class _ extends ${constructor(v){super(),this.iteration=v}render(v){return`for(${this.iteration})`+super.render(v)}optimizeNames(v,S){if(!!super.optimizeNames(v,S))return this.iteration=B(this.iteration,v,S),this}get names(){return b(super.names,this.iteration.names)}}class O extends ${constructor(v,S,x,Y){super(),this.varKind=v,this.name=S,this.from=x,this.to=Y}render(v){const S=v.es5?r.varKinds.var:this.varKind,{name:x,from:Y,to:Q}=this;return`for(${S} ${x}=${Y}; ${x}<${Q}; ${x}++)`+super.render(v)}get names(){const v=K(super.names,this.from);return K(v,this.to)}}class q extends ${constructor(v,S,x,Y){super(),this.loop=v,this.varKind=S,this.name=x,this.iterable=Y}render(v){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(v)}optimizeNames(v,S){if(!!super.optimizeNames(v,S))return this.iterable=B(this.iterable,v,S),this}get names(){return b(super.names,this.iterable.names)}}class R extends h{constructor(v,S,x){super(),this.name=v,this.args=S,this.async=x}render(v){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(v)}}R.kind="func";class C extends d{render(v){return"return "+super.render(v)}}C.kind="return";class V extends h{render(v){let S="try"+super.render(v);return this.catch&&(S+=this.catch.render(v)),this.finally&&(S+=this.finally.render(v)),S}optimizeNodes(){var v,S;return super.optimizeNodes(),(v=this.catch)===null||v===void 0||v.optimizeNodes(),(S=this.finally)===null||S===void 0||S.optimizeNodes(),this}optimizeNames(v,S){var x,Y;return super.optimizeNames(v,S),(x=this.catch)===null||x===void 0||x.optimizeNames(v,S),(Y=this.finally)===null||Y===void 0||Y.optimizeNames(v,S),this}get names(){const v=super.names;return this.catch&&b(v,this.catch.names),this.finally&&b(v,this.finally.names),v}}class L extends h{constructor(v){super(),this.error=v}render(v){return`catch(${this.error})`+super.render(v)}}L.kind="catch";class G extends h{render(v){return"finally"+super.render(v)}}G.kind="finally";class j{constructor(v,S={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...S,_n:S.lines?`
8
- `:""},this._extScope=v,this._scope=new r.Scope({parent:v}),this._nodes=[new m]}toString(){return this._root.render(this.opts)}name(v){return this._scope.name(v)}scopeName(v){return this._extScope.name(v)}scopeValue(v,S){const x=this._extScope.value(v,S);return(this._values[x.prefix]||(this._values[x.prefix]=new Set)).add(x),x}getScopeValue(v,S){return this._extScope.getValue(v,S)}scopeRefs(v){return this._extScope.scopeRefs(v,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(v,S,x,Y){const Q=this._scope.toName(S);return x!==void 0&&Y&&(this._constants[Q.str]=x),this._leafNode(new o(v,Q,x)),Q}const(v,S,x){return this._def(r.varKinds.const,v,S,x)}let(v,S,x){return this._def(r.varKinds.let,v,S,x)}var(v,S,x){return this._def(r.varKinds.var,v,S,x)}assign(v,S,x){return this._leafNode(new c(v,S,x))}add(v,S){return this._leafNode(new u(v,e.operators.ADD,S))}code(v){return typeof v=="function"?v():v!==t.nil&&this._leafNode(new y(v)),this}object(...v){const S=["{"];for(const[x,Y]of v)S.length>1&&S.push(","),S.push(x),(x!==Y||this.opts.es5)&&(S.push(":"),(0,t.addCodeArg)(S,Y));return S.push("}"),new t._Code(S)}if(v,S,x){if(this._blockNode(new f(v)),S&&x)this.code(S).else().code(x).endIf();else if(S)this.code(S).endIf();else if(x)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(v){return this._elseNode(new f(v))}else(){return this._elseNode(new E)}endIf(){return this._endBlockNode(f,E)}_for(v,S){return this._blockNode(v),S&&this.code(S).endFor(),this}for(v,S){return this._for(new _(v),S)}forRange(v,S,x,Y,Q=this.opts.es5?r.varKinds.var:r.varKinds.let){const ae=this._scope.toName(v);return this._for(new O(Q,ae,S,x),()=>Y(ae))}forOf(v,S,x,Y=r.varKinds.const){const Q=this._scope.toName(v);if(this.opts.es5){const ae=S instanceof t.Name?S:this.var("_arr",S);return this.forRange("_i",0,(0,t._)`${ae}.length`,D=>{this.var(Q,(0,t._)`${ae}[${D}]`),x(Q)})}return this._for(new q("of",Y,Q,S),()=>x(Q))}forIn(v,S,x,Y=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(v,(0,t._)`Object.keys(${S})`,x);const Q=this._scope.toName(v);return this._for(new q("in",Y,Q,S),()=>x(Q))}endFor(){return this._endBlockNode($)}label(v){return this._leafNode(new p(v))}break(v){return this._leafNode(new a(v))}return(v){const S=new C;if(this._blockNode(S),this.code(v),S.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(C)}try(v,S,x){if(!S&&!x)throw new Error('CodeGen: "try" without "catch" and "finally"');const Y=new V;if(this._blockNode(Y),this.code(v),S){const Q=this.name("e");this._currNode=Y.catch=new L(Q),S(Q)}return x&&(this._currNode=Y.finally=new G,this.code(x)),this._endBlockNode(L,G)}throw(v){return this._leafNode(new l(v))}block(v,S){return this._blockStarts.push(this._nodes.length),v&&this.code(v).endBlock(S),this}endBlock(v){const S=this._blockStarts.pop();if(S===void 0)throw new Error("CodeGen: not in self-balancing block");const x=this._nodes.length-S;if(x<0||v!==void 0&&x!==v)throw new Error(`CodeGen: wrong number of nodes: ${x} vs ${v} expected`);return this._nodes.length=S,this}func(v,S=t.nil,x,Y){return this._blockNode(new R(v,S,x)),Y&&this.code(Y).endFunc(),this}endFunc(){return this._endBlockNode(R)}optimize(v=1){for(;v-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(v){return this._currNode.nodes.push(v),this}_blockNode(v){this._currNode.nodes.push(v),this._nodes.push(v)}_endBlockNode(v,S){const x=this._currNode;if(x instanceof v||S&&x instanceof S)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${S?`${v.kind}/${S.kind}`:v.kind}"`)}_elseNode(v){const S=this._currNode;if(!(S instanceof f))throw new Error('CodeGen: "else" without "if"');return this._currNode=S.else=v,this}get _root(){return this._nodes[0]}get _currNode(){const v=this._nodes;return v[v.length-1]}set _currNode(v){const S=this._nodes;S[S.length-1]=v}}e.CodeGen=j;function b(P,v){for(const S in v)P[S]=(P[S]||0)+(v[S]||0);return P}function K(P,v){return v instanceof t._CodeOrName?b(P,v.names):P}function B(P,v,S){if(P instanceof t.Name)return x(P);if(!Y(P))return P;return new t._Code(P._items.reduce((Q,ae)=>(ae instanceof t.Name&&(ae=x(ae)),ae instanceof t._Code?Q.push(...ae._items):Q.push(ae),Q),[]));function x(Q){const ae=S[Q.str];return ae===void 0||v[Q.str]!==1?Q:(delete v[Q.str],ae)}function Y(Q){return Q instanceof t._Code&&Q._items.some(ae=>ae instanceof t.Name&&v[ae.str]===1&&S[ae.str]!==void 0)}}function X(P,v){for(const S in v)P[S]=(P[S]||0)-(v[S]||0)}function Z(P){return typeof P=="boolean"||typeof P=="number"||P===null?!P:(0,t._)`!${M(P)}`}e.not=Z;const W=I(e.operators.AND);function F(...P){return P.reduce(W)}e.and=F;const z=I(e.operators.OR);function T(...P){return P.reduce(z)}e.or=T;function I(P){return(v,S)=>v===t.nil?S:S===t.nil?v:(0,t._)`${M(v)} ${P} ${M(S)}`}function M(P){return P instanceof t.Name?P:(0,t._)`(${P})`}})(oe);var he={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=oe,r=Dn;function n(R){const C={};for(const V of R)C[V]=!0;return C}e.toHash=n;function i(R,C){return typeof C=="boolean"?C:Object.keys(C).length===0?!0:(s(R,C),!o(C,R.self.RULES.all))}e.alwaysValidSchema=i;function s(R,C=R.schema){const{opts:V,self:L}=R;if(!V.strictSchema||typeof C=="boolean")return;const G=L.RULES.keywords;for(const j in C)G[j]||q(R,`unknown keyword: "${j}"`)}e.checkUnknownRules=s;function o(R,C){if(typeof R=="boolean")return!R;for(const V in R)if(C[V])return!0;return!1}e.schemaHasRules=o;function c(R,C){if(typeof R=="boolean")return!R;for(const V in R)if(V!=="$ref"&&C.all[V])return!0;return!1}e.schemaHasRulesButRef=c;function u({topSchemaRef:R,schemaPath:C},V,L,G){if(!G){if(typeof V=="number"||typeof V=="boolean")return V;if(typeof V=="string")return(0,t._)`${V}`}return(0,t._)`${R}${C}${(0,t.getProperty)(L)}`}e.schemaRefOrVal=u;function p(R){return y(decodeURIComponent(R))}e.unescapeFragment=p;function a(R){return encodeURIComponent(l(R))}e.escapeFragment=a;function l(R){return typeof R=="number"?`${R}`:R.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=l;function y(R){return R.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=y;function d(R,C){if(Array.isArray(R))for(const V of R)C(V);else C(R)}e.eachItem=d;function h({mergeNames:R,mergeToName:C,mergeValues:V,resultToName:L}){return(G,j,b,K)=>{const B=b===void 0?j:b instanceof t.Name?(j instanceof t.Name?R(G,j,b):C(G,j,b),b):j instanceof t.Name?(C(G,b,j),j):V(j,b);return K===t.Name&&!(B instanceof t.Name)?L(G,B):B}}e.mergeEvaluated={props:h({mergeNames:(R,C,V)=>R.if((0,t._)`${V} !== true && ${C} !== undefined`,()=>{R.if((0,t._)`${C} === true`,()=>R.assign(V,!0),()=>R.assign(V,(0,t._)`${V} || {}`).code((0,t._)`Object.assign(${V}, ${C})`))}),mergeToName:(R,C,V)=>R.if((0,t._)`${V} !== true`,()=>{C===!0?R.assign(V,!0):(R.assign(V,(0,t._)`${V} || {}`),E(R,V,C))}),mergeValues:(R,C)=>R===!0?!0:{...R,...C},resultToName:m}),items:h({mergeNames:(R,C,V)=>R.if((0,t._)`${V} !== true && ${C} !== undefined`,()=>R.assign(V,(0,t._)`${C} === true ? true : ${V} > ${C} ? ${V} : ${C}`)),mergeToName:(R,C,V)=>R.if((0,t._)`${V} !== true`,()=>R.assign(V,C===!0?!0:(0,t._)`${V} > ${C} ? ${V} : ${C}`)),mergeValues:(R,C)=>R===!0?!0:Math.max(R,C),resultToName:(R,C)=>R.var("items",C)})};function m(R,C){if(C===!0)return R.var("props",!0);const V=R.var("props",(0,t._)`{}`);return C!==void 0&&E(R,V,C),V}e.evaluatedPropsToName=m;function E(R,C,V){Object.keys(V).forEach(L=>R.assign((0,t._)`${C}${(0,t.getProperty)(L)}`,!0))}e.setEvaluated=E;const f={};function $(R,C){return R.scopeValue("func",{ref:C,code:f[C.code]||(f[C.code]=new r._Code(C.code))})}e.useFunc=$;var _;(function(R){R[R.Num=0]="Num",R[R.Str=1]="Str"})(_=e.Type||(e.Type={}));function O(R,C,V){if(R instanceof t.Name){const L=C===_.Num;return V?L?(0,t._)`"[" + ${R} + "]"`:(0,t._)`"['" + ${R} + "']"`:L?(0,t._)`"/" + ${R}`:(0,t._)`"/" + ${R}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return V?(0,t.getProperty)(R).toString():"/"+l(R)}e.getErrorPath=O;function q(R,C,V=R.opts.strictSchema){if(!!V){if(C=`strict mode: ${C}`,V===!0)throw new Error(C);R.self.logger.warn(C)}}e.checkStrictMode=q})(he);var kt={};Object.defineProperty(kt,"__esModule",{value:!0});const Ze=oe,Jh={data:new Ze.Name("data"),valCxt:new Ze.Name("valCxt"),instancePath:new Ze.Name("instancePath"),parentData:new Ze.Name("parentData"),parentDataProperty:new Ze.Name("parentDataProperty"),rootData:new Ze.Name("rootData"),dynamicAnchors:new Ze.Name("dynamicAnchors"),vErrors:new Ze.Name("vErrors"),errors:new Ze.Name("errors"),this:new Ze.Name("this"),self:new Ze.Name("self"),scope:new Ze.Name("scope"),json:new Ze.Name("json"),jsonPos:new Ze.Name("jsonPos"),jsonLen:new Ze.Name("jsonLen"),jsonPart:new Ze.Name("jsonPart")};kt.default=Jh;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=oe,r=he,n=kt;e.keywordError={message:({keyword:E})=>(0,t.str)`must pass "${E}" keyword validation`},e.keyword$DataError={message:({keyword:E,schemaType:f})=>f?(0,t.str)`"${E}" keyword must be ${f} ($data)`:(0,t.str)`"${E}" keyword is invalid ($data)`};function i(E,f=e.keywordError,$,_){const{it:O}=E,{gen:q,compositeRule:R,allErrors:C}=O,V=l(E,f,$);(_!=null?_:R||C)?u(q,V):p(O,(0,t._)`[${V}]`)}e.reportError=i;function s(E,f=e.keywordError,$){const{it:_}=E,{gen:O,compositeRule:q,allErrors:R}=_,C=l(E,f,$);u(O,C),q||R||p(_,n.default.vErrors)}e.reportExtraError=s;function o(E,f){E.assign(n.default.errors,f),E.if((0,t._)`${n.default.vErrors} !== null`,()=>E.if(f,()=>E.assign((0,t._)`${n.default.vErrors}.length`,f),()=>E.assign(n.default.vErrors,null)))}e.resetErrorsCount=o;function c({gen:E,keyword:f,schemaValue:$,data:_,errsCount:O,it:q}){if(O===void 0)throw new Error("ajv implementation error");const R=E.name("err");E.forRange("i",O,n.default.errors,C=>{E.const(R,(0,t._)`${n.default.vErrors}[${C}]`),E.if((0,t._)`${R}.instancePath === undefined`,()=>E.assign((0,t._)`${R}.instancePath`,(0,t.strConcat)(n.default.instancePath,q.errorPath))),E.assign((0,t._)`${R}.schemaPath`,(0,t.str)`${q.errSchemaPath}/${f}`),q.opts.verbose&&(E.assign((0,t._)`${R}.schema`,$),E.assign((0,t._)`${R}.data`,_))})}e.extendErrors=c;function u(E,f){const $=E.const("err",f);E.if((0,t._)`${n.default.vErrors} === null`,()=>E.assign(n.default.vErrors,(0,t._)`[${$}]`),(0,t._)`${n.default.vErrors}.push(${$})`),E.code((0,t._)`${n.default.errors}++`)}function p(E,f){const{gen:$,validateName:_,schemaEnv:O}=E;O.$async?$.throw((0,t._)`new ${E.ValidationError}(${f})`):($.assign((0,t._)`${_}.errors`,f),$.return(!1))}const a={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function l(E,f,$){const{createErrors:_}=E.it;return _===!1?(0,t._)`{}`:y(E,f,$)}function y(E,f,$={}){const{gen:_,it:O}=E,q=[d(O,$),h(E,$)];return m(E,f,q),_.object(...q)}function d({errorPath:E},{instancePath:f}){const $=f?(0,t.str)`${E}${(0,r.getErrorPath)(f,r.Type.Str)}`:E;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,$)]}function h({keyword:E,it:{errSchemaPath:f}},{schemaPath:$,parentSchema:_}){let O=_?f:(0,t.str)`${f}/${E}`;return $&&(O=(0,t.str)`${O}${(0,r.getErrorPath)($,r.Type.Str)}`),[a.schemaPath,O]}function m(E,{params:f,message:$},_){const{keyword:O,data:q,schemaValue:R,it:C}=E,{opts:V,propertyName:L,topSchemaRef:G,schemaPath:j}=C;_.push([a.keyword,O],[a.params,typeof f=="function"?f(E):f||(0,t._)`{}`]),V.messages&&_.push([a.message,typeof $=="function"?$(E):$]),V.verbose&&_.push([a.schema,R],[a.parentSchema,(0,t._)`${G}${j}`],[n.default.data,q]),L&&_.push([a.propertyName,L])}})(Mn);var Oa;function Yh(){if(Oa)return hr;Oa=1,Object.defineProperty(hr,"__esModule",{value:!0}),hr.boolOrEmptySchema=hr.topBoolOrEmptySchema=void 0;const e=Mn,t=oe,r=kt,n={message:"boolean schema is false"};function i(c){const{gen:u,schema:p,validateName:a}=c;p===!1?o(c,!1):typeof p=="object"&&p.$async===!0?u.return(r.default.data):(u.assign((0,t._)`${a}.errors`,null),u.return(!0))}hr.topBoolOrEmptySchema=i;function s(c,u){const{gen:p,schema:a}=c;a===!1?(p.var(u,!1),o(c)):p.var(u,!0)}hr.boolOrEmptySchema=s;function o(c,u){const{gen:p,data:a}=c,l={gen:p,keyword:"false schema",data:a,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:c};(0,e.reportError)(l,n,void 0,u)}return hr}var Rn={},wr={};Object.defineProperty(wr,"__esModule",{value:!0});wr.getRules=wr.isJSONType=void 0;const Qh=["string","number","integer","boolean","null","object","array"],em=new Set(Qh);function tm(e){return typeof e=="string"&&em.has(e)}wr.isJSONType=tm;function rm(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}wr.getRules=rm;var Bt={};Object.defineProperty(Bt,"__esModule",{value:!0});Bt.shouldUseRule=Bt.shouldUseGroup=Bt.schemaHasRulesForType=void 0;function nm({schema:e,self:t},r){const n=t.RULES.types[r];return n&&n!==!0&&bu(e,n)}Bt.schemaHasRulesForType=nm;function bu(e,t){return t.rules.some(r=>Lu(e,r))}Bt.shouldUseGroup=bu;function Lu(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}Bt.shouldUseRule=Lu;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=wr,r=Bt,n=Mn,i=oe,s=he;var o;(function(_){_[_.Correct=0]="Correct",_[_.Wrong=1]="Wrong"})(o=e.DataType||(e.DataType={}));function c(_){const O=u(_.type);if(O.includes("null")){if(_.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!O.length&&_.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');_.nullable===!0&&O.push("null")}return O}e.getSchemaTypes=c;function u(_){const O=Array.isArray(_)?_:_?[_]:[];if(O.every(t.isJSONType))return O;throw new Error("type must be JSONType or JSONType[]: "+O.join(","))}e.getJSONTypes=u;function p(_,O){const{gen:q,data:R,opts:C}=_,V=l(O,C.coerceTypes),L=O.length>0&&!(V.length===0&&O.length===1&&(0,r.schemaHasRulesForType)(_,O[0]));if(L){const G=m(O,R,C.strictNumbers,o.Wrong);q.if(G,()=>{V.length?y(_,O,V):f(_)})}return L}e.coerceAndCheckDataType=p;const a=new Set(["string","number","integer","boolean","null"]);function l(_,O){return O?_.filter(q=>a.has(q)||O==="array"&&q==="array"):[]}function y(_,O,q){const{gen:R,data:C,opts:V}=_,L=R.let("dataType",(0,i._)`typeof ${C}`),G=R.let("coerced",(0,i._)`undefined`);V.coerceTypes==="array"&&R.if((0,i._)`${L} == 'object' && Array.isArray(${C}) && ${C}.length == 1`,()=>R.assign(C,(0,i._)`${C}[0]`).assign(L,(0,i._)`typeof ${C}`).if(m(O,C,V.strictNumbers),()=>R.assign(G,C))),R.if((0,i._)`${G} !== undefined`);for(const b of q)(a.has(b)||b==="array"&&V.coerceTypes==="array")&&j(b);R.else(),f(_),R.endIf(),R.if((0,i._)`${G} !== undefined`,()=>{R.assign(C,G),d(_,G)});function j(b){switch(b){case"string":R.elseIf((0,i._)`${L} == "number" || ${L} == "boolean"`).assign(G,(0,i._)`"" + ${C}`).elseIf((0,i._)`${C} === null`).assign(G,(0,i._)`""`);return;case"number":R.elseIf((0,i._)`${L} == "boolean" || ${C} === null
6
+ see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");const{srcStat:n,destStat:i}=On.checkPathsSync(e,t,"copy",r);return On.checkParentPathsSync(e,n,t,"copy"),Pl(i,e,t,r)}function Pl(e,t,r,n){if(n.filter&&!n.filter(t,r))return;const i=In.dirname(r);return Ye.existsSync(i)||Dl(i),zc(e,t,r,n)}function Al(e,t,r,n){if(!(n.filter&&!n.filter(t,r)))return zc(e,t,r,n)}function zc(e,t,r,n){const s=(n.dereference?Ye.statSync:Ye.lstatSync)(t);if(s.isDirectory())return Ul(s,e,t,r,n);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return bl(s,e,t,r,n);if(s.isSymbolicLink())return Vl(e,t,r,n);throw s.isSocket()?new Error(`Cannot copy a socket file: ${t}`):s.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${t}`):new Error(`Unknown file: ${t}`)}function bl(e,t,r,n,i){return t?Ll(e,r,n,i):xc(e,r,n,i)}function Ll(e,t,r,n){if(n.overwrite)return Ye.unlinkSync(r),xc(e,t,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function xc(e,t,r,n){return Ye.copyFileSync(t,r),n.preserveTimestamps&&Fl(e.mode,t,r),bs(r,e.mode)}function Fl(e,t,r){return jl(e)&&Ml(r,e),kl(t,r)}function jl(e){return(e&128)===0}function Ml(e,t){return bs(e,t|128)}function bs(e,t){return Ye.chmodSync(e,t)}function kl(e,t){const r=Ye.statSync(e);return Rl(t,r.atime,r.mtime)}function Ul(e,t,r,n,i){return t?Vc(r,n,i):zl(e.mode,r,n,i)}function zl(e,t,r,n){return Ye.mkdirSync(r),Vc(t,r,n),bs(r,e)}function Vc(e,t,r){Ye.readdirSync(e).forEach(n=>xl(n,e,t,r))}function xl(e,t,r,n){const i=In.join(t,e),s=In.join(r,e),{destStat:o}=On.checkPathsSync(i,s,"copy",n);return Al(o,i,s,n)}function Vl(e,t,r,n){let i=Ye.readlinkSync(t);if(n.dereference&&(i=In.resolve(process.cwd(),i)),e){let s;try{s=Ye.readlinkSync(r)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return Ye.symlinkSync(i,r);throw o}if(n.dereference&&(s=In.resolve(process.cwd(),s)),On.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(Ye.statSync(r).isDirectory()&&On.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return ql(i,r)}else return Ye.symlinkSync(i,r)}function ql(e,t){return Ye.unlinkSync(t),Ye.symlinkSync(e,t)}var Gl=Cl;const Bl=nt.fromCallback;var Ls={copy:Bl(Tl),copySync:Gl};const aa=it,qc=Re.default,ge=Ds.default,Tn=process.platform==="win32";function Gc(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{e[r]=e[r]||aa[r],r=r+"Sync",e[r]=e[r]||aa[r]}),e.maxBusyTries=e.maxBusyTries||3}function Fs(e,t,r){let n=0;typeof t=="function"&&(r=t,t={}),ge(e,"rimraf: missing path"),ge.strictEqual(typeof e,"string","rimraf: path should be a string"),ge.strictEqual(typeof r,"function","rimraf: callback function required"),ge(t,"rimraf: invalid options argument provided"),ge.strictEqual(typeof t,"object","rimraf: options should be object"),Gc(t),ca(e,t,function i(s){if(s){if((s.code==="EBUSY"||s.code==="ENOTEMPTY"||s.code==="EPERM")&&n<t.maxBusyTries){n++;const o=n*100;return setTimeout(()=>ca(e,t,i),o)}s.code==="ENOENT"&&(s=null)}r(s)})}function ca(e,t,r){ge(e),ge(t),ge(typeof r=="function"),t.lstat(e,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&Tn)return ua(e,t,n,r);if(i&&i.isDirectory())return ii(e,t,n,r);t.unlink(e,s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return Tn?ua(e,t,s,r):ii(e,t,s,r);if(s.code==="EISDIR")return ii(e,t,s,r)}return r(s)})})}function ua(e,t,r,n){ge(e),ge(t),ge(typeof n=="function"),t.chmod(e,438,i=>{i?n(i.code==="ENOENT"?null:r):t.stat(e,(s,o)=>{s?n(s.code==="ENOENT"?null:r):o.isDirectory()?ii(e,t,r,n):t.unlink(e,n)})})}function fa(e,t,r){let n;ge(e),ge(t);try{t.chmodSync(e,438)}catch(i){if(i.code==="ENOENT")return;throw r}try{n=t.statSync(e)}catch(i){if(i.code==="ENOENT")return;throw r}n.isDirectory()?si(e,t,r):t.unlinkSync(e)}function ii(e,t,r,n){ge(e),ge(t),ge(typeof n=="function"),t.rmdir(e,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?Hl(e,t,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function Hl(e,t,r){ge(e),ge(t),ge(typeof r=="function"),t.readdir(e,(n,i)=>{if(n)return r(n);let s=i.length,o;if(s===0)return t.rmdir(e,r);i.forEach(c=>{Fs(qc.join(e,c),t,u=>{if(!o){if(u)return r(o=u);--s===0&&t.rmdir(e,r)}})})})}function Bc(e,t){let r;t=t||{},Gc(t),ge(e,"rimraf: missing path"),ge.strictEqual(typeof e,"string","rimraf: path should be a string"),ge(t,"rimraf: missing options"),ge.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&Tn&&fa(e,t,n)}try{r&&r.isDirectory()?si(e,t,null):t.unlinkSync(e)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return Tn?fa(e,t,n):si(e,t,n);if(n.code!=="EISDIR")throw n;si(e,t,n)}}function si(e,t,r){ge(e),ge(t);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")Kl(e,t);else if(n.code!=="ENOENT")throw n}}function Kl(e,t){if(ge(e),ge(t),t.readdirSync(e).forEach(r=>Bc(qc.join(e,r),t)),Tn){const r=Date.now();do try{return t.rmdirSync(e,t)}catch{}while(Date.now()-r<500)}else return t.rmdirSync(e,t)}var Wl=Fs;Fs.sync=Bc;const yi=it,Xl=nt.fromCallback,Hc=Wl;function Zl(e,t){if(yi.rm)return yi.rm(e,{recursive:!0,force:!0},t);Hc(e,t)}function Jl(e){if(yi.rmSync)return yi.rmSync(e,{recursive:!0,force:!0});Hc.sync(e)}var Ri={remove:Xl(Zl),removeSync:Jl};const Yl=nt.fromPromise,Kc=Or,Wc=Re.default,Xc=Mt,Zc=Ri,la=Yl(async function(t){let r;try{r=await Kc.readdir(t)}catch{return Xc.mkdirs(t)}return Promise.all(r.map(n=>Zc.remove(Wc.join(t,n))))});function da(e){let t;try{t=Kc.readdirSync(e)}catch{return Xc.mkdirsSync(e)}t.forEach(r=>{r=Wc.join(e,r),Zc.removeSync(r)})}var Ql={emptyDirSync:da,emptydirSync:da,emptyDir:la,emptydir:la};const ed=nt.fromCallback,Jc=Re.default,rr=it,Yc=Mt;function td(e,t){function r(){rr.writeFile(e,"",n=>{if(n)return t(n);t()})}rr.stat(e,(n,i)=>{if(!n&&i.isFile())return t();const s=Jc.dirname(e);rr.stat(s,(o,c)=>{if(o)return o.code==="ENOENT"?Yc.mkdirs(s,u=>{if(u)return t(u);r()}):t(o);c.isDirectory()?r():rr.readdir(s,u=>{if(u)return t(u)})})})}function rd(e){let t;try{t=rr.statSync(e)}catch{}if(t&&t.isFile())return;const r=Jc.dirname(e);try{rr.statSync(r).isDirectory()||rr.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")Yc.mkdirsSync(r);else throw n}rr.writeFileSync(e,"")}var nd={createFile:ed(td),createFileSync:rd};const id=nt.fromCallback,Qc=Re.default,Jt=it,eu=Mt,sd=Tr.pathExists,{areIdentical:tu}=Qr;function od(e,t,r){function n(i,s){Jt.link(i,s,o=>{if(o)return r(o);r(null)})}Jt.lstat(t,(i,s)=>{Jt.lstat(e,(o,c)=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),r(o);if(s&&tu(c,s))return r(null);const u=Qc.dirname(t);sd(u,(p,a)=>{if(p)return r(p);if(a)return n(e,t);eu.mkdirs(u,l=>{if(l)return r(l);n(e,t)})})})})}function ad(e,t){let r;try{r=Jt.lstatSync(t)}catch{}try{const s=Jt.lstatSync(e);if(r&&tu(s,r))return}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}const n=Qc.dirname(t);return Jt.existsSync(n)||eu.mkdirsSync(n),Jt.linkSync(e,t)}var cd={createLink:id(od),createLinkSync:ad};const nr=Re.default,yn=it,ud=Tr.pathExists;function fd(e,t,r){if(nr.isAbsolute(e))return yn.lstat(e,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:e,toDst:e}));{const n=nr.dirname(t),i=nr.join(n,e);return ud(i,(s,o)=>s?r(s):o?r(null,{toCwd:i,toDst:e}):yn.lstat(e,c=>c?(c.message=c.message.replace("lstat","ensureSymlink"),r(c)):r(null,{toCwd:e,toDst:nr.relative(n,e)})))}}function ld(e,t){let r;if(nr.isAbsolute(e)){if(r=yn.existsSync(e),!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{const n=nr.dirname(t),i=nr.join(n,e);if(r=yn.existsSync(i),r)return{toCwd:i,toDst:e};if(r=yn.existsSync(e),!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:nr.relative(n,e)}}}var dd={symlinkPaths:fd,symlinkPathsSync:ld};const ru=it;function hd(e,t,r){if(r=typeof t=="function"?t:r,t=typeof t=="function"?!1:t,t)return r(null,t);ru.lstat(e,(n,i)=>{if(n)return r(null,"file");t=i&&i.isDirectory()?"dir":"file",r(null,t)})}function md(e,t){let r;if(t)return t;try{r=ru.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}var pd={symlinkType:hd,symlinkTypeSync:md};const yd=nt.fromCallback,nu=Re.default,Ot=Or,iu=Mt,Ed=iu.mkdirs,vd=iu.mkdirsSync,su=dd,gd=su.symlinkPaths,$d=su.symlinkPathsSync,ou=pd,_d=ou.symlinkType,Sd=ou.symlinkTypeSync,wd=Tr.pathExists,{areIdentical:au}=Qr;function Nd(e,t,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,Ot.lstat(t,(i,s)=>{!i&&s.isSymbolicLink()?Promise.all([Ot.stat(e),Ot.stat(t)]).then(([o,c])=>{if(au(o,c))return n(null);ha(e,t,r,n)}):ha(e,t,r,n)})}function ha(e,t,r,n){gd(e,t,(i,s)=>{if(i)return n(i);e=s.toDst,_d(s.toCwd,r,(o,c)=>{if(o)return n(o);const u=nu.dirname(t);wd(u,(p,a)=>{if(p)return n(p);if(a)return Ot.symlink(e,t,c,n);Ed(u,l=>{if(l)return n(l);Ot.symlink(e,t,c,n)})})})})}function Id(e,t,r){let n;try{n=Ot.lstatSync(t)}catch{}if(n&&n.isSymbolicLink()){const c=Ot.statSync(e),u=Ot.statSync(t);if(au(c,u))return}const i=$d(e,t);e=i.toDst,r=Sd(i.toCwd,r);const s=nu.dirname(t);return Ot.existsSync(s)||vd(s),Ot.symlinkSync(e,t,r)}var Od={createSymlink:yd(Nd),createSymlinkSync:Id};const{createFile:ma,createFileSync:pa}=nd,{createLink:ya,createLinkSync:Ea}=cd,{createSymlink:va,createSymlinkSync:ga}=Od;var Td={createFile:ma,createFileSync:pa,ensureFile:ma,ensureFileSync:pa,createLink:ya,createLinkSync:Ea,ensureLink:ya,ensureLinkSync:Ea,createSymlink:va,createSymlinkSync:ga,ensureSymlink:va,ensureSymlinkSync:ga};function Dd(e,{EOL:t=`
7
+ `,finalEOL:r=!0,replacer:n=null,spaces:i}={}){const s=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+s}function Rd(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}var js={stringify:Dd,stripBom:Rd};let Wr;try{Wr=it}catch{Wr=Yr.default}const Ci=nt,{stringify:cu,stripBom:uu}=js;async function Cd(e,t={}){typeof t=="string"&&(t={encoding:t});const r=t.fs||Wr,n="throws"in t?t.throws:!0;let i=await Ci.fromCallback(r.readFile)(e,t);i=uu(i);let s;try{s=JSON.parse(i,t?t.reviver:null)}catch(o){if(n)throw o.message=`${e}: ${o.message}`,o;return null}return s}const Pd=Ci.fromPromise(Cd);function Ad(e,t={}){typeof t=="string"&&(t={encoding:t});const r=t.fs||Wr,n="throws"in t?t.throws:!0;try{let i=r.readFileSync(e,t);return i=uu(i),JSON.parse(i,t.reviver)}catch(i){if(n)throw i.message=`${e}: ${i.message}`,i;return null}}async function bd(e,t,r={}){const n=r.fs||Wr,i=cu(t,r);await Ci.fromCallback(n.writeFile)(e,i,r)}const Ld=Ci.fromPromise(bd);function Fd(e,t,r={}){const n=r.fs||Wr,i=cu(t,r);return n.writeFileSync(e,i,r)}const jd={readFile:Pd,readFileSync:Ad,writeFile:Ld,writeFileSync:Fd};var Md=jd;const Bn=Md;var kd={readJson:Bn.readFile,readJsonSync:Bn.readFileSync,writeJson:Bn.writeFile,writeJsonSync:Bn.writeFileSync};const Ud=nt.fromCallback,En=it,fu=Re.default,lu=Mt,zd=Tr.pathExists;function xd(e,t,r,n){typeof r=="function"&&(n=r,r="utf8");const i=fu.dirname(e);zd(i,(s,o)=>{if(s)return n(s);if(o)return En.writeFile(e,t,r,n);lu.mkdirs(i,c=>{if(c)return n(c);En.writeFile(e,t,r,n)})})}function Vd(e,...t){const r=fu.dirname(e);if(En.existsSync(r))return En.writeFileSync(e,...t);lu.mkdirsSync(r),En.writeFileSync(e,...t)}var Ms={outputFile:Ud(xd),outputFileSync:Vd};const{stringify:qd}=js,{outputFile:Gd}=Ms;async function Bd(e,t,r={}){const n=qd(t,r);await Gd(e,n,r)}var Hd=Bd;const{stringify:Kd}=js,{outputFileSync:Wd}=Ms;function Xd(e,t,r){const n=Kd(t,r);Wd(e,n,r)}var Zd=Xd;const Jd=nt.fromPromise,rt=kd;rt.outputJson=Jd(Hd);rt.outputJsonSync=Zd;rt.outputJSON=rt.outputJson;rt.outputJSONSync=rt.outputJsonSync;rt.writeJSON=rt.writeJson;rt.writeJSONSync=rt.writeJsonSync;rt.readJSON=rt.readJson;rt.readJSONSync=rt.readJsonSync;var Yd=rt;const Qd=it,ms=Re.default,eh=Ls.copy,du=Ri.remove,th=Mt.mkdirp,rh=Tr.pathExists,$a=Qr;function nh(e,t,r,n){typeof r=="function"&&(n=r,r={}),r=r||{};const i=r.overwrite||r.clobber||!1;$a.checkPaths(e,t,"move",r,(s,o)=>{if(s)return n(s);const{srcStat:c,isChangingCase:u=!1}=o;$a.checkParentPaths(e,c,t,"move",p=>{if(p)return n(p);if(ih(t))return _a(e,t,i,u,n);th(ms.dirname(t),a=>a?n(a):_a(e,t,i,u,n))})})}function ih(e){const t=ms.dirname(e);return ms.parse(t).root===t}function _a(e,t,r,n,i){if(n)return Yi(e,t,r,i);if(r)return du(t,s=>s?i(s):Yi(e,t,r,i));rh(t,(s,o)=>s?i(s):o?i(new Error("dest already exists.")):Yi(e,t,r,i))}function Yi(e,t,r,n){Qd.rename(e,t,i=>i?i.code!=="EXDEV"?n(i):sh(e,t,r,n):n())}function sh(e,t,r,n){eh(e,t,{overwrite:r,errorOnExist:!0},s=>s?n(s):du(e,n))}var oh=nh;const hu=it,ps=Re.default,ah=Ls.copySync,mu=Ri.removeSync,ch=Mt.mkdirpSync,Sa=Qr;function uh(e,t,r){r=r||{};const n=r.overwrite||r.clobber||!1,{srcStat:i,isChangingCase:s=!1}=Sa.checkPathsSync(e,t,"move",r);return Sa.checkParentPathsSync(e,i,t,"move"),fh(t)||ch(ps.dirname(t)),lh(e,t,n,s)}function fh(e){const t=ps.dirname(e);return ps.parse(t).root===t}function lh(e,t,r,n){if(n)return Qi(e,t,r);if(r)return mu(t),Qi(e,t,r);if(hu.existsSync(t))throw new Error("dest already exists.");return Qi(e,t,r)}function Qi(e,t,r){try{hu.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return dh(e,t,r)}}function dh(e,t,r){return ah(e,t,{overwrite:r,errorOnExist:!0}),mu(e)}var hh=uh;const mh=nt.fromCallback;var ph={move:mh(oh),moveSync:hh},vt={...Or,...Ls,...Ql,...Td,...Yd,...Mt,...ph,...Ms,...Tr,...Ri},ys={exports:{}},yh=e=>{const t=typeof e;return e!==null&&(t==="object"||t==="function")};const dr=yh,Eh=new Set(["__proto__","prototype","constructor"]),vh=e=>!e.some(t=>Eh.has(t));function Hn(e){const t=e.split("."),r=[];for(let n=0;n<t.length;n++){let i=t[n];for(;i[i.length-1]==="\\"&&t[n+1]!==void 0;)i=i.slice(0,-1)+".",i+=t[++n];r.push(i)}return vh(r)?r:[]}var gh={get(e,t,r){if(!dr(e)||typeof t!="string")return r===void 0?e:r;const n=Hn(t);if(n.length!==0){for(let i=0;i<n.length;i++)if(e=e[n[i]],e==null){if(i!==n.length-1)return r;break}return e===void 0?r:e}},set(e,t,r){if(!dr(e)||typeof t!="string")return e;const n=e,i=Hn(t);for(let s=0;s<i.length;s++){const o=i[s];dr(e[o])||(e[o]={}),s===i.length-1&&(e[o]=r),e=e[o]}return n},delete(e,t){if(!dr(e)||typeof t!="string")return!1;const r=Hn(t);for(let n=0;n<r.length;n++){const i=r[n];if(n===r.length-1)return delete e[i],!0;if(e=e[i],!dr(e))return!1}},has(e,t){if(!dr(e)||typeof t!="string")return!1;const r=Hn(t);if(r.length===0)return!1;for(let n=0;n<r.length;n++)if(dr(e)){if(!(r[n]in e))return!1;e=e[r[n]]}else return!1;return!0}},ks={exports:{}},Us={exports:{}},zs={exports:{}},xs={exports:{}};const pu=Yr.default;xs.exports=e=>new Promise(t=>{pu.access(e,r=>{t(!r)})});xs.exports.sync=e=>{try{return pu.accessSync(e),!0}catch{return!1}};var Vs={exports:{}},qs={exports:{}};const yu=(e,...t)=>new Promise(r=>{r(e(...t))});qs.exports=yu;qs.exports.default=yu;const $h=qs.exports,Eu=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));const t=[];let r=0;const n=()=>{r--,t.length>0&&t.shift()()},i=(c,u,...p)=>{r++;const a=$h(c,...p);u(a),a.then(n,n)},s=(c,u,...p)=>{r<e?i(c,u,...p):t.push(i.bind(null,c,u,...p))},o=(c,...u)=>new Promise(p=>s(c,p,...u));return Object.defineProperties(o,{activeCount:{get:()=>r},pendingCount:{get:()=>t.length},clearQueue:{value:()=>{t.length=0}}}),o};Vs.exports=Eu;Vs.exports.default=Eu;const wa=Vs.exports;class vu extends Error{constructor(t){super(),this.value=t}}const _h=(e,t)=>Promise.resolve(e).then(t),Sh=e=>Promise.all(e).then(t=>t[1]===!0&&Promise.reject(new vu(t[0])));var wh=(e,t,r)=>{r=Object.assign({concurrency:1/0,preserveOrder:!0},r);const n=wa(r.concurrency),i=[...e].map(o=>[o,n(_h,o,t)]),s=wa(r.preserveOrder?1:1/0);return Promise.all(i.map(o=>s(Sh,o))).then(()=>{}).catch(o=>o instanceof vu?o.value:Promise.reject(o))};const gu=Re.default,$u=xs.exports,Nh=wh;zs.exports=(e,t)=>(t=Object.assign({cwd:process.cwd()},t),Nh(e,r=>$u(gu.resolve(t.cwd,r)),t));zs.exports.sync=(e,t)=>{t=Object.assign({cwd:process.cwd()},t);for(const r of e)if($u.sync(gu.resolve(t.cwd,r)))return r};const ir=Re.default,_u=zs.exports;Us.exports=(e,t={})=>{const r=ir.resolve(t.cwd||""),{root:n}=ir.parse(r),i=[].concat(e);return new Promise(s=>{(function o(c){_u(i,{cwd:c}).then(u=>{u?s(ir.join(c,u)):c===n?s(null):o(ir.dirname(c))})})(r)})};Us.exports.sync=(e,t={})=>{let r=ir.resolve(t.cwd||"");const{root:n}=ir.parse(r),i=[].concat(e);for(;;){const s=_u.sync(i,{cwd:r});if(s)return ir.join(r,s);if(r===n)return null;r=ir.dirname(r)}};const Su=Us.exports;ks.exports=async({cwd:e}={})=>Su("package.json",{cwd:e});ks.exports.sync=({cwd:e}={})=>Su.sync("package.json",{cwd:e});var Gs={exports:{}};const De=Re.default,wu=kf.default,Yt=wu.homedir(),Bs=wu.tmpdir(),{env:kr}=process,Ih=e=>{const t=De.join(Yt,"Library");return{data:De.join(t,"Application Support",e),config:De.join(t,"Preferences",e),cache:De.join(t,"Caches",e),log:De.join(t,"Logs",e),temp:De.join(Bs,e)}},Oh=e=>{const t=kr.APPDATA||De.join(Yt,"AppData","Roaming"),r=kr.LOCALAPPDATA||De.join(Yt,"AppData","Local");return{data:De.join(r,e,"Data"),config:De.join(t,e,"Config"),cache:De.join(r,e,"Cache"),log:De.join(r,e,"Log"),temp:De.join(Bs,e)}},Th=e=>{const t=De.basename(Yt);return{data:De.join(kr.XDG_DATA_HOME||De.join(Yt,".local","share"),e),config:De.join(kr.XDG_CONFIG_HOME||De.join(Yt,".config"),e),cache:De.join(kr.XDG_CACHE_HOME||De.join(Yt,".cache"),e),log:De.join(kr.XDG_STATE_HOME||De.join(Yt,".local","state"),e),temp:De.join(Bs,t,e)}},Nu=(e,t)=>{if(typeof e!="string")throw new TypeError(`Expected string, got ${typeof e}`);return t=Object.assign({suffix:"nodejs"},t),t.suffix&&(e+=`-${t.suffix}`),process.platform==="darwin"?Ih(e):process.platform==="win32"?Oh(e):Th(e)};Gs.exports=Nu;Gs.exports.default=Nu;var jt={},ye={};Object.defineProperty(ye,"__esModule",{value:!0});ye.NOOP=ye.LIMIT_FILES_DESCRIPTORS=ye.LIMIT_BASENAME_LENGTH=ye.IS_USER_ROOT=ye.IS_POSIX=ye.DEFAULT_TIMEOUT_SYNC=ye.DEFAULT_TIMEOUT_ASYNC=ye.DEFAULT_WRITE_OPTIONS=ye.DEFAULT_READ_OPTIONS=ye.DEFAULT_FOLDER_MODE=ye.DEFAULT_FILE_MODE=ye.DEFAULT_ENCODING=void 0;const Dh="utf8";ye.DEFAULT_ENCODING=Dh;const Rh=438;ye.DEFAULT_FILE_MODE=Rh;const Ch=511;ye.DEFAULT_FOLDER_MODE=Ch;const Ph={};ye.DEFAULT_READ_OPTIONS=Ph;const Ah={};ye.DEFAULT_WRITE_OPTIONS=Ah;const bh=5e3;ye.DEFAULT_TIMEOUT_ASYNC=bh;const Lh=100;ye.DEFAULT_TIMEOUT_SYNC=Lh;const Fh=!!process.getuid;ye.IS_POSIX=Fh;const jh=process.getuid?!process.getuid():!1;ye.IS_USER_ROOT=jh;const Mh=128;ye.LIMIT_BASENAME_LENGTH=Mh;const kh=1e4;ye.LIMIT_FILES_DESCRIPTORS=kh;const Uh=()=>{};ye.NOOP=Uh;var Pi={},Xr={};Object.defineProperty(Xr,"__esModule",{value:!0});Xr.attemptifySync=Xr.attemptifyAsync=void 0;const Iu=ye,zh=(e,t=Iu.NOOP)=>function(){return e.apply(void 0,arguments).catch(t)};Xr.attemptifyAsync=zh;const xh=(e,t=Iu.NOOP)=>function(){try{return e.apply(void 0,arguments)}catch(r){return t(r)}};Xr.attemptifySync=xh;var Hs={};Object.defineProperty(Hs,"__esModule",{value:!0});const Vh=ye,Ou={isChangeErrorOk:e=>{const{code:t}=e;return t==="ENOSYS"||!Vh.IS_USER_ROOT&&(t==="EINVAL"||t==="EPERM")},isRetriableError:e=>{const{code:t}=e;return t==="EMFILE"||t==="ENFILE"||t==="EAGAIN"||t==="EBUSY"||t==="EACCESS"||t==="EACCS"||t==="EPERM"},onChangeError:e=>{if(!Ou.isChangeErrorOk(e))throw e}};Hs.default=Ou;var Zr={},Ks={};Object.defineProperty(Ks,"__esModule",{value:!0});const qh=ye,_e={interval:25,intervalId:void 0,limit:qh.LIMIT_FILES_DESCRIPTORS,queueActive:new Set,queueWaiting:new Set,init:()=>{_e.intervalId||(_e.intervalId=setInterval(_e.tick,_e.interval))},reset:()=>{!_e.intervalId||(clearInterval(_e.intervalId),delete _e.intervalId)},add:e=>{_e.queueWaiting.add(e),_e.queueActive.size<_e.limit/2?_e.tick():_e.init()},remove:e=>{_e.queueWaiting.delete(e),_e.queueActive.delete(e)},schedule:()=>new Promise(e=>{const t=()=>_e.remove(r),r=()=>e(t);_e.add(r)}),tick:()=>{if(!(_e.queueActive.size>=_e.limit)){if(!_e.queueWaiting.size)return _e.reset();for(const e of _e.queueWaiting){if(_e.queueActive.size>=_e.limit)break;_e.queueWaiting.delete(e),_e.queueActive.add(e),e()}}}};Ks.default=_e;Object.defineProperty(Zr,"__esModule",{value:!0});Zr.retryifySync=Zr.retryifyAsync=void 0;const Gh=Ks,Bh=(e,t)=>function(r){return function n(){return Gh.default.schedule().then(i=>e.apply(void 0,arguments).then(s=>(i(),s),s=>{if(i(),Date.now()>=r)throw s;if(t(s)){const o=Math.round(100+400*Math.random());return new Promise(u=>setTimeout(u,o)).then(()=>n.apply(void 0,arguments))}throw s}))}};Zr.retryifyAsync=Bh;const Hh=(e,t)=>function(r){return function n(){try{return e.apply(void 0,arguments)}catch(i){if(Date.now()>r)throw i;if(t(i))return n.apply(void 0,arguments);throw i}}};Zr.retryifySync=Hh;Object.defineProperty(Pi,"__esModule",{value:!0});const Ee=Yr.default,Qe=Oi.default,et=Xr,ke=Hs,at=Zr,Kh={chmodAttempt:et.attemptifyAsync(Qe.promisify(Ee.chmod),ke.default.onChangeError),chownAttempt:et.attemptifyAsync(Qe.promisify(Ee.chown),ke.default.onChangeError),closeAttempt:et.attemptifyAsync(Qe.promisify(Ee.close)),fsyncAttempt:et.attemptifyAsync(Qe.promisify(Ee.fsync)),mkdirAttempt:et.attemptifyAsync(Qe.promisify(Ee.mkdir)),realpathAttempt:et.attemptifyAsync(Qe.promisify(Ee.realpath)),statAttempt:et.attemptifyAsync(Qe.promisify(Ee.stat)),unlinkAttempt:et.attemptifyAsync(Qe.promisify(Ee.unlink)),closeRetry:at.retryifyAsync(Qe.promisify(Ee.close),ke.default.isRetriableError),fsyncRetry:at.retryifyAsync(Qe.promisify(Ee.fsync),ke.default.isRetriableError),openRetry:at.retryifyAsync(Qe.promisify(Ee.open),ke.default.isRetriableError),readFileRetry:at.retryifyAsync(Qe.promisify(Ee.readFile),ke.default.isRetriableError),renameRetry:at.retryifyAsync(Qe.promisify(Ee.rename),ke.default.isRetriableError),statRetry:at.retryifyAsync(Qe.promisify(Ee.stat),ke.default.isRetriableError),writeRetry:at.retryifyAsync(Qe.promisify(Ee.write),ke.default.isRetriableError),chmodSyncAttempt:et.attemptifySync(Ee.chmodSync,ke.default.onChangeError),chownSyncAttempt:et.attemptifySync(Ee.chownSync,ke.default.onChangeError),closeSyncAttempt:et.attemptifySync(Ee.closeSync),mkdirSyncAttempt:et.attemptifySync(Ee.mkdirSync),realpathSyncAttempt:et.attemptifySync(Ee.realpathSync),statSyncAttempt:et.attemptifySync(Ee.statSync),unlinkSyncAttempt:et.attemptifySync(Ee.unlinkSync),closeSyncRetry:at.retryifySync(Ee.closeSync,ke.default.isRetriableError),fsyncSyncRetry:at.retryifySync(Ee.fsyncSync,ke.default.isRetriableError),openSyncRetry:at.retryifySync(Ee.openSync,ke.default.isRetriableError),readFileSyncRetry:at.retryifySync(Ee.readFileSync,ke.default.isRetriableError),renameSyncRetry:at.retryifySync(Ee.renameSync,ke.default.isRetriableError),statSyncRetry:at.retryifySync(Ee.statSync,ke.default.isRetriableError),writeSyncRetry:at.retryifySync(Ee.writeSync,ke.default.isRetriableError)};Pi.default=Kh;var Ws={};Object.defineProperty(Ws,"__esModule",{value:!0});const Wh={isFunction:e=>typeof e=="function",isString:e=>typeof e=="string",isUndefined:e=>typeof e>"u"};Ws.default=Wh;var Xs={};Object.defineProperty(Xs,"__esModule",{value:!0});const Kn={},Es={next:e=>{const t=Kn[e];if(!t)return;t.shift();const r=t[0];r?r(()=>Es.next(e)):delete Kn[e]},schedule:e=>new Promise(t=>{let r=Kn[e];r||(r=Kn[e]=[]),r.push(t),!(r.length>1)&&t(()=>Es.next(e))})};Xs.default=Es;var Zs={};Object.defineProperty(Zs,"__esModule",{value:!0});const Xh=Re.default,Na=ye,Ia=Pi,ht={store:{},create:e=>{const t=`000000${Math.floor(Math.random()*16777215).toString(16)}`.slice(-6),r=Date.now().toString().slice(-10),n="tmp-",i=`.${n}${r}${t}`;return`${e}${i}`},get:(e,t,r=!0)=>{const n=ht.truncate(t(e));return n in ht.store?ht.get(e,t,r):(ht.store[n]=r,[n,()=>delete ht.store[n]])},purge:e=>{!ht.store[e]||(delete ht.store[e],Ia.default.unlinkAttempt(e))},purgeSync:e=>{!ht.store[e]||(delete ht.store[e],Ia.default.unlinkSyncAttempt(e))},purgeSyncAll:()=>{for(const e in ht.store)ht.purgeSync(e)},truncate:e=>{const t=Xh.basename(e);if(t.length<=Na.LIMIT_BASENAME_LENGTH)return e;const r=/^(\.?)(.*?)((?:\.[^.]+)?(?:\.tmp-\d{10}[a-f0-9]{6})?)$/.exec(t);if(!r)return e;const n=t.length-Na.LIMIT_BASENAME_LENGTH;return`${e.slice(0,-t.length)}${r[1]}${r[2].slice(0,-n)}${r[3]}`}};process.on("exit",ht.purgeSyncAll);Zs.default=ht;Object.defineProperty(jt,"__esModule",{value:!0});jt.writeFileSync=jt.writeFile=jt.readFileSync=jt.readFile=void 0;const Tu=Re.default,Be=ye,pe=Pi,mt=Ws,Zh=Xs,sr=Zs;function Du(e,t=Be.DEFAULT_READ_OPTIONS){var r;if(mt.default.isString(t))return Du(e,{encoding:t});const n=Date.now()+((r=t.timeout)!==null&&r!==void 0?r:Be.DEFAULT_TIMEOUT_ASYNC);return pe.default.readFileRetry(n)(e,t)}jt.readFile=Du;function Ru(e,t=Be.DEFAULT_READ_OPTIONS){var r;if(mt.default.isString(t))return Ru(e,{encoding:t});const n=Date.now()+((r=t.timeout)!==null&&r!==void 0?r:Be.DEFAULT_TIMEOUT_SYNC);return pe.default.readFileSyncRetry(n)(e,t)}jt.readFileSync=Ru;const Cu=(e,t,r,n)=>{if(mt.default.isFunction(r))return Cu(e,t,Be.DEFAULT_WRITE_OPTIONS,r);const i=Pu(e,t,r);return n&&i.then(n,n),i};jt.writeFile=Cu;const Pu=async(e,t,r=Be.DEFAULT_WRITE_OPTIONS)=>{var n;if(mt.default.isString(r))return Pu(e,t,{encoding:r});const i=Date.now()+((n=r.timeout)!==null&&n!==void 0?n:Be.DEFAULT_TIMEOUT_ASYNC);let s=null,o=null,c=null,u=null,p=null;try{r.schedule&&(s=await r.schedule(e)),o=await Zh.default.schedule(e),e=await pe.default.realpathAttempt(e)||e,[u,c]=sr.default.get(e,r.tmpCreate||sr.default.create,r.tmpPurge!==!1);const a=Be.IS_POSIX&&mt.default.isUndefined(r.chown),l=mt.default.isUndefined(r.mode);if(a||l){const d=await pe.default.statAttempt(e);d&&(r={...r},a&&(r.chown={uid:d.uid,gid:d.gid}),l&&(r.mode=d.mode))}const y=Tu.dirname(e);await pe.default.mkdirAttempt(y,{mode:Be.DEFAULT_FOLDER_MODE,recursive:!0}),p=await pe.default.openRetry(i)(u,"w",r.mode||Be.DEFAULT_FILE_MODE),r.tmpCreated&&r.tmpCreated(u),mt.default.isString(t)?await pe.default.writeRetry(i)(p,t,0,r.encoding||Be.DEFAULT_ENCODING):mt.default.isUndefined(t)||await pe.default.writeRetry(i)(p,t,0,t.length,0),r.fsync!==!1&&(r.fsyncWait!==!1?await pe.default.fsyncRetry(i)(p):pe.default.fsyncAttempt(p)),await pe.default.closeRetry(i)(p),p=null,r.chown&&await pe.default.chownAttempt(u,r.chown.uid,r.chown.gid),r.mode&&await pe.default.chmodAttempt(u,r.mode);try{await pe.default.renameRetry(i)(u,e)}catch(d){if(d.code!=="ENAMETOOLONG")throw d;await pe.default.renameRetry(i)(u,sr.default.truncate(e))}c(),u=null}finally{p&&await pe.default.closeAttempt(p),u&&sr.default.purge(u),s&&s(),o&&o()}},Au=(e,t,r=Be.DEFAULT_WRITE_OPTIONS)=>{var n;if(mt.default.isString(r))return Au(e,t,{encoding:r});const i=Date.now()+((n=r.timeout)!==null&&n!==void 0?n:Be.DEFAULT_TIMEOUT_SYNC);let s=null,o=null,c=null;try{e=pe.default.realpathSyncAttempt(e)||e,[o,s]=sr.default.get(e,r.tmpCreate||sr.default.create,r.tmpPurge!==!1);const u=Be.IS_POSIX&&mt.default.isUndefined(r.chown),p=mt.default.isUndefined(r.mode);if(u||p){const l=pe.default.statSyncAttempt(e);l&&(r={...r},u&&(r.chown={uid:l.uid,gid:l.gid}),p&&(r.mode=l.mode))}const a=Tu.dirname(e);pe.default.mkdirSyncAttempt(a,{mode:Be.DEFAULT_FOLDER_MODE,recursive:!0}),c=pe.default.openSyncRetry(i)(o,"w",r.mode||Be.DEFAULT_FILE_MODE),r.tmpCreated&&r.tmpCreated(o),mt.default.isString(t)?pe.default.writeSyncRetry(i)(c,t,0,r.encoding||Be.DEFAULT_ENCODING):mt.default.isUndefined(t)||pe.default.writeSyncRetry(i)(c,t,0,t.length,0),r.fsync!==!1&&(r.fsyncWait!==!1?pe.default.fsyncSyncRetry(i)(c):pe.default.fsyncAttempt(c)),pe.default.closeSyncRetry(i)(c),c=null,r.chown&&pe.default.chownSyncAttempt(o,r.chown.uid,r.chown.gid),r.mode&&pe.default.chmodSyncAttempt(o,r.mode);try{pe.default.renameSyncRetry(i)(o,e)}catch(l){if(l.code!=="ENAMETOOLONG")throw l;pe.default.renameSyncRetry(i)(o,sr.default.truncate(e))}s(),o=null}finally{c&&pe.default.closeSyncAttempt(c),o&&sr.default.purge(o)}};jt.writeFileSync=Au;var Ei={exports:{}},bu={},zt={},hr={},Mn={},oe={},Dn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor($){if(super(),!e.IDENTIFIER.test($))throw new Error("CodeGen: name must be a valid identifier");this.str=$}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor($){super(),this._items=typeof $=="string"?[$]:$}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const $=this._items[0];return $===""||$==='""'}get str(){var $;return($=this._str)!==null&&$!==void 0?$:this._str=this._items.reduce((_,O)=>`${_}${O}`,"")}get names(){var $;return($=this._names)!==null&&$!==void 0?$:this._names=this._items.reduce((_,O)=>(O instanceof r&&(_[O.str]=(_[O.str]||0)+1),_),{})}}e._Code=n,e.nil=new n("");function i(f,...$){const _=[f[0]];let O=0;for(;O<$.length;)c(_,$[O]),_.push(f[++O]);return new n(_)}e._=i;const s=new n("+");function o(f,...$){const _=[d(f[0])];let O=0;for(;O<$.length;)_.push(s),c(_,$[O]),_.push(s,d(f[++O]));return u(_),new n(_)}e.str=o;function c(f,$){$ instanceof n?f.push(...$._items):$ instanceof r?f.push($):f.push(l($))}e.addCodeArg=c;function u(f){let $=1;for(;$<f.length-1;){if(f[$]===s){const _=p(f[$-1],f[$+1]);if(_!==void 0){f.splice($-1,3,_);continue}f[$++]="+"}$++}}function p(f,$){if($==='""')return f;if(f==='""')return $;if(typeof f=="string")return $ instanceof r||f[f.length-1]!=='"'?void 0:typeof $!="string"?`${f.slice(0,-1)}${$}"`:$[0]==='"'?f.slice(0,-1)+$.slice(1):void 0;if(typeof $=="string"&&$[0]==='"'&&!(f instanceof r))return`"${f}${$.slice(1)}`}function a(f,$){return $.emptyStr()?f:f.emptyStr()?$:o`${f}${$}`}e.strConcat=a;function l(f){return typeof f=="number"||typeof f=="boolean"||f===null?f:d(Array.isArray(f)?f.join(","):f)}function y(f){return new n(d(f))}e.stringify=y;function d(f){return JSON.stringify(f).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=d;function h(f){return typeof f=="string"&&e.IDENTIFIER.test(f)?new n(`.${f}`):i`[${f}]`}e.getProperty=h;function m(f){if(typeof f=="string"&&e.IDENTIFIER.test(f))return new n(`${f}`);throw new Error(`CodeGen: invalid export name: ${f}, use explicit $id name mapping`)}e.getEsmExportName=m;function E(f){return new n(f.toString())}e.regexpCode=E})(Dn);var vs={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Dn;class r extends Error{constructor(p){super(`CodeGen: "code" for ${p} not defined`),this.value=p.value}}var n;(function(u){u[u.Started=0]="Started",u[u.Completed=1]="Completed"})(n=e.UsedValueState||(e.UsedValueState={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class i{constructor({prefixes:p,parent:a}={}){this._names={},this._prefixes=p,this._parent=a}toName(p){return p instanceof t.Name?p:this.name(p)}name(p){return new t.Name(this._newName(p))}_newName(p){const a=this._names[p]||this._nameGroup(p);return`${p}${a.index++}`}_nameGroup(p){var a,l;if(((l=(a=this._parent)===null||a===void 0?void 0:a._prefixes)===null||l===void 0?void 0:l.has(p))||this._prefixes&&!this._prefixes.has(p))throw new Error(`CodeGen: prefix "${p}" is not allowed in this scope`);return this._names[p]={prefix:p,index:0}}}e.Scope=i;class s extends t.Name{constructor(p,a){super(a),this.prefix=p}setValue(p,{property:a,itemIndex:l}){this.value=p,this.scopePath=(0,t._)`.${new t.Name(a)}[${l}]`}}e.ValueScopeName=s;const o=(0,t._)`\n`;class c extends i{constructor(p){super(p),this._values={},this._scope=p.scope,this.opts={...p,_n:p.lines?o:t.nil}}get(){return this._scope}name(p){return new s(p,this._newName(p))}value(p,a){var l;if(a.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const y=this.toName(p),{prefix:d}=y,h=(l=a.key)!==null&&l!==void 0?l:a.ref;let m=this._values[d];if(m){const $=m.get(h);if($)return $}else m=this._values[d]=new Map;m.set(h,y);const E=this._scope[d]||(this._scope[d]=[]),f=E.length;return E[f]=a.ref,y.setValue(a,{property:d,itemIndex:f}),y}getValue(p,a){const l=this._values[p];if(!!l)return l.get(a)}scopeRefs(p,a=this._values){return this._reduceValues(a,l=>{if(l.scopePath===void 0)throw new Error(`CodeGen: name "${l}" has no value`);return(0,t._)`${p}${l.scopePath}`})}scopeCode(p=this._values,a,l){return this._reduceValues(p,y=>{if(y.value===void 0)throw new Error(`CodeGen: name "${y}" has no value`);return y.value.code},a,l)}_reduceValues(p,a,l={},y){let d=t.nil;for(const h in p){const m=p[h];if(!m)continue;const E=l[h]=l[h]||new Map;m.forEach(f=>{if(E.has(f))return;E.set(f,n.Started);let $=a(f);if($){const _=this.opts.es5?e.varKinds.var:e.varKinds.const;d=(0,t._)`${d}${_} ${f} = ${$};${this.opts._n}`}else if($=y==null?void 0:y(f))d=(0,t._)`${d}${$}${this.opts._n}`;else throw new r(f);E.set(f,n.Completed)})}return d}}e.ValueScope=c})(vs);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=Dn,r=vs;var n=Dn;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var i=vs;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class s{optimizeNodes(){return this}optimizeNames(v,S){return this}}class o extends s{constructor(v,S,x){super(),this.varKind=v,this.name=S,this.rhs=x}render({es5:v,_n:S}){const x=v?r.varKinds.var:this.varKind,Y=this.rhs===void 0?"":` = ${this.rhs}`;return`${x} ${this.name}${Y};`+S}optimizeNames(v,S){if(!!v[this.name.str])return this.rhs&&(this.rhs=B(this.rhs,v,S)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class c extends s{constructor(v,S,x){super(),this.lhs=v,this.rhs=S,this.sideEffects=x}render({_n:v}){return`${this.lhs} = ${this.rhs};`+v}optimizeNames(v,S){if(!(this.lhs instanceof t.Name&&!v[this.lhs.str]&&!this.sideEffects))return this.rhs=B(this.rhs,v,S),this}get names(){const v=this.lhs instanceof t.Name?{}:{...this.lhs.names};return K(v,this.rhs)}}class u extends c{constructor(v,S,x,Y){super(v,x,Y),this.op=S}render({_n:v}){return`${this.lhs} ${this.op}= ${this.rhs};`+v}}class p extends s{constructor(v){super(),this.label=v,this.names={}}render({_n:v}){return`${this.label}:`+v}}class a extends s{constructor(v){super(),this.label=v,this.names={}}render({_n:v}){return`break${this.label?` ${this.label}`:""};`+v}}class l extends s{constructor(v){super(),this.error=v}render({_n:v}){return`throw ${this.error};`+v}get names(){return this.error.names}}class y extends s{constructor(v){super(),this.code=v}render({_n:v}){return`${this.code};`+v}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(v,S){return this.code=B(this.code,v,S),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class d extends s{constructor(v=[]){super(),this.nodes=v}render(v){return this.nodes.reduce((S,x)=>S+x.render(v),"")}optimizeNodes(){const{nodes:v}=this;let S=v.length;for(;S--;){const x=v[S].optimizeNodes();Array.isArray(x)?v.splice(S,1,...x):x?v[S]=x:v.splice(S,1)}return v.length>0?this:void 0}optimizeNames(v,S){const{nodes:x}=this;let Y=x.length;for(;Y--;){const Q=x[Y];Q.optimizeNames(v,S)||(X(v,Q.names),x.splice(Y,1))}return x.length>0?this:void 0}get names(){return this.nodes.reduce((v,S)=>b(v,S.names),{})}}class h extends d{render(v){return"{"+v._n+super.render(v)+"}"+v._n}}class m extends d{}class E extends h{}E.kind="else";class f extends h{constructor(v,S){super(S),this.condition=v}render(v){let S=`if(${this.condition})`+super.render(v);return this.else&&(S+="else "+this.else.render(v)),S}optimizeNodes(){super.optimizeNodes();const v=this.condition;if(v===!0)return this.nodes;let S=this.else;if(S){const x=S.optimizeNodes();S=this.else=Array.isArray(x)?new E(x):x}if(S)return v===!1?S instanceof f?S:S.nodes:this.nodes.length?this:new f(Z(v),S instanceof f?[S]:S.nodes);if(!(v===!1||!this.nodes.length))return this}optimizeNames(v,S){var x;if(this.else=(x=this.else)===null||x===void 0?void 0:x.optimizeNames(v,S),!!(super.optimizeNames(v,S)||this.else))return this.condition=B(this.condition,v,S),this}get names(){const v=super.names;return K(v,this.condition),this.else&&b(v,this.else.names),v}}f.kind="if";class $ extends h{}$.kind="for";class _ extends ${constructor(v){super(),this.iteration=v}render(v){return`for(${this.iteration})`+super.render(v)}optimizeNames(v,S){if(!!super.optimizeNames(v,S))return this.iteration=B(this.iteration,v,S),this}get names(){return b(super.names,this.iteration.names)}}class O extends ${constructor(v,S,x,Y){super(),this.varKind=v,this.name=S,this.from=x,this.to=Y}render(v){const S=v.es5?r.varKinds.var:this.varKind,{name:x,from:Y,to:Q}=this;return`for(${S} ${x}=${Y}; ${x}<${Q}; ${x}++)`+super.render(v)}get names(){const v=K(super.names,this.from);return K(v,this.to)}}class q extends ${constructor(v,S,x,Y){super(),this.loop=v,this.varKind=S,this.name=x,this.iterable=Y}render(v){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(v)}optimizeNames(v,S){if(!!super.optimizeNames(v,S))return this.iterable=B(this.iterable,v,S),this}get names(){return b(super.names,this.iterable.names)}}class R extends h{constructor(v,S,x){super(),this.name=v,this.args=S,this.async=x}render(v){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(v)}}R.kind="func";class C extends d{render(v){return"return "+super.render(v)}}C.kind="return";class V extends h{render(v){let S="try"+super.render(v);return this.catch&&(S+=this.catch.render(v)),this.finally&&(S+=this.finally.render(v)),S}optimizeNodes(){var v,S;return super.optimizeNodes(),(v=this.catch)===null||v===void 0||v.optimizeNodes(),(S=this.finally)===null||S===void 0||S.optimizeNodes(),this}optimizeNames(v,S){var x,Y;return super.optimizeNames(v,S),(x=this.catch)===null||x===void 0||x.optimizeNames(v,S),(Y=this.finally)===null||Y===void 0||Y.optimizeNames(v,S),this}get names(){const v=super.names;return this.catch&&b(v,this.catch.names),this.finally&&b(v,this.finally.names),v}}class L extends h{constructor(v){super(),this.error=v}render(v){return`catch(${this.error})`+super.render(v)}}L.kind="catch";class G extends h{render(v){return"finally"+super.render(v)}}G.kind="finally";class j{constructor(v,S={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...S,_n:S.lines?`
8
+ `:""},this._extScope=v,this._scope=new r.Scope({parent:v}),this._nodes=[new m]}toString(){return this._root.render(this.opts)}name(v){return this._scope.name(v)}scopeName(v){return this._extScope.name(v)}scopeValue(v,S){const x=this._extScope.value(v,S);return(this._values[x.prefix]||(this._values[x.prefix]=new Set)).add(x),x}getScopeValue(v,S){return this._extScope.getValue(v,S)}scopeRefs(v){return this._extScope.scopeRefs(v,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(v,S,x,Y){const Q=this._scope.toName(S);return x!==void 0&&Y&&(this._constants[Q.str]=x),this._leafNode(new o(v,Q,x)),Q}const(v,S,x){return this._def(r.varKinds.const,v,S,x)}let(v,S,x){return this._def(r.varKinds.let,v,S,x)}var(v,S,x){return this._def(r.varKinds.var,v,S,x)}assign(v,S,x){return this._leafNode(new c(v,S,x))}add(v,S){return this._leafNode(new u(v,e.operators.ADD,S))}code(v){return typeof v=="function"?v():v!==t.nil&&this._leafNode(new y(v)),this}object(...v){const S=["{"];for(const[x,Y]of v)S.length>1&&S.push(","),S.push(x),(x!==Y||this.opts.es5)&&(S.push(":"),(0,t.addCodeArg)(S,Y));return S.push("}"),new t._Code(S)}if(v,S,x){if(this._blockNode(new f(v)),S&&x)this.code(S).else().code(x).endIf();else if(S)this.code(S).endIf();else if(x)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(v){return this._elseNode(new f(v))}else(){return this._elseNode(new E)}endIf(){return this._endBlockNode(f,E)}_for(v,S){return this._blockNode(v),S&&this.code(S).endFor(),this}for(v,S){return this._for(new _(v),S)}forRange(v,S,x,Y,Q=this.opts.es5?r.varKinds.var:r.varKinds.let){const ae=this._scope.toName(v);return this._for(new O(Q,ae,S,x),()=>Y(ae))}forOf(v,S,x,Y=r.varKinds.const){const Q=this._scope.toName(v);if(this.opts.es5){const ae=S instanceof t.Name?S:this.var("_arr",S);return this.forRange("_i",0,(0,t._)`${ae}.length`,D=>{this.var(Q,(0,t._)`${ae}[${D}]`),x(Q)})}return this._for(new q("of",Y,Q,S),()=>x(Q))}forIn(v,S,x,Y=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(v,(0,t._)`Object.keys(${S})`,x);const Q=this._scope.toName(v);return this._for(new q("in",Y,Q,S),()=>x(Q))}endFor(){return this._endBlockNode($)}label(v){return this._leafNode(new p(v))}break(v){return this._leafNode(new a(v))}return(v){const S=new C;if(this._blockNode(S),this.code(v),S.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(C)}try(v,S,x){if(!S&&!x)throw new Error('CodeGen: "try" without "catch" and "finally"');const Y=new V;if(this._blockNode(Y),this.code(v),S){const Q=this.name("e");this._currNode=Y.catch=new L(Q),S(Q)}return x&&(this._currNode=Y.finally=new G,this.code(x)),this._endBlockNode(L,G)}throw(v){return this._leafNode(new l(v))}block(v,S){return this._blockStarts.push(this._nodes.length),v&&this.code(v).endBlock(S),this}endBlock(v){const S=this._blockStarts.pop();if(S===void 0)throw new Error("CodeGen: not in self-balancing block");const x=this._nodes.length-S;if(x<0||v!==void 0&&x!==v)throw new Error(`CodeGen: wrong number of nodes: ${x} vs ${v} expected`);return this._nodes.length=S,this}func(v,S=t.nil,x,Y){return this._blockNode(new R(v,S,x)),Y&&this.code(Y).endFunc(),this}endFunc(){return this._endBlockNode(R)}optimize(v=1){for(;v-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(v){return this._currNode.nodes.push(v),this}_blockNode(v){this._currNode.nodes.push(v),this._nodes.push(v)}_endBlockNode(v,S){const x=this._currNode;if(x instanceof v||S&&x instanceof S)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${S?`${v.kind}/${S.kind}`:v.kind}"`)}_elseNode(v){const S=this._currNode;if(!(S instanceof f))throw new Error('CodeGen: "else" without "if"');return this._currNode=S.else=v,this}get _root(){return this._nodes[0]}get _currNode(){const v=this._nodes;return v[v.length-1]}set _currNode(v){const S=this._nodes;S[S.length-1]=v}}e.CodeGen=j;function b(P,v){for(const S in v)P[S]=(P[S]||0)+(v[S]||0);return P}function K(P,v){return v instanceof t._CodeOrName?b(P,v.names):P}function B(P,v,S){if(P instanceof t.Name)return x(P);if(!Y(P))return P;return new t._Code(P._items.reduce((Q,ae)=>(ae instanceof t.Name&&(ae=x(ae)),ae instanceof t._Code?Q.push(...ae._items):Q.push(ae),Q),[]));function x(Q){const ae=S[Q.str];return ae===void 0||v[Q.str]!==1?Q:(delete v[Q.str],ae)}function Y(Q){return Q instanceof t._Code&&Q._items.some(ae=>ae instanceof t.Name&&v[ae.str]===1&&S[ae.str]!==void 0)}}function X(P,v){for(const S in v)P[S]=(P[S]||0)-(v[S]||0)}function Z(P){return typeof P=="boolean"||typeof P=="number"||P===null?!P:(0,t._)`!${M(P)}`}e.not=Z;const W=I(e.operators.AND);function F(...P){return P.reduce(W)}e.and=F;const z=I(e.operators.OR);function T(...P){return P.reduce(z)}e.or=T;function I(P){return(v,S)=>v===t.nil?S:S===t.nil?v:(0,t._)`${M(v)} ${P} ${M(S)}`}function M(P){return P instanceof t.Name?P:(0,t._)`(${P})`}})(oe);var he={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=oe,r=Dn;function n(R){const C={};for(const V of R)C[V]=!0;return C}e.toHash=n;function i(R,C){return typeof C=="boolean"?C:Object.keys(C).length===0?!0:(s(R,C),!o(C,R.self.RULES.all))}e.alwaysValidSchema=i;function s(R,C=R.schema){const{opts:V,self:L}=R;if(!V.strictSchema||typeof C=="boolean")return;const G=L.RULES.keywords;for(const j in C)G[j]||q(R,`unknown keyword: "${j}"`)}e.checkUnknownRules=s;function o(R,C){if(typeof R=="boolean")return!R;for(const V in R)if(C[V])return!0;return!1}e.schemaHasRules=o;function c(R,C){if(typeof R=="boolean")return!R;for(const V in R)if(V!=="$ref"&&C.all[V])return!0;return!1}e.schemaHasRulesButRef=c;function u({topSchemaRef:R,schemaPath:C},V,L,G){if(!G){if(typeof V=="number"||typeof V=="boolean")return V;if(typeof V=="string")return(0,t._)`${V}`}return(0,t._)`${R}${C}${(0,t.getProperty)(L)}`}e.schemaRefOrVal=u;function p(R){return y(decodeURIComponent(R))}e.unescapeFragment=p;function a(R){return encodeURIComponent(l(R))}e.escapeFragment=a;function l(R){return typeof R=="number"?`${R}`:R.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=l;function y(R){return R.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=y;function d(R,C){if(Array.isArray(R))for(const V of R)C(V);else C(R)}e.eachItem=d;function h({mergeNames:R,mergeToName:C,mergeValues:V,resultToName:L}){return(G,j,b,K)=>{const B=b===void 0?j:b instanceof t.Name?(j instanceof t.Name?R(G,j,b):C(G,j,b),b):j instanceof t.Name?(C(G,b,j),j):V(j,b);return K===t.Name&&!(B instanceof t.Name)?L(G,B):B}}e.mergeEvaluated={props:h({mergeNames:(R,C,V)=>R.if((0,t._)`${V} !== true && ${C} !== undefined`,()=>{R.if((0,t._)`${C} === true`,()=>R.assign(V,!0),()=>R.assign(V,(0,t._)`${V} || {}`).code((0,t._)`Object.assign(${V}, ${C})`))}),mergeToName:(R,C,V)=>R.if((0,t._)`${V} !== true`,()=>{C===!0?R.assign(V,!0):(R.assign(V,(0,t._)`${V} || {}`),E(R,V,C))}),mergeValues:(R,C)=>R===!0?!0:{...R,...C},resultToName:m}),items:h({mergeNames:(R,C,V)=>R.if((0,t._)`${V} !== true && ${C} !== undefined`,()=>R.assign(V,(0,t._)`${C} === true ? true : ${V} > ${C} ? ${V} : ${C}`)),mergeToName:(R,C,V)=>R.if((0,t._)`${V} !== true`,()=>R.assign(V,C===!0?!0:(0,t._)`${V} > ${C} ? ${V} : ${C}`)),mergeValues:(R,C)=>R===!0?!0:Math.max(R,C),resultToName:(R,C)=>R.var("items",C)})};function m(R,C){if(C===!0)return R.var("props",!0);const V=R.var("props",(0,t._)`{}`);return C!==void 0&&E(R,V,C),V}e.evaluatedPropsToName=m;function E(R,C,V){Object.keys(V).forEach(L=>R.assign((0,t._)`${C}${(0,t.getProperty)(L)}`,!0))}e.setEvaluated=E;const f={};function $(R,C){return R.scopeValue("func",{ref:C,code:f[C.code]||(f[C.code]=new r._Code(C.code))})}e.useFunc=$;var _;(function(R){R[R.Num=0]="Num",R[R.Str=1]="Str"})(_=e.Type||(e.Type={}));function O(R,C,V){if(R instanceof t.Name){const L=C===_.Num;return V?L?(0,t._)`"[" + ${R} + "]"`:(0,t._)`"['" + ${R} + "']"`:L?(0,t._)`"/" + ${R}`:(0,t._)`"/" + ${R}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return V?(0,t.getProperty)(R).toString():"/"+l(R)}e.getErrorPath=O;function q(R,C,V=R.opts.strictSchema){if(!!V){if(C=`strict mode: ${C}`,V===!0)throw new Error(C);R.self.logger.warn(C)}}e.checkStrictMode=q})(he);var kt={};Object.defineProperty(kt,"__esModule",{value:!0});const Ze=oe,Jh={data:new Ze.Name("data"),valCxt:new Ze.Name("valCxt"),instancePath:new Ze.Name("instancePath"),parentData:new Ze.Name("parentData"),parentDataProperty:new Ze.Name("parentDataProperty"),rootData:new Ze.Name("rootData"),dynamicAnchors:new Ze.Name("dynamicAnchors"),vErrors:new Ze.Name("vErrors"),errors:new Ze.Name("errors"),this:new Ze.Name("this"),self:new Ze.Name("self"),scope:new Ze.Name("scope"),json:new Ze.Name("json"),jsonPos:new Ze.Name("jsonPos"),jsonLen:new Ze.Name("jsonLen"),jsonPart:new Ze.Name("jsonPart")};kt.default=Jh;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=oe,r=he,n=kt;e.keywordError={message:({keyword:E})=>(0,t.str)`must pass "${E}" keyword validation`},e.keyword$DataError={message:({keyword:E,schemaType:f})=>f?(0,t.str)`"${E}" keyword must be ${f} ($data)`:(0,t.str)`"${E}" keyword is invalid ($data)`};function i(E,f=e.keywordError,$,_){const{it:O}=E,{gen:q,compositeRule:R,allErrors:C}=O,V=l(E,f,$);(_!=null?_:R||C)?u(q,V):p(O,(0,t._)`[${V}]`)}e.reportError=i;function s(E,f=e.keywordError,$){const{it:_}=E,{gen:O,compositeRule:q,allErrors:R}=_,C=l(E,f,$);u(O,C),q||R||p(_,n.default.vErrors)}e.reportExtraError=s;function o(E,f){E.assign(n.default.errors,f),E.if((0,t._)`${n.default.vErrors} !== null`,()=>E.if(f,()=>E.assign((0,t._)`${n.default.vErrors}.length`,f),()=>E.assign(n.default.vErrors,null)))}e.resetErrorsCount=o;function c({gen:E,keyword:f,schemaValue:$,data:_,errsCount:O,it:q}){if(O===void 0)throw new Error("ajv implementation error");const R=E.name("err");E.forRange("i",O,n.default.errors,C=>{E.const(R,(0,t._)`${n.default.vErrors}[${C}]`),E.if((0,t._)`${R}.instancePath === undefined`,()=>E.assign((0,t._)`${R}.instancePath`,(0,t.strConcat)(n.default.instancePath,q.errorPath))),E.assign((0,t._)`${R}.schemaPath`,(0,t.str)`${q.errSchemaPath}/${f}`),q.opts.verbose&&(E.assign((0,t._)`${R}.schema`,$),E.assign((0,t._)`${R}.data`,_))})}e.extendErrors=c;function u(E,f){const $=E.const("err",f);E.if((0,t._)`${n.default.vErrors} === null`,()=>E.assign(n.default.vErrors,(0,t._)`[${$}]`),(0,t._)`${n.default.vErrors}.push(${$})`),E.code((0,t._)`${n.default.errors}++`)}function p(E,f){const{gen:$,validateName:_,schemaEnv:O}=E;O.$async?$.throw((0,t._)`new ${E.ValidationError}(${f})`):($.assign((0,t._)`${_}.errors`,f),$.return(!1))}const a={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function l(E,f,$){const{createErrors:_}=E.it;return _===!1?(0,t._)`{}`:y(E,f,$)}function y(E,f,$={}){const{gen:_,it:O}=E,q=[d(O,$),h(E,$)];return m(E,f,q),_.object(...q)}function d({errorPath:E},{instancePath:f}){const $=f?(0,t.str)`${E}${(0,r.getErrorPath)(f,r.Type.Str)}`:E;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,$)]}function h({keyword:E,it:{errSchemaPath:f}},{schemaPath:$,parentSchema:_}){let O=_?f:(0,t.str)`${f}/${E}`;return $&&(O=(0,t.str)`${O}${(0,r.getErrorPath)($,r.Type.Str)}`),[a.schemaPath,O]}function m(E,{params:f,message:$},_){const{keyword:O,data:q,schemaValue:R,it:C}=E,{opts:V,propertyName:L,topSchemaRef:G,schemaPath:j}=C;_.push([a.keyword,O],[a.params,typeof f=="function"?f(E):f||(0,t._)`{}`]),V.messages&&_.push([a.message,typeof $=="function"?$(E):$]),V.verbose&&_.push([a.schema,R],[a.parentSchema,(0,t._)`${G}${j}`],[n.default.data,q]),L&&_.push([a.propertyName,L])}})(Mn);var Oa;function Yh(){if(Oa)return hr;Oa=1,Object.defineProperty(hr,"__esModule",{value:!0}),hr.boolOrEmptySchema=hr.topBoolOrEmptySchema=void 0;const e=Mn,t=oe,r=kt,n={message:"boolean schema is false"};function i(c){const{gen:u,schema:p,validateName:a}=c;p===!1?o(c,!1):typeof p=="object"&&p.$async===!0?u.return(r.default.data):(u.assign((0,t._)`${a}.errors`,null),u.return(!0))}hr.topBoolOrEmptySchema=i;function s(c,u){const{gen:p,schema:a}=c;a===!1?(p.var(u,!1),o(c)):p.var(u,!0)}hr.boolOrEmptySchema=s;function o(c,u){const{gen:p,data:a}=c,l={gen:p,keyword:"false schema",data:a,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:c};(0,e.reportError)(l,n,void 0,u)}return hr}var Rn={},wr={};Object.defineProperty(wr,"__esModule",{value:!0});wr.getRules=wr.isJSONType=void 0;const Qh=["string","number","integer","boolean","null","object","array"],em=new Set(Qh);function tm(e){return typeof e=="string"&&em.has(e)}wr.isJSONType=tm;function rm(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}wr.getRules=rm;var xt={},Ta;function Lu(){if(Ta)return xt;Ta=1,Object.defineProperty(xt,"__esModule",{value:!0}),xt.shouldUseRule=xt.shouldUseGroup=xt.schemaHasRulesForType=void 0;function e({schema:n,self:i},s){const o=i.RULES.types[s];return o&&o!==!0&&t(n,o)}xt.schemaHasRulesForType=e;function t(n,i){return i.rules.some(s=>r(n,s))}xt.shouldUseGroup=t;function r(n,i){var s;return n[i.keyword]!==void 0||((s=i.definition.implements)===null||s===void 0?void 0:s.some(o=>n[o]!==void 0))}return xt.shouldUseRule=r,xt}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=wr,r=Lu(),n=Mn,i=oe,s=he;var o;(function(_){_[_.Correct=0]="Correct",_[_.Wrong=1]="Wrong"})(o=e.DataType||(e.DataType={}));function c(_){const O=u(_.type);if(O.includes("null")){if(_.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!O.length&&_.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');_.nullable===!0&&O.push("null")}return O}e.getSchemaTypes=c;function u(_){const O=Array.isArray(_)?_:_?[_]:[];if(O.every(t.isJSONType))return O;throw new Error("type must be JSONType or JSONType[]: "+O.join(","))}e.getJSONTypes=u;function p(_,O){const{gen:q,data:R,opts:C}=_,V=l(O,C.coerceTypes),L=O.length>0&&!(V.length===0&&O.length===1&&(0,r.schemaHasRulesForType)(_,O[0]));if(L){const G=m(O,R,C.strictNumbers,o.Wrong);q.if(G,()=>{V.length?y(_,O,V):f(_)})}return L}e.coerceAndCheckDataType=p;const a=new Set(["string","number","integer","boolean","null"]);function l(_,O){return O?_.filter(q=>a.has(q)||O==="array"&&q==="array"):[]}function y(_,O,q){const{gen:R,data:C,opts:V}=_,L=R.let("dataType",(0,i._)`typeof ${C}`),G=R.let("coerced",(0,i._)`undefined`);V.coerceTypes==="array"&&R.if((0,i._)`${L} == 'object' && Array.isArray(${C}) && ${C}.length == 1`,()=>R.assign(C,(0,i._)`${C}[0]`).assign(L,(0,i._)`typeof ${C}`).if(m(O,C,V.strictNumbers),()=>R.assign(G,C))),R.if((0,i._)`${G} !== undefined`);for(const b of q)(a.has(b)||b==="array"&&V.coerceTypes==="array")&&j(b);R.else(),f(_),R.endIf(),R.if((0,i._)`${G} !== undefined`,()=>{R.assign(C,G),d(_,G)});function j(b){switch(b){case"string":R.elseIf((0,i._)`${L} == "number" || ${L} == "boolean"`).assign(G,(0,i._)`"" + ${C}`).elseIf((0,i._)`${C} === null`).assign(G,(0,i._)`""`);return;case"number":R.elseIf((0,i._)`${L} == "boolean" || ${C} === null
9
9
  || (${L} == "string" && ${C} && ${C} == +${C})`).assign(G,(0,i._)`+${C}`);return;case"integer":R.elseIf((0,i._)`${L} === "boolean" || ${C} === null
10
10
  || (${L} === "string" && ${C} && ${C} == +${C} && !(${C} % 1))`).assign(G,(0,i._)`+${C}`);return;case"boolean":R.elseIf((0,i._)`${C} === "false" || ${C} === 0 || ${C} === null`).assign(G,!1).elseIf((0,i._)`${C} === "true" || ${C} === 1`).assign(G,!0);return;case"null":R.elseIf((0,i._)`${C} === "" || ${C} === 0 || ${C} === false`),R.assign(G,null);return;case"array":R.elseIf((0,i._)`${L} === "string" || ${L} === "number"
11
- || ${L} === "boolean" || ${C} === null`).assign(G,(0,i._)`[${C}]`)}}}function d({gen:_,parentData:O,parentDataProperty:q},R){_.if((0,i._)`${O} !== undefined`,()=>_.assign((0,i._)`${O}[${q}]`,R))}function h(_,O,q,R=o.Correct){const C=R===o.Correct?i.operators.EQ:i.operators.NEQ;let V;switch(_){case"null":return(0,i._)`${O} ${C} null`;case"array":V=(0,i._)`Array.isArray(${O})`;break;case"object":V=(0,i._)`${O} && typeof ${O} == "object" && !Array.isArray(${O})`;break;case"integer":V=L((0,i._)`!(${O} % 1) && !isNaN(${O})`);break;case"number":V=L();break;default:return(0,i._)`typeof ${O} ${C} ${_}`}return R===o.Correct?V:(0,i.not)(V);function L(G=i.nil){return(0,i.and)((0,i._)`typeof ${O} == "number"`,G,q?(0,i._)`isFinite(${O})`:i.nil)}}e.checkDataType=h;function m(_,O,q,R){if(_.length===1)return h(_[0],O,q,R);let C;const V=(0,s.toHash)(_);if(V.array&&V.object){const L=(0,i._)`typeof ${O} != "object"`;C=V.null?L:(0,i._)`!${O} || ${L}`,delete V.null,delete V.array,delete V.object}else C=i.nil;V.number&&delete V.integer;for(const L in V)C=(0,i.and)(C,h(L,O,q,R));return C}e.checkDataTypes=m;const E={message:({schema:_})=>`must be ${_}`,params:({schema:_,schemaValue:O})=>typeof _=="string"?(0,i._)`{type: ${_}}`:(0,i._)`{type: ${O}}`};function f(_){const O=$(_);(0,n.reportError)(O,E)}e.reportTypeError=f;function $(_){const{gen:O,data:q,schema:R}=_,C=(0,s.schemaRefOrVal)(_,R,"type");return{gen:O,keyword:"type",data:q,schema:R.type,schemaCode:C,schemaValue:C,parentSchema:R,params:{},it:_}}})(Rn);var fn={},Ta;function im(){if(Ta)return fn;Ta=1,Object.defineProperty(fn,"__esModule",{value:!0}),fn.assignDefaults=void 0;const e=oe,t=he;function r(i,s){const{properties:o,items:c}=i.schema;if(s==="object"&&o)for(const u in o)n(i,u,o[u].default);else s==="array"&&Array.isArray(c)&&c.forEach((u,p)=>n(i,p,u.default))}fn.assignDefaults=r;function n(i,s,o){const{gen:c,compositeRule:u,data:p,opts:a}=i;if(o===void 0)return;const l=(0,e._)`${p}${(0,e.getProperty)(s)}`;if(u){(0,t.checkStrictMode)(i,`default is ignored for: ${l}`);return}let y=(0,e._)`${l} === undefined`;a.useDefaults==="empty"&&(y=(0,e._)`${y} || ${l} === null || ${l} === ""`),c.if(y,(0,e._)`${l} = ${(0,e.stringify)(o)}`)}return fn}var gt={},ce={};Object.defineProperty(ce,"__esModule",{value:!0});ce.validateUnion=ce.validateArray=ce.usePattern=ce.callValidateCode=ce.schemaProperties=ce.allSchemaProperties=ce.noPropertyInData=ce.propertyInData=ce.isOwnProperty=ce.hasPropFunc=ce.reportMissingProp=ce.checkMissingProp=ce.checkReportMissingProp=void 0;const we=oe,Js=he,Xt=kt,sm=he;function om(e,t){const{gen:r,data:n,it:i}=e;r.if(Qs(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,we._)`${t}`},!0),e.error()})}ce.checkReportMissingProp=om;function am({gen:e,data:t,it:{opts:r}},n,i){return(0,we.or)(...n.map(s=>(0,we.and)(Qs(e,t,s,r.ownProperties),(0,we._)`${i} = ${s}`)))}ce.checkMissingProp=am;function cm(e,t){e.setParams({missingProperty:t},!0),e.error()}ce.reportMissingProp=cm;function Fu(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,we._)`Object.prototype.hasOwnProperty`})}ce.hasPropFunc=Fu;function Ys(e,t,r){return(0,we._)`${Fu(e)}.call(${t}, ${r})`}ce.isOwnProperty=Ys;function um(e,t,r,n){const i=(0,we._)`${t}${(0,we.getProperty)(r)} !== undefined`;return n?(0,we._)`${i} && ${Ys(e,t,r)}`:i}ce.propertyInData=um;function Qs(e,t,r,n){const i=(0,we._)`${t}${(0,we.getProperty)(r)} === undefined`;return n?(0,we.or)(i,(0,we.not)(Ys(e,t,r))):i}ce.noPropertyInData=Qs;function ju(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}ce.allSchemaProperties=ju;function fm(e,t){return ju(t).filter(r=>!(0,Js.alwaysValidSchema)(e,t[r]))}ce.schemaProperties=fm;function lm({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:s},it:o},c,u,p){const a=p?(0,we._)`${e}, ${t}, ${n}${i}`:t,l=[[Xt.default.instancePath,(0,we.strConcat)(Xt.default.instancePath,s)],[Xt.default.parentData,o.parentData],[Xt.default.parentDataProperty,o.parentDataProperty],[Xt.default.rootData,Xt.default.rootData]];o.opts.dynamicRef&&l.push([Xt.default.dynamicAnchors,Xt.default.dynamicAnchors]);const y=(0,we._)`${a}, ${r.object(...l)}`;return u!==we.nil?(0,we._)`${c}.call(${u}, ${y})`:(0,we._)`${c}(${y})`}ce.callValidateCode=lm;const dm=(0,we._)`new RegExp`;function hm({gen:e,it:{opts:t}},r){const n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,s=i(r,n);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,we._)`${i.code==="new RegExp"?dm:(0,sm.useFunc)(e,i)}(${r}, ${n})`})}ce.usePattern=hm;function mm(e){const{gen:t,data:r,keyword:n,it:i}=e,s=t.name("valid");if(i.allErrors){const c=t.let("valid",!0);return o(()=>t.assign(c,!1)),c}return t.var(s,!0),o(()=>t.break()),s;function o(c){const u=t.const("len",(0,we._)`${r}.length`);t.forRange("i",0,u,p=>{e.subschema({keyword:n,dataProp:p,dataPropType:Js.Type.Num},s),t.if((0,we.not)(s),c)})}}ce.validateArray=mm;function pm(e){const{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(u=>(0,Js.alwaysValidSchema)(i,u))&&!i.opts.unevaluated)return;const o=t.let("valid",!1),c=t.name("_valid");t.block(()=>r.forEach((u,p)=>{const a=e.subschema({keyword:n,schemaProp:p,compositeRule:!0},c);t.assign(o,(0,we._)`${o} || ${c}`),e.mergeValidEvaluated(a,c)||t.if((0,we.not)(o))})),e.result(o,()=>e.reset(),()=>e.error(!0))}ce.validateUnion=pm;var Da;function ym(){if(Da)return gt;Da=1,Object.defineProperty(gt,"__esModule",{value:!0}),gt.validateKeywordUsage=gt.validSchemaType=gt.funcKeywordCode=gt.macroKeywordCode=void 0;const e=oe,t=kt,r=ce,n=Mn;function i(y,d){const{gen:h,keyword:m,schema:E,parentSchema:f,it:$}=y,_=d.macro.call($.self,E,f,$),O=p(h,m,_);$.opts.validateSchema!==!1&&$.self.validateSchema(_,!0);const q=h.name("valid");y.subschema({schema:_,schemaPath:e.nil,errSchemaPath:`${$.errSchemaPath}/${m}`,topSchemaRef:O,compositeRule:!0},q),y.pass(q,()=>y.error(!0))}gt.macroKeywordCode=i;function s(y,d){var h;const{gen:m,keyword:E,schema:f,parentSchema:$,$data:_,it:O}=y;u(O,d);const q=!_&&d.compile?d.compile.call(O.self,f,$,O):d.validate,R=p(m,E,q),C=m.let("valid");y.block$data(C,V),y.ok((h=d.valid)!==null&&h!==void 0?h:C);function V(){if(d.errors===!1)j(),d.modifying&&o(y),b(()=>y.error());else{const K=d.async?L():G();d.modifying&&o(y),b(()=>c(y,K))}}function L(){const K=m.let("ruleErrs",null);return m.try(()=>j((0,e._)`await `),B=>m.assign(C,!1).if((0,e._)`${B} instanceof ${O.ValidationError}`,()=>m.assign(K,(0,e._)`${B}.errors`),()=>m.throw(B))),K}function G(){const K=(0,e._)`${R}.errors`;return m.assign(K,null),j(e.nil),K}function j(K=d.async?(0,e._)`await `:e.nil){const B=O.opts.passContext?t.default.this:t.default.self,X=!("compile"in d&&!_||d.schema===!1);m.assign(C,(0,e._)`${K}${(0,r.callValidateCode)(y,R,B,X)}`,d.modifying)}function b(K){var B;m.if((0,e.not)((B=d.valid)!==null&&B!==void 0?B:C),K)}}gt.funcKeywordCode=s;function o(y){const{gen:d,data:h,it:m}=y;d.if(m.parentData,()=>d.assign(h,(0,e._)`${m.parentData}[${m.parentDataProperty}]`))}function c(y,d){const{gen:h}=y;h.if((0,e._)`Array.isArray(${d})`,()=>{h.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${d} : ${t.default.vErrors}.concat(${d})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,n.extendErrors)(y)},()=>y.error())}function u({schemaEnv:y},d){if(d.async&&!y.$async)throw new Error("async keyword in sync schema")}function p(y,d,h){if(h===void 0)throw new Error(`keyword "${d}" failed to compile`);return y.scopeValue("keyword",typeof h=="function"?{ref:h}:{ref:h,code:(0,e.stringify)(h)})}function a(y,d,h=!1){return!d.length||d.some(m=>m==="array"?Array.isArray(y):m==="object"?y&&typeof y=="object"&&!Array.isArray(y):typeof y==m||h&&typeof y>"u")}gt.validSchemaType=a;function l({schema:y,opts:d,self:h,errSchemaPath:m},E,f){if(Array.isArray(E.keyword)?!E.keyword.includes(f):E.keyword!==f)throw new Error("ajv implementation error");const $=E.dependencies;if($!=null&&$.some(_=>!Object.prototype.hasOwnProperty.call(y,_)))throw new Error(`parent schema must have dependencies of ${f}: ${$.join(",")}`);if(E.validateSchema&&!E.validateSchema(y[f])){const O=`keyword "${f}" value is invalid at path "${m}": `+h.errorsText(E.validateSchema.errors);if(d.validateSchema==="log")h.logger.error(O);else throw new Error(O)}}return gt.validateKeywordUsage=l,gt}var xt={},Ra;function Em(){if(Ra)return xt;Ra=1,Object.defineProperty(xt,"__esModule",{value:!0}),xt.extendSubschemaMode=xt.extendSubschemaData=xt.getSubschema=void 0;const e=oe,t=he;function r(s,{keyword:o,schemaProp:c,schema:u,schemaPath:p,errSchemaPath:a,topSchemaRef:l}){if(o!==void 0&&u!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(o!==void 0){const y=s.schema[o];return c===void 0?{schema:y,schemaPath:(0,e._)`${s.schemaPath}${(0,e.getProperty)(o)}`,errSchemaPath:`${s.errSchemaPath}/${o}`}:{schema:y[c],schemaPath:(0,e._)`${s.schemaPath}${(0,e.getProperty)(o)}${(0,e.getProperty)(c)}`,errSchemaPath:`${s.errSchemaPath}/${o}/${(0,t.escapeFragment)(c)}`}}if(u!==void 0){if(p===void 0||a===void 0||l===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:u,schemaPath:p,topSchemaRef:l,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')}xt.getSubschema=r;function n(s,o,{dataProp:c,dataPropType:u,data:p,dataTypes:a,propertyName:l}){if(p!==void 0&&c!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:y}=o;if(c!==void 0){const{errorPath:h,dataPathArr:m,opts:E}=o,f=y.let("data",(0,e._)`${o.data}${(0,e.getProperty)(c)}`,!0);d(f),s.errorPath=(0,e.str)`${h}${(0,t.getErrorPath)(c,u,E.jsPropertySyntax)}`,s.parentDataProperty=(0,e._)`${c}`,s.dataPathArr=[...m,s.parentDataProperty]}if(p!==void 0){const h=p instanceof e.Name?p:y.let("data",p,!0);d(h),l!==void 0&&(s.propertyName=l)}a&&(s.dataTypes=a);function d(h){s.data=h,s.dataLevel=o.dataLevel+1,s.dataTypes=[],o.definedProperties=new Set,s.parentData=o.data,s.dataNames=[...o.dataNames,h]}}xt.extendSubschemaData=n;function i(s,{jtdDiscriminator:o,jtdMetadata:c,compositeRule:u,createErrors:p,allErrors:a}){u!==void 0&&(s.compositeRule=u),p!==void 0&&(s.createErrors=p),a!==void 0&&(s.allErrors=a),s.jtdDiscriminator=o,s.jtdMetadata=c}return xt.extendSubschemaMode=i,xt}var He={},Mu=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,s;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(s=Object.keys(t),n=s.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[i]))return!1;for(i=n;i--!==0;){var o=s[i];if(!e(t[o],r[o]))return!1}return!0}return t!==t&&r!==r},ku={exports:{}},or=ku.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};oi(t,n,i,e,"",e)};or.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};or.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};or.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};or.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 oi(e,t,r,n,i,s,o,c,u,p){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,s,o,c,u,p);for(var a in n){var l=n[a];if(Array.isArray(l)){if(a in or.arrayKeywords)for(var y=0;y<l.length;y++)oi(e,t,r,l[y],i+"/"+a+"/"+y,s,i,a,n,y)}else if(a in or.propsKeywords){if(l&&typeof l=="object")for(var d in l)oi(e,t,r,l[d],i+"/"+a+"/"+vm(d),s,i,a,n,d)}else(a in or.keywords||e.allKeys&&!(a in or.skipKeywords))&&oi(e,t,r,l,i+"/"+a,s,i,a,n)}r(n,i,s,o,c,u,p)}}function vm(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}Object.defineProperty(He,"__esModule",{value:!0});He.getSchemaRefs=He.resolveUrl=He.normalizeId=He._getFullPath=He.getFullPath=He.inlineRef=void 0;const gm=he,$m=Mu,_m=ku.exports,Sm=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function wm(e,t=!0){return typeof e=="boolean"?!0:t===!0?!gs(e):t?Uu(e)<=t:!1}He.inlineRef=wm;const Nm=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function gs(e){for(const t in e){if(Nm.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(gs)||typeof r=="object"&&gs(r))return!0}return!1}function Uu(e){let t=0;for(const r in e){if(r==="$ref")return 1/0;if(t++,!Sm.has(r)&&(typeof e[r]=="object"&&(0,gm.eachItem)(e[r],n=>t+=Uu(n)),t===1/0))return 1/0}return t}function zu(e,t="",r){r!==!1&&(t=xr(t));const n=e.parse(t);return xu(e,n)}He.getFullPath=zu;function xu(e,t){return e.serialize(t).split("#")[0]+"#"}He._getFullPath=xu;const Im=/#\/?$/;function xr(e){return e?e.replace(Im,""):""}He.normalizeId=xr;function Om(e,t,r){return r=xr(r),e.resolve(t,r)}He.resolveUrl=Om;const Tm=/^[a-z_][-a-z0-9._]*$/i;function Dm(e,t){if(typeof e=="boolean")return{};const{schemaId:r,uriResolver:n}=this.opts,i=xr(e[r]||t),s={"":i},o=zu(n,i,!1),c={},u=new Set;return _m(e,{allKeys:!0},(l,y,d,h)=>{if(h===void 0)return;const m=o+y;let E=s[h];typeof l[r]=="string"&&(E=f.call(this,l[r])),$.call(this,l.$anchor),$.call(this,l.$dynamicAnchor),s[y]=E;function f(_){const O=this.opts.uriResolver.resolve;if(_=xr(E?O(E,_):_),u.has(_))throw a(_);u.add(_);let q=this.refs[_];return typeof q=="string"&&(q=this.refs[q]),typeof q=="object"?p(l,q.schema,_):_!==xr(m)&&(_[0]==="#"?(p(l,c[_],_),c[_]=l):this.refs[_]=m),_}function $(_){if(typeof _=="string"){if(!Tm.test(_))throw new Error(`invalid anchor "${_}"`);f.call(this,`#${_}`)}}}),c;function p(l,y,d){if(y!==void 0&&!$m(l,y))throw a(d)}function a(l){return new Error(`reference "${l}" resolves to more than one schema`)}}He.getSchemaRefs=Dm;var Ca;function Ai(){if(Ca)return zt;Ca=1,Object.defineProperty(zt,"__esModule",{value:!0}),zt.getData=zt.KeywordCxt=zt.validateFunctionCode=void 0;const e=Yh(),t=Rn,r=Bt,n=Rn,i=im(),s=ym(),o=Em(),c=oe,u=kt,p=He,a=he,l=Mn;function y(D){if(q(D)&&(C(D),O(D))){E(D);return}d(D,()=>(0,e.topBoolOrEmptySchema)(D))}zt.validateFunctionCode=y;function d({gen:D,validateName:A,schema:H,schemaEnv:J,opts:te},se){te.code.es5?D.func(A,(0,c._)`${u.default.data}, ${u.default.valCxt}`,J.$async,()=>{D.code((0,c._)`"use strict"; ${$(H,te)}`),m(D,te),D.code(se)}):D.func(A,(0,c._)`${u.default.data}, ${h(te)}`,J.$async,()=>D.code($(H,te)).code(se))}function h(D){return(0,c._)`{${u.default.instancePath}="", ${u.default.parentData}, ${u.default.parentDataProperty}, ${u.default.rootData}=${u.default.data}${D.dynamicRef?(0,c._)`, ${u.default.dynamicAnchors}={}`:c.nil}}={}`}function m(D,A){D.if(u.default.valCxt,()=>{D.var(u.default.instancePath,(0,c._)`${u.default.valCxt}.${u.default.instancePath}`),D.var(u.default.parentData,(0,c._)`${u.default.valCxt}.${u.default.parentData}`),D.var(u.default.parentDataProperty,(0,c._)`${u.default.valCxt}.${u.default.parentDataProperty}`),D.var(u.default.rootData,(0,c._)`${u.default.valCxt}.${u.default.rootData}`),A.dynamicRef&&D.var(u.default.dynamicAnchors,(0,c._)`${u.default.valCxt}.${u.default.dynamicAnchors}`)},()=>{D.var(u.default.instancePath,(0,c._)`""`),D.var(u.default.parentData,(0,c._)`undefined`),D.var(u.default.parentDataProperty,(0,c._)`undefined`),D.var(u.default.rootData,u.default.data),A.dynamicRef&&D.var(u.default.dynamicAnchors,(0,c._)`{}`)})}function E(D){const{schema:A,opts:H,gen:J}=D;d(D,()=>{H.$comment&&A.$comment&&K(D),G(D),J.let(u.default.vErrors,null),J.let(u.default.errors,0),H.unevaluated&&f(D),V(D),B(D)})}function f(D){const{gen:A,validateName:H}=D;D.evaluated=A.const("evaluated",(0,c._)`${H}.evaluated`),A.if((0,c._)`${D.evaluated}.dynamicProps`,()=>A.assign((0,c._)`${D.evaluated}.props`,(0,c._)`undefined`)),A.if((0,c._)`${D.evaluated}.dynamicItems`,()=>A.assign((0,c._)`${D.evaluated}.items`,(0,c._)`undefined`))}function $(D,A){const H=typeof D=="object"&&D[A.schemaId];return H&&(A.code.source||A.code.process)?(0,c._)`/*# sourceURL=${H} */`:c.nil}function _(D,A){if(q(D)&&(C(D),O(D))){R(D,A);return}(0,e.boolOrEmptySchema)(D,A)}function O({schema:D,self:A}){if(typeof D=="boolean")return!D;for(const H in D)if(A.RULES.all[H])return!0;return!1}function q(D){return typeof D.schema!="boolean"}function R(D,A){const{schema:H,gen:J,opts:te}=D;te.$comment&&H.$comment&&K(D),j(D),b(D);const se=J.const("_errs",u.default.errors);V(D,se),J.var(A,(0,c._)`${se} === ${u.default.errors}`)}function C(D){(0,a.checkUnknownRules)(D),L(D)}function V(D,A){if(D.opts.jtd)return Z(D,[],!1,A);const H=(0,t.getSchemaTypes)(D.schema),J=(0,t.coerceAndCheckDataType)(D,H);Z(D,H,!J,A)}function L(D){const{schema:A,errSchemaPath:H,opts:J,self:te}=D;A.$ref&&J.ignoreKeywordsWithRef&&(0,a.schemaHasRulesButRef)(A,te.RULES)&&te.logger.warn(`$ref: keywords ignored in schema at path "${H}"`)}function G(D){const{schema:A,opts:H}=D;A.default!==void 0&&H.useDefaults&&H.strictSchema&&(0,a.checkStrictMode)(D,"default is ignored in the schema root")}function j(D){const A=D.schema[D.opts.schemaId];A&&(D.baseId=(0,p.resolveUrl)(D.opts.uriResolver,D.baseId,A))}function b(D){if(D.schema.$async&&!D.schemaEnv.$async)throw new Error("async schema in sync schema")}function K({gen:D,schemaEnv:A,schema:H,errSchemaPath:J,opts:te}){const se=H.$comment;if(te.$comment===!0)D.code((0,c._)`${u.default.self}.logger.log(${se})`);else if(typeof te.$comment=="function"){const ve=(0,c.str)`${J}/$comment`,lt=D.scopeValue("root",{ref:A.root});D.code((0,c._)`${u.default.self}.opts.$comment(${se}, ${ve}, ${lt}.schema)`)}}function B(D){const{gen:A,schemaEnv:H,validateName:J,ValidationError:te,opts:se}=D;H.$async?A.if((0,c._)`${u.default.errors} === 0`,()=>A.return(u.default.data),()=>A.throw((0,c._)`new ${te}(${u.default.vErrors})`)):(A.assign((0,c._)`${J}.errors`,u.default.vErrors),se.unevaluated&&X(D),A.return((0,c._)`${u.default.errors} === 0`))}function X({gen:D,evaluated:A,props:H,items:J}){H instanceof c.Name&&D.assign((0,c._)`${A}.props`,H),J instanceof c.Name&&D.assign((0,c._)`${A}.items`,J)}function Z(D,A,H,J){const{gen:te,schema:se,data:ve,allErrors:lt,opts:xe,self:Ve}=D,{RULES:be}=Ve;if(se.$ref&&(xe.ignoreKeywordsWithRef||!(0,a.schemaHasRulesButRef)(se,be))){te.block(()=>x(D,"$ref",be.all.$ref.definition));return}xe.jtd||F(D,A),te.block(()=>{for(const je of be.rules)Ht(je);Ht(be.post)});function Ht(je){!(0,r.shouldUseGroup)(se,je)||(je.type?(te.if((0,n.checkDataType)(je.type,ve,xe.strictNumbers)),W(D,je),A.length===1&&A[0]===je.type&&H&&(te.else(),(0,n.reportTypeError)(D)),te.endIf()):W(D,je),lt||te.if((0,c._)`${u.default.errors} === ${J||0}`))}}function W(D,A){const{gen:H,schema:J,opts:{useDefaults:te}}=D;te&&(0,i.assignDefaults)(D,A.type),H.block(()=>{for(const se of A.rules)(0,r.shouldUseRule)(J,se)&&x(D,se.keyword,se.definition,A.type)})}function F(D,A){D.schemaEnv.meta||!D.opts.strictTypes||(z(D,A),D.opts.allowUnionTypes||T(D,A),I(D,D.dataTypes))}function z(D,A){if(!!A.length){if(!D.dataTypes.length){D.dataTypes=A;return}A.forEach(H=>{P(D.dataTypes,H)||v(D,`type "${H}" not allowed by context "${D.dataTypes.join(",")}"`)}),D.dataTypes=D.dataTypes.filter(H=>P(A,H))}}function T(D,A){A.length>1&&!(A.length===2&&A.includes("null"))&&v(D,"use allowUnionTypes to allow union type keyword")}function I(D,A){const H=D.self.RULES.all;for(const J in H){const te=H[J];if(typeof te=="object"&&(0,r.shouldUseRule)(D.schema,te)){const{type:se}=te.definition;se.length&&!se.some(ve=>M(A,ve))&&v(D,`missing type "${se.join(",")}" for keyword "${J}"`)}}}function M(D,A){return D.includes(A)||A==="number"&&D.includes("integer")}function P(D,A){return D.includes(A)||A==="integer"&&D.includes("number")}function v(D,A){A+=` at "${D.schemaEnv.baseId+D.errSchemaPath}" (strictTypes)`,(0,a.checkStrictMode)(D,A,D.opts.strictTypes)}class S{constructor(A,H,J){if((0,s.validateKeywordUsage)(A,H,J),this.gen=A.gen,this.allErrors=A.allErrors,this.keyword=J,this.data=A.data,this.schema=A.schema[J],this.$data=H.$data&&A.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,a.schemaRefOrVal)(A,this.schema,J,this.$data),this.schemaType=H.schemaType,this.parentSchema=A.schema,this.params={},this.it=A,this.def=H,this.$data)this.schemaCode=A.gen.const("vSchema",ae(this.$data,A));else if(this.schemaCode=this.schemaValue,!(0,s.validSchemaType)(this.schema,H.schemaType,H.allowUndefined))throw new Error(`${J} value must be ${JSON.stringify(H.schemaType)}`);("code"in H?H.trackErrors:H.errors!==!1)&&(this.errsCount=A.gen.const("_errs",u.default.errors))}result(A,H,J){this.failResult((0,c.not)(A),H,J)}failResult(A,H,J){this.gen.if(A),J?J():this.error(),H?(this.gen.else(),H(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(A,H){this.failResult((0,c.not)(A),void 0,H)}fail(A){if(A===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(A),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(A){if(!this.$data)return this.fail(A);const{schemaCode:H}=this;this.fail((0,c._)`${H} !== undefined && (${(0,c.or)(this.invalid$data(),A)})`)}error(A,H,J){if(H){this.setParams(H),this._error(A,J),this.setParams({});return}this._error(A,J)}_error(A,H){(A?l.reportExtraError:l.reportError)(this,this.def.error,H)}$dataError(){(0,l.reportError)(this,this.def.$dataError||l.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,l.resetErrorsCount)(this.gen,this.errsCount)}ok(A){this.allErrors||this.gen.if(A)}setParams(A,H){H?Object.assign(this.params,A):this.params=A}block$data(A,H,J=c.nil){this.gen.block(()=>{this.check$data(A,J),H()})}check$data(A=c.nil,H=c.nil){if(!this.$data)return;const{gen:J,schemaCode:te,schemaType:se,def:ve}=this;J.if((0,c.or)((0,c._)`${te} === undefined`,H)),A!==c.nil&&J.assign(A,!0),(se.length||ve.validateSchema)&&(J.elseIf(this.invalid$data()),this.$dataError(),A!==c.nil&&J.assign(A,!1)),J.else()}invalid$data(){const{gen:A,schemaCode:H,schemaType:J,def:te,it:se}=this;return(0,c.or)(ve(),lt());function ve(){if(J.length){if(!(H instanceof c.Name))throw new Error("ajv implementation error");const xe=Array.isArray(J)?J:[J];return(0,c._)`${(0,n.checkDataTypes)(xe,H,se.opts.strictNumbers,n.DataType.Wrong)}`}return c.nil}function lt(){if(te.validateSchema){const xe=A.scopeValue("validate$data",{ref:te.validateSchema});return(0,c._)`!${xe}(${H})`}return c.nil}}subschema(A,H){const J=(0,o.getSubschema)(this.it,A);(0,o.extendSubschemaData)(J,this.it,A),(0,o.extendSubschemaMode)(J,A);const te={...this.it,...J,items:void 0,props:void 0};return _(te,H),te}mergeEvaluated(A,H){const{it:J,gen:te}=this;!J.opts.unevaluated||(J.props!==!0&&A.props!==void 0&&(J.props=a.mergeEvaluated.props(te,A.props,J.props,H)),J.items!==!0&&A.items!==void 0&&(J.items=a.mergeEvaluated.items(te,A.items,J.items,H)))}mergeValidEvaluated(A,H){const{it:J,gen:te}=this;if(J.opts.unevaluated&&(J.props!==!0||J.items!==!0))return te.if(H,()=>this.mergeEvaluated(A,c.Name)),!0}}zt.KeywordCxt=S;function x(D,A,H,J){const te=new S(D,H,A);"code"in H?H.code(te,J):te.$data&&H.validate?(0,s.funcKeywordCode)(te,H):"macro"in H?(0,s.macroKeywordCode)(te,H):(H.compile||H.validate)&&(0,s.funcKeywordCode)(te,H)}const Y=/^\/(?:[^~]|~0|~1)*$/,Q=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function ae(D,{dataLevel:A,dataNames:H,dataPathArr:J}){let te,se;if(D==="")return u.default.rootData;if(D[0]==="/"){if(!Y.test(D))throw new Error(`Invalid JSON-pointer: ${D}`);te=D,se=u.default.rootData}else{const Ve=Q.exec(D);if(!Ve)throw new Error(`Invalid JSON-pointer: ${D}`);const be=+Ve[1];if(te=Ve[2],te==="#"){if(be>=A)throw new Error(xe("property/index",be));return J[A-be]}if(be>A)throw new Error(xe("data",be));if(se=H[A-be],!te)return se}let ve=se;const lt=te.split("/");for(const Ve of lt)Ve&&(se=(0,c._)`${se}${(0,c.getProperty)((0,a.unescapeJsonPointer)(Ve))}`,ve=(0,c._)`${ve} && ${se}`);return ve;function xe(Ve,be){return`Cannot access ${Ve} ${be} levels up, current level is ${A}`}}return zt.getData=ae,zt}var bi={};Object.defineProperty(bi,"__esModule",{value:!0});class Rm extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}bi.default=Rm;var Li={};Object.defineProperty(Li,"__esModule",{value:!0});const es=He;class Cm extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,es.resolveUrl)(t,r,n),this.missingSchema=(0,es.normalizeId)((0,es.getFullPath)(t,this.missingRef))}}Li.default=Cm;var ut={};Object.defineProperty(ut,"__esModule",{value:!0});ut.resolveSchema=ut.getCompilingSchema=ut.resolveRef=ut.compileSchema=ut.SchemaEnv=void 0;const $t=oe,Pm=bi,mr=kt,Tt=He,Pa=he,Am=Ai();class Fi{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,Tt.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}}ut.SchemaEnv=Fi;function eo(e){const t=Vu.call(this,e);if(t)return t;const r=(0,Tt.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,o=new $t.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s});let c;e.$async&&(c=o.scopeValue("Error",{ref:Pm.default,code:(0,$t._)`require("ajv/dist/runtime/validation_error").default`}));const u=o.scopeName("validate");e.validateName=u;const p={gen:o,allErrors:this.opts.allErrors,data:mr.default.data,parentData:mr.default.parentData,parentDataProperty:mr.default.parentDataProperty,dataNames:[mr.default.data],dataPathArr:[$t.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:o.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,$t.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:c,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:$t.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,$t._)`""`,opts:this.opts,self:this};let a;try{this._compilations.add(e),(0,Am.validateFunctionCode)(p),o.optimize(this.opts.code.optimize);const l=o.toString();a=`${o.scopeRefs(mr.default.scope)}return ${l}`,this.opts.code.process&&(a=this.opts.code.process(a,e));const d=new Function(`${mr.default.self}`,`${mr.default.scope}`,a)(this,this.scope.get());if(this.scope.value(u,{ref:d}),d.errors=null,d.schema=e.schema,d.schemaEnv=e,e.$async&&(d.$async=!0),this.opts.code.source===!0&&(d.source={validateName:u,validateCode:l,scopeValues:o._values}),this.opts.unevaluated){const{props:h,items:m}=p;d.evaluated={props:h instanceof $t.Name?void 0:h,items:m instanceof $t.Name?void 0:m,dynamicProps:h instanceof $t.Name,dynamicItems:m instanceof $t.Name},d.source&&(d.source.evaluated=(0,$t.stringify)(d.evaluated))}return e.validate=d,e}catch(l){throw delete e.validate,delete e.validateName,a&&this.logger.error("Error compiling schema, function code:",a),l}finally{this._compilations.delete(e)}}ut.compileSchema=eo;function bm(e,t,r){var n;r=(0,Tt.resolveUrl)(this.opts.uriResolver,t,r);const i=e.refs[r];if(i)return i;let s=jm.call(this,e,r);if(s===void 0){const o=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:c}=this.opts;o&&(s=new Fi({schema:o,schemaId:c,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=Lm.call(this,s)}ut.resolveRef=bm;function Lm(e){return(0,Tt.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:eo.call(this,e)}function Vu(e){for(const t of this._compilations)if(Fm(t,e))return t}ut.getCompilingSchema=Vu;function Fm(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function jm(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||ji.call(this,e,t)}function ji(e,t){const r=this.opts.uriResolver.parse(t),n=(0,Tt._getFullPath)(this.opts.uriResolver,r);let i=(0,Tt.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return ts.call(this,r,e);const s=(0,Tt.normalizeId)(n),o=this.refs[s]||this.schemas[s];if(typeof o=="string"){const c=ji.call(this,e,o);return typeof(c==null?void 0:c.schema)!="object"?void 0:ts.call(this,r,c)}if(typeof(o==null?void 0:o.schema)=="object"){if(o.validate||eo.call(this,o),s===(0,Tt.normalizeId)(t)){const{schema:c}=o,{schemaId:u}=this.opts,p=c[u];return p&&(i=(0,Tt.resolveUrl)(this.opts.uriResolver,i,p)),new Fi({schema:c,schemaId:u,root:e,baseId:i})}return ts.call(this,r,o)}}ut.resolveSchema=ji;const Mm=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function ts(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(const c of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;const u=r[(0,Pa.unescapeFragment)(c)];if(u===void 0)return;r=u;const p=typeof r=="object"&&r[this.opts.schemaId];!Mm.has(c)&&p&&(t=(0,Tt.resolveUrl)(this.opts.uriResolver,t,p))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,Pa.schemaHasRulesButRef)(r,this.RULES)){const c=(0,Tt.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=ji.call(this,n,c)}const{schemaId:o}=this.opts;if(s=s||new Fi({schema:r,schemaId:o,root:n,baseId:t}),s.schema!==s.root.schema)return s}const km="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",Um="Meta-schema for $data reference (JSON AnySchema extension proposal)",zm="object",xm=["$data"],Vm={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},qm=!1,Gm={$id:km,description:Um,type:zm,required:xm,properties:Vm,additionalProperties:qm};var to={},$s={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(e,t){(function(r,n){n(t)})(tr,function(r){function n(){for(var w=arguments.length,g=Array(w),N=0;N<w;N++)g[N]=arguments[N];if(g.length>1){g[0]=g[0].slice(0,-1);for(var U=g.length-1,k=1;k<U;++k)g[k]=g[k].slice(1,-1);return g[U]=g[U].slice(1),g.join("")}else return g[0]}function i(w){return"(?:"+w+")"}function s(w){return w===void 0?"undefined":w===null?"null":Object.prototype.toString.call(w).split(" ").pop().split("]").shift().toLowerCase()}function o(w){return w.toUpperCase()}function c(w){return w!=null?w instanceof Array?w:typeof w.length!="number"||w.split||w.setInterval||w.call?[w]:Array.prototype.slice.call(w):[]}function u(w,g){var N=w;if(g)for(var U in g)N[U]=g[U];return N}function p(w){var g="[A-Za-z]",N="[0-9]",U=n(N,"[A-Fa-f]"),k=i(i("%[EFef]"+U+"%"+U+U+"%"+U+U)+"|"+i("%[89A-Fa-f]"+U+"%"+U+U)+"|"+i("%"+U+U)),re="[\\:\\/\\?\\#\\[\\]\\@]",ne="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",de=n(re,ne),Se=w?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Ce=w?"[\\uE000-\\uF8FF]":"[]",ue=n(g,N,"[\\-\\.\\_\\~]",Se);i(g+n(g,N,"[\\+\\-\\.]")+"*"),i(i(k+"|"+n(ue,ne,"[\\:]"))+"*");var $e=i(i("25[0-5]")+"|"+i("2[0-4]"+N)+"|"+i("1"+N+N)+"|"+i("0?[1-9]"+N)+"|0?0?"+N),Pe=i($e+"\\."+$e+"\\."+$e+"\\."+$e),ie=i(U+"{1,4}"),Ne=i(i(ie+"\\:"+ie)+"|"+Pe),Le=i(i(ie+"\\:")+"{6}"+Ne),Ie=i("\\:\\:"+i(ie+"\\:")+"{5}"+Ne),Kt=i(i(ie)+"?\\:\\:"+i(ie+"\\:")+"{4}"+Ne),At=i(i(i(ie+"\\:")+"{0,1}"+ie)+"?\\:\\:"+i(ie+"\\:")+"{3}"+Ne),bt=i(i(i(ie+"\\:")+"{0,2}"+ie)+"?\\:\\:"+i(ie+"\\:")+"{2}"+Ne),Cr=i(i(i(ie+"\\:")+"{0,3}"+ie)+"?\\:\\:"+ie+"\\:"+Ne),fr=i(i(i(ie+"\\:")+"{0,4}"+ie)+"?\\:\\:"+Ne),yt=i(i(i(ie+"\\:")+"{0,5}"+ie)+"?\\:\\:"+ie),Lt=i(i(i(ie+"\\:")+"{0,6}"+ie)+"?\\:\\:"),lr=i([Le,Ie,Kt,At,bt,Cr,fr,yt,Lt].join("|")),Ut=i(i(ue+"|"+k)+"+");i("[vV]"+U+"+\\."+n(ue,ne,"[\\:]")+"+"),i(i(k+"|"+n(ue,ne))+"*");var cn=i(k+"|"+n(ue,ne,"[\\:\\@]"));return i(i(k+"|"+n(ue,ne,"[\\@]"))+"+"),i(i(cn+"|"+n("[\\/\\?]",Ce))+"*"),{NOT_SCHEME:new RegExp(n("[^]",g,N,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(n("[^\\%\\:]",ue,ne),"g"),NOT_HOST:new RegExp(n("[^\\%\\[\\]\\:]",ue,ne),"g"),NOT_PATH:new RegExp(n("[^\\%\\/\\:\\@]",ue,ne),"g"),NOT_PATH_NOSCHEME:new RegExp(n("[^\\%\\/\\@]",ue,ne),"g"),NOT_QUERY:new RegExp(n("[^\\%]",ue,ne,"[\\:\\@\\/\\?]",Ce),"g"),NOT_FRAGMENT:new RegExp(n("[^\\%]",ue,ne,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(n("[^]",ue,ne),"g"),UNRESERVED:new RegExp(ue,"g"),OTHER_CHARS:new RegExp(n("[^\\%]",ue,de),"g"),PCT_ENCODED:new RegExp(k,"g"),IPV4ADDRESS:new RegExp("^("+Pe+")$"),IPV6ADDRESS:new RegExp("^\\[?("+lr+")"+i(i("\\%25|\\%(?!"+U+"{2})")+"("+Ut+")")+"?\\]?$")}}var a=p(!1),l=p(!0),y=function(){function w(g,N){var U=[],k=!0,re=!1,ne=void 0;try{for(var de=g[Symbol.iterator](),Se;!(k=(Se=de.next()).done)&&(U.push(Se.value),!(N&&U.length===N));k=!0);}catch(Ce){re=!0,ne=Ce}finally{try{!k&&de.return&&de.return()}finally{if(re)throw ne}}return U}return function(g,N){if(Array.isArray(g))return g;if(Symbol.iterator in Object(g))return w(g,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(w){if(Array.isArray(w)){for(var g=0,N=Array(w.length);g<w.length;g++)N[g]=w[g];return N}else return Array.from(w)},h=2147483647,m=36,E=1,f=26,$=38,_=700,O=72,q=128,R="-",C=/^xn--/,V=/[^\0-\x7E]/,L=/[\x2E\u3002\uFF0E\uFF61]/g,G={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},j=m-E,b=Math.floor,K=String.fromCharCode;function B(w){throw new RangeError(G[w])}function X(w,g){for(var N=[],U=w.length;U--;)N[U]=g(w[U]);return N}function Z(w,g){var N=w.split("@"),U="";N.length>1&&(U=N[0]+"@",w=N[1]),w=w.replace(L,".");var k=w.split("."),re=X(k,g).join(".");return U+re}function W(w){for(var g=[],N=0,U=w.length;N<U;){var k=w.charCodeAt(N++);if(k>=55296&&k<=56319&&N<U){var re=w.charCodeAt(N++);(re&64512)==56320?g.push(((k&1023)<<10)+(re&1023)+65536):(g.push(k),N--)}else g.push(k)}return g}var F=function(g){return String.fromCodePoint.apply(String,d(g))},z=function(g){return g-48<10?g-22:g-65<26?g-65:g-97<26?g-97:m},T=function(g,N){return g+22+75*(g<26)-((N!=0)<<5)},I=function(g,N,U){var k=0;for(g=U?b(g/_):g>>1,g+=b(g/N);g>j*f>>1;k+=m)g=b(g/j);return b(k+(j+1)*g/(g+$))},M=function(g){var N=[],U=g.length,k=0,re=q,ne=O,de=g.lastIndexOf(R);de<0&&(de=0);for(var Se=0;Se<de;++Se)g.charCodeAt(Se)>=128&&B("not-basic"),N.push(g.charCodeAt(Se));for(var Ce=de>0?de+1:0;Ce<U;){for(var ue=k,$e=1,Pe=m;;Pe+=m){Ce>=U&&B("invalid-input");var ie=z(g.charCodeAt(Ce++));(ie>=m||ie>b((h-k)/$e))&&B("overflow"),k+=ie*$e;var Ne=Pe<=ne?E:Pe>=ne+f?f:Pe-ne;if(ie<Ne)break;var Le=m-Ne;$e>b(h/Le)&&B("overflow"),$e*=Le}var Ie=N.length+1;ne=I(k-ue,Ie,ue==0),b(k/Ie)>h-re&&B("overflow"),re+=b(k/Ie),k%=Ie,N.splice(k++,0,re)}return String.fromCodePoint.apply(String,N)},P=function(g){var N=[];g=W(g);var U=g.length,k=q,re=0,ne=O,de=!0,Se=!1,Ce=void 0;try{for(var ue=g[Symbol.iterator](),$e;!(de=($e=ue.next()).done);de=!0){var Pe=$e.value;Pe<128&&N.push(K(Pe))}}catch(un){Se=!0,Ce=un}finally{try{!de&&ue.return&&ue.return()}finally{if(Se)throw Ce}}var ie=N.length,Ne=ie;for(ie&&N.push(R);Ne<U;){var Le=h,Ie=!0,Kt=!1,At=void 0;try{for(var bt=g[Symbol.iterator](),Cr;!(Ie=(Cr=bt.next()).done);Ie=!0){var fr=Cr.value;fr>=k&&fr<Le&&(Le=fr)}}catch(un){Kt=!0,At=un}finally{try{!Ie&&bt.return&&bt.return()}finally{if(Kt)throw At}}var yt=Ne+1;Le-k>b((h-re)/yt)&&B("overflow"),re+=(Le-k)*yt,k=Le;var Lt=!0,lr=!1,Ut=void 0;try{for(var cn=g[Symbol.iterator](),Yo;!(Lt=(Yo=cn.next()).done);Lt=!0){var Qo=Yo.value;if(Qo<k&&++re>h&&B("overflow"),Qo==k){for(var zn=re,xn=m;;xn+=m){var Vn=xn<=ne?E:xn>=ne+f?f:xn-ne;if(zn<Vn)break;var ea=zn-Vn,ta=m-Vn;N.push(K(T(Vn+ea%ta,0))),zn=b(ea/ta)}N.push(K(T(zn,0))),ne=I(re,yt,Ne==ie),re=0,++Ne}}}catch(un){lr=!0,Ut=un}finally{try{!Lt&&cn.return&&cn.return()}finally{if(lr)throw Ut}}++re,++k}return N.join("")},v=function(g){return Z(g,function(N){return C.test(N)?M(N.slice(4).toLowerCase()):N})},S=function(g){return Z(g,function(N){return V.test(N)?"xn--"+P(N):N})},x={version:"2.1.0",ucs2:{decode:W,encode:F},decode:M,encode:P,toASCII:S,toUnicode:v},Y={};function Q(w){var g=w.charCodeAt(0),N=void 0;return g<16?N="%0"+g.toString(16).toUpperCase():g<128?N="%"+g.toString(16).toUpperCase():g<2048?N="%"+(g>>6|192).toString(16).toUpperCase()+"%"+(g&63|128).toString(16).toUpperCase():N="%"+(g>>12|224).toString(16).toUpperCase()+"%"+(g>>6&63|128).toString(16).toUpperCase()+"%"+(g&63|128).toString(16).toUpperCase(),N}function ae(w){for(var g="",N=0,U=w.length;N<U;){var k=parseInt(w.substr(N+1,2),16);if(k<128)g+=String.fromCharCode(k),N+=3;else if(k>=194&&k<224){if(U-N>=6){var re=parseInt(w.substr(N+4,2),16);g+=String.fromCharCode((k&31)<<6|re&63)}else g+=w.substr(N,6);N+=6}else if(k>=224){if(U-N>=9){var ne=parseInt(w.substr(N+4,2),16),de=parseInt(w.substr(N+7,2),16);g+=String.fromCharCode((k&15)<<12|(ne&63)<<6|de&63)}else g+=w.substr(N,9);N+=9}else g+=w.substr(N,3),N+=3}return g}function D(w,g){function N(U){var k=ae(U);return k.match(g.UNRESERVED)?k:U}return w.scheme&&(w.scheme=String(w.scheme).replace(g.PCT_ENCODED,N).toLowerCase().replace(g.NOT_SCHEME,"")),w.userinfo!==void 0&&(w.userinfo=String(w.userinfo).replace(g.PCT_ENCODED,N).replace(g.NOT_USERINFO,Q).replace(g.PCT_ENCODED,o)),w.host!==void 0&&(w.host=String(w.host).replace(g.PCT_ENCODED,N).toLowerCase().replace(g.NOT_HOST,Q).replace(g.PCT_ENCODED,o)),w.path!==void 0&&(w.path=String(w.path).replace(g.PCT_ENCODED,N).replace(w.scheme?g.NOT_PATH:g.NOT_PATH_NOSCHEME,Q).replace(g.PCT_ENCODED,o)),w.query!==void 0&&(w.query=String(w.query).replace(g.PCT_ENCODED,N).replace(g.NOT_QUERY,Q).replace(g.PCT_ENCODED,o)),w.fragment!==void 0&&(w.fragment=String(w.fragment).replace(g.PCT_ENCODED,N).replace(g.NOT_FRAGMENT,Q).replace(g.PCT_ENCODED,o)),w}function A(w){return w.replace(/^0*(.*)/,"$1")||"0"}function H(w,g){var N=w.match(g.IPV4ADDRESS)||[],U=y(N,2),k=U[1];return k?k.split(".").map(A).join("."):w}function J(w,g){var N=w.match(g.IPV6ADDRESS)||[],U=y(N,3),k=U[1],re=U[2];if(k){for(var ne=k.toLowerCase().split("::").reverse(),de=y(ne,2),Se=de[0],Ce=de[1],ue=Ce?Ce.split(":").map(A):[],$e=Se.split(":").map(A),Pe=g.IPV4ADDRESS.test($e[$e.length-1]),ie=Pe?7:8,Ne=$e.length-ie,Le=Array(ie),Ie=0;Ie<ie;++Ie)Le[Ie]=ue[Ie]||$e[Ne+Ie]||"";Pe&&(Le[ie-1]=H(Le[ie-1],g));var Kt=Le.reduce(function(yt,Lt,lr){if(!Lt||Lt==="0"){var Ut=yt[yt.length-1];Ut&&Ut.index+Ut.length===lr?Ut.length++:yt.push({index:lr,length:1})}return yt},[]),At=Kt.sort(function(yt,Lt){return Lt.length-yt.length})[0],bt=void 0;if(At&&At.length>1){var Cr=Le.slice(0,At.index),fr=Le.slice(At.index+At.length);bt=Cr.join(":")+"::"+fr.join(":")}else bt=Le.join(":");return re&&(bt+="%"+re),bt}else return w}var te=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,se="".match(/(){0}/)[1]===void 0;function ve(w){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},N={},U=g.iri!==!1?l:a;g.reference==="suffix"&&(w=(g.scheme?g.scheme+":":"")+"//"+w);var k=w.match(te);if(k){se?(N.scheme=k[1],N.userinfo=k[3],N.host=k[4],N.port=parseInt(k[5],10),N.path=k[6]||"",N.query=k[7],N.fragment=k[8],isNaN(N.port)&&(N.port=k[5])):(N.scheme=k[1]||void 0,N.userinfo=w.indexOf("@")!==-1?k[3]:void 0,N.host=w.indexOf("//")!==-1?k[4]:void 0,N.port=parseInt(k[5],10),N.path=k[6]||"",N.query=w.indexOf("?")!==-1?k[7]:void 0,N.fragment=w.indexOf("#")!==-1?k[8]:void 0,isNaN(N.port)&&(N.port=w.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?k[4]:void 0)),N.host&&(N.host=J(H(N.host,U),U)),N.scheme===void 0&&N.userinfo===void 0&&N.host===void 0&&N.port===void 0&&!N.path&&N.query===void 0?N.reference="same-document":N.scheme===void 0?N.reference="relative":N.fragment===void 0?N.reference="absolute":N.reference="uri",g.reference&&g.reference!=="suffix"&&g.reference!==N.reference&&(N.error=N.error||"URI is not a "+g.reference+" reference.");var re=Y[(g.scheme||N.scheme||"").toLowerCase()];if(!g.unicodeSupport&&(!re||!re.unicodeSupport)){if(N.host&&(g.domainHost||re&&re.domainHost))try{N.host=x.toASCII(N.host.replace(U.PCT_ENCODED,ae).toLowerCase())}catch(ne){N.error=N.error||"Host's domain name can not be converted to ASCII via punycode: "+ne}D(N,a)}else D(N,U);re&&re.parse&&re.parse(N,g)}else N.error=N.error||"URI can not be parsed.";return N}function lt(w,g){var N=g.iri!==!1?l:a,U=[];return w.userinfo!==void 0&&(U.push(w.userinfo),U.push("@")),w.host!==void 0&&U.push(J(H(String(w.host),N),N).replace(N.IPV6ADDRESS,function(k,re,ne){return"["+re+(ne?"%25"+ne:"")+"]"})),(typeof w.port=="number"||typeof w.port=="string")&&(U.push(":"),U.push(String(w.port))),U.length?U.join(""):void 0}var xe=/^\.\.?\//,Ve=/^\/\.(\/|$)/,be=/^\/\.\.(\/|$)/,Ht=/^\/?(?:.|\n)*?(?=\/|$)/;function je(w){for(var g=[];w.length;)if(w.match(xe))w=w.replace(xe,"");else if(w.match(Ve))w=w.replace(Ve,"/");else if(w.match(be))w=w.replace(be,"/"),g.pop();else if(w==="."||w==="..")w="";else{var N=w.match(Ht);if(N){var U=N[0];w=w.slice(U.length),g.push(U)}else throw new Error("Unexpected dot segment condition")}return g.join("")}function ot(w){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},N=g.iri?l:a,U=[],k=Y[(g.scheme||w.scheme||"").toLowerCase()];if(k&&k.serialize&&k.serialize(w,g),w.host&&!N.IPV6ADDRESS.test(w.host)){if(g.domainHost||k&&k.domainHost)try{w.host=g.iri?x.toUnicode(w.host):x.toASCII(w.host.replace(N.PCT_ENCODED,ae).toLowerCase())}catch(de){w.error=w.error||"Host's domain name can not be converted to "+(g.iri?"Unicode":"ASCII")+" via punycode: "+de}}D(w,N),g.reference!=="suffix"&&w.scheme&&(U.push(w.scheme),U.push(":"));var re=lt(w,g);if(re!==void 0&&(g.reference!=="suffix"&&U.push("//"),U.push(re),w.path&&w.path.charAt(0)!=="/"&&U.push("/")),w.path!==void 0){var ne=w.path;!g.absolutePath&&(!k||!k.absolutePath)&&(ne=je(ne)),re===void 0&&(ne=ne.replace(/^\/\//,"/%2F")),U.push(ne)}return w.query!==void 0&&(U.push("?"),U.push(w.query)),w.fragment!==void 0&&(U.push("#"),U.push(w.fragment)),U.join("")}function Dr(w,g){var N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},U=arguments[3],k={};return U||(w=ve(ot(w,N),N),g=ve(ot(g,N),N)),N=N||{},!N.tolerant&&g.scheme?(k.scheme=g.scheme,k.userinfo=g.userinfo,k.host=g.host,k.port=g.port,k.path=je(g.path||""),k.query=g.query):(g.userinfo!==void 0||g.host!==void 0||g.port!==void 0?(k.userinfo=g.userinfo,k.host=g.host,k.port=g.port,k.path=je(g.path||""),k.query=g.query):(g.path?(g.path.charAt(0)==="/"?k.path=je(g.path):((w.userinfo!==void 0||w.host!==void 0||w.port!==void 0)&&!w.path?k.path="/"+g.path:w.path?k.path=w.path.slice(0,w.path.lastIndexOf("/")+1)+g.path:k.path=g.path,k.path=je(k.path)),k.query=g.query):(k.path=w.path,g.query!==void 0?k.query=g.query:k.query=w.query),k.userinfo=w.userinfo,k.host=w.host,k.port=w.port),k.scheme=w.scheme),k.fragment=g.fragment,k}function sn(w,g,N){var U=u({scheme:"null"},N);return ot(Dr(ve(w,U),ve(g,U),U,!0),U)}function cr(w,g){return typeof w=="string"?w=ot(ve(w,g),g):s(w)==="object"&&(w=ve(ot(w,g),g)),w}function on(w,g,N){return typeof w=="string"?w=ot(ve(w,N),N):s(w)==="object"&&(w=ot(w,N)),typeof g=="string"?g=ot(ve(g,N),N):s(g)==="object"&&(g=ot(g,N)),w===g}function Un(w,g){return w&&w.toString().replace(!g||!g.iri?a.ESCAPE:l.ESCAPE,Q)}function pt(w,g){return w&&w.toString().replace(!g||!g.iri?a.PCT_ENCODED:l.PCT_ENCODED,ae)}var ur={scheme:"http",domainHost:!0,parse:function(g,N){return g.host||(g.error=g.error||"HTTP URIs must have a host."),g},serialize:function(g,N){var U=String(g.scheme).toLowerCase()==="https";return(g.port===(U?443:80)||g.port==="")&&(g.port=void 0),g.path||(g.path="/"),g}},Go={scheme:"https",domainHost:ur.domainHost,parse:ur.parse,serialize:ur.serialize};function Bo(w){return typeof w.secure=="boolean"?w.secure:String(w.scheme).toLowerCase()==="wss"}var an={scheme:"ws",domainHost:!0,parse:function(g,N){var U=g;return U.secure=Bo(U),U.resourceName=(U.path||"/")+(U.query?"?"+U.query:""),U.path=void 0,U.query=void 0,U},serialize:function(g,N){if((g.port===(Bo(g)?443:80)||g.port==="")&&(g.port=void 0),typeof g.secure=="boolean"&&(g.scheme=g.secure?"wss":"ws",g.secure=void 0),g.resourceName){var U=g.resourceName.split("?"),k=y(U,2),re=k[0],ne=k[1];g.path=re&&re!=="/"?re:void 0,g.query=ne,g.resourceName=void 0}return g.fragment=void 0,g}},Ho={scheme:"wss",domainHost:an.domainHost,parse:an.parse,serialize:an.serialize},hf={},Ko="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Pt="[0-9A-Fa-f]",mf=i(i("%[EFef]"+Pt+"%"+Pt+Pt+"%"+Pt+Pt)+"|"+i("%[89A-Fa-f]"+Pt+"%"+Pt+Pt)+"|"+i("%"+Pt+Pt)),pf="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",yf="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Ef=n(yf,'[\\"\\\\]'),vf="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",gf=new RegExp(Ko,"g"),Rr=new RegExp(mf,"g"),$f=new RegExp(n("[^]",pf,"[\\.]",'[\\"]',Ef),"g"),Wo=new RegExp(n("[^]",Ko,vf),"g"),_f=Wo;function Wi(w){var g=ae(w);return g.match(gf)?g:w}var Xo={scheme:"mailto",parse:function(g,N){var U=g,k=U.to=U.path?U.path.split(","):[];if(U.path=void 0,U.query){for(var re=!1,ne={},de=U.query.split("&"),Se=0,Ce=de.length;Se<Ce;++Se){var ue=de[Se].split("=");switch(ue[0]){case"to":for(var $e=ue[1].split(","),Pe=0,ie=$e.length;Pe<ie;++Pe)k.push($e[Pe]);break;case"subject":U.subject=pt(ue[1],N);break;case"body":U.body=pt(ue[1],N);break;default:re=!0,ne[pt(ue[0],N)]=pt(ue[1],N);break}}re&&(U.headers=ne)}U.query=void 0;for(var Ne=0,Le=k.length;Ne<Le;++Ne){var Ie=k[Ne].split("@");if(Ie[0]=pt(Ie[0]),N.unicodeSupport)Ie[1]=pt(Ie[1],N).toLowerCase();else try{Ie[1]=x.toASCII(pt(Ie[1],N).toLowerCase())}catch(Kt){U.error=U.error||"Email address's domain name can not be converted to ASCII via punycode: "+Kt}k[Ne]=Ie.join("@")}return U},serialize:function(g,N){var U=g,k=c(g.to);if(k){for(var re=0,ne=k.length;re<ne;++re){var de=String(k[re]),Se=de.lastIndexOf("@"),Ce=de.slice(0,Se).replace(Rr,Wi).replace(Rr,o).replace($f,Q),ue=de.slice(Se+1);try{ue=N.iri?x.toUnicode(ue):x.toASCII(pt(ue,N).toLowerCase())}catch(Ne){U.error=U.error||"Email address's domain name can not be converted to "+(N.iri?"Unicode":"ASCII")+" via punycode: "+Ne}k[re]=Ce+"@"+ue}U.path=k.join(",")}var $e=g.headers=g.headers||{};g.subject&&($e.subject=g.subject),g.body&&($e.body=g.body);var Pe=[];for(var ie in $e)$e[ie]!==hf[ie]&&Pe.push(ie.replace(Rr,Wi).replace(Rr,o).replace(Wo,Q)+"="+$e[ie].replace(Rr,Wi).replace(Rr,o).replace(_f,Q));return Pe.length&&(U.query=Pe.join("&")),U}},Sf=/^([^\:]+)\:(.*)/,Zo={scheme:"urn",parse:function(g,N){var U=g.path&&g.path.match(Sf),k=g;if(U){var re=N.scheme||k.scheme||"urn",ne=U[1].toLowerCase(),de=U[2],Se=re+":"+(N.nid||ne),Ce=Y[Se];k.nid=ne,k.nss=de,k.path=void 0,Ce&&(k=Ce.parse(k,N))}else k.error=k.error||"URN can not be parsed.";return k},serialize:function(g,N){var U=N.scheme||g.scheme||"urn",k=g.nid,re=U+":"+(N.nid||k),ne=Y[re];ne&&(g=ne.serialize(g,N));var de=g,Se=g.nss;return de.path=(k||N.nid)+":"+Se,de}},wf=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Jo={scheme:"urn:uuid",parse:function(g,N){var U=g;return U.uuid=U.nss,U.nss=void 0,!N.tolerant&&(!U.uuid||!U.uuid.match(wf))&&(U.error=U.error||"UUID is not valid."),U},serialize:function(g,N){var U=g;return U.nss=(g.uuid||"").toLowerCase(),U}};Y[ur.scheme]=ur,Y[Go.scheme]=Go,Y[an.scheme]=an,Y[Ho.scheme]=Ho,Y[Xo.scheme]=Xo,Y[Zo.scheme]=Zo,Y[Jo.scheme]=Jo,r.SCHEMES=Y,r.pctEncChar=Q,r.pctDecChars=ae,r.parse=ve,r.removeDotSegments=je,r.serialize=ot,r.resolveComponents=Dr,r.resolve=sn,r.normalize=cr,r.equal=on,r.escapeComponent=Un,r.unescapeComponent=pt,Object.defineProperty(r,"__esModule",{value:!0})})})($s,$s.exports);Object.defineProperty(to,"__esModule",{value:!0});const qu=$s.exports;qu.code='require("ajv/dist/runtime/uri").default';to.default=qu;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=Ai();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=oe;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=bi,i=Li,s=wr,o=ut,c=oe,u=He,p=Rn,a=he,l=Gm,y=to,d=(T,I)=>new RegExp(T,I);d.code="new RegExp";const h=["removeAdditional","useDefaults","coerceTypes"],m=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),E={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},f={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},$=200;function _(T){var I,M,P,v,S,x,Y,Q,ae,D,A,H,J,te,se,ve,lt,xe,Ve,be,Ht,je,ot,Dr,sn;const cr=T.strict,on=(I=T.code)===null||I===void 0?void 0:I.optimize,Un=on===!0||on===void 0?1:on||0,pt=(P=(M=T.code)===null||M===void 0?void 0:M.regExp)!==null&&P!==void 0?P:d,ur=(v=T.uriResolver)!==null&&v!==void 0?v:y.default;return{strictSchema:(x=(S=T.strictSchema)!==null&&S!==void 0?S:cr)!==null&&x!==void 0?x:!0,strictNumbers:(Q=(Y=T.strictNumbers)!==null&&Y!==void 0?Y:cr)!==null&&Q!==void 0?Q:!0,strictTypes:(D=(ae=T.strictTypes)!==null&&ae!==void 0?ae:cr)!==null&&D!==void 0?D:"log",strictTuples:(H=(A=T.strictTuples)!==null&&A!==void 0?A:cr)!==null&&H!==void 0?H:"log",strictRequired:(te=(J=T.strictRequired)!==null&&J!==void 0?J:cr)!==null&&te!==void 0?te:!1,code:T.code?{...T.code,optimize:Un,regExp:pt}:{optimize:Un,regExp:pt},loopRequired:(se=T.loopRequired)!==null&&se!==void 0?se:$,loopEnum:(ve=T.loopEnum)!==null&&ve!==void 0?ve:$,meta:(lt=T.meta)!==null&&lt!==void 0?lt:!0,messages:(xe=T.messages)!==null&&xe!==void 0?xe:!0,inlineRefs:(Ve=T.inlineRefs)!==null&&Ve!==void 0?Ve:!0,schemaId:(be=T.schemaId)!==null&&be!==void 0?be:"$id",addUsedSchema:(Ht=T.addUsedSchema)!==null&&Ht!==void 0?Ht:!0,validateSchema:(je=T.validateSchema)!==null&&je!==void 0?je:!0,validateFormats:(ot=T.validateFormats)!==null&&ot!==void 0?ot:!0,unicodeRegExp:(Dr=T.unicodeRegExp)!==null&&Dr!==void 0?Dr:!0,int32range:(sn=T.int32range)!==null&&sn!==void 0?sn:!0,uriResolver:ur}}class O{constructor(I={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,I=this.opts={...I,..._(I)};const{es5:M,lines:P}=this.opts.code;this.scope=new c.ValueScope({scope:{},prefixes:m,es5:M,lines:P}),this.logger=b(I.logger);const v=I.validateFormats;I.validateFormats=!1,this.RULES=(0,s.getRules)(),q.call(this,E,I,"NOT SUPPORTED"),q.call(this,f,I,"DEPRECATED","warn"),this._metaOpts=G.call(this),I.formats&&V.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),I.keywords&&L.call(this,I.keywords),typeof I.meta=="object"&&this.addMetaSchema(I.meta),C.call(this),I.validateFormats=v}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:I,meta:M,schemaId:P}=this.opts;let v=l;P==="id"&&(v={...l},v.id=v.$id,delete v.$id),M&&I&&this.addMetaSchema(v,v[P],!1)}defaultMeta(){const{meta:I,schemaId:M}=this.opts;return this.opts.defaultMeta=typeof I=="object"?I[M]||I:void 0}validate(I,M){let P;if(typeof I=="string"){if(P=this.getSchema(I),!P)throw new Error(`no schema with key or ref "${I}"`)}else P=this.compile(I);const v=P(M);return"$async"in P||(this.errors=P.errors),v}compile(I,M){const P=this._addSchema(I,M);return P.validate||this._compileSchemaEnv(P)}compileAsync(I,M){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:P}=this.opts;return v.call(this,I,M);async function v(D,A){await S.call(this,D.$schema);const H=this._addSchema(D,A);return H.validate||x.call(this,H)}async function S(D){D&&!this.getSchema(D)&&await v.call(this,{$ref:D},!0)}async function x(D){try{return this._compileSchemaEnv(D)}catch(A){if(!(A instanceof i.default))throw A;return Y.call(this,A),await Q.call(this,A.missingSchema),x.call(this,D)}}function Y({missingSchema:D,missingRef:A}){if(this.refs[D])throw new Error(`AnySchema ${D} is loaded but ${A} cannot be resolved`)}async function Q(D){const A=await ae.call(this,D);this.refs[D]||await S.call(this,A.$schema),this.refs[D]||this.addSchema(A,D,M)}async function ae(D){const A=this._loading[D];if(A)return A;try{return await(this._loading[D]=P(D))}finally{delete this._loading[D]}}}addSchema(I,M,P,v=this.opts.validateSchema){if(Array.isArray(I)){for(const x of I)this.addSchema(x,void 0,P,v);return this}let S;if(typeof I=="object"){const{schemaId:x}=this.opts;if(S=I[x],S!==void 0&&typeof S!="string")throw new Error(`schema ${x} must be string`)}return M=(0,u.normalizeId)(M||S),this._checkUnique(M),this.schemas[M]=this._addSchema(I,P,M,v,!0),this}addMetaSchema(I,M,P=this.opts.validateSchema){return this.addSchema(I,M,!0,P),this}validateSchema(I,M){if(typeof I=="boolean")return!0;let P;if(P=I.$schema,P!==void 0&&typeof P!="string")throw new Error("$schema must be a string");if(P=P||this.opts.defaultMeta||this.defaultMeta(),!P)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const v=this.validate(P,I);if(!v&&M){const S="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(S);else throw new Error(S)}return v}getSchema(I){let M;for(;typeof(M=R.call(this,I))=="string";)I=M;if(M===void 0){const{schemaId:P}=this.opts,v=new o.SchemaEnv({schema:{},schemaId:P});if(M=o.resolveSchema.call(this,v,I),!M)return;this.refs[I]=M}return M.validate||this._compileSchemaEnv(M)}removeSchema(I){if(I instanceof RegExp)return this._removeAllSchemas(this.schemas,I),this._removeAllSchemas(this.refs,I),this;switch(typeof I){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const M=R.call(this,I);return typeof M=="object"&&this._cache.delete(M.schema),delete this.schemas[I],delete this.refs[I],this}case"object":{const M=I;this._cache.delete(M);let P=I[this.opts.schemaId];return P&&(P=(0,u.normalizeId)(P),delete this.schemas[P],delete this.refs[P]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(I){for(const M of I)this.addKeyword(M);return this}addKeyword(I,M){let P;if(typeof I=="string")P=I,typeof M=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),M.keyword=P);else if(typeof I=="object"&&M===void 0){if(M=I,P=M.keyword,Array.isArray(P)&&!P.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(B.call(this,P,M),!M)return(0,a.eachItem)(P,S=>X.call(this,S)),this;W.call(this,M);const v={...M,type:(0,p.getJSONTypes)(M.type),schemaType:(0,p.getJSONTypes)(M.schemaType)};return(0,a.eachItem)(P,v.type.length===0?S=>X.call(this,S,v):S=>v.type.forEach(x=>X.call(this,S,v,x))),this}getKeyword(I){const M=this.RULES.all[I];return typeof M=="object"?M.definition:!!M}removeKeyword(I){const{RULES:M}=this;delete M.keywords[I],delete M.all[I];for(const P of M.rules){const v=P.rules.findIndex(S=>S.keyword===I);v>=0&&P.rules.splice(v,1)}return this}addFormat(I,M){return typeof M=="string"&&(M=new RegExp(M)),this.formats[I]=M,this}errorsText(I=this.errors,{separator:M=", ",dataVar:P="data"}={}){return!I||I.length===0?"No errors":I.map(v=>`${P}${v.instancePath} ${v.message}`).reduce((v,S)=>v+M+S)}$dataMetaSchema(I,M){const P=this.RULES.all;I=JSON.parse(JSON.stringify(I));for(const v of M){const S=v.split("/").slice(1);let x=I;for(const Y of S)x=x[Y];for(const Y in P){const Q=P[Y];if(typeof Q!="object")continue;const{$data:ae}=Q.definition,D=x[Y];ae&&D&&(x[Y]=z(D))}}return I}_removeAllSchemas(I,M){for(const P in I){const v=I[P];(!M||M.test(P))&&(typeof v=="string"?delete I[P]:v&&!v.meta&&(this._cache.delete(v.schema),delete I[P]))}}_addSchema(I,M,P,v=this.opts.validateSchema,S=this.opts.addUsedSchema){let x;const{schemaId:Y}=this.opts;if(typeof I=="object")x=I[Y];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof I!="boolean")throw new Error("schema must be object or boolean")}let Q=this._cache.get(I);if(Q!==void 0)return Q;P=(0,u.normalizeId)(x||P);const ae=u.getSchemaRefs.call(this,I,P);return Q=new o.SchemaEnv({schema:I,schemaId:Y,meta:M,baseId:P,localRefs:ae}),this._cache.set(Q.schema,Q),S&&!P.startsWith("#")&&(P&&this._checkUnique(P),this.refs[P]=Q),v&&this.validateSchema(I,!0),Q}_checkUnique(I){if(this.schemas[I]||this.refs[I])throw new Error(`schema with key or id "${I}" already exists`)}_compileSchemaEnv(I){if(I.meta?this._compileMetaSchema(I):o.compileSchema.call(this,I),!I.validate)throw new Error("ajv implementation error");return I.validate}_compileMetaSchema(I){const M=this.opts;this.opts=this._metaOpts;try{o.compileSchema.call(this,I)}finally{this.opts=M}}}e.default=O,O.ValidationError=n.default,O.MissingRefError=i.default;function q(T,I,M,P="error"){for(const v in T){const S=v;S in I&&this.logger[P](`${M}: option ${v}. ${T[S]}`)}}function R(T){return T=(0,u.normalizeId)(T),this.schemas[T]||this.refs[T]}function C(){const T=this.opts.schemas;if(!!T)if(Array.isArray(T))this.addSchema(T);else for(const I in T)this.addSchema(T[I],I)}function V(){for(const T in this.opts.formats){const I=this.opts.formats[T];I&&this.addFormat(T,I)}}function L(T){if(Array.isArray(T)){this.addVocabulary(T);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const I in T){const M=T[I];M.keyword||(M.keyword=I),this.addKeyword(M)}}function G(){const T={...this.opts};for(const I of h)delete T[I];return T}const j={log(){},warn(){},error(){}};function b(T){if(T===!1)return j;if(T===void 0)return console;if(T.log&&T.warn&&T.error)return T;throw new Error("logger must implement log, warn and error methods")}const K=/^[a-z_$][a-z0-9_$:-]*$/i;function B(T,I){const{RULES:M}=this;if((0,a.eachItem)(T,P=>{if(M.keywords[P])throw new Error(`Keyword ${P} is already defined`);if(!K.test(P))throw new Error(`Keyword ${P} has invalid name`)}),!!I&&I.$data&&!("code"in I||"validate"in I))throw new Error('$data keyword must have "code" or "validate" function')}function X(T,I,M){var P;const v=I==null?void 0:I.post;if(M&&v)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:S}=this;let x=v?S.post:S.rules.find(({type:Q})=>Q===M);if(x||(x={type:M,rules:[]},S.rules.push(x)),S.keywords[T]=!0,!I)return;const Y={keyword:T,definition:{...I,type:(0,p.getJSONTypes)(I.type),schemaType:(0,p.getJSONTypes)(I.schemaType)}};I.before?Z.call(this,x,Y,I.before):x.rules.push(Y),S.all[T]=Y,(P=I.implements)===null||P===void 0||P.forEach(Q=>this.addKeyword(Q))}function Z(T,I,M){const P=T.rules.findIndex(v=>v.keyword===M);P>=0?T.rules.splice(P,0,I):(T.rules.push(I),this.logger.warn(`rule ${M} is not defined`))}function W(T){let{metaSchema:I}=T;I!==void 0&&(T.$data&&this.opts.$data&&(I=z(I)),T.validateSchema=this.compile(I,!0))}const F={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function z(T){return{anyOf:[T,F]}}})(Au);var ro={},no={},io={};Object.defineProperty(io,"__esModule",{value:!0});const Bm={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};io.default=Bm;var Nr={};Object.defineProperty(Nr,"__esModule",{value:!0});Nr.callRef=Nr.getValidate=void 0;const Hm=Li,Aa=ce,ct=oe,br=kt,ba=ut,Wn=he,Km={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:s,validateName:o,opts:c,self:u}=n,{root:p}=s;if((r==="#"||r==="#/")&&i===p.baseId)return l();const a=ba.resolveRef.call(u,p,i,r);if(a===void 0)throw new Hm.default(n.opts.uriResolver,i,r);if(a instanceof ba.SchemaEnv)return y(a);return d(a);function l(){if(s===p)return ai(e,o,s,s.$async);const h=t.scopeValue("root",{ref:p});return ai(e,(0,ct._)`${h}.validate`,p,p.$async)}function y(h){const m=Gu(e,h);ai(e,m,h,h.$async)}function d(h){const m=t.scopeValue("schema",c.code.source===!0?{ref:h,code:(0,ct.stringify)(h)}:{ref:h}),E=t.name("valid"),f=e.subschema({schema:h,dataTypes:[],schemaPath:ct.nil,topSchemaRef:m,errSchemaPath:r},E);e.mergeEvaluated(f),e.ok(E)}}};function Gu(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,ct._)`${r.scopeValue("wrapper",{ref:t})}.validate`}Nr.getValidate=Gu;function ai(e,t,r,n){const{gen:i,it:s}=e,{allErrors:o,schemaEnv:c,opts:u}=s,p=u.passContext?br.default.this:ct.nil;n?a():l();function a(){if(!c.$async)throw new Error("async schema referenced by sync schema");const h=i.let("valid");i.try(()=>{i.code((0,ct._)`await ${(0,Aa.callValidateCode)(e,t,p)}`),d(t),o||i.assign(h,!0)},m=>{i.if((0,ct._)`!(${m} instanceof ${s.ValidationError})`,()=>i.throw(m)),y(m),o||i.assign(h,!1)}),e.ok(h)}function l(){e.result((0,Aa.callValidateCode)(e,t,p),()=>d(t),()=>y(t))}function y(h){const m=(0,ct._)`${h}.errors`;i.assign(br.default.vErrors,(0,ct._)`${br.default.vErrors} === null ? ${m} : ${br.default.vErrors}.concat(${m})`),i.assign(br.default.errors,(0,ct._)`${br.default.vErrors}.length`)}function d(h){var m;if(!s.opts.unevaluated)return;const E=(m=r==null?void 0:r.validate)===null||m===void 0?void 0:m.evaluated;if(s.props!==!0)if(E&&!E.dynamicProps)E.props!==void 0&&(s.props=Wn.mergeEvaluated.props(i,E.props,s.props));else{const f=i.var("props",(0,ct._)`${h}.evaluated.props`);s.props=Wn.mergeEvaluated.props(i,f,s.props,ct.Name)}if(s.items!==!0)if(E&&!E.dynamicItems)E.items!==void 0&&(s.items=Wn.mergeEvaluated.items(i,E.items,s.items));else{const f=i.var("items",(0,ct._)`${h}.evaluated.items`);s.items=Wn.mergeEvaluated.items(i,f,s.items,ct.Name)}}}Nr.callRef=ai;Nr.default=Km;Object.defineProperty(no,"__esModule",{value:!0});const Wm=io,Xm=Nr,Zm=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Wm.default,Xm.default];no.default=Zm;var so={},oo={};Object.defineProperty(oo,"__esModule",{value:!0});const vi=oe,Zt=vi.operators,gi={maximum:{okStr:"<=",ok:Zt.LTE,fail:Zt.GT},minimum:{okStr:">=",ok:Zt.GTE,fail:Zt.LT},exclusiveMaximum:{okStr:"<",ok:Zt.LT,fail:Zt.GTE},exclusiveMinimum:{okStr:">",ok:Zt.GT,fail:Zt.LTE}},Jm={message:({keyword:e,schemaCode:t})=>(0,vi.str)`must be ${gi[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,vi._)`{comparison: ${gi[e].okStr}, limit: ${t}}`},Ym={keyword:Object.keys(gi),type:"number",schemaType:"number",$data:!0,error:Jm,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,vi._)`${r} ${gi[t].fail} ${n} || isNaN(${r})`)}};oo.default=Ym;var ao={};Object.defineProperty(ao,"__esModule",{value:!0});const vn=oe,Qm={message:({schemaCode:e})=>(0,vn.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,vn._)`{multipleOf: ${e}}`},ep={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Qm,code(e){const{gen:t,data:r,schemaCode:n,it:i}=e,s=i.opts.multipleOfPrecision,o=t.let("res"),c=s?(0,vn._)`Math.abs(Math.round(${o}) - ${o}) > 1e-${s}`:(0,vn._)`${o} !== parseInt(${o})`;e.fail$data((0,vn._)`(${n} === 0 || (${o} = ${r}/${n}, ${c}))`)}};ao.default=ep;var co={},uo={};Object.defineProperty(uo,"__esModule",{value:!0});function Bu(e){const t=e.length;let r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}uo.default=Bu;Bu.code='require("ajv/dist/runtime/ucs2length").default';Object.defineProperty(co,"__esModule",{value:!0});const yr=oe,tp=he,rp=uo,np={message({keyword:e,schemaCode:t}){const r=e==="maxLength"?"more":"fewer";return(0,yr.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,yr._)`{limit: ${e}}`},ip={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:np,code(e){const{keyword:t,data:r,schemaCode:n,it:i}=e,s=t==="maxLength"?yr.operators.GT:yr.operators.LT,o=i.opts.unicode===!1?(0,yr._)`${r}.length`:(0,yr._)`${(0,tp.useFunc)(e.gen,rp.default)}(${r})`;e.fail$data((0,yr._)`${o} ${s} ${n}`)}};co.default=ip;var fo={};Object.defineProperty(fo,"__esModule",{value:!0});const sp=ce,$i=oe,op={message:({schemaCode:e})=>(0,$i.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,$i._)`{pattern: ${e}}`},ap={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:op,code(e){const{data:t,$data:r,schema:n,schemaCode:i,it:s}=e,o=s.opts.unicodeRegExp?"u":"",c=r?(0,$i._)`(new RegExp(${i}, ${o}))`:(0,sp.usePattern)(e,n);e.fail$data((0,$i._)`!${c}.test(${t})`)}};fo.default=ap;var lo={};Object.defineProperty(lo,"__esModule",{value:!0});const gn=oe,cp={message({keyword:e,schemaCode:t}){const r=e==="maxProperties"?"more":"fewer";return(0,gn.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,gn._)`{limit: ${e}}`},up={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:cp,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?gn.operators.GT:gn.operators.LT;e.fail$data((0,gn._)`Object.keys(${r}).length ${i} ${n}`)}};lo.default=up;var ho={};Object.defineProperty(ho,"__esModule",{value:!0});const ln=ce,$n=oe,fp=he,lp={message:({params:{missingProperty:e}})=>(0,$n.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,$n._)`{missingProperty: ${e}}`},dp={keyword:"required",type:"object",schemaType:"array",$data:!0,error:lp,code(e){const{gen:t,schema:r,schemaCode:n,data:i,$data:s,it:o}=e,{opts:c}=o;if(!s&&r.length===0)return;const u=r.length>=c.loopRequired;if(o.allErrors?p():a(),c.strictRequired){const d=e.parentSchema.properties,{definedProperties:h}=e.it;for(const m of r)if((d==null?void 0:d[m])===void 0&&!h.has(m)){const E=o.schemaEnv.baseId+o.errSchemaPath,f=`required property "${m}" is not defined at "${E}" (strictRequired)`;(0,fp.checkStrictMode)(o,f,o.opts.strictRequired)}}function p(){if(u||s)e.block$data($n.nil,l);else for(const d of r)(0,ln.checkReportMissingProp)(e,d)}function a(){const d=t.let("missing");if(u||s){const h=t.let("valid",!0);e.block$data(h,()=>y(d,h)),e.ok(h)}else t.if((0,ln.checkMissingProp)(e,r,d)),(0,ln.reportMissingProp)(e,d),t.else()}function l(){t.forOf("prop",n,d=>{e.setParams({missingProperty:d}),t.if((0,ln.noPropertyInData)(t,i,d,c.ownProperties),()=>e.error())})}function y(d,h){e.setParams({missingProperty:d}),t.forOf(d,n,()=>{t.assign(h,(0,ln.propertyInData)(t,i,d,c.ownProperties)),t.if((0,$n.not)(h),()=>{e.error(),t.break()})},$n.nil)}}};ho.default=dp;var mo={};Object.defineProperty(mo,"__esModule",{value:!0});const _n=oe,hp={message({keyword:e,schemaCode:t}){const r=e==="maxItems"?"more":"fewer";return(0,_n.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,_n._)`{limit: ${e}}`},mp={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:hp,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?_n.operators.GT:_n.operators.LT;e.fail$data((0,_n._)`${r}.length ${i} ${n}`)}};mo.default=mp;var po={},kn={};Object.defineProperty(kn,"__esModule",{value:!0});const Hu=Mu;Hu.code='require("ajv/dist/runtime/equal").default';kn.default=Hu;Object.defineProperty(po,"__esModule",{value:!0});const rs=Rn,Ge=oe,pp=he,yp=kn,Ep={message:({params:{i:e,j:t}})=>(0,Ge.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Ge._)`{i: ${e}, j: ${t}}`},vp={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Ep,code(e){const{gen:t,data:r,$data:n,schema:i,parentSchema:s,schemaCode:o,it:c}=e;if(!n&&!i)return;const u=t.let("valid"),p=s.items?(0,rs.getSchemaTypes)(s.items):[];e.block$data(u,a,(0,Ge._)`${o} === false`),e.ok(u);function a(){const h=t.let("i",(0,Ge._)`${r}.length`),m=t.let("j");e.setParams({i:h,j:m}),t.assign(u,!0),t.if((0,Ge._)`${h} > 1`,()=>(l()?y:d)(h,m))}function l(){return p.length>0&&!p.some(h=>h==="object"||h==="array")}function y(h,m){const E=t.name("item"),f=(0,rs.checkDataTypes)(p,E,c.opts.strictNumbers,rs.DataType.Wrong),$=t.const("indices",(0,Ge._)`{}`);t.for((0,Ge._)`;${h}--;`,()=>{t.let(E,(0,Ge._)`${r}[${h}]`),t.if(f,(0,Ge._)`continue`),p.length>1&&t.if((0,Ge._)`typeof ${E} == "string"`,(0,Ge._)`${E} += "_"`),t.if((0,Ge._)`typeof ${$}[${E}] == "number"`,()=>{t.assign(m,(0,Ge._)`${$}[${E}]`),e.error(),t.assign(u,!1).break()}).code((0,Ge._)`${$}[${E}] = ${h}`)})}function d(h,m){const E=(0,pp.useFunc)(t,yp.default),f=t.name("outer");t.label(f).for((0,Ge._)`;${h}--;`,()=>t.for((0,Ge._)`${m} = ${h}; ${m}--;`,()=>t.if((0,Ge._)`${E}(${r}[${h}], ${r}[${m}])`,()=>{e.error(),t.assign(u,!1).break(f)})))}}};po.default=vp;var yo={};Object.defineProperty(yo,"__esModule",{value:!0});const _s=oe,gp=he,$p=kn,_p={message:"must be equal to constant",params:({schemaCode:e})=>(0,_s._)`{allowedValue: ${e}}`},Sp={keyword:"const",$data:!0,error:_p,code(e){const{gen:t,data:r,$data:n,schemaCode:i,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,_s._)`!${(0,gp.useFunc)(t,$p.default)}(${r}, ${i})`):e.fail((0,_s._)`${s} !== ${r}`)}};yo.default=Sp;var Eo={};Object.defineProperty(Eo,"__esModule",{value:!0});const mn=oe,wp=he,Np=kn,Ip={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,mn._)`{allowedValues: ${e}}`},Op={keyword:"enum",schemaType:"array",$data:!0,error:Ip,code(e){const{gen:t,data:r,$data:n,schema:i,schemaCode:s,it:o}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");const c=i.length>=o.opts.loopEnum;let u;const p=()=>u!=null?u:u=(0,wp.useFunc)(t,Np.default);let a;if(c||n)a=t.let("valid"),e.block$data(a,l);else{if(!Array.isArray(i))throw new Error("ajv implementation error");const d=t.const("vSchema",s);a=(0,mn.or)(...i.map((h,m)=>y(d,m)))}e.pass(a);function l(){t.assign(a,!1),t.forOf("v",s,d=>t.if((0,mn._)`${p()}(${r}, ${d})`,()=>t.assign(a,!0).break()))}function y(d,h){const m=i[h];return typeof m=="object"&&m!==null?(0,mn._)`${p()}(${r}, ${d}[${h}])`:(0,mn._)`${r} === ${m}`}}};Eo.default=Op;Object.defineProperty(so,"__esModule",{value:!0});const Tp=oo,Dp=ao,Rp=co,Cp=fo,Pp=lo,Ap=ho,bp=mo,Lp=po,Fp=yo,jp=Eo,Mp=[Tp.default,Dp.default,Rp.default,Cp.default,Pp.default,Ap.default,bp.default,Lp.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Fp.default,jp.default];so.default=Mp;var vo={},en={};Object.defineProperty(en,"__esModule",{value:!0});en.validateAdditionalItems=void 0;const Er=oe,Ss=he,kp={message:({params:{len:e}})=>(0,Er.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Er._)`{limit: ${e}}`},Up={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:kp,code(e){const{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Ss.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Ku(e,n)}};function Ku(e,t){const{gen:r,schema:n,data:i,keyword:s,it:o}=e;o.items=!0;const c=r.const("len",(0,Er._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Er._)`${c} <= ${t.length}`);else if(typeof n=="object"&&!(0,Ss.alwaysValidSchema)(o,n)){const p=r.var("valid",(0,Er._)`${c} <= ${t.length}`);r.if((0,Er.not)(p),()=>u(p)),e.ok(p)}function u(p){r.forRange("i",t.length,c,a=>{e.subschema({keyword:s,dataProp:a,dataPropType:Ss.Type.Num},p),o.allErrors||r.if((0,Er.not)(p),()=>r.break())})}}en.validateAdditionalItems=Ku;en.default=Up;var go={},tn={};Object.defineProperty(tn,"__esModule",{value:!0});tn.validateTuple=void 0;const La=oe,ci=he,zp=ce,xp={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return Wu(e,"additionalItems",t);r.items=!0,!(0,ci.alwaysValidSchema)(r,t)&&e.ok((0,zp.validateArray)(e))}};function Wu(e,t,r=e.schema){const{gen:n,parentSchema:i,data:s,keyword:o,it:c}=e;a(i),c.opts.unevaluated&&r.length&&c.items!==!0&&(c.items=ci.mergeEvaluated.items(n,r.length,c.items));const u=n.name("valid"),p=n.const("len",(0,La._)`${s}.length`);r.forEach((l,y)=>{(0,ci.alwaysValidSchema)(c,l)||(n.if((0,La._)`${p} > ${y}`,()=>e.subschema({keyword:o,schemaProp:y,dataProp:y},u)),e.ok(u))});function a(l){const{opts:y,errSchemaPath:d}=c,h=r.length,m=h===l.minItems&&(h===l.maxItems||l[t]===!1);if(y.strictTuples&&!m){const E=`"${o}" is ${h}-tuple, but minItems or maxItems/${t} are not specified or different at path "${d}"`;(0,ci.checkStrictMode)(c,E,y.strictTuples)}}}tn.validateTuple=Wu;tn.default=xp;Object.defineProperty(go,"__esModule",{value:!0});const Vp=tn,qp={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,Vp.validateTuple)(e,"items")};go.default=qp;var $o={};Object.defineProperty($o,"__esModule",{value:!0});const Fa=oe,Gp=he,Bp=ce,Hp=en,Kp={message:({params:{len:e}})=>(0,Fa.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Fa._)`{limit: ${e}}`},Wp={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:Kp,code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,Gp.alwaysValidSchema)(n,t)&&(i?(0,Hp.validateAdditionalItems)(e,i):e.ok((0,Bp.validateArray)(e)))}};$o.default=Wp;var _o={};Object.defineProperty(_o,"__esModule",{value:!0});const Et=oe,Xn=he,Xp={message:({params:{min:e,max:t}})=>t===void 0?(0,Et.str)`must contain at least ${e} valid item(s)`:(0,Et.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,Et._)`{minContains: ${e}}`:(0,Et._)`{minContains: ${e}, maxContains: ${t}}`},Zp={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:Xp,code(e){const{gen:t,schema:r,parentSchema:n,data:i,it:s}=e;let o,c;const{minContains:u,maxContains:p}=n;s.opts.next?(o=u===void 0?1:u,c=p):o=1;const a=t.const("len",(0,Et._)`${i}.length`);if(e.setParams({min:o,max:c}),c===void 0&&o===0){(0,Xn.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&o>c){(0,Xn.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Xn.alwaysValidSchema)(s,r)){let m=(0,Et._)`${a} >= ${o}`;c!==void 0&&(m=(0,Et._)`${m} && ${a} <= ${c}`),e.pass(m);return}s.items=!0;const l=t.name("valid");c===void 0&&o===1?d(l,()=>t.if(l,()=>t.break())):o===0?(t.let(l,!0),c!==void 0&&t.if((0,Et._)`${i}.length > 0`,y)):(t.let(l,!1),y()),e.result(l,()=>e.reset());function y(){const m=t.name("_valid"),E=t.let("count",0);d(m,()=>t.if(m,()=>h(E)))}function d(m,E){t.forRange("i",0,a,f=>{e.subschema({keyword:"contains",dataProp:f,dataPropType:Xn.Type.Num,compositeRule:!0},m),E()})}function h(m){t.code((0,Et._)`${m}++`),c===void 0?t.if((0,Et._)`${m} >= ${o}`,()=>t.assign(l,!0).break()):(t.if((0,Et._)`${m} > ${c}`,()=>t.assign(l,!1).break()),o===1?t.assign(l,!0):t.if((0,Et._)`${m} >= ${o}`,()=>t.assign(l,!0)))}}};_o.default=Zp;var Xu={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=oe,r=he,n=ce;e.error={message:({params:{property:u,depsCount:p,deps:a}})=>{const l=p===1?"property":"properties";return(0,t.str)`must have ${l} ${a} when property ${u} is present`},params:({params:{property:u,depsCount:p,deps:a,missingProperty:l}})=>(0,t._)`{property: ${u},
11
+ || ${L} === "boolean" || ${C} === null`).assign(G,(0,i._)`[${C}]`)}}}function d({gen:_,parentData:O,parentDataProperty:q},R){_.if((0,i._)`${O} !== undefined`,()=>_.assign((0,i._)`${O}[${q}]`,R))}function h(_,O,q,R=o.Correct){const C=R===o.Correct?i.operators.EQ:i.operators.NEQ;let V;switch(_){case"null":return(0,i._)`${O} ${C} null`;case"array":V=(0,i._)`Array.isArray(${O})`;break;case"object":V=(0,i._)`${O} && typeof ${O} == "object" && !Array.isArray(${O})`;break;case"integer":V=L((0,i._)`!(${O} % 1) && !isNaN(${O})`);break;case"number":V=L();break;default:return(0,i._)`typeof ${O} ${C} ${_}`}return R===o.Correct?V:(0,i.not)(V);function L(G=i.nil){return(0,i.and)((0,i._)`typeof ${O} == "number"`,G,q?(0,i._)`isFinite(${O})`:i.nil)}}e.checkDataType=h;function m(_,O,q,R){if(_.length===1)return h(_[0],O,q,R);let C;const V=(0,s.toHash)(_);if(V.array&&V.object){const L=(0,i._)`typeof ${O} != "object"`;C=V.null?L:(0,i._)`!${O} || ${L}`,delete V.null,delete V.array,delete V.object}else C=i.nil;V.number&&delete V.integer;for(const L in V)C=(0,i.and)(C,h(L,O,q,R));return C}e.checkDataTypes=m;const E={message:({schema:_})=>`must be ${_}`,params:({schema:_,schemaValue:O})=>typeof _=="string"?(0,i._)`{type: ${_}}`:(0,i._)`{type: ${O}}`};function f(_){const O=$(_);(0,n.reportError)(O,E)}e.reportTypeError=f;function $(_){const{gen:O,data:q,schema:R}=_,C=(0,s.schemaRefOrVal)(_,R,"type");return{gen:O,keyword:"type",data:q,schema:R.type,schemaCode:C,schemaValue:C,parentSchema:R,params:{},it:_}}})(Rn);var fn={},Da;function nm(){if(Da)return fn;Da=1,Object.defineProperty(fn,"__esModule",{value:!0}),fn.assignDefaults=void 0;const e=oe,t=he;function r(i,s){const{properties:o,items:c}=i.schema;if(s==="object"&&o)for(const u in o)n(i,u,o[u].default);else s==="array"&&Array.isArray(c)&&c.forEach((u,p)=>n(i,p,u.default))}fn.assignDefaults=r;function n(i,s,o){const{gen:c,compositeRule:u,data:p,opts:a}=i;if(o===void 0)return;const l=(0,e._)`${p}${(0,e.getProperty)(s)}`;if(u){(0,t.checkStrictMode)(i,`default is ignored for: ${l}`);return}let y=(0,e._)`${l} === undefined`;a.useDefaults==="empty"&&(y=(0,e._)`${y} || ${l} === null || ${l} === ""`),c.if(y,(0,e._)`${l} = ${(0,e.stringify)(o)}`)}return fn}var gt={},ce={};Object.defineProperty(ce,"__esModule",{value:!0});ce.validateUnion=ce.validateArray=ce.usePattern=ce.callValidateCode=ce.schemaProperties=ce.allSchemaProperties=ce.noPropertyInData=ce.propertyInData=ce.isOwnProperty=ce.hasPropFunc=ce.reportMissingProp=ce.checkMissingProp=ce.checkReportMissingProp=void 0;const we=oe,Js=he,Xt=kt,im=he;function sm(e,t){const{gen:r,data:n,it:i}=e;r.if(Qs(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,we._)`${t}`},!0),e.error()})}ce.checkReportMissingProp=sm;function om({gen:e,data:t,it:{opts:r}},n,i){return(0,we.or)(...n.map(s=>(0,we.and)(Qs(e,t,s,r.ownProperties),(0,we._)`${i} = ${s}`)))}ce.checkMissingProp=om;function am(e,t){e.setParams({missingProperty:t},!0),e.error()}ce.reportMissingProp=am;function Fu(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,we._)`Object.prototype.hasOwnProperty`})}ce.hasPropFunc=Fu;function Ys(e,t,r){return(0,we._)`${Fu(e)}.call(${t}, ${r})`}ce.isOwnProperty=Ys;function cm(e,t,r,n){const i=(0,we._)`${t}${(0,we.getProperty)(r)} !== undefined`;return n?(0,we._)`${i} && ${Ys(e,t,r)}`:i}ce.propertyInData=cm;function Qs(e,t,r,n){const i=(0,we._)`${t}${(0,we.getProperty)(r)} === undefined`;return n?(0,we.or)(i,(0,we.not)(Ys(e,t,r))):i}ce.noPropertyInData=Qs;function ju(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}ce.allSchemaProperties=ju;function um(e,t){return ju(t).filter(r=>!(0,Js.alwaysValidSchema)(e,t[r]))}ce.schemaProperties=um;function fm({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:s},it:o},c,u,p){const a=p?(0,we._)`${e}, ${t}, ${n}${i}`:t,l=[[Xt.default.instancePath,(0,we.strConcat)(Xt.default.instancePath,s)],[Xt.default.parentData,o.parentData],[Xt.default.parentDataProperty,o.parentDataProperty],[Xt.default.rootData,Xt.default.rootData]];o.opts.dynamicRef&&l.push([Xt.default.dynamicAnchors,Xt.default.dynamicAnchors]);const y=(0,we._)`${a}, ${r.object(...l)}`;return u!==we.nil?(0,we._)`${c}.call(${u}, ${y})`:(0,we._)`${c}(${y})`}ce.callValidateCode=fm;const lm=(0,we._)`new RegExp`;function dm({gen:e,it:{opts:t}},r){const n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,s=i(r,n);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,we._)`${i.code==="new RegExp"?lm:(0,im.useFunc)(e,i)}(${r}, ${n})`})}ce.usePattern=dm;function hm(e){const{gen:t,data:r,keyword:n,it:i}=e,s=t.name("valid");if(i.allErrors){const c=t.let("valid",!0);return o(()=>t.assign(c,!1)),c}return t.var(s,!0),o(()=>t.break()),s;function o(c){const u=t.const("len",(0,we._)`${r}.length`);t.forRange("i",0,u,p=>{e.subschema({keyword:n,dataProp:p,dataPropType:Js.Type.Num},s),t.if((0,we.not)(s),c)})}}ce.validateArray=hm;function mm(e){const{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(u=>(0,Js.alwaysValidSchema)(i,u))&&!i.opts.unevaluated)return;const o=t.let("valid",!1),c=t.name("_valid");t.block(()=>r.forEach((u,p)=>{const a=e.subschema({keyword:n,schemaProp:p,compositeRule:!0},c);t.assign(o,(0,we._)`${o} || ${c}`),e.mergeValidEvaluated(a,c)||t.if((0,we.not)(o))})),e.result(o,()=>e.reset(),()=>e.error(!0))}ce.validateUnion=mm;var Ra;function pm(){if(Ra)return gt;Ra=1,Object.defineProperty(gt,"__esModule",{value:!0}),gt.validateKeywordUsage=gt.validSchemaType=gt.funcKeywordCode=gt.macroKeywordCode=void 0;const e=oe,t=kt,r=ce,n=Mn;function i(y,d){const{gen:h,keyword:m,schema:E,parentSchema:f,it:$}=y,_=d.macro.call($.self,E,f,$),O=p(h,m,_);$.opts.validateSchema!==!1&&$.self.validateSchema(_,!0);const q=h.name("valid");y.subschema({schema:_,schemaPath:e.nil,errSchemaPath:`${$.errSchemaPath}/${m}`,topSchemaRef:O,compositeRule:!0},q),y.pass(q,()=>y.error(!0))}gt.macroKeywordCode=i;function s(y,d){var h;const{gen:m,keyword:E,schema:f,parentSchema:$,$data:_,it:O}=y;u(O,d);const q=!_&&d.compile?d.compile.call(O.self,f,$,O):d.validate,R=p(m,E,q),C=m.let("valid");y.block$data(C,V),y.ok((h=d.valid)!==null&&h!==void 0?h:C);function V(){if(d.errors===!1)j(),d.modifying&&o(y),b(()=>y.error());else{const K=d.async?L():G();d.modifying&&o(y),b(()=>c(y,K))}}function L(){const K=m.let("ruleErrs",null);return m.try(()=>j((0,e._)`await `),B=>m.assign(C,!1).if((0,e._)`${B} instanceof ${O.ValidationError}`,()=>m.assign(K,(0,e._)`${B}.errors`),()=>m.throw(B))),K}function G(){const K=(0,e._)`${R}.errors`;return m.assign(K,null),j(e.nil),K}function j(K=d.async?(0,e._)`await `:e.nil){const B=O.opts.passContext?t.default.this:t.default.self,X=!("compile"in d&&!_||d.schema===!1);m.assign(C,(0,e._)`${K}${(0,r.callValidateCode)(y,R,B,X)}`,d.modifying)}function b(K){var B;m.if((0,e.not)((B=d.valid)!==null&&B!==void 0?B:C),K)}}gt.funcKeywordCode=s;function o(y){const{gen:d,data:h,it:m}=y;d.if(m.parentData,()=>d.assign(h,(0,e._)`${m.parentData}[${m.parentDataProperty}]`))}function c(y,d){const{gen:h}=y;h.if((0,e._)`Array.isArray(${d})`,()=>{h.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${d} : ${t.default.vErrors}.concat(${d})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,n.extendErrors)(y)},()=>y.error())}function u({schemaEnv:y},d){if(d.async&&!y.$async)throw new Error("async keyword in sync schema")}function p(y,d,h){if(h===void 0)throw new Error(`keyword "${d}" failed to compile`);return y.scopeValue("keyword",typeof h=="function"?{ref:h}:{ref:h,code:(0,e.stringify)(h)})}function a(y,d,h=!1){return!d.length||d.some(m=>m==="array"?Array.isArray(y):m==="object"?y&&typeof y=="object"&&!Array.isArray(y):typeof y==m||h&&typeof y>"u")}gt.validSchemaType=a;function l({schema:y,opts:d,self:h,errSchemaPath:m},E,f){if(Array.isArray(E.keyword)?!E.keyword.includes(f):E.keyword!==f)throw new Error("ajv implementation error");const $=E.dependencies;if($!=null&&$.some(_=>!Object.prototype.hasOwnProperty.call(y,_)))throw new Error(`parent schema must have dependencies of ${f}: ${$.join(",")}`);if(E.validateSchema&&!E.validateSchema(y[f])){const O=`keyword "${f}" value is invalid at path "${m}": `+h.errorsText(E.validateSchema.errors);if(d.validateSchema==="log")h.logger.error(O);else throw new Error(O)}}return gt.validateKeywordUsage=l,gt}var Vt={},Ca;function ym(){if(Ca)return Vt;Ca=1,Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.extendSubschemaMode=Vt.extendSubschemaData=Vt.getSubschema=void 0;const e=oe,t=he;function r(s,{keyword:o,schemaProp:c,schema:u,schemaPath:p,errSchemaPath:a,topSchemaRef:l}){if(o!==void 0&&u!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(o!==void 0){const y=s.schema[o];return c===void 0?{schema:y,schemaPath:(0,e._)`${s.schemaPath}${(0,e.getProperty)(o)}`,errSchemaPath:`${s.errSchemaPath}/${o}`}:{schema:y[c],schemaPath:(0,e._)`${s.schemaPath}${(0,e.getProperty)(o)}${(0,e.getProperty)(c)}`,errSchemaPath:`${s.errSchemaPath}/${o}/${(0,t.escapeFragment)(c)}`}}if(u!==void 0){if(p===void 0||a===void 0||l===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:u,schemaPath:p,topSchemaRef:l,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')}Vt.getSubschema=r;function n(s,o,{dataProp:c,dataPropType:u,data:p,dataTypes:a,propertyName:l}){if(p!==void 0&&c!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:y}=o;if(c!==void 0){const{errorPath:h,dataPathArr:m,opts:E}=o,f=y.let("data",(0,e._)`${o.data}${(0,e.getProperty)(c)}`,!0);d(f),s.errorPath=(0,e.str)`${h}${(0,t.getErrorPath)(c,u,E.jsPropertySyntax)}`,s.parentDataProperty=(0,e._)`${c}`,s.dataPathArr=[...m,s.parentDataProperty]}if(p!==void 0){const h=p instanceof e.Name?p:y.let("data",p,!0);d(h),l!==void 0&&(s.propertyName=l)}a&&(s.dataTypes=a);function d(h){s.data=h,s.dataLevel=o.dataLevel+1,s.dataTypes=[],o.definedProperties=new Set,s.parentData=o.data,s.dataNames=[...o.dataNames,h]}}Vt.extendSubschemaData=n;function i(s,{jtdDiscriminator:o,jtdMetadata:c,compositeRule:u,createErrors:p,allErrors:a}){u!==void 0&&(s.compositeRule=u),p!==void 0&&(s.createErrors=p),a!==void 0&&(s.allErrors=a),s.jtdDiscriminator=o,s.jtdMetadata=c}return Vt.extendSubschemaMode=i,Vt}var He={},Mu=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,s;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(s=Object.keys(t),n=s.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[i]))return!1;for(i=n;i--!==0;){var o=s[i];if(!e(t[o],r[o]))return!1}return!0}return t!==t&&r!==r},ku={exports:{}},or=ku.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};oi(t,n,i,e,"",e)};or.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};or.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};or.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};or.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 oi(e,t,r,n,i,s,o,c,u,p){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,s,o,c,u,p);for(var a in n){var l=n[a];if(Array.isArray(l)){if(a in or.arrayKeywords)for(var y=0;y<l.length;y++)oi(e,t,r,l[y],i+"/"+a+"/"+y,s,i,a,n,y)}else if(a in or.propsKeywords){if(l&&typeof l=="object")for(var d in l)oi(e,t,r,l[d],i+"/"+a+"/"+Em(d),s,i,a,n,d)}else(a in or.keywords||e.allKeys&&!(a in or.skipKeywords))&&oi(e,t,r,l,i+"/"+a,s,i,a,n)}r(n,i,s,o,c,u,p)}}function Em(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}Object.defineProperty(He,"__esModule",{value:!0});He.getSchemaRefs=He.resolveUrl=He.normalizeId=He._getFullPath=He.getFullPath=He.inlineRef=void 0;const vm=he,gm=Mu,$m=ku.exports,_m=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Sm(e,t=!0){return typeof e=="boolean"?!0:t===!0?!gs(e):t?Uu(e)<=t:!1}He.inlineRef=Sm;const wm=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function gs(e){for(const t in e){if(wm.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(gs)||typeof r=="object"&&gs(r))return!0}return!1}function Uu(e){let t=0;for(const r in e){if(r==="$ref")return 1/0;if(t++,!_m.has(r)&&(typeof e[r]=="object"&&(0,vm.eachItem)(e[r],n=>t+=Uu(n)),t===1/0))return 1/0}return t}function zu(e,t="",r){r!==!1&&(t=xr(t));const n=e.parse(t);return xu(e,n)}He.getFullPath=zu;function xu(e,t){return e.serialize(t).split("#")[0]+"#"}He._getFullPath=xu;const Nm=/#\/?$/;function xr(e){return e?e.replace(Nm,""):""}He.normalizeId=xr;function Im(e,t,r){return r=xr(r),e.resolve(t,r)}He.resolveUrl=Im;const Om=/^[a-z_][-a-z0-9._]*$/i;function Tm(e,t){if(typeof e=="boolean")return{};const{schemaId:r,uriResolver:n}=this.opts,i=xr(e[r]||t),s={"":i},o=zu(n,i,!1),c={},u=new Set;return $m(e,{allKeys:!0},(l,y,d,h)=>{if(h===void 0)return;const m=o+y;let E=s[h];typeof l[r]=="string"&&(E=f.call(this,l[r])),$.call(this,l.$anchor),$.call(this,l.$dynamicAnchor),s[y]=E;function f(_){const O=this.opts.uriResolver.resolve;if(_=xr(E?O(E,_):_),u.has(_))throw a(_);u.add(_);let q=this.refs[_];return typeof q=="string"&&(q=this.refs[q]),typeof q=="object"?p(l,q.schema,_):_!==xr(m)&&(_[0]==="#"?(p(l,c[_],_),c[_]=l):this.refs[_]=m),_}function $(_){if(typeof _=="string"){if(!Om.test(_))throw new Error(`invalid anchor "${_}"`);f.call(this,`#${_}`)}}}),c;function p(l,y,d){if(y!==void 0&&!gm(l,y))throw a(d)}function a(l){return new Error(`reference "${l}" resolves to more than one schema`)}}He.getSchemaRefs=Tm;var Pa;function Ai(){if(Pa)return zt;Pa=1,Object.defineProperty(zt,"__esModule",{value:!0}),zt.getData=zt.KeywordCxt=zt.validateFunctionCode=void 0;const e=Yh(),t=Rn,r=Lu(),n=Rn,i=nm(),s=pm(),o=ym(),c=oe,u=kt,p=He,a=he,l=Mn;function y(D){if(q(D)&&(C(D),O(D))){E(D);return}d(D,()=>(0,e.topBoolOrEmptySchema)(D))}zt.validateFunctionCode=y;function d({gen:D,validateName:A,schema:H,schemaEnv:J,opts:te},se){te.code.es5?D.func(A,(0,c._)`${u.default.data}, ${u.default.valCxt}`,J.$async,()=>{D.code((0,c._)`"use strict"; ${$(H,te)}`),m(D,te),D.code(se)}):D.func(A,(0,c._)`${u.default.data}, ${h(te)}`,J.$async,()=>D.code($(H,te)).code(se))}function h(D){return(0,c._)`{${u.default.instancePath}="", ${u.default.parentData}, ${u.default.parentDataProperty}, ${u.default.rootData}=${u.default.data}${D.dynamicRef?(0,c._)`, ${u.default.dynamicAnchors}={}`:c.nil}}={}`}function m(D,A){D.if(u.default.valCxt,()=>{D.var(u.default.instancePath,(0,c._)`${u.default.valCxt}.${u.default.instancePath}`),D.var(u.default.parentData,(0,c._)`${u.default.valCxt}.${u.default.parentData}`),D.var(u.default.parentDataProperty,(0,c._)`${u.default.valCxt}.${u.default.parentDataProperty}`),D.var(u.default.rootData,(0,c._)`${u.default.valCxt}.${u.default.rootData}`),A.dynamicRef&&D.var(u.default.dynamicAnchors,(0,c._)`${u.default.valCxt}.${u.default.dynamicAnchors}`)},()=>{D.var(u.default.instancePath,(0,c._)`""`),D.var(u.default.parentData,(0,c._)`undefined`),D.var(u.default.parentDataProperty,(0,c._)`undefined`),D.var(u.default.rootData,u.default.data),A.dynamicRef&&D.var(u.default.dynamicAnchors,(0,c._)`{}`)})}function E(D){const{schema:A,opts:H,gen:J}=D;d(D,()=>{H.$comment&&A.$comment&&K(D),G(D),J.let(u.default.vErrors,null),J.let(u.default.errors,0),H.unevaluated&&f(D),V(D),B(D)})}function f(D){const{gen:A,validateName:H}=D;D.evaluated=A.const("evaluated",(0,c._)`${H}.evaluated`),A.if((0,c._)`${D.evaluated}.dynamicProps`,()=>A.assign((0,c._)`${D.evaluated}.props`,(0,c._)`undefined`)),A.if((0,c._)`${D.evaluated}.dynamicItems`,()=>A.assign((0,c._)`${D.evaluated}.items`,(0,c._)`undefined`))}function $(D,A){const H=typeof D=="object"&&D[A.schemaId];return H&&(A.code.source||A.code.process)?(0,c._)`/*# sourceURL=${H} */`:c.nil}function _(D,A){if(q(D)&&(C(D),O(D))){R(D,A);return}(0,e.boolOrEmptySchema)(D,A)}function O({schema:D,self:A}){if(typeof D=="boolean")return!D;for(const H in D)if(A.RULES.all[H])return!0;return!1}function q(D){return typeof D.schema!="boolean"}function R(D,A){const{schema:H,gen:J,opts:te}=D;te.$comment&&H.$comment&&K(D),j(D),b(D);const se=J.const("_errs",u.default.errors);V(D,se),J.var(A,(0,c._)`${se} === ${u.default.errors}`)}function C(D){(0,a.checkUnknownRules)(D),L(D)}function V(D,A){if(D.opts.jtd)return Z(D,[],!1,A);const H=(0,t.getSchemaTypes)(D.schema),J=(0,t.coerceAndCheckDataType)(D,H);Z(D,H,!J,A)}function L(D){const{schema:A,errSchemaPath:H,opts:J,self:te}=D;A.$ref&&J.ignoreKeywordsWithRef&&(0,a.schemaHasRulesButRef)(A,te.RULES)&&te.logger.warn(`$ref: keywords ignored in schema at path "${H}"`)}function G(D){const{schema:A,opts:H}=D;A.default!==void 0&&H.useDefaults&&H.strictSchema&&(0,a.checkStrictMode)(D,"default is ignored in the schema root")}function j(D){const A=D.schema[D.opts.schemaId];A&&(D.baseId=(0,p.resolveUrl)(D.opts.uriResolver,D.baseId,A))}function b(D){if(D.schema.$async&&!D.schemaEnv.$async)throw new Error("async schema in sync schema")}function K({gen:D,schemaEnv:A,schema:H,errSchemaPath:J,opts:te}){const se=H.$comment;if(te.$comment===!0)D.code((0,c._)`${u.default.self}.logger.log(${se})`);else if(typeof te.$comment=="function"){const ve=(0,c.str)`${J}/$comment`,lt=D.scopeValue("root",{ref:A.root});D.code((0,c._)`${u.default.self}.opts.$comment(${se}, ${ve}, ${lt}.schema)`)}}function B(D){const{gen:A,schemaEnv:H,validateName:J,ValidationError:te,opts:se}=D;H.$async?A.if((0,c._)`${u.default.errors} === 0`,()=>A.return(u.default.data),()=>A.throw((0,c._)`new ${te}(${u.default.vErrors})`)):(A.assign((0,c._)`${J}.errors`,u.default.vErrors),se.unevaluated&&X(D),A.return((0,c._)`${u.default.errors} === 0`))}function X({gen:D,evaluated:A,props:H,items:J}){H instanceof c.Name&&D.assign((0,c._)`${A}.props`,H),J instanceof c.Name&&D.assign((0,c._)`${A}.items`,J)}function Z(D,A,H,J){const{gen:te,schema:se,data:ve,allErrors:lt,opts:xe,self:Ve}=D,{RULES:be}=Ve;if(se.$ref&&(xe.ignoreKeywordsWithRef||!(0,a.schemaHasRulesButRef)(se,be))){te.block(()=>x(D,"$ref",be.all.$ref.definition));return}xe.jtd||F(D,A),te.block(()=>{for(const je of be.rules)Ht(je);Ht(be.post)});function Ht(je){!(0,r.shouldUseGroup)(se,je)||(je.type?(te.if((0,n.checkDataType)(je.type,ve,xe.strictNumbers)),W(D,je),A.length===1&&A[0]===je.type&&H&&(te.else(),(0,n.reportTypeError)(D)),te.endIf()):W(D,je),lt||te.if((0,c._)`${u.default.errors} === ${J||0}`))}}function W(D,A){const{gen:H,schema:J,opts:{useDefaults:te}}=D;te&&(0,i.assignDefaults)(D,A.type),H.block(()=>{for(const se of A.rules)(0,r.shouldUseRule)(J,se)&&x(D,se.keyword,se.definition,A.type)})}function F(D,A){D.schemaEnv.meta||!D.opts.strictTypes||(z(D,A),D.opts.allowUnionTypes||T(D,A),I(D,D.dataTypes))}function z(D,A){if(!!A.length){if(!D.dataTypes.length){D.dataTypes=A;return}A.forEach(H=>{P(D.dataTypes,H)||v(D,`type "${H}" not allowed by context "${D.dataTypes.join(",")}"`)}),D.dataTypes=D.dataTypes.filter(H=>P(A,H))}}function T(D,A){A.length>1&&!(A.length===2&&A.includes("null"))&&v(D,"use allowUnionTypes to allow union type keyword")}function I(D,A){const H=D.self.RULES.all;for(const J in H){const te=H[J];if(typeof te=="object"&&(0,r.shouldUseRule)(D.schema,te)){const{type:se}=te.definition;se.length&&!se.some(ve=>M(A,ve))&&v(D,`missing type "${se.join(",")}" for keyword "${J}"`)}}}function M(D,A){return D.includes(A)||A==="number"&&D.includes("integer")}function P(D,A){return D.includes(A)||A==="integer"&&D.includes("number")}function v(D,A){A+=` at "${D.schemaEnv.baseId+D.errSchemaPath}" (strictTypes)`,(0,a.checkStrictMode)(D,A,D.opts.strictTypes)}class S{constructor(A,H,J){if((0,s.validateKeywordUsage)(A,H,J),this.gen=A.gen,this.allErrors=A.allErrors,this.keyword=J,this.data=A.data,this.schema=A.schema[J],this.$data=H.$data&&A.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,a.schemaRefOrVal)(A,this.schema,J,this.$data),this.schemaType=H.schemaType,this.parentSchema=A.schema,this.params={},this.it=A,this.def=H,this.$data)this.schemaCode=A.gen.const("vSchema",ae(this.$data,A));else if(this.schemaCode=this.schemaValue,!(0,s.validSchemaType)(this.schema,H.schemaType,H.allowUndefined))throw new Error(`${J} value must be ${JSON.stringify(H.schemaType)}`);("code"in H?H.trackErrors:H.errors!==!1)&&(this.errsCount=A.gen.const("_errs",u.default.errors))}result(A,H,J){this.failResult((0,c.not)(A),H,J)}failResult(A,H,J){this.gen.if(A),J?J():this.error(),H?(this.gen.else(),H(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(A,H){this.failResult((0,c.not)(A),void 0,H)}fail(A){if(A===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(A),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(A){if(!this.$data)return this.fail(A);const{schemaCode:H}=this;this.fail((0,c._)`${H} !== undefined && (${(0,c.or)(this.invalid$data(),A)})`)}error(A,H,J){if(H){this.setParams(H),this._error(A,J),this.setParams({});return}this._error(A,J)}_error(A,H){(A?l.reportExtraError:l.reportError)(this,this.def.error,H)}$dataError(){(0,l.reportError)(this,this.def.$dataError||l.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,l.resetErrorsCount)(this.gen,this.errsCount)}ok(A){this.allErrors||this.gen.if(A)}setParams(A,H){H?Object.assign(this.params,A):this.params=A}block$data(A,H,J=c.nil){this.gen.block(()=>{this.check$data(A,J),H()})}check$data(A=c.nil,H=c.nil){if(!this.$data)return;const{gen:J,schemaCode:te,schemaType:se,def:ve}=this;J.if((0,c.or)((0,c._)`${te} === undefined`,H)),A!==c.nil&&J.assign(A,!0),(se.length||ve.validateSchema)&&(J.elseIf(this.invalid$data()),this.$dataError(),A!==c.nil&&J.assign(A,!1)),J.else()}invalid$data(){const{gen:A,schemaCode:H,schemaType:J,def:te,it:se}=this;return(0,c.or)(ve(),lt());function ve(){if(J.length){if(!(H instanceof c.Name))throw new Error("ajv implementation error");const xe=Array.isArray(J)?J:[J];return(0,c._)`${(0,n.checkDataTypes)(xe,H,se.opts.strictNumbers,n.DataType.Wrong)}`}return c.nil}function lt(){if(te.validateSchema){const xe=A.scopeValue("validate$data",{ref:te.validateSchema});return(0,c._)`!${xe}(${H})`}return c.nil}}subschema(A,H){const J=(0,o.getSubschema)(this.it,A);(0,o.extendSubschemaData)(J,this.it,A),(0,o.extendSubschemaMode)(J,A);const te={...this.it,...J,items:void 0,props:void 0};return _(te,H),te}mergeEvaluated(A,H){const{it:J,gen:te}=this;!J.opts.unevaluated||(J.props!==!0&&A.props!==void 0&&(J.props=a.mergeEvaluated.props(te,A.props,J.props,H)),J.items!==!0&&A.items!==void 0&&(J.items=a.mergeEvaluated.items(te,A.items,J.items,H)))}mergeValidEvaluated(A,H){const{it:J,gen:te}=this;if(J.opts.unevaluated&&(J.props!==!0||J.items!==!0))return te.if(H,()=>this.mergeEvaluated(A,c.Name)),!0}}zt.KeywordCxt=S;function x(D,A,H,J){const te=new S(D,H,A);"code"in H?H.code(te,J):te.$data&&H.validate?(0,s.funcKeywordCode)(te,H):"macro"in H?(0,s.macroKeywordCode)(te,H):(H.compile||H.validate)&&(0,s.funcKeywordCode)(te,H)}const Y=/^\/(?:[^~]|~0|~1)*$/,Q=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function ae(D,{dataLevel:A,dataNames:H,dataPathArr:J}){let te,se;if(D==="")return u.default.rootData;if(D[0]==="/"){if(!Y.test(D))throw new Error(`Invalid JSON-pointer: ${D}`);te=D,se=u.default.rootData}else{const Ve=Q.exec(D);if(!Ve)throw new Error(`Invalid JSON-pointer: ${D}`);const be=+Ve[1];if(te=Ve[2],te==="#"){if(be>=A)throw new Error(xe("property/index",be));return J[A-be]}if(be>A)throw new Error(xe("data",be));if(se=H[A-be],!te)return se}let ve=se;const lt=te.split("/");for(const Ve of lt)Ve&&(se=(0,c._)`${se}${(0,c.getProperty)((0,a.unescapeJsonPointer)(Ve))}`,ve=(0,c._)`${ve} && ${se}`);return ve;function xe(Ve,be){return`Cannot access ${Ve} ${be} levels up, current level is ${A}`}}return zt.getData=ae,zt}var bi={};Object.defineProperty(bi,"__esModule",{value:!0});class Dm extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}bi.default=Dm;var Li={};Object.defineProperty(Li,"__esModule",{value:!0});const es=He;class Rm extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,es.resolveUrl)(t,r,n),this.missingSchema=(0,es.normalizeId)((0,es.getFullPath)(t,this.missingRef))}}Li.default=Rm;var ut={};Object.defineProperty(ut,"__esModule",{value:!0});ut.resolveSchema=ut.getCompilingSchema=ut.resolveRef=ut.compileSchema=ut.SchemaEnv=void 0;const $t=oe,Cm=bi,mr=kt,Tt=He,Aa=he,Pm=Ai();class Fi{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,Tt.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}}ut.SchemaEnv=Fi;function eo(e){const t=Vu.call(this,e);if(t)return t;const r=(0,Tt.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,o=new $t.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s});let c;e.$async&&(c=o.scopeValue("Error",{ref:Cm.default,code:(0,$t._)`require("ajv/dist/runtime/validation_error").default`}));const u=o.scopeName("validate");e.validateName=u;const p={gen:o,allErrors:this.opts.allErrors,data:mr.default.data,parentData:mr.default.parentData,parentDataProperty:mr.default.parentDataProperty,dataNames:[mr.default.data],dataPathArr:[$t.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:o.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,$t.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:c,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:$t.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,$t._)`""`,opts:this.opts,self:this};let a;try{this._compilations.add(e),(0,Pm.validateFunctionCode)(p),o.optimize(this.opts.code.optimize);const l=o.toString();a=`${o.scopeRefs(mr.default.scope)}return ${l}`,this.opts.code.process&&(a=this.opts.code.process(a,e));const d=new Function(`${mr.default.self}`,`${mr.default.scope}`,a)(this,this.scope.get());if(this.scope.value(u,{ref:d}),d.errors=null,d.schema=e.schema,d.schemaEnv=e,e.$async&&(d.$async=!0),this.opts.code.source===!0&&(d.source={validateName:u,validateCode:l,scopeValues:o._values}),this.opts.unevaluated){const{props:h,items:m}=p;d.evaluated={props:h instanceof $t.Name?void 0:h,items:m instanceof $t.Name?void 0:m,dynamicProps:h instanceof $t.Name,dynamicItems:m instanceof $t.Name},d.source&&(d.source.evaluated=(0,$t.stringify)(d.evaluated))}return e.validate=d,e}catch(l){throw delete e.validate,delete e.validateName,a&&this.logger.error("Error compiling schema, function code:",a),l}finally{this._compilations.delete(e)}}ut.compileSchema=eo;function Am(e,t,r){var n;r=(0,Tt.resolveUrl)(this.opts.uriResolver,t,r);const i=e.refs[r];if(i)return i;let s=Fm.call(this,e,r);if(s===void 0){const o=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:c}=this.opts;o&&(s=new Fi({schema:o,schemaId:c,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=bm.call(this,s)}ut.resolveRef=Am;function bm(e){return(0,Tt.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:eo.call(this,e)}function Vu(e){for(const t of this._compilations)if(Lm(t,e))return t}ut.getCompilingSchema=Vu;function Lm(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function Fm(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||ji.call(this,e,t)}function ji(e,t){const r=this.opts.uriResolver.parse(t),n=(0,Tt._getFullPath)(this.opts.uriResolver,r);let i=(0,Tt.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return ts.call(this,r,e);const s=(0,Tt.normalizeId)(n),o=this.refs[s]||this.schemas[s];if(typeof o=="string"){const c=ji.call(this,e,o);return typeof(c==null?void 0:c.schema)!="object"?void 0:ts.call(this,r,c)}if(typeof(o==null?void 0:o.schema)=="object"){if(o.validate||eo.call(this,o),s===(0,Tt.normalizeId)(t)){const{schema:c}=o,{schemaId:u}=this.opts,p=c[u];return p&&(i=(0,Tt.resolveUrl)(this.opts.uriResolver,i,p)),new Fi({schema:c,schemaId:u,root:e,baseId:i})}return ts.call(this,r,o)}}ut.resolveSchema=ji;const jm=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function ts(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(const c of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;const u=r[(0,Aa.unescapeFragment)(c)];if(u===void 0)return;r=u;const p=typeof r=="object"&&r[this.opts.schemaId];!jm.has(c)&&p&&(t=(0,Tt.resolveUrl)(this.opts.uriResolver,t,p))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,Aa.schemaHasRulesButRef)(r,this.RULES)){const c=(0,Tt.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=ji.call(this,n,c)}const{schemaId:o}=this.opts;if(s=s||new Fi({schema:r,schemaId:o,root:n,baseId:t}),s.schema!==s.root.schema)return s}const Mm="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",km="Meta-schema for $data reference (JSON AnySchema extension proposal)",Um="object",zm=["$data"],xm={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},Vm=!1,qm={$id:Mm,description:km,type:Um,required:zm,properties:xm,additionalProperties:Vm};var to={},$s={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(e,t){(function(r,n){n(t)})(tr,function(r){function n(){for(var w=arguments.length,g=Array(w),N=0;N<w;N++)g[N]=arguments[N];if(g.length>1){g[0]=g[0].slice(0,-1);for(var U=g.length-1,k=1;k<U;++k)g[k]=g[k].slice(1,-1);return g[U]=g[U].slice(1),g.join("")}else return g[0]}function i(w){return"(?:"+w+")"}function s(w){return w===void 0?"undefined":w===null?"null":Object.prototype.toString.call(w).split(" ").pop().split("]").shift().toLowerCase()}function o(w){return w.toUpperCase()}function c(w){return w!=null?w instanceof Array?w:typeof w.length!="number"||w.split||w.setInterval||w.call?[w]:Array.prototype.slice.call(w):[]}function u(w,g){var N=w;if(g)for(var U in g)N[U]=g[U];return N}function p(w){var g="[A-Za-z]",N="[0-9]",U=n(N,"[A-Fa-f]"),k=i(i("%[EFef]"+U+"%"+U+U+"%"+U+U)+"|"+i("%[89A-Fa-f]"+U+"%"+U+U)+"|"+i("%"+U+U)),re="[\\:\\/\\?\\#\\[\\]\\@]",ne="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",de=n(re,ne),Se=w?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Ce=w?"[\\uE000-\\uF8FF]":"[]",ue=n(g,N,"[\\-\\.\\_\\~]",Se);i(g+n(g,N,"[\\+\\-\\.]")+"*"),i(i(k+"|"+n(ue,ne,"[\\:]"))+"*");var $e=i(i("25[0-5]")+"|"+i("2[0-4]"+N)+"|"+i("1"+N+N)+"|"+i("0?[1-9]"+N)+"|0?0?"+N),Pe=i($e+"\\."+$e+"\\."+$e+"\\."+$e),ie=i(U+"{1,4}"),Ne=i(i(ie+"\\:"+ie)+"|"+Pe),Le=i(i(ie+"\\:")+"{6}"+Ne),Ie=i("\\:\\:"+i(ie+"\\:")+"{5}"+Ne),Kt=i(i(ie)+"?\\:\\:"+i(ie+"\\:")+"{4}"+Ne),At=i(i(i(ie+"\\:")+"{0,1}"+ie)+"?\\:\\:"+i(ie+"\\:")+"{3}"+Ne),bt=i(i(i(ie+"\\:")+"{0,2}"+ie)+"?\\:\\:"+i(ie+"\\:")+"{2}"+Ne),Cr=i(i(i(ie+"\\:")+"{0,3}"+ie)+"?\\:\\:"+ie+"\\:"+Ne),fr=i(i(i(ie+"\\:")+"{0,4}"+ie)+"?\\:\\:"+Ne),yt=i(i(i(ie+"\\:")+"{0,5}"+ie)+"?\\:\\:"+ie),Lt=i(i(i(ie+"\\:")+"{0,6}"+ie)+"?\\:\\:"),lr=i([Le,Ie,Kt,At,bt,Cr,fr,yt,Lt].join("|")),Ut=i(i(ue+"|"+k)+"+");i("[vV]"+U+"+\\."+n(ue,ne,"[\\:]")+"+"),i(i(k+"|"+n(ue,ne))+"*");var cn=i(k+"|"+n(ue,ne,"[\\:\\@]"));return i(i(k+"|"+n(ue,ne,"[\\@]"))+"+"),i(i(cn+"|"+n("[\\/\\?]",Ce))+"*"),{NOT_SCHEME:new RegExp(n("[^]",g,N,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(n("[^\\%\\:]",ue,ne),"g"),NOT_HOST:new RegExp(n("[^\\%\\[\\]\\:]",ue,ne),"g"),NOT_PATH:new RegExp(n("[^\\%\\/\\:\\@]",ue,ne),"g"),NOT_PATH_NOSCHEME:new RegExp(n("[^\\%\\/\\@]",ue,ne),"g"),NOT_QUERY:new RegExp(n("[^\\%]",ue,ne,"[\\:\\@\\/\\?]",Ce),"g"),NOT_FRAGMENT:new RegExp(n("[^\\%]",ue,ne,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(n("[^]",ue,ne),"g"),UNRESERVED:new RegExp(ue,"g"),OTHER_CHARS:new RegExp(n("[^\\%]",ue,de),"g"),PCT_ENCODED:new RegExp(k,"g"),IPV4ADDRESS:new RegExp("^("+Pe+")$"),IPV6ADDRESS:new RegExp("^\\[?("+lr+")"+i(i("\\%25|\\%(?!"+U+"{2})")+"("+Ut+")")+"?\\]?$")}}var a=p(!1),l=p(!0),y=function(){function w(g,N){var U=[],k=!0,re=!1,ne=void 0;try{for(var de=g[Symbol.iterator](),Se;!(k=(Se=de.next()).done)&&(U.push(Se.value),!(N&&U.length===N));k=!0);}catch(Ce){re=!0,ne=Ce}finally{try{!k&&de.return&&de.return()}finally{if(re)throw ne}}return U}return function(g,N){if(Array.isArray(g))return g;if(Symbol.iterator in Object(g))return w(g,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(w){if(Array.isArray(w)){for(var g=0,N=Array(w.length);g<w.length;g++)N[g]=w[g];return N}else return Array.from(w)},h=2147483647,m=36,E=1,f=26,$=38,_=700,O=72,q=128,R="-",C=/^xn--/,V=/[^\0-\x7E]/,L=/[\x2E\u3002\uFF0E\uFF61]/g,G={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},j=m-E,b=Math.floor,K=String.fromCharCode;function B(w){throw new RangeError(G[w])}function X(w,g){for(var N=[],U=w.length;U--;)N[U]=g(w[U]);return N}function Z(w,g){var N=w.split("@"),U="";N.length>1&&(U=N[0]+"@",w=N[1]),w=w.replace(L,".");var k=w.split("."),re=X(k,g).join(".");return U+re}function W(w){for(var g=[],N=0,U=w.length;N<U;){var k=w.charCodeAt(N++);if(k>=55296&&k<=56319&&N<U){var re=w.charCodeAt(N++);(re&64512)==56320?g.push(((k&1023)<<10)+(re&1023)+65536):(g.push(k),N--)}else g.push(k)}return g}var F=function(g){return String.fromCodePoint.apply(String,d(g))},z=function(g){return g-48<10?g-22:g-65<26?g-65:g-97<26?g-97:m},T=function(g,N){return g+22+75*(g<26)-((N!=0)<<5)},I=function(g,N,U){var k=0;for(g=U?b(g/_):g>>1,g+=b(g/N);g>j*f>>1;k+=m)g=b(g/j);return b(k+(j+1)*g/(g+$))},M=function(g){var N=[],U=g.length,k=0,re=q,ne=O,de=g.lastIndexOf(R);de<0&&(de=0);for(var Se=0;Se<de;++Se)g.charCodeAt(Se)>=128&&B("not-basic"),N.push(g.charCodeAt(Se));for(var Ce=de>0?de+1:0;Ce<U;){for(var ue=k,$e=1,Pe=m;;Pe+=m){Ce>=U&&B("invalid-input");var ie=z(g.charCodeAt(Ce++));(ie>=m||ie>b((h-k)/$e))&&B("overflow"),k+=ie*$e;var Ne=Pe<=ne?E:Pe>=ne+f?f:Pe-ne;if(ie<Ne)break;var Le=m-Ne;$e>b(h/Le)&&B("overflow"),$e*=Le}var Ie=N.length+1;ne=I(k-ue,Ie,ue==0),b(k/Ie)>h-re&&B("overflow"),re+=b(k/Ie),k%=Ie,N.splice(k++,0,re)}return String.fromCodePoint.apply(String,N)},P=function(g){var N=[];g=W(g);var U=g.length,k=q,re=0,ne=O,de=!0,Se=!1,Ce=void 0;try{for(var ue=g[Symbol.iterator](),$e;!(de=($e=ue.next()).done);de=!0){var Pe=$e.value;Pe<128&&N.push(K(Pe))}}catch(un){Se=!0,Ce=un}finally{try{!de&&ue.return&&ue.return()}finally{if(Se)throw Ce}}var ie=N.length,Ne=ie;for(ie&&N.push(R);Ne<U;){var Le=h,Ie=!0,Kt=!1,At=void 0;try{for(var bt=g[Symbol.iterator](),Cr;!(Ie=(Cr=bt.next()).done);Ie=!0){var fr=Cr.value;fr>=k&&fr<Le&&(Le=fr)}}catch(un){Kt=!0,At=un}finally{try{!Ie&&bt.return&&bt.return()}finally{if(Kt)throw At}}var yt=Ne+1;Le-k>b((h-re)/yt)&&B("overflow"),re+=(Le-k)*yt,k=Le;var Lt=!0,lr=!1,Ut=void 0;try{for(var cn=g[Symbol.iterator](),Yo;!(Lt=(Yo=cn.next()).done);Lt=!0){var Qo=Yo.value;if(Qo<k&&++re>h&&B("overflow"),Qo==k){for(var zn=re,xn=m;;xn+=m){var Vn=xn<=ne?E:xn>=ne+f?f:xn-ne;if(zn<Vn)break;var ea=zn-Vn,ta=m-Vn;N.push(K(T(Vn+ea%ta,0))),zn=b(ea/ta)}N.push(K(T(zn,0))),ne=I(re,yt,Ne==ie),re=0,++Ne}}}catch(un){lr=!0,Ut=un}finally{try{!Lt&&cn.return&&cn.return()}finally{if(lr)throw Ut}}++re,++k}return N.join("")},v=function(g){return Z(g,function(N){return C.test(N)?M(N.slice(4).toLowerCase()):N})},S=function(g){return Z(g,function(N){return V.test(N)?"xn--"+P(N):N})},x={version:"2.1.0",ucs2:{decode:W,encode:F},decode:M,encode:P,toASCII:S,toUnicode:v},Y={};function Q(w){var g=w.charCodeAt(0),N=void 0;return g<16?N="%0"+g.toString(16).toUpperCase():g<128?N="%"+g.toString(16).toUpperCase():g<2048?N="%"+(g>>6|192).toString(16).toUpperCase()+"%"+(g&63|128).toString(16).toUpperCase():N="%"+(g>>12|224).toString(16).toUpperCase()+"%"+(g>>6&63|128).toString(16).toUpperCase()+"%"+(g&63|128).toString(16).toUpperCase(),N}function ae(w){for(var g="",N=0,U=w.length;N<U;){var k=parseInt(w.substr(N+1,2),16);if(k<128)g+=String.fromCharCode(k),N+=3;else if(k>=194&&k<224){if(U-N>=6){var re=parseInt(w.substr(N+4,2),16);g+=String.fromCharCode((k&31)<<6|re&63)}else g+=w.substr(N,6);N+=6}else if(k>=224){if(U-N>=9){var ne=parseInt(w.substr(N+4,2),16),de=parseInt(w.substr(N+7,2),16);g+=String.fromCharCode((k&15)<<12|(ne&63)<<6|de&63)}else g+=w.substr(N,9);N+=9}else g+=w.substr(N,3),N+=3}return g}function D(w,g){function N(U){var k=ae(U);return k.match(g.UNRESERVED)?k:U}return w.scheme&&(w.scheme=String(w.scheme).replace(g.PCT_ENCODED,N).toLowerCase().replace(g.NOT_SCHEME,"")),w.userinfo!==void 0&&(w.userinfo=String(w.userinfo).replace(g.PCT_ENCODED,N).replace(g.NOT_USERINFO,Q).replace(g.PCT_ENCODED,o)),w.host!==void 0&&(w.host=String(w.host).replace(g.PCT_ENCODED,N).toLowerCase().replace(g.NOT_HOST,Q).replace(g.PCT_ENCODED,o)),w.path!==void 0&&(w.path=String(w.path).replace(g.PCT_ENCODED,N).replace(w.scheme?g.NOT_PATH:g.NOT_PATH_NOSCHEME,Q).replace(g.PCT_ENCODED,o)),w.query!==void 0&&(w.query=String(w.query).replace(g.PCT_ENCODED,N).replace(g.NOT_QUERY,Q).replace(g.PCT_ENCODED,o)),w.fragment!==void 0&&(w.fragment=String(w.fragment).replace(g.PCT_ENCODED,N).replace(g.NOT_FRAGMENT,Q).replace(g.PCT_ENCODED,o)),w}function A(w){return w.replace(/^0*(.*)/,"$1")||"0"}function H(w,g){var N=w.match(g.IPV4ADDRESS)||[],U=y(N,2),k=U[1];return k?k.split(".").map(A).join("."):w}function J(w,g){var N=w.match(g.IPV6ADDRESS)||[],U=y(N,3),k=U[1],re=U[2];if(k){for(var ne=k.toLowerCase().split("::").reverse(),de=y(ne,2),Se=de[0],Ce=de[1],ue=Ce?Ce.split(":").map(A):[],$e=Se.split(":").map(A),Pe=g.IPV4ADDRESS.test($e[$e.length-1]),ie=Pe?7:8,Ne=$e.length-ie,Le=Array(ie),Ie=0;Ie<ie;++Ie)Le[Ie]=ue[Ie]||$e[Ne+Ie]||"";Pe&&(Le[ie-1]=H(Le[ie-1],g));var Kt=Le.reduce(function(yt,Lt,lr){if(!Lt||Lt==="0"){var Ut=yt[yt.length-1];Ut&&Ut.index+Ut.length===lr?Ut.length++:yt.push({index:lr,length:1})}return yt},[]),At=Kt.sort(function(yt,Lt){return Lt.length-yt.length})[0],bt=void 0;if(At&&At.length>1){var Cr=Le.slice(0,At.index),fr=Le.slice(At.index+At.length);bt=Cr.join(":")+"::"+fr.join(":")}else bt=Le.join(":");return re&&(bt+="%"+re),bt}else return w}var te=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,se="".match(/(){0}/)[1]===void 0;function ve(w){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},N={},U=g.iri!==!1?l:a;g.reference==="suffix"&&(w=(g.scheme?g.scheme+":":"")+"//"+w);var k=w.match(te);if(k){se?(N.scheme=k[1],N.userinfo=k[3],N.host=k[4],N.port=parseInt(k[5],10),N.path=k[6]||"",N.query=k[7],N.fragment=k[8],isNaN(N.port)&&(N.port=k[5])):(N.scheme=k[1]||void 0,N.userinfo=w.indexOf("@")!==-1?k[3]:void 0,N.host=w.indexOf("//")!==-1?k[4]:void 0,N.port=parseInt(k[5],10),N.path=k[6]||"",N.query=w.indexOf("?")!==-1?k[7]:void 0,N.fragment=w.indexOf("#")!==-1?k[8]:void 0,isNaN(N.port)&&(N.port=w.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?k[4]:void 0)),N.host&&(N.host=J(H(N.host,U),U)),N.scheme===void 0&&N.userinfo===void 0&&N.host===void 0&&N.port===void 0&&!N.path&&N.query===void 0?N.reference="same-document":N.scheme===void 0?N.reference="relative":N.fragment===void 0?N.reference="absolute":N.reference="uri",g.reference&&g.reference!=="suffix"&&g.reference!==N.reference&&(N.error=N.error||"URI is not a "+g.reference+" reference.");var re=Y[(g.scheme||N.scheme||"").toLowerCase()];if(!g.unicodeSupport&&(!re||!re.unicodeSupport)){if(N.host&&(g.domainHost||re&&re.domainHost))try{N.host=x.toASCII(N.host.replace(U.PCT_ENCODED,ae).toLowerCase())}catch(ne){N.error=N.error||"Host's domain name can not be converted to ASCII via punycode: "+ne}D(N,a)}else D(N,U);re&&re.parse&&re.parse(N,g)}else N.error=N.error||"URI can not be parsed.";return N}function lt(w,g){var N=g.iri!==!1?l:a,U=[];return w.userinfo!==void 0&&(U.push(w.userinfo),U.push("@")),w.host!==void 0&&U.push(J(H(String(w.host),N),N).replace(N.IPV6ADDRESS,function(k,re,ne){return"["+re+(ne?"%25"+ne:"")+"]"})),(typeof w.port=="number"||typeof w.port=="string")&&(U.push(":"),U.push(String(w.port))),U.length?U.join(""):void 0}var xe=/^\.\.?\//,Ve=/^\/\.(\/|$)/,be=/^\/\.\.(\/|$)/,Ht=/^\/?(?:.|\n)*?(?=\/|$)/;function je(w){for(var g=[];w.length;)if(w.match(xe))w=w.replace(xe,"");else if(w.match(Ve))w=w.replace(Ve,"/");else if(w.match(be))w=w.replace(be,"/"),g.pop();else if(w==="."||w==="..")w="";else{var N=w.match(Ht);if(N){var U=N[0];w=w.slice(U.length),g.push(U)}else throw new Error("Unexpected dot segment condition")}return g.join("")}function ot(w){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},N=g.iri?l:a,U=[],k=Y[(g.scheme||w.scheme||"").toLowerCase()];if(k&&k.serialize&&k.serialize(w,g),w.host&&!N.IPV6ADDRESS.test(w.host)){if(g.domainHost||k&&k.domainHost)try{w.host=g.iri?x.toUnicode(w.host):x.toASCII(w.host.replace(N.PCT_ENCODED,ae).toLowerCase())}catch(de){w.error=w.error||"Host's domain name can not be converted to "+(g.iri?"Unicode":"ASCII")+" via punycode: "+de}}D(w,N),g.reference!=="suffix"&&w.scheme&&(U.push(w.scheme),U.push(":"));var re=lt(w,g);if(re!==void 0&&(g.reference!=="suffix"&&U.push("//"),U.push(re),w.path&&w.path.charAt(0)!=="/"&&U.push("/")),w.path!==void 0){var ne=w.path;!g.absolutePath&&(!k||!k.absolutePath)&&(ne=je(ne)),re===void 0&&(ne=ne.replace(/^\/\//,"/%2F")),U.push(ne)}return w.query!==void 0&&(U.push("?"),U.push(w.query)),w.fragment!==void 0&&(U.push("#"),U.push(w.fragment)),U.join("")}function Dr(w,g){var N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},U=arguments[3],k={};return U||(w=ve(ot(w,N),N),g=ve(ot(g,N),N)),N=N||{},!N.tolerant&&g.scheme?(k.scheme=g.scheme,k.userinfo=g.userinfo,k.host=g.host,k.port=g.port,k.path=je(g.path||""),k.query=g.query):(g.userinfo!==void 0||g.host!==void 0||g.port!==void 0?(k.userinfo=g.userinfo,k.host=g.host,k.port=g.port,k.path=je(g.path||""),k.query=g.query):(g.path?(g.path.charAt(0)==="/"?k.path=je(g.path):((w.userinfo!==void 0||w.host!==void 0||w.port!==void 0)&&!w.path?k.path="/"+g.path:w.path?k.path=w.path.slice(0,w.path.lastIndexOf("/")+1)+g.path:k.path=g.path,k.path=je(k.path)),k.query=g.query):(k.path=w.path,g.query!==void 0?k.query=g.query:k.query=w.query),k.userinfo=w.userinfo,k.host=w.host,k.port=w.port),k.scheme=w.scheme),k.fragment=g.fragment,k}function sn(w,g,N){var U=u({scheme:"null"},N);return ot(Dr(ve(w,U),ve(g,U),U,!0),U)}function cr(w,g){return typeof w=="string"?w=ot(ve(w,g),g):s(w)==="object"&&(w=ve(ot(w,g),g)),w}function on(w,g,N){return typeof w=="string"?w=ot(ve(w,N),N):s(w)==="object"&&(w=ot(w,N)),typeof g=="string"?g=ot(ve(g,N),N):s(g)==="object"&&(g=ot(g,N)),w===g}function Un(w,g){return w&&w.toString().replace(!g||!g.iri?a.ESCAPE:l.ESCAPE,Q)}function pt(w,g){return w&&w.toString().replace(!g||!g.iri?a.PCT_ENCODED:l.PCT_ENCODED,ae)}var ur={scheme:"http",domainHost:!0,parse:function(g,N){return g.host||(g.error=g.error||"HTTP URIs must have a host."),g},serialize:function(g,N){var U=String(g.scheme).toLowerCase()==="https";return(g.port===(U?443:80)||g.port==="")&&(g.port=void 0),g.path||(g.path="/"),g}},Go={scheme:"https",domainHost:ur.domainHost,parse:ur.parse,serialize:ur.serialize};function Bo(w){return typeof w.secure=="boolean"?w.secure:String(w.scheme).toLowerCase()==="wss"}var an={scheme:"ws",domainHost:!0,parse:function(g,N){var U=g;return U.secure=Bo(U),U.resourceName=(U.path||"/")+(U.query?"?"+U.query:""),U.path=void 0,U.query=void 0,U},serialize:function(g,N){if((g.port===(Bo(g)?443:80)||g.port==="")&&(g.port=void 0),typeof g.secure=="boolean"&&(g.scheme=g.secure?"wss":"ws",g.secure=void 0),g.resourceName){var U=g.resourceName.split("?"),k=y(U,2),re=k[0],ne=k[1];g.path=re&&re!=="/"?re:void 0,g.query=ne,g.resourceName=void 0}return g.fragment=void 0,g}},Ho={scheme:"wss",domainHost:an.domainHost,parse:an.parse,serialize:an.serialize},hf={},Ko="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Pt="[0-9A-Fa-f]",mf=i(i("%[EFef]"+Pt+"%"+Pt+Pt+"%"+Pt+Pt)+"|"+i("%[89A-Fa-f]"+Pt+"%"+Pt+Pt)+"|"+i("%"+Pt+Pt)),pf="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",yf="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Ef=n(yf,'[\\"\\\\]'),vf="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",gf=new RegExp(Ko,"g"),Rr=new RegExp(mf,"g"),$f=new RegExp(n("[^]",pf,"[\\.]",'[\\"]',Ef),"g"),Wo=new RegExp(n("[^]",Ko,vf),"g"),_f=Wo;function Wi(w){var g=ae(w);return g.match(gf)?g:w}var Xo={scheme:"mailto",parse:function(g,N){var U=g,k=U.to=U.path?U.path.split(","):[];if(U.path=void 0,U.query){for(var re=!1,ne={},de=U.query.split("&"),Se=0,Ce=de.length;Se<Ce;++Se){var ue=de[Se].split("=");switch(ue[0]){case"to":for(var $e=ue[1].split(","),Pe=0,ie=$e.length;Pe<ie;++Pe)k.push($e[Pe]);break;case"subject":U.subject=pt(ue[1],N);break;case"body":U.body=pt(ue[1],N);break;default:re=!0,ne[pt(ue[0],N)]=pt(ue[1],N);break}}re&&(U.headers=ne)}U.query=void 0;for(var Ne=0,Le=k.length;Ne<Le;++Ne){var Ie=k[Ne].split("@");if(Ie[0]=pt(Ie[0]),N.unicodeSupport)Ie[1]=pt(Ie[1],N).toLowerCase();else try{Ie[1]=x.toASCII(pt(Ie[1],N).toLowerCase())}catch(Kt){U.error=U.error||"Email address's domain name can not be converted to ASCII via punycode: "+Kt}k[Ne]=Ie.join("@")}return U},serialize:function(g,N){var U=g,k=c(g.to);if(k){for(var re=0,ne=k.length;re<ne;++re){var de=String(k[re]),Se=de.lastIndexOf("@"),Ce=de.slice(0,Se).replace(Rr,Wi).replace(Rr,o).replace($f,Q),ue=de.slice(Se+1);try{ue=N.iri?x.toUnicode(ue):x.toASCII(pt(ue,N).toLowerCase())}catch(Ne){U.error=U.error||"Email address's domain name can not be converted to "+(N.iri?"Unicode":"ASCII")+" via punycode: "+Ne}k[re]=Ce+"@"+ue}U.path=k.join(",")}var $e=g.headers=g.headers||{};g.subject&&($e.subject=g.subject),g.body&&($e.body=g.body);var Pe=[];for(var ie in $e)$e[ie]!==hf[ie]&&Pe.push(ie.replace(Rr,Wi).replace(Rr,o).replace(Wo,Q)+"="+$e[ie].replace(Rr,Wi).replace(Rr,o).replace(_f,Q));return Pe.length&&(U.query=Pe.join("&")),U}},Sf=/^([^\:]+)\:(.*)/,Zo={scheme:"urn",parse:function(g,N){var U=g.path&&g.path.match(Sf),k=g;if(U){var re=N.scheme||k.scheme||"urn",ne=U[1].toLowerCase(),de=U[2],Se=re+":"+(N.nid||ne),Ce=Y[Se];k.nid=ne,k.nss=de,k.path=void 0,Ce&&(k=Ce.parse(k,N))}else k.error=k.error||"URN can not be parsed.";return k},serialize:function(g,N){var U=N.scheme||g.scheme||"urn",k=g.nid,re=U+":"+(N.nid||k),ne=Y[re];ne&&(g=ne.serialize(g,N));var de=g,Se=g.nss;return de.path=(k||N.nid)+":"+Se,de}},wf=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Jo={scheme:"urn:uuid",parse:function(g,N){var U=g;return U.uuid=U.nss,U.nss=void 0,!N.tolerant&&(!U.uuid||!U.uuid.match(wf))&&(U.error=U.error||"UUID is not valid."),U},serialize:function(g,N){var U=g;return U.nss=(g.uuid||"").toLowerCase(),U}};Y[ur.scheme]=ur,Y[Go.scheme]=Go,Y[an.scheme]=an,Y[Ho.scheme]=Ho,Y[Xo.scheme]=Xo,Y[Zo.scheme]=Zo,Y[Jo.scheme]=Jo,r.SCHEMES=Y,r.pctEncChar=Q,r.pctDecChars=ae,r.parse=ve,r.removeDotSegments=je,r.serialize=ot,r.resolveComponents=Dr,r.resolve=sn,r.normalize=cr,r.equal=on,r.escapeComponent=Un,r.unescapeComponent=pt,Object.defineProperty(r,"__esModule",{value:!0})})})($s,$s.exports);Object.defineProperty(to,"__esModule",{value:!0});const qu=$s.exports;qu.code='require("ajv/dist/runtime/uri").default';to.default=qu;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=Ai();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=oe;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=bi,i=Li,s=wr,o=ut,c=oe,u=He,p=Rn,a=he,l=qm,y=to,d=(T,I)=>new RegExp(T,I);d.code="new RegExp";const h=["removeAdditional","useDefaults","coerceTypes"],m=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),E={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},f={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},$=200;function _(T){var I,M,P,v,S,x,Y,Q,ae,D,A,H,J,te,se,ve,lt,xe,Ve,be,Ht,je,ot,Dr,sn;const cr=T.strict,on=(I=T.code)===null||I===void 0?void 0:I.optimize,Un=on===!0||on===void 0?1:on||0,pt=(P=(M=T.code)===null||M===void 0?void 0:M.regExp)!==null&&P!==void 0?P:d,ur=(v=T.uriResolver)!==null&&v!==void 0?v:y.default;return{strictSchema:(x=(S=T.strictSchema)!==null&&S!==void 0?S:cr)!==null&&x!==void 0?x:!0,strictNumbers:(Q=(Y=T.strictNumbers)!==null&&Y!==void 0?Y:cr)!==null&&Q!==void 0?Q:!0,strictTypes:(D=(ae=T.strictTypes)!==null&&ae!==void 0?ae:cr)!==null&&D!==void 0?D:"log",strictTuples:(H=(A=T.strictTuples)!==null&&A!==void 0?A:cr)!==null&&H!==void 0?H:"log",strictRequired:(te=(J=T.strictRequired)!==null&&J!==void 0?J:cr)!==null&&te!==void 0?te:!1,code:T.code?{...T.code,optimize:Un,regExp:pt}:{optimize:Un,regExp:pt},loopRequired:(se=T.loopRequired)!==null&&se!==void 0?se:$,loopEnum:(ve=T.loopEnum)!==null&&ve!==void 0?ve:$,meta:(lt=T.meta)!==null&&lt!==void 0?lt:!0,messages:(xe=T.messages)!==null&&xe!==void 0?xe:!0,inlineRefs:(Ve=T.inlineRefs)!==null&&Ve!==void 0?Ve:!0,schemaId:(be=T.schemaId)!==null&&be!==void 0?be:"$id",addUsedSchema:(Ht=T.addUsedSchema)!==null&&Ht!==void 0?Ht:!0,validateSchema:(je=T.validateSchema)!==null&&je!==void 0?je:!0,validateFormats:(ot=T.validateFormats)!==null&&ot!==void 0?ot:!0,unicodeRegExp:(Dr=T.unicodeRegExp)!==null&&Dr!==void 0?Dr:!0,int32range:(sn=T.int32range)!==null&&sn!==void 0?sn:!0,uriResolver:ur}}class O{constructor(I={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,I=this.opts={...I,..._(I)};const{es5:M,lines:P}=this.opts.code;this.scope=new c.ValueScope({scope:{},prefixes:m,es5:M,lines:P}),this.logger=b(I.logger);const v=I.validateFormats;I.validateFormats=!1,this.RULES=(0,s.getRules)(),q.call(this,E,I,"NOT SUPPORTED"),q.call(this,f,I,"DEPRECATED","warn"),this._metaOpts=G.call(this),I.formats&&V.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),I.keywords&&L.call(this,I.keywords),typeof I.meta=="object"&&this.addMetaSchema(I.meta),C.call(this),I.validateFormats=v}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:I,meta:M,schemaId:P}=this.opts;let v=l;P==="id"&&(v={...l},v.id=v.$id,delete v.$id),M&&I&&this.addMetaSchema(v,v[P],!1)}defaultMeta(){const{meta:I,schemaId:M}=this.opts;return this.opts.defaultMeta=typeof I=="object"?I[M]||I:void 0}validate(I,M){let P;if(typeof I=="string"){if(P=this.getSchema(I),!P)throw new Error(`no schema with key or ref "${I}"`)}else P=this.compile(I);const v=P(M);return"$async"in P||(this.errors=P.errors),v}compile(I,M){const P=this._addSchema(I,M);return P.validate||this._compileSchemaEnv(P)}compileAsync(I,M){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:P}=this.opts;return v.call(this,I,M);async function v(D,A){await S.call(this,D.$schema);const H=this._addSchema(D,A);return H.validate||x.call(this,H)}async function S(D){D&&!this.getSchema(D)&&await v.call(this,{$ref:D},!0)}async function x(D){try{return this._compileSchemaEnv(D)}catch(A){if(!(A instanceof i.default))throw A;return Y.call(this,A),await Q.call(this,A.missingSchema),x.call(this,D)}}function Y({missingSchema:D,missingRef:A}){if(this.refs[D])throw new Error(`AnySchema ${D} is loaded but ${A} cannot be resolved`)}async function Q(D){const A=await ae.call(this,D);this.refs[D]||await S.call(this,A.$schema),this.refs[D]||this.addSchema(A,D,M)}async function ae(D){const A=this._loading[D];if(A)return A;try{return await(this._loading[D]=P(D))}finally{delete this._loading[D]}}}addSchema(I,M,P,v=this.opts.validateSchema){if(Array.isArray(I)){for(const x of I)this.addSchema(x,void 0,P,v);return this}let S;if(typeof I=="object"){const{schemaId:x}=this.opts;if(S=I[x],S!==void 0&&typeof S!="string")throw new Error(`schema ${x} must be string`)}return M=(0,u.normalizeId)(M||S),this._checkUnique(M),this.schemas[M]=this._addSchema(I,P,M,v,!0),this}addMetaSchema(I,M,P=this.opts.validateSchema){return this.addSchema(I,M,!0,P),this}validateSchema(I,M){if(typeof I=="boolean")return!0;let P;if(P=I.$schema,P!==void 0&&typeof P!="string")throw new Error("$schema must be a string");if(P=P||this.opts.defaultMeta||this.defaultMeta(),!P)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const v=this.validate(P,I);if(!v&&M){const S="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(S);else throw new Error(S)}return v}getSchema(I){let M;for(;typeof(M=R.call(this,I))=="string";)I=M;if(M===void 0){const{schemaId:P}=this.opts,v=new o.SchemaEnv({schema:{},schemaId:P});if(M=o.resolveSchema.call(this,v,I),!M)return;this.refs[I]=M}return M.validate||this._compileSchemaEnv(M)}removeSchema(I){if(I instanceof RegExp)return this._removeAllSchemas(this.schemas,I),this._removeAllSchemas(this.refs,I),this;switch(typeof I){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const M=R.call(this,I);return typeof M=="object"&&this._cache.delete(M.schema),delete this.schemas[I],delete this.refs[I],this}case"object":{const M=I;this._cache.delete(M);let P=I[this.opts.schemaId];return P&&(P=(0,u.normalizeId)(P),delete this.schemas[P],delete this.refs[P]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(I){for(const M of I)this.addKeyword(M);return this}addKeyword(I,M){let P;if(typeof I=="string")P=I,typeof M=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),M.keyword=P);else if(typeof I=="object"&&M===void 0){if(M=I,P=M.keyword,Array.isArray(P)&&!P.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(B.call(this,P,M),!M)return(0,a.eachItem)(P,S=>X.call(this,S)),this;W.call(this,M);const v={...M,type:(0,p.getJSONTypes)(M.type),schemaType:(0,p.getJSONTypes)(M.schemaType)};return(0,a.eachItem)(P,v.type.length===0?S=>X.call(this,S,v):S=>v.type.forEach(x=>X.call(this,S,v,x))),this}getKeyword(I){const M=this.RULES.all[I];return typeof M=="object"?M.definition:!!M}removeKeyword(I){const{RULES:M}=this;delete M.keywords[I],delete M.all[I];for(const P of M.rules){const v=P.rules.findIndex(S=>S.keyword===I);v>=0&&P.rules.splice(v,1)}return this}addFormat(I,M){return typeof M=="string"&&(M=new RegExp(M)),this.formats[I]=M,this}errorsText(I=this.errors,{separator:M=", ",dataVar:P="data"}={}){return!I||I.length===0?"No errors":I.map(v=>`${P}${v.instancePath} ${v.message}`).reduce((v,S)=>v+M+S)}$dataMetaSchema(I,M){const P=this.RULES.all;I=JSON.parse(JSON.stringify(I));for(const v of M){const S=v.split("/").slice(1);let x=I;for(const Y of S)x=x[Y];for(const Y in P){const Q=P[Y];if(typeof Q!="object")continue;const{$data:ae}=Q.definition,D=x[Y];ae&&D&&(x[Y]=z(D))}}return I}_removeAllSchemas(I,M){for(const P in I){const v=I[P];(!M||M.test(P))&&(typeof v=="string"?delete I[P]:v&&!v.meta&&(this._cache.delete(v.schema),delete I[P]))}}_addSchema(I,M,P,v=this.opts.validateSchema,S=this.opts.addUsedSchema){let x;const{schemaId:Y}=this.opts;if(typeof I=="object")x=I[Y];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof I!="boolean")throw new Error("schema must be object or boolean")}let Q=this._cache.get(I);if(Q!==void 0)return Q;P=(0,u.normalizeId)(x||P);const ae=u.getSchemaRefs.call(this,I,P);return Q=new o.SchemaEnv({schema:I,schemaId:Y,meta:M,baseId:P,localRefs:ae}),this._cache.set(Q.schema,Q),S&&!P.startsWith("#")&&(P&&this._checkUnique(P),this.refs[P]=Q),v&&this.validateSchema(I,!0),Q}_checkUnique(I){if(this.schemas[I]||this.refs[I])throw new Error(`schema with key or id "${I}" already exists`)}_compileSchemaEnv(I){if(I.meta?this._compileMetaSchema(I):o.compileSchema.call(this,I),!I.validate)throw new Error("ajv implementation error");return I.validate}_compileMetaSchema(I){const M=this.opts;this.opts=this._metaOpts;try{o.compileSchema.call(this,I)}finally{this.opts=M}}}e.default=O,O.ValidationError=n.default,O.MissingRefError=i.default;function q(T,I,M,P="error"){for(const v in T){const S=v;S in I&&this.logger[P](`${M}: option ${v}. ${T[S]}`)}}function R(T){return T=(0,u.normalizeId)(T),this.schemas[T]||this.refs[T]}function C(){const T=this.opts.schemas;if(!!T)if(Array.isArray(T))this.addSchema(T);else for(const I in T)this.addSchema(T[I],I)}function V(){for(const T in this.opts.formats){const I=this.opts.formats[T];I&&this.addFormat(T,I)}}function L(T){if(Array.isArray(T)){this.addVocabulary(T);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const I in T){const M=T[I];M.keyword||(M.keyword=I),this.addKeyword(M)}}function G(){const T={...this.opts};for(const I of h)delete T[I];return T}const j={log(){},warn(){},error(){}};function b(T){if(T===!1)return j;if(T===void 0)return console;if(T.log&&T.warn&&T.error)return T;throw new Error("logger must implement log, warn and error methods")}const K=/^[a-z_$][a-z0-9_$:-]*$/i;function B(T,I){const{RULES:M}=this;if((0,a.eachItem)(T,P=>{if(M.keywords[P])throw new Error(`Keyword ${P} is already defined`);if(!K.test(P))throw new Error(`Keyword ${P} has invalid name`)}),!!I&&I.$data&&!("code"in I||"validate"in I))throw new Error('$data keyword must have "code" or "validate" function')}function X(T,I,M){var P;const v=I==null?void 0:I.post;if(M&&v)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:S}=this;let x=v?S.post:S.rules.find(({type:Q})=>Q===M);if(x||(x={type:M,rules:[]},S.rules.push(x)),S.keywords[T]=!0,!I)return;const Y={keyword:T,definition:{...I,type:(0,p.getJSONTypes)(I.type),schemaType:(0,p.getJSONTypes)(I.schemaType)}};I.before?Z.call(this,x,Y,I.before):x.rules.push(Y),S.all[T]=Y,(P=I.implements)===null||P===void 0||P.forEach(Q=>this.addKeyword(Q))}function Z(T,I,M){const P=T.rules.findIndex(v=>v.keyword===M);P>=0?T.rules.splice(P,0,I):(T.rules.push(I),this.logger.warn(`rule ${M} is not defined`))}function W(T){let{metaSchema:I}=T;I!==void 0&&(T.$data&&this.opts.$data&&(I=z(I)),T.validateSchema=this.compile(I,!0))}const F={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function z(T){return{anyOf:[T,F]}}})(bu);var ro={},no={},io={};Object.defineProperty(io,"__esModule",{value:!0});const Gm={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};io.default=Gm;var Nr={};Object.defineProperty(Nr,"__esModule",{value:!0});Nr.callRef=Nr.getValidate=void 0;const Bm=Li,ba=ce,ct=oe,br=kt,La=ut,Wn=he,Hm={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:s,validateName:o,opts:c,self:u}=n,{root:p}=s;if((r==="#"||r==="#/")&&i===p.baseId)return l();const a=La.resolveRef.call(u,p,i,r);if(a===void 0)throw new Bm.default(n.opts.uriResolver,i,r);if(a instanceof La.SchemaEnv)return y(a);return d(a);function l(){if(s===p)return ai(e,o,s,s.$async);const h=t.scopeValue("root",{ref:p});return ai(e,(0,ct._)`${h}.validate`,p,p.$async)}function y(h){const m=Gu(e,h);ai(e,m,h,h.$async)}function d(h){const m=t.scopeValue("schema",c.code.source===!0?{ref:h,code:(0,ct.stringify)(h)}:{ref:h}),E=t.name("valid"),f=e.subschema({schema:h,dataTypes:[],schemaPath:ct.nil,topSchemaRef:m,errSchemaPath:r},E);e.mergeEvaluated(f),e.ok(E)}}};function Gu(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,ct._)`${r.scopeValue("wrapper",{ref:t})}.validate`}Nr.getValidate=Gu;function ai(e,t,r,n){const{gen:i,it:s}=e,{allErrors:o,schemaEnv:c,opts:u}=s,p=u.passContext?br.default.this:ct.nil;n?a():l();function a(){if(!c.$async)throw new Error("async schema referenced by sync schema");const h=i.let("valid");i.try(()=>{i.code((0,ct._)`await ${(0,ba.callValidateCode)(e,t,p)}`),d(t),o||i.assign(h,!0)},m=>{i.if((0,ct._)`!(${m} instanceof ${s.ValidationError})`,()=>i.throw(m)),y(m),o||i.assign(h,!1)}),e.ok(h)}function l(){e.result((0,ba.callValidateCode)(e,t,p),()=>d(t),()=>y(t))}function y(h){const m=(0,ct._)`${h}.errors`;i.assign(br.default.vErrors,(0,ct._)`${br.default.vErrors} === null ? ${m} : ${br.default.vErrors}.concat(${m})`),i.assign(br.default.errors,(0,ct._)`${br.default.vErrors}.length`)}function d(h){var m;if(!s.opts.unevaluated)return;const E=(m=r==null?void 0:r.validate)===null||m===void 0?void 0:m.evaluated;if(s.props!==!0)if(E&&!E.dynamicProps)E.props!==void 0&&(s.props=Wn.mergeEvaluated.props(i,E.props,s.props));else{const f=i.var("props",(0,ct._)`${h}.evaluated.props`);s.props=Wn.mergeEvaluated.props(i,f,s.props,ct.Name)}if(s.items!==!0)if(E&&!E.dynamicItems)E.items!==void 0&&(s.items=Wn.mergeEvaluated.items(i,E.items,s.items));else{const f=i.var("items",(0,ct._)`${h}.evaluated.items`);s.items=Wn.mergeEvaluated.items(i,f,s.items,ct.Name)}}}Nr.callRef=ai;Nr.default=Hm;Object.defineProperty(no,"__esModule",{value:!0});const Km=io,Wm=Nr,Xm=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Km.default,Wm.default];no.default=Xm;var so={},oo={};Object.defineProperty(oo,"__esModule",{value:!0});const vi=oe,Zt=vi.operators,gi={maximum:{okStr:"<=",ok:Zt.LTE,fail:Zt.GT},minimum:{okStr:">=",ok:Zt.GTE,fail:Zt.LT},exclusiveMaximum:{okStr:"<",ok:Zt.LT,fail:Zt.GTE},exclusiveMinimum:{okStr:">",ok:Zt.GT,fail:Zt.LTE}},Zm={message:({keyword:e,schemaCode:t})=>(0,vi.str)`must be ${gi[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,vi._)`{comparison: ${gi[e].okStr}, limit: ${t}}`},Jm={keyword:Object.keys(gi),type:"number",schemaType:"number",$data:!0,error:Zm,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,vi._)`${r} ${gi[t].fail} ${n} || isNaN(${r})`)}};oo.default=Jm;var ao={};Object.defineProperty(ao,"__esModule",{value:!0});const vn=oe,Ym={message:({schemaCode:e})=>(0,vn.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,vn._)`{multipleOf: ${e}}`},Qm={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Ym,code(e){const{gen:t,data:r,schemaCode:n,it:i}=e,s=i.opts.multipleOfPrecision,o=t.let("res"),c=s?(0,vn._)`Math.abs(Math.round(${o}) - ${o}) > 1e-${s}`:(0,vn._)`${o} !== parseInt(${o})`;e.fail$data((0,vn._)`(${n} === 0 || (${o} = ${r}/${n}, ${c}))`)}};ao.default=Qm;var co={},uo={};Object.defineProperty(uo,"__esModule",{value:!0});function Bu(e){const t=e.length;let r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}uo.default=Bu;Bu.code='require("ajv/dist/runtime/ucs2length").default';Object.defineProperty(co,"__esModule",{value:!0});const yr=oe,ep=he,tp=uo,rp={message({keyword:e,schemaCode:t}){const r=e==="maxLength"?"more":"fewer";return(0,yr.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,yr._)`{limit: ${e}}`},np={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:rp,code(e){const{keyword:t,data:r,schemaCode:n,it:i}=e,s=t==="maxLength"?yr.operators.GT:yr.operators.LT,o=i.opts.unicode===!1?(0,yr._)`${r}.length`:(0,yr._)`${(0,ep.useFunc)(e.gen,tp.default)}(${r})`;e.fail$data((0,yr._)`${o} ${s} ${n}`)}};co.default=np;var fo={};Object.defineProperty(fo,"__esModule",{value:!0});const ip=ce,$i=oe,sp={message:({schemaCode:e})=>(0,$i.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,$i._)`{pattern: ${e}}`},op={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:sp,code(e){const{data:t,$data:r,schema:n,schemaCode:i,it:s}=e,o=s.opts.unicodeRegExp?"u":"",c=r?(0,$i._)`(new RegExp(${i}, ${o}))`:(0,ip.usePattern)(e,n);e.fail$data((0,$i._)`!${c}.test(${t})`)}};fo.default=op;var lo={};Object.defineProperty(lo,"__esModule",{value:!0});const gn=oe,ap={message({keyword:e,schemaCode:t}){const r=e==="maxProperties"?"more":"fewer";return(0,gn.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,gn._)`{limit: ${e}}`},cp={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:ap,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?gn.operators.GT:gn.operators.LT;e.fail$data((0,gn._)`Object.keys(${r}).length ${i} ${n}`)}};lo.default=cp;var ho={};Object.defineProperty(ho,"__esModule",{value:!0});const ln=ce,$n=oe,up=he,fp={message:({params:{missingProperty:e}})=>(0,$n.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,$n._)`{missingProperty: ${e}}`},lp={keyword:"required",type:"object",schemaType:"array",$data:!0,error:fp,code(e){const{gen:t,schema:r,schemaCode:n,data:i,$data:s,it:o}=e,{opts:c}=o;if(!s&&r.length===0)return;const u=r.length>=c.loopRequired;if(o.allErrors?p():a(),c.strictRequired){const d=e.parentSchema.properties,{definedProperties:h}=e.it;for(const m of r)if((d==null?void 0:d[m])===void 0&&!h.has(m)){const E=o.schemaEnv.baseId+o.errSchemaPath,f=`required property "${m}" is not defined at "${E}" (strictRequired)`;(0,up.checkStrictMode)(o,f,o.opts.strictRequired)}}function p(){if(u||s)e.block$data($n.nil,l);else for(const d of r)(0,ln.checkReportMissingProp)(e,d)}function a(){const d=t.let("missing");if(u||s){const h=t.let("valid",!0);e.block$data(h,()=>y(d,h)),e.ok(h)}else t.if((0,ln.checkMissingProp)(e,r,d)),(0,ln.reportMissingProp)(e,d),t.else()}function l(){t.forOf("prop",n,d=>{e.setParams({missingProperty:d}),t.if((0,ln.noPropertyInData)(t,i,d,c.ownProperties),()=>e.error())})}function y(d,h){e.setParams({missingProperty:d}),t.forOf(d,n,()=>{t.assign(h,(0,ln.propertyInData)(t,i,d,c.ownProperties)),t.if((0,$n.not)(h),()=>{e.error(),t.break()})},$n.nil)}}};ho.default=lp;var mo={};Object.defineProperty(mo,"__esModule",{value:!0});const _n=oe,dp={message({keyword:e,schemaCode:t}){const r=e==="maxItems"?"more":"fewer";return(0,_n.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,_n._)`{limit: ${e}}`},hp={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:dp,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?_n.operators.GT:_n.operators.LT;e.fail$data((0,_n._)`${r}.length ${i} ${n}`)}};mo.default=hp;var po={},kn={};Object.defineProperty(kn,"__esModule",{value:!0});const Hu=Mu;Hu.code='require("ajv/dist/runtime/equal").default';kn.default=Hu;Object.defineProperty(po,"__esModule",{value:!0});const rs=Rn,Ge=oe,mp=he,pp=kn,yp={message:({params:{i:e,j:t}})=>(0,Ge.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Ge._)`{i: ${e}, j: ${t}}`},Ep={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:yp,code(e){const{gen:t,data:r,$data:n,schema:i,parentSchema:s,schemaCode:o,it:c}=e;if(!n&&!i)return;const u=t.let("valid"),p=s.items?(0,rs.getSchemaTypes)(s.items):[];e.block$data(u,a,(0,Ge._)`${o} === false`),e.ok(u);function a(){const h=t.let("i",(0,Ge._)`${r}.length`),m=t.let("j");e.setParams({i:h,j:m}),t.assign(u,!0),t.if((0,Ge._)`${h} > 1`,()=>(l()?y:d)(h,m))}function l(){return p.length>0&&!p.some(h=>h==="object"||h==="array")}function y(h,m){const E=t.name("item"),f=(0,rs.checkDataTypes)(p,E,c.opts.strictNumbers,rs.DataType.Wrong),$=t.const("indices",(0,Ge._)`{}`);t.for((0,Ge._)`;${h}--;`,()=>{t.let(E,(0,Ge._)`${r}[${h}]`),t.if(f,(0,Ge._)`continue`),p.length>1&&t.if((0,Ge._)`typeof ${E} == "string"`,(0,Ge._)`${E} += "_"`),t.if((0,Ge._)`typeof ${$}[${E}] == "number"`,()=>{t.assign(m,(0,Ge._)`${$}[${E}]`),e.error(),t.assign(u,!1).break()}).code((0,Ge._)`${$}[${E}] = ${h}`)})}function d(h,m){const E=(0,mp.useFunc)(t,pp.default),f=t.name("outer");t.label(f).for((0,Ge._)`;${h}--;`,()=>t.for((0,Ge._)`${m} = ${h}; ${m}--;`,()=>t.if((0,Ge._)`${E}(${r}[${h}], ${r}[${m}])`,()=>{e.error(),t.assign(u,!1).break(f)})))}}};po.default=Ep;var yo={};Object.defineProperty(yo,"__esModule",{value:!0});const _s=oe,vp=he,gp=kn,$p={message:"must be equal to constant",params:({schemaCode:e})=>(0,_s._)`{allowedValue: ${e}}`},_p={keyword:"const",$data:!0,error:$p,code(e){const{gen:t,data:r,$data:n,schemaCode:i,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,_s._)`!${(0,vp.useFunc)(t,gp.default)}(${r}, ${i})`):e.fail((0,_s._)`${s} !== ${r}`)}};yo.default=_p;var Eo={};Object.defineProperty(Eo,"__esModule",{value:!0});const mn=oe,Sp=he,wp=kn,Np={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,mn._)`{allowedValues: ${e}}`},Ip={keyword:"enum",schemaType:"array",$data:!0,error:Np,code(e){const{gen:t,data:r,$data:n,schema:i,schemaCode:s,it:o}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");const c=i.length>=o.opts.loopEnum;let u;const p=()=>u!=null?u:u=(0,Sp.useFunc)(t,wp.default);let a;if(c||n)a=t.let("valid"),e.block$data(a,l);else{if(!Array.isArray(i))throw new Error("ajv implementation error");const d=t.const("vSchema",s);a=(0,mn.or)(...i.map((h,m)=>y(d,m)))}e.pass(a);function l(){t.assign(a,!1),t.forOf("v",s,d=>t.if((0,mn._)`${p()}(${r}, ${d})`,()=>t.assign(a,!0).break()))}function y(d,h){const m=i[h];return typeof m=="object"&&m!==null?(0,mn._)`${p()}(${r}, ${d}[${h}])`:(0,mn._)`${r} === ${m}`}}};Eo.default=Ip;Object.defineProperty(so,"__esModule",{value:!0});const Op=oo,Tp=ao,Dp=co,Rp=fo,Cp=lo,Pp=ho,Ap=mo,bp=po,Lp=yo,Fp=Eo,jp=[Op.default,Tp.default,Dp.default,Rp.default,Cp.default,Pp.default,Ap.default,bp.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Lp.default,Fp.default];so.default=jp;var vo={},en={};Object.defineProperty(en,"__esModule",{value:!0});en.validateAdditionalItems=void 0;const Er=oe,Ss=he,Mp={message:({params:{len:e}})=>(0,Er.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Er._)`{limit: ${e}}`},kp={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Mp,code(e){const{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Ss.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Ku(e,n)}};function Ku(e,t){const{gen:r,schema:n,data:i,keyword:s,it:o}=e;o.items=!0;const c=r.const("len",(0,Er._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Er._)`${c} <= ${t.length}`);else if(typeof n=="object"&&!(0,Ss.alwaysValidSchema)(o,n)){const p=r.var("valid",(0,Er._)`${c} <= ${t.length}`);r.if((0,Er.not)(p),()=>u(p)),e.ok(p)}function u(p){r.forRange("i",t.length,c,a=>{e.subschema({keyword:s,dataProp:a,dataPropType:Ss.Type.Num},p),o.allErrors||r.if((0,Er.not)(p),()=>r.break())})}}en.validateAdditionalItems=Ku;en.default=kp;var go={},tn={};Object.defineProperty(tn,"__esModule",{value:!0});tn.validateTuple=void 0;const Fa=oe,ci=he,Up=ce,zp={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return Wu(e,"additionalItems",t);r.items=!0,!(0,ci.alwaysValidSchema)(r,t)&&e.ok((0,Up.validateArray)(e))}};function Wu(e,t,r=e.schema){const{gen:n,parentSchema:i,data:s,keyword:o,it:c}=e;a(i),c.opts.unevaluated&&r.length&&c.items!==!0&&(c.items=ci.mergeEvaluated.items(n,r.length,c.items));const u=n.name("valid"),p=n.const("len",(0,Fa._)`${s}.length`);r.forEach((l,y)=>{(0,ci.alwaysValidSchema)(c,l)||(n.if((0,Fa._)`${p} > ${y}`,()=>e.subschema({keyword:o,schemaProp:y,dataProp:y},u)),e.ok(u))});function a(l){const{opts:y,errSchemaPath:d}=c,h=r.length,m=h===l.minItems&&(h===l.maxItems||l[t]===!1);if(y.strictTuples&&!m){const E=`"${o}" is ${h}-tuple, but minItems or maxItems/${t} are not specified or different at path "${d}"`;(0,ci.checkStrictMode)(c,E,y.strictTuples)}}}tn.validateTuple=Wu;tn.default=zp;Object.defineProperty(go,"__esModule",{value:!0});const xp=tn,Vp={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,xp.validateTuple)(e,"items")};go.default=Vp;var $o={};Object.defineProperty($o,"__esModule",{value:!0});const ja=oe,qp=he,Gp=ce,Bp=en,Hp={message:({params:{len:e}})=>(0,ja.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,ja._)`{limit: ${e}}`},Kp={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:Hp,code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,qp.alwaysValidSchema)(n,t)&&(i?(0,Bp.validateAdditionalItems)(e,i):e.ok((0,Gp.validateArray)(e)))}};$o.default=Kp;var _o={};Object.defineProperty(_o,"__esModule",{value:!0});const Et=oe,Xn=he,Wp={message:({params:{min:e,max:t}})=>t===void 0?(0,Et.str)`must contain at least ${e} valid item(s)`:(0,Et.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,Et._)`{minContains: ${e}}`:(0,Et._)`{minContains: ${e}, maxContains: ${t}}`},Xp={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:Wp,code(e){const{gen:t,schema:r,parentSchema:n,data:i,it:s}=e;let o,c;const{minContains:u,maxContains:p}=n;s.opts.next?(o=u===void 0?1:u,c=p):o=1;const a=t.const("len",(0,Et._)`${i}.length`);if(e.setParams({min:o,max:c}),c===void 0&&o===0){(0,Xn.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&o>c){(0,Xn.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Xn.alwaysValidSchema)(s,r)){let m=(0,Et._)`${a} >= ${o}`;c!==void 0&&(m=(0,Et._)`${m} && ${a} <= ${c}`),e.pass(m);return}s.items=!0;const l=t.name("valid");c===void 0&&o===1?d(l,()=>t.if(l,()=>t.break())):o===0?(t.let(l,!0),c!==void 0&&t.if((0,Et._)`${i}.length > 0`,y)):(t.let(l,!1),y()),e.result(l,()=>e.reset());function y(){const m=t.name("_valid"),E=t.let("count",0);d(m,()=>t.if(m,()=>h(E)))}function d(m,E){t.forRange("i",0,a,f=>{e.subschema({keyword:"contains",dataProp:f,dataPropType:Xn.Type.Num,compositeRule:!0},m),E()})}function h(m){t.code((0,Et._)`${m}++`),c===void 0?t.if((0,Et._)`${m} >= ${o}`,()=>t.assign(l,!0).break()):(t.if((0,Et._)`${m} > ${c}`,()=>t.assign(l,!1).break()),o===1?t.assign(l,!0):t.if((0,Et._)`${m} >= ${o}`,()=>t.assign(l,!0)))}}};_o.default=Xp;var Xu={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=oe,r=he,n=ce;e.error={message:({params:{property:u,depsCount:p,deps:a}})=>{const l=p===1?"property":"properties";return(0,t.str)`must have ${l} ${a} when property ${u} is present`},params:({params:{property:u,depsCount:p,deps:a,missingProperty:l}})=>(0,t._)`{property: ${u},
12
12
  missingProperty: ${l},
13
13
  depsCount: ${p},
14
- deps: ${a}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(u){const[p,a]=s(u);o(u,p),c(u,a)}};function s({schema:u}){const p={},a={};for(const l in u){if(l==="__proto__")continue;const y=Array.isArray(u[l])?p:a;y[l]=u[l]}return[p,a]}function o(u,p=u.schema){const{gen:a,data:l,it:y}=u;if(Object.keys(p).length===0)return;const d=a.let("missing");for(const h in p){const m=p[h];if(m.length===0)continue;const E=(0,n.propertyInData)(a,l,h,y.opts.ownProperties);u.setParams({property:h,depsCount:m.length,deps:m.join(", ")}),y.allErrors?a.if(E,()=>{for(const f of m)(0,n.checkReportMissingProp)(u,f)}):(a.if((0,t._)`${E} && (${(0,n.checkMissingProp)(u,m,d)})`),(0,n.reportMissingProp)(u,d),a.else())}}e.validatePropertyDeps=o;function c(u,p=u.schema){const{gen:a,data:l,keyword:y,it:d}=u,h=a.name("valid");for(const m in p)(0,r.alwaysValidSchema)(d,p[m])||(a.if((0,n.propertyInData)(a,l,m,d.opts.ownProperties),()=>{const E=u.subschema({keyword:y,schemaProp:m},h);u.mergeValidEvaluated(E,h)},()=>a.var(h,!0)),u.ok(h))}e.validateSchemaDeps=c,e.default=i})(Xu);var So={};Object.defineProperty(So,"__esModule",{value:!0});const Zu=oe,Jp=he,Yp={message:"property name must be valid",params:({params:e})=>(0,Zu._)`{propertyName: ${e.propertyName}}`},Qp={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Yp,code(e){const{gen:t,schema:r,data:n,it:i}=e;if((0,Jp.alwaysValidSchema)(i,r))return;const s=t.name("valid");t.forIn("key",n,o=>{e.setParams({propertyName:o}),e.subschema({keyword:"propertyNames",data:o,dataTypes:["string"],propertyName:o,compositeRule:!0},s),t.if((0,Zu.not)(s),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(s)}};So.default=Qp;var Mi={};Object.defineProperty(Mi,"__esModule",{value:!0});const Zn=ce,_t=oe,ey=kt,Jn=he,ty={message:"must NOT have additional properties",params:({params:e})=>(0,_t._)`{additionalProperty: ${e.additionalProperty}}`},ry={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:ty,code(e){const{gen:t,schema:r,parentSchema:n,data:i,errsCount:s,it:o}=e;if(!s)throw new Error("ajv implementation error");const{allErrors:c,opts:u}=o;if(o.props=!0,u.removeAdditional!=="all"&&(0,Jn.alwaysValidSchema)(o,r))return;const p=(0,Zn.allSchemaProperties)(n.properties),a=(0,Zn.allSchemaProperties)(n.patternProperties);l(),e.ok((0,_t._)`${s} === ${ey.default.errors}`);function l(){t.forIn("key",i,E=>{!p.length&&!a.length?h(E):t.if(y(E),()=>h(E))})}function y(E){let f;if(p.length>8){const $=(0,Jn.schemaRefOrVal)(o,n.properties,"properties");f=(0,Zn.isOwnProperty)(t,$,E)}else p.length?f=(0,_t.or)(...p.map($=>(0,_t._)`${E} === ${$}`)):f=_t.nil;return a.length&&(f=(0,_t.or)(f,...a.map($=>(0,_t._)`${(0,Zn.usePattern)(e,$)}.test(${E})`))),(0,_t.not)(f)}function d(E){t.code((0,_t._)`delete ${i}[${E}]`)}function h(E){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){d(E);return}if(r===!1){e.setParams({additionalProperty:E}),e.error(),c||t.break();return}if(typeof r=="object"&&!(0,Jn.alwaysValidSchema)(o,r)){const f=t.name("valid");u.removeAdditional==="failing"?(m(E,f,!1),t.if((0,_t.not)(f),()=>{e.reset(),d(E)})):(m(E,f),c||t.if((0,_t.not)(f),()=>t.break()))}}function m(E,f,$){const _={keyword:"additionalProperties",dataProp:E,dataPropType:Jn.Type.Str};$===!1&&Object.assign(_,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(_,f)}}};Mi.default=ry;var wo={};Object.defineProperty(wo,"__esModule",{value:!0});const ny=Ai(),ja=ce,ns=he,Ma=Mi,iy={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:n,data:i,it:s}=e;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&Ma.default.code(new ny.KeywordCxt(s,Ma.default,"additionalProperties"));const o=(0,ja.allSchemaProperties)(r);for(const l of o)s.definedProperties.add(l);s.opts.unevaluated&&o.length&&s.props!==!0&&(s.props=ns.mergeEvaluated.props(t,(0,ns.toHash)(o),s.props));const c=o.filter(l=>!(0,ns.alwaysValidSchema)(s,r[l]));if(c.length===0)return;const u=t.name("valid");for(const l of c)p(l)?a(l):(t.if((0,ja.propertyInData)(t,i,l,s.opts.ownProperties)),a(l),s.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(l),e.ok(u);function p(l){return s.opts.useDefaults&&!s.compositeRule&&r[l].default!==void 0}function a(l){e.subschema({keyword:"properties",schemaProp:l,dataProp:l},u)}}};wo.default=iy;var No={};Object.defineProperty(No,"__esModule",{value:!0});const ka=ce,Yn=oe,Ua=he,za=he,sy={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:n,parentSchema:i,it:s}=e,{opts:o}=s,c=(0,ka.allSchemaProperties)(r),u=c.filter(m=>(0,Ua.alwaysValidSchema)(s,r[m]));if(c.length===0||u.length===c.length&&(!s.opts.unevaluated||s.props===!0))return;const p=o.strictSchema&&!o.allowMatchingProperties&&i.properties,a=t.name("valid");s.props!==!0&&!(s.props instanceof Yn.Name)&&(s.props=(0,za.evaluatedPropsToName)(t,s.props));const{props:l}=s;y();function y(){for(const m of c)p&&d(m),s.allErrors?h(m):(t.var(a,!0),h(m),t.if(a))}function d(m){for(const E in p)new RegExp(m).test(E)&&(0,Ua.checkStrictMode)(s,`property ${E} matches pattern ${m} (use allowMatchingProperties)`)}function h(m){t.forIn("key",n,E=>{t.if((0,Yn._)`${(0,ka.usePattern)(e,m)}.test(${E})`,()=>{const f=u.includes(m);f||e.subschema({keyword:"patternProperties",schemaProp:m,dataProp:E,dataPropType:za.Type.Str},a),s.opts.unevaluated&&l!==!0?t.assign((0,Yn._)`${l}[${E}]`,!0):!f&&!s.allErrors&&t.if((0,Yn.not)(a),()=>t.break())})})}}};No.default=sy;var Io={};Object.defineProperty(Io,"__esModule",{value:!0});const oy=he,ay={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,oy.alwaysValidSchema)(n,r)){e.fail();return}const i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};Io.default=ay;var Oo={};Object.defineProperty(Oo,"__esModule",{value:!0});const cy=ce,uy={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:cy.validateUnion,error:{message:"must match a schema in anyOf"}};Oo.default=uy;var To={};Object.defineProperty(To,"__esModule",{value:!0});const ui=oe,fy=he,ly={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,ui._)`{passingSchemas: ${e.passing}}`},dy={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:ly,code(e){const{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;const s=r,o=t.let("valid",!1),c=t.let("passing",null),u=t.name("_valid");e.setParams({passing:c}),t.block(p),e.result(o,()=>e.reset(),()=>e.error(!0));function p(){s.forEach((a,l)=>{let y;(0,fy.alwaysValidSchema)(i,a)?t.var(u,!0):y=e.subschema({keyword:"oneOf",schemaProp:l,compositeRule:!0},u),l>0&&t.if((0,ui._)`${u} && ${o}`).assign(o,!1).assign(c,(0,ui._)`[${c}, ${l}]`).else(),t.if(u,()=>{t.assign(o,!0),t.assign(c,l),y&&e.mergeEvaluated(y,ui.Name)})})}}};To.default=dy;var Do={};Object.defineProperty(Do,"__esModule",{value:!0});const hy=he,my={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const i=t.name("valid");r.forEach((s,o)=>{if((0,hy.alwaysValidSchema)(n,s))return;const c=e.subschema({keyword:"allOf",schemaProp:o},i);e.ok(i),e.mergeEvaluated(c)})}};Do.default=my;var Ro={};Object.defineProperty(Ro,"__esModule",{value:!0});const _i=oe,Ju=he,py={message:({params:e})=>(0,_i.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,_i._)`{failingKeyword: ${e.ifClause}}`},yy={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:py,code(e){const{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,Ju.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const i=xa(n,"then"),s=xa(n,"else");if(!i&&!s)return;const o=t.let("valid",!0),c=t.name("_valid");if(u(),e.reset(),i&&s){const a=t.let("ifClause");e.setParams({ifClause:a}),t.if(c,p("then",a),p("else",a))}else i?t.if(c,p("then")):t.if((0,_i.not)(c),p("else"));e.pass(o,()=>e.error(!0));function u(){const a=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);e.mergeEvaluated(a)}function p(a,l){return()=>{const y=e.subschema({keyword:a},c);t.assign(o,c),e.mergeValidEvaluated(y,o),l?t.assign(l,(0,_i._)`${a}`):e.setParams({ifClause:a})}}}};function xa(e,t){const r=e.schema[t];return r!==void 0&&!(0,Ju.alwaysValidSchema)(e,r)}Ro.default=yy;var Co={};Object.defineProperty(Co,"__esModule",{value:!0});const Ey=he,vy={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,Ey.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Co.default=vy;Object.defineProperty(vo,"__esModule",{value:!0});const gy=en,$y=go,_y=tn,Sy=$o,wy=_o,Ny=Xu,Iy=So,Oy=Mi,Ty=wo,Dy=No,Ry=Io,Cy=Oo,Py=To,Ay=Do,by=Ro,Ly=Co;function Fy(e=!1){const t=[Ry.default,Cy.default,Py.default,Ay.default,by.default,Ly.default,Iy.default,Oy.default,Ny.default,Ty.default,Dy.default];return e?t.push($y.default,Sy.default):t.push(gy.default,_y.default),t.push(wy.default),t}vo.default=Fy;var Po={},Ao={};Object.defineProperty(Ao,"__esModule",{value:!0});const Ae=oe,jy={message:({schemaCode:e})=>(0,Ae.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Ae._)`{format: ${e}}`},My={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:jy,code(e,t){const{gen:r,data:n,$data:i,schema:s,schemaCode:o,it:c}=e,{opts:u,errSchemaPath:p,schemaEnv:a,self:l}=c;if(!u.validateFormats)return;i?y():d();function y(){const h=r.scopeValue("formats",{ref:l.formats,code:u.code.formats}),m=r.const("fDef",(0,Ae._)`${h}[${o}]`),E=r.let("fType"),f=r.let("format");r.if((0,Ae._)`typeof ${m} == "object" && !(${m} instanceof RegExp)`,()=>r.assign(E,(0,Ae._)`${m}.type || "string"`).assign(f,(0,Ae._)`${m}.validate`),()=>r.assign(E,(0,Ae._)`"string"`).assign(f,m)),e.fail$data((0,Ae.or)($(),_()));function $(){return u.strictSchema===!1?Ae.nil:(0,Ae._)`${o} && !${f}`}function _(){const O=a.$async?(0,Ae._)`(${m}.async ? await ${f}(${n}) : ${f}(${n}))`:(0,Ae._)`${f}(${n})`,q=(0,Ae._)`(typeof ${f} == "function" ? ${O} : ${f}.test(${n}))`;return(0,Ae._)`${f} && ${f} !== true && ${E} === ${t} && !${q}`}}function d(){const h=l.formats[s];if(!h){$();return}if(h===!0)return;const[m,E,f]=_(h);m===t&&e.pass(O());function $(){if(u.strictSchema===!1){l.logger.warn(q());return}throw new Error(q());function q(){return`unknown format "${s}" ignored in schema at path "${p}"`}}function _(q){const R=q instanceof RegExp?(0,Ae.regexpCode)(q):u.code.formats?(0,Ae._)`${u.code.formats}${(0,Ae.getProperty)(s)}`:void 0,C=r.scopeValue("formats",{key:s,ref:q,code:R});return typeof q=="object"&&!(q instanceof RegExp)?[q.type||"string",q.validate,(0,Ae._)`${C}.validate`]:["string",q,C]}function O(){if(typeof h=="object"&&!(h instanceof RegExp)&&h.async){if(!a.$async)throw new Error("async format in sync schema");return(0,Ae._)`await ${f}(${n})`}return typeof E=="function"?(0,Ae._)`${f}(${n})`:(0,Ae._)`${f}.test(${n})`}}}};Ao.default=My;Object.defineProperty(Po,"__esModule",{value:!0});const ky=Ao,Uy=[ky.default];Po.default=Uy;var Jr={};Object.defineProperty(Jr,"__esModule",{value:!0});Jr.contentVocabulary=Jr.metadataVocabulary=void 0;Jr.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Jr.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(ro,"__esModule",{value:!0});const zy=no,xy=so,Vy=vo,qy=Po,Va=Jr,Gy=[zy.default,xy.default,(0,Vy.default)(),qy.default,Va.metadataVocabulary,Va.contentVocabulary];ro.default=Gy;var bo={},Yu={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(Yu);Object.defineProperty(bo,"__esModule",{value:!0});const jr=oe,ws=Yu,qa=ut,By=he,Hy={message:({params:{discrError:e,tagName:t}})=>e===ws.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,jr._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},Ky={keyword:"discriminator",type:"object",schemaType:"object",error:Hy,code(e){const{gen:t,data:r,schema:n,parentSchema:i,it:s}=e,{oneOf:o}=i;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");const c=n.propertyName;if(typeof c!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!o)throw new Error("discriminator: requires oneOf keyword");const u=t.let("valid",!1),p=t.const("tag",(0,jr._)`${r}${(0,jr.getProperty)(c)}`);t.if((0,jr._)`typeof ${p} == "string"`,()=>a(),()=>e.error(!1,{discrError:ws.DiscrError.Tag,tag:p,tagName:c})),e.ok(u);function a(){const d=y();t.if(!1);for(const h in d)t.elseIf((0,jr._)`${p} === ${h}`),t.assign(u,l(d[h]));t.else(),e.error(!1,{discrError:ws.DiscrError.Mapping,tag:p,tagName:c}),t.endIf()}function l(d){const h=t.name("valid"),m=e.subschema({keyword:"oneOf",schemaProp:d},h);return e.mergeEvaluated(m,jr.Name),h}function y(){var d;const h={},m=f(i);let E=!0;for(let O=0;O<o.length;O++){let q=o[O];(q==null?void 0:q.$ref)&&!(0,By.schemaHasRulesButRef)(q,s.self.RULES)&&(q=qa.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,q==null?void 0:q.$ref),q instanceof qa.SchemaEnv&&(q=q.schema));const R=(d=q==null?void 0:q.properties)===null||d===void 0?void 0:d[c];if(typeof R!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);E=E&&(m||f(q)),$(R,O)}if(!E)throw new Error(`discriminator: "${c}" must be required`);return h;function f({required:O}){return Array.isArray(O)&&O.includes(c)}function $(O,q){if(O.const)_(O.const,q);else if(O.enum)for(const R of O.enum)_(R,q);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function _(O,q){if(typeof O!="string"||O in h)throw new Error(`discriminator: "${c}" values must be unique strings`);h[O]=q}}}};bo.default=Ky;const Wy="http://json-schema.org/draft-07/schema#",Xy="http://json-schema.org/draft-07/schema#",Zy="Core schema meta-schema",Jy={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:[]}},Yy=["object","boolean"],Qy={$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:"#"}},e0={$schema:Wy,$id:Xy,title:Zy,definitions:Jy,type:Yy,properties:Qy,default:!0};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const r=Au,n=ro,i=bo,s=e0,o=["/properties"],c="http://json-schema.org/draft-07/schema";class u extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(y=>this.addVocabulary(y)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const y=this.opts.$data?this.$dataMetaSchema(s,o):s;this.addMetaSchema(y,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}e.exports=t=u,Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var p=Ai();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return p.KeywordCxt}});var a=oe;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return a._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return a.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return a.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return a.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return a.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return a.CodeGen}})})(Ei,Ei.exports);var Ns={exports:{}},Qu={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(L,G){return{validate:L,compare:G}}e.fullFormats={date:t(s,o),time:t(u,p),"date-time":t(l,y),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:m,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:V,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:f,int32:{type:"number",validate:O},int64:{type:"number",validate:q},float:{type:"number",validate:R},double:{type:"number",validate:R},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,o),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,p),"date-time":t(/^\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,y),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},e.formatNames=Object.keys(e.fullFormats);function r(L){return L%4===0&&(L%100!==0||L%400===0)}const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function s(L){const G=n.exec(L);if(!G)return!1;const j=+G[1],b=+G[2],K=+G[3];return b>=1&&b<=12&&K>=1&&K<=(b===2&&r(j)?29:i[b])}function o(L,G){if(!!(L&&G))return L>G?1:L<G?-1:0}const c=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function u(L,G){const j=c.exec(L);if(!j)return!1;const b=+j[1],K=+j[2],B=+j[3],X=j[5];return(b<=23&&K<=59&&B<=59||b===23&&K===59&&B===60)&&(!G||X!=="")}function p(L,G){if(!(L&&G))return;const j=c.exec(L),b=c.exec(G);if(!!(j&&b))return L=j[1]+j[2]+j[3]+(j[4]||""),G=b[1]+b[2]+b[3]+(b[4]||""),L>G?1:L<G?-1:0}const a=/t|\s/i;function l(L){const G=L.split(a);return G.length===2&&s(G[0])&&u(G[1],!0)}function y(L,G){if(!(L&&G))return;const[j,b]=L.split(a),[K,B]=G.split(a),X=o(j,K);if(X!==void 0)return X||p(b,B)}const d=/\/|:/,h=/^(?:[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 m(L){return d.test(L)&&h.test(L)}const E=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function f(L){return E.lastIndex=0,E.test(L)}const $=-(2**31),_=2**31-1;function O(L){return Number.isInteger(L)&&L<=_&&L>=$}function q(L){return Number.isInteger(L)}function R(){return!0}const C=/[^\\]\\Z/;function V(L){if(C.test(L))return!1;try{return new RegExp(L),!0}catch{return!1}}})(Qu);var ef={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=Ei.exports,r=oe,n=r.operators,i={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},s={message:({keyword:c,schemaCode:u})=>r.str`should be ${i[c].okStr} ${u}`,params:({keyword:c,schemaCode:u})=>r._`{comparison: ${i[c].okStr}, limit: ${u}}`};e.formatLimitDefinition={keyword:Object.keys(i),type:"string",schemaType:"string",$data:!0,error:s,code(c){const{gen:u,data:p,schemaCode:a,keyword:l,it:y}=c,{opts:d,self:h}=y;if(!d.validateFormats)return;const m=new t.KeywordCxt(y,h.RULES.all.format.definition,"format");m.$data?E():f();function E(){const _=u.scopeValue("formats",{ref:h.formats,code:d.code.formats}),O=u.const("fmt",r._`${_}[${m.schemaCode}]`);c.fail$data(r.or(r._`typeof ${O} != "object"`,r._`${O} instanceof RegExp`,r._`typeof ${O}.compare != "function"`,$(O)))}function f(){const _=m.schema,O=h.formats[_];if(!O||O===!0)return;if(typeof O!="object"||O instanceof RegExp||typeof O.compare!="function")throw new Error(`"${l}": format "${_}" does not define "compare" function`);const q=u.scopeValue("formats",{key:_,ref:O,code:d.code.formats?r._`${d.code.formats}${r.getProperty(_)}`:void 0});c.fail$data($(q))}function $(_){return r._`${_}.compare(${p}, ${a}) ${i[l].fail} 0`}},dependencies:["format"]};const o=c=>(c.addKeyword(e.formatLimitDefinition),c);e.default=o})(ef);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=Qu,n=ef,i=oe,s=new i.Name("fullFormats"),o=new i.Name("fastFormats"),c=(p,a={keywords:!0})=>{if(Array.isArray(a))return u(p,a,r.fullFormats,s),p;const[l,y]=a.mode==="fast"?[r.fastFormats,o]:[r.fullFormats,s],d=a.formats||r.formatNames;return u(p,d,l,y),a.keywords&&n.default(p),p};c.get=(p,a="full")=>{const y=(a==="fast"?r.fastFormats:r.fullFormats)[p];if(!y)throw new Error(`Unknown format "${p}"`);return y};function u(p,a,l,y){var d,h;(d=(h=p.opts.code).formats)!==null&&d!==void 0||(h.formats=i._`require("ajv-formats/dist/formats").${y}`);for(const m of a)p.addFormat(m,l[m])}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c})(Ns,Ns.exports);const t0=(e,t,r,n)=>{if(r==="length"||r==="prototype"||r==="arguments"||r==="caller")return;const i=Object.getOwnPropertyDescriptor(e,r),s=Object.getOwnPropertyDescriptor(t,r);!r0(i,s)&&n||Object.defineProperty(e,r,s)},r0=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},n0=(e,t)=>{const r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r)},i0=(e,t)=>`/* Wrapped ${e}*/
15
- ${t}`,s0=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),o0=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),a0=(e,t,r)=>{const n=r===""?"":`with ${r.trim()}() `,i=i0.bind(null,n,t.toString());Object.defineProperty(i,"name",o0),Object.defineProperty(e,"toString",{...s0,value:i})},c0=(e,t,{ignoreNonConfigurable:r=!1}={})=>{const{name:n}=e;for(const i of Reflect.ownKeys(t))t0(e,t,i,r);return n0(e,t),a0(e,t,n),e};var u0=c0;const f0=u0;var l0=(e,t={})=>{if(typeof e!="function")throw new TypeError(`Expected the first argument to be a function, got \`${typeof e}\``);const{wait:r=0,before:n=!1,after:i=!0}=t;if(!n&&!i)throw new Error("Both `before` and `after` are false, function wouldn't be called.");let s,o;const c=function(...u){const p=this,a=()=>{s=void 0,i&&(o=e.apply(p,u))},l=n&&!s;return clearTimeout(s),s=setTimeout(a,r),l&&(o=e.apply(p,u)),o};return f0(c,e),c.cancel=()=>{s&&(clearTimeout(s),s=void 0)},c},ar={exports:{}};const d0="2.0.0",h0=256,m0=Number.MAX_SAFE_INTEGER||9007199254740991,p0=16;var ki={SEMVER_SPEC_VERSION:d0,MAX_LENGTH:h0,MAX_SAFE_INTEGER:m0,MAX_SAFE_COMPONENT_LENGTH:p0};const y0=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var Ui=y0;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r}=ki,n=Ui;t=e.exports={};const i=t.re=[],s=t.src=[],o=t.t={};let c=0;const u=(p,a,l)=>{const y=c++;n(p,y,a),o[p]=y,s[y]=a,i[y]=new RegExp(a,l?"g":void 0)};u("NUMERICIDENTIFIER","0|[1-9]\\d*"),u("NUMERICIDENTIFIERLOOSE","[0-9]+"),u("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),u("MAINVERSION",`(${s[o.NUMERICIDENTIFIER]})\\.(${s[o.NUMERICIDENTIFIER]})\\.(${s[o.NUMERICIDENTIFIER]})`),u("MAINVERSIONLOOSE",`(${s[o.NUMERICIDENTIFIERLOOSE]})\\.(${s[o.NUMERICIDENTIFIERLOOSE]})\\.(${s[o.NUMERICIDENTIFIERLOOSE]})`),u("PRERELEASEIDENTIFIER",`(?:${s[o.NUMERICIDENTIFIER]}|${s[o.NONNUMERICIDENTIFIER]})`),u("PRERELEASEIDENTIFIERLOOSE",`(?:${s[o.NUMERICIDENTIFIERLOOSE]}|${s[o.NONNUMERICIDENTIFIER]})`),u("PRERELEASE",`(?:-(${s[o.PRERELEASEIDENTIFIER]}(?:\\.${s[o.PRERELEASEIDENTIFIER]})*))`),u("PRERELEASELOOSE",`(?:-?(${s[o.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[o.PRERELEASEIDENTIFIERLOOSE]})*))`),u("BUILDIDENTIFIER","[0-9A-Za-z-]+"),u("BUILD",`(?:\\+(${s[o.BUILDIDENTIFIER]}(?:\\.${s[o.BUILDIDENTIFIER]})*))`),u("FULLPLAIN",`v?${s[o.MAINVERSION]}${s[o.PRERELEASE]}?${s[o.BUILD]}?`),u("FULL",`^${s[o.FULLPLAIN]}$`),u("LOOSEPLAIN",`[v=\\s]*${s[o.MAINVERSIONLOOSE]}${s[o.PRERELEASELOOSE]}?${s[o.BUILD]}?`),u("LOOSE",`^${s[o.LOOSEPLAIN]}$`),u("GTLT","((?:<|>)?=?)"),u("XRANGEIDENTIFIERLOOSE",`${s[o.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),u("XRANGEIDENTIFIER",`${s[o.NUMERICIDENTIFIER]}|x|X|\\*`),u("XRANGEPLAIN",`[v=\\s]*(${s[o.XRANGEIDENTIFIER]})(?:\\.(${s[o.XRANGEIDENTIFIER]})(?:\\.(${s[o.XRANGEIDENTIFIER]})(?:${s[o.PRERELEASE]})?${s[o.BUILD]}?)?)?`),u("XRANGEPLAINLOOSE",`[v=\\s]*(${s[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[o.XRANGEIDENTIFIERLOOSE]})(?:${s[o.PRERELEASELOOSE]})?${s[o.BUILD]}?)?)?`),u("XRANGE",`^${s[o.GTLT]}\\s*${s[o.XRANGEPLAIN]}$`),u("XRANGELOOSE",`^${s[o.GTLT]}\\s*${s[o.XRANGEPLAINLOOSE]}$`),u("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),u("COERCERTL",s[o.COERCE],!0),u("LONETILDE","(?:~>?)"),u("TILDETRIM",`(\\s*)${s[o.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",u("TILDE",`^${s[o.LONETILDE]}${s[o.XRANGEPLAIN]}$`),u("TILDELOOSE",`^${s[o.LONETILDE]}${s[o.XRANGEPLAINLOOSE]}$`),u("LONECARET","(?:\\^)"),u("CARETTRIM",`(\\s*)${s[o.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",u("CARET",`^${s[o.LONECARET]}${s[o.XRANGEPLAIN]}$`),u("CARETLOOSE",`^${s[o.LONECARET]}${s[o.XRANGEPLAINLOOSE]}$`),u("COMPARATORLOOSE",`^${s[o.GTLT]}\\s*(${s[o.LOOSEPLAIN]})$|^$`),u("COMPARATOR",`^${s[o.GTLT]}\\s*(${s[o.FULLPLAIN]})$|^$`),u("COMPARATORTRIM",`(\\s*)${s[o.GTLT]}\\s*(${s[o.LOOSEPLAIN]}|${s[o.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",u("HYPHENRANGE",`^\\s*(${s[o.XRANGEPLAIN]})\\s+-\\s+(${s[o.XRANGEPLAIN]})\\s*$`),u("HYPHENRANGELOOSE",`^\\s*(${s[o.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[o.XRANGEPLAINLOOSE]})\\s*$`),u("STAR","(<|>)?=?\\s*\\*"),u("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),u("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(ar,ar.exports);const E0=["includePrerelease","loose","rtl"],v0=e=>e?typeof e!="object"?{loose:!0}:E0.filter(t=>e[t]).reduce((t,r)=>(t[r]=!0,t),{}):{};var zi=v0;const Ga=/^[0-9]+$/,tf=(e,t)=>{const r=Ga.test(e),n=Ga.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},g0=(e,t)=>tf(t,e);var Is={compareIdentifiers:tf,rcompareIdentifiers:g0};const Qn=Ui,{MAX_LENGTH:Ba,MAX_SAFE_INTEGER:ei}=ki,{re:Ha,t:Ka}=ar.exports,$0=zi,{compareIdentifiers:Lr}=Is;class St{constructor(t,r){if(r=$0(r),t instanceof St){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid Version: ${t}`);if(t.length>Ba)throw new TypeError(`version is longer than ${Ba} characters`);Qn("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const n=t.trim().match(r.loose?Ha[Ka.LOOSE]:Ha[Ka.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>ei||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ei||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ei||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){const s=+i;if(s>=0&&s<ei)return s}return i}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(Qn("SemVer.compare",this.version,this.options,t),!(t instanceof St)){if(typeof t=="string"&&t===this.version)return 0;t=new St(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof St||(t=new St(t,this.options)),Lr(this.major,t.major)||Lr(this.minor,t.minor)||Lr(this.patch,t.patch)}comparePre(t){if(t instanceof St||(t=new St(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{const n=this.prerelease[r],i=t.prerelease[r];if(Qn("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return Lr(n,i)}while(++r)}compareBuild(t){t instanceof St||(t=new St(t,this.options));let r=0;do{const n=this.build[r],i=t.build[r];if(Qn("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return Lr(n,i)}while(++r)}inc(t,r){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r),this.inc("pre",r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r),this.inc("pre",r);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let n=this.prerelease.length;for(;--n>=0;)typeof this.prerelease[n]=="number"&&(this.prerelease[n]++,n=-2);n===-1&&this.prerelease.push(0)}r&&(Lr(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=[r,0]):this.prerelease=[r,0]);break;default:throw new Error(`invalid increment argument: ${t}`)}return this.format(),this.raw=this.version,this}}var st=St;const{MAX_LENGTH:_0}=ki,{re:Wa,t:Xa}=ar.exports,Za=st,S0=zi,w0=(e,t)=>{if(t=S0(t),e instanceof Za)return e;if(typeof e!="string"||e.length>_0||!(t.loose?Wa[Xa.LOOSE]:Wa[Xa.FULL]).test(e))return null;try{return new Za(e,t)}catch{return null}};var rn=w0;const N0=rn,I0=(e,t)=>{const r=N0(e,t);return r?r.version:null};var O0=I0;const T0=rn,D0=(e,t)=>{const r=T0(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};var R0=D0;const Ja=st,C0=(e,t,r,n)=>{typeof r=="string"&&(n=r,r=void 0);try{return new Ja(e instanceof Ja?e.version:e,r).inc(t,n).version}catch{return null}};var P0=C0;const Ya=st,A0=(e,t,r)=>new Ya(e,r).compare(new Ya(t,r));var Rt=A0;const b0=Rt,L0=(e,t,r)=>b0(e,t,r)===0;var Lo=L0;const Qa=rn,F0=Lo,j0=(e,t)=>{if(F0(e,t))return null;{const r=Qa(e),n=Qa(t),i=r.prerelease.length||n.prerelease.length,s=i?"pre":"",o=i?"prerelease":"";for(const c in r)if((c==="major"||c==="minor"||c==="patch")&&r[c]!==n[c])return s+c;return o}};var M0=j0;const k0=st,U0=(e,t)=>new k0(e,t).major;var z0=U0;const x0=st,V0=(e,t)=>new x0(e,t).minor;var q0=V0;const G0=st,B0=(e,t)=>new G0(e,t).patch;var H0=B0;const K0=rn,W0=(e,t)=>{const r=K0(e,t);return r&&r.prerelease.length?r.prerelease:null};var X0=W0;const Z0=Rt,J0=(e,t,r)=>Z0(t,e,r);var Y0=J0;const Q0=Rt,eE=(e,t)=>Q0(e,t,!0);var tE=eE;const ec=st,rE=(e,t,r)=>{const n=new ec(e,r),i=new ec(t,r);return n.compare(i)||n.compareBuild(i)};var Fo=rE;const nE=Fo,iE=(e,t)=>e.sort((r,n)=>nE(r,n,t));var sE=iE;const oE=Fo,aE=(e,t)=>e.sort((r,n)=>oE(n,r,t));var cE=aE;const uE=Rt,fE=(e,t,r)=>uE(e,t,r)>0;var xi=fE;const lE=Rt,dE=(e,t,r)=>lE(e,t,r)<0;var jo=dE;const hE=Rt,mE=(e,t,r)=>hE(e,t,r)!==0;var rf=mE;const pE=Rt,yE=(e,t,r)=>pE(e,t,r)>=0;var Mo=yE;const EE=Rt,vE=(e,t,r)=>EE(e,t,r)<=0;var ko=vE;const gE=Lo,$E=rf,_E=xi,SE=Mo,wE=jo,NE=ko,IE=(e,t,r,n)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return gE(e,r,n);case"!=":return $E(e,r,n);case">":return _E(e,r,n);case">=":return SE(e,r,n);case"<":return wE(e,r,n);case"<=":return NE(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};var nf=IE;const OE=st,TE=rn,{re:ti,t:ri}=ar.exports,DE=(e,t)=>{if(e instanceof OE)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(ti[ri.COERCE]);else{let n;for(;(n=ti[ri.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||n.index+n[0].length!==r.index+r[0].length)&&(r=n),ti[ri.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;ti[ri.COERCERTL].lastIndex=-1}return r===null?null:TE(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)};var RE=DE,is,tc;function CE(){return tc||(tc=1,is=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),is}var PE=me;me.Node=Ir;me.create=me;function me(e){var t=this;if(t instanceof me||(t=new me),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(i){t.push(i)});else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)t.push(arguments[r]);return t}me.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t};me.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}};me.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}};me.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)bE(this,arguments[e]);return this.length};me.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)LE(this,arguments[e]);return this.length};me.prototype.pop=function(){if(!!this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}};me.prototype.shift=function(){if(!!this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}};me.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;r!==null;n++)e.call(t,r.value,n,this),r=r.next};me.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;r!==null;n--)e.call(t,r.value,n,this),r=r.prev};me.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++)r=r.next;if(t===e&&r!==null)return r.value};me.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++)r=r.prev;if(t===e&&r!==null)return r.value};me.prototype.map=function(e,t){t=t||this;for(var r=new me,n=this.head;n!==null;)r.push(e.call(t,n.value,this)),n=n.next;return r};me.prototype.mapReverse=function(e,t){t=t||this;for(var r=new me,n=this.tail;n!==null;)r.push(e.call(t,n.value,this)),n=n.prev;return r};me.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;n!==null;i++)r=e(r,n.value,i),n=n.next;return r};me.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;n!==null;i--)r=e(r,n.value,i),n=n.prev;return r};me.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;r!==null;t++)e[t]=r.value,r=r.next;return e};me.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;r!==null;t++)e[t]=r.value,r=r.prev;return e};me.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new me;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(;i!==null&&n<t;n++,i=i.next)r.push(i.value);return r};me.prototype.sliceReverse=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new me;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=this.length,i=this.tail;i!==null&&n>t;n--)i=i.prev;for(;i!==null&&n>e;n--,i=i.prev)r.push(i.value);return r};me.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(var s=[],n=0;i&&n<t;n++)s.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var n=0;n<r.length;n++)i=AE(this,i,r[n]);return s};me.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;r!==null;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};function AE(e,t,r){var n=t===e.head?new Ir(r,null,t,e):new Ir(r,t,t.next,e);return n.next===null&&(e.tail=n),n.prev===null&&(e.head=n),e.length++,n}function bE(e,t){e.tail=new Ir(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function LE(e,t){e.head=new Ir(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function Ir(e,t,r,n){if(!(this instanceof Ir))return new Ir(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{CE()(me)}catch{}const FE=PE,vr=Symbol("max"),qt=Symbol("length"),Fr=Symbol("lengthCalculator"),Sn=Symbol("allowStale"),gr=Symbol("maxAge"),Vt=Symbol("dispose"),rc=Symbol("noDisposeOnSet"),Ue=Symbol("lruList"),wt=Symbol("cache"),sf=Symbol("updateAgeOnGet"),ss=()=>1;class jE{constructor(t){if(typeof t=="number"&&(t={max:t}),t||(t={}),t.max&&(typeof t.max!="number"||t.max<0))throw new TypeError("max must be a non-negative number");this[vr]=t.max||1/0;const r=t.length||ss;if(this[Fr]=typeof r!="function"?ss:r,this[Sn]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[gr]=t.maxAge||0,this[Vt]=t.dispose,this[rc]=t.noDisposeOnSet||!1,this[sf]=t.updateAgeOnGet||!1,this.reset()}set max(t){if(typeof t!="number"||t<0)throw new TypeError("max must be a non-negative number");this[vr]=t||1/0,dn(this)}get max(){return this[vr]}set allowStale(t){this[Sn]=!!t}get allowStale(){return this[Sn]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[gr]=t,dn(this)}get maxAge(){return this[gr]}set lengthCalculator(t){typeof t!="function"&&(t=ss),t!==this[Fr]&&(this[Fr]=t,this[qt]=0,this[Ue].forEach(r=>{r.length=this[Fr](r.value,r.key),this[qt]+=r.length})),dn(this)}get lengthCalculator(){return this[Fr]}get length(){return this[qt]}get itemCount(){return this[Ue].length}rforEach(t,r){r=r||this;for(let n=this[Ue].tail;n!==null;){const i=n.prev;nc(this,t,n,r),n=i}}forEach(t,r){r=r||this;for(let n=this[Ue].head;n!==null;){const i=n.next;nc(this,t,n,r),n=i}}keys(){return this[Ue].toArray().map(t=>t.key)}values(){return this[Ue].toArray().map(t=>t.value)}reset(){this[Vt]&&this[Ue]&&this[Ue].length&&this[Ue].forEach(t=>this[Vt](t.key,t.value)),this[wt]=new Map,this[Ue]=new FE,this[qt]=0}dump(){return this[Ue].map(t=>Si(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[Ue]}set(t,r,n){if(n=n||this[gr],n&&typeof n!="number")throw new TypeError("maxAge must be a number");const i=n?Date.now():0,s=this[Fr](r,t);if(this[wt].has(t)){if(s>this[vr])return Vr(this,this[wt].get(t)),!1;const u=this[wt].get(t).value;return this[Vt]&&(this[rc]||this[Vt](t,u.value)),u.now=i,u.maxAge=n,u.value=r,this[qt]+=s-u.length,u.length=s,this.get(t),dn(this),!0}const o=new ME(t,r,s,i,n);return o.length>this[vr]?(this[Vt]&&this[Vt](t,r),!1):(this[qt]+=o.length,this[Ue].unshift(o),this[wt].set(t,this[Ue].head),dn(this),!0)}has(t){if(!this[wt].has(t))return!1;const r=this[wt].get(t).value;return!Si(this,r)}get(t){return os(this,t,!0)}peek(t){return os(this,t,!1)}pop(){const t=this[Ue].tail;return t?(Vr(this,t),t.value):null}del(t){Vr(this,this[wt].get(t))}load(t){this.reset();const r=Date.now();for(let n=t.length-1;n>=0;n--){const i=t[n],s=i.e||0;if(s===0)this.set(i.k,i.v);else{const o=s-r;o>0&&this.set(i.k,i.v,o)}}}prune(){this[wt].forEach((t,r)=>os(this,r,!1))}}const os=(e,t,r)=>{const n=e[wt].get(t);if(n){const i=n.value;if(Si(e,i)){if(Vr(e,n),!e[Sn])return}else r&&(e[sf]&&(n.value.now=Date.now()),e[Ue].unshiftNode(n));return i.value}},Si=(e,t)=>{if(!t||!t.maxAge&&!e[gr])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[gr]&&r>e[gr]},dn=e=>{if(e[qt]>e[vr])for(let t=e[Ue].tail;e[qt]>e[vr]&&t!==null;){const r=t.prev;Vr(e,t),t=r}},Vr=(e,t)=>{if(t){const r=t.value;e[Vt]&&e[Vt](r.key,r.value),e[qt]-=r.length,e[wt].delete(r.key),e[Ue].removeNode(t)}};class ME{constructor(t,r,n,i,s){this.key=t,this.value=r,this.length=n,this.now=i,this.maxAge=s||0}}const nc=(e,t,r,n)=>{let i=r.value;Si(e,i)&&(Vr(e,r),e[Sn]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};var kE=jE,as,ic;function Ct(){if(ic)return as;ic=1;class e{constructor(b,K){if(K=n(K),b instanceof e)return b.loose===!!K.loose&&b.includePrerelease===!!K.includePrerelease?b:new e(b.raw,K);if(b instanceof i)return this.raw=b.value,this.set=[[b]],this.format(),this;if(this.options=K,this.loose=!!K.loose,this.includePrerelease=!!K.includePrerelease,this.raw=b,this.set=b.split("||").map(B=>this.parseRange(B.trim())).filter(B=>B.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${b}`);if(this.set.length>1){const B=this.set[0];if(this.set=this.set.filter(X=>!y(X[0])),this.set.length===0)this.set=[B];else if(this.set.length>1){for(const X of this.set)if(X.length===1&&d(X[0])){this.set=[X];break}}}this.format()}format(){return this.range=this.set.map(b=>b.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(b){b=b.trim();const B=`parseRange:${Object.keys(this.options).join(",")}:${b}`,X=r.get(B);if(X)return X;const Z=this.options.loose,W=Z?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];b=b.replace(W,L(this.options.includePrerelease)),s("hyphen replace",b),b=b.replace(c[u.COMPARATORTRIM],p),s("comparator trim",b),b=b.replace(c[u.TILDETRIM],a),b=b.replace(c[u.CARETTRIM],l),b=b.split(/\s+/).join(" ");let F=b.split(" ").map(M=>m(M,this.options)).join(" ").split(/\s+/).map(M=>V(M,this.options));Z&&(F=F.filter(M=>(s("loose invalid filter",M,this.options),!!M.match(c[u.COMPARATORLOOSE])))),s("range list",F);const z=new Map,T=F.map(M=>new i(M,this.options));for(const M of T){if(y(M))return[M];z.set(M.value,M)}z.size>1&&z.has("")&&z.delete("");const I=[...z.values()];return r.set(B,I),I}intersects(b,K){if(!(b instanceof e))throw new TypeError("a Range is required");return this.set.some(B=>h(B,K)&&b.set.some(X=>h(X,K)&&B.every(Z=>X.every(W=>Z.intersects(W,K)))))}test(b){if(!b)return!1;if(typeof b=="string")try{b=new o(b,this.options)}catch{return!1}for(let K=0;K<this.set.length;K++)if(G(this.set[K],b,this.options))return!0;return!1}}as=e;const t=kE,r=new t({max:1e3}),n=zi,i=Vi(),s=Ui,o=st,{re:c,t:u,comparatorTrimReplace:p,tildeTrimReplace:a,caretTrimReplace:l}=ar.exports,y=j=>j.value==="<0.0.0-0",d=j=>j.value==="",h=(j,b)=>{let K=!0;const B=j.slice();let X=B.pop();for(;K&&B.length;)K=B.every(Z=>X.intersects(Z,b)),X=B.pop();return K},m=(j,b)=>(s("comp",j,b),j=_(j,b),s("caret",j),j=f(j,b),s("tildes",j),j=q(j,b),s("xrange",j),j=C(j,b),s("stars",j),j),E=j=>!j||j.toLowerCase()==="x"||j==="*",f=(j,b)=>j.trim().split(/\s+/).map(K=>$(K,b)).join(" "),$=(j,b)=>{const K=b.loose?c[u.TILDELOOSE]:c[u.TILDE];return j.replace(K,(B,X,Z,W,F)=>{s("tilde",j,B,X,Z,W,F);let z;return E(X)?z="":E(Z)?z=`>=${X}.0.0 <${+X+1}.0.0-0`:E(W)?z=`>=${X}.${Z}.0 <${X}.${+Z+1}.0-0`:F?(s("replaceTilde pr",F),z=`>=${X}.${Z}.${W}-${F} <${X}.${+Z+1}.0-0`):z=`>=${X}.${Z}.${W} <${X}.${+Z+1}.0-0`,s("tilde return",z),z})},_=(j,b)=>j.trim().split(/\s+/).map(K=>O(K,b)).join(" "),O=(j,b)=>{s("caret",j,b);const K=b.loose?c[u.CARETLOOSE]:c[u.CARET],B=b.includePrerelease?"-0":"";return j.replace(K,(X,Z,W,F,z)=>{s("caret",j,X,Z,W,F,z);let T;return E(Z)?T="":E(W)?T=`>=${Z}.0.0${B} <${+Z+1}.0.0-0`:E(F)?Z==="0"?T=`>=${Z}.${W}.0${B} <${Z}.${+W+1}.0-0`:T=`>=${Z}.${W}.0${B} <${+Z+1}.0.0-0`:z?(s("replaceCaret pr",z),Z==="0"?W==="0"?T=`>=${Z}.${W}.${F}-${z} <${Z}.${W}.${+F+1}-0`:T=`>=${Z}.${W}.${F}-${z} <${Z}.${+W+1}.0-0`:T=`>=${Z}.${W}.${F}-${z} <${+Z+1}.0.0-0`):(s("no pr"),Z==="0"?W==="0"?T=`>=${Z}.${W}.${F}${B} <${Z}.${W}.${+F+1}-0`:T=`>=${Z}.${W}.${F}${B} <${Z}.${+W+1}.0-0`:T=`>=${Z}.${W}.${F} <${+Z+1}.0.0-0`),s("caret return",T),T})},q=(j,b)=>(s("replaceXRanges",j,b),j.split(/\s+/).map(K=>R(K,b)).join(" ")),R=(j,b)=>{j=j.trim();const K=b.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return j.replace(K,(B,X,Z,W,F,z)=>{s("xRange",j,B,X,Z,W,F,z);const T=E(Z),I=T||E(W),M=I||E(F),P=M;return X==="="&&P&&(X=""),z=b.includePrerelease?"-0":"",T?X===">"||X==="<"?B="<0.0.0-0":B="*":X&&P?(I&&(W=0),F=0,X===">"?(X=">=",I?(Z=+Z+1,W=0,F=0):(W=+W+1,F=0)):X==="<="&&(X="<",I?Z=+Z+1:W=+W+1),X==="<"&&(z="-0"),B=`${X+Z}.${W}.${F}${z}`):I?B=`>=${Z}.0.0${z} <${+Z+1}.0.0-0`:M&&(B=`>=${Z}.${W}.0${z} <${Z}.${+W+1}.0-0`),s("xRange return",B),B})},C=(j,b)=>(s("replaceStars",j,b),j.trim().replace(c[u.STAR],"")),V=(j,b)=>(s("replaceGTE0",j,b),j.trim().replace(c[b.includePrerelease?u.GTE0PRE:u.GTE0],"")),L=j=>(b,K,B,X,Z,W,F,z,T,I,M,P,v)=>(E(B)?K="":E(X)?K=`>=${B}.0.0${j?"-0":""}`:E(Z)?K=`>=${B}.${X}.0${j?"-0":""}`:W?K=`>=${K}`:K=`>=${K}${j?"-0":""}`,E(T)?z="":E(I)?z=`<${+T+1}.0.0-0`:E(M)?z=`<${T}.${+I+1}.0-0`:P?z=`<=${T}.${I}.${M}-${P}`:j?z=`<${T}.${I}.${+M+1}-0`:z=`<=${z}`,`${K} ${z}`.trim()),G=(j,b,K)=>{for(let B=0;B<j.length;B++)if(!j[B].test(b))return!1;if(b.prerelease.length&&!K.includePrerelease){for(let B=0;B<j.length;B++)if(s(j[B].semver),j[B].semver!==i.ANY&&j[B].semver.prerelease.length>0){const X=j[B].semver;if(X.major===b.major&&X.minor===b.minor&&X.patch===b.patch)return!0}return!1}return!0};return as}var cs,sc;function Vi(){if(sc)return cs;sc=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(a,l){if(l=r(l),a instanceof t){if(a.loose===!!l.loose)return a;a=a.value}o("comparator",a,l),this.options=l,this.loose=!!l.loose,this.parse(a),this.semver===e?this.value="":this.value=this.operator+this.semver.version,o("comp",this)}parse(a){const l=this.options.loose?n[i.COMPARATORLOOSE]:n[i.COMPARATOR],y=a.match(l);if(!y)throw new TypeError(`Invalid comparator: ${a}`);this.operator=y[1]!==void 0?y[1]:"",this.operator==="="&&(this.operator=""),y[2]?this.semver=new c(y[2],this.options.loose):this.semver=e}toString(){return this.value}test(a){if(o("Comparator.test",a,this.options.loose),this.semver===e||a===e)return!0;if(typeof a=="string")try{a=new c(a,this.options)}catch{return!1}return s(a,this.operator,this.semver,this.options)}intersects(a,l){if(!(a instanceof t))throw new TypeError("a Comparator is required");if((!l||typeof l!="object")&&(l={loose:!!l,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new u(a.value,l).test(this.value);if(a.operator==="")return a.value===""?!0:new u(this.value,l).test(a.semver);const y=(this.operator===">="||this.operator===">")&&(a.operator===">="||a.operator===">"),d=(this.operator==="<="||this.operator==="<")&&(a.operator==="<="||a.operator==="<"),h=this.semver.version===a.semver.version,m=(this.operator===">="||this.operator==="<=")&&(a.operator===">="||a.operator==="<="),E=s(this.semver,"<",a.semver,l)&&(this.operator===">="||this.operator===">")&&(a.operator==="<="||a.operator==="<"),f=s(this.semver,">",a.semver,l)&&(this.operator==="<="||this.operator==="<")&&(a.operator===">="||a.operator===">");return y||d||h&&m||E||f}}cs=t;const r=zi,{re:n,t:i}=ar.exports,s=nf,o=Ui,c=st,u=Ct();return cs}const UE=Ct(),zE=(e,t,r)=>{try{t=new UE(t,r)}catch{return!1}return t.test(e)};var qi=zE;const xE=Ct(),VE=(e,t)=>new xE(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));var qE=VE;const GE=st,BE=Ct(),HE=(e,t,r)=>{let n=null,i=null,s=null;try{s=new BE(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===-1)&&(n=o,i=new GE(n,r))}),n};var KE=HE;const WE=st,XE=Ct(),ZE=(e,t,r)=>{let n=null,i=null,s=null;try{s=new XE(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===1)&&(n=o,i=new WE(n,r))}),n};var JE=ZE;const us=st,YE=Ct(),oc=xi,QE=(e,t)=>{e=new YE(e,t);let r=new us("0.0.0");if(e.test(r)||(r=new us("0.0.0-0"),e.test(r)))return r;r=null;for(let n=0;n<e.set.length;++n){const i=e.set[n];let s=null;i.forEach(o=>{const c=new us(o.semver.version);switch(o.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!s||oc(c,s))&&(s=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!r||oc(r,s))&&(r=s)}return r&&e.test(r)?r:null};var ev=QE;const tv=Ct(),rv=(e,t)=>{try{return new tv(e,t).range||"*"}catch{return null}};var nv=rv;const iv=st,of=Vi(),{ANY:sv}=of,ov=Ct(),av=qi,ac=xi,cc=jo,cv=ko,uv=Mo,fv=(e,t,r,n)=>{e=new iv(e,n),t=new ov(t,n);let i,s,o,c,u;switch(r){case">":i=ac,s=cv,o=cc,c=">",u=">=";break;case"<":i=cc,s=uv,o=ac,c="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(av(e,t,n))return!1;for(let p=0;p<t.set.length;++p){const a=t.set[p];let l=null,y=null;if(a.forEach(d=>{d.semver===sv&&(d=new of(">=0.0.0")),l=l||d,y=y||d,i(d.semver,l.semver,n)?l=d:o(d.semver,y.semver,n)&&(y=d)}),l.operator===c||l.operator===u||(!y.operator||y.operator===c)&&s(e,y.semver))return!1;if(y.operator===u&&o(e,y.semver))return!1}return!0};var Uo=fv;const lv=Uo,dv=(e,t,r)=>lv(e,t,">",r);var hv=dv;const mv=Uo,pv=(e,t,r)=>mv(e,t,"<",r);var yv=pv;const uc=Ct(),Ev=(e,t,r)=>(e=new uc(e,r),t=new uc(t,r),e.intersects(t));var vv=Ev;const gv=qi,$v=Rt;var _v=(e,t,r)=>{const n=[];let i=null,s=null;const o=e.sort((a,l)=>$v(a,l,r));for(const a of o)gv(a,t,r)?(s=a,i||(i=a)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);const c=[];for(const[a,l]of n)a===l?c.push(a):!l&&a===o[0]?c.push("*"):l?a===o[0]?c.push(`<=${l}`):c.push(`${a} - ${l}`):c.push(`>=${a}`);const u=c.join(" || "),p=typeof t.raw=="string"?t.raw:String(t);return u.length<p.length?u:t};const fc=Ct(),fi=Vi(),{ANY:fs}=fi,hn=qi,zo=Rt,Sv=(e,t,r={})=>{if(e===t)return!0;e=new fc(e,r),t=new fc(t,r);let n=!1;e:for(const i of e.set){for(const s of t.set){const o=wv(i,s,r);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},wv=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===fs){if(t.length===1&&t[0].semver===fs)return!0;r.includePrerelease?e=[new fi(">=0.0.0-0")]:e=[new fi(">=0.0.0")]}if(t.length===1&&t[0].semver===fs){if(r.includePrerelease)return!0;t=[new fi(">=0.0.0")]}const n=new Set;let i,s;for(const d of e)d.operator===">"||d.operator===">="?i=lc(i,d,r):d.operator==="<"||d.operator==="<="?s=dc(s,d,r):n.add(d.semver);if(n.size>1)return null;let o;if(i&&s){if(o=zo(i.semver,s.semver,r),o>0)return null;if(o===0&&(i.operator!==">="||s.operator!=="<="))return null}for(const d of n){if(i&&!hn(d,String(i),r)||s&&!hn(d,String(s),r))return null;for(const h of t)if(!hn(d,String(h),r))return!1;return!0}let c,u,p,a,l=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,y=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;l&&l.prerelease.length===1&&s.operator==="<"&&l.prerelease[0]===0&&(l=!1);for(const d of t){if(a=a||d.operator===">"||d.operator===">=",p=p||d.operator==="<"||d.operator==="<=",i){if(y&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===y.major&&d.semver.minor===y.minor&&d.semver.patch===y.patch&&(y=!1),d.operator===">"||d.operator===">="){if(c=lc(i,d,r),c===d&&c!==i)return!1}else if(i.operator===">="&&!hn(i.semver,String(d),r))return!1}if(s){if(l&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===l.major&&d.semver.minor===l.minor&&d.semver.patch===l.patch&&(l=!1),d.operator==="<"||d.operator==="<="){if(u=dc(s,d,r),u===d&&u!==s)return!1}else if(s.operator==="<="&&!hn(s.semver,String(d),r))return!1}if(!d.operator&&(s||i)&&o!==0)return!1}return!(i&&p&&!s&&o!==0||s&&a&&!i&&o!==0||y||l)},lc=(e,t,r)=>{if(!e)return t;const n=zo(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},dc=(e,t,r)=>{if(!e)return t;const n=zo(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};var Nv=Sv;const ls=ar.exports;var Iv={re:ls.re,src:ls.src,tokens:ls.t,SEMVER_SPEC_VERSION:ki.SEMVER_SPEC_VERSION,SemVer:st,compareIdentifiers:Is.compareIdentifiers,rcompareIdentifiers:Is.rcompareIdentifiers,parse:rn,valid:O0,clean:R0,inc:P0,diff:M0,major:z0,minor:q0,patch:H0,prerelease:X0,compare:Rt,rcompare:Y0,compareLoose:tE,compareBuild:Fo,sort:sE,rsort:cE,gt:xi,lt:jo,eq:Lo,neq:rf,gte:Mo,lte:ko,cmp:nf,coerce:RE,Comparator:Vi(),Range:Ct(),satisfies:qi,toComparators:qE,maxSatisfying:KE,minSatisfying:JE,minVersion:ev,validRange:nv,outside:Uo,gtr:hv,ltr:yv,intersects:vv,simplifyRange:_v,subset:Nv},Gi={exports:{}},xo={exports:{}};const af=(e,t)=>{for(const r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};xo.exports=af;xo.exports.default=af;const Ov=xo.exports,wi=new WeakMap,cf=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,n=0;const i=e.displayName||e.name||"<anonymous>",s=function(...o){if(wi.set(s,++n),n===1)r=e.apply(this,o),e=null;else if(t.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return Ov(s,e),wi.set(s,n),s};Gi.exports=cf;Gi.exports.default=cf;Gi.exports.callCount=e=>{if(!wi.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return wi.get(e)};(function(e,t){var r=tr&&tr.__classPrivateFieldSet||function(W,F,z,T,I){if(T==="m")throw new TypeError("Private method is not writable");if(T==="a"&&!I)throw new TypeError("Private accessor was defined without a setter");if(typeof F=="function"?W!==F||!I:!F.has(W))throw new TypeError("Cannot write private member to an object whose class did not declare it");return T==="a"?I.call(W,z):I?I.value=z:F.set(W,z),z},n=tr&&tr.__classPrivateFieldGet||function(W,F,z,T){if(z==="a"&&!T)throw new TypeError("Private accessor was defined without a getter");if(typeof F=="function"?W!==F||!T:!F.has(W))throw new TypeError("Cannot read private member from an object whose class did not declare it");return z==="m"?T:z==="a"?T.call(W):T?T.value:F.get(W)},i,s,o,c,u,p;Object.defineProperty(t,"__esModule",{value:!0});const a=Oi.default,l=Yr.default,y=Re.default,d=Nc.default,h=Ds.default,m=Mf.default,E=gh,f=ks.exports,$=Gs.exports,_=jt,O=Ei.exports,q=Ns.exports,R=l0,C=Iv,V=Gi.exports,L="aes-256-cbc",G=()=>Object.create(null),j=W=>W!=null;let b="";try{delete require.cache[__filename],b=y.dirname((s=(i=e.parent)===null||i===void 0?void 0:i.filename)!==null&&s!==void 0?s:".")}catch{}const K=(W,F)=>{const z=new Set(["undefined","symbol","function"]),T=typeof F;if(z.has(T))throw new TypeError(`Setting a value of type \`${T}\` for key \`${W}\` is not allowed as it's not supported by JSON`)},B="__internal__",X=`${B}.migrations.version`;class Z{constructor(F={}){var z;o.set(this,void 0),c.set(this,void 0),u.set(this,void 0),p.set(this,{}),this._deserialize=S=>JSON.parse(S),this._serialize=S=>JSON.stringify(S,void 0," ");const T={configName:"config",fileExtension:"json",projectSuffix:"nodejs",clearInvalidConfig:!1,accessPropertiesByDotNotation:!0,configFileMode:438,...F},I=V(()=>{const S=f.sync({cwd:b}),x=S&&JSON.parse(l.readFileSync(S,"utf8"));return x!=null?x:{}});if(!T.cwd){if(T.projectName||(T.projectName=I().name),!T.projectName)throw new Error("Project name could not be inferred. Please specify the `projectName` option.");T.cwd=$(T.projectName,{suffix:T.projectSuffix}).config}if(r(this,u,T,"f"),T.schema){if(typeof T.schema!="object")throw new TypeError("The `schema` option must be an object.");const S=new O.default({allErrors:!0,useDefaults:!0});(0,q.default)(S);const x={type:"object",properties:T.schema};r(this,o,S.compile(x),"f");for(const[Y,Q]of Object.entries(T.schema))Q!=null&&Q.default&&(n(this,p,"f")[Y]=Q.default)}T.defaults&&r(this,p,{...n(this,p,"f"),...T.defaults},"f"),T.serialize&&(this._serialize=T.serialize),T.deserialize&&(this._deserialize=T.deserialize),this.events=new m.EventEmitter,r(this,c,T.encryptionKey,"f");const M=T.fileExtension?`.${T.fileExtension}`:"";this.path=y.resolve(T.cwd,`${(z=T.configName)!==null&&z!==void 0?z:"config"}${M}`);const P=this.store,v=Object.assign(G(),T.defaults,P);this._validate(v);try{h.deepEqual(P,v)}catch{this.store=v}if(T.watch&&this._watch(),T.migrations){if(T.projectVersion||(T.projectVersion=I().version),!T.projectVersion)throw new Error("Project version could not be inferred. Please specify the `projectVersion` option.");this._migrate(T.migrations,T.projectVersion,T.beforeEachMigration)}}get(F,z){if(n(this,u,"f").accessPropertiesByDotNotation)return this._get(F,z);const{store:T}=this;return F in T?T[F]:z}set(F,z){if(typeof F!="string"&&typeof F!="object")throw new TypeError(`Expected \`key\` to be of type \`string\` or \`object\`, got ${typeof F}`);if(typeof F!="object"&&z===void 0)throw new TypeError("Use `delete()` to clear values");if(this._containsReservedKey(F))throw new TypeError(`Please don't use the ${B} key, as it's used to manage this module internal operations.`);const{store:T}=this,I=(M,P)=>{K(M,P),n(this,u,"f").accessPropertiesByDotNotation?E.set(T,M,P):T[M]=P};if(typeof F=="object"){const M=F;for(const[P,v]of Object.entries(M))I(P,v)}else I(F,z);this.store=T}has(F){return n(this,u,"f").accessPropertiesByDotNotation?E.has(this.store,F):F in this.store}reset(...F){for(const z of F)j(n(this,p,"f")[z])&&this.set(z,n(this,p,"f")[z])}delete(F){const{store:z}=this;n(this,u,"f").accessPropertiesByDotNotation?E.delete(z,F):delete z[F],this.store=z}clear(){this.store=G();for(const F of Object.keys(n(this,p,"f")))this.reset(F)}onDidChange(F,z){if(typeof F!="string")throw new TypeError(`Expected \`key\` to be of type \`string\`, got ${typeof F}`);if(typeof z!="function")throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof z}`);return this._handleChange(()=>this.get(F),z)}onDidAnyChange(F){if(typeof F!="function")throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof F}`);return this._handleChange(()=>this.store,F)}get size(){return Object.keys(this.store).length}get store(){try{const F=l.readFileSync(this.path,n(this,c,"f")?null:"utf8"),z=this._encryptData(F),T=this._deserialize(z);return this._validate(T),Object.assign(G(),T)}catch(F){if((F==null?void 0:F.code)==="ENOENT")return this._ensureDirectory(),G();if(n(this,u,"f").clearInvalidConfig&&F.name==="SyntaxError")return G();throw F}}set store(F){this._ensureDirectory(),this._validate(F),this._write(F),this.events.emit("change")}*[(o=new WeakMap,c=new WeakMap,u=new WeakMap,p=new WeakMap,Symbol.iterator)](){for(const[F,z]of Object.entries(this.store))yield[F,z]}_encryptData(F){if(!n(this,c,"f"))return F.toString();try{if(n(this,c,"f"))try{if(F.slice(16,17).toString()===":"){const z=F.slice(0,16),T=d.pbkdf2Sync(n(this,c,"f"),z.toString(),1e4,32,"sha512"),I=d.createDecipheriv(L,T,z);F=Buffer.concat([I.update(Buffer.from(F.slice(17))),I.final()]).toString("utf8")}else{const z=d.createDecipher(L,n(this,c,"f"));F=Buffer.concat([z.update(Buffer.from(F)),z.final()]).toString("utf8")}}catch{}}catch{}return F.toString()}_handleChange(F,z){let T=F();const I=()=>{const M=T,P=F();(0,a.isDeepStrictEqual)(P,M)||(T=P,z.call(this,P,M))};return this.events.on("change",I),()=>this.events.removeListener("change",I)}_validate(F){if(!n(this,o,"f")||n(this,o,"f").call(this,F)||!n(this,o,"f").errors)return;const T=n(this,o,"f").errors.map(({instancePath:I,message:M=""})=>`\`${I.slice(1)}\` ${M}`);throw new Error("Config schema violation: "+T.join("; "))}_ensureDirectory(){l.mkdirSync(y.dirname(this.path),{recursive:!0})}_write(F){let z=this._serialize(F);if(n(this,c,"f")){const T=d.randomBytes(16),I=d.pbkdf2Sync(n(this,c,"f"),T.toString(),1e4,32,"sha512"),M=d.createCipheriv(L,I,T);z=Buffer.concat([T,Buffer.from(":"),M.update(Buffer.from(z)),M.final()])}if(process.env.SNAP)l.writeFileSync(this.path,z,{mode:n(this,u,"f").configFileMode});else try{_.writeFileSync(this.path,z,{mode:n(this,u,"f").configFileMode})}catch(T){if((T==null?void 0:T.code)==="EXDEV"){l.writeFileSync(this.path,z,{mode:n(this,u,"f").configFileMode});return}throw T}}_watch(){this._ensureDirectory(),l.existsSync(this.path)||this._write(G()),process.platform==="win32"?l.watch(this.path,{persistent:!1},R(()=>{this.events.emit("change")},{wait:100})):l.watchFile(this.path,{persistent:!1},R(()=>{this.events.emit("change")},{wait:5e3}))}_migrate(F,z,T){let I=this._get(X,"0.0.0");const M=Object.keys(F).filter(v=>this._shouldPerformMigration(v,I,z));let P={...this.store};for(const v of M)try{T&&T(this,{fromVersion:I,toVersion:v,finalVersion:z,versions:M});const S=F[v];S(this),this._set(X,v),I=v,P={...this.store}}catch(S){throw this.store=P,new Error(`Something went wrong during the migration! Changes applied to the store until this failed migration will be restored. ${S}`)}(this._isVersionInRangeFormat(I)||!C.eq(I,z))&&this._set(X,z)}_containsReservedKey(F){return typeof F=="object"&&Object.keys(F)[0]===B?!0:typeof F!="string"?!1:n(this,u,"f").accessPropertiesByDotNotation?!!F.startsWith(`${B}.`):!1}_isVersionInRangeFormat(F){return C.clean(F)===null}_shouldPerformMigration(F,z,T){return this._isVersionInRangeFormat(F)?z!=="0.0.0"&&C.satisfies(z,F)?!1:C.satisfies(T,F):!(C.lte(F,z)||C.gt(F,T))}_get(F,z){return E.get(this.store,F,z)}_set(F,z){const{store:T}=this;E.set(T,F,z),this.store=T}}t.default=Z,e.exports=Z,e.exports.default=Z})(ys,ys.exports);const hc=Re.default,{app:li,ipcMain:Os,ipcRenderer:mc,shell:Tv}=Lf.default,Dv=ys.exports;let pc=!1;const yc=()=>{if(!Os||!li)throw new Error("Electron Store: You need to call `.initRenderer()` from the main process.");const e={defaultCwd:li.getPath("userData"),appVersion:li.getVersion()};return pc||(Os.on("electron-store-get-data",t=>{t.returnValue=e}),pc=!0),e};class Rv extends Dv{constructor(t){let r,n;if(mc){const i=mc.sendSync("electron-store-get-data");if(!i)throw new Error("Electron Store: You need to call `.initRenderer()` from the main process.");({defaultCwd:r,appVersion:n}=i)}else Os&&li&&({defaultCwd:r,appVersion:n}=yc());t={name:"config",...t},t.projectVersion||(t.projectVersion=n),t.cwd?t.cwd=hc.isAbsolute(t.cwd)?t.cwd:hc.join(r,t.cwd):t.cwd=r,t.configName=t.name,delete t.name,super(t)}static initRenderer(){yc()}openInEditor(){Tv.openPath(this.path)}}var Ec=Rv,nn={exports:{}},Vo={},Cv=Vo.require=function(){if(typeof process=="object"&&process.versions&&process.versions.electron)try{const e=Cv("original-fs");if(Object.keys(e).length>0)return e}catch{}return Yr.default},uf={LOCHDR:30,LOCSIG:67324752,LOCVER:4,LOCFLG:6,LOCHOW:8,LOCTIM:10,LOCCRC:14,LOCSIZ:18,LOCLEN:22,LOCNAM:26,LOCEXT:28,EXTSIG:134695760,EXTHDR:16,EXTCRC:4,EXTSIZ:8,EXTLEN:12,CENHDR:46,CENSIG:33639248,CENVEM:4,CENVER:6,CENFLG:8,CENHOW:10,CENTIM:12,CENCRC:16,CENSIZ:20,CENLEN:24,CENNAM:28,CENEXT:30,CENCOM:32,CENDSK:34,CENATT:36,CENATX:38,CENOFF:42,ENDHDR:22,ENDSIG:101010256,ENDSUB:8,ENDTOT:10,ENDSIZ:12,ENDOFF:16,ENDCOM:20,END64HDR:20,END64SIG:117853008,END64START:4,END64OFF:8,END64NUMDISKS:16,ZIP64SIG:101075792,ZIP64HDR:56,ZIP64LEAD:12,ZIP64SIZE:4,ZIP64VEM:12,ZIP64VER:14,ZIP64DSK:16,ZIP64DSKDIR:20,ZIP64SUB:24,ZIP64TOT:32,ZIP64SIZB:40,ZIP64OFF:48,ZIP64EXTRA:56,STORED:0,SHRUNK:1,REDUCED1:2,REDUCED2:3,REDUCED3:4,REDUCED4:5,IMPLODED:6,DEFLATED:8,ENHANCED_DEFLATED:9,PKWARE:10,BZIP2:12,LZMA:14,IBM_TERSE:18,IBM_LZ77:19,AES_ENCRYPT:99,FLG_ENC:1,FLG_COMP1:2,FLG_COMP2:4,FLG_DESC:8,FLG_ENH:16,FLG_PATCH:32,FLG_STR:64,FLG_EFS:2048,FLG_MSK:4096,FILE:2,BUFFER:1,NONE:0,EF_ID:0,EF_SIZE:2,ID_ZIP64:1,ID_AVINFO:7,ID_PFS:8,ID_OS2:9,ID_NTFS:10,ID_OPENVMS:12,ID_UNIX:13,ID_FORK:14,ID_PATCH:15,ID_X509_PKCS7:20,ID_X509_CERTID_F:21,ID_X509_CERTID_C:22,ID_STRONGENC:23,ID_RECORD_MGT:24,ID_X509_PKCS7_RL:25,ID_IBM1:101,ID_IBM2:102,ID_POSZIP:18064,EF_ZIP64_OR_32:4294967295,EF_ZIP64_OR_16:65535,EF_ZIP64_SUNCOMP:0,EF_ZIP64_SCOMP:8,EF_ZIP64_RHO:16,EF_ZIP64_DSN:24};const Pv=Vo.require(),tt=Re.default,vc=uf,Av=typeof process=="object"&&process.platform==="win32",gc=e=>e&&typeof e=="object",qo=new Uint32Array(256).map((e,t)=>{for(let r=0;r<8;r++)(t&1)!==0?t=3988292384^t>>>1:t>>>=1;return t>>>0});function We(e){this.sep=tt.sep,this.fs=Pv,gc(e)&&gc(e.fs)&&typeof e.fs.statSync=="function"&&(this.fs=e.fs)}var bv=We;We.prototype.makeDir=function(e){const t=this;function r(n){let i=n.split(t.sep)[0];n.split(t.sep).forEach(function(s){if(!(!s||s.substr(-1,1)===":")){i+=t.sep+s;var o;try{o=t.fs.statSync(i)}catch{t.fs.mkdirSync(i)}if(o&&o.isFile())throw Errors.FILE_IN_THE_WAY.replace("%s",i)}})}r(e)};We.prototype.writeFileTo=function(e,t,r,n){const i=this;if(i.fs.existsSync(e)){if(!r)return!1;var s=i.fs.statSync(e);if(s.isDirectory())return!1}var o=tt.dirname(e);i.fs.existsSync(o)||i.makeDir(o);var c;try{c=i.fs.openSync(e,"w",438)}catch{i.fs.chmodSync(e,438),c=i.fs.openSync(e,"w",438)}if(c)try{i.fs.writeSync(c,t,0,t.length,0)}finally{i.fs.closeSync(c)}return i.fs.chmodSync(e,n||438),!0};We.prototype.writeFileToAsync=function(e,t,r,n,i){typeof n=="function"&&(i=n,n=void 0);const s=this;s.fs.exists(e,function(o){if(o&&!r)return i(!1);s.fs.stat(e,function(c,u){if(o&&u.isDirectory())return i(!1);var p=tt.dirname(e);s.fs.exists(p,function(a){a||s.makeDir(p),s.fs.open(e,"w",438,function(l,y){l?s.fs.chmod(e,438,function(){s.fs.open(e,"w",438,function(d,h){s.fs.write(h,t,0,t.length,0,function(){s.fs.close(h,function(){s.fs.chmod(e,n||438,function(){i(!0)})})})})}):y?s.fs.write(y,t,0,t.length,0,function(){s.fs.close(y,function(){s.fs.chmod(e,n||438,function(){i(!0)})})}):s.fs.chmod(e,n||438,function(){i(!0)})})})})})};We.prototype.findFiles=function(e){const t=this;function r(n,i,s){typeof i=="boolean"&&(s=i,i=void 0);let o=[];return t.fs.readdirSync(n).forEach(function(c){var u=tt.join(n,c);t.fs.statSync(u).isDirectory()&&s&&(o=o.concat(r(u,i,s))),(!i||i.test(u))&&o.push(tt.normalize(u)+(t.fs.statSync(u).isDirectory()?t.sep:""))}),o}return r(e,void 0,!0)};We.prototype.getAttributes=function(){};We.prototype.setAttributes=function(){};We.crc32update=function(e,t){return qo[(e^t)&255]^e>>>8};We.crc32=function(e){typeof e=="string"&&(e=Buffer.from(e,"utf8")),qo.length||genCRCTable();let t=e.length,r=-1;for(let n=0;n<t;)r=We.crc32update(r,e[n++]);return~r>>>0};We.methodToString=function(e){switch(e){case vc.STORED:return"STORED ("+e+")";case vc.DEFLATED:return"DEFLATED ("+e+")";default:return"UNSUPPORTED ("+e+")"}};We.canonical=function(e){if(!e)return"";var t=tt.posix.normalize("/"+e.split("\\").join("/"));return tt.join(".",t)};We.sanitize=function(e,t){e=tt.resolve(tt.normalize(e));for(var r=t.split("/"),n=0,i=r.length;n<i;n++){var s=tt.normalize(tt.join(e,r.slice(n,i).join(tt.sep)));if(s.indexOf(e)===0)return s}return tt.normalize(tt.join(e,tt.basename(t)))};We.toBuffer=function(t){return Buffer.isBuffer(t)?t:t instanceof Uint8Array?Buffer.from(t):typeof t=="string"?Buffer.from(t,"utf8"):Buffer.alloc(0)};We.readBigUInt64LE=function(e,t){var r=Buffer.from(e.slice(t,t+8));return r.swap64(),parseInt(`0x${r.toString("hex")}`)};We.isWin=Av;We.crcTable=qo;var Lv={INVALID_LOC:"Invalid LOC header (bad signature)",INVALID_CEN:"Invalid CEN header (bad signature)",INVALID_END:"Invalid END header (bad signature)",NO_DATA:"Nothing to decompress",BAD_CRC:"CRC32 checksum failed",FILE_IN_THE_WAY:"There is a file in the way: %s",UNKNOWN_METHOD:"Invalid/unsupported compression method",AVAIL_DATA:"inflate::Available inflate data did not terminate",INVALID_DISTANCE:"inflate::Invalid literal/length or distance code in fixed or dynamic block",TO_MANY_CODES:"inflate::Dynamic block code description: too many length or distance codes",INVALID_REPEAT_LEN:"inflate::Dynamic block code description: repeat more than specified lengths",INVALID_REPEAT_FIRST:"inflate::Dynamic block code description: repeat lengths with no first length",INCOMPLETE_CODES:"inflate::Dynamic block code description: code lengths codes incomplete",INVALID_DYN_DISTANCE:"inflate::Dynamic block code description: invalid distance code lengths",INVALID_CODES_LEN:"inflate::Dynamic block code description: invalid literal/length code lengths",INVALID_STORE_BLOCK:"inflate::Stored block length did not match one's complement",INVALID_BLOCK_TYPE:"inflate::Invalid block type (type == 3)",CANT_EXTRACT_FILE:"Could not extract the file",CANT_OVERRIDE:"Target file already exists",NO_ZIP:"No zip file was loaded",NO_ENTRY:"Entry doesn't exist",DIRECTORY_CONTENT_ERROR:"A directory cannot have content",FILE_NOT_FOUND:"File not found: %s",NOT_IMPLEMENTED:"Not implemented",INVALID_FILENAME:"Invalid filename",INVALID_FORMAT:"Invalid or unsupported zip format. No END header found"};const Ni=Vo.require(),ff=Re.default;Ni.existsSync=Ni.existsSync||ff.existsSync;var Fv=function(e){var t=e||"",r=i(),n=null;function i(){return{directory:!1,readonly:!1,hidden:!1,executable:!1,mtime:0,atime:0}}return t&&Ni.existsSync(t)?(n=Ni.statSync(t),r.directory=n.isDirectory(),r.mtime=n.mtime,r.atime=n.atime,r.executable=(73&n.mode)!==0,r.readonly=(128&n.mode)===0,r.hidden=ff.basename(t)[0]==="."):console.warn("Invalid path: "+t),{get directory(){return r.directory},get readOnly(){return r.readonly},get hidden(){return r.hidden},get mtime(){return r.mtime},get atime(){return r.atime},get executable(){return r.executable},decodeAttributes:function(){},encodeAttributes:function(){},toJSON:function(){return{path:t,isDirectory:r.directory,isReadOnly:r.readonly,isHidden:r.hidden,isExecutable:r.executable,mTime:r.mtime,aTime:r.atime}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}};(function(e){e.exports=bv,e.exports.Constants=uf,e.exports.Errors=Lv,e.exports.FileAttr=Fv})(nn);var Bi={},pn=nn.exports,ee=pn.Constants,jv=function(){var e=20,t=10,r=0,n=0,i=0,s=0,o=0,c=0,u=0,p=0,a=0,l=0,y=0,d=0,h=0;e|=pn.isWin?2560:768,r|=ee.FLG_EFS;var m={};function E(f){f=new Date(f),i=(f.getFullYear()-1980&127)<<25|f.getMonth()+1<<21|f.getDate()<<16|f.getHours()<<11|f.getMinutes()<<5|f.getSeconds()>>1}return E(+new Date),{get made(){return e},set made(f){e=f},get version(){return t},set version(f){t=f},get flags(){return r},set flags(f){r=f},get method(){return n},set method(f){switch(f){case ee.STORED:this.version=10;case ee.DEFLATED:default:this.version=20}n=f},get time(){return new Date((i>>25&127)+1980,(i>>21&15)-1,i>>16&31,i>>11&31,i>>5&63,(i&31)<<1)},set time(f){E(f)},get crc(){return s},set crc(f){s=Math.max(0,f)>>>0},get compressedSize(){return o},set compressedSize(f){o=Math.max(0,f)>>>0},get size(){return c},set size(f){c=Math.max(0,f)>>>0},get fileNameLength(){return u},set fileNameLength(f){u=f},get extraLength(){return p},set extraLength(f){p=f},get commentLength(){return a},set commentLength(f){a=f},get diskNumStart(){return l},set diskNumStart(f){l=Math.max(0,f)>>>0},get inAttr(){return y},set inAttr(f){y=Math.max(0,f)>>>0},get attr(){return d},set attr(f){d=Math.max(0,f)>>>0},get fileAttr(){return d?(d>>>0|0)>>16&4095:0},get offset(){return h},set offset(f){h=Math.max(0,f)>>>0},get encripted(){return(r&1)===1},get entryHeaderSize(){return ee.CENHDR+u+p+a},get realDataOffset(){return h+ee.LOCHDR+m.fnameLen+m.extraLen},get dataHeader(){return m},loadDataHeaderFromBinary:function(f){var $=f.slice(h,h+ee.LOCHDR);if($.readUInt32LE(0)!==ee.LOCSIG)throw new Error(pn.Errors.INVALID_LOC);m={version:$.readUInt16LE(ee.LOCVER),flags:$.readUInt16LE(ee.LOCFLG),method:$.readUInt16LE(ee.LOCHOW),time:$.readUInt32LE(ee.LOCTIM),crc:$.readUInt32LE(ee.LOCCRC),compressedSize:$.readUInt32LE(ee.LOCSIZ),size:$.readUInt32LE(ee.LOCLEN),fnameLen:$.readUInt16LE(ee.LOCNAM),extraLen:$.readUInt16LE(ee.LOCEXT)}},loadFromBinary:function(f){if(f.length!==ee.CENHDR||f.readUInt32LE(0)!==ee.CENSIG)throw new Error(pn.Errors.INVALID_CEN);e=f.readUInt16LE(ee.CENVEM),t=f.readUInt16LE(ee.CENVER),r=f.readUInt16LE(ee.CENFLG),n=f.readUInt16LE(ee.CENHOW),i=f.readUInt32LE(ee.CENTIM),s=f.readUInt32LE(ee.CENCRC),o=f.readUInt32LE(ee.CENSIZ),c=f.readUInt32LE(ee.CENLEN),u=f.readUInt16LE(ee.CENNAM),p=f.readUInt16LE(ee.CENEXT),a=f.readUInt16LE(ee.CENCOM),l=f.readUInt16LE(ee.CENDSK),y=f.readUInt16LE(ee.CENATT),d=f.readUInt32LE(ee.CENATX),h=f.readUInt32LE(ee.CENOFF)},dataHeaderToBinary:function(){var f=Buffer.alloc(ee.LOCHDR);return f.writeUInt32LE(ee.LOCSIG,0),f.writeUInt16LE(t,ee.LOCVER),f.writeUInt16LE(r,ee.LOCFLG),f.writeUInt16LE(n,ee.LOCHOW),f.writeUInt32LE(i,ee.LOCTIM),f.writeUInt32LE(s,ee.LOCCRC),f.writeUInt32LE(o,ee.LOCSIZ),f.writeUInt32LE(c,ee.LOCLEN),f.writeUInt16LE(u,ee.LOCNAM),f.writeUInt16LE(p,ee.LOCEXT),f},entryHeaderToBinary:function(){var f=Buffer.alloc(ee.CENHDR+u+p+a);return f.writeUInt32LE(ee.CENSIG,0),f.writeUInt16LE(e,ee.CENVEM),f.writeUInt16LE(t,ee.CENVER),f.writeUInt16LE(r,ee.CENFLG),f.writeUInt16LE(n,ee.CENHOW),f.writeUInt32LE(i,ee.CENTIM),f.writeUInt32LE(s,ee.CENCRC),f.writeUInt32LE(o,ee.CENSIZ),f.writeUInt32LE(c,ee.CENLEN),f.writeUInt16LE(u,ee.CENNAM),f.writeUInt16LE(p,ee.CENEXT),f.writeUInt16LE(a,ee.CENCOM),f.writeUInt16LE(l,ee.CENDSK),f.writeUInt16LE(y,ee.CENATT),f.writeUInt32LE(d,ee.CENATX),f.writeUInt32LE(h,ee.CENOFF),f.fill(0,ee.CENHDR),f},toJSON:function(){const f=function($){return $+" bytes"};return{made:e,version:t,flags:r,method:pn.methodToString(n),time:this.time,crc:"0x"+s.toString(16).toUpperCase(),compressedSize:f(o),size:f(c),fileNameLength:f(u),extraLength:f(p),commentLength:f(a),diskNumStart:l,inAttr:y,attr:d,offset:h,entryHeaderSize:f(ee.CENHDR+u+p+a)}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}},Mr=nn.exports,Oe=Mr.Constants,Mv=function(){var e=0,t=0,r=0,n=0,i=0;return{get diskEntries(){return e},set diskEntries(s){e=t=s},get totalEntries(){return t},set totalEntries(s){t=e=s},get size(){return r},set size(s){r=s},get offset(){return n},set offset(s){n=s},get commentLength(){return i},set commentLength(s){i=s},get mainHeaderSize(){return Oe.ENDHDR+i},loadFromBinary:function(s){if((s.length!==Oe.ENDHDR||s.readUInt32LE(0)!==Oe.ENDSIG)&&(s.length<Oe.ZIP64HDR||s.readUInt32LE(0)!==Oe.ZIP64SIG))throw new Error(Mr.Errors.INVALID_END);s.readUInt32LE(0)===Oe.ENDSIG?(e=s.readUInt16LE(Oe.ENDSUB),t=s.readUInt16LE(Oe.ENDTOT),r=s.readUInt32LE(Oe.ENDSIZ),n=s.readUInt32LE(Oe.ENDOFF),i=s.readUInt16LE(Oe.ENDCOM)):(e=Mr.readBigUInt64LE(s,Oe.ZIP64SUB),t=Mr.readBigUInt64LE(s,Oe.ZIP64TOT),r=Mr.readBigUInt64LE(s,Oe.ZIP64SIZ),n=Mr.readBigUInt64LE(s,Oe.ZIP64OFF),i=0)},toBinary:function(){var s=Buffer.alloc(Oe.ENDHDR+i);return s.writeUInt32LE(Oe.ENDSIG,0),s.writeUInt32LE(0,4),s.writeUInt16LE(e,Oe.ENDSUB),s.writeUInt16LE(t,Oe.ENDTOT),s.writeUInt32LE(r,Oe.ENDSIZ),s.writeUInt32LE(n,Oe.ENDOFF),s.writeUInt16LE(i,Oe.ENDCOM),s.fill(" ",Oe.ENDHDR),s},toJSON:function(){const s=function(o,c){let u=o.toString(16).toUpperCase();for(;u.length<c;)u="0"+u;return"0x"+u};return{diskEntries:e,totalEntries:t,size:r+" bytes",offset:s(n,4),commentLength:i}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}};Bi.EntryHeader=jv;Bi.MainHeader=Mv;var Hi={},kv=function(e){var t=Ic.default,r={chunkSize:(parseInt(e.length/1024)+1)*1024};return{deflate:function(){return t.deflateRawSync(e,r)},deflateAsync:function(n){var i=t.createDeflateRaw(r),s=[],o=0;i.on("data",function(c){s.push(c),o+=c.length}),i.on("end",function(){var c=Buffer.alloc(o),u=0;c.fill(0);for(var p=0;p<s.length;p++){var a=s[p];a.copy(c,u),u+=a.length}n&&n(c)}),i.end(e)}}},Uv=function(e){var t=Ic.default;return{inflate:function(){return t.inflateRawSync(e)},inflateAsync:function(r){var n=t.createInflateRaw(),i=[],s=0;n.on("data",function(o){i.push(o),s+=o.length}),n.on("end",function(){var o=Buffer.alloc(s),c=0;o.fill(0);for(var u=0;u<i.length;u++){var p=i[u];p.copy(o,c),c+=p.length}r&&r(o)}),n.end(e)}}};const{randomFillSync:$c}=Nc.default,zv=new Uint32Array(256).map((e,t)=>{for(let r=0;r<8;r++)(t&1)!==0?t=t>>>1^3988292384:t>>>=1;return t>>>0}),lf=(e,t)=>Math.imul(e,t)>>>0,_c=(e,t)=>zv[(e^t)&255]^e>>>8,Cn=()=>typeof $c=="function"?$c(Buffer.alloc(12)):Cn.node();Cn.node=()=>{const e=Buffer.alloc(12),t=e.length;for(let r=0;r<t;r++)e[r]=Math.random()*256&255;return e};const di={genSalt:Cn};function Ki(e){const t=Buffer.isBuffer(e)?e:Buffer.from(e);this.keys=new Uint32Array([305419896,591751049,878082192]);for(let r=0;r<t.length;r++)this.updateKeys(t[r])}Ki.prototype.updateKeys=function(e){const t=this.keys;return t[0]=_c(t[0],e),t[1]+=t[0]&255,t[1]=lf(t[1],134775813)+1,t[2]=_c(t[2],t[1]>>>24),e};Ki.prototype.next=function(){const e=(this.keys[2]|2)>>>0;return lf(e,e^1)>>8&255};function xv(e){const t=new Ki(e);return function(r){const n=Buffer.alloc(r.length);let i=0;for(let s of r)n[i++]=t.updateKeys(s^t.next());return n}}function Vv(e){const t=new Ki(e);return function(r,n,i=0){n||(n=Buffer.alloc(r.length));for(let s of r){const o=t.next();n[i++]=s^o,t.updateKeys(s)}return n}}function qv(e,t,r){if(!e||!Buffer.isBuffer(e)||e.length<12)return Buffer.alloc(0);const n=xv(r);if(n(e.slice(0,12))[11]!==t.crc>>>24)throw"ADM-ZIP: Wrong Password";return n(e.slice(12))}function Gv(e){Buffer.isBuffer(e)&&e.length>=12?di.genSalt=function(){return e.slice(0,12)}:e==="node"?di.genSalt=Cn.node:di.genSalt=Cn}function Bv(e,t,r,n=!1){e==null&&(e=Buffer.alloc(0)),Buffer.isBuffer(e)||(e=Buffer.from(e.toString()));const i=Vv(r),s=di.genSalt();s[11]=t.crc>>>24&255,n&&(s[10]=t.crc>>>16&255);const o=Buffer.alloc(e.length+12);return i(s,o),i(e,o,12)}var Hv={decrypt:qv,encrypt:Bv,_salter:Gv};Hi.Deflater=kv;Hi.Inflater=Uv;Hi.ZipCrypto=Hv;var Fe=nn.exports,Kv=Bi,dt=Fe.Constants,ds=Hi,df=function(e){var t=new Kv.EntryHeader,r=Buffer.alloc(0),n=Buffer.alloc(0),i=!1,s=null,o=Buffer.alloc(0);function c(){return!e||!Buffer.isBuffer(e)?Buffer.alloc(0):(t.loadDataHeaderFromBinary(e),e.slice(t.realDataOffset,t.realDataOffset+t.compressedSize))}function u(h){return!((t.flags&8)!==8&&Fe.crc32(h)!==t.dataHeader.crc)}function p(h,m,E){if(typeof m>"u"&&typeof h=="string"&&(E=h,h=void 0),i)return h&&m&&m(Buffer.alloc(0),Fe.Errors.DIRECTORY_CONTENT_ERROR),Buffer.alloc(0);var f=c();if(f.length===0)return h&&m&&m(f),f;if(t.encripted){if(typeof E!="string"&&!Buffer.isBuffer(E))throw new Error("ADM-ZIP: Incompatible password parameter");f=ds.ZipCrypto.decrypt(f,t,E)}var $=Buffer.alloc(t.size);switch(t.method){case Fe.Constants.STORED:if(f.copy($),u($))return h&&m&&m($),$;throw h&&m&&m($,Fe.Errors.BAD_CRC),new Error(Fe.Errors.BAD_CRC);case Fe.Constants.DEFLATED:var _=new ds.Inflater(f);if(h)_.inflateAsync(function(O){O.copy(O,0),m&&(u(O)?m(O):m(O,Fe.Errors.BAD_CRC))});else{if(_.inflate($).copy($,0),!u($))throw new Error(Fe.Errors.BAD_CRC+" "+r.toString());return $}break;default:throw h&&m&&m(Buffer.alloc(0),Fe.Errors.UNKNOWN_METHOD),new Error(Fe.Errors.UNKNOWN_METHOD)}}function a(h,m){if((!s||!s.length)&&Buffer.isBuffer(e))return h&&m&&m(c()),c();if(s.length&&!i){var E;switch(t.method){case Fe.Constants.STORED:return t.compressedSize=t.size,E=Buffer.alloc(s.length),s.copy(E),h&&m&&m(E),E;default:case Fe.Constants.DEFLATED:var f=new ds.Deflater(s);if(h)f.deflateAsync(function(_){E=Buffer.alloc(_.length),t.compressedSize=_.length,_.copy(E),m&&m(E)});else{var $=f.deflate();return t.compressedSize=$.length,$}f=null;break}}else if(h&&m)m(Buffer.alloc(0));else return Buffer.alloc(0)}function l(h,m){return(h.readUInt32LE(m+4)<<4)+h.readUInt32LE(m)}function y(h){for(var m=0,E,f,$;m<h.length;)E=h.readUInt16LE(m),m+=2,f=h.readUInt16LE(m),m+=2,$=h.slice(m,m+f),m+=f,dt.ID_ZIP64===E&&d($)}function d(h){var m,E,f,$;h.length>=dt.EF_ZIP64_SCOMP&&(m=l(h,dt.EF_ZIP64_SUNCOMP),t.size===dt.EF_ZIP64_OR_32&&(t.size=m)),h.length>=dt.EF_ZIP64_RHO&&(E=l(h,dt.EF_ZIP64_SCOMP),t.compressedSize===dt.EF_ZIP64_OR_32&&(t.compressedSize=E)),h.length>=dt.EF_ZIP64_DSN&&(f=l(h,dt.EF_ZIP64_RHO),t.offset===dt.EF_ZIP64_OR_32&&(t.offset=f)),h.length>=dt.EF_ZIP64_DSN+4&&($=h.readUInt32LE(dt.EF_ZIP64_DSN),t.diskNumStart===dt.EF_ZIP64_OR_16&&(t.diskNumStart=$))}return{get entryName(){return r.toString()},get rawEntryName(){return r},set entryName(h){r=Fe.toBuffer(h);var m=r[r.length-1];i=m===47||m===92,t.fileNameLength=r.length},get extra(){return o},set extra(h){o=h,t.extraLength=h.length,y(h)},get comment(){return n.toString()},set comment(h){n=Fe.toBuffer(h),t.commentLength=n.length},get name(){var h=r.toString();return i?h.substr(h.length-1).split("/").pop():h.split("/").pop()},get isDirectory(){return i},getCompressedData:function(){return a(!1,null)},getCompressedDataAsync:function(h){a(!0,h)},setData:function(h){s=Fe.toBuffer(h),!i&&s.length?(t.size=s.length,t.method=Fe.Constants.DEFLATED,t.crc=Fe.crc32(h),t.changed=!0):t.method=Fe.Constants.STORED},getData:function(h){return t.changed?s:p(!1,null,h)},getDataAsync:function(h,m){t.changed?h(s):p(!0,h,m)},set attr(h){t.attr=h},get attr(){return t.attr},set header(h){t.loadFromBinary(h)},get header(){return t},packHeader:function(){var h=t.entryHeaderToBinary(),m=Fe.Constants.CENHDR;return r.copy(h,m),m+=r.length,t.extraLength&&(o.copy(h,m),m+=t.extraLength),t.commentLength&&n.copy(h,m),h},toJSON:function(){const h=function(m){return"<"+(m&&m.length+" bytes buffer"||"null")+">"};return{entryName:this.entryName,name:this.name,comment:this.comment,isDirectory:this.isDirectory,header:t.toJSON(),compressedData:h(e),data:h(s)}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}};const Sc=df,Wv=Bi,Je=nn.exports;var Xv=function(e,t){var r=[],n={},i=Buffer.alloc(0),s=new Wv.MainHeader,o=!1;const c=Object.assign(Object.create(null),t),{noSort:u}=c;e?l(c.readEntries):o=!0;function p(d){const h=s.diskEntries;let m=s.offset;for(let E=0;E<h;E++){let f=m;const $=new Sc(e);$.header=e.slice(f,f+=Je.Constants.CENHDR),$.entryName=e.slice(f,f+=$.header.fileNameLength),m+=$.header.entryHeaderSize,d($)}}function a(){o=!0,n={},r=new Array(s.diskEntries);for(var d=s.offset,h=0;h<r.length;h++){var m=d,E=new Sc(e);E.header=e.slice(m,m+=Je.Constants.CENHDR),E.entryName=e.slice(m,m+=E.header.fileNameLength),E.header.extraLength&&(E.extra=e.slice(m,m+=E.header.extraLength)),E.header.commentLength&&(E.comment=e.slice(m,m+E.header.commentLength)),d+=E.header.entryHeaderSize,r[h]=E,n[E.entryName]=E}}function l(d){var h=e.length-Je.Constants.ENDHDR,m=Math.max(0,h-65535),E=m,f=e.length,$=-1,_=0;for(h;h>=E;h--)if(e[h]===80){if(e.readUInt32LE(h)===Je.Constants.ENDSIG){$=h,_=h,f=h+Je.Constants.ENDHDR,E=h-Je.Constants.END64HDR;continue}if(e.readUInt32LE(h)===Je.Constants.END64SIG){E=m;continue}if(e.readUInt32LE(h)===Je.Constants.ZIP64SIG){$=h,f=h+Je.readBigUInt64LE(e,h+Je.Constants.ZIP64SIZE)+Je.Constants.ZIP64LEAD;break}}if(!~$)throw new Error(Je.Errors.INVALID_FORMAT);s.loadFromBinary(e.slice($,f)),s.commentLength&&(i=e.slice(_+Je.Constants.ENDHDR)),d&&a()}function y(){r.length>1&&!u&&r.sort((d,h)=>d.entryName.toLowerCase().localeCompare(h.entryName.toLowerCase()))}return{get entries(){return o||a(),r},get comment(){return i.toString()},set comment(d){i=Je.toBuffer(d),s.commentLength=i.length},getEntryCount:function(){return o?r.length:s.diskEntries},forEach:function(d){if(!o){p(d);return}r.forEach(d)},getEntry:function(d){return o||a(),n[d]||null},setEntry:function(d){o||a(),r.push(d),n[d.entryName]=d,s.totalEntries=r.length},deleteEntry:function(d){o||a();var h=n[d];if(h&&h.isDirectory){var m=this;this.getEntryChildren(h).forEach(function(E){E.entryName!==d&&m.deleteEntry(E.entryName)})}r.splice(r.indexOf(h),1),delete n[d],s.totalEntries=r.length},getEntryChildren:function(d){if(o||a(),d&&d.isDirectory){const h=[],m=d.entryName,E=m.length;return r.forEach(function(f){f.entryName.substr(0,E)===m&&h.push(f)}),h}return[]},compressToBuffer:function(){o||a(),y();const d=[],h=[];let m=0,E=0;s.size=0,s.offset=0;for(const _ of r){const O=_.getCompressedData();_.header.offset=E;const q=_.header.dataHeaderToBinary(),R=_.rawEntryName.length,C=Buffer.alloc(R+_.extra.length);_.rawEntryName.copy(C,0),C.copy(_.extra,R);const V=q.length+C.length+O.length;E+=V,d.push(q),d.push(C),d.push(O);const L=_.packHeader();h.push(L),s.size+=L.length,m+=V+L.length}m+=s.mainHeaderSize,s.offset=E,E=0;const f=Buffer.alloc(m);for(const _ of d)_.copy(f,E),E+=_.length;for(const _ of h)_.copy(f,E),E+=_.length;const $=s.toBinary();return i&&i.copy($,Je.Constants.ENDHDR),$.copy(f,E),f},toAsyncBuffer:function(d,h,m,E){try{o||a(),y();const f=[],$=[];let _=0,O=0;s.size=0,s.offset=0;const q=function(R){if(R.length){const C=R.pop(),V=C.entryName+C.extra.toString();m&&m(V),C.getCompressedDataAsync(function(L){E&&E(V),C.header.offset=O;const G=C.header.dataHeaderToBinary(),j=Buffer.alloc(V.length,V),b=G.length+j.length+L.length;O+=b,f.push(G),f.push(j),f.push(L);const K=C.packHeader();$.push(K),s.size+=K.length,_+=b+K.length,q(R)})}else{_+=s.mainHeaderSize,s.offset=O,O=0;const C=Buffer.alloc(_);f.forEach(function(L){L.copy(C,O),O+=L.length}),$.forEach(function(L){L.copy(C,O),O+=L.length});const V=s.toBinary();i&&i.copy(V,Je.Constants.ENDHDR),V.copy(C,O),d(C)}};q(r)}catch(f){h(f)}}}};const Me=nn.exports,Ft=Re.default,Zv=df,Jv=Xv,pr=(e,t)=>typeof e=="boolean"?e:t,hs=(e,t)=>typeof e=="string"?e:t,Yv={noSort:!1,readEntries:!1,method:Me.Constants.NONE,fs:null};var wc=function(e,t){let r=null;const n=Object.assign(Object.create(null),Yv);e&&typeof e=="object"&&(e instanceof Uint8Array||(Object.assign(n,e),e=n.input?n.input:void 0,n.input&&delete n.input),Buffer.isBuffer(e)&&(r=e,n.method=Me.Constants.BUFFER,e=void 0)),Object.assign(n,t);const i=new Me(n);if(e&&typeof e=="string")if(i.fs.existsSync(e))n.method=Me.Constants.FILE,n.filename=e,r=i.fs.readFileSync(e);else throw new Error(Me.Errors.INVALID_FILENAME);const s=new Jv(r,n),{canonical:o,sanitize:c}=Me;function u(a){if(a&&s){var l;if(typeof a=="string"&&(l=s.getEntry(a)),typeof a=="object"&&typeof a.entryName<"u"&&typeof a.header<"u"&&(l=s.getEntry(a.entryName)),l)return l}return null}function p(a){const{join:l,normalize:y,sep:d}=Ft.posix;return l(".",y(d+a.split("\\").join(d)+d))}return{readFile:function(a,l){var y=u(a);return y&&y.getData(l)||null},readFileAsync:function(a,l){var y=u(a);y?y.getDataAsync(l):l(null,"getEntry failed for:"+a)},readAsText:function(a,l){var y=u(a);if(y){var d=y.getData();if(d&&d.length)return d.toString(l||"utf8")}return""},readAsTextAsync:function(a,l,y){var d=u(a);d?d.getDataAsync(function(h,m){if(m){l(h,m);return}h&&h.length?l(h.toString(y||"utf8")):l("")}):l("")},deleteFile:function(a){var l=u(a);l&&s.deleteEntry(l.entryName)},addZipComment:function(a){s.comment=a},getZipComment:function(){return s.comment||""},addZipEntryComment:function(a,l){var y=u(a);y&&(y.comment=l)},getZipEntryComment:function(a){var l=u(a);return l&&l.comment||""},updateFile:function(a,l){var y=u(a);y&&y.setData(l)},addLocalFile:function(a,l,y,d){if(i.fs.existsSync(a)){l=l?p(l):"";var h=a.split("\\").join("/").split("/").pop();l+=y||h;const m=i.fs.statSync(a);this.addFile(l,i.fs.readFileSync(a),d,m)}else throw new Error(Me.Errors.FILE_NOT_FOUND.replace("%s",a))},addLocalFolder:function(a,l,y){if(y instanceof RegExp?y=function(d){return function(h){return d.test(h)}}(y):typeof y!="function"&&(y=function(){return!0}),l=l?p(l):"",a=Ft.normalize(a),i.fs.existsSync(a)){const d=i.findFiles(a),h=this;d.length&&d.forEach(function(m){var E=Ft.relative(a,m).split("\\").join("/");if(y(E)){var f=i.fs.statSync(m);f.isFile()?h.addFile(l+E,i.fs.readFileSync(m),"",f):h.addFile(l+E+"/",Buffer.alloc(0),"",f)}})}else throw new Error(Me.Errors.FILE_NOT_FOUND.replace("%s",a))},addLocalFolderAsync:function(a,l,y,d){d instanceof RegExp?d=function(m){return function(E){return m.test(E)}}(d):typeof d!="function"&&(d=function(){return!0}),y=y?p(y):"",a=Ft.normalize(a);var h=this;i.fs.open(a,"r",function(m){if(m&&m.code==="ENOENT")l(void 0,Me.Errors.FILE_NOT_FOUND.replace("%s",a));else if(m)l(void 0,m);else{var E=i.findFiles(a),f=-1,$=function(){if(f+=1,f<E.length){var _=E[f],O=Ft.relative(a,_).split("\\").join("/");O=O.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,""),d(O)?i.fs.stat(_,function(q,R){q&&l(void 0,q),R.isFile()?i.fs.readFile(_,function(C,V){C?l(void 0,C):(h.addFile(y+O,V,"",R),$())}):(h.addFile(y+O+"/",Buffer.alloc(0),"",R),$())}):$()}else l(!0,void 0)};$()}})},addLocalFolderPromise:function(a,l){return new Promise((y,d)=>{const{filter:h,zipPath:m}=Object.assign({},l);this.addLocalFolderAsync(a,(E,f)=>{f&&d(f),E&&y(this)},m,h)})},addFile:function(a,l,y,d){let h=u(a);const m=h!=null;m||(h=new Zv,h.entryName=a),h.comment=y||"";const E=typeof d=="object"&&d instanceof i.fs.Stats;E&&(h.header.time=d.mtime);var f=h.isDirectory?16:0;if(!Me.isWin){let $=h.isDirectory?16384:32768;E?$|=4095&d.mode:typeof d=="number"?$|=4095&d:$|=h.isDirectory?493:420,f=(f|$<<16)>>>0}h.attr=f,h.setData(l),m||s.setEntry(h)},getEntries:function(){return s?s.entries:[]},getEntry:function(a){return u(a)},getEntryCount:function(){return s.getEntryCount()},forEach:function(a){return s.forEach(a)},extractEntryTo:function(a,l,y,d,h,m){d=pr(d,!1),h=pr(h,!1),y=pr(y,!0),m=hs(m,hs(h,void 0));var E=u(a);if(!E)throw new Error(Me.Errors.NO_ENTRY);var f=o(E.entryName),$=c(l,m&&!E.isDirectory?m:y?f:Ft.basename(f));if(E.isDirectory){var _=s.getEntryChildren(E);return _.forEach(function(R){if(R.isDirectory)return;var C=R.getData();if(!C)throw new Error(Me.Errors.CANT_EXTRACT_FILE);var V=o(R.entryName),L=c(l,y?V:Ft.basename(V));const G=h?R.header.fileAttr:void 0;i.writeFileTo(L,C,d,G)}),!0}var O=E.getData();if(!O)throw new Error(Me.Errors.CANT_EXTRACT_FILE);if(i.fs.existsSync($)&&!d)throw new Error(Me.Errors.CANT_OVERRIDE);const q=h?a.header.fileAttr:void 0;return i.writeFileTo($,O,d,q),!0},test:function(a){if(!s)return!1;for(var l in s.entries)try{if(l.isDirectory)continue;var y=s.entries[l].getData(a);if(!y)return!1}catch{return!1}return!0},extractAllTo:function(a,l,y,d){if(l=pr(l,!1),d=hs(y,d),y=pr(y,!1),!s)throw new Error(Me.Errors.NO_ZIP);s.entries.forEach(function(h){var m=c(a,o(h.entryName.toString()));if(h.isDirectory){i.makeDir(m);return}var E=h.getData(d);if(!E)throw new Error(Me.Errors.CANT_EXTRACT_FILE);const f=y?h.header.fileAttr:void 0;i.writeFileTo(m,E,l,f);try{i.fs.utimesSync(m,h.header.time,h.header.time)}catch{throw new Error(Me.Errors.CANT_EXTRACT_FILE)}})},extractAllToAsync:function(a,l,y,d){if(d||(d=function(){}),l=pr(l,!1),typeof y=="function"&&!d&&(d=y),y=pr(y,!1),!s){d(new Error(Me.Errors.NO_ZIP));return}a=Ft.resolve(a);const h=_=>c(a,Ft.normalize(o(_.entryName.toString()))),m=(_,O)=>new Error(_+': "'+O+'"'),E=[],f=new Set;s.entries.forEach(_=>{_.isDirectory?E.push(_):f.add(_)});for(const _ of E){const O=h(_),q=y?_.header.fileAttr:void 0;try{i.makeDir(O),q&&i.fs.chmodSync(O,q),i.fs.utimesSync(O,_.header.time,_.header.time)}catch{d(m("Unable to create folder",O))}}const $=()=>{f.size===0&&d()};for(const _ of f.values()){const O=Ft.normalize(o(_.entryName.toString())),q=c(a,O);_.getDataAsync(function(R,C){if(C){d(new Error(C));return}if(!R)d(new Error(Me.Errors.CANT_EXTRACT_FILE));else{const V=y?_.header.fileAttr:void 0;i.writeFileToAsync(q,R,l,V,function(L){if(!L){d(m("Unable to write file",q));return}i.fs.utimes(q,_.header.time,_.header.time,function(G){if(G){d(m("Unable to set times",q));return}f.delete(_),$()})})}})}$()},writeZip:function(a,l){if(arguments.length===1&&typeof a=="function"&&(l=a,a=""),!a&&n.filename&&(a=n.filename),!!a){var y=s.compressToBuffer();if(y){var d=i.writeFileTo(a,y,!0);typeof l=="function"&&l(d?null:new Error("failed"),"")}}},writeZipPromise:function(a,l){const{overwrite:y,perm:d}=Object.assign({overwrite:!0},l);return new Promise((h,m)=>{!a&&n.filename&&(a=n.filename),a||m("ADM-ZIP: ZIP File Name Missing"),this.toBufferPromise().then(E=>{const f=$=>$?h($):m("ADM-ZIP: Wasn't able to write zip file");i.writeFileToAsync(a,E,y,d,f)},m)})},toBufferPromise:function(){return new Promise((a,l)=>{s.toAsyncBuffer(a,l)})},toBuffer:function(a,l,y,d){return this.valueOf=2,typeof a=="function"?(s.toAsyncBuffer(a,l,y,d),null):s.compressToBuffer()}}},Pn,qr,Gr,An,$r,_r,Qt,er,Ii,Br,bn,Ts,Ln,It,Hr,hi,Fn,Gt;const Nt=class{constructor(t,r){qe(this,bn);qe(this,Hr);qe(this,Pn,le.screen.getPrimaryDisplay().size);qe(this,qr,fe(this,Pn).width);qe(this,Gr,fe(this,Pn).height);qe(this,An,{getAppPath:le.app.getAppPath(),isPackaged:le.app.isPackaged,downloads:le.app.getPath("downloads"),userData:le.app.getPath("userData"),getVersion:"",env:{...process.env},platform:process.platform,arch:process.arch});qe(this,$r,0);qe(this,_r,0);qe(this,Qt,0);qe(this,er,0);qe(this,Ii,process.platform==="win32");qe(this,Br,void 0);qe(this,Ln,!1);qe(this,It,!1);this.bw=t,fe(this,An).getVersion=r,le.ipcMain.handle("getInfo",()=>fe(this,An)),le.ipcMain.handle("existsSync",(i,s)=>vt.existsSync(s)),le.ipcMain.handle("copySync",(i,s,o)=>vt.copySync(s,o)),le.ipcMain.handle("removeSync",(i,s)=>vt.removeSync(s)),le.ipcMain.handle("ensureFileSync",(i,s)=>vt.ensureFileSync(s)),le.ipcMain.handle("readFileSync",(i,s)=>vt.readFileSync(s,{encoding:"utf8"})),le.ipcMain.handle("readFile",(i,s,o)=>vt.readFile(s,o)),le.ipcMain.handle("writeFileSync",(i,s,o,c)=>vt.writeFileSync(s,o,c)),le.ipcMain.handle("appendFile",(i,s,o,c)=>vt.appendFile(s,o,c)),le.ipcMain.handle("win_close",()=>t.close()),le.ipcMain.handle("win_setTitle",(i,s)=>t.setTitle(s)),le.ipcMain.handle("showMessageBox",(i,s)=>le.dialog.showMessageBox(s)),le.ipcMain.handle("capturePage",(i,s)=>t.webContents.capturePage().then(o=>vt.writeFileSync(s,s.slice(-4)===".png"?o.toPNG():o.toJPEG(80)))),le.ipcMain.handle("navigate_to",(i,s)=>le.shell.openExternal(s)),le.ipcMain.handle("openDevTools",()=>t.webContents.openDevTools()),le.ipcMain.handle("win_ev_devtools_opened",(i,s)=>t.webContents.on("devtools-opened",s));let n;le.ipcMain.handle("Store",(i,s)=>{n=new Ec(s)}),le.ipcMain.handle("flush",(i,s)=>{n.store=s}),le.ipcMain.handle("Store_isEmpty",()=>n.size===0),le.ipcMain.handle("Store_get",()=>n.store),le.ipcMain.handle("zip",(i,s,o)=>{const c=new wc;c.addLocalFolder(s),c.writeZip(o)}),le.ipcMain.handle("unzip",(i,s,o)=>{vt.removeSync(o),vt.ensureDirSync(o),new wc(s).extractAllTo(o,!0)}),le.ipcMain.handle("isSimpleFullScreen",()=>t.simpleFullScreen),fe(this,Ii)?(le.ipcMain.handle("setSimpleFullScreen",(i,s)=>{Xe(this,It,!0),t.setSimpleFullScreen(s),s||(t.setPosition(fe(this,$r),fe(this,_r)),t.setContentSize(fe(this,Qt),fe(this,er)+fe(Nt,Gt))),Xe(this,It,!1)}),t.on("enter-full-screen",()=>{t.setContentSize(fe(this,qr),fe(this,Gr)-fe(Nt,Gt))}),t.on("leave-full-screen",()=>{Pr(this,Hr,hi).call(this,!1,fe(this,$r),fe(this,_r),fe(this,Qt),fe(this,er)+fe(Nt,Gt))})):le.ipcMain.handle("setSimpleFullScreen",(i,s)=>{t.setSimpleFullScreen(s),s||t.setContentSize(fe(this,Qt),fe(this,er)+fe(Nt,Gt))}),le.ipcMain.handle("window",(i,s,o,c,u,p)=>Pr(this,Hr,hi).call(this,s,o,c,u,p)),t.on("move",()=>Pr(this,bn,Ts).call(this))}openDevTools(){this.bw.webContents.openDevTools()}static initRenderer(t,r,n){let i=()=>{},s;try{Ec.initRenderer(),process.env.ELECTRON_DISABLE_SECURITY_WARNINGS="true",s=new le.BrowserWindow({...n,fullscreenable:!0,maximizable:!1,webPreferences:{enableRemoteModule:!1,nodeIntegration:!1,contextIsolation:!0,preload:`${__dirname}/preload.js`}}),s.setMenuBarVisibility(!1);const o=s.getContentSize()[1];s.setMenuBarVisibility(!0);const c=s.getContentSize()[1];Xe(Nt,Gt,o-c),Xe(Nt,Fn,new Nt(s,r)),i=()=>fe(Nt,Fn).openDevTools(),s.loadFile(t)}catch(o){throw console.error(`ealy err:${o}`),i(),"initRenderer error"}return s}};let Ur=Nt;Pn=new WeakMap,qr=new WeakMap,Gr=new WeakMap,An=new WeakMap,$r=new WeakMap,_r=new WeakMap,Qt=new WeakMap,er=new WeakMap,Ii=new WeakMap,Br=new WeakMap,bn=new WeakSet,Ts=function(){if(fe(this,Br)||fe(this,It))return;Xe(this,It,!0);const{x:t,y:r}=this.bw.getBounds();Xe(this,Br,setTimeout(()=>{if(Xe(this,Br,void 0),fe(this,Ln)){Xe(this,Ln,!1);return}Xe(this,It,!1);const n=this.bw.getBounds();if(t!==n.x||r!==n.y){Pr(this,bn,Ts).call(this);return}Pr(this,Hr,hi).call(this,!1,n.x,n.y,fe(this,Qt),fe(this,er))},1e3/60*10))},Ln=new WeakMap,It=new WeakMap,Hr=new WeakSet,hi=function(t,r,n,i,s){fe(this,It)||(Xe(this,It,!0),!this.bw.simpleFullScreen&&(t?([r,n]=this.bw.getPosition(),r=(fe(this,qr)-r)*.5,n=(fe(this,Gr)-n)*.5):((r<0||r>fe(this,qr))&&(r=0),(n<0||n>fe(this,Gr))&&(n=0)),(fe(this,$r)!==r||fe(this,_r)!==n)&&(Xe(this,$r,r),Xe(this,_r,n),this.bw.webContents.send("save_win_pos",r,n),this.bw.setPosition(r,n)),Xe(this,Qt,i),Xe(this,er,s),this.bw.setContentSize(i,s+fe(Nt,Gt)),Xe(this,It,!1)))},Fn=new WeakMap,Gt=new WeakMap,qe(Ur,Fn,void 0),qe(Ur,Gt,0);module.exports=Ur;exports.appMain=Ur;
14
+ deps: ${a}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(u){const[p,a]=s(u);o(u,p),c(u,a)}};function s({schema:u}){const p={},a={};for(const l in u){if(l==="__proto__")continue;const y=Array.isArray(u[l])?p:a;y[l]=u[l]}return[p,a]}function o(u,p=u.schema){const{gen:a,data:l,it:y}=u;if(Object.keys(p).length===0)return;const d=a.let("missing");for(const h in p){const m=p[h];if(m.length===0)continue;const E=(0,n.propertyInData)(a,l,h,y.opts.ownProperties);u.setParams({property:h,depsCount:m.length,deps:m.join(", ")}),y.allErrors?a.if(E,()=>{for(const f of m)(0,n.checkReportMissingProp)(u,f)}):(a.if((0,t._)`${E} && (${(0,n.checkMissingProp)(u,m,d)})`),(0,n.reportMissingProp)(u,d),a.else())}}e.validatePropertyDeps=o;function c(u,p=u.schema){const{gen:a,data:l,keyword:y,it:d}=u,h=a.name("valid");for(const m in p)(0,r.alwaysValidSchema)(d,p[m])||(a.if((0,n.propertyInData)(a,l,m,d.opts.ownProperties),()=>{const E=u.subschema({keyword:y,schemaProp:m},h);u.mergeValidEvaluated(E,h)},()=>a.var(h,!0)),u.ok(h))}e.validateSchemaDeps=c,e.default=i})(Xu);var So={};Object.defineProperty(So,"__esModule",{value:!0});const Zu=oe,Zp=he,Jp={message:"property name must be valid",params:({params:e})=>(0,Zu._)`{propertyName: ${e.propertyName}}`},Yp={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Jp,code(e){const{gen:t,schema:r,data:n,it:i}=e;if((0,Zp.alwaysValidSchema)(i,r))return;const s=t.name("valid");t.forIn("key",n,o=>{e.setParams({propertyName:o}),e.subschema({keyword:"propertyNames",data:o,dataTypes:["string"],propertyName:o,compositeRule:!0},s),t.if((0,Zu.not)(s),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(s)}};So.default=Yp;var Mi={};Object.defineProperty(Mi,"__esModule",{value:!0});const Zn=ce,_t=oe,Qp=kt,Jn=he,ey={message:"must NOT have additional properties",params:({params:e})=>(0,_t._)`{additionalProperty: ${e.additionalProperty}}`},ty={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:ey,code(e){const{gen:t,schema:r,parentSchema:n,data:i,errsCount:s,it:o}=e;if(!s)throw new Error("ajv implementation error");const{allErrors:c,opts:u}=o;if(o.props=!0,u.removeAdditional!=="all"&&(0,Jn.alwaysValidSchema)(o,r))return;const p=(0,Zn.allSchemaProperties)(n.properties),a=(0,Zn.allSchemaProperties)(n.patternProperties);l(),e.ok((0,_t._)`${s} === ${Qp.default.errors}`);function l(){t.forIn("key",i,E=>{!p.length&&!a.length?h(E):t.if(y(E),()=>h(E))})}function y(E){let f;if(p.length>8){const $=(0,Jn.schemaRefOrVal)(o,n.properties,"properties");f=(0,Zn.isOwnProperty)(t,$,E)}else p.length?f=(0,_t.or)(...p.map($=>(0,_t._)`${E} === ${$}`)):f=_t.nil;return a.length&&(f=(0,_t.or)(f,...a.map($=>(0,_t._)`${(0,Zn.usePattern)(e,$)}.test(${E})`))),(0,_t.not)(f)}function d(E){t.code((0,_t._)`delete ${i}[${E}]`)}function h(E){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){d(E);return}if(r===!1){e.setParams({additionalProperty:E}),e.error(),c||t.break();return}if(typeof r=="object"&&!(0,Jn.alwaysValidSchema)(o,r)){const f=t.name("valid");u.removeAdditional==="failing"?(m(E,f,!1),t.if((0,_t.not)(f),()=>{e.reset(),d(E)})):(m(E,f),c||t.if((0,_t.not)(f),()=>t.break()))}}function m(E,f,$){const _={keyword:"additionalProperties",dataProp:E,dataPropType:Jn.Type.Str};$===!1&&Object.assign(_,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(_,f)}}};Mi.default=ty;var wo={};Object.defineProperty(wo,"__esModule",{value:!0});const ry=Ai(),Ma=ce,ns=he,ka=Mi,ny={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:n,data:i,it:s}=e;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&ka.default.code(new ry.KeywordCxt(s,ka.default,"additionalProperties"));const o=(0,Ma.allSchemaProperties)(r);for(const l of o)s.definedProperties.add(l);s.opts.unevaluated&&o.length&&s.props!==!0&&(s.props=ns.mergeEvaluated.props(t,(0,ns.toHash)(o),s.props));const c=o.filter(l=>!(0,ns.alwaysValidSchema)(s,r[l]));if(c.length===0)return;const u=t.name("valid");for(const l of c)p(l)?a(l):(t.if((0,Ma.propertyInData)(t,i,l,s.opts.ownProperties)),a(l),s.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(l),e.ok(u);function p(l){return s.opts.useDefaults&&!s.compositeRule&&r[l].default!==void 0}function a(l){e.subschema({keyword:"properties",schemaProp:l,dataProp:l},u)}}};wo.default=ny;var No={};Object.defineProperty(No,"__esModule",{value:!0});const Ua=ce,Yn=oe,za=he,xa=he,iy={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:n,parentSchema:i,it:s}=e,{opts:o}=s,c=(0,Ua.allSchemaProperties)(r),u=c.filter(m=>(0,za.alwaysValidSchema)(s,r[m]));if(c.length===0||u.length===c.length&&(!s.opts.unevaluated||s.props===!0))return;const p=o.strictSchema&&!o.allowMatchingProperties&&i.properties,a=t.name("valid");s.props!==!0&&!(s.props instanceof Yn.Name)&&(s.props=(0,xa.evaluatedPropsToName)(t,s.props));const{props:l}=s;y();function y(){for(const m of c)p&&d(m),s.allErrors?h(m):(t.var(a,!0),h(m),t.if(a))}function d(m){for(const E in p)new RegExp(m).test(E)&&(0,za.checkStrictMode)(s,`property ${E} matches pattern ${m} (use allowMatchingProperties)`)}function h(m){t.forIn("key",n,E=>{t.if((0,Yn._)`${(0,Ua.usePattern)(e,m)}.test(${E})`,()=>{const f=u.includes(m);f||e.subschema({keyword:"patternProperties",schemaProp:m,dataProp:E,dataPropType:xa.Type.Str},a),s.opts.unevaluated&&l!==!0?t.assign((0,Yn._)`${l}[${E}]`,!0):!f&&!s.allErrors&&t.if((0,Yn.not)(a),()=>t.break())})})}}};No.default=iy;var Io={};Object.defineProperty(Io,"__esModule",{value:!0});const sy=he,oy={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,sy.alwaysValidSchema)(n,r)){e.fail();return}const i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};Io.default=oy;var Oo={};Object.defineProperty(Oo,"__esModule",{value:!0});const ay=ce,cy={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:ay.validateUnion,error:{message:"must match a schema in anyOf"}};Oo.default=cy;var To={};Object.defineProperty(To,"__esModule",{value:!0});const ui=oe,uy=he,fy={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,ui._)`{passingSchemas: ${e.passing}}`},ly={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:fy,code(e){const{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;const s=r,o=t.let("valid",!1),c=t.let("passing",null),u=t.name("_valid");e.setParams({passing:c}),t.block(p),e.result(o,()=>e.reset(),()=>e.error(!0));function p(){s.forEach((a,l)=>{let y;(0,uy.alwaysValidSchema)(i,a)?t.var(u,!0):y=e.subschema({keyword:"oneOf",schemaProp:l,compositeRule:!0},u),l>0&&t.if((0,ui._)`${u} && ${o}`).assign(o,!1).assign(c,(0,ui._)`[${c}, ${l}]`).else(),t.if(u,()=>{t.assign(o,!0),t.assign(c,l),y&&e.mergeEvaluated(y,ui.Name)})})}}};To.default=ly;var Do={};Object.defineProperty(Do,"__esModule",{value:!0});const dy=he,hy={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const i=t.name("valid");r.forEach((s,o)=>{if((0,dy.alwaysValidSchema)(n,s))return;const c=e.subschema({keyword:"allOf",schemaProp:o},i);e.ok(i),e.mergeEvaluated(c)})}};Do.default=hy;var Ro={};Object.defineProperty(Ro,"__esModule",{value:!0});const _i=oe,Ju=he,my={message:({params:e})=>(0,_i.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,_i._)`{failingKeyword: ${e.ifClause}}`},py={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:my,code(e){const{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,Ju.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const i=Va(n,"then"),s=Va(n,"else");if(!i&&!s)return;const o=t.let("valid",!0),c=t.name("_valid");if(u(),e.reset(),i&&s){const a=t.let("ifClause");e.setParams({ifClause:a}),t.if(c,p("then",a),p("else",a))}else i?t.if(c,p("then")):t.if((0,_i.not)(c),p("else"));e.pass(o,()=>e.error(!0));function u(){const a=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);e.mergeEvaluated(a)}function p(a,l){return()=>{const y=e.subschema({keyword:a},c);t.assign(o,c),e.mergeValidEvaluated(y,o),l?t.assign(l,(0,_i._)`${a}`):e.setParams({ifClause:a})}}}};function Va(e,t){const r=e.schema[t];return r!==void 0&&!(0,Ju.alwaysValidSchema)(e,r)}Ro.default=py;var Co={};Object.defineProperty(Co,"__esModule",{value:!0});const yy=he,Ey={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,yy.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Co.default=Ey;Object.defineProperty(vo,"__esModule",{value:!0});const vy=en,gy=go,$y=tn,_y=$o,Sy=_o,wy=Xu,Ny=So,Iy=Mi,Oy=wo,Ty=No,Dy=Io,Ry=Oo,Cy=To,Py=Do,Ay=Ro,by=Co;function Ly(e=!1){const t=[Dy.default,Ry.default,Cy.default,Py.default,Ay.default,by.default,Ny.default,Iy.default,wy.default,Oy.default,Ty.default];return e?t.push(gy.default,_y.default):t.push(vy.default,$y.default),t.push(Sy.default),t}vo.default=Ly;var Po={},Ao={};Object.defineProperty(Ao,"__esModule",{value:!0});const Ae=oe,Fy={message:({schemaCode:e})=>(0,Ae.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Ae._)`{format: ${e}}`},jy={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:Fy,code(e,t){const{gen:r,data:n,$data:i,schema:s,schemaCode:o,it:c}=e,{opts:u,errSchemaPath:p,schemaEnv:a,self:l}=c;if(!u.validateFormats)return;i?y():d();function y(){const h=r.scopeValue("formats",{ref:l.formats,code:u.code.formats}),m=r.const("fDef",(0,Ae._)`${h}[${o}]`),E=r.let("fType"),f=r.let("format");r.if((0,Ae._)`typeof ${m} == "object" && !(${m} instanceof RegExp)`,()=>r.assign(E,(0,Ae._)`${m}.type || "string"`).assign(f,(0,Ae._)`${m}.validate`),()=>r.assign(E,(0,Ae._)`"string"`).assign(f,m)),e.fail$data((0,Ae.or)($(),_()));function $(){return u.strictSchema===!1?Ae.nil:(0,Ae._)`${o} && !${f}`}function _(){const O=a.$async?(0,Ae._)`(${m}.async ? await ${f}(${n}) : ${f}(${n}))`:(0,Ae._)`${f}(${n})`,q=(0,Ae._)`(typeof ${f} == "function" ? ${O} : ${f}.test(${n}))`;return(0,Ae._)`${f} && ${f} !== true && ${E} === ${t} && !${q}`}}function d(){const h=l.formats[s];if(!h){$();return}if(h===!0)return;const[m,E,f]=_(h);m===t&&e.pass(O());function $(){if(u.strictSchema===!1){l.logger.warn(q());return}throw new Error(q());function q(){return`unknown format "${s}" ignored in schema at path "${p}"`}}function _(q){const R=q instanceof RegExp?(0,Ae.regexpCode)(q):u.code.formats?(0,Ae._)`${u.code.formats}${(0,Ae.getProperty)(s)}`:void 0,C=r.scopeValue("formats",{key:s,ref:q,code:R});return typeof q=="object"&&!(q instanceof RegExp)?[q.type||"string",q.validate,(0,Ae._)`${C}.validate`]:["string",q,C]}function O(){if(typeof h=="object"&&!(h instanceof RegExp)&&h.async){if(!a.$async)throw new Error("async format in sync schema");return(0,Ae._)`await ${f}(${n})`}return typeof E=="function"?(0,Ae._)`${f}(${n})`:(0,Ae._)`${f}.test(${n})`}}}};Ao.default=jy;Object.defineProperty(Po,"__esModule",{value:!0});const My=Ao,ky=[My.default];Po.default=ky;var Jr={};Object.defineProperty(Jr,"__esModule",{value:!0});Jr.contentVocabulary=Jr.metadataVocabulary=void 0;Jr.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Jr.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(ro,"__esModule",{value:!0});const Uy=no,zy=so,xy=vo,Vy=Po,qa=Jr,qy=[Uy.default,zy.default,(0,xy.default)(),Vy.default,qa.metadataVocabulary,qa.contentVocabulary];ro.default=qy;var bo={},Yu={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(Yu);Object.defineProperty(bo,"__esModule",{value:!0});const jr=oe,ws=Yu,Ga=ut,Gy=he,By={message:({params:{discrError:e,tagName:t}})=>e===ws.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,jr._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},Hy={keyword:"discriminator",type:"object",schemaType:"object",error:By,code(e){const{gen:t,data:r,schema:n,parentSchema:i,it:s}=e,{oneOf:o}=i;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");const c=n.propertyName;if(typeof c!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!o)throw new Error("discriminator: requires oneOf keyword");const u=t.let("valid",!1),p=t.const("tag",(0,jr._)`${r}${(0,jr.getProperty)(c)}`);t.if((0,jr._)`typeof ${p} == "string"`,()=>a(),()=>e.error(!1,{discrError:ws.DiscrError.Tag,tag:p,tagName:c})),e.ok(u);function a(){const d=y();t.if(!1);for(const h in d)t.elseIf((0,jr._)`${p} === ${h}`),t.assign(u,l(d[h]));t.else(),e.error(!1,{discrError:ws.DiscrError.Mapping,tag:p,tagName:c}),t.endIf()}function l(d){const h=t.name("valid"),m=e.subschema({keyword:"oneOf",schemaProp:d},h);return e.mergeEvaluated(m,jr.Name),h}function y(){var d;const h={},m=f(i);let E=!0;for(let O=0;O<o.length;O++){let q=o[O];(q==null?void 0:q.$ref)&&!(0,Gy.schemaHasRulesButRef)(q,s.self.RULES)&&(q=Ga.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,q==null?void 0:q.$ref),q instanceof Ga.SchemaEnv&&(q=q.schema));const R=(d=q==null?void 0:q.properties)===null||d===void 0?void 0:d[c];if(typeof R!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);E=E&&(m||f(q)),$(R,O)}if(!E)throw new Error(`discriminator: "${c}" must be required`);return h;function f({required:O}){return Array.isArray(O)&&O.includes(c)}function $(O,q){if(O.const)_(O.const,q);else if(O.enum)for(const R of O.enum)_(R,q);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function _(O,q){if(typeof O!="string"||O in h)throw new Error(`discriminator: "${c}" values must be unique strings`);h[O]=q}}}};bo.default=Hy;const Ky="http://json-schema.org/draft-07/schema#",Wy="http://json-schema.org/draft-07/schema#",Xy="Core schema meta-schema",Zy={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:[]}},Jy=["object","boolean"],Yy={$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:"#"}},Qy={$schema:Ky,$id:Wy,title:Xy,definitions:Zy,type:Jy,properties:Yy,default:!0};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const r=bu,n=ro,i=bo,s=Qy,o=["/properties"],c="http://json-schema.org/draft-07/schema";class u extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(y=>this.addVocabulary(y)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const y=this.opts.$data?this.$dataMetaSchema(s,o):s;this.addMetaSchema(y,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}e.exports=t=u,Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var p=Ai();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return p.KeywordCxt}});var a=oe;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return a._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return a.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return a.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return a.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return a.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return a.CodeGen}})})(Ei,Ei.exports);var Ns={exports:{}},Qu={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(L,G){return{validate:L,compare:G}}e.fullFormats={date:t(s,o),time:t(u,p),"date-time":t(l,y),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:m,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:V,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:f,int32:{type:"number",validate:O},int64:{type:"number",validate:q},float:{type:"number",validate:R},double:{type:"number",validate:R},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,o),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,p),"date-time":t(/^\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,y),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},e.formatNames=Object.keys(e.fullFormats);function r(L){return L%4===0&&(L%100!==0||L%400===0)}const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function s(L){const G=n.exec(L);if(!G)return!1;const j=+G[1],b=+G[2],K=+G[3];return b>=1&&b<=12&&K>=1&&K<=(b===2&&r(j)?29:i[b])}function o(L,G){if(!!(L&&G))return L>G?1:L<G?-1:0}const c=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function u(L,G){const j=c.exec(L);if(!j)return!1;const b=+j[1],K=+j[2],B=+j[3],X=j[5];return(b<=23&&K<=59&&B<=59||b===23&&K===59&&B===60)&&(!G||X!=="")}function p(L,G){if(!(L&&G))return;const j=c.exec(L),b=c.exec(G);if(!!(j&&b))return L=j[1]+j[2]+j[3]+(j[4]||""),G=b[1]+b[2]+b[3]+(b[4]||""),L>G?1:L<G?-1:0}const a=/t|\s/i;function l(L){const G=L.split(a);return G.length===2&&s(G[0])&&u(G[1],!0)}function y(L,G){if(!(L&&G))return;const[j,b]=L.split(a),[K,B]=G.split(a),X=o(j,K);if(X!==void 0)return X||p(b,B)}const d=/\/|:/,h=/^(?:[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 m(L){return d.test(L)&&h.test(L)}const E=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function f(L){return E.lastIndex=0,E.test(L)}const $=-(2**31),_=2**31-1;function O(L){return Number.isInteger(L)&&L<=_&&L>=$}function q(L){return Number.isInteger(L)}function R(){return!0}const C=/[^\\]\\Z/;function V(L){if(C.test(L))return!1;try{return new RegExp(L),!0}catch{return!1}}})(Qu);var ef={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=Ei.exports,r=oe,n=r.operators,i={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},s={message:({keyword:c,schemaCode:u})=>r.str`should be ${i[c].okStr} ${u}`,params:({keyword:c,schemaCode:u})=>r._`{comparison: ${i[c].okStr}, limit: ${u}}`};e.formatLimitDefinition={keyword:Object.keys(i),type:"string",schemaType:"string",$data:!0,error:s,code(c){const{gen:u,data:p,schemaCode:a,keyword:l,it:y}=c,{opts:d,self:h}=y;if(!d.validateFormats)return;const m=new t.KeywordCxt(y,h.RULES.all.format.definition,"format");m.$data?E():f();function E(){const _=u.scopeValue("formats",{ref:h.formats,code:d.code.formats}),O=u.const("fmt",r._`${_}[${m.schemaCode}]`);c.fail$data(r.or(r._`typeof ${O} != "object"`,r._`${O} instanceof RegExp`,r._`typeof ${O}.compare != "function"`,$(O)))}function f(){const _=m.schema,O=h.formats[_];if(!O||O===!0)return;if(typeof O!="object"||O instanceof RegExp||typeof O.compare!="function")throw new Error(`"${l}": format "${_}" does not define "compare" function`);const q=u.scopeValue("formats",{key:_,ref:O,code:d.code.formats?r._`${d.code.formats}${r.getProperty(_)}`:void 0});c.fail$data($(q))}function $(_){return r._`${_}.compare(${p}, ${a}) ${i[l].fail} 0`}},dependencies:["format"]};const o=c=>(c.addKeyword(e.formatLimitDefinition),c);e.default=o})(ef);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=Qu,n=ef,i=oe,s=new i.Name("fullFormats"),o=new i.Name("fastFormats"),c=(p,a={keywords:!0})=>{if(Array.isArray(a))return u(p,a,r.fullFormats,s),p;const[l,y]=a.mode==="fast"?[r.fastFormats,o]:[r.fullFormats,s],d=a.formats||r.formatNames;return u(p,d,l,y),a.keywords&&n.default(p),p};c.get=(p,a="full")=>{const y=(a==="fast"?r.fastFormats:r.fullFormats)[p];if(!y)throw new Error(`Unknown format "${p}"`);return y};function u(p,a,l,y){var d,h;(d=(h=p.opts.code).formats)!==null&&d!==void 0||(h.formats=i._`require("ajv-formats/dist/formats").${y}`);for(const m of a)p.addFormat(m,l[m])}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c})(Ns,Ns.exports);const e0=(e,t,r,n)=>{if(r==="length"||r==="prototype"||r==="arguments"||r==="caller")return;const i=Object.getOwnPropertyDescriptor(e,r),s=Object.getOwnPropertyDescriptor(t,r);!t0(i,s)&&n||Object.defineProperty(e,r,s)},t0=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},r0=(e,t)=>{const r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r)},n0=(e,t)=>`/* Wrapped ${e}*/
15
+ ${t}`,i0=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),s0=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),o0=(e,t,r)=>{const n=r===""?"":`with ${r.trim()}() `,i=n0.bind(null,n,t.toString());Object.defineProperty(i,"name",s0),Object.defineProperty(e,"toString",{...i0,value:i})},a0=(e,t,{ignoreNonConfigurable:r=!1}={})=>{const{name:n}=e;for(const i of Reflect.ownKeys(t))e0(e,t,i,r);return r0(e,t),o0(e,t,n),e};var c0=a0;const u0=c0;var f0=(e,t={})=>{if(typeof e!="function")throw new TypeError(`Expected the first argument to be a function, got \`${typeof e}\``);const{wait:r=0,before:n=!1,after:i=!0}=t;if(!n&&!i)throw new Error("Both `before` and `after` are false, function wouldn't be called.");let s,o;const c=function(...u){const p=this,a=()=>{s=void 0,i&&(o=e.apply(p,u))},l=n&&!s;return clearTimeout(s),s=setTimeout(a,r),l&&(o=e.apply(p,u)),o};return u0(c,e),c.cancel=()=>{s&&(clearTimeout(s),s=void 0)},c},ar={exports:{}};const l0="2.0.0",d0=256,h0=Number.MAX_SAFE_INTEGER||9007199254740991,m0=16;var ki={SEMVER_SPEC_VERSION:l0,MAX_LENGTH:d0,MAX_SAFE_INTEGER:h0,MAX_SAFE_COMPONENT_LENGTH:m0};const p0=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var Ui=p0;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r}=ki,n=Ui;t=e.exports={};const i=t.re=[],s=t.src=[],o=t.t={};let c=0;const u=(p,a,l)=>{const y=c++;n(p,y,a),o[p]=y,s[y]=a,i[y]=new RegExp(a,l?"g":void 0)};u("NUMERICIDENTIFIER","0|[1-9]\\d*"),u("NUMERICIDENTIFIERLOOSE","[0-9]+"),u("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),u("MAINVERSION",`(${s[o.NUMERICIDENTIFIER]})\\.(${s[o.NUMERICIDENTIFIER]})\\.(${s[o.NUMERICIDENTIFIER]})`),u("MAINVERSIONLOOSE",`(${s[o.NUMERICIDENTIFIERLOOSE]})\\.(${s[o.NUMERICIDENTIFIERLOOSE]})\\.(${s[o.NUMERICIDENTIFIERLOOSE]})`),u("PRERELEASEIDENTIFIER",`(?:${s[o.NUMERICIDENTIFIER]}|${s[o.NONNUMERICIDENTIFIER]})`),u("PRERELEASEIDENTIFIERLOOSE",`(?:${s[o.NUMERICIDENTIFIERLOOSE]}|${s[o.NONNUMERICIDENTIFIER]})`),u("PRERELEASE",`(?:-(${s[o.PRERELEASEIDENTIFIER]}(?:\\.${s[o.PRERELEASEIDENTIFIER]})*))`),u("PRERELEASELOOSE",`(?:-?(${s[o.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[o.PRERELEASEIDENTIFIERLOOSE]})*))`),u("BUILDIDENTIFIER","[0-9A-Za-z-]+"),u("BUILD",`(?:\\+(${s[o.BUILDIDENTIFIER]}(?:\\.${s[o.BUILDIDENTIFIER]})*))`),u("FULLPLAIN",`v?${s[o.MAINVERSION]}${s[o.PRERELEASE]}?${s[o.BUILD]}?`),u("FULL",`^${s[o.FULLPLAIN]}$`),u("LOOSEPLAIN",`[v=\\s]*${s[o.MAINVERSIONLOOSE]}${s[o.PRERELEASELOOSE]}?${s[o.BUILD]}?`),u("LOOSE",`^${s[o.LOOSEPLAIN]}$`),u("GTLT","((?:<|>)?=?)"),u("XRANGEIDENTIFIERLOOSE",`${s[o.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),u("XRANGEIDENTIFIER",`${s[o.NUMERICIDENTIFIER]}|x|X|\\*`),u("XRANGEPLAIN",`[v=\\s]*(${s[o.XRANGEIDENTIFIER]})(?:\\.(${s[o.XRANGEIDENTIFIER]})(?:\\.(${s[o.XRANGEIDENTIFIER]})(?:${s[o.PRERELEASE]})?${s[o.BUILD]}?)?)?`),u("XRANGEPLAINLOOSE",`[v=\\s]*(${s[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[o.XRANGEIDENTIFIERLOOSE]})(?:${s[o.PRERELEASELOOSE]})?${s[o.BUILD]}?)?)?`),u("XRANGE",`^${s[o.GTLT]}\\s*${s[o.XRANGEPLAIN]}$`),u("XRANGELOOSE",`^${s[o.GTLT]}\\s*${s[o.XRANGEPLAINLOOSE]}$`),u("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),u("COERCERTL",s[o.COERCE],!0),u("LONETILDE","(?:~>?)"),u("TILDETRIM",`(\\s*)${s[o.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",u("TILDE",`^${s[o.LONETILDE]}${s[o.XRANGEPLAIN]}$`),u("TILDELOOSE",`^${s[o.LONETILDE]}${s[o.XRANGEPLAINLOOSE]}$`),u("LONECARET","(?:\\^)"),u("CARETTRIM",`(\\s*)${s[o.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",u("CARET",`^${s[o.LONECARET]}${s[o.XRANGEPLAIN]}$`),u("CARETLOOSE",`^${s[o.LONECARET]}${s[o.XRANGEPLAINLOOSE]}$`),u("COMPARATORLOOSE",`^${s[o.GTLT]}\\s*(${s[o.LOOSEPLAIN]})$|^$`),u("COMPARATOR",`^${s[o.GTLT]}\\s*(${s[o.FULLPLAIN]})$|^$`),u("COMPARATORTRIM",`(\\s*)${s[o.GTLT]}\\s*(${s[o.LOOSEPLAIN]}|${s[o.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",u("HYPHENRANGE",`^\\s*(${s[o.XRANGEPLAIN]})\\s+-\\s+(${s[o.XRANGEPLAIN]})\\s*$`),u("HYPHENRANGELOOSE",`^\\s*(${s[o.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[o.XRANGEPLAINLOOSE]})\\s*$`),u("STAR","(<|>)?=?\\s*\\*"),u("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),u("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(ar,ar.exports);const y0=["includePrerelease","loose","rtl"],E0=e=>e?typeof e!="object"?{loose:!0}:y0.filter(t=>e[t]).reduce((t,r)=>(t[r]=!0,t),{}):{};var zi=E0;const Ba=/^[0-9]+$/,tf=(e,t)=>{const r=Ba.test(e),n=Ba.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},v0=(e,t)=>tf(t,e);var Is={compareIdentifiers:tf,rcompareIdentifiers:v0};const Qn=Ui,{MAX_LENGTH:Ha,MAX_SAFE_INTEGER:ei}=ki,{re:Ka,t:Wa}=ar.exports,g0=zi,{compareIdentifiers:Lr}=Is;class St{constructor(t,r){if(r=g0(r),t instanceof St){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid Version: ${t}`);if(t.length>Ha)throw new TypeError(`version is longer than ${Ha} characters`);Qn("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const n=t.trim().match(r.loose?Ka[Wa.LOOSE]:Ka[Wa.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>ei||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ei||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ei||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){const s=+i;if(s>=0&&s<ei)return s}return i}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(Qn("SemVer.compare",this.version,this.options,t),!(t instanceof St)){if(typeof t=="string"&&t===this.version)return 0;t=new St(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof St||(t=new St(t,this.options)),Lr(this.major,t.major)||Lr(this.minor,t.minor)||Lr(this.patch,t.patch)}comparePre(t){if(t instanceof St||(t=new St(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{const n=this.prerelease[r],i=t.prerelease[r];if(Qn("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return Lr(n,i)}while(++r)}compareBuild(t){t instanceof St||(t=new St(t,this.options));let r=0;do{const n=this.build[r],i=t.build[r];if(Qn("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return Lr(n,i)}while(++r)}inc(t,r){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r),this.inc("pre",r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r),this.inc("pre",r);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let n=this.prerelease.length;for(;--n>=0;)typeof this.prerelease[n]=="number"&&(this.prerelease[n]++,n=-2);n===-1&&this.prerelease.push(0)}r&&(Lr(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=[r,0]):this.prerelease=[r,0]);break;default:throw new Error(`invalid increment argument: ${t}`)}return this.format(),this.raw=this.version,this}}var st=St;const{MAX_LENGTH:$0}=ki,{re:Xa,t:Za}=ar.exports,Ja=st,_0=zi,S0=(e,t)=>{if(t=_0(t),e instanceof Ja)return e;if(typeof e!="string"||e.length>$0||!(t.loose?Xa[Za.LOOSE]:Xa[Za.FULL]).test(e))return null;try{return new Ja(e,t)}catch{return null}};var rn=S0;const w0=rn,N0=(e,t)=>{const r=w0(e,t);return r?r.version:null};var I0=N0;const O0=rn,T0=(e,t)=>{const r=O0(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};var D0=T0;const Ya=st,R0=(e,t,r,n)=>{typeof r=="string"&&(n=r,r=void 0);try{return new Ya(e instanceof Ya?e.version:e,r).inc(t,n).version}catch{return null}};var C0=R0;const Qa=st,P0=(e,t,r)=>new Qa(e,r).compare(new Qa(t,r));var Rt=P0;const A0=Rt,b0=(e,t,r)=>A0(e,t,r)===0;var Lo=b0;const ec=rn,L0=Lo,F0=(e,t)=>{if(L0(e,t))return null;{const r=ec(e),n=ec(t),i=r.prerelease.length||n.prerelease.length,s=i?"pre":"",o=i?"prerelease":"";for(const c in r)if((c==="major"||c==="minor"||c==="patch")&&r[c]!==n[c])return s+c;return o}};var j0=F0;const M0=st,k0=(e,t)=>new M0(e,t).major;var U0=k0;const z0=st,x0=(e,t)=>new z0(e,t).minor;var V0=x0;const q0=st,G0=(e,t)=>new q0(e,t).patch;var B0=G0;const H0=rn,K0=(e,t)=>{const r=H0(e,t);return r&&r.prerelease.length?r.prerelease:null};var W0=K0;const X0=Rt,Z0=(e,t,r)=>X0(t,e,r);var J0=Z0;const Y0=Rt,Q0=(e,t)=>Y0(e,t,!0);var eE=Q0;const tc=st,tE=(e,t,r)=>{const n=new tc(e,r),i=new tc(t,r);return n.compare(i)||n.compareBuild(i)};var Fo=tE;const rE=Fo,nE=(e,t)=>e.sort((r,n)=>rE(r,n,t));var iE=nE;const sE=Fo,oE=(e,t)=>e.sort((r,n)=>sE(n,r,t));var aE=oE;const cE=Rt,uE=(e,t,r)=>cE(e,t,r)>0;var xi=uE;const fE=Rt,lE=(e,t,r)=>fE(e,t,r)<0;var jo=lE;const dE=Rt,hE=(e,t,r)=>dE(e,t,r)!==0;var rf=hE;const mE=Rt,pE=(e,t,r)=>mE(e,t,r)>=0;var Mo=pE;const yE=Rt,EE=(e,t,r)=>yE(e,t,r)<=0;var ko=EE;const vE=Lo,gE=rf,$E=xi,_E=Mo,SE=jo,wE=ko,NE=(e,t,r,n)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return vE(e,r,n);case"!=":return gE(e,r,n);case">":return $E(e,r,n);case">=":return _E(e,r,n);case"<":return SE(e,r,n);case"<=":return wE(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};var nf=NE;const IE=st,OE=rn,{re:ti,t:ri}=ar.exports,TE=(e,t)=>{if(e instanceof IE)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(ti[ri.COERCE]);else{let n;for(;(n=ti[ri.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||n.index+n[0].length!==r.index+r[0].length)&&(r=n),ti[ri.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;ti[ri.COERCERTL].lastIndex=-1}return r===null?null:OE(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)};var DE=TE,is,rc;function RE(){return rc||(rc=1,is=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),is}var CE=me;me.Node=Ir;me.create=me;function me(e){var t=this;if(t instanceof me||(t=new me),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(i){t.push(i)});else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)t.push(arguments[r]);return t}me.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t};me.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}};me.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}};me.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)AE(this,arguments[e]);return this.length};me.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)bE(this,arguments[e]);return this.length};me.prototype.pop=function(){if(!!this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}};me.prototype.shift=function(){if(!!this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}};me.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;r!==null;n++)e.call(t,r.value,n,this),r=r.next};me.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;r!==null;n--)e.call(t,r.value,n,this),r=r.prev};me.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++)r=r.next;if(t===e&&r!==null)return r.value};me.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++)r=r.prev;if(t===e&&r!==null)return r.value};me.prototype.map=function(e,t){t=t||this;for(var r=new me,n=this.head;n!==null;)r.push(e.call(t,n.value,this)),n=n.next;return r};me.prototype.mapReverse=function(e,t){t=t||this;for(var r=new me,n=this.tail;n!==null;)r.push(e.call(t,n.value,this)),n=n.prev;return r};me.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;n!==null;i++)r=e(r,n.value,i),n=n.next;return r};me.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;n!==null;i--)r=e(r,n.value,i),n=n.prev;return r};me.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;r!==null;t++)e[t]=r.value,r=r.next;return e};me.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;r!==null;t++)e[t]=r.value,r=r.prev;return e};me.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new me;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(;i!==null&&n<t;n++,i=i.next)r.push(i.value);return r};me.prototype.sliceReverse=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new me;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=this.length,i=this.tail;i!==null&&n>t;n--)i=i.prev;for(;i!==null&&n>e;n--,i=i.prev)r.push(i.value);return r};me.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(var s=[],n=0;i&&n<t;n++)s.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var n=0;n<r.length;n++)i=PE(this,i,r[n]);return s};me.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;r!==null;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};function PE(e,t,r){var n=t===e.head?new Ir(r,null,t,e):new Ir(r,t,t.next,e);return n.next===null&&(e.tail=n),n.prev===null&&(e.head=n),e.length++,n}function AE(e,t){e.tail=new Ir(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function bE(e,t){e.head=new Ir(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function Ir(e,t,r,n){if(!(this instanceof Ir))return new Ir(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{RE()(me)}catch{}const LE=CE,vr=Symbol("max"),Gt=Symbol("length"),Fr=Symbol("lengthCalculator"),Sn=Symbol("allowStale"),gr=Symbol("maxAge"),qt=Symbol("dispose"),nc=Symbol("noDisposeOnSet"),Ue=Symbol("lruList"),wt=Symbol("cache"),sf=Symbol("updateAgeOnGet"),ss=()=>1;class FE{constructor(t){if(typeof t=="number"&&(t={max:t}),t||(t={}),t.max&&(typeof t.max!="number"||t.max<0))throw new TypeError("max must be a non-negative number");this[vr]=t.max||1/0;const r=t.length||ss;if(this[Fr]=typeof r!="function"?ss:r,this[Sn]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[gr]=t.maxAge||0,this[qt]=t.dispose,this[nc]=t.noDisposeOnSet||!1,this[sf]=t.updateAgeOnGet||!1,this.reset()}set max(t){if(typeof t!="number"||t<0)throw new TypeError("max must be a non-negative number");this[vr]=t||1/0,dn(this)}get max(){return this[vr]}set allowStale(t){this[Sn]=!!t}get allowStale(){return this[Sn]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[gr]=t,dn(this)}get maxAge(){return this[gr]}set lengthCalculator(t){typeof t!="function"&&(t=ss),t!==this[Fr]&&(this[Fr]=t,this[Gt]=0,this[Ue].forEach(r=>{r.length=this[Fr](r.value,r.key),this[Gt]+=r.length})),dn(this)}get lengthCalculator(){return this[Fr]}get length(){return this[Gt]}get itemCount(){return this[Ue].length}rforEach(t,r){r=r||this;for(let n=this[Ue].tail;n!==null;){const i=n.prev;ic(this,t,n,r),n=i}}forEach(t,r){r=r||this;for(let n=this[Ue].head;n!==null;){const i=n.next;ic(this,t,n,r),n=i}}keys(){return this[Ue].toArray().map(t=>t.key)}values(){return this[Ue].toArray().map(t=>t.value)}reset(){this[qt]&&this[Ue]&&this[Ue].length&&this[Ue].forEach(t=>this[qt](t.key,t.value)),this[wt]=new Map,this[Ue]=new LE,this[Gt]=0}dump(){return this[Ue].map(t=>Si(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[Ue]}set(t,r,n){if(n=n||this[gr],n&&typeof n!="number")throw new TypeError("maxAge must be a number");const i=n?Date.now():0,s=this[Fr](r,t);if(this[wt].has(t)){if(s>this[vr])return Vr(this,this[wt].get(t)),!1;const u=this[wt].get(t).value;return this[qt]&&(this[nc]||this[qt](t,u.value)),u.now=i,u.maxAge=n,u.value=r,this[Gt]+=s-u.length,u.length=s,this.get(t),dn(this),!0}const o=new jE(t,r,s,i,n);return o.length>this[vr]?(this[qt]&&this[qt](t,r),!1):(this[Gt]+=o.length,this[Ue].unshift(o),this[wt].set(t,this[Ue].head),dn(this),!0)}has(t){if(!this[wt].has(t))return!1;const r=this[wt].get(t).value;return!Si(this,r)}get(t){return os(this,t,!0)}peek(t){return os(this,t,!1)}pop(){const t=this[Ue].tail;return t?(Vr(this,t),t.value):null}del(t){Vr(this,this[wt].get(t))}load(t){this.reset();const r=Date.now();for(let n=t.length-1;n>=0;n--){const i=t[n],s=i.e||0;if(s===0)this.set(i.k,i.v);else{const o=s-r;o>0&&this.set(i.k,i.v,o)}}}prune(){this[wt].forEach((t,r)=>os(this,r,!1))}}const os=(e,t,r)=>{const n=e[wt].get(t);if(n){const i=n.value;if(Si(e,i)){if(Vr(e,n),!e[Sn])return}else r&&(e[sf]&&(n.value.now=Date.now()),e[Ue].unshiftNode(n));return i.value}},Si=(e,t)=>{if(!t||!t.maxAge&&!e[gr])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[gr]&&r>e[gr]},dn=e=>{if(e[Gt]>e[vr])for(let t=e[Ue].tail;e[Gt]>e[vr]&&t!==null;){const r=t.prev;Vr(e,t),t=r}},Vr=(e,t)=>{if(t){const r=t.value;e[qt]&&e[qt](r.key,r.value),e[Gt]-=r.length,e[wt].delete(r.key),e[Ue].removeNode(t)}};class jE{constructor(t,r,n,i,s){this.key=t,this.value=r,this.length=n,this.now=i,this.maxAge=s||0}}const ic=(e,t,r,n)=>{let i=r.value;Si(e,i)&&(Vr(e,r),e[Sn]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};var ME=FE,as,sc;function Ct(){if(sc)return as;sc=1;class e{constructor(b,K){if(K=n(K),b instanceof e)return b.loose===!!K.loose&&b.includePrerelease===!!K.includePrerelease?b:new e(b.raw,K);if(b instanceof i)return this.raw=b.value,this.set=[[b]],this.format(),this;if(this.options=K,this.loose=!!K.loose,this.includePrerelease=!!K.includePrerelease,this.raw=b,this.set=b.split("||").map(B=>this.parseRange(B.trim())).filter(B=>B.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${b}`);if(this.set.length>1){const B=this.set[0];if(this.set=this.set.filter(X=>!y(X[0])),this.set.length===0)this.set=[B];else if(this.set.length>1){for(const X of this.set)if(X.length===1&&d(X[0])){this.set=[X];break}}}this.format()}format(){return this.range=this.set.map(b=>b.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(b){b=b.trim();const B=`parseRange:${Object.keys(this.options).join(",")}:${b}`,X=r.get(B);if(X)return X;const Z=this.options.loose,W=Z?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];b=b.replace(W,L(this.options.includePrerelease)),s("hyphen replace",b),b=b.replace(c[u.COMPARATORTRIM],p),s("comparator trim",b),b=b.replace(c[u.TILDETRIM],a),b=b.replace(c[u.CARETTRIM],l),b=b.split(/\s+/).join(" ");let F=b.split(" ").map(M=>m(M,this.options)).join(" ").split(/\s+/).map(M=>V(M,this.options));Z&&(F=F.filter(M=>(s("loose invalid filter",M,this.options),!!M.match(c[u.COMPARATORLOOSE])))),s("range list",F);const z=new Map,T=F.map(M=>new i(M,this.options));for(const M of T){if(y(M))return[M];z.set(M.value,M)}z.size>1&&z.has("")&&z.delete("");const I=[...z.values()];return r.set(B,I),I}intersects(b,K){if(!(b instanceof e))throw new TypeError("a Range is required");return this.set.some(B=>h(B,K)&&b.set.some(X=>h(X,K)&&B.every(Z=>X.every(W=>Z.intersects(W,K)))))}test(b){if(!b)return!1;if(typeof b=="string")try{b=new o(b,this.options)}catch{return!1}for(let K=0;K<this.set.length;K++)if(G(this.set[K],b,this.options))return!0;return!1}}as=e;const t=ME,r=new t({max:1e3}),n=zi,i=Vi(),s=Ui,o=st,{re:c,t:u,comparatorTrimReplace:p,tildeTrimReplace:a,caretTrimReplace:l}=ar.exports,y=j=>j.value==="<0.0.0-0",d=j=>j.value==="",h=(j,b)=>{let K=!0;const B=j.slice();let X=B.pop();for(;K&&B.length;)K=B.every(Z=>X.intersects(Z,b)),X=B.pop();return K},m=(j,b)=>(s("comp",j,b),j=_(j,b),s("caret",j),j=f(j,b),s("tildes",j),j=q(j,b),s("xrange",j),j=C(j,b),s("stars",j),j),E=j=>!j||j.toLowerCase()==="x"||j==="*",f=(j,b)=>j.trim().split(/\s+/).map(K=>$(K,b)).join(" "),$=(j,b)=>{const K=b.loose?c[u.TILDELOOSE]:c[u.TILDE];return j.replace(K,(B,X,Z,W,F)=>{s("tilde",j,B,X,Z,W,F);let z;return E(X)?z="":E(Z)?z=`>=${X}.0.0 <${+X+1}.0.0-0`:E(W)?z=`>=${X}.${Z}.0 <${X}.${+Z+1}.0-0`:F?(s("replaceTilde pr",F),z=`>=${X}.${Z}.${W}-${F} <${X}.${+Z+1}.0-0`):z=`>=${X}.${Z}.${W} <${X}.${+Z+1}.0-0`,s("tilde return",z),z})},_=(j,b)=>j.trim().split(/\s+/).map(K=>O(K,b)).join(" "),O=(j,b)=>{s("caret",j,b);const K=b.loose?c[u.CARETLOOSE]:c[u.CARET],B=b.includePrerelease?"-0":"";return j.replace(K,(X,Z,W,F,z)=>{s("caret",j,X,Z,W,F,z);let T;return E(Z)?T="":E(W)?T=`>=${Z}.0.0${B} <${+Z+1}.0.0-0`:E(F)?Z==="0"?T=`>=${Z}.${W}.0${B} <${Z}.${+W+1}.0-0`:T=`>=${Z}.${W}.0${B} <${+Z+1}.0.0-0`:z?(s("replaceCaret pr",z),Z==="0"?W==="0"?T=`>=${Z}.${W}.${F}-${z} <${Z}.${W}.${+F+1}-0`:T=`>=${Z}.${W}.${F}-${z} <${Z}.${+W+1}.0-0`:T=`>=${Z}.${W}.${F}-${z} <${+Z+1}.0.0-0`):(s("no pr"),Z==="0"?W==="0"?T=`>=${Z}.${W}.${F}${B} <${Z}.${W}.${+F+1}-0`:T=`>=${Z}.${W}.${F}${B} <${Z}.${+W+1}.0-0`:T=`>=${Z}.${W}.${F} <${+Z+1}.0.0-0`),s("caret return",T),T})},q=(j,b)=>(s("replaceXRanges",j,b),j.split(/\s+/).map(K=>R(K,b)).join(" ")),R=(j,b)=>{j=j.trim();const K=b.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return j.replace(K,(B,X,Z,W,F,z)=>{s("xRange",j,B,X,Z,W,F,z);const T=E(Z),I=T||E(W),M=I||E(F),P=M;return X==="="&&P&&(X=""),z=b.includePrerelease?"-0":"",T?X===">"||X==="<"?B="<0.0.0-0":B="*":X&&P?(I&&(W=0),F=0,X===">"?(X=">=",I?(Z=+Z+1,W=0,F=0):(W=+W+1,F=0)):X==="<="&&(X="<",I?Z=+Z+1:W=+W+1),X==="<"&&(z="-0"),B=`${X+Z}.${W}.${F}${z}`):I?B=`>=${Z}.0.0${z} <${+Z+1}.0.0-0`:M&&(B=`>=${Z}.${W}.0${z} <${Z}.${+W+1}.0-0`),s("xRange return",B),B})},C=(j,b)=>(s("replaceStars",j,b),j.trim().replace(c[u.STAR],"")),V=(j,b)=>(s("replaceGTE0",j,b),j.trim().replace(c[b.includePrerelease?u.GTE0PRE:u.GTE0],"")),L=j=>(b,K,B,X,Z,W,F,z,T,I,M,P,v)=>(E(B)?K="":E(X)?K=`>=${B}.0.0${j?"-0":""}`:E(Z)?K=`>=${B}.${X}.0${j?"-0":""}`:W?K=`>=${K}`:K=`>=${K}${j?"-0":""}`,E(T)?z="":E(I)?z=`<${+T+1}.0.0-0`:E(M)?z=`<${T}.${+I+1}.0-0`:P?z=`<=${T}.${I}.${M}-${P}`:j?z=`<${T}.${I}.${+M+1}-0`:z=`<=${z}`,`${K} ${z}`.trim()),G=(j,b,K)=>{for(let B=0;B<j.length;B++)if(!j[B].test(b))return!1;if(b.prerelease.length&&!K.includePrerelease){for(let B=0;B<j.length;B++)if(s(j[B].semver),j[B].semver!==i.ANY&&j[B].semver.prerelease.length>0){const X=j[B].semver;if(X.major===b.major&&X.minor===b.minor&&X.patch===b.patch)return!0}return!1}return!0};return as}var cs,oc;function Vi(){if(oc)return cs;oc=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(a,l){if(l=r(l),a instanceof t){if(a.loose===!!l.loose)return a;a=a.value}o("comparator",a,l),this.options=l,this.loose=!!l.loose,this.parse(a),this.semver===e?this.value="":this.value=this.operator+this.semver.version,o("comp",this)}parse(a){const l=this.options.loose?n[i.COMPARATORLOOSE]:n[i.COMPARATOR],y=a.match(l);if(!y)throw new TypeError(`Invalid comparator: ${a}`);this.operator=y[1]!==void 0?y[1]:"",this.operator==="="&&(this.operator=""),y[2]?this.semver=new c(y[2],this.options.loose):this.semver=e}toString(){return this.value}test(a){if(o("Comparator.test",a,this.options.loose),this.semver===e||a===e)return!0;if(typeof a=="string")try{a=new c(a,this.options)}catch{return!1}return s(a,this.operator,this.semver,this.options)}intersects(a,l){if(!(a instanceof t))throw new TypeError("a Comparator is required");if((!l||typeof l!="object")&&(l={loose:!!l,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new u(a.value,l).test(this.value);if(a.operator==="")return a.value===""?!0:new u(this.value,l).test(a.semver);const y=(this.operator===">="||this.operator===">")&&(a.operator===">="||a.operator===">"),d=(this.operator==="<="||this.operator==="<")&&(a.operator==="<="||a.operator==="<"),h=this.semver.version===a.semver.version,m=(this.operator===">="||this.operator==="<=")&&(a.operator===">="||a.operator==="<="),E=s(this.semver,"<",a.semver,l)&&(this.operator===">="||this.operator===">")&&(a.operator==="<="||a.operator==="<"),f=s(this.semver,">",a.semver,l)&&(this.operator==="<="||this.operator==="<")&&(a.operator===">="||a.operator===">");return y||d||h&&m||E||f}}cs=t;const r=zi,{re:n,t:i}=ar.exports,s=nf,o=Ui,c=st,u=Ct();return cs}const kE=Ct(),UE=(e,t,r)=>{try{t=new kE(t,r)}catch{return!1}return t.test(e)};var qi=UE;const zE=Ct(),xE=(e,t)=>new zE(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));var VE=xE;const qE=st,GE=Ct(),BE=(e,t,r)=>{let n=null,i=null,s=null;try{s=new GE(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===-1)&&(n=o,i=new qE(n,r))}),n};var HE=BE;const KE=st,WE=Ct(),XE=(e,t,r)=>{let n=null,i=null,s=null;try{s=new WE(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===1)&&(n=o,i=new KE(n,r))}),n};var ZE=XE;const us=st,JE=Ct(),ac=xi,YE=(e,t)=>{e=new JE(e,t);let r=new us("0.0.0");if(e.test(r)||(r=new us("0.0.0-0"),e.test(r)))return r;r=null;for(let n=0;n<e.set.length;++n){const i=e.set[n];let s=null;i.forEach(o=>{const c=new us(o.semver.version);switch(o.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!s||ac(c,s))&&(s=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!r||ac(r,s))&&(r=s)}return r&&e.test(r)?r:null};var QE=YE;const ev=Ct(),tv=(e,t)=>{try{return new ev(e,t).range||"*"}catch{return null}};var rv=tv;const nv=st,of=Vi(),{ANY:iv}=of,sv=Ct(),ov=qi,cc=xi,uc=jo,av=ko,cv=Mo,uv=(e,t,r,n)=>{e=new nv(e,n),t=new sv(t,n);let i,s,o,c,u;switch(r){case">":i=cc,s=av,o=uc,c=">",u=">=";break;case"<":i=uc,s=cv,o=cc,c="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ov(e,t,n))return!1;for(let p=0;p<t.set.length;++p){const a=t.set[p];let l=null,y=null;if(a.forEach(d=>{d.semver===iv&&(d=new of(">=0.0.0")),l=l||d,y=y||d,i(d.semver,l.semver,n)?l=d:o(d.semver,y.semver,n)&&(y=d)}),l.operator===c||l.operator===u||(!y.operator||y.operator===c)&&s(e,y.semver))return!1;if(y.operator===u&&o(e,y.semver))return!1}return!0};var Uo=uv;const fv=Uo,lv=(e,t,r)=>fv(e,t,">",r);var dv=lv;const hv=Uo,mv=(e,t,r)=>hv(e,t,"<",r);var pv=mv;const fc=Ct(),yv=(e,t,r)=>(e=new fc(e,r),t=new fc(t,r),e.intersects(t));var Ev=yv;const vv=qi,gv=Rt;var $v=(e,t,r)=>{const n=[];let i=null,s=null;const o=e.sort((a,l)=>gv(a,l,r));for(const a of o)vv(a,t,r)?(s=a,i||(i=a)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);const c=[];for(const[a,l]of n)a===l?c.push(a):!l&&a===o[0]?c.push("*"):l?a===o[0]?c.push(`<=${l}`):c.push(`${a} - ${l}`):c.push(`>=${a}`);const u=c.join(" || "),p=typeof t.raw=="string"?t.raw:String(t);return u.length<p.length?u:t};const lc=Ct(),fi=Vi(),{ANY:fs}=fi,hn=qi,zo=Rt,_v=(e,t,r={})=>{if(e===t)return!0;e=new lc(e,r),t=new lc(t,r);let n=!1;e:for(const i of e.set){for(const s of t.set){const o=Sv(i,s,r);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},Sv=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===fs){if(t.length===1&&t[0].semver===fs)return!0;r.includePrerelease?e=[new fi(">=0.0.0-0")]:e=[new fi(">=0.0.0")]}if(t.length===1&&t[0].semver===fs){if(r.includePrerelease)return!0;t=[new fi(">=0.0.0")]}const n=new Set;let i,s;for(const d of e)d.operator===">"||d.operator===">="?i=dc(i,d,r):d.operator==="<"||d.operator==="<="?s=hc(s,d,r):n.add(d.semver);if(n.size>1)return null;let o;if(i&&s){if(o=zo(i.semver,s.semver,r),o>0)return null;if(o===0&&(i.operator!==">="||s.operator!=="<="))return null}for(const d of n){if(i&&!hn(d,String(i),r)||s&&!hn(d,String(s),r))return null;for(const h of t)if(!hn(d,String(h),r))return!1;return!0}let c,u,p,a,l=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,y=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;l&&l.prerelease.length===1&&s.operator==="<"&&l.prerelease[0]===0&&(l=!1);for(const d of t){if(a=a||d.operator===">"||d.operator===">=",p=p||d.operator==="<"||d.operator==="<=",i){if(y&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===y.major&&d.semver.minor===y.minor&&d.semver.patch===y.patch&&(y=!1),d.operator===">"||d.operator===">="){if(c=dc(i,d,r),c===d&&c!==i)return!1}else if(i.operator===">="&&!hn(i.semver,String(d),r))return!1}if(s){if(l&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===l.major&&d.semver.minor===l.minor&&d.semver.patch===l.patch&&(l=!1),d.operator==="<"||d.operator==="<="){if(u=hc(s,d,r),u===d&&u!==s)return!1}else if(s.operator==="<="&&!hn(s.semver,String(d),r))return!1}if(!d.operator&&(s||i)&&o!==0)return!1}return!(i&&p&&!s&&o!==0||s&&a&&!i&&o!==0||y||l)},dc=(e,t,r)=>{if(!e)return t;const n=zo(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},hc=(e,t,r)=>{if(!e)return t;const n=zo(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};var wv=_v;const ls=ar.exports;var Nv={re:ls.re,src:ls.src,tokens:ls.t,SEMVER_SPEC_VERSION:ki.SEMVER_SPEC_VERSION,SemVer:st,compareIdentifiers:Is.compareIdentifiers,rcompareIdentifiers:Is.rcompareIdentifiers,parse:rn,valid:I0,clean:D0,inc:C0,diff:j0,major:U0,minor:V0,patch:B0,prerelease:W0,compare:Rt,rcompare:J0,compareLoose:eE,compareBuild:Fo,sort:iE,rsort:aE,gt:xi,lt:jo,eq:Lo,neq:rf,gte:Mo,lte:ko,cmp:nf,coerce:DE,Comparator:Vi(),Range:Ct(),satisfies:qi,toComparators:VE,maxSatisfying:HE,minSatisfying:ZE,minVersion:QE,validRange:rv,outside:Uo,gtr:dv,ltr:pv,intersects:Ev,simplifyRange:$v,subset:wv},Gi={exports:{}},xo={exports:{}};const af=(e,t)=>{for(const r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};xo.exports=af;xo.exports.default=af;const Iv=xo.exports,wi=new WeakMap,cf=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,n=0;const i=e.displayName||e.name||"<anonymous>",s=function(...o){if(wi.set(s,++n),n===1)r=e.apply(this,o),e=null;else if(t.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return Iv(s,e),wi.set(s,n),s};Gi.exports=cf;Gi.exports.default=cf;Gi.exports.callCount=e=>{if(!wi.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return wi.get(e)};(function(e,t){var r=tr&&tr.__classPrivateFieldSet||function(W,F,z,T,I){if(T==="m")throw new TypeError("Private method is not writable");if(T==="a"&&!I)throw new TypeError("Private accessor was defined without a setter");if(typeof F=="function"?W!==F||!I:!F.has(W))throw new TypeError("Cannot write private member to an object whose class did not declare it");return T==="a"?I.call(W,z):I?I.value=z:F.set(W,z),z},n=tr&&tr.__classPrivateFieldGet||function(W,F,z,T){if(z==="a"&&!T)throw new TypeError("Private accessor was defined without a getter");if(typeof F=="function"?W!==F||!T:!F.has(W))throw new TypeError("Cannot read private member from an object whose class did not declare it");return z==="m"?T:z==="a"?T.call(W):T?T.value:F.get(W)},i,s,o,c,u,p;Object.defineProperty(t,"__esModule",{value:!0});const a=Oi.default,l=Yr.default,y=Re.default,d=Ic.default,h=Ds.default,m=Mf.default,E=gh,f=ks.exports,$=Gs.exports,_=jt,O=Ei.exports,q=Ns.exports,R=f0,C=Nv,V=Gi.exports,L="aes-256-cbc",G=()=>Object.create(null),j=W=>W!=null;let b="";try{delete require.cache[__filename],b=y.dirname((s=(i=e.parent)===null||i===void 0?void 0:i.filename)!==null&&s!==void 0?s:".")}catch{}const K=(W,F)=>{const z=new Set(["undefined","symbol","function"]),T=typeof F;if(z.has(T))throw new TypeError(`Setting a value of type \`${T}\` for key \`${W}\` is not allowed as it's not supported by JSON`)},B="__internal__",X=`${B}.migrations.version`;class Z{constructor(F={}){var z;o.set(this,void 0),c.set(this,void 0),u.set(this,void 0),p.set(this,{}),this._deserialize=S=>JSON.parse(S),this._serialize=S=>JSON.stringify(S,void 0," ");const T={configName:"config",fileExtension:"json",projectSuffix:"nodejs",clearInvalidConfig:!1,accessPropertiesByDotNotation:!0,configFileMode:438,...F},I=V(()=>{const S=f.sync({cwd:b}),x=S&&JSON.parse(l.readFileSync(S,"utf8"));return x!=null?x:{}});if(!T.cwd){if(T.projectName||(T.projectName=I().name),!T.projectName)throw new Error("Project name could not be inferred. Please specify the `projectName` option.");T.cwd=$(T.projectName,{suffix:T.projectSuffix}).config}if(r(this,u,T,"f"),T.schema){if(typeof T.schema!="object")throw new TypeError("The `schema` option must be an object.");const S=new O.default({allErrors:!0,useDefaults:!0});(0,q.default)(S);const x={type:"object",properties:T.schema};r(this,o,S.compile(x),"f");for(const[Y,Q]of Object.entries(T.schema))Q!=null&&Q.default&&(n(this,p,"f")[Y]=Q.default)}T.defaults&&r(this,p,{...n(this,p,"f"),...T.defaults},"f"),T.serialize&&(this._serialize=T.serialize),T.deserialize&&(this._deserialize=T.deserialize),this.events=new m.EventEmitter,r(this,c,T.encryptionKey,"f");const M=T.fileExtension?`.${T.fileExtension}`:"";this.path=y.resolve(T.cwd,`${(z=T.configName)!==null&&z!==void 0?z:"config"}${M}`);const P=this.store,v=Object.assign(G(),T.defaults,P);this._validate(v);try{h.deepEqual(P,v)}catch{this.store=v}if(T.watch&&this._watch(),T.migrations){if(T.projectVersion||(T.projectVersion=I().version),!T.projectVersion)throw new Error("Project version could not be inferred. Please specify the `projectVersion` option.");this._migrate(T.migrations,T.projectVersion,T.beforeEachMigration)}}get(F,z){if(n(this,u,"f").accessPropertiesByDotNotation)return this._get(F,z);const{store:T}=this;return F in T?T[F]:z}set(F,z){if(typeof F!="string"&&typeof F!="object")throw new TypeError(`Expected \`key\` to be of type \`string\` or \`object\`, got ${typeof F}`);if(typeof F!="object"&&z===void 0)throw new TypeError("Use `delete()` to clear values");if(this._containsReservedKey(F))throw new TypeError(`Please don't use the ${B} key, as it's used to manage this module internal operations.`);const{store:T}=this,I=(M,P)=>{K(M,P),n(this,u,"f").accessPropertiesByDotNotation?E.set(T,M,P):T[M]=P};if(typeof F=="object"){const M=F;for(const[P,v]of Object.entries(M))I(P,v)}else I(F,z);this.store=T}has(F){return n(this,u,"f").accessPropertiesByDotNotation?E.has(this.store,F):F in this.store}reset(...F){for(const z of F)j(n(this,p,"f")[z])&&this.set(z,n(this,p,"f")[z])}delete(F){const{store:z}=this;n(this,u,"f").accessPropertiesByDotNotation?E.delete(z,F):delete z[F],this.store=z}clear(){this.store=G();for(const F of Object.keys(n(this,p,"f")))this.reset(F)}onDidChange(F,z){if(typeof F!="string")throw new TypeError(`Expected \`key\` to be of type \`string\`, got ${typeof F}`);if(typeof z!="function")throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof z}`);return this._handleChange(()=>this.get(F),z)}onDidAnyChange(F){if(typeof F!="function")throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof F}`);return this._handleChange(()=>this.store,F)}get size(){return Object.keys(this.store).length}get store(){try{const F=l.readFileSync(this.path,n(this,c,"f")?null:"utf8"),z=this._encryptData(F),T=this._deserialize(z);return this._validate(T),Object.assign(G(),T)}catch(F){if((F==null?void 0:F.code)==="ENOENT")return this._ensureDirectory(),G();if(n(this,u,"f").clearInvalidConfig&&F.name==="SyntaxError")return G();throw F}}set store(F){this._ensureDirectory(),this._validate(F),this._write(F),this.events.emit("change")}*[(o=new WeakMap,c=new WeakMap,u=new WeakMap,p=new WeakMap,Symbol.iterator)](){for(const[F,z]of Object.entries(this.store))yield[F,z]}_encryptData(F){if(!n(this,c,"f"))return F.toString();try{if(n(this,c,"f"))try{if(F.slice(16,17).toString()===":"){const z=F.slice(0,16),T=d.pbkdf2Sync(n(this,c,"f"),z.toString(),1e4,32,"sha512"),I=d.createDecipheriv(L,T,z);F=Buffer.concat([I.update(Buffer.from(F.slice(17))),I.final()]).toString("utf8")}else{const z=d.createDecipher(L,n(this,c,"f"));F=Buffer.concat([z.update(Buffer.from(F)),z.final()]).toString("utf8")}}catch{}}catch{}return F.toString()}_handleChange(F,z){let T=F();const I=()=>{const M=T,P=F();(0,a.isDeepStrictEqual)(P,M)||(T=P,z.call(this,P,M))};return this.events.on("change",I),()=>this.events.removeListener("change",I)}_validate(F){if(!n(this,o,"f")||n(this,o,"f").call(this,F)||!n(this,o,"f").errors)return;const T=n(this,o,"f").errors.map(({instancePath:I,message:M=""})=>`\`${I.slice(1)}\` ${M}`);throw new Error("Config schema violation: "+T.join("; "))}_ensureDirectory(){l.mkdirSync(y.dirname(this.path),{recursive:!0})}_write(F){let z=this._serialize(F);if(n(this,c,"f")){const T=d.randomBytes(16),I=d.pbkdf2Sync(n(this,c,"f"),T.toString(),1e4,32,"sha512"),M=d.createCipheriv(L,I,T);z=Buffer.concat([T,Buffer.from(":"),M.update(Buffer.from(z)),M.final()])}if(process.env.SNAP)l.writeFileSync(this.path,z,{mode:n(this,u,"f").configFileMode});else try{_.writeFileSync(this.path,z,{mode:n(this,u,"f").configFileMode})}catch(T){if((T==null?void 0:T.code)==="EXDEV"){l.writeFileSync(this.path,z,{mode:n(this,u,"f").configFileMode});return}throw T}}_watch(){this._ensureDirectory(),l.existsSync(this.path)||this._write(G()),process.platform==="win32"?l.watch(this.path,{persistent:!1},R(()=>{this.events.emit("change")},{wait:100})):l.watchFile(this.path,{persistent:!1},R(()=>{this.events.emit("change")},{wait:5e3}))}_migrate(F,z,T){let I=this._get(X,"0.0.0");const M=Object.keys(F).filter(v=>this._shouldPerformMigration(v,I,z));let P={...this.store};for(const v of M)try{T&&T(this,{fromVersion:I,toVersion:v,finalVersion:z,versions:M});const S=F[v];S(this),this._set(X,v),I=v,P={...this.store}}catch(S){throw this.store=P,new Error(`Something went wrong during the migration! Changes applied to the store until this failed migration will be restored. ${S}`)}(this._isVersionInRangeFormat(I)||!C.eq(I,z))&&this._set(X,z)}_containsReservedKey(F){return typeof F=="object"&&Object.keys(F)[0]===B?!0:typeof F!="string"?!1:n(this,u,"f").accessPropertiesByDotNotation?!!F.startsWith(`${B}.`):!1}_isVersionInRangeFormat(F){return C.clean(F)===null}_shouldPerformMigration(F,z,T){return this._isVersionInRangeFormat(F)?z!=="0.0.0"&&C.satisfies(z,F)?!1:C.satisfies(T,F):!(C.lte(F,z)||C.gt(F,T))}_get(F,z){return E.get(this.store,F,z)}_set(F,z){const{store:T}=this;E.set(T,F,z),this.store=T}}t.default=Z,e.exports=Z,e.exports.default=Z})(ys,ys.exports);const mc=Re.default,{app:li,ipcMain:Os,ipcRenderer:pc,shell:Ov}=Lf.default,Tv=ys.exports;let yc=!1;const Ec=()=>{if(!Os||!li)throw new Error("Electron Store: You need to call `.initRenderer()` from the main process.");const e={defaultCwd:li.getPath("userData"),appVersion:li.getVersion()};return yc||(Os.on("electron-store-get-data",t=>{t.returnValue=e}),yc=!0),e};class Dv extends Tv{constructor(t){let r,n;if(pc){const i=pc.sendSync("electron-store-get-data");if(!i)throw new Error("Electron Store: You need to call `.initRenderer()` from the main process.");({defaultCwd:r,appVersion:n}=i)}else Os&&li&&({defaultCwd:r,appVersion:n}=Ec());t={name:"config",...t},t.projectVersion||(t.projectVersion=n),t.cwd?t.cwd=mc.isAbsolute(t.cwd)?t.cwd:mc.join(r,t.cwd):t.cwd=r,t.configName=t.name,delete t.name,super(t)}static initRenderer(){Ec()}openInEditor(){Ov.openPath(this.path)}}var vc=Dv,nn={exports:{}},Vo={},Rv=Vo.require=function(){if(typeof process=="object"&&process.versions&&process.versions.electron)try{const e=Rv("original-fs");if(Object.keys(e).length>0)return e}catch{}return Yr.default},uf={LOCHDR:30,LOCSIG:67324752,LOCVER:4,LOCFLG:6,LOCHOW:8,LOCTIM:10,LOCCRC:14,LOCSIZ:18,LOCLEN:22,LOCNAM:26,LOCEXT:28,EXTSIG:134695760,EXTHDR:16,EXTCRC:4,EXTSIZ:8,EXTLEN:12,CENHDR:46,CENSIG:33639248,CENVEM:4,CENVER:6,CENFLG:8,CENHOW:10,CENTIM:12,CENCRC:16,CENSIZ:20,CENLEN:24,CENNAM:28,CENEXT:30,CENCOM:32,CENDSK:34,CENATT:36,CENATX:38,CENOFF:42,ENDHDR:22,ENDSIG:101010256,ENDSUB:8,ENDTOT:10,ENDSIZ:12,ENDOFF:16,ENDCOM:20,END64HDR:20,END64SIG:117853008,END64START:4,END64OFF:8,END64NUMDISKS:16,ZIP64SIG:101075792,ZIP64HDR:56,ZIP64LEAD:12,ZIP64SIZE:4,ZIP64VEM:12,ZIP64VER:14,ZIP64DSK:16,ZIP64DSKDIR:20,ZIP64SUB:24,ZIP64TOT:32,ZIP64SIZB:40,ZIP64OFF:48,ZIP64EXTRA:56,STORED:0,SHRUNK:1,REDUCED1:2,REDUCED2:3,REDUCED3:4,REDUCED4:5,IMPLODED:6,DEFLATED:8,ENHANCED_DEFLATED:9,PKWARE:10,BZIP2:12,LZMA:14,IBM_TERSE:18,IBM_LZ77:19,AES_ENCRYPT:99,FLG_ENC:1,FLG_COMP1:2,FLG_COMP2:4,FLG_DESC:8,FLG_ENH:16,FLG_PATCH:32,FLG_STR:64,FLG_EFS:2048,FLG_MSK:4096,FILE:2,BUFFER:1,NONE:0,EF_ID:0,EF_SIZE:2,ID_ZIP64:1,ID_AVINFO:7,ID_PFS:8,ID_OS2:9,ID_NTFS:10,ID_OPENVMS:12,ID_UNIX:13,ID_FORK:14,ID_PATCH:15,ID_X509_PKCS7:20,ID_X509_CERTID_F:21,ID_X509_CERTID_C:22,ID_STRONGENC:23,ID_RECORD_MGT:24,ID_X509_PKCS7_RL:25,ID_IBM1:101,ID_IBM2:102,ID_POSZIP:18064,EF_ZIP64_OR_32:4294967295,EF_ZIP64_OR_16:65535,EF_ZIP64_SUNCOMP:0,EF_ZIP64_SCOMP:8,EF_ZIP64_RHO:16,EF_ZIP64_DSN:24};const Cv=Vo.require(),tt=Re.default,gc=uf,Pv=typeof process=="object"&&process.platform==="win32",$c=e=>e&&typeof e=="object",qo=new Uint32Array(256).map((e,t)=>{for(let r=0;r<8;r++)(t&1)!==0?t=3988292384^t>>>1:t>>>=1;return t>>>0});function We(e){this.sep=tt.sep,this.fs=Cv,$c(e)&&$c(e.fs)&&typeof e.fs.statSync=="function"&&(this.fs=e.fs)}var Av=We;We.prototype.makeDir=function(e){const t=this;function r(n){let i=n.split(t.sep)[0];n.split(t.sep).forEach(function(s){if(!(!s||s.substr(-1,1)===":")){i+=t.sep+s;var o;try{o=t.fs.statSync(i)}catch{t.fs.mkdirSync(i)}if(o&&o.isFile())throw Errors.FILE_IN_THE_WAY.replace("%s",i)}})}r(e)};We.prototype.writeFileTo=function(e,t,r,n){const i=this;if(i.fs.existsSync(e)){if(!r)return!1;var s=i.fs.statSync(e);if(s.isDirectory())return!1}var o=tt.dirname(e);i.fs.existsSync(o)||i.makeDir(o);var c;try{c=i.fs.openSync(e,"w",438)}catch{i.fs.chmodSync(e,438),c=i.fs.openSync(e,"w",438)}if(c)try{i.fs.writeSync(c,t,0,t.length,0)}finally{i.fs.closeSync(c)}return i.fs.chmodSync(e,n||438),!0};We.prototype.writeFileToAsync=function(e,t,r,n,i){typeof n=="function"&&(i=n,n=void 0);const s=this;s.fs.exists(e,function(o){if(o&&!r)return i(!1);s.fs.stat(e,function(c,u){if(o&&u.isDirectory())return i(!1);var p=tt.dirname(e);s.fs.exists(p,function(a){a||s.makeDir(p),s.fs.open(e,"w",438,function(l,y){l?s.fs.chmod(e,438,function(){s.fs.open(e,"w",438,function(d,h){s.fs.write(h,t,0,t.length,0,function(){s.fs.close(h,function(){s.fs.chmod(e,n||438,function(){i(!0)})})})})}):y?s.fs.write(y,t,0,t.length,0,function(){s.fs.close(y,function(){s.fs.chmod(e,n||438,function(){i(!0)})})}):s.fs.chmod(e,n||438,function(){i(!0)})})})})})};We.prototype.findFiles=function(e){const t=this;function r(n,i,s){typeof i=="boolean"&&(s=i,i=void 0);let o=[];return t.fs.readdirSync(n).forEach(function(c){var u=tt.join(n,c);t.fs.statSync(u).isDirectory()&&s&&(o=o.concat(r(u,i,s))),(!i||i.test(u))&&o.push(tt.normalize(u)+(t.fs.statSync(u).isDirectory()?t.sep:""))}),o}return r(e,void 0,!0)};We.prototype.getAttributes=function(){};We.prototype.setAttributes=function(){};We.crc32update=function(e,t){return qo[(e^t)&255]^e>>>8};We.crc32=function(e){typeof e=="string"&&(e=Buffer.from(e,"utf8")),qo.length||genCRCTable();let t=e.length,r=-1;for(let n=0;n<t;)r=We.crc32update(r,e[n++]);return~r>>>0};We.methodToString=function(e){switch(e){case gc.STORED:return"STORED ("+e+")";case gc.DEFLATED:return"DEFLATED ("+e+")";default:return"UNSUPPORTED ("+e+")"}};We.canonical=function(e){if(!e)return"";var t=tt.posix.normalize("/"+e.split("\\").join("/"));return tt.join(".",t)};We.sanitize=function(e,t){e=tt.resolve(tt.normalize(e));for(var r=t.split("/"),n=0,i=r.length;n<i;n++){var s=tt.normalize(tt.join(e,r.slice(n,i).join(tt.sep)));if(s.indexOf(e)===0)return s}return tt.normalize(tt.join(e,tt.basename(t)))};We.toBuffer=function(t){return Buffer.isBuffer(t)?t:t instanceof Uint8Array?Buffer.from(t):typeof t=="string"?Buffer.from(t,"utf8"):Buffer.alloc(0)};We.readBigUInt64LE=function(e,t){var r=Buffer.from(e.slice(t,t+8));return r.swap64(),parseInt(`0x${r.toString("hex")}`)};We.isWin=Pv;We.crcTable=qo;var bv={INVALID_LOC:"Invalid LOC header (bad signature)",INVALID_CEN:"Invalid CEN header (bad signature)",INVALID_END:"Invalid END header (bad signature)",NO_DATA:"Nothing to decompress",BAD_CRC:"CRC32 checksum failed",FILE_IN_THE_WAY:"There is a file in the way: %s",UNKNOWN_METHOD:"Invalid/unsupported compression method",AVAIL_DATA:"inflate::Available inflate data did not terminate",INVALID_DISTANCE:"inflate::Invalid literal/length or distance code in fixed or dynamic block",TO_MANY_CODES:"inflate::Dynamic block code description: too many length or distance codes",INVALID_REPEAT_LEN:"inflate::Dynamic block code description: repeat more than specified lengths",INVALID_REPEAT_FIRST:"inflate::Dynamic block code description: repeat lengths with no first length",INCOMPLETE_CODES:"inflate::Dynamic block code description: code lengths codes incomplete",INVALID_DYN_DISTANCE:"inflate::Dynamic block code description: invalid distance code lengths",INVALID_CODES_LEN:"inflate::Dynamic block code description: invalid literal/length code lengths",INVALID_STORE_BLOCK:"inflate::Stored block length did not match one's complement",INVALID_BLOCK_TYPE:"inflate::Invalid block type (type == 3)",CANT_EXTRACT_FILE:"Could not extract the file",CANT_OVERRIDE:"Target file already exists",NO_ZIP:"No zip file was loaded",NO_ENTRY:"Entry doesn't exist",DIRECTORY_CONTENT_ERROR:"A directory cannot have content",FILE_NOT_FOUND:"File not found: %s",NOT_IMPLEMENTED:"Not implemented",INVALID_FILENAME:"Invalid filename",INVALID_FORMAT:"Invalid or unsupported zip format. No END header found"};const Ni=Vo.require(),ff=Re.default;Ni.existsSync=Ni.existsSync||ff.existsSync;var Lv=function(e){var t=e||"",r=i(),n=null;function i(){return{directory:!1,readonly:!1,hidden:!1,executable:!1,mtime:0,atime:0}}return t&&Ni.existsSync(t)?(n=Ni.statSync(t),r.directory=n.isDirectory(),r.mtime=n.mtime,r.atime=n.atime,r.executable=(73&n.mode)!==0,r.readonly=(128&n.mode)===0,r.hidden=ff.basename(t)[0]==="."):console.warn("Invalid path: "+t),{get directory(){return r.directory},get readOnly(){return r.readonly},get hidden(){return r.hidden},get mtime(){return r.mtime},get atime(){return r.atime},get executable(){return r.executable},decodeAttributes:function(){},encodeAttributes:function(){},toJSON:function(){return{path:t,isDirectory:r.directory,isReadOnly:r.readonly,isHidden:r.hidden,isExecutable:r.executable,mTime:r.mtime,aTime:r.atime}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}};(function(e){e.exports=Av,e.exports.Constants=uf,e.exports.Errors=bv,e.exports.FileAttr=Lv})(nn);var Bi={},pn=nn.exports,ee=pn.Constants,Fv=function(){var e=20,t=10,r=0,n=0,i=0,s=0,o=0,c=0,u=0,p=0,a=0,l=0,y=0,d=0,h=0;e|=pn.isWin?2560:768,r|=ee.FLG_EFS;var m={};function E(f){f=new Date(f),i=(f.getFullYear()-1980&127)<<25|f.getMonth()+1<<21|f.getDate()<<16|f.getHours()<<11|f.getMinutes()<<5|f.getSeconds()>>1}return E(+new Date),{get made(){return e},set made(f){e=f},get version(){return t},set version(f){t=f},get flags(){return r},set flags(f){r=f},get method(){return n},set method(f){switch(f){case ee.STORED:this.version=10;case ee.DEFLATED:default:this.version=20}n=f},get time(){return new Date((i>>25&127)+1980,(i>>21&15)-1,i>>16&31,i>>11&31,i>>5&63,(i&31)<<1)},set time(f){E(f)},get crc(){return s},set crc(f){s=Math.max(0,f)>>>0},get compressedSize(){return o},set compressedSize(f){o=Math.max(0,f)>>>0},get size(){return c},set size(f){c=Math.max(0,f)>>>0},get fileNameLength(){return u},set fileNameLength(f){u=f},get extraLength(){return p},set extraLength(f){p=f},get commentLength(){return a},set commentLength(f){a=f},get diskNumStart(){return l},set diskNumStart(f){l=Math.max(0,f)>>>0},get inAttr(){return y},set inAttr(f){y=Math.max(0,f)>>>0},get attr(){return d},set attr(f){d=Math.max(0,f)>>>0},get fileAttr(){return d?(d>>>0|0)>>16&4095:0},get offset(){return h},set offset(f){h=Math.max(0,f)>>>0},get encripted(){return(r&1)===1},get entryHeaderSize(){return ee.CENHDR+u+p+a},get realDataOffset(){return h+ee.LOCHDR+m.fnameLen+m.extraLen},get dataHeader(){return m},loadDataHeaderFromBinary:function(f){var $=f.slice(h,h+ee.LOCHDR);if($.readUInt32LE(0)!==ee.LOCSIG)throw new Error(pn.Errors.INVALID_LOC);m={version:$.readUInt16LE(ee.LOCVER),flags:$.readUInt16LE(ee.LOCFLG),method:$.readUInt16LE(ee.LOCHOW),time:$.readUInt32LE(ee.LOCTIM),crc:$.readUInt32LE(ee.LOCCRC),compressedSize:$.readUInt32LE(ee.LOCSIZ),size:$.readUInt32LE(ee.LOCLEN),fnameLen:$.readUInt16LE(ee.LOCNAM),extraLen:$.readUInt16LE(ee.LOCEXT)}},loadFromBinary:function(f){if(f.length!==ee.CENHDR||f.readUInt32LE(0)!==ee.CENSIG)throw new Error(pn.Errors.INVALID_CEN);e=f.readUInt16LE(ee.CENVEM),t=f.readUInt16LE(ee.CENVER),r=f.readUInt16LE(ee.CENFLG),n=f.readUInt16LE(ee.CENHOW),i=f.readUInt32LE(ee.CENTIM),s=f.readUInt32LE(ee.CENCRC),o=f.readUInt32LE(ee.CENSIZ),c=f.readUInt32LE(ee.CENLEN),u=f.readUInt16LE(ee.CENNAM),p=f.readUInt16LE(ee.CENEXT),a=f.readUInt16LE(ee.CENCOM),l=f.readUInt16LE(ee.CENDSK),y=f.readUInt16LE(ee.CENATT),d=f.readUInt32LE(ee.CENATX),h=f.readUInt32LE(ee.CENOFF)},dataHeaderToBinary:function(){var f=Buffer.alloc(ee.LOCHDR);return f.writeUInt32LE(ee.LOCSIG,0),f.writeUInt16LE(t,ee.LOCVER),f.writeUInt16LE(r,ee.LOCFLG),f.writeUInt16LE(n,ee.LOCHOW),f.writeUInt32LE(i,ee.LOCTIM),f.writeUInt32LE(s,ee.LOCCRC),f.writeUInt32LE(o,ee.LOCSIZ),f.writeUInt32LE(c,ee.LOCLEN),f.writeUInt16LE(u,ee.LOCNAM),f.writeUInt16LE(p,ee.LOCEXT),f},entryHeaderToBinary:function(){var f=Buffer.alloc(ee.CENHDR+u+p+a);return f.writeUInt32LE(ee.CENSIG,0),f.writeUInt16LE(e,ee.CENVEM),f.writeUInt16LE(t,ee.CENVER),f.writeUInt16LE(r,ee.CENFLG),f.writeUInt16LE(n,ee.CENHOW),f.writeUInt32LE(i,ee.CENTIM),f.writeUInt32LE(s,ee.CENCRC),f.writeUInt32LE(o,ee.CENSIZ),f.writeUInt32LE(c,ee.CENLEN),f.writeUInt16LE(u,ee.CENNAM),f.writeUInt16LE(p,ee.CENEXT),f.writeUInt16LE(a,ee.CENCOM),f.writeUInt16LE(l,ee.CENDSK),f.writeUInt16LE(y,ee.CENATT),f.writeUInt32LE(d,ee.CENATX),f.writeUInt32LE(h,ee.CENOFF),f.fill(0,ee.CENHDR),f},toJSON:function(){const f=function($){return $+" bytes"};return{made:e,version:t,flags:r,method:pn.methodToString(n),time:this.time,crc:"0x"+s.toString(16).toUpperCase(),compressedSize:f(o),size:f(c),fileNameLength:f(u),extraLength:f(p),commentLength:f(a),diskNumStart:l,inAttr:y,attr:d,offset:h,entryHeaderSize:f(ee.CENHDR+u+p+a)}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}},Mr=nn.exports,Oe=Mr.Constants,jv=function(){var e=0,t=0,r=0,n=0,i=0;return{get diskEntries(){return e},set diskEntries(s){e=t=s},get totalEntries(){return t},set totalEntries(s){t=e=s},get size(){return r},set size(s){r=s},get offset(){return n},set offset(s){n=s},get commentLength(){return i},set commentLength(s){i=s},get mainHeaderSize(){return Oe.ENDHDR+i},loadFromBinary:function(s){if((s.length!==Oe.ENDHDR||s.readUInt32LE(0)!==Oe.ENDSIG)&&(s.length<Oe.ZIP64HDR||s.readUInt32LE(0)!==Oe.ZIP64SIG))throw new Error(Mr.Errors.INVALID_END);s.readUInt32LE(0)===Oe.ENDSIG?(e=s.readUInt16LE(Oe.ENDSUB),t=s.readUInt16LE(Oe.ENDTOT),r=s.readUInt32LE(Oe.ENDSIZ),n=s.readUInt32LE(Oe.ENDOFF),i=s.readUInt16LE(Oe.ENDCOM)):(e=Mr.readBigUInt64LE(s,Oe.ZIP64SUB),t=Mr.readBigUInt64LE(s,Oe.ZIP64TOT),r=Mr.readBigUInt64LE(s,Oe.ZIP64SIZ),n=Mr.readBigUInt64LE(s,Oe.ZIP64OFF),i=0)},toBinary:function(){var s=Buffer.alloc(Oe.ENDHDR+i);return s.writeUInt32LE(Oe.ENDSIG,0),s.writeUInt32LE(0,4),s.writeUInt16LE(e,Oe.ENDSUB),s.writeUInt16LE(t,Oe.ENDTOT),s.writeUInt32LE(r,Oe.ENDSIZ),s.writeUInt32LE(n,Oe.ENDOFF),s.writeUInt16LE(i,Oe.ENDCOM),s.fill(" ",Oe.ENDHDR),s},toJSON:function(){const s=function(o,c){let u=o.toString(16).toUpperCase();for(;u.length<c;)u="0"+u;return"0x"+u};return{diskEntries:e,totalEntries:t,size:r+" bytes",offset:s(n,4),commentLength:i}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}};Bi.EntryHeader=Fv;Bi.MainHeader=jv;var Hi={},Mv=function(e){var t=Oc.default,r={chunkSize:(parseInt(e.length/1024)+1)*1024};return{deflate:function(){return t.deflateRawSync(e,r)},deflateAsync:function(n){var i=t.createDeflateRaw(r),s=[],o=0;i.on("data",function(c){s.push(c),o+=c.length}),i.on("end",function(){var c=Buffer.alloc(o),u=0;c.fill(0);for(var p=0;p<s.length;p++){var a=s[p];a.copy(c,u),u+=a.length}n&&n(c)}),i.end(e)}}},kv=function(e){var t=Oc.default;return{inflate:function(){return t.inflateRawSync(e)},inflateAsync:function(r){var n=t.createInflateRaw(),i=[],s=0;n.on("data",function(o){i.push(o),s+=o.length}),n.on("end",function(){var o=Buffer.alloc(s),c=0;o.fill(0);for(var u=0;u<i.length;u++){var p=i[u];p.copy(o,c),c+=p.length}r&&r(o)}),n.end(e)}}};const{randomFillSync:_c}=Ic.default,Uv=new Uint32Array(256).map((e,t)=>{for(let r=0;r<8;r++)(t&1)!==0?t=t>>>1^3988292384:t>>>=1;return t>>>0}),lf=(e,t)=>Math.imul(e,t)>>>0,Sc=(e,t)=>Uv[(e^t)&255]^e>>>8,Cn=()=>typeof _c=="function"?_c(Buffer.alloc(12)):Cn.node();Cn.node=()=>{const e=Buffer.alloc(12),t=e.length;for(let r=0;r<t;r++)e[r]=Math.random()*256&255;return e};const di={genSalt:Cn};function Ki(e){const t=Buffer.isBuffer(e)?e:Buffer.from(e);this.keys=new Uint32Array([305419896,591751049,878082192]);for(let r=0;r<t.length;r++)this.updateKeys(t[r])}Ki.prototype.updateKeys=function(e){const t=this.keys;return t[0]=Sc(t[0],e),t[1]+=t[0]&255,t[1]=lf(t[1],134775813)+1,t[2]=Sc(t[2],t[1]>>>24),e};Ki.prototype.next=function(){const e=(this.keys[2]|2)>>>0;return lf(e,e^1)>>8&255};function zv(e){const t=new Ki(e);return function(r){const n=Buffer.alloc(r.length);let i=0;for(let s of r)n[i++]=t.updateKeys(s^t.next());return n}}function xv(e){const t=new Ki(e);return function(r,n,i=0){n||(n=Buffer.alloc(r.length));for(let s of r){const o=t.next();n[i++]=s^o,t.updateKeys(s)}return n}}function Vv(e,t,r){if(!e||!Buffer.isBuffer(e)||e.length<12)return Buffer.alloc(0);const n=zv(r);if(n(e.slice(0,12))[11]!==t.crc>>>24)throw"ADM-ZIP: Wrong Password";return n(e.slice(12))}function qv(e){Buffer.isBuffer(e)&&e.length>=12?di.genSalt=function(){return e.slice(0,12)}:e==="node"?di.genSalt=Cn.node:di.genSalt=Cn}function Gv(e,t,r,n=!1){e==null&&(e=Buffer.alloc(0)),Buffer.isBuffer(e)||(e=Buffer.from(e.toString()));const i=xv(r),s=di.genSalt();s[11]=t.crc>>>24&255,n&&(s[10]=t.crc>>>16&255);const o=Buffer.alloc(e.length+12);return i(s,o),i(e,o,12)}var Bv={decrypt:Vv,encrypt:Gv,_salter:qv};Hi.Deflater=Mv;Hi.Inflater=kv;Hi.ZipCrypto=Bv;var Fe=nn.exports,Hv=Bi,dt=Fe.Constants,ds=Hi,df=function(e){var t=new Hv.EntryHeader,r=Buffer.alloc(0),n=Buffer.alloc(0),i=!1,s=null,o=Buffer.alloc(0);function c(){return!e||!Buffer.isBuffer(e)?Buffer.alloc(0):(t.loadDataHeaderFromBinary(e),e.slice(t.realDataOffset,t.realDataOffset+t.compressedSize))}function u(h){return!((t.flags&8)!==8&&Fe.crc32(h)!==t.dataHeader.crc)}function p(h,m,E){if(typeof m>"u"&&typeof h=="string"&&(E=h,h=void 0),i)return h&&m&&m(Buffer.alloc(0),Fe.Errors.DIRECTORY_CONTENT_ERROR),Buffer.alloc(0);var f=c();if(f.length===0)return h&&m&&m(f),f;if(t.encripted){if(typeof E!="string"&&!Buffer.isBuffer(E))throw new Error("ADM-ZIP: Incompatible password parameter");f=ds.ZipCrypto.decrypt(f,t,E)}var $=Buffer.alloc(t.size);switch(t.method){case Fe.Constants.STORED:if(f.copy($),u($))return h&&m&&m($),$;throw h&&m&&m($,Fe.Errors.BAD_CRC),new Error(Fe.Errors.BAD_CRC);case Fe.Constants.DEFLATED:var _=new ds.Inflater(f);if(h)_.inflateAsync(function(O){O.copy(O,0),m&&(u(O)?m(O):m(O,Fe.Errors.BAD_CRC))});else{if(_.inflate($).copy($,0),!u($))throw new Error(Fe.Errors.BAD_CRC+" "+r.toString());return $}break;default:throw h&&m&&m(Buffer.alloc(0),Fe.Errors.UNKNOWN_METHOD),new Error(Fe.Errors.UNKNOWN_METHOD)}}function a(h,m){if((!s||!s.length)&&Buffer.isBuffer(e))return h&&m&&m(c()),c();if(s.length&&!i){var E;switch(t.method){case Fe.Constants.STORED:return t.compressedSize=t.size,E=Buffer.alloc(s.length),s.copy(E),h&&m&&m(E),E;default:case Fe.Constants.DEFLATED:var f=new ds.Deflater(s);if(h)f.deflateAsync(function(_){E=Buffer.alloc(_.length),t.compressedSize=_.length,_.copy(E),m&&m(E)});else{var $=f.deflate();return t.compressedSize=$.length,$}f=null;break}}else if(h&&m)m(Buffer.alloc(0));else return Buffer.alloc(0)}function l(h,m){return(h.readUInt32LE(m+4)<<4)+h.readUInt32LE(m)}function y(h){for(var m=0,E,f,$;m<h.length;)E=h.readUInt16LE(m),m+=2,f=h.readUInt16LE(m),m+=2,$=h.slice(m,m+f),m+=f,dt.ID_ZIP64===E&&d($)}function d(h){var m,E,f,$;h.length>=dt.EF_ZIP64_SCOMP&&(m=l(h,dt.EF_ZIP64_SUNCOMP),t.size===dt.EF_ZIP64_OR_32&&(t.size=m)),h.length>=dt.EF_ZIP64_RHO&&(E=l(h,dt.EF_ZIP64_SCOMP),t.compressedSize===dt.EF_ZIP64_OR_32&&(t.compressedSize=E)),h.length>=dt.EF_ZIP64_DSN&&(f=l(h,dt.EF_ZIP64_RHO),t.offset===dt.EF_ZIP64_OR_32&&(t.offset=f)),h.length>=dt.EF_ZIP64_DSN+4&&($=h.readUInt32LE(dt.EF_ZIP64_DSN),t.diskNumStart===dt.EF_ZIP64_OR_16&&(t.diskNumStart=$))}return{get entryName(){return r.toString()},get rawEntryName(){return r},set entryName(h){r=Fe.toBuffer(h);var m=r[r.length-1];i=m===47||m===92,t.fileNameLength=r.length},get extra(){return o},set extra(h){o=h,t.extraLength=h.length,y(h)},get comment(){return n.toString()},set comment(h){n=Fe.toBuffer(h),t.commentLength=n.length},get name(){var h=r.toString();return i?h.substr(h.length-1).split("/").pop():h.split("/").pop()},get isDirectory(){return i},getCompressedData:function(){return a(!1,null)},getCompressedDataAsync:function(h){a(!0,h)},setData:function(h){s=Fe.toBuffer(h),!i&&s.length?(t.size=s.length,t.method=Fe.Constants.DEFLATED,t.crc=Fe.crc32(h),t.changed=!0):t.method=Fe.Constants.STORED},getData:function(h){return t.changed?s:p(!1,null,h)},getDataAsync:function(h,m){t.changed?h(s):p(!0,h,m)},set attr(h){t.attr=h},get attr(){return t.attr},set header(h){t.loadFromBinary(h)},get header(){return t},packHeader:function(){var h=t.entryHeaderToBinary(),m=Fe.Constants.CENHDR;return r.copy(h,m),m+=r.length,t.extraLength&&(o.copy(h,m),m+=t.extraLength),t.commentLength&&n.copy(h,m),h},toJSON:function(){const h=function(m){return"<"+(m&&m.length+" bytes buffer"||"null")+">"};return{entryName:this.entryName,name:this.name,comment:this.comment,isDirectory:this.isDirectory,header:t.toJSON(),compressedData:h(e),data:h(s)}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}};const wc=df,Kv=Bi,Je=nn.exports;var Wv=function(e,t){var r=[],n={},i=Buffer.alloc(0),s=new Kv.MainHeader,o=!1;const c=Object.assign(Object.create(null),t),{noSort:u}=c;e?l(c.readEntries):o=!0;function p(d){const h=s.diskEntries;let m=s.offset;for(let E=0;E<h;E++){let f=m;const $=new wc(e);$.header=e.slice(f,f+=Je.Constants.CENHDR),$.entryName=e.slice(f,f+=$.header.fileNameLength),m+=$.header.entryHeaderSize,d($)}}function a(){o=!0,n={},r=new Array(s.diskEntries);for(var d=s.offset,h=0;h<r.length;h++){var m=d,E=new wc(e);E.header=e.slice(m,m+=Je.Constants.CENHDR),E.entryName=e.slice(m,m+=E.header.fileNameLength),E.header.extraLength&&(E.extra=e.slice(m,m+=E.header.extraLength)),E.header.commentLength&&(E.comment=e.slice(m,m+E.header.commentLength)),d+=E.header.entryHeaderSize,r[h]=E,n[E.entryName]=E}}function l(d){var h=e.length-Je.Constants.ENDHDR,m=Math.max(0,h-65535),E=m,f=e.length,$=-1,_=0;for(h;h>=E;h--)if(e[h]===80){if(e.readUInt32LE(h)===Je.Constants.ENDSIG){$=h,_=h,f=h+Je.Constants.ENDHDR,E=h-Je.Constants.END64HDR;continue}if(e.readUInt32LE(h)===Je.Constants.END64SIG){E=m;continue}if(e.readUInt32LE(h)===Je.Constants.ZIP64SIG){$=h,f=h+Je.readBigUInt64LE(e,h+Je.Constants.ZIP64SIZE)+Je.Constants.ZIP64LEAD;break}}if(!~$)throw new Error(Je.Errors.INVALID_FORMAT);s.loadFromBinary(e.slice($,f)),s.commentLength&&(i=e.slice(_+Je.Constants.ENDHDR)),d&&a()}function y(){r.length>1&&!u&&r.sort((d,h)=>d.entryName.toLowerCase().localeCompare(h.entryName.toLowerCase()))}return{get entries(){return o||a(),r},get comment(){return i.toString()},set comment(d){i=Je.toBuffer(d),s.commentLength=i.length},getEntryCount:function(){return o?r.length:s.diskEntries},forEach:function(d){if(!o){p(d);return}r.forEach(d)},getEntry:function(d){return o||a(),n[d]||null},setEntry:function(d){o||a(),r.push(d),n[d.entryName]=d,s.totalEntries=r.length},deleteEntry:function(d){o||a();var h=n[d];if(h&&h.isDirectory){var m=this;this.getEntryChildren(h).forEach(function(E){E.entryName!==d&&m.deleteEntry(E.entryName)})}r.splice(r.indexOf(h),1),delete n[d],s.totalEntries=r.length},getEntryChildren:function(d){if(o||a(),d&&d.isDirectory){const h=[],m=d.entryName,E=m.length;return r.forEach(function(f){f.entryName.substr(0,E)===m&&h.push(f)}),h}return[]},compressToBuffer:function(){o||a(),y();const d=[],h=[];let m=0,E=0;s.size=0,s.offset=0;for(const _ of r){const O=_.getCompressedData();_.header.offset=E;const q=_.header.dataHeaderToBinary(),R=_.rawEntryName.length,C=Buffer.alloc(R+_.extra.length);_.rawEntryName.copy(C,0),C.copy(_.extra,R);const V=q.length+C.length+O.length;E+=V,d.push(q),d.push(C),d.push(O);const L=_.packHeader();h.push(L),s.size+=L.length,m+=V+L.length}m+=s.mainHeaderSize,s.offset=E,E=0;const f=Buffer.alloc(m);for(const _ of d)_.copy(f,E),E+=_.length;for(const _ of h)_.copy(f,E),E+=_.length;const $=s.toBinary();return i&&i.copy($,Je.Constants.ENDHDR),$.copy(f,E),f},toAsyncBuffer:function(d,h,m,E){try{o||a(),y();const f=[],$=[];let _=0,O=0;s.size=0,s.offset=0;const q=function(R){if(R.length){const C=R.pop(),V=C.entryName+C.extra.toString();m&&m(V),C.getCompressedDataAsync(function(L){E&&E(V),C.header.offset=O;const G=C.header.dataHeaderToBinary(),j=Buffer.alloc(V.length,V),b=G.length+j.length+L.length;O+=b,f.push(G),f.push(j),f.push(L);const K=C.packHeader();$.push(K),s.size+=K.length,_+=b+K.length,q(R)})}else{_+=s.mainHeaderSize,s.offset=O,O=0;const C=Buffer.alloc(_);f.forEach(function(L){L.copy(C,O),O+=L.length}),$.forEach(function(L){L.copy(C,O),O+=L.length});const V=s.toBinary();i&&i.copy(V,Je.Constants.ENDHDR),V.copy(C,O),d(C)}};q(r)}catch(f){h(f)}}}};const Me=nn.exports,Ft=Re.default,Xv=df,Zv=Wv,pr=(e,t)=>typeof e=="boolean"?e:t,hs=(e,t)=>typeof e=="string"?e:t,Jv={noSort:!1,readEntries:!1,method:Me.Constants.NONE,fs:null};var Nc=function(e,t){let r=null;const n=Object.assign(Object.create(null),Jv);e&&typeof e=="object"&&(e instanceof Uint8Array||(Object.assign(n,e),e=n.input?n.input:void 0,n.input&&delete n.input),Buffer.isBuffer(e)&&(r=e,n.method=Me.Constants.BUFFER,e=void 0)),Object.assign(n,t);const i=new Me(n);if(e&&typeof e=="string")if(i.fs.existsSync(e))n.method=Me.Constants.FILE,n.filename=e,r=i.fs.readFileSync(e);else throw new Error(Me.Errors.INVALID_FILENAME);const s=new Zv(r,n),{canonical:o,sanitize:c}=Me;function u(a){if(a&&s){var l;if(typeof a=="string"&&(l=s.getEntry(a)),typeof a=="object"&&typeof a.entryName<"u"&&typeof a.header<"u"&&(l=s.getEntry(a.entryName)),l)return l}return null}function p(a){const{join:l,normalize:y,sep:d}=Ft.posix;return l(".",y(d+a.split("\\").join(d)+d))}return{readFile:function(a,l){var y=u(a);return y&&y.getData(l)||null},readFileAsync:function(a,l){var y=u(a);y?y.getDataAsync(l):l(null,"getEntry failed for:"+a)},readAsText:function(a,l){var y=u(a);if(y){var d=y.getData();if(d&&d.length)return d.toString(l||"utf8")}return""},readAsTextAsync:function(a,l,y){var d=u(a);d?d.getDataAsync(function(h,m){if(m){l(h,m);return}h&&h.length?l(h.toString(y||"utf8")):l("")}):l("")},deleteFile:function(a){var l=u(a);l&&s.deleteEntry(l.entryName)},addZipComment:function(a){s.comment=a},getZipComment:function(){return s.comment||""},addZipEntryComment:function(a,l){var y=u(a);y&&(y.comment=l)},getZipEntryComment:function(a){var l=u(a);return l&&l.comment||""},updateFile:function(a,l){var y=u(a);y&&y.setData(l)},addLocalFile:function(a,l,y,d){if(i.fs.existsSync(a)){l=l?p(l):"";var h=a.split("\\").join("/").split("/").pop();l+=y||h;const m=i.fs.statSync(a);this.addFile(l,i.fs.readFileSync(a),d,m)}else throw new Error(Me.Errors.FILE_NOT_FOUND.replace("%s",a))},addLocalFolder:function(a,l,y){if(y instanceof RegExp?y=function(d){return function(h){return d.test(h)}}(y):typeof y!="function"&&(y=function(){return!0}),l=l?p(l):"",a=Ft.normalize(a),i.fs.existsSync(a)){const d=i.findFiles(a),h=this;d.length&&d.forEach(function(m){var E=Ft.relative(a,m).split("\\").join("/");if(y(E)){var f=i.fs.statSync(m);f.isFile()?h.addFile(l+E,i.fs.readFileSync(m),"",f):h.addFile(l+E+"/",Buffer.alloc(0),"",f)}})}else throw new Error(Me.Errors.FILE_NOT_FOUND.replace("%s",a))},addLocalFolderAsync:function(a,l,y,d){d instanceof RegExp?d=function(m){return function(E){return m.test(E)}}(d):typeof d!="function"&&(d=function(){return!0}),y=y?p(y):"",a=Ft.normalize(a);var h=this;i.fs.open(a,"r",function(m){if(m&&m.code==="ENOENT")l(void 0,Me.Errors.FILE_NOT_FOUND.replace("%s",a));else if(m)l(void 0,m);else{var E=i.findFiles(a),f=-1,$=function(){if(f+=1,f<E.length){var _=E[f],O=Ft.relative(a,_).split("\\").join("/");O=O.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,""),d(O)?i.fs.stat(_,function(q,R){q&&l(void 0,q),R.isFile()?i.fs.readFile(_,function(C,V){C?l(void 0,C):(h.addFile(y+O,V,"",R),$())}):(h.addFile(y+O+"/",Buffer.alloc(0),"",R),$())}):$()}else l(!0,void 0)};$()}})},addLocalFolderPromise:function(a,l){return new Promise((y,d)=>{const{filter:h,zipPath:m}=Object.assign({},l);this.addLocalFolderAsync(a,(E,f)=>{f&&d(f),E&&y(this)},m,h)})},addFile:function(a,l,y,d){let h=u(a);const m=h!=null;m||(h=new Xv,h.entryName=a),h.comment=y||"";const E=typeof d=="object"&&d instanceof i.fs.Stats;E&&(h.header.time=d.mtime);var f=h.isDirectory?16:0;if(!Me.isWin){let $=h.isDirectory?16384:32768;E?$|=4095&d.mode:typeof d=="number"?$|=4095&d:$|=h.isDirectory?493:420,f=(f|$<<16)>>>0}h.attr=f,h.setData(l),m||s.setEntry(h)},getEntries:function(){return s?s.entries:[]},getEntry:function(a){return u(a)},getEntryCount:function(){return s.getEntryCount()},forEach:function(a){return s.forEach(a)},extractEntryTo:function(a,l,y,d,h,m){d=pr(d,!1),h=pr(h,!1),y=pr(y,!0),m=hs(m,hs(h,void 0));var E=u(a);if(!E)throw new Error(Me.Errors.NO_ENTRY);var f=o(E.entryName),$=c(l,m&&!E.isDirectory?m:y?f:Ft.basename(f));if(E.isDirectory){var _=s.getEntryChildren(E);return _.forEach(function(R){if(R.isDirectory)return;var C=R.getData();if(!C)throw new Error(Me.Errors.CANT_EXTRACT_FILE);var V=o(R.entryName),L=c(l,y?V:Ft.basename(V));const G=h?R.header.fileAttr:void 0;i.writeFileTo(L,C,d,G)}),!0}var O=E.getData();if(!O)throw new Error(Me.Errors.CANT_EXTRACT_FILE);if(i.fs.existsSync($)&&!d)throw new Error(Me.Errors.CANT_OVERRIDE);const q=h?a.header.fileAttr:void 0;return i.writeFileTo($,O,d,q),!0},test:function(a){if(!s)return!1;for(var l in s.entries)try{if(l.isDirectory)continue;var y=s.entries[l].getData(a);if(!y)return!1}catch{return!1}return!0},extractAllTo:function(a,l,y,d){if(l=pr(l,!1),d=hs(y,d),y=pr(y,!1),!s)throw new Error(Me.Errors.NO_ZIP);s.entries.forEach(function(h){var m=c(a,o(h.entryName.toString()));if(h.isDirectory){i.makeDir(m);return}var E=h.getData(d);if(!E)throw new Error(Me.Errors.CANT_EXTRACT_FILE);const f=y?h.header.fileAttr:void 0;i.writeFileTo(m,E,l,f);try{i.fs.utimesSync(m,h.header.time,h.header.time)}catch{throw new Error(Me.Errors.CANT_EXTRACT_FILE)}})},extractAllToAsync:function(a,l,y,d){if(d||(d=function(){}),l=pr(l,!1),typeof y=="function"&&!d&&(d=y),y=pr(y,!1),!s){d(new Error(Me.Errors.NO_ZIP));return}a=Ft.resolve(a);const h=_=>c(a,Ft.normalize(o(_.entryName.toString()))),m=(_,O)=>new Error(_+': "'+O+'"'),E=[],f=new Set;s.entries.forEach(_=>{_.isDirectory?E.push(_):f.add(_)});for(const _ of E){const O=h(_),q=y?_.header.fileAttr:void 0;try{i.makeDir(O),q&&i.fs.chmodSync(O,q),i.fs.utimesSync(O,_.header.time,_.header.time)}catch{d(m("Unable to create folder",O))}}const $=()=>{f.size===0&&d()};for(const _ of f.values()){const O=Ft.normalize(o(_.entryName.toString())),q=c(a,O);_.getDataAsync(function(R,C){if(C){d(new Error(C));return}if(!R)d(new Error(Me.Errors.CANT_EXTRACT_FILE));else{const V=y?_.header.fileAttr:void 0;i.writeFileToAsync(q,R,l,V,function(L){if(!L){d(m("Unable to write file",q));return}i.fs.utimes(q,_.header.time,_.header.time,function(G){if(G){d(m("Unable to set times",q));return}f.delete(_),$()})})}})}$()},writeZip:function(a,l){if(arguments.length===1&&typeof a=="function"&&(l=a,a=""),!a&&n.filename&&(a=n.filename),!!a){var y=s.compressToBuffer();if(y){var d=i.writeFileTo(a,y,!0);typeof l=="function"&&l(d?null:new Error("failed"),"")}}},writeZipPromise:function(a,l){const{overwrite:y,perm:d}=Object.assign({overwrite:!0},l);return new Promise((h,m)=>{!a&&n.filename&&(a=n.filename),a||m("ADM-ZIP: ZIP File Name Missing"),this.toBufferPromise().then(E=>{const f=$=>$?h($):m("ADM-ZIP: Wasn't able to write zip file");i.writeFileToAsync(a,E,y,d,f)},m)})},toBufferPromise:function(){return new Promise((a,l)=>{s.toAsyncBuffer(a,l)})},toBuffer:function(a,l,y,d){return this.valueOf=2,typeof a=="function"?(s.toAsyncBuffer(a,l,y,d),null):s.compressToBuffer()}}},Pn,qr,Gr,An,$r,_r,Qt,er,Ii,Br,bn,Ts,Ln,It,Hr,hi,Fn,Bt;const Nt=class{constructor(t,r){qe(this,bn);qe(this,Hr);qe(this,Pn,le.screen.getPrimaryDisplay().size);qe(this,qr,fe(this,Pn).width);qe(this,Gr,fe(this,Pn).height);qe(this,An,{getAppPath:le.app.getAppPath(),isPackaged:le.app.isPackaged,downloads:le.app.getPath("downloads"),userData:le.app.getPath("userData"),getVersion:"",env:{...process.env},platform:process.platform,arch:process.arch});qe(this,$r,0);qe(this,_r,0);qe(this,Qt,0);qe(this,er,0);qe(this,Ii,process.platform==="win32");qe(this,Br,void 0);qe(this,Ln,!1);qe(this,It,!1);this.bw=t,fe(this,An).getVersion=r,le.ipcMain.handle("getInfo",()=>fe(this,An)),le.ipcMain.handle("existsSync",(i,s)=>vt.existsSync(s)),le.ipcMain.handle("copySync",(i,s,o)=>vt.copySync(s,o)),le.ipcMain.handle("removeSync",(i,s)=>vt.removeSync(s)),le.ipcMain.handle("ensureFileSync",(i,s)=>vt.ensureFileSync(s)),le.ipcMain.handle("readFileSync",(i,s)=>vt.readFileSync(s,{encoding:"utf8"})),le.ipcMain.handle("readFile",(i,s,o)=>vt.readFile(s,o)),le.ipcMain.handle("writeFileSync",(i,s,o,c)=>vt.writeFileSync(s,o,c)),le.ipcMain.handle("appendFile",(i,s,o,c)=>vt.appendFile(s,o,c)),le.ipcMain.handle("win_close",()=>t.close()),le.ipcMain.handle("win_setTitle",(i,s)=>t.setTitle(s)),le.ipcMain.handle("showMessageBox",(i,s)=>le.dialog.showMessageBox(s)),le.ipcMain.handle("capturePage",(i,s)=>t.webContents.capturePage().then(o=>vt.writeFileSync(s,s.slice(-4)===".png"?o.toPNG():o.toJPEG(80)))),le.ipcMain.handle("navigate_to",(i,s)=>le.shell.openExternal(s)),le.ipcMain.handle("openDevTools",()=>t.webContents.openDevTools()),le.ipcMain.handle("win_ev_devtools_opened",(i,s)=>t.webContents.on("devtools-opened",s));let n;le.ipcMain.handle("Store",(i,s)=>{n=new vc(s)}),le.ipcMain.handle("flush",(i,s)=>{n.store=s}),le.ipcMain.handle("Store_isEmpty",()=>n.size===0),le.ipcMain.handle("Store_get",()=>n.store),le.ipcMain.handle("zip",(i,s,o)=>{const c=new Nc;c.addLocalFolder(s),c.writeZip(o)}),le.ipcMain.handle("unzip",(i,s,o)=>{vt.removeSync(o),vt.ensureDirSync(o),new Nc(s).extractAllTo(o,!0)}),le.ipcMain.handle("isSimpleFullScreen",()=>t.simpleFullScreen),fe(this,Ii)?(le.ipcMain.handle("setSimpleFullScreen",(i,s)=>{Xe(this,It,!0),t.setSimpleFullScreen(s),s||(t.setPosition(fe(this,$r),fe(this,_r)),t.setContentSize(fe(this,Qt),fe(this,er)+fe(Nt,Bt))),Xe(this,It,!1)}),t.on("enter-full-screen",()=>{t.setContentSize(fe(this,qr),fe(this,Gr)-fe(Nt,Bt))}),t.on("leave-full-screen",()=>{Pr(this,Hr,hi).call(this,!1,fe(this,$r),fe(this,_r),fe(this,Qt),fe(this,er)+fe(Nt,Bt))})):le.ipcMain.handle("setSimpleFullScreen",(i,s)=>{t.setSimpleFullScreen(s),s||t.setContentSize(fe(this,Qt),fe(this,er)+fe(Nt,Bt))}),le.ipcMain.handle("window",(i,s,o,c,u,p)=>Pr(this,Hr,hi).call(this,s,o,c,u,p)),t.on("move",()=>Pr(this,bn,Ts).call(this))}openDevTools(){this.bw.webContents.openDevTools()}static initRenderer(t,r,n){let i=()=>{},s;try{vc.initRenderer(),process.env.ELECTRON_DISABLE_SECURITY_WARNINGS="true",s=new le.BrowserWindow({...n,fullscreenable:!0,maximizable:!1,webPreferences:{enableRemoteModule:!1,nodeIntegration:!1,contextIsolation:!0,preload:`${__dirname}/preload.js`}}),s.setMenuBarVisibility(!1);const o=s.getContentSize()[1];s.setMenuBarVisibility(!0);const c=s.getContentSize()[1];Xe(Nt,Bt,o-c),Xe(Nt,Fn,new Nt(s,r)),i=()=>fe(Nt,Fn).openDevTools(),s.loadFile(t)}catch(o){throw console.error(`ealy err:${o}`),i(),"initRenderer error"}return s}};let Ur=Nt;Pn=new WeakMap,qr=new WeakMap,Gr=new WeakMap,An=new WeakMap,$r=new WeakMap,_r=new WeakMap,Qt=new WeakMap,er=new WeakMap,Ii=new WeakMap,Br=new WeakMap,bn=new WeakSet,Ts=function(){if(fe(this,Br)||fe(this,It))return;Xe(this,It,!0);const{x:t,y:r}=this.bw.getBounds();Xe(this,Br,setTimeout(()=>{if(Xe(this,Br,void 0),fe(this,Ln)){Xe(this,Ln,!1);return}Xe(this,It,!1);const n=this.bw.getBounds();if(t!==n.x||r!==n.y){Pr(this,bn,Ts).call(this);return}Pr(this,Hr,hi).call(this,!1,n.x,n.y,fe(this,Qt),fe(this,er))},1e3/60*10))},Ln=new WeakMap,It=new WeakMap,Hr=new WeakSet,hi=function(t,r,n,i,s){fe(this,It)||(Xe(this,It,!0),!this.bw.simpleFullScreen&&(t?([r,n]=this.bw.getPosition(),r=(fe(this,qr)-r)*.5,n=(fe(this,Gr)-n)*.5):((r<0||r>fe(this,qr))&&(r=0),(n<0||n>fe(this,Gr))&&(n=0)),(fe(this,$r)!==r||fe(this,_r)!==n)&&(Xe(this,$r,r),Xe(this,_r,n),this.bw.webContents.send("save_win_pos",r,n),this.bw.setPosition(r,n)),Xe(this,Qt,i),Xe(this,er,s),this.bw.setContentSize(i,s+fe(Nt,Bt)),Xe(this,It,!1)))},Fn=new WeakMap,Bt=new WeakMap,qe(Ur,Fn,void 0),qe(Ur,Bt,0);module.exports=Ur;exports.appMain=Ur;
16
16
  //# sourceMappingURL=appMain.js.map