(()=>{"use strict";var e={37:e=>{e.exports=require("os")},282:e=>{e.exports=require("process")},224:e=>{e.exports=require("tty")},183:(e,r,t)=>{var l=Object.create;var n=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var s=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty;var H=(e,r)=>{for(var t in r)n(e,t,{get:r[t],enumerable:!0})},A=(e,r,t,l)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of i(r))!u.call(e,s)&&s!==t&&n(e,s,{get:()=>r[s],enumerable:!(l=a(r,s))||l.enumerable});return e};var C=(e,r,t)=>(t=e!=null?l(s(e)):{},A(r||!e||!e.__esModule?n(t,"default",{value:e,enumerable:!0}):t,e)),K=e=>A(n({},"__esModule",{value:!0}),e);var f={};H(f,{createLogger:()=>R,logger:()=>D});e.exports=K(f);var v=C(t(282)),_=C(t(37)),O=C(t(224));function c(e,r=(globalThis.Deno?globalThis.Deno.args:v.default.argv)){let t=e.startsWith("-")?"":e.length===1?"-":"--",l=r.indexOf(t+e),n=r.indexOf("--");return l!==-1&&(n===-1||l<n)}var{env:m}=v.default,d;c("no-color")||c("no-colors")||c("color=false")||c("color=never")?d=0:(c("color")||c("colors")||c("color=true")||c("color=always"))&&(d=1);function q(){if("FORCE_COLOR"in m)return m.FORCE_COLOR==="true"?1:m.FORCE_COLOR==="false"?0:m.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(m.FORCE_COLOR,10),3)}function z(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function J(e,{streamIsTTY:r,sniffFlags:t=!0}={}){let l=q();l!==void 0&&(d=l);let n=t?d:l;if(n===0)return 0;if(t){if(c("color=16m")||c("color=full")||c("color=truecolor"))return 3;if(c("color=256"))return 2}if("TF_BUILD"in m&&"AGENT_NAME"in m)return 1;if(e&&!r&&n===void 0)return 0;let a=n||0;if(m.TERM==="dumb")return a;if(v.default.platform==="win32"){let e=_.default.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in m)return"GITHUB_ACTIONS"in m||"GITEA_ACTIONS"in m?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((e=>e in m))||m.CI_NAME==="codeship"?1:a;if("TEAMCITY_VERSION"in m)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(m.TEAMCITY_VERSION)?1:0;if(m.COLORTERM==="truecolor"||m.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in m){let e=Number.parseInt((m.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(m.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(m.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(m.TERM)||"COLORTERM"in m?1:a}function N(e,r={}){let t=J(e,{streamIsTTY:e&&e.isTTY,...r});return z(t)}var b={stdout:N({isTTY:O.default.isatty(1)}),stderr:N({isTTY:O.default.isatty(2)})},p=b;var T=p.stdout?p.stdout.level:0,E=/at\s.*:\d+:\d+[\s\)]*$/,y=/^\s*at\s.*\(<anonymous>\)$/,$=e=>E.test(e)||y.test(e);var g=(e,r,t=e)=>T>=2?l=>{let n=""+l,a=n.indexOf(r,e.length);return~a?e+G(n,r,t,a)+r:e+n+r}:String,G=(e,r,t,l)=>{let n=e.substring(0,l)+t,a=e.substring(l+r.length),i=a.indexOf(r);return~i?n+G(a,r,t,i):n+a},I=g("[1m","[22m","[22m[1m"),M=g("[31m","[39m"),h=g("[32m","[39m"),x=g("[33m","[39m"),w=g("[35m","[39m"),j=g("[36m","[39m"),L=g("[90m","[39m");var P=[189,255,243],Y=[74,194,154],k=e=>!/[\s\n]/.test(e),V=e=>{if(T<3)return T===2?I(j(e)):e;let r=[...e],t=r.filter(k).length,l=P[0],n=P[1],a=P[2],i=(Y[0]-l)/t,s=(Y[1]-n)/t,u=(Y[2]-a)/t,f="";for(let e of r)k(e)&&(l+=i,n+=s,a+=u),f+=`[38;2;${Math.round(l)};${Math.round(n)};${Math.round(a)}m${e}[39m`;return I(f)};var F={error:0,warn:1,info:2,log:3,verbose:4},S={error:{label:"error",level:"error",color:M},warn:{label:"warn",level:"warn",color:x},info:{label:"info",level:"info",color:j},start:{label:"start",level:"info",color:j},ready:{label:"ready",level:"info",color:h},success:{label:"success",level:"info",color:h},log:{level:"log"},debug:{label:"debug",level:"verbose",color:w}};var R=(e={})=>{let r=e.level||"log",o=(e,t,...l)=>{if(F[S[e].level]>F[r])return;if(t==null)return console.log();let n=S[e],a="",i="";if("label"in n&&(a=(n.label||"").padEnd(7),a=I(n.color?n.color(a):a)),t instanceof Error)if(t.stack){let[e,...r]=t.stack.split(`\n`);e.startsWith("Error: ")&&(e=e.slice(7)),i=`${e}\n${L(r.join(`\n`))}`}else i=t.message;else n.level==="error"&&typeof t=="string"?i=t.split(`\n`).map((e=>$(e)?L(e):e)).join(`\n`):i=`${t}`;console.log(a.length?`${a} ${i}`:i,...l)},t={greet:e=>o("log",V(e))};return Object.keys(S).forEach((e=>{t[e]=(...r)=>o(e,...r)})),Object.defineProperty(t,"level",{get:()=>r,set(e){r=e}}),t.override=e=>{Object.assign(t,e)},t};var D=R();0&&0}};var r={};function __nccwpck_require__(t){var l=r[t];if(l!==undefined){return l.exports}var n=r[t]={exports:{}};var a=true;try{e[t](n,n.exports,__nccwpck_require__);a=false}finally{if(a)delete r[t]}return n.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var t=__nccwpck_require__(183);module.exports=t})();