@griddo/cx 10.4.18 → 10.4.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.js CHANGED
@@ -1,52 +1,52 @@
1
- "use strict";var np=Object.create;var qr=Object.defineProperty;var ip=Object.getOwnPropertyDescriptor;var sp=Object.getOwnPropertyNames;var op=Object.getPrototypeOf,ap=Object.prototype.hasOwnProperty;var zo=(t,e)=>()=>(t&&(e=t(t=0)),e);var y=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Wo=(t,e)=>{for(var r in e)qr(t,r,{get:e[r],enumerable:!0})},Yo=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of sp(e))!ap.call(t,i)&&i!==r&&qr(t,i,{get:()=>e[i],enumerable:!(n=ip(e,i))||n.enumerable});return t};var A=(t,e,r)=>(r=t!=null?np(op(t)):{},Yo(e||!t||!t.__esModule?qr(r,"default",{value:t,enumerable:!0}):r,t)),Vo=t=>Yo(qr({},"__esModule",{value:!0}),t);var rt=y((Tb,li)=>{var cp=require("fs"),up=require("path");function Ko(t){console.log(`[dotenv][DEBUG] ${t}`)}var lp=`
2
- `,fp=/^\s*([\w.-]+)\s*=\s*(.*)?\s*$/,dp=/\\n/g,hp=/\n|\r|\r\n/;function Qo(t,e){let r=!!(e&&e.debug),n={};return t.toString().split(hp).forEach(function(i,s){let o=i.match(fp);if(o!=null){let a=o[1],c=o[2]||"",d=c.length-1,u=c[0]==='"'&&c[d]==='"';c[0]==="'"&&c[d]==="'"||u?(c=c.substring(1,d),u&&(c=c.replace(dp,lp))):c=c.trim(),n[a]=c}else r&&Ko(`did not match key and value when parsing line ${s+1}: ${i}`)}),n}function pp(t){let e=up.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=Qo(cp.readFileSync(e,{encoding:r}),{debug:n});return Object.keys(i).forEach(function(s){Object.prototype.hasOwnProperty.call(process.env,s)?n&&Ko(`"${s}" is already defined in \`process.env\` and will not be overwritten`):process.env[s]=i[s]}),{parsed:i}}catch(i){return{error:i}}}li.exports.config=pp;li.exports.parse=Qo});var Ce=y(fi=>{"use strict";fi.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})};fi.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 ea=y((qb,Zo)=>{var nt=require("constants"),mp=process.cwd,Nr=null,gp=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Nr||(Nr=mp.call(process)),Nr};try{process.cwd()}catch{}typeof process.chdir=="function"&&(di=process.chdir,process.chdir=function(t){Nr=null,di.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,di));var di;Zo.exports=yp;function yp(t){nt.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=c(t.statSync),t.fstatSync=c(t.fstatSync),t.lstatSync=c(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(u,p,g){g&&process.nextTick(g)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(u,p,g,m){m&&process.nextTick(m)},t.lchownSync=function(){}),gp==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(u){function p(g,m,b){var S=Date.now(),x=0;u(g,m,function R(L){if(L&&(L.code==="EACCES"||L.code==="EPERM")&&Date.now()-S<6e4){setTimeout(function(){t.stat(m,function(j,$){j&&j.code==="ENOENT"?u(g,m,R):b(L)})},x),x<100&&(x+=10);return}b&&b(L)})}return Object.setPrototypeOf&&Object.setPrototypeOf(p,u),p}(t.rename)),t.read=typeof t.read!="function"?t.read:function(u){function p(g,m,b,S,x,R){var L;if(R&&typeof R=="function"){var j=0;L=function($,H,ne){if($&&$.code==="EAGAIN"&&j<10)return j++,u.call(t,g,m,b,S,x,L);R.apply(this,arguments)}}return u.call(t,g,m,b,S,x,L)}return Object.setPrototypeOf&&Object.setPrototypeOf(p,u),p}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(u){return function(p,g,m,b,S){for(var x=0;;)try{return u.call(t,p,g,m,b,S)}catch(R){if(R.code==="EAGAIN"&&x<10){x++;continue}throw R}}}(t.readSync);function e(u){u.lchmod=function(p,g,m){u.open(p,nt.O_WRONLY|nt.O_SYMLINK,g,function(b,S){if(b){m&&m(b);return}u.fchmod(S,g,function(x){u.close(S,function(R){m&&m(x||R)})})})},u.lchmodSync=function(p,g){var m=u.openSync(p,nt.O_WRONLY|nt.O_SYMLINK,g),b=!0,S;try{S=u.fchmodSync(m,g),b=!1}finally{if(b)try{u.closeSync(m)}catch{}else u.closeSync(m)}return S}}function r(u){nt.hasOwnProperty("O_SYMLINK")&&u.futimes?(u.lutimes=function(p,g,m,b){u.open(p,nt.O_SYMLINK,function(S,x){if(S){b&&b(S);return}u.futimes(x,g,m,function(R){u.close(x,function(L){b&&b(R||L)})})})},u.lutimesSync=function(p,g,m){var b=u.openSync(p,nt.O_SYMLINK),S,x=!0;try{S=u.futimesSync(b,g,m),x=!1}finally{if(x)try{u.closeSync(b)}catch{}else u.closeSync(b)}return S}):u.futimes&&(u.lutimes=function(p,g,m,b){b&&process.nextTick(b)},u.lutimesSync=function(){})}function n(u){return u&&function(p,g,m){return u.call(t,p,g,function(b){d(b)&&(b=null),m&&m.apply(this,arguments)})}}function i(u){return u&&function(p,g){try{return u.call(t,p,g)}catch(m){if(!d(m))throw m}}}function s(u){return u&&function(p,g,m,b){return u.call(t,p,g,m,function(S){d(S)&&(S=null),b&&b.apply(this,arguments)})}}function o(u){return u&&function(p,g,m){try{return u.call(t,p,g,m)}catch(b){if(!d(b))throw b}}}function a(u){return u&&function(p,g,m){typeof g=="function"&&(m=g,g=null);function b(S,x){x&&(x.uid<0&&(x.uid+=4294967296),x.gid<0&&(x.gid+=4294967296)),m&&m.apply(this,arguments)}return g?u.call(t,p,g,b):u.call(t,p,b)}}function c(u){return u&&function(p,g){var m=g?u.call(t,p,g):u.call(t,p);return m&&(m.uid<0&&(m.uid+=4294967296),m.gid<0&&(m.gid+=4294967296)),m}}function d(u){if(!u||u.code==="ENOSYS")return!0;var p=!process.getuid||process.getuid()!==0;return!!(p&&(u.code==="EINVAL"||u.code==="EPERM"))}}});var na=y((Nb,ra)=>{var ta=require("stream").Stream;ra.exports=vp;function vp(t){return{ReadStream:e,WriteStream:r};function e(n,i){if(!(this instanceof e))return new e(n,i);ta.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,c=o.length;a<c;a++){var d=o[a];this[d]=i[d]}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(u,p){if(u){s.emit("error",u),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);ta.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 c=s[o];this[c]=i[c]}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 sa=y((Lb,ia)=>{"use strict";ia.exports=wp;var bp=Object.getPrototypeOf||function(t){return t.__proto__};function wp(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:bp(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var le=y((jb,mi)=>{var W=require("fs"),_p=ea(),Sp=na(),xp=sa(),Lr=require("util"),se,$r;typeof Symbol=="function"&&typeof Symbol.for=="function"?(se=Symbol.for("graceful-fs.queue"),$r=Symbol.for("graceful-fs.previous")):(se="___graceful-fs.queue",$r="___graceful-fs.previous");function Ep(){}function ca(t,e){Object.defineProperty(t,se,{get:function(){return e}})}var gt=Ep;Lr.debuglog?gt=Lr.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(gt=function(){var t=Lr.format.apply(Lr,arguments);t="GFS4: "+t.split(/\n/).join(`
3
- GFS4: `),console.error(t)});W[se]||(oa=global[se]||[],ca(W,oa),W.close=function(t){function e(r,n){return t.call(W,r,function(i){i||aa(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,$r,{value:t}),e}(W.close),W.closeSync=function(t){function e(r){t.apply(W,arguments),aa()}return Object.defineProperty(e,$r,{value:t}),e}(W.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){gt(W[se]),require("assert").equal(W[se].length,0)}));var oa;global[se]||ca(global,W[se]);mi.exports=hi(xp(W));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!W.__patched&&(mi.exports=hi(W),W.__patched=!0);function hi(t){_p(t),t.gracefulify=hi,t.createReadStream=H,t.createWriteStream=ne;var e=t.readFile;t.readFile=r;function r(D,q,T){return typeof q=="function"&&(T=q,q=null),J(D,q,T);function J(I,X,O,B){return e(I,X,function(M){M&&(M.code==="EMFILE"||M.code==="ENFILE")?At([J,[I,X,O],M,B||Date.now(),Date.now()]):typeof O=="function"&&O.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=i;function i(D,q,T,J){return typeof T=="function"&&(J=T,T=null),I(D,q,T,J);function I(X,O,B,M,P){return n(X,O,B,function(F){F&&(F.code==="EMFILE"||F.code==="ENFILE")?At([I,[X,O,B,M],F,P||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(D,q,T,J){return typeof T=="function"&&(J=T,T=null),I(D,q,T,J);function I(X,O,B,M,P){return s(X,O,B,function(F){F&&(F.code==="EMFILE"||F.code==="ENFILE")?At([I,[X,O,B,M],F,P||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(D,q,T,J){return typeof T=="function"&&(J=T,T=0),I(D,q,T,J);function I(X,O,B,M,P){return a(X,O,B,function(F){F&&(F.code==="EMFILE"||F.code==="ENFILE")?At([I,[X,O,B,M],F,P||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var d=t.readdir;t.readdir=p;var u=/^v[0-5]\./;function p(D,q,T){typeof q=="function"&&(T=q,q=null);var J=u.test(process.version)?function(O,B,M,P){return d(O,I(O,B,M,P))}:function(O,B,M,P){return d(O,B,I(O,B,M,P))};return J(D,q,T);function I(X,O,B,M){return function(P,F){P&&(P.code==="EMFILE"||P.code==="ENFILE")?At([J,[X,O,B],P,M||Date.now(),Date.now()]):(F&&F.sort&&F.sort(),typeof B=="function"&&B.call(this,P,F))}}}if(process.version.substr(0,4)==="v0.8"){var g=Sp(t);R=g.ReadStream,j=g.WriteStream}var m=t.ReadStream;m&&(R.prototype=Object.create(m.prototype),R.prototype.open=L);var b=t.WriteStream;b&&(j.prototype=Object.create(b.prototype),j.prototype.open=$),Object.defineProperty(t,"ReadStream",{get:function(){return R},set:function(D){R=D},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return j},set:function(D){j=D},enumerable:!0,configurable:!0});var S=R;Object.defineProperty(t,"FileReadStream",{get:function(){return S},set:function(D){S=D},enumerable:!0,configurable:!0});var x=j;Object.defineProperty(t,"FileWriteStream",{get:function(){return x},set:function(D){x=D},enumerable:!0,configurable:!0});function R(D,q){return this instanceof R?(m.apply(this,arguments),this):R.apply(Object.create(R.prototype),arguments)}function L(){var D=this;V(D.path,D.flags,D.mode,function(q,T){q?(D.autoClose&&D.destroy(),D.emit("error",q)):(D.fd=T,D.emit("open",T),D.read())})}function j(D,q){return this instanceof j?(b.apply(this,arguments),this):j.apply(Object.create(j.prototype),arguments)}function $(){var D=this;V(D.path,D.flags,D.mode,function(q,T){q?(D.destroy(),D.emit("error",q)):(D.fd=T,D.emit("open",T))})}function H(D,q){return new t.ReadStream(D,q)}function ne(D,q){return new t.WriteStream(D,q)}var xe=t.open;t.open=V;function V(D,q,T,J){return typeof T=="function"&&(J=T,T=null),I(D,q,T,J);function I(X,O,B,M,P){return xe(X,O,B,function(F,Ue){F&&(F.code==="EMFILE"||F.code==="ENFILE")?At([I,[X,O,B,M],F,P||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}return t}function At(t){gt("ENQUEUE",t[0].name,t[1]),W[se].push(t),pi()}var jr;function aa(){for(var t=Date.now(),e=0;e<W[se].length;++e)W[se][e].length>2&&(W[se][e][3]=t,W[se][e][4]=t);pi()}function pi(){if(clearTimeout(jr),jr=void 0,W[se].length!==0){var t=W[se].shift(),e=t[0],r=t[1],n=t[2],i=t[3],s=t[4];if(i===void 0)gt("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-i>=6e4){gt("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-s,c=Math.max(s-i,1),d=Math.min(c*1.2,100);a>=d?(gt("RETRY",e.name,r),e.apply(null,r.concat([i]))):W[se].push(t)}jr===void 0&&(jr=setTimeout(pi,0))}}});var rr=y(it=>{"use strict";var ua=Ce().fromCallback,ye=le(),Cp=["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 ye[t]=="function");Object.keys(ye).forEach(t=>{t!=="promises"&&(it[t]=ye[t])});Cp.forEach(t=>{it[t]=ua(ye[t])});it.exists=function(t,e){return typeof e=="function"?ye.exists(t,e):new Promise(r=>ye.exists(t,r))};it.read=function(t,e,r,n,i,s){return typeof s=="function"?ye.read(t,e,r,n,i,s):new Promise((o,a)=>{ye.read(t,e,r,n,i,(c,d,u)=>{if(c)return a(c);o({bytesRead:d,buffer:u})})})};it.write=function(t,e,...r){return typeof r[r.length-1]=="function"?ye.write(t,e,...r):new Promise((n,i)=>{ye.write(t,e,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffer:a})})})};typeof ye.writev=="function"&&(it.writev=function(t,e,...r){return typeof r[r.length-1]=="function"?ye.writev(t,e,...r):new Promise((n,i)=>{ye.writev(t,e,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffers:a})})})});typeof ye.realpath.native=="function"&&(it.realpath.native=ua(ye.realpath.native))});var gi=y((Bb,la)=>{la.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 ma=y((Ub,yi)=>{"use strict";var Rt=rr(),Ye=require("path"),Pp=gi(),fa=Pp("10.12.0"),da=t=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace(Ye.parse(t).root,""))){let r=new Error(`Path contains invalid characters: ${t}`);throw r.code="EINVAL",r}},ha=t=>{let e={mode:511};return typeof t=="number"&&(t={mode:t}),{...e,...t}},pa=t=>{let e=new Error(`operation not permitted, mkdir '${t}'`);return e.code="EPERM",e.errno=-4048,e.path=t,e.syscall="mkdir",e};yi.exports.makeDir=async(t,e)=>{if(da(t),e=ha(e),fa){let n=Ye.resolve(t);return Rt.mkdir(n,{mode:e.mode,recursive:!0})}let r=async n=>{try{await Rt.mkdir(n,e.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(Ye.dirname(n)===n)throw pa(n);if(i.message.includes("null bytes"))throw i;return await r(Ye.dirname(n)),r(n)}try{if(!(await Rt.stat(n)).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r(Ye.resolve(t))};yi.exports.makeDirSync=(t,e)=>{if(da(t),e=ha(e),fa){let n=Ye.resolve(t);return Rt.mkdirSync(n,{mode:e.mode,recursive:!0})}let r=n=>{try{Rt.mkdirSync(n,e.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(Ye.dirname(n)===n)throw pa(n);if(i.message.includes("null bytes"))throw i;return r(Ye.dirname(n)),r(n)}try{if(!Rt.statSync(n).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r(Ye.resolve(t))}});var Me=y((Xb,ga)=>{"use strict";var Dp=Ce().fromPromise,{makeDir:Op,makeDirSync:vi}=ma(),bi=Dp(Op);ga.exports={mkdirs:bi,mkdirsSync:vi,mkdirp:bi,mkdirpSync:vi,ensureDir:bi,ensureDirSync:vi}});var wi=y((Gb,ya)=>{"use strict";var Ft=le();function Ip(t,e,r,n){Ft.open(t,"r+",(i,s)=>{if(i)return n(i);Ft.futimes(s,e,r,o=>{Ft.close(s,a=>{n&&n(o||a)})})})}function Ap(t,e,r){let n=Ft.openSync(t,"r+");return Ft.futimesSync(n,e,r),Ft.closeSync(n)}ya.exports={utimesMillis:Ip,utimesMillisSync:Ap}});var nr=y((Hb,_a)=>{"use strict";var kt=rr(),Pe=require("path"),Rp=require("util"),Fp=gi(),Br=Fp("10.5.0"),va=t=>Br?kt.stat(t,{bigint:!0}):kt.stat(t),_i=t=>Br?kt.statSync(t,{bigint:!0}):kt.statSync(t);function kp(t,e){return Promise.all([va(t),va(e).catch(r=>{if(r.code==="ENOENT")return null;throw r})]).then(([r,n])=>({srcStat:r,destStat:n}))}function Tp(t,e){let r,n=_i(t);try{r=_i(e)}catch(i){if(i.code==="ENOENT")return{srcStat:n,destStat:null};throw i}return{srcStat:n,destStat:r}}function Mp(t,e,r,n){Rp.callbackify(kp)(t,e,(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;return a&&Ur(o,a)?n(new Error("Source and destination must not be the same.")):o.isDirectory()&&Si(t,e)?n(new Error(Xr(t,e,r))):n(null,{srcStat:o,destStat:a})})}function qp(t,e,r){let{srcStat:n,destStat:i}=Tp(t,e);if(i&&Ur(n,i))throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&Si(t,e))throw new Error(Xr(t,e,r));return{srcStat:n,destStat:i}}function ba(t,e,r,n,i){let s=Pe.resolve(Pe.dirname(t)),o=Pe.resolve(Pe.dirname(r));if(o===s||o===Pe.parse(o).root)return i();let a=(c,d)=>c?c.code==="ENOENT"?i():i(c):Ur(e,d)?i(new Error(Xr(t,r,n))):ba(t,e,o,n,i);Br?kt.stat(o,{bigint:!0},a):kt.stat(o,a)}function wa(t,e,r,n){let i=Pe.resolve(Pe.dirname(t)),s=Pe.resolve(Pe.dirname(r));if(s===i||s===Pe.parse(s).root)return;let o;try{o=_i(s)}catch(a){if(a.code==="ENOENT")return;throw a}if(Ur(e,o))throw new Error(Xr(t,r,n));return wa(t,e,s,n)}function Ur(t,e){return!!(e.ino&&e.dev&&e.ino===t.ino&&e.dev===t.dev&&(Br||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 Si(t,e){let r=Pe.resolve(t).split(Pe.sep).filter(i=>i),n=Pe.resolve(e).split(Pe.sep).filter(i=>i);return r.reduce((i,s,o)=>i&&n[o]===s,!0)}function Xr(t,e,r){return`Cannot ${r} '${t}' to a subdirectory of itself, '${e}'.`}_a.exports={checkPaths:Mp,checkPathsSync:qp,checkParentPaths:ba,checkParentPathsSync:wa,isSrcSubdir:Si}});var Pa=y((Jb,Ca)=>{"use strict";var fe=le(),ir=require("path"),Np=Me().mkdirsSync,Lp=wi().utimesMillisSync,sr=nr();function jp(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;
1
+ "use strict";var ep=Object.create;var Mr=Object.defineProperty;var tp=Object.getOwnPropertyDescriptor;var rp=Object.getOwnPropertyNames;var np=Object.getPrototypeOf,ip=Object.prototype.hasOwnProperty;var Jo=(t,e)=>()=>(t&&(e=t(t=0)),e);var y=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),zo=(t,e)=>{for(var r in e)Mr(t,r,{get:e[r],enumerable:!0})},Wo=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of rp(e))!ip.call(t,i)&&i!==r&&Mr(t,i,{get:()=>e[i],enumerable:!(n=tp(e,i))||n.enumerable});return t};var A=(t,e,r)=>(r=t!=null?ep(np(t)):{},Wo(e||!t||!t.__esModule?Mr(r,"default",{value:t,enumerable:!0}):r,t)),Yo=t=>Wo(Mr({},"__esModule",{value:!0}),t);var rt=y((Cb,ui)=>{var sp=require("fs"),op=require("path");function Vo(t){console.log(`[dotenv][DEBUG] ${t}`)}var ap=`
2
+ `,cp=/^\s*([\w.-]+)\s*=\s*(.*)?\s*$/,up=/\\n/g,lp=/\n|\r|\r\n/;function Ko(t,e){let r=!!(e&&e.debug),n={};return t.toString().split(lp).forEach(function(i,s){let o=i.match(cp);if(o!=null){let a=o[1],c=o[2]||"",d=c.length-1,u=c[0]==='"'&&c[d]==='"';c[0]==="'"&&c[d]==="'"||u?(c=c.substring(1,d),u&&(c=c.replace(up,ap))):c=c.trim(),n[a]=c}else r&&Vo(`did not match key and value when parsing line ${s+1}: ${i}`)}),n}function fp(t){let e=op.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=Ko(sp.readFileSync(e,{encoding:r}),{debug:n});return Object.keys(i).forEach(function(s){Object.prototype.hasOwnProperty.call(process.env,s)?n&&Vo(`"${s}" is already defined in \`process.env\` and will not be overwritten`):process.env[s]=i[s]}),{parsed:i}}catch(i){return{error:i}}}ui.exports.config=fp;ui.exports.parse=Ko});var Ce=y(li=>{"use strict";li.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})};li.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 Zo=y((Db,Qo)=>{var nt=require("constants"),dp=process.cwd,qr=null,hp=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return qr||(qr=dp.call(process)),qr};try{process.cwd()}catch{}typeof process.chdir=="function"&&(fi=process.chdir,process.chdir=function(t){qr=null,fi.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,fi));var fi;Qo.exports=pp;function pp(t){nt.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=c(t.statSync),t.fstatSync=c(t.fstatSync),t.lstatSync=c(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(u,p,g){g&&process.nextTick(g)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(u,p,g,m){m&&process.nextTick(m)},t.lchownSync=function(){}),hp==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(u){function p(g,m,b){var S=Date.now(),x=0;u(g,m,function R(j){if(j&&(j.code==="EACCES"||j.code==="EPERM")&&Date.now()-S<6e4){setTimeout(function(){t.stat(m,function(L,$){L&&L.code==="ENOENT"?u(g,m,R):b(j)})},x),x<100&&(x+=10);return}b&&b(j)})}return Object.setPrototypeOf&&Object.setPrototypeOf(p,u),p}(t.rename)),t.read=typeof t.read!="function"?t.read:function(u){function p(g,m,b,S,x,R){var j;if(R&&typeof R=="function"){var L=0;j=function($,H,ne){if($&&$.code==="EAGAIN"&&L<10)return L++,u.call(t,g,m,b,S,x,j);R.apply(this,arguments)}}return u.call(t,g,m,b,S,x,j)}return Object.setPrototypeOf&&Object.setPrototypeOf(p,u),p}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(u){return function(p,g,m,b,S){for(var x=0;;)try{return u.call(t,p,g,m,b,S)}catch(R){if(R.code==="EAGAIN"&&x<10){x++;continue}throw R}}}(t.readSync);function e(u){u.lchmod=function(p,g,m){u.open(p,nt.O_WRONLY|nt.O_SYMLINK,g,function(b,S){if(b){m&&m(b);return}u.fchmod(S,g,function(x){u.close(S,function(R){m&&m(x||R)})})})},u.lchmodSync=function(p,g){var m=u.openSync(p,nt.O_WRONLY|nt.O_SYMLINK,g),b=!0,S;try{S=u.fchmodSync(m,g),b=!1}finally{if(b)try{u.closeSync(m)}catch{}else u.closeSync(m)}return S}}function r(u){nt.hasOwnProperty("O_SYMLINK")&&u.futimes?(u.lutimes=function(p,g,m,b){u.open(p,nt.O_SYMLINK,function(S,x){if(S){b&&b(S);return}u.futimes(x,g,m,function(R){u.close(x,function(j){b&&b(R||j)})})})},u.lutimesSync=function(p,g,m){var b=u.openSync(p,nt.O_SYMLINK),S,x=!0;try{S=u.futimesSync(b,g,m),x=!1}finally{if(x)try{u.closeSync(b)}catch{}else u.closeSync(b)}return S}):u.futimes&&(u.lutimes=function(p,g,m,b){b&&process.nextTick(b)},u.lutimesSync=function(){})}function n(u){return u&&function(p,g,m){return u.call(t,p,g,function(b){d(b)&&(b=null),m&&m.apply(this,arguments)})}}function i(u){return u&&function(p,g){try{return u.call(t,p,g)}catch(m){if(!d(m))throw m}}}function s(u){return u&&function(p,g,m,b){return u.call(t,p,g,m,function(S){d(S)&&(S=null),b&&b.apply(this,arguments)})}}function o(u){return u&&function(p,g,m){try{return u.call(t,p,g,m)}catch(b){if(!d(b))throw b}}}function a(u){return u&&function(p,g,m){typeof g=="function"&&(m=g,g=null);function b(S,x){x&&(x.uid<0&&(x.uid+=4294967296),x.gid<0&&(x.gid+=4294967296)),m&&m.apply(this,arguments)}return g?u.call(t,p,g,b):u.call(t,p,b)}}function c(u){return u&&function(p,g){var m=g?u.call(t,p,g):u.call(t,p);return m&&(m.uid<0&&(m.uid+=4294967296),m.gid<0&&(m.gid+=4294967296)),m}}function d(u){if(!u||u.code==="ENOSYS")return!0;var p=!process.getuid||process.getuid()!==0;return!!(p&&(u.code==="EINVAL"||u.code==="EPERM"))}}});var ra=y((Ob,ta)=>{var ea=require("stream").Stream;ta.exports=mp;function mp(t){return{ReadStream:e,WriteStream:r};function e(n,i){if(!(this instanceof e))return new e(n,i);ea.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,c=o.length;a<c;a++){var d=o[a];this[d]=i[d]}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(u,p){if(u){s.emit("error",u),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);ea.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 c=s[o];this[c]=i[c]}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 ia=y((Ib,na)=>{"use strict";na.exports=yp;var gp=Object.getPrototypeOf||function(t){return t.__proto__};function yp(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:gp(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var le=y((Ab,pi)=>{var W=require("fs"),vp=Zo(),bp=ra(),wp=ia(),Nr=require("util"),se,Lr;typeof Symbol=="function"&&typeof Symbol.for=="function"?(se=Symbol.for("graceful-fs.queue"),Lr=Symbol.for("graceful-fs.previous")):(se="___graceful-fs.queue",Lr="___graceful-fs.previous");function _p(){}function aa(t,e){Object.defineProperty(t,se,{get:function(){return e}})}var gt=_p;Nr.debuglog?gt=Nr.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(gt=function(){var t=Nr.format.apply(Nr,arguments);t="GFS4: "+t.split(/\n/).join(`
3
+ GFS4: `),console.error(t)});W[se]||(sa=global[se]||[],aa(W,sa),W.close=function(t){function e(r,n){return t.call(W,r,function(i){i||oa(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,Lr,{value:t}),e}(W.close),W.closeSync=function(t){function e(r){t.apply(W,arguments),oa()}return Object.defineProperty(e,Lr,{value:t}),e}(W.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){gt(W[se]),require("assert").equal(W[se].length,0)}));var sa;global[se]||aa(global,W[se]);pi.exports=di(wp(W));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!W.__patched&&(pi.exports=di(W),W.__patched=!0);function di(t){vp(t),t.gracefulify=di,t.createReadStream=H,t.createWriteStream=ne;var e=t.readFile;t.readFile=r;function r(D,q,T){return typeof q=="function"&&(T=q,q=null),J(D,q,T);function J(I,X,O,B){return e(I,X,function(M){M&&(M.code==="EMFILE"||M.code==="ENFILE")?It([J,[I,X,O],M,B||Date.now(),Date.now()]):typeof O=="function"&&O.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=i;function i(D,q,T,J){return typeof T=="function"&&(J=T,T=null),I(D,q,T,J);function I(X,O,B,M,P){return n(X,O,B,function(F){F&&(F.code==="EMFILE"||F.code==="ENFILE")?It([I,[X,O,B,M],F,P||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(D,q,T,J){return typeof T=="function"&&(J=T,T=null),I(D,q,T,J);function I(X,O,B,M,P){return s(X,O,B,function(F){F&&(F.code==="EMFILE"||F.code==="ENFILE")?It([I,[X,O,B,M],F,P||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(D,q,T,J){return typeof T=="function"&&(J=T,T=0),I(D,q,T,J);function I(X,O,B,M,P){return a(X,O,B,function(F){F&&(F.code==="EMFILE"||F.code==="ENFILE")?It([I,[X,O,B,M],F,P||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var d=t.readdir;t.readdir=p;var u=/^v[0-5]\./;function p(D,q,T){typeof q=="function"&&(T=q,q=null);var J=u.test(process.version)?function(O,B,M,P){return d(O,I(O,B,M,P))}:function(O,B,M,P){return d(O,B,I(O,B,M,P))};return J(D,q,T);function I(X,O,B,M){return function(P,F){P&&(P.code==="EMFILE"||P.code==="ENFILE")?It([J,[X,O,B],P,M||Date.now(),Date.now()]):(F&&F.sort&&F.sort(),typeof B=="function"&&B.call(this,P,F))}}}if(process.version.substr(0,4)==="v0.8"){var g=bp(t);R=g.ReadStream,L=g.WriteStream}var m=t.ReadStream;m&&(R.prototype=Object.create(m.prototype),R.prototype.open=j);var b=t.WriteStream;b&&(L.prototype=Object.create(b.prototype),L.prototype.open=$),Object.defineProperty(t,"ReadStream",{get:function(){return R},set:function(D){R=D},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return L},set:function(D){L=D},enumerable:!0,configurable:!0});var S=R;Object.defineProperty(t,"FileReadStream",{get:function(){return S},set:function(D){S=D},enumerable:!0,configurable:!0});var x=L;Object.defineProperty(t,"FileWriteStream",{get:function(){return x},set:function(D){x=D},enumerable:!0,configurable:!0});function R(D,q){return this instanceof R?(m.apply(this,arguments),this):R.apply(Object.create(R.prototype),arguments)}function j(){var D=this;V(D.path,D.flags,D.mode,function(q,T){q?(D.autoClose&&D.destroy(),D.emit("error",q)):(D.fd=T,D.emit("open",T),D.read())})}function L(D,q){return this instanceof L?(b.apply(this,arguments),this):L.apply(Object.create(L.prototype),arguments)}function $(){var D=this;V(D.path,D.flags,D.mode,function(q,T){q?(D.destroy(),D.emit("error",q)):(D.fd=T,D.emit("open",T))})}function H(D,q){return new t.ReadStream(D,q)}function ne(D,q){return new t.WriteStream(D,q)}var xe=t.open;t.open=V;function V(D,q,T,J){return typeof T=="function"&&(J=T,T=null),I(D,q,T,J);function I(X,O,B,M,P){return xe(X,O,B,function(F,Ue){F&&(F.code==="EMFILE"||F.code==="ENFILE")?It([I,[X,O,B,M],F,P||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}return t}function It(t){gt("ENQUEUE",t[0].name,t[1]),W[se].push(t),hi()}var jr;function oa(){for(var t=Date.now(),e=0;e<W[se].length;++e)W[se][e].length>2&&(W[se][e][3]=t,W[se][e][4]=t);hi()}function hi(){if(clearTimeout(jr),jr=void 0,W[se].length!==0){var t=W[se].shift(),e=t[0],r=t[1],n=t[2],i=t[3],s=t[4];if(i===void 0)gt("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-i>=6e4){gt("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-s,c=Math.max(s-i,1),d=Math.min(c*1.2,100);a>=d?(gt("RETRY",e.name,r),e.apply(null,r.concat([i]))):W[se].push(t)}jr===void 0&&(jr=setTimeout(hi,0))}}});var tr=y(it=>{"use strict";var ca=Ce().fromCallback,ye=le(),Sp=["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 ye[t]=="function");Object.keys(ye).forEach(t=>{t!=="promises"&&(it[t]=ye[t])});Sp.forEach(t=>{it[t]=ca(ye[t])});it.exists=function(t,e){return typeof e=="function"?ye.exists(t,e):new Promise(r=>ye.exists(t,r))};it.read=function(t,e,r,n,i,s){return typeof s=="function"?ye.read(t,e,r,n,i,s):new Promise((o,a)=>{ye.read(t,e,r,n,i,(c,d,u)=>{if(c)return a(c);o({bytesRead:d,buffer:u})})})};it.write=function(t,e,...r){return typeof r[r.length-1]=="function"?ye.write(t,e,...r):new Promise((n,i)=>{ye.write(t,e,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffer:a})})})};typeof ye.writev=="function"&&(it.writev=function(t,e,...r){return typeof r[r.length-1]=="function"?ye.writev(t,e,...r):new Promise((n,i)=>{ye.writev(t,e,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffers:a})})})});typeof ye.realpath.native=="function"&&(it.realpath.native=ca(ye.realpath.native))});var mi=y((Fb,ua)=>{ua.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 pa=y((kb,gi)=>{"use strict";var At=tr(),Ye=require("path"),xp=mi(),la=xp("10.12.0"),fa=t=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace(Ye.parse(t).root,""))){let r=new Error(`Path contains invalid characters: ${t}`);throw r.code="EINVAL",r}},da=t=>{let e={mode:511};return typeof t=="number"&&(t={mode:t}),{...e,...t}},ha=t=>{let e=new Error(`operation not permitted, mkdir '${t}'`);return e.code="EPERM",e.errno=-4048,e.path=t,e.syscall="mkdir",e};gi.exports.makeDir=async(t,e)=>{if(fa(t),e=da(e),la){let n=Ye.resolve(t);return At.mkdir(n,{mode:e.mode,recursive:!0})}let r=async n=>{try{await At.mkdir(n,e.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(Ye.dirname(n)===n)throw ha(n);if(i.message.includes("null bytes"))throw i;return await r(Ye.dirname(n)),r(n)}try{if(!(await At.stat(n)).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r(Ye.resolve(t))};gi.exports.makeDirSync=(t,e)=>{if(fa(t),e=da(e),la){let n=Ye.resolve(t);return At.mkdirSync(n,{mode:e.mode,recursive:!0})}let r=n=>{try{At.mkdirSync(n,e.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(Ye.dirname(n)===n)throw ha(n);if(i.message.includes("null bytes"))throw i;return r(Ye.dirname(n)),r(n)}try{if(!At.statSync(n).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r(Ye.resolve(t))}});var Me=y((Tb,ma)=>{"use strict";var Ep=Ce().fromPromise,{makeDir:Cp,makeDirSync:yi}=pa(),vi=Ep(Cp);ma.exports={mkdirs:vi,mkdirsSync:yi,mkdirp:vi,mkdirpSync:yi,ensureDir:vi,ensureDirSync:yi}});var bi=y((Mb,ga)=>{"use strict";var Rt=le();function Pp(t,e,r,n){Rt.open(t,"r+",(i,s)=>{if(i)return n(i);Rt.futimes(s,e,r,o=>{Rt.close(s,a=>{n&&n(o||a)})})})}function Dp(t,e,r){let n=Rt.openSync(t,"r+");return Rt.futimesSync(n,e,r),Rt.closeSync(n)}ga.exports={utimesMillis:Pp,utimesMillisSync:Dp}});var rr=y((qb,wa)=>{"use strict";var Ft=tr(),Pe=require("path"),Op=require("util"),Ip=mi(),$r=Ip("10.5.0"),ya=t=>$r?Ft.stat(t,{bigint:!0}):Ft.stat(t),wi=t=>$r?Ft.statSync(t,{bigint:!0}):Ft.statSync(t);function Ap(t,e){return Promise.all([ya(t),ya(e).catch(r=>{if(r.code==="ENOENT")return null;throw r})]).then(([r,n])=>({srcStat:r,destStat:n}))}function Rp(t,e){let r,n=wi(t);try{r=wi(e)}catch(i){if(i.code==="ENOENT")return{srcStat:n,destStat:null};throw i}return{srcStat:n,destStat:r}}function Fp(t,e,r,n){Op.callbackify(Ap)(t,e,(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;return a&&Br(o,a)?n(new Error("Source and destination must not be the same.")):o.isDirectory()&&_i(t,e)?n(new Error(Ur(t,e,r))):n(null,{srcStat:o,destStat:a})})}function kp(t,e,r){let{srcStat:n,destStat:i}=Rp(t,e);if(i&&Br(n,i))throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&_i(t,e))throw new Error(Ur(t,e,r));return{srcStat:n,destStat:i}}function va(t,e,r,n,i){let s=Pe.resolve(Pe.dirname(t)),o=Pe.resolve(Pe.dirname(r));if(o===s||o===Pe.parse(o).root)return i();let a=(c,d)=>c?c.code==="ENOENT"?i():i(c):Br(e,d)?i(new Error(Ur(t,r,n))):va(t,e,o,n,i);$r?Ft.stat(o,{bigint:!0},a):Ft.stat(o,a)}function ba(t,e,r,n){let i=Pe.resolve(Pe.dirname(t)),s=Pe.resolve(Pe.dirname(r));if(s===i||s===Pe.parse(s).root)return;let o;try{o=wi(s)}catch(a){if(a.code==="ENOENT")return;throw a}if(Br(e,o))throw new Error(Ur(t,r,n));return ba(t,e,s,n)}function Br(t,e){return!!(e.ino&&e.dev&&e.ino===t.ino&&e.dev===t.dev&&($r||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 _i(t,e){let r=Pe.resolve(t).split(Pe.sep).filter(i=>i),n=Pe.resolve(e).split(Pe.sep).filter(i=>i);return r.reduce((i,s,o)=>i&&n[o]===s,!0)}function Ur(t,e,r){return`Cannot ${r} '${t}' to a subdirectory of itself, '${e}'.`}wa.exports={checkPaths:Fp,checkPathsSync:kp,checkParentPaths:va,checkParentPathsSync:ba,isSrcSubdir:_i}});var Ca=y((Nb,Ea)=>{"use strict";var fe=le(),nr=require("path"),Tp=Me().mkdirsSync,Mp=bi().utimesMillisSync,ir=rr();function qp(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;
4
4
 
5
- see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=sr.checkPathsSync(t,e,"copy");return sr.checkParentPathsSync(t,n,e,"copy"),$p(i,t,e,r)}function $p(t,e,r,n){if(n.filter&&!n.filter(e,r))return;let i=ir.dirname(r);return fe.existsSync(i)||Np(i),Sa(t,e,r,n)}function Sa(t,e,r,n){if(!(n.filter&&!n.filter(e,r)))return Bp(t,e,r,n)}function Bp(t,e,r,n){let s=(n.dereference?fe.statSync:fe.lstatSync)(e);if(s.isDirectory())return Wp(s,t,e,r,n);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return Up(s,t,e,r,n);if(s.isSymbolicLink())return Kp(t,e,r,n)}function Up(t,e,r,n,i){return e?Xp(t,r,n,i):xa(t,r,n,i)}function Xp(t,e,r,n){if(n.overwrite)return fe.unlinkSync(r),xa(t,e,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function xa(t,e,r,n){return fe.copyFileSync(e,r),n.preserveTimestamps&&Gp(t.mode,e,r),xi(r,t.mode)}function Gp(t,e,r){return Hp(t)&&Jp(r,t),zp(e,r)}function Hp(t){return(t&128)===0}function Jp(t,e){return xi(t,e|128)}function xi(t,e){return fe.chmodSync(t,e)}function zp(t,e){let r=fe.statSync(t);return Lp(e,r.atime,r.mtime)}function Wp(t,e,r,n,i){if(!e)return Yp(t.mode,r,n,i);if(e&&!e.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`);return Ea(r,n,i)}function Yp(t,e,r,n){return fe.mkdirSync(r),Ea(e,r,n),xi(r,t)}function Ea(t,e,r){fe.readdirSync(t).forEach(n=>Vp(n,t,e,r))}function Vp(t,e,r,n){let i=ir.join(e,t),s=ir.join(r,t),{destStat:o}=sr.checkPathsSync(i,s,"copy");return Sa(o,i,s,n)}function Kp(t,e,r,n){let i=fe.readlinkSync(e);if(n.dereference&&(i=ir.resolve(process.cwd(),i)),t){let s;try{s=fe.readlinkSync(r)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return fe.symlinkSync(i,r);throw o}if(n.dereference&&(s=ir.resolve(process.cwd(),s)),sr.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(fe.statSync(r).isDirectory()&&sr.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return Qp(i,r)}else return fe.symlinkSync(i,r)}function Qp(t,e){return fe.unlinkSync(e),fe.symlinkSync(t,e)}Ca.exports=jp});var Ei=y((zb,Da)=>{"use strict";Da.exports={copySync:Pa()}});var st=y((Wb,Ia)=>{"use strict";var Zp=Ce().fromPromise,Oa=rr();function e0(t){return Oa.access(t).then(()=>!0).catch(()=>!1)}Ia.exports={pathExists:Zp(e0),pathExistsSync:Oa.existsSync}});var La=y((Yb,Na)=>{"use strict";var De=le(),or=require("path"),t0=Me().mkdirs,r0=st().pathExists,n0=wi().utimesMillis,ar=nr();function i0(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
+ see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=ir.checkPathsSync(t,e,"copy");return ir.checkParentPathsSync(t,n,e,"copy"),Np(i,t,e,r)}function Np(t,e,r,n){if(n.filter&&!n.filter(e,r))return;let i=nr.dirname(r);return fe.existsSync(i)||Tp(i),_a(t,e,r,n)}function _a(t,e,r,n){if(!(n.filter&&!n.filter(e,r)))return jp(t,e,r,n)}function jp(t,e,r,n){let s=(n.dereference?fe.statSync:fe.lstatSync)(e);if(s.isDirectory())return Hp(s,t,e,r,n);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return Lp(s,t,e,r,n);if(s.isSymbolicLink())return Wp(t,e,r,n)}function Lp(t,e,r,n,i){return e?$p(t,r,n,i):Sa(t,r,n,i)}function $p(t,e,r,n){if(n.overwrite)return fe.unlinkSync(r),Sa(t,e,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function Sa(t,e,r,n){return fe.copyFileSync(e,r),n.preserveTimestamps&&Bp(t.mode,e,r),Si(r,t.mode)}function Bp(t,e,r){return Up(t)&&Xp(r,t),Gp(e,r)}function Up(t){return(t&128)===0}function Xp(t,e){return Si(t,e|128)}function Si(t,e){return fe.chmodSync(t,e)}function Gp(t,e){let r=fe.statSync(t);return Mp(e,r.atime,r.mtime)}function Hp(t,e,r,n,i){if(!e)return Jp(t.mode,r,n,i);if(e&&!e.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`);return xa(r,n,i)}function Jp(t,e,r,n){return fe.mkdirSync(r),xa(e,r,n),Si(r,t)}function xa(t,e,r){fe.readdirSync(t).forEach(n=>zp(n,t,e,r))}function zp(t,e,r,n){let i=nr.join(e,t),s=nr.join(r,t),{destStat:o}=ir.checkPathsSync(i,s,"copy");return _a(o,i,s,n)}function Wp(t,e,r,n){let i=fe.readlinkSync(e);if(n.dereference&&(i=nr.resolve(process.cwd(),i)),t){let s;try{s=fe.readlinkSync(r)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return fe.symlinkSync(i,r);throw o}if(n.dereference&&(s=nr.resolve(process.cwd(),s)),ir.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(fe.statSync(r).isDirectory()&&ir.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return Yp(i,r)}else return fe.symlinkSync(i,r)}function Yp(t,e){return fe.unlinkSync(e),fe.symlinkSync(t,e)}Ea.exports=qp});var xi=y((jb,Pa)=>{"use strict";Pa.exports={copySync:Ca()}});var st=y((Lb,Oa)=>{"use strict";var Vp=Ce().fromPromise,Da=tr();function Kp(t){return Da.access(t).then(()=>!0).catch(()=>!1)}Oa.exports={pathExists:Vp(Kp),pathExistsSync:Da.existsSync}});var Na=y(($b,qa)=>{"use strict";var De=le(),sr=require("path"),Qp=Me().mkdirs,Zp=st().pathExists,e0=bi().utimesMillis,or=rr();function t0(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;
6
6
 
7
- see https://github.com/jprichardson/node-fs-extra/issues/269`),ar.checkPaths(t,e,"copy",(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;ar.checkParentPaths(t,o,e,"copy",c=>c?n(c):r.filter?ka(Aa,a,t,e,r,n):Aa(a,t,e,r,n))})}function Aa(t,e,r,n,i){let s=or.dirname(r);r0(s,(o,a)=>{if(o)return i(o);if(a)return Ci(t,e,r,n,i);t0(s,c=>c?i(c):Ci(t,e,r,n,i))})}function ka(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 Ci(t,e,r,n,i){return n.filter?ka(Ra,t,e,r,n,i):Ra(t,e,r,n,i)}function Ra(t,e,r,n,i){(n.dereference?De.stat:De.lstat)(e,(o,a)=>{if(o)return i(o);if(a.isDirectory())return f0(a,t,e,r,n,i);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return s0(a,t,e,r,n,i);if(a.isSymbolicLink())return p0(t,e,r,n,i)})}function s0(t,e,r,n,i,s){return e?o0(t,r,n,i,s):Ta(t,r,n,i,s)}function o0(t,e,r,n,i){if(n.overwrite)De.unlink(r,s=>s?i(s):Ta(t,e,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function Ta(t,e,r,n,i){De.copyFile(e,r,s=>s?i(s):n.preserveTimestamps?a0(t.mode,e,r,i):Gr(r,t.mode,i))}function a0(t,e,r,n){return c0(t)?u0(r,t,i=>i?n(i):Fa(t,e,r,n)):Fa(t,e,r,n)}function c0(t){return(t&128)===0}function u0(t,e,r){return Gr(t,e|128,r)}function Fa(t,e,r,n){l0(e,r,i=>i?n(i):Gr(r,t,n))}function Gr(t,e,r){return De.chmod(t,e,r)}function l0(t,e,r){De.stat(t,(n,i)=>n?r(n):n0(e,i.atime,i.mtime,r))}function f0(t,e,r,n,i,s){return e?e&&!e.isDirectory()?s(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)):Ma(r,n,i,s):d0(t.mode,r,n,i,s)}function d0(t,e,r,n,i){De.mkdir(r,s=>{if(s)return i(s);Ma(e,r,n,o=>o?i(o):Gr(r,t,i))})}function Ma(t,e,r,n){De.readdir(t,(i,s)=>i?n(i):qa(s,t,e,r,n))}function qa(t,e,r,n,i){let s=t.pop();return s?h0(t,s,e,r,n,i):i()}function h0(t,e,r,n,i,s){let o=or.join(r,e),a=or.join(n,e);ar.checkPaths(o,a,"copy",(c,d)=>{if(c)return s(c);let{destStat:u}=d;Ci(u,o,a,i,p=>p?s(p):qa(t,r,n,i,s))})}function p0(t,e,r,n,i){De.readlink(e,(s,o)=>{if(s)return i(s);if(n.dereference&&(o=or.resolve(process.cwd(),o)),t)De.readlink(r,(a,c)=>a?a.code==="EINVAL"||a.code==="UNKNOWN"?De.symlink(o,r,i):i(a):(n.dereference&&(c=or.resolve(process.cwd(),c)),ar.isSrcSubdir(o,c)?i(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${c}'.`)):t.isDirectory()&&ar.isSrcSubdir(c,o)?i(new Error(`Cannot overwrite '${c}' with '${o}'.`)):m0(o,r,i)));else return De.symlink(o,r,i)})}function m0(t,e,r){De.unlink(e,n=>n?r(n):De.symlink(t,e,r))}Na.exports=i0});var Pi=y((Vb,ja)=>{"use strict";var g0=Ce().fromCallback;ja.exports={copy:g0(La())}});var Wa=y((Kb,za)=>{"use strict";var $a=le(),Ga=require("path"),G=require("assert"),cr=process.platform==="win32";function Ha(t){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{t[r]=t[r]||$a[r],r=r+"Sync",t[r]=t[r]||$a[r]}),t.maxBusyTries=t.maxBusyTries||3}function Di(t,e,r){let n=0;typeof e=="function"&&(r=e,e={}),G(t,"rimraf: missing path"),G.strictEqual(typeof t,"string","rimraf: path should be a string"),G.strictEqual(typeof r,"function","rimraf: callback function required"),G(e,"rimraf: invalid options argument provided"),G.strictEqual(typeof e,"object","rimraf: options should be object"),Ha(e),Ba(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(()=>Ba(t,e,i),o)}s.code==="ENOENT"&&(s=null)}r(s)})}function Ba(t,e,r){G(t),G(e),G(typeof r=="function"),e.lstat(t,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&cr)return Ua(t,e,n,r);if(i&&i.isDirectory())return Hr(t,e,n,r);e.unlink(t,s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return cr?Ua(t,e,s,r):Hr(t,e,s,r);if(s.code==="EISDIR")return Hr(t,e,s,r)}return r(s)})})}function Ua(t,e,r,n){G(t),G(e),G(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()?Hr(t,e,r,n):e.unlink(t,n)})})}function Xa(t,e,r){let n;G(t),G(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()?Jr(t,e,r):e.unlinkSync(t)}function Hr(t,e,r,n){G(t),G(e),G(typeof n=="function"),e.rmdir(t,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?y0(t,e,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function y0(t,e,r){G(t),G(e),G(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=>{Di(Ga.join(t,a),e,c=>{if(!o){if(c)return r(o=c);--s===0&&e.rmdir(t,r)}})})})}function Ja(t,e){let r;e=e||{},Ha(e),G(t,"rimraf: missing path"),G.strictEqual(typeof t,"string","rimraf: path should be a string"),G(e,"rimraf: missing options"),G.strictEqual(typeof e,"object","rimraf: options should be object");try{r=e.lstatSync(t)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&cr&&Xa(t,e,n)}try{r&&r.isDirectory()?Jr(t,e,null):e.unlinkSync(t)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return cr?Xa(t,e,n):Jr(t,e,n);if(n.code!=="EISDIR")throw n;Jr(t,e,n)}}function Jr(t,e,r){G(t),G(e);try{e.rmdirSync(t)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")v0(t,e);else if(n.code!=="ENOENT")throw n}}function v0(t,e){if(G(t),G(e),e.readdirSync(t).forEach(r=>Ja(Ga.join(t,r),e)),cr){let r=Date.now();do try{return e.rmdirSync(t,e)}catch{}while(Date.now()-r<500)}else return e.rmdirSync(t,e)}za.exports=Di;Di.sync=Ja});var ur=y((Qb,Va)=>{"use strict";var b0=Ce().fromCallback,Ya=Wa();Va.exports={remove:b0(Ya),removeSync:Ya.sync}});var ic=y((Zb,nc)=>{"use strict";var w0=Ce().fromCallback,Za=le(),ec=require("path"),tc=Me(),rc=ur(),Ka=w0(function(e,r){r=r||function(){},Za.readdir(e,(n,i)=>{if(n)return tc.mkdirs(e,r);i=i.map(o=>ec.join(e,o)),s();function s(){let o=i.pop();if(!o)return r();rc.remove(o,a=>{if(a)return r(a);s()})}})});function Qa(t){let e;try{e=Za.readdirSync(t)}catch{return tc.mkdirsSync(t)}e.forEach(r=>{r=ec.join(t,r),rc.removeSync(r)})}nc.exports={emptyDirSync:Qa,emptydirSync:Qa,emptyDir:Ka,emptydir:Ka}});var cc=y((e2,ac)=>{"use strict";var _0=Ce().fromCallback,sc=require("path"),ot=le(),oc=Me();function S0(t,e){function r(){ot.writeFile(t,"",n=>{if(n)return e(n);e()})}ot.stat(t,(n,i)=>{if(!n&&i.isFile())return e();let s=sc.dirname(t);ot.stat(s,(o,a)=>{if(o)return o.code==="ENOENT"?oc.mkdirs(s,c=>{if(c)return e(c);r()}):e(o);a.isDirectory()?r():ot.readdir(s,c=>{if(c)return e(c)})})})}function x0(t){let e;try{e=ot.statSync(t)}catch{}if(e&&e.isFile())return;let r=sc.dirname(t);try{ot.statSync(r).isDirectory()||ot.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")oc.mkdirsSync(r);else throw n}ot.writeFileSync(t,"")}ac.exports={createFile:_0(S0),createFileSync:x0}});var hc=y((t2,dc)=>{"use strict";var E0=Ce().fromCallback,lc=require("path"),yt=le(),fc=Me(),uc=st().pathExists;function C0(t,e,r){function n(i,s){yt.link(i,s,o=>{if(o)return r(o);r(null)})}uc(e,(i,s)=>{if(i)return r(i);if(s)return r(null);yt.lstat(t,o=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),r(o);let a=lc.dirname(e);uc(a,(c,d)=>{if(c)return r(c);if(d)return n(t,e);fc.mkdirs(a,u=>{if(u)return r(u);n(t,e)})})})})}function P0(t,e){if(yt.existsSync(e))return;try{yt.lstatSync(t)}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let n=lc.dirname(e);return yt.existsSync(n)||fc.mkdirsSync(n),yt.linkSync(t,e)}dc.exports={createLink:E0(C0),createLinkSync:P0}});var mc=y((r2,pc)=>{"use strict";var at=require("path"),lr=le(),D0=st().pathExists;function O0(t,e,r){if(at.isAbsolute(t))return lr.lstat(t,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:t,toDst:t}));{let n=at.dirname(e),i=at.join(n,t);return D0(i,(s,o)=>s?r(s):o?r(null,{toCwd:i,toDst:t}):lr.lstat(t,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),r(a)):r(null,{toCwd:t,toDst:at.relative(n,t)})))}}function I0(t,e){let r;if(at.isAbsolute(t)){if(r=lr.existsSync(t),!r)throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}else{let n=at.dirname(e),i=at.join(n,t);if(r=lr.existsSync(i),r)return{toCwd:i,toDst:t};if(r=lr.existsSync(t),!r)throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:at.relative(n,t)}}}pc.exports={symlinkPaths:O0,symlinkPathsSync:I0}});var vc=y((n2,yc)=>{"use strict";var gc=le();function A0(t,e,r){if(r=typeof e=="function"?e:r,e=typeof e=="function"?!1:e,e)return r(null,e);gc.lstat(t,(n,i)=>{if(n)return r(null,"file");e=i&&i.isDirectory()?"dir":"file",r(null,e)})}function R0(t,e){let r;if(e)return e;try{r=gc.lstatSync(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}yc.exports={symlinkType:A0,symlinkTypeSync:R0}});var Cc=y((i2,Ec)=>{"use strict";var F0=Ce().fromCallback,wc=require("path"),Tt=le(),_c=Me(),k0=_c.mkdirs,T0=_c.mkdirsSync,Sc=mc(),M0=Sc.symlinkPaths,q0=Sc.symlinkPathsSync,xc=vc(),N0=xc.symlinkType,L0=xc.symlinkTypeSync,bc=st().pathExists;function j0(t,e,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,bc(e,(i,s)=>{if(i)return n(i);if(s)return n(null);M0(t,e,(o,a)=>{if(o)return n(o);t=a.toDst,N0(a.toCwd,r,(c,d)=>{if(c)return n(c);let u=wc.dirname(e);bc(u,(p,g)=>{if(p)return n(p);if(g)return Tt.symlink(t,e,d,n);k0(u,m=>{if(m)return n(m);Tt.symlink(t,e,d,n)})})})})})}function $0(t,e,r){if(Tt.existsSync(e))return;let i=q0(t,e);t=i.toDst,r=L0(i.toCwd,r);let s=wc.dirname(e);return Tt.existsSync(s)||T0(s),Tt.symlinkSync(t,e,r)}Ec.exports={createSymlink:F0(j0),createSymlinkSync:$0}});var Dc=y((s2,Pc)=>{"use strict";var zr=cc(),Wr=hc(),Yr=Cc();Pc.exports={createFile:zr.createFile,createFileSync:zr.createFileSync,ensureFile:zr.createFile,ensureFileSync:zr.createFileSync,createLink:Wr.createLink,createLinkSync:Wr.createLinkSync,ensureLink:Wr.createLink,ensureLinkSync:Wr.createLinkSync,createSymlink:Yr.createSymlink,createSymlinkSync:Yr.createSymlinkSync,ensureSymlink:Yr.createSymlink,ensureSymlinkSync:Yr.createSymlinkSync}});var Vr=y((o2,Oc)=>{function B0(t,{EOL:e=`
8
- `,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let s=r?e:"";return JSON.stringify(t,n,i).replace(/\n/g,e)+s}function U0(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t.replace(/^\uFEFF/,"")}Oc.exports={stringify:B0,stripBom:U0}});var Fc=y((a2,Rc)=>{var Mt;try{Mt=le()}catch{Mt=require("fs")}var Kr=Ce(),{stringify:Ic,stripBom:Ac}=Vr();async function X0(t,e={}){typeof e=="string"&&(e={encoding:e});let r=e.fs||Mt,n="throws"in e?e.throws:!0,i=await Kr.fromCallback(r.readFile)(t,e);i=Ac(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 G0=Kr.fromPromise(X0);function H0(t,e={}){typeof e=="string"&&(e={encoding:e});let r=e.fs||Mt,n="throws"in e?e.throws:!0;try{let i=r.readFileSync(t,e);return i=Ac(i),JSON.parse(i,e.reviver)}catch(i){if(n)throw i.message=`${t}: ${i.message}`,i;return null}}async function J0(t,e,r={}){let n=r.fs||Mt,i=Ic(e,r);await Kr.fromCallback(n.writeFile)(t,i,r)}var z0=Kr.fromPromise(J0);function W0(t,e,r={}){let n=r.fs||Mt,i=Ic(e,r);return n.writeFileSync(t,i,r)}var Y0={readFile:G0,readFileSync:H0,writeFile:z0,writeFileSync:W0};Rc.exports=Y0});var Tc=y((c2,kc)=>{"use strict";var Qr=Fc();kc.exports={readJson:Qr.readFile,readJsonSync:Qr.readFileSync,writeJson:Qr.writeFile,writeJsonSync:Qr.writeFileSync}});var Zr=y((u2,Nc)=>{"use strict";var V0=Ce().fromCallback,fr=le(),Mc=require("path"),qc=Me(),K0=st().pathExists;function Q0(t,e,r,n){typeof r=="function"&&(n=r,r="utf8");let i=Mc.dirname(t);K0(i,(s,o)=>{if(s)return n(s);if(o)return fr.writeFile(t,e,r,n);qc.mkdirs(i,a=>{if(a)return n(a);fr.writeFile(t,e,r,n)})})}function Z0(t,...e){let r=Mc.dirname(t);if(fr.existsSync(r))return fr.writeFileSync(t,...e);qc.mkdirsSync(r),fr.writeFileSync(t,...e)}Nc.exports={outputFile:V0(Q0),outputFileSync:Z0}});var jc=y((l2,Lc)=>{"use strict";var{stringify:em}=Vr(),{outputFile:tm}=Zr();async function rm(t,e,r={}){let n=em(e,r);await tm(t,n,r)}Lc.exports=rm});var Bc=y((f2,$c)=>{"use strict";var{stringify:nm}=Vr(),{outputFileSync:im}=Zr();function sm(t,e,r){let n=nm(e,r);im(t,n,r)}$c.exports=sm});var Xc=y((d2,Uc)=>{"use strict";var om=Ce().fromPromise,ve=Tc();ve.outputJson=om(jc());ve.outputJsonSync=Bc();ve.outputJSON=ve.outputJson;ve.outputJSONSync=ve.outputJsonSync;ve.writeJSON=ve.writeJson;ve.writeJSONSync=ve.writeJsonSync;ve.readJSON=ve.readJson;ve.readJSONSync=ve.readJsonSync;Uc.exports=ve});var Yc=y((h2,Wc)=>{"use strict";var Jc=le(),am=require("path"),cm=Ei().copySync,zc=ur().removeSync,um=Me().mkdirpSync,Gc=nr();function lm(t,e,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i}=Gc.checkPathsSync(t,e,"move");return Gc.checkParentPathsSync(t,i,e,"move"),um(am.dirname(e)),fm(t,e,n)}function fm(t,e,r){if(r)return zc(e),Hc(t,e,r);if(Jc.existsSync(e))throw new Error("dest already exists.");return Hc(t,e,r)}function Hc(t,e,r){try{Jc.renameSync(t,e)}catch(n){if(n.code!=="EXDEV")throw n;return dm(t,e,r)}}function dm(t,e,r){return cm(t,e,{overwrite:r,errorOnExist:!0}),zc(t)}Wc.exports=lm});var Kc=y((p2,Vc)=>{"use strict";Vc.exports={moveSync:Yc()}});var ru=y((m2,tu)=>{"use strict";var hm=le(),pm=require("path"),mm=Pi().copy,eu=ur().remove,gm=Me().mkdirp,ym=st().pathExists,Qc=nr();function vm(t,e,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;Qc.checkPaths(t,e,"move",(s,o)=>{if(s)return n(s);let{srcStat:a}=o;Qc.checkParentPaths(t,a,e,"move",c=>{if(c)return n(c);gm(pm.dirname(e),d=>d?n(d):bm(t,e,i,n))})})}function bm(t,e,r,n){if(r)return eu(e,i=>i?n(i):Zc(t,e,r,n));ym(e,(i,s)=>i?n(i):s?n(new Error("dest already exists.")):Zc(t,e,r,n))}function Zc(t,e,r,n){hm.rename(t,e,i=>i?i.code!=="EXDEV"?n(i):wm(t,e,r,n):n())}function wm(t,e,r,n){mm(t,e,{overwrite:r,errorOnExist:!0},s=>s?n(s):eu(t,n))}tu.exports=vm});var iu=y((g2,nu)=>{"use strict";var _m=Ce().fromCallback;nu.exports={move:_m(ru())}});var vt=y((y2,Oi)=>{"use strict";Oi.exports={...rr(),...Ei(),...Pi(),...ic(),...Dc(),...Xc(),...Me(),...Kc(),...iu(),...Zr(),...st(),...ur()};var su=require("fs");Object.getOwnPropertyDescriptor(su,"promises")&&Object.defineProperty(Oi.exports,"promises",{get(){return su.promises}})});var au=y((v2,ou)=>{"use strict";var Sm=/[|\\{}()[\]^$+*?.]/g;ou.exports=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(Sm,"\\$&")}});var uu=y((b2,cu)=>{"use strict";cu.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 Ii=y((w2,hu)=>{var bt=uu(),du={};for(en in bt)bt.hasOwnProperty(en)&&(du[bt[en]]=en);var en,E=hu.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(be in E)if(E.hasOwnProperty(be)){if(!("channels"in E[be]))throw new Error("missing channels property: "+be);if(!("labels"in E[be]))throw new Error("missing channel labels property: "+be);if(E[be].labels.length!==E[be].channels)throw new Error("channel and label counts mismatch: "+be);lu=E[be].channels,fu=E[be].labels,delete E[be].channels,delete E[be].labels,Object.defineProperty(E[be],"channels",{value:lu}),Object.defineProperty(E[be],"labels",{value:fu})}var lu,fu,be;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,c,d;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),d=(i+s)/2,s===i?c=0:d<=.5?c=o/(s+i):c=o/(2-s-i),[a,c*100,d*100]};E.rgb.hsv=function(t){var e,r,n,i,s,o=t[0]/255,a=t[1]/255,c=t[2]/255,d=Math.max(o,a,c),u=d-Math.min(o,a,c),p=function(g){return(d-g)/6/u+1/2};return u===0?i=s=0:(s=u/d,e=p(o),r=p(a),n=p(c),o===d?i=n-r:a===d?i=1/3+e-n:c===d&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,d*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 xm(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=du[t];if(e)return e;var r=1/0,n;for(var i in bt)if(bt.hasOwnProperty(i)){var s=bt[i],o=xm(t,s);o<r&&(r=o,n=i)}return n};E.keyword.rgb=function(t){return bt[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,c;if(r===0)return c=n*255,[c,c,c];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,a=[0,0,0];for(var d=0;d<3;d++)o=e+1/3*-(d-1),o<0&&o++,o>1&&o--,6*o<1?c=i+(s-i)*6*o:2*o<1?c=s:3*o<2?c=i+(s-i)*(2/3-o)*6:c=i,a[d]=c*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),c=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,c,o];case 1:return[a,n,o];case 2:return[o,n,c];case 3:return[o,a,n];case 4:return[c,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,c;i>1&&(r/=i,n/=i),s=Math.floor(6*e),o=1-n,a=6*e-s,s&1&&(a=1-a),c=r+a*(o-r);var d,u,p;switch(s){default:case 6:case 0:d=o,u=c,p=r;break;case 1:d=c,u=o,p=r;break;case 2:d=r,u=o,p=c;break;case 3:d=r,u=c,p=o;break;case 4:d=c,u=r,p=o;break;case 5:d=o,u=r,p=c;break}return[d*255,u*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),c=Math.pow(i,3),d=Math.pow(o,3);return s=a>.008856?a:(s-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,o=d>.008856?d:(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,c;return o<1?a=s/(1-o):a=0,o<=0?c=0:i===e?c=(r-n)/o%6:i===r?c=2+(n-e)/o:c=4+(e-r)/o+4,c/=6,c%=1,[c*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,c=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 c=(1-r)*n,[(r*i[0]+c)*255,(r*i[1]+c)*255,(r*i[2]+c)*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 mu=y((_2,pu)=>{var tn=Ii();function Em(){for(var t={},e=Object.keys(tn),r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function Cm(t){var e=Em(),r=[t];for(e[t].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(tn[n]),s=i.length,o=0;o<s;o++){var a=i[o],c=e[a];c.distance===-1&&(c.distance=e[n].distance+1,c.parent=n,r.unshift(a))}return e}function Pm(t,e){return function(r){return e(t(r))}}function Dm(t,e){for(var r=[e[t].parent,t],n=tn[e[t].parent][t],i=e[t].parent;e[i].parent;)r.unshift(e[i].parent),n=Pm(tn[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}pu.exports=function(t){for(var e=Cm(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]=Dm(o,e))}return r}});var yu=y((S2,gu)=>{var Ai=Ii(),Om=mu(),qt={},Im=Object.keys(Ai);function Am(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 Rm(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}Im.forEach(function(t){qt[t]={},Object.defineProperty(qt[t],"channels",{value:Ai[t].channels}),Object.defineProperty(qt[t],"labels",{value:Ai[t].labels});var e=Om(t),r=Object.keys(e);r.forEach(function(n){var i=e[n];qt[t][n]=Rm(i),qt[t][n].raw=Am(i)})});gu.exports=qt});var bu=y((x2,vu)=>{"use strict";var Nt=yu(),rn=(t,e)=>function(){return`\x1B[${t.apply(Nt,arguments)+e}m`},nn=(t,e)=>function(){let r=t.apply(Nt,arguments);return`\x1B[${38+e};5;${r}m`},sn=(t,e)=>function(){let r=t.apply(Nt,arguments);return`\x1B[${38+e};2;${r[0]};${r[1]};${r[2]}m`};function Fm(){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:rn(r,0)},e.color.ansi256={ansi256:nn(r,0)},e.color.ansi16m={rgb:sn(n,0)},e.bgColor.ansi={ansi:rn(r,10)},e.bgColor.ansi256={ansi256:nn(r,10)},e.bgColor.ansi16m={rgb:sn(n,10)};for(let i of Object.keys(Nt)){if(typeof Nt[i]!="object")continue;let s=Nt[i];i==="ansi16"&&(i="ansi"),"ansi16"in s&&(e.color.ansi[i]=rn(s.ansi16,0),e.bgColor.ansi[i]=rn(s.ansi16,10)),"ansi256"in s&&(e.color.ansi256[i]=nn(s.ansi256,0),e.bgColor.ansi256[i]=nn(s.ansi256,10)),"rgb"in s&&(e.color.ansi16m[i]=sn(s.rgb,0),e.bgColor.ansi16m[i]=sn(s.rgb,10))}return e}Object.defineProperty(vu,"exports",{enumerable:!0,get:Fm})});var _u=y((E2,wu)=>{"use strict";wu.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 xu=y((C2,Su)=>{"use strict";var km=require("os"),qe=_u(),de=process.env,Lt;qe("no-color")||qe("no-colors")||qe("color=false")?Lt=!1:(qe("color")||qe("colors")||qe("color=true")||qe("color=always"))&&(Lt=!0);"FORCE_COLOR"in de&&(Lt=de.FORCE_COLOR.length===0||parseInt(de.FORCE_COLOR,10)!==0);function Tm(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Mm(t){if(Lt===!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&&Lt!==!0)return 0;let e=Lt?1:0;if(process.platform==="win32"){let r=km.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 de)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in de)||de.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in de)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(de.TEAMCITY_VERSION)?1:0;if(de.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in de){let r=parseInt((de.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(de.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(de.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(de.TERM)||"COLORTERM"in de?1:(de.TERM==="dumb",e)}function Ri(t){let e=Mm(t);return Tm(e)}Su.exports={supportsColor:Ri,stdout:Ri(process.stdout),stderr:Ri(process.stderr)}});var Ou=y((P2,Du)=>{"use strict";var qm=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Eu=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Nm=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Lm=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,jm=new Map([["n",`
9
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Pu(t){return t[0]==="u"&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):jm.get(t)||t}function $m(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(Nm))r.push(i[2].replace(Lm,(o,a,c)=>a?Pu(a):c));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`);return r}function Bm(t){Eu.lastIndex=0;let e=[],r;for(;(r=Eu.exec(t))!==null;){let n=r[1];if(r[2]){let i=$m(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function Cu(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}Du.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(qm,(s,o,a,c,d,u)=>{if(o)i.push(Pu(o));else if(c){let p=i.join("");i=[],n.push(r.length===0?p:Cu(t,r)(p)),r.push({inverse:a,styles:Bm(c)})}else if(d){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Cu(t,r)(i.join(""))),i=[],r.pop()}else i.push(u)}),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 an=y((D2,hr)=>{"use strict";var ki=au(),Q=bu(),Fi=xu().stdout,Um=Ou(),Au=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),Ru=["ansi","ansi","ansi256","ansi16m"],Fu=new Set(["gray"]),jt=Object.create(null);function Iu(t,e){e=e||{};let r=Fi?Fi.level:0;t.level=e.level===void 0?r:e.level,t.enabled="enabled"in e?e.enabled:t.level>0}function dr(t){if(!this||!(this instanceof dr)||this.template){let e={};return Iu(e,t),e.template=function(){let r=[].slice.call(arguments);return Hm.apply(null,[e.template].concat(r))},Object.setPrototypeOf(e,dr.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=dr,e.template}Iu(this,t)}Au&&(Q.blue.open="\x1B[94m");for(let t of Object.keys(Q))Q[t].closeRe=new RegExp(ki(Q[t].close),"g"),jt[t]={get(){let e=Q[t];return on.call(this,this._styles?this._styles.concat(e):[e],this._empty,t)}};jt.visible={get(){return on.call(this,this._styles||[],!0,"visible")}};Q.color.closeRe=new RegExp(ki(Q.color.close),"g");for(let t of Object.keys(Q.color.ansi))Fu.has(t)||(jt[t]={get(){let e=this.level;return function(){let n={open:Q.color[Ru[e]][t].apply(null,arguments),close:Q.color.close,closeRe:Q.color.closeRe};return on.call(this,this._styles?this._styles.concat(n):[n],this._empty,t)}}});Q.bgColor.closeRe=new RegExp(ki(Q.bgColor.close),"g");for(let t of Object.keys(Q.bgColor.ansi)){if(Fu.has(t))continue;let e="bg"+t[0].toUpperCase()+t.slice(1);jt[e]={get(){let r=this.level;return function(){let i={open:Q.bgColor[Ru[r]][t].apply(null,arguments),close:Q.bgColor.close,closeRe:Q.bgColor.closeRe};return on.call(this,this._styles?this._styles.concat(i):[i],this._empty,t)}}}}var Xm=Object.defineProperties(()=>{},jt);function on(t,e,r){let n=function(){return Gm.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__=Xm,n}function Gm(){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=Q.dim.open;Au&&this.hasGrey&&(Q.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 Q.dim.open=n,r}function Hm(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 Um(t,n.join(""))}Object.defineProperties(dr.prototype,jt);hr.exports=dr();hr.exports.supportsColor=Fi;hr.exports.default=hr.exports});var Tu=y((O2,ku)=>{"use strict";ku.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 Ti=y((I2,qu)=>{var pr=Tu(),Mu={};for(let t of Object.keys(pr))Mu[pr[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"]}};qu.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,c;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 d=(i+s)/2;return s===i?c=0:d<=.5?c=o/(s+i):c=o/(2-s-i),[a,c*100,d*100]};C.rgb.hsv=function(t){let e,r,n,i,s,o=t[0]/255,a=t[1]/255,c=t[2]/255,d=Math.max(o,a,c),u=d-Math.min(o,a,c),p=function(g){return(d-g)/6/u+1/2};return u===0?(i=0,s=0):(s=u/d,e=p(o),r=p(a),n=p(c),o===d?i=n-r:a===d?i=1/3+e-n:c===d&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,d*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 Jm(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=Mu[t];if(e)return e;let r=1/0,n;for(let i of Object.keys(pr)){let s=pr[i],o=Jm(t,s);o<r&&(r=o,n=i)}return n};C.keyword.rgb=function(t){return pr[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,c=[0,0,0];for(let d=0;d<3;d++)s=e+1/3*-(d-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,c[d]=o*255;return c};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),c=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,c,o];case 1:return[a,n,o];case 2:return[o,n,c];case 3:return[o,a,n];case 4:return[c,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 c=r+s*(a-r),d,u,p;switch(o){default:case 6:case 0:d=a,u=c,p=r;break;case 1:d=c,u=a,p=r;break;case 2:d=r,u=a,p=c;break;case 3:d=r,u=c,p=a;break;case 4:d=c,u=r,p=a;break;case 5:d=a,u=r,p=c;break}return[d*255,u*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,c=i**3,d=o**3;return s=a>.008856?a:(s-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,o=d>.008856?d:(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,c;return o<1?a=s/(1-o):a=0,o<=0?c=0:i===e?c=(r-n)/o%6:i===r?c=2+(n-e)/o:c=4+(e-r)/o,c/=6,c%=1,[c*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,c=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 c=(1-r)*n,[(r*i[0]+c)*255,(r*i[1]+c)*255,(r*i[2]+c)*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 Lu=y((A2,Nu)=>{var cn=Ti();function zm(){let t={},e=Object.keys(cn);for(let r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function Wm(t){let e=zm(),r=[t];for(e[t].distance=0;r.length;){let n=r.pop(),i=Object.keys(cn[n]);for(let s=i.length,o=0;o<s;o++){let a=i[o],c=e[a];c.distance===-1&&(c.distance=e[n].distance+1,c.parent=n,r.unshift(a))}}return e}function Ym(t,e){return function(r){return e(t(r))}}function Vm(t,e){let r=[e[t].parent,t],n=cn[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)r.unshift(e[i].parent),n=Ym(cn[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}Nu.exports=function(t){let e=Wm(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]=Vm(o,e))}return r}});var $u=y((R2,ju)=>{var Mi=Ti(),Km=Lu(),$t={},Qm=Object.keys(Mi);function Zm(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 eg(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}Qm.forEach(t=>{$t[t]={},Object.defineProperty($t[t],"channels",{value:Mi[t].channels}),Object.defineProperty($t[t],"labels",{value:Mi[t].labels});let e=Km(t);Object.keys(e).forEach(n=>{let i=e[n];$t[t][n]=eg(i),$t[t][n].raw=Zm(i)})});ju.exports=$t});var Ju=y((F2,Hu)=>{"use strict";var Bu=(t,e)=>(...r)=>`\x1B[${t(...r)+e}m`,Uu=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};5;${n}m`},Xu=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};2;${n[0]};${n[1]};${n[2]}m`},un=t=>t,Gu=(t,e,r)=>[t,e,r],Bt=(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})},qi,Ut=(t,e,r,n)=>{qi===void 0&&(qi=$u());let i=n?10:0,s={};for(let[o,a]of Object.entries(qi)){let c=o==="ansi16"?"ansi":o;o===e?s[c]=t(r,i):typeof a=="object"&&(s[c]=t(a[e],i))}return s};function tg(){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",Bt(e.color,"ansi",()=>Ut(Bu,"ansi16",un,!1)),Bt(e.color,"ansi256",()=>Ut(Uu,"ansi256",un,!1)),Bt(e.color,"ansi16m",()=>Ut(Xu,"rgb",Gu,!1)),Bt(e.bgColor,"ansi",()=>Ut(Bu,"ansi16",un,!0)),Bt(e.bgColor,"ansi256",()=>Ut(Uu,"ansi256",un,!0)),Bt(e.bgColor,"ansi16m",()=>Ut(Xu,"rgb",Gu,!0)),e}Object.defineProperty(Hu,"exports",{enumerable:!0,get:tg})});var Wu=y((k2,zu)=>{"use strict";zu.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 ji=y((T2,Vu)=>{"use strict";var rg=require("os"),Yu=require("tty"),ke=Wu(),{env:ee}=process,ct;ke("no-color")||ke("no-colors")||ke("color=false")||ke("color=never")?ct=0:(ke("color")||ke("colors")||ke("color=true")||ke("color=always"))&&(ct=1);"FORCE_COLOR"in ee&&(ee.FORCE_COLOR==="true"?ct=1:ee.FORCE_COLOR==="false"?ct=0:ct=ee.FORCE_COLOR.length===0?1:Math.min(parseInt(ee.FORCE_COLOR,10),3));function Ni(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Li(t,e){if(ct===0)return 0;if(ke("color=16m")||ke("color=full")||ke("color=truecolor"))return 3;if(ke("color=256"))return 2;if(t&&!e&&ct===void 0)return 0;let r=ct||0;if(ee.TERM==="dumb")return r;if(process.platform==="win32"){let n=rg.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in ee)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in ee)||ee.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in ee)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ee.TEAMCITY_VERSION)?1:0;if(ee.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in ee){let n=parseInt((ee.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ee.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ee.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ee.TERM)||"COLORTERM"in ee?1:r}function ng(t){let e=Li(t,t&&t.isTTY);return Ni(e)}Vu.exports={supportsColor:ng,stdout:Ni(Li(!0,Yu.isatty(1))),stderr:Ni(Li(!0,Yu.isatty(2)))}});var Qu=y((M2,Ku)=>{"use strict";var ig=(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},sg=(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
7
+ see https://github.com/jprichardson/node-fs-extra/issues/269`),or.checkPaths(t,e,"copy",(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;or.checkParentPaths(t,o,e,"copy",c=>c?n(c):r.filter?Fa(Ia,a,t,e,r,n):Ia(a,t,e,r,n))})}function Ia(t,e,r,n,i){let s=sr.dirname(r);Zp(s,(o,a)=>{if(o)return i(o);if(a)return Ei(t,e,r,n,i);Qp(s,c=>c?i(c):Ei(t,e,r,n,i))})}function Fa(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 Ei(t,e,r,n,i){return n.filter?Fa(Aa,t,e,r,n,i):Aa(t,e,r,n,i)}function Aa(t,e,r,n,i){(n.dereference?De.stat:De.lstat)(e,(o,a)=>{if(o)return i(o);if(a.isDirectory())return c0(a,t,e,r,n,i);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return r0(a,t,e,r,n,i);if(a.isSymbolicLink())return f0(t,e,r,n,i)})}function r0(t,e,r,n,i,s){return e?n0(t,r,n,i,s):ka(t,r,n,i,s)}function n0(t,e,r,n,i){if(n.overwrite)De.unlink(r,s=>s?i(s):ka(t,e,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function ka(t,e,r,n,i){De.copyFile(e,r,s=>s?i(s):n.preserveTimestamps?i0(t.mode,e,r,i):Xr(r,t.mode,i))}function i0(t,e,r,n){return s0(t)?o0(r,t,i=>i?n(i):Ra(t,e,r,n)):Ra(t,e,r,n)}function s0(t){return(t&128)===0}function o0(t,e,r){return Xr(t,e|128,r)}function Ra(t,e,r,n){a0(e,r,i=>i?n(i):Xr(r,t,n))}function Xr(t,e,r){return De.chmod(t,e,r)}function a0(t,e,r){De.stat(t,(n,i)=>n?r(n):e0(e,i.atime,i.mtime,r))}function c0(t,e,r,n,i,s){return e?e&&!e.isDirectory()?s(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)):Ta(r,n,i,s):u0(t.mode,r,n,i,s)}function u0(t,e,r,n,i){De.mkdir(r,s=>{if(s)return i(s);Ta(e,r,n,o=>o?i(o):Xr(r,t,i))})}function Ta(t,e,r,n){De.readdir(t,(i,s)=>i?n(i):Ma(s,t,e,r,n))}function Ma(t,e,r,n,i){let s=t.pop();return s?l0(t,s,e,r,n,i):i()}function l0(t,e,r,n,i,s){let o=sr.join(r,e),a=sr.join(n,e);or.checkPaths(o,a,"copy",(c,d)=>{if(c)return s(c);let{destStat:u}=d;Ei(u,o,a,i,p=>p?s(p):Ma(t,r,n,i,s))})}function f0(t,e,r,n,i){De.readlink(e,(s,o)=>{if(s)return i(s);if(n.dereference&&(o=sr.resolve(process.cwd(),o)),t)De.readlink(r,(a,c)=>a?a.code==="EINVAL"||a.code==="UNKNOWN"?De.symlink(o,r,i):i(a):(n.dereference&&(c=sr.resolve(process.cwd(),c)),or.isSrcSubdir(o,c)?i(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${c}'.`)):t.isDirectory()&&or.isSrcSubdir(c,o)?i(new Error(`Cannot overwrite '${c}' with '${o}'.`)):d0(o,r,i)));else return De.symlink(o,r,i)})}function d0(t,e,r){De.unlink(e,n=>n?r(n):De.symlink(t,e,r))}qa.exports=t0});var Ci=y((Bb,ja)=>{"use strict";var h0=Ce().fromCallback;ja.exports={copy:h0(Na())}});var za=y((Ub,Ja)=>{"use strict";var La=le(),Xa=require("path"),G=require("assert"),ar=process.platform==="win32";function Ga(t){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{t[r]=t[r]||La[r],r=r+"Sync",t[r]=t[r]||La[r]}),t.maxBusyTries=t.maxBusyTries||3}function Pi(t,e,r){let n=0;typeof e=="function"&&(r=e,e={}),G(t,"rimraf: missing path"),G.strictEqual(typeof t,"string","rimraf: path should be a string"),G.strictEqual(typeof r,"function","rimraf: callback function required"),G(e,"rimraf: invalid options argument provided"),G.strictEqual(typeof e,"object","rimraf: options should be object"),Ga(e),$a(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(()=>$a(t,e,i),o)}s.code==="ENOENT"&&(s=null)}r(s)})}function $a(t,e,r){G(t),G(e),G(typeof r=="function"),e.lstat(t,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&ar)return Ba(t,e,n,r);if(i&&i.isDirectory())return Gr(t,e,n,r);e.unlink(t,s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return ar?Ba(t,e,s,r):Gr(t,e,s,r);if(s.code==="EISDIR")return Gr(t,e,s,r)}return r(s)})})}function Ba(t,e,r,n){G(t),G(e),G(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()?Gr(t,e,r,n):e.unlink(t,n)})})}function Ua(t,e,r){let n;G(t),G(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()?Hr(t,e,r):e.unlinkSync(t)}function Gr(t,e,r,n){G(t),G(e),G(typeof n=="function"),e.rmdir(t,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?p0(t,e,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function p0(t,e,r){G(t),G(e),G(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=>{Pi(Xa.join(t,a),e,c=>{if(!o){if(c)return r(o=c);--s===0&&e.rmdir(t,r)}})})})}function Ha(t,e){let r;e=e||{},Ga(e),G(t,"rimraf: missing path"),G.strictEqual(typeof t,"string","rimraf: path should be a string"),G(e,"rimraf: missing options"),G.strictEqual(typeof e,"object","rimraf: options should be object");try{r=e.lstatSync(t)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&ar&&Ua(t,e,n)}try{r&&r.isDirectory()?Hr(t,e,null):e.unlinkSync(t)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return ar?Ua(t,e,n):Hr(t,e,n);if(n.code!=="EISDIR")throw n;Hr(t,e,n)}}function Hr(t,e,r){G(t),G(e);try{e.rmdirSync(t)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")m0(t,e);else if(n.code!=="ENOENT")throw n}}function m0(t,e){if(G(t),G(e),e.readdirSync(t).forEach(r=>Ha(Xa.join(t,r),e)),ar){let r=Date.now();do try{return e.rmdirSync(t,e)}catch{}while(Date.now()-r<500)}else return e.rmdirSync(t,e)}Ja.exports=Pi;Pi.sync=Ha});var cr=y((Xb,Ya)=>{"use strict";var g0=Ce().fromCallback,Wa=za();Ya.exports={remove:g0(Wa),removeSync:Wa.sync}});var nc=y((Gb,rc)=>{"use strict";var y0=Ce().fromCallback,Qa=le(),Za=require("path"),ec=Me(),tc=cr(),Va=y0(function(e,r){r=r||function(){},Qa.readdir(e,(n,i)=>{if(n)return ec.mkdirs(e,r);i=i.map(o=>Za.join(e,o)),s();function s(){let o=i.pop();if(!o)return r();tc.remove(o,a=>{if(a)return r(a);s()})}})});function Ka(t){let e;try{e=Qa.readdirSync(t)}catch{return ec.mkdirsSync(t)}e.forEach(r=>{r=Za.join(t,r),tc.removeSync(r)})}rc.exports={emptyDirSync:Ka,emptydirSync:Ka,emptyDir:Va,emptydir:Va}});var ac=y((Hb,oc)=>{"use strict";var v0=Ce().fromCallback,ic=require("path"),ot=le(),sc=Me();function b0(t,e){function r(){ot.writeFile(t,"",n=>{if(n)return e(n);e()})}ot.stat(t,(n,i)=>{if(!n&&i.isFile())return e();let s=ic.dirname(t);ot.stat(s,(o,a)=>{if(o)return o.code==="ENOENT"?sc.mkdirs(s,c=>{if(c)return e(c);r()}):e(o);a.isDirectory()?r():ot.readdir(s,c=>{if(c)return e(c)})})})}function w0(t){let e;try{e=ot.statSync(t)}catch{}if(e&&e.isFile())return;let r=ic.dirname(t);try{ot.statSync(r).isDirectory()||ot.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")sc.mkdirsSync(r);else throw n}ot.writeFileSync(t,"")}oc.exports={createFile:v0(b0),createFileSync:w0}});var dc=y((Jb,fc)=>{"use strict";var _0=Ce().fromCallback,uc=require("path"),yt=le(),lc=Me(),cc=st().pathExists;function S0(t,e,r){function n(i,s){yt.link(i,s,o=>{if(o)return r(o);r(null)})}cc(e,(i,s)=>{if(i)return r(i);if(s)return r(null);yt.lstat(t,o=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),r(o);let a=uc.dirname(e);cc(a,(c,d)=>{if(c)return r(c);if(d)return n(t,e);lc.mkdirs(a,u=>{if(u)return r(u);n(t,e)})})})})}function x0(t,e){if(yt.existsSync(e))return;try{yt.lstatSync(t)}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let n=uc.dirname(e);return yt.existsSync(n)||lc.mkdirsSync(n),yt.linkSync(t,e)}fc.exports={createLink:_0(S0),createLinkSync:x0}});var pc=y((zb,hc)=>{"use strict";var at=require("path"),ur=le(),E0=st().pathExists;function C0(t,e,r){if(at.isAbsolute(t))return ur.lstat(t,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:t,toDst:t}));{let n=at.dirname(e),i=at.join(n,t);return E0(i,(s,o)=>s?r(s):o?r(null,{toCwd:i,toDst:t}):ur.lstat(t,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),r(a)):r(null,{toCwd:t,toDst:at.relative(n,t)})))}}function P0(t,e){let r;if(at.isAbsolute(t)){if(r=ur.existsSync(t),!r)throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}else{let n=at.dirname(e),i=at.join(n,t);if(r=ur.existsSync(i),r)return{toCwd:i,toDst:t};if(r=ur.existsSync(t),!r)throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:at.relative(n,t)}}}hc.exports={symlinkPaths:C0,symlinkPathsSync:P0}});var yc=y((Wb,gc)=>{"use strict";var mc=le();function D0(t,e,r){if(r=typeof e=="function"?e:r,e=typeof e=="function"?!1:e,e)return r(null,e);mc.lstat(t,(n,i)=>{if(n)return r(null,"file");e=i&&i.isDirectory()?"dir":"file",r(null,e)})}function O0(t,e){let r;if(e)return e;try{r=mc.lstatSync(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}gc.exports={symlinkType:D0,symlinkTypeSync:O0}});var Ec=y((Yb,xc)=>{"use strict";var I0=Ce().fromCallback,bc=require("path"),kt=le(),wc=Me(),A0=wc.mkdirs,R0=wc.mkdirsSync,_c=pc(),F0=_c.symlinkPaths,k0=_c.symlinkPathsSync,Sc=yc(),T0=Sc.symlinkType,M0=Sc.symlinkTypeSync,vc=st().pathExists;function q0(t,e,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,vc(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,T0(a.toCwd,r,(c,d)=>{if(c)return n(c);let u=bc.dirname(e);vc(u,(p,g)=>{if(p)return n(p);if(g)return kt.symlink(t,e,d,n);A0(u,m=>{if(m)return n(m);kt.symlink(t,e,d,n)})})})})})}function N0(t,e,r){if(kt.existsSync(e))return;let i=k0(t,e);t=i.toDst,r=M0(i.toCwd,r);let s=bc.dirname(e);return kt.existsSync(s)||R0(s),kt.symlinkSync(t,e,r)}xc.exports={createSymlink:I0(q0),createSymlinkSync:N0}});var Pc=y((Vb,Cc)=>{"use strict";var Jr=ac(),zr=dc(),Wr=Ec();Cc.exports={createFile:Jr.createFile,createFileSync:Jr.createFileSync,ensureFile:Jr.createFile,ensureFileSync:Jr.createFileSync,createLink:zr.createLink,createLinkSync:zr.createLinkSync,ensureLink:zr.createLink,ensureLinkSync:zr.createLinkSync,createSymlink:Wr.createSymlink,createSymlinkSync:Wr.createSymlinkSync,ensureSymlink:Wr.createSymlink,ensureSymlinkSync:Wr.createSymlinkSync}});var Yr=y((Kb,Dc)=>{function j0(t,{EOL:e=`
8
+ `,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let s=r?e:"";return JSON.stringify(t,n,i).replace(/\n/g,e)+s}function L0(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t.replace(/^\uFEFF/,"")}Dc.exports={stringify:j0,stripBom:L0}});var Rc=y((Qb,Ac)=>{var Tt;try{Tt=le()}catch{Tt=require("fs")}var Vr=Ce(),{stringify:Oc,stripBom:Ic}=Yr();async function $0(t,e={}){typeof e=="string"&&(e={encoding:e});let r=e.fs||Tt,n="throws"in e?e.throws:!0,i=await Vr.fromCallback(r.readFile)(t,e);i=Ic(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 B0=Vr.fromPromise($0);function U0(t,e={}){typeof e=="string"&&(e={encoding:e});let r=e.fs||Tt,n="throws"in e?e.throws:!0;try{let i=r.readFileSync(t,e);return i=Ic(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||Tt,i=Oc(e,r);await Vr.fromCallback(n.writeFile)(t,i,r)}var G0=Vr.fromPromise(X0);function H0(t,e,r={}){let n=r.fs||Tt,i=Oc(e,r);return n.writeFileSync(t,i,r)}var J0={readFile:B0,readFileSync:U0,writeFile:G0,writeFileSync:H0};Ac.exports=J0});var kc=y((Zb,Fc)=>{"use strict";var Kr=Rc();Fc.exports={readJson:Kr.readFile,readJsonSync:Kr.readFileSync,writeJson:Kr.writeFile,writeJsonSync:Kr.writeFileSync}});var Qr=y((e2,qc)=>{"use strict";var z0=Ce().fromCallback,lr=le(),Tc=require("path"),Mc=Me(),W0=st().pathExists;function Y0(t,e,r,n){typeof r=="function"&&(n=r,r="utf8");let i=Tc.dirname(t);W0(i,(s,o)=>{if(s)return n(s);if(o)return lr.writeFile(t,e,r,n);Mc.mkdirs(i,a=>{if(a)return n(a);lr.writeFile(t,e,r,n)})})}function V0(t,...e){let r=Tc.dirname(t);if(lr.existsSync(r))return lr.writeFileSync(t,...e);Mc.mkdirsSync(r),lr.writeFileSync(t,...e)}qc.exports={outputFile:z0(Y0),outputFileSync:V0}});var jc=y((t2,Nc)=>{"use strict";var{stringify:K0}=Yr(),{outputFile:Q0}=Qr();async function Z0(t,e,r={}){let n=K0(e,r);await Q0(t,n,r)}Nc.exports=Z0});var $c=y((r2,Lc)=>{"use strict";var{stringify:em}=Yr(),{outputFileSync:tm}=Qr();function rm(t,e,r){let n=em(e,r);tm(t,n,r)}Lc.exports=rm});var Uc=y((n2,Bc)=>{"use strict";var nm=Ce().fromPromise,ve=kc();ve.outputJson=nm(jc());ve.outputJsonSync=$c();ve.outputJSON=ve.outputJson;ve.outputJSONSync=ve.outputJsonSync;ve.writeJSON=ve.writeJson;ve.writeJSONSync=ve.writeJsonSync;ve.readJSON=ve.readJson;ve.readJSONSync=ve.readJsonSync;Bc.exports=ve});var Wc=y((i2,zc)=>{"use strict";var Hc=le(),im=require("path"),sm=xi().copySync,Jc=cr().removeSync,om=Me().mkdirpSync,Xc=rr();function am(t,e,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i}=Xc.checkPathsSync(t,e,"move");return Xc.checkParentPathsSync(t,i,e,"move"),om(im.dirname(e)),cm(t,e,n)}function cm(t,e,r){if(r)return Jc(e),Gc(t,e,r);if(Hc.existsSync(e))throw new Error("dest already exists.");return Gc(t,e,r)}function Gc(t,e,r){try{Hc.renameSync(t,e)}catch(n){if(n.code!=="EXDEV")throw n;return um(t,e,r)}}function um(t,e,r){return sm(t,e,{overwrite:r,errorOnExist:!0}),Jc(t)}zc.exports=am});var Vc=y((s2,Yc)=>{"use strict";Yc.exports={moveSync:Wc()}});var tu=y((o2,eu)=>{"use strict";var lm=le(),fm=require("path"),dm=Ci().copy,Zc=cr().remove,hm=Me().mkdirp,pm=st().pathExists,Kc=rr();function mm(t,e,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;Kc.checkPaths(t,e,"move",(s,o)=>{if(s)return n(s);let{srcStat:a}=o;Kc.checkParentPaths(t,a,e,"move",c=>{if(c)return n(c);hm(fm.dirname(e),d=>d?n(d):gm(t,e,i,n))})})}function gm(t,e,r,n){if(r)return Zc(e,i=>i?n(i):Qc(t,e,r,n));pm(e,(i,s)=>i?n(i):s?n(new Error("dest already exists.")):Qc(t,e,r,n))}function Qc(t,e,r,n){lm.rename(t,e,i=>i?i.code!=="EXDEV"?n(i):ym(t,e,r,n):n())}function ym(t,e,r,n){dm(t,e,{overwrite:r,errorOnExist:!0},s=>s?n(s):Zc(t,n))}eu.exports=mm});var nu=y((a2,ru)=>{"use strict";var vm=Ce().fromCallback;ru.exports={move:vm(tu())}});var vt=y((c2,Di)=>{"use strict";Di.exports={...tr(),...xi(),...Ci(),...nc(),...Pc(),...Uc(),...Me(),...Vc(),...nu(),...Qr(),...st(),...cr()};var iu=require("fs");Object.getOwnPropertyDescriptor(iu,"promises")&&Object.defineProperty(Di.exports,"promises",{get(){return iu.promises}})});var ou=y((u2,su)=>{"use strict";var bm=/[|\\{}()[\]^$+*?.]/g;su.exports=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(bm,"\\$&")}});var cu=y((l2,au)=>{"use strict";au.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 Oi=y((f2,du)=>{var bt=cu(),fu={};for(Zr in bt)bt.hasOwnProperty(Zr)&&(fu[bt[Zr]]=Zr);var Zr,E=du.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(be in E)if(E.hasOwnProperty(be)){if(!("channels"in E[be]))throw new Error("missing channels property: "+be);if(!("labels"in E[be]))throw new Error("missing channel labels property: "+be);if(E[be].labels.length!==E[be].channels)throw new Error("channel and label counts mismatch: "+be);uu=E[be].channels,lu=E[be].labels,delete E[be].channels,delete E[be].labels,Object.defineProperty(E[be],"channels",{value:uu}),Object.defineProperty(E[be],"labels",{value:lu})}var uu,lu,be;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,c,d;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),d=(i+s)/2,s===i?c=0:d<=.5?c=o/(s+i):c=o/(2-s-i),[a,c*100,d*100]};E.rgb.hsv=function(t){var e,r,n,i,s,o=t[0]/255,a=t[1]/255,c=t[2]/255,d=Math.max(o,a,c),u=d-Math.min(o,a,c),p=function(g){return(d-g)/6/u+1/2};return u===0?i=s=0:(s=u/d,e=p(o),r=p(a),n=p(c),o===d?i=n-r:a===d?i=1/3+e-n:c===d&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,d*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 wm(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=fu[t];if(e)return e;var r=1/0,n;for(var i in bt)if(bt.hasOwnProperty(i)){var s=bt[i],o=wm(t,s);o<r&&(r=o,n=i)}return n};E.keyword.rgb=function(t){return bt[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,c;if(r===0)return c=n*255,[c,c,c];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,a=[0,0,0];for(var d=0;d<3;d++)o=e+1/3*-(d-1),o<0&&o++,o>1&&o--,6*o<1?c=i+(s-i)*6*o:2*o<1?c=s:3*o<2?c=i+(s-i)*(2/3-o)*6:c=i,a[d]=c*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),c=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,c,o];case 1:return[a,n,o];case 2:return[o,n,c];case 3:return[o,a,n];case 4:return[c,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,c;i>1&&(r/=i,n/=i),s=Math.floor(6*e),o=1-n,a=6*e-s,s&1&&(a=1-a),c=r+a*(o-r);var d,u,p;switch(s){default:case 6:case 0:d=o,u=c,p=r;break;case 1:d=c,u=o,p=r;break;case 2:d=r,u=o,p=c;break;case 3:d=r,u=c,p=o;break;case 4:d=c,u=r,p=o;break;case 5:d=o,u=r,p=c;break}return[d*255,u*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),c=Math.pow(i,3),d=Math.pow(o,3);return s=a>.008856?a:(s-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,o=d>.008856?d:(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,c;return o<1?a=s/(1-o):a=0,o<=0?c=0:i===e?c=(r-n)/o%6:i===r?c=2+(n-e)/o:c=4+(e-r)/o+4,c/=6,c%=1,[c*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,c=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 c=(1-r)*n,[(r*i[0]+c)*255,(r*i[1]+c)*255,(r*i[2]+c)*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 pu=y((d2,hu)=>{var en=Oi();function _m(){for(var t={},e=Object.keys(en),r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function Sm(t){var e=_m(),r=[t];for(e[t].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(en[n]),s=i.length,o=0;o<s;o++){var a=i[o],c=e[a];c.distance===-1&&(c.distance=e[n].distance+1,c.parent=n,r.unshift(a))}return e}function xm(t,e){return function(r){return e(t(r))}}function Em(t,e){for(var r=[e[t].parent,t],n=en[e[t].parent][t],i=e[t].parent;e[i].parent;)r.unshift(e[i].parent),n=xm(en[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}hu.exports=function(t){for(var e=Sm(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]=Em(o,e))}return r}});var gu=y((h2,mu)=>{var Ii=Oi(),Cm=pu(),Mt={},Pm=Object.keys(Ii);function Dm(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 Om(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}Pm.forEach(function(t){Mt[t]={},Object.defineProperty(Mt[t],"channels",{value:Ii[t].channels}),Object.defineProperty(Mt[t],"labels",{value:Ii[t].labels});var e=Cm(t),r=Object.keys(e);r.forEach(function(n){var i=e[n];Mt[t][n]=Om(i),Mt[t][n].raw=Dm(i)})});mu.exports=Mt});var vu=y((p2,yu)=>{"use strict";var qt=gu(),tn=(t,e)=>function(){return`\x1B[${t.apply(qt,arguments)+e}m`},rn=(t,e)=>function(){let r=t.apply(qt,arguments);return`\x1B[${38+e};5;${r}m`},nn=(t,e)=>function(){let r=t.apply(qt,arguments);return`\x1B[${38+e};2;${r[0]};${r[1]};${r[2]}m`};function Im(){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:tn(r,0)},e.color.ansi256={ansi256:rn(r,0)},e.color.ansi16m={rgb:nn(n,0)},e.bgColor.ansi={ansi:tn(r,10)},e.bgColor.ansi256={ansi256:rn(r,10)},e.bgColor.ansi16m={rgb:nn(n,10)};for(let i of Object.keys(qt)){if(typeof qt[i]!="object")continue;let s=qt[i];i==="ansi16"&&(i="ansi"),"ansi16"in s&&(e.color.ansi[i]=tn(s.ansi16,0),e.bgColor.ansi[i]=tn(s.ansi16,10)),"ansi256"in s&&(e.color.ansi256[i]=rn(s.ansi256,0),e.bgColor.ansi256[i]=rn(s.ansi256,10)),"rgb"in s&&(e.color.ansi16m[i]=nn(s.rgb,0),e.bgColor.ansi16m[i]=nn(s.rgb,10))}return e}Object.defineProperty(yu,"exports",{enumerable:!0,get:Im})});var wu=y((m2,bu)=>{"use strict";bu.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 Su=y((g2,_u)=>{"use strict";var Am=require("os"),qe=wu(),de=process.env,Nt;qe("no-color")||qe("no-colors")||qe("color=false")?Nt=!1:(qe("color")||qe("colors")||qe("color=true")||qe("color=always"))&&(Nt=!0);"FORCE_COLOR"in de&&(Nt=de.FORCE_COLOR.length===0||parseInt(de.FORCE_COLOR,10)!==0);function Rm(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Fm(t){if(Nt===!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&&Nt!==!0)return 0;let e=Nt?1:0;if(process.platform==="win32"){let r=Am.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 de)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in de)||de.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in de)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(de.TEAMCITY_VERSION)?1:0;if(de.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in de){let r=parseInt((de.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(de.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(de.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(de.TERM)||"COLORTERM"in de?1:(de.TERM==="dumb",e)}function Ai(t){let e=Fm(t);return Rm(e)}_u.exports={supportsColor:Ai,stdout:Ai(process.stdout),stderr:Ai(process.stderr)}});var Du=y((y2,Pu)=>{"use strict";var km=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,xu=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Tm=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Mm=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,qm=new Map([["n",`
9
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Cu(t){return t[0]==="u"&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):qm.get(t)||t}function Nm(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(Tm))r.push(i[2].replace(Mm,(o,a,c)=>a?Cu(a):c));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`);return r}function jm(t){xu.lastIndex=0;let e=[],r;for(;(r=xu.exec(t))!==null;){let n=r[1];if(r[2]){let i=Nm(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function Eu(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}Pu.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(km,(s,o,a,c,d,u)=>{if(o)i.push(Cu(o));else if(c){let p=i.join("");i=[],n.push(r.length===0?p:Eu(t,r)(p)),r.push({inverse:a,styles:jm(c)})}else if(d){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Eu(t,r)(i.join(""))),i=[],r.pop()}else i.push(u)}),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 on=y((v2,dr)=>{"use strict";var Fi=ou(),Q=vu(),Ri=Su().stdout,Lm=Du(),Iu=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),Au=["ansi","ansi","ansi256","ansi16m"],Ru=new Set(["gray"]),jt=Object.create(null);function Ou(t,e){e=e||{};let r=Ri?Ri.level:0;t.level=e.level===void 0?r:e.level,t.enabled="enabled"in e?e.enabled:t.level>0}function fr(t){if(!this||!(this instanceof fr)||this.template){let e={};return Ou(e,t),e.template=function(){let r=[].slice.call(arguments);return Um.apply(null,[e.template].concat(r))},Object.setPrototypeOf(e,fr.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=fr,e.template}Ou(this,t)}Iu&&(Q.blue.open="\x1B[94m");for(let t of Object.keys(Q))Q[t].closeRe=new RegExp(Fi(Q[t].close),"g"),jt[t]={get(){let e=Q[t];return sn.call(this,this._styles?this._styles.concat(e):[e],this._empty,t)}};jt.visible={get(){return sn.call(this,this._styles||[],!0,"visible")}};Q.color.closeRe=new RegExp(Fi(Q.color.close),"g");for(let t of Object.keys(Q.color.ansi))Ru.has(t)||(jt[t]={get(){let e=this.level;return function(){let n={open:Q.color[Au[e]][t].apply(null,arguments),close:Q.color.close,closeRe:Q.color.closeRe};return sn.call(this,this._styles?this._styles.concat(n):[n],this._empty,t)}}});Q.bgColor.closeRe=new RegExp(Fi(Q.bgColor.close),"g");for(let t of Object.keys(Q.bgColor.ansi)){if(Ru.has(t))continue;let e="bg"+t[0].toUpperCase()+t.slice(1);jt[e]={get(){let r=this.level;return function(){let i={open:Q.bgColor[Au[r]][t].apply(null,arguments),close:Q.bgColor.close,closeRe:Q.bgColor.closeRe};return sn.call(this,this._styles?this._styles.concat(i):[i],this._empty,t)}}}}var $m=Object.defineProperties(()=>{},jt);function sn(t,e,r){let n=function(){return Bm.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__=$m,n}function Bm(){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=Q.dim.open;Iu&&this.hasGrey&&(Q.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 Q.dim.open=n,r}function Um(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 Lm(t,n.join(""))}Object.defineProperties(fr.prototype,jt);dr.exports=fr();dr.exports.supportsColor=Ri;dr.exports.default=dr.exports});var ku=y((b2,Fu)=>{"use strict";Fu.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 ki=y((w2,Mu)=>{var hr=ku(),Tu={};for(let t of Object.keys(hr))Tu[hr[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"]}};Mu.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,c;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 d=(i+s)/2;return s===i?c=0:d<=.5?c=o/(s+i):c=o/(2-s-i),[a,c*100,d*100]};C.rgb.hsv=function(t){let e,r,n,i,s,o=t[0]/255,a=t[1]/255,c=t[2]/255,d=Math.max(o,a,c),u=d-Math.min(o,a,c),p=function(g){return(d-g)/6/u+1/2};return u===0?(i=0,s=0):(s=u/d,e=p(o),r=p(a),n=p(c),o===d?i=n-r:a===d?i=1/3+e-n:c===d&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,d*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 Xm(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=Tu[t];if(e)return e;let r=1/0,n;for(let i of Object.keys(hr)){let s=hr[i],o=Xm(t,s);o<r&&(r=o,n=i)}return n};C.keyword.rgb=function(t){return hr[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,c=[0,0,0];for(let d=0;d<3;d++)s=e+1/3*-(d-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,c[d]=o*255;return c};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),c=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,c,o];case 1:return[a,n,o];case 2:return[o,n,c];case 3:return[o,a,n];case 4:return[c,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 c=r+s*(a-r),d,u,p;switch(o){default:case 6:case 0:d=a,u=c,p=r;break;case 1:d=c,u=a,p=r;break;case 2:d=r,u=a,p=c;break;case 3:d=r,u=c,p=a;break;case 4:d=c,u=r,p=a;break;case 5:d=a,u=r,p=c;break}return[d*255,u*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,c=i**3,d=o**3;return s=a>.008856?a:(s-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,o=d>.008856?d:(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,c;return o<1?a=s/(1-o):a=0,o<=0?c=0:i===e?c=(r-n)/o%6:i===r?c=2+(n-e)/o:c=4+(e-r)/o,c/=6,c%=1,[c*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,c=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 c=(1-r)*n,[(r*i[0]+c)*255,(r*i[1]+c)*255,(r*i[2]+c)*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 Nu=y((_2,qu)=>{var an=ki();function Gm(){let t={},e=Object.keys(an);for(let r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function Hm(t){let e=Gm(),r=[t];for(e[t].distance=0;r.length;){let n=r.pop(),i=Object.keys(an[n]);for(let s=i.length,o=0;o<s;o++){let a=i[o],c=e[a];c.distance===-1&&(c.distance=e[n].distance+1,c.parent=n,r.unshift(a))}}return e}function Jm(t,e){return function(r){return e(t(r))}}function zm(t,e){let r=[e[t].parent,t],n=an[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)r.unshift(e[i].parent),n=Jm(an[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}qu.exports=function(t){let e=Hm(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]=zm(o,e))}return r}});var Lu=y((S2,ju)=>{var Ti=ki(),Wm=Nu(),Lt={},Ym=Object.keys(Ti);function Vm(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 Km(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}Ym.forEach(t=>{Lt[t]={},Object.defineProperty(Lt[t],"channels",{value:Ti[t].channels}),Object.defineProperty(Lt[t],"labels",{value:Ti[t].labels});let e=Wm(t);Object.keys(e).forEach(n=>{let i=e[n];Lt[t][n]=Km(i),Lt[t][n].raw=Vm(i)})});ju.exports=Lt});var Hu=y((x2,Gu)=>{"use strict";var $u=(t,e)=>(...r)=>`\x1B[${t(...r)+e}m`,Bu=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};5;${n}m`},Uu=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};2;${n[0]};${n[1]};${n[2]}m`},cn=t=>t,Xu=(t,e,r)=>[t,e,r],$t=(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,Bt=(t,e,r,n)=>{Mi===void 0&&(Mi=Lu());let i=n?10:0,s={};for(let[o,a]of Object.entries(Mi)){let c=o==="ansi16"?"ansi":o;o===e?s[c]=t(r,i):typeof a=="object"&&(s[c]=t(a[e],i))}return s};function Qm(){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",$t(e.color,"ansi",()=>Bt($u,"ansi16",cn,!1)),$t(e.color,"ansi256",()=>Bt(Bu,"ansi256",cn,!1)),$t(e.color,"ansi16m",()=>Bt(Uu,"rgb",Xu,!1)),$t(e.bgColor,"ansi",()=>Bt($u,"ansi16",cn,!0)),$t(e.bgColor,"ansi256",()=>Bt(Bu,"ansi256",cn,!0)),$t(e.bgColor,"ansi16m",()=>Bt(Uu,"rgb",Xu,!0)),e}Object.defineProperty(Gu,"exports",{enumerable:!0,get:Qm})});var zu=y((E2,Ju)=>{"use strict";Ju.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 ji=y((C2,Yu)=>{"use strict";var Zm=require("os"),Wu=require("tty"),ke=zu(),{env:ee}=process,ct;ke("no-color")||ke("no-colors")||ke("color=false")||ke("color=never")?ct=0:(ke("color")||ke("colors")||ke("color=true")||ke("color=always"))&&(ct=1);"FORCE_COLOR"in ee&&(ee.FORCE_COLOR==="true"?ct=1:ee.FORCE_COLOR==="false"?ct=0:ct=ee.FORCE_COLOR.length===0?1:Math.min(parseInt(ee.FORCE_COLOR,10),3));function qi(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Ni(t,e){if(ct===0)return 0;if(ke("color=16m")||ke("color=full")||ke("color=truecolor"))return 3;if(ke("color=256"))return 2;if(t&&!e&&ct===void 0)return 0;let r=ct||0;if(ee.TERM==="dumb")return r;if(process.platform==="win32"){let n=Zm.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in ee)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in ee)||ee.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in ee)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ee.TEAMCITY_VERSION)?1:0;if(ee.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in ee){let n=parseInt((ee.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ee.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ee.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ee.TERM)||"COLORTERM"in ee?1:r}function eg(t){let e=Ni(t,t&&t.isTTY);return qi(e)}Yu.exports={supportsColor:eg,stdout:qi(Ni(!0,Wu.isatty(1))),stderr:qi(Ni(!0,Wu.isatty(2)))}});var Ku=y((P2,Vu)=>{"use strict";var tg=(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},rg=(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
10
  `:`
11
11
  `)+r,i=n+1,n=t.indexOf(`
12
- `,i)}while(n!==-1);return s+=t.substr(i),s};Ku.exports={stringReplaceAll:ig,stringEncaseCRLFWithFirstIndex:sg}});var nl=y((q2,rl)=>{"use strict";var og=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Zu=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,ag=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,cg=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,ug=new Map([["n",`
13
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function tl(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)):ug.get(t)||t}function lg(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(ag))r.push(i[2].replace(cg,(a,c,d)=>c?tl(c):d));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`)}return r}function fg(t){Zu.lastIndex=0;let e=[],r;for(;(r=Zu.exec(t))!==null;){let n=r[1];if(r[2]){let i=lg(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function el(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}rl.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(og,(s,o,a,c,d,u)=>{if(o)i.push(tl(o));else if(c){let p=i.join("");i=[],n.push(r.length===0?p:el(t,r)(p)),r.push({inverse:a,styles:fg(c)})}else if(d){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(el(t,r)(i.join(""))),i=[],r.pop()}else i.push(u)}),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 ll=y((N2,ul)=>{"use strict";var mr=Ju(),{stdout:Bi,stderr:Ui}=ji(),{stringReplaceAll:dg,stringEncaseCRLFWithFirstIndex:hg}=Qu(),{isArray:ln}=Array,sl=["ansi","ansi","ansi256","ansi16m"],Xt=Object.create(null),pg=(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=Bi?Bi.level:0;t.level=e.level===void 0?r:e.level},Xi=class{constructor(e){return ol(e)}},ol=t=>{let e={};return pg(e,t),e.template=(...r)=>cl(e.template,...r),Object.setPrototypeOf(e,fn.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 fn(t){return ol(t)}for(let[t,e]of Object.entries(mr))Xt[t]={get(){let r=dn(this,Gi(e.open,e.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:r}),r}};Xt.visible={get(){let t=dn(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:t}),t}};var al=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let t of al)Xt[t]={get(){let{level:e}=this;return function(...r){let n=Gi(mr.color[sl[e]][t](...r),mr.color.close,this._styler);return dn(this,n,this._isEmpty)}}};for(let t of al){let e="bg"+t[0].toUpperCase()+t.slice(1);Xt[e]={get(){let{level:r}=this;return function(...n){let i=Gi(mr.bgColor[sl[r]][t](...n),mr.bgColor.close,this._styler);return dn(this,i,this._isEmpty)}}}}var mg=Object.defineProperties(()=>{},{...Xt,level:{enumerable:!0,get(){return this._generator.level},set(t){this._generator.level=t}}}),Gi=(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}},dn=(t,e,r)=>{let n=(...i)=>ln(i[0])&&ln(i[0].raw)?il(n,cl(n,...i)):il(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,mg),n._generator=t,n._styler=e,n._isEmpty=r,n},il=(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=dg(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
14
- `);return s!==-1&&(e=hg(e,i,n,s)),n+e+i},$i,cl=(t,...e)=>{let[r]=e;if(!ln(r)||!ln(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 $i===void 0&&($i=nl()),$i(t,i.join(""))};Object.defineProperties(fn.prototype,Xt);var hn=fn();hn.supportsColor=Bi;hn.stderr=fn({level:Ui?Ui.level:0});hn.stderr.supportsColor=Ui;ul.exports=hn});var fl=y((Hi,Ji)=>{(function(t,e){typeof Hi=="object"&&typeof Ji<"u"?Ji.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self,t.tinycolor=e())})(Hi,function(){"use strict";function t(l){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},t(l)}var e=/^\s+/,r=/\s+$/;function n(l,h){if(l=l||"",h=h||{},l instanceof n)return l;if(!(this instanceof n))return new n(l,h);var f=i(l);this._originalInput=l,this._r=f.r,this._g=f.g,this._b=f.b,this._a=f.a,this._roundA=Math.round(100*this._a)/100,this._format=h.format||f.format,this._gradientType=h.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=f.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 h=this.toRgb();return(h.r*299+h.g*587+h.b*114)/1e3},getLuminance:function(){var h=this.toRgb(),f,v,_,w,N,U;return f=h.r/255,v=h.g/255,_=h.b/255,f<=.03928?w=f/12.92:w=Math.pow((f+.055)/1.055,2.4),v<=.03928?N=v/12.92:N=Math.pow((v+.055)/1.055,2.4),_<=.03928?U=_/12.92:U=Math.pow((_+.055)/1.055,2.4),.2126*w+.7152*N+.0722*U},setAlpha:function(h){return this._a=J(h),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var h=c(this._r,this._g,this._b);return{h:h.h*360,s:h.s,v:h.v,a:this._a}},toHsvString:function(){var h=c(this._r,this._g,this._b),f=Math.round(h.h*360),v=Math.round(h.s*100),_=Math.round(h.v*100);return this._a==1?"hsv("+f+", "+v+"%, "+_+"%)":"hsva("+f+", "+v+"%, "+_+"%, "+this._roundA+")"},toHsl:function(){var h=o(this._r,this._g,this._b);return{h:h.h*360,s:h.s,l:h.l,a:this._a}},toHslString:function(){var h=o(this._r,this._g,this._b),f=Math.round(h.h*360),v=Math.round(h.s*100),_=Math.round(h.l*100);return this._a==1?"hsl("+f+", "+v+"%, "+_+"%)":"hsla("+f+", "+v+"%, "+_+"%, "+this._roundA+")"},toHex:function(h){return u(this._r,this._g,this._b,h)},toHexString:function(h){return"#"+this.toHex(h)},toHex8:function(h){return p(this._r,this._g,this._b,this._a,h)},toHex8String:function(h){return"#"+this.toHex8(h)},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(I(this._r,255)*100)+"%",g:Math.round(I(this._g,255)*100)+"%",b:Math.round(I(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(I(this._r,255)*100)+"%, "+Math.round(I(this._g,255)*100)+"%, "+Math.round(I(this._b,255)*100)+"%)":"rgba("+Math.round(I(this._r,255)*100)+"%, "+Math.round(I(this._g,255)*100)+"%, "+Math.round(I(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:q[u(this._r,this._g,this._b,!0)]||!1},toFilter:function(h){var f="#"+g(this._r,this._g,this._b,this._a),v=f,_=this._gradientType?"GradientType = 1, ":"";if(h){var w=n(h);v="#"+g(w._r,w._g,w._b,w._a)}return"progid:DXImageTransform.Microsoft.gradient("+_+"startColorstr="+f+",endColorstr="+v+")"},toString:function(h){var f=!!h;h=h||this._format;var v=!1,_=this._a<1&&this._a>=0,w=!f&&_&&(h==="hex"||h==="hex6"||h==="hex3"||h==="hex4"||h==="hex8"||h==="name");return w?h==="name"&&this._a===0?this.toName():this.toRgbString():(h==="rgb"&&(v=this.toRgbString()),h==="prgb"&&(v=this.toPercentageRgbString()),(h==="hex"||h==="hex6")&&(v=this.toHexString()),h==="hex3"&&(v=this.toHexString(!0)),h==="hex4"&&(v=this.toHex8String(!0)),h==="hex8"&&(v=this.toHex8String()),h==="name"&&(v=this.toName()),h==="hsl"&&(v=this.toHslString()),h==="hsv"&&(v=this.toHsvString()),v||this.toHexString())},clone:function(){return n(this.toString())},_applyModification:function(h,f){var v=h.apply(null,[this].concat([].slice.call(f)));return this._r=v._r,this._g=v._g,this._b=v._b,this.setAlpha(v._a),this},lighten:function(){return this._applyModification(x,arguments)},brighten:function(){return this._applyModification(R,arguments)},darken:function(){return this._applyModification(L,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(j,arguments)},_applyCombination:function(h,f){return h.apply(null,[this].concat([].slice.call(f)))},analogous:function(){return this._applyCombination(xe,arguments)},complement:function(){return this._applyCombination($,arguments)},monochromatic:function(){return this._applyCombination(V,arguments)},splitcomplement:function(){return this._applyCombination(ne,arguments)},triad:function(){return this._applyCombination(H,[3])},tetrad:function(){return this._applyCombination(H,[4])}},n.fromRatio=function(l,h){if(t(l)=="object"){var f={};for(var v in l)l.hasOwnProperty(v)&&(v==="a"?f[v]=l[v]:f[v]=F(l[v]));l=f}return n(l,h)};function i(l){var h={r:0,g:0,b:0},f=1,v=null,_=null,w=null,N=!1,U=!1;return typeof l=="string"&&(l=tt(l)),t(l)=="object"&&(ue(l.r)&&ue(l.g)&&ue(l.b)?(h=s(l.r,l.g,l.b),N=!0,U=String(l.r).substr(-1)==="%"?"prgb":"rgb"):ue(l.h)&&ue(l.s)&&ue(l.v)?(v=F(l.s),_=F(l.v),h=d(l.h,v,_),N=!0,U="hsv"):ue(l.h)&&ue(l.s)&&ue(l.l)&&(v=F(l.s),w=F(l.l),h=a(l.h,v,w),N=!0,U="hsl"),l.hasOwnProperty("a")&&(f=l.a)),f=J(f),{ok:N,format:l.format||U,r:Math.min(255,Math.max(h.r,0)),g:Math.min(255,Math.max(h.g,0)),b:Math.min(255,Math.max(h.b,0)),a:f}}function s(l,h,f){return{r:I(l,255)*255,g:I(h,255)*255,b:I(f,255)*255}}function o(l,h,f){l=I(l,255),h=I(h,255),f=I(f,255);var v=Math.max(l,h,f),_=Math.min(l,h,f),w,N,U=(v+_)/2;if(v==_)w=N=0;else{var z=v-_;switch(N=U>.5?z/(2-v-_):z/(v+_),v){case l:w=(h-f)/z+(h<f?6:0);break;case h:w=(f-l)/z+2;break;case f:w=(l-h)/z+4;break}w/=6}return{h:w,s:N,l:U}}function a(l,h,f){var v,_,w;l=I(l,360),h=I(h,100),f=I(f,100);function N(ge,mt,Y){return Y<0&&(Y+=1),Y>1&&(Y-=1),Y<1/6?ge+(mt-ge)*6*Y:Y<1/2?mt:Y<2/3?ge+(mt-ge)*(2/3-Y)*6:ge}if(h===0)v=_=w=f;else{var U=f<.5?f*(1+h):f+h-f*h,z=2*f-U;v=N(z,U,l+1/3),_=N(z,U,l),w=N(z,U,l-1/3)}return{r:v*255,g:_*255,b:w*255}}function c(l,h,f){l=I(l,255),h=I(h,255),f=I(f,255);var v=Math.max(l,h,f),_=Math.min(l,h,f),w,N,U=v,z=v-_;if(N=v===0?0:z/v,v==_)w=0;else{switch(v){case l:w=(h-f)/z+(h<f?6:0);break;case h:w=(f-l)/z+2;break;case f:w=(l-h)/z+4;break}w/=6}return{h:w,s:N,v:U}}function d(l,h,f){l=I(l,360)*6,h=I(h,100),f=I(f,100);var v=Math.floor(l),_=l-v,w=f*(1-h),N=f*(1-_*h),U=f*(1-(1-_)*h),z=v%6,ge=[f,N,w,w,U,f][z],mt=[U,f,f,N,w,w][z],Y=[w,w,U,f,f,N][z];return{r:ge*255,g:mt*255,b:Y*255}}function u(l,h,f,v){var _=[P(Math.round(l).toString(16)),P(Math.round(h).toString(16)),P(Math.round(f).toString(16))];return v&&_[0].charAt(0)==_[0].charAt(1)&&_[1].charAt(0)==_[1].charAt(1)&&_[2].charAt(0)==_[2].charAt(1)?_[0].charAt(0)+_[1].charAt(0)+_[2].charAt(0):_.join("")}function p(l,h,f,v,_){var w=[P(Math.round(l).toString(16)),P(Math.round(h).toString(16)),P(Math.round(f).toString(16)),P(Ue(v))];return _&&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[3].charAt(0)==w[3].charAt(1)?w[0].charAt(0)+w[1].charAt(0)+w[2].charAt(0)+w[3].charAt(0):w.join("")}function g(l,h,f,v){var _=[P(Ue(v)),P(Math.round(l).toString(16)),P(Math.round(h).toString(16)),P(Math.round(f).toString(16))];return _.join("")}n.equals=function(l,h){return!l||!h?!1:n(l).toRgbString()==n(h).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function m(l,h){h=h===0?0:h||10;var f=n(l).toHsl();return f.s-=h/100,f.s=X(f.s),n(f)}function b(l,h){h=h===0?0:h||10;var f=n(l).toHsl();return f.s+=h/100,f.s=X(f.s),n(f)}function S(l){return n(l).desaturate(100)}function x(l,h){h=h===0?0:h||10;var f=n(l).toHsl();return f.l+=h/100,f.l=X(f.l),n(f)}function R(l,h){h=h===0?0:h||10;var f=n(l).toRgb();return f.r=Math.max(0,Math.min(255,f.r-Math.round(255*-(h/100)))),f.g=Math.max(0,Math.min(255,f.g-Math.round(255*-(h/100)))),f.b=Math.max(0,Math.min(255,f.b-Math.round(255*-(h/100)))),n(f)}function L(l,h){h=h===0?0:h||10;var f=n(l).toHsl();return f.l-=h/100,f.l=X(f.l),n(f)}function j(l,h){var f=n(l).toHsl(),v=(f.h+h)%360;return f.h=v<0?360+v:v,n(f)}function $(l){var h=n(l).toHsl();return h.h=(h.h+180)%360,n(h)}function H(l,h){if(isNaN(h)||h<=0)throw new Error("Argument to polyad must be a positive number");for(var f=n(l).toHsl(),v=[n(l)],_=360/h,w=1;w<h;w++)v.push(n({h:(f.h+w*_)%360,s:f.s,l:f.l}));return v}function ne(l){var h=n(l).toHsl(),f=h.h;return[n(l),n({h:(f+72)%360,s:h.s,l:h.l}),n({h:(f+216)%360,s:h.s,l:h.l})]}function xe(l,h,f){h=h||6,f=f||30;var v=n(l).toHsl(),_=360/f,w=[n(l)];for(v.h=(v.h-(_*h>>1)+720)%360;--h;)v.h=(v.h+_)%360,w.push(n(v));return w}function V(l,h){h=h||6;for(var f=n(l).toHsv(),v=f.h,_=f.s,w=f.v,N=[],U=1/h;h--;)N.push(n({h:v,s:_,v:w})),w=(w+U)%1;return N}n.mix=function(l,h,f){f=f===0?0:f||50;var v=n(l).toRgb(),_=n(h).toRgb(),w=f/100,N={r:(_.r-v.r)*w+v.r,g:(_.g-v.g)*w+v.g,b:(_.b-v.b)*w+v.b,a:(_.a-v.a)*w+v.a};return n(N)},n.readability=function(l,h){var f=n(l),v=n(h);return(Math.max(f.getLuminance(),v.getLuminance())+.05)/(Math.min(f.getLuminance(),v.getLuminance())+.05)},n.isReadable=function(l,h,f){var v=n.readability(l,h),_,w;switch(w=!1,_=Ee(f),_.level+_.size){case"AAsmall":case"AAAlarge":w=v>=4.5;break;case"AAlarge":w=v>=3;break;case"AAAsmall":w=v>=7;break}return w},n.mostReadable=function(l,h,f){var v=null,_=0,w,N,U,z;f=f||{},N=f.includeFallbackColors,U=f.level,z=f.size;for(var ge=0;ge<h.length;ge++)w=n.readability(l,h[ge]),w>_&&(_=w,v=n(h[ge]));return n.isReadable(l,v,{level:U,size:z})||!N?v:(f.includeFallbackColors=!1,n.mostReadable(l,["#fff","#000"],f))};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"},q=n.hexNames=T(D);function T(l){var h={};for(var f in l)l.hasOwnProperty(f)&&(h[l[f]]=f);return h}function J(l){return l=parseFloat(l),(isNaN(l)||l<0||l>1)&&(l=1),l}function I(l,h){B(l)&&(l="100%");var f=M(l);return l=Math.min(h,Math.max(0,parseFloat(l))),f&&(l=parseInt(l*h,10)/100),Math.abs(l-h)<1e-6?1:l%h/parseFloat(h)}function X(l){return Math.min(1,Math.max(0,l))}function O(l){return parseInt(l,16)}function B(l){return typeof l=="string"&&l.indexOf(".")!=-1&&parseFloat(l)===1}function M(l){return typeof l=="string"&&l.indexOf("%")!=-1}function P(l){return l.length==1?"0"+l:""+l}function F(l){return l<=1&&(l=l*100+"%"),l}function Ue(l){return Math.round(parseFloat(l)*255).toString(16)}function Xe(l){return O(l)/255}var ie=function(){var l="[-\\+]?\\d+%?",h="[-\\+]?\\d*\\.\\d+%?",f="(?:"+h+")|(?:"+l+")",v="[\\s|\\(]+("+f+")[,|\\s]+("+f+")[,|\\s]+("+f+")\\s*\\)?",_="[\\s|\\(]+("+f+")[,|\\s]+("+f+")[,|\\s]+("+f+")[,|\\s]+("+f+")\\s*\\)?";return{CSS_UNIT:new RegExp(f),rgb:new RegExp("rgb"+v),rgba:new RegExp("rgba"+_),hsl:new RegExp("hsl"+v),hsla:new RegExp("hsla"+_),hsv:new RegExp("hsv"+v),hsva:new RegExp("hsva"+_),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 ue(l){return!!ie.CSS_UNIT.exec(l)}function tt(l){l=l.replace(e,"").replace(r,"").toLowerCase();var h=!1;if(D[l])l=D[l],h=!0;else if(l=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var f;return(f=ie.rgb.exec(l))?{r:f[1],g:f[2],b:f[3]}:(f=ie.rgba.exec(l))?{r:f[1],g:f[2],b:f[3],a:f[4]}:(f=ie.hsl.exec(l))?{h:f[1],s:f[2],l:f[3]}:(f=ie.hsla.exec(l))?{h:f[1],s:f[2],l:f[3],a:f[4]}:(f=ie.hsv.exec(l))?{h:f[1],s:f[2],v:f[3]}:(f=ie.hsva.exec(l))?{h:f[1],s:f[2],v:f[3],a:f[4]}:(f=ie.hex8.exec(l))?{r:O(f[1]),g:O(f[2]),b:O(f[3]),a:Xe(f[4]),format:h?"name":"hex8"}:(f=ie.hex6.exec(l))?{r:O(f[1]),g:O(f[2]),b:O(f[3]),format:h?"name":"hex"}:(f=ie.hex4.exec(l))?{r:O(f[1]+""+f[1]),g:O(f[2]+""+f[2]),b:O(f[3]+""+f[3]),a:Xe(f[4]+""+f[4]),format:h?"name":"hex8"}:(f=ie.hex3.exec(l))?{r:O(f[1]+""+f[1]),g:O(f[2]+""+f[2]),b:O(f[3]+""+f[3]),format:h?"name":"hex"}:!1}function Ee(l){var h,f;return l=l||{level:"AA",size:"small"},h=(l.level||"AA").toUpperCase(),f=(l.size||"small").toLowerCase(),h!=="AA"&&h!=="AAA"&&(h="AA"),f!=="small"&&f!=="large"&&(f="small"),{level:h,size:f}}return n})});var vl=y((L2,yl)=>{var gr=fl(),ml={r:256,g:256,b:256,a:1},gl={h:360,s:1,v:1,a:1};function Wi(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 Yi(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 zi(t,e,r){let n=t.color.toRgb(),i=e.color.toRgb(),s=Wi(n,i,r),o=[t.color];for(let a=1;a<r;a++){let c=Yi(s,n,a,ml);o.push(gr(c))}return o}function dl(t,e,r,n){let i=t.color.toHsv(),s=e.color.toHsv();if(i.s===0||s.s===0)return zi(t,e,r);let o;if(typeof n=="boolean")o=n;else{let u=i.h<s.h&&s.h-i.h<180||i.h>s.h&&i.h-s.h>180;o=n==="long"&&u||n==="short"&&!u}let a=Wi(i,s,r),c=[t.color],d;i.h<=s.h&&!o||i.h>=s.h&&o?d=s.h-i.h:o?d=360-s.h+i.h:d=360-i.h+s.h,a.h=Math.pow(-1,o?1:0)*Math.abs(d)/r;for(let u=1;u<r;u++){let p=Yi(a,i,u,gl);c.push(gr(p))}return c}function hl(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 pl(t,e,r,n){if(e<0||e>1)throw new Error("Position must be between 0 and 1");let i,s;for(let c=0,d=t.length;c<d-1;c++)if(e>=t[c].pos&&e<t[c+1].pos){i=t[c],s=t[c+1];break}i||(i=s=t[t.length-1]);let o=Wi(i.color[r](),s.color[r](),(s.pos-i.pos)*100),a=Yi(o,i.color[r](),(e-i.pos)*100,n);return gr(a)}var Gt=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 c=o.pos!==void 0;if(r^c)throw new Error("Cannot mix positionned and not posionned color stops");if(c){let d=o.color!==void 0;if(!d&&(s||a===0||a===n-1))throw new Error("Cannot define two consecutive position-only stops");if(s=!d,o={color:d?gr(o.color):null,colorLess:!d,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:gr(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 Gt(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 Gt(e.concat(r.reverse()))}rgb(e){let r=hl(this.stops,e),n=[];this.stops.forEach((i,s)=>{i.colorLess&&(i.color=zi(this.stops[s-1],this.stops[s+1],2)[1])});for(let i=0,s=this.stops.length;i<s-1;i++){let o=zi(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=hl(this.stops,e),i=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=dl(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=dl(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 pl(this.stops,e,"toRgb",ml)}hsvAt(e){return pl(this.stops,e,"toHsv",gl)}};yl.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 Gt(t)}});var xl=y((j2,pn)=>{"use strict";var wl=ll(),gg=vl(),bl=/\s/g;function Vi(...t){let e=gg.apply(this,t),r=(n,i)=>yg(n?n.toString():"",e,i);return r.multiline=(n,i)=>vg(n?n.toString():"",e,i),r}var _l=(t,e,r)=>e.interpolation.toLowerCase()==="hsv"?t.hsv(r,e.hsvSpin.toLowerCase()):t.rgb(r);function yg(t,e,r){let n=Sl(r),i=Math.max(t.replace(bl,"").length,e.stops.length),s=_l(e,n,i),o="";for(let a of t)o+=a.match(bl)?a:wl.hex(s.shift().toHex())(a);return o}function vg(t,e,r){let n=Sl(r),i=t.split(`
15
- `),s=Math.max.apply(null,i.map(c=>c.length).concat([e.stops.length])),o=_l(e,n,s),a=[];for(let c of i){let d=o.slice(0),u="";for(let p of c)u+=wl.hex(d.shift().toHex())(p);a.push(u)}return a.join(`
16
- `)}function Sl(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 yr={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"}}};pn.exports=Vi;for(let t in yr)pn.exports[t]=e=>new Vi(yr[t].colors)(e,yr[t].options),pn.exports[t].multiline=e=>new Vi(yr[t].colors).multiline(e,yr[t].options)});var Cl=y(($2,El)=>{var Ki=class{constructor(e){this.value=e,this.next=void 0}},Qi=class{constructor(){this.clear()}enqueue(e){let r=new Ki(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}};El.exports=Qi});var Zi=y((B2,Pl)=>{"use strict";var bg=Cl(),wg=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 bg,r=0,n=()=>{r--,e.size>0&&e.dequeue()()},i=async(a,c,...d)=>{r++;let u=(async()=>a(...d))();c(u);try{await u}catch{}n()},s=(a,c,...d)=>{e.enqueue(i.bind(null,a,c,...d)),(async()=>(await Promise.resolve(),r<t&&e.size>0&&e.dequeue()()))()},o=(a,...c)=>new Promise(d=>{s(a,d,...c)});return Object.defineProperties(o,{activeCount:{get:()=>r},pendingCount:{get:()=>e.size},clearQueue:{value:()=>{e.clear()}}}),o};Pl.exports=wg});var Il=y((U2,Ol)=>{"use strict";var Dl=Zi(),mn=class extends Error{constructor(e){super(),this.value=e}},_g=async(t,e)=>e(await t),Sg=async t=>{let e=await Promise.all(t);if(e[1]===!0)throw new mn(e[0]);return!1},xg=async(t,e,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=Dl(r.concurrency),i=[...t].map(o=>[o,n(_g,o,e)]),s=Dl(r.preserveOrder?1:1/0);try{await Promise.all(i.map(o=>s(Sg,o)))}catch(o){if(o instanceof mn)return o.value;throw o}};Ol.exports=xg});var Ml=y((X2,es)=>{"use strict";var Al=require("path"),gn=require("fs"),{promisify:Rl}=require("util"),Eg=Il(),Cg=Rl(gn.stat),Pg=Rl(gn.lstat),Fl={directory:"isDirectory",file:"isFile"};function kl({type:t}){if(!(t in Fl))throw new Error(`Invalid type specified: ${t}`)}var Tl=(t,e)=>t===void 0||e[Fl[t]]();es.exports=async(t,e)=>{e={cwd:process.cwd(),type:"file",allowSymlinks:!0,...e},kl(e);let r=e.allowSymlinks?Cg:Pg;return Eg(t,async n=>{try{let i=await r(Al.resolve(e.cwd,n));return Tl(e.type,i)}catch{return!1}},e)};es.exports.sync=(t,e)=>{e={cwd:process.cwd(),allowSymlinks:!0,type:"file",...e},kl(e);let r=e.allowSymlinks?gn.statSync:gn.lstatSync;for(let n of t)try{let i=r(Al.resolve(e.cwd,n));if(Tl(e.type,i))return n}catch{}}});var Nl=y((G2,ts)=>{"use strict";var ql=require("fs"),{promisify:Dg}=require("util"),Og=Dg(ql.access);ts.exports=async t=>{try{return await Og(t),!0}catch{return!1}};ts.exports.sync=t=>{try{return ql.accessSync(t),!0}catch{return!1}}});var ns=y((H2,Ht)=>{"use strict";var ut=require("path"),yn=Ml(),Ll=Nl(),rs=Symbol("findUp.stop");Ht.exports=async(t,e={})=>{let r=ut.resolve(e.cwd||""),{root:n}=ut.parse(r),i=[].concat(t),s=async o=>{if(typeof t!="function")return yn(i,o);let a=await t(o.cwd);return typeof a=="string"?yn([a],o):a};for(;;){let o=await s({...e,cwd:r});if(o===rs)return;if(o)return ut.resolve(r,o);if(r===n)return;r=ut.dirname(r)}};Ht.exports.sync=(t,e={})=>{let r=ut.resolve(e.cwd||""),{root:n}=ut.parse(r),i=[].concat(t),s=o=>{if(typeof t!="function")return yn.sync(i,o);let a=t(o.cwd);return typeof a=="string"?yn.sync([a],o):a};for(;;){let o=s({...e,cwd:r});if(o===rs)return;if(o)return ut.resolve(r,o);if(r===n)return;r=ut.dirname(r)}};Ht.exports.exists=Ll;Ht.exports.sync.exists=Ll.sync;Ht.exports.stop=rs});var vn=y((J2,is)=>{"use strict";var jl=require("path"),$l=ns(),Ig=async t=>{let e=await $l("package.json",{cwd:t});return e&&jl.dirname(e)};is.exports=Ig;is.exports.sync=t=>{let e=$l.sync("package.json",{cwd:t});return e&&jl.dirname(e)}});function ft(t=""){return ys?ps.default.resolve(gs.default.sync(__dirname),"../../../",t):ps.default.resolve(gs.default.sync(__dirname),"../griddo-components",t)}function kg(){let t=ms.default.sync("jsconfig.json",{cwd:ft()});return ms.default.sync("tsconfig.json",{cwd:ft()})||t}function Tg(){let t=require(kg());return Object.keys(t?.compilerOptions?.paths).reduce((e,r)=>{let[n]=r.split("/"),[i]=t&&t.compilerOptions&&t.compilerOptions.paths&&t.compilerOptions.paths[r],[s]=i.split("/*"),o=ft(s);return{...e,[n]:o}},{"@griddo-instance":`${ft()}/src/index.js`})}var ps,ms,gs,ys,of,vs=zo(()=>{"use strict";ps=A(require("node:path")),ms=A(ns()),gs=A(vn()),ys=__dirname.includes("node_modules"),of=Tg()});var lf={};Wo(lf,{CXDir:()=>$g,default:()=>jg});var wt,En,af,cf,Mg,qg,Ng,Lg,uf,jg,$g,ff=zo(()=>{"use strict";wt=A(require("node:path")),En=A(vn());vs();af=En.default.sync(wt.default.resolve(__dirname,"../..")),cf=En.default.sync(__dirname),Mg=wt.default.resolve(En.default.sync(__dirname)),qg=wt.default.resolve(cf,"caches"),Ng=ft(),Lg=wt.default.join(af,"exports/sites"),uf={proDomain:"pro-",CXDir:{EXPORTS:"__exports",CACHE:"__caches",CX:"__cx",SSG:"__ssg",COMPONENTS:"__components",ROOT:"__root"},dirs:t=>({__caches:wt.default.join(qg,t||""),__components:Ng,__cx:cf,__exports:wt.default.join(Lg,t||""),__root:af,__ssg:Mg})},jg=uf,$g=uf.CXDir});var ws=y((lw,mf)=>{"use strict";mf.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 Se=y((fw,vf)=>{"use strict";var Xg=ws(),_t=Object.prototype.toString;function xs(t){return _t.call(t)==="[object Array]"}function _s(t){return typeof t>"u"}function Gg(t){return t!==null&&!_s(t)&&t.constructor!==null&&!_s(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function Hg(t){return _t.call(t)==="[object ArrayBuffer]"}function Jg(t){return typeof FormData<"u"&&t instanceof FormData}function zg(t){var e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function Wg(t){return typeof t=="string"}function Yg(t){return typeof t=="number"}function gf(t){return t!==null&&typeof t=="object"}function Cn(t){if(_t.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function Vg(t){return _t.call(t)==="[object Date]"}function Kg(t){return _t.call(t)==="[object File]"}function Qg(t){return _t.call(t)==="[object Blob]"}function yf(t){return _t.call(t)==="[object Function]"}function Zg(t){return gf(t)&&yf(t.pipe)}function ey(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}function ty(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function ry(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Es(t,e){if(!(t===null||typeof t>"u"))if(typeof t!="object"&&(t=[t]),xs(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 Ss(){var t={};function e(i,s){Cn(t[s])&&Cn(i)?t[s]=Ss(t[s],i):Cn(i)?t[s]=Ss({},i):xs(i)?t[s]=i.slice():t[s]=i}for(var r=0,n=arguments.length;r<n;r++)Es(arguments[r],e);return t}function ny(t,e,r){return Es(e,function(i,s){r&&typeof i=="function"?t[s]=Xg(i,r):t[s]=i}),t}function iy(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t}vf.exports={isArray:xs,isArrayBuffer:Hg,isBuffer:Gg,isFormData:Jg,isArrayBufferView:zg,isString:Wg,isNumber:Yg,isObject:gf,isPlainObject:Cn,isUndefined:_s,isDate:Vg,isFile:Kg,isBlob:Qg,isFunction:yf,isStream:Zg,isURLSearchParams:ey,isStandardBrowserEnv:ry,forEach:Es,merge:Ss,extend:ny,trim:ty,stripBOM:iy}});var Pn=y((dw,wf)=>{"use strict";var zt=Se();function bf(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}wf.exports=function(e,r,n){if(!r)return e;var i;if(n)i=n(r);else if(zt.isURLSearchParams(r))i=r.toString();else{var s=[];zt.forEach(r,function(c,d){c===null||typeof c>"u"||(zt.isArray(c)?d=d+"[]":c=[c],zt.forEach(c,function(p){zt.isDate(p)?p=p.toISOString():zt.isObject(p)&&(p=JSON.stringify(p)),s.push(bf(d)+"="+bf(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 Sf=y((hw,_f)=>{"use strict";var sy=Se();function Dn(){this.handlers=[]}Dn.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};Dn.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};Dn.prototype.forEach=function(e){sy.forEach(this.handlers,function(n){n!==null&&e(n)})};_f.exports=Dn});var Ef=y((pw,xf)=>{"use strict";var oy=Se();xf.exports=function(e,r){oy.forEach(e,function(i,s){s!==r&&s.toUpperCase()===r.toUpperCase()&&(e[r]=i,delete e[s])})}});var On=y((mw,Cf)=>{"use strict";Cf.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 In=y((gw,Pf)=>{"use strict";var ay=On();Pf.exports=function(e,r,n,i,s){var o=new Error(e);return ay(o,r,n,i,s)}});var Cs=y((yw,Df)=>{"use strict";var cy=In();Df.exports=function(e,r,n){var i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):r(cy("Request failed with status code "+n.status,n.config,null,n.request,n))}});var If=y((vw,Of)=>{"use strict";var An=Se();Of.exports=An.isStandardBrowserEnv()?function(){return{write:function(r,n,i,s,o,a){var c=[];c.push(r+"="+encodeURIComponent(n)),An.isNumber(i)&&c.push("expires="+new Date(i).toGMTString()),An.isString(s)&&c.push("path="+s),An.isString(o)&&c.push("domain="+o),a===!0&&c.push("secure"),document.cookie=c.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 Rf=y((bw,Af)=>{"use strict";Af.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}});var kf=y((ww,Ff)=>{"use strict";Ff.exports=function(e,r){return r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e}});var Ps=y((_w,Tf)=>{"use strict";var uy=Rf(),ly=kf();Tf.exports=function(e,r){return e&&!uy(r)?ly(e,r):r}});var qf=y((Sw,Mf)=>{"use strict";var Ds=Se(),fy=["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"];Mf.exports=function(e){var r={},n,i,s;return e&&Ds.forEach(e.split(`
17
- `),function(a){if(s=a.indexOf(":"),n=Ds.trim(a.substr(0,s)).toLowerCase(),i=Ds.trim(a.substr(s+1)),n){if(r[n]&&fy.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 jf=y((xw,Lf)=>{"use strict";var Nf=Se();Lf.exports=Nf.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=Nf.isString(o)?i(o):o;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}()});var Bf=y((Ew,$f)=>{"use strict";var Rn=Se(),dy=Cs(),hy=If(),py=Pn(),my=Ps(),gy=qf(),yy=jf(),Os=In();$f.exports=function(e){return new Promise(function(n,i){var s=e.data,o=e.headers,a=e.responseType;Rn.isFormData(s)&&delete o["Content-Type"];var c=new XMLHttpRequest;if(e.auth){var d=e.auth.username||"",u=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.Authorization="Basic "+btoa(d+":"+u)}var p=my(e.baseURL,e.url);c.open(e.method.toUpperCase(),py(p,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function g(){if(c){var b="getAllResponseHeaders"in c?gy(c.getAllResponseHeaders()):null,S=!a||a==="text"||a==="json"?c.responseText:c.response,x={data:S,status:c.status,statusText:c.statusText,headers:b,config:e,request:c};dy(n,i,x),c=null}}if("onloadend"in c?c.onloadend=g:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(g)},c.onabort=function(){c&&(i(Os("Request aborted",e,"ECONNABORTED",c)),c=null)},c.onerror=function(){i(Os("Network Error",e,null,c)),c=null},c.ontimeout=function(){var S="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(S=e.timeoutErrorMessage),i(Os(S,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},Rn.isStandardBrowserEnv()){var m=(e.withCredentials||yy(p))&&e.xsrfCookieName?hy.read(e.xsrfCookieName):void 0;m&&(o[e.xsrfHeaderName]=m)}"setRequestHeader"in c&&Rn.forEach(o,function(S,x){typeof s>"u"&&x.toLowerCase()==="content-type"?delete o[x]:c.setRequestHeader(x,S)}),Rn.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),a&&a!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",e.onDownloadProgress),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(S){c&&(c.abort(),i(S),c=null)}),s||(s=null),c.send(s)})}});var Xf=y((Cw,Uf)=>{var Wt=1e3,Yt=Wt*60,Vt=Yt*60,St=Vt*24,vy=St*7,by=St*365.25;Uf.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return wy(t);if(r==="number"&&isFinite(t))return e.long?Sy(t):_y(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function wy(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*by;case"weeks":case"week":case"w":return r*vy;case"days":case"day":case"d":return r*St;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Vt;case"minutes":case"minute":case"mins":case"min":case"m":return r*Yt;case"seconds":case"second":case"secs":case"sec":case"s":return r*Wt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function _y(t){var e=Math.abs(t);return e>=St?Math.round(t/St)+"d":e>=Vt?Math.round(t/Vt)+"h":e>=Yt?Math.round(t/Yt)+"m":e>=Wt?Math.round(t/Wt)+"s":t+"ms"}function Sy(t){var e=Math.abs(t);return e>=St?Fn(t,e,St,"day"):e>=Vt?Fn(t,e,Vt,"hour"):e>=Yt?Fn(t,e,Yt,"minute"):e>=Wt?Fn(t,e,Wt,"second"):t+" ms"}function Fn(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var Is=y((Pw,Gf)=>{function xy(t){r.debug=r,r.default=r,r.coerce=c,r.disable=s,r.enable=i,r.enabled=o,r.humanize=Xf(),r.destroy=d,Object.keys(t).forEach(u=>{r[u]=t[u]}),r.names=[],r.skips=[],r.formatters={};function e(u){let p=0;for(let g=0;g<u.length;g++)p=(p<<5)-p+u.charCodeAt(g),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=e;function r(u){let p,g=null,m,b;function S(...x){if(!S.enabled)return;let R=S,L=Number(new Date),j=L-(p||L);R.diff=j,R.prev=p,R.curr=L,p=L,x[0]=r.coerce(x[0]),typeof x[0]!="string"&&x.unshift("%O");let $=0;x[0]=x[0].replace(/%([a-zA-Z%])/g,(ne,xe)=>{if(ne==="%%")return"%";$++;let V=r.formatters[xe];if(typeof V=="function"){let D=x[$];ne=V.call(R,D),x.splice($,1),$--}return ne}),r.formatArgs.call(R,x),(R.log||r.log).apply(R,x)}return S.namespace=u,S.useColors=r.useColors(),S.color=r.selectColor(u),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(u)),b),set:x=>{g=x}}),typeof r.init=="function"&&r.init(S),S}function n(u,p){let g=r(this.namespace+(typeof p>"u"?":":p)+u);return g.log=this.log,g}function i(u){r.save(u),r.namespaces=u,r.names=[],r.skips=[];let p,g=(typeof u=="string"?u:"").split(/[\s,]+/),m=g.length;for(p=0;p<m;p++)g[p]&&(u=g[p].replace(/\*/g,".*?"),u[0]==="-"?r.skips.push(new RegExp("^"+u.slice(1)+"$")):r.names.push(new RegExp("^"+u+"$")))}function s(){let u=[...r.names.map(a),...r.skips.map(a).map(p=>"-"+p)].join(",");return r.enable(""),u}function o(u){if(u[u.length-1]==="*")return!0;let p,g;for(p=0,g=r.skips.length;p<g;p++)if(r.skips[p].test(u))return!1;for(p=0,g=r.names.length;p<g;p++)if(r.names[p].test(u))return!0;return!1}function a(u){return u.toString().substring(2,u.toString().length-2).replace(/\.\*\?$/,"*")}function c(u){return u instanceof Error?u.stack||u.message:u}function d(){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}Gf.exports=xy});var Hf=y((Re,kn)=>{Re.formatArgs=Cy;Re.save=Py;Re.load=Dy;Re.useColors=Ey;Re.storage=Oy();Re.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`."))}})();Re.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 Ey(){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 Cy(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+kn.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)}Re.log=console.debug||console.log||(()=>{});function Py(t){try{t?Re.storage.setItem("debug",t):Re.storage.removeItem("debug")}catch{}}function Dy(){let t;try{t=Re.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function Oy(){try{return localStorage}catch{}}kn.exports=Is()(Re);var{formatters:Iy}=kn.exports;Iy.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var zf=y((oe,Mn)=>{var Ay=require("tty"),Tn=require("util");oe.init=Ny;oe.log=Ty;oe.formatArgs=Fy;oe.save=My;oe.load=qy;oe.useColors=Ry;oe.destroy=Tn.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");oe.colors=[6,2,3,4,5,1];try{let t=ji();t&&(t.stderr||t).level>=2&&(oe.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{}oe.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 Ry(){return"colors"in oe.inspectOpts?!!oe.inspectOpts.colors:Ay.isatty(process.stderr.fd)}function Fy(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(`
12
+ `,i)}while(n!==-1);return s+=t.substr(i),s};Vu.exports={stringReplaceAll:tg,stringEncaseCRLFWithFirstIndex:rg}});var rl=y((D2,tl)=>{"use strict";var ng=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Qu=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,ig=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,sg=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,og=new Map([["n",`
13
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function el(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)):og.get(t)||t}function ag(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(ig))r.push(i[2].replace(sg,(a,c,d)=>c?el(c):d));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`)}return r}function cg(t){Qu.lastIndex=0;let e=[],r;for(;(r=Qu.exec(t))!==null;){let n=r[1];if(r[2]){let i=ag(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function Zu(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}tl.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(ng,(s,o,a,c,d,u)=>{if(o)i.push(el(o));else if(c){let p=i.join("");i=[],n.push(r.length===0?p:Zu(t,r)(p)),r.push({inverse:a,styles:cg(c)})}else if(d){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Zu(t,r)(i.join(""))),i=[],r.pop()}else i.push(u)}),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 ul=y((O2,cl)=>{"use strict";var pr=Hu(),{stdout:$i,stderr:Bi}=ji(),{stringReplaceAll:ug,stringEncaseCRLFWithFirstIndex:lg}=Ku(),{isArray:un}=Array,il=["ansi","ansi","ansi256","ansi16m"],Ut=Object.create(null),fg=(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},Ui=class{constructor(e){return sl(e)}},sl=t=>{let e={};return fg(e,t),e.template=(...r)=>al(e.template,...r),Object.setPrototypeOf(e,ln.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},e.template.Instance=Ui,e.template};function ln(t){return sl(t)}for(let[t,e]of Object.entries(pr))Ut[t]={get(){let r=fn(this,Xi(e.open,e.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:r}),r}};Ut.visible={get(){let t=fn(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:t}),t}};var ol=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let t of ol)Ut[t]={get(){let{level:e}=this;return function(...r){let n=Xi(pr.color[il[e]][t](...r),pr.color.close,this._styler);return fn(this,n,this._isEmpty)}}};for(let t of ol){let e="bg"+t[0].toUpperCase()+t.slice(1);Ut[e]={get(){let{level:r}=this;return function(...n){let i=Xi(pr.bgColor[il[r]][t](...n),pr.bgColor.close,this._styler);return fn(this,i,this._isEmpty)}}}}var dg=Object.defineProperties(()=>{},{...Ut,level:{enumerable:!0,get(){return this._generator.level},set(t){this._generator.level=t}}}),Xi=(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}},fn=(t,e,r)=>{let n=(...i)=>un(i[0])&&un(i[0].raw)?nl(n,al(n,...i)):nl(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,dg),n._generator=t,n._styler=e,n._isEmpty=r,n},nl=(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=ug(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
14
+ `);return s!==-1&&(e=lg(e,i,n,s)),n+e+i},Li,al=(t,...e)=>{let[r]=e;if(!un(r)||!un(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 Li===void 0&&(Li=rl()),Li(t,i.join(""))};Object.defineProperties(ln.prototype,Ut);var dn=ln();dn.supportsColor=$i;dn.stderr=ln({level:Bi?Bi.level:0});dn.stderr.supportsColor=Bi;cl.exports=dn});var ll=y((Gi,Hi)=>{(function(t,e){typeof Gi=="object"&&typeof Hi<"u"?Hi.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self,t.tinycolor=e())})(Gi,function(){"use strict";function t(l){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},t(l)}var e=/^\s+/,r=/\s+$/;function n(l,h){if(l=l||"",h=h||{},l instanceof n)return l;if(!(this instanceof n))return new n(l,h);var f=i(l);this._originalInput=l,this._r=f.r,this._g=f.g,this._b=f.b,this._a=f.a,this._roundA=Math.round(100*this._a)/100,this._format=h.format||f.format,this._gradientType=h.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=f.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 h=this.toRgb();return(h.r*299+h.g*587+h.b*114)/1e3},getLuminance:function(){var h=this.toRgb(),f,v,_,w,N,U;return f=h.r/255,v=h.g/255,_=h.b/255,f<=.03928?w=f/12.92:w=Math.pow((f+.055)/1.055,2.4),v<=.03928?N=v/12.92:N=Math.pow((v+.055)/1.055,2.4),_<=.03928?U=_/12.92:U=Math.pow((_+.055)/1.055,2.4),.2126*w+.7152*N+.0722*U},setAlpha:function(h){return this._a=J(h),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var h=c(this._r,this._g,this._b);return{h:h.h*360,s:h.s,v:h.v,a:this._a}},toHsvString:function(){var h=c(this._r,this._g,this._b),f=Math.round(h.h*360),v=Math.round(h.s*100),_=Math.round(h.v*100);return this._a==1?"hsv("+f+", "+v+"%, "+_+"%)":"hsva("+f+", "+v+"%, "+_+"%, "+this._roundA+")"},toHsl:function(){var h=o(this._r,this._g,this._b);return{h:h.h*360,s:h.s,l:h.l,a:this._a}},toHslString:function(){var h=o(this._r,this._g,this._b),f=Math.round(h.h*360),v=Math.round(h.s*100),_=Math.round(h.l*100);return this._a==1?"hsl("+f+", "+v+"%, "+_+"%)":"hsla("+f+", "+v+"%, "+_+"%, "+this._roundA+")"},toHex:function(h){return u(this._r,this._g,this._b,h)},toHexString:function(h){return"#"+this.toHex(h)},toHex8:function(h){return p(this._r,this._g,this._b,this._a,h)},toHex8String:function(h){return"#"+this.toHex8(h)},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(I(this._r,255)*100)+"%",g:Math.round(I(this._g,255)*100)+"%",b:Math.round(I(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(I(this._r,255)*100)+"%, "+Math.round(I(this._g,255)*100)+"%, "+Math.round(I(this._b,255)*100)+"%)":"rgba("+Math.round(I(this._r,255)*100)+"%, "+Math.round(I(this._g,255)*100)+"%, "+Math.round(I(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:q[u(this._r,this._g,this._b,!0)]||!1},toFilter:function(h){var f="#"+g(this._r,this._g,this._b,this._a),v=f,_=this._gradientType?"GradientType = 1, ":"";if(h){var w=n(h);v="#"+g(w._r,w._g,w._b,w._a)}return"progid:DXImageTransform.Microsoft.gradient("+_+"startColorstr="+f+",endColorstr="+v+")"},toString:function(h){var f=!!h;h=h||this._format;var v=!1,_=this._a<1&&this._a>=0,w=!f&&_&&(h==="hex"||h==="hex6"||h==="hex3"||h==="hex4"||h==="hex8"||h==="name");return w?h==="name"&&this._a===0?this.toName():this.toRgbString():(h==="rgb"&&(v=this.toRgbString()),h==="prgb"&&(v=this.toPercentageRgbString()),(h==="hex"||h==="hex6")&&(v=this.toHexString()),h==="hex3"&&(v=this.toHexString(!0)),h==="hex4"&&(v=this.toHex8String(!0)),h==="hex8"&&(v=this.toHex8String()),h==="name"&&(v=this.toName()),h==="hsl"&&(v=this.toHslString()),h==="hsv"&&(v=this.toHsvString()),v||this.toHexString())},clone:function(){return n(this.toString())},_applyModification:function(h,f){var v=h.apply(null,[this].concat([].slice.call(f)));return this._r=v._r,this._g=v._g,this._b=v._b,this.setAlpha(v._a),this},lighten:function(){return this._applyModification(x,arguments)},brighten:function(){return this._applyModification(R,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(L,arguments)},_applyCombination:function(h,f){return h.apply(null,[this].concat([].slice.call(f)))},analogous:function(){return this._applyCombination(xe,arguments)},complement:function(){return this._applyCombination($,arguments)},monochromatic:function(){return this._applyCombination(V,arguments)},splitcomplement:function(){return this._applyCombination(ne,arguments)},triad:function(){return this._applyCombination(H,[3])},tetrad:function(){return this._applyCombination(H,[4])}},n.fromRatio=function(l,h){if(t(l)=="object"){var f={};for(var v in l)l.hasOwnProperty(v)&&(v==="a"?f[v]=l[v]:f[v]=F(l[v]));l=f}return n(l,h)};function i(l){var h={r:0,g:0,b:0},f=1,v=null,_=null,w=null,N=!1,U=!1;return typeof l=="string"&&(l=tt(l)),t(l)=="object"&&(ue(l.r)&&ue(l.g)&&ue(l.b)?(h=s(l.r,l.g,l.b),N=!0,U=String(l.r).substr(-1)==="%"?"prgb":"rgb"):ue(l.h)&&ue(l.s)&&ue(l.v)?(v=F(l.s),_=F(l.v),h=d(l.h,v,_),N=!0,U="hsv"):ue(l.h)&&ue(l.s)&&ue(l.l)&&(v=F(l.s),w=F(l.l),h=a(l.h,v,w),N=!0,U="hsl"),l.hasOwnProperty("a")&&(f=l.a)),f=J(f),{ok:N,format:l.format||U,r:Math.min(255,Math.max(h.r,0)),g:Math.min(255,Math.max(h.g,0)),b:Math.min(255,Math.max(h.b,0)),a:f}}function s(l,h,f){return{r:I(l,255)*255,g:I(h,255)*255,b:I(f,255)*255}}function o(l,h,f){l=I(l,255),h=I(h,255),f=I(f,255);var v=Math.max(l,h,f),_=Math.min(l,h,f),w,N,U=(v+_)/2;if(v==_)w=N=0;else{var z=v-_;switch(N=U>.5?z/(2-v-_):z/(v+_),v){case l:w=(h-f)/z+(h<f?6:0);break;case h:w=(f-l)/z+2;break;case f:w=(l-h)/z+4;break}w/=6}return{h:w,s:N,l:U}}function a(l,h,f){var v,_,w;l=I(l,360),h=I(h,100),f=I(f,100);function N(ge,mt,Y){return Y<0&&(Y+=1),Y>1&&(Y-=1),Y<1/6?ge+(mt-ge)*6*Y:Y<1/2?mt:Y<2/3?ge+(mt-ge)*(2/3-Y)*6:ge}if(h===0)v=_=w=f;else{var U=f<.5?f*(1+h):f+h-f*h,z=2*f-U;v=N(z,U,l+1/3),_=N(z,U,l),w=N(z,U,l-1/3)}return{r:v*255,g:_*255,b:w*255}}function c(l,h,f){l=I(l,255),h=I(h,255),f=I(f,255);var v=Math.max(l,h,f),_=Math.min(l,h,f),w,N,U=v,z=v-_;if(N=v===0?0:z/v,v==_)w=0;else{switch(v){case l:w=(h-f)/z+(h<f?6:0);break;case h:w=(f-l)/z+2;break;case f:w=(l-h)/z+4;break}w/=6}return{h:w,s:N,v:U}}function d(l,h,f){l=I(l,360)*6,h=I(h,100),f=I(f,100);var v=Math.floor(l),_=l-v,w=f*(1-h),N=f*(1-_*h),U=f*(1-(1-_)*h),z=v%6,ge=[f,N,w,w,U,f][z],mt=[U,f,f,N,w,w][z],Y=[w,w,U,f,f,N][z];return{r:ge*255,g:mt*255,b:Y*255}}function u(l,h,f,v){var _=[P(Math.round(l).toString(16)),P(Math.round(h).toString(16)),P(Math.round(f).toString(16))];return v&&_[0].charAt(0)==_[0].charAt(1)&&_[1].charAt(0)==_[1].charAt(1)&&_[2].charAt(0)==_[2].charAt(1)?_[0].charAt(0)+_[1].charAt(0)+_[2].charAt(0):_.join("")}function p(l,h,f,v,_){var w=[P(Math.round(l).toString(16)),P(Math.round(h).toString(16)),P(Math.round(f).toString(16)),P(Ue(v))];return _&&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[3].charAt(0)==w[3].charAt(1)?w[0].charAt(0)+w[1].charAt(0)+w[2].charAt(0)+w[3].charAt(0):w.join("")}function g(l,h,f,v){var _=[P(Ue(v)),P(Math.round(l).toString(16)),P(Math.round(h).toString(16)),P(Math.round(f).toString(16))];return _.join("")}n.equals=function(l,h){return!l||!h?!1:n(l).toRgbString()==n(h).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function m(l,h){h=h===0?0:h||10;var f=n(l).toHsl();return f.s-=h/100,f.s=X(f.s),n(f)}function b(l,h){h=h===0?0:h||10;var f=n(l).toHsl();return f.s+=h/100,f.s=X(f.s),n(f)}function S(l){return n(l).desaturate(100)}function x(l,h){h=h===0?0:h||10;var f=n(l).toHsl();return f.l+=h/100,f.l=X(f.l),n(f)}function R(l,h){h=h===0?0:h||10;var f=n(l).toRgb();return f.r=Math.max(0,Math.min(255,f.r-Math.round(255*-(h/100)))),f.g=Math.max(0,Math.min(255,f.g-Math.round(255*-(h/100)))),f.b=Math.max(0,Math.min(255,f.b-Math.round(255*-(h/100)))),n(f)}function j(l,h){h=h===0?0:h||10;var f=n(l).toHsl();return f.l-=h/100,f.l=X(f.l),n(f)}function L(l,h){var f=n(l).toHsl(),v=(f.h+h)%360;return f.h=v<0?360+v:v,n(f)}function $(l){var h=n(l).toHsl();return h.h=(h.h+180)%360,n(h)}function H(l,h){if(isNaN(h)||h<=0)throw new Error("Argument to polyad must be a positive number");for(var f=n(l).toHsl(),v=[n(l)],_=360/h,w=1;w<h;w++)v.push(n({h:(f.h+w*_)%360,s:f.s,l:f.l}));return v}function ne(l){var h=n(l).toHsl(),f=h.h;return[n(l),n({h:(f+72)%360,s:h.s,l:h.l}),n({h:(f+216)%360,s:h.s,l:h.l})]}function xe(l,h,f){h=h||6,f=f||30;var v=n(l).toHsl(),_=360/f,w=[n(l)];for(v.h=(v.h-(_*h>>1)+720)%360;--h;)v.h=(v.h+_)%360,w.push(n(v));return w}function V(l,h){h=h||6;for(var f=n(l).toHsv(),v=f.h,_=f.s,w=f.v,N=[],U=1/h;h--;)N.push(n({h:v,s:_,v:w})),w=(w+U)%1;return N}n.mix=function(l,h,f){f=f===0?0:f||50;var v=n(l).toRgb(),_=n(h).toRgb(),w=f/100,N={r:(_.r-v.r)*w+v.r,g:(_.g-v.g)*w+v.g,b:(_.b-v.b)*w+v.b,a:(_.a-v.a)*w+v.a};return n(N)},n.readability=function(l,h){var f=n(l),v=n(h);return(Math.max(f.getLuminance(),v.getLuminance())+.05)/(Math.min(f.getLuminance(),v.getLuminance())+.05)},n.isReadable=function(l,h,f){var v=n.readability(l,h),_,w;switch(w=!1,_=Ee(f),_.level+_.size){case"AAsmall":case"AAAlarge":w=v>=4.5;break;case"AAlarge":w=v>=3;break;case"AAAsmall":w=v>=7;break}return w},n.mostReadable=function(l,h,f){var v=null,_=0,w,N,U,z;f=f||{},N=f.includeFallbackColors,U=f.level,z=f.size;for(var ge=0;ge<h.length;ge++)w=n.readability(l,h[ge]),w>_&&(_=w,v=n(h[ge]));return n.isReadable(l,v,{level:U,size:z})||!N?v:(f.includeFallbackColors=!1,n.mostReadable(l,["#fff","#000"],f))};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"},q=n.hexNames=T(D);function T(l){var h={};for(var f in l)l.hasOwnProperty(f)&&(h[l[f]]=f);return h}function J(l){return l=parseFloat(l),(isNaN(l)||l<0||l>1)&&(l=1),l}function I(l,h){B(l)&&(l="100%");var f=M(l);return l=Math.min(h,Math.max(0,parseFloat(l))),f&&(l=parseInt(l*h,10)/100),Math.abs(l-h)<1e-6?1:l%h/parseFloat(h)}function X(l){return Math.min(1,Math.max(0,l))}function O(l){return parseInt(l,16)}function B(l){return typeof l=="string"&&l.indexOf(".")!=-1&&parseFloat(l)===1}function M(l){return typeof l=="string"&&l.indexOf("%")!=-1}function P(l){return l.length==1?"0"+l:""+l}function F(l){return l<=1&&(l=l*100+"%"),l}function Ue(l){return Math.round(parseFloat(l)*255).toString(16)}function Xe(l){return O(l)/255}var ie=function(){var l="[-\\+]?\\d+%?",h="[-\\+]?\\d*\\.\\d+%?",f="(?:"+h+")|(?:"+l+")",v="[\\s|\\(]+("+f+")[,|\\s]+("+f+")[,|\\s]+("+f+")\\s*\\)?",_="[\\s|\\(]+("+f+")[,|\\s]+("+f+")[,|\\s]+("+f+")[,|\\s]+("+f+")\\s*\\)?";return{CSS_UNIT:new RegExp(f),rgb:new RegExp("rgb"+v),rgba:new RegExp("rgba"+_),hsl:new RegExp("hsl"+v),hsla:new RegExp("hsla"+_),hsv:new RegExp("hsv"+v),hsva:new RegExp("hsva"+_),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 ue(l){return!!ie.CSS_UNIT.exec(l)}function tt(l){l=l.replace(e,"").replace(r,"").toLowerCase();var h=!1;if(D[l])l=D[l],h=!0;else if(l=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var f;return(f=ie.rgb.exec(l))?{r:f[1],g:f[2],b:f[3]}:(f=ie.rgba.exec(l))?{r:f[1],g:f[2],b:f[3],a:f[4]}:(f=ie.hsl.exec(l))?{h:f[1],s:f[2],l:f[3]}:(f=ie.hsla.exec(l))?{h:f[1],s:f[2],l:f[3],a:f[4]}:(f=ie.hsv.exec(l))?{h:f[1],s:f[2],v:f[3]}:(f=ie.hsva.exec(l))?{h:f[1],s:f[2],v:f[3],a:f[4]}:(f=ie.hex8.exec(l))?{r:O(f[1]),g:O(f[2]),b:O(f[3]),a:Xe(f[4]),format:h?"name":"hex8"}:(f=ie.hex6.exec(l))?{r:O(f[1]),g:O(f[2]),b:O(f[3]),format:h?"name":"hex"}:(f=ie.hex4.exec(l))?{r:O(f[1]+""+f[1]),g:O(f[2]+""+f[2]),b:O(f[3]+""+f[3]),a:Xe(f[4]+""+f[4]),format:h?"name":"hex8"}:(f=ie.hex3.exec(l))?{r:O(f[1]+""+f[1]),g:O(f[2]+""+f[2]),b:O(f[3]+""+f[3]),format:h?"name":"hex"}:!1}function Ee(l){var h,f;return l=l||{level:"AA",size:"small"},h=(l.level||"AA").toUpperCase(),f=(l.size||"small").toLowerCase(),h!=="AA"&&h!=="AAA"&&(h="AA"),f!=="small"&&f!=="large"&&(f="small"),{level:h,size:f}}return n})});var yl=y((I2,gl)=>{var mr=ll(),pl={r:256,g:256,b:256,a:1},ml={h:360,s:1,v:1,a:1};function zi(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 Wi(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 Ji(t,e,r){let n=t.color.toRgb(),i=e.color.toRgb(),s=zi(n,i,r),o=[t.color];for(let a=1;a<r;a++){let c=Wi(s,n,a,pl);o.push(mr(c))}return o}function fl(t,e,r,n){let i=t.color.toHsv(),s=e.color.toHsv();if(i.s===0||s.s===0)return Ji(t,e,r);let o;if(typeof n=="boolean")o=n;else{let u=i.h<s.h&&s.h-i.h<180||i.h>s.h&&i.h-s.h>180;o=n==="long"&&u||n==="short"&&!u}let a=zi(i,s,r),c=[t.color],d;i.h<=s.h&&!o||i.h>=s.h&&o?d=s.h-i.h:o?d=360-s.h+i.h:d=360-i.h+s.h,a.h=Math.pow(-1,o?1:0)*Math.abs(d)/r;for(let u=1;u<r;u++){let p=Wi(a,i,u,ml);c.push(mr(p))}return c}function dl(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 hl(t,e,r,n){if(e<0||e>1)throw new Error("Position must be between 0 and 1");let i,s;for(let c=0,d=t.length;c<d-1;c++)if(e>=t[c].pos&&e<t[c+1].pos){i=t[c],s=t[c+1];break}i||(i=s=t[t.length-1]);let o=zi(i.color[r](),s.color[r](),(s.pos-i.pos)*100),a=Wi(o,i.color[r](),(e-i.pos)*100,n);return mr(a)}var Xt=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 c=o.pos!==void 0;if(r^c)throw new Error("Cannot mix positionned and not posionned color stops");if(c){let d=o.color!==void 0;if(!d&&(s||a===0||a===n-1))throw new Error("Cannot define two consecutive position-only stops");if(s=!d,o={color:d?mr(o.color):null,colorLess:!d,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:mr(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 Xt(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 Xt(e.concat(r.reverse()))}rgb(e){let r=dl(this.stops,e),n=[];this.stops.forEach((i,s)=>{i.colorLess&&(i.color=Ji(this.stops[s-1],this.stops[s+1],2)[1])});for(let i=0,s=this.stops.length;i<s-1;i++){let o=Ji(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=dl(this.stops,e),i=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=fl(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=fl(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 hl(this.stops,e,"toRgb",pl)}hsvAt(e){return hl(this.stops,e,"toHsv",ml)}};gl.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 Xt(t)}});var Sl=y((A2,hn)=>{"use strict";var bl=ul(),hg=yl(),vl=/\s/g;function Yi(...t){let e=hg.apply(this,t),r=(n,i)=>pg(n?n.toString():"",e,i);return r.multiline=(n,i)=>mg(n?n.toString():"",e,i),r}var wl=(t,e,r)=>e.interpolation.toLowerCase()==="hsv"?t.hsv(r,e.hsvSpin.toLowerCase()):t.rgb(r);function pg(t,e,r){let n=_l(r),i=Math.max(t.replace(vl,"").length,e.stops.length),s=wl(e,n,i),o="";for(let a of t)o+=a.match(vl)?a:bl.hex(s.shift().toHex())(a);return o}function mg(t,e,r){let n=_l(r),i=t.split(`
15
+ `),s=Math.max.apply(null,i.map(c=>c.length).concat([e.stops.length])),o=wl(e,n,s),a=[];for(let c of i){let d=o.slice(0),u="";for(let p of c)u+=bl.hex(d.shift().toHex())(p);a.push(u)}return a.join(`
16
+ `)}function _l(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 gr={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"}}};hn.exports=Yi;for(let t in gr)hn.exports[t]=e=>new Yi(gr[t].colors)(e,gr[t].options),hn.exports[t].multiline=e=>new Yi(gr[t].colors).multiline(e,gr[t].options)});var El=y((R2,xl)=>{var Vi=class{constructor(e){this.value=e,this.next=void 0}},Ki=class{constructor(){this.clear()}enqueue(e){let r=new Vi(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}};xl.exports=Ki});var Qi=y((F2,Cl)=>{"use strict";var gg=El(),yg=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 gg,r=0,n=()=>{r--,e.size>0&&e.dequeue()()},i=async(a,c,...d)=>{r++;let u=(async()=>a(...d))();c(u);try{await u}catch{}n()},s=(a,c,...d)=>{e.enqueue(i.bind(null,a,c,...d)),(async()=>(await Promise.resolve(),r<t&&e.size>0&&e.dequeue()()))()},o=(a,...c)=>new Promise(d=>{s(a,d,...c)});return Object.defineProperties(o,{activeCount:{get:()=>r},pendingCount:{get:()=>e.size},clearQueue:{value:()=>{e.clear()}}}),o};Cl.exports=yg});var Ol=y((k2,Dl)=>{"use strict";var Pl=Qi(),pn=class extends Error{constructor(e){super(),this.value=e}},vg=async(t,e)=>e(await t),bg=async t=>{let e=await Promise.all(t);if(e[1]===!0)throw new pn(e[0]);return!1},wg=async(t,e,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=Pl(r.concurrency),i=[...t].map(o=>[o,n(vg,o,e)]),s=Pl(r.preserveOrder?1:1/0);try{await Promise.all(i.map(o=>s(bg,o)))}catch(o){if(o instanceof pn)return o.value;throw o}};Dl.exports=wg});var Tl=y((T2,Zi)=>{"use strict";var Il=require("path"),mn=require("fs"),{promisify:Al}=require("util"),_g=Ol(),Sg=Al(mn.stat),xg=Al(mn.lstat),Rl={directory:"isDirectory",file:"isFile"};function Fl({type:t}){if(!(t in Rl))throw new Error(`Invalid type specified: ${t}`)}var kl=(t,e)=>t===void 0||e[Rl[t]]();Zi.exports=async(t,e)=>{e={cwd:process.cwd(),type:"file",allowSymlinks:!0,...e},Fl(e);let r=e.allowSymlinks?Sg:xg;return _g(t,async n=>{try{let i=await r(Il.resolve(e.cwd,n));return kl(e.type,i)}catch{return!1}},e)};Zi.exports.sync=(t,e)=>{e={cwd:process.cwd(),allowSymlinks:!0,type:"file",...e},Fl(e);let r=e.allowSymlinks?mn.statSync:mn.lstatSync;for(let n of t)try{let i=r(Il.resolve(e.cwd,n));if(kl(e.type,i))return n}catch{}}});var ql=y((M2,es)=>{"use strict";var Ml=require("fs"),{promisify:Eg}=require("util"),Cg=Eg(Ml.access);es.exports=async t=>{try{return await Cg(t),!0}catch{return!1}};es.exports.sync=t=>{try{return Ml.accessSync(t),!0}catch{return!1}}});var rs=y((q2,Gt)=>{"use strict";var ut=require("path"),gn=Tl(),Nl=ql(),ts=Symbol("findUp.stop");Gt.exports=async(t,e={})=>{let r=ut.resolve(e.cwd||""),{root:n}=ut.parse(r),i=[].concat(t),s=async o=>{if(typeof t!="function")return gn(i,o);let a=await t(o.cwd);return typeof a=="string"?gn([a],o):a};for(;;){let o=await s({...e,cwd:r});if(o===ts)return;if(o)return ut.resolve(r,o);if(r===n)return;r=ut.dirname(r)}};Gt.exports.sync=(t,e={})=>{let r=ut.resolve(e.cwd||""),{root:n}=ut.parse(r),i=[].concat(t),s=o=>{if(typeof t!="function")return gn.sync(i,o);let a=t(o.cwd);return typeof a=="string"?gn.sync([a],o):a};for(;;){let o=s({...e,cwd:r});if(o===ts)return;if(o)return ut.resolve(r,o);if(r===n)return;r=ut.dirname(r)}};Gt.exports.exists=Nl;Gt.exports.sync.exists=Nl.sync;Gt.exports.stop=ts});var yn=y((N2,ns)=>{"use strict";var jl=require("path"),Ll=rs(),Pg=async t=>{let e=await Ll("package.json",{cwd:t});return e&&jl.dirname(e)};ns.exports=Pg;ns.exports.sync=t=>{let e=Ll.sync("package.json",{cwd:t});return e&&jl.dirname(e)}});function ft(t=""){return ys?ps.default.resolve(gs.default.sync(__dirname),"../../../",t):ps.default.resolve(gs.default.sync(__dirname),"../griddo-components",t)}function Ag(){let t=ms.default.sync("jsconfig.json",{cwd:ft()});return ms.default.sync("tsconfig.json",{cwd:ft()})||t}function Rg(){let t=require(Ag());return Object.keys(t?.compilerOptions?.paths).reduce((e,r)=>{let[n]=r.split("/"),[i]=t&&t.compilerOptions&&t.compilerOptions.paths&&t.compilerOptions.paths[r],[s]=i.split("/*"),o=ft(s);return{...e,[n]:o}},{"@griddo-instance":`${ft()}/src/index.js`})}var ps,ms,gs,ys,sf,vs=Jo(()=>{"use strict";ps=A(require("node:path")),ms=A(rs()),gs=A(yn()),ys=__dirname.includes("node_modules"),sf=Rg()});var uf={};zo(uf,{CXDir:()=>Ng,default:()=>qg});var wt,xn,of,af,Fg,kg,Tg,Mg,cf,qg,Ng,lf=Jo(()=>{"use strict";wt=A(require("node:path")),xn=A(yn());vs();of=xn.default.sync(wt.default.resolve(__dirname,"../..")),af=xn.default.sync(__dirname),Fg=wt.default.resolve(xn.default.sync(__dirname)),kg=wt.default.resolve(af,"caches"),Tg=ft(),Mg=wt.default.join(of,"exports/sites"),cf={proDomain:"pro-",CXDir:{EXPORTS:"__exports",CACHE:"__caches",CX:"__cx",SSG:"__ssg",COMPONENTS:"__components",ROOT:"__root"},dirs:t=>({__caches:wt.default.join(kg,t||""),__components:Tg,__cx:af,__exports:wt.default.join(Mg,t||""),__root:of,__ssg:Fg})},qg=cf,Ng=cf.CXDir});var ws=y((tw,pf)=>{"use strict";pf.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 Se=y((rw,yf)=>{"use strict";var $g=ws(),_t=Object.prototype.toString;function xs(t){return _t.call(t)==="[object Array]"}function _s(t){return typeof t>"u"}function Bg(t){return t!==null&&!_s(t)&&t.constructor!==null&&!_s(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function Ug(t){return _t.call(t)==="[object ArrayBuffer]"}function Xg(t){return typeof FormData<"u"&&t instanceof FormData}function Gg(t){var e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function Hg(t){return typeof t=="string"}function Jg(t){return typeof t=="number"}function mf(t){return t!==null&&typeof t=="object"}function En(t){if(_t.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function zg(t){return _t.call(t)==="[object Date]"}function Wg(t){return _t.call(t)==="[object File]"}function Yg(t){return _t.call(t)==="[object Blob]"}function gf(t){return _t.call(t)==="[object Function]"}function Vg(t){return mf(t)&&gf(t.pipe)}function Kg(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}function Qg(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function Zg(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Es(t,e){if(!(t===null||typeof t>"u"))if(typeof t!="object"&&(t=[t]),xs(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 Ss(){var t={};function e(i,s){En(t[s])&&En(i)?t[s]=Ss(t[s],i):En(i)?t[s]=Ss({},i):xs(i)?t[s]=i.slice():t[s]=i}for(var r=0,n=arguments.length;r<n;r++)Es(arguments[r],e);return t}function ey(t,e,r){return Es(e,function(i,s){r&&typeof i=="function"?t[s]=$g(i,r):t[s]=i}),t}function ty(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t}yf.exports={isArray:xs,isArrayBuffer:Ug,isBuffer:Bg,isFormData:Xg,isArrayBufferView:Gg,isString:Hg,isNumber:Jg,isObject:mf,isPlainObject:En,isUndefined:_s,isDate:zg,isFile:Wg,isBlob:Yg,isFunction:gf,isStream:Vg,isURLSearchParams:Kg,isStandardBrowserEnv:Zg,forEach:Es,merge:Ss,extend:ey,trim:Qg,stripBOM:ty}});var Cn=y((nw,bf)=>{"use strict";var Jt=Se();function vf(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}bf.exports=function(e,r,n){if(!r)return e;var i;if(n)i=n(r);else if(Jt.isURLSearchParams(r))i=r.toString();else{var s=[];Jt.forEach(r,function(c,d){c===null||typeof c>"u"||(Jt.isArray(c)?d=d+"[]":c=[c],Jt.forEach(c,function(p){Jt.isDate(p)?p=p.toISOString():Jt.isObject(p)&&(p=JSON.stringify(p)),s.push(vf(d)+"="+vf(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 _f=y((iw,wf)=>{"use strict";var ry=Se();function Pn(){this.handlers=[]}Pn.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};Pn.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};Pn.prototype.forEach=function(e){ry.forEach(this.handlers,function(n){n!==null&&e(n)})};wf.exports=Pn});var xf=y((sw,Sf)=>{"use strict";var ny=Se();Sf.exports=function(e,r){ny.forEach(e,function(i,s){s!==r&&s.toUpperCase()===r.toUpperCase()&&(e[r]=i,delete e[s])})}});var Dn=y((ow,Ef)=>{"use strict";Ef.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((aw,Cf)=>{"use strict";var iy=Dn();Cf.exports=function(e,r,n,i,s){var o=new Error(e);return iy(o,r,n,i,s)}});var Cs=y((cw,Pf)=>{"use strict";var sy=On();Pf.exports=function(e,r,n){var i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):r(sy("Request failed with status code "+n.status,n.config,null,n.request,n))}});var Of=y((uw,Df)=>{"use strict";var In=Se();Df.exports=In.isStandardBrowserEnv()?function(){return{write:function(r,n,i,s,o,a){var c=[];c.push(r+"="+encodeURIComponent(n)),In.isNumber(i)&&c.push("expires="+new Date(i).toGMTString()),In.isString(s)&&c.push("path="+s),In.isString(o)&&c.push("domain="+o),a===!0&&c.push("secure"),document.cookie=c.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 Af=y((lw,If)=>{"use strict";If.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}});var Ff=y((fw,Rf)=>{"use strict";Rf.exports=function(e,r){return r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e}});var Ps=y((dw,kf)=>{"use strict";var oy=Af(),ay=Ff();kf.exports=function(e,r){return e&&!oy(r)?ay(e,r):r}});var Mf=y((hw,Tf)=>{"use strict";var Ds=Se(),cy=["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"];Tf.exports=function(e){var r={},n,i,s;return e&&Ds.forEach(e.split(`
17
+ `),function(a){if(s=a.indexOf(":"),n=Ds.trim(a.substr(0,s)).toLowerCase(),i=Ds.trim(a.substr(s+1)),n){if(r[n]&&cy.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 jf=y((pw,Nf)=>{"use strict";var qf=Se();Nf.exports=qf.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=qf.isString(o)?i(o):o;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}()});var $f=y((mw,Lf)=>{"use strict";var An=Se(),uy=Cs(),ly=Of(),fy=Cn(),dy=Ps(),hy=Mf(),py=jf(),Os=On();Lf.exports=function(e){return new Promise(function(n,i){var s=e.data,o=e.headers,a=e.responseType;An.isFormData(s)&&delete o["Content-Type"];var c=new XMLHttpRequest;if(e.auth){var d=e.auth.username||"",u=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.Authorization="Basic "+btoa(d+":"+u)}var p=dy(e.baseURL,e.url);c.open(e.method.toUpperCase(),fy(p,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function g(){if(c){var b="getAllResponseHeaders"in c?hy(c.getAllResponseHeaders()):null,S=!a||a==="text"||a==="json"?c.responseText:c.response,x={data:S,status:c.status,statusText:c.statusText,headers:b,config:e,request:c};uy(n,i,x),c=null}}if("onloadend"in c?c.onloadend=g:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(g)},c.onabort=function(){c&&(i(Os("Request aborted",e,"ECONNABORTED",c)),c=null)},c.onerror=function(){i(Os("Network Error",e,null,c)),c=null},c.ontimeout=function(){var S="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(S=e.timeoutErrorMessage),i(Os(S,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},An.isStandardBrowserEnv()){var m=(e.withCredentials||py(p))&&e.xsrfCookieName?ly.read(e.xsrfCookieName):void 0;m&&(o[e.xsrfHeaderName]=m)}"setRequestHeader"in c&&An.forEach(o,function(S,x){typeof s>"u"&&x.toLowerCase()==="content-type"?delete o[x]:c.setRequestHeader(x,S)}),An.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),a&&a!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",e.onDownloadProgress),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(S){c&&(c.abort(),i(S),c=null)}),s||(s=null),c.send(s)})}});var Uf=y((gw,Bf)=>{var zt=1e3,Wt=zt*60,Yt=Wt*60,St=Yt*24,my=St*7,gy=St*365.25;Bf.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return yy(t);if(r==="number"&&isFinite(t))return e.long?by(t):vy(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function yy(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*gy;case"weeks":case"week":case"w":return r*my;case"days":case"day":case"d":return r*St;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Yt;case"minutes":case"minute":case"mins":case"min":case"m":return r*Wt;case"seconds":case"second":case"secs":case"sec":case"s":return r*zt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function vy(t){var e=Math.abs(t);return e>=St?Math.round(t/St)+"d":e>=Yt?Math.round(t/Yt)+"h":e>=Wt?Math.round(t/Wt)+"m":e>=zt?Math.round(t/zt)+"s":t+"ms"}function by(t){var e=Math.abs(t);return e>=St?Rn(t,e,St,"day"):e>=Yt?Rn(t,e,Yt,"hour"):e>=Wt?Rn(t,e,Wt,"minute"):e>=zt?Rn(t,e,zt,"second"):t+" ms"}function Rn(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var Is=y((yw,Xf)=>{function wy(t){r.debug=r,r.default=r,r.coerce=c,r.disable=s,r.enable=i,r.enabled=o,r.humanize=Uf(),r.destroy=d,Object.keys(t).forEach(u=>{r[u]=t[u]}),r.names=[],r.skips=[],r.formatters={};function e(u){let p=0;for(let g=0;g<u.length;g++)p=(p<<5)-p+u.charCodeAt(g),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=e;function r(u){let p,g=null,m,b;function S(...x){if(!S.enabled)return;let R=S,j=Number(new Date),L=j-(p||j);R.diff=L,R.prev=p,R.curr=j,p=j,x[0]=r.coerce(x[0]),typeof x[0]!="string"&&x.unshift("%O");let $=0;x[0]=x[0].replace(/%([a-zA-Z%])/g,(ne,xe)=>{if(ne==="%%")return"%";$++;let V=r.formatters[xe];if(typeof V=="function"){let D=x[$];ne=V.call(R,D),x.splice($,1),$--}return ne}),r.formatArgs.call(R,x),(R.log||r.log).apply(R,x)}return S.namespace=u,S.useColors=r.useColors(),S.color=r.selectColor(u),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(u)),b),set:x=>{g=x}}),typeof r.init=="function"&&r.init(S),S}function n(u,p){let g=r(this.namespace+(typeof p>"u"?":":p)+u);return g.log=this.log,g}function i(u){r.save(u),r.namespaces=u,r.names=[],r.skips=[];let p,g=(typeof u=="string"?u:"").split(/[\s,]+/),m=g.length;for(p=0;p<m;p++)g[p]&&(u=g[p].replace(/\*/g,".*?"),u[0]==="-"?r.skips.push(new RegExp("^"+u.slice(1)+"$")):r.names.push(new RegExp("^"+u+"$")))}function s(){let u=[...r.names.map(a),...r.skips.map(a).map(p=>"-"+p)].join(",");return r.enable(""),u}function o(u){if(u[u.length-1]==="*")return!0;let p,g;for(p=0,g=r.skips.length;p<g;p++)if(r.skips[p].test(u))return!1;for(p=0,g=r.names.length;p<g;p++)if(r.names[p].test(u))return!0;return!1}function a(u){return u.toString().substring(2,u.toString().length-2).replace(/\.\*\?$/,"*")}function c(u){return u instanceof Error?u.stack||u.message:u}function d(){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}Xf.exports=wy});var Gf=y((Re,Fn)=>{Re.formatArgs=Sy;Re.save=xy;Re.load=Ey;Re.useColors=_y;Re.storage=Cy();Re.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`."))}})();Re.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 _y(){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 Sy(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Fn.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)}Re.log=console.debug||console.log||(()=>{});function xy(t){try{t?Re.storage.setItem("debug",t):Re.storage.removeItem("debug")}catch{}}function Ey(){let t;try{t=Re.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function Cy(){try{return localStorage}catch{}}Fn.exports=Is()(Re);var{formatters:Py}=Fn.exports;Py.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var Jf=y((oe,Tn)=>{var Dy=require("tty"),kn=require("util");oe.init=Ty;oe.log=Ry;oe.formatArgs=Iy;oe.save=Fy;oe.load=ky;oe.useColors=Oy;oe.destroy=kn.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");oe.colors=[6,2,3,4,5,1];try{let t=ji();t&&(t.stderr||t).level>=2&&(oe.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{}oe.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 Oy(){return"colors"in oe.inspectOpts?!!oe.inspectOpts.colors:Dy.isatty(process.stderr.fd)}function Iy(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
18
  `).join(`
19
- `+s),t.push(i+"m+"+Mn.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=ky()+e+" "+t[0]}function ky(){return oe.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Ty(...t){return process.stderr.write(Tn.format(...t)+`
20
- `)}function My(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function qy(){return process.env.DEBUG}function Ny(t){t.inspectOpts={};let e=Object.keys(oe.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=oe.inspectOpts[e[r]]}Mn.exports=Is()(oe);var{formatters:Jf}=Mn.exports;Jf.o=function(t){return this.inspectOpts.colors=this.useColors,Tn.inspect(t,this.inspectOpts).split(`
21
- `).map(e=>e.trim()).join(" ")};Jf.O=function(t){return this.inspectOpts.colors=this.useColors,Tn.inspect(t,this.inspectOpts)}});var Wf=y((Dw,As)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?As.exports=Hf():As.exports=zf()});var Vf=y((Ow,Yf)=>{var wr;Yf.exports=function(){if(!wr){try{wr=Wf()("follow-redirects")}catch{}typeof wr!="function"&&(wr=function(){})}wr.apply(null,arguments)}});var qs=y((Iw,Ms)=>{var xt=require("url"),Rs=xt.URL,Ly=require("http"),jy=require("https"),Zf=require("stream").Writable,ed=require("assert"),td=Vf(),ks=["abort","aborted","connect","error","socket","timeout"],Ts=Object.create(null);ks.forEach(function(t){Ts[t]=function(e,r,n){this._redirectable.emit(t,e,r,n)}});var $y=Sr("ERR_INVALID_URL","Invalid URL",TypeError),Kf=Sr("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),By=Sr("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),Uy=Sr("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Xy=Sr("ERR_STREAM_WRITE_AFTER_END","write after end");function Fe(t,e){Zf.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()}Fe.prototype=Object.create(Zf.prototype);Fe.prototype.abort=function(){nd(this._currentRequest),this.emit("abort")};Fe.prototype.write=function(t,e,r){if(this._ending)throw new Xy;if(!Et(t)&&!Jy(t))throw new TypeError("data should be a string, Buffer or Uint8Array");if(_r(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 Uy),this.abort())};Fe.prototype.end=function(t,e,r){if(_r(t)?(r=t,t=e=null):_r(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}};Fe.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};Fe.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};Fe.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){Fe.prototype[t]=function(e,r){return this._currentRequest[t](e,r)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(Fe.prototype,t,{get:function(){return this._currentRequest[t]}})});Fe.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))}};Fe.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 ks)n.on(i,Ts[i]);if(this._currentUrl=/^\//.test(this._options.path)?xt.format(this._options):this._options.path,this._isRedirect){var s=0,o=this,a=this._requestBodyBuffers;(function c(d){if(n===o._currentRequest)if(d)o.emit("error",d);else if(s<a.length){var u=a[s++];n.finished||n.write(u.data,u.encoding,c)}else o._ended&&n.end()})()}};Fe.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(nd(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new By);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=[],Fs(/^content-/i,this._options.headers));var o=Fs(/^host$/i,this._options.headers),a=xt.parse(this._currentUrl),c=o||a.host,d=/^\w+:/.test(r)?this._currentUrl:xt.format(Object.assign(a,{host:c})),u;try{u=xt.resolve(d,r)}catch(b){this.emit("error",new Kf({cause:b}));return}td("redirecting to",u),this._isRedirect=!0;var p=xt.parse(u);if(Object.assign(this._options,p),(p.protocol!==a.protocol&&p.protocol!=="https:"||p.host!==c&&!Hy(p.host,c))&&Fs(/^(?:authorization|cookie)$/i,this._options.headers),_r(i)){var g={headers:t.headers,statusCode:e},m={url:d,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 Kf({cause:b}))}};function rd(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(d,u,p){if(Et(d)){var g;try{g=Qf(new Rs(d))}catch{g=xt.parse(d)}if(!Et(g.protocol))throw new $y({input:d});d=g}else Rs&&d instanceof Rs?d=Qf(d):(p=u,u=d,d={protocol:i});return _r(u)&&(p=u,u=null),u=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},d,u),u.nativeProtocols=r,!Et(u.host)&&!Et(u.hostname)&&(u.hostname="::1"),ed.equal(u.protocol,i,"protocol mismatch"),td("options",u),new Fe(u,p)}function c(d,u,p){var g=o.request(d,u,p);return g.end(),g}Object.defineProperties(o,{request:{value:a,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),e}function Gy(){}function Qf(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 Fs(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 Sr(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 nd(t){for(var e of ks)t.removeListener(e,Ts[e]);t.on("error",Gy),t.abort()}function Hy(t,e){ed(Et(t)&&Et(e));var r=t.length-e.length-1;return r>0&&t[r]==="."&&t.endsWith(e)}function Et(t){return typeof t=="string"||t instanceof String}function _r(t){return typeof t=="function"}function Jy(t){return typeof t=="object"&&"length"in t}Ms.exports=rd({http:Ly,https:jy});Ms.exports.wrap=rd});var Ns=y((Aw,zy)=>{zy.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 ud=y((Rw,cd)=>{"use strict";var xr=Se(),id=Cs(),Wy=Ps(),Yy=Pn(),Vy=require("http"),Ky=require("https"),Qy=qs().http,Zy=qs().https,sd=require("url"),ev=require("zlib"),tv=Ns(),qn=In(),Ls=On(),od=/https:?/;function ad(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,ad(s,e,s.href)}}cd.exports=function(e){return new Promise(function(n,i){var s=function(P){n(P)},o=function(P){i(P)},a=e.data,c=e.headers;if("User-Agent"in c||"user-agent"in c?!c["User-Agent"]&&!c["user-agent"]&&(delete c["User-Agent"],delete c["user-agent"]):c["User-Agent"]="axios/"+tv.version,a&&!xr.isStream(a)){if(!Buffer.isBuffer(a))if(xr.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else if(xr.isString(a))a=Buffer.from(a,"utf-8");else return o(qn("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));c["Content-Length"]=a.length}var d=void 0;if(e.auth){var u=e.auth.username||"",p=e.auth.password||"";d=u+":"+p}var g=Wy(e.baseURL,e.url),m=sd.parse(g),b=m.protocol||"http:";if(!d&&m.auth){var S=m.auth.split(":"),x=S[0]||"",R=S[1]||"";d=x+":"+R}d&&delete c.Authorization;var L=od.test(b),j=L?e.httpsAgent:e.httpAgent,$={path:Yy(m.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:c,agent:j,agents:{http:e.httpAgent,https:e.httpsAgent},auth:d};e.socketPath?$.socketPath=e.socketPath:($.hostname=m.hostname,$.port=m.port);var H=e.proxy;if(!H&&H!==!1){var ne=b.slice(0,-1)+"_proxy",xe=process.env[ne]||process.env[ne.toUpperCase()];if(xe){var V=sd.parse(xe),D=process.env.no_proxy||process.env.NO_PROXY,q=!0;if(D){var T=D.split(",").map(function(P){return P.trim()});q=!T.some(function(P){return P?P==="*"||P[0]==="."&&m.hostname.substr(m.hostname.length-P.length)===P?!0:m.hostname===P:!1})}if(q&&(H={host:V.hostname,port:V.port,protocol:V.protocol},V.auth)){var J=V.auth.split(":");H.auth={username:J[0],password:J[1]}}}}H&&($.headers.host=m.hostname+(m.port?":"+m.port:""),ad($,H,b+"//"+m.hostname+(m.port?":"+m.port:"")+$.path));var I,X=L&&(H?od.test(H.protocol):!0);e.transport?I=e.transport:e.maxRedirects===0?I=X?Ky:Vy:(e.maxRedirects&&($.maxRedirects=e.maxRedirects),I=X?Zy:Qy),e.maxBodyLength>-1&&($.maxBodyLength=e.maxBodyLength);var O=I.request($,function(P){if(!O.aborted){var F=P,Ue=P.req||O;if(P.statusCode!==204&&Ue.method!=="HEAD"&&e.decompress!==!1)switch(P.headers["content-encoding"]){case"gzip":case"compress":case"deflate":F=F.pipe(ev.createUnzip()),delete P.headers["content-encoding"];break}var Xe={status:P.statusCode,statusText:P.statusMessage,headers:P.headers,config:e,request:Ue};if(e.responseType==="stream")Xe.data=F,id(s,o,Xe);else{var ie=[],ue=0;F.on("data",function(Ee){ie.push(Ee),ue+=Ee.length,e.maxContentLength>-1&&ue>e.maxContentLength&&(F.destroy(),o(qn("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,Ue)))}),F.on("error",function(Ee){O.aborted||o(Ls(Ee,e,null,Ue))}),F.on("end",function(){var Ee=Buffer.concat(ie);e.responseType!=="arraybuffer"&&(Ee=Ee.toString(e.responseEncoding),(!e.responseEncoding||e.responseEncoding==="utf8")&&(Ee=xr.stripBOM(Ee))),Xe.data=Ee,id(s,o,Xe)})}}});if(O.on("error",function(P){O.aborted&&P.code!=="ERR_FR_TOO_MANY_REDIRECTS"||o(Ls(P,e,null,O))}),e.timeout){var B=parseInt(e.timeout,10);if(isNaN(B)){o(qn("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",O));return}O.setTimeout(B,function(){O.abort(),o(qn("timeout of "+B+"ms exceeded",e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",O))})}e.cancelToken&&e.cancelToken.promise.then(function(P){O.aborted||(O.abort(),o(P))}),xr.isStream(a)?a.on("error",function(P){o(Ls(P,e,null,O))}).pipe(O):O.end(a)})}});var Ln=y((Fw,dd)=>{"use strict";var ae=Se(),ld=Ef(),rv=On(),nv={"Content-Type":"application/x-www-form-urlencoded"};function fd(t,e){!ae.isUndefined(t)&&ae.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function iv(){var t;return typeof XMLHttpRequest<"u"?t=Bf():typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"&&(t=ud()),t}function sv(t,e,r){if(ae.isString(t))try{return(e||JSON.parse)(t),ae.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}var Nn={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:iv(),transformRequest:[function(e,r){return ld(r,"Accept"),ld(r,"Content-Type"),ae.isFormData(e)||ae.isArrayBuffer(e)||ae.isBuffer(e)||ae.isStream(e)||ae.isFile(e)||ae.isBlob(e)?e:ae.isArrayBufferView(e)?e.buffer:ae.isURLSearchParams(e)?(fd(r,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):ae.isObject(e)||r&&r["Content-Type"]==="application/json"?(fd(r,"application/json"),sv(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&&ae.isString(e)&&e.length)try{return JSON.parse(e)}catch(o){if(s)throw o.name==="SyntaxError"?rv(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}};Nn.headers={common:{Accept:"application/json, text/plain, */*"}};ae.forEach(["delete","get","head"],function(e){Nn.headers[e]={}});ae.forEach(["post","put","patch"],function(e){Nn.headers[e]=ae.merge(nv)});dd.exports=Nn});var pd=y((kw,hd)=>{"use strict";var ov=Se(),av=Ln();hd.exports=function(e,r,n){var i=this||av;return ov.forEach(n,function(o){e=o.call(i,e,r)}),e}});var js=y((Tw,md)=>{"use strict";md.exports=function(e){return!!(e&&e.__CANCEL__)}});var vd=y((Mw,yd)=>{"use strict";var gd=Se(),$s=pd(),cv=js(),uv=Ln();function Bs(t){t.cancelToken&&t.cancelToken.throwIfRequested()}yd.exports=function(e){Bs(e),e.headers=e.headers||{},e.data=$s.call(e,e.data,e.headers,e.transformRequest),e.headers=gd.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),gd.forEach(["delete","get","head","post","put","patch","common"],function(i){delete e.headers[i]});var r=e.adapter||uv.adapter;return r(e).then(function(i){return Bs(e),i.data=$s.call(e,i.data,i.headers,e.transformResponse),i},function(i){return cv(i)||(Bs(e),i&&i.response&&(i.response.data=$s.call(e,i.response.data,i.response.headers,e.transformResponse))),Promise.reject(i)})}});var Us=y((qw,bd)=>{"use strict";var pe=Se();bd.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 c(g,m){return pe.isPlainObject(g)&&pe.isPlainObject(m)?pe.merge(g,m):pe.isPlainObject(m)?pe.merge({},m):pe.isArray(m)?m.slice():m}function d(g){pe.isUndefined(r[g])?pe.isUndefined(e[g])||(n[g]=c(void 0,e[g])):n[g]=c(e[g],r[g])}pe.forEach(i,function(m){pe.isUndefined(r[m])||(n[m]=c(void 0,r[m]))}),pe.forEach(s,d),pe.forEach(o,function(m){pe.isUndefined(r[m])?pe.isUndefined(e[m])||(n[m]=c(void 0,e[m])):n[m]=c(void 0,r[m])}),pe.forEach(a,function(m){m in r?n[m]=c(e[m],r[m]):m in e&&(n[m]=c(void 0,e[m]))});var u=i.concat(s).concat(o).concat(a),p=Object.keys(e).concat(Object.keys(r)).filter(function(m){return u.indexOf(m)===-1});return pe.forEach(p,d),n}});var Ed=y((Nw,xd)=>{"use strict";var _d=Ns(),Xs={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){Xs[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var wd={},lv=_d.version.split(".");function Sd(t,e){for(var r=e?e.split("."):lv,n=t.split("."),i=0;i<3;i++){if(r[i]>n[i])return!0;if(r[i]<n[i])return!1}return!1}Xs.transitional=function(e,r,n){var i=r&&Sd(r);function s(o,a){return"[Axios v"+_d.version+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return function(o,a,c){if(e===!1)throw new Error(s(a," has been removed in "+r));return i&&!wd[a]&&(wd[a]=!0,console.warn(s(a," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(o,a,c):!0}};function fv(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],c=a===void 0||o(a,s,t);if(c!==!0)throw new TypeError("option "+s+" must be "+c);continue}if(r!==!0)throw Error("Unknown option "+s)}}xd.exports={isOlderVersion:Sd,assertOptions:fv,validators:Xs}});var Ad=y((Lw,Id)=>{"use strict";var Dd=Se(),dv=Pn(),Cd=Sf(),Pd=vd(),jn=Us(),Od=Ed(),Kt=Od.validators;function Er(t){this.defaults=t,this.interceptors={request:new Cd,response:new Cd}}Er.prototype.request=function(e){typeof e=="string"?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=jn(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&&Od.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=[Pd,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 c=e;n.length;){var d=n.shift(),u=n.shift();try{c=d(c)}catch(p){u(p);break}}try{o=Pd(c)}catch(p){return Promise.reject(p)}for(;s.length;)o=o.then(s.shift(),s.shift());return o};Er.prototype.getUri=function(e){return e=jn(this.defaults,e),dv(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};Dd.forEach(["delete","get","head","options"],function(e){Er.prototype[e]=function(r,n){return this.request(jn(n||{},{method:e,url:r,data:(n||{}).data}))}});Dd.forEach(["post","put","patch"],function(e){Er.prototype[e]=function(r,n,i){return this.request(jn(i||{},{method:e,url:r,data:n}))}});Id.exports=Er});var Hs=y((jw,Rd)=>{"use strict";function Gs(t){this.message=t}Gs.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};Gs.prototype.__CANCEL__=!0;Rd.exports=Gs});var kd=y(($w,Fd)=>{"use strict";var hv=Hs();function $n(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 hv(i),e(r.reason))})}$n.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};$n.source=function(){var e,r=new $n(function(i){e=i});return{token:r,cancel:e}};Fd.exports=$n});var Md=y((Bw,Td)=>{"use strict";Td.exports=function(e){return function(n){return e.apply(null,n)}}});var Nd=y((Uw,qd)=>{"use strict";qd.exports=function(e){return typeof e=="object"&&e.isAxiosError===!0}});var $d=y((Xw,Js)=>{"use strict";var Ld=Se(),pv=ws(),Bn=Ad(),mv=Us(),gv=Ln();function jd(t){var e=new Bn(t),r=pv(Bn.prototype.request,e);return Ld.extend(r,Bn.prototype,e),Ld.extend(r,e),r}var $e=jd(gv);$e.Axios=Bn;$e.create=function(e){return jd(mv($e.defaults,e))};$e.Cancel=Hs();$e.CancelToken=kd();$e.isCancel=js();$e.all=function(e){return Promise.all(e)};$e.spread=Md();$e.isAxiosError=Nd();Js.exports=$e;Js.exports.default=$e});var zs=y((Gw,Bd)=>{Bd.exports=$d()});var Z=y(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.isUndefined=Ie.fixName=Ie.validateName=Ie.validateSingleChar=Ie.fixChar=Ie.validateChar=void 0;function Cv(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}Ie.validateChar=Cv;function Pv(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}Ie.fixChar=Pv;function Dv(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}Ie.validateSingleChar=Dv;function Ov(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 c=t.charCodeAt(o+1);if(a>=55296&&a<=56191&&c>=56320&&c<=57343){o++;continue}return!1}}return!0}Ie.validateName=Ov;function Iv(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 c=t.charCodeAt(a);if(c===58||c===95||c===45||c===46||c===183||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||c>=192&&c<=214||c>=216&&c<=246||c>=248&&c<=767||c>=768&&c<=879||c>=880&&c<=893||c>=895&&c<=8191||c>=8204&&c<=8205||c>=8255&&c<=8256||c>=8304&&c<=8591||c>=11264&&c<=12271||c>=12289&&c<=55295||c>=63744&&c<=64975||c>=65008&&c<=65533){e+=t[a];continue}if(a+1===t.length)return e+="\uFFFD",e;var d=t.charCodeAt(a+1);if(c>=55296&&c<=56191&&d>=56320&&d<=57343){e+=t[a]+t[a+1],a++;continue}e+="\uFFFD"}return e}Ie.fixName=Iv;function Av(t){return Object.prototype.toString.call(t)==="[object Undefined]"}Ie.isUndefined=Av});var Qt=y(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.StringOptions=void 0;var Hn=Z(),Rv=function(){function t(e){this.doubleQuotes=!1,this.indent=" ",this.newline=`
22
- `,this.pretty=!0,(0,Hn.isUndefined)(e.doubleQuotes)||(this.doubleQuotes=e.doubleQuotes),(0,Hn.isUndefined)(e.indent)||(this.indent=e.indent),(0,Hn.isUndefined)(e.newline)||(this.newline=e.newline),(0,Hn.isUndefined)(e.pretty)||(this.pretty=e.pretty)}return t}();Jn.StringOptions=Rv});var zn=y(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.escapeDoubleQuotes=Te.escapeSingleQuotes=Te.escapeRightAngleBracketsInCdataTerminator=Te.escapeLeftAngleBrackets=Te.escapeAmpersands=void 0;function Fv(t){return t.replace(/&/g,"&amp;")}Te.escapeAmpersands=Fv;function kv(t){return t.replace(/</g,"&lt;")}Te.escapeLeftAngleBrackets=kv;function Tv(t){return t.replace(/]]>/g,"]]&gt;")}Te.escapeRightAngleBracketsInCdataTerminator=Tv;function Mv(t){return t.replace(/'/g,"&apos;")}Te.escapeSingleQuotes=Mv;function qv(t){return t.replace(/"/g,"&quot;")}Te.escapeDoubleQuotes=qv});var co=y(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});var Nv=ce(),dh=zn(),oo=Z(),Lv=function(){function t(e,r,n){this._validation=r,(0,oo.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,oo.fixChar)(e);else if(this._validation&&!(0,oo.validateChar)(e))throw new Error((0,Nv.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,dh.escapeAmpersands)(e),e=(0,dh.escapeLeftAngleBrackets)(e),e},t.prototype.up=function(){return this._parent},t}();ao.default=Lv});var Wn=y(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});var hh=ce(),ph=Z(),jv=function(){function t(e,r,n){this._hex=!1,this._validation=r,this._parent=e,this.char=n.char,(0,ph.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,ph.validateSingleChar)(e))throw new Error((0,hh.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,hh.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}();uo.default=jv});var Yn=y(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});var $v=ce(),Bv=Z(),Uv=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,Bv.validateName)(e))throw new Error((0,$v.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}();lo.default=Uv});var Vn=y(Cr=>{"use strict";var po=Cr&&Cr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Cr,"__esModule",{value:!0});var fo=ce(),mh=zn(),Xv=Qt(),ho=Z(),Gv=po(co()),Hv=po(Wn()),Jv=po(Yn()),zv=function(){function t(e,r,n){this._validation=r,(0,ho.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,ho.fixName)(e),e.length===0)throw new Error((0,fo.getContext)(this.up())+": attribute name should not be empty")}else if(this._validation&&!(0,ho.validateName)(e))throw e.length===0?new Error((0,fo.getContext)(this.up())+": attribute name should not be empty"):new Error((0,fo.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 Hv.default(this,this._validation,e);return this._children.push(r),r},t.prototype.entityRef=function(e){var r=new Jv.default(this,this._validation,e);return this._children.push(r),r},t.prototype.text=function(e){var r=new Gv.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});for(var r=new Xv.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,mh.escapeDoubleQuotes)(a.toString()):i+=(0,mh.escapeSingleQuotes)(a.toString())}return i+=n,i},t.prototype.up=function(){return this._parent},t}();Cr.default=zv});var go=y(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});var Wv=ce(),Yv=Z(),Vv=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,Yv.validateChar)(e))throw new Error((0,Wv.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}();mo.default=Vv});var vo=y(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});var Kv=ce(),Qv=Z(),Zv=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,Qv.validateChar)(e))throw new Error((0,Kv.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}();yo.default=Zv});var wo=y(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});var e1=ce(),t1=Z(),r1=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,t1.validateChar)(e))throw new Error((0,e1.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}();bo.default=r1});var So=y(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});var n1=ce(),i1=Z(),s1=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,i1.validateChar)(e))throw new Error((0,n1.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}();_o.default=s1});var Eo=y(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});var o1=ce(),a1=Z(),c1=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,a1.validateName)(e))throw new Error((0,o1.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}();xo.default=c1});var Pr=y(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});var Kn=ce(),Qn=Z(),u1=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,Qn.isUndefined)(e)){if(this._validation&&!(0,Qn.validateChar)(e))throw new Error((0,Kn.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,Kn.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,Qn.validateName)(e))throw new Error((0,Kn.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,Kn.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,Qn.isUndefined)(this._content)?"<?"+this._target+"?>":"<?"+this._target+" "+this._content+"?>"},t.prototype.up=function(){return this._parent},t}();Co.default=u1});var Zn=y(Dt=>{"use strict";var Ot=Dt&&Dt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Dt,"__esModule",{value:!0});Dt.validatePubId=void 0;var ht=ce(),l1=Qt(),We=Z(),f1=Ot(Dr()),d1=Ot(go()),h1=Ot(vo()),p1=Ot(wo()),m1=Ot(So()),g1=Ot(Eo()),y1=Ot(Pr()),v1=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,We.isUndefined)(n.sysId)||(this.sysId=n.sysId),(0,We.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,We.validateName)(e))throw new Error((0,ht.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,We.isUndefined)(e)){if(this._validation&&!gh(e))throw new Error((0,ht.getContext)(this.up())+": DTD public"+(' identifier "'+e+'" should not contain')+" characters not allowed in public identifiers");if(this._validation&&(0,We.isUndefined)(this._sysId))throw new Error((0,ht.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,We.isUndefined)(e)){if(this._validation&&!(0,We.validateChar)(e))throw new Error((0,ht.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,ht.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 d1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.comment=function(e){var r=new f1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.element=function(e){var r=new h1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.entity=function(e){var r=new p1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.notation=function(e){var r=new m1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.paramEntityRef=function(e){var r=new g1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.procInst=function(e){var r=new y1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});var r=new l1.StringOptions(e),n="<!DOCTYPE "+this._name;if((0,We.isUndefined)(this._pubId))(0,We.isUndefined)(this._sysId)||(n+=" ",n=this.appendId("SYSTEM",this._sysId,n,r));else{if((0,We.isUndefined)(this._sysId))throw new Error((0,ht.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,ht.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,ht.getContext)(this)+": doubleQuotes option inconsistent with DTD system identifier or public identifier");n+="'"+r+"'"}return n},t}();Dt.default=v1;function gh(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}Dt.validatePubId=gh});var Oo=y(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});var yh=ce(),Po=Z(),b1=function(){function t(e,r,n){this._validation=r,(0,Po.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,Po.fixChar)(e);else if(this._validation&&!(0,Po.validateChar)(e))throw new Error((0,yh.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,yh.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}();Do.default=b1});var Fo=y(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});var w1=ce(),Io=zn(),Ao=Z(),_1=function(){function t(e,r,n){this._validation=r,(0,Ao.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,Ao.fixChar)(e);else if(this._validation&&!(0,Ao.validateChar)(e))throw new Error((0,w1.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,Io.escapeAmpersands)(e),e=(0,Io.escapeLeftAngleBrackets)(e),e=(0,Io.escapeRightAngleBracketsInCdataTerminator)(e),e},t.prototype.up=function(){return this._parent},t}();Ro.default=_1});var ni=y(Ar=>{"use strict";var It=Ar&&Ar.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ar,"__esModule",{value:!0});var ei=ce(),S1=Qt(),Or=Z(),vh=It(Vn()),x1=It(Oo()),Ir=It(Fo()),ti=It(Wn()),E1=It(Dr()),ri=It(Yn()),C1=It(Pr()),P1=function(){function t(e,r,n){this._validation=r,(0,Or.isUndefined)(n.replaceInvalidCharsInName)?this._replaceInvalidCharsInName=!1:this._replaceInvalidCharsInName=n.replaceInvalidCharsInName,(0,Or.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,Or.fixName)(e),e.length===0)throw new Error((0,ei.getContext)(this.up())+": element name should not be empty")}else if(this._validation&&!(0,Or.validateName)(e))throw e.length===0?new Error((0,ei.getContext)(this.up())+": element name should not be empty"):new Error((0,ei.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,ei.getContext)(this.up())+': element "'+this.name+'" already contains an attribute with the'+(' name "'+e.name+'"'));var r=new vh.default(this,this._validation,e);return this._children.push(r),this._attributeNames.push(e.name),r},t.prototype.cdata=function(e){var r=new x1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.charData=function(e){var r=new Ir.default(this,this._validation,e);return this._children.push(r),r},t.prototype.charRef=function(e){var r=new ti.default(this,this._validation,e);return this._children.push(r),r},t.prototype.comment=function(e){var r=new E1.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 ri.default(this,this._validation,e);return this._children.push(r),r},t.prototype.procInst=function(e){var r=new C1.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 S1.StringOptions(e),i=r+n.indent,s="<"+this._name,o=[],a=0,c=this._children;a<c.length;a++){var d=c[a];d instanceof vh.default?s+=" "+d.toString(e):o.push(d)}if(o.length>0){for(var u="",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 Ir.default&&g.toString()===""||(n.pretty&&(this.allSameLineNodes(o)||p>0&&this.onSameLine(g,b)||(m=n.newline+i+m)),u+=m)}n.pretty&&(this.allSameLineNodes(o)||(u+=n.newline+r)),u.length===0&&this._useSelfClosingTagIfEmpty?s+="/>":s+=">"+u+"</"+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 ti.default||i instanceof ri.default||i instanceof Ir.default))return!1}return!0},t.prototype.onSameLine=function(e,r){return(e instanceof ti.default||e instanceof ri.default||e instanceof Ir.default)&&!(0,Or.isUndefined)(r)&&(r instanceof ti.default||r instanceof ri.default||r instanceof Ir.default)},t}();Ar.default=P1});var ce=y(Zt=>{"use strict";var si=Zt&&Zt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Zt,"__esModule",{value:!0});Zt.getContext=void 0;var D1=si(Vn()),O1=si(oi()),I1=si(Zn()),A1=si(ni());function ii(t){if(t instanceof D1.default)return ii(t.up())+(' > attribute "'+t.name+'"');if(t instanceof O1.default)return"in XML document";if(t instanceof I1.default)return ii(t.up())+" > DTD";if(t instanceof A1.default)return ii(t.up())+(' > element "'+t.name+'"');throw new Error("Unrecognized object of type "+Object.prototype.toString.call(t))}Zt.getContext=ii});var Dr=y(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});var ko=ce(),To=Z(),R1=function(){function t(e,r,n){this._validation=r,(0,To.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,To.fixChar)(e);else if(this._validation&&!(0,To.validateChar)(e))throw new Error((0,ko.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,ko.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,ko.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}();Mo.default=R1});var Lo=y(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});var qo=ce(),F1=Qt(),Rr=Z(),k1=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,Rr.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,Rr.isUndefined)(e)&&!T1(e))throw new Error((0,qo.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,Rr.isUndefined)(e)&&e!=="yes"&&e!=="no")throw new Error((0,qo.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&&!M1(e))throw new Error((0,qo.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 F1.StringOptions(e),n=r.doubleQuotes?'"':"'",i="<?xml version="+n+this._version+n;return(0,Rr.isUndefined)(this._encoding)||(i+=" encoding="+n+this._encoding+n),(0,Rr.isUndefined)(this._standalone)||(i+=" standalone="+n+this._standalone+n),i+="?>",i},t.prototype.up=function(){return this._parent},t}();No.default=k1;function T1(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 M1(t){for(var e=0;e<=9;e++)if(t==="1."+e)return!0;return!1}});var oi=y(kr=>{"use strict";var Tr=kr&&kr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(kr,"__esModule",{value:!0});var q1=Qt(),N1=Z(),L1=Tr(Dr()),bh=Tr(Lo()),wh=Tr(Zn()),Fr=Tr(ni()),j1=Tr(Pr()),$1=function(){function t(e){this._children=[],this._validation=(0,N1.isUndefined)(e.validation)?!0:e.validation}return t.prototype.comment=function(e){var r=new L1.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 bh.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 Fr.default});if(this._validation&&r.length!==0)throw new Error("in XML document: DTD must precede the root element");var n=new wh.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 Fr.default});if(this._validation&&r.length!==0)throw new Error("in XML document: only one root element is permitted");var n=new Fr.default(this,this._validation,e);return this._children.push(n),n},t.prototype.procInst=function(e){var r=new j1.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(d){return d instanceof Fr.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 q1.StringOptions(e),i="",s=0,o=this._children;s<o.length;s++){var a=o[s];a instanceof bh.default||a instanceof wh.default||a instanceof Fr.default?i+=a.toString(e):i+=a.toString(),n.pretty&&(i+=n.newline)}var c=i.length-n.newline.length;return i.substr(c)===n.newline&&(i=i.substr(0,c)),i},t}();kr.default=$1});var _h=y(k=>{"use strict";var te=k&&k.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(k,"__esModule",{value:!0});k.document=k.XmlProcInst=k.XmlEntityRef=k.XmlElement=k.XmlDtdParamEntityRef=k.XmlDtdNotation=k.XmlDtdEntity=k.XmlDtdElement=k.XmlDtdAttlist=k.XmlDtd=k.XmlDocument=k.XmlDecl=k.XmlComment=k.XmlCharRef=k.XmlCharData=k.XmlCdata=k.XmlAttributeText=k.XmlAttribute=void 0;var B1=te(oi()),U1=Vn();Object.defineProperty(k,"XmlAttribute",{enumerable:!0,get:function(){return te(U1).default}});var X1=co();Object.defineProperty(k,"XmlAttributeText",{enumerable:!0,get:function(){return te(X1).default}});var G1=Oo();Object.defineProperty(k,"XmlCdata",{enumerable:!0,get:function(){return te(G1).default}});var H1=Fo();Object.defineProperty(k,"XmlCharData",{enumerable:!0,get:function(){return te(H1).default}});var J1=Wn();Object.defineProperty(k,"XmlCharRef",{enumerable:!0,get:function(){return te(J1).default}});var z1=Dr();Object.defineProperty(k,"XmlComment",{enumerable:!0,get:function(){return te(z1).default}});var W1=Lo();Object.defineProperty(k,"XmlDecl",{enumerable:!0,get:function(){return te(W1).default}});var Y1=oi();Object.defineProperty(k,"XmlDocument",{enumerable:!0,get:function(){return te(Y1).default}});var V1=Zn();Object.defineProperty(k,"XmlDtd",{enumerable:!0,get:function(){return te(V1).default}});var K1=go();Object.defineProperty(k,"XmlDtdAttlist",{enumerable:!0,get:function(){return te(K1).default}});var Q1=vo();Object.defineProperty(k,"XmlDtdElement",{enumerable:!0,get:function(){return te(Q1).default}});var Z1=wo();Object.defineProperty(k,"XmlDtdEntity",{enumerable:!0,get:function(){return te(Z1).default}});var eb=So();Object.defineProperty(k,"XmlDtdNotation",{enumerable:!0,get:function(){return te(eb).default}});var tb=Eo();Object.defineProperty(k,"XmlDtdParamEntityRef",{enumerable:!0,get:function(){return te(tb).default}});var rb=ni();Object.defineProperty(k,"XmlElement",{enumerable:!0,get:function(){return te(rb).default}});var nb=Yn();Object.defineProperty(k,"XmlEntityRef",{enumerable:!0,get:function(){return te(nb).default}});var ib=Pr();Object.defineProperty(k,"XmlProcInst",{enumerable:!0,get:function(){return te(ib).default}});function sb(t){return t===void 0&&(t={}),new B1.default(t)}k.document=sb});var jo=y(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.stringify=re.isMap=re.isSet=re.isFunction=re.isArray=re.isObject=re.isNull=re.isUndefined=void 0;function Sh(t){return Object.prototype.toString.call(t)==="[object Undefined]"}re.isUndefined=Sh;function xh(t){return Object.prototype.toString.call(t)==="[object Null]"}re.isNull=xh;function ob(t){return Object.prototype.toString.call(t)==="[object Object]"}re.isObject=ob;function ab(t){return Object.prototype.toString.call(t)==="[object Array]"}re.isArray=ab;function Eh(t){return Object.prototype.toString.call(t)==="[object Function]"}re.isFunction=Eh;function cb(t){return Object.prototype.toString.call(t)==="[object Set]"}re.isSet=cb;function ub(t){return Object.prototype.toString.call(t)==="[object Map]"}re.isMap=ub;function lb(t){return!Sh(t)&&!xh(t)&&Eh(t?.toString)&&(t=t.toString()),String(t)}re.stringify=lb});var Ah=y(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.WrapHandlers=Ae.TypeHandlers=Ae.FormatOptions=Ae.DtdOptions=Ae.DeclarationOptions=Ae.Options=void 0;var Be=jo(),fb=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,Be.isUndefined)(e.validation)||(this.validation=e.validation),(0,Be.isUndefined)(e.aliasString)||(this.aliasString=e.aliasString),(0,Be.isUndefined)(e.attributeString)||(this.attributeString=e.attributeString),(0,Be.isUndefined)(e.cdataInvalidChars)||(this.cdataInvalidChars=e.cdataInvalidChars),(0,Be.isUndefined)(e.cdataKeys)||(this.cdataKeys=e.cdataKeys),this.declaration=new Ch(e.declaration),this.dtd=new Ph(this.validation,e.dtd),this.format=new Dh(e.format),(0,Be.isUndefined)(e.replaceInvalidChars)||(this.replaceInvalidChars=e.replaceInvalidChars),this.typeHandlers=new Oh(e.typeHandlers),(0,Be.isUndefined)(e.useSelfClosingTagIfEmpty)||(this.useSelfClosingTagIfEmpty=e.useSelfClosingTagIfEmpty),(0,Be.isUndefined)(e.valueString)||(this.valueString=e.valueString),this.wrapHandlers=new Ih(e.wrapHandlers)}return t}();Ae.Options=fb;var Ch=function(){function t(e){e===void 0&&(e={}),this.include=!0,(0,Be.isUndefined)(e.include)||(this.include=e.include),this.encoding=e.encoding,this.standalone=e.standalone,this.version=e.version}return t}();Ae.DeclarationOptions=Ch;var Ph=function(){function t(e,r){if(r===void 0&&(r={}),this.include=!1,(0,Be.isUndefined)(r.include)||(this.include=r.include),e&&(0,Be.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}();Ae.DtdOptions=Ph;var Dh=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}();Ae.FormatOptions=Dh;var Oh=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}();Ae.TypeHandlers=Oh;var Ih=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}();Ae.WrapHandlers=Ih});var qh=y(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.parse=pt.parseToExistingElement=pt.Absent=void 0;var Fh=_h(),kh=Ah(),K=jo(),$o=function(){function t(){}return Object.defineProperty(t,"instance",{get:function(){return t._instance},enumerable:!1,configurable:!0}),t._instance=new t,t}();pt.Absent=$o;function Bo(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 Th(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 Fh.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 db(t,e,r,n){var i=r.attribute({name:t,replaceInvalidCharsInName:n.replaceInvalidChars});Th((0,K.stringify)(e),i,n)}function Rh(t,e,r,n){if(t===n.aliasString){r.name=(0,K.stringify)(e);return}if(t.indexOf(n.attributeString)===0&&(0,K.isObject)(e)){for(var i=0,s=Object.keys(e);i<s.length;i++){var o=s[i];db(o,(0,K.stringify)(e[o]),r,n)}return}if(t.indexOf(n.valueString)===0){ai(t,(0,K.stringify)(e),r,n);return}var a=r;if(!(0,K.isArray)(e)&&!(0,K.isSet)(e)){var c=Bo(e,n);if(!(0,K.isUndefined)(c)&&c(e)===$o.instance)return;a=r.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty})}ai(t,e,a,n)}function hb(t,e,r){if((0,K.isMap)(t))t.forEach(function(o,a){Rh((0,K.stringify)(a),o,e,r)});else for(var n=0,i=Object.keys(t);n<i.length;n++){var s=i[n];Rh(s,t[s],e,r)}}function pb(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,K.isUndefined)(i)){var a=i(s,e);(0,K.isNull)(a)||(s=a,o=r.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty}))}e.forEach(function(c){var d=o;if(!(0,K.isArray)(c)&&!(0,K.isSet)(c)){var u=Bo(c,n);if(!(0,K.isUndefined)(u)&&u(c)===$o.instance)return;d=o.element({name:s,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty})}ai(s,c,d,n)})}function ai(t,e,r,n){var i=Bo(e,n);if((0,K.isUndefined)(i)||(e=i(e)),(0,K.isObject)(e)||(0,K.isMap)(e)){hb(e,r,n);return}if((0,K.isArray)(e)||(0,K.isSet)(e)){pb(t,e,r,n);return}Th((0,K.stringify)(e),r,n)}function Mh(t,e,r){var n=new kh.Options(r);ai(t.name,e,t,n)}pt.parseToExistingElement=Mh;function mb(t,e,r){var n=new kh.Options(r),i=new Fh.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 Mh(s,e,r),i.toString(n.format)}pt.parse=mb});var Fb={};Wo(Fb,{IS_COMPONENT_LIBRARY:()=>ys,PROJECT_ALIASES:()=>of,getBuildPages:()=>vr,getConfig:()=>he,logInfo:()=>Ve,logPageSize:()=>zl,resolveComponentsPath:()=>ft,startRender:()=>rp});module.exports=Vo(Fb);var tp=require("node:child_process"),Ho=A(require("node:fs")),ui=A(require("node:path"));var hf=A(rt());var Ke=A(require("node:path")),je=A(vt());var Le=A(require("node:fs")),Ne=A(require("node:path")),_e=A(vt());var Bl=A(require("node:path")),bn=A(an()),Ul=A(rt()),Ge=A(vt()),Xl=A(xl()),ss=A(vn());Ul.default.config();var z2=!!process.env.GRIDDO_DEBUG_LOGS&&!!JSON.parse(process.env.GRIDDO_DEBUG_LOGS),Ag=!!process.env.GRIDDO_BUILD_LOGS&&!!JSON.parse(process.env.GRIDDO_BUILD_LOGS)||!!process.env.LOGS&&!!JSON.parse(process.env.LOGS),Gl=ss.default.sync(__dirname),W2=ss.default.sync();function Hl(t){let e=[];return Ge.default.readdirSync(t).forEach(n=>{let i=`${t}/${n}`;e.push(i)}),e}function He(t,e="",r=1,n=1){let i=t.split(`
19
+ `+s),t.push(i+"m+"+Tn.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Ay()+e+" "+t[0]}function Ay(){return oe.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Ry(...t){return process.stderr.write(kn.format(...t)+`
20
+ `)}function Fy(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function ky(){return process.env.DEBUG}function Ty(t){t.inspectOpts={};let e=Object.keys(oe.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=oe.inspectOpts[e[r]]}Tn.exports=Is()(oe);var{formatters:Hf}=Tn.exports;Hf.o=function(t){return this.inspectOpts.colors=this.useColors,kn.inspect(t,this.inspectOpts).split(`
21
+ `).map(e=>e.trim()).join(" ")};Hf.O=function(t){return this.inspectOpts.colors=this.useColors,kn.inspect(t,this.inspectOpts)}});var zf=y((vw,As)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?As.exports=Gf():As.exports=Jf()});var Yf=y((bw,Wf)=>{var vr;Wf.exports=function(){if(!vr){try{vr=zf()("follow-redirects")}catch{}typeof vr!="function"&&(vr=function(){})}vr.apply(null,arguments)}});var qs=y((ww,Ms)=>{var xt=require("url"),Rs=xt.URL,My=require("http"),qy=require("https"),Qf=require("stream").Writable,Zf=require("assert"),ed=Yf(),ks=["abort","aborted","connect","error","socket","timeout"],Ts=Object.create(null);ks.forEach(function(t){Ts[t]=function(e,r,n){this._redirectable.emit(t,e,r,n)}});var Ny=wr("ERR_INVALID_URL","Invalid URL",TypeError),Vf=wr("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),jy=wr("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),Ly=wr("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),$y=wr("ERR_STREAM_WRITE_AFTER_END","write after end");function Fe(t,e){Qf.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()}Fe.prototype=Object.create(Qf.prototype);Fe.prototype.abort=function(){rd(this._currentRequest),this.emit("abort")};Fe.prototype.write=function(t,e,r){if(this._ending)throw new $y;if(!Et(t)&&!Xy(t))throw new TypeError("data should be a string, Buffer or Uint8Array");if(br(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 Ly),this.abort())};Fe.prototype.end=function(t,e,r){if(br(t)?(r=t,t=e=null):br(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}};Fe.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};Fe.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};Fe.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){Fe.prototype[t]=function(e,r){return this._currentRequest[t](e,r)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(Fe.prototype,t,{get:function(){return this._currentRequest[t]}})});Fe.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))}};Fe.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 ks)n.on(i,Ts[i]);if(this._currentUrl=/^\//.test(this._options.path)?xt.format(this._options):this._options.path,this._isRedirect){var s=0,o=this,a=this._requestBodyBuffers;(function c(d){if(n===o._currentRequest)if(d)o.emit("error",d);else if(s<a.length){var u=a[s++];n.finished||n.write(u.data,u.encoding,c)}else o._ended&&n.end()})()}};Fe.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(rd(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new jy);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=[],Fs(/^content-/i,this._options.headers));var o=Fs(/^host$/i,this._options.headers),a=xt.parse(this._currentUrl),c=o||a.host,d=/^\w+:/.test(r)?this._currentUrl:xt.format(Object.assign(a,{host:c})),u;try{u=xt.resolve(d,r)}catch(b){this.emit("error",new Vf({cause:b}));return}ed("redirecting to",u),this._isRedirect=!0;var p=xt.parse(u);if(Object.assign(this._options,p),(p.protocol!==a.protocol&&p.protocol!=="https:"||p.host!==c&&!Uy(p.host,c))&&Fs(/^(?:authorization|cookie)$/i,this._options.headers),br(i)){var g={headers:t.headers,statusCode:e},m={url:d,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 Vf({cause:b}))}};function td(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(d,u,p){if(Et(d)){var g;try{g=Kf(new Rs(d))}catch{g=xt.parse(d)}if(!Et(g.protocol))throw new Ny({input:d});d=g}else Rs&&d instanceof Rs?d=Kf(d):(p=u,u=d,d={protocol:i});return br(u)&&(p=u,u=null),u=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},d,u),u.nativeProtocols=r,!Et(u.host)&&!Et(u.hostname)&&(u.hostname="::1"),Zf.equal(u.protocol,i,"protocol mismatch"),ed("options",u),new Fe(u,p)}function c(d,u,p){var g=o.request(d,u,p);return g.end(),g}Object.defineProperties(o,{request:{value:a,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),e}function By(){}function Kf(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 Fs(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 wr(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 rd(t){for(var e of ks)t.removeListener(e,Ts[e]);t.on("error",By),t.abort()}function Uy(t,e){Zf(Et(t)&&Et(e));var r=t.length-e.length-1;return r>0&&t[r]==="."&&t.endsWith(e)}function Et(t){return typeof t=="string"||t instanceof String}function br(t){return typeof t=="function"}function Xy(t){return typeof t=="object"&&"length"in t}Ms.exports=td({http:My,https:qy});Ms.exports.wrap=td});var Ns=y((_w,Gy)=>{Gy.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 cd=y((Sw,ad)=>{"use strict";var _r=Se(),nd=Cs(),Hy=Ps(),Jy=Cn(),zy=require("http"),Wy=require("https"),Yy=qs().http,Vy=qs().https,id=require("url"),Ky=require("zlib"),Qy=Ns(),Mn=On(),js=Dn(),sd=/https:?/;function od(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,od(s,e,s.href)}}ad.exports=function(e){return new Promise(function(n,i){var s=function(P){n(P)},o=function(P){i(P)},a=e.data,c=e.headers;if("User-Agent"in c||"user-agent"in c?!c["User-Agent"]&&!c["user-agent"]&&(delete c["User-Agent"],delete c["user-agent"]):c["User-Agent"]="axios/"+Qy.version,a&&!_r.isStream(a)){if(!Buffer.isBuffer(a))if(_r.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else if(_r.isString(a))a=Buffer.from(a,"utf-8");else return o(Mn("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));c["Content-Length"]=a.length}var d=void 0;if(e.auth){var u=e.auth.username||"",p=e.auth.password||"";d=u+":"+p}var g=Hy(e.baseURL,e.url),m=id.parse(g),b=m.protocol||"http:";if(!d&&m.auth){var S=m.auth.split(":"),x=S[0]||"",R=S[1]||"";d=x+":"+R}d&&delete c.Authorization;var j=sd.test(b),L=j?e.httpsAgent:e.httpAgent,$={path:Jy(m.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:c,agent:L,agents:{http:e.httpAgent,https:e.httpsAgent},auth:d};e.socketPath?$.socketPath=e.socketPath:($.hostname=m.hostname,$.port=m.port);var H=e.proxy;if(!H&&H!==!1){var ne=b.slice(0,-1)+"_proxy",xe=process.env[ne]||process.env[ne.toUpperCase()];if(xe){var V=id.parse(xe),D=process.env.no_proxy||process.env.NO_PROXY,q=!0;if(D){var T=D.split(",").map(function(P){return P.trim()});q=!T.some(function(P){return P?P==="*"||P[0]==="."&&m.hostname.substr(m.hostname.length-P.length)===P?!0:m.hostname===P:!1})}if(q&&(H={host:V.hostname,port:V.port,protocol:V.protocol},V.auth)){var J=V.auth.split(":");H.auth={username:J[0],password:J[1]}}}}H&&($.headers.host=m.hostname+(m.port?":"+m.port:""),od($,H,b+"//"+m.hostname+(m.port?":"+m.port:"")+$.path));var I,X=j&&(H?sd.test(H.protocol):!0);e.transport?I=e.transport:e.maxRedirects===0?I=X?Wy:zy:(e.maxRedirects&&($.maxRedirects=e.maxRedirects),I=X?Vy:Yy),e.maxBodyLength>-1&&($.maxBodyLength=e.maxBodyLength);var O=I.request($,function(P){if(!O.aborted){var F=P,Ue=P.req||O;if(P.statusCode!==204&&Ue.method!=="HEAD"&&e.decompress!==!1)switch(P.headers["content-encoding"]){case"gzip":case"compress":case"deflate":F=F.pipe(Ky.createUnzip()),delete P.headers["content-encoding"];break}var Xe={status:P.statusCode,statusText:P.statusMessage,headers:P.headers,config:e,request:Ue};if(e.responseType==="stream")Xe.data=F,nd(s,o,Xe);else{var ie=[],ue=0;F.on("data",function(Ee){ie.push(Ee),ue+=Ee.length,e.maxContentLength>-1&&ue>e.maxContentLength&&(F.destroy(),o(Mn("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,Ue)))}),F.on("error",function(Ee){O.aborted||o(js(Ee,e,null,Ue))}),F.on("end",function(){var Ee=Buffer.concat(ie);e.responseType!=="arraybuffer"&&(Ee=Ee.toString(e.responseEncoding),(!e.responseEncoding||e.responseEncoding==="utf8")&&(Ee=_r.stripBOM(Ee))),Xe.data=Ee,nd(s,o,Xe)})}}});if(O.on("error",function(P){O.aborted&&P.code!=="ERR_FR_TOO_MANY_REDIRECTS"||o(js(P,e,null,O))}),e.timeout){var B=parseInt(e.timeout,10);if(isNaN(B)){o(Mn("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",O));return}O.setTimeout(B,function(){O.abort(),o(Mn("timeout of "+B+"ms exceeded",e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",O))})}e.cancelToken&&e.cancelToken.promise.then(function(P){O.aborted||(O.abort(),o(P))}),_r.isStream(a)?a.on("error",function(P){o(js(P,e,null,O))}).pipe(O):O.end(a)})}});var Nn=y((xw,fd)=>{"use strict";var ae=Se(),ud=xf(),Zy=Dn(),ev={"Content-Type":"application/x-www-form-urlencoded"};function ld(t,e){!ae.isUndefined(t)&&ae.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function tv(){var t;return typeof XMLHttpRequest<"u"?t=$f():typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"&&(t=cd()),t}function rv(t,e,r){if(ae.isString(t))try{return(e||JSON.parse)(t),ae.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}var qn={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:tv(),transformRequest:[function(e,r){return ud(r,"Accept"),ud(r,"Content-Type"),ae.isFormData(e)||ae.isArrayBuffer(e)||ae.isBuffer(e)||ae.isStream(e)||ae.isFile(e)||ae.isBlob(e)?e:ae.isArrayBufferView(e)?e.buffer:ae.isURLSearchParams(e)?(ld(r,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):ae.isObject(e)||r&&r["Content-Type"]==="application/json"?(ld(r,"application/json"),rv(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&&ae.isString(e)&&e.length)try{return JSON.parse(e)}catch(o){if(s)throw o.name==="SyntaxError"?Zy(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}};qn.headers={common:{Accept:"application/json, text/plain, */*"}};ae.forEach(["delete","get","head"],function(e){qn.headers[e]={}});ae.forEach(["post","put","patch"],function(e){qn.headers[e]=ae.merge(ev)});fd.exports=qn});var hd=y((Ew,dd)=>{"use strict";var nv=Se(),iv=Nn();dd.exports=function(e,r,n){var i=this||iv;return nv.forEach(n,function(o){e=o.call(i,e,r)}),e}});var Ls=y((Cw,pd)=>{"use strict";pd.exports=function(e){return!!(e&&e.__CANCEL__)}});var yd=y((Pw,gd)=>{"use strict";var md=Se(),$s=hd(),sv=Ls(),ov=Nn();function Bs(t){t.cancelToken&&t.cancelToken.throwIfRequested()}gd.exports=function(e){Bs(e),e.headers=e.headers||{},e.data=$s.call(e,e.data,e.headers,e.transformRequest),e.headers=md.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),md.forEach(["delete","get","head","post","put","patch","common"],function(i){delete e.headers[i]});var r=e.adapter||ov.adapter;return r(e).then(function(i){return Bs(e),i.data=$s.call(e,i.data,i.headers,e.transformResponse),i},function(i){return sv(i)||(Bs(e),i&&i.response&&(i.response.data=$s.call(e,i.response.data,i.response.headers,e.transformResponse))),Promise.reject(i)})}});var Us=y((Dw,vd)=>{"use strict";var pe=Se();vd.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 c(g,m){return pe.isPlainObject(g)&&pe.isPlainObject(m)?pe.merge(g,m):pe.isPlainObject(m)?pe.merge({},m):pe.isArray(m)?m.slice():m}function d(g){pe.isUndefined(r[g])?pe.isUndefined(e[g])||(n[g]=c(void 0,e[g])):n[g]=c(e[g],r[g])}pe.forEach(i,function(m){pe.isUndefined(r[m])||(n[m]=c(void 0,r[m]))}),pe.forEach(s,d),pe.forEach(o,function(m){pe.isUndefined(r[m])?pe.isUndefined(e[m])||(n[m]=c(void 0,e[m])):n[m]=c(void 0,r[m])}),pe.forEach(a,function(m){m in r?n[m]=c(e[m],r[m]):m in e&&(n[m]=c(void 0,e[m]))});var u=i.concat(s).concat(o).concat(a),p=Object.keys(e).concat(Object.keys(r)).filter(function(m){return u.indexOf(m)===-1});return pe.forEach(p,d),n}});var xd=y((Ow,Sd)=>{"use strict";var wd=Ns(),Xs={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){Xs[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var bd={},av=wd.version.split(".");function _d(t,e){for(var r=e?e.split("."):av,n=t.split("."),i=0;i<3;i++){if(r[i]>n[i])return!0;if(r[i]<n[i])return!1}return!1}Xs.transitional=function(e,r,n){var i=r&&_d(r);function s(o,a){return"[Axios v"+wd.version+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return function(o,a,c){if(e===!1)throw new Error(s(a," has been removed in "+r));return i&&!bd[a]&&(bd[a]=!0,console.warn(s(a," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(o,a,c):!0}};function cv(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],c=a===void 0||o(a,s,t);if(c!==!0)throw new TypeError("option "+s+" must be "+c);continue}if(r!==!0)throw Error("Unknown option "+s)}}Sd.exports={isOlderVersion:_d,assertOptions:cv,validators:Xs}});var Id=y((Iw,Od)=>{"use strict";var Pd=Se(),uv=Cn(),Ed=_f(),Cd=yd(),jn=Us(),Dd=xd(),Vt=Dd.validators;function Sr(t){this.defaults=t,this.interceptors={request:new Ed,response:new Ed}}Sr.prototype.request=function(e){typeof e=="string"?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=jn(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&&Dd.assertOptions(r,{silentJSONParsing:Vt.transitional(Vt.boolean,"1.0.0"),forcedJSONParsing:Vt.transitional(Vt.boolean,"1.0.0"),clarifyTimeoutError:Vt.transitional(Vt.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=[Cd,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 c=e;n.length;){var d=n.shift(),u=n.shift();try{c=d(c)}catch(p){u(p);break}}try{o=Cd(c)}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=jn(this.defaults,e),uv(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};Pd.forEach(["delete","get","head","options"],function(e){Sr.prototype[e]=function(r,n){return this.request(jn(n||{},{method:e,url:r,data:(n||{}).data}))}});Pd.forEach(["post","put","patch"],function(e){Sr.prototype[e]=function(r,n,i){return this.request(jn(i||{},{method:e,url:r,data:n}))}});Od.exports=Sr});var Hs=y((Aw,Ad)=>{"use strict";function Gs(t){this.message=t}Gs.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};Gs.prototype.__CANCEL__=!0;Ad.exports=Gs});var Fd=y((Rw,Rd)=>{"use strict";var lv=Hs();function Ln(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 lv(i),e(r.reason))})}Ln.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};Ln.source=function(){var e,r=new Ln(function(i){e=i});return{token:r,cancel:e}};Rd.exports=Ln});var Td=y((Fw,kd)=>{"use strict";kd.exports=function(e){return function(n){return e.apply(null,n)}}});var qd=y((kw,Md)=>{"use strict";Md.exports=function(e){return typeof e=="object"&&e.isAxiosError===!0}});var Ld=y((Tw,Js)=>{"use strict";var Nd=Se(),fv=ws(),$n=Id(),dv=Us(),hv=Nn();function jd(t){var e=new $n(t),r=fv($n.prototype.request,e);return Nd.extend(r,$n.prototype,e),Nd.extend(r,e),r}var $e=jd(hv);$e.Axios=$n;$e.create=function(e){return jd(dv($e.defaults,e))};$e.Cancel=Hs();$e.CancelToken=Fd();$e.isCancel=Ls();$e.all=function(e){return Promise.all(e)};$e.spread=Td();$e.isAxiosError=qd();Js.exports=$e;Js.exports.default=$e});var zs=y((Mw,$d)=>{$d.exports=Ld()});var Z=y(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.isUndefined=Ie.fixName=Ie.validateName=Ie.validateSingleChar=Ie.fixChar=Ie.validateChar=void 0;function Sv(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}Ie.validateChar=Sv;function xv(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}Ie.fixChar=xv;function Ev(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}Ie.validateSingleChar=Ev;function Cv(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 c=t.charCodeAt(o+1);if(a>=55296&&a<=56191&&c>=56320&&c<=57343){o++;continue}return!1}}return!0}Ie.validateName=Cv;function Pv(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 c=t.charCodeAt(a);if(c===58||c===95||c===45||c===46||c===183||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||c>=192&&c<=214||c>=216&&c<=246||c>=248&&c<=767||c>=768&&c<=879||c>=880&&c<=893||c>=895&&c<=8191||c>=8204&&c<=8205||c>=8255&&c<=8256||c>=8304&&c<=8591||c>=11264&&c<=12271||c>=12289&&c<=55295||c>=63744&&c<=64975||c>=65008&&c<=65533){e+=t[a];continue}if(a+1===t.length)return e+="\uFFFD",e;var d=t.charCodeAt(a+1);if(c>=55296&&c<=56191&&d>=56320&&d<=57343){e+=t[a]+t[a+1],a++;continue}e+="\uFFFD"}return e}Ie.fixName=Pv;function Dv(t){return Object.prototype.toString.call(t)==="[object Undefined]"}Ie.isUndefined=Dv});var Kt=y(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.StringOptions=void 0;var Gn=Z(),Ov=function(){function t(e){this.doubleQuotes=!1,this.indent=" ",this.newline=`
22
+ `,this.pretty=!0,(0,Gn.isUndefined)(e.doubleQuotes)||(this.doubleQuotes=e.doubleQuotes),(0,Gn.isUndefined)(e.indent)||(this.indent=e.indent),(0,Gn.isUndefined)(e.newline)||(this.newline=e.newline),(0,Gn.isUndefined)(e.pretty)||(this.pretty=e.pretty)}return t}();Hn.StringOptions=Ov});var Jn=y(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.escapeDoubleQuotes=Te.escapeSingleQuotes=Te.escapeRightAngleBracketsInCdataTerminator=Te.escapeLeftAngleBrackets=Te.escapeAmpersands=void 0;function Iv(t){return t.replace(/&/g,"&amp;")}Te.escapeAmpersands=Iv;function Av(t){return t.replace(/</g,"&lt;")}Te.escapeLeftAngleBrackets=Av;function Rv(t){return t.replace(/]]>/g,"]]&gt;")}Te.escapeRightAngleBracketsInCdataTerminator=Rv;function Fv(t){return t.replace(/'/g,"&apos;")}Te.escapeSingleQuotes=Fv;function kv(t){return t.replace(/"/g,"&quot;")}Te.escapeDoubleQuotes=kv});var co=y(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});var Tv=ce(),fh=Jn(),oo=Z(),Mv=function(){function t(e,r,n){this._validation=r,(0,oo.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,oo.fixChar)(e);else if(this._validation&&!(0,oo.validateChar)(e))throw new Error((0,Tv.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,fh.escapeAmpersands)(e),e=(0,fh.escapeLeftAngleBrackets)(e),e},t.prototype.up=function(){return this._parent},t}();ao.default=Mv});var zn=y(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});var dh=ce(),hh=Z(),qv=function(){function t(e,r,n){this._hex=!1,this._validation=r,this._parent=e,this.char=n.char,(0,hh.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,hh.validateSingleChar)(e))throw new Error((0,dh.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,dh.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}();uo.default=qv});var Wn=y(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});var Nv=ce(),jv=Z(),Lv=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,jv.validateName)(e))throw new Error((0,Nv.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}();lo.default=Lv});var Yn=y(Er=>{"use strict";var po=Er&&Er.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Er,"__esModule",{value:!0});var fo=ce(),ph=Jn(),$v=Kt(),ho=Z(),Bv=po(co()),Uv=po(zn()),Xv=po(Wn()),Gv=function(){function t(e,r,n){this._validation=r,(0,ho.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,ho.fixName)(e),e.length===0)throw new Error((0,fo.getContext)(this.up())+": attribute name should not be empty")}else if(this._validation&&!(0,ho.validateName)(e))throw e.length===0?new Error((0,fo.getContext)(this.up())+": attribute name should not be empty"):new Error((0,fo.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 Uv.default(this,this._validation,e);return this._children.push(r),r},t.prototype.entityRef=function(e){var r=new Xv.default(this,this._validation,e);return this._children.push(r),r},t.prototype.text=function(e){var r=new Bv.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});for(var r=new $v.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,ph.escapeDoubleQuotes)(a.toString()):i+=(0,ph.escapeSingleQuotes)(a.toString())}return i+=n,i},t.prototype.up=function(){return this._parent},t}();Er.default=Gv});var go=y(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});var Hv=ce(),Jv=Z(),zv=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,Jv.validateChar)(e))throw new Error((0,Hv.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}();mo.default=zv});var vo=y(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});var Wv=ce(),Yv=Z(),Vv=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,Yv.validateChar)(e))throw new Error((0,Wv.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}();yo.default=Vv});var wo=y(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});var Kv=ce(),Qv=Z(),Zv=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,Qv.validateChar)(e))throw new Error((0,Kv.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}();bo.default=Zv});var So=y(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});var e1=ce(),t1=Z(),r1=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,t1.validateChar)(e))throw new Error((0,e1.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}();_o.default=r1});var Eo=y(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});var n1=ce(),i1=Z(),s1=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,i1.validateName)(e))throw new Error((0,n1.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}();xo.default=s1});var Cr=y(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});var Vn=ce(),Kn=Z(),o1=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,Kn.isUndefined)(e)){if(this._validation&&!(0,Kn.validateChar)(e))throw new Error((0,Vn.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,Vn.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,Kn.validateName)(e))throw new Error((0,Vn.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,Vn.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,Kn.isUndefined)(this._content)?"<?"+this._target+"?>":"<?"+this._target+" "+this._content+"?>"},t.prototype.up=function(){return this._parent},t}();Co.default=o1});var Qn=y(Pt=>{"use strict";var Dt=Pt&&Pt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Pt,"__esModule",{value:!0});Pt.validatePubId=void 0;var ht=ce(),a1=Kt(),We=Z(),c1=Dt(Pr()),u1=Dt(go()),l1=Dt(vo()),f1=Dt(wo()),d1=Dt(So()),h1=Dt(Eo()),p1=Dt(Cr()),m1=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,We.isUndefined)(n.sysId)||(this.sysId=n.sysId),(0,We.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,We.validateName)(e))throw new Error((0,ht.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,We.isUndefined)(e)){if(this._validation&&!mh(e))throw new Error((0,ht.getContext)(this.up())+": DTD public"+(' identifier "'+e+'" should not contain')+" characters not allowed in public identifiers");if(this._validation&&(0,We.isUndefined)(this._sysId))throw new Error((0,ht.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,We.isUndefined)(e)){if(this._validation&&!(0,We.validateChar)(e))throw new Error((0,ht.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,ht.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 u1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.comment=function(e){var r=new c1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.element=function(e){var r=new l1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.entity=function(e){var r=new f1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.notation=function(e){var r=new d1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.paramEntityRef=function(e){var r=new h1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.procInst=function(e){var r=new p1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});var r=new a1.StringOptions(e),n="<!DOCTYPE "+this._name;if((0,We.isUndefined)(this._pubId))(0,We.isUndefined)(this._sysId)||(n+=" ",n=this.appendId("SYSTEM",this._sysId,n,r));else{if((0,We.isUndefined)(this._sysId))throw new Error((0,ht.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,ht.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,ht.getContext)(this)+": doubleQuotes option inconsistent with DTD system identifier or public identifier");n+="'"+r+"'"}return n},t}();Pt.default=m1;function mh(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}Pt.validatePubId=mh});var Oo=y(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});var gh=ce(),Po=Z(),g1=function(){function t(e,r,n){this._validation=r,(0,Po.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,Po.fixChar)(e);else if(this._validation&&!(0,Po.validateChar)(e))throw new Error((0,gh.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,gh.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}();Do.default=g1});var Fo=y(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});var y1=ce(),Io=Jn(),Ao=Z(),v1=function(){function t(e,r,n){this._validation=r,(0,Ao.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,Ao.fixChar)(e);else if(this._validation&&!(0,Ao.validateChar)(e))throw new Error((0,y1.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,Io.escapeAmpersands)(e),e=(0,Io.escapeLeftAngleBrackets)(e),e=(0,Io.escapeRightAngleBracketsInCdataTerminator)(e),e},t.prototype.up=function(){return this._parent},t}();Ro.default=v1});var ri=y(Ir=>{"use strict";var Ot=Ir&&Ir.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ir,"__esModule",{value:!0});var Zn=ce(),b1=Kt(),Dr=Z(),yh=Ot(Yn()),w1=Ot(Oo()),Or=Ot(Fo()),ei=Ot(zn()),_1=Ot(Pr()),ti=Ot(Wn()),S1=Ot(Cr()),x1=function(){function t(e,r,n){this._validation=r,(0,Dr.isUndefined)(n.replaceInvalidCharsInName)?this._replaceInvalidCharsInName=!1:this._replaceInvalidCharsInName=n.replaceInvalidCharsInName,(0,Dr.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,Dr.fixName)(e),e.length===0)throw new Error((0,Zn.getContext)(this.up())+": element name should not be empty")}else if(this._validation&&!(0,Dr.validateName)(e))throw e.length===0?new Error((0,Zn.getContext)(this.up())+": element name should not be empty"):new Error((0,Zn.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,Zn.getContext)(this.up())+': element "'+this.name+'" already contains an attribute with the'+(' name "'+e.name+'"'));var r=new yh.default(this,this._validation,e);return this._children.push(r),this._attributeNames.push(e.name),r},t.prototype.cdata=function(e){var r=new w1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.charData=function(e){var r=new Or.default(this,this._validation,e);return this._children.push(r),r},t.prototype.charRef=function(e){var r=new ei.default(this,this._validation,e);return this._children.push(r),r},t.prototype.comment=function(e){var r=new _1.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 ti.default(this,this._validation,e);return this._children.push(r),r},t.prototype.procInst=function(e){var r=new S1.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 b1.StringOptions(e),i=r+n.indent,s="<"+this._name,o=[],a=0,c=this._children;a<c.length;a++){var d=c[a];d instanceof yh.default?s+=" "+d.toString(e):o.push(d)}if(o.length>0){for(var u="",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 Or.default&&g.toString()===""||(n.pretty&&(this.allSameLineNodes(o)||p>0&&this.onSameLine(g,b)||(m=n.newline+i+m)),u+=m)}n.pretty&&(this.allSameLineNodes(o)||(u+=n.newline+r)),u.length===0&&this._useSelfClosingTagIfEmpty?s+="/>":s+=">"+u+"</"+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 ei.default||i instanceof ti.default||i instanceof Or.default))return!1}return!0},t.prototype.onSameLine=function(e,r){return(e instanceof ei.default||e instanceof ti.default||e instanceof Or.default)&&!(0,Dr.isUndefined)(r)&&(r instanceof ei.default||r instanceof ti.default||r instanceof Or.default)},t}();Ir.default=x1});var ce=y(Qt=>{"use strict";var ii=Qt&&Qt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Qt,"__esModule",{value:!0});Qt.getContext=void 0;var E1=ii(Yn()),C1=ii(si()),P1=ii(Qn()),D1=ii(ri());function ni(t){if(t instanceof E1.default)return ni(t.up())+(' > attribute "'+t.name+'"');if(t instanceof C1.default)return"in XML document";if(t instanceof P1.default)return ni(t.up())+" > DTD";if(t instanceof D1.default)return ni(t.up())+(' > element "'+t.name+'"');throw new Error("Unrecognized object of type "+Object.prototype.toString.call(t))}Qt.getContext=ni});var Pr=y(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});var ko=ce(),To=Z(),O1=function(){function t(e,r,n){this._validation=r,(0,To.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,To.fixChar)(e);else if(this._validation&&!(0,To.validateChar)(e))throw new Error((0,ko.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,ko.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,ko.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}();Mo.default=O1});var jo=y(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});var qo=ce(),I1=Kt(),Ar=Z(),A1=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,Ar.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,Ar.isUndefined)(e)&&!R1(e))throw new Error((0,qo.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,Ar.isUndefined)(e)&&e!=="yes"&&e!=="no")throw new Error((0,qo.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&&!F1(e))throw new Error((0,qo.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 I1.StringOptions(e),n=r.doubleQuotes?'"':"'",i="<?xml version="+n+this._version+n;return(0,Ar.isUndefined)(this._encoding)||(i+=" encoding="+n+this._encoding+n),(0,Ar.isUndefined)(this._standalone)||(i+=" standalone="+n+this._standalone+n),i+="?>",i},t.prototype.up=function(){return this._parent},t}();No.default=A1;function R1(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 F1(t){for(var e=0;e<=9;e++)if(t==="1."+e)return!0;return!1}});var si=y(Fr=>{"use strict";var kr=Fr&&Fr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Fr,"__esModule",{value:!0});var k1=Kt(),T1=Z(),M1=kr(Pr()),vh=kr(jo()),bh=kr(Qn()),Rr=kr(ri()),q1=kr(Cr()),N1=function(){function t(e){this._children=[],this._validation=(0,T1.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 vh.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 Rr.default});if(this._validation&&r.length!==0)throw new Error("in XML document: DTD must precede the root element");var n=new bh.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 Rr.default});if(this._validation&&r.length!==0)throw new Error("in XML document: only one root element is permitted");var n=new Rr.default(this,this._validation,e);return this._children.push(n),n},t.prototype.procInst=function(e){var r=new q1.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(d){return d instanceof Rr.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 k1.StringOptions(e),i="",s=0,o=this._children;s<o.length;s++){var a=o[s];a instanceof vh.default||a instanceof bh.default||a instanceof Rr.default?i+=a.toString(e):i+=a.toString(),n.pretty&&(i+=n.newline)}var c=i.length-n.newline.length;return i.substr(c)===n.newline&&(i=i.substr(0,c)),i},t}();Fr.default=N1});var wh=y(k=>{"use strict";var te=k&&k.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(k,"__esModule",{value:!0});k.document=k.XmlProcInst=k.XmlEntityRef=k.XmlElement=k.XmlDtdParamEntityRef=k.XmlDtdNotation=k.XmlDtdEntity=k.XmlDtdElement=k.XmlDtdAttlist=k.XmlDtd=k.XmlDocument=k.XmlDecl=k.XmlComment=k.XmlCharRef=k.XmlCharData=k.XmlCdata=k.XmlAttributeText=k.XmlAttribute=void 0;var j1=te(si()),L1=Yn();Object.defineProperty(k,"XmlAttribute",{enumerable:!0,get:function(){return te(L1).default}});var $1=co();Object.defineProperty(k,"XmlAttributeText",{enumerable:!0,get:function(){return te($1).default}});var B1=Oo();Object.defineProperty(k,"XmlCdata",{enumerable:!0,get:function(){return te(B1).default}});var U1=Fo();Object.defineProperty(k,"XmlCharData",{enumerable:!0,get:function(){return te(U1).default}});var X1=zn();Object.defineProperty(k,"XmlCharRef",{enumerable:!0,get:function(){return te(X1).default}});var G1=Pr();Object.defineProperty(k,"XmlComment",{enumerable:!0,get:function(){return te(G1).default}});var H1=jo();Object.defineProperty(k,"XmlDecl",{enumerable:!0,get:function(){return te(H1).default}});var J1=si();Object.defineProperty(k,"XmlDocument",{enumerable:!0,get:function(){return te(J1).default}});var z1=Qn();Object.defineProperty(k,"XmlDtd",{enumerable:!0,get:function(){return te(z1).default}});var W1=go();Object.defineProperty(k,"XmlDtdAttlist",{enumerable:!0,get:function(){return te(W1).default}});var Y1=vo();Object.defineProperty(k,"XmlDtdElement",{enumerable:!0,get:function(){return te(Y1).default}});var V1=wo();Object.defineProperty(k,"XmlDtdEntity",{enumerable:!0,get:function(){return te(V1).default}});var K1=So();Object.defineProperty(k,"XmlDtdNotation",{enumerable:!0,get:function(){return te(K1).default}});var Q1=Eo();Object.defineProperty(k,"XmlDtdParamEntityRef",{enumerable:!0,get:function(){return te(Q1).default}});var Z1=ri();Object.defineProperty(k,"XmlElement",{enumerable:!0,get:function(){return te(Z1).default}});var eb=Wn();Object.defineProperty(k,"XmlEntityRef",{enumerable:!0,get:function(){return te(eb).default}});var tb=Cr();Object.defineProperty(k,"XmlProcInst",{enumerable:!0,get:function(){return te(tb).default}});function rb(t){return t===void 0&&(t={}),new j1.default(t)}k.document=rb});var Lo=y(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.stringify=re.isMap=re.isSet=re.isFunction=re.isArray=re.isObject=re.isNull=re.isUndefined=void 0;function _h(t){return Object.prototype.toString.call(t)==="[object Undefined]"}re.isUndefined=_h;function Sh(t){return Object.prototype.toString.call(t)==="[object Null]"}re.isNull=Sh;function nb(t){return Object.prototype.toString.call(t)==="[object Object]"}re.isObject=nb;function ib(t){return Object.prototype.toString.call(t)==="[object Array]"}re.isArray=ib;function xh(t){return Object.prototype.toString.call(t)==="[object Function]"}re.isFunction=xh;function sb(t){return Object.prototype.toString.call(t)==="[object Set]"}re.isSet=sb;function ob(t){return Object.prototype.toString.call(t)==="[object Map]"}re.isMap=ob;function ab(t){return!_h(t)&&!Sh(t)&&xh(t?.toString)&&(t=t.toString()),String(t)}re.stringify=ab});var Ih=y(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.WrapHandlers=Ae.TypeHandlers=Ae.FormatOptions=Ae.DtdOptions=Ae.DeclarationOptions=Ae.Options=void 0;var Be=Lo(),cb=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,Be.isUndefined)(e.validation)||(this.validation=e.validation),(0,Be.isUndefined)(e.aliasString)||(this.aliasString=e.aliasString),(0,Be.isUndefined)(e.attributeString)||(this.attributeString=e.attributeString),(0,Be.isUndefined)(e.cdataInvalidChars)||(this.cdataInvalidChars=e.cdataInvalidChars),(0,Be.isUndefined)(e.cdataKeys)||(this.cdataKeys=e.cdataKeys),this.declaration=new Eh(e.declaration),this.dtd=new Ch(this.validation,e.dtd),this.format=new Ph(e.format),(0,Be.isUndefined)(e.replaceInvalidChars)||(this.replaceInvalidChars=e.replaceInvalidChars),this.typeHandlers=new Dh(e.typeHandlers),(0,Be.isUndefined)(e.useSelfClosingTagIfEmpty)||(this.useSelfClosingTagIfEmpty=e.useSelfClosingTagIfEmpty),(0,Be.isUndefined)(e.valueString)||(this.valueString=e.valueString),this.wrapHandlers=new Oh(e.wrapHandlers)}return t}();Ae.Options=cb;var Eh=function(){function t(e){e===void 0&&(e={}),this.include=!0,(0,Be.isUndefined)(e.include)||(this.include=e.include),this.encoding=e.encoding,this.standalone=e.standalone,this.version=e.version}return t}();Ae.DeclarationOptions=Eh;var Ch=function(){function t(e,r){if(r===void 0&&(r={}),this.include=!1,(0,Be.isUndefined)(r.include)||(this.include=r.include),e&&(0,Be.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}();Ae.DtdOptions=Ch;var Ph=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}();Ae.FormatOptions=Ph;var Dh=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}();Ae.TypeHandlers=Dh;var Oh=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}();Ae.WrapHandlers=Oh});var Mh=y(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.parse=pt.parseToExistingElement=pt.Absent=void 0;var Rh=wh(),Fh=Ih(),K=Lo(),$o=function(){function t(){}return Object.defineProperty(t,"instance",{get:function(){return t._instance},enumerable:!1,configurable:!0}),t._instance=new t,t}();pt.Absent=$o;function Bo(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 kh(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 Rh.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 ub(t,e,r,n){var i=r.attribute({name:t,replaceInvalidCharsInName:n.replaceInvalidChars});kh((0,K.stringify)(e),i,n)}function Ah(t,e,r,n){if(t===n.aliasString){r.name=(0,K.stringify)(e);return}if(t.indexOf(n.attributeString)===0&&(0,K.isObject)(e)){for(var i=0,s=Object.keys(e);i<s.length;i++){var o=s[i];ub(o,(0,K.stringify)(e[o]),r,n)}return}if(t.indexOf(n.valueString)===0){oi(t,(0,K.stringify)(e),r,n);return}var a=r;if(!(0,K.isArray)(e)&&!(0,K.isSet)(e)){var c=Bo(e,n);if(!(0,K.isUndefined)(c)&&c(e)===$o.instance)return;a=r.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty})}oi(t,e,a,n)}function lb(t,e,r){if((0,K.isMap)(t))t.forEach(function(o,a){Ah((0,K.stringify)(a),o,e,r)});else for(var n=0,i=Object.keys(t);n<i.length;n++){var s=i[n];Ah(s,t[s],e,r)}}function fb(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,K.isUndefined)(i)){var a=i(s,e);(0,K.isNull)(a)||(s=a,o=r.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty}))}e.forEach(function(c){var d=o;if(!(0,K.isArray)(c)&&!(0,K.isSet)(c)){var u=Bo(c,n);if(!(0,K.isUndefined)(u)&&u(c)===$o.instance)return;d=o.element({name:s,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty})}oi(s,c,d,n)})}function oi(t,e,r,n){var i=Bo(e,n);if((0,K.isUndefined)(i)||(e=i(e)),(0,K.isObject)(e)||(0,K.isMap)(e)){lb(e,r,n);return}if((0,K.isArray)(e)||(0,K.isSet)(e)){fb(t,e,r,n);return}kh((0,K.stringify)(e),r,n)}function Th(t,e,r){var n=new Fh.Options(r);oi(t.name,e,t,n)}pt.parseToExistingElement=Th;function db(t,e,r){var n=new Fh.Options(r),i=new Rh.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 Th(s,e,r),i.toString(n.format)}pt.parse=db});var xb={};zo(xb,{IS_COMPONENT_LIBRARY:()=>ys,PROJECT_ALIASES:()=>sf,getBuildPages:()=>ls,getConfig:()=>he,logInfo:()=>Ve,logPageSize:()=>Jl,resolveComponentsPath:()=>ft,startRender:()=>Zh});module.exports=Yo(xb);var Qh=require("node:child_process"),Go=A(require("node:fs")),ci=A(require("node:path"));var df=A(rt());var Ke=A(require("node:path")),Le=A(vt());var je=A(require("node:fs")),Ne=A(require("node:path")),_e=A(vt());var $l=A(require("node:path")),vn=A(on()),Bl=A(rt()),Ge=A(vt()),Ul=A(Sl()),is=A(yn());Bl.default.config();var j2=!!process.env.GRIDDO_DEBUG_LOGS&&!!JSON.parse(process.env.GRIDDO_DEBUG_LOGS),Dg=!!process.env.GRIDDO_BUILD_LOGS&&!!JSON.parse(process.env.GRIDDO_BUILD_LOGS)||!!process.env.LOGS&&!!JSON.parse(process.env.LOGS),Xl=is.default.sync(__dirname),L2=is.default.sync();function Gl(t){let e=[];return Ge.default.readdirSync(t).forEach(n=>{let i=`${t}/${n}`;e.push(i)}),e}function He(t,e="",r=1,n=1){let i=t.split(`
23
23
  `).map(b=>b.trim()),s=e?` ${e} `:"",o=e?s.length:0,a=Math.max(...i.map(b=>b.length))+r*2,c=Math.max(a,o),d=`\u2502${" ".repeat(c)}\u2502
24
24
  `.repeat(n),u=c,p=`\u256D${s}${"\u2500".repeat(u-o)}\u256E
25
25
  `,g=`\u2570${"\u2500".repeat(u)}\u256F`,m=i.map(b=>{let S=" ".repeat(c-b.length-r);return`\u2502${" ".repeat(r)}${b}${S}\u2502
26
- `}).join("");console.log(`${p}${d}${m}${d}${g}`)}function Ve(t){Ag&&console.info(t.replace(/(\s)\s+/g,"$1"))}function Jl(t){return new Promise(e=>setTimeout(e,t))}function zl(t,e="KB"){let r={low:50,mid:80,large:130,extraLarge:210},n=t>r.large?"red":t>r.mid?"magenta":t>r.low?"blue":"green";return bn.default[n].bold(`${t}${e}`)}function os(t,e=3){return(t/1e3).toFixed(e)}function as(t){return"site"in t&&t.site?t?.site:void 0}function cs(t,e){for(let r in t)e.includes(r)?delete t[r]:typeof t[r]=="object"&&cs(t[r],e)}function us(t){return t.map(({name:e,id:r})=>`${e} (${r})`).join(", ")}function Wl(t){let{version:e}=JSON.parse(Ge.default.readFileSync(Bl.default.resolve(__dirname,"../package.json"),"utf-8")),r=`
26
+ `}).join("");console.log(`${p}${d}${m}${d}${g}`)}function Ve(t){Dg&&console.info(t.replace(/(\s)\s+/g,"$1"))}function Hl(t){return new Promise(e=>setTimeout(e,t))}function Jl(t,e="KB"){let r={low:50,mid:80,large:130,extraLarge:210},n=t>r.large?"red":t>r.mid?"magenta":t>r.low?"blue":"green";return vn.default[n].bold(`${t}${e}`)}function ss(t,e=3){return(t/1e3).toFixed(e)}function os(t){return"site"in t&&t.site?t?.site:void 0}function as(t,e){for(let r in t)e.includes(r)?delete t[r]:typeof t[r]=="object"&&as(t[r],e)}function cs(t){return t.map(({name:e,id:r})=>`${e} (${r})`).join(", ")}function zl(t){let{version:e}=JSON.parse(Ge.default.readFileSync($l.default.resolve(__dirname,"../package.json"),"utf-8")),r=`
27
27
  \xB7\xB7
28
28
  \xB7\xB7 Griddo Exporter ${e}
29
29
  \xB7\xB7 Adapter: ${t}
30
30
  \xB7\xB7
31
- `;console.log(Xl.default.cristal(r))}function Yl(t){let e=Ge.default.readdirSync(t),r={},n=e.filter(s=>{let o=`${t}/${s}`,a=Ge.default.readJSONSync(o,"utf-8"),{id:c,entity:d,fullUrl:u}=a;return!!(c&&d&&u)});for(let s of n){let o=`${t}/${s}`,a=Ge.default.readJSONSync(o,"utf-8"),c=Ge.default.statSync(o).mtimeMs,{id:d}=a;(!r[d]||c>Ge.default.statSync(`${t}/${r[d]}`).mtimeMs)&&(r[d]=s)}let i=0;for(let s of n){let o=`${t}/${s}`,a=Ge.default.readJSONSync(o,"utf-8"),{id:c}=a;s!==r[c]&&(Ge.default.unlinkSync(o),i++)}console.log(`Sanitize apiCache dir for ${i} files`)}async function ls(...t){let e=process.hrtime();for(let s of t)await s();let[r,n]=process.hrtime(e);return+(r+n/1e9).toFixed(3)}function Je(t){if(JSON.parse(process.env.GRIDDO_RENDER_BREAKPOINTS_FEATURE||"false"))return new Promise(r=>{console.log(`
31
+ `;console.log(Ul.default.cristal(r))}function Wl(t){let e=Ge.default.readdirSync(t),r={},n=e.filter(s=>{let o=`${t}/${s}`,a=Ge.default.readJSONSync(o,"utf-8"),{id:c,entity:d,fullUrl:u}=a;return!!(c&&d&&u)});for(let s of n){let o=`${t}/${s}`,a=Ge.default.readJSONSync(o,"utf-8"),c=Ge.default.statSync(o).mtimeMs,{id:d}=a;(!r[d]||c>Ge.default.statSync(`${t}/${r[d]}`).mtimeMs)&&(r[d]=s)}let i=0;for(let s of n){let o=`${t}/${s}`,a=Ge.default.readJSONSync(o,"utf-8"),{id:c}=a;s!==r[c]&&(Ge.default.unlinkSync(o),i++)}console.log(`Sanitize apiCache dir for ${i} files`)}async function us(...t){let e=process.hrtime();for(let s of t)await s();let[r,n]=process.hrtime(e);return+(r+n/1e9).toFixed(3)}function Je(t){if(JSON.parse(process.env.GRIDDO_RENDER_BREAKPOINTS_FEATURE||"false"))return new Promise(r=>{console.log(`
32
32
  `),He(`\u231B\uFE0F ${t}`,"",1,0),process.stdin.once("data",()=>{r()})})}async function ze(t){let{steps:e,name:r,attempts:n}=t,i=0,s=n||1;for(;i<s;)try{console.info(`
33
- ${bn.default.blue("info")} start ${r} life-cycle`);let o=await ls(...e);console.info(`${bn.default.green("success")} ${r} - ${o}s`);break}catch{console.log(`Error in ${r}. Attempt (${i+1})`),i++}if(i===s)throw new Error(`Exceeded maximum retry attempts (${s}) for ${r} LifeCycle`)}var lt=A(require("node:fs")),Vl=A(require("node:fs/promises")),we=A(require("node:path")),wn=A(vt());async function*vr(t){let e=we.default.resolve(t),r=Hl(e).filter(n=>we.default.extname(n)===".json");for(let n of r)try{let i=await Vl.default.stat(n),s=await wn.default.readJSON(n,{encoding:"utf-8"});s.size=i.size/1024,s.path&&(yield s)}catch(i){console.error(`Error: The file ${n} doesn't exist`,i)}}async function fs(){let e=he().dirs(),r=we.default.join(e.__cx,"store"),{sitesToPublish:n,createdPages:i,buildProcessData:s}=wn.default.readJSONSync(we.default.resolve(r,"metadata","render-info.json"));return{buildProcessData:s,createdPages:i,sitesToPublish:n}}function Kl(t){lt.default.existsSync(t)||(lt.default.mkdirSync(t),lt.default.mkdirSync(we.default.resolve(t,"metadata"))),console.info("Store initialized")}function Ql(t,e){lt.default.writeFileSync(we.default.resolve(t,"metadata","render-info.json"),JSON.stringify(e))}function Rg(t,e){return ds(t).filter(i=>e.includes(i))}function ds(t){return lt.default.readdirSync(t).filter(r=>{let n=`${t}/${r}`,i=lt.default.statSync(n);if(i&&i.isDirectory()||we.default.extname(r)!==".json")return!1;let s=we.default.basename(r,we.default.extname(r));return!isNaN(parseInt(s))}).map(r=>{let n=we.default.basename(r,we.default.extname(r));return parseInt(n)})}function Zl(t,e){e.forEach(r=>{cs(r,["editorID","parentEditorID"]);let n=`${r.context.page.id}.json`,i=we.default.resolve(t,n);wn.default.writeJSONSync(i,r)})}function _n(t,e){e.length!==0&&e.forEach(r=>{let n=we.default.resolve(t,`${r}.json`);try{lt.default.unlinkSync(n)}catch(i){console.log(`Error removing file ${r}`,i.message)}})}async function ef(t,e){let{changedPages:r,pages:n,validPagesIds:i,sitesToPublish:s}=e,o=Rg(t,n),a=i.filter(m=>!o.includes(m)),c=a.concat(r),d=o.filter(m=>!i.includes(m)),u=Array.from(new Set(c)).filter(m=>!d.includes(m)),p=vr(we.default.resolve(__dirname,"../store")),g=[];for await(let m of p){let b=m.context.page.site,S=m.context.page.id;s.map(x=>x.id).includes(b)||g.push(S)}return{pagesInStore:o,pagesMissingInStore:a,pagesToDeleteFromStore:[...d,...g],pagesToWriteToStore:u}}var hs=t=>{let e=t||Ne.default.resolve(Gl,"dist");if(!_e.default.statSync(e).isDirectory())return;let n=_e.default.readdirSync(e);if(n.length>0){let s=n.length,o=n.filter(a=>Ne.default.extname(a).toLowerCase()===".xml").length;s===o&&(n.forEach(function(a){let c=Ne.default.join(e,a);_e.default.rmSync(c)}),n=_e.default.readdirSync(e)),n.forEach(function(a){let c=Ne.default.join(e,a);hs(c)}),n=_e.default.readdirSync(e)}if(n.length===0){_e.default.rmdirSync(e);return}};function Sn(t,e){for(let r of t)Le.default.existsSync(r)||Le.default.mkdirSync(r,{recursive:!0,...e})}function xn(t,e,r,n={withBackup:!1}){let{withBackup:i}=n;for(let s of r){let o=Ne.default.join(t,s),a=Ne.default.join(e,s);if(!_e.default.existsSync(o)){console.log(`Source directory does not exist: ${o}`);continue}i&&nf(a);try{_e.default.existsSync(a)&&Le.default.rmSync(a,{recursive:!0,force:!0}),Le.default.cpSync(o,a,{recursive:!0}),i&&rf(a)}catch{console.log("Copy failed!"),i&&(tf(a),console.log("Backup has been restored."))}}}function Jt(t,e,r,n){let{override:i,withBackup:s}=n||{};for(let o of r){let a=Ne.default.join(t,o),c=Ne.default.join(e,o);if(_e.default.existsSync(a)){s&&nf(c);try{i&&_e.default.existsSync(c)&&Le.default.rmSync(c,{recursive:!0,force:!0}),Le.default.renameSync(a,c),s&&rf(c)}catch{console.log("Move failed!"),s&&(tf(c),console.log("Backup has been restored."))}}}}function br(t,e){for(let r of e){if(!r)continue;let n=Ne.default.join(t,r);_e.default.existsSync(n)&&Le.default.rmSync(n,{recursive:!0,force:!0})}}function tf(t,e="-BACKUP"){let r=t+e;try{Le.default.renameSync(r,t),console.log(`Backup ${r} has been restored`)}catch{console.log(`Error while delete ${r} backup`)}}function rf(t,e="-BACKUP"){let r=t+e;if(_e.default.existsSync(r))try{Le.default.rmSync(r,{recursive:!0,force:!0}),console.log(`Backup ${r} has been deleted`)}catch{console.log(`Error while delete ${r} backup`)}}function nf(t,e="-BACKUP"){let r=t+e;if(_e.default.existsSync(t)){if(_e.default.existsSync(r)){console.log(`Destination ${r} already exists`);return}try{Le.default.renameSync(t,r),console.log(`Backup of ${t} has been created in ${r}`)}catch{console.log(`Error while coping ${t} to ${r} backup`)}}}function Fg(t){return Number.isInteger(t)&&t<0}async function sf(){let e=he().dirs(),r=Ne.default.join(e.__cx,"store");try{let n=ds(r).filter(Fg);_n(r,n)}catch{console.info("`store` folder does not exist. Skipping multipage or static list template cleaning.")}}function he(){try{return(ff(),Vo(lf)).default}catch{console.log("Error while reading configuration file"),process.exit(1)}}async function df(t,e){let n=he().dirs(t),i=Ke.default.resolve(n.__cx,"dist"),s=Ke.default.resolve(n.__cx,"assets"),o=Ke.default.join(n.__cx,"dist",t),a=Ke.default.resolve(n.__ssg,"public");console.log(a);let c=je.default.readdirSync(a).filter(S=>Ke.default.extname(S)===".js"||Ke.default.extname(S)===".json"||Ke.default.extname(S)===".css"),d=`${a}/page-data`,u=`${s}/page-data`,p=Ke.default.resolve(n.__ssg,"static"),g=s,m=`${i}/static`,b=`${s}/static`;try{je.default.mkdirSync(s,{recursive:!0}),je.default.copySync(a,i),e&&(je.default.copySync(d,u),je.default.existsSync(p)&&je.default.copySync(p,g,{overwrite:!1}),je.default.copySync(m,b,{overwrite:!1}),je.default.existsSync(p)&&je.default.copySync(p,o,{overwrite:!1}),c.map(async S=>{let x=`${a}/${S}`,R=`${s}/${S}`;je.default.copySync(x,R)}))}catch(S){console.error(S)}}hf.default.config();var Qe={prepare:JSON.parse(process.env.GRIDDO_PREPARE_LIFECYCLE_MAX_ATTEMPTS||"1"),restore:JSON.parse(process.env.GRIDDO_RESTORE_LIFECYCLE_MAX_ATTEMPTS||"1"),data:JSON.parse(process.env.GRIDDO_DATA_LIFECYCLE_MAX_ATTEMPTS||"1"),ssg:JSON.parse(process.env.GRIDDO_SSG_LIFECYCLE_MAX_ATTEMPTS||"1"),relocation:JSON.parse(process.env.GRIDDO_RELOCATION_LIFECYCLE_MAX_ATTEMPTS||"1"),meta:JSON.parse(process.env.GRIDDO_META_LIFECYCLE_MAX_ATTEMPTS||"1"),archive:JSON.parse(process.env.GRIDDO_ARCHIVE_LIFECYCLE_MAX_ATTEMPTS||"1"),clean:JSON.parse(process.env.GRIDDO_CLEAN_LIFECYCLE_MAX_ATTEMPTS||"1")};function pf(t){let{proDomain:e}=he(),r=process.env.GRIDDO_ASSET_PREFIX||process.env.ASSET_PREFIX;return!r||!t||!t.startsWith(e)?"":`${r}/${t}`}function bs(t,e,r,n="jpg"){let i=typeof t=="string"?t:t?.url;return i?i.split("/")[2].includes("cloudinary.com")?Ug(i,`c_fill,w_${e},h_${r}`):Bg(i,`f/${n}/w/${e}/h/${r}`):null}function Bg(t,e){let r=t.split("/"),n=r.slice(0,-1).join("/"),i=r.slice(-1)[0];return`${n}/${e}/${i}`}function Ug(t,e){let r=t.replace("https://",""),n=r.split("/").slice(0,4).join("/"),i=r.replace(n,"");return`https://${n}/${e}${i}`}var Qs=A(require("node:fs")),Zs=A(require("node:path")),th=A(rt());var Qd=A(zs()),Zd=A(an()),eh=A(rt());var Ud=A(require("node:crypto")),Ct=A(require("node:fs")),Ws=A(require("node:path")),Ys=A(vt()),Un=Ws.default.resolve(__dirname,"./../apiCache"),Xd=`${Un}/siteHash.json`;function Gd(){Ct.default.existsSync(Un)||Ct.default.mkdirSync(Un),console.info("Cache initialized")}function Hd(t){let e=Ud.default.createHash("sha256");return e.update(JSON.stringify(t)),`${Un}/${e.digest("hex")}`}function Jd(t,e){let r=typeof e=="string"?e:JSON.stringify(e),n=Hd(t),i=Ws.default.dirname(n);Ct.default.existsSync(i)||Ct.default.mkdirSync(i,{recursive:!0}),Ct.default.writeFileSync(n,r,"utf8")}function zd(t){try{let e=Hd(t);return Ys.default.readJSONSync(e,{encoding:"utf-8"})}catch{return null}}function yv(){try{return Ys.default.readJSONSync(Xd,{encoding:"utf-8"})||{}}catch{return{}}}function Wd(t,e){let r=yv(),n=r[t],i=e||n||new Date().valueOf();return i!==n&&(r[t]=i,Ct.default.writeFileSync(Xd,JSON.stringify(r),{encoding:"utf-8"})),i.toString()}var Yd=A(zs()),Vd=A(an()),Vs=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,Yd.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(Vd.default.red(`
33
+ ${vn.default.blue("info")} start ${r} life-cycle`);let o=await us(...e);console.info(`${vn.default.green("success")} ${r} - ${o}s`);break}catch{console.log(`Error in ${r}. Attempt (${i+1})`),i++}if(i===s)throw new Error(`Exceeded maximum retry attempts (${s}) for ${r} LifeCycle`)}var lt=A(require("node:fs")),Yl=A(require("node:fs/promises")),we=A(require("node:path")),bn=A(vt());async function*ls(t){let e=we.default.resolve(t),r=Gl(e).filter(n=>we.default.extname(n)===".json");for(let n of r)try{let i=await Yl.default.stat(n),s=await bn.default.readJSON(n,{encoding:"utf-8"});s.size=i.size/1024,s.path&&(yield s)}catch(i){console.error(`Error: The file ${n} doesn't exist`,i)}}async function fs(){let e=he().dirs(),r=we.default.join(e.__cx,"store"),{sitesToPublish:n,createdPages:i,buildProcessData:s}=bn.default.readJSONSync(we.default.resolve(r,"metadata","render-info.json"));return{buildProcessData:s,createdPages:i,sitesToPublish:n}}function Vl(t){lt.default.existsSync(t)||(lt.default.mkdirSync(t),lt.default.mkdirSync(we.default.resolve(t,"metadata"))),console.info("Store initialized")}function Kl(t,e){lt.default.writeFileSync(we.default.resolve(t,"metadata","render-info.json"),JSON.stringify(e))}function Og(t,e){return ds(t).filter(i=>e.includes(i))}function ds(t){return lt.default.readdirSync(t).filter(r=>{let n=`${t}/${r}`,i=lt.default.statSync(n);if(i&&i.isDirectory()||we.default.extname(r)!==".json")return!1;let s=we.default.basename(r,we.default.extname(r));return!isNaN(parseInt(s))}).map(r=>{let n=we.default.basename(r,we.default.extname(r));return parseInt(n)})}function Ql(t,e){e.forEach(r=>{as(r,["editorID","parentEditorID"]);let n=`${r.context.page.id}.json`,i=we.default.resolve(t,n);bn.default.writeJSONSync(i,r)})}function wn(t,e){e.length!==0&&e.forEach(r=>{let n=we.default.resolve(t,`${r}.json`);try{lt.default.unlinkSync(n)}catch(i){console.log(`Error removing file ${r}`,i.message)}})}async function Zl(t,e){let{changedPages:r,pages:n,validPagesIds:i,sitesToPublish:s}=e,o=Og(t,n),a=i.filter(m=>!o.includes(m)),c=a.concat(r),d=o.filter(m=>!i.includes(m)),u=Array.from(new Set(c)).filter(m=>!d.includes(m)),p=ls(we.default.resolve(__dirname,"../store")),g=[];for await(let m of p){let b=m.context.page.site,S=m.context.page.id;s.map(x=>x.id).includes(b)||g.push(S)}return{pagesInStore:o,pagesMissingInStore:a,pagesToDeleteFromStore:[...d,...g],pagesToWriteToStore:u}}var hs=t=>{let e=t||Ne.default.resolve(Xl,"dist");if(!_e.default.statSync(e).isDirectory())return;let n=_e.default.readdirSync(e);if(n.length>0){let s=n.length,o=n.filter(a=>Ne.default.extname(a).toLowerCase()===".xml").length;s===o&&(n.forEach(function(a){let c=Ne.default.join(e,a);_e.default.rmSync(c)}),n=_e.default.readdirSync(e)),n.forEach(function(a){let c=Ne.default.join(e,a);hs(c)}),n=_e.default.readdirSync(e)}if(n.length===0){_e.default.rmdirSync(e);return}};function _n(t,e){for(let r of t)je.default.existsSync(r)||je.default.mkdirSync(r,{recursive:!0,...e})}function Sn(t,e,r,n={withBackup:!1}){let{withBackup:i}=n;for(let s of r){let o=Ne.default.join(t,s),a=Ne.default.join(e,s);if(!_e.default.existsSync(o)){console.log(`Source directory does not exist: ${o}`);continue}i&&rf(a);try{_e.default.existsSync(a)&&je.default.rmSync(a,{recursive:!0,force:!0}),je.default.cpSync(o,a,{recursive:!0}),i&&tf(a)}catch{console.log("Copy failed!"),i&&(ef(a),console.log("Backup has been restored."))}}}function Ht(t,e,r,n){let{override:i,withBackup:s}=n||{};for(let o of r){let a=Ne.default.join(t,o),c=Ne.default.join(e,o);if(_e.default.existsSync(a)){s&&rf(c);try{i&&_e.default.existsSync(c)&&je.default.rmSync(c,{recursive:!0,force:!0}),je.default.renameSync(a,c),s&&tf(c)}catch{console.log("Move failed!"),s&&(ef(c),console.log("Backup has been restored."))}}}}function yr(t,e){for(let r of e){if(!r)continue;let n=Ne.default.join(t,r);_e.default.existsSync(n)&&je.default.rmSync(n,{recursive:!0,force:!0})}}function ef(t,e="-BACKUP"){let r=t+e;try{je.default.renameSync(r,t),console.log(`Backup ${r} has been restored`)}catch{console.log(`Error while delete ${r} backup`)}}function tf(t,e="-BACKUP"){let r=t+e;if(_e.default.existsSync(r))try{je.default.rmSync(r,{recursive:!0,force:!0}),console.log(`Backup ${r} has been deleted`)}catch{console.log(`Error while delete ${r} backup`)}}function rf(t,e="-BACKUP"){let r=t+e;if(_e.default.existsSync(t)){if(_e.default.existsSync(r)){console.log(`Destination ${r} already exists`);return}try{je.default.renameSync(t,r),console.log(`Backup of ${t} has been created in ${r}`)}catch{console.log(`Error while coping ${t} to ${r} backup`)}}}function Ig(t){return Number.isInteger(t)&&t<0}async function nf(){let e=he().dirs(),r=Ne.default.join(e.__cx,"store");try{let n=ds(r).filter(Ig);wn(r,n)}catch{console.info("`store` folder does not exist. Skipping multipage or static list template cleaning.")}}function he(){try{return(lf(),Yo(uf)).default}catch{console.log("Error while reading configuration file"),process.exit(1)}}async function ff(t,e){let n=he().dirs(t),i=Ke.default.resolve(n.__cx,"dist"),s=Ke.default.resolve(n.__cx,"assets"),o=Ke.default.join(n.__cx,"dist",t),a=Ke.default.resolve(n.__ssg,"public");console.log(a);let c=Le.default.readdirSync(a).filter(S=>Ke.default.extname(S)===".js"||Ke.default.extname(S)===".json"||Ke.default.extname(S)===".css"),d=`${a}/page-data`,u=`${s}/page-data`,p=Ke.default.resolve(n.__ssg,"static"),g=s,m=`${i}/static`,b=`${s}/static`;try{Le.default.mkdirSync(s,{recursive:!0}),Le.default.copySync(a,i),e&&(Le.default.copySync(d,u),Le.default.existsSync(p)&&Le.default.copySync(p,g,{overwrite:!1}),Le.default.copySync(m,b,{overwrite:!1}),Le.default.existsSync(p)&&Le.default.copySync(p,o,{overwrite:!1}),c.map(async S=>{let x=`${a}/${S}`,R=`${s}/${S}`;Le.default.copySync(x,R)}))}catch(S){console.error(S)}}df.default.config();var Qe={prepare:JSON.parse(process.env.GRIDDO_PREPARE_LIFECYCLE_MAX_ATTEMPTS||"1"),restore:JSON.parse(process.env.GRIDDO_RESTORE_LIFECYCLE_MAX_ATTEMPTS||"1"),data:JSON.parse(process.env.GRIDDO_DATA_LIFECYCLE_MAX_ATTEMPTS||"1"),ssg:JSON.parse(process.env.GRIDDO_SSG_LIFECYCLE_MAX_ATTEMPTS||"1"),relocation:JSON.parse(process.env.GRIDDO_RELOCATION_LIFECYCLE_MAX_ATTEMPTS||"1"),meta:JSON.parse(process.env.GRIDDO_META_LIFECYCLE_MAX_ATTEMPTS||"1"),archive:JSON.parse(process.env.GRIDDO_ARCHIVE_LIFECYCLE_MAX_ATTEMPTS||"1"),clean:JSON.parse(process.env.GRIDDO_CLEAN_LIFECYCLE_MAX_ATTEMPTS||"1")};function hf(t){let{proDomain:e}=he(),r=process.env.GRIDDO_ASSET_PREFIX||process.env.ASSET_PREFIX;return!r||!t||!t.startsWith(e)?"":`${r}/${t}`}function bs(t,e,r,n="jpg"){let i=typeof t=="string"?t:t?.url;return i?i.split("/")[2].includes("cloudinary.com")?Lg(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 Lg(t,e){let r=t.replace("https://",""),n=r.split("/").slice(0,4).join("/"),i=r.replace(n,"");return`https://${n}/${e}${i}`}var Qs=A(require("node:fs")),Zs=A(require("node:path")),eh=A(rt());var Kd=A(zs()),Qd=A(on()),Zd=A(rt());var Bd=A(require("node:crypto")),Ct=A(require("node:fs")),Ws=A(require("node:path")),Ys=A(vt()),Bn=Ws.default.resolve(__dirname,"./../apiCache"),Ud=`${Bn}/siteHash.json`;function Xd(){Ct.default.existsSync(Bn)||Ct.default.mkdirSync(Bn),console.info("Cache initialized")}function Gd(t){let e=Bd.default.createHash("sha256");return e.update(JSON.stringify(t)),`${Bn}/${e.digest("hex")}`}function Hd(t,e){let r=typeof e=="string"?e:JSON.stringify(e),n=Gd(t),i=Ws.default.dirname(n);Ct.default.existsSync(i)||Ct.default.mkdirSync(i,{recursive:!0}),Ct.default.writeFileSync(n,r,"utf8")}function Jd(t){try{let e=Gd(t);return Ys.default.readJSONSync(e,{encoding:"utf-8"})}catch{return null}}function pv(){try{return Ys.default.readJSONSync(Ud,{encoding:"utf-8"})||{}}catch{return{}}}function zd(t,e){let r=pv(),n=r[t],i=e||n||new Date().valueOf();return i!==n&&(r[t]=i,Ct.default.writeFileSync(Ud,JSON.stringify(r),{encoding:"utf-8"})),i.toString()}var Wd=A(zs()),Yd=A(on()),Vs=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,Wd.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(Yd.default.red(`
34
34
  \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
35
35
  \u2502 Access credentials failure \u2502
36
36
  \u2502 Check that the login details are correct in your .env file \u2502
37
37
  \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
38
- `)),process.exit(1)}}},Ze=new Vs;eh.default.config();var{env:{RETRY_WAIT_SECONDS:vv="4",RETRY_ATTEMPTS:Kd="4"}}=process;async function Ks(t,e,r=""){let{endpoint:n,body:i,cacheKey:s="",attempt:o=1,headers:a}=t,c={endpoint:n,body:i,headers:a,cacheKey:s};if(s){let d=new Date,u=zd(c);if(u){let p=as(u),g=p?`site: ${p}`:"",m=os(new Date().getTime()-d.getTime());return Ve(`${e} (cache) ${g} ${n} - ${m}s ${r}`),u}}try{let d=new Date,{data:u}=await(0,Qd.default)({url:n,method:e,headers:Object.assign({},a,Ze.headers),data:i}),p=as(u),g=p?`site: ${p}`:"",m=os(new Date().getTime()-d.getTime());return Ve(`${e} (fetch) ${g} ${n} - ${m}s ${r}`),Jd(c,u),u}catch(d){let u=d;return u.response?.status===404?null:(o>parseInt(Kd)&&(console.log(`
39
- Max attempts ${Kd} reached
38
+ `)),process.exit(1)}}},Ze=new Vs;Zd.default.config();var{env:{RETRY_WAIT_SECONDS:mv="4",RETRY_ATTEMPTS:Vd="4"}}=process;async function Ks(t,e,r=""){let{endpoint:n,body:i,cacheKey:s="",attempt:o=1,headers:a}=t,c={endpoint:n,body:i,headers:a,cacheKey:s};if(s){let d=new Date,u=Jd(c);if(u){let p=os(u),g=p?`site: ${p}`:"",m=ss(new Date().getTime()-d.getTime());return Ve(`${e} (cache) ${g} ${n} - ${m}s ${r}`),u}}try{let d=new Date,{data:u}=await(0,Kd.default)({url:n,method:e,headers:Object.assign({},a,Ze.headers),data:i}),p=os(u),g=p?`site: ${p}`:"",m=ss(new Date().getTime()-d.getTime());return Ve(`${e} (fetch) ${g} ${n} - ${m}s ${r}`),Hd(c,u),u}catch(d){let u=d;return u.response?.status===404?null:(o>parseInt(Vd)&&(console.log(`
39
+ Max attempts ${Vd} reached
40
40
  --------------------------------------
41
41
  - ${e.toUpperCase()} ${n}
42
42
  - BODY: ${JSON.stringify(i)}
43
43
  - HEADERS: ${JSON.stringify(a)}
44
44
  - RESPONSE: ${u.response?.status,JSON.stringify(u.response?.data)}
45
45
  --------------------------------------
46
- `),process.exit(1)),u.response||(console.log("Unknown error occurred"),console.log(JSON.stringify(u,null,2)),process.exit(1)),bv(u,{callInfo:{endpoint:n,body:i}}),console.warn(`Waiting for retry: ${e}`,n),await Jl(parseInt(vv)*1e3),Ks({endpoint:n,body:i,headers:a,cacheKey:s,attempt:o+1},e,r))}}async function Oe(t){return await Ks(t,"get")}async function Pt(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 Ks(t,"post",i||"")}function bv(t,e){let{response:r,message:n,stack:i}=t,{callInfo:s}=e,{status:o,statusText:a,data:c}=r||{},d=[];for(let m of Object.keys(s))d.push(`${m}: ${typeof s[m]=="object"?JSON.stringify(s[m]):s[m]}`);let u=d.join(`
46
+ `),process.exit(1)),u.response||(console.log("Unknown error occurred"),console.log(JSON.stringify(u,null,2)),process.exit(1)),gv(u,{callInfo:{endpoint:n,body:i}}),console.warn(`Waiting for retry: ${e}`,n),await Hl(parseInt(mv)*1e3),Ks({endpoint:n,body:i,headers:a,cacheKey:s,attempt:o+1},e,r))}}async function Oe(t){return await Ks(t,"get")}async function xr(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 Ks(t,"post",i||"")}function gv(t,e){let{response:r,message:n,stack:i}=t,{callInfo:s}=e,{status:o,statusText:a,data:c}=r||{},d=[];for(let m of Object.keys(s))d.push(`${m}: ${typeof s[m]=="object"?JSON.stringify(s[m]):s[m]}`);let u=d.join(`
47
47
  `),p=r?`Code: ${o} - ${a}
48
48
  Response: ${JSON.stringify(c)}`:"",g=`${n}
49
- ${i}`;console.warn(Zd.default.bold.red(`
49
+ ${i}`;console.warn(Qd.default.bold.red(`
50
50
  =============
51
51
 
52
52
  { Call info }
@@ -59,11 +59,11 @@ ${p}
59
59
  ${g}
60
60
 
61
61
  =============
62
- `))}th.default.config();var eo=class{robots;baseURL;settings;endpoint;constructor(){this.robots=[],this.baseURL=process.env.API_URL,this.settings={},this.endpoint=`${this.baseURL}/domains/robots`}async getRobots(){try{let e=await Oe({endpoint:this.endpoint});this.robots=e?.filter(r=>!!r.path).map(({path:r,content:n})=>({path:r,content:n||`User-agent: *
62
+ `))}eh.default.config();var eo=class{robots;baseURL;settings;endpoint;constructor(){this.robots=[],this.baseURL=process.env.API_URL,this.settings={},this.endpoint=`${this.baseURL}/domains/robots`}async getRobots(){try{let e=await Oe({endpoint:this.endpoint});this.robots=e?.filter(r=>!!r.path).map(({path:r,content:n})=>({path:r,content:n||`User-agent: *
63
63
  \r
64
- \rAllow: /`}))||[]}catch(e){console.warn(`${this.constructor.name}: ${e.message}`)}}async writeFiles(e){let n=he().dirs(e),i=Zs.default.join(n.__cx,"dist");await this.getRobots();let s=this.robots.find(({path:o})=>o===`/${e}`);if(!s){console.log(`Robots not found for ${e}`);return}if(Qs.default.existsSync(i)){let o=Zs.default.join(i,"robots.txt");Qs.default.writeFileSync(o,s?.content)}else console.log(`${i} not found`)}},rh=new eo;var Xo=A(require("node:path"));var Hh=A(require("node:fs")),Jh=A(require("node:path")),zh=A(rt()),Wh=A(Zi());var nh=A(rt());nh.default.config();var to=process.env.API_URL,dt=`${to}/site/`,et={GET_ALL:`${to}/sites/all`,GET_PAGE:[`${to}/page/`,""],INFO:[`${dt}`,"/all"],LANGUAGES:[`${dt}`,"/languages"],BUILD_START:[`${dt}`,"/build/start"],BUILD_END:[`${dt}`,"/build/end"],GET_DISTRIBUTOR_DATA:[`${dt}`,"/distributor"],GET_SITEMAP:[`${dt}`,"/sitemap"],SOCIALS:[`${dt}`,"/socials"],GET_PAGES:[`${dt}`,"/pages?pagination=false"]},me=class{static async getAll(){let{GET_ALL:e}=et;return await Oe({endpoint:e})}static async getPage(e,r){let{GET_PAGE:[n,i]}=et;return await Oe({endpoint:`${n}${e}${i}`,cacheKey:r})}static async getInfo(e,r=""){let{INFO:[n,i]}=et;return await Oe({endpoint:`${n}${e}${i}`,cacheKey:r})}static async getLanguages(e,r=""){let{LANGUAGES:[n,i]}=et;return await Oe({endpoint:`${n}${e}${i}`,cacheKey:r})}static async startSiteRender(e){let{BUILD_START:[r,n]}=et;return await Oe({endpoint:`${r}${e}${n}`})}static async endSiteRender(e,r){let{BUILD_END:[n,i]}=et;return await Pt({endpoint:`${n}${e}${i}`,body:r})}static async getDistributorData(e,r,n,i,s){let{GET_DISTRIBUTOR_DATA:[o,a]}=et,c=i||e.site,d=s||e.language;return await Pt({endpoint:`${o}${c}${a}`,body:r,headers:{lang:d},cacheKey:n})}static async getSitemap(e){let{GET_SITEMAP:[r,n]}=et;return await Oe({endpoint:`${r}${e}${n}`})}static async getSocials(e,r=""){let{SOCIALS:[n,i]}=et;return await Oe({endpoint:`${n}${e}${i}`,cacheKey:r})}};var Xn=class{static getBody(e,r){let{order:n,sources:i,quantity:s,mode:o,fixed:a,fullRelations:c=!1,allLanguages:d=!1,preferenceLanguage:u=!1,referenceId:p}=e;return o==="auto"?{mode:o,order:n,sources:i,quantity:s,fullRelations:c,allLanguages:d,preferenceLanguage:u}:o==="manual"?{mode:o,fixed:a,fullRelations:c}:o==="navigation"?{mode:o,order:n,quantity:s,fullRelations:c,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 He(`Error: Page ${r.id} has \`hasDistributorData: true\` but it doesn't have a \`data\` prop`,"No data in ReferenceField"),[];if(Array.isArray(n.sources)&&n.sources.length<1)return He(`Warning: Page with id: ${r.id} has a ReferenceField with empty \`data.sources\``,"Empty data.sources in ReferenceField"),[];let{site:s,lang:o}=n,a=this.getBody(n,r);return await me.getDistributorData(r,a,i,s,o)}static async getDistributorData({page:e,cacheKey:r=""}){try{let{template:n}=e,i=async(a,c=1)=>{if(!(!a||typeof a!="object")&&JSON.stringify(a).includes('"hasDistributorData":true'))for(let d in a){if(d==="queriedItems")continue;let p=a[d];!p||typeof p!="object"||(p.hasDistributorData&&(p.queriedItems=await this.fetchContentTypeData({page:e,cacheKey:r,component:p})),await i(p,c+1))}};return await(async a=>(await i([a]),a))(n)}catch(n){console.error(`Error en get distributor ${n}`),process.exit(1)}}};var Gn=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:c}}=e,d=b=>{let S=b.find(x=>typeof x=="number");return typeof S=="number"?S:null},u=d([r,c?.[s]?.defaultHeader,o]),p=d([n,c?.[s]?.defaultFooter,a]),g=u?this.getPageHeader(u,i):u===0?null:this._defaultHeaders[i],m=p?this.getPageFooter(p,i):p===0?null:this._defaultFooters[i];return{header:g,footer:m}}};var ro=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 Oe({endpoint:e});this.settings=r}async resetRender(){let{resetRender:e}=this.ENDPOINTS;await Pt({endpoint:e})}},no=new ro;var oh=A(rt());oh.default.config();var wv=25;function _v({socialTitle:t,socialDescription:e,socialImage:r}){return{type:"website",title:t,description:e,image:r?bs(r,1280,768):"",twitterImage:r?bs(r,1280,768):""}}function Sv(t){let{title:e,metaTitle:r,metaDescription:n,canonicalURL:i,locale:s,url:o,isIndexed:a,follow:c,metasAdvanced:d,pageLanguages:u,fullUrl:p,metaKeywords:g}=t,m=d?.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:c?"follow":"nofollow",translate:m.includes("notranslate")?"notranslate":"",metasAdvanced:m.filter(b=>b!=="notranslate").join(),pageLanguages:u,metaKeywords:g?.filter(Boolean).map(b=>b.replace(/"/g,"'")).join(", ")}}async function so(t,e){let{id:r,title:n,fullPath:i,language:s,breadcrumb:o,socialDescription:a,socialImage:c,socialTitle:d}=t,{baseUrl:u,cloudinaryName:p,griddoVersion:g,siteLangs:m,siteMetadata:b,siteOptions:S,siteScript:x,siteSlug:R,socials:L,theme:j,navigations:{header:$,footer:H}}=e;t.breadcrumb=o,t.siteSlug=R,t.apiUrl=u,t.publicApiUrl=e.publicBaseUrl,t.instance=e.instance;let xe=m.find(({id:I})=>I===t?.language)?.locale.replace(/_/g,"-"),V=Sv(t),D=_v({socialDescription:a,socialImage:c,socialTitle:d}),q=i.compose,T=new Date().toString();return{path:q,size:void 0,context:{id:r,title:n,fullPath:i,locale:xe,languageId:s,theme:j,siteMetadata:b,pageMetadata:V,openGraph:D,socials:L,siteLangs:m,cloudinaryName:p,siteOptions:S,griddoVersion:g,renderDate:T,siteScript:x,header:$,footer:H,page:t}}}async function ah(t,e){return await so(t,e)}async function ch({page:t,pages:e,isRoot:r=!1,defaultLang:n,template:i,totalQueriedItems:s},o){let a=e.map(async(c,d)=>{let u=d===0,p=d+1,{domainUrl:g,compose:m}=t.fullPath,b={...t,id:parseInt("-"+t.id+d),fullPath:{...t.fullPath,compose:io(m,p,{addEndingSlash:!0})},fullUrl:io(t.fullUrl,p,{addEndingSlash:!0}),slug:io(t.slug,p),title:sh(t.title,p),metaTitle:sh(t.metaTitle||"",p),disableHrefLangs:p>1,template:{...i,isFirstPage:u,pageNumber:p,totalPages:e.length,baseLink:`${g}${m}`,queriedItems:c,totalQueriedItems:s?.length},isRoot:r,defaultLang:n};return await so(b,o)});return Promise.all(a)}function uh(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,a)=>{let c=JSON.parse(JSON.stringify(n)),{sectionSlug:d="/",title:u="",metaTitle:p="",metaDescription:g=""}=o,m=typeof u=="string"?u:u.content,b=c.fullPath.compose||"",S=c.fullUrl.endsWith("/")?c.fullUrl.slice(0,-1):c.fullUrl,x=d?.replace(/\//g,""),L=d==="/"?x:x+"/",j=b.endsWith("/")?"":"/",$=`${b}${j}${L}`;return m.trim()&&(c.title=m),g.trim()&&(c.metaDescription=g),c.id=parseInt("-"+c.id+a),c.fullUrl=`${S}/${L}`,c.fullPath.compose=$,c.slug=$,c.template.activeSectionSlug=d,c.template.activeSectionBase=S,c.metaTitle=p.trim()||m.trim()||c.metaTitle,await so(c,e)});return Promise.all(s)}function lh(t){return new Promise(r=>{let n=(i,s=0)=>{if(!(!i||typeof i!="object")){for(let o in i){let a=i[o],c=a||typeof a=="object",d=JSON.stringify(a).includes('"hasGriddoMultiPage":true');if(!c||!d)continue;let{component:u,hasGriddoMultiPage:p,elements:g}=a;u&&p&&r(g||[]),n(a,s+1)}s||r(null)}};n([t])})}function xv(t,e,r){return e?.slice(t*(r-1),t*r)}function Ev(t,e){let r=Math.ceil(e.length/t)||1;return Array.from({length:r},(i,s)=>s+1)?.map(i=>xv(t,e,i))}function fh(t){let e=t.queriedItems||[],r=t?.itemsPerPage||wv;return Ev(r,e)}function ih(t){return t.replace(/\/+$/,"/")}function io(t,e,r){let n=t.endsWith("/")?"":"/",i=r?.addEndingSlash?"/":"";return e<=1?ih(`${t}${i}`):ih(`${t}${n}${e}${i}`)}function sh(t,e){return!t||e<=1?t:`${t} - ${e}`}var tr=A(require("node:path")),Mr=A(vt()),Uo=A(qh());var gb=process.env.API_URL,yb=!!process.env.GRIDDO_RENDER_ALL_SITES||!!process.env.updateAllSites,er=process.env.GRIDDO_RENDER_SITE&&parseInt(process.env.GRIDDO_RENDER_SITE)||process.env.testSite&&parseInt(process.env.testSite),Nh=(process.env.GRIDDO_RENDER_PAGES||process.env.testPage||"").split(",").map(t=>parseInt(t)).filter(Boolean);async function jh(t){console.info(`API URL ${gb}`),await Ze.login();let e=await me.getAll(),r=yb?e.filter(s=>!er||s.id===er):e.filter(s=>er?s.id===er:!!s.shouldBeUpdated);if(r.length)for(let s of r){let{items:o}=await me.getLanguages(s.id);s.domains=o.filter(a=>a.domain&&(a.domain.slug===t||a.domain.slug===`/${t}`)).map(a=>({[a.id]:`${a.domain.slug}${a.path}`}))}let n=r.filter(s=>er?s.id===er:!!s.isPublished&&s.domains.length>0),i=r.filter(s=>!s.isPublished&&s.shouldBeUpdated);return{sitesToPublish:n,sitesToUnpublish:i}}async function $h(t){for(let e of t){let r=await me.startSiteRender(e.id),{siteHash:n}=r,i={siteHash:n,publishHashes:[],unpublishHashes:[]};await me.endSiteRender(e.id,i)}}async function Bh(t){let e=await me.startSiteRender(t),r=await me.getInfo(t),n=await me.getLanguages(t),i=await me.getSocials(t),s=n.items,o=s.find(b=>b.isDefault),{siteHash:a,unpublishHashes:c,publishIds:d}=e,{headers:u,footers:p}=r,g=Nh.length?Nh.filter(b=>d.includes(b)):d;return{siteInfo:r,validPagesIds:g,siteHash:a,unpublishHashes:c,siteLangs:s,defaultLang:o,headers:u,footers:p,socials:i}}async function Uh(){let e=he().dirs(),r=tr.default.join(e.__cx,"dist"),{buildProcessData:n}=await fs(),i=tr.default.join(r,"__build-report__.json"),s=await Ze.login(),o=Object.keys(n).map(c=>({...n[c],siteId:parseInt(c)})),a={authControl:s,sites:o};Mr.default.writeFileSync(i,JSON.stringify(a)),Ve(`Build report saved for ${o.length} site(s)`)}async function Xh(){let{sitesToPublish:t}=await fs(),r=he().dirs(),n=tr.default.resolve(r.__cx,"dist"),i=t.map(async s=>{let{id:o,languages:a}=s,c=a.map(async d=>{Ze.headers&&(Ze.headers.lang=d.id.toString());let u=await me.getSitemap(o);if(!u)return;let{items:p,url:{home:g,domain:m}}=u;if(!g)return;let b=s.domains.find(H=>Object.keys(H)[0]==d.id.toString());if(!b)return;let S=Object.values(b)[0],x=[],R=Object.keys(p),L=tr.default.join(n,S.replace(m,""));for(let H of R){let ne=p[H];if(!ne.length)continue;let xe=(0,Uo.parse)("urlset",{"@":{xmlns:"http://www.sitemaps.org/schemas/sitemap/0.9","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation":"http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"},url:ne}),V=`/sitemap-${H.toLowerCase()}.xml`,D=`${L}${V}`;Lh(D,xe),x.push(`${g.endsWith("/")?g.slice(0,-1):g}${V}`)}if(!x.length)return;let j=(0,Uo.parse)("sitemapindex",{"@":{xmlns:"http://www.sitemaps.org/schemas/sitemap/0.9"},sitemap:x.map(H=>({loc:H}))}),$=`${L}/sitemap.xml`;Lh($,j)});return Promise.all(c)});await Promise.all(i)}function Lh(t,e){try{let r=tr.default.dirname(t);Mr.default.existsSync(r)||Mr.default.mkdirSync(r,{recursive:!0}),Mr.default.writeFileSync(t,e)}catch(r){console.error(`Error saving file: ${r}`)}}zh.default.config();var vb=process.env.API_URL,bb=process.env.GRIDDO_REACT_APP_INSTANCE||process.env.REACT_APP_INSTANCE,Gh=parseInt(process.env.GRIDDO_API_CONCURRENCY_COUNT||"10"),wb=process.env.PUBLIC_API_URL,_b=new Date().valueOf().toString();async function Yh(t,e){console.info(`API calls with ${Gh} threads`);let{version:r}=JSON.parse(Hh.default.readFileSync(Jh.default.resolve(__dirname,"../package.json"),"utf-8"));try{let n=[],i={},{sitesToPublish:s,sitesToUnpublish:o}=await jh(e);await no.getAll(),s.length||o.length||(console.warn("There are no sites to update"),process.exit(0)),console.info(`Sites to publish: ${us(s)}`),console.info(`Sites to unpublish: ${us(o)}`),await $h(o);for(let a of s){let{id:c,slug:d,theme:u,favicon:p,changedPages:g=[],pages:m=[]}=a,{siteInfo:b,validPagesIds:S,siteHash:x,unpublishHashes:R,siteLangs:L,defaultLang:j,headers:$,footers:H,socials:ne}=await Bh(c),{cloudinaryName:xe,useMetaTitle:V,useMetaKeywords:D,showBasicMetaRobots:q,avoidHrefLangsOnCanonicals:T,avoidSelfReferenceCanonicals:J,avoidHrefLangXDefault:I,avoidDebugMetas:X}=no.settings;i[c]={siteHash:x,unpublishHashes:R,publishHashes:[]};let O=new Gn;O.navigations={headers:$,footers:H},a.languages=L;let B=Wd(c,x),M=b.siteScript,P={siteUrl:b.slug,title:b.name,favicon:p},F={baseUrl:vb,publicBaseUrl:wb,instance:bb,siteSlug:d,theme:u,siteMetadata:P,socials:ne,siteLangs:L,cloudinaryName:xe,griddoVersion:r,siteOptions:{useMetaTitle:V,useMetaKeywords:D,showBasicMetaRobots:q,avoidHrefLangsOnCanonicals:T,avoidSelfReferenceCanonicals:J,avoidHrefLangXDefault:I,avoidDebugMetas:X},siteScript:M};Ve(`${a.name} site`);let Ue=async f=>{let v=[],_=await me.getPage(f,B);if(!_)return;n.push(f);let w=JSON.parse(JSON.stringify(F));w.navigations=O.getPageNavigations(_);let N=await Xn.getDistributorData({page:_,cacheKey:_b}),U=await lh(N),z=_?.mode==="list",ge=!z&&U,mt=!ge&&!z;if(z){let Y={page:_,pages:fh(N),isRoot:!1,defaultLang:j,template:N,totalQueriedItems:N.queriedItems};v=await ch(Y,w)}if(ge){let Y=_;Y.template=N,Y.multiPageElements=U,Y.defaultLang=j,v=await uh(Y,w)}if(mt){let Y=_;Y.template=N,Y.defaultLang=j,v=[await ah(Y,w)]}_.hash!==null&&i[c].publishHashes.push(_.hash),Zl(t,v)},{pagesInStore:Xe,pagesMissingInStore:ie,pagesToDeleteFromStore:ue,pagesToWriteToStore:tt}=await ef(t,{sitesToPublish:s,pages:m,validPagesIds:S,changedPages:g});_n(t,ue);let Ee=`Store: ${Xe.length} -> ${Xe}
64
+ \rAllow: /`}))||[]}catch(e){console.warn(`${this.constructor.name}: ${e.message}`)}}async writeFiles(e){let n=he().dirs(e),i=Zs.default.join(n.__cx,"dist");await this.getRobots();let s=this.robots.find(({path:o})=>o===`/${e}`);if(!s){console.log(`Robots not found for ${e}`);return}if(Qs.default.existsSync(i)){let o=Zs.default.join(i,"robots.txt");Qs.default.writeFileSync(o,s?.content)}else console.log(`${i} not found`)}},th=new eo;var Xo=A(require("node:path"));var Gh=A(require("node:fs")),Hh=A(require("node:path")),Jh=A(rt()),zh=A(Qi());var rh=A(rt());rh.default.config();var to=process.env.API_URL,dt=`${to}/site/`,et={GET_ALL:`${to}/sites/all`,GET_PAGE:[`${to}/page/`,""],INFO:[`${dt}`,"/all"],LANGUAGES:[`${dt}`,"/languages"],BUILD_START:[`${dt}`,"/build/start"],BUILD_END:[`${dt}`,"/build/end"],GET_DISTRIBUTOR_DATA:[`${dt}`,"/distributor"],GET_SITEMAP:[`${dt}`,"/sitemap"],SOCIALS:[`${dt}`,"/socials"],GET_PAGES:[`${dt}`,"/pages?pagination=false"]},me=class{static async getAll(){let{GET_ALL:e}=et;return await Oe({endpoint:e})}static async getPage(e,r){let{GET_PAGE:[n,i]}=et;return await Oe({endpoint:`${n}${e}${i}`,cacheKey:r})}static async getInfo(e,r=""){let{INFO:[n,i]}=et;return await Oe({endpoint:`${n}${e}${i}`,cacheKey:r})}static async getLanguages(e,r=""){let{LANGUAGES:[n,i]}=et;return await Oe({endpoint:`${n}${e}${i}`,cacheKey:r})}static async startSiteRender(e){let{BUILD_START:[r,n]}=et;return await Oe({endpoint:`${r}${e}${n}`})}static async endSiteRender(e,r){let{BUILD_END:[n,i]}=et;return await xr({endpoint:`${n}${e}${i}`,body:r})}static async getDistributorData(e,r,n,i,s){let{GET_DISTRIBUTOR_DATA:[o,a]}=et,c=i||e.site,d=s||e.language;return await xr({endpoint:`${o}${c}${a}`,body:r,headers:{lang:d},cacheKey:n})}static async getSitemap(e){let{GET_SITEMAP:[r,n]}=et;return await Oe({endpoint:`${r}${e}${n}`})}static async getSocials(e,r=""){let{SOCIALS:[n,i]}=et;return await Oe({endpoint:`${n}${e}${i}`,cacheKey:r})}};var Un=class{static getBody(e,r){let{order:n,sources:i,quantity:s,mode:o,fixed:a,fullRelations:c=!1,allLanguages:d=!1,preferenceLanguage:u=!1,referenceId:p}=e;return o==="auto"?{mode:o,order:n,sources:i,quantity:s,fullRelations:c,allLanguages:d,preferenceLanguage:u}:o==="manual"?{mode:o,fixed:a,fullRelations:c}:o==="navigation"?{mode:o,order:n,quantity:s,fullRelations:c,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 He(`Error: Page ${r.id} has \`hasDistributorData: true\` but it doesn't have a \`data\` prop`,"No data in ReferenceField"),[];if(Array.isArray(n.sources)&&n.sources.length<1)return He(`Warning: Page with id: ${r.id} has a ReferenceField with empty \`data.sources\``,"Empty data.sources in ReferenceField"),[];let{site:s,lang:o}=n,a=this.getBody(n,r);return await me.getDistributorData(r,a,i,s,o)}static async getDistributorData({page:e,cacheKey:r=""}){try{let{template:n}=e,i=async(a,c=1)=>{if(!(!a||typeof a!="object")&&JSON.stringify(a).includes('"hasDistributorData":true'))for(let d in a){if(d==="queriedItems")continue;let p=a[d];!p||typeof p!="object"||(p.hasDistributorData&&(p.queriedItems=await this.fetchContentTypeData({page:e,cacheKey:r,component:p})),await i(p,c+1))}};return await(async a=>(await i([a]),a))(n)}catch(n){console.error(`Error en get distributor ${n}`),process.exit(1)}}};var Xn=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:c}}=e,d=b=>{let S=b.find(x=>typeof x=="number");return typeof S=="number"?S:null},u=d([r,c?.[s]?.defaultHeader,o]),p=d([n,c?.[s]?.defaultFooter,a]),g=u?this.getPageHeader(u,i):u===0?null:this._defaultHeaders[i],m=p?this.getPageFooter(p,i):p===0?null:this._defaultFooters[i];return{header:g,footer:m}}};var ro=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 Oe({endpoint:e});this.settings=r}async resetRender(){let{resetRender:e}=this.ENDPOINTS;await xr({endpoint:e})}},no=new ro;var sh=A(rt());sh.default.config();var yv=25;function vv({socialTitle:t,socialDescription:e,socialImage:r}){return{type:"website",title:t,description:e,image:r?bs(r,1280,768):"",twitterImage:r?bs(r,1280,768):""}}function bv(t){let{title:e,metaTitle:r,metaDescription:n,canonicalURL:i,locale:s,url:o,isIndexed:a,follow:c,metasAdvanced:d,pageLanguages:u,fullUrl:p,metaKeywords:g}=t,m=d?.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:c?"follow":"nofollow",translate:m.includes("notranslate")?"notranslate":"",metasAdvanced:m.filter(b=>b!=="notranslate").join(),pageLanguages:u,metaKeywords:g?.filter(Boolean).map(b=>b.replace(/"/g,"'")).join(", ")}}async function so(t,e){let{id:r,title:n,fullPath:i,language:s,breadcrumb:o,socialDescription:a,socialImage:c,socialTitle:d}=t,{baseUrl:u,cloudinaryName:p,griddoVersion:g,siteLangs:m,siteMetadata:b,siteOptions:S,siteScript:x,siteSlug:R,socials:j,theme:L,navigations:{header:$,footer:H}}=e;t.breadcrumb=o,t.siteSlug=R,t.apiUrl=u,t.publicApiUrl=e.publicBaseUrl,t.instance=e.instance;let xe=m.find(({id:I})=>I===t?.language)?.locale.replace(/_/g,"-"),V=bv(t),D=vv({socialDescription:a,socialImage:c,socialTitle:d}),q=i.compose,T=new Date().toString();return{path:q,size:void 0,context:{id:r,title:n,fullPath:i,locale:xe,languageId:s,theme:L,siteMetadata:b,pageMetadata:V,openGraph:D,socials:j,siteLangs:m,cloudinaryName:p,siteOptions:S,griddoVersion:g,renderDate:T,siteScript:x,header:$,footer:H,page:t}}}async function oh(t,e){return await so(t,e)}async function ah({page:t,pages:e,isRoot:r=!1,defaultLang:n,template:i,totalQueriedItems:s},o){let a=e.map(async(c,d)=>{let u=d===0,p=d+1,{domainUrl:g,compose:m}=t.fullPath,b={...t,id:parseInt("-"+t.id+d),fullPath:{...t.fullPath,compose:io(m,p,{addEndingSlash:!0})},fullUrl:io(t.fullUrl,p,{addEndingSlash:!0}),slug:io(t.slug,p),title:ih(t.title,p),metaTitle:ih(t.metaTitle||"",p),disableHrefLangs:p>1,template:{...i,isFirstPage:u,pageNumber:p,totalPages:e.length,baseLink:`${g}${m}`,queriedItems:c,totalQueriedItems:s?.length},isRoot:r,defaultLang:n};return await so(b,o)});return Promise.all(a)}function ch(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,a)=>{let c=JSON.parse(JSON.stringify(n)),{sectionSlug:d="/",title:u="",metaTitle:p="",metaDescription:g=""}=o,m=typeof u=="string"?u:u.content,b=c.fullPath.compose||"",S=c.fullUrl.endsWith("/")?c.fullUrl.slice(0,-1):c.fullUrl,x=d?.replace(/\//g,""),j=d==="/"?x:x+"/",L=b.endsWith("/")?"":"/",$=`${b}${L}${j}`;return m.trim()&&(c.title=m),g.trim()&&(c.metaDescription=g),c.id=parseInt("-"+c.id+a),c.fullUrl=`${S}/${j}`,c.fullPath.compose=$,c.slug=$,c.template.activeSectionSlug=d,c.template.activeSectionBase=S,c.metaTitle=p.trim()||m.trim()||c.metaTitle,await so(c,e)});return Promise.all(s)}function uh(t){return new Promise(r=>{let n=(i,s=0)=>{if(!(!i||typeof i!="object")){for(let o in i){let a=i[o],c=a||typeof a=="object",d=JSON.stringify(a).includes('"hasGriddoMultiPage":true');if(!c||!d)continue;let{component:u,hasGriddoMultiPage:p,elements:g}=a;u&&p&&r(g||[]),n(a,s+1)}s||r(null)}};n([t])})}function wv(t,e,r){return e?.slice(t*(r-1),t*r)}function _v(t,e){let r=Math.ceil(e.length/t)||1;return Array.from({length:r},(i,s)=>s+1)?.map(i=>wv(t,e,i))}function lh(t){let e=t.queriedItems||[],r=t?.itemsPerPage||yv;return _v(r,e)}function nh(t){return t.replace(/\/+$/,"/")}function io(t,e,r){let n=t.endsWith("/")?"":"/",i=r?.addEndingSlash?"/":"";return e<=1?nh(`${t}${i}`):nh(`${t}${n}${e}${i}`)}function ih(t,e){return!t||e<=1?t:`${t} - ${e}`}var er=A(require("node:path")),Tr=A(vt()),Uo=A(Mh());var hb=process.env.API_URL,pb=!!process.env.GRIDDO_RENDER_ALL_SITES||!!process.env.updateAllSites,Zt=process.env.GRIDDO_RENDER_SITE&&parseInt(process.env.GRIDDO_RENDER_SITE)||process.env.testSite&&parseInt(process.env.testSite),qh=(process.env.GRIDDO_RENDER_PAGES||process.env.testPage||"").split(",").map(t=>parseInt(t)).filter(Boolean);async function jh(t){console.info(`API URL ${hb}`),await Ze.login();let e=await me.getAll(),r=pb?e.filter(s=>!Zt||s.id===Zt):e.filter(s=>Zt?s.id===Zt:!!s.shouldBeUpdated);if(r.length)for(let s of r){let{items:o}=await me.getLanguages(s.id);s.domains=o.filter(a=>a.domain&&(a.domain.slug===t||a.domain.slug===`/${t}`)).map(a=>({[a.id]:`${a.domain.slug}${a.path}`}))}let n=r.filter(s=>Zt?s.id===Zt:!!s.isPublished&&s.domains.length>0),i=r.filter(s=>!s.isPublished&&s.shouldBeUpdated);return{sitesToPublish:n,sitesToUnpublish:i}}async function Lh(t){for(let e of t){let r=await me.startSiteRender(e.id),{siteHash:n}=r,i={siteHash:n,publishHashes:[],unpublishHashes:[]};await me.endSiteRender(e.id,i)}}async function $h(t){let e=await me.startSiteRender(t),r=await me.getInfo(t),n=await me.getLanguages(t),i=await me.getSocials(t),s=n.items,o=s.find(b=>b.isDefault),{siteHash:a,unpublishHashes:c,publishIds:d}=e,{headers:u,footers:p}=r,g=qh.length?qh.filter(b=>d.includes(b)):d;return{siteInfo:r,validPagesIds:g,siteHash:a,unpublishHashes:c,siteLangs:s,defaultLang:o,headers:u,footers:p,socials:i}}async function Bh(){let e=he().dirs(),r=er.default.join(e.__cx,"dist"),{buildProcessData:n}=await fs(),i=er.default.join(r,"__build-report__.json"),s=await Ze.login(),o=Object.keys(n).map(c=>({...n[c],siteId:parseInt(c)})),a={authControl:s,sites:o};Tr.default.writeFileSync(i,JSON.stringify(a)),Ve(`Build report saved for ${o.length} site(s)`)}async function Uh(){let{sitesToPublish:t}=await fs(),r=he().dirs(),n=er.default.resolve(r.__cx,"dist"),i=t.map(async s=>{let{id:o,languages:a}=s,c=a.map(async d=>{Ze.headers&&(Ze.headers.lang=d.id.toString());let u=await me.getSitemap(o);if(!u)return;let{items:p,url:{home:g,domain:m}}=u;if(!g)return;let b=s.domains.find(H=>Object.keys(H)[0]==d.id.toString());if(!b)return;let S=Object.values(b)[0],x=[],R=Object.keys(p),j=er.default.join(n,S.replace(m,""));for(let H of R){let ne=p[H];if(!ne.length)continue;let xe=(0,Uo.parse)("urlset",{"@":{xmlns:"http://www.sitemaps.org/schemas/sitemap/0.9","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation":"http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"},url:ne}),V=`/sitemap-${H.toLowerCase()}.xml`,D=`${j}${V}`;Nh(D,xe),x.push(`${g.endsWith("/")?g.slice(0,-1):g}${V}`)}if(!x.length)return;let L=(0,Uo.parse)("sitemapindex",{"@":{xmlns:"http://www.sitemaps.org/schemas/sitemap/0.9"},sitemap:x.map(H=>({loc:H}))}),$=`${j}/sitemap.xml`;Nh($,L)});return Promise.all(c)});await Promise.all(i)}function Nh(t,e){try{let r=er.default.dirname(t);Tr.default.existsSync(r)||Tr.default.mkdirSync(r,{recursive:!0}),Tr.default.writeFileSync(t,e)}catch(r){console.error(`Error saving file: ${r}`)}}Jh.default.config();var mb=process.env.API_URL,gb=process.env.GRIDDO_REACT_APP_INSTANCE||process.env.REACT_APP_INSTANCE,Xh=parseInt(process.env.GRIDDO_API_CONCURRENCY_COUNT||"10"),yb=process.env.PUBLIC_API_URL,vb=new Date().valueOf().toString();async function Wh(t,e){console.info(`API calls with ${Xh} threads`);let{version:r}=JSON.parse(Gh.default.readFileSync(Hh.default.resolve(__dirname,"../package.json"),"utf-8"));try{let n=[],i={},{sitesToPublish:s,sitesToUnpublish:o}=await jh(e);await no.getAll(),s.length||o.length||(console.warn("There are no sites to update"),process.exit(0)),console.info(`Sites to publish: ${cs(s)}`),console.info(`Sites to unpublish: ${cs(o)}`),await Lh(o);for(let a of s){let{id:c,slug:d,theme:u,favicon:p,changedPages:g=[],pages:m=[]}=a,{siteInfo:b,validPagesIds:S,siteHash:x,unpublishHashes:R,siteLangs:j,defaultLang:L,headers:$,footers:H,socials:ne}=await $h(c),{cloudinaryName:xe,useMetaTitle:V,useMetaKeywords:D,showBasicMetaRobots:q,avoidHrefLangsOnCanonicals:T,avoidSelfReferenceCanonicals:J,avoidHrefLangXDefault:I,avoidDebugMetas:X}=no.settings;i[c]={siteHash:x,unpublishHashes:R,publishHashes:[]};let O=new Xn;O.navigations={headers:$,footers:H},a.languages=j;let B=zd(c,x),M=b.siteScript,P={siteUrl:b.slug,title:b.name,favicon:p},F={baseUrl:mb,publicBaseUrl:yb,instance:gb,siteSlug:d,theme:u,siteMetadata:P,socials:ne,siteLangs:j,cloudinaryName:xe,griddoVersion:r,siteOptions:{useMetaTitle:V,useMetaKeywords:D,showBasicMetaRobots:q,avoidHrefLangsOnCanonicals:T,avoidSelfReferenceCanonicals:J,avoidHrefLangXDefault:I,avoidDebugMetas:X},siteScript:M};Ve(`${a.name} site`);let Ue=async f=>{let v=[],_=await me.getPage(f,B);if(!_)return;n.push(f);let w=JSON.parse(JSON.stringify(F));w.navigations=O.getPageNavigations(_);let N=await Un.getDistributorData({page:_,cacheKey:vb}),U=await uh(N),z=_?.mode==="list",ge=!z&&U,mt=!ge&&!z;if(z){let Y={page:_,pages:lh(N),isRoot:!1,defaultLang:L,template:N,totalQueriedItems:N.queriedItems};v=await ah(Y,w)}if(ge){let Y=_;Y.template=N,Y.multiPageElements=U,Y.defaultLang=L,v=await ch(Y,w)}if(mt){let Y=_;Y.template=N,Y.defaultLang=L,v=[await oh(Y,w)]}_.hash!==null&&i[c].publishHashes.push(_.hash),Ql(t,v)},{pagesInStore:Xe,pagesMissingInStore:ie,pagesToDeleteFromStore:ue,pagesToWriteToStore:tt}=await Zl(t,{sitesToPublish:s,pages:m,validPagesIds:S,changedPages:g});wn(t,ue);let Ee=`Store: ${Xe.length} -> ${Xe}
65
65
  ValidPages: ${S.length} -> ${S}
66
66
  Changed: ${g.length} -> ${g}
67
67
  Deleted/Unpublished: ${ue.length} -> ${ue}
68
68
  Missing in store: ${ie.length} -> ${ie}
69
- Finally to store: ${tt.length} -> ${tt}`;JSON.parse(process.env.GRIDDO_DEBUG_LOGS||"false")&&He(Ee,`Site store: ${a.name}`,1,0);let l=(0,Wh.default)(Gh),h=tt.map(f=>l(()=>Ue(f)));await Promise.all(h)}Ql(t,{buildProcessData:i,createdPages:n,sitesToPublish:s})}catch(n){console.error(n.message),process.exit(1)}}var Vh=Xo.default.resolve(__dirname,"../store/"),Sb=Xo.default.resolve(__dirname,"../apiCache");async function Kh(t){Gd(),Kl(Vh),await Yh(Vh,t),Yl(Sb)}var xb=process.env.API_URL,Eb={GET_ALL:`${xb}/domains`},ci=class{static async getAll(){let{GET_ALL:e}=Eb;return await Oe({endpoint:e})}};async function Qh(){await Ze.login();let t=await ci.getAll();return Cb(t)}function Cb(t){let e=t.filter(({slug:r})=>!!r).map(({slug:r})=>r.replace("/",""));return[...new Set(e)]}var Zh=A(require("node:fs")),Go=A(require("node:path"));var Pb=process.env.API_URL;async function Db(t){let{title:e,description:r,image:n,pageId:i,languageId:s,siteId:o,url:a,content:c,template:d}=t;return await Pt({endpoint:`${Pb}/search`,body:{title:e,description:r,image:n,pageId:i,languageId:s,siteId:o,url:a,template:d,content:Ob(c)}})}function Ob(t){let e=Ib(["meta","link","style","script","noscript","nav","header","footer"],t),r=Ab(e);return Rb(r)}function Ib(t,e){let r=e;return t.forEach(n=>{r=r.replace(new RegExp(`<${n}.*?>.*?</${n}>`,"gis")," ").replace(new RegExp(`(<${n}([^>]+)>)`,"gis")," ")}),r}function Ab(t){return t.replace(/(<([^>]+)>)/gis," ")}function Rb(t){return t.replace(/\s+/g," ")}async function ep(){let t=Go.default.resolve(__dirname,"../store");for await(let e of vr(t)){let{context:{page:r,openGraph:n}}=e,{compose:i}=r.fullPath,s=Go.default.resolve(__dirname,`../dist/${i}/index.html`),o=Zh.default.readFileSync(s).toString(),a={siteId:r.site,pageId:r.id,title:r.title,languageId:r.language,url:r.fullUrl,template:r.template.templateType||r.templateId,description:n.description,image:n.image,content:o};await Db(a)}}async function Jo(){Wl("gatsby");let t=await Qh(),e=he();for(let r of t){let{__ssg:n,__exports:i,__caches:s,__cx:o,__components:a}=e.dirs(r);He(`Initializing render for the domain ${r}`,"",1,0);let c=pf(r),d=!!c&&c!=="",u=JSON.parse(process.env.GRIDDO_SEARCH_FEATURE||"false");await ze({name:"Clean",attempts:Qe.clean,steps:[()=>br(o,["store","apiCache","dist"]),()=>br(n,["dist","public","static",".cache"]),()=>Je("Clean LifeCycle")]}),await ze({name:"Prepare",attempts:Qe.prepare,steps:[()=>Sn([i]),()=>Sn([s]),()=>Je("Prepare LifeCycle")]}),await ze({name:"Restore",attempts:Qe.restore,steps:[()=>xn(a,n,["static"]),()=>xn(i,o,["assets"]),()=>xn(i,n,["dist"]),()=>{Ho.default.existsSync(ui.default.join(n,"dist"))&&Ho.default.renameSync(ui.default.join(n,"dist"),ui.default.join(n,"public"))},()=>Jt(s,o,["apiCache","store"]),()=>Jt(s,n,[".cache"]),()=>Je("Restore LifeCycle")]}),await ze({name:"Data",attempts:Qe.data,steps:[()=>Kh(r),()=>Je("Data LifeCycle")]}),await ze({name:"SSG",attempts:Qe.ssg,steps:[()=>(0,tp.spawnSync)("yarn",["gatsby-build"],{cwd:n,stdio:["ignore","inherit","ignore"],encoding:"utf8",shell:!0,env:Object.assign(process.env,{GRIDDO_EXPORTER:"true",GRIDDO_ASSET_PREFIX:c})}),()=>Je("SSG LifeCycle")]}),await ze({name:"Relocation",steps:[()=>df(r,d),()=>Je("Relocation LifeCycle")]}),await ze({name:"Meta",attempts:Qe.meta,steps:[()=>Uh(),()=>rh.writeFiles(r),()=>Xh(),()=>u?ep():void 0,()=>Je("Meta LifeCycle")]}),await ze({name:"Archive",attempts:Qe.archive,steps:[()=>sf(),()=>hs(),()=>Jt(o,i,["dist","assets"],{withBackup:!0}),()=>Jt(o,s,["apiCache","store"]),()=>Jt(n,s,[".cache"]),()=>Je("Archive LifeCycle")]}),await ze({name:"Clean",steps:[()=>br(n,["static","public","dist"]),()=>Je("Clean LifeCycle")],attempts:Qe.clean})}}async function rp(){let t=await ls(Jo).catch(e=>{console.log(e),console.log("<[ Render will be reset ]>"),process.exit(1)});He(`All domains rendered in ${t}s.`,"",1,0),process.exit(0)}vs();0&&(module.exports={IS_COMPONENT_LIBRARY,PROJECT_ALIASES,getBuildPages,getConfig,logInfo,logPageSize,resolveComponentsPath,startRender});
69
+ Finally to store: ${tt.length} -> ${tt}`;JSON.parse(process.env.GRIDDO_DEBUG_LOGS||"false")&&He(Ee,`Site store: ${a.name}`,1,0);let l=(0,zh.default)(Xh),h=tt.map(f=>l(()=>Ue(f)));await Promise.all(h)}Kl(t,{buildProcessData:i,createdPages:n,sitesToPublish:s})}catch(n){console.error(n.message),process.exit(1)}}var Yh=Xo.default.resolve(__dirname,"../store/"),bb=Xo.default.resolve(__dirname,"../apiCache");async function Vh(t){Xd(),Vl(Yh),await Wh(Yh,t),Wl(bb)}var wb=process.env.API_URL,_b={GET_ALL:`${wb}/domains`},ai=class{static async getAll(){let{GET_ALL:e}=_b;return await Oe({endpoint:e})}};async function Kh(){await Ze.login();let t=await ai.getAll();return Sb(t)}function Sb(t){let e=t.filter(({slug:r})=>!!r).map(({slug:r})=>r.replace("/",""));return[...new Set(e)]}async function Ho(){zl("gatsby");let t=await Kh(),e=he();for(let r of t){let{__ssg:n,__exports:i,__caches:s,__cx:o,__components:a}=e.dirs(r);He(`Initializing render for the domain ${r}`,"",1,0);let c=hf(r),d=!!c&&c!=="";await ze({name:"Clean",attempts:Qe.clean,steps:[()=>yr(o,["store","apiCache","dist"]),()=>yr(n,["dist","public","static",".cache"]),()=>Je("Clean LifeCycle")]}),await ze({name:"Prepare",attempts:Qe.prepare,steps:[()=>_n([i]),()=>_n([s]),()=>Je("Prepare LifeCycle")]}),await ze({name:"Restore",attempts:Qe.restore,steps:[()=>Sn(a,n,["static"]),()=>Sn(i,o,["assets"]),()=>Sn(i,n,["dist"]),()=>{Go.default.existsSync(ci.default.join(n,"dist"))&&Go.default.renameSync(ci.default.join(n,"dist"),ci.default.join(n,"public"))},()=>Ht(s,o,["apiCache","store"]),()=>Ht(s,n,[".cache"]),()=>Je("Restore LifeCycle")]}),await ze({name:"Data",attempts:Qe.data,steps:[()=>Vh(r),()=>Je("Data LifeCycle")]}),await ze({name:"SSG",attempts:Qe.ssg,steps:[()=>(0,Qh.spawnSync)("yarn",["gatsby-build"],{cwd:n,stdio:["ignore","inherit","ignore"],encoding:"utf8",shell:!0,env:Object.assign(process.env,{GRIDDO_EXPORTER:"true",GRIDDO_ASSET_PREFIX:c})}),()=>Je("SSG LifeCycle")]}),await ze({name:"Relocation",steps:[()=>ff(r,d),()=>Je("Relocation LifeCycle")]}),await ze({name:"Meta",attempts:Qe.meta,steps:[()=>Bh(),()=>th.writeFiles(r),()=>Uh(),()=>Je("Meta LifeCycle")]}),await ze({name:"Archive",attempts:Qe.archive,steps:[()=>nf(),()=>hs(),()=>Ht(o,i,["dist","assets"],{withBackup:!0}),()=>Ht(o,s,["apiCache","store"]),()=>Ht(n,s,[".cache"]),()=>Je("Archive LifeCycle")]}),await ze({name:"Clean",steps:[()=>yr(n,["static","public","dist"]),()=>Je("Clean LifeCycle")],attempts:Qe.clean})}}async function Zh(){let t=await us(Ho).catch(e=>{console.log(e),console.log("<[ Render will be reset ]>"),process.exit(1)});He(`All domains rendered in ${t}s.`,"",1,0),process.exit(0)}vs();0&&(module.exports={IS_COMPONENT_LIBRARY,PROJECT_ALIASES,getBuildPages,getConfig,logInfo,logPageSize,resolveComponentsPath,startRender});