@griddo/cx 10.3.26 → 10.4.0

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.
@@ -1,53 +0,0 @@
1
- "use strict";var Ld=Object.create;var co=Object.defineProperty;var $d=Object.getOwnPropertyDescriptor;var Bd=Object.getOwnPropertyNames;var Ud=Object.getPrototypeOf,Xd=Object.prototype.hasOwnProperty;var y=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Hd=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Bd(e))!Xd.call(t,i)&&i!==r&&co(t,i,{get:()=>e[i],enumerable:!(n=$d(e,i))||n.enumerable});return t};var X=(t,e,r)=>(r=t!=null?Ld(Ud(t)):{},Hd(e||!t||!t.__esModule?co(r,"default",{value:t,enumerable:!0}):r,t));var _e=y(Bn=>{"use strict";Bn.fromCallback=function(t){return Object.defineProperty(function(...e){if(typeof e[e.length-1]=="function")t.apply(this,e);else return new Promise((r,n)=>{t.call(this,...e,(i,s)=>i!=null?n(i):r(s))})},"name",{value:t.name})};Bn.fromPromise=function(t){return Object.defineProperty(function(...e){let r=e[e.length-1];if(typeof r!="function")return t.apply(this,e);t.apply(this,e.slice(0,-1)).then(n=>r(null,n),r)},"name",{value:t.name})}});var fo=y((lv,lo)=>{var Xe=require("constants"),Gd=process.cwd,br=null,zd=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return br||(br=Gd.call(process)),br};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Un=process.chdir,process.chdir=function(t){br=null,Un.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Un));var Un;lo.exports=Wd;function Wd(t){Xe.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||r(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=n(t.chmod),t.fchmod=n(t.fchmod),t.lchmod=n(t.lchmod),t.chownSync=o(t.chownSync),t.fchownSync=o(t.fchownSync),t.lchownSync=o(t.lchownSync),t.chmodSync=i(t.chmodSync),t.fchmodSync=i(t.fchmodSync),t.lchmodSync=i(t.lchmodSync),t.stat=a(t.stat),t.fstat=a(t.fstat),t.lstat=a(t.lstat),t.statSync=u(t.statSync),t.fstatSync=u(t.fstatSync),t.lstatSync=u(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(c,p,g){g&&process.nextTick(g)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(c,p,g,m){m&&process.nextTick(m)},t.lchownSync=function(){}),zd==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(c){function p(g,m,b){var S=Date.now(),P=0;c(g,m,function A(j){if(j&&(j.code==="EACCES"||j.code==="EPERM")&&Date.now()-S<6e4){setTimeout(function(){t.stat(m,function($,G){$&&$.code==="ENOENT"?c(g,m,A):b(j)})},P),P<100&&(P+=10);return}b&&b(j)})}return Object.setPrototypeOf&&Object.setPrototypeOf(p,c),p}(t.rename)),t.read=typeof t.read!="function"?t.read:function(c){function p(g,m,b,S,P,A){var j;if(A&&typeof A=="function"){var $=0;j=function(G,K,de){if(G&&G.code==="EAGAIN"&&$<10)return $++,c.call(t,g,m,b,S,P,j);A.apply(this,arguments)}}return c.call(t,g,m,b,S,P,j)}return Object.setPrototypeOf&&Object.setPrototypeOf(p,c),p}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(c){return function(p,g,m,b,S){for(var P=0;;)try{return c.call(t,p,g,m,b,S)}catch(A){if(A.code==="EAGAIN"&&P<10){P++;continue}throw A}}}(t.readSync);function e(c){c.lchmod=function(p,g,m){c.open(p,Xe.O_WRONLY|Xe.O_SYMLINK,g,function(b,S){if(b){m&&m(b);return}c.fchmod(S,g,function(P){c.close(S,function(A){m&&m(P||A)})})})},c.lchmodSync=function(p,g){var m=c.openSync(p,Xe.O_WRONLY|Xe.O_SYMLINK,g),b=!0,S;try{S=c.fchmodSync(m,g),b=!1}finally{if(b)try{c.closeSync(m)}catch{}else c.closeSync(m)}return S}}function r(c){Xe.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(p,g,m,b){c.open(p,Xe.O_SYMLINK,function(S,P){if(S){b&&b(S);return}c.futimes(P,g,m,function(A){c.close(P,function(j){b&&b(A||j)})})})},c.lutimesSync=function(p,g,m){var b=c.openSync(p,Xe.O_SYMLINK),S,P=!0;try{S=c.futimesSync(b,g,m),P=!1}finally{if(P)try{c.closeSync(b)}catch{}else c.closeSync(b)}return S}):c.futimes&&(c.lutimes=function(p,g,m,b){b&&process.nextTick(b)},c.lutimesSync=function(){})}function n(c){return c&&function(p,g,m){return c.call(t,p,g,function(b){h(b)&&(b=null),m&&m.apply(this,arguments)})}}function i(c){return c&&function(p,g){try{return c.call(t,p,g)}catch(m){if(!h(m))throw m}}}function s(c){return c&&function(p,g,m,b){return c.call(t,p,g,m,function(S){h(S)&&(S=null),b&&b.apply(this,arguments)})}}function o(c){return c&&function(p,g,m){try{return c.call(t,p,g,m)}catch(b){if(!h(b))throw b}}}function a(c){return c&&function(p,g,m){typeof g=="function"&&(m=g,g=null);function b(S,P){P&&(P.uid<0&&(P.uid+=4294967296),P.gid<0&&(P.gid+=4294967296)),m&&m.apply(this,arguments)}return g?c.call(t,p,g,b):c.call(t,p,b)}}function u(c){return c&&function(p,g){var m=g?c.call(t,p,g):c.call(t,p);return m&&(m.uid<0&&(m.uid+=4294967296),m.gid<0&&(m.gid+=4294967296)),m}}function h(c){if(!c||c.code==="ENOSYS")return!0;var p=!process.getuid||process.getuid()!==0;return!!(p&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var mo=y((fv,po)=>{var ho=require("stream").Stream;po.exports=Jd;function Jd(t){return{ReadStream:e,WriteStream:r};function e(n,i){if(!(this instanceof e))return new e(n,i);ho.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),a=0,u=o.length;a<u;a++){var h=o[a];this[h]=i[h]}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}t.open(this.path,this.flags,this.mode,function(c,p){if(c){s.emit("error",c),s.readable=!1;return}s.fd=p,s.emit("open",p),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);ho.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,a=s.length;o<a;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=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var yo=y((dv,go)=>{"use strict";go.exports=Yd;var Vd=Object.getPrototypeOf||function(t){return t.__proto__};function Yd(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:Vd(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var ue=y((hv,Gn)=>{var z=require("fs"),Kd=fo(),Qd=mo(),Zd=yo(),_r=require("util"),ie,xr;typeof Symbol=="function"&&typeof Symbol.for=="function"?(ie=Symbol.for("graceful-fs.queue"),xr=Symbol.for("graceful-fs.previous")):(ie="___graceful-fs.queue",xr="___graceful-fs.previous");function eh(){}function _o(t,e){Object.defineProperty(t,ie,{get:function(){return e}})}var et=eh;_r.debuglog?et=_r.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(et=function(){var t=_r.format.apply(_r,arguments);t="GFS4: "+t.split(/\n/).join(`
2
- GFS4: `),console.error(t)});z[ie]||(vo=global[ie]||[],_o(z,vo),z.close=function(t){function e(r,n){return t.call(z,r,function(i){i||bo(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,xr,{value:t}),e}(z.close),z.closeSync=function(t){function e(r){t.apply(z,arguments),bo()}return Object.defineProperty(e,xr,{value:t}),e}(z.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){et(z[ie]),require("assert").equal(z[ie].length,0)}));var vo;global[ie]||_o(global,z[ie]);Gn.exports=Xn(Zd(z));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!z.__patched&&(Gn.exports=Xn(z),z.__patched=!0);function Xn(t){Kd(t),t.gracefulify=Xn,t.createReadStream=K,t.createWriteStream=de;var e=t.readFile;t.readFile=r;function r(D,k,q){return typeof k=="function"&&(q=k,k=null),B(D,k,q);function B(F,L,O,N){return e(F,L,function(M){M&&(M.code==="EMFILE"||M.code==="ENFILE")?ft([B,[F,L,O],M,N||Date.now(),Date.now()]):typeof O=="function"&&O.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=i;function i(D,k,q,B){return typeof q=="function"&&(B=q,q=null),F(D,k,q,B);function F(L,O,N,M,x){return n(L,O,N,function(I){I&&(I.code==="EMFILE"||I.code==="ENFILE")?ft([F,[L,O,N,M],I,x||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(D,k,q,B){return typeof q=="function"&&(B=q,q=null),F(D,k,q,B);function F(L,O,N,M,x){return s(L,O,N,function(I){I&&(I.code==="EMFILE"||I.code==="ENFILE")?ft([F,[L,O,N,M],I,x||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=u);function u(D,k,q,B){return typeof q=="function"&&(B=q,q=0),F(D,k,q,B);function F(L,O,N,M,x){return a(L,O,N,function(I){I&&(I.code==="EMFILE"||I.code==="ENFILE")?ft([F,[L,O,N,M],I,x||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var h=t.readdir;t.readdir=p;var c=/^v[0-5]\./;function p(D,k,q){typeof k=="function"&&(q=k,k=null);var B=c.test(process.version)?function(O,N,M,x){return h(O,F(O,N,M,x))}:function(O,N,M,x){return h(O,N,F(O,N,M,x))};return B(D,k,q);function F(L,O,N,M){return function(x,I){x&&(x.code==="EMFILE"||x.code==="ENFILE")?ft([B,[L,O,N],x,M||Date.now(),Date.now()]):(I&&I.sort&&I.sort(),typeof N=="function"&&N.call(this,x,I))}}}if(process.version.substr(0,4)==="v0.8"){var g=Qd(t);A=g.ReadStream,$=g.WriteStream}var m=t.ReadStream;m&&(A.prototype=Object.create(m.prototype),A.prototype.open=j);var b=t.WriteStream;b&&($.prototype=Object.create(b.prototype),$.prototype.open=G),Object.defineProperty(t,"ReadStream",{get:function(){return A},set:function(D){A=D},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return $},set:function(D){$=D},enumerable:!0,configurable:!0});var S=A;Object.defineProperty(t,"FileReadStream",{get:function(){return S},set:function(D){S=D},enumerable:!0,configurable:!0});var P=$;Object.defineProperty(t,"FileWriteStream",{get:function(){return P},set:function(D){P=D},enumerable:!0,configurable:!0});function A(D,k){return this instanceof A?(m.apply(this,arguments),this):A.apply(Object.create(A.prototype),arguments)}function j(){var D=this;re(D.path,D.flags,D.mode,function(k,q){k?(D.autoClose&&D.destroy(),D.emit("error",k)):(D.fd=q,D.emit("open",q),D.read())})}function $(D,k){return this instanceof $?(b.apply(this,arguments),this):$.apply(Object.create($.prototype),arguments)}function G(){var D=this;re(D.path,D.flags,D.mode,function(k,q){k?(D.destroy(),D.emit("error",k)):(D.fd=q,D.emit("open",q))})}function K(D,k){return new t.ReadStream(D,k)}function de(D,k){return new t.WriteStream(D,k)}var Oe=t.open;t.open=re;function re(D,k,q,B){return typeof q=="function"&&(B=q,q=null),F(D,k,q,B);function F(L,O,N,M,x){return Oe(L,O,N,function(I,ne){I&&(I.code==="EMFILE"||I.code==="ENFILE")?ft([F,[L,O,N,M],I,x||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}return t}function ft(t){et("ENQUEUE",t[0].name,t[1]),z[ie].push(t),Hn()}var wr;function bo(){for(var t=Date.now(),e=0;e<z[ie].length;++e)z[ie][e].length>2&&(z[ie][e][3]=t,z[ie][e][4]=t);Hn()}function Hn(){if(clearTimeout(wr),wr=void 0,z[ie].length!==0){var t=z[ie].shift(),e=t[0],r=t[1],n=t[2],i=t[3],s=t[4];if(i===void 0)et("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-i>=6e4){et("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-s,u=Math.max(s-i,1),h=Math.min(u*1.2,100);a>=h?(et("RETRY",e.name,r),e.apply(null,r.concat([i]))):z[ie].push(t)}wr===void 0&&(wr=setTimeout(Hn,0))}}});var Lt=y(He=>{"use strict";var wo=_e().fromCallback,me=ue(),th=["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(t=>typeof me[t]=="function");Object.keys(me).forEach(t=>{t!=="promises"&&(He[t]=me[t])});th.forEach(t=>{He[t]=wo(me[t])});He.exists=function(t,e){return typeof e=="function"?me.exists(t,e):new Promise(r=>me.exists(t,r))};He.read=function(t,e,r,n,i,s){return typeof s=="function"?me.read(t,e,r,n,i,s):new Promise((o,a)=>{me.read(t,e,r,n,i,(u,h,c)=>{if(u)return a(u);o({bytesRead:h,buffer:c})})})};He.write=function(t,e,...r){return typeof r[r.length-1]=="function"?me.write(t,e,...r):new Promise((n,i)=>{me.write(t,e,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffer:a})})})};typeof me.writev=="function"&&(He.writev=function(t,e,...r){return typeof r[r.length-1]=="function"?me.writev(t,e,...r):new Promise((n,i)=>{me.writev(t,e,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffers:a})})})});typeof me.realpath.native=="function"&&(He.realpath.native=wo(me.realpath.native))});var zn=y((mv,xo)=>{xo.exports=t=>{let e=process.versions.node.split(".").map(r=>parseInt(r,10));return t=t.split(".").map(r=>parseInt(r,10)),e[0]>t[0]||e[0]===t[0]&&(e[1]>t[1]||e[1]===t[1]&&e[2]>=t[2])}});var Oo=y((gv,Wn)=>{"use strict";var dt=Lt(),$e=require("path"),rh=zn(),So=rh("10.12.0"),Eo=t=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace($e.parse(t).root,""))){let r=new Error(`Path contains invalid characters: ${t}`);throw r.code="EINVAL",r}},Co=t=>{let e={mode:511};return typeof t=="number"&&(t={mode:t}),{...e,...t}},Po=t=>{let e=new Error(`operation not permitted, mkdir '${t}'`);return e.code="EPERM",e.errno=-4048,e.path=t,e.syscall="mkdir",e};Wn.exports.makeDir=async(t,e)=>{if(Eo(t),e=Co(e),So){let n=$e.resolve(t);return dt.mkdir(n,{mode:e.mode,recursive:!0})}let r=async n=>{try{await dt.mkdir(n,e.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if($e.dirname(n)===n)throw Po(n);if(i.message.includes("null bytes"))throw i;return await r($e.dirname(n)),r(n)}try{if(!(await dt.stat(n)).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r($e.resolve(t))};Wn.exports.makeDirSync=(t,e)=>{if(Eo(t),e=Co(e),So){let n=$e.resolve(t);return dt.mkdirSync(n,{mode:e.mode,recursive:!0})}let r=n=>{try{dt.mkdirSync(n,e.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if($e.dirname(n)===n)throw Po(n);if(i.message.includes("null bytes"))throw i;return r($e.dirname(n)),r(n)}try{if(!dt.statSync(n).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r($e.resolve(t))}});var ke=y((yv,Do)=>{"use strict";var nh=_e().fromPromise,{makeDir:ih,makeDirSync:Jn}=Oo(),Vn=nh(ih);Do.exports={mkdirs:Vn,mkdirsSync:Jn,mkdirp:Vn,mkdirpSync:Jn,ensureDir:Vn,ensureDirSync:Jn}});var Yn=y((vv,Fo)=>{"use strict";var ht=ue();function sh(t,e,r,n){ht.open(t,"r+",(i,s)=>{if(i)return n(i);ht.futimes(s,e,r,o=>{ht.close(s,a=>{n&&n(o||a)})})})}function oh(t,e,r){let n=ht.openSync(t,"r+");return ht.futimesSync(n,e,r),ht.closeSync(n)}Fo.exports={utimesMillis:sh,utimesMillisSync:oh}});var $t=y((bv,ko)=>{"use strict";var pt=Lt(),we=require("path"),ah=require("util"),uh=zn(),Sr=uh("10.5.0"),Io=t=>Sr?pt.stat(t,{bigint:!0}):pt.stat(t),Kn=t=>Sr?pt.statSync(t,{bigint:!0}):pt.statSync(t);function ch(t,e){return Promise.all([Io(t),Io(e).catch(r=>{if(r.code==="ENOENT")return null;throw r})]).then(([r,n])=>({srcStat:r,destStat:n}))}function lh(t,e){let r,n=Kn(t);try{r=Kn(e)}catch(i){if(i.code==="ENOENT")return{srcStat:n,destStat:null};throw i}return{srcStat:n,destStat:r}}function fh(t,e,r,n){ah.callbackify(ch)(t,e,(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;return a&&Er(o,a)?n(new Error("Source and destination must not be the same.")):o.isDirectory()&&Qn(t,e)?n(new Error(Cr(t,e,r))):n(null,{srcStat:o,destStat:a})})}function dh(t,e,r){let{srcStat:n,destStat:i}=lh(t,e);if(i&&Er(n,i))throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&Qn(t,e))throw new Error(Cr(t,e,r));return{srcStat:n,destStat:i}}function Ao(t,e,r,n,i){let s=we.resolve(we.dirname(t)),o=we.resolve(we.dirname(r));if(o===s||o===we.parse(o).root)return i();let a=(u,h)=>u?u.code==="ENOENT"?i():i(u):Er(e,h)?i(new Error(Cr(t,r,n))):Ao(t,e,o,n,i);Sr?pt.stat(o,{bigint:!0},a):pt.stat(o,a)}function Ro(t,e,r,n){let i=we.resolve(we.dirname(t)),s=we.resolve(we.dirname(r));if(s===i||s===we.parse(s).root)return;let o;try{o=Kn(s)}catch(a){if(a.code==="ENOENT")return;throw a}if(Er(e,o))throw new Error(Cr(t,r,n));return Ro(t,e,s,n)}function Er(t,e){return!!(e.ino&&e.dev&&e.ino===t.ino&&e.dev===t.dev&&(Sr||e.ino<Number.MAX_SAFE_INTEGER||e.size===t.size&&e.mode===t.mode&&e.nlink===t.nlink&&e.atimeMs===t.atimeMs&&e.mtimeMs===t.mtimeMs&&e.ctimeMs===t.ctimeMs&&e.birthtimeMs===t.birthtimeMs))}function Qn(t,e){let r=we.resolve(t).split(we.sep).filter(i=>i),n=we.resolve(e).split(we.sep).filter(i=>i);return r.reduce((i,s,o)=>i&&n[o]===s,!0)}function Cr(t,e,r){return`Cannot ${r} '${t}' to a subdirectory of itself, '${e}'.`}ko.exports={checkPaths:fh,checkPathsSync:dh,checkParentPaths:Ao,checkParentPathsSync:Ro,isSrcSubdir:Qn}});var jo=y((_v,No)=>{"use strict";var ce=ue(),Bt=require("path"),hh=ke().mkdirsSync,ph=Yn().utimesMillisSync,Ut=$t();function mh(t,e,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"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
3
-
4
- see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=Ut.checkPathsSync(t,e,"copy");return Ut.checkParentPathsSync(t,n,e,"copy"),gh(i,t,e,r)}function gh(t,e,r,n){if(n.filter&&!n.filter(e,r))return;let i=Bt.dirname(r);return ce.existsSync(i)||hh(i),qo(t,e,r,n)}function qo(t,e,r,n){if(!(n.filter&&!n.filter(e,r)))return yh(t,e,r,n)}function yh(t,e,r,n){let s=(n.dereference?ce.statSync:ce.lstatSync)(e);if(s.isDirectory())return Eh(s,t,e,r,n);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return vh(s,t,e,r,n);if(s.isSymbolicLink())return Oh(t,e,r,n)}function vh(t,e,r,n,i){return e?bh(t,r,n,i):Mo(t,r,n,i)}function bh(t,e,r,n){if(n.overwrite)return ce.unlinkSync(r),Mo(t,e,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function Mo(t,e,r,n){return ce.copyFileSync(e,r),n.preserveTimestamps&&_h(t.mode,e,r),Zn(r,t.mode)}function _h(t,e,r){return wh(t)&&xh(r,t),Sh(e,r)}function wh(t){return(t&128)===0}function xh(t,e){return Zn(t,e|128)}function Zn(t,e){return ce.chmodSync(t,e)}function Sh(t,e){let r=ce.statSync(t);return ph(e,r.atime,r.mtime)}function Eh(t,e,r,n,i){if(!e)return Ch(t.mode,r,n,i);if(e&&!e.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`);return To(r,n,i)}function Ch(t,e,r,n){return ce.mkdirSync(r),To(e,r,n),Zn(r,t)}function To(t,e,r){ce.readdirSync(t).forEach(n=>Ph(n,t,e,r))}function Ph(t,e,r,n){let i=Bt.join(e,t),s=Bt.join(r,t),{destStat:o}=Ut.checkPathsSync(i,s,"copy");return qo(o,i,s,n)}function Oh(t,e,r,n){let i=ce.readlinkSync(e);if(n.dereference&&(i=Bt.resolve(process.cwd(),i)),t){let s;try{s=ce.readlinkSync(r)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return ce.symlinkSync(i,r);throw o}if(n.dereference&&(s=Bt.resolve(process.cwd(),s)),Ut.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(ce.statSync(r).isDirectory()&&Ut.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return Dh(i,r)}else return ce.symlinkSync(i,r)}function Dh(t,e){return ce.unlinkSync(e),ce.symlinkSync(t,e)}No.exports=mh});var ei=y((wv,Lo)=>{"use strict";Lo.exports={copySync:jo()}});var Ge=y((xv,Bo)=>{"use strict";var Fh=_e().fromPromise,$o=Lt();function Ih(t){return $o.access(t).then(()=>!0).catch(()=>!1)}Bo.exports={pathExists:Fh(Ih),pathExistsSync:$o.existsSync}});var Yo=y((Sv,Vo)=>{"use strict";var xe=ue(),Xt=require("path"),Ah=ke().mkdirs,Rh=Ge().pathExists,kh=Yn().utimesMillis,Ht=$t();function qh(t,e,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"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
5
-
6
- see https://github.com/jprichardson/node-fs-extra/issues/269`),Ht.checkPaths(t,e,"copy",(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;Ht.checkParentPaths(t,o,e,"copy",u=>u?n(u):r.filter?Go(Uo,a,t,e,r,n):Uo(a,t,e,r,n))})}function Uo(t,e,r,n,i){let s=Xt.dirname(r);Rh(s,(o,a)=>{if(o)return i(o);if(a)return ti(t,e,r,n,i);Ah(s,u=>u?i(u):ti(t,e,r,n,i))})}function Go(t,e,r,n,i,s){Promise.resolve(i.filter(r,n)).then(o=>o?t(e,r,n,i,s):s(),o=>s(o))}function ti(t,e,r,n,i){return n.filter?Go(Xo,t,e,r,n,i):Xo(t,e,r,n,i)}function Xo(t,e,r,n,i){(n.dereference?xe.stat:xe.lstat)(e,(o,a)=>{if(o)return i(o);if(a.isDirectory())return Bh(a,t,e,r,n,i);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return Mh(a,t,e,r,n,i);if(a.isSymbolicLink())return Hh(t,e,r,n,i)})}function Mh(t,e,r,n,i,s){return e?Th(t,r,n,i,s):zo(t,r,n,i,s)}function Th(t,e,r,n,i){if(n.overwrite)xe.unlink(r,s=>s?i(s):zo(t,e,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function zo(t,e,r,n,i){xe.copyFile(e,r,s=>s?i(s):n.preserveTimestamps?Nh(t.mode,e,r,i):Pr(r,t.mode,i))}function Nh(t,e,r,n){return jh(t)?Lh(r,t,i=>i?n(i):Ho(t,e,r,n)):Ho(t,e,r,n)}function jh(t){return(t&128)===0}function Lh(t,e,r){return Pr(t,e|128,r)}function Ho(t,e,r,n){$h(e,r,i=>i?n(i):Pr(r,t,n))}function Pr(t,e,r){return xe.chmod(t,e,r)}function $h(t,e,r){xe.stat(t,(n,i)=>n?r(n):kh(e,i.atime,i.mtime,r))}function Bh(t,e,r,n,i,s){return e?e&&!e.isDirectory()?s(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)):Wo(r,n,i,s):Uh(t.mode,r,n,i,s)}function Uh(t,e,r,n,i){xe.mkdir(r,s=>{if(s)return i(s);Wo(e,r,n,o=>o?i(o):Pr(r,t,i))})}function Wo(t,e,r,n){xe.readdir(t,(i,s)=>i?n(i):Jo(s,t,e,r,n))}function Jo(t,e,r,n,i){let s=t.pop();return s?Xh(t,s,e,r,n,i):i()}function Xh(t,e,r,n,i,s){let o=Xt.join(r,e),a=Xt.join(n,e);Ht.checkPaths(o,a,"copy",(u,h)=>{if(u)return s(u);let{destStat:c}=h;ti(c,o,a,i,p=>p?s(p):Jo(t,r,n,i,s))})}function Hh(t,e,r,n,i){xe.readlink(e,(s,o)=>{if(s)return i(s);if(n.dereference&&(o=Xt.resolve(process.cwd(),o)),t)xe.readlink(r,(a,u)=>a?a.code==="EINVAL"||a.code==="UNKNOWN"?xe.symlink(o,r,i):i(a):(n.dereference&&(u=Xt.resolve(process.cwd(),u)),Ht.isSrcSubdir(o,u)?i(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${u}'.`)):t.isDirectory()&&Ht.isSrcSubdir(u,o)?i(new Error(`Cannot overwrite '${u}' with '${o}'.`)):Gh(o,r,i)));else return xe.symlink(o,r,i)})}function Gh(t,e,r){xe.unlink(e,n=>n?r(n):xe.symlink(t,e,r))}Vo.exports=qh});var ri=y((Ev,Ko)=>{"use strict";var zh=_e().fromCallback;Ko.exports={copy:zh(Yo())}});var oa=y((Cv,sa)=>{"use strict";var Qo=ue(),ra=require("path"),H=require("assert"),Gt=process.platform==="win32";function na(t){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{t[r]=t[r]||Qo[r],r=r+"Sync",t[r]=t[r]||Qo[r]}),t.maxBusyTries=t.maxBusyTries||3}function ni(t,e,r){let n=0;typeof e=="function"&&(r=e,e={}),H(t,"rimraf: missing path"),H.strictEqual(typeof t,"string","rimraf: path should be a string"),H.strictEqual(typeof r,"function","rimraf: callback function required"),H(e,"rimraf: invalid options argument provided"),H.strictEqual(typeof e,"object","rimraf: options should be object"),na(e),Zo(t,e,function i(s){if(s){if((s.code==="EBUSY"||s.code==="ENOTEMPTY"||s.code==="EPERM")&&n<e.maxBusyTries){n++;let o=n*100;return setTimeout(()=>Zo(t,e,i),o)}s.code==="ENOENT"&&(s=null)}r(s)})}function Zo(t,e,r){H(t),H(e),H(typeof r=="function"),e.lstat(t,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&Gt)return ea(t,e,n,r);if(i&&i.isDirectory())return Or(t,e,n,r);e.unlink(t,s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return Gt?ea(t,e,s,r):Or(t,e,s,r);if(s.code==="EISDIR")return Or(t,e,s,r)}return r(s)})})}function ea(t,e,r,n){H(t),H(e),H(typeof n=="function"),e.chmod(t,438,i=>{i?n(i.code==="ENOENT"?null:r):e.stat(t,(s,o)=>{s?n(s.code==="ENOENT"?null:r):o.isDirectory()?Or(t,e,r,n):e.unlink(t,n)})})}function ta(t,e,r){let n;H(t),H(e);try{e.chmodSync(t,438)}catch(i){if(i.code==="ENOENT")return;throw r}try{n=e.statSync(t)}catch(i){if(i.code==="ENOENT")return;throw r}n.isDirectory()?Dr(t,e,r):e.unlinkSync(t)}function Or(t,e,r,n){H(t),H(e),H(typeof n=="function"),e.rmdir(t,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?Wh(t,e,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function Wh(t,e,r){H(t),H(e),H(typeof r=="function"),e.readdir(t,(n,i)=>{if(n)return r(n);let s=i.length,o;if(s===0)return e.rmdir(t,r);i.forEach(a=>{ni(ra.join(t,a),e,u=>{if(!o){if(u)return r(o=u);--s===0&&e.rmdir(t,r)}})})})}function ia(t,e){let r;e=e||{},na(e),H(t,"rimraf: missing path"),H.strictEqual(typeof t,"string","rimraf: path should be a string"),H(e,"rimraf: missing options"),H.strictEqual(typeof e,"object","rimraf: options should be object");try{r=e.lstatSync(t)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&Gt&&ta(t,e,n)}try{r&&r.isDirectory()?Dr(t,e,null):e.unlinkSync(t)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return Gt?ta(t,e,n):Dr(t,e,n);if(n.code!=="EISDIR")throw n;Dr(t,e,n)}}function Dr(t,e,r){H(t),H(e);try{e.rmdirSync(t)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")Jh(t,e);else if(n.code!=="ENOENT")throw n}}function Jh(t,e){if(H(t),H(e),e.readdirSync(t).forEach(r=>ia(ra.join(t,r),e)),Gt){let r=Date.now();do try{return e.rmdirSync(t,e)}catch{}while(Date.now()-r<500)}else return e.rmdirSync(t,e)}sa.exports=ni;ni.sync=ia});var zt=y((Pv,ua)=>{"use strict";var Vh=_e().fromCallback,aa=oa();ua.exports={remove:Vh(aa),removeSync:aa.sync}});var ga=y((Ov,ma)=>{"use strict";var Yh=_e().fromCallback,fa=ue(),da=require("path"),ha=ke(),pa=zt(),ca=Yh(function(e,r){r=r||function(){},fa.readdir(e,(n,i)=>{if(n)return ha.mkdirs(e,r);i=i.map(o=>da.join(e,o)),s();function s(){let o=i.pop();if(!o)return r();pa.remove(o,a=>{if(a)return r(a);s()})}})});function la(t){let e;try{e=fa.readdirSync(t)}catch{return ha.mkdirsSync(t)}e.forEach(r=>{r=da.join(t,r),pa.removeSync(r)})}ma.exports={emptyDirSync:la,emptydirSync:la,emptyDir:ca,emptydir:ca}});var _a=y((Dv,ba)=>{"use strict";var Kh=_e().fromCallback,ya=require("path"),ze=ue(),va=ke();function Qh(t,e){function r(){ze.writeFile(t,"",n=>{if(n)return e(n);e()})}ze.stat(t,(n,i)=>{if(!n&&i.isFile())return e();let s=ya.dirname(t);ze.stat(s,(o,a)=>{if(o)return o.code==="ENOENT"?va.mkdirs(s,u=>{if(u)return e(u);r()}):e(o);a.isDirectory()?r():ze.readdir(s,u=>{if(u)return e(u)})})})}function Zh(t){let e;try{e=ze.statSync(t)}catch{}if(e&&e.isFile())return;let r=ya.dirname(t);try{ze.statSync(r).isDirectory()||ze.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")va.mkdirsSync(r);else throw n}ze.writeFileSync(t,"")}ba.exports={createFile:Kh(Qh),createFileSync:Zh}});var Ca=y((Fv,Ea)=>{"use strict";var e0=_e().fromCallback,xa=require("path"),tt=ue(),Sa=ke(),wa=Ge().pathExists;function t0(t,e,r){function n(i,s){tt.link(i,s,o=>{if(o)return r(o);r(null)})}wa(e,(i,s)=>{if(i)return r(i);if(s)return r(null);tt.lstat(t,o=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),r(o);let a=xa.dirname(e);wa(a,(u,h)=>{if(u)return r(u);if(h)return n(t,e);Sa.mkdirs(a,c=>{if(c)return r(c);n(t,e)})})})})}function r0(t,e){if(tt.existsSync(e))return;try{tt.lstatSync(t)}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let n=xa.dirname(e);return tt.existsSync(n)||Sa.mkdirsSync(n),tt.linkSync(t,e)}Ea.exports={createLink:e0(t0),createLinkSync:r0}});var Oa=y((Iv,Pa)=>{"use strict";var We=require("path"),Wt=ue(),n0=Ge().pathExists;function i0(t,e,r){if(We.isAbsolute(t))return Wt.lstat(t,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:t,toDst:t}));{let n=We.dirname(e),i=We.join(n,t);return n0(i,(s,o)=>s?r(s):o?r(null,{toCwd:i,toDst:t}):Wt.lstat(t,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),r(a)):r(null,{toCwd:t,toDst:We.relative(n,t)})))}}function s0(t,e){let r;if(We.isAbsolute(t)){if(r=Wt.existsSync(t),!r)throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}else{let n=We.dirname(e),i=We.join(n,t);if(r=Wt.existsSync(i),r)return{toCwd:i,toDst:t};if(r=Wt.existsSync(t),!r)throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:We.relative(n,t)}}}Pa.exports={symlinkPaths:i0,symlinkPathsSync:s0}});var Ia=y((Av,Fa)=>{"use strict";var Da=ue();function o0(t,e,r){if(r=typeof e=="function"?e:r,e=typeof e=="function"?!1:e,e)return r(null,e);Da.lstat(t,(n,i)=>{if(n)return r(null,"file");e=i&&i.isDirectory()?"dir":"file",r(null,e)})}function a0(t,e){let r;if(e)return e;try{r=Da.lstatSync(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}Fa.exports={symlinkType:o0,symlinkTypeSync:a0}});var Na=y((Rv,Ta)=>{"use strict";var u0=_e().fromCallback,Ra=require("path"),mt=ue(),ka=ke(),c0=ka.mkdirs,l0=ka.mkdirsSync,qa=Oa(),f0=qa.symlinkPaths,d0=qa.symlinkPathsSync,Ma=Ia(),h0=Ma.symlinkType,p0=Ma.symlinkTypeSync,Aa=Ge().pathExists;function m0(t,e,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,Aa(e,(i,s)=>{if(i)return n(i);if(s)return n(null);f0(t,e,(o,a)=>{if(o)return n(o);t=a.toDst,h0(a.toCwd,r,(u,h)=>{if(u)return n(u);let c=Ra.dirname(e);Aa(c,(p,g)=>{if(p)return n(p);if(g)return mt.symlink(t,e,h,n);c0(c,m=>{if(m)return n(m);mt.symlink(t,e,h,n)})})})})})}function g0(t,e,r){if(mt.existsSync(e))return;let i=d0(t,e);t=i.toDst,r=p0(i.toCwd,r);let s=Ra.dirname(e);return mt.existsSync(s)||l0(s),mt.symlinkSync(t,e,r)}Ta.exports={createSymlink:u0(m0),createSymlinkSync:g0}});var La=y((kv,ja)=>{"use strict";var Fr=_a(),Ir=Ca(),Ar=Na();ja.exports={createFile:Fr.createFile,createFileSync:Fr.createFileSync,ensureFile:Fr.createFile,ensureFileSync:Fr.createFileSync,createLink:Ir.createLink,createLinkSync:Ir.createLinkSync,ensureLink:Ir.createLink,ensureLinkSync:Ir.createLinkSync,createSymlink:Ar.createSymlink,createSymlinkSync:Ar.createSymlinkSync,ensureSymlink:Ar.createSymlink,ensureSymlinkSync:Ar.createSymlinkSync}});var Rr=y((qv,$a)=>{function y0(t,{EOL:e=`
7
- `,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let s=r?e:"";return JSON.stringify(t,n,i).replace(/\n/g,e)+s}function v0(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t.replace(/^\uFEFF/,"")}$a.exports={stringify:y0,stripBom:v0}});var Ha=y((Mv,Xa)=>{var gt;try{gt=ue()}catch{gt=require("fs")}var kr=_e(),{stringify:Ba,stripBom:Ua}=Rr();async function b0(t,e={}){typeof e=="string"&&(e={encoding:e});let r=e.fs||gt,n="throws"in e?e.throws:!0,i=await kr.fromCallback(r.readFile)(t,e);i=Ua(i);let s;try{s=JSON.parse(i,e?e.reviver:null)}catch(o){if(n)throw o.message=`${t}: ${o.message}`,o;return null}return s}var _0=kr.fromPromise(b0);function w0(t,e={}){typeof e=="string"&&(e={encoding:e});let r=e.fs||gt,n="throws"in e?e.throws:!0;try{let i=r.readFileSync(t,e);return i=Ua(i),JSON.parse(i,e.reviver)}catch(i){if(n)throw i.message=`${t}: ${i.message}`,i;return null}}async function x0(t,e,r={}){let n=r.fs||gt,i=Ba(e,r);await kr.fromCallback(n.writeFile)(t,i,r)}var S0=kr.fromPromise(x0);function E0(t,e,r={}){let n=r.fs||gt,i=Ba(e,r);return n.writeFileSync(t,i,r)}var C0={readFile:_0,readFileSync:w0,writeFile:S0,writeFileSync:E0};Xa.exports=C0});var za=y((Tv,Ga)=>{"use strict";var qr=Ha();Ga.exports={readJson:qr.readFile,readJsonSync:qr.readFileSync,writeJson:qr.writeFile,writeJsonSync:qr.writeFileSync}});var Mr=y((Nv,Va)=>{"use strict";var P0=_e().fromCallback,Jt=ue(),Wa=require("path"),Ja=ke(),O0=Ge().pathExists;function D0(t,e,r,n){typeof r=="function"&&(n=r,r="utf8");let i=Wa.dirname(t);O0(i,(s,o)=>{if(s)return n(s);if(o)return Jt.writeFile(t,e,r,n);Ja.mkdirs(i,a=>{if(a)return n(a);Jt.writeFile(t,e,r,n)})})}function F0(t,...e){let r=Wa.dirname(t);if(Jt.existsSync(r))return Jt.writeFileSync(t,...e);Ja.mkdirsSync(r),Jt.writeFileSync(t,...e)}Va.exports={outputFile:P0(D0),outputFileSync:F0}});var Ka=y((jv,Ya)=>{"use strict";var{stringify:I0}=Rr(),{outputFile:A0}=Mr();async function R0(t,e,r={}){let n=I0(e,r);await A0(t,n,r)}Ya.exports=R0});var Za=y((Lv,Qa)=>{"use strict";var{stringify:k0}=Rr(),{outputFileSync:q0}=Mr();function M0(t,e,r){let n=k0(e,r);q0(t,n,r)}Qa.exports=M0});var tu=y(($v,eu)=>{"use strict";var T0=_e().fromPromise,ge=za();ge.outputJson=T0(Ka());ge.outputJsonSync=Za();ge.outputJSON=ge.outputJson;ge.outputJSONSync=ge.outputJsonSync;ge.writeJSON=ge.writeJson;ge.writeJSONSync=ge.writeJsonSync;ge.readJSON=ge.readJson;ge.readJSONSync=ge.readJsonSync;eu.exports=ge});var au=y((Bv,ou)=>{"use strict";var iu=ue(),N0=require("path"),j0=ei().copySync,su=zt().removeSync,L0=ke().mkdirpSync,ru=$t();function $0(t,e,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i}=ru.checkPathsSync(t,e,"move");return ru.checkParentPathsSync(t,i,e,"move"),L0(N0.dirname(e)),B0(t,e,n)}function B0(t,e,r){if(r)return su(e),nu(t,e,r);if(iu.existsSync(e))throw new Error("dest already exists.");return nu(t,e,r)}function nu(t,e,r){try{iu.renameSync(t,e)}catch(n){if(n.code!=="EXDEV")throw n;return U0(t,e,r)}}function U0(t,e,r){return j0(t,e,{overwrite:r,errorOnExist:!0}),su(t)}ou.exports=$0});var cu=y((Uv,uu)=>{"use strict";uu.exports={moveSync:au()}});var pu=y((Xv,hu)=>{"use strict";var X0=ue(),H0=require("path"),G0=ri().copy,du=zt().remove,z0=ke().mkdirp,W0=Ge().pathExists,lu=$t();function J0(t,e,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;lu.checkPaths(t,e,"move",(s,o)=>{if(s)return n(s);let{srcStat:a}=o;lu.checkParentPaths(t,a,e,"move",u=>{if(u)return n(u);z0(H0.dirname(e),h=>h?n(h):V0(t,e,i,n))})})}function V0(t,e,r,n){if(r)return du(e,i=>i?n(i):fu(t,e,r,n));W0(e,(i,s)=>i?n(i):s?n(new Error("dest already exists.")):fu(t,e,r,n))}function fu(t,e,r,n){X0.rename(t,e,i=>i?i.code!=="EXDEV"?n(i):Y0(t,e,r,n):n())}function Y0(t,e,r,n){G0(t,e,{overwrite:r,errorOnExist:!0},s=>s?n(s):du(t,n))}hu.exports=J0});var gu=y((Hv,mu)=>{"use strict";var K0=_e().fromCallback;mu.exports={move:K0(pu())}});var yt=y((Gv,ii)=>{"use strict";ii.exports={...Lt(),...ei(),...ri(),...ga(),...La(),...tu(),...ke(),...cu(),...gu(),...Mr(),...Ge(),...zt()};var yu=require("fs");Object.getOwnPropertyDescriptor(yu,"promises")&&Object.defineProperty(ii.exports,"promises",{get(){return yu.promises}})});var Pu=y((Wv,Cu)=>{"use strict";var Z0=/[|\\{}()[\]^$+*?.]/g;Cu.exports=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(Z0,"\\$&")}});var Du=y((Jv,Ou)=>{"use strict";Ou.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var ai=y((Vv,Ru)=>{var nt=Du(),Au={};for(jr in nt)nt.hasOwnProperty(jr)&&(Au[nt[jr]]=jr);var jr,E=Ru.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(ye in E)if(E.hasOwnProperty(ye)){if(!("channels"in E[ye]))throw new Error("missing channels property: "+ye);if(!("labels"in E[ye]))throw new Error("missing channel labels property: "+ye);if(E[ye].labels.length!==E[ye].channels)throw new Error("channel and label counts mismatch: "+ye);Fu=E[ye].channels,Iu=E[ye].labels,delete E[ye].channels,delete E[ye].labels,Object.defineProperty(E[ye],"channels",{value:Fu}),Object.defineProperty(E[ye],"labels",{value:Iu})}var Fu,Iu,ye;E.rgb.hsl=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,a,u,h;return s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-r)/o),a=Math.min(a*60,360),a<0&&(a+=360),h=(i+s)/2,s===i?u=0:h<=.5?u=o/(s+i):u=o/(2-s-i),[a,u*100,h*100]};E.rgb.hsv=function(t){var e,r,n,i,s,o=t[0]/255,a=t[1]/255,u=t[2]/255,h=Math.max(o,a,u),c=h-Math.min(o,a,u),p=function(g){return(h-g)/6/c+1/2};return c===0?i=s=0:(s=c/h,e=p(o),r=p(a),n=p(u),o===h?i=n-r:a===h?i=1/3+e-n:u===h&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,h*100]};E.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2],i=E.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};E.rgb.cmyk=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i,s,o,a;return a=Math.min(1-e,1-r,1-n),i=(1-e-a)/(1-a)||0,s=(1-r-a)/(1-a)||0,o=(1-n-a)/(1-a)||0,[i*100,s*100,o*100,a*100]};function ep(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}E.rgb.keyword=function(t){var e=Au[t];if(e)return e;var r=1/0,n;for(var i in nt)if(nt.hasOwnProperty(i)){var s=nt[i],o=ep(t,s);o<r&&(r=o,n=i)}return n};E.keyword.rgb=function(t){return nt[t]};E.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};E.rgb.lab=function(t){var e=E.rgb.xyz(t),r=e[0],n=e[1],i=e[2],s,o,a;return r/=95.047,n/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=116*n-16,o=500*(r-n),a=200*(n-i),[s,o,a]};E.hsl.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s,o,a,u;if(r===0)return u=n*255,[u,u,u];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,a=[0,0,0];for(var h=0;h<3;h++)o=e+1/3*-(h-1),o<0&&o++,o>1&&o--,6*o<1?u=i+(s-i)*6*o:2*o<1?u=s:3*o<2?u=i+(s-i)*(2/3-o)*6:u=i,a[h]=u*255;return a};E.hsl.hsv=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=r,s=Math.max(n,.01),o,a;return n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s,a=(n+r)/2,o=n===0?2*i/(s+i):2*r/(n+r),[e,o*100,a*100]};E.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),o=255*n*(1-r),a=255*n*(1-r*s),u=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}};E.hsv.hsl=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),s,o,a;return a=(2-r)*n,s=(2-r)*i,o=r*i,o/=s<=1?s:2-s,o=o||0,a/=2,[e,o*100,a*100]};E.hwb.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s,o,a,u;i>1&&(r/=i,n/=i),s=Math.floor(6*e),o=1-n,a=6*e-s,s&1&&(a=1-a),u=r+a*(o-r);var h,c,p;switch(s){default:case 6:case 0:h=o,c=u,p=r;break;case 1:h=u,c=o,p=r;break;case 2:h=r,c=o,p=u;break;case 3:h=r,c=u,p=o;break;case 4:h=u,c=r,p=o;break;case 5:h=o,c=r,p=u;break}return[h*255,c*255,p*255]};E.cmyk.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s,o,a;return s=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i),[s*255,o*255,a*255]};E.xyz.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};E.xyz.lab=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return e/=95.047,r/=100,n/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,s=500*(e-r),o=200*(r-n),[i,s,o]};E.lab.xyz=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;s=(e+16)/116,i=r/500+s,o=s-n/200;var a=Math.pow(s,3),u=Math.pow(i,3),h=Math.pow(o,3);return s=a>.008856?a:(s-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o=h>.008856?h:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};E.lab.lch=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return i=Math.atan2(n,r),s=i*360/2/Math.PI,s<0&&(s+=360),o=Math.sqrt(r*r+n*n),[e,o,s]};E.lch.lab=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return o=n/360*2*Math.PI,i=r*Math.cos(o),s=r*Math.sin(o),[e,i,s]};E.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],i=1 in arguments?arguments[1]:E.rgb.hsv(t)[2];if(i=Math.round(i/50),i===0)return 30;var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return i===2&&(s+=60),s};E.hsv.ansi16=function(t){return E.rgb.ansi16(E.hsv.rgb(t),t[2])};E.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];if(e===r&&r===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var i=16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};E.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};E.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var r,n=Math.floor(t/36)/5*255,i=Math.floor((r=t%36)/6)/5*255,s=r%6/5*255;return[n,i,s]};E.rgb.hex=function(t){var e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255),r=e.toString(16).toUpperCase();return"000000".substring(r.length)+r};E.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];e[0].length===3&&(r=r.split("").map(function(a){return a+a}).join(""));var n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};E.rgb.hcg=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,a,u;return o<1?a=s/(1-o):a=0,o<=0?u=0:i===e?u=(r-n)/o%6:i===r?u=2+(n-e)/o:u=4+(e-r)/o+4,u/=6,u%=1,[u*360,o*100,a*100]};E.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1,i=0;return r<.5?n=2*e*r:n=2*e*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};E.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};E.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],s=e%1*6,o=s%1,a=1-o,u=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};E.hcg.hsv=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};E.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100,n=r*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};E.hcg.hwb=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};E.hwb.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1-r,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};E.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};E.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};E.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};E.gray.hsl=E.gray.hsv=function(t){return[0,0,t[0]]};E.gray.hwb=function(t){return[0,100,t[0]]};E.gray.cmyk=function(t){return[0,0,0,t[0]]};E.gray.lab=function(t){return[t[0],0,0]};E.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,r=(e<<16)+(e<<8)+e,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};E.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}});var qu=y((Yv,ku)=>{var Lr=ai();function tp(){for(var t={},e=Object.keys(Lr),r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function rp(t){var e=tp(),r=[t];for(e[t].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(Lr[n]),s=i.length,o=0;o<s;o++){var a=i[o],u=e[a];u.distance===-1&&(u.distance=e[n].distance+1,u.parent=n,r.unshift(a))}return e}function np(t,e){return function(r){return e(t(r))}}function ip(t,e){for(var r=[e[t].parent,t],n=Lr[e[t].parent][t],i=e[t].parent;e[i].parent;)r.unshift(e[i].parent),n=np(Lr[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}ku.exports=function(t){for(var e=rp(t),r={},n=Object.keys(e),i=n.length,s=0;s<i;s++){var o=n[s],a=e[o];a.parent!==null&&(r[o]=ip(o,e))}return r}});var Tu=y((Kv,Mu)=>{var ui=ai(),sp=qu(),vt={},op=Object.keys(ui);function ap(t){var e=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function up(t){var e=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=t(r);if(typeof n=="object")for(var i=n.length,s=0;s<i;s++)n[s]=Math.round(n[s]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}op.forEach(function(t){vt[t]={},Object.defineProperty(vt[t],"channels",{value:ui[t].channels}),Object.defineProperty(vt[t],"labels",{value:ui[t].labels});var e=sp(t),r=Object.keys(e);r.forEach(function(n){var i=e[n];vt[t][n]=up(i),vt[t][n].raw=ap(i)})});Mu.exports=vt});var ju=y((Qv,Nu)=>{"use strict";var bt=Tu(),$r=(t,e)=>function(){return`\x1B[${t.apply(bt,arguments)+e}m`},Br=(t,e)=>function(){let r=t.apply(bt,arguments);return`\x1B[${38+e};5;${r}m`},Ur=(t,e)=>function(){let r=t.apply(bt,arguments);return`\x1B[${38+e};2;${r[0]};${r[1]};${r[2]}m`};function cp(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.grey=e.color.gray;for(let i of Object.keys(e)){let s=e[i];for(let o of Object.keys(s)){let a=s[o];e[o]={open:`\x1B[${a[0]}m`,close:`\x1B[${a[1]}m`},s[o]=e[o],t.set(a[0],a[1])}Object.defineProperty(e,i,{value:s,enumerable:!1}),Object.defineProperty(e,"codes",{value:t,enumerable:!1})}let r=i=>i,n=(i,s,o)=>[i,s,o];e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi={ansi:$r(r,0)},e.color.ansi256={ansi256:Br(r,0)},e.color.ansi16m={rgb:Ur(n,0)},e.bgColor.ansi={ansi:$r(r,10)},e.bgColor.ansi256={ansi256:Br(r,10)},e.bgColor.ansi16m={rgb:Ur(n,10)};for(let i of Object.keys(bt)){if(typeof bt[i]!="object")continue;let s=bt[i];i==="ansi16"&&(i="ansi"),"ansi16"in s&&(e.color.ansi[i]=$r(s.ansi16,0),e.bgColor.ansi[i]=$r(s.ansi16,10)),"ansi256"in s&&(e.color.ansi256[i]=Br(s.ansi256,0),e.bgColor.ansi256[i]=Br(s.ansi256,10)),"rgb"in s&&(e.color.ansi16m[i]=Ur(s.rgb,0),e.bgColor.ansi16m[i]=Ur(s.rgb,10))}return e}Object.defineProperty(Nu,"exports",{enumerable:!0,get:cp})});var $u=y((Zv,Lu)=>{"use strict";Lu.exports=(t,e)=>{e=e||process.argv;let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1?!0:n<i)}});var Uu=y((eb,Bu)=>{"use strict";var lp=require("os"),qe=$u(),le=process.env,_t;qe("no-color")||qe("no-colors")||qe("color=false")?_t=!1:(qe("color")||qe("colors")||qe("color=true")||qe("color=always"))&&(_t=!0);"FORCE_COLOR"in le&&(_t=le.FORCE_COLOR.length===0||parseInt(le.FORCE_COLOR,10)!==0);function fp(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function dp(t){if(_t===!1)return 0;if(qe("color=16m")||qe("color=full")||qe("color=truecolor"))return 3;if(qe("color=256"))return 2;if(t&&!t.isTTY&&_t!==!0)return 0;let e=_t?1:0;if(process.platform==="win32"){let r=lp.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in le)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in le)||le.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in le)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(le.TEAMCITY_VERSION)?1:0;if(le.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in le){let r=parseInt((le.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(le.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(le.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(le.TERM)||"COLORTERM"in le?1:(le.TERM==="dumb",e)}function ci(t){let e=dp(t);return fp(e)}Bu.exports={supportsColor:ci,stdout:ci(process.stdout),stderr:ci(process.stderr)}});var Wu=y((tb,zu)=>{"use strict";var hp=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Xu=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,pp=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,mp=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,gp=new Map([["n",`
8
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Gu(t){return t[0]==="u"&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):gp.get(t)||t}function yp(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),i;for(let s of n)if(!isNaN(s))r.push(Number(s));else if(i=s.match(pp))r.push(i[2].replace(mp,(o,a,u)=>a?Gu(a):u));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`);return r}function vp(t){Xu.lastIndex=0;let e=[],r;for(;(r=Xu.exec(t))!==null;){let n=r[1];if(r[2]){let i=yp(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function Hu(t,e){let r={};for(let i of e)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=t;for(let i of Object.keys(r))if(Array.isArray(r[i])){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);r[i].length>0?n=n[i].apply(n,r[i]):n=n[i]}return n}zu.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(hp,(s,o,a,u,h,c)=>{if(o)i.push(Gu(o));else if(u){let p=i.join("");i=[],n.push(r.length===0?p:Hu(t,r)(p)),r.push({inverse:a,styles:vp(u)})}else if(h){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Hu(t,r)(i.join(""))),i=[],r.pop()}else i.push(c)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var Hr=y((rb,Yt)=>{"use strict";var fi=Pu(),Y=ju(),li=Uu().stdout,bp=Wu(),Vu=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),Yu=["ansi","ansi","ansi256","ansi16m"],Ku=new Set(["gray"]),wt=Object.create(null);function Ju(t,e){e=e||{};let r=li?li.level:0;t.level=e.level===void 0?r:e.level,t.enabled="enabled"in e?e.enabled:t.level>0}function Vt(t){if(!this||!(this instanceof Vt)||this.template){let e={};return Ju(e,t),e.template=function(){let r=[].slice.call(arguments);return xp.apply(null,[e.template].concat(r))},Object.setPrototypeOf(e,Vt.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=Vt,e.template}Ju(this,t)}Vu&&(Y.blue.open="\x1B[94m");for(let t of Object.keys(Y))Y[t].closeRe=new RegExp(fi(Y[t].close),"g"),wt[t]={get(){let e=Y[t];return Xr.call(this,this._styles?this._styles.concat(e):[e],this._empty,t)}};wt.visible={get(){return Xr.call(this,this._styles||[],!0,"visible")}};Y.color.closeRe=new RegExp(fi(Y.color.close),"g");for(let t of Object.keys(Y.color.ansi))Ku.has(t)||(wt[t]={get(){let e=this.level;return function(){let n={open:Y.color[Yu[e]][t].apply(null,arguments),close:Y.color.close,closeRe:Y.color.closeRe};return Xr.call(this,this._styles?this._styles.concat(n):[n],this._empty,t)}}});Y.bgColor.closeRe=new RegExp(fi(Y.bgColor.close),"g");for(let t of Object.keys(Y.bgColor.ansi)){if(Ku.has(t))continue;let e="bg"+t[0].toUpperCase()+t.slice(1);wt[e]={get(){let r=this.level;return function(){let i={open:Y.bgColor[Yu[r]][t].apply(null,arguments),close:Y.bgColor.close,closeRe:Y.bgColor.closeRe};return Xr.call(this,this._styles?this._styles.concat(i):[i],this._empty,t)}}}}var _p=Object.defineProperties(()=>{},wt);function Xr(t,e,r){let n=function(){return wp.apply(n,arguments)};n._styles=t,n._empty=e;let i=this;return Object.defineProperty(n,"level",{enumerable:!0,get(){return i.level},set(s){i.level=s}}),Object.defineProperty(n,"enabled",{enumerable:!0,get(){return i.enabled},set(s){i.enabled=s}}),n.hasGrey=this.hasGrey||r==="gray"||r==="grey",n.__proto__=_p,n}function wp(){let t=arguments,e=t.length,r=String(arguments[0]);if(e===0)return"";if(e>1)for(let i=1;i<e;i++)r+=" "+t[i];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;let n=Y.dim.open;Vu&&this.hasGrey&&(Y.dim.open="");for(let i of this._styles.slice().reverse())r=i.open+r.replace(i.closeRe,i.open)+i.close,r=r.replace(/\r?\n/g,`${i.close}$&${i.open}`);return Y.dim.open=n,r}function xp(t,e){if(!Array.isArray(e))return[].slice.call(arguments,1).join(" ");let r=[].slice.call(arguments,2),n=[e.raw[0]];for(let i=1;i<e.length;i++)n.push(String(r[i-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(e.raw[i]));return bp(t,n.join(""))}Object.defineProperties(Vt.prototype,wt);Yt.exports=Vt();Yt.exports.supportsColor=li;Yt.exports.default=Yt.exports});var xt=y((nb,di)=>{var Sp=require("fs"),Ep=require("path");function Qu(t){console.log(`[dotenv][DEBUG] ${t}`)}var Cp=`
9
- `,Pp=/^\s*([\w.-]+)\s*=\s*(.*)?\s*$/,Op=/\\n/g,Dp=/\n|\r|\r\n/;function Zu(t,e){let r=!!(e&&e.debug),n={};return t.toString().split(Dp).forEach(function(i,s){let o=i.match(Pp);if(o!=null){let a=o[1],u=o[2]||"",h=u.length-1,c=u[0]==='"'&&u[h]==='"';u[0]==="'"&&u[h]==="'"||c?(u=u.substring(1,h),c&&(u=u.replace(Op,Cp))):u=u.trim(),n[a]=u}else r&&Qu(`did not match key and value when parsing line ${s+1}: ${i}`)}),n}function Fp(t){let e=Ep.resolve(process.cwd(),".env"),r="utf8",n=!1;t&&(t.path!=null&&(e=t.path),t.encoding!=null&&(r=t.encoding),t.debug!=null&&(n=!0));try{let i=Zu(Sp.readFileSync(e,{encoding:r}),{debug:n});return Object.keys(i).forEach(function(s){Object.prototype.hasOwnProperty.call(process.env,s)?n&&Qu(`"${s}" is already defined in \`process.env\` and will not be overwritten`):process.env[s]=i[s]}),{parsed:i}}catch(i){return{error:i}}}di.exports.config=Fp;di.exports.parse=Zu});var tc=y((ib,ec)=>{"use strict";ec.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var hi=y((sb,nc)=>{var Kt=tc(),rc={};for(let t of Object.keys(Kt))rc[Kt[t]]=t;var C={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};nc.exports=C;for(let t of Object.keys(C)){if(!("channels"in C[t]))throw new Error("missing channels property: "+t);if(!("labels"in C[t]))throw new Error("missing channel labels property: "+t);if(C[t].labels.length!==C[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:r}=C[t];delete C[t].channels,delete C[t].labels,Object.defineProperty(C[t],"channels",{value:e}),Object.defineProperty(C[t],"labels",{value:r})}C.rgb.hsl=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,a,u;s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-r)/o),a=Math.min(a*60,360),a<0&&(a+=360);let h=(i+s)/2;return s===i?u=0:h<=.5?u=o/(s+i):u=o/(2-s-i),[a,u*100,h*100]};C.rgb.hsv=function(t){let e,r,n,i,s,o=t[0]/255,a=t[1]/255,u=t[2]/255,h=Math.max(o,a,u),c=h-Math.min(o,a,u),p=function(g){return(h-g)/6/c+1/2};return c===0?(i=0,s=0):(s=c/h,e=p(o),r=p(a),n=p(u),o===h?i=n-r:a===h?i=1/3+e-n:u===h&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,h*100]};C.rgb.hwb=function(t){let e=t[0],r=t[1],n=t[2],i=C.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};C.rgb.cmyk=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(1-e,1-r,1-n),s=(1-e-i)/(1-i)||0,o=(1-r-i)/(1-i)||0,a=(1-n-i)/(1-i)||0;return[s*100,o*100,a*100,i*100]};function Ip(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}C.rgb.keyword=function(t){let e=rc[t];if(e)return e;let r=1/0,n;for(let i of Object.keys(Kt)){let s=Kt[i],o=Ip(t,s);o<r&&(r=o,n=i)}return n};C.keyword.rgb=function(t){return Kt[t]};C.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};C.rgb.lab=function(t){let e=C.rgb.xyz(t),r=e[0],n=e[1],i=e[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let s=116*n-16,o=500*(r-n),a=200*(n-i);return[s,o,a]};C.hsl.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s,o;if(r===0)return o=n*255,[o,o,o];n<.5?i=n*(1+r):i=n+r-n*r;let a=2*n-i,u=[0,0,0];for(let h=0;h<3;h++)s=e+1/3*-(h-1),s<0&&s++,s>1&&s--,6*s<1?o=a+(i-a)*6*s:2*s<1?o=i:3*s<2?o=a+(i-a)*(2/3-s)*6:o=a,u[h]=o*255;return u};C.hsl.hsv=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=r,s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s;let o=(n+r)/2,a=n===0?2*i/(s+i):2*r/(n+r);return[e,a*100,o*100]};C.hsv.rgb=function(t){let e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),o=255*n*(1-r),a=255*n*(1-r*s),u=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}};C.hsv.hsl=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),s,o;o=(2-r)*n;let a=(2-r)*i;return s=r*i,s/=a<=1?a:2-a,s=s||0,o/=2,[e,s*100,o*100]};C.hwb.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let o=Math.floor(6*e),a=1-n;s=6*e-o,o&1&&(s=1-s);let u=r+s*(a-r),h,c,p;switch(o){default:case 6:case 0:h=a,c=u,p=r;break;case 1:h=u,c=a,p=r;break;case 2:h=r,c=a,p=u;break;case 3:h=r,c=u,p=a;break;case 4:h=u,c=r,p=a;break;case 5:h=a,c=r,p=u;break}return[h*255,c*255,p*255]};C.cmyk.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i);return[s*255,o*255,a*255]};C.xyz.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};C.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,s=500*(e-r),o=200*(r-n);return[i,s,o]};C.lab.xyz=function(t){let e=t[0],r=t[1],n=t[2],i,s,o;s=(e+16)/116,i=r/500+s,o=s-n/200;let a=s**3,u=i**3,h=o**3;return s=a>.008856?a:(s-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o=h>.008856?h:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};C.lab.lch=function(t){let e=t[0],r=t[1],n=t[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let o=Math.sqrt(r*r+n*n);return[e,o,i]};C.lch.lab=function(t){let e=t[0],r=t[1],i=t[2]/360*2*Math.PI,s=r*Math.cos(i),o=r*Math.sin(i);return[e,s,o]};C.rgb.ansi16=function(t,e=null){let[r,n,i]=t,s=e===null?C.rgb.hsv(t)[2]:e;if(s=Math.round(s/50),s===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(o+=60),o};C.hsv.ansi16=function(t){return C.rgb.ansi16(C.hsv.rgb(t),t[2])};C.rgb.ansi256=function(t){let e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};C.ansi16.rgb=function(t){let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};C.ansi256.rgb=function(t){if(t>=232){let s=(t-232)*10+8;return[s,s,s]}t-=16;let e,r=Math.floor(t/36)/5*255,n=Math.floor((e=t%36)/6)/5*255,i=e%6/5*255;return[r,n,i]};C.rgb.hex=function(t){let r=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};C.hex.rgb=function(t){let e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let r=e[0];e[0].length===3&&(r=r.split("").map(a=>a+a).join(""));let n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};C.rgb.hcg=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,a,u;return o<1?a=s/(1-o):a=0,o<=0?u=0:i===e?u=(r-n)/o%6:i===r?u=2+(n-e)/o:u=4+(e-r)/o,u/=6,u%=1,[u*360,o*100,a*100]};C.hsl.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};C.hsv.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};C.hcg.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],s=e%1*6,o=s%1,a=1-o,u=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};C.hcg.hsv=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};C.hcg.hsl=function(t){let e=t[1]/100,n=t[2]/100*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};C.hcg.hwb=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};C.hwb.hcg=function(t){let e=t[1]/100,n=1-t[2]/100,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};C.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};C.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};C.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};C.gray.hsl=function(t){return[0,0,t[0]]};C.gray.hsv=C.gray.hsl;C.gray.hwb=function(t){return[0,100,t[0]]};C.gray.cmyk=function(t){return[0,0,0,t[0]]};C.gray.lab=function(t){return[t[0],0,0]};C.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n};C.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var sc=y((ob,ic)=>{var Gr=hi();function Ap(){let t={},e=Object.keys(Gr);for(let r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function Rp(t){let e=Ap(),r=[t];for(e[t].distance=0;r.length;){let n=r.pop(),i=Object.keys(Gr[n]);for(let s=i.length,o=0;o<s;o++){let a=i[o],u=e[a];u.distance===-1&&(u.distance=e[n].distance+1,u.parent=n,r.unshift(a))}}return e}function kp(t,e){return function(r){return e(t(r))}}function qp(t,e){let r=[e[t].parent,t],n=Gr[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)r.unshift(e[i].parent),n=kp(Gr[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}ic.exports=function(t){let e=Rp(t),r={},n=Object.keys(e);for(let i=n.length,s=0;s<i;s++){let o=n[s];e[o].parent!==null&&(r[o]=qp(o,e))}return r}});var ac=y((ab,oc)=>{var pi=hi(),Mp=sc(),St={},Tp=Object.keys(pi);function Np(t){let e=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function jp(t){let e=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=t(r);if(typeof i=="object")for(let s=i.length,o=0;o<s;o++)i[o]=Math.round(i[o]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}Tp.forEach(t=>{St[t]={},Object.defineProperty(St[t],"channels",{value:pi[t].channels}),Object.defineProperty(St[t],"labels",{value:pi[t].labels});let e=Mp(t);Object.keys(e).forEach(n=>{let i=e[n];St[t][n]=jp(i),St[t][n].raw=Np(i)})});oc.exports=St});var hc=y((ub,dc)=>{"use strict";var uc=(t,e)=>(...r)=>`\x1B[${t(...r)+e}m`,cc=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};5;${n}m`},lc=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};2;${n[0]};${n[1]};${n[2]}m`},zr=t=>t,fc=(t,e,r)=>[t,e,r],Et=(t,e,r)=>{Object.defineProperty(t,e,{get:()=>{let n=r();return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},mi,Ct=(t,e,r,n)=>{mi===void 0&&(mi=ac());let i=n?10:0,s={};for(let[o,a]of Object.entries(mi)){let u=o==="ansi16"?"ansi":o;o===e?s[u]=t(r,i):typeof a=="object"&&(s[u]=t(a[e],i))}return s};function Lp(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[r,n]of Object.entries(e)){for(let[i,s]of Object.entries(n))e[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=e[i],t.set(s[0],s[1]);Object.defineProperty(e,r,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",Et(e.color,"ansi",()=>Ct(uc,"ansi16",zr,!1)),Et(e.color,"ansi256",()=>Ct(cc,"ansi256",zr,!1)),Et(e.color,"ansi16m",()=>Ct(lc,"rgb",fc,!1)),Et(e.bgColor,"ansi",()=>Ct(uc,"ansi16",zr,!0)),Et(e.bgColor,"ansi256",()=>Ct(cc,"ansi256",zr,!0)),Et(e.bgColor,"ansi16m",()=>Ct(lc,"rgb",fc,!0)),e}Object.defineProperty(dc,"exports",{enumerable:!0,get:Lp})});var mc=y((cb,pc)=>{"use strict";pc.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}});var vi=y((lb,yc)=>{"use strict";var $p=require("os"),gc=require("tty"),Ie=mc(),{env:Z}=process,Je;Ie("no-color")||Ie("no-colors")||Ie("color=false")||Ie("color=never")?Je=0:(Ie("color")||Ie("colors")||Ie("color=true")||Ie("color=always"))&&(Je=1);"FORCE_COLOR"in Z&&(Z.FORCE_COLOR==="true"?Je=1:Z.FORCE_COLOR==="false"?Je=0:Je=Z.FORCE_COLOR.length===0?1:Math.min(parseInt(Z.FORCE_COLOR,10),3));function gi(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function yi(t,e){if(Je===0)return 0;if(Ie("color=16m")||Ie("color=full")||Ie("color=truecolor"))return 3;if(Ie("color=256"))return 2;if(t&&!e&&Je===void 0)return 0;let r=Je||0;if(Z.TERM==="dumb")return r;if(process.platform==="win32"){let n=$p.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Z)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in Z)||Z.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Z)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Z.TEAMCITY_VERSION)?1:0;if(Z.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Z){let n=parseInt((Z.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Z.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Z.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Z.TERM)||"COLORTERM"in Z?1:r}function Bp(t){let e=yi(t,t&&t.isTTY);return gi(e)}yc.exports={supportsColor:Bp,stdout:gi(yi(!0,gc.isatty(1))),stderr:gi(yi(!0,gc.isatty(2)))}});var bc=y((fb,vc)=>{"use strict";var Up=(t,e,r)=>{let n=t.indexOf(e);if(n===-1)return t;let i=e.length,s=0,o="";do o+=t.substr(s,n-s)+e+r,s=n+i,n=t.indexOf(e,s);while(n!==-1);return o+=t.substr(s),o},Xp=(t,e,r,n)=>{let i=0,s="";do{let o=t[n-1]==="\r";s+=t.substr(i,(o?n-1:n)-i)+e+(o?`\r
10
- `:`
11
- `)+r,i=n+1,n=t.indexOf(`
12
- `,i)}while(n!==-1);return s+=t.substr(i),s};vc.exports={stringReplaceAll:Up,stringEncaseCRLFWithFirstIndex:Xp}});var Ec=y((db,Sc)=>{"use strict";var Hp=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,_c=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Gp=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,zp=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,Wp=new Map([["n",`
13
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function xc(t){let e=t[0]==="u",r=t[1]==="{";return e&&!r&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):e&&r?String.fromCodePoint(parseInt(t.slice(2,-1),16)):Wp.get(t)||t}function Jp(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),i;for(let s of n){let o=Number(s);if(!Number.isNaN(o))r.push(o);else if(i=s.match(Gp))r.push(i[2].replace(zp,(a,u,h)=>u?xc(u):h));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`)}return r}function Vp(t){_c.lastIndex=0;let e=[],r;for(;(r=_c.exec(t))!==null;){let n=r[1];if(r[2]){let i=Jp(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function wc(t,e){let r={};for(let i of e)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=t;for(let[i,s]of Object.entries(r))if(Array.isArray(s)){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);n=s.length>0?n[i](...s):n[i]}return n}Sc.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(Hp,(s,o,a,u,h,c)=>{if(o)i.push(xc(o));else if(u){let p=i.join("");i=[],n.push(r.length===0?p:wc(t,r)(p)),r.push({inverse:a,styles:Vp(u)})}else if(h){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(wc(t,r)(i.join(""))),i=[],r.pop()}else i.push(c)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var Ac=y((hb,Ic)=>{"use strict";var Qt=hc(),{stdout:_i,stderr:wi}=vi(),{stringReplaceAll:Yp,stringEncaseCRLFWithFirstIndex:Kp}=bc(),{isArray:Wr}=Array,Pc=["ansi","ansi","ansi256","ansi16m"],Pt=Object.create(null),Qp=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=_i?_i.level:0;t.level=e.level===void 0?r:e.level},xi=class{constructor(e){return Oc(e)}},Oc=t=>{let e={};return Qp(e,t),e.template=(...r)=>Fc(e.template,...r),Object.setPrototypeOf(e,Jr.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},e.template.Instance=xi,e.template};function Jr(t){return Oc(t)}for(let[t,e]of Object.entries(Qt))Pt[t]={get(){let r=Vr(this,Si(e.open,e.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:r}),r}};Pt.visible={get(){let t=Vr(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:t}),t}};var Dc=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let t of Dc)Pt[t]={get(){let{level:e}=this;return function(...r){let n=Si(Qt.color[Pc[e]][t](...r),Qt.color.close,this._styler);return Vr(this,n,this._isEmpty)}}};for(let t of Dc){let e="bg"+t[0].toUpperCase()+t.slice(1);Pt[e]={get(){let{level:r}=this;return function(...n){let i=Si(Qt.bgColor[Pc[r]][t](...n),Qt.bgColor.close,this._styler);return Vr(this,i,this._isEmpty)}}}}var Zp=Object.defineProperties(()=>{},{...Pt,level:{enumerable:!0,get(){return this._generator.level},set(t){this._generator.level=t}}}),Si=(t,e,r)=>{let n,i;return r===void 0?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},Vr=(t,e,r)=>{let n=(...i)=>Wr(i[0])&&Wr(i[0].raw)?Cc(n,Fc(n,...i)):Cc(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,Zp),n._generator=t,n._styler=e,n._isEmpty=r,n},Cc=(t,e)=>{if(t.level<=0||!e)return t._isEmpty?"":e;let r=t._styler;if(r===void 0)return e;let{openAll:n,closeAll:i}=r;if(e.indexOf("\x1B")!==-1)for(;r!==void 0;)e=Yp(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
14
- `);return s!==-1&&(e=Kp(e,i,n,s)),n+e+i},bi,Fc=(t,...e)=>{let[r]=e;if(!Wr(r)||!Wr(r.raw))return e.join(" ");let n=e.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return bi===void 0&&(bi=Ec()),bi(t,i.join(""))};Object.defineProperties(Jr.prototype,Pt);var Yr=Jr();Yr.supportsColor=_i;Yr.stderr=Jr({level:wi?wi.level:0});Yr.stderr.supportsColor=wi;Ic.exports=Yr});var Rc=y((Ei,Ci)=>{(function(t,e){typeof Ei=="object"&&typeof Ci<"u"?Ci.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self,t.tinycolor=e())})(Ei,function(){"use strict";function t(l){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},t(l)}var e=/^\s+/,r=/\s+$/;function n(l,f){if(l=l||"",f=f||{},l instanceof n)return l;if(!(this instanceof n))return new n(l,f);var d=i(l);this._originalInput=l,this._r=d.r,this._g=d.g,this._b=d.b,this._a=d.a,this._roundA=Math.round(100*this._a)/100,this._format=f.format||d.format,this._gradientType=f.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=d.ok}n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var f=this.toRgb();return(f.r*299+f.g*587+f.b*114)/1e3},getLuminance:function(){var f=this.toRgb(),d,v,w,_,T,U;return d=f.r/255,v=f.g/255,w=f.b/255,d<=.03928?_=d/12.92:_=Math.pow((d+.055)/1.055,2.4),v<=.03928?T=v/12.92:T=Math.pow((v+.055)/1.055,2.4),w<=.03928?U=w/12.92:U=Math.pow((w+.055)/1.055,2.4),.2126*_+.7152*T+.0722*U},setAlpha:function(f){return this._a=B(f),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var f=u(this._r,this._g,this._b);return{h:f.h*360,s:f.s,v:f.v,a:this._a}},toHsvString:function(){var f=u(this._r,this._g,this._b),d=Math.round(f.h*360),v=Math.round(f.s*100),w=Math.round(f.v*100);return this._a==1?"hsv("+d+", "+v+"%, "+w+"%)":"hsva("+d+", "+v+"%, "+w+"%, "+this._roundA+")"},toHsl:function(){var f=o(this._r,this._g,this._b);return{h:f.h*360,s:f.s,l:f.l,a:this._a}},toHslString:function(){var f=o(this._r,this._g,this._b),d=Math.round(f.h*360),v=Math.round(f.s*100),w=Math.round(f.l*100);return this._a==1?"hsl("+d+", "+v+"%, "+w+"%)":"hsla("+d+", "+v+"%, "+w+"%, "+this._roundA+")"},toHex:function(f){return c(this._r,this._g,this._b,f)},toHexString:function(f){return"#"+this.toHex(f)},toHex8:function(f){return p(this._r,this._g,this._b,this._a,f)},toHex8String:function(f){return"#"+this.toHex8(f)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(F(this._r,255)*100)+"%",g:Math.round(F(this._g,255)*100)+"%",b:Math.round(F(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(F(this._r,255)*100)+"%, "+Math.round(F(this._g,255)*100)+"%, "+Math.round(F(this._b,255)*100)+"%)":"rgba("+Math.round(F(this._r,255)*100)+"%, "+Math.round(F(this._g,255)*100)+"%, "+Math.round(F(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:k[c(this._r,this._g,this._b,!0)]||!1},toFilter:function(f){var d="#"+g(this._r,this._g,this._b,this._a),v=d,w=this._gradientType?"GradientType = 1, ":"";if(f){var _=n(f);v="#"+g(_._r,_._g,_._b,_._a)}return"progid:DXImageTransform.Microsoft.gradient("+w+"startColorstr="+d+",endColorstr="+v+")"},toString:function(f){var d=!!f;f=f||this._format;var v=!1,w=this._a<1&&this._a>=0,_=!d&&w&&(f==="hex"||f==="hex6"||f==="hex3"||f==="hex4"||f==="hex8"||f==="name");return _?f==="name"&&this._a===0?this.toName():this.toRgbString():(f==="rgb"&&(v=this.toRgbString()),f==="prgb"&&(v=this.toPercentageRgbString()),(f==="hex"||f==="hex6")&&(v=this.toHexString()),f==="hex3"&&(v=this.toHexString(!0)),f==="hex4"&&(v=this.toHex8String(!0)),f==="hex8"&&(v=this.toHex8String()),f==="name"&&(v=this.toName()),f==="hsl"&&(v=this.toHslString()),f==="hsv"&&(v=this.toHsvString()),v||this.toHexString())},clone:function(){return n(this.toString())},_applyModification:function(f,d){var v=f.apply(null,[this].concat([].slice.call(d)));return this._r=v._r,this._g=v._g,this._b=v._b,this.setAlpha(v._a),this},lighten:function(){return this._applyModification(P,arguments)},brighten:function(){return this._applyModification(A,arguments)},darken:function(){return this._applyModification(j,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(S,arguments)},spin:function(){return this._applyModification($,arguments)},_applyCombination:function(f,d){return f.apply(null,[this].concat([].slice.call(d)))},analogous:function(){return this._applyCombination(Oe,arguments)},complement:function(){return this._applyCombination(G,arguments)},monochromatic:function(){return this._applyCombination(re,arguments)},splitcomplement:function(){return this._applyCombination(de,arguments)},triad:function(){return this._applyCombination(K,[3])},tetrad:function(){return this._applyCombination(K,[4])}},n.fromRatio=function(l,f){if(t(l)=="object"){var d={};for(var v in l)l.hasOwnProperty(v)&&(v==="a"?d[v]=l[v]:d[v]=I(l[v]));l=d}return n(l,f)};function i(l){var f={r:0,g:0,b:0},d=1,v=null,w=null,_=null,T=!1,U=!1;return typeof l=="string"&&(l=Ue(l)),t(l)=="object"&&(he(l.r)&&he(l.g)&&he(l.b)?(f=s(l.r,l.g,l.b),T=!0,U=String(l.r).substr(-1)==="%"?"prgb":"rgb"):he(l.h)&&he(l.s)&&he(l.v)?(v=I(l.s),w=I(l.v),f=h(l.h,v,w),T=!0,U="hsv"):he(l.h)&&he(l.s)&&he(l.l)&&(v=I(l.s),_=I(l.l),f=a(l.h,v,_),T=!0,U="hsl"),l.hasOwnProperty("a")&&(d=l.a)),d=B(d),{ok:T,format:l.format||U,r:Math.min(255,Math.max(f.r,0)),g:Math.min(255,Math.max(f.g,0)),b:Math.min(255,Math.max(f.b,0)),a:d}}function s(l,f,d){return{r:F(l,255)*255,g:F(f,255)*255,b:F(d,255)*255}}function o(l,f,d){l=F(l,255),f=F(f,255),d=F(d,255);var v=Math.max(l,f,d),w=Math.min(l,f,d),_,T,U=(v+w)/2;if(v==w)_=T=0;else{var J=v-w;switch(T=U>.5?J/(2-v-w):J/(v+w),v){case l:_=(f-d)/J+(f<d?6:0);break;case f:_=(d-l)/J+2;break;case d:_=(l-f)/J+4;break}_/=6}return{h:_,s:T,l:U}}function a(l,f,d){var v,w,_;l=F(l,360),f=F(f,100),d=F(d,100);function T(Fe,jt,Re){return Re<0&&(Re+=1),Re>1&&(Re-=1),Re<1/6?Fe+(jt-Fe)*6*Re:Re<1/2?jt:Re<2/3?Fe+(jt-Fe)*(2/3-Re)*6:Fe}if(f===0)v=w=_=d;else{var U=d<.5?d*(1+f):d+f-d*f,J=2*d-U;v=T(J,U,l+1/3),w=T(J,U,l),_=T(J,U,l-1/3)}return{r:v*255,g:w*255,b:_*255}}function u(l,f,d){l=F(l,255),f=F(f,255),d=F(d,255);var v=Math.max(l,f,d),w=Math.min(l,f,d),_,T,U=v,J=v-w;if(T=v===0?0:J/v,v==w)_=0;else{switch(v){case l:_=(f-d)/J+(f<d?6:0);break;case f:_=(d-l)/J+2;break;case d:_=(l-f)/J+4;break}_/=6}return{h:_,s:T,v:U}}function h(l,f,d){l=F(l,360)*6,f=F(f,100),d=F(d,100);var v=Math.floor(l),w=l-v,_=d*(1-f),T=d*(1-w*f),U=d*(1-(1-w)*f),J=v%6,Fe=[d,T,_,_,U,d][J],jt=[U,d,d,T,_,_][J],Re=[_,_,U,d,d,T][J];return{r:Fe*255,g:jt*255,b:Re*255}}function c(l,f,d,v){var w=[x(Math.round(l).toString(16)),x(Math.round(f).toString(16)),x(Math.round(d).toString(16))];return v&&w[0].charAt(0)==w[0].charAt(1)&&w[1].charAt(0)==w[1].charAt(1)&&w[2].charAt(0)==w[2].charAt(1)?w[0].charAt(0)+w[1].charAt(0)+w[2].charAt(0):w.join("")}function p(l,f,d,v,w){var _=[x(Math.round(l).toString(16)),x(Math.round(f).toString(16)),x(Math.round(d).toString(16)),x(ne(v))];return w&&_[0].charAt(0)==_[0].charAt(1)&&_[1].charAt(0)==_[1].charAt(1)&&_[2].charAt(0)==_[2].charAt(1)&&_[3].charAt(0)==_[3].charAt(1)?_[0].charAt(0)+_[1].charAt(0)+_[2].charAt(0)+_[3].charAt(0):_.join("")}function g(l,f,d,v){var w=[x(ne(v)),x(Math.round(l).toString(16)),x(Math.round(f).toString(16)),x(Math.round(d).toString(16))];return w.join("")}n.equals=function(l,f){return!l||!f?!1:n(l).toRgbString()==n(f).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function m(l,f){f=f===0?0:f||10;var d=n(l).toHsl();return d.s-=f/100,d.s=L(d.s),n(d)}function b(l,f){f=f===0?0:f||10;var d=n(l).toHsl();return d.s+=f/100,d.s=L(d.s),n(d)}function S(l){return n(l).desaturate(100)}function P(l,f){f=f===0?0:f||10;var d=n(l).toHsl();return d.l+=f/100,d.l=L(d.l),n(d)}function A(l,f){f=f===0?0:f||10;var d=n(l).toRgb();return d.r=Math.max(0,Math.min(255,d.r-Math.round(255*-(f/100)))),d.g=Math.max(0,Math.min(255,d.g-Math.round(255*-(f/100)))),d.b=Math.max(0,Math.min(255,d.b-Math.round(255*-(f/100)))),n(d)}function j(l,f){f=f===0?0:f||10;var d=n(l).toHsl();return d.l-=f/100,d.l=L(d.l),n(d)}function $(l,f){var d=n(l).toHsl(),v=(d.h+f)%360;return d.h=v<0?360+v:v,n(d)}function G(l){var f=n(l).toHsl();return f.h=(f.h+180)%360,n(f)}function K(l,f){if(isNaN(f)||f<=0)throw new Error("Argument to polyad must be a positive number");for(var d=n(l).toHsl(),v=[n(l)],w=360/f,_=1;_<f;_++)v.push(n({h:(d.h+_*w)%360,s:d.s,l:d.l}));return v}function de(l){var f=n(l).toHsl(),d=f.h;return[n(l),n({h:(d+72)%360,s:f.s,l:f.l}),n({h:(d+216)%360,s:f.s,l:f.l})]}function Oe(l,f,d){f=f||6,d=d||30;var v=n(l).toHsl(),w=360/d,_=[n(l)];for(v.h=(v.h-(w*f>>1)+720)%360;--f;)v.h=(v.h+w)%360,_.push(n(v));return _}function re(l,f){f=f||6;for(var d=n(l).toHsv(),v=d.h,w=d.s,_=d.v,T=[],U=1/f;f--;)T.push(n({h:v,s:w,v:_})),_=(_+U)%1;return T}n.mix=function(l,f,d){d=d===0?0:d||50;var v=n(l).toRgb(),w=n(f).toRgb(),_=d/100,T={r:(w.r-v.r)*_+v.r,g:(w.g-v.g)*_+v.g,b:(w.b-v.b)*_+v.b,a:(w.a-v.a)*_+v.a};return n(T)},n.readability=function(l,f){var d=n(l),v=n(f);return(Math.max(d.getLuminance(),v.getLuminance())+.05)/(Math.min(d.getLuminance(),v.getLuminance())+.05)},n.isReadable=function(l,f,d){var v=n.readability(l,f),w,_;switch(_=!1,w=pe(d),w.level+w.size){case"AAsmall":case"AAAlarge":_=v>=4.5;break;case"AAlarge":_=v>=3;break;case"AAAsmall":_=v>=7;break}return _},n.mostReadable=function(l,f,d){var v=null,w=0,_,T,U,J;d=d||{},T=d.includeFallbackColors,U=d.level,J=d.size;for(var Fe=0;Fe<f.length;Fe++)_=n.readability(l,f[Fe]),_>w&&(w=_,v=n(f[Fe]));return n.isReadable(l,v,{level:U,size:J})||!T?v:(d.includeFallbackColors=!1,n.mostReadable(l,["#fff","#000"],d))};var D=n.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},k=n.hexNames=q(D);function q(l){var f={};for(var d in l)l.hasOwnProperty(d)&&(f[l[d]]=d);return f}function B(l){return l=parseFloat(l),(isNaN(l)||l<0||l>1)&&(l=1),l}function F(l,f){N(l)&&(l="100%");var d=M(l);return l=Math.min(f,Math.max(0,parseFloat(l))),d&&(l=parseInt(l*f,10)/100),Math.abs(l-f)<1e-6?1:l%f/parseFloat(f)}function L(l){return Math.min(1,Math.max(0,l))}function O(l){return parseInt(l,16)}function N(l){return typeof l=="string"&&l.indexOf(".")!=-1&&parseFloat(l)===1}function M(l){return typeof l=="string"&&l.indexOf("%")!=-1}function x(l){return l.length==1?"0"+l:""+l}function I(l){return l<=1&&(l=l*100+"%"),l}function ne(l){return Math.round(parseFloat(l)*255).toString(16)}function De(l){return O(l)/255}var W=function(){var l="[-\\+]?\\d+%?",f="[-\\+]?\\d*\\.\\d+%?",d="(?:"+f+")|(?:"+l+")",v="[\\s|\\(]+("+d+")[,|\\s]+("+d+")[,|\\s]+("+d+")\\s*\\)?",w="[\\s|\\(]+("+d+")[,|\\s]+("+d+")[,|\\s]+("+d+")[,|\\s]+("+d+")\\s*\\)?";return{CSS_UNIT:new RegExp(d),rgb:new RegExp("rgb"+v),rgba:new RegExp("rgba"+w),hsl:new RegExp("hsl"+v),hsla:new RegExp("hsla"+w),hsv:new RegExp("hsv"+v),hsva:new RegExp("hsva"+w),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function he(l){return!!W.CSS_UNIT.exec(l)}function Ue(l){l=l.replace(e,"").replace(r,"").toLowerCase();var f=!1;if(D[l])l=D[l],f=!0;else if(l=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var d;return(d=W.rgb.exec(l))?{r:d[1],g:d[2],b:d[3]}:(d=W.rgba.exec(l))?{r:d[1],g:d[2],b:d[3],a:d[4]}:(d=W.hsl.exec(l))?{h:d[1],s:d[2],l:d[3]}:(d=W.hsla.exec(l))?{h:d[1],s:d[2],l:d[3],a:d[4]}:(d=W.hsv.exec(l))?{h:d[1],s:d[2],v:d[3]}:(d=W.hsva.exec(l))?{h:d[1],s:d[2],v:d[3],a:d[4]}:(d=W.hex8.exec(l))?{r:O(d[1]),g:O(d[2]),b:O(d[3]),a:De(d[4]),format:f?"name":"hex8"}:(d=W.hex6.exec(l))?{r:O(d[1]),g:O(d[2]),b:O(d[3]),format:f?"name":"hex"}:(d=W.hex4.exec(l))?{r:O(d[1]+""+d[1]),g:O(d[2]+""+d[2]),b:O(d[3]+""+d[3]),a:De(d[4]+""+d[4]),format:f?"name":"hex8"}:(d=W.hex3.exec(l))?{r:O(d[1]+""+d[1]),g:O(d[2]+""+d[2]),b:O(d[3]+""+d[3]),format:f?"name":"hex"}:!1}function pe(l){var f,d;return l=l||{level:"AA",size:"small"},f=(l.level||"AA").toUpperCase(),d=(l.size||"small").toLowerCase(),f!=="AA"&&f!=="AAA"&&(f="AA"),d!=="small"&&d!=="large"&&(d="small"),{level:f,size:d}}return n})});var Lc=y((pb,jc)=>{var Zt=Rc(),Tc={r:256,g:256,b:256,a:1},Nc={h:360,s:1,v:1,a:1};function Oi(t,e,r){let n={};for(let i in t)t.hasOwnProperty(i)&&(n[i]=r===0?0:(e[i]-t[i])/r);return n}function Di(t,e,r,n){let i={};for(let s in e)e.hasOwnProperty(s)&&(i[s]=t[s]*r+e[s],i[s]=i[s]<0?i[s]+n[s]:n[s]!==1?i[s]%n[s]:i[s]);return i}function Pi(t,e,r){let n=t.color.toRgb(),i=e.color.toRgb(),s=Oi(n,i,r),o=[t.color];for(let a=1;a<r;a++){let u=Di(s,n,a,Tc);o.push(Zt(u))}return o}function kc(t,e,r,n){let i=t.color.toHsv(),s=e.color.toHsv();if(i.s===0||s.s===0)return Pi(t,e,r);let o;if(typeof n=="boolean")o=n;else{let c=i.h<s.h&&s.h-i.h<180||i.h>s.h&&i.h-s.h>180;o=n==="long"&&c||n==="short"&&!c}let a=Oi(i,s,r),u=[t.color],h;i.h<=s.h&&!o||i.h>=s.h&&o?h=s.h-i.h:o?h=360-s.h+i.h:h=360-i.h+s.h,a.h=Math.pow(-1,o?1:0)*Math.abs(h)/r;for(let c=1;c<r;c++){let p=Di(a,i,c,Nc);u.push(Zt(p))}return u}function qc(t,e){let r=t.length;if(e=parseInt(e,10),isNaN(e)||e<2)throw new Error("Invalid number of steps (< 2)");if(e<r)throw new Error("Number of steps cannot be inferior to number of stops");let n=[];for(let s=1;s<r;s++){let o=(e-1)*(t[s].pos-t[s-1].pos);n.push(Math.max(1,Math.round(o)))}let i=1;for(let s=r-1;s--;)i+=n[s];for(;i!==e;)if(i<e){let s=Math.min.apply(null,n);n[n.indexOf(s)]++,i++}else{let s=Math.max.apply(null,n);n[n.indexOf(s)]--,i--}return n}function Mc(t,e,r,n){if(e<0||e>1)throw new Error("Position must be between 0 and 1");let i,s;for(let u=0,h=t.length;u<h-1;u++)if(e>=t[u].pos&&e<t[u+1].pos){i=t[u],s=t[u+1];break}i||(i=s=t[t.length-1]);let o=Oi(i.color[r](),s.color[r](),(s.pos-i.pos)*100),a=Di(o,i.color[r](),(e-i.pos)*100,n);return Zt(a)}var Ot=class{constructor(e){if(e.length<2)throw new Error("Invalid number of stops (< 2)");let r=e[0].pos!==void 0,n=e.length,i=-1,s=!1;this.stops=e.map((o,a)=>{let u=o.pos!==void 0;if(r^u)throw new Error("Cannot mix positionned and not posionned color stops");if(u){let h=o.color!==void 0;if(!h&&(s||a===0||a===n-1))throw new Error("Cannot define two consecutive position-only stops");if(s=!h,o={color:h?Zt(o.color):null,colorLess:!h,pos:o.pos},o.pos<0||o.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(o.pos<i)throw new Error("Color stops positions are not ordered");i=o.pos}else o={color:Zt(o.color!==void 0?o.color:o),pos:a/(n-1)};return o}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),n++),this.stops[n-1].pos!==1&&this.stops.push({color:this.stops[n-1].color,pos:1})}reverse(){let e=[];return this.stops.forEach(function(r){e.push({color:r.color,pos:1-r.pos})}),new Ot(e.reverse())}loop(){let e=[],r=[];return this.stops.forEach(n=>{e.push({color:n.color,pos:n.pos/2})}),this.stops.slice(0,-1).forEach(n=>{r.push({color:n.color,pos:1-n.pos/2})}),new Ot(e.concat(r.reverse()))}rgb(e){let r=qc(this.stops,e),n=[];this.stops.forEach((i,s)=>{i.colorLess&&(i.color=Pi(this.stops[s-1],this.stops[s+1],2)[1])});for(let i=0,s=this.stops.length;i<s-1;i++){let o=Pi(this.stops[i],this.stops[i+1],r[i]);n.splice(n.length,0,...o)}return n.push(this.stops[this.stops.length-1].color),n}hsv(e,r){let n=qc(this.stops,e),i=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=kc(this.stops[o-1],this.stops[o+1],2,r)[1])});for(let s=0,o=this.stops.length;s<o-1;s++){let a=kc(this.stops[s],this.stops[s+1],n[s],r);i.splice(i.length,0,...a)}return i.push(this.stops[this.stops.length-1].color),i}css(e,r){e=e||"linear",r=r||(e==="linear"?"to right":"ellipse at center");let n=e+"-gradient("+r;return this.stops.forEach(function(i){n+=", "+(i.colorLess?"":i.color.toRgbString()+" ")+i.pos*100+"%"}),n+=")",n}rgbAt(e){return Mc(this.stops,e,"toRgb",Tc)}hsvAt(e){return Mc(this.stops,e,"toHsv",Nc)}};jc.exports=function(t){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');t=arguments[0]}else t=Array.prototype.slice.call(arguments);return new Ot(t)}});var Hc=y((mb,Kr)=>{"use strict";var Bc=Ac(),em=Lc(),$c=/\s/g;function Fi(...t){let e=em.apply(this,t),r=(n,i)=>tm(n?n.toString():"",e,i);return r.multiline=(n,i)=>rm(n?n.toString():"",e,i),r}var Uc=(t,e,r)=>e.interpolation.toLowerCase()==="hsv"?t.hsv(r,e.hsvSpin.toLowerCase()):t.rgb(r);function tm(t,e,r){let n=Xc(r),i=Math.max(t.replace($c,"").length,e.stops.length),s=Uc(e,n,i),o="";for(let a of t)o+=a.match($c)?a:Bc.hex(s.shift().toHex())(a);return o}function rm(t,e,r){let n=Xc(r),i=t.split(`
15
- `),s=Math.max.apply(null,i.map(u=>u.length).concat([e.stops.length])),o=Uc(e,n,s),a=[];for(let u of i){let h=o.slice(0),c="";for(let p of u)c+=Bc.hex(h.shift().toHex())(p);a.push(c)}return a.join(`
16
- `)}function Xc(t){let e={interpolation:"rgb",hsvSpin:"short",...t};if(t!==void 0&&typeof t!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof t}\``);if(typeof e.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof e.interpolation}\``);if(e.interpolation.toLowerCase()==="hsv"&&typeof e.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof e.hsvSpin}\``);return e}var er={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};Kr.exports=Fi;for(let t in er)Kr.exports[t]=e=>new Fi(er[t].colors)(e,er[t].options),Kr.exports[t].multiline=e=>new Fi(er[t].colors).multiline(e,er[t].options)});var zc=y((gb,Gc)=>{var Ii=class{constructor(e){this.value=e,this.next=void 0}},Ai=class{constructor(){this.clear()}enqueue(e){let r=new Ii(e);this._head?(this._tail.next=r,this._tail=r):(this._head=r,this._tail=r),this._size++}dequeue(){let e=this._head;if(e)return this._head=this._head.next,this._size--,e.value}clear(){this._head=void 0,this._tail=void 0,this._size=0}get size(){return this._size}*[Symbol.iterator](){let e=this._head;for(;e;)yield e.value,e=e.next}};Gc.exports=Ai});var Ri=y((yb,Wc)=>{"use strict";var nm=zc(),im=t=>{if(!((Number.isInteger(t)||t===1/0)&&t>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");let e=new nm,r=0,n=()=>{r--,e.size>0&&e.dequeue()()},i=async(a,u,...h)=>{r++;let c=(async()=>a(...h))();u(c);try{await c}catch{}n()},s=(a,u,...h)=>{e.enqueue(i.bind(null,a,u,...h)),(async()=>(await Promise.resolve(),r<t&&e.size>0&&e.dequeue()()))()},o=(a,...u)=>new Promise(h=>{s(a,h,...u)});return Object.defineProperties(o,{activeCount:{get:()=>r},pendingCount:{get:()=>e.size},clearQueue:{value:()=>{e.clear()}}}),o};Wc.exports=im});var Yc=y((vb,Vc)=>{"use strict";var Jc=Ri(),Qr=class extends Error{constructor(e){super(),this.value=e}},sm=async(t,e)=>e(await t),om=async t=>{let e=await Promise.all(t);if(e[1]===!0)throw new Qr(e[0]);return!1},am=async(t,e,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=Jc(r.concurrency),i=[...t].map(o=>[o,n(sm,o,e)]),s=Jc(r.preserveOrder?1:1/0);try{await Promise.all(i.map(o=>s(om,o)))}catch(o){if(o instanceof Qr)return o.value;throw o}};Vc.exports=am});var rl=y((bb,ki)=>{"use strict";var Kc=require("path"),Zr=require("fs"),{promisify:Qc}=require("util"),um=Yc(),cm=Qc(Zr.stat),lm=Qc(Zr.lstat),Zc={directory:"isDirectory",file:"isFile"};function el({type:t}){if(!(t in Zc))throw new Error(`Invalid type specified: ${t}`)}var tl=(t,e)=>t===void 0||e[Zc[t]]();ki.exports=async(t,e)=>{e={cwd:process.cwd(),type:"file",allowSymlinks:!0,...e},el(e);let r=e.allowSymlinks?cm:lm;return um(t,async n=>{try{let i=await r(Kc.resolve(e.cwd,n));return tl(e.type,i)}catch{return!1}},e)};ki.exports.sync=(t,e)=>{e={cwd:process.cwd(),allowSymlinks:!0,type:"file",...e},el(e);let r=e.allowSymlinks?Zr.statSync:Zr.lstatSync;for(let n of t)try{let i=r(Kc.resolve(e.cwd,n));if(tl(e.type,i))return n}catch{}}});var il=y((_b,qi)=>{"use strict";var nl=require("fs"),{promisify:fm}=require("util"),dm=fm(nl.access);qi.exports=async t=>{try{return await dm(t),!0}catch{return!1}};qi.exports.sync=t=>{try{return nl.accessSync(t),!0}catch{return!1}}});var ol=y((wb,Dt)=>{"use strict";var Ve=require("path"),en=rl(),sl=il(),Mi=Symbol("findUp.stop");Dt.exports=async(t,e={})=>{let r=Ve.resolve(e.cwd||""),{root:n}=Ve.parse(r),i=[].concat(t),s=async o=>{if(typeof t!="function")return en(i,o);let a=await t(o.cwd);return typeof a=="string"?en([a],o):a};for(;;){let o=await s({...e,cwd:r});if(o===Mi)return;if(o)return Ve.resolve(r,o);if(r===n)return;r=Ve.dirname(r)}};Dt.exports.sync=(t,e={})=>{let r=Ve.resolve(e.cwd||""),{root:n}=Ve.parse(r),i=[].concat(t),s=o=>{if(typeof t!="function")return en.sync(i,o);let a=t(o.cwd);return typeof a=="string"?en.sync([a],o):a};for(;;){let o=s({...e,cwd:r});if(o===Mi)return;if(o)return Ve.resolve(r,o);if(r===n)return;r=Ve.dirname(r)}};Dt.exports.exists=sl;Dt.exports.sync.exists=sl.sync;Dt.exports.stop=Mi});var cl=y((xb,Ti)=>{"use strict";var al=require("path"),ul=ol(),hm=async t=>{let e=await ul("package.json",{cwd:t});return e&&al.dirname(e)};Ti.exports=hm;Ti.exports.sync=t=>{let e=ul.sync("package.json",{cwd:t});return e&&al.dirname(e)}});var Xi=y((Ob,pl)=>{"use strict";pl.exports=function(e,r){return function(){for(var i=new Array(arguments.length),s=0;s<i.length;s++)i[s]=arguments[s];return e.apply(r,i)}}});var ve=y((Db,yl)=>{"use strict";var vm=Xi(),it=Object.prototype.toString;function zi(t){return it.call(t)==="[object Array]"}function Hi(t){return typeof t>"u"}function bm(t){return t!==null&&!Hi(t)&&t.constructor!==null&&!Hi(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function _m(t){return it.call(t)==="[object ArrayBuffer]"}function wm(t){return typeof FormData<"u"&&t instanceof FormData}function xm(t){var e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function Sm(t){return typeof t=="string"}function Em(t){return typeof t=="number"}function ml(t){return t!==null&&typeof t=="object"}function tn(t){if(it.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function Cm(t){return it.call(t)==="[object Date]"}function Pm(t){return it.call(t)==="[object File]"}function Om(t){return it.call(t)==="[object Blob]"}function gl(t){return it.call(t)==="[object Function]"}function Dm(t){return ml(t)&&gl(t.pipe)}function Fm(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}function Im(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function Am(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Wi(t,e){if(!(t===null||typeof t>"u"))if(typeof t!="object"&&(t=[t]),zi(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}function Gi(){var t={};function e(i,s){tn(t[s])&&tn(i)?t[s]=Gi(t[s],i):tn(i)?t[s]=Gi({},i):zi(i)?t[s]=i.slice():t[s]=i}for(var r=0,n=arguments.length;r<n;r++)Wi(arguments[r],e);return t}function Rm(t,e,r){return Wi(e,function(i,s){r&&typeof i=="function"?t[s]=vm(i,r):t[s]=i}),t}function km(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t}yl.exports={isArray:zi,isArrayBuffer:_m,isBuffer:bm,isFormData:wm,isArrayBufferView:xm,isString:Sm,isNumber:Em,isObject:ml,isPlainObject:tn,isUndefined:Hi,isDate:Cm,isFile:Pm,isBlob:Om,isFunction:gl,isStream:Dm,isURLSearchParams:Fm,isStandardBrowserEnv:Am,forEach:Wi,merge:Gi,extend:Rm,trim:Im,stripBOM:km}});var rn=y((Fb,bl)=>{"use strict";var Ft=ve();function vl(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}bl.exports=function(e,r,n){if(!r)return e;var i;if(n)i=n(r);else if(Ft.isURLSearchParams(r))i=r.toString();else{var s=[];Ft.forEach(r,function(u,h){u===null||typeof u>"u"||(Ft.isArray(u)?h=h+"[]":u=[u],Ft.forEach(u,function(p){Ft.isDate(p)?p=p.toISOString():Ft.isObject(p)&&(p=JSON.stringify(p)),s.push(vl(h)+"="+vl(p))}))}),i=s.join("&")}if(i){var o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}});var wl=y((Ib,_l)=>{"use strict";var qm=ve();function nn(){this.handlers=[]}nn.prototype.use=function(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};nn.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};nn.prototype.forEach=function(e){qm.forEach(this.handlers,function(n){n!==null&&e(n)})};_l.exports=nn});var Sl=y((Ab,xl)=>{"use strict";var Mm=ve();xl.exports=function(e,r){Mm.forEach(e,function(i,s){s!==r&&s.toUpperCase()===r.toUpperCase()&&(e[r]=i,delete e[s])})}});var sn=y((Rb,El)=>{"use strict";El.exports=function(e,r,n,i,s){return e.config=r,n&&(e.code=n),e.request=i,e.response=s,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}});var on=y((kb,Cl)=>{"use strict";var Tm=sn();Cl.exports=function(e,r,n,i,s){var o=new Error(e);return Tm(o,r,n,i,s)}});var Ji=y((qb,Pl)=>{"use strict";var Nm=on();Pl.exports=function(e,r,n){var i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):r(Nm("Request failed with status code "+n.status,n.config,null,n.request,n))}});var Dl=y((Mb,Ol)=>{"use strict";var an=ve();Ol.exports=an.isStandardBrowserEnv()?function(){return{write:function(r,n,i,s,o,a){var u=[];u.push(r+"="+encodeURIComponent(n)),an.isNumber(i)&&u.push("expires="+new Date(i).toGMTString()),an.isString(s)&&u.push("path="+s),an.isString(o)&&u.push("domain="+o),a===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(r){var n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()});var Il=y((Tb,Fl)=>{"use strict";Fl.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}});var Rl=y((Nb,Al)=>{"use strict";Al.exports=function(e,r){return r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e}});var Vi=y((jb,kl)=>{"use strict";var jm=Il(),Lm=Rl();kl.exports=function(e,r){return e&&!jm(r)?Lm(e,r):r}});var Ml=y((Lb,ql)=>{"use strict";var Yi=ve(),$m=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];ql.exports=function(e){var r={},n,i,s;return e&&Yi.forEach(e.split(`
17
- `),function(a){if(s=a.indexOf(":"),n=Yi.trim(a.substr(0,s)).toLowerCase(),i=Yi.trim(a.substr(s+1)),n){if(r[n]&&$m.indexOf(n)>=0)return;n==="set-cookie"?r[n]=(r[n]?r[n]:[]).concat([i]):r[n]=r[n]?r[n]+", "+i:i}}),r}});var jl=y(($b,Nl)=>{"use strict";var Tl=ve();Nl.exports=Tl.isStandardBrowserEnv()?function(){var e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function i(s){var o=s;return e&&(r.setAttribute("href",o),o=r.href),r.setAttribute("href",o),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=i(window.location.href),function(o){var a=Tl.isString(o)?i(o):o;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}()});var $l=y((Bb,Ll)=>{"use strict";var un=ve(),Bm=Ji(),Um=Dl(),Xm=rn(),Hm=Vi(),Gm=Ml(),zm=jl(),Ki=on();Ll.exports=function(e){return new Promise(function(n,i){var s=e.data,o=e.headers,a=e.responseType;un.isFormData(s)&&delete o["Content-Type"];var u=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",c=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.Authorization="Basic "+btoa(h+":"+c)}var p=Hm(e.baseURL,e.url);u.open(e.method.toUpperCase(),Xm(p,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function g(){if(u){var b="getAllResponseHeaders"in u?Gm(u.getAllResponseHeaders()):null,S=!a||a==="text"||a==="json"?u.responseText:u.response,P={data:S,status:u.status,statusText:u.statusText,headers:b,config:e,request:u};Bm(n,i,P),u=null}}if("onloadend"in u?u.onloadend=g:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(g)},u.onabort=function(){u&&(i(Ki("Request aborted",e,"ECONNABORTED",u)),u=null)},u.onerror=function(){i(Ki("Network Error",e,null,u)),u=null},u.ontimeout=function(){var S="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(S=e.timeoutErrorMessage),i(Ki(S,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",u)),u=null},un.isStandardBrowserEnv()){var m=(e.withCredentials||zm(p))&&e.xsrfCookieName?Um.read(e.xsrfCookieName):void 0;m&&(o[e.xsrfHeaderName]=m)}"setRequestHeader"in u&&un.forEach(o,function(S,P){typeof s>"u"&&P.toLowerCase()==="content-type"?delete o[P]:u.setRequestHeader(P,S)}),un.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),a&&a!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",e.onDownloadProgress),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(S){u&&(u.abort(),i(S),u=null)}),s||(s=null),u.send(s)})}});var Ul=y((Ub,Bl)=>{var It=1e3,At=It*60,Rt=At*60,st=Rt*24,Wm=st*7,Jm=st*365.25;Bl.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return Vm(t);if(r==="number"&&isFinite(t))return e.long?Km(t):Ym(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Vm(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Jm;case"weeks":case"week":case"w":return r*Wm;case"days":case"day":case"d":return r*st;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Rt;case"minutes":case"minute":case"mins":case"min":case"m":return r*At;case"seconds":case"second":case"secs":case"sec":case"s":return r*It;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Ym(t){var e=Math.abs(t);return e>=st?Math.round(t/st)+"d":e>=Rt?Math.round(t/Rt)+"h":e>=At?Math.round(t/At)+"m":e>=It?Math.round(t/It)+"s":t+"ms"}function Km(t){var e=Math.abs(t);return e>=st?cn(t,e,st,"day"):e>=Rt?cn(t,e,Rt,"hour"):e>=At?cn(t,e,At,"minute"):e>=It?cn(t,e,It,"second"):t+" ms"}function cn(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var Qi=y((Xb,Xl)=>{function Qm(t){r.debug=r,r.default=r,r.coerce=u,r.disable=s,r.enable=i,r.enabled=o,r.humanize=Ul(),r.destroy=h,Object.keys(t).forEach(c=>{r[c]=t[c]}),r.names=[],r.skips=[],r.formatters={};function e(c){let p=0;for(let g=0;g<c.length;g++)p=(p<<5)-p+c.charCodeAt(g),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=e;function r(c){let p,g=null,m,b;function S(...P){if(!S.enabled)return;let A=S,j=Number(new Date),$=j-(p||j);A.diff=$,A.prev=p,A.curr=j,p=j,P[0]=r.coerce(P[0]),typeof P[0]!="string"&&P.unshift("%O");let G=0;P[0]=P[0].replace(/%([a-zA-Z%])/g,(de,Oe)=>{if(de==="%%")return"%";G++;let re=r.formatters[Oe];if(typeof re=="function"){let D=P[G];de=re.call(A,D),P.splice(G,1),G--}return de}),r.formatArgs.call(A,P),(A.log||r.log).apply(A,P)}return S.namespace=c,S.useColors=r.useColors(),S.color=r.selectColor(c),S.extend=n,S.destroy=r.destroy,Object.defineProperty(S,"enabled",{enumerable:!0,configurable:!1,get:()=>g!==null?g:(m!==r.namespaces&&(m=r.namespaces,b=r.enabled(c)),b),set:P=>{g=P}}),typeof r.init=="function"&&r.init(S),S}function n(c,p){let g=r(this.namespace+(typeof p>"u"?":":p)+c);return g.log=this.log,g}function i(c){r.save(c),r.namespaces=c,r.names=[],r.skips=[];let p,g=(typeof c=="string"?c:"").split(/[\s,]+/),m=g.length;for(p=0;p<m;p++)g[p]&&(c=g[p].replace(/\*/g,".*?"),c[0]==="-"?r.skips.push(new RegExp("^"+c.slice(1)+"$")):r.names.push(new RegExp("^"+c+"$")))}function s(){let c=[...r.names.map(a),...r.skips.map(a).map(p=>"-"+p)].join(",");return r.enable(""),c}function o(c){if(c[c.length-1]==="*")return!0;let p,g;for(p=0,g=r.skips.length;p<g;p++)if(r.skips[p].test(c))return!1;for(p=0,g=r.names.length;p<g;p++)if(r.names[p].test(c))return!0;return!1}function a(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}function u(c){return c instanceof Error?c.stack||c.message:c}function h(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}Xl.exports=Qm});var Hl=y((Ce,ln)=>{Ce.formatArgs=eg;Ce.save=tg;Ce.load=rg;Ce.useColors=Zm;Ce.storage=ng();Ce.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Ce.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Zm(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function eg(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+ln.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),t.splice(n,0,e)}Ce.log=console.debug||console.log||(()=>{});function tg(t){try{t?Ce.storage.setItem("debug",t):Ce.storage.removeItem("debug")}catch{}}function rg(){let t;try{t=Ce.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function ng(){try{return localStorage}catch{}}ln.exports=Qi()(Ce);var{formatters:ig}=ln.exports;ig.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var zl=y((se,dn)=>{var sg=require("tty"),fn=require("util");se.init=dg;se.log=cg;se.formatArgs=ag;se.save=lg;se.load=fg;se.useColors=og;se.destroy=fn.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");se.colors=[6,2,3,4,5,1];try{let t=vi();t&&(t.stderr||t).level>=2&&(se.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}se.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(i,s)=>s.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function og(){return"colors"in se.inspectOpts?!!se.inspectOpts.colors:sg.isatty(process.stderr.fd)}function ag(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),s=` ${i};1m${e} \x1B[0m`;t[0]=s+t[0].split(`
18
- `).join(`
19
- `+s),t.push(i+"m+"+dn.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=ug()+e+" "+t[0]}function ug(){return se.inspectOpts.hideDate?"":new Date().toISOString()+" "}function cg(...t){return process.stderr.write(fn.format(...t)+`
20
- `)}function lg(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function fg(){return process.env.DEBUG}function dg(t){t.inspectOpts={};let e=Object.keys(se.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=se.inspectOpts[e[r]]}dn.exports=Qi()(se);var{formatters:Gl}=dn.exports;Gl.o=function(t){return this.inspectOpts.colors=this.useColors,fn.inspect(t,this.inspectOpts).split(`
21
- `).map(e=>e.trim()).join(" ")};Gl.O=function(t){return this.inspectOpts.colors=this.useColors,fn.inspect(t,this.inspectOpts)}});var Wl=y((Hb,Zi)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Zi.exports=Hl():Zi.exports=zl()});var Vl=y((Gb,Jl)=>{var tr;Jl.exports=function(){if(!tr){try{tr=Wl()("follow-redirects")}catch{}typeof tr!="function"&&(tr=function(){})}tr.apply(null,arguments)}});var ss=y((zb,is)=>{var ot=require("url"),es=ot.URL,hg=require("http"),pg=require("https"),Ql=require("stream").Writable,Zl=require("assert"),ef=Vl(),rs=["abort","aborted","connect","error","socket","timeout"],ns=Object.create(null);rs.forEach(function(t){ns[t]=function(e,r,n){this._redirectable.emit(t,e,r,n)}});var mg=nr("ERR_INVALID_URL","Invalid URL",TypeError),Yl=nr("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),gg=nr("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),yg=nr("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),vg=nr("ERR_STREAM_WRITE_AFTER_END","write after end");function Pe(t,e){Ql.call(this),this._sanitizeOptions(t),this._options=t,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e&&this.on("response",e);var r=this;this._onNativeResponse=function(n){r._processResponse(n)},this._performRequest()}Pe.prototype=Object.create(Ql.prototype);Pe.prototype.abort=function(){rf(this._currentRequest),this.emit("abort")};Pe.prototype.write=function(t,e,r){if(this._ending)throw new vg;if(!at(t)&&!wg(t))throw new TypeError("data should be a string, Buffer or Uint8Array");if(rr(e)&&(r=e,e=null),t.length===0){r&&r();return}this._requestBodyLength+t.length<=this._options.maxBodyLength?(this._requestBodyLength+=t.length,this._requestBodyBuffers.push({data:t,encoding:e}),this._currentRequest.write(t,e,r)):(this.emit("error",new yg),this.abort())};Pe.prototype.end=function(t,e,r){if(rr(t)?(r=t,t=e=null):rr(e)&&(r=e,e=null),!t)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,i=this._currentRequest;this.write(t,e,function(){n._ended=!0,i.end(null,null,r)}),this._ending=!0}};Pe.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};Pe.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};Pe.prototype.setTimeout=function(t,e){var r=this;function n(o){o.setTimeout(t),o.removeListener("timeout",o.destroy),o.addListener("timeout",o.destroy)}function i(o){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),s()},t),n(o)}function s(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",s),r.removeListener("error",s),r.removeListener("response",s),e&&r.removeListener("timeout",e),r.socket||r._currentRequest.removeListener("socket",i)}return e&&this.on("timeout",e),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",n),this.on("abort",s),this.on("error",s),this.on("response",s),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(t){Pe.prototype[t]=function(e,r){return this._currentRequest[t](e,r)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(Pe.prototype,t,{get:function(){return this._currentRequest[t]}})});Pe.prototype._sanitizeOptions=function(t){if(t.headers||(t.headers={}),t.host&&(t.hostname||(t.hostname=t.host),delete t.host),!t.pathname&&t.path){var e=t.path.indexOf("?");e<0?t.pathname=t.path:(t.pathname=t.path.substring(0,e),t.search=t.path.substring(e))}};Pe.prototype._performRequest=function(){var t=this._options.protocol,e=this._options.nativeProtocols[t];if(!e){this.emit("error",new TypeError("Unsupported protocol "+t));return}if(this._options.agents){var r=t.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=e.request(this._options,this._onNativeResponse);n._redirectable=this;for(var i of rs)n.on(i,ns[i]);if(this._currentUrl=/^\//.test(this._options.path)?ot.format(this._options):this._options.path,this._isRedirect){var s=0,o=this,a=this._requestBodyBuffers;(function u(h){if(n===o._currentRequest)if(h)o.emit("error",h);else if(s<a.length){var c=a[s++];n.finished||n.write(c.data,c.encoding,u)}else o._ended&&n.end()})()}};Pe.prototype._processResponse=function(t){var e=t.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:t.headers,statusCode:e});var r=t.headers.location;if(!r||this._options.followRedirects===!1||e<300||e>=400){t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),this._requestBodyBuffers=[];return}if(rf(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new gg);return}var n,i=this._options.beforeRedirect;i&&(n=Object.assign({Host:t.req.getHeader("host")},this._options.headers));var s=this._options.method;((e===301||e===302)&&this._options.method==="POST"||e===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],ts(/^content-/i,this._options.headers));var o=ts(/^host$/i,this._options.headers),a=ot.parse(this._currentUrl),u=o||a.host,h=/^\w+:/.test(r)?this._currentUrl:ot.format(Object.assign(a,{host:u})),c;try{c=ot.resolve(h,r)}catch(b){this.emit("error",new Yl({cause:b}));return}ef("redirecting to",c),this._isRedirect=!0;var p=ot.parse(c);if(Object.assign(this._options,p),(p.protocol!==a.protocol&&p.protocol!=="https:"||p.host!==u&&!_g(p.host,u))&&ts(/^(?:authorization|cookie)$/i,this._options.headers),rr(i)){var g={headers:t.headers,statusCode:e},m={url:h,method:s,headers:n};try{i(this._options,g,m)}catch(b){this.emit("error",b);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(b){this.emit("error",new Yl({cause:b}))}};function tf(t){var e={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(t).forEach(function(n){var i=n+":",s=r[i]=t[n],o=e[n]=Object.create(s);function a(h,c,p){if(at(h)){var g;try{g=Kl(new es(h))}catch{g=ot.parse(h)}if(!at(g.protocol))throw new mg({input:h});h=g}else es&&h instanceof es?h=Kl(h):(p=c,c=h,h={protocol:i});return rr(c)&&(p=c,c=null),c=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},h,c),c.nativeProtocols=r,!at(c.host)&&!at(c.hostname)&&(c.hostname="::1"),Zl.equal(c.protocol,i,"protocol mismatch"),ef("options",c),new Pe(c,p)}function u(h,c,p){var g=o.request(h,c,p);return g.end(),g}Object.defineProperties(o,{request:{value:a,configurable:!0,enumerable:!0,writable:!0},get:{value:u,configurable:!0,enumerable:!0,writable:!0}})}),e}function bg(){}function Kl(t){var e={protocol:t.protocol,hostname:t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,hash:t.hash,search:t.search,pathname:t.pathname,path:t.pathname+t.search,href:t.href};return t.port!==""&&(e.port=Number(t.port)),e}function ts(t,e){var r;for(var n in e)t.test(n)&&(r=e[n],delete e[n]);return r===null||typeof r>"u"?void 0:String(r).trim()}function nr(t,e,r){function n(i){Error.captureStackTrace(this,this.constructor),Object.assign(this,i||{}),this.code=t,this.message=this.cause?e+": "+this.cause.message:e}return n.prototype=new(r||Error),n.prototype.constructor=n,n.prototype.name="Error ["+t+"]",n}function rf(t){for(var e of rs)t.removeListener(e,ns[e]);t.on("error",bg),t.abort()}function _g(t,e){Zl(at(t)&&at(e));var r=t.length-e.length-1;return r>0&&t[r]==="."&&t.endsWith(e)}function at(t){return typeof t=="string"||t instanceof String}function rr(t){return typeof t=="function"}function wg(t){return typeof t=="object"&&"length"in t}is.exports=tf({http:hg,https:pg});is.exports.wrap=tf});var os=y((Wb,xg)=>{xg.exports={name:"axios",version:"0.21.4",description:"Promise based HTTP client for the browser and node.js",main:"index.js",scripts:{test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository:{type:"git",url:"https://github.com/axios/axios.git"},keywords:["xhr","http","ajax","promise","node"],author:"Matt Zabriskie",license:"MIT",bugs:{url:"https://github.com/axios/axios/issues"},homepage:"https://axios-http.com",devDependencies:{coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr:"dist/axios.min.js",unpkg:"dist/axios.min.js",typings:"./index.d.ts",dependencies:{"follow-redirects":"^1.14.0"},bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}]}});var cf=y((Jb,uf)=>{"use strict";var ir=ve(),nf=Ji(),Sg=Vi(),Eg=rn(),Cg=require("http"),Pg=require("https"),Og=ss().http,Dg=ss().https,sf=require("url"),Fg=require("zlib"),Ig=os(),hn=on(),as=sn(),of=/https:?/;function af(t,e,r){if(t.hostname=e.host,t.host=e.host,t.port=e.port,t.path=r,e.auth){var n=Buffer.from(e.auth.username+":"+e.auth.password,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+n}t.beforeRedirect=function(s){s.headers.host=s.host,af(s,e,s.href)}}uf.exports=function(e){return new Promise(function(n,i){var s=function(x){n(x)},o=function(x){i(x)},a=e.data,u=e.headers;if("User-Agent"in u||"user-agent"in u?!u["User-Agent"]&&!u["user-agent"]&&(delete u["User-Agent"],delete u["user-agent"]):u["User-Agent"]="axios/"+Ig.version,a&&!ir.isStream(a)){if(!Buffer.isBuffer(a))if(ir.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else if(ir.isString(a))a=Buffer.from(a,"utf-8");else return o(hn("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));u["Content-Length"]=a.length}var h=void 0;if(e.auth){var c=e.auth.username||"",p=e.auth.password||"";h=c+":"+p}var g=Sg(e.baseURL,e.url),m=sf.parse(g),b=m.protocol||"http:";if(!h&&m.auth){var S=m.auth.split(":"),P=S[0]||"",A=S[1]||"";h=P+":"+A}h&&delete u.Authorization;var j=of.test(b),$=j?e.httpsAgent:e.httpAgent,G={path:Eg(m.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:u,agent:$,agents:{http:e.httpAgent,https:e.httpsAgent},auth:h};e.socketPath?G.socketPath=e.socketPath:(G.hostname=m.hostname,G.port=m.port);var K=e.proxy;if(!K&&K!==!1){var de=b.slice(0,-1)+"_proxy",Oe=process.env[de]||process.env[de.toUpperCase()];if(Oe){var re=sf.parse(Oe),D=process.env.no_proxy||process.env.NO_PROXY,k=!0;if(D){var q=D.split(",").map(function(x){return x.trim()});k=!q.some(function(x){return x?x==="*"||x[0]==="."&&m.hostname.substr(m.hostname.length-x.length)===x?!0:m.hostname===x:!1})}if(k&&(K={host:re.hostname,port:re.port,protocol:re.protocol},re.auth)){var B=re.auth.split(":");K.auth={username:B[0],password:B[1]}}}}K&&(G.headers.host=m.hostname+(m.port?":"+m.port:""),af(G,K,b+"//"+m.hostname+(m.port?":"+m.port:"")+G.path));var F,L=j&&(K?of.test(K.protocol):!0);e.transport?F=e.transport:e.maxRedirects===0?F=L?Pg:Cg:(e.maxRedirects&&(G.maxRedirects=e.maxRedirects),F=L?Dg:Og),e.maxBodyLength>-1&&(G.maxBodyLength=e.maxBodyLength);var O=F.request(G,function(x){if(!O.aborted){var I=x,ne=x.req||O;if(x.statusCode!==204&&ne.method!=="HEAD"&&e.decompress!==!1)switch(x.headers["content-encoding"]){case"gzip":case"compress":case"deflate":I=I.pipe(Fg.createUnzip()),delete x.headers["content-encoding"];break}var De={status:x.statusCode,statusText:x.statusMessage,headers:x.headers,config:e,request:ne};if(e.responseType==="stream")De.data=I,nf(s,o,De);else{var W=[],he=0;I.on("data",function(pe){W.push(pe),he+=pe.length,e.maxContentLength>-1&&he>e.maxContentLength&&(I.destroy(),o(hn("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,ne)))}),I.on("error",function(pe){O.aborted||o(as(pe,e,null,ne))}),I.on("end",function(){var pe=Buffer.concat(W);e.responseType!=="arraybuffer"&&(pe=pe.toString(e.responseEncoding),(!e.responseEncoding||e.responseEncoding==="utf8")&&(pe=ir.stripBOM(pe))),De.data=pe,nf(s,o,De)})}}});if(O.on("error",function(x){O.aborted&&x.code!=="ERR_FR_TOO_MANY_REDIRECTS"||o(as(x,e,null,O))}),e.timeout){var N=parseInt(e.timeout,10);if(isNaN(N)){o(hn("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",O));return}O.setTimeout(N,function(){O.abort(),o(hn("timeout of "+N+"ms exceeded",e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",O))})}e.cancelToken&&e.cancelToken.promise.then(function(x){O.aborted||(O.abort(),o(x))}),ir.isStream(a)?a.on("error",function(x){o(as(x,e,null,O))}).pipe(O):O.end(a)})}});var mn=y((Vb,df)=>{"use strict";var oe=ve(),lf=Sl(),Ag=sn(),Rg={"Content-Type":"application/x-www-form-urlencoded"};function ff(t,e){!oe.isUndefined(t)&&oe.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function kg(){var t;return typeof XMLHttpRequest<"u"?t=$l():typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"&&(t=cf()),t}function qg(t,e,r){if(oe.isString(t))try{return(e||JSON.parse)(t),oe.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}var pn={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:kg(),transformRequest:[function(e,r){return lf(r,"Accept"),lf(r,"Content-Type"),oe.isFormData(e)||oe.isArrayBuffer(e)||oe.isBuffer(e)||oe.isStream(e)||oe.isFile(e)||oe.isBlob(e)?e:oe.isArrayBufferView(e)?e.buffer:oe.isURLSearchParams(e)?(ff(r,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):oe.isObject(e)||r&&r["Content-Type"]==="application/json"?(ff(r,"application/json"),qg(e)):e}],transformResponse:[function(e){var r=this.transitional,n=r&&r.silentJSONParsing,i=r&&r.forcedJSONParsing,s=!n&&this.responseType==="json";if(s||i&&oe.isString(e)&&e.length)try{return JSON.parse(e)}catch(o){if(s)throw o.name==="SyntaxError"?Ag(o,this,"E_JSON_PARSE"):o}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};pn.headers={common:{Accept:"application/json, text/plain, */*"}};oe.forEach(["delete","get","head"],function(e){pn.headers[e]={}});oe.forEach(["post","put","patch"],function(e){pn.headers[e]=oe.merge(Rg)});df.exports=pn});var pf=y((Yb,hf)=>{"use strict";var Mg=ve(),Tg=mn();hf.exports=function(e,r,n){var i=this||Tg;return Mg.forEach(n,function(o){e=o.call(i,e,r)}),e}});var us=y((Kb,mf)=>{"use strict";mf.exports=function(e){return!!(e&&e.__CANCEL__)}});var vf=y((Qb,yf)=>{"use strict";var gf=ve(),cs=pf(),Ng=us(),jg=mn();function ls(t){t.cancelToken&&t.cancelToken.throwIfRequested()}yf.exports=function(e){ls(e),e.headers=e.headers||{},e.data=cs.call(e,e.data,e.headers,e.transformRequest),e.headers=gf.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),gf.forEach(["delete","get","head","post","put","patch","common"],function(i){delete e.headers[i]});var r=e.adapter||jg.adapter;return r(e).then(function(i){return ls(e),i.data=cs.call(e,i.data,i.headers,e.transformResponse),i},function(i){return Ng(i)||(ls(e),i&&i.response&&(i.response.data=cs.call(e,i.response.data,i.response.headers,e.transformResponse))),Promise.reject(i)})}});var fs=y((Zb,bf)=>{"use strict";var fe=ve();bf.exports=function(e,r){r=r||{};var n={},i=["url","method","data"],s=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function u(g,m){return fe.isPlainObject(g)&&fe.isPlainObject(m)?fe.merge(g,m):fe.isPlainObject(m)?fe.merge({},m):fe.isArray(m)?m.slice():m}function h(g){fe.isUndefined(r[g])?fe.isUndefined(e[g])||(n[g]=u(void 0,e[g])):n[g]=u(e[g],r[g])}fe.forEach(i,function(m){fe.isUndefined(r[m])||(n[m]=u(void 0,r[m]))}),fe.forEach(s,h),fe.forEach(o,function(m){fe.isUndefined(r[m])?fe.isUndefined(e[m])||(n[m]=u(void 0,e[m])):n[m]=u(void 0,r[m])}),fe.forEach(a,function(m){m in r?n[m]=u(e[m],r[m]):m in e&&(n[m]=u(void 0,e[m]))});var c=i.concat(s).concat(o).concat(a),p=Object.keys(e).concat(Object.keys(r)).filter(function(m){return c.indexOf(m)===-1});return fe.forEach(p,h),n}});var Ef=y((e2,Sf)=>{"use strict";var wf=os(),ds={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){ds[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var _f={},Lg=wf.version.split(".");function xf(t,e){for(var r=e?e.split("."):Lg,n=t.split("."),i=0;i<3;i++){if(r[i]>n[i])return!0;if(r[i]<n[i])return!1}return!1}ds.transitional=function(e,r,n){var i=r&&xf(r);function s(o,a){return"[Axios v"+wf.version+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return function(o,a,u){if(e===!1)throw new Error(s(a," has been removed in "+r));return i&&!_f[a]&&(_f[a]=!0,console.warn(s(a," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(o,a,u):!0}};function $g(t,e,r){if(typeof t!="object")throw new TypeError("options must be an object");for(var n=Object.keys(t),i=n.length;i-- >0;){var s=n[i],o=e[s];if(o){var a=t[s],u=a===void 0||o(a,s,t);if(u!==!0)throw new TypeError("option "+s+" must be "+u);continue}if(r!==!0)throw Error("Unknown option "+s)}}Sf.exports={isOlderVersion:xf,assertOptions:$g,validators:ds}});var If=y((t2,Ff)=>{"use strict";var Of=ve(),Bg=rn(),Cf=wl(),Pf=vf(),gn=fs(),Df=Ef(),kt=Df.validators;function sr(t){this.defaults=t,this.interceptors={request:new Cf,response:new Cf}}sr.prototype.request=function(e){typeof e=="string"?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=gn(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var r=e.transitional;r!==void 0&&Df.assertOptions(r,{silentJSONParsing:kt.transitional(kt.boolean,"1.0.0"),forcedJSONParsing:kt.transitional(kt.boolean,"1.0.0"),clarifyTimeoutError:kt.transitional(kt.boolean,"1.0.0")},!1);var n=[],i=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(e)===!1||(i=i&&g.synchronous,n.unshift(g.fulfilled,g.rejected))});var s=[];this.interceptors.response.forEach(function(g){s.push(g.fulfilled,g.rejected)});var o;if(!i){var a=[Pf,void 0];for(Array.prototype.unshift.apply(a,n),a=a.concat(s),o=Promise.resolve(e);a.length;)o=o.then(a.shift(),a.shift());return o}for(var u=e;n.length;){var h=n.shift(),c=n.shift();try{u=h(u)}catch(p){c(p);break}}try{o=Pf(u)}catch(p){return Promise.reject(p)}for(;s.length;)o=o.then(s.shift(),s.shift());return o};sr.prototype.getUri=function(e){return e=gn(this.defaults,e),Bg(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};Of.forEach(["delete","get","head","options"],function(e){sr.prototype[e]=function(r,n){return this.request(gn(n||{},{method:e,url:r,data:(n||{}).data}))}});Of.forEach(["post","put","patch"],function(e){sr.prototype[e]=function(r,n,i){return this.request(gn(i||{},{method:e,url:r,data:n}))}});Ff.exports=sr});var ps=y((r2,Af)=>{"use strict";function hs(t){this.message=t}hs.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};hs.prototype.__CANCEL__=!0;Af.exports=hs});var kf=y((n2,Rf)=>{"use strict";var Ug=ps();function yn(t){if(typeof t!="function")throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(i){e=i});var r=this;t(function(i){r.reason||(r.reason=new Ug(i),e(r.reason))})}yn.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};yn.source=function(){var e,r=new yn(function(i){e=i});return{token:r,cancel:e}};Rf.exports=yn});var Mf=y((i2,qf)=>{"use strict";qf.exports=function(e){return function(n){return e.apply(null,n)}}});var Nf=y((s2,Tf)=>{"use strict";Tf.exports=function(e){return typeof e=="object"&&e.isAxiosError===!0}});var $f=y((o2,ms)=>{"use strict";var jf=ve(),Xg=Xi(),vn=If(),Hg=fs(),Gg=mn();function Lf(t){var e=new vn(t),r=Xg(vn.prototype.request,e);return jf.extend(r,vn.prototype,e),jf.extend(r,e),r}var Te=Lf(Gg);Te.Axios=vn;Te.create=function(e){return Lf(Hg(Te.defaults,e))};Te.Cancel=ps();Te.CancelToken=kf();Te.isCancel=us();Te.all=function(e){return Promise.all(e)};Te.spread=Mf();Te.isAxiosError=Nf();ms.exports=Te;ms.exports.default=Te});var gs=y((a2,Bf)=>{Bf.exports=$f()});var Q=y(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.isUndefined=Se.fixName=Se.validateName=Se.validateSingleChar=Se.fixChar=Se.validateChar=void 0;function ry(t){for(var e=0;e<t.length;e++){var r=t.charCodeAt(e);if(!(r===9||r===10||r===13||r>=32&&r<=55295||r>=57344&&r<=65533)){if(e+1===t.length)return!1;var n=t.charCodeAt(e+1);if(r>=55296&&r<=56319&&n>=56320&&n<=57343){e++;continue}return!1}}return!0}Se.validateChar=ry;function ny(t){for(var e="",r=0;r<t.length;r++){var n=t.charCodeAt(r);if(n===9||n===10||n===13||n>=32&&n<=55295||n>=57344&&n<=65533){e+=t[r];continue}if(r+1===t.length)return e+="\uFFFD",e;var i=t.charCodeAt(r+1);if(n>=55296&&n<=56319&&i>=56320&&i<=57343){e+=t[r]+t[r+1],r++;continue}e+="\uFFFD"}return e}Se.fixChar=ny;function iy(t){if(t.length===0)return!1;var e=t.charCodeAt(0);if(t.length===1)return e===9||e===10||e===13||e>=32&&e<=55295||e>=57344&&e<=65533;if(t.length!==2)return!1;var r=t.charCodeAt(1);return e>=55296&&e<=56319&&r>=56320&&r<=57343}Se.validateSingleChar=iy;function sy(t){if(t.length===0)return!1;var e=t.charCodeAt(0),r=e===58||e===95||e>=65&&e<=90||e>=97&&e<=122||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533;if(t.length===1)return r;var n=t.charCodeAt(1),i=e>=55296&&e<=56191&&n>=56320&&n<=57343;if(!r&&!i)return!1;for(var s=i?2:1,o=s;o<t.length;o++){var a=t.charCodeAt(o);if(!(a===58||a===95||a===45||a===46||a===183||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||a>=192&&a<=214||a>=216&&a<=246||a>=248&&a<=767||a>=768&&a<=879||a>=880&&a<=893||a>=895&&a<=8191||a>=8204&&a<=8205||a>=8255&&a<=8256||a>=8304&&a<=8591||a>=11264&&a<=12271||a>=12289&&a<=55295||a>=63744&&a<=64975||a>=65008&&a<=65533)){if(o+1===t.length)return!1;var u=t.charCodeAt(o+1);if(a>=55296&&a<=56191&&u>=56320&&u<=57343){o++;continue}return!1}}return!0}Se.validateName=sy;function oy(t){var e="";if(t.length===0)return e;var r=t.charCodeAt(0),n=r===58||r===95||r>=65&&r<=90||r>=97&&r<=122||r>=192&&r<=214||r>=216&&r<=246||r>=248&&r<=767||r>=880&&r<=893||r>=895&&r<=8191||r>=8204&&r<=8205||r>=8304&&r<=8591||r>=11264&&r<=12271||r>=12289&&r<=55295||r>=63744&&r<=64975||r>=65008&&r<=65533;if(t.length===1)return n?e=t[0]:e="\uFFFD",e;var i=t.charCodeAt(1),s=r>=55296&&r<=56191&&i>=56320&&i<=57343;s?e=t[0]+t[1]:n?e=t[0]:e="\uFFFD";for(var o=s?2:1,a=o;a<t.length;a++){var u=t.charCodeAt(a);if(u===58||u===95||u===45||u===46||u===183||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||u>=192&&u<=214||u>=216&&u<=246||u>=248&&u<=767||u>=768&&u<=879||u>=880&&u<=893||u>=895&&u<=8191||u>=8204&&u<=8205||u>=8255&&u<=8256||u>=8304&&u<=8591||u>=11264&&u<=12271||u>=12289&&u<=55295||u>=63744&&u<=64975||u>=65008&&u<=65533){e+=t[a];continue}if(a+1===t.length)return e+="\uFFFD",e;var h=t.charCodeAt(a+1);if(u>=55296&&u<=56191&&h>=56320&&h<=57343){e+=t[a]+t[a+1],a++;continue}e+="\uFFFD"}return e}Se.fixName=oy;function ay(t){return Object.prototype.toString.call(t)==="[object Undefined]"}Se.isUndefined=ay});var qt=y(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.StringOptions=void 0;var Sn=Q(),uy=function(){function t(e){this.doubleQuotes=!1,this.indent=" ",this.newline=`
22
- `,this.pretty=!0,(0,Sn.isUndefined)(e.doubleQuotes)||(this.doubleQuotes=e.doubleQuotes),(0,Sn.isUndefined)(e.indent)||(this.indent=e.indent),(0,Sn.isUndefined)(e.newline)||(this.newline=e.newline),(0,Sn.isUndefined)(e.pretty)||(this.pretty=e.pretty)}return t}();En.StringOptions=uy});var Cn=y(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.escapeDoubleQuotes=Ae.escapeSingleQuotes=Ae.escapeRightAngleBracketsInCdataTerminator=Ae.escapeLeftAngleBrackets=Ae.escapeAmpersands=void 0;function cy(t){return t.replace(/&/g,"&amp;")}Ae.escapeAmpersands=cy;function ly(t){return t.replace(/</g,"&lt;")}Ae.escapeLeftAngleBrackets=ly;function fy(t){return t.replace(/]]>/g,"]]&gt;")}Ae.escapeRightAngleBracketsInCdataTerminator=fy;function dy(t){return t.replace(/'/g,"&apos;")}Ae.escapeSingleQuotes=dy;function hy(t){return t.replace(/"/g,"&quot;")}Ae.escapeDoubleQuotes=hy});var Ds=y(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});var py=ae(),nd=Cn(),Ps=Q(),my=function(){function t(e,r,n){this._validation=r,(0,Ps.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,Ps.fixChar)(e);else if(this._validation&&!(0,Ps.validateChar)(e))throw new Error((0,py.getContext)(this.up())+": attribute text"+(' "'+e+'" should not contain characters not')+" allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e=this._charData;return e=(0,nd.escapeAmpersands)(e),e=(0,nd.escapeLeftAngleBrackets)(e),e},t.prototype.up=function(){return this._parent},t}();Os.default=my});var Pn=y(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});var id=ae(),sd=Q(),gy=function(){function t(e,r,n){this._hex=!1,this._validation=r,this._parent=e,this.char=n.char,(0,sd.isUndefined)(n.hex)||(this.hex=n.hex)}return Object.defineProperty(t.prototype,"char",{get:function(){return this._char},set:function(e){if(this._validation&&!(0,sd.validateSingleChar)(e))throw new Error((0,id.getContext)(this.up())+": character reference"+(' "'+e+'" should reference a single character,')+" and this character should be allowed in XML");this._char=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hex",{get:function(){return this._hex},set:function(e){this._hex=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e;if(this._char.length===1)e=this._char.charCodeAt(0);else{var r=this._char.charCodeAt(0);if(r>=55296&&r<=56319&&this._char.length>1){var n=this._char.charCodeAt(1);if(n>=56320&&n<=57343)e=(r-55296)*1024+n-56320+65536;else throw new Error((0,id.getContext)(this.up())+": character"+(' reference "'+this.char+'" should')+" reference a valid Unicode character")}else e=r}return this._hex?"&#x"+e.toString(16)+";":"&#"+e+";"},t.prototype.up=function(){return this._parent},t}();Fs.default=gy});var On=y(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});var yy=ae(),vy=Q(),by=function(){function t(e,r,n){this._validation=r,this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._validation&&!(0,vy.validateName)(e))throw new Error((0,yy.getContext)(this.up())+": entity reference name"+(' "'+e+'" should not contain characters not')+" allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"&"+this._name+";"},t.prototype.up=function(){return this._parent},t}();Is.default=by});var Dn=y(ur=>{"use strict";var ks=ur&&ur.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ur,"__esModule",{value:!0});var As=ae(),od=Cn(),_y=qt(),Rs=Q(),wy=ks(Ds()),xy=ks(Pn()),Sy=ks(On()),Ey=function(){function t(e,r,n){this._validation=r,(0,Rs.isUndefined)(n.replaceInvalidCharsInName)?this._replaceInvalidCharsInName=!1:this._replaceInvalidCharsInName=n.replaceInvalidCharsInName,this._children=[],this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._replaceInvalidCharsInName){if(e=(0,Rs.fixName)(e),e.length===0)throw new Error((0,As.getContext)(this.up())+": attribute name should not be empty")}else if(this._validation&&!(0,Rs.validateName)(e))throw e.length===0?new Error((0,As.getContext)(this.up())+": attribute name should not be empty"):new Error((0,As.getContext)(this.up())+": attribute name"+(' "'+e+'" should not contain characters not')+" allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.charRef=function(e){var r=new xy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.entityRef=function(e){var r=new Sy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.text=function(e){var r=new wy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});for(var r=new _y.StringOptions(e),n=r.doubleQuotes?'"':"'",i=this._name+"="+n,s=0,o=this._children;s<o.length;s++){var a=o[s];r.doubleQuotes?i+=(0,od.escapeDoubleQuotes)(a.toString()):i+=(0,od.escapeSingleQuotes)(a.toString())}return i+=n,i},t.prototype.up=function(){return this._parent},t}();ur.default=Ey});var Ms=y(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});var Cy=ae(),Py=Q(),Oy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,Py.validateChar)(e))throw new Error((0,Cy.getContext)(this.up())+": attribute-list"+(' declaration "'+e+'" should not contain')+" characters not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!ATTLIST "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();qs.default=Oy});var Ns=y(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});var Dy=ae(),Fy=Q(),Iy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,Fy.validateChar)(e))throw new Error((0,Dy.getContext)(this.up())+": element declaration"+(' "'+e+'" should not contain characters')+" not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!ELEMENT "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();Ts.default=Iy});var Ls=y(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});var Ay=ae(),Ry=Q(),ky=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,Ry.validateChar)(e))throw new Error((0,Ay.getContext)(this.up())+": entity declaration"+(' "'+e+'" should not contain characters')+" not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!ENTITY "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();js.default=ky});var Bs=y($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});var qy=ae(),My=Q(),Ty=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,My.validateChar)(e))throw new Error((0,qy.getContext)(this.up())+": notation declaration"+(' "'+e+'" should not contain characters')+" not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!NOTATION "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();$s.default=Ty});var Xs=y(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});var Ny=ae(),jy=Q(),Ly=function(){function t(e,r,n){this._validation=r,this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._validation&&!(0,jy.validateName)(e))throw new Error((0,Ny.getContext)(this.up())+": parameter entity"+(' reference name "'+e+'" should not contain')+" characters not allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"%"+this._name+";"},t.prototype.up=function(){return this._parent},t}();Us.default=Ly});var cr=y(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});var Fn=ae(),In=Q(),$y=function(){function t(e,r,n){this._validation=r,this._parent=e,this.content=n.content,this.target=n.target}return Object.defineProperty(t.prototype,"content",{get:function(){return this._content},set:function(e){if(!(0,In.isUndefined)(e)){if(this._validation&&!(0,In.validateChar)(e))throw new Error((0,Fn.getContext)(this.up())+": processing"+(' instruction content "'+e+'" should')+" not contain characters not allowed in XML");if(this._validation&&e.indexOf("?>")!==-1)throw new Error((0,Fn.getContext)(this.up())+": processing"+(' instruction content "'+e+'" should')+" not contain the string '?>'")}this._content=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){return this._target},set:function(e){if(this._validation&&!(0,In.validateName)(e))throw new Error((0,Fn.getContext)(this.up())+": processing"+(' instruction target "'+e+'" should')+" not contain characters not allowed in XML names");if(this._validation&&e==="xml")throw new Error((0,Fn.getContext)(this.up())+": processing"+(' instruction target "'+e+'" should')+" not be the string 'xml'");this._target=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return(0,In.isUndefined)(this._content)?"<?"+this._target+"?>":"<?"+this._target+" "+this._content+"?>"},t.prototype.up=function(){return this._parent},t}();Hs.default=$y});var An=y(ut=>{"use strict";var ct=ut&&ut.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ut,"__esModule",{value:!0});ut.validatePubId=void 0;var Qe=ae(),By=qt(),Le=Q(),Uy=ct(lr()),Xy=ct(Ms()),Hy=ct(Ns()),Gy=ct(Ls()),zy=ct(Bs()),Wy=ct(Xs()),Jy=ct(cr()),Vy=function(){function t(e,r,n){this._pubId=void 0,this._sysId=void 0,this._validation=r,this._children=[],this._parent=e,this.name=n.name,(0,Le.isUndefined)(n.sysId)||(this.sysId=n.sysId),(0,Le.isUndefined)(n.pubId)||(this.pubId=n.pubId)}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._validation&&!(0,Le.validateName)(e))throw new Error((0,Qe.getContext)(this.up())+': DTD name "'+e+'" should not contain characters not allowed in XML names');this._name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pubId",{get:function(){return this._pubId},set:function(e){if(!(0,Le.isUndefined)(e)){if(this._validation&&!ad(e))throw new Error((0,Qe.getContext)(this.up())+": DTD public"+(' identifier "'+e+'" should not contain')+" characters not allowed in public identifiers");if(this._validation&&(0,Le.isUndefined)(this._sysId))throw new Error((0,Qe.getContext)(this.up())+": DTD public"+(' identifier "'+e+'" should not be defined')+" if system identifier is undefined")}this._pubId=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sysId",{get:function(){return this._sysId},set:function(e){if(!(0,Le.isUndefined)(e)){if(this._validation&&!(0,Le.validateChar)(e))throw new Error((0,Qe.getContext)(this.up())+": DTD system"+(' identifier "'+e+'" should not contain')+" characters not allowed in XML");if(this._validation&&e.indexOf("'")!==-1&&e.indexOf('"')!==-1)throw new Error((0,Qe.getContext)(this.up())+": DTD system"+(' identifier "'+e+'" should not contain')+" both single quotes and double quotes")}this._sysId=e},enumerable:!1,configurable:!0}),t.prototype.attlist=function(e){var r=new Xy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.comment=function(e){var r=new Uy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.element=function(e){var r=new Hy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.entity=function(e){var r=new Gy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.notation=function(e){var r=new zy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.paramEntityRef=function(e){var r=new Wy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.procInst=function(e){var r=new Jy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});var r=new By.StringOptions(e),n="<!DOCTYPE "+this._name;if((0,Le.isUndefined)(this._pubId))(0,Le.isUndefined)(this._sysId)||(n+=" ",n=this.appendId("SYSTEM",this._sysId,n,r));else{if((0,Le.isUndefined)(this._sysId))throw new Error((0,Qe.getContext)(this.up())+": DTD system identifier is not undefined");n+=" ",n=this.appendId("PUBLIC",this._pubId,n,r),n=this.appendId("",this._sysId,n,r)}if(this._children.length!==0){n+=" [";for(var i=0,s=this._children;i<s.length;i++){var o=s[i];r.pretty&&(n+=r.newline+r.indent),n+=o.toString()}r.pretty&&(n+=r.newline),n+="]>"}else n+=">";return n},t.prototype.up=function(){return this._parent},t.prototype.appendId=function(e,r,n,i){if(n+=e+" ",i.doubleQuotes){if(this._validation&&r.indexOf('"')!==-1)throw new Error((0,Qe.getContext)(this.up())+": doubleQuotes option inconsistent with DTD system identifier or public identifier");n+='"'+r+'"'}else{if(this._validation&&r.indexOf("'")!==-1)throw new Error((0,Qe.getContext)(this)+": doubleQuotes option inconsistent with DTD system identifier or public identifier");n+="'"+r+"'"}return n},t}();ut.default=Vy;function ad(t){for(var e=0;e<t.length;e++){var r=t.charCodeAt(e);if(!(r===10||r===13||r===32||r===33||r>=35&&r<=37||r>=39&&r<=47||r>=48&&r<=57||r===58||r===59||r===61||r===63||r>=64&&r<=90||r===95||r>=97&&r<=122))return e+1===t.length,!1}return!0}ut.validatePubId=ad});var Ws=y(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});var ud=ae(),Gs=Q(),Yy=function(){function t(e,r,n){this._validation=r,(0,Gs.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,Gs.fixChar)(e);else if(this._validation&&!(0,Gs.validateChar)(e))throw new Error((0,ud.getContext)(this.up())+": CDATA section"+(' "'+e+'" should not contain characters')+" not allowed in XML");if(this._replaceInvalidCharsInCharData)e=e.replace("]]>","\uFFFD\uFFFD\uFFFD");else if(this._validation&&e.indexOf("]]>")!==-1)throw new Error((0,ud.getContext)(this.up())+": CDATA section"+(' "'+e+'" should not contain the string')+" ']]>'");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<![CDATA["+this._charData+"]]>"},t.prototype.up=function(){return this._parent},t}();zs.default=Yy});var Ks=y(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});var Ky=ae(),Js=Cn(),Vs=Q(),Qy=function(){function t(e,r,n){this._validation=r,(0,Vs.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,Vs.fixChar)(e);else if(this._validation&&!(0,Vs.validateChar)(e))throw new Error((0,Ky.getContext)(this.up())+": character data"+('"'+e+'" should not contain characters not')+" allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e=this._charData;return e=(0,Js.escapeAmpersands)(e),e=(0,Js.escapeLeftAngleBrackets)(e),e=(0,Js.escapeRightAngleBracketsInCdataTerminator)(e),e},t.prototype.up=function(){return this._parent},t}();Ys.default=Qy});var Mn=y(hr=>{"use strict";var lt=hr&&hr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(hr,"__esModule",{value:!0});var Rn=ae(),Zy=qt(),fr=Q(),cd=lt(Dn()),e1=lt(Ws()),dr=lt(Ks()),kn=lt(Pn()),t1=lt(lr()),qn=lt(On()),r1=lt(cr()),n1=function(){function t(e,r,n){this._validation=r,(0,fr.isUndefined)(n.replaceInvalidCharsInName)?this._replaceInvalidCharsInName=!1:this._replaceInvalidCharsInName=n.replaceInvalidCharsInName,(0,fr.isUndefined)(n.useSelfClosingTagIfEmpty)?this._useSelfClosingTagIfEmpty=!0:this._useSelfClosingTagIfEmpty=n.useSelfClosingTagIfEmpty,this._children=[],this._attributeNames=[],this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._replaceInvalidCharsInName){if(e=(0,fr.fixName)(e),e.length===0)throw new Error((0,Rn.getContext)(this.up())+": element name should not be empty")}else if(this._validation&&!(0,fr.validateName)(e))throw e.length===0?new Error((0,Rn.getContext)(this.up())+": element name should not be empty"):new Error((0,Rn.getContext)(this.up())+": element name"+(' "'+e+'" should not contain characters not')+" allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.attribute=function(e){if(this._validation&&this._attributeNames.indexOf(e.name)!==-1)throw new Error((0,Rn.getContext)(this.up())+': element "'+this.name+'" already contains an attribute with the'+(' name "'+e.name+'"'));var r=new cd.default(this,this._validation,e);return this._children.push(r),this._attributeNames.push(e.name),r},t.prototype.cdata=function(e){var r=new e1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.charData=function(e){var r=new dr.default(this,this._validation,e);return this._children.push(r),r},t.prototype.charRef=function(e){var r=new kn.default(this,this._validation,e);return this._children.push(r),r},t.prototype.comment=function(e){var r=new t1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.element=function(e){var r=new t(this,this._validation,e);return this._children.push(r),r},t.prototype.entityRef=function(e){var r=new qn.default(this,this._validation,e);return this._children.push(r),r},t.prototype.procInst=function(e){var r=new r1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){return e===void 0&&(e={}),this.toStringWithIndent(e,"")},t.prototype.up=function(){return this._parent},t.prototype.toStringWithIndent=function(e,r){for(var n=new Zy.StringOptions(e),i=r+n.indent,s="<"+this._name,o=[],a=0,u=this._children;a<u.length;a++){var h=u[a];h instanceof cd.default?s+=" "+h.toString(e):o.push(h)}if(o.length>0){for(var c="",p=0;p<o.length;p++){var g=o[p],m="";g instanceof t?m+=g.toStringWithIndent(n,i):m+=g.toString();var b=p>0?o[p-1]:void 0;g instanceof dr.default&&g.toString()===""||(n.pretty&&(this.allSameLineNodes(o)||p>0&&this.onSameLine(g,b)||(m=n.newline+i+m)),c+=m)}n.pretty&&(this.allSameLineNodes(o)||(c+=n.newline+r)),c.length===0&&this._useSelfClosingTagIfEmpty?s+="/>":s+=">"+c+"</"+this._name+">"}else this._useSelfClosingTagIfEmpty?s+="/>":s+="></"+this._name+">";return s},t.prototype.allSameLineNodes=function(e){for(var r=0,n=e;r<n.length;r++){var i=n[r];if(!(i instanceof kn.default||i instanceof qn.default||i instanceof dr.default))return!1}return!0},t.prototype.onSameLine=function(e,r){return(e instanceof kn.default||e instanceof qn.default||e instanceof dr.default)&&!(0,fr.isUndefined)(r)&&(r instanceof kn.default||r instanceof qn.default||r instanceof dr.default)},t}();hr.default=n1});var ae=y(Mt=>{"use strict";var Nn=Mt&&Mt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Mt,"__esModule",{value:!0});Mt.getContext=void 0;var i1=Nn(Dn()),s1=Nn(jn()),o1=Nn(An()),a1=Nn(Mn());function Tn(t){if(t instanceof i1.default)return Tn(t.up())+(' > attribute "'+t.name+'"');if(t instanceof s1.default)return"in XML document";if(t instanceof o1.default)return Tn(t.up())+" > DTD";if(t instanceof a1.default)return Tn(t.up())+(' > element "'+t.name+'"');throw new Error("Unrecognized object of type "+Object.prototype.toString.call(t))}Mt.getContext=Tn});var lr=y(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});var Qs=ae(),Zs=Q(),u1=function(){function t(e,r,n){this._validation=r,(0,Zs.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,Zs.fixChar)(e);else if(this._validation&&!(0,Zs.validateChar)(e))throw new Error((0,Qs.getContext)(this.up())+": comment content"+(' "'+e+'" should not contain characters')+" not allowed in XML");if(this._replaceInvalidCharsInCharData)e=e.replace("--","\uFFFD\uFFFD");else if(this._validation&&e.indexOf("--")!==-1)throw new Error((0,Qs.getContext)(this.up())+": comment content"+(' "'+e+'" should not contain the string')+" '--'");if(this._replaceInvalidCharsInCharData)e.lastIndexOf("-")===e.length-1&&(e=e.substr(0,e.length-1)+"\uFFFD");else if(this._validation&&e.lastIndexOf("-")===e.length-1)throw new Error((0,Qs.getContext)(this.up())+": comment content"+(' "'+e+'" should not end with the string')+" '-'");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!--"+this._charData+"-->"},t.prototype.up=function(){return this._parent},t}();eo.default=u1});var no=y(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});var to=ae(),c1=qt(),pr=Q(),l1=function(){function t(e,r,n){this._version="1.0",this._validation=r,this._parent=e,this.encoding=n.encoding,this.standalone=n.standalone,(0,pr.isUndefined)(n.version)||(this.version=n.version)}return Object.defineProperty(t.prototype,"encoding",{get:function(){return this._encoding},set:function(e){if(this._validation&&!(0,pr.isUndefined)(e)&&!f1(e))throw new Error((0,to.getContext)(this.up())+": declaration"+(" encoding attribute "+e+" should be a")+" valid encoding");this._encoding=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"standalone",{get:function(){return this._standalone},set:function(e){if(this._validation&&!(0,pr.isUndefined)(e)&&e!=="yes"&&e!=="no")throw new Error((0,to.getContext)(this.up())+": declaration"+(" standalone attribute "+e+" should")+" be the string 'yes' or the string 'no'");this._standalone=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},set:function(e){if(this._validation&&!d1(e))throw new Error((0,to.getContext)(this.up())+": declaration version"+(" attribute "+e+" should be a valid XML")+" version");this._version=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(e){e===void 0&&(e={});var r=new c1.StringOptions(e),n=r.doubleQuotes?'"':"'",i="<?xml version="+n+this._version+n;return(0,pr.isUndefined)(this._encoding)||(i+=" encoding="+n+this._encoding+n),(0,pr.isUndefined)(this._standalone)||(i+=" standalone="+n+this._standalone+n),i+="?>",i},t.prototype.up=function(){return this._parent},t}();ro.default=l1;function f1(t){if(t.length===0)return!1;var e=t.charCodeAt(0);if(!(e>=65&&e<=90||e>=97&&e<=122))return!1;for(var r=1;r<t.length;r++){var n=t.charCodeAt(r);if(!(n===95||n===45||n===46||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122))return r+1===t.length,!1}return!0}function d1(t){for(var e=0;e<=9;e++)if(t==="1."+e)return!0;return!1}});var jn=y(gr=>{"use strict";var yr=gr&&gr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(gr,"__esModule",{value:!0});var h1=qt(),p1=Q(),m1=yr(lr()),ld=yr(no()),fd=yr(An()),mr=yr(Mn()),g1=yr(cr()),y1=function(){function t(e){this._children=[],this._validation=(0,p1.isUndefined)(e.validation)?!0:e.validation}return t.prototype.comment=function(e){var r=new m1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.decl=function(e){if(e===void 0&&(e={}),this._validation&&this._children.length!==0)throw new Error("in XML document: declaration must be the first child");var r=new ld.default(this,this._validation,e);return this._children.push(r),r},t.prototype.dtd=function(e){var r=this._children.filter(function(i){return i instanceof mr.default});if(this._validation&&r.length!==0)throw new Error("in XML document: DTD must precede the root element");var n=new fd.default(this,this._validation,e);return this._children.push(n),n},t.prototype.element=function(e){var r=this._children.filter(function(i){return i instanceof mr.default});if(this._validation&&r.length!==0)throw new Error("in XML document: only one root element is permitted");var n=new mr.default(this,this._validation,e);return this._children.push(n),n},t.prototype.procInst=function(e){var r=new g1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});var r=this._children.filter(function(h){return h instanceof mr.default});if(this._validation&&r.length!==1)throw new Error("in XML document: no more than one root element is permitted");for(var n=new h1.StringOptions(e),i="",s=0,o=this._children;s<o.length;s++){var a=o[s];a instanceof ld.default||a instanceof fd.default||a instanceof mr.default?i+=a.toString(e):i+=a.toString(),n.pretty&&(i+=n.newline)}var u=i.length-n.newline.length;return i.substr(u)===n.newline&&(i=i.substr(0,u)),i},t}();gr.default=y1});var dd=y(R=>{"use strict";var ee=R&&R.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(R,"__esModule",{value:!0});R.document=R.XmlProcInst=R.XmlEntityRef=R.XmlElement=R.XmlDtdParamEntityRef=R.XmlDtdNotation=R.XmlDtdEntity=R.XmlDtdElement=R.XmlDtdAttlist=R.XmlDtd=R.XmlDocument=R.XmlDecl=R.XmlComment=R.XmlCharRef=R.XmlCharData=R.XmlCdata=R.XmlAttributeText=R.XmlAttribute=void 0;var v1=ee(jn()),b1=Dn();Object.defineProperty(R,"XmlAttribute",{enumerable:!0,get:function(){return ee(b1).default}});var _1=Ds();Object.defineProperty(R,"XmlAttributeText",{enumerable:!0,get:function(){return ee(_1).default}});var w1=Ws();Object.defineProperty(R,"XmlCdata",{enumerable:!0,get:function(){return ee(w1).default}});var x1=Ks();Object.defineProperty(R,"XmlCharData",{enumerable:!0,get:function(){return ee(x1).default}});var S1=Pn();Object.defineProperty(R,"XmlCharRef",{enumerable:!0,get:function(){return ee(S1).default}});var E1=lr();Object.defineProperty(R,"XmlComment",{enumerable:!0,get:function(){return ee(E1).default}});var C1=no();Object.defineProperty(R,"XmlDecl",{enumerable:!0,get:function(){return ee(C1).default}});var P1=jn();Object.defineProperty(R,"XmlDocument",{enumerable:!0,get:function(){return ee(P1).default}});var O1=An();Object.defineProperty(R,"XmlDtd",{enumerable:!0,get:function(){return ee(O1).default}});var D1=Ms();Object.defineProperty(R,"XmlDtdAttlist",{enumerable:!0,get:function(){return ee(D1).default}});var F1=Ns();Object.defineProperty(R,"XmlDtdElement",{enumerable:!0,get:function(){return ee(F1).default}});var I1=Ls();Object.defineProperty(R,"XmlDtdEntity",{enumerable:!0,get:function(){return ee(I1).default}});var A1=Bs();Object.defineProperty(R,"XmlDtdNotation",{enumerable:!0,get:function(){return ee(A1).default}});var R1=Xs();Object.defineProperty(R,"XmlDtdParamEntityRef",{enumerable:!0,get:function(){return ee(R1).default}});var k1=Mn();Object.defineProperty(R,"XmlElement",{enumerable:!0,get:function(){return ee(k1).default}});var q1=On();Object.defineProperty(R,"XmlEntityRef",{enumerable:!0,get:function(){return ee(q1).default}});var M1=cr();Object.defineProperty(R,"XmlProcInst",{enumerable:!0,get:function(){return ee(M1).default}});function T1(t){return t===void 0&&(t={}),new v1.default(t)}R.document=T1});var io=y(te=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});te.stringify=te.isMap=te.isSet=te.isFunction=te.isArray=te.isObject=te.isNull=te.isUndefined=void 0;function hd(t){return Object.prototype.toString.call(t)==="[object Undefined]"}te.isUndefined=hd;function pd(t){return Object.prototype.toString.call(t)==="[object Null]"}te.isNull=pd;function N1(t){return Object.prototype.toString.call(t)==="[object Object]"}te.isObject=N1;function j1(t){return Object.prototype.toString.call(t)==="[object Array]"}te.isArray=j1;function md(t){return Object.prototype.toString.call(t)==="[object Function]"}te.isFunction=md;function L1(t){return Object.prototype.toString.call(t)==="[object Set]"}te.isSet=L1;function $1(t){return Object.prototype.toString.call(t)==="[object Map]"}te.isMap=$1;function B1(t){return!hd(t)&&!pd(t)&&md(t?.toString)&&(t=t.toString()),String(t)}te.stringify=B1});var wd=y(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.WrapHandlers=Ee.TypeHandlers=Ee.FormatOptions=Ee.DtdOptions=Ee.DeclarationOptions=Ee.Options=void 0;var Ne=io(),U1=function(){function t(e){e===void 0&&(e={}),this.aliasString="=",this.attributeString="@",this.cdataInvalidChars=!1,this.cdataKeys=[],this.replaceInvalidChars=!1,this.useSelfClosingTagIfEmpty=!0,this.validation=!0,this.valueString="#",(0,Ne.isUndefined)(e.validation)||(this.validation=e.validation),(0,Ne.isUndefined)(e.aliasString)||(this.aliasString=e.aliasString),(0,Ne.isUndefined)(e.attributeString)||(this.attributeString=e.attributeString),(0,Ne.isUndefined)(e.cdataInvalidChars)||(this.cdataInvalidChars=e.cdataInvalidChars),(0,Ne.isUndefined)(e.cdataKeys)||(this.cdataKeys=e.cdataKeys),this.declaration=new gd(e.declaration),this.dtd=new yd(this.validation,e.dtd),this.format=new vd(e.format),(0,Ne.isUndefined)(e.replaceInvalidChars)||(this.replaceInvalidChars=e.replaceInvalidChars),this.typeHandlers=new bd(e.typeHandlers),(0,Ne.isUndefined)(e.useSelfClosingTagIfEmpty)||(this.useSelfClosingTagIfEmpty=e.useSelfClosingTagIfEmpty),(0,Ne.isUndefined)(e.valueString)||(this.valueString=e.valueString),this.wrapHandlers=new _d(e.wrapHandlers)}return t}();Ee.Options=U1;var gd=function(){function t(e){e===void 0&&(e={}),this.include=!0,(0,Ne.isUndefined)(e.include)||(this.include=e.include),this.encoding=e.encoding,this.standalone=e.standalone,this.version=e.version}return t}();Ee.DeclarationOptions=gd;var yd=function(){function t(e,r){if(r===void 0&&(r={}),this.include=!1,(0,Ne.isUndefined)(r.include)||(this.include=r.include),e&&(0,Ne.isUndefined)(r.name)&&this.include)throw new Error("options.dtd.name should be defined if options.dtd.include is true");this.name=r.name,this.sysId=r.sysId,this.pubId=r.pubId}return t}();Ee.DtdOptions=yd;var vd=function(){function t(e){e===void 0&&(e={}),this.doubleQuotes=e.doubleQuotes,this.indent=e.indent,this.newline=e.newline,this.pretty=e.pretty}return t}();Ee.FormatOptions=vd;var bd=function(){function t(e){e===void 0&&(e={});for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this[r]=e[r])}return t}();Ee.TypeHandlers=bd;var _d=function(){function t(e){e===void 0&&(e={});for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this[r]=e[r])}return t}();Ee.WrapHandlers=_d});var Od=y(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.parse=Ze.parseToExistingElement=Ze.Absent=void 0;var Sd=dd(),Ed=wd(),V=io(),so=function(){function t(){}return Object.defineProperty(t,"instance",{get:function(){return t._instance},enumerable:!1,configurable:!0}),t._instance=new t,t}();Ze.Absent=so;function oo(t,e){var r=Object.prototype.toString.call(t),n;return Object.prototype.hasOwnProperty.call(e.typeHandlers,"*")&&(n=e.typeHandlers["*"]),Object.prototype.hasOwnProperty.call(e.typeHandlers,r)&&(n=e.typeHandlers[r]),n}function Cd(t,e,r){var n=function(o){return r.cdataInvalidChars&&(o.indexOf("<")!==-1||o.indexOf("&")!==-1)||r.cdataKeys.indexOf(e.name)!==-1||r.cdataKeys.indexOf("*")!==-1};if(e instanceof Sd.XmlElement)if(n(t))for(var i=t.split("]]>"),s=0;s<i.length;s++)n(i[s])?e.cdata({charData:i[s],replaceInvalidCharsInCharData:r.replaceInvalidChars}):e.charData({charData:i[s],replaceInvalidCharsInCharData:r.replaceInvalidChars}),s<i.length-1&&e.charData({charData:"]]>",replaceInvalidCharsInCharData:r.replaceInvalidChars});else e.charData({charData:t,replaceInvalidCharsInCharData:r.replaceInvalidChars});else e.text({charData:t,replaceInvalidCharsInCharData:r.replaceInvalidChars})}function X1(t,e,r,n){var i=r.attribute({name:t,replaceInvalidCharsInName:n.replaceInvalidChars});Cd((0,V.stringify)(e),i,n)}function xd(t,e,r,n){if(t===n.aliasString){r.name=(0,V.stringify)(e);return}if(t.indexOf(n.attributeString)===0&&(0,V.isObject)(e)){for(var i=0,s=Object.keys(e);i<s.length;i++){var o=s[i];X1(o,(0,V.stringify)(e[o]),r,n)}return}if(t.indexOf(n.valueString)===0){Ln(t,(0,V.stringify)(e),r,n);return}var a=r;if(!(0,V.isArray)(e)&&!(0,V.isSet)(e)){var u=oo(e,n);if(!(0,V.isUndefined)(u)&&u(e)===so.instance)return;a=r.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty})}Ln(t,e,a,n)}function H1(t,e,r){if((0,V.isMap)(t))t.forEach(function(o,a){xd((0,V.stringify)(a),o,e,r)});else for(var n=0,i=Object.keys(t);n<i.length;n++){var s=i[n];xd(s,t[s],e,r)}}function G1(t,e,r,n){var i;Object.prototype.hasOwnProperty.call(n.wrapHandlers,"*")&&(i=n.wrapHandlers["*"]),Object.prototype.hasOwnProperty.call(n.wrapHandlers,t)&&(i=n.wrapHandlers[t]);var s=t,o=r;if(!(0,V.isUndefined)(i)){var a=i(s,e);(0,V.isNull)(a)||(s=a,o=r.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty}))}e.forEach(function(u){var h=o;if(!(0,V.isArray)(u)&&!(0,V.isSet)(u)){var c=oo(u,n);if(!(0,V.isUndefined)(c)&&c(u)===so.instance)return;h=o.element({name:s,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty})}Ln(s,u,h,n)})}function Ln(t,e,r,n){var i=oo(e,n);if((0,V.isUndefined)(i)||(e=i(e)),(0,V.isObject)(e)||(0,V.isMap)(e)){H1(e,r,n);return}if((0,V.isArray)(e)||(0,V.isSet)(e)){G1(t,e,r,n);return}Cd((0,V.stringify)(e),r,n)}function Pd(t,e,r){var n=new Ed.Options(r);Ln(t.name,e,t,n)}Ze.parseToExistingElement=Pd;function z1(t,e,r){var n=new Ed.Options(r),i=new Sd.XmlDocument({validation:n.validation});n.declaration.include&&i.decl(n.declaration),n.dtd.include&&i.dtd({name:n.dtd.name,pubId:n.dtd.pubId,sysId:n.dtd.sysId});var s=i.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty});return Pd(s,e,r),i.toString(n.format)}Ze.parse=z1});var uo=X(require("node:path"));var Tr=X(require("node:crypto")),rt=X(require("node:fs")),si=X(require("node:path")),oi=X(yt()),Nr=si.default.resolve(__dirname,"./../apiCache"),vu=`${Nr}/siteHash.json`;function bu(){rt.default.existsSync(Nr)||rt.default.mkdirSync(Nr),console.info("Cache initialized")}function _u(t){let e=Tr.default.createHash("sha256");return e.update(JSON.stringify(t)),`${Nr}/${e.digest("hex")}`}function wu(t){let e=Tr.default.randomBytes(16).toString("hex"),r=Tr.default.createHash("sha256");return r.update(`${t}${e}`),r.digest("hex")}function xu(t,e){let r=typeof e=="string"?e:JSON.stringify(e),n=_u(t),i=si.default.dirname(n);rt.default.existsSync(i)||rt.default.mkdirSync(i,{recursive:!0}),rt.default.writeFileSync(n,r,"utf8")}function Su(t){try{let e=_u(t);return oi.default.readJSONSync(e,{encoding:"utf-8"})}catch{return null}}function Q0(){try{return oi.default.readJSONSync(vu,{encoding:"utf-8"})||{}}catch{return{}}}function Eu(t,e){let r=Q0(),n=r[t],i=e||n||new Date().valueOf();return i!==n&&(r[t]=i,rt.default.writeFileSync(vu,JSON.stringify(r),{encoding:"utf-8"})),i.toString()}var mm=X(Hr()),fl=X(xt()),Ye=X(yt()),gm=X(Hc()),Ni=X(cl());var ll="10.3.26";fl.default.config();var ym=!!process.env.GRIDDO_BUILD_LOGS&&!!JSON.parse(process.env.GRIDDO_BUILD_LOGS)||!!process.env.LOGS&&!!JSON.parse(process.env.LOGS),Eb=Ni.default.sync(__dirname),Cb=Ni.default.sync();function ji(t){let e=t.length,r=t.length+2,n=" ".repeat(Math.floor((r-e)/2)),i=`\u256D${"\u2500".repeat(r)}\u256E
23
- `,s=`
24
- \u2570${"\u2500".repeat(r)}\u256F`,o=`\u2502${n}${t}${n}\u2502`;console.log(`${i}${o}${s}`)}function Me(t){ym&&console.info(t.replace(/(\s)\s+/g,"$1"))}function dl(t){return new Promise(e=>setTimeout(e,t))}function Li(t,e=3){return(t/1e3).toFixed(e)}function $i(t){return"site"in t&&t.site?t?.site:void 0}function Bi(t,e){for(let r in t)e.includes(r)?delete t[r]:typeof t[r]=="object"&&Bi(t[r],e)}function Ui(t){return t.map(({name:e,id:r})=>`${e} (${r})`).join(", ")}function hl(t){let e=Ye.default.readdirSync(t),r={},n=e.filter(s=>{let o=`${t}/${s}`,a=Ye.default.readJSONSync(o,"utf-8"),{id:u,entity:h,fullUrl:c}=a;return!!(u&&h&&c)});for(let s of n){let o=`${t}/${s}`,a=Ye.default.readJSONSync(o,"utf-8"),u=Ye.default.statSync(o).mtimeMs,{id:h}=a;(!r[h]||u>Ye.default.statSync(`${t}/${r[h]}`).mtimeMs)&&(r[h]=s)}let i=0;for(let s of n){let o=`${t}/${s}`,a=Ye.default.readJSONSync(o,"utf-8"),{id:u}=a;s!==r[u]&&(Ye.default.unlinkSync(o),i++)}console.log(`Sanitize apiCache folder for ${i} files`)}var vr=X(require("node:fs")),qd=X(require("node:fs/promises")),Nt=X(require("node:path")),Md=X(xt()),$n=X(yt()),Td=X(Ri());var Jf=X(xt());var Gf=X(gs()),zf=X(Hr()),Wf=X(xt());var Uf=X(gs()),Xf=X(Hr()),ys=class{user;password;baseUrl;headers;constructor(){this.user=process.env.botEmail,this.password=process.env.botPassword,this.baseUrl=process.env.API_URL}async login(){try{let e=await(0,Uf.default)({url:`${this.baseUrl}/login_check`,method:"POST",headers:{"Content-Type":"application/json"},data:{username:this.user,password:this.password}});if(e.status===200){let{data:{token:r}}=e;this.headers={Authorization:"bearer "+r,"Cache-Control":"no-store"}}return this.headers}catch{console.error(Xf.default.red(`
25
- \u256D\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256E
26
- \u2502 Access credentials failure \u2502
27
- \u2502 Check that the login details are correct in your .env file \u2502
28
- \u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256F
29
- `)),process.exit(1)}}},bn=new ys;Wf.default.config();var{env:{RETRY_WAIT_SECONDS:zg="4",RETRY_ATTEMPTS:Hf="4"}}=process;async function vs(t,e,r=""){let{endpoint:n,body:i,cacheKey:s="",attempt:o=1,headers:a}=t,u={endpoint:n,body:i,headers:a,cacheKey:s};if(s){let h=new Date,c=Su(u);if(c){let p=$i(c),g=p?`site: ${p}`:"",m=Li(new Date().getTime()-h.getTime());return Me(`${e} (cache) ${g} ${n} - ${m}s ${r}`),c}}try{let h=new Date,{data:c}=await(0,Gf.default)({url:n,method:e,headers:Object.assign({},a,bn.headers),data:i}),p=$i(c),g=p?`site: ${p}`:"",m=Li(new Date().getTime()-h.getTime());return Me(`${e} (fetch) ${g} ${n} - ${m}s ${r}`),xu(u,c),c}catch(h){let c=h;return c.response?.status===404?null:(o>parseInt(Hf)&&(console.log(`
30
- Max attempts ${Hf} reached
31
- --------------------------------------
32
- - ${e.toUpperCase()} ${n}
33
- - BODY: ${JSON.stringify(i)}
34
- - HEADERS: ${JSON.stringify(a)}
35
- - RESPONSE: ${c.response?.status,JSON.stringify(c.response?.data)}
36
- --------------------------------------
37
- `),process.exit(1)),c.response||(console.log("Unknown error occurred"),console.log(JSON.stringify(c,null,2)),process.exit(1)),Wg(c,{callInfo:{endpoint:n,body:i}}),console.warn(`Waiting for retry: ${e}`,n),await dl(parseInt(zg)*1e3),vs({endpoint:n,body:i,headers:a,cacheKey:s,attempt:o+1},e,r))}}async function je(t){return await vs(t,"get")}async function or(t){let{endpoint:e,body:r,headers:n}=t,i=e.endsWith("/distributor")&&`# Distributor body: ${JSON.stringify(r)} lang: ${JSON.stringify(n?.lang)}`;return await vs(t,"post",i||"")}function Wg(t,e){let{response:r,message:n,stack:i}=t,{callInfo:s}=e,{status:o,statusText:a,data:u}=r||{},h=[];for(let m of Object.keys(s))h.push(`${m}: ${typeof s[m]=="object"?JSON.stringify(s[m]):s[m]}`);let c=h.join(`
38
- `),p=r?`Code: ${o} - ${a}
39
- Response: ${JSON.stringify(u)}`:"",g=`${n}
40
- ${i}`;console.warn(zf.default.bold.red(`
41
- =============
42
-
43
- { Call info }
44
- ${c}
45
-
46
- { API Response }
47
- ${p}
48
-
49
- { Error details }
50
- ${g}
51
-
52
- =============
53
- `))}Jf.default.config();var bs=process.env.API_URL,Ke=`${bs}/site/`,Be={GET_ALL:`${bs}/sites/all`,GET_PAGE:[`${bs}/page/`,""],INFO:[`${Ke}`,"/all"],LANGUAGES:[`${Ke}`,"/languages"],BUILD_START:[`${Ke}`,"/build/start"],BUILD_END:[`${Ke}`,"/build/end"],GET_DISTRIBUTOR_DATA:[`${Ke}`,"/distributor"],GET_SITEMAP:[`${Ke}`,"/sitemap"],SOCIALS:[`${Ke}`,"/socials"],GET_PAGES:[`${Ke}`,"/pages?pagination=false"]},be=class{static async getAll(){let{GET_ALL:e}=Be;return await je({endpoint:e})}static async getPage(e,r){let{GET_PAGE:[n,i]}=Be;return await je({endpoint:`${n}${e}${i}`,cacheKey:r})}static async getInfo(e,r=""){let{INFO:[n,i]}=Be;return await je({endpoint:`${n}${e}${i}`,cacheKey:r})}static async getLanguages(e,r=""){let{LANGUAGES:[n,i]}=Be;return await je({endpoint:`${n}${e}${i}`,cacheKey:r})}static async startSiteRender(e){let{BUILD_START:[r,n]}=Be;return await je({endpoint:`${r}${e}${n}`})}static async endSiteRender(e,r){let{BUILD_END:[n,i]}=Be;return await or({endpoint:`${n}${e}${i}`,body:r})}static async getDistributorData(e,r,n,i,s){let{GET_DISTRIBUTOR_DATA:[o,a]}=Be,u=i||e.site,h=s||e.language;return await or({endpoint:`${o}${u}${a}`,body:r,headers:{lang:h},cacheKey:n})}static async getSitemap(e){let{GET_SITEMAP:[r,n]}=Be;return await je({endpoint:`${r}${e}${n}`})}static async getSocials(e,r=""){let{SOCIALS:[n,i]}=Be;return await je({endpoint:`${n}${e}${i}`,cacheKey:r})}};var _n=class{static getBody(e,r){let{order:n,sources:i,quantity:s,mode:o,fixed:a,fullRelations:u=!1,allLanguages:h=!1,preferenceLanguage:c=!1,referenceId:p}=e;return o==="auto"?{mode:o,order:n,sources:i,quantity:s,fullRelations:u,allLanguages:h,preferenceLanguage:c}:o==="manual"?{mode:o,fixed:a,fullRelations:u}:o==="navigation"?{mode:o,order:n,quantity:s,fullRelations:u,referenceId:p||r?.structuredDataContent?.id}:(console.log(`Error: Distribuidor mode: ${o} is not recognized on page ${r?.id}.`),e)}static async fetchContentTypeData(e){let{page:r,component:{data:n},cacheKey:i}=e;if(!n)return ji(`Error: Page ${r.id} has \`hasDistributorData: true\` but it doesn't have a \`data\` prop`),[];if(Array.isArray(n.sources)&&n.sources.length<1)return ji(`Warning: Page with id: ${r.id} has a ReferenceField with empty \`data.sources\``),[];let{site:s,lang:o}=n,a=this.getBody(n,r);return await be.getDistributorData(r,a,i,s,o)}static async getDistributorData({page:e,cacheKey:r=""}){try{let{template:n}=e,i=async(a,u=1)=>{if(!(!a||typeof a!="object")&&JSON.stringify(a).includes('"hasDistributorData":true'))for(let h in a){if(h==="queriedItems")continue;let p=a[h];!p||typeof p!="object"||(p.hasDistributorData&&(p.queriedItems=await this.fetchContentTypeData({page:e,cacheKey:r,component:p})),await i(p,u+1))}};return await(async a=>(await i([a]),a))(n)}catch(n){console.error(`Error en get distributor ${n}`),process.exit(1)}}};var wn=class{_defaultHeaders;_defaultFooters;_navigations;constructor(){this._navigations={footers:[],headers:[]},this._defaultHeaders={},this._defaultFooters={}}set navigations(e){this._navigations=e,this._defaultFooters=this.getDefaultFooters(),this._defaultHeaders=this.getDefaultHeaders()}get navigations(){return this._navigations}getDefaultFooters(){return[...this.navigations.footers].filter(i=>!!i.setAsDefault).reduce((i,s)=>{let{language:o}=s;return{...i,[o]:s}},{})}getDefaultHeaders(){return[...this.navigations.headers].filter(i=>!!i.setAsDefault).reduce((i,s)=>{let{language:o}=s;return{...i,[o]:s}},{})}getRightLanguage(e,r,n){if(!e||!r)return null;let s=e.find(o=>o.language===n&&o.navigationLanguages?.find(a=>a.navigationId===r))||e.find(o=>o.id===r);return s?{...s}:null}getPageHeader(e,r){return this.getRightLanguage(this.navigations.headers,e,r)}getPageFooter(e,r){return this.getRightLanguage(this.navigations.footers,e,r)}getPageNavigations(e){let{header:r,footer:n,language:i,template:{templateType:s},templateConfig:{defaultHeader:o,defaultFooter:a,templates:u}}=e,h=b=>{let S=b.find(P=>typeof P=="number");return typeof S=="number"?S:null},c=h([r,u?.[s]?.defaultHeader,o]),p=h([n,u?.[s]?.defaultFooter,a]),g=c?this.getPageHeader(c,i):c===0?null:this._defaultHeaders[i],m=p?this.getPageFooter(p,i):p===0?null:this._defaultFooters[i];return{header:g,footer:m}}};var _s=class{baseURL;settings;ENDPOINTS;constructor(){this.baseURL=process.env.API_URL,this.settings={cloudinaryName:"",useMetaTitle:!1,useMetaKeywords:!1,showBasicMetaRobots:!1,avoidHrefLangsOnCanonicals:!1,avoidSelfReferenceCanonicals:!1,avoidHrefLangXDefault:!1,avoidDebugMetas:!1},this.ENDPOINTS={settings:`${this.baseURL}/settings`,resetRender:`${this.baseURL}/debug/reset-render`}}async getAll(){let{settings:e}=this.ENDPOINTS,r=await je({endpoint:e});this.settings=r}async resetRender(){let{resetRender:e}=this.ENDPOINTS;await or({endpoint:e})}},ws=new _s;var xs=X(require("node:path")),ar=X(yt());async function xn(t){for await(let e of t)for(let r of e.domains){let n=Object.values(r)[0],i=xs.default.resolve(__dirname,`../../dist${n}`),s=xs.default.resolve(__dirname,`../../assets/page-data${n}`);if(Me(`Site dir ${i}`),Me(`Page data dir ${s}`),!ar.default.existsSync(i))return;try{await ar.default.rm(i,{recursive:!0}),Me(`${i} is deleted!`)}catch(o){console.log(o)}if(!ar.default.existsSync(s))return;try{await ar.default.rm(s,{recursive:!0}),console.info(`${s} is deleted!`)}catch(o){console.log(o)}}}var Kf=X(xt());function Ss(t,e,r,n="jpg"){let i=typeof t=="string"?t:t?.url;return i?i.split("/")[2].includes("cloudinary.com")?Vg(i,`c_fill,w_${e},h_${r}`):Jg(i,`f/${n}/w/${e}/h/${r}`):null}function Jg(t,e){let r=t.split("/"),n=r.slice(0,-1).join("/"),i=r.slice(-1)[0];return`${n}/${e}/${i}`}function Vg(t,e){let r=t.replace("https://",""),n=r.split("/").slice(0,4).join("/"),i=r.replace(n,"");return`https://${n}/${e}${i}`}Kf.default.config();var Yg=JSON.parse(process.env.GRIDDO_EXPORT_STRIP_DOMAIN_FROM_PATH||"false"),Kg=25;function Qg({socialTitle:t,socialDescription:e,socialImage:r}){return{type:"website",title:t,description:e,image:r?Ss(r,1280,768):"",twitterImage:r?Ss(r,1280,768):""}}function Zg(t){let{title:e,metaTitle:r,metaDescription:n,canonicalURL:i,locale:s,url:o,isIndexed:a,follow:u,metasAdvanced:h,pageLanguages:c,fullUrl:p,metaKeywords:g}=t,m=h?.split(",").filter(Boolean).map(b=>b.trim().toLowerCase())||[];return{title:(r||e||"").trim(),description:n,canonical:i&&i.trim()&&i!==p?i.trim():a?p:void 0,locale:s,url:o,index:a?"index":"noindex",follow:u?"follow":"nofollow",translate:m.includes("notranslate")?"notranslate":"",metasAdvanced:m.filter(b=>b!=="notranslate").join(),pageLanguages:c,metaKeywords:g?.filter(Boolean).map(b=>b.replace(/"/g,"'")).join(", ")}}async function Cs(t,e,r=!1){let{id:n,title:i,fullPath:s,language:o,breadcrumb:a,socialDescription:u,socialImage:h,socialTitle:c}=t,{baseUrl:p,BUILD_MODE:g,cloudinaryName:m,griddoVersion:b,siteLangs:S,siteMetadata:P,siteOptions:A,siteScript:j,siteSlug:$,socials:G,theme:K,navigations:{header:de,footer:Oe}}=e;t.breadcrumb=a,t.siteSlug=$,t.apiUrl=p,t.publicApiUrl=e.publicBaseUrl,t.instance=e.instance;let D=S.find(({id:O})=>O===t?.language)?.locale.replace(/_/g,"-"),k=Zg(t),q=Qg({socialDescription:u,socialImage:h,socialTitle:c}),B=Yg?s.compose:`${s.domain}${s.compose}`,F=new Date().toString();return{path:B,size:void 0,context:{id:n,title:i,fullPath:s,locale:D,languageId:o,theme:K,siteMetadata:P,pageMetadata:k,openGraph:q,socials:G,siteLangs:S,cloudinaryName:m,siteOptions:A,BUILD_MODE:g,griddoVersion:b,renderDate:F,siteScript:j,header:de,footer:Oe,page:t}}}async function Qf(t,e){return await Cs(t,e)}async function Zf({page:t,pages:e,isRoot:r=!1,defaultLang:n,template:i,totalQueriedItems:s},o){let a=e.map(async(u,h)=>{let c=h===0,p=h+1,{domainUrl:g,compose:m}=t.fullPath,b={...t,fullPath:{...t.fullPath,compose:Es(m,p,{addEndingSlash:!0})},fullUrl:Es(t.fullUrl,p,{addEndingSlash:!0}),slug:Es(t.slug,p),title:Yf(t.title,p),metaTitle:Yf(t.metaTitle||"",p),disableHrefLangs:p>1,template:{...i,isFirstPage:c,pageNumber:p,totalPages:e.length,baseLink:`${g}${m}`,queriedItems:u,totalQueriedItems:s?.length},isRoot:r,defaultLang:n};return await Cs(b,o,!c)});return Promise.all(a)}function ed(t,e){let{multiPageElements:r,...n}=t,i=JSON.parse(JSON.stringify(r));i.find(({sectionSlug:o})=>o==="/")||i.push({});let s=i.map(async o=>{let a=JSON.parse(JSON.stringify(n)),{sectionSlug:u="/",title:h="",metaTitle:c="",metaDescription:p=""}=o,g=typeof h=="string"?h:h.content,m=a.fullPath.compose||"",b=a.fullUrl.endsWith("/")?a.fullUrl.slice(0,-1):a.fullUrl,S=u?.replace(/\//g,""),A=u==="/"?S:S+"/",j=m.endsWith("/")?"":"/",$=`${m}${j}${A}`;return g.trim()&&(a.title=g),p.trim()&&(a.metaDescription=p),a.fullUrl=`${b}/${A}`,a.fullPath.compose=$,a.slug=$,a.template.activeSectionSlug=u,a.template.activeSectionBase=b,a.metaTitle=c.trim()||g.trim()||a.metaTitle,await Cs(a,e)});return Promise.all(s)}function td(t){return new Promise(r=>{let n=(i,s=0)=>{if(!(!i||typeof i!="object")){for(let o in i){let a=i[o],u=a||typeof a=="object",h=JSON.stringify(a).includes('"hasGriddoMultiPage":true');if(!u||!h)continue;let{component:c,hasGriddoMultiPage:p,elements:g}=a;c&&p&&r(g||[]),n(a,s+1)}s||r(null)}};n([t])})}function ey(t,e,r){return e?.slice(t*(r-1),t*r)}function ty(t,e){let r=Math.ceil(e.length/t)||1;return Array.from({length:r},(i,s)=>s+1)?.map(i=>ey(t,e,i))}function rd(t){let e=t.queriedItems||[],r=t?.itemsPerPage||Kg;return ty(r,e)}function Vf(t){return t.replace(/\/+$/,"/")}function Es(t,e,r){let n=t.endsWith("/")?"":"/",i=r?.addEndingSlash?"/":"";return e<=1?Vf(`${t}${i}`):Vf(`${t}${n}${e}${i}`)}function Yf(t,e){return!t||e<=1?t:`${t} - ${e}`}var W1=X(yt()),J1=X(Od());var V1=process.env.API_URL,Y1=!!process.env.GRIDDO_RENDER_ALL_SITES||!!process.env.updateAllSites,Tt=process.env.GRIDDO_RENDER_SITE&&parseInt(process.env.GRIDDO_RENDER_SITE)||process.env.testSite&&parseInt(process.env.testSite),Dd=(process.env.GRIDDO_RENDER_PAGES||process.env.testPage||"").split(",").map(t=>parseInt(t)).filter(Boolean),t_=JSON.parse(process.env.GRIDDO_EXPORT_STRIP_DOMAIN_FROM_PATH||"false");async function Fd(t){console.info(`API URL ${V1}`),await bn.login();let e=await be.getAll(),r=Y1?e.filter(s=>!Tt||s.id===Tt):e.filter(s=>Tt?s.id===Tt:!!s.shouldBeUpdated);if(r.length){let s=r.map(async o=>{let a=await be.getLanguages(o.id);return o.domains=a.items.filter(u=>u.domain&&u.domain.slug.indexOf(t)>0).map(u=>({[u.id]:`${u.domain.slug}${u.path}`}))});await Promise.all(s)}let n=r.filter(s=>Tt?s.id===Tt:!!s.isPublished&&s.domains.length>0),i=r.filter(s=>!s.isPublished&&s.shouldBeUpdated);return{sitesToPublish:n,sitesToUnpublish:i}}async function Id(t){for(let e of t){let r=await be.startSiteRender(e.id),{siteHash:n}=r,i={siteHash:n,publishHashes:[],unpublishHashes:[]};Me(`Unpublish site(s): ${r.publishIds}`),await be.endSiteRender(e.id,i)}await xn(t)}async function Ad(t){let e=await be.startSiteRender(t),r=await be.getInfo(t),n=await be.getLanguages(t),i=await be.getSocials(t),s=n.items,o=s.find(b=>b.isDefault),{siteHash:a,unpublishHashes:u,publishIds:h}=e,{headers:c,footers:p}=r,g=Dd.length?Dd.filter(b=>h.includes(b)):h;return{siteInfo:r,validPagesIds:g,siteHash:a,unpublishHashes:u,siteLangs:s,defaultLang:o,headers:c,footers:p,socials:i}}Md.default.config();var K1=process.env.API_URL,Q1=process.env.CXBRANCH,Z1=process.env.GRIDDO_REACT_APP_INSTANCE||process.env.REACT_APP_INSTANCE,Rd=parseInt(process.env.GRIDDO_API_CONCURRENCY_COUNT||"")||10,ev=process.env.PUBLIC_API_URL,tv=process.env.GRIDDO_RENDERID||new Date().valueOf().toString(),kd=[],ao={};async function Nd(t,e){console.info(`API calls with ${Rd} threads`),vr.default.existsSync(t)&&vr.default.rmSync(t,{recursive:!0}),vr.default.mkdirSync(t),vr.default.mkdirSync(Nt.default.resolve(t,"metadata"));try{let{sitesToPublish:r,sitesToUnpublish:n}=await Fd(e);await ws.getAll(),r.length||n.length||(console.warn("There are no sites to update"),process.exit(0)),console.info(`Sites to publish: ${Ui(r)}`),console.info(`Sites to unpublish: ${Ui(n)}`),await Id(n),await xn([...r]);for(let i of r){let{id:s,slug:o,theme:a,favicon:u}=i,{siteInfo:h,validPagesIds:c,siteHash:p,unpublishHashes:g,siteLangs:m,defaultLang:b,headers:S,footers:P,socials:A}=await Ad(s),{cloudinaryName:j,useMetaTitle:$,useMetaKeywords:G,showBasicMetaRobots:K,avoidHrefLangsOnCanonicals:de,avoidSelfReferenceCanonicals:Oe,avoidHrefLangXDefault:re,avoidDebugMetas:D}=ws.settings;ao[s]={siteHash:p,unpublishHashes:g,publishHashes:[]};let k=new wn;k.navigations={headers:S,footers:P},i.languages=m;let q=Eu(s,p),B=h.siteScript,F={siteUrl:h.slug,title:h.name,favicon:u},L={baseUrl:K1,publicBaseUrl:ev,instance:Z1,siteSlug:o,theme:a,siteMetadata:F,socials:A,siteLangs:m,cloudinaryName:j,griddoVersion:ll,siteOptions:{useMetaTitle:$,useMetaKeywords:G,showBasicMetaRobots:K,avoidHrefLangsOnCanonicals:de,avoidSelfReferenceCanonicals:Oe,avoidHrefLangXDefault:re,avoidDebugMetas:D},BUILD_MODE:Q1,siteScript:B};Me(`${i.name} site`);let O=async x=>{let I=[],ne=await be.getPage(x,q);if(!ne)return;kd.push(x);let De=JSON.parse(JSON.stringify(L));De.navigations=k.getPageNavigations(ne);let W=await _n.getDistributorData({page:ne,cacheKey:tv}),he=await td(W),Ue=ne?.mode==="list",pe=!Ue&&he,l=!pe&&!Ue;if(Ue){let f={page:ne,pages:rd(W),isRoot:!1,defaultLang:b,template:W,totalQueriedItems:W.queriedItems};I=await Zf(f,De)}if(pe){let f=ne;f.template=W,f.multiPageElements=he,f.defaultLang=b,I=await ed(f,De)}if(l){let f=ne;f.template=W,f.defaultLang=b,I=[await Qf(f,De)]}ao[s].publishHashes.push(ne.hash),await sv(t,I),iv(t,r),rv(t,ao),nv(t,kd)},N=(0,Td.default)(Rd),M=c.map(x=>N(()=>O(x)));await Promise.all(M)}}catch(r){console.error(r.message),process.exit(1)}}function rv(t,e){$n.default.writeJSONSync(Nt.default.resolve(t,"metadata","buildProcessData.json"),e)}function nv(t,e){$n.default.writeJSONSync(Nt.default.resolve(t,"metadata","createdPages.json"),e)}function iv(t,e){$n.default.writeJSONSync(Nt.default.resolve(t,"metadata","sitesToPublish.json"),e)}async function sv(t,e){e.forEach(n=>Bi(n,["editorID","parentEditorID"]));let r=e.map(async n=>{let i=`${wu(n.path)}.json`,s=JSON.stringify(n),o=Nt.default.resolve(t,i);await qd.default.writeFile(o,s)});await Promise.all(r)}var ov=uo.default.resolve(__dirname,"../store/"),av=uo.default.resolve(__dirname,"../apiCache");async function jd(t){bu(),await Nd(ov,t),hl(av)}jd().catch(t=>{console.error("Error",t?.stdout?.toString()||t),process.exit(1)});
@@ -1,6 +0,0 @@
1
- import { downloadBuildData } from "./utils/download-build-data";
2
-
3
- downloadBuildData().catch((err) => {
4
- console.error("Error", err?.stdout?.toString() || err);
5
- process.exit(1);
6
- });