@canva/cli 0.0.1-beta.15 → 0.0.1-beta.16
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/cli.js +51 -51
- package/lib/cjs/index.cjs +1 -1
- package/lib/esm/{index.esm → index.mjs} +1 -1
- package/package.json +1 -1
- package/templates/base/package.json +1 -1
- package/templates/dam/package.json +1 -1
- package/templates/gen_ai/package.json +1 -1
- package/templates/hello_world/package.json +1 -1
- package/templates/hello_world/src/tests/__snapshots__/app.tests.tsx.snap +3 -3
package/cli.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// Copyright 2024 Canva Inc. All Rights Reserved.
|
|
3
3
|
import { createRequire } from 'module';const require = createRequire(import.meta.url);
|
|
4
|
-
var E2=Object.create;var rl=Object.defineProperty;var S2=Object.getOwnPropertyDescriptor;var lj=Object.getOwnPropertyNames;var cj=Object.getPrototypeOf,fj=Object.prototype.hasOwnProperty;var x2=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),nl=e=>{throw TypeError(e)};var _2=(e,t,r)=>t in e?rl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var v2=(e,t)=>rl(e,"name",{value:t,configurable:!0}),V=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var N=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),pj=(e,t)=>{for(var r in t)rl(e,r,{get:t[r],enumerable:!0})},dj=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of lj(t))!fj.call(e,i)&&i!==r&&rl(e,i,{get:()=>t[i],enumerable:!(n=S2(t,i))||n.enumerable});return e};var St=(e,t,r)=>(r=e!=null?E2(cj(e)):{},dj(t||!e||!e.__esModule?rl(r,"default",{value:e,enumerable:!0}):r,e));var il=e=>[,,,E2(e?.[x2("metadata")]??null)],b2=["class","method","getter","setter","accessor","field","value","get","set"],rf=e=>e!==void 0&&typeof e!="function"?nl("Function expected"):e,mj=(e,t,r,n,i)=>({kind:b2[e],name:t,metadata:n,addInitializer:s=>r._?nl("Already initialized"):i.push(rf(s||null))}),_a=(e,t)=>_2(t,x2("metadata"),e[3]),lt=(e,t,r,n)=>{for(var i=0,s=e[t>>1],o=s&&s.length;i<o;i++)t&1?s[i].call(r):n=s[i].call(r,n);return n},yt=(e,t,r,n,i,s)=>{var o,a,u,l,c,f=t&7,p=!!(t&8),d=!!(t&16),m=f>3?e.length+1:f?p?1:2:0,y=b2[f+5],D=f>3&&(e[m-1]=[]),h=e[m]||(e[m]=[]),g=f&&(!d&&!p&&(i=i.prototype),f<5&&(f>3||!d)&&S2(f<4?i:{get[r](){return w2(this,s)},set[r](w){return C2(this,s,w)}},r));f?d&&f<4&&v2(s,(f>2?"set ":f>1?"get ":"")+r):v2(i,r);for(var v=n.length-1;v>=0;v--)l=mj(f,r,u={},e[3],h),f&&(l.static=p,l.private=d,c=l.access={has:d?w=>hj(i,w):w=>r in w},f^3&&(c.get=d?w=>(f^1?w2:gj)(w,i,f^4?s:g.get):w=>w[r]),f>2&&(c.set=d?(w,E)=>C2(w,i,E,f^4?s:g.set):(w,E)=>w[r]=E)),a=(0,n[v])(f?f<4?d?s:g[y]:f>4?void 0:{get:g.get,set:g.set}:i,l),u._=1,f^4||a===void 0?rf(a)&&(f>4?D.unshift(a):f?d?s=a:g[y]=a:i=a):typeof a!="object"||a===null?nl("Object expected"):(rf(o=a.get)&&(g.get=o),rf(o=a.set)&&(g.set=o),rf(o=a.init)&&D.unshift(o));return f||_a(e,i),g&&rl(i,r,g),d?f^4?s:g:i},eD=(e,t,r)=>_2(e,typeof t!="symbol"?t+"":t,r),tD=(e,t,r)=>t.has(e)||nl("Cannot "+r),hj=(e,t)=>Object(t)!==t?nl('Cannot use the "in" operator on this value'):e.has(t),w2=(e,t,r)=>(tD(e,t,"read from private field"),r?r.call(e):t.get(e)),ui=(e,t,r)=>t.has(e)?nl("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),C2=(e,t,r,n)=>(tD(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),gj=(e,t,r)=>(tD(e,t,"access private method"),r);var ID=N((Mae,I_)=>{"use strict";I_.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}});var LD=N((jae,P_)=>{"use strict";var fV=V("os"),T_=V("tty"),Nn=ID(),{env:er}=process,no;Nn("no-color")||Nn("no-colors")||Nn("color=false")||Nn("color=never")?no=0:(Nn("color")||Nn("colors")||Nn("color=true")||Nn("color=always"))&&(no=1);"FORCE_COLOR"in er&&(er.FORCE_COLOR==="true"?no=1:er.FORCE_COLOR==="false"?no=0:no=er.FORCE_COLOR.length===0?1:Math.min(parseInt(er.FORCE_COLOR,10),3));function TD(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function PD(e,t){if(no===0)return 0;if(Nn("color=16m")||Nn("color=full")||Nn("color=truecolor"))return 3;if(Nn("color=256"))return 2;if(e&&!t&&no===void 0)return 0;let r=no||0;if(er.TERM==="dumb")return r;if(process.platform==="win32"){let n=fV.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in er)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in er)||er.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in er)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(er.TEAMCITY_VERSION)?1:0;if(er.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in er){let n=parseInt((er.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(er.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(er.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(er.TERM)||"COLORTERM"in er?1:r}function pV(e){let t=PD(e,e&&e.isTTY);return TD(t)}P_.exports={supportsColor:pV,stdout:TD(PD(!0,T_.isatty(1))),stderr:TD(PD(!0,T_.isatty(2)))}});var R_=N((Vae,N_)=>{"use strict";var dV=LD(),fl=ID();function L_(e){if(/^\d{3,4}$/.test(e)){let r=/(\d{1,2})(\d{2})/.exec(e);return{major:0,minor:parseInt(r[1],10),patch:parseInt(r[2],10)}}let t=(e||"").split(".").map(r=>parseInt(r,10));return{major:t[0],minor:t[1],patch:t[2]}}function ND(e){let{env:t}=process;if("FORCE_HYPERLINK"in t)return!(t.FORCE_HYPERLINK.length>0&&parseInt(t.FORCE_HYPERLINK,10)===0);if(fl("no-hyperlink")||fl("no-hyperlinks")||fl("hyperlink=false")||fl("hyperlink=never"))return!1;if(fl("hyperlink=true")||fl("hyperlink=always")||"NETLIFY"in t)return!0;if(!dV.supportsColor(e)||e&&!e.isTTY||process.platform==="win32"||"CI"in t||"TEAMCITY_VERSION"in t)return!1;if("TERM_PROGRAM"in t){let r=L_(t.TERM_PROGRAM_VERSION);switch(t.TERM_PROGRAM){case"iTerm.app":return r.major===3?r.minor>=1:r.major>3;case"WezTerm":return r.major>=20200620;case"vscode":return r.major>1||r.major===1&&r.minor>=72}}if("VTE_VERSION"in t){if(t.VTE_VERSION==="0.50.0")return!1;let r=L_(t.VTE_VERSION);return r.major>0||r.minor>=50}return!1}N_.exports={supportsHyperlink:ND,stdout:ND(process.stdout),stderr:ND(process.stderr)}});var Z_=N((Sue,J_)=>{"use strict";var EV=function(t){return SV(t)&&!xV(t)};function SV(e){return!!e&&typeof e=="object"}function xV(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||OV(e)}var _V=typeof Symbol=="function"&&Symbol.for,bV=_V?Symbol.for("react.element"):60103;function OV(e){return e.$$typeof===bV}function FV(e){return Array.isArray(e)?[]:{}}function pf(e,t){return t.clone!==!1&&t.isMergeableObject(e)?pl(FV(e),e,t):e}function AV(e,t,r){return e.concat(t).map(function(n){return pf(n,r)})}function IV(e,t){if(!t.customMerge)return pl;var r=t.customMerge(e);return typeof r=="function"?r:pl}function TV(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function K_(e){return Object.keys(e).concat(TV(e))}function X_(e,t){try{return t in e}catch{return!1}}function PV(e,t){return X_(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function LV(e,t,r){var n={};return r.isMergeableObject(e)&&K_(e).forEach(function(i){n[i]=pf(e[i],r)}),K_(t).forEach(function(i){PV(e,i)||(X_(e,i)&&r.isMergeableObject(t[i])?n[i]=IV(i,r)(e[i],t[i],r):n[i]=pf(t[i],r))}),n}function pl(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||AV,r.isMergeableObject=r.isMergeableObject||EV,r.cloneUnlessOtherwiseSpecified=pf;var n=Array.isArray(t),i=Array.isArray(e),s=n===i;return s?n?r.arrayMerge(e,t,r):LV(e,t,r):pf(t,r)}pl.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return pl(n,i,r)},{})};var NV=pl;J_.exports=NV});var cO=N((Tme,lO)=>{lO.exports=uO;uO.sync=L7;var oO=V("fs");function P7(e,t){var r=t.pathExt!==void 0?t.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}function aO(e,t,r){return!e.isSymbolicLink()&&!e.isFile()?!1:P7(t,r)}function uO(e,t,r){oO.stat(e,function(n,i){r(n,n?!1:aO(i,e,t))})}function L7(e,t){return aO(oO.statSync(e),e,t)}});var hO=N((Pme,mO)=>{mO.exports=pO;pO.sync=N7;var fO=V("fs");function pO(e,t,r){fO.stat(e,function(n,i){r(n,n?!1:dO(i,t))})}function N7(e,t){return dO(fO.statSync(e),t)}function dO(e,t){return e.isFile()&&R7(e,t)}function R7(e,t){var r=e.mode,n=e.uid,i=e.gid,s=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),o=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),u=parseInt("010",8),l=parseInt("001",8),c=a|u,f=r&l||r&u&&i===o||r&a&&n===s||r&c&&s===0;return f}});var yO=N((Nme,gO)=>{var Lme=V("fs"),Im;process.platform==="win32"||global.TESTING_WINDOWS?Im=cO():Im=hO();gO.exports=dv;dv.sync=B7;function dv(e,t,r){if(typeof t=="function"&&(r=t,t={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,i){dv(e,t||{},function(s,o){s?i(s):n(o)})})}Im(e,t||{},function(n,i){n&&(n.code==="EACCES"||t&&t.ignoreErrors)&&(n=null,i=!1),r(n,i)})}function B7(e,t){try{return Im.sync(e,t||{})}catch(r){if(t&&t.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var xO=N((Rme,SO)=>{var Dl=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",DO=V("path"),k7=Dl?";":":",vO=yO(),wO=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),CO=(e,t)=>{let r=t.colon||k7,n=e.match(/\//)||Dl&&e.match(/\\/)?[""]:[...Dl?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],i=Dl?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Dl?i.split(r):[""];return Dl&&e.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:n,pathExt:s,pathExtExe:i}},EO=(e,t,r)=>{typeof t=="function"&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:i,pathExtExe:s}=CO(e,t),o=[],a=l=>new Promise((c,f)=>{if(l===n.length)return t.all&&o.length?c(o):f(wO(e));let p=n[l],d=/^".*"$/.test(p)?p.slice(1,-1):p,m=DO.join(d,e),y=!d&&/^\.[\\\/]/.test(e)?e.slice(0,2)+m:m;c(u(y,l,0))}),u=(l,c,f)=>new Promise((p,d)=>{if(f===i.length)return p(a(c+1));let m=i[f];vO(l+m,{pathExt:s},(y,D)=>{if(!y&&D)if(t.all)o.push(l+m);else return p(l+m);return p(u(l,c,f+1))})});return r?a(0).then(l=>r(null,l),r):a(0)},M7=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:n,pathExtExe:i}=CO(e,t),s=[];for(let o=0;o<r.length;o++){let a=r[o],u=/^".*"$/.test(a)?a.slice(1,-1):a,l=DO.join(u,e),c=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+l:l;for(let f=0;f<n.length;f++){let p=c+n[f];try{if(vO.sync(p,{pathExt:i}))if(t.all)s.push(p);else return p}catch{}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw wO(e)};SO.exports=EO;EO.sync=M7});var bO=N((Bme,mv)=>{"use strict";var _O=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};mv.exports=_O;mv.exports.default=_O});var IO=N((kme,AO)=>{"use strict";var OO=V("path"),j7=xO(),V7=bO();function FO(e,t){let r=e.options.env||process.env,n=process.cwd(),i=e.options.cwd!=null,s=i&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd)}catch{}let o;try{o=j7.sync(e.command,{path:r[V7({env:r})],pathExt:t?OO.delimiter:void 0})}catch{}finally{s&&process.chdir(n)}return o&&(o=OO.resolve(i?e.options.cwd:"",o)),o}function U7(e){return FO(e)||FO(e,!0)}AO.exports=U7});var TO=N((Mme,gv)=>{"use strict";var hv=/([()\][%!^"`<>&|;, *?])/g;function $7(e){return e=e.replace(hv,"^$1"),e}function W7(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),e=e.replace(/(?=(\\+?)?)\1$/,"$1$1"),e=`"${e}"`,e=e.replace(hv,"^$1"),t&&(e=e.replace(hv,"^$1")),e}gv.exports.command=$7;gv.exports.argument=W7});var LO=N((jme,PO)=>{"use strict";PO.exports=/^#!(.*)/});var RO=N((Vme,NO)=>{"use strict";var G7=LO();NO.exports=(e="")=>{let t=e.match(G7);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return i==="env"?n:n?`${i} ${n}`:i}});var kO=N((Ume,BO)=>{"use strict";var yv=V("fs"),q7=RO();function z7(e){let r=Buffer.alloc(150),n;try{n=yv.openSync(e,"r"),yv.readSync(n,r,0,150,0),yv.closeSync(n)}catch{}return q7(r.toString())}BO.exports=z7});var UO=N(($me,VO)=>{"use strict";var H7=V("path"),MO=IO(),jO=TO(),Y7=kO(),K7=process.platform==="win32",X7=/\.(?:com|exe)$/i,J7=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Z7(e){e.file=MO(e);let t=e.file&&Y7(e.file);return t?(e.args.unshift(e.file),e.command=t,MO(e)):e.file}function Q7(e){if(!K7)return e;let t=Z7(e),r=!X7.test(t);if(e.options.forceShell||r){let n=J7.test(t);e.command=H7.normalize(e.command),e.command=jO.command(e.command),e.args=e.args.map(s=>jO.argument(s,n));let i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function e9(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null),t=t?t.slice(0):[],r=Object.assign({},r);let n={command:e,args:t,options:r,file:void 0,original:{command:e,args:t}};return r.shell?n:Q7(n)}VO.exports=e9});var GO=N((Wme,WO)=>{"use strict";var Dv=process.platform==="win32";function vv(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function t9(e,t){if(!Dv)return;let r=e.emit;e.emit=function(n,i){if(n==="exit"){let s=$O(i,t);if(s)return r.call(e,"error",s)}return r.apply(e,arguments)}}function $O(e,t){return Dv&&e===1&&!t.file?vv(t.original,"spawn"):null}function r9(e,t){return Dv&&e===1&&!t.file?vv(t.original,"spawnSync"):null}WO.exports={hookChildProcess:t9,verifyENOENT:$O,verifyENOENTSync:r9,notFoundError:vv}});var HO=N((Gme,vl)=>{"use strict";var qO=V("child_process"),wv=UO(),Cv=GO();function zO(e,t,r){let n=wv(e,t,r),i=qO.spawn(n.command,n.args,n.options);return Cv.hookChildProcess(i,n),i}function n9(e,t,r){let n=wv(e,t,r),i=qO.spawnSync(n.command,n.args,n.options);return i.error=i.error||Cv.verifyENOENTSync(i.status,n),i}vl.exports=zO;vl.exports.spawn=zO;vl.exports.sync=n9;vl.exports._parse=wv;vl.exports._enoent=Cv});var CF=N((Yhe,wF)=>{"use strict";var{PassThrough:t$}=V("stream");wF.exports=function(){var e=[],t=new t$({objectMode:!0});return t.setMaxListeners(0),t.add=r,t.isEmpty=n,t.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(r),t;function r(s){return Array.isArray(s)?(s.forEach(r),this):(e.push(s),s.once("end",i.bind(null,s)),s.once("error",t.emit.bind(t,"error")),s.pipe(t,{end:!1}),this)}function n(){return e.length==0}function i(s){e=e.filter(function(o){return o!==s}),!e.length&&t.readable&&t.end()}}});var sA=N((fge,Q$)=>{Q$.exports={name:"systeminformation",version:"5.23.5",description:"Advanced, lightweight system and OS information library",license:"MIT",author:"Sebastian Hildebrandt <hildebrandt@plus-innovations.com> (https://plus-innovations.com)",homepage:"https://systeminformation.io",main:"./lib/index.js",bin:{systeminformation:"lib/cli.js"},types:"./lib/index.d.ts",scripts:{test:"node ./test/test.js"},files:["lib/"],keywords:["system information","sysinfo","monitor","monitoring","os","linux","osx","windows","freebsd","openbsd","netbsd","cpu","cpuload","physical cores","logical cores","processor","cores","threads","socket type","memory","file system","fsstats","diskio","block devices","netstats","network","network interfaces","network connections","network stats","iface","printer","processes","users","internet","battery","docker","docker stats","docker processes","graphics","graphic card","graphic controller","gpu","display","smart","disk layout","usb","audio","bluetooth","wifi","wifinetworks","virtual box","virtualbox","vm","backend","hardware","BIOS","chassis"],repository:{type:"git",url:"https://github.com/sebhildebrandt/systeminformation.git"},funding:{type:"Buy me a coffee",url:"https://www.buymeacoffee.com/systeminfo"},os:["darwin","linux","win32","freebsd","openbsd","netbsd","sunos","android"],engines:{node:">=8.0.0"}}});var Mt=N(be=>{"use strict";var lo=V("os"),Vi=V("fs"),eW=V("path"),i1=V("child_process").spawn,tW=V("child_process").exec,Cl=V("child_process").execSync,s1=V("util"),za=process.platform,o1=za==="linux"||za==="android",lA=za==="darwin",a1=za==="win32",cA=za==="freebsd",fA=za==="openbsd",pA=za==="netbsd",Zv=0,Ga="",pi="",uo=null,co=null,dA=process.env.WINDIR||"C:\\Windows",$t,wl="",Ff=[],u1=!1,oA="$OutputEncoding = [System.Console]::OutputEncoding = [System.Console]::InputEncoding = [System.Text.Encoding]::UTF8 ; ",e1="--###START###--",aA="--ERROR--",th="--###ENDCMD###--",t1="--##ID##--",Af={windowsHide:!0,maxBuffer:1024*2e4,encoding:"UTF-8",env:Object.assign({},process.env,{LANG:"en_US.UTF-8"})},mA={maxBuffer:1024*2e4,encoding:"UTF-8",stdio:["pipe","pipe","ignore"]};function rW(e){let t=parseInt(e,10);return isNaN(t)&&(t=0),t}function nW(e){let t=!1,r="",n="";for(let i of e)i>="0"&&i<="9"||t?(t=!0,r+=i):n+=i;return[n,r]}var r1=new String().replace,n1=new String().toLowerCase,hA=new String().toString,gA=new String().substr,iW=new String().trim,sW=new String().startsWith,yA=Math.min;function oW(e){return e&&{}.toString.call(e)==="[object Function]"}function aW(e){let t=[],r={};for(let n=0;n<e.length;n++){let i=Object.keys(e[n]);i.sort(function(o,a){return o-a});let s="";for(let o=0;o<i.length;o++)s+=JSON.stringify(i[o]),s+=JSON.stringify(e[n][i[o]]);({}).hasOwnProperty.call(r,s)||(t.push(e[n]),r[s]=!0)}return t}function uW(e,t){return e.sort(function(r,n){let i="",s="";return t.forEach(function(o){i=i+r[o],s=s+n[o]}),i<s?-1:i>s?1:0})}function lW(){return Zv===0&&(Zv=lo.cpus().length),Zv}function qa(e,t,r,n,i){r=r||":",t=t.toLowerCase(),n=n||!1,i=i||!1;let s="";return e.some(o=>{let a=o.toLowerCase().replace(/\t/g,"");if(n&&(a=a.trim()),a.startsWith(t)&&(!i||a.match(t+r)||a.match(t+" "+r))){let u=n?o.trim().split(r):o.split(r);if(u.length>=2)return u.shift(),s=u.join(r).trim(),!0}}),s}function cW(e,t){return t=t||16,e.replace(/\\x([0-9A-Fa-f]{2})/g,function(){return String.fromCharCode(parseInt(arguments[1],t))})}function fW(e){let t="",r=0;return e.split("").forEach(n=>{n>="0"&&n<="9"?r===1&&r++:(r===0&&r++,r===1&&(t+=n))}),t}function pW(e,t){t=t||"",e=e.toUpperCase();let r=0,n=0,i=fW(e),s=e.split(i);if(s.length>=2){s[2]&&(s[1]+=s[2]);let o=s[1]&&s[1].toLowerCase().indexOf("pm")>-1||s[1].toLowerCase().indexOf("p.m.")>-1||s[1].toLowerCase().indexOf("p. m.")>-1||s[1].toLowerCase().indexOf("n")>-1||s[1].toLowerCase().indexOf("ch")>-1||s[1].toLowerCase().indexOf("\xF6s")>-1||t&&s[1].toLowerCase().indexOf(t)>-1;return r=parseInt(s[0],10),n=parseInt(s[1],10),r=o&&r<12?r+12:r,("0"+r).substr(-2)+":"+("0"+n).substr(-2)}}function dW(e,t){let r={date:"",time:""};t=t||{};let n=(t.dateFormat||"").toLowerCase(),i=t.pmDesignator||"",s=e.split(" ");if(s[0]){if(s[0].indexOf("/")>=0){let o=s[0].split("/");o.length===3&&(o[0].length===4?r.date=o[0]+"-"+("0"+o[1]).substr(-2)+"-"+("0"+o[2]).substr(-2):o[2].length===2?(n.indexOf("/d/")>-1||n.indexOf("/dd/")>-1,r.date="20"+o[2]+"-"+("0"+o[1]).substr(-2)+"-"+("0"+o[0]).substr(-2)):(e.toLowerCase().indexOf("pm")>-1||e.toLowerCase().indexOf("p.m.")>-1||e.toLowerCase().indexOf("p. m.")>-1||e.toLowerCase().indexOf("am")>-1||e.toLowerCase().indexOf("a.m.")>-1||e.toLowerCase().indexOf("a. m.")>-1||n.indexOf("/d/")>-1||n.indexOf("/dd/")>-1)&&n.indexOf("dd/")!==0?r.date=o[2]+"-"+("0"+o[0]).substr(-2)+"-"+("0"+o[1]).substr(-2):r.date=o[2]+"-"+("0"+o[1]).substr(-2)+"-"+("0"+o[0]).substr(-2))}if(s[0].indexOf(".")>=0){let o=s[0].split(".");o.length===3&&(n.indexOf(".d.")>-1||n.indexOf(".dd.")>-1?r.date=o[2]+"-"+("0"+o[0]).substr(-2)+"-"+("0"+o[1]).substr(-2):r.date=o[2]+"-"+("0"+o[1]).substr(-2)+"-"+("0"+o[0]).substr(-2))}if(s[0].indexOf("-")>=0){let o=s[0].split("-");o.length===3&&(r.date=o[0]+"-"+("0"+o[1]).substr(-2)+"-"+("0"+o[2]).substr(-2))}}if(s[1]){s.shift();let o=s.join(" ");r.time=pW(o,i)}return r}function mW(e,t){let r=t>0,n=1,i=0,s=0,o=[];for(let u=0;u<e.length;u++)n<=t?(/\s/.test(e[u])&&!r&&(s=u-1,o.push({from:i,to:s+1,cap:e.substring(i,s+1)}),i=s+2,n++),r=e[u]===" "):(!/\s/.test(e[u])&&r&&(s=u-1,i<s&&o.push({from:i,to:s,cap:e.substring(i,s)}),i=s+1,n++),r=e[u]===" ");s=5e3,o.push({from:i,to:s,cap:e.substring(i,s)});let a=o.length;for(let u=0;u<a;u++)o[u].cap.replace(/\s/g,"").length===0&&u+1<a&&(o[u].to=o[u+1].to,o[u].cap=o[u].cap+o[u+1].cap,o.splice(u+1,1),a=a-1);return o}function hW(e,t,r){for(let n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}function DA(){if(lo.type()==="Windows_NT"&&!Ga&&(Ga=dA+"\\system32\\wbem\\wmic.exe",!Vi.existsSync(Ga)))try{let e=Cl("WHERE WMIC",Af).toString().split(`\r
|
|
4
|
+
var E2=Object.create;var rl=Object.defineProperty;var S2=Object.getOwnPropertyDescriptor;var lj=Object.getOwnPropertyNames;var cj=Object.getPrototypeOf,fj=Object.prototype.hasOwnProperty;var x2=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),nl=e=>{throw TypeError(e)};var _2=(e,t,r)=>t in e?rl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var v2=(e,t)=>rl(e,"name",{value:t,configurable:!0}),V=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var N=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),pj=(e,t)=>{for(var r in t)rl(e,r,{get:t[r],enumerable:!0})},dj=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of lj(t))!fj.call(e,i)&&i!==r&&rl(e,i,{get:()=>t[i],enumerable:!(n=S2(t,i))||n.enumerable});return e};var St=(e,t,r)=>(r=e!=null?E2(cj(e)):{},dj(t||!e||!e.__esModule?rl(r,"default",{value:e,enumerable:!0}):r,e));var il=e=>[,,,E2(e?.[x2("metadata")]??null)],b2=["class","method","getter","setter","accessor","field","value","get","set"],rf=e=>e!==void 0&&typeof e!="function"?nl("Function expected"):e,mj=(e,t,r,n,i)=>({kind:b2[e],name:t,metadata:n,addInitializer:s=>r._?nl("Already initialized"):i.push(rf(s||null))}),_a=(e,t)=>_2(t,x2("metadata"),e[3]),lt=(e,t,r,n)=>{for(var i=0,s=e[t>>1],o=s&&s.length;i<o;i++)t&1?s[i].call(r):n=s[i].call(r,n);return n},yt=(e,t,r,n,i,s)=>{var o,a,u,l,c,f=t&7,p=!!(t&8),d=!!(t&16),m=f>3?e.length+1:f?p?1:2:0,y=b2[f+5],D=f>3&&(e[m-1]=[]),h=e[m]||(e[m]=[]),g=f&&(!d&&!p&&(i=i.prototype),f<5&&(f>3||!d)&&S2(f<4?i:{get[r](){return w2(this,s)},set[r](w){return C2(this,s,w)}},r));f?d&&f<4&&v2(s,(f>2?"set ":f>1?"get ":"")+r):v2(i,r);for(var v=n.length-1;v>=0;v--)l=mj(f,r,u={},e[3],h),f&&(l.static=p,l.private=d,c=l.access={has:d?w=>hj(i,w):w=>r in w},f^3&&(c.get=d?w=>(f^1?w2:gj)(w,i,f^4?s:g.get):w=>w[r]),f>2&&(c.set=d?(w,E)=>C2(w,i,E,f^4?s:g.set):(w,E)=>w[r]=E)),a=(0,n[v])(f?f<4?d?s:g[y]:f>4?void 0:{get:g.get,set:g.set}:i,l),u._=1,f^4||a===void 0?rf(a)&&(f>4?D.unshift(a):f?d?s=a:g[y]=a:i=a):typeof a!="object"||a===null?nl("Object expected"):(rf(o=a.get)&&(g.get=o),rf(o=a.set)&&(g.set=o),rf(o=a.init)&&D.unshift(o));return f||_a(e,i),g&&rl(i,r,g),d?f^4?s:g:i},eD=(e,t,r)=>_2(e,typeof t!="symbol"?t+"":t,r),tD=(e,t,r)=>t.has(e)||nl("Cannot "+r),hj=(e,t)=>Object(t)!==t?nl('Cannot use the "in" operator on this value'):e.has(t),w2=(e,t,r)=>(tD(e,t,"read from private field"),r?r.call(e):t.get(e)),ui=(e,t,r)=>t.has(e)?nl("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),C2=(e,t,r,n)=>(tD(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),gj=(e,t,r)=>(tD(e,t,"access private method"),r);var ID=N((Mae,I_)=>{"use strict";I_.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}});var LD=N((jae,P_)=>{"use strict";var fV=V("os"),T_=V("tty"),Nn=ID(),{env:er}=process,no;Nn("no-color")||Nn("no-colors")||Nn("color=false")||Nn("color=never")?no=0:(Nn("color")||Nn("colors")||Nn("color=true")||Nn("color=always"))&&(no=1);"FORCE_COLOR"in er&&(er.FORCE_COLOR==="true"?no=1:er.FORCE_COLOR==="false"?no=0:no=er.FORCE_COLOR.length===0?1:Math.min(parseInt(er.FORCE_COLOR,10),3));function TD(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function PD(e,t){if(no===0)return 0;if(Nn("color=16m")||Nn("color=full")||Nn("color=truecolor"))return 3;if(Nn("color=256"))return 2;if(e&&!t&&no===void 0)return 0;let r=no||0;if(er.TERM==="dumb")return r;if(process.platform==="win32"){let n=fV.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in er)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in er)||er.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in er)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(er.TEAMCITY_VERSION)?1:0;if(er.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in er){let n=parseInt((er.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(er.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(er.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(er.TERM)||"COLORTERM"in er?1:r}function pV(e){let t=PD(e,e&&e.isTTY);return TD(t)}P_.exports={supportsColor:pV,stdout:TD(PD(!0,T_.isatty(1))),stderr:TD(PD(!0,T_.isatty(2)))}});var R_=N((Vae,N_)=>{"use strict";var dV=LD(),fl=ID();function L_(e){if(/^\d{3,4}$/.test(e)){let r=/(\d{1,2})(\d{2})/.exec(e);return{major:0,minor:parseInt(r[1],10),patch:parseInt(r[2],10)}}let t=(e||"").split(".").map(r=>parseInt(r,10));return{major:t[0],minor:t[1],patch:t[2]}}function ND(e){let{env:t}=process;if("FORCE_HYPERLINK"in t)return!(t.FORCE_HYPERLINK.length>0&&parseInt(t.FORCE_HYPERLINK,10)===0);if(fl("no-hyperlink")||fl("no-hyperlinks")||fl("hyperlink=false")||fl("hyperlink=never"))return!1;if(fl("hyperlink=true")||fl("hyperlink=always")||"NETLIFY"in t)return!0;if(!dV.supportsColor(e)||e&&!e.isTTY||process.platform==="win32"||"CI"in t||"TEAMCITY_VERSION"in t)return!1;if("TERM_PROGRAM"in t){let r=L_(t.TERM_PROGRAM_VERSION);switch(t.TERM_PROGRAM){case"iTerm.app":return r.major===3?r.minor>=1:r.major>3;case"WezTerm":return r.major>=20200620;case"vscode":return r.major>1||r.major===1&&r.minor>=72}}if("VTE_VERSION"in t){if(t.VTE_VERSION==="0.50.0")return!1;let r=L_(t.VTE_VERSION);return r.major>0||r.minor>=50}return!1}N_.exports={supportsHyperlink:ND,stdout:ND(process.stdout),stderr:ND(process.stderr)}});var Z_=N((Eue,J_)=>{"use strict";var EV=function(t){return SV(t)&&!xV(t)};function SV(e){return!!e&&typeof e=="object"}function xV(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||OV(e)}var _V=typeof Symbol=="function"&&Symbol.for,bV=_V?Symbol.for("react.element"):60103;function OV(e){return e.$$typeof===bV}function FV(e){return Array.isArray(e)?[]:{}}function pf(e,t){return t.clone!==!1&&t.isMergeableObject(e)?pl(FV(e),e,t):e}function AV(e,t,r){return e.concat(t).map(function(n){return pf(n,r)})}function IV(e,t){if(!t.customMerge)return pl;var r=t.customMerge(e);return typeof r=="function"?r:pl}function TV(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function K_(e){return Object.keys(e).concat(TV(e))}function X_(e,t){try{return t in e}catch{return!1}}function PV(e,t){return X_(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function LV(e,t,r){var n={};return r.isMergeableObject(e)&&K_(e).forEach(function(i){n[i]=pf(e[i],r)}),K_(t).forEach(function(i){PV(e,i)||(X_(e,i)&&r.isMergeableObject(t[i])?n[i]=IV(i,r)(e[i],t[i],r):n[i]=pf(t[i],r))}),n}function pl(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||AV,r.isMergeableObject=r.isMergeableObject||EV,r.cloneUnlessOtherwiseSpecified=pf;var n=Array.isArray(t),i=Array.isArray(e),s=n===i;return s?n?r.arrayMerge(e,t,r):LV(e,t,r):pf(t,r)}pl.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return pl(n,i,r)},{})};var NV=pl;J_.exports=NV});var cO=N((Ime,lO)=>{lO.exports=uO;uO.sync=L7;var oO=V("fs");function P7(e,t){var r=t.pathExt!==void 0?t.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}function aO(e,t,r){return!e.isSymbolicLink()&&!e.isFile()?!1:P7(t,r)}function uO(e,t,r){oO.stat(e,function(n,i){r(n,n?!1:aO(i,e,t))})}function L7(e,t){return aO(oO.statSync(e),e,t)}});var hO=N((Tme,mO)=>{mO.exports=pO;pO.sync=N7;var fO=V("fs");function pO(e,t,r){fO.stat(e,function(n,i){r(n,n?!1:dO(i,t))})}function N7(e,t){return dO(fO.statSync(e),t)}function dO(e,t){return e.isFile()&&R7(e,t)}function R7(e,t){var r=e.mode,n=e.uid,i=e.gid,s=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),o=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),u=parseInt("010",8),l=parseInt("001",8),c=a|u,f=r&l||r&u&&i===o||r&a&&n===s||r&c&&s===0;return f}});var yO=N((Lme,gO)=>{var Pme=V("fs"),Im;process.platform==="win32"||global.TESTING_WINDOWS?Im=cO():Im=hO();gO.exports=dv;dv.sync=B7;function dv(e,t,r){if(typeof t=="function"&&(r=t,t={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,i){dv(e,t||{},function(s,o){s?i(s):n(o)})})}Im(e,t||{},function(n,i){n&&(n.code==="EACCES"||t&&t.ignoreErrors)&&(n=null,i=!1),r(n,i)})}function B7(e,t){try{return Im.sync(e,t||{})}catch(r){if(t&&t.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var xO=N((Nme,SO)=>{var Dl=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",DO=V("path"),k7=Dl?";":":",vO=yO(),wO=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),CO=(e,t)=>{let r=t.colon||k7,n=e.match(/\//)||Dl&&e.match(/\\/)?[""]:[...Dl?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],i=Dl?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Dl?i.split(r):[""];return Dl&&e.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:n,pathExt:s,pathExtExe:i}},EO=(e,t,r)=>{typeof t=="function"&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:i,pathExtExe:s}=CO(e,t),o=[],a=l=>new Promise((c,f)=>{if(l===n.length)return t.all&&o.length?c(o):f(wO(e));let p=n[l],d=/^".*"$/.test(p)?p.slice(1,-1):p,m=DO.join(d,e),y=!d&&/^\.[\\\/]/.test(e)?e.slice(0,2)+m:m;c(u(y,l,0))}),u=(l,c,f)=>new Promise((p,d)=>{if(f===i.length)return p(a(c+1));let m=i[f];vO(l+m,{pathExt:s},(y,D)=>{if(!y&&D)if(t.all)o.push(l+m);else return p(l+m);return p(u(l,c,f+1))})});return r?a(0).then(l=>r(null,l),r):a(0)},M7=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:n,pathExtExe:i}=CO(e,t),s=[];for(let o=0;o<r.length;o++){let a=r[o],u=/^".*"$/.test(a)?a.slice(1,-1):a,l=DO.join(u,e),c=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+l:l;for(let f=0;f<n.length;f++){let p=c+n[f];try{if(vO.sync(p,{pathExt:i}))if(t.all)s.push(p);else return p}catch{}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw wO(e)};SO.exports=EO;EO.sync=M7});var bO=N((Rme,mv)=>{"use strict";var _O=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};mv.exports=_O;mv.exports.default=_O});var IO=N((Bme,AO)=>{"use strict";var OO=V("path"),j7=xO(),V7=bO();function FO(e,t){let r=e.options.env||process.env,n=process.cwd(),i=e.options.cwd!=null,s=i&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd)}catch{}let o;try{o=j7.sync(e.command,{path:r[V7({env:r})],pathExt:t?OO.delimiter:void 0})}catch{}finally{s&&process.chdir(n)}return o&&(o=OO.resolve(i?e.options.cwd:"",o)),o}function U7(e){return FO(e)||FO(e,!0)}AO.exports=U7});var TO=N((kme,gv)=>{"use strict";var hv=/([()\][%!^"`<>&|;, *?])/g;function $7(e){return e=e.replace(hv,"^$1"),e}function W7(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),e=e.replace(/(?=(\\+?)?)\1$/,"$1$1"),e=`"${e}"`,e=e.replace(hv,"^$1"),t&&(e=e.replace(hv,"^$1")),e}gv.exports.command=$7;gv.exports.argument=W7});var LO=N((Mme,PO)=>{"use strict";PO.exports=/^#!(.*)/});var RO=N((jme,NO)=>{"use strict";var G7=LO();NO.exports=(e="")=>{let t=e.match(G7);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return i==="env"?n:n?`${i} ${n}`:i}});var kO=N((Vme,BO)=>{"use strict";var yv=V("fs"),q7=RO();function z7(e){let r=Buffer.alloc(150),n;try{n=yv.openSync(e,"r"),yv.readSync(n,r,0,150,0),yv.closeSync(n)}catch{}return q7(r.toString())}BO.exports=z7});var UO=N((Ume,VO)=>{"use strict";var H7=V("path"),MO=IO(),jO=TO(),Y7=kO(),K7=process.platform==="win32",X7=/\.(?:com|exe)$/i,J7=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Z7(e){e.file=MO(e);let t=e.file&&Y7(e.file);return t?(e.args.unshift(e.file),e.command=t,MO(e)):e.file}function Q7(e){if(!K7)return e;let t=Z7(e),r=!X7.test(t);if(e.options.forceShell||r){let n=J7.test(t);e.command=H7.normalize(e.command),e.command=jO.command(e.command),e.args=e.args.map(s=>jO.argument(s,n));let i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function e9(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null),t=t?t.slice(0):[],r=Object.assign({},r);let n={command:e,args:t,options:r,file:void 0,original:{command:e,args:t}};return r.shell?n:Q7(n)}VO.exports=e9});var GO=N(($me,WO)=>{"use strict";var Dv=process.platform==="win32";function vv(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function t9(e,t){if(!Dv)return;let r=e.emit;e.emit=function(n,i){if(n==="exit"){let s=$O(i,t);if(s)return r.call(e,"error",s)}return r.apply(e,arguments)}}function $O(e,t){return Dv&&e===1&&!t.file?vv(t.original,"spawn"):null}function r9(e,t){return Dv&&e===1&&!t.file?vv(t.original,"spawnSync"):null}WO.exports={hookChildProcess:t9,verifyENOENT:$O,verifyENOENTSync:r9,notFoundError:vv}});var HO=N((Wme,vl)=>{"use strict";var qO=V("child_process"),wv=UO(),Cv=GO();function zO(e,t,r){let n=wv(e,t,r),i=qO.spawn(n.command,n.args,n.options);return Cv.hookChildProcess(i,n),i}function n9(e,t,r){let n=wv(e,t,r),i=qO.spawnSync(n.command,n.args,n.options);return i.error=i.error||Cv.verifyENOENTSync(i.status,n),i}vl.exports=zO;vl.exports.spawn=zO;vl.exports.sync=n9;vl.exports._parse=wv;vl.exports._enoent=Cv});var CF=N((Hhe,wF)=>{"use strict";var{PassThrough:t$}=V("stream");wF.exports=function(){var e=[],t=new t$({objectMode:!0});return t.setMaxListeners(0),t.add=r,t.isEmpty=n,t.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(r),t;function r(s){return Array.isArray(s)?(s.forEach(r),this):(e.push(s),s.once("end",i.bind(null,s)),s.once("error",t.emit.bind(t,"error")),s.pipe(t,{end:!1}),this)}function n(){return e.length==0}function i(s){e=e.filter(function(o){return o!==s}),!e.length&&t.readable&&t.end()}}});var sA=N((cge,Q$)=>{Q$.exports={name:"systeminformation",version:"5.23.5",description:"Advanced, lightweight system and OS information library",license:"MIT",author:"Sebastian Hildebrandt <hildebrandt@plus-innovations.com> (https://plus-innovations.com)",homepage:"https://systeminformation.io",main:"./lib/index.js",bin:{systeminformation:"lib/cli.js"},types:"./lib/index.d.ts",scripts:{test:"node ./test/test.js"},files:["lib/"],keywords:["system information","sysinfo","monitor","monitoring","os","linux","osx","windows","freebsd","openbsd","netbsd","cpu","cpuload","physical cores","logical cores","processor","cores","threads","socket type","memory","file system","fsstats","diskio","block devices","netstats","network","network interfaces","network connections","network stats","iface","printer","processes","users","internet","battery","docker","docker stats","docker processes","graphics","graphic card","graphic controller","gpu","display","smart","disk layout","usb","audio","bluetooth","wifi","wifinetworks","virtual box","virtualbox","vm","backend","hardware","BIOS","chassis"],repository:{type:"git",url:"https://github.com/sebhildebrandt/systeminformation.git"},funding:{type:"Buy me a coffee",url:"https://www.buymeacoffee.com/systeminfo"},os:["darwin","linux","win32","freebsd","openbsd","netbsd","sunos","android"],engines:{node:">=8.0.0"}}});var Mt=N(be=>{"use strict";var lo=V("os"),ji=V("fs"),eW=V("path"),i1=V("child_process").spawn,tW=V("child_process").exec,Cl=V("child_process").execSync,s1=V("util"),za=process.platform,o1=za==="linux"||za==="android",lA=za==="darwin",a1=za==="win32",cA=za==="freebsd",fA=za==="openbsd",pA=za==="netbsd",Zv=0,Ga="",pi="",uo=null,co=null,dA=process.env.WINDIR||"C:\\Windows",$t,wl="",Ff=[],u1=!1,oA="$OutputEncoding = [System.Console]::OutputEncoding = [System.Console]::InputEncoding = [System.Text.Encoding]::UTF8 ; ",e1="--###START###--",aA="--ERROR--",th="--###ENDCMD###--",t1="--##ID##--",Af={windowsHide:!0,maxBuffer:1024*2e4,encoding:"UTF-8",env:Object.assign({},process.env,{LANG:"en_US.UTF-8"})},mA={maxBuffer:1024*2e4,encoding:"UTF-8",stdio:["pipe","pipe","ignore"]};function rW(e){let t=parseInt(e,10);return isNaN(t)&&(t=0),t}function nW(e){let t=!1,r="",n="";for(let i of e)i>="0"&&i<="9"||t?(t=!0,r+=i):n+=i;return[n,r]}var r1=new String().replace,n1=new String().toLowerCase,hA=new String().toString,gA=new String().substr,iW=new String().trim,sW=new String().startsWith,yA=Math.min;function oW(e){return e&&{}.toString.call(e)==="[object Function]"}function aW(e){let t=[],r={};for(let n=0;n<e.length;n++){let i=Object.keys(e[n]);i.sort(function(o,a){return o-a});let s="";for(let o=0;o<i.length;o++)s+=JSON.stringify(i[o]),s+=JSON.stringify(e[n][i[o]]);({}).hasOwnProperty.call(r,s)||(t.push(e[n]),r[s]=!0)}return t}function uW(e,t){return e.sort(function(r,n){let i="",s="";return t.forEach(function(o){i=i+r[o],s=s+n[o]}),i<s?-1:i>s?1:0})}function lW(){return Zv===0&&(Zv=lo.cpus().length),Zv}function qa(e,t,r,n,i){r=r||":",t=t.toLowerCase(),n=n||!1,i=i||!1;let s="";return e.some(o=>{let a=o.toLowerCase().replace(/\t/g,"");if(n&&(a=a.trim()),a.startsWith(t)&&(!i||a.match(t+r)||a.match(t+" "+r))){let u=n?o.trim().split(r):o.split(r);if(u.length>=2)return u.shift(),s=u.join(r).trim(),!0}}),s}function cW(e,t){return t=t||16,e.replace(/\\x([0-9A-Fa-f]{2})/g,function(){return String.fromCharCode(parseInt(arguments[1],t))})}function fW(e){let t="",r=0;return e.split("").forEach(n=>{n>="0"&&n<="9"?r===1&&r++:(r===0&&r++,r===1&&(t+=n))}),t}function pW(e,t){t=t||"",e=e.toUpperCase();let r=0,n=0,i=fW(e),s=e.split(i);if(s.length>=2){s[2]&&(s[1]+=s[2]);let o=s[1]&&s[1].toLowerCase().indexOf("pm")>-1||s[1].toLowerCase().indexOf("p.m.")>-1||s[1].toLowerCase().indexOf("p. m.")>-1||s[1].toLowerCase().indexOf("n")>-1||s[1].toLowerCase().indexOf("ch")>-1||s[1].toLowerCase().indexOf("\xF6s")>-1||t&&s[1].toLowerCase().indexOf(t)>-1;return r=parseInt(s[0],10),n=parseInt(s[1],10),r=o&&r<12?r+12:r,("0"+r).substr(-2)+":"+("0"+n).substr(-2)}}function dW(e,t){let r={date:"",time:""};t=t||{};let n=(t.dateFormat||"").toLowerCase(),i=t.pmDesignator||"",s=e.split(" ");if(s[0]){if(s[0].indexOf("/")>=0){let o=s[0].split("/");o.length===3&&(o[0].length===4?r.date=o[0]+"-"+("0"+o[1]).substr(-2)+"-"+("0"+o[2]).substr(-2):o[2].length===2?(n.indexOf("/d/")>-1||n.indexOf("/dd/")>-1,r.date="20"+o[2]+"-"+("0"+o[1]).substr(-2)+"-"+("0"+o[0]).substr(-2)):(e.toLowerCase().indexOf("pm")>-1||e.toLowerCase().indexOf("p.m.")>-1||e.toLowerCase().indexOf("p. m.")>-1||e.toLowerCase().indexOf("am")>-1||e.toLowerCase().indexOf("a.m.")>-1||e.toLowerCase().indexOf("a. m.")>-1||n.indexOf("/d/")>-1||n.indexOf("/dd/")>-1)&&n.indexOf("dd/")!==0?r.date=o[2]+"-"+("0"+o[0]).substr(-2)+"-"+("0"+o[1]).substr(-2):r.date=o[2]+"-"+("0"+o[1]).substr(-2)+"-"+("0"+o[0]).substr(-2))}if(s[0].indexOf(".")>=0){let o=s[0].split(".");o.length===3&&(n.indexOf(".d.")>-1||n.indexOf(".dd.")>-1?r.date=o[2]+"-"+("0"+o[0]).substr(-2)+"-"+("0"+o[1]).substr(-2):r.date=o[2]+"-"+("0"+o[1]).substr(-2)+"-"+("0"+o[0]).substr(-2))}if(s[0].indexOf("-")>=0){let o=s[0].split("-");o.length===3&&(r.date=o[0]+"-"+("0"+o[1]).substr(-2)+"-"+("0"+o[2]).substr(-2))}}if(s[1]){s.shift();let o=s.join(" ");r.time=pW(o,i)}return r}function mW(e,t){let r=t>0,n=1,i=0,s=0,o=[];for(let u=0;u<e.length;u++)n<=t?(/\s/.test(e[u])&&!r&&(s=u-1,o.push({from:i,to:s+1,cap:e.substring(i,s+1)}),i=s+2,n++),r=e[u]===" "):(!/\s/.test(e[u])&&r&&(s=u-1,i<s&&o.push({from:i,to:s,cap:e.substring(i,s)}),i=s+1,n++),r=e[u]===" ");s=5e3,o.push({from:i,to:s,cap:e.substring(i,s)});let a=o.length;for(let u=0;u<a;u++)o[u].cap.replace(/\s/g,"").length===0&&u+1<a&&(o[u].to=o[u+1].to,o[u].cap=o[u].cap+o[u+1].cap,o.splice(u+1,1),a=a-1);return o}function hW(e,t,r){for(let n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}function DA(){if(lo.type()==="Windows_NT"&&!Ga&&(Ga=dA+"\\system32\\wbem\\wmic.exe",!ji.existsSync(Ga)))try{let e=Cl("WHERE WMIC",Af).toString().split(`\r
|
|
5
5
|
`);e&&e.length?Ga=e[0]:Ga="wmic"}catch{Ga="wmic"}return Ga}function gW(e){return new Promise(t=>{process.nextTick(()=>{try{vA(DA()+" "+e).then(r=>{t(r,"")})}catch(r){t("",r)}})})}function yW(){return a1?`"${process.env.VBOX_INSTALL_PATH||process.env.VBOX_MSI_INSTALL_PATH}\\VBoxManage.exe"`:"vboxmanage"}function Qv(e){let t="",r,n="";if(e.indexOf(e1)>=0){r=e.split(e1);let s=r[1].split(t1);t=s[0],s.length>1&&(e=s.slice(1).join(t1))}e.indexOf(th)>=0&&(r=e.split(th),n=r[0]);let i=-1;for(let s=0;s<Ff.length;s++)Ff[s].id===t&&(i=s,Ff[s].callback(n));i>=0&&Ff.splice(i,1)}function DW(){$t||($t=i1("powershell.exe",["-NoProfile","-NoLogo","-InputFormat","Text","-NoExit","-Command","-"],{stdio:"pipe",windowsHide:!0,maxBuffer:1024*2e4,encoding:"UTF-8",env:Object.assign({},process.env,{LANG:"en_US.UTF-8"})}),$t&&$t.pid&&(u1=!0,$t.stdout.on("data",function(e){wl=wl+e.toString("utf8"),e.indexOf(th)>=0&&(Qv(wl),wl="")}),$t.stderr.on("data",function(){Qv(wl+aA)}),$t.on("error",function(){Qv(wl+aA)}),$t.on("close",function(){$t&&$t.kill()})))}function vW(){try{$t&&($t.stdin.write("exit"+lo.EOL),$t.stdin.end(),u1=!1)}catch{$t&&$t.kill()}$t=null}function vA(e){if(u1){let t=Math.random().toString(36).substring(2,12);return new Promise(r=>{process.nextTick(()=>{function n(i){r(i)}Ff.push({id:t,cmd:e,callback:n,start:new Date});try{$t&&$t.pid&&$t.stdin.write(oA+"echo "+e1+t+t1+"; "+lo.EOL+e+lo.EOL+"echo "+th+lo.EOL)}catch{r("")}})})}else{let t="";return new Promise(r=>{process.nextTick(()=>{try{let n=i1("powershell.exe",["-NoProfile","-NoLogo","-InputFormat","Text","-NoExit","-ExecutionPolicy","Unrestricted","-Command","-"],{stdio:"pipe",windowsHide:!0,maxBuffer:2048e4,encoding:"UTF-8",env:Object.assign({},process.env,{LANG:"en_US.UTF-8"})});if(n&&!n.pid&&n.on("error",function(){r(t)}),n&&n.pid){n.stdout.on("data",function(i){t=t+i.toString("utf8")}),n.stderr.on("data",function(){n.kill(),r(t)}),n.on("close",function(){n.kill(),r(t)}),n.on("error",function(){n.kill(),r(t)});try{n.stdin.write(oA+e+lo.EOL),n.stdin.write("exit"+lo.EOL),n.stdin.end()}catch{n.kill(),r(t)}}else r(t)}catch{r(t)}})})}}function wW(e,t,r){let n="";return r=r||{},new Promise(i=>{process.nextTick(()=>{try{let s=i1(e,t,r);s&&!s.pid&&s.on("error",function(){i(n)}),s&&s.pid?(s.stdout.on("data",function(o){n+=o.toString()}),s.on("close",function(){s.kill(),i(n)}),s.on("error",function(){s.kill(),i(n)})):i(n)}catch{i(n)}})})}function CW(){if(a1){if(!pi)try{let r=Cl("chcp",Af).toString().split(`\r
|
|
6
6
|
`)[0].split(":");pi=r.length>1?r[1].replace(".","").trim():""}catch{pi="437"}return pi}if(o1||lA||cA||fA||pA){if(!pi)try{let r=Cl("echo $LANG",s1.execOptsLinux).toString().split(`\r
|
|
7
7
|
`)[0].split(".");pi=r.length>1?r[1].trim():"",pi||(pi="UTF-8")}catch{pi="UTF-8"}return pi}}function EW(){if(uo!==null)return uo;if(uo=!1,a1)try{let e=Cl("WHERE smartctl 2>nul",Af).toString().split(`\r
|
|
8
8
|
`);e&&e.length?uo=e[0].indexOf(":\\")>=0:uo=!1}catch{uo=!1}if(o1||lA||cA||fA||pA)try{uo=Cl("which smartctl 2>/dev/null",mA).toString().split(`\r
|
|
9
|
-
`).length>0}catch{s1.noop()}return uo}function SW(){let e=["BCM2708","BCM2709","BCM2710","BCM2711","BCM2712","BCM2835","BCM2836","BCM2837","BCM2837B0"],t=[];if(co!==null)t=co;else try{t=
|
|
10
|
-
`),co=t}catch{return!1}let r=qa(t,"hardware");return r&&e.indexOf(r)>-1}function xW(){let e=[];try{e=
|
|
11
|
-
`)}catch{return!1}let t=qa(e,"id","=");return t&&t.indexOf("raspbian")>-1}function _W(e,t,r){r||(r=t,t=Af);let n="chcp 65001 > nul && cmd /C "+e+" && chcp "+pi+" > nul";tW(n,t,function(i,s){r(i,s)})}function bW(){let e=
|
|
12
|
-
`||r[s]==="\r"||r[s]==="'"||r[s]==="`"||r[s]==='"'||r[s].length>1||t&&r[s]==="("||t&&r[s]===")"||t&&r[s]==="@"||t&&r[s]===" "||t&&r[s]=="{"||t&&r[s]==";"||t&&r[s]=="}"||(n=n+r[s]);return n}function TW(){let e="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",t=!0,r="";r.__proto__.replace=r1,r.__proto__.toLowerCase=n1,r.__proto__.toString=hA,r.__proto__.substr=gA,t=t||e.length!==62;let n=Date.now();if(typeof n=="number"&&n>16e11){let i=n%100+15;for(let l=0;l<i;l++){let c=Math.random()*61.99999999+1,f=parseInt(Math.floor(c).toString(),10),p=parseInt(c.toString().split(".")[0],10),d=Math.random()*61.99999999+1,m=parseInt(Math.floor(d).toString(),10),y=parseInt(d.toString().split(".")[0],10);t=t&&c!==d,t=t&&f===p&&m===y,r+=e[f-1]}t=t&&r.length===i;let s=Math.random()*i*.9999999999,o=r.substr(0,s)+" "+r.substr(s,2e3);o.__proto__.replace=r1;let a=o.replace(/ /g,"");t=t&&r===a,s=Math.random()*i*.9999999999,o=r.substr(0,s)+"{"+r.substr(s,2e3),a=o.replace(/{/g,""),t=t&&r===a,s=Math.random()*i*.9999999999,o=r.substr(0,s)+"*"+r.substr(s,2e3),a=o.replace(/\*/g,""),t=t&&r===a,s=Math.random()*i*.9999999999,o=r.substr(0,s)+"$"+r.substr(s,2e3),a=o.replace(/\$/g,""),t=t&&r===a;let u=r.toLowerCase();t=t&&u.length===i&&u[i-1]&&!u[i];for(let l=0;l<i;l++){let c=r[l];c.__proto__.toLowerCase=n1;let f=u?u[l]:"",p=c.toLowerCase();t=t&&p[0]===f&&p[0]&&!p[1]}}return!t}function PW(e){return("00000000"+parseInt(e,16).toString(2)).substr(-8)}function LW(e){let t=
|
|
9
|
+
`).length>0}catch{s1.noop()}return uo}function SW(){let e=["BCM2708","BCM2709","BCM2710","BCM2711","BCM2712","BCM2835","BCM2836","BCM2837","BCM2837B0"],t=[];if(co!==null)t=co;else try{t=ji.readFileSync("/proc/cpuinfo",{encoding:"utf8"}).toString().split(`
|
|
10
|
+
`),co=t}catch{return!1}let r=qa(t,"hardware");return r&&e.indexOf(r)>-1}function xW(){let e=[];try{e=ji.readFileSync("/etc/os-release",{encoding:"utf8"}).toString().split(`
|
|
11
|
+
`)}catch{return!1}let t=qa(e,"id","=");return t&&t.indexOf("raspbian")>-1}function _W(e,t,r){r||(r=t,t=Af);let n="chcp 65001 > nul && cmd /C "+e+" && chcp "+pi+" > nul";tW(n,t,function(i,s){r(i,s)})}function bW(){let e=ji.existsSync("/Library/Developer/CommandLineTools/usr/bin/"),t=ji.existsSync("/Applications/Xcode.app/Contents/Developer/Tools"),r=ji.existsSync("/Library/Developer/Xcode/");return e||r||t}function OW(){let e=process.hrtime();return!Array.isArray(e)||e.length!==2?0:+e[0]*1e9+ +e[1]}function FW(e,t){t=t||"";let r=[];return e.forEach(n=>{n.startsWith(t)&&r.indexOf(n)===-1&&r.push(n)}),r.length}function AW(e,t){t=t||"";let r=[];return e.forEach(n=>{n.startsWith(t)&&r.push(n)}),r.length}function IW(e,t){typeof t>"u"&&(t=!1);let r=e||"",n="",i=yA(r.length,2e3);for(let s=0;s<=i;s++)r[s]===void 0||r[s]===">"||r[s]==="<"||r[s]==="*"||r[s]==="?"||r[s]==="["||r[s]==="]"||r[s]==="|"||r[s]==="\u02DA"||r[s]==="$"||r[s]===";"||r[s]==="&"||r[s]==="]"||r[s]==="#"||r[s]==="\\"||r[s]===" "||r[s]===`
|
|
12
|
+
`||r[s]==="\r"||r[s]==="'"||r[s]==="`"||r[s]==='"'||r[s].length>1||t&&r[s]==="("||t&&r[s]===")"||t&&r[s]==="@"||t&&r[s]===" "||t&&r[s]=="{"||t&&r[s]==";"||t&&r[s]=="}"||(n=n+r[s]);return n}function TW(){let e="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",t=!0,r="";r.__proto__.replace=r1,r.__proto__.toLowerCase=n1,r.__proto__.toString=hA,r.__proto__.substr=gA,t=t||e.length!==62;let n=Date.now();if(typeof n=="number"&&n>16e11){let i=n%100+15;for(let l=0;l<i;l++){let c=Math.random()*61.99999999+1,f=parseInt(Math.floor(c).toString(),10),p=parseInt(c.toString().split(".")[0],10),d=Math.random()*61.99999999+1,m=parseInt(Math.floor(d).toString(),10),y=parseInt(d.toString().split(".")[0],10);t=t&&c!==d,t=t&&f===p&&m===y,r+=e[f-1]}t=t&&r.length===i;let s=Math.random()*i*.9999999999,o=r.substr(0,s)+" "+r.substr(s,2e3);o.__proto__.replace=r1;let a=o.replace(/ /g,"");t=t&&r===a,s=Math.random()*i*.9999999999,o=r.substr(0,s)+"{"+r.substr(s,2e3),a=o.replace(/{/g,""),t=t&&r===a,s=Math.random()*i*.9999999999,o=r.substr(0,s)+"*"+r.substr(s,2e3),a=o.replace(/\*/g,""),t=t&&r===a,s=Math.random()*i*.9999999999,o=r.substr(0,s)+"$"+r.substr(s,2e3),a=o.replace(/\$/g,""),t=t&&r===a;let u=r.toLowerCase();t=t&&u.length===i&&u[i-1]&&!u[i];for(let l=0;l<i;l++){let c=r[l];c.__proto__.toLowerCase=n1;let f=u?u[l]:"",p=c.toLowerCase();t=t&&p[0]===f&&p[0]&&!p[1]}}return!t}function PW(e){return("00000000"+parseInt(e,16).toString(2)).substr(-8)}function LW(e){let t=ji.lstatSync,r=ji.readdirSync,n=eW.join;function i(l){return t(l).isDirectory()}function s(l){return t(l).isFile()}function o(l){return r(l).map(function(c){return n(l,c)}).filter(i)}function a(l){return r(l).map(function(c){return n(l,c)}).filter(s)}function u(l){try{return o(l).map(function(p){return u(p)}).reduce(function(p,d){return p.concat(d)},[]).concat(a(l))}catch{return[]}}return ji.existsSync(e)?u(e):[]}function wA(e){co===null&&(co=e);let t={"0002":{type:"B",revision:"1.0",memory:256,manufacturer:"Egoman",processor:"BCM2835"},"0003":{type:"B",revision:"1.0",memory:256,manufacturer:"Egoman",processor:"BCM2835"},"0004":{type:"B",revision:"2.0",memory:256,manufacturer:"Sony UK",processor:"BCM2835"},"0005":{type:"B",revision:"2.0",memory:256,manufacturer:"Qisda",processor:"BCM2835"},"0006":{type:"B",revision:"2.0",memory:256,manufacturer:"Egoman",processor:"BCM2835"},"0007":{type:"A",revision:"2.0",memory:256,manufacturer:"Egoman",processor:"BCM2835"},"0008":{type:"A",revision:"2.0",memory:256,manufacturer:"Sony UK",processor:"BCM2835"},"0009":{type:"A",revision:"2.0",memory:256,manufacturer:"Qisda",processor:"BCM2835"},"000d":{type:"B",revision:"2.0",memory:512,manufacturer:"Egoman",processor:"BCM2835"},"000e":{type:"B",revision:"2.0",memory:512,manufacturer:"Sony UK",processor:"BCM2835"},"000f":{type:"B",revision:"2.0",memory:512,manufacturer:"Egoman",processor:"BCM2835"},"0010":{type:"B+",revision:"1.2",memory:512,manufacturer:"Sony UK",processor:"BCM2835"},"0011":{type:"CM1",revision:"1.0",memory:512,manufacturer:"Sony UK",processor:"BCM2835"},"0012":{type:"A+",revision:"1.1",memory:256,manufacturer:"Sony UK",processor:"BCM2835"},"0013":{type:"B+",revision:"1.2",memory:512,manufacturer:"Embest",processor:"BCM2835"},"0014":{type:"CM1",revision:"1.0",memory:512,manufacturer:"Embest",processor:"BCM2835"},"0015":{type:"A+",revision:"1.1",memory:256,manufacturer:"512MB Embest",processor:"BCM2835"}},r=["BCM2835","BCM2836","BCM2837","BCM2711","BCM2712"],n=["Sony UK","Egoman","Embest","Sony Japan","Embest","Stadium"],i={"00":"A","01":"B","02":"A+","03":"B+","04":"2B","05":"Alpha (early prototype)","06":"CM1","08":"3B","09":"Zero","0a":"CM3","0c":"Zero W","0d":"3B+","0e":"3A+","0f":"Internal use only",10:"CM3+",11:"4B",12:"Zero 2 W",13:"400",14:"CM4",15:"CM4S",17:"5"},s=qa(e,"revision",":",!0),o=qa(e,"model:",":",!0),a=qa(e,"serial",":",!0),u={};if({}.hasOwnProperty.call(t,s))u={model:o,serial:a,revisionCode:s,memory:t[s].memory,manufacturer:t[s].manufacturer,processor:t[s].processor,type:t[s].type,revision:t[s].revision};else{let l=("00000000"+qa(e,"revision",":",!0).toLowerCase()).substr(-8),c=parseInt(PW(l.substr(2,1)).substr(5,3),2)||0,f=n[parseInt(l.substr(3,1),10)],p=r[parseInt(l.substr(4,1),10)],d=l.substr(5,2);u={model:o,serial:a,revisionCode:s,memory:256*Math.pow(2,c),manufacturer:f,processor:p,type:{}.hasOwnProperty.call(i,d)?i[d]:"",revision:"1."+l.substr(7,1)}}return u}function NW(){let e=null;if(co!==null)e=co;else try{e=ji.readFileSync("/proc/cpuinfo",{encoding:"utf8"}).toString().split(`
|
|
13
13
|
`),co=e}catch{return!1}let t=wA(e);return t.type==="4B"||t.type==="CM4"||t.type==="CM4S"||t.type==="400"?"VideoCore VI":t.type==="5"?"VideoCore VII":"VideoCore IV"}function RW(e){let t=e.map(function(i){return new Promise(function(s){let o=new Array(2);i.then(function(a){o[0]=a}).catch(function(a){o[1]=a}).then(function(){s(o)})})}),r=[],n=[];return Promise.all(t).then(function(i){return i.forEach(function(s){s[1]?(r.push(s[1]),n.push(null)):(r.push(null),n.push(s[0]))}),{errors:r,results:n}})}function BW(e){return function(){let t=Array.prototype.slice.call(arguments);return new Promise(function(r,n){t.push(function(i,s){i?n(i):r(s)}),e.apply(null,t)})}}function kW(e){return function(){let t=Array.prototype.slice.call(arguments);return new Promise(function(r){t.push(function(n,i){r(i)}),e.apply(null,t)})}}function MW(){let e="";if(o1)try{e=Cl("uname -v",s1.execOptsLinux).toString()}catch{e=""}return e}function jW(e){let t=["array","dict","key","string","integer","date","real","data","boolean","arrayEmpty"],n=e.indexOf("<plist version"),i=e.length;for(;e[n]!==">"&&n<i;)n++;let s=0,o=!1,a=!1,u=!1,l=[{tagStart:"",tagEnd:"",tagContent:"",key:"",data:null}],c="",f=e[n];for(;n<i;)c=f,n+1<i&&(f=e[n+1]),c==="<"?(a=!1,f==="/"?u=!0:l[s].tagStart?(l[s].tagContent="",l[s].data||(l[s].data=l[s].tagStart==="array"?[]:{}),s++,l.push({tagStart:"",tagEnd:"",tagContent:"",key:null,data:null}),o=!0,a=!1):o||(o=!0)):c===">"?(l[s].tagStart==="true/"&&(o=!1,u=!0,l[s].tagStart="",l[s].tagEnd="/boolean",l[s].data=!0),l[s].tagStart==="false/"&&(o=!1,u=!0,l[s].tagStart="",l[s].tagEnd="/boolean",l[s].data=!1),l[s].tagStart==="array/"&&(o=!1,u=!0,l[s].tagStart="",l[s].tagEnd="/arrayEmpty",l[s].data=[]),a&&(a=!1),o&&(o=!1,a=!0,l[s].tagStart==="array"&&(l[s].data=[]),l[s].tagStart==="dict"&&(l[s].data={})),u&&(u=!1,l[s].tagEnd&&t.indexOf(l[s].tagEnd.substr(1))>=0&&(l[s].tagEnd==="/dict"||l[s].tagEnd==="/array"?(s>1&&l[s-2].tagStart==="array"&&l[s-2].data.push(l[s-1].data),s>1&&l[s-2].tagStart==="dict"&&(l[s-2].data[l[s-1].key]=l[s-1].data),s--,l.pop(),l[s].tagContent="",l[s].tagStart="",l[s].tagEnd=""):(l[s].tagEnd==="/key"&&l[s].tagContent?l[s].key=l[s].tagContent:(l[s].tagEnd==="/real"&&l[s].tagContent&&(l[s].data=parseFloat(l[s].tagContent)||0),l[s].tagEnd==="/integer"&&l[s].tagContent&&(l[s].data=parseInt(l[s].tagContent)||0),l[s].tagEnd==="/string"&&l[s].tagContent&&(l[s].data=l[s].tagContent||""),l[s].tagEnd==="/boolean"&&(l[s].data=l[s].tagContent||!1),l[s].tagEnd==="/arrayEmpty"&&(l[s].data=l[s].tagContent||[]),s>0&&l[s-1].tagStart==="array"&&l[s-1].data.push(l[s].data),s>0&&l[s-1].tagStart==="dict"&&(l[s-1].data[l[s].key]=l[s].data)),l[s].tagContent="",l[s].tagStart="",l[s].tagEnd="")),l[s].tagEnd="",o=!1,a=!1)):(o&&(l[s].tagStart+=c),u&&(l[s].tagEnd+=c),a&&(l[s].tagContent+=c)),n++;return l[0].data}function uA(e){return typeof e=="string"&&!isNaN(e)&&!isNaN(parseFloat(e))}function VW(e){let t=e.split(`
|
|
14
14
|
`);for(let n=0;n<t.length;n++){if(t[n].indexOf(" = ")>=0){let i=t[n].split(" = ");if(i[0]=i[0].trim(),i[0].startsWith('"')||(i[0]='"'+i[0]+'"'),i[1]=i[1].trim(),i[1].indexOf('"')===-1&&i[1].endsWith(";")){let s=i[1].substring(0,i[1].length-1);uA(s)||(i[1]=`"${s}";`)}if(i[1].indexOf('"')>=0&&i[1].endsWith(";")){let s=i[1].substring(0,i[1].length-1).replace(/"/g,"");uA(s)&&(i[1]=`${s};`)}t[n]=i.join(" : ")}t[n]=t[n].replace(/\(/g,"[").replace(/\)/g,"]").replace(/;/g,",").trim(),t[n].startsWith("}")&&t[n-1]&&t[n-1].endsWith(",")&&(t[n-1]=t[n-1].substring(0,t[n-1].length-1))}e=t.join("");let r={};try{r=JSON.parse(e)}catch{}return r}function UW(e,t){let r=0,n=e.split("."),i=t.split(".");return n[0]<i[0]?r=1:n[0]>i[0]?r=-1:n[0]===i[0]&&n.length>=2&&i.length>=2&&(n[1]<i[1]?r=1:n[1]>i[1]?r=-1:n[1]===i[1]&&(n.length>=3&&i.length>=3?n[2]<i[2]?r=1:n[2]>i[2]&&(r=-1):i.length>=3&&(r=1))),r}function $W(){}be.toInt=rW;be.splitByNumber=nW;be.execOptsWin=Af;be.execOptsLinux=mA;be.getCodepage=CW;be.execWin=_W;be.isFunction=oW;be.unique=aW;be.sortByKey=uW;be.cores=lW;be.getValue=qa;be.decodeEscapeSequence=cW;be.parseDateTime=dW;be.parseHead=mW;be.findObjectByKey=hW;be.getWmic=DA;be.wmic=gW;be.darwinXcodeExists=bW;be.getVboxmanage=yW;be.powerShell=vA;be.powerShellStart=DW;be.powerShellRelease=vW;be.execSafe=wW;be.nanoSeconds=OW;be.countUniqueLines=FW;be.countLines=AW;be.noop=$W;be.isRaspberry=SW;be.isRaspbian=xW;be.sanitizeShellString=IW;be.isPrototypePolluted=TW;be.decodePiCpuinfo=wA;be.getRpiGpu=NW;be.promiseAll=RW;be.promisify=BW;be.promisifySave=kW;be.smartMonToolsInstalled=EW;be.linuxVersion=MW;be.plistParser=jW;be.plistReader=VW;be.stringReplace=r1;be.stringToLower=n1;be.stringToString=hA;be.stringSubstr=gA;be.stringTrim=iW;be.stringStartWith=sW;be.mathMin=yA;be.WINDIR=dA;be.getFilesInPath=LW;be.semverCompare=UW});var CA=N(Lf=>{"use strict";var nh=V("fs"),Ha=V("os"),j=Mt(),Sl=V("child_process").exec,El=V("child_process").execSync,rh=j.promisify(V("child_process").exec),fo=process.platform,ih=fo==="linux"||fo==="android",sh=fo==="darwin",oh=fo==="win32",If=fo==="freebsd",Tf=fo==="openbsd",Pf=fo==="netbsd",ah=fo==="sunos";function WW(e){return new Promise(t=>{process.nextTick(()=>{let r={manufacturer:"",model:"Computer",version:"",serial:"-",uuid:"-",sku:"-",virtual:!1};if((ih||If||Tf||Pf)&&Sl("export LC_ALL=C; dmidecode -t system 2>/dev/null; unset LC_ALL",function(n,i){let s=i.toString().split(`
|
|
15
15
|
`);r.manufacturer=j.getValue(s,"manufacturer"),r.model=j.getValue(s,"product name"),r.version=j.getValue(s,"version"),r.serial=j.getValue(s,"serial number"),r.uuid=j.getValue(s,"uuid").toLowerCase(),r.sku=j.getValue(s,"sku number");let o=`echo -n "product_name: "; cat /sys/devices/virtual/dmi/id/product_name 2>/dev/null; echo;
|
|
@@ -46,14 +46,14 @@ var E2=Object.create;var rl=Object.defineProperty;var S2=Object.getOwnPropertyDe
|
|
|
46
46
|
echo -n "chassis_version: "; cat /sys/devices/virtual/dmi/id/chassis_version 2>/dev/null; echo;`,function(s,o){let a=o.toString().split(`
|
|
47
47
|
`);n.manufacturer=Qe(j.getValue(a,"chassis_vendor"));let u=parseInt(j.getValue(a,"chassis_type").replace(/\D/g,""));n.type=Qe(u&&!isNaN(u)&&u<t.length?t[u-1]:""),n.version=Qe(j.getValue(a,"chassis_version")),n.serial=Qe(j.getValue(a,"chassis_serial")),n.assetTag=Qe(j.getValue(a,"chassis_asset_tag")),e&&e(n),r(n)}),sh&&Sl("ioreg -c IOPlatformExpertDevice -d 2",function(i,s){if(!i){let o=s.toString().replace(/[<>"]/g,"").split(`
|
|
48
48
|
`),a=j.getValue(o,"model","=",!0),u=j.splitByNumber(a),l=j.getValue(o,"version","=",!0);n.manufacturer=j.getValue(o,"manufacturer","=",!0),n.model=l?j.getValue(o,"model","=",!0):u[0],n.type=zW(n.model),n.version=l||a,n.serial=j.getValue(o,"ioplatformserialnumber","=",!0),n.assetTag=j.getValue(o,"board-id","=",!0)||j.getValue(o,"target-type","=",!0),n.sku=j.getValue(o,"target-sub-type","=",!0)}e&&e(n),r(n)}),ah&&(e&&e(n),r(n)),oh)try{j.powerShell("Get-CimInstance Win32_SystemEnclosure | select Model,Manufacturer,ChassisTypes,Version,SerialNumber,PartNumber,SKU,SMBIOSAssetTag | fl").then((i,s)=>{if(!s){let o=i.toString().split(`\r
|
|
49
|
-
`);n.manufacturer=Qe(j.getValue(o,"manufacturer",":")),n.model=Qe(j.getValue(o,"model",":"));let a=parseInt(j.getValue(o,"ChassisTypes",":").replace(/\D/g,""));n.type=a&&!isNaN(a)&&a<t.length?t[a-1]:"",n.version=Qe(j.getValue(o,"version",":")),n.serial=Qe(j.getValue(o,"serialnumber",":")),n.assetTag=Qe(j.getValue(o,"partnumber",":")),n.assetTag||(n.assetTag=Qe(j.getValue(o,"SMBIOSAssetTag",":"))),n.sku=Qe(j.getValue(o,"sku",":"))}e&&e(n),r(n)})}catch{e&&e(n),r(n)}})})}Lf.chassis=HW});var SA=N(xl=>{"use strict";var
|
|
49
|
+
`);n.manufacturer=Qe(j.getValue(o,"manufacturer",":")),n.model=Qe(j.getValue(o,"model",":"));let a=parseInt(j.getValue(o,"ChassisTypes",":").replace(/\D/g,""));n.type=a&&!isNaN(a)&&a<t.length?t[a-1]:"",n.version=Qe(j.getValue(o,"version",":")),n.serial=Qe(j.getValue(o,"serialnumber",":")),n.assetTag=Qe(j.getValue(o,"partnumber",":")),n.assetTag||(n.assetTag=Qe(j.getValue(o,"SMBIOSAssetTag",":"))),n.sku=Qe(j.getValue(o,"sku",":"))}e&&e(n),r(n)})}catch{e&&e(n),r(n)}})})}Lf.chassis=HW});var SA=N(xl=>{"use strict";var Vi=V("os"),Mn=V("fs"),xe=Mt(),Oe=V("child_process").exec,Rf=V("child_process").execSync,mi=process.platform,Bf=mi==="linux"||mi==="android",di=mi==="darwin",jn=mi==="win32",l1=mi==="freebsd",c1=mi==="openbsd",f1=mi==="netbsd",YW=mi==="sunos";function KW(){let e=new Date().toString().split(" ");return{current:Date.now(),uptime:Vi.uptime(),timezone:e.length>=7?e[5]:"",timezoneName:Intl?Intl.DateTimeFormat().resolvedOptions().timeZone:e.length>=7?e.slice(6).join(" ").replace(/\(/g,"").replace(/\)/g,""):""}}xl.time=KW;function Nf(e){e=e||"",e=e.toLowerCase();let t=mi;return jn?t="windows":e.indexOf("mac os")!==-1?t="apple":e.indexOf("arch")!==-1?t="arch":e.indexOf("centos")!==-1?t="centos":e.indexOf("coreos")!==-1?t="coreos":e.indexOf("debian")!==-1?t="debian":e.indexOf("deepin")!==-1?t="deepin":e.indexOf("elementary")!==-1?t="elementary":e.indexOf("fedora")!==-1?t="fedora":e.indexOf("gentoo")!==-1?t="gentoo":e.indexOf("mageia")!==-1?t="mageia":e.indexOf("mandriva")!==-1?t="mandriva":e.indexOf("manjaro")!==-1?t="manjaro":e.indexOf("mint")!==-1?t="mint":e.indexOf("mx")!==-1?t="mx":e.indexOf("openbsd")!==-1?t="openbsd":e.indexOf("freebsd")!==-1?t="freebsd":e.indexOf("opensuse")!==-1?t="opensuse":e.indexOf("pclinuxos")!==-1?t="pclinuxos":e.indexOf("puppy")!==-1?t="puppy":e.indexOf("raspbian")!==-1?t="raspbian":e.indexOf("reactos")!==-1?t="reactos":e.indexOf("redhat")!==-1?t="redhat":e.indexOf("slackware")!==-1?t="slackware":e.indexOf("sugar")!==-1?t="sugar":e.indexOf("steam")!==-1?t="steam":e.indexOf("suse")!==-1?t="suse":e.indexOf("mate")!==-1?t="ubuntu-mate":e.indexOf("lubuntu")!==-1?t="lubuntu":e.indexOf("xubuntu")!==-1?t="xubuntu":e.indexOf("ubuntu")!==-1?t="ubuntu":e.indexOf("solaris")!==-1?t="solaris":e.indexOf("tails")!==-1?t="tails":e.indexOf("feren")!==-1?t="ferenos":e.indexOf("robolinux")!==-1?t="robolinux":Bf&&e&&(t=e.toLowerCase().trim().replace(/\s+/g,"-")),t}function XW(){let e=Vi.hostname;if(Bf||di)try{let t=Rf("hostnamectl --json short 2>/dev/null",xe.execOptsLinux);e=JSON.parse(t.toString()).StaticHostname}catch{try{e=Rf("hostname -f 2>/dev/null",xe.execOptsLinux).toString().split(Vi.EOL)[0]}catch{xe.noop()}}if(l1||c1||f1)try{e=Rf("hostname 2>/dev/null").toString().split(Vi.EOL)[0]}catch{xe.noop()}if(jn)try{e=Rf("echo %COMPUTERNAME%.%USERDNSDOMAIN%",xe.execOptsWin).toString().replace(".%USERDNSDOMAIN%","").split(Vi.EOL)[0]}catch{xe.noop()}return e}function JW(e){return new Promise(t=>{process.nextTick(()=>{let r={platform:mi==="win32"?"Windows":mi,distro:"unknown",release:"unknown",codename:"",kernel:Vi.release(),arch:Vi.arch(),hostname:Vi.hostname(),fqdn:XW(),codepage:"",logofile:"",serial:"",build:"",servicepack:"",uefi:!1};if(Bf&&Oe("cat /etc/*-release; cat /usr/lib/os-release; cat /etc/openwrt_release",function(n,i){let s={};i.toString().split(`
|
|
50
50
|
`).forEach(function(c){c.indexOf("=")!==-1&&(s[c.split("=")[0].trim().toUpperCase()]=c.split("=")[1].trim())}),r.distro=(s.DISTRIB_ID||s.NAME||"unknown").replace(/"/g,""),r.logofile=Nf(r.distro);let a=(s.VERSION||"").replace(/"/g,""),u=(s.DISTRIB_CODENAME||s.VERSION_CODENAME||"").replace(/"/g,""),l=(s.PRETTY_NAME||"").replace(/"/g,"");l.indexOf(r.distro+" ")===0&&(a=l.replace(r.distro+" ","").trim()),a.indexOf("(")>=0&&(u=a.split("(")[1].replace(/[()]/g,"").trim(),a=a.split("(")[0].trim()),r.release=(a||s.DISTRIB_RELEASE||s.VERSION_ID||"unknown").replace(/"/g,""),r.codename=u,r.codepage=xe.getCodepage(),r.build=(s.BUILD_ID||"").replace(/"/g,"").trim(),ZW().then(c=>{r.uefi=c,EA().then(f=>{r.serial=f.os,e&&e(r),t(r)})})}),(l1||c1||f1)&&Oe("sysctl kern.ostype kern.osrelease kern.osrevision kern.hostuuid machdep.bootmethod kern.geom.confxml",function(n,i){let s=i.toString().split(`
|
|
51
51
|
`),o=xe.getValue(s,"kern.ostype"),a=Nf(o),u=xe.getValue(s,"kern.osrelease").split("-")[0],l=xe.getValue(s,"kern.uuid"),c=xe.getValue(s,"machdep.bootmethod"),f=i.toString().indexOf("<type>efi</type>")>=0,p=c?c.toLowerCase().indexOf("uefi")>=0:f||null;r.distro=o||r.distro,r.logofile=a||r.logofile,r.release=u||r.release,r.serial=l||r.serial,r.codename="",r.codepage=xe.getCodepage(),r.uefi=p||null,e&&e(r),t(r)}),di&&Oe("sw_vers; sysctl kern.ostype kern.osrelease kern.osrevision kern.uuid",function(n,i){let s=i.toString().split(`
|
|
52
52
|
`);r.serial=xe.getValue(s,"kern.uuid"),r.distro=xe.getValue(s,"ProductName"),r.release=(xe.getValue(s,"ProductVersion",":",!0,!0)+" "+xe.getValue(s,"ProductVersionExtra",":",!0,!0)).trim(),r.build=xe.getValue(s,"BuildVersion"),r.logofile=Nf(r.distro),r.codename="macOS",r.codename=r.release.indexOf("10.4")>-1?"Mac OS X Tiger":r.codename,r.codename=r.release.indexOf("10.5")>-1?"Mac OS X Leopard":r.codename,r.codename=r.release.indexOf("10.6")>-1?"Mac OS X Snow Leopard":r.codename,r.codename=r.release.indexOf("10.7")>-1?"Mac OS X Lion":r.codename,r.codename=r.release.indexOf("10.8")>-1?"OS X Mountain Lion":r.codename,r.codename=r.release.indexOf("10.9")>-1?"OS X Mavericks":r.codename,r.codename=r.release.indexOf("10.10")>-1?"OS X Yosemite":r.codename,r.codename=r.release.indexOf("10.11")>-1?"OS X El Capitan":r.codename,r.codename=r.release.indexOf("10.12")>-1?"macOS Sierra":r.codename,r.codename=r.release.indexOf("10.13")>-1?"macOS High Sierra":r.codename,r.codename=r.release.indexOf("10.14")>-1?"macOS Mojave":r.codename,r.codename=r.release.indexOf("10.15")>-1?"macOS Catalina":r.codename,r.codename=r.release.startsWith("11.")?"macOS Big Sur":r.codename,r.codename=r.release.startsWith("12.")?"macOS Monterey":r.codename,r.codename=r.release.startsWith("13.")?"macOS Ventura":r.codename,r.codename=r.release.startsWith("14.")?"macOS Sonoma":r.codename,r.codename=r.release.startsWith("15.")?"macOS Sequoia":r.codename,r.uefi=!0,r.codepage=xe.getCodepage(),e&&e(r),t(r)}),YW&&(r.release=r.kernel,Oe("uname -o",function(n,i){let s=i.toString().split(`
|
|
53
53
|
`);r.distro=s[0],r.logofile=Nf(r.distro),e&&e(r),t(r)})),jn){r.logofile=Nf(),r.release=r.kernel;try{let n=[];n.push(xe.powerShell("Get-CimInstance Win32_OperatingSystem | select Caption,SerialNumber,BuildNumber,ServicePackMajorVersion,ServicePackMinorVersion | fl")),n.push(xe.powerShell("(Get-CimInstance Win32_ComputerSystem).HypervisorPresent")),n.push(xe.powerShell("Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.SystemInformation]::TerminalServerSession")),xe.promiseAll(n).then(i=>{let s=i.results[0]?i.results[0].toString().split(`\r
|
|
54
54
|
`):[""];r.distro=xe.getValue(s,"Caption",":").trim(),r.serial=xe.getValue(s,"SerialNumber",":").trim(),r.build=xe.getValue(s,"BuildNumber",":").trim(),r.servicepack=xe.getValue(s,"ServicePackMajorVersion",":").trim()+"."+xe.getValue(s,"ServicePackMinorVersion",":").trim(),r.codepage=xe.getCodepage();let o=i.results[1]?i.results[1].toString().toLowerCase():"";r.hypervisor=o.indexOf("true")!==-1;let a=i.results[2]?i.results[2].toString():"";r.remoteSession=a.toString().toLowerCase().indexOf("true")>=0,QW().then(u=>{r.uefi=u,e&&e(r),t(r)})})}catch{e&&e(r),t(r)}}})})}xl.osInfo=JW;function ZW(){return new Promise(e=>{process.nextTick(()=>{Mn.stat("/sys/firmware/efi",function(t){if(t)Oe('dmesg | grep -E "EFI v"',function(r,n){if(!r){let i=n.toString().split(`
|
|
55
55
|
`);return e(i.length>0)}return e(!1)});else return e(!0)})})})}function QW(){return new Promise(e=>{process.nextTick(()=>{try{Oe('findstr /C:"Detected boot environment" "%windir%\\Panther\\setupact.log"',xe.execOptsWin,function(t,r){if(t)Oe("echo %firmware_type%",xe.execOptsWin,function(n,i){if(n)return e(!1);{let s=i.toString()||"";return e(s.toLowerCase().indexOf("efi")>=0)}});else{let n=r.toString().split(`
|
|
56
|
-
\r`)[0];return e(n.toLowerCase().indexOf("efi")>=0)}})}catch{return e(!1)}})})}function eG(e,t){let r={kernel:
|
|
56
|
+
\r`)[0];return e(n.toLowerCase().indexOf("efi")>=0)}})}catch{return e(!1)}})})}function eG(e,t){let r={kernel:Vi.release(),openssl:"",systemOpenssl:"",systemOpensslLib:"",node:process.versions.node,v8:process.versions.v8,npm:"",yarn:"",pm2:"",gulp:"",grunt:"",git:"",tsc:"",mysql:"",redis:"",mongodb:"",apache:"",nginx:"",php:"",docker:"",postfix:"",postgresql:"",perl:"",python:"",python3:"",pip:"",pip3:"",java:"",gcc:"",virtualbox:"",bash:"",zsh:"",fish:"",powershell:"",dotnet:""};function n(i){if(i==="*")return{versions:r,counter:30};if(!Array.isArray(i)){i=i.trim().toLowerCase().replace(/,+/g,"|").replace(/ /g,"|"),i=i.split("|");let s={versions:{},counter:0};return i.forEach(o=>{if(o)for(let a in r)({}).hasOwnProperty.call(r,a)&&a.toLowerCase()===o.toLowerCase()&&!{}.hasOwnProperty.call(s.versions,a)&&(s.versions[a]=r[a],a==="openssl"&&(s.versions.systemOpenssl="",s.versions.systemOpensslLib=""),s.versions[a]||s.counter++)}),s}}return new Promise(i=>{process.nextTick(()=>{if(xe.isFunction(e)&&!t)t=e,e="*";else if(e=e||"*",typeof e!="string")return t&&t({}),i({});let s=n(e),o=s.counter,a=function(){return function(){--o===0&&(t&&t(s.versions),i(s.versions))}}(),u="";try{if({}.hasOwnProperty.call(s.versions,"openssl")&&(s.versions.openssl=process.versions.openssl,Oe("openssl version",function(l,c){if(!l){let p=c.toString().split(`
|
|
57
57
|
`)[0].trim().split(" ");s.versions.systemOpenssl=p.length>0?p[1]:p[0],s.versions.systemOpensslLib=p.length>0?p[0]:"openssl"}a()})),{}.hasOwnProperty.call(s.versions,"npm")&&Oe("npm -v",function(l,c){l||(s.versions.npm=c.toString().split(`
|
|
58
58
|
`)[0]),a()}),{}.hasOwnProperty.call(s.versions,"pm2")&&(u="pm2",jn&&(u+=".cmd"),Oe(`${u} -v`,function(l,c){if(!l){let f=c.toString().split(`
|
|
59
59
|
`)[0].trim();f.startsWith("[PM2]")||(s.versions.pm2=f)}a()})),{}.hasOwnProperty.call(s.versions,"yarn")&&Oe("yarn --version",function(l,c){l||(s.versions.yarn=c.toString().split(`
|
|
@@ -96,7 +96,7 @@ var E2=Object.create;var rl=Object.defineProperty;var S2=Object.getOwnPropertyDe
|
|
|
96
96
|
`)[0].split(" version ");p.length>1&&(s.versions.fish=p[1].split(" ")[0])}a()}),{}.hasOwnProperty.call(s.versions,"powershell")&&(jn?xe.powerShell("$PSVersionTable").then(l=>{let c=l.toString().split(`
|
|
97
97
|
`).map(f=>f.replace(/ +/g," ").replace(/ +/g,":"));s.versions.powershell=xe.getValue(c,"psversion"),a()}):a()),{}.hasOwnProperty.call(s.versions,"dotnet")&&(jn?xe.powerShell('gci "HKLM:\\SOFTWARE\\Microsoft\\NET Framework Setup\\NDP" -recurse | gp -name Version,Release -EA 0 | where { $_.PSChildName -match "^(?!S)\\p{L}"} | select PSChildName, Version, Release').then(l=>{let c=l.toString().split(`\r
|
|
98
98
|
`),f="";c.forEach(p=>{p=p.replace(/ +/g," ");let d=p.split(" ");f=f||(d[0].toLowerCase().startsWith("client")&&d.length>2||d[0].toLowerCase().startsWith("full")&&d.length>2?d[1].trim():"")}),s.versions.dotnet=f.trim(),a()}):a())}catch{t&&t(s.versions),i(s.versions)}})})}xl.versions=eG;function tG(e){return new Promise(t=>{process.nextTick(()=>{if(jn)t("cmd");else{let r="";Oe("echo $SHELL",function(n,i){n||(r=i.toString().split(`
|
|
99
|
-
`)[0]),e&&e(r),t(r)})}})})}xl.shell=tG;function rG(){let e=[];try{let t=
|
|
99
|
+
`)[0]),e&&e(r),t(r)})}})})}xl.shell=tG;function rG(){let e=[];try{let t=Vi.networkInterfaces();for(let r in t)({}).hasOwnProperty.call(t,r)&&t[r].forEach(function(n){if(n&&n.mac&&n.mac!=="00:00:00:00:00:00"){let i=n.mac.toLowerCase();e.indexOf(i)===-1&&e.push(i)}});e=e.sort(function(r,n){return r<n?-1:r>n?1:0})}catch{e.push("00:00:00:00:00:00")}return e}function EA(e){return new Promise(t=>{process.nextTick(()=>{let r={os:"",hardware:"",macs:rG()},n;if(di&&Oe("system_profiler SPHardwareDataType -json",function(i,s){if(!i)try{let o=JSON.parse(s.toString());if(o.SPHardwareDataType&&o.SPHardwareDataType.length>0){let a=o.SPHardwareDataType[0];r.os=a.platform_UUID.toLowerCase(),r.hardware=a.serial_number}}catch{xe.noop()}e&&e(r),t(r)}),Bf&&Oe(`echo -n "os: "; cat /var/lib/dbus/machine-id 2> /dev/null ||
|
|
100
100
|
cat /etc/machine-id 2> /dev/null; echo;
|
|
101
101
|
echo -n "hardware: "; cat /sys/class/dmi/id/product_uuid 2> /dev/null; echo;`,function(s,o){let a=o.toString().split(`
|
|
102
102
|
`);if(r.os=xe.getValue(a,"os").toLowerCase(),r.hardware=xe.getValue(a,"hardware").toLowerCase(),!r.hardware){let u=Mn.readFileSync("/proc/cpuinfo",{encoding:"utf8"}).toString().split(`
|
|
@@ -130,20 +130,20 @@ echo -n "hardware: "; cat /sys/class/dmi/id/product_uuid 2> /dev/null; echo;`,fu
|
|
|
130
130
|
`).forEach(function(o){let a=o.split(":");a[0].toLowerCase().indexOf("hw.l1icachesize")!==-1&&(r.l1d=parseInt(a[1].trim())*(a[1].indexOf("K")!==-1?1024:1)),a[0].toLowerCase().indexOf("hw.l1dcachesize")!==-1&&(r.l1i=parseInt(a[1].trim())*(a[1].indexOf("K")!==-1?1024:1)),a[0].toLowerCase().indexOf("hw.l2cachesize")!==-1&&(r.l2=parseInt(a[1].trim())*(a[1].indexOf("K")!==-1?1024:1)),a[0].toLowerCase().indexOf("hw.l3cachesize")!==-1&&(r.l3=parseInt(a[1].trim())*(a[1].indexOf("K")!==-1?1024:1))}),e&&e(r),t(r)}),hh&&(e&&e(r),t(r)),fh)try{let n=[];n.push(te.powerShell("Get-CimInstance Win32_processor | select L2CacheSize, L3CacheSize | fl")),n.push(te.powerShell("Get-CimInstance Win32_CacheMemory | select CacheType,InstalledSize,Level | fl")),Promise.all(n).then(i=>{r=FA(i[0],i[1]),e&&e(r),t(r)})}catch{e&&e(r),t(r)}})})}function FA(e,t){let r={l1d:null,l1i:null,l2:null,l3:null},n=e.split(`\r
|
|
131
131
|
`);r.l1d=0,r.l1i=0,r.l2=te.getValue(n,"l2cachesize",":"),r.l3=te.getValue(n,"l3cachesize",":"),r.l2?r.l2=parseInt(r.l2,10)*1024:r.l2=0,r.l3?r.l3=parseInt(r.l3,10)*1024:r.l3=0;let i=t.split(/\n\s*\n/),s=0,o=0,a=0;return i.forEach(function(u){let l=u.split(`\r
|
|
132
132
|
`),c=te.getValue(l,"CacheType"),f=te.getValue(l,"Level"),p=te.getValue(l,"InstalledSize");f==="3"&&c==="3"&&(r.l1i=r.l1i+parseInt(p,10)*1024),f==="3"&&c==="4"&&(r.l1d=r.l1d+parseInt(p,10)*1024),f==="3"&&c==="5"&&(s=parseInt(p,10)/2,o=parseInt(p,10)/2),f==="4"&&c==="5"&&(a=a+parseInt(p,10)*1024)}),!r.l1i&&!r.l1d&&(r.l1i=s,r.l1d=o),a&&(r.l2=a),r}mo.cpuCache=OA;function uG(){return new Promise(e=>{process.nextTick(()=>{let t=hi.loadavg().map(function(s){return s/te.cores()}),r=parseFloat(Math.max.apply(Math,t).toFixed(2)),n={};if(Date.now()-We.ms>=200){We.ms=Date.now();let s=hi.cpus().map(function(h){return h.times.steal=0,h.times.guest=0,h}),o=0,a=0,u=0,l=0,c=0,f=0,p=0,d=[];if(p1=s&&s.length?s.length:0,kf)try{let h=y1("cat /proc/stat 2>/dev/null | grep cpu",te.execOptsLinux).toString().split(`
|
|
133
|
-
`);if(h.length>1&&(h.shift(),h.length===s.length))for(let g=0;g<h.length;g++){let v=h[g].split(" ");if(v.length>=10){let w=parseFloat(v[8])||0,E=parseFloat(v[9])||0;s[g].times.steal=w,s[g].times.guest=E}}}catch{te.noop()}for(let h=0;h<p1;h++){let g=s[h].times;o+=g.user,a+=g.sys,u+=g.nice,c+=g.idle,l+=g.irq,f+=g.steal||0,p+=g.guest||0;let v=$&&$[h]&&$[h].totalTick?$[h].totalTick:0,w=$&&$[h]&&$[h].totalLoad?$[h].totalLoad:0,E=$&&$[h]&&$[h].user?$[h].user:0,I=$&&$[h]&&$[h].sys?$[h].sys:0,A=$&&$[h]&&$[h].nice?$[h].nice:0,W=$&&$[h]&&$[h].idle?$[h].idle:0,b=$&&$[h]&&$[h].irq?$[h].irq:0,T=$&&$[h]&&$[h].steal?$[h].steal:0,F=$&&$[h]&&$[h].guest?$[h].guest:0;$[h]=g,$[h].totalTick=$[h].user+$[h].sys+$[h].nice+$[h].irq+$[h].steal+$[h].guest+$[h].idle,$[h].totalLoad=$[h].user+$[h].sys+$[h].nice+$[h].irq+$[h].steal+$[h].guest,$[h].currentTick=$[h].totalTick-v,$[h].load=$[h].totalLoad-w,$[h].loadUser=$[h].user-E,$[h].loadSystem=$[h].sys-I,$[h].loadNice=$[h].nice-A,$[h].loadIdle=$[h].idle-W,$[h].loadIrq=$[h].irq-b,$[h].loadSteal=$[h].steal-T,$[h].loadGuest=$[h].guest-F,d[h]={},d[h].load=$[h].load/$[h].currentTick*100,d[h].loadUser=$[h].loadUser/$[h].currentTick*100,d[h].loadSystem=$[h].loadSystem/$[h].currentTick*100,d[h].loadNice=$[h].loadNice/$[h].currentTick*100,d[h].loadIdle=$[h].loadIdle/$[h].currentTick*100,d[h].loadIrq=$[h].loadIrq/$[h].currentTick*100,d[h].loadSteal=$[h].loadSteal/$[h].currentTick*100,d[h].loadGuest=$[h].loadGuest/$[h].currentTick*100,d[h].rawLoad=$[h].load,d[h].rawLoadUser=$[h].loadUser,d[h].rawLoadSystem=$[h].loadSystem,d[h].rawLoadNice=$[h].loadNice,d[h].rawLoadIdle=$[h].loadIdle,d[h].rawLoadIrq=$[h].loadIrq,d[h].rawLoadSteal=$[h].loadSteal,d[h].rawLoadGuest=$[h].loadGuest}let m=o+a+u+l+f+p+c,y=o+a+u+l+f+p,D=m-We.tick;n={avgLoad:r,currentLoad:(y-We.load)/D*100,currentLoadUser:(o-We.user)/D*100,currentLoadSystem:(a-We.system)/D*100,currentLoadNice:(u-We.nice)/D*100,currentLoadIdle:(c-We.idle)/D*100,currentLoadIrq:(l-We.irq)/D*100,currentLoadSteal:(f-We.steal)/D*100,currentLoadGuest:(p-We.guest)/D*100,rawCurrentLoad:y-We.load,rawCurrentLoadUser:o-We.user,rawCurrentLoadSystem:a-We.system,rawCurrentLoadNice:u-We.nice,rawCurrentLoadIdle:c-We.idle,rawCurrentLoadIrq:l-We.irq,rawCurrentLoadSteal:f-We.steal,rawCurrentLoadGuest:p-We.guest,cpus:d},We={user:o,nice:u,system:a,idle:c,irq:l,steal:f,guest:p,tick:m,load:y,ms:We.ms,currentLoad:n.currentLoad,currentLoadUser:n.currentLoadUser,currentLoadSystem:n.currentLoadSystem,currentLoadNice:n.currentLoadNice,currentLoadIdle:n.currentLoadIdle,currentLoadIrq:n.currentLoadIrq,currentLoadSteal:n.currentLoadSteal,currentLoadGuest:n.currentLoadGuest,rawCurrentLoad:n.rawCurrentLoad,rawCurrentLoadUser:n.rawCurrentLoadUser,rawCurrentLoadSystem:n.rawCurrentLoadSystem,rawCurrentLoadNice:n.rawCurrentLoadNice,rawCurrentLoadIdle:n.rawCurrentLoadIdle,rawCurrentLoadIrq:n.rawCurrentLoadIrq,rawCurrentLoadSteal:n.rawCurrentLoadSteal,rawCurrentLoadGuest:n.rawCurrentLoadGuest}}else{let s=[];for(let o=0;o<p1;o++)s[o]={},s[o].load=$[o].load/$[o].currentTick*100,s[o].loadUser=$[o].loadUser/$[o].currentTick*100,s[o].loadSystem=$[o].loadSystem/$[o].currentTick*100,s[o].loadNice=$[o].loadNice/$[o].currentTick*100,s[o].loadIdle=$[o].loadIdle/$[o].currentTick*100,s[o].loadIrq=$[o].loadIrq/$[o].currentTick*100,s[o].rawLoad=$[o].load,s[o].rawLoadUser=$[o].loadUser,s[o].rawLoadSystem=$[o].loadSystem,s[o].rawLoadNice=$[o].loadNice,s[o].rawLoadIdle=$[o].loadIdle,s[o].rawLoadIrq=$[o].loadIrq,s[o].rawLoadSteal=$[o].loadSteal,s[o].rawLoadGuest=$[o].loadGuest;n={avgLoad:r,currentLoad:We.currentLoad,currentLoadUser:We.currentLoadUser,currentLoadSystem:We.currentLoadSystem,currentLoadNice:We.currentLoadNice,currentLoadIdle:We.currentLoadIdle,currentLoadIrq:We.currentLoadIrq,currentLoadSteal:We.currentLoadSteal,currentLoadGuest:We.currentLoadGuest,rawCurrentLoad:We.rawCurrentLoad,rawCurrentLoadUser:We.rawCurrentLoadUser,rawCurrentLoadSystem:We.rawCurrentLoadSystem,rawCurrentLoadNice:We.rawCurrentLoadNice,rawCurrentLoadIdle:We.rawCurrentLoadIdle,rawCurrentLoadIrq:We.rawCurrentLoadIrq,rawCurrentLoadSteal:We.rawCurrentLoadSteal,rawCurrentLoadGuest:We.rawCurrentLoadGuest,cpus:s}}e(n)})})}function lG(e){return new Promise(t=>{process.nextTick(()=>{uG().then(r=>{e&&e(r),t(r)})})})}mo.currentLoad=lG;function cG(){return new Promise(e=>{process.nextTick(()=>{let t=hi.cpus(),r=0,n=0,i=0,s=0,o=0,a=0;if(t&&t.length){for(let l=0,c=t.length;l<c;l++){let f=t[l].times;r+=f.user,n+=f.sys,i+=f.nice,s+=f.irq,o+=f.idle}let u=o+s+i+n+r;a=(u-o)/u*100}e(a)})})}function fG(e){return new Promise(t=>{process.nextTick(()=>{cG().then(r=>{e&&e(r),t(r)})})})}mo.fullLoad=fG});var jA=N(D1=>{"use strict";var
|
|
134
|
-
`);r.total=parseInt(ie.getValue(s,"memtotal"),10),r.total=r.total?r.total*1024
|
|
133
|
+
`);if(h.length>1&&(h.shift(),h.length===s.length))for(let g=0;g<h.length;g++){let v=h[g].split(" ");if(v.length>=10){let w=parseFloat(v[8])||0,E=parseFloat(v[9])||0;s[g].times.steal=w,s[g].times.guest=E}}}catch{te.noop()}for(let h=0;h<p1;h++){let g=s[h].times;o+=g.user,a+=g.sys,u+=g.nice,c+=g.idle,l+=g.irq,f+=g.steal||0,p+=g.guest||0;let v=$&&$[h]&&$[h].totalTick?$[h].totalTick:0,w=$&&$[h]&&$[h].totalLoad?$[h].totalLoad:0,E=$&&$[h]&&$[h].user?$[h].user:0,I=$&&$[h]&&$[h].sys?$[h].sys:0,A=$&&$[h]&&$[h].nice?$[h].nice:0,W=$&&$[h]&&$[h].idle?$[h].idle:0,b=$&&$[h]&&$[h].irq?$[h].irq:0,T=$&&$[h]&&$[h].steal?$[h].steal:0,F=$&&$[h]&&$[h].guest?$[h].guest:0;$[h]=g,$[h].totalTick=$[h].user+$[h].sys+$[h].nice+$[h].irq+$[h].steal+$[h].guest+$[h].idle,$[h].totalLoad=$[h].user+$[h].sys+$[h].nice+$[h].irq+$[h].steal+$[h].guest,$[h].currentTick=$[h].totalTick-v,$[h].load=$[h].totalLoad-w,$[h].loadUser=$[h].user-E,$[h].loadSystem=$[h].sys-I,$[h].loadNice=$[h].nice-A,$[h].loadIdle=$[h].idle-W,$[h].loadIrq=$[h].irq-b,$[h].loadSteal=$[h].steal-T,$[h].loadGuest=$[h].guest-F,d[h]={},d[h].load=$[h].load/$[h].currentTick*100,d[h].loadUser=$[h].loadUser/$[h].currentTick*100,d[h].loadSystem=$[h].loadSystem/$[h].currentTick*100,d[h].loadNice=$[h].loadNice/$[h].currentTick*100,d[h].loadIdle=$[h].loadIdle/$[h].currentTick*100,d[h].loadIrq=$[h].loadIrq/$[h].currentTick*100,d[h].loadSteal=$[h].loadSteal/$[h].currentTick*100,d[h].loadGuest=$[h].loadGuest/$[h].currentTick*100,d[h].rawLoad=$[h].load,d[h].rawLoadUser=$[h].loadUser,d[h].rawLoadSystem=$[h].loadSystem,d[h].rawLoadNice=$[h].loadNice,d[h].rawLoadIdle=$[h].loadIdle,d[h].rawLoadIrq=$[h].loadIrq,d[h].rawLoadSteal=$[h].loadSteal,d[h].rawLoadGuest=$[h].loadGuest}let m=o+a+u+l+f+p+c,y=o+a+u+l+f+p,D=m-We.tick;n={avgLoad:r,currentLoad:(y-We.load)/D*100,currentLoadUser:(o-We.user)/D*100,currentLoadSystem:(a-We.system)/D*100,currentLoadNice:(u-We.nice)/D*100,currentLoadIdle:(c-We.idle)/D*100,currentLoadIrq:(l-We.irq)/D*100,currentLoadSteal:(f-We.steal)/D*100,currentLoadGuest:(p-We.guest)/D*100,rawCurrentLoad:y-We.load,rawCurrentLoadUser:o-We.user,rawCurrentLoadSystem:a-We.system,rawCurrentLoadNice:u-We.nice,rawCurrentLoadIdle:c-We.idle,rawCurrentLoadIrq:l-We.irq,rawCurrentLoadSteal:f-We.steal,rawCurrentLoadGuest:p-We.guest,cpus:d},We={user:o,nice:u,system:a,idle:c,irq:l,steal:f,guest:p,tick:m,load:y,ms:We.ms,currentLoad:n.currentLoad,currentLoadUser:n.currentLoadUser,currentLoadSystem:n.currentLoadSystem,currentLoadNice:n.currentLoadNice,currentLoadIdle:n.currentLoadIdle,currentLoadIrq:n.currentLoadIrq,currentLoadSteal:n.currentLoadSteal,currentLoadGuest:n.currentLoadGuest,rawCurrentLoad:n.rawCurrentLoad,rawCurrentLoadUser:n.rawCurrentLoadUser,rawCurrentLoadSystem:n.rawCurrentLoadSystem,rawCurrentLoadNice:n.rawCurrentLoadNice,rawCurrentLoadIdle:n.rawCurrentLoadIdle,rawCurrentLoadIrq:n.rawCurrentLoadIrq,rawCurrentLoadSteal:n.rawCurrentLoadSteal,rawCurrentLoadGuest:n.rawCurrentLoadGuest}}else{let s=[];for(let o=0;o<p1;o++)s[o]={},s[o].load=$[o].load/$[o].currentTick*100,s[o].loadUser=$[o].loadUser/$[o].currentTick*100,s[o].loadSystem=$[o].loadSystem/$[o].currentTick*100,s[o].loadNice=$[o].loadNice/$[o].currentTick*100,s[o].loadIdle=$[o].loadIdle/$[o].currentTick*100,s[o].loadIrq=$[o].loadIrq/$[o].currentTick*100,s[o].rawLoad=$[o].load,s[o].rawLoadUser=$[o].loadUser,s[o].rawLoadSystem=$[o].loadSystem,s[o].rawLoadNice=$[o].loadNice,s[o].rawLoadIdle=$[o].loadIdle,s[o].rawLoadIrq=$[o].loadIrq,s[o].rawLoadSteal=$[o].loadSteal,s[o].rawLoadGuest=$[o].loadGuest;n={avgLoad:r,currentLoad:We.currentLoad,currentLoadUser:We.currentLoadUser,currentLoadSystem:We.currentLoadSystem,currentLoadNice:We.currentLoadNice,currentLoadIdle:We.currentLoadIdle,currentLoadIrq:We.currentLoadIrq,currentLoadSteal:We.currentLoadSteal,currentLoadGuest:We.currentLoadGuest,rawCurrentLoad:We.rawCurrentLoad,rawCurrentLoadUser:We.rawCurrentLoadUser,rawCurrentLoadSystem:We.rawCurrentLoadSystem,rawCurrentLoadNice:We.rawCurrentLoadNice,rawCurrentLoadIdle:We.rawCurrentLoadIdle,rawCurrentLoadIrq:We.rawCurrentLoadIrq,rawCurrentLoadSteal:We.rawCurrentLoadSteal,rawCurrentLoadGuest:We.rawCurrentLoadGuest,cpus:s}}e(n)})})}function lG(e){return new Promise(t=>{process.nextTick(()=>{uG().then(r=>{e&&e(r),t(r)})})})}mo.currentLoad=lG;function cG(){return new Promise(e=>{process.nextTick(()=>{let t=hi.cpus(),r=0,n=0,i=0,s=0,o=0,a=0;if(t&&t.length){for(let l=0,c=t.length;l<c;l++){let f=t[l].times;r+=f.user,n+=f.sys,i+=f.nice,s+=f.irq,o+=f.idle}let u=o+s+i+n+r;a=(u-o)/u*100}e(a)})})}function fG(e){return new Promise(t=>{process.nextTick(()=>{cG().then(r=>{e&&e(r),t(r)})})})}mo.fullLoad=fG});var jA=N(D1=>{"use strict";var Ui=V("os"),Mf=V("child_process").exec,gh=V("child_process").execSync,ie=Mt(),pG=V("fs"),ho=process.platform,PA=ho==="linux"||ho==="android",LA=ho==="darwin",NA=ho==="win32",RA=ho==="freebsd",BA=ho==="openbsd",kA=ho==="netbsd",MA=ho==="sunos",IA={"0x014F":"Transcend Information","0x2C00":"Micron Technology Inc.","0x802C":"Micron Technology Inc.","0x80AD":"Hynix Semiconductor Inc.","0x80CE":"Samsung Electronics Inc.","0xAD00":"Hynix Semiconductor Inc.","0xCE00":"Samsung Electronics Inc.","0x02FE":"Elpida","0x5105":"Qimonda AG i. In.","0x8551":"Qimonda AG i. In.","0x859B":"Crucial","0x04CD":"G-Skill"},TA={"017A":"Apacer","0198":"HyperX","029E":"Corsair","04CB":"A-DATA","04CD":"G-Skill","059B":"Crucial","00CE":"Samsung",1315:"Crucial","014F":"Transcend Information","2C00":"Micron Technology Inc.","802C":"Micron Technology Inc.","80AD":"Hynix Semiconductor Inc.","80CE":"Samsung Electronics Inc.",AD00:"Hynix Semiconductor Inc.",CE00:"Samsung Electronics Inc.","02FE":"Elpida",5105:"Qimonda AG i. In.",8551:"Qimonda AG i. In.","859B":"Crucial"};function dG(e){return new Promise(t=>{process.nextTick(()=>{let r={total:Ui.totalmem(),free:Ui.freemem(),used:Ui.totalmem()-Ui.freemem(),active:Ui.totalmem()-Ui.freemem(),available:Ui.freemem(),buffers:0,cached:0,slab:0,buffcache:0,swaptotal:0,swapused:0,swapfree:0,writeback:null,dirty:null};if(PA)try{pG.readFile("/proc/meminfo",function(n,i){if(!n){let s=i.toString().split(`
|
|
134
|
+
`);r.total=parseInt(ie.getValue(s,"memtotal"),10),r.total=r.total?r.total*1024:Ui.totalmem(),r.free=parseInt(ie.getValue(s,"memfree"),10),r.free=r.free?r.free*1024:Ui.freemem(),r.used=r.total-r.free,r.buffers=parseInt(ie.getValue(s,"buffers"),10),r.buffers=r.buffers?r.buffers*1024:0,r.cached=parseInt(ie.getValue(s,"cached"),10),r.cached=r.cached?r.cached*1024:0,r.slab=parseInt(ie.getValue(s,"slab"),10),r.slab=r.slab?r.slab*1024:0,r.buffcache=r.buffers+r.cached+r.slab;let o=parseInt(ie.getValue(s,"memavailable"),10);r.available=o?o*1024:r.free+r.buffcache,r.active=r.total-r.available,r.swaptotal=parseInt(ie.getValue(s,"swaptotal"),10),r.swaptotal=r.swaptotal?r.swaptotal*1024:0,r.swapfree=parseInt(ie.getValue(s,"swapfree"),10),r.swapfree=r.swapfree?r.swapfree*1024:0,r.swapused=r.swaptotal-r.swapfree,r.writeback=parseInt(ie.getValue(s,"writeback"),10),r.writeback=r.writeback?r.writeback*1024:0,r.dirty=parseInt(ie.getValue(s,"dirty"),10),r.dirty=r.dirty?r.dirty*1024:0}e&&e(r),t(r)})}catch{e&&e(r),t(r)}if(RA||BA||kA)try{Mf("/sbin/sysctl hw.realmem hw.physmem vm.stats.vm.v_page_count vm.stats.vm.v_wire_count vm.stats.vm.v_active_count vm.stats.vm.v_inactive_count vm.stats.vm.v_cache_count vm.stats.vm.v_free_count vm.stats.vm.v_page_size",function(n,i){if(!n){let s=i.toString().split(`
|
|
135
135
|
`),o=parseInt(ie.getValue(s,"vm.stats.vm.v_page_size"),10),a=parseInt(ie.getValue(s,"vm.stats.vm.v_inactive_count"),10)*o,u=parseInt(ie.getValue(s,"vm.stats.vm.v_cache_count"),10)*o;r.total=parseInt(ie.getValue(s,"hw.realmem"),10),isNaN(r.total)&&(r.total=parseInt(ie.getValue(s,"hw.physmem"),10)),r.free=parseInt(ie.getValue(s,"vm.stats.vm.v_free_count"),10)*o,r.buffcache=a+u,r.available=r.buffcache+r.free,r.active=r.total-r.free-r.buffcache,r.swaptotal=0,r.swapfree=0,r.swapused=0}e&&e(r),t(r)})}catch{e&&e(r),t(r)}if(MA&&(e&&e(r),t(r)),LA){let n=4096;try{n=ie.toInt(gh("sysctl -n vm.pagesize").toString())||n}catch{ie.noop()}try{Mf('vm_stat 2>/dev/null | grep "Pages active"',function(i,s){if(!i){let o=s.toString().split(`
|
|
136
136
|
`);r.active=parseInt(o[0].split(":")[1],10)*n,r.buffcache=r.used-r.active,r.available=r.free+r.buffcache}Mf("sysctl -n vm.swapusage 2>/dev/null",function(o,a){if(!o){let u=a.toString().split(`
|
|
137
137
|
`);u.length>0&&u[0].replace(/,/g,".").replace(/M/g,"").trim().split(" ").forEach(f=>{f.toLowerCase().indexOf("total")!==-1&&(r.swaptotal=parseFloat(f.split("=")[1].trim())*1024*1024),f.toLowerCase().indexOf("used")!==-1&&(r.swapused=parseFloat(f.split("=")[1].trim())*1024*1024),f.toLowerCase().indexOf("free")!==-1&&(r.swapfree=parseFloat(f.split("=")[1].trim())*1024*1024)})}e&&e(r),t(r)})})}catch{e&&e(r),t(r)}}if(NA){let n=0,i=0;try{ie.powerShell("Get-CimInstance Win32_PageFileUsage | Select AllocatedBaseSize, CurrentUsage").then((s,o)=>{o||s.split(`\r
|
|
138
138
|
`).filter(u=>u.trim()!=="").filter((u,l)=>l>0).forEach(function(u){u!==""&&(u=u.trim().split(/\s\s+/),n=n+(parseInt(u[0],10)||0),i=i+(parseInt(u[1],10)||0))}),r.swaptotal=n*1024*1024,r.swapused=i*1024*1024,r.swapfree=r.swaptotal-r.swapused,e&&e(r),t(r)})}catch{e&&e(r),t(r)}}})})}D1.mem=dG;function mG(e){function t(n){return{}.hasOwnProperty.call(IA,n)?IA[n]:n}function r(n){let i=n.replace("0x","").toUpperCase();return i.length===4&&{}.hasOwnProperty.call(TA,i)?TA[i]:n}return new Promise(n=>{process.nextTick(()=>{let i=[];if((PA||RA||BA||kA)&&Mf('export LC_ALL=C; dmidecode -t memory 2>/dev/null | grep -iE "Size:|Type|Speed|Manufacturer|Form Factor|Locator|Memory Device|Serial Number|Voltage|Part Number"; unset LC_ALL',function(s,o){if(!s){let a=o.toString().split("Memory Device");a.shift(),a.forEach(function(u){let l=u.split(`
|
|
139
|
-
`),c=ie.getValue(l,"Size"),f=c.indexOf("GB")>=0?parseInt(c,10)*1024*1024*1024:parseInt(c,10)*1024*1024,p=ie.getValue(l,"Bank Locator");if(p.toLowerCase().indexOf("bad")>=0&&(p=""),parseInt(ie.getValue(l,"Size"),10)>0){let d=ie.toInt(ie.getValue(l,"Total Width")),m=ie.toInt(ie.getValue(l,"Data Width"));i.push({size:f,bank:p,type:ie.getValue(l,"Type:"),ecc:m&&d?d>m:!1,clockSpeed:ie.getValue(l,"Configured Clock Speed:")?parseInt(ie.getValue(l,"Configured Clock Speed:"),10):ie.getValue(l,"Speed:")?parseInt(ie.getValue(l,"Speed:"),10):null,formFactor:ie.getValue(l,"Form Factor:"),manufacturer:r(ie.getValue(l,"Manufacturer:")),partNum:ie.getValue(l,"Part Number:"),serialNum:ie.getValue(l,"Serial Number:"),voltageConfigured:parseFloat(ie.getValue(l,"Configured Voltage:"))||null,voltageMin:parseFloat(ie.getValue(l,"Minimum Voltage:"))||null,voltageMax:parseFloat(ie.getValue(l,"Maximum Voltage:"))||null})}else i.push({size:0,bank:p,type:"Empty",ecc:null,clockSpeed:0,formFactor:ie.getValue(l,"Form Factor:"),partNum:"",serialNum:"",voltageConfigured:null,voltageMin:null,voltageMax:null})})}if(!i.length){i.push({size
|
|
139
|
+
`),c=ie.getValue(l,"Size"),f=c.indexOf("GB")>=0?parseInt(c,10)*1024*1024*1024:parseInt(c,10)*1024*1024,p=ie.getValue(l,"Bank Locator");if(p.toLowerCase().indexOf("bad")>=0&&(p=""),parseInt(ie.getValue(l,"Size"),10)>0){let d=ie.toInt(ie.getValue(l,"Total Width")),m=ie.toInt(ie.getValue(l,"Data Width"));i.push({size:f,bank:p,type:ie.getValue(l,"Type:"),ecc:m&&d?d>m:!1,clockSpeed:ie.getValue(l,"Configured Clock Speed:")?parseInt(ie.getValue(l,"Configured Clock Speed:"),10):ie.getValue(l,"Speed:")?parseInt(ie.getValue(l,"Speed:"),10):null,formFactor:ie.getValue(l,"Form Factor:"),manufacturer:r(ie.getValue(l,"Manufacturer:")),partNum:ie.getValue(l,"Part Number:"),serialNum:ie.getValue(l,"Serial Number:"),voltageConfigured:parseFloat(ie.getValue(l,"Configured Voltage:"))||null,voltageMin:parseFloat(ie.getValue(l,"Minimum Voltage:"))||null,voltageMax:parseFloat(ie.getValue(l,"Maximum Voltage:"))||null})}else i.push({size:0,bank:p,type:"Empty",ecc:null,clockSpeed:0,formFactor:ie.getValue(l,"Form Factor:"),partNum:"",serialNum:"",voltageConfigured:null,voltageMin:null,voltageMax:null})})}if(!i.length){i.push({size:Ui.totalmem(),bank:"",type:"",ecc:null,clockSpeed:0,formFactor:"",partNum:"",serialNum:"",voltageConfigured:null,voltageMin:null,voltageMax:null});try{let a=gh("cat /proc/cpuinfo 2>/dev/null",ie.execOptsLinux),u=a.toString().split(`
|
|
140
140
|
`),l=ie.getValue(u,"hardware",":",!0).toUpperCase(),c=ie.getValue(u,"revision",":",!0).toLowerCase();if(l==="BCM2835"||l==="BCM2708"||l==="BCM2709"||l==="BCM2835"||l==="BCM2837"){let f={0:400,1:450,2:450,3:3200};i[0].type="LPDDR2",i[0].type=c&&c[2]&&c[2]==="3"?"LPDDR4":i[0].type,i[0].ecc=!1,i[0].clockSpeed=c&&c[2]&&f[c[2]]||400,i[0].clockSpeed=c&&c[4]&&c[4]==="d"?500:i[0].clockSpeed,i[0].formFactor="SoC",a=gh("vcgencmd get_config sdram_freq 2>/dev/null",ie.execOptsLinux),u=a.toString().split(`
|
|
141
141
|
`);let p=parseInt(ie.getValue(u,"sdram_freq","=",!0),10)||0;p&&(i[0].clockSpeed=p),a=gh("vcgencmd measure_volts sdram_p 2>/dev/null",ie.execOptsLinux),u=a.toString().split(`
|
|
142
142
|
`);let d=parseFloat(ie.getValue(u,"volt","=",!0))||0;d&&(i[0].voltageConfigured=d,i[0].voltageMin=d,i[0].voltageMax=d)}}catch{ie.noop()}}e&&e(i),n(i)}),LA&&Mf("system_profiler SPMemoryDataType",function(s,o){if(!s){let a=o.toString().split(`
|
|
143
143
|
`),u=ie.getValue(a,"ecc",":",!0).toLowerCase(),l=o.toString().split(" BANK "),c=!0;l.length===1&&(l=o.toString().split(" DIMM"),c=!1),l.shift(),l.forEach(function(f){let p=f.split(`
|
|
144
144
|
`),d=(c?"BANK ":"DIMM")+p[0].trim().split("/")[0],m=parseInt(ie.getValue(p," Size"));m?i.push({size:m*1024*1024*1024,bank:d,type:ie.getValue(p," Type:"),ecc:u?u==="enabled":null,clockSpeed:parseInt(ie.getValue(p," Speed:"),10),formFactor:"",manufacturer:t(ie.getValue(p," Manufacturer:")),partNum:ie.getValue(p," Part Number:"),serialNum:ie.getValue(p," Serial Number:"),voltageConfigured:null,voltageMin:null,voltageMax:null}):i.push({size:0,bank:d,type:"Empty",ecc:null,clockSpeed:0,formFactor:"",manufacturer:"",partNum:"",serialNum:"",voltageConfigured:null,voltageMin:null,voltageMax:null})})}if(!i.length){let a=o.toString().split(`
|
|
145
145
|
`),u=parseInt(ie.getValue(a," Memory:")),l=ie.getValue(a," Type:");u&&l&&i.push({size:u*1024*1024*1024,bank:"0",type:l,ecc:!1,clockSpeed:0,formFactor:"",manufacturer:"Apple",partNum:"",serialNum:"",voltageConfigured:null,voltageMin:null,voltageMax:null})}e&&e(i),n(i)}),MA&&(e&&e(i),n(i)),NA){let s="Unknown|Other|DRAM|Synchronous DRAM|Cache DRAM|EDO|EDRAM|VRAM|SRAM|RAM|ROM|FLASH|EEPROM|FEPROM|EPROM|CDRAM|3DRAM|SDRAM|SGRAM|RDRAM|DDR|DDR2|DDR2 FB-DIMM|Reserved|DDR3|FBD2|DDR4|LPDDR|LPDDR2|LPDDR3|LPDDR4|Logical non-volatile device|HBM|HBM2|DDR5|LPDDR5".split("|"),o="Unknown|Other|SIP|DIP|ZIP|SOJ|Proprietary|SIMM|DIMM|TSOP|PGA|RIMM|SODIMM|SRIMM|SMD|SSMP|QFP|TQFP|SOIC|LCC|PLCC|BGA|FPBGA|LGA".split("|");try{ie.powerShell("Get-CimInstance Win32_PhysicalMemory | select DataWidth,TotalWidth,Capacity,BankLabel,MemoryType,SMBIOSMemoryType,ConfiguredClockSpeed,FormFactor,Manufacturer,PartNumber,SerialNumber,ConfiguredVoltage,MinVoltage,MaxVoltage,Tag | fl").then((a,u)=>{if(!u){let l=a.toString().split(/\n\s*\n/);l.shift(),l.forEach(function(c){let f=c.split(`\r
|
|
146
|
-
`),p=ie.toInt(ie.getValue(f,"DataWidth",":")),d=ie.toInt(ie.getValue(f,"TotalWidth",":")),m=parseInt(ie.getValue(f,"Capacity",":"),10)||0,y=ie.getValue(f,"Tag",":"),D=ie.splitByNumber(y);m&&i.push({size:m,bank:ie.getValue(f,"BankLabel",":")+(D[1]?"/"+D[1]:""),type:s[parseInt(ie.getValue(f,"MemoryType",":"),10)||parseInt(ie.getValue(f,"SMBIOSMemoryType",":"),10)],ecc:p&&d?d>p:!1,clockSpeed:parseInt(ie.getValue(f,"ConfiguredClockSpeed",":"),10)||parseInt(ie.getValue(f,"Speed",":"),10)||0,formFactor:o[parseInt(ie.getValue(f,"FormFactor",":"),10)||0],manufacturer:ie.getValue(f,"Manufacturer",":"),partNum:ie.getValue(f,"PartNumber",":"),serialNum:ie.getValue(f,"SerialNumber",":"),voltageConfigured:(parseInt(ie.getValue(f,"ConfiguredVoltage",":"),10)||0)/1e3,voltageMin:(parseInt(ie.getValue(f,"MinVoltage",":"),10)||0)/1e3,voltageMax:(parseInt(ie.getValue(f,"MaxVoltage",":"),10)||0)/1e3})})}e&&e(i),n(i)})}catch{e&&e(i),n(i)}}})})}D1.memLayout=mG});var $A=N((
|
|
146
|
+
`),p=ie.toInt(ie.getValue(f,"DataWidth",":")),d=ie.toInt(ie.getValue(f,"TotalWidth",":")),m=parseInt(ie.getValue(f,"Capacity",":"),10)||0,y=ie.getValue(f,"Tag",":"),D=ie.splitByNumber(y);m&&i.push({size:m,bank:ie.getValue(f,"BankLabel",":")+(D[1]?"/"+D[1]:""),type:s[parseInt(ie.getValue(f,"MemoryType",":"),10)||parseInt(ie.getValue(f,"SMBIOSMemoryType",":"),10)],ecc:p&&d?d>p:!1,clockSpeed:parseInt(ie.getValue(f,"ConfiguredClockSpeed",":"),10)||parseInt(ie.getValue(f,"Speed",":"),10)||0,formFactor:o[parseInt(ie.getValue(f,"FormFactor",":"),10)||0],manufacturer:ie.getValue(f,"Manufacturer",":"),partNum:ie.getValue(f,"PartNumber",":"),serialNum:ie.getValue(f,"SerialNumber",":"),voltageConfigured:(parseInt(ie.getValue(f,"ConfiguredVoltage",":"),10)||0)/1e3,voltageMin:(parseInt(ie.getValue(f,"MinVoltage",":"),10)||0)/1e3,voltageMax:(parseInt(ie.getValue(f,"MaxVoltage",":"),10)||0)/1e3})})}e&&e(i),n(i)})}catch{e&&e(i),n(i)}}})})}D1.memLayout=mG});var $A=N((gge,UA)=>{"use strict";var VA=V("child_process").exec,bl=V("fs"),ke=Mt(),go=process.platform,hG=go==="linux"||go==="android",gG=go==="darwin",yG=go==="win32",DG=go==="freebsd",vG=go==="openbsd",wG=go==="netbsd",CG=go==="sunos";function EG(e,t,r){let n={},i=ke.getValue(e,"BatteryStatus",":").trim();if(i>=0){let s=i?parseInt(i):0;n.status=s,n.hasBattery=!0,n.maxCapacity=r||parseInt(ke.getValue(e,"DesignCapacity",":")||0),n.designedCapacity=parseInt(ke.getValue(e,"DesignCapacity",":")||t),n.voltage=parseInt(ke.getValue(e,"DesignVoltage",":")||0)/1e3,n.capacityUnit="mWh",n.percent=parseInt(ke.getValue(e,"EstimatedChargeRemaining",":")||0),n.currentCapacity=parseInt(n.maxCapacity*n.percent/100),n.isCharging=s>=6&&s<=9||s===11||s!==3&&s!==1&&n.percent<100,n.acConnected=n.isCharging||s===2,n.model=ke.getValue(e,"DeviceID",":")}else n.status=-1;return n}UA.exports=function(e){return new Promise(t=>{process.nextTick(()=>{let r={hasBattery:!1,cycleCount:0,isCharging:!1,designedCapacity:0,maxCapacity:0,currentCapacity:0,voltage:0,capacityUnit:"",percent:0,timeRemaining:null,acConnected:!0,type:"",model:"",manufacturer:"",serial:""};if(hG){let n="";bl.existsSync("/sys/class/power_supply/BAT1/uevent")?n="/sys/class/power_supply/BAT1/":bl.existsSync("/sys/class/power_supply/BAT0/uevent")&&(n="/sys/class/power_supply/BAT0/");let i=!1,s="";bl.existsSync("/sys/class/power_supply/AC/online")?s="/sys/class/power_supply/AC/online":bl.existsSync("/sys/class/power_supply/AC0/online")&&(s="/sys/class/power_supply/AC0/online"),s&&(i=bl.readFileSync(s).toString().trim()==="1"),n?bl.readFile(n+"uevent",function(o,a){if(o)e&&e(r),t(r);else{let u=a.toString().split(`
|
|
147
147
|
`);r.isCharging=ke.getValue(u,"POWER_SUPPLY_STATUS","=").toLowerCase()==="charging",r.acConnected=i||r.isCharging,r.voltage=parseInt("0"+ke.getValue(u,"POWER_SUPPLY_VOLTAGE_NOW","="),10)/1e6,r.capacityUnit=r.voltage?"mWh":"mAh",r.cycleCount=parseInt("0"+ke.getValue(u,"POWER_SUPPLY_CYCLE_COUNT","="),10),r.maxCapacity=Math.round(parseInt("0"+ke.getValue(u,"POWER_SUPPLY_CHARGE_FULL","=",!0,!0),10)/1e3*(r.voltage||1));let l=parseInt("0"+ke.getValue(u,"POWER_SUPPLY_VOLTAGE_MIN_DESIGN","="),10)/1e6;r.designedCapacity=Math.round(parseInt("0"+ke.getValue(u,"POWER_SUPPLY_CHARGE_FULL_DESIGN","=",!0,!0),10)/1e3*(l||r.voltage||1)),r.currentCapacity=Math.round(parseInt("0"+ke.getValue(u,"POWER_SUPPLY_CHARGE_NOW","="),10)/1e3*(r.voltage||1)),r.maxCapacity||(r.maxCapacity=parseInt("0"+ke.getValue(u,"POWER_SUPPLY_ENERGY_FULL","=",!0,!0),10)/1e3,r.designedCapacity=parseInt("0"+ke.getValue(u,"POWER_SUPPLY_ENERGY_FULL_DESIGN","=",!0,!0),10)/1e3|r.maxCapacity,r.currentCapacity=parseInt("0"+ke.getValue(u,"POWER_SUPPLY_ENERGY_NOW","="),10)/1e3);let c=ke.getValue(u,"POWER_SUPPLY_CAPACITY","="),f=parseInt("0"+ke.getValue(u,"POWER_SUPPLY_ENERGY_NOW","="),10),p=parseInt("0"+ke.getValue(u,"POWER_SUPPLY_POWER_NOW","="),10),d=parseInt("0"+ke.getValue(u,"POWER_SUPPLY_CURRENT_NOW","="),10),m=parseInt("0"+ke.getValue(u,"POWER_SUPPLY_CHARGE_NOW","="),10);r.percent=parseInt("0"+c,10),r.maxCapacity&&r.currentCapacity&&(r.hasBattery=!0,c||(r.percent=100*r.currentCapacity/r.maxCapacity)),r.isCharging&&(r.hasBattery=!0),f&&p?r.timeRemaining=Math.floor(f/p*60):d&&m?r.timeRemaining=Math.floor(m/d*60):d&&r.currentCapacity&&(r.timeRemaining=Math.floor(r.currentCapacity/d*60)),r.type=ke.getValue(u,"POWER_SUPPLY_TECHNOLOGY","="),r.model=ke.getValue(u,"POWER_SUPPLY_MODEL_NAME","="),r.manufacturer=ke.getValue(u,"POWER_SUPPLY_MANUFACTURER","="),r.serial=ke.getValue(u,"POWER_SUPPLY_SERIAL_NUMBER","="),e&&e(r),t(r)}}):(e&&e(r),t(r))}if((DG||vG||wG)&&VA("sysctl -i hw.acpi.battery hw.acpi.acline",function(n,i){let s=i.toString().split(`
|
|
148
148
|
`),o=parseInt("0"+ke.getValue(s,"hw.acpi.battery.units"),10),a=parseInt("0"+ke.getValue(s,"hw.acpi.battery.life"),10);r.hasBattery=o>0,r.cycleCount=null,r.isCharging=ke.getValue(s,"hw.acpi.acline")!=="1",r.acConnected=r.isCharging,r.maxCapacity=null,r.currentCapacity=null,r.capacityUnit="unknown",r.percent=o?a:null,e&&e(r),t(r)}),gG&&VA('ioreg -n AppleSmartBattery -r | egrep "CycleCount|IsCharging|DesignCapacity|MaxCapacity|CurrentCapacity|BatterySerialNumber|TimeRemaining|Voltage"; pmset -g batt | grep %',function(n,i){if(i){let s=i.toString().replace(/ +/g,"").replace(/"+/g,"").replace(/-/g,"").split(`
|
|
149
149
|
`);r.cycleCount=parseInt("0"+ke.getValue(s,"cyclecount","="),10),r.voltage=parseInt("0"+ke.getValue(s,"voltage","="),10)/1e3,r.capacityUnit=r.voltage?"mWh":"mAh",r.maxCapacity=Math.round(parseInt("0"+ke.getValue(s,"applerawmaxcapacity","="),10)*(r.voltage||1)),r.currentCapacity=Math.round(parseInt("0"+ke.getValue(s,"applerawcurrentcapacity","="),10)*(r.voltage||1)),r.designedCapacity=Math.round(parseInt("0"+ke.getValue(s,"DesignCapacity","="),10)*(r.voltage||1)),r.manufacturer="Apple",r.serial=ke.getValue(s,"BatterySerialNumber","=");let o=null,u=ke.getValue(s,"internal","Battery").split(";");if(u&&u[0]){let l=u[0].split(" ");l&&l[1]&&(o=parseFloat(l[1].trim().replace(/%/g,"")))}u&&u[1]?(r.isCharging=u[1].trim()==="charging",r.acConnected=u[1].trim()!=="discharging"):(r.isCharging=ke.getValue(s,"ischarging","=").toLowerCase()==="yes",r.acConnected=r.isCharging),r.maxCapacity&&r.currentCapacity&&(r.hasBattery=!0,r.type="Li-ion",r.percent=o!==null?o:Math.round(100*r.currentCapacity/r.maxCapacity),r.isCharging||(r.timeRemaining=parseInt("0"+ke.getValue(s,"TimeRemaining","="),10)))}e&&e(r),t(r)}),CG&&(e&&e(r),t(r)),yG)try{let n=[];n.push(ke.powerShell("Get-CimInstance Win32_Battery | select BatteryStatus, DesignCapacity, DesignVoltage, EstimatedChargeRemaining, DeviceID | fl")),n.push(ke.powerShell("(Get-WmiObject -Class BatteryStaticData -Namespace ROOT/WMI).DesignedCapacity")),n.push(ke.powerShell("(Get-CimInstance -Class BatteryFullChargedCapacity -Namespace ROOT/WMI).FullChargedCapacity")),ke.promiseAll(n).then(i=>{if(i){let s=i.results[0].split(/\n\s*\n/),o=[],a=c=>/\S/.test(c);for(let c=0;c<s.length;c++)a(s[c])&&(!o.length||!a(s[c-1]))&&o.push([]),a(s[c])&&o[o.length-1].push(s[c]);let u=i.results[1].split(`\r
|
|
@@ -305,20 +305,20 @@ Interface `);return n.shift(),n.forEach(i=>{let s=i.split(`
|
|
|
305
305
|
`).split(`:\r
|
|
306
306
|
\r
|
|
307
307
|
`);o.shift(),o.forEach(a=>{let u=a.split(`\r
|
|
308
|
-
`);if(u.length>=5){let l=u[0].indexOf(":")>=0?u[0].split(":")[1].trim():"",c=u[1].indexOf(":")>=0?u[1].split(":")[1].trim():"",f=u[2].indexOf(":")>=0?u[2].split(":")[1].trim():"",p=u[3].indexOf(":")>=0?u[3].split(":"):[];p.shift();let d=p.join(":").trim(),m=Eq(c);l&&c&&f&&d&&r.push({id:f,iface:l,model:c,vendor:m,mac:d})}}),e&&e(r),t(r)}):(e&&e(r),t(r))})})}bh.wifiInterfaces=xq});var hI=N(Ah=>{"use strict";var Fh=V("os"),_q=V("fs"),bq=V("path"),qf=V("child_process").exec,F1=V("child_process").execSync,Ae=Mt(),bo=process.platform
|
|
308
|
+
`);if(u.length>=5){let l=u[0].indexOf(":")>=0?u[0].split(":")[1].trim():"",c=u[1].indexOf(":")>=0?u[1].split(":")[1].trim():"",f=u[2].indexOf(":")>=0?u[2].split(":")[1].trim():"",p=u[3].indexOf(":")>=0?u[3].split(":"):[];p.shift();let d=p.join(":").trim(),m=Eq(c);l&&c&&f&&d&&r.push({id:f,iface:l,model:c,vendor:m,mac:d})}}),e&&e(r),t(r)}):(e&&e(r),t(r))})})}bh.wifiInterfaces=xq});var hI=N(Ah=>{"use strict";var Fh=V("os"),_q=V("fs"),bq=V("path"),qf=V("child_process").exec,F1=V("child_process").execSync,Ae=Mt(),bo=process.platform,$i=bo==="linux"||bo==="android",Za=bo==="darwin",A1=bo==="win32",zf=bo==="freebsd",Hf=bo==="openbsd",Yf=bo==="netbsd",Oh=bo==="sunos",Wt={all:0,all_utime:0,all_stime:0,list:{},ms:0,result:{}},Nl={all:0,all_utime:0,all_stime:0,list:{},ms:0,result:{}},qr={all:0,all_utime:0,all_stime:0,list:{},ms:0,result:{}},dI={0:"unknown",1:"other",2:"ready",3:"running",4:"blocked",5:"suspended blocked",6:"suspended ready",7:"terminated",8:"stopped",9:"growing"};function Oq(e){let t=e,r=e.replace(/ +/g," ").split(" ");return r.length===5&&(t=r[4]+"-"+("0"+("JANFEBMARAPRMAYJUNJULAUGSEPOCTNOVDEC".indexOf(r[1].toUpperCase())/3+1)).slice(-2)+"-"+("0"+r[2]).slice(-2)+" "+r[3]),t}function Fq(e){let t=new Date;t=new Date(t.getTime()-t.getTimezoneOffset()*6e4);let r=e.split("-"),n=r.length-1,i=n>0?parseInt(r[n-1]):0,s=r[n].split(":"),o=s.length===3?parseInt(s[0]||0):0,a=parseInt(s[s.length===3?1:0]||0),u=parseInt(s[s.length===3?2:1]||0),l=(((i*24+o)*60+a)*60+u)*1e3,c=new Date(t.getTime()),f=c.toISOString().substring(0,10)+" "+c.toISOString().substring(11,19);try{c=new Date(t.getTime()-l),f=c.toISOString().substring(0,10)+" "+c.toISOString().substring(11,19)}catch{Ae.noop()}return f}function Aq(e,t){return Ae.isFunction(e)&&!t&&(t=e,e=""),new Promise(r=>{process.nextTick(()=>{if(typeof e!="string")return t&&t([]),r([]);if(e){let n="";n.__proto__.toLowerCase=Ae.stringToLower,n.__proto__.replace=Ae.stringReplace,n.__proto__.trim=Ae.stringTrim;let i=Ae.sanitizeShellString(e),s=Ae.mathMin(i.length,2e3);for(let l=0;l<=s;l++)i[l]!==void 0&&(n=n+i[l]);n=n.trim().toLowerCase().replace(/, /g,"|").replace(/,+/g,"|"),n===""&&(n="*"),Ae.isPrototypePolluted()&&n!=="*"&&(n="------");let o=n.split("|"),a=[],u=[];if($i||zf||Hf||Yf||Za){if(($i||zf||Hf||Yf)&&n==="*")try{let c=F1("systemctl --all --type=service --no-legend 2> /dev/null",Ae.execOptsLinux).toString().split(`
|
|
309
309
|
`);o=[];for(let f of c){let p=f.split(".service")[0];p&&f.indexOf(" not-found ")===-1&&o.push(p.trim())}n=o.join("|")}catch{try{n="";let f=F1("service --status-all 2> /dev/null",Ae.execOptsLinux).toString().split(`
|
|
310
310
|
`);for(let p of f){let d=p.split("]");d.length===2&&(n+=(n!==""?"|":"")+d[1].trim())}o=n.split("|")}catch{try{let p=F1("ls /etc/init.d/ -m 2> /dev/null",Ae.execOptsLinux).toString().split(`
|
|
311
311
|
`).join("");if(n="",p){let d=p.split(",");for(let m of d){let y=m.trim();y&&(n+=(n!==""?"|":"")+y)}o=n.split("|")}}catch{n="",o=[]}}}Za&&n==="*"&&(t&&t(a),r(a));let l=Za?["-caxo","pcpu,pmem,pid,command"]:["-axo","pcpu,pmem,pid,command"];n!==""&&o.length>0?Ae.execSafe("ps",l).then(c=>{if(c){let f=c.replace(/ +/g," ").replace(/,+/g,".").split(`
|
|
312
|
-
`);if(o.forEach(function(p){let d;Za?d=f.filter(function(y){return y.toLowerCase().indexOf(p)!==-1}):d=f.filter(function(y){return y.toLowerCase().indexOf(" "+p.toLowerCase()+":")!==-1||y.toLowerCase().indexOf("/"+p.toLowerCase())!==-1});let m=[];for(let y of d){let D=y.trim().split(" ")[2];D&&m.push(parseInt(D,10))}a.push({name:p,running:d.length>0,startmode:"",pids:m,cpu:parseFloat(d.reduce(function(y,D){return y+parseFloat(D.trim().split(" ")[0])},0).toFixed(2)),mem:parseFloat(d.reduce(function(y,D){return y+parseFloat(D.trim().split(" ")[1])},0).toFixed(2))})})
|
|
312
|
+
`);if(o.forEach(function(p){let d;Za?d=f.filter(function(y){return y.toLowerCase().indexOf(p)!==-1}):d=f.filter(function(y){return y.toLowerCase().indexOf(" "+p.toLowerCase()+":")!==-1||y.toLowerCase().indexOf("/"+p.toLowerCase())!==-1});let m=[];for(let y of d){let D=y.trim().split(" ")[2];D&&m.push(parseInt(D,10))}a.push({name:p,running:d.length>0,startmode:"",pids:m,cpu:parseFloat(d.reduce(function(y,D){return y+parseFloat(D.trim().split(" ")[0])},0).toFixed(2)),mem:parseFloat(d.reduce(function(y,D){return y+parseFloat(D.trim().split(" ")[1])},0).toFixed(2))})}),$i){let p='cat /proc/stat | grep "cpu "';for(let d in a)for(let m in a[d].pids)p+=";cat /proc/"+a[d].pids[m]+"/stat";qf(p,{maxBuffer:1024*2e4},function(d,m){let y=m.toString().split(`
|
|
313
313
|
`),D=I1(y.shift()),h={},g={};y.forEach(v=>{if(g=T1(v,D,Nl),g.pid){let w=-1;for(let E in a)for(let I in a[E].pids)parseInt(a[E].pids[I])===parseInt(g.pid)&&(w=E);w>=0&&(a[w].cpu+=g.cpuu+g.cpus),h[g.pid]={cpuu:g.cpuu,cpus:g.cpus,utime:g.utime,stime:g.stime,cutime:g.cutime,cstime:g.cstime}}}),Nl.all=D,Nl.list=Object.assign({},h),Nl.ms=Date.now()-Nl.ms,Nl.result=Object.assign({},a),t&&t(a),r(a)})}else t&&t(a),r(a)}else l=["-o","comm"],Ae.execSafe("ps",l).then(f=>{if(f){let p=f.replace(/ +/g," ").replace(/,+/g,".").split(`
|
|
314
314
|
`);o.forEach(function(d){let m=p.filter(function(y){return y.indexOf(d)!==-1});a.push({name:d,running:m.length>0,startmode:"",cpu:0,mem:0})}),t&&t(a),r(a)}else o.forEach(function(p){a.push({name:p,running:!1,startmode:"",cpu:0,mem:0})}),t&&t(a),r(a)})}):(t&&t(a),r(a))}if(A1)try{let l="Get-CimInstance Win32_Service";o[0]!=="*"&&(l+=' -Filter "',o.forEach(c=>{l+=`Name='${c}' or `}),l=`${l.slice(0,-4)}"`),l+=" | select Name,Caption,Started,StartMode,ProcessId | fl",Ae.powerShell(l).then((c,f)=>{f?(o.forEach(function(p){a.push({name:p,running:!1,startmode:"",cpu:0,mem:0})}),t&&t(a),r(a)):(c.split(/\n\s*\n/).forEach(d=>{if(d.trim()!==""){let m=d.trim().split(`\r
|
|
315
|
-
`),y=Ae.getValue(m,"Name",":",!0).toLowerCase(),D=Ae.getValue(m,"Caption",":",!0).toLowerCase(),h=Ae.getValue(m,"Started",":",!0),g=Ae.getValue(m,"StartMode",":",!0),v=Ae.getValue(m,"ProcessId",":",!0);(n==="*"||o.indexOf(y)>=0||o.indexOf(D)>=0)&&(a.push({name:y,running:h.toLowerCase()==="true",startmode:g,pids:[v],cpu:0,mem:0}),u.push(y),u.push(D))}}),n!=="*"&&o.filter(function(m){return u.indexOf(m)===-1}).forEach(function(m){a.push({name:m,running:!1,startmode:"",pids:[],cpu:0,mem:0})}),t&&t(a),r(a))})}catch{t&&t(a),r(a)}}else t&&t([]),r([])})})}Ah.services=Aq;function I1(e){let t=e.replace(/ +/g," ").split(" "),r=t.length>=2?parseInt(t[1]):0,n=t.length>=3?parseInt(t[2]):0,i=t.length>=4?parseInt(t[3]):0,s=t.length>=5?parseInt(t[4]):0,o=t.length>=6?parseInt(t[5]):0,a=t.length>=7?parseInt(t[6]):0,u=t.length>=8?parseInt(t[7]):0,l=t.length>=9?parseInt(t[8]):0,c=t.length>=10?parseInt(t[9]):0,f=t.length>=11?parseInt(t[10]):0;return r+n+i+s+o+a+u+l+c+f}function T1(e,t,r){let n=e.replace(/ +/g," ").split(")");if(n.length>=2){let i=n[1].split(" ");if(i.length>=16){let s=parseInt(n[0].split(" ")[0]),o=parseInt(i[12]),a=parseInt(i[13]),u=parseInt(i[14]),l=parseInt(i[15]),c=0,f=0;return r.all>0&&r.list[s]?(c=(o+u-r.list[s].utime-r.list[s].cutime)/(t-r.all)*100,f=(a+l-r.list[s].stime-r.list[s].cstime)/(t-r.all)*100):(c=(o+u)/t*100,f=(a+l)/t*100),{pid:s,utime:o,stime:a,cutime:u,cstime:l,cpuu:c,cpus:f}}else return{pid:0,utime:0,stime:0,cutime:0,cstime:0,cpuu:0,cpus:0}}else return{pid:0,utime:0,stime:0,cutime:0,cstime:0,cpuu:0,cpus:0}}function mI(e,t,r){let n=0,i=0;return r.all>0&&r.list[e.pid]?(n=(e.utime-r.list[e.pid].utime)/(t-r.all)*100,i=(e.stime-r.list[e.pid].stime)/(t-r.all)*100):(n=e.utime/t*100,i=e.stime/t*100),{pid:e.pid,utime:e.utime,stime:e.stime,cpuu:n>0?n:0,cpus:i>0?i:0}}function Iq(e){let t=[];function r(o){o=o||"";let a=o.split(" ")[0];if(a.substr(-1)===":"&&(a=a.substr(0,a.length-1)),a.substr(0,1)!=="["){let u=a.split("/");isNaN(parseInt(u[u.length-1]))?a=u[u.length-1]:a=u[0]}return a}function n(o){let a=0,u=0;function l(T){a=u,t[T]?u=o.substring(t[T].to+a,1e4).indexOf(" "):u=1e4}l(0);let c=parseInt(o.substring(t[0].from+a,t[0].to+u));l(1);let f=parseInt(o.substring(t[1].from+a,t[1].to+u));l(2);let p=parseFloat(o.substring(t[2].from+a,t[2].to+u).replace(/,/g,"."));l(3);let d=parseFloat(o.substring(t[3].from+a,t[3].to+u).replace(/,/g,"."));l(4);let m=parseInt(o.substring(t[4].from+a,t[4].to+u));l(5);let y=parseInt(o.substring(t[5].from+a,t[5].to+u));l(6);let D=parseInt(o.substring(t[6].from+a,t[6].to+u));l(7);let h=parseInt(o.substring(t[7].from+a,t[7].to+u))||0;l(8);let g=Oh?Oq(o.substring(t[8].from+a,t[8].to+u).trim()):Fq(o.substring(t[8].from+a,t[8].to+u).trim());l(9);let v=o.substring(t[9].from+a,t[9].to+u).trim();v=v[0]==="R"?"running":v[0]==="S"?"sleeping":v[0]==="T"?"stopped":v[0]==="W"?"paging":v[0]==="X"?"dead":v[0]==="Z"?"zombie":v[0]==="D"||v[0]==="U"?"blocked":"unknown",l(10);let w=o.substring(t[10].from+a,t[10].to+u).trim();(w==="?"||w==="??")&&(w=""),l(11);let E=o.substring(t[11].from+a,t[11].to+u).trim();l(12);let I="",A="",W="",b=o.substring(t[12].from+a,t[12].to+u).trim();if(b.substr(b.length-1)==="]"&&(b=b.slice(0,-1)),b.substr(0,1)==="[")A=b.substring(1);else{let T=b.indexOf("("),F=b.indexOf(")"),k=b.indexOf("/"),R=b.indexOf(":");if(T<F&&T<k&&k<F)A=b.split(" ")[0],A=A.replace(/:/g,"");else if(R>0&&(k===-1||k>3))A=b.split(" ")[0],A=A.replace(/:/g,"");else{let q=b.indexOf(" -"),M=b.indexOf(" /");q=q>=0?q:1e4,M=M>=0?M:1e4;let ee=Math.min(q,M),G=b.substr(0,ee),re=b.substr(ee),ne=G.lastIndexOf("/");if(ne>=0&&(I=G.substr(0,ne),G=G.substr(ne+1)),ee===1e4&&G.indexOf(" ")>-1){let Ce=G.split(" ");_q.existsSync(bq.join(I,Ce[0]))?(A=Ce.shift(),W=(Ce.join(" ")+" "+re).trim()):(A=G.trim(),W=re.trim())}else A=G.trim(),W=re.trim()}}return{pid:c,parentPid:f,name
|
|
316
|
-
`)).slice(),a.all=a.list.length,a.running=a.list.filter(function(f){return f.state==="running"}).length,a.blocked=a.list.filter(function(f){return f.state==="blocked"}).length,a.sleeping=a.list.filter(function(f){return f.state==="sleeping"}).length
|
|
315
|
+
`),y=Ae.getValue(m,"Name",":",!0).toLowerCase(),D=Ae.getValue(m,"Caption",":",!0).toLowerCase(),h=Ae.getValue(m,"Started",":",!0),g=Ae.getValue(m,"StartMode",":",!0),v=Ae.getValue(m,"ProcessId",":",!0);(n==="*"||o.indexOf(y)>=0||o.indexOf(D)>=0)&&(a.push({name:y,running:h.toLowerCase()==="true",startmode:g,pids:[v],cpu:0,mem:0}),u.push(y),u.push(D))}}),n!=="*"&&o.filter(function(m){return u.indexOf(m)===-1}).forEach(function(m){a.push({name:m,running:!1,startmode:"",pids:[],cpu:0,mem:0})}),t&&t(a),r(a))})}catch{t&&t(a),r(a)}}else t&&t([]),r([])})})}Ah.services=Aq;function I1(e){let t=e.replace(/ +/g," ").split(" "),r=t.length>=2?parseInt(t[1]):0,n=t.length>=3?parseInt(t[2]):0,i=t.length>=4?parseInt(t[3]):0,s=t.length>=5?parseInt(t[4]):0,o=t.length>=6?parseInt(t[5]):0,a=t.length>=7?parseInt(t[6]):0,u=t.length>=8?parseInt(t[7]):0,l=t.length>=9?parseInt(t[8]):0,c=t.length>=10?parseInt(t[9]):0,f=t.length>=11?parseInt(t[10]):0;return r+n+i+s+o+a+u+l+c+f}function T1(e,t,r){let n=e.replace(/ +/g," ").split(")");if(n.length>=2){let i=n[1].split(" ");if(i.length>=16){let s=parseInt(n[0].split(" ")[0]),o=parseInt(i[12]),a=parseInt(i[13]),u=parseInt(i[14]),l=parseInt(i[15]),c=0,f=0;return r.all>0&&r.list[s]?(c=(o+u-r.list[s].utime-r.list[s].cutime)/(t-r.all)*100,f=(a+l-r.list[s].stime-r.list[s].cstime)/(t-r.all)*100):(c=(o+u)/t*100,f=(a+l)/t*100),{pid:s,utime:o,stime:a,cutime:u,cstime:l,cpuu:c,cpus:f}}else return{pid:0,utime:0,stime:0,cutime:0,cstime:0,cpuu:0,cpus:0}}else return{pid:0,utime:0,stime:0,cutime:0,cstime:0,cpuu:0,cpus:0}}function mI(e,t,r){let n=0,i=0;return r.all>0&&r.list[e.pid]?(n=(e.utime-r.list[e.pid].utime)/(t-r.all)*100,i=(e.stime-r.list[e.pid].stime)/(t-r.all)*100):(n=e.utime/t*100,i=e.stime/t*100),{pid:e.pid,utime:e.utime,stime:e.stime,cpuu:n>0?n:0,cpus:i>0?i:0}}function Iq(e){let t=[];function r(o){o=o||"";let a=o.split(" ")[0];if(a.substr(-1)===":"&&(a=a.substr(0,a.length-1)),a.substr(0,1)!=="["){let u=a.split("/");isNaN(parseInt(u[u.length-1]))?a=u[u.length-1]:a=u[0]}return a}function n(o){let a=0,u=0;function l(T){a=u,t[T]?u=o.substring(t[T].to+a,1e4).indexOf(" "):u=1e4}l(0);let c=parseInt(o.substring(t[0].from+a,t[0].to+u));l(1);let f=parseInt(o.substring(t[1].from+a,t[1].to+u));l(2);let p=parseFloat(o.substring(t[2].from+a,t[2].to+u).replace(/,/g,"."));l(3);let d=parseFloat(o.substring(t[3].from+a,t[3].to+u).replace(/,/g,"."));l(4);let m=parseInt(o.substring(t[4].from+a,t[4].to+u));l(5);let y=parseInt(o.substring(t[5].from+a,t[5].to+u));l(6);let D=parseInt(o.substring(t[6].from+a,t[6].to+u));l(7);let h=parseInt(o.substring(t[7].from+a,t[7].to+u))||0;l(8);let g=Oh?Oq(o.substring(t[8].from+a,t[8].to+u).trim()):Fq(o.substring(t[8].from+a,t[8].to+u).trim());l(9);let v=o.substring(t[9].from+a,t[9].to+u).trim();v=v[0]==="R"?"running":v[0]==="S"?"sleeping":v[0]==="T"?"stopped":v[0]==="W"?"paging":v[0]==="X"?"dead":v[0]==="Z"?"zombie":v[0]==="D"||v[0]==="U"?"blocked":"unknown",l(10);let w=o.substring(t[10].from+a,t[10].to+u).trim();(w==="?"||w==="??")&&(w=""),l(11);let E=o.substring(t[11].from+a,t[11].to+u).trim();l(12);let I="",A="",W="",b=o.substring(t[12].from+a,t[12].to+u).trim();if(b.substr(b.length-1)==="]"&&(b=b.slice(0,-1)),b.substr(0,1)==="[")A=b.substring(1);else{let T=b.indexOf("("),F=b.indexOf(")"),k=b.indexOf("/"),R=b.indexOf(":");if(T<F&&T<k&&k<F)A=b.split(" ")[0],A=A.replace(/:/g,"");else if(R>0&&(k===-1||k>3))A=b.split(" ")[0],A=A.replace(/:/g,"");else{let q=b.indexOf(" -"),M=b.indexOf(" /");q=q>=0?q:1e4,M=M>=0?M:1e4;let ee=Math.min(q,M),G=b.substr(0,ee),re=b.substr(ee),ne=G.lastIndexOf("/");if(ne>=0&&(I=G.substr(0,ne),G=G.substr(ne+1)),ee===1e4&&G.indexOf(" ")>-1){let Ce=G.split(" ");_q.existsSync(bq.join(I,Ce[0]))?(A=Ce.shift(),W=(Ce.join(" ")+" "+re).trim()):(A=G.trim(),W=re.trim())}else A=G.trim(),W=re.trim()}}return{pid:c,parentPid:f,name:$i?r(A):A,cpu:p,cpuu:0,cpus:0,mem:d,priority:m,memVsz:y,memRss:D,nice:h,started:g,state:v,tty:w,user:E,command:A,params:W,path:I}}function i(o){let a=[];if(o.length>1){let u=o[0];t=Ae.parseHead(u,8),o.shift(),o.forEach(function(l){l.trim()!==""&&a.push(n(l))})}return a}function s(o){function a(c){let f=("0"+(c.getMonth()+1).toString()).slice(-2),p=c.getFullYear().toString(),d=("0"+c.getDate().toString()).slice(-2),m=("0"+c.getHours().toString()).slice(-2),y=("0"+c.getMinutes().toString()).slice(-2),D=("0"+c.getSeconds().toString()).slice(-2);return p+"-"+f+"-"+d+" "+m+":"+y+":"+D}function u(c){let f="";if(c.indexOf("d")>=0){let p=c.split("d");f=a(new Date(Date.now()-(p[0]*24+p[1]*1)*60*60*1e3))}else if(c.indexOf("h")>=0){let p=c.split("h");f=a(new Date(Date.now()-(p[0]*60+p[1]*1)*60*1e3))}else if(c.indexOf(":")>=0){let p=c.split(":");f=a(new Date(Date.now()-(p.length>1?(p[0]*60+p[1])*1e3:p[0]*1e3)))}return f}let l=[];return o.forEach(function(c){if(c.trim()!==""){c=c.trim().replace(/ +/g," ").replace(/,+/g,".");let f=c.split(" "),p=f.slice(9).join(" "),d=parseFloat((1*parseInt(f[3])*1024/Fh.totalmem()).toFixed(1)),m=u(f[5]);l.push({pid:parseInt(f[0]),parentPid:parseInt(f[1]),name:r(p),cpu:0,cpuu:0,cpus:0,mem:d,priority:0,memVsz:parseInt(f[2]),memRss:parseInt(f[3]),nice:parseInt(f[4]),started:m,state:f[6]==="R"?"running":f[6]==="S"?"sleeping":f[6]==="T"?"stopped":f[6]==="W"?"paging":f[6]==="X"?"dead":f[6]==="Z"?"zombie":f[6]==="D"||f[6]==="U"?"blocked":"unknown",tty:f[7],user:f[8],command:p})}}),l}return new Promise(o=>{process.nextTick(()=>{let a={all:0,running:0,blocked:0,sleeping:0,unknown:0,list:[]},u="";if(Wt.ms&&Date.now()-Wt.ms>=500||Wt.ms===0)if($i||zf||Hf||Yf||Za||Oh)$i&&(u="export LC_ALL=C; ps -axo pid:11,ppid:11,pcpu:6,pmem:6,pri:5,vsz:11,rss:11,ni:5,etime:30,state:5,tty:15,user:20,command; unset LC_ALL"),(zf||Hf||Yf)&&(u="export LC_ALL=C; ps -axo pid,ppid,pcpu,pmem,pri,vsz,rss,ni,etime,state,tty,user,command; unset LC_ALL"),Za&&(u="ps -axo pid,ppid,pcpu,pmem,pri,vsz=temp_title_1,rss=temp_title_2,nice,etime=temp_title_3,state,tty,user,command -r"),Oh&&(u="ps -Ao pid,ppid,pcpu,pmem,pri,vsz,rss,nice,stime,s,tty,user,comm"),qf(u,{maxBuffer:1024*2e4},function(l,c){!l&&c.toString().trim()?(a.list=i(c.toString().split(`
|
|
316
|
+
`)).slice(),a.all=a.list.length,a.running=a.list.filter(function(f){return f.state==="running"}).length,a.blocked=a.list.filter(function(f){return f.state==="blocked"}).length,a.sleeping=a.list.filter(function(f){return f.state==="sleeping"}).length,$i?(u='cat /proc/stat | grep "cpu "',a.list.forEach(f=>{u+=";cat /proc/"+f.pid+"/stat"}),qf(u,{maxBuffer:1024*2e4},function(f,p){let d=p.toString().split(`
|
|
317
317
|
`),m=I1(d.shift()),y={},D={};d.forEach(h=>{if(D=T1(h,m,Wt),D.pid){let g=a.list.map(function(v){return v.pid}).indexOf(D.pid);g>=0&&(a.list[g].cpu=D.cpuu+D.cpus,a.list[g].cpuu=D.cpuu,a.list[g].cpus=D.cpus),y[D.pid]={cpuu:D.cpuu,cpus:D.cpus,utime:D.utime,stime:D.stime,cutime:D.cutime,cstime:D.cstime}}}),Wt.all=m,Wt.list=Object.assign({},y),Wt.ms=Date.now()-Wt.ms,Wt.result=Object.assign({},a),e&&e(a),o(a)})):(e&&e(a),o(a))):(u="ps -o pid,ppid,vsz,rss,nice,etime,stat,tty,user,comm",Oh&&(u="ps -o pid,ppid,vsz,rss,nice,etime,s,tty,user,comm"),qf(u,{maxBuffer:1024*2e4},function(f,p){if(f)e&&e(a),o(a);else{let d=p.toString().split(`
|
|
318
318
|
`);d.shift(),a.list=s(d).slice(),a.all=a.list.length,a.running=a.list.filter(function(m){return m.state==="running"}).length,a.blocked=a.list.filter(function(m){return m.state==="blocked"}).length,a.sleeping=a.list.filter(function(m){return m.state==="sleeping"}).length,e&&e(a),o(a)}}))});else if(A1)try{Ae.powerShell('Get-CimInstance Win32_Process | select-Object ProcessId,ParentProcessId,ExecutionState,Caption,CommandLine,ExecutablePath,UserModeTime,KernelModeTime,WorkingSetSize,Priority,PageFileUsage, @{n="CreationDate";e={$_.CreationDate.ToString("yyyy-MM-dd HH:mm:ss")}} | fl').then((l,c)=>{if(!c){let f=l.split(/\n\s*\n/),p=[],d=[],m={},y=0,D=0;f.forEach(h=>{if(h.trim()!==""){let g=h.trim().split(`\r
|
|
319
319
|
`),v=parseInt(Ae.getValue(g,"ProcessId",":",!0),10),w=parseInt(Ae.getValue(g,"ParentProcessId",":",!0),10),E=Ae.getValue(g,"ExecutionState",":"),I=Ae.getValue(g,"Caption",":",!0),A=Ae.getValue(g,"CommandLine",":",!0),W=!1;g.forEach(R=>{W&&R.toLowerCase().startsWith(" ")?A+=" "+R.trim():W=!1,R.toLowerCase().startsWith("commandline")&&(W=!0)});let b=Ae.getValue(g,"ExecutablePath",":",!0),T=parseInt(Ae.getValue(g,"UserModeTime",":",!0),10),F=parseInt(Ae.getValue(g,"KernelModeTime",":",!0),10),k=parseInt(Ae.getValue(g,"WorkingSetSize",":",!0),10);y=y+T,D=D+F,a.all++,E||a.unknown++,E==="3"&&a.running++,(E==="4"||E==="5")&&a.blocked++,d.push({pid:v,utime:T,stime:F,cpu:0,cpuu:0,cpus:0}),p.push({pid:v,parentPid:w,name:I,cpu:0,cpuu:0,cpus:0,mem:k/Fh.totalmem()*100,priority:parseInt(Ae.getValue(g,"Priority",":",!0),10),memVsz:parseInt(Ae.getValue(g,"PageFileUsage",":",!0),10),memRss:Math.floor(parseInt(Ae.getValue(g,"WorkingSetSize",":",!0),10)/1024),nice:0,started:Ae.getValue(g,"CreationDate",":",!0),state:E?dI[E]:dI[0],tty:"",user:"",command:A||I,path:b,params:""})}}),a.sleeping=a.all-a.running-a.blocked-a.unknown,a.list=p,d.forEach(h=>{let g=mI(h,y+D,Wt),v=a.list.map(function(w){return w.pid}).indexOf(g.pid);v>=0&&(a.list[v].cpu=g.cpuu+g.cpus,a.list[v].cpuu=g.cpuu,a.list[v].cpus=g.cpus),m[g.pid]={cpuu:g.cpuu,cpus:g.cpus,utime:g.utime,stime:g.stime}}),Wt.all=y+D,Wt.all_utime=y,Wt.all_stime=D,Wt.list=Object.assign({},m),Wt.ms=Date.now()-Wt.ms,Wt.result=Object.assign({},a)}e&&e(a),o(a)})}catch{e&&e(a),o(a)}else e&&e(a),o(a);else e&&e(Wt.result),o(Wt.result)})})}Ah.processes=Iq;function Tq(e,t){return Ae.isFunction(e)&&!t&&(t=e,e=""),new Promise(r=>{process.nextTick(()=>{if(e=e||"",typeof e!="string")return t&&t([]),r([]);let n="";n.__proto__.toLowerCase=Ae.stringToLower,n.__proto__.replace=Ae.stringReplace,n.__proto__.trim=Ae.stringTrim;let i=Ae.sanitizeShellString(e),s=Ae.mathMin(i.length,2e3);for(let l=0;l<=s;l++)i[l]!==void 0&&(n=n+i[l]);n=n.trim().toLowerCase().replace(/, /g,"|").replace(/,+/g,"|"),n===""&&(n="*"),Ae.isPrototypePolluted()&&n!=="*"&&(n="------");let o=n.split("|"),a=[];if((Ae.isPrototypePolluted()?"":Ae.sanitizeShellString(e)||"*")&&o.length&&o[0]!=="------"){if(A1)try{Ae.powerShell("Get-CimInstance Win32_Process | select ProcessId,Caption,UserModeTime,KernelModeTime,WorkingSetSize | fl").then((l,c)=>{if(!c){let f=l.split(/\n\s*\n/),p=[],d={},m=0,y=0;f.forEach(D=>{if(D.trim()!==""){let h=D.trim().split(`\r
|
|
320
|
-
`),g=parseInt(Ae.getValue(h,"ProcessId",":",!0),10),v=Ae.getValue(h,"Caption",":",!0),w=parseInt(Ae.getValue(h,"UserModeTime",":",!0),10),E=parseInt(Ae.getValue(h,"KernelModeTime",":",!0),10),I=parseInt(Ae.getValue(h,"WorkingSetSize",":",!0),10);m=m+w,y=y+E,p.push({pid:g,name:v,utime:w,stime:E,cpu:0,cpuu:0,cpus:0,mem:I});let A="",W=!1;if(o.forEach(function(b){v.toLowerCase().indexOf(b.toLowerCase())>=0&&!W&&(W=!0,A=b)}),n==="*"||W){let b=!1;a.forEach(function(T){T.proc.toLowerCase()===A.toLowerCase()&&(T.pids.push(g),T.mem+=I/Fh.totalmem()*100,b=!0)}),b||a.push({proc:A,pid:g,pids:[g],cpu:0,mem:I/Fh.totalmem()*100})}}}),n!=="*"&&o.filter(function(h){return p.filter(function(g){return g.name.toLowerCase().indexOf(h)>=0}).length===0}).forEach(function(h){a.push({proc:h,pid:null,pids:[],cpu:0,mem:0})}),p.forEach(D=>{let h=mI(D,m+y,qr),g=-1;for(let v=0;v<a.length;v++)(a[v].pid===h.pid||a[v].pids.indexOf(h.pid)>=0)&&(g=v);g>=0&&(a[g].cpu+=h.cpuu+h.cpus),d[h.pid]={cpuu:h.cpuu,cpus:h.cpus,utime:h.utime,stime:h.stime}}),qr.all=m+y,qr.all_utime=m,qr.all_stime=y,qr.list=Object.assign({},d),qr.ms=Date.now()-qr.ms,qr.result=JSON.parse(JSON.stringify(a)),t&&t(a),r(a)}})}catch{t&&t(a),r(a)}if(Za||
|
|
321
|
-
`).filter(function(d){if(n==="*")return!0;if(d.toLowerCase().indexOf("grep")!==-1)return!1;let m=!1;return o.forEach(function(y){m=m||d.toLowerCase().indexOf(y.toLowerCase())>=0}),m});if(p.shift(),p.forEach(function(d){let m=d.trim().replace(/ +/g," ").split(" ");if(m.length>4){let y=m[4].indexOf("/")>=0?m[4].substring(0,m[4].indexOf("/")):m[4],D
|
|
320
|
+
`),g=parseInt(Ae.getValue(h,"ProcessId",":",!0),10),v=Ae.getValue(h,"Caption",":",!0),w=parseInt(Ae.getValue(h,"UserModeTime",":",!0),10),E=parseInt(Ae.getValue(h,"KernelModeTime",":",!0),10),I=parseInt(Ae.getValue(h,"WorkingSetSize",":",!0),10);m=m+w,y=y+E,p.push({pid:g,name:v,utime:w,stime:E,cpu:0,cpuu:0,cpus:0,mem:I});let A="",W=!1;if(o.forEach(function(b){v.toLowerCase().indexOf(b.toLowerCase())>=0&&!W&&(W=!0,A=b)}),n==="*"||W){let b=!1;a.forEach(function(T){T.proc.toLowerCase()===A.toLowerCase()&&(T.pids.push(g),T.mem+=I/Fh.totalmem()*100,b=!0)}),b||a.push({proc:A,pid:g,pids:[g],cpu:0,mem:I/Fh.totalmem()*100})}}}),n!=="*"&&o.filter(function(h){return p.filter(function(g){return g.name.toLowerCase().indexOf(h)>=0}).length===0}).forEach(function(h){a.push({proc:h,pid:null,pids:[],cpu:0,mem:0})}),p.forEach(D=>{let h=mI(D,m+y,qr),g=-1;for(let v=0;v<a.length;v++)(a[v].pid===h.pid||a[v].pids.indexOf(h.pid)>=0)&&(g=v);g>=0&&(a[g].cpu+=h.cpuu+h.cpus),d[h.pid]={cpuu:h.cpuu,cpus:h.cpus,utime:h.utime,stime:h.stime}}),qr.all=m+y,qr.all_utime=m,qr.all_stime=y,qr.list=Object.assign({},d),qr.ms=Date.now()-qr.ms,qr.result=JSON.parse(JSON.stringify(a)),t&&t(a),r(a)}})}catch{t&&t(a),r(a)}if(Za||$i||zf||Hf||Yf){let l=["-axo","pid,ppid,pcpu,pmem,comm"];Ae.execSafe("ps",l).then(c=>{if(c){let f=[],p=c.toString().split(`
|
|
321
|
+
`).filter(function(d){if(n==="*")return!0;if(d.toLowerCase().indexOf("grep")!==-1)return!1;let m=!1;return o.forEach(function(y){m=m||d.toLowerCase().indexOf(y.toLowerCase())>=0}),m});if(p.shift(),p.forEach(function(d){let m=d.trim().replace(/ +/g," ").split(" ");if(m.length>4){let y=m[4].indexOf("/")>=0?m[4].substring(0,m[4].indexOf("/")):m[4],D=$i?y:m[4].substring(m[4].lastIndexOf("/")+1);f.push({name:D,pid:parseInt(m[0])||0,ppid:parseInt(m[1])||0,cpu:parseFloat(m[2].replace(",",".")),mem:parseFloat(m[3].replace(",","."))})}}),f.forEach(function(d){let m=-1,y=!1,D=d.name;for(let h=0;h<a.length;h++)d.name.toLowerCase().indexOf(a[h].proc.toLowerCase())>=0&&(m=h);o.forEach(function(h){d.name.toLowerCase().indexOf(h.toLowerCase())>=0&&!y&&(y=!0,D=h)}),(n==="*"||y)&&(m<0?D&&a.push({proc:D,pid:d.pid,pids:[d.pid],cpu:d.cpu,mem:d.mem}):(d.ppid<10&&(a[m].pid=d.pid),a[m].pids.push(d.pid),a[m].cpu+=d.cpu,a[m].mem+=d.mem))}),n!=="*"&&o.filter(function(m){return f.filter(function(y){return y.name.toLowerCase().indexOf(m)>=0}).length===0}).forEach(function(m){a.push({proc:m,pid:null,pids:[],cpu:0,mem:0})}),$i){a.forEach(function(m){m.cpu=0});let d='cat /proc/stat | grep "cpu "';for(let m in a)for(let y in a[m].pids)d+=";cat /proc/"+a[m].pids[y]+"/stat";qf(d,{maxBuffer:1024*2e4},function(m,y){let D=y.toString().split(`
|
|
322
322
|
`),h=I1(D.shift()),g={},v={};D.forEach(w=>{if(v=T1(w,h,qr),v.pid){let E=-1;for(let I in a)a[I].pids.indexOf(v.pid)>=0&&(E=I);E>=0&&(a[E].cpu+=v.cpuu+v.cpus),g[v.pid]={cpuu:v.cpuu,cpus:v.cpus,utime:v.utime,stime:v.stime,cutime:v.cutime,cstime:v.cstime}}}),a.forEach(function(w){w.cpu=Math.round(w.cpu*100)/100}),qr.all=h,qr.list=Object.assign({},g),qr.ms=Date.now()-qr.ms,qr.result=Object.assign({},a),t&&t(a),r(a)})}else t&&t(a),r(a)}else t&&t(a),r(a)})}}})})}Ah.processLoad=Tq});var DI=N(yI=>{"use strict";var Kf=V("child_process").exec,Oo=Mt(),Fo=process.platform,Pq=Fo==="linux"||Fo==="android",Lq=Fo==="darwin",Nq=Fo==="win32",Rq=Fo==="freebsd",Bq=Fo==="openbsd",kq=Fo==="netbsd",Mq=Fo==="sunos";function gI(e,t){let r=[],n=[],i={},s=!0,o=[],a=[],u={},l=!0;return e.forEach(function(c){if(c==="---")l=!1;else{let f=c.replace(/ +/g," ").split(" ");l?n.push({user:f[0],tty:f[1],date:f[2],time:f[3],ip:f&&f.length>4?f[4].replace(/\(/g,"").replace(/\)/g,""):""}):s?(o=f,o.forEach(function(p){a.push(c.indexOf(p))}),s=!1):(i.user=c.substring(a[0],a[1]-1).trim(),i.tty=c.substring(a[1],a[2]-1).trim(),i.ip=c.substring(a[2],a[3]-1).replace(/\(/g,"").replace(/\)/g,"").trim(),i.command=c.substring(a[7],1e3).trim(),u=n.filter(function(p){return p.user.substring(0,8).trim()===i.user&&p.tty===i.tty}),u.length===1&&r.push({user:u[0].user,tty:u[0].tty,date:u[0].date,time:u[0].time,ip:u[0].ip,command:i.command}))}}),r.length===0&&t===2?n:r}function P1(e){let t=[],r=[],n={},i={},s=!0;return e.forEach(function(o){if(o==="---")s=!1;else{let a=o.replace(/ +/g," ").split(" ");s?r.push({user:a[0],tty:a[1],date:""+new Date().getFullYear()+"-"+("0"+("JANFEBMARAPRMAYJUNJULAUGSEPOCTNOVDEC".indexOf(a[2].toUpperCase())/3+1)).slice(-2)+"-"+("0"+a[3]).slice(-2),time:a[4]}):(n.user=a[0],n.tty=a[1],n.ip=a[2]!=="-"?a[2]:"",n.command=a.slice(5,1e3).join(" "),i=r.filter(function(u){return u.user===n.user&&(u.tty.substring(3,1e3)===n.tty||u.tty===n.tty)}),i.length===1&&t.push({user:i[0].user,tty:i[0].tty,date:i[0].date,time:i[0].time,ip:n.ip,command:n.command}))}}),t}function jq(e){return new Promise(t=>{process.nextTick(()=>{let r=[];if(Pq&&Kf('who --ips; echo "---"; w | tail -n +2',function(n,i){if(n)e&&e(r),t(r);else{let s=i.toString().split(`
|
|
323
323
|
`);r=gI(s,1),r.length===0?Kf('who; echo "---"; w | tail -n +2',function(o,a){o||(s=a.toString().split(`
|
|
324
324
|
`),r=gI(s,2)),e&&e(r),t(r)}):(e&&e(r),t(r))}}),(Rq||Bq||kq)&&Kf('who; echo "---"; w -ih',function(n,i){if(!n){let s=i.toString().split(`
|
|
@@ -334,7 +334,7 @@ Interface `);return n.shift(),n.forEach(i=>{let s=i.split(`
|
|
|
334
334
|
`).split("=");if(c.length>1){let f=c[1].split("/");f.length>1&&(u=parseFloat(f[1]))}}t&&t(u),r(u)})),wI){let a=["-s","-a",n,"56","2"],u="avg";wr.execSafe("ping",a,{timeout:3e3}).then(l=>{let c=null;if(l){let p=l.split(`
|
|
335
335
|
`).filter(d=>d.indexOf(u)>=0).join(`
|
|
336
336
|
`).split("=");if(p.length>1){let d=p[1].split("/");d.length>1&&(c=parseFloat(d[1].replace(",",".")))}}t&&t(c),r(c)})}if(vI){let a=null;try{let u=[n,"-n","1"];wr.execSafe("ping",u,wr.execOptsWin).then(l=>{if(l){let c=l.split(`\r
|
|
337
|
-
`);c.shift(),c.forEach(function(f){if((f.toLowerCase().match(/ms/g)||[]).length===3){let p=f.replace(/ +/g," ").split(" ");p.length>6&&(a=parseFloat(p[p.length-1]))}})}t&&t(a),r(a)})}catch{t&&t(a),r(a)}}})})}M1.inetLatency=zq});var SI=N((
|
|
337
|
+
`);c.shift(),c.forEach(function(f){if((f.toLowerCase().match(/ms/g)||[]).length===3){let p=f.replace(/ +/g," ").split(" ");p.length>6&&(a=parseFloat(p[p.length-1]))}})}t&&t(a),r(a)})}catch{t&&t(a),r(a)}}})})}M1.inetLatency=zq});var SI=N((xge,EI)=>{"use strict";var Io=V("net"),Hq=V("os").type()==="Windows_NT",To=Hq?"//./pipe/docker_engine":"/var/run/docker.sock",j1=class{getInfo(t){try{let r=Io.createConnection({path:To}),n="",i;r.on("connect",()=>{r.write(`GET http:/info HTTP/1.0\r
|
|
338
338
|
\r
|
|
339
339
|
`)}),r.on("data",s=>{n=n+s.toString()}),r.on("error",()=>{r=!1,t({})}),r.on("end",()=>{let s=n.indexOf(`\r
|
|
340
340
|
\r
|
|
@@ -389,45 +389,45 @@ Bus `);for(let a=1;a<o.length;a++){let u=Fz(o[a]);r.push(u)}}e&&e(r),t(r)}),Cz&&
|
|
|
389
389
|
`);Nr.getValue(a,"name",":")&&r.push(zz(a))}),e&&e(r),t(r)}),Uz&&t(null)})})}BI.audio=Hz});var jI=N(MI=>{"use strict";var Yz=V("child_process").exec,Kz=V("child_process").execSync,Xz=V("path"),ys=Mt(),Jz=V("fs"),ko=process.platform,Zz=ko==="linux"||ko==="android",Qz=ko==="darwin",eH=ko==="win32",tH=ko==="freebsd",rH=ko==="openbsd",nH=ko==="netbsd",iH=ko==="sunos";function H1(e){let t="";return e.indexOf("keyboard")>=0&&(t="Keyboard"),e.indexOf("mouse")>=0&&(t="Mouse"),e.indexOf("trackpad")>=0&&(t="Trackpad"),e.indexOf("speaker")>=0&&(t="Speaker"),e.indexOf("headset")>=0&&(t="Headset"),e.indexOf("phone")>=0&&(t="Phone"),e.indexOf("macbook")>=0&&(t="Computer"),e.indexOf("imac")>=0&&(t="Computer"),e.indexOf("ipad")>=0&&(t="Tablet"),e.indexOf("watch")>=0&&(t="Watch"),e.indexOf("headphone")>=0&&(t="Headset"),t}function sH(e){let t=e.split(" ")[0];return e=e.toLowerCase(),e.indexOf("apple")>=0&&(t="Apple"),e.indexOf("ipad")>=0&&(t="Apple"),e.indexOf("imac")>=0&&(t="Apple"),e.indexOf("iphone")>=0&&(t="Apple"),e.indexOf("magic mouse")>=0&&(t="Apple"),e.indexOf("magic track")>=0&&(t="Apple"),e.indexOf("macbook")>=0&&(t="Apple"),t}function oH(e,t,r){let n={};return n.device=null,n.name=ys.getValue(e,"name","="),n.manufacturer=null,n.macDevice=t,n.macHost=r,n.batteryPercent=null,n.type=H1(n.name.toLowerCase()),n.connected=!1,n}function z1(e,t){let r={},n=((e.device_minorClassOfDevice_string||e.device_majorClassOfDevice_string||e.device_minorType||"")+(e.device_name||"")).toLowerCase();return r.device=e.device_services||"",r.name=e.device_name||"",r.manufacturer=e.device_manufacturer||sH(e.device_name||"")||"",r.macDevice=(e.device_addr||e.device_address||"").toLowerCase().replace(/-/g,":"),r.macHost=t,r.batteryPercent=e.device_batteryPercent||null,r.type=H1(n),r.connected=e.device_isconnected==="attrib_Yes"||!1,r}function aH(e){let t={};return t.device=null,t.name=ys.getValue(e,"name",":"),t.manufacturer=ys.getValue(e,"manufacturer",":"),t.macDevice=null,t.macHost=null,t.batteryPercent=null,t.type=H1(t.name.toLowerCase()),t.connected=null,t}function uH(e){return new Promise(t=>{process.nextTick(()=>{let r=[];if(Zz){ys.getFilesInPath("/var/lib/bluetooth/").forEach(i=>{let s=Xz.basename(i),o=i.split("/"),a=o.length>=6?o[o.length-2]:null,u=o.length>=7?o[o.length-3]:null;if(s==="info"){let l=Jz.readFileSync(i,{encoding:"utf8"}).split(`
|
|
390
390
|
`);r.push(oH(l,a,u))}});try{let i=Kz("hcitool con",ys.execOptsLinux).toString().toLowerCase();for(let s=0;s<r.length;s++)r[s].macDevice&&r[s].macDevice.length>10&&i.indexOf(r[s].macDevice.toLowerCase())>=0&&(r[s].connected=!0)}catch{ys.noop()}e&&e(r),t(r)}Qz&&Yz("system_profiler SPBluetoothDataType -json",function(i,s){if(!i)try{let o=JSON.parse(s.toString());if(o.SPBluetoothDataType&&o.SPBluetoothDataType.length&&o.SPBluetoothDataType[0]&&o.SPBluetoothDataType[0].device_title&&o.SPBluetoothDataType[0].device_title.length){let a=null;o.SPBluetoothDataType[0].local_device_title&&o.SPBluetoothDataType[0].local_device_title.general_address&&(a=o.SPBluetoothDataType[0].local_device_title.general_address.toLowerCase().replace(/-/g,":")),o.SPBluetoothDataType[0].device_title.forEach(u=>{let l=u,c=Object.keys(l);if(c&&c.length===1){let f=l[c[0]];f.device_name=c[0];let p=z1(f,a);r.push(p)}})}if(o.SPBluetoothDataType&&o.SPBluetoothDataType.length&&o.SPBluetoothDataType[0]&&o.SPBluetoothDataType[0].device_connected&&o.SPBluetoothDataType[0].device_connected.length){let a=o.SPBluetoothDataType[0].controller_properties&&o.SPBluetoothDataType[0].controller_properties.controller_address?o.SPBluetoothDataType[0].controller_properties.controller_address.toLowerCase().replace(/-/g,":"):null;o.SPBluetoothDataType[0].device_connected.forEach(u=>{let l=u,c=Object.keys(l);if(c&&c.length===1){let f=l[c[0]];f.device_name=c[0],f.device_isconnected="attrib_Yes";let p=z1(f,a);r.push(p)}})}if(o.SPBluetoothDataType&&o.SPBluetoothDataType.length&&o.SPBluetoothDataType[0]&&o.SPBluetoothDataType[0].device_not_connected&&o.SPBluetoothDataType[0].device_not_connected.length){let a=o.SPBluetoothDataType[0].controller_properties&&o.SPBluetoothDataType[0].controller_properties.controller_address?o.SPBluetoothDataType[0].controller_properties.controller_address.toLowerCase().replace(/-/g,":"):null;o.SPBluetoothDataType[0].device_not_connected.forEach(u=>{let l=u,c=Object.keys(l);if(c&&c.length===1){let f=l[c[0]];f.device_name=c[0],f.device_isconnected="attrib_No";let p=z1(f,a);r.push(p)}})}}catch{ys.noop()}e&&e(r),t(r)}),eH&&ys.powerShell("Get-CimInstance Win32_PNPEntity | select PNPClass, Name, Manufacturer | fl").then((n,i)=>{i||n.toString().split(/\n\s*\n/).forEach(o=>{ys.getValue(o.split(`
|
|
391
391
|
`),"PNPClass",":")==="Bluetooth"&&r.push(aH(o.split(`
|
|
392
|
-
`)))}),e&&e(r),t(r)}),(tH||nH||rH||iH)&&t(null)})})}MI.bluetoothDevices=uH});var HI=N(he=>{"use strict";var lH=sA().version,Qa=Mt(),Mo=CA(),Ds=SA(),qn=AA(),Th=jA(),VI=$A(),UI=HA(),
|
|
392
|
+
`)))}),e&&e(r),t(r)}),(tH||nH||rH||iH)&&t(null)})})}MI.bluetoothDevices=uH});var HI=N(he=>{"use strict";var lH=sA().version,Qa=Mt(),Mo=CA(),Ds=SA(),qn=AA(),Th=jA(),VI=$A(),UI=HA(),Gi=ZA(),vs=oI(),Ph=pI(),Qf=hI(),$I=DI(),Y1=CI(),eu=_I(),cH=OI(),fH=TI(),pH=NI(),dH=kI(),mH=jI(),ep=process.platform,Ih=ep==="win32",Xf=ep==="freebsd",Jf=ep==="openbsd",Zf=ep==="netbsd",Wi=ep==="sunos";Ih&&Qa.getCodepage();function WI(){return lH}function GI(e){return new Promise(t=>{process.nextTick(()=>{let r={};r.version=WI(),Promise.all([Mo.system(),Mo.bios(),Mo.baseboard(),Mo.chassis(),Ds.osInfo(),Ds.uuid(),Ds.versions(),qn.cpu(),qn.cpuFlags(),UI.graphics(),vs.networkInterfaces(),Th.memLayout(),Gi.diskLayout()]).then(n=>{r.system=n[0],r.bios=n[1],r.baseboard=n[2],r.chassis=n[3],r.os=n[4],r.uuid=n[5],r.versions=n[6],r.cpu=n[7],r.cpu.flags=n[8],r.graphics=n[9],r.net=n[10],r.memLayout=n[11],r.diskLayout=n[12],e&&e(r),t(r)})})})}function qI(e,t,r){return Qa.isFunction(t)&&(r=t,t=""),Qa.isFunction(e)&&(r=e,e=""),new Promise(n=>{process.nextTick(()=>{t=t||vs.getDefaultNetworkInterface(),e=e||"";let i=function(){let o=15;return Ih&&(o=13),(Xf||Jf||Zf)&&(o=11),Wi&&(o=6),function(){--o===0&&(r&&r(s),n(s))}}(),s={};s.time=Ds.time(),s.node=process.versions.node,s.v8=process.versions.v8,qn.cpuCurrentSpeed().then(o=>{s.cpuCurrentSpeed=o,i()}),$I.users().then(o=>{s.users=o,i()}),Qf.processes().then(o=>{s.processes=o,i()}),qn.currentLoad().then(o=>{s.currentLoad=o,i()}),Wi||qn.cpuTemperature().then(o=>{s.temp=o,i()}),!Jf&&!Xf&&!Zf&&!Wi&&vs.networkStats(t).then(o=>{s.networkStats=o,i()}),Wi||vs.networkConnections().then(o=>{s.networkConnections=o,i()}),Th.mem().then(o=>{s.mem=o,i()}),Wi||VI().then(o=>{s.battery=o,i()}),Wi||Qf.services(e).then(o=>{s.services=o,i()}),Wi||Gi.fsSize().then(o=>{s.fsSize=o,i()}),!Ih&&!Jf&&!Xf&&!Zf&&!Wi&&Gi.fsStats().then(o=>{s.fsStats=o,i()}),!Ih&&!Jf&&!Xf&&!Zf&&!Wi&&Gi.disksIO().then(o=>{s.disksIO=o,i()}),!Jf&&!Xf&&!Zf&&!Wi&&Ph.wifiNetworks().then(o=>{s.wifiNetworks=o,i()}),Y1.inetLatency().then(o=>{s.inetLatency=o,i()})})})}function hH(e,t,r){return new Promise(n=>{process.nextTick(()=>{let i={};t&&Qa.isFunction(t)&&!r&&(r=t,t=""),e&&Qa.isFunction(e)&&!t&&!r&&(r=e,e="",t=""),GI().then(s=>{i=s,qI(e,t).then(o=>{for(let a in o)({}).hasOwnProperty.call(o,a)&&(i[a]=o[a]);r&&r(i),n(i)})})})})}function zI(e,t){return new Promise(r=>{process.nextTick(()=>{let n=Object.keys(e).filter(i=>({}).hasOwnProperty.call(he,i)).map(i=>{let s=e[i].substring(e[i].lastIndexOf("(")+1,e[i].lastIndexOf(")")),o=i.indexOf(")")>=0?i.split(")")[1].trim():i;return o=i.indexOf("|")>=0?i.split("|")[0].trim():o,s?he[o](s):he[o]("")});Promise.all(n).then(i=>{let s={},o=0;for(let a in e)if({}.hasOwnProperty.call(e,a)&&{}.hasOwnProperty.call(he,a)&&i.length>o){if(e[a]==="*"||e[a]==="all")s[a]=i[o];else{let u=e[a],l="",c=[];if(u.indexOf(")")>=0&&(u=u.split(")")[1].trim()),u.indexOf("|")>=0&&(l=u.split("|")[1].trim(),c=l.split(":"),u=u.split("|")[0].trim()),u=u.replace(/,/g," ").replace(/ +/g," ").split(" "),i[o])if(Array.isArray(i[o])){let f=[];i[o].forEach(p=>{let d={};if(u.length===1&&(u[0]==="*"||u[0]==="all")?d=p:u.forEach(m=>{({}).hasOwnProperty.call(p,m)&&(d[m]=p[m])}),l&&c.length===2){if({}.hasOwnProperty.call(d,c[0].trim())){let m=d[c[0].trim()];typeof m=="number"?m===parseFloat(c[1].trim())&&f.push(d):typeof m=="string"&&m.toLowerCase()===c[1].trim().toLowerCase()&&f.push(d)}}else f.push(d)}),s[a]=f}else{let f={};u.forEach(p=>{({}).hasOwnProperty.call(i[o],p)&&(f[p]=i[o][p])}),s[a]=f}else s[a]={}}o++}t&&t(s),r(s)})})})}function gH(e,t,r){let n=null;return setInterval(()=>{zI(e).then(s=>{JSON.stringify(n)!==JSON.stringify(s)&&(n=Object.assign({},s),r(s))})},t)}he.version=WI;he.system=Mo.system;he.bios=Mo.bios;he.baseboard=Mo.baseboard;he.chassis=Mo.chassis;he.time=Ds.time;he.osInfo=Ds.osInfo;he.versions=Ds.versions;he.shell=Ds.shell;he.uuid=Ds.uuid;he.cpu=qn.cpu;he.cpuFlags=qn.cpuFlags;he.cpuCache=qn.cpuCache;he.cpuCurrentSpeed=qn.cpuCurrentSpeed;he.cpuTemperature=qn.cpuTemperature;he.currentLoad=qn.currentLoad;he.fullLoad=qn.fullLoad;he.mem=Th.mem;he.memLayout=Th.memLayout;he.battery=VI;he.graphics=UI.graphics;he.fsSize=Gi.fsSize;he.fsOpenFiles=Gi.fsOpenFiles;he.blockDevices=Gi.blockDevices;he.fsStats=Gi.fsStats;he.disksIO=Gi.disksIO;he.diskLayout=Gi.diskLayout;he.networkInterfaceDefault=vs.networkInterfaceDefault;he.networkGatewayDefault=vs.networkGatewayDefault;he.networkInterfaces=vs.networkInterfaces;he.networkStats=vs.networkStats;he.networkConnections=vs.networkConnections;he.wifiNetworks=Ph.wifiNetworks;he.wifiInterfaces=Ph.wifiInterfaces;he.wifiConnections=Ph.wifiConnections;he.services=Qf.services;he.processes=Qf.processes;he.processLoad=Qf.processLoad;he.users=$I.users;he.inetChecksite=Y1.inetChecksite;he.inetLatency=Y1.inetLatency;he.dockerInfo=eu.dockerInfo;he.dockerImages=eu.dockerImages;he.dockerContainers=eu.dockerContainers;he.dockerContainerStats=eu.dockerContainerStats;he.dockerContainerProcesses=eu.dockerContainerProcesses;he.dockerVolumes=eu.dockerVolumes;he.dockerAll=eu.dockerAll;he.vboxInfo=cH.vboxInfo;he.printer=fH.printer;he.usb=pH.usb;he.audio=dH.audio;he.bluetoothDevices=mH.bluetoothDevices;he.getStaticData=GI;he.getDynamicData=qI;he.getAllData=hH;he.get=zI;he.observe=gH;he.powerShellStart=Qa.powerShellStart;he.powerShellRelease=Qa.powerShellRelease});var n3=N((vye,MH)=>{MH.exports={name:"dotenv",version:"16.4.7",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{types:"./lib/main.d.ts",require:"./lib/main.js",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},scripts:{"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard",pretest:"npm run lint && npm run dts-check",test:"tap run --allow-empty-coverage --disable-coverage --timeout=60000","test:coverage":"tap run --show-full-coverage --timeout=60000 --coverage-report=lcov",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},funding:"https://dotenvx.com",keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@types/node":"^18.11.3",decache:"^4.6.2",sinon:"^14.0.1",standard:"^17.0.0","standard-version":"^9.5.0",tap:"^19.2.0",typescript:"^4.8.4"},engines:{node:">=12"},browser:{fs:!1}}});var a3=N((wye,ws)=>{var nw=V("fs"),iw=V("path"),jH=V("os"),VH=V("crypto"),UH=n3(),sw=UH.version,$H=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function WH(e){let t={},r=e.toString();r=r.replace(/\r\n?/mg,`
|
|
393
393
|
`);let n;for(;(n=$H.exec(r))!=null;){let i=n[1],s=n[2]||"";s=s.trim();let o=s[0];s=s.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),o==='"'&&(s=s.replace(/\\n/g,`
|
|
394
|
-
`),s=s.replace(/\\r/g,"\r")),t[i]=s}return t}function GH(e){let t=o3(e),r=Gt.configDotenv({path:t});if(!r.parsed){let o=new Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);throw o.code="MISSING_DATA",o}let n=s3(e).split(","),i=n.length,s;for(let o=0;o<i;o++)try{let a=n[o].trim(),u=HH(r,a);s=Gt.decrypt(u.ciphertext,u.key);break}catch(a){if(o+1>=i)throw a}return Gt.parse(s)}function qH(e){console.log(`[dotenv@${sw}][INFO] ${e}`)}function zH(e){console.log(`[dotenv@${sw}][WARN] ${e}`)}function jh(e){console.log(`[dotenv@${sw}][DEBUG] ${e}`)}function s3(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function HH(e,t){let r;try{r=new URL(t)}catch(a){if(a.code==="ERR_INVALID_URL"){let u=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw u.code="INVALID_DOTENV_KEY",u}throw a}let n=r.password;if(!n){let a=new Error("INVALID_DOTENV_KEY: Missing key part");throw a.code="INVALID_DOTENV_KEY",a}let i=r.searchParams.get("environment");if(!i){let a=new Error("INVALID_DOTENV_KEY: Missing environment part");throw a.code="INVALID_DOTENV_KEY",a}let s=`DOTENV_VAULT_${i.toUpperCase()}`,o=e.parsed[s];if(!o){let a=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${s} in your .env.vault file.`);throw a.code="NOT_FOUND_DOTENV_ENVIRONMENT",a}return{ciphertext:o,key:n}}function o3(e){let t=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(let r of e.path)nw.existsSync(r)&&(t=r.endsWith(".vault")?r:`${r}.vault`);else t=e.path.endsWith(".vault")?e.path:`${e.path}.vault`;else t=iw.resolve(process.cwd(),".env.vault");return nw.existsSync(t)?t:null}function i3(e){return e[0]==="~"?iw.join(jH.homedir(),e.slice(1)):e}function YH(e){qH("Loading env from encrypted .env.vault");let t=Gt._parseVault(e),r=process.env;return e&&e.processEnv!=null&&(r=e.processEnv),Gt.populate(r,t,e),{parsed:t}}function KH(e){let t=iw.resolve(process.cwd(),".env"),r="utf8",n=!!(e&&e.debug);e&&e.encoding?r=e.encoding:n&&jh("No encoding is specified. UTF-8 is used by default");let i=[t];if(e&&e.path)if(!Array.isArray(e.path))i=[i3(e.path)];else{i=[];for(let u of e.path)i.push(i3(u))}let s,o={};for(let u of i)try{let l=Gt.parse(nw.readFileSync(u,{encoding:r}));Gt.populate(o,l,e)}catch(l){n&&jh(`Failed to load ${u} ${l.message}`),s=l}let a=process.env;return e&&e.processEnv!=null&&(a=e.processEnv),Gt.populate(a,o,e),s?{parsed:o,error:s}:{parsed:o}}function XH(e){if(s3(e).length===0)return Gt.configDotenv(e);let t=o3(e);return t?Gt._configVault(e):(zH(`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`),Gt.configDotenv(e))}function JH(e,t){let r=Buffer.from(t.slice(-64),"hex"),n=Buffer.from(e,"base64"),i=n.subarray(0,12),s=n.subarray(-16);n=n.subarray(12,-16);try{let o=VH.createDecipheriv("aes-256-gcm",r,i);return o.setAuthTag(s),`${o.update(n)}${o.final()}`}catch(o){let a=o instanceof RangeError,u=o.message==="Invalid key length",l=o.message==="Unsupported state or unable to authenticate data";if(a||u){let c=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw c.code="INVALID_DOTENV_KEY",c}else if(l){let c=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw c.code="DECRYPTION_FAILED",c}else throw o}}function ZH(e,t,r={}){let n=!!(r&&r.debug),i=!!(r&&r.override);if(typeof t!="object"){let s=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw s.code="OBJECT_REQUIRED",s}for(let s of Object.keys(t))Object.prototype.hasOwnProperty.call(e,s)?(i===!0&&(e[s]=t[s]),n&&jh(i===!0?`"${s}" is already defined and WAS overwritten`:`"${s}" is already defined and was NOT overwritten`)):e[s]=t[s]}var Gt={configDotenv:KH,_configVault:YH,_parseVault:GH,config:XH,decrypt:JH,parse:WH,populate:ZH};ws.exports.configDotenv=Gt.configDotenv;ws.exports._configVault=Gt._configVault;ws.exports._parseVault=Gt._parseVault;ws.exports.config=Gt.config;ws.exports.decrypt=Gt.decrypt;ws.exports.parse=Gt.parse;ws.exports.populate=Gt.populate;ws.exports=Gt});var b3=N((oDe,_3)=>{var Wo=V("constants"),fK=process.cwd,Qh=null,pK=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Qh||(Qh=fK.call(process)),Qh};try{process.cwd()}catch{}typeof process.chdir=="function"&&(hw=process.chdir,process.chdir=function(e){Qh=null,hw.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,hw));var hw;_3.exports=dK;function dK(e){Wo.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=s(e.chown),e.fchown=s(e.fchown),e.lchown=s(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=o(e.chownSync),e.fchownSync=o(e.fchownSync),e.lchownSync=o(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(c,f,p){p&&process.nextTick(p)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(c,f,p,d){d&&process.nextTick(d)},e.lchownSync=function(){}),pK==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(c){function f(p,d,m){var y=Date.now(),D=0;c(p,d,function h(g){if(g&&(g.code==="EACCES"||g.code==="EPERM"||g.code==="EBUSY")&&Date.now()-y<6e4){setTimeout(function(){e.stat(d,function(v,w){v&&v.code==="ENOENT"?c(p,d,h):m(g)})},D),D<100&&(D+=10);return}m&&m(g)})}return Object.setPrototypeOf&&Object.setPrototypeOf(f,c),f}(e.rename)),e.read=typeof e.read!="function"?e.read:function(c){function f(p,d,m,y,D,h){var g;if(h&&typeof h=="function"){var v=0;g=function(w,E,I){if(w&&w.code==="EAGAIN"&&v<10)return v++,c.call(e,p,d,m,y,D,g);h.apply(this,arguments)}}return c.call(e,p,d,m,y,D,g)}return Object.setPrototypeOf&&Object.setPrototypeOf(f,c),f}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(c){return function(f,p,d,m,y){for(var D=0;;)try{return c.call(e,f,p,d,m,y)}catch(h){if(h.code==="EAGAIN"&&D<10){D++;continue}throw h}}}(e.readSync);function t(c){c.lchmod=function(f,p,d){c.open(f,Wo.O_WRONLY|Wo.O_SYMLINK,p,function(m,y){if(m){d&&d(m);return}c.fchmod(y,p,function(D){c.close(y,function(h){d&&d(D||h)})})})},c.lchmodSync=function(f,p){var d=c.openSync(f,Wo.O_WRONLY|Wo.O_SYMLINK,p),m=!0,y;try{y=c.fchmodSync(d,p),m=!1}finally{if(m)try{c.closeSync(d)}catch{}else c.closeSync(d)}return y}}function r(c){Wo.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(f,p,d,m){c.open(f,Wo.O_SYMLINK,function(y,D){if(y){m&&m(y);return}c.futimes(D,p,d,function(h){c.close(D,function(g){m&&m(h||g)})})})},c.lutimesSync=function(f,p,d){var m=c.openSync(f,Wo.O_SYMLINK),y,D=!0;try{y=c.futimesSync(m,p,d),D=!1}finally{if(D)try{c.closeSync(m)}catch{}else c.closeSync(m)}return y}):c.futimes&&(c.lutimes=function(f,p,d,m){m&&process.nextTick(m)},c.lutimesSync=function(){})}function n(c){return c&&function(f,p,d){return c.call(e,f,p,function(m){l(m)&&(m=null),d&&d.apply(this,arguments)})}}function i(c){return c&&function(f,p){try{return c.call(e,f,p)}catch(d){if(!l(d))throw d}}}function s(c){return c&&function(f,p,d,m){return c.call(e,f,p,d,function(y){l(y)&&(y=null),m&&m.apply(this,arguments)})}}function o(c){return c&&function(f,p,d){try{return c.call(e,f,p,d)}catch(m){if(!l(m))throw m}}}function a(c){return c&&function(f,p,d){typeof p=="function"&&(d=p,p=null);function m(y,D){D&&(D.uid<0&&(D.uid+=4294967296),D.gid<0&&(D.gid+=4294967296)),d&&d.apply(this,arguments)}return p?c.call(e,f,p,m):c.call(e,f,m)}}function u(c){return c&&function(f,p){var d=p?c.call(e,f,p):c.call(e,f);return d&&(d.uid<0&&(d.uid+=4294967296),d.gid<0&&(d.gid+=4294967296)),d}}function l(c){if(!c||c.code==="ENOSYS")return!0;var f=!process.getuid||process.getuid()!==0;return!!(f&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var A3=N((aDe,F3)=>{var O3=V("stream").Stream;F3.exports=mK;function mK(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);O3.call(this);var s=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var o=Object.keys(i),a=0,u=o.length;a<u;a++){var l=o[a];this[l]=i[l]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}e.open(this.path,this.flags,this.mode,function(c,f){if(c){s.emit("error",c),s.readable=!1;return}s.fd=f,s.emit("open",f),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);O3.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),o=0,a=s.length;o<a;o++){var u=s[o];this[u]=i[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var T3=N((uDe,I3)=>{"use strict";I3.exports=gK;var hK=Object.getPrototypeOf||function(e){return e.__proto__};function gK(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:hK(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var R3=N((lDe,Dw)=>{var _t=V("fs"),yK=b3(),DK=A3(),vK=T3(),e0=V("util"),lr,r0;typeof Symbol=="function"&&typeof Symbol.for=="function"?(lr=Symbol.for("graceful-fs.queue"),r0=Symbol.for("graceful-fs.previous")):(lr="___graceful-fs.queue",r0="___graceful-fs.previous");function wK(){}function N3(e,t){Object.defineProperty(e,lr,{get:function(){return t}})}var yu=wK;e0.debuglog?yu=e0.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(yu=function(){var e=e0.format.apply(e0,arguments);e="GFS4: "+e.split(/\n/).join(`
|
|
395
|
-
GFS4: `),console.error(e)});_t[lr]||(P3=global[lr]||[],N3(_t,P3),_t.close=function(e){function t(r,n){return e.call(_t,r,function(i){i||L3(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,r0,{value:e}),t}(_t.close),_t.closeSync=function(e){function t(r){e.apply(_t,arguments),L3()}return Object.defineProperty(t,r0,{value:e}),t}(_t.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){yu(_t[lr]),V("assert").equal(_t[lr].length,0)}));var P3;global[lr]||N3(global,_t[lr]);Dw.exports=gw(vK(_t));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!_t.__patched&&(Dw.exports=gw(_t),_t.__patched=!0);function gw(e){yK(e),e.gracefulify=gw,e.createReadStream=E,e.createWriteStream=I;var t=e.readFile;e.readFile=r;function r(b,T,F){return typeof T=="function"&&(F=T,T=null),k(b,T,F);function k(R,q,M,ee){return t(R,q,function(G){G&&(G.code==="EMFILE"||G.code==="ENFILE")?zl([k,[R,q,M],G,ee||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(b,T,F,k){return typeof F=="function"&&(k=F,F=null),R(b,T,F,k);function R(q,M,ee,G,re){return n(q,M,ee,function(ne){ne&&(ne.code==="EMFILE"||ne.code==="ENFILE")?zl([R,[q,M,ee,G],ne,re||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=o);function o(b,T,F,k){return typeof F=="function"&&(k=F,F=null),R(b,T,F,k);function R(q,M,ee,G,re){return s(q,M,ee,function(ne){ne&&(ne.code==="EMFILE"||ne.code==="ENFILE")?zl([R,[q,M,ee,G],ne,re||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}var a=e.copyFile;a&&(e.copyFile=u);function u(b,T,F,k){return typeof F=="function"&&(k=F,F=0),R(b,T,F,k);function R(q,M,ee,G,re){return a(q,M,ee,function(ne){ne&&(ne.code==="EMFILE"||ne.code==="ENFILE")?zl([R,[q,M,ee,G],ne,re||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}var l=e.readdir;e.readdir=f;var c=/^v[0-5]\./;function f(b,T,F){typeof T=="function"&&(F=T,T=null);var k=c.test(process.version)?function(M,ee,G,re){return l(M,R(M,ee,G,re))}:function(M,ee,G,re){return l(M,ee,R(M,ee,G,re))};return k(b,T,F);function R(q,M,ee,G){return function(re,ne){re&&(re.code==="EMFILE"||re.code==="ENFILE")?zl([k,[q,M,ee],re,G||Date.now(),Date.now()]):(ne&&ne.sort&&ne.sort(),typeof ee=="function"&&ee.call(this,re,ne))}}}if(process.version.substr(0,4)==="v0.8"){var p=DK(e);h=p.ReadStream,v=p.WriteStream}var d=e.ReadStream;d&&(h.prototype=Object.create(d.prototype),h.prototype.open=g);var m=e.WriteStream;m&&(v.prototype=Object.create(m.prototype),v.prototype.open=w),Object.defineProperty(e,"ReadStream",{get:function(){return h},set:function(b){h=b},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return v},set:function(b){v=b},enumerable:!0,configurable:!0});var y=h;Object.defineProperty(e,"FileReadStream",{get:function(){return y},set:function(b){y=b},enumerable:!0,configurable:!0});var D=v;Object.defineProperty(e,"FileWriteStream",{get:function(){return D},set:function(b){D=b},enumerable:!0,configurable:!0});function h(b,T){return this instanceof h?(d.apply(this,arguments),this):h.apply(Object.create(h.prototype),arguments)}function g(){var b=this;W(b.path,b.flags,b.mode,function(T,F){T?(b.autoClose&&b.destroy(),b.emit("error",T)):(b.fd=F,b.emit("open",F),b.read())})}function v(b,T){return this instanceof v?(m.apply(this,arguments),this):v.apply(Object.create(v.prototype),arguments)}function w(){var b=this;W(b.path,b.flags,b.mode,function(T,F){T?(b.destroy(),b.emit("error",T)):(b.fd=F,b.emit("open",F))})}function E(b,T){return new e.ReadStream(b,T)}function I(b,T){return new e.WriteStream(b,T)}var A=e.open;e.open=W;function W(b,T,F,k){return typeof F=="function"&&(k=F,F=null),R(b,T,F,k);function R(q,M,ee,G,re){return A(q,M,ee,function(ne,Ce){ne&&(ne.code==="EMFILE"||ne.code==="ENFILE")?zl([R,[q,M,ee,G],ne,re||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}return e}function zl(e){yu("ENQUEUE",e[0].name,e[1]),_t[lr].push(e),yw()}var t0;function L3(){for(var e=Date.now(),t=0;t<_t[lr].length;++t)_t[lr][t].length>2&&(_t[lr][t][3]=e,_t[lr][t][4]=e);yw()}function yw(){if(clearTimeout(t0),t0=void 0,_t[lr].length!==0){var e=_t[lr].shift(),t=e[0],r=e[1],n=e[2],i=e[3],s=e[4];if(i===void 0)yu("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){yu("TIMEOUT",t.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-s,u=Math.max(s-i,1),l=Math.min(u*1.2,100);a>=l?(yu("RETRY",t.name,r),t.apply(null,r.concat([i]))):_t[lr].push(e)}t0===void 0&&(t0=setTimeout(yw,0))}}});var hp=N((yve,aT)=>{var PK=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};aT.exports=PK});var gp=N((Dve,uT)=>{var LK="2.0.0",NK=Number.MAX_SAFE_INTEGER||9007199254740991,RK=16,BK=250,kK=["major","premajor","minor","preminor","patch","prepatch","prerelease"];uT.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:RK,MAX_SAFE_BUILD_LENGTH:BK,MAX_SAFE_INTEGER:NK,RELEASE_TYPES:kK,SEMVER_SPEC_VERSION:LK,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Kl=N((Os,lT)=>{var{MAX_SAFE_COMPONENT_LENGTH:Aw,MAX_SAFE_BUILD_LENGTH:MK,MAX_LENGTH:jK}=gp(),VK=hp();Os=lT.exports={};var UK=Os.re=[],$K=Os.safeRe=[],fe=Os.src=[],pe=Os.t={},WK=0,Iw="[a-zA-Z0-9-]",GK=[["\\s",1],["\\d",jK],[Iw,MK]],qK=e=>{for(let[t,r]of GK)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},Me=(e,t,r)=>{let n=qK(t),i=WK++;VK(e,i,t),pe[e]=i,fe[i]=t,UK[i]=new RegExp(t,r?"g":void 0),$K[i]=new RegExp(n,r?"g":void 0)};Me("NUMERICIDENTIFIER","0|[1-9]\\d*");Me("NUMERICIDENTIFIERLOOSE","\\d+");Me("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Iw}*`);Me("MAINVERSION",`(${fe[pe.NUMERICIDENTIFIER]})\\.(${fe[pe.NUMERICIDENTIFIER]})\\.(${fe[pe.NUMERICIDENTIFIER]})`);Me("MAINVERSIONLOOSE",`(${fe[pe.NUMERICIDENTIFIERLOOSE]})\\.(${fe[pe.NUMERICIDENTIFIERLOOSE]})\\.(${fe[pe.NUMERICIDENTIFIERLOOSE]})`);Me("PRERELEASEIDENTIFIER",`(?:${fe[pe.NUMERICIDENTIFIER]}|${fe[pe.NONNUMERICIDENTIFIER]})`);Me("PRERELEASEIDENTIFIERLOOSE",`(?:${fe[pe.NUMERICIDENTIFIERLOOSE]}|${fe[pe.NONNUMERICIDENTIFIER]})`);Me("PRERELEASE",`(?:-(${fe[pe.PRERELEASEIDENTIFIER]}(?:\\.${fe[pe.PRERELEASEIDENTIFIER]})*))`);Me("PRERELEASELOOSE",`(?:-?(${fe[pe.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${fe[pe.PRERELEASEIDENTIFIERLOOSE]})*))`);Me("BUILDIDENTIFIER",`${Iw}+`);Me("BUILD",`(?:\\+(${fe[pe.BUILDIDENTIFIER]}(?:\\.${fe[pe.BUILDIDENTIFIER]})*))`);Me("FULLPLAIN",`v?${fe[pe.MAINVERSION]}${fe[pe.PRERELEASE]}?${fe[pe.BUILD]}?`);Me("FULL",`^${fe[pe.FULLPLAIN]}$`);Me("LOOSEPLAIN",`[v=\\s]*${fe[pe.MAINVERSIONLOOSE]}${fe[pe.PRERELEASELOOSE]}?${fe[pe.BUILD]}?`);Me("LOOSE",`^${fe[pe.LOOSEPLAIN]}$`);Me("GTLT","((?:<|>)?=?)");Me("XRANGEIDENTIFIERLOOSE",`${fe[pe.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Me("XRANGEIDENTIFIER",`${fe[pe.NUMERICIDENTIFIER]}|x|X|\\*`);Me("XRANGEPLAIN",`[v=\\s]*(${fe[pe.XRANGEIDENTIFIER]})(?:\\.(${fe[pe.XRANGEIDENTIFIER]})(?:\\.(${fe[pe.XRANGEIDENTIFIER]})(?:${fe[pe.PRERELEASE]})?${fe[pe.BUILD]}?)?)?`);Me("XRANGEPLAINLOOSE",`[v=\\s]*(${fe[pe.XRANGEIDENTIFIERLOOSE]})(?:\\.(${fe[pe.XRANGEIDENTIFIERLOOSE]})(?:\\.(${fe[pe.XRANGEIDENTIFIERLOOSE]})(?:${fe[pe.PRERELEASELOOSE]})?${fe[pe.BUILD]}?)?)?`);Me("XRANGE",`^${fe[pe.GTLT]}\\s*${fe[pe.XRANGEPLAIN]}$`);Me("XRANGELOOSE",`^${fe[pe.GTLT]}\\s*${fe[pe.XRANGEPLAINLOOSE]}$`);Me("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Aw}})(?:\\.(\\d{1,${Aw}}))?(?:\\.(\\d{1,${Aw}}))?`);Me("COERCE",`${fe[pe.COERCEPLAIN]}(?:$|[^\\d])`);Me("COERCEFULL",fe[pe.COERCEPLAIN]+`(?:${fe[pe.PRERELEASE]})?(?:${fe[pe.BUILD]})?(?:$|[^\\d])`);Me("COERCERTL",fe[pe.COERCE],!0);Me("COERCERTLFULL",fe[pe.COERCEFULL],!0);Me("LONETILDE","(?:~>?)");Me("TILDETRIM",`(\\s*)${fe[pe.LONETILDE]}\\s+`,!0);Os.tildeTrimReplace="$1~";Me("TILDE",`^${fe[pe.LONETILDE]}${fe[pe.XRANGEPLAIN]}$`);Me("TILDELOOSE",`^${fe[pe.LONETILDE]}${fe[pe.XRANGEPLAINLOOSE]}$`);Me("LONECARET","(?:\\^)");Me("CARETTRIM",`(\\s*)${fe[pe.LONECARET]}\\s+`,!0);Os.caretTrimReplace="$1^";Me("CARET",`^${fe[pe.LONECARET]}${fe[pe.XRANGEPLAIN]}$`);Me("CARETLOOSE",`^${fe[pe.LONECARET]}${fe[pe.XRANGEPLAINLOOSE]}$`);Me("COMPARATORLOOSE",`^${fe[pe.GTLT]}\\s*(${fe[pe.LOOSEPLAIN]})$|^$`);Me("COMPARATOR",`^${fe[pe.GTLT]}\\s*(${fe[pe.FULLPLAIN]})$|^$`);Me("COMPARATORTRIM",`(\\s*)${fe[pe.GTLT]}\\s*(${fe[pe.LOOSEPLAIN]}|${fe[pe.XRANGEPLAIN]})`,!0);Os.comparatorTrimReplace="$1$2$3";Me("HYPHENRANGE",`^\\s*(${fe[pe.XRANGEPLAIN]})\\s+-\\s+(${fe[pe.XRANGEPLAIN]})\\s*$`);Me("HYPHENRANGELOOSE",`^\\s*(${fe[pe.XRANGEPLAINLOOSE]})\\s+-\\s+(${fe[pe.XRANGEPLAINLOOSE]})\\s*$`);Me("STAR","(<|>)?=?\\s*\\*");Me("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Me("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var u0=N((vve,cT)=>{var zK=Object.freeze({loose:!0}),HK=Object.freeze({}),YK=e=>e?typeof e!="object"?zK:e:HK;cT.exports=YK});var Tw=N((wve,dT)=>{var fT=/^[0-9]+$/,pT=(e,t)=>{let r=fT.test(e),n=fT.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},KK=(e,t)=>pT(t,e);dT.exports={compareIdentifiers:pT,rcompareIdentifiers:KK}});var Sr=N((Cve,yT)=>{var l0=hp(),{MAX_LENGTH:mT,MAX_SAFE_INTEGER:c0}=gp(),{safeRe:hT,t:gT}=Kl(),XK=u0(),{compareIdentifiers:Xl}=Tw(),Pw=class e{constructor(t,r){if(r=XK(r),t instanceof e){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>mT)throw new TypeError(`version is longer than ${mT} characters`);l0("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?hT[gT.LOOSE]:hT[gT.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>c0||this.major<0)throw new TypeError("Invalid major version");if(this.minor>c0||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>c0||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let s=+i;if(s>=0&&s<c0)return s}return i}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(l0("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if(typeof t=="string"&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),Xl(this.major,t.major)||Xl(this.minor,t.minor)||Xl(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],i=t.prerelease[r];if(l0("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return Xl(n,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let n=this.build[r],i=t.build[r];if(l0("build compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return Xl(n,i)}while(++r)}inc(t,r,n){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let i=Number(n)?1:0;if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[i];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let s=[r,i];n===!1&&(s=[r]),Xl(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};yT.exports=Pw});var wu=N((Eve,vT)=>{var DT=Sr(),JK=(e,t,r=!1)=>{if(e instanceof DT)return e;try{return new DT(e,t)}catch(n){if(!r)return null;throw n}};vT.exports=JK});var Lw=N((Sve,CT)=>{var wT=wu(),ZK=(e,t)=>{let r=wT(e,null,!0),n=wT(t,null,!0),i=r.compare(n);if(i===0)return null;let s=i>0,o=s?r:n,a=s?n:r,u=!!o.prerelease.length;if(!!a.prerelease.length&&!u)return!a.patch&&!a.minor?"major":o.patch?"patch":o.minor?"minor":"major";let c=u?"pre":"";return r.major!==n.major?c+"major":r.minor!==n.minor?c+"minor":r.patch!==n.patch?c+"patch":"prerelease"};CT.exports=ZK});var Yn=N((xve,ST)=>{var ET=Sr(),QK=(e,t,r)=>new ET(e,r).compare(new ET(t,r));ST.exports=QK});var Jl=N((_ve,xT)=>{var eX=Yn(),tX=(e,t,r)=>eX(e,t,r)>0;xT.exports=tX});var VT=N(Cu=>{Cu.parse=Cu.decode=aX;Cu.stringify=Cu.encode=kT;Cu.safe=ec;Cu.unsafe=h0;var Vw=typeof process<"u"&&process.platform==="win32"?`\r
|
|
394
|
+
`),s=s.replace(/\\r/g,"\r")),t[i]=s}return t}function GH(e){let t=o3(e),r=Gt.configDotenv({path:t});if(!r.parsed){let o=new Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);throw o.code="MISSING_DATA",o}let n=s3(e).split(","),i=n.length,s;for(let o=0;o<i;o++)try{let a=n[o].trim(),u=HH(r,a);s=Gt.decrypt(u.ciphertext,u.key);break}catch(a){if(o+1>=i)throw a}return Gt.parse(s)}function qH(e){console.log(`[dotenv@${sw}][INFO] ${e}`)}function zH(e){console.log(`[dotenv@${sw}][WARN] ${e}`)}function jh(e){console.log(`[dotenv@${sw}][DEBUG] ${e}`)}function s3(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function HH(e,t){let r;try{r=new URL(t)}catch(a){if(a.code==="ERR_INVALID_URL"){let u=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw u.code="INVALID_DOTENV_KEY",u}throw a}let n=r.password;if(!n){let a=new Error("INVALID_DOTENV_KEY: Missing key part");throw a.code="INVALID_DOTENV_KEY",a}let i=r.searchParams.get("environment");if(!i){let a=new Error("INVALID_DOTENV_KEY: Missing environment part");throw a.code="INVALID_DOTENV_KEY",a}let s=`DOTENV_VAULT_${i.toUpperCase()}`,o=e.parsed[s];if(!o){let a=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${s} in your .env.vault file.`);throw a.code="NOT_FOUND_DOTENV_ENVIRONMENT",a}return{ciphertext:o,key:n}}function o3(e){let t=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(let r of e.path)nw.existsSync(r)&&(t=r.endsWith(".vault")?r:`${r}.vault`);else t=e.path.endsWith(".vault")?e.path:`${e.path}.vault`;else t=iw.resolve(process.cwd(),".env.vault");return nw.existsSync(t)?t:null}function i3(e){return e[0]==="~"?iw.join(jH.homedir(),e.slice(1)):e}function YH(e){qH("Loading env from encrypted .env.vault");let t=Gt._parseVault(e),r=process.env;return e&&e.processEnv!=null&&(r=e.processEnv),Gt.populate(r,t,e),{parsed:t}}function KH(e){let t=iw.resolve(process.cwd(),".env"),r="utf8",n=!!(e&&e.debug);e&&e.encoding?r=e.encoding:n&&jh("No encoding is specified. UTF-8 is used by default");let i=[t];if(e&&e.path)if(!Array.isArray(e.path))i=[i3(e.path)];else{i=[];for(let u of e.path)i.push(i3(u))}let s,o={};for(let u of i)try{let l=Gt.parse(nw.readFileSync(u,{encoding:r}));Gt.populate(o,l,e)}catch(l){n&&jh(`Failed to load ${u} ${l.message}`),s=l}let a=process.env;return e&&e.processEnv!=null&&(a=e.processEnv),Gt.populate(a,o,e),s?{parsed:o,error:s}:{parsed:o}}function XH(e){if(s3(e).length===0)return Gt.configDotenv(e);let t=o3(e);return t?Gt._configVault(e):(zH(`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`),Gt.configDotenv(e))}function JH(e,t){let r=Buffer.from(t.slice(-64),"hex"),n=Buffer.from(e,"base64"),i=n.subarray(0,12),s=n.subarray(-16);n=n.subarray(12,-16);try{let o=VH.createDecipheriv("aes-256-gcm",r,i);return o.setAuthTag(s),`${o.update(n)}${o.final()}`}catch(o){let a=o instanceof RangeError,u=o.message==="Invalid key length",l=o.message==="Unsupported state or unable to authenticate data";if(a||u){let c=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw c.code="INVALID_DOTENV_KEY",c}else if(l){let c=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw c.code="DECRYPTION_FAILED",c}else throw o}}function ZH(e,t,r={}){let n=!!(r&&r.debug),i=!!(r&&r.override);if(typeof t!="object"){let s=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw s.code="OBJECT_REQUIRED",s}for(let s of Object.keys(t))Object.prototype.hasOwnProperty.call(e,s)?(i===!0&&(e[s]=t[s]),n&&jh(i===!0?`"${s}" is already defined and WAS overwritten`:`"${s}" is already defined and was NOT overwritten`)):e[s]=t[s]}var Gt={configDotenv:KH,_configVault:YH,_parseVault:GH,config:XH,decrypt:JH,parse:WH,populate:ZH};ws.exports.configDotenv=Gt.configDotenv;ws.exports._configVault=Gt._configVault;ws.exports._parseVault=Gt._parseVault;ws.exports.config=Gt.config;ws.exports.decrypt=Gt.decrypt;ws.exports.parse=Gt.parse;ws.exports.populate=Gt.populate;ws.exports=Gt});var b3=N((sDe,_3)=>{var Wo=V("constants"),fK=process.cwd,Qh=null,pK=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Qh||(Qh=fK.call(process)),Qh};try{process.cwd()}catch{}typeof process.chdir=="function"&&(hw=process.chdir,process.chdir=function(e){Qh=null,hw.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,hw));var hw;_3.exports=dK;function dK(e){Wo.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=s(e.chown),e.fchown=s(e.fchown),e.lchown=s(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=o(e.chownSync),e.fchownSync=o(e.fchownSync),e.lchownSync=o(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(c,f,p){p&&process.nextTick(p)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(c,f,p,d){d&&process.nextTick(d)},e.lchownSync=function(){}),pK==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(c){function f(p,d,m){var y=Date.now(),D=0;c(p,d,function h(g){if(g&&(g.code==="EACCES"||g.code==="EPERM"||g.code==="EBUSY")&&Date.now()-y<6e4){setTimeout(function(){e.stat(d,function(v,w){v&&v.code==="ENOENT"?c(p,d,h):m(g)})},D),D<100&&(D+=10);return}m&&m(g)})}return Object.setPrototypeOf&&Object.setPrototypeOf(f,c),f}(e.rename)),e.read=typeof e.read!="function"?e.read:function(c){function f(p,d,m,y,D,h){var g;if(h&&typeof h=="function"){var v=0;g=function(w,E,I){if(w&&w.code==="EAGAIN"&&v<10)return v++,c.call(e,p,d,m,y,D,g);h.apply(this,arguments)}}return c.call(e,p,d,m,y,D,g)}return Object.setPrototypeOf&&Object.setPrototypeOf(f,c),f}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(c){return function(f,p,d,m,y){for(var D=0;;)try{return c.call(e,f,p,d,m,y)}catch(h){if(h.code==="EAGAIN"&&D<10){D++;continue}throw h}}}(e.readSync);function t(c){c.lchmod=function(f,p,d){c.open(f,Wo.O_WRONLY|Wo.O_SYMLINK,p,function(m,y){if(m){d&&d(m);return}c.fchmod(y,p,function(D){c.close(y,function(h){d&&d(D||h)})})})},c.lchmodSync=function(f,p){var d=c.openSync(f,Wo.O_WRONLY|Wo.O_SYMLINK,p),m=!0,y;try{y=c.fchmodSync(d,p),m=!1}finally{if(m)try{c.closeSync(d)}catch{}else c.closeSync(d)}return y}}function r(c){Wo.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(f,p,d,m){c.open(f,Wo.O_SYMLINK,function(y,D){if(y){m&&m(y);return}c.futimes(D,p,d,function(h){c.close(D,function(g){m&&m(h||g)})})})},c.lutimesSync=function(f,p,d){var m=c.openSync(f,Wo.O_SYMLINK),y,D=!0;try{y=c.futimesSync(m,p,d),D=!1}finally{if(D)try{c.closeSync(m)}catch{}else c.closeSync(m)}return y}):c.futimes&&(c.lutimes=function(f,p,d,m){m&&process.nextTick(m)},c.lutimesSync=function(){})}function n(c){return c&&function(f,p,d){return c.call(e,f,p,function(m){l(m)&&(m=null),d&&d.apply(this,arguments)})}}function i(c){return c&&function(f,p){try{return c.call(e,f,p)}catch(d){if(!l(d))throw d}}}function s(c){return c&&function(f,p,d,m){return c.call(e,f,p,d,function(y){l(y)&&(y=null),m&&m.apply(this,arguments)})}}function o(c){return c&&function(f,p,d){try{return c.call(e,f,p,d)}catch(m){if(!l(m))throw m}}}function a(c){return c&&function(f,p,d){typeof p=="function"&&(d=p,p=null);function m(y,D){D&&(D.uid<0&&(D.uid+=4294967296),D.gid<0&&(D.gid+=4294967296)),d&&d.apply(this,arguments)}return p?c.call(e,f,p,m):c.call(e,f,m)}}function u(c){return c&&function(f,p){var d=p?c.call(e,f,p):c.call(e,f);return d&&(d.uid<0&&(d.uid+=4294967296),d.gid<0&&(d.gid+=4294967296)),d}}function l(c){if(!c||c.code==="ENOSYS")return!0;var f=!process.getuid||process.getuid()!==0;return!!(f&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var A3=N((oDe,F3)=>{var O3=V("stream").Stream;F3.exports=mK;function mK(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);O3.call(this);var s=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var o=Object.keys(i),a=0,u=o.length;a<u;a++){var l=o[a];this[l]=i[l]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}e.open(this.path,this.flags,this.mode,function(c,f){if(c){s.emit("error",c),s.readable=!1;return}s.fd=f,s.emit("open",f),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);O3.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),o=0,a=s.length;o<a;o++){var u=s[o];this[u]=i[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var T3=N((aDe,I3)=>{"use strict";I3.exports=gK;var hK=Object.getPrototypeOf||function(e){return e.__proto__};function gK(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:hK(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var R3=N((uDe,Dw)=>{var _t=V("fs"),yK=b3(),DK=A3(),vK=T3(),e0=V("util"),lr,r0;typeof Symbol=="function"&&typeof Symbol.for=="function"?(lr=Symbol.for("graceful-fs.queue"),r0=Symbol.for("graceful-fs.previous")):(lr="___graceful-fs.queue",r0="___graceful-fs.previous");function wK(){}function N3(e,t){Object.defineProperty(e,lr,{get:function(){return t}})}var yu=wK;e0.debuglog?yu=e0.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(yu=function(){var e=e0.format.apply(e0,arguments);e="GFS4: "+e.split(/\n/).join(`
|
|
395
|
+
GFS4: `),console.error(e)});_t[lr]||(P3=global[lr]||[],N3(_t,P3),_t.close=function(e){function t(r,n){return e.call(_t,r,function(i){i||L3(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,r0,{value:e}),t}(_t.close),_t.closeSync=function(e){function t(r){e.apply(_t,arguments),L3()}return Object.defineProperty(t,r0,{value:e}),t}(_t.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){yu(_t[lr]),V("assert").equal(_t[lr].length,0)}));var P3;global[lr]||N3(global,_t[lr]);Dw.exports=gw(vK(_t));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!_t.__patched&&(Dw.exports=gw(_t),_t.__patched=!0);function gw(e){yK(e),e.gracefulify=gw,e.createReadStream=E,e.createWriteStream=I;var t=e.readFile;e.readFile=r;function r(b,T,F){return typeof T=="function"&&(F=T,T=null),k(b,T,F);function k(R,q,M,ee){return t(R,q,function(G){G&&(G.code==="EMFILE"||G.code==="ENFILE")?zl([k,[R,q,M],G,ee||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(b,T,F,k){return typeof F=="function"&&(k=F,F=null),R(b,T,F,k);function R(q,M,ee,G,re){return n(q,M,ee,function(ne){ne&&(ne.code==="EMFILE"||ne.code==="ENFILE")?zl([R,[q,M,ee,G],ne,re||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=o);function o(b,T,F,k){return typeof F=="function"&&(k=F,F=null),R(b,T,F,k);function R(q,M,ee,G,re){return s(q,M,ee,function(ne){ne&&(ne.code==="EMFILE"||ne.code==="ENFILE")?zl([R,[q,M,ee,G],ne,re||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}var a=e.copyFile;a&&(e.copyFile=u);function u(b,T,F,k){return typeof F=="function"&&(k=F,F=0),R(b,T,F,k);function R(q,M,ee,G,re){return a(q,M,ee,function(ne){ne&&(ne.code==="EMFILE"||ne.code==="ENFILE")?zl([R,[q,M,ee,G],ne,re||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}var l=e.readdir;e.readdir=f;var c=/^v[0-5]\./;function f(b,T,F){typeof T=="function"&&(F=T,T=null);var k=c.test(process.version)?function(M,ee,G,re){return l(M,R(M,ee,G,re))}:function(M,ee,G,re){return l(M,ee,R(M,ee,G,re))};return k(b,T,F);function R(q,M,ee,G){return function(re,ne){re&&(re.code==="EMFILE"||re.code==="ENFILE")?zl([k,[q,M,ee],re,G||Date.now(),Date.now()]):(ne&&ne.sort&&ne.sort(),typeof ee=="function"&&ee.call(this,re,ne))}}}if(process.version.substr(0,4)==="v0.8"){var p=DK(e);h=p.ReadStream,v=p.WriteStream}var d=e.ReadStream;d&&(h.prototype=Object.create(d.prototype),h.prototype.open=g);var m=e.WriteStream;m&&(v.prototype=Object.create(m.prototype),v.prototype.open=w),Object.defineProperty(e,"ReadStream",{get:function(){return h},set:function(b){h=b},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return v},set:function(b){v=b},enumerable:!0,configurable:!0});var y=h;Object.defineProperty(e,"FileReadStream",{get:function(){return y},set:function(b){y=b},enumerable:!0,configurable:!0});var D=v;Object.defineProperty(e,"FileWriteStream",{get:function(){return D},set:function(b){D=b},enumerable:!0,configurable:!0});function h(b,T){return this instanceof h?(d.apply(this,arguments),this):h.apply(Object.create(h.prototype),arguments)}function g(){var b=this;W(b.path,b.flags,b.mode,function(T,F){T?(b.autoClose&&b.destroy(),b.emit("error",T)):(b.fd=F,b.emit("open",F),b.read())})}function v(b,T){return this instanceof v?(m.apply(this,arguments),this):v.apply(Object.create(v.prototype),arguments)}function w(){var b=this;W(b.path,b.flags,b.mode,function(T,F){T?(b.destroy(),b.emit("error",T)):(b.fd=F,b.emit("open",F))})}function E(b,T){return new e.ReadStream(b,T)}function I(b,T){return new e.WriteStream(b,T)}var A=e.open;e.open=W;function W(b,T,F,k){return typeof F=="function"&&(k=F,F=null),R(b,T,F,k);function R(q,M,ee,G,re){return A(q,M,ee,function(ne,Ce){ne&&(ne.code==="EMFILE"||ne.code==="ENFILE")?zl([R,[q,M,ee,G],ne,re||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}return e}function zl(e){yu("ENQUEUE",e[0].name,e[1]),_t[lr].push(e),yw()}var t0;function L3(){for(var e=Date.now(),t=0;t<_t[lr].length;++t)_t[lr][t].length>2&&(_t[lr][t][3]=e,_t[lr][t][4]=e);yw()}function yw(){if(clearTimeout(t0),t0=void 0,_t[lr].length!==0){var e=_t[lr].shift(),t=e[0],r=e[1],n=e[2],i=e[3],s=e[4];if(i===void 0)yu("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){yu("TIMEOUT",t.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-s,u=Math.max(s-i,1),l=Math.min(u*1.2,100);a>=l?(yu("RETRY",t.name,r),t.apply(null,r.concat([i]))):_t[lr].push(e)}t0===void 0&&(t0=setTimeout(yw,0))}}});var hp=N((gve,aT)=>{var PK=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};aT.exports=PK});var gp=N((yve,uT)=>{var LK="2.0.0",NK=Number.MAX_SAFE_INTEGER||9007199254740991,RK=16,BK=250,kK=["major","premajor","minor","preminor","patch","prepatch","prerelease"];uT.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:RK,MAX_SAFE_BUILD_LENGTH:BK,MAX_SAFE_INTEGER:NK,RELEASE_TYPES:kK,SEMVER_SPEC_VERSION:LK,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Kl=N((Os,lT)=>{var{MAX_SAFE_COMPONENT_LENGTH:Aw,MAX_SAFE_BUILD_LENGTH:MK,MAX_LENGTH:jK}=gp(),VK=hp();Os=lT.exports={};var UK=Os.re=[],$K=Os.safeRe=[],fe=Os.src=[],pe=Os.t={},WK=0,Iw="[a-zA-Z0-9-]",GK=[["\\s",1],["\\d",jK],[Iw,MK]],qK=e=>{for(let[t,r]of GK)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},Me=(e,t,r)=>{let n=qK(t),i=WK++;VK(e,i,t),pe[e]=i,fe[i]=t,UK[i]=new RegExp(t,r?"g":void 0),$K[i]=new RegExp(n,r?"g":void 0)};Me("NUMERICIDENTIFIER","0|[1-9]\\d*");Me("NUMERICIDENTIFIERLOOSE","\\d+");Me("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Iw}*`);Me("MAINVERSION",`(${fe[pe.NUMERICIDENTIFIER]})\\.(${fe[pe.NUMERICIDENTIFIER]})\\.(${fe[pe.NUMERICIDENTIFIER]})`);Me("MAINVERSIONLOOSE",`(${fe[pe.NUMERICIDENTIFIERLOOSE]})\\.(${fe[pe.NUMERICIDENTIFIERLOOSE]})\\.(${fe[pe.NUMERICIDENTIFIERLOOSE]})`);Me("PRERELEASEIDENTIFIER",`(?:${fe[pe.NUMERICIDENTIFIER]}|${fe[pe.NONNUMERICIDENTIFIER]})`);Me("PRERELEASEIDENTIFIERLOOSE",`(?:${fe[pe.NUMERICIDENTIFIERLOOSE]}|${fe[pe.NONNUMERICIDENTIFIER]})`);Me("PRERELEASE",`(?:-(${fe[pe.PRERELEASEIDENTIFIER]}(?:\\.${fe[pe.PRERELEASEIDENTIFIER]})*))`);Me("PRERELEASELOOSE",`(?:-?(${fe[pe.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${fe[pe.PRERELEASEIDENTIFIERLOOSE]})*))`);Me("BUILDIDENTIFIER",`${Iw}+`);Me("BUILD",`(?:\\+(${fe[pe.BUILDIDENTIFIER]}(?:\\.${fe[pe.BUILDIDENTIFIER]})*))`);Me("FULLPLAIN",`v?${fe[pe.MAINVERSION]}${fe[pe.PRERELEASE]}?${fe[pe.BUILD]}?`);Me("FULL",`^${fe[pe.FULLPLAIN]}$`);Me("LOOSEPLAIN",`[v=\\s]*${fe[pe.MAINVERSIONLOOSE]}${fe[pe.PRERELEASELOOSE]}?${fe[pe.BUILD]}?`);Me("LOOSE",`^${fe[pe.LOOSEPLAIN]}$`);Me("GTLT","((?:<|>)?=?)");Me("XRANGEIDENTIFIERLOOSE",`${fe[pe.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Me("XRANGEIDENTIFIER",`${fe[pe.NUMERICIDENTIFIER]}|x|X|\\*`);Me("XRANGEPLAIN",`[v=\\s]*(${fe[pe.XRANGEIDENTIFIER]})(?:\\.(${fe[pe.XRANGEIDENTIFIER]})(?:\\.(${fe[pe.XRANGEIDENTIFIER]})(?:${fe[pe.PRERELEASE]})?${fe[pe.BUILD]}?)?)?`);Me("XRANGEPLAINLOOSE",`[v=\\s]*(${fe[pe.XRANGEIDENTIFIERLOOSE]})(?:\\.(${fe[pe.XRANGEIDENTIFIERLOOSE]})(?:\\.(${fe[pe.XRANGEIDENTIFIERLOOSE]})(?:${fe[pe.PRERELEASELOOSE]})?${fe[pe.BUILD]}?)?)?`);Me("XRANGE",`^${fe[pe.GTLT]}\\s*${fe[pe.XRANGEPLAIN]}$`);Me("XRANGELOOSE",`^${fe[pe.GTLT]}\\s*${fe[pe.XRANGEPLAINLOOSE]}$`);Me("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Aw}})(?:\\.(\\d{1,${Aw}}))?(?:\\.(\\d{1,${Aw}}))?`);Me("COERCE",`${fe[pe.COERCEPLAIN]}(?:$|[^\\d])`);Me("COERCEFULL",fe[pe.COERCEPLAIN]+`(?:${fe[pe.PRERELEASE]})?(?:${fe[pe.BUILD]})?(?:$|[^\\d])`);Me("COERCERTL",fe[pe.COERCE],!0);Me("COERCERTLFULL",fe[pe.COERCEFULL],!0);Me("LONETILDE","(?:~>?)");Me("TILDETRIM",`(\\s*)${fe[pe.LONETILDE]}\\s+`,!0);Os.tildeTrimReplace="$1~";Me("TILDE",`^${fe[pe.LONETILDE]}${fe[pe.XRANGEPLAIN]}$`);Me("TILDELOOSE",`^${fe[pe.LONETILDE]}${fe[pe.XRANGEPLAINLOOSE]}$`);Me("LONECARET","(?:\\^)");Me("CARETTRIM",`(\\s*)${fe[pe.LONECARET]}\\s+`,!0);Os.caretTrimReplace="$1^";Me("CARET",`^${fe[pe.LONECARET]}${fe[pe.XRANGEPLAIN]}$`);Me("CARETLOOSE",`^${fe[pe.LONECARET]}${fe[pe.XRANGEPLAINLOOSE]}$`);Me("COMPARATORLOOSE",`^${fe[pe.GTLT]}\\s*(${fe[pe.LOOSEPLAIN]})$|^$`);Me("COMPARATOR",`^${fe[pe.GTLT]}\\s*(${fe[pe.FULLPLAIN]})$|^$`);Me("COMPARATORTRIM",`(\\s*)${fe[pe.GTLT]}\\s*(${fe[pe.LOOSEPLAIN]}|${fe[pe.XRANGEPLAIN]})`,!0);Os.comparatorTrimReplace="$1$2$3";Me("HYPHENRANGE",`^\\s*(${fe[pe.XRANGEPLAIN]})\\s+-\\s+(${fe[pe.XRANGEPLAIN]})\\s*$`);Me("HYPHENRANGELOOSE",`^\\s*(${fe[pe.XRANGEPLAINLOOSE]})\\s+-\\s+(${fe[pe.XRANGEPLAINLOOSE]})\\s*$`);Me("STAR","(<|>)?=?\\s*\\*");Me("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Me("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var u0=N((Dve,cT)=>{var zK=Object.freeze({loose:!0}),HK=Object.freeze({}),YK=e=>e?typeof e!="object"?zK:e:HK;cT.exports=YK});var Tw=N((vve,dT)=>{var fT=/^[0-9]+$/,pT=(e,t)=>{let r=fT.test(e),n=fT.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},KK=(e,t)=>pT(t,e);dT.exports={compareIdentifiers:pT,rcompareIdentifiers:KK}});var Sr=N((wve,yT)=>{var l0=hp(),{MAX_LENGTH:mT,MAX_SAFE_INTEGER:c0}=gp(),{safeRe:hT,t:gT}=Kl(),XK=u0(),{compareIdentifiers:Xl}=Tw(),Pw=class e{constructor(t,r){if(r=XK(r),t instanceof e){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>mT)throw new TypeError(`version is longer than ${mT} characters`);l0("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?hT[gT.LOOSE]:hT[gT.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>c0||this.major<0)throw new TypeError("Invalid major version");if(this.minor>c0||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>c0||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let s=+i;if(s>=0&&s<c0)return s}return i}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(l0("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if(typeof t=="string"&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),Xl(this.major,t.major)||Xl(this.minor,t.minor)||Xl(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],i=t.prerelease[r];if(l0("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return Xl(n,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let n=this.build[r],i=t.build[r];if(l0("build compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return Xl(n,i)}while(++r)}inc(t,r,n){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let i=Number(n)?1:0;if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[i];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let s=[r,i];n===!1&&(s=[r]),Xl(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};yT.exports=Pw});var wu=N((Cve,vT)=>{var DT=Sr(),JK=(e,t,r=!1)=>{if(e instanceof DT)return e;try{return new DT(e,t)}catch(n){if(!r)return null;throw n}};vT.exports=JK});var Lw=N((Eve,CT)=>{var wT=wu(),ZK=(e,t)=>{let r=wT(e,null,!0),n=wT(t,null,!0),i=r.compare(n);if(i===0)return null;let s=i>0,o=s?r:n,a=s?n:r,u=!!o.prerelease.length;if(!!a.prerelease.length&&!u)return!a.patch&&!a.minor?"major":o.patch?"patch":o.minor?"minor":"major";let c=u?"pre":"";return r.major!==n.major?c+"major":r.minor!==n.minor?c+"minor":r.patch!==n.patch?c+"patch":"prerelease"};CT.exports=ZK});var Yn=N((Sve,ST)=>{var ET=Sr(),QK=(e,t,r)=>new ET(e,r).compare(new ET(t,r));ST.exports=QK});var Jl=N((xve,xT)=>{var eX=Yn(),tX=(e,t,r)=>eX(e,t,r)>0;xT.exports=tX});var VT=N(Cu=>{Cu.parse=Cu.decode=aX;Cu.stringify=Cu.encode=kT;Cu.safe=ec;Cu.unsafe=h0;var Vw=typeof process<"u"&&process.platform==="win32"?`\r
|
|
396
396
|
`:`
|
|
397
397
|
`;function kT(e,t){var r=[],n="";typeof t=="string"?t={section:t,whitespace:!1}:(t=t||{},t.whitespace=t.whitespace===!0);var i=t.whitespace?" = ":"=";return Object.keys(e).forEach(function(s,o,a){var u=e[s];u&&Array.isArray(u)?u.forEach(function(l){n+=ec(s+"[]")+i+ec(l)+`
|
|
398
|
-
`}):u&&typeof u=="object"?r.push(s):n+=ec(s)+i+ec(u)+Vw}),t.section&&n.length&&(n="["+ec(t.section)+"]"+Vw+n),r.forEach(function(s,o,a){var u=MT(s).join("\\."),l=(t.section?t.section+".":"")+u,c=kT(e[s],{section:l,whitespace:t.whitespace});n.length&&c.length&&(n+=Vw),n+=c}),n}function MT(e){return e.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(function(t){return t.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")})}function aX(e){var t={},r=t,n=null,i=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i,s=e.split(/[\r\n]+/g);return s.forEach(function(o,a,u){if(!(!o||o.match(/^\s*[;#]/))){var l=o.match(i);if(l){if(l[1]!==void 0){if(n=h0(l[1]),n==="__proto__"){r={};return}r=t[n]=t[n]||{};return}var c=h0(l[2]);if(c!=="__proto__"){var f=l[3]?h0(l[4]):!0;switch(f){case"true":case"false":case"null":f=JSON.parse(f)}if(c.length>2&&c.slice(-2)==="[]"){if(c=c.substring(0,c.length-2),c==="__proto__")return;r[c]?Array.isArray(r[c])||(r[c]=[r[c]]):r[c]=[]}Array.isArray(r[c])?r[c].push(f):r[c]=f}}}}),Object.keys(t).filter(function(o,a,u){if(!t[o]||typeof t[o]!="object"||Array.isArray(t[o]))return!1;var l=MT(o),c=t,f=l.pop(),p=f.replace(/\\\./g,".");return l.forEach(function(d,m,y){d!=="__proto__"&&((!c[d]||typeof c[d]!="object")&&(c[d]={}),c=c[d])}),c===t&&p===f?!1:(c[p]=t[o],!0)}).forEach(function(o,a,u){delete t[o]}),t}function jT(e){return e.charAt(0)==='"'&&e.slice(-1)==='"'||e.charAt(0)==="'"&&e.slice(-1)==="'"}function ec(e){return typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&jT(e)||e!==e.trim()?JSON.stringify(e):e.replace(/;/g,"\\;").replace(/#/g,"\\#")}function h0(e,t){if(e=(e||"").trim(),jT(e)){e.charAt(0)==="'"&&(e=e.substr(1,e.length-2));try{e=JSON.parse(e)}catch{}}else{for(var r=!1,n="",i=0,s=e.length;i<s;i++){var o=e.charAt(i);if(r)"\\;#".indexOf(o)!==-1?n+=o:n+="\\"+o,r=!1;else{if(";#".indexOf(o)!==-1)break;o==="\\"?r=!0:n+=o}}return r&&(n+="\\"),n.trim()}return e}});var WT=N((
|
|
398
|
+
`}):u&&typeof u=="object"?r.push(s):n+=ec(s)+i+ec(u)+Vw}),t.section&&n.length&&(n="["+ec(t.section)+"]"+Vw+n),r.forEach(function(s,o,a){var u=MT(s).join("\\."),l=(t.section?t.section+".":"")+u,c=kT(e[s],{section:l,whitespace:t.whitespace});n.length&&c.length&&(n+=Vw),n+=c}),n}function MT(e){return e.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(function(t){return t.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")})}function aX(e){var t={},r=t,n=null,i=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i,s=e.split(/[\r\n]+/g);return s.forEach(function(o,a,u){if(!(!o||o.match(/^\s*[;#]/))){var l=o.match(i);if(l){if(l[1]!==void 0){if(n=h0(l[1]),n==="__proto__"){r={};return}r=t[n]=t[n]||{};return}var c=h0(l[2]);if(c!=="__proto__"){var f=l[3]?h0(l[4]):!0;switch(f){case"true":case"false":case"null":f=JSON.parse(f)}if(c.length>2&&c.slice(-2)==="[]"){if(c=c.substring(0,c.length-2),c==="__proto__")return;r[c]?Array.isArray(r[c])||(r[c]=[r[c]]):r[c]=[]}Array.isArray(r[c])?r[c].push(f):r[c]=f}}}}),Object.keys(t).filter(function(o,a,u){if(!t[o]||typeof t[o]!="object"||Array.isArray(t[o]))return!1;var l=MT(o),c=t,f=l.pop(),p=f.replace(/\\\./g,".");return l.forEach(function(d,m,y){d!=="__proto__"&&((!c[d]||typeof c[d]!="object")&&(c[d]={}),c=c[d])}),c===t&&p===f?!1:(c[p]=t[o],!0)}).forEach(function(o,a,u){delete t[o]}),t}function jT(e){return e.charAt(0)==='"'&&e.slice(-1)==='"'||e.charAt(0)==="'"&&e.slice(-1)==="'"}function ec(e){return typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&jT(e)||e!==e.trim()?JSON.stringify(e):e.replace(/;/g,"\\;").replace(/#/g,"\\#")}function h0(e,t){if(e=(e||"").trim(),jT(e)){e.charAt(0)==="'"&&(e=e.substr(1,e.length-2));try{e=JSON.parse(e)}catch{}}else{for(var r=!1,n="",i=0,s=e.length;i<s;i++){var o=e.charAt(i);if(r)"\\;#".indexOf(o)!==-1?n+=o:n+="\\"+o,r=!1;else{if(";#".indexOf(o)!==-1)break;o==="\\"?r=!0:n+=o}}return r&&(n+="\\"),n.trim()}return e}});var WT=N((Zve,$T)=>{"use strict";var Uw=1,UT=2;function uX(){return""}function lX(e,t,r){return e.slice(t,r).replace(/\S/g," ")}$T.exports=function(e,t){t=t||{};for(var r,n,i=!1,s=!1,o=0,a="",u=t.whitespace===!1?uX:lX,l=0;l<e.length;l++){if(r=e[l],n=e[l+1],!s&&r==='"'){var c=e[l-1]==="\\"&&e[l-2]!=="\\";c||(i=!i)}if(!i){if(!s&&r+n==="//")a+=e.slice(o,l),o=l,s=Uw,l++;else if(s===Uw&&r+n===`\r
|
|
399
399
|
`){l++,s=!1,a+=u(e,o,l),o=l;continue}else if(s===Uw&&r===`
|
|
400
|
-
`)s=!1,a+=u(e,o,l),o=l;else if(!s&&r+n==="/*"){a+=e.slice(o,l),o=l,s=UT,l++;continue}else if(s===UT&&r+n==="*/"){l++,s=!1,a+=u(e,o,l+1),o=l+1;continue}}}return a+(s?u(e.substr(o)):e.substr(o))}});var qT=N(tc=>{"use strict";var GT=V("fs"),cX=VT(),wp=V("path"),fX=WT(),pX=tc.parse=function(e){return/^\s*{/.test(e)?JSON.parse(fX(e)):cX.parse(e)},dX=tc.file=function(){var e=[].slice.call(arguments).filter(function(i){return i!=null});for(var t in e)if(typeof e[t]!="string")return;var r=wp.join.apply(null,e),n;try{return GT.readFileSync(r,"utf-8")}catch{return}},e1e=tc.json=function(){var e=dX.apply(null,arguments);return e?pX(e):null},t1e=tc.env=function(e,t){t=t||process.env;var r={},n=e.length;for(var i in t)if(i.toLowerCase().indexOf(e.toLowerCase())===0){for(var s=i.substring(n).split("__"),o;(o=s.indexOf(""))>-1;)s.splice(o,1);var a=r;s.forEach(function(l,c){!l||typeof a!="object"||(c===s.length-1&&(a[l]=t[i]),a[l]===void 0&&(a[l]={}),a=a[l])})}return r},r1e=tc.find=function(){var e=wp.join.apply(null,[].slice.call(arguments));function t(r,n){var i=wp.join(r,n);try{return GT.statSync(i),i}catch{if(wp.dirname(r)!==r)return t(wp.dirname(r),n)}}return t(process.cwd(),e)}});var JT=N((i1e,XT)=>{"use strict";function HT(e){return e instanceof Buffer||e instanceof Date||e instanceof RegExp}function YT(e){if(e instanceof Buffer){var t=Buffer.alloc?Buffer.alloc(e.length):new Buffer(e.length);return e.copy(t),t}else{if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);throw new Error("Unexpected situation")}}function KT(e){var t=[];return e.forEach(function(r,n){typeof r=="object"&&r!==null?Array.isArray(r)?t[n]=KT(r):HT(r)?t[n]=YT(r):t[n]=$w({},r):t[n]=r}),t}function zT(e,t){return t==="__proto__"?void 0:e[t]}var $w=XT.exports=function(){if(arguments.length<1||typeof arguments[0]!="object")return!1;if(arguments.length<2)return arguments[0];var e=arguments[0],t=Array.prototype.slice.call(arguments,1),r,n,i;return t.forEach(function(s){typeof s!="object"||s===null||Array.isArray(s)||Object.keys(s).forEach(function(o){if(n=zT(e,o),r=zT(s,o),r!==e)if(typeof r!="object"||r===null){e[o]=r;return}else if(Array.isArray(r)){e[o]=KT(r);return}else if(HT(r)){e[o]=YT(r);return}else if(typeof n!="object"||n===null||Array.isArray(n)){e[o]=$w({},r);return}else{e[o]=$w(n,r);return}})}),e}});var tP=N((s1e,eP)=>{"use strict";function mX(e,t){var r=e;t.slice(0,-1).forEach(function(i){r=r[i]||{}});var n=t[t.length-1];return n in r}function ZT(e){return typeof e=="number"||/^0x[0-9a-f]+$/i.test(e)?!0:/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function QT(e,t){return t==="constructor"&&typeof e[t]=="function"||t==="__proto__"}eP.exports=function(e,t){t||(t={});var r={bools:{},strings:{},unknownFn:null};typeof t.unknown=="function"&&(r.unknownFn=t.unknown),typeof t.boolean=="boolean"&&t.boolean?r.allBools=!0:[].concat(t.boolean).filter(Boolean).forEach(function(w){r.bools[w]=!0});var n={};function i(w){return n[w].some(function(E){return r.bools[E]})}Object.keys(t.alias||{}).forEach(function(w){n[w]=[].concat(t.alias[w]),n[w].forEach(function(E){n[E]=[w].concat(n[w].filter(function(I){return E!==I}))})}),[].concat(t.string).filter(Boolean).forEach(function(w){r.strings[w]=!0,n[w]&&[].concat(n[w]).forEach(function(E){r.strings[E]=!0})});var s=t.default||{},o={_:[]};function a(w,E){return r.allBools&&/^--[^=]+$/.test(E)||r.strings[w]||r.bools[w]||n[w]}function u(w,E,I){for(var A=w,W=0;W<E.length-1;W++){var b=E[W];if(QT(A,b))return;A[b]===void 0&&(A[b]={}),(A[b]===Object.prototype||A[b]===Number.prototype||A[b]===String.prototype)&&(A[b]={}),A[b]===Array.prototype&&(A[b]=[]),A=A[b]}var T=E[E.length-1];QT(A,T)||((A===Object.prototype||A===Number.prototype||A===String.prototype)&&(A={}),A===Array.prototype&&(A=[]),A[T]===void 0||r.bools[T]||typeof A[T]=="boolean"?A[T]=I:Array.isArray(A[T])?A[T].push(I):A[T]=[A[T],I])}function l(w,E,I){if(!(I&&r.unknownFn&&!a(w,I)&&r.unknownFn(I)===!1)){var A=!r.strings[w]&&ZT(E)?Number(E):E;u(o,w.split("."),A),(n[w]||[]).forEach(function(W){u(o,W.split("."),A)})}}Object.keys(r.bools).forEach(function(w){l(w,s[w]===void 0?!1:s[w])});var c=[];e.indexOf("--")!==-1&&(c=e.slice(e.indexOf("--")+1),e=e.slice(0,e.indexOf("--")));for(var f=0;f<e.length;f++){var p=e[f],d,m;if(/^--.+=/.test(p)){var y=p.match(/^--([^=]+)=([\s\S]*)$/);d=y[1];var D=y[2];r.bools[d]&&(D=D!=="false"),l(d,D,p)}else if(/^--no-.+/.test(p))d=p.match(/^--no-(.+)/)[1],l(d,!1,p);else if(/^--.+/.test(p))d=p.match(/^--(.+)/)[1],m=e[f+1],m!==void 0&&!/^(-|--)[^-]/.test(m)&&!r.bools[d]&&!r.allBools&&(!n[d]||!i(d))?(l(d,m,p),f+=1):/^(true|false)$/.test(m)?(l(d,m==="true",p),f+=1):l(d,r.strings[d]?"":!0,p);else if(/^-[^-]+/.test(p)){for(var h=p.slice(1,-1).split(""),g=!1,v=0;v<h.length;v++){if(m=p.slice(v+2),m==="-"){l(h[v],m,p);continue}if(/[A-Za-z]/.test(h[v])&&m[0]==="="){l(h[v],m.slice(1),p),g=!0;break}if(/[A-Za-z]/.test(h[v])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(m)){l(h[v],m,p),g=!0;break}if(h[v+1]&&h[v+1].match(/\W/)){l(h[v],p.slice(v+2),p),g=!0;break}else l(h[v],r.strings[h[v]]?"":!0,p)}d=p.slice(-1)[0],!g&&d!=="-"&&(e[f+1]&&!/^(-|--)[^-]/.test(e[f+1])&&!r.bools[d]&&(!n[d]||!i(d))?(l(d,e[f+1],p),f+=1):e[f+1]&&/^(true|false)$/.test(e[f+1])?(l(d,e[f+1]==="true",p),f+=1):l(d,r.strings[d]?"":!0,p))}else if((!r.unknownFn||r.unknownFn(p)!==!1)&&o._.push(r.strings._||!ZT(p)?p:Number(p)),t.stopEarly){o._.push.apply(o._,e.slice(f+1));break}}return Object.keys(s).forEach(function(w){mX(o,w.split("."))||(u(o,w.split("."),s[w]),(n[w]||[]).forEach(function(E){u(o,E.split("."),s[w])}))}),t["--"]?o["--"]=c.slice():c.forEach(function(w){o._.push(w)}),o}});var sP=N((o1e,iP)=>{var Cp=qT(),rc=V("path").join,hX=JT(),rP="/etc",nP=process.platform==="win32",Ep=nP?process.env.USERPROFILE:process.env.HOME;iP.exports=function(e,t,r,n){if(typeof e!="string")throw new Error("rc(name): name *must* be string");r||(r=tP()(process.argv.slice(2))),t=(typeof t=="string"?Cp.json(t):t)||{},n=n||Cp.parse;var i=Cp.env(e+"_"),s=[t],o=[];function a(u){if(!(o.indexOf(u)>=0)){var l=Cp.file(u);l&&(s.push(n(l)),o.push(u))}}return nP||[rc(rP,e,"config"),rc(rP,e+"rc")].forEach(a),Ep&&[rc(Ep,".config",e,"config"),rc(Ep,".config",e),rc(Ep,"."+e,"config"),rc(Ep,"."+e+"rc")].forEach(a),a(Cp.find("."+e+"rc")),i.config&&a(i.config),r.config&&a(r.config),hX.apply(null,s.concat([i,r,o.length?{configs:o,config:o[o.length-1]}:void 0]))}});var uP=N((u1e,aP)=>{var qo=V("constants"),gX=process.cwd,g0=null,yX=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return g0||(g0=gX.call(process)),g0};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Gw=process.chdir,process.chdir=function(e){g0=null,Gw.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Gw));var Gw;aP.exports=DX;function DX(e){qo.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=s(e.chown),e.fchown=s(e.fchown),e.lchown=s(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=o(e.chownSync),e.fchownSync=o(e.fchownSync),e.lchownSync=o(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(c,f,p){p&&process.nextTick(p)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(c,f,p,d){d&&process.nextTick(d)},e.lchownSync=function(){}),yX==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(c){function f(p,d,m){var y=Date.now(),D=0;c(p,d,function h(g){if(g&&(g.code==="EACCES"||g.code==="EPERM")&&Date.now()-y<6e4){setTimeout(function(){e.stat(d,function(v,w){v&&v.code==="ENOENT"?c(p,d,h):m(g)})},D),D<100&&(D+=10);return}m&&m(g)})}return Object.setPrototypeOf&&Object.setPrototypeOf(f,c),f}(e.rename)),e.read=typeof e.read!="function"?e.read:function(c){function f(p,d,m,y,D,h){var g;if(h&&typeof h=="function"){var v=0;g=function(w,E,I){if(w&&w.code==="EAGAIN"&&v<10)return v++,c.call(e,p,d,m,y,D,g);h.apply(this,arguments)}}return c.call(e,p,d,m,y,D,g)}return Object.setPrototypeOf&&Object.setPrototypeOf(f,c),f}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(c){return function(f,p,d,m,y){for(var D=0;;)try{return c.call(e,f,p,d,m,y)}catch(h){if(h.code==="EAGAIN"&&D<10){D++;continue}throw h}}}(e.readSync);function t(c){c.lchmod=function(f,p,d){c.open(f,qo.O_WRONLY|qo.O_SYMLINK,p,function(m,y){if(m){d&&d(m);return}c.fchmod(y,p,function(D){c.close(y,function(h){d&&d(D||h)})})})},c.lchmodSync=function(f,p){var d=c.openSync(f,qo.O_WRONLY|qo.O_SYMLINK,p),m=!0,y;try{y=c.fchmodSync(d,p),m=!1}finally{if(m)try{c.closeSync(d)}catch{}else c.closeSync(d)}return y}}function r(c){qo.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(f,p,d,m){c.open(f,qo.O_SYMLINK,function(y,D){if(y){m&&m(y);return}c.futimes(D,p,d,function(h){c.close(D,function(g){m&&m(h||g)})})})},c.lutimesSync=function(f,p,d){var m=c.openSync(f,qo.O_SYMLINK),y,D=!0;try{y=c.futimesSync(m,p,d),D=!1}finally{if(D)try{c.closeSync(m)}catch{}else c.closeSync(m)}return y}):c.futimes&&(c.lutimes=function(f,p,d,m){m&&process.nextTick(m)},c.lutimesSync=function(){})}function n(c){return c&&function(f,p,d){return c.call(e,f,p,function(m){l(m)&&(m=null),d&&d.apply(this,arguments)})}}function i(c){return c&&function(f,p){try{return c.call(e,f,p)}catch(d){if(!l(d))throw d}}}function s(c){return c&&function(f,p,d,m){return c.call(e,f,p,d,function(y){l(y)&&(y=null),m&&m.apply(this,arguments)})}}function o(c){return c&&function(f,p,d){try{return c.call(e,f,p,d)}catch(m){if(!l(m))throw m}}}function a(c){return c&&function(f,p,d){typeof p=="function"&&(d=p,p=null);function m(y,D){D&&(D.uid<0&&(D.uid+=4294967296),D.gid<0&&(D.gid+=4294967296)),d&&d.apply(this,arguments)}return p?c.call(e,f,p,m):c.call(e,f,m)}}function u(c){return c&&function(f,p){var d=p?c.call(e,f,p):c.call(e,f);return d&&(d.uid<0&&(d.uid+=4294967296),d.gid<0&&(d.gid+=4294967296)),d}}function l(c){if(!c||c.code==="ENOSYS")return!0;var f=!process.getuid||process.getuid()!==0;return!!(f&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var fP=N((l1e,cP)=>{var lP=V("stream").Stream;cP.exports=vX;function vX(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);lP.call(this);var s=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var o=Object.keys(i),a=0,u=o.length;a<u;a++){var l=o[a];this[l]=i[l]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}e.open(this.path,this.flags,this.mode,function(c,f){if(c){s.emit("error",c),s.readable=!1;return}s.fd=f,s.emit("open",f),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);lP.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),o=0,a=s.length;o<a;o++){var u=s[o];this[u]=i[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var dP=N((c1e,pP)=>{"use strict";pP.exports=CX;var wX=Object.getPrototypeOf||function(e){return e.__proto__};function CX(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:wX(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var yP=N((f1e,Hw)=>{var bt=V("fs"),EX=uP(),SX=fP(),xX=dP(),y0=V("util"),cr,v0;typeof Symbol=="function"&&typeof Symbol.for=="function"?(cr=Symbol.for("graceful-fs.queue"),v0=Symbol.for("graceful-fs.previous")):(cr="___graceful-fs.queue",v0="___graceful-fs.previous");function _X(){}function gP(e,t){Object.defineProperty(e,cr,{get:function(){return t}})}var Eu=_X;y0.debuglog?Eu=y0.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Eu=function(){var e=y0.format.apply(y0,arguments);e="GFS4: "+e.split(/\n/).join(`
|
|
401
|
-
GFS4: `),console.error(e)});bt[cr]||(mP=global[cr]||[],gP(bt,mP),bt.close=function(e){function t(r,n){return e.call(bt,r,function(i){i||hP(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,v0,{value:e}),t}(bt.close),bt.closeSync=function(e){function t(r){e.apply(bt,arguments),hP()}return Object.defineProperty(t,v0,{value:e}),t}(bt.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Eu(bt[cr]),V("assert").equal(bt[cr].length,0)}));var mP;global[cr]||gP(global,bt[cr]);Hw.exports=qw(xX(bt));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!bt.__patched&&(Hw.exports=qw(bt),bt.__patched=!0);function qw(e){EX(e),e.gracefulify=qw,e.createReadStream=E,e.createWriteStream=I;var t=e.readFile;e.readFile=r;function r(b,T,F){return typeof T=="function"&&(F=T,T=null),k(b,T,F);function k(R,q,M,ee){return t(R,q,function(G){G&&(G.code==="EMFILE"||G.code==="ENFILE")?nc([k,[R,q,M],G,ee||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(b,T,F,k){return typeof F=="function"&&(k=F,F=null),R(b,T,F,k);function R(q,M,ee,G,re){return n(q,M,ee,function(ne){ne&&(ne.code==="EMFILE"||ne.code==="ENFILE")?nc([R,[q,M,ee,G],ne,re||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=o);function o(b,T,F,k){return typeof F=="function"&&(k=F,F=null),R(b,T,F,k);function R(q,M,ee,G,re){return s(q,M,ee,function(ne){ne&&(ne.code==="EMFILE"||ne.code==="ENFILE")?nc([R,[q,M,ee,G],ne,re||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}var a=e.copyFile;a&&(e.copyFile=u);function u(b,T,F,k){return typeof F=="function"&&(k=F,F=0),R(b,T,F,k);function R(q,M,ee,G,re){return a(q,M,ee,function(ne){ne&&(ne.code==="EMFILE"||ne.code==="ENFILE")?nc([R,[q,M,ee,G],ne,re||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}var l=e.readdir;e.readdir=f;var c=/^v[0-5]\./;function f(b,T,F){typeof T=="function"&&(F=T,T=null);var k=c.test(process.version)?function(M,ee,G,re){return l(M,R(M,ee,G,re))}:function(M,ee,G,re){return l(M,ee,R(M,ee,G,re))};return k(b,T,F);function R(q,M,ee,G){return function(re,ne){re&&(re.code==="EMFILE"||re.code==="ENFILE")?nc([k,[q,M,ee],re,G||Date.now(),Date.now()]):(ne&&ne.sort&&ne.sort(),typeof ee=="function"&&ee.call(this,re,ne))}}}if(process.version.substr(0,4)==="v0.8"){var p=SX(e);h=p.ReadStream,v=p.WriteStream}var d=e.ReadStream;d&&(h.prototype=Object.create(d.prototype),h.prototype.open=g);var m=e.WriteStream;m&&(v.prototype=Object.create(m.prototype),v.prototype.open=w),Object.defineProperty(e,"ReadStream",{get:function(){return h},set:function(b){h=b},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return v},set:function(b){v=b},enumerable:!0,configurable:!0});var y=h;Object.defineProperty(e,"FileReadStream",{get:function(){return y},set:function(b){y=b},enumerable:!0,configurable:!0});var D=v;Object.defineProperty(e,"FileWriteStream",{get:function(){return D},set:function(b){D=b},enumerable:!0,configurable:!0});function h(b,T){return this instanceof h?(d.apply(this,arguments),this):h.apply(Object.create(h.prototype),arguments)}function g(){var b=this;W(b.path,b.flags,b.mode,function(T,F){T?(b.autoClose&&b.destroy(),b.emit("error",T)):(b.fd=F,b.emit("open",F),b.read())})}function v(b,T){return this instanceof v?(m.apply(this,arguments),this):v.apply(Object.create(v.prototype),arguments)}function w(){var b=this;W(b.path,b.flags,b.mode,function(T,F){T?(b.destroy(),b.emit("error",T)):(b.fd=F,b.emit("open",F))})}function E(b,T){return new e.ReadStream(b,T)}function I(b,T){return new e.WriteStream(b,T)}var A=e.open;e.open=W;function W(b,T,F,k){return typeof F=="function"&&(k=F,F=null),R(b,T,F,k);function R(q,M,ee,G,re){return A(q,M,ee,function(ne,Ce){ne&&(ne.code==="EMFILE"||ne.code==="ENFILE")?nc([R,[q,M,ee,G],ne,re||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}return e}function nc(e){Eu("ENQUEUE",e[0].name,e[1]),bt[cr].push(e),zw()}var D0;function hP(){for(var e=Date.now(),t=0;t<bt[cr].length;++t)bt[cr][t].length>2&&(bt[cr][t][3]=e,bt[cr][t][4]=e);zw()}function zw(){if(clearTimeout(D0),D0=void 0,bt[cr].length!==0){var e=bt[cr].shift(),t=e[0],r=e[1],n=e[2],i=e[3],s=e[4];if(i===void 0)Eu("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){Eu("TIMEOUT",t.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-s,u=Math.max(s-i,1),l=Math.min(u*1.2,100);a>=l?(Eu("RETRY",t.name,r),t.apply(null,r.concat([i]))):bt[cr].push(e)}D0===void 0&&(D0=setTimeout(zw,0))}}});var DP=N(ic=>{"use strict";var bX=ic&&ic.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ic,"__esModule",{value:!0});ic.readCAFileSync=void 0;var OX=bX(yP());function FX(e){try{let t=OX.default.readFileSync(e,"utf8"),r="-----END CERTIFICATE-----";return t.split(r).filter(i=>!!i.trim()).map(i=>`${i.trimLeft()}${r}`)}catch(t){if(t.code==="ENOENT")return;throw t}}ic.readCAFileSync=FX});var vP=N(Su=>{"use strict";var AX=Su&&Su.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),IX=Su&&Su.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&AX(t,e,r)};Object.defineProperty(Su,"__esModule",{value:!0});IX(DP(),Su)});var EP=N((
|
|
400
|
+
`)s=!1,a+=u(e,o,l),o=l;else if(!s&&r+n==="/*"){a+=e.slice(o,l),o=l,s=UT,l++;continue}else if(s===UT&&r+n==="*/"){l++,s=!1,a+=u(e,o,l+1),o=l+1;continue}}}return a+(s?u(e.substr(o)):e.substr(o))}});var qT=N(tc=>{"use strict";var GT=V("fs"),cX=VT(),wp=V("path"),fX=WT(),pX=tc.parse=function(e){return/^\s*{/.test(e)?JSON.parse(fX(e)):cX.parse(e)},dX=tc.file=function(){var e=[].slice.call(arguments).filter(function(i){return i!=null});for(var t in e)if(typeof e[t]!="string")return;var r=wp.join.apply(null,e),n;try{return GT.readFileSync(r,"utf-8")}catch{return}},Qve=tc.json=function(){var e=dX.apply(null,arguments);return e?pX(e):null},e1e=tc.env=function(e,t){t=t||process.env;var r={},n=e.length;for(var i in t)if(i.toLowerCase().indexOf(e.toLowerCase())===0){for(var s=i.substring(n).split("__"),o;(o=s.indexOf(""))>-1;)s.splice(o,1);var a=r;s.forEach(function(l,c){!l||typeof a!="object"||(c===s.length-1&&(a[l]=t[i]),a[l]===void 0&&(a[l]={}),a=a[l])})}return r},t1e=tc.find=function(){var e=wp.join.apply(null,[].slice.call(arguments));function t(r,n){var i=wp.join(r,n);try{return GT.statSync(i),i}catch{if(wp.dirname(r)!==r)return t(wp.dirname(r),n)}}return t(process.cwd(),e)}});var JT=N((n1e,XT)=>{"use strict";function HT(e){return e instanceof Buffer||e instanceof Date||e instanceof RegExp}function YT(e){if(e instanceof Buffer){var t=Buffer.alloc?Buffer.alloc(e.length):new Buffer(e.length);return e.copy(t),t}else{if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);throw new Error("Unexpected situation")}}function KT(e){var t=[];return e.forEach(function(r,n){typeof r=="object"&&r!==null?Array.isArray(r)?t[n]=KT(r):HT(r)?t[n]=YT(r):t[n]=$w({},r):t[n]=r}),t}function zT(e,t){return t==="__proto__"?void 0:e[t]}var $w=XT.exports=function(){if(arguments.length<1||typeof arguments[0]!="object")return!1;if(arguments.length<2)return arguments[0];var e=arguments[0],t=Array.prototype.slice.call(arguments,1),r,n,i;return t.forEach(function(s){typeof s!="object"||s===null||Array.isArray(s)||Object.keys(s).forEach(function(o){if(n=zT(e,o),r=zT(s,o),r!==e)if(typeof r!="object"||r===null){e[o]=r;return}else if(Array.isArray(r)){e[o]=KT(r);return}else if(HT(r)){e[o]=YT(r);return}else if(typeof n!="object"||n===null||Array.isArray(n)){e[o]=$w({},r);return}else{e[o]=$w(n,r);return}})}),e}});var tP=N((i1e,eP)=>{"use strict";function mX(e,t){var r=e;t.slice(0,-1).forEach(function(i){r=r[i]||{}});var n=t[t.length-1];return n in r}function ZT(e){return typeof e=="number"||/^0x[0-9a-f]+$/i.test(e)?!0:/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function QT(e,t){return t==="constructor"&&typeof e[t]=="function"||t==="__proto__"}eP.exports=function(e,t){t||(t={});var r={bools:{},strings:{},unknownFn:null};typeof t.unknown=="function"&&(r.unknownFn=t.unknown),typeof t.boolean=="boolean"&&t.boolean?r.allBools=!0:[].concat(t.boolean).filter(Boolean).forEach(function(w){r.bools[w]=!0});var n={};function i(w){return n[w].some(function(E){return r.bools[E]})}Object.keys(t.alias||{}).forEach(function(w){n[w]=[].concat(t.alias[w]),n[w].forEach(function(E){n[E]=[w].concat(n[w].filter(function(I){return E!==I}))})}),[].concat(t.string).filter(Boolean).forEach(function(w){r.strings[w]=!0,n[w]&&[].concat(n[w]).forEach(function(E){r.strings[E]=!0})});var s=t.default||{},o={_:[]};function a(w,E){return r.allBools&&/^--[^=]+$/.test(E)||r.strings[w]||r.bools[w]||n[w]}function u(w,E,I){for(var A=w,W=0;W<E.length-1;W++){var b=E[W];if(QT(A,b))return;A[b]===void 0&&(A[b]={}),(A[b]===Object.prototype||A[b]===Number.prototype||A[b]===String.prototype)&&(A[b]={}),A[b]===Array.prototype&&(A[b]=[]),A=A[b]}var T=E[E.length-1];QT(A,T)||((A===Object.prototype||A===Number.prototype||A===String.prototype)&&(A={}),A===Array.prototype&&(A=[]),A[T]===void 0||r.bools[T]||typeof A[T]=="boolean"?A[T]=I:Array.isArray(A[T])?A[T].push(I):A[T]=[A[T],I])}function l(w,E,I){if(!(I&&r.unknownFn&&!a(w,I)&&r.unknownFn(I)===!1)){var A=!r.strings[w]&&ZT(E)?Number(E):E;u(o,w.split("."),A),(n[w]||[]).forEach(function(W){u(o,W.split("."),A)})}}Object.keys(r.bools).forEach(function(w){l(w,s[w]===void 0?!1:s[w])});var c=[];e.indexOf("--")!==-1&&(c=e.slice(e.indexOf("--")+1),e=e.slice(0,e.indexOf("--")));for(var f=0;f<e.length;f++){var p=e[f],d,m;if(/^--.+=/.test(p)){var y=p.match(/^--([^=]+)=([\s\S]*)$/);d=y[1];var D=y[2];r.bools[d]&&(D=D!=="false"),l(d,D,p)}else if(/^--no-.+/.test(p))d=p.match(/^--no-(.+)/)[1],l(d,!1,p);else if(/^--.+/.test(p))d=p.match(/^--(.+)/)[1],m=e[f+1],m!==void 0&&!/^(-|--)[^-]/.test(m)&&!r.bools[d]&&!r.allBools&&(!n[d]||!i(d))?(l(d,m,p),f+=1):/^(true|false)$/.test(m)?(l(d,m==="true",p),f+=1):l(d,r.strings[d]?"":!0,p);else if(/^-[^-]+/.test(p)){for(var h=p.slice(1,-1).split(""),g=!1,v=0;v<h.length;v++){if(m=p.slice(v+2),m==="-"){l(h[v],m,p);continue}if(/[A-Za-z]/.test(h[v])&&m[0]==="="){l(h[v],m.slice(1),p),g=!0;break}if(/[A-Za-z]/.test(h[v])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(m)){l(h[v],m,p),g=!0;break}if(h[v+1]&&h[v+1].match(/\W/)){l(h[v],p.slice(v+2),p),g=!0;break}else l(h[v],r.strings[h[v]]?"":!0,p)}d=p.slice(-1)[0],!g&&d!=="-"&&(e[f+1]&&!/^(-|--)[^-]/.test(e[f+1])&&!r.bools[d]&&(!n[d]||!i(d))?(l(d,e[f+1],p),f+=1):e[f+1]&&/^(true|false)$/.test(e[f+1])?(l(d,e[f+1]==="true",p),f+=1):l(d,r.strings[d]?"":!0,p))}else if((!r.unknownFn||r.unknownFn(p)!==!1)&&o._.push(r.strings._||!ZT(p)?p:Number(p)),t.stopEarly){o._.push.apply(o._,e.slice(f+1));break}}return Object.keys(s).forEach(function(w){mX(o,w.split("."))||(u(o,w.split("."),s[w]),(n[w]||[]).forEach(function(E){u(o,E.split("."),s[w])}))}),t["--"]?o["--"]=c.slice():c.forEach(function(w){o._.push(w)}),o}});var sP=N((s1e,iP)=>{var Cp=qT(),rc=V("path").join,hX=JT(),rP="/etc",nP=process.platform==="win32",Ep=nP?process.env.USERPROFILE:process.env.HOME;iP.exports=function(e,t,r,n){if(typeof e!="string")throw new Error("rc(name): name *must* be string");r||(r=tP()(process.argv.slice(2))),t=(typeof t=="string"?Cp.json(t):t)||{},n=n||Cp.parse;var i=Cp.env(e+"_"),s=[t],o=[];function a(u){if(!(o.indexOf(u)>=0)){var l=Cp.file(u);l&&(s.push(n(l)),o.push(u))}}return nP||[rc(rP,e,"config"),rc(rP,e+"rc")].forEach(a),Ep&&[rc(Ep,".config",e,"config"),rc(Ep,".config",e),rc(Ep,"."+e,"config"),rc(Ep,"."+e+"rc")].forEach(a),a(Cp.find("."+e+"rc")),i.config&&a(i.config),r.config&&a(r.config),hX.apply(null,s.concat([i,r,o.length?{configs:o,config:o[o.length-1]}:void 0]))}});var uP=N((a1e,aP)=>{var qo=V("constants"),gX=process.cwd,g0=null,yX=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return g0||(g0=gX.call(process)),g0};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Gw=process.chdir,process.chdir=function(e){g0=null,Gw.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Gw));var Gw;aP.exports=DX;function DX(e){qo.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=s(e.chown),e.fchown=s(e.fchown),e.lchown=s(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=o(e.chownSync),e.fchownSync=o(e.fchownSync),e.lchownSync=o(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(c,f,p){p&&process.nextTick(p)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(c,f,p,d){d&&process.nextTick(d)},e.lchownSync=function(){}),yX==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(c){function f(p,d,m){var y=Date.now(),D=0;c(p,d,function h(g){if(g&&(g.code==="EACCES"||g.code==="EPERM")&&Date.now()-y<6e4){setTimeout(function(){e.stat(d,function(v,w){v&&v.code==="ENOENT"?c(p,d,h):m(g)})},D),D<100&&(D+=10);return}m&&m(g)})}return Object.setPrototypeOf&&Object.setPrototypeOf(f,c),f}(e.rename)),e.read=typeof e.read!="function"?e.read:function(c){function f(p,d,m,y,D,h){var g;if(h&&typeof h=="function"){var v=0;g=function(w,E,I){if(w&&w.code==="EAGAIN"&&v<10)return v++,c.call(e,p,d,m,y,D,g);h.apply(this,arguments)}}return c.call(e,p,d,m,y,D,g)}return Object.setPrototypeOf&&Object.setPrototypeOf(f,c),f}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(c){return function(f,p,d,m,y){for(var D=0;;)try{return c.call(e,f,p,d,m,y)}catch(h){if(h.code==="EAGAIN"&&D<10){D++;continue}throw h}}}(e.readSync);function t(c){c.lchmod=function(f,p,d){c.open(f,qo.O_WRONLY|qo.O_SYMLINK,p,function(m,y){if(m){d&&d(m);return}c.fchmod(y,p,function(D){c.close(y,function(h){d&&d(D||h)})})})},c.lchmodSync=function(f,p){var d=c.openSync(f,qo.O_WRONLY|qo.O_SYMLINK,p),m=!0,y;try{y=c.fchmodSync(d,p),m=!1}finally{if(m)try{c.closeSync(d)}catch{}else c.closeSync(d)}return y}}function r(c){qo.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(f,p,d,m){c.open(f,qo.O_SYMLINK,function(y,D){if(y){m&&m(y);return}c.futimes(D,p,d,function(h){c.close(D,function(g){m&&m(h||g)})})})},c.lutimesSync=function(f,p,d){var m=c.openSync(f,qo.O_SYMLINK),y,D=!0;try{y=c.futimesSync(m,p,d),D=!1}finally{if(D)try{c.closeSync(m)}catch{}else c.closeSync(m)}return y}):c.futimes&&(c.lutimes=function(f,p,d,m){m&&process.nextTick(m)},c.lutimesSync=function(){})}function n(c){return c&&function(f,p,d){return c.call(e,f,p,function(m){l(m)&&(m=null),d&&d.apply(this,arguments)})}}function i(c){return c&&function(f,p){try{return c.call(e,f,p)}catch(d){if(!l(d))throw d}}}function s(c){return c&&function(f,p,d,m){return c.call(e,f,p,d,function(y){l(y)&&(y=null),m&&m.apply(this,arguments)})}}function o(c){return c&&function(f,p,d){try{return c.call(e,f,p,d)}catch(m){if(!l(m))throw m}}}function a(c){return c&&function(f,p,d){typeof p=="function"&&(d=p,p=null);function m(y,D){D&&(D.uid<0&&(D.uid+=4294967296),D.gid<0&&(D.gid+=4294967296)),d&&d.apply(this,arguments)}return p?c.call(e,f,p,m):c.call(e,f,m)}}function u(c){return c&&function(f,p){var d=p?c.call(e,f,p):c.call(e,f);return d&&(d.uid<0&&(d.uid+=4294967296),d.gid<0&&(d.gid+=4294967296)),d}}function l(c){if(!c||c.code==="ENOSYS")return!0;var f=!process.getuid||process.getuid()!==0;return!!(f&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var fP=N((u1e,cP)=>{var lP=V("stream").Stream;cP.exports=vX;function vX(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);lP.call(this);var s=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var o=Object.keys(i),a=0,u=o.length;a<u;a++){var l=o[a];this[l]=i[l]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}e.open(this.path,this.flags,this.mode,function(c,f){if(c){s.emit("error",c),s.readable=!1;return}s.fd=f,s.emit("open",f),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);lP.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),o=0,a=s.length;o<a;o++){var u=s[o];this[u]=i[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var dP=N((l1e,pP)=>{"use strict";pP.exports=CX;var wX=Object.getPrototypeOf||function(e){return e.__proto__};function CX(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:wX(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var yP=N((c1e,Hw)=>{var bt=V("fs"),EX=uP(),SX=fP(),xX=dP(),y0=V("util"),cr,v0;typeof Symbol=="function"&&typeof Symbol.for=="function"?(cr=Symbol.for("graceful-fs.queue"),v0=Symbol.for("graceful-fs.previous")):(cr="___graceful-fs.queue",v0="___graceful-fs.previous");function _X(){}function gP(e,t){Object.defineProperty(e,cr,{get:function(){return t}})}var Eu=_X;y0.debuglog?Eu=y0.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Eu=function(){var e=y0.format.apply(y0,arguments);e="GFS4: "+e.split(/\n/).join(`
|
|
401
|
+
GFS4: `),console.error(e)});bt[cr]||(mP=global[cr]||[],gP(bt,mP),bt.close=function(e){function t(r,n){return e.call(bt,r,function(i){i||hP(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,v0,{value:e}),t}(bt.close),bt.closeSync=function(e){function t(r){e.apply(bt,arguments),hP()}return Object.defineProperty(t,v0,{value:e}),t}(bt.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Eu(bt[cr]),V("assert").equal(bt[cr].length,0)}));var mP;global[cr]||gP(global,bt[cr]);Hw.exports=qw(xX(bt));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!bt.__patched&&(Hw.exports=qw(bt),bt.__patched=!0);function qw(e){EX(e),e.gracefulify=qw,e.createReadStream=E,e.createWriteStream=I;var t=e.readFile;e.readFile=r;function r(b,T,F){return typeof T=="function"&&(F=T,T=null),k(b,T,F);function k(R,q,M,ee){return t(R,q,function(G){G&&(G.code==="EMFILE"||G.code==="ENFILE")?nc([k,[R,q,M],G,ee||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(b,T,F,k){return typeof F=="function"&&(k=F,F=null),R(b,T,F,k);function R(q,M,ee,G,re){return n(q,M,ee,function(ne){ne&&(ne.code==="EMFILE"||ne.code==="ENFILE")?nc([R,[q,M,ee,G],ne,re||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=o);function o(b,T,F,k){return typeof F=="function"&&(k=F,F=null),R(b,T,F,k);function R(q,M,ee,G,re){return s(q,M,ee,function(ne){ne&&(ne.code==="EMFILE"||ne.code==="ENFILE")?nc([R,[q,M,ee,G],ne,re||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}var a=e.copyFile;a&&(e.copyFile=u);function u(b,T,F,k){return typeof F=="function"&&(k=F,F=0),R(b,T,F,k);function R(q,M,ee,G,re){return a(q,M,ee,function(ne){ne&&(ne.code==="EMFILE"||ne.code==="ENFILE")?nc([R,[q,M,ee,G],ne,re||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}var l=e.readdir;e.readdir=f;var c=/^v[0-5]\./;function f(b,T,F){typeof T=="function"&&(F=T,T=null);var k=c.test(process.version)?function(M,ee,G,re){return l(M,R(M,ee,G,re))}:function(M,ee,G,re){return l(M,ee,R(M,ee,G,re))};return k(b,T,F);function R(q,M,ee,G){return function(re,ne){re&&(re.code==="EMFILE"||re.code==="ENFILE")?nc([k,[q,M,ee],re,G||Date.now(),Date.now()]):(ne&&ne.sort&&ne.sort(),typeof ee=="function"&&ee.call(this,re,ne))}}}if(process.version.substr(0,4)==="v0.8"){var p=SX(e);h=p.ReadStream,v=p.WriteStream}var d=e.ReadStream;d&&(h.prototype=Object.create(d.prototype),h.prototype.open=g);var m=e.WriteStream;m&&(v.prototype=Object.create(m.prototype),v.prototype.open=w),Object.defineProperty(e,"ReadStream",{get:function(){return h},set:function(b){h=b},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return v},set:function(b){v=b},enumerable:!0,configurable:!0});var y=h;Object.defineProperty(e,"FileReadStream",{get:function(){return y},set:function(b){y=b},enumerable:!0,configurable:!0});var D=v;Object.defineProperty(e,"FileWriteStream",{get:function(){return D},set:function(b){D=b},enumerable:!0,configurable:!0});function h(b,T){return this instanceof h?(d.apply(this,arguments),this):h.apply(Object.create(h.prototype),arguments)}function g(){var b=this;W(b.path,b.flags,b.mode,function(T,F){T?(b.autoClose&&b.destroy(),b.emit("error",T)):(b.fd=F,b.emit("open",F),b.read())})}function v(b,T){return this instanceof v?(m.apply(this,arguments),this):v.apply(Object.create(v.prototype),arguments)}function w(){var b=this;W(b.path,b.flags,b.mode,function(T,F){T?(b.destroy(),b.emit("error",T)):(b.fd=F,b.emit("open",F))})}function E(b,T){return new e.ReadStream(b,T)}function I(b,T){return new e.WriteStream(b,T)}var A=e.open;e.open=W;function W(b,T,F,k){return typeof F=="function"&&(k=F,F=null),R(b,T,F,k);function R(q,M,ee,G,re){return A(q,M,ee,function(ne,Ce){ne&&(ne.code==="EMFILE"||ne.code==="ENFILE")?nc([R,[q,M,ee,G],ne,re||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}return e}function nc(e){Eu("ENQUEUE",e[0].name,e[1]),bt[cr].push(e),zw()}var D0;function hP(){for(var e=Date.now(),t=0;t<bt[cr].length;++t)bt[cr][t].length>2&&(bt[cr][t][3]=e,bt[cr][t][4]=e);zw()}function zw(){if(clearTimeout(D0),D0=void 0,bt[cr].length!==0){var e=bt[cr].shift(),t=e[0],r=e[1],n=e[2],i=e[3],s=e[4];if(i===void 0)Eu("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){Eu("TIMEOUT",t.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-s,u=Math.max(s-i,1),l=Math.min(u*1.2,100);a>=l?(Eu("RETRY",t.name,r),t.apply(null,r.concat([i]))):bt[cr].push(e)}D0===void 0&&(D0=setTimeout(zw,0))}}});var DP=N(ic=>{"use strict";var bX=ic&&ic.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ic,"__esModule",{value:!0});ic.readCAFileSync=void 0;var OX=bX(yP());function FX(e){try{let t=OX.default.readFileSync(e,"utf8"),r="-----END CERTIFICATE-----";return t.split(r).filter(i=>!!i.trim()).map(i=>`${i.trimLeft()}${r}`)}catch(t){if(t.code==="ENOENT")return;throw t}}ic.readCAFileSync=FX});var vP=N(Su=>{"use strict";var AX=Su&&Su.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),IX=Su&&Su.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&AX(t,e,r)};Object.defineProperty(Su,"__esModule",{value:!0});IX(DP(),Su)});var EP=N((d1e,CP)=>{CP.exports=wP;function xu(e,t){if(typeof Object.setPrototypeOf=="function")return Object.setPrototypeOf(e,t);e.__proto__=t}function wP(){this.list=[];var e=null;Object.defineProperty(this,"root",{get:function(){return e},set:function(t){e=t,this.list.length&&xu(this.list[this.list.length-1],t)},enumerable:!0,configurable:!0})}wP.prototype={get length(){return this.list.length},get keys(){var e=[];for(var t in this.list[0])e.push(t);return e},get snapshot(){var e={};return this.keys.forEach(function(t){e[t]=this.get(t)},this),e},get store(){return this.list[0]},push:function(e){return typeof e!="object"&&(e={valueOf:e}),this.list.length>=1&&xu(this.list[this.list.length-1],e),xu(e,this.root),this.list.push(e)},pop:function(){return this.list.length>=2&&xu(this.list[this.list.length-2],this.root),this.list.pop()},unshift:function(e){return xu(e,this.list[0]||this.root),this.list.unshift(e)},shift:function(){return this.list.length===1&&xu(this.list[0],this.root),this.list.shift()},get:function(e){return this.list[0][e]},set:function(e,t,r){return this.length||this.push({}),r&&this.list[0].hasOwnProperty(e)&&this.push({}),this.list[0][e]=t},forEach:function(e,t){for(var r in this.list[0])e.call(t,r,this.list[0][r])},slice:function(){return this.list.slice.apply(this.list,arguments)},splice:function(){for(var e=this.list.splice.apply(this.list,arguments),t=0,r=this.list.length;t<r;t++)xu(this.list[t],this.list[t+1]||this.root);return e}}});var bP=N(_u=>{_u.parse=_u.decode=TX;_u.stringify=_u.encode=SP;_u.safe=sc;_u.unsafe=w0;var Yw=typeof process<"u"&&process.platform==="win32"?`\r
|
|
402
402
|
`:`
|
|
403
403
|
`;function SP(e,t){var r=[],n="";typeof t=="string"?t={section:t,whitespace:!1}:(t=t||{},t.whitespace=t.whitespace===!0);var i=t.whitespace?" = ":"=";return Object.keys(e).forEach(function(s,o,a){var u=e[s];u&&Array.isArray(u)?u.forEach(function(l){n+=sc(s+"[]")+i+sc(l)+`
|
|
404
|
-
`}):u&&typeof u=="object"?r.push(s):n+=sc(s)+i+sc(u)+Yw}),t.section&&n.length&&(n="["+sc(t.section)+"]"+Yw+n),r.forEach(function(s,o,a){var u=xP(s).join("\\."),l=(t.section?t.section+".":"")+u,c=SP(e[s],{section:l,whitespace:t.whitespace});n.length&&c.length&&(n+=Yw),n+=c}),n}function xP(e){return e.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(function(t){return t.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")})}function TX(e){var t={},r=t,n=null,i=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i,s=e.split(/[\r\n]+/g);return s.forEach(function(o,a,u){if(!(!o||o.match(/^\s*[;#]/))){var l=o.match(i);if(l){if(l[1]!==void 0){if(n=w0(l[1]),n==="__proto__"){r={};return}r=t[n]=t[n]||{};return}var c=w0(l[2]);if(c!=="__proto__"){var f=l[3]?w0(l[4]):!0;switch(f){case"true":case"false":case"null":f=JSON.parse(f)}if(c.length>2&&c.slice(-2)==="[]"){if(c=c.substring(0,c.length-2),c==="__proto__")return;r[c]?Array.isArray(r[c])||(r[c]=[r[c]]):r[c]=[]}Array.isArray(r[c])?r[c].push(f):r[c]=f}}}}),Object.keys(t).filter(function(o,a,u){if(!t[o]||typeof t[o]!="object"||Array.isArray(t[o]))return!1;var l=xP(o),c=t,f=l.pop(),p=f.replace(/\\\./g,".");return l.forEach(function(d,m,y){d!=="__proto__"&&((!c[d]||typeof c[d]!="object")&&(c[d]={}),c=c[d])}),c===t&&p===f?!1:(c[p]=t[o],!0)}).forEach(function(o,a,u){delete t[o]}),t}function _P(e){return e.charAt(0)==='"'&&e.slice(-1)==='"'||e.charAt(0)==="'"&&e.slice(-1)==="'"}function sc(e){return typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&_P(e)||e!==e.trim()?JSON.stringify(e):e.replace(/;/g,"\\;").replace(/#/g,"\\#")}function w0(e,t){if(e=(e||"").trim(),_P(e)){e.charAt(0)==="'"&&(e=e.substr(1,e.length-2));try{e=JSON.parse(e)}catch{}}else{for(var r=!1,n="",i=0,s=e.length;i<s;i++){var o=e.charAt(i);if(r)"\\;#".indexOf(o)!==-1?n+=o:n+="\\"+o,r=!1;else{if(";#".indexOf(o)!==-1)break;o==="\\"?r=!0:n+=o}}return r&&(n+="\\"),n.trim()}return e}});var IP=N((Fs,AP)=>{var OP=EP(),Sp=V("path"),C0=V("fs"),Kw=bP(),Xw=V("events").EventEmitter,PX=V("url"),LX=V("http"),Fs=AP.exports=function(){for(var e=[].slice.call(arguments),t=new xr;e.length;){var r=e.shift();r&&t.push(typeof r=="string"?RX(r):r)}return t},g1e=Fs.find=function(){var e=Sp.join.apply(null,[].slice.call(arguments));function t(r,n){var i=Sp.join(r,n);try{return C0.statSync(i),i}catch{if(Sp.dirname(r)!==r)return t(Sp.dirname(r),n)}}return t(__dirname,e)},NX=Fs.parse=function(e,t,r){if(e=""+e,r)if(r==="json")if(this.emit)try{return JSON.parse(e)}catch(n){this.emit("error",n)}else return JSON.parse(e);else return Kw.parse(e);else try{return JSON.parse(e)}catch{return Kw.parse(e)}},RX=Fs.json=function(){var e=[].slice.call(arguments).filter(function(n){return n!=null}),t=Sp.join.apply(null,e),r;try{r=C0.readFileSync(t,"utf-8")}catch{return}return NX(r,t,"json")},y1e=Fs.env=function(e,t){t=t||process.env;var r={},n=e.length;for(var i in t)i.indexOf(e)===0&&(r[i.substring(n)]=t[i]);return r};Fs.ConfigChain=xr;function xr(){Xw.apply(this),OP.apply(this,arguments),this._awaiting=0,this._saving=0,this.sources={}}var FP={constructor:{value:xr}};Object.keys(Xw.prototype).forEach(function(e){FP[e]=Object.getOwnPropertyDescriptor(Xw.prototype,e)});xr.prototype=Object.create(OP.prototype,FP);xr.prototype.del=function(e,t){if(t){var r=this.sources[t];if(r=r&&r.data,!r)return this.emit("error",new Error("not found "+t));delete r[e]}else for(var n=0,i=this.list.length;n<i;n++)delete this.list[n][e];return this};xr.prototype.set=function(e,t,r){var n;if(r){if(n=this.sources[r],n=n&&n.data,!n)return this.emit("error",new Error("not found "+r))}else if(n=this.list[0],!n)return this.emit("error",new Error("cannot set, no confs!"));return n[e]=t,this};xr.prototype.get=function(e,t){return t?(t=this.sources[t],t&&(t=t.data),t&&Object.hasOwnProperty.call(t,e)?t[e]:void 0):this.list[0][e]};xr.prototype.save=function(e,s,r){typeof s=="function"&&(r=s,s=null);var n=this.sources[e];if(!n||!(n.path||n.source)||!n.data)return this.emit("error",new Error("bad save target: "+e));if(n.source){var i=n.prefix||"";return Object.keys(n.data).forEach(function(a){n.source[i+a]=n.data[a]}),this}var s=s||n.type,o=n.data;return n.type==="json"?o=JSON.stringify(o):o=Kw.stringify(o),this._saving++,C0.writeFile(n.path,o,"utf8",function(a){if(this._saving--,a)return r?r(a):this.emit("error",a);this._saving===0&&(r&&r(),this.emit("save"))}.bind(this)),this};xr.prototype.addFile=function(e,t,r){r=r||e;var n={__source__:r};return this.sources[r]={path:e,type:t},this.push(n),this._await(),C0.readFile(e,"utf8",function(i,s){i&&this.emit("error",i),this.addString(s,e,t,n)}.bind(this)),this};xr.prototype.addEnv=function(e,t,r){r=r||"env";var n=Fs.env(e,t);return this.sources[r]={data:n,source:t,prefix:e},this.add(n,r)};xr.prototype.addUrl=function(e,t,r){this._await();var n=PX.format(e);r=r||n;var i={__source__:r};return this.sources[r]={href:n,type:t},this.push(i),LX.request(e,function(s){var o=[],a=s.headers["content-type"];t||(t=a.indexOf("json")!==-1?"json":a.indexOf("ini")!==-1?"ini":n.match(/\.json$/)?"json":n.match(/\.ini$/)?"ini":null,i.type=t),s.on("data",o.push.bind(o)).on("end",function(){this.addString(Buffer.concat(o),n,t,i)}.bind(this)).on("error",this.emit.bind(this,"error"))}.bind(this)).on("error",this.emit.bind(this,"error")).end(),this};xr.prototype.addString=function(e,t,r,n){return e=this.parse(e,t,r),this.add(e,n),this};xr.prototype.add=function(e,t){if(t&&typeof t=="object"){var r=this.list.indexOf(t);if(r===-1)return this.emit("error",new Error("bad marker"));this.splice(r,1,e),t=t.__source__,this.sources[t]=this.sources[t]||{},this.sources[t].data=e,this._resolve()}else typeof t=="string"&&(this.sources[t]=this.sources[t]||{},this.sources[t].data=e),this._await(),this.push(e),process.nextTick(this._resolve.bind(this));return this};xr.prototype.parse=Fs.parse;xr.prototype._await=function(){this._awaiting++};xr.prototype._resolve=function(){this._awaiting--,this._awaiting===0&&this.emit("load",this)}});var PP=N((D1e,TP)=>{TP.exports=function(e){let t=e.indexOf(":");if(t===-1)return Jw(e);let r=e.substr(0,t),n=e.substr(t+1);return`${Jw(r)}:${Jw(n)}`};function Jw(e){if(e=e.toLowerCase(),e==="_authtoken")return"_authToken";let t=e[0];for(let r=1;r<e.length;r++)t+=e[r]==="_"?"-":e[r];return t}});var LP=N(E0=>{"use strict";Object.defineProperty(E0,"__esModule",{value:!0});E0.envReplace=void 0;var BX=/(?<!\\)(\\*)\$\{([^${}]+)\}/g;function kX(e,t){return e.replace(BX,MX.bind(null,t))}E0.envReplace=kX;function MX(e,t,r,n){if(r.length%2)return t.slice((r.length+1)/2);let i=VX(e,n);if(i===void 0)throw new Error(`Failed to replace env in config: ${t}`);return`${r.slice(r.length/2)}${i}`}var jX=/([^:-]+)(:?)-(.+)/;function VX(e,t){let r=t.match(jX);if(!r)return e[t];let[,n,i,s]=r;return Object.prototype.hasOwnProperty.call(e,n)?!e[n]&&i?s:e[n]:s}});var NP=N(S0=>{"use strict";Object.defineProperty(S0,"__esModule",{value:!0});S0.envReplace=void 0;var UX=LP();Object.defineProperty(S0,"envReplace",{enumerable:!0,get:function(){return UX.envReplace}})});var RP=N(xp=>{"use strict";var $X=V("fs"),bu=V("path"),{envReplace:Zw}=NP(),WX=e=>typeof e!="string"?e:Zw(e,process.env),GX=(e,t,r)=>{if(typeof t!="string")return t;let n=[].concat(e[r]),i=n.indexOf(bu)!==-1,s=n.indexOf(Boolean)!==-1,o=n.indexOf(String)!==-1,a=n.indexOf(Number)!==-1;if(t=`${t}`.trim(),/^".*"$/.test(t))try{t=JSON.parse(t)}catch{throw new Error(`Failed parsing JSON config key ${r}: ${t}`)}if(s&&!o&&t==="")return!0;switch(t){case"true":return!0;case"false":return!1;case"null":return null;case"undefined":return}return t=Zw(t,process.env),i&&((process.platform==="win32"?/^~(\/|\\)/:/^~\//).test(t)&&process.env.HOME&&(t=bu.resolve(process.env.HOME,t.substr(2))),t=bu.resolve(t)),a&&!isNaN(t)&&(t=Number(t)),t},qX=e=>{e=bu.resolve(e);let t=!1;for(;bu.basename(e)==="node_modules";)e=bu.dirname(e),t=!0;if(t)return e;let r=(n,i)=>{let s=/^[a-zA-Z]:(\\|\/)?$/;if(n==="/"||process.platform==="win32"&&s.test(n))return i;try{let o=$X.readdirSync(n);if(o.includes("node_modules")||o.includes("package.json")||o.includes("package.json5")||o.includes("package.yaml")||o.includes("pnpm-workspace.yaml"))return n;let a=bu.dirname(n);return a===n?i:r(a,i)}catch(o){if(n===i){if(o.code==="ENOENT")return i;throw o}return i}};return r(e,e)};xp.envReplace=Zw;xp.findPrefix=qX;xp.parseField=GX;xp.parseKey=WX});var MP=N(kP=>{"use strict";var Ou=V("path"),zX=V("stream").Stream,x0=V("url"),HX=()=>{},YX=()=>[],BP=()=>{};kP.types={access:[null,"restricted","public"],"allow-same-version":Boolean,"always-auth":Boolean,also:[null,"dev","development"],audit:Boolean,"auth-type":["legacy","sso","saml","oauth"],"bin-links":Boolean,browser:[null,String],ca:[null,String,Array],cafile:Ou,cache:Ou,"cache-lock-stale":Number,"cache-lock-retries":Number,"cache-lock-wait":Number,"cache-max":Number,"cache-min":Number,cert:[null,String],cidr:[null,String,Array],color:["always",Boolean],depth:Number,description:Boolean,dev:Boolean,"dry-run":Boolean,editor:String,"engine-strict":Boolean,force:Boolean,"fetch-retries":Number,"fetch-retry-factor":Number,"fetch-retry-mintimeout":Number,"fetch-retry-maxtimeout":Number,git:String,"git-tag-version":Boolean,"commit-hooks":Boolean,global:Boolean,globalconfig:Ou,"global-style":Boolean,group:[Number,String],"https-proxy":[null,x0],"user-agent":String,"ham-it-up":Boolean,heading:String,"if-present":Boolean,"ignore-prepublish":Boolean,"ignore-scripts":Boolean,"init-module":Ou,"init-author-name":String,"init-author-email":String,"init-author-url":["",x0],"init-license":String,"init-version":BP,json:Boolean,key:[null,String],"legacy-bundling":Boolean,link:Boolean,"local-address":YX(),loglevel:["silent","error","warn","notice","http","timing","info","verbose","silly"],logstream:zX,"logs-max":Number,long:Boolean,maxsockets:Number,message:String,"metrics-registry":[null,String],"node-options":[null,String],"node-version":[null,BP],"no-proxy":[null,String,Array],offline:Boolean,"onload-script":[null,String],only:[null,"dev","development","prod","production"],optional:Boolean,"package-lock":Boolean,otp:[null,String],"package-lock-only":Boolean,parseable:Boolean,"prefer-offline":Boolean,"prefer-online":Boolean,prefix:Ou,production:Boolean,progress:Boolean,proxy:[null,!1,x0],provenance:Boolean,"read-only":Boolean,"rebuild-bundle":Boolean,registry:[null,x0],rollback:Boolean,save:Boolean,"save-bundle":Boolean,"save-dev":Boolean,"save-exact":Boolean,"save-optional":Boolean,"save-prefix":String,"save-prod":Boolean,scope:String,"script-shell":[null,String],"scripts-prepend-node-path":[!1,!0,"auto","warn-only"],searchopts:String,searchexclude:[null,String],searchlimit:Number,searchstaleness:Number,"send-metrics":Boolean,shell:String,shrinkwrap:Boolean,"sign-git-tag":Boolean,"sso-poll-frequency":Number,"sso-type":[null,"oauth","saml"],"strict-ssl":Boolean,tag:String,timing:Boolean,tmp:Ou,unicode:Boolean,"unsafe-perm":Boolean,usage:Boolean,user:[Number,String],userconfig:Ou,umask:HX,version:Boolean,"tag-version-prefix":String,versions:Boolean,viewer:String,_exit:Boolean}});var UP=N((S1e,VP)=>{"use strict";var{readCAFileSync:KX}=vP(),jP=V("fs"),Qw=V("path"),{ConfigChain:XX}=IP(),JX=PP(),eC=RP(),tC=class extends XX{constructor(t,r){super(t),this.root=t,this._parseField=eC.parseField.bind(null,r||MP())}add(t,r){try{for(let[n,i]of Object.entries(t)){let s=eC.parseKey(n);s!==n&&delete t[n],t[s]=this._parseField(i,s)}}catch(n){throw n}return super.add(t,r)}addFile(t,r){r=r||t;let n={__source__:r};this.sources[r]={path:t,type:"ini"},this.push(n),this._await();try{let i=jP.readFileSync(t,"utf8");this.addString(i,t,"ini",n)}catch(i){if(i.code==="ENOENT")this.add({},n);else if(i.code!=="EISDIR")return`Issue while reading "${t}". ${i.message}`}}addEnv(t){t=t||process.env;let r={};return Object.keys(t).filter(n=>/^npm_config_/i.test(n)).forEach(n=>{if(!t[n])return;let i=JX(n.substr(11)),s=t[n];r[i]=ZX(i,s)}),super.addEnv("",r,"env")}loadPrefix(){let t=this.list[0];Object.defineProperty(this,"prefix",{enumerable:!0,set:n=>{let i=this.get("global");this[i?"globalPrefix":"localPrefix"]=n},get:()=>this.get("global")?this.globalPrefix:this.localPrefix}),Object.defineProperty(this,"globalPrefix",{enumerable:!0,set:n=>{this.set("prefix",n)},get:()=>Qw.resolve(this.get("prefix"))});let r;if(Object.defineProperty(this,"localPrefix",{enumerable:!0,set:n=>{r=n},get:()=>r}),Object.prototype.hasOwnProperty.call(t,"prefix"))r=Qw.resolve(t.prefix);else try{r=eC.findPrefix(process.cwd())}catch(n){throw n}return r}loadCAFile(t){if(!t)return;let r=KX(t);r&&this.set("ca",r)}loadUser(){let t=this.root;if(this.get("global"))return;if(process.env.SUDO_UID){t.user=Number(process.env.SUDO_UID);return}let r=Qw.resolve(this.get("prefix"));try{let n=jP.statSync(r);t.user=n.uid}catch(n){if(n.code==="ENOENT")return;throw n}}};function ZX(e,t){function r(n){let i=`
|
|
404
|
+
`}):u&&typeof u=="object"?r.push(s):n+=sc(s)+i+sc(u)+Yw}),t.section&&n.length&&(n="["+sc(t.section)+"]"+Yw+n),r.forEach(function(s,o,a){var u=xP(s).join("\\."),l=(t.section?t.section+".":"")+u,c=SP(e[s],{section:l,whitespace:t.whitespace});n.length&&c.length&&(n+=Yw),n+=c}),n}function xP(e){return e.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(function(t){return t.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")})}function TX(e){var t={},r=t,n=null,i=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i,s=e.split(/[\r\n]+/g);return s.forEach(function(o,a,u){if(!(!o||o.match(/^\s*[;#]/))){var l=o.match(i);if(l){if(l[1]!==void 0){if(n=w0(l[1]),n==="__proto__"){r={};return}r=t[n]=t[n]||{};return}var c=w0(l[2]);if(c!=="__proto__"){var f=l[3]?w0(l[4]):!0;switch(f){case"true":case"false":case"null":f=JSON.parse(f)}if(c.length>2&&c.slice(-2)==="[]"){if(c=c.substring(0,c.length-2),c==="__proto__")return;r[c]?Array.isArray(r[c])||(r[c]=[r[c]]):r[c]=[]}Array.isArray(r[c])?r[c].push(f):r[c]=f}}}}),Object.keys(t).filter(function(o,a,u){if(!t[o]||typeof t[o]!="object"||Array.isArray(t[o]))return!1;var l=xP(o),c=t,f=l.pop(),p=f.replace(/\\\./g,".");return l.forEach(function(d,m,y){d!=="__proto__"&&((!c[d]||typeof c[d]!="object")&&(c[d]={}),c=c[d])}),c===t&&p===f?!1:(c[p]=t[o],!0)}).forEach(function(o,a,u){delete t[o]}),t}function _P(e){return e.charAt(0)==='"'&&e.slice(-1)==='"'||e.charAt(0)==="'"&&e.slice(-1)==="'"}function sc(e){return typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&_P(e)||e!==e.trim()?JSON.stringify(e):e.replace(/;/g,"\\;").replace(/#/g,"\\#")}function w0(e,t){if(e=(e||"").trim(),_P(e)){e.charAt(0)==="'"&&(e=e.substr(1,e.length-2));try{e=JSON.parse(e)}catch{}}else{for(var r=!1,n="",i=0,s=e.length;i<s;i++){var o=e.charAt(i);if(r)"\\;#".indexOf(o)!==-1?n+=o:n+="\\"+o,r=!1;else{if(";#".indexOf(o)!==-1)break;o==="\\"?r=!0:n+=o}}return r&&(n+="\\"),n.trim()}return e}});var IP=N((Fs,AP)=>{var OP=EP(),Sp=V("path"),C0=V("fs"),Kw=bP(),Xw=V("events").EventEmitter,PX=V("url"),LX=V("http"),Fs=AP.exports=function(){for(var e=[].slice.call(arguments),t=new xr;e.length;){var r=e.shift();r&&t.push(typeof r=="string"?RX(r):r)}return t},h1e=Fs.find=function(){var e=Sp.join.apply(null,[].slice.call(arguments));function t(r,n){var i=Sp.join(r,n);try{return C0.statSync(i),i}catch{if(Sp.dirname(r)!==r)return t(Sp.dirname(r),n)}}return t(__dirname,e)},NX=Fs.parse=function(e,t,r){if(e=""+e,r)if(r==="json")if(this.emit)try{return JSON.parse(e)}catch(n){this.emit("error",n)}else return JSON.parse(e);else return Kw.parse(e);else try{return JSON.parse(e)}catch{return Kw.parse(e)}},RX=Fs.json=function(){var e=[].slice.call(arguments).filter(function(n){return n!=null}),t=Sp.join.apply(null,e),r;try{r=C0.readFileSync(t,"utf-8")}catch{return}return NX(r,t,"json")},g1e=Fs.env=function(e,t){t=t||process.env;var r={},n=e.length;for(var i in t)i.indexOf(e)===0&&(r[i.substring(n)]=t[i]);return r};Fs.ConfigChain=xr;function xr(){Xw.apply(this),OP.apply(this,arguments),this._awaiting=0,this._saving=0,this.sources={}}var FP={constructor:{value:xr}};Object.keys(Xw.prototype).forEach(function(e){FP[e]=Object.getOwnPropertyDescriptor(Xw.prototype,e)});xr.prototype=Object.create(OP.prototype,FP);xr.prototype.del=function(e,t){if(t){var r=this.sources[t];if(r=r&&r.data,!r)return this.emit("error",new Error("not found "+t));delete r[e]}else for(var n=0,i=this.list.length;n<i;n++)delete this.list[n][e];return this};xr.prototype.set=function(e,t,r){var n;if(r){if(n=this.sources[r],n=n&&n.data,!n)return this.emit("error",new Error("not found "+r))}else if(n=this.list[0],!n)return this.emit("error",new Error("cannot set, no confs!"));return n[e]=t,this};xr.prototype.get=function(e,t){return t?(t=this.sources[t],t&&(t=t.data),t&&Object.hasOwnProperty.call(t,e)?t[e]:void 0):this.list[0][e]};xr.prototype.save=function(e,s,r){typeof s=="function"&&(r=s,s=null);var n=this.sources[e];if(!n||!(n.path||n.source)||!n.data)return this.emit("error",new Error("bad save target: "+e));if(n.source){var i=n.prefix||"";return Object.keys(n.data).forEach(function(a){n.source[i+a]=n.data[a]}),this}var s=s||n.type,o=n.data;return n.type==="json"?o=JSON.stringify(o):o=Kw.stringify(o),this._saving++,C0.writeFile(n.path,o,"utf8",function(a){if(this._saving--,a)return r?r(a):this.emit("error",a);this._saving===0&&(r&&r(),this.emit("save"))}.bind(this)),this};xr.prototype.addFile=function(e,t,r){r=r||e;var n={__source__:r};return this.sources[r]={path:e,type:t},this.push(n),this._await(),C0.readFile(e,"utf8",function(i,s){i&&this.emit("error",i),this.addString(s,e,t,n)}.bind(this)),this};xr.prototype.addEnv=function(e,t,r){r=r||"env";var n=Fs.env(e,t);return this.sources[r]={data:n,source:t,prefix:e},this.add(n,r)};xr.prototype.addUrl=function(e,t,r){this._await();var n=PX.format(e);r=r||n;var i={__source__:r};return this.sources[r]={href:n,type:t},this.push(i),LX.request(e,function(s){var o=[],a=s.headers["content-type"];t||(t=a.indexOf("json")!==-1?"json":a.indexOf("ini")!==-1?"ini":n.match(/\.json$/)?"json":n.match(/\.ini$/)?"ini":null,i.type=t),s.on("data",o.push.bind(o)).on("end",function(){this.addString(Buffer.concat(o),n,t,i)}.bind(this)).on("error",this.emit.bind(this,"error"))}.bind(this)).on("error",this.emit.bind(this,"error")).end(),this};xr.prototype.addString=function(e,t,r,n){return e=this.parse(e,t,r),this.add(e,n),this};xr.prototype.add=function(e,t){if(t&&typeof t=="object"){var r=this.list.indexOf(t);if(r===-1)return this.emit("error",new Error("bad marker"));this.splice(r,1,e),t=t.__source__,this.sources[t]=this.sources[t]||{},this.sources[t].data=e,this._resolve()}else typeof t=="string"&&(this.sources[t]=this.sources[t]||{},this.sources[t].data=e),this._await(),this.push(e),process.nextTick(this._resolve.bind(this));return this};xr.prototype.parse=Fs.parse;xr.prototype._await=function(){this._awaiting++};xr.prototype._resolve=function(){this._awaiting--,this._awaiting===0&&this.emit("load",this)}});var PP=N((y1e,TP)=>{TP.exports=function(e){let t=e.indexOf(":");if(t===-1)return Jw(e);let r=e.substr(0,t),n=e.substr(t+1);return`${Jw(r)}:${Jw(n)}`};function Jw(e){if(e=e.toLowerCase(),e==="_authtoken")return"_authToken";let t=e[0];for(let r=1;r<e.length;r++)t+=e[r]==="_"?"-":e[r];return t}});var LP=N(E0=>{"use strict";Object.defineProperty(E0,"__esModule",{value:!0});E0.envReplace=void 0;var BX=/(?<!\\)(\\*)\$\{([^${}]+)\}/g;function kX(e,t){return e.replace(BX,MX.bind(null,t))}E0.envReplace=kX;function MX(e,t,r,n){if(r.length%2)return t.slice((r.length+1)/2);let i=VX(e,n);if(i===void 0)throw new Error(`Failed to replace env in config: ${t}`);return`${r.slice(r.length/2)}${i}`}var jX=/([^:-]+)(:?)-(.+)/;function VX(e,t){let r=t.match(jX);if(!r)return e[t];let[,n,i,s]=r;return Object.prototype.hasOwnProperty.call(e,n)?!e[n]&&i?s:e[n]:s}});var NP=N(S0=>{"use strict";Object.defineProperty(S0,"__esModule",{value:!0});S0.envReplace=void 0;var UX=LP();Object.defineProperty(S0,"envReplace",{enumerable:!0,get:function(){return UX.envReplace}})});var RP=N(xp=>{"use strict";var $X=V("fs"),bu=V("path"),{envReplace:Zw}=NP(),WX=e=>typeof e!="string"?e:Zw(e,process.env),GX=(e,t,r)=>{if(typeof t!="string")return t;let n=[].concat(e[r]),i=n.indexOf(bu)!==-1,s=n.indexOf(Boolean)!==-1,o=n.indexOf(String)!==-1,a=n.indexOf(Number)!==-1;if(t=`${t}`.trim(),/^".*"$/.test(t))try{t=JSON.parse(t)}catch{throw new Error(`Failed parsing JSON config key ${r}: ${t}`)}if(s&&!o&&t==="")return!0;switch(t){case"true":return!0;case"false":return!1;case"null":return null;case"undefined":return}return t=Zw(t,process.env),i&&((process.platform==="win32"?/^~(\/|\\)/:/^~\//).test(t)&&process.env.HOME&&(t=bu.resolve(process.env.HOME,t.substr(2))),t=bu.resolve(t)),a&&!isNaN(t)&&(t=Number(t)),t},qX=e=>{e=bu.resolve(e);let t=!1;for(;bu.basename(e)==="node_modules";)e=bu.dirname(e),t=!0;if(t)return e;let r=(n,i)=>{let s=/^[a-zA-Z]:(\\|\/)?$/;if(n==="/"||process.platform==="win32"&&s.test(n))return i;try{let o=$X.readdirSync(n);if(o.includes("node_modules")||o.includes("package.json")||o.includes("package.json5")||o.includes("package.yaml")||o.includes("pnpm-workspace.yaml"))return n;let a=bu.dirname(n);return a===n?i:r(a,i)}catch(o){if(n===i){if(o.code==="ENOENT")return i;throw o}return i}};return r(e,e)};xp.envReplace=Zw;xp.findPrefix=qX;xp.parseField=GX;xp.parseKey=WX});var MP=N(kP=>{"use strict";var Ou=V("path"),zX=V("stream").Stream,x0=V("url"),HX=()=>{},YX=()=>[],BP=()=>{};kP.types={access:[null,"restricted","public"],"allow-same-version":Boolean,"always-auth":Boolean,also:[null,"dev","development"],audit:Boolean,"auth-type":["legacy","sso","saml","oauth"],"bin-links":Boolean,browser:[null,String],ca:[null,String,Array],cafile:Ou,cache:Ou,"cache-lock-stale":Number,"cache-lock-retries":Number,"cache-lock-wait":Number,"cache-max":Number,"cache-min":Number,cert:[null,String],cidr:[null,String,Array],color:["always",Boolean],depth:Number,description:Boolean,dev:Boolean,"dry-run":Boolean,editor:String,"engine-strict":Boolean,force:Boolean,"fetch-retries":Number,"fetch-retry-factor":Number,"fetch-retry-mintimeout":Number,"fetch-retry-maxtimeout":Number,git:String,"git-tag-version":Boolean,"commit-hooks":Boolean,global:Boolean,globalconfig:Ou,"global-style":Boolean,group:[Number,String],"https-proxy":[null,x0],"user-agent":String,"ham-it-up":Boolean,heading:String,"if-present":Boolean,"ignore-prepublish":Boolean,"ignore-scripts":Boolean,"init-module":Ou,"init-author-name":String,"init-author-email":String,"init-author-url":["",x0],"init-license":String,"init-version":BP,json:Boolean,key:[null,String],"legacy-bundling":Boolean,link:Boolean,"local-address":YX(),loglevel:["silent","error","warn","notice","http","timing","info","verbose","silly"],logstream:zX,"logs-max":Number,long:Boolean,maxsockets:Number,message:String,"metrics-registry":[null,String],"node-options":[null,String],"node-version":[null,BP],"no-proxy":[null,String,Array],offline:Boolean,"onload-script":[null,String],only:[null,"dev","development","prod","production"],optional:Boolean,"package-lock":Boolean,otp:[null,String],"package-lock-only":Boolean,parseable:Boolean,"prefer-offline":Boolean,"prefer-online":Boolean,prefix:Ou,production:Boolean,progress:Boolean,proxy:[null,!1,x0],provenance:Boolean,"read-only":Boolean,"rebuild-bundle":Boolean,registry:[null,x0],rollback:Boolean,save:Boolean,"save-bundle":Boolean,"save-dev":Boolean,"save-exact":Boolean,"save-optional":Boolean,"save-prefix":String,"save-prod":Boolean,scope:String,"script-shell":[null,String],"scripts-prepend-node-path":[!1,!0,"auto","warn-only"],searchopts:String,searchexclude:[null,String],searchlimit:Number,searchstaleness:Number,"send-metrics":Boolean,shell:String,shrinkwrap:Boolean,"sign-git-tag":Boolean,"sso-poll-frequency":Number,"sso-type":[null,"oauth","saml"],"strict-ssl":Boolean,tag:String,timing:Boolean,tmp:Ou,unicode:Boolean,"unsafe-perm":Boolean,usage:Boolean,user:[Number,String],userconfig:Ou,umask:HX,version:Boolean,"tag-version-prefix":String,versions:Boolean,viewer:String,_exit:Boolean}});var UP=N((E1e,VP)=>{"use strict";var{readCAFileSync:KX}=vP(),jP=V("fs"),Qw=V("path"),{ConfigChain:XX}=IP(),JX=PP(),eC=RP(),tC=class extends XX{constructor(t,r){super(t),this.root=t,this._parseField=eC.parseField.bind(null,r||MP())}add(t,r){try{for(let[n,i]of Object.entries(t)){let s=eC.parseKey(n);s!==n&&delete t[n],t[s]=this._parseField(i,s)}}catch(n){throw n}return super.add(t,r)}addFile(t,r){r=r||t;let n={__source__:r};this.sources[r]={path:t,type:"ini"},this.push(n),this._await();try{let i=jP.readFileSync(t,"utf8");this.addString(i,t,"ini",n)}catch(i){if(i.code==="ENOENT")this.add({},n);else if(i.code!=="EISDIR")return`Issue while reading "${t}". ${i.message}`}}addEnv(t){t=t||process.env;let r={};return Object.keys(t).filter(n=>/^npm_config_/i.test(n)).forEach(n=>{if(!t[n])return;let i=JX(n.substr(11)),s=t[n];r[i]=ZX(i,s)}),super.addEnv("",r,"env")}loadPrefix(){let t=this.list[0];Object.defineProperty(this,"prefix",{enumerable:!0,set:n=>{let i=this.get("global");this[i?"globalPrefix":"localPrefix"]=n},get:()=>this.get("global")?this.globalPrefix:this.localPrefix}),Object.defineProperty(this,"globalPrefix",{enumerable:!0,set:n=>{this.set("prefix",n)},get:()=>Qw.resolve(this.get("prefix"))});let r;if(Object.defineProperty(this,"localPrefix",{enumerable:!0,set:n=>{r=n},get:()=>r}),Object.prototype.hasOwnProperty.call(t,"prefix"))r=Qw.resolve(t.prefix);else try{r=eC.findPrefix(process.cwd())}catch(n){throw n}return r}loadCAFile(t){if(!t)return;let r=KX(t);r&&this.set("ca",r)}loadUser(){let t=this.root;if(this.get("global"))return;if(process.env.SUDO_UID){t.user=Number(process.env.SUDO_UID);return}let r=Qw.resolve(this.get("prefix"));try{let n=jP.statSync(r);t.user=n.uid}catch(n){if(n.code==="ENOENT")return;throw n}}};function ZX(e,t){function r(n){let i=`
|
|
405
405
|
|
|
406
|
-
`;return n.indexOf(i)?n.split(i):n.split(",")}switch(e){case"hoist-pattern":case"public-hoist-pattern":return r(t)}return t}VP.exports=tC});var HP=N(zP=>{"use strict";var GP=V("os"),As=V("path"),qP=GP.tmpdir(),QX=process.getuid?process.getuid():process.pid,eJ=()=>!0,$P=process.platform==="win32",WP={editor:()=>process.env.EDITOR||process.env.VISUAL||($P?"notepad.exe":"vi"),shell:()=>$P?process.env.COMSPEC||"cmd.exe":process.env.SHELL||"/bin/bash"},tJ={fromString:()=>process.umask()},oc=GP.homedir();oc?process.env.HOME=oc:oc=As.resolve(qP,"npm-"+QX);var rJ=process.platform==="win32"?"npm-cache":".npm",nJ=process.platform==="win32"&&process.env.APPDATA||oc,iJ=As.resolve(nJ,rJ),_0,Fu;Object.defineProperty(zP,"defaults",{get:function(){return _0||(process.env.PREFIX?Fu=process.env.PREFIX:process.platform==="win32"?Fu=As.dirname(process.execPath):(Fu=As.dirname(As.dirname(process.execPath)),process.env.DESTDIR&&(Fu=As.join(process.env.DESTDIR,Fu))),_0={access:null,"allow-same-version":!1,"always-auth":!1,also:null,audit:!0,"auth-type":"legacy","bin-links":!0,browser:null,ca:null,cafile:null,cache:iJ,"cache-lock-stale":6e4,"cache-lock-retries":10,"cache-lock-wait":1e4,"cache-max":1/0,"cache-min":10,cert:null,cidr:null,color:process.env.NO_COLOR==null,depth:1/0,description:!0,dev:!1,"dry-run":!1,editor:WP.editor(),"engine-strict":!1,force:!1,"fetch-retries":2,"fetch-retry-factor":10,"fetch-retry-mintimeout":1e4,"fetch-retry-maxtimeout":6e4,git:"git","git-tag-version":!0,"commit-hooks":!0,global:!1,globalconfig:As.resolve(Fu,"etc","npmrc"),"global-style":!1,group:process.platform==="win32"?0:process.env.SUDO_GID||process.getgid&&process.getgid(),"ham-it-up":!1,heading:"npm","if-present":!1,"ignore-prepublish":!1,"ignore-scripts":!1,"init-module":As.resolve(oc,".npm-init.js"),"init-author-name":"","init-author-email":"","init-author-url":"","init-version":"1.0.0","init-license":"ISC",json:!1,key:null,"legacy-bundling":!1,link:!1,"local-address":void 0,loglevel:"notice",logstream:process.stderr,"logs-max":10,long:!1,maxsockets:50,message:"%s","metrics-registry":null,"node-options":null,offline:!1,"onload-script":!1,only:null,optional:!0,otp:null,"package-lock":!0,"package-lock-only":!1,parseable:!1,"prefer-offline":!1,"prefer-online":!1,prefix:Fu,production:!0,progress:!process.env.TRAVIS&&!process.env.CI,provenance:!1,proxy:null,"https-proxy":null,"no-proxy":null,"user-agent":"npm/{npm-version} node/{node-version} {platform} {arch}","read-only":!1,"rebuild-bundle":!0,registry:"https://registry.npmjs.org/",rollback:!0,save:!0,"save-bundle":!1,"save-dev":!1,"save-exact":!1,"save-optional":!1,"save-prefix":"^","save-prod":!1,scope:"","script-shell":null,"scripts-prepend-node-path":"warn-only",searchopts:"",searchexclude:null,searchlimit:20,searchstaleness:15*60,"send-metrics":!1,shell:WP.shell(),shrinkwrap:!0,"sign-git-tag":!1,"sso-poll-frequency":500,"sso-type":"oauth","strict-ssl":!0,tag:"latest","tag-version-prefix":"v",timing:!1,tmp:qP,unicode:eJ(),"unsafe-perm":process.platform==="win32"||process.platform==="cygwin"||!(process.getuid&&process.setuid&&process.getgid&&process.setgid)||process.getuid()!==0,usage:!1,user:process.platform==="win32"?0:"nobody",userconfig:As.resolve(oc,".npmrc"),umask:process.umask?process.umask():tJ.fromString("022"),version:!1,versions:!1,viewer:process.platform==="win32"?"browser":"man",_exit:!0},_0)}})});var KP=N((_1e,rC)=>{"use strict";var Au=V("path"),sJ=UP(),YP=HP();rC.exports=(e,t,r)=>{let n=new sJ(Object.assign({},YP.defaults,r),t);n.add(Object.assign({},e),"cli");let i=[],s=!1;if(V.resolve.paths){let l=V.resolve.paths("npm"),c;try{c=V.resolve("npm",{paths:l.slice(-1)})}catch{s=!0}c&&i.push(n.addFile(Au.resolve(Au.dirname(c),"..","npmrc"),"builtin"))}n.addEnv(),n.loadPrefix();let o=Au.resolve(n.localPrefix,".npmrc"),a=n.get("userconfig");if(!n.get("global")&&o!==a?i.push(n.addFile(o,"project")):n.add({},"project"),n.get("workspace-prefix")&&n.get("workspace-prefix")!==o){let l=Au.resolve(n.get("workspace-prefix"),".npmrc");i.push(n.addFile(l,"workspace"))}if(i.push(n.addFile(n.get("userconfig"),"user")),n.get("prefix")){let l=Au.resolve(n.get("prefix"),"etc");n.root.globalconfig=Au.resolve(l,"npmrc"),n.root.globalignorefile=Au.resolve(l,"npmignore")}i.push(n.addFile(n.get("globalconfig"),"global")),n.loadUser();let u=n.get("cafile");return u&&n.loadCAFile(u),{config:n,warnings:i.filter(Boolean),failedToLoadBuiltInConfig:s}};Object.defineProperty(rC.exports,"defaults",{get(){return YP.defaults},enumerable:!0})});var nL=N((O1e,rL)=>{var nC=V("url"),XP=KP(),JP=":_authToken",ZP=":_auth",QP=":username",eL=":_password";rL.exports=function(){let t,r;arguments.length>=2?(t=arguments[0],r=Object.assign({},arguments[1])):typeof arguments[0]=="string"?t=arguments[0]:r=Object.assign({},arguments[0]),r=r||{};let n=r.npmrc;return r.npmrc=(r.npmrc?{config:{get:i=>n[i]}}:XP()).config,t=t||r.npmrc.get("registry")||XP.defaults.registry,tL(t,r)||oJ(r.npmrc)};function tL(e,t){let r=nC.parse(e,!1,!0),n;for(;n!=="/"&&r.pathname!==n;){n=r.pathname||"/";let i="//"+r.host+n.replace(/\/$/,""),s=uJ(i,t.npmrc);if(s)return s;if(!t.recursive)return/\/$/.test(e)?void 0:tL(nC.resolve(e,"."),t);r.pathname=nC.resolve(aJ(n),"..")||"/"}}function oJ(e){return e.get("_auth")?{token:b0(e.get("_auth")),type:"Basic"}:void 0}function aJ(e){return e[e.length-1]==="/"?e:e+"/"}function uJ(e,t){let r=lJ(t.get(e+JP)||t.get(e+"/"+JP));if(r)return r;let n=t.get(e+QP)||t.get(e+"/"+QP),i=t.get(e+eL)||t.get(e+"/"+eL),s=cJ(n,i);if(s)return s;let o=fJ(t.get(e+ZP)||t.get(e+"/"+ZP));if(o)return o}function b0(e){return e.replace(/^\$\{?([^}]*)\}?$/,function(t,r){return process.env[r]})}function lJ(e){return e?{token:b0(e),type:"Bearer"}:void 0}function cJ(e,t){if(!e||!t)return;let r=Buffer.from(b0(t),"base64").toString("utf8");return{token:Buffer.from(e+":"+r,"utf8").toString("base64"),type:"Basic",password:r,username:e}}function fJ(e){return e?{token:b0(e),type:"Basic"}:void 0}});var sL=N((F1e,iL)=>{var pJ=wu(),dJ=(e,t)=>{let r=pJ(e,t);return r?r.version:null};iL.exports=dJ});var aL=N((A1e,oL)=>{var mJ=wu(),hJ=(e,t)=>{let r=mJ(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};oL.exports=hJ});var cL=N((I1e,lL)=>{var uL=Sr(),gJ=(e,t,r,n,i)=>{typeof r=="string"&&(i=n,n=r,r=void 0);try{return new uL(e instanceof uL?e.version:e,r).inc(t,n,i).version}catch{return null}};lL.exports=gJ});var pL=N((T1e,fL)=>{var yJ=Sr(),DJ=(e,t)=>new yJ(e,t).major;fL.exports=DJ});var mL=N((P1e,dL)=>{var vJ=Sr(),wJ=(e,t)=>new vJ(e,t).minor;dL.exports=wJ});var gL=N((L1e,hL)=>{var CJ=Sr(),EJ=(e,t)=>new CJ(e,t).patch;hL.exports=EJ});var DL=N((N1e,yL)=>{var SJ=wu(),xJ=(e,t)=>{let r=SJ(e,t);return r&&r.prerelease.length?r.prerelease:null};yL.exports=xJ});var wL=N((R1e,vL)=>{var _J=Yn(),bJ=(e,t,r)=>_J(t,e,r);vL.exports=bJ});var EL=N((B1e,CL)=>{var OJ=Yn(),FJ=(e,t)=>OJ(e,t,!0);CL.exports=FJ});var O0=N((k1e,xL)=>{var SL=Sr(),AJ=(e,t,r)=>{let n=new SL(e,r),i=new SL(t,r);return n.compare(i)||n.compareBuild(i)};xL.exports=AJ});var bL=N((M1e,_L)=>{var IJ=O0(),TJ=(e,t)=>e.sort((r,n)=>IJ(r,n,t));_L.exports=TJ});var FL=N((j1e,OL)=>{var PJ=O0(),LJ=(e,t)=>e.sort((r,n)=>PJ(n,r,t));OL.exports=LJ});var F0=N((V1e,AL)=>{var NJ=Yn(),RJ=(e,t,r)=>NJ(e,t,r)<0;AL.exports=RJ});var iC=N((U1e,IL)=>{var BJ=Yn(),kJ=(e,t,r)=>BJ(e,t,r)===0;IL.exports=kJ});var sC=N(($1e,TL)=>{var MJ=Yn(),jJ=(e,t,r)=>MJ(e,t,r)!==0;TL.exports=jJ});var A0=N((W1e,PL)=>{var VJ=Yn(),UJ=(e,t,r)=>VJ(e,t,r)>=0;PL.exports=UJ});var I0=N((G1e,LL)=>{var $J=Yn(),WJ=(e,t,r)=>$J(e,t,r)<=0;LL.exports=WJ});var oC=N((q1e,NL)=>{var GJ=iC(),qJ=sC(),zJ=Jl(),HJ=A0(),YJ=F0(),KJ=I0(),XJ=(e,t,r,n)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return GJ(e,r,n);case"!=":return qJ(e,r,n);case">":return zJ(e,r,n);case">=":return HJ(e,r,n);case"<":return YJ(e,r,n);case"<=":return KJ(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};NL.exports=XJ});var BL=N((z1e,RL)=>{var JJ=Sr(),ZJ=wu(),{safeRe:T0,t:P0}=Kl(),QJ=(e,t)=>{if(e instanceof JJ)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(t.includePrerelease?T0[P0.COERCEFULL]:T0[P0.COERCE]);else{let u=t.includePrerelease?T0[P0.COERCERTLFULL]:T0[P0.COERCERTL],l;for(;(l=u.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||l.index+l[0].length!==r.index+r[0].length)&&(r=l),u.lastIndex=l.index+l[1].length+l[2].length;u.lastIndex=-1}if(r===null)return null;let n=r[2],i=r[3]||"0",s=r[4]||"0",o=t.includePrerelease&&r[5]?`-${r[5]}`:"",a=t.includePrerelease&&r[6]?`+${r[6]}`:"";return ZJ(`${n}.${i}.${s}${o}${a}`,t)};RL.exports=QJ});var ML=N((H1e,kL)=>{var aC=class{constructor(){this.max=1e3,this.map=new Map}get(t){let r=this.map.get(t);if(r!==void 0)return this.map.delete(t),this.map.set(t,r),r}delete(t){return this.map.delete(t)}set(t,r){if(!this.delete(t)&&r!==void 0){if(this.map.size>=this.max){let i=this.map.keys().next().value;this.delete(i)}this.map.set(t,r)}return this}};kL.exports=aC});var Kn=N((Y1e,$L)=>{var eZ=/\s+/g,uC=class e{constructor(t,r){if(r=rZ(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof lC)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(eZ," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(i=>!VL(i[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let i of this.set)if(i.length===1&&lZ(i[0])){this.set=[i];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let t=0;t<this.set.length;t++){t>0&&(this.formatted+="||");let r=this.set[t];for(let n=0;n<r.length;n++)n>0&&(this.formatted+=" "),this.formatted+=r[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){let n=((this.options.includePrerelease&&aZ)|(this.options.loose&&uZ))+":"+t,i=jL.get(n);if(i)return i;let s=this.options.loose,o=s?Yr[Br.HYPHENRANGELOOSE]:Yr[Br.HYPHENRANGE];t=t.replace(o,vZ(this.options.includePrerelease)),dt("hyphen replace",t),t=t.replace(Yr[Br.COMPARATORTRIM],iZ),dt("comparator trim",t),t=t.replace(Yr[Br.TILDETRIM],sZ),dt("tilde trim",t),t=t.replace(Yr[Br.CARETTRIM],oZ),dt("caret trim",t);let a=t.split(" ").map(f=>cZ(f,this.options)).join(" ").split(/\s+/).map(f=>DZ(f,this.options));s&&(a=a.filter(f=>(dt("loose invalid filter",f,this.options),!!f.match(Yr[Br.COMPARATORLOOSE])))),dt("range list",a);let u=new Map,l=a.map(f=>new lC(f,this.options));for(let f of l){if(VL(f))return[f];u.set(f.value,f)}u.size>1&&u.has("")&&u.delete("");let c=[...u.values()];return jL.set(n,c),c}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some(n=>UL(n,r)&&t.set.some(i=>UL(i,r)&&n.every(s=>i.every(o=>s.intersects(o,r)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new nZ(t,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(wZ(this.set[r],t,this.options))return!0;return!1}};$L.exports=uC;var tZ=ML(),jL=new tZ,rZ=u0(),lC=_p(),dt=hp(),nZ=Sr(),{safeRe:Yr,t:Br,comparatorTrimReplace:iZ,tildeTrimReplace:sZ,caretTrimReplace:oZ}=Kl(),{FLAG_INCLUDE_PRERELEASE:aZ,FLAG_LOOSE:uZ}=gp(),VL=e=>e.value==="<0.0.0-0",lZ=e=>e.value==="",UL=(e,t)=>{let r=!0,n=e.slice(),i=n.pop();for(;r&&n.length;)r=n.every(s=>i.intersects(s,t)),i=n.pop();return r},cZ=(e,t)=>(dt("comp",e,t),e=dZ(e,t),dt("caret",e),e=fZ(e,t),dt("tildes",e),e=hZ(e,t),dt("xrange",e),e=yZ(e,t),dt("stars",e),e),kr=e=>!e||e.toLowerCase()==="x"||e==="*",fZ=(e,t)=>e.trim().split(/\s+/).map(r=>pZ(r,t)).join(" "),pZ=(e,t)=>{let r=t.loose?Yr[Br.TILDELOOSE]:Yr[Br.TILDE];return e.replace(r,(n,i,s,o,a)=>{dt("tilde",e,n,i,s,o,a);let u;return kr(i)?u="":kr(s)?u=`>=${i}.0.0 <${+i+1}.0.0-0`:kr(o)?u=`>=${i}.${s}.0 <${i}.${+s+1}.0-0`:a?(dt("replaceTilde pr",a),u=`>=${i}.${s}.${o}-${a} <${i}.${+s+1}.0-0`):u=`>=${i}.${s}.${o} <${i}.${+s+1}.0-0`,dt("tilde return",u),u})},dZ=(e,t)=>e.trim().split(/\s+/).map(r=>mZ(r,t)).join(" "),mZ=(e,t)=>{dt("caret",e,t);let r=t.loose?Yr[Br.CARETLOOSE]:Yr[Br.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(i,s,o,a,u)=>{dt("caret",e,i,s,o,a,u);let l;return kr(s)?l="":kr(o)?l=`>=${s}.0.0${n} <${+s+1}.0.0-0`:kr(a)?s==="0"?l=`>=${s}.${o}.0${n} <${s}.${+o+1}.0-0`:l=`>=${s}.${o}.0${n} <${+s+1}.0.0-0`:u?(dt("replaceCaret pr",u),s==="0"?o==="0"?l=`>=${s}.${o}.${a}-${u} <${s}.${o}.${+a+1}-0`:l=`>=${s}.${o}.${a}-${u} <${s}.${+o+1}.0-0`:l=`>=${s}.${o}.${a}-${u} <${+s+1}.0.0-0`):(dt("no pr"),s==="0"?o==="0"?l=`>=${s}.${o}.${a}${n} <${s}.${o}.${+a+1}-0`:l=`>=${s}.${o}.${a}${n} <${s}.${+o+1}.0-0`:l=`>=${s}.${o}.${a} <${+s+1}.0.0-0`),dt("caret return",l),l})},hZ=(e,t)=>(dt("replaceXRanges",e,t),e.split(/\s+/).map(r=>gZ(r,t)).join(" ")),gZ=(e,t)=>{e=e.trim();let r=t.loose?Yr[Br.XRANGELOOSE]:Yr[Br.XRANGE];return e.replace(r,(n,i,s,o,a,u)=>{dt("xRange",e,n,i,s,o,a,u);let l=kr(s),c=l||kr(o),f=c||kr(a),p=f;return i==="="&&p&&(i=""),u=t.includePrerelease?"-0":"",l?i===">"||i==="<"?n="<0.0.0-0":n="*":i&&p?(c&&(o=0),a=0,i===">"?(i=">=",c?(s=+s+1,o=0,a=0):(o=+o+1,a=0)):i==="<="&&(i="<",c?s=+s+1:o=+o+1),i==="<"&&(u="-0"),n=`${i+s}.${o}.${a}${u}`):c?n=`>=${s}.0.0${u} <${+s+1}.0.0-0`:f&&(n=`>=${s}.${o}.0${u} <${s}.${+o+1}.0-0`),dt("xRange return",n),n})},yZ=(e,t)=>(dt("replaceStars",e,t),e.trim().replace(Yr[Br.STAR],"")),DZ=(e,t)=>(dt("replaceGTE0",e,t),e.trim().replace(Yr[t.includePrerelease?Br.GTE0PRE:Br.GTE0],"")),vZ=e=>(t,r,n,i,s,o,a,u,l,c,f,p)=>(kr(n)?r="":kr(i)?r=`>=${n}.0.0${e?"-0":""}`:kr(s)?r=`>=${n}.${i}.0${e?"-0":""}`:o?r=`>=${r}`:r=`>=${r}${e?"-0":""}`,kr(l)?u="":kr(c)?u=`<${+l+1}.0.0-0`:kr(f)?u=`<${l}.${+c+1}.0-0`:p?u=`<=${l}.${c}.${f}-${p}`:e?u=`<${l}.${c}.${+f+1}-0`:u=`<=${u}`,`${r} ${u}`.trim()),wZ=(e,t,r)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let n=0;n<e.length;n++)if(dt(e[n].semver),e[n].semver!==lC.ANY&&e[n].semver.prerelease.length>0){let i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}});var _p=N((K1e,YL)=>{var bp=Symbol("SemVer ANY"),pC=class e{static get ANY(){return bp}constructor(t,r){if(r=WL(r),t instanceof e){if(t.loose===!!r.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),fC("comparator",t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===bp?this.value="":this.value=this.operator+this.semver.version,fC("comp",this)}parse(t){let r=this.options.loose?GL[qL.COMPARATORLOOSE]:GL[qL.COMPARATOR],n=t.match(r);if(!n)throw new TypeError(`Invalid comparator: ${t}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new zL(n[2],this.options.loose):this.semver=bp}toString(){return this.value}test(t){if(fC("Comparator.test",t,this.options.loose),this.semver===bp||t===bp)return!0;if(typeof t=="string")try{t=new zL(t,this.options)}catch{return!1}return cC(t,this.operator,this.semver,this.options)}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new HL(t.value,r).test(this.value):t.operator===""?t.value===""?!0:new HL(this.value,r).test(t.semver):(r=WL(r),r.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&t.operator.startsWith(">")||this.operator.startsWith("<")&&t.operator.startsWith("<")||this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")||cC(this.semver,"<",t.semver,r)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||cC(this.semver,">",t.semver,r)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};YL.exports=pC;var WL=u0(),{safeRe:GL,t:qL}=Kl(),cC=oC(),fC=hp(),zL=Sr(),HL=Kn()});var Op=N((X1e,KL)=>{var CZ=Kn(),EZ=(e,t,r)=>{try{t=new CZ(t,r)}catch{return!1}return t.test(e)};KL.exports=EZ});var JL=N((J1e,XL)=>{var SZ=Kn(),xZ=(e,t)=>new SZ(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));XL.exports=xZ});var QL=N((Z1e,ZL)=>{var _Z=Sr(),bZ=Kn(),OZ=(e,t,r)=>{let n=null,i=null,s=null;try{s=new bZ(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===-1)&&(n=o,i=new _Z(n,r))}),n};ZL.exports=OZ});var tN=N((Q1e,eN)=>{var FZ=Sr(),AZ=Kn(),IZ=(e,t,r)=>{let n=null,i=null,s=null;try{s=new AZ(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===1)&&(n=o,i=new FZ(n,r))}),n};eN.exports=IZ});var iN=N((ewe,nN)=>{var dC=Sr(),TZ=Kn(),rN=Jl(),PZ=(e,t)=>{e=new TZ(e,t);let r=new dC("0.0.0");if(e.test(r)||(r=new dC("0.0.0-0"),e.test(r)))return r;r=null;for(let n=0;n<e.set.length;++n){let i=e.set[n],s=null;i.forEach(o=>{let a=new dC(o.semver.version);switch(o.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!s||rN(a,s))&&(s=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!r||rN(r,s))&&(r=s)}return r&&e.test(r)?r:null};nN.exports=PZ});var oN=N((twe,sN)=>{var LZ=Kn(),NZ=(e,t)=>{try{return new LZ(e,t).range||"*"}catch{return null}};sN.exports=NZ});var L0=N((rwe,cN)=>{var RZ=Sr(),lN=_p(),{ANY:BZ}=lN,kZ=Kn(),MZ=Op(),aN=Jl(),uN=F0(),jZ=I0(),VZ=A0(),UZ=(e,t,r,n)=>{e=new RZ(e,n),t=new kZ(t,n);let i,s,o,a,u;switch(r){case">":i=aN,s=jZ,o=uN,a=">",u=">=";break;case"<":i=uN,s=VZ,o=aN,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(MZ(e,t,n))return!1;for(let l=0;l<t.set.length;++l){let c=t.set[l],f=null,p=null;if(c.forEach(d=>{d.semver===BZ&&(d=new lN(">=0.0.0")),f=f||d,p=p||d,i(d.semver,f.semver,n)?f=d:o(d.semver,p.semver,n)&&(p=d)}),f.operator===a||f.operator===u||(!p.operator||p.operator===a)&&s(e,p.semver))return!1;if(p.operator===u&&o(e,p.semver))return!1}return!0};cN.exports=UZ});var pN=N((nwe,fN)=>{var $Z=L0(),WZ=(e,t,r)=>$Z(e,t,">",r);fN.exports=WZ});var mN=N((iwe,dN)=>{var GZ=L0(),qZ=(e,t,r)=>GZ(e,t,"<",r);dN.exports=qZ});var yN=N((swe,gN)=>{var hN=Kn(),zZ=(e,t,r)=>(e=new hN(e,r),t=new hN(t,r),e.intersects(t,r));gN.exports=zZ});var vN=N((owe,DN)=>{var HZ=Op(),YZ=Yn();DN.exports=(e,t,r)=>{let n=[],i=null,s=null,o=e.sort((c,f)=>YZ(c,f,r));for(let c of o)HZ(c,t,r)?(s=c,i||(i=c)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);let a=[];for(let[c,f]of n)c===f?a.push(c):!f&&c===o[0]?a.push("*"):f?c===o[0]?a.push(`<=${f}`):a.push(`${c} - ${f}`):a.push(`>=${c}`);let u=a.join(" || "),l=typeof t.raw=="string"?t.raw:String(t);return u.length<l.length?u:t}});var _N=N((awe,xN)=>{var wN=Kn(),hC=_p(),{ANY:mC}=hC,Fp=Op(),gC=Yn(),KZ=(e,t,r={})=>{if(e===t)return!0;e=new wN(e,r),t=new wN(t,r);let n=!1;e:for(let i of e.set){for(let s of t.set){let o=JZ(i,s,r);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},XZ=[new hC(">=0.0.0-0")],CN=[new hC(">=0.0.0")],JZ=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===mC){if(t.length===1&&t[0].semver===mC)return!0;r.includePrerelease?e=XZ:e=CN}if(t.length===1&&t[0].semver===mC){if(r.includePrerelease)return!0;t=CN}let n=new Set,i,s;for(let d of e)d.operator===">"||d.operator===">="?i=EN(i,d,r):d.operator==="<"||d.operator==="<="?s=SN(s,d,r):n.add(d.semver);if(n.size>1)return null;let o;if(i&&s){if(o=gC(i.semver,s.semver,r),o>0)return null;if(o===0&&(i.operator!==">="||s.operator!=="<="))return null}for(let d of n){if(i&&!Fp(d,String(i),r)||s&&!Fp(d,String(s),r))return null;for(let m of t)if(!Fp(d,String(m),r))return!1;return!0}let a,u,l,c,f=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,p=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;f&&f.prerelease.length===1&&s.operator==="<"&&f.prerelease[0]===0&&(f=!1);for(let d of t){if(c=c||d.operator===">"||d.operator===">=",l=l||d.operator==="<"||d.operator==="<=",i){if(p&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===p.major&&d.semver.minor===p.minor&&d.semver.patch===p.patch&&(p=!1),d.operator===">"||d.operator===">="){if(a=EN(i,d,r),a===d&&a!==i)return!1}else if(i.operator===">="&&!Fp(i.semver,String(d),r))return!1}if(s){if(f&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===f.major&&d.semver.minor===f.minor&&d.semver.patch===f.patch&&(f=!1),d.operator==="<"||d.operator==="<="){if(u=SN(s,d,r),u===d&&u!==s)return!1}else if(s.operator==="<="&&!Fp(s.semver,String(d),r))return!1}if(!d.operator&&(s||i)&&o!==0)return!1}return!(i&&l&&!s&&o!==0||s&&c&&!i&&o!==0||p||f)},EN=(e,t,r)=>{if(!e)return t;let n=gC(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},SN=(e,t,r)=>{if(!e)return t;let n=gC(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};xN.exports=KZ});var AN=N((uwe,FN)=>{var yC=Kl(),bN=gp(),ZZ=Sr(),ON=Tw(),QZ=wu(),eQ=sL(),tQ=aL(),rQ=cL(),nQ=Lw(),iQ=pL(),sQ=mL(),oQ=gL(),aQ=DL(),uQ=Yn(),lQ=wL(),cQ=EL(),fQ=O0(),pQ=bL(),dQ=FL(),mQ=Jl(),hQ=F0(),gQ=iC(),yQ=sC(),DQ=A0(),vQ=I0(),wQ=oC(),CQ=BL(),EQ=_p(),SQ=Kn(),xQ=Op(),_Q=JL(),bQ=QL(),OQ=tN(),FQ=iN(),AQ=oN(),IQ=L0(),TQ=pN(),PQ=mN(),LQ=yN(),NQ=vN(),RQ=_N();FN.exports={parse:QZ,valid:eQ,clean:tQ,inc:rQ,diff:nQ,major:iQ,minor:sQ,patch:oQ,prerelease:aQ,compare:uQ,rcompare:lQ,compareLoose:cQ,compareBuild:fQ,sort:pQ,rsort:dQ,gt:mQ,lt:hQ,eq:gQ,neq:yQ,gte:DQ,lte:vQ,cmp:wQ,coerce:CQ,Comparator:EQ,Range:SQ,satisfies:xQ,toComparators:_Q,maxSatisfying:bQ,minSatisfying:OQ,minVersion:FQ,validRange:AQ,outside:IQ,gtr:TQ,ltr:PQ,intersects:LQ,simplifyRange:NQ,subset:RQ,SemVer:ZZ,re:yC.re,src:yC.src,tokens:yC.t,SEMVER_SPEC_VERSION:bN.SEMVER_SPEC_VERSION,RELEASE_TYPES:bN.RELEASE_TYPES,compareIdentifiers:ON.compareIdentifiers,rcompareIdentifiers:ON.rcompareIdentifiers}});var jN=N((gwe,MN)=>{var{hasOwnProperty:EC}=Object.prototype,SC=(e,t={})=>{typeof t=="string"&&(t={section:t}),t.align=t.align===!0,t.newline=t.newline===!0,t.sort=t.sort===!0,t.whitespace=t.whitespace===!0||t.align===!0,t.platform=t.platform||typeof process<"u"&&process.platform,t.bracketedArray=t.bracketedArray!==!1;let r=t.platform==="win32"?`\r
|
|
406
|
+
`;return n.indexOf(i)?n.split(i):n.split(",")}switch(e){case"hoist-pattern":case"public-hoist-pattern":return r(t)}return t}VP.exports=tC});var HP=N(zP=>{"use strict";var GP=V("os"),As=V("path"),qP=GP.tmpdir(),QX=process.getuid?process.getuid():process.pid,eJ=()=>!0,$P=process.platform==="win32",WP={editor:()=>process.env.EDITOR||process.env.VISUAL||($P?"notepad.exe":"vi"),shell:()=>$P?process.env.COMSPEC||"cmd.exe":process.env.SHELL||"/bin/bash"},tJ={fromString:()=>process.umask()},oc=GP.homedir();oc?process.env.HOME=oc:oc=As.resolve(qP,"npm-"+QX);var rJ=process.platform==="win32"?"npm-cache":".npm",nJ=process.platform==="win32"&&process.env.APPDATA||oc,iJ=As.resolve(nJ,rJ),_0,Fu;Object.defineProperty(zP,"defaults",{get:function(){return _0||(process.env.PREFIX?Fu=process.env.PREFIX:process.platform==="win32"?Fu=As.dirname(process.execPath):(Fu=As.dirname(As.dirname(process.execPath)),process.env.DESTDIR&&(Fu=As.join(process.env.DESTDIR,Fu))),_0={access:null,"allow-same-version":!1,"always-auth":!1,also:null,audit:!0,"auth-type":"legacy","bin-links":!0,browser:null,ca:null,cafile:null,cache:iJ,"cache-lock-stale":6e4,"cache-lock-retries":10,"cache-lock-wait":1e4,"cache-max":1/0,"cache-min":10,cert:null,cidr:null,color:process.env.NO_COLOR==null,depth:1/0,description:!0,dev:!1,"dry-run":!1,editor:WP.editor(),"engine-strict":!1,force:!1,"fetch-retries":2,"fetch-retry-factor":10,"fetch-retry-mintimeout":1e4,"fetch-retry-maxtimeout":6e4,git:"git","git-tag-version":!0,"commit-hooks":!0,global:!1,globalconfig:As.resolve(Fu,"etc","npmrc"),"global-style":!1,group:process.platform==="win32"?0:process.env.SUDO_GID||process.getgid&&process.getgid(),"ham-it-up":!1,heading:"npm","if-present":!1,"ignore-prepublish":!1,"ignore-scripts":!1,"init-module":As.resolve(oc,".npm-init.js"),"init-author-name":"","init-author-email":"","init-author-url":"","init-version":"1.0.0","init-license":"ISC",json:!1,key:null,"legacy-bundling":!1,link:!1,"local-address":void 0,loglevel:"notice",logstream:process.stderr,"logs-max":10,long:!1,maxsockets:50,message:"%s","metrics-registry":null,"node-options":null,offline:!1,"onload-script":!1,only:null,optional:!0,otp:null,"package-lock":!0,"package-lock-only":!1,parseable:!1,"prefer-offline":!1,"prefer-online":!1,prefix:Fu,production:!0,progress:!process.env.TRAVIS&&!process.env.CI,provenance:!1,proxy:null,"https-proxy":null,"no-proxy":null,"user-agent":"npm/{npm-version} node/{node-version} {platform} {arch}","read-only":!1,"rebuild-bundle":!0,registry:"https://registry.npmjs.org/",rollback:!0,save:!0,"save-bundle":!1,"save-dev":!1,"save-exact":!1,"save-optional":!1,"save-prefix":"^","save-prod":!1,scope:"","script-shell":null,"scripts-prepend-node-path":"warn-only",searchopts:"",searchexclude:null,searchlimit:20,searchstaleness:15*60,"send-metrics":!1,shell:WP.shell(),shrinkwrap:!0,"sign-git-tag":!1,"sso-poll-frequency":500,"sso-type":"oauth","strict-ssl":!0,tag:"latest","tag-version-prefix":"v",timing:!1,tmp:qP,unicode:eJ(),"unsafe-perm":process.platform==="win32"||process.platform==="cygwin"||!(process.getuid&&process.setuid&&process.getgid&&process.setgid)||process.getuid()!==0,usage:!1,user:process.platform==="win32"?0:"nobody",userconfig:As.resolve(oc,".npmrc"),umask:process.umask?process.umask():tJ.fromString("022"),version:!1,versions:!1,viewer:process.platform==="win32"?"browser":"man",_exit:!0},_0)}})});var KP=N((x1e,rC)=>{"use strict";var Au=V("path"),sJ=UP(),YP=HP();rC.exports=(e,t,r)=>{let n=new sJ(Object.assign({},YP.defaults,r),t);n.add(Object.assign({},e),"cli");let i=[],s=!1;if(V.resolve.paths){let l=V.resolve.paths("npm"),c;try{c=V.resolve("npm",{paths:l.slice(-1)})}catch{s=!0}c&&i.push(n.addFile(Au.resolve(Au.dirname(c),"..","npmrc"),"builtin"))}n.addEnv(),n.loadPrefix();let o=Au.resolve(n.localPrefix,".npmrc"),a=n.get("userconfig");if(!n.get("global")&&o!==a?i.push(n.addFile(o,"project")):n.add({},"project"),n.get("workspace-prefix")&&n.get("workspace-prefix")!==o){let l=Au.resolve(n.get("workspace-prefix"),".npmrc");i.push(n.addFile(l,"workspace"))}if(i.push(n.addFile(n.get("userconfig"),"user")),n.get("prefix")){let l=Au.resolve(n.get("prefix"),"etc");n.root.globalconfig=Au.resolve(l,"npmrc"),n.root.globalignorefile=Au.resolve(l,"npmignore")}i.push(n.addFile(n.get("globalconfig"),"global")),n.loadUser();let u=n.get("cafile");return u&&n.loadCAFile(u),{config:n,warnings:i.filter(Boolean),failedToLoadBuiltInConfig:s}};Object.defineProperty(rC.exports,"defaults",{get(){return YP.defaults},enumerable:!0})});var nL=N((b1e,rL)=>{var nC=V("url"),XP=KP(),JP=":_authToken",ZP=":_auth",QP=":username",eL=":_password";rL.exports=function(){let t,r;arguments.length>=2?(t=arguments[0],r=Object.assign({},arguments[1])):typeof arguments[0]=="string"?t=arguments[0]:r=Object.assign({},arguments[0]),r=r||{};let n=r.npmrc;return r.npmrc=(r.npmrc?{config:{get:i=>n[i]}}:XP()).config,t=t||r.npmrc.get("registry")||XP.defaults.registry,tL(t,r)||oJ(r.npmrc)};function tL(e,t){let r=nC.parse(e,!1,!0),n;for(;n!=="/"&&r.pathname!==n;){n=r.pathname||"/";let i="//"+r.host+n.replace(/\/$/,""),s=uJ(i,t.npmrc);if(s)return s;if(!t.recursive)return/\/$/.test(e)?void 0:tL(nC.resolve(e,"."),t);r.pathname=nC.resolve(aJ(n),"..")||"/"}}function oJ(e){return e.get("_auth")?{token:b0(e.get("_auth")),type:"Basic"}:void 0}function aJ(e){return e[e.length-1]==="/"?e:e+"/"}function uJ(e,t){let r=lJ(t.get(e+JP)||t.get(e+"/"+JP));if(r)return r;let n=t.get(e+QP)||t.get(e+"/"+QP),i=t.get(e+eL)||t.get(e+"/"+eL),s=cJ(n,i);if(s)return s;let o=fJ(t.get(e+ZP)||t.get(e+"/"+ZP));if(o)return o}function b0(e){return e.replace(/^\$\{?([^}]*)\}?$/,function(t,r){return process.env[r]})}function lJ(e){return e?{token:b0(e),type:"Bearer"}:void 0}function cJ(e,t){if(!e||!t)return;let r=Buffer.from(b0(t),"base64").toString("utf8");return{token:Buffer.from(e+":"+r,"utf8").toString("base64"),type:"Basic",password:r,username:e}}function fJ(e){return e?{token:b0(e),type:"Basic"}:void 0}});var sL=N((O1e,iL)=>{var pJ=wu(),dJ=(e,t)=>{let r=pJ(e,t);return r?r.version:null};iL.exports=dJ});var aL=N((F1e,oL)=>{var mJ=wu(),hJ=(e,t)=>{let r=mJ(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};oL.exports=hJ});var cL=N((A1e,lL)=>{var uL=Sr(),gJ=(e,t,r,n,i)=>{typeof r=="string"&&(i=n,n=r,r=void 0);try{return new uL(e instanceof uL?e.version:e,r).inc(t,n,i).version}catch{return null}};lL.exports=gJ});var pL=N((I1e,fL)=>{var yJ=Sr(),DJ=(e,t)=>new yJ(e,t).major;fL.exports=DJ});var mL=N((T1e,dL)=>{var vJ=Sr(),wJ=(e,t)=>new vJ(e,t).minor;dL.exports=wJ});var gL=N((P1e,hL)=>{var CJ=Sr(),EJ=(e,t)=>new CJ(e,t).patch;hL.exports=EJ});var DL=N((L1e,yL)=>{var SJ=wu(),xJ=(e,t)=>{let r=SJ(e,t);return r&&r.prerelease.length?r.prerelease:null};yL.exports=xJ});var wL=N((N1e,vL)=>{var _J=Yn(),bJ=(e,t,r)=>_J(t,e,r);vL.exports=bJ});var EL=N((R1e,CL)=>{var OJ=Yn(),FJ=(e,t)=>OJ(e,t,!0);CL.exports=FJ});var O0=N((B1e,xL)=>{var SL=Sr(),AJ=(e,t,r)=>{let n=new SL(e,r),i=new SL(t,r);return n.compare(i)||n.compareBuild(i)};xL.exports=AJ});var bL=N((k1e,_L)=>{var IJ=O0(),TJ=(e,t)=>e.sort((r,n)=>IJ(r,n,t));_L.exports=TJ});var FL=N((M1e,OL)=>{var PJ=O0(),LJ=(e,t)=>e.sort((r,n)=>PJ(n,r,t));OL.exports=LJ});var F0=N((j1e,AL)=>{var NJ=Yn(),RJ=(e,t,r)=>NJ(e,t,r)<0;AL.exports=RJ});var iC=N((V1e,IL)=>{var BJ=Yn(),kJ=(e,t,r)=>BJ(e,t,r)===0;IL.exports=kJ});var sC=N((U1e,TL)=>{var MJ=Yn(),jJ=(e,t,r)=>MJ(e,t,r)!==0;TL.exports=jJ});var A0=N(($1e,PL)=>{var VJ=Yn(),UJ=(e,t,r)=>VJ(e,t,r)>=0;PL.exports=UJ});var I0=N((W1e,LL)=>{var $J=Yn(),WJ=(e,t,r)=>$J(e,t,r)<=0;LL.exports=WJ});var oC=N((G1e,NL)=>{var GJ=iC(),qJ=sC(),zJ=Jl(),HJ=A0(),YJ=F0(),KJ=I0(),XJ=(e,t,r,n)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return GJ(e,r,n);case"!=":return qJ(e,r,n);case">":return zJ(e,r,n);case">=":return HJ(e,r,n);case"<":return YJ(e,r,n);case"<=":return KJ(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};NL.exports=XJ});var BL=N((q1e,RL)=>{var JJ=Sr(),ZJ=wu(),{safeRe:T0,t:P0}=Kl(),QJ=(e,t)=>{if(e instanceof JJ)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(t.includePrerelease?T0[P0.COERCEFULL]:T0[P0.COERCE]);else{let u=t.includePrerelease?T0[P0.COERCERTLFULL]:T0[P0.COERCERTL],l;for(;(l=u.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||l.index+l[0].length!==r.index+r[0].length)&&(r=l),u.lastIndex=l.index+l[1].length+l[2].length;u.lastIndex=-1}if(r===null)return null;let n=r[2],i=r[3]||"0",s=r[4]||"0",o=t.includePrerelease&&r[5]?`-${r[5]}`:"",a=t.includePrerelease&&r[6]?`+${r[6]}`:"";return ZJ(`${n}.${i}.${s}${o}${a}`,t)};RL.exports=QJ});var ML=N((z1e,kL)=>{var aC=class{constructor(){this.max=1e3,this.map=new Map}get(t){let r=this.map.get(t);if(r!==void 0)return this.map.delete(t),this.map.set(t,r),r}delete(t){return this.map.delete(t)}set(t,r){if(!this.delete(t)&&r!==void 0){if(this.map.size>=this.max){let i=this.map.keys().next().value;this.delete(i)}this.map.set(t,r)}return this}};kL.exports=aC});var Kn=N((H1e,$L)=>{var eZ=/\s+/g,uC=class e{constructor(t,r){if(r=rZ(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof lC)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(eZ," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(i=>!VL(i[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let i of this.set)if(i.length===1&&lZ(i[0])){this.set=[i];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let t=0;t<this.set.length;t++){t>0&&(this.formatted+="||");let r=this.set[t];for(let n=0;n<r.length;n++)n>0&&(this.formatted+=" "),this.formatted+=r[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){let n=((this.options.includePrerelease&&aZ)|(this.options.loose&&uZ))+":"+t,i=jL.get(n);if(i)return i;let s=this.options.loose,o=s?Yr[Br.HYPHENRANGELOOSE]:Yr[Br.HYPHENRANGE];t=t.replace(o,vZ(this.options.includePrerelease)),dt("hyphen replace",t),t=t.replace(Yr[Br.COMPARATORTRIM],iZ),dt("comparator trim",t),t=t.replace(Yr[Br.TILDETRIM],sZ),dt("tilde trim",t),t=t.replace(Yr[Br.CARETTRIM],oZ),dt("caret trim",t);let a=t.split(" ").map(f=>cZ(f,this.options)).join(" ").split(/\s+/).map(f=>DZ(f,this.options));s&&(a=a.filter(f=>(dt("loose invalid filter",f,this.options),!!f.match(Yr[Br.COMPARATORLOOSE])))),dt("range list",a);let u=new Map,l=a.map(f=>new lC(f,this.options));for(let f of l){if(VL(f))return[f];u.set(f.value,f)}u.size>1&&u.has("")&&u.delete("");let c=[...u.values()];return jL.set(n,c),c}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some(n=>UL(n,r)&&t.set.some(i=>UL(i,r)&&n.every(s=>i.every(o=>s.intersects(o,r)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new nZ(t,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(wZ(this.set[r],t,this.options))return!0;return!1}};$L.exports=uC;var tZ=ML(),jL=new tZ,rZ=u0(),lC=_p(),dt=hp(),nZ=Sr(),{safeRe:Yr,t:Br,comparatorTrimReplace:iZ,tildeTrimReplace:sZ,caretTrimReplace:oZ}=Kl(),{FLAG_INCLUDE_PRERELEASE:aZ,FLAG_LOOSE:uZ}=gp(),VL=e=>e.value==="<0.0.0-0",lZ=e=>e.value==="",UL=(e,t)=>{let r=!0,n=e.slice(),i=n.pop();for(;r&&n.length;)r=n.every(s=>i.intersects(s,t)),i=n.pop();return r},cZ=(e,t)=>(dt("comp",e,t),e=dZ(e,t),dt("caret",e),e=fZ(e,t),dt("tildes",e),e=hZ(e,t),dt("xrange",e),e=yZ(e,t),dt("stars",e),e),kr=e=>!e||e.toLowerCase()==="x"||e==="*",fZ=(e,t)=>e.trim().split(/\s+/).map(r=>pZ(r,t)).join(" "),pZ=(e,t)=>{let r=t.loose?Yr[Br.TILDELOOSE]:Yr[Br.TILDE];return e.replace(r,(n,i,s,o,a)=>{dt("tilde",e,n,i,s,o,a);let u;return kr(i)?u="":kr(s)?u=`>=${i}.0.0 <${+i+1}.0.0-0`:kr(o)?u=`>=${i}.${s}.0 <${i}.${+s+1}.0-0`:a?(dt("replaceTilde pr",a),u=`>=${i}.${s}.${o}-${a} <${i}.${+s+1}.0-0`):u=`>=${i}.${s}.${o} <${i}.${+s+1}.0-0`,dt("tilde return",u),u})},dZ=(e,t)=>e.trim().split(/\s+/).map(r=>mZ(r,t)).join(" "),mZ=(e,t)=>{dt("caret",e,t);let r=t.loose?Yr[Br.CARETLOOSE]:Yr[Br.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(i,s,o,a,u)=>{dt("caret",e,i,s,o,a,u);let l;return kr(s)?l="":kr(o)?l=`>=${s}.0.0${n} <${+s+1}.0.0-0`:kr(a)?s==="0"?l=`>=${s}.${o}.0${n} <${s}.${+o+1}.0-0`:l=`>=${s}.${o}.0${n} <${+s+1}.0.0-0`:u?(dt("replaceCaret pr",u),s==="0"?o==="0"?l=`>=${s}.${o}.${a}-${u} <${s}.${o}.${+a+1}-0`:l=`>=${s}.${o}.${a}-${u} <${s}.${+o+1}.0-0`:l=`>=${s}.${o}.${a}-${u} <${+s+1}.0.0-0`):(dt("no pr"),s==="0"?o==="0"?l=`>=${s}.${o}.${a}${n} <${s}.${o}.${+a+1}-0`:l=`>=${s}.${o}.${a}${n} <${s}.${+o+1}.0-0`:l=`>=${s}.${o}.${a} <${+s+1}.0.0-0`),dt("caret return",l),l})},hZ=(e,t)=>(dt("replaceXRanges",e,t),e.split(/\s+/).map(r=>gZ(r,t)).join(" ")),gZ=(e,t)=>{e=e.trim();let r=t.loose?Yr[Br.XRANGELOOSE]:Yr[Br.XRANGE];return e.replace(r,(n,i,s,o,a,u)=>{dt("xRange",e,n,i,s,o,a,u);let l=kr(s),c=l||kr(o),f=c||kr(a),p=f;return i==="="&&p&&(i=""),u=t.includePrerelease?"-0":"",l?i===">"||i==="<"?n="<0.0.0-0":n="*":i&&p?(c&&(o=0),a=0,i===">"?(i=">=",c?(s=+s+1,o=0,a=0):(o=+o+1,a=0)):i==="<="&&(i="<",c?s=+s+1:o=+o+1),i==="<"&&(u="-0"),n=`${i+s}.${o}.${a}${u}`):c?n=`>=${s}.0.0${u} <${+s+1}.0.0-0`:f&&(n=`>=${s}.${o}.0${u} <${s}.${+o+1}.0-0`),dt("xRange return",n),n})},yZ=(e,t)=>(dt("replaceStars",e,t),e.trim().replace(Yr[Br.STAR],"")),DZ=(e,t)=>(dt("replaceGTE0",e,t),e.trim().replace(Yr[t.includePrerelease?Br.GTE0PRE:Br.GTE0],"")),vZ=e=>(t,r,n,i,s,o,a,u,l,c,f,p)=>(kr(n)?r="":kr(i)?r=`>=${n}.0.0${e?"-0":""}`:kr(s)?r=`>=${n}.${i}.0${e?"-0":""}`:o?r=`>=${r}`:r=`>=${r}${e?"-0":""}`,kr(l)?u="":kr(c)?u=`<${+l+1}.0.0-0`:kr(f)?u=`<${l}.${+c+1}.0-0`:p?u=`<=${l}.${c}.${f}-${p}`:e?u=`<${l}.${c}.${+f+1}-0`:u=`<=${u}`,`${r} ${u}`.trim()),wZ=(e,t,r)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let n=0;n<e.length;n++)if(dt(e[n].semver),e[n].semver!==lC.ANY&&e[n].semver.prerelease.length>0){let i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}});var _p=N((Y1e,YL)=>{var bp=Symbol("SemVer ANY"),pC=class e{static get ANY(){return bp}constructor(t,r){if(r=WL(r),t instanceof e){if(t.loose===!!r.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),fC("comparator",t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===bp?this.value="":this.value=this.operator+this.semver.version,fC("comp",this)}parse(t){let r=this.options.loose?GL[qL.COMPARATORLOOSE]:GL[qL.COMPARATOR],n=t.match(r);if(!n)throw new TypeError(`Invalid comparator: ${t}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new zL(n[2],this.options.loose):this.semver=bp}toString(){return this.value}test(t){if(fC("Comparator.test",t,this.options.loose),this.semver===bp||t===bp)return!0;if(typeof t=="string")try{t=new zL(t,this.options)}catch{return!1}return cC(t,this.operator,this.semver,this.options)}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new HL(t.value,r).test(this.value):t.operator===""?t.value===""?!0:new HL(this.value,r).test(t.semver):(r=WL(r),r.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&t.operator.startsWith(">")||this.operator.startsWith("<")&&t.operator.startsWith("<")||this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")||cC(this.semver,"<",t.semver,r)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||cC(this.semver,">",t.semver,r)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};YL.exports=pC;var WL=u0(),{safeRe:GL,t:qL}=Kl(),cC=oC(),fC=hp(),zL=Sr(),HL=Kn()});var Op=N((K1e,KL)=>{var CZ=Kn(),EZ=(e,t,r)=>{try{t=new CZ(t,r)}catch{return!1}return t.test(e)};KL.exports=EZ});var JL=N((X1e,XL)=>{var SZ=Kn(),xZ=(e,t)=>new SZ(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));XL.exports=xZ});var QL=N((J1e,ZL)=>{var _Z=Sr(),bZ=Kn(),OZ=(e,t,r)=>{let n=null,i=null,s=null;try{s=new bZ(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===-1)&&(n=o,i=new _Z(n,r))}),n};ZL.exports=OZ});var tN=N((Z1e,eN)=>{var FZ=Sr(),AZ=Kn(),IZ=(e,t,r)=>{let n=null,i=null,s=null;try{s=new AZ(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===1)&&(n=o,i=new FZ(n,r))}),n};eN.exports=IZ});var iN=N((Q1e,nN)=>{var dC=Sr(),TZ=Kn(),rN=Jl(),PZ=(e,t)=>{e=new TZ(e,t);let r=new dC("0.0.0");if(e.test(r)||(r=new dC("0.0.0-0"),e.test(r)))return r;r=null;for(let n=0;n<e.set.length;++n){let i=e.set[n],s=null;i.forEach(o=>{let a=new dC(o.semver.version);switch(o.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!s||rN(a,s))&&(s=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!r||rN(r,s))&&(r=s)}return r&&e.test(r)?r:null};nN.exports=PZ});var oN=N((ewe,sN)=>{var LZ=Kn(),NZ=(e,t)=>{try{return new LZ(e,t).range||"*"}catch{return null}};sN.exports=NZ});var L0=N((twe,cN)=>{var RZ=Sr(),lN=_p(),{ANY:BZ}=lN,kZ=Kn(),MZ=Op(),aN=Jl(),uN=F0(),jZ=I0(),VZ=A0(),UZ=(e,t,r,n)=>{e=new RZ(e,n),t=new kZ(t,n);let i,s,o,a,u;switch(r){case">":i=aN,s=jZ,o=uN,a=">",u=">=";break;case"<":i=uN,s=VZ,o=aN,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(MZ(e,t,n))return!1;for(let l=0;l<t.set.length;++l){let c=t.set[l],f=null,p=null;if(c.forEach(d=>{d.semver===BZ&&(d=new lN(">=0.0.0")),f=f||d,p=p||d,i(d.semver,f.semver,n)?f=d:o(d.semver,p.semver,n)&&(p=d)}),f.operator===a||f.operator===u||(!p.operator||p.operator===a)&&s(e,p.semver))return!1;if(p.operator===u&&o(e,p.semver))return!1}return!0};cN.exports=UZ});var pN=N((rwe,fN)=>{var $Z=L0(),WZ=(e,t,r)=>$Z(e,t,">",r);fN.exports=WZ});var mN=N((nwe,dN)=>{var GZ=L0(),qZ=(e,t,r)=>GZ(e,t,"<",r);dN.exports=qZ});var yN=N((iwe,gN)=>{var hN=Kn(),zZ=(e,t,r)=>(e=new hN(e,r),t=new hN(t,r),e.intersects(t,r));gN.exports=zZ});var vN=N((swe,DN)=>{var HZ=Op(),YZ=Yn();DN.exports=(e,t,r)=>{let n=[],i=null,s=null,o=e.sort((c,f)=>YZ(c,f,r));for(let c of o)HZ(c,t,r)?(s=c,i||(i=c)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);let a=[];for(let[c,f]of n)c===f?a.push(c):!f&&c===o[0]?a.push("*"):f?c===o[0]?a.push(`<=${f}`):a.push(`${c} - ${f}`):a.push(`>=${c}`);let u=a.join(" || "),l=typeof t.raw=="string"?t.raw:String(t);return u.length<l.length?u:t}});var _N=N((owe,xN)=>{var wN=Kn(),hC=_p(),{ANY:mC}=hC,Fp=Op(),gC=Yn(),KZ=(e,t,r={})=>{if(e===t)return!0;e=new wN(e,r),t=new wN(t,r);let n=!1;e:for(let i of e.set){for(let s of t.set){let o=JZ(i,s,r);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},XZ=[new hC(">=0.0.0-0")],CN=[new hC(">=0.0.0")],JZ=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===mC){if(t.length===1&&t[0].semver===mC)return!0;r.includePrerelease?e=XZ:e=CN}if(t.length===1&&t[0].semver===mC){if(r.includePrerelease)return!0;t=CN}let n=new Set,i,s;for(let d of e)d.operator===">"||d.operator===">="?i=EN(i,d,r):d.operator==="<"||d.operator==="<="?s=SN(s,d,r):n.add(d.semver);if(n.size>1)return null;let o;if(i&&s){if(o=gC(i.semver,s.semver,r),o>0)return null;if(o===0&&(i.operator!==">="||s.operator!=="<="))return null}for(let d of n){if(i&&!Fp(d,String(i),r)||s&&!Fp(d,String(s),r))return null;for(let m of t)if(!Fp(d,String(m),r))return!1;return!0}let a,u,l,c,f=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,p=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;f&&f.prerelease.length===1&&s.operator==="<"&&f.prerelease[0]===0&&(f=!1);for(let d of t){if(c=c||d.operator===">"||d.operator===">=",l=l||d.operator==="<"||d.operator==="<=",i){if(p&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===p.major&&d.semver.minor===p.minor&&d.semver.patch===p.patch&&(p=!1),d.operator===">"||d.operator===">="){if(a=EN(i,d,r),a===d&&a!==i)return!1}else if(i.operator===">="&&!Fp(i.semver,String(d),r))return!1}if(s){if(f&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===f.major&&d.semver.minor===f.minor&&d.semver.patch===f.patch&&(f=!1),d.operator==="<"||d.operator==="<="){if(u=SN(s,d,r),u===d&&u!==s)return!1}else if(s.operator==="<="&&!Fp(s.semver,String(d),r))return!1}if(!d.operator&&(s||i)&&o!==0)return!1}return!(i&&l&&!s&&o!==0||s&&c&&!i&&o!==0||p||f)},EN=(e,t,r)=>{if(!e)return t;let n=gC(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},SN=(e,t,r)=>{if(!e)return t;let n=gC(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};xN.exports=KZ});var AN=N((awe,FN)=>{var yC=Kl(),bN=gp(),ZZ=Sr(),ON=Tw(),QZ=wu(),eQ=sL(),tQ=aL(),rQ=cL(),nQ=Lw(),iQ=pL(),sQ=mL(),oQ=gL(),aQ=DL(),uQ=Yn(),lQ=wL(),cQ=EL(),fQ=O0(),pQ=bL(),dQ=FL(),mQ=Jl(),hQ=F0(),gQ=iC(),yQ=sC(),DQ=A0(),vQ=I0(),wQ=oC(),CQ=BL(),EQ=_p(),SQ=Kn(),xQ=Op(),_Q=JL(),bQ=QL(),OQ=tN(),FQ=iN(),AQ=oN(),IQ=L0(),TQ=pN(),PQ=mN(),LQ=yN(),NQ=vN(),RQ=_N();FN.exports={parse:QZ,valid:eQ,clean:tQ,inc:rQ,diff:nQ,major:iQ,minor:sQ,patch:oQ,prerelease:aQ,compare:uQ,rcompare:lQ,compareLoose:cQ,compareBuild:fQ,sort:pQ,rsort:dQ,gt:mQ,lt:hQ,eq:gQ,neq:yQ,gte:DQ,lte:vQ,cmp:wQ,coerce:CQ,Comparator:EQ,Range:SQ,satisfies:xQ,toComparators:_Q,maxSatisfying:bQ,minSatisfying:OQ,minVersion:FQ,validRange:AQ,outside:IQ,gtr:TQ,ltr:PQ,intersects:LQ,simplifyRange:NQ,subset:RQ,SemVer:ZZ,re:yC.re,src:yC.src,tokens:yC.t,SEMVER_SPEC_VERSION:bN.SEMVER_SPEC_VERSION,RELEASE_TYPES:bN.RELEASE_TYPES,compareIdentifiers:ON.compareIdentifiers,rcompareIdentifiers:ON.rcompareIdentifiers}});var jN=N((hwe,MN)=>{var{hasOwnProperty:EC}=Object.prototype,SC=(e,t={})=>{typeof t=="string"&&(t={section:t}),t.align=t.align===!0,t.newline=t.newline===!0,t.sort=t.sort===!0,t.whitespace=t.whitespace===!0||t.align===!0,t.platform=t.platform||typeof process<"u"&&process.platform,t.bracketedArray=t.bracketedArray!==!1;let r=t.platform==="win32"?`\r
|
|
407
407
|
`:`
|
|
408
|
-
`,n=t.whitespace?" = ":"=",i=[],s=t.sort?Object.keys(e).sort():Object.keys(e),o=0;t.align&&(o=Is(s.filter(l=>e[l]===null||Array.isArray(e[l])||typeof e[l]!="object").map(l=>Array.isArray(e[l])?`${l}[]`:l).concat([""]).reduce((l,c)=>Is(l).length>=Is(c).length?l:c)).length);let a="",u=t.bracketedArray?"[]":"";for(let l of s){let c=e[l];if(c&&Array.isArray(c))for(let f of c)a+=Is(`${l}${u}`).padEnd(o," ")+n+Is(f)+r;else c&&typeof c=="object"?i.push(l):a+=Is(l).padEnd(o," ")+n+Is(c)+r}t.section&&a.length&&(a="["+Is(t.section)+"]"+(t.newline?r+r:r)+a);for(let l of i){let c=BN(l,".").join("\\."),f=(t.section?t.section+".":"")+c,p=SC(e[l],{...t,section:f});a.length&&p.length&&(a+=r),a+=p}return a};function BN(e,t){var r=0,n=0,i=0,s=[];do if(i=e.indexOf(t,r),i!==-1){if(r=i+t.length,i>0&&e[i-1]==="\\")continue;s.push(e.slice(n,i)),n=i+t.length}while(i!==-1);return s.push(e.slice(n)),s}var RN=(e,t={})=>{t.bracketedArray=t.bracketedArray!==!1;let r=Object.create(null),n=r,i=null,s=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,o=e.split(/[\r\n]+/g),a={};for(let l of o){if(!l||l.match(/^\s*[;#]/)||l.match(/^\s*$/))continue;let c=l.match(s);if(!c)continue;if(c[1]!==void 0){if(i=R0(c[1]),i==="__proto__"){n=Object.create(null);continue}n=r[i]=r[i]||Object.create(null);continue}let f=R0(c[2]),p;t.bracketedArray?p=f.length>2&&f.slice(-2)==="[]":(a[f]=(a?.[f]||0)+1,p=a[f]>1);let d=p?f.slice(0,-2):f;if(d==="__proto__")continue;let m=c[3]?R0(c[4]):!0,y=m==="true"||m==="false"||m==="null"?JSON.parse(m):m;p&&(EC.call(n,d)?Array.isArray(n[d])||(n[d]=[n[d]]):n[d]=[]),Array.isArray(n[d])?n[d].push(y):n[d]=y}let u=[];for(let l of Object.keys(r)){if(!EC.call(r,l)||typeof r[l]!="object"||Array.isArray(r[l]))continue;let c=BN(l,".");n=r;let f=c.pop(),p=f.replace(/\\\./g,".");for(let d of c)d!=="__proto__"&&((!EC.call(n,d)||typeof n[d]!="object")&&(n[d]=Object.create(null)),n=n[d]);n===r&&p===f||(n[p]=r[l],u.push(l))}for(let l of u)delete r[l];return r},kN=e=>e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"),Is=e=>typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&kN(e)||e!==e.trim()?JSON.stringify(e):e.split(";").join("\\;").split("#").join("\\#"),R0=(e,t)=>{if(e=(e||"").trim(),kN(e)){e.charAt(0)==="'"&&(e=e.slice(1,-1));try{e=JSON.parse(e)}catch{}}else{let r=!1,n="";for(let i=0,s=e.length;i<s;i++){let o=e.charAt(i);if(r)"\\;#".indexOf(o)!==-1?n+=o:n+="\\"+o,r=!1;else{if(";#".indexOf(o)!==-1)break;o==="\\"?r=!0:n+=o}}return r&&(n+="\\"),n.trim()}return e};MN.exports={parse:RN,decode:RN,stringify:SC,encode:SC,safe:Is,unsafe:R0}});var JN=N((kwe,XN)=>{XN.exports=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g});var QN=N((Wwe,QQ)=>{QQ.exports={single:{topLeft:"\u250C",top:"\u2500",topRight:"\u2510",right:"\u2502",bottomRight:"\u2518",bottom:"\u2500",bottomLeft:"\u2514",left:"\u2502"},double:{topLeft:"\u2554",top:"\u2550",topRight:"\u2557",right:"\u2551",bottomRight:"\u255D",bottom:"\u2550",bottomLeft:"\u255A",left:"\u2551"},round:{topLeft:"\u256D",top:"\u2500",topRight:"\u256E",right:"\u2502",bottomRight:"\u256F",bottom:"\u2500",bottomLeft:"\u2570",left:"\u2502"},bold:{topLeft:"\u250F",top:"\u2501",topRight:"\u2513",right:"\u2503",bottomRight:"\u251B",bottom:"\u2501",bottomLeft:"\u2517",left:"\u2503"},singleDouble:{topLeft:"\u2553",top:"\u2500",topRight:"\u2556",right:"\u2551",bottomRight:"\u255C",bottom:"\u2500",bottomLeft:"\u2559",left:"\u2551"},doubleSingle:{topLeft:"\u2552",top:"\u2550",topRight:"\u2555",right:"\u2502",bottomRight:"\u255B",bottom:"\u2550",bottomLeft:"\u2558",left:"\u2502"},classic:{topLeft:"+",top:"-",topRight:"+",right:"|",bottomRight:"+",bottom:"-",bottomLeft:"+",left:"|"},arrow:{topLeft:"\u2198",top:"\u2193",topRight:"\u2199",right:"\u2190",bottomRight:"\u2196",bottom:"\u2191",bottomLeft:"\u2197",left:"\u2192"}}});var IC=N((Gwe,AC)=>{"use strict";var eR=QN();AC.exports=eR;AC.exports.default=eR});var oR=N((zwe,sR)=>{"use strict";sR.exports=({onlyFirst:e=!1}={})=>{let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}});var uR=N((Hwe,aR)=>{"use strict";var oee=oR();aR.exports=e=>typeof e=="string"?e.replace(oee(),""):e});var cR=N((Ywe,LC)=>{"use strict";var lR=e=>Number.isNaN(e)?!1:e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141);LC.exports=lR;LC.exports.default=lR});var pR=N((Kwe,fR)=>{"use strict";fR.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var mR=N((Xwe,NC)=>{"use strict";var aee=uR(),uee=cR(),lee=pR(),dR=e=>{if(typeof e!="string"||e.length===0||(e=aee(e),e.length===0))return 0;e=e.replace(lee()," ");let t=0;for(let r=0;r<e.length;r++){let n=e.codePointAt(r);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&r++,t+=uee(n)?2:1)}return t};NC.exports=dR;NC.exports.default=dR});var gR=N((Jwe,hR)=>{"use strict";var cee=mR();function Iu(e,t){if(!e)return e;t=t||{};let r=t.align||"center";if(r==="left")return e;let n=t.split||`
|
|
409
|
-
`,i=t.pad||" ",s=r!=="right"?fee:pee,o=!1;Array.isArray(e)||(o=!0,e=String(e).split(n));let a,u=0;return e=e.map(function(l){return l=String(l),a=cee(l),u=Math.max(a,u),{str:l,width:a}}).map(function(l){return new Array(s(u,l.width)+1).join(i)+l.str}),o?e.join(n):e}Iu.left=function(t){return Iu(t,{align:"left"})};Iu.center=function(t){return Iu(t,{align:"center"})};Iu.right=function(t){return Iu(t,{align:"right"})};hR.exports=Iu;function fee(e,t){return Math.floor((e-t)/2)}function pee(e,t){return e-t}});var MR=N((eEe,kR)=>{"use strict";var kee="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";kR.exports=kee});var $R=N((tEe,UR)=>{"use strict";var Mee=MR();function jR(){}function VR(){}VR.resetWarningCache=jR;UR.exports=function(){function e(n,i,s,o,a,u){if(u!==Mee){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:VR,resetWarningCache:jR};return r.PropTypes=r,r}});var GR=N((iEe,WR)=>{WR.exports=$R()();var rEe,nEe});var zR=N((sEe,qR)=>{"use strict";qR.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 qC=N((oEe,YR)=>{var Rp=zR(),HR={};for(let e of Object.keys(Rp))HR[Rp[e]]=e;var De={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"]}};YR.exports=De;for(let e of Object.keys(De)){if(!("channels"in De[e]))throw new Error("missing channels property: "+e);if(!("labels"in De[e]))throw new Error("missing channel labels property: "+e);if(De[e].labels.length!==De[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=De[e];delete De[e].channels,delete De[e].labels,Object.defineProperty(De[e],"channels",{value:t}),Object.defineProperty(De[e],"labels",{value:r})}De.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),s=Math.max(t,r,n),o=s-i,a,u;s===i?a=0:t===s?a=(r-n)/o:r===s?a=2+(n-t)/o:n===s&&(a=4+(t-r)/o),a=Math.min(a*60,360),a<0&&(a+=360);let l=(i+s)/2;return s===i?u=0:l<=.5?u=o/(s+i):u=o/(2-s-i),[a,u*100,l*100]};De.rgb.hsv=function(e){let t,r,n,i,s,o=e[0]/255,a=e[1]/255,u=e[2]/255,l=Math.max(o,a,u),c=l-Math.min(o,a,u),f=function(p){return(l-p)/6/c+1/2};return c===0?(i=0,s=0):(s=c/l,t=f(o),r=f(a),n=f(u),o===l?i=n-r:a===l?i=1/3+t-n:u===l&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,l*100]};De.rgb.hwb=function(e){let t=e[0],r=e[1],n=e[2],i=De.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,s*100,n*100]};De.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(1-t,1-r,1-n),s=(1-t-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 jee(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}De.rgb.keyword=function(e){let t=HR[e];if(t)return t;let r=1/0,n;for(let i of Object.keys(Rp)){let s=Rp[i],o=jee(e,s);o<r&&(r=o,n=i)}return n};De.keyword.rgb=function(e){return Rp[e]};De.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/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=t*.4124+r*.3576+n*.1805,s=t*.2126+r*.7152+n*.0722,o=t*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};De.rgb.lab=function(e){let t=De.rgb.xyz(e),r=t[0],n=t[1],i=t[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]};De.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i,s,o;if(r===0)return o=n*255,[o,o,o];n<.5?i=n*(1+r):i=n+r-n*r;let a=2*n-i,u=[0,0,0];for(let l=0;l<3;l++)s=t+1/3*-(l-1),s<0&&s++,s>1&&s--,6*s<1?o=a+(i-a)*6*s:2*s<1?o=i:3*s<2?o=a+(i-a)*(2/3-s)*6:o=a,u[l]=o*255;return u};De.hsl.hsv=function(e){let t=e[0],r=e[1]/100,n=e[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[t,a*100,o*100]};De.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,s=t-Math.floor(t),o=255*n*(1-r),a=255*n*(1-r*s),u=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}};De.hsv.hsl=function(e){let t=e[0],r=e[1]/100,n=e[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,[t,s*100,o*100]};De.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let o=Math.floor(6*t),a=1-n;s=6*t-o,o&1&&(s=1-s);let u=r+s*(a-r),l,c,f;switch(o){default:case 6:case 0:l=a,c=u,f=r;break;case 1:l=u,c=a,f=r;break;case 2:l=r,c=a,f=u;break;case 3:l=r,c=u,f=a;break;case 4:l=u,c=r,f=a;break;case 5:l=a,c=r,f=u;break}return[l*255,c*255,f*255]};De.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,s=1-Math.min(1,t*(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]};De.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i,s,o;return i=t*3.2406+r*-1.5372+n*-.4986,s=t*-.9689+r*1.8758+n*.0415,o=t*.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]};De.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+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*(t-r),o=200*(r-n);return[i,s,o]};De.lab.xyz=function(e){let t=e[0],r=e[1],n=e[2],i,s,o;s=(t+16)/116,i=r/500+s,o=s-n/200;let a=s**3,u=i**3,l=o**3;return s=a>.008856?a:(s-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};De.lab.lch=function(e){let t=e[0],r=e[1],n=e[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let o=Math.sqrt(r*r+n*n);return[t,o,i]};De.lch.lab=function(e){let t=e[0],r=e[1],i=e[2]/360*2*Math.PI,s=r*Math.cos(i),o=r*Math.sin(i);return[t,s,o]};De.rgb.ansi16=function(e,t=null){let[r,n,i]=e,s=t===null?De.rgb.hsv(e)[2]:t;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};De.hsv.ansi16=function(e){return De.rgb.ansi16(De.hsv.rgb(e),e[2])};De.rgb.ansi256=function(e){let t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};De.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,s=(t>>2&1)*r*255;return[n,i,s]};De.ansi256.rgb=function(e){if(e>=232){let s=(e-232)*10+8;return[s,s,s]}e-=16;let t,r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[r,n,i]};De.rgb.hex=function(e){let r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};De.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[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]};De.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),o=i-s,a,u;return o<1?a=s/(1-o):a=0,o<=0?u=0:i===t?u=(r-n)/o%6:i===r?u=2+(n-t)/o:u=4+(t-r)/o,u/=6,u%=1,[u*360,o*100,a*100]};De.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};De.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};De.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],s=t%1*6,o=s%1,a=1-o,u=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};De.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};De.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};De.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};De.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,i=n-t,s=0;return i<1&&(s=(n-i)/(1-i)),[e[0],i*100,s*100]};De.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};De.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};De.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};De.gray.hsl=function(e){return[0,0,e[0]]};De.gray.hsv=De.gray.hsl;De.gray.hwb=function(e){return[0,100,e[0]]};De.gray.cmyk=function(e){return[0,0,0,e[0]]};De.gray.lab=function(e){return[e[0],0,0]};De.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};De.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var XR=N((aEe,KR)=>{var G0=qC();function Vee(){let e={},t=Object.keys(G0);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function Uee(e){let t=Vee(),r=[e];for(t[e].distance=0;r.length;){let n=r.pop(),i=Object.keys(G0[n]);for(let s=i.length,o=0;o<s;o++){let a=i[o],u=t[a];u.distance===-1&&(u.distance=t[n].distance+1,u.parent=n,r.unshift(a))}}return t}function $ee(e,t){return function(r){return t(e(r))}}function Wee(e,t){let r=[t[e].parent,e],n=G0[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)r.unshift(t[i].parent),n=$ee(G0[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}KR.exports=function(e){let t=Uee(e),r={},n=Object.keys(t);for(let i=n.length,s=0;s<i;s++){let o=n[s];t[o].parent!==null&&(r[o]=Wee(o,t))}return r}});var ZR=N((uEe,JR)=>{var zC=qC(),Gee=XR(),ac={},qee=Object.keys(zC);function zee(e){let t=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function Hee(e){let t=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=e(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 e&&(t.conversion=e.conversion),t}qee.forEach(e=>{ac[e]={},Object.defineProperty(ac[e],"channels",{value:zC[e].channels}),Object.defineProperty(ac[e],"labels",{value:zC[e].labels});let t=Gee(e);Object.keys(t).forEach(n=>{let i=t[n];ac[e][n]=Hee(i),ac[e][n].raw=zee(i)})});JR.exports=ac});var i5=N((lEe,n5)=>{"use strict";var QR=(e,t)=>(...r)=>`\x1B[${e(...r)+t}m`,e5=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};5;${n}m`},t5=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};2;${n[0]};${n[1]};${n[2]}m`},q0=e=>e,r5=(e,t,r)=>[e,t,r],uc=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{let n=r();return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},HC,lc=(e,t,r,n)=>{HC===void 0&&(HC=ZR());let i=n?10:0,s={};for(let[o,a]of Object.entries(HC)){let u=o==="ansi16"?"ansi":o;o===t?s[u]=e(r,i):typeof a=="object"&&(s[u]=e(a[t],i))}return s};function Yee(){let e=new Map,t={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]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[r,n]of Object.entries(t)){for(let[i,s]of Object.entries(n))t[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=t[i],e.set(s[0],s[1]);Object.defineProperty(t,r,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",uc(t.color,"ansi",()=>lc(QR,"ansi16",q0,!1)),uc(t.color,"ansi256",()=>lc(e5,"ansi256",q0,!1)),uc(t.color,"ansi16m",()=>lc(t5,"rgb",r5,!1)),uc(t.bgColor,"ansi",()=>lc(QR,"ansi16",q0,!0)),uc(t.bgColor,"ansi256",()=>lc(e5,"ansi256",q0,!0)),uc(t.bgColor,"ansi16m",()=>lc(t5,"rgb",r5,!0)),t}Object.defineProperty(n5,"exports",{enumerable:!0,get:Yee})});var o5=N((cEe,s5)=>{"use strict";var Kee=(e,t,r)=>{let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,o="";do o+=e.substr(s,n-s)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return o+=e.substr(s),o},Xee=(e,t,r,n)=>{let i=0,s="";do{let o=e[n-1]==="\r";s+=e.substr(i,(o?n-1:n)-i)+t+(o?`\r
|
|
408
|
+
`,n=t.whitespace?" = ":"=",i=[],s=t.sort?Object.keys(e).sort():Object.keys(e),o=0;t.align&&(o=Is(s.filter(l=>e[l]===null||Array.isArray(e[l])||typeof e[l]!="object").map(l=>Array.isArray(e[l])?`${l}[]`:l).concat([""]).reduce((l,c)=>Is(l).length>=Is(c).length?l:c)).length);let a="",u=t.bracketedArray?"[]":"";for(let l of s){let c=e[l];if(c&&Array.isArray(c))for(let f of c)a+=Is(`${l}${u}`).padEnd(o," ")+n+Is(f)+r;else c&&typeof c=="object"?i.push(l):a+=Is(l).padEnd(o," ")+n+Is(c)+r}t.section&&a.length&&(a="["+Is(t.section)+"]"+(t.newline?r+r:r)+a);for(let l of i){let c=BN(l,".").join("\\."),f=(t.section?t.section+".":"")+c,p=SC(e[l],{...t,section:f});a.length&&p.length&&(a+=r),a+=p}return a};function BN(e,t){var r=0,n=0,i=0,s=[];do if(i=e.indexOf(t,r),i!==-1){if(r=i+t.length,i>0&&e[i-1]==="\\")continue;s.push(e.slice(n,i)),n=i+t.length}while(i!==-1);return s.push(e.slice(n)),s}var RN=(e,t={})=>{t.bracketedArray=t.bracketedArray!==!1;let r=Object.create(null),n=r,i=null,s=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,o=e.split(/[\r\n]+/g),a={};for(let l of o){if(!l||l.match(/^\s*[;#]/)||l.match(/^\s*$/))continue;let c=l.match(s);if(!c)continue;if(c[1]!==void 0){if(i=R0(c[1]),i==="__proto__"){n=Object.create(null);continue}n=r[i]=r[i]||Object.create(null);continue}let f=R0(c[2]),p;t.bracketedArray?p=f.length>2&&f.slice(-2)==="[]":(a[f]=(a?.[f]||0)+1,p=a[f]>1);let d=p?f.slice(0,-2):f;if(d==="__proto__")continue;let m=c[3]?R0(c[4]):!0,y=m==="true"||m==="false"||m==="null"?JSON.parse(m):m;p&&(EC.call(n,d)?Array.isArray(n[d])||(n[d]=[n[d]]):n[d]=[]),Array.isArray(n[d])?n[d].push(y):n[d]=y}let u=[];for(let l of Object.keys(r)){if(!EC.call(r,l)||typeof r[l]!="object"||Array.isArray(r[l]))continue;let c=BN(l,".");n=r;let f=c.pop(),p=f.replace(/\\\./g,".");for(let d of c)d!=="__proto__"&&((!EC.call(n,d)||typeof n[d]!="object")&&(n[d]=Object.create(null)),n=n[d]);n===r&&p===f||(n[p]=r[l],u.push(l))}for(let l of u)delete r[l];return r},kN=e=>e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"),Is=e=>typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&kN(e)||e!==e.trim()?JSON.stringify(e):e.split(";").join("\\;").split("#").join("\\#"),R0=(e,t)=>{if(e=(e||"").trim(),kN(e)){e.charAt(0)==="'"&&(e=e.slice(1,-1));try{e=JSON.parse(e)}catch{}}else{let r=!1,n="";for(let i=0,s=e.length;i<s;i++){let o=e.charAt(i);if(r)"\\;#".indexOf(o)!==-1?n+=o:n+="\\"+o,r=!1;else{if(";#".indexOf(o)!==-1)break;o==="\\"?r=!0:n+=o}}return r&&(n+="\\"),n.trim()}return e};MN.exports={parse:RN,decode:RN,stringify:SC,encode:SC,safe:Is,unsafe:R0}});var JN=N((Bwe,XN)=>{XN.exports=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g});var QN=N(($we,QQ)=>{QQ.exports={single:{topLeft:"\u250C",top:"\u2500",topRight:"\u2510",right:"\u2502",bottomRight:"\u2518",bottom:"\u2500",bottomLeft:"\u2514",left:"\u2502"},double:{topLeft:"\u2554",top:"\u2550",topRight:"\u2557",right:"\u2551",bottomRight:"\u255D",bottom:"\u2550",bottomLeft:"\u255A",left:"\u2551"},round:{topLeft:"\u256D",top:"\u2500",topRight:"\u256E",right:"\u2502",bottomRight:"\u256F",bottom:"\u2500",bottomLeft:"\u2570",left:"\u2502"},bold:{topLeft:"\u250F",top:"\u2501",topRight:"\u2513",right:"\u2503",bottomRight:"\u251B",bottom:"\u2501",bottomLeft:"\u2517",left:"\u2503"},singleDouble:{topLeft:"\u2553",top:"\u2500",topRight:"\u2556",right:"\u2551",bottomRight:"\u255C",bottom:"\u2500",bottomLeft:"\u2559",left:"\u2551"},doubleSingle:{topLeft:"\u2552",top:"\u2550",topRight:"\u2555",right:"\u2502",bottomRight:"\u255B",bottom:"\u2550",bottomLeft:"\u2558",left:"\u2502"},classic:{topLeft:"+",top:"-",topRight:"+",right:"|",bottomRight:"+",bottom:"-",bottomLeft:"+",left:"|"},arrow:{topLeft:"\u2198",top:"\u2193",topRight:"\u2199",right:"\u2190",bottomRight:"\u2196",bottom:"\u2191",bottomLeft:"\u2197",left:"\u2192"}}});var IC=N((Wwe,AC)=>{"use strict";var eR=QN();AC.exports=eR;AC.exports.default=eR});var oR=N((qwe,sR)=>{"use strict";sR.exports=({onlyFirst:e=!1}={})=>{let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}});var uR=N((zwe,aR)=>{"use strict";var oee=oR();aR.exports=e=>typeof e=="string"?e.replace(oee(),""):e});var cR=N((Hwe,LC)=>{"use strict";var lR=e=>Number.isNaN(e)?!1:e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141);LC.exports=lR;LC.exports.default=lR});var pR=N((Ywe,fR)=>{"use strict";fR.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var mR=N((Kwe,NC)=>{"use strict";var aee=uR(),uee=cR(),lee=pR(),dR=e=>{if(typeof e!="string"||e.length===0||(e=aee(e),e.length===0))return 0;e=e.replace(lee()," ");let t=0;for(let r=0;r<e.length;r++){let n=e.codePointAt(r);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&r++,t+=uee(n)?2:1)}return t};NC.exports=dR;NC.exports.default=dR});var gR=N((Xwe,hR)=>{"use strict";var cee=mR();function Iu(e,t){if(!e)return e;t=t||{};let r=t.align||"center";if(r==="left")return e;let n=t.split||`
|
|
409
|
+
`,i=t.pad||" ",s=r!=="right"?fee:pee,o=!1;Array.isArray(e)||(o=!0,e=String(e).split(n));let a,u=0;return e=e.map(function(l){return l=String(l),a=cee(l),u=Math.max(a,u),{str:l,width:a}}).map(function(l){return new Array(s(u,l.width)+1).join(i)+l.str}),o?e.join(n):e}Iu.left=function(t){return Iu(t,{align:"left"})};Iu.center=function(t){return Iu(t,{align:"center"})};Iu.right=function(t){return Iu(t,{align:"right"})};hR.exports=Iu;function fee(e,t){return Math.floor((e-t)/2)}function pee(e,t){return e-t}});var MR=N((QCe,kR)=>{"use strict";var kee="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";kR.exports=kee});var $R=N((eEe,UR)=>{"use strict";var Mee=MR();function jR(){}function VR(){}VR.resetWarningCache=jR;UR.exports=function(){function e(n,i,s,o,a,u){if(u!==Mee){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:VR,resetWarningCache:jR};return r.PropTypes=r,r}});var GR=N((nEe,WR)=>{WR.exports=$R()();var tEe,rEe});var zR=N((iEe,qR)=>{"use strict";qR.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 qC=N((sEe,YR)=>{var Rp=zR(),HR={};for(let e of Object.keys(Rp))HR[Rp[e]]=e;var De={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"]}};YR.exports=De;for(let e of Object.keys(De)){if(!("channels"in De[e]))throw new Error("missing channels property: "+e);if(!("labels"in De[e]))throw new Error("missing channel labels property: "+e);if(De[e].labels.length!==De[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=De[e];delete De[e].channels,delete De[e].labels,Object.defineProperty(De[e],"channels",{value:t}),Object.defineProperty(De[e],"labels",{value:r})}De.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),s=Math.max(t,r,n),o=s-i,a,u;s===i?a=0:t===s?a=(r-n)/o:r===s?a=2+(n-t)/o:n===s&&(a=4+(t-r)/o),a=Math.min(a*60,360),a<0&&(a+=360);let l=(i+s)/2;return s===i?u=0:l<=.5?u=o/(s+i):u=o/(2-s-i),[a,u*100,l*100]};De.rgb.hsv=function(e){let t,r,n,i,s,o=e[0]/255,a=e[1]/255,u=e[2]/255,l=Math.max(o,a,u),c=l-Math.min(o,a,u),f=function(p){return(l-p)/6/c+1/2};return c===0?(i=0,s=0):(s=c/l,t=f(o),r=f(a),n=f(u),o===l?i=n-r:a===l?i=1/3+t-n:u===l&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,l*100]};De.rgb.hwb=function(e){let t=e[0],r=e[1],n=e[2],i=De.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,s*100,n*100]};De.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(1-t,1-r,1-n),s=(1-t-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 jee(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}De.rgb.keyword=function(e){let t=HR[e];if(t)return t;let r=1/0,n;for(let i of Object.keys(Rp)){let s=Rp[i],o=jee(e,s);o<r&&(r=o,n=i)}return n};De.keyword.rgb=function(e){return Rp[e]};De.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/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=t*.4124+r*.3576+n*.1805,s=t*.2126+r*.7152+n*.0722,o=t*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};De.rgb.lab=function(e){let t=De.rgb.xyz(e),r=t[0],n=t[1],i=t[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]};De.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i,s,o;if(r===0)return o=n*255,[o,o,o];n<.5?i=n*(1+r):i=n+r-n*r;let a=2*n-i,u=[0,0,0];for(let l=0;l<3;l++)s=t+1/3*-(l-1),s<0&&s++,s>1&&s--,6*s<1?o=a+(i-a)*6*s:2*s<1?o=i:3*s<2?o=a+(i-a)*(2/3-s)*6:o=a,u[l]=o*255;return u};De.hsl.hsv=function(e){let t=e[0],r=e[1]/100,n=e[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[t,a*100,o*100]};De.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,s=t-Math.floor(t),o=255*n*(1-r),a=255*n*(1-r*s),u=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}};De.hsv.hsl=function(e){let t=e[0],r=e[1]/100,n=e[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,[t,s*100,o*100]};De.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let o=Math.floor(6*t),a=1-n;s=6*t-o,o&1&&(s=1-s);let u=r+s*(a-r),l,c,f;switch(o){default:case 6:case 0:l=a,c=u,f=r;break;case 1:l=u,c=a,f=r;break;case 2:l=r,c=a,f=u;break;case 3:l=r,c=u,f=a;break;case 4:l=u,c=r,f=a;break;case 5:l=a,c=r,f=u;break}return[l*255,c*255,f*255]};De.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,s=1-Math.min(1,t*(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]};De.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i,s,o;return i=t*3.2406+r*-1.5372+n*-.4986,s=t*-.9689+r*1.8758+n*.0415,o=t*.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]};De.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+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*(t-r),o=200*(r-n);return[i,s,o]};De.lab.xyz=function(e){let t=e[0],r=e[1],n=e[2],i,s,o;s=(t+16)/116,i=r/500+s,o=s-n/200;let a=s**3,u=i**3,l=o**3;return s=a>.008856?a:(s-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};De.lab.lch=function(e){let t=e[0],r=e[1],n=e[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let o=Math.sqrt(r*r+n*n);return[t,o,i]};De.lch.lab=function(e){let t=e[0],r=e[1],i=e[2]/360*2*Math.PI,s=r*Math.cos(i),o=r*Math.sin(i);return[t,s,o]};De.rgb.ansi16=function(e,t=null){let[r,n,i]=e,s=t===null?De.rgb.hsv(e)[2]:t;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};De.hsv.ansi16=function(e){return De.rgb.ansi16(De.hsv.rgb(e),e[2])};De.rgb.ansi256=function(e){let t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};De.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,s=(t>>2&1)*r*255;return[n,i,s]};De.ansi256.rgb=function(e){if(e>=232){let s=(e-232)*10+8;return[s,s,s]}e-=16;let t,r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[r,n,i]};De.rgb.hex=function(e){let r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};De.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[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]};De.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),o=i-s,a,u;return o<1?a=s/(1-o):a=0,o<=0?u=0:i===t?u=(r-n)/o%6:i===r?u=2+(n-t)/o:u=4+(t-r)/o,u/=6,u%=1,[u*360,o*100,a*100]};De.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};De.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};De.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],s=t%1*6,o=s%1,a=1-o,u=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};De.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};De.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};De.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};De.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,i=n-t,s=0;return i<1&&(s=(n-i)/(1-i)),[e[0],i*100,s*100]};De.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};De.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};De.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};De.gray.hsl=function(e){return[0,0,e[0]]};De.gray.hsv=De.gray.hsl;De.gray.hwb=function(e){return[0,100,e[0]]};De.gray.cmyk=function(e){return[0,0,0,e[0]]};De.gray.lab=function(e){return[e[0],0,0]};De.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};De.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var XR=N((oEe,KR)=>{var G0=qC();function Vee(){let e={},t=Object.keys(G0);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function Uee(e){let t=Vee(),r=[e];for(t[e].distance=0;r.length;){let n=r.pop(),i=Object.keys(G0[n]);for(let s=i.length,o=0;o<s;o++){let a=i[o],u=t[a];u.distance===-1&&(u.distance=t[n].distance+1,u.parent=n,r.unshift(a))}}return t}function $ee(e,t){return function(r){return t(e(r))}}function Wee(e,t){let r=[t[e].parent,e],n=G0[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)r.unshift(t[i].parent),n=$ee(G0[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}KR.exports=function(e){let t=Uee(e),r={},n=Object.keys(t);for(let i=n.length,s=0;s<i;s++){let o=n[s];t[o].parent!==null&&(r[o]=Wee(o,t))}return r}});var ZR=N((aEe,JR)=>{var zC=qC(),Gee=XR(),ac={},qee=Object.keys(zC);function zee(e){let t=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function Hee(e){let t=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=e(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 e&&(t.conversion=e.conversion),t}qee.forEach(e=>{ac[e]={},Object.defineProperty(ac[e],"channels",{value:zC[e].channels}),Object.defineProperty(ac[e],"labels",{value:zC[e].labels});let t=Gee(e);Object.keys(t).forEach(n=>{let i=t[n];ac[e][n]=Hee(i),ac[e][n].raw=zee(i)})});JR.exports=ac});var i5=N((uEe,n5)=>{"use strict";var QR=(e,t)=>(...r)=>`\x1B[${e(...r)+t}m`,e5=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};5;${n}m`},t5=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};2;${n[0]};${n[1]};${n[2]}m`},q0=e=>e,r5=(e,t,r)=>[e,t,r],uc=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{let n=r();return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},HC,lc=(e,t,r,n)=>{HC===void 0&&(HC=ZR());let i=n?10:0,s={};for(let[o,a]of Object.entries(HC)){let u=o==="ansi16"?"ansi":o;o===t?s[u]=e(r,i):typeof a=="object"&&(s[u]=e(a[t],i))}return s};function Yee(){let e=new Map,t={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]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[r,n]of Object.entries(t)){for(let[i,s]of Object.entries(n))t[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=t[i],e.set(s[0],s[1]);Object.defineProperty(t,r,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",uc(t.color,"ansi",()=>lc(QR,"ansi16",q0,!1)),uc(t.color,"ansi256",()=>lc(e5,"ansi256",q0,!1)),uc(t.color,"ansi16m",()=>lc(t5,"rgb",r5,!1)),uc(t.bgColor,"ansi",()=>lc(QR,"ansi16",q0,!0)),uc(t.bgColor,"ansi256",()=>lc(e5,"ansi256",q0,!0)),uc(t.bgColor,"ansi16m",()=>lc(t5,"rgb",r5,!0)),t}Object.defineProperty(n5,"exports",{enumerable:!0,get:Yee})});var o5=N((lEe,s5)=>{"use strict";var Kee=(e,t,r)=>{let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,o="";do o+=e.substr(s,n-s)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return o+=e.substr(s),o},Xee=(e,t,r,n)=>{let i=0,s="";do{let o=e[n-1]==="\r";s+=e.substr(i,(o?n-1:n)-i)+t+(o?`\r
|
|
410
410
|
`:`
|
|
411
411
|
`)+r,i=n+1,n=e.indexOf(`
|
|
412
|
-
`,i)}while(n!==-1);return s+=e.substr(i),s};s5.exports={stringReplaceAll:Kee,stringEncaseCRLFWithFirstIndex:Xee}});var f5=N((
|
|
413
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function l5(e){let t=e[0]==="u",r=e[1]==="{";return t&&!r&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&r?String.fromCodePoint(parseInt(e.slice(2,-1),16)):ete.get(e)||e}function tte(e,t){let r=[],n=t.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(Zee))r.push(i[2].replace(Qee,(a,u,l)=>u?l5(u):l));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`)}return r}function rte(e){a5.lastIndex=0;let t=[],r;for(;(r=a5.exec(e))!==null;){let n=r[1];if(r[2]){let i=tte(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function u5(e,t){let r={};for(let i of t)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=e;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}c5.exports=(e,t)=>{let r=[],n=[],i=[];if(t.replace(Jee,(s,o,a,u,l,c)=>{if(o)i.push(l5(o));else if(u){let f=i.join("");i=[],n.push(r.length===0?f:u5(e,r)(f)),r.push({inverse:a,styles:rte(u)})}else if(l){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(u5(e,r)(i.join(""))),i=[],r.pop()}else i.push(c)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var D5=N((
|
|
414
|
-
`);return s!==-1&&(t=ite(t,i,n,s)),n+t+i},YC,g5=(e,...t)=>{let[r]=t;if(!z0(r)||!z0(r.raw))return t.join(" ");let n=t.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 YC===void 0&&(YC=f5()),YC(e,i.join(""))};Object.defineProperties(H0.prototype,cc);var K0=H0();K0.supportsColor=KC;K0.stderr=H0({level:XC?XC.level:0});K0.stderr.supportsColor=XC;y5.exports=K0});var v5=N((QC,eE)=>{(function(e,t){typeof QC=="object"&&typeof eE<"u"?eE.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.tinycolor=t())})(QC,function(){"use strict";function e(S){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},e(S)}var t=/^\s+/,r=/\s+$/;function n(S,_){if(S=S||"",_=_||{},S instanceof n)return S;if(!(this instanceof n))return new n(S,_);var x=i(S);this._originalInput=S,this._r=x.r,this._g=x.g,this._b=x.b,this._a=x.a,this._roundA=Math.round(100*this._a)/100,this._format=_.format||x.format,this._gradientType=_.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=x.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 _=this.toRgb();return(_.r*299+_.g*587+_.b*114)/1e3},getLuminance:function(){var _=this.toRgb(),x,B,K,H,Be,$e;return x=_.r/255,B=_.g/255,K=_.b/255,x<=.03928?H=x/12.92:H=Math.pow((x+.055)/1.055,2.4),B<=.03928?Be=B/12.92:Be=Math.pow((B+.055)/1.055,2.4),K<=.03928?$e=K/12.92:$e=Math.pow((K+.055)/1.055,2.4),.2126*H+.7152*Be+.0722*$e},setAlpha:function(_){return this._a=k(_),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var _=u(this._r,this._g,this._b);return{h:_.h*360,s:_.s,v:_.v,a:this._a}},toHsvString:function(){var _=u(this._r,this._g,this._b),x=Math.round(_.h*360),B=Math.round(_.s*100),K=Math.round(_.v*100);return this._a==1?"hsv("+x+", "+B+"%, "+K+"%)":"hsva("+x+", "+B+"%, "+K+"%, "+this._roundA+")"},toHsl:function(){var _=o(this._r,this._g,this._b);return{h:_.h*360,s:_.s,l:_.l,a:this._a}},toHslString:function(){var _=o(this._r,this._g,this._b),x=Math.round(_.h*360),B=Math.round(_.s*100),K=Math.round(_.l*100);return this._a==1?"hsl("+x+", "+B+"%, "+K+"%)":"hsla("+x+", "+B+"%, "+K+"%, "+this._roundA+")"},toHex:function(_){return c(this._r,this._g,this._b,_)},toHexString:function(_){return"#"+this.toHex(_)},toHex8:function(_){return f(this._r,this._g,this._b,this._a,_)},toHex8String:function(_){return"#"+this.toHex8(_)},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(R(this._r,255)*100)+"%",g:Math.round(R(this._g,255)*100)+"%",b:Math.round(R(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(R(this._r,255)*100)+"%, "+Math.round(R(this._g,255)*100)+"%, "+Math.round(R(this._b,255)*100)+"%)":"rgba("+Math.round(R(this._r,255)*100)+"%, "+Math.round(R(this._g,255)*100)+"%, "+Math.round(R(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:T[c(this._r,this._g,this._b,!0)]||!1},toFilter:function(_){var x="#"+p(this._r,this._g,this._b,this._a),B=x,K=this._gradientType?"GradientType = 1, ":"";if(_){var H=n(_);B="#"+p(H._r,H._g,H._b,H._a)}return"progid:DXImageTransform.Microsoft.gradient("+K+"startColorstr="+x+",endColorstr="+B+")"},toString:function(_){var x=!!_;_=_||this._format;var B=!1,K=this._a<1&&this._a>=0,H=!x&&K&&(_==="hex"||_==="hex6"||_==="hex3"||_==="hex4"||_==="hex8"||_==="name");return H?_==="name"&&this._a===0?this.toName():this.toRgbString():(_==="rgb"&&(B=this.toRgbString()),_==="prgb"&&(B=this.toPercentageRgbString()),(_==="hex"||_==="hex6")&&(B=this.toHexString()),_==="hex3"&&(B=this.toHexString(!0)),_==="hex4"&&(B=this.toHex8String(!0)),_==="hex8"&&(B=this.toHex8String()),_==="name"&&(B=this.toName()),_==="hsl"&&(B=this.toHslString()),_==="hsv"&&(B=this.toHsvString()),B||this.toHexString())},clone:function(){return n(this.toString())},_applyModification:function(_,x){var B=_.apply(null,[this].concat([].slice.call(x)));return this._r=B._r,this._g=B._g,this._b=B._b,this.setAlpha(B._a),this},lighten:function(){return this._applyModification(D,arguments)},brighten:function(){return this._applyModification(h,arguments)},darken:function(){return this._applyModification(g,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(m,arguments)},greyscale:function(){return this._applyModification(y,arguments)},spin:function(){return this._applyModification(v,arguments)},_applyCombination:function(_,x){return _.apply(null,[this].concat([].slice.call(x)))},analogous:function(){return this._applyCombination(A,arguments)},complement:function(){return this._applyCombination(w,arguments)},monochromatic:function(){return this._applyCombination(W,arguments)},splitcomplement:function(){return this._applyCombination(I,arguments)},triad:function(){return this._applyCombination(E,[3])},tetrad:function(){return this._applyCombination(E,[4])}},n.fromRatio=function(S,_){if(e(S)=="object"){var x={};for(var B in S)S.hasOwnProperty(B)&&(B==="a"?x[B]=S[B]:x[B]=ne(S[B]));S=x}return n(S,_)};function i(S){var _={r:0,g:0,b:0},x=1,B=null,K=null,H=null,Be=!1,$e=!1;return typeof S=="string"&&(S=Fe(S)),e(S)=="object"&&(ur(S.r)&&ur(S.g)&&ur(S.b)?(_=s(S.r,S.g,S.b),Be=!0,$e=String(S.r).substr(-1)==="%"?"prgb":"rgb"):ur(S.h)&&ur(S.s)&&ur(S.v)?(B=ne(S.s),K=ne(S.v),_=l(S.h,B,K),Be=!0,$e="hsv"):ur(S.h)&&ur(S.s)&&ur(S.l)&&(B=ne(S.s),H=ne(S.l),_=a(S.h,B,H),Be=!0,$e="hsl"),S.hasOwnProperty("a")&&(x=S.a)),x=k(x),{ok:Be,format:S.format||$e,r:Math.min(255,Math.max(_.r,0)),g:Math.min(255,Math.max(_.g,0)),b:Math.min(255,Math.max(_.b,0)),a:x}}function s(S,_,x){return{r:R(S,255)*255,g:R(_,255)*255,b:R(x,255)*255}}function o(S,_,x){S=R(S,255),_=R(_,255),x=R(x,255);var B=Math.max(S,_,x),K=Math.min(S,_,x),H,Be,$e=(B+K)/2;if(B==K)H=Be=0;else{var it=B-K;switch(Be=$e>.5?it/(2-B-K):it/(B+K),B){case S:H=(_-x)/it+(_<x?6:0);break;case _:H=(x-S)/it+2;break;case x:H=(S-_)/it+4;break}H/=6}return{h:H,s:Be,l:$e}}function a(S,_,x){var B,K,H;S=R(S,360),_=R(_,100),x=R(x,100);function Be(O,P,X){return X<0&&(X+=1),X>1&&(X-=1),X<1/6?O+(P-O)*6*X:X<1/2?P:X<2/3?O+(P-O)*(2/3-X)*6:O}if(_===0)B=K=H=x;else{var $e=x<.5?x*(1+_):x+_-x*_,it=2*x-$e;B=Be(it,$e,S+1/3),K=Be(it,$e,S),H=Be(it,$e,S-1/3)}return{r:B*255,g:K*255,b:H*255}}function u(S,_,x){S=R(S,255),_=R(_,255),x=R(x,255);var B=Math.max(S,_,x),K=Math.min(S,_,x),H,Be,$e=B,it=B-K;if(Be=B===0?0:it/B,B==K)H=0;else{switch(B){case S:H=(_-x)/it+(_<x?6:0);break;case _:H=(x-S)/it+2;break;case x:H=(S-_)/it+4;break}H/=6}return{h:H,s:Be,v:$e}}function l(S,_,x){S=R(S,360)*6,_=R(_,100),x=R(x,100);var B=Math.floor(S),K=S-B,H=x*(1-_),Be=x*(1-K*_),$e=x*(1-(1-K)*_),it=B%6,O=[x,Be,H,H,$e,x][it],P=[$e,x,x,Be,H,H][it],X=[H,H,$e,x,x,Be][it];return{r:O*255,g:P*255,b:X*255}}function c(S,_,x,B){var K=[re(Math.round(S).toString(16)),re(Math.round(_).toString(16)),re(Math.round(x).toString(16))];return B&&K[0].charAt(0)==K[0].charAt(1)&&K[1].charAt(0)==K[1].charAt(1)&&K[2].charAt(0)==K[2].charAt(1)?K[0].charAt(0)+K[1].charAt(0)+K[2].charAt(0):K.join("")}function f(S,_,x,B,K){var H=[re(Math.round(S).toString(16)),re(Math.round(_).toString(16)),re(Math.round(x).toString(16)),re(Ce(B))];return K&&H[0].charAt(0)==H[0].charAt(1)&&H[1].charAt(0)==H[1].charAt(1)&&H[2].charAt(0)==H[2].charAt(1)&&H[3].charAt(0)==H[3].charAt(1)?H[0].charAt(0)+H[1].charAt(0)+H[2].charAt(0)+H[3].charAt(0):H.join("")}function p(S,_,x,B){var K=[re(Ce(B)),re(Math.round(S).toString(16)),re(Math.round(_).toString(16)),re(Math.round(x).toString(16))];return K.join("")}n.equals=function(S,_){return!S||!_?!1:n(S).toRgbString()==n(_).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function d(S,_){_=_===0?0:_||10;var x=n(S).toHsl();return x.s-=_/100,x.s=q(x.s),n(x)}function m(S,_){_=_===0?0:_||10;var x=n(S).toHsl();return x.s+=_/100,x.s=q(x.s),n(x)}function y(S){return n(S).desaturate(100)}function D(S,_){_=_===0?0:_||10;var x=n(S).toHsl();return x.l+=_/100,x.l=q(x.l),n(x)}function h(S,_){_=_===0?0:_||10;var x=n(S).toRgb();return x.r=Math.max(0,Math.min(255,x.r-Math.round(255*-(_/100)))),x.g=Math.max(0,Math.min(255,x.g-Math.round(255*-(_/100)))),x.b=Math.max(0,Math.min(255,x.b-Math.round(255*-(_/100)))),n(x)}function g(S,_){_=_===0?0:_||10;var x=n(S).toHsl();return x.l-=_/100,x.l=q(x.l),n(x)}function v(S,_){var x=n(S).toHsl(),B=(x.h+_)%360;return x.h=B<0?360+B:B,n(x)}function w(S){var _=n(S).toHsl();return _.h=(_.h+180)%360,n(_)}function E(S,_){if(isNaN(_)||_<=0)throw new Error("Argument to polyad must be a positive number");for(var x=n(S).toHsl(),B=[n(S)],K=360/_,H=1;H<_;H++)B.push(n({h:(x.h+H*K)%360,s:x.s,l:x.l}));return B}function I(S){var _=n(S).toHsl(),x=_.h;return[n(S),n({h:(x+72)%360,s:_.s,l:_.l}),n({h:(x+216)%360,s:_.s,l:_.l})]}function A(S,_,x){_=_||6,x=x||30;var B=n(S).toHsl(),K=360/x,H=[n(S)];for(B.h=(B.h-(K*_>>1)+720)%360;--_;)B.h=(B.h+K)%360,H.push(n(B));return H}function W(S,_){_=_||6;for(var x=n(S).toHsv(),B=x.h,K=x.s,H=x.v,Be=[],$e=1/_;_--;)Be.push(n({h:B,s:K,v:H})),H=(H+$e)%1;return Be}n.mix=function(S,_,x){x=x===0?0:x||50;var B=n(S).toRgb(),K=n(_).toRgb(),H=x/100,Be={r:(K.r-B.r)*H+B.r,g:(K.g-B.g)*H+B.g,b:(K.b-B.b)*H+B.b,a:(K.a-B.a)*H+B.a};return n(Be)},n.readability=function(S,_){var x=n(S),B=n(_);return(Math.max(x.getLuminance(),B.getLuminance())+.05)/(Math.min(x.getLuminance(),B.getLuminance())+.05)},n.isReadable=function(S,_,x){var B=n.readability(S,_),K,H;switch(H=!1,K=tf(x),K.level+K.size){case"AAsmall":case"AAAlarge":H=B>=4.5;break;case"AAlarge":H=B>=3;break;case"AAAsmall":H=B>=7;break}return H},n.mostReadable=function(S,_,x){var B=null,K=0,H,Be,$e,it;x=x||{},Be=x.includeFallbackColors,$e=x.level,it=x.size;for(var O=0;O<_.length;O++)H=n.readability(S,_[O]),H>K&&(K=H,B=n(_[O]));return n.isReadable(S,B,{level:$e,size:it})||!Be?B:(x.includeFallbackColors=!1,n.mostReadable(S,["#fff","#000"],x))};var b=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"},T=n.hexNames=F(b);function F(S){var _={};for(var x in S)S.hasOwnProperty(x)&&(_[S[x]]=x);return _}function k(S){return S=parseFloat(S),(isNaN(S)||S<0||S>1)&&(S=1),S}function R(S,_){ee(S)&&(S="100%");var x=G(S);return S=Math.min(_,Math.max(0,parseFloat(S))),x&&(S=parseInt(S*_,10)/100),Math.abs(S-_)<1e-6?1:S%_/parseFloat(_)}function q(S){return Math.min(1,Math.max(0,S))}function M(S){return parseInt(S,16)}function ee(S){return typeof S=="string"&&S.indexOf(".")!=-1&&parseFloat(S)===1}function G(S){return typeof S=="string"&&S.indexOf("%")!=-1}function re(S){return S.length==1?"0"+S:""+S}function ne(S){return S<=1&&(S=S*100+"%"),S}function Ce(S){return Math.round(parseFloat(S)*255).toString(16)}function Ue(S){return M(S)/255}var gt=function(){var S="[-\\+]?\\d+%?",_="[-\\+]?\\d*\\.\\d+%?",x="(?:"+_+")|(?:"+S+")",B="[\\s|\\(]+("+x+")[,|\\s]+("+x+")[,|\\s]+("+x+")\\s*\\)?",K="[\\s|\\(]+("+x+")[,|\\s]+("+x+")[,|\\s]+("+x+")[,|\\s]+("+x+")\\s*\\)?";return{CSS_UNIT:new RegExp(x),rgb:new RegExp("rgb"+B),rgba:new RegExp("rgba"+K),hsl:new RegExp("hsl"+B),hsla:new RegExp("hsla"+K),hsv:new RegExp("hsv"+B),hsva:new RegExp("hsva"+K),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 ur(S){return!!gt.CSS_UNIT.exec(S)}function Fe(S){S=S.replace(t,"").replace(r,"").toLowerCase();var _=!1;if(b[S])S=b[S],_=!0;else if(S=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var x;return(x=gt.rgb.exec(S))?{r:x[1],g:x[2],b:x[3]}:(x=gt.rgba.exec(S))?{r:x[1],g:x[2],b:x[3],a:x[4]}:(x=gt.hsl.exec(S))?{h:x[1],s:x[2],l:x[3]}:(x=gt.hsla.exec(S))?{h:x[1],s:x[2],l:x[3],a:x[4]}:(x=gt.hsv.exec(S))?{h:x[1],s:x[2],v:x[3]}:(x=gt.hsva.exec(S))?{h:x[1],s:x[2],v:x[3],a:x[4]}:(x=gt.hex8.exec(S))?{r:M(x[1]),g:M(x[2]),b:M(x[3]),a:Ue(x[4]),format:_?"name":"hex8"}:(x=gt.hex6.exec(S))?{r:M(x[1]),g:M(x[2]),b:M(x[3]),format:_?"name":"hex"}:(x=gt.hex4.exec(S))?{r:M(x[1]+""+x[1]),g:M(x[2]+""+x[2]),b:M(x[3]+""+x[3]),a:Ue(x[4]+""+x[4]),format:_?"name":"hex8"}:(x=gt.hex3.exec(S))?{r:M(x[1]+""+x[1]),g:M(x[2]+""+x[2]),b:M(x[3]+""+x[3]),format:_?"name":"hex"}:!1}function tf(S){var _,x;return S=S||{level:"AA",size:"small"},_=(S.level||"AA").toUpperCase(),x=(S.size||"small").toLowerCase(),_!=="AA"&&_!=="AAA"&&(_="AA"),x!=="small"&&x!=="large"&&(x="small"),{level:_,size:x}}return n})});var b5=N((dEe,_5)=>{var kp=v5(),S5={r:256,g:256,b:256,a:1},x5={h:360,s:1,v:1,a:1};function nE(e,t,r){let n={};for(let i in e)e.hasOwnProperty(i)&&(n[i]=r===0?0:(t[i]-e[i])/r);return n}function iE(e,t,r,n){let i={};for(let s in t)t.hasOwnProperty(s)&&(i[s]=e[s]*r+t[s],i[s]=i[s]<0?i[s]+n[s]:n[s]!==1?i[s]%n[s]:i[s]);return i}function tE(e,t,r){let n=e.color.toRgb(),i=t.color.toRgb(),s=nE(n,i,r),o=[e.color];for(let a=1;a<r;a++){let u=iE(s,n,a,S5);o.push(kp(u))}return o}function w5(e,t,r,n){let i=e.color.toHsv(),s=t.color.toHsv();if(i.s===0||s.s===0)return tE(e,t,r);let o;if(typeof n=="boolean")o=n;else{let c=i.h<s.h&&s.h-i.h<180||i.h>s.h&&i.h-s.h>180;o=n==="long"&&c||n==="short"&&!c}let a=nE(i,s,r),u=[e.color],l;i.h<=s.h&&!o||i.h>=s.h&&o?l=s.h-i.h:o?l=360-s.h+i.h:l=360-i.h+s.h,a.h=Math.pow(-1,o?1:0)*Math.abs(l)/r;for(let c=1;c<r;c++){let f=iE(a,i,c,x5);u.push(kp(f))}return u}function C5(e,t){let r=e.length;if(t=parseInt(t,10),isNaN(t)||t<2)throw new Error("Invalid number of steps (< 2)");if(t<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=(t-1)*(e[s].pos-e[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!==t;)if(i<t){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 E5(e,t,r,n){if(t<0||t>1)throw new Error("Position must be between 0 and 1");let i,s;for(let u=0,l=e.length;u<l-1;u++)if(t>=e[u].pos&&t<e[u+1].pos){i=e[u],s=e[u+1];break}i||(i=s=e[e.length-1]);let o=nE(i.color[r](),s.color[r](),(s.pos-i.pos)*100),a=iE(o,i.color[r](),(t-i.pos)*100,n);return kp(a)}var rE=class e{constructor(t){if(t.length<2)throw new Error("Invalid number of stops (< 2)");let r=t[0].pos!==void 0,n=t.length,i=-1,s=!1;this.stops=t.map((o,a)=>{let u=o.pos!==void 0;if(r^u)throw new Error("Cannot mix positionned and not posionned color stops");if(u){let l=o.color!==void 0;if(!l&&(s||a===0||a===n-1))throw new Error("Cannot define two consecutive position-only stops");if(s=!l,o={color:l?kp(o.color):null,colorLess:!l,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:kp(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 t=[];return this.stops.forEach(function(r){t.push({color:r.color,pos:1-r.pos})}),new e(t.reverse())}loop(){let t=[],r=[];return this.stops.forEach(n=>{t.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 e(t.concat(r.reverse()))}rgb(t){let r=C5(this.stops,t),n=[];this.stops.forEach((i,s)=>{i.colorLess&&(i.color=tE(this.stops[s-1],this.stops[s+1],2)[1])});for(let i=0,s=this.stops.length;i<s-1;i++){let o=tE(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(t,r){let n=C5(this.stops,t),i=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=w5(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=w5(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(t,r){t=t||"linear",r=r||(t==="linear"?"to right":"ellipse at center");let n=t+"-gradient("+r;return this.stops.forEach(function(i){n+=", "+(i.colorLess?"":i.color.toRgbString()+" ")+i.pos*100+"%"}),n+=")",n}rgbAt(t){return E5(this.stops,t,"toRgb",S5)}hsvAt(t){return E5(this.stops,t,"toHsv",x5)}};_5.exports=function(e){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');e=arguments[0]}else e=Array.prototype.slice.call(arguments);return new rE(e)}});var T5=N((mEe,X0)=>{"use strict";var F5=D5(),ate=b5(),O5=/\s/g;function sE(...e){let t=ate.apply(this,e),r=(n,i)=>ute(n?n.toString():"",t,i);return r.multiline=(n,i)=>lte(n?n.toString():"",t,i),r}var A5=(e,t,r)=>t.interpolation.toLowerCase()==="hsv"?e.hsv(r,t.hsvSpin.toLowerCase()):e.rgb(r);function ute(e,t,r){let n=I5(r),i=Math.max(e.replace(O5,"").length,t.stops.length),s=A5(t,n,i),o="";for(let a of e)o+=a.match(O5)?a:F5.hex(s.shift().toHex())(a);return o}function lte(e,t,r){let n=I5(r),i=e.split(`
|
|
412
|
+
`,i)}while(n!==-1);return s+=e.substr(i),s};s5.exports={stringReplaceAll:Kee,stringEncaseCRLFWithFirstIndex:Xee}});var f5=N((cEe,c5)=>{"use strict";var Jee=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,a5=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Zee=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Qee=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,ete=new Map([["n",`
|
|
413
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function l5(e){let t=e[0]==="u",r=e[1]==="{";return t&&!r&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&r?String.fromCodePoint(parseInt(e.slice(2,-1),16)):ete.get(e)||e}function tte(e,t){let r=[],n=t.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(Zee))r.push(i[2].replace(Qee,(a,u,l)=>u?l5(u):l));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`)}return r}function rte(e){a5.lastIndex=0;let t=[],r;for(;(r=a5.exec(e))!==null;){let n=r[1];if(r[2]){let i=tte(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function u5(e,t){let r={};for(let i of t)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=e;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}c5.exports=(e,t)=>{let r=[],n=[],i=[];if(t.replace(Jee,(s,o,a,u,l,c)=>{if(o)i.push(l5(o));else if(u){let f=i.join("");i=[],n.push(r.length===0?f:u5(e,r)(f)),r.push({inverse:a,styles:rte(u)})}else if(l){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(u5(e,r)(i.join(""))),i=[],r.pop()}else i.push(c)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var D5=N((fEe,y5)=>{"use strict";var Bp=i5(),{stdout:KC,stderr:XC}=LD(),{stringReplaceAll:nte,stringEncaseCRLFWithFirstIndex:ite}=o5(),{isArray:z0}=Array,d5=["ansi","ansi","ansi256","ansi16m"],cc=Object.create(null),ste=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=KC?KC.level:0;e.level=t.level===void 0?r:t.level},JC=class{constructor(t){return m5(t)}},m5=e=>{let t={};return ste(t,e),t.template=(...r)=>g5(t.template,...r),Object.setPrototypeOf(t,H0.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=JC,t.template};function H0(e){return m5(e)}for(let[e,t]of Object.entries(Bp))cc[e]={get(){let r=Y0(this,ZC(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};cc.visible={get(){let e=Y0(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};var h5=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of h5)cc[e]={get(){let{level:t}=this;return function(...r){let n=ZC(Bp.color[d5[t]][e](...r),Bp.color.close,this._styler);return Y0(this,n,this._isEmpty)}}};for(let e of h5){let t="bg"+e[0].toUpperCase()+e.slice(1);cc[t]={get(){let{level:r}=this;return function(...n){let i=ZC(Bp.bgColor[d5[r]][e](...n),Bp.bgColor.close,this._styler);return Y0(this,i,this._isEmpty)}}}}var ote=Object.defineProperties(()=>{},{...cc,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),ZC=(e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},Y0=(e,t,r)=>{let n=(...i)=>z0(i[0])&&z0(i[0].raw)?p5(n,g5(n,...i)):p5(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,ote),n._generator=e,n._styler=t,n._isEmpty=r,n},p5=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let r=e._styler;if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.indexOf("\x1B")!==-1)for(;r!==void 0;)t=nte(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
|
|
414
|
+
`);return s!==-1&&(t=ite(t,i,n,s)),n+t+i},YC,g5=(e,...t)=>{let[r]=t;if(!z0(r)||!z0(r.raw))return t.join(" ");let n=t.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 YC===void 0&&(YC=f5()),YC(e,i.join(""))};Object.defineProperties(H0.prototype,cc);var K0=H0();K0.supportsColor=KC;K0.stderr=H0({level:XC?XC.level:0});K0.stderr.supportsColor=XC;y5.exports=K0});var v5=N((QC,eE)=>{(function(e,t){typeof QC=="object"&&typeof eE<"u"?eE.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.tinycolor=t())})(QC,function(){"use strict";function e(S){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},e(S)}var t=/^\s+/,r=/\s+$/;function n(S,_){if(S=S||"",_=_||{},S instanceof n)return S;if(!(this instanceof n))return new n(S,_);var x=i(S);this._originalInput=S,this._r=x.r,this._g=x.g,this._b=x.b,this._a=x.a,this._roundA=Math.round(100*this._a)/100,this._format=_.format||x.format,this._gradientType=_.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=x.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 _=this.toRgb();return(_.r*299+_.g*587+_.b*114)/1e3},getLuminance:function(){var _=this.toRgb(),x,B,K,H,Be,$e;return x=_.r/255,B=_.g/255,K=_.b/255,x<=.03928?H=x/12.92:H=Math.pow((x+.055)/1.055,2.4),B<=.03928?Be=B/12.92:Be=Math.pow((B+.055)/1.055,2.4),K<=.03928?$e=K/12.92:$e=Math.pow((K+.055)/1.055,2.4),.2126*H+.7152*Be+.0722*$e},setAlpha:function(_){return this._a=k(_),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var _=u(this._r,this._g,this._b);return{h:_.h*360,s:_.s,v:_.v,a:this._a}},toHsvString:function(){var _=u(this._r,this._g,this._b),x=Math.round(_.h*360),B=Math.round(_.s*100),K=Math.round(_.v*100);return this._a==1?"hsv("+x+", "+B+"%, "+K+"%)":"hsva("+x+", "+B+"%, "+K+"%, "+this._roundA+")"},toHsl:function(){var _=o(this._r,this._g,this._b);return{h:_.h*360,s:_.s,l:_.l,a:this._a}},toHslString:function(){var _=o(this._r,this._g,this._b),x=Math.round(_.h*360),B=Math.round(_.s*100),K=Math.round(_.l*100);return this._a==1?"hsl("+x+", "+B+"%, "+K+"%)":"hsla("+x+", "+B+"%, "+K+"%, "+this._roundA+")"},toHex:function(_){return c(this._r,this._g,this._b,_)},toHexString:function(_){return"#"+this.toHex(_)},toHex8:function(_){return f(this._r,this._g,this._b,this._a,_)},toHex8String:function(_){return"#"+this.toHex8(_)},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(R(this._r,255)*100)+"%",g:Math.round(R(this._g,255)*100)+"%",b:Math.round(R(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(R(this._r,255)*100)+"%, "+Math.round(R(this._g,255)*100)+"%, "+Math.round(R(this._b,255)*100)+"%)":"rgba("+Math.round(R(this._r,255)*100)+"%, "+Math.round(R(this._g,255)*100)+"%, "+Math.round(R(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:T[c(this._r,this._g,this._b,!0)]||!1},toFilter:function(_){var x="#"+p(this._r,this._g,this._b,this._a),B=x,K=this._gradientType?"GradientType = 1, ":"";if(_){var H=n(_);B="#"+p(H._r,H._g,H._b,H._a)}return"progid:DXImageTransform.Microsoft.gradient("+K+"startColorstr="+x+",endColorstr="+B+")"},toString:function(_){var x=!!_;_=_||this._format;var B=!1,K=this._a<1&&this._a>=0,H=!x&&K&&(_==="hex"||_==="hex6"||_==="hex3"||_==="hex4"||_==="hex8"||_==="name");return H?_==="name"&&this._a===0?this.toName():this.toRgbString():(_==="rgb"&&(B=this.toRgbString()),_==="prgb"&&(B=this.toPercentageRgbString()),(_==="hex"||_==="hex6")&&(B=this.toHexString()),_==="hex3"&&(B=this.toHexString(!0)),_==="hex4"&&(B=this.toHex8String(!0)),_==="hex8"&&(B=this.toHex8String()),_==="name"&&(B=this.toName()),_==="hsl"&&(B=this.toHslString()),_==="hsv"&&(B=this.toHsvString()),B||this.toHexString())},clone:function(){return n(this.toString())},_applyModification:function(_,x){var B=_.apply(null,[this].concat([].slice.call(x)));return this._r=B._r,this._g=B._g,this._b=B._b,this.setAlpha(B._a),this},lighten:function(){return this._applyModification(D,arguments)},brighten:function(){return this._applyModification(h,arguments)},darken:function(){return this._applyModification(g,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(m,arguments)},greyscale:function(){return this._applyModification(y,arguments)},spin:function(){return this._applyModification(v,arguments)},_applyCombination:function(_,x){return _.apply(null,[this].concat([].slice.call(x)))},analogous:function(){return this._applyCombination(A,arguments)},complement:function(){return this._applyCombination(w,arguments)},monochromatic:function(){return this._applyCombination(W,arguments)},splitcomplement:function(){return this._applyCombination(I,arguments)},triad:function(){return this._applyCombination(E,[3])},tetrad:function(){return this._applyCombination(E,[4])}},n.fromRatio=function(S,_){if(e(S)=="object"){var x={};for(var B in S)S.hasOwnProperty(B)&&(B==="a"?x[B]=S[B]:x[B]=ne(S[B]));S=x}return n(S,_)};function i(S){var _={r:0,g:0,b:0},x=1,B=null,K=null,H=null,Be=!1,$e=!1;return typeof S=="string"&&(S=Fe(S)),e(S)=="object"&&(ur(S.r)&&ur(S.g)&&ur(S.b)?(_=s(S.r,S.g,S.b),Be=!0,$e=String(S.r).substr(-1)==="%"?"prgb":"rgb"):ur(S.h)&&ur(S.s)&&ur(S.v)?(B=ne(S.s),K=ne(S.v),_=l(S.h,B,K),Be=!0,$e="hsv"):ur(S.h)&&ur(S.s)&&ur(S.l)&&(B=ne(S.s),H=ne(S.l),_=a(S.h,B,H),Be=!0,$e="hsl"),S.hasOwnProperty("a")&&(x=S.a)),x=k(x),{ok:Be,format:S.format||$e,r:Math.min(255,Math.max(_.r,0)),g:Math.min(255,Math.max(_.g,0)),b:Math.min(255,Math.max(_.b,0)),a:x}}function s(S,_,x){return{r:R(S,255)*255,g:R(_,255)*255,b:R(x,255)*255}}function o(S,_,x){S=R(S,255),_=R(_,255),x=R(x,255);var B=Math.max(S,_,x),K=Math.min(S,_,x),H,Be,$e=(B+K)/2;if(B==K)H=Be=0;else{var it=B-K;switch(Be=$e>.5?it/(2-B-K):it/(B+K),B){case S:H=(_-x)/it+(_<x?6:0);break;case _:H=(x-S)/it+2;break;case x:H=(S-_)/it+4;break}H/=6}return{h:H,s:Be,l:$e}}function a(S,_,x){var B,K,H;S=R(S,360),_=R(_,100),x=R(x,100);function Be(O,P,X){return X<0&&(X+=1),X>1&&(X-=1),X<1/6?O+(P-O)*6*X:X<1/2?P:X<2/3?O+(P-O)*(2/3-X)*6:O}if(_===0)B=K=H=x;else{var $e=x<.5?x*(1+_):x+_-x*_,it=2*x-$e;B=Be(it,$e,S+1/3),K=Be(it,$e,S),H=Be(it,$e,S-1/3)}return{r:B*255,g:K*255,b:H*255}}function u(S,_,x){S=R(S,255),_=R(_,255),x=R(x,255);var B=Math.max(S,_,x),K=Math.min(S,_,x),H,Be,$e=B,it=B-K;if(Be=B===0?0:it/B,B==K)H=0;else{switch(B){case S:H=(_-x)/it+(_<x?6:0);break;case _:H=(x-S)/it+2;break;case x:H=(S-_)/it+4;break}H/=6}return{h:H,s:Be,v:$e}}function l(S,_,x){S=R(S,360)*6,_=R(_,100),x=R(x,100);var B=Math.floor(S),K=S-B,H=x*(1-_),Be=x*(1-K*_),$e=x*(1-(1-K)*_),it=B%6,O=[x,Be,H,H,$e,x][it],P=[$e,x,x,Be,H,H][it],X=[H,H,$e,x,x,Be][it];return{r:O*255,g:P*255,b:X*255}}function c(S,_,x,B){var K=[re(Math.round(S).toString(16)),re(Math.round(_).toString(16)),re(Math.round(x).toString(16))];return B&&K[0].charAt(0)==K[0].charAt(1)&&K[1].charAt(0)==K[1].charAt(1)&&K[2].charAt(0)==K[2].charAt(1)?K[0].charAt(0)+K[1].charAt(0)+K[2].charAt(0):K.join("")}function f(S,_,x,B,K){var H=[re(Math.round(S).toString(16)),re(Math.round(_).toString(16)),re(Math.round(x).toString(16)),re(Ce(B))];return K&&H[0].charAt(0)==H[0].charAt(1)&&H[1].charAt(0)==H[1].charAt(1)&&H[2].charAt(0)==H[2].charAt(1)&&H[3].charAt(0)==H[3].charAt(1)?H[0].charAt(0)+H[1].charAt(0)+H[2].charAt(0)+H[3].charAt(0):H.join("")}function p(S,_,x,B){var K=[re(Ce(B)),re(Math.round(S).toString(16)),re(Math.round(_).toString(16)),re(Math.round(x).toString(16))];return K.join("")}n.equals=function(S,_){return!S||!_?!1:n(S).toRgbString()==n(_).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function d(S,_){_=_===0?0:_||10;var x=n(S).toHsl();return x.s-=_/100,x.s=q(x.s),n(x)}function m(S,_){_=_===0?0:_||10;var x=n(S).toHsl();return x.s+=_/100,x.s=q(x.s),n(x)}function y(S){return n(S).desaturate(100)}function D(S,_){_=_===0?0:_||10;var x=n(S).toHsl();return x.l+=_/100,x.l=q(x.l),n(x)}function h(S,_){_=_===0?0:_||10;var x=n(S).toRgb();return x.r=Math.max(0,Math.min(255,x.r-Math.round(255*-(_/100)))),x.g=Math.max(0,Math.min(255,x.g-Math.round(255*-(_/100)))),x.b=Math.max(0,Math.min(255,x.b-Math.round(255*-(_/100)))),n(x)}function g(S,_){_=_===0?0:_||10;var x=n(S).toHsl();return x.l-=_/100,x.l=q(x.l),n(x)}function v(S,_){var x=n(S).toHsl(),B=(x.h+_)%360;return x.h=B<0?360+B:B,n(x)}function w(S){var _=n(S).toHsl();return _.h=(_.h+180)%360,n(_)}function E(S,_){if(isNaN(_)||_<=0)throw new Error("Argument to polyad must be a positive number");for(var x=n(S).toHsl(),B=[n(S)],K=360/_,H=1;H<_;H++)B.push(n({h:(x.h+H*K)%360,s:x.s,l:x.l}));return B}function I(S){var _=n(S).toHsl(),x=_.h;return[n(S),n({h:(x+72)%360,s:_.s,l:_.l}),n({h:(x+216)%360,s:_.s,l:_.l})]}function A(S,_,x){_=_||6,x=x||30;var B=n(S).toHsl(),K=360/x,H=[n(S)];for(B.h=(B.h-(K*_>>1)+720)%360;--_;)B.h=(B.h+K)%360,H.push(n(B));return H}function W(S,_){_=_||6;for(var x=n(S).toHsv(),B=x.h,K=x.s,H=x.v,Be=[],$e=1/_;_--;)Be.push(n({h:B,s:K,v:H})),H=(H+$e)%1;return Be}n.mix=function(S,_,x){x=x===0?0:x||50;var B=n(S).toRgb(),K=n(_).toRgb(),H=x/100,Be={r:(K.r-B.r)*H+B.r,g:(K.g-B.g)*H+B.g,b:(K.b-B.b)*H+B.b,a:(K.a-B.a)*H+B.a};return n(Be)},n.readability=function(S,_){var x=n(S),B=n(_);return(Math.max(x.getLuminance(),B.getLuminance())+.05)/(Math.min(x.getLuminance(),B.getLuminance())+.05)},n.isReadable=function(S,_,x){var B=n.readability(S,_),K,H;switch(H=!1,K=tf(x),K.level+K.size){case"AAsmall":case"AAAlarge":H=B>=4.5;break;case"AAlarge":H=B>=3;break;case"AAAsmall":H=B>=7;break}return H},n.mostReadable=function(S,_,x){var B=null,K=0,H,Be,$e,it;x=x||{},Be=x.includeFallbackColors,$e=x.level,it=x.size;for(var O=0;O<_.length;O++)H=n.readability(S,_[O]),H>K&&(K=H,B=n(_[O]));return n.isReadable(S,B,{level:$e,size:it})||!Be?B:(x.includeFallbackColors=!1,n.mostReadable(S,["#fff","#000"],x))};var b=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"},T=n.hexNames=F(b);function F(S){var _={};for(var x in S)S.hasOwnProperty(x)&&(_[S[x]]=x);return _}function k(S){return S=parseFloat(S),(isNaN(S)||S<0||S>1)&&(S=1),S}function R(S,_){ee(S)&&(S="100%");var x=G(S);return S=Math.min(_,Math.max(0,parseFloat(S))),x&&(S=parseInt(S*_,10)/100),Math.abs(S-_)<1e-6?1:S%_/parseFloat(_)}function q(S){return Math.min(1,Math.max(0,S))}function M(S){return parseInt(S,16)}function ee(S){return typeof S=="string"&&S.indexOf(".")!=-1&&parseFloat(S)===1}function G(S){return typeof S=="string"&&S.indexOf("%")!=-1}function re(S){return S.length==1?"0"+S:""+S}function ne(S){return S<=1&&(S=S*100+"%"),S}function Ce(S){return Math.round(parseFloat(S)*255).toString(16)}function Ue(S){return M(S)/255}var gt=function(){var S="[-\\+]?\\d+%?",_="[-\\+]?\\d*\\.\\d+%?",x="(?:"+_+")|(?:"+S+")",B="[\\s|\\(]+("+x+")[,|\\s]+("+x+")[,|\\s]+("+x+")\\s*\\)?",K="[\\s|\\(]+("+x+")[,|\\s]+("+x+")[,|\\s]+("+x+")[,|\\s]+("+x+")\\s*\\)?";return{CSS_UNIT:new RegExp(x),rgb:new RegExp("rgb"+B),rgba:new RegExp("rgba"+K),hsl:new RegExp("hsl"+B),hsla:new RegExp("hsla"+K),hsv:new RegExp("hsv"+B),hsva:new RegExp("hsva"+K),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 ur(S){return!!gt.CSS_UNIT.exec(S)}function Fe(S){S=S.replace(t,"").replace(r,"").toLowerCase();var _=!1;if(b[S])S=b[S],_=!0;else if(S=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var x;return(x=gt.rgb.exec(S))?{r:x[1],g:x[2],b:x[3]}:(x=gt.rgba.exec(S))?{r:x[1],g:x[2],b:x[3],a:x[4]}:(x=gt.hsl.exec(S))?{h:x[1],s:x[2],l:x[3]}:(x=gt.hsla.exec(S))?{h:x[1],s:x[2],l:x[3],a:x[4]}:(x=gt.hsv.exec(S))?{h:x[1],s:x[2],v:x[3]}:(x=gt.hsva.exec(S))?{h:x[1],s:x[2],v:x[3],a:x[4]}:(x=gt.hex8.exec(S))?{r:M(x[1]),g:M(x[2]),b:M(x[3]),a:Ue(x[4]),format:_?"name":"hex8"}:(x=gt.hex6.exec(S))?{r:M(x[1]),g:M(x[2]),b:M(x[3]),format:_?"name":"hex"}:(x=gt.hex4.exec(S))?{r:M(x[1]+""+x[1]),g:M(x[2]+""+x[2]),b:M(x[3]+""+x[3]),a:Ue(x[4]+""+x[4]),format:_?"name":"hex8"}:(x=gt.hex3.exec(S))?{r:M(x[1]+""+x[1]),g:M(x[2]+""+x[2]),b:M(x[3]+""+x[3]),format:_?"name":"hex"}:!1}function tf(S){var _,x;return S=S||{level:"AA",size:"small"},_=(S.level||"AA").toUpperCase(),x=(S.size||"small").toLowerCase(),_!=="AA"&&_!=="AAA"&&(_="AA"),x!=="small"&&x!=="large"&&(x="small"),{level:_,size:x}}return n})});var b5=N((pEe,_5)=>{var kp=v5(),S5={r:256,g:256,b:256,a:1},x5={h:360,s:1,v:1,a:1};function nE(e,t,r){let n={};for(let i in e)e.hasOwnProperty(i)&&(n[i]=r===0?0:(t[i]-e[i])/r);return n}function iE(e,t,r,n){let i={};for(let s in t)t.hasOwnProperty(s)&&(i[s]=e[s]*r+t[s],i[s]=i[s]<0?i[s]+n[s]:n[s]!==1?i[s]%n[s]:i[s]);return i}function tE(e,t,r){let n=e.color.toRgb(),i=t.color.toRgb(),s=nE(n,i,r),o=[e.color];for(let a=1;a<r;a++){let u=iE(s,n,a,S5);o.push(kp(u))}return o}function w5(e,t,r,n){let i=e.color.toHsv(),s=t.color.toHsv();if(i.s===0||s.s===0)return tE(e,t,r);let o;if(typeof n=="boolean")o=n;else{let c=i.h<s.h&&s.h-i.h<180||i.h>s.h&&i.h-s.h>180;o=n==="long"&&c||n==="short"&&!c}let a=nE(i,s,r),u=[e.color],l;i.h<=s.h&&!o||i.h>=s.h&&o?l=s.h-i.h:o?l=360-s.h+i.h:l=360-i.h+s.h,a.h=Math.pow(-1,o?1:0)*Math.abs(l)/r;for(let c=1;c<r;c++){let f=iE(a,i,c,x5);u.push(kp(f))}return u}function C5(e,t){let r=e.length;if(t=parseInt(t,10),isNaN(t)||t<2)throw new Error("Invalid number of steps (< 2)");if(t<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=(t-1)*(e[s].pos-e[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!==t;)if(i<t){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 E5(e,t,r,n){if(t<0||t>1)throw new Error("Position must be between 0 and 1");let i,s;for(let u=0,l=e.length;u<l-1;u++)if(t>=e[u].pos&&t<e[u+1].pos){i=e[u],s=e[u+1];break}i||(i=s=e[e.length-1]);let o=nE(i.color[r](),s.color[r](),(s.pos-i.pos)*100),a=iE(o,i.color[r](),(t-i.pos)*100,n);return kp(a)}var rE=class e{constructor(t){if(t.length<2)throw new Error("Invalid number of stops (< 2)");let r=t[0].pos!==void 0,n=t.length,i=-1,s=!1;this.stops=t.map((o,a)=>{let u=o.pos!==void 0;if(r^u)throw new Error("Cannot mix positionned and not posionned color stops");if(u){let l=o.color!==void 0;if(!l&&(s||a===0||a===n-1))throw new Error("Cannot define two consecutive position-only stops");if(s=!l,o={color:l?kp(o.color):null,colorLess:!l,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:kp(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 t=[];return this.stops.forEach(function(r){t.push({color:r.color,pos:1-r.pos})}),new e(t.reverse())}loop(){let t=[],r=[];return this.stops.forEach(n=>{t.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 e(t.concat(r.reverse()))}rgb(t){let r=C5(this.stops,t),n=[];this.stops.forEach((i,s)=>{i.colorLess&&(i.color=tE(this.stops[s-1],this.stops[s+1],2)[1])});for(let i=0,s=this.stops.length;i<s-1;i++){let o=tE(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(t,r){let n=C5(this.stops,t),i=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=w5(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=w5(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(t,r){t=t||"linear",r=r||(t==="linear"?"to right":"ellipse at center");let n=t+"-gradient("+r;return this.stops.forEach(function(i){n+=", "+(i.colorLess?"":i.color.toRgbString()+" ")+i.pos*100+"%"}),n+=")",n}rgbAt(t){return E5(this.stops,t,"toRgb",S5)}hsvAt(t){return E5(this.stops,t,"toHsv",x5)}};_5.exports=function(e){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');e=arguments[0]}else e=Array.prototype.slice.call(arguments);return new rE(e)}});var T5=N((dEe,X0)=>{"use strict";var F5=D5(),ate=b5(),O5=/\s/g;function sE(...e){let t=ate.apply(this,e),r=(n,i)=>ute(n?n.toString():"",t,i);return r.multiline=(n,i)=>lte(n?n.toString():"",t,i),r}var A5=(e,t,r)=>t.interpolation.toLowerCase()==="hsv"?e.hsv(r,t.hsvSpin.toLowerCase()):e.rgb(r);function ute(e,t,r){let n=I5(r),i=Math.max(e.replace(O5,"").length,t.stops.length),s=A5(t,n,i),o="";for(let a of e)o+=a.match(O5)?a:F5.hex(s.shift().toHex())(a);return o}function lte(e,t,r){let n=I5(r),i=e.split(`
|
|
415
415
|
`),s=Math.max.apply(null,i.map(u=>u.length).concat([t.stops.length])),o=A5(t,n,s),a=[];for(let u of i){let l=o.slice(0),c="";for(let f of u)c+=F5.hex(l.shift().toHex())(f);a.push(c)}return a.join(`
|
|
416
|
-
`)}function I5(e){let t={interpolation:"rgb",hsvSpin:"short",...e};if(e!==void 0&&typeof e!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof e}\``);if(typeof t.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof t.interpolation}\``);if(t.interpolation.toLowerCase()==="hsv"&&typeof t.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof t.hsvSpin}\``);return t}var Mp={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"}}};X0.exports=sE;for(let e in Mp)X0.exports[e]=t=>new sE(Mp[e].colors)(t,Mp[e].options),X0.exports[e].multiline=t=>new sE(Mp[e].colors).multiline(t,Mp[e].options)});var H4=N(ue=>{function Ne(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error(typeof e=="number"?"[MobX] minified error nr: "+e+(r.length?" "+r.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}function gE(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:Hte}function l4(){Yte||Ne("Proxy not available")}function c4(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}function Cn(e){return typeof e=="function"}function Lu(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function hg(e){return e!==null&&typeof e=="object"}function Bs(e){if(!hg(e))return!1;var t=Object.getPrototypeOf(e);if(t==null)return!0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r.toString()===Kte}function f4(e){var t=e?.constructor;return!!t&&(t.name==="GeneratorFunction"||t.displayName==="GeneratorFunction")}function Gp(e,t,r){
|
|
417
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ku(){return(ku=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function m4(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(r,n){(Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,s){return i.__proto__=s,i})(r,n)}(e,t)}function xte(e){var t=function(r){if(typeof r!="object"||!r)return r;var n=r[Symbol.toPrimitive];if(n!==void 0){var i=n.call(r,"string");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}(e);return typeof t=="symbol"?t:t+""}function wi(e){return Object.assign(function(t,r){if(Yp(r))return e.t(t,r);Hp(t,r,e)},e)}function Hp(e,t,r){Ls(e,
|
|
418
|
-
'`+o.i+"' can only be used on properties with a function value.")}function h4(e,t,r,n,i){var s,o,a,u,l,c,f;i===void 0&&(i=Q.safeDescriptors);var p,d=n.value;return(s=t.u)!=null&&s.bound&&(d=d.bind((p=e.l)!=null?p:e.h)),{value:Zo((o=(a=t.u)==null?void 0:a.name)!=null?o:r.toString(),d,(u=(l=t.u)==null?void 0:l.autoAction)!=null&&u,(c=t.u)!=null&&c.bound?(f=e.l)!=null?f:e.h:void 0),configurable:!i||e.p,enumerable:!1,writable:!i}}function g4(e,t){return{i:e,u:t,o:Fte,s:Ate,t:Ite}}function Fte(e,t,r,n){var i;if(n===e.h)return this.s(e,t,r,!1)===null?0:2;if((i=this.u)!=null&&i.bound&&(!Ls(e.h,t)||!wc(e.h[t]))&&this.s(e,t,r,!1)===null)return 0;if(wc(r.value))return 1;var s=y4(e,0,0,r,!1,!1);return ts(n,t,s),2}function Ate(e,t,r,n){var i,s=y4(e,0,0,r,(i=this.u)==null?void 0:i.bound);return e.v(t,s,n)}function Ite(e,t){var r,n=t.name,i=t.addInitializer;return wc(e)||(e=Bu(e)),(r=this.u)!=null&&r.bound&&i(function(){var s=this[n].bind(this);s.isMobXFlow=!0,this[n]=s}),e}function y4(e,t,r,n,i,s){s===void 0&&(s=Q.safeDescriptors);var o,a=n.value;return wc(a)||(a=Bu(a)),i&&((a=a.bind((o=e.l)!=null?o:e.h)).isMobXFlow=!0),{value:a,configurable:!s||e.p,enumerable:!1,writable:!s}}function AE(e,t){return{i:e,u:t,o:Tte,s:Pte,t:Lte}}function Tte(e,t,r){return this.s(e,t,r,!1)===null?0:1}function Pte(e,t,r,n){return e.m(t,ku({},this.u,{get:r.get,set:r.set}),n)}function Lte(e,t){var r=this,n=t.name;return(0,t.addInitializer)(function(){var i=Nu(this)[ve],s=ku({},r.u,{get:e,context:this});s.name||(s.name="ObservableObject."+n.toString()),i.j.set(n,new vi(s))}),function(){return this[ve].O(n)}}function yg(e,t){return{i:e,u:t,o:Nte,s:Rte,t:Bte}}function Nte(e,t,r){return this.s(e,t,r,!1)===null?0:1}function Rte(e,t,r,n){var i,s;return e.g(t,r.value,(i=(s=this.u)==null?void 0:s.enhancer)!=null?i:Dc,n)}function Bte(e,t){function r(a,u){var l,c,f=Nu(a)[ve],p=new Jo(u,(l=(c=n.u)==null?void 0:c.enhancer)!=null?l:Dc,"ObservableObject."+s.toString(),!1);f.j.set(s,p),o.add(a)}var n=this,i=t.kind,s=t.name,o=new WeakSet;if(i=="accessor")return{get:function(){return o.has(this)||r(this,e.get.call(this)),this[ve].O(s)},set:function(a){return o.has(this)||r(this,a),this[ve]._(s,a)},init:function(a){return o.has(this)||r(this,a),a}}}function D4(e){return{i:"true",u:e,o:kte,s:Mte,t:jte}}function kte(e,t,r,n){var i,s,o,a;if(r.get)return zp.o(e,t,r,n);if(r.set){var u=Zo(t.toString(),r.set);return n===e.h?e.v(t,{configurable:!Q.safeDescriptors||e.p,set:u})===null?0:2:(ts(n,t,{configurable:!0,set:u}),2)}if(n!==e.h&&typeof r.value=="function")return f4(r.value)?((a=this.u)!=null&&a.autoBind?Bu.bound:Bu).o(e,t,r,n):((o=this.u)!=null&&o.autoBind?Cc.bound:Cc).o(e,t,r,n);var l,c=((i=this.u)==null?void 0:i.deep)===!1?ir.ref:ir;return typeof r.value=="function"&&(s=this.u)!=null&&s.autoBind&&(r.value=r.value.bind((l=e.l)!=null?l:e.h)),c.o(e,t,r,n)}function Mte(e,t,r,n){var i,s,o;return r.get?zp.s(e,t,r,n):r.set?e.v(t,{configurable:!Q.safeDescriptors||e.p,set:Zo(t.toString(),r.set)},n):(typeof r.value=="function"&&(i=this.u)!=null&&i.autoBind&&(r.value=r.value.bind((o=e.l)!=null?o:e.h)),(((s=this.u)==null?void 0:s.deep)===!1?ir.ref:ir).s(e,t,r,n))}function jte(){Ne("'"+this.i+"' cannot be used as a decorator")}function eg(e){return e||$4}function tg(e){return e.deep===!0?Dc:e.deep===!1?gg:(t=e.defaultDecorator)&&(r=(n=t.u)==null?void 0:n.enhancer)!=null?r:Dc;var t,r,n}function v4(e,t,r){return Yp(t)?SE.t(e,t):Lu(t)?void Hp(e,t,SE):ag(e)?e:Bs(e)?ir.object(e,t,r):Array.isArray(e)?ir.array(e,t):yc(e)?ir.map(e,t):Ps(e)?ir.set(e,t):typeof e=="object"&&e!==null?e:ir.box(e,t)}function Zo(e,t,r,n){function i(){return w4(0,r,t,n||this,arguments)}return r===void 0&&(r=!1),i.isMobxAction=!0,i.toString=function(){return t.toString()},ire&&(o4.value=e,ts(i,"name",o4)),i}function w4(e,t,r,n,i){var s=C4(0,t);try{return r.apply(n,i)}catch(o){throw s.A=o,o}finally{E4(s)}}function C4(e,t){var r=Q.trackingDerivation,n=!t||!r;Jr();var i=Q.allowStateChanges;n&&(Mu(),i=Dg(!0));var s={S:n,k:r,V:i,M:wg(!0),N:!1,R:0,T:nre++,L:cg};return cg=s.T,s}function E4(e){cg!==e.T&&Ne(30),cg=e.L,e.A!==void 0&&(Q.suppressReactionErrors=!0),vg(e.V),hc(e.M),Zr(),e.S&&Ns(e.k),Q.suppressReactionErrors=!1}function yE(e,t){var r=Dg(e);try{return t()}finally{vg(r)}}function Dg(e){var t=Q.allowStateChanges;return Q.allowStateChanges=e,t}function vg(e){Q.allowStateChanges=e}function ig(e){return e instanceof pg}function DE(e){switch(e.C){case Ze.P:return!1;case Ze.I:case Ze.K:return!0;case Ze.B:for(var t=wg(!0),r=Mu(),n=e.D,i=n.length,s=0;s<i;s++){var o=n[s];if(Ru(o)){if(Q.disableErrorBoundaries)o.get();else try{o.get()}catch{return Ns(r),hc(t),!0}if(e.C===Ze.K)return Ns(r),hc(t),!0}}return x4(e),Ns(r),hc(t),!1}}function S4(e,t,r){var n=wg(!0);x4(e),e.W=new Array(e.q===0?100:e.D.length),e.G=0,e.q=++Q.runId;var i,s=Q.trackingDerivation;if(Q.trackingDerivation=e,Q.inBatch++,Q.disableErrorBoundaries===!0)i=t.call(r);else try{i=t.call(r)}catch(o){i=new pg(o)}return Q.inBatch--,Q.trackingDerivation=s,function(o){for(var a=o.D,u=o.D=o.W,l=Ze.P,c=0,f=o.G,p=0;p<f;p++){var d=u[p];d.diffValue===0&&(d.diffValue=1,c!==p&&(u[c]=d),c++),d.C>l&&(l=d.C)}for(u.length=c,o.W=null,f=a.length;f--;){var m=a[f];m.diffValue===0&&_4(m,o),m.diffValue=0}for(;c--;){var y=u[c];y.diffValue===1&&(y.diffValue=0,Vte(y,o))}l!==Ze.P&&(o.C=l,o.H())}(e),hc(n),i}function vE(e){var t=e.D;e.D=[];for(var r=t.length;r--;)_4(t[r],e);e.C=Ze.I}function IE(e){var t=Mu();try{return e()}finally{Ns(t)}}function Mu(){var e=Q.trackingDerivation;return Q.trackingDerivation=null,e}function Ns(e){Q.trackingDerivation=e}function wg(e){var t=Q.allowStateReads;return Q.allowStateReads=e,t}function hc(e){Q.allowStateReads=e}function x4(e){if(e.C!==Ze.P){e.C=Ze.P;for(var t=e.D,r=t.length;r--;)t[r].U=Ze.P}}function Vte(e,t){e.X.add(t),e.U>t.C&&(e.U=t.C)}function _4(e,t){e.X.delete(t),e.X.size===0&&b4(e)}function b4(e){e.isPendingUnobservation===!1&&(e.isPendingUnobservation=!0,Q.pendingUnobservations.push(e))}function Jr(){Q.inBatch++}function Zr(){if(--Q.inBatch==0){A4();for(var e=Q.pendingUnobservations,t=0;t<e.length;t++){var r=e[t];r.isPendingUnobservation=!1,r.X.size===0&&(r.isBeingObserved&&(r.isBeingObserved=!1,r.onBUO()),r instanceof vi&&r.F())}Q.pendingUnobservations=[]}}function O4(e){var t=Q.trackingDerivation;return t!==null?(t.q!==e.$&&(e.$=t.q,t.W[t.G++]=e,!e.isBeingObserved&&Q.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(e.X.size===0&&Q.inBatch>0&&b4(e),!1)}function F4(e){e.U!==Ze.K&&(e.U=Ze.K,e.X.forEach(function(t){t.C===Ze.P&&t.H(),t.C=Ze.K}))}function A4(){Q.inBatch>0||Q.isRunningReactions||_E(Ute)}function Ute(){Q.isRunningReactions=!0;for(var e=Q.pendingReactions,t=0;e.length>0;){++t==100&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var r=e.splice(0),n=0,i=r.length;n<i;n++)r[n].J()}Q.isRunningReactions=!1}function Y5(){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}function I4(e){return function(t,r){return Cn(t)?Zo(t.name||"<unnamed action>",t,e):Cn(r)?Zo(t,r,e):Yp(r)?(e?OE:bE).t(t,r):Lu(r)?Hp(t,r,e?OE:bE):Lu(t)?wi(Kp(e?"autoAction":"action",{name:t,autoAction:e})):void 0}}function K5(e){return w4(0,!1,e,this,void 0)}function vc(e){return Cn(e)&&e.isMobxAction===!0}function TE(e,t){function r(){e(a)}var n,i,s,o;t===void 0&&(t=LE);var a,u=(n=(i=t)==null?void 0:i.name)!=null?n:"Autorun";if(t.scheduler||t.delay){var l=T4(t),c=!1;a=new Qi(u,function(){c||(c=!0,l(function(){c=!1,a.isDisposed||a.track(r)}))},t.onError,t.requiresObservable)}else a=new Qi(u,function(){this.track(r)},t.onError,t.requiresObservable);return(s=t)!=null&&(s=s.signal)!=null&&s.aborted||a.Y(),a.Z((o=t)==null?void 0:o.signal)}function T4(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:ure}function P4(e,t,r){return L4("onBO",e,t,r)}function PE(e,t,r){return L4("onBUO",e,t,r)}function L4(e,t,r,n){var i=typeof n=="function"?Rs(t,r):Rs(t),s=Cn(n)?n:r,o=e+"L";return i[o]?i[o].add(s):i[o]=new Set([s]),function(){var a=i[o];a&&(a.delete(s),a.size===0&&delete i[o])}}function wE(e,t,r,n){var i=Xte(t);return Qo(function(){var s=Nu(e,n)[ve];gc(i).forEach(function(o){s.s(o,i[o],!r||!(o in r)||r[o])})}),e}function N4(e){var t,r={name:e.tt};return e.D&&e.D.length>0&&(r.dependencies=(t=e.D,Array.from(new Set(t))).map(N4)),r}function R4(e){var t={name:e.tt};return function(r){return r.X&&r.X.size>0}(e)&&(t.observers=Array.from(function(r){return r.X}(e)).map(R4)),t}function og(){this.message="FLOW_CANCELLED"}function X5(e){Cn(e.cancel)&&e.cancel()}function wc(e){return e?.isMobXFlow===!0}function J5(e,t){if(t===void 0)return Ru(e);if(fr(e)===!1||!e[ve].j.has(t))return!1;var r=Rs(e,t);return Ru(r)}function B4(e,t){return!!e&&(t!==void 0?!!fr(e)&&e[ve].j.has(t):fr(e)||!!e[ve]||NE(e)||dg(e)||Ru(e))}function ag(e){return B4(e)}function Up(e){return fr(e)?e[ve].nt():pr(e)||Ht(e)?Array.from(e.keys()):Xr(e)?e.map(function(t,r){return r}):void Ne(5)}function Z5(e,t){return fr(e)?e[ve].it(t):pr(e)||Ht(e)?e.has(t):Xr(e)?t>=0&&t<e.length:void Ne(10)}function Q5(e){if(fr(e))return e[ve].rt();Ne(38)}function rg(e,t,r){return e.set(t,r),r}function Zi(e,t){t===void 0&&(t=void 0),Jr();try{return e.apply(t)}finally{Zr()}}function k4(e,t,r){var n;if(typeof r.timeout=="number"){var i=new Error("WHEN_TIMEOUT");n=setTimeout(function(){if(!o[ve].isDisposed){if(o(),!r.onError)throw i;r.onError(i)}},r.timeout)}r.name="When";var s=Zo("When-effect",t),o=TE(function(a){yE(!1,e)&&(a.dispose(),n&&clearTimeout(n),s())},r);return o}function $te(e,t){var r,n,i;if(t!=null&&(r=t.signal)!=null&&r.aborted)return Object.assign(Promise.reject(new Error("WHEN_ABORTED")),{cancel:function(){return null}});var s=new Promise(function(o,a){var u,l=k4(e,o,ku({},t,{onError:a}));n=function(){l(),a(new Error("WHEN_CANCELLED"))},i=function(){l(),a(new Error("WHEN_ABORTED"))},t==null||(u=t.signal)==null||u.addEventListener==null||u.addEventListener("abort",i)}).finally(function(){var o;return t==null||(o=t.signal)==null||o.removeEventListener==null?void 0:o.removeEventListener("abort",i)});return s.cancel=n,s}function pc(e){return e[ve]}function Zn(e){return e.et!==void 0&&e.et.length>0}function Xp(e,t){var r=e.et||(e.et=[]);return r.push(t),c4(function(){var n=r.indexOf(t);n!==-1&&r.splice(n,1)})}function Qn(e,t){var r=Mu();try{for(var n=[].concat(e.et||[]),i=0,s=n.length;i<s&&((t=n[i](t))&&!t.type&&Ne(14),t);i++);return t}finally{Ns(r)}}function Ci(e){return e.ut!==void 0&&e.ut.length>0}function Jp(e,t){var r=e.ut||(e.ut=[]);return r.push(t),c4(function(){var n=r.indexOf(t);n!==-1&&r.splice(n,1)})}function Ei(e,t){var r=Mu(),n=e.ut;if(n){for(var i=0,s=(n=n.slice()).length;i<s;i++)n[i](t);Ns(r)}}function Wte(e,t,r,n){return r===void 0&&(r="ObservableArray"),n===void 0&&(n=!1),l4(),Qo(function(){var i=new RE(r,t,n,!1);p4(i.j,ve,i);var s=new Proxy(i.j,pre);return i.l=s,e&&e.length&&i.ot(0,0,e),s})}function ot(e,t){typeof Array.prototype[e]=="function"&&(mg[e]=t(e))}function Dn(e){return function(){var t=this[ve];t.st.reportObserved();var r=t.ft(t.j);return r[e].apply(r,arguments)}}function Di(e){return function(t,r){var n=this,i=this[ve];return i.st.reportObserved(),i.ft(i.j)[e](function(s,o){return t.call(r,s,o,n)})}}function e4(e){return function(){var t=this,r=this[ve];r.st.reportObserved();var n=r.ft(r.j),i=arguments[0];return arguments[0]=function(s,o,a){return i(s,o,a,t)},n[e].apply(n,arguments)}}function Xr(e){return hg(e)&&dre(e[ve])}function Nu(e,t){var r;if(Ls(e,ve))return e;var n=(r=t?.name)!=null?r:"ObservableObject",i=new q4(e,new Map,String(n),function(s){var o;return s?(o=s.defaultDecorator)!=null?o:D4(s):void 0}(t));return Gp(e,ve,i),e}function t4(e){return a4[e]||(a4[e]={get:function(){return this[ve].O(e)},set:function(t){return this[ve]._(e,t)}})}function fr(e){return!!hg(e)&&gre(e[ve])}function r4(e,t,r){var n;(n=e.h[es])==null||delete n[r]}function M4(e){return{enumerable:!1,configurable:!0,get:function(){return this[ve].ct(e)},set:function(t){this[ve].ht(e,t)}}}function Gte(e){ts(ME.prototype,""+e,M4(e))}function j4(e){if(e>hE){for(var t=hE;t<e+100;t++)Gte(t);hE=e}}function qte(e,t,r){return new ME(e,t,r)}function Rs(e,t){if(typeof e=="object"&&e!==null){if(Xr(e))return t!==void 0&&Ne(23),e[ve].st;if(Ht(e))return e.st;if(pr(e)){if(t===void 0)return e.vt;var r=e.lt.get(t)||e.dt.get(t);return r||Ne(25,t,ug(e)),r}if(fr(e)){if(!t)return Ne(26);var n=e[ve].j.get(t);return n||Ne(27,t,ug(e)),n}if(NE(e)||Ru(e)||dg(e))return e}else if(Cn(e)&&dg(e[ve]))return e[ve];Ne(28)}function Ts(e,t){return e||Ne(29),t!==void 0?Ts(Rs(e,t)):NE(e)||Ru(e)||dg(e)||pr(e)||Ht(e)?e:e[ve]?e[ve]:void Ne(24,e)}function ug(e,t){var r;if(t!==void 0)r=Rs(e,t);else{if(vc(e))return e.name;r=fr(e)||pr(e)||Ht(e)?Ts(e):Rs(e)}return r.tt}function Qo(e){var t=Mu(),r=Dg(!0);Jr();try{return e()}finally{Zr(),vg(r),Ns(t)}}function CE(e,t,r){return r===void 0&&(r=-1),function n(i,s,o,a,u){if(i===s)return i!==0||1/i==1/s;if(i==null||s==null)return!1;if(i!=i)return s!=s;var l=typeof i;if(l!=="function"&&l!=="object"&&typeof s!="object")return!1;var c=u4.call(i);if(c!==u4.call(s))return!1;switch(c){case"[object RegExp]":case"[object String]":return""+i==""+s;case"[object Number]":return+i!=+i?+s!=+s:+i==0?1/+i==1/s:+i==+s;case"[object Date]":case"[object Boolean]":return+i==+s;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(i)===Symbol.valueOf.call(s);case"[object Map]":case"[object Set]":o>=0&&o++}i=n4(i),s=n4(s);var f=c==="[object Array]";if(!f){if(typeof i!="object"||typeof s!="object")return!1;var p=i.constructor,d=s.constructor;if(p!==d&&!(Cn(p)&&p instanceof p&&Cn(d)&&d instanceof d)&&"constructor"in i&&"constructor"in s)return!1}if(o===0)return!1;o<0&&(o=-1),u=u||[];for(var m=(a=a||[]).length;m--;)if(a[m]===i)return u[m]===s;if(a.push(i),u.push(s),f){if((m=i.length)!==s.length)return!1;for(;m--;)if(!n(i[m],s[m],o-1,a,u))return!1}else{var y,D=Object.keys(i);if(m=D.length,Object.keys(s).length!==m)return!1;for(;m--;)if(!Ls(s,y=D[m])||!n(i[y],s[y],o-1,a,u))return!1}return a.pop(),u.pop(),!0}(e,t,r)}function n4(e){return Xr(e)?e.slice():yc(e)||pr(e)||Ps(e)||Ht(e)?Array.from(e.entries()):e}function qp(e){return e[Symbol.iterator]=zte,e}function zte(){return this}Object.defineProperty(ue,"__esModule",{value:!0});var Hte={},V4=Object.assign,lg=Object.getOwnPropertyDescriptor,ts=Object.defineProperty,Zp=Object.prototype,EE=[];Object.freeze(EE);var LE={};Object.freeze(LE);var Yte=typeof Proxy<"u",Kte=Object.toString(),mc=function(){},U4=Object.getOwnPropertySymbols!==void 0,gc=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:U4?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Xte=Object.getOwnPropertyDescriptors||function(e){var t={};return gc(e).forEach(function(r){t[r]=lg(e,r)}),t},es=Symbol("mobx-stored-annotations"),ve=Symbol("mobx administration"),Xo=function(){function e(r){r===void 0&&(r="Atom"),this.tt=void 0,this.bt=0,this.X=new Set,this.$=0,this.U=Ze.I,this.onBOL=void 0,this.onBUOL=void 0,this.tt=r}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(r){return r()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(r){return r()})},t.reportObserved=function(){return O4(this)},t.reportChanged=function(){Jr(),F4(this),Zr()},t.toString=function(){return this.tt},Ec(e,[{key:"isBeingObserved",get:function(){return vn(this.bt,e.pt)},set:function(r){this.bt=wn(this.bt,e.pt,r)}},{key:"isPendingUnobservation",get:function(){return vn(this.bt,e.yt)},set:function(r){this.bt=wn(this.bt,e.yt,r)}},{key:"diffValue",get:function(){return vn(this.bt,e.wt)?1:0},set:function(r){this.bt=wn(this.bt,e.wt,r===1)}}])}();Xo.pt=1,Xo.yt=2,Xo.wt=4;var NE=ea("Atom",Xo),Pu={identity:function(e,t){return e===t},structural:function(e,t){return CE(e,t)},default:function(e,t){return Object.is?Object.is(e,t):e===t?e!==0||1/e==1/t:e!=e&&t!=t},shallow:function(e,t){return CE(e,t,1)}},Jte=wi({i:"override",o:function(){return 0},s:function(){Ne("'"+this.i+"' can only be used with 'makeObservable'")},t:function(){console.warn("'"+this.i+"' cannot be used with decorators - this is a no-op")}}),Zte=D4(),$4={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze($4);var SE=yg("observable"),Qte=yg("observable.ref",{enhancer:gg}),ere=yg("observable.shallow",{enhancer:function(e,t,r){return e==null||fr(e)||Xr(e)||pr(e)||Ht(e)?e:Array.isArray(e)?ir.array(e,{name:r,deep:!1}):Bs(e)?ir.object(e,void 0,{name:r,deep:!1}):yc(e)?ir.map(e,{name:r,deep:!1}):Ps(e)?ir.set(e,{name:r,deep:!1}):void 0}}),tre=yg("observable.struct",{enhancer:function(e,t){return CE(e,t)?t:e}}),W4=wi(SE);V4(v4,W4);var i4,s4,ir=V4(v4,{box:function(e,t){var r=eg(t);return new Jo(e,tg(r),r.name,!0,r.equals)},array:function(e,t){var r=eg(t);return(Q.useProxies===!1||r.proxy===!1?qte:Wte)(e,tg(r),r.name)},map:function(e,t){var r=eg(t);return new BE(e,tg(r),r.name)},set:function(e,t){var r=eg(t);return new kE(e,tg(r),r.name)},object:function(e,t,r){return Qo(function(){return wE(Q.useProxies===!1||r?.proxy===!1?Nu({},r):function(n,i){var s,o;return l4(),(o=(s=(n=Nu(n,i))[ve]).l)!=null?o:s.l=new Proxy(n,fre)}({},r),e,t)})},ref:wi(Qte),shallow:wi(ere),deep:W4,struct:wi(tre)}),xE=AE("computed"),rre=AE("computed.struct",{equals:Pu.structural}),zp=function(e,t){if(Yp(t))return xE.t(e,t);if(Lu(t))return Hp(e,t,xE);if(Bs(e))return wi(AE("computed",e));var r=Bs(t)?t:{};return r.get=e,r.name||(r.name=e.name||""),new vi(r)};Object.assign(zp,xE),zp.struct=wi(rre);var cg=0,nre=1,ire=(i4=(s4=lg(function(){},"name"))==null?void 0:s4.configurable)!=null&&i4,o4={value:"action",configurable:!0,writable:!1,enumerable:!1},Jo=function(e){function t(n,i,s,o,a){var u;return s===void 0&&(s="ObservableValue"),a===void 0&&(a=Pu.default),(u=e.call(this,s)||this).enhancer=void 0,u.tt=void 0,u.equals=void 0,u.jt=!1,u.et=void 0,u.ut=void 0,u.Ot=void 0,u.dehancer=void 0,u.enhancer=i,u.tt=s,u.equals=a,u.Ot=i(n,void 0,s),u}m4(t,e);var r=t.prototype;return r.dehanceValue=function(n){return this.dehancer!==void 0?this.dehancer(n):n},r.set=function(n){(n=this.xt(n))!==Q.UNCHANGED&&this.gt(n)},r.xt=function(n){if(Zn(this)){var i=Qn(this,{object:this,type:rs,newValue:n});if(!i)return Q.UNCHANGED;n=i.newValue}return n=this.enhancer(n,this.Ot,this.tt),this.equals(this.Ot,n)?Q.UNCHANGED:n},r.gt=function(n){var i=this.Ot;this.Ot=n,this.reportChanged(),Ci(this)&&Ei(this,{type:rs,object:this,newValue:n,oldValue:i})},r.get=function(){return this.reportObserved(),this.dehanceValue(this.Ot)},r._t=function(n){return Xp(this,n)},r.At=function(n,i){return i&&n({observableKind:"value",debugObjectName:this.tt,object:this,type:rs,newValue:this.Ot,oldValue:void 0}),Jp(this,n)},r.raw=function(){return this.Ot},r.toJSON=function(){return this.get()},r.toString=function(){return this.tt+"["+this.Ot+"]"},r.valueOf=function(){return d4(this.get())},r[Symbol.toPrimitive]=function(){return this.valueOf()},t}(Xo),pE=ea("ObservableValue",Jo),vi=function(){function e(r){this.C=Ze.I,this.D=[],this.W=null,this.X=new Set,this.q=0,this.$=0,this.U=Ze.P,this.G=0,this.Ot=new pg(null),this.tt=void 0,this.St=void 0,this.bt=0,this.derivation=void 0,this.kt=void 0,this.Vt=fg.NONE,this.Mt=void 0,this.Et=void 0,this.Nt=void 0,this.Rt=void 0,this.onBOL=void 0,this.onBUOL=void 0,r.get||Ne(31),this.derivation=r.get,this.tt=r.name||"ComputedValue",r.set&&(this.kt=Zo("ComputedValue-setter",r.set)),this.Et=r.equals||(r.compareStructural||r.struct?Pu.structural:Pu.default),this.Mt=r.context,this.Nt=r.requiresReaction,this.Rt=!!r.keepAlive}var t=e.prototype;return t.H=function(){(function(r){r.U===Ze.P&&(r.U=Ze.B,r.X.forEach(function(n){n.C===Ze.P&&(n.C=Ze.B,n.H())}))})(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(r){return r()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(r){return r()})},t.get=function(){if(this.isComputing&&Ne(32,this.tt,this.derivation),Q.inBatch!==0||this.X.size!==0||this.Rt){if(O4(this),DE(this)){var r=Q.trackingContext;this.Rt&&!r&&(Q.trackingContext=this),this.trackAndCompute()&&function(i){i.U!==Ze.K&&(i.U=Ze.K,i.X.forEach(function(s){s.C===Ze.B?s.C=Ze.K:s.C===Ze.P&&(i.U=Ze.P)}))}(this),Q.trackingContext=r}}else DE(this)&&(this.Tt(),Jr(),this.Ot=this.Lt(!1),Zr());var n=this.Ot;if(ig(n))throw n.cause;return n},t.set=function(r){if(this.kt){this.isRunningSetter&&Ne(33,this.tt),this.isRunningSetter=!0;try{this.kt.call(this.Mt,r)}finally{this.isRunningSetter=!1}}else Ne(34,this.tt)},t.trackAndCompute=function(){var r=this.Ot,n=this.C===Ze.I,i=this.Lt(!0),s=n||ig(r)||ig(i)||!this.Et(r,i);return s&&(this.Ot=i),s},t.Lt=function(r){this.isComputing=!0;var n,i=Dg(!1);if(r)n=S4(this,this.derivation,this.Mt);else if(Q.disableErrorBoundaries===!0)n=this.derivation.call(this.Mt);else try{n=this.derivation.call(this.Mt)}catch(s){n=new pg(s)}return vg(i),this.isComputing=!1,n},t.F=function(){this.Rt||(vE(this),this.Ot=void 0)},t.At=function(r,n){var i=this,s=!0,o=void 0;return TE(function(){var a=i.get();if(!s||n){var u=Mu();r({observableKind:"computed",debugObjectName:i.tt,type:rs,object:i,newValue:a,oldValue:o}),Ns(u)}s=!1,o=a})},t.Tt=function(){},t.toString=function(){return this.tt+"["+this.derivation.toString()+"]"},t.valueOf=function(){return d4(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},Ec(e,[{key:"isComputing",get:function(){return vn(this.bt,e.Ct)},set:function(r){this.bt=wn(this.bt,e.Ct,r)}},{key:"isRunningSetter",get:function(){return vn(this.bt,e.Pt)},set:function(r){this.bt=wn(this.bt,e.Pt,r)}},{key:"isBeingObserved",get:function(){return vn(this.bt,e.pt)},set:function(r){this.bt=wn(this.bt,e.pt,r)}},{key:"isPendingUnobservation",get:function(){return vn(this.bt,e.yt)},set:function(r){this.bt=wn(this.bt,e.yt,r)}},{key:"diffValue",get:function(){return vn(this.bt,e.wt)?1:0},set:function(r){this.bt=wn(this.bt,e.wt,r===1)}}])}();vi.Ct=1,vi.Pt=2,vi.pt=4,vi.yt=8,vi.wt=16;var Ze,fg,Ru=ea("ComputedValue",vi);(function(e){e[e.I=-1]="NOT_TRACKING_",e[e.P=0]="UP_TO_DATE_",e[e.B=1]="POSSIBLY_STALE_",e[e.K=2]="STALE_"})(Ze||(Ze={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(fg||(fg={}));var pg=function(e){this.cause=void 0,this.cause=e},sre=["mobxGuid","spyListeners","enforceActions","computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","allowStateReads","disableErrorBoundaries","runId","UNCHANGED","useProxies"],Wp=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},sg=!0,G4=!1,Q=function(){var e=gE();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(sg=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new Wp().version&&(sg=!1),sg?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Wp):(setTimeout(function(){G4||Ne(35)},1),new Wp)}(),Qi=function(){function e(r,n,i,s){r===void 0&&(r="Reaction"),this.tt=void 0,this.It=void 0,this.Kt=void 0,this.Bt=void 0,this.D=[],this.W=[],this.C=Ze.I,this.q=0,this.G=0,this.bt=0,this.Vt=fg.NONE,this.tt=r,this.It=n,this.Kt=i,this.Bt=s}var t=e.prototype;return t.H=function(){this.Y()},t.Y=function(){this.isScheduled||(this.isScheduled=!0,Q.pendingReactions.push(this),A4())},t.J=function(){if(!this.isDisposed){Jr(),this.isScheduled=!1;var r=Q.trackingContext;if(Q.trackingContext=this,DE(this)){this.isTrackPending=!0;try{this.It()}catch(n){this.Dt(n)}}Q.trackingContext=r,Zr()}},t.track=function(r){if(!this.isDisposed){Jr(),this.isRunning=!0;var n=Q.trackingContext;Q.trackingContext=this;var i=S4(this,r,void 0);Q.trackingContext=n,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&vE(this),ig(i)&&this.Dt(i.cause),Zr()}},t.Dt=function(r){var n=this;if(this.Kt)this.Kt(r,this);else{if(Q.disableErrorBoundaries)throw r;Q.suppressReactionErrors||console.error("[mobx] uncaught error in '"+this+"'",r),Q.globalReactionErrorHandlers.forEach(function(i){return i(r,n)})}},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(Jr(),vE(this),Zr()))},t.Z=function(r){var n=this,i=function s(){n.dispose(),r==null||r.removeEventListener==null||r.removeEventListener("abort",s)};return r==null||r.addEventListener==null||r.addEventListener("abort",i),i[ve]=this,i},t.toString=function(){return"Reaction["+this.tt+"]"},t.trace=function(){},Ec(e,[{key:"isDisposed",get:function(){return vn(this.bt,e.Wt)},set:function(r){this.bt=wn(this.bt,e.Wt,r)}},{key:"isScheduled",get:function(){return vn(this.bt,e.qt)},set:function(r){this.bt=wn(this.bt,e.qt,r)}},{key:"isTrackPending",get:function(){return vn(this.bt,e.Gt)},set:function(r){this.bt=wn(this.bt,e.Gt,r)}},{key:"isRunning",get:function(){return vn(this.bt,e.Ht)},set:function(r){this.bt=wn(this.bt,e.Ht,r)}},{key:"diffValue",get:function(){return vn(this.bt,e.wt)?1:0},set:function(r){this.bt=wn(this.bt,e.wt,r===1)}}])}();Qi.Wt=1,Qi.qt=2,Qi.Gt=4,Qi.Ht=8,Qi.wt=16;var _E=function(e){return e()},dg=ea("Reaction",Qi),bE=Kp("action"),ore=Kp("action.bound",{bound:!0}),OE=Kp("autoAction",{autoAction:!0}),are=Kp("autoAction.bound",{autoAction:!0,bound:!0}),Yo=I4(!1);Object.assign(Yo,bE);var Cc=I4(!0);Object.assign(Cc,OE),Yo.bound=wi(ore),Cc.bound=wi(are);var ure=function(e){return e()},lre=0;og.prototype=Object.create(Error.prototype);var dE=g4("flow"),cre=g4("flow.bound",{bound:!0}),Bu=Object.assign(function(e,t){if(Yp(t))return dE.t(e,t);if(Lu(t))return Hp(e,t,dE);var r=e,n=r.name||"<unnamed flow>",i=function(){var s,o=this,a=arguments,u=++lre,l=Yo(n+" - runid: "+u+" - init",r).apply(o,a),c=void 0,f=new Promise(function(p,d){function m(g){var v;c=void 0;try{v=Yo(n+" - runid: "+u+" - yield "+h++,l.next).call(l,g)}catch(w){return d(w)}D(v)}function y(g){var v;c=void 0;try{v=Yo(n+" - runid: "+u+" - yield "+h++,l.throw).call(l,g)}catch(w){return d(w)}D(v)}function D(g){if(!Cn(g?.then))return g.done?p(g.value):(c=Promise.resolve(g.value)).then(m,y);g.then(D,d)}var h=0;s=d,m(void 0)});return f.cancel=Yo(n+" - runid: "+u+" - cancel",function(){try{c&&X5(c);var p=l.return(void 0),d=Promise.resolve(p.value);d.then(mc,mc),X5(d),s(new og)}catch(m){s(m)}}),f};return i.isMobXFlow=!0,i},dE);Bu.bound=wi(cre);var fre={has:function(e,t){return pc(e).it(t)},get:function(e,t){return pc(e).ct(t)},set:function(e,t,r){var n;return!!Lu(t)&&((n=pc(e).ht(t,r,!0))==null||n)},deleteProperty:function(e,t){var r;return!!Lu(t)&&((r=pc(e).Ut(t,!0))==null||r)},defineProperty:function(e,t,r){var n;return(n=pc(e).v(t,r))==null||n},ownKeys:function(e){return pc(e).rt()},preventExtensions:function(){Ne(13)}},mE=Symbol("mobx-keys"),rs="update",pre={get:function(e,t){var r=e[ve];return t===ve?r:t==="length"?r.Xt():typeof t!="string"||isNaN(t)?Ls(mg,t)?mg[t]:e[t]:r.ct(parseInt(t))},set:function(e,t,r){var n=e[ve];return t==="length"&&n.Ft(r),typeof t=="symbol"||isNaN(t)?e[t]=r:n.ht(parseInt(t),r),!0},preventExtensions:function(){Ne(15)}},RE=function(){function e(r,n,i,s){r===void 0&&(r="ObservableArray"),this.zt=void 0,this.$t=void 0,this.st=void 0,this.j=[],this.et=void 0,this.ut=void 0,this.Jt=void 0,this.dehancer=void 0,this.l=void 0,this.Yt=0,this.zt=i,this.$t=s,this.st=new Xo(r),this.Jt=function(o,a){return n(o,a,"ObservableArray[..]")}}var t=e.prototype;return t.Qt=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.ft=function(r){return this.dehancer!==void 0&&r.length>0?r.map(this.dehancer):r},t._t=function(r){return Xp(this,r)},t.At=function(r,n){return n===void 0&&(n=!1),n&&r({observableKind:"array",object:this.l,debugObjectName:this.st.tt,type:"splice",index:0,added:this.j.slice(),addedCount:this.j.length,removed:[],removedCount:0}),Jp(this,r)},t.Xt=function(){return this.st.reportObserved(),this.j.length},t.Ft=function(r){(typeof r!="number"||isNaN(r)||r<0)&&Ne("Out of range: "+r);var n=this.j.length;if(r!==n)if(r>n){for(var i=new Array(r-n),s=0;s<r-n;s++)i[s]=void 0;this.ot(n,0,i)}else this.ot(r,n-r)},t.Zt=function(r,n){r!==this.Yt&&Ne(16),this.Yt+=n,this.$t&&n>0&&j4(r+n+1)},t.ot=function(r,n,i){var s=this,o=this.j.length;if(r===void 0?r=0:r>o?r=o:r<0&&(r=Math.max(0,o+r)),n=arguments.length===1?o-r:n==null?0:Math.max(0,Math.min(n,o-r)),i===void 0&&(i=EE),Zn(this)){var a=Qn(this,{object:this.l,type:"splice",index:r,removedCount:n,added:i});if(!a)return EE;n=a.removedCount,i=a.added}if(i=i.length===0?i:i.map(function(c){return s.Jt(c,void 0)}),this.$t){var u=i.length-n;this.Zt(o,u)}var l=this.tn(r,n,i);return n===0&&i.length===0||this.nn(r,i,l),this.ft(l)},t.tn=function(r,n,i){var s;if(i.length<1e4)return(s=this.j).splice.apply(s,[r,n].concat(i));var o=this.j.slice(r,r+n),a=this.j.slice(r+n);this.j.length+=i.length-n;for(var u=0;u<i.length;u++)this.j[r+u]=i[u];for(var l=0;l<a.length;l++)this.j[r+i.length+l]=a[l];return o},t.in=function(r,n,i){var s=!this.zt&&!1,o=Ci(this),a=o||s?{observableKind:"array",object:this.l,type:rs,debugObjectName:this.st.tt,index:r,newValue:n,oldValue:i}:null;this.st.reportChanged(),o&&Ei(this,a)},t.nn=function(r,n,i){var s=!this.zt&&!1,o=Ci(this),a=o||s?{observableKind:"array",object:this.l,debugObjectName:this.st.tt,type:"splice",index:r,removed:i,added:n,removedCount:i.length,addedCount:n.length}:null;this.st.reportChanged(),o&&Ei(this,a)},t.ct=function(r){if(!(this.$t&&r>=this.j.length))return this.st.reportObserved(),this.Qt(this.j[r]);console.warn("[mobx] Out of bounds read: "+r)},t.ht=function(r,n){var i=this.j;if(this.$t&&r>i.length&&Ne(17,r,i.length),r<i.length){var s=i[r];if(Zn(this)){var o=Qn(this,{type:rs,object:this.l,index:r,newValue:n});if(!o)return;n=o.newValue}(n=this.Jt(n,s))!==s&&(i[r]=n,this.in(r,n,s))}else{for(var a=new Array(r+1-i.length),u=0;u<a.length-1;u++)a[u]=void 0;a[a.length-1]=n,this.ot(i.length,0,a)}},e}(),mg={clear:function(){return this.splice(0)},replace:function(e){var t=this[ve];return t.ot(0,t.j.length,e)},toJSON:function(){return this.slice()},splice:function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];var s=this[ve];switch(arguments.length){case 0:return[];case 1:return s.ot(e);case 2:return s.ot(e,t)}return s.ot(e,t,n)},spliceWithArray:function(e,t,r){return this[ve].ot(e,t,r)},push:function(){for(var e=this[ve],t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.ot(e.j.length,0,r),e.j.length},pop:function(){return this.splice(Math.max(this[ve].j.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[ve],t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.ot(0,0,r),e.j.length},reverse:function(){return Q.trackingDerivation&&Ne(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){Q.trackingDerivation&&Ne(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[ve],r=t.ft(t.j).indexOf(e);return r>-1&&(this.splice(r,1),!0)}};ot("at",Dn),ot("concat",Dn),ot("flat",Dn),ot("includes",Dn),ot("indexOf",Dn),ot("join",Dn),ot("lastIndexOf",Dn),ot("slice",Dn),ot("toString",Dn),ot("toLocaleString",Dn),ot("toSorted",Dn),ot("toSpliced",Dn),ot("with",Dn),ot("every",Di),ot("filter",Di),ot("find",Di),ot("findIndex",Di),ot("findLast",Di),ot("findLastIndex",Di),ot("flatMap",Di),ot("forEach",Di),ot("map",Di),ot("some",Di),ot("toReversed",Di),ot("reduce",e4),ot("reduceRight",e4);var $p,ng,dre=ea("ObservableArrayAdministration",RE),mre={},Ko="add",BE=function(){function e(r,n,i){var s=this;n===void 0&&(n=Dc),i===void 0&&(i="ObservableMap"),this.Jt=void 0,this.tt=void 0,this[ve]=mre,this.lt=void 0,this.dt=void 0,this.vt=void 0,this.et=void 0,this.ut=void 0,this.dehancer=void 0,this.Jt=n,this.tt=i,Cn(Map)||Ne(18),Qo(function(){s.vt=FE("ObservableMap.keys()"),s.lt=new Map,s.dt=new Map,r&&s.merge(r)})}var t=e.prototype;return t.it=function(r){return this.lt.has(r)},t.has=function(r){var n=this;if(!Q.trackingDerivation)return this.it(r);var i=this.dt.get(r);if(!i){var s=i=new Jo(this.it(r),gg,"ObservableMap.key?",!1);this.dt.set(r,s),PE(s,function(){return n.dt.delete(r)})}return i.get()},t.set=function(r,n){var i=this.it(r);if(Zn(this)){var s=Qn(this,{type:i?rs:Ko,object:this,newValue:n,name:r});if(!s)return this;n=s.newValue}return i?this.rn(r,n):this.en(r,n),this},t.delete=function(r){var n=this;if(Zn(this)&&!Qn(this,{type:"delete",object:this,name:r}))return!1;if(this.it(r)){var i=Ci(this),s=i?{observableKind:"map",debugObjectName:this.tt,type:"delete",object:this,oldValue:this.lt.get(r).Ot,name:r}:null;return Zi(function(){var o;n.vt.reportChanged(),(o=n.dt.get(r))==null||o.gt(!1),n.lt.get(r).gt(void 0),n.lt.delete(r)}),i&&Ei(this,s),!0}return!1},t.rn=function(r,n){var i=this.lt.get(r);if((n=i.xt(n))!==Q.UNCHANGED){var s=Ci(this),o=s?{observableKind:"map",debugObjectName:this.tt,type:rs,object:this,oldValue:i.Ot,name:r,newValue:n}:null;i.gt(n),s&&Ei(this,o)}},t.en=function(r,n){var i=this;Zi(function(){var o,a=new Jo(n,i.Jt,"ObservableMap.key",!1);i.lt.set(r,a),n=a.Ot,(o=i.dt.get(r))==null||o.gt(!0),i.vt.reportChanged()});var s=Ci(this);s&&Ei(this,s?{observableKind:"map",debugObjectName:this.tt,type:Ko,object:this,name:r,newValue:n}:null)},t.get=function(r){return this.has(r)?this.Qt(this.lt.get(r).get()):this.Qt(void 0)},t.Qt=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.keys=function(){return this.vt.reportObserved(),this.lt.keys()},t.values=function(){var r=this,n=this.keys();return qp({next:function(){var i=n.next(),s=i.done;return{done:s,value:s?void 0:r.get(i.value)}}})},t.entries=function(){var r=this,n=this.keys();return qp({next:function(){var i=n.next(),s=i.done,o=i.value;return{done:s,value:s?void 0:[o,r.get(o)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(r,n){for(var i,s=dc(this);!(i=s()).done;){var o=i.value;r.call(n,o[1],o[0],this)}},t.merge=function(r){var n=this;return pr(r)&&(r=new Map(r)),Zi(function(){var i,s;Bs(r)?function(o){var a=Object.keys(o);if(!U4)return a;var u=Object.getOwnPropertySymbols(o);return u.length?[].concat(a,u.filter(function(l){return Zp.propertyIsEnumerable.call(o,l)})):a}(r).forEach(function(o){return n.set(o,r[o])}):Array.isArray(r)?r.forEach(function(o){return n.set(o[0],o[1])}):yc(r)?(i=Object.getPrototypeOf(r),s=Object.getPrototypeOf(i),Object.getPrototypeOf(s)!==null&&Ne(19,r),r.forEach(function(o,a){return n.set(a,o)})):r!=null&&Ne(20,r)}),this},t.clear=function(){var r=this;Zi(function(){IE(function(){for(var n,i=dc(r.keys());!(n=i()).done;)r.delete(n.value)})})},t.replace=function(r){var n=this;return Zi(function(){for(var i,s=function(I){if(yc(I)||pr(I))return I;if(Array.isArray(I))return new Map(I);if(Bs(I)){var A=new Map;for(var W in I)A.set(W,I[W]);return A}return Ne(21,I)}(r),o=new Map,a=!1,u=dc(n.lt.keys());!(i=u()).done;){var l=i.value;if(!s.has(l))if(n.delete(l))a=!0;else{var c=n.lt.get(l);o.set(l,c)}}for(var f,p=dc(s.entries());!(f=p()).done;){var d=f.value,m=d[0],y=d[1],D=n.lt.has(m);if(n.set(m,y),n.lt.has(m)){var h=n.lt.get(m);o.set(m,h),D||(a=!0)}}if(!a)if(n.lt.size!==o.size)n.vt.reportChanged();else for(var g=n.lt.keys(),v=o.keys(),w=g.next(),E=v.next();!w.done;){if(w.value!==E.value){n.vt.reportChanged();break}w=g.next(),E=v.next()}n.lt=o}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.At=function(r){return Jp(this,r)},t._t=function(r){return Xp(this,r)},Ec(e,[{key:"size",get:function(){return this.vt.reportObserved(),this.lt.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),pr=ea("ObservableMap",BE),hre={},kE=function(){function e(r,n,i){var s=this;n===void 0&&(n=Dc),i===void 0&&(i="ObservableSet"),this.tt=void 0,this[ve]=hre,this.lt=new Set,this.st=void 0,this.ut=void 0,this.et=void 0,this.dehancer=void 0,this.Jt=void 0,this.tt=i,Cn(Set)||Ne(22),this.Jt=function(o,a){return n(o,a,i)},Qo(function(){s.st=FE(s.tt),r&&s.replace(r)})}var t=e.prototype;return t.Qt=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.clear=function(){var r=this;Zi(function(){IE(function(){for(var n,i=dc(r.lt.values());!(n=i()).done;)r.delete(n.value)})})},t.forEach=function(r,n){for(var i,s=dc(this);!(i=s()).done;){var o=i.value;r.call(n,o,o,this)}},t.add=function(r){var n=this;if(Zn(this)&&!Qn(this,{type:Ko,object:this,newValue:r}))return this;if(!this.has(r)){Zi(function(){n.lt.add(n.Jt(r,void 0)),n.st.reportChanged()});var i=Ci(this);i&&Ei(this,i?{observableKind:"set",debugObjectName:this.tt,type:Ko,object:this,newValue:r}:null)}return this},t.delete=function(r){var n=this;if(Zn(this)&&!Qn(this,{type:"delete",object:this,oldValue:r}))return!1;if(this.has(r)){var i=Ci(this),s=i?{observableKind:"set",debugObjectName:this.tt,type:"delete",object:this,oldValue:r}:null;return Zi(function(){n.st.reportChanged(),n.lt.delete(r)}),i&&Ei(this,s),!0}return!1},t.has=function(r){return this.st.reportObserved(),this.lt.has(this.Qt(r))},t.entries=function(){var r=0,n=Array.from(this.keys()),i=Array.from(this.values());return qp({next:function(){var s=r;return r+=1,s<i.length?{value:[n[s],i[s]],done:!1}:{done:!0}}})},t.keys=function(){return this.values()},t.values=function(){this.st.reportObserved();var r=this,n=0,i=Array.from(this.lt.values());return qp({next:function(){return n<i.length?{value:r.Qt(i[n++]),done:!1}:{done:!0}}})},t.intersection=function(r){return Ps(r)&&!Ht(r)?r.intersection(this):new Set(this).intersection(r)},t.union=function(r){return Ps(r)&&!Ht(r)?r.union(this):new Set(this).union(r)},t.difference=function(r){return new Set(this).difference(r)},t.symmetricDifference=function(r){return Ps(r)&&!Ht(r)?r.symmetricDifference(this):new Set(this).symmetricDifference(r)},t.isSubsetOf=function(r){return new Set(this).isSubsetOf(r)},t.isSupersetOf=function(r){return new Set(this).isSupersetOf(r)},t.isDisjointFrom=function(r){return Ps(r)&&!Ht(r)?r.isDisjointFrom(this):new Set(this).isDisjointFrom(r)},t.replace=function(r){var n=this;return Ht(r)&&(r=new Set(r)),Zi(function(){Array.isArray(r)||Ps(r)?(n.clear(),r.forEach(function(i){return n.add(i)})):r!=null&&Ne("Cannot initialize set from "+r)}),this},t.At=function(r){return Jp(this,r)},t._t=function(r){return Xp(this,r)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},Ec(e,[{key:"size",get:function(){return this.st.reportObserved(),this.lt.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),Ht=ea("ObservableSet",kE),a4=Object.create(null),q4=function(){function e(r,n,i,s){n===void 0&&(n=new Map),s===void 0&&(s=Zte),this.h=void 0,this.j=void 0,this.tt=void 0,this.un=void 0,this.vt=void 0,this.ut=void 0,this.et=void 0,this.l=void 0,this.p=void 0,this.on=void 0,this.sn=void 0,this.h=r,this.j=n,this.tt=i,this.un=s,this.vt=new Xo("ObservableObject.keys"),this.p=Bs(this.h)}var t=e.prototype;return t.O=function(r){return this.j.get(r).get()},t._=function(r,n){var i=this.j.get(r);if(i instanceof vi)return i.set(n),!0;if(Zn(this)){var s=Qn(this,{type:rs,object:this.l||this.h,name:r,newValue:n});if(!s)return null;n=s.newValue}if((n=i.xt(n))!==Q.UNCHANGED){var o=Ci(this),a=o?{type:rs,observableKind:"object",debugObjectName:this.tt,object:this.l||this.h,oldValue:i.Ot,name:r,newValue:n}:null;i.gt(n),o&&Ei(this,a)}return!0},t.ct=function(r){return Q.trackingDerivation&&!Ls(this.h,r)&&this.it(r),this.h[r]},t.ht=function(r,n,i){return i===void 0&&(i=!1),Ls(this.h,r)?this.j.has(r)?this._(r,n):i?Reflect.set(this.h,r,n):(this.h[r]=n,!0):this.s(r,{value:n,enumerable:!0,writable:!0,configurable:!0},this.un,i)},t.it=function(r){if(!Q.trackingDerivation)return r in this.h;this.sn||(this.sn=new Map);var n=this.sn.get(r);return n||(n=new Jo(r in this.h,gg,"ObservableObject.key?",!1),this.sn.set(r,n)),n.get()},t.o=function(r,n){if(n===!0&&(n=this.un),n!==!1){if(!(r in this.h)){var i;if((i=this.h[es])!=null&&i[r])return;Ne(1,n.i,this.tt+"."+r.toString())}for(var s=this.h;s&&s!==Zp;){var o=lg(s,r);if(o){var a=n.o(this,r,o,s);if(a===0)return;if(a===1)break}s=Object.getPrototypeOf(s)}r4(this,0,r)}},t.s=function(r,n,i,s){if(s===void 0&&(s=!1),i===!0&&(i=this.un),i===!1)return this.v(r,n,s);var o=i.s(this,r,n,s);return o&&r4(this,0,r),o},t.v=function(r,n,i){i===void 0&&(i=!1);try{Jr();var s=this.Ut(r);if(!s)return s;if(Zn(this)){var o=Qn(this,{object:this.l||this.h,name:r,type:Ko,newValue:n.value});if(!o)return null;var a=o.newValue;n.value!==a&&(n=ku({},n,{value:a}))}if(i){if(!Reflect.defineProperty(this.h,r,n))return!1}else ts(this.h,r,n);this.fn(r,n.value)}finally{Zr()}return!0},t.g=function(r,n,i,s){s===void 0&&(s=!1);try{Jr();var o=this.Ut(r);if(!o)return o;if(Zn(this)){var a=Qn(this,{object:this.l||this.h,name:r,type:Ko,newValue:n});if(!a)return null;n=a.newValue}var u=t4(r),l={configurable:!Q.safeDescriptors||this.p,enumerable:!0,get:u.get,set:u.set};if(s){if(!Reflect.defineProperty(this.h,r,l))return!1}else ts(this.h,r,l);var c=new Jo(n,i,"ObservableObject.key",!1);this.j.set(r,c),this.fn(r,c.Ot)}finally{Zr()}return!0},t.m=function(r,n,i){i===void 0&&(i=!1);try{Jr();var s=this.Ut(r);if(!s)return s;if(Zn(this)&&!Qn(this,{object:this.l||this.h,name:r,type:Ko,newValue:void 0}))return null;n.name||(n.name="ObservableObject.key"),n.context=this.l||this.h;var o=t4(r),a={configurable:!Q.safeDescriptors||this.p,enumerable:!1,get:o.get,set:o.set};if(i){if(!Reflect.defineProperty(this.h,r,a))return!1}else ts(this.h,r,a);this.j.set(r,new vi(n)),this.fn(r,void 0)}finally{Zr()}return!0},t.Ut=function(r,n){if(n===void 0&&(n=!1),!Ls(this.h,r))return!0;if(Zn(this)&&!Qn(this,{object:this.l||this.h,name:r,type:"remove"}))return null;try{var i;Jr();var s,o=Ci(this),a=this.j.get(r),u=void 0;if(!a&&o&&(u=(s=lg(this.h,r))==null?void 0:s.value),n){if(!Reflect.deleteProperty(this.h,r))return!1}else delete this.h[r];a&&(this.j.delete(r),a instanceof Jo&&(u=a.Ot),F4(a)),this.vt.reportChanged(),(i=this.sn)==null||(i=i.get(r))==null||i.set(r in this.h),o&&o&&Ei(this,{type:"remove",observableKind:"object",object:this.l||this.h,debugObjectName:this.tt,oldValue:u,name:r})}finally{Zr()}return!0},t.At=function(r){return Jp(this,r)},t._t=function(r){return Xp(this,r)},t.fn=function(r,n){var i,s=Ci(this);s&&s&&Ei(this,s?{type:Ko,observableKind:"object",debugObjectName:this.tt,object:this.l||this.h,name:r,newValue:n}:null),(i=this.sn)==null||(i=i.get(r))==null||i.set(!0),this.vt.reportChanged()},t.rt=function(){return this.vt.reportObserved(),gc(this.h)},t.nt=function(){return this.vt.reportObserved(),Object.keys(this.h)},e}(),gre=ea("ObservableObjectAdministration",q4),yre=M4(0),Dre=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1}(),hE=0,z4=function(){};$p=z4,ng=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf($p.prototype,ng):$p.prototype.__proto__!==void 0?$p.prototype.__proto__=ng:$p.prototype=ng;var ME=function(e){function t(n,i,s,o){var a;return s===void 0&&(s="ObservableArray"),o===void 0&&(o=!1),a=e.call(this)||this,Qo(function(){var u=new RE(s,i,o,!0);u.l=a,p4(a,ve,u),n&&n.length&&a.spliceWithArray(0,0,n),Dre&&Object.defineProperty(a,"0",yre)}),a}m4(t,e);var r=t.prototype;return r.concat=function(){this[ve].st.reportObserved();for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return Array.prototype.concat.apply(this.slice(),i.map(function(o){return Xr(o)?o.slice():o}))},r[Symbol.iterator]=function(){var n=this,i=0;return qp({next:function(){return i<n.length?{value:n[i++],done:!1}:{done:!0,value:void 0}}})},Ec(t,[{key:"length",get:function(){return this[ve].Xt()},set:function(n){this[ve].Ft(n)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(z4);Object.entries(mg).forEach(function(e){var t=e[0];t!=="concat"&&Gp(ME.prototype,t,e[1])}),j4(1e3);var u4=Zp.toString;["Symbol","Map","Set"].forEach(function(e){gE()[e]===void 0&&Ne("MobX requires global '"+e+"' to be available or polyfilled")}),typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Y5,extras:{getDebugName:ug},$mobx:ve}),ue.$mobx=ve,ue.FlowCancellationError=og,ue.ObservableMap=BE,ue.ObservableSet=kE,ue.Reaction=Qi,ue._allowStateChanges=yE,ue._allowStateChangesInsideComputed=K5,ue._allowStateReadsEnd=hc,ue._allowStateReadsStart=wg,ue._autoAction=Cc,ue._endAction=E4,ue._getAdministration=Ts,ue._getGlobalState=function(){return Q},ue._interceptReads=function(e,t,r){var n;return pr(e)||Xr(e)||pE(e)?n=Ts(e):fr(e)&&(n=Ts(e,t)),n.dehancer=typeof t=="function"?t:r,function(){n.dehancer=void 0}},ue._isComputingDerivation=function(){return Q.trackingDerivation!==null},ue._resetGlobalState=function(){var e=new Wp;for(var t in e)sre.indexOf(t)===-1&&(Q[t]=e[t]);Q.allowStateChanges=!Q.enforceActions},ue._startAction=C4,ue.action=Yo,ue.autorun=TE,ue.comparer=Pu,ue.computed=zp,ue.configure=function(e){e.isolateGlobalState===!0&&function(){if((Q.pendingReactions.length||Q.inBatch||Q.isRunningReactions)&&Ne(36),G4=!0,sg){var o=gE();--o.__mobxInstanceCount==0&&(o.__mobxGlobals=void 0),Q=new Wp}}();var t,r,n=e.useProxies,i=e.enforceActions;if(n!==void 0&&(Q.useProxies=n==="always"||n!=="never"&&typeof Proxy<"u"),n==="ifavailable"&&(Q.verifyProxies=!0),i!==void 0){var s=i==="always"?"always":i==="observed";Q.enforceActions=s,Q.allowStateChanges=s!==!0&&s!=="always"}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(o){o in e&&(Q[o]=!!e[o])}),Q.allowStateReads=!Q.observableRequiresReaction,e.reactionScheduler&&(t=e.reactionScheduler,r=_E,_E=function(o){return t(function(){return r(o)})})},ue.createAtom=FE,ue.defineProperty=function(e,t,r){if(fr(e))return e[ve].v(t,r);Ne(39)},ue.entries=function(e){return fr(e)?Up(e).map(function(t){return[t,e[t]]}):pr(e)?Up(e).map(function(t){return[t,e.get(t)]}):Ht(e)?Array.from(e.entries()):Xr(e)?e.map(function(t,r){return[r,t]}):void Ne(7)},ue.extendObservable=wE,ue.flow=Bu,ue.flowResult=function(e){return e},ue.get=function(e,t){if(Z5(e,t))return fr(e)?e[ve].ct(t):pr(e)?e.get(t):Xr(e)?e[t]:void Ne(11)},ue.getAtom=Rs,ue.getDebugName=ug,ue.getDependencyTree=function(e,t){return N4(Rs(e,t))},ue.getObserverTree=function(e,t){return R4(Rs(e,t))},ue.has=Z5,ue.intercept=function(e,t,r){return Cn(r)?function(n,i,s){return Ts(n,i)._t(s)}(e,t,r):function(n,i){return Ts(n)._t(i)}(e,t)},ue.isAction=vc,ue.isBoxedObservable=pE,ue.isComputed=function(e){return J5(e)},ue.isComputedProp=function(e,t){return J5(e,t)},ue.isFlow=wc,ue.isFlowCancellationError=function(e){return e instanceof og},ue.isObservable=ag,ue.isObservableArray=Xr,ue.isObservableMap=pr,ue.isObservableObject=fr,ue.isObservableProp=function(e,t){return B4(e,t)},ue.isObservableSet=Ht,ue.keys=Up,ue.makeAutoObservable=function(e,t,r){return Bs(e)?wE(e,e,t,r):(Qo(function(){var n=Nu(e,r)[ve];if(!e[mE]){var i=Object.getPrototypeOf(e),s=new Set([].concat(gc(e),gc(i)));s.delete("constructor"),s.delete(ve),Gp(i,mE,s)}e[mE].forEach(function(o){return n.o(o,!t||!(o in t)||t[o])})}),e)},ue.makeObservable=function(e,t,r){return Qo(function(){var n=Nu(e,r)[ve];t!=null||(t=function(i){return Ls(i,es)||Gp(i,es,ku({},i[es])),i[es]}(e)),gc(t).forEach(function(i){return n.o(i,t[i])})}),e},ue.observable=ir,ue.observe=function(e,t,r,n){return Cn(r)?function(i,s,o,a){return Ts(i,s).At(o,a)}(e,t,r,n):function(i,s,o){return Ts(i).At(s,o)}(e,t,r)},ue.onBecomeObserved=P4,ue.onBecomeUnobserved=PE,ue.onReactionError=function(e){return Q.globalReactionErrorHandlers.push(e),function(){var t=Q.globalReactionErrorHandlers.indexOf(e);t>=0&&Q.globalReactionErrorHandlers.splice(t,1)}},ue.override=Jte,ue.ownKeys=Q5,ue.reaction=function(e,t,r){function n(){if(y=!1,!h.isDisposed){var g=!1,v=l;h.track(function(){var w=yE(!1,function(){return e(h)});g=m||!D(l,w),l=w}),(m&&r.fireImmediately||!m&&g)&&f(l,v,h),m=!1}}var i,s,o;r===void 0&&(r=LE);var a,u,l,c=(i=r.name)!=null?i:"Reaction",f=Yo(c,r.onError?(a=r.onError,u=t,function(){try{return u.apply(this,arguments)}catch(g){a.call(this,g)}}):t),p=!r.scheduler&&!r.delay,d=T4(r),m=!0,y=!1,D=r.compareStructural?Pu.structural:r.equals||Pu.default,h=new Qi(c,function(){m||p?n():y||(y=!0,d(n))},r.onError,r.requiresObservable);return(s=r)!=null&&(s=s.signal)!=null&&s.aborted||h.Y(),h.Z((o=r)==null?void 0:o.signal)},ue.remove=function(e,t){fr(e)?e[ve].Ut(t):pr(e)||Ht(e)?e.delete(t):Xr(e)?(typeof t!="number"&&(t=parseInt(t,10)),e.splice(t,1)):Ne(9)},ue.runInAction=K5,ue.set=function e(t,r,n){if(arguments.length!==2||Ht(t))fr(t)?t[ve].ht(r,n):pr(t)?t.set(r,n):Ht(t)?t.add(r):Xr(t)?(typeof r!="number"&&(r=parseInt(r,10)),r<0&&Ne("Invalid index: '"+r+"'"),Jr(),r>=t.length&&(t.length=r+1),t[r]=n,Zr()):Ne(8);else{Jr();var i=r;try{for(var s in i)e(t,s,i[s])}finally{Zr()}}},ue.spy=Y5,ue.toJS=function(e){return function t(r,n){if(r==null||typeof r!="object"||r instanceof Date||!ag(r))return r;if(pE(r)||Ru(r))return t(r.get(),n);if(n.has(r))return n.get(r);if(Xr(r)){var i=rg(n,r,new Array(r.length));return r.forEach(function(u,l){i[l]=t(u,n)}),i}if(Ht(r)){var s=rg(n,r,new Set);return r.forEach(function(u){s.add(t(u,n))}),s}if(pr(r)){var o=rg(n,r,new Map);return r.forEach(function(u,l){o.set(l,t(u,n))}),o}var a=rg(n,r,{});return Q5(r).forEach(function(u){Zp.propertyIsEnumerable.call(r,u)&&(a[u]=t(r[u],n))}),a}(e,new Map)},ue.trace=function(){},ue.transaction=Zi,ue.untracked=IE,ue.values=function(e){return fr(e)?Up(e).map(function(t){return e[t]}):pr(e)?Up(e).map(function(t){return e.get(t)}):Ht(e)?Array.from(e.values()):Xr(e)?e.slice():void Ne(6)},ue.when=function(e,t,r){return arguments.length===1||t&&typeof t=="object"?$te(e,t):k4(e,t,r||{})}});var Qp=N((xSe,Y4)=>{"use strict";Y4.exports=H4()});var vB=N(at=>{"use strict";function YE(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,i=e[n];if(0<Cg(i,t))e[n]=t,e[r]=i,r=n;else break e}}function _i(e){return e.length===0?null:e[0]}function Sg(e){if(e.length===0)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,i=e.length,s=i>>>1;n<s;){var o=2*(n+1)-1,a=e[o],u=o+1,l=e[u];if(0>Cg(a,r))u<i&&0>Cg(l,a)?(e[n]=l,e[u]=r,n=u):(e[n]=a,e[o]=r,n=o);else if(u<i&&0>Cg(l,r))e[n]=l,e[u]=r,n=u;else break e}}return t}function Cg(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(cB=performance,at.unstable_now=function(){return cB.now()}):(qE=Date,fB=qE.now(),at.unstable_now=function(){return qE.now()-fB});var cB,qE,fB,ns=[],ta=[],vre=1,ei=null,_r=3,xg=!1,ju=!1,td=!1,mB=typeof setTimeout=="function"?setTimeout:null,hB=typeof clearTimeout=="function"?clearTimeout:null,pB=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function KE(e){for(var t=_i(ta);t!==null;){if(t.callback===null)Sg(ta);else if(t.startTime<=e)Sg(ta),t.sortIndex=t.expirationTime,YE(ns,t);else break;t=_i(ta)}}function XE(e){if(td=!1,KE(e),!ju)if(_i(ns)!==null)ju=!0,ZE(JE);else{var t=_i(ta);t!==null&&QE(XE,t.startTime-e)}}function JE(e,t){ju=!1,td&&(td=!1,hB(rd),rd=-1),xg=!0;var r=_r;try{for(KE(t),ei=_i(ns);ei!==null&&(!(ei.expirationTime>t)||e&&!DB());){var n=ei.callback;if(typeof n=="function"){ei.callback=null,_r=ei.priorityLevel;var i=n(ei.expirationTime<=t);t=at.unstable_now(),typeof i=="function"?ei.callback=i:ei===_i(ns)&&Sg(ns),KE(t)}else Sg(ns);ei=_i(ns)}if(ei!==null)var s=!0;else{var o=_i(ta);o!==null&&QE(XE,o.startTime-t),s=!1}return s}finally{ei=null,_r=r,xg=!1}}var _g=!1,Eg=null,rd=-1,gB=5,yB=-1;function DB(){return!(at.unstable_now()-yB<gB)}function zE(){if(Eg!==null){var e=at.unstable_now();yB=e;var t=!0;try{t=Eg(!0,e)}finally{t?ed():(_g=!1,Eg=null)}}else _g=!1}var ed;typeof pB=="function"?ed=function(){pB(zE)}:typeof MessageChannel<"u"?(HE=new MessageChannel,dB=HE.port2,HE.port1.onmessage=zE,ed=function(){dB.postMessage(null)}):ed=function(){mB(zE,0)};var HE,dB;function ZE(e){Eg=e,_g||(_g=!0,ed())}function QE(e,t){rd=mB(function(){e(at.unstable_now())},t)}at.unstable_IdlePriority=5;at.unstable_ImmediatePriority=1;at.unstable_LowPriority=4;at.unstable_NormalPriority=3;at.unstable_Profiling=null;at.unstable_UserBlockingPriority=2;at.unstable_cancelCallback=function(e){e.callback=null};at.unstable_continueExecution=function(){ju||xg||(ju=!0,ZE(JE))};at.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):gB=0<e?Math.floor(1e3/e):5};at.unstable_getCurrentPriorityLevel=function(){return _r};at.unstable_getFirstCallbackNode=function(){return _i(ns)};at.unstable_next=function(e){switch(_r){case 1:case 2:case 3:var t=3;break;default:t=_r}var r=_r;_r=t;try{return e()}finally{_r=r}};at.unstable_pauseExecution=function(){};at.unstable_requestPaint=function(){};at.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=_r;_r=e;try{return t()}finally{_r=r}};at.unstable_scheduleCallback=function(e,t,r){var n=at.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?n+r:n):r=n,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return i=r+i,e={id:vre++,callback:t,priorityLevel:e,startTime:r,expirationTime:i,sortIndex:-1},r>n?(e.sortIndex=r,YE(ta,e),_i(ns)===null&&e===_i(ta)&&(td?(hB(rd),rd=-1):td=!0,QE(XE,r-n))):(e.sortIndex=i,YE(ns,e),ju||xg||(ju=!0,ZE(JE))),e};at.unstable_shouldYield=DB;at.unstable_wrapCallback=function(e){var t=_r;return function(){var r=_r;_r=t;try{return e.apply(this,arguments)}finally{_r=r}}}});var CB=N((ASe,wB)=>{"use strict";wB.exports=vB()});var _k=N(On=>{"use strict";var wre=V("react"),_n=CB();function J(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var F6=new Set,xd={};function Zu(e,t){Wc(e,t),Wc(e+"Capture",t)}function Wc(e,t){for(xd[e]=t,e=0;e<t.length;e++)F6.add(t[e])}var $s=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ES=Object.prototype.hasOwnProperty,Cre=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,EB={},SB={};function Ere(e){return ES.call(SB,e)?!0:ES.call(EB,e)?!1:Cre.test(e)?SB[e]=!0:(EB[e]=!0,!1)}function Sre(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function xre(e,t,r,n){if(t===null||typeof t>"u"||Sre(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function $r(e,t,r,n,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var gr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){gr[e]=new $r(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];gr[t]=new $r(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){gr[e]=new $r(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){gr[e]=new $r(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){gr[e]=new $r(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){gr[e]=new $r(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){gr[e]=new $r(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){gr[e]=new $r(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){gr[e]=new $r(e,5,!1,e.toLowerCase(),null,!1,!1)});var mx=/[\-:]([a-z])/g;function hx(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(mx,hx);gr[t]=new $r(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(mx,hx);gr[t]=new $r(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(mx,hx);gr[t]=new $r(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){gr[e]=new $r(e,1,!1,e.toLowerCase(),null,!1,!1)});gr.xlinkHref=new $r("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){gr[e]=new $r(e,1,!1,e.toLowerCase(),null,!0,!0)});function gx(e,t,r,n){var i=gr.hasOwnProperty(t)?gr[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(xre(t,r,i,n)&&(r=null),n||i===null?Ere(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var zs=wre.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,bg=Symbol.for("react.element"),_c=Symbol.for("react.portal"),bc=Symbol.for("react.fragment"),yx=Symbol.for("react.strict_mode"),SS=Symbol.for("react.profiler"),A6=Symbol.for("react.provider"),I6=Symbol.for("react.context"),Dx=Symbol.for("react.forward_ref"),xS=Symbol.for("react.suspense"),_S=Symbol.for("react.suspense_list"),vx=Symbol.for("react.memo"),na=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var T6=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var xB=Symbol.iterator;function nd(e){return e===null||typeof e!="object"?null:(e=xB&&e[xB]||e["@@iterator"],typeof e=="function"?e:null)}var At=Object.assign,eS;function fd(e){if(eS===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);eS=t&&t[1]||""}return`
|
|
416
|
+
`)}function I5(e){let t={interpolation:"rgb",hsvSpin:"short",...e};if(e!==void 0&&typeof e!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof e}\``);if(typeof t.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof t.interpolation}\``);if(t.interpolation.toLowerCase()==="hsv"&&typeof t.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof t.hsvSpin}\``);return t}var Mp={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"}}};X0.exports=sE;for(let e in Mp)X0.exports[e]=t=>new sE(Mp[e].colors)(t,Mp[e].options),X0.exports[e].multiline=t=>new sE(Mp[e].colors).multiline(t,Mp[e].options)});var H4=N(ue=>{function Ne(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error(typeof e=="number"?"[MobX] minified error nr: "+e+(r.length?" "+r.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}function gE(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:Hte}function l4(){Yte||Ne("Proxy not available")}function c4(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}function Cn(e){return typeof e=="function"}function Lu(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function hg(e){return e!==null&&typeof e=="object"}function Bs(e){if(!hg(e))return!1;var t=Object.getPrototypeOf(e);if(t==null)return!0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r.toString()===Kte}function f4(e){var t=e?.constructor;return!!t&&(t.name==="GeneratorFunction"||t.displayName==="GeneratorFunction")}function Gp(e,t,r){es(e,t,{enumerable:!1,writable:!0,configurable:!0,value:r})}function p4(e,t,r){es(e,t,{enumerable:!1,writable:!1,configurable:!0,value:r})}function ea(e,t){var r="isMobX"+e;return t.prototype[r]=!0,function(n){return hg(n)&&n[r]===!0}}function yc(e){return e!=null&&Object.prototype.toString.call(e)==="[object Map]"}function Ps(e){return e!=null&&Object.prototype.toString.call(e)==="[object Set]"}function d4(e){return e===null?null:typeof e=="object"?""+e:e}function Ls(e,t){return Zp.hasOwnProperty.call(e,t)}function vn(e,t){return!!(e&t)}function wn(e,t,r){return r?e|=t:e&=~t,e}function z5(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function H5(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,xte(n.key),n)}}function Ec(e,t,r){return t&&H5(e.prototype,t),r&&H5(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function dc(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(i,s){if(i){if(typeof i=="string")return z5(i,s);var o={}.toString.call(i).slice(8,-1);return o==="Object"&&i.constructor&&(o=i.constructor.name),o==="Map"||o==="Set"?Array.from(i):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?z5(i,s):void 0}}(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
417
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ku(){return(ku=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function m4(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(r,n){(Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,s){return i.__proto__=s,i})(r,n)}(e,t)}function xte(e){var t=function(r){if(typeof r!="object"||!r)return r;var n=r[Symbol.toPrimitive];if(n!==void 0){var i=n.call(r,"string");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}(e);return typeof t=="symbol"?t:t+""}function wi(e){return Object.assign(function(t,r){if(Yp(r))return e.t(t,r);Hp(t,r,e)},e)}function Hp(e,t,r){Ls(e,Qi)||Gp(e,Qi,ku({},e[Qi])),function(n){return n.i==="override"}(r)||(e[Qi][t]=r)}function Yp(e){return typeof e=="object"&&typeof e.kind=="string"}function FE(e,t,r){t===void 0&&(t=mc),r===void 0&&(r=mc);var n=new Xo(e);return t!==mc&&P4(n,t),r!==mc&&PE(n,r),n}function Dc(e,t,r){return ag(e)?e:Array.isArray(e)?ir.array(e,{name:r}):Bs(e)?ir.object(e,void 0,{name:r}):yc(e)?ir.map(e,{name:r}):Ps(e)?ir.set(e,{name:r}):typeof e!="function"||vc(e)||wc(e)?e:f4(e)?Bu(e):Cc(r,e)}function gg(e){return e}function Kp(e,t){return{i:e,u:t,o:_te,s:bte,t:Ote}}function _te(e,t,r,n){var i;if((i=this.u)!=null&&i.bound)return this.s(e,t,r,!1)===null?0:1;if(n===e.h)return this.s(e,t,r,!1)===null?0:2;if(vc(r.value))return 1;var s=h4(e,this,t,r,!1);return es(n,t,s),2}function bte(e,t,r,n){var i=h4(e,this,t,r);return e.v(t,i,n)}function Ote(e,t){var r,n=t.kind,i=t.name,s=t.addInitializer,o=this,a=function(u){var l,c,f,p;return Zo((l=(c=o.u)==null?void 0:c.name)!=null?l:i.toString(),u,(f=(p=o.u)==null?void 0:p.autoAction)!=null&&f)};return n=="field"?function(u){var l,c=u;return vc(c)||(c=a(c)),(l=o.u)!=null&&l.bound&&((c=c.bind(this)).isMobxAction=!0),c}:n=="method"?(vc(e)||(e=a(e)),(r=this.u)!=null&&r.bound&&s(function(){var u=this[i].bind(this);u.isMobxAction=!0,this[i]=u}),e):void Ne("Cannot apply '"+o.i+"' to '"+String(i)+"' (kind: "+n+`):
|
|
418
|
+
'`+o.i+"' can only be used on properties with a function value.")}function h4(e,t,r,n,i){var s,o,a,u,l,c,f;i===void 0&&(i=Q.safeDescriptors);var p,d=n.value;return(s=t.u)!=null&&s.bound&&(d=d.bind((p=e.l)!=null?p:e.h)),{value:Zo((o=(a=t.u)==null?void 0:a.name)!=null?o:r.toString(),d,(u=(l=t.u)==null?void 0:l.autoAction)!=null&&u,(c=t.u)!=null&&c.bound?(f=e.l)!=null?f:e.h:void 0),configurable:!i||e.p,enumerable:!1,writable:!i}}function g4(e,t){return{i:e,u:t,o:Fte,s:Ate,t:Ite}}function Fte(e,t,r,n){var i;if(n===e.h)return this.s(e,t,r,!1)===null?0:2;if((i=this.u)!=null&&i.bound&&(!Ls(e.h,t)||!wc(e.h[t]))&&this.s(e,t,r,!1)===null)return 0;if(wc(r.value))return 1;var s=y4(e,0,0,r,!1,!1);return es(n,t,s),2}function Ate(e,t,r,n){var i,s=y4(e,0,0,r,(i=this.u)==null?void 0:i.bound);return e.v(t,s,n)}function Ite(e,t){var r,n=t.name,i=t.addInitializer;return wc(e)||(e=Bu(e)),(r=this.u)!=null&&r.bound&&i(function(){var s=this[n].bind(this);s.isMobXFlow=!0,this[n]=s}),e}function y4(e,t,r,n,i,s){s===void 0&&(s=Q.safeDescriptors);var o,a=n.value;return wc(a)||(a=Bu(a)),i&&((a=a.bind((o=e.l)!=null?o:e.h)).isMobXFlow=!0),{value:a,configurable:!s||e.p,enumerable:!1,writable:!s}}function AE(e,t){return{i:e,u:t,o:Tte,s:Pte,t:Lte}}function Tte(e,t,r){return this.s(e,t,r,!1)===null?0:1}function Pte(e,t,r,n){return e.m(t,ku({},this.u,{get:r.get,set:r.set}),n)}function Lte(e,t){var r=this,n=t.name;return(0,t.addInitializer)(function(){var i=Nu(this)[ve],s=ku({},r.u,{get:e,context:this});s.name||(s.name="ObservableObject."+n.toString()),i.j.set(n,new vi(s))}),function(){return this[ve].O(n)}}function yg(e,t){return{i:e,u:t,o:Nte,s:Rte,t:Bte}}function Nte(e,t,r){return this.s(e,t,r,!1)===null?0:1}function Rte(e,t,r,n){var i,s;return e.g(t,r.value,(i=(s=this.u)==null?void 0:s.enhancer)!=null?i:Dc,n)}function Bte(e,t){function r(a,u){var l,c,f=Nu(a)[ve],p=new Jo(u,(l=(c=n.u)==null?void 0:c.enhancer)!=null?l:Dc,"ObservableObject."+s.toString(),!1);f.j.set(s,p),o.add(a)}var n=this,i=t.kind,s=t.name,o=new WeakSet;if(i=="accessor")return{get:function(){return o.has(this)||r(this,e.get.call(this)),this[ve].O(s)},set:function(a){return o.has(this)||r(this,a),this[ve]._(s,a)},init:function(a){return o.has(this)||r(this,a),a}}}function D4(e){return{i:"true",u:e,o:kte,s:Mte,t:jte}}function kte(e,t,r,n){var i,s,o,a;if(r.get)return zp.o(e,t,r,n);if(r.set){var u=Zo(t.toString(),r.set);return n===e.h?e.v(t,{configurable:!Q.safeDescriptors||e.p,set:u})===null?0:2:(es(n,t,{configurable:!0,set:u}),2)}if(n!==e.h&&typeof r.value=="function")return f4(r.value)?((a=this.u)!=null&&a.autoBind?Bu.bound:Bu).o(e,t,r,n):((o=this.u)!=null&&o.autoBind?Cc.bound:Cc).o(e,t,r,n);var l,c=((i=this.u)==null?void 0:i.deep)===!1?ir.ref:ir;return typeof r.value=="function"&&(s=this.u)!=null&&s.autoBind&&(r.value=r.value.bind((l=e.l)!=null?l:e.h)),c.o(e,t,r,n)}function Mte(e,t,r,n){var i,s,o;return r.get?zp.s(e,t,r,n):r.set?e.v(t,{configurable:!Q.safeDescriptors||e.p,set:Zo(t.toString(),r.set)},n):(typeof r.value=="function"&&(i=this.u)!=null&&i.autoBind&&(r.value=r.value.bind((o=e.l)!=null?o:e.h)),(((s=this.u)==null?void 0:s.deep)===!1?ir.ref:ir).s(e,t,r,n))}function jte(){Ne("'"+this.i+"' cannot be used as a decorator")}function eg(e){return e||$4}function tg(e){return e.deep===!0?Dc:e.deep===!1?gg:(t=e.defaultDecorator)&&(r=(n=t.u)==null?void 0:n.enhancer)!=null?r:Dc;var t,r,n}function v4(e,t,r){return Yp(t)?SE.t(e,t):Lu(t)?void Hp(e,t,SE):ag(e)?e:Bs(e)?ir.object(e,t,r):Array.isArray(e)?ir.array(e,t):yc(e)?ir.map(e,t):Ps(e)?ir.set(e,t):typeof e=="object"&&e!==null?e:ir.box(e,t)}function Zo(e,t,r,n){function i(){return w4(0,r,t,n||this,arguments)}return r===void 0&&(r=!1),i.isMobxAction=!0,i.toString=function(){return t.toString()},ire&&(o4.value=e,es(i,"name",o4)),i}function w4(e,t,r,n,i){var s=C4(0,t);try{return r.apply(n,i)}catch(o){throw s.A=o,o}finally{E4(s)}}function C4(e,t){var r=Q.trackingDerivation,n=!t||!r;Jr();var i=Q.allowStateChanges;n&&(Mu(),i=Dg(!0));var s={S:n,k:r,V:i,M:wg(!0),N:!1,R:0,T:nre++,L:cg};return cg=s.T,s}function E4(e){cg!==e.T&&Ne(30),cg=e.L,e.A!==void 0&&(Q.suppressReactionErrors=!0),vg(e.V),hc(e.M),Zr(),e.S&&Ns(e.k),Q.suppressReactionErrors=!1}function yE(e,t){var r=Dg(e);try{return t()}finally{vg(r)}}function Dg(e){var t=Q.allowStateChanges;return Q.allowStateChanges=e,t}function vg(e){Q.allowStateChanges=e}function ig(e){return e instanceof pg}function DE(e){switch(e.C){case Ze.P:return!1;case Ze.I:case Ze.K:return!0;case Ze.B:for(var t=wg(!0),r=Mu(),n=e.D,i=n.length,s=0;s<i;s++){var o=n[s];if(Ru(o)){if(Q.disableErrorBoundaries)o.get();else try{o.get()}catch{return Ns(r),hc(t),!0}if(e.C===Ze.K)return Ns(r),hc(t),!0}}return x4(e),Ns(r),hc(t),!1}}function S4(e,t,r){var n=wg(!0);x4(e),e.W=new Array(e.q===0?100:e.D.length),e.G=0,e.q=++Q.runId;var i,s=Q.trackingDerivation;if(Q.trackingDerivation=e,Q.inBatch++,Q.disableErrorBoundaries===!0)i=t.call(r);else try{i=t.call(r)}catch(o){i=new pg(o)}return Q.inBatch--,Q.trackingDerivation=s,function(o){for(var a=o.D,u=o.D=o.W,l=Ze.P,c=0,f=o.G,p=0;p<f;p++){var d=u[p];d.diffValue===0&&(d.diffValue=1,c!==p&&(u[c]=d),c++),d.C>l&&(l=d.C)}for(u.length=c,o.W=null,f=a.length;f--;){var m=a[f];m.diffValue===0&&_4(m,o),m.diffValue=0}for(;c--;){var y=u[c];y.diffValue===1&&(y.diffValue=0,Vte(y,o))}l!==Ze.P&&(o.C=l,o.H())}(e),hc(n),i}function vE(e){var t=e.D;e.D=[];for(var r=t.length;r--;)_4(t[r],e);e.C=Ze.I}function IE(e){var t=Mu();try{return e()}finally{Ns(t)}}function Mu(){var e=Q.trackingDerivation;return Q.trackingDerivation=null,e}function Ns(e){Q.trackingDerivation=e}function wg(e){var t=Q.allowStateReads;return Q.allowStateReads=e,t}function hc(e){Q.allowStateReads=e}function x4(e){if(e.C!==Ze.P){e.C=Ze.P;for(var t=e.D,r=t.length;r--;)t[r].U=Ze.P}}function Vte(e,t){e.X.add(t),e.U>t.C&&(e.U=t.C)}function _4(e,t){e.X.delete(t),e.X.size===0&&b4(e)}function b4(e){e.isPendingUnobservation===!1&&(e.isPendingUnobservation=!0,Q.pendingUnobservations.push(e))}function Jr(){Q.inBatch++}function Zr(){if(--Q.inBatch==0){A4();for(var e=Q.pendingUnobservations,t=0;t<e.length;t++){var r=e[t];r.isPendingUnobservation=!1,r.X.size===0&&(r.isBeingObserved&&(r.isBeingObserved=!1,r.onBUO()),r instanceof vi&&r.F())}Q.pendingUnobservations=[]}}function O4(e){var t=Q.trackingDerivation;return t!==null?(t.q!==e.$&&(e.$=t.q,t.W[t.G++]=e,!e.isBeingObserved&&Q.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(e.X.size===0&&Q.inBatch>0&&b4(e),!1)}function F4(e){e.U!==Ze.K&&(e.U=Ze.K,e.X.forEach(function(t){t.C===Ze.P&&t.H(),t.C=Ze.K}))}function A4(){Q.inBatch>0||Q.isRunningReactions||_E(Ute)}function Ute(){Q.isRunningReactions=!0;for(var e=Q.pendingReactions,t=0;e.length>0;){++t==100&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var r=e.splice(0),n=0,i=r.length;n<i;n++)r[n].J()}Q.isRunningReactions=!1}function Y5(){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}function I4(e){return function(t,r){return Cn(t)?Zo(t.name||"<unnamed action>",t,e):Cn(r)?Zo(t,r,e):Yp(r)?(e?OE:bE).t(t,r):Lu(r)?Hp(t,r,e?OE:bE):Lu(t)?wi(Kp(e?"autoAction":"action",{name:t,autoAction:e})):void 0}}function K5(e){return w4(0,!1,e,this,void 0)}function vc(e){return Cn(e)&&e.isMobxAction===!0}function TE(e,t){function r(){e(a)}var n,i,s,o;t===void 0&&(t=LE);var a,u=(n=(i=t)==null?void 0:i.name)!=null?n:"Autorun";if(t.scheduler||t.delay){var l=T4(t),c=!1;a=new Zi(u,function(){c||(c=!0,l(function(){c=!1,a.isDisposed||a.track(r)}))},t.onError,t.requiresObservable)}else a=new Zi(u,function(){this.track(r)},t.onError,t.requiresObservable);return(s=t)!=null&&(s=s.signal)!=null&&s.aborted||a.Y(),a.Z((o=t)==null?void 0:o.signal)}function T4(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:ure}function P4(e,t,r){return L4("onBO",e,t,r)}function PE(e,t,r){return L4("onBUO",e,t,r)}function L4(e,t,r,n){var i=typeof n=="function"?Rs(t,r):Rs(t),s=Cn(n)?n:r,o=e+"L";return i[o]?i[o].add(s):i[o]=new Set([s]),function(){var a=i[o];a&&(a.delete(s),a.size===0&&delete i[o])}}function wE(e,t,r,n){var i=Xte(t);return Qo(function(){var s=Nu(e,n)[ve];gc(i).forEach(function(o){s.s(o,i[o],!r||!(o in r)||r[o])})}),e}function N4(e){var t,r={name:e.tt};return e.D&&e.D.length>0&&(r.dependencies=(t=e.D,Array.from(new Set(t))).map(N4)),r}function R4(e){var t={name:e.tt};return function(r){return r.X&&r.X.size>0}(e)&&(t.observers=Array.from(function(r){return r.X}(e)).map(R4)),t}function og(){this.message="FLOW_CANCELLED"}function X5(e){Cn(e.cancel)&&e.cancel()}function wc(e){return e?.isMobXFlow===!0}function J5(e,t){if(t===void 0)return Ru(e);if(fr(e)===!1||!e[ve].j.has(t))return!1;var r=Rs(e,t);return Ru(r)}function B4(e,t){return!!e&&(t!==void 0?!!fr(e)&&e[ve].j.has(t):fr(e)||!!e[ve]||NE(e)||dg(e)||Ru(e))}function ag(e){return B4(e)}function Up(e){return fr(e)?e[ve].nt():pr(e)||Ht(e)?Array.from(e.keys()):Xr(e)?e.map(function(t,r){return r}):void Ne(5)}function Z5(e,t){return fr(e)?e[ve].it(t):pr(e)||Ht(e)?e.has(t):Xr(e)?t>=0&&t<e.length:void Ne(10)}function Q5(e){if(fr(e))return e[ve].rt();Ne(38)}function rg(e,t,r){return e.set(t,r),r}function Ji(e,t){t===void 0&&(t=void 0),Jr();try{return e.apply(t)}finally{Zr()}}function k4(e,t,r){var n;if(typeof r.timeout=="number"){var i=new Error("WHEN_TIMEOUT");n=setTimeout(function(){if(!o[ve].isDisposed){if(o(),!r.onError)throw i;r.onError(i)}},r.timeout)}r.name="When";var s=Zo("When-effect",t),o=TE(function(a){yE(!1,e)&&(a.dispose(),n&&clearTimeout(n),s())},r);return o}function $te(e,t){var r,n,i;if(t!=null&&(r=t.signal)!=null&&r.aborted)return Object.assign(Promise.reject(new Error("WHEN_ABORTED")),{cancel:function(){return null}});var s=new Promise(function(o,a){var u,l=k4(e,o,ku({},t,{onError:a}));n=function(){l(),a(new Error("WHEN_CANCELLED"))},i=function(){l(),a(new Error("WHEN_ABORTED"))},t==null||(u=t.signal)==null||u.addEventListener==null||u.addEventListener("abort",i)}).finally(function(){var o;return t==null||(o=t.signal)==null||o.removeEventListener==null?void 0:o.removeEventListener("abort",i)});return s.cancel=n,s}function pc(e){return e[ve]}function Zn(e){return e.et!==void 0&&e.et.length>0}function Xp(e,t){var r=e.et||(e.et=[]);return r.push(t),c4(function(){var n=r.indexOf(t);n!==-1&&r.splice(n,1)})}function Qn(e,t){var r=Mu();try{for(var n=[].concat(e.et||[]),i=0,s=n.length;i<s&&((t=n[i](t))&&!t.type&&Ne(14),t);i++);return t}finally{Ns(r)}}function Ci(e){return e.ut!==void 0&&e.ut.length>0}function Jp(e,t){var r=e.ut||(e.ut=[]);return r.push(t),c4(function(){var n=r.indexOf(t);n!==-1&&r.splice(n,1)})}function Ei(e,t){var r=Mu(),n=e.ut;if(n){for(var i=0,s=(n=n.slice()).length;i<s;i++)n[i](t);Ns(r)}}function Wte(e,t,r,n){return r===void 0&&(r="ObservableArray"),n===void 0&&(n=!1),l4(),Qo(function(){var i=new RE(r,t,n,!1);p4(i.j,ve,i);var s=new Proxy(i.j,pre);return i.l=s,e&&e.length&&i.ot(0,0,e),s})}function ot(e,t){typeof Array.prototype[e]=="function"&&(mg[e]=t(e))}function Dn(e){return function(){var t=this[ve];t.st.reportObserved();var r=t.ft(t.j);return r[e].apply(r,arguments)}}function Di(e){return function(t,r){var n=this,i=this[ve];return i.st.reportObserved(),i.ft(i.j)[e](function(s,o){return t.call(r,s,o,n)})}}function e4(e){return function(){var t=this,r=this[ve];r.st.reportObserved();var n=r.ft(r.j),i=arguments[0];return arguments[0]=function(s,o,a){return i(s,o,a,t)},n[e].apply(n,arguments)}}function Xr(e){return hg(e)&&dre(e[ve])}function Nu(e,t){var r;if(Ls(e,ve))return e;var n=(r=t?.name)!=null?r:"ObservableObject",i=new q4(e,new Map,String(n),function(s){var o;return s?(o=s.defaultDecorator)!=null?o:D4(s):void 0}(t));return Gp(e,ve,i),e}function t4(e){return a4[e]||(a4[e]={get:function(){return this[ve].O(e)},set:function(t){return this[ve]._(e,t)}})}function fr(e){return!!hg(e)&&gre(e[ve])}function r4(e,t,r){var n;(n=e.h[Qi])==null||delete n[r]}function M4(e){return{enumerable:!1,configurable:!0,get:function(){return this[ve].ct(e)},set:function(t){this[ve].ht(e,t)}}}function Gte(e){es(ME.prototype,""+e,M4(e))}function j4(e){if(e>hE){for(var t=hE;t<e+100;t++)Gte(t);hE=e}}function qte(e,t,r){return new ME(e,t,r)}function Rs(e,t){if(typeof e=="object"&&e!==null){if(Xr(e))return t!==void 0&&Ne(23),e[ve].st;if(Ht(e))return e.st;if(pr(e)){if(t===void 0)return e.vt;var r=e.lt.get(t)||e.dt.get(t);return r||Ne(25,t,ug(e)),r}if(fr(e)){if(!t)return Ne(26);var n=e[ve].j.get(t);return n||Ne(27,t,ug(e)),n}if(NE(e)||Ru(e)||dg(e))return e}else if(Cn(e)&&dg(e[ve]))return e[ve];Ne(28)}function Ts(e,t){return e||Ne(29),t!==void 0?Ts(Rs(e,t)):NE(e)||Ru(e)||dg(e)||pr(e)||Ht(e)?e:e[ve]?e[ve]:void Ne(24,e)}function ug(e,t){var r;if(t!==void 0)r=Rs(e,t);else{if(vc(e))return e.name;r=fr(e)||pr(e)||Ht(e)?Ts(e):Rs(e)}return r.tt}function Qo(e){var t=Mu(),r=Dg(!0);Jr();try{return e()}finally{Zr(),vg(r),Ns(t)}}function CE(e,t,r){return r===void 0&&(r=-1),function n(i,s,o,a,u){if(i===s)return i!==0||1/i==1/s;if(i==null||s==null)return!1;if(i!=i)return s!=s;var l=typeof i;if(l!=="function"&&l!=="object"&&typeof s!="object")return!1;var c=u4.call(i);if(c!==u4.call(s))return!1;switch(c){case"[object RegExp]":case"[object String]":return""+i==""+s;case"[object Number]":return+i!=+i?+s!=+s:+i==0?1/+i==1/s:+i==+s;case"[object Date]":case"[object Boolean]":return+i==+s;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(i)===Symbol.valueOf.call(s);case"[object Map]":case"[object Set]":o>=0&&o++}i=n4(i),s=n4(s);var f=c==="[object Array]";if(!f){if(typeof i!="object"||typeof s!="object")return!1;var p=i.constructor,d=s.constructor;if(p!==d&&!(Cn(p)&&p instanceof p&&Cn(d)&&d instanceof d)&&"constructor"in i&&"constructor"in s)return!1}if(o===0)return!1;o<0&&(o=-1),u=u||[];for(var m=(a=a||[]).length;m--;)if(a[m]===i)return u[m]===s;if(a.push(i),u.push(s),f){if((m=i.length)!==s.length)return!1;for(;m--;)if(!n(i[m],s[m],o-1,a,u))return!1}else{var y,D=Object.keys(i);if(m=D.length,Object.keys(s).length!==m)return!1;for(;m--;)if(!Ls(s,y=D[m])||!n(i[y],s[y],o-1,a,u))return!1}return a.pop(),u.pop(),!0}(e,t,r)}function n4(e){return Xr(e)?e.slice():yc(e)||pr(e)||Ps(e)||Ht(e)?Array.from(e.entries()):e}function qp(e){return e[Symbol.iterator]=zte,e}function zte(){return this}Object.defineProperty(ue,"__esModule",{value:!0});var Hte={},V4=Object.assign,lg=Object.getOwnPropertyDescriptor,es=Object.defineProperty,Zp=Object.prototype,EE=[];Object.freeze(EE);var LE={};Object.freeze(LE);var Yte=typeof Proxy<"u",Kte=Object.toString(),mc=function(){},U4=Object.getOwnPropertySymbols!==void 0,gc=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:U4?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Xte=Object.getOwnPropertyDescriptors||function(e){var t={};return gc(e).forEach(function(r){t[r]=lg(e,r)}),t},Qi=Symbol("mobx-stored-annotations"),ve=Symbol("mobx administration"),Xo=function(){function e(r){r===void 0&&(r="Atom"),this.tt=void 0,this.bt=0,this.X=new Set,this.$=0,this.U=Ze.I,this.onBOL=void 0,this.onBUOL=void 0,this.tt=r}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(r){return r()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(r){return r()})},t.reportObserved=function(){return O4(this)},t.reportChanged=function(){Jr(),F4(this),Zr()},t.toString=function(){return this.tt},Ec(e,[{key:"isBeingObserved",get:function(){return vn(this.bt,e.pt)},set:function(r){this.bt=wn(this.bt,e.pt,r)}},{key:"isPendingUnobservation",get:function(){return vn(this.bt,e.yt)},set:function(r){this.bt=wn(this.bt,e.yt,r)}},{key:"diffValue",get:function(){return vn(this.bt,e.wt)?1:0},set:function(r){this.bt=wn(this.bt,e.wt,r===1)}}])}();Xo.pt=1,Xo.yt=2,Xo.wt=4;var NE=ea("Atom",Xo),Pu={identity:function(e,t){return e===t},structural:function(e,t){return CE(e,t)},default:function(e,t){return Object.is?Object.is(e,t):e===t?e!==0||1/e==1/t:e!=e&&t!=t},shallow:function(e,t){return CE(e,t,1)}},Jte=wi({i:"override",o:function(){return 0},s:function(){Ne("'"+this.i+"' can only be used with 'makeObservable'")},t:function(){console.warn("'"+this.i+"' cannot be used with decorators - this is a no-op")}}),Zte=D4(),$4={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze($4);var SE=yg("observable"),Qte=yg("observable.ref",{enhancer:gg}),ere=yg("observable.shallow",{enhancer:function(e,t,r){return e==null||fr(e)||Xr(e)||pr(e)||Ht(e)?e:Array.isArray(e)?ir.array(e,{name:r,deep:!1}):Bs(e)?ir.object(e,void 0,{name:r,deep:!1}):yc(e)?ir.map(e,{name:r,deep:!1}):Ps(e)?ir.set(e,{name:r,deep:!1}):void 0}}),tre=yg("observable.struct",{enhancer:function(e,t){return CE(e,t)?t:e}}),W4=wi(SE);V4(v4,W4);var i4,s4,ir=V4(v4,{box:function(e,t){var r=eg(t);return new Jo(e,tg(r),r.name,!0,r.equals)},array:function(e,t){var r=eg(t);return(Q.useProxies===!1||r.proxy===!1?qte:Wte)(e,tg(r),r.name)},map:function(e,t){var r=eg(t);return new BE(e,tg(r),r.name)},set:function(e,t){var r=eg(t);return new kE(e,tg(r),r.name)},object:function(e,t,r){return Qo(function(){return wE(Q.useProxies===!1||r?.proxy===!1?Nu({},r):function(n,i){var s,o;return l4(),(o=(s=(n=Nu(n,i))[ve]).l)!=null?o:s.l=new Proxy(n,fre)}({},r),e,t)})},ref:wi(Qte),shallow:wi(ere),deep:W4,struct:wi(tre)}),xE=AE("computed"),rre=AE("computed.struct",{equals:Pu.structural}),zp=function(e,t){if(Yp(t))return xE.t(e,t);if(Lu(t))return Hp(e,t,xE);if(Bs(e))return wi(AE("computed",e));var r=Bs(t)?t:{};return r.get=e,r.name||(r.name=e.name||""),new vi(r)};Object.assign(zp,xE),zp.struct=wi(rre);var cg=0,nre=1,ire=(i4=(s4=lg(function(){},"name"))==null?void 0:s4.configurable)!=null&&i4,o4={value:"action",configurable:!0,writable:!1,enumerable:!1},Jo=function(e){function t(n,i,s,o,a){var u;return s===void 0&&(s="ObservableValue"),a===void 0&&(a=Pu.default),(u=e.call(this,s)||this).enhancer=void 0,u.tt=void 0,u.equals=void 0,u.jt=!1,u.et=void 0,u.ut=void 0,u.Ot=void 0,u.dehancer=void 0,u.enhancer=i,u.tt=s,u.equals=a,u.Ot=i(n,void 0,s),u}m4(t,e);var r=t.prototype;return r.dehanceValue=function(n){return this.dehancer!==void 0?this.dehancer(n):n},r.set=function(n){(n=this.xt(n))!==Q.UNCHANGED&&this.gt(n)},r.xt=function(n){if(Zn(this)){var i=Qn(this,{object:this,type:ts,newValue:n});if(!i)return Q.UNCHANGED;n=i.newValue}return n=this.enhancer(n,this.Ot,this.tt),this.equals(this.Ot,n)?Q.UNCHANGED:n},r.gt=function(n){var i=this.Ot;this.Ot=n,this.reportChanged(),Ci(this)&&Ei(this,{type:ts,object:this,newValue:n,oldValue:i})},r.get=function(){return this.reportObserved(),this.dehanceValue(this.Ot)},r._t=function(n){return Xp(this,n)},r.At=function(n,i){return i&&n({observableKind:"value",debugObjectName:this.tt,object:this,type:ts,newValue:this.Ot,oldValue:void 0}),Jp(this,n)},r.raw=function(){return this.Ot},r.toJSON=function(){return this.get()},r.toString=function(){return this.tt+"["+this.Ot+"]"},r.valueOf=function(){return d4(this.get())},r[Symbol.toPrimitive]=function(){return this.valueOf()},t}(Xo),pE=ea("ObservableValue",Jo),vi=function(){function e(r){this.C=Ze.I,this.D=[],this.W=null,this.X=new Set,this.q=0,this.$=0,this.U=Ze.P,this.G=0,this.Ot=new pg(null),this.tt=void 0,this.St=void 0,this.bt=0,this.derivation=void 0,this.kt=void 0,this.Vt=fg.NONE,this.Mt=void 0,this.Et=void 0,this.Nt=void 0,this.Rt=void 0,this.onBOL=void 0,this.onBUOL=void 0,r.get||Ne(31),this.derivation=r.get,this.tt=r.name||"ComputedValue",r.set&&(this.kt=Zo("ComputedValue-setter",r.set)),this.Et=r.equals||(r.compareStructural||r.struct?Pu.structural:Pu.default),this.Mt=r.context,this.Nt=r.requiresReaction,this.Rt=!!r.keepAlive}var t=e.prototype;return t.H=function(){(function(r){r.U===Ze.P&&(r.U=Ze.B,r.X.forEach(function(n){n.C===Ze.P&&(n.C=Ze.B,n.H())}))})(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(r){return r()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(r){return r()})},t.get=function(){if(this.isComputing&&Ne(32,this.tt,this.derivation),Q.inBatch!==0||this.X.size!==0||this.Rt){if(O4(this),DE(this)){var r=Q.trackingContext;this.Rt&&!r&&(Q.trackingContext=this),this.trackAndCompute()&&function(i){i.U!==Ze.K&&(i.U=Ze.K,i.X.forEach(function(s){s.C===Ze.B?s.C=Ze.K:s.C===Ze.P&&(i.U=Ze.P)}))}(this),Q.trackingContext=r}}else DE(this)&&(this.Tt(),Jr(),this.Ot=this.Lt(!1),Zr());var n=this.Ot;if(ig(n))throw n.cause;return n},t.set=function(r){if(this.kt){this.isRunningSetter&&Ne(33,this.tt),this.isRunningSetter=!0;try{this.kt.call(this.Mt,r)}finally{this.isRunningSetter=!1}}else Ne(34,this.tt)},t.trackAndCompute=function(){var r=this.Ot,n=this.C===Ze.I,i=this.Lt(!0),s=n||ig(r)||ig(i)||!this.Et(r,i);return s&&(this.Ot=i),s},t.Lt=function(r){this.isComputing=!0;var n,i=Dg(!1);if(r)n=S4(this,this.derivation,this.Mt);else if(Q.disableErrorBoundaries===!0)n=this.derivation.call(this.Mt);else try{n=this.derivation.call(this.Mt)}catch(s){n=new pg(s)}return vg(i),this.isComputing=!1,n},t.F=function(){this.Rt||(vE(this),this.Ot=void 0)},t.At=function(r,n){var i=this,s=!0,o=void 0;return TE(function(){var a=i.get();if(!s||n){var u=Mu();r({observableKind:"computed",debugObjectName:i.tt,type:ts,object:i,newValue:a,oldValue:o}),Ns(u)}s=!1,o=a})},t.Tt=function(){},t.toString=function(){return this.tt+"["+this.derivation.toString()+"]"},t.valueOf=function(){return d4(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},Ec(e,[{key:"isComputing",get:function(){return vn(this.bt,e.Ct)},set:function(r){this.bt=wn(this.bt,e.Ct,r)}},{key:"isRunningSetter",get:function(){return vn(this.bt,e.Pt)},set:function(r){this.bt=wn(this.bt,e.Pt,r)}},{key:"isBeingObserved",get:function(){return vn(this.bt,e.pt)},set:function(r){this.bt=wn(this.bt,e.pt,r)}},{key:"isPendingUnobservation",get:function(){return vn(this.bt,e.yt)},set:function(r){this.bt=wn(this.bt,e.yt,r)}},{key:"diffValue",get:function(){return vn(this.bt,e.wt)?1:0},set:function(r){this.bt=wn(this.bt,e.wt,r===1)}}])}();vi.Ct=1,vi.Pt=2,vi.pt=4,vi.yt=8,vi.wt=16;var Ze,fg,Ru=ea("ComputedValue",vi);(function(e){e[e.I=-1]="NOT_TRACKING_",e[e.P=0]="UP_TO_DATE_",e[e.B=1]="POSSIBLY_STALE_",e[e.K=2]="STALE_"})(Ze||(Ze={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(fg||(fg={}));var pg=function(e){this.cause=void 0,this.cause=e},sre=["mobxGuid","spyListeners","enforceActions","computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","allowStateReads","disableErrorBoundaries","runId","UNCHANGED","useProxies"],Wp=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},sg=!0,G4=!1,Q=function(){var e=gE();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(sg=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new Wp().version&&(sg=!1),sg?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Wp):(setTimeout(function(){G4||Ne(35)},1),new Wp)}(),Zi=function(){function e(r,n,i,s){r===void 0&&(r="Reaction"),this.tt=void 0,this.It=void 0,this.Kt=void 0,this.Bt=void 0,this.D=[],this.W=[],this.C=Ze.I,this.q=0,this.G=0,this.bt=0,this.Vt=fg.NONE,this.tt=r,this.It=n,this.Kt=i,this.Bt=s}var t=e.prototype;return t.H=function(){this.Y()},t.Y=function(){this.isScheduled||(this.isScheduled=!0,Q.pendingReactions.push(this),A4())},t.J=function(){if(!this.isDisposed){Jr(),this.isScheduled=!1;var r=Q.trackingContext;if(Q.trackingContext=this,DE(this)){this.isTrackPending=!0;try{this.It()}catch(n){this.Dt(n)}}Q.trackingContext=r,Zr()}},t.track=function(r){if(!this.isDisposed){Jr(),this.isRunning=!0;var n=Q.trackingContext;Q.trackingContext=this;var i=S4(this,r,void 0);Q.trackingContext=n,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&vE(this),ig(i)&&this.Dt(i.cause),Zr()}},t.Dt=function(r){var n=this;if(this.Kt)this.Kt(r,this);else{if(Q.disableErrorBoundaries)throw r;Q.suppressReactionErrors||console.error("[mobx] uncaught error in '"+this+"'",r),Q.globalReactionErrorHandlers.forEach(function(i){return i(r,n)})}},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(Jr(),vE(this),Zr()))},t.Z=function(r){var n=this,i=function s(){n.dispose(),r==null||r.removeEventListener==null||r.removeEventListener("abort",s)};return r==null||r.addEventListener==null||r.addEventListener("abort",i),i[ve]=this,i},t.toString=function(){return"Reaction["+this.tt+"]"},t.trace=function(){},Ec(e,[{key:"isDisposed",get:function(){return vn(this.bt,e.Wt)},set:function(r){this.bt=wn(this.bt,e.Wt,r)}},{key:"isScheduled",get:function(){return vn(this.bt,e.qt)},set:function(r){this.bt=wn(this.bt,e.qt,r)}},{key:"isTrackPending",get:function(){return vn(this.bt,e.Gt)},set:function(r){this.bt=wn(this.bt,e.Gt,r)}},{key:"isRunning",get:function(){return vn(this.bt,e.Ht)},set:function(r){this.bt=wn(this.bt,e.Ht,r)}},{key:"diffValue",get:function(){return vn(this.bt,e.wt)?1:0},set:function(r){this.bt=wn(this.bt,e.wt,r===1)}}])}();Zi.Wt=1,Zi.qt=2,Zi.Gt=4,Zi.Ht=8,Zi.wt=16;var _E=function(e){return e()},dg=ea("Reaction",Zi),bE=Kp("action"),ore=Kp("action.bound",{bound:!0}),OE=Kp("autoAction",{autoAction:!0}),are=Kp("autoAction.bound",{autoAction:!0,bound:!0}),Yo=I4(!1);Object.assign(Yo,bE);var Cc=I4(!0);Object.assign(Cc,OE),Yo.bound=wi(ore),Cc.bound=wi(are);var ure=function(e){return e()},lre=0;og.prototype=Object.create(Error.prototype);var dE=g4("flow"),cre=g4("flow.bound",{bound:!0}),Bu=Object.assign(function(e,t){if(Yp(t))return dE.t(e,t);if(Lu(t))return Hp(e,t,dE);var r=e,n=r.name||"<unnamed flow>",i=function(){var s,o=this,a=arguments,u=++lre,l=Yo(n+" - runid: "+u+" - init",r).apply(o,a),c=void 0,f=new Promise(function(p,d){function m(g){var v;c=void 0;try{v=Yo(n+" - runid: "+u+" - yield "+h++,l.next).call(l,g)}catch(w){return d(w)}D(v)}function y(g){var v;c=void 0;try{v=Yo(n+" - runid: "+u+" - yield "+h++,l.throw).call(l,g)}catch(w){return d(w)}D(v)}function D(g){if(!Cn(g?.then))return g.done?p(g.value):(c=Promise.resolve(g.value)).then(m,y);g.then(D,d)}var h=0;s=d,m(void 0)});return f.cancel=Yo(n+" - runid: "+u+" - cancel",function(){try{c&&X5(c);var p=l.return(void 0),d=Promise.resolve(p.value);d.then(mc,mc),X5(d),s(new og)}catch(m){s(m)}}),f};return i.isMobXFlow=!0,i},dE);Bu.bound=wi(cre);var fre={has:function(e,t){return pc(e).it(t)},get:function(e,t){return pc(e).ct(t)},set:function(e,t,r){var n;return!!Lu(t)&&((n=pc(e).ht(t,r,!0))==null||n)},deleteProperty:function(e,t){var r;return!!Lu(t)&&((r=pc(e).Ut(t,!0))==null||r)},defineProperty:function(e,t,r){var n;return(n=pc(e).v(t,r))==null||n},ownKeys:function(e){return pc(e).rt()},preventExtensions:function(){Ne(13)}},mE=Symbol("mobx-keys"),ts="update",pre={get:function(e,t){var r=e[ve];return t===ve?r:t==="length"?r.Xt():typeof t!="string"||isNaN(t)?Ls(mg,t)?mg[t]:e[t]:r.ct(parseInt(t))},set:function(e,t,r){var n=e[ve];return t==="length"&&n.Ft(r),typeof t=="symbol"||isNaN(t)?e[t]=r:n.ht(parseInt(t),r),!0},preventExtensions:function(){Ne(15)}},RE=function(){function e(r,n,i,s){r===void 0&&(r="ObservableArray"),this.zt=void 0,this.$t=void 0,this.st=void 0,this.j=[],this.et=void 0,this.ut=void 0,this.Jt=void 0,this.dehancer=void 0,this.l=void 0,this.Yt=0,this.zt=i,this.$t=s,this.st=new Xo(r),this.Jt=function(o,a){return n(o,a,"ObservableArray[..]")}}var t=e.prototype;return t.Qt=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.ft=function(r){return this.dehancer!==void 0&&r.length>0?r.map(this.dehancer):r},t._t=function(r){return Xp(this,r)},t.At=function(r,n){return n===void 0&&(n=!1),n&&r({observableKind:"array",object:this.l,debugObjectName:this.st.tt,type:"splice",index:0,added:this.j.slice(),addedCount:this.j.length,removed:[],removedCount:0}),Jp(this,r)},t.Xt=function(){return this.st.reportObserved(),this.j.length},t.Ft=function(r){(typeof r!="number"||isNaN(r)||r<0)&&Ne("Out of range: "+r);var n=this.j.length;if(r!==n)if(r>n){for(var i=new Array(r-n),s=0;s<r-n;s++)i[s]=void 0;this.ot(n,0,i)}else this.ot(r,n-r)},t.Zt=function(r,n){r!==this.Yt&&Ne(16),this.Yt+=n,this.$t&&n>0&&j4(r+n+1)},t.ot=function(r,n,i){var s=this,o=this.j.length;if(r===void 0?r=0:r>o?r=o:r<0&&(r=Math.max(0,o+r)),n=arguments.length===1?o-r:n==null?0:Math.max(0,Math.min(n,o-r)),i===void 0&&(i=EE),Zn(this)){var a=Qn(this,{object:this.l,type:"splice",index:r,removedCount:n,added:i});if(!a)return EE;n=a.removedCount,i=a.added}if(i=i.length===0?i:i.map(function(c){return s.Jt(c,void 0)}),this.$t){var u=i.length-n;this.Zt(o,u)}var l=this.tn(r,n,i);return n===0&&i.length===0||this.nn(r,i,l),this.ft(l)},t.tn=function(r,n,i){var s;if(i.length<1e4)return(s=this.j).splice.apply(s,[r,n].concat(i));var o=this.j.slice(r,r+n),a=this.j.slice(r+n);this.j.length+=i.length-n;for(var u=0;u<i.length;u++)this.j[r+u]=i[u];for(var l=0;l<a.length;l++)this.j[r+i.length+l]=a[l];return o},t.in=function(r,n,i){var s=!this.zt&&!1,o=Ci(this),a=o||s?{observableKind:"array",object:this.l,type:ts,debugObjectName:this.st.tt,index:r,newValue:n,oldValue:i}:null;this.st.reportChanged(),o&&Ei(this,a)},t.nn=function(r,n,i){var s=!this.zt&&!1,o=Ci(this),a=o||s?{observableKind:"array",object:this.l,debugObjectName:this.st.tt,type:"splice",index:r,removed:i,added:n,removedCount:i.length,addedCount:n.length}:null;this.st.reportChanged(),o&&Ei(this,a)},t.ct=function(r){if(!(this.$t&&r>=this.j.length))return this.st.reportObserved(),this.Qt(this.j[r]);console.warn("[mobx] Out of bounds read: "+r)},t.ht=function(r,n){var i=this.j;if(this.$t&&r>i.length&&Ne(17,r,i.length),r<i.length){var s=i[r];if(Zn(this)){var o=Qn(this,{type:ts,object:this.l,index:r,newValue:n});if(!o)return;n=o.newValue}(n=this.Jt(n,s))!==s&&(i[r]=n,this.in(r,n,s))}else{for(var a=new Array(r+1-i.length),u=0;u<a.length-1;u++)a[u]=void 0;a[a.length-1]=n,this.ot(i.length,0,a)}},e}(),mg={clear:function(){return this.splice(0)},replace:function(e){var t=this[ve];return t.ot(0,t.j.length,e)},toJSON:function(){return this.slice()},splice:function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];var s=this[ve];switch(arguments.length){case 0:return[];case 1:return s.ot(e);case 2:return s.ot(e,t)}return s.ot(e,t,n)},spliceWithArray:function(e,t,r){return this[ve].ot(e,t,r)},push:function(){for(var e=this[ve],t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.ot(e.j.length,0,r),e.j.length},pop:function(){return this.splice(Math.max(this[ve].j.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[ve],t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.ot(0,0,r),e.j.length},reverse:function(){return Q.trackingDerivation&&Ne(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){Q.trackingDerivation&&Ne(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[ve],r=t.ft(t.j).indexOf(e);return r>-1&&(this.splice(r,1),!0)}};ot("at",Dn),ot("concat",Dn),ot("flat",Dn),ot("includes",Dn),ot("indexOf",Dn),ot("join",Dn),ot("lastIndexOf",Dn),ot("slice",Dn),ot("toString",Dn),ot("toLocaleString",Dn),ot("toSorted",Dn),ot("toSpliced",Dn),ot("with",Dn),ot("every",Di),ot("filter",Di),ot("find",Di),ot("findIndex",Di),ot("findLast",Di),ot("findLastIndex",Di),ot("flatMap",Di),ot("forEach",Di),ot("map",Di),ot("some",Di),ot("toReversed",Di),ot("reduce",e4),ot("reduceRight",e4);var $p,ng,dre=ea("ObservableArrayAdministration",RE),mre={},Ko="add",BE=function(){function e(r,n,i){var s=this;n===void 0&&(n=Dc),i===void 0&&(i="ObservableMap"),this.Jt=void 0,this.tt=void 0,this[ve]=mre,this.lt=void 0,this.dt=void 0,this.vt=void 0,this.et=void 0,this.ut=void 0,this.dehancer=void 0,this.Jt=n,this.tt=i,Cn(Map)||Ne(18),Qo(function(){s.vt=FE("ObservableMap.keys()"),s.lt=new Map,s.dt=new Map,r&&s.merge(r)})}var t=e.prototype;return t.it=function(r){return this.lt.has(r)},t.has=function(r){var n=this;if(!Q.trackingDerivation)return this.it(r);var i=this.dt.get(r);if(!i){var s=i=new Jo(this.it(r),gg,"ObservableMap.key?",!1);this.dt.set(r,s),PE(s,function(){return n.dt.delete(r)})}return i.get()},t.set=function(r,n){var i=this.it(r);if(Zn(this)){var s=Qn(this,{type:i?ts:Ko,object:this,newValue:n,name:r});if(!s)return this;n=s.newValue}return i?this.rn(r,n):this.en(r,n),this},t.delete=function(r){var n=this;if(Zn(this)&&!Qn(this,{type:"delete",object:this,name:r}))return!1;if(this.it(r)){var i=Ci(this),s=i?{observableKind:"map",debugObjectName:this.tt,type:"delete",object:this,oldValue:this.lt.get(r).Ot,name:r}:null;return Ji(function(){var o;n.vt.reportChanged(),(o=n.dt.get(r))==null||o.gt(!1),n.lt.get(r).gt(void 0),n.lt.delete(r)}),i&&Ei(this,s),!0}return!1},t.rn=function(r,n){var i=this.lt.get(r);if((n=i.xt(n))!==Q.UNCHANGED){var s=Ci(this),o=s?{observableKind:"map",debugObjectName:this.tt,type:ts,object:this,oldValue:i.Ot,name:r,newValue:n}:null;i.gt(n),s&&Ei(this,o)}},t.en=function(r,n){var i=this;Ji(function(){var o,a=new Jo(n,i.Jt,"ObservableMap.key",!1);i.lt.set(r,a),n=a.Ot,(o=i.dt.get(r))==null||o.gt(!0),i.vt.reportChanged()});var s=Ci(this);s&&Ei(this,s?{observableKind:"map",debugObjectName:this.tt,type:Ko,object:this,name:r,newValue:n}:null)},t.get=function(r){return this.has(r)?this.Qt(this.lt.get(r).get()):this.Qt(void 0)},t.Qt=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.keys=function(){return this.vt.reportObserved(),this.lt.keys()},t.values=function(){var r=this,n=this.keys();return qp({next:function(){var i=n.next(),s=i.done;return{done:s,value:s?void 0:r.get(i.value)}}})},t.entries=function(){var r=this,n=this.keys();return qp({next:function(){var i=n.next(),s=i.done,o=i.value;return{done:s,value:s?void 0:[o,r.get(o)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(r,n){for(var i,s=dc(this);!(i=s()).done;){var o=i.value;r.call(n,o[1],o[0],this)}},t.merge=function(r){var n=this;return pr(r)&&(r=new Map(r)),Ji(function(){var i,s;Bs(r)?function(o){var a=Object.keys(o);if(!U4)return a;var u=Object.getOwnPropertySymbols(o);return u.length?[].concat(a,u.filter(function(l){return Zp.propertyIsEnumerable.call(o,l)})):a}(r).forEach(function(o){return n.set(o,r[o])}):Array.isArray(r)?r.forEach(function(o){return n.set(o[0],o[1])}):yc(r)?(i=Object.getPrototypeOf(r),s=Object.getPrototypeOf(i),Object.getPrototypeOf(s)!==null&&Ne(19,r),r.forEach(function(o,a){return n.set(a,o)})):r!=null&&Ne(20,r)}),this},t.clear=function(){var r=this;Ji(function(){IE(function(){for(var n,i=dc(r.keys());!(n=i()).done;)r.delete(n.value)})})},t.replace=function(r){var n=this;return Ji(function(){for(var i,s=function(I){if(yc(I)||pr(I))return I;if(Array.isArray(I))return new Map(I);if(Bs(I)){var A=new Map;for(var W in I)A.set(W,I[W]);return A}return Ne(21,I)}(r),o=new Map,a=!1,u=dc(n.lt.keys());!(i=u()).done;){var l=i.value;if(!s.has(l))if(n.delete(l))a=!0;else{var c=n.lt.get(l);o.set(l,c)}}for(var f,p=dc(s.entries());!(f=p()).done;){var d=f.value,m=d[0],y=d[1],D=n.lt.has(m);if(n.set(m,y),n.lt.has(m)){var h=n.lt.get(m);o.set(m,h),D||(a=!0)}}if(!a)if(n.lt.size!==o.size)n.vt.reportChanged();else for(var g=n.lt.keys(),v=o.keys(),w=g.next(),E=v.next();!w.done;){if(w.value!==E.value){n.vt.reportChanged();break}w=g.next(),E=v.next()}n.lt=o}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.At=function(r){return Jp(this,r)},t._t=function(r){return Xp(this,r)},Ec(e,[{key:"size",get:function(){return this.vt.reportObserved(),this.lt.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),pr=ea("ObservableMap",BE),hre={},kE=function(){function e(r,n,i){var s=this;n===void 0&&(n=Dc),i===void 0&&(i="ObservableSet"),this.tt=void 0,this[ve]=hre,this.lt=new Set,this.st=void 0,this.ut=void 0,this.et=void 0,this.dehancer=void 0,this.Jt=void 0,this.tt=i,Cn(Set)||Ne(22),this.Jt=function(o,a){return n(o,a,i)},Qo(function(){s.st=FE(s.tt),r&&s.replace(r)})}var t=e.prototype;return t.Qt=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.clear=function(){var r=this;Ji(function(){IE(function(){for(var n,i=dc(r.lt.values());!(n=i()).done;)r.delete(n.value)})})},t.forEach=function(r,n){for(var i,s=dc(this);!(i=s()).done;){var o=i.value;r.call(n,o,o,this)}},t.add=function(r){var n=this;if(Zn(this)&&!Qn(this,{type:Ko,object:this,newValue:r}))return this;if(!this.has(r)){Ji(function(){n.lt.add(n.Jt(r,void 0)),n.st.reportChanged()});var i=Ci(this);i&&Ei(this,i?{observableKind:"set",debugObjectName:this.tt,type:Ko,object:this,newValue:r}:null)}return this},t.delete=function(r){var n=this;if(Zn(this)&&!Qn(this,{type:"delete",object:this,oldValue:r}))return!1;if(this.has(r)){var i=Ci(this),s=i?{observableKind:"set",debugObjectName:this.tt,type:"delete",object:this,oldValue:r}:null;return Ji(function(){n.st.reportChanged(),n.lt.delete(r)}),i&&Ei(this,s),!0}return!1},t.has=function(r){return this.st.reportObserved(),this.lt.has(this.Qt(r))},t.entries=function(){var r=0,n=Array.from(this.keys()),i=Array.from(this.values());return qp({next:function(){var s=r;return r+=1,s<i.length?{value:[n[s],i[s]],done:!1}:{done:!0}}})},t.keys=function(){return this.values()},t.values=function(){this.st.reportObserved();var r=this,n=0,i=Array.from(this.lt.values());return qp({next:function(){return n<i.length?{value:r.Qt(i[n++]),done:!1}:{done:!0}}})},t.intersection=function(r){return Ps(r)&&!Ht(r)?r.intersection(this):new Set(this).intersection(r)},t.union=function(r){return Ps(r)&&!Ht(r)?r.union(this):new Set(this).union(r)},t.difference=function(r){return new Set(this).difference(r)},t.symmetricDifference=function(r){return Ps(r)&&!Ht(r)?r.symmetricDifference(this):new Set(this).symmetricDifference(r)},t.isSubsetOf=function(r){return new Set(this).isSubsetOf(r)},t.isSupersetOf=function(r){return new Set(this).isSupersetOf(r)},t.isDisjointFrom=function(r){return Ps(r)&&!Ht(r)?r.isDisjointFrom(this):new Set(this).isDisjointFrom(r)},t.replace=function(r){var n=this;return Ht(r)&&(r=new Set(r)),Ji(function(){Array.isArray(r)||Ps(r)?(n.clear(),r.forEach(function(i){return n.add(i)})):r!=null&&Ne("Cannot initialize set from "+r)}),this},t.At=function(r){return Jp(this,r)},t._t=function(r){return Xp(this,r)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},Ec(e,[{key:"size",get:function(){return this.st.reportObserved(),this.lt.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),Ht=ea("ObservableSet",kE),a4=Object.create(null),q4=function(){function e(r,n,i,s){n===void 0&&(n=new Map),s===void 0&&(s=Zte),this.h=void 0,this.j=void 0,this.tt=void 0,this.un=void 0,this.vt=void 0,this.ut=void 0,this.et=void 0,this.l=void 0,this.p=void 0,this.on=void 0,this.sn=void 0,this.h=r,this.j=n,this.tt=i,this.un=s,this.vt=new Xo("ObservableObject.keys"),this.p=Bs(this.h)}var t=e.prototype;return t.O=function(r){return this.j.get(r).get()},t._=function(r,n){var i=this.j.get(r);if(i instanceof vi)return i.set(n),!0;if(Zn(this)){var s=Qn(this,{type:ts,object:this.l||this.h,name:r,newValue:n});if(!s)return null;n=s.newValue}if((n=i.xt(n))!==Q.UNCHANGED){var o=Ci(this),a=o?{type:ts,observableKind:"object",debugObjectName:this.tt,object:this.l||this.h,oldValue:i.Ot,name:r,newValue:n}:null;i.gt(n),o&&Ei(this,a)}return!0},t.ct=function(r){return Q.trackingDerivation&&!Ls(this.h,r)&&this.it(r),this.h[r]},t.ht=function(r,n,i){return i===void 0&&(i=!1),Ls(this.h,r)?this.j.has(r)?this._(r,n):i?Reflect.set(this.h,r,n):(this.h[r]=n,!0):this.s(r,{value:n,enumerable:!0,writable:!0,configurable:!0},this.un,i)},t.it=function(r){if(!Q.trackingDerivation)return r in this.h;this.sn||(this.sn=new Map);var n=this.sn.get(r);return n||(n=new Jo(r in this.h,gg,"ObservableObject.key?",!1),this.sn.set(r,n)),n.get()},t.o=function(r,n){if(n===!0&&(n=this.un),n!==!1){if(!(r in this.h)){var i;if((i=this.h[Qi])!=null&&i[r])return;Ne(1,n.i,this.tt+"."+r.toString())}for(var s=this.h;s&&s!==Zp;){var o=lg(s,r);if(o){var a=n.o(this,r,o,s);if(a===0)return;if(a===1)break}s=Object.getPrototypeOf(s)}r4(this,0,r)}},t.s=function(r,n,i,s){if(s===void 0&&(s=!1),i===!0&&(i=this.un),i===!1)return this.v(r,n,s);var o=i.s(this,r,n,s);return o&&r4(this,0,r),o},t.v=function(r,n,i){i===void 0&&(i=!1);try{Jr();var s=this.Ut(r);if(!s)return s;if(Zn(this)){var o=Qn(this,{object:this.l||this.h,name:r,type:Ko,newValue:n.value});if(!o)return null;var a=o.newValue;n.value!==a&&(n=ku({},n,{value:a}))}if(i){if(!Reflect.defineProperty(this.h,r,n))return!1}else es(this.h,r,n);this.fn(r,n.value)}finally{Zr()}return!0},t.g=function(r,n,i,s){s===void 0&&(s=!1);try{Jr();var o=this.Ut(r);if(!o)return o;if(Zn(this)){var a=Qn(this,{object:this.l||this.h,name:r,type:Ko,newValue:n});if(!a)return null;n=a.newValue}var u=t4(r),l={configurable:!Q.safeDescriptors||this.p,enumerable:!0,get:u.get,set:u.set};if(s){if(!Reflect.defineProperty(this.h,r,l))return!1}else es(this.h,r,l);var c=new Jo(n,i,"ObservableObject.key",!1);this.j.set(r,c),this.fn(r,c.Ot)}finally{Zr()}return!0},t.m=function(r,n,i){i===void 0&&(i=!1);try{Jr();var s=this.Ut(r);if(!s)return s;if(Zn(this)&&!Qn(this,{object:this.l||this.h,name:r,type:Ko,newValue:void 0}))return null;n.name||(n.name="ObservableObject.key"),n.context=this.l||this.h;var o=t4(r),a={configurable:!Q.safeDescriptors||this.p,enumerable:!1,get:o.get,set:o.set};if(i){if(!Reflect.defineProperty(this.h,r,a))return!1}else es(this.h,r,a);this.j.set(r,new vi(n)),this.fn(r,void 0)}finally{Zr()}return!0},t.Ut=function(r,n){if(n===void 0&&(n=!1),!Ls(this.h,r))return!0;if(Zn(this)&&!Qn(this,{object:this.l||this.h,name:r,type:"remove"}))return null;try{var i;Jr();var s,o=Ci(this),a=this.j.get(r),u=void 0;if(!a&&o&&(u=(s=lg(this.h,r))==null?void 0:s.value),n){if(!Reflect.deleteProperty(this.h,r))return!1}else delete this.h[r];a&&(this.j.delete(r),a instanceof Jo&&(u=a.Ot),F4(a)),this.vt.reportChanged(),(i=this.sn)==null||(i=i.get(r))==null||i.set(r in this.h),o&&o&&Ei(this,{type:"remove",observableKind:"object",object:this.l||this.h,debugObjectName:this.tt,oldValue:u,name:r})}finally{Zr()}return!0},t.At=function(r){return Jp(this,r)},t._t=function(r){return Xp(this,r)},t.fn=function(r,n){var i,s=Ci(this);s&&s&&Ei(this,s?{type:Ko,observableKind:"object",debugObjectName:this.tt,object:this.l||this.h,name:r,newValue:n}:null),(i=this.sn)==null||(i=i.get(r))==null||i.set(!0),this.vt.reportChanged()},t.rt=function(){return this.vt.reportObserved(),gc(this.h)},t.nt=function(){return this.vt.reportObserved(),Object.keys(this.h)},e}(),gre=ea("ObservableObjectAdministration",q4),yre=M4(0),Dre=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1}(),hE=0,z4=function(){};$p=z4,ng=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf($p.prototype,ng):$p.prototype.__proto__!==void 0?$p.prototype.__proto__=ng:$p.prototype=ng;var ME=function(e){function t(n,i,s,o){var a;return s===void 0&&(s="ObservableArray"),o===void 0&&(o=!1),a=e.call(this)||this,Qo(function(){var u=new RE(s,i,o,!0);u.l=a,p4(a,ve,u),n&&n.length&&a.spliceWithArray(0,0,n),Dre&&Object.defineProperty(a,"0",yre)}),a}m4(t,e);var r=t.prototype;return r.concat=function(){this[ve].st.reportObserved();for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return Array.prototype.concat.apply(this.slice(),i.map(function(o){return Xr(o)?o.slice():o}))},r[Symbol.iterator]=function(){var n=this,i=0;return qp({next:function(){return i<n.length?{value:n[i++],done:!1}:{done:!0,value:void 0}}})},Ec(t,[{key:"length",get:function(){return this[ve].Xt()},set:function(n){this[ve].Ft(n)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(z4);Object.entries(mg).forEach(function(e){var t=e[0];t!=="concat"&&Gp(ME.prototype,t,e[1])}),j4(1e3);var u4=Zp.toString;["Symbol","Map","Set"].forEach(function(e){gE()[e]===void 0&&Ne("MobX requires global '"+e+"' to be available or polyfilled")}),typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Y5,extras:{getDebugName:ug},$mobx:ve}),ue.$mobx=ve,ue.FlowCancellationError=og,ue.ObservableMap=BE,ue.ObservableSet=kE,ue.Reaction=Zi,ue._allowStateChanges=yE,ue._allowStateChangesInsideComputed=K5,ue._allowStateReadsEnd=hc,ue._allowStateReadsStart=wg,ue._autoAction=Cc,ue._endAction=E4,ue._getAdministration=Ts,ue._getGlobalState=function(){return Q},ue._interceptReads=function(e,t,r){var n;return pr(e)||Xr(e)||pE(e)?n=Ts(e):fr(e)&&(n=Ts(e,t)),n.dehancer=typeof t=="function"?t:r,function(){n.dehancer=void 0}},ue._isComputingDerivation=function(){return Q.trackingDerivation!==null},ue._resetGlobalState=function(){var e=new Wp;for(var t in e)sre.indexOf(t)===-1&&(Q[t]=e[t]);Q.allowStateChanges=!Q.enforceActions},ue._startAction=C4,ue.action=Yo,ue.autorun=TE,ue.comparer=Pu,ue.computed=zp,ue.configure=function(e){e.isolateGlobalState===!0&&function(){if((Q.pendingReactions.length||Q.inBatch||Q.isRunningReactions)&&Ne(36),G4=!0,sg){var o=gE();--o.__mobxInstanceCount==0&&(o.__mobxGlobals=void 0),Q=new Wp}}();var t,r,n=e.useProxies,i=e.enforceActions;if(n!==void 0&&(Q.useProxies=n==="always"||n!=="never"&&typeof Proxy<"u"),n==="ifavailable"&&(Q.verifyProxies=!0),i!==void 0){var s=i==="always"?"always":i==="observed";Q.enforceActions=s,Q.allowStateChanges=s!==!0&&s!=="always"}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(o){o in e&&(Q[o]=!!e[o])}),Q.allowStateReads=!Q.observableRequiresReaction,e.reactionScheduler&&(t=e.reactionScheduler,r=_E,_E=function(o){return t(function(){return r(o)})})},ue.createAtom=FE,ue.defineProperty=function(e,t,r){if(fr(e))return e[ve].v(t,r);Ne(39)},ue.entries=function(e){return fr(e)?Up(e).map(function(t){return[t,e[t]]}):pr(e)?Up(e).map(function(t){return[t,e.get(t)]}):Ht(e)?Array.from(e.entries()):Xr(e)?e.map(function(t,r){return[r,t]}):void Ne(7)},ue.extendObservable=wE,ue.flow=Bu,ue.flowResult=function(e){return e},ue.get=function(e,t){if(Z5(e,t))return fr(e)?e[ve].ct(t):pr(e)?e.get(t):Xr(e)?e[t]:void Ne(11)},ue.getAtom=Rs,ue.getDebugName=ug,ue.getDependencyTree=function(e,t){return N4(Rs(e,t))},ue.getObserverTree=function(e,t){return R4(Rs(e,t))},ue.has=Z5,ue.intercept=function(e,t,r){return Cn(r)?function(n,i,s){return Ts(n,i)._t(s)}(e,t,r):function(n,i){return Ts(n)._t(i)}(e,t)},ue.isAction=vc,ue.isBoxedObservable=pE,ue.isComputed=function(e){return J5(e)},ue.isComputedProp=function(e,t){return J5(e,t)},ue.isFlow=wc,ue.isFlowCancellationError=function(e){return e instanceof og},ue.isObservable=ag,ue.isObservableArray=Xr,ue.isObservableMap=pr,ue.isObservableObject=fr,ue.isObservableProp=function(e,t){return B4(e,t)},ue.isObservableSet=Ht,ue.keys=Up,ue.makeAutoObservable=function(e,t,r){return Bs(e)?wE(e,e,t,r):(Qo(function(){var n=Nu(e,r)[ve];if(!e[mE]){var i=Object.getPrototypeOf(e),s=new Set([].concat(gc(e),gc(i)));s.delete("constructor"),s.delete(ve),Gp(i,mE,s)}e[mE].forEach(function(o){return n.o(o,!t||!(o in t)||t[o])})}),e)},ue.makeObservable=function(e,t,r){return Qo(function(){var n=Nu(e,r)[ve];t!=null||(t=function(i){return Ls(i,Qi)||Gp(i,Qi,ku({},i[Qi])),i[Qi]}(e)),gc(t).forEach(function(i){return n.o(i,t[i])})}),e},ue.observable=ir,ue.observe=function(e,t,r,n){return Cn(r)?function(i,s,o,a){return Ts(i,s).At(o,a)}(e,t,r,n):function(i,s,o){return Ts(i).At(s,o)}(e,t,r)},ue.onBecomeObserved=P4,ue.onBecomeUnobserved=PE,ue.onReactionError=function(e){return Q.globalReactionErrorHandlers.push(e),function(){var t=Q.globalReactionErrorHandlers.indexOf(e);t>=0&&Q.globalReactionErrorHandlers.splice(t,1)}},ue.override=Jte,ue.ownKeys=Q5,ue.reaction=function(e,t,r){function n(){if(y=!1,!h.isDisposed){var g=!1,v=l;h.track(function(){var w=yE(!1,function(){return e(h)});g=m||!D(l,w),l=w}),(m&&r.fireImmediately||!m&&g)&&f(l,v,h),m=!1}}var i,s,o;r===void 0&&(r=LE);var a,u,l,c=(i=r.name)!=null?i:"Reaction",f=Yo(c,r.onError?(a=r.onError,u=t,function(){try{return u.apply(this,arguments)}catch(g){a.call(this,g)}}):t),p=!r.scheduler&&!r.delay,d=T4(r),m=!0,y=!1,D=r.compareStructural?Pu.structural:r.equals||Pu.default,h=new Zi(c,function(){m||p?n():y||(y=!0,d(n))},r.onError,r.requiresObservable);return(s=r)!=null&&(s=s.signal)!=null&&s.aborted||h.Y(),h.Z((o=r)==null?void 0:o.signal)},ue.remove=function(e,t){fr(e)?e[ve].Ut(t):pr(e)||Ht(e)?e.delete(t):Xr(e)?(typeof t!="number"&&(t=parseInt(t,10)),e.splice(t,1)):Ne(9)},ue.runInAction=K5,ue.set=function e(t,r,n){if(arguments.length!==2||Ht(t))fr(t)?t[ve].ht(r,n):pr(t)?t.set(r,n):Ht(t)?t.add(r):Xr(t)?(typeof r!="number"&&(r=parseInt(r,10)),r<0&&Ne("Invalid index: '"+r+"'"),Jr(),r>=t.length&&(t.length=r+1),t[r]=n,Zr()):Ne(8);else{Jr();var i=r;try{for(var s in i)e(t,s,i[s])}finally{Zr()}}},ue.spy=Y5,ue.toJS=function(e){return function t(r,n){if(r==null||typeof r!="object"||r instanceof Date||!ag(r))return r;if(pE(r)||Ru(r))return t(r.get(),n);if(n.has(r))return n.get(r);if(Xr(r)){var i=rg(n,r,new Array(r.length));return r.forEach(function(u,l){i[l]=t(u,n)}),i}if(Ht(r)){var s=rg(n,r,new Set);return r.forEach(function(u){s.add(t(u,n))}),s}if(pr(r)){var o=rg(n,r,new Map);return r.forEach(function(u,l){o.set(l,t(u,n))}),o}var a=rg(n,r,{});return Q5(r).forEach(function(u){Zp.propertyIsEnumerable.call(r,u)&&(a[u]=t(r[u],n))}),a}(e,new Map)},ue.trace=function(){},ue.transaction=Ji,ue.untracked=IE,ue.values=function(e){return fr(e)?Up(e).map(function(t){return e[t]}):pr(e)?Up(e).map(function(t){return e.get(t)}):Ht(e)?Array.from(e.values()):Xr(e)?e.slice():void Ne(6)},ue.when=function(e,t,r){return arguments.length===1||t&&typeof t=="object"?$te(e,t):k4(e,t,r||{})}});var Qp=N((SSe,Y4)=>{"use strict";Y4.exports=H4()});var vB=N(at=>{"use strict";function YE(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,i=e[n];if(0<Cg(i,t))e[n]=t,e[r]=i,r=n;else break e}}function _i(e){return e.length===0?null:e[0]}function Sg(e){if(e.length===0)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,i=e.length,s=i>>>1;n<s;){var o=2*(n+1)-1,a=e[o],u=o+1,l=e[u];if(0>Cg(a,r))u<i&&0>Cg(l,a)?(e[n]=l,e[u]=r,n=u):(e[n]=a,e[o]=r,n=o);else if(u<i&&0>Cg(l,r))e[n]=l,e[u]=r,n=u;else break e}}return t}function Cg(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(cB=performance,at.unstable_now=function(){return cB.now()}):(qE=Date,fB=qE.now(),at.unstable_now=function(){return qE.now()-fB});var cB,qE,fB,rs=[],ta=[],vre=1,ei=null,_r=3,xg=!1,ju=!1,td=!1,mB=typeof setTimeout=="function"?setTimeout:null,hB=typeof clearTimeout=="function"?clearTimeout:null,pB=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function KE(e){for(var t=_i(ta);t!==null;){if(t.callback===null)Sg(ta);else if(t.startTime<=e)Sg(ta),t.sortIndex=t.expirationTime,YE(rs,t);else break;t=_i(ta)}}function XE(e){if(td=!1,KE(e),!ju)if(_i(rs)!==null)ju=!0,ZE(JE);else{var t=_i(ta);t!==null&&QE(XE,t.startTime-e)}}function JE(e,t){ju=!1,td&&(td=!1,hB(rd),rd=-1),xg=!0;var r=_r;try{for(KE(t),ei=_i(rs);ei!==null&&(!(ei.expirationTime>t)||e&&!DB());){var n=ei.callback;if(typeof n=="function"){ei.callback=null,_r=ei.priorityLevel;var i=n(ei.expirationTime<=t);t=at.unstable_now(),typeof i=="function"?ei.callback=i:ei===_i(rs)&&Sg(rs),KE(t)}else Sg(rs);ei=_i(rs)}if(ei!==null)var s=!0;else{var o=_i(ta);o!==null&&QE(XE,o.startTime-t),s=!1}return s}finally{ei=null,_r=r,xg=!1}}var _g=!1,Eg=null,rd=-1,gB=5,yB=-1;function DB(){return!(at.unstable_now()-yB<gB)}function zE(){if(Eg!==null){var e=at.unstable_now();yB=e;var t=!0;try{t=Eg(!0,e)}finally{t?ed():(_g=!1,Eg=null)}}else _g=!1}var ed;typeof pB=="function"?ed=function(){pB(zE)}:typeof MessageChannel<"u"?(HE=new MessageChannel,dB=HE.port2,HE.port1.onmessage=zE,ed=function(){dB.postMessage(null)}):ed=function(){mB(zE,0)};var HE,dB;function ZE(e){Eg=e,_g||(_g=!0,ed())}function QE(e,t){rd=mB(function(){e(at.unstable_now())},t)}at.unstable_IdlePriority=5;at.unstable_ImmediatePriority=1;at.unstable_LowPriority=4;at.unstable_NormalPriority=3;at.unstable_Profiling=null;at.unstable_UserBlockingPriority=2;at.unstable_cancelCallback=function(e){e.callback=null};at.unstable_continueExecution=function(){ju||xg||(ju=!0,ZE(JE))};at.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):gB=0<e?Math.floor(1e3/e):5};at.unstable_getCurrentPriorityLevel=function(){return _r};at.unstable_getFirstCallbackNode=function(){return _i(rs)};at.unstable_next=function(e){switch(_r){case 1:case 2:case 3:var t=3;break;default:t=_r}var r=_r;_r=t;try{return e()}finally{_r=r}};at.unstable_pauseExecution=function(){};at.unstable_requestPaint=function(){};at.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=_r;_r=e;try{return t()}finally{_r=r}};at.unstable_scheduleCallback=function(e,t,r){var n=at.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?n+r:n):r=n,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return i=r+i,e={id:vre++,callback:t,priorityLevel:e,startTime:r,expirationTime:i,sortIndex:-1},r>n?(e.sortIndex=r,YE(ta,e),_i(rs)===null&&e===_i(ta)&&(td?(hB(rd),rd=-1):td=!0,QE(XE,r-n))):(e.sortIndex=i,YE(rs,e),ju||xg||(ju=!0,ZE(JE))),e};at.unstable_shouldYield=DB;at.unstable_wrapCallback=function(e){var t=_r;return function(){var r=_r;_r=t;try{return e.apply(this,arguments)}finally{_r=r}}}});var CB=N((FSe,wB)=>{"use strict";wB.exports=vB()});var _k=N(On=>{"use strict";var wre=V("react"),_n=CB();function J(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var F6=new Set,xd={};function Zu(e,t){Wc(e,t),Wc(e+"Capture",t)}function Wc(e,t){for(xd[e]=t,e=0;e<t.length;e++)F6.add(t[e])}var $s=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ES=Object.prototype.hasOwnProperty,Cre=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,EB={},SB={};function Ere(e){return ES.call(SB,e)?!0:ES.call(EB,e)?!1:Cre.test(e)?SB[e]=!0:(EB[e]=!0,!1)}function Sre(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function xre(e,t,r,n){if(t===null||typeof t>"u"||Sre(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function $r(e,t,r,n,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var gr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){gr[e]=new $r(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];gr[t]=new $r(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){gr[e]=new $r(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){gr[e]=new $r(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){gr[e]=new $r(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){gr[e]=new $r(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){gr[e]=new $r(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){gr[e]=new $r(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){gr[e]=new $r(e,5,!1,e.toLowerCase(),null,!1,!1)});var mx=/[\-:]([a-z])/g;function hx(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(mx,hx);gr[t]=new $r(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(mx,hx);gr[t]=new $r(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(mx,hx);gr[t]=new $r(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){gr[e]=new $r(e,1,!1,e.toLowerCase(),null,!1,!1)});gr.xlinkHref=new $r("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){gr[e]=new $r(e,1,!1,e.toLowerCase(),null,!0,!0)});function gx(e,t,r,n){var i=gr.hasOwnProperty(t)?gr[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(xre(t,r,i,n)&&(r=null),n||i===null?Ere(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var zs=wre.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,bg=Symbol.for("react.element"),_c=Symbol.for("react.portal"),bc=Symbol.for("react.fragment"),yx=Symbol.for("react.strict_mode"),SS=Symbol.for("react.profiler"),A6=Symbol.for("react.provider"),I6=Symbol.for("react.context"),Dx=Symbol.for("react.forward_ref"),xS=Symbol.for("react.suspense"),_S=Symbol.for("react.suspense_list"),vx=Symbol.for("react.memo"),na=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var T6=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var xB=Symbol.iterator;function nd(e){return e===null||typeof e!="object"?null:(e=xB&&e[xB]||e["@@iterator"],typeof e=="function"?e:null)}var At=Object.assign,eS;function fd(e){if(eS===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);eS=t&&t[1]||""}return`
|
|
419
419
|
`+eS+e}var tS=!1;function rS(e,t){if(!e||tS)return"";tS=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var n=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){n=l}e.call(t.prototype)}else{try{throw Error()}catch(l){n=l}e()}}catch(l){if(l&&n&&typeof l.stack=="string"){for(var i=l.stack.split(`
|
|
420
420
|
`),s=n.stack.split(`
|
|
421
421
|
`),o=i.length-1,a=s.length-1;1<=o&&0<=a&&i[o]!==s[a];)a--;for(;1<=o&&0<=a;o--,a--)if(i[o]!==s[a]){if(o!==1||a!==1)do if(o--,a--,0>a||i[o]!==s[a]){var u=`
|
|
422
|
-
`+i[o].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=o&&0<=a);break}}}finally{tS=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?fd(e):""}function _re(e){switch(e.tag){case 5:return fd(e.type);case 16:return fd("Lazy");case 13:return fd("Suspense");case 19:return fd("SuspenseList");case 0:case 2:case 15:return e=rS(e.type,!1),e;case 11:return e=rS(e.type.render,!1),e;case 1:return e=rS(e.type,!0),e;default:return""}}function bS(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case bc:return"Fragment";case _c:return"Portal";case SS:return"Profiler";case yx:return"StrictMode";case xS:return"Suspense";case _S:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case I6:return(e.displayName||"Context")+".Consumer";case A6:return(e._context.displayName||"Context")+".Provider";case Dx:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case vx:return t=e.displayName||null,t!==null?t:bS(e.type)||"Memo";case na:t=e._payload,e=e._init;try{return bS(e(t))}catch{}}return null}function bre(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return bS(t);case 8:return t===yx?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ya(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function P6(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ore(e){var t=P6(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,s=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Og(e){e._valueTracker||(e._valueTracker=Ore(e))}function L6(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=P6(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function ty(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function OS(e,t){var r=t.checked;return At({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function _B(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=ya(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function N6(e,t){t=t.checked,t!=null&&gx(e,"checked",t,!1)}function FS(e,t){N6(e,t);var r=ya(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?AS(e,t.type,r):t.hasOwnProperty("defaultValue")&&AS(e,t.type,ya(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function bB(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function AS(e,t,r){(t!=="number"||ty(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var pd=Array.isArray;function kc(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+ya(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function IS(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(J(91));return At({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function OB(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(J(92));if(pd(r)){if(1<r.length)throw Error(J(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:ya(r)}}function R6(e,t){var r=ya(t.value),n=ya(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function FB(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function B6(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function TS(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?B6(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Fg,k6=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Fg=Fg||document.createElement("div"),Fg.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Fg.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function _d(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var hd={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Fre=["Webkit","ms","Moz","O"];Object.keys(hd).forEach(function(e){Fre.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),hd[t]=hd[e]})});function M6(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||hd.hasOwnProperty(e)&&hd[e]?(""+t).trim():t+"px"}function j6(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=M6(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var Are=At({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function PS(e,t){if(t){if(Are[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(J(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(J(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(J(61))}if(t.style!=null&&typeof t.style!="object")throw Error(J(62))}}function LS(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var NS=null;function wx(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var RS=null,Mc=null,jc=null;function AB(e){if(e=Wd(e)){if(typeof RS!="function")throw Error(J(280));var t=e.stateNode;t&&(t=Ay(t),RS(e.stateNode,e.type,t))}}function V6(e){Mc?jc?jc.push(e):jc=[e]:Mc=e}function U6(){if(Mc){var e=Mc,t=jc;if(jc=Mc=null,AB(e),t)for(e=0;e<t.length;e++)AB(t[e])}}function $6(e,t){return e(t)}function W6(){}var nS=!1;function G6(e,t,r){if(nS)return e(t,r);nS=!0;try{return $6(e,t,r)}finally{nS=!1,(Mc!==null||jc!==null)&&(W6(),U6())}}function bd(e,t){var r=e.stateNode;if(r===null)return null;var n=Ay(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(J(231,t,typeof r));return r}var BS=!1;if($s)try{Sc={},Object.defineProperty(Sc,"passive",{get:function(){BS=!0}}),window.addEventListener("test",Sc,Sc),window.removeEventListener("test",Sc,Sc)}catch{BS=!1}var Sc;function Ire(e,t,r,n,i,s,o,a,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(r,l)}catch(c){this.onError(c)}}var gd=!1,ry=null,ny=!1,kS=null,Tre={onError:function(e){gd=!0,ry=e}};function Pre(e,t,r,n,i,s,o,a,u){gd=!1,ry=null,Ire.apply(Tre,arguments)}function Lre(e,t,r,n,i,s,o,a,u){if(Pre.apply(this,arguments),gd){if(gd){var l=ry;gd=!1,ry=null}else throw Error(J(198));ny||(ny=!0,kS=l)}}function Qu(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function q6(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function IB(e){if(Qu(e)!==e)throw Error(J(188))}function Nre(e){var t=e.alternate;if(!t){if(t=Qu(e),t===null)throw Error(J(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var s=i.alternate;if(s===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===r)return IB(i),e;if(s===n)return IB(i),t;s=s.sibling}throw Error(J(188))}if(r.return!==n.return)r=i,n=s;else{for(var o=!1,a=i.child;a;){if(a===r){o=!0,r=i,n=s;break}if(a===n){o=!0,n=i,r=s;break}a=a.sibling}if(!o){for(a=s.child;a;){if(a===r){o=!0,r=s,n=i;break}if(a===n){o=!0,n=s,r=i;break}a=a.sibling}if(!o)throw Error(J(189))}}if(r.alternate!==n)throw Error(J(190))}if(r.tag!==3)throw Error(J(188));return r.stateNode.current===r?e:t}function z6(e){return e=Nre(e),e!==null?H6(e):null}function H6(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=H6(e);if(t!==null)return t;e=e.sibling}return null}var Y6=_n.unstable_scheduleCallback,TB=_n.unstable_cancelCallback,Rre=_n.unstable_shouldYield,Bre=_n.unstable_requestPaint,kt=_n.unstable_now,kre=_n.unstable_getCurrentPriorityLevel,Cx=_n.unstable_ImmediatePriority,K6=_n.unstable_UserBlockingPriority,iy=_n.unstable_NormalPriority,Mre=_n.unstable_LowPriority,X6=_n.unstable_IdlePriority,_y=null,as=null;function jre(e){if(as&&typeof as.onCommitFiberRoot=="function")try{as.onCommitFiberRoot(_y,e,void 0,(e.current.flags&128)===128)}catch{}}var Ii=Math.clz32?Math.clz32:$re,Vre=Math.log,Ure=Math.LN2;function $re(e){return e>>>=0,e===0?32:31-(Vre(e)/Ure|0)|0}var Ag=64,Ig=4194304;function dd(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function sy(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,s=e.pingedLanes,o=r&268435455;if(o!==0){var a=o&~i;a!==0?n=dd(a):(s&=o,s!==0&&(n=dd(s)))}else o=r&~i,o!==0?n=dd(o):s!==0&&(n=dd(s));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-Ii(t),i=1<<r,n|=e[r],t&=~i;return n}function Wre(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Gre(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-Ii(s),a=1<<o,u=i[o];u===-1?(!(a&r)||a&n)&&(i[o]=Wre(a,t)):u<=t&&(e.expiredLanes|=a),s&=~a}}function MS(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function J6(){var e=Ag;return Ag<<=1,!(Ag&4194240)&&(Ag=64),e}function iS(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Ud(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ii(t),e[t]=r}function qre(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-Ii(r),s=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~s}}function Ex(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Ii(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var tt=0;function Z6(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Q6,Sx,e8,t8,r8,jS=!1,Tg=[],la=null,ca=null,fa=null,Od=new Map,Fd=new Map,sa=[],zre="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function PB(e,t){switch(e){case"focusin":case"focusout":la=null;break;case"dragenter":case"dragleave":ca=null;break;case"mouseover":case"mouseout":fa=null;break;case"pointerover":case"pointerout":Od.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fd.delete(t.pointerId)}}function id(e,t,r,n,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:s,targetContainers:[i]},t!==null&&(t=Wd(t),t!==null&&Sx(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Hre(e,t,r,n,i){switch(t){case"focusin":return la=id(la,e,t,r,n,i),!0;case"dragenter":return ca=id(ca,e,t,r,n,i),!0;case"mouseover":return fa=id(fa,e,t,r,n,i),!0;case"pointerover":var s=i.pointerId;return Od.set(s,id(Od.get(s)||null,e,t,r,n,i)),!0;case"gotpointercapture":return s=i.pointerId,Fd.set(s,id(Fd.get(s)||null,e,t,r,n,i)),!0}return!1}function n8(e){var t=$u(e.target);if(t!==null){var r=Qu(t);if(r!==null){if(t=r.tag,t===13){if(t=q6(r),t!==null){e.blockedOn=t,r8(e.priority,function(){e8(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function qg(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=VS(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);NS=n,r.target.dispatchEvent(n),NS=null}else return t=Wd(r),t!==null&&Sx(t),e.blockedOn=r,!1;t.shift()}return!0}function LB(e,t,r){qg(e)&&r.delete(t)}function Yre(){jS=!1,la!==null&&qg(la)&&(la=null),ca!==null&&qg(ca)&&(ca=null),fa!==null&&qg(fa)&&(fa=null),Od.forEach(LB),Fd.forEach(LB)}function sd(e,t){e.blockedOn===t&&(e.blockedOn=null,jS||(jS=!0,_n.unstable_scheduleCallback(_n.unstable_NormalPriority,Yre)))}function Ad(e){function t(i){return sd(i,e)}if(0<Tg.length){sd(Tg[0],e);for(var r=1;r<Tg.length;r++){var n=Tg[r];n.blockedOn===e&&(n.blockedOn=null)}}for(la!==null&&sd(la,e),ca!==null&&sd(ca,e),fa!==null&&sd(fa,e),Od.forEach(t),Fd.forEach(t),r=0;r<sa.length;r++)n=sa[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<sa.length&&(r=sa[0],r.blockedOn===null);)n8(r),r.blockedOn===null&&sa.shift()}var Vc=zs.ReactCurrentBatchConfig,oy=!0;function Kre(e,t,r,n){var i=tt,s=Vc.transition;Vc.transition=null;try{tt=1,xx(e,t,r,n)}finally{tt=i,Vc.transition=s}}function Xre(e,t,r,n){var i=tt,s=Vc.transition;Vc.transition=null;try{tt=4,xx(e,t,r,n)}finally{tt=i,Vc.transition=s}}function xx(e,t,r,n){if(oy){var i=VS(e,t,r,n);if(i===null)fS(e,t,n,ay,r),PB(e,n);else if(Hre(i,e,t,r,n))n.stopPropagation();else if(PB(e,n),t&4&&-1<zre.indexOf(e)){for(;i!==null;){var s=Wd(i);if(s!==null&&Q6(s),s=VS(e,t,r,n),s===null&&fS(e,t,n,ay,r),s===i)break;i=s}i!==null&&n.stopPropagation()}else fS(e,t,n,null,r)}}var ay=null;function VS(e,t,r,n){if(ay=null,e=wx(n),e=$u(e),e!==null)if(t=Qu(e),t===null)e=null;else if(r=t.tag,r===13){if(e=q6(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ay=e,null}function i8(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(kre()){case Cx:return 1;case K6:return 4;case iy:case Mre:return 16;case X6:return 536870912;default:return 16}default:return 16}}var aa=null,_x=null,zg=null;function s8(){if(zg)return zg;var e,t=_x,r=t.length,n,i="value"in aa?aa.value:aa.textContent,s=i.length;for(e=0;e<r&&t[e]===i[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===i[s-n];n++);return zg=i.slice(e,1<n?1-n:void 0)}function Hg(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Pg(){return!0}function NB(){return!1}function bn(e){function t(r,n,i,s,o){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(r=e[a],this[a]=r?r(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Pg:NB,this.isPropagationStopped=NB,this}return At(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Pg)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Pg)},persist:function(){},isPersistent:Pg}),t}var Xc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},bx=bn(Xc),$d=At({},Xc,{view:0,detail:0}),Jre=bn($d),sS,oS,od,by=At({},$d,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ox,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==od&&(od&&e.type==="mousemove"?(sS=e.screenX-od.screenX,oS=e.screenY-od.screenY):oS=sS=0,od=e),sS)},movementY:function(e){return"movementY"in e?e.movementY:oS}}),RB=bn(by),Zre=At({},by,{dataTransfer:0}),Qre=bn(Zre),ene=At({},$d,{relatedTarget:0}),aS=bn(ene),tne=At({},Xc,{animationName:0,elapsedTime:0,pseudoElement:0}),rne=bn(tne),nne=At({},Xc,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ine=bn(nne),sne=At({},Xc,{data:0}),BB=bn(sne),one={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ane={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},une={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function lne(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=une[e])?!!t[e]:!1}function Ox(){return lne}var cne=At({},$d,{key:function(e){if(e.key){var t=one[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Hg(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ane[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ox,charCode:function(e){return e.type==="keypress"?Hg(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Hg(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),fne=bn(cne),pne=At({},by,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kB=bn(pne),dne=At({},$d,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ox}),mne=bn(dne),hne=At({},Xc,{propertyName:0,elapsedTime:0,pseudoElement:0}),gne=bn(hne),yne=At({},by,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Dne=bn(yne),vne=[9,13,27,32],Fx=$s&&"CompositionEvent"in window,yd=null;$s&&"documentMode"in document&&(yd=document.documentMode);var wne=$s&&"TextEvent"in window&&!yd,o8=$s&&(!Fx||yd&&8<yd&&11>=yd),MB=" ",jB=!1;function a8(e,t){switch(e){case"keyup":return vne.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function u8(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Oc=!1;function Cne(e,t){switch(e){case"compositionend":return u8(t);case"keypress":return t.which!==32?null:(jB=!0,MB);case"textInput":return e=t.data,e===MB&&jB?null:e;default:return null}}function Ene(e,t){if(Oc)return e==="compositionend"||!Fx&&a8(e,t)?(e=s8(),zg=_x=aa=null,Oc=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return o8&&t.locale!=="ko"?null:t.data;default:return null}}var Sne={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function VB(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Sne[e.type]:t==="textarea"}function l8(e,t,r,n){V6(n),t=uy(t,"onChange"),0<t.length&&(r=new bx("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Dd=null,Id=null;function xne(e){w8(e,0)}function Oy(e){var t=Ic(e);if(L6(t))return e}function _ne(e,t){if(e==="change")return t}var c8=!1;$s&&($s?(Ng="oninput"in document,Ng||(uS=document.createElement("div"),uS.setAttribute("oninput","return;"),Ng=typeof uS.oninput=="function"),Lg=Ng):Lg=!1,c8=Lg&&(!document.documentMode||9<document.documentMode));var Lg,Ng,uS;function UB(){Dd&&(Dd.detachEvent("onpropertychange",f8),Id=Dd=null)}function f8(e){if(e.propertyName==="value"&&Oy(Id)){var t=[];l8(t,Id,e,wx(e)),G6(xne,t)}}function bne(e,t,r){e==="focusin"?(UB(),Dd=t,Id=r,Dd.attachEvent("onpropertychange",f8)):e==="focusout"&&UB()}function One(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Oy(Id)}function Fne(e,t){if(e==="click")return Oy(t)}function Ane(e,t){if(e==="input"||e==="change")return Oy(t)}function Ine(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Pi=typeof Object.is=="function"?Object.is:Ine;function Td(e,t){if(Pi(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!ES.call(t,i)||!Pi(e[i],t[i]))return!1}return!0}function $B(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function WB(e,t){var r=$B(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=$B(r)}}function p8(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?p8(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function d8(){for(var e=window,t=ty();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=ty(e.document)}return t}function Ax(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Tne(e){var t=d8(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&p8(r.ownerDocument.documentElement,r)){if(n!==null&&Ax(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,s=Math.min(n.start,i);n=n.end===void 0?s:Math.min(n.end,i),!e.extend&&s>n&&(i=n,n=s,s=i),i=WB(r,s);var o=WB(r,n);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Pne=$s&&"documentMode"in document&&11>=document.documentMode,Fc=null,US=null,vd=null,$S=!1;function GB(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;$S||Fc==null||Fc!==ty(n)||(n=Fc,"selectionStart"in n&&Ax(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),vd&&Td(vd,n)||(vd=n,n=uy(US,"onSelect"),0<n.length&&(t=new bx("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Fc)))}function Rg(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Ac={animationend:Rg("Animation","AnimationEnd"),animationiteration:Rg("Animation","AnimationIteration"),animationstart:Rg("Animation","AnimationStart"),transitionend:Rg("Transition","TransitionEnd")},lS={},m8={};$s&&(m8=document.createElement("div").style,"AnimationEvent"in window||(delete Ac.animationend.animation,delete Ac.animationiteration.animation,delete Ac.animationstart.animation),"TransitionEvent"in window||delete Ac.transitionend.transition);function Fy(e){if(lS[e])return lS[e];if(!Ac[e])return e;var t=Ac[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in m8)return lS[e]=t[r];return e}var h8=Fy("animationend"),g8=Fy("animationiteration"),y8=Fy("animationstart"),D8=Fy("transitionend"),v8=new Map,qB="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function va(e,t){v8.set(e,t),Zu(t,[e])}for(Bg=0;Bg<qB.length;Bg++)kg=qB[Bg],zB=kg.toLowerCase(),HB=kg[0].toUpperCase()+kg.slice(1),va(zB,"on"+HB);var kg,zB,HB,Bg;va(h8,"onAnimationEnd");va(g8,"onAnimationIteration");va(y8,"onAnimationStart");va("dblclick","onDoubleClick");va("focusin","onFocus");va("focusout","onBlur");va(D8,"onTransitionEnd");Wc("onMouseEnter",["mouseout","mouseover"]);Wc("onMouseLeave",["mouseout","mouseover"]);Wc("onPointerEnter",["pointerout","pointerover"]);Wc("onPointerLeave",["pointerout","pointerover"]);Zu("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Zu("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Zu("onBeforeInput",["compositionend","keypress","textInput","paste"]);Zu("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Zu("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Zu("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var md="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Lne=new Set("cancel close invalid load scroll toggle".split(" ").concat(md));function YB(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,Lre(n,t,void 0,e),e.currentTarget=null}function w8(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var s=void 0;if(t)for(var o=n.length-1;0<=o;o--){var a=n[o],u=a.instance,l=a.currentTarget;if(a=a.listener,u!==s&&i.isPropagationStopped())break e;YB(i,a,l),s=u}else for(o=0;o<n.length;o++){if(a=n[o],u=a.instance,l=a.currentTarget,a=a.listener,u!==s&&i.isPropagationStopped())break e;YB(i,a,l),s=u}}}if(ny)throw e=kS,ny=!1,kS=null,e}function mt(e,t){var r=t[HS];r===void 0&&(r=t[HS]=new Set);var n=e+"__bubble";r.has(n)||(C8(t,e,2,!1),r.add(n))}function cS(e,t,r){var n=0;t&&(n|=4),C8(r,e,n,t)}var Mg="_reactListening"+Math.random().toString(36).slice(2);function Pd(e){if(!e[Mg]){e[Mg]=!0,F6.forEach(function(r){r!=="selectionchange"&&(Lne.has(r)||cS(r,!1,e),cS(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Mg]||(t[Mg]=!0,cS("selectionchange",!1,t))}}function C8(e,t,r,n){switch(i8(t)){case 1:var i=Kre;break;case 4:i=Xre;break;default:i=xx}r=i.bind(null,t,r,e),i=void 0,!BS||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function fS(e,t,r,n,i){var s=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var a=n.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=n.return;o!==null;){var u=o.tag;if((u===3||u===4)&&(u=o.stateNode.containerInfo,u===i||u.nodeType===8&&u.parentNode===i))return;o=o.return}for(;a!==null;){if(o=$u(a),o===null)return;if(u=o.tag,u===5||u===6){n=s=o;continue e}a=a.parentNode}}n=n.return}G6(function(){var l=s,c=wx(r),f=[];e:{var p=v8.get(e);if(p!==void 0){var d=bx,m=e;switch(e){case"keypress":if(Hg(r)===0)break e;case"keydown":case"keyup":d=fne;break;case"focusin":m="focus",d=aS;break;case"focusout":m="blur",d=aS;break;case"beforeblur":case"afterblur":d=aS;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":d=RB;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":d=Qre;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":d=mne;break;case h8:case g8:case y8:d=rne;break;case D8:d=gne;break;case"scroll":d=Jre;break;case"wheel":d=Dne;break;case"copy":case"cut":case"paste":d=ine;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":d=kB}var y=(t&4)!==0,D=!y&&e==="scroll",h=y?p!==null?p+"Capture":null:p;y=[];for(var g=l,v;g!==null;){v=g;var w=v.stateNode;if(v.tag===5&&w!==null&&(v=w,h!==null&&(w=bd(g,h),w!=null&&y.push(Ld(g,w,v)))),D)break;g=g.return}0<y.length&&(p=new d(p,m,null,r,c),f.push({event:p,listeners:y}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",d=e==="mouseout"||e==="pointerout",p&&r!==NS&&(m=r.relatedTarget||r.fromElement)&&($u(m)||m[Ws]))break e;if((d||p)&&(p=c.window===c?c:(p=c.ownerDocument)?p.defaultView||p.parentWindow:window,d?(m=r.relatedTarget||r.toElement,d=l,m=m?$u(m):null,m!==null&&(D=Qu(m),m!==D||m.tag!==5&&m.tag!==6)&&(m=null)):(d=null,m=l),d!==m)){if(y=RB,w="onMouseLeave",h="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(y=kB,w="onPointerLeave",h="onPointerEnter",g="pointer"),D=d==null?p:Ic(d),v=m==null?p:Ic(m),p=new y(w,g+"leave",d,r,c),p.target=D,p.relatedTarget=v,w=null,$u(c)===l&&(y=new y(h,g+"enter",m,r,c),y.target=v,y.relatedTarget=D,w=y),D=w,d&&m)t:{for(y=d,h=m,g=0,v=y;v;v=xc(v))g++;for(v=0,w=h;w;w=xc(w))v++;for(;0<g-v;)y=xc(y),g--;for(;0<v-g;)h=xc(h),v--;for(;g--;){if(y===h||h!==null&&y===h.alternate)break t;y=xc(y),h=xc(h)}y=null}else y=null;d!==null&&KB(f,p,d,y,!1),m!==null&&D!==null&&KB(f,D,m,y,!0)}}e:{if(p=l?Ic(l):window,d=p.nodeName&&p.nodeName.toLowerCase(),d==="select"||d==="input"&&p.type==="file")var E=_ne;else if(VB(p))if(c8)E=Ane;else{E=One;var I=bne}else(d=p.nodeName)&&d.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(E=Fne);if(E&&(E=E(e,l))){l8(f,E,r,c);break e}I&&I(e,p,l),e==="focusout"&&(I=p._wrapperState)&&I.controlled&&p.type==="number"&&AS(p,"number",p.value)}switch(I=l?Ic(l):window,e){case"focusin":(VB(I)||I.contentEditable==="true")&&(Fc=I,US=l,vd=null);break;case"focusout":vd=US=Fc=null;break;case"mousedown":$S=!0;break;case"contextmenu":case"mouseup":case"dragend":$S=!1,GB(f,r,c);break;case"selectionchange":if(Pne)break;case"keydown":case"keyup":GB(f,r,c)}var A;if(Fx)e:{switch(e){case"compositionstart":var W="onCompositionStart";break e;case"compositionend":W="onCompositionEnd";break e;case"compositionupdate":W="onCompositionUpdate";break e}W=void 0}else Oc?a8(e,r)&&(W="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(W="onCompositionStart");W&&(o8&&r.locale!=="ko"&&(Oc||W!=="onCompositionStart"?W==="onCompositionEnd"&&Oc&&(A=s8()):(aa=c,_x="value"in aa?aa.value:aa.textContent,Oc=!0)),I=uy(l,W),0<I.length&&(W=new BB(W,e,null,r,c),f.push({event:W,listeners:I}),A?W.data=A:(A=u8(r),A!==null&&(W.data=A)))),(A=wne?Cne(e,r):Ene(e,r))&&(l=uy(l,"onBeforeInput"),0<l.length&&(c=new BB("onBeforeInput","beforeinput",null,r,c),f.push({event:c,listeners:l}),c.data=A))}w8(f,t)})}function Ld(e,t,r){return{instance:e,listener:t,currentTarget:r}}function uy(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=bd(e,r),s!=null&&n.unshift(Ld(e,s,i)),s=bd(e,t),s!=null&&n.push(Ld(e,s,i))),e=e.return}return n}function xc(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function KB(e,t,r,n,i){for(var s=t._reactName,o=[];r!==null&&r!==n;){var a=r,u=a.alternate,l=a.stateNode;if(u!==null&&u===n)break;a.tag===5&&l!==null&&(a=l,i?(u=bd(r,s),u!=null&&o.unshift(Ld(r,u,a))):i||(u=bd(r,s),u!=null&&o.push(Ld(r,u,a)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}var Nne=/\r\n?/g,Rne=/\u0000|\uFFFD/g;function XB(e){return(typeof e=="string"?e:""+e).replace(Nne,`
|
|
423
|
-
`).replace(Rne,"")}function jg(e,t,r){if(t=XB(t),XB(e)!==t&&r)throw Error(J(425))}function ly(){}var WS=null,GS=null;function qS(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var zS=typeof setTimeout=="function"?setTimeout:void 0,Bne=typeof clearTimeout=="function"?clearTimeout:void 0,JB=typeof Promise=="function"?Promise:void 0,kne=typeof queueMicrotask=="function"?queueMicrotask:typeof JB<"u"?function(e){return JB.resolve(null).then(e).catch(Mne)}:zS;function Mne(e){setTimeout(function(){throw e})}function pS(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){e.removeChild(i),Ad(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);Ad(t)}function pa(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function ZB(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Jc=Math.random().toString(36).slice(2),os="__reactFiber$"+Jc,Nd="__reactProps$"+Jc,Ws="__reactContainer$"+Jc,HS="__reactEvents$"+Jc,jne="__reactListeners$"+Jc,Vne="__reactHandles$"+Jc;function $u(e){var t=e[os];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Ws]||r[os]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=ZB(e);e!==null;){if(r=e[os])return r;e=ZB(e)}return t}e=r,r=e.parentNode}return null}function Wd(e){return e=e[os]||e[Ws],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ic(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(J(33))}function Ay(e){return e[Nd]||null}var YS=[],Tc=-1;function wa(e){return{current:e}}function ht(e){0>Tc||(e.current=YS[Tc],YS[Tc]=null,Tc--)}function ut(e,t){Tc++,YS[Tc]=e.current,e.current=t}var Da={},Ar=wa(Da),rn=wa(!1),Hu=Da;function Gc(e,t){var r=e.type.contextTypes;if(!r)return Da;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in r)i[s]=t[s];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function nn(e){return e=e.childContextTypes,e!=null}function cy(){ht(rn),ht(Ar)}function QB(e,t,r){if(Ar.current!==Da)throw Error(J(168));ut(Ar,t),ut(rn,r)}function E8(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(J(108,bre(e)||"Unknown",i));return At({},r,n)}function fy(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Da,Hu=Ar.current,ut(Ar,e),ut(rn,rn.current),!0}function e6(e,t,r){var n=e.stateNode;if(!n)throw Error(J(169));r?(e=E8(e,t,Hu),n.__reactInternalMemoizedMergedChildContext=e,ht(rn),ht(Ar),ut(Ar,e)):ht(rn),ut(rn,r)}var Ms=null,Iy=!1,dS=!1;function S8(e){Ms===null?Ms=[e]:Ms.push(e)}function Une(e){Iy=!0,S8(e)}function Ca(){if(!dS&&Ms!==null){dS=!0;var e=0,t=tt;try{var r=Ms;for(tt=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}Ms=null,Iy=!1}catch(i){throw Ms!==null&&(Ms=Ms.slice(e+1)),Y6(Cx,Ca),i}finally{tt=t,dS=!1}}return null}var Pc=[],Lc=0,py=null,dy=0,ti=[],ri=0,Yu=null,js=1,Vs="";function Vu(e,t){Pc[Lc++]=dy,Pc[Lc++]=py,py=e,dy=t}function x8(e,t,r){ti[ri++]=js,ti[ri++]=Vs,ti[ri++]=Yu,Yu=e;var n=js;e=Vs;var i=32-Ii(n)-1;n&=~(1<<i),r+=1;var s=32-Ii(t)+i;if(30<s){var o=i-i%5;s=(n&(1<<o)-1).toString(32),n>>=o,i-=o,js=1<<32-Ii(t)+i|r<<i|n,Vs=s+e}else js=1<<s|r<<i|n,Vs=e}function Ix(e){e.return!==null&&(Vu(e,1),x8(e,1,0))}function Tx(e){for(;e===py;)py=Pc[--Lc],Pc[Lc]=null,dy=Pc[--Lc],Pc[Lc]=null;for(;e===Yu;)Yu=ti[--ri],ti[ri]=null,Vs=ti[--ri],ti[ri]=null,js=ti[--ri],ti[ri]=null}var xn=null,Sn=null,Et=!1,Ai=null;function _8(e,t){var r=ni(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function t6(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,xn=e,Sn=pa(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,xn=e,Sn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Yu!==null?{id:js,overflow:Vs}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=ni(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,xn=e,Sn=null,!0):!1;default:return!1}}function KS(e){return(e.mode&1)!==0&&(e.flags&128)===0}function XS(e){if(Et){var t=Sn;if(t){var r=t;if(!t6(e,t)){if(KS(e))throw Error(J(418));t=pa(r.nextSibling);var n=xn;t&&t6(e,t)?_8(n,r):(e.flags=e.flags&-4097|2,Et=!1,xn=e)}}else{if(KS(e))throw Error(J(418));e.flags=e.flags&-4097|2,Et=!1,xn=e}}}function r6(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;xn=e}function Vg(e){if(e!==xn)return!1;if(!Et)return r6(e),Et=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!qS(e.type,e.memoizedProps)),t&&(t=Sn)){if(KS(e))throw b8(),Error(J(418));for(;t;)_8(e,t),t=pa(t.nextSibling)}if(r6(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(J(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Sn=pa(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Sn=null}}else Sn=xn?pa(e.stateNode.nextSibling):null;return!0}function b8(){for(var e=Sn;e;)e=pa(e.nextSibling)}function qc(){Sn=xn=null,Et=!1}function Px(e){Ai===null?Ai=[e]:Ai.push(e)}var $ne=zs.ReactCurrentBatchConfig;function ad(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(J(309));var n=r.stateNode}if(!n)throw Error(J(147,e));var i=n,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var a=i.refs;o===null?delete a[s]:a[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(J(284));if(!r._owner)throw Error(J(290,e))}return e}function Ug(e,t){throw e=Object.prototype.toString.call(t),Error(J(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function n6(e){var t=e._init;return t(e._payload)}function O8(e){function t(h,g){if(e){var v=h.deletions;v===null?(h.deletions=[g],h.flags|=16):v.push(g)}}function r(h,g){if(!e)return null;for(;g!==null;)t(h,g),g=g.sibling;return null}function n(h,g){for(h=new Map;g!==null;)g.key!==null?h.set(g.key,g):h.set(g.index,g),g=g.sibling;return h}function i(h,g){return h=ga(h,g),h.index=0,h.sibling=null,h}function s(h,g,v){return h.index=v,e?(v=h.alternate,v!==null?(v=v.index,v<g?(h.flags|=2,g):v):(h.flags|=2,g)):(h.flags|=1048576,g)}function o(h){return e&&h.alternate===null&&(h.flags|=2),h}function a(h,g,v,w){return g===null||g.tag!==6?(g=wS(v,h.mode,w),g.return=h,g):(g=i(g,v),g.return=h,g)}function u(h,g,v,w){var E=v.type;return E===bc?c(h,g,v.props.children,w,v.key):g!==null&&(g.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===na&&n6(E)===g.type)?(w=i(g,v.props),w.ref=ad(h,g,v),w.return=h,w):(w=ey(v.type,v.key,v.props,null,h.mode,w),w.ref=ad(h,g,v),w.return=h,w)}function l(h,g,v,w){return g===null||g.tag!==4||g.stateNode.containerInfo!==v.containerInfo||g.stateNode.implementation!==v.implementation?(g=CS(v,h.mode,w),g.return=h,g):(g=i(g,v.children||[]),g.return=h,g)}function c(h,g,v,w,E){return g===null||g.tag!==7?(g=zu(v,h.mode,w,E),g.return=h,g):(g=i(g,v),g.return=h,g)}function f(h,g,v){if(typeof g=="string"&&g!==""||typeof g=="number")return g=wS(""+g,h.mode,v),g.return=h,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case bg:return v=ey(g.type,g.key,g.props,null,h.mode,v),v.ref=ad(h,null,g),v.return=h,v;case _c:return g=CS(g,h.mode,v),g.return=h,g;case na:var w=g._init;return f(h,w(g._payload),v)}if(pd(g)||nd(g))return g=zu(g,h.mode,v,null),g.return=h,g;Ug(h,g)}return null}function p(h,g,v,w){var E=g!==null?g.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return E!==null?null:a(h,g,""+v,w);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case bg:return v.key===E?u(h,g,v,w):null;case _c:return v.key===E?l(h,g,v,w):null;case na:return E=v._init,p(h,g,E(v._payload),w)}if(pd(v)||nd(v))return E!==null?null:c(h,g,v,w,null);Ug(h,v)}return null}function d(h,g,v,w,E){if(typeof w=="string"&&w!==""||typeof w=="number")return h=h.get(v)||null,a(g,h,""+w,E);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case bg:return h=h.get(w.key===null?v:w.key)||null,u(g,h,w,E);case _c:return h=h.get(w.key===null?v:w.key)||null,l(g,h,w,E);case na:var I=w._init;return d(h,g,v,I(w._payload),E)}if(pd(w)||nd(w))return h=h.get(v)||null,c(g,h,w,E,null);Ug(g,w)}return null}function m(h,g,v,w){for(var E=null,I=null,A=g,W=g=0,b=null;A!==null&&W<v.length;W++){A.index>W?(b=A,A=null):b=A.sibling;var T=p(h,A,v[W],w);if(T===null){A===null&&(A=b);break}e&&A&&T.alternate===null&&t(h,A),g=s(T,g,W),I===null?E=T:I.sibling=T,I=T,A=b}if(W===v.length)return r(h,A),Et&&Vu(h,W),E;if(A===null){for(;W<v.length;W++)A=f(h,v[W],w),A!==null&&(g=s(A,g,W),I===null?E=A:I.sibling=A,I=A);return Et&&Vu(h,W),E}for(A=n(h,A);W<v.length;W++)b=d(A,h,W,v[W],w),b!==null&&(e&&b.alternate!==null&&A.delete(b.key===null?W:b.key),g=s(b,g,W),I===null?E=b:I.sibling=b,I=b);return e&&A.forEach(function(F){return t(h,F)}),Et&&Vu(h,W),E}function y(h,g,v,w){var E=nd(v);if(typeof E!="function")throw Error(J(150));if(v=E.call(v),v==null)throw Error(J(151));for(var I=E=null,A=g,W=g=0,b=null,T=v.next();A!==null&&!T.done;W++,T=v.next()){A.index>W?(b=A,A=null):b=A.sibling;var F=p(h,A,T.value,w);if(F===null){A===null&&(A=b);break}e&&A&&F.alternate===null&&t(h,A),g=s(F,g,W),I===null?E=F:I.sibling=F,I=F,A=b}if(T.done)return r(h,A),Et&&Vu(h,W),E;if(A===null){for(;!T.done;W++,T=v.next())T=f(h,T.value,w),T!==null&&(g=s(T,g,W),I===null?E=T:I.sibling=T,I=T);return Et&&Vu(h,W),E}for(A=n(h,A);!T.done;W++,T=v.next())T=d(A,h,W,T.value,w),T!==null&&(e&&T.alternate!==null&&A.delete(T.key===null?W:T.key),g=s(T,g,W),I===null?E=T:I.sibling=T,I=T);return e&&A.forEach(function(k){return t(h,k)}),Et&&Vu(h,W),E}function D(h,g,v,w){if(typeof v=="object"&&v!==null&&v.type===bc&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case bg:e:{for(var E=v.key,I=g;I!==null;){if(I.key===E){if(E=v.type,E===bc){if(I.tag===7){r(h,I.sibling),g=i(I,v.props.children),g.return=h,h=g;break e}}else if(I.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===na&&n6(E)===I.type){r(h,I.sibling),g=i(I,v.props),g.ref=ad(h,I,v),g.return=h,h=g;break e}r(h,I);break}else t(h,I);I=I.sibling}v.type===bc?(g=zu(v.props.children,h.mode,w,v.key),g.return=h,h=g):(w=ey(v.type,v.key,v.props,null,h.mode,w),w.ref=ad(h,g,v),w.return=h,h=w)}return o(h);case _c:e:{for(I=v.key;g!==null;){if(g.key===I)if(g.tag===4&&g.stateNode.containerInfo===v.containerInfo&&g.stateNode.implementation===v.implementation){r(h,g.sibling),g=i(g,v.children||[]),g.return=h,h=g;break e}else{r(h,g);break}else t(h,g);g=g.sibling}g=CS(v,h.mode,w),g.return=h,h=g}return o(h);case na:return I=v._init,D(h,g,I(v._payload),w)}if(pd(v))return m(h,g,v,w);if(nd(v))return y(h,g,v,w);Ug(h,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,g!==null&&g.tag===6?(r(h,g.sibling),g=i(g,v),g.return=h,h=g):(r(h,g),g=wS(v,h.mode,w),g.return=h,h=g),o(h)):r(h,g)}return D}var zc=O8(!0),F8=O8(!1),my=wa(null),hy=null,Nc=null,Lx=null;function Nx(){Lx=Nc=hy=null}function Rx(e){var t=my.current;ht(my),e._currentValue=t}function JS(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Uc(e,t){hy=e,Lx=Nc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(tn=!0),e.firstContext=null)}function si(e){var t=e._currentValue;if(Lx!==e)if(e={context:e,memoizedValue:t,next:null},Nc===null){if(hy===null)throw Error(J(308));Nc=e,hy.dependencies={lanes:0,firstContext:e}}else Nc=Nc.next=e;return t}var Wu=null;function Bx(e){Wu===null?Wu=[e]:Wu.push(e)}function A8(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,Bx(t)):(r.next=i.next,i.next=r),t.interleaved=r,Gs(e,n)}function Gs(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var ia=!1;function kx(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function I8(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Us(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function da(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Xe&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,Gs(e,r)}return i=n.interleaved,i===null?(t.next=t,Bx(n)):(t.next=i.next,i.next=t),n.interleaved=t,Gs(e,r)}function Yg(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Ex(e,r)}}function i6(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,s=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};s===null?i=s=o:s=s.next=o,r=r.next}while(r!==null);s===null?i=s=t:s=s.next=t}else i=s=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function gy(e,t,r,n){var i=e.updateQueue;ia=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var u=a,l=u.next;u.next=null,o===null?s=l:o.next=l,o=u;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==o&&(a===null?c.firstBaseUpdate=l:a.next=l,c.lastBaseUpdate=u))}if(s!==null){var f=i.baseState;o=0,c=l=u=null,a=s;do{var p=a.lane,d=a.eventTime;if((n&p)===p){c!==null&&(c=c.next={eventTime:d,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,y=a;switch(p=t,d=r,y.tag){case 1:if(m=y.payload,typeof m=="function"){f=m.call(d,f,p);break e}f=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=y.payload,p=typeof m=="function"?m.call(d,f,p):m,p==null)break e;f=At({},f,p);break e;case 2:ia=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[a]:p.push(a))}else d={eventTime:d,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(l=c=d,u=f):c=c.next=d,o|=p;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;p=a,a=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(c===null&&(u=f),i.baseState=u,i.firstBaseUpdate=l,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);Xu|=o,e.lanes=o,e.memoizedState=f}}function s6(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(J(191,i));i.call(n)}}}var Gd={},us=wa(Gd),Rd=wa(Gd),Bd=wa(Gd);function Gu(e){if(e===Gd)throw Error(J(174));return e}function Mx(e,t){switch(ut(Bd,t),ut(Rd,e),ut(us,Gd),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:TS(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=TS(t,e)}ht(us),ut(us,t)}function Hc(){ht(us),ht(Rd),ht(Bd)}function T8(e){Gu(Bd.current);var t=Gu(us.current),r=TS(t,e.type);t!==r&&(ut(Rd,e),ut(us,r))}function jx(e){Rd.current===e&&(ht(us),ht(Rd))}var Ot=wa(0);function yy(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var mS=[];function Vx(){for(var e=0;e<mS.length;e++)mS[e]._workInProgressVersionPrimary=null;mS.length=0}var Kg=zs.ReactCurrentDispatcher,hS=zs.ReactCurrentBatchConfig,Ku=0,Ft=null,Kt=null,sr=null,Dy=!1,wd=!1,kd=0,Wne=0;function br(){throw Error(J(321))}function Ux(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Pi(e[r],t[r]))return!1;return!0}function $x(e,t,r,n,i,s){if(Ku=s,Ft=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Kg.current=e===null||e.memoizedState===null?Hne:Yne,e=r(n,i),wd){s=0;do{if(wd=!1,kd=0,25<=s)throw Error(J(301));s+=1,sr=Kt=null,t.updateQueue=null,Kg.current=Kne,e=r(n,i)}while(wd)}if(Kg.current=vy,t=Kt!==null&&Kt.next!==null,Ku=0,sr=Kt=Ft=null,Dy=!1,t)throw Error(J(300));return e}function Wx(){var e=kd!==0;return kd=0,e}function ss(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return sr===null?Ft.memoizedState=sr=e:sr=sr.next=e,sr}function oi(){if(Kt===null){var e=Ft.alternate;e=e!==null?e.memoizedState:null}else e=Kt.next;var t=sr===null?Ft.memoizedState:sr.next;if(t!==null)sr=t,Kt=e;else{if(e===null)throw Error(J(310));Kt=e,e={memoizedState:Kt.memoizedState,baseState:Kt.baseState,baseQueue:Kt.baseQueue,queue:Kt.queue,next:null},sr===null?Ft.memoizedState=sr=e:sr=sr.next=e}return sr}function Md(e,t){return typeof t=="function"?t(e):t}function gS(e){var t=oi(),r=t.queue;if(r===null)throw Error(J(311));r.lastRenderedReducer=e;var n=Kt,i=n.baseQueue,s=r.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}n.baseQueue=i=s,r.pending=null}if(i!==null){s=i.next,n=n.baseState;var a=o=null,u=null,l=s;do{var c=l.lane;if((Ku&c)===c)u!==null&&(u=u.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),n=l.hasEagerState?l.eagerState:e(n,l.action);else{var f={lane:c,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};u===null?(a=u=f,o=n):u=u.next=f,Ft.lanes|=c,Xu|=c}l=l.next}while(l!==null&&l!==s);u===null?o=n:u.next=a,Pi(n,t.memoizedState)||(tn=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=u,r.lastRenderedState=n}if(e=r.interleaved,e!==null){i=e;do s=i.lane,Ft.lanes|=s,Xu|=s,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function yS(e){var t=oi(),r=t.queue;if(r===null)throw Error(J(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,s=t.memoizedState;if(i!==null){r.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);Pi(s,t.memoizedState)||(tn=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),r.lastRenderedState=s}return[s,n]}function P8(){}function L8(e,t){var r=Ft,n=oi(),i=t(),s=!Pi(n.memoizedState,i);if(s&&(n.memoizedState=i,tn=!0),n=n.queue,Gx(B8.bind(null,r,n,e),[e]),n.getSnapshot!==t||s||sr!==null&&sr.memoizedState.tag&1){if(r.flags|=2048,jd(9,R8.bind(null,r,n,i,t),void 0,null),or===null)throw Error(J(349));Ku&30||N8(r,t,i)}return i}function N8(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Ft.updateQueue,t===null?(t={lastEffect:null,stores:null},Ft.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function R8(e,t,r,n){t.value=r,t.getSnapshot=n,k8(t)&&M8(e)}function B8(e,t,r){return r(function(){k8(t)&&M8(e)})}function k8(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Pi(e,r)}catch{return!0}}function M8(e){var t=Gs(e,1);t!==null&&Ti(t,e,1,-1)}function o6(e){var t=ss();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Md,lastRenderedState:e},t.queue=e,e=e.dispatch=zne.bind(null,Ft,e),[t.memoizedState,e]}function jd(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=Ft.updateQueue,t===null?(t={lastEffect:null,stores:null},Ft.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function j8(){return oi().memoizedState}function Xg(e,t,r,n){var i=ss();Ft.flags|=e,i.memoizedState=jd(1|t,r,void 0,n===void 0?null:n)}function Ty(e,t,r,n){var i=oi();n=n===void 0?null:n;var s=void 0;if(Kt!==null){var o=Kt.memoizedState;if(s=o.destroy,n!==null&&Ux(n,o.deps)){i.memoizedState=jd(t,r,s,n);return}}Ft.flags|=e,i.memoizedState=jd(1|t,r,s,n)}function a6(e,t){return Xg(8390656,8,e,t)}function Gx(e,t){return Ty(2048,8,e,t)}function V8(e,t){return Ty(4,2,e,t)}function U8(e,t){return Ty(4,4,e,t)}function $8(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function W8(e,t,r){return r=r!=null?r.concat([e]):null,Ty(4,4,$8.bind(null,t,e),r)}function qx(){}function G8(e,t){var r=oi();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Ux(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function q8(e,t){var r=oi();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Ux(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function z8(e,t,r){return Ku&21?(Pi(r,t)||(r=J6(),Ft.lanes|=r,Xu|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,tn=!0),e.memoizedState=r)}function Gne(e,t){var r=tt;tt=r!==0&&4>r?r:4,e(!0);var n=hS.transition;hS.transition={};try{e(!1),t()}finally{tt=r,hS.transition=n}}function H8(){return oi().memoizedState}function qne(e,t,r){var n=ha(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Y8(e))K8(t,r);else if(r=A8(e,t,r,n),r!==null){var i=Ur();Ti(r,e,n,i),X8(r,t,n)}}function zne(e,t,r){var n=ha(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Y8(e))K8(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,r);if(i.hasEagerState=!0,i.eagerState=a,Pi(a,o)){var u=t.interleaved;u===null?(i.next=i,Bx(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}r=A8(e,t,i,n),r!==null&&(i=Ur(),Ti(r,e,n,i),X8(r,t,n))}}function Y8(e){var t=e.alternate;return e===Ft||t!==null&&t===Ft}function K8(e,t){wd=Dy=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function X8(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Ex(e,r)}}var vy={readContext:si,useCallback:br,useContext:br,useEffect:br,useImperativeHandle:br,useInsertionEffect:br,useLayoutEffect:br,useMemo:br,useReducer:br,useRef:br,useState:br,useDebugValue:br,useDeferredValue:br,useTransition:br,useMutableSource:br,useSyncExternalStore:br,useId:br,unstable_isNewReconciler:!1},Hne={readContext:si,useCallback:function(e,t){return ss().memoizedState=[e,t===void 0?null:t],e},useContext:si,useEffect:a6,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Xg(4194308,4,$8.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Xg(4194308,4,e,t)},useInsertionEffect:function(e,t){return Xg(4,2,e,t)},useMemo:function(e,t){var r=ss();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ss();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=qne.bind(null,Ft,e),[n.memoizedState,e]},useRef:function(e){var t=ss();return e={current:e},t.memoizedState=e},useState:o6,useDebugValue:qx,useDeferredValue:function(e){return ss().memoizedState=e},useTransition:function(){var e=o6(!1),t=e[0];return e=Gne.bind(null,e[1]),ss().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Ft,i=ss();if(Et){if(r===void 0)throw Error(J(407));r=r()}else{if(r=t(),or===null)throw Error(J(349));Ku&30||N8(n,t,r)}i.memoizedState=r;var s={value:r,getSnapshot:t};return i.queue=s,a6(B8.bind(null,n,s,e),[e]),n.flags|=2048,jd(9,R8.bind(null,n,s,r,t),void 0,null),r},useId:function(){var e=ss(),t=or.identifierPrefix;if(Et){var r=Vs,n=js;r=(n&~(1<<32-Ii(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=kd++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=Wne++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Yne={readContext:si,useCallback:G8,useContext:si,useEffect:Gx,useImperativeHandle:W8,useInsertionEffect:V8,useLayoutEffect:U8,useMemo:q8,useReducer:gS,useRef:j8,useState:function(){return gS(Md)},useDebugValue:qx,useDeferredValue:function(e){var t=oi();return z8(t,Kt.memoizedState,e)},useTransition:function(){var e=gS(Md)[0],t=oi().memoizedState;return[e,t]},useMutableSource:P8,useSyncExternalStore:L8,useId:H8,unstable_isNewReconciler:!1},Kne={readContext:si,useCallback:G8,useContext:si,useEffect:Gx,useImperativeHandle:W8,useInsertionEffect:V8,useLayoutEffect:U8,useMemo:q8,useReducer:yS,useRef:j8,useState:function(){return yS(Md)},useDebugValue:qx,useDeferredValue:function(e){var t=oi();return Kt===null?t.memoizedState=e:z8(t,Kt.memoizedState,e)},useTransition:function(){var e=yS(Md)[0],t=oi().memoizedState;return[e,t]},useMutableSource:P8,useSyncExternalStore:L8,useId:H8,unstable_isNewReconciler:!1};function Oi(e,t){if(e&&e.defaultProps){t=At({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function ZS(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:At({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Py={isMounted:function(e){return(e=e._reactInternals)?Qu(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Ur(),i=ha(e),s=Us(n,i);s.payload=t,r!=null&&(s.callback=r),t=da(e,s,i),t!==null&&(Ti(t,e,i,n),Yg(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Ur(),i=ha(e),s=Us(n,i);s.tag=1,s.payload=t,r!=null&&(s.callback=r),t=da(e,s,i),t!==null&&(Ti(t,e,i,n),Yg(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Ur(),n=ha(e),i=Us(r,n);i.tag=2,t!=null&&(i.callback=t),t=da(e,i,n),t!==null&&(Ti(t,e,n,r),Yg(t,e,n))}};function u6(e,t,r,n,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,s,o):t.prototype&&t.prototype.isPureReactComponent?!Td(r,n)||!Td(i,s):!0}function J8(e,t,r){var n=!1,i=Da,s=t.contextType;return typeof s=="object"&&s!==null?s=si(s):(i=nn(t)?Hu:Ar.current,n=t.contextTypes,s=(n=n!=null)?Gc(e,i):Da),t=new t(r,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Py,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function l6(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Py.enqueueReplaceState(t,t.state,null)}function QS(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs={},kx(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=si(s):(s=nn(t)?Hu:Ar.current,i.context=Gc(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(ZS(e,t,s,r),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Py.enqueueReplaceState(i,i.state,null),gy(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Yc(e,t){try{var r="",n=t;do r+=_re(n),n=n.return;while(n);var i=r}catch(s){i=`
|
|
422
|
+
`+i[o].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=o&&0<=a);break}}}finally{tS=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?fd(e):""}function _re(e){switch(e.tag){case 5:return fd(e.type);case 16:return fd("Lazy");case 13:return fd("Suspense");case 19:return fd("SuspenseList");case 0:case 2:case 15:return e=rS(e.type,!1),e;case 11:return e=rS(e.type.render,!1),e;case 1:return e=rS(e.type,!0),e;default:return""}}function bS(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case bc:return"Fragment";case _c:return"Portal";case SS:return"Profiler";case yx:return"StrictMode";case xS:return"Suspense";case _S:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case I6:return(e.displayName||"Context")+".Consumer";case A6:return(e._context.displayName||"Context")+".Provider";case Dx:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case vx:return t=e.displayName||null,t!==null?t:bS(e.type)||"Memo";case na:t=e._payload,e=e._init;try{return bS(e(t))}catch{}}return null}function bre(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return bS(t);case 8:return t===yx?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ya(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function P6(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ore(e){var t=P6(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,s=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Og(e){e._valueTracker||(e._valueTracker=Ore(e))}function L6(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=P6(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function ty(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function OS(e,t){var r=t.checked;return At({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function _B(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=ya(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function N6(e,t){t=t.checked,t!=null&&gx(e,"checked",t,!1)}function FS(e,t){N6(e,t);var r=ya(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?AS(e,t.type,r):t.hasOwnProperty("defaultValue")&&AS(e,t.type,ya(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function bB(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function AS(e,t,r){(t!=="number"||ty(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var pd=Array.isArray;function kc(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+ya(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function IS(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(J(91));return At({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function OB(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(J(92));if(pd(r)){if(1<r.length)throw Error(J(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:ya(r)}}function R6(e,t){var r=ya(t.value),n=ya(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function FB(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function B6(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function TS(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?B6(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Fg,k6=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Fg=Fg||document.createElement("div"),Fg.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Fg.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function _d(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var hd={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Fre=["Webkit","ms","Moz","O"];Object.keys(hd).forEach(function(e){Fre.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),hd[t]=hd[e]})});function M6(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||hd.hasOwnProperty(e)&&hd[e]?(""+t).trim():t+"px"}function j6(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=M6(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var Are=At({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function PS(e,t){if(t){if(Are[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(J(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(J(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(J(61))}if(t.style!=null&&typeof t.style!="object")throw Error(J(62))}}function LS(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var NS=null;function wx(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var RS=null,Mc=null,jc=null;function AB(e){if(e=Wd(e)){if(typeof RS!="function")throw Error(J(280));var t=e.stateNode;t&&(t=Ay(t),RS(e.stateNode,e.type,t))}}function V6(e){Mc?jc?jc.push(e):jc=[e]:Mc=e}function U6(){if(Mc){var e=Mc,t=jc;if(jc=Mc=null,AB(e),t)for(e=0;e<t.length;e++)AB(t[e])}}function $6(e,t){return e(t)}function W6(){}var nS=!1;function G6(e,t,r){if(nS)return e(t,r);nS=!0;try{return $6(e,t,r)}finally{nS=!1,(Mc!==null||jc!==null)&&(W6(),U6())}}function bd(e,t){var r=e.stateNode;if(r===null)return null;var n=Ay(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(J(231,t,typeof r));return r}var BS=!1;if($s)try{Sc={},Object.defineProperty(Sc,"passive",{get:function(){BS=!0}}),window.addEventListener("test",Sc,Sc),window.removeEventListener("test",Sc,Sc)}catch{BS=!1}var Sc;function Ire(e,t,r,n,i,s,o,a,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(r,l)}catch(c){this.onError(c)}}var gd=!1,ry=null,ny=!1,kS=null,Tre={onError:function(e){gd=!0,ry=e}};function Pre(e,t,r,n,i,s,o,a,u){gd=!1,ry=null,Ire.apply(Tre,arguments)}function Lre(e,t,r,n,i,s,o,a,u){if(Pre.apply(this,arguments),gd){if(gd){var l=ry;gd=!1,ry=null}else throw Error(J(198));ny||(ny=!0,kS=l)}}function Qu(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function q6(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function IB(e){if(Qu(e)!==e)throw Error(J(188))}function Nre(e){var t=e.alternate;if(!t){if(t=Qu(e),t===null)throw Error(J(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var s=i.alternate;if(s===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===r)return IB(i),e;if(s===n)return IB(i),t;s=s.sibling}throw Error(J(188))}if(r.return!==n.return)r=i,n=s;else{for(var o=!1,a=i.child;a;){if(a===r){o=!0,r=i,n=s;break}if(a===n){o=!0,n=i,r=s;break}a=a.sibling}if(!o){for(a=s.child;a;){if(a===r){o=!0,r=s,n=i;break}if(a===n){o=!0,n=s,r=i;break}a=a.sibling}if(!o)throw Error(J(189))}}if(r.alternate!==n)throw Error(J(190))}if(r.tag!==3)throw Error(J(188));return r.stateNode.current===r?e:t}function z6(e){return e=Nre(e),e!==null?H6(e):null}function H6(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=H6(e);if(t!==null)return t;e=e.sibling}return null}var Y6=_n.unstable_scheduleCallback,TB=_n.unstable_cancelCallback,Rre=_n.unstable_shouldYield,Bre=_n.unstable_requestPaint,kt=_n.unstable_now,kre=_n.unstable_getCurrentPriorityLevel,Cx=_n.unstable_ImmediatePriority,K6=_n.unstable_UserBlockingPriority,iy=_n.unstable_NormalPriority,Mre=_n.unstable_LowPriority,X6=_n.unstable_IdlePriority,_y=null,os=null;function jre(e){if(os&&typeof os.onCommitFiberRoot=="function")try{os.onCommitFiberRoot(_y,e,void 0,(e.current.flags&128)===128)}catch{}}var Ii=Math.clz32?Math.clz32:$re,Vre=Math.log,Ure=Math.LN2;function $re(e){return e>>>=0,e===0?32:31-(Vre(e)/Ure|0)|0}var Ag=64,Ig=4194304;function dd(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function sy(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,s=e.pingedLanes,o=r&268435455;if(o!==0){var a=o&~i;a!==0?n=dd(a):(s&=o,s!==0&&(n=dd(s)))}else o=r&~i,o!==0?n=dd(o):s!==0&&(n=dd(s));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-Ii(t),i=1<<r,n|=e[r],t&=~i;return n}function Wre(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Gre(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-Ii(s),a=1<<o,u=i[o];u===-1?(!(a&r)||a&n)&&(i[o]=Wre(a,t)):u<=t&&(e.expiredLanes|=a),s&=~a}}function MS(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function J6(){var e=Ag;return Ag<<=1,!(Ag&4194240)&&(Ag=64),e}function iS(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Ud(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ii(t),e[t]=r}function qre(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-Ii(r),s=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~s}}function Ex(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Ii(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var tt=0;function Z6(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Q6,Sx,e8,t8,r8,jS=!1,Tg=[],la=null,ca=null,fa=null,Od=new Map,Fd=new Map,sa=[],zre="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function PB(e,t){switch(e){case"focusin":case"focusout":la=null;break;case"dragenter":case"dragleave":ca=null;break;case"mouseover":case"mouseout":fa=null;break;case"pointerover":case"pointerout":Od.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fd.delete(t.pointerId)}}function id(e,t,r,n,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:s,targetContainers:[i]},t!==null&&(t=Wd(t),t!==null&&Sx(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Hre(e,t,r,n,i){switch(t){case"focusin":return la=id(la,e,t,r,n,i),!0;case"dragenter":return ca=id(ca,e,t,r,n,i),!0;case"mouseover":return fa=id(fa,e,t,r,n,i),!0;case"pointerover":var s=i.pointerId;return Od.set(s,id(Od.get(s)||null,e,t,r,n,i)),!0;case"gotpointercapture":return s=i.pointerId,Fd.set(s,id(Fd.get(s)||null,e,t,r,n,i)),!0}return!1}function n8(e){var t=$u(e.target);if(t!==null){var r=Qu(t);if(r!==null){if(t=r.tag,t===13){if(t=q6(r),t!==null){e.blockedOn=t,r8(e.priority,function(){e8(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function qg(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=VS(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);NS=n,r.target.dispatchEvent(n),NS=null}else return t=Wd(r),t!==null&&Sx(t),e.blockedOn=r,!1;t.shift()}return!0}function LB(e,t,r){qg(e)&&r.delete(t)}function Yre(){jS=!1,la!==null&&qg(la)&&(la=null),ca!==null&&qg(ca)&&(ca=null),fa!==null&&qg(fa)&&(fa=null),Od.forEach(LB),Fd.forEach(LB)}function sd(e,t){e.blockedOn===t&&(e.blockedOn=null,jS||(jS=!0,_n.unstable_scheduleCallback(_n.unstable_NormalPriority,Yre)))}function Ad(e){function t(i){return sd(i,e)}if(0<Tg.length){sd(Tg[0],e);for(var r=1;r<Tg.length;r++){var n=Tg[r];n.blockedOn===e&&(n.blockedOn=null)}}for(la!==null&&sd(la,e),ca!==null&&sd(ca,e),fa!==null&&sd(fa,e),Od.forEach(t),Fd.forEach(t),r=0;r<sa.length;r++)n=sa[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<sa.length&&(r=sa[0],r.blockedOn===null);)n8(r),r.blockedOn===null&&sa.shift()}var Vc=zs.ReactCurrentBatchConfig,oy=!0;function Kre(e,t,r,n){var i=tt,s=Vc.transition;Vc.transition=null;try{tt=1,xx(e,t,r,n)}finally{tt=i,Vc.transition=s}}function Xre(e,t,r,n){var i=tt,s=Vc.transition;Vc.transition=null;try{tt=4,xx(e,t,r,n)}finally{tt=i,Vc.transition=s}}function xx(e,t,r,n){if(oy){var i=VS(e,t,r,n);if(i===null)fS(e,t,n,ay,r),PB(e,n);else if(Hre(i,e,t,r,n))n.stopPropagation();else if(PB(e,n),t&4&&-1<zre.indexOf(e)){for(;i!==null;){var s=Wd(i);if(s!==null&&Q6(s),s=VS(e,t,r,n),s===null&&fS(e,t,n,ay,r),s===i)break;i=s}i!==null&&n.stopPropagation()}else fS(e,t,n,null,r)}}var ay=null;function VS(e,t,r,n){if(ay=null,e=wx(n),e=$u(e),e!==null)if(t=Qu(e),t===null)e=null;else if(r=t.tag,r===13){if(e=q6(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ay=e,null}function i8(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(kre()){case Cx:return 1;case K6:return 4;case iy:case Mre:return 16;case X6:return 536870912;default:return 16}default:return 16}}var aa=null,_x=null,zg=null;function s8(){if(zg)return zg;var e,t=_x,r=t.length,n,i="value"in aa?aa.value:aa.textContent,s=i.length;for(e=0;e<r&&t[e]===i[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===i[s-n];n++);return zg=i.slice(e,1<n?1-n:void 0)}function Hg(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Pg(){return!0}function NB(){return!1}function bn(e){function t(r,n,i,s,o){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(r=e[a],this[a]=r?r(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Pg:NB,this.isPropagationStopped=NB,this}return At(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Pg)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Pg)},persist:function(){},isPersistent:Pg}),t}var Xc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},bx=bn(Xc),$d=At({},Xc,{view:0,detail:0}),Jre=bn($d),sS,oS,od,by=At({},$d,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ox,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==od&&(od&&e.type==="mousemove"?(sS=e.screenX-od.screenX,oS=e.screenY-od.screenY):oS=sS=0,od=e),sS)},movementY:function(e){return"movementY"in e?e.movementY:oS}}),RB=bn(by),Zre=At({},by,{dataTransfer:0}),Qre=bn(Zre),ene=At({},$d,{relatedTarget:0}),aS=bn(ene),tne=At({},Xc,{animationName:0,elapsedTime:0,pseudoElement:0}),rne=bn(tne),nne=At({},Xc,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ine=bn(nne),sne=At({},Xc,{data:0}),BB=bn(sne),one={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ane={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},une={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function lne(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=une[e])?!!t[e]:!1}function Ox(){return lne}var cne=At({},$d,{key:function(e){if(e.key){var t=one[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Hg(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ane[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ox,charCode:function(e){return e.type==="keypress"?Hg(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Hg(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),fne=bn(cne),pne=At({},by,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kB=bn(pne),dne=At({},$d,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ox}),mne=bn(dne),hne=At({},Xc,{propertyName:0,elapsedTime:0,pseudoElement:0}),gne=bn(hne),yne=At({},by,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Dne=bn(yne),vne=[9,13,27,32],Fx=$s&&"CompositionEvent"in window,yd=null;$s&&"documentMode"in document&&(yd=document.documentMode);var wne=$s&&"TextEvent"in window&&!yd,o8=$s&&(!Fx||yd&&8<yd&&11>=yd),MB=" ",jB=!1;function a8(e,t){switch(e){case"keyup":return vne.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function u8(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Oc=!1;function Cne(e,t){switch(e){case"compositionend":return u8(t);case"keypress":return t.which!==32?null:(jB=!0,MB);case"textInput":return e=t.data,e===MB&&jB?null:e;default:return null}}function Ene(e,t){if(Oc)return e==="compositionend"||!Fx&&a8(e,t)?(e=s8(),zg=_x=aa=null,Oc=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return o8&&t.locale!=="ko"?null:t.data;default:return null}}var Sne={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function VB(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Sne[e.type]:t==="textarea"}function l8(e,t,r,n){V6(n),t=uy(t,"onChange"),0<t.length&&(r=new bx("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Dd=null,Id=null;function xne(e){w8(e,0)}function Oy(e){var t=Ic(e);if(L6(t))return e}function _ne(e,t){if(e==="change")return t}var c8=!1;$s&&($s?(Ng="oninput"in document,Ng||(uS=document.createElement("div"),uS.setAttribute("oninput","return;"),Ng=typeof uS.oninput=="function"),Lg=Ng):Lg=!1,c8=Lg&&(!document.documentMode||9<document.documentMode));var Lg,Ng,uS;function UB(){Dd&&(Dd.detachEvent("onpropertychange",f8),Id=Dd=null)}function f8(e){if(e.propertyName==="value"&&Oy(Id)){var t=[];l8(t,Id,e,wx(e)),G6(xne,t)}}function bne(e,t,r){e==="focusin"?(UB(),Dd=t,Id=r,Dd.attachEvent("onpropertychange",f8)):e==="focusout"&&UB()}function One(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Oy(Id)}function Fne(e,t){if(e==="click")return Oy(t)}function Ane(e,t){if(e==="input"||e==="change")return Oy(t)}function Ine(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Pi=typeof Object.is=="function"?Object.is:Ine;function Td(e,t){if(Pi(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!ES.call(t,i)||!Pi(e[i],t[i]))return!1}return!0}function $B(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function WB(e,t){var r=$B(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=$B(r)}}function p8(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?p8(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function d8(){for(var e=window,t=ty();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=ty(e.document)}return t}function Ax(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Tne(e){var t=d8(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&p8(r.ownerDocument.documentElement,r)){if(n!==null&&Ax(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,s=Math.min(n.start,i);n=n.end===void 0?s:Math.min(n.end,i),!e.extend&&s>n&&(i=n,n=s,s=i),i=WB(r,s);var o=WB(r,n);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Pne=$s&&"documentMode"in document&&11>=document.documentMode,Fc=null,US=null,vd=null,$S=!1;function GB(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;$S||Fc==null||Fc!==ty(n)||(n=Fc,"selectionStart"in n&&Ax(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),vd&&Td(vd,n)||(vd=n,n=uy(US,"onSelect"),0<n.length&&(t=new bx("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Fc)))}function Rg(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Ac={animationend:Rg("Animation","AnimationEnd"),animationiteration:Rg("Animation","AnimationIteration"),animationstart:Rg("Animation","AnimationStart"),transitionend:Rg("Transition","TransitionEnd")},lS={},m8={};$s&&(m8=document.createElement("div").style,"AnimationEvent"in window||(delete Ac.animationend.animation,delete Ac.animationiteration.animation,delete Ac.animationstart.animation),"TransitionEvent"in window||delete Ac.transitionend.transition);function Fy(e){if(lS[e])return lS[e];if(!Ac[e])return e;var t=Ac[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in m8)return lS[e]=t[r];return e}var h8=Fy("animationend"),g8=Fy("animationiteration"),y8=Fy("animationstart"),D8=Fy("transitionend"),v8=new Map,qB="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function va(e,t){v8.set(e,t),Zu(t,[e])}for(Bg=0;Bg<qB.length;Bg++)kg=qB[Bg],zB=kg.toLowerCase(),HB=kg[0].toUpperCase()+kg.slice(1),va(zB,"on"+HB);var kg,zB,HB,Bg;va(h8,"onAnimationEnd");va(g8,"onAnimationIteration");va(y8,"onAnimationStart");va("dblclick","onDoubleClick");va("focusin","onFocus");va("focusout","onBlur");va(D8,"onTransitionEnd");Wc("onMouseEnter",["mouseout","mouseover"]);Wc("onMouseLeave",["mouseout","mouseover"]);Wc("onPointerEnter",["pointerout","pointerover"]);Wc("onPointerLeave",["pointerout","pointerover"]);Zu("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Zu("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Zu("onBeforeInput",["compositionend","keypress","textInput","paste"]);Zu("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Zu("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Zu("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var md="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Lne=new Set("cancel close invalid load scroll toggle".split(" ").concat(md));function YB(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,Lre(n,t,void 0,e),e.currentTarget=null}function w8(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var s=void 0;if(t)for(var o=n.length-1;0<=o;o--){var a=n[o],u=a.instance,l=a.currentTarget;if(a=a.listener,u!==s&&i.isPropagationStopped())break e;YB(i,a,l),s=u}else for(o=0;o<n.length;o++){if(a=n[o],u=a.instance,l=a.currentTarget,a=a.listener,u!==s&&i.isPropagationStopped())break e;YB(i,a,l),s=u}}}if(ny)throw e=kS,ny=!1,kS=null,e}function mt(e,t){var r=t[HS];r===void 0&&(r=t[HS]=new Set);var n=e+"__bubble";r.has(n)||(C8(t,e,2,!1),r.add(n))}function cS(e,t,r){var n=0;t&&(n|=4),C8(r,e,n,t)}var Mg="_reactListening"+Math.random().toString(36).slice(2);function Pd(e){if(!e[Mg]){e[Mg]=!0,F6.forEach(function(r){r!=="selectionchange"&&(Lne.has(r)||cS(r,!1,e),cS(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Mg]||(t[Mg]=!0,cS("selectionchange",!1,t))}}function C8(e,t,r,n){switch(i8(t)){case 1:var i=Kre;break;case 4:i=Xre;break;default:i=xx}r=i.bind(null,t,r,e),i=void 0,!BS||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function fS(e,t,r,n,i){var s=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var a=n.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=n.return;o!==null;){var u=o.tag;if((u===3||u===4)&&(u=o.stateNode.containerInfo,u===i||u.nodeType===8&&u.parentNode===i))return;o=o.return}for(;a!==null;){if(o=$u(a),o===null)return;if(u=o.tag,u===5||u===6){n=s=o;continue e}a=a.parentNode}}n=n.return}G6(function(){var l=s,c=wx(r),f=[];e:{var p=v8.get(e);if(p!==void 0){var d=bx,m=e;switch(e){case"keypress":if(Hg(r)===0)break e;case"keydown":case"keyup":d=fne;break;case"focusin":m="focus",d=aS;break;case"focusout":m="blur",d=aS;break;case"beforeblur":case"afterblur":d=aS;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":d=RB;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":d=Qre;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":d=mne;break;case h8:case g8:case y8:d=rne;break;case D8:d=gne;break;case"scroll":d=Jre;break;case"wheel":d=Dne;break;case"copy":case"cut":case"paste":d=ine;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":d=kB}var y=(t&4)!==0,D=!y&&e==="scroll",h=y?p!==null?p+"Capture":null:p;y=[];for(var g=l,v;g!==null;){v=g;var w=v.stateNode;if(v.tag===5&&w!==null&&(v=w,h!==null&&(w=bd(g,h),w!=null&&y.push(Ld(g,w,v)))),D)break;g=g.return}0<y.length&&(p=new d(p,m,null,r,c),f.push({event:p,listeners:y}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",d=e==="mouseout"||e==="pointerout",p&&r!==NS&&(m=r.relatedTarget||r.fromElement)&&($u(m)||m[Ws]))break e;if((d||p)&&(p=c.window===c?c:(p=c.ownerDocument)?p.defaultView||p.parentWindow:window,d?(m=r.relatedTarget||r.toElement,d=l,m=m?$u(m):null,m!==null&&(D=Qu(m),m!==D||m.tag!==5&&m.tag!==6)&&(m=null)):(d=null,m=l),d!==m)){if(y=RB,w="onMouseLeave",h="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(y=kB,w="onPointerLeave",h="onPointerEnter",g="pointer"),D=d==null?p:Ic(d),v=m==null?p:Ic(m),p=new y(w,g+"leave",d,r,c),p.target=D,p.relatedTarget=v,w=null,$u(c)===l&&(y=new y(h,g+"enter",m,r,c),y.target=v,y.relatedTarget=D,w=y),D=w,d&&m)t:{for(y=d,h=m,g=0,v=y;v;v=xc(v))g++;for(v=0,w=h;w;w=xc(w))v++;for(;0<g-v;)y=xc(y),g--;for(;0<v-g;)h=xc(h),v--;for(;g--;){if(y===h||h!==null&&y===h.alternate)break t;y=xc(y),h=xc(h)}y=null}else y=null;d!==null&&KB(f,p,d,y,!1),m!==null&&D!==null&&KB(f,D,m,y,!0)}}e:{if(p=l?Ic(l):window,d=p.nodeName&&p.nodeName.toLowerCase(),d==="select"||d==="input"&&p.type==="file")var E=_ne;else if(VB(p))if(c8)E=Ane;else{E=One;var I=bne}else(d=p.nodeName)&&d.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(E=Fne);if(E&&(E=E(e,l))){l8(f,E,r,c);break e}I&&I(e,p,l),e==="focusout"&&(I=p._wrapperState)&&I.controlled&&p.type==="number"&&AS(p,"number",p.value)}switch(I=l?Ic(l):window,e){case"focusin":(VB(I)||I.contentEditable==="true")&&(Fc=I,US=l,vd=null);break;case"focusout":vd=US=Fc=null;break;case"mousedown":$S=!0;break;case"contextmenu":case"mouseup":case"dragend":$S=!1,GB(f,r,c);break;case"selectionchange":if(Pne)break;case"keydown":case"keyup":GB(f,r,c)}var A;if(Fx)e:{switch(e){case"compositionstart":var W="onCompositionStart";break e;case"compositionend":W="onCompositionEnd";break e;case"compositionupdate":W="onCompositionUpdate";break e}W=void 0}else Oc?a8(e,r)&&(W="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(W="onCompositionStart");W&&(o8&&r.locale!=="ko"&&(Oc||W!=="onCompositionStart"?W==="onCompositionEnd"&&Oc&&(A=s8()):(aa=c,_x="value"in aa?aa.value:aa.textContent,Oc=!0)),I=uy(l,W),0<I.length&&(W=new BB(W,e,null,r,c),f.push({event:W,listeners:I}),A?W.data=A:(A=u8(r),A!==null&&(W.data=A)))),(A=wne?Cne(e,r):Ene(e,r))&&(l=uy(l,"onBeforeInput"),0<l.length&&(c=new BB("onBeforeInput","beforeinput",null,r,c),f.push({event:c,listeners:l}),c.data=A))}w8(f,t)})}function Ld(e,t,r){return{instance:e,listener:t,currentTarget:r}}function uy(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=bd(e,r),s!=null&&n.unshift(Ld(e,s,i)),s=bd(e,t),s!=null&&n.push(Ld(e,s,i))),e=e.return}return n}function xc(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function KB(e,t,r,n,i){for(var s=t._reactName,o=[];r!==null&&r!==n;){var a=r,u=a.alternate,l=a.stateNode;if(u!==null&&u===n)break;a.tag===5&&l!==null&&(a=l,i?(u=bd(r,s),u!=null&&o.unshift(Ld(r,u,a))):i||(u=bd(r,s),u!=null&&o.push(Ld(r,u,a)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}var Nne=/\r\n?/g,Rne=/\u0000|\uFFFD/g;function XB(e){return(typeof e=="string"?e:""+e).replace(Nne,`
|
|
423
|
+
`).replace(Rne,"")}function jg(e,t,r){if(t=XB(t),XB(e)!==t&&r)throw Error(J(425))}function ly(){}var WS=null,GS=null;function qS(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var zS=typeof setTimeout=="function"?setTimeout:void 0,Bne=typeof clearTimeout=="function"?clearTimeout:void 0,JB=typeof Promise=="function"?Promise:void 0,kne=typeof queueMicrotask=="function"?queueMicrotask:typeof JB<"u"?function(e){return JB.resolve(null).then(e).catch(Mne)}:zS;function Mne(e){setTimeout(function(){throw e})}function pS(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){e.removeChild(i),Ad(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);Ad(t)}function pa(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function ZB(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Jc=Math.random().toString(36).slice(2),ss="__reactFiber$"+Jc,Nd="__reactProps$"+Jc,Ws="__reactContainer$"+Jc,HS="__reactEvents$"+Jc,jne="__reactListeners$"+Jc,Vne="__reactHandles$"+Jc;function $u(e){var t=e[ss];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Ws]||r[ss]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=ZB(e);e!==null;){if(r=e[ss])return r;e=ZB(e)}return t}e=r,r=e.parentNode}return null}function Wd(e){return e=e[ss]||e[Ws],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ic(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(J(33))}function Ay(e){return e[Nd]||null}var YS=[],Tc=-1;function wa(e){return{current:e}}function ht(e){0>Tc||(e.current=YS[Tc],YS[Tc]=null,Tc--)}function ut(e,t){Tc++,YS[Tc]=e.current,e.current=t}var Da={},Ar=wa(Da),rn=wa(!1),Hu=Da;function Gc(e,t){var r=e.type.contextTypes;if(!r)return Da;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in r)i[s]=t[s];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function nn(e){return e=e.childContextTypes,e!=null}function cy(){ht(rn),ht(Ar)}function QB(e,t,r){if(Ar.current!==Da)throw Error(J(168));ut(Ar,t),ut(rn,r)}function E8(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(J(108,bre(e)||"Unknown",i));return At({},r,n)}function fy(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Da,Hu=Ar.current,ut(Ar,e),ut(rn,rn.current),!0}function e6(e,t,r){var n=e.stateNode;if(!n)throw Error(J(169));r?(e=E8(e,t,Hu),n.__reactInternalMemoizedMergedChildContext=e,ht(rn),ht(Ar),ut(Ar,e)):ht(rn),ut(rn,r)}var Ms=null,Iy=!1,dS=!1;function S8(e){Ms===null?Ms=[e]:Ms.push(e)}function Une(e){Iy=!0,S8(e)}function Ca(){if(!dS&&Ms!==null){dS=!0;var e=0,t=tt;try{var r=Ms;for(tt=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}Ms=null,Iy=!1}catch(i){throw Ms!==null&&(Ms=Ms.slice(e+1)),Y6(Cx,Ca),i}finally{tt=t,dS=!1}}return null}var Pc=[],Lc=0,py=null,dy=0,ti=[],ri=0,Yu=null,js=1,Vs="";function Vu(e,t){Pc[Lc++]=dy,Pc[Lc++]=py,py=e,dy=t}function x8(e,t,r){ti[ri++]=js,ti[ri++]=Vs,ti[ri++]=Yu,Yu=e;var n=js;e=Vs;var i=32-Ii(n)-1;n&=~(1<<i),r+=1;var s=32-Ii(t)+i;if(30<s){var o=i-i%5;s=(n&(1<<o)-1).toString(32),n>>=o,i-=o,js=1<<32-Ii(t)+i|r<<i|n,Vs=s+e}else js=1<<s|r<<i|n,Vs=e}function Ix(e){e.return!==null&&(Vu(e,1),x8(e,1,0))}function Tx(e){for(;e===py;)py=Pc[--Lc],Pc[Lc]=null,dy=Pc[--Lc],Pc[Lc]=null;for(;e===Yu;)Yu=ti[--ri],ti[ri]=null,Vs=ti[--ri],ti[ri]=null,js=ti[--ri],ti[ri]=null}var xn=null,Sn=null,Et=!1,Ai=null;function _8(e,t){var r=ni(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function t6(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,xn=e,Sn=pa(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,xn=e,Sn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Yu!==null?{id:js,overflow:Vs}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=ni(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,xn=e,Sn=null,!0):!1;default:return!1}}function KS(e){return(e.mode&1)!==0&&(e.flags&128)===0}function XS(e){if(Et){var t=Sn;if(t){var r=t;if(!t6(e,t)){if(KS(e))throw Error(J(418));t=pa(r.nextSibling);var n=xn;t&&t6(e,t)?_8(n,r):(e.flags=e.flags&-4097|2,Et=!1,xn=e)}}else{if(KS(e))throw Error(J(418));e.flags=e.flags&-4097|2,Et=!1,xn=e}}}function r6(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;xn=e}function Vg(e){if(e!==xn)return!1;if(!Et)return r6(e),Et=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!qS(e.type,e.memoizedProps)),t&&(t=Sn)){if(KS(e))throw b8(),Error(J(418));for(;t;)_8(e,t),t=pa(t.nextSibling)}if(r6(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(J(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Sn=pa(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Sn=null}}else Sn=xn?pa(e.stateNode.nextSibling):null;return!0}function b8(){for(var e=Sn;e;)e=pa(e.nextSibling)}function qc(){Sn=xn=null,Et=!1}function Px(e){Ai===null?Ai=[e]:Ai.push(e)}var $ne=zs.ReactCurrentBatchConfig;function ad(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(J(309));var n=r.stateNode}if(!n)throw Error(J(147,e));var i=n,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var a=i.refs;o===null?delete a[s]:a[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(J(284));if(!r._owner)throw Error(J(290,e))}return e}function Ug(e,t){throw e=Object.prototype.toString.call(t),Error(J(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function n6(e){var t=e._init;return t(e._payload)}function O8(e){function t(h,g){if(e){var v=h.deletions;v===null?(h.deletions=[g],h.flags|=16):v.push(g)}}function r(h,g){if(!e)return null;for(;g!==null;)t(h,g),g=g.sibling;return null}function n(h,g){for(h=new Map;g!==null;)g.key!==null?h.set(g.key,g):h.set(g.index,g),g=g.sibling;return h}function i(h,g){return h=ga(h,g),h.index=0,h.sibling=null,h}function s(h,g,v){return h.index=v,e?(v=h.alternate,v!==null?(v=v.index,v<g?(h.flags|=2,g):v):(h.flags|=2,g)):(h.flags|=1048576,g)}function o(h){return e&&h.alternate===null&&(h.flags|=2),h}function a(h,g,v,w){return g===null||g.tag!==6?(g=wS(v,h.mode,w),g.return=h,g):(g=i(g,v),g.return=h,g)}function u(h,g,v,w){var E=v.type;return E===bc?c(h,g,v.props.children,w,v.key):g!==null&&(g.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===na&&n6(E)===g.type)?(w=i(g,v.props),w.ref=ad(h,g,v),w.return=h,w):(w=ey(v.type,v.key,v.props,null,h.mode,w),w.ref=ad(h,g,v),w.return=h,w)}function l(h,g,v,w){return g===null||g.tag!==4||g.stateNode.containerInfo!==v.containerInfo||g.stateNode.implementation!==v.implementation?(g=CS(v,h.mode,w),g.return=h,g):(g=i(g,v.children||[]),g.return=h,g)}function c(h,g,v,w,E){return g===null||g.tag!==7?(g=zu(v,h.mode,w,E),g.return=h,g):(g=i(g,v),g.return=h,g)}function f(h,g,v){if(typeof g=="string"&&g!==""||typeof g=="number")return g=wS(""+g,h.mode,v),g.return=h,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case bg:return v=ey(g.type,g.key,g.props,null,h.mode,v),v.ref=ad(h,null,g),v.return=h,v;case _c:return g=CS(g,h.mode,v),g.return=h,g;case na:var w=g._init;return f(h,w(g._payload),v)}if(pd(g)||nd(g))return g=zu(g,h.mode,v,null),g.return=h,g;Ug(h,g)}return null}function p(h,g,v,w){var E=g!==null?g.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return E!==null?null:a(h,g,""+v,w);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case bg:return v.key===E?u(h,g,v,w):null;case _c:return v.key===E?l(h,g,v,w):null;case na:return E=v._init,p(h,g,E(v._payload),w)}if(pd(v)||nd(v))return E!==null?null:c(h,g,v,w,null);Ug(h,v)}return null}function d(h,g,v,w,E){if(typeof w=="string"&&w!==""||typeof w=="number")return h=h.get(v)||null,a(g,h,""+w,E);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case bg:return h=h.get(w.key===null?v:w.key)||null,u(g,h,w,E);case _c:return h=h.get(w.key===null?v:w.key)||null,l(g,h,w,E);case na:var I=w._init;return d(h,g,v,I(w._payload),E)}if(pd(w)||nd(w))return h=h.get(v)||null,c(g,h,w,E,null);Ug(g,w)}return null}function m(h,g,v,w){for(var E=null,I=null,A=g,W=g=0,b=null;A!==null&&W<v.length;W++){A.index>W?(b=A,A=null):b=A.sibling;var T=p(h,A,v[W],w);if(T===null){A===null&&(A=b);break}e&&A&&T.alternate===null&&t(h,A),g=s(T,g,W),I===null?E=T:I.sibling=T,I=T,A=b}if(W===v.length)return r(h,A),Et&&Vu(h,W),E;if(A===null){for(;W<v.length;W++)A=f(h,v[W],w),A!==null&&(g=s(A,g,W),I===null?E=A:I.sibling=A,I=A);return Et&&Vu(h,W),E}for(A=n(h,A);W<v.length;W++)b=d(A,h,W,v[W],w),b!==null&&(e&&b.alternate!==null&&A.delete(b.key===null?W:b.key),g=s(b,g,W),I===null?E=b:I.sibling=b,I=b);return e&&A.forEach(function(F){return t(h,F)}),Et&&Vu(h,W),E}function y(h,g,v,w){var E=nd(v);if(typeof E!="function")throw Error(J(150));if(v=E.call(v),v==null)throw Error(J(151));for(var I=E=null,A=g,W=g=0,b=null,T=v.next();A!==null&&!T.done;W++,T=v.next()){A.index>W?(b=A,A=null):b=A.sibling;var F=p(h,A,T.value,w);if(F===null){A===null&&(A=b);break}e&&A&&F.alternate===null&&t(h,A),g=s(F,g,W),I===null?E=F:I.sibling=F,I=F,A=b}if(T.done)return r(h,A),Et&&Vu(h,W),E;if(A===null){for(;!T.done;W++,T=v.next())T=f(h,T.value,w),T!==null&&(g=s(T,g,W),I===null?E=T:I.sibling=T,I=T);return Et&&Vu(h,W),E}for(A=n(h,A);!T.done;W++,T=v.next())T=d(A,h,W,T.value,w),T!==null&&(e&&T.alternate!==null&&A.delete(T.key===null?W:T.key),g=s(T,g,W),I===null?E=T:I.sibling=T,I=T);return e&&A.forEach(function(k){return t(h,k)}),Et&&Vu(h,W),E}function D(h,g,v,w){if(typeof v=="object"&&v!==null&&v.type===bc&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case bg:e:{for(var E=v.key,I=g;I!==null;){if(I.key===E){if(E=v.type,E===bc){if(I.tag===7){r(h,I.sibling),g=i(I,v.props.children),g.return=h,h=g;break e}}else if(I.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===na&&n6(E)===I.type){r(h,I.sibling),g=i(I,v.props),g.ref=ad(h,I,v),g.return=h,h=g;break e}r(h,I);break}else t(h,I);I=I.sibling}v.type===bc?(g=zu(v.props.children,h.mode,w,v.key),g.return=h,h=g):(w=ey(v.type,v.key,v.props,null,h.mode,w),w.ref=ad(h,g,v),w.return=h,h=w)}return o(h);case _c:e:{for(I=v.key;g!==null;){if(g.key===I)if(g.tag===4&&g.stateNode.containerInfo===v.containerInfo&&g.stateNode.implementation===v.implementation){r(h,g.sibling),g=i(g,v.children||[]),g.return=h,h=g;break e}else{r(h,g);break}else t(h,g);g=g.sibling}g=CS(v,h.mode,w),g.return=h,h=g}return o(h);case na:return I=v._init,D(h,g,I(v._payload),w)}if(pd(v))return m(h,g,v,w);if(nd(v))return y(h,g,v,w);Ug(h,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,g!==null&&g.tag===6?(r(h,g.sibling),g=i(g,v),g.return=h,h=g):(r(h,g),g=wS(v,h.mode,w),g.return=h,h=g),o(h)):r(h,g)}return D}var zc=O8(!0),F8=O8(!1),my=wa(null),hy=null,Nc=null,Lx=null;function Nx(){Lx=Nc=hy=null}function Rx(e){var t=my.current;ht(my),e._currentValue=t}function JS(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Uc(e,t){hy=e,Lx=Nc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(tn=!0),e.firstContext=null)}function si(e){var t=e._currentValue;if(Lx!==e)if(e={context:e,memoizedValue:t,next:null},Nc===null){if(hy===null)throw Error(J(308));Nc=e,hy.dependencies={lanes:0,firstContext:e}}else Nc=Nc.next=e;return t}var Wu=null;function Bx(e){Wu===null?Wu=[e]:Wu.push(e)}function A8(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,Bx(t)):(r.next=i.next,i.next=r),t.interleaved=r,Gs(e,n)}function Gs(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var ia=!1;function kx(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function I8(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Us(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function da(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Xe&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,Gs(e,r)}return i=n.interleaved,i===null?(t.next=t,Bx(n)):(t.next=i.next,i.next=t),n.interleaved=t,Gs(e,r)}function Yg(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Ex(e,r)}}function i6(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,s=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};s===null?i=s=o:s=s.next=o,r=r.next}while(r!==null);s===null?i=s=t:s=s.next=t}else i=s=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function gy(e,t,r,n){var i=e.updateQueue;ia=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var u=a,l=u.next;u.next=null,o===null?s=l:o.next=l,o=u;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==o&&(a===null?c.firstBaseUpdate=l:a.next=l,c.lastBaseUpdate=u))}if(s!==null){var f=i.baseState;o=0,c=l=u=null,a=s;do{var p=a.lane,d=a.eventTime;if((n&p)===p){c!==null&&(c=c.next={eventTime:d,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,y=a;switch(p=t,d=r,y.tag){case 1:if(m=y.payload,typeof m=="function"){f=m.call(d,f,p);break e}f=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=y.payload,p=typeof m=="function"?m.call(d,f,p):m,p==null)break e;f=At({},f,p);break e;case 2:ia=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[a]:p.push(a))}else d={eventTime:d,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(l=c=d,u=f):c=c.next=d,o|=p;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;p=a,a=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(c===null&&(u=f),i.baseState=u,i.firstBaseUpdate=l,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);Xu|=o,e.lanes=o,e.memoizedState=f}}function s6(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(J(191,i));i.call(n)}}}var Gd={},as=wa(Gd),Rd=wa(Gd),Bd=wa(Gd);function Gu(e){if(e===Gd)throw Error(J(174));return e}function Mx(e,t){switch(ut(Bd,t),ut(Rd,e),ut(as,Gd),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:TS(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=TS(t,e)}ht(as),ut(as,t)}function Hc(){ht(as),ht(Rd),ht(Bd)}function T8(e){Gu(Bd.current);var t=Gu(as.current),r=TS(t,e.type);t!==r&&(ut(Rd,e),ut(as,r))}function jx(e){Rd.current===e&&(ht(as),ht(Rd))}var Ot=wa(0);function yy(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var mS=[];function Vx(){for(var e=0;e<mS.length;e++)mS[e]._workInProgressVersionPrimary=null;mS.length=0}var Kg=zs.ReactCurrentDispatcher,hS=zs.ReactCurrentBatchConfig,Ku=0,Ft=null,Kt=null,sr=null,Dy=!1,wd=!1,kd=0,Wne=0;function br(){throw Error(J(321))}function Ux(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Pi(e[r],t[r]))return!1;return!0}function $x(e,t,r,n,i,s){if(Ku=s,Ft=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Kg.current=e===null||e.memoizedState===null?Hne:Yne,e=r(n,i),wd){s=0;do{if(wd=!1,kd=0,25<=s)throw Error(J(301));s+=1,sr=Kt=null,t.updateQueue=null,Kg.current=Kne,e=r(n,i)}while(wd)}if(Kg.current=vy,t=Kt!==null&&Kt.next!==null,Ku=0,sr=Kt=Ft=null,Dy=!1,t)throw Error(J(300));return e}function Wx(){var e=kd!==0;return kd=0,e}function is(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return sr===null?Ft.memoizedState=sr=e:sr=sr.next=e,sr}function oi(){if(Kt===null){var e=Ft.alternate;e=e!==null?e.memoizedState:null}else e=Kt.next;var t=sr===null?Ft.memoizedState:sr.next;if(t!==null)sr=t,Kt=e;else{if(e===null)throw Error(J(310));Kt=e,e={memoizedState:Kt.memoizedState,baseState:Kt.baseState,baseQueue:Kt.baseQueue,queue:Kt.queue,next:null},sr===null?Ft.memoizedState=sr=e:sr=sr.next=e}return sr}function Md(e,t){return typeof t=="function"?t(e):t}function gS(e){var t=oi(),r=t.queue;if(r===null)throw Error(J(311));r.lastRenderedReducer=e;var n=Kt,i=n.baseQueue,s=r.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}n.baseQueue=i=s,r.pending=null}if(i!==null){s=i.next,n=n.baseState;var a=o=null,u=null,l=s;do{var c=l.lane;if((Ku&c)===c)u!==null&&(u=u.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),n=l.hasEagerState?l.eagerState:e(n,l.action);else{var f={lane:c,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};u===null?(a=u=f,o=n):u=u.next=f,Ft.lanes|=c,Xu|=c}l=l.next}while(l!==null&&l!==s);u===null?o=n:u.next=a,Pi(n,t.memoizedState)||(tn=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=u,r.lastRenderedState=n}if(e=r.interleaved,e!==null){i=e;do s=i.lane,Ft.lanes|=s,Xu|=s,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function yS(e){var t=oi(),r=t.queue;if(r===null)throw Error(J(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,s=t.memoizedState;if(i!==null){r.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);Pi(s,t.memoizedState)||(tn=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),r.lastRenderedState=s}return[s,n]}function P8(){}function L8(e,t){var r=Ft,n=oi(),i=t(),s=!Pi(n.memoizedState,i);if(s&&(n.memoizedState=i,tn=!0),n=n.queue,Gx(B8.bind(null,r,n,e),[e]),n.getSnapshot!==t||s||sr!==null&&sr.memoizedState.tag&1){if(r.flags|=2048,jd(9,R8.bind(null,r,n,i,t),void 0,null),or===null)throw Error(J(349));Ku&30||N8(r,t,i)}return i}function N8(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Ft.updateQueue,t===null?(t={lastEffect:null,stores:null},Ft.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function R8(e,t,r,n){t.value=r,t.getSnapshot=n,k8(t)&&M8(e)}function B8(e,t,r){return r(function(){k8(t)&&M8(e)})}function k8(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Pi(e,r)}catch{return!0}}function M8(e){var t=Gs(e,1);t!==null&&Ti(t,e,1,-1)}function o6(e){var t=is();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Md,lastRenderedState:e},t.queue=e,e=e.dispatch=zne.bind(null,Ft,e),[t.memoizedState,e]}function jd(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=Ft.updateQueue,t===null?(t={lastEffect:null,stores:null},Ft.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function j8(){return oi().memoizedState}function Xg(e,t,r,n){var i=is();Ft.flags|=e,i.memoizedState=jd(1|t,r,void 0,n===void 0?null:n)}function Ty(e,t,r,n){var i=oi();n=n===void 0?null:n;var s=void 0;if(Kt!==null){var o=Kt.memoizedState;if(s=o.destroy,n!==null&&Ux(n,o.deps)){i.memoizedState=jd(t,r,s,n);return}}Ft.flags|=e,i.memoizedState=jd(1|t,r,s,n)}function a6(e,t){return Xg(8390656,8,e,t)}function Gx(e,t){return Ty(2048,8,e,t)}function V8(e,t){return Ty(4,2,e,t)}function U8(e,t){return Ty(4,4,e,t)}function $8(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function W8(e,t,r){return r=r!=null?r.concat([e]):null,Ty(4,4,$8.bind(null,t,e),r)}function qx(){}function G8(e,t){var r=oi();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Ux(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function q8(e,t){var r=oi();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Ux(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function z8(e,t,r){return Ku&21?(Pi(r,t)||(r=J6(),Ft.lanes|=r,Xu|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,tn=!0),e.memoizedState=r)}function Gne(e,t){var r=tt;tt=r!==0&&4>r?r:4,e(!0);var n=hS.transition;hS.transition={};try{e(!1),t()}finally{tt=r,hS.transition=n}}function H8(){return oi().memoizedState}function qne(e,t,r){var n=ha(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Y8(e))K8(t,r);else if(r=A8(e,t,r,n),r!==null){var i=Ur();Ti(r,e,n,i),X8(r,t,n)}}function zne(e,t,r){var n=ha(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Y8(e))K8(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,r);if(i.hasEagerState=!0,i.eagerState=a,Pi(a,o)){var u=t.interleaved;u===null?(i.next=i,Bx(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}r=A8(e,t,i,n),r!==null&&(i=Ur(),Ti(r,e,n,i),X8(r,t,n))}}function Y8(e){var t=e.alternate;return e===Ft||t!==null&&t===Ft}function K8(e,t){wd=Dy=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function X8(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Ex(e,r)}}var vy={readContext:si,useCallback:br,useContext:br,useEffect:br,useImperativeHandle:br,useInsertionEffect:br,useLayoutEffect:br,useMemo:br,useReducer:br,useRef:br,useState:br,useDebugValue:br,useDeferredValue:br,useTransition:br,useMutableSource:br,useSyncExternalStore:br,useId:br,unstable_isNewReconciler:!1},Hne={readContext:si,useCallback:function(e,t){return is().memoizedState=[e,t===void 0?null:t],e},useContext:si,useEffect:a6,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Xg(4194308,4,$8.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Xg(4194308,4,e,t)},useInsertionEffect:function(e,t){return Xg(4,2,e,t)},useMemo:function(e,t){var r=is();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=is();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=qne.bind(null,Ft,e),[n.memoizedState,e]},useRef:function(e){var t=is();return e={current:e},t.memoizedState=e},useState:o6,useDebugValue:qx,useDeferredValue:function(e){return is().memoizedState=e},useTransition:function(){var e=o6(!1),t=e[0];return e=Gne.bind(null,e[1]),is().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Ft,i=is();if(Et){if(r===void 0)throw Error(J(407));r=r()}else{if(r=t(),or===null)throw Error(J(349));Ku&30||N8(n,t,r)}i.memoizedState=r;var s={value:r,getSnapshot:t};return i.queue=s,a6(B8.bind(null,n,s,e),[e]),n.flags|=2048,jd(9,R8.bind(null,n,s,r,t),void 0,null),r},useId:function(){var e=is(),t=or.identifierPrefix;if(Et){var r=Vs,n=js;r=(n&~(1<<32-Ii(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=kd++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=Wne++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Yne={readContext:si,useCallback:G8,useContext:si,useEffect:Gx,useImperativeHandle:W8,useInsertionEffect:V8,useLayoutEffect:U8,useMemo:q8,useReducer:gS,useRef:j8,useState:function(){return gS(Md)},useDebugValue:qx,useDeferredValue:function(e){var t=oi();return z8(t,Kt.memoizedState,e)},useTransition:function(){var e=gS(Md)[0],t=oi().memoizedState;return[e,t]},useMutableSource:P8,useSyncExternalStore:L8,useId:H8,unstable_isNewReconciler:!1},Kne={readContext:si,useCallback:G8,useContext:si,useEffect:Gx,useImperativeHandle:W8,useInsertionEffect:V8,useLayoutEffect:U8,useMemo:q8,useReducer:yS,useRef:j8,useState:function(){return yS(Md)},useDebugValue:qx,useDeferredValue:function(e){var t=oi();return Kt===null?t.memoizedState=e:z8(t,Kt.memoizedState,e)},useTransition:function(){var e=yS(Md)[0],t=oi().memoizedState;return[e,t]},useMutableSource:P8,useSyncExternalStore:L8,useId:H8,unstable_isNewReconciler:!1};function Oi(e,t){if(e&&e.defaultProps){t=At({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function ZS(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:At({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Py={isMounted:function(e){return(e=e._reactInternals)?Qu(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Ur(),i=ha(e),s=Us(n,i);s.payload=t,r!=null&&(s.callback=r),t=da(e,s,i),t!==null&&(Ti(t,e,i,n),Yg(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Ur(),i=ha(e),s=Us(n,i);s.tag=1,s.payload=t,r!=null&&(s.callback=r),t=da(e,s,i),t!==null&&(Ti(t,e,i,n),Yg(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Ur(),n=ha(e),i=Us(r,n);i.tag=2,t!=null&&(i.callback=t),t=da(e,i,n),t!==null&&(Ti(t,e,n,r),Yg(t,e,n))}};function u6(e,t,r,n,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,s,o):t.prototype&&t.prototype.isPureReactComponent?!Td(r,n)||!Td(i,s):!0}function J8(e,t,r){var n=!1,i=Da,s=t.contextType;return typeof s=="object"&&s!==null?s=si(s):(i=nn(t)?Hu:Ar.current,n=t.contextTypes,s=(n=n!=null)?Gc(e,i):Da),t=new t(r,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Py,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function l6(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Py.enqueueReplaceState(t,t.state,null)}function QS(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs={},kx(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=si(s):(s=nn(t)?Hu:Ar.current,i.context=Gc(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(ZS(e,t,s,r),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Py.enqueueReplaceState(i,i.state,null),gy(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Yc(e,t){try{var r="",n=t;do r+=_re(n),n=n.return;while(n);var i=r}catch(s){i=`
|
|
424
424
|
Error generating stack: `+s.message+`
|
|
425
|
-
`+s.stack}return{value:e,source:t,stack:i,digest:null}}function DS(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function ex(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var Xne=typeof WeakMap=="function"?WeakMap:Map;function Z8(e,t,r){r=Us(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Cy||(Cy=!0,cx=n),ex(e,t)},r}function Q8(e,t,r){r=Us(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){ex(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(r.callback=function(){ex(e,t),typeof n!="function"&&(ma===null?ma=new Set([this]):ma.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}function c6(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new Xne;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=cie.bind(null,e,t,r),t.then(e,e))}function f6(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function p6(e,t,r,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Us(-1,1),t.tag=2,da(r,t,1))),r.lanes|=1),e)}var Jne=zs.ReactCurrentOwner,tn=!1;function Vr(e,t,r,n){t.child=e===null?F8(t,null,r,n):zc(t,e.child,r,n)}function d6(e,t,r,n,i){r=r.render;var s=t.ref;return Uc(t,i),n=$x(e,t,r,n,s,i),r=Wx(),e!==null&&!tn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,qs(e,t,i)):(Et&&r&&Ix(t),t.flags|=1,Vr(e,t,n,i),t.child)}function m6(e,t,r,n,i){if(e===null){var s=r.type;return typeof s=="function"&&!Qx(s)&&s.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=s,ek(e,t,s,n,i)):(e=ey(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(r=r.compare,r=r!==null?r:Td,r(o,n)&&e.ref===t.ref)return qs(e,t,i)}return t.flags|=1,e=ga(s,n),e.ref=t.ref,e.return=t,t.child=e}function ek(e,t,r,n,i){if(e!==null){var s=e.memoizedProps;if(Td(s,n)&&e.ref===t.ref)if(tn=!1,t.pendingProps=n=s,(e.lanes&i)!==0)e.flags&131072&&(tn=!0);else return t.lanes=e.lanes,qs(e,t,i)}return tx(e,t,r,n,i)}function tk(e,t,r){var n=t.pendingProps,i=n.children,s=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ut(Bc,En),En|=r;else{if(!(r&1073741824))return e=s!==null?s.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ut(Bc,En),En|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=s!==null?s.baseLanes:r,ut(Bc,En),En|=n}else s!==null?(n=s.baseLanes|r,t.memoizedState=null):n=r,ut(Bc,En),En|=n;return Vr(e,t,i,r),t.child}function rk(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function tx(e,t,r,n,i){var s=nn(r)?Hu:Ar.current;return s=Gc(t,s),Uc(t,i),r=$x(e,t,r,n,s,i),n=Wx(),e!==null&&!tn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,qs(e,t,i)):(Et&&n&&Ix(t),t.flags|=1,Vr(e,t,r,i),t.child)}function h6(e,t,r,n,i){if(nn(r)){var s=!0;fy(t)}else s=!1;if(Uc(t,i),t.stateNode===null)Jg(e,t),J8(t,r,n),QS(t,r,n,i),n=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var u=o.context,l=r.contextType;typeof l=="object"&&l!==null?l=si(l):(l=nn(r)?Hu:Ar.current,l=Gc(t,l));var c=r.getDerivedStateFromProps,f=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==n||u!==l)&&l6(t,o,n,l),ia=!1;var p=t.memoizedState;o.state=p,gy(t,n,o,i),u=t.memoizedState,a!==n||p!==u||rn.current||ia?(typeof c=="function"&&(ZS(t,r,c,n),u=t.memoizedState),(a=ia||u6(t,r,a,n,p,u,l))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=u),o.props=n,o.state=u,o.context=l,n=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,I8(e,t),a=t.memoizedProps,l=t.type===t.elementType?a:Oi(t.type,a),o.props=l,f=t.pendingProps,p=o.context,u=r.contextType,typeof u=="object"&&u!==null?u=si(u):(u=nn(r)?Hu:Ar.current,u=Gc(t,u));var d=r.getDerivedStateFromProps;(c=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==f||p!==u)&&l6(t,o,n,u),ia=!1,p=t.memoizedState,o.state=p,gy(t,n,o,i);var m=t.memoizedState;a!==f||p!==m||rn.current||ia?(typeof d=="function"&&(ZS(t,r,d,n),m=t.memoizedState),(l=ia||u6(t,r,l,n,p,m,u)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,m,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,m,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=m),o.props=n,o.state=m,o.context=u,n=l):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),n=!1)}return rx(e,t,r,n,s,i)}function rx(e,t,r,n,i,s){rk(e,t);var o=(t.flags&128)!==0;if(!n&&!o)return i&&e6(t,r,!1),qs(e,t,s);n=t.stateNode,Jne.current=t;var a=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=zc(t,e.child,null,s),t.child=zc(t,null,a,s)):Vr(e,t,a,s),t.memoizedState=n.state,i&&e6(t,r,!0),t.child}function nk(e){var t=e.stateNode;t.pendingContext?QB(e,t.pendingContext,t.pendingContext!==t.context):t.context&&QB(e,t.context,!1),Mx(e,t.containerInfo)}function g6(e,t,r,n,i){return qc(),Px(i),t.flags|=256,Vr(e,t,r,n),t.child}var nx={dehydrated:null,treeContext:null,retryLane:0};function ix(e){return{baseLanes:e,cachePool:null,transitions:null}}function ik(e,t,r){var n=t.pendingProps,i=Ot.current,s=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ut(Ot,i&1),e===null)return XS(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=n.children,e=n.fallback,s?(n=t.mode,s=t.child,o={mode:"hidden",children:o},!(n&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=Ry(o,n,0,null),e=zu(e,n,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=ix(r),t.memoizedState=nx,e):zx(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return Zne(e,t,o,n,a,i,r);if(s){s=n.fallback,o=t.mode,i=e.child,a=i.sibling;var u={mode:"hidden",children:n.children};return!(o&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=u,t.deletions=null):(n=ga(i,u),n.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=ga(a,s):(s=zu(s,o,r,null),s.flags|=2),s.return=t,n.return=t,n.sibling=s,t.child=n,n=s,s=t.child,o=e.child.memoizedState,o=o===null?ix(r):{baseLanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~r,t.memoizedState=nx,n}return s=e.child,e=s.sibling,n=ga(s,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function zx(e,t){return t=Ry({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function $g(e,t,r,n){return n!==null&&Px(n),zc(t,e.child,null,r),e=zx(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Zne(e,t,r,n,i,s,o){if(r)return t.flags&256?(t.flags&=-257,n=DS(Error(J(422))),$g(e,t,o,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=n.fallback,i=t.mode,n=Ry({mode:"visible",children:n.children},i,0,null),s=zu(s,i,o,null),s.flags|=2,n.return=t,s.return=t,n.sibling=s,t.child=n,t.mode&1&&zc(t,e.child,null,o),t.child.memoizedState=ix(o),t.memoizedState=nx,s);if(!(t.mode&1))return $g(e,t,o,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var a=n.dgst;return n=a,s=Error(J(419)),n=DS(s,n,void 0),$g(e,t,o,n)}if(a=(o&e.childLanes)!==0,tn||a){if(n=or,n!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,Gs(e,i),Ti(n,e,i,-1))}return Zx(),n=DS(Error(J(421))),$g(e,t,o,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=fie.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,Sn=pa(i.nextSibling),xn=t,Et=!0,Ai=null,e!==null&&(ti[ri++]=js,ti[ri++]=Vs,ti[ri++]=Yu,js=e.id,Vs=e.overflow,Yu=t),t=zx(t,n.children),t.flags|=4096,t)}function y6(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),JS(e.return,t,r)}function vS(e,t,r,n,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=n,s.tail=r,s.tailMode=i)}function sk(e,t,r){var n=t.pendingProps,i=n.revealOrder,s=n.tail;if(Vr(e,t,n.children,r),n=Ot.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&y6(e,r,t);else if(e.tag===19)y6(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(ut(Ot,n),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&yy(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),vS(t,!1,i,r,s);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&yy(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}vS(t,!0,r,null,s);break;case"together":vS(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Jg(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function qs(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Xu|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(J(153));if(t.child!==null){for(e=t.child,r=ga(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=ga(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Qne(e,t,r){switch(t.tag){case 3:nk(t),qc();break;case 5:T8(t);break;case 1:nn(t.type)&&fy(t);break;case 4:Mx(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;ut(my,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(ut(Ot,Ot.current&1),t.flags|=128,null):r&t.child.childLanes?ik(e,t,r):(ut(Ot,Ot.current&1),e=qs(e,t,r),e!==null?e.sibling:null);ut(Ot,Ot.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return sk(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ut(Ot,Ot.current),n)break;return null;case 22:case 23:return t.lanes=0,tk(e,t,r)}return qs(e,t,r)}var ok,sx,ak,uk;ok=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};sx=function(){};ak=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,Gu(us.current);var s=null;switch(r){case"input":i=OS(e,i),n=OS(e,n),s=[];break;case"select":i=At({},i,{value:void 0}),n=At({},n,{value:void 0}),s=[];break;case"textarea":i=IS(e,i),n=IS(e,n),s=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=ly)}PS(r,n);var o;r=null;for(l in i)if(!n.hasOwnProperty(l)&&i.hasOwnProperty(l)&&i[l]!=null)if(l==="style"){var a=i[l];for(o in a)a.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(xd.hasOwnProperty(l)?s||(s=[]):(s=s||[]).push(l,null));for(l in n){var u=n[l];if(a=i?.[l],n.hasOwnProperty(l)&&u!==a&&(u!=null||a!=null))if(l==="style")if(a){for(o in a)!a.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in u)u.hasOwnProperty(o)&&a[o]!==u[o]&&(r||(r={}),r[o]=u[o])}else r||(s||(s=[]),s.push(l,r)),r=u;else l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(s=s||[]).push(l,u)):l==="children"?typeof u!="string"&&typeof u!="number"||(s=s||[]).push(l,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(xd.hasOwnProperty(l)?(u!=null&&l==="onScroll"&&mt("scroll",e),s||a===u||(s=[])):(s=s||[]).push(l,u))}r&&(s=s||[]).push("style",r);var l=s;(t.updateQueue=l)&&(t.flags|=4)}};uk=function(e,t,r,n){r!==n&&(t.flags|=4)};function ud(e,t){if(!Et)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Or(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function eie(e,t,r){var n=t.pendingProps;switch(Tx(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Or(t),null;case 1:return nn(t.type)&&cy(),Or(t),null;case 3:return n=t.stateNode,Hc(),ht(rn),ht(Ar),Vx(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Vg(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ai!==null&&(dx(Ai),Ai=null))),sx(e,t),Or(t),null;case 5:jx(t);var i=Gu(Bd.current);if(r=t.type,e!==null&&t.stateNode!=null)ak(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(J(166));return Or(t),null}if(e=Gu(us.current),Vg(t)){n=t.stateNode,r=t.type;var s=t.memoizedProps;switch(n[os]=t,n[Nd]=s,e=(t.mode&1)!==0,r){case"dialog":mt("cancel",n),mt("close",n);break;case"iframe":case"object":case"embed":mt("load",n);break;case"video":case"audio":for(i=0;i<md.length;i++)mt(md[i],n);break;case"source":mt("error",n);break;case"img":case"image":case"link":mt("error",n),mt("load",n);break;case"details":mt("toggle",n);break;case"input":_B(n,s),mt("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!s.multiple},mt("invalid",n);break;case"textarea":OB(n,s),mt("invalid",n)}PS(r,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?n.textContent!==a&&(s.suppressHydrationWarning!==!0&&jg(n.textContent,a,e),i=["children",a]):typeof a=="number"&&n.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&jg(n.textContent,a,e),i=["children",""+a]):xd.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&mt("scroll",n)}switch(r){case"input":Og(n),bB(n,s,!0);break;case"textarea":Og(n),FB(n);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(n.onclick=ly)}n=i,t.updateQueue=n,n!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=B6(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=o.createElement("div"),e.innerHTML="<script></script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[os]=t,e[Nd]=n,ok(e,t,!1,!1),t.stateNode=e;e:{switch(o=LS(r,n),r){case"dialog":mt("cancel",e),mt("close",e),i=n;break;case"iframe":case"object":case"embed":mt("load",e),i=n;break;case"video":case"audio":for(i=0;i<md.length;i++)mt(md[i],e);i=n;break;case"source":mt("error",e),i=n;break;case"img":case"image":case"link":mt("error",e),mt("load",e),i=n;break;case"details":mt("toggle",e),i=n;break;case"input":_B(e,n),i=OS(e,n),mt("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=At({},n,{value:void 0}),mt("invalid",e);break;case"textarea":OB(e,n),i=IS(e,n),mt("invalid",e);break;default:i=n}PS(r,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var u=a[s];s==="style"?j6(e,u):s==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&k6(e,u)):s==="children"?typeof u=="string"?(r!=="textarea"||u!=="")&&_d(e,u):typeof u=="number"&&_d(e,""+u):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(xd.hasOwnProperty(s)?u!=null&&s==="onScroll"&&mt("scroll",e):u!=null&&gx(e,s,u,o))}switch(r){case"input":Og(e),bB(e,n,!1);break;case"textarea":Og(e),FB(e);break;case"option":n.value!=null&&e.setAttribute("value",""+ya(n.value));break;case"select":e.multiple=!!n.multiple,s=n.value,s!=null?kc(e,!!n.multiple,s,!1):n.defaultValue!=null&&kc(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=ly)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Or(t),null;case 6:if(e&&t.stateNode!=null)uk(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(J(166));if(r=Gu(Bd.current),Gu(us.current),Vg(t)){if(n=t.stateNode,r=t.memoizedProps,n[os]=t,(s=n.nodeValue!==r)&&(e=xn,e!==null))switch(e.tag){case 3:jg(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&jg(n.nodeValue,r,(e.mode&1)!==0)}s&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[os]=t,t.stateNode=n}return Or(t),null;case 13:if(ht(Ot),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Et&&Sn!==null&&t.mode&1&&!(t.flags&128))b8(),qc(),t.flags|=98560,s=!1;else if(s=Vg(t),n!==null&&n.dehydrated!==null){if(e===null){if(!s)throw Error(J(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(J(317));s[os]=t}else qc(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Or(t),s=!1}else Ai!==null&&(dx(Ai),Ai=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||Ot.current&1?Xt===0&&(Xt=3):Zx())),t.updateQueue!==null&&(t.flags|=4),Or(t),null);case 4:return Hc(),sx(e,t),e===null&&Pd(t.stateNode.containerInfo),Or(t),null;case 10:return Rx(t.type._context),Or(t),null;case 17:return nn(t.type)&&cy(),Or(t),null;case 19:if(ht(Ot),s=t.memoizedState,s===null)return Or(t),null;if(n=(t.flags&128)!==0,o=s.rendering,o===null)if(n)ud(s,!1);else{if(Xt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=yy(e),o!==null){for(t.flags|=128,ud(s,!1),n=o.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)s=r,e=n,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ut(Ot,Ot.current&1|2),t.child}e=e.sibling}s.tail!==null&&kt()>Kc&&(t.flags|=128,n=!0,ud(s,!1),t.lanes=4194304)}else{if(!n)if(e=yy(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),ud(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!Et)return Or(t),null}else 2*kt()-s.renderingStartTime>Kc&&r!==1073741824&&(t.flags|=128,n=!0,ud(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(r=s.last,r!==null?r.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=kt(),t.sibling=null,r=Ot.current,ut(Ot,n?r&1|2:r&1),t):(Or(t),null);case 22:case 23:return Jx(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?En&1073741824&&(Or(t),t.subtreeFlags&6&&(t.flags|=8192)):Or(t),null;case 24:return null;case 25:return null}throw Error(J(156,t.tag))}function tie(e,t){switch(Tx(t),t.tag){case 1:return nn(t.type)&&cy(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Hc(),ht(rn),ht(Ar),Vx(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return jx(t),null;case 13:if(ht(Ot),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(J(340));qc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ht(Ot),null;case 4:return Hc(),null;case 10:return Rx(t.type._context),null;case 22:case 23:return Jx(),null;case 24:return null;default:return null}}var Wg=!1,Fr=!1,rie=typeof WeakSet=="function"?WeakSet:Set,de=null;function Rc(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Pt(e,t,n)}else r.current=null}function ox(e,t,r){try{r()}catch(n){Pt(e,t,n)}}var D6=!1;function nie(e,t){if(WS=oy,e=d8(),Ax(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{r.nodeType,s.nodeType}catch{r=null;break e}var o=0,a=-1,u=-1,l=0,c=0,f=e,p=null;t:for(;;){for(var d;f!==r||i!==0&&f.nodeType!==3||(a=o+i),f!==s||n!==0&&f.nodeType!==3||(u=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(d=f.firstChild)!==null;)p=f,f=d;for(;;){if(f===e)break t;if(p===r&&++l===i&&(a=o),p===s&&++c===n&&(u=o),(d=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=d}r=a===-1||u===-1?null:{start:a,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(GS={focusedElem:e,selectionRange:r},oy=!1,de=t;de!==null;)if(t=de,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,de=e;else for(;de!==null;){t=de;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,D=m.memoizedState,h=t.stateNode,g=h.getSnapshotBeforeUpdate(t.elementType===t.type?y:Oi(t.type,y),D);h.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(J(163))}}catch(w){Pt(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,de=e;break}de=t.return}return m=D6,D6=!1,m}function Cd(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&ox(t,r,s)}i=i.next}while(i!==n)}}function Ly(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function ax(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function lk(e){var t=e.alternate;t!==null&&(e.alternate=null,lk(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[os],delete t[Nd],delete t[HS],delete t[jne],delete t[Vne])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ck(e){return e.tag===5||e.tag===3||e.tag===4}function v6(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ck(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ux(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=ly));else if(n!==4&&(e=e.child,e!==null))for(ux(e,t,r),e=e.sibling;e!==null;)ux(e,t,r),e=e.sibling}function lx(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(lx(e,t,r),e=e.sibling;e!==null;)lx(e,t,r),e=e.sibling}var mr=null,Fi=!1;function ra(e,t,r){for(r=r.child;r!==null;)fk(e,t,r),r=r.sibling}function fk(e,t,r){if(as&&typeof as.onCommitFiberUnmount=="function")try{as.onCommitFiberUnmount(_y,r)}catch{}switch(r.tag){case 5:Fr||Rc(r,t);case 6:var n=mr,i=Fi;mr=null,ra(e,t,r),mr=n,Fi=i,mr!==null&&(Fi?(e=mr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):mr.removeChild(r.stateNode));break;case 18:mr!==null&&(Fi?(e=mr,r=r.stateNode,e.nodeType===8?pS(e.parentNode,r):e.nodeType===1&&pS(e,r),Ad(e)):pS(mr,r.stateNode));break;case 4:n=mr,i=Fi,mr=r.stateNode.containerInfo,Fi=!0,ra(e,t,r),mr=n,Fi=i;break;case 0:case 11:case 14:case 15:if(!Fr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&ox(r,t,o),i=i.next}while(i!==n)}ra(e,t,r);break;case 1:if(!Fr&&(Rc(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){Pt(r,t,a)}ra(e,t,r);break;case 21:ra(e,t,r);break;case 22:r.mode&1?(Fr=(n=Fr)||r.memoizedState!==null,ra(e,t,r),Fr=n):ra(e,t,r);break;default:ra(e,t,r)}}function w6(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new rie),t.forEach(function(n){var i=pie.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function bi(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var s=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:mr=a.stateNode,Fi=!1;break e;case 3:mr=a.stateNode.containerInfo,Fi=!0;break e;case 4:mr=a.stateNode.containerInfo,Fi=!0;break e}a=a.return}if(mr===null)throw Error(J(160));fk(s,o,i),mr=null,Fi=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(l){Pt(i,t,l)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)pk(t,e),t=t.sibling}function pk(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(bi(t,e),is(e),n&4){try{Cd(3,e,e.return),Ly(3,e)}catch(y){Pt(e,e.return,y)}try{Cd(5,e,e.return)}catch(y){Pt(e,e.return,y)}}break;case 1:bi(t,e),is(e),n&512&&r!==null&&Rc(r,r.return);break;case 5:if(bi(t,e),is(e),n&512&&r!==null&&Rc(r,r.return),e.flags&32){var i=e.stateNode;try{_d(i,"")}catch(y){Pt(e,e.return,y)}}if(n&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=r!==null?r.memoizedProps:s,a=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&N6(i,s),LS(a,o);var l=LS(a,s);for(o=0;o<u.length;o+=2){var c=u[o],f=u[o+1];c==="style"?j6(i,f):c==="dangerouslySetInnerHTML"?k6(i,f):c==="children"?_d(i,f):gx(i,c,f,l)}switch(a){case"input":FS(i,s);break;case"textarea":R6(i,s);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var d=s.value;d!=null?kc(i,!!s.multiple,d,!1):p!==!!s.multiple&&(s.defaultValue!=null?kc(i,!!s.multiple,s.defaultValue,!0):kc(i,!!s.multiple,s.multiple?[]:"",!1))}i[Nd]=s}catch(y){Pt(e,e.return,y)}}break;case 6:if(bi(t,e),is(e),n&4){if(e.stateNode===null)throw Error(J(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(y){Pt(e,e.return,y)}}break;case 3:if(bi(t,e),is(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Ad(t.containerInfo)}catch(y){Pt(e,e.return,y)}break;case 4:bi(t,e),is(e);break;case 13:bi(t,e),is(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(Kx=kt())),n&4&&w6(e);break;case 22:if(c=r!==null&&r.memoizedState!==null,e.mode&1?(Fr=(l=Fr)||c,bi(t,e),Fr=l):bi(t,e),is(e),n&8192){if(l=e.memoizedState!==null,(e.stateNode.isHidden=l)&&!c&&e.mode&1)for(de=e,c=e.child;c!==null;){for(f=de=c;de!==null;){switch(p=de,d=p.child,p.tag){case 0:case 11:case 14:case 15:Cd(4,p,p.return);break;case 1:Rc(p,p.return);var m=p.stateNode;if(typeof m.componentWillUnmount=="function"){n=p,r=p.return;try{t=n,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(y){Pt(n,r,y)}}break;case 5:Rc(p,p.return);break;case 22:if(p.memoizedState!==null){E6(f);continue}}d!==null?(d.return=p,de=d):E6(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,l?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=f.stateNode,u=f.memoizedProps.style,o=u!=null&&u.hasOwnProperty("display")?u.display:null,a.style.display=M6("display",o))}catch(y){Pt(e,e.return,y)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=l?"":f.memoizedProps}catch(y){Pt(e,e.return,y)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:bi(t,e),is(e),n&4&&w6(e);break;case 21:break;default:bi(t,e),is(e)}}function is(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(ck(r)){var n=r;break e}r=r.return}throw Error(J(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(_d(i,""),n.flags&=-33);var s=v6(e);lx(e,s,i);break;case 3:case 4:var o=n.stateNode.containerInfo,a=v6(e);ux(e,a,o);break;default:throw Error(J(161))}}catch(u){Pt(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function iie(e,t,r){de=e,dk(e,t,r)}function dk(e,t,r){for(var n=(e.mode&1)!==0;de!==null;){var i=de,s=i.child;if(i.tag===22&&n){var o=i.memoizedState!==null||Wg;if(!o){var a=i.alternate,u=a!==null&&a.memoizedState!==null||Fr;a=Wg;var l=Fr;if(Wg=o,(Fr=u)&&!l)for(de=i;de!==null;)o=de,u=o.child,o.tag===22&&o.memoizedState!==null?S6(i):u!==null?(u.return=o,de=u):S6(i);for(;s!==null;)de=s,dk(s,t,r),s=s.sibling;de=i,Wg=a,Fr=l}C6(e,t,r)}else i.subtreeFlags&8772&&s!==null?(s.return=i,de=s):C6(e,t,r)}}function C6(e){for(;de!==null;){var t=de;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Fr||Ly(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!Fr)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:Oi(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&s6(t,s,n);break;case 3:var o=t.updateQueue;if(o!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}s6(t,o,r)}break;case 5:var a=t.stateNode;if(r===null&&t.flags&4){r=a;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var l=t.alternate;if(l!==null){var c=l.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&Ad(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(J(163))}Fr||t.flags&512&&ax(t)}catch(p){Pt(t,t.return,p)}}if(t===e){de=null;break}if(r=t.sibling,r!==null){r.return=t.return,de=r;break}de=t.return}}function E6(e){for(;de!==null;){var t=de;if(t===e){de=null;break}var r=t.sibling;if(r!==null){r.return=t.return,de=r;break}de=t.return}}function S6(e){for(;de!==null;){var t=de;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Ly(4,t)}catch(u){Pt(t,r,u)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(u){Pt(t,i,u)}}var s=t.return;try{ax(t)}catch(u){Pt(t,s,u)}break;case 5:var o=t.return;try{ax(t)}catch(u){Pt(t,o,u)}}}catch(u){Pt(t,t.return,u)}if(t===e){de=null;break}var a=t.sibling;if(a!==null){a.return=t.return,de=a;break}de=t.return}}var sie=Math.ceil,wy=zs.ReactCurrentDispatcher,Hx=zs.ReactCurrentOwner,ii=zs.ReactCurrentBatchConfig,Xe=0,or=null,Ut=null,hr=0,En=0,Bc=wa(0),Xt=0,Vd=null,Xu=0,Ny=0,Yx=0,Ed=null,en=null,Kx=0,Kc=1/0,ks=null,Cy=!1,cx=null,ma=null,Gg=!1,ua=null,Ey=0,Sd=0,fx=null,Zg=-1,Qg=0;function Ur(){return Xe&6?kt():Zg!==-1?Zg:Zg=kt()}function ha(e){return e.mode&1?Xe&2&&hr!==0?hr&-hr:$ne.transition!==null?(Qg===0&&(Qg=J6()),Qg):(e=tt,e!==0||(e=window.event,e=e===void 0?16:i8(e.type)),e):1}function Ti(e,t,r,n){if(50<Sd)throw Sd=0,fx=null,Error(J(185));Ud(e,r,n),(!(Xe&2)||e!==or)&&(e===or&&(!(Xe&2)&&(Ny|=r),Xt===4&&oa(e,hr)),sn(e,n),r===1&&Xe===0&&!(t.mode&1)&&(Kc=kt()+500,Iy&&Ca()))}function sn(e,t){var r=e.callbackNode;Gre(e,t);var n=sy(e,e===or?hr:0);if(n===0)r!==null&&TB(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&TB(r),t===1)e.tag===0?Une(x6.bind(null,e)):S8(x6.bind(null,e)),kne(function(){!(Xe&6)&&Ca()}),r=null;else{switch(Z6(n)){case 1:r=Cx;break;case 4:r=K6;break;case 16:r=iy;break;case 536870912:r=X6;break;default:r=iy}r=Ck(r,mk.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function mk(e,t){if(Zg=-1,Qg=0,Xe&6)throw Error(J(327));var r=e.callbackNode;if($c()&&e.callbackNode!==r)return null;var n=sy(e,e===or?hr:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=Sy(e,n);else{t=n;var i=Xe;Xe|=2;var s=gk();(or!==e||hr!==t)&&(ks=null,Kc=kt()+500,qu(e,t));do try{uie();break}catch(a){hk(e,a)}while(!0);Nx(),wy.current=s,Xe=i,Ut!==null?t=0:(or=null,hr=0,t=Xt)}if(t!==0){if(t===2&&(i=MS(e),i!==0&&(n=i,t=px(e,i))),t===1)throw r=Vd,qu(e,0),oa(e,n),sn(e,kt()),r;if(t===6)oa(e,n);else{if(i=e.current.alternate,!(n&30)&&!oie(i)&&(t=Sy(e,n),t===2&&(s=MS(e),s!==0&&(n=s,t=px(e,s))),t===1))throw r=Vd,qu(e,0),oa(e,n),sn(e,kt()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(J(345));case 2:Uu(e,en,ks);break;case 3:if(oa(e,n),(n&130023424)===n&&(t=Kx+500-kt(),10<t)){if(sy(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){Ur(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=zS(Uu.bind(null,e,en,ks),t);break}Uu(e,en,ks);break;case 4:if(oa(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var o=31-Ii(n);s=1<<o,o=t[o],o>i&&(i=o),n&=~s}if(n=i,n=kt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*sie(n/1960))-n,10<n){e.timeoutHandle=zS(Uu.bind(null,e,en,ks),n);break}Uu(e,en,ks);break;case 5:Uu(e,en,ks);break;default:throw Error(J(329))}}}return sn(e,kt()),e.callbackNode===r?mk.bind(null,e):null}function px(e,t){var r=Ed;return e.current.memoizedState.isDehydrated&&(qu(e,t).flags|=256),e=Sy(e,t),e!==2&&(t=en,en=r,t!==null&&dx(t)),e}function dx(e){en===null?en=e:en.push.apply(en,e)}function oie(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var i=r[n],s=i.getSnapshot;i=i.value;try{if(!Pi(s(),i))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function oa(e,t){for(t&=~Yx,t&=~Ny,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Ii(t),n=1<<r;e[r]=-1,t&=~n}}function x6(e){if(Xe&6)throw Error(J(327));$c();var t=sy(e,0);if(!(t&1))return sn(e,kt()),null;var r=Sy(e,t);if(e.tag!==0&&r===2){var n=MS(e);n!==0&&(t=n,r=px(e,n))}if(r===1)throw r=Vd,qu(e,0),oa(e,t),sn(e,kt()),r;if(r===6)throw Error(J(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Uu(e,en,ks),sn(e,kt()),null}function Xx(e,t){var r=Xe;Xe|=1;try{return e(t)}finally{Xe=r,Xe===0&&(Kc=kt()+500,Iy&&Ca())}}function Ju(e){ua!==null&&ua.tag===0&&!(Xe&6)&&$c();var t=Xe;Xe|=1;var r=ii.transition,n=tt;try{if(ii.transition=null,tt=1,e)return e()}finally{tt=n,ii.transition=r,Xe=t,!(Xe&6)&&Ca()}}function Jx(){En=Bc.current,ht(Bc)}function qu(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,Bne(r)),Ut!==null)for(r=Ut.return;r!==null;){var n=r;switch(Tx(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&cy();break;case 3:Hc(),ht(rn),ht(Ar),Vx();break;case 5:jx(n);break;case 4:Hc();break;case 13:ht(Ot);break;case 19:ht(Ot);break;case 10:Rx(n.type._context);break;case 22:case 23:Jx()}r=r.return}if(or=e,Ut=e=ga(e.current,null),hr=En=t,Xt=0,Vd=null,Yx=Ny=Xu=0,en=Ed=null,Wu!==null){for(t=0;t<Wu.length;t++)if(r=Wu[t],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,s=r.pending;if(s!==null){var o=s.next;s.next=i,n.next=o}r.pending=n}Wu=null}return e}function hk(e,t){do{var r=Ut;try{if(Nx(),Kg.current=vy,Dy){for(var n=Ft.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}Dy=!1}if(Ku=0,sr=Kt=Ft=null,wd=!1,kd=0,Hx.current=null,r===null||r.return===null){Xt=1,Vd=t,Ut=null;break}e:{var s=e,o=r.return,a=r,u=t;if(t=hr,a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var l=u,c=a,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.lanes):(c.updateQueue=null,c.memoizedState=null)}var d=f6(o);if(d!==null){d.flags&=-257,p6(d,o,a,s,t),d.mode&1&&c6(s,l,t),t=d,u=l;var m=t.updateQueue;if(m===null){var y=new Set;y.add(u),t.updateQueue=y}else m.add(u);break e}else{if(!(t&1)){c6(s,l,t),Zx();break e}u=Error(J(426))}}else if(Et&&a.mode&1){var D=f6(o);if(D!==null){!(D.flags&65536)&&(D.flags|=256),p6(D,o,a,s,t),Px(Yc(u,a));break e}}s=u=Yc(u,a),Xt!==4&&(Xt=2),Ed===null?Ed=[s]:Ed.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var h=Z8(s,u,t);i6(s,h);break e;case 1:a=u;var g=s.type,v=s.stateNode;if(!(s.flags&128)&&(typeof g.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(ma===null||!ma.has(v)))){s.flags|=65536,t&=-t,s.lanes|=t;var w=Q8(s,a,t);i6(s,w);break e}}s=s.return}while(s!==null)}Dk(r)}catch(E){t=E,Ut===r&&r!==null&&(Ut=r=r.return);continue}break}while(!0)}function gk(){var e=wy.current;return wy.current=vy,e===null?vy:e}function Zx(){(Xt===0||Xt===3||Xt===2)&&(Xt=4),or===null||!(Xu&268435455)&&!(Ny&268435455)||oa(or,hr)}function Sy(e,t){var r=Xe;Xe|=2;var n=gk();(or!==e||hr!==t)&&(ks=null,qu(e,t));do try{aie();break}catch(i){hk(e,i)}while(!0);if(Nx(),Xe=r,wy.current=n,Ut!==null)throw Error(J(261));return or=null,hr=0,Xt}function aie(){for(;Ut!==null;)yk(Ut)}function uie(){for(;Ut!==null&&!Rre();)yk(Ut)}function yk(e){var t=wk(e.alternate,e,En);e.memoizedProps=e.pendingProps,t===null?Dk(e):Ut=t,Hx.current=null}function Dk(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=tie(r,t),r!==null){r.flags&=32767,Ut=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Xt=6,Ut=null;return}}else if(r=eie(r,t,En),r!==null){Ut=r;return}if(t=t.sibling,t!==null){Ut=t;return}Ut=t=e}while(t!==null);Xt===0&&(Xt=5)}function Uu(e,t,r){var n=tt,i=ii.transition;try{ii.transition=null,tt=1,lie(e,t,r,n)}finally{ii.transition=i,tt=n}return null}function lie(e,t,r,n){do $c();while(ua!==null);if(Xe&6)throw Error(J(327));r=e.finishedWork;var i=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(J(177));e.callbackNode=null,e.callbackPriority=0;var s=r.lanes|r.childLanes;if(qre(e,s),e===or&&(Ut=or=null,hr=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||Gg||(Gg=!0,Ck(iy,function(){return $c(),null})),s=(r.flags&15990)!==0,r.subtreeFlags&15990||s){s=ii.transition,ii.transition=null;var o=tt;tt=1;var a=Xe;Xe|=4,Hx.current=null,nie(e,r),pk(r,e),Tne(GS),oy=!!WS,GS=WS=null,e.current=r,iie(r,e,i),Bre(),Xe=a,tt=o,ii.transition=s}else e.current=r;if(Gg&&(Gg=!1,ua=e,Ey=i),s=e.pendingLanes,s===0&&(ma=null),jre(r.stateNode,n),sn(e,kt()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(Cy)throw Cy=!1,e=cx,cx=null,e;return Ey&1&&e.tag!==0&&$c(),s=e.pendingLanes,s&1?e===fx?Sd++:(Sd=0,fx=e):Sd=0,Ca(),null}function $c(){if(ua!==null){var e=Z6(Ey),t=ii.transition,r=tt;try{if(ii.transition=null,tt=16>e?16:e,ua===null)var n=!1;else{if(e=ua,ua=null,Ey=0,Xe&6)throw Error(J(331));var i=Xe;for(Xe|=4,de=e.current;de!==null;){var s=de,o=s.child;if(de.flags&16){var a=s.deletions;if(a!==null){for(var u=0;u<a.length;u++){var l=a[u];for(de=l;de!==null;){var c=de;switch(c.tag){case 0:case 11:case 15:Cd(8,c,s)}var f=c.child;if(f!==null)f.return=c,de=f;else for(;de!==null;){c=de;var p=c.sibling,d=c.return;if(lk(c),c===l){de=null;break}if(p!==null){p.return=d,de=p;break}de=d}}}var m=s.alternate;if(m!==null){var y=m.child;if(y!==null){m.child=null;do{var D=y.sibling;y.sibling=null,y=D}while(y!==null)}}de=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,de=o;else e:for(;de!==null;){if(s=de,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Cd(9,s,s.return)}var h=s.sibling;if(h!==null){h.return=s.return,de=h;break e}de=s.return}}var g=e.current;for(de=g;de!==null;){o=de;var v=o.child;if(o.subtreeFlags&2064&&v!==null)v.return=o,de=v;else e:for(o=g;de!==null;){if(a=de,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Ly(9,a)}}catch(E){Pt(a,a.return,E)}if(a===o){de=null;break e}var w=a.sibling;if(w!==null){w.return=a.return,de=w;break e}de=a.return}}if(Xe=i,Ca(),as&&typeof as.onPostCommitFiberRoot=="function")try{as.onPostCommitFiberRoot(_y,e)}catch{}n=!0}return n}finally{tt=r,ii.transition=t}}return!1}function _6(e,t,r){t=Yc(r,t),t=Z8(e,t,1),e=da(e,t,1),t=Ur(),e!==null&&(Ud(e,1,t),sn(e,t))}function Pt(e,t,r){if(e.tag===3)_6(e,e,r);else for(;t!==null;){if(t.tag===3){_6(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(ma===null||!ma.has(n))){e=Yc(r,e),e=Q8(t,e,1),t=da(t,e,1),e=Ur(),t!==null&&(Ud(t,1,e),sn(t,e));break}}t=t.return}}function cie(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Ur(),e.pingedLanes|=e.suspendedLanes&r,or===e&&(hr&r)===r&&(Xt===4||Xt===3&&(hr&130023424)===hr&&500>kt()-Kx?qu(e,0):Yx|=r),sn(e,t)}function vk(e,t){t===0&&(e.mode&1?(t=Ig,Ig<<=1,!(Ig&130023424)&&(Ig=4194304)):t=1);var r=Ur();e=Gs(e,t),e!==null&&(Ud(e,t,r),sn(e,r))}function fie(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),vk(e,r)}function pie(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(J(314))}n!==null&&n.delete(t),vk(e,r)}var wk;wk=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||rn.current)tn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return tn=!1,Qne(e,t,r);tn=!!(e.flags&131072)}else tn=!1,Et&&t.flags&1048576&&x8(t,dy,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Jg(e,t),e=t.pendingProps;var i=Gc(t,Ar.current);Uc(t,r),i=$x(null,t,n,e,i,r);var s=Wx();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,nn(n)?(s=!0,fy(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,kx(t),i.updater=Py,t.stateNode=i,i._reactInternals=t,QS(t,n,e,r),t=rx(null,t,n,!0,s,r)):(t.tag=0,Et&&s&&Ix(t),Vr(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Jg(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=mie(n),e=Oi(n,e),i){case 0:t=tx(null,t,n,e,r);break e;case 1:t=h6(null,t,n,e,r);break e;case 11:t=d6(null,t,n,e,r);break e;case 14:t=m6(null,t,n,Oi(n.type,e),r);break e}throw Error(J(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Oi(n,i),tx(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Oi(n,i),h6(e,t,n,i,r);case 3:e:{if(nk(t),e===null)throw Error(J(387));n=t.pendingProps,s=t.memoizedState,i=s.element,I8(e,t),gy(t,n,null,r);var o=t.memoizedState;if(n=o.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Yc(Error(J(423)),t),t=g6(e,t,n,r,i);break e}else if(n!==i){i=Yc(Error(J(424)),t),t=g6(e,t,n,r,i);break e}else for(Sn=pa(t.stateNode.containerInfo.firstChild),xn=t,Et=!0,Ai=null,r=F8(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(qc(),n===i){t=qs(e,t,r);break e}Vr(e,t,n,r)}t=t.child}return t;case 5:return T8(t),e===null&&XS(t),n=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,qS(n,i)?o=null:s!==null&&qS(n,s)&&(t.flags|=32),rk(e,t),Vr(e,t,o,r),t.child;case 6:return e===null&&XS(t),null;case 13:return ik(e,t,r);case 4:return Mx(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=zc(t,null,n,r):Vr(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Oi(n,i),d6(e,t,n,i,r);case 7:return Vr(e,t,t.pendingProps,r),t.child;case 8:return Vr(e,t,t.pendingProps.children,r),t.child;case 12:return Vr(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,ut(my,n._currentValue),n._currentValue=o,s!==null)if(Pi(s.value,o)){if(s.children===i.children&&!rn.current){t=qs(e,t,r);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var u=a.firstContext;u!==null;){if(u.context===n){if(s.tag===1){u=Us(-1,r&-r),u.tag=2;var l=s.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?u.next=u:(u.next=c.next,c.next=u),l.pending=u}}s.lanes|=r,u=s.alternate,u!==null&&(u.lanes|=r),JS(s.return,r,t),a.lanes|=r;break}u=u.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(J(341));o.lanes|=r,a=o.alternate,a!==null&&(a.lanes|=r),JS(o,r,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Vr(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Uc(t,r),i=si(i),n=n(i),t.flags|=1,Vr(e,t,n,r),t.child;case 14:return n=t.type,i=Oi(n,t.pendingProps),i=Oi(n.type,i),m6(e,t,n,i,r);case 15:return ek(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Oi(n,i),Jg(e,t),t.tag=1,nn(n)?(e=!0,fy(t)):e=!1,Uc(t,r),J8(t,n,i),QS(t,n,i,r),rx(null,t,n,!0,e,r);case 19:return sk(e,t,r);case 22:return tk(e,t,r)}throw Error(J(156,t.tag))};function Ck(e,t){return Y6(e,t)}function die(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ni(e,t,r,n){return new die(e,t,r,n)}function Qx(e){return e=e.prototype,!(!e||!e.isReactComponent)}function mie(e){if(typeof e=="function")return Qx(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Dx)return 11;if(e===vx)return 14}return 2}function ga(e,t){var r=e.alternate;return r===null?(r=ni(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function ey(e,t,r,n,i,s){var o=2;if(n=e,typeof e=="function")Qx(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case bc:return zu(r.children,i,s,t);case yx:o=8,i|=8;break;case SS:return e=ni(12,r,t,i|2),e.elementType=SS,e.lanes=s,e;case xS:return e=ni(13,r,t,i),e.elementType=xS,e.lanes=s,e;case _S:return e=ni(19,r,t,i),e.elementType=_S,e.lanes=s,e;case T6:return Ry(r,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case A6:o=10;break e;case I6:o=9;break e;case Dx:o=11;break e;case vx:o=14;break e;case na:o=16,n=null;break e}throw Error(J(130,e==null?e:typeof e,""))}return t=ni(o,r,t,i),t.elementType=e,t.type=n,t.lanes=s,t}function zu(e,t,r,n){return e=ni(7,e,n,t),e.lanes=r,e}function Ry(e,t,r,n){return e=ni(22,e,n,t),e.elementType=T6,e.lanes=r,e.stateNode={isHidden:!1},e}function wS(e,t,r){return e=ni(6,e,null,t),e.lanes=r,e}function CS(e,t,r){return t=ni(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function hie(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=iS(0),this.expirationTimes=iS(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=iS(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function e2(e,t,r,n,i,s,o,a,u){return e=new hie(e,t,r,a,u),t===1?(t=1,s===!0&&(t|=8)):t=0,s=ni(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},kx(s),e}function gie(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:_c,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function Ek(e){if(!e)return Da;e=e._reactInternals;e:{if(Qu(e)!==e||e.tag!==1)throw Error(J(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(nn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(J(171))}if(e.tag===1){var r=e.type;if(nn(r))return E8(e,r,t)}return t}function Sk(e,t,r,n,i,s,o,a,u){return e=e2(r,n,!0,e,i,s,o,a,u),e.context=Ek(null),r=e.current,n=Ur(),i=ha(r),s=Us(n,i),s.callback=t??null,da(r,s,i),e.current.lanes=i,Ud(e,i,n),sn(e,n),e}function By(e,t,r,n){var i=t.current,s=Ur(),o=ha(i);return r=Ek(r),t.context===null?t.context=r:t.pendingContext=r,t=Us(s,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=da(i,t,o),e!==null&&(Ti(e,i,o,s),Yg(e,i,o)),o}function xy(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function b6(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function t2(e,t){b6(e,t),(e=e.alternate)&&b6(e,t)}function yie(){return null}var xk=typeof reportError=="function"?reportError:function(e){console.error(e)};function r2(e){this._internalRoot=e}ky.prototype.render=r2.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(J(409));By(e,t,null,null)};ky.prototype.unmount=r2.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ju(function(){By(null,e,null,null)}),t[Ws]=null}};function ky(e){this._internalRoot=e}ky.prototype.unstable_scheduleHydration=function(e){if(e){var t=t8();e={blockedOn:null,target:e,priority:t};for(var r=0;r<sa.length&&t!==0&&t<sa[r].priority;r++);sa.splice(r,0,e),r===0&&n8(e)}};function n2(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function My(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function O6(){}function Die(e,t,r,n,i){if(i){if(typeof n=="function"){var s=n;n=function(){var l=xy(o);s.call(l)}}var o=Sk(t,n,e,0,null,!1,!1,"",O6);return e._reactRootContainer=o,e[Ws]=o.current,Pd(e.nodeType===8?e.parentNode:e),Ju(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var a=n;n=function(){var l=xy(u);a.call(l)}}var u=e2(e,0,!1,null,null,!1,!1,"",O6);return e._reactRootContainer=u,e[Ws]=u.current,Pd(e.nodeType===8?e.parentNode:e),Ju(function(){By(t,u,r,n)}),u}function jy(e,t,r,n,i){var s=r._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var a=i;i=function(){var u=xy(o);a.call(u)}}By(t,o,e,i)}else o=Die(r,t,e,i,n);return xy(o)}Q6=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=dd(t.pendingLanes);r!==0&&(Ex(t,r|1),sn(t,kt()),!(Xe&6)&&(Kc=kt()+500,Ca()))}break;case 13:Ju(function(){var n=Gs(e,1);if(n!==null){var i=Ur();Ti(n,e,1,i)}}),t2(e,1)}};Sx=function(e){if(e.tag===13){var t=Gs(e,134217728);if(t!==null){var r=Ur();Ti(t,e,134217728,r)}t2(e,134217728)}};e8=function(e){if(e.tag===13){var t=ha(e),r=Gs(e,t);if(r!==null){var n=Ur();Ti(r,e,t,n)}t2(e,t)}};t8=function(){return tt};r8=function(e,t){var r=tt;try{return tt=e,t()}finally{tt=r}};RS=function(e,t,r){switch(t){case"input":if(FS(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=Ay(n);if(!i)throw Error(J(90));L6(n),FS(n,i)}}}break;case"textarea":R6(e,r);break;case"select":t=r.value,t!=null&&kc(e,!!r.multiple,t,!1)}};$6=Xx;W6=Ju;var vie={usingClientEntryPoint:!1,Events:[Wd,Ic,Ay,V6,U6,Xx]},ld={findFiberByHostInstance:$u,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},wie={bundleType:ld.bundleType,version:ld.version,rendererPackageName:ld.rendererPackageName,rendererConfig:ld.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:zs.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=z6(e),e===null?null:e.stateNode},findFiberByHostInstance:ld.findFiberByHostInstance||yie,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(cd=__REACT_DEVTOOLS_GLOBAL_HOOK__,!cd.isDisabled&&cd.supportsFiber))try{_y=cd.inject(wie),as=cd}catch{}var cd;On.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=vie;On.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!n2(t))throw Error(J(200));return gie(e,t,null,r)};On.createRoot=function(e,t){if(!n2(e))throw Error(J(299));var r=!1,n="",i=xk;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=e2(e,1,!1,null,null,r,!1,n,i),e[Ws]=t.current,Pd(e.nodeType===8?e.parentNode:e),new r2(t)};On.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(J(188)):(e=Object.keys(e).join(","),Error(J(268,e)));return e=z6(t),e=e===null?null:e.stateNode,e};On.flushSync=function(e){return Ju(e)};On.hydrate=function(e,t,r){if(!My(t))throw Error(J(200));return jy(null,e,t,!0,r)};On.hydrateRoot=function(e,t,r){if(!n2(e))throw Error(J(405));var n=r!=null&&r.hydratedSources||null,i=!1,s="",o=xk;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(s=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),t=Sk(t,null,e,1,r??null,i,!1,s,o),e[Ws]=t.current,Pd(e),n)for(e=0;e<n.length;e++)r=n[e],i=r._getVersion,i=i(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new ky(t)};On.render=function(e,t,r){if(!My(t))throw Error(J(200));return jy(null,e,t,!1,r)};On.unmountComponentAtNode=function(e){if(!My(e))throw Error(J(40));return e._reactRootContainer?(Ju(function(){jy(null,null,e,!1,function(){e._reactRootContainer=null,e[Ws]=null})}),!0):!1};On.unstable_batchedUpdates=Xx;On.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!My(r))throw Error(J(200));if(e==null||e._reactInternals===void 0)throw Error(J(38));return jy(e,t,r,!1,n)};On.version="18.3.1-next-f1338f8080-20240426"});var Fk=N((TSe,Ok)=>{"use strict";function bk(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(bk)}catch(e){console.error(e)}}bk(),Ok.exports=_k()});var Ik=N(Ak=>{"use strict";var Zc=V("react");function Cie(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Eie=typeof Object.is=="function"?Object.is:Cie,Sie=Zc.useState,xie=Zc.useEffect,_ie=Zc.useLayoutEffect,bie=Zc.useDebugValue;function Oie(e,t){var r=t(),n=Sie({inst:{value:r,getSnapshot:t}}),i=n[0].inst,s=n[1];return _ie(function(){i.value=r,i.getSnapshot=t,i2(i)&&s({inst:i})},[e,r,t]),xie(function(){return i2(i)&&s({inst:i}),e(function(){i2(i)&&s({inst:i})})},[e]),bie(r),r}function i2(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Eie(e,r)}catch{return!0}}function Fie(e,t){return t()}var Aie=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Fie:Oie;Ak.useSyncExternalStore=Zc.useSyncExternalStore!==void 0?Zc.useSyncExternalStore:Aie});var Pk=N((LSe,Tk)=>{"use strict";Tk.exports=Ik()});var zk=N(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});var qd,Ea=Qp(),Li=V("react"),Lk=(qd=Li)&&typeof qd=="object"&&"default"in qd?qd.default:qd,Iie=Fk(),Tie=Pk();if(!Li.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!Ea.makeObservable)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function Pie(e){e()}function $k(e){e||(e=Pie),Ea.configure({reactionScheduler:e})}function Lie(e){return Ea.getDependencyTree(e)}var Wk=!1;function Nk(e){Wk=e}function s2(){return Wk}var Rk,Bk,Vy=new(typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){function e(r){var n=this;this.finalize=void 0,this.registrations=new Map,this.sweepTimeout=void 0,this.sweep=function(i){i===void 0&&(i=1e4),clearTimeout(n.sweepTimeout),n.sweepTimeout=void 0;var s=Date.now();n.registrations.forEach(function(o,a){s-o.registeredAt>=i&&(n.finalize(o.value),n.registrations.delete(a))}),n.registrations.size>0&&n.scheduleSweep()},this.finalizeAllImmediately=function(){n.sweep(0)},this.finalize=r}var t=e.prototype;return t.register=function(r,n,i){this.registrations.set(i,{value:n,registeredAt:Date.now()}),this.scheduleSweep()},t.unregister=function(r){this.registrations.delete(r)},t.scheduleSweep=function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,1e4))},e}())(function(e){var t;(t=e.reaction)==null||t.dispose(),e.reaction=null});function kk(e){e.reaction=new Ea.Reaction("observer"+e.name,function(){e.stateVersion=Symbol(),e.onStoreChange==null||e.onStoreChange()})}function o2(e,t){if(t===void 0&&(t="observed"),s2())return e();var r=Lk.useRef(null);if(!r.current){var n={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(a){return Vy.unregister(n),n.onStoreChange=a,n.reaction||(kk(n),n.stateVersion=Symbol()),function(){var u;n.onStoreChange=null,(u=n.reaction)==null||u.dispose(),n.reaction=null}},getSnapshot:function(){return n.stateVersion}};r.current=n}var i,s,o=r.current;if(o.reaction||(kk(o),Vy.register(r,o,o)),Lk.useDebugValue(o.reaction,Lie),Tie.useSyncExternalStore(o.subscribe,o.getSnapshot,o.getSnapshot),o.reaction.track(function(){try{i=e()}catch(a){s=a}}),s)throw s;return i}var Mk,Gk=typeof Symbol=="function"&&Symbol.for,Nie=(Rk=(Bk=Object.getOwnPropertyDescriptor(function(){},"name"))==null?void 0:Bk.configurable)!=null&&Rk,jk=Gk?Symbol.for("react.forward_ref"):typeof Li.forwardRef=="function"&&Li.forwardRef(function(e){return null}).$$typeof,Vk=Gk?Symbol.for("react.memo"):typeof Li.memo=="function"&&Li.memo(function(e){return null}).$$typeof,Rie={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function qk(e){var t=e.children,r=e.render;t&&r&&console.error("MobX Observer: Do not use children and render in the same time in `Observer`");var n=t||r;return typeof n!="function"?null:o2(n)}function Uk(e){var t=Li.useState(function(){return Ea.observable(e,{},{deep:!1})})[0];return Ea.runInAction(function(){Object.assign(t,e)}),t}qk.displayName="Observer",$k(Iie.unstable_batchedUpdates);var Bie=(Mk=Vy.finalizeAllImmediately)!=null?Mk:function(){};Wr.Observer=qk,Wr._observerFinalizationRegistry=Vy,Wr.clearTimers=Bie,Wr.enableStaticRendering=Nk,Wr.isObserverBatched=function(){return!0},Wr.isUsingStaticRendering=s2,Wr.observer=function(e,t){var r;if(Vk&&e.$$typeof===Vk)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");if(s2())return e;var n=(r=t?.forwardRef)!=null&&r,i=e,s=e.displayName||e.name;if(jk&&e.$$typeof===jk&&(n=!0,typeof(i=e.render)!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var o,a,u=function(l,c){return o2(function(){return i(l,c)},s)};return u.displayName=e.displayName,Nie&&Object.defineProperty(u,"name",{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(u.contextTypes=e.contextTypes),n&&(u=Li.forwardRef(u)),u=Li.memo(u),o=e,a=u,Object.keys(o).forEach(function(l){Rie[l]||Object.defineProperty(a,l,Object.getOwnPropertyDescriptor(o,l))}),u},Wr.observerBatching=$k,Wr.useAsObservableSource=Uk,Wr.useLocalObservable=function(e,t){return Li.useState(function(){return Ea.observable(e(),t,{autoBind:!0})})[0]},Wr.useLocalStore=function(e,t){var r=t&&Uk(t);return Li.useState(function(){return Ea.observable(e(r),void 0,{autoBind:!0})})[0]},Wr.useObserver=function(e,t){return t===void 0&&(t="observed"),o2(e,t)},Wr.useStaticRendering=function(e){Nk(e)}});var Yk=N((RSe,Hk)=>{"use strict";Hk.exports=zk()});var fM=N(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});var zd,Hs=Qp(),Hd=V("react"),on=(zd=Hd)&&typeof zd=="object"&&"default"in zd?zd.default:zd,Gr=Yk();function Kk(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}var kie={$$typeof:1,render:1,compare:1,type:1,childContextTypes:1,contextType:1,contextTypes:1,defaultProps:1,getDefaultProps:1,getDerivedStateFromError:1,getDerivedStateFromProps:1,mixins:1,displayName:1,propTypes:1},Xk=Symbol("patchMixins"),Jk=Symbol("patchedDefinition");function Zk(e,t){for(var r=this,n=arguments.length,i=new Array(n>2?n-2:0),s=2;s<n;s++)i[s-2]=arguments[s];t.locks++;try{var o;return e!=null&&(o=e.apply(this,i)),o}finally{t.locks--,t.locks===0&&t.methods.forEach(function(a){a.apply(r,i)})}}function Qk(e,t){return function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];Zk.call.apply(Zk,[this,e,t].concat(n))}}function aM(e,t,r){var n=function(o,a){var u=o[Xk]=o[Xk]||{},l=u[a]=u[a]||{};return l.locks=l.locks||0,l.methods=l.methods||[],l}(e,t);n.methods.indexOf(r)<0&&n.methods.push(r);var i=Object.getOwnPropertyDescriptor(e,t);if(!i||!i[Jk]){var s=function o(a,u,l,c,f){var p,d=Qk(f,c);return(p={})[Jk]=!0,p.get=function(){return d},p.set=function(m){if(this===a)d=Qk(m,c);else{var y=o(this,u,l,c,m);Object.defineProperty(this,u,y)}},p.configurable=!0,p.enumerable=l,p}(e,t,i?i.enumerable:void 0,n,e[t]);Object.defineProperty(e,t,s)}}var eM=Symbol("ObserverAdministration"),tM=Symbol("isMobXReactObserver");function a2(e){var t;return(t=e[eM])!=null?t:e[eM]={reaction:null,mounted:!1,reactionInvalidatedBeforeMount:!1,forceUpdate:null,name:u2(e.constructor),state:void 0,props:void 0,context:void 0}}function u2(e){return e.displayName||e.name||"<component>"}function Mie(e){var t=e.bind(this),r=a2(this);return function(){r.reaction||(r.reaction=function(s){return new Hs.Reaction(s.name+".render()",function(){if(s.mounted)try{s.forceUpdate==null||s.forceUpdate()}catch{var o;(o=s.reaction)==null||o.dispose(),s.reaction=null}else s.reactionInvalidatedBeforeMount=!0})}(r),r.mounted||Gr._observerFinalizationRegistry.register(this,r,this));var n=void 0,i=void 0;if(r.reaction.track(function(){try{i=Hs._allowStateChanges(!1,t)}catch(s){n=s}}),n)throw n;return i}}function rM(e,t){return Gr.isUsingStaticRendering()&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==t||!function(r,n){if(Kk(r,n))return!0;if(typeof r!="object"||r===null||typeof n!="object"||n===null)return!1;var i=Object.keys(r),s=Object.keys(n);if(i.length!==s.length)return!1;for(var o=0;o<i.length;o++)if(!Object.hasOwnProperty.call(n,i[o])||!Kk(r[i[o]],n[i[o]]))return!1;return!0}(this.props,e)}function uM(e,t){if(t&&t.kind!=="class")throw new Error("The @observer decorator can be used on classes only");return e.isMobxInjector===!0&&console.warn("Mobx observer: You are trying to use `observer` on a component that already has `inject`. Please apply `observer` before applying `inject`"),Object.prototype.isPrototypeOf.call(Hd.Component,e)||Object.prototype.isPrototypeOf.call(Hd.PureComponent,e)?function(r){var n=r.prototype;if(r[tM]){var i=u2(r);throw new Error("The provided component class ("+i+") has already been declared as an observer component.")}if(r[tM]=!0,n.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(r.__proto__!==Hd.PureComponent)if(n.shouldComponentUpdate){if(n.shouldComponentUpdate!==rM)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else n.shouldComponentUpdate=rM;var s=n.render;if(typeof s!="function"){var o=u2(r);throw new Error("[mobx-react] class component ("+o+") is missing `render` method.\n`observer` requires `render` being a function defined on prototype.\n`render = () => {}` or `render = function() {}` is not supported.")}n.render=function(){return Object.defineProperty(this,"render",{configurable:!1,writable:!1,value:Gr.isUsingStaticRendering()?s:Mie.call(this,s)}),this.render()};var a=n.componentDidMount;return n.componentDidMount=function(){var u=this,l=a2(this);return l.mounted=!0,Gr._observerFinalizationRegistry.unregister(this),l.forceUpdate=function(){return u.forceUpdate()},l.reaction&&!l.reactionInvalidatedBeforeMount||l.forceUpdate(),a?.apply(this,arguments)},aM(n,"componentWillUnmount",function(){var u;if(!Gr.isUsingStaticRendering()){var l=a2(this);(u=l.reaction)==null||u.dispose(),l.reaction=null,l.forceUpdate=null,l.mounted=!1,l.reactionInvalidatedBeforeMount=!1}}),r}(e):Gr.observer(e)}function l2(){return(l2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var jie=["children"],Wy=on.createContext({});function lM(e){var t=e.children,r=function(s,o){if(s==null)return{};var a,u,l={},c=Object.keys(s);for(u=0;u<c.length;u++)o.indexOf(a=c[u])>=0||(l[a]=s[a]);return l}(e,jie),n=on.useContext(Wy),i=on.useRef(l2({},n,r));return on.createElement(Wy.Provider,{value:i.current},t)}function nM(e,t,r,n){var i,s,o,a=on.forwardRef(function(u,l){var c=l2({},u),f=on.useContext(Wy);return Object.assign(c,e(f||{},c)||{}),l&&(c.ref=l),on.createElement(t,c)});return n&&(a=uM(a)),a.isMobxInjector=!0,i=t,s=a,o=Object.getOwnPropertyNames(Object.getPrototypeOf(i)),Object.getOwnPropertyNames(i).forEach(function(u){kie[u]||o.indexOf(u)!==-1||Object.defineProperty(s,u,Object.getOwnPropertyDescriptor(i,u))}),a.wrappedComponent=t,a.displayName=function(u,l){var c=u.displayName||u.name||u.constructor&&u.constructor.name||"Component";return l?"inject-with-"+l+"("+c+")":"inject("+c+")"}(t,r),a}function Vie(e){return function(t,r){return e.forEach(function(n){if(!(n in r)){if(!(n in t))throw new Error("MobX injector: Store '"+n+"' is not available! Make sure it is provided by some Provider");r[n]=t[n]}}),r}}lM.displayName="MobXProvider";var Uie=Number.parseInt(on.version.split(".")[0]),iM=!1,Uy=Symbol("disposeOnUnmountProto"),$y=Symbol("disposeOnUnmountInst");function $ie(){var e=this;[].concat(this[Uy]||[],this[$y]||[]).forEach(function(t){var r=typeof t=="string"?e[t]:t;r!=null&&(Array.isArray(r)?r.map(function(n){return n()}):r())})}function cM(e){function t(n,i,s,o,a,u){for(var l=arguments.length,c=new Array(l>6?l-6:0),f=6;f<l;f++)c[f-6]=arguments[f];return Hs.untracked(function(){return o=o||"<<anonymous>>",u=u||s,i[s]==null?n?new Error("The "+a+" `"+u+"` is marked as required in `"+o+"`, but its value is `"+(i[s]===null?"null":"undefined")+"`."):null:e.apply(void 0,[i,s,o,a,u].concat(c))})}var r=t.bind(null,!1);return r.isRequired=t.bind(null,!0),r}function sM(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(r,n){return r==="symbol"||n["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&n instanceof Symbol}(t,e)?"symbol":t}function Qc(e,t){return cM(function(r,n,i,s,o){return Hs.untracked(function(){if(e&&sM(r[n])===t.toLowerCase())return null;var a;switch(t){case"Array":a=Hs.isObservableArray;break;case"Object":a=Hs.isObservableObject;break;case"Map":a=Hs.isObservableMap;break;default:throw new Error("Unexpected mobxType: "+t)}var u=r[n];if(!a(u)){var l=function(f){var p=sM(f);if(p==="object"){if(f instanceof Date)return"date";if(f instanceof RegExp)return"regexp"}return p}(u),c=e?" or javascript `"+t.toLowerCase()+"`":"";return new Error("Invalid prop `"+o+"` of type `"+l+"` supplied to `"+i+"`, expected `mobx.Observable"+t+"`"+c+".")}return null})})}function oM(e,t){return cM(function(r,n,i,s,o){for(var a=arguments.length,u=new Array(a>5?a-5:0),l=5;l<a;l++)u[l-5]=arguments[l];return Hs.untracked(function(){if(typeof t!="function")return new Error("Property `"+o+"` of component `"+i+"` has invalid PropType notation.");var c=Qc(e,"Array")(r,n,i,s,o);if(c instanceof Error)return c;for(var f=r[n],p=0;p<f.length;p++)if((c=t.apply(void 0,[f,p,i,s,o+"["+p+"]"].concat(u)))instanceof Error)return c;return null})})}var Wie={observableArray:Qc(!1,"Array"),observableArrayOf:oM.bind(null,!1),observableMap:Qc(!1,"Map"),observableObject:Qc(!1,"Object"),arrayOrObservableArray:Qc(!0,"Array"),arrayOrObservableArrayOf:oM.bind(null,!0),objectOrObservableObject:Qc(!0,"Object")};if(!Hd.Component)throw new Error("mobx-react requires React to be available");if(!Hs.observable)throw new Error("mobx-react requires mobx to be available");Object.defineProperty(yr,"Observer",{enumerable:!0,get:function(){return Gr.Observer}}),Object.defineProperty(yr,"enableStaticRendering",{enumerable:!0,get:function(){return Gr.enableStaticRendering}}),Object.defineProperty(yr,"isUsingStaticRendering",{enumerable:!0,get:function(){return Gr.isUsingStaticRendering}}),Object.defineProperty(yr,"observerBatching",{enumerable:!0,get:function(){return Gr.observerBatching}}),Object.defineProperty(yr,"useAsObservableSource",{enumerable:!0,get:function(){return Gr.useAsObservableSource}}),Object.defineProperty(yr,"useLocalObservable",{enumerable:!0,get:function(){return Gr.useLocalObservable}}),Object.defineProperty(yr,"useLocalStore",{enumerable:!0,get:function(){return Gr.useLocalStore}}),Object.defineProperty(yr,"useObserver",{enumerable:!0,get:function(){return Gr.useObserver}}),Object.defineProperty(yr,"useStaticRendering",{enumerable:!0,get:function(){return Gr.useStaticRendering}}),yr.MobXProviderContext=Wy,yr.PropTypes=Wie,yr.Provider=lM,yr.disposeOnUnmount=function e(t,r){if(Array.isArray(r))return r.map(function(a){return e(t,a)});iM||(Uie>=18?console.error("[mobx-react] disposeOnUnmount is not compatible with React 18 and higher. Don't use it."):console.warn("[mobx-react] disposeOnUnmount is deprecated. It won't work correctly with React 18 and higher."),iM=!0);var n=Object.getPrototypeOf(t).constructor,i=Object.getPrototypeOf(t.constructor),s=Object.getPrototypeOf(Object.getPrototypeOf(t));if(n!==on.Component&&n!==on.PureComponent&&i!==on.Component&&i!==on.PureComponent&&s!==on.Component&&s!==on.PureComponent)throw new Error("[mobx-react] disposeOnUnmount only supports direct subclasses of React.Component or React.PureComponent.");if(typeof r!="string"&&typeof r!="function"&&!Array.isArray(r))throw new Error("[mobx-react] disposeOnUnmount only works if the parameter is either a property key or a function.");var o=!!t[Uy]||!!t[$y];return(typeof r=="string"?t[Uy]||(t[Uy]=[]):t[$y]||(t[$y]=[])).push(r),o||aM(t,"componentWillUnmount",$ie),typeof r!="string"?r:void 0},yr.inject=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(typeof arguments[0]=="function"){var n=arguments[0];return function(i){return nM(n,i,n.name,!0)}}return function(i){return nM(Vie(t),i,t.join("-"),!1)}},yr.observer=uM});var c2=N((kSe,pM)=>{"use strict";pM.exports=fM()});import{notStrictEqual as Uj,strictEqual as $j}from"assert";var yj={right:Ej,center:Sj},Dj=0,Qd=1,vj=2,em=3,rD=class{constructor(t){var r;this.width=t.width,this.wrap=(r=t.wrap)!==null&&r!==void 0?r:!0,this.rows=[]}span(...t){let r=this.div(...t);r.span=!0}resetOutput(){this.rows=[]}div(...t){if(t.length===0&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...t)&&typeof t[0]=="string")return this.applyLayoutDSL(t[0]);let r=t.map(n=>typeof n=="string"?this.colFromString(n):n);return this.rows.push(r),r}shouldApplyLayoutDSL(...t){return t.length===1&&typeof t[0]=="string"&&/[\t\n]/.test(t[0])}applyLayoutDSL(t){let r=t.split(`
|
|
425
|
+
`+s.stack}return{value:e,source:t,stack:i,digest:null}}function DS(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function ex(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var Xne=typeof WeakMap=="function"?WeakMap:Map;function Z8(e,t,r){r=Us(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Cy||(Cy=!0,cx=n),ex(e,t)},r}function Q8(e,t,r){r=Us(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){ex(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(r.callback=function(){ex(e,t),typeof n!="function"&&(ma===null?ma=new Set([this]):ma.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}function c6(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new Xne;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=cie.bind(null,e,t,r),t.then(e,e))}function f6(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function p6(e,t,r,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Us(-1,1),t.tag=2,da(r,t,1))),r.lanes|=1),e)}var Jne=zs.ReactCurrentOwner,tn=!1;function Vr(e,t,r,n){t.child=e===null?F8(t,null,r,n):zc(t,e.child,r,n)}function d6(e,t,r,n,i){r=r.render;var s=t.ref;return Uc(t,i),n=$x(e,t,r,n,s,i),r=Wx(),e!==null&&!tn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,qs(e,t,i)):(Et&&r&&Ix(t),t.flags|=1,Vr(e,t,n,i),t.child)}function m6(e,t,r,n,i){if(e===null){var s=r.type;return typeof s=="function"&&!Qx(s)&&s.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=s,ek(e,t,s,n,i)):(e=ey(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(r=r.compare,r=r!==null?r:Td,r(o,n)&&e.ref===t.ref)return qs(e,t,i)}return t.flags|=1,e=ga(s,n),e.ref=t.ref,e.return=t,t.child=e}function ek(e,t,r,n,i){if(e!==null){var s=e.memoizedProps;if(Td(s,n)&&e.ref===t.ref)if(tn=!1,t.pendingProps=n=s,(e.lanes&i)!==0)e.flags&131072&&(tn=!0);else return t.lanes=e.lanes,qs(e,t,i)}return tx(e,t,r,n,i)}function tk(e,t,r){var n=t.pendingProps,i=n.children,s=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ut(Bc,En),En|=r;else{if(!(r&1073741824))return e=s!==null?s.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ut(Bc,En),En|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=s!==null?s.baseLanes:r,ut(Bc,En),En|=n}else s!==null?(n=s.baseLanes|r,t.memoizedState=null):n=r,ut(Bc,En),En|=n;return Vr(e,t,i,r),t.child}function rk(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function tx(e,t,r,n,i){var s=nn(r)?Hu:Ar.current;return s=Gc(t,s),Uc(t,i),r=$x(e,t,r,n,s,i),n=Wx(),e!==null&&!tn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,qs(e,t,i)):(Et&&n&&Ix(t),t.flags|=1,Vr(e,t,r,i),t.child)}function h6(e,t,r,n,i){if(nn(r)){var s=!0;fy(t)}else s=!1;if(Uc(t,i),t.stateNode===null)Jg(e,t),J8(t,r,n),QS(t,r,n,i),n=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var u=o.context,l=r.contextType;typeof l=="object"&&l!==null?l=si(l):(l=nn(r)?Hu:Ar.current,l=Gc(t,l));var c=r.getDerivedStateFromProps,f=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==n||u!==l)&&l6(t,o,n,l),ia=!1;var p=t.memoizedState;o.state=p,gy(t,n,o,i),u=t.memoizedState,a!==n||p!==u||rn.current||ia?(typeof c=="function"&&(ZS(t,r,c,n),u=t.memoizedState),(a=ia||u6(t,r,a,n,p,u,l))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=u),o.props=n,o.state=u,o.context=l,n=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,I8(e,t),a=t.memoizedProps,l=t.type===t.elementType?a:Oi(t.type,a),o.props=l,f=t.pendingProps,p=o.context,u=r.contextType,typeof u=="object"&&u!==null?u=si(u):(u=nn(r)?Hu:Ar.current,u=Gc(t,u));var d=r.getDerivedStateFromProps;(c=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==f||p!==u)&&l6(t,o,n,u),ia=!1,p=t.memoizedState,o.state=p,gy(t,n,o,i);var m=t.memoizedState;a!==f||p!==m||rn.current||ia?(typeof d=="function"&&(ZS(t,r,d,n),m=t.memoizedState),(l=ia||u6(t,r,l,n,p,m,u)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,m,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,m,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=m),o.props=n,o.state=m,o.context=u,n=l):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),n=!1)}return rx(e,t,r,n,s,i)}function rx(e,t,r,n,i,s){rk(e,t);var o=(t.flags&128)!==0;if(!n&&!o)return i&&e6(t,r,!1),qs(e,t,s);n=t.stateNode,Jne.current=t;var a=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=zc(t,e.child,null,s),t.child=zc(t,null,a,s)):Vr(e,t,a,s),t.memoizedState=n.state,i&&e6(t,r,!0),t.child}function nk(e){var t=e.stateNode;t.pendingContext?QB(e,t.pendingContext,t.pendingContext!==t.context):t.context&&QB(e,t.context,!1),Mx(e,t.containerInfo)}function g6(e,t,r,n,i){return qc(),Px(i),t.flags|=256,Vr(e,t,r,n),t.child}var nx={dehydrated:null,treeContext:null,retryLane:0};function ix(e){return{baseLanes:e,cachePool:null,transitions:null}}function ik(e,t,r){var n=t.pendingProps,i=Ot.current,s=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ut(Ot,i&1),e===null)return XS(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=n.children,e=n.fallback,s?(n=t.mode,s=t.child,o={mode:"hidden",children:o},!(n&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=Ry(o,n,0,null),e=zu(e,n,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=ix(r),t.memoizedState=nx,e):zx(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return Zne(e,t,o,n,a,i,r);if(s){s=n.fallback,o=t.mode,i=e.child,a=i.sibling;var u={mode:"hidden",children:n.children};return!(o&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=u,t.deletions=null):(n=ga(i,u),n.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=ga(a,s):(s=zu(s,o,r,null),s.flags|=2),s.return=t,n.return=t,n.sibling=s,t.child=n,n=s,s=t.child,o=e.child.memoizedState,o=o===null?ix(r):{baseLanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~r,t.memoizedState=nx,n}return s=e.child,e=s.sibling,n=ga(s,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function zx(e,t){return t=Ry({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function $g(e,t,r,n){return n!==null&&Px(n),zc(t,e.child,null,r),e=zx(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Zne(e,t,r,n,i,s,o){if(r)return t.flags&256?(t.flags&=-257,n=DS(Error(J(422))),$g(e,t,o,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=n.fallback,i=t.mode,n=Ry({mode:"visible",children:n.children},i,0,null),s=zu(s,i,o,null),s.flags|=2,n.return=t,s.return=t,n.sibling=s,t.child=n,t.mode&1&&zc(t,e.child,null,o),t.child.memoizedState=ix(o),t.memoizedState=nx,s);if(!(t.mode&1))return $g(e,t,o,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var a=n.dgst;return n=a,s=Error(J(419)),n=DS(s,n,void 0),$g(e,t,o,n)}if(a=(o&e.childLanes)!==0,tn||a){if(n=or,n!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,Gs(e,i),Ti(n,e,i,-1))}return Zx(),n=DS(Error(J(421))),$g(e,t,o,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=fie.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,Sn=pa(i.nextSibling),xn=t,Et=!0,Ai=null,e!==null&&(ti[ri++]=js,ti[ri++]=Vs,ti[ri++]=Yu,js=e.id,Vs=e.overflow,Yu=t),t=zx(t,n.children),t.flags|=4096,t)}function y6(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),JS(e.return,t,r)}function vS(e,t,r,n,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=n,s.tail=r,s.tailMode=i)}function sk(e,t,r){var n=t.pendingProps,i=n.revealOrder,s=n.tail;if(Vr(e,t,n.children,r),n=Ot.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&y6(e,r,t);else if(e.tag===19)y6(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(ut(Ot,n),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&yy(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),vS(t,!1,i,r,s);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&yy(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}vS(t,!0,r,null,s);break;case"together":vS(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Jg(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function qs(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Xu|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(J(153));if(t.child!==null){for(e=t.child,r=ga(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=ga(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Qne(e,t,r){switch(t.tag){case 3:nk(t),qc();break;case 5:T8(t);break;case 1:nn(t.type)&&fy(t);break;case 4:Mx(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;ut(my,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(ut(Ot,Ot.current&1),t.flags|=128,null):r&t.child.childLanes?ik(e,t,r):(ut(Ot,Ot.current&1),e=qs(e,t,r),e!==null?e.sibling:null);ut(Ot,Ot.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return sk(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ut(Ot,Ot.current),n)break;return null;case 22:case 23:return t.lanes=0,tk(e,t,r)}return qs(e,t,r)}var ok,sx,ak,uk;ok=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};sx=function(){};ak=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,Gu(as.current);var s=null;switch(r){case"input":i=OS(e,i),n=OS(e,n),s=[];break;case"select":i=At({},i,{value:void 0}),n=At({},n,{value:void 0}),s=[];break;case"textarea":i=IS(e,i),n=IS(e,n),s=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=ly)}PS(r,n);var o;r=null;for(l in i)if(!n.hasOwnProperty(l)&&i.hasOwnProperty(l)&&i[l]!=null)if(l==="style"){var a=i[l];for(o in a)a.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(xd.hasOwnProperty(l)?s||(s=[]):(s=s||[]).push(l,null));for(l in n){var u=n[l];if(a=i?.[l],n.hasOwnProperty(l)&&u!==a&&(u!=null||a!=null))if(l==="style")if(a){for(o in a)!a.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in u)u.hasOwnProperty(o)&&a[o]!==u[o]&&(r||(r={}),r[o]=u[o])}else r||(s||(s=[]),s.push(l,r)),r=u;else l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(s=s||[]).push(l,u)):l==="children"?typeof u!="string"&&typeof u!="number"||(s=s||[]).push(l,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(xd.hasOwnProperty(l)?(u!=null&&l==="onScroll"&&mt("scroll",e),s||a===u||(s=[])):(s=s||[]).push(l,u))}r&&(s=s||[]).push("style",r);var l=s;(t.updateQueue=l)&&(t.flags|=4)}};uk=function(e,t,r,n){r!==n&&(t.flags|=4)};function ud(e,t){if(!Et)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Or(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function eie(e,t,r){var n=t.pendingProps;switch(Tx(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Or(t),null;case 1:return nn(t.type)&&cy(),Or(t),null;case 3:return n=t.stateNode,Hc(),ht(rn),ht(Ar),Vx(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Vg(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ai!==null&&(dx(Ai),Ai=null))),sx(e,t),Or(t),null;case 5:jx(t);var i=Gu(Bd.current);if(r=t.type,e!==null&&t.stateNode!=null)ak(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(J(166));return Or(t),null}if(e=Gu(as.current),Vg(t)){n=t.stateNode,r=t.type;var s=t.memoizedProps;switch(n[ss]=t,n[Nd]=s,e=(t.mode&1)!==0,r){case"dialog":mt("cancel",n),mt("close",n);break;case"iframe":case"object":case"embed":mt("load",n);break;case"video":case"audio":for(i=0;i<md.length;i++)mt(md[i],n);break;case"source":mt("error",n);break;case"img":case"image":case"link":mt("error",n),mt("load",n);break;case"details":mt("toggle",n);break;case"input":_B(n,s),mt("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!s.multiple},mt("invalid",n);break;case"textarea":OB(n,s),mt("invalid",n)}PS(r,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?n.textContent!==a&&(s.suppressHydrationWarning!==!0&&jg(n.textContent,a,e),i=["children",a]):typeof a=="number"&&n.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&jg(n.textContent,a,e),i=["children",""+a]):xd.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&mt("scroll",n)}switch(r){case"input":Og(n),bB(n,s,!0);break;case"textarea":Og(n),FB(n);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(n.onclick=ly)}n=i,t.updateQueue=n,n!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=B6(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=o.createElement("div"),e.innerHTML="<script></script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[ss]=t,e[Nd]=n,ok(e,t,!1,!1),t.stateNode=e;e:{switch(o=LS(r,n),r){case"dialog":mt("cancel",e),mt("close",e),i=n;break;case"iframe":case"object":case"embed":mt("load",e),i=n;break;case"video":case"audio":for(i=0;i<md.length;i++)mt(md[i],e);i=n;break;case"source":mt("error",e),i=n;break;case"img":case"image":case"link":mt("error",e),mt("load",e),i=n;break;case"details":mt("toggle",e),i=n;break;case"input":_B(e,n),i=OS(e,n),mt("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=At({},n,{value:void 0}),mt("invalid",e);break;case"textarea":OB(e,n),i=IS(e,n),mt("invalid",e);break;default:i=n}PS(r,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var u=a[s];s==="style"?j6(e,u):s==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&k6(e,u)):s==="children"?typeof u=="string"?(r!=="textarea"||u!=="")&&_d(e,u):typeof u=="number"&&_d(e,""+u):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(xd.hasOwnProperty(s)?u!=null&&s==="onScroll"&&mt("scroll",e):u!=null&&gx(e,s,u,o))}switch(r){case"input":Og(e),bB(e,n,!1);break;case"textarea":Og(e),FB(e);break;case"option":n.value!=null&&e.setAttribute("value",""+ya(n.value));break;case"select":e.multiple=!!n.multiple,s=n.value,s!=null?kc(e,!!n.multiple,s,!1):n.defaultValue!=null&&kc(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=ly)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Or(t),null;case 6:if(e&&t.stateNode!=null)uk(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(J(166));if(r=Gu(Bd.current),Gu(as.current),Vg(t)){if(n=t.stateNode,r=t.memoizedProps,n[ss]=t,(s=n.nodeValue!==r)&&(e=xn,e!==null))switch(e.tag){case 3:jg(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&jg(n.nodeValue,r,(e.mode&1)!==0)}s&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[ss]=t,t.stateNode=n}return Or(t),null;case 13:if(ht(Ot),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Et&&Sn!==null&&t.mode&1&&!(t.flags&128))b8(),qc(),t.flags|=98560,s=!1;else if(s=Vg(t),n!==null&&n.dehydrated!==null){if(e===null){if(!s)throw Error(J(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(J(317));s[ss]=t}else qc(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Or(t),s=!1}else Ai!==null&&(dx(Ai),Ai=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||Ot.current&1?Xt===0&&(Xt=3):Zx())),t.updateQueue!==null&&(t.flags|=4),Or(t),null);case 4:return Hc(),sx(e,t),e===null&&Pd(t.stateNode.containerInfo),Or(t),null;case 10:return Rx(t.type._context),Or(t),null;case 17:return nn(t.type)&&cy(),Or(t),null;case 19:if(ht(Ot),s=t.memoizedState,s===null)return Or(t),null;if(n=(t.flags&128)!==0,o=s.rendering,o===null)if(n)ud(s,!1);else{if(Xt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=yy(e),o!==null){for(t.flags|=128,ud(s,!1),n=o.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)s=r,e=n,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ut(Ot,Ot.current&1|2),t.child}e=e.sibling}s.tail!==null&&kt()>Kc&&(t.flags|=128,n=!0,ud(s,!1),t.lanes=4194304)}else{if(!n)if(e=yy(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),ud(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!Et)return Or(t),null}else 2*kt()-s.renderingStartTime>Kc&&r!==1073741824&&(t.flags|=128,n=!0,ud(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(r=s.last,r!==null?r.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=kt(),t.sibling=null,r=Ot.current,ut(Ot,n?r&1|2:r&1),t):(Or(t),null);case 22:case 23:return Jx(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?En&1073741824&&(Or(t),t.subtreeFlags&6&&(t.flags|=8192)):Or(t),null;case 24:return null;case 25:return null}throw Error(J(156,t.tag))}function tie(e,t){switch(Tx(t),t.tag){case 1:return nn(t.type)&&cy(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Hc(),ht(rn),ht(Ar),Vx(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return jx(t),null;case 13:if(ht(Ot),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(J(340));qc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ht(Ot),null;case 4:return Hc(),null;case 10:return Rx(t.type._context),null;case 22:case 23:return Jx(),null;case 24:return null;default:return null}}var Wg=!1,Fr=!1,rie=typeof WeakSet=="function"?WeakSet:Set,de=null;function Rc(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Pt(e,t,n)}else r.current=null}function ox(e,t,r){try{r()}catch(n){Pt(e,t,n)}}var D6=!1;function nie(e,t){if(WS=oy,e=d8(),Ax(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{r.nodeType,s.nodeType}catch{r=null;break e}var o=0,a=-1,u=-1,l=0,c=0,f=e,p=null;t:for(;;){for(var d;f!==r||i!==0&&f.nodeType!==3||(a=o+i),f!==s||n!==0&&f.nodeType!==3||(u=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(d=f.firstChild)!==null;)p=f,f=d;for(;;){if(f===e)break t;if(p===r&&++l===i&&(a=o),p===s&&++c===n&&(u=o),(d=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=d}r=a===-1||u===-1?null:{start:a,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(GS={focusedElem:e,selectionRange:r},oy=!1,de=t;de!==null;)if(t=de,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,de=e;else for(;de!==null;){t=de;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,D=m.memoizedState,h=t.stateNode,g=h.getSnapshotBeforeUpdate(t.elementType===t.type?y:Oi(t.type,y),D);h.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(J(163))}}catch(w){Pt(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,de=e;break}de=t.return}return m=D6,D6=!1,m}function Cd(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&ox(t,r,s)}i=i.next}while(i!==n)}}function Ly(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function ax(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function lk(e){var t=e.alternate;t!==null&&(e.alternate=null,lk(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ss],delete t[Nd],delete t[HS],delete t[jne],delete t[Vne])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ck(e){return e.tag===5||e.tag===3||e.tag===4}function v6(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ck(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ux(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=ly));else if(n!==4&&(e=e.child,e!==null))for(ux(e,t,r),e=e.sibling;e!==null;)ux(e,t,r),e=e.sibling}function lx(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(lx(e,t,r),e=e.sibling;e!==null;)lx(e,t,r),e=e.sibling}var mr=null,Fi=!1;function ra(e,t,r){for(r=r.child;r!==null;)fk(e,t,r),r=r.sibling}function fk(e,t,r){if(os&&typeof os.onCommitFiberUnmount=="function")try{os.onCommitFiberUnmount(_y,r)}catch{}switch(r.tag){case 5:Fr||Rc(r,t);case 6:var n=mr,i=Fi;mr=null,ra(e,t,r),mr=n,Fi=i,mr!==null&&(Fi?(e=mr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):mr.removeChild(r.stateNode));break;case 18:mr!==null&&(Fi?(e=mr,r=r.stateNode,e.nodeType===8?pS(e.parentNode,r):e.nodeType===1&&pS(e,r),Ad(e)):pS(mr,r.stateNode));break;case 4:n=mr,i=Fi,mr=r.stateNode.containerInfo,Fi=!0,ra(e,t,r),mr=n,Fi=i;break;case 0:case 11:case 14:case 15:if(!Fr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&ox(r,t,o),i=i.next}while(i!==n)}ra(e,t,r);break;case 1:if(!Fr&&(Rc(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){Pt(r,t,a)}ra(e,t,r);break;case 21:ra(e,t,r);break;case 22:r.mode&1?(Fr=(n=Fr)||r.memoizedState!==null,ra(e,t,r),Fr=n):ra(e,t,r);break;default:ra(e,t,r)}}function w6(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new rie),t.forEach(function(n){var i=pie.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function bi(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var s=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:mr=a.stateNode,Fi=!1;break e;case 3:mr=a.stateNode.containerInfo,Fi=!0;break e;case 4:mr=a.stateNode.containerInfo,Fi=!0;break e}a=a.return}if(mr===null)throw Error(J(160));fk(s,o,i),mr=null,Fi=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(l){Pt(i,t,l)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)pk(t,e),t=t.sibling}function pk(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(bi(t,e),ns(e),n&4){try{Cd(3,e,e.return),Ly(3,e)}catch(y){Pt(e,e.return,y)}try{Cd(5,e,e.return)}catch(y){Pt(e,e.return,y)}}break;case 1:bi(t,e),ns(e),n&512&&r!==null&&Rc(r,r.return);break;case 5:if(bi(t,e),ns(e),n&512&&r!==null&&Rc(r,r.return),e.flags&32){var i=e.stateNode;try{_d(i,"")}catch(y){Pt(e,e.return,y)}}if(n&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=r!==null?r.memoizedProps:s,a=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&N6(i,s),LS(a,o);var l=LS(a,s);for(o=0;o<u.length;o+=2){var c=u[o],f=u[o+1];c==="style"?j6(i,f):c==="dangerouslySetInnerHTML"?k6(i,f):c==="children"?_d(i,f):gx(i,c,f,l)}switch(a){case"input":FS(i,s);break;case"textarea":R6(i,s);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var d=s.value;d!=null?kc(i,!!s.multiple,d,!1):p!==!!s.multiple&&(s.defaultValue!=null?kc(i,!!s.multiple,s.defaultValue,!0):kc(i,!!s.multiple,s.multiple?[]:"",!1))}i[Nd]=s}catch(y){Pt(e,e.return,y)}}break;case 6:if(bi(t,e),ns(e),n&4){if(e.stateNode===null)throw Error(J(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(y){Pt(e,e.return,y)}}break;case 3:if(bi(t,e),ns(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Ad(t.containerInfo)}catch(y){Pt(e,e.return,y)}break;case 4:bi(t,e),ns(e);break;case 13:bi(t,e),ns(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(Kx=kt())),n&4&&w6(e);break;case 22:if(c=r!==null&&r.memoizedState!==null,e.mode&1?(Fr=(l=Fr)||c,bi(t,e),Fr=l):bi(t,e),ns(e),n&8192){if(l=e.memoizedState!==null,(e.stateNode.isHidden=l)&&!c&&e.mode&1)for(de=e,c=e.child;c!==null;){for(f=de=c;de!==null;){switch(p=de,d=p.child,p.tag){case 0:case 11:case 14:case 15:Cd(4,p,p.return);break;case 1:Rc(p,p.return);var m=p.stateNode;if(typeof m.componentWillUnmount=="function"){n=p,r=p.return;try{t=n,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(y){Pt(n,r,y)}}break;case 5:Rc(p,p.return);break;case 22:if(p.memoizedState!==null){E6(f);continue}}d!==null?(d.return=p,de=d):E6(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,l?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=f.stateNode,u=f.memoizedProps.style,o=u!=null&&u.hasOwnProperty("display")?u.display:null,a.style.display=M6("display",o))}catch(y){Pt(e,e.return,y)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=l?"":f.memoizedProps}catch(y){Pt(e,e.return,y)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:bi(t,e),ns(e),n&4&&w6(e);break;case 21:break;default:bi(t,e),ns(e)}}function ns(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(ck(r)){var n=r;break e}r=r.return}throw Error(J(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(_d(i,""),n.flags&=-33);var s=v6(e);lx(e,s,i);break;case 3:case 4:var o=n.stateNode.containerInfo,a=v6(e);ux(e,a,o);break;default:throw Error(J(161))}}catch(u){Pt(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function iie(e,t,r){de=e,dk(e,t,r)}function dk(e,t,r){for(var n=(e.mode&1)!==0;de!==null;){var i=de,s=i.child;if(i.tag===22&&n){var o=i.memoizedState!==null||Wg;if(!o){var a=i.alternate,u=a!==null&&a.memoizedState!==null||Fr;a=Wg;var l=Fr;if(Wg=o,(Fr=u)&&!l)for(de=i;de!==null;)o=de,u=o.child,o.tag===22&&o.memoizedState!==null?S6(i):u!==null?(u.return=o,de=u):S6(i);for(;s!==null;)de=s,dk(s,t,r),s=s.sibling;de=i,Wg=a,Fr=l}C6(e,t,r)}else i.subtreeFlags&8772&&s!==null?(s.return=i,de=s):C6(e,t,r)}}function C6(e){for(;de!==null;){var t=de;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Fr||Ly(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!Fr)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:Oi(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&s6(t,s,n);break;case 3:var o=t.updateQueue;if(o!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}s6(t,o,r)}break;case 5:var a=t.stateNode;if(r===null&&t.flags&4){r=a;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var l=t.alternate;if(l!==null){var c=l.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&Ad(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(J(163))}Fr||t.flags&512&&ax(t)}catch(p){Pt(t,t.return,p)}}if(t===e){de=null;break}if(r=t.sibling,r!==null){r.return=t.return,de=r;break}de=t.return}}function E6(e){for(;de!==null;){var t=de;if(t===e){de=null;break}var r=t.sibling;if(r!==null){r.return=t.return,de=r;break}de=t.return}}function S6(e){for(;de!==null;){var t=de;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Ly(4,t)}catch(u){Pt(t,r,u)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(u){Pt(t,i,u)}}var s=t.return;try{ax(t)}catch(u){Pt(t,s,u)}break;case 5:var o=t.return;try{ax(t)}catch(u){Pt(t,o,u)}}}catch(u){Pt(t,t.return,u)}if(t===e){de=null;break}var a=t.sibling;if(a!==null){a.return=t.return,de=a;break}de=t.return}}var sie=Math.ceil,wy=zs.ReactCurrentDispatcher,Hx=zs.ReactCurrentOwner,ii=zs.ReactCurrentBatchConfig,Xe=0,or=null,Ut=null,hr=0,En=0,Bc=wa(0),Xt=0,Vd=null,Xu=0,Ny=0,Yx=0,Ed=null,en=null,Kx=0,Kc=1/0,ks=null,Cy=!1,cx=null,ma=null,Gg=!1,ua=null,Ey=0,Sd=0,fx=null,Zg=-1,Qg=0;function Ur(){return Xe&6?kt():Zg!==-1?Zg:Zg=kt()}function ha(e){return e.mode&1?Xe&2&&hr!==0?hr&-hr:$ne.transition!==null?(Qg===0&&(Qg=J6()),Qg):(e=tt,e!==0||(e=window.event,e=e===void 0?16:i8(e.type)),e):1}function Ti(e,t,r,n){if(50<Sd)throw Sd=0,fx=null,Error(J(185));Ud(e,r,n),(!(Xe&2)||e!==or)&&(e===or&&(!(Xe&2)&&(Ny|=r),Xt===4&&oa(e,hr)),sn(e,n),r===1&&Xe===0&&!(t.mode&1)&&(Kc=kt()+500,Iy&&Ca()))}function sn(e,t){var r=e.callbackNode;Gre(e,t);var n=sy(e,e===or?hr:0);if(n===0)r!==null&&TB(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&TB(r),t===1)e.tag===0?Une(x6.bind(null,e)):S8(x6.bind(null,e)),kne(function(){!(Xe&6)&&Ca()}),r=null;else{switch(Z6(n)){case 1:r=Cx;break;case 4:r=K6;break;case 16:r=iy;break;case 536870912:r=X6;break;default:r=iy}r=Ck(r,mk.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function mk(e,t){if(Zg=-1,Qg=0,Xe&6)throw Error(J(327));var r=e.callbackNode;if($c()&&e.callbackNode!==r)return null;var n=sy(e,e===or?hr:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=Sy(e,n);else{t=n;var i=Xe;Xe|=2;var s=gk();(or!==e||hr!==t)&&(ks=null,Kc=kt()+500,qu(e,t));do try{uie();break}catch(a){hk(e,a)}while(!0);Nx(),wy.current=s,Xe=i,Ut!==null?t=0:(or=null,hr=0,t=Xt)}if(t!==0){if(t===2&&(i=MS(e),i!==0&&(n=i,t=px(e,i))),t===1)throw r=Vd,qu(e,0),oa(e,n),sn(e,kt()),r;if(t===6)oa(e,n);else{if(i=e.current.alternate,!(n&30)&&!oie(i)&&(t=Sy(e,n),t===2&&(s=MS(e),s!==0&&(n=s,t=px(e,s))),t===1))throw r=Vd,qu(e,0),oa(e,n),sn(e,kt()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(J(345));case 2:Uu(e,en,ks);break;case 3:if(oa(e,n),(n&130023424)===n&&(t=Kx+500-kt(),10<t)){if(sy(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){Ur(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=zS(Uu.bind(null,e,en,ks),t);break}Uu(e,en,ks);break;case 4:if(oa(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var o=31-Ii(n);s=1<<o,o=t[o],o>i&&(i=o),n&=~s}if(n=i,n=kt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*sie(n/1960))-n,10<n){e.timeoutHandle=zS(Uu.bind(null,e,en,ks),n);break}Uu(e,en,ks);break;case 5:Uu(e,en,ks);break;default:throw Error(J(329))}}}return sn(e,kt()),e.callbackNode===r?mk.bind(null,e):null}function px(e,t){var r=Ed;return e.current.memoizedState.isDehydrated&&(qu(e,t).flags|=256),e=Sy(e,t),e!==2&&(t=en,en=r,t!==null&&dx(t)),e}function dx(e){en===null?en=e:en.push.apply(en,e)}function oie(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var i=r[n],s=i.getSnapshot;i=i.value;try{if(!Pi(s(),i))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function oa(e,t){for(t&=~Yx,t&=~Ny,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Ii(t),n=1<<r;e[r]=-1,t&=~n}}function x6(e){if(Xe&6)throw Error(J(327));$c();var t=sy(e,0);if(!(t&1))return sn(e,kt()),null;var r=Sy(e,t);if(e.tag!==0&&r===2){var n=MS(e);n!==0&&(t=n,r=px(e,n))}if(r===1)throw r=Vd,qu(e,0),oa(e,t),sn(e,kt()),r;if(r===6)throw Error(J(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Uu(e,en,ks),sn(e,kt()),null}function Xx(e,t){var r=Xe;Xe|=1;try{return e(t)}finally{Xe=r,Xe===0&&(Kc=kt()+500,Iy&&Ca())}}function Ju(e){ua!==null&&ua.tag===0&&!(Xe&6)&&$c();var t=Xe;Xe|=1;var r=ii.transition,n=tt;try{if(ii.transition=null,tt=1,e)return e()}finally{tt=n,ii.transition=r,Xe=t,!(Xe&6)&&Ca()}}function Jx(){En=Bc.current,ht(Bc)}function qu(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,Bne(r)),Ut!==null)for(r=Ut.return;r!==null;){var n=r;switch(Tx(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&cy();break;case 3:Hc(),ht(rn),ht(Ar),Vx();break;case 5:jx(n);break;case 4:Hc();break;case 13:ht(Ot);break;case 19:ht(Ot);break;case 10:Rx(n.type._context);break;case 22:case 23:Jx()}r=r.return}if(or=e,Ut=e=ga(e.current,null),hr=En=t,Xt=0,Vd=null,Yx=Ny=Xu=0,en=Ed=null,Wu!==null){for(t=0;t<Wu.length;t++)if(r=Wu[t],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,s=r.pending;if(s!==null){var o=s.next;s.next=i,n.next=o}r.pending=n}Wu=null}return e}function hk(e,t){do{var r=Ut;try{if(Nx(),Kg.current=vy,Dy){for(var n=Ft.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}Dy=!1}if(Ku=0,sr=Kt=Ft=null,wd=!1,kd=0,Hx.current=null,r===null||r.return===null){Xt=1,Vd=t,Ut=null;break}e:{var s=e,o=r.return,a=r,u=t;if(t=hr,a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var l=u,c=a,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.lanes):(c.updateQueue=null,c.memoizedState=null)}var d=f6(o);if(d!==null){d.flags&=-257,p6(d,o,a,s,t),d.mode&1&&c6(s,l,t),t=d,u=l;var m=t.updateQueue;if(m===null){var y=new Set;y.add(u),t.updateQueue=y}else m.add(u);break e}else{if(!(t&1)){c6(s,l,t),Zx();break e}u=Error(J(426))}}else if(Et&&a.mode&1){var D=f6(o);if(D!==null){!(D.flags&65536)&&(D.flags|=256),p6(D,o,a,s,t),Px(Yc(u,a));break e}}s=u=Yc(u,a),Xt!==4&&(Xt=2),Ed===null?Ed=[s]:Ed.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var h=Z8(s,u,t);i6(s,h);break e;case 1:a=u;var g=s.type,v=s.stateNode;if(!(s.flags&128)&&(typeof g.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(ma===null||!ma.has(v)))){s.flags|=65536,t&=-t,s.lanes|=t;var w=Q8(s,a,t);i6(s,w);break e}}s=s.return}while(s!==null)}Dk(r)}catch(E){t=E,Ut===r&&r!==null&&(Ut=r=r.return);continue}break}while(!0)}function gk(){var e=wy.current;return wy.current=vy,e===null?vy:e}function Zx(){(Xt===0||Xt===3||Xt===2)&&(Xt=4),or===null||!(Xu&268435455)&&!(Ny&268435455)||oa(or,hr)}function Sy(e,t){var r=Xe;Xe|=2;var n=gk();(or!==e||hr!==t)&&(ks=null,qu(e,t));do try{aie();break}catch(i){hk(e,i)}while(!0);if(Nx(),Xe=r,wy.current=n,Ut!==null)throw Error(J(261));return or=null,hr=0,Xt}function aie(){for(;Ut!==null;)yk(Ut)}function uie(){for(;Ut!==null&&!Rre();)yk(Ut)}function yk(e){var t=wk(e.alternate,e,En);e.memoizedProps=e.pendingProps,t===null?Dk(e):Ut=t,Hx.current=null}function Dk(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=tie(r,t),r!==null){r.flags&=32767,Ut=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Xt=6,Ut=null;return}}else if(r=eie(r,t,En),r!==null){Ut=r;return}if(t=t.sibling,t!==null){Ut=t;return}Ut=t=e}while(t!==null);Xt===0&&(Xt=5)}function Uu(e,t,r){var n=tt,i=ii.transition;try{ii.transition=null,tt=1,lie(e,t,r,n)}finally{ii.transition=i,tt=n}return null}function lie(e,t,r,n){do $c();while(ua!==null);if(Xe&6)throw Error(J(327));r=e.finishedWork;var i=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(J(177));e.callbackNode=null,e.callbackPriority=0;var s=r.lanes|r.childLanes;if(qre(e,s),e===or&&(Ut=or=null,hr=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||Gg||(Gg=!0,Ck(iy,function(){return $c(),null})),s=(r.flags&15990)!==0,r.subtreeFlags&15990||s){s=ii.transition,ii.transition=null;var o=tt;tt=1;var a=Xe;Xe|=4,Hx.current=null,nie(e,r),pk(r,e),Tne(GS),oy=!!WS,GS=WS=null,e.current=r,iie(r,e,i),Bre(),Xe=a,tt=o,ii.transition=s}else e.current=r;if(Gg&&(Gg=!1,ua=e,Ey=i),s=e.pendingLanes,s===0&&(ma=null),jre(r.stateNode,n),sn(e,kt()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(Cy)throw Cy=!1,e=cx,cx=null,e;return Ey&1&&e.tag!==0&&$c(),s=e.pendingLanes,s&1?e===fx?Sd++:(Sd=0,fx=e):Sd=0,Ca(),null}function $c(){if(ua!==null){var e=Z6(Ey),t=ii.transition,r=tt;try{if(ii.transition=null,tt=16>e?16:e,ua===null)var n=!1;else{if(e=ua,ua=null,Ey=0,Xe&6)throw Error(J(331));var i=Xe;for(Xe|=4,de=e.current;de!==null;){var s=de,o=s.child;if(de.flags&16){var a=s.deletions;if(a!==null){for(var u=0;u<a.length;u++){var l=a[u];for(de=l;de!==null;){var c=de;switch(c.tag){case 0:case 11:case 15:Cd(8,c,s)}var f=c.child;if(f!==null)f.return=c,de=f;else for(;de!==null;){c=de;var p=c.sibling,d=c.return;if(lk(c),c===l){de=null;break}if(p!==null){p.return=d,de=p;break}de=d}}}var m=s.alternate;if(m!==null){var y=m.child;if(y!==null){m.child=null;do{var D=y.sibling;y.sibling=null,y=D}while(y!==null)}}de=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,de=o;else e:for(;de!==null;){if(s=de,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Cd(9,s,s.return)}var h=s.sibling;if(h!==null){h.return=s.return,de=h;break e}de=s.return}}var g=e.current;for(de=g;de!==null;){o=de;var v=o.child;if(o.subtreeFlags&2064&&v!==null)v.return=o,de=v;else e:for(o=g;de!==null;){if(a=de,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Ly(9,a)}}catch(E){Pt(a,a.return,E)}if(a===o){de=null;break e}var w=a.sibling;if(w!==null){w.return=a.return,de=w;break e}de=a.return}}if(Xe=i,Ca(),os&&typeof os.onPostCommitFiberRoot=="function")try{os.onPostCommitFiberRoot(_y,e)}catch{}n=!0}return n}finally{tt=r,ii.transition=t}}return!1}function _6(e,t,r){t=Yc(r,t),t=Z8(e,t,1),e=da(e,t,1),t=Ur(),e!==null&&(Ud(e,1,t),sn(e,t))}function Pt(e,t,r){if(e.tag===3)_6(e,e,r);else for(;t!==null;){if(t.tag===3){_6(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(ma===null||!ma.has(n))){e=Yc(r,e),e=Q8(t,e,1),t=da(t,e,1),e=Ur(),t!==null&&(Ud(t,1,e),sn(t,e));break}}t=t.return}}function cie(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Ur(),e.pingedLanes|=e.suspendedLanes&r,or===e&&(hr&r)===r&&(Xt===4||Xt===3&&(hr&130023424)===hr&&500>kt()-Kx?qu(e,0):Yx|=r),sn(e,t)}function vk(e,t){t===0&&(e.mode&1?(t=Ig,Ig<<=1,!(Ig&130023424)&&(Ig=4194304)):t=1);var r=Ur();e=Gs(e,t),e!==null&&(Ud(e,t,r),sn(e,r))}function fie(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),vk(e,r)}function pie(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(J(314))}n!==null&&n.delete(t),vk(e,r)}var wk;wk=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||rn.current)tn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return tn=!1,Qne(e,t,r);tn=!!(e.flags&131072)}else tn=!1,Et&&t.flags&1048576&&x8(t,dy,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Jg(e,t),e=t.pendingProps;var i=Gc(t,Ar.current);Uc(t,r),i=$x(null,t,n,e,i,r);var s=Wx();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,nn(n)?(s=!0,fy(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,kx(t),i.updater=Py,t.stateNode=i,i._reactInternals=t,QS(t,n,e,r),t=rx(null,t,n,!0,s,r)):(t.tag=0,Et&&s&&Ix(t),Vr(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Jg(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=mie(n),e=Oi(n,e),i){case 0:t=tx(null,t,n,e,r);break e;case 1:t=h6(null,t,n,e,r);break e;case 11:t=d6(null,t,n,e,r);break e;case 14:t=m6(null,t,n,Oi(n.type,e),r);break e}throw Error(J(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Oi(n,i),tx(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Oi(n,i),h6(e,t,n,i,r);case 3:e:{if(nk(t),e===null)throw Error(J(387));n=t.pendingProps,s=t.memoizedState,i=s.element,I8(e,t),gy(t,n,null,r);var o=t.memoizedState;if(n=o.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Yc(Error(J(423)),t),t=g6(e,t,n,r,i);break e}else if(n!==i){i=Yc(Error(J(424)),t),t=g6(e,t,n,r,i);break e}else for(Sn=pa(t.stateNode.containerInfo.firstChild),xn=t,Et=!0,Ai=null,r=F8(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(qc(),n===i){t=qs(e,t,r);break e}Vr(e,t,n,r)}t=t.child}return t;case 5:return T8(t),e===null&&XS(t),n=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,qS(n,i)?o=null:s!==null&&qS(n,s)&&(t.flags|=32),rk(e,t),Vr(e,t,o,r),t.child;case 6:return e===null&&XS(t),null;case 13:return ik(e,t,r);case 4:return Mx(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=zc(t,null,n,r):Vr(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Oi(n,i),d6(e,t,n,i,r);case 7:return Vr(e,t,t.pendingProps,r),t.child;case 8:return Vr(e,t,t.pendingProps.children,r),t.child;case 12:return Vr(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,ut(my,n._currentValue),n._currentValue=o,s!==null)if(Pi(s.value,o)){if(s.children===i.children&&!rn.current){t=qs(e,t,r);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var u=a.firstContext;u!==null;){if(u.context===n){if(s.tag===1){u=Us(-1,r&-r),u.tag=2;var l=s.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?u.next=u:(u.next=c.next,c.next=u),l.pending=u}}s.lanes|=r,u=s.alternate,u!==null&&(u.lanes|=r),JS(s.return,r,t),a.lanes|=r;break}u=u.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(J(341));o.lanes|=r,a=o.alternate,a!==null&&(a.lanes|=r),JS(o,r,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Vr(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Uc(t,r),i=si(i),n=n(i),t.flags|=1,Vr(e,t,n,r),t.child;case 14:return n=t.type,i=Oi(n,t.pendingProps),i=Oi(n.type,i),m6(e,t,n,i,r);case 15:return ek(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Oi(n,i),Jg(e,t),t.tag=1,nn(n)?(e=!0,fy(t)):e=!1,Uc(t,r),J8(t,n,i),QS(t,n,i,r),rx(null,t,n,!0,e,r);case 19:return sk(e,t,r);case 22:return tk(e,t,r)}throw Error(J(156,t.tag))};function Ck(e,t){return Y6(e,t)}function die(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ni(e,t,r,n){return new die(e,t,r,n)}function Qx(e){return e=e.prototype,!(!e||!e.isReactComponent)}function mie(e){if(typeof e=="function")return Qx(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Dx)return 11;if(e===vx)return 14}return 2}function ga(e,t){var r=e.alternate;return r===null?(r=ni(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function ey(e,t,r,n,i,s){var o=2;if(n=e,typeof e=="function")Qx(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case bc:return zu(r.children,i,s,t);case yx:o=8,i|=8;break;case SS:return e=ni(12,r,t,i|2),e.elementType=SS,e.lanes=s,e;case xS:return e=ni(13,r,t,i),e.elementType=xS,e.lanes=s,e;case _S:return e=ni(19,r,t,i),e.elementType=_S,e.lanes=s,e;case T6:return Ry(r,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case A6:o=10;break e;case I6:o=9;break e;case Dx:o=11;break e;case vx:o=14;break e;case na:o=16,n=null;break e}throw Error(J(130,e==null?e:typeof e,""))}return t=ni(o,r,t,i),t.elementType=e,t.type=n,t.lanes=s,t}function zu(e,t,r,n){return e=ni(7,e,n,t),e.lanes=r,e}function Ry(e,t,r,n){return e=ni(22,e,n,t),e.elementType=T6,e.lanes=r,e.stateNode={isHidden:!1},e}function wS(e,t,r){return e=ni(6,e,null,t),e.lanes=r,e}function CS(e,t,r){return t=ni(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function hie(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=iS(0),this.expirationTimes=iS(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=iS(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function e2(e,t,r,n,i,s,o,a,u){return e=new hie(e,t,r,a,u),t===1?(t=1,s===!0&&(t|=8)):t=0,s=ni(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},kx(s),e}function gie(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:_c,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function Ek(e){if(!e)return Da;e=e._reactInternals;e:{if(Qu(e)!==e||e.tag!==1)throw Error(J(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(nn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(J(171))}if(e.tag===1){var r=e.type;if(nn(r))return E8(e,r,t)}return t}function Sk(e,t,r,n,i,s,o,a,u){return e=e2(r,n,!0,e,i,s,o,a,u),e.context=Ek(null),r=e.current,n=Ur(),i=ha(r),s=Us(n,i),s.callback=t??null,da(r,s,i),e.current.lanes=i,Ud(e,i,n),sn(e,n),e}function By(e,t,r,n){var i=t.current,s=Ur(),o=ha(i);return r=Ek(r),t.context===null?t.context=r:t.pendingContext=r,t=Us(s,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=da(i,t,o),e!==null&&(Ti(e,i,o,s),Yg(e,i,o)),o}function xy(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function b6(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function t2(e,t){b6(e,t),(e=e.alternate)&&b6(e,t)}function yie(){return null}var xk=typeof reportError=="function"?reportError:function(e){console.error(e)};function r2(e){this._internalRoot=e}ky.prototype.render=r2.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(J(409));By(e,t,null,null)};ky.prototype.unmount=r2.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ju(function(){By(null,e,null,null)}),t[Ws]=null}};function ky(e){this._internalRoot=e}ky.prototype.unstable_scheduleHydration=function(e){if(e){var t=t8();e={blockedOn:null,target:e,priority:t};for(var r=0;r<sa.length&&t!==0&&t<sa[r].priority;r++);sa.splice(r,0,e),r===0&&n8(e)}};function n2(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function My(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function O6(){}function Die(e,t,r,n,i){if(i){if(typeof n=="function"){var s=n;n=function(){var l=xy(o);s.call(l)}}var o=Sk(t,n,e,0,null,!1,!1,"",O6);return e._reactRootContainer=o,e[Ws]=o.current,Pd(e.nodeType===8?e.parentNode:e),Ju(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var a=n;n=function(){var l=xy(u);a.call(l)}}var u=e2(e,0,!1,null,null,!1,!1,"",O6);return e._reactRootContainer=u,e[Ws]=u.current,Pd(e.nodeType===8?e.parentNode:e),Ju(function(){By(t,u,r,n)}),u}function jy(e,t,r,n,i){var s=r._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var a=i;i=function(){var u=xy(o);a.call(u)}}By(t,o,e,i)}else o=Die(r,t,e,i,n);return xy(o)}Q6=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=dd(t.pendingLanes);r!==0&&(Ex(t,r|1),sn(t,kt()),!(Xe&6)&&(Kc=kt()+500,Ca()))}break;case 13:Ju(function(){var n=Gs(e,1);if(n!==null){var i=Ur();Ti(n,e,1,i)}}),t2(e,1)}};Sx=function(e){if(e.tag===13){var t=Gs(e,134217728);if(t!==null){var r=Ur();Ti(t,e,134217728,r)}t2(e,134217728)}};e8=function(e){if(e.tag===13){var t=ha(e),r=Gs(e,t);if(r!==null){var n=Ur();Ti(r,e,t,n)}t2(e,t)}};t8=function(){return tt};r8=function(e,t){var r=tt;try{return tt=e,t()}finally{tt=r}};RS=function(e,t,r){switch(t){case"input":if(FS(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=Ay(n);if(!i)throw Error(J(90));L6(n),FS(n,i)}}}break;case"textarea":R6(e,r);break;case"select":t=r.value,t!=null&&kc(e,!!r.multiple,t,!1)}};$6=Xx;W6=Ju;var vie={usingClientEntryPoint:!1,Events:[Wd,Ic,Ay,V6,U6,Xx]},ld={findFiberByHostInstance:$u,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},wie={bundleType:ld.bundleType,version:ld.version,rendererPackageName:ld.rendererPackageName,rendererConfig:ld.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:zs.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=z6(e),e===null?null:e.stateNode},findFiberByHostInstance:ld.findFiberByHostInstance||yie,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(cd=__REACT_DEVTOOLS_GLOBAL_HOOK__,!cd.isDisabled&&cd.supportsFiber))try{_y=cd.inject(wie),os=cd}catch{}var cd;On.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=vie;On.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!n2(t))throw Error(J(200));return gie(e,t,null,r)};On.createRoot=function(e,t){if(!n2(e))throw Error(J(299));var r=!1,n="",i=xk;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=e2(e,1,!1,null,null,r,!1,n,i),e[Ws]=t.current,Pd(e.nodeType===8?e.parentNode:e),new r2(t)};On.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(J(188)):(e=Object.keys(e).join(","),Error(J(268,e)));return e=z6(t),e=e===null?null:e.stateNode,e};On.flushSync=function(e){return Ju(e)};On.hydrate=function(e,t,r){if(!My(t))throw Error(J(200));return jy(null,e,t,!0,r)};On.hydrateRoot=function(e,t,r){if(!n2(e))throw Error(J(405));var n=r!=null&&r.hydratedSources||null,i=!1,s="",o=xk;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(s=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),t=Sk(t,null,e,1,r??null,i,!1,s,o),e[Ws]=t.current,Pd(e),n)for(e=0;e<n.length;e++)r=n[e],i=r._getVersion,i=i(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new ky(t)};On.render=function(e,t,r){if(!My(t))throw Error(J(200));return jy(null,e,t,!1,r)};On.unmountComponentAtNode=function(e){if(!My(e))throw Error(J(40));return e._reactRootContainer?(Ju(function(){jy(null,null,e,!1,function(){e._reactRootContainer=null,e[Ws]=null})}),!0):!1};On.unstable_batchedUpdates=Xx;On.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!My(r))throw Error(J(200));if(e==null||e._reactInternals===void 0)throw Error(J(38));return jy(e,t,r,!1,n)};On.version="18.3.1-next-f1338f8080-20240426"});var Fk=N((ISe,Ok)=>{"use strict";function bk(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(bk)}catch(e){console.error(e)}}bk(),Ok.exports=_k()});var Ik=N(Ak=>{"use strict";var Zc=V("react");function Cie(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Eie=typeof Object.is=="function"?Object.is:Cie,Sie=Zc.useState,xie=Zc.useEffect,_ie=Zc.useLayoutEffect,bie=Zc.useDebugValue;function Oie(e,t){var r=t(),n=Sie({inst:{value:r,getSnapshot:t}}),i=n[0].inst,s=n[1];return _ie(function(){i.value=r,i.getSnapshot=t,i2(i)&&s({inst:i})},[e,r,t]),xie(function(){return i2(i)&&s({inst:i}),e(function(){i2(i)&&s({inst:i})})},[e]),bie(r),r}function i2(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Eie(e,r)}catch{return!0}}function Fie(e,t){return t()}var Aie=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Fie:Oie;Ak.useSyncExternalStore=Zc.useSyncExternalStore!==void 0?Zc.useSyncExternalStore:Aie});var Pk=N((PSe,Tk)=>{"use strict";Tk.exports=Ik()});var zk=N(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});var qd,Ea=Qp(),Li=V("react"),Lk=(qd=Li)&&typeof qd=="object"&&"default"in qd?qd.default:qd,Iie=Fk(),Tie=Pk();if(!Li.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!Ea.makeObservable)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function Pie(e){e()}function $k(e){e||(e=Pie),Ea.configure({reactionScheduler:e})}function Lie(e){return Ea.getDependencyTree(e)}var Wk=!1;function Nk(e){Wk=e}function s2(){return Wk}var Rk,Bk,Vy=new(typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){function e(r){var n=this;this.finalize=void 0,this.registrations=new Map,this.sweepTimeout=void 0,this.sweep=function(i){i===void 0&&(i=1e4),clearTimeout(n.sweepTimeout),n.sweepTimeout=void 0;var s=Date.now();n.registrations.forEach(function(o,a){s-o.registeredAt>=i&&(n.finalize(o.value),n.registrations.delete(a))}),n.registrations.size>0&&n.scheduleSweep()},this.finalizeAllImmediately=function(){n.sweep(0)},this.finalize=r}var t=e.prototype;return t.register=function(r,n,i){this.registrations.set(i,{value:n,registeredAt:Date.now()}),this.scheduleSweep()},t.unregister=function(r){this.registrations.delete(r)},t.scheduleSweep=function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,1e4))},e}())(function(e){var t;(t=e.reaction)==null||t.dispose(),e.reaction=null});function kk(e){e.reaction=new Ea.Reaction("observer"+e.name,function(){e.stateVersion=Symbol(),e.onStoreChange==null||e.onStoreChange()})}function o2(e,t){if(t===void 0&&(t="observed"),s2())return e();var r=Lk.useRef(null);if(!r.current){var n={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(a){return Vy.unregister(n),n.onStoreChange=a,n.reaction||(kk(n),n.stateVersion=Symbol()),function(){var u;n.onStoreChange=null,(u=n.reaction)==null||u.dispose(),n.reaction=null}},getSnapshot:function(){return n.stateVersion}};r.current=n}var i,s,o=r.current;if(o.reaction||(kk(o),Vy.register(r,o,o)),Lk.useDebugValue(o.reaction,Lie),Tie.useSyncExternalStore(o.subscribe,o.getSnapshot,o.getSnapshot),o.reaction.track(function(){try{i=e()}catch(a){s=a}}),s)throw s;return i}var Mk,Gk=typeof Symbol=="function"&&Symbol.for,Nie=(Rk=(Bk=Object.getOwnPropertyDescriptor(function(){},"name"))==null?void 0:Bk.configurable)!=null&&Rk,jk=Gk?Symbol.for("react.forward_ref"):typeof Li.forwardRef=="function"&&Li.forwardRef(function(e){return null}).$$typeof,Vk=Gk?Symbol.for("react.memo"):typeof Li.memo=="function"&&Li.memo(function(e){return null}).$$typeof,Rie={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function qk(e){var t=e.children,r=e.render;t&&r&&console.error("MobX Observer: Do not use children and render in the same time in `Observer`");var n=t||r;return typeof n!="function"?null:o2(n)}function Uk(e){var t=Li.useState(function(){return Ea.observable(e,{},{deep:!1})})[0];return Ea.runInAction(function(){Object.assign(t,e)}),t}qk.displayName="Observer",$k(Iie.unstable_batchedUpdates);var Bie=(Mk=Vy.finalizeAllImmediately)!=null?Mk:function(){};Wr.Observer=qk,Wr._observerFinalizationRegistry=Vy,Wr.clearTimers=Bie,Wr.enableStaticRendering=Nk,Wr.isObserverBatched=function(){return!0},Wr.isUsingStaticRendering=s2,Wr.observer=function(e,t){var r;if(Vk&&e.$$typeof===Vk)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");if(s2())return e;var n=(r=t?.forwardRef)!=null&&r,i=e,s=e.displayName||e.name;if(jk&&e.$$typeof===jk&&(n=!0,typeof(i=e.render)!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var o,a,u=function(l,c){return o2(function(){return i(l,c)},s)};return u.displayName=e.displayName,Nie&&Object.defineProperty(u,"name",{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(u.contextTypes=e.contextTypes),n&&(u=Li.forwardRef(u)),u=Li.memo(u),o=e,a=u,Object.keys(o).forEach(function(l){Rie[l]||Object.defineProperty(a,l,Object.getOwnPropertyDescriptor(o,l))}),u},Wr.observerBatching=$k,Wr.useAsObservableSource=Uk,Wr.useLocalObservable=function(e,t){return Li.useState(function(){return Ea.observable(e(),t,{autoBind:!0})})[0]},Wr.useLocalStore=function(e,t){var r=t&&Uk(t);return Li.useState(function(){return Ea.observable(e(r),void 0,{autoBind:!0})})[0]},Wr.useObserver=function(e,t){return t===void 0&&(t="observed"),o2(e,t)},Wr.useStaticRendering=function(e){Nk(e)}});var Yk=N((NSe,Hk)=>{"use strict";Hk.exports=zk()});var fM=N(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});var zd,Hs=Qp(),Hd=V("react"),on=(zd=Hd)&&typeof zd=="object"&&"default"in zd?zd.default:zd,Gr=Yk();function Kk(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}var kie={$$typeof:1,render:1,compare:1,type:1,childContextTypes:1,contextType:1,contextTypes:1,defaultProps:1,getDefaultProps:1,getDerivedStateFromError:1,getDerivedStateFromProps:1,mixins:1,displayName:1,propTypes:1},Xk=Symbol("patchMixins"),Jk=Symbol("patchedDefinition");function Zk(e,t){for(var r=this,n=arguments.length,i=new Array(n>2?n-2:0),s=2;s<n;s++)i[s-2]=arguments[s];t.locks++;try{var o;return e!=null&&(o=e.apply(this,i)),o}finally{t.locks--,t.locks===0&&t.methods.forEach(function(a){a.apply(r,i)})}}function Qk(e,t){return function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];Zk.call.apply(Zk,[this,e,t].concat(n))}}function aM(e,t,r){var n=function(o,a){var u=o[Xk]=o[Xk]||{},l=u[a]=u[a]||{};return l.locks=l.locks||0,l.methods=l.methods||[],l}(e,t);n.methods.indexOf(r)<0&&n.methods.push(r);var i=Object.getOwnPropertyDescriptor(e,t);if(!i||!i[Jk]){var s=function o(a,u,l,c,f){var p,d=Qk(f,c);return(p={})[Jk]=!0,p.get=function(){return d},p.set=function(m){if(this===a)d=Qk(m,c);else{var y=o(this,u,l,c,m);Object.defineProperty(this,u,y)}},p.configurable=!0,p.enumerable=l,p}(e,t,i?i.enumerable:void 0,n,e[t]);Object.defineProperty(e,t,s)}}var eM=Symbol("ObserverAdministration"),tM=Symbol("isMobXReactObserver");function a2(e){var t;return(t=e[eM])!=null?t:e[eM]={reaction:null,mounted:!1,reactionInvalidatedBeforeMount:!1,forceUpdate:null,name:u2(e.constructor),state:void 0,props:void 0,context:void 0}}function u2(e){return e.displayName||e.name||"<component>"}function Mie(e){var t=e.bind(this),r=a2(this);return function(){r.reaction||(r.reaction=function(s){return new Hs.Reaction(s.name+".render()",function(){if(s.mounted)try{s.forceUpdate==null||s.forceUpdate()}catch{var o;(o=s.reaction)==null||o.dispose(),s.reaction=null}else s.reactionInvalidatedBeforeMount=!0})}(r),r.mounted||Gr._observerFinalizationRegistry.register(this,r,this));var n=void 0,i=void 0;if(r.reaction.track(function(){try{i=Hs._allowStateChanges(!1,t)}catch(s){n=s}}),n)throw n;return i}}function rM(e,t){return Gr.isUsingStaticRendering()&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==t||!function(r,n){if(Kk(r,n))return!0;if(typeof r!="object"||r===null||typeof n!="object"||n===null)return!1;var i=Object.keys(r),s=Object.keys(n);if(i.length!==s.length)return!1;for(var o=0;o<i.length;o++)if(!Object.hasOwnProperty.call(n,i[o])||!Kk(r[i[o]],n[i[o]]))return!1;return!0}(this.props,e)}function uM(e,t){if(t&&t.kind!=="class")throw new Error("The @observer decorator can be used on classes only");return e.isMobxInjector===!0&&console.warn("Mobx observer: You are trying to use `observer` on a component that already has `inject`. Please apply `observer` before applying `inject`"),Object.prototype.isPrototypeOf.call(Hd.Component,e)||Object.prototype.isPrototypeOf.call(Hd.PureComponent,e)?function(r){var n=r.prototype;if(r[tM]){var i=u2(r);throw new Error("The provided component class ("+i+") has already been declared as an observer component.")}if(r[tM]=!0,n.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(r.__proto__!==Hd.PureComponent)if(n.shouldComponentUpdate){if(n.shouldComponentUpdate!==rM)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else n.shouldComponentUpdate=rM;var s=n.render;if(typeof s!="function"){var o=u2(r);throw new Error("[mobx-react] class component ("+o+") is missing `render` method.\n`observer` requires `render` being a function defined on prototype.\n`render = () => {}` or `render = function() {}` is not supported.")}n.render=function(){return Object.defineProperty(this,"render",{configurable:!1,writable:!1,value:Gr.isUsingStaticRendering()?s:Mie.call(this,s)}),this.render()};var a=n.componentDidMount;return n.componentDidMount=function(){var u=this,l=a2(this);return l.mounted=!0,Gr._observerFinalizationRegistry.unregister(this),l.forceUpdate=function(){return u.forceUpdate()},l.reaction&&!l.reactionInvalidatedBeforeMount||l.forceUpdate(),a?.apply(this,arguments)},aM(n,"componentWillUnmount",function(){var u;if(!Gr.isUsingStaticRendering()){var l=a2(this);(u=l.reaction)==null||u.dispose(),l.reaction=null,l.forceUpdate=null,l.mounted=!1,l.reactionInvalidatedBeforeMount=!1}}),r}(e):Gr.observer(e)}function l2(){return(l2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var jie=["children"],Wy=on.createContext({});function lM(e){var t=e.children,r=function(s,o){if(s==null)return{};var a,u,l={},c=Object.keys(s);for(u=0;u<c.length;u++)o.indexOf(a=c[u])>=0||(l[a]=s[a]);return l}(e,jie),n=on.useContext(Wy),i=on.useRef(l2({},n,r));return on.createElement(Wy.Provider,{value:i.current},t)}function nM(e,t,r,n){var i,s,o,a=on.forwardRef(function(u,l){var c=l2({},u),f=on.useContext(Wy);return Object.assign(c,e(f||{},c)||{}),l&&(c.ref=l),on.createElement(t,c)});return n&&(a=uM(a)),a.isMobxInjector=!0,i=t,s=a,o=Object.getOwnPropertyNames(Object.getPrototypeOf(i)),Object.getOwnPropertyNames(i).forEach(function(u){kie[u]||o.indexOf(u)!==-1||Object.defineProperty(s,u,Object.getOwnPropertyDescriptor(i,u))}),a.wrappedComponent=t,a.displayName=function(u,l){var c=u.displayName||u.name||u.constructor&&u.constructor.name||"Component";return l?"inject-with-"+l+"("+c+")":"inject("+c+")"}(t,r),a}function Vie(e){return function(t,r){return e.forEach(function(n){if(!(n in r)){if(!(n in t))throw new Error("MobX injector: Store '"+n+"' is not available! Make sure it is provided by some Provider");r[n]=t[n]}}),r}}lM.displayName="MobXProvider";var Uie=Number.parseInt(on.version.split(".")[0]),iM=!1,Uy=Symbol("disposeOnUnmountProto"),$y=Symbol("disposeOnUnmountInst");function $ie(){var e=this;[].concat(this[Uy]||[],this[$y]||[]).forEach(function(t){var r=typeof t=="string"?e[t]:t;r!=null&&(Array.isArray(r)?r.map(function(n){return n()}):r())})}function cM(e){function t(n,i,s,o,a,u){for(var l=arguments.length,c=new Array(l>6?l-6:0),f=6;f<l;f++)c[f-6]=arguments[f];return Hs.untracked(function(){return o=o||"<<anonymous>>",u=u||s,i[s]==null?n?new Error("The "+a+" `"+u+"` is marked as required in `"+o+"`, but its value is `"+(i[s]===null?"null":"undefined")+"`."):null:e.apply(void 0,[i,s,o,a,u].concat(c))})}var r=t.bind(null,!1);return r.isRequired=t.bind(null,!0),r}function sM(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(r,n){return r==="symbol"||n["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&n instanceof Symbol}(t,e)?"symbol":t}function Qc(e,t){return cM(function(r,n,i,s,o){return Hs.untracked(function(){if(e&&sM(r[n])===t.toLowerCase())return null;var a;switch(t){case"Array":a=Hs.isObservableArray;break;case"Object":a=Hs.isObservableObject;break;case"Map":a=Hs.isObservableMap;break;default:throw new Error("Unexpected mobxType: "+t)}var u=r[n];if(!a(u)){var l=function(f){var p=sM(f);if(p==="object"){if(f instanceof Date)return"date";if(f instanceof RegExp)return"regexp"}return p}(u),c=e?" or javascript `"+t.toLowerCase()+"`":"";return new Error("Invalid prop `"+o+"` of type `"+l+"` supplied to `"+i+"`, expected `mobx.Observable"+t+"`"+c+".")}return null})})}function oM(e,t){return cM(function(r,n,i,s,o){for(var a=arguments.length,u=new Array(a>5?a-5:0),l=5;l<a;l++)u[l-5]=arguments[l];return Hs.untracked(function(){if(typeof t!="function")return new Error("Property `"+o+"` of component `"+i+"` has invalid PropType notation.");var c=Qc(e,"Array")(r,n,i,s,o);if(c instanceof Error)return c;for(var f=r[n],p=0;p<f.length;p++)if((c=t.apply(void 0,[f,p,i,s,o+"["+p+"]"].concat(u)))instanceof Error)return c;return null})})}var Wie={observableArray:Qc(!1,"Array"),observableArrayOf:oM.bind(null,!1),observableMap:Qc(!1,"Map"),observableObject:Qc(!1,"Object"),arrayOrObservableArray:Qc(!0,"Array"),arrayOrObservableArrayOf:oM.bind(null,!0),objectOrObservableObject:Qc(!0,"Object")};if(!Hd.Component)throw new Error("mobx-react requires React to be available");if(!Hs.observable)throw new Error("mobx-react requires mobx to be available");Object.defineProperty(yr,"Observer",{enumerable:!0,get:function(){return Gr.Observer}}),Object.defineProperty(yr,"enableStaticRendering",{enumerable:!0,get:function(){return Gr.enableStaticRendering}}),Object.defineProperty(yr,"isUsingStaticRendering",{enumerable:!0,get:function(){return Gr.isUsingStaticRendering}}),Object.defineProperty(yr,"observerBatching",{enumerable:!0,get:function(){return Gr.observerBatching}}),Object.defineProperty(yr,"useAsObservableSource",{enumerable:!0,get:function(){return Gr.useAsObservableSource}}),Object.defineProperty(yr,"useLocalObservable",{enumerable:!0,get:function(){return Gr.useLocalObservable}}),Object.defineProperty(yr,"useLocalStore",{enumerable:!0,get:function(){return Gr.useLocalStore}}),Object.defineProperty(yr,"useObserver",{enumerable:!0,get:function(){return Gr.useObserver}}),Object.defineProperty(yr,"useStaticRendering",{enumerable:!0,get:function(){return Gr.useStaticRendering}}),yr.MobXProviderContext=Wy,yr.PropTypes=Wie,yr.Provider=lM,yr.disposeOnUnmount=function e(t,r){if(Array.isArray(r))return r.map(function(a){return e(t,a)});iM||(Uie>=18?console.error("[mobx-react] disposeOnUnmount is not compatible with React 18 and higher. Don't use it."):console.warn("[mobx-react] disposeOnUnmount is deprecated. It won't work correctly with React 18 and higher."),iM=!0);var n=Object.getPrototypeOf(t).constructor,i=Object.getPrototypeOf(t.constructor),s=Object.getPrototypeOf(Object.getPrototypeOf(t));if(n!==on.Component&&n!==on.PureComponent&&i!==on.Component&&i!==on.PureComponent&&s!==on.Component&&s!==on.PureComponent)throw new Error("[mobx-react] disposeOnUnmount only supports direct subclasses of React.Component or React.PureComponent.");if(typeof r!="string"&&typeof r!="function"&&!Array.isArray(r))throw new Error("[mobx-react] disposeOnUnmount only works if the parameter is either a property key or a function.");var o=!!t[Uy]||!!t[$y];return(typeof r=="string"?t[Uy]||(t[Uy]=[]):t[$y]||(t[$y]=[])).push(r),o||aM(t,"componentWillUnmount",$ie),typeof r!="string"?r:void 0},yr.inject=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(typeof arguments[0]=="function"){var n=arguments[0];return function(i){return nM(n,i,n.name,!0)}}return function(i){return nM(Vie(t),i,t.join("-"),!1)}},yr.observer=uM});var c2=N((BSe,pM)=>{"use strict";pM.exports=fM()});import{notStrictEqual as Uj,strictEqual as $j}from"assert";var yj={right:Ej,center:Sj},Dj=0,Qd=1,vj=2,em=3,rD=class{constructor(t){var r;this.width=t.width,this.wrap=(r=t.wrap)!==null&&r!==void 0?r:!0,this.rows=[]}span(...t){let r=this.div(...t);r.span=!0}resetOutput(){this.rows=[]}div(...t){if(t.length===0&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...t)&&typeof t[0]=="string")return this.applyLayoutDSL(t[0]);let r=t.map(n=>typeof n=="string"?this.colFromString(n):n);return this.rows.push(r),r}shouldApplyLayoutDSL(...t){return t.length===1&&typeof t[0]=="string"&&/[\t\n]/.test(t[0])}applyLayoutDSL(t){let r=t.split(`
|
|
426
426
|
`).map(i=>i.split(" ")),n=0;return r.forEach(i=>{i.length>1&&an.stringWidth(i[0])>n&&(n=Math.min(Math.floor(this.width*.5),an.stringWidth(i[0])))}),r.forEach(i=>{this.div(...i.map((s,o)=>({text:s.trim(),padding:this.measurePadding(s),width:o===0&&i.length>1?n:void 0})))}),this.rows[this.rows.length-1]}colFromString(t){return{text:t,padding:this.measurePadding(t)}}measurePadding(t){let r=an.stripAnsi(t);return[0,r.match(/\s*$/)[0].length,0,r.match(/^\s*/)[0].length]}toString(){let t=[];return this.rows.forEach(r=>{this.rowToString(r,t)}),t.filter(r=>!r.hidden).map(r=>r.text).join(`
|
|
427
427
|
`)}rowToString(t,r){return this.rasterize(t).forEach((n,i)=>{let s="";n.forEach((o,a)=>{let{width:u}=t[a],l=this.negatePadding(t[a]),c=o;if(l>an.stringWidth(o)&&(c+=" ".repeat(l-an.stringWidth(o))),t[a].align&&t[a].align!=="left"&&this.wrap){let p=yj[t[a].align];c=p(c,l),an.stringWidth(c)<l&&(c+=" ".repeat((u||0)-an.stringWidth(c)-1))}let f=t[a].padding||[0,0,0,0];f[em]&&(s+=" ".repeat(f[em])),s+=O2(t[a],c,"| "),s+=c,s+=O2(t[a],c," |"),f[Qd]&&(s+=" ".repeat(f[Qd])),i===0&&r.length>0&&(s=this.renderInline(s,r[r.length-1]))}),r.push({text:s.replace(/ +$/,""),span:t.span})}),r}renderInline(t,r){let n=t.match(/^ */),i=n?n[0].length:0,s=r.text,o=an.stringWidth(s.trimRight());return r.span?this.wrap?i<o?t:(r.hidden=!0,s.trimRight()+" ".repeat(i-o)+t.trimLeft()):(r.hidden=!0,s+t):t}rasterize(t){let r=[],n=this.columnWidths(t),i;return t.forEach((s,o)=>{s.width=n[o],this.wrap?i=an.wrap(s.text,this.negatePadding(s),{hard:!0}).split(`
|
|
428
428
|
`):i=s.text.split(`
|
|
429
429
|
`),s.border&&(i.unshift("."+"-".repeat(this.negatePadding(s)+2)+"."),i.push("'"+"-".repeat(this.negatePadding(s)+2)+"'")),s.padding&&(i.unshift(...new Array(s.padding[Dj]||0).fill("")),i.push(...new Array(s.padding[vj]||0).fill(""))),i.forEach((a,u)=>{r[u]||r.push([]);let l=r[u];for(let c=0;c<o;c++)l[c]===void 0&&l.push("");l.push(a)})}),r}negatePadding(t){let r=t.width||0;return t.padding&&(r-=(t.padding[em]||0)+(t.padding[Qd]||0)),t.border&&(r-=4),r}columnWidths(t){if(!this.wrap)return t.map(o=>o.width||an.stringWidth(o.text));let r=t.length,n=this.width,i=t.map(o=>{if(o.width)return r--,n-=o.width,o.width}),s=r?Math.floor(n/r):0;return i.map((o,a)=>o===void 0?Math.max(s,wj(t[a])):o)}};function O2(e,t,r){return e.border?/[.']-+[.']/.test(t)?"":t.trim().length!==0?r:" ":""}function wj(e){let t=e.padding||[],r=1+(t[em]||0)+(t[Qd]||0);return e.border?r+4:r}function Cj(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}function Ej(e,t){e=e.trim();let r=an.stringWidth(e);return r<t?" ".repeat(t-r)+e:e}function Sj(e,t){e=e.trim();let r=an.stringWidth(e);return r>=t?e:" ".repeat(t-r>>1)+e}var an;function F2(e,t){return an=t,new rD({width:e?.width||Cj(),wrap:e?.wrap})}var A2=new RegExp("\x1B(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function nD(e){return e.replace(A2,"")}function I2(e,t){let[r,n]=e.match(A2)||["",""];e=nD(e);let i="";for(let s=0;s<e.length;s++)s!==0&&s%t===0&&(i+=`
|
|
430
|
-
`),i+=e.charAt(s);return r&&n&&(i=`${r}${i}${n}`),i}function iD(e){return F2(e,{stringWidth:t=>[...t].length,stripAnsi:nD,wrap:I2})}import{dirname as T2,resolve as P2}from"path";import{readdirSync as xj,statSync as _j}from"fs";function L2(e,t){let r=P2(".",e),n;for(_j(r).isDirectory()||(r=T2(r));;){if(n=t(r,xj(r)),n)return P2(r,n);if(r=T2(n=r),n===r)break}}import{inspect as Wj}from"util";import{readFileSync as Gj}from"fs";import{fileURLToPath as qj}from"url";import{format as Fj}from"util";import{normalize as Aj,resolve as Ij}from"path";function ba(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),e.indexOf("-")===-1&&e.indexOf("_")===-1)return e;{let r="",n=!1,i=e.match(/^-+/);for(let s=i?i[0].length:0;s<e.length;s++){let o=e.charAt(s);n&&(n=!1,o=o.toUpperCase()),s!==0&&(o==="-"||o==="_")?n=!0:o!=="-"&&o!=="_"&&(r+=o)}return r}}function tm(e,t){let r=e.toLowerCase();t=t||"-";let n="";for(let i=0;i<e.length;i++){let s=r.charAt(i),o=e.charAt(i);s!==o&&i>0?n+=`${t}${r.charAt(i)}`:n+=o}return n}function rm(e){return e==null?!1:typeof e=="number"||/^0x[0-9a-f]+$/i.test(e)?!0:/^0[^.]/.test(e)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function N2(e){if(Array.isArray(e))return e.map(o=>typeof o!="string"?o+"":o);e=e.trim();let t=0,r=null,n=null,i=null,s=[];for(let o=0;o<e.length;o++){if(r=n,n=e.charAt(o),n===" "&&!i){r!==" "&&t++;continue}n===i?i=null:(n==="'"||n==='"')&&!i&&(i=n),s[t]||(s[t]=""),s[t]+=n}return s}var An;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(An||(An={}));var fs,nm=class{constructor(t){fs=t}parse(t,r){let n=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},r),i=N2(t),s=typeof t=="string",o=bj(Object.assign(Object.create(null),n.alias)),a=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),u=Object.assign(Object.create(null),n.default),l=n.configObjects||[],c=n.envPrefix,f=a["populate--"],p=f?"--":"_",d=Object.create(null),m=Object.create(null),y=n.__||fs.format,D={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},h=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,g=new RegExp("^--"+a["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(O){let P=typeof O=="object"?O.key:O,X=Object.keys(O).map(function(U){return{boolean:"bools",string:"strings",number:"numbers"}[U]}).filter(Boolean).pop();X&&(D[X][P]=!0),D.arrays[P]=!0,D.keys.push(P)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(O){D.bools[O]=!0,D.keys.push(O)}),[].concat(n.string||[]).filter(Boolean).forEach(function(O){D.strings[O]=!0,D.keys.push(O)}),[].concat(n.number||[]).filter(Boolean).forEach(function(O){D.numbers[O]=!0,D.keys.push(O)}),[].concat(n.count||[]).filter(Boolean).forEach(function(O){D.counts[O]=!0,D.keys.push(O)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(O){D.normalize[O]=!0,D.keys.push(O)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([O,P])=>{typeof P=="number"&&(D.nargs[O]=P,D.keys.push(O))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([O,P])=>{typeof P=="function"&&(D.coercions[O]=P,D.keys.push(O))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(O){D.configs[O]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([O,P])=>{(typeof P=="boolean"||typeof P=="function")&&(D.configs[O]=P)})),ur(n.key,o,n.default,D.arrays),Object.keys(u).forEach(function(O){(D.aliases[O]||[]).forEach(function(P){u[P]=u[O]})});let v=null;it();let w=[],E=Object.assign(Object.create(null),{_:[]}),I={};for(let O=0;O<i.length;O++){let P=i[O],X=P.replace(/^-{3,}/,"---"),U,L,ye,le,Se,Zt;if(P!=="--"&&/^-/.test(P)&&x(P))A(P);else if(X.match(/^---+(=|$)/)){A(P);continue}else if(P.match(/^--.+=/)||!a["short-option-groups"]&&P.match(/^-.+=/))le=P.match(/^--?([^=]+)=([\s\S]*)$/),le!==null&&Array.isArray(le)&&le.length>=3&&(Fe(le[1],D.arrays)?O=b(O,le[1],i,le[2]):Fe(le[1],D.nargs)!==!1?O=W(O,le[1],i,le[2]):T(le[1],le[2],!0));else if(P.match(g)&&a["boolean-negation"])le=P.match(g),le!==null&&Array.isArray(le)&&le.length>=2&&(L=le[1],T(L,Fe(L,D.arrays)?[!1]:!1));else if(P.match(/^--.+/)||!a["short-option-groups"]&&P.match(/^-[^-]+/))le=P.match(/^--?(.+)/),le!==null&&Array.isArray(le)&&le.length>=2&&(L=le[1],Fe(L,D.arrays)?O=b(O,L,i):Fe(L,D.nargs)!==!1?O=W(O,L,i):(Se=i[O+1],Se!==void 0&&(!Se.match(/^-/)||Se.match(h))&&!Fe(L,D.bools)&&!Fe(L,D.counts)||/^(true|false)$/.test(Se)?(T(L,Se),O++):T(L,K(L))));else if(P.match(/^-.\..+=/))le=P.match(/^-([^=]+)=([\s\S]*)$/),le!==null&&Array.isArray(le)&&le.length>=3&&T(le[1],le[2]);else if(P.match(/^-.\..+/)&&!P.match(h))Se=i[O+1],le=P.match(/^-(.\..+)/),le!==null&&Array.isArray(le)&&le.length>=2&&(L=le[1],Se!==void 0&&!Se.match(/^-/)&&!Fe(L,D.bools)&&!Fe(L,D.counts)?(T(L,Se),O++):T(L,K(L)));else if(P.match(/^-[^-]+/)&&!P.match(h)){ye=P.slice(1,-1).split(""),U=!1;for(let Tr=0;Tr<ye.length;Tr++){if(Se=P.slice(Tr+2),ye[Tr+1]&&ye[Tr+1]==="="){Zt=P.slice(Tr+3),L=ye[Tr],Fe(L,D.arrays)?O=b(O,L,i,Zt):Fe(L,D.nargs)!==!1?O=W(O,L,i,Zt):T(L,Zt),U=!0;break}if(Se==="-"){T(ye[Tr],Se);continue}if(/[A-Za-z]/.test(ye[Tr])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(Se)&&Fe(Se,D.bools)===!1){T(ye[Tr],Se),U=!0;break}if(ye[Tr+1]&&ye[Tr+1].match(/\W/)){T(ye[Tr],Se),U=!0;break}else T(ye[Tr],K(ye[Tr]))}L=P.slice(-1)[0],!U&&L!=="-"&&(Fe(L,D.arrays)?O=b(O,L,i):Fe(L,D.nargs)!==!1?O=W(O,L,i):(Se=i[O+1],Se!==void 0&&(!/^(-|--)[^-]/.test(Se)||Se.match(h))&&!Fe(L,D.bools)&&!Fe(L,D.counts)||/^(true|false)$/.test(Se)?(T(L,Se),O++):T(L,K(L))))}else if(P.match(/^-[0-9]$/)&&P.match(h)&&Fe(P.slice(1),D.bools))L=P.slice(1),T(L,K(L));else if(P==="--"){w=i.slice(O+1);break}else if(a["halt-at-non-option"]){w=i.slice(O);break}else A(P)}G(E,!0),G(E,!1),q(E),ee(),Ce(E,D.aliases,u,!0),re(E),a["set-placeholder-key"]&&ne(E),Object.keys(D.counts).forEach(function(O){Ue(E,O.split("."))||T(O,0)}),f&&w.length&&(E[p]=[]),w.forEach(function(O){E[p].push(O)}),a["camel-case-expansion"]&&a["strip-dashed"]&&Object.keys(E).filter(O=>O!=="--"&&O.includes("-")).forEach(O=>{delete E[O]}),a["strip-aliased"]&&[].concat(...Object.keys(o).map(O=>o[O])).forEach(O=>{a["camel-case-expansion"]&&O.includes("-")&&delete E[O.split(".").map(P=>ba(P)).join(".")],delete E[O]});function A(O){let P=R("_",O);(typeof P=="string"||typeof P=="number")&&E._.push(P)}function W(O,P,X,U){let L,ye=Fe(P,D.nargs);if(ye=typeof ye!="number"||isNaN(ye)?1:ye,ye===0)return $e(U)||(v=Error(y("Argument unexpected for: %s",P))),T(P,K(P)),O;let le=$e(U)?0:1;if(a["nargs-eats-options"])X.length-(O+1)+le<ye&&(v=Error(y("Not enough arguments following: %s",P))),le=ye;else{for(L=O+1;L<X.length&&(!X[L].match(/^-[^0-9]/)||X[L].match(h)||x(X[L]));L++)le++;le<ye&&(v=Error(y("Not enough arguments following: %s",P)))}let Se=Math.min(le,ye);for(!$e(U)&&Se>0&&(T(P,U),Se--),L=O+1;L<Se+O+1;L++)T(P,X[L]);return O+Se}function b(O,P,X,U){let L=[],ye=U||X[O+1],le=Fe(P,D.nargs);if(Fe(P,D.bools)&&!/^(true|false)$/.test(ye))L.push(!0);else if($e(ye)||$e(U)&&/^-/.test(ye)&&!h.test(ye)&&!x(ye)){if(u[P]!==void 0){let Se=u[P];L=Array.isArray(Se)?Se:[Se]}}else{$e(U)||L.push(k(P,U,!0));for(let Se=O+1;Se<X.length&&!(!a["greedy-arrays"]&&L.length>0||le&&typeof le=="number"&&L.length>=le||(ye=X[Se],/^-/.test(ye)&&!h.test(ye)&&!x(ye)));Se++)O=Se,L.push(k(P,ye,s))}return typeof le=="number"&&(le&&L.length<le||isNaN(le)&&L.length===0)&&(v=Error(y("Not enough arguments following: %s",P))),T(P,L),O}function T(O,P,X=s){if(/-/.test(O)&&a["camel-case-expansion"]){let ye=O.split(".").map(function(le){return ba(le)}).join(".");F(O,ye)}let U=k(O,P,X),L=O.split(".");gt(E,L,U),D.aliases[O]&&D.aliases[O].forEach(function(ye){let le=ye.split(".");gt(E,le,U)}),L.length>1&&a["dot-notation"]&&(D.aliases[L[0]]||[]).forEach(function(ye){let le=ye.split("."),Se=[].concat(L);Se.shift(),le=le.concat(Se),(D.aliases[O]||[]).includes(le.join("."))||gt(E,le,U)}),Fe(O,D.normalize)&&!Fe(O,D.arrays)&&[O].concat(D.aliases[O]||[]).forEach(function(le){Object.defineProperty(I,le,{enumerable:!0,get(){return P},set(Se){P=typeof Se=="string"?fs.normalize(Se):Se}})})}function F(O,P){D.aliases[O]&&D.aliases[O].length||(D.aliases[O]=[P],d[P]=!0),D.aliases[P]&&D.aliases[P].length||F(P,O)}function k(O,P,X){X&&(P=Oj(P)),(Fe(O,D.bools)||Fe(O,D.counts))&&typeof P=="string"&&(P=P==="true");let U=Array.isArray(P)?P.map(function(L){return R(O,L)}):R(O,P);return Fe(O,D.counts)&&($e(U)||typeof U=="boolean")&&(U=sD()),Fe(O,D.normalize)&&Fe(O,D.arrays)&&(Array.isArray(P)?U=P.map(L=>fs.normalize(L)):U=fs.normalize(P)),U}function R(O,P){return!a["parse-positional-numbers"]&&O==="_"||!Fe(O,D.strings)&&!Fe(O,D.bools)&&!Array.isArray(P)&&(rm(P)&&a["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${P}`)))||!$e(P)&&Fe(O,D.numbers))&&(P=Number(P)),P}function q(O){let P=Object.create(null);Ce(P,D.aliases,u),Object.keys(D.configs).forEach(function(X){let U=O[X]||P[X];if(U)try{let L=null,ye=fs.resolve(fs.cwd(),U),le=D.configs[X];if(typeof le=="function"){try{L=le(ye)}catch(Se){L=Se}if(L instanceof Error){v=L;return}}else L=fs.require(ye);M(L)}catch(L){L.name==="PermissionDenied"?v=L:O[X]&&(v=Error(y("Invalid JSON config file: %s",U)))}})}function M(O,P){Object.keys(O).forEach(function(X){let U=O[X],L=P?P+"."+X:X;typeof U=="object"&&U!==null&&!Array.isArray(U)&&a["dot-notation"]?M(U,L):(!Ue(E,L.split("."))||Fe(L,D.arrays)&&a["combine-arrays"])&&T(L,U)})}function ee(){typeof l<"u"&&l.forEach(function(O){M(O)})}function G(O,P){if(typeof c>"u")return;let X=typeof c=="string"?c:"",U=fs.env();Object.keys(U).forEach(function(L){if(X===""||L.lastIndexOf(X,0)===0){let ye=L.split("__").map(function(le,Se){return Se===0&&(le=le.substring(X.length)),ba(le)});(P&&D.configs[ye.join(".")]||!P)&&!Ue(O,ye)&&T(ye.join("."),U[L])}})}function re(O){let P,X=new Set;Object.keys(O).forEach(function(U){if(!X.has(U)&&(P=Fe(U,D.coercions),typeof P=="function"))try{let L=R(U,P(O[U]));[].concat(D.aliases[U]||[],U).forEach(ye=>{X.add(ye),O[ye]=L})}catch(L){v=L}})}function ne(O){return D.keys.forEach(P=>{~P.indexOf(".")||typeof O[P]>"u"&&(O[P]=void 0)}),O}function Ce(O,P,X,U=!1){Object.keys(X).forEach(function(L){Ue(O,L.split("."))||(gt(O,L.split("."),X[L]),U&&(m[L]=!0),(P[L]||[]).forEach(function(ye){Ue(O,ye.split("."))||gt(O,ye.split("."),X[L])}))})}function Ue(O,P){let X=O;a["dot-notation"]||(P=[P.join(".")]),P.slice(0,-1).forEach(function(L){X=X[L]||{}});let U=P[P.length-1];return typeof X!="object"?!1:U in X}function gt(O,P,X){let U=O;a["dot-notation"]||(P=[P.join(".")]),P.slice(0,-1).forEach(function(Zt){Zt=R2(Zt),typeof U=="object"&&U[Zt]===void 0&&(U[Zt]={}),typeof U[Zt]!="object"||Array.isArray(U[Zt])?(Array.isArray(U[Zt])?U[Zt].push({}):U[Zt]=[U[Zt],{}],U=U[Zt][U[Zt].length-1]):U=U[Zt]});let L=R2(P[P.length-1]),ye=Fe(P.join("."),D.arrays),le=Array.isArray(X),Se=a["duplicate-arguments-array"];!Se&&Fe(L,D.nargs)&&(Se=!0,(!$e(U[L])&&D.nargs[L]===1||Array.isArray(U[L])&&U[L].length===D.nargs[L])&&(U[L]=void 0)),X===sD()?U[L]=sD(U[L]):Array.isArray(U[L])?Se&&ye&&le?U[L]=a["flatten-duplicate-arrays"]?U[L].concat(X):(Array.isArray(U[L][0])?U[L]:[U[L]]).concat([X]):!Se&&!!ye==!!le?U[L]=X:U[L]=U[L].concat([X]):U[L]===void 0&&ye?U[L]=le?X:[X]:Se&&!(U[L]===void 0||Fe(L,D.counts)||Fe(L,D.bools))?U[L]=[U[L],X]:U[L]=X}function ur(...O){O.forEach(function(P){Object.keys(P||{}).forEach(function(X){D.aliases[X]||(D.aliases[X]=[].concat(o[X]||[]),D.aliases[X].concat(X).forEach(function(U){if(/-/.test(U)&&a["camel-case-expansion"]){let L=ba(U);L!==X&&D.aliases[X].indexOf(L)===-1&&(D.aliases[X].push(L),d[L]=!0)}}),D.aliases[X].concat(X).forEach(function(U){if(U.length>1&&/[A-Z]/.test(U)&&a["camel-case-expansion"]){let L=tm(U,"-");L!==X&&D.aliases[X].indexOf(L)===-1&&(D.aliases[X].push(L),d[L]=!0)}}),D.aliases[X].forEach(function(U){D.aliases[U]=[X].concat(D.aliases[X].filter(function(L){return U!==L}))}))})})}function Fe(O,P){let X=[].concat(D.aliases[O]||[],O),U=Object.keys(P),L=X.find(ye=>U.includes(ye));return L?P[L]:!1}function tf(O){let P=Object.keys(D);return[].concat(P.map(U=>D[U])).some(function(U){return Array.isArray(U)?U.includes(O):U[O]})}function S(O,...P){return[].concat(...P).some(function(U){let L=O.match(U);return L&&tf(L[1])})}function _(O){if(O.match(h)||!O.match(/^-[^-]+/))return!1;let P=!0,X,U=O.slice(1).split("");for(let L=0;L<U.length;L++){if(X=O.slice(L+2),!tf(U[L])){P=!1;break}if(U[L+1]&&U[L+1]==="="||X==="-"||/[A-Za-z]/.test(U[L])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(X)||U[L+1]&&U[L+1].match(/\W/))break}return P}function x(O){return a["unknown-options-as-args"]&&B(O)}function B(O){return O=O.replace(/^-{3,}/,"--"),O.match(h)||_(O)?!1:!S(O,/^-+([^=]+?)=[\s\S]*$/,g,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function K(O){return!Fe(O,D.bools)&&!Fe(O,D.counts)&&`${O}`in u?u[O]:H(Be(O))}function H(O){return{[An.BOOLEAN]:!0,[An.STRING]:"",[An.NUMBER]:void 0,[An.ARRAY]:[]}[O]}function Be(O){let P=An.BOOLEAN;return Fe(O,D.strings)?P=An.STRING:Fe(O,D.numbers)?P=An.NUMBER:Fe(O,D.bools)?P=An.BOOLEAN:Fe(O,D.arrays)&&(P=An.ARRAY),P}function $e(O){return O===void 0}function it(){Object.keys(D.counts).find(O=>Fe(O,D.arrays)?(v=Error(y("Invalid configuration: %s, opts.count excludes opts.array.",O)),!0):Fe(O,D.nargs)?(v=Error(y("Invalid configuration: %s, opts.count excludes opts.narg.",O)),!0):!1)}return{aliases:Object.assign({},D.aliases),argv:Object.assign(I,E),configuration:a,defaulted:Object.assign({},m),error:v,newAliases:Object.assign({},d)}}};function bj(e){let t=[],r=Object.create(null),n=!0;for(Object.keys(e).forEach(function(i){t.push([].concat(e[i],i))});n;){n=!1;for(let i=0;i<t.length;i++)for(let s=i+1;s<t.length;s++)if(t[i].filter(function(a){return t[s].indexOf(a)!==-1}).length){t[i]=t[i].concat(t[s]),t.splice(s,1),n=!0;break}}return t.forEach(function(i){i=i.filter(function(o,a,u){return u.indexOf(o)===a});let s=i.pop();s!==void 0&&typeof s=="string"&&(r[s]=i)}),r}function sD(e){return e!==void 0?e+1:1}function R2(e){return e==="__proto__"?"___proto___":e}function Oj(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}import{readFileSync as Tj}from"fs";var oD,aD,uD,B2=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,k2=(aD=(oD=process==null?void 0:process.versions)===null||oD===void 0?void 0:oD.node)!==null&&aD!==void 0?aD:(uD=process==null?void 0:process.version)===null||uD===void 0?void 0:uD.slice(1);if(k2&&Number(k2.match(/^([^.]+)/)[1])<B2)throw Error(`yargs parser supports a minimum Node.js version of ${B2}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var Pj=process?process.env:{},M2=new nm({cwd:process.cwd,env:()=>Pj,format:Fj,normalize:Aj,resolve:Ij,require:e=>{if(typeof V<"u")return V(e);if(e.match(/\.json$/))return JSON.parse(Tj(e,"utf8"));throw Error("only .json config files are supported in ESM")}}),nf=function(t,r){return M2.parse(t.slice(),r).argv};nf.detailed=function(e,t){return M2.parse(e.slice(),t)};nf.camelCase=ba;nf.decamelize=tm;nf.looksLikeNumber=rm;var lD=nf;import{basename as zj,dirname as Hj,extname as Yj,relative as Kj,resolve as G2}from"path";function j2(){return Lj()?0:1}function Lj(){return Nj()&&!process.defaultApp}function Nj(){return!!process.versions.electron}function cD(e){return e.slice(j2()+1)}function V2(){return process.argv[j2()]}var ct=class e extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,e)}};import{readFileSync as Rj,statSync as Bj,writeFile as kj}from"fs";import{format as Mj}from"util";import{resolve as jj}from"path";var U2={fs:{readFileSync:Rj,writeFile:kj},format:Mj,resolve:jj,exists:e=>{try{return Bj(e).isFile()}catch{return!1}}};var li,fD=class{constructor(t){t=t||{},this.directory=t.directory||"./locales",this.updateFiles=typeof t.updateFiles=="boolean"?t.updateFiles:!0,this.locale=t.locale||"en",this.fallbackToLanguage=typeof t.fallbackToLanguage=="boolean"?t.fallbackToLanguage:!0,this.cache=Object.create(null),this.writeQueue=[]}__(...t){if(typeof arguments[0]!="string")return this._taggedLiteral(arguments[0],...arguments);let r=t.shift(),n=function(){};return typeof t[t.length-1]=="function"&&(n=t.pop()),n=n||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]=r,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:n})):n(),li.format.apply(li.format,[this.cache[this.locale][r]||r].concat(t))}__n(){let t=Array.prototype.slice.call(arguments),r=t.shift(),n=t.shift(),i=t.shift(),s=function(){};typeof t[t.length-1]=="function"&&(s=t.pop()),this.cache[this.locale]||this._readLocaleFile();let o=i===1?r:n;this.cache[this.locale][r]&&(o=this.cache[this.locale][r][i===1?"one":"other"]),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]={one:r,other:n},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:s})):s();let a=[o];return~o.indexOf("%d")&&a.push(i),li.format.apply(li.format,a.concat(t))}setLocale(t){this.locale=t}getLocale(){return this.locale}updateLocale(t){this.cache[this.locale]||this._readLocaleFile();for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(this.cache[this.locale][r]=t[r])}_taggedLiteral(t,...r){let n="";return t.forEach(function(i,s){let o=r[s+1];n+=i,typeof o<"u"&&(n+="%s")}),this.__.apply(this,[n].concat([].slice.call(r,1)))}_enqueueWrite(t){this.writeQueue.push(t),this.writeQueue.length===1&&this._processWriteQueue()}_processWriteQueue(){let t=this,r=this.writeQueue[0],n=r.directory,i=r.locale,s=r.cb,o=this._resolveLocaleFile(n,i),a=JSON.stringify(this.cache[i],null,2);li.fs.writeFile(o,a,"utf-8",function(u){t.writeQueue.shift(),t.writeQueue.length>0&&t._processWriteQueue(),s(u)})}_readLocaleFile(){let t={},r=this._resolveLocaleFile(this.directory,this.locale);try{li.fs.readFileSync&&(t=JSON.parse(li.fs.readFileSync(r,"utf-8")))}catch(n){if(n instanceof SyntaxError&&(n.message="syntax error in "+r),n.code==="ENOENT")t={};else throw n}this.cache[this.locale]=t}_resolveLocaleFile(t,r){let n=li.resolve(t,"./",r+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~r.lastIndexOf("_")){let i=li.resolve(t,"./",r.split("_")[0]+".json");this._fileExistsSync(i)&&(n=i)}return n}_fileExistsSync(t){return li.exists(t)}};function $2(e,t){li=t;let r=new fD(e);return{__:r.__.bind(r),__n:r.__n.bind(r),setLocale:r.setLocale.bind(r),getLocale:r.getLocale.bind(r),updateLocale:r.updateLocale.bind(r),locale:r.locale}}var Vj=e=>$2(e,U2),W2=Vj;var Xj="require is not supported by ESM",q2="loading a directory of commands is not supported yet for ESM",sf;try{sf=qj(import.meta.url)}catch{sf=process.cwd()}var Jj=sf.substring(0,sf.lastIndexOf("node_modules")),pD={assert:{notStrictEqual:Uj,strictEqual:$j},cliui:iD,findUp:L2,getEnv:e=>process.env[e],inspect:Wj,getCallerFile:()=>{throw new ct(q2)},getProcessArgvBin:V2,mainFilename:Jj||process.cwd(),Parser:lD,path:{basename:zj,dirname:Hj,extname:Yj,relative:Kj,resolve:G2},process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(e,t)=>process.emitWarning(e,t),execPath:()=>process.execPath,exit:process.exit,nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<"u"?process.stdout.columns:null},readFileSync:Gj,require:()=>{throw new ct(Xj)},requireDirectory:()=>{throw new ct(q2)},stringWidth:e=>[...e].length,y18n:W2({directory:G2(sf,"../../../locales"),updateFiles:!1})};function Pr(e,t,r,n){r.assert.notStrictEqual(e,t,n)}function dD(e,t){t.assert.strictEqual(typeof e,"string")}function sl(e){return Object.keys(e)}function ft(e){return!!e&&!!e.then&&typeof e.then=="function"}function Js(e){let r=e.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),n=/\.*[\][<>]/g,i=r.shift();if(!i)throw new Error(`No command found in: ${e}`);let s={cmd:i.replace(n,""),demanded:[],optional:[]};return r.forEach((o,a)=>{let u=!1;o=o.replace(/\s/g,""),/\.+[\]>]/.test(o)&&a===r.length-1&&(u=!0),/^\[/.test(o)?s.optional.push({cmd:o.replace(n,"").split("|"),variadic:u}):s.demanded.push({cmd:o.replace(n,"").split("|"),variadic:u})}),s}var Zj=["first","second","third","fourth","fifth","sixth"];function me(e,t,r){function n(){return typeof e=="object"?[{demanded:[],optional:[]},e,t]:[Js(`cmd ${e}`),t,r]}try{let i=0,[s,o,a]=n(),u=[].slice.call(o);for(;u.length&&u[u.length-1]===void 0;)u.pop();let l=a||u.length;if(l<s.demanded.length)throw new ct(`Not enough arguments provided. Expected ${s.demanded.length} but received ${u.length}.`);let c=s.demanded.length+s.optional.length;if(l>c)throw new ct(`Too many arguments provided. Expected max ${c} but received ${l}.`);s.demanded.forEach(f=>{let p=u.shift(),d=z2(p);f.cmd.filter(y=>y===d||y==="*").length===0&&H2(d,f.cmd,i),i+=1}),s.optional.forEach(f=>{if(u.length===0)return;let p=u.shift(),d=z2(p);f.cmd.filter(y=>y===d||y==="*").length===0&&H2(d,f.cmd,i),i+=1})}catch(i){console.warn(i.stack)}}function z2(e){return Array.isArray(e)?"array":e===null?"null":typeof e}function H2(e,t,r){throw new ct(`Invalid ${Zj[r]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}var im=class{constructor(t){this.globalMiddleware=[],this.frozens=[],this.yargs=t}addMiddleware(t,r,n=!0,i=!1){if(me("<array|function> [boolean] [boolean] [boolean]",[t,r,n],arguments.length),Array.isArray(t)){for(let s=0;s<t.length;s++){if(typeof t[s]!="function")throw Error("middleware must be a function");let o=t[s];o.applyBeforeValidation=r,o.global=n}Array.prototype.push.apply(this.globalMiddleware,t)}else if(typeof t=="function"){let s=t;s.applyBeforeValidation=r,s.global=n,s.mutates=i,this.globalMiddleware.push(t)}return this.yargs}addCoerceMiddleware(t,r){let n=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter(i=>{let s=[...n[r]||[],r];return i.option?!s.includes(i.option):!0}),t.option=r,this.addMiddleware(t,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){let t=this.frozens.pop();t!==void 0&&(this.globalMiddleware=t)}reset(){this.globalMiddleware=this.globalMiddleware.filter(t=>t.global)}};function Y2(e){return e?e.map(t=>(t.applyBeforeValidation=!1,t)):[]}function Oa(e,t,r,n){return r.reduce((i,s)=>{if(s.applyBeforeValidation!==n)return i;if(s.mutates){if(s.applied)return i;s.applied=!0}if(ft(i))return i.then(o=>Promise.all([o,s(o,t)])).then(([o,a])=>Object.assign(o,a));{let o=s(i,t);return ft(o)?o.then(a=>Object.assign(i,a)):Object.assign(i,o)}},e)}function Fa(e,t,r=n=>{throw n}){try{let n=Qj(e)?e():e;return ft(n)?n.then(i=>t(i)):t(n)}catch(n){return r(n)}}function Qj(e){return typeof e=="function"}function mD(e){if(typeof V>"u")return null;for(let t=0,r=Object.keys(V.cache),n;t<r.length;t++)if(n=V.cache[r[t]],n.exports===e)return n;return null}var ol=/(^\*)|(^\$0)/,hD=class{constructor(t,r,n,i){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=i,this.usage=t,this.globalMiddleware=n,this.validation=r}addDirectory(t,r,n,i){i=i||{},typeof i.recurse!="boolean"&&(i.recurse=!1),Array.isArray(i.extensions)||(i.extensions=["js"]);let s=typeof i.visit=="function"?i.visit:o=>o;i.visit=(o,a,u)=>{let l=s(o,a,u);if(l){if(this.requireCache.has(a))return l;this.requireCache.add(a),this.addHandler(l)}return l},this.shim.requireDirectory({require:r,filename:n},t,i)}addHandler(t,r,n,i,s,o){let a=[],u=Y2(s);if(i=i||(()=>{}),Array.isArray(t))if(eV(t))[t,...a]=t;else for(let l of t)this.addHandler(l);else if(rV(t)){let l=Array.isArray(t.command)||typeof t.command=="string"?t.command:this.moduleName(t);t.aliases&&(l=[].concat(l).concat(t.aliases)),this.addHandler(l,this.extractDesc(t),t.builder,t.handler,t.middlewares,t.deprecated);return}else if(K2(n)){this.addHandler([t].concat(a),r,n.builder,n.handler,n.middlewares,n.deprecated);return}if(typeof t=="string"){let l=Js(t);a=a.map(p=>Js(p).cmd);let c=!1,f=[l.cmd].concat(a).filter(p=>ol.test(p)?(c=!0,!1):!0);f.length===0&&c&&f.push("$0"),c&&(l.cmd=f[0],a=f.slice(1),t=t.replace(ol,l.cmd)),a.forEach(p=>{this.aliasMap[p]=l.cmd}),r!==!1&&this.usage.command(t,r,c,a,o),this.handlers[l.cmd]={original:t,description:r,handler:i,builder:n||{},middlewares:u,deprecated:o,demanded:l.demanded,optional:l.optional},c&&(this.defaultCommand=this.handlers[l.cmd])}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return!!this.defaultCommand}runCommand(t,r,n,i,s,o){let a=this.handlers[t]||this.handlers[this.aliasMap[t]]||this.defaultCommand,u=r.getInternalMethods().getContext(),l=u.commands.slice(),c=!t;t&&(u.commands.push(t),u.fullCommands.push(a.original));let f=this.applyBuilderUpdateUsageAndParse(c,a,r,n.aliases,l,i,s,o);return ft(f)?f.then(p=>this.applyMiddlewareAndGetResult(c,a,p.innerArgv,u,s,p.aliases,r)):this.applyMiddlewareAndGetResult(c,a,f.innerArgv,u,s,f.aliases,r)}applyBuilderUpdateUsageAndParse(t,r,n,i,s,o,a,u){let l=r.builder,c=n;if(sm(l)){n.getInternalMethods().getUsageInstance().freeze();let f=l(n.getInternalMethods().reset(i),u);if(ft(f))return f.then(p=>(c=J2(p)?p:n,this.parseAndUpdateUsage(t,r,c,s,o,a)))}else tV(l)&&(n.getInternalMethods().getUsageInstance().freeze(),c=n.getInternalMethods().reset(i),Object.keys(r.builder).forEach(f=>{c.option(f,l[f])}));return this.parseAndUpdateUsage(t,r,c,s,o,a)}parseAndUpdateUsage(t,r,n,i,s,o){t&&n.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(n)&&n.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(i,r),r.description);let a=n.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,s,o);return ft(a)?a.then(u=>({aliases:n.parsed.aliases,innerArgv:u})):{aliases:n.parsed.aliases,innerArgv:a}}shouldUpdateUsage(t){return!t.getInternalMethods().getUsageInstance().getUsageDisabled()&&t.getInternalMethods().getUsageInstance().getUsage().length===0}usageFromParentCommandsCommandHandler(t,r){let n=ol.test(r.original)?r.original.replace(ol,"").trim():r.original,i=t.filter(s=>!ol.test(s));return i.push(n),`$0 ${i.join(" ")}`}handleValidationAndGetResult(t,r,n,i,s,o,a,u){if(!o.getInternalMethods().getHasOutput()){let l=o.getInternalMethods().runValidation(s,u,o.parsed.error,t);n=Fa(n,c=>(l(c),c))}if(r.handler&&!o.getInternalMethods().getHasOutput()){o.getInternalMethods().setHasOutput();let l=!!o.getOptions().configuration["populate--"];o.getInternalMethods().postProcess(n,l,!1,!1),n=Oa(n,o,a,!1),n=Fa(n,c=>{let f=r.handler(c);return ft(f)?f.then(()=>c):c}),t||o.getInternalMethods().getUsageInstance().cacheHelpMessage(),ft(n)&&!o.getInternalMethods().hasParseCallback()&&n.catch(c=>{try{o.getInternalMethods().getUsageInstance().fail(null,c)}catch{}})}return t||(i.commands.pop(),i.fullCommands.pop()),n}applyMiddlewareAndGetResult(t,r,n,i,s,o,a){let u={};if(s)return n;a.getInternalMethods().getHasOutput()||(u=this.populatePositionals(r,n,i,a));let l=this.globalMiddleware.getMiddleware().slice(0).concat(r.middlewares),c=Oa(n,a,l,!0);return ft(c)?c.then(f=>this.handleValidationAndGetResult(t,r,f,i,o,a,l,u)):this.handleValidationAndGetResult(t,r,c,i,o,a,l,u)}populatePositionals(t,r,n,i){r._=r._.slice(n.commands.length);let s=t.demanded.slice(0),o=t.optional.slice(0),a={};for(this.validation.positionalCount(s.length,r._.length);s.length;){let u=s.shift();this.populatePositional(u,r,a)}for(;o.length;){let u=o.shift();this.populatePositional(u,r,a)}return r._=n.commands.concat(r._.map(u=>""+u)),this.postProcessPositionals(r,a,this.cmdToParseOptions(t.original),i),a}populatePositional(t,r,n){let i=t.cmd[0];t.variadic?n[i]=r._.splice(0).map(String):r._.length&&(n[i]=[String(r._.shift())])}cmdToParseOptions(t){let r={array:[],default:{},alias:{},demand:{}},n=Js(t);return n.demanded.forEach(i=>{let[s,...o]=i.cmd;i.variadic&&(r.array.push(s),r.default[s]=[]),r.alias[s]=o,r.demand[s]=!0}),n.optional.forEach(i=>{let[s,...o]=i.cmd;i.variadic&&(r.array.push(s),r.default[s]=[]),r.alias[s]=o}),r}postProcessPositionals(t,r,n,i){let s=Object.assign({},i.getOptions());s.default=Object.assign(n.default,s.default);for(let l of Object.keys(n.alias))s.alias[l]=(s.alias[l]||[]).concat(n.alias[l]);s.array=s.array.concat(n.array),s.config={};let o=[];if(Object.keys(r).forEach(l=>{r[l].map(c=>{s.configuration["unknown-options-as-args"]&&(s.key[l]=!0),o.push(`--${l}`),o.push(c)})}),!o.length)return;let a=Object.assign({},s.configuration,{"populate--":!1}),u=this.shim.Parser.detailed(o,Object.assign({},s,{configuration:a}));if(u.error)i.getInternalMethods().getUsageInstance().fail(u.error.message,u.error);else{let l=Object.keys(r);Object.keys(r).forEach(c=>{l.push(...u.aliases[c])}),Object.keys(u.argv).forEach(c=>{l.includes(c)&&(r[c]||(r[c]=u.argv[c]),!this.isInConfigs(i,c)&&!this.isDefaulted(i,c)&&Object.prototype.hasOwnProperty.call(t,c)&&Object.prototype.hasOwnProperty.call(u.argv,c)&&(Array.isArray(t[c])||Array.isArray(u.argv[c]))?t[c]=[].concat(t[c],u.argv[c]):t[c]=u.argv[c])})}}isDefaulted(t,r){let{default:n}=t.getOptions();return Object.prototype.hasOwnProperty.call(n,r)||Object.prototype.hasOwnProperty.call(n,this.shim.Parser.camelCase(r))}isInConfigs(t,r){let{configObjects:n}=t.getOptions();return n.some(i=>Object.prototype.hasOwnProperty.call(i,r))||n.some(i=>Object.prototype.hasOwnProperty.call(i,this.shim.Parser.camelCase(r)))}runDefaultBuilderOn(t){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(t)){let n=ol.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");t.getInternalMethods().getUsageInstance().usage(n,this.defaultCommand.description)}let r=this.defaultCommand.builder;if(sm(r))return r(t,!0);K2(r)||Object.keys(r).forEach(n=>{t.option(n,r[n])})}moduleName(t){let r=mD(t);if(!r)throw new Error(`No command name given for module: ${this.shim.inspect(t)}`);return this.commandFromFilename(r.filename)}commandFromFilename(t){return this.shim.path.basename(t,this.shim.path.extname(t))}extractDesc({describe:t,description:r,desc:n}){for(let i of[t,r,n]){if(typeof i=="string"||i===!1)return i;Pr(i,!0,this.shim)}return!1}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand})}unfreeze(){let t=this.frozens.pop();Pr(t,void 0,this.shim),{handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=t}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}};function X2(e,t,r,n){return new hD(e,t,r,n)}function K2(e){return typeof e=="object"&&!!e.builder&&typeof e.handler=="function"}function eV(e){return e.every(t=>typeof t=="string")}function sm(e){return typeof e=="function"}function tV(e){return typeof e=="object"}function rV(e){return typeof e=="object"&&!Array.isArray(e)}function Zs(e={},t=()=>!0){let r={};return sl(e).forEach(n=>{t(n,e[n])&&(r[n]=e[n])}),r}function Qs(e){typeof process>"u"||[process.stdout,process.stderr].forEach(t=>{let r=t;r._handle&&r.isTTY&&typeof r._handle.setBlocking=="function"&&r._handle.setBlocking(e)})}function nV(e){return typeof e=="boolean"}function Q2(e,t){let r=t.y18n.__,n={},i=[];n.failFn=function(k){i.push(k)};let s=null,o=null,a=!0;n.showHelpOnFail=function(k=!0,R){let[q,M]=typeof k=="string"?[!0,k]:[k,R];return e.getInternalMethods().isGlobalContext()&&(o=M),s=M,a=q,n};let u=!1;n.fail=function(k,R){let q=e.getInternalMethods().getLoggerInstance();if(i.length)for(let M=i.length-1;M>=0;--M){let ee=i[M];if(nV(ee)){if(R)throw R;if(k)throw Error(k)}else ee(k,R,n)}else{if(e.getExitProcess()&&Qs(!0),!u){u=!0,a&&(e.showHelp("error"),q.error()),(k||R)&&q.error(k||R);let M=s||o;M&&((k||R)&&q.error(""),q.error(M))}if(R=R||new ct(k),e.getExitProcess())return e.exit(1);if(e.getInternalMethods().hasParseCallback())return e.exit(1,R);throw R}};let l=[],c=!1;n.usage=(F,k)=>F===null?(c=!0,l=[],n):(c=!1,l.push([F,k||""]),n),n.getUsage=()=>l,n.getUsageDisabled=()=>c,n.getPositionalGroupName=()=>r("Positionals:");let f=[];n.example=(F,k)=>{f.push([F,k||""])};let p=[];n.command=function(k,R,q,M,ee=!1){q&&(p=p.map(G=>(G[2]=!1,G))),p.push([k,R||"",q,M,ee])},n.getCommands=()=>p;let d={};n.describe=function(k,R){Array.isArray(k)?k.forEach(q=>{n.describe(q,R)}):typeof k=="object"?Object.keys(k).forEach(q=>{n.describe(q,k[q])}):d[k]=R},n.getDescriptions=()=>d;let m=[];n.epilog=F=>{m.push(F)};let y=!1,D;n.wrap=F=>{y=!0,D=F},n.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(y||(D=W(),y=!0),D);let h="__yargsString__:";n.deferY18nLookup=F=>h+F,n.help=function(){if(w)return w;v();let k=e.customScriptName?e.$0:t.path.basename(e.$0),R=e.getDemandedOptions(),q=e.getDemandedCommands(),M=e.getDeprecatedOptions(),ee=e.getGroups(),G=e.getOptions(),re=[];re=re.concat(Object.keys(d)),re=re.concat(Object.keys(R)),re=re.concat(Object.keys(q)),re=re.concat(Object.keys(G.default)),re=re.filter(I),re=Object.keys(re.reduce((S,_)=>(_!=="_"&&(S[_]=!0),S),{}));let ne=n.getWrap(),Ce=t.cliui({width:ne,wrap:!!ne});if(!c){if(l.length)l.forEach(S=>{Ce.div({text:`${S[0].replace(/\$0/g,k)}`}),S[1]&&Ce.div({text:`${S[1]}`,padding:[1,0,0,0]})}),Ce.div();else if(p.length){let S=null;q._?S=`${k} <${r("command")}>
|
|
430
|
+
`),i+=e.charAt(s);return r&&n&&(i=`${r}${i}${n}`),i}function iD(e){return F2(e,{stringWidth:t=>[...t].length,stripAnsi:nD,wrap:I2})}import{dirname as T2,resolve as P2}from"path";import{readdirSync as xj,statSync as _j}from"fs";function L2(e,t){let r=P2(".",e),n;for(_j(r).isDirectory()||(r=T2(r));;){if(n=t(r,xj(r)),n)return P2(r,n);if(r=T2(n=r),n===r)break}}import{inspect as Wj}from"util";import{readFileSync as Gj}from"fs";import{fileURLToPath as qj}from"url";import{format as Fj}from"util";import{normalize as Aj,resolve as Ij}from"path";function ba(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),e.indexOf("-")===-1&&e.indexOf("_")===-1)return e;{let r="",n=!1,i=e.match(/^-+/);for(let s=i?i[0].length:0;s<e.length;s++){let o=e.charAt(s);n&&(n=!1,o=o.toUpperCase()),s!==0&&(o==="-"||o==="_")?n=!0:o!=="-"&&o!=="_"&&(r+=o)}return r}}function tm(e,t){let r=e.toLowerCase();t=t||"-";let n="";for(let i=0;i<e.length;i++){let s=r.charAt(i),o=e.charAt(i);s!==o&&i>0?n+=`${t}${r.charAt(i)}`:n+=o}return n}function rm(e){return e==null?!1:typeof e=="number"||/^0x[0-9a-f]+$/i.test(e)?!0:/^0[^.]/.test(e)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function N2(e){if(Array.isArray(e))return e.map(o=>typeof o!="string"?o+"":o);e=e.trim();let t=0,r=null,n=null,i=null,s=[];for(let o=0;o<e.length;o++){if(r=n,n=e.charAt(o),n===" "&&!i){r!==" "&&t++;continue}n===i?i=null:(n==="'"||n==='"')&&!i&&(i=n),s[t]||(s[t]=""),s[t]+=n}return s}var An;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(An||(An={}));var cs,nm=class{constructor(t){cs=t}parse(t,r){let n=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},r),i=N2(t),s=typeof t=="string",o=bj(Object.assign(Object.create(null),n.alias)),a=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),u=Object.assign(Object.create(null),n.default),l=n.configObjects||[],c=n.envPrefix,f=a["populate--"],p=f?"--":"_",d=Object.create(null),m=Object.create(null),y=n.__||cs.format,D={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},h=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,g=new RegExp("^--"+a["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(O){let P=typeof O=="object"?O.key:O,X=Object.keys(O).map(function(U){return{boolean:"bools",string:"strings",number:"numbers"}[U]}).filter(Boolean).pop();X&&(D[X][P]=!0),D.arrays[P]=!0,D.keys.push(P)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(O){D.bools[O]=!0,D.keys.push(O)}),[].concat(n.string||[]).filter(Boolean).forEach(function(O){D.strings[O]=!0,D.keys.push(O)}),[].concat(n.number||[]).filter(Boolean).forEach(function(O){D.numbers[O]=!0,D.keys.push(O)}),[].concat(n.count||[]).filter(Boolean).forEach(function(O){D.counts[O]=!0,D.keys.push(O)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(O){D.normalize[O]=!0,D.keys.push(O)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([O,P])=>{typeof P=="number"&&(D.nargs[O]=P,D.keys.push(O))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([O,P])=>{typeof P=="function"&&(D.coercions[O]=P,D.keys.push(O))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(O){D.configs[O]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([O,P])=>{(typeof P=="boolean"||typeof P=="function")&&(D.configs[O]=P)})),ur(n.key,o,n.default,D.arrays),Object.keys(u).forEach(function(O){(D.aliases[O]||[]).forEach(function(P){u[P]=u[O]})});let v=null;it();let w=[],E=Object.assign(Object.create(null),{_:[]}),I={};for(let O=0;O<i.length;O++){let P=i[O],X=P.replace(/^-{3,}/,"---"),U,L,ye,le,Se,Zt;if(P!=="--"&&/^-/.test(P)&&x(P))A(P);else if(X.match(/^---+(=|$)/)){A(P);continue}else if(P.match(/^--.+=/)||!a["short-option-groups"]&&P.match(/^-.+=/))le=P.match(/^--?([^=]+)=([\s\S]*)$/),le!==null&&Array.isArray(le)&&le.length>=3&&(Fe(le[1],D.arrays)?O=b(O,le[1],i,le[2]):Fe(le[1],D.nargs)!==!1?O=W(O,le[1],i,le[2]):T(le[1],le[2],!0));else if(P.match(g)&&a["boolean-negation"])le=P.match(g),le!==null&&Array.isArray(le)&&le.length>=2&&(L=le[1],T(L,Fe(L,D.arrays)?[!1]:!1));else if(P.match(/^--.+/)||!a["short-option-groups"]&&P.match(/^-[^-]+/))le=P.match(/^--?(.+)/),le!==null&&Array.isArray(le)&&le.length>=2&&(L=le[1],Fe(L,D.arrays)?O=b(O,L,i):Fe(L,D.nargs)!==!1?O=W(O,L,i):(Se=i[O+1],Se!==void 0&&(!Se.match(/^-/)||Se.match(h))&&!Fe(L,D.bools)&&!Fe(L,D.counts)||/^(true|false)$/.test(Se)?(T(L,Se),O++):T(L,K(L))));else if(P.match(/^-.\..+=/))le=P.match(/^-([^=]+)=([\s\S]*)$/),le!==null&&Array.isArray(le)&&le.length>=3&&T(le[1],le[2]);else if(P.match(/^-.\..+/)&&!P.match(h))Se=i[O+1],le=P.match(/^-(.\..+)/),le!==null&&Array.isArray(le)&&le.length>=2&&(L=le[1],Se!==void 0&&!Se.match(/^-/)&&!Fe(L,D.bools)&&!Fe(L,D.counts)?(T(L,Se),O++):T(L,K(L)));else if(P.match(/^-[^-]+/)&&!P.match(h)){ye=P.slice(1,-1).split(""),U=!1;for(let Tr=0;Tr<ye.length;Tr++){if(Se=P.slice(Tr+2),ye[Tr+1]&&ye[Tr+1]==="="){Zt=P.slice(Tr+3),L=ye[Tr],Fe(L,D.arrays)?O=b(O,L,i,Zt):Fe(L,D.nargs)!==!1?O=W(O,L,i,Zt):T(L,Zt),U=!0;break}if(Se==="-"){T(ye[Tr],Se);continue}if(/[A-Za-z]/.test(ye[Tr])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(Se)&&Fe(Se,D.bools)===!1){T(ye[Tr],Se),U=!0;break}if(ye[Tr+1]&&ye[Tr+1].match(/\W/)){T(ye[Tr],Se),U=!0;break}else T(ye[Tr],K(ye[Tr]))}L=P.slice(-1)[0],!U&&L!=="-"&&(Fe(L,D.arrays)?O=b(O,L,i):Fe(L,D.nargs)!==!1?O=W(O,L,i):(Se=i[O+1],Se!==void 0&&(!/^(-|--)[^-]/.test(Se)||Se.match(h))&&!Fe(L,D.bools)&&!Fe(L,D.counts)||/^(true|false)$/.test(Se)?(T(L,Se),O++):T(L,K(L))))}else if(P.match(/^-[0-9]$/)&&P.match(h)&&Fe(P.slice(1),D.bools))L=P.slice(1),T(L,K(L));else if(P==="--"){w=i.slice(O+1);break}else if(a["halt-at-non-option"]){w=i.slice(O);break}else A(P)}G(E,!0),G(E,!1),q(E),ee(),Ce(E,D.aliases,u,!0),re(E),a["set-placeholder-key"]&&ne(E),Object.keys(D.counts).forEach(function(O){Ue(E,O.split("."))||T(O,0)}),f&&w.length&&(E[p]=[]),w.forEach(function(O){E[p].push(O)}),a["camel-case-expansion"]&&a["strip-dashed"]&&Object.keys(E).filter(O=>O!=="--"&&O.includes("-")).forEach(O=>{delete E[O]}),a["strip-aliased"]&&[].concat(...Object.keys(o).map(O=>o[O])).forEach(O=>{a["camel-case-expansion"]&&O.includes("-")&&delete E[O.split(".").map(P=>ba(P)).join(".")],delete E[O]});function A(O){let P=R("_",O);(typeof P=="string"||typeof P=="number")&&E._.push(P)}function W(O,P,X,U){let L,ye=Fe(P,D.nargs);if(ye=typeof ye!="number"||isNaN(ye)?1:ye,ye===0)return $e(U)||(v=Error(y("Argument unexpected for: %s",P))),T(P,K(P)),O;let le=$e(U)?0:1;if(a["nargs-eats-options"])X.length-(O+1)+le<ye&&(v=Error(y("Not enough arguments following: %s",P))),le=ye;else{for(L=O+1;L<X.length&&(!X[L].match(/^-[^0-9]/)||X[L].match(h)||x(X[L]));L++)le++;le<ye&&(v=Error(y("Not enough arguments following: %s",P)))}let Se=Math.min(le,ye);for(!$e(U)&&Se>0&&(T(P,U),Se--),L=O+1;L<Se+O+1;L++)T(P,X[L]);return O+Se}function b(O,P,X,U){let L=[],ye=U||X[O+1],le=Fe(P,D.nargs);if(Fe(P,D.bools)&&!/^(true|false)$/.test(ye))L.push(!0);else if($e(ye)||$e(U)&&/^-/.test(ye)&&!h.test(ye)&&!x(ye)){if(u[P]!==void 0){let Se=u[P];L=Array.isArray(Se)?Se:[Se]}}else{$e(U)||L.push(k(P,U,!0));for(let Se=O+1;Se<X.length&&!(!a["greedy-arrays"]&&L.length>0||le&&typeof le=="number"&&L.length>=le||(ye=X[Se],/^-/.test(ye)&&!h.test(ye)&&!x(ye)));Se++)O=Se,L.push(k(P,ye,s))}return typeof le=="number"&&(le&&L.length<le||isNaN(le)&&L.length===0)&&(v=Error(y("Not enough arguments following: %s",P))),T(P,L),O}function T(O,P,X=s){if(/-/.test(O)&&a["camel-case-expansion"]){let ye=O.split(".").map(function(le){return ba(le)}).join(".");F(O,ye)}let U=k(O,P,X),L=O.split(".");gt(E,L,U),D.aliases[O]&&D.aliases[O].forEach(function(ye){let le=ye.split(".");gt(E,le,U)}),L.length>1&&a["dot-notation"]&&(D.aliases[L[0]]||[]).forEach(function(ye){let le=ye.split("."),Se=[].concat(L);Se.shift(),le=le.concat(Se),(D.aliases[O]||[]).includes(le.join("."))||gt(E,le,U)}),Fe(O,D.normalize)&&!Fe(O,D.arrays)&&[O].concat(D.aliases[O]||[]).forEach(function(le){Object.defineProperty(I,le,{enumerable:!0,get(){return P},set(Se){P=typeof Se=="string"?cs.normalize(Se):Se}})})}function F(O,P){D.aliases[O]&&D.aliases[O].length||(D.aliases[O]=[P],d[P]=!0),D.aliases[P]&&D.aliases[P].length||F(P,O)}function k(O,P,X){X&&(P=Oj(P)),(Fe(O,D.bools)||Fe(O,D.counts))&&typeof P=="string"&&(P=P==="true");let U=Array.isArray(P)?P.map(function(L){return R(O,L)}):R(O,P);return Fe(O,D.counts)&&($e(U)||typeof U=="boolean")&&(U=sD()),Fe(O,D.normalize)&&Fe(O,D.arrays)&&(Array.isArray(P)?U=P.map(L=>cs.normalize(L)):U=cs.normalize(P)),U}function R(O,P){return!a["parse-positional-numbers"]&&O==="_"||!Fe(O,D.strings)&&!Fe(O,D.bools)&&!Array.isArray(P)&&(rm(P)&&a["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${P}`)))||!$e(P)&&Fe(O,D.numbers))&&(P=Number(P)),P}function q(O){let P=Object.create(null);Ce(P,D.aliases,u),Object.keys(D.configs).forEach(function(X){let U=O[X]||P[X];if(U)try{let L=null,ye=cs.resolve(cs.cwd(),U),le=D.configs[X];if(typeof le=="function"){try{L=le(ye)}catch(Se){L=Se}if(L instanceof Error){v=L;return}}else L=cs.require(ye);M(L)}catch(L){L.name==="PermissionDenied"?v=L:O[X]&&(v=Error(y("Invalid JSON config file: %s",U)))}})}function M(O,P){Object.keys(O).forEach(function(X){let U=O[X],L=P?P+"."+X:X;typeof U=="object"&&U!==null&&!Array.isArray(U)&&a["dot-notation"]?M(U,L):(!Ue(E,L.split("."))||Fe(L,D.arrays)&&a["combine-arrays"])&&T(L,U)})}function ee(){typeof l<"u"&&l.forEach(function(O){M(O)})}function G(O,P){if(typeof c>"u")return;let X=typeof c=="string"?c:"",U=cs.env();Object.keys(U).forEach(function(L){if(X===""||L.lastIndexOf(X,0)===0){let ye=L.split("__").map(function(le,Se){return Se===0&&(le=le.substring(X.length)),ba(le)});(P&&D.configs[ye.join(".")]||!P)&&!Ue(O,ye)&&T(ye.join("."),U[L])}})}function re(O){let P,X=new Set;Object.keys(O).forEach(function(U){if(!X.has(U)&&(P=Fe(U,D.coercions),typeof P=="function"))try{let L=R(U,P(O[U]));[].concat(D.aliases[U]||[],U).forEach(ye=>{X.add(ye),O[ye]=L})}catch(L){v=L}})}function ne(O){return D.keys.forEach(P=>{~P.indexOf(".")||typeof O[P]>"u"&&(O[P]=void 0)}),O}function Ce(O,P,X,U=!1){Object.keys(X).forEach(function(L){Ue(O,L.split("."))||(gt(O,L.split("."),X[L]),U&&(m[L]=!0),(P[L]||[]).forEach(function(ye){Ue(O,ye.split("."))||gt(O,ye.split("."),X[L])}))})}function Ue(O,P){let X=O;a["dot-notation"]||(P=[P.join(".")]),P.slice(0,-1).forEach(function(L){X=X[L]||{}});let U=P[P.length-1];return typeof X!="object"?!1:U in X}function gt(O,P,X){let U=O;a["dot-notation"]||(P=[P.join(".")]),P.slice(0,-1).forEach(function(Zt){Zt=R2(Zt),typeof U=="object"&&U[Zt]===void 0&&(U[Zt]={}),typeof U[Zt]!="object"||Array.isArray(U[Zt])?(Array.isArray(U[Zt])?U[Zt].push({}):U[Zt]=[U[Zt],{}],U=U[Zt][U[Zt].length-1]):U=U[Zt]});let L=R2(P[P.length-1]),ye=Fe(P.join("."),D.arrays),le=Array.isArray(X),Se=a["duplicate-arguments-array"];!Se&&Fe(L,D.nargs)&&(Se=!0,(!$e(U[L])&&D.nargs[L]===1||Array.isArray(U[L])&&U[L].length===D.nargs[L])&&(U[L]=void 0)),X===sD()?U[L]=sD(U[L]):Array.isArray(U[L])?Se&&ye&&le?U[L]=a["flatten-duplicate-arrays"]?U[L].concat(X):(Array.isArray(U[L][0])?U[L]:[U[L]]).concat([X]):!Se&&!!ye==!!le?U[L]=X:U[L]=U[L].concat([X]):U[L]===void 0&&ye?U[L]=le?X:[X]:Se&&!(U[L]===void 0||Fe(L,D.counts)||Fe(L,D.bools))?U[L]=[U[L],X]:U[L]=X}function ur(...O){O.forEach(function(P){Object.keys(P||{}).forEach(function(X){D.aliases[X]||(D.aliases[X]=[].concat(o[X]||[]),D.aliases[X].concat(X).forEach(function(U){if(/-/.test(U)&&a["camel-case-expansion"]){let L=ba(U);L!==X&&D.aliases[X].indexOf(L)===-1&&(D.aliases[X].push(L),d[L]=!0)}}),D.aliases[X].concat(X).forEach(function(U){if(U.length>1&&/[A-Z]/.test(U)&&a["camel-case-expansion"]){let L=tm(U,"-");L!==X&&D.aliases[X].indexOf(L)===-1&&(D.aliases[X].push(L),d[L]=!0)}}),D.aliases[X].forEach(function(U){D.aliases[U]=[X].concat(D.aliases[X].filter(function(L){return U!==L}))}))})})}function Fe(O,P){let X=[].concat(D.aliases[O]||[],O),U=Object.keys(P),L=X.find(ye=>U.includes(ye));return L?P[L]:!1}function tf(O){let P=Object.keys(D);return[].concat(P.map(U=>D[U])).some(function(U){return Array.isArray(U)?U.includes(O):U[O]})}function S(O,...P){return[].concat(...P).some(function(U){let L=O.match(U);return L&&tf(L[1])})}function _(O){if(O.match(h)||!O.match(/^-[^-]+/))return!1;let P=!0,X,U=O.slice(1).split("");for(let L=0;L<U.length;L++){if(X=O.slice(L+2),!tf(U[L])){P=!1;break}if(U[L+1]&&U[L+1]==="="||X==="-"||/[A-Za-z]/.test(U[L])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(X)||U[L+1]&&U[L+1].match(/\W/))break}return P}function x(O){return a["unknown-options-as-args"]&&B(O)}function B(O){return O=O.replace(/^-{3,}/,"--"),O.match(h)||_(O)?!1:!S(O,/^-+([^=]+?)=[\s\S]*$/,g,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function K(O){return!Fe(O,D.bools)&&!Fe(O,D.counts)&&`${O}`in u?u[O]:H(Be(O))}function H(O){return{[An.BOOLEAN]:!0,[An.STRING]:"",[An.NUMBER]:void 0,[An.ARRAY]:[]}[O]}function Be(O){let P=An.BOOLEAN;return Fe(O,D.strings)?P=An.STRING:Fe(O,D.numbers)?P=An.NUMBER:Fe(O,D.bools)?P=An.BOOLEAN:Fe(O,D.arrays)&&(P=An.ARRAY),P}function $e(O){return O===void 0}function it(){Object.keys(D.counts).find(O=>Fe(O,D.arrays)?(v=Error(y("Invalid configuration: %s, opts.count excludes opts.array.",O)),!0):Fe(O,D.nargs)?(v=Error(y("Invalid configuration: %s, opts.count excludes opts.narg.",O)),!0):!1)}return{aliases:Object.assign({},D.aliases),argv:Object.assign(I,E),configuration:a,defaulted:Object.assign({},m),error:v,newAliases:Object.assign({},d)}}};function bj(e){let t=[],r=Object.create(null),n=!0;for(Object.keys(e).forEach(function(i){t.push([].concat(e[i],i))});n;){n=!1;for(let i=0;i<t.length;i++)for(let s=i+1;s<t.length;s++)if(t[i].filter(function(a){return t[s].indexOf(a)!==-1}).length){t[i]=t[i].concat(t[s]),t.splice(s,1),n=!0;break}}return t.forEach(function(i){i=i.filter(function(o,a,u){return u.indexOf(o)===a});let s=i.pop();s!==void 0&&typeof s=="string"&&(r[s]=i)}),r}function sD(e){return e!==void 0?e+1:1}function R2(e){return e==="__proto__"?"___proto___":e}function Oj(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}import{readFileSync as Tj}from"fs";var oD,aD,uD,B2=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,k2=(aD=(oD=process==null?void 0:process.versions)===null||oD===void 0?void 0:oD.node)!==null&&aD!==void 0?aD:(uD=process==null?void 0:process.version)===null||uD===void 0?void 0:uD.slice(1);if(k2&&Number(k2.match(/^([^.]+)/)[1])<B2)throw Error(`yargs parser supports a minimum Node.js version of ${B2}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var Pj=process?process.env:{},M2=new nm({cwd:process.cwd,env:()=>Pj,format:Fj,normalize:Aj,resolve:Ij,require:e=>{if(typeof V<"u")return V(e);if(e.match(/\.json$/))return JSON.parse(Tj(e,"utf8"));throw Error("only .json config files are supported in ESM")}}),nf=function(t,r){return M2.parse(t.slice(),r).argv};nf.detailed=function(e,t){return M2.parse(e.slice(),t)};nf.camelCase=ba;nf.decamelize=tm;nf.looksLikeNumber=rm;var lD=nf;import{basename as zj,dirname as Hj,extname as Yj,relative as Kj,resolve as G2}from"path";function j2(){return Lj()?0:1}function Lj(){return Nj()&&!process.defaultApp}function Nj(){return!!process.versions.electron}function cD(e){return e.slice(j2()+1)}function V2(){return process.argv[j2()]}var ct=class e extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,e)}};import{readFileSync as Rj,statSync as Bj,writeFile as kj}from"fs";import{format as Mj}from"util";import{resolve as jj}from"path";var U2={fs:{readFileSync:Rj,writeFile:kj},format:Mj,resolve:jj,exists:e=>{try{return Bj(e).isFile()}catch{return!1}}};var li,fD=class{constructor(t){t=t||{},this.directory=t.directory||"./locales",this.updateFiles=typeof t.updateFiles=="boolean"?t.updateFiles:!0,this.locale=t.locale||"en",this.fallbackToLanguage=typeof t.fallbackToLanguage=="boolean"?t.fallbackToLanguage:!0,this.cache=Object.create(null),this.writeQueue=[]}__(...t){if(typeof arguments[0]!="string")return this._taggedLiteral(arguments[0],...arguments);let r=t.shift(),n=function(){};return typeof t[t.length-1]=="function"&&(n=t.pop()),n=n||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]=r,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:n})):n(),li.format.apply(li.format,[this.cache[this.locale][r]||r].concat(t))}__n(){let t=Array.prototype.slice.call(arguments),r=t.shift(),n=t.shift(),i=t.shift(),s=function(){};typeof t[t.length-1]=="function"&&(s=t.pop()),this.cache[this.locale]||this._readLocaleFile();let o=i===1?r:n;this.cache[this.locale][r]&&(o=this.cache[this.locale][r][i===1?"one":"other"]),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]={one:r,other:n},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:s})):s();let a=[o];return~o.indexOf("%d")&&a.push(i),li.format.apply(li.format,a.concat(t))}setLocale(t){this.locale=t}getLocale(){return this.locale}updateLocale(t){this.cache[this.locale]||this._readLocaleFile();for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(this.cache[this.locale][r]=t[r])}_taggedLiteral(t,...r){let n="";return t.forEach(function(i,s){let o=r[s+1];n+=i,typeof o<"u"&&(n+="%s")}),this.__.apply(this,[n].concat([].slice.call(r,1)))}_enqueueWrite(t){this.writeQueue.push(t),this.writeQueue.length===1&&this._processWriteQueue()}_processWriteQueue(){let t=this,r=this.writeQueue[0],n=r.directory,i=r.locale,s=r.cb,o=this._resolveLocaleFile(n,i),a=JSON.stringify(this.cache[i],null,2);li.fs.writeFile(o,a,"utf-8",function(u){t.writeQueue.shift(),t.writeQueue.length>0&&t._processWriteQueue(),s(u)})}_readLocaleFile(){let t={},r=this._resolveLocaleFile(this.directory,this.locale);try{li.fs.readFileSync&&(t=JSON.parse(li.fs.readFileSync(r,"utf-8")))}catch(n){if(n instanceof SyntaxError&&(n.message="syntax error in "+r),n.code==="ENOENT")t={};else throw n}this.cache[this.locale]=t}_resolveLocaleFile(t,r){let n=li.resolve(t,"./",r+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~r.lastIndexOf("_")){let i=li.resolve(t,"./",r.split("_")[0]+".json");this._fileExistsSync(i)&&(n=i)}return n}_fileExistsSync(t){return li.exists(t)}};function $2(e,t){li=t;let r=new fD(e);return{__:r.__.bind(r),__n:r.__n.bind(r),setLocale:r.setLocale.bind(r),getLocale:r.getLocale.bind(r),updateLocale:r.updateLocale.bind(r),locale:r.locale}}var Vj=e=>$2(e,U2),W2=Vj;var Xj="require is not supported by ESM",q2="loading a directory of commands is not supported yet for ESM",sf;try{sf=qj(import.meta.url)}catch{sf=process.cwd()}var Jj=sf.substring(0,sf.lastIndexOf("node_modules")),pD={assert:{notStrictEqual:Uj,strictEqual:$j},cliui:iD,findUp:L2,getEnv:e=>process.env[e],inspect:Wj,getCallerFile:()=>{throw new ct(q2)},getProcessArgvBin:V2,mainFilename:Jj||process.cwd(),Parser:lD,path:{basename:zj,dirname:Hj,extname:Yj,relative:Kj,resolve:G2},process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(e,t)=>process.emitWarning(e,t),execPath:()=>process.execPath,exit:process.exit,nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<"u"?process.stdout.columns:null},readFileSync:Gj,require:()=>{throw new ct(Xj)},requireDirectory:()=>{throw new ct(q2)},stringWidth:e=>[...e].length,y18n:W2({directory:G2(sf,"../../../locales"),updateFiles:!1})};function Pr(e,t,r,n){r.assert.notStrictEqual(e,t,n)}function dD(e,t){t.assert.strictEqual(typeof e,"string")}function sl(e){return Object.keys(e)}function ft(e){return!!e&&!!e.then&&typeof e.then=="function"}function Js(e){let r=e.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),n=/\.*[\][<>]/g,i=r.shift();if(!i)throw new Error(`No command found in: ${e}`);let s={cmd:i.replace(n,""),demanded:[],optional:[]};return r.forEach((o,a)=>{let u=!1;o=o.replace(/\s/g,""),/\.+[\]>]/.test(o)&&a===r.length-1&&(u=!0),/^\[/.test(o)?s.optional.push({cmd:o.replace(n,"").split("|"),variadic:u}):s.demanded.push({cmd:o.replace(n,"").split("|"),variadic:u})}),s}var Zj=["first","second","third","fourth","fifth","sixth"];function me(e,t,r){function n(){return typeof e=="object"?[{demanded:[],optional:[]},e,t]:[Js(`cmd ${e}`),t,r]}try{let i=0,[s,o,a]=n(),u=[].slice.call(o);for(;u.length&&u[u.length-1]===void 0;)u.pop();let l=a||u.length;if(l<s.demanded.length)throw new ct(`Not enough arguments provided. Expected ${s.demanded.length} but received ${u.length}.`);let c=s.demanded.length+s.optional.length;if(l>c)throw new ct(`Too many arguments provided. Expected max ${c} but received ${l}.`);s.demanded.forEach(f=>{let p=u.shift(),d=z2(p);f.cmd.filter(y=>y===d||y==="*").length===0&&H2(d,f.cmd,i),i+=1}),s.optional.forEach(f=>{if(u.length===0)return;let p=u.shift(),d=z2(p);f.cmd.filter(y=>y===d||y==="*").length===0&&H2(d,f.cmd,i),i+=1})}catch(i){console.warn(i.stack)}}function z2(e){return Array.isArray(e)?"array":e===null?"null":typeof e}function H2(e,t,r){throw new ct(`Invalid ${Zj[r]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}var im=class{constructor(t){this.globalMiddleware=[],this.frozens=[],this.yargs=t}addMiddleware(t,r,n=!0,i=!1){if(me("<array|function> [boolean] [boolean] [boolean]",[t,r,n],arguments.length),Array.isArray(t)){for(let s=0;s<t.length;s++){if(typeof t[s]!="function")throw Error("middleware must be a function");let o=t[s];o.applyBeforeValidation=r,o.global=n}Array.prototype.push.apply(this.globalMiddleware,t)}else if(typeof t=="function"){let s=t;s.applyBeforeValidation=r,s.global=n,s.mutates=i,this.globalMiddleware.push(t)}return this.yargs}addCoerceMiddleware(t,r){let n=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter(i=>{let s=[...n[r]||[],r];return i.option?!s.includes(i.option):!0}),t.option=r,this.addMiddleware(t,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){let t=this.frozens.pop();t!==void 0&&(this.globalMiddleware=t)}reset(){this.globalMiddleware=this.globalMiddleware.filter(t=>t.global)}};function Y2(e){return e?e.map(t=>(t.applyBeforeValidation=!1,t)):[]}function Oa(e,t,r,n){return r.reduce((i,s)=>{if(s.applyBeforeValidation!==n)return i;if(s.mutates){if(s.applied)return i;s.applied=!0}if(ft(i))return i.then(o=>Promise.all([o,s(o,t)])).then(([o,a])=>Object.assign(o,a));{let o=s(i,t);return ft(o)?o.then(a=>Object.assign(i,a)):Object.assign(i,o)}},e)}function Fa(e,t,r=n=>{throw n}){try{let n=Qj(e)?e():e;return ft(n)?n.then(i=>t(i)):t(n)}catch(n){return r(n)}}function Qj(e){return typeof e=="function"}function mD(e){if(typeof V>"u")return null;for(let t=0,r=Object.keys(V.cache),n;t<r.length;t++)if(n=V.cache[r[t]],n.exports===e)return n;return null}var ol=/(^\*)|(^\$0)/,hD=class{constructor(t,r,n,i){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=i,this.usage=t,this.globalMiddleware=n,this.validation=r}addDirectory(t,r,n,i){i=i||{},typeof i.recurse!="boolean"&&(i.recurse=!1),Array.isArray(i.extensions)||(i.extensions=["js"]);let s=typeof i.visit=="function"?i.visit:o=>o;i.visit=(o,a,u)=>{let l=s(o,a,u);if(l){if(this.requireCache.has(a))return l;this.requireCache.add(a),this.addHandler(l)}return l},this.shim.requireDirectory({require:r,filename:n},t,i)}addHandler(t,r,n,i,s,o){let a=[],u=Y2(s);if(i=i||(()=>{}),Array.isArray(t))if(eV(t))[t,...a]=t;else for(let l of t)this.addHandler(l);else if(rV(t)){let l=Array.isArray(t.command)||typeof t.command=="string"?t.command:this.moduleName(t);t.aliases&&(l=[].concat(l).concat(t.aliases)),this.addHandler(l,this.extractDesc(t),t.builder,t.handler,t.middlewares,t.deprecated);return}else if(K2(n)){this.addHandler([t].concat(a),r,n.builder,n.handler,n.middlewares,n.deprecated);return}if(typeof t=="string"){let l=Js(t);a=a.map(p=>Js(p).cmd);let c=!1,f=[l.cmd].concat(a).filter(p=>ol.test(p)?(c=!0,!1):!0);f.length===0&&c&&f.push("$0"),c&&(l.cmd=f[0],a=f.slice(1),t=t.replace(ol,l.cmd)),a.forEach(p=>{this.aliasMap[p]=l.cmd}),r!==!1&&this.usage.command(t,r,c,a,o),this.handlers[l.cmd]={original:t,description:r,handler:i,builder:n||{},middlewares:u,deprecated:o,demanded:l.demanded,optional:l.optional},c&&(this.defaultCommand=this.handlers[l.cmd])}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return!!this.defaultCommand}runCommand(t,r,n,i,s,o){let a=this.handlers[t]||this.handlers[this.aliasMap[t]]||this.defaultCommand,u=r.getInternalMethods().getContext(),l=u.commands.slice(),c=!t;t&&(u.commands.push(t),u.fullCommands.push(a.original));let f=this.applyBuilderUpdateUsageAndParse(c,a,r,n.aliases,l,i,s,o);return ft(f)?f.then(p=>this.applyMiddlewareAndGetResult(c,a,p.innerArgv,u,s,p.aliases,r)):this.applyMiddlewareAndGetResult(c,a,f.innerArgv,u,s,f.aliases,r)}applyBuilderUpdateUsageAndParse(t,r,n,i,s,o,a,u){let l=r.builder,c=n;if(sm(l)){n.getInternalMethods().getUsageInstance().freeze();let f=l(n.getInternalMethods().reset(i),u);if(ft(f))return f.then(p=>(c=J2(p)?p:n,this.parseAndUpdateUsage(t,r,c,s,o,a)))}else tV(l)&&(n.getInternalMethods().getUsageInstance().freeze(),c=n.getInternalMethods().reset(i),Object.keys(r.builder).forEach(f=>{c.option(f,l[f])}));return this.parseAndUpdateUsage(t,r,c,s,o,a)}parseAndUpdateUsage(t,r,n,i,s,o){t&&n.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(n)&&n.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(i,r),r.description);let a=n.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,s,o);return ft(a)?a.then(u=>({aliases:n.parsed.aliases,innerArgv:u})):{aliases:n.parsed.aliases,innerArgv:a}}shouldUpdateUsage(t){return!t.getInternalMethods().getUsageInstance().getUsageDisabled()&&t.getInternalMethods().getUsageInstance().getUsage().length===0}usageFromParentCommandsCommandHandler(t,r){let n=ol.test(r.original)?r.original.replace(ol,"").trim():r.original,i=t.filter(s=>!ol.test(s));return i.push(n),`$0 ${i.join(" ")}`}handleValidationAndGetResult(t,r,n,i,s,o,a,u){if(!o.getInternalMethods().getHasOutput()){let l=o.getInternalMethods().runValidation(s,u,o.parsed.error,t);n=Fa(n,c=>(l(c),c))}if(r.handler&&!o.getInternalMethods().getHasOutput()){o.getInternalMethods().setHasOutput();let l=!!o.getOptions().configuration["populate--"];o.getInternalMethods().postProcess(n,l,!1,!1),n=Oa(n,o,a,!1),n=Fa(n,c=>{let f=r.handler(c);return ft(f)?f.then(()=>c):c}),t||o.getInternalMethods().getUsageInstance().cacheHelpMessage(),ft(n)&&!o.getInternalMethods().hasParseCallback()&&n.catch(c=>{try{o.getInternalMethods().getUsageInstance().fail(null,c)}catch{}})}return t||(i.commands.pop(),i.fullCommands.pop()),n}applyMiddlewareAndGetResult(t,r,n,i,s,o,a){let u={};if(s)return n;a.getInternalMethods().getHasOutput()||(u=this.populatePositionals(r,n,i,a));let l=this.globalMiddleware.getMiddleware().slice(0).concat(r.middlewares),c=Oa(n,a,l,!0);return ft(c)?c.then(f=>this.handleValidationAndGetResult(t,r,f,i,o,a,l,u)):this.handleValidationAndGetResult(t,r,c,i,o,a,l,u)}populatePositionals(t,r,n,i){r._=r._.slice(n.commands.length);let s=t.demanded.slice(0),o=t.optional.slice(0),a={};for(this.validation.positionalCount(s.length,r._.length);s.length;){let u=s.shift();this.populatePositional(u,r,a)}for(;o.length;){let u=o.shift();this.populatePositional(u,r,a)}return r._=n.commands.concat(r._.map(u=>""+u)),this.postProcessPositionals(r,a,this.cmdToParseOptions(t.original),i),a}populatePositional(t,r,n){let i=t.cmd[0];t.variadic?n[i]=r._.splice(0).map(String):r._.length&&(n[i]=[String(r._.shift())])}cmdToParseOptions(t){let r={array:[],default:{},alias:{},demand:{}},n=Js(t);return n.demanded.forEach(i=>{let[s,...o]=i.cmd;i.variadic&&(r.array.push(s),r.default[s]=[]),r.alias[s]=o,r.demand[s]=!0}),n.optional.forEach(i=>{let[s,...o]=i.cmd;i.variadic&&(r.array.push(s),r.default[s]=[]),r.alias[s]=o}),r}postProcessPositionals(t,r,n,i){let s=Object.assign({},i.getOptions());s.default=Object.assign(n.default,s.default);for(let l of Object.keys(n.alias))s.alias[l]=(s.alias[l]||[]).concat(n.alias[l]);s.array=s.array.concat(n.array),s.config={};let o=[];if(Object.keys(r).forEach(l=>{r[l].map(c=>{s.configuration["unknown-options-as-args"]&&(s.key[l]=!0),o.push(`--${l}`),o.push(c)})}),!o.length)return;let a=Object.assign({},s.configuration,{"populate--":!1}),u=this.shim.Parser.detailed(o,Object.assign({},s,{configuration:a}));if(u.error)i.getInternalMethods().getUsageInstance().fail(u.error.message,u.error);else{let l=Object.keys(r);Object.keys(r).forEach(c=>{l.push(...u.aliases[c])}),Object.keys(u.argv).forEach(c=>{l.includes(c)&&(r[c]||(r[c]=u.argv[c]),!this.isInConfigs(i,c)&&!this.isDefaulted(i,c)&&Object.prototype.hasOwnProperty.call(t,c)&&Object.prototype.hasOwnProperty.call(u.argv,c)&&(Array.isArray(t[c])||Array.isArray(u.argv[c]))?t[c]=[].concat(t[c],u.argv[c]):t[c]=u.argv[c])})}}isDefaulted(t,r){let{default:n}=t.getOptions();return Object.prototype.hasOwnProperty.call(n,r)||Object.prototype.hasOwnProperty.call(n,this.shim.Parser.camelCase(r))}isInConfigs(t,r){let{configObjects:n}=t.getOptions();return n.some(i=>Object.prototype.hasOwnProperty.call(i,r))||n.some(i=>Object.prototype.hasOwnProperty.call(i,this.shim.Parser.camelCase(r)))}runDefaultBuilderOn(t){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(t)){let n=ol.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");t.getInternalMethods().getUsageInstance().usage(n,this.defaultCommand.description)}let r=this.defaultCommand.builder;if(sm(r))return r(t,!0);K2(r)||Object.keys(r).forEach(n=>{t.option(n,r[n])})}moduleName(t){let r=mD(t);if(!r)throw new Error(`No command name given for module: ${this.shim.inspect(t)}`);return this.commandFromFilename(r.filename)}commandFromFilename(t){return this.shim.path.basename(t,this.shim.path.extname(t))}extractDesc({describe:t,description:r,desc:n}){for(let i of[t,r,n]){if(typeof i=="string"||i===!1)return i;Pr(i,!0,this.shim)}return!1}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand})}unfreeze(){let t=this.frozens.pop();Pr(t,void 0,this.shim),{handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=t}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}};function X2(e,t,r,n){return new hD(e,t,r,n)}function K2(e){return typeof e=="object"&&!!e.builder&&typeof e.handler=="function"}function eV(e){return e.every(t=>typeof t=="string")}function sm(e){return typeof e=="function"}function tV(e){return typeof e=="object"}function rV(e){return typeof e=="object"&&!Array.isArray(e)}function Zs(e={},t=()=>!0){let r={};return sl(e).forEach(n=>{t(n,e[n])&&(r[n]=e[n])}),r}function Qs(e){typeof process>"u"||[process.stdout,process.stderr].forEach(t=>{let r=t;r._handle&&r.isTTY&&typeof r._handle.setBlocking=="function"&&r._handle.setBlocking(e)})}function nV(e){return typeof e=="boolean"}function Q2(e,t){let r=t.y18n.__,n={},i=[];n.failFn=function(k){i.push(k)};let s=null,o=null,a=!0;n.showHelpOnFail=function(k=!0,R){let[q,M]=typeof k=="string"?[!0,k]:[k,R];return e.getInternalMethods().isGlobalContext()&&(o=M),s=M,a=q,n};let u=!1;n.fail=function(k,R){let q=e.getInternalMethods().getLoggerInstance();if(i.length)for(let M=i.length-1;M>=0;--M){let ee=i[M];if(nV(ee)){if(R)throw R;if(k)throw Error(k)}else ee(k,R,n)}else{if(e.getExitProcess()&&Qs(!0),!u){u=!0,a&&(e.showHelp("error"),q.error()),(k||R)&&q.error(k||R);let M=s||o;M&&((k||R)&&q.error(""),q.error(M))}if(R=R||new ct(k),e.getExitProcess())return e.exit(1);if(e.getInternalMethods().hasParseCallback())return e.exit(1,R);throw R}};let l=[],c=!1;n.usage=(F,k)=>F===null?(c=!0,l=[],n):(c=!1,l.push([F,k||""]),n),n.getUsage=()=>l,n.getUsageDisabled=()=>c,n.getPositionalGroupName=()=>r("Positionals:");let f=[];n.example=(F,k)=>{f.push([F,k||""])};let p=[];n.command=function(k,R,q,M,ee=!1){q&&(p=p.map(G=>(G[2]=!1,G))),p.push([k,R||"",q,M,ee])},n.getCommands=()=>p;let d={};n.describe=function(k,R){Array.isArray(k)?k.forEach(q=>{n.describe(q,R)}):typeof k=="object"?Object.keys(k).forEach(q=>{n.describe(q,k[q])}):d[k]=R},n.getDescriptions=()=>d;let m=[];n.epilog=F=>{m.push(F)};let y=!1,D;n.wrap=F=>{y=!0,D=F},n.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(y||(D=W(),y=!0),D);let h="__yargsString__:";n.deferY18nLookup=F=>h+F,n.help=function(){if(w)return w;v();let k=e.customScriptName?e.$0:t.path.basename(e.$0),R=e.getDemandedOptions(),q=e.getDemandedCommands(),M=e.getDeprecatedOptions(),ee=e.getGroups(),G=e.getOptions(),re=[];re=re.concat(Object.keys(d)),re=re.concat(Object.keys(R)),re=re.concat(Object.keys(q)),re=re.concat(Object.keys(G.default)),re=re.filter(I),re=Object.keys(re.reduce((S,_)=>(_!=="_"&&(S[_]=!0),S),{}));let ne=n.getWrap(),Ce=t.cliui({width:ne,wrap:!!ne});if(!c){if(l.length)l.forEach(S=>{Ce.div({text:`${S[0].replace(/\$0/g,k)}`}),S[1]&&Ce.div({text:`${S[1]}`,padding:[1,0,0,0]})}),Ce.div();else if(p.length){let S=null;q._?S=`${k} <${r("command")}>
|
|
431
431
|
`:S=`${k} [${r("command")}]
|
|
432
432
|
`,Ce.div(`${S}`)}}if(p.length>1||p.length===1&&!p[0][2]){Ce.div(r("Commands:"));let S=e.getInternalMethods().getContext(),_=S.commands.length?`${S.commands.join(" ")} `:"";e.getInternalMethods().getParserConfiguration()["sort-commands"]===!0&&(p=p.sort((B,K)=>B[0].localeCompare(K[0])));let x=k?`${k} `:"";p.forEach(B=>{let K=`${x}${_}${B[0].replace(/^\$0 ?/,"")}`;Ce.span({text:K,padding:[0,2,0,2],width:g(p,ne,`${k}${_}`)+4},{text:B[1]});let H=[];B[2]&&H.push(`[${r("default")}]`),B[3]&&B[3].length&&H.push(`[${r("aliases:")} ${B[3].join(", ")}]`),B[4]&&(typeof B[4]=="string"?H.push(`[${r("deprecated: %s",B[4])}]`):H.push(`[${r("deprecated")}]`)),H.length?Ce.div({text:H.join(" "),padding:[0,0,0,2],align:"right"}):Ce.div()}),Ce.div()}let Ue=(Object.keys(G.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);re=re.filter(S=>!e.parsed.newAliases[S]&&Ue.every(_=>(G.alias[_]||[]).indexOf(S)===-1));let gt=r("Options:");ee[gt]||(ee[gt]=[]),E(re,G.alias,ee,gt);let ur=S=>/^--/.test(om(S)),Fe=Object.keys(ee).filter(S=>ee[S].length>0).map(S=>{let _=ee[S].filter(I).map(x=>{if(Ue.includes(x))return x;for(let B=0,K;(K=Ue[B])!==void 0;B++)if((G.alias[K]||[]).includes(x))return K;return x});return{groupName:S,normalizedKeys:_}}).filter(({normalizedKeys:S})=>S.length>0).map(({groupName:S,normalizedKeys:_})=>{let x=_.reduce((B,K)=>(B[K]=[K].concat(G.alias[K]||[]).map(H=>S===n.getPositionalGroupName()?H:(/^[0-9]$/.test(H)?G.boolean.includes(K)?"-":"--":H.length>1?"--":"-")+H).sort((H,Be)=>ur(H)===ur(Be)?0:ur(H)?1:-1).join(", "),B),{});return{groupName:S,normalizedKeys:_,switches:x}});if(Fe.filter(({groupName:S})=>S!==n.getPositionalGroupName()).some(({normalizedKeys:S,switches:_})=>!S.every(x=>ur(_[x])))&&Fe.filter(({groupName:S})=>S!==n.getPositionalGroupName()).forEach(({normalizedKeys:S,switches:_})=>{S.forEach(x=>{ur(_[x])&&(_[x]=iV(_[x],4))})}),Fe.forEach(({groupName:S,normalizedKeys:_,switches:x})=>{Ce.div(S),_.forEach(B=>{let K=x[B],H=d[B]||"",Be=null;H.includes(h)&&(H=r(H.substring(h.length))),G.boolean.includes(B)&&(Be=`[${r("boolean")}]`),G.count.includes(B)&&(Be=`[${r("count")}]`),G.string.includes(B)&&(Be=`[${r("string")}]`),G.normalize.includes(B)&&(Be=`[${r("string")}]`),G.array.includes(B)&&(Be=`[${r("array")}]`),G.number.includes(B)&&(Be=`[${r("number")}]`);let $e=P=>typeof P=="string"?`[${r("deprecated: %s",P)}]`:`[${r("deprecated")}]`,it=[B in M?$e(M[B]):null,Be,B in R?`[${r("required")}]`:null,G.choices&&G.choices[B]?`[${r("choices:")} ${n.stringifiedValues(G.choices[B])}]`:null,A(G.default[B],G.defaultDescription[B])].filter(Boolean).join(" ");Ce.span({text:om(K),padding:[0,2,0,2+Z2(K)],width:g(x,ne)+4},H);let O=e.getInternalMethods().getUsageConfiguration()["hide-types"]===!0;it&&!O?Ce.div({text:it,padding:[0,0,0,2],align:"right"}):Ce.div()}),Ce.div()}),f.length&&(Ce.div(r("Examples:")),f.forEach(S=>{S[0]=S[0].replace(/\$0/g,k)}),f.forEach(S=>{S[1]===""?Ce.div({text:S[0],padding:[0,2,0,2]}):Ce.div({text:S[0],padding:[0,2,0,2],width:g(f,ne)+4},{text:S[1]})}),Ce.div()),m.length>0){let S=m.map(_=>_.replace(/\$0/g,k)).join(`
|
|
433
433
|
`);Ce.div(`${S}
|
|
@@ -485,23 +485,23 @@ ${m.join(`
|
|
|
485
485
|
`;p.forEach(m=>{d+=m}),t.fail(d)}};let u={};s.conflicts=function(f,p){me("<string|object> [array|string]",[f,p],arguments.length),typeof f=="object"?Object.keys(f).forEach(d=>{s.conflicts(d,f[d])}):(e.global(f),u[f]||(u[f]=[]),Array.isArray(p)?p.forEach(d=>s.conflicts(f,d)):u[f].push(p))},s.getConflicting=()=>u,s.conflicting=function(f){Object.keys(f).forEach(p=>{u[p]&&u[p].forEach(d=>{d&&f[p]!==void 0&&f[d]!==void 0&&t.fail(n("Arguments %s and %s are mutually exclusive",p,d))})}),e.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(u).forEach(p=>{u[p].forEach(d=>{d&&f[r.Parser.camelCase(p)]!==void 0&&f[r.Parser.camelCase(d)]!==void 0&&t.fail(n("Arguments %s and %s are mutually exclusive",p,d))})})},s.recommendCommands=function(f,p){p=p.sort((D,h)=>h.length-D.length);let m=null,y=1/0;for(let D=0,h;(h=p[D])!==void 0;D++){let g=n_(f,h);g<=3&&g<y&&(y=g,m=h)}m&&t.fail(n("Did you mean %s?",m))},s.reset=function(f){return o=Zs(o,p=>!f[p]),u=Zs(u,p=>!f[p]),s};let l=[];return s.freeze=function(){l.push({implied:o,conflicting:u})},s.unfreeze=function(){let f=l.pop();Pr(f,void 0,r),{implied:o,conflicting:u}=f},s}var DD=[],of;function af(e,t,r,n){of=n;let i={};if(Object.prototype.hasOwnProperty.call(e,"extends")){if(typeof e.extends!="string")return i;let s=/\.json|\..*rc$/.test(e.extends),o=null;if(s)o=lV(t,e.extends);else try{o=V.resolve(e.extends)}catch{return e}uV(o),DD.push(o),i=s?JSON.parse(of.readFileSync(o,"utf8")):V(e.extends),delete e.extends,i=af(i,of.path.dirname(o),r,of)}return DD=[],r?o_(i,e):Object.assign({},i,e)}function uV(e){if(DD.indexOf(e)>-1)throw new ct(`Circular extended configurations: '${e}'.`)}function lV(e,t){return of.path.resolve(e,t)}function o_(e,t){let r={};function n(i){return i&&typeof i=="object"&&!Array.isArray(i)}Object.assign(r,e);for(let i of Object.keys(t))n(t[i])&&n(r[i])?r[i]=o_(e[i],t[i]):r[i]=t[i];return r}var ge=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},C=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Lt,Aa,uf,In,un,am,eo,Ia,um,Tn,lm,Pn,Ni,ln,Ln,cm,al,Qt,we,fm,pm,cn,Ta,ul,Pa,to,dm,Te,La,Na,Ra,Le,mm,Ri,It;function b_(e){return(t=[],r=e.process.cwd(),n)=>{let i=new AD(t,r,n,e);return Object.defineProperty(i,"argv",{get:()=>i.parse(),enumerable:!0}),i.help(),i.version(),i}}var a_=Symbol("copyDoubleDash"),u_=Symbol("copyDoubleDash"),vD=Symbol("deleteFromParserHintObject"),l_=Symbol("emitWarning"),c_=Symbol("freeze"),f_=Symbol("getDollarZero"),Ba=Symbol("getParserConfiguration"),p_=Symbol("getUsageConfiguration"),wD=Symbol("guessLocale"),d_=Symbol("guessVersion"),m_=Symbol("parsePositionalNumbers"),CD=Symbol("pkgUp"),ro=Symbol("populateParserHintArray"),ll=Symbol("populateParserHintSingleValueDictionary"),ED=Symbol("populateParserHintArrayDictionary"),SD=Symbol("populateParserHintDictionary"),xD=Symbol("sanitizeKey"),_D=Symbol("setKey"),bD=Symbol("unfreeze"),h_=Symbol("validateAsync"),g_=Symbol("getCommandInstance"),y_=Symbol("getContext"),D_=Symbol("getHasOutput"),v_=Symbol("getLoggerInstance"),w_=Symbol("getParseContext"),C_=Symbol("getUsageInstance"),E_=Symbol("getValidationInstance"),hm=Symbol("hasParseCallback"),S_=Symbol("isGlobalContext"),ka=Symbol("postProcess"),x_=Symbol("rebase"),OD=Symbol("reset"),lf=Symbol("runYargsParserAndExecuteCommands"),FD=Symbol("runValidation"),__=Symbol("setHasOutput"),Ma=Symbol("kTrackManuallySetKeys"),AD=class{constructor(t=[],r,n,i){this.customScriptName=!1,this.parsed=!1,Lt.set(this,void 0),Aa.set(this,void 0),uf.set(this,{commands:[],fullCommands:[]}),In.set(this,null),un.set(this,null),am.set(this,"show-hidden"),eo.set(this,null),Ia.set(this,!0),um.set(this,{}),Tn.set(this,!0),lm.set(this,[]),Pn.set(this,void 0),Ni.set(this,{}),ln.set(this,!1),Ln.set(this,null),cm.set(this,!0),al.set(this,void 0),Qt.set(this,""),we.set(this,void 0),fm.set(this,void 0),pm.set(this,{}),cn.set(this,null),Ta.set(this,null),ul.set(this,{}),Pa.set(this,{}),to.set(this,void 0),dm.set(this,!1),Te.set(this,void 0),La.set(this,!1),Na.set(this,!1),Ra.set(this,!1),Le.set(this,void 0),mm.set(this,{}),Ri.set(this,null),It.set(this,void 0),ge(this,Te,i,"f"),ge(this,to,t,"f"),ge(this,Aa,r,"f"),ge(this,fm,n,"f"),ge(this,Pn,new im(this),"f"),this.$0=this[f_](),this[OD](),ge(this,Lt,C(this,Lt,"f"),"f"),ge(this,Le,C(this,Le,"f"),"f"),ge(this,It,C(this,It,"f"),"f"),ge(this,we,C(this,we,"f"),"f"),C(this,we,"f").showHiddenOpt=C(this,am,"f"),ge(this,al,this[u_](),"f")}addHelpOpt(t,r){let n="help";return me("[string|boolean] [string]",[t,r],arguments.length),C(this,Ln,"f")&&(this[vD](C(this,Ln,"f")),ge(this,Ln,null,"f")),t===!1&&r===void 0?this:(ge(this,Ln,typeof t=="string"?t:n,"f"),this.boolean(C(this,Ln,"f")),this.describe(C(this,Ln,"f"),r||C(this,Le,"f").deferY18nLookup("Show help")),this)}help(t,r){return this.addHelpOpt(t,r)}addShowHiddenOpt(t,r){if(me("[string|boolean] [string]",[t,r],arguments.length),t===!1&&r===void 0)return this;let n=typeof t=="string"?t:C(this,am,"f");return this.boolean(n),this.describe(n,r||C(this,Le,"f").deferY18nLookup("Show hidden options")),C(this,we,"f").showHiddenOpt=n,this}showHidden(t,r){return this.addShowHiddenOpt(t,r)}alias(t,r){return me("<object|string|array> [string|array]",[t,r],arguments.length),this[ED](this.alias.bind(this),"alias",t,r),this}array(t){return me("<array|string>",[t],arguments.length),this[ro]("array",t),this[Ma](t),this}boolean(t){return me("<array|string>",[t],arguments.length),this[ro]("boolean",t),this[Ma](t),this}check(t,r){return me("<function> [boolean]",[t,r],arguments.length),this.middleware((n,i)=>Fa(()=>t(n,i.getOptions()),s=>(s?(typeof s=="string"||s instanceof Error)&&C(this,Le,"f").fail(s.toString(),s):C(this,Le,"f").fail(C(this,Te,"f").y18n.__("Argument check failed: %s",t.toString())),n),s=>(C(this,Le,"f").fail(s.message?s.message:s.toString(),s),n)),!1,r),this}choices(t,r){return me("<object|string|array> [string|array]",[t,r],arguments.length),this[ED](this.choices.bind(this),"choices",t,r),this}coerce(t,r){if(me("<object|string|array> [function]",[t,r],arguments.length),Array.isArray(t)){if(!r)throw new ct("coerce callback must be provided");for(let n of t)this.coerce(n,r);return this}else if(typeof t=="object"){for(let n of Object.keys(t))this.coerce(n,t[n]);return this}if(!r)throw new ct("coerce callback must be provided");return C(this,we,"f").key[t]=!0,C(this,Pn,"f").addCoerceMiddleware((n,i)=>{let s;return Object.prototype.hasOwnProperty.call(n,t)?Fa(()=>(s=i.getAliases(),r(n[t])),a=>{n[t]=a;let u=i.getInternalMethods().getParserConfiguration()["strip-aliased"];if(s[t]&&u!==!0)for(let l of s[t])n[l]=a;return n},a=>{throw new ct(a.message)}):n},t),this}conflicts(t,r){return me("<string|object> [string|array]",[t,r],arguments.length),C(this,It,"f").conflicts(t,r),this}config(t="config",r,n){return me("[object|string] [string|function] [function]",[t,r,n],arguments.length),typeof t=="object"&&!Array.isArray(t)?(t=af(t,C(this,Aa,"f"),this[Ba]()["deep-merge-config"]||!1,C(this,Te,"f")),C(this,we,"f").configObjects=(C(this,we,"f").configObjects||[]).concat(t),this):(typeof r=="function"&&(n=r,r=void 0),this.describe(t,r||C(this,Le,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(t)?t:[t]).forEach(i=>{C(this,we,"f").config[i]=n||!0}),this)}completion(t,r,n){return me("[string] [string|boolean|function] [function]",[t,r,n],arguments.length),typeof r=="function"&&(n=r,r=void 0),ge(this,un,t||C(this,un,"f")||"completion","f"),!r&&r!==!1&&(r="generate completion script"),this.command(C(this,un,"f"),r),n&&C(this,In,"f").registerFunction(n),this}command(t,r,n,i,s,o){return me("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[t,r,n,i,s,o],arguments.length),C(this,Lt,"f").addHandler(t,r,n,i,s,o),this}commands(t,r,n,i,s,o){return this.command(t,r,n,i,s,o)}commandDir(t,r){me("<string> [object]",[t,r],arguments.length);let n=C(this,fm,"f")||C(this,Te,"f").require;return C(this,Lt,"f").addDirectory(t,n,C(this,Te,"f").getCallerFile(),r),this}count(t){return me("<array|string>",[t],arguments.length),this[ro]("count",t),this[Ma](t),this}default(t,r,n){return me("<object|string|array> [*] [string]",[t,r,n],arguments.length),n&&(dD(t,C(this,Te,"f")),C(this,we,"f").defaultDescription[t]=n),typeof r=="function"&&(dD(t,C(this,Te,"f")),C(this,we,"f").defaultDescription[t]||(C(this,we,"f").defaultDescription[t]=C(this,Le,"f").functionDescription(r)),r=r.call()),this[ll](this.default.bind(this),"default",t,r),this}defaults(t,r,n){return this.default(t,r,n)}demandCommand(t=1,r,n,i){return me("[number] [number|string] [string|null|undefined] [string|null|undefined]",[t,r,n,i],arguments.length),typeof r!="number"&&(n=r,r=1/0),this.global("_",!1),C(this,we,"f").demandedCommands._={min:t,max:r,minMsg:n,maxMsg:i},this}demand(t,r,n){return Array.isArray(r)?(r.forEach(i=>{Pr(n,!0,C(this,Te,"f")),this.demandOption(i,n)}),r=1/0):typeof r!="number"&&(n=r,r=1/0),typeof t=="number"?(Pr(n,!0,C(this,Te,"f")),this.demandCommand(t,r,n,n)):Array.isArray(t)?t.forEach(i=>{Pr(n,!0,C(this,Te,"f")),this.demandOption(i,n)}):typeof n=="string"?this.demandOption(t,n):(n===!0||typeof n>"u")&&this.demandOption(t),this}demandOption(t,r){return me("<object|string|array> [string]",[t,r],arguments.length),this[ll](this.demandOption.bind(this),"demandedOptions",t,r),this}deprecateOption(t,r){return me("<string> [string|boolean]",[t,r],arguments.length),C(this,we,"f").deprecatedOptions[t]=r,this}describe(t,r){return me("<object|string|array> [string]",[t,r],arguments.length),this[_D](t,!0),C(this,Le,"f").describe(t,r),this}detectLocale(t){return me("<boolean>",[t],arguments.length),ge(this,Ia,t,"f"),this}env(t){return me("[string|boolean]",[t],arguments.length),t===!1?delete C(this,we,"f").envPrefix:C(this,we,"f").envPrefix=t||"",this}epilogue(t){return me("<string>",[t],arguments.length),C(this,Le,"f").epilog(t),this}epilog(t){return this.epilogue(t)}example(t,r){return me("<string|array> [string]",[t,r],arguments.length),Array.isArray(t)?t.forEach(n=>this.example(...n)):C(this,Le,"f").example(t,r),this}exit(t,r){ge(this,ln,!0,"f"),ge(this,eo,r,"f"),C(this,Tn,"f")&&C(this,Te,"f").process.exit(t)}exitProcess(t=!0){return me("[boolean]",[t],arguments.length),ge(this,Tn,t,"f"),this}fail(t){if(me("<function|boolean>",[t],arguments.length),typeof t=="boolean"&&t!==!1)throw new ct("Invalid first argument. Expected function or boolean 'false'");return C(this,Le,"f").failFn(t),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(t,r){return me("<array> [function]",[t,r],arguments.length),r?C(this,In,"f").getCompletion(t,r):new Promise((n,i)=>{C(this,In,"f").getCompletion(t,(s,o)=>{s?i(s):n(o)})})}getDemandedOptions(){return me([],0),C(this,we,"f").demandedOptions}getDemandedCommands(){return me([],0),C(this,we,"f").demandedCommands}getDeprecatedOptions(){return me([],0),C(this,we,"f").deprecatedOptions}getDetectLocale(){return C(this,Ia,"f")}getExitProcess(){return C(this,Tn,"f")}getGroups(){return Object.assign({},C(this,Ni,"f"),C(this,Pa,"f"))}getHelp(){if(ge(this,ln,!0,"f"),!C(this,Le,"f").hasCachedHelpMessage()){if(!this.parsed){let r=this[lf](C(this,to,"f"),void 0,void 0,0,!0);if(ft(r))return r.then(()=>C(this,Le,"f").help())}let t=C(this,Lt,"f").runDefaultBuilderOn(this);if(ft(t))return t.then(()=>C(this,Le,"f").help())}return Promise.resolve(C(this,Le,"f").help())}getOptions(){return C(this,we,"f")}getStrict(){return C(this,La,"f")}getStrictCommands(){return C(this,Na,"f")}getStrictOptions(){return C(this,Ra,"f")}global(t,r){return me("<string|array> [boolean]",[t,r],arguments.length),t=[].concat(t),r!==!1?C(this,we,"f").local=C(this,we,"f").local.filter(n=>t.indexOf(n)===-1):t.forEach(n=>{C(this,we,"f").local.includes(n)||C(this,we,"f").local.push(n)}),this}group(t,r){me("<string|array> <string>",[t,r],arguments.length);let n=C(this,Pa,"f")[r]||C(this,Ni,"f")[r];C(this,Pa,"f")[r]&&delete C(this,Pa,"f")[r];let i={};return C(this,Ni,"f")[r]=(n||[]).concat(t).filter(s=>i[s]?!1:i[s]=!0),this}hide(t){return me("<string>",[t],arguments.length),C(this,we,"f").hiddenOptions.push(t),this}implies(t,r){return me("<string|object> [number|string|array]",[t,r],arguments.length),C(this,It,"f").implies(t,r),this}locale(t){return me("[string]",[t],arguments.length),t===void 0?(this[wD](),C(this,Te,"f").y18n.getLocale()):(ge(this,Ia,!1,"f"),C(this,Te,"f").y18n.setLocale(t),this)}middleware(t,r,n){return C(this,Pn,"f").addMiddleware(t,!!r,n)}nargs(t,r){return me("<string|object|array> [number]",[t,r],arguments.length),this[ll](this.nargs.bind(this),"narg",t,r),this}normalize(t){return me("<array|string>",[t],arguments.length),this[ro]("normalize",t),this}number(t){return me("<array|string>",[t],arguments.length),this[ro]("number",t),this[Ma](t),this}option(t,r){if(me("<string|object> [object]",[t,r],arguments.length),typeof t=="object")Object.keys(t).forEach(n=>{this.options(n,t[n])});else{typeof r!="object"&&(r={}),this[Ma](t),C(this,Ri,"f")&&(t==="version"||r?.alias==="version")&&this[l_](['"version" is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join(`
|
|
486
486
|
`),void 0,"versionWarning"),C(this,we,"f").key[t]=!0,r.alias&&this.alias(t,r.alias);let n=r.deprecate||r.deprecated;n&&this.deprecateOption(t,n);let i=r.demand||r.required||r.require;i&&this.demand(t,i),r.demandOption&&this.demandOption(t,typeof r.demandOption=="string"?r.demandOption:void 0),r.conflicts&&this.conflicts(t,r.conflicts),"default"in r&&this.default(t,r.default),r.implies!==void 0&&this.implies(t,r.implies),r.nargs!==void 0&&this.nargs(t,r.nargs),r.config&&this.config(t,r.configParser),r.normalize&&this.normalize(t),r.choices&&this.choices(t,r.choices),r.coerce&&this.coerce(t,r.coerce),r.group&&this.group(t,r.group),(r.boolean||r.type==="boolean")&&(this.boolean(t),r.alias&&this.boolean(r.alias)),(r.array||r.type==="array")&&(this.array(t),r.alias&&this.array(r.alias)),(r.number||r.type==="number")&&(this.number(t),r.alias&&this.number(r.alias)),(r.string||r.type==="string")&&(this.string(t),r.alias&&this.string(r.alias)),(r.count||r.type==="count")&&this.count(t),typeof r.global=="boolean"&&this.global(t,r.global),r.defaultDescription&&(C(this,we,"f").defaultDescription[t]=r.defaultDescription),r.skipValidation&&this.skipValidation(t);let s=r.describe||r.description||r.desc,o=C(this,Le,"f").getDescriptions();(!Object.prototype.hasOwnProperty.call(o,t)||typeof s=="string")&&this.describe(t,s),r.hidden&&this.hide(t),r.requiresArg&&this.requiresArg(t)}return this}options(t,r){return this.option(t,r)}parse(t,r,n){me("[string|array] [function|boolean|object] [function]",[t,r,n],arguments.length),this[c_](),typeof t>"u"&&(t=C(this,to,"f")),typeof r=="object"&&(ge(this,Ta,r,"f"),r=n),typeof r=="function"&&(ge(this,cn,r,"f"),r=!1),r||ge(this,to,t,"f"),C(this,cn,"f")&&ge(this,Tn,!1,"f");let i=this[lf](t,!!r),s=this.parsed;return C(this,In,"f").setParsed(this.parsed),ft(i)?i.then(o=>(C(this,cn,"f")&&C(this,cn,"f").call(this,C(this,eo,"f"),o,C(this,Qt,"f")),o)).catch(o=>{throw C(this,cn,"f")&&C(this,cn,"f")(o,this.parsed.argv,C(this,Qt,"f")),o}).finally(()=>{this[bD](),this.parsed=s}):(C(this,cn,"f")&&C(this,cn,"f").call(this,C(this,eo,"f"),i,C(this,Qt,"f")),this[bD](),this.parsed=s,i)}parseAsync(t,r,n){let i=this.parse(t,r,n);return ft(i)?i:Promise.resolve(i)}parseSync(t,r,n){let i=this.parse(t,r,n);if(ft(i))throw new ct(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return i}parserConfiguration(t){return me("<object>",[t],arguments.length),ge(this,pm,t,"f"),this}pkgConf(t,r){me("<string> [string]",[t,r],arguments.length);let n=null,i=this[CD](r||C(this,Aa,"f"));return i[t]&&typeof i[t]=="object"&&(n=af(i[t],r||C(this,Aa,"f"),this[Ba]()["deep-merge-config"]||!1,C(this,Te,"f")),C(this,we,"f").configObjects=(C(this,we,"f").configObjects||[]).concat(n)),this}positional(t,r){me("<string> <object>",[t,r],arguments.length);let n=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];r=Zs(r,(o,a)=>o==="type"&&!["string","number","boolean"].includes(a)?!1:n.includes(o));let i=C(this,uf,"f").fullCommands[C(this,uf,"f").fullCommands.length-1],s=i?C(this,Lt,"f").cmdToParseOptions(i):{array:[],alias:{},default:{},demand:{}};return sl(s).forEach(o=>{let a=s[o];Array.isArray(a)?a.indexOf(t)!==-1&&(r[o]=!0):a[t]&&!(o in r)&&(r[o]=a[t])}),this.group(t,C(this,Le,"f").getPositionalGroupName()),this.option(t,r)}recommendCommands(t=!0){return me("[boolean]",[t],arguments.length),ge(this,dm,t,"f"),this}required(t,r,n){return this.demand(t,r,n)}require(t,r,n){return this.demand(t,r,n)}requiresArg(t){return me("<array|string|object> [number]",[t],arguments.length),typeof t=="string"&&C(this,we,"f").narg[t]?this:(this[ll](this.requiresArg.bind(this),"narg",t,NaN),this)}showCompletionScript(t,r){return me("[string] [string]",[t,r],arguments.length),t=t||this.$0,C(this,al,"f").log(C(this,In,"f").generateCompletionScript(t,r||C(this,un,"f")||"completion")),this}showHelp(t){if(me("[string|function]",[t],arguments.length),ge(this,ln,!0,"f"),!C(this,Le,"f").hasCachedHelpMessage()){if(!this.parsed){let n=this[lf](C(this,to,"f"),void 0,void 0,0,!0);if(ft(n))return n.then(()=>{C(this,Le,"f").showHelp(t)}),this}let r=C(this,Lt,"f").runDefaultBuilderOn(this);if(ft(r))return r.then(()=>{C(this,Le,"f").showHelp(t)}),this}return C(this,Le,"f").showHelp(t),this}scriptName(t){return this.customScriptName=!0,this.$0=t,this}showHelpOnFail(t,r){return me("[boolean|string] [string]",[t,r],arguments.length),C(this,Le,"f").showHelpOnFail(t,r),this}showVersion(t){return me("[string|function]",[t],arguments.length),C(this,Le,"f").showVersion(t),this}skipValidation(t){return me("<array|string>",[t],arguments.length),this[ro]("skipValidation",t),this}strict(t){return me("[boolean]",[t],arguments.length),ge(this,La,t!==!1,"f"),this}strictCommands(t){return me("[boolean]",[t],arguments.length),ge(this,Na,t!==!1,"f"),this}strictOptions(t){return me("[boolean]",[t],arguments.length),ge(this,Ra,t!==!1,"f"),this}string(t){return me("<array|string>",[t],arguments.length),this[ro]("string",t),this[Ma](t),this}terminalWidth(){return me([],0),C(this,Te,"f").process.stdColumns}updateLocale(t){return this.updateStrings(t)}updateStrings(t){return me("<object>",[t],arguments.length),ge(this,Ia,!1,"f"),C(this,Te,"f").y18n.updateLocale(t),this}usage(t,r,n,i){if(me("<string|null|undefined> [string|boolean] [function|object] [function]",[t,r,n,i],arguments.length),r!==void 0){if(Pr(t,null,C(this,Te,"f")),(t||"").match(/^\$0( |$)/))return this.command(t,r,n,i);throw new ct(".usage() description must start with $0 if being used as alias for .command()")}else return C(this,Le,"f").usage(t),this}usageConfiguration(t){return me("<object>",[t],arguments.length),ge(this,mm,t,"f"),this}version(t,r,n){let i="version";if(me("[boolean|string] [string] [string]",[t,r,n],arguments.length),C(this,Ri,"f")&&(this[vD](C(this,Ri,"f")),C(this,Le,"f").version(void 0),ge(this,Ri,null,"f")),arguments.length===0)n=this[d_](),t=i;else if(arguments.length===1){if(t===!1)return this;n=t,t=i}else arguments.length===2&&(n=r,r=void 0);return ge(this,Ri,typeof t=="string"?t:i,"f"),r=r||C(this,Le,"f").deferY18nLookup("Show version number"),C(this,Le,"f").version(n||void 0),this.boolean(C(this,Ri,"f")),this.describe(C(this,Ri,"f"),r),this}wrap(t){return me("<number|null|undefined>",[t],arguments.length),C(this,Le,"f").wrap(t),this}[(Lt=new WeakMap,Aa=new WeakMap,uf=new WeakMap,In=new WeakMap,un=new WeakMap,am=new WeakMap,eo=new WeakMap,Ia=new WeakMap,um=new WeakMap,Tn=new WeakMap,lm=new WeakMap,Pn=new WeakMap,Ni=new WeakMap,ln=new WeakMap,Ln=new WeakMap,cm=new WeakMap,al=new WeakMap,Qt=new WeakMap,we=new WeakMap,fm=new WeakMap,pm=new WeakMap,cn=new WeakMap,Ta=new WeakMap,ul=new WeakMap,Pa=new WeakMap,to=new WeakMap,dm=new WeakMap,Te=new WeakMap,La=new WeakMap,Na=new WeakMap,Ra=new WeakMap,Le=new WeakMap,mm=new WeakMap,Ri=new WeakMap,It=new WeakMap,a_)](t){if(!t._||!t["--"])return t;t._.push.apply(t._,t["--"]);try{delete t["--"]}catch{}return t}[u_](){return{log:(...t)=>{this[hm]()||console.log(...t),ge(this,ln,!0,"f"),C(this,Qt,"f").length&&ge(this,Qt,C(this,Qt,"f")+`
|
|
487
487
|
`,"f"),ge(this,Qt,C(this,Qt,"f")+t.join(" "),"f")},error:(...t)=>{this[hm]()||console.error(...t),ge(this,ln,!0,"f"),C(this,Qt,"f").length&&ge(this,Qt,C(this,Qt,"f")+`
|
|
488
|
-
`,"f"),ge(this,Qt,C(this,Qt,"f")+t.join(" "),"f")}}}[vD](t){sl(C(this,we,"f")).forEach(r=>{if((i=>i==="configObjects")(r))return;let n=C(this,we,"f")[r];Array.isArray(n)?n.includes(t)&&n.splice(n.indexOf(t),1):typeof n=="object"&&delete n[t]}),delete C(this,Le,"f").getDescriptions()[t]}[l_](t,r,n){C(this,um,"f")[n]||(C(this,Te,"f").process.emitWarning(t,r),C(this,um,"f")[n]=!0)}[c_](){C(this,lm,"f").push({options:C(this,we,"f"),configObjects:C(this,we,"f").configObjects.slice(0),exitProcess:C(this,Tn,"f"),groups:C(this,Ni,"f"),strict:C(this,La,"f"),strictCommands:C(this,Na,"f"),strictOptions:C(this,Ra,"f"),completionCommand:C(this,un,"f"),output:C(this,Qt,"f"),exitError:C(this,eo,"f"),hasOutput:C(this,ln,"f"),parsed:this.parsed,parseFn:C(this,cn,"f"),parseContext:C(this,Ta,"f")}),C(this,Le,"f").freeze(),C(this,It,"f").freeze(),C(this,Lt,"f").freeze(),C(this,Pn,"f").freeze()}[f_](){let t="",r;return/\b(node|iojs|electron)(\.exe)?$/.test(C(this,Te,"f").process.argv()[0])?r=C(this,Te,"f").process.argv().slice(1,2):r=C(this,Te,"f").process.argv().slice(0,1),t=r.map(n=>{let i=this[x_](C(this,Aa,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&i.length<n.length?i:n}).join(" ").trim(),C(this,Te,"f").getEnv("_")&&C(this,Te,"f").getProcessArgvBin()===C(this,Te,"f").getEnv("_")&&(t=C(this,Te,"f").getEnv("_").replace(`${C(this,Te,"f").path.dirname(C(this,Te,"f").process.execPath())}/`,"")),t}[Ba](){return C(this,pm,"f")}[p_](){return C(this,mm,"f")}[wD](){if(!C(this,Ia,"f"))return;let t=C(this,Te,"f").getEnv("LC_ALL")||C(this,Te,"f").getEnv("LC_MESSAGES")||C(this,Te,"f").getEnv("LANG")||C(this,Te,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""))}[d_](){return this[CD]().version||"unknown"}[m_](t){let r=t["--"]?t["--"]:t._;for(let n=0,i;(i=r[n])!==void 0;n++)C(this,Te,"f").Parser.looksLikeNumber(i)&&Number.isSafeInteger(Math.floor(parseFloat(`${i}`)))&&(r[n]=Number(i));return t}[CD](t){let r=t||"*";if(C(this,ul,"f")[r])return C(this,ul,"f")[r];let n={};try{let i=t||C(this,Te,"f").mainFilename;!t&&C(this,Te,"f").path.extname(i)&&(i=C(this,Te,"f").path.dirname(i));let s=C(this,Te,"f").findUp(i,(o,a)=>{if(a.includes("package.json"))return"package.json"});Pr(s,void 0,C(this,Te,"f")),n=JSON.parse(C(this,Te,"f").readFileSync(s,"utf8"))}catch{}return C(this,ul,"f")[r]=n||{},C(this,ul,"f")[r]}[ro](t,r){r=[].concat(r),r.forEach(n=>{n=this[xD](n),C(this,we,"f")[t].push(n)})}[ll](t,r,n,i){this[SD](t,r,n,i,(s,o,a)=>{C(this,we,"f")[s][o]=a})}[ED](t,r,n,i){this[SD](t,r,n,i,(s,o,a)=>{C(this,we,"f")[s][o]=(C(this,we,"f")[s][o]||[]).concat(a)})}[SD](t,r,n,i,s){if(Array.isArray(n))n.forEach(o=>{t(o,i)});else if((o=>typeof o=="object")(n))for(let o of sl(n))t(o,n[o]);else s(r,this[xD](n),i)}[xD](t){return t==="__proto__"?"___proto___":t}[_D](t,r){return this[ll](this[_D].bind(this),"key",t,r),this}[bD](){var t,r,n,i,s,o,a,u,l,c,f,p;let d=C(this,lm,"f").pop();Pr(d,void 0,C(this,Te,"f"));let m;t=this,r=this,n=this,i=this,s=this,o=this,a=this,u=this,l=this,c=this,f=this,p=this,{options:{set value(y){ge(t,we,y,"f")}}.value,configObjects:m,exitProcess:{set value(y){ge(r,Tn,y,"f")}}.value,groups:{set value(y){ge(n,Ni,y,"f")}}.value,output:{set value(y){ge(i,Qt,y,"f")}}.value,exitError:{set value(y){ge(s,eo,y,"f")}}.value,hasOutput:{set value(y){ge(o,ln,y,"f")}}.value,parsed:this.parsed,strict:{set value(y){ge(a,La,y,"f")}}.value,strictCommands:{set value(y){ge(u,Na,y,"f")}}.value,strictOptions:{set value(y){ge(l,Ra,y,"f")}}.value,completionCommand:{set value(y){ge(c,un,y,"f")}}.value,parseFn:{set value(y){ge(f,cn,y,"f")}}.value,parseContext:{set value(y){ge(p,Ta,y,"f")}}.value}=d,C(this,we,"f").configObjects=m,C(this,Le,"f").unfreeze(),C(this,It,"f").unfreeze(),C(this,Lt,"f").unfreeze(),C(this,Pn,"f").unfreeze()}[h_](t,r){return Fa(r,n=>(t(n),n))}getInternalMethods(){return{getCommandInstance:this[g_].bind(this),getContext:this[y_].bind(this),getHasOutput:this[D_].bind(this),getLoggerInstance:this[v_].bind(this),getParseContext:this[w_].bind(this),getParserConfiguration:this[Ba].bind(this),getUsageConfiguration:this[p_].bind(this),getUsageInstance:this[C_].bind(this),getValidationInstance:this[E_].bind(this),hasParseCallback:this[hm].bind(this),isGlobalContext:this[S_].bind(this),postProcess:this[ka].bind(this),reset:this[OD].bind(this),runValidation:this[FD].bind(this),runYargsParserAndExecuteCommands:this[lf].bind(this),setHasOutput:this[__].bind(this)}}[g_](){return C(this,Lt,"f")}[y_](){return C(this,uf,"f")}[D_](){return C(this,ln,"f")}[v_](){return C(this,al,"f")}[w_](){return C(this,Ta,"f")||{}}[C_](){return C(this,Le,"f")}[E_](){return C(this,It,"f")}[hm](){return!!C(this,cn,"f")}[S_](){return C(this,cm,"f")}[ka](t,r,n,i){return n||ft(t)||(r||(t=this[a_](t)),(this[Ba]()["parse-positional-numbers"]||this[Ba]()["parse-positional-numbers"]===void 0)&&(t=this[m_](t)),i&&(t=Oa(t,this,C(this,Pn,"f").getMiddleware(),!1))),t}[OD](t={}){ge(this,we,C(this,we,"f")||{},"f");let r={};r.local=C(this,we,"f").local||[],r.configObjects=C(this,we,"f").configObjects||[];let n={};r.local.forEach(o=>{n[o]=!0,(t[o]||[]).forEach(a=>{n[a]=!0})}),Object.assign(C(this,Pa,"f"),Object.keys(C(this,Ni,"f")).reduce((o,a)=>{let u=C(this,Ni,"f")[a].filter(l=>!(l in n));return u.length>0&&(o[a]=u),o},{})),ge(this,Ni,{},"f");let i=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],s=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return i.forEach(o=>{r[o]=(C(this,we,"f")[o]||[]).filter(a=>!n[a])}),s.forEach(o=>{r[o]=Zs(C(this,we,"f")[o],a=>!n[a])}),r.envPrefix=C(this,we,"f").envPrefix,ge(this,we,r,"f"),ge(this,Le,C(this,Le,"f")?C(this,Le,"f").reset(n):Q2(this,C(this,Te,"f")),"f"),ge(this,It,C(this,It,"f")?C(this,It,"f").reset(n):s_(this,C(this,Le,"f"),C(this,Te,"f")),"f"),ge(this,Lt,C(this,Lt,"f")?C(this,Lt,"f").reset():X2(C(this,Le,"f"),C(this,It,"f"),C(this,Pn,"f"),C(this,Te,"f")),"f"),C(this,In,"f")||ge(this,In,r_(this,C(this,Le,"f"),C(this,Lt,"f"),C(this,Te,"f")),"f"),C(this,Pn,"f").reset(),ge(this,un,null,"f"),ge(this,Qt,"","f"),ge(this,eo,null,"f"),ge(this,ln,!1,"f"),this.parsed=!1,this}[x_](t,r){return C(this,Te,"f").path.relative(t,r)}[lf](t,r,n,i=0,s=!1){let o=!!n||s;t=t||C(this,to,"f"),C(this,we,"f").__=C(this,Te,"f").y18n.__,C(this,we,"f").configuration=this[Ba]();let a=!!C(this,we,"f").configuration["populate--"],u=Object.assign({},C(this,we,"f").configuration,{"populate--":!0}),l=C(this,Te,"f").Parser.detailed(t,Object.assign({},C(this,we,"f"),{configuration:{"parse-positional-numbers":!1,...u}})),c=Object.assign(l.argv,C(this,Ta,"f")),f,p=l.aliases,d=!1,m=!1;Object.keys(c).forEach(y=>{y===C(this,Ln,"f")&&c[y]?d=!0:y===C(this,Ri,"f")&&c[y]&&(m=!0)}),c.$0=this.$0,this.parsed=l,i===0&&C(this,Le,"f").clearCachedHelpMessage();try{if(this[wD](),r)return this[ka](c,a,!!n,!1);C(this,Ln,"f")&&[C(this,Ln,"f")].concat(p[C(this,Ln,"f")]||[]).filter(v=>v.length>1).includes(""+c._[c._.length-1])&&(c._.pop(),d=!0),ge(this,cm,!1,"f");let y=C(this,Lt,"f").getCommands(),D=C(this,In,"f").completionKey in c,h=d||D||s;if(c._.length){if(y.length){let g;for(let v=i||0,w;c._[v]!==void 0;v++)if(w=String(c._[v]),y.includes(w)&&w!==C(this,un,"f")){let E=C(this,Lt,"f").runCommand(w,this,l,v+1,s,d||m||s);return this[ka](E,a,!!n,!1)}else if(!g&&w!==C(this,un,"f")){g=w;break}!C(this,Lt,"f").hasDefaultCommand()&&C(this,dm,"f")&&g&&!h&&C(this,It,"f").recommendCommands(g,y)}C(this,un,"f")&&c._.includes(C(this,un,"f"))&&!D&&(C(this,Tn,"f")&&Qs(!0),this.showCompletionScript(),this.exit(0))}if(C(this,Lt,"f").hasDefaultCommand()&&!h){let g=C(this,Lt,"f").runCommand(null,this,l,0,s,d||m||s);return this[ka](g,a,!!n,!1)}if(D){C(this,Tn,"f")&&Qs(!0),t=[].concat(t);let g=t.slice(t.indexOf(`--${C(this,In,"f").completionKey}`)+1);return C(this,In,"f").getCompletion(g,(v,w)=>{if(v)throw new ct(v.message);(w||[]).forEach(E=>{C(this,al,"f").log(E)}),this.exit(0)}),this[ka](c,!a,!!n,!1)}if(C(this,ln,"f")||(d?(C(this,Tn,"f")&&Qs(!0),o=!0,this.showHelp("log"),this.exit(0)):m&&(C(this,Tn,"f")&&Qs(!0),o=!0,C(this,Le,"f").showVersion("log"),this.exit(0))),!o&&C(this,we,"f").skipValidation.length>0&&(o=Object.keys(c).some(g=>C(this,we,"f").skipValidation.indexOf(g)>=0&&c[g]===!0)),!o){if(l.error)throw new ct(l.error.message);if(!D){let g=this[FD](p,{},l.error);n||(f=Oa(c,this,C(this,Pn,"f").getMiddleware(),!0)),f=this[h_](g,f??c),ft(f)&&!n&&(f=f.then(()=>Oa(c,this,C(this,Pn,"f").getMiddleware(),!1)))}}}catch(y){if(y instanceof ct)C(this,Le,"f").fail(y.message,y);else throw y}return this[ka](f??c,a,!!n,!0)}[FD](t,r,n,i){let s={...this.getDemandedOptions()};return o=>{if(n)throw new ct(n.message);C(this,It,"f").nonOptionCount(o),C(this,It,"f").requiredArguments(o,s);let a=!1;C(this,Na,"f")&&(a=C(this,It,"f").unknownCommands(o)),C(this,La,"f")&&!a?C(this,It,"f").unknownArguments(o,t,r,!!i):C(this,Ra,"f")&&C(this,It,"f").unknownArguments(o,t,{},!1,!1),C(this,It,"f").limitedChoices(o),C(this,It,"f").implications(o),C(this,It,"f").conflicting(o)}}[__](){ge(this,ln,!0,"f")}[Ma](t){if(typeof t=="string")C(this,we,"f").key[t]=!0;else for(let r of t)C(this,we,"f").key[r]=!0}};function J2(e){return!!e&&typeof e.getInternalMethods=="function"}var cV=b_(pD),O_=cV;import vt from"react";import{Box as ff,Text as ki}from"ink";import RD,{useContext as hV}from"react";import{Text as B_,Transform as gV}from"ink";var et="\x1B[",cf="\x1B]",cl="\x07",gm=";",F_=process.env.TERM_PROGRAM==="Apple_Terminal",Ge={};Ge.cursorTo=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");return typeof t!="number"?et+(e+1)+"G":et+(t+1)+";"+(e+1)+"H"};Ge.cursorMove=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");let r="";return e<0?r+=et+-e+"D":e>0&&(r+=et+e+"C"),t<0?r+=et+-t+"A":t>0&&(r+=et+t+"B"),r};Ge.cursorUp=(e=1)=>et+e+"A";Ge.cursorDown=(e=1)=>et+e+"B";Ge.cursorForward=(e=1)=>et+e+"C";Ge.cursorBackward=(e=1)=>et+e+"D";Ge.cursorLeft=et+"G";Ge.cursorSavePosition=F_?"\x1B7":et+"s";Ge.cursorRestorePosition=F_?"\x1B8":et+"u";Ge.cursorGetPosition=et+"6n";Ge.cursorNextLine=et+"E";Ge.cursorPrevLine=et+"F";Ge.cursorHide=et+"?25l";Ge.cursorShow=et+"?25h";Ge.eraseLines=e=>{let t="";for(let r=0;r<e;r++)t+=Ge.eraseLine+(r<e-1?Ge.cursorUp():"");return e&&(t+=Ge.cursorLeft),t};Ge.eraseEndLine=et+"K";Ge.eraseStartLine=et+"1K";Ge.eraseLine=et+"2K";Ge.eraseDown=et+"J";Ge.eraseUp=et+"1J";Ge.eraseScreen=et+"2J";Ge.scrollUp=et+"S";Ge.scrollDown=et+"T";Ge.clearScreen="\x1Bc";Ge.clearTerminal=process.platform==="win32"?`${Ge.eraseScreen}${et}0f`:`${Ge.eraseScreen}${et}3J${et}H`;Ge.beep=cl;Ge.link=(e,t)=>[cf,"8",gm,gm,t,cl,e,cf,"8",gm,gm,cl].join("");Ge.image=(e,t={})=>{let r=`${cf}1337;File=inline=1`;return t.width&&(r+=`;width=${t.width}`),t.height&&(r+=`;height=${t.height}`),t.preserveAspectRatio===!1&&(r+=";preserveAspectRatio=0"),r+":"+e.toString("base64")+cl};Ge.iTerm={setCwd:(e=process.cwd())=>`${cf}50;CurrentDir=${e}${cl}`,annotation:(e,t={})=>{let r=`${cf}1337;`,n=typeof t.x<"u",i=typeof t.y<"u";if((n||i)&&!(n&&i&&typeof t.length<"u"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return e=e.replace(/\|/g,""),r+=t.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",t.length>0?r+=(n?[e,t.length,t.x,t.y]:[t.length,e]).join("|"):r+=e,r+cl}};var A_=Ge;var ym=St(R_(),1);function ja(e,t,{target:r="stdout",...n}={}){return ym.default[r]?A_.link(e,t):n.fallback===!1?e:typeof n.fallback=="function"?n.fallback(e,t):`${e} (\u200B${t}\u200B)`}ja.isSupported=ym.default.stdout;ja.stderr=(e,t,r={})=>ja(e,t,{target:"stderr",...r});ja.stderr.isSupported=ym.default.stderr;import{createContext as mV}from"react";var st=mV({lite:!1});var Dt=({text:e,url:t,subtle:r})=>{let{lite:n}=hV(st);return RD.createElement(B_,{color:n||r?void 0:"blueBright",bold:!0},RD.createElement(gV,{transform:()=>ja(e,t)},RD.createElement(B_,null,e)))};var Bi=(o=>(o.PROD_CN="prod-cn",o.PROD="prod",o.STAGING="staging",o.STAGING_CN="staging-cn",o.DEV="dev",o.LOCAL="local",o))(Bi||{}),k_=({fallback:e="prod"})=>{let t=process.env.ENV;if(!t)return e;let r=t.toLowerCase().trim();return Object.values(Bi).includes(r)?r:e},M_=e=>e==="prod-cn"||e==="staging-cn";function so(e,t){if(e==null)throw new Error(t||"argument is null");return e}var io=class extends Error{constructor(t){super(`Unreachable case: ${t}`)}};var j_=({flavor:e})=>{let t;switch(e){case"prod":t="https://www.canva.com/policies/canva-developer-terms/";break;case"prod-cn":t="https://www.canva.cn/policies/canva-developer-terms/";break;case"staging":t="https://www.canva-staging.com/policies/canva-developer-terms/";break;case"staging-cn":t="https://www.canva-staging.cn/policies/canva-developer-terms/";break;case"dev":t="https://www.canva-dev.com/policies/canva-developer-terms/";break;case"local":t="http://localhost:3000/policies/canva-developer-terms/";break;default:throw new io(e)}return t},Dm=({flavor:e,appId:t})=>{let r;switch(e){case"prod":r="https://www.canva.com/developers/app";break;case"prod-cn":r="https://www.canva.cn/developers/app";break;case"staging":r="https://www.canva-staging.com/developers/app";break;case"staging-cn":r="https://www.canva-staging.cn/developers/app";break;case"dev":r="https://www.canva-dev.com/developers/app";break;case"local":r="http://localhost:3000/developers/app";break;default:throw new io(e)}return t?`${r}/${t}`:`${r}s`},V_=e=>{let t,r=e.appId.toLowerCase();switch(e.flavor){case"prod":t=`https://app-${r}.canva-apps.com`;break;case"prod-cn":t=`https://app-${r}.canva-apps.cn`;break;case"staging":t=`https://app-${r}.canva-apps-staging.com`;break;case"staging-cn":t=`https://app-${r}.canva-apps-staging.cn`;break;case"dev":t=`https://app-${r}.canva-apps-dev.com`;break;case"local":t="https://localhost:3000/";break;default:throw new io(e.flavor)}return t};import U_,{useContext as DV}from"react";import{Text as $_}from"ink";var Nt=e=>{let{lite:t}=DV(st);return t?e.alt?U_.createElement($_,null,e.alt):void 0:U_.createElement($_,{...e})};import{useContext as vV}from"react";import{Text as wV}from"ink";import CV from"react";var Rt=e=>{let{lite:t}=vV(st);return CV.createElement(wV,{bold:e.bold??!0,color:t?void 0:"cyanBright",italic:e.italic},e.children)};var G_=()=>{let{lite:e}=vt.useContext(st);return vt.createElement(ff,{flexDirection:"column",margin:.5},vt.createElement(ki,null,vt.createElement(Nt,null,"\u{1F44B} "),vt.createElement(ki,{bold:!0},"Welcome!")," Let\u2019s bring your Canva app to life."),vt.createElement(ff,{marginTop:1,flexDirection:"column"},vt.createElement(ff,{flexDirection:"column"},vt.createElement(ki,null,"Run ",vt.createElement(Rt,null,"canva apps create")," to create a new app"),vt.createElement(ki,{dimColor:!0},"By creating an app, you agree to the"," ",vt.createElement(Dt,{url:j_({flavor:"prod"}),text:"Canva Developer terms"}))),vt.createElement(ff,{marginTop:1},vt.createElement(ki,null,"Run ",vt.createElement(Rt,null,"canva apps list")," to view a list of your apps")),vt.createElement(ff,{borderStyle:e?void 0:"double",borderColor:e?void 0:"cyanBright",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",width:"98%",marginTop:1,marginX:2,paddingX:1},vt.createElement(ki,{bold:!0},vt.createElement(Nt,null,"\u{1F4A1} "),"Tips"),vt.createElement(ki,null," ","\u2022 For a list of all commands, run"," ",vt.createElement(Rt,null,"canva --help")),vt.createElement(ki,null," ","\u2022 View our Developer Documentation"," ",vt.createElement(Dt,{url:"https://canva.dev",text:"Developer Documentation"})," for more information"),vt.createElement(ki,null," ","\u2022 Examples of all components from"," ",vt.createElement(ki,{bold:!0},"@canva/app-ui-kit")," are available in the"," ",vt.createElement(Dt,{url:"https://www.canva.dev/docs/apps/app-ui-kit/storybook",text:"App UI Kit Storybook"})))))};import{render as vte}from"ink";import jp from"react";import ds,{useContext as S7,useEffect as x7,useState as Am}from"react";import{Box as eO,Spacer as tO}from"ink";var q_="#8b3dff",vm="grey",BD="#7d2ae7",z_=[{color:"#00c4cc",pos:0},{pos:.5},{color:"#6420ff",pos:.9},{color:BD,pos:1}];import Mi from"react";import{Box as H_,Text as Va}from"ink";var Y_=({name:e,currentVersion:t,latestVersion:r})=>{let{lite:n}=Mi.useContext(st);return!r||r===t?null:n?Mi.createElement(H_,{flexDirection:"column"},Mi.createElement(Va,null,"Update available ",t," \u2192 ",r),Mi.createElement(Va,null,"Run npm i -g ",e,"@latest to update")):Mi.createElement(H_,{borderStyle:"round",borderColor:"yellow",flexDirection:"column",alignSelf:"center",paddingLeft:2,width:52},Mi.createElement(Va,{color:"yellow"},"Update available ",Mi.createElement(Va,{color:"grey"},t," \u2192 "),Mi.createElement(Va,{color:"yellow"},r)),Mi.createElement(Va,null,"Run ",Mi.createElement(Va,{bold:!0},"npm i -g ",e,"@latest")," to update"))};import ao from"react";import{Box as Jb,Text as lv,useApp as D7}from"ink";import{Text as lle}from"ink";import fle from"react";var nU=St(Z_(),1);import Hue,{createContext as tU,useContext as rU}from"react";import ji from"node:process";function kD(){return ji.platform!=="win32"?ji.env.TERM!=="linux":!!ji.env.WT_SESSION||!!ji.env.TERMINUS_SUBLIME||ji.env.ConEmuTask==="{cmd::Cmder}"||ji.env.TERM_PROGRAM==="Terminus-Sublime"||ji.env.TERM_PROGRAM==="vscode"||ji.env.TERM==="xterm-256color"||ji.env.TERM==="alacritty"||ji.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var Q_={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258C",squareRight:"\u2590",squareCenter:"\u25A0",bullet:"\u25CF",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203A",triangleUp:"\u25B2",triangleUpSmall:"\u25B4",triangleDown:"\u25BC",triangleDownSmall:"\u25BE",triangleLeftSmall:"\u25C2",triangleRightSmall:"\u25B8",home:"\u2302",heart:"\u2665",musicNote:"\u266A",musicNoteBeamed:"\u266B",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221E",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215B",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254C",lineDashed5:"\u254D",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257A",lineDashed10:"\u257C",lineDashed11:"\u257E",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250A",lineVerticalDashed3:"\u250B",lineVerticalDashed4:"\u254E",lineVerticalDashed5:"\u254F",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257B",lineVerticalDashed10:"\u257D",lineVerticalDashed11:"\u257F",lineDownLeft:"\u2510",lineDownLeftArc:"\u256E",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250C",lineDownRightArc:"\u256D",lineDownBoldRightBold:"\u250F",lineDownBoldRight:"\u250E",lineDownRightBold:"\u250D",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256F",lineUpBoldLeftBold:"\u251B",lineUpBoldLeft:"\u251A",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255D",lineUpDoubleLeft:"\u255C",lineUpLeftDouble:"\u255B",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255A",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252B",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252A",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251C",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251D",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251F",lineUpBoldDownRight:"\u251E",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255F",lineUpDownRightDouble:"\u255E",lineDownLeftRight:"\u252C",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252F",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252E",lineDownLeftBoldRight:"\u252D",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253B",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253A",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253C",lineUpBoldDownBoldLeftBoldRightBold:"\u254B",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254A",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253D",lineUpDownLeftRightBold:"\u253E",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253F",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256C",lineUpDoubleDownDoubleLeftRight:"\u256B",lineUpDownLeftDoubleRightDouble:"\u256A",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},eb={tick:"\u2714",info:"\u2139",warning:"\u26A0",cross:"\u2718",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",pointer:"\u276F",triangleUpOutline:"\u25B3",triangleLeft:"\u25C0",triangleRight:"\u25B6",lozenge:"\u25C6",lozengeOutline:"\u25C7",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",star:"\u2605",play:"\u25B6",nodejs:"\u2B22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},RV={tick:"\u221A",info:"i",warning:"\u203C",cross:"\xD7",squareSmall:"\u25A1",squareSmallFilled:"\u25A0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25C4",triangleRight:"\u25BA",lozenge:"\u2666",lozengeOutline:"\u25CA",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",star:"\u2736",play:"\u25BA",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},BV={...Q_,...eb},kV={...Q_,...RV},MV=kD(),jV=MV?BV:kV,Tt=jV,Oue=Object.entries(eb);var tb={info:"blue",success:"green",error:"red",warning:"yellow"},VV={styles:{container:({variant:e})=>({flexGrow:1,borderStyle:"round",borderColor:tb[e],gap:1,paddingX:1}),iconContainer:()=>({flexShrink:0}),icon:({variant:e})=>({color:tb[e]}),content:()=>({flexShrink:1,flexGrow:1,minWidth:0,flexDirection:"column",gap:1}),title:()=>({bold:!0}),message:()=>({})},config({variant:e}){let t;return e==="info"&&(t=Tt.info),e==="success"&&(t=Tt.tick),e==="error"&&(t=Tt.cross),e==="warning"&&(t=Tt.warning),{icon:t}}},rb=VV;var UV={styles:{container:({color:e})=>({backgroundColor:e}),label:()=>({color:"black"})}},nb=UV;var $V={styles:{input:({isFocused:e})=>({dimColor:!e})}},ib=$V;var WV={styles:{container:()=>({flexDirection:"column"}),option:({isFocused:e})=>({gap:1,paddingLeft:e?0:2}),selectedIndicator:()=>({color:"green"}),focusIndicator:()=>({color:"blue"}),label({isFocused:e,isSelected:t}){let r;return t&&(r="green"),e&&(r="blue"),{color:r}},highlightedText:()=>({bold:!0})}},sb=WV;var GV={styles:{list:()=>({flexDirection:"column"}),listItem:()=>({gap:1}),marker:()=>({dimColor:!0}),content:()=>({flexDirection:"column"})}},ob=GV;var qV={styles:{container:()=>({flexGrow:1,minWidth:0}),completed:()=>({color:"magenta"}),remaining:()=>({dimColor:!0})},config:()=>({completedCharacter:Tt.square,remainingCharacter:Tt.squareLightShade})},ab=qV;var zV={styles:{container:()=>({flexDirection:"column"}),option:({isFocused:e})=>({gap:1,paddingLeft:e?0:2}),selectedIndicator:()=>({color:"green"}),focusIndicator:()=>({color:"blue"}),label({isFocused:e,isSelected:t}){let r;return t&&(r="green"),e&&(r="blue"),{color:r}},highlightedText:()=>({bold:!0})}},ub=zV;var HV={styles:{container:()=>({gap:1}),frame:()=>({color:"blue"}),label:()=>({})}},lb=HV;var YV={success:"green",error:"red",warning:"yellow",info:"blue"},KV={success:Tt.tick,error:Tt.cross,warning:Tt.warning,info:Tt.info},XV={styles:{container:()=>({gap:1}),iconContainer:()=>({flexShrink:0}),icon:({variant:e})=>({color:YV[e]}),message:()=>({})},config:({variant:e})=>({icon:KV[e]})},cb=XV;var JV={styles:{list:()=>({flexDirection:"column"}),listItem:()=>({gap:1}),marker:()=>({dimColor:!0}),content:()=>({flexDirection:"column"})},config:()=>({marker:Tt.line})},fb=JV;var ZV={styles:{value:()=>({})}},pb=ZV;var QV={styles:{value:()=>({})}},db=QV;var eU={styles:{value:()=>({})}},mb=eU;var iU={components:{Alert:rb,Badge:nb,ConfirmInput:ib,MultiSelect:sb,OrderedList:ob,ProgressBar:ab,Select:ub,Spinner:lb,StatusMessage:cb,UnorderedList:fb,TextInput:pb,EmailInput:db,PasswordInput:mb}},sU=tU(iU);var rt=e=>rU(sU).components[e];import oU from"react";import{Text as aU,useInput as uU}from"ink";function hb({isDisabled:e=!1,defaultChoice:t="confirm",submitOnEnter:r=!0,onConfirm:n,onCancel:i}){uU((o,a)=>{o.toLowerCase()==="y"&&n(),o.toLowerCase()==="n"&&i(),a.return&&r&&(t==="confirm"?n():i())},{isActive:!e});let{styles:s}=rt("ConfirmInput");return oU.createElement(aU,{...s.input({isFocused:!e})},t==="confirm"?"Y/n":"y/N")}import{Box as dU}from"ink";import VD,{useMemo as Db,useContext as mU}from"react";import{Box as gb,Text as cU}from"ink";import MD,{useContext as fU}from"react";import{createContext as lU}from"react";var df=Tt.line;var wm=lU({marker:df});function yb({children:e}){let{marker:t}=fU(wm),{styles:r}=rt("UnorderedList");return MD.createElement(gb,{...r.listItem()},MD.createElement(cU,{...r.marker()},t),MD.createElement(gb,{...r.content()},e))}import{createContext as pU}from"react";var jD=pU({depth:0});function hU({children:e}){let{depth:t}=mU(jD),{styles:r,config:n}=rt("UnorderedList"),i=Db(()=>({depth:t+1}),[t]),s=Db(()=>{let{marker:o}=n();return typeof o=="string"?{marker:o}:Array.isArray(o)?{marker:o[t]??o.at(-1)??df}:{marker:df}},[n,t]);return VD.createElement(jD.Provider,{value:i},VD.createElement(wm.Provider,{value:s},VD.createElement(dU,{...r.list()},e)))}hU.Item=yb;import dce from"react";import{Box as hce,Text as gce}from"ink";import qle from"react";import{Box as Hle,Text as Yle}from"ink";import{useReducer as Qle,useCallback as ece,useMemo as tce,useState as rce,useEffect as nce}from"react";var dl=class extends Map{first;constructor(t){let r=[],n,i,s=0;for(let o of t){let a={...o,previous:i,next:void 0,index:s};i&&(i.next=a),n||=a,r.push([o.value,a]),s++,i=a}super(r),this.first=n}};import{useInput as ace}from"ink";import _ce,{useState as bce}from"react";import{Box as Fce,Text as Ace,measureElement as Ice}from"ink";import mf from"react";import{Box as xU,Text as _U}from"ink";import Cm from"react";import{Box as gU,Text as UD}from"ink";function vb({isFocused:e,isSelected:t,children:r}){let{styles:n}=rt("Select");return Cm.createElement(gU,{...n.option({isFocused:e})},e&&Cm.createElement(UD,{...n.focusIndicator()},Tt.pointer),Cm.createElement(UD,{...n.label({isFocused:e,isSelected:t})},r),t&&Cm.createElement(UD,{...n.selectedIndicator()},Tt.tick))}import{isDeepStrictEqual as yU}from"node:util";import{useReducer as DU,useCallback as $D,useMemo as vU,useState as wU,useEffect as CU}from"react";var EU=(e,t)=>{switch(t.type){case"focus-next-option":{if(!e.focusedValue)return e;let r=e.optionMap.get(e.focusedValue);if(!r)return e;let n=r.next;if(!n)return e;if(!(n.index>=e.visibleToIndex))return{...e,focusedValue:n.value};let s=Math.min(e.optionMap.size,e.visibleToIndex+1),o=s-e.visibleOptionCount;return{...e,focusedValue:n.value,visibleFromIndex:o,visibleToIndex:s}}case"focus-previous-option":{if(!e.focusedValue)return e;let r=e.optionMap.get(e.focusedValue);if(!r)return e;let n=r.previous;if(!n)return e;if(!(n.index<=e.visibleFromIndex))return{...e,focusedValue:n.value};let s=Math.max(0,e.visibleFromIndex-1),o=s+e.visibleOptionCount;return{...e,focusedValue:n.value,visibleFromIndex:s,visibleToIndex:o}}case"select-focused-option":return{...e,previousValue:e.value,value:e.focusedValue};case"reset":return t.state}},wb=({visibleOptionCount:e,defaultValue:t,options:r})=>{let n=typeof e=="number"?Math.min(e,r.length):r.length,i=new dl(r);return{optionMap:i,visibleOptionCount:n,focusedValue:i.first?.value,visibleFromIndex:0,visibleToIndex:n,previousValue:t,value:t}},Cb=({visibleOptionCount:e=5,options:t,defaultValue:r,onChange:n})=>{let[i,s]=DU(EU,{visibleOptionCount:e,defaultValue:r,options:t},wb),[o,a]=wU(t);t!==o&&!yU(t,o)&&(s({type:"reset",state:wb({visibleOptionCount:e,defaultValue:r,options:t})}),a(t));let u=$D(()=>{s({type:"focus-next-option"})},[]),l=$D(()=>{s({type:"focus-previous-option"})},[]),c=$D(()=>{s({type:"select-focused-option"})},[]),f=vU(()=>t.map((p,d)=>({...p,index:d})).slice(i.visibleFromIndex,i.visibleToIndex),[t,i.visibleFromIndex,i.visibleToIndex]);return CU(()=>{i.value&&i.previousValue!==i.value&&n?.(i.value)},[i.previousValue,i.value,t,n]),{focusedValue:i.focusedValue,visibleFromIndex:i.visibleFromIndex,visibleToIndex:i.visibleToIndex,value:i.value,visibleOptions:f,focusNextOption:u,focusPreviousOption:l,selectFocusedOption:c}};import{useInput as SU}from"ink";var Eb=({isDisabled:e=!1,state:t})=>{SU((r,n)=>{n.downArrow&&t.focusNextOption(),n.upArrow&&t.focusPreviousOption(),n.return&&t.selectFocusedOption()},{isActive:!e})};function ps({isDisabled:e=!1,visibleOptionCount:t=5,highlightText:r,options:n,defaultValue:i,onChange:s}){let o=Cb({visibleOptionCount:t,options:n,defaultValue:i,onChange:s});Eb({isDisabled:e,state:o});let{styles:a}=rt("Select");return mf.createElement(xU,{...a.container()},o.visibleOptions.map(u=>{let l=u.label;if(r&&u.label.includes(r)){let c=u.label.indexOf(r);l=mf.createElement(mf.Fragment,null,u.label.slice(0,c),mf.createElement(_U,{...a.highlightedText()},r),u.label.slice(c+r.length))}return mf.createElement(vb,{key:u.value,isFocused:!e&&o.focusedValue===u.value,isSelected:o.value===u.value},l)}))}import GD from"react";import{Box as AU,Text as _b}from"ink";import{useEffect as OU,useState as FU}from"react";var WD={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots14:{interval:80,frames:["\u2809\u2809","\u2808\u2819","\u2800\u2839","\u2800\u28B8","\u2800\u28F0","\u2880\u28E0","\u28C0\u28C0","\u28C4\u2840","\u28C6\u2800","\u2847\u2800","\u280F\u2800","\u280B\u2801"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]},dwarfFortress:{interval:80,frames:[" \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A \u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A \xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A \xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\u2593\xA3 "," \u263A\u2593\xA3 "," \u263A\u2592\xA3 "," \u263A\u2592\xA3 "," \u263A\u2591\xA3 "," \u263A\u2591\xA3 "," \u263A \xA3 "," \u263A\xA3 "," \u263A\xA3 "," \u263A\u2593 "," \u263A\u2593 "," \u263A\u2592 "," \u263A\u2592 "," \u263A\u2591 "," \u263A\u2591 "," \u263A "," \u263A &"," \u263A \u263C&"," \u263A \u263C &"," \u263A\u263C &"," \u263A\u263C & "," \u203C & "," \u263A & "," \u203C & "," \u263A & "," \u203C & "," \u263A & ","\u203C & "," & "," & "," & \u2591 "," & \u2592 "," & \u2593 "," & \xA3 "," & \u2591\xA3 "," & \u2592\xA3 "," & \u2593\xA3 "," & \xA3\xA3 "," & \u2591\xA3\xA3 "," & \u2592\xA3\xA3 ","& \u2593\xA3\xA3 ","& \xA3\xA3\xA3 "," \u2591\xA3\xA3\xA3 "," \u2592\xA3\xA3\xA3 "," \u2593\xA3\xA3\xA3 "," \u2588\xA3\xA3\xA3 "," \u2591\u2588\xA3\xA3\xA3 "," \u2592\u2588\xA3\xA3\xA3 "," \u2593\u2588\xA3\xA3\xA3 "," \u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "]}};var Sb=WD,tfe=Object.keys(WD);function xb({type:e="dots"}){let[t,r]=FU(0),n=Sb[e];return OU(()=>{let i=setInterval(()=>{r(s=>s===n.frames.length-1?0:s+1)},n.interval);return()=>{clearInterval(i)}},[n]),{frame:n.frames[t]??""}}function bb({label:e,type:t}){let{frame:r}=xb({type:t}),{styles:n}=rt("Spinner");return GD.createElement(AU,{...n.container()},GD.createElement(_b,{...n.frame()},r),e&&GD.createElement(_b,{...n.label()},e))}import XU from"react";import{Text as JU}from"ink";import{useReducer as IU,useCallback as hf,useEffect as TU,useMemo as PU}from"react";var LU=(e,t)=>{switch(t.type){case"move-cursor-left":return{...e,cursorOffset:Math.max(0,e.cursorOffset-1)};case"move-cursor-right":return{...e,cursorOffset:Math.min(e.value.length,e.cursorOffset+1)};case"insert":return{...e,previousValue:e.value,value:e.value.slice(0,e.cursorOffset)+t.text+e.value.slice(e.cursorOffset),cursorOffset:e.cursorOffset+t.text.length};case"delete":{let r=Math.max(0,e.cursorOffset-1);return{...e,previousValue:e.value,value:e.value.slice(0,r)+e.value.slice(r+1),cursorOffset:r}}}},Ob=({defaultValue:e="",suggestions:t,onChange:r,onSubmit:n})=>{let[i,s]=IU(LU,{previousValue:e,value:e,cursorOffset:e.length}),o=PU(()=>{if(i.value.length!==0)return t?.find(p=>p.startsWith(i.value))?.replace(i.value,"")},[i.value,t]),a=hf(()=>{s({type:"move-cursor-left"})},[]),u=hf(()=>{s({type:"move-cursor-right"})},[]),l=hf(p=>{s({type:"insert",text:p})},[]),c=hf(()=>{s({type:"delete"})},[]),f=hf(()=>{if(o){l(o),n?.(i.value+o);return}n?.(i.value)},[i.value,o,l,n]);return TU(()=>{i.value!==i.previousValue&&r?.(i.value)},[i.previousValue,i.value,r]),{...i,suggestion:o,moveCursorLeft:a,moveCursorRight:u,insert:l,delete:c,submit:f}};import{useMemo as jb}from"react";import{useInput as KU}from"ink";var Fb=(e=0)=>t=>`\x1B[${t+e}m`,Ab=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,Ib=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,wt={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],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],gray:[90,39],grey:[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],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},gfe=Object.keys(wt.modifier),NU=Object.keys(wt.color),RU=Object.keys(wt.bgColor),yfe=[...NU,...RU];function BU(){let e=new Map;for(let[t,r]of Object.entries(wt)){for(let[n,i]of Object.entries(r))wt[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=wt[n],e.set(i[0],i[1]);Object.defineProperty(wt,t,{value:r,enumerable:!1})}return Object.defineProperty(wt,"codes",{value:e,enumerable:!1}),wt.color.close="\x1B[39m",wt.bgColor.close="\x1B[49m",wt.color.ansi=Fb(),wt.color.ansi256=Ab(),wt.color.ansi16m=Ib(),wt.bgColor.ansi=Fb(10),wt.bgColor.ansi256=Ab(10),wt.bgColor.ansi16m=Ib(10),Object.defineProperties(wt,{rgbToAnsi256:{value(t,r,n){return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(s=>s+s).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:t=>wt.rgbToAnsi256(...wt.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let a=t%36;r=Math.floor(t/36)/5,n=Math.floor(a/6)/5,i=a%6/5}let s=Math.max(r,n,i)*2;if(s===0)return 30;let o=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return s===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(t,r,n)=>wt.ansi256ToAnsi(wt.rgbToAnsi256(t,r,n)),enumerable:!1},hexToAnsi:{value:t=>wt.ansi256ToAnsi(wt.hexToAnsi256(t)),enumerable:!1}}),wt}var kU=BU(),ci=kU;import qD from"node:process";import MU from"node:os";import Tb from"node:tty";function Rn(e,t=globalThis.Deno?globalThis.Deno.args:qD.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}var{env:xt}=qD,Em;Rn("no-color")||Rn("no-colors")||Rn("color=false")||Rn("color=never")?Em=0:(Rn("color")||Rn("colors")||Rn("color=true")||Rn("color=always"))&&(Em=1);function jU(){if("FORCE_COLOR"in xt)return xt.FORCE_COLOR==="true"?1:xt.FORCE_COLOR==="false"?0:xt.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(xt.FORCE_COLOR,10),3)}function VU(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function UU(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=jU();n!==void 0&&(Em=n);let i=r?Em:n;if(i===0)return 0;if(r){if(Rn("color=16m")||Rn("color=full")||Rn("color=truecolor"))return 3;if(Rn("color=256"))return 2}if("TF_BUILD"in xt&&"AGENT_NAME"in xt)return 1;if(e&&!t&&i===void 0)return 0;let s=i||0;if(xt.TERM==="dumb")return s;if(qD.platform==="win32"){let o=MU.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in xt)return"GITHUB_ACTIONS"in xt||"GITEA_ACTIONS"in xt?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(o=>o in xt)||xt.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in xt)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(xt.TEAMCITY_VERSION)?1:0;if(xt.COLORTERM==="truecolor"||xt.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in xt){let o=Number.parseInt((xt.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(xt.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(xt.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(xt.TERM)||"COLORTERM"in xt?1:s}function Pb(e,t={}){let r=UU(e,{streamIsTTY:e&&e.isTTY,...t});return VU(r)}var $U={stdout:Pb({isTTY:Tb.isatty(1)}),stderr:Pb({isTTY:Tb.isatty(2)})},Lb=$U;function Nb(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,o="";do o+=e.slice(s,n)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return o+=e.slice(s),o}function Rb(e,t,r,n){let i=0,s="";do{let o=e[n-1]==="\r";s+=e.slice(i,o?n-1:n)+t+(o?`\r
|
|
488
|
+
`,"f"),ge(this,Qt,C(this,Qt,"f")+t.join(" "),"f")}}}[vD](t){sl(C(this,we,"f")).forEach(r=>{if((i=>i==="configObjects")(r))return;let n=C(this,we,"f")[r];Array.isArray(n)?n.includes(t)&&n.splice(n.indexOf(t),1):typeof n=="object"&&delete n[t]}),delete C(this,Le,"f").getDescriptions()[t]}[l_](t,r,n){C(this,um,"f")[n]||(C(this,Te,"f").process.emitWarning(t,r),C(this,um,"f")[n]=!0)}[c_](){C(this,lm,"f").push({options:C(this,we,"f"),configObjects:C(this,we,"f").configObjects.slice(0),exitProcess:C(this,Tn,"f"),groups:C(this,Ni,"f"),strict:C(this,La,"f"),strictCommands:C(this,Na,"f"),strictOptions:C(this,Ra,"f"),completionCommand:C(this,un,"f"),output:C(this,Qt,"f"),exitError:C(this,eo,"f"),hasOutput:C(this,ln,"f"),parsed:this.parsed,parseFn:C(this,cn,"f"),parseContext:C(this,Ta,"f")}),C(this,Le,"f").freeze(),C(this,It,"f").freeze(),C(this,Lt,"f").freeze(),C(this,Pn,"f").freeze()}[f_](){let t="",r;return/\b(node|iojs|electron)(\.exe)?$/.test(C(this,Te,"f").process.argv()[0])?r=C(this,Te,"f").process.argv().slice(1,2):r=C(this,Te,"f").process.argv().slice(0,1),t=r.map(n=>{let i=this[x_](C(this,Aa,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&i.length<n.length?i:n}).join(" ").trim(),C(this,Te,"f").getEnv("_")&&C(this,Te,"f").getProcessArgvBin()===C(this,Te,"f").getEnv("_")&&(t=C(this,Te,"f").getEnv("_").replace(`${C(this,Te,"f").path.dirname(C(this,Te,"f").process.execPath())}/`,"")),t}[Ba](){return C(this,pm,"f")}[p_](){return C(this,mm,"f")}[wD](){if(!C(this,Ia,"f"))return;let t=C(this,Te,"f").getEnv("LC_ALL")||C(this,Te,"f").getEnv("LC_MESSAGES")||C(this,Te,"f").getEnv("LANG")||C(this,Te,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""))}[d_](){return this[CD]().version||"unknown"}[m_](t){let r=t["--"]?t["--"]:t._;for(let n=0,i;(i=r[n])!==void 0;n++)C(this,Te,"f").Parser.looksLikeNumber(i)&&Number.isSafeInteger(Math.floor(parseFloat(`${i}`)))&&(r[n]=Number(i));return t}[CD](t){let r=t||"*";if(C(this,ul,"f")[r])return C(this,ul,"f")[r];let n={};try{let i=t||C(this,Te,"f").mainFilename;!t&&C(this,Te,"f").path.extname(i)&&(i=C(this,Te,"f").path.dirname(i));let s=C(this,Te,"f").findUp(i,(o,a)=>{if(a.includes("package.json"))return"package.json"});Pr(s,void 0,C(this,Te,"f")),n=JSON.parse(C(this,Te,"f").readFileSync(s,"utf8"))}catch{}return C(this,ul,"f")[r]=n||{},C(this,ul,"f")[r]}[ro](t,r){r=[].concat(r),r.forEach(n=>{n=this[xD](n),C(this,we,"f")[t].push(n)})}[ll](t,r,n,i){this[SD](t,r,n,i,(s,o,a)=>{C(this,we,"f")[s][o]=a})}[ED](t,r,n,i){this[SD](t,r,n,i,(s,o,a)=>{C(this,we,"f")[s][o]=(C(this,we,"f")[s][o]||[]).concat(a)})}[SD](t,r,n,i,s){if(Array.isArray(n))n.forEach(o=>{t(o,i)});else if((o=>typeof o=="object")(n))for(let o of sl(n))t(o,n[o]);else s(r,this[xD](n),i)}[xD](t){return t==="__proto__"?"___proto___":t}[_D](t,r){return this[ll](this[_D].bind(this),"key",t,r),this}[bD](){var t,r,n,i,s,o,a,u,l,c,f,p;let d=C(this,lm,"f").pop();Pr(d,void 0,C(this,Te,"f"));let m;t=this,r=this,n=this,i=this,s=this,o=this,a=this,u=this,l=this,c=this,f=this,p=this,{options:{set value(y){ge(t,we,y,"f")}}.value,configObjects:m,exitProcess:{set value(y){ge(r,Tn,y,"f")}}.value,groups:{set value(y){ge(n,Ni,y,"f")}}.value,output:{set value(y){ge(i,Qt,y,"f")}}.value,exitError:{set value(y){ge(s,eo,y,"f")}}.value,hasOutput:{set value(y){ge(o,ln,y,"f")}}.value,parsed:this.parsed,strict:{set value(y){ge(a,La,y,"f")}}.value,strictCommands:{set value(y){ge(u,Na,y,"f")}}.value,strictOptions:{set value(y){ge(l,Ra,y,"f")}}.value,completionCommand:{set value(y){ge(c,un,y,"f")}}.value,parseFn:{set value(y){ge(f,cn,y,"f")}}.value,parseContext:{set value(y){ge(p,Ta,y,"f")}}.value}=d,C(this,we,"f").configObjects=m,C(this,Le,"f").unfreeze(),C(this,It,"f").unfreeze(),C(this,Lt,"f").unfreeze(),C(this,Pn,"f").unfreeze()}[h_](t,r){return Fa(r,n=>(t(n),n))}getInternalMethods(){return{getCommandInstance:this[g_].bind(this),getContext:this[y_].bind(this),getHasOutput:this[D_].bind(this),getLoggerInstance:this[v_].bind(this),getParseContext:this[w_].bind(this),getParserConfiguration:this[Ba].bind(this),getUsageConfiguration:this[p_].bind(this),getUsageInstance:this[C_].bind(this),getValidationInstance:this[E_].bind(this),hasParseCallback:this[hm].bind(this),isGlobalContext:this[S_].bind(this),postProcess:this[ka].bind(this),reset:this[OD].bind(this),runValidation:this[FD].bind(this),runYargsParserAndExecuteCommands:this[lf].bind(this),setHasOutput:this[__].bind(this)}}[g_](){return C(this,Lt,"f")}[y_](){return C(this,uf,"f")}[D_](){return C(this,ln,"f")}[v_](){return C(this,al,"f")}[w_](){return C(this,Ta,"f")||{}}[C_](){return C(this,Le,"f")}[E_](){return C(this,It,"f")}[hm](){return!!C(this,cn,"f")}[S_](){return C(this,cm,"f")}[ka](t,r,n,i){return n||ft(t)||(r||(t=this[a_](t)),(this[Ba]()["parse-positional-numbers"]||this[Ba]()["parse-positional-numbers"]===void 0)&&(t=this[m_](t)),i&&(t=Oa(t,this,C(this,Pn,"f").getMiddleware(),!1))),t}[OD](t={}){ge(this,we,C(this,we,"f")||{},"f");let r={};r.local=C(this,we,"f").local||[],r.configObjects=C(this,we,"f").configObjects||[];let n={};r.local.forEach(o=>{n[o]=!0,(t[o]||[]).forEach(a=>{n[a]=!0})}),Object.assign(C(this,Pa,"f"),Object.keys(C(this,Ni,"f")).reduce((o,a)=>{let u=C(this,Ni,"f")[a].filter(l=>!(l in n));return u.length>0&&(o[a]=u),o},{})),ge(this,Ni,{},"f");let i=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],s=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return i.forEach(o=>{r[o]=(C(this,we,"f")[o]||[]).filter(a=>!n[a])}),s.forEach(o=>{r[o]=Zs(C(this,we,"f")[o],a=>!n[a])}),r.envPrefix=C(this,we,"f").envPrefix,ge(this,we,r,"f"),ge(this,Le,C(this,Le,"f")?C(this,Le,"f").reset(n):Q2(this,C(this,Te,"f")),"f"),ge(this,It,C(this,It,"f")?C(this,It,"f").reset(n):s_(this,C(this,Le,"f"),C(this,Te,"f")),"f"),ge(this,Lt,C(this,Lt,"f")?C(this,Lt,"f").reset():X2(C(this,Le,"f"),C(this,It,"f"),C(this,Pn,"f"),C(this,Te,"f")),"f"),C(this,In,"f")||ge(this,In,r_(this,C(this,Le,"f"),C(this,Lt,"f"),C(this,Te,"f")),"f"),C(this,Pn,"f").reset(),ge(this,un,null,"f"),ge(this,Qt,"","f"),ge(this,eo,null,"f"),ge(this,ln,!1,"f"),this.parsed=!1,this}[x_](t,r){return C(this,Te,"f").path.relative(t,r)}[lf](t,r,n,i=0,s=!1){let o=!!n||s;t=t||C(this,to,"f"),C(this,we,"f").__=C(this,Te,"f").y18n.__,C(this,we,"f").configuration=this[Ba]();let a=!!C(this,we,"f").configuration["populate--"],u=Object.assign({},C(this,we,"f").configuration,{"populate--":!0}),l=C(this,Te,"f").Parser.detailed(t,Object.assign({},C(this,we,"f"),{configuration:{"parse-positional-numbers":!1,...u}})),c=Object.assign(l.argv,C(this,Ta,"f")),f,p=l.aliases,d=!1,m=!1;Object.keys(c).forEach(y=>{y===C(this,Ln,"f")&&c[y]?d=!0:y===C(this,Ri,"f")&&c[y]&&(m=!0)}),c.$0=this.$0,this.parsed=l,i===0&&C(this,Le,"f").clearCachedHelpMessage();try{if(this[wD](),r)return this[ka](c,a,!!n,!1);C(this,Ln,"f")&&[C(this,Ln,"f")].concat(p[C(this,Ln,"f")]||[]).filter(v=>v.length>1).includes(""+c._[c._.length-1])&&(c._.pop(),d=!0),ge(this,cm,!1,"f");let y=C(this,Lt,"f").getCommands(),D=C(this,In,"f").completionKey in c,h=d||D||s;if(c._.length){if(y.length){let g;for(let v=i||0,w;c._[v]!==void 0;v++)if(w=String(c._[v]),y.includes(w)&&w!==C(this,un,"f")){let E=C(this,Lt,"f").runCommand(w,this,l,v+1,s,d||m||s);return this[ka](E,a,!!n,!1)}else if(!g&&w!==C(this,un,"f")){g=w;break}!C(this,Lt,"f").hasDefaultCommand()&&C(this,dm,"f")&&g&&!h&&C(this,It,"f").recommendCommands(g,y)}C(this,un,"f")&&c._.includes(C(this,un,"f"))&&!D&&(C(this,Tn,"f")&&Qs(!0),this.showCompletionScript(),this.exit(0))}if(C(this,Lt,"f").hasDefaultCommand()&&!h){let g=C(this,Lt,"f").runCommand(null,this,l,0,s,d||m||s);return this[ka](g,a,!!n,!1)}if(D){C(this,Tn,"f")&&Qs(!0),t=[].concat(t);let g=t.slice(t.indexOf(`--${C(this,In,"f").completionKey}`)+1);return C(this,In,"f").getCompletion(g,(v,w)=>{if(v)throw new ct(v.message);(w||[]).forEach(E=>{C(this,al,"f").log(E)}),this.exit(0)}),this[ka](c,!a,!!n,!1)}if(C(this,ln,"f")||(d?(C(this,Tn,"f")&&Qs(!0),o=!0,this.showHelp("log"),this.exit(0)):m&&(C(this,Tn,"f")&&Qs(!0),o=!0,C(this,Le,"f").showVersion("log"),this.exit(0))),!o&&C(this,we,"f").skipValidation.length>0&&(o=Object.keys(c).some(g=>C(this,we,"f").skipValidation.indexOf(g)>=0&&c[g]===!0)),!o){if(l.error)throw new ct(l.error.message);if(!D){let g=this[FD](p,{},l.error);n||(f=Oa(c,this,C(this,Pn,"f").getMiddleware(),!0)),f=this[h_](g,f??c),ft(f)&&!n&&(f=f.then(()=>Oa(c,this,C(this,Pn,"f").getMiddleware(),!1)))}}}catch(y){if(y instanceof ct)C(this,Le,"f").fail(y.message,y);else throw y}return this[ka](f??c,a,!!n,!0)}[FD](t,r,n,i){let s={...this.getDemandedOptions()};return o=>{if(n)throw new ct(n.message);C(this,It,"f").nonOptionCount(o),C(this,It,"f").requiredArguments(o,s);let a=!1;C(this,Na,"f")&&(a=C(this,It,"f").unknownCommands(o)),C(this,La,"f")&&!a?C(this,It,"f").unknownArguments(o,t,r,!!i):C(this,Ra,"f")&&C(this,It,"f").unknownArguments(o,t,{},!1,!1),C(this,It,"f").limitedChoices(o),C(this,It,"f").implications(o),C(this,It,"f").conflicting(o)}}[__](){ge(this,ln,!0,"f")}[Ma](t){if(typeof t=="string")C(this,we,"f").key[t]=!0;else for(let r of t)C(this,we,"f").key[r]=!0}};function J2(e){return!!e&&typeof e.getInternalMethods=="function"}var cV=b_(pD),O_=cV;import vt from"react";import{Box as ff,Text as Bi}from"ink";import RD,{useContext as hV}from"react";import{Text as B_,Transform as gV}from"ink";var et="\x1B[",cf="\x1B]",cl="\x07",gm=";",F_=process.env.TERM_PROGRAM==="Apple_Terminal",Ge={};Ge.cursorTo=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");return typeof t!="number"?et+(e+1)+"G":et+(t+1)+";"+(e+1)+"H"};Ge.cursorMove=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");let r="";return e<0?r+=et+-e+"D":e>0&&(r+=et+e+"C"),t<0?r+=et+-t+"A":t>0&&(r+=et+t+"B"),r};Ge.cursorUp=(e=1)=>et+e+"A";Ge.cursorDown=(e=1)=>et+e+"B";Ge.cursorForward=(e=1)=>et+e+"C";Ge.cursorBackward=(e=1)=>et+e+"D";Ge.cursorLeft=et+"G";Ge.cursorSavePosition=F_?"\x1B7":et+"s";Ge.cursorRestorePosition=F_?"\x1B8":et+"u";Ge.cursorGetPosition=et+"6n";Ge.cursorNextLine=et+"E";Ge.cursorPrevLine=et+"F";Ge.cursorHide=et+"?25l";Ge.cursorShow=et+"?25h";Ge.eraseLines=e=>{let t="";for(let r=0;r<e;r++)t+=Ge.eraseLine+(r<e-1?Ge.cursorUp():"");return e&&(t+=Ge.cursorLeft),t};Ge.eraseEndLine=et+"K";Ge.eraseStartLine=et+"1K";Ge.eraseLine=et+"2K";Ge.eraseDown=et+"J";Ge.eraseUp=et+"1J";Ge.eraseScreen=et+"2J";Ge.scrollUp=et+"S";Ge.scrollDown=et+"T";Ge.clearScreen="\x1Bc";Ge.clearTerminal=process.platform==="win32"?`${Ge.eraseScreen}${et}0f`:`${Ge.eraseScreen}${et}3J${et}H`;Ge.beep=cl;Ge.link=(e,t)=>[cf,"8",gm,gm,t,cl,e,cf,"8",gm,gm,cl].join("");Ge.image=(e,t={})=>{let r=`${cf}1337;File=inline=1`;return t.width&&(r+=`;width=${t.width}`),t.height&&(r+=`;height=${t.height}`),t.preserveAspectRatio===!1&&(r+=";preserveAspectRatio=0"),r+":"+e.toString("base64")+cl};Ge.iTerm={setCwd:(e=process.cwd())=>`${cf}50;CurrentDir=${e}${cl}`,annotation:(e,t={})=>{let r=`${cf}1337;`,n=typeof t.x<"u",i=typeof t.y<"u";if((n||i)&&!(n&&i&&typeof t.length<"u"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return e=e.replace(/\|/g,""),r+=t.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",t.length>0?r+=(n?[e,t.length,t.x,t.y]:[t.length,e]).join("|"):r+=e,r+cl}};var A_=Ge;var ym=St(R_(),1);function ja(e,t,{target:r="stdout",...n}={}){return ym.default[r]?A_.link(e,t):n.fallback===!1?e:typeof n.fallback=="function"?n.fallback(e,t):`${e} (\u200B${t}\u200B)`}ja.isSupported=ym.default.stdout;ja.stderr=(e,t,r={})=>ja(e,t,{target:"stderr",...r});ja.stderr.isSupported=ym.default.stderr;import{createContext as mV}from"react";var st=mV({lite:!1});var Dt=({text:e,url:t,subtle:r})=>{let{lite:n}=hV(st);return RD.createElement(B_,{color:n||r?void 0:"blueBright",bold:!0},RD.createElement(gV,{transform:()=>ja(e,t)},RD.createElement(B_,null,e)))};var fs=(o=>(o.PROD_CN="prod-cn",o.PROD="prod",o.STAGING="staging",o.STAGING_CN="staging-cn",o.DEV="dev",o.LOCAL="local",o))(fs||{}),k_=({fallback:e="prod"})=>{let t=process.env.ENV;if(!t)return e;let r=t.toLowerCase().trim();return Object.values(fs).includes(r)?r:e},M_=e=>e==="prod-cn"||e==="staging-cn";function so(e,t){if(e==null)throw new Error(t||"argument is null");return e}var io=class extends Error{constructor(t){super(`Unreachable case: ${t}`)}};var j_=({flavor:e})=>{let t;switch(e){case"prod":t="https://www.canva.com/policies/canva-developer-terms/";break;case"prod-cn":t="https://www.canva.cn/policies/developer-terms/";break;case"staging":t="https://www.canva-staging.com/policies/canva-developer-terms/";break;case"staging-cn":t="https://www.canva-staging.cn/policies/developer-terms/";break;case"dev":t="https://www.canva-dev.com/policies/canva-developer-terms/";break;case"local":t="http://localhost:3000/policies/canva-developer-terms/";break;default:throw new io(e)}return t},Dm=({flavor:e,appId:t})=>{let r;switch(e){case"prod":r="https://www.canva.com/developers/app";break;case"prod-cn":r="https://www.canva.cn/developers/app";break;case"staging":r="https://www.canva-staging.com/developers/app";break;case"staging-cn":r="https://www.canva-staging.cn/developers/app";break;case"dev":r="https://www.canva-dev.com/developers/app";break;case"local":r="http://localhost:3000/developers/app";break;default:throw new io(e)}return t?`${r}/${t}`:`${r}s`},V_=e=>{let t,r=e.appId.toLowerCase();switch(e.flavor){case"prod":t=`https://app-${r}.canva-apps.com`;break;case"prod-cn":t=`https://app-${r}.canva-apps.cn`;break;case"staging":t=`https://app-${r}.canva-apps-staging.com`;break;case"staging-cn":t=`https://app-${r}.canva-apps-staging.cn`;break;case"dev":t=`https://app-${r}.canva-apps-dev.com`;break;case"local":t="https://localhost:3000/";break;default:throw new io(e.flavor)}return t};import U_,{useContext as DV}from"react";import{Text as $_}from"ink";var Nt=e=>{let{lite:t}=DV(st);return t?e.alt?U_.createElement($_,null,e.alt):void 0:U_.createElement($_,{...e})};import{useContext as vV}from"react";import{Text as wV}from"ink";import CV from"react";var Rt=e=>{let{lite:t}=vV(st);return CV.createElement(wV,{bold:e.bold??!0,color:t?void 0:"cyanBright",italic:e.italic},e.children)};var G_=({services:e})=>{let{lite:t}=vt.useContext(st);return vt.createElement(ff,{flexDirection:"column",margin:.5},vt.createElement(Bi,null,vt.createElement(Nt,null,"\u{1F44B} "),vt.createElement(Bi,{bold:!0},"Welcome!")," Let\u2019s bring your Canva app to life."),vt.createElement(ff,{marginTop:1,flexDirection:"column"},vt.createElement(ff,{flexDirection:"column"},vt.createElement(Bi,null,"Run ",vt.createElement(Rt,null,"canva apps create")," to create a new app"),vt.createElement(Bi,{dimColor:!0},"By creating an app, you agree to the"," ",vt.createElement(Dt,{url:e.urlService.getApiDeveloperTermsUrl(),text:"Canva Developer terms"}))),vt.createElement(ff,{marginTop:1},vt.createElement(Bi,null,"Run ",vt.createElement(Rt,null,"canva apps list")," to view a list of your apps")),vt.createElement(ff,{borderStyle:t?void 0:"double",borderColor:t?void 0:"cyanBright",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",width:"98%",marginTop:1,marginX:2,paddingX:1},vt.createElement(Bi,{bold:!0},vt.createElement(Nt,null,"\u{1F4A1} "),"Tips"),vt.createElement(Bi,null," ","\u2022 For a list of all commands, run"," ",vt.createElement(Rt,null,"canva --help")),vt.createElement(Bi,null," ","\u2022 View our Developer Documentation"," ",vt.createElement(Dt,{url:"https://canva.dev",text:"Developer Documentation"})," for more information"),vt.createElement(Bi,null," ","\u2022 Examples of all components from"," ",vt.createElement(Bi,{bold:!0},"@canva/app-ui-kit")," are available in the"," ",vt.createElement(Dt,{url:"https://www.canva.dev/docs/apps/app-ui-kit/storybook",text:"App UI Kit Storybook"})))))};import{render as vte}from"ink";import jp from"react";import ds,{useContext as S7,useEffect as x7,useState as Am}from"react";import{Box as eO,Spacer as tO}from"ink";var q_="#8b3dff",vm="grey",BD="#7d2ae7",z_=[{color:"#00c4cc",pos:0},{pos:.5},{color:"#6420ff",pos:.9},{color:BD,pos:1}];import ki from"react";import{Box as H_,Text as Va}from"ink";var Y_=({name:e,currentVersion:t,latestVersion:r})=>{let{lite:n}=ki.useContext(st);return!r||r===t?null:n?ki.createElement(H_,{flexDirection:"column"},ki.createElement(Va,null,"Update available ",t," \u2192 ",r),ki.createElement(Va,null,"Run npm i -g ",e,"@latest to update")):ki.createElement(H_,{borderStyle:"round",borderColor:"yellow",flexDirection:"column",alignSelf:"center",paddingLeft:2,width:52},ki.createElement(Va,{color:"yellow"},"Update available ",ki.createElement(Va,{color:"grey"},t," \u2192 "),ki.createElement(Va,{color:"yellow"},r)),ki.createElement(Va,null,"Run ",ki.createElement(Va,{bold:!0},"npm i -g ",e,"@latest")," to update"))};import ao from"react";import{Box as Jb,Text as lv,useApp as D7}from"ink";import{Text as ule}from"ink";import cle from"react";var nU=St(Z_(),1);import zue,{createContext as tU,useContext as rU}from"react";import Mi from"node:process";function kD(){return Mi.platform!=="win32"?Mi.env.TERM!=="linux":!!Mi.env.WT_SESSION||!!Mi.env.TERMINUS_SUBLIME||Mi.env.ConEmuTask==="{cmd::Cmder}"||Mi.env.TERM_PROGRAM==="Terminus-Sublime"||Mi.env.TERM_PROGRAM==="vscode"||Mi.env.TERM==="xterm-256color"||Mi.env.TERM==="alacritty"||Mi.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var Q_={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258C",squareRight:"\u2590",squareCenter:"\u25A0",bullet:"\u25CF",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203A",triangleUp:"\u25B2",triangleUpSmall:"\u25B4",triangleDown:"\u25BC",triangleDownSmall:"\u25BE",triangleLeftSmall:"\u25C2",triangleRightSmall:"\u25B8",home:"\u2302",heart:"\u2665",musicNote:"\u266A",musicNoteBeamed:"\u266B",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221E",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215B",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254C",lineDashed5:"\u254D",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257A",lineDashed10:"\u257C",lineDashed11:"\u257E",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250A",lineVerticalDashed3:"\u250B",lineVerticalDashed4:"\u254E",lineVerticalDashed5:"\u254F",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257B",lineVerticalDashed10:"\u257D",lineVerticalDashed11:"\u257F",lineDownLeft:"\u2510",lineDownLeftArc:"\u256E",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250C",lineDownRightArc:"\u256D",lineDownBoldRightBold:"\u250F",lineDownBoldRight:"\u250E",lineDownRightBold:"\u250D",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256F",lineUpBoldLeftBold:"\u251B",lineUpBoldLeft:"\u251A",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255D",lineUpDoubleLeft:"\u255C",lineUpLeftDouble:"\u255B",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255A",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252B",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252A",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251C",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251D",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251F",lineUpBoldDownRight:"\u251E",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255F",lineUpDownRightDouble:"\u255E",lineDownLeftRight:"\u252C",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252F",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252E",lineDownLeftBoldRight:"\u252D",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253B",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253A",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253C",lineUpBoldDownBoldLeftBoldRightBold:"\u254B",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254A",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253D",lineUpDownLeftRightBold:"\u253E",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253F",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256C",lineUpDoubleDownDoubleLeftRight:"\u256B",lineUpDownLeftDoubleRightDouble:"\u256A",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},eb={tick:"\u2714",info:"\u2139",warning:"\u26A0",cross:"\u2718",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",pointer:"\u276F",triangleUpOutline:"\u25B3",triangleLeft:"\u25C0",triangleRight:"\u25B6",lozenge:"\u25C6",lozengeOutline:"\u25C7",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",star:"\u2605",play:"\u25B6",nodejs:"\u2B22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},RV={tick:"\u221A",info:"i",warning:"\u203C",cross:"\xD7",squareSmall:"\u25A1",squareSmallFilled:"\u25A0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25C4",triangleRight:"\u25BA",lozenge:"\u2666",lozengeOutline:"\u25CA",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",star:"\u2736",play:"\u25BA",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},BV={...Q_,...eb},kV={...Q_,...RV},MV=kD(),jV=MV?BV:kV,Tt=jV,bue=Object.entries(eb);var tb={info:"blue",success:"green",error:"red",warning:"yellow"},VV={styles:{container:({variant:e})=>({flexGrow:1,borderStyle:"round",borderColor:tb[e],gap:1,paddingX:1}),iconContainer:()=>({flexShrink:0}),icon:({variant:e})=>({color:tb[e]}),content:()=>({flexShrink:1,flexGrow:1,minWidth:0,flexDirection:"column",gap:1}),title:()=>({bold:!0}),message:()=>({})},config({variant:e}){let t;return e==="info"&&(t=Tt.info),e==="success"&&(t=Tt.tick),e==="error"&&(t=Tt.cross),e==="warning"&&(t=Tt.warning),{icon:t}}},rb=VV;var UV={styles:{container:({color:e})=>({backgroundColor:e}),label:()=>({color:"black"})}},nb=UV;var $V={styles:{input:({isFocused:e})=>({dimColor:!e})}},ib=$V;var WV={styles:{container:()=>({flexDirection:"column"}),option:({isFocused:e})=>({gap:1,paddingLeft:e?0:2}),selectedIndicator:()=>({color:"green"}),focusIndicator:()=>({color:"blue"}),label({isFocused:e,isSelected:t}){let r;return t&&(r="green"),e&&(r="blue"),{color:r}},highlightedText:()=>({bold:!0})}},sb=WV;var GV={styles:{list:()=>({flexDirection:"column"}),listItem:()=>({gap:1}),marker:()=>({dimColor:!0}),content:()=>({flexDirection:"column"})}},ob=GV;var qV={styles:{container:()=>({flexGrow:1,minWidth:0}),completed:()=>({color:"magenta"}),remaining:()=>({dimColor:!0})},config:()=>({completedCharacter:Tt.square,remainingCharacter:Tt.squareLightShade})},ab=qV;var zV={styles:{container:()=>({flexDirection:"column"}),option:({isFocused:e})=>({gap:1,paddingLeft:e?0:2}),selectedIndicator:()=>({color:"green"}),focusIndicator:()=>({color:"blue"}),label({isFocused:e,isSelected:t}){let r;return t&&(r="green"),e&&(r="blue"),{color:r}},highlightedText:()=>({bold:!0})}},ub=zV;var HV={styles:{container:()=>({gap:1}),frame:()=>({color:"blue"}),label:()=>({})}},lb=HV;var YV={success:"green",error:"red",warning:"yellow",info:"blue"},KV={success:Tt.tick,error:Tt.cross,warning:Tt.warning,info:Tt.info},XV={styles:{container:()=>({gap:1}),iconContainer:()=>({flexShrink:0}),icon:({variant:e})=>({color:YV[e]}),message:()=>({})},config:({variant:e})=>({icon:KV[e]})},cb=XV;var JV={styles:{list:()=>({flexDirection:"column"}),listItem:()=>({gap:1}),marker:()=>({dimColor:!0}),content:()=>({flexDirection:"column"})},config:()=>({marker:Tt.line})},fb=JV;var ZV={styles:{value:()=>({})}},pb=ZV;var QV={styles:{value:()=>({})}},db=QV;var eU={styles:{value:()=>({})}},mb=eU;var iU={components:{Alert:rb,Badge:nb,ConfirmInput:ib,MultiSelect:sb,OrderedList:ob,ProgressBar:ab,Select:ub,Spinner:lb,StatusMessage:cb,UnorderedList:fb,TextInput:pb,EmailInput:db,PasswordInput:mb}},sU=tU(iU);var rt=e=>rU(sU).components[e];import oU from"react";import{Text as aU,useInput as uU}from"ink";function hb({isDisabled:e=!1,defaultChoice:t="confirm",submitOnEnter:r=!0,onConfirm:n,onCancel:i}){uU((o,a)=>{o.toLowerCase()==="y"&&n(),o.toLowerCase()==="n"&&i(),a.return&&r&&(t==="confirm"?n():i())},{isActive:!e});let{styles:s}=rt("ConfirmInput");return oU.createElement(aU,{...s.input({isFocused:!e})},t==="confirm"?"Y/n":"y/N")}import{Box as dU}from"ink";import VD,{useMemo as Db,useContext as mU}from"react";import{Box as gb,Text as cU}from"ink";import MD,{useContext as fU}from"react";import{createContext as lU}from"react";var df=Tt.line;var wm=lU({marker:df});function yb({children:e}){let{marker:t}=fU(wm),{styles:r}=rt("UnorderedList");return MD.createElement(gb,{...r.listItem()},MD.createElement(cU,{...r.marker()},t),MD.createElement(gb,{...r.content()},e))}import{createContext as pU}from"react";var jD=pU({depth:0});function hU({children:e}){let{depth:t}=mU(jD),{styles:r,config:n}=rt("UnorderedList"),i=Db(()=>({depth:t+1}),[t]),s=Db(()=>{let{marker:o}=n();return typeof o=="string"?{marker:o}:Array.isArray(o)?{marker:o[t]??o.at(-1)??df}:{marker:df}},[n,t]);return VD.createElement(jD.Provider,{value:i},VD.createElement(wm.Provider,{value:s},VD.createElement(dU,{...r.list()},e)))}hU.Item=yb;import pce from"react";import{Box as mce,Text as hce}from"ink";import Gle from"react";import{Box as zle,Text as Hle}from"ink";import{useReducer as Zle,useCallback as Qle,useMemo as ece,useState as tce,useEffect as rce}from"react";var dl=class extends Map{first;constructor(t){let r=[],n,i,s=0;for(let o of t){let a={...o,previous:i,next:void 0,index:s};i&&(i.next=a),n||=a,r.push([o.value,a]),s++,i=a}super(r),this.first=n}};import{useInput as oce}from"ink";import xce,{useState as _ce}from"react";import{Box as Oce,Text as Fce,measureElement as Ace}from"ink";import mf from"react";import{Box as xU,Text as _U}from"ink";import Cm from"react";import{Box as gU,Text as UD}from"ink";function vb({isFocused:e,isSelected:t,children:r}){let{styles:n}=rt("Select");return Cm.createElement(gU,{...n.option({isFocused:e})},e&&Cm.createElement(UD,{...n.focusIndicator()},Tt.pointer),Cm.createElement(UD,{...n.label({isFocused:e,isSelected:t})},r),t&&Cm.createElement(UD,{...n.selectedIndicator()},Tt.tick))}import{isDeepStrictEqual as yU}from"node:util";import{useReducer as DU,useCallback as $D,useMemo as vU,useState as wU,useEffect as CU}from"react";var EU=(e,t)=>{switch(t.type){case"focus-next-option":{if(!e.focusedValue)return e;let r=e.optionMap.get(e.focusedValue);if(!r)return e;let n=r.next;if(!n)return e;if(!(n.index>=e.visibleToIndex))return{...e,focusedValue:n.value};let s=Math.min(e.optionMap.size,e.visibleToIndex+1),o=s-e.visibleOptionCount;return{...e,focusedValue:n.value,visibleFromIndex:o,visibleToIndex:s}}case"focus-previous-option":{if(!e.focusedValue)return e;let r=e.optionMap.get(e.focusedValue);if(!r)return e;let n=r.previous;if(!n)return e;if(!(n.index<=e.visibleFromIndex))return{...e,focusedValue:n.value};let s=Math.max(0,e.visibleFromIndex-1),o=s+e.visibleOptionCount;return{...e,focusedValue:n.value,visibleFromIndex:s,visibleToIndex:o}}case"select-focused-option":return{...e,previousValue:e.value,value:e.focusedValue};case"reset":return t.state}},wb=({visibleOptionCount:e,defaultValue:t,options:r})=>{let n=typeof e=="number"?Math.min(e,r.length):r.length,i=new dl(r);return{optionMap:i,visibleOptionCount:n,focusedValue:i.first?.value,visibleFromIndex:0,visibleToIndex:n,previousValue:t,value:t}},Cb=({visibleOptionCount:e=5,options:t,defaultValue:r,onChange:n})=>{let[i,s]=DU(EU,{visibleOptionCount:e,defaultValue:r,options:t},wb),[o,a]=wU(t);t!==o&&!yU(t,o)&&(s({type:"reset",state:wb({visibleOptionCount:e,defaultValue:r,options:t})}),a(t));let u=$D(()=>{s({type:"focus-next-option"})},[]),l=$D(()=>{s({type:"focus-previous-option"})},[]),c=$D(()=>{s({type:"select-focused-option"})},[]),f=vU(()=>t.map((p,d)=>({...p,index:d})).slice(i.visibleFromIndex,i.visibleToIndex),[t,i.visibleFromIndex,i.visibleToIndex]);return CU(()=>{i.value&&i.previousValue!==i.value&&n?.(i.value)},[i.previousValue,i.value,t,n]),{focusedValue:i.focusedValue,visibleFromIndex:i.visibleFromIndex,visibleToIndex:i.visibleToIndex,value:i.value,visibleOptions:f,focusNextOption:u,focusPreviousOption:l,selectFocusedOption:c}};import{useInput as SU}from"ink";var Eb=({isDisabled:e=!1,state:t})=>{SU((r,n)=>{n.downArrow&&t.focusNextOption(),n.upArrow&&t.focusPreviousOption(),n.return&&t.selectFocusedOption()},{isActive:!e})};function ps({isDisabled:e=!1,visibleOptionCount:t=5,highlightText:r,options:n,defaultValue:i,onChange:s}){let o=Cb({visibleOptionCount:t,options:n,defaultValue:i,onChange:s});Eb({isDisabled:e,state:o});let{styles:a}=rt("Select");return mf.createElement(xU,{...a.container()},o.visibleOptions.map(u=>{let l=u.label;if(r&&u.label.includes(r)){let c=u.label.indexOf(r);l=mf.createElement(mf.Fragment,null,u.label.slice(0,c),mf.createElement(_U,{...a.highlightedText()},r),u.label.slice(c+r.length))}return mf.createElement(vb,{key:u.value,isFocused:!e&&o.focusedValue===u.value,isSelected:o.value===u.value},l)}))}import GD from"react";import{Box as AU,Text as _b}from"ink";import{useEffect as OU,useState as FU}from"react";var WD={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots14:{interval:80,frames:["\u2809\u2809","\u2808\u2819","\u2800\u2839","\u2800\u28B8","\u2800\u28F0","\u2880\u28E0","\u28C0\u28C0","\u28C4\u2840","\u28C6\u2800","\u2847\u2800","\u280F\u2800","\u280B\u2801"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]},dwarfFortress:{interval:80,frames:[" \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A \u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A \xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A \xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\u2593\xA3 "," \u263A\u2593\xA3 "," \u263A\u2592\xA3 "," \u263A\u2592\xA3 "," \u263A\u2591\xA3 "," \u263A\u2591\xA3 "," \u263A \xA3 "," \u263A\xA3 "," \u263A\xA3 "," \u263A\u2593 "," \u263A\u2593 "," \u263A\u2592 "," \u263A\u2592 "," \u263A\u2591 "," \u263A\u2591 "," \u263A "," \u263A &"," \u263A \u263C&"," \u263A \u263C &"," \u263A\u263C &"," \u263A\u263C & "," \u203C & "," \u263A & "," \u203C & "," \u263A & "," \u203C & "," \u263A & ","\u203C & "," & "," & "," & \u2591 "," & \u2592 "," & \u2593 "," & \xA3 "," & \u2591\xA3 "," & \u2592\xA3 "," & \u2593\xA3 "," & \xA3\xA3 "," & \u2591\xA3\xA3 "," & \u2592\xA3\xA3 ","& \u2593\xA3\xA3 ","& \xA3\xA3\xA3 "," \u2591\xA3\xA3\xA3 "," \u2592\xA3\xA3\xA3 "," \u2593\xA3\xA3\xA3 "," \u2588\xA3\xA3\xA3 "," \u2591\u2588\xA3\xA3\xA3 "," \u2592\u2588\xA3\xA3\xA3 "," \u2593\u2588\xA3\xA3\xA3 "," \u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "]}};var Sb=WD,efe=Object.keys(WD);function xb({type:e="dots"}){let[t,r]=FU(0),n=Sb[e];return OU(()=>{let i=setInterval(()=>{r(s=>s===n.frames.length-1?0:s+1)},n.interval);return()=>{clearInterval(i)}},[n]),{frame:n.frames[t]??""}}function bb({label:e,type:t}){let{frame:r}=xb({type:t}),{styles:n}=rt("Spinner");return GD.createElement(AU,{...n.container()},GD.createElement(_b,{...n.frame()},r),e&&GD.createElement(_b,{...n.label()},e))}import XU from"react";import{Text as JU}from"ink";import{useReducer as IU,useCallback as hf,useEffect as TU,useMemo as PU}from"react";var LU=(e,t)=>{switch(t.type){case"move-cursor-left":return{...e,cursorOffset:Math.max(0,e.cursorOffset-1)};case"move-cursor-right":return{...e,cursorOffset:Math.min(e.value.length,e.cursorOffset+1)};case"insert":return{...e,previousValue:e.value,value:e.value.slice(0,e.cursorOffset)+t.text+e.value.slice(e.cursorOffset),cursorOffset:e.cursorOffset+t.text.length};case"delete":{let r=Math.max(0,e.cursorOffset-1);return{...e,previousValue:e.value,value:e.value.slice(0,r)+e.value.slice(r+1),cursorOffset:r}}}},Ob=({defaultValue:e="",suggestions:t,onChange:r,onSubmit:n})=>{let[i,s]=IU(LU,{previousValue:e,value:e,cursorOffset:e.length}),o=PU(()=>{if(i.value.length!==0)return t?.find(p=>p.startsWith(i.value))?.replace(i.value,"")},[i.value,t]),a=hf(()=>{s({type:"move-cursor-left"})},[]),u=hf(()=>{s({type:"move-cursor-right"})},[]),l=hf(p=>{s({type:"insert",text:p})},[]),c=hf(()=>{s({type:"delete"})},[]),f=hf(()=>{if(o){l(o),n?.(i.value+o);return}n?.(i.value)},[i.value,o,l,n]);return TU(()=>{i.value!==i.previousValue&&r?.(i.value)},[i.previousValue,i.value,r]),{...i,suggestion:o,moveCursorLeft:a,moveCursorRight:u,insert:l,delete:c,submit:f}};import{useMemo as jb}from"react";import{useInput as KU}from"ink";var Fb=(e=0)=>t=>`\x1B[${t+e}m`,Ab=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,Ib=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,wt={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],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],gray:[90,39],grey:[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],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},hfe=Object.keys(wt.modifier),NU=Object.keys(wt.color),RU=Object.keys(wt.bgColor),gfe=[...NU,...RU];function BU(){let e=new Map;for(let[t,r]of Object.entries(wt)){for(let[n,i]of Object.entries(r))wt[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=wt[n],e.set(i[0],i[1]);Object.defineProperty(wt,t,{value:r,enumerable:!1})}return Object.defineProperty(wt,"codes",{value:e,enumerable:!1}),wt.color.close="\x1B[39m",wt.bgColor.close="\x1B[49m",wt.color.ansi=Fb(),wt.color.ansi256=Ab(),wt.color.ansi16m=Ib(),wt.bgColor.ansi=Fb(10),wt.bgColor.ansi256=Ab(10),wt.bgColor.ansi16m=Ib(10),Object.defineProperties(wt,{rgbToAnsi256:{value(t,r,n){return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(s=>s+s).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:t=>wt.rgbToAnsi256(...wt.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let a=t%36;r=Math.floor(t/36)/5,n=Math.floor(a/6)/5,i=a%6/5}let s=Math.max(r,n,i)*2;if(s===0)return 30;let o=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return s===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(t,r,n)=>wt.ansi256ToAnsi(wt.rgbToAnsi256(t,r,n)),enumerable:!1},hexToAnsi:{value:t=>wt.ansi256ToAnsi(wt.hexToAnsi256(t)),enumerable:!1}}),wt}var kU=BU(),ci=kU;import qD from"node:process";import MU from"node:os";import Tb from"node:tty";function Rn(e,t=globalThis.Deno?globalThis.Deno.args:qD.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}var{env:xt}=qD,Em;Rn("no-color")||Rn("no-colors")||Rn("color=false")||Rn("color=never")?Em=0:(Rn("color")||Rn("colors")||Rn("color=true")||Rn("color=always"))&&(Em=1);function jU(){if("FORCE_COLOR"in xt)return xt.FORCE_COLOR==="true"?1:xt.FORCE_COLOR==="false"?0:xt.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(xt.FORCE_COLOR,10),3)}function VU(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function UU(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=jU();n!==void 0&&(Em=n);let i=r?Em:n;if(i===0)return 0;if(r){if(Rn("color=16m")||Rn("color=full")||Rn("color=truecolor"))return 3;if(Rn("color=256"))return 2}if("TF_BUILD"in xt&&"AGENT_NAME"in xt)return 1;if(e&&!t&&i===void 0)return 0;let s=i||0;if(xt.TERM==="dumb")return s;if(qD.platform==="win32"){let o=MU.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in xt)return"GITHUB_ACTIONS"in xt||"GITEA_ACTIONS"in xt?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(o=>o in xt)||xt.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in xt)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(xt.TEAMCITY_VERSION)?1:0;if(xt.COLORTERM==="truecolor"||xt.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in xt){let o=Number.parseInt((xt.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(xt.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(xt.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(xt.TERM)||"COLORTERM"in xt?1:s}function Pb(e,t={}){let r=UU(e,{streamIsTTY:e&&e.isTTY,...t});return VU(r)}var $U={stdout:Pb({isTTY:Tb.isatty(1)}),stderr:Pb({isTTY:Tb.isatty(2)})},Lb=$U;function Nb(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,o="";do o+=e.slice(s,n)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return o+=e.slice(s),o}function Rb(e,t,r,n){let i=0,s="";do{let o=e[n-1]==="\r";s+=e.slice(i,o?n-1:n)+t+(o?`\r
|
|
489
489
|
`:`
|
|
490
490
|
`)+r,i=n+1,n=e.indexOf(`
|
|
491
491
|
`,i)}while(n!==-1);return s+=e.slice(i),s}var{stdout:Bb,stderr:kb}=Lb,zD=Symbol("GENERATOR"),ml=Symbol("STYLER"),gf=Symbol("IS_EMPTY"),Mb=["ansi","ansi","ansi256","ansi16m"],hl=Object.create(null),WU=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Bb?Bb.level:0;e.level=t.level===void 0?r:t.level};var GU=e=>{let t=(...r)=>r.join(" ");return WU(t,e),Object.setPrototypeOf(t,yf.prototype),t};function yf(e){return GU(e)}Object.setPrototypeOf(yf.prototype,Function.prototype);for(let[e,t]of Object.entries(ci))hl[e]={get(){let r=Sm(this,YD(t.open,t.close,this[ml]),this[gf]);return Object.defineProperty(this,e,{value:r}),r}};hl.visible={get(){let e=Sm(this,this[ml],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var HD=(e,t,r,...n)=>e==="rgb"?t==="ansi16m"?ci[r].ansi16m(...n):t==="ansi256"?ci[r].ansi256(ci.rgbToAnsi256(...n)):ci[r].ansi(ci.rgbToAnsi(...n)):e==="hex"?HD("rgb",t,r,...ci.hexToRgb(...n)):ci[r][e](...n),qU=["rgb","hex","ansi256"];for(let e of qU){hl[e]={get(){let{level:r}=this;return function(...n){let i=YD(HD(e,Mb[r],"color",...n),ci.color.close,this[ml]);return Sm(this,i,this[gf])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);hl[t]={get(){let{level:r}=this;return function(...n){let i=YD(HD(e,Mb[r],"bgColor",...n),ci.bgColor.close,this[ml]);return Sm(this,i,this[gf])}}}}var zU=Object.defineProperties(()=>{},{...hl,level:{enumerable:!0,get(){return this[zD].level},set(e){this[zD].level=e}}}),YD=(e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},Sm=(e,t,r)=>{let n=(...i)=>HU(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,zU),n[zD]=e,n[ml]=t,n[gf]=r,n},HU=(e,t)=>{if(e.level<=0||!t)return e[gf]?"":t;let r=e[ml];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=Nb(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
|
|
492
|
-
`);return s!==-1&&(t=Rb(t,i,n,s)),n+t+i};Object.defineProperties(yf.prototype,hl);var YU=yf(),
|
|
493
|
-
`+a}catch{}await tr.promises.writeFile(i,o)},preventCleanupOnError:!1},sv={type:"preAppCreation",start:"Generating an .env file",failure:"Failed to generate an .env file",action:async e=>{let t=Dr.join(e.folderName,".env.template"),r=Dr.join(e.folderName,".env");await tr.promises.copyFile(t,r)},preventCleanupOnError:!1},ov={type:"preAppCreation",start:"Updating package.json",failure:"Failed to update package.json",action:async e=>{let t=Dr.join(e.folderName,"package.json");e.debug&&console.log("Reading 'package.json': ",{packageJsonName:t});let r=await tr.promises.readFile(t,"utf8"),n=JSON.parse(r);n.name=wf(e.name);let i=Dr.dirname(Om),s=Dr.join(i,"templates","base","package.json"),o=await tr.promises.readFile(s,"utf8"),a=JSON.parse(o),u=a.canvaCliMetadata;(u.inheritable||[]).forEach(d=>{n[d]=n[d]||a[d]||""});let l=Dr.join(i,"package.json"),c=await tr.promises.readFile(l,"utf8"),f=JSON.parse(c);n.canvaCliMetadata={},(u.metaFields||[]).forEach(d=>{n.canvaCliMetadata[d]=f[d]||void 0});let p=Kb(n);await tr.promises.writeFile(t,p)},preventCleanupOnError:!1},av={type:"preAppCreation",start:"Initializing git repository",failure:"Failed to initialize git repository",action:async e=>{await Xb(`git init ${e.folderName}`)},preventCleanupOnError:!1},uv={type:"preAppCreation",start:"Installing dependencies (This may take a few minutes)",failure:"Failed to install node packages",action:async e=>{await Xb(`cd ${e.folderName} && npm install`)},preventCleanupOnError:!1};async function fi(e=500){await new Promise(t=>setTimeout(t,e))}var Zb=({packageName:e,handlePromptDecision:t})=>{let{exit:r}=D7(),[n,i]=ao.useState(!1);return ao.createElement(Jb,{flexDirection:"column",paddingX:2,borderStyle:"round",borderColor:"yellow",width:80},ao.createElement(lv,null,ao.createElement(Nt,{color:"greenBright"},"? "),"You're using an older version of our CLI. Would you like to update?"),ao.createElement(oo,{default:"yes",yesLabel:"Yes (Recommended to access the latest templates)",noLabel:"No (Some features, such as app templates, may be outdated)",onChange:async o=>{o&&(i(!0),await fi(),r()),t(o)}}),n&&ao.createElement(Jb,{marginTop:1},ao.createElement(lv,null,"Run ",ao.createElement(lv,{bold:!0},"npm i -g ",e,"@latest")," to update.")))};import{Text as v7}from"ink";import*as Ef from"react";var Bn=e=>{let{lite:t}=Ef.useContext(st);return t?Ef.createElement(v7,null,e.label):Ef.createElement(bb,{type:"bouncingBall",...e})};import Qb from"react";import{useContext as w7}from"react";import{Text as C7}from"ink";import E7 from"react";var kn=e=>{let{lite:t}=w7(st);return E7.createElement(C7,{color:t?void 0:"redBright"},e.children)};var Fm=class extends Qb.Component{state={isCrashed:!1,message:void 0};static getDerivedStateFromError(t){return{isCrashed:!0,message:t.message}}render(){return this.state.isCrashed?Qb.createElement(kn,null,this.state.message??"Sorry, a problem occured"):this.props.children}componentDidCatch(t){this.setState({isCrashed:!0,message:t.message})}componentDidMount(){process.setUncaughtExceptionCaptureCallback(this.crashed)}componentWillUnmount(){process.setUncaughtExceptionCaptureCallback(null)}crashed=t=>{this.setState({isCrashed:!0,message:t.message}),process.exitCode=1}};var rO=({pkg:e,shouldPromptUpdate:t=!1,getUpdateInfo:r,children:n,Logo:i})=>{let{lite:s}=S7(st),[o,a]=Am(!0),[u,l]=Am(),[c,f]=Am(null),[p,d]=Am(!1);x7(()=>{(async()=>{let h=await r();h.success?f(h.data.latest):d(!0),a(!1)})()},[e]);let m=D=>{l(D?"agreed":"disagreed")};return o?ds.createElement(Bn,{type:"bouncingBall",label:"Loading..."}):t&&c&&c!==e.version&&!u?ds.createElement(Zb,{packageName:e.name,handlePromptDecision:m}):ds.createElement(eO,{borderStyle:s?void 0:"round",margin:s?void 0:2,flexDirection:"column",borderColor:s?void 0:vm},ds.createElement(eO,{flexDirection:"row",paddingY:1},ds.createElement(tO,null),ds.createElement(i,null),ds.createElement(tO,null)),ds.createElement(Fm,null,!p&&ds.createElement(Y_,{name:e.name,currentVersion:e.version,latestVersion:c}),n))};var gl={name:"@canva/cli",version:"0.0.1-beta.
|
|
492
|
+
`);return s!==-1&&(t=Rb(t,i,n,s)),n+t+i};Object.defineProperties(yf.prototype,hl);var YU=yf(),bfe=yf({level:kb?kb.level:0});var Je=YU;var KD=Je.inverse(" "),Vb=({isDisabled:e=!1,state:t,placeholder:r=""})=>{let n=jb(()=>e?r?Je.dim(r):"":r&&r.length>0?Je.inverse(r[0])+Je.dim(r.slice(1)):KD,[e,r]),i=jb(()=>{if(e)return t.value;let s=0,o=t.value.length>0?"":KD;for(let a of t.value)o+=s===t.cursorOffset?Je.inverse(a):a,s++;return t.suggestion?(t.cursorOffset===t.value.length?o+=Je.inverse(t.suggestion[0])+Je.dim(t.suggestion.slice(1)):o+=Je.dim(t.suggestion),o):(t.value.length>0&&t.cursorOffset===t.value.length&&(o+=KD),o)},[e,t.value,t.cursorOffset,t.suggestion]);return KU((s,o)=>{if(!(o.upArrow||o.downArrow||o.ctrl&&s==="c"||o.tab||o.shift&&o.tab)){if(o.return){t.submit();return}o.leftArrow?t.moveCursorLeft():o.rightArrow?t.moveCursorRight():o.backspace||o.delete?t.delete():t.insert(s)}},{isActive:!e}),{inputValue:t.value.length>0?i:n}};function Ub({isDisabled:e=!1,defaultValue:t,placeholder:r="",suggestions:n,onChange:i,onSubmit:s}){let o=Ob({defaultValue:t,suggestions:n,onChange:i,onSubmit:s}),{inputValue:a}=Vb({isDisabled:e,placeholder:r,state:o}),{styles:u}=rt("TextInput");return XU.createElement(JU,{...u.value()},a)}import{Box as r7}from"ink";import Df,{useContext as n7,isValidElement as Wb}from"react";import{Box as $b,Text as QU}from"ink";import XD,{useContext as e7}from"react";import{createContext as ZU}from"react";var xm=ZU({marker:Tt.line});function _m({children:e}){let{marker:t}=e7(xm),{styles:r}=rt("OrderedList");return XD.createElement($b,{...r.listItem()},XD.createElement(QU,{...r.marker()},t),XD.createElement($b,{...r.content()},e))}import{createContext as t7}from"react";var JD=t7({marker:""});function i7({children:e}){let{marker:t}=n7(JD),{styles:r}=rt("OrderedList"),n=0;for(let s of Df.Children.toArray(e))!Wb(s)||s.type!==_m||n++;let i=String(n).length;return Df.createElement(r7,{...r.list()},Df.Children.map(e,(s,o)=>{if(!Wb(s)||s.type!==_m)return s;let a=`${String(o+1).padStart(i)}.`,u=`${t}${a}`;return Df.createElement(JD.Provider,{value:{marker:u}},Df.createElement(xm.Provider,{value:{marker:u}},s))}))}i7.Item=_m;import l7 from"react";import{Text as c7}from"ink";import{useReducer as s7,useCallback as vf,useEffect as o7}from"react";var a7=(e,t)=>{switch(t.type){case"move-cursor-left":return{...e,cursorOffset:Math.max(0,e.cursorOffset-1)};case"move-cursor-right":return{...e,cursorOffset:Math.min(e.value.length,e.cursorOffset+1)};case"insert":return{...e,previousValue:e.value,value:e.value.slice(0,e.cursorOffset)+t.text+e.value.slice(e.cursorOffset),cursorOffset:e.cursorOffset+t.text.length};case"delete":{let r=Math.max(0,e.cursorOffset-1);return{...e,previousValue:e.value,value:e.value.slice(0,r)+e.value.slice(r+1),cursorOffset:r}}}},Gb=({onChange:e,onSubmit:t})=>{let[r,n]=s7(a7,{previousValue:"",value:"",cursorOffset:0}),i=vf(()=>{n({type:"move-cursor-left"})},[]),s=vf(()=>{n({type:"move-cursor-right"})},[]),o=vf(l=>{n({type:"insert",text:l})},[]),a=vf(()=>{n({type:"delete"})},[]),u=vf(()=>{t?.(r.value)},[r.value,t]);return o7(()=>{r.value!==r.previousValue&&e?.(r.value)},[r.previousValue,r.value,e]),{...r,moveCursorLeft:i,moveCursorRight:s,insert:o,delete:a,submit:u}};import{useMemo as qb}from"react";import{useInput as u7}from"ink";var ZD=Je.inverse(" "),zb=({isDisabled:e=!1,state:t,placeholder:r=""})=>{let n=qb(()=>e?r?Je.dim(r):"":r&&r.length>0?Je.inverse(r[0])+Je.dim(r.slice(1)):ZD,[e,r]),i=qb(()=>{let s="*".repeat(t.value.length);if(e)return s;let o=0,a=s.length>0?"":ZD;for(let u of s)a+=o===t.cursorOffset?Je.inverse(u):u,o++;return s.length>0&&t.cursorOffset===s.length&&(a+=ZD),a},[e,t.value,t.cursorOffset]);return u7((s,o)=>{if(!(o.upArrow||o.downArrow||o.ctrl&&s==="c"||o.tab||o.shift&&o.tab)){if(o.return){t.submit();return}o.leftArrow?t.moveCursorLeft():o.rightArrow?t.moveCursorRight():o.backspace||o.delete?t.delete():t.insert(s)}},{isActive:!e}),{inputValue:t.value.length>0?i:n}};function Hb({isDisabled:e=!1,placeholder:t="",onChange:r,onSubmit:n}){let i=Gb({onChange:r,onSubmit:n}),{inputValue:s}=zb({isDisabled:e,placeholder:t,state:i}),{styles:o}=rt("PasswordInput");return l7.createElement(c7,{...o.value()},s)}import wpe from"react";import{Box as Epe,Text as Spe}from"ink";import Ape from"react";import{Box as Tpe,Text as Ppe}from"ink";import Qpe from"react";import{Text as tde}from"ink";import{useReducer as Mpe,useCallback as jpe,useEffect as Vpe,useMemo as Upe}from"react";import{useMemo as Gpe}from"react";import{useInput as zpe}from"ink";var Ype=Je.inverse(" ");import Yb,{useContext as f7}from"react";var oo=e=>{let{lite:t}=f7(st),r=e.yesLabel||"Yes",n=e.noLabel||"No",i=[{label:r,value:"yes"},{label:n,value:"no"}],s=a=>{let u=a==="yes";e.onChange?.(u)},o=e.default==="no"?i.reverse():i;return t?Yb.createElement(hb,{onConfirm:()=>s("yes"),onCancel:()=>s("no"),defaultChoice:e.default==="yes"?"confirm":"cancel"}):Yb.createElement(ps,{options:o,onChange:a=>s(a)})};import tr from"node:fs";import Dr from"node:path";import{promisify as h7}from"util";import{exec as g7}from"child_process";import p7 from"node:path";function wf(e){return e.replace(/\s+/g,"-").toLowerCase()}function bm(e){return p7.join(process.cwd(),wf(e))}var d7=18;function Cf(e){return e.length?e.trim()===""?{valid:!1,message:"Name cannot be empty."}:e.trim()!==e?{valid:!1,message:"Name cannot contain leading or trailing whitespace."}:e.length>d7?{valid:!1,message:"Name cannot be longer than 18 characters."}:/[|\r\n/\\:*?"<>.]+/g.test(e)?{valid:!1,message:'Name cannot contain any of these invalid characters (\\ / : * ? " < > | .).'}:/^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\.\w+)?$/i.test(e)?{valid:!1,message:"Name cannot be the same as any reserved windows filenames."}:{valid:!0}:{valid:!1,message:"Name is required."}}var m7=["private","name","version","description","license","author","scripts","dependencies","devDependencies","keywords","engines","canvaCliMetadata"];function Kb(e){let t={};return m7.forEach(r=>{e[r]&&(t[r]=e[r])}),Object.keys(e).forEach(r=>{t[r]||(t[r]=e[r])}),JSON.stringify(t,null,2)}import{fileURLToPath as y7}from"node:url";var Xb=h7(g7),Om=y7(import.meta.url),QD={type:"preAppCreation",start:"Checking write permissions",failure:"We don\u2019t have write access to this folder, maybe try somewhere else?",action:async()=>{await tr.promises.access(process.cwd(),(tr.constants||tr).W_OK)},preventCleanupOnError:!0},ev={type:"preAppCreation",start:"Checking folder name available",failure:"The folder already exists. We don\u2019t want to overwrite it automatically, so please remove it first.",action:async e=>{let t=!1;try{await tr.promises.access(e.folderName,(tr.constants||tr).F_OK),t=!0}catch{t=!1}if(t)throw new Error(`A folder named ${e.folderName} already exists.`)},preventCleanupOnError:!0},tv={type:"preAppCreation",start:"Creating folder",failure:"We couldn\u2019t make a folder with that app name, maybe it already exists?",action:async e=>{await tr.promises.mkdir(e.folderName,{recursive:!0})},preventCleanupOnError:!0},rv={type:"preAppCreation",start:"Copying template files",failure:"Failed to copy template files",action:async e=>{let t=Dr.dirname(Om),r=Dr.join(t,"templates",e.template.path),n=e.folderName;return tr.promises.cp(r,n,{recursive:!0,dereference:!0})},preventCleanupOnError:!1},nv={type:"preAppCreation",start:"Copying common files",failure:"Failed to copy common files",action:async e=>{let t=Dr.dirname(Om),r=Dr.join(t,"templates","common"),n=e.folderName;e.debug&&console.log("running 'cp' command with following args: ",{src:r,destination:n}),await tr.promises.cp(r,n,{recursive:!0,dereference:!0});let i=Dr.join(e.folderName,".gitignore.template"),s=Dr.join(e.folderName,".gitignore");await tr.promises.rename(i,s)},preventCleanupOnError:!1},iv={type:"preAppCreation",start:"Generating README.md",failure:"Failed to generate README.md.",action:async e=>{let t=Dr.dirname(Om),r=Dr.join(t,"templates","common","README.md"),n=Dr.join(t,"templates",e.template.path,"README.md"),i=Dr.join(e.folderName,"README.md"),o=await tr.promises.readFile(r,{encoding:"utf8"});try{let a=await tr.promises.readFile(n,"utf8");o=o+`
|
|
493
|
+
`+a}catch{}await tr.promises.writeFile(i,o)},preventCleanupOnError:!1},sv={type:"preAppCreation",start:"Generating an .env file",failure:"Failed to generate an .env file",action:async e=>{let t=Dr.join(e.folderName,".env.template"),r=Dr.join(e.folderName,".env");await tr.promises.copyFile(t,r)},preventCleanupOnError:!1},ov={type:"preAppCreation",start:"Updating package.json",failure:"Failed to update package.json",action:async e=>{let t=Dr.join(e.folderName,"package.json");e.debug&&console.log("Reading 'package.json': ",{packageJsonName:t});let r=await tr.promises.readFile(t,"utf8"),n=JSON.parse(r);n.name=wf(e.name);let i=Dr.dirname(Om),s=Dr.join(i,"templates","base","package.json"),o=await tr.promises.readFile(s,"utf8"),a=JSON.parse(o),u=a.canvaCliMetadata;(u.inheritable||[]).forEach(d=>{n[d]=n[d]||a[d]||""});let l=Dr.join(i,"package.json"),c=await tr.promises.readFile(l,"utf8"),f=JSON.parse(c);n.canvaCliMetadata={},(u.metaFields||[]).forEach(d=>{n.canvaCliMetadata[d]=f[d]||void 0});let p=Kb(n);await tr.promises.writeFile(t,p)},preventCleanupOnError:!1},av={type:"preAppCreation",start:"Initializing git repository",failure:"Failed to initialize git repository",action:async e=>{await Xb(`git init ${e.folderName}`)},preventCleanupOnError:!1},uv={type:"preAppCreation",start:"Installing dependencies (This may take a few minutes)",failure:"Failed to install node packages",action:async e=>{await Xb(`cd ${e.folderName} && npm install`)},preventCleanupOnError:!1};async function fi(e=500){await new Promise(t=>setTimeout(t,e))}var Zb=({packageName:e,handlePromptDecision:t})=>{let{exit:r}=D7(),[n,i]=ao.useState(!1);return ao.createElement(Jb,{flexDirection:"column",paddingX:2,borderStyle:"round",borderColor:"yellow",width:80},ao.createElement(lv,null,ao.createElement(Nt,{color:"greenBright"},"? "),"You're using an older version of our CLI. Would you like to update?"),ao.createElement(oo,{default:"yes",yesLabel:"Yes (Recommended to access the latest templates)",noLabel:"No (Some features, such as app templates, may be outdated)",onChange:async o=>{o&&(i(!0),await fi(),r()),t(o)}}),n&&ao.createElement(Jb,{marginTop:1},ao.createElement(lv,null,"Run ",ao.createElement(lv,{bold:!0},"npm i -g ",e,"@latest")," to update.")))};import{Text as v7}from"ink";import*as Ef from"react";var Bn=e=>{let{lite:t}=Ef.useContext(st);return t?Ef.createElement(v7,null,e.label):Ef.createElement(bb,{type:"bouncingBall",...e})};import Qb from"react";import{useContext as w7}from"react";import{Text as C7}from"ink";import E7 from"react";var kn=e=>{let{lite:t}=w7(st);return E7.createElement(C7,{color:t?void 0:"redBright"},e.children)};var Fm=class extends Qb.Component{state={isCrashed:!1,message:void 0};static getDerivedStateFromError(t){return{isCrashed:!0,message:t.message}}render(){return this.state.isCrashed?Qb.createElement(kn,null,this.state.message??"Sorry, a problem occured"):this.props.children}componentDidCatch(t){this.setState({isCrashed:!0,message:t.message})}componentDidMount(){process.setUncaughtExceptionCaptureCallback(this.crashed)}componentWillUnmount(){process.setUncaughtExceptionCaptureCallback(null)}crashed=t=>{this.setState({isCrashed:!0,message:t.message}),process.exitCode=1}};var rO=({pkg:e,shouldPromptUpdate:t=!1,getUpdateInfo:r,children:n,Logo:i})=>{let{lite:s}=S7(st),[o,a]=Am(!0),[u,l]=Am(),[c,f]=Am(null),[p,d]=Am(!1);x7(()=>{(async()=>{let h=await r();h.success?f(h.data.latest):d(!0),a(!1)})()},[e]);let m=D=>{l(D?"agreed":"disagreed")};return o?ds.createElement(Bn,{type:"bouncingBall",label:"Loading..."}):t&&c&&c!==e.version&&!u?ds.createElement(Zb,{packageName:e.name,handlePromptDecision:m}):ds.createElement(eO,{borderStyle:s?void 0:"round",margin:s?void 0:2,flexDirection:"column",borderColor:s?void 0:vm},ds.createElement(eO,{flexDirection:"row",paddingY:1},ds.createElement(tO,null),ds.createElement(i,null),ds.createElement(tO,null)),ds.createElement(Fm,null,!p&&ds.createElement(Y_,{name:e.name,currentVersion:e.version,latestVersion:c}),n))};var gl={name:"@canva/cli",version:"0.0.1-beta.16",description:"The official Canva CLI.",license:"SEE LICENSE IN LICENSE.md",author:"Canva Pty Ltd.",type:"module",main:"./lib/cjs/index.cjs",module:"./lib/esm/index.mjs",exports:{".":{require:"./lib/cjs/index.cjs",import:"./lib/esm/index.mjs"}},bin:{canva:"./dist/cli.js"},files:["templates","cli.js","LICENSE.md","README.md","lib"],scripts:{"//0":"The following scripts must be run from the root directory of cli/canva-cli",build:"npm run compile && npm run build:patch && npm run build:patch && npm run build:library","build:patch":"npm run build:docs && npm run build:templates && npm run build:meta && npm run build:patch:code","build:patch:code":"node ../common/build/patch.mjs ./dist/cli.js","build:docs":"cp README.md LICENSE.md dist","build:templates":"node ../common/build/templates.mjs ../common/templates dist/templates","build:meta":"node ../common/build/package-json.mjs ./package.json dist/package.json canva","build:library":"node ../common/build/library.mjs",compile:"rm -rf dist && node ../common/build/build.mjs","prepare:release":"cd ../.. && npm run build:package:beta cli/canva-cli","lint:types:watch":"tsc --watch","lint:types":"tsc",lint:"eslint .","lint:fix":"eslint . --fix","test:unit":"jest --no-cache","test:unit:watch":"jest --watchAll","test:unit:ci":"jest --ci --collectCoverage","prebuild:ava":"tsc && tsc-alias","test:feature":"npm run prebuild:ava && ava src/**/*.feature.*","test:feature:watch":"npm run prebuild:ava && ava src/**/*.feature.* --watch","test:feature:ci":"npm run prebuild:ava && ava src/**/*.feature.*",format:"prettier ./ --no-config --write","format:check":"prettier ./ --no-config --check",start:"npm run build && node ./dist/cli.js","readme:check":"node ./bin/readme-check.mjs",dev:"ENV=dev npm run start",staging:"ENV=staging npm run start",prod:"ENV=prod npm run start",link:"npm run build && npm link && chmod +x ./dist/cli.js"},dependencies:{"@inkjs/ui":"2.0.0","@t3-oss/env-core":"0.11.1",clipboardy:"4.0.0",ink:"5.0.1","ink-gradient":"3.0.0",jose:"5.9.6",mobx:"6.13.3","mobx-react":"9.1.1",open:"10.1.0",react:"18.3.1",systeminformation:"5.23.5","terminal-link":"3.0.0","update-notifier":"7.3.1",yargs:"17.7.2",zod:"3.23.8"},devDependencies:{"@ava/typescript":"5.0.0","@eslint/js":"9.14.0","@jest/globals":"29.7.0","@tsconfig/node20":"20.1.4","@types/jest":"29.5.14","@types/react":"18.3.12","@typescript-eslint/eslint-plugin":"8.13.0","@typescript-eslint/parser":"8.13.0",ava:"6.2.0",esbuild:"0.24.0",eslint:"9.14.0","eslint-plugin-ava":"15.0.1","eslint-plugin-jest":"28.9.0","eslint-plugin-react":"7.37.2","ink-testing-library":"4.0.0",jest:"29.7.0",prettier:"3.3.3","react-dom":"18.3.1",testdouble:"3.20.2","ts-jest":"29.2.5","ts-jest-mock-import-meta":"1.2.1","ts-node":"10.9.2","tsc-alias":"1.8.10",typescript:"5.5.4","typescript-eslint":"8.13.0"},keywords:["apps sdk","canva","cli","starter kit"],engines:{node:">=16"}};import JF from"node:process";import sO from"node:process";import I7 from"node:os";import T7 from"node:fs";import F7 from"node:fs";import nO from"node:fs";var cv;function b7(){try{return nO.statSync("/.dockerenv"),!0}catch{return!1}}function O7(){try{return nO.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}function fv(){return cv===void 0&&(cv=b7()||O7()),cv}var pv,A7=()=>{try{return F7.statSync("/run/.containerenv"),!0}catch{return!1}};function yl(){return pv===void 0&&(pv=A7()||fv()),pv}var iO=()=>{if(sO.platform!=="linux")return!1;if(I7.release().toLowerCase().includes("microsoft"))return!yl();try{return T7.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft")?!yl():!1}catch{return!1}},Ua=sO.env.__IS_WSL_TEST__?iO:iO();var NF=St(HO(),1);import{Buffer as v$}from"node:buffer";import w$ from"node:path";import qv from"node:child_process";import Gm from"node:process";function Ev(e){let t=typeof e=="string"?`
|
|
494
494
|
`:10,r=typeof e=="string"?"\r":13;return e[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===r&&(e=e.slice(0,-1)),e}import Pm from"node:process";import Sf from"node:path";import{fileURLToPath as YO}from"node:url";function Tm(e={}){let{env:t=process.env,platform:r=process.platform}=e;return r!=="win32"?"PATH":Object.keys(t).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"}var i9=({cwd:e=Pm.cwd(),path:t=Pm.env[Tm()],preferLocal:r=!0,execPath:n=Pm.execPath,addExecPath:i=!0}={})=>{let s=e instanceof URL?YO(e):e,o=Sf.resolve(s),a=[];return r&&s9(a,o),i&&o9(a,n,o),[...a,t].join(Sf.delimiter)},s9=(e,t)=>{let r;for(;r!==t;)e.push(Sf.join(t,"node_modules/.bin")),r=t,t=Sf.resolve(t,"..")},o9=(e,t,r)=>{let n=t instanceof URL?YO(t):t;e.push(Sf.resolve(r,n,".."))},KO=({env:e=Pm.env,...t}={})=>{e={...e};let r=Tm({env:e});return t.path=e[r],e[r]=i9(t),e};var a9=(e,t,r,n)=>{if(r==="length"||r==="prototype"||r==="arguments"||r==="caller")return;let i=Object.getOwnPropertyDescriptor(e,r),s=Object.getOwnPropertyDescriptor(t,r);!u9(i,s)&&n||Object.defineProperty(e,r,s)},u9=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},l9=(e,t)=>{let r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r)},c9=(e,t)=>`/* Wrapped ${e}*/
|
|
495
|
-
${t}`,f9=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),p9=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),d9=(e,t,r)=>{let n=r===""?"":`with ${r.trim()}() `,i=c9.bind(null,n,t.toString());Object.defineProperty(i,"name",p9),Object.defineProperty(e,"toString",{...f9,value:i})};function Sv(e,t,{ignoreNonConfigurable:r=!1}={}){let{name:n}=e;for(let i of Reflect.ownKeys(t))a9(e,t,i,r);return l9(e,t),d9(e,t,n),e}var Lm=new WeakMap,XO=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,n=0,i=e.displayName||e.name||"<anonymous>",s=function(...o){if(Lm.set(s,++n),n===1)r=e.apply(this,o),e=null;else if(t.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return Sv(s,e),Lm.set(s,n),s};XO.callCount=e=>{if(!Lm.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Lm.get(e)};var JO=XO;import S9 from"node:process";import{constants as y9}from"node:os";var ZO=()=>{let e=eF-QO+1;return Array.from({length:e},m9)},m9=(e,t)=>({name:`SIGRT${t+1}`,number:QO+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),QO=34,eF=64;import{constants as h9}from"node:os";var tF=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];var xv=()=>{let e=ZO();return[...tF,...e].map(g9)},g9=({name:e,number:t,description:r,action:n,forced:i=!1,standard:s})=>{let{signals:{[e]:o}}=h9,a=o!==void 0;return{name:e,number:a?o:t,description:r,supported:a,action:n,forced:i,standard:s}};var D9=()=>{let e=xv();return Object.fromEntries(e.map(v9))},v9=({name:e,number:t,description:r,supported:n,action:i,forced:s,standard:o})=>[e,{name:e,number:t,description:r,supported:n,action:i,forced:s,standard:o}],rF=D9(),w9=()=>{let e=xv(),t=65,r=Array.from({length:t},(n,i)=>C9(i,e));return Object.assign({},...r)},C9=(e,t)=>{let r=E9(e,t);if(r===void 0)return{};let{name:n,description:i,supported:s,action:o,forced:a,standard:u}=r;return{[e]:{name:n,number:e,description:i,supported:s,action:o,forced:a,standard:u}}},E9=(e,t)=>{let r=t.find(({name:n})=>y9.signals[n]===e);return r!==void 0?r:t.find(n=>n.number===e)},
|
|
495
|
+
${t}`,f9=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),p9=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),d9=(e,t,r)=>{let n=r===""?"":`with ${r.trim()}() `,i=c9.bind(null,n,t.toString());Object.defineProperty(i,"name",p9),Object.defineProperty(e,"toString",{...f9,value:i})};function Sv(e,t,{ignoreNonConfigurable:r=!1}={}){let{name:n}=e;for(let i of Reflect.ownKeys(t))a9(e,t,i,r);return l9(e,t),d9(e,t,n),e}var Lm=new WeakMap,XO=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,n=0,i=e.displayName||e.name||"<anonymous>",s=function(...o){if(Lm.set(s,++n),n===1)r=e.apply(this,o),e=null;else if(t.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return Sv(s,e),Lm.set(s,n),s};XO.callCount=e=>{if(!Lm.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Lm.get(e)};var JO=XO;import S9 from"node:process";import{constants as y9}from"node:os";var ZO=()=>{let e=eF-QO+1;return Array.from({length:e},m9)},m9=(e,t)=>({name:`SIGRT${t+1}`,number:QO+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),QO=34,eF=64;import{constants as h9}from"node:os";var tF=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];var xv=()=>{let e=ZO();return[...tF,...e].map(g9)},g9=({name:e,number:t,description:r,action:n,forced:i=!1,standard:s})=>{let{signals:{[e]:o}}=h9,a=o!==void 0;return{name:e,number:a?o:t,description:r,supported:a,action:n,forced:i,standard:s}};var D9=()=>{let e=xv();return Object.fromEntries(e.map(v9))},v9=({name:e,number:t,description:r,supported:n,action:i,forced:s,standard:o})=>[e,{name:e,number:t,description:r,supported:n,action:i,forced:s,standard:o}],rF=D9(),w9=()=>{let e=xv(),t=65,r=Array.from({length:t},(n,i)=>C9(i,e));return Object.assign({},...r)},C9=(e,t)=>{let r=E9(e,t);if(r===void 0)return{};let{name:n,description:i,supported:s,action:o,forced:a,standard:u}=r;return{[e]:{name:n,number:e,description:i,supported:s,action:o,forced:a,standard:u}}},E9=(e,t)=>{let r=t.find(({name:n})=>y9.signals[n]===e);return r!==void 0?r:t.find(n=>n.number===e)},uhe=w9();var x9=({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:s,isCanceled:o})=>e?`timed out after ${t} milliseconds`:o?"was canceled":r!==void 0?`failed with ${r}`:n!==void 0?`was killed with ${n} (${i})`:s!==void 0?`failed with exit code ${s}`:"failed",xf=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:s,command:o,escapedCommand:a,timedOut:u,isCanceled:l,killed:c,parsed:{options:{timeout:f,cwd:p=S9.cwd()}}})=>{s=s===null?void 0:s,i=i===null?void 0:i;let d=i===void 0?void 0:rF[i].description,m=n&&n.code,D=`Command ${x9({timedOut:u,timeout:f,errorCode:m,signal:i,signalDescription:d,exitCode:s,isCanceled:l})}: ${o}`,h=Object.prototype.toString.call(n)==="[object Error]",g=h?`${D}
|
|
496
496
|
${n.message}`:D,v=[g,t,e].filter(Boolean).join(`
|
|
497
|
-
`);return h?(n.originalMessage=n.message,n.message=v):n=new Error(v),n.shortMessage=g,n.command=o,n.escapedCommand=a,n.exitCode=s,n.signal=i,n.signalDescription=d,n.stdout=e,n.stderr=t,n.cwd=p,r!==void 0&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!u,n.isCanceled=l,n.killed=c&&!u,n};var Nm=["stdin","stdout","stderr"],_9=e=>Nm.some(t=>e[t]!==void 0),nF=e=>{if(!e)return;let{stdio:t}=e;if(t===void 0)return Nm.map(n=>e[n]);if(_9(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Nm.map(n=>`\`${n}\``).join(", ")}`);if(typeof t=="string")return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let r=Math.max(t.length,Nm.length);return Array.from({length:r},(n,i)=>t[i])};import F9 from"node:os";var $a=[];$a.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&$a.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&$a.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var Rm=e=>!!e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function",_v=Symbol.for("signal-exit emitter"),bv=globalThis,b9=Object.defineProperty.bind(Object),Ov=class{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(bv[_v])return bv[_v];b9(bv,_v,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(t,r){this.listeners[t].push(r)}removeListener(t,r){let n=this.listeners[t],i=n.indexOf(r);i!==-1&&(i===0&&n.length===1?n.length=0:n.splice(i,1))}emit(t,r,n){if(this.emitted[t])return!1;this.emitted[t]=!0;let i=!1;for(let s of this.listeners[t])i=s(r,n)===!0||i;return t==="exit"&&(i=this.emit("afterExit",r,n)||i),i}},Bm=class{},O9=e=>({onExit(t,r){return e.onExit(t,r)},load(){return e.load()},unload(){return e.unload()}}),Fv=class extends Bm{onExit(){return()=>{}}load(){}unload(){}},Av=class extends Bm{#n=Iv.platform==="win32"?"SIGINT":"SIGHUP";#t=new Ov;#e;#r;#o;#s={};#i=!1;constructor(t){super(),this.#e=t,this.#s={};for(let r of $a)this.#s[r]=()=>{let n=this.#e.listeners(r),{count:i}=this.#t,s=t;if(typeof s.__signal_exit_emitter__=="object"&&typeof s.__signal_exit_emitter__.count=="number"&&(i+=s.__signal_exit_emitter__.count),n.length===i){this.unload();let o=this.#t.emit("exit",null,r),a=r==="SIGHUP"?this.#n:r;o||t.kill(t.pid,a)}};this.#o=t.reallyExit,this.#r=t.emit}onExit(t,r){if(!Rm(this.#e))return()=>{};this.#i===!1&&this.load();let n=r?.alwaysLast?"afterExit":"exit";return this.#t.on(n,t),()=>{this.#t.removeListener(n,t),this.#t.listeners.exit.length===0&&this.#t.listeners.afterExit.length===0&&this.unload()}}load(){if(!this.#i){this.#i=!0,this.#t.count+=1;for(let t of $a)try{let r=this.#s[t];r&&this.#e.on(t,r)}catch{}this.#e.emit=(t,...r)=>this.#u(t,...r),this.#e.reallyExit=t=>this.#a(t)}}unload(){this.#i&&(this.#i=!1,$a.forEach(t=>{let r=this.#s[t];if(!r)throw new Error("Listener not defined for signal: "+t);try{this.#e.removeListener(t,r)}catch{}}),this.#e.emit=this.#r,this.#e.reallyExit=this.#o,this.#t.count-=1)}#a(t){return Rm(this.#e)?(this.#e.exitCode=t||0,this.#t.emit("exit",this.#e.exitCode,null),this.#o.call(this.#e,this.#e.exitCode)):0}#u(t,...r){let n=this.#r;if(t==="exit"&&Rm(this.#e)){typeof r[0]=="number"&&(this.#e.exitCode=r[0]);let i=n.call(this.#e,t,...r);return this.#t.emit("exit",this.#e.exitCode,null),i}else return n.call(this.#e,t,...r)}},Iv=globalThis.process,{onExit:iF,load:yhe,unload:Dhe}=O9(Rm(Iv)?new Av(Iv):new Fv);var A9=1e3*5,sF=(e,t="SIGTERM",r={})=>{let n=e(t);return I9(e,t,r,n),n},I9=(e,t,r,n)=>{if(!T9(t,r,n))return;let i=L9(r),s=setTimeout(()=>{e("SIGKILL")},i);s.unref&&s.unref()},T9=(e,{forceKillAfterTimeout:t},r)=>P9(e)&&t!==!1&&r,P9=e=>e===F9.constants.signals.SIGTERM||typeof e=="string"&&e.toUpperCase()==="SIGTERM",L9=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return A9;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},oF=(e,t)=>{e.kill()&&(t.isCanceled=!0)},N9=(e,t,r)=>{e.kill(t),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:t}))},aF=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{if(t===0||t===void 0)return n;let i,s=new Promise((a,u)=>{i=setTimeout(()=>{N9(e,r,u)},t)}),o=n.finally(()=>{clearTimeout(i)});return Promise.race([s,o])},uF=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},lF=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=iF(()=>{e.kill()});return n.finally(()=>{i()})};import{createWriteStream as R9}from"node:fs";import{ChildProcess as B9}from"node:child_process";function km(e){return e!==null&&typeof e=="object"&&typeof e.pipe=="function"}function Tv(e){return km(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object"}var k9=e=>e instanceof B9&&typeof e.then=="function",Pv=(e,t,r)=>{if(typeof r=="string")return e[t].pipe(R9(r)),e;if(Tv(r))return e[t].pipe(r),e;if(!k9(r))throw new TypeError("The second argument must be a string, a stream or an Execa child process.");if(!Tv(r.stdin))throw new TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r},cF=e=>{e.stdout!==null&&(e.pipeStdout=Pv.bind(void 0,e,"stdout")),e.stderr!==null&&(e.pipeStderr=Pv.bind(void 0,e,"stderr")),e.all!==void 0&&(e.pipeAll=Pv.bind(void 0,e,"all"))};import{createReadStream as r$,readFileSync as n$}from"node:fs";import{setTimeout as i$}from"node:timers/promises";var _f=async(e,{init:t,convertChunk:r,getSize:n,truncateChunk:i,addChunk:s,getFinalChunk:o,finalize:a},{maxBuffer:u=Number.POSITIVE_INFINITY}={})=>{if(!j9(e))throw new Error("The first argument must be a Readable, a ReadableStream, or an async iterable.");let l=t();l.length=0;try{for await(let c of e){let f=V9(c),p=r[f](c,l);dF({convertedChunk:p,state:l,getSize:n,truncateChunk:i,addChunk:s,maxBuffer:u})}return M9({state:l,convertChunk:r,getSize:n,truncateChunk:i,addChunk:s,getFinalChunk:o,maxBuffer:u}),a(l)}catch(c){throw c.bufferedData=a(l),c}},M9=({state:e,getSize:t,truncateChunk:r,addChunk:n,getFinalChunk:i,maxBuffer:s})=>{let o=i(e);o!==void 0&&dF({convertedChunk:o,state:e,getSize:t,truncateChunk:r,addChunk:n,maxBuffer:s})},dF=({convertedChunk:e,state:t,getSize:r,truncateChunk:n,addChunk:i,maxBuffer:s})=>{let o=r(e),a=t.length+o;if(a<=s){fF(e,t,i,a);return}let u=n(e,s-t.length);throw u!==void 0&&fF(u,t,i,s),new Mm},fF=(e,t,r,n)=>{t.contents=r(e,t,n),t.length=n},j9=e=>typeof e=="object"&&e!==null&&typeof e[Symbol.asyncIterator]=="function",V9=e=>{let t=typeof e;if(t==="string")return"string";if(t!=="object"||e===null)return"others";if(globalThis.Buffer?.isBuffer(e))return"buffer";let r=pF.call(e);return r==="[object ArrayBuffer]"?"arrayBuffer":r==="[object DataView]"?"dataView":Number.isInteger(e.byteLength)&&Number.isInteger(e.byteOffset)&&pF.call(e.buffer)==="[object ArrayBuffer]"?"typedArray":"others"},{toString:pF}=Object.prototype,Mm=class extends Error{name="MaxBufferError";constructor(){super("maxBuffer exceeded")}};var Lv=e=>e,Nv=()=>{},Rv=({contents:e})=>e,jm=e=>{throw new Error(`Streams in object mode are not supported: ${String(e)}`)},Vm=e=>e.length;async function Bv(e,t){return _f(e,K9,t)}var U9=()=>({contents:new ArrayBuffer(0)}),$9=e=>W9.encode(e),W9=new TextEncoder,mF=e=>new Uint8Array(e),hF=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),G9=(e,t)=>e.slice(0,t),q9=(e,{contents:t,length:r},n)=>{let i=DF()?H9(t,n):z9(t,n);return new Uint8Array(i).set(e,r),i},z9=(e,t)=>{if(t<=e.byteLength)return e;let r=new ArrayBuffer(yF(t));return new Uint8Array(r).set(new Uint8Array(e),0),r},H9=(e,t)=>{if(t<=e.maxByteLength)return e.resize(t),e;let r=new ArrayBuffer(t,{maxByteLength:yF(t)});return new Uint8Array(r).set(new Uint8Array(e),0),r},yF=e=>gF**Math.ceil(Math.log(e)/Math.log(gF)),gF=2,Y9=({contents:e,length:t})=>DF()?e:e.slice(0,t),DF=()=>"resize"in ArrayBuffer.prototype,K9={init:U9,convertChunk:{string:$9,buffer:mF,arrayBuffer:mF,dataView:hF,typedArray:hF,others:jm},getSize:Vm,truncateChunk:G9,addChunk:q9,getFinalChunk:Nv,finalize:Y9};async function Um(e,t){if(!("Buffer"in globalThis))throw new Error("getStreamAsBuffer() is only supported in Node.js");try{return vF(await Bv(e,t))}catch(r){throw r.bufferedData!==void 0&&(r.bufferedData=vF(r.bufferedData)),r}}var vF=e=>globalThis.Buffer.from(e);async function kv(e,t){return _f(e,e$,t)}var X9=()=>({contents:"",textDecoder:new TextDecoder}),$m=(e,{textDecoder:t})=>t.decode(e,{stream:!0}),J9=(e,{contents:t})=>t+e,Z9=(e,t)=>e.slice(0,t),Q9=({textDecoder:e})=>{let t=e.decode();return t===""?void 0:t},e$={init:X9,convertChunk:{string:Lv,buffer:$m,arrayBuffer:$m,dataView:$m,typedArray:$m,others:jm},getSize:Vm,truncateChunk:Z9,addChunk:J9,getFinalChunk:Q9,finalize:Rv};var EF=St(CF(),1),SF=e=>{if(e!==void 0)throw new TypeError("The `input` and `inputFile` options cannot be both set.")},s$=({input:e,inputFile:t})=>typeof t!="string"?e:(SF(e),n$(t)),xF=e=>{let t=s$(e);if(km(t))throw new TypeError("The `input` option cannot be a stream in sync mode");return t},o$=({input:e,inputFile:t})=>typeof t!="string"?e:(SF(e),r$(t)),_F=(e,t)=>{let r=o$(t);r!==void 0&&(km(r)?r.pipe(e.stdin):e.stdin.end(r))},bF=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=(0,EF.default)();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},Mv=async(e,t)=>{if(!(!e||t===void 0)){await i$(0),e.destroy();try{return await t}catch(r){return r.bufferedData}}},jv=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(!(!e||!r))return t==="utf8"||t==="utf-8"?kv(e,{maxBuffer:n}):t===null||t==="buffer"?Um(e,{maxBuffer:n}):a$(e,n,t)},a$=async(e,t,r)=>(await Um(e,{maxBuffer:t})).toString(r),OF=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:s},o)=>{let a=jv(e,{encoding:n,buffer:i,maxBuffer:s}),u=jv(t,{encoding:n,buffer:i,maxBuffer:s}),l=jv(r,{encoding:n,buffer:i,maxBuffer:s*2});try{return await Promise.all([o,a,u,l])}catch(c){return Promise.all([{error:c,signal:c.signal,timedOut:c.timedOut},Mv(e,a),Mv(t,u),Mv(r,l)])}};var u$=(async()=>{})().constructor.prototype,l$=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(u$,e)]),Vv=(e,t)=>{for(let[r,n]of l$){let i=typeof t=="function"?(...s)=>Reflect.apply(n.value,t(),s):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i})}},FF=e=>new Promise((t,r)=>{e.on("exit",(n,i)=>{t({exitCode:n,signal:i})}),e.on("error",n=>{r(n)}),e.stdin&&e.stdin.on("error",n=>{r(n)})});import{Buffer as c$}from"node:buffer";import{ChildProcess as f$}from"node:child_process";var TF=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],p$=/^[\w.-]+$/,d$=e=>typeof e!="string"||p$.test(e)?e:`"${e.replaceAll('"','\\"')}"`,Uv=(e,t)=>TF(e,t).join(" "),$v=(e,t)=>TF(e,t).map(r=>d$(r)).join(" "),m$=/ +/g;var AF=e=>{let t=typeof e;if(t==="string")return e;if(t==="number")return String(e);if(t==="object"&&e!==null&&!(e instanceof f$)&&"stdout"in e){let r=typeof e.stdout;if(r==="string")return e.stdout;if(c$.isBuffer(e.stdout))return e.stdout.toString();throw new TypeError(`Unexpected "${r}" stdout in template expression`)}throw new TypeError(`Unexpected "${t}" in template expression`)},IF=(e,t,r)=>r||e.length===0||t.length===0?[...e,...t]:[...e.slice(0,-1),`${e.at(-1)}${t[0]}`,...t.slice(1)],h$=({templates:e,expressions:t,tokens:r,index:n,template:i})=>{let s=i??e.raw[n],o=s.split(m$).filter(Boolean),a=IF(r,o,s.startsWith(" "));if(n===t.length)return a;let u=t[n],l=Array.isArray(u)?u.map(c=>AF(c)):[AF(u)];return IF(a,l,s.endsWith(" "))},Wv=(e,t)=>{let r=[];for(let[n,i]of e.entries())r=h$({templates:e,expressions:t,tokens:r,index:n,template:i});return r};import{debuglog as g$}from"node:util";import y$ from"node:process";var PF=g$("execa").enabled,Wm=(e,t)=>String(e).padStart(t,"0"),D$=()=>{let e=new Date;return`${Wm(e.getHours(),2)}:${Wm(e.getMinutes(),2)}:${Wm(e.getSeconds(),2)}.${Wm(e.getMilliseconds(),3)}`},Gv=(e,{verbose:t})=>{t&&y$.stderr.write(`[${D$()}] ${e}
|
|
498
|
-
`)};var C$=1e3*1e3*100,E$=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let s=t?{...Gm.env,...e}:e;return r?KO({env:s,cwd:n,execPath:i}):s},RF=(e,t,r={})=>{let n=NF.default._parse(e,t,r);return e=n.command,t=n.args,r=n.options,r={maxBuffer:C$,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||Gm.cwd(),execPath:Gm.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:PF,...r},r.env=E$(r),r.stdio=nF(r),Gm.platform==="win32"&&w$.basename(e,".exe")==="cmd"&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n}},bf=(e,t,r)=>typeof t!="string"&&!v$.isBuffer(t)?r===void 0?void 0:"":e.stripFinalNewline?Ev(t):t;function fn(e,t,r){let n=RF(e,t,r),i=Uv(e,t),s=$v(e,t);Gv(s,n.options),uF(n.options);let o;try{o=qv.spawn(n.file,n.args,n.options)}catch(d){let m=new qv.ChildProcess,y=Promise.reject(xf({error:d,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return Vv(m,y),m}let a=FF(o),u=aF(o,n.options,a),l=lF(o,n.options,u),c={isCanceled:!1};o.kill=sF.bind(null,o.kill.bind(o)),o.cancel=oF.bind(null,o,c);let p=JO(async()=>{let[{error:d,exitCode:m,signal:y,timedOut:D},h,g,v]=await OF(o,n.options,l),w=bf(n.options,h),E=bf(n.options,g),I=bf(n.options,v);if(d||m!==0||y!==null){let A=xf({error:d,exitCode:m,signal:y,stdout:w,stderr:E,all:I,command:i,escapedCommand:s,parsed:n,timedOut:D,isCanceled:c.isCanceled||(n.options.signal?n.options.signal.aborted:!1),killed:o.killed});if(!n.options.reject)return A;throw A}return{command:i,escapedCommand:s,exitCode:0,stdout:w,stderr:E,all:I,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return _F(o,n.options),o.all=bF(o,n.options),cF(o),Vv(o,p),o}function pn(e,t,r){let n=RF(e,t,r),i=Uv(e,t),s=$v(e,t);Gv(s,n.options);let o=xF(n.options),a;try{a=qv.spawnSync(n.file,n.args,{...n.options,input:o})}catch(c){throw xf({error:c,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let u=bf(n.options,a.stdout,a.error),l=bf(n.options,a.stderr,a.error);if(a.error||a.status!==0||a.signal!==null){let c=xf({stdout:u,stderr:l,error:a.error,signal:a.signal,exitCode:a.status,command:i,escapedCommand:s,parsed:n,timedOut:a.error&&a.error.code==="ETIMEDOUT",isCanceled:!1,killed:a.signal!==null});if(!n.options.reject)return c;throw c}return{command:i,escapedCommand:s,exitCode:0,stdout:u,stderr:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}var S$=({input:e,inputFile:t,stdio:r})=>e===void 0&&t===void 0&&r===void 0?{stdin:"inherit"}:{},LF=(e={})=>({preferLocal:!0,...S$(e),...e});function BF(e){function t(r,...n){if(!Array.isArray(r))return BF({...e,...r});let[i,...s]=Wv(r,n);return fn(i,s,LF(e))}return t.sync=(r,...n)=>{if(!Array.isArray(r))throw new TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[i,...s]=Wv(r,n);return pn(i,s,LF(e))},t}var x0e=BF();var qm=e=>{throw e.code==="ENOENT"?new Error("Couldn't find the termux-api scripts. You can install them with: apt install termux-api"):e},x$={async copy(e){try{await fn("termux-clipboard-set",e)}catch(t){qm(t)}},async paste(e){try{let{stdout:t}=await fn("termux-clipboard-get",e);return t}catch(t){qm(t)}},copySync(e){try{pn("termux-clipboard-set",e)}catch(t){qm(t)}},pasteSync(e){try{return pn("termux-clipboard-get",e).stdout}catch(t){qm(t)}}},kF=x$;import $F from"node:path";import{fileURLToPath as _$}from"node:url";var b$=$F.dirname(_$(import.meta.url)),WF="xsel",GF=$F.join(b$,"../fallbacks/linux/xsel"),MF=["--clipboard","--input"],jF=["--clipboard","--output"],qF=(e,t)=>{let r;return e.code==="ENOENT"?r=new Error("Couldn't find the `xsel` binary and fallback didn't work. On Debian/Ubuntu you can install xsel with: sudo apt install xsel"):(r=new Error("Both xsel and fallback failed"),r.xselError=e),r.fallbackError=t,r},VF=async(e,t)=>{try{let{stdout:r}=await fn(WF,e,t);return r}catch(r){try{let{stdout:n}=await fn(GF,e,t);return n}catch(n){throw qF(r,n)}}},UF=(e,t)=>{try{return pn(WF,e,t).stdout}catch(r){try{return pn(GF,e,t).stdout}catch(n){throw qF(r,n)}}},O$={async copy(e){await VF(MF,e)},copySync(e){UF(MF,e)},paste:e=>VF(jF,e),pasteSync:e=>UF(jF,e)},zF=O$;var zm={LC_CTYPE:"UTF-8"},F$={copy:async e=>fn("pbcopy",{...e,env:zm}),async paste(e){let{stdout:t}=await fn("pbpaste",{...e,env:zm});return t},copySync:e=>pn("pbcopy",{...e,env:zm}),pasteSync:e=>pn("pbpaste",{...e,env:zm}).stdout},HF=F$;import XF from"node:path";import{fileURLToPath as P$}from"node:url";import{promisify as A$}from"node:util";import I$ from"node:process";import zv from"node:child_process";var k0e=A$(zv.execFile);function YF(){let{arch:e,platform:t,env:r}=I$;return t==="darwin"&&e==="x64"?zv.execFileSync("sysctl",["-inq","sysctl.proc_translated"],{encoding:"utf8"}).trim()==="1"?"arm64":"x64":e==="arm64"||e==="x64"?e:t==="win32"&&Object.hasOwn(r,"PROCESSOR_ARCHITEW6432")||t==="linux"&&zv.execFileSync("getconf",["LONG_BIT"],{encoding:"utf8"}).trim()==="64"?"x64":e}var T$=new Set(["arm64","x64","ppc64","riscv64"]);function KF(){return T$.has(YF())}var L$=XF.dirname(P$(import.meta.url)),N$=KF()?"x86_64":"i686",Hm=XF.join(L$,`../fallbacks/windows/clipboard_${N$}.exe`),R$={copy:async e=>fn(Hm,["--copy"],e),async paste(e){let{stdout:t}=await fn(Hm,["--paste"],e);return t},copySync:e=>pn(Hm,["--copy"],e),pasteSync:e=>pn(Hm,["--paste"],e).stdout},Hv=R$;var Ym=(()=>{switch(JF.platform){case"darwin":return HF;case"win32":return Hv;case"android":{if(JF.env.PREFIX!=="/data/data/com.termux/files/usr")throw new Error("You need to install Termux for this module to work on Android: https://termux.com");return kF}default:return Ua?Hv:zF}})(),Of={};Of.write=async e=>{if(typeof e!="string")throw new TypeError(`Expected a string, got ${typeof e}`);await Ym.copy({input:e})};Of.read=async()=>Ym.paste({stripFinalNewline:!1});Of.writeSync=e=>{if(typeof e!="string")throw new TypeError(`Expected a string, got ${typeof e}`);Ym.copySync({input:e})};Of.readSync=()=>Ym.pasteSync({stripFinalNewline:!1});var ZF=Of;var Xv={};pj(Xv,{client:()=>Wa,createApp:()=>Y$,exchangeAccessToken:()=>X$,getApp:()=>K$,introspectToken:()=>J$,listApps:()=>H$,revokeTokens:()=>Z$});var B$=/\{[^{}]+\}/g,Km=({allowReserved:e,name:t,value:r})=>{if(r==null)return"";if(typeof r=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${t}=${e?r:encodeURIComponent(r)}`},k$=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},M$=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},j$=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},tA=({allowReserved:e,explode:t,name:r,style:n,value:i})=>{if(!t){let a=(e?i:i.map(u=>encodeURIComponent(u))).join(M$(n));switch(n){case"label":return`.${a}`;case"matrix":return`;${r}=${a}`;case"simple":return a;default:return`${r}=${a}`}}let s=k$(n),o=i.map(a=>n==="label"||n==="simple"?e?a:encodeURIComponent(a):Km({allowReserved:e,name:r,value:a})).join(s);return n==="label"||n==="matrix"?s+o:o},rA=({allowReserved:e,explode:t,name:r,style:n,value:i})=>{if(i instanceof Date)return`${r}=${i.toISOString()}`;if(n!=="deepObject"&&!t){let a=[];Object.entries(i).forEach(([l,c])=>{a=[...a,l,e?c:encodeURIComponent(c)]});let u=a.join(",");switch(n){case"form":return`${r}=${u}`;case"label":return`.${u}`;case"matrix":return`;${r}=${u}`;default:return u}}let s=j$(n),o=Object.entries(i).map(([a,u])=>Km({allowReserved:e,name:n==="deepObject"?`${r}[${a}]`:a,value:u})).join(s);return n==="label"||n==="matrix"?s+o:o},V$=({path:e,url:t})=>{let r=t,n=t.match(B$);if(n)for(let i of n){let s=!1,o=i.substring(1,i.length-1),a="simple";o.endsWith("*")&&(s=!0,o=o.substring(0,o.length-1)),o.startsWith(".")?(o=o.substring(1),a="label"):o.startsWith(";")&&(o=o.substring(1),a="matrix");let u=e[o];if(u==null)continue;if(Array.isArray(u)){r=r.replace(i,tA({explode:s,name:o,style:a,value:u}));continue}if(typeof u=="object"){r=r.replace(i,rA({explode:s,name:o,style:a,value:u}));continue}if(a==="matrix"){r=r.replace(i,`;${Km({name:o,value:u})}`);continue}let l=encodeURIComponent(a==="label"?`.${u}`:u);r=r.replace(i,l)}return r},nA=({allowReserved:e,array:t,object:r}={})=>n=>{let i=[];if(n&&typeof n=="object")for(let s in n){let o=n[s];if(o!=null){if(Array.isArray(o)){i=[...i,tA({allowReserved:e,explode:!0,name:s,style:"form",value:o,...t})];continue}if(typeof o=="object"){i=[...i,rA({allowReserved:e,explode:!0,name:s,style:"deepObject",value:o,...r})];continue}i=[...i,Km({allowReserved:e,name:s,value:o})]}}return i.join("&")},U$=e=>{if(!e)return;let t=e.split(";")[0].trim();if(t.startsWith("application/json")||t.endsWith("+json"))return"json";if(t==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(r=>t.startsWith(r)))return"blob";if(t.startsWith("text/"))return"text"},$$=({baseUrl:e,path:t,query:r,querySerializer:n,url:i})=>{let s=i.startsWith("/")?i:`/${i}`,o=e+s;t&&(o=V$({path:t,url:o}));let a=r?n(r):"";return a.startsWith("?")&&(a=a.substring(1)),a&&(o+=`?${a}`),o},QF=(e,t)=>{let r={...e,...t};return r.baseUrl?.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=iA(e.headers,t.headers),r},iA=(...e)=>{let t=new Headers;for(let r of e){if(!r||typeof r!="object")continue;let n=r instanceof Headers?r.entries():Object.entries(r);for(let[i,s]of n)if(s===null)t.delete(i);else if(Array.isArray(s))for(let o of s)t.append(i,o);else s!==void 0&&t.set(i,typeof s=="object"?JSON.stringify(s):s)}return t},Yv=class{_fns;constructor(){this._fns=[]}clear(){this._fns=[]}exists(e){return this._fns.indexOf(e)!==-1}eject(e){let t=this._fns.indexOf(e);t!==-1&&(this._fns=[...this._fns.slice(0,t),...this._fns.slice(t+1)])}use(e){this._fns=[...this._fns,e]}},W$=()=>({error:new Yv,request:new Yv,response:new Yv});var G$={bodySerializer:e=>JSON.stringify(e)},eA=(e,t,r)=>{typeof r=="string"?e.append(t,r):e.append(t,JSON.stringify(r))},Xm={bodySerializer:e=>{let t=new URLSearchParams;return Object.entries(e).forEach(([r,n])=>{n!=null&&(Array.isArray(n)?n.forEach(i=>eA(t,r,i)):eA(t,r,n))}),t}},q$=nA({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),z$={"Content-Type":"application/json"},Kv=(e={})=>({...G$,baseUrl:"",fetch:globalThis.fetch,headers:z$,parseAs:"auto",querySerializer:q$,...e}),Jm=(e={})=>{let t=QF(Kv(),e),r=()=>({...t}),n=a=>(t=QF(t,a),r()),i=a=>$$({baseUrl:a.baseUrl??"",path:a.path,query:a.query,querySerializer:typeof a.querySerializer=="function"?a.querySerializer:nA(a.querySerializer),url:a.url}),s=W$(),o=async a=>{let u={...t,...a,headers:iA(t.headers,a.headers)};u.body&&u.bodySerializer&&(u.body=u.bodySerializer(u.body)),u.body||u.headers.delete("Content-Type");let l=i(u),c={redirect:"follow",...u},f=new Request(l,c);for(let h of s.request._fns)f=await h(f,u);let p=u.fetch,d=await p(f);for(let h of s.response._fns)d=await h(d,f,u);let m={request:f,response:d};if(d.ok){if(d.status===204||d.headers.get("Content-Length")==="0")return{data:{},...m};if(u.parseAs==="stream")return{data:d.body,...m};let h=(u.parseAs==="auto"?U$(d.headers.get("Content-Type")):u.parseAs)??"json",g=await d[h]();return h==="json"&&u.responseTransformer&&(g=await u.responseTransformer(g)),{data:g,...m}}let y=await d.text();try{y=JSON.parse(y)}catch{}let D=y;for(let h of s.error._fns)D=await h(y,d,f,u);if(D=D||{},u.throwOnError)throw D;return{error:D,...m}};return{buildUrl:i,connect:a=>o({...a,method:"CONNECT"}),delete:a=>o({...a,method:"DELETE"}),get:a=>o({...a,method:"GET"}),getConfig:r,head:a=>o({...a,method:"HEAD"}),interceptors:s,options:a=>o({...a,method:"OPTIONS"}),patch:a=>o({...a,method:"PATCH"}),post:a=>o({...a,method:"POST"}),put:a=>o({...a,method:"PUT"}),request:o,setConfig:n,trace:a=>o({...a,method:"TRACE"})}};var Wa=Jm(Kv()),H$=e=>(e?.client??Wa).get({...e,url:"/v1/apps"}),Y$=e=>(e?.client??Wa).post({...e,headers:{"Content-Type":"application/json",...e?.headers},url:"/v1/apps"}),K$=e=>(e?.client??Wa).get({...e,url:"/v1/apps/{appId}"}),X$=e=>(e?.client??Wa).post({...e,...Xm,headers:{"Content-Type":"application/x-www-form-urlencoded",...e?.headers},url:"/v1/oauth/token"}),J$=e=>(e?.client??Wa).post({...e,...Xm,headers:{"Content-Type":"application/x-www-form-urlencoded",...e?.headers},url:"/v1/oauth/introspect"}),Z$=e=>(e?.client??Wa).post({...e,...Xm,headers:{"Content-Type":"application/x-www-form-urlencoded",...e?.headers},url:"/v1/oauth/revoke"});var Zm=class{constructor(t,r,n=!1,i=Xv){this.tokenService=t;this.env=r;this.debug=n;this.generatedAppService=i}getClient=async()=>{let t=await this.tokenService.getToken();if(!t.success)return{success:!1,code:"NO_TOKEN",message:"No token found. Please login first."};let r=Jm({baseUrl:this.env.CONNECT_API_BASE_URL,fetch,headers:{Authorization:`Bearer ${t.data}`,"Content-Type":"application/json"}});return this.debug&&r.interceptors.response.use(n=>{let i=n.headers.get("x-request-id");return n.status>=400?console.warn(`Response status ${n.status} on ${n.url}: request id: ${i}}`):console.log(`Response status ${n.status} on ${n.url}: request id: ${i}`),n}),{success:!0,data:r}};listApps=async()=>{let t=await this.getClient();if(!t.success)return t;let{data:r}=t;try{let n=await this.generatedAppService.listApps({client:r});return n.error?{success:!1,code:"API_FAILURE",message:`Failed to fetch apps data: ${n.error.message}`}:{success:!0,data:n.data.items}}catch(n){return{success:!1,code:"API_FAILURE",message:`Failed to fetch apps data: ${n instanceof Error?n.message:String(n)}`}}};createApp=async({name:t,distribution:r})=>{let n=await this.getClient();if(!n.success)return n;let{data:i}=n;try{let s=await this.generatedAppService.createApp({client:i,body:{name:t,distribution:r}});if(s.error)return{success:!1,code:"API_FAILURE",message:`Failed to create app: ${s.error.message}`};let{app:o}=s.data;return{success:!0,data:o}}catch(s){return{success:!1,code:"API_FAILURE",message:`Failed to create app: ${s instanceof Error?s.message:String(s)}`}}}};import Jv from"crypto";var Qm=class{constructor(t){this.env=t}constructAuthUrl(){let t=`${this.env.CANVA_ENV_URL}/api/oauth/authorized/${this.env.CANVA_CLI_CLIENT_ID}`,r=Jv.randomBytes(96).toString("base64url"),n=Jv.randomBytes(96).toString("base64url"),i=Jv.createHash("sha256").update(r).digest().toString("base64url");return{url:this.getAuthorizationUrl({redirectUri:t,state:n,codeChallenge:i}),codeVerifier:r}}getAuthorizationUrl({redirectUri:t,state:r,codeChallenge:n}){let i=["app:read","app:write","profile:read"].join(" "),s=new URL(`${this.env.CANVA_ENV_URL}/api/oauth/authorize`);return s.searchParams.append("code_challenge",n),s.searchParams.append("code_challenge_method","S256"),s.searchParams.append("scope",i),s.searchParams.append("response_type","code"),s.searchParams.append("client_id",this.env.CANVA_CLI_CLIENT_ID),s.searchParams.append("redirect_uri",t),s.searchParams.append("state",r),s.toString()}};var eh=class{constructor(t){this.cb=t}copy(t){try{return this.cb.writeSync(t),{success:!0,data:void 0}}catch(r){return{success:!1,code:"CLIPBOARD_ERROR",message:`Unable to copy text: ${r}`}}}};var YI=St(HI(),1);import tp from"crypto";var Lh=class{KEY_DERIVATION_ITERATIONS=1e5;KEY_LENGTH=32;async c(){let t=await YI.default.uuid();return`${t.os}::${t.hardware}`}f(t,r){return tp.pbkdf2Sync(t,r,this.KEY_DERIVATION_ITERATIONS,this.KEY_LENGTH,"sha256")}async encrypt(t){try{let r=await this.c(),n=tp.randomBytes(16),i=this.f(r,n),s=tp.randomBytes(12),o=tp.createCipheriv("aes-256-gcm",i,s),a=o.update(t,"utf8","hex");a+=o.final("hex");let u={iv:s.toString("hex"),authTag:o.getAuthTag().toString("hex"),cipherText:a,salt:n.toString("hex")};return{success:!0,data:[u.iv,u.authTag,u.cipherText,u.salt].join(":")}}catch(r){return{success:!1,code:"ENCRYPTION_ERROR",message:`Encryption failed: ${r instanceof Error?r.message:String(r)}`}}}async decrypt(t){try{let r=await this.c(),n=t.split(":");if(n.length!==4)return{success:!1,code:"INVALID_ENCRYPTED_DATA_FORMAT",message:"Invalid encrypted data format."};let[i,s,o,a]=n;if(!i||!s||!o||!a)return{success:!1,code:"INVALID_ENCRYPTED_DATA_FORMAT",message:"Missing required components for decryption."};let u=Buffer.from(i,"hex"),l=Buffer.from(s,"hex"),c=Buffer.from(a,"hex"),f=this.f(r,c),p=tp.createDecipheriv("aes-256-gcm",f,u);p.setAuthTag(l);let d=p.update(o,"hex","utf8");return d+=p.final("utf8"),{success:!0,data:d}}catch(r){return{success:!1,code:"DECRYPTION_ERROR",message:`Decryption failed: ${r instanceof Error?r.message:String(r)}`}}}};import Rh from"node:process";import{Buffer as LH}from"node:buffer";import e3 from"node:path";import{fileURLToPath as NH}from"node:url";import RH from"node:child_process";import ew,{constants as t3}from"node:fs/promises";function tu(e,t,r){let n=i=>Object.defineProperty(e,t,{value:i,enumerable:!0,writable:!0});return Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get(){let i=r();return n(i),i},set(i){n(i)}}),e}import{promisify as AH}from"node:util";import Z1 from"node:process";import{execFile as IH}from"node:child_process";import{promisify as yH}from"node:util";import DH from"node:process";import{execFile as vH}from"node:child_process";var wH=yH(vH);async function K1(){if(DH.platform!=="darwin")throw new Error("macOS only");let{stdout:e}=await wH("defaults",["read","com.apple.LaunchServices/com.apple.launchservices.secure","LSHandlers"]);return/LSHandlerRoleAll = "(?!-)(?<id>[^"]+?)";\s+?LSHandlerURLScheme = (?:http|https);/.exec(e)?.groups.id??"com.apple.Safari"}import CH from"node:process";import{promisify as EH}from"node:util";import{execFile as SH,execFileSync as Gge}from"node:child_process";var xH=EH(SH);async function KI(e,{humanReadableOutput:t=!0}={}){if(CH.platform!=="darwin")throw new Error("macOS only");let r=t?[]:["-ss"],{stdout:n}=await xH("osascript",["-e",e,r]);return n.trim()}async function X1(e){return KI(`tell application "Finder" to set app_path to application file id "${e}" as string
|
|
499
|
-
tell application "System Events" to get value of property list item "CFBundleName" of property list file (app_path & ":Contents:Info.plist")`)}import{promisify as _H}from"node:util";import{execFile as bH}from"node:child_process";var OH=_H(bH),FH={AppXq0fevzme2pys62n3e0fbqa7peapykr8v:{name:"Edge",id:"com.microsoft.edge.old"},MSEdgeDHTML:{name:"Edge",id:"com.microsoft.edge"},MSEdgeHTM:{name:"Edge",id:"com.microsoft.edge"},"IE.HTTP":{name:"Internet Explorer",id:"com.microsoft.ie"},FirefoxURL:{name:"Firefox",id:"org.mozilla.firefox"},ChromeHTML:{name:"Chrome",id:"com.google.chrome"},BraveHTML:{name:"Brave",id:"com.brave.Browser"},BraveBHTML:{name:"Brave Beta",id:"com.brave.Browser.beta"},BraveSSHTM:{name:"Brave Nightly",id:"com.brave.Browser.nightly"}},Nh=class extends Error{};async function J1(e=OH){let{stdout:t}=await e("reg",["QUERY"," HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\http\\UserChoice","/v","ProgId"]),r=/ProgId\s*REG_SZ\s*(?<id>\S+)/.exec(t);if(!r)throw new Nh(`Cannot find Windows browser in stdout: ${JSON.stringify(t)}`);let{id:n}=r.groups,i=FH[n];if(!i)throw new Nh(`Unknown browser ID: ${n}`);return i}var TH=AH(IH),PH=e=>e.toLowerCase().replaceAll(/(?:^|\s|-)\S/g,t=>t.toUpperCase());async function Q1(){if(Z1.platform==="darwin"){let e=await K1();return{name:await X1(e),id:e}}if(Z1.platform==="linux"){let{stdout:e}=await TH("xdg-mime",["query","default","x-scheme-handler/http"]),t=e.trim();return{name:PH(t.replace(/.desktop$/,"").replace("-"," ")),id:t}}if(Z1.platform==="win32")return J1();throw new Error("Only macOS, Linux, and Windows are supported")}var tw=e3.dirname(NH(import.meta.url)),XI=e3.join(tw,"xdg-open"),{platform:Bl,arch:JI}=Rh,BH=(()=>{let e="/mnt/",t;return async function(){if(t)return t;let r="/etc/wsl.conf",n=!1;try{await ew.access(r,t3.F_OK),n=!0}catch{}if(!n)return e;let i=await ew.readFile(r,{encoding:"utf8"}),s=/(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(i);return s?(t=s.groups.mountPoint.trim(),t=t.endsWith("/")?t:`${t}/`,t):e}})(),ZI=async(e,t)=>{let r;for(let n of e)try{return await t(n)}catch(i){r=i}throw r},Bh=async e=>{if(e={wait:!1,background:!1,newInstance:!1,allowNonzeroExitCode:!1,...e},Array.isArray(e.app))return ZI(e.app,a=>Bh({...e,app:a}));let{name:t,arguments:r=[]}=e.app??{};if(r=[...r],Array.isArray(t))return ZI(t,a=>Bh({...e,app:{name:a,arguments:r}}));if(t==="browser"||t==="browserPrivate"){let a={"com.google.chrome":"chrome","google-chrome.desktop":"chrome","org.mozilla.firefox":"firefox","firefox.desktop":"firefox","com.microsoft.msedge":"edge","com.microsoft.edge":"edge","microsoft-edge.desktop":"edge"},u={chrome:"--incognito",firefox:"--private-window",edge:"--inPrivate"},l=await Q1();if(l.id in a){let c=a[l.id];return t==="browserPrivate"&&r.push(u[c]),Bh({...e,app:{name:kl[c],arguments:r}})}throw new Error(`${l.name} is not supported as a default browser`)}let n,i=[],s={};if(Bl==="darwin")n="open",e.wait&&i.push("--wait-apps"),e.background&&i.push("--background"),e.newInstance&&i.push("--new"),t&&i.push("-a",t);else if(Bl==="win32"||Ua&&!yl()&&!t){let a=await BH();n=Ua?`${a}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`:`${Rh.env.SYSTEMROOT||Rh.env.windir||"C:\\Windows"}\\System32\\WindowsPowerShell\\v1.0\\powershell`,i.push("-NoProfile","-NonInteractive","-ExecutionPolicy","Bypass","-EncodedCommand"),Ua||(s.windowsVerbatimArguments=!0);let u=["Start"];e.wait&&u.push("-Wait"),t?(u.push(`"\`"${t}\`""`),e.target&&r.push(e.target)):e.target&&u.push(`"${e.target}"`),r.length>0&&(r=r.map(l=>`"\`"${l}\`""`),u.push("-ArgumentList",r.join(","))),e.target=LH.from(u.join(" "),"utf16le").toString("base64")}else{if(t)n=t;else{let a=!tw||tw==="/",u=!1;try{await ew.access(XI,t3.X_OK),u=!0}catch{}n=Rh.versions.electron??(Bl==="android"||a||!u)?"xdg-open":XI}r.length>0&&i.push(...r),e.wait||(s.stdio="ignore",s.detached=!0)}Bl==="darwin"&&r.length>0&&i.push("--args",...r),e.target&&i.push(e.target);let o=RH.spawn(n,i,s);return e.wait?new Promise((a,u)=>{o.once("error",u),o.once("close",l=>{if(!e.allowNonzeroExitCode&&l>0){u(new Error(`Exited with code ${l}`));return}a(o)})}):(o.unref(),o)},kH=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a `target`");return Bh({...t,target:e})};function QI(e){if(typeof e=="string"||Array.isArray(e))return e;let{[JI]:t}=e;if(!t)throw new Error(`${JI} is not supported`);return t}function rw({[Bl]:e},{wsl:t}){if(t&&Ua)return QI(t);if(!e)throw new Error(`${Bl} is not supported`);return QI(e)}var kl={};tu(kl,"chrome",()=>rw({darwin:"google chrome",win32:"chrome",linux:["google-chrome","google-chrome-stable","chromium"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",x64:["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe","/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]}}));tu(kl,"firefox",()=>rw({darwin:"firefox",win32:"C:\\Program Files\\Mozilla Firefox\\firefox.exe",linux:"firefox"},{wsl:"/mnt/c/Program Files/Mozilla Firefox/firefox.exe"}));tu(kl,"edge",()=>rw({darwin:"microsoft edge",win32:"msedge",linux:["microsoft-edge","microsoft-edge-dev"]},{wsl:"/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"}));tu(kl,"browser",()=>"browser");tu(kl,"browserPrivate",()=>"browserPrivate");var r3=kH;var kh=class{constructor(t){this.debug=t}openUrl=async t=>{try{return await r3(t),{success:!0,data:void 0}}catch(r){let n=r instanceof Error?r.message:`${r}`;return this.debug&&console.error(`Error opening URL: ${n}`),{success:!1,code:"NAVIGATION_ERROR",message:`Failed to open URL: ${n}`}}}};var Mh=class{constructor(t,r,n=!1){this.storageService=t;this.env=r;this.debug=n}generatePreviewResult=async t=>{let r=t;if(!r){let i=await this.getAppId();if(!i.success)return i;r=i.data}return{success:!0,data:this.constructPreviewUrl(r)}};async getAppId(){try{let t=await this.storageService.getAppIdFromEnvFile();if(!t.success)return t;let r=t.data;if(r==="YOUR_APP_ID_HERE"){let n="CANVA_APP_ID is set to the default placeholder value. Please update it in the .env file.";return this.debug&&console.error(n),{success:!1,code:"MISSING_FIELD",message:n}}return{success:!0,data:r}}catch(t){let r=`Unknown Error reading CANVA_APP_ID from .env file: ${t instanceof Error?t.message:String(t)}`;return this.debug&&console.error(r),{success:!1,code:"ENV_READ_ERROR",message:r}}}constructPreviewUrl(t){let r=this.encodeUiState({appId:t}),n=this.env.CANVA_ENV_URL,i=new URL("/login/",n),s=new URL("/design",n);return s.searchParams.append("create",""),s.searchParams.append("width","800"),s.searchParams.append("height","600"),s.searchParams.append("units","px"),s.searchParams.append("ui",r),i.searchParams.append("redirect",s.pathname+s.search),i.toString()}encodeUiState(t){let r={E:{"A?":"N",S:t.appId,g:!0}},n=JSON.stringify(r);return btoa(n).replace(/[+]/g,"-").replace(/[/]/g,"_").replace(/[=]/g,"")}};var u3=St(a3(),1);import QH from"fs/promises";import eY from"os";import tY from"path";var Vh=class{constructor(t,r=QH,n=tY,i=eY.homedir(),s=!1){this.encryptionService=t;this.fileSystem=r;this.pathModule=n;this.debug=s;this.filePath=this.pathModule.join(i,".canva-cli","credentials")}tokenKey="tokenData";flavorKey="flavor";filePath;isNodeError(t){return t instanceof Error&&typeof t.code=="string"}async ensureDirectoryExists(t){try{await this.fileSystem.mkdir(t,{recursive:!0})}catch(r){let n=r instanceof Error?r.message:String(r);throw new Error(`Failed to create directory ${t}: ${n}`)}}async readJsonFromFile(){try{let t=await this.fileSystem.readFile(this.filePath,"utf-8");return JSON.parse(t)}catch(t){let r=t instanceof Error?t.message:String(t);throw new Error(`Failed to read the file at ${this.filePath}: ${r}`)}}async writeJsonToFile(t){try{await this.fileSystem.writeFile(this.filePath,JSON.stringify(t,null,2),"utf-8")}catch(r){let n=r instanceof Error?r.message:String(r);throw new Error(`Failed to write the file at ${this.filePath}: ${n}`)}try{await this.fileSystem.chmod(this.filePath,384)}catch(r){let n=r instanceof Error?r.message:String(r);throw new Error(`Failed to set permissions on the file at ${this.filePath}: ${n}`)}}async saveTokenData({tokenData:t,flavor:r}){let n=await this.encryptionService.encrypt(JSON.stringify(t));if(!n.success)return{success:!1,code:"ENCRYPTION_ERROR",message:`Failed to encrypt token data: ${n.message}`};let i={tokenData:n.data,flavor:r};try{let s=this.pathModule.dirname(this.filePath);return await this.ensureDirectoryExists(s),await this.writeJsonToFile(i),{success:!0,data:void 0}}catch(s){let o=s instanceof Error?s.message:String(s);return{success:!1,code:"API_FAILURE",message:`Failed to save token data to file: ${o}`}}}async getTokenData(){try{let t=await this.readJsonFromFile();if(t[this.tokenKey]){let r=await this.encryptionService.decrypt(t[this.tokenKey]);return r.success?{success:!0,data:JSON.parse(r.data)}:r}else return{success:!1,code:"NO_TOKEN",message:"Token data not found in credentials file."}}catch(t){let r=t instanceof Error?t.message:String(t);return{success:!1,code:"NO_TOKEN",message:`Failed to read the token file: ${r}`}}}async getFlavor(){try{let r=(await this.readJsonFromFile())[this.flavorKey];if(r&&typeof r=="string"&&Object.values(Bi).includes(r))return r}catch{return"prod"}return"prod"}async deleteToken(){try{if((await this.readJsonFromFile())[this.tokenKey])try{await this.fileSystem.access(this.filePath),await this.fileSystem.unlink(this.filePath)}catch(r){if(this.isNodeError(r)&&r.code==="ENOENT")return;let n=r instanceof Error?r.message:String(r);throw new Error(`Failed to delete the token data file: ${n}`)}else throw new Error("Token file does not exist or token data not found.")}catch(t){let r=t instanceof Error?t.message:String(t);throw new Error(`Failed to delete the token data file: ${r}`)}}async getAppIdFromEnvFile(){try{let t=this.pathModule.resolve(process.cwd(),".env");try{await this.fileSystem.access(t)}catch{let s="No .env file found, ensure you are in your intended app's directory.";return this.debug&&console.error(s),{success:!1,code:"FILE_NOT_FOUND",message:s}}let r=await this.fileSystem.readFile(t,"utf-8"),i=u3.parse(r).CANVA_APP_ID;if(!i){let s="CANVA_APP_ID not found in .env file";return this.debug&&console.error(s),{success:!1,code:"MISSING_FIELD",message:s}}return{success:!0,data:i}}catch(t){let r=`Unknown Error reading CANVA_APP_ID from .env file: ${t instanceof Error?t.message:String(t)}`;return this.debug&&console.error(r),{success:!1,code:"ENV_READ_ERROR",message:r}}}};import{Buffer as rY}from"node:buffer";var Fye=new TextEncoder,Uh=new TextDecoder,Aye=2**32;function nY(e){let t=e;return t instanceof Uint8Array&&(t=Uh.decode(t)),t}var l3=e=>new Uint8Array(rY.from(nY(e),"base64url"));var ow=class extends Error{static code="ERR_JOSE_GENERIC";code="ERR_JOSE_GENERIC";constructor(t,r){super(t,r),this.name=this.constructor.name,Error.captureStackTrace?.(this,this.constructor)}};var zi=class extends ow{static code="ERR_JWT_INVALID";code="ERR_JWT_INVALID"};function oY(e){return typeof e=="object"&&e!==null}function aw(e){if(!oY(e)||Object.prototype.toString.call(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}var c3=l3;function uw(e){if(typeof e!="string")throw new zi("JWTs must use Compact JWS serialization, JWT must be a string");let{1:t,length:r}=e.split(".");if(r===5)throw new zi("Only JWTs using Compact JWS serialization can be decoded");if(r!==3)throw new zi("Invalid JWT");if(!t)throw new zi("JWTs must contain a payload");let n;try{n=c3(t)}catch{throw new zi("Failed to base64url decode the payload")}let i;try{i=JSON.parse(Uh.decode(n))}catch{throw new zi("Failed to parse the decoded payload as JSON")}if(!aw(i))throw new zi("Invalid JWT Claims Set");return i}import{URLSearchParams as lw}from"url";var $h=class{constructor(t,r,n=fetch){this.storageService=t;this.env=r;this.fetchFn=n}get tokenEndpointUrl(){return`${this.env.CONNECT_API_BASE_URL}/v1/oauth/token`}async exchangeCodeForToken({authCode:t,codeVerifier:r}){let n=`${this.env.CANVA_ENV_URL}/api/oauth/authorized/${this.env.CANVA_CLI_CLIENT_ID}`;try{let i=await this.fetchFn(this.tokenEndpointUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new lw({grant_type:"authorization_code",code:t,code_verifier:r,client_id:this.env.CANVA_CLI_CLIENT_ID,redirect_uri:n})});if(!i.ok){let o=await i.text();return{success:!1,code:"API_FAILURE",message:`Failed to exchange code for token: ${o}`}}let s=await i.json();return await this.storageService.saveTokenData({tokenData:s,flavor:this.env.FLAVOR}),{success:!0,data:s.access_token}}catch(i){return{success:!1,code:"API_FAILURE",message:`Error exchanging authorization code for token: ${i}`}}}async getToken(){try{let t=await this.storageService.getTokenData();if(!t.success)return t;let r=t.data,n=uw(r.access_token),i=60*10;if(n.exp){let u=n.exp-i;if(Date.now()/1e3<u)return{success:!0,data:r.access_token}}let s=r.refresh_token,o=await this.fetchFn(this.tokenEndpointUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new lw({grant_type:"refresh_token",refresh_token:s,client_id:this.env.CANVA_CLI_CLIENT_ID})});if(!o.ok){let u=await o.text();throw new Error(`Failed to refresh token: ${u}`)}let a=await o.json();return await this.storageService.saveTokenData({tokenData:a,flavor:this.env.FLAVOR}),{success:!0,data:a.access_token}}catch(t){return{success:!1,code:"API_FAILURE",message:`An error occurred while getting the token: ${t}`}}}async revokeToken(){let t=await this.storageService.getTokenData();if(!t.success)return t;let r=t.data,n=`${this.env.CONNECT_API_BASE_URL}/v1/oauth/revoke`;try{let i=await this.fetchFn(n,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new lw({token:r.refresh_token,client_id:this.env.CANVA_CLI_CLIENT_ID})});if(!i.ok)throw new Error(`Failed to revoke token, status: ${i.status}`);return await this.storageService.deleteToken(),{success:!0,data:void 0}}catch(i){return{success:!1,code:"LOGOUT_ERROR",message:`An error occurred while revoking the token: ${i}`}}}isLoggedIn=async()=>(await this.getToken()).success};var Wh=class{constructor(t){this.env=t}getDeveloperPortalUrl(t){return Dm({flavor:this.env.FLAVOR,appId:t})}getAppOriginUrl(t){return V_({flavor:this.env.FLAVOR,appId:t})}};var Ye;(function(e){e.assertEqual=i=>i;function t(i){}e.assertIs=t;function r(i){throw new Error}e.assertNever=r,e.arrayToEnum=i=>{let s={};for(let o of i)s[o]=o;return s},e.getValidEnumValues=i=>{let s=e.objectKeys(i).filter(a=>typeof i[i[a]]!="number"),o={};for(let a of s)o[a]=i[a];return e.objectValues(o)},e.objectValues=i=>e.objectKeys(i).map(function(s){return i[s]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{let s=[];for(let o in i)Object.prototype.hasOwnProperty.call(i,o)&&s.push(o);return s},e.find=(i,s)=>{for(let o of i)if(s(o))return o},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function n(i,s=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(s)}e.joinValues=n,e.jsonStringifyReplacer=(i,s)=>typeof s=="bigint"?s.toString():s})(Ye||(Ye={}));var fw;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(fw||(fw={}));var ce=Ye.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),jo=e=>{switch(typeof e){case"undefined":return ce.undefined;case"string":return ce.string;case"number":return isNaN(e)?ce.nan:ce.number;case"boolean":return ce.boolean;case"function":return ce.function;case"bigint":return ce.bigint;case"symbol":return ce.symbol;case"object":return Array.isArray(e)?ce.array:e===null?ce.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ce.promise:typeof Map<"u"&&e instanceof Map?ce.map:typeof Set<"u"&&e instanceof Set?ce.set:typeof Date<"u"&&e instanceof Date?ce.date:ce.object;default:return ce.unknown}},Z=Ye.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),lY=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),mn=class e extends Error{constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){let r=t||function(s){return s.message},n={_errors:[]},i=s=>{for(let o of s.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)n._errors.push(r(o));else{let a=n,u=0;for(;u<o.path.length;){let l=o.path[u];u===o.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(r(o))):a[l]=a[l]||{_errors:[]},a=a[l],u++}}};return i(this),n}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ye.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){let r={},n=[];for(let i of this.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(t(i))):n.push(t(i));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};mn.create=e=>new mn(e);var Vl=(e,t)=>{let r;switch(e.code){case Z.invalid_type:e.received===ce.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case Z.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,Ye.jsonStringifyReplacer)}`;break;case Z.unrecognized_keys:r=`Unrecognized key(s) in object: ${Ye.joinValues(e.keys,", ")}`;break;case Z.invalid_union:r="Invalid input";break;case Z.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Ye.joinValues(e.options)}`;break;case Z.invalid_enum_value:r=`Invalid enum value. Expected ${Ye.joinValues(e.options)}, received '${e.received}'`;break;case Z.invalid_arguments:r="Invalid function arguments";break;case Z.invalid_return_type:r="Invalid function return type";break;case Z.invalid_date:r="Invalid date";break;case Z.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:Ye.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case Z.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case Z.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case Z.custom:r="Invalid input";break;case Z.invalid_intersection_types:r="Intersection results could not be merged";break;case Z.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case Z.not_finite:r="Number must be finite";break;default:r=t.defaultError,Ye.assertNever(e)}return{message:r}},d3=Vl;function cY(e){d3=e}function Gh(){return d3}var qh=e=>{let{data:t,path:r,errorMaps:n,issueData:i}=e,s=[...r,...i.path||[]],o={...i,path:s};if(i.message!==void 0)return{...i,path:s,message:i.message};let a="",u=n.filter(l=>!!l).slice().reverse();for(let l of u)a=l(o,{data:t,defaultError:a}).message;return{...i,path:s,message:a}},fY=[];function oe(e,t){let r=Gh(),n=qh({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===Vl?void 0:Vl].filter(i=>!!i)});e.common.issues.push(n)}var Cr=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){let n=[];for(let i of r){if(i.status==="aborted")return Pe;i.status==="dirty"&&t.dirty(),n.push(i.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,r){let n=[];for(let i of r){let s=await i.key,o=await i.value;n.push({key:s,value:o})}return e.mergeObjectSync(t,n)}static mergeObjectSync(t,r){let n={};for(let i of r){let{key:s,value:o}=i;if(s.status==="aborted"||o.status==="aborted")return Pe;s.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof o.value<"u"||i.alwaysSet)&&(n[s.value]=o.value)}return{status:t.value,value:n}}},Pe=Object.freeze({status:"aborted"}),jl=e=>({status:"dirty",value:e}),Rr=e=>({status:"valid",value:e}),pw=e=>e.status==="aborted",dw=e=>e.status==="dirty",ip=e=>e.status==="valid",sp=e=>typeof Promise<"u"&&e instanceof Promise;function zh(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function m3(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}var Ee;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(Ee||(Ee={}));var rp,np,Hn=class{constructor(t,r,n,i){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},f3=(e,t)=>{if(ip(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new mn(e.common.issues);return this._error=r,this._error}}};function je(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(o,a)=>{var u,l;let{message:c}=e;return o.code==="invalid_enum_value"?{message:c??a.defaultError}:typeof a.data>"u"?{message:(u=c??n)!==null&&u!==void 0?u:a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:(l=c??r)!==null&&l!==void 0?l:a.defaultError}},description:i}}var Ve=class{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return jo(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:jo(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Cr,ctx:{common:t.parent.common,data:t.data,parsedType:jo(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let r=this._parse(t);if(sp(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){let r=this._parse(t);return Promise.resolve(r)}parse(t,r){let n=this.safeParse(t,r);if(n.success)return n.data;throw n.error}safeParse(t,r){var n;let i={common:{issues:[],async:(n=r?.async)!==null&&n!==void 0?n:!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:jo(t)},s=this._parseSync({data:t,path:i.path,parent:i});return f3(i,s)}async parseAsync(t,r){let n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){let n={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:jo(t)},i=this._parse({data:t,path:n.path,parent:n}),s=await(sp(i)?i:Promise.resolve(i));return f3(n,s)}refine(t,r){let n=i=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(i):r;return this._refinement((i,s)=>{let o=t(i),a=()=>s.addIssue({code:Z.custom,...n(i)});return typeof Promise<"u"&&o instanceof Promise?o.then(u=>u?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(t,r){return this._refinement((n,i)=>t(n)?!0:(i.addIssue(typeof r=="function"?r(n,i):r),!1))}_refinement(t){return new hn({schema:this,typeName:Ie.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return zn.create(this,this._def)}nullable(){return Yi.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ss.create(this,this._def)}promise(){return $o.create(this,this._def)}or(t){return uu.create([this,t],this._def)}and(t){return lu.create(this,t,this._def)}transform(t){return new hn({...je(this._def),schema:this,typeName:Ie.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let r=typeof t=="function"?t:()=>t;return new mu({...je(this._def),innerType:this,defaultValue:r,typeName:Ie.ZodDefault})}brand(){return new op({typeName:Ie.ZodBranded,type:this,...je(this._def)})}catch(t){let r=typeof t=="function"?t:()=>t;return new hu({...je(this._def),innerType:this,catchValue:r,typeName:Ie.ZodCatch})}describe(t){let r=this.constructor;return new r({...this._def,description:t})}pipe(t){return ap.create(this,t)}readonly(){return gu.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},pY=/^c[^\s-]{8,}$/i,dY=/^[0-9a-z]+$/,mY=/^[0-9A-HJKMNP-TV-Z]{26}$/,hY=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,gY=/^[a-z0-9_-]{21}$/i,yY=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,DY=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,vY="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",cw,wY=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,CY=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,EY=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,h3="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",SY=new RegExp(`^${h3}$`);function g3(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function xY(e){return new RegExp(`^${g3(e)}$`)}function y3(e){let t=`${h3}T${g3(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function _Y(e,t){return!!((t==="v4"||!t)&&wY.test(e)||(t==="v6"||!t)&&CY.test(e))}var Vo=class e extends Ve{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ce.string){let s=this._getOrReturnCtx(t);return oe(s,{code:Z.invalid_type,expected:ce.string,received:s.parsedType}),Pe}let n=new Cr,i;for(let s of this._def.checks)if(s.kind==="min")t.data.length<s.value&&(i=this._getOrReturnCtx(t,i),oe(i,{code:Z.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="max")t.data.length>s.value&&(i=this._getOrReturnCtx(t,i),oe(i,{code:Z.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="length"){let o=t.data.length>s.value,a=t.data.length<s.value;(o||a)&&(i=this._getOrReturnCtx(t,i),o?oe(i,{code:Z.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):a&&oe(i,{code:Z.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),n.dirty())}else if(s.kind==="email")DY.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"email",code:Z.invalid_string,message:s.message}),n.dirty());else if(s.kind==="emoji")cw||(cw=new RegExp(vY,"u")),cw.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"emoji",code:Z.invalid_string,message:s.message}),n.dirty());else if(s.kind==="uuid")hY.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"uuid",code:Z.invalid_string,message:s.message}),n.dirty());else if(s.kind==="nanoid")gY.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"nanoid",code:Z.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid")pY.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"cuid",code:Z.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid2")dY.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"cuid2",code:Z.invalid_string,message:s.message}),n.dirty());else if(s.kind==="ulid")mY.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"ulid",code:Z.invalid_string,message:s.message}),n.dirty());else if(s.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),oe(i,{validation:"url",code:Z.invalid_string,message:s.message}),n.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"regex",code:Z.invalid_string,message:s.message}),n.dirty())):s.kind==="trim"?t.data=t.data.trim():s.kind==="includes"?t.data.includes(s.value,s.position)||(i=this._getOrReturnCtx(t,i),oe(i,{code:Z.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),n.dirty()):s.kind==="toLowerCase"?t.data=t.data.toLowerCase():s.kind==="toUpperCase"?t.data=t.data.toUpperCase():s.kind==="startsWith"?t.data.startsWith(s.value)||(i=this._getOrReturnCtx(t,i),oe(i,{code:Z.invalid_string,validation:{startsWith:s.value},message:s.message}),n.dirty()):s.kind==="endsWith"?t.data.endsWith(s.value)||(i=this._getOrReturnCtx(t,i),oe(i,{code:Z.invalid_string,validation:{endsWith:s.value},message:s.message}),n.dirty()):s.kind==="datetime"?y3(s).test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{code:Z.invalid_string,validation:"datetime",message:s.message}),n.dirty()):s.kind==="date"?SY.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{code:Z.invalid_string,validation:"date",message:s.message}),n.dirty()):s.kind==="time"?xY(s).test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{code:Z.invalid_string,validation:"time",message:s.message}),n.dirty()):s.kind==="duration"?yY.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"duration",code:Z.invalid_string,message:s.message}),n.dirty()):s.kind==="ip"?_Y(t.data,s.version)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"ip",code:Z.invalid_string,message:s.message}),n.dirty()):s.kind==="base64"?EY.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"base64",code:Z.invalid_string,message:s.message}),n.dirty()):Ye.assertNever(s);return{status:n.value,value:t.data}}_regex(t,r,n){return this.refinement(i=>t.test(i),{validation:r,code:Z.invalid_string,...Ee.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Ee.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Ee.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Ee.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Ee.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Ee.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Ee.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Ee.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Ee.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Ee.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Ee.errToObj(t)})}datetime(t){var r,n;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:(r=t?.offset)!==null&&r!==void 0?r:!1,local:(n=t?.local)!==null&&n!==void 0?n:!1,...Ee.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...Ee.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...Ee.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...Ee.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r?.position,...Ee.errToObj(r?.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...Ee.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...Ee.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...Ee.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...Ee.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...Ee.errToObj(r)})}nonempty(t){return this.min(1,Ee.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};Vo.create=e=>{var t;return new Vo({checks:[],typeName:Ie.ZodString,coerce:(t=e?.coerce)!==null&&t!==void 0?t:!1,...je(e)})};function bY(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n,s=parseInt(e.toFixed(i).replace(".","")),o=parseInt(t.toFixed(i).replace(".",""));return s%o/Math.pow(10,i)}var ru=class e extends Ve{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==ce.number){let s=this._getOrReturnCtx(t);return oe(s,{code:Z.invalid_type,expected:ce.number,received:s.parsedType}),Pe}let n,i=new Cr;for(let s of this._def.checks)s.kind==="int"?Ye.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),oe(n,{code:Z.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(n=this._getOrReturnCtx(t,n),oe(n,{code:Z.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(n=this._getOrReturnCtx(t,n),oe(n,{code:Z.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="multipleOf"?bY(t.data,s.value)!==0&&(n=this._getOrReturnCtx(t,n),oe(n,{code:Z.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),oe(n,{code:Z.not_finite,message:s.message}),i.dirty()):Ye.assertNever(s);return{status:i.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,Ee.toString(r))}gt(t,r){return this.setLimit("min",t,!1,Ee.toString(r))}lte(t,r){return this.setLimit("max",t,!0,Ee.toString(r))}lt(t,r){return this.setLimit("max",t,!1,Ee.toString(r))}setLimit(t,r,n,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:Ee.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Ee.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Ee.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Ee.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Ee.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Ee.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:Ee.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:Ee.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Ee.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Ee.toString(t)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Ye.isInteger(t.value))}get isFinite(){let t=null,r=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(t===null||n.value<t)&&(t=n.value)}return Number.isFinite(r)&&Number.isFinite(t)}};ru.create=e=>new ru({checks:[],typeName:Ie.ZodNumber,coerce:e?.coerce||!1,...je(e)});var nu=class e extends Ve{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==ce.bigint){let s=this._getOrReturnCtx(t);return oe(s,{code:Z.invalid_type,expected:ce.bigint,received:s.parsedType}),Pe}let n,i=new Cr;for(let s of this._def.checks)s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(n=this._getOrReturnCtx(t,n),oe(n,{code:Z.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(n=this._getOrReturnCtx(t,n),oe(n,{code:Z.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),oe(n,{code:Z.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):Ye.assertNever(s);return{status:i.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,Ee.toString(r))}gt(t,r){return this.setLimit("min",t,!1,Ee.toString(r))}lte(t,r){return this.setLimit("max",t,!0,Ee.toString(r))}lt(t,r){return this.setLimit("max",t,!1,Ee.toString(r))}setLimit(t,r,n,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:Ee.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Ee.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Ee.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Ee.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Ee.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:Ee.toString(r)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};nu.create=e=>{var t;return new nu({checks:[],typeName:Ie.ZodBigInt,coerce:(t=e?.coerce)!==null&&t!==void 0?t:!1,...je(e)})};var iu=class extends Ve{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ce.boolean){let n=this._getOrReturnCtx(t);return oe(n,{code:Z.invalid_type,expected:ce.boolean,received:n.parsedType}),Pe}return Rr(t.data)}};iu.create=e=>new iu({typeName:Ie.ZodBoolean,coerce:e?.coerce||!1,...je(e)});var su=class e extends Ve{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ce.date){let s=this._getOrReturnCtx(t);return oe(s,{code:Z.invalid_type,expected:ce.date,received:s.parsedType}),Pe}if(isNaN(t.data.getTime())){let s=this._getOrReturnCtx(t);return oe(s,{code:Z.invalid_date}),Pe}let n=new Cr,i;for(let s of this._def.checks)s.kind==="min"?t.data.getTime()<s.value&&(i=this._getOrReturnCtx(t,i),oe(i,{code:Z.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),n.dirty()):s.kind==="max"?t.data.getTime()>s.value&&(i=this._getOrReturnCtx(t,i),oe(i,{code:Z.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),n.dirty()):Ye.assertNever(s);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:Ee.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:Ee.toString(r)})}get minDate(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}};su.create=e=>new su({checks:[],coerce:e?.coerce||!1,typeName:Ie.ZodDate,...je(e)});var Ul=class extends Ve{_parse(t){if(this._getType(t)!==ce.symbol){let n=this._getOrReturnCtx(t);return oe(n,{code:Z.invalid_type,expected:ce.symbol,received:n.parsedType}),Pe}return Rr(t.data)}};Ul.create=e=>new Ul({typeName:Ie.ZodSymbol,...je(e)});var ou=class extends Ve{_parse(t){if(this._getType(t)!==ce.undefined){let n=this._getOrReturnCtx(t);return oe(n,{code:Z.invalid_type,expected:ce.undefined,received:n.parsedType}),Pe}return Rr(t.data)}};ou.create=e=>new ou({typeName:Ie.ZodUndefined,...je(e)});var au=class extends Ve{_parse(t){if(this._getType(t)!==ce.null){let n=this._getOrReturnCtx(t);return oe(n,{code:Z.invalid_type,expected:ce.null,received:n.parsedType}),Pe}return Rr(t.data)}};au.create=e=>new au({typeName:Ie.ZodNull,...je(e)});var Uo=class extends Ve{constructor(){super(...arguments),this._any=!0}_parse(t){return Rr(t.data)}};Uo.create=e=>new Uo({typeName:Ie.ZodAny,...je(e)});var Es=class extends Ve{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Rr(t.data)}};Es.create=e=>new Es({typeName:Ie.ZodUnknown,...je(e)});var gi=class extends Ve{_parse(t){let r=this._getOrReturnCtx(t);return oe(r,{code:Z.invalid_type,expected:ce.never,received:r.parsedType}),Pe}};gi.create=e=>new gi({typeName:Ie.ZodNever,...je(e)});var $l=class extends Ve{_parse(t){if(this._getType(t)!==ce.undefined){let n=this._getOrReturnCtx(t);return oe(n,{code:Z.invalid_type,expected:ce.void,received:n.parsedType}),Pe}return Rr(t.data)}};$l.create=e=>new $l({typeName:Ie.ZodVoid,...je(e)});var Ss=class e extends Ve{_parse(t){let{ctx:r,status:n}=this._processInputParams(t),i=this._def;if(r.parsedType!==ce.array)return oe(r,{code:Z.invalid_type,expected:ce.array,received:r.parsedType}),Pe;if(i.exactLength!==null){let o=r.data.length>i.exactLength.value,a=r.data.length<i.exactLength.value;(o||a)&&(oe(r,{code:o?Z.too_big:Z.too_small,minimum:a?i.exactLength.value:void 0,maximum:o?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(i.minLength!==null&&r.data.length<i.minLength.value&&(oe(r,{code:Z.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),i.maxLength!==null&&r.data.length>i.maxLength.value&&(oe(r,{code:Z.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((o,a)=>i.type._parseAsync(new Hn(r,o,r.path,a)))).then(o=>Cr.mergeArray(n,o));let s=[...r.data].map((o,a)=>i.type._parseSync(new Hn(r,o,r.path,a)));return Cr.mergeArray(n,s)}get element(){return this._def.type}min(t,r){return new e({...this._def,minLength:{value:t,message:Ee.toString(r)}})}max(t,r){return new e({...this._def,maxLength:{value:t,message:Ee.toString(r)}})}length(t,r){return new e({...this._def,exactLength:{value:t,message:Ee.toString(r)}})}nonempty(t){return this.min(1,t)}};Ss.create=(e,t)=>new Ss({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ie.ZodArray,...je(t)});function Ml(e){if(e instanceof zr){let t={};for(let r in e.shape){let n=e.shape[r];t[r]=zn.create(Ml(n))}return new zr({...e._def,shape:()=>t})}else return e instanceof Ss?new Ss({...e._def,type:Ml(e.element)}):e instanceof zn?zn.create(Ml(e.unwrap())):e instanceof Yi?Yi.create(Ml(e.unwrap())):e instanceof Hi?Hi.create(e.items.map(t=>Ml(t))):e}var zr=class e extends Ve{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),r=Ye.objectKeys(t);return this._cached={shape:t,keys:r}}_parse(t){if(this._getType(t)!==ce.object){let l=this._getOrReturnCtx(t);return oe(l,{code:Z.invalid_type,expected:ce.object,received:l.parsedType}),Pe}let{status:n,ctx:i}=this._processInputParams(t),{shape:s,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof gi&&this._def.unknownKeys==="strip"))for(let l in i.data)o.includes(l)||a.push(l);let u=[];for(let l of o){let c=s[l],f=i.data[l];u.push({key:{status:"valid",value:l},value:c._parse(new Hn(i,f,i.path,l)),alwaysSet:l in i.data})}if(this._def.catchall instanceof gi){let l=this._def.unknownKeys;if(l==="passthrough")for(let c of a)u.push({key:{status:"valid",value:c},value:{status:"valid",value:i.data[c]}});else if(l==="strict")a.length>0&&(oe(i,{code:Z.unrecognized_keys,keys:a}),n.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let l=this._def.catchall;for(let c of a){let f=i.data[c];u.push({key:{status:"valid",value:c},value:l._parse(new Hn(i,f,i.path,c)),alwaysSet:c in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let l=[];for(let c of u){let f=await c.key,p=await c.value;l.push({key:f,value:p,alwaysSet:c.alwaysSet})}return l}).then(l=>Cr.mergeObjectSync(n,l)):Cr.mergeObjectSync(n,u)}get shape(){return this._def.shape()}strict(t){return Ee.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{var i,s,o,a;let u=(o=(s=(i=this._def).errorMap)===null||s===void 0?void 0:s.call(i,r,n).message)!==null&&o!==void 0?o:n.defaultError;return r.code==="unrecognized_keys"?{message:(a=Ee.errToObj(t).message)!==null&&a!==void 0?a:u}:{message:u}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Ie.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let r={};return Ye.objectKeys(t).forEach(n=>{t[n]&&this.shape[n]&&(r[n]=this.shape[n])}),new e({...this._def,shape:()=>r})}omit(t){let r={};return Ye.objectKeys(this.shape).forEach(n=>{t[n]||(r[n]=this.shape[n])}),new e({...this._def,shape:()=>r})}deepPartial(){return Ml(this)}partial(t){let r={};return Ye.objectKeys(this.shape).forEach(n=>{let i=this.shape[n];t&&!t[n]?r[n]=i:r[n]=i.optional()}),new e({...this._def,shape:()=>r})}required(t){let r={};return Ye.objectKeys(this.shape).forEach(n=>{if(t&&!t[n])r[n]=this.shape[n];else{let s=this.shape[n];for(;s instanceof zn;)s=s._def.innerType;r[n]=s}}),new e({...this._def,shape:()=>r})}keyof(){return D3(Ye.objectKeys(this.shape))}};zr.create=(e,t)=>new zr({shape:()=>e,unknownKeys:"strip",catchall:gi.create(),typeName:Ie.ZodObject,...je(t)});zr.strictCreate=(e,t)=>new zr({shape:()=>e,unknownKeys:"strict",catchall:gi.create(),typeName:Ie.ZodObject,...je(t)});zr.lazycreate=(e,t)=>new zr({shape:e,unknownKeys:"strip",catchall:gi.create(),typeName:Ie.ZodObject,...je(t)});var uu=class extends Ve{_parse(t){let{ctx:r}=this._processInputParams(t),n=this._def.options;function i(s){for(let a of s)if(a.result.status==="valid")return a.result;for(let a of s)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;let o=s.map(a=>new mn(a.ctx.common.issues));return oe(r,{code:Z.invalid_union,unionErrors:o}),Pe}if(r.common.async)return Promise.all(n.map(async s=>{let o={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(i);{let s,o=[];for(let u of n){let l={...r,common:{...r.common,issues:[]},parent:null},c=u._parseSync({data:r.data,path:r.path,parent:l});if(c.status==="valid")return c;c.status==="dirty"&&!s&&(s={result:c,ctx:l}),l.common.issues.length&&o.push(l.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;let a=o.map(u=>new mn(u));return oe(r,{code:Z.invalid_union,unionErrors:a}),Pe}}get options(){return this._def.options}};uu.create=(e,t)=>new uu({options:e,typeName:Ie.ZodUnion,...je(t)});var Cs=e=>e instanceof cu?Cs(e.schema):e instanceof hn?Cs(e.innerType()):e instanceof fu?[e.value]:e instanceof pu?e.options:e instanceof du?Ye.objectValues(e.enum):e instanceof mu?Cs(e._def.innerType):e instanceof ou?[void 0]:e instanceof au?[null]:e instanceof zn?[void 0,...Cs(e.unwrap())]:e instanceof Yi?[null,...Cs(e.unwrap())]:e instanceof op||e instanceof gu?Cs(e.unwrap()):e instanceof hu?Cs(e._def.innerType):[],Hh=class e extends Ve{_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==ce.object)return oe(r,{code:Z.invalid_type,expected:ce.object,received:r.parsedType}),Pe;let n=this.discriminator,i=r.data[n],s=this.optionsMap.get(i);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(oe(r,{code:Z.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),Pe)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,n){let i=new Map;for(let s of r){let o=Cs(s.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let a of o){if(i.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);i.set(a,s)}}return new e({typeName:Ie.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:i,...je(n)})}};function mw(e,t){let r=jo(e),n=jo(t);if(e===t)return{valid:!0,data:e};if(r===ce.object&&n===ce.object){let i=Ye.objectKeys(t),s=Ye.objectKeys(e).filter(a=>i.indexOf(a)!==-1),o={...e,...t};for(let a of s){let u=mw(e[a],t[a]);if(!u.valid)return{valid:!1};o[a]=u.data}return{valid:!0,data:o}}else if(r===ce.array&&n===ce.array){if(e.length!==t.length)return{valid:!1};let i=[];for(let s=0;s<e.length;s++){let o=e[s],a=t[s],u=mw(o,a);if(!u.valid)return{valid:!1};i.push(u.data)}return{valid:!0,data:i}}else return r===ce.date&&n===ce.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var lu=class extends Ve{_parse(t){let{status:r,ctx:n}=this._processInputParams(t),i=(s,o)=>{if(pw(s)||pw(o))return Pe;let a=mw(s.value,o.value);return a.valid?((dw(s)||dw(o))&&r.dirty(),{status:r.value,value:a.data}):(oe(n,{code:Z.invalid_intersection_types}),Pe)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,o])=>i(s,o)):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};lu.create=(e,t,r)=>new lu({left:e,right:t,typeName:Ie.ZodIntersection,...je(r)});var Hi=class e extends Ve{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==ce.array)return oe(n,{code:Z.invalid_type,expected:ce.array,received:n.parsedType}),Pe;if(n.data.length<this._def.items.length)return oe(n,{code:Z.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Pe;!this._def.rest&&n.data.length>this._def.items.length&&(oe(n,{code:Z.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let s=[...n.data].map((o,a)=>{let u=this._def.items[a]||this._def.rest;return u?u._parse(new Hn(n,o,n.path,a)):null}).filter(o=>!!o);return n.common.async?Promise.all(s).then(o=>Cr.mergeArray(r,o)):Cr.mergeArray(r,s)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};Hi.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Hi({items:e,typeName:Ie.ZodTuple,rest:null,...je(t)})};var Yh=class e extends Ve{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==ce.object)return oe(n,{code:Z.invalid_type,expected:ce.object,received:n.parsedType}),Pe;let i=[],s=this._def.keyType,o=this._def.valueType;for(let a in n.data)i.push({key:s._parse(new Hn(n,a,n.path,a)),value:o._parse(new Hn(n,n.data[a],n.path,a)),alwaysSet:a in n.data});return n.common.async?Cr.mergeObjectAsync(r,i):Cr.mergeObjectSync(r,i)}get element(){return this._def.valueType}static create(t,r,n){return r instanceof Ve?new e({keyType:t,valueType:r,typeName:Ie.ZodRecord,...je(n)}):new e({keyType:Vo.create(),valueType:t,typeName:Ie.ZodRecord,...je(r)})}},Wl=class extends Ve{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==ce.map)return oe(n,{code:Z.invalid_type,expected:ce.map,received:n.parsedType}),Pe;let i=this._def.keyType,s=this._def.valueType,o=[...n.data.entries()].map(([a,u],l)=>({key:i._parse(new Hn(n,a,n.path,[l,"key"])),value:s._parse(new Hn(n,u,n.path,[l,"value"]))}));if(n.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let u of o){let l=await u.key,c=await u.value;if(l.status==="aborted"||c.status==="aborted")return Pe;(l.status==="dirty"||c.status==="dirty")&&r.dirty(),a.set(l.value,c.value)}return{status:r.value,value:a}})}else{let a=new Map;for(let u of o){let l=u.key,c=u.value;if(l.status==="aborted"||c.status==="aborted")return Pe;(l.status==="dirty"||c.status==="dirty")&&r.dirty(),a.set(l.value,c.value)}return{status:r.value,value:a}}}};Wl.create=(e,t,r)=>new Wl({valueType:t,keyType:e,typeName:Ie.ZodMap,...je(r)});var Gl=class e extends Ve{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==ce.set)return oe(n,{code:Z.invalid_type,expected:ce.set,received:n.parsedType}),Pe;let i=this._def;i.minSize!==null&&n.data.size<i.minSize.value&&(oe(n,{code:Z.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),r.dirty()),i.maxSize!==null&&n.data.size>i.maxSize.value&&(oe(n,{code:Z.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),r.dirty());let s=this._def.valueType;function o(u){let l=new Set;for(let c of u){if(c.status==="aborted")return Pe;c.status==="dirty"&&r.dirty(),l.add(c.value)}return{status:r.value,value:l}}let a=[...n.data.values()].map((u,l)=>s._parse(new Hn(n,u,n.path,l)));return n.common.async?Promise.all(a).then(u=>o(u)):o(a)}min(t,r){return new e({...this._def,minSize:{value:t,message:Ee.toString(r)}})}max(t,r){return new e({...this._def,maxSize:{value:t,message:Ee.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}};Gl.create=(e,t)=>new Gl({valueType:e,minSize:null,maxSize:null,typeName:Ie.ZodSet,...je(t)});var Kh=class e extends Ve{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==ce.function)return oe(r,{code:Z.invalid_type,expected:ce.function,received:r.parsedType}),Pe;function n(a,u){return qh({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Gh(),Vl].filter(l=>!!l),issueData:{code:Z.invalid_arguments,argumentsError:u}})}function i(a,u){return qh({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Gh(),Vl].filter(l=>!!l),issueData:{code:Z.invalid_return_type,returnTypeError:u}})}let s={errorMap:r.common.contextualErrorMap},o=r.data;if(this._def.returns instanceof $o){let a=this;return Rr(async function(...u){let l=new mn([]),c=await a._def.args.parseAsync(u,s).catch(d=>{throw l.addIssue(n(u,d)),l}),f=await Reflect.apply(o,this,c);return await a._def.returns._def.type.parseAsync(f,s).catch(d=>{throw l.addIssue(i(f,d)),l})})}else{let a=this;return Rr(function(...u){let l=a._def.args.safeParse(u,s);if(!l.success)throw new mn([n(u,l.error)]);let c=Reflect.apply(o,this,l.data),f=a._def.returns.safeParse(c,s);if(!f.success)throw new mn([i(c,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:Hi.create(t).rest(Es.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,n){return new e({args:t||Hi.create([]).rest(Es.create()),returns:r||Es.create(),typeName:Ie.ZodFunction,...je(n)})}},cu=class extends Ve{get schema(){return this._def.getter()}_parse(t){let{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};cu.create=(e,t)=>new cu({getter:e,typeName:Ie.ZodLazy,...je(t)});var fu=class extends Ve{_parse(t){if(t.data!==this._def.value){let r=this._getOrReturnCtx(t);return oe(r,{received:r.data,code:Z.invalid_literal,expected:this._def.value}),Pe}return{status:"valid",value:t.data}}get value(){return this._def.value}};fu.create=(e,t)=>new fu({value:e,typeName:Ie.ZodLiteral,...je(t)});function D3(e,t){return new pu({values:e,typeName:Ie.ZodEnum,...je(t)})}var pu=class e extends Ve{constructor(){super(...arguments),rp.set(this,void 0)}_parse(t){if(typeof t.data!="string"){let r=this._getOrReturnCtx(t),n=this._def.values;return oe(r,{expected:Ye.joinValues(n),received:r.parsedType,code:Z.invalid_type}),Pe}if(zh(this,rp,"f")||m3(this,rp,new Set(this._def.values),"f"),!zh(this,rp,"f").has(t.data)){let r=this._getOrReturnCtx(t),n=this._def.values;return oe(r,{received:r.data,code:Z.invalid_enum_value,options:n}),Pe}return Rr(t.data)}get options(){return this._def.values}get enum(){let t={};for(let r of this._def.values)t[r]=r;return t}get Values(){let t={};for(let r of this._def.values)t[r]=r;return t}get Enum(){let t={};for(let r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return e.create(t,{...this._def,...r})}exclude(t,r=this._def){return e.create(this.options.filter(n=>!t.includes(n)),{...this._def,...r})}};rp=new WeakMap;pu.create=D3;var du=class extends Ve{constructor(){super(...arguments),np.set(this,void 0)}_parse(t){let r=Ye.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==ce.string&&n.parsedType!==ce.number){let i=Ye.objectValues(r);return oe(n,{expected:Ye.joinValues(i),received:n.parsedType,code:Z.invalid_type}),Pe}if(zh(this,np,"f")||m3(this,np,new Set(Ye.getValidEnumValues(this._def.values)),"f"),!zh(this,np,"f").has(t.data)){let i=Ye.objectValues(r);return oe(n,{received:n.data,code:Z.invalid_enum_value,options:i}),Pe}return Rr(t.data)}get enum(){return this._def.values}};np=new WeakMap;du.create=(e,t)=>new du({values:e,typeName:Ie.ZodNativeEnum,...je(t)});var $o=class extends Ve{unwrap(){return this._def.type}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==ce.promise&&r.common.async===!1)return oe(r,{code:Z.invalid_type,expected:ce.promise,received:r.parsedType}),Pe;let n=r.parsedType===ce.promise?r.data:Promise.resolve(r.data);return Rr(n.then(i=>this._def.type.parseAsync(i,{path:r.path,errorMap:r.common.contextualErrorMap})))}};$o.create=(e,t)=>new $o({type:e,typeName:Ie.ZodPromise,...je(t)});var hn=class extends Ve{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ie.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:r,ctx:n}=this._processInputParams(t),i=this._def.effect||null,s={addIssue:o=>{oe(n,o),o.fatal?r.abort():r.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),i.type==="preprocess"){let o=i.transform(n.data,s);if(n.common.async)return Promise.resolve(o).then(async a=>{if(r.value==="aborted")return Pe;let u=await this._def.schema._parseAsync({data:a,path:n.path,parent:n});return u.status==="aborted"?Pe:u.status==="dirty"||r.value==="dirty"?jl(u.value):u});{if(r.value==="aborted")return Pe;let a=this._def.schema._parseSync({data:o,path:n.path,parent:n});return a.status==="aborted"?Pe:a.status==="dirty"||r.value==="dirty"?jl(a.value):a}}if(i.type==="refinement"){let o=a=>{let u=i.refinement(a,s);if(n.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(n.common.async===!1){let a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?Pe:(a.status==="dirty"&&r.dirty(),o(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>a.status==="aborted"?Pe:(a.status==="dirty"&&r.dirty(),o(a.value).then(()=>({status:r.value,value:a.value}))))}if(i.type==="transform")if(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!ip(o))return o;let a=i.transform(o.value,s);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>ip(o)?Promise.resolve(i.transform(o.value,s)).then(a=>({status:r.value,value:a})):o);Ye.assertNever(i)}};hn.create=(e,t,r)=>new hn({schema:e,typeName:Ie.ZodEffects,effect:t,...je(r)});hn.createWithPreprocess=(e,t,r)=>new hn({schema:t,effect:{type:"preprocess",transform:e},typeName:Ie.ZodEffects,...je(r)});var zn=class extends Ve{_parse(t){return this._getType(t)===ce.undefined?Rr(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};zn.create=(e,t)=>new zn({innerType:e,typeName:Ie.ZodOptional,...je(t)});var Yi=class extends Ve{_parse(t){return this._getType(t)===ce.null?Rr(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Yi.create=(e,t)=>new Yi({innerType:e,typeName:Ie.ZodNullable,...je(t)});var mu=class extends Ve{_parse(t){let{ctx:r}=this._processInputParams(t),n=r.data;return r.parsedType===ce.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};mu.create=(e,t)=>new mu({innerType:e,typeName:Ie.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...je(t)});var hu=class extends Ve{_parse(t){let{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return sp(i)?i.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new mn(n.common.issues)},input:n.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new mn(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};hu.create=(e,t)=>new hu({innerType:e,typeName:Ie.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...je(t)});var ql=class extends Ve{_parse(t){if(this._getType(t)!==ce.nan){let n=this._getOrReturnCtx(t);return oe(n,{code:Z.invalid_type,expected:ce.nan,received:n.parsedType}),Pe}return{status:"valid",value:t.data}}};ql.create=e=>new ql({typeName:Ie.ZodNaN,...je(e)});var OY=Symbol("zod_brand"),op=class extends Ve{_parse(t){let{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},ap=class e extends Ve{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{let s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?Pe:s.status==="dirty"?(r.dirty(),jl(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{let i=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?Pe:i.status==="dirty"?(r.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:n.path,parent:n})}}static create(t,r){return new e({in:t,out:r,typeName:Ie.ZodPipeline})}},gu=class extends Ve{_parse(t){let r=this._def.innerType._parse(t),n=i=>(ip(i)&&(i.value=Object.freeze(i.value)),i);return sp(r)?r.then(i=>n(i)):n(r)}unwrap(){return this._def.innerType}};gu.create=(e,t)=>new gu({innerType:e,typeName:Ie.ZodReadonly,...je(t)});function v3(e,t={},r){return e?Uo.create().superRefine((n,i)=>{var s,o;if(!e(n)){let a=typeof t=="function"?t(n):typeof t=="string"?{message:t}:t,u=(o=(s=a.fatal)!==null&&s!==void 0?s:r)!==null&&o!==void 0?o:!0,l=typeof a=="string"?{message:a}:a;i.addIssue({code:"custom",...l,fatal:u})}}):Uo.create()}var FY={object:zr.lazycreate},Ie;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Ie||(Ie={}));var AY=(e,t={message:`Input not instance of ${e.name}`})=>v3(r=>r instanceof e,t),w3=Vo.create,C3=ru.create,IY=ql.create,TY=nu.create,E3=iu.create,PY=su.create,LY=Ul.create,NY=ou.create,RY=au.create,BY=Uo.create,kY=Es.create,MY=gi.create,jY=$l.create,VY=Ss.create,up=zr.create,UY=zr.strictCreate,$Y=uu.create,WY=Hh.create,GY=lu.create,qY=Hi.create,zY=Yh.create,HY=Wl.create,YY=Gl.create,KY=Kh.create,XY=cu.create,JY=fu.create,ZY=pu.create,QY=du.create,eK=$o.create,p3=hn.create,tK=zn.create,rK=Yi.create,nK=hn.createWithPreprocess,iK=ap.create,sK=()=>w3().optional(),oK=()=>C3().optional(),aK=()=>E3().optional(),uK={string:e=>Vo.create({...e,coerce:!0}),number:e=>ru.create({...e,coerce:!0}),boolean:e=>iu.create({...e,coerce:!0}),bigint:e=>nu.create({...e,coerce:!0}),date:e=>su.create({...e,coerce:!0})},lK=Pe,lp=Object.freeze({__proto__:null,defaultErrorMap:Vl,setErrorMap:cY,getErrorMap:Gh,makeIssue:qh,EMPTY_PATH:fY,addIssueToContext:oe,ParseStatus:Cr,INVALID:Pe,DIRTY:jl,OK:Rr,isAborted:pw,isDirty:dw,isValid:ip,isAsync:sp,get util(){return Ye},get objectUtil(){return fw},ZodParsedType:ce,getParsedType:jo,ZodType:Ve,datetimeRegex:y3,ZodString:Vo,ZodNumber:ru,ZodBigInt:nu,ZodBoolean:iu,ZodDate:su,ZodSymbol:Ul,ZodUndefined:ou,ZodNull:au,ZodAny:Uo,ZodUnknown:Es,ZodNever:gi,ZodVoid:$l,ZodArray:Ss,ZodObject:zr,ZodUnion:uu,ZodDiscriminatedUnion:Hh,ZodIntersection:lu,ZodTuple:Hi,ZodRecord:Yh,ZodMap:Wl,ZodSet:Gl,ZodFunction:Kh,ZodLazy:cu,ZodLiteral:fu,ZodEnum:pu,ZodNativeEnum:du,ZodPromise:$o,ZodEffects:hn,ZodTransformer:hn,ZodOptional:zn,ZodNullable:Yi,ZodDefault:mu,ZodCatch:hu,ZodNaN:ql,BRAND:OY,ZodBranded:op,ZodPipeline:ap,ZodReadonly:gu,custom:v3,Schema:Ve,ZodSchema:Ve,late:FY,get ZodFirstPartyTypeKind(){return Ie},coerce:uK,any:BY,array:VY,bigint:TY,boolean:E3,date:PY,discriminatedUnion:WY,effect:p3,enum:ZY,function:KY,instanceof:AY,intersection:GY,lazy:XY,literal:JY,map:HY,nan:IY,nativeEnum:QY,never:MY,null:RY,nullable:rK,number:C3,object:up,oboolean:aK,onumber:oK,optional:tK,ostring:sK,pipeline:iK,preprocess:nK,promise:eK,record:zY,set:YY,strictObject:UY,string:w3,symbol:LY,transformer:p3,tuple:qY,undefined:NY,union:$Y,unknown:kY,void:jY,NEVER:lK,ZodIssueCode:Z,quotelessJson:lY,ZodError:mn});function S3(e){let t=e.runtimeEnvStrict??e.runtimeEnv??process.env;if(e.emptyStringAsUndefined??!1)for(let[I,A]of Object.entries(t))A===""&&delete t[I];if(!!e.skipValidation)return t;let i=typeof e.client=="object"?e.client:{},s=typeof e.server=="object"?e.server:{},o=typeof e.shared=="object"?e.shared:{},a=up(i),u=up(s),l=up(o),c=e.isServer??(typeof window>"u"||"Deno"in window),f=a.merge(l),p=u.merge(l).merge(a),d=c?p.safeParse(t):f.safeParse(t),m=e.onValidationError??(I=>{throw console.error("\u274C Invalid environment variables:",I.flatten().fieldErrors),new Error("Invalid environment variables")}),y=e.onInvalidAccess??(I=>{throw new Error("\u274C Attempted to access a server-side environment variable on the client")});if(d.success===!1)return m(d.error);let D=I=>e.clientPrefix?!I.startsWith(e.clientPrefix)&&!(I in l.shape):!0,h=I=>c||!D(I),g=I=>I==="__esModule"||I==="$$typeof",v=(e.extends??[]).reduce((I,A)=>Object.assign(I,A),{}),w=Object.assign(d.data,v);return new Proxy(w,{get(I,A){if(typeof A=="string"&&!g(A))return h(A)?Reflect.get(I,A):y(A)}})}var cK=e=>{switch(e){case"local":return{CONNECT_API_BASE_URL:"http://localhost:3000/rest",CANVA_ENV_URL:"http://localhost:3000",CANVA_CLI_CLIENT_ID:"FAKE_CLIENT_ID",FLAVOR:"local"};case"dev":return{CONNECT_API_BASE_URL:"https://api.canva-dev.com/rest",CANVA_ENV_URL:"https://www.canva-dev.com",CANVA_CLI_CLIENT_ID:"OC-AZFEJKOjQYw3",FLAVOR:"dev"};case"staging-cn":return{CONNECT_API_BASE_URL:"https://api.canva-staging.cn/rest",CANVA_ENV_URL:"https://www.canva-staging.cn",CANVA_CLI_CLIENT_ID:"OC-AZNlOhtxI_Zb",FLAVOR:"staging-cn"};case"staging":return{CONNECT_API_BASE_URL:"https://api.canva-staging.com/rest",CANVA_ENV_URL:"https://www.canva-staging.com",CANVA_CLI_CLIENT_ID:"OC-AZH-EOTpT8Ib",FLAVOR:"staging"};case"prod-cn":return{CONNECT_API_BASE_URL:"https://api.canva.cn/rest",CANVA_ENV_URL:"https://www.canva.cn",CANVA_CLI_CLIENT_ID:"OC-AZN2AS1hKtVM",FLAVOR:"prod-cn"};case"prod":default:return{CONNECT_API_BASE_URL:"https://api.canva.com/rest",CANVA_ENV_URL:"https://www.canva.com",CANVA_CLI_CLIENT_ID:"OC-AZICxlGo2biD",FLAVOR:"prod"}}},x3=({fallback:e="prod"})=>S3({server:{FLAVOR:lp.enum(["prod","prod-cn","staging","staging-cn","dev","local"]).default(e),CONNECT_API_BASE_URL:lp.string().url(),CANVA_ENV_URL:lp.string().url(),CANVA_CLI_CLIENT_ID:lp.enum(["OC-AZICxlGo2biD","OC-AZN2AS1hKtVM","OC-AZH-EOTpT8Ib","OC-AZNlOhtxI_Zb","OC-AZFEJKOjQYw3","FAKE_CLIENT_ID"]).default("OC-AZICxlGo2biD")},runtimeEnv:cK(k_({fallback:e})),emptyStringAsUndefined:!0});var Jh=({envLines:e,key:t,value:r,comment:n=""})=>e.map(i=>{if(i.startsWith(`${t}=`)){let s=`${t}=${r}`;return n?`${s} ${n}`:s}return i}),Xh=class{constructor(t){this.env=t}get isChina(){return M_(this.env.FLAVOR)}};var Zh=class{constructor(t,r){this.notifier=t;this.debug=r}getUpdateInfo=async()=>{try{return{success:!0,data:await this.notifier.fetchInfo()}}catch(t){let r=t instanceof Error?t.message:`${t}`;return this.debug&&console.error(`Error fetching update info: ${r}`),{success:!1,code:"UPDATE_NOTIFICATION_ERROR",message:`Failed to fetch update info: ${r}`}}}};import Tu from"node:process";import{spawn as Lee}from"node:child_process";import{fileURLToPath as Nee}from"node:url";import LR from"node:path";import{format as WC}from"node:util";var dp=St(R3(),1);import pp from"node:path";import AK from"node:os";import CK from"os";import n0 from"path";var Go=CK.homedir(),{env:Du}=process,B3=Du.XDG_DATA_HOME||(Go?n0.join(Go,".local","share"):void 0),Hl=Du.XDG_CONFIG_HOME||(Go?n0.join(Go,".config"):void 0),pDe=Du.XDG_STATE_HOME||(Go?n0.join(Go,".local","state"):void 0),dDe=Du.XDG_CACHE_HOME||(Go?n0.join(Go,".cache"):void 0),mDe=Du.XDG_RUNTIME_DIR||void 0,EK=(Du.XDG_DATA_DIRS||"/usr/local/share/:/usr/share/").split(":");B3&&EK.unshift(B3);var SK=(Du.XDG_CONFIG_DIRS||"/etc/xdg").split(":");Hl&&SK.unshift(Hl);import OK from"node:path";import Ke from"node:fs";import{promisify as Er}from"node:util";var xs=(e,t)=>function(...n){return e.apply(void 0,n).catch(t)},Ki=(e,t)=>function(...n){try{return e.apply(void 0,n)}catch(i){return t(i)}};import k3 from"node:process";var M3=k3.getuid?!k3.getuid():!1,j3=1e4,Hr=()=>{};var cp={isChangeErrorOk:e=>{if(!cp.isNodeError(e))return!1;let{code:t}=e;return t==="ENOSYS"||!M3&&(t==="EINVAL"||t==="EPERM")},isNodeError:e=>e instanceof Error,isRetriableError:e=>{if(!cp.isNodeError(e))return!1;let{code:t}=e;return t==="EMFILE"||t==="ENFILE"||t==="EAGAIN"||t==="EBUSY"||t==="EACCESS"||t==="EACCES"||t==="EACCS"||t==="EPERM"},onChangeError:e=>{if(!cp.isNodeError(e))throw e;if(!cp.isChangeErrorOk(e))throw e}},Bt=cp;var vw=class{constructor(){this.interval=25,this.intervalId=void 0,this.limit=j3,this.queueActive=new Set,this.queueWaiting=new Set,this.init=()=>{this.intervalId||(this.intervalId=setInterval(this.tick,this.interval))},this.reset=()=>{this.intervalId&&(clearInterval(this.intervalId),delete this.intervalId)},this.add=t=>{this.queueWaiting.add(t),this.queueActive.size<this.limit/2?this.tick():this.init()},this.remove=t=>{this.queueWaiting.delete(t),this.queueActive.delete(t)},this.schedule=()=>new Promise(t=>{let r=()=>this.remove(n),n=()=>t(r);this.add(n)}),this.tick=()=>{if(!(this.queueActive.size>=this.limit)){if(!this.queueWaiting.size)return this.reset();for(let t of this.queueWaiting){if(this.queueActive.size>=this.limit)break;this.queueWaiting.delete(t),this.queueActive.add(t),t()}}}}},V3=new vw;var _s=(e,t)=>function(n){return function i(...s){return V3.schedule().then(o=>{let a=l=>(o(),l),u=l=>{if(o(),Date.now()>=n)throw l;if(t(l)){let c=Math.round(100*Math.random());return new Promise(p=>setTimeout(p,c)).then(()=>i.apply(void 0,s))}throw l};return e.apply(void 0,s).then(a,u)})}},bs=(e,t)=>function(n){return function i(...s){try{return e.apply(void 0,s)}catch(o){if(Date.now()>n)throw o;if(t(o))return i.apply(void 0,s);throw o}}};var xK={attempt:{chmod:xs(Er(Ke.chmod),Bt.onChangeError),chown:xs(Er(Ke.chown),Bt.onChangeError),close:xs(Er(Ke.close),Hr),fsync:xs(Er(Ke.fsync),Hr),mkdir:xs(Er(Ke.mkdir),Hr),realpath:xs(Er(Ke.realpath),Hr),stat:xs(Er(Ke.stat),Hr),unlink:xs(Er(Ke.unlink),Hr),chmodSync:Ki(Ke.chmodSync,Bt.onChangeError),chownSync:Ki(Ke.chownSync,Bt.onChangeError),closeSync:Ki(Ke.closeSync,Hr),existsSync:Ki(Ke.existsSync,Hr),fsyncSync:Ki(Ke.fsync,Hr),mkdirSync:Ki(Ke.mkdirSync,Hr),realpathSync:Ki(Ke.realpathSync,Hr),statSync:Ki(Ke.statSync,Hr),unlinkSync:Ki(Ke.unlinkSync,Hr)},retry:{close:_s(Er(Ke.close),Bt.isRetriableError),fsync:_s(Er(Ke.fsync),Bt.isRetriableError),open:_s(Er(Ke.open),Bt.isRetriableError),readFile:_s(Er(Ke.readFile),Bt.isRetriableError),rename:_s(Er(Ke.rename),Bt.isRetriableError),stat:_s(Er(Ke.stat),Bt.isRetriableError),write:_s(Er(Ke.write),Bt.isRetriableError),writeFile:_s(Er(Ke.writeFile),Bt.isRetriableError),closeSync:bs(Ke.closeSync,Bt.isRetriableError),fsyncSync:bs(Ke.fsyncSync,Bt.isRetriableError),openSync:bs(Ke.openSync,Bt.isRetriableError),readFileSync:bs(Ke.readFileSync,Bt.isRetriableError),renameSync:bs(Ke.renameSync,Bt.isRetriableError),statSync:bs(Ke.statSync,Bt.isRetriableError),writeSync:bs(Ke.writeSync,Bt.isRetriableError),writeFileSync:bs(Ke.writeFileSync,Bt.isRetriableError)}},nr=xK;import U3 from"node:os";import ww from"node:process";var $3="utf8",Cw=438,W3=511;var G3={},q3=U3.userInfo().uid,z3=U3.userInfo().gid;var H3=1e3,Y3=!!ww.getuid,NDe=ww.getuid?!ww.getuid():!1,Ew=128;var K3=e=>e instanceof Error&&"code"in e;var Sw=e=>typeof e=="string",i0=e=>e===void 0;import bK from"node:path";import Yl from"node:process";import X3 from"node:process";var J3=X3.platform==="linux",s0=X3.platform==="win32";var xw=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];s0||xw.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");J3&&xw.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED");var Z3=xw;var _w=class{constructor(){this.callbacks=new Set,this.exited=!1,this.exit=t=>{if(!this.exited){this.exited=!0;for(let r of this.callbacks)r();t&&(s0&&t!=="SIGINT"&&t!=="SIGTERM"&&t!=="SIGKILL"?Yl.kill(Yl.pid,"SIGTERM"):Yl.kill(Yl.pid,t))}},this.hook=()=>{Yl.once("exit",()=>this.exit());for(let t of Z3)try{Yl.once(t,()=>this.exit(t))}catch{}},this.register=t=>(this.callbacks.add(t),()=>{this.callbacks.delete(t)}),this.hook()}},Q3=new _w;var _K=Q3.register,eT=_K;var gn={store:{},create:e=>{let t=`000000${Math.floor(Math.random()*16777215).toString(16)}`.slice(-6),i=`.tmp-${Date.now().toString().slice(-10)}${t}`;return`${e}${i}`},get:(e,t,r=!0)=>{let n=gn.truncate(t(e));return n in gn.store?gn.get(e,t,r):(gn.store[n]=r,[n,()=>delete gn.store[n]])},purge:e=>{gn.store[e]&&(delete gn.store[e],nr.attempt.unlink(e))},purgeSync:e=>{gn.store[e]&&(delete gn.store[e],nr.attempt.unlinkSync(e))},purgeSyncAll:()=>{for(let e in gn.store)gn.purgeSync(e)},truncate:e=>{let t=bK.basename(e);if(t.length<=Ew)return e;let r=/^(\.?)(.*?)((?:\.[^.]+)?(?:\.tmp-\d{10}[a-f0-9]{6})?)$/.exec(t);if(!r)return e;let n=t.length-Ew;return`${e.slice(0,-t.length)}${r[1]}${r[2].slice(0,-n)}${r[3]}`}};eT(gn.purgeSyncAll);var fp=gn;function o0(e,t,r=G3){if(Sw(r))return o0(e,t,{encoding:r});let n=Date.now()+((r.timeout??H3)||-1),i=null,s=null,o=null;try{let a=nr.attempt.realpathSync(e),u=!!a;e=a||e,[s,i]=fp.get(e,r.tmpCreate||fp.create,r.tmpPurge!==!1);let l=Y3&&i0(r.chown),c=i0(r.mode);if(u&&(l||c)){let f=nr.attempt.statSync(e);f&&(r={...r},l&&(r.chown={uid:f.uid,gid:f.gid}),c&&(r.mode=f.mode))}if(!u){let f=OK.dirname(e);nr.attempt.mkdirSync(f,{mode:W3,recursive:!0})}o=nr.retry.openSync(n)(s,"w",r.mode||Cw),r.tmpCreated&&r.tmpCreated(s),Sw(t)?nr.retry.writeSync(n)(o,t,0,r.encoding||$3):i0(t)||nr.retry.writeSync(n)(o,t,0,t.length,0),r.fsync!==!1&&(r.fsyncWait!==!1?nr.retry.fsyncSync(n)(o):nr.attempt.fsync(o)),nr.retry.closeSync(n)(o),o=null,r.chown&&(r.chown.uid!==q3||r.chown.gid!==z3)&&nr.attempt.chownSync(s,r.chown.uid,r.chown.gid),r.mode&&r.mode!==Cw&&nr.attempt.chmodSync(s,r.mode);try{nr.retry.renameSync(n)(s,e)}catch(f){if(!K3(f)||f.code!=="ENAMETOOLONG")throw f;nr.retry.renameSync(n)(s,fp.truncate(e))}i(),s=null}finally{o&&nr.attempt.closeSync(o),s&&fp.purge(s)}}var vu=e=>{let t=typeof e;return e!==null&&(t==="object"||t==="function")};var bw=new Set(["__proto__","prototype","constructor"]),FK=new Set("0123456789");function a0(e){let t=[],r="",n="start",i=!1;for(let s of e)switch(s){case"\\":{if(n==="index")throw new Error("Invalid character in an index");if(n==="indexEnd")throw new Error("Invalid character after an index");i&&(r+=s),n="property",i=!i;break}case".":{if(n==="index")throw new Error("Invalid character in an index");if(n==="indexEnd"){n="property";break}if(i){i=!1,r+=s;break}if(bw.has(r))return[];t.push(r),r="",n="property";break}case"[":{if(n==="index")throw new Error("Invalid character in an index");if(n==="indexEnd"){n="index";break}if(i){i=!1,r+=s;break}if(n==="property"){if(bw.has(r))return[];t.push(r),r=""}n="index";break}case"]":{if(n==="index"){t.push(Number.parseInt(r,10)),r="",n="indexEnd";break}if(n==="indexEnd")throw new Error("Invalid character after an index")}default:{if(n==="index"&&!FK.has(s))throw new Error("Invalid character in an index");if(n==="indexEnd")throw new Error("Invalid character after an index");n==="start"&&(n="property"),i&&(i=!1,r+="\\"),r+=s}}switch(i&&(r+="\\"),n){case"property":{if(bw.has(r))return[];t.push(r);break}case"index":throw new Error("Index was not closed");case"start":{t.push("");break}}return t}function Ow(e,t){if(typeof t!="number"&&Array.isArray(e)){let r=Number.parseInt(t,10);return Number.isInteger(r)&&e[r]===e[t]}return!1}function tT(e,t){if(Ow(e,t))throw new Error("Cannot use string index")}function rT(e,t,r){if(!vu(e)||typeof t!="string")return r===void 0?e:r;let n=a0(t);if(n.length===0)return r;for(let i=0;i<n.length;i++){let s=n[i];if(Ow(e,s)?e=i===n.length-1?void 0:null:e=e[s],e==null){if(i!==n.length-1)return r;break}}return e===void 0?r:e}function Fw(e,t,r){if(!vu(e)||typeof t!="string")return e;let n=e,i=a0(t);for(let s=0;s<i.length;s++){let o=i[s];tT(e,o),s===i.length-1?e[o]=r:vu(e[o])||(e[o]=typeof i[s+1]=="number"?[]:{}),e=e[o]}return n}function nT(e,t){if(!vu(e)||typeof t!="string")return!1;let r=a0(t);for(let n=0;n<r.length;n++){let i=r[n];if(tT(e,i),n===r.length-1)return delete e[i],!0;if(e=e[i],!vu(e))return!1}}function iT(e,t){if(!vu(e)||typeof t!="string")return!1;let r=a0(t);if(r.length===0)return!1;for(let n of r){if(!vu(e)||!(n in e)||Ow(e,n))return!1;e=e[n]}return!0}function IK(e,t){let r=t?pp.join(e,"config.json"):pp.join("configstore",`${e}.json`),n=Hl??dp.default.mkdtempSync(dp.default.realpathSync(AK.tmpdir())+pp.sep);return pp.join(n,r)}var sT="You don't have access to this file.",TK={mode:448,recursive:!0},oT={mode:384},mp=class{constructor(t,r,n={}){this._path=n.configPath??IK(t,n.globalConfigPath),r&&(this.all={...r,...this.all})}get all(){try{return JSON.parse(dp.default.readFileSync(this._path,"utf8"))}catch(t){if(t.code==="ENOENT")return{};if(t.code==="EACCES"&&(t.message=`${t.message}
|
|
497
|
+
`);return h?(n.originalMessage=n.message,n.message=v):n=new Error(v),n.shortMessage=g,n.command=o,n.escapedCommand=a,n.exitCode=s,n.signal=i,n.signalDescription=d,n.stdout=e,n.stderr=t,n.cwd=p,r!==void 0&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!u,n.isCanceled=l,n.killed=c&&!u,n};var Nm=["stdin","stdout","stderr"],_9=e=>Nm.some(t=>e[t]!==void 0),nF=e=>{if(!e)return;let{stdio:t}=e;if(t===void 0)return Nm.map(n=>e[n]);if(_9(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Nm.map(n=>`\`${n}\``).join(", ")}`);if(typeof t=="string")return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let r=Math.max(t.length,Nm.length);return Array.from({length:r},(n,i)=>t[i])};import F9 from"node:os";var $a=[];$a.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&$a.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&$a.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var Rm=e=>!!e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function",_v=Symbol.for("signal-exit emitter"),bv=globalThis,b9=Object.defineProperty.bind(Object),Ov=class{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(bv[_v])return bv[_v];b9(bv,_v,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(t,r){this.listeners[t].push(r)}removeListener(t,r){let n=this.listeners[t],i=n.indexOf(r);i!==-1&&(i===0&&n.length===1?n.length=0:n.splice(i,1))}emit(t,r,n){if(this.emitted[t])return!1;this.emitted[t]=!0;let i=!1;for(let s of this.listeners[t])i=s(r,n)===!0||i;return t==="exit"&&(i=this.emit("afterExit",r,n)||i),i}},Bm=class{},O9=e=>({onExit(t,r){return e.onExit(t,r)},load(){return e.load()},unload(){return e.unload()}}),Fv=class extends Bm{onExit(){return()=>{}}load(){}unload(){}},Av=class extends Bm{#n=Iv.platform==="win32"?"SIGINT":"SIGHUP";#t=new Ov;#e;#r;#o;#s={};#i=!1;constructor(t){super(),this.#e=t,this.#s={};for(let r of $a)this.#s[r]=()=>{let n=this.#e.listeners(r),{count:i}=this.#t,s=t;if(typeof s.__signal_exit_emitter__=="object"&&typeof s.__signal_exit_emitter__.count=="number"&&(i+=s.__signal_exit_emitter__.count),n.length===i){this.unload();let o=this.#t.emit("exit",null,r),a=r==="SIGHUP"?this.#n:r;o||t.kill(t.pid,a)}};this.#o=t.reallyExit,this.#r=t.emit}onExit(t,r){if(!Rm(this.#e))return()=>{};this.#i===!1&&this.load();let n=r?.alwaysLast?"afterExit":"exit";return this.#t.on(n,t),()=>{this.#t.removeListener(n,t),this.#t.listeners.exit.length===0&&this.#t.listeners.afterExit.length===0&&this.unload()}}load(){if(!this.#i){this.#i=!0,this.#t.count+=1;for(let t of $a)try{let r=this.#s[t];r&&this.#e.on(t,r)}catch{}this.#e.emit=(t,...r)=>this.#u(t,...r),this.#e.reallyExit=t=>this.#a(t)}}unload(){this.#i&&(this.#i=!1,$a.forEach(t=>{let r=this.#s[t];if(!r)throw new Error("Listener not defined for signal: "+t);try{this.#e.removeListener(t,r)}catch{}}),this.#e.emit=this.#r,this.#e.reallyExit=this.#o,this.#t.count-=1)}#a(t){return Rm(this.#e)?(this.#e.exitCode=t||0,this.#t.emit("exit",this.#e.exitCode,null),this.#o.call(this.#e,this.#e.exitCode)):0}#u(t,...r){let n=this.#r;if(t==="exit"&&Rm(this.#e)){typeof r[0]=="number"&&(this.#e.exitCode=r[0]);let i=n.call(this.#e,t,...r);return this.#t.emit("exit",this.#e.exitCode,null),i}else return n.call(this.#e,t,...r)}},Iv=globalThis.process,{onExit:iF,load:ghe,unload:yhe}=O9(Rm(Iv)?new Av(Iv):new Fv);var A9=1e3*5,sF=(e,t="SIGTERM",r={})=>{let n=e(t);return I9(e,t,r,n),n},I9=(e,t,r,n)=>{if(!T9(t,r,n))return;let i=L9(r),s=setTimeout(()=>{e("SIGKILL")},i);s.unref&&s.unref()},T9=(e,{forceKillAfterTimeout:t},r)=>P9(e)&&t!==!1&&r,P9=e=>e===F9.constants.signals.SIGTERM||typeof e=="string"&&e.toUpperCase()==="SIGTERM",L9=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return A9;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},oF=(e,t)=>{e.kill()&&(t.isCanceled=!0)},N9=(e,t,r)=>{e.kill(t),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:t}))},aF=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{if(t===0||t===void 0)return n;let i,s=new Promise((a,u)=>{i=setTimeout(()=>{N9(e,r,u)},t)}),o=n.finally(()=>{clearTimeout(i)});return Promise.race([s,o])},uF=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},lF=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=iF(()=>{e.kill()});return n.finally(()=>{i()})};import{createWriteStream as R9}from"node:fs";import{ChildProcess as B9}from"node:child_process";function km(e){return e!==null&&typeof e=="object"&&typeof e.pipe=="function"}function Tv(e){return km(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object"}var k9=e=>e instanceof B9&&typeof e.then=="function",Pv=(e,t,r)=>{if(typeof r=="string")return e[t].pipe(R9(r)),e;if(Tv(r))return e[t].pipe(r),e;if(!k9(r))throw new TypeError("The second argument must be a string, a stream or an Execa child process.");if(!Tv(r.stdin))throw new TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r},cF=e=>{e.stdout!==null&&(e.pipeStdout=Pv.bind(void 0,e,"stdout")),e.stderr!==null&&(e.pipeStderr=Pv.bind(void 0,e,"stderr")),e.all!==void 0&&(e.pipeAll=Pv.bind(void 0,e,"all"))};import{createReadStream as r$,readFileSync as n$}from"node:fs";import{setTimeout as i$}from"node:timers/promises";var _f=async(e,{init:t,convertChunk:r,getSize:n,truncateChunk:i,addChunk:s,getFinalChunk:o,finalize:a},{maxBuffer:u=Number.POSITIVE_INFINITY}={})=>{if(!j9(e))throw new Error("The first argument must be a Readable, a ReadableStream, or an async iterable.");let l=t();l.length=0;try{for await(let c of e){let f=V9(c),p=r[f](c,l);dF({convertedChunk:p,state:l,getSize:n,truncateChunk:i,addChunk:s,maxBuffer:u})}return M9({state:l,convertChunk:r,getSize:n,truncateChunk:i,addChunk:s,getFinalChunk:o,maxBuffer:u}),a(l)}catch(c){throw c.bufferedData=a(l),c}},M9=({state:e,getSize:t,truncateChunk:r,addChunk:n,getFinalChunk:i,maxBuffer:s})=>{let o=i(e);o!==void 0&&dF({convertedChunk:o,state:e,getSize:t,truncateChunk:r,addChunk:n,maxBuffer:s})},dF=({convertedChunk:e,state:t,getSize:r,truncateChunk:n,addChunk:i,maxBuffer:s})=>{let o=r(e),a=t.length+o;if(a<=s){fF(e,t,i,a);return}let u=n(e,s-t.length);throw u!==void 0&&fF(u,t,i,s),new Mm},fF=(e,t,r,n)=>{t.contents=r(e,t,n),t.length=n},j9=e=>typeof e=="object"&&e!==null&&typeof e[Symbol.asyncIterator]=="function",V9=e=>{let t=typeof e;if(t==="string")return"string";if(t!=="object"||e===null)return"others";if(globalThis.Buffer?.isBuffer(e))return"buffer";let r=pF.call(e);return r==="[object ArrayBuffer]"?"arrayBuffer":r==="[object DataView]"?"dataView":Number.isInteger(e.byteLength)&&Number.isInteger(e.byteOffset)&&pF.call(e.buffer)==="[object ArrayBuffer]"?"typedArray":"others"},{toString:pF}=Object.prototype,Mm=class extends Error{name="MaxBufferError";constructor(){super("maxBuffer exceeded")}};var Lv=e=>e,Nv=()=>{},Rv=({contents:e})=>e,jm=e=>{throw new Error(`Streams in object mode are not supported: ${String(e)}`)},Vm=e=>e.length;async function Bv(e,t){return _f(e,K9,t)}var U9=()=>({contents:new ArrayBuffer(0)}),$9=e=>W9.encode(e),W9=new TextEncoder,mF=e=>new Uint8Array(e),hF=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),G9=(e,t)=>e.slice(0,t),q9=(e,{contents:t,length:r},n)=>{let i=DF()?H9(t,n):z9(t,n);return new Uint8Array(i).set(e,r),i},z9=(e,t)=>{if(t<=e.byteLength)return e;let r=new ArrayBuffer(yF(t));return new Uint8Array(r).set(new Uint8Array(e),0),r},H9=(e,t)=>{if(t<=e.maxByteLength)return e.resize(t),e;let r=new ArrayBuffer(t,{maxByteLength:yF(t)});return new Uint8Array(r).set(new Uint8Array(e),0),r},yF=e=>gF**Math.ceil(Math.log(e)/Math.log(gF)),gF=2,Y9=({contents:e,length:t})=>DF()?e:e.slice(0,t),DF=()=>"resize"in ArrayBuffer.prototype,K9={init:U9,convertChunk:{string:$9,buffer:mF,arrayBuffer:mF,dataView:hF,typedArray:hF,others:jm},getSize:Vm,truncateChunk:G9,addChunk:q9,getFinalChunk:Nv,finalize:Y9};async function Um(e,t){if(!("Buffer"in globalThis))throw new Error("getStreamAsBuffer() is only supported in Node.js");try{return vF(await Bv(e,t))}catch(r){throw r.bufferedData!==void 0&&(r.bufferedData=vF(r.bufferedData)),r}}var vF=e=>globalThis.Buffer.from(e);async function kv(e,t){return _f(e,e$,t)}var X9=()=>({contents:"",textDecoder:new TextDecoder}),$m=(e,{textDecoder:t})=>t.decode(e,{stream:!0}),J9=(e,{contents:t})=>t+e,Z9=(e,t)=>e.slice(0,t),Q9=({textDecoder:e})=>{let t=e.decode();return t===""?void 0:t},e$={init:X9,convertChunk:{string:Lv,buffer:$m,arrayBuffer:$m,dataView:$m,typedArray:$m,others:jm},getSize:Vm,truncateChunk:Z9,addChunk:J9,getFinalChunk:Q9,finalize:Rv};var EF=St(CF(),1),SF=e=>{if(e!==void 0)throw new TypeError("The `input` and `inputFile` options cannot be both set.")},s$=({input:e,inputFile:t})=>typeof t!="string"?e:(SF(e),n$(t)),xF=e=>{let t=s$(e);if(km(t))throw new TypeError("The `input` option cannot be a stream in sync mode");return t},o$=({input:e,inputFile:t})=>typeof t!="string"?e:(SF(e),r$(t)),_F=(e,t)=>{let r=o$(t);r!==void 0&&(km(r)?r.pipe(e.stdin):e.stdin.end(r))},bF=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=(0,EF.default)();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},Mv=async(e,t)=>{if(!(!e||t===void 0)){await i$(0),e.destroy();try{return await t}catch(r){return r.bufferedData}}},jv=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(!(!e||!r))return t==="utf8"||t==="utf-8"?kv(e,{maxBuffer:n}):t===null||t==="buffer"?Um(e,{maxBuffer:n}):a$(e,n,t)},a$=async(e,t,r)=>(await Um(e,{maxBuffer:t})).toString(r),OF=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:s},o)=>{let a=jv(e,{encoding:n,buffer:i,maxBuffer:s}),u=jv(t,{encoding:n,buffer:i,maxBuffer:s}),l=jv(r,{encoding:n,buffer:i,maxBuffer:s*2});try{return await Promise.all([o,a,u,l])}catch(c){return Promise.all([{error:c,signal:c.signal,timedOut:c.timedOut},Mv(e,a),Mv(t,u),Mv(r,l)])}};var u$=(async()=>{})().constructor.prototype,l$=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(u$,e)]),Vv=(e,t)=>{for(let[r,n]of l$){let i=typeof t=="function"?(...s)=>Reflect.apply(n.value,t(),s):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i})}},FF=e=>new Promise((t,r)=>{e.on("exit",(n,i)=>{t({exitCode:n,signal:i})}),e.on("error",n=>{r(n)}),e.stdin&&e.stdin.on("error",n=>{r(n)})});import{Buffer as c$}from"node:buffer";import{ChildProcess as f$}from"node:child_process";var TF=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],p$=/^[\w.-]+$/,d$=e=>typeof e!="string"||p$.test(e)?e:`"${e.replaceAll('"','\\"')}"`,Uv=(e,t)=>TF(e,t).join(" "),$v=(e,t)=>TF(e,t).map(r=>d$(r)).join(" "),m$=/ +/g;var AF=e=>{let t=typeof e;if(t==="string")return e;if(t==="number")return String(e);if(t==="object"&&e!==null&&!(e instanceof f$)&&"stdout"in e){let r=typeof e.stdout;if(r==="string")return e.stdout;if(c$.isBuffer(e.stdout))return e.stdout.toString();throw new TypeError(`Unexpected "${r}" stdout in template expression`)}throw new TypeError(`Unexpected "${t}" in template expression`)},IF=(e,t,r)=>r||e.length===0||t.length===0?[...e,...t]:[...e.slice(0,-1),`${e.at(-1)}${t[0]}`,...t.slice(1)],h$=({templates:e,expressions:t,tokens:r,index:n,template:i})=>{let s=i??e.raw[n],o=s.split(m$).filter(Boolean),a=IF(r,o,s.startsWith(" "));if(n===t.length)return a;let u=t[n],l=Array.isArray(u)?u.map(c=>AF(c)):[AF(u)];return IF(a,l,s.endsWith(" "))},Wv=(e,t)=>{let r=[];for(let[n,i]of e.entries())r=h$({templates:e,expressions:t,tokens:r,index:n,template:i});return r};import{debuglog as g$}from"node:util";import y$ from"node:process";var PF=g$("execa").enabled,Wm=(e,t)=>String(e).padStart(t,"0"),D$=()=>{let e=new Date;return`${Wm(e.getHours(),2)}:${Wm(e.getMinutes(),2)}:${Wm(e.getSeconds(),2)}.${Wm(e.getMilliseconds(),3)}`},Gv=(e,{verbose:t})=>{t&&y$.stderr.write(`[${D$()}] ${e}
|
|
498
|
+
`)};var C$=1e3*1e3*100,E$=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let s=t?{...Gm.env,...e}:e;return r?KO({env:s,cwd:n,execPath:i}):s},RF=(e,t,r={})=>{let n=NF.default._parse(e,t,r);return e=n.command,t=n.args,r=n.options,r={maxBuffer:C$,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||Gm.cwd(),execPath:Gm.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:PF,...r},r.env=E$(r),r.stdio=nF(r),Gm.platform==="win32"&&w$.basename(e,".exe")==="cmd"&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n}},bf=(e,t,r)=>typeof t!="string"&&!v$.isBuffer(t)?r===void 0?void 0:"":e.stripFinalNewline?Ev(t):t;function fn(e,t,r){let n=RF(e,t,r),i=Uv(e,t),s=$v(e,t);Gv(s,n.options),uF(n.options);let o;try{o=qv.spawn(n.file,n.args,n.options)}catch(d){let m=new qv.ChildProcess,y=Promise.reject(xf({error:d,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return Vv(m,y),m}let a=FF(o),u=aF(o,n.options,a),l=lF(o,n.options,u),c={isCanceled:!1};o.kill=sF.bind(null,o.kill.bind(o)),o.cancel=oF.bind(null,o,c);let p=JO(async()=>{let[{error:d,exitCode:m,signal:y,timedOut:D},h,g,v]=await OF(o,n.options,l),w=bf(n.options,h),E=bf(n.options,g),I=bf(n.options,v);if(d||m!==0||y!==null){let A=xf({error:d,exitCode:m,signal:y,stdout:w,stderr:E,all:I,command:i,escapedCommand:s,parsed:n,timedOut:D,isCanceled:c.isCanceled||(n.options.signal?n.options.signal.aborted:!1),killed:o.killed});if(!n.options.reject)return A;throw A}return{command:i,escapedCommand:s,exitCode:0,stdout:w,stderr:E,all:I,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return _F(o,n.options),o.all=bF(o,n.options),cF(o),Vv(o,p),o}function pn(e,t,r){let n=RF(e,t,r),i=Uv(e,t),s=$v(e,t);Gv(s,n.options);let o=xF(n.options),a;try{a=qv.spawnSync(n.file,n.args,{...n.options,input:o})}catch(c){throw xf({error:c,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let u=bf(n.options,a.stdout,a.error),l=bf(n.options,a.stderr,a.error);if(a.error||a.status!==0||a.signal!==null){let c=xf({stdout:u,stderr:l,error:a.error,signal:a.signal,exitCode:a.status,command:i,escapedCommand:s,parsed:n,timedOut:a.error&&a.error.code==="ETIMEDOUT",isCanceled:!1,killed:a.signal!==null});if(!n.options.reject)return c;throw c}return{command:i,escapedCommand:s,exitCode:0,stdout:u,stderr:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}var S$=({input:e,inputFile:t,stdio:r})=>e===void 0&&t===void 0&&r===void 0?{stdin:"inherit"}:{},LF=(e={})=>({preferLocal:!0,...S$(e),...e});function BF(e){function t(r,...n){if(!Array.isArray(r))return BF({...e,...r});let[i,...s]=Wv(r,n);return fn(i,s,LF(e))}return t.sync=(r,...n)=>{if(!Array.isArray(r))throw new TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[i,...s]=Wv(r,n);return pn(i,s,LF(e))},t}var S0e=BF();var qm=e=>{throw e.code==="ENOENT"?new Error("Couldn't find the termux-api scripts. You can install them with: apt install termux-api"):e},x$={async copy(e){try{await fn("termux-clipboard-set",e)}catch(t){qm(t)}},async paste(e){try{let{stdout:t}=await fn("termux-clipboard-get",e);return t}catch(t){qm(t)}},copySync(e){try{pn("termux-clipboard-set",e)}catch(t){qm(t)}},pasteSync(e){try{return pn("termux-clipboard-get",e).stdout}catch(t){qm(t)}}},kF=x$;import $F from"node:path";import{fileURLToPath as _$}from"node:url";var b$=$F.dirname(_$(import.meta.url)),WF="xsel",GF=$F.join(b$,"../fallbacks/linux/xsel"),MF=["--clipboard","--input"],jF=["--clipboard","--output"],qF=(e,t)=>{let r;return e.code==="ENOENT"?r=new Error("Couldn't find the `xsel` binary and fallback didn't work. On Debian/Ubuntu you can install xsel with: sudo apt install xsel"):(r=new Error("Both xsel and fallback failed"),r.xselError=e),r.fallbackError=t,r},VF=async(e,t)=>{try{let{stdout:r}=await fn(WF,e,t);return r}catch(r){try{let{stdout:n}=await fn(GF,e,t);return n}catch(n){throw qF(r,n)}}},UF=(e,t)=>{try{return pn(WF,e,t).stdout}catch(r){try{return pn(GF,e,t).stdout}catch(n){throw qF(r,n)}}},O$={async copy(e){await VF(MF,e)},copySync(e){UF(MF,e)},paste:e=>VF(jF,e),pasteSync:e=>UF(jF,e)},zF=O$;var zm={LC_CTYPE:"UTF-8"},F$={copy:async e=>fn("pbcopy",{...e,env:zm}),async paste(e){let{stdout:t}=await fn("pbpaste",{...e,env:zm});return t},copySync:e=>pn("pbcopy",{...e,env:zm}),pasteSync:e=>pn("pbpaste",{...e,env:zm}).stdout},HF=F$;import XF from"node:path";import{fileURLToPath as P$}from"node:url";import{promisify as A$}from"node:util";import I$ from"node:process";import zv from"node:child_process";var B0e=A$(zv.execFile);function YF(){let{arch:e,platform:t,env:r}=I$;return t==="darwin"&&e==="x64"?zv.execFileSync("sysctl",["-inq","sysctl.proc_translated"],{encoding:"utf8"}).trim()==="1"?"arm64":"x64":e==="arm64"||e==="x64"?e:t==="win32"&&Object.hasOwn(r,"PROCESSOR_ARCHITEW6432")||t==="linux"&&zv.execFileSync("getconf",["LONG_BIT"],{encoding:"utf8"}).trim()==="64"?"x64":e}var T$=new Set(["arm64","x64","ppc64","riscv64"]);function KF(){return T$.has(YF())}var L$=XF.dirname(P$(import.meta.url)),N$=KF()?"x86_64":"i686",Hm=XF.join(L$,`../fallbacks/windows/clipboard_${N$}.exe`),R$={copy:async e=>fn(Hm,["--copy"],e),async paste(e){let{stdout:t}=await fn(Hm,["--paste"],e);return t},copySync:e=>pn(Hm,["--copy"],e),pasteSync:e=>pn(Hm,["--paste"],e).stdout},Hv=R$;var Ym=(()=>{switch(JF.platform){case"darwin":return HF;case"win32":return Hv;case"android":{if(JF.env.PREFIX!=="/data/data/com.termux/files/usr")throw new Error("You need to install Termux for this module to work on Android: https://termux.com");return kF}default:return Ua?Hv:zF}})(),Of={};Of.write=async e=>{if(typeof e!="string")throw new TypeError(`Expected a string, got ${typeof e}`);await Ym.copy({input:e})};Of.read=async()=>Ym.paste({stripFinalNewline:!1});Of.writeSync=e=>{if(typeof e!="string")throw new TypeError(`Expected a string, got ${typeof e}`);Ym.copySync({input:e})};Of.readSync=()=>Ym.pasteSync({stripFinalNewline:!1});var ZF=Of;var Xv={};pj(Xv,{client:()=>Wa,createApp:()=>Y$,exchangeAccessToken:()=>X$,getApp:()=>K$,introspectToken:()=>J$,listApps:()=>H$,revokeTokens:()=>Z$});var B$=/\{[^{}]+\}/g,Km=({allowReserved:e,name:t,value:r})=>{if(r==null)return"";if(typeof r=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${t}=${e?r:encodeURIComponent(r)}`},k$=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},M$=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},j$=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},tA=({allowReserved:e,explode:t,name:r,style:n,value:i})=>{if(!t){let a=(e?i:i.map(u=>encodeURIComponent(u))).join(M$(n));switch(n){case"label":return`.${a}`;case"matrix":return`;${r}=${a}`;case"simple":return a;default:return`${r}=${a}`}}let s=k$(n),o=i.map(a=>n==="label"||n==="simple"?e?a:encodeURIComponent(a):Km({allowReserved:e,name:r,value:a})).join(s);return n==="label"||n==="matrix"?s+o:o},rA=({allowReserved:e,explode:t,name:r,style:n,value:i})=>{if(i instanceof Date)return`${r}=${i.toISOString()}`;if(n!=="deepObject"&&!t){let a=[];Object.entries(i).forEach(([l,c])=>{a=[...a,l,e?c:encodeURIComponent(c)]});let u=a.join(",");switch(n){case"form":return`${r}=${u}`;case"label":return`.${u}`;case"matrix":return`;${r}=${u}`;default:return u}}let s=j$(n),o=Object.entries(i).map(([a,u])=>Km({allowReserved:e,name:n==="deepObject"?`${r}[${a}]`:a,value:u})).join(s);return n==="label"||n==="matrix"?s+o:o},V$=({path:e,url:t})=>{let r=t,n=t.match(B$);if(n)for(let i of n){let s=!1,o=i.substring(1,i.length-1),a="simple";o.endsWith("*")&&(s=!0,o=o.substring(0,o.length-1)),o.startsWith(".")?(o=o.substring(1),a="label"):o.startsWith(";")&&(o=o.substring(1),a="matrix");let u=e[o];if(u==null)continue;if(Array.isArray(u)){r=r.replace(i,tA({explode:s,name:o,style:a,value:u}));continue}if(typeof u=="object"){r=r.replace(i,rA({explode:s,name:o,style:a,value:u}));continue}if(a==="matrix"){r=r.replace(i,`;${Km({name:o,value:u})}`);continue}let l=encodeURIComponent(a==="label"?`.${u}`:u);r=r.replace(i,l)}return r},nA=({allowReserved:e,array:t,object:r}={})=>n=>{let i=[];if(n&&typeof n=="object")for(let s in n){let o=n[s];if(o!=null){if(Array.isArray(o)){i=[...i,tA({allowReserved:e,explode:!0,name:s,style:"form",value:o,...t})];continue}if(typeof o=="object"){i=[...i,rA({allowReserved:e,explode:!0,name:s,style:"deepObject",value:o,...r})];continue}i=[...i,Km({allowReserved:e,name:s,value:o})]}}return i.join("&")},U$=e=>{if(!e)return;let t=e.split(";")[0].trim();if(t.startsWith("application/json")||t.endsWith("+json"))return"json";if(t==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(r=>t.startsWith(r)))return"blob";if(t.startsWith("text/"))return"text"},$$=({baseUrl:e,path:t,query:r,querySerializer:n,url:i})=>{let s=i.startsWith("/")?i:`/${i}`,o=e+s;t&&(o=V$({path:t,url:o}));let a=r?n(r):"";return a.startsWith("?")&&(a=a.substring(1)),a&&(o+=`?${a}`),o},QF=(e,t)=>{let r={...e,...t};return r.baseUrl?.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=iA(e.headers,t.headers),r},iA=(...e)=>{let t=new Headers;for(let r of e){if(!r||typeof r!="object")continue;let n=r instanceof Headers?r.entries():Object.entries(r);for(let[i,s]of n)if(s===null)t.delete(i);else if(Array.isArray(s))for(let o of s)t.append(i,o);else s!==void 0&&t.set(i,typeof s=="object"?JSON.stringify(s):s)}return t},Yv=class{_fns;constructor(){this._fns=[]}clear(){this._fns=[]}exists(e){return this._fns.indexOf(e)!==-1}eject(e){let t=this._fns.indexOf(e);t!==-1&&(this._fns=[...this._fns.slice(0,t),...this._fns.slice(t+1)])}use(e){this._fns=[...this._fns,e]}},W$=()=>({error:new Yv,request:new Yv,response:new Yv});var G$={bodySerializer:e=>JSON.stringify(e)},eA=(e,t,r)=>{typeof r=="string"?e.append(t,r):e.append(t,JSON.stringify(r))},Xm={bodySerializer:e=>{let t=new URLSearchParams;return Object.entries(e).forEach(([r,n])=>{n!=null&&(Array.isArray(n)?n.forEach(i=>eA(t,r,i)):eA(t,r,n))}),t}},q$=nA({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),z$={"Content-Type":"application/json"},Kv=(e={})=>({...G$,baseUrl:"",fetch:globalThis.fetch,headers:z$,parseAs:"auto",querySerializer:q$,...e}),Jm=(e={})=>{let t=QF(Kv(),e),r=()=>({...t}),n=a=>(t=QF(t,a),r()),i=a=>$$({baseUrl:a.baseUrl??"",path:a.path,query:a.query,querySerializer:typeof a.querySerializer=="function"?a.querySerializer:nA(a.querySerializer),url:a.url}),s=W$(),o=async a=>{let u={...t,...a,headers:iA(t.headers,a.headers)};u.body&&u.bodySerializer&&(u.body=u.bodySerializer(u.body)),u.body||u.headers.delete("Content-Type");let l=i(u),c={redirect:"follow",...u},f=new Request(l,c);for(let h of s.request._fns)f=await h(f,u);let p=u.fetch,d=await p(f);for(let h of s.response._fns)d=await h(d,f,u);let m={request:f,response:d};if(d.ok){if(d.status===204||d.headers.get("Content-Length")==="0")return{data:{},...m};if(u.parseAs==="stream")return{data:d.body,...m};let h=(u.parseAs==="auto"?U$(d.headers.get("Content-Type")):u.parseAs)??"json",g=await d[h]();return h==="json"&&u.responseTransformer&&(g=await u.responseTransformer(g)),{data:g,...m}}let y=await d.text();try{y=JSON.parse(y)}catch{}let D=y;for(let h of s.error._fns)D=await h(y,d,f,u);if(D=D||{},u.throwOnError)throw D;return{error:D,...m}};return{buildUrl:i,connect:a=>o({...a,method:"CONNECT"}),delete:a=>o({...a,method:"DELETE"}),get:a=>o({...a,method:"GET"}),getConfig:r,head:a=>o({...a,method:"HEAD"}),interceptors:s,options:a=>o({...a,method:"OPTIONS"}),patch:a=>o({...a,method:"PATCH"}),post:a=>o({...a,method:"POST"}),put:a=>o({...a,method:"PUT"}),request:o,setConfig:n,trace:a=>o({...a,method:"TRACE"})}};var Wa=Jm(Kv()),H$=e=>(e?.client??Wa).get({...e,url:"/v1/apps"}),Y$=e=>(e?.client??Wa).post({...e,headers:{"Content-Type":"application/json",...e?.headers},url:"/v1/apps"}),K$=e=>(e?.client??Wa).get({...e,url:"/v1/apps/{appId}"}),X$=e=>(e?.client??Wa).post({...e,...Xm,headers:{"Content-Type":"application/x-www-form-urlencoded",...e?.headers},url:"/v1/oauth/token"}),J$=e=>(e?.client??Wa).post({...e,...Xm,headers:{"Content-Type":"application/x-www-form-urlencoded",...e?.headers},url:"/v1/oauth/introspect"}),Z$=e=>(e?.client??Wa).post({...e,...Xm,headers:{"Content-Type":"application/x-www-form-urlencoded",...e?.headers},url:"/v1/oauth/revoke"});var Zm=class{constructor(t,r,n=!1,i=Xv){this.tokenService=t;this.env=r;this.debug=n;this.generatedAppService=i}getClient=async()=>{let t=await this.tokenService.getToken();if(!t.success)return{success:!1,code:"NO_TOKEN",message:"No token found. Please login first."};let r=Jm({baseUrl:this.env.CONNECT_API_BASE_URL,fetch,headers:{Authorization:`Bearer ${t.data}`,"Content-Type":"application/json"}});return this.debug&&r.interceptors.response.use(n=>{let i=n.headers.get("x-request-id");return n.status>=400?console.warn(`Response status ${n.status} on ${n.url}: request id: ${i}}`):console.log(`Response status ${n.status} on ${n.url}: request id: ${i}`),n}),{success:!0,data:r}};listApps=async()=>{let t=await this.getClient();if(!t.success)return t;let{data:r}=t;try{let n=await this.generatedAppService.listApps({client:r});return n.error?{success:!1,code:"API_FAILURE",message:`Failed to fetch apps data: ${n.error.message}`}:{success:!0,data:n.data.items}}catch(n){return{success:!1,code:"API_FAILURE",message:`Failed to fetch apps data: ${n instanceof Error?n.message:String(n)}`}}};createApp=async({name:t,distribution:r})=>{let n=await this.getClient();if(!n.success)return n;let{data:i}=n;try{let s=await this.generatedAppService.createApp({client:i,body:{name:t,distribution:r}});if(s.error)return{success:!1,code:"API_FAILURE",message:`Failed to create app: ${s.error.message}`};let{app:o}=s.data;return{success:!0,data:o}}catch(s){return{success:!1,code:"API_FAILURE",message:`Failed to create app: ${s instanceof Error?s.message:String(s)}`}}}};import Jv from"crypto";var Qm=class{constructor(t){this.env=t}constructAuthUrl(){let t=`${this.env.CANVA_ENV_URL}/api/oauth/authorized/${this.env.CANVA_CLI_CLIENT_ID}`,r=Jv.randomBytes(96).toString("base64url"),n=Jv.randomBytes(96).toString("base64url"),i=Jv.createHash("sha256").update(r).digest().toString("base64url");return{url:this.getAuthorizationUrl({redirectUri:t,state:n,codeChallenge:i}),codeVerifier:r}}getAuthorizationUrl({redirectUri:t,state:r,codeChallenge:n}){let i=["app:read","app:write","profile:read"].join(" "),s=new URL(`${this.env.CANVA_ENV_URL}/api/oauth/authorize`);return s.searchParams.append("code_challenge",n),s.searchParams.append("code_challenge_method","S256"),s.searchParams.append("scope",i),s.searchParams.append("response_type","code"),s.searchParams.append("client_id",this.env.CANVA_CLI_CLIENT_ID),s.searchParams.append("redirect_uri",t),s.searchParams.append("state",r),s.toString()}};var eh=class{constructor(t){this.cb=t}copy(t){try{return this.cb.writeSync(t),{success:!0,data:void 0}}catch(r){return{success:!1,code:"CLIPBOARD_ERROR",message:`Unable to copy text: ${r}`}}}};var YI=St(HI(),1);import tp from"crypto";var Lh=class{KEY_DERIVATION_ITERATIONS=1e5;KEY_LENGTH=32;async c(){let t=await YI.default.uuid();return`${t.os}::${t.hardware}`}f(t,r){return tp.pbkdf2Sync(t,r,this.KEY_DERIVATION_ITERATIONS,this.KEY_LENGTH,"sha256")}async encrypt(t){try{let r=await this.c(),n=tp.randomBytes(16),i=this.f(r,n),s=tp.randomBytes(12),o=tp.createCipheriv("aes-256-gcm",i,s),a=o.update(t,"utf8","hex");a+=o.final("hex");let u={iv:s.toString("hex"),authTag:o.getAuthTag().toString("hex"),cipherText:a,salt:n.toString("hex")};return{success:!0,data:[u.iv,u.authTag,u.cipherText,u.salt].join(":")}}catch(r){return{success:!1,code:"ENCRYPTION_ERROR",message:`Encryption failed: ${r instanceof Error?r.message:String(r)}`}}}async decrypt(t){try{let r=await this.c(),n=t.split(":");if(n.length!==4)return{success:!1,code:"INVALID_ENCRYPTED_DATA_FORMAT",message:"Invalid encrypted data format."};let[i,s,o,a]=n;if(!i||!s||!o||!a)return{success:!1,code:"INVALID_ENCRYPTED_DATA_FORMAT",message:"Missing required components for decryption."};let u=Buffer.from(i,"hex"),l=Buffer.from(s,"hex"),c=Buffer.from(a,"hex"),f=this.f(r,c),p=tp.createDecipheriv("aes-256-gcm",f,u);p.setAuthTag(l);let d=p.update(o,"hex","utf8");return d+=p.final("utf8"),{success:!0,data:d}}catch(r){return{success:!1,code:"DECRYPTION_ERROR",message:`Decryption failed: ${r instanceof Error?r.message:String(r)}`}}}};import Rh from"node:process";import{Buffer as LH}from"node:buffer";import e3 from"node:path";import{fileURLToPath as NH}from"node:url";import RH from"node:child_process";import ew,{constants as t3}from"node:fs/promises";function tu(e,t,r){let n=i=>Object.defineProperty(e,t,{value:i,enumerable:!0,writable:!0});return Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get(){let i=r();return n(i),i},set(i){n(i)}}),e}import{promisify as AH}from"node:util";import Z1 from"node:process";import{execFile as IH}from"node:child_process";import{promisify as yH}from"node:util";import DH from"node:process";import{execFile as vH}from"node:child_process";var wH=yH(vH);async function K1(){if(DH.platform!=="darwin")throw new Error("macOS only");let{stdout:e}=await wH("defaults",["read","com.apple.LaunchServices/com.apple.launchservices.secure","LSHandlers"]);return/LSHandlerRoleAll = "(?!-)(?<id>[^"]+?)";\s+?LSHandlerURLScheme = (?:http|https);/.exec(e)?.groups.id??"com.apple.Safari"}import CH from"node:process";import{promisify as EH}from"node:util";import{execFile as SH,execFileSync as Wge}from"node:child_process";var xH=EH(SH);async function KI(e,{humanReadableOutput:t=!0}={}){if(CH.platform!=="darwin")throw new Error("macOS only");let r=t?[]:["-ss"],{stdout:n}=await xH("osascript",["-e",e,r]);return n.trim()}async function X1(e){return KI(`tell application "Finder" to set app_path to application file id "${e}" as string
|
|
499
|
+
tell application "System Events" to get value of property list item "CFBundleName" of property list file (app_path & ":Contents:Info.plist")`)}import{promisify as _H}from"node:util";import{execFile as bH}from"node:child_process";var OH=_H(bH),FH={AppXq0fevzme2pys62n3e0fbqa7peapykr8v:{name:"Edge",id:"com.microsoft.edge.old"},MSEdgeDHTML:{name:"Edge",id:"com.microsoft.edge"},MSEdgeHTM:{name:"Edge",id:"com.microsoft.edge"},"IE.HTTP":{name:"Internet Explorer",id:"com.microsoft.ie"},FirefoxURL:{name:"Firefox",id:"org.mozilla.firefox"},ChromeHTML:{name:"Chrome",id:"com.google.chrome"},BraveHTML:{name:"Brave",id:"com.brave.Browser"},BraveBHTML:{name:"Brave Beta",id:"com.brave.Browser.beta"},BraveSSHTM:{name:"Brave Nightly",id:"com.brave.Browser.nightly"}},Nh=class extends Error{};async function J1(e=OH){let{stdout:t}=await e("reg",["QUERY"," HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\http\\UserChoice","/v","ProgId"]),r=/ProgId\s*REG_SZ\s*(?<id>\S+)/.exec(t);if(!r)throw new Nh(`Cannot find Windows browser in stdout: ${JSON.stringify(t)}`);let{id:n}=r.groups,i=FH[n];if(!i)throw new Nh(`Unknown browser ID: ${n}`);return i}var TH=AH(IH),PH=e=>e.toLowerCase().replaceAll(/(?:^|\s|-)\S/g,t=>t.toUpperCase());async function Q1(){if(Z1.platform==="darwin"){let e=await K1();return{name:await X1(e),id:e}}if(Z1.platform==="linux"){let{stdout:e}=await TH("xdg-mime",["query","default","x-scheme-handler/http"]),t=e.trim();return{name:PH(t.replace(/.desktop$/,"").replace("-"," ")),id:t}}if(Z1.platform==="win32")return J1();throw new Error("Only macOS, Linux, and Windows are supported")}var tw=e3.dirname(NH(import.meta.url)),XI=e3.join(tw,"xdg-open"),{platform:Bl,arch:JI}=Rh,BH=(()=>{let e="/mnt/",t;return async function(){if(t)return t;let r="/etc/wsl.conf",n=!1;try{await ew.access(r,t3.F_OK),n=!0}catch{}if(!n)return e;let i=await ew.readFile(r,{encoding:"utf8"}),s=/(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(i);return s?(t=s.groups.mountPoint.trim(),t=t.endsWith("/")?t:`${t}/`,t):e}})(),ZI=async(e,t)=>{let r;for(let n of e)try{return await t(n)}catch(i){r=i}throw r},Bh=async e=>{if(e={wait:!1,background:!1,newInstance:!1,allowNonzeroExitCode:!1,...e},Array.isArray(e.app))return ZI(e.app,a=>Bh({...e,app:a}));let{name:t,arguments:r=[]}=e.app??{};if(r=[...r],Array.isArray(t))return ZI(t,a=>Bh({...e,app:{name:a,arguments:r}}));if(t==="browser"||t==="browserPrivate"){let a={"com.google.chrome":"chrome","google-chrome.desktop":"chrome","org.mozilla.firefox":"firefox","firefox.desktop":"firefox","com.microsoft.msedge":"edge","com.microsoft.edge":"edge","microsoft-edge.desktop":"edge"},u={chrome:"--incognito",firefox:"--private-window",edge:"--inPrivate"},l=await Q1();if(l.id in a){let c=a[l.id];return t==="browserPrivate"&&r.push(u[c]),Bh({...e,app:{name:kl[c],arguments:r}})}throw new Error(`${l.name} is not supported as a default browser`)}let n,i=[],s={};if(Bl==="darwin")n="open",e.wait&&i.push("--wait-apps"),e.background&&i.push("--background"),e.newInstance&&i.push("--new"),t&&i.push("-a",t);else if(Bl==="win32"||Ua&&!yl()&&!t){let a=await BH();n=Ua?`${a}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`:`${Rh.env.SYSTEMROOT||Rh.env.windir||"C:\\Windows"}\\System32\\WindowsPowerShell\\v1.0\\powershell`,i.push("-NoProfile","-NonInteractive","-ExecutionPolicy","Bypass","-EncodedCommand"),Ua||(s.windowsVerbatimArguments=!0);let u=["Start"];e.wait&&u.push("-Wait"),t?(u.push(`"\`"${t}\`""`),e.target&&r.push(e.target)):e.target&&u.push(`"${e.target}"`),r.length>0&&(r=r.map(l=>`"\`"${l}\`""`),u.push("-ArgumentList",r.join(","))),e.target=LH.from(u.join(" "),"utf16le").toString("base64")}else{if(t)n=t;else{let a=!tw||tw==="/",u=!1;try{await ew.access(XI,t3.X_OK),u=!0}catch{}n=Rh.versions.electron??(Bl==="android"||a||!u)?"xdg-open":XI}r.length>0&&i.push(...r),e.wait||(s.stdio="ignore",s.detached=!0)}Bl==="darwin"&&r.length>0&&i.push("--args",...r),e.target&&i.push(e.target);let o=RH.spawn(n,i,s);return e.wait?new Promise((a,u)=>{o.once("error",u),o.once("close",l=>{if(!e.allowNonzeroExitCode&&l>0){u(new Error(`Exited with code ${l}`));return}a(o)})}):(o.unref(),o)},kH=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a `target`");return Bh({...t,target:e})};function QI(e){if(typeof e=="string"||Array.isArray(e))return e;let{[JI]:t}=e;if(!t)throw new Error(`${JI} is not supported`);return t}function rw({[Bl]:e},{wsl:t}){if(t&&Ua)return QI(t);if(!e)throw new Error(`${Bl} is not supported`);return QI(e)}var kl={};tu(kl,"chrome",()=>rw({darwin:"google chrome",win32:"chrome",linux:["google-chrome","google-chrome-stable","chromium"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",x64:["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe","/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]}}));tu(kl,"firefox",()=>rw({darwin:"firefox",win32:"C:\\Program Files\\Mozilla Firefox\\firefox.exe",linux:"firefox"},{wsl:"/mnt/c/Program Files/Mozilla Firefox/firefox.exe"}));tu(kl,"edge",()=>rw({darwin:"microsoft edge",win32:"msedge",linux:["microsoft-edge","microsoft-edge-dev"]},{wsl:"/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"}));tu(kl,"browser",()=>"browser");tu(kl,"browserPrivate",()=>"browserPrivate");var r3=kH;var kh=class{constructor(t){this.debug=t}openUrl=async t=>{try{return await r3(t),{success:!0,data:void 0}}catch(r){let n=r instanceof Error?r.message:`${r}`;return this.debug&&console.error(`Error opening URL: ${n}`),{success:!1,code:"NAVIGATION_ERROR",message:`Failed to open URL: ${n}`}}}};var Mh=class{constructor(t,r,n=!1){this.storageService=t;this.env=r;this.debug=n}generatePreviewResult=async t=>{let r=t;if(!r){let i=await this.getAppId();if(!i.success)return i;r=i.data}return{success:!0,data:this.constructPreviewUrl(r)}};async getAppId(){try{let t=await this.storageService.getAppIdFromEnvFile();if(!t.success)return t;let r=t.data;if(r==="YOUR_APP_ID_HERE"){let n="CANVA_APP_ID is set to the default placeholder value. Please update it in the .env file.";return this.debug&&console.error(n),{success:!1,code:"MISSING_FIELD",message:n}}return{success:!0,data:r}}catch(t){let r=`Unknown Error reading CANVA_APP_ID from .env file: ${t instanceof Error?t.message:String(t)}`;return this.debug&&console.error(r),{success:!1,code:"ENV_READ_ERROR",message:r}}}constructPreviewUrl(t){let r=this.encodeUiState({appId:t}),n=this.env.CANVA_ENV_URL,i=new URL("/login/",n),s=new URL("/design",n);return s.searchParams.append("create",""),s.searchParams.append("width","800"),s.searchParams.append("height","600"),s.searchParams.append("units","px"),s.searchParams.append("ui",r),i.searchParams.append("redirect",s.pathname+s.search),i.toString()}encodeUiState(t){let r={E:{"A?":"N",S:t.appId,g:!0}},n=JSON.stringify(r);return btoa(n).replace(/[+]/g,"-").replace(/[/]/g,"_").replace(/[=]/g,"")}};var u3=St(a3(),1);import QH from"fs/promises";import eY from"os";import tY from"path";var Vh=class{constructor(t,r=QH,n=tY,i=eY.homedir(),s=!1){this.encryptionService=t;this.fileSystem=r;this.pathModule=n;this.debug=s;this.filePath=this.pathModule.join(i,".canva-cli","credentials")}tokenKey="tokenData";flavorKey="flavor";filePath;isNodeError(t){return t instanceof Error&&typeof t.code=="string"}async ensureDirectoryExists(t){try{await this.fileSystem.mkdir(t,{recursive:!0})}catch(r){let n=r instanceof Error?r.message:String(r);throw new Error(`Failed to create directory ${t}: ${n}`)}}async readJsonFromFile(){try{let t=await this.fileSystem.readFile(this.filePath,"utf-8");return JSON.parse(t)}catch(t){let r=t instanceof Error?t.message:String(t);throw new Error(`Failed to read the file at ${this.filePath}: ${r}`)}}async writeJsonToFile(t){try{await this.fileSystem.writeFile(this.filePath,JSON.stringify(t,null,2),"utf-8")}catch(r){let n=r instanceof Error?r.message:String(r);throw new Error(`Failed to write the file at ${this.filePath}: ${n}`)}try{await this.fileSystem.chmod(this.filePath,384)}catch(r){let n=r instanceof Error?r.message:String(r);throw new Error(`Failed to set permissions on the file at ${this.filePath}: ${n}`)}}async saveTokenData({tokenData:t,flavor:r}){let n=await this.encryptionService.encrypt(JSON.stringify(t));if(!n.success)return{success:!1,code:"ENCRYPTION_ERROR",message:`Failed to encrypt token data: ${n.message}`};let i={tokenData:n.data,flavor:r};try{let s=this.pathModule.dirname(this.filePath);return await this.ensureDirectoryExists(s),await this.writeJsonToFile(i),{success:!0,data:void 0}}catch(s){let o=s instanceof Error?s.message:String(s);return{success:!1,code:"API_FAILURE",message:`Failed to save token data to file: ${o}`}}}async getTokenData(){try{let t=await this.readJsonFromFile();if(t[this.tokenKey]){let r=await this.encryptionService.decrypt(t[this.tokenKey]);return r.success?{success:!0,data:JSON.parse(r.data)}:r}else return{success:!1,code:"NO_TOKEN",message:"Token data not found in credentials file."}}catch(t){let r=t instanceof Error?t.message:String(t);return{success:!1,code:"NO_TOKEN",message:`Failed to read the token file: ${r}`}}}async getFlavor(){try{let r=(await this.readJsonFromFile())[this.flavorKey];if(r&&typeof r=="string"&&Object.values(fs).includes(r))return r}catch{return"prod"}return"prod"}async deleteToken(){try{if((await this.readJsonFromFile())[this.tokenKey])try{await this.fileSystem.access(this.filePath),await this.fileSystem.unlink(this.filePath)}catch(r){if(this.isNodeError(r)&&r.code==="ENOENT")return;let n=r instanceof Error?r.message:String(r);throw new Error(`Failed to delete the token data file: ${n}`)}else throw new Error("Token file does not exist or token data not found.")}catch(t){let r=t instanceof Error?t.message:String(t);throw new Error(`Failed to delete the token data file: ${r}`)}}async getAppIdFromEnvFile(){try{let t=this.pathModule.resolve(process.cwd(),".env");try{await this.fileSystem.access(t)}catch{let s="No .env file found, ensure you are in your intended app's directory.";return this.debug&&console.error(s),{success:!1,code:"FILE_NOT_FOUND",message:s}}let r=await this.fileSystem.readFile(t,"utf-8"),i=u3.parse(r).CANVA_APP_ID;if(!i){let s="CANVA_APP_ID not found in .env file";return this.debug&&console.error(s),{success:!1,code:"MISSING_FIELD",message:s}}return{success:!0,data:i}}catch(t){let r=`Unknown Error reading CANVA_APP_ID from .env file: ${t instanceof Error?t.message:String(t)}`;return this.debug&&console.error(r),{success:!1,code:"ENV_READ_ERROR",message:r}}}};import{Buffer as rY}from"node:buffer";var Oye=new TextEncoder,Uh=new TextDecoder,Fye=2**32;function nY(e){let t=e;return t instanceof Uint8Array&&(t=Uh.decode(t)),t}var l3=e=>new Uint8Array(rY.from(nY(e),"base64url"));var ow=class extends Error{static code="ERR_JOSE_GENERIC";code="ERR_JOSE_GENERIC";constructor(t,r){super(t,r),this.name=this.constructor.name,Error.captureStackTrace?.(this,this.constructor)}};var qi=class extends ow{static code="ERR_JWT_INVALID";code="ERR_JWT_INVALID"};function oY(e){return typeof e=="object"&&e!==null}function aw(e){if(!oY(e)||Object.prototype.toString.call(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}var c3=l3;function uw(e){if(typeof e!="string")throw new qi("JWTs must use Compact JWS serialization, JWT must be a string");let{1:t,length:r}=e.split(".");if(r===5)throw new qi("Only JWTs using Compact JWS serialization can be decoded");if(r!==3)throw new qi("Invalid JWT");if(!t)throw new qi("JWTs must contain a payload");let n;try{n=c3(t)}catch{throw new qi("Failed to base64url decode the payload")}let i;try{i=JSON.parse(Uh.decode(n))}catch{throw new qi("Failed to parse the decoded payload as JSON")}if(!aw(i))throw new qi("Invalid JWT Claims Set");return i}import{URLSearchParams as lw}from"url";var $h=class{constructor(t,r,n=fetch){this.storageService=t;this.env=r;this.fetchFn=n}get tokenEndpointUrl(){return`${this.env.CONNECT_API_BASE_URL}/v1/oauth/token`}async exchangeCodeForToken({authCode:t,codeVerifier:r}){let n=`${this.env.CANVA_ENV_URL}/api/oauth/authorized/${this.env.CANVA_CLI_CLIENT_ID}`;try{let i=await this.fetchFn(this.tokenEndpointUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new lw({grant_type:"authorization_code",code:t,code_verifier:r,client_id:this.env.CANVA_CLI_CLIENT_ID,redirect_uri:n})});if(!i.ok){let o=await i.text();return{success:!1,code:"API_FAILURE",message:`Failed to exchange code for token: ${o}`}}let s=await i.json();return await this.storageService.saveTokenData({tokenData:s,flavor:this.env.FLAVOR}),{success:!0,data:s.access_token}}catch(i){return{success:!1,code:"API_FAILURE",message:`Error exchanging authorization code for token: ${i}`}}}async getToken(){try{let t=await this.storageService.getTokenData();if(!t.success)return t;let r=t.data,n=uw(r.access_token),i=60*10;if(n.exp){let u=n.exp-i;if(Date.now()/1e3<u)return{success:!0,data:r.access_token}}let s=r.refresh_token,o=await this.fetchFn(this.tokenEndpointUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new lw({grant_type:"refresh_token",refresh_token:s,client_id:this.env.CANVA_CLI_CLIENT_ID})});if(!o.ok){let u=await o.text();throw new Error(`Failed to refresh token: ${u}`)}let a=await o.json();return await this.storageService.saveTokenData({tokenData:a,flavor:this.env.FLAVOR}),{success:!0,data:a.access_token}}catch(t){return{success:!1,code:"API_FAILURE",message:`An error occurred while getting the token: ${t}`}}}async revokeToken(){let t=await this.storageService.getTokenData();if(!t.success)return t;let r=t.data,n=`${this.env.CONNECT_API_BASE_URL}/v1/oauth/revoke`;try{let i=await this.fetchFn(n,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new lw({token:r.refresh_token,client_id:this.env.CANVA_CLI_CLIENT_ID})});if(!i.ok)throw new Error(`Failed to revoke token, status: ${i.status}`);return await this.storageService.deleteToken(),{success:!0,data:void 0}}catch(i){return{success:!1,code:"LOGOUT_ERROR",message:`An error occurred while revoking the token: ${i}`}}}isLoggedIn=async()=>(await this.getToken()).success};var Wh=class{constructor(t){this.env=t}getDeveloperPortalUrl(t){return Dm({flavor:this.env.FLAVOR,appId:t})}getAppOriginUrl(t){return V_({flavor:this.env.FLAVOR,appId:t})}getApiDeveloperTermsUrl(){return j_({flavor:this.env.FLAVOR})}};var Ye;(function(e){e.assertEqual=i=>i;function t(i){}e.assertIs=t;function r(i){throw new Error}e.assertNever=r,e.arrayToEnum=i=>{let s={};for(let o of i)s[o]=o;return s},e.getValidEnumValues=i=>{let s=e.objectKeys(i).filter(a=>typeof i[i[a]]!="number"),o={};for(let a of s)o[a]=i[a];return e.objectValues(o)},e.objectValues=i=>e.objectKeys(i).map(function(s){return i[s]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{let s=[];for(let o in i)Object.prototype.hasOwnProperty.call(i,o)&&s.push(o);return s},e.find=(i,s)=>{for(let o of i)if(s(o))return o},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function n(i,s=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(s)}e.joinValues=n,e.jsonStringifyReplacer=(i,s)=>typeof s=="bigint"?s.toString():s})(Ye||(Ye={}));var fw;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(fw||(fw={}));var ce=Ye.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),jo=e=>{switch(typeof e){case"undefined":return ce.undefined;case"string":return ce.string;case"number":return isNaN(e)?ce.nan:ce.number;case"boolean":return ce.boolean;case"function":return ce.function;case"bigint":return ce.bigint;case"symbol":return ce.symbol;case"object":return Array.isArray(e)?ce.array:e===null?ce.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ce.promise:typeof Map<"u"&&e instanceof Map?ce.map:typeof Set<"u"&&e instanceof Set?ce.set:typeof Date<"u"&&e instanceof Date?ce.date:ce.object;default:return ce.unknown}},Z=Ye.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),lY=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),mn=class e extends Error{constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){let r=t||function(s){return s.message},n={_errors:[]},i=s=>{for(let o of s.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)n._errors.push(r(o));else{let a=n,u=0;for(;u<o.path.length;){let l=o.path[u];u===o.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(r(o))):a[l]=a[l]||{_errors:[]},a=a[l],u++}}};return i(this),n}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ye.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){let r={},n=[];for(let i of this.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(t(i))):n.push(t(i));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};mn.create=e=>new mn(e);var Vl=(e,t)=>{let r;switch(e.code){case Z.invalid_type:e.received===ce.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case Z.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,Ye.jsonStringifyReplacer)}`;break;case Z.unrecognized_keys:r=`Unrecognized key(s) in object: ${Ye.joinValues(e.keys,", ")}`;break;case Z.invalid_union:r="Invalid input";break;case Z.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Ye.joinValues(e.options)}`;break;case Z.invalid_enum_value:r=`Invalid enum value. Expected ${Ye.joinValues(e.options)}, received '${e.received}'`;break;case Z.invalid_arguments:r="Invalid function arguments";break;case Z.invalid_return_type:r="Invalid function return type";break;case Z.invalid_date:r="Invalid date";break;case Z.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:Ye.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case Z.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case Z.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case Z.custom:r="Invalid input";break;case Z.invalid_intersection_types:r="Intersection results could not be merged";break;case Z.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case Z.not_finite:r="Number must be finite";break;default:r=t.defaultError,Ye.assertNever(e)}return{message:r}},d3=Vl;function cY(e){d3=e}function Gh(){return d3}var qh=e=>{let{data:t,path:r,errorMaps:n,issueData:i}=e,s=[...r,...i.path||[]],o={...i,path:s};if(i.message!==void 0)return{...i,path:s,message:i.message};let a="",u=n.filter(l=>!!l).slice().reverse();for(let l of u)a=l(o,{data:t,defaultError:a}).message;return{...i,path:s,message:a}},fY=[];function oe(e,t){let r=Gh(),n=qh({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===Vl?void 0:Vl].filter(i=>!!i)});e.common.issues.push(n)}var Cr=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){let n=[];for(let i of r){if(i.status==="aborted")return Pe;i.status==="dirty"&&t.dirty(),n.push(i.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,r){let n=[];for(let i of r){let s=await i.key,o=await i.value;n.push({key:s,value:o})}return e.mergeObjectSync(t,n)}static mergeObjectSync(t,r){let n={};for(let i of r){let{key:s,value:o}=i;if(s.status==="aborted"||o.status==="aborted")return Pe;s.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof o.value<"u"||i.alwaysSet)&&(n[s.value]=o.value)}return{status:t.value,value:n}}},Pe=Object.freeze({status:"aborted"}),jl=e=>({status:"dirty",value:e}),Rr=e=>({status:"valid",value:e}),pw=e=>e.status==="aborted",dw=e=>e.status==="dirty",ip=e=>e.status==="valid",sp=e=>typeof Promise<"u"&&e instanceof Promise;function zh(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function m3(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}var Ee;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(Ee||(Ee={}));var rp,np,Hn=class{constructor(t,r,n,i){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},f3=(e,t)=>{if(ip(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new mn(e.common.issues);return this._error=r,this._error}}};function je(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(o,a)=>{var u,l;let{message:c}=e;return o.code==="invalid_enum_value"?{message:c??a.defaultError}:typeof a.data>"u"?{message:(u=c??n)!==null&&u!==void 0?u:a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:(l=c??r)!==null&&l!==void 0?l:a.defaultError}},description:i}}var Ve=class{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return jo(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:jo(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Cr,ctx:{common:t.parent.common,data:t.data,parsedType:jo(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let r=this._parse(t);if(sp(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){let r=this._parse(t);return Promise.resolve(r)}parse(t,r){let n=this.safeParse(t,r);if(n.success)return n.data;throw n.error}safeParse(t,r){var n;let i={common:{issues:[],async:(n=r?.async)!==null&&n!==void 0?n:!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:jo(t)},s=this._parseSync({data:t,path:i.path,parent:i});return f3(i,s)}async parseAsync(t,r){let n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){let n={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:jo(t)},i=this._parse({data:t,path:n.path,parent:n}),s=await(sp(i)?i:Promise.resolve(i));return f3(n,s)}refine(t,r){let n=i=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(i):r;return this._refinement((i,s)=>{let o=t(i),a=()=>s.addIssue({code:Z.custom,...n(i)});return typeof Promise<"u"&&o instanceof Promise?o.then(u=>u?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(t,r){return this._refinement((n,i)=>t(n)?!0:(i.addIssue(typeof r=="function"?r(n,i):r),!1))}_refinement(t){return new hn({schema:this,typeName:Ie.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return zn.create(this,this._def)}nullable(){return Hi.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ss.create(this,this._def)}promise(){return $o.create(this,this._def)}or(t){return uu.create([this,t],this._def)}and(t){return lu.create(this,t,this._def)}transform(t){return new hn({...je(this._def),schema:this,typeName:Ie.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let r=typeof t=="function"?t:()=>t;return new mu({...je(this._def),innerType:this,defaultValue:r,typeName:Ie.ZodDefault})}brand(){return new op({typeName:Ie.ZodBranded,type:this,...je(this._def)})}catch(t){let r=typeof t=="function"?t:()=>t;return new hu({...je(this._def),innerType:this,catchValue:r,typeName:Ie.ZodCatch})}describe(t){let r=this.constructor;return new r({...this._def,description:t})}pipe(t){return ap.create(this,t)}readonly(){return gu.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},pY=/^c[^\s-]{8,}$/i,dY=/^[0-9a-z]+$/,mY=/^[0-9A-HJKMNP-TV-Z]{26}$/,hY=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,gY=/^[a-z0-9_-]{21}$/i,yY=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,DY=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,vY="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",cw,wY=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,CY=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,EY=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,h3="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",SY=new RegExp(`^${h3}$`);function g3(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function xY(e){return new RegExp(`^${g3(e)}$`)}function y3(e){let t=`${h3}T${g3(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function _Y(e,t){return!!((t==="v4"||!t)&&wY.test(e)||(t==="v6"||!t)&&CY.test(e))}var Vo=class e extends Ve{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ce.string){let s=this._getOrReturnCtx(t);return oe(s,{code:Z.invalid_type,expected:ce.string,received:s.parsedType}),Pe}let n=new Cr,i;for(let s of this._def.checks)if(s.kind==="min")t.data.length<s.value&&(i=this._getOrReturnCtx(t,i),oe(i,{code:Z.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="max")t.data.length>s.value&&(i=this._getOrReturnCtx(t,i),oe(i,{code:Z.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="length"){let o=t.data.length>s.value,a=t.data.length<s.value;(o||a)&&(i=this._getOrReturnCtx(t,i),o?oe(i,{code:Z.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):a&&oe(i,{code:Z.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),n.dirty())}else if(s.kind==="email")DY.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"email",code:Z.invalid_string,message:s.message}),n.dirty());else if(s.kind==="emoji")cw||(cw=new RegExp(vY,"u")),cw.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"emoji",code:Z.invalid_string,message:s.message}),n.dirty());else if(s.kind==="uuid")hY.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"uuid",code:Z.invalid_string,message:s.message}),n.dirty());else if(s.kind==="nanoid")gY.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"nanoid",code:Z.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid")pY.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"cuid",code:Z.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid2")dY.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"cuid2",code:Z.invalid_string,message:s.message}),n.dirty());else if(s.kind==="ulid")mY.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"ulid",code:Z.invalid_string,message:s.message}),n.dirty());else if(s.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),oe(i,{validation:"url",code:Z.invalid_string,message:s.message}),n.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"regex",code:Z.invalid_string,message:s.message}),n.dirty())):s.kind==="trim"?t.data=t.data.trim():s.kind==="includes"?t.data.includes(s.value,s.position)||(i=this._getOrReturnCtx(t,i),oe(i,{code:Z.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),n.dirty()):s.kind==="toLowerCase"?t.data=t.data.toLowerCase():s.kind==="toUpperCase"?t.data=t.data.toUpperCase():s.kind==="startsWith"?t.data.startsWith(s.value)||(i=this._getOrReturnCtx(t,i),oe(i,{code:Z.invalid_string,validation:{startsWith:s.value},message:s.message}),n.dirty()):s.kind==="endsWith"?t.data.endsWith(s.value)||(i=this._getOrReturnCtx(t,i),oe(i,{code:Z.invalid_string,validation:{endsWith:s.value},message:s.message}),n.dirty()):s.kind==="datetime"?y3(s).test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{code:Z.invalid_string,validation:"datetime",message:s.message}),n.dirty()):s.kind==="date"?SY.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{code:Z.invalid_string,validation:"date",message:s.message}),n.dirty()):s.kind==="time"?xY(s).test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{code:Z.invalid_string,validation:"time",message:s.message}),n.dirty()):s.kind==="duration"?yY.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"duration",code:Z.invalid_string,message:s.message}),n.dirty()):s.kind==="ip"?_Y(t.data,s.version)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"ip",code:Z.invalid_string,message:s.message}),n.dirty()):s.kind==="base64"?EY.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"base64",code:Z.invalid_string,message:s.message}),n.dirty()):Ye.assertNever(s);return{status:n.value,value:t.data}}_regex(t,r,n){return this.refinement(i=>t.test(i),{validation:r,code:Z.invalid_string,...Ee.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Ee.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Ee.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Ee.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Ee.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Ee.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Ee.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Ee.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Ee.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Ee.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Ee.errToObj(t)})}datetime(t){var r,n;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:(r=t?.offset)!==null&&r!==void 0?r:!1,local:(n=t?.local)!==null&&n!==void 0?n:!1,...Ee.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...Ee.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...Ee.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...Ee.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r?.position,...Ee.errToObj(r?.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...Ee.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...Ee.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...Ee.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...Ee.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...Ee.errToObj(r)})}nonempty(t){return this.min(1,Ee.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};Vo.create=e=>{var t;return new Vo({checks:[],typeName:Ie.ZodString,coerce:(t=e?.coerce)!==null&&t!==void 0?t:!1,...je(e)})};function bY(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n,s=parseInt(e.toFixed(i).replace(".","")),o=parseInt(t.toFixed(i).replace(".",""));return s%o/Math.pow(10,i)}var ru=class e extends Ve{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==ce.number){let s=this._getOrReturnCtx(t);return oe(s,{code:Z.invalid_type,expected:ce.number,received:s.parsedType}),Pe}let n,i=new Cr;for(let s of this._def.checks)s.kind==="int"?Ye.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),oe(n,{code:Z.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(n=this._getOrReturnCtx(t,n),oe(n,{code:Z.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(n=this._getOrReturnCtx(t,n),oe(n,{code:Z.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="multipleOf"?bY(t.data,s.value)!==0&&(n=this._getOrReturnCtx(t,n),oe(n,{code:Z.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),oe(n,{code:Z.not_finite,message:s.message}),i.dirty()):Ye.assertNever(s);return{status:i.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,Ee.toString(r))}gt(t,r){return this.setLimit("min",t,!1,Ee.toString(r))}lte(t,r){return this.setLimit("max",t,!0,Ee.toString(r))}lt(t,r){return this.setLimit("max",t,!1,Ee.toString(r))}setLimit(t,r,n,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:Ee.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Ee.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Ee.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Ee.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Ee.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Ee.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:Ee.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:Ee.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Ee.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Ee.toString(t)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Ye.isInteger(t.value))}get isFinite(){let t=null,r=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(t===null||n.value<t)&&(t=n.value)}return Number.isFinite(r)&&Number.isFinite(t)}};ru.create=e=>new ru({checks:[],typeName:Ie.ZodNumber,coerce:e?.coerce||!1,...je(e)});var nu=class e extends Ve{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==ce.bigint){let s=this._getOrReturnCtx(t);return oe(s,{code:Z.invalid_type,expected:ce.bigint,received:s.parsedType}),Pe}let n,i=new Cr;for(let s of this._def.checks)s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(n=this._getOrReturnCtx(t,n),oe(n,{code:Z.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(n=this._getOrReturnCtx(t,n),oe(n,{code:Z.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),oe(n,{code:Z.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):Ye.assertNever(s);return{status:i.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,Ee.toString(r))}gt(t,r){return this.setLimit("min",t,!1,Ee.toString(r))}lte(t,r){return this.setLimit("max",t,!0,Ee.toString(r))}lt(t,r){return this.setLimit("max",t,!1,Ee.toString(r))}setLimit(t,r,n,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:Ee.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Ee.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Ee.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Ee.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Ee.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:Ee.toString(r)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};nu.create=e=>{var t;return new nu({checks:[],typeName:Ie.ZodBigInt,coerce:(t=e?.coerce)!==null&&t!==void 0?t:!1,...je(e)})};var iu=class extends Ve{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ce.boolean){let n=this._getOrReturnCtx(t);return oe(n,{code:Z.invalid_type,expected:ce.boolean,received:n.parsedType}),Pe}return Rr(t.data)}};iu.create=e=>new iu({typeName:Ie.ZodBoolean,coerce:e?.coerce||!1,...je(e)});var su=class e extends Ve{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ce.date){let s=this._getOrReturnCtx(t);return oe(s,{code:Z.invalid_type,expected:ce.date,received:s.parsedType}),Pe}if(isNaN(t.data.getTime())){let s=this._getOrReturnCtx(t);return oe(s,{code:Z.invalid_date}),Pe}let n=new Cr,i;for(let s of this._def.checks)s.kind==="min"?t.data.getTime()<s.value&&(i=this._getOrReturnCtx(t,i),oe(i,{code:Z.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),n.dirty()):s.kind==="max"?t.data.getTime()>s.value&&(i=this._getOrReturnCtx(t,i),oe(i,{code:Z.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),n.dirty()):Ye.assertNever(s);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:Ee.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:Ee.toString(r)})}get minDate(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}};su.create=e=>new su({checks:[],coerce:e?.coerce||!1,typeName:Ie.ZodDate,...je(e)});var Ul=class extends Ve{_parse(t){if(this._getType(t)!==ce.symbol){let n=this._getOrReturnCtx(t);return oe(n,{code:Z.invalid_type,expected:ce.symbol,received:n.parsedType}),Pe}return Rr(t.data)}};Ul.create=e=>new Ul({typeName:Ie.ZodSymbol,...je(e)});var ou=class extends Ve{_parse(t){if(this._getType(t)!==ce.undefined){let n=this._getOrReturnCtx(t);return oe(n,{code:Z.invalid_type,expected:ce.undefined,received:n.parsedType}),Pe}return Rr(t.data)}};ou.create=e=>new ou({typeName:Ie.ZodUndefined,...je(e)});var au=class extends Ve{_parse(t){if(this._getType(t)!==ce.null){let n=this._getOrReturnCtx(t);return oe(n,{code:Z.invalid_type,expected:ce.null,received:n.parsedType}),Pe}return Rr(t.data)}};au.create=e=>new au({typeName:Ie.ZodNull,...je(e)});var Uo=class extends Ve{constructor(){super(...arguments),this._any=!0}_parse(t){return Rr(t.data)}};Uo.create=e=>new Uo({typeName:Ie.ZodAny,...je(e)});var Es=class extends Ve{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Rr(t.data)}};Es.create=e=>new Es({typeName:Ie.ZodUnknown,...je(e)});var gi=class extends Ve{_parse(t){let r=this._getOrReturnCtx(t);return oe(r,{code:Z.invalid_type,expected:ce.never,received:r.parsedType}),Pe}};gi.create=e=>new gi({typeName:Ie.ZodNever,...je(e)});var $l=class extends Ve{_parse(t){if(this._getType(t)!==ce.undefined){let n=this._getOrReturnCtx(t);return oe(n,{code:Z.invalid_type,expected:ce.void,received:n.parsedType}),Pe}return Rr(t.data)}};$l.create=e=>new $l({typeName:Ie.ZodVoid,...je(e)});var Ss=class e extends Ve{_parse(t){let{ctx:r,status:n}=this._processInputParams(t),i=this._def;if(r.parsedType!==ce.array)return oe(r,{code:Z.invalid_type,expected:ce.array,received:r.parsedType}),Pe;if(i.exactLength!==null){let o=r.data.length>i.exactLength.value,a=r.data.length<i.exactLength.value;(o||a)&&(oe(r,{code:o?Z.too_big:Z.too_small,minimum:a?i.exactLength.value:void 0,maximum:o?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(i.minLength!==null&&r.data.length<i.minLength.value&&(oe(r,{code:Z.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),i.maxLength!==null&&r.data.length>i.maxLength.value&&(oe(r,{code:Z.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((o,a)=>i.type._parseAsync(new Hn(r,o,r.path,a)))).then(o=>Cr.mergeArray(n,o));let s=[...r.data].map((o,a)=>i.type._parseSync(new Hn(r,o,r.path,a)));return Cr.mergeArray(n,s)}get element(){return this._def.type}min(t,r){return new e({...this._def,minLength:{value:t,message:Ee.toString(r)}})}max(t,r){return new e({...this._def,maxLength:{value:t,message:Ee.toString(r)}})}length(t,r){return new e({...this._def,exactLength:{value:t,message:Ee.toString(r)}})}nonempty(t){return this.min(1,t)}};Ss.create=(e,t)=>new Ss({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ie.ZodArray,...je(t)});function Ml(e){if(e instanceof zr){let t={};for(let r in e.shape){let n=e.shape[r];t[r]=zn.create(Ml(n))}return new zr({...e._def,shape:()=>t})}else return e instanceof Ss?new Ss({...e._def,type:Ml(e.element)}):e instanceof zn?zn.create(Ml(e.unwrap())):e instanceof Hi?Hi.create(Ml(e.unwrap())):e instanceof zi?zi.create(e.items.map(t=>Ml(t))):e}var zr=class e extends Ve{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),r=Ye.objectKeys(t);return this._cached={shape:t,keys:r}}_parse(t){if(this._getType(t)!==ce.object){let l=this._getOrReturnCtx(t);return oe(l,{code:Z.invalid_type,expected:ce.object,received:l.parsedType}),Pe}let{status:n,ctx:i}=this._processInputParams(t),{shape:s,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof gi&&this._def.unknownKeys==="strip"))for(let l in i.data)o.includes(l)||a.push(l);let u=[];for(let l of o){let c=s[l],f=i.data[l];u.push({key:{status:"valid",value:l},value:c._parse(new Hn(i,f,i.path,l)),alwaysSet:l in i.data})}if(this._def.catchall instanceof gi){let l=this._def.unknownKeys;if(l==="passthrough")for(let c of a)u.push({key:{status:"valid",value:c},value:{status:"valid",value:i.data[c]}});else if(l==="strict")a.length>0&&(oe(i,{code:Z.unrecognized_keys,keys:a}),n.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let l=this._def.catchall;for(let c of a){let f=i.data[c];u.push({key:{status:"valid",value:c},value:l._parse(new Hn(i,f,i.path,c)),alwaysSet:c in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let l=[];for(let c of u){let f=await c.key,p=await c.value;l.push({key:f,value:p,alwaysSet:c.alwaysSet})}return l}).then(l=>Cr.mergeObjectSync(n,l)):Cr.mergeObjectSync(n,u)}get shape(){return this._def.shape()}strict(t){return Ee.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{var i,s,o,a;let u=(o=(s=(i=this._def).errorMap)===null||s===void 0?void 0:s.call(i,r,n).message)!==null&&o!==void 0?o:n.defaultError;return r.code==="unrecognized_keys"?{message:(a=Ee.errToObj(t).message)!==null&&a!==void 0?a:u}:{message:u}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Ie.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let r={};return Ye.objectKeys(t).forEach(n=>{t[n]&&this.shape[n]&&(r[n]=this.shape[n])}),new e({...this._def,shape:()=>r})}omit(t){let r={};return Ye.objectKeys(this.shape).forEach(n=>{t[n]||(r[n]=this.shape[n])}),new e({...this._def,shape:()=>r})}deepPartial(){return Ml(this)}partial(t){let r={};return Ye.objectKeys(this.shape).forEach(n=>{let i=this.shape[n];t&&!t[n]?r[n]=i:r[n]=i.optional()}),new e({...this._def,shape:()=>r})}required(t){let r={};return Ye.objectKeys(this.shape).forEach(n=>{if(t&&!t[n])r[n]=this.shape[n];else{let s=this.shape[n];for(;s instanceof zn;)s=s._def.innerType;r[n]=s}}),new e({...this._def,shape:()=>r})}keyof(){return D3(Ye.objectKeys(this.shape))}};zr.create=(e,t)=>new zr({shape:()=>e,unknownKeys:"strip",catchall:gi.create(),typeName:Ie.ZodObject,...je(t)});zr.strictCreate=(e,t)=>new zr({shape:()=>e,unknownKeys:"strict",catchall:gi.create(),typeName:Ie.ZodObject,...je(t)});zr.lazycreate=(e,t)=>new zr({shape:e,unknownKeys:"strip",catchall:gi.create(),typeName:Ie.ZodObject,...je(t)});var uu=class extends Ve{_parse(t){let{ctx:r}=this._processInputParams(t),n=this._def.options;function i(s){for(let a of s)if(a.result.status==="valid")return a.result;for(let a of s)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;let o=s.map(a=>new mn(a.ctx.common.issues));return oe(r,{code:Z.invalid_union,unionErrors:o}),Pe}if(r.common.async)return Promise.all(n.map(async s=>{let o={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(i);{let s,o=[];for(let u of n){let l={...r,common:{...r.common,issues:[]},parent:null},c=u._parseSync({data:r.data,path:r.path,parent:l});if(c.status==="valid")return c;c.status==="dirty"&&!s&&(s={result:c,ctx:l}),l.common.issues.length&&o.push(l.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;let a=o.map(u=>new mn(u));return oe(r,{code:Z.invalid_union,unionErrors:a}),Pe}}get options(){return this._def.options}};uu.create=(e,t)=>new uu({options:e,typeName:Ie.ZodUnion,...je(t)});var Cs=e=>e instanceof cu?Cs(e.schema):e instanceof hn?Cs(e.innerType()):e instanceof fu?[e.value]:e instanceof pu?e.options:e instanceof du?Ye.objectValues(e.enum):e instanceof mu?Cs(e._def.innerType):e instanceof ou?[void 0]:e instanceof au?[null]:e instanceof zn?[void 0,...Cs(e.unwrap())]:e instanceof Hi?[null,...Cs(e.unwrap())]:e instanceof op||e instanceof gu?Cs(e.unwrap()):e instanceof hu?Cs(e._def.innerType):[],Hh=class e extends Ve{_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==ce.object)return oe(r,{code:Z.invalid_type,expected:ce.object,received:r.parsedType}),Pe;let n=this.discriminator,i=r.data[n],s=this.optionsMap.get(i);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(oe(r,{code:Z.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),Pe)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,n){let i=new Map;for(let s of r){let o=Cs(s.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let a of o){if(i.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);i.set(a,s)}}return new e({typeName:Ie.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:i,...je(n)})}};function mw(e,t){let r=jo(e),n=jo(t);if(e===t)return{valid:!0,data:e};if(r===ce.object&&n===ce.object){let i=Ye.objectKeys(t),s=Ye.objectKeys(e).filter(a=>i.indexOf(a)!==-1),o={...e,...t};for(let a of s){let u=mw(e[a],t[a]);if(!u.valid)return{valid:!1};o[a]=u.data}return{valid:!0,data:o}}else if(r===ce.array&&n===ce.array){if(e.length!==t.length)return{valid:!1};let i=[];for(let s=0;s<e.length;s++){let o=e[s],a=t[s],u=mw(o,a);if(!u.valid)return{valid:!1};i.push(u.data)}return{valid:!0,data:i}}else return r===ce.date&&n===ce.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var lu=class extends Ve{_parse(t){let{status:r,ctx:n}=this._processInputParams(t),i=(s,o)=>{if(pw(s)||pw(o))return Pe;let a=mw(s.value,o.value);return a.valid?((dw(s)||dw(o))&&r.dirty(),{status:r.value,value:a.data}):(oe(n,{code:Z.invalid_intersection_types}),Pe)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,o])=>i(s,o)):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};lu.create=(e,t,r)=>new lu({left:e,right:t,typeName:Ie.ZodIntersection,...je(r)});var zi=class e extends Ve{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==ce.array)return oe(n,{code:Z.invalid_type,expected:ce.array,received:n.parsedType}),Pe;if(n.data.length<this._def.items.length)return oe(n,{code:Z.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Pe;!this._def.rest&&n.data.length>this._def.items.length&&(oe(n,{code:Z.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let s=[...n.data].map((o,a)=>{let u=this._def.items[a]||this._def.rest;return u?u._parse(new Hn(n,o,n.path,a)):null}).filter(o=>!!o);return n.common.async?Promise.all(s).then(o=>Cr.mergeArray(r,o)):Cr.mergeArray(r,s)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};zi.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new zi({items:e,typeName:Ie.ZodTuple,rest:null,...je(t)})};var Yh=class e extends Ve{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==ce.object)return oe(n,{code:Z.invalid_type,expected:ce.object,received:n.parsedType}),Pe;let i=[],s=this._def.keyType,o=this._def.valueType;for(let a in n.data)i.push({key:s._parse(new Hn(n,a,n.path,a)),value:o._parse(new Hn(n,n.data[a],n.path,a)),alwaysSet:a in n.data});return n.common.async?Cr.mergeObjectAsync(r,i):Cr.mergeObjectSync(r,i)}get element(){return this._def.valueType}static create(t,r,n){return r instanceof Ve?new e({keyType:t,valueType:r,typeName:Ie.ZodRecord,...je(n)}):new e({keyType:Vo.create(),valueType:t,typeName:Ie.ZodRecord,...je(r)})}},Wl=class extends Ve{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==ce.map)return oe(n,{code:Z.invalid_type,expected:ce.map,received:n.parsedType}),Pe;let i=this._def.keyType,s=this._def.valueType,o=[...n.data.entries()].map(([a,u],l)=>({key:i._parse(new Hn(n,a,n.path,[l,"key"])),value:s._parse(new Hn(n,u,n.path,[l,"value"]))}));if(n.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let u of o){let l=await u.key,c=await u.value;if(l.status==="aborted"||c.status==="aborted")return Pe;(l.status==="dirty"||c.status==="dirty")&&r.dirty(),a.set(l.value,c.value)}return{status:r.value,value:a}})}else{let a=new Map;for(let u of o){let l=u.key,c=u.value;if(l.status==="aborted"||c.status==="aborted")return Pe;(l.status==="dirty"||c.status==="dirty")&&r.dirty(),a.set(l.value,c.value)}return{status:r.value,value:a}}}};Wl.create=(e,t,r)=>new Wl({valueType:t,keyType:e,typeName:Ie.ZodMap,...je(r)});var Gl=class e extends Ve{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==ce.set)return oe(n,{code:Z.invalid_type,expected:ce.set,received:n.parsedType}),Pe;let i=this._def;i.minSize!==null&&n.data.size<i.minSize.value&&(oe(n,{code:Z.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),r.dirty()),i.maxSize!==null&&n.data.size>i.maxSize.value&&(oe(n,{code:Z.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),r.dirty());let s=this._def.valueType;function o(u){let l=new Set;for(let c of u){if(c.status==="aborted")return Pe;c.status==="dirty"&&r.dirty(),l.add(c.value)}return{status:r.value,value:l}}let a=[...n.data.values()].map((u,l)=>s._parse(new Hn(n,u,n.path,l)));return n.common.async?Promise.all(a).then(u=>o(u)):o(a)}min(t,r){return new e({...this._def,minSize:{value:t,message:Ee.toString(r)}})}max(t,r){return new e({...this._def,maxSize:{value:t,message:Ee.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}};Gl.create=(e,t)=>new Gl({valueType:e,minSize:null,maxSize:null,typeName:Ie.ZodSet,...je(t)});var Kh=class e extends Ve{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==ce.function)return oe(r,{code:Z.invalid_type,expected:ce.function,received:r.parsedType}),Pe;function n(a,u){return qh({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Gh(),Vl].filter(l=>!!l),issueData:{code:Z.invalid_arguments,argumentsError:u}})}function i(a,u){return qh({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Gh(),Vl].filter(l=>!!l),issueData:{code:Z.invalid_return_type,returnTypeError:u}})}let s={errorMap:r.common.contextualErrorMap},o=r.data;if(this._def.returns instanceof $o){let a=this;return Rr(async function(...u){let l=new mn([]),c=await a._def.args.parseAsync(u,s).catch(d=>{throw l.addIssue(n(u,d)),l}),f=await Reflect.apply(o,this,c);return await a._def.returns._def.type.parseAsync(f,s).catch(d=>{throw l.addIssue(i(f,d)),l})})}else{let a=this;return Rr(function(...u){let l=a._def.args.safeParse(u,s);if(!l.success)throw new mn([n(u,l.error)]);let c=Reflect.apply(o,this,l.data),f=a._def.returns.safeParse(c,s);if(!f.success)throw new mn([i(c,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:zi.create(t).rest(Es.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,n){return new e({args:t||zi.create([]).rest(Es.create()),returns:r||Es.create(),typeName:Ie.ZodFunction,...je(n)})}},cu=class extends Ve{get schema(){return this._def.getter()}_parse(t){let{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};cu.create=(e,t)=>new cu({getter:e,typeName:Ie.ZodLazy,...je(t)});var fu=class extends Ve{_parse(t){if(t.data!==this._def.value){let r=this._getOrReturnCtx(t);return oe(r,{received:r.data,code:Z.invalid_literal,expected:this._def.value}),Pe}return{status:"valid",value:t.data}}get value(){return this._def.value}};fu.create=(e,t)=>new fu({value:e,typeName:Ie.ZodLiteral,...je(t)});function D3(e,t){return new pu({values:e,typeName:Ie.ZodEnum,...je(t)})}var pu=class e extends Ve{constructor(){super(...arguments),rp.set(this,void 0)}_parse(t){if(typeof t.data!="string"){let r=this._getOrReturnCtx(t),n=this._def.values;return oe(r,{expected:Ye.joinValues(n),received:r.parsedType,code:Z.invalid_type}),Pe}if(zh(this,rp,"f")||m3(this,rp,new Set(this._def.values),"f"),!zh(this,rp,"f").has(t.data)){let r=this._getOrReturnCtx(t),n=this._def.values;return oe(r,{received:r.data,code:Z.invalid_enum_value,options:n}),Pe}return Rr(t.data)}get options(){return this._def.values}get enum(){let t={};for(let r of this._def.values)t[r]=r;return t}get Values(){let t={};for(let r of this._def.values)t[r]=r;return t}get Enum(){let t={};for(let r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return e.create(t,{...this._def,...r})}exclude(t,r=this._def){return e.create(this.options.filter(n=>!t.includes(n)),{...this._def,...r})}};rp=new WeakMap;pu.create=D3;var du=class extends Ve{constructor(){super(...arguments),np.set(this,void 0)}_parse(t){let r=Ye.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==ce.string&&n.parsedType!==ce.number){let i=Ye.objectValues(r);return oe(n,{expected:Ye.joinValues(i),received:n.parsedType,code:Z.invalid_type}),Pe}if(zh(this,np,"f")||m3(this,np,new Set(Ye.getValidEnumValues(this._def.values)),"f"),!zh(this,np,"f").has(t.data)){let i=Ye.objectValues(r);return oe(n,{received:n.data,code:Z.invalid_enum_value,options:i}),Pe}return Rr(t.data)}get enum(){return this._def.values}};np=new WeakMap;du.create=(e,t)=>new du({values:e,typeName:Ie.ZodNativeEnum,...je(t)});var $o=class extends Ve{unwrap(){return this._def.type}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==ce.promise&&r.common.async===!1)return oe(r,{code:Z.invalid_type,expected:ce.promise,received:r.parsedType}),Pe;let n=r.parsedType===ce.promise?r.data:Promise.resolve(r.data);return Rr(n.then(i=>this._def.type.parseAsync(i,{path:r.path,errorMap:r.common.contextualErrorMap})))}};$o.create=(e,t)=>new $o({type:e,typeName:Ie.ZodPromise,...je(t)});var hn=class extends Ve{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ie.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:r,ctx:n}=this._processInputParams(t),i=this._def.effect||null,s={addIssue:o=>{oe(n,o),o.fatal?r.abort():r.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),i.type==="preprocess"){let o=i.transform(n.data,s);if(n.common.async)return Promise.resolve(o).then(async a=>{if(r.value==="aborted")return Pe;let u=await this._def.schema._parseAsync({data:a,path:n.path,parent:n});return u.status==="aborted"?Pe:u.status==="dirty"||r.value==="dirty"?jl(u.value):u});{if(r.value==="aborted")return Pe;let a=this._def.schema._parseSync({data:o,path:n.path,parent:n});return a.status==="aborted"?Pe:a.status==="dirty"||r.value==="dirty"?jl(a.value):a}}if(i.type==="refinement"){let o=a=>{let u=i.refinement(a,s);if(n.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(n.common.async===!1){let a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?Pe:(a.status==="dirty"&&r.dirty(),o(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>a.status==="aborted"?Pe:(a.status==="dirty"&&r.dirty(),o(a.value).then(()=>({status:r.value,value:a.value}))))}if(i.type==="transform")if(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!ip(o))return o;let a=i.transform(o.value,s);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>ip(o)?Promise.resolve(i.transform(o.value,s)).then(a=>({status:r.value,value:a})):o);Ye.assertNever(i)}};hn.create=(e,t,r)=>new hn({schema:e,typeName:Ie.ZodEffects,effect:t,...je(r)});hn.createWithPreprocess=(e,t,r)=>new hn({schema:t,effect:{type:"preprocess",transform:e},typeName:Ie.ZodEffects,...je(r)});var zn=class extends Ve{_parse(t){return this._getType(t)===ce.undefined?Rr(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};zn.create=(e,t)=>new zn({innerType:e,typeName:Ie.ZodOptional,...je(t)});var Hi=class extends Ve{_parse(t){return this._getType(t)===ce.null?Rr(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Hi.create=(e,t)=>new Hi({innerType:e,typeName:Ie.ZodNullable,...je(t)});var mu=class extends Ve{_parse(t){let{ctx:r}=this._processInputParams(t),n=r.data;return r.parsedType===ce.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};mu.create=(e,t)=>new mu({innerType:e,typeName:Ie.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...je(t)});var hu=class extends Ve{_parse(t){let{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return sp(i)?i.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new mn(n.common.issues)},input:n.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new mn(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};hu.create=(e,t)=>new hu({innerType:e,typeName:Ie.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...je(t)});var ql=class extends Ve{_parse(t){if(this._getType(t)!==ce.nan){let n=this._getOrReturnCtx(t);return oe(n,{code:Z.invalid_type,expected:ce.nan,received:n.parsedType}),Pe}return{status:"valid",value:t.data}}};ql.create=e=>new ql({typeName:Ie.ZodNaN,...je(e)});var OY=Symbol("zod_brand"),op=class extends Ve{_parse(t){let{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},ap=class e extends Ve{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{let s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?Pe:s.status==="dirty"?(r.dirty(),jl(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{let i=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?Pe:i.status==="dirty"?(r.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:n.path,parent:n})}}static create(t,r){return new e({in:t,out:r,typeName:Ie.ZodPipeline})}},gu=class extends Ve{_parse(t){let r=this._def.innerType._parse(t),n=i=>(ip(i)&&(i.value=Object.freeze(i.value)),i);return sp(r)?r.then(i=>n(i)):n(r)}unwrap(){return this._def.innerType}};gu.create=(e,t)=>new gu({innerType:e,typeName:Ie.ZodReadonly,...je(t)});function v3(e,t={},r){return e?Uo.create().superRefine((n,i)=>{var s,o;if(!e(n)){let a=typeof t=="function"?t(n):typeof t=="string"?{message:t}:t,u=(o=(s=a.fatal)!==null&&s!==void 0?s:r)!==null&&o!==void 0?o:!0,l=typeof a=="string"?{message:a}:a;i.addIssue({code:"custom",...l,fatal:u})}}):Uo.create()}var FY={object:zr.lazycreate},Ie;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Ie||(Ie={}));var AY=(e,t={message:`Input not instance of ${e.name}`})=>v3(r=>r instanceof e,t),w3=Vo.create,C3=ru.create,IY=ql.create,TY=nu.create,E3=iu.create,PY=su.create,LY=Ul.create,NY=ou.create,RY=au.create,BY=Uo.create,kY=Es.create,MY=gi.create,jY=$l.create,VY=Ss.create,up=zr.create,UY=zr.strictCreate,$Y=uu.create,WY=Hh.create,GY=lu.create,qY=zi.create,zY=Yh.create,HY=Wl.create,YY=Gl.create,KY=Kh.create,XY=cu.create,JY=fu.create,ZY=pu.create,QY=du.create,eK=$o.create,p3=hn.create,tK=zn.create,rK=Hi.create,nK=hn.createWithPreprocess,iK=ap.create,sK=()=>w3().optional(),oK=()=>C3().optional(),aK=()=>E3().optional(),uK={string:e=>Vo.create({...e,coerce:!0}),number:e=>ru.create({...e,coerce:!0}),boolean:e=>iu.create({...e,coerce:!0}),bigint:e=>nu.create({...e,coerce:!0}),date:e=>su.create({...e,coerce:!0})},lK=Pe,lp=Object.freeze({__proto__:null,defaultErrorMap:Vl,setErrorMap:cY,getErrorMap:Gh,makeIssue:qh,EMPTY_PATH:fY,addIssueToContext:oe,ParseStatus:Cr,INVALID:Pe,DIRTY:jl,OK:Rr,isAborted:pw,isDirty:dw,isValid:ip,isAsync:sp,get util(){return Ye},get objectUtil(){return fw},ZodParsedType:ce,getParsedType:jo,ZodType:Ve,datetimeRegex:y3,ZodString:Vo,ZodNumber:ru,ZodBigInt:nu,ZodBoolean:iu,ZodDate:su,ZodSymbol:Ul,ZodUndefined:ou,ZodNull:au,ZodAny:Uo,ZodUnknown:Es,ZodNever:gi,ZodVoid:$l,ZodArray:Ss,ZodObject:zr,ZodUnion:uu,ZodDiscriminatedUnion:Hh,ZodIntersection:lu,ZodTuple:zi,ZodRecord:Yh,ZodMap:Wl,ZodSet:Gl,ZodFunction:Kh,ZodLazy:cu,ZodLiteral:fu,ZodEnum:pu,ZodNativeEnum:du,ZodPromise:$o,ZodEffects:hn,ZodTransformer:hn,ZodOptional:zn,ZodNullable:Hi,ZodDefault:mu,ZodCatch:hu,ZodNaN:ql,BRAND:OY,ZodBranded:op,ZodPipeline:ap,ZodReadonly:gu,custom:v3,Schema:Ve,ZodSchema:Ve,late:FY,get ZodFirstPartyTypeKind(){return Ie},coerce:uK,any:BY,array:VY,bigint:TY,boolean:E3,date:PY,discriminatedUnion:WY,effect:p3,enum:ZY,function:KY,instanceof:AY,intersection:GY,lazy:XY,literal:JY,map:HY,nan:IY,nativeEnum:QY,never:MY,null:RY,nullable:rK,number:C3,object:up,oboolean:aK,onumber:oK,optional:tK,ostring:sK,pipeline:iK,preprocess:nK,promise:eK,record:zY,set:YY,strictObject:UY,string:w3,symbol:LY,transformer:p3,tuple:qY,undefined:NY,union:$Y,unknown:kY,void:jY,NEVER:lK,ZodIssueCode:Z,quotelessJson:lY,ZodError:mn});function S3(e){let t=e.runtimeEnvStrict??e.runtimeEnv??process.env;if(e.emptyStringAsUndefined??!1)for(let[I,A]of Object.entries(t))A===""&&delete t[I];if(!!e.skipValidation)return t;let i=typeof e.client=="object"?e.client:{},s=typeof e.server=="object"?e.server:{},o=typeof e.shared=="object"?e.shared:{},a=up(i),u=up(s),l=up(o),c=e.isServer??(typeof window>"u"||"Deno"in window),f=a.merge(l),p=u.merge(l).merge(a),d=c?p.safeParse(t):f.safeParse(t),m=e.onValidationError??(I=>{throw console.error("\u274C Invalid environment variables:",I.flatten().fieldErrors),new Error("Invalid environment variables")}),y=e.onInvalidAccess??(I=>{throw new Error("\u274C Attempted to access a server-side environment variable on the client")});if(d.success===!1)return m(d.error);let D=I=>e.clientPrefix?!I.startsWith(e.clientPrefix)&&!(I in l.shape):!0,h=I=>c||!D(I),g=I=>I==="__esModule"||I==="$$typeof",v=(e.extends??[]).reduce((I,A)=>Object.assign(I,A),{}),w=Object.assign(d.data,v);return new Proxy(w,{get(I,A){if(typeof A=="string"&&!g(A))return h(A)?Reflect.get(I,A):y(A)}})}var cK=e=>{switch(e){case"local":return{CONNECT_API_BASE_URL:"http://localhost:3000/rest",CANVA_ENV_URL:"http://localhost:3000",CANVA_CLI_CLIENT_ID:"FAKE_CLIENT_ID",FLAVOR:"local"};case"dev":return{CONNECT_API_BASE_URL:"https://api.canva-dev.com/rest",CANVA_ENV_URL:"https://www.canva-dev.com",CANVA_CLI_CLIENT_ID:"OC-AZFEJKOjQYw3",FLAVOR:"dev"};case"staging-cn":return{CONNECT_API_BASE_URL:"https://api.canva-staging.cn/rest",CANVA_ENV_URL:"https://www.canva-staging.cn",CANVA_CLI_CLIENT_ID:"OC-AZNlOhtxI_Zb",FLAVOR:"staging-cn"};case"staging":return{CONNECT_API_BASE_URL:"https://api.canva-staging.com/rest",CANVA_ENV_URL:"https://www.canva-staging.com",CANVA_CLI_CLIENT_ID:"OC-AZH-EOTpT8Ib",FLAVOR:"staging"};case"prod-cn":return{CONNECT_API_BASE_URL:"https://api.canva.cn/rest",CANVA_ENV_URL:"https://www.canva.cn",CANVA_CLI_CLIENT_ID:"OC-AZN2AS1hKtVM",FLAVOR:"prod-cn"};case"prod":default:return{CONNECT_API_BASE_URL:"https://api.canva.com/rest",CANVA_ENV_URL:"https://www.canva.com",CANVA_CLI_CLIENT_ID:"OC-AZICxlGo2biD",FLAVOR:"prod"}}},x3=({fallback:e="prod"})=>S3({server:{FLAVOR:lp.enum(["prod","prod-cn","staging","staging-cn","dev","local"]).default(e),CONNECT_API_BASE_URL:lp.string().url(),CANVA_ENV_URL:lp.string().url(),CANVA_CLI_CLIENT_ID:lp.enum(["OC-AZICxlGo2biD","OC-AZN2AS1hKtVM","OC-AZH-EOTpT8Ib","OC-AZNlOhtxI_Zb","OC-AZFEJKOjQYw3","FAKE_CLIENT_ID"]).default("OC-AZICxlGo2biD")},runtimeEnv:cK(k_({fallback:e})),emptyStringAsUndefined:!0});var Jh=({envLines:e,key:t,value:r,comment:n=""})=>e.map(i=>{if(i.startsWith(`${t}=`)){let s=`${t}=${r}`;return n?`${s} ${n}`:s}return i}),Xh=class{constructor(t){this.env=t}get isChina(){return M_(this.env.FLAVOR)}};var Zh=class{constructor(t,r){this.notifier=t;this.debug=r}getUpdateInfo=async()=>{try{return{success:!0,data:await this.notifier.fetchInfo()}}catch(t){let r=t instanceof Error?t.message:`${t}`;return this.debug&&console.error(`Error fetching update info: ${r}`),{success:!1,code:"UPDATE_NOTIFICATION_ERROR",message:`Failed to fetch update info: ${r}`}}}};import Tu from"node:process";import{spawn as Lee}from"node:child_process";import{fileURLToPath as Nee}from"node:url";import LR from"node:path";import{format as WC}from"node:util";var dp=St(R3(),1);import pp from"node:path";import AK from"node:os";import CK from"os";import n0 from"path";var Go=CK.homedir(),{env:Du}=process,B3=Du.XDG_DATA_HOME||(Go?n0.join(Go,".local","share"):void 0),Hl=Du.XDG_CONFIG_HOME||(Go?n0.join(Go,".config"):void 0),fDe=Du.XDG_STATE_HOME||(Go?n0.join(Go,".local","state"):void 0),pDe=Du.XDG_CACHE_HOME||(Go?n0.join(Go,".cache"):void 0),dDe=Du.XDG_RUNTIME_DIR||void 0,EK=(Du.XDG_DATA_DIRS||"/usr/local/share/:/usr/share/").split(":");B3&&EK.unshift(B3);var SK=(Du.XDG_CONFIG_DIRS||"/etc/xdg").split(":");Hl&&SK.unshift(Hl);import OK from"node:path";import Ke from"node:fs";import{promisify as Er}from"node:util";var xs=(e,t)=>function(...n){return e.apply(void 0,n).catch(t)},Yi=(e,t)=>function(...n){try{return e.apply(void 0,n)}catch(i){return t(i)}};import k3 from"node:process";var M3=k3.getuid?!k3.getuid():!1,j3=1e4,Hr=()=>{};var cp={isChangeErrorOk:e=>{if(!cp.isNodeError(e))return!1;let{code:t}=e;return t==="ENOSYS"||!M3&&(t==="EINVAL"||t==="EPERM")},isNodeError:e=>e instanceof Error,isRetriableError:e=>{if(!cp.isNodeError(e))return!1;let{code:t}=e;return t==="EMFILE"||t==="ENFILE"||t==="EAGAIN"||t==="EBUSY"||t==="EACCESS"||t==="EACCES"||t==="EACCS"||t==="EPERM"},onChangeError:e=>{if(!cp.isNodeError(e))throw e;if(!cp.isChangeErrorOk(e))throw e}},Bt=cp;var vw=class{constructor(){this.interval=25,this.intervalId=void 0,this.limit=j3,this.queueActive=new Set,this.queueWaiting=new Set,this.init=()=>{this.intervalId||(this.intervalId=setInterval(this.tick,this.interval))},this.reset=()=>{this.intervalId&&(clearInterval(this.intervalId),delete this.intervalId)},this.add=t=>{this.queueWaiting.add(t),this.queueActive.size<this.limit/2?this.tick():this.init()},this.remove=t=>{this.queueWaiting.delete(t),this.queueActive.delete(t)},this.schedule=()=>new Promise(t=>{let r=()=>this.remove(n),n=()=>t(r);this.add(n)}),this.tick=()=>{if(!(this.queueActive.size>=this.limit)){if(!this.queueWaiting.size)return this.reset();for(let t of this.queueWaiting){if(this.queueActive.size>=this.limit)break;this.queueWaiting.delete(t),this.queueActive.add(t),t()}}}}},V3=new vw;var _s=(e,t)=>function(n){return function i(...s){return V3.schedule().then(o=>{let a=l=>(o(),l),u=l=>{if(o(),Date.now()>=n)throw l;if(t(l)){let c=Math.round(100*Math.random());return new Promise(p=>setTimeout(p,c)).then(()=>i.apply(void 0,s))}throw l};return e.apply(void 0,s).then(a,u)})}},bs=(e,t)=>function(n){return function i(...s){try{return e.apply(void 0,s)}catch(o){if(Date.now()>n)throw o;if(t(o))return i.apply(void 0,s);throw o}}};var xK={attempt:{chmod:xs(Er(Ke.chmod),Bt.onChangeError),chown:xs(Er(Ke.chown),Bt.onChangeError),close:xs(Er(Ke.close),Hr),fsync:xs(Er(Ke.fsync),Hr),mkdir:xs(Er(Ke.mkdir),Hr),realpath:xs(Er(Ke.realpath),Hr),stat:xs(Er(Ke.stat),Hr),unlink:xs(Er(Ke.unlink),Hr),chmodSync:Yi(Ke.chmodSync,Bt.onChangeError),chownSync:Yi(Ke.chownSync,Bt.onChangeError),closeSync:Yi(Ke.closeSync,Hr),existsSync:Yi(Ke.existsSync,Hr),fsyncSync:Yi(Ke.fsync,Hr),mkdirSync:Yi(Ke.mkdirSync,Hr),realpathSync:Yi(Ke.realpathSync,Hr),statSync:Yi(Ke.statSync,Hr),unlinkSync:Yi(Ke.unlinkSync,Hr)},retry:{close:_s(Er(Ke.close),Bt.isRetriableError),fsync:_s(Er(Ke.fsync),Bt.isRetriableError),open:_s(Er(Ke.open),Bt.isRetriableError),readFile:_s(Er(Ke.readFile),Bt.isRetriableError),rename:_s(Er(Ke.rename),Bt.isRetriableError),stat:_s(Er(Ke.stat),Bt.isRetriableError),write:_s(Er(Ke.write),Bt.isRetriableError),writeFile:_s(Er(Ke.writeFile),Bt.isRetriableError),closeSync:bs(Ke.closeSync,Bt.isRetriableError),fsyncSync:bs(Ke.fsyncSync,Bt.isRetriableError),openSync:bs(Ke.openSync,Bt.isRetriableError),readFileSync:bs(Ke.readFileSync,Bt.isRetriableError),renameSync:bs(Ke.renameSync,Bt.isRetriableError),statSync:bs(Ke.statSync,Bt.isRetriableError),writeSync:bs(Ke.writeSync,Bt.isRetriableError),writeFileSync:bs(Ke.writeFileSync,Bt.isRetriableError)}},nr=xK;import U3 from"node:os";import ww from"node:process";var $3="utf8",Cw=438,W3=511;var G3={},q3=U3.userInfo().uid,z3=U3.userInfo().gid;var H3=1e3,Y3=!!ww.getuid,LDe=ww.getuid?!ww.getuid():!1,Ew=128;var K3=e=>e instanceof Error&&"code"in e;var Sw=e=>typeof e=="string",i0=e=>e===void 0;import bK from"node:path";import Yl from"node:process";import X3 from"node:process";var J3=X3.platform==="linux",s0=X3.platform==="win32";var xw=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];s0||xw.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");J3&&xw.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED");var Z3=xw;var _w=class{constructor(){this.callbacks=new Set,this.exited=!1,this.exit=t=>{if(!this.exited){this.exited=!0;for(let r of this.callbacks)r();t&&(s0&&t!=="SIGINT"&&t!=="SIGTERM"&&t!=="SIGKILL"?Yl.kill(Yl.pid,"SIGTERM"):Yl.kill(Yl.pid,t))}},this.hook=()=>{Yl.once("exit",()=>this.exit());for(let t of Z3)try{Yl.once(t,()=>this.exit(t))}catch{}},this.register=t=>(this.callbacks.add(t),()=>{this.callbacks.delete(t)}),this.hook()}},Q3=new _w;var _K=Q3.register,eT=_K;var gn={store:{},create:e=>{let t=`000000${Math.floor(Math.random()*16777215).toString(16)}`.slice(-6),i=`.tmp-${Date.now().toString().slice(-10)}${t}`;return`${e}${i}`},get:(e,t,r=!0)=>{let n=gn.truncate(t(e));return n in gn.store?gn.get(e,t,r):(gn.store[n]=r,[n,()=>delete gn.store[n]])},purge:e=>{gn.store[e]&&(delete gn.store[e],nr.attempt.unlink(e))},purgeSync:e=>{gn.store[e]&&(delete gn.store[e],nr.attempt.unlinkSync(e))},purgeSyncAll:()=>{for(let e in gn.store)gn.purgeSync(e)},truncate:e=>{let t=bK.basename(e);if(t.length<=Ew)return e;let r=/^(\.?)(.*?)((?:\.[^.]+)?(?:\.tmp-\d{10}[a-f0-9]{6})?)$/.exec(t);if(!r)return e;let n=t.length-Ew;return`${e.slice(0,-t.length)}${r[1]}${r[2].slice(0,-n)}${r[3]}`}};eT(gn.purgeSyncAll);var fp=gn;function o0(e,t,r=G3){if(Sw(r))return o0(e,t,{encoding:r});let n=Date.now()+((r.timeout??H3)||-1),i=null,s=null,o=null;try{let a=nr.attempt.realpathSync(e),u=!!a;e=a||e,[s,i]=fp.get(e,r.tmpCreate||fp.create,r.tmpPurge!==!1);let l=Y3&&i0(r.chown),c=i0(r.mode);if(u&&(l||c)){let f=nr.attempt.statSync(e);f&&(r={...r},l&&(r.chown={uid:f.uid,gid:f.gid}),c&&(r.mode=f.mode))}if(!u){let f=OK.dirname(e);nr.attempt.mkdirSync(f,{mode:W3,recursive:!0})}o=nr.retry.openSync(n)(s,"w",r.mode||Cw),r.tmpCreated&&r.tmpCreated(s),Sw(t)?nr.retry.writeSync(n)(o,t,0,r.encoding||$3):i0(t)||nr.retry.writeSync(n)(o,t,0,t.length,0),r.fsync!==!1&&(r.fsyncWait!==!1?nr.retry.fsyncSync(n)(o):nr.attempt.fsync(o)),nr.retry.closeSync(n)(o),o=null,r.chown&&(r.chown.uid!==q3||r.chown.gid!==z3)&&nr.attempt.chownSync(s,r.chown.uid,r.chown.gid),r.mode&&r.mode!==Cw&&nr.attempt.chmodSync(s,r.mode);try{nr.retry.renameSync(n)(s,e)}catch(f){if(!K3(f)||f.code!=="ENAMETOOLONG")throw f;nr.retry.renameSync(n)(s,fp.truncate(e))}i(),s=null}finally{o&&nr.attempt.closeSync(o),s&&fp.purge(s)}}var vu=e=>{let t=typeof e;return e!==null&&(t==="object"||t==="function")};var bw=new Set(["__proto__","prototype","constructor"]),FK=new Set("0123456789");function a0(e){let t=[],r="",n="start",i=!1;for(let s of e)switch(s){case"\\":{if(n==="index")throw new Error("Invalid character in an index");if(n==="indexEnd")throw new Error("Invalid character after an index");i&&(r+=s),n="property",i=!i;break}case".":{if(n==="index")throw new Error("Invalid character in an index");if(n==="indexEnd"){n="property";break}if(i){i=!1,r+=s;break}if(bw.has(r))return[];t.push(r),r="",n="property";break}case"[":{if(n==="index")throw new Error("Invalid character in an index");if(n==="indexEnd"){n="index";break}if(i){i=!1,r+=s;break}if(n==="property"){if(bw.has(r))return[];t.push(r),r=""}n="index";break}case"]":{if(n==="index"){t.push(Number.parseInt(r,10)),r="",n="indexEnd";break}if(n==="indexEnd")throw new Error("Invalid character after an index")}default:{if(n==="index"&&!FK.has(s))throw new Error("Invalid character in an index");if(n==="indexEnd")throw new Error("Invalid character after an index");n==="start"&&(n="property"),i&&(i=!1,r+="\\"),r+=s}}switch(i&&(r+="\\"),n){case"property":{if(bw.has(r))return[];t.push(r);break}case"index":throw new Error("Index was not closed");case"start":{t.push("");break}}return t}function Ow(e,t){if(typeof t!="number"&&Array.isArray(e)){let r=Number.parseInt(t,10);return Number.isInteger(r)&&e[r]===e[t]}return!1}function tT(e,t){if(Ow(e,t))throw new Error("Cannot use string index")}function rT(e,t,r){if(!vu(e)||typeof t!="string")return r===void 0?e:r;let n=a0(t);if(n.length===0)return r;for(let i=0;i<n.length;i++){let s=n[i];if(Ow(e,s)?e=i===n.length-1?void 0:null:e=e[s],e==null){if(i!==n.length-1)return r;break}}return e===void 0?r:e}function Fw(e,t,r){if(!vu(e)||typeof t!="string")return e;let n=e,i=a0(t);for(let s=0;s<i.length;s++){let o=i[s];tT(e,o),s===i.length-1?e[o]=r:vu(e[o])||(e[o]=typeof i[s+1]=="number"?[]:{}),e=e[o]}return n}function nT(e,t){if(!vu(e)||typeof t!="string")return!1;let r=a0(t);for(let n=0;n<r.length;n++){let i=r[n];if(tT(e,i),n===r.length-1)return delete e[i],!0;if(e=e[i],!vu(e))return!1}}function iT(e,t){if(!vu(e)||typeof t!="string")return!1;let r=a0(t);if(r.length===0)return!1;for(let n of r){if(!vu(e)||!(n in e)||Ow(e,n))return!1;e=e[n]}return!0}function IK(e,t){let r=t?pp.join(e,"config.json"):pp.join("configstore",`${e}.json`),n=Hl??dp.default.mkdtempSync(dp.default.realpathSync(AK.tmpdir())+pp.sep);return pp.join(n,r)}var sT="You don't have access to this file.",TK={mode:448,recursive:!0},oT={mode:384},mp=class{constructor(t,r,n={}){this._path=n.configPath??IK(t,n.globalConfigPath),r&&(this.all={...r,...this.all})}get all(){try{return JSON.parse(dp.default.readFileSync(this._path,"utf8"))}catch(t){if(t.code==="ENOENT")return{};if(t.code==="EACCES"&&(t.message=`${t.message}
|
|
500
500
|
${sT}
|
|
501
501
|
`),t.name==="SyntaxError")return o0(this._path,"",oT),{};throw t}}set all(t){try{dp.default.mkdirSync(pp.dirname(this._path),TK),o0(this._path,JSON.stringify(t,void 0," "),oT)}catch(r){throw r.code==="EACCES"&&(r.message=`${r.message}
|
|
502
502
|
${sT}
|
|
503
|
-
`),r}}get size(){return Object.keys(this.all||{}).length}get(t){return rT(this.all,t)}set(t,r){let n=this.all;if(arguments.length===1)for(let i of Object.keys(t))Fw(n,i,t[i]);else Fw(n,t,r);this.all=n}has(t){return iT(this.all,t)}delete(t){let r=this.all;nT(r,t),this.all=r}clear(){this.all={}}get path(){return this._path}};var NR=St(Lw(),1),RR=St(Jl(),1);var yp=class extends Error{response;request;options;constructor(t,r,n){let i=t.status||t.status===0?t.status:"",s=t.statusText||"",o=`${i} ${s}`.trim(),a=o?`status code ${o}`:"an unknown error";super(`Request failed with ${a}: ${r.method} ${r.url}`),this.name="HTTPError",this.response=t,this.request=r,this.options=n}};var Zl=class extends Error{request;constructor(t){super(`Request timed out: ${t.method} ${t.url}`),this.name="TimeoutError",this.request=t}};var Ql=e=>e!==null&&typeof e=="object";var Dp=(...e)=>{for(let t of e)if((!Ql(t)||Array.isArray(t))&&t!==void 0)throw new TypeError("The `options` argument must be an object");return Bw({},...e)},Nw=(e={},t={})=>{let r=new globalThis.Headers(e),n=t instanceof globalThis.Headers,i=new globalThis.Headers(t);for(let[s,o]of i.entries())n&&o==="undefined"||o===void 0?r.delete(s):r.set(s,o);return r};function f0(e,t,r){return Object.hasOwn(t,r)&&t[r]===void 0?[]:Bw(e[r]??[],t[r]??[])}var Rw=(e={},t={})=>({beforeRequest:f0(e,t,"beforeRequest"),beforeRetry:f0(e,t,"beforeRetry"),afterResponse:f0(e,t,"afterResponse"),beforeError:f0(e,t,"beforeError")}),Bw=(...e)=>{let t={},r={},n={};for(let i of e)if(Array.isArray(i))Array.isArray(t)||(t=[]),t=[...t,...i];else if(Ql(i)){for(let[s,o]of Object.entries(i))Ql(o)&&s in t&&(o=Bw(t[s],o)),t={...t,[s]:o};Ql(i.hooks)&&(n=Rw(n,i.hooks),t.hooks=n),Ql(i.headers)&&(r=Nw(r,i.headers),t.headers=r)}return t};var _T=(()=>{let e=!1,t=!1,r=typeof globalThis.ReadableStream=="function",n=typeof globalThis.Request=="function";if(r&&n)try{t=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type")}catch(i){if(i instanceof Error&&i.message==="unsupported BodyInit type")return!1;throw i}return e&&!t})(),bT=typeof globalThis.AbortController=="function",OT=typeof globalThis.ReadableStream=="function",FT=typeof globalThis.FormData=="function",p0=["get","post","put","patch","head","delete"],rX=()=>{};rX();var AT={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*"},d0=2147483647,m0=Symbol("stop"),IT={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,prefixUrl:!0,retry:!0,timeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,fetch:!0},TT={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,dispatcher:!0,duplex:!0,priority:!0};var LT=e=>p0.includes(e)?e.toUpperCase():e,nX=["get","put","head","delete","options","trace"],iX=[408,413,429,500,502,503,504],sX=[413,429,503],PT={limit:2,methods:nX,statusCodes:iX,afterStatusCodes:sX,maxRetryAfter:Number.POSITIVE_INFINITY,backoffLimit:Number.POSITIVE_INFINITY,delay:e=>.3*2**(e-1)*1e3},NT=(e={})=>{if(typeof e=="number")return{...PT,limit:e};if(e.methods&&!Array.isArray(e.methods))throw new Error("retry.methods must be an array");if(e.statusCodes&&!Array.isArray(e.statusCodes))throw new Error("retry.statusCodes must be an array");return{...PT,...e}};async function kw(e,t,r,n){return new Promise((i,s)=>{let o=setTimeout(()=>{r&&r.abort(),s(new Zl(e))},n.timeout);n.fetch(e,t).then(i).catch(s).then(()=>{clearTimeout(o)})})}async function Mw(e,{signal:t}){return new Promise((r,n)=>{t&&(t.throwIfAborted(),t.addEventListener("abort",i,{once:!0}));function i(){clearTimeout(s),n(t.reason)}let s=setTimeout(()=>{t?.removeEventListener("abort",i),r()},e)})}var RT=(e,t)=>{let r={};for(let n in t)!(n in TT)&&!(n in IT)&&!(n in e)&&(r[n]=t[n]);return r};var vp=class e{static create(t,r){let n=new e(t,r),i=async()=>{if(typeof n._options.timeout=="number"&&n._options.timeout>d0)throw new RangeError(`The \`timeout\` option cannot be greater than ${d0}`);await Promise.resolve();let a=await n._fetch();for(let u of n._options.hooks.afterResponse){let l=await u(n.request,n._options,n._decorateResponse(a.clone()));l instanceof globalThis.Response&&(a=l)}if(n._decorateResponse(a),!a.ok&&n._options.throwHttpErrors){let u=new yp(a,n.request,n._options);for(let l of n._options.hooks.beforeError)u=await l(u);throw u}if(n._options.onDownloadProgress){if(typeof n._options.onDownloadProgress!="function")throw new TypeError("The `onDownloadProgress` option must be a function");if(!OT)throw new Error("Streams are not supported in your environment. `ReadableStream` is missing.");return n._stream(a.clone(),n._options.onDownloadProgress)}return a},o=n._options.retry.methods.includes(n.request.method.toLowerCase())?n._retry(i):i();for(let[a,u]of Object.entries(AT))o[a]=async()=>{n.request.headers.set("accept",n.request.headers.get("accept")||u);let c=(await o).clone();if(a==="json"){if(c.status===204||(await c.clone().arrayBuffer()).byteLength===0)return"";if(r.parseJson)return r.parseJson(await c.text())}return c[a]()};return o}request;abortController;_retryCount=0;_input;_options;constructor(t,r={}){if(this._input=t,this._options={...r,headers:Nw(this._input.headers,r.headers),hooks:Rw({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},r.hooks),method:LT(r.method??this._input.method),prefixUrl:String(r.prefixUrl||""),retry:NT(r.retry),throwHttpErrors:r.throwHttpErrors!==!1,timeout:r.timeout??1e4,fetch:r.fetch??globalThis.fetch.bind(globalThis)},typeof this._input!="string"&&!(this._input instanceof URL||this._input instanceof globalThis.Request))throw new TypeError("`input` must be a string, URL, or Request");if(this._options.prefixUrl&&typeof this._input=="string"){if(this._input.startsWith("/"))throw new Error("`input` must not begin with a slash when using `prefixUrl`");this._options.prefixUrl.endsWith("/")||(this._options.prefixUrl+="/"),this._input=this._options.prefixUrl+this._input}if(bT){this.abortController=new globalThis.AbortController;let n=this._options.signal??this._input.signal;n?.addEventListener("abort",()=>{this.abortController.abort(n.reason)}),this._options.signal=this.abortController.signal}if(_T&&(this._options.duplex="half"),this._options.json!==void 0&&(this._options.body=this._options.stringifyJson?.(this._options.json)??JSON.stringify(this._options.json),this._options.headers.set("content-type",this._options.headers.get("content-type")??"application/json")),this.request=new globalThis.Request(this._input,this._options),this._options.searchParams){let i="?"+(typeof this._options.searchParams=="string"?this._options.searchParams.replace(/^\?/,""):new URLSearchParams(this._options.searchParams).toString()),s=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,i);(FT&&this._options.body instanceof globalThis.FormData||this._options.body instanceof URLSearchParams)&&!(this._options.headers&&this._options.headers["content-type"])&&this.request.headers.delete("content-type"),this.request=new globalThis.Request(new globalThis.Request(s,{...this.request}),this._options)}}_calculateRetryDelay(t){if(this._retryCount++,this._retryCount>this._options.retry.limit||t instanceof Zl)throw t;if(t instanceof yp){if(!this._options.retry.statusCodes.includes(t.response.status))throw t;let n=t.response.headers.get("Retry-After")??t.response.headers.get("RateLimit-Reset")??t.response.headers.get("X-RateLimit-Reset")??t.response.headers.get("X-Rate-Limit-Reset");if(n&&this._options.retry.afterStatusCodes.includes(t.response.status)){let i=Number(n)*1e3;Number.isNaN(i)?i=Date.parse(n)-Date.now():i>=Date.parse("2024-01-01")&&(i-=Date.now());let s=this._options.retry.maxRetryAfter??i;return i<s?i:s}if(t.response.status===413)throw t}let r=this._options.retry.delay(this._retryCount);return Math.min(this._options.retry.backoffLimit,r)}_decorateResponse(t){return this._options.parseJson&&(t.json=async()=>this._options.parseJson(await t.text())),t}async _retry(t){try{return await t()}catch(r){let n=Math.min(this._calculateRetryDelay(r),d0);if(this._retryCount<1)throw r;await Mw(n,{signal:this._options.signal});for(let i of this._options.hooks.beforeRetry)if(await i({request:this.request,options:this._options,error:r,retryCount:this._retryCount})===m0)return;return this._retry(t)}}async _fetch(){for(let n of this._options.hooks.beforeRequest){let i=await n(this.request,this._options);if(i instanceof Request){this.request=i;break}if(i instanceof Response)return i}let t=RT(this.request,this._options),r=this.request;return this.request=r.clone(),this._options.timeout===!1?this._options.fetch(r,t):kw(r,t,this.abortController,this._options)}_stream(t,r){let n=Number(t.headers.get("content-length"))||0,i=0;return t.status===204?(r&&r({percent:1,totalBytes:n,transferredBytes:i},new Uint8Array),new globalThis.Response(null,{status:t.status,statusText:t.statusText,headers:t.headers})):new globalThis.Response(new globalThis.ReadableStream({async start(s){let o=t.body.getReader();r&&r({percent:0,transferredBytes:0,totalBytes:n},new Uint8Array);async function a(){let{done:u,value:l}=await o.read();if(u){s.close();return}if(r){i+=l.byteLength;let c=n===0?0:i/n;r({percent:c,transferredBytes:i,totalBytes:n},l)}s.enqueue(l),await a()}await a()}}),{status:t.status,statusText:t.statusText,headers:t.headers})}};var jw=e=>{let t=(r,n)=>vp.create(r,Dp(e,n));for(let r of p0)t[r]=(n,i)=>vp.create(n,Dp(e,i,{method:r}));return t.create=r=>jw(Dp(r)),t.extend=r=>(typeof r=="function"&&(r=r(e??{})),jw(Dp(e,r))),t.stop=m0,t},oX=jw(),BT=oX;var oP=St(sP(),1);function Ww(e){let t=(0,oP.default)("npm",{registry:"https://registry.npmjs.org/"}),r=t[`${e}:registry`]||t.config_registry||t.registry;return r.slice(-1)==="/"?r:`${r}/`}var IN=St(nL(),1),TN=St(AN(),1),DC=class extends Error{constructor(t){super(`Package \`${t}\` could not be found`),this.name="PackageNotFoundError"}},vC=class extends Error{constructor(t,r){super(`Version \`${r}\` for package \`${t}\` could not be found`),this.name="VersionNotFoundError"}};async function wC(e,t={}){let{version:r="latest"}=t,{omitDeprecated:n=!0}=t,i=e.split("/")[0],s=t.registryUrl??Ww(i),o=new URL(encodeURIComponent(e).replace(/^%40/,"@"),s),a=(0,IN.default)(s.toString(),{recursive:!0}),u={accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"};t.fullMetadata&&delete u.accept,a&&(u.authorization=`${a.type} ${a.token}`);let l;try{l=await BT(o,{headers:u,keepalive:!0}).json()}catch(f){throw f?.response?.status===404?new DC(e):f}if(t.allVersions)return l;let c=new vC(e,r);if(l["dist-tags"][r]){let{time:f}=l;l=l.versions[l["dist-tags"][r]],l.time=f}else if(r){let f=!!l.versions[r];if(n&&!f)for(let[d,m]of Object.entries(l.versions))m.deprecated&&delete l.versions[d];if(!f){let d=Object.keys(l.versions);if(r=TN.default.maxSatisfying(d,r),!r)throw c}let{time:p}=l;if(l=l.versions[r],l.time=p,!l)throw c}return l}async function CC(e,t){let{version:r}=await wC(e.toLowerCase(),t);return r}import LN from"node:process";var PN=LN.env.npm_package_json,N0=LN.env.npm_config_user_agent,BQ=!!(N0&&N0.startsWith("npm")),kQ=!!(PN&&PN.endsWith("package.json")),MQ=BQ||kQ,jQ=!!(N0&&N0.startsWith("yarn")),NN=MQ||jQ;import qQ from"node:fs";import zQ from"node:path";import{fileURLToPath as HQ}from"node:url";var UN=St(jN(),1);import qt from"node:process";import zt from"node:path";import xC from"node:os";import B0 from"node:fs";var Ip=qt.platform==="win32",VN=e=>{try{return UN.default.parse(B0.readFileSync(e,"utf8")).prefix}catch{}},VQ=()=>Object.keys(qt.env).reduce((e,t)=>/^npm_config_prefix$/i.test(t)?qt.env[t]:e,void 0),UQ=()=>{if(Ip&&qt.env.APPDATA)return zt.join(qt.env.APPDATA,"/npm/etc/npmrc");if(qt.execPath.includes("/Cellar/node")){let e=qt.execPath.slice(0,qt.execPath.indexOf("/Cellar/node"));return zt.join(e,"/lib/node_modules/npm/npmrc")}if(qt.execPath.endsWith("/bin/node")){let e=zt.dirname(zt.dirname(qt.execPath));return zt.join(e,"/etc/npmrc")}},$Q=()=>{if(Ip){let{APPDATA:e}=qt.env;return e?zt.join(e,"npm"):zt.dirname(qt.execPath)}return zt.dirname(zt.dirname(qt.execPath))},WQ=()=>{let e=VQ();if(e)return e;let t=VN(zt.join(xC.homedir(),".npmrc"));if(t)return t;if(qt.env.PREFIX)return qt.env.PREFIX;let r=VN(UQ());return r||$Q()},Ap=zt.resolve(WQ()),$N=()=>{if(Ip&&qt.env.LOCALAPPDATA){let e=zt.join(qt.env.LOCALAPPDATA,"Yarn");if(B0.existsSync(e))return e}return!1},GQ=()=>{if(qt.env.PREFIX)return qt.env.PREFIX;let e=$N();if(e)return e;let t=zt.join(xC.homedir(),".config/yarn");if(B0.existsSync(t))return t;let r=zt.join(xC.homedir(),".yarn-config");return B0.existsSync(r)?r:Ap},Xi={};Xi.npm={};Xi.npm.prefix=Ap;Xi.npm.packages=zt.join(Ap,Ip?"node_modules":"lib/node_modules");Xi.npm.binaries=Ip?Ap:zt.join(Ap,"bin");var WN=zt.resolve(GQ());Xi.yarn={};Xi.yarn.prefix=WN;Xi.yarn.packages=zt.join(WN,$N()?"Data/global/node_modules":"global/node_modules");Xi.yarn.binaries=zt.join(Xi.yarn.packages,".bin");var _C=Xi;import bC from"node:path";function k0(e,t){let r=bC.relative(t,e);return!!(r&&r!==".."&&!r.startsWith(`..${bC.sep}`)&&r!==bC.resolve(e))}var GN=zQ.dirname(HQ(import.meta.url)),YQ=(()=>{try{return k0(GN,_C.yarn.packages)||k0(GN,qQ.realpathSync(_C.npm.packages))}catch{return!1}})(),qN=YQ;import $0 from"node:process";function OC({onlyFirst:e=!1}={}){let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}var KQ=OC();function FC(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(KQ,"")}function zN(e){return e===161||e===164||e===167||e===168||e===170||e===173||e===174||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||e===198||e===208||e===215||e===216||e>=222&&e<=225||e===230||e>=232&&e<=234||e===236||e===237||e===240||e===242||e===243||e>=247&&e<=250||e===252||e===254||e===257||e===273||e===275||e===283||e===294||e===295||e===299||e>=305&&e<=307||e===312||e>=319&&e<=322||e===324||e>=328&&e<=331||e===333||e===338||e===339||e===358||e===359||e===363||e===462||e===464||e===466||e===468||e===470||e===472||e===474||e===476||e===593||e===609||e===708||e===711||e>=713&&e<=715||e===717||e===720||e>=728&&e<=731||e===733||e===735||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||e===1025||e>=1040&&e<=1103||e===1105||e===8208||e>=8211&&e<=8214||e===8216||e===8217||e===8220||e===8221||e>=8224&&e<=8226||e>=8228&&e<=8231||e===8240||e===8242||e===8243||e===8245||e===8251||e===8254||e===8308||e===8319||e>=8321&&e<=8324||e===8364||e===8451||e===8453||e===8457||e===8467||e===8470||e===8481||e===8482||e===8486||e===8491||e===8531||e===8532||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||e===8585||e>=8592&&e<=8601||e===8632||e===8633||e===8658||e===8660||e===8679||e===8704||e===8706||e===8707||e===8711||e===8712||e===8715||e===8719||e===8721||e===8725||e===8730||e>=8733&&e<=8736||e===8739||e===8741||e>=8743&&e<=8748||e===8750||e>=8756&&e<=8759||e===8764||e===8765||e===8776||e===8780||e===8786||e===8800||e===8801||e>=8804&&e<=8807||e===8810||e===8811||e===8814||e===8815||e===8834||e===8835||e===8838||e===8839||e===8853||e===8857||e===8869||e===8895||e===8978||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||e===9632||e===9633||e>=9635&&e<=9641||e===9650||e===9651||e===9654||e===9655||e===9660||e===9661||e===9664||e===9665||e>=9670&&e<=9672||e===9675||e>=9678&&e<=9681||e>=9698&&e<=9701||e===9711||e===9733||e===9734||e===9737||e===9742||e===9743||e===9756||e===9758||e===9792||e===9794||e===9824||e===9825||e>=9827&&e<=9829||e>=9831&&e<=9834||e===9836||e===9837||e===9839||e===9886||e===9887||e===9919||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||e===9955||e===9960||e===9961||e>=9963&&e<=9969||e===9972||e>=9974&&e<=9977||e===9979||e===9980||e===9982||e===9983||e===10045||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||e===65533||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||e===127375||e===127376||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109}function HN(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function YN(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9800&&e<=9811||e===9855||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}function XQ(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function KN(e,{ambiguousAsWide:t=!1}={}){return XQ(e),HN(e)||YN(e)||t&&zN(e)?2:1}var ZN=St(JN(),1),JQ=new Intl.Segmenter,ZQ=/^\p{Default_Ignorable_Code_Point}$/u;function Mr(e,t={}){if(typeof e!="string"||e.length===0)return 0;let{ambiguousIsNarrow:r=!0,countAnsiEscapeCodes:n=!1}=t;if(n||(e=FC(e)),e.length===0)return 0;let i=0,s={ambiguousAsWide:!r};for(let{segment:o}of JQ.segment(e)){let a=o.codePointAt(0);if(!(a<=31||a>=127&&a<=159)&&!(a>=8203&&a<=8207||a===65279)&&!(a>=768&&a<=879||a>=6832&&a<=6911||a>=7616&&a<=7679||a>=8400&&a<=8447||a>=65056&&a<=65071)&&!(a>=55296&&a<=57343)&&!(a>=65024&&a<=65039)&&!ZQ.test(o)){if((0,ZN.default)().test(o)){i+=2;continue}i+=KN(a,s)}}return i}function M0(e){let t=0;for(let r of e.split(`
|
|
504
|
-
`))t=Math.max(t,Mr(r));return t}var FR=St(IC(),1);var eee=/[\p{Lu}]/u,tee=/[\p{Ll}]/u,tR=/^[\p{Lu}](?![\p{Lu}])/gu,iR=/([\p{Alpha}\p{N}_]|$)/u,TC=/[_.\- ]+/,ree=new RegExp("^"+TC.source),rR=new RegExp(TC.source+iR.source,"gu"),nR=new RegExp("\\d+"+iR.source,"gu"),nee=(e,t,r,n)=>{let i=!1,s=!1,o=!1,a=!1;for(let u=0;u<e.length;u++){let l=e[u];a=u>2?e[u-3]==="-":!0,i&&eee.test(l)?(e=e.slice(0,u)+"-"+e.slice(u),i=!1,o=s,s=!0,u++):s&&o&&tee.test(l)&&(!a||n)?(e=e.slice(0,u-1)+"-"+e.slice(u-1),o=s,s=!1,i=!0):(i=t(l)===l&&r(l)!==l,o=s,s=r(l)===l&&t(l)!==l)}return e},iee=(e,t)=>(tR.lastIndex=0,e.replaceAll(tR,r=>t(r))),see=(e,t)=>(rR.lastIndex=0,nR.lastIndex=0,e.replaceAll(nR,(r,n,i)=>["_","-"].includes(e.charAt(i+r.length))?r:t(r)).replaceAll(rR,(r,n)=>t(n)));function PC(e,t){if(!(typeof e=="string"||Array.isArray(e)))throw new TypeError("Expected the input to be `string | string[]`");if(t={pascalCase:!1,preserveConsecutiveUppercase:!1,...t},Array.isArray(e)?e=e.map(s=>s.trim()).filter(s=>s.length).join("-"):e=e.trim(),e.length===0)return"";let r=t.locale===!1?s=>s.toLowerCase():s=>s.toLocaleLowerCase(t.locale),n=t.locale===!1?s=>s.toUpperCase():s=>s.toLocaleUpperCase(t.locale);return e.length===1?TC.test(e)?"":t.pascalCase?n(e):r(e):(e!==r(e)&&(e=nee(e,r,n,t.preserveConsecutiveUppercase)),e=e.replace(ree,""),e=t.preserveConsecutiveUppercase?iee(e,r):r(e),t.pascalCase&&(e=n(e.charAt(0))+e.slice(1)),see(e,n))}var jC=St(gR(),1);function RC({onlyFirst:e=!1}={}){let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}var dee=RC();function BC(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(dee,"")}var yR=(e=0)=>t=>`\x1B[${t+e}m`,DR=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,vR=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,Ct={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],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],gray:[90,39],grey:[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],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},
|
|
503
|
+
`),r}}get size(){return Object.keys(this.all||{}).length}get(t){return rT(this.all,t)}set(t,r){let n=this.all;if(arguments.length===1)for(let i of Object.keys(t))Fw(n,i,t[i]);else Fw(n,t,r);this.all=n}has(t){return iT(this.all,t)}delete(t){let r=this.all;nT(r,t),this.all=r}clear(){this.all={}}get path(){return this._path}};var NR=St(Lw(),1),RR=St(Jl(),1);var yp=class extends Error{response;request;options;constructor(t,r,n){let i=t.status||t.status===0?t.status:"",s=t.statusText||"",o=`${i} ${s}`.trim(),a=o?`status code ${o}`:"an unknown error";super(`Request failed with ${a}: ${r.method} ${r.url}`),this.name="HTTPError",this.response=t,this.request=r,this.options=n}};var Zl=class extends Error{request;constructor(t){super(`Request timed out: ${t.method} ${t.url}`),this.name="TimeoutError",this.request=t}};var Ql=e=>e!==null&&typeof e=="object";var Dp=(...e)=>{for(let t of e)if((!Ql(t)||Array.isArray(t))&&t!==void 0)throw new TypeError("The `options` argument must be an object");return Bw({},...e)},Nw=(e={},t={})=>{let r=new globalThis.Headers(e),n=t instanceof globalThis.Headers,i=new globalThis.Headers(t);for(let[s,o]of i.entries())n&&o==="undefined"||o===void 0?r.delete(s):r.set(s,o);return r};function f0(e,t,r){return Object.hasOwn(t,r)&&t[r]===void 0?[]:Bw(e[r]??[],t[r]??[])}var Rw=(e={},t={})=>({beforeRequest:f0(e,t,"beforeRequest"),beforeRetry:f0(e,t,"beforeRetry"),afterResponse:f0(e,t,"afterResponse"),beforeError:f0(e,t,"beforeError")}),Bw=(...e)=>{let t={},r={},n={};for(let i of e)if(Array.isArray(i))Array.isArray(t)||(t=[]),t=[...t,...i];else if(Ql(i)){for(let[s,o]of Object.entries(i))Ql(o)&&s in t&&(o=Bw(t[s],o)),t={...t,[s]:o};Ql(i.hooks)&&(n=Rw(n,i.hooks),t.hooks=n),Ql(i.headers)&&(r=Nw(r,i.headers),t.headers=r)}return t};var _T=(()=>{let e=!1,t=!1,r=typeof globalThis.ReadableStream=="function",n=typeof globalThis.Request=="function";if(r&&n)try{t=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type")}catch(i){if(i instanceof Error&&i.message==="unsupported BodyInit type")return!1;throw i}return e&&!t})(),bT=typeof globalThis.AbortController=="function",OT=typeof globalThis.ReadableStream=="function",FT=typeof globalThis.FormData=="function",p0=["get","post","put","patch","head","delete"],rX=()=>{};rX();var AT={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*"},d0=2147483647,m0=Symbol("stop"),IT={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,prefixUrl:!0,retry:!0,timeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,fetch:!0},TT={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,dispatcher:!0,duplex:!0,priority:!0};var LT=e=>p0.includes(e)?e.toUpperCase():e,nX=["get","put","head","delete","options","trace"],iX=[408,413,429,500,502,503,504],sX=[413,429,503],PT={limit:2,methods:nX,statusCodes:iX,afterStatusCodes:sX,maxRetryAfter:Number.POSITIVE_INFINITY,backoffLimit:Number.POSITIVE_INFINITY,delay:e=>.3*2**(e-1)*1e3},NT=(e={})=>{if(typeof e=="number")return{...PT,limit:e};if(e.methods&&!Array.isArray(e.methods))throw new Error("retry.methods must be an array");if(e.statusCodes&&!Array.isArray(e.statusCodes))throw new Error("retry.statusCodes must be an array");return{...PT,...e}};async function kw(e,t,r,n){return new Promise((i,s)=>{let o=setTimeout(()=>{r&&r.abort(),s(new Zl(e))},n.timeout);n.fetch(e,t).then(i).catch(s).then(()=>{clearTimeout(o)})})}async function Mw(e,{signal:t}){return new Promise((r,n)=>{t&&(t.throwIfAborted(),t.addEventListener("abort",i,{once:!0}));function i(){clearTimeout(s),n(t.reason)}let s=setTimeout(()=>{t?.removeEventListener("abort",i),r()},e)})}var RT=(e,t)=>{let r={};for(let n in t)!(n in TT)&&!(n in IT)&&!(n in e)&&(r[n]=t[n]);return r};var vp=class e{static create(t,r){let n=new e(t,r),i=async()=>{if(typeof n._options.timeout=="number"&&n._options.timeout>d0)throw new RangeError(`The \`timeout\` option cannot be greater than ${d0}`);await Promise.resolve();let a=await n._fetch();for(let u of n._options.hooks.afterResponse){let l=await u(n.request,n._options,n._decorateResponse(a.clone()));l instanceof globalThis.Response&&(a=l)}if(n._decorateResponse(a),!a.ok&&n._options.throwHttpErrors){let u=new yp(a,n.request,n._options);for(let l of n._options.hooks.beforeError)u=await l(u);throw u}if(n._options.onDownloadProgress){if(typeof n._options.onDownloadProgress!="function")throw new TypeError("The `onDownloadProgress` option must be a function");if(!OT)throw new Error("Streams are not supported in your environment. `ReadableStream` is missing.");return n._stream(a.clone(),n._options.onDownloadProgress)}return a},o=n._options.retry.methods.includes(n.request.method.toLowerCase())?n._retry(i):i();for(let[a,u]of Object.entries(AT))o[a]=async()=>{n.request.headers.set("accept",n.request.headers.get("accept")||u);let c=(await o).clone();if(a==="json"){if(c.status===204||(await c.clone().arrayBuffer()).byteLength===0)return"";if(r.parseJson)return r.parseJson(await c.text())}return c[a]()};return o}request;abortController;_retryCount=0;_input;_options;constructor(t,r={}){if(this._input=t,this._options={...r,headers:Nw(this._input.headers,r.headers),hooks:Rw({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},r.hooks),method:LT(r.method??this._input.method),prefixUrl:String(r.prefixUrl||""),retry:NT(r.retry),throwHttpErrors:r.throwHttpErrors!==!1,timeout:r.timeout??1e4,fetch:r.fetch??globalThis.fetch.bind(globalThis)},typeof this._input!="string"&&!(this._input instanceof URL||this._input instanceof globalThis.Request))throw new TypeError("`input` must be a string, URL, or Request");if(this._options.prefixUrl&&typeof this._input=="string"){if(this._input.startsWith("/"))throw new Error("`input` must not begin with a slash when using `prefixUrl`");this._options.prefixUrl.endsWith("/")||(this._options.prefixUrl+="/"),this._input=this._options.prefixUrl+this._input}if(bT){this.abortController=new globalThis.AbortController;let n=this._options.signal??this._input.signal;n?.addEventListener("abort",()=>{this.abortController.abort(n.reason)}),this._options.signal=this.abortController.signal}if(_T&&(this._options.duplex="half"),this._options.json!==void 0&&(this._options.body=this._options.stringifyJson?.(this._options.json)??JSON.stringify(this._options.json),this._options.headers.set("content-type",this._options.headers.get("content-type")??"application/json")),this.request=new globalThis.Request(this._input,this._options),this._options.searchParams){let i="?"+(typeof this._options.searchParams=="string"?this._options.searchParams.replace(/^\?/,""):new URLSearchParams(this._options.searchParams).toString()),s=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,i);(FT&&this._options.body instanceof globalThis.FormData||this._options.body instanceof URLSearchParams)&&!(this._options.headers&&this._options.headers["content-type"])&&this.request.headers.delete("content-type"),this.request=new globalThis.Request(new globalThis.Request(s,{...this.request}),this._options)}}_calculateRetryDelay(t){if(this._retryCount++,this._retryCount>this._options.retry.limit||t instanceof Zl)throw t;if(t instanceof yp){if(!this._options.retry.statusCodes.includes(t.response.status))throw t;let n=t.response.headers.get("Retry-After")??t.response.headers.get("RateLimit-Reset")??t.response.headers.get("X-RateLimit-Reset")??t.response.headers.get("X-Rate-Limit-Reset");if(n&&this._options.retry.afterStatusCodes.includes(t.response.status)){let i=Number(n)*1e3;Number.isNaN(i)?i=Date.parse(n)-Date.now():i>=Date.parse("2024-01-01")&&(i-=Date.now());let s=this._options.retry.maxRetryAfter??i;return i<s?i:s}if(t.response.status===413)throw t}let r=this._options.retry.delay(this._retryCount);return Math.min(this._options.retry.backoffLimit,r)}_decorateResponse(t){return this._options.parseJson&&(t.json=async()=>this._options.parseJson(await t.text())),t}async _retry(t){try{return await t()}catch(r){let n=Math.min(this._calculateRetryDelay(r),d0);if(this._retryCount<1)throw r;await Mw(n,{signal:this._options.signal});for(let i of this._options.hooks.beforeRetry)if(await i({request:this.request,options:this._options,error:r,retryCount:this._retryCount})===m0)return;return this._retry(t)}}async _fetch(){for(let n of this._options.hooks.beforeRequest){let i=await n(this.request,this._options);if(i instanceof Request){this.request=i;break}if(i instanceof Response)return i}let t=RT(this.request,this._options),r=this.request;return this.request=r.clone(),this._options.timeout===!1?this._options.fetch(r,t):kw(r,t,this.abortController,this._options)}_stream(t,r){let n=Number(t.headers.get("content-length"))||0,i=0;return t.status===204?(r&&r({percent:1,totalBytes:n,transferredBytes:i},new Uint8Array),new globalThis.Response(null,{status:t.status,statusText:t.statusText,headers:t.headers})):new globalThis.Response(new globalThis.ReadableStream({async start(s){let o=t.body.getReader();r&&r({percent:0,transferredBytes:0,totalBytes:n},new Uint8Array);async function a(){let{done:u,value:l}=await o.read();if(u){s.close();return}if(r){i+=l.byteLength;let c=n===0?0:i/n;r({percent:c,transferredBytes:i,totalBytes:n},l)}s.enqueue(l),await a()}await a()}}),{status:t.status,statusText:t.statusText,headers:t.headers})}};var jw=e=>{let t=(r,n)=>vp.create(r,Dp(e,n));for(let r of p0)t[r]=(n,i)=>vp.create(n,Dp(e,i,{method:r}));return t.create=r=>jw(Dp(r)),t.extend=r=>(typeof r=="function"&&(r=r(e??{})),jw(Dp(e,r))),t.stop=m0,t},oX=jw(),BT=oX;var oP=St(sP(),1);function Ww(e){let t=(0,oP.default)("npm",{registry:"https://registry.npmjs.org/"}),r=t[`${e}:registry`]||t.config_registry||t.registry;return r.slice(-1)==="/"?r:`${r}/`}var IN=St(nL(),1),TN=St(AN(),1),DC=class extends Error{constructor(t){super(`Package \`${t}\` could not be found`),this.name="PackageNotFoundError"}},vC=class extends Error{constructor(t,r){super(`Version \`${r}\` for package \`${t}\` could not be found`),this.name="VersionNotFoundError"}};async function wC(e,t={}){let{version:r="latest"}=t,{omitDeprecated:n=!0}=t,i=e.split("/")[0],s=t.registryUrl??Ww(i),o=new URL(encodeURIComponent(e).replace(/^%40/,"@"),s),a=(0,IN.default)(s.toString(),{recursive:!0}),u={accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"};t.fullMetadata&&delete u.accept,a&&(u.authorization=`${a.type} ${a.token}`);let l;try{l=await BT(o,{headers:u,keepalive:!0}).json()}catch(f){throw f?.response?.status===404?new DC(e):f}if(t.allVersions)return l;let c=new vC(e,r);if(l["dist-tags"][r]){let{time:f}=l;l=l.versions[l["dist-tags"][r]],l.time=f}else if(r){let f=!!l.versions[r];if(n&&!f)for(let[d,m]of Object.entries(l.versions))m.deprecated&&delete l.versions[d];if(!f){let d=Object.keys(l.versions);if(r=TN.default.maxSatisfying(d,r),!r)throw c}let{time:p}=l;if(l=l.versions[r],l.time=p,!l)throw c}return l}async function CC(e,t){let{version:r}=await wC(e.toLowerCase(),t);return r}import LN from"node:process";var PN=LN.env.npm_package_json,N0=LN.env.npm_config_user_agent,BQ=!!(N0&&N0.startsWith("npm")),kQ=!!(PN&&PN.endsWith("package.json")),MQ=BQ||kQ,jQ=!!(N0&&N0.startsWith("yarn")),NN=MQ||jQ;import qQ from"node:fs";import zQ from"node:path";import{fileURLToPath as HQ}from"node:url";var UN=St(jN(),1);import qt from"node:process";import zt from"node:path";import xC from"node:os";import B0 from"node:fs";var Ip=qt.platform==="win32",VN=e=>{try{return UN.default.parse(B0.readFileSync(e,"utf8")).prefix}catch{}},VQ=()=>Object.keys(qt.env).reduce((e,t)=>/^npm_config_prefix$/i.test(t)?qt.env[t]:e,void 0),UQ=()=>{if(Ip&&qt.env.APPDATA)return zt.join(qt.env.APPDATA,"/npm/etc/npmrc");if(qt.execPath.includes("/Cellar/node")){let e=qt.execPath.slice(0,qt.execPath.indexOf("/Cellar/node"));return zt.join(e,"/lib/node_modules/npm/npmrc")}if(qt.execPath.endsWith("/bin/node")){let e=zt.dirname(zt.dirname(qt.execPath));return zt.join(e,"/etc/npmrc")}},$Q=()=>{if(Ip){let{APPDATA:e}=qt.env;return e?zt.join(e,"npm"):zt.dirname(qt.execPath)}return zt.dirname(zt.dirname(qt.execPath))},WQ=()=>{let e=VQ();if(e)return e;let t=VN(zt.join(xC.homedir(),".npmrc"));if(t)return t;if(qt.env.PREFIX)return qt.env.PREFIX;let r=VN(UQ());return r||$Q()},Ap=zt.resolve(WQ()),$N=()=>{if(Ip&&qt.env.LOCALAPPDATA){let e=zt.join(qt.env.LOCALAPPDATA,"Yarn");if(B0.existsSync(e))return e}return!1},GQ=()=>{if(qt.env.PREFIX)return qt.env.PREFIX;let e=$N();if(e)return e;let t=zt.join(xC.homedir(),".config/yarn");if(B0.existsSync(t))return t;let r=zt.join(xC.homedir(),".yarn-config");return B0.existsSync(r)?r:Ap},Ki={};Ki.npm={};Ki.npm.prefix=Ap;Ki.npm.packages=zt.join(Ap,Ip?"node_modules":"lib/node_modules");Ki.npm.binaries=Ip?Ap:zt.join(Ap,"bin");var WN=zt.resolve(GQ());Ki.yarn={};Ki.yarn.prefix=WN;Ki.yarn.packages=zt.join(WN,$N()?"Data/global/node_modules":"global/node_modules");Ki.yarn.binaries=zt.join(Ki.yarn.packages,".bin");var _C=Ki;import bC from"node:path";function k0(e,t){let r=bC.relative(t,e);return!!(r&&r!==".."&&!r.startsWith(`..${bC.sep}`)&&r!==bC.resolve(e))}var GN=zQ.dirname(HQ(import.meta.url)),YQ=(()=>{try{return k0(GN,_C.yarn.packages)||k0(GN,qQ.realpathSync(_C.npm.packages))}catch{return!1}})(),qN=YQ;import $0 from"node:process";function OC({onlyFirst:e=!1}={}){let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}var KQ=OC();function FC(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(KQ,"")}function zN(e){return e===161||e===164||e===167||e===168||e===170||e===173||e===174||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||e===198||e===208||e===215||e===216||e>=222&&e<=225||e===230||e>=232&&e<=234||e===236||e===237||e===240||e===242||e===243||e>=247&&e<=250||e===252||e===254||e===257||e===273||e===275||e===283||e===294||e===295||e===299||e>=305&&e<=307||e===312||e>=319&&e<=322||e===324||e>=328&&e<=331||e===333||e===338||e===339||e===358||e===359||e===363||e===462||e===464||e===466||e===468||e===470||e===472||e===474||e===476||e===593||e===609||e===708||e===711||e>=713&&e<=715||e===717||e===720||e>=728&&e<=731||e===733||e===735||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||e===1025||e>=1040&&e<=1103||e===1105||e===8208||e>=8211&&e<=8214||e===8216||e===8217||e===8220||e===8221||e>=8224&&e<=8226||e>=8228&&e<=8231||e===8240||e===8242||e===8243||e===8245||e===8251||e===8254||e===8308||e===8319||e>=8321&&e<=8324||e===8364||e===8451||e===8453||e===8457||e===8467||e===8470||e===8481||e===8482||e===8486||e===8491||e===8531||e===8532||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||e===8585||e>=8592&&e<=8601||e===8632||e===8633||e===8658||e===8660||e===8679||e===8704||e===8706||e===8707||e===8711||e===8712||e===8715||e===8719||e===8721||e===8725||e===8730||e>=8733&&e<=8736||e===8739||e===8741||e>=8743&&e<=8748||e===8750||e>=8756&&e<=8759||e===8764||e===8765||e===8776||e===8780||e===8786||e===8800||e===8801||e>=8804&&e<=8807||e===8810||e===8811||e===8814||e===8815||e===8834||e===8835||e===8838||e===8839||e===8853||e===8857||e===8869||e===8895||e===8978||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||e===9632||e===9633||e>=9635&&e<=9641||e===9650||e===9651||e===9654||e===9655||e===9660||e===9661||e===9664||e===9665||e>=9670&&e<=9672||e===9675||e>=9678&&e<=9681||e>=9698&&e<=9701||e===9711||e===9733||e===9734||e===9737||e===9742||e===9743||e===9756||e===9758||e===9792||e===9794||e===9824||e===9825||e>=9827&&e<=9829||e>=9831&&e<=9834||e===9836||e===9837||e===9839||e===9886||e===9887||e===9919||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||e===9955||e===9960||e===9961||e>=9963&&e<=9969||e===9972||e>=9974&&e<=9977||e===9979||e===9980||e===9982||e===9983||e===10045||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||e===65533||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||e===127375||e===127376||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109}function HN(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function YN(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9800&&e<=9811||e===9855||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}function XQ(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function KN(e,{ambiguousAsWide:t=!1}={}){return XQ(e),HN(e)||YN(e)||t&&zN(e)?2:1}var ZN=St(JN(),1),JQ=new Intl.Segmenter,ZQ=/^\p{Default_Ignorable_Code_Point}$/u;function Mr(e,t={}){if(typeof e!="string"||e.length===0)return 0;let{ambiguousIsNarrow:r=!0,countAnsiEscapeCodes:n=!1}=t;if(n||(e=FC(e)),e.length===0)return 0;let i=0,s={ambiguousAsWide:!r};for(let{segment:o}of JQ.segment(e)){let a=o.codePointAt(0);if(!(a<=31||a>=127&&a<=159)&&!(a>=8203&&a<=8207||a===65279)&&!(a>=768&&a<=879||a>=6832&&a<=6911||a>=7616&&a<=7679||a>=8400&&a<=8447||a>=65056&&a<=65071)&&!(a>=55296&&a<=57343)&&!(a>=65024&&a<=65039)&&!ZQ.test(o)){if((0,ZN.default)().test(o)){i+=2;continue}i+=KN(a,s)}}return i}function M0(e){let t=0;for(let r of e.split(`
|
|
504
|
+
`))t=Math.max(t,Mr(r));return t}var FR=St(IC(),1);var eee=/[\p{Lu}]/u,tee=/[\p{Ll}]/u,tR=/^[\p{Lu}](?![\p{Lu}])/gu,iR=/([\p{Alpha}\p{N}_]|$)/u,TC=/[_.\- ]+/,ree=new RegExp("^"+TC.source),rR=new RegExp(TC.source+iR.source,"gu"),nR=new RegExp("\\d+"+iR.source,"gu"),nee=(e,t,r,n)=>{let i=!1,s=!1,o=!1,a=!1;for(let u=0;u<e.length;u++){let l=e[u];a=u>2?e[u-3]==="-":!0,i&&eee.test(l)?(e=e.slice(0,u)+"-"+e.slice(u),i=!1,o=s,s=!0,u++):s&&o&&tee.test(l)&&(!a||n)?(e=e.slice(0,u-1)+"-"+e.slice(u-1),o=s,s=!1,i=!0):(i=t(l)===l&&r(l)!==l,o=s,s=r(l)===l&&t(l)!==l)}return e},iee=(e,t)=>(tR.lastIndex=0,e.replaceAll(tR,r=>t(r))),see=(e,t)=>(rR.lastIndex=0,nR.lastIndex=0,e.replaceAll(nR,(r,n,i)=>["_","-"].includes(e.charAt(i+r.length))?r:t(r)).replaceAll(rR,(r,n)=>t(n)));function PC(e,t){if(!(typeof e=="string"||Array.isArray(e)))throw new TypeError("Expected the input to be `string | string[]`");if(t={pascalCase:!1,preserveConsecutiveUppercase:!1,...t},Array.isArray(e)?e=e.map(s=>s.trim()).filter(s=>s.length).join("-"):e=e.trim(),e.length===0)return"";let r=t.locale===!1?s=>s.toLowerCase():s=>s.toLocaleLowerCase(t.locale),n=t.locale===!1?s=>s.toUpperCase():s=>s.toLocaleUpperCase(t.locale);return e.length===1?TC.test(e)?"":t.pascalCase?n(e):r(e):(e!==r(e)&&(e=nee(e,r,n,t.preserveConsecutiveUppercase)),e=e.replace(ree,""),e=t.preserveConsecutiveUppercase?iee(e,r):r(e),t.pascalCase&&(e=n(e.charAt(0))+e.slice(1)),see(e,n))}var jC=St(gR(),1);function RC({onlyFirst:e=!1}={}){let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}var dee=RC();function BC(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(dee,"")}var yR=(e=0)=>t=>`\x1B[${t+e}m`,DR=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,vR=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,Ct={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],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],gray:[90,39],grey:[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],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},eCe=Object.keys(Ct.modifier),mee=Object.keys(Ct.color),hee=Object.keys(Ct.bgColor),tCe=[...mee,...hee];function gee(){let e=new Map;for(let[t,r]of Object.entries(Ct)){for(let[n,i]of Object.entries(r))Ct[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=Ct[n],e.set(i[0],i[1]);Object.defineProperty(Ct,t,{value:r,enumerable:!1})}return Object.defineProperty(Ct,"codes",{value:e,enumerable:!1}),Ct.color.close="\x1B[39m",Ct.bgColor.close="\x1B[49m",Ct.color.ansi=yR(),Ct.color.ansi256=DR(),Ct.color.ansi16m=vR(),Ct.bgColor.ansi=yR(10),Ct.bgColor.ansi256=DR(10),Ct.bgColor.ansi16m=vR(10),Object.defineProperties(Ct,{rgbToAnsi256:{value:(t,r,n)=>t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value:t=>{let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(s=>s+s).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:t=>Ct.rgbToAnsi256(...Ct.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value:t=>{if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let a=t%36;r=Math.floor(t/36)/5,n=Math.floor(a/6)/5,i=a%6/5}let s=Math.max(r,n,i)*2;if(s===0)return 30;let o=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return s===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(t,r,n)=>Ct.ansi256ToAnsi(Ct.rgbToAnsi256(t,r,n)),enumerable:!1},hexToAnsi:{value:t=>Ct.ansi256ToAnsi(Ct.hexToAnsi256(t)),enumerable:!1}}),Ct}var yee=gee(),wR=yee;var V0=new Set(["\x1B","\x9B"]),Dee=39,MC="\x07",SR="[",vee="]",xR="m",j0=`${vee}8;;`,CR=e=>`${V0.values().next().value}${SR}${e}${xR}`,ER=e=>`${V0.values().next().value}${j0}${e}${MC}`,wee=e=>e.split(" ").map(t=>Mr(t)),kC=(e,t,r)=>{let n=[...t],i=!1,s=!1,o=Mr(BC(e.at(-1)));for(let[a,u]of n.entries()){let l=Mr(u);if(o+l<=r?e[e.length-1]+=u:(e.push(u),o=0),V0.has(u)&&(i=!0,s=n.slice(a+1,a+1+j0.length).join("")===j0),i){s?u===MC&&(i=!1,s=!1):u===xR&&(i=!1);continue}o+=l,o===r&&a<n.length-1&&(e.push(""),o=0)}!o&&e.at(-1).length>0&&e.length>1&&(e[e.length-2]+=e.pop())},Cee=e=>{let t=e.split(" "),r=t.length;for(;r>0&&!(Mr(t[r-1])>0);)r--;return r===t.length?e:t.slice(0,r).join(" ")+t.slice(r).join("")},Eee=(e,t,r={})=>{if(r.trim!==!1&&e.trim()==="")return"";let n="",i,s,o=wee(e),a=[""];for(let[f,p]of e.split(" ").entries()){r.trim!==!1&&(a[a.length-1]=a.at(-1).trimStart());let d=Mr(a.at(-1));if(f!==0&&(d>=t&&(r.wordWrap===!1||r.trim===!1)&&(a.push(""),d=0),(d>0||r.trim===!1)&&(a[a.length-1]+=" ",d++)),r.hard&&o[f]>t){let m=t-d,y=1+Math.floor((o[f]-m-1)/t);Math.floor((o[f]-1)/t)<y&&a.push(""),kC(a,p,t);continue}if(d+o[f]>t&&d>0&&o[f]>0){if(r.wordWrap===!1&&d<t){kC(a,p,t);continue}a.push("")}if(d+o[f]>t&&r.wordWrap===!1){kC(a,p,t);continue}a[a.length-1]+=p}r.trim!==!1&&(a=a.map(f=>Cee(f)));let u=a.join(`
|
|
505
505
|
`),l=[...u],c=0;for(let[f,p]of l.entries()){if(n+=p,V0.has(p)){let{groups:m}=new RegExp(`(?:\\${SR}(?<code>\\d+)m|\\${j0}(?<uri>.*)${MC})`).exec(u.slice(c))||{groups:{}};if(m.code!==void 0){let y=Number.parseFloat(m.code);i=y===Dee?void 0:y}else m.uri!==void 0&&(s=m.uri.length===0?void 0:m.uri)}let d=wR.codes.get(Number(i));l[f+1]===`
|
|
506
506
|
`?(s&&(n+=ER("")),i&&d&&(n+=CR(d))):p===`
|
|
507
507
|
`&&(i&&d&&(n+=CR(i)),s&&(n+=ER(s))),c+=p.length}return n};function U0(e,t,r){return String(e).normalize().replaceAll(`\r
|
|
@@ -514,7 +514,7 @@ ${sT}
|
|
|
514
514
|
Try running with %s or get access `,Je.cyan("sudo"))+`
|
|
515
515
|
to the local update config store via
|
|
516
516
|
`+Je.cyan(WC(" sudo chown -R $USER:$(id -gn $USER) %s ",Hl));Tu.on("exit",()=>{console.error(W0(r,{textAlignment:"center"}))})}}check(){!this.config||this.config.get("optOut")||this.#r||(this.update=this.config.get("update"),this.update&&(this.update.current=this.#t,this.config.delete("update")),!(Date.now()-this.config.get("lastUpdateCheck")<this.#e)&&Lee(Tu.execPath,[LR.join(Ree,"check.js"),JSON.stringify(this.#n)],{detached:!0,stdio:"ignore"}).unref())}async fetchInfo(){let{distTag:t}=this.#n,r=await CC(this._packageName,{version:t});return{latest:r,current:this.#t,type:(0,NR.default)(this.#t,r)??t,name:this._packageName}}notify(t){let r=!this._shouldNotifyInNpmScript&&NN;if(!Tu.stdout.isTTY||r||!this.update||!(0,RR.default)(this.update.latest,this.update.current))return this;t={isGlobal:qN,...t};let n=t.isGlobal?`npm i -g ${this._packageName}`:`npm i ${this._packageName}`,i="Update available "+Je.dim("{currentVersion}")+Je.reset(" \u2192 ")+Je.green("{latestVersion}")+`
|
|
517
|
-
Run `+Je.cyan("{updateCommand}")+" to update",s=t.message||i;t.boxenOptions??={padding:1,margin:1,textAlignment:"center",borderColor:"yellow",borderStyle:"round"};let o=W0($C(s,{packageName:this._packageName,currentVersion:this.update.current,latestVersion:this.update.latest,updateCommand:n}),t.boxenOptions);return t.defer===!1?console.error(o):Tu.on("exit",()=>{console.error(o)}),this}};function GC(e){let t=new Np(e);return t.check(),t}var BR=async({debug:e,flavor:t})=>{let r=new Lh,n=new Vh(r),i=await n.getFlavor();if(e){let D;t?D=`Using flavor: ${t} due to flag passed to command`:i?D=`Using flavor: ${i} stored with token`:D="No flavor set by flags or found stored with token, using the default: Prod",console.log(D)}let s=x3({fallback:t??i??"prod"}),o=new Qm(s),a=new eh(ZF),u=new $h(n,s),l=new Zm(u,s,e),c=new Wh(s),f=new Xh(s),p=new kh(e),d=new Mh(n,s,e),m=GC({pkg:gl}),y=new Zh(m,e);return{appService:l,clipboardService:a,navigationService:p,authService:o,tokenService:u,updateNotificationService:y,urlService:c,envService:f,previewService:d}};import yi from"react";import{Text as N5,Newline as dte}from"ink";var
|
|
517
|
+
Run `+Je.cyan("{updateCommand}")+" to update",s=t.message||i;t.boxenOptions??={padding:1,margin:1,textAlignment:"center",borderColor:"yellow",borderStyle:"round"};let o=W0($C(s,{packageName:this._packageName,currentVersion:this.update.current,latestVersion:this.update.latest,updateCommand:n}),t.boxenOptions);return t.defer===!1?console.error(o):Tu.on("exit",()=>{console.error(o)}),this}};function GC(e){let t=new Np(e);return t.check(),t}var BR=async({debug:e,flavor:t})=>{let r=new Lh,n=new Vh(r),i=await n.getFlavor();if(e){let D;t?D=`Using flavor: ${t} due to flag passed to command`:i?D=`Using flavor: ${i} stored with token`:D="No flavor set by flags or found stored with token, using the default: Prod",console.log(D)}let s=x3({fallback:t??i??"prod"}),o=new Qm(s),a=new eh(ZF),u=new $h(n,s),l=new Zm(u,s,e),c=new Wh(s),f=new Xh(s),p=new kh(e),d=new Mh(n,s,e),m=GC({pkg:gl}),y=new Zh(m,e);return{appService:l,clipboardService:a,navigationService:p,authService:o,tokenService:u,updateNotificationService:y,urlService:c,envService:f,previewService:d}};import yi from"react";import{Text as N5,Newline as dte}from"ink";var Xi=St(GR(),1),uE=St(T5(),1);import fte from"react";import{Transform as pte}from"ink";function oE({onlyFirst:e=!1}={}){let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}var cte=oE();function aE(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(cte,"")}var P5=e=>{if(e.name&&e.colors)throw new Error("The `name` and `colors` props are mutually exclusive");let t;if(e.name)t=uE.default[e.name];else if(e.colors)t=(0,uE.default)(e.colors);else throw new Error("Either `name` or `colors` prop must be provided");let r=n=>t.multiline(aE(n));return fte.createElement(pte,{transform:r},e.children)};P5.propTypes={children:Xi.default.oneOfType([Xi.default.arrayOf(Xi.default.node),Xi.default.node]).isRequired,name:Xi.default.oneOf(["cristal","teen","mind","morning","vice","passion","fruit","instagram","atlas","retro","summer","pastel","rainbow"]),colors:Xi.default.arrayOf(Xi.default.oneOfType([Xi.default.string,Xi.default.object]))};var L5=P5;var mte=`
|
|
518
518
|
\u2584\u259F\u2580\u2580\u2580\u2584
|
|
519
519
|
|
|
520
520
|
\u2588\u259B \u259D\u2598 \u2584\u2584\u2596\u2584 \u2584 \u2584\u2584 \u2584 \u2597\u2580\u2596 \u2584\u2584\u2596\u2584
|
|
@@ -533,9 +533,9 @@ Run `+Je.cyan("{updateCommand}")+" to update",s=t.message||i;t.boxenOptions??={p
|
|
|
533
533
|
|
|
534
534
|
\u2580\u2580\u2580\u2580\u2580\u2580 \u2580\u2580\u2580\u2580\u2580\u2580
|
|
535
535
|
`,R5=({children:e,alt:t})=>{let r=e.split(`
|
|
536
|
-
`).filter(n=>n.length>0);return yi.createElement(Nt,{alt:t},r.map((n,i)=>yi.createElement(N5,{key:i},n,i===r.length-1?"":yi.createElement(dte,null))))},lE=()=>yi.createElement(L5,{colors:z_},yi.createElement(R5,{alt:"Canva"},mte)),B5=()=>yi.createElement(yi.Fragment,null,yi.createElement(lE,null),yi.createElement(gte,null)),gte=()=>yi.createElement(N5,{color:BD},yi.createElement(R5,{alt:"\u53EF\u753B"},hte));import jr,{useEffect as j5,useState as cE}from"react";import{Box as fE,Text as V5}from"ink";import fc from"react";import{Box as k5,Text as M5}from"ink";var Xn=e=>fc.createElement(k5,{flexGrow:1,flexDirection:"column",margin:1},fc.createElement(M5,{bold:!0},fc.createElement(Nt,{color:"greenBright"},"? "),e.question,e.note&&fc.createElement(M5,{color:"grey"}," (",e.note,")")),fc.createElement(k5,{flexDirection:"row"},e.children),e.error&&fc.createElement(kn,null,e.error));var yte=()=>jr.createElement(fE,{flexDirection:"column",paddingX:2},jr.createElement(V5,null,"You need to be logged in to run this command. Run"," ",jr.createElement(Rt,null,"canva login")," before running this command again.")),U5=({isLoginRequired:e=!0,children:t,checkLoginStatus:r,login:n,onLoginDecisionChange:i,noLabel:s})=>{let[o,a]=cE(!0),[u,l]=cE(!1),[c,f]=cE();j5(()=>{r().then(d=>{l(d),a(!1)})},[]);let p=d=>{i?.(d),f(d?"agreed":"disagreed")};return o?jr.createElement(fE,{marginX:2,marginY:1},jr.createElement(Bn,{type:"bouncingBall",label:"Checking login status..."})):u?jr.createElement(jr.Fragment,null,t):jr.createElement(fE,{flexDirection:"column",paddingX:2},jr.createElement(Dte,{login:n,loginRequired:e,loginChoice:c,onDecisionChange:p,noLabel:s},t))},Dte=({login:e,loginRequired:t,loginChoice:r,onDecisionChange:n,noLabel:i="No",children:s})=>{switch(r){case void 0:return jr.createElement(Xn,{question:"You're not logged in. Do you want to log in now?"},jr.createElement(oo,{default:"yes",noLabel:i,onChange:n}));case"agreed":return j5(()=>{e?.()},[]),jr.createElement(V5,null,"Initiating login...");case"disagreed":return t?jr.createElement(yte,null):jr.createElement(jr.Fragment,null,s);default:throw new io(r)}};var J0=async(e,t,r)=>{let n={lite:r.lite,dryRun:r.dryRun,debug:r.debug,silenceUpdates:r.silenceUpdates};return t.parse(e,n)};var Kr=async({Command:e,login:t,cli:r,args:n,shouldPromptUpdate:i,flavor:s})=>{let o=await BR({debug:n.debug,flavor:s}),a=()=>J0("login",r,n),u=t?.enabled?({children:l})=>jp.createElement(U5,{checkLoginStatus:o.tokenService.isLoggedIn,login:a,isLoginRequired:t.required,onLoginDecisionChange:t.onLoginDecisionChange,noLabel:t.noLabel},l):({children:l})=>l;vte(jp.createElement(st.Provider,{value:{lite:n.lite}},jp.createElement(rO,{shouldPromptUpdate:i,pkg:gl,getUpdateInfo:o.updateNotificationService.getUpdateInfo,Logo:o.envService.isChina?B5:lE},jp.createElement(u,null,jp.createElement(e,{services:o})))))};var ZEe=new RegExp(/\x1b\[3[0-7]m/),QEe=new RegExp(/\x1b\[9[0-7]m/);var $5=e=>e.charAt(0).toUpperCase()+e.slice(1),Ho=()=>{};var W5=e=>e.command(["welcome","$0"],"Welcome page",Ho,t=>{Kr({Command:G_,cli:e,args:t})});import Ste from"react";import Vp from"react";import{Box as wte,Text as G5}from"ink";var Z0=e=>{let{lite:t}=Vp.useContext(st);return Vp.createElement(wte,{borderStyle:t?void 0:"double",borderColor:t?void 0:"cyanBright",display:"flex",justifyContent:"center",alignItems:"center",width:"98%",marginTop:1,marginX:2,paddingX:1},Vp.createElement(G5,{bold:!0},Vp.createElement(Nt,null,"\u{1F4A1}")," Tip:"," "),Vp.createElement(G5,null," "),e.children)};import{Text as Jn}from"ink";import nt from"react";function Cte(e,t){if(e.length===0)throw new Error("Unable to select random element from an empty array.");if(t&&t<e.length||t===0)return e[t];let r=Math.floor(Math.random()*e.length);return e[r]}var Ete=[nt.createElement(Jn,{key:"ui-kit"},"Use the ",nt.createElement(Dt,{text:"@canva/app-ui-kit",url:"https://www.npmjs.com/package/@canva/app-ui-kit"})," ","library to create apps that look and feel like the rest of Canva!"),nt.createElement(Jn,{key:"dam"},"Building a Digital Asset Management app? checkout the"," ",nt.createElement(Rt,{italic:!0},"SearchableListView")," component from"," ",nt.createElement(Dt,{text:"@canva/app-components",url:"https://www.npmjs.com/package/@canva/app-components"}),"."),nt.createElement(Jn,{key:"hmr"},"Enable"," ",nt.createElement(Dt,{text:"Hot Module Replacement (HMR)",url:"https://www.canva.dev/docs/apps/previewing-apps/#automatic"})," ","to automatically reload your app inside the Canva editor whenever your source code changes!"),nt.createElement(Jn,{key:"storybook"},"Examples of all available components from"," ",nt.createElement(Dt,{text:"@canva/app-ui-kit",url:"https://www.npmjs.com/package/@canva/app-ui-kit"})," are available in the"," ",nt.createElement(Dt,{text:"App UI Kit Storybook",url:"https://www.canva.dev/docs/apps/app-ui-kit/storybook"}),"."),nt.createElement(Jn,{key:"discourse"},"Sign up to our ",nt.createElement(Dt,{text:"Community forum",url:"https://community.canva.dev"})," to be involved in our community and network with fellow App Builders!"),nt.createElement(Jn,{key:"design-guidelines"},"Checkout our ",nt.createElement(Dt,{text:"Design Guidelines",url:"https://www.canva.dev/docs/apps/design-guidelines/"})," ","to ensure your app complies, and help you speed through our app review process!"),nt.createElement(Jn,{key:"starter-kit"},"Explore the various example apps we have in our"," ",nt.createElement(Dt,{text:"Apps SDK Starter Kit",url:"https://github.com/canva-sdks/canva-apps-sdk-starter-kit/tree/main"})," by running the command ",nt.createElement(Rt,null,"npm start examples"),"."),nt.createElement(Jn,{key:"mobile"},"To test your app locally on a mobile device, you need to build your app and upload it as a Javascript bundle in the developer portal. The local development URL won't work when testing on mobile."),nt.createElement(Jn,{key:"submit"},"Once you're ready to submit your app, run the"," ",nt.createElement(Rt,null,"npm run build")," command, to generate a Javascript bundle to upload via the"," ",nt.createElement(Dt,{text:"Developer Portal",url:Dm({flavor:"prod"})}),"."),nt.createElement(Jn,{key:"getting-featured"},"Want to get featured on the apps marketplace? Checkout this article on"," ",nt.createElement(Dt,{text:"how to get featured",url:"https://www.canva.dev/docs/apps/getting-featured/"}),"."),nt.createElement(Jn,{key:"deep-linking"},"Did you know you can create URLs that link users directly to the Canva editor with your app? To find our more, checkout this article on"," ",nt.createElement(Dt,{text:"deep linking",url:"https://www.canva.dev/docs/apps/deep-linking/"}),"."),nt.createElement(Jn,{key:"docs"},"View our Developer Documentation"," ",nt.createElement(Dt,{url:"https://canva.dev",text:"Developer Documentation"})," to learn more about our Canva Developers platform.")],Q0=e=>Cte(Ete,e);var q5=e=>e.command(["tip","tips"],"Get a random tip or trick",Ho,t=>{Kr({Command:()=>Ste.createElement(Z0,null,Q0()),cli:e,args:t})});import zie from"react";var dr=St(Qp(),1);var K4,X4,J4,Z4,Q4,eB,Yt,jE,VE,UE,$E,WE,GE;eB=[dr.observable],Q4=[dr.observable],Z4=[dr.observable],J4=[dr.observable],X4=[dr.observable],K4=[dr.observable];var xi=class{constructor(){ui(this,jE,lt(Yt,8,this,"")),lt(Yt,11,this);ui(this,VE,lt(Yt,12,this,null)),lt(Yt,15,this);ui(this,UE,lt(Yt,16,this,!1)),lt(Yt,19,this);ui(this,$E,lt(Yt,20,this,null)),lt(Yt,23,this);ui(this,WE,lt(Yt,24,this,null)),lt(Yt,27,this);ui(this,GE,lt(Yt,28,this,!0)),lt(Yt,31,this)}};Yt=il(null),jE=new WeakMap,VE=new WeakMap,UE=new WeakMap,$E=new WeakMap,WE=new WeakMap,GE=new WeakMap,yt(Yt,4,"codeInput",eB,xi,jE),yt(Yt,4,"codeVerifier",Q4,xi,VE),yt(Yt,4,"loginSuccessful",Z4,xi,UE),yt(Yt,4,"loginUrl",J4,xi,$E),yt(Yt,4,"error",X4,xi,WE),yt(Yt,4,"loading",K4,xi,GE),_a(Yt,xi);var tB,rB,nB,iB,sB,oB,aB,uB,lB,Si;lB=[dr.action],uB=[dr.action],aB=[dr.action],oB=[dr.action],sB=[dr.action],iB=[dr.action],nB=[dr.action],rB=[dr.action],tB=[dr.action];var Qr=class{constructor(t,r,n=fi){this.services=t;this.onLogin=r;this.delay=n;lt(Si,5,this)}async initLogin(t){if(this.setLoading(t,!0),await this.services.tokenService.isLoggedIn()){this.rerouteOnSuccess(t);return}this.setLoading(t,!1);let{url:n,codeVerifier:i}=this.services.authService.constructAuthUrl();this.setCodeVerifier(t,i),this.setLoginUrl(t,n),await this.delay(1500);let s=await this.services.navigationService.openUrl(n);s.success||this.setError(t,s.message)}setCodeInput(t,r){t.codeInput=r}async handleCodeInput(t){try{let r=t.codeInput.split("&")[0];if(!r){this.exitOnFailure(t,"Invalid input. Please paste the full code.");return}let[n,i]=r.split("=");if(!i||n!=="code"){this.exitOnFailure(t,"Invalid input. Please ensure the code includes the 'code=' prefix.");return}if(!t.codeVerifier){this.exitOnFailure(t,"Failed to generate code verifier.");return}let s=await this.services.tokenService.exchangeCodeForToken({authCode:i,codeVerifier:t.codeVerifier});s.success?this.rerouteOnSuccess(t):this.exitOnFailure(t,s.message)}catch(r){this.exitOnFailure(t,r.message)}}exitOnFailure(t,r){this.setError(t,r),this.delay().then(()=>process.exit(1))}setCodeVerifier(t,r){t.codeVerifier=r}setLoginSuccessful(t,r){t.loginSuccessful=r}setError(t,r){t.error=r}setLoginUrl(t,r){t.loginUrl=r}setLoading(t,r){t.loading=r}rerouteOnSuccess(t){this.setLoading(t,!1),this.setLoginSuccessful(t,!0),this.delay(1500).then(()=>this.onLogin())}};Si=il(null),yt(Si,1,"setCodeInput",lB,Qr),yt(Si,1,"handleCodeInput",uB,Qr),yt(Si,1,"exitOnFailure",aB,Qr),yt(Si,1,"setCodeVerifier",oB,Qr),yt(Si,1,"setLoginSuccessful",sB,Qr),yt(Si,1,"setError",iB,Qr),yt(Si,1,"setLoginUrl",nB,Qr),yt(Si,1,"setLoading",rB,Qr),yt(Si,1,"rerouteOnSuccess",tB,Qr),_a(Si,Qr);var f2=St(c2(),1);import ar from"react";import{Box as Kd,Text as Yd}from"ink";var dM=(0,f2.observer)(({store:e,presenter:t})=>(ar.useEffect(()=>{t.initLogin(e)},[]),e.loading?ar.createElement(Kd,{marginX:2,marginY:1},ar.createElement(Bn,{type:"bouncingBall",label:"Checking login status..."})):e.loginSuccessful?ar.createElement(qie,null):ar.createElement(Gie,{store:e,presenter:t}))),Gie=(0,f2.observer)(({store:e,presenter:t})=>ar.createElement(Kd,{flexDirection:"column",paddingX:2},ar.createElement(Yd,null,"Let's get you logged in to Canva CLI!"),!!e.loginUrl&&ar.createElement(Kd,null,ar.createElement(Yd,{color:"yellow"},"If a browser window didn't open, click"," ",ar.createElement(Dt,{text:"here",url:e.loginUrl,subtle:!0}))),ar.createElement(Kd,{marginY:1},ar.createElement(Yd,{bold:!0},"Confirmation code: "),ar.createElement(Yd,null," "),ar.createElement(Hb,{onChange:r=>t.setCodeInput(e,r),placeholder:"Paste the confirmation code from the web browser then press enter.",onSubmit:()=>t.handleCodeInput(e)})),e.error&&ar.createElement(kn,null,e.error))),qie=()=>ar.createElement(Kd,{flexDirection:"column",paddingX:2},ar.createElement(Yd,null,ar.createElement(Nt,null,"\u2705")," Successfully logged in!"));function Hie(e){return e.option("china",{type:"boolean",default:!1,describe:"Login to canva.cn, this will use canva.cn for all subsequent commands until you log out."}).alias("china","cn")}var mM=e=>e.command("login","Log in to the Canva CLI",Hie,t=>{let r=()=>{J0("welcome",e,t)};Kr({Command:i=>{let s=new xi,o=new Qr(i.services,r);return zie.createElement(dM,{store:s,presenter:o})},cli:e,args:t,flavor:t.china?"prod-cn":void 0})});import Re from"react";import{Box as Sa,Text as Ys,useInput as Yie}from"ink";var p2=7,hM=()=>Re.createElement(Ys,{color:"gray"},"(Use arrow keys, return/enter to select)"),Kie=({totalApps:e})=>e<=p2?null:Re.createElement(Ys,{color:"gray"},"Showing ",p2," of ",e," apps."),Xie=()=>(Re.useEffect(()=>{process.exit()},[]),Re.createElement(Re.Fragment,null,Re.createElement(Ys,null,"Looks like you don't have any apps."),Re.createElement(Ys,null,"Run ",Re.createElement(Rt,null,"canva apps create")," to create a new app!"))),Xd=({label:e,value:t})=>Re.createElement(Sa,null,Re.createElement(Ys,{bold:!0},e,": "),Re.createElement(Rt,{bold:!1},t)),gM=[{label:"View app in the Developer Portal",value:"open-in-developer-portal",action:({app:e,services:t})=>{let r=t.urlService.getDeveloperPortalUrl(e.id);return t.navigationService.openUrl(r)}},{label:"Copy App ID",value:"copy-app-id",action:({app:e,services:t})=>{try{return t.clipboardService.copy(e.id)}catch(r){return{success:!1,code:"CLIPBOARD_ERROR",message:`Unable to copy app ID: '${e.id}' to clipboard: ${r}`}}}},{label:"Copy App Origin",value:"copy-app-origin",action:({app:e,services:t})=>{let r=t.urlService.getAppOriginUrl(e.id);try{return t.clipboardService.copy(r)}catch(n){return{success:!1,code:"CLIPBOARD_ERROR",message:`Unable to copy app origin '${r}' to clipboard: ${n}`}}}},{label:"Return to app list",value:"return-to-app-list",action:()=>({success:!0,data:void 0})}],Jie=e=>e.toLowerCase()==="development"?"Draft":e.charAt(0).toUpperCase()+e.slice(1),Zie=({apps:e,services:t})=>{let[r,n]=Re.useState(),[i,s]=Re.useState();if(Yie(o=>{o==="q"&&process.exit()}),r){let o=so(e.find(a=>a.id===r));return Re.createElement(Sa,{flexDirection:"column"},Re.createElement(Xd,{label:"Name",value:o.name}),Re.createElement(Xd,{label:"Distribution",value:$5(o.distribution)}),Re.createElement(Xd,{label:"App ID",value:o.id}),Re.createElement(Xd,{label:"App version",value:o.version.toString()}),Re.createElement(Xd,{label:"App status",value:Jie(o.status)}),Re.createElement(Sa,{height:1}),Re.createElement(Ys,{bold:!0},"Select an action: ",Re.createElement(hM,null)),Re.createElement(ps,{options:gM,onChange:async a=>{let{action:u,value:l}=so(gM.find(c=>c.value===a));if(l==="return-to-app-list")n(void 0);else{let c=await u({app:o,services:t});c.success||s(c.message)}}}),i&&Re.createElement(Sa,{marginTop:1},Re.createElement(kn,null,i)))}return Re.createElement(Sa,{flexDirection:"column",margin:1},e.length===0?Re.createElement(Xie,null):Re.createElement(Re.Fragment,null,Re.createElement(Ys,{bold:!0},"Select an app: ",Re.createElement(hM,null)),Re.createElement(ps,{options:e.map(o=>({label:o.name,value:o.id})),visibleOptionCount:p2,onChange:n}),Re.createElement(Sa,{height:1}),Re.createElement(Kie,{totalApps:e.length}),Re.createElement(Ys,{color:"yellow"},'Press "q" to quit.')))},Qie=({code:e,message:t})=>(Re.useEffect(()=>{process.exit(1)},[]),Re.createElement(Ys,{color:"red"},`${e}: ${t}`)),yM=({services:e})=>{let[t,r]=Re.useState();return Re.useEffect(()=>{e.appService.listApps().then(r)},[]),t?Re.createElement(Sa,{marginX:2,marginY:1},t.success?Re.createElement(Zie,{apps:t.data,services:e}):Re.createElement(Qie,{code:t.code,message:t.message})):Re.createElement(Sa,{marginX:2,marginY:1},Re.createElement(Bn,{type:"bouncingBall",label:"Loading your apps..."}))};var DM=e=>e.command("list","List all apps",Ho,t=>{Kr({Command:yM,args:t,login:{enabled:!0,noLabel:"No (CLI will exit)"},cli:e})});import Fse from"react";var vM={name:"Generative AI",path:"gen_ai",key:"gen_ai",config:{}};var CM={name:"Hello world",path:"hello_world",key:"hello_world",config:{}};var EM={name:"Digital Asset Management",path:"dam",key:"dam",config:{}};var el=[CM,EM,vM];var SM=e=>{let t=el.find(r=>r.key===e);if(!t)throw new Error(`Couldn't find a template with key : ${e}`);return t};import Jt,{useEffect as nse,useState as ise}from"react";import{Text as Jd,Box as d2,useApp as sse}from"ink";import Gy from"react";import{Text as ese,Box as tse,Spacer as rse}from"ink";var xM=e=>{let{lite:t}=Gy.useContext(st);return Gy.createElement(tse,{borderStyle:t?void 0:"single",borderColor:t?void 0:vm,borderTop:!0,borderLeft:!1,borderRight:!1,borderBottom:!1,paddingY:0,paddingX:2},Gy.createElement(rse,null),Gy.createElement(ese,{color:t?void 0:"gray"},`Step ${e.step}/${e.totalSteps}: ${e.description}`))};var _M=St(c2(),1);var bM=(0,_M.observer)(e=>{let{store:t,onQuit:r,getCommandsToRun:n}=e,[i,s]=ise({project:e.project,template:e.template}),o=t.currentStep,a=o?.render,{exit:u}=sse(),l=c=>{s(f=>({...f,project:c}))};return nse(()=>{t.stepsComplete&&fi(1500).then(()=>{t.createdApp&&e.services.navigationService.openUrl(t.developerPortalAppUrl),u()})},[u,t.createdApp,t.stepsComplete]),Jt.createElement(Jt.Fragment,null,Jt.createElement(d2,null,a&&Jt.createElement(a,{...e,...i,store:t,onQuit:r,onStepComplete:()=>e.incrementStep(t),registerApp:e.registerApp,submitProjectConfig:l})),t.quit&&Jt.createElement(kn,null,"A step failed and we weren't able to create your app."),t.stepsComplete&&!t.quit&&Jt.createElement(d2,{justifyContent:"center",alignItems:"center",flexDirection:"column",marginY:1},Jt.createElement(Jd,{bold:!0},Jt.createElement(Nt,null,"\u{1F389}")," Your app"," ",i.project.name&&Jt.createElement(Rt,null,i.project.name)," ","was successfully created ",Jt.createElement(Nt,null,"\u{1F389}")),Jt.createElement(d2,{flexDirection:"column",marginY:1,alignItems:"center"},Jt.createElement(Jd,null,"You should now run the following commands:"),n(i.project).map((c,f)=>Jt.createElement(Jd,{key:f,color:"greenBright"},c))),Jt.createElement(Jd,null,"Then head over to our"," ",Jt.createElement(Dt,{url:t.developerPortalAppUrl,text:"Developer Portal"})," ","to ",t.createdApp?"edit":"create"," and preview your app."),Jt.createElement(Jd,null,"And remember our ",Jt.createElement(Dt,{url:"https://canva.dev",text:"Docs"})," are also always here to help!"),Jt.createElement(Z0,null,Q0())),!t.stepsComplete&&!t.quit&&Jt.createElement(xM,{step:t.currentStepIndex+1,totalSteps:t.totalSteps,description:o?.description||""}))});import zy from"react";import qy from"react";import{Box as ose,Text as ase}from"ink";var use=e=>e?"Yes":"No",ls=e=>{let t=typeof e.choice=="boolean"?use(e.choice):e.choice;return qy.createElement(ose,{flexGrow:1,flexDirection:"row"},qy.createElement(ase,{bold:!0},qy.createElement(Nt,{color:"greenBright"},"\u{1F449} "),e.question,":"," "),qy.createElement(Rt,{bold:!1},t))};var OM=["private","public"],lse=e=>e.charAt(0).toUpperCase()+e.slice(1),cse=({distribution:e,onChange:t})=>{let r=e!=null,n="Who is this app for?",i=[{label:"Public (Available to all Canva users. A reviewer from Canva must approve the app for release.)",value:"public"},{label:"Private (Only available to members of your team. Your team\u2019s owner or administrator must approve the app for release.)",value:"private"}];return r?zy.createElement(ls,{question:n,choice:lse(e||"")}):zy.createElement(Xn,{question:n},zy.createElement(ps,{options:i,onChange:t}))},FM={key:"distribution",needsInput:e=>e?.offline===!0?!1:e?.distribution==null,render:e=>zy.createElement(cse,{onChange:r=>{e.submitProjectConfig({...e.project,distribution:r})},distribution:e.project.distribution})};import{Text as RM,Box as Yy}from"ink";import Ks,{useEffect as BM,useState as Dse}from"react";import{Text as Hy,Box as fse}from"ink";import Zd,{useContext as pse}from"react";var dse="\u2588",mse="\u2591",AM=({color:e,backgroundColor:t,dimColor:r,inverse:n,percent:i,width:s=40})=>{let{lite:o}=pse(st);if(i>=1)return Zd.createElement(Hy,null,"Done!");let a=dse.repeat(Math.round(i*s)),u=mse.repeat(s-a.length),l=`${Math.round(i*100)}%`;return o?Zd.createElement(Hy,null,l):Zd.createElement(fse,null,Zd.createElement(Hy,{color:e,backgroundColor:t,dimColor:r,inverse:n},a,u),Zd.createElement(Hy,null,` ${l}`))};import hse from"node:fs";import*as IM from"node:path";import*as ef from"node:fs";var TM={type:"appCreation",start:"Creating app on Canva",failure:"Failed to create app on Canva",requiresLogin:!0,action:async(e,t)=>{let r=await t.appService.createApp(e);if(!r.success)throw new Error(`[${r.code}]: Unable to create app on Canva: '${r.message}'.`);return r.data},preventCleanupOnError:!1},PM={type:"postCreation",start:"Updating .env file",failure:"Failed to update .env file",requiresLogin:!0,action:async e=>{try{let t=IM.join(e.folderName,".env");if(!ef.existsSync(t))throw new Error(`.env file not found at '${t}'.`);let n=ef.readFileSync(t,"utf-8").split(`
|
|
536
|
+
`).filter(n=>n.length>0);return yi.createElement(Nt,{alt:t},r.map((n,i)=>yi.createElement(N5,{key:i},n,i===r.length-1?"":yi.createElement(dte,null))))},lE=()=>yi.createElement(L5,{colors:z_},yi.createElement(R5,{alt:"Canva"},mte)),B5=()=>yi.createElement(yi.Fragment,null,yi.createElement(lE,null),yi.createElement(gte,null)),gte=()=>yi.createElement(N5,{color:BD},yi.createElement(R5,{alt:"\u53EF\u753B"},hte));import jr,{useEffect as j5,useState as cE}from"react";import{Box as fE,Text as V5}from"ink";import fc from"react";import{Box as k5,Text as M5}from"ink";var Xn=e=>fc.createElement(k5,{flexGrow:1,flexDirection:"column",margin:1},fc.createElement(M5,{bold:!0},fc.createElement(Nt,{color:"greenBright"},"? "),e.question,e.note&&fc.createElement(M5,{color:"grey"}," (",e.note,")")),fc.createElement(k5,{flexDirection:"row"},e.children),e.error&&fc.createElement(kn,null,e.error));var yte=()=>jr.createElement(fE,{flexDirection:"column",paddingX:2},jr.createElement(V5,null,"You need to be logged in to run this command. Run"," ",jr.createElement(Rt,null,"canva login")," before running this command again.")),U5=({isLoginRequired:e=!0,children:t,checkLoginStatus:r,login:n,onLoginDecisionChange:i,noLabel:s})=>{let[o,a]=cE(!0),[u,l]=cE(!1),[c,f]=cE();j5(()=>{r().then(d=>{l(d),a(!1)})},[]);let p=d=>{i?.(d),f(d?"agreed":"disagreed")};return o?jr.createElement(fE,{marginX:2,marginY:1},jr.createElement(Bn,{type:"bouncingBall",label:"Checking login status..."})):u?jr.createElement(jr.Fragment,null,t):jr.createElement(fE,{flexDirection:"column",paddingX:2},jr.createElement(Dte,{login:n,loginRequired:e,loginChoice:c,onDecisionChange:p,noLabel:s},t))},Dte=({login:e,loginRequired:t,loginChoice:r,onDecisionChange:n,noLabel:i="No",children:s})=>{switch(r){case void 0:return jr.createElement(Xn,{question:"You're not logged in. Do you want to log in now?"},jr.createElement(oo,{default:"yes",noLabel:i,onChange:n}));case"agreed":return j5(()=>{e?.()},[]),jr.createElement(V5,null,"Initiating login...");case"disagreed":return t?jr.createElement(yte,null):jr.createElement(jr.Fragment,null,s);default:throw new io(r)}};var J0=async(e,t,r)=>{let n={lite:r.lite,dryRun:r.dryRun,debug:r.debug,silenceUpdates:r.silenceUpdates};return t.parse(e,n)};var Kr=async({Command:e,login:t,cli:r,args:n,shouldPromptUpdate:i,flavor:s})=>{let o=await BR({debug:n.debug,flavor:s}),a=()=>J0("login",r,n),u=t?.enabled?({children:l})=>jp.createElement(U5,{checkLoginStatus:o.tokenService.isLoggedIn,login:a,isLoginRequired:t.required,onLoginDecisionChange:t.onLoginDecisionChange,noLabel:t.noLabel},l):({children:l})=>l;vte(jp.createElement(st.Provider,{value:{lite:n.lite}},jp.createElement(rO,{shouldPromptUpdate:i,pkg:gl,getUpdateInfo:o.updateNotificationService.getUpdateInfo,Logo:o.envService.isChina?B5:lE},jp.createElement(u,null,jp.createElement(e,{services:o})))))};var JEe=new RegExp(/\x1b\[3[0-7]m/),ZEe=new RegExp(/\x1b\[9[0-7]m/);var $5=e=>e.charAt(0).toUpperCase()+e.slice(1),Ho=()=>{};var W5=e=>e.command(["welcome","$0"],"Welcome page",Ho,t=>{Kr({Command:G_,cli:e,args:t})});import Ste from"react";import Vp from"react";import{Box as wte,Text as G5}from"ink";var Z0=e=>{let{lite:t}=Vp.useContext(st);return Vp.createElement(wte,{borderStyle:t?void 0:"double",borderColor:t?void 0:"cyanBright",display:"flex",justifyContent:"center",alignItems:"center",width:"98%",marginTop:1,marginX:2,paddingX:1},Vp.createElement(G5,{bold:!0},Vp.createElement(Nt,null,"\u{1F4A1}")," Tip:"," "),Vp.createElement(G5,null," "),e.children)};import{Text as Jn}from"ink";import nt from"react";function Cte(e,t){if(e.length===0)throw new Error("Unable to select random element from an empty array.");if(t&&t<e.length||t===0)return e[t];let r=Math.floor(Math.random()*e.length);return e[r]}var Ete=[nt.createElement(Jn,{key:"ui-kit"},"Use the ",nt.createElement(Dt,{text:"@canva/app-ui-kit",url:"https://www.npmjs.com/package/@canva/app-ui-kit"})," ","library to create apps that look and feel like the rest of Canva!"),nt.createElement(Jn,{key:"dam"},"Building a Digital Asset Management app? checkout the"," ",nt.createElement(Rt,{italic:!0},"SearchableListView")," component from"," ",nt.createElement(Dt,{text:"@canva/app-components",url:"https://www.npmjs.com/package/@canva/app-components"}),"."),nt.createElement(Jn,{key:"hmr"},"Enable"," ",nt.createElement(Dt,{text:"Hot Module Replacement (HMR)",url:"https://www.canva.dev/docs/apps/previewing-apps/#automatic"})," ","to automatically reload your app inside the Canva editor whenever your source code changes!"),nt.createElement(Jn,{key:"storybook"},"Examples of all available components from"," ",nt.createElement(Dt,{text:"@canva/app-ui-kit",url:"https://www.npmjs.com/package/@canva/app-ui-kit"})," are available in the"," ",nt.createElement(Dt,{text:"App UI Kit Storybook",url:"https://www.canva.dev/docs/apps/app-ui-kit/storybook"}),"."),nt.createElement(Jn,{key:"discourse"},"Sign up to our ",nt.createElement(Dt,{text:"Community forum",url:"https://community.canva.dev"})," to be involved in our community and network with fellow App Builders!"),nt.createElement(Jn,{key:"design-guidelines"},"Checkout our ",nt.createElement(Dt,{text:"Design Guidelines",url:"https://www.canva.dev/docs/apps/design-guidelines/"})," ","to ensure your app complies, and help you speed through our app review process!"),nt.createElement(Jn,{key:"starter-kit"},"Explore the various example apps we have in our"," ",nt.createElement(Dt,{text:"Apps SDK Starter Kit",url:"https://github.com/canva-sdks/canva-apps-sdk-starter-kit/tree/main"})," by running the command ",nt.createElement(Rt,null,"npm start examples"),"."),nt.createElement(Jn,{key:"mobile"},"To test your app locally on a mobile device, you need to build your app and upload it as a Javascript bundle in the developer portal. The local development URL won't work when testing on mobile."),nt.createElement(Jn,{key:"submit"},"Once you're ready to submit your app, run the"," ",nt.createElement(Rt,null,"npm run build")," command, to generate a Javascript bundle to upload via the"," ",nt.createElement(Dt,{text:"Developer Portal",url:Dm({flavor:"prod"})}),"."),nt.createElement(Jn,{key:"getting-featured"},"Want to get featured on the apps marketplace? Checkout this article on"," ",nt.createElement(Dt,{text:"how to get featured",url:"https://www.canva.dev/docs/apps/getting-featured/"}),"."),nt.createElement(Jn,{key:"deep-linking"},"Did you know you can create URLs that link users directly to the Canva editor with your app? To find our more, checkout this article on"," ",nt.createElement(Dt,{text:"deep linking",url:"https://www.canva.dev/docs/apps/deep-linking/"}),"."),nt.createElement(Jn,{key:"docs"},"View our Developer Documentation"," ",nt.createElement(Dt,{url:"https://canva.dev",text:"Developer Documentation"})," to learn more about our Canva Developers platform.")],Q0=e=>Cte(Ete,e);var q5=e=>e.command(["tip","tips"],"Get a random tip or trick",Ho,t=>{Kr({Command:()=>Ste.createElement(Z0,null,Q0()),cli:e,args:t})});import zie from"react";var dr=St(Qp(),1);var K4,X4,J4,Z4,Q4,eB,Yt,jE,VE,UE,$E,WE,GE;eB=[dr.observable],Q4=[dr.observable],Z4=[dr.observable],J4=[dr.observable],X4=[dr.observable],K4=[dr.observable];var xi=class{constructor(){ui(this,jE,lt(Yt,8,this,"")),lt(Yt,11,this);ui(this,VE,lt(Yt,12,this,null)),lt(Yt,15,this);ui(this,UE,lt(Yt,16,this,!1)),lt(Yt,19,this);ui(this,$E,lt(Yt,20,this,null)),lt(Yt,23,this);ui(this,WE,lt(Yt,24,this,null)),lt(Yt,27,this);ui(this,GE,lt(Yt,28,this,!0)),lt(Yt,31,this)}};Yt=il(null),jE=new WeakMap,VE=new WeakMap,UE=new WeakMap,$E=new WeakMap,WE=new WeakMap,GE=new WeakMap,yt(Yt,4,"codeInput",eB,xi,jE),yt(Yt,4,"codeVerifier",Q4,xi,VE),yt(Yt,4,"loginSuccessful",Z4,xi,UE),yt(Yt,4,"loginUrl",J4,xi,$E),yt(Yt,4,"error",X4,xi,WE),yt(Yt,4,"loading",K4,xi,GE),_a(Yt,xi);var tB,rB,nB,iB,sB,oB,aB,uB,lB,Si;lB=[dr.action],uB=[dr.action],aB=[dr.action],oB=[dr.action],sB=[dr.action],iB=[dr.action],nB=[dr.action],rB=[dr.action],tB=[dr.action];var Qr=class{constructor(t,r,n=fi){this.services=t;this.onLogin=r;this.delay=n;lt(Si,5,this)}async initLogin(t){if(this.setLoading(t,!0),await this.services.tokenService.isLoggedIn()){this.rerouteOnSuccess(t);return}this.setLoading(t,!1);let{url:n,codeVerifier:i}=this.services.authService.constructAuthUrl();this.setCodeVerifier(t,i),this.setLoginUrl(t,n),await this.delay(1500);let s=await this.services.navigationService.openUrl(n);s.success||this.setError(t,s.message)}setCodeInput(t,r){t.codeInput=r}async handleCodeInput(t){try{let r=t.codeInput.split("&")[0];if(!r){this.exitOnFailure(t,"Invalid input. Please paste the full code.");return}let[n,i]=r.split("=");if(!i||n!=="code"){this.exitOnFailure(t,"Invalid input. Please ensure the code includes the 'code=' prefix.");return}if(!t.codeVerifier){this.exitOnFailure(t,"Failed to generate code verifier.");return}let s=await this.services.tokenService.exchangeCodeForToken({authCode:i,codeVerifier:t.codeVerifier});s.success?this.rerouteOnSuccess(t):this.exitOnFailure(t,s.message)}catch(r){this.exitOnFailure(t,r.message)}}exitOnFailure(t,r){this.setError(t,r),this.delay().then(()=>process.exit(1))}setCodeVerifier(t,r){t.codeVerifier=r}setLoginSuccessful(t,r){t.loginSuccessful=r}setError(t,r){t.error=r}setLoginUrl(t,r){t.loginUrl=r}setLoading(t,r){t.loading=r}rerouteOnSuccess(t){this.setLoading(t,!1),this.setLoginSuccessful(t,!0),this.delay(1500).then(()=>this.onLogin())}};Si=il(null),yt(Si,1,"setCodeInput",lB,Qr),yt(Si,1,"handleCodeInput",uB,Qr),yt(Si,1,"exitOnFailure",aB,Qr),yt(Si,1,"setCodeVerifier",oB,Qr),yt(Si,1,"setLoginSuccessful",sB,Qr),yt(Si,1,"setError",iB,Qr),yt(Si,1,"setLoginUrl",nB,Qr),yt(Si,1,"setLoading",rB,Qr),yt(Si,1,"rerouteOnSuccess",tB,Qr),_a(Si,Qr);var f2=St(c2(),1);import ar from"react";import{Box as Kd,Text as Yd}from"ink";var dM=(0,f2.observer)(({store:e,presenter:t})=>(ar.useEffect(()=>{t.initLogin(e)},[]),e.loading?ar.createElement(Kd,{marginX:2,marginY:1},ar.createElement(Bn,{type:"bouncingBall",label:"Checking login status..."})):e.loginSuccessful?ar.createElement(qie,null):ar.createElement(Gie,{store:e,presenter:t}))),Gie=(0,f2.observer)(({store:e,presenter:t})=>ar.createElement(Kd,{flexDirection:"column",paddingX:2},ar.createElement(Yd,null,"Let's get you logged in to Canva CLI!"),!!e.loginUrl&&ar.createElement(Kd,null,ar.createElement(Yd,{color:"yellow"},"If a browser window didn't open, click"," ",ar.createElement(Dt,{text:"here",url:e.loginUrl,subtle:!0}))),ar.createElement(Kd,{marginY:1},ar.createElement(Yd,{bold:!0},"Confirmation code: "),ar.createElement(Yd,null," "),ar.createElement(Hb,{onChange:r=>t.setCodeInput(e,r),placeholder:"Paste the confirmation code from the web browser then press enter.",onSubmit:()=>t.handleCodeInput(e)})),e.error&&ar.createElement(kn,null,e.error))),qie=()=>ar.createElement(Kd,{flexDirection:"column",paddingX:2},ar.createElement(Yd,null,ar.createElement(Nt,null,"\u2705")," Successfully logged in!"));function Hie(e){return e.option("china",{type:"boolean",default:!1,describe:"Login to canva.cn, this will use canva.cn for all subsequent commands until you log out."}).alias("china","cn")}var mM=e=>e.command("login","Log in to the Canva CLI",Hie,t=>{let r=()=>{J0("welcome",e,t)};Kr({Command:i=>{let s=new xi,o=new Qr(i.services,r);return zie.createElement(dM,{store:s,presenter:o})},cli:e,args:t,flavor:t.china?"prod-cn":void 0})});import Re from"react";import{Box as Sa,Text as Ys,useInput as Yie}from"ink";var p2=7,hM=()=>Re.createElement(Ys,{color:"gray"},"(Use arrow keys, return/enter to select)"),Kie=({totalApps:e})=>e<=p2?null:Re.createElement(Ys,{color:"gray"},"Showing ",p2," of ",e," apps."),Xie=()=>(Re.useEffect(()=>{process.exit()},[]),Re.createElement(Re.Fragment,null,Re.createElement(Ys,null,"Looks like you don't have any apps."),Re.createElement(Ys,null,"Run ",Re.createElement(Rt,null,"canva apps create")," to create a new app!"))),Xd=({label:e,value:t})=>Re.createElement(Sa,null,Re.createElement(Ys,{bold:!0},e,": "),Re.createElement(Rt,{bold:!1},t)),gM=[{label:"View app in the Developer Portal",value:"open-in-developer-portal",action:({app:e,services:t})=>{let r=t.urlService.getDeveloperPortalUrl(e.id);return t.navigationService.openUrl(r)}},{label:"Copy App ID",value:"copy-app-id",action:({app:e,services:t})=>{try{return t.clipboardService.copy(e.id)}catch(r){return{success:!1,code:"CLIPBOARD_ERROR",message:`Unable to copy app ID: '${e.id}' to clipboard: ${r}`}}}},{label:"Copy App Origin",value:"copy-app-origin",action:({app:e,services:t})=>{let r=t.urlService.getAppOriginUrl(e.id);try{return t.clipboardService.copy(r)}catch(n){return{success:!1,code:"CLIPBOARD_ERROR",message:`Unable to copy app origin '${r}' to clipboard: ${n}`}}}},{label:"Return to app list",value:"return-to-app-list",action:()=>({success:!0,data:void 0})}],Jie=e=>e.toLowerCase()==="development"?"Draft":e.charAt(0).toUpperCase()+e.slice(1),Zie=({apps:e,services:t})=>{let[r,n]=Re.useState(),[i,s]=Re.useState();if(Yie(o=>{o==="q"&&process.exit()}),r){let o=so(e.find(a=>a.id===r));return Re.createElement(Sa,{flexDirection:"column"},Re.createElement(Xd,{label:"Name",value:o.name}),Re.createElement(Xd,{label:"Distribution",value:$5(o.distribution)}),Re.createElement(Xd,{label:"App ID",value:o.id}),Re.createElement(Xd,{label:"App version",value:o.version.toString()}),Re.createElement(Xd,{label:"App status",value:Jie(o.status)}),Re.createElement(Sa,{height:1}),Re.createElement(Ys,{bold:!0},"Select an action: ",Re.createElement(hM,null)),Re.createElement(ps,{options:gM,onChange:async a=>{let{action:u,value:l}=so(gM.find(c=>c.value===a));if(l==="return-to-app-list")n(void 0);else{let c=await u({app:o,services:t});c.success||s(c.message)}}}),i&&Re.createElement(Sa,{marginTop:1},Re.createElement(kn,null,i)))}return Re.createElement(Sa,{flexDirection:"column",margin:1},e.length===0?Re.createElement(Xie,null):Re.createElement(Re.Fragment,null,Re.createElement(Ys,{bold:!0},"Select an app: ",Re.createElement(hM,null)),Re.createElement(ps,{options:e.map(o=>({label:o.name,value:o.id})),visibleOptionCount:p2,onChange:n}),Re.createElement(Sa,{height:1}),Re.createElement(Kie,{totalApps:e.length}),Re.createElement(Ys,{color:"yellow"},'Press "q" to quit.')))},Qie=({code:e,message:t})=>(Re.useEffect(()=>{process.exit(1)},[]),Re.createElement(Ys,{color:"red"},`${e}: ${t}`)),yM=({services:e})=>{let[t,r]=Re.useState();return Re.useEffect(()=>{e.appService.listApps().then(r)},[]),t?Re.createElement(Sa,{marginX:2,marginY:1},t.success?Re.createElement(Zie,{apps:t.data,services:e}):Re.createElement(Qie,{code:t.code,message:t.message})):Re.createElement(Sa,{marginX:2,marginY:1},Re.createElement(Bn,{type:"bouncingBall",label:"Loading your apps..."}))};var DM=e=>e.command("list","List all apps",Ho,t=>{Kr({Command:yM,args:t,login:{enabled:!0,noLabel:"No (CLI will exit)"},cli:e})});import Fse from"react";var vM={name:"Generative AI",path:"gen_ai",key:"gen_ai",config:{}};var CM={name:"Hello world",path:"hello_world",key:"hello_world",config:{}};var EM={name:"Digital Asset Management",path:"dam",key:"dam",config:{}};var el=[CM,EM,vM];var SM=e=>{let t=el.find(r=>r.key===e);if(!t)throw new Error(`Couldn't find a template with key : ${e}`);return t};import Jt,{useEffect as nse,useState as ise}from"react";import{Text as Jd,Box as d2,useApp as sse}from"ink";import Gy from"react";import{Text as ese,Box as tse,Spacer as rse}from"ink";var xM=e=>{let{lite:t}=Gy.useContext(st);return Gy.createElement(tse,{borderStyle:t?void 0:"single",borderColor:t?void 0:vm,borderTop:!0,borderLeft:!1,borderRight:!1,borderBottom:!1,paddingY:0,paddingX:2},Gy.createElement(rse,null),Gy.createElement(ese,{color:t?void 0:"gray"},`Step ${e.step}/${e.totalSteps}: ${e.description}`))};var _M=St(c2(),1);var bM=(0,_M.observer)(e=>{let{store:t,onQuit:r,getCommandsToRun:n}=e,[i,s]=ise({project:e.project,template:e.template}),o=t.currentStep,a=o?.render,{exit:u}=sse(),l=c=>{s(f=>({...f,project:c}))};return nse(()=>{t.stepsComplete&&fi(1500).then(()=>{t.createdApp&&e.services.navigationService.openUrl(t.developerPortalAppUrl),u()})},[u,t.createdApp,t.stepsComplete]),Jt.createElement(Jt.Fragment,null,Jt.createElement(d2,null,a&&Jt.createElement(a,{...e,...i,store:t,onQuit:r,onStepComplete:()=>e.incrementStep(t),registerApp:e.registerApp,submitProjectConfig:l})),t.quit&&Jt.createElement(kn,null,"A step failed and we weren't able to create your app."),t.stepsComplete&&!t.quit&&Jt.createElement(d2,{justifyContent:"center",alignItems:"center",flexDirection:"column",marginY:1},Jt.createElement(Jd,{bold:!0},Jt.createElement(Nt,null,"\u{1F389}")," Your app"," ",i.project.name&&Jt.createElement(Rt,null,i.project.name)," ","was successfully created ",Jt.createElement(Nt,null,"\u{1F389}")),Jt.createElement(d2,{flexDirection:"column",marginY:1,alignItems:"center"},Jt.createElement(Jd,null,"You should now run the following commands:"),n(i.project).map((c,f)=>Jt.createElement(Jd,{key:f,color:"greenBright"},c))),Jt.createElement(Jd,null,"Then head over to our"," ",Jt.createElement(Dt,{url:t.developerPortalAppUrl,text:"Developer Portal"})," ","to ",t.createdApp?"edit":"create"," and preview your app."),Jt.createElement(Jd,null,"And remember our ",Jt.createElement(Dt,{url:"https://canva.dev",text:"Docs"})," are also always here to help!"),Jt.createElement(Z0,null,Q0())),!t.stepsComplete&&!t.quit&&Jt.createElement(xM,{step:t.currentStepIndex+1,totalSteps:t.totalSteps,description:o?.description||""}))});import zy from"react";import qy from"react";import{Box as ose,Text as ase}from"ink";var use=e=>e?"Yes":"No",us=e=>{let t=typeof e.choice=="boolean"?use(e.choice):e.choice;return qy.createElement(ose,{flexGrow:1,flexDirection:"row"},qy.createElement(ase,{bold:!0},qy.createElement(Nt,{color:"greenBright"},"\u{1F449} "),e.question,":"," "),qy.createElement(Rt,{bold:!1},t))};var OM=["private","public"],lse=e=>e.charAt(0).toUpperCase()+e.slice(1),cse=({distribution:e,onChange:t})=>{let r=e!=null,n="Who is this app for?",i=[{label:"Public (Available to all Canva users. A reviewer from Canva must approve the app for release.)",value:"public"},{label:"Private (Only available to members of your team. Your team\u2019s owner or administrator must approve the app for release.)",value:"private"}];return r?zy.createElement(us,{question:n,choice:lse(e||"")}):zy.createElement(Xn,{question:n},zy.createElement(ps,{options:i,onChange:t}))},FM={key:"distribution",needsInput:e=>e?.offline===!0?!1:e?.distribution==null,render:e=>zy.createElement(cse,{onChange:r=>{e.submitProjectConfig({...e.project,distribution:r})},distribution:e.project.distribution})};import{Text as RM,Box as Yy}from"ink";import Ks,{useEffect as BM,useState as Dse}from"react";import{Text as Hy,Box as fse}from"ink";import Zd,{useContext as pse}from"react";var dse="\u2588",mse="\u2591",AM=({color:e,backgroundColor:t,dimColor:r,inverse:n,percent:i,width:s=40})=>{let{lite:o}=pse(st);if(i>=1)return Zd.createElement(Hy,null,"Done!");let a=dse.repeat(Math.round(i*s)),u=mse.repeat(s-a.length),l=`${Math.round(i*100)}%`;return o?Zd.createElement(Hy,null,l):Zd.createElement(fse,null,Zd.createElement(Hy,{color:e,backgroundColor:t,dimColor:r,inverse:n},a,u),Zd.createElement(Hy,null,` ${l}`))};import hse from"node:fs";import*as IM from"node:path";import*as ef from"node:fs";var TM={type:"appCreation",start:"Creating app on Canva",failure:"Failed to create app on Canva",requiresLogin:!0,action:async(e,t)=>{let r=await t.appService.createApp(e);if(!r.success)throw new Error(`[${r.code}]: Unable to create app on Canva: '${r.message}'.`);return r.data},preventCleanupOnError:!1},PM={type:"postCreation",start:"Updating .env file",failure:"Failed to update .env file",requiresLogin:!0,action:async e=>{try{let t=IM.join(e.folderName,".env");if(!ef.existsSync(t))throw new Error(`.env file not found at '${t}'.`);let n=ef.readFileSync(t,"utf-8").split(`
|
|
537
537
|
`),i="# replaced via the canva cli",s=e.app.id,o=Jh({envLines:n,key:"CANVA_APP_ID",value:s,comment:i});o=Jh({envLines:o,key:"CANVA_APP_ORIGIN",value:e.urlService.getAppOriginUrl(s),comment:i}),o=Jh({envLines:o,key:"CANVA_HMR_ENABLED",value:"TRUE",comment:i}),ef.writeFileSync(t,o.join(`
|
|
538
|
-
`))}catch(t){throw new Error(`Failed to update .env file: ${t.message}`)}},preventCleanupOnError:!1};var LM=[QD,ev,tv,rv,nv,iv,sv,TM,PM,ov];async function gse(e,t,r){let{start:n,action:i,failure:s,type:o}=e.step;e.setMessage(`${n}...`,{percent:e.index/e.totalSteps});try{if(e.dryRun)return!0;switch(o){case"preAppCreation":await i(e.stepContext);break;case"appCreation":{let a=await i(e.stepContext,t);r(a);break}case"postCreation":{let a=e.getApp();if(!a)throw new Error("App is undefined in a post creation step.");await i({...e.stepContext,app:a});break}default:break}return!0}catch(a){return e.stepContext.debug&&console.error(a),e.setMessage(s,{error:!0}),!1}}async function yse(e,t){if(!(e.percent>=1))return hse.promises.rm(bm(t),{recursive:!0,force:!0})}async function NM({state:e,store:t,setState:r,onQuit:n,services:i,registerApp:s,name:o,git:a,npm:u,template:l,dryRun:c,debug:f,offline:p=!1,distribution:d="public"}){let m=bm(o),y=await i.tokenService.isLoggedIn(),D=[...LM.filter(w=>w.requiresLogin?y&&!p:!0),...a?[av]:[],...u?[uv]:[]],h=D.length,g=(w,E={error:!1})=>{E.percent!==void 0?r({...e,message:w,error:E.error||e.error,percent:E.percent}):r({...e,message:w,error:E.error||e.error})},v={folderName:m,name:o,template:l,distribution:d,debug:f,urlService:i.urlService};for(let w=0;w<D.length;w++){let E=D[w];if(!E)return;if(!await gse({step:E,index:w,totalSteps:h,stepContext:v,setMessage:g,dryRun:c,getApp:()=>t.createdApp},i,s)){!f&&!E.preventCleanupOnError&&await yse(e,o),n();return}await fi()}g("Done!",{percent:1})}var vse=e=>{let[t,r]=Dse({percent:0,message:"",error:!1}),n=so(el.find(i=>i.key===e.project.template),"template not found");return BM(()=>{NM({...e,state:t,setState:r,name:so(e.project.name,"name is required"),git:so(e.project.git,"git usage question is required"),npm:so(e.project.installDependencies,"package manager usage is required"),template:n,offline:e.project.offline,distribution:e.project.distribution})},[]),BM(()=>{t.error&&fi(750).then(e.onQuit),t.percent>=1&&fi(750).then(e.onStepComplete)},[t,e.onQuit,e.onStepComplete]),Ks.createElement(Yy,{flexGrow:1,flexDirection:"column",margin:1},Ks.createElement(Yy,null,Ks.createElement(RM,null,"Creating your ",n.name," app"," ",Ks.createElement(Rt,null,`${e.project.name}`),"...")),Ks.createElement(Yy,null,Ks.createElement(RM,null,t.message)),!t.error&&Ks.createElement(Yy,null,Ks.createElement(AM,{color:q_,percent:t.percent})))},kM={render:e=>Ks.createElement(vse,{...e}),description:"Creating your app"};import m2,{useEffect as _se,useState as WM}from"react";import{Box as bse}from"ink";function MM(e){return e.git==null||e.name==null||e.installDependencies==null||e.template==null}import Ky,{useState as wse}from"react";var Cse=({name:e,onNameChange:t})=>{let[r,n]=wse(),i=!!e?.length,s="What would you like to call your app?",o="After creating your app, you can update its name in the Developer Portal",a=l=>{let c=Cf(l);if(!c.valid){n(c.message);return}t(l.trim())},u=l=>{if(!r)return;let c=Cf(l);n(c.valid?"":c.message)};return i?Ky.createElement(ls,{question:s,choice:e}):Ky.createElement(Xn,{question:s,note:o,error:r},Ky.createElement(Ub,{placeholder:"My cool app",onSubmit:a,onChange:u}))},jM={key:"name",needsInput:e=>e?.name==null,render:e=>Ky.createElement(Cse,{onNameChange:r=>{e.submitProjectConfig({...e.project,name:r})},name:e.project.name})};import Xy from"react";var Ese=({git:e,onChange:t})=>{let r=e!=null,n="Would you like this app to be set up with a git repo?",i="If you\u2019re not sure, pick Yes";return r?Xy.createElement(ls,{question:n,choice:e}):Xy.createElement(Xn,{question:n,note:i},Xy.createElement(oo,{default:"yes",onChange:t}))},VM={key:"git",needsInput:e=>e?.git==null,render:e=>Xy.createElement(Ese,{onChange:r=>{e.submitProjectConfig({...e.project,git:r})},git:e.project.git})};import Jy from"react";var Sse=({install:e,onChange:t})=>{let r=e!=null,n="Would you like this app to have its dependencies installed with NPM? ",i="If you\u2019re not sure, pick Yes";return r?Jy.createElement(ls,{question:n,choice:e}):Jy.createElement(Xn,{question:n,note:i},Jy.createElement(oo,{default:"yes",onChange:t}))},UM={key:"installDependencies",needsInput:e=>e?.installDependencies==null,render:e=>Jy.createElement(Sse,{onChange:r=>{e.submitProjectConfig({...e.project,installDependencies:r})},install:e.project.installDependencies})};import Zy from"react";var xse=({template:e,onChange:t})=>{let r=e!=null,n="What kind of app do you want to create?",i="Use arrow keys, return/enter to select";return r?Zy.createElement(ls,{question:n,choice:SM(e).name}):Zy.createElement(Xn,{question:n,note:i},Zy.createElement(ps,{options:el.map(s=>({label:s.name,value:s.key})),onChange:t}))},$M={key:"template",needsInput:e=>e?.template==null,render:e=>Zy.createElement(xse,{onChange:r=>{e.submitProjectConfig({...e.project,template:r})},template:e.project.template})};var GM=[$M,FM,jM,VM,UM],Ose=e=>{let t=e.project,[r,n]=WM(t),[i,s]=WM(0),o=()=>{GM.at(i+1)&&s(i+1)},a=u=>{n(u),o()};return _se(()=>{MM(r)||(e.submitProjectConfig(r),e.onStepComplete())},[r,e]),m2.createElement(bse,{flexGrow:1,flexDirection:"column",margin:1},GM.filter(u=>u.needsInput(t)).slice(0,i+1).map((u,l)=>m2.createElement(u.render,{...e,project:r,submitProjectConfig:a,key:l})))},qM={render:e=>m2.createElement(Ose,{...e}),description:"Configuring your app"};var zM=[qM,kM];var cs=St(Qp(),1);var HM,YM,KM,XM,ai,h2,g2,y2;XM=[cs.observable.ref],KM=[cs.observable.ref],YM=[cs.observable.ref],HM=[cs.computed];var Xs=class{constructor(t,r){this.scaffolderSteps=t;this.urlService=r;lt(ai,5,this);ui(this,h2,lt(ai,8,this,!1)),lt(ai,11,this);ui(this,g2,lt(ai,12,this,0)),lt(ai,15,this);ui(this,y2,lt(ai,16,this)),lt(ai,19,this)}get totalSteps(){return this.scaffolderSteps.length}get currentStep(){return this.scaffolderSteps[this.currentStepIndex]}get stepsComplete(){return this.currentStepIndex>=this.scaffolderSteps.length}get developerPortalAppUrl(){return this.createdApp?this.urlService.getDeveloperPortalUrl(this.createdApp.id):this.urlService.getDeveloperPortalUrl()}};ai=il(null),h2=new WeakMap,g2=new WeakMap,y2=new WeakMap,yt(ai,4,"quit",XM,Xs,h2),yt(ai,4,"currentStepIndex",KM,Xs,g2),yt(ai,4,"createdApp",YM,Xs,y2),yt(ai,2,"stepsComplete",HM,Xs),_a(ai,Xs);var JM,ZM,QM,tl;QM=[cs.action],ZM=[cs.action],JM=[cs.action];var xa=class{constructor(){lt(tl,5,this);eD(this,"getCommandsToRun",({name:t,installDependencies:r})=>[`cd ${t?wf(t):"<app_name>"}`,...r?[]:["npm install"],"npm start"]);eD(this,"quit",lt(tl,8,this,t=>{t.quit=!0})),lt(tl,11,this)}registerApp(t,r){t.createdApp=r}incrementStep(t){if(t.stepsComplete)throw new Error("Cannot increment step when all steps are complete");t.currentStepIndex+=1}};tl=il(null),yt(tl,1,"registerApp",ZM,xa),yt(tl,1,"incrementStep",JM,xa),yt(tl,5,"quit",QM,xa),_a(tl,xa);function Ase(e){return e.option("offline",{type:"boolean",describe:"Create the app locally without also creating an app in the Developer Portal."}).option("template",{type:"string",choices:el.map(t=>t.key)}).option("distribution",{type:"string",choices:OM,describe:"Choose a distribution to use for the app"}).option("git",{type:"boolean",describe:"Initialize a git repository"}).option("installDependencies",{type:"boolean",describe:"Install dependencies (using npm)"}).positional("name",{type:"string",describe:"Name of the app you\u2019re creating"}).check(t=>{if(t.name){let r=Cf(t.name);if(!r.valid)throw new Error(r.message)}return!0})}var ej=e=>e.command("create [name]","Create a new Canva app",Ase,t=>{let r=i=>{t.offline=i===!1};Kr({Command:i=>{let s=new Xs(zM,i.services.urlService),o=new xa;return Fse.createElement(bM,{getCommandsToRun:o.getCommandsToRun,onQuit:()=>o.quit(s),incrementStep:()=>o.incrementStep(s),registerApp:a=>o.registerApp(s,a),store:s,project:t,template:t,...t,services:i.services})},shouldPromptUpdate:!t.silenceUpdates,cli:e,args:t,login:t.offline?void 0:{enabled:!0,noLabel:"No (Your app will be created locally, but you will need to manually create it in the Developer Portal)",required:!1,onLoginDecisionChange:r}})});import Ise from"react";import Fn from"react";import{Box as tj,Text as Qy}from"ink";var rj=({appId:e,services:t})=>{let[r,n]=Fn.useState(void 0);return Fn.useEffect(()=>{t.previewService.generatePreviewResult(e).then(i=>n(i))},[]),Fn.useEffect(()=>{r?.success&&t.navigationService.openUrl(r.data)},[r]),r===void 0?Fn.createElement(tj,{marginX:2,marginY:1},Fn.createElement(Bn,{type:"bouncingBall",label:"Generating Preview URL..."})):Fn.createElement(tj,{marginX:2,marginY:1,flexDirection:"column"},Fn.createElement(Qy,null,"Previewing app..."),r.success?Fn.createElement(Fn.Fragment,null,Fn.createElement(Qy,{color:"yellow"},"Warning: To preview your locally running app, ensure a draft app version exists. If no draft version is available, the latest submitted version will be used for preview."),Fn.createElement(Qy,null,Fn.createElement(Dt,{text:"Preview URL",url:r.data}))):Fn.createElement(Qy,{color:"red"},r.message))};function Tse(e){return e.option("appId",{type:"string",describe:"App Id to preview"})}var nj=e=>e.command("preview","Preview current app in a new Canva Design",Tse,t=>{Kr({Command:r=>Ise.createElement(rj,{appId:t.appId,services:r.services}),cli:e,args:t})});var ij=e=>e.command("apps","Manage Canva apps",t=>{t=ej(t),t=DM(t),t=nj(t),t.demandCommand(1,"You need to specify a subcommand.")});import Nse from"react";import Ir from"react";import{Box as sj,Text as D2}from"ink";var oj=({logoutResult:e})=>{let[t,r]=Ir.useState();return Ir.useEffect(()=>{e.then(r)},[e]),t?Ir.createElement(sj,{flexDirection:"column",paddingX:2},t.success?Ir.createElement(Pse,null):Ir.createElement(Lse,{message:t.message,code:t.code})):Ir.createElement(sj,{marginX:2,marginY:1},Ir.createElement(Bn,{type:"bouncingBall",label:"Logging you out..."}))},Pse=()=>Ir.createElement(Ir.Fragment,null,Ir.createElement(D2,null,Ir.createElement(Nt,null,"\u2705")," ",Ir.createElement(D2,{color:"greenBright"},"You have successfully logged out. "),"To log back in, run ",Ir.createElement(Rt,null,"canva login"))),Lse=({message:e,code:t})=>{let r=t==="NO_TOKEN"?"Looks like you are not logged in, so we were unable to log you out.":e;return Ir.createElement(D2,null,Ir.createElement(Nt,null,"\u274C")," ",Ir.createElement(kn,null,`Logout error: ${r}`))};var aj=e=>e.command("logout","Revoke access and log out of the Canva CLI",Ho,t=>{Kr({Command:n=>{let i=n.services.tokenService.revokeToken();return Nse.createElement(oj,{logoutResult:i})},cli:e,args:t})});function Rse(e){return e.version(gl.version).option("lite",{type:"boolean",default:!1,global:!0,describe:"Minimize command line UI for improved accessibility"}).option("dryRun",{type:"boolean",default:!1,global:!0,describe:"Skips the scaffolding step. Useful for testing when making changes to the CLI interface.",hidden:!0}).option("silenceUpdates",{type:"boolean",default:!1,global:!0,describe:"Silences the CLI version update check. Useful for preparing the CLI for release or running in CI.",hidden:!0}).option("debug",{type:"boolean",default:!1,global:!0,describe:"Log info to aid with debugging.",hidden:!0})}var uj=e=>{let t=O_(cD(e)),r=Rse(t);return W5(r),q5(r),mM(r),ij(r),aj(r),r.demandCommand().recommendCommands().strict(!0).help(),r};uj(process.argv).parseSync();
|
|
538
|
+
`))}catch(t){throw new Error(`Failed to update .env file: ${t.message}`)}},preventCleanupOnError:!1};var LM=[QD,ev,tv,rv,nv,iv,sv,TM,PM,ov];async function gse(e,t,r){let{start:n,action:i,failure:s,type:o}=e.step;e.setMessage(`${n}...`,{percent:e.index/e.totalSteps});try{if(e.dryRun)return!0;switch(o){case"preAppCreation":await i(e.stepContext);break;case"appCreation":{let a=await i(e.stepContext,t);r(a);break}case"postCreation":{let a=e.getApp();if(!a)throw new Error("App is undefined in a post creation step.");await i({...e.stepContext,app:a});break}default:break}return!0}catch(a){return e.stepContext.debug&&console.error(a),e.setMessage(s,{error:!0}),!1}}async function yse(e,t){if(!(e.percent>=1))return hse.promises.rm(bm(t),{recursive:!0,force:!0})}async function NM({state:e,store:t,setState:r,onQuit:n,services:i,registerApp:s,name:o,git:a,npm:u,template:l,dryRun:c,debug:f,offline:p=!1,distribution:d="public"}){let m=bm(o),y=await i.tokenService.isLoggedIn(),D=[...LM.filter(w=>w.requiresLogin?y&&!p:!0),...a?[av]:[],...u?[uv]:[]],h=D.length,g=(w,E={error:!1})=>{E.percent!==void 0?r({...e,message:w,error:E.error||e.error,percent:E.percent}):r({...e,message:w,error:E.error||e.error})},v={folderName:m,name:o,template:l,distribution:d,debug:f,urlService:i.urlService};for(let w=0;w<D.length;w++){let E=D[w];if(!E)return;if(!await gse({step:E,index:w,totalSteps:h,stepContext:v,setMessage:g,dryRun:c,getApp:()=>t.createdApp},i,s)){!f&&!E.preventCleanupOnError&&await yse(e,o),n();return}await fi()}g("Done!",{percent:1})}var vse=e=>{let[t,r]=Dse({percent:0,message:"",error:!1}),n=so(el.find(i=>i.key===e.project.template),"template not found");return BM(()=>{NM({...e,state:t,setState:r,name:so(e.project.name,"name is required"),git:so(e.project.git,"git usage question is required"),npm:so(e.project.installDependencies,"package manager usage is required"),template:n,offline:e.project.offline,distribution:e.project.distribution})},[]),BM(()=>{t.error&&fi(750).then(e.onQuit),t.percent>=1&&fi(750).then(e.onStepComplete)},[t,e.onQuit,e.onStepComplete]),Ks.createElement(Yy,{flexGrow:1,flexDirection:"column",margin:1},Ks.createElement(Yy,null,Ks.createElement(RM,null,"Creating your ",n.name," app"," ",Ks.createElement(Rt,null,`${e.project.name}`),"...")),Ks.createElement(Yy,null,Ks.createElement(RM,null,t.message)),!t.error&&Ks.createElement(Yy,null,Ks.createElement(AM,{color:q_,percent:t.percent})))},kM={render:e=>Ks.createElement(vse,{...e}),description:"Creating your app"};import m2,{useEffect as _se,useState as WM}from"react";import{Box as bse}from"ink";function MM(e){return e.git==null||e.name==null||e.installDependencies==null||e.template==null}import Ky,{useState as wse}from"react";var Cse=({name:e,onNameChange:t})=>{let[r,n]=wse(),i=!!e?.length,s="What would you like to call your app?",o="After creating your app, you can update its name in the Developer Portal",a=l=>{let c=Cf(l);if(!c.valid){n(c.message);return}t(l.trim())},u=l=>{if(!r)return;let c=Cf(l);n(c.valid?"":c.message)};return i?Ky.createElement(us,{question:s,choice:e}):Ky.createElement(Xn,{question:s,note:o,error:r},Ky.createElement(Ub,{placeholder:"My cool app",onSubmit:a,onChange:u}))},jM={key:"name",needsInput:e=>e?.name==null,render:e=>Ky.createElement(Cse,{onNameChange:r=>{e.submitProjectConfig({...e.project,name:r})},name:e.project.name})};import Xy from"react";var Ese=({git:e,onChange:t})=>{let r=e!=null,n="Would you like this app to be set up with a git repo?",i="If you\u2019re not sure, pick Yes";return r?Xy.createElement(us,{question:n,choice:e}):Xy.createElement(Xn,{question:n,note:i},Xy.createElement(oo,{default:"yes",onChange:t}))},VM={key:"git",needsInput:e=>e?.git==null,render:e=>Xy.createElement(Ese,{onChange:r=>{e.submitProjectConfig({...e.project,git:r})},git:e.project.git})};import Jy from"react";var Sse=({install:e,onChange:t})=>{let r=e!=null,n="Would you like this app to have its dependencies installed with NPM? ",i="If you\u2019re not sure, pick Yes";return r?Jy.createElement(us,{question:n,choice:e}):Jy.createElement(Xn,{question:n,note:i},Jy.createElement(oo,{default:"yes",onChange:t}))},UM={key:"installDependencies",needsInput:e=>e?.installDependencies==null,render:e=>Jy.createElement(Sse,{onChange:r=>{e.submitProjectConfig({...e.project,installDependencies:r})},install:e.project.installDependencies})};import Zy from"react";var xse=({template:e,onChange:t})=>{let r=e!=null,n="What kind of app do you want to create?",i="Use arrow keys, return/enter to select";return r?Zy.createElement(us,{question:n,choice:SM(e).name}):Zy.createElement(Xn,{question:n,note:i},Zy.createElement(ps,{options:el.map(s=>({label:s.name,value:s.key})),onChange:t}))},$M={key:"template",needsInput:e=>e?.template==null,render:e=>Zy.createElement(xse,{onChange:r=>{e.submitProjectConfig({...e.project,template:r})},template:e.project.template})};var GM=[$M,FM,jM,VM,UM],Ose=e=>{let t=e.project,[r,n]=WM(t),[i,s]=WM(0),o=()=>{GM.at(i+1)&&s(i+1)},a=u=>{n(u),o()};return _se(()=>{MM(r)||(e.submitProjectConfig(r),e.onStepComplete())},[r,e]),m2.createElement(bse,{flexGrow:1,flexDirection:"column",margin:1},GM.filter(u=>u.needsInput(t)).slice(0,i+1).map((u,l)=>m2.createElement(u.render,{...e,project:r,submitProjectConfig:a,key:l})))},qM={render:e=>m2.createElement(Ose,{...e}),description:"Configuring your app"};var zM=[qM,kM];var ls=St(Qp(),1);var HM,YM,KM,XM,ai,h2,g2,y2;XM=[ls.observable.ref],KM=[ls.observable.ref],YM=[ls.observable.ref],HM=[ls.computed];var Xs=class{constructor(t,r){this.scaffolderSteps=t;this.urlService=r;lt(ai,5,this);ui(this,h2,lt(ai,8,this,!1)),lt(ai,11,this);ui(this,g2,lt(ai,12,this,0)),lt(ai,15,this);ui(this,y2,lt(ai,16,this)),lt(ai,19,this)}get totalSteps(){return this.scaffolderSteps.length}get currentStep(){return this.scaffolderSteps[this.currentStepIndex]}get stepsComplete(){return this.currentStepIndex>=this.scaffolderSteps.length}get developerPortalAppUrl(){return this.createdApp?this.urlService.getDeveloperPortalUrl(this.createdApp.id):this.urlService.getDeveloperPortalUrl()}};ai=il(null),h2=new WeakMap,g2=new WeakMap,y2=new WeakMap,yt(ai,4,"quit",XM,Xs,h2),yt(ai,4,"currentStepIndex",KM,Xs,g2),yt(ai,4,"createdApp",YM,Xs,y2),yt(ai,2,"stepsComplete",HM,Xs),_a(ai,Xs);var JM,ZM,QM,tl;QM=[ls.action],ZM=[ls.action],JM=[ls.action];var xa=class{constructor(){lt(tl,5,this);eD(this,"getCommandsToRun",({name:t,installDependencies:r})=>[`cd ${t?wf(t):"<app_name>"}`,...r?[]:["npm install"],"npm start"]);eD(this,"quit",lt(tl,8,this,t=>{t.quit=!0})),lt(tl,11,this)}registerApp(t,r){t.createdApp=r}incrementStep(t){if(t.stepsComplete)throw new Error("Cannot increment step when all steps are complete");t.currentStepIndex+=1}};tl=il(null),yt(tl,1,"registerApp",ZM,xa),yt(tl,1,"incrementStep",JM,xa),yt(tl,5,"quit",QM,xa),_a(tl,xa);function Ase(e){return e.option("offline",{type:"boolean",describe:"Create the app locally without also creating an app in the Developer Portal."}).option("template",{type:"string",choices:el.map(t=>t.key)}).option("distribution",{type:"string",choices:OM,describe:"Choose a distribution to use for the app"}).option("git",{type:"boolean",describe:"Initialize a git repository"}).option("installDependencies",{type:"boolean",describe:"Install dependencies (using npm)"}).positional("name",{type:"string",describe:"Name of the app you\u2019re creating"}).check(t=>{if(t.name){let r=Cf(t.name);if(!r.valid)throw new Error(r.message)}return!0})}var ej=e=>e.command("create [name]","Create a new Canva app",Ase,t=>{let r=i=>{t.offline=i===!1};Kr({Command:i=>{let s=new Xs(zM,i.services.urlService),o=new xa;return Fse.createElement(bM,{getCommandsToRun:o.getCommandsToRun,onQuit:()=>o.quit(s),incrementStep:()=>o.incrementStep(s),registerApp:a=>o.registerApp(s,a),store:s,project:t,template:t,...t,services:i.services})},shouldPromptUpdate:!t.silenceUpdates,cli:e,args:t,login:t.offline?void 0:{enabled:!0,noLabel:"No (Your app will be created locally, but you will need to manually create it in the Developer Portal)",required:!1,onLoginDecisionChange:r}})});import Ise from"react";import Fn from"react";import{Box as tj,Text as Qy}from"ink";var rj=({appId:e,services:t})=>{let[r,n]=Fn.useState(void 0);return Fn.useEffect(()=>{t.previewService.generatePreviewResult(e).then(i=>n(i))},[]),Fn.useEffect(()=>{r?.success&&t.navigationService.openUrl(r.data)},[r]),r===void 0?Fn.createElement(tj,{marginX:2,marginY:1},Fn.createElement(Bn,{type:"bouncingBall",label:"Generating Preview URL..."})):Fn.createElement(tj,{marginX:2,marginY:1,flexDirection:"column"},Fn.createElement(Qy,null,"Previewing app..."),r.success?Fn.createElement(Fn.Fragment,null,Fn.createElement(Qy,{color:"yellow"},"Warning: To preview your locally running app, ensure a draft app version exists. If no draft version is available, the latest submitted version will be used for preview."),Fn.createElement(Qy,null,Fn.createElement(Dt,{text:"Preview URL",url:r.data}))):Fn.createElement(Qy,{color:"red"},r.message))};function Tse(e){return e.option("appId",{type:"string",describe:"App Id to preview"})}var nj=e=>e.command("preview","Preview current app in a new Canva Design",Tse,t=>{Kr({Command:r=>Ise.createElement(rj,{appId:t.appId,services:r.services}),cli:e,args:t})});var ij=e=>e.command("apps","Manage Canva apps",t=>{t=ej(t),t=DM(t),t=nj(t),t.demandCommand(1,"You need to specify a subcommand.")});import Nse from"react";import Ir from"react";import{Box as sj,Text as D2}from"ink";var oj=({logoutResult:e})=>{let[t,r]=Ir.useState();return Ir.useEffect(()=>{e.then(r)},[e]),t?Ir.createElement(sj,{flexDirection:"column",paddingX:2},t.success?Ir.createElement(Pse,null):Ir.createElement(Lse,{message:t.message,code:t.code})):Ir.createElement(sj,{marginX:2,marginY:1},Ir.createElement(Bn,{type:"bouncingBall",label:"Logging you out..."}))},Pse=()=>Ir.createElement(Ir.Fragment,null,Ir.createElement(D2,null,Ir.createElement(Nt,null,"\u2705")," ",Ir.createElement(D2,{color:"greenBright"},"You have successfully logged out. "),"To log back in, run ",Ir.createElement(Rt,null,"canva login"))),Lse=({message:e,code:t})=>{let r=t==="NO_TOKEN"?"Looks like you are not logged in, so we were unable to log you out.":e;return Ir.createElement(D2,null,Ir.createElement(Nt,null,"\u274C")," ",Ir.createElement(kn,null,`Logout error: ${r}`))};var aj=e=>e.command("logout","Revoke access and log out of the Canva CLI",Ho,t=>{Kr({Command:n=>{let i=n.services.tokenService.revokeToken();return Nse.createElement(oj,{logoutResult:i})},cli:e,args:t})});function Rse(e){return e.version(gl.version).option("lite",{type:"boolean",default:!1,global:!0,describe:"Minimize command line UI for improved accessibility"}).option("dryRun",{type:"boolean",default:!1,global:!0,describe:"Skips the scaffolding step. Useful for testing when making changes to the CLI interface.",hidden:!0}).option("silenceUpdates",{type:"boolean",default:!1,global:!0,describe:"Silences the CLI version update check. Useful for preparing the CLI for release or running in CI.",hidden:!0}).option("debug",{type:"boolean",default:!1,global:!0,describe:"Log info to aid with debugging.",hidden:!0})}var uj=e=>{let t=O_(cD(e)),r=Rse(t);return W5(r),q5(r),mM(r),ij(r),aj(r),r.demandCommand().recommendCommands().strict(!0).help(),r};uj(process.argv).parseSync();
|
|
539
539
|
/*! Bundled license information:
|
|
540
540
|
|
|
541
541
|
deep-extend/lib/deep-extend.js:
|