2024-12-10 17:44:50 +08:00
|
|
|
var v0=Object.create;var q=Object.defineProperty;var C0=Object.getOwnPropertyDescriptor;var O0=Object.getOwnPropertyNames;var E0=Object.getPrototypeOf,R0=Object.prototype.hasOwnProperty;var S0=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of O0(r))!R0.call(e,n)&&n!==t&&q(e,n,{get:()=>r[n],enumerable:!(a=C0(r,n))||a.enumerable});return e};var L=(e,r,t)=>(t=e!=null?v0(E0(e)):{},S0(r||!e||!e.__esModule?q(t,"default",{value:e,enumerable:!0}):t,e));var T0=L(require("fs"));var z=(e=0)=>r=>`\x1B[${r+e}m`,Q=(e=0)=>r=>`\x1B[${38+e};5;${r}m`,X=(e=0)=>(r,t,a)=>`\x1B[${38+e};2;${r};${t};${a}m`,x={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]}},e2=Object.keys(x.modifier),N0=Object.keys(x.color),L0=Object.keys(x.bgColor),r2=[...N0,...L0];function M0(){let e=new Map;for(let[r,t]of Object.entries(x)){for(let[a,n]of Object.entries(t))x[a]={open:`\x1B[${n[0]}m`,close:`\x1B[${n[1]}m`},t[a]=x[a],e.set(n[0],n[1]);Object.defineProperty(x,r,{value:t,enumerable:!1})}return Object.defineProperty(x,"codes",{value:e,enumerable:!1}),x.color.close="\x1B[39m",x.bgColor.close="\x1B[49m",x.color.ansi=z(),x.color.ansi256=Q(),x.color.ansi16m=X(),x.bgColor.ansi=z(10),x.bgColor.ansi256=Q(10),x.bgColor.ansi16m=X(10),Object.defineProperties(x,{rgbToAnsi256:{value(r,t,a){return r===t&&t===a?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(t/255*5)+Math.round(a/255*5)},enumerable:!1},hexToRgb:{value(r){let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(r.toString(16));if(!t)return[0,0,0];let[a]=t;a.length===3&&(a=[...a].map(l=>l+l).join(""));let n=Number.parseInt(a,16);return[n>>16&255,n>>8&255,n&255]},enumerable:!1},hexToAnsi256:{value:r=>x.rgbToAnsi256(...x.hexToRgb(r)),enumerable:!1},ansi256ToAnsi:{value(r){if(r<8)return 30+r;if(r<16)return 90+(r-8);let t,a,n;if(r>=232)t=((r-232)*10+8)/255,a=t,n=t;else{r-=16;let d=r%36;t=Math.floor(r/36)/5,a=Math.floor(d/6)/5,n=d%6/5}let l=Math.max(t,a,n)*2;if(l===0)return 30;let s=30+(Math.round(n)<<2|Math.round(a)<<1|Math.round(t));return l===2&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(r,t,a)=>x.ansi256ToAnsi(x.rgbToAnsi256(r,t,a)),enumerable:!1},hexToAnsi:{value:r=>x.ansi256ToAnsi(x.hexToAnsi256(r)),enumerable:!1}}),x}var _0=M0(),T=_0;var w=L(require("process"),1),r0=L(require("os"),1),$=L(require("tty"),1);function y(e,r=globalThis.Deno?globalThis.Deno.args:w.default.argv){let t=e.startsWith("-")?"":e.length===1?"-":"--",a=r.indexOf(t+e),n=r.indexOf("--");return a!==-1&&(n===-1||a<n)}var{env:f}=w.default,k;y("no-color")||y("no-colors")||y("color=false")||y("color=never")?k=0:(y("color")||y("colors")||y("color=true")||y("color=always"))&&(k=1);function I0(){if("FORCE_COLOR"in f)return f.FORCE_COLOR==="true"?1:f.FORCE_COLOR==="false"?0:f.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(f.FORCE_COLOR,10),3)}function B0(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function F0(e,{streamIsTTY:r,sniffFlags:t=!0}={}){let a=I0();a!==void 0&&(k=a);let n=t?k:a;if(n===0)return 0;if(t){if(y("color=16m")||y("color=full")||y("color=truecolor"))return 3;if(y("color=256"))return 2}if("TF_BUILD"in f&&"AGENT_NAME"in f)return 1;if(e&&!r&&n===void 0)return 0;let l=n||0;if(f.TERM==="dumb")return l;if(w.default.platform==="win32"){let s=r0.default.release().split(".");return Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:
|
|
|
|
`,n)}while(a!==-1);return l+=e.slice(n),l}var{stdout:n0,stderr:l0}=t0,P=Symbol("GENERATOR"),R=Symbol("STYLER"),M=Symbol("IS_EMPTY"),s0=["ansi","ansi","ansi256","ansi16m"],S=Object.create(null),w0=(e,r={})=>{if(r.level&&!(Number.isInteger(r.level)&&r.level>=0&&r.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let t=n0?n0.level:0;e.level=r.level===void 0?t:r.level};var Y0=e=>{let r=(...t)=>t.join(" ");return w0(r,e),Object.setPrototypeOf(r,_.prototype),r};function _(e){return Y0(e)}Object.setPrototypeOf(_.prototype,Function.prototype);for(let[e,r]of Object.entries(T))S[e]={get(){let t=Y(this,G(r.open,r.close,this[R]),this[M]);return Object.defineProperty(this,e,{value:t}),t}};S.visible={get(){let e=Y(this,this[R],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var V=(e,r,t,...a)=>e==="rgb"?r==="ansi16m"?T[t].ansi16m(...a):r==="ansi256"?T[t].ansi256(T.rgbToAnsi256(...a)):T[t].ansi(T.rgbToAnsi(...a)):e==="hex"?V("rgb",r,t,...T.hexToRgb(...a)):T[t][e](...a),D0=["rgb","hex","ansi256"];for(let e of D0){S[e]={get(){let{level:t}=this;return function(...a){let n=G(V(e,s0[t],"color",...a),T.color.close,this[R]);return Y(this,n,this[M])}}};let r="bg"+e[0].toUpperCase()+e.slice(1);S[r]={get(){let{level:t}=this;return function(...a){let n=G(V(e,s0[t],"bgColor",...a),T.bgColor.close,this[R]);return Y(this,n,this[M])}}}}var j0=Object.defineProperties(()=>{},{...S,level:{enumerable:!0,get(){return this[P].level},set(e){this[P].level=e}}}),G=(e,r,t)=>{let a,n;return t===void 0?(a=e,n=r):(a=t.openAll+e,n=r+t.closeAll),{open:e,close:r,openAll:a,closeAll:n,parent:t}},Y=(e,r,t)=>{let a=(...n)=>$0(a,n.length===1?""+n[0]:n.join(" "));return Object.setPrototypeOf(a,j0),a[P]=e,a[R]=r,a[M]=t,a},$0=(e,r)=>{if(e.level<=0||!r)return e[M]?"":r;let t=e[R];if(t===void 0)return r;let{openAll:a,closeAll:n}=t;if(r.includes("\x1B"))for(;t!==void 0;)r=o0(r,t.close,t.open),t=t.parent;let l=r.indexOf(`
|
|
|
|
`);return l!==-1&&(r=a0(r,n,a,l)),a+r+n};Object.defineProperties(_.prototype,S);var P0=_(),i2=_({level:l0?l0.level:0});var i=P0;var i0=require("path"),D=[19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,92821,23248,11104,100067,37600,116951,51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42416,83315,21168,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46752,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,23232,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368,23378,19296,42726,42208,53856,60005,54576,23200,30371,38608,19195,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160,43600,111189,27936,44448,84835,37744,18936,18800,25776,92326,59984,27424,108228,43744,37600,53987,51552,54615,54432,55888,23893,22176,42704,21972,21200,43448,43344,46240,46758,44368,21920,43940,42416,21168,45683,26928,29495,27296,44368,84821,19296,42352,21732,53600,59752,54560,55968,92838,22224,19168,43476,41680,53584,62034,54560],c0=["\u6B63","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u51AC","\u814A"],A={0:"\u521D",1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D",7:"\u4E03",8:"\u516B",9:"\u4E5D",10:"\u5341",20:"\u5EFF"},x0=["\u9F20","\u725B","\u864E","\u5154","\u9F99","\u86C7","\u9A6C","\u7F8A","\u7334","\u9E21","\u72D7","\u732A"],u0=["\u7532","\u4E59","\u4E19","\u4E01","\u620A","\u5DF1","\u5E9A","\u8F9B","\u58EC","\u7678"],f0=["\u5B50","\u4E11","\u5BC5","\u536F","\u8FB0","\u5DF3","\u5348","\u672A","\u7533","\u9149","\u620C","\u4EA5"],H=["\u5C0F\u5BD2","\u5927\u5BD2","\u7ACB\u6625","\u96E8\u6C34","\u60CA\u86F0","\u6625\u5206","\u6E05\u660E","\u8C37\u96E8","\u7ACB\u590F","\u5C0F\u6EE1","\u8292\u79CD","\u590F\u81F3","\u5C0F\u6691","\u5927\u6691","\u7ACB\u79CB","\u5904\u6691","\u767D\u9732","\u79CB\u5206","\u5BD2\u9732","\u971C\u964D","\u7ACB\u51AC","\u5C0F\u96EA","\u5927\u96EA","\u51AC\u81F3"],d0=["062004190621052006210622072308230823092408230722","062104190621052106220622082308240824092408230822","062105190621062106220722082408240824092408230823","062105200722062107220722082409240924092408230823","072105200621052006210622072308230823092408230722","062104190621052106220622082308240824092408230822","062105190621062106220622082408240824092408230823","062105200722062107220722082409240924092408230823","072105200621052006210622072308230823092408230722","062104190621052106220622082308240824092408230822","062105190621062106220622082408240824092408230823","062105200722062107220722082409240924092408230823","072105200621052006210622072308230823092408220722","062004190621052106220622082308240823092408230822","062104190621052106220622082408240824092408230823","062105200622062106220722082408240924092408230823","062105200621052006210622072308230823082408220722","062004190621052106210622082308240823092408230822","062104190621052106220622082408240824092408230822","062105200622062106220722082408240924092408230823","062105200621052006210622072308230823082408220722","062004190621052006210622082308240823092408230722","062104190621052106220622082408240824092408230822","062105190621062106220722082408240924092408230823","062105200621052006210622072308230823082408220722","062004190621052006210622082308240823092408230722","062104190621052106220622082308240824092408230822","062105190621062106220722082408240924092408230823","062105200621052006210622072308230823082307220722","062004190621052006210622072308230823092408230722","062104190621052106220622082308240824092408230822","062105190621062106220722082408240824092408230823","062105200621052006210621072308230823082307220722","062004190621052006210622072308230823092408230722","062104190621052106220622082308240824092408230822","
|