@visulima/pail 1.2.2 → 1.3.1
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/CHANGELOG.md +16 -0
- package/README.md +4 -2
- package/dist/index.browser.cjs +1 -1
- package/dist/index.browser.mjs +1 -1
- package/dist/index.server.cjs +4 -4
- package/dist/index.server.mjs +4 -4
- package/dist/processor.browser.cjs +1 -1
- package/dist/processor.browser.d.cts +9 -2
- package/dist/processor.browser.d.mts +9 -2
- package/dist/processor.browser.d.ts +9 -2
- package/dist/processor.browser.mjs +1 -1
- package/dist/processor.server.cjs +1 -1
- package/dist/processor.server.d.cts +2 -1
- package/dist/processor.server.d.mts +2 -1
- package/dist/processor.server.d.ts +2 -1
- package/dist/processor.server.mjs +1 -1
- package/dist/reporter.browser.cjs +2 -2
- package/dist/reporter.browser.mjs +2 -2
- package/dist/reporter.server.cjs +9 -9
- package/dist/reporter.server.d.cts +2 -2
- package/dist/reporter.server.d.mts +2 -2
- package/dist/reporter.server.d.ts +2 -2
- package/dist/reporter.server.mjs +10 -10
- package/dist/shared/{pail.B0AqLGpo.cjs → pail.BjvkVeLq.cjs} +1 -1
- package/dist/shared/{pail.CKgnzwt6.mjs → pail.C1VNf0a-.mjs} +1 -1
- package/dist/shared/pail.CO3y9cQW.mjs +21 -0
- package/dist/shared/pail.CPcDF5FN.cjs +21 -0
- package/dist/shared/pail.CknsteA6.mjs +1 -0
- package/dist/shared/{pail.BlF6_AB7.mjs → pail.CsP1h8ZA.mjs} +1 -1
- package/dist/shared/pail.D0U9y4qH.cjs +1 -0
- package/dist/shared/{pail.nUyAB-mN.cjs → pail.DwLTdhaq.cjs} +1 -1
- package/dist/shared/pail.ULmGeHN5.cjs +1 -0
- package/dist/shared/pail._czpAR0Z.mjs +9 -0
- package/dist/shared/pail.oMoeTQZX.cjs +1 -0
- package/dist/shared/pail.uFyi02gk.mjs +1 -0
- package/dist/shared/pail.xIXzgCNy.mjs +1 -0
- package/dist/shared/pail.zsOZqsvh.cjs +1 -0
- package/package.json +7 -2
- package/dist/shared/pail.B-Tp78gL.cjs +0 -1
- package/dist/shared/pail.Bz_4Ee-U.mjs +0 -1
- package/dist/shared/pail.Cn4oOlxI.mjs +0 -1
- package/dist/shared/pail.D5MfZlaK.mjs +0 -21
- package/dist/shared/pail.DFhaFnnA.cjs +0 -1
- package/dist/shared/pail.DbDZ7fkY.mjs +0 -1
- package/dist/shared/pail.Di3NskY9.cjs +0 -1
- package/dist/shared/pail.NUhULbBB.cjs +0 -21
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
## @visulima/pail [1.3.1](https://github.com/visulima/visulima/compare/@visulima/pail@1.3.0...@visulima/pail@1.3.1) (2024-06-14)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **pail:** fixed rendering of undefined and null as a message ([eb80d23](https://github.com/visulima/visulima/commit/eb80d2309641eb79aed02eafe743d77f6c402d02))
|
|
6
|
+
|
|
7
|
+
### Styles
|
|
8
|
+
|
|
9
|
+
* **pail:** cs fixes ([f1b9549](https://github.com/visulima/visulima/commit/f1b9549bcb24b3f31f8c21dc0b5af30b50e61859))
|
|
10
|
+
|
|
11
|
+
## @visulima/pail [1.3.0](https://github.com/visulima/visulima/compare/@visulima/pail@1.2.2...@visulima/pail@1.3.0) (2024-06-14)
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* **pail:** added new redact processor ([#423](https://github.com/visulima/visulima/issues/423)) ([0614067](https://github.com/visulima/visulima/commit/0614067bec83a46ffe92abfb8a715b2c385b1d7d))
|
|
16
|
+
|
|
1
17
|
## @visulima/pail [1.2.2](https://github.com/visulima/visulima/compare/@visulima/pail@1.2.1...@visulima/pail@1.2.2) (2024-06-14)
|
|
2
18
|
|
|
3
19
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
- Custom pluggable processors and reporters
|
|
43
43
|
- TypeScript support
|
|
44
44
|
- Interactive and regular modes
|
|
45
|
-
- Secrets & sensitive information filtering
|
|
45
|
+
- Secrets & sensitive information filtering
|
|
46
46
|
- Filename, date and timestamp support
|
|
47
47
|
- Scoped loggers and timers
|
|
48
48
|
- Scaled logging levels mechanism
|
|
@@ -121,7 +121,9 @@ A processor can be added to a logger directly (and is subsequently applied to lo
|
|
|
121
121
|
|
|
122
122
|
- `CallerProcessor` - adds the caller information to the log message
|
|
123
123
|
- The Meta Object is extended with a file name, line number and column number
|
|
124
|
-
- `RedactProcessor` - redacts sensitive information from the log message
|
|
124
|
+
- `RedactProcessor` - redacts sensitive information from the log message
|
|
125
|
+
> The redact processor needs the "@visulima/redact" package to work.
|
|
126
|
+
> Use `npm install @visulima/redact`, `pnpm add @visulima/redact` or `yarn add @visulima/redact` to install it.
|
|
125
127
|
- `MessageFormatterProcessor` - formats the log message (Util.format-like unescaped string formatting utility) [@visulima/fmt][fmt]
|
|
126
128
|
- `ErrorProcessor` - serializes the error with cause object to a std error object that can be serialized.
|
|
127
129
|
|
package/dist/index.browser.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var t=Object.defineProperty;var o=(e,r)=>t(e,"name",{value:r,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./shared/pail.
|
|
1
|
+
"use strict";var t=Object.defineProperty;var o=(e,r)=>t(e,"name",{value:r,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./shared/pail.ULmGeHN5.cjs"),i=require("./shared/pail.C0epjAht.cjs"),n=require("./shared/pail.B85Cx0UJ.cjs"),c=require("./shared/pail.oMoeTQZX.cjs");var l=Object.defineProperty,u=o((e,r)=>l(e,"name",{value:r,configurable:!0}),"e");const s=u(e=>new a.PailBrowser({processors:[new n.g,...typeof window<"u"?[new i.L]:[]],reporters:[new c.n],...e}),"createPail"),w=s();exports.createPail=s;exports.pail=w;
|
package/dist/index.browser.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var t=Object.defineProperty;var o=(r,e)=>t(r,"name",{value:e,configurable:!0});import{P as a}from"./shared/pail.
|
|
1
|
+
var t=Object.defineProperty;var o=(r,e)=>t(r,"name",{value:e,configurable:!0});import{P as a}from"./shared/pail.CknsteA6.mjs";import{L as i}from"./shared/pail.CNxJnpWG.mjs";import{g as n}from"./shared/pail.nEbRCLhY.mjs";import{n as p}from"./shared/pail.xIXzgCNy.mjs";var m=Object.defineProperty,f=o((r,e)=>m(r,"name",{value:e,configurable:!0}),"e");const s=f(r=>new a({processors:[new n,...typeof window<"u"?[new i]:[]],reporters:[new p],...r}),"createPail"),v=s();export{s as createPail,v as pail};
|
package/dist/index.server.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var E=Object.defineProperty;var n=(r,t)=>E(r,"name",{value:t,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("node:process"),v=require("./shared/pail.CPcDF5FN.cjs"),I=require("node:string_decoder"),P=require("./shared/pail.ULmGeHN5.cjs"),j=require("./shared/pail.BjvkVeLq.cjs"),M=require("./shared/pail.C0epjAht.cjs"),O=require("./shared/pail.B85Cx0UJ.cjs");var $=Object.defineProperty,A=n((r,t)=>$(r,"name",{value:t,configurable:!0}),"l$1");let R=class{static{n(this,"v")}static{A(this,"InteractiveManager")}#t;#e=!1;#s=!1;#r=0;#i=0;constructor(t,e){this.#t={stderr:e,stdout:t}}get lastLength(){return this.#r}get outside(){return this.#i}get isHooked(){return this.#e}get isSuspended(){return this.#s}erase(t,e=this.#r){if(this.#t[t]===void 0)throw new TypeError(`Stream "${t}" is not available`);this.#t[t].erase(e)}hook(){return this.#e||(Object.values(this.#t).forEach(t=>t.active()),this._clear(!0)),this.#e}resume(t,e){this.#s&&(this.#s=!1,e&&this.erase(t,e),this.#r=0,Object.values(this.#t).forEach(s=>s.active()))}suspend(t,e=!0){this.#s||(this.#s=!0,e&&this.erase(t),Object.values(this.#t).forEach(s=>s.renew()))}unhook(t=!0){return this.#e&&(Object.values(this.#t).forEach(e=>e.inactive(t)),this._clear()),!this.#e}update(t,e,s=0){if(e.length>0){if(this.#t[t]===void 0)throw new TypeError(`Stream "${t}" is not available`);const a=this.#t[t],{columns:p,rows:i}=v.terminalSize(),u=s>i?i-1:Math.max(0,Math.min(i-1,s)),l=this.lastLength-u,d=Math.max(l-i,this.outside);let o=e.reduce((b,L)=>[...b,v.wrapAnsi(L,p,{hard:!0,trim:!1,wordWrap:!0})],[]);i<=l?(a.erase(i),u<d&&(o=o.slice(d-u+1))):l&&a.erase(l),a.write(o.join(`
|
|
2
2
|
`)+`
|
|
3
|
-
`),this.#r=d?d+
|
|
4
|
-
`),this.#e.forEach(e=>{this.write(e)}),this.#e=[]),this.renew()}renew(){this.#r.write=this.#s,this.write(
|
|
5
|
-
`),0):
|
|
3
|
+
`),this.#r=d?d+o.length+1:o.length,this.#i=Math.max(this.lastLength-i,this.outside)}}_clear(t=!1){this.#e=t,this.#r=0,this.#i=0}};var T=Object.defineProperty,m=n((r,t)=>T(r,"name",{value:t,configurable:!0}),"n$1");const c="\x1B[",g=c+"2J",x=c+"2K",N=c+"G",q=m((r=1)=>c+r+"A","cursorUp"),f=process.platform==="win32"?`${g}${c}0f`:`${g}${c}3J${c}H`,D=c+"?25l",B=c+"?25h",k=m(r=>{let t="";for(let e=0;e<r;e++)t+=x+(e<r-1?q():"");return r&&(t+=N),t},"eraseLines");var G=Object.defineProperty,H=n((r,t)=>G(r,"name",{value:t,configurable:!0}),"s$1");let w=class S{static{n(this,"t")}static{H(this,"InteractiveStreamHook")}static DRAIN=!0;#t=new I.StringDecoder;#e=[];#s;#r;constructor(t){this.#s=t.write,this.#r=t}active(){this.write(D),this.#r.write=(t,...e)=>{const s=e.at(-1);return this.#e.push(this.#t.write(typeof t=="string"?Buffer.from(t,typeof e[0]=="string"?e[0]:void 0):Buffer.from(t))),typeof s=="function"&&s(),S.DRAIN}}erase(t){t>0&&this.write(k(t+1))}inactive(t=!1){this.#e.length>0&&(t&&this.write(`
|
|
4
|
+
`),this.#e.forEach(e=>{this.write(e)}),this.#e=[]),this.renew()}renew(){this.#r.write=this.#s,this.write(B)}write(t){this.#s.apply(this.#r,[t])}};var V=Object.defineProperty,Y=n((r,t)=>V(r,"name",{value:t,configurable:!0}),"d");let C=class{static{n(this,"S")}static{Y(this,"RawReporter")}#t;#e;#s;#r;#i=!1;constructor(){this.#e=h.stdout,this.#s=h.stderr}setStdout(t){this.#e=t}setStderr(t){this.#s=t}setStringify(t){this.#t=t}setInteractiveManager(t){this.#r=t}setIsInteractive(t){this.#i=t}log(t){const{context:e,groups:s,message:a,type:p}=t,i=[];if(a!==j.EMPTY_SYMBOL){const o=typeof a=="string"?a:this.#t(a);i.push(o+"")}e&&i.push(...e.map(o=>typeof o=="object"?" "+this.#t(o):" "+o));const u=["error","trace","warn"].includes(p.level)?"stderr":"stdout",l=u==="stderr"?this.#s:this.#e,d=s.map(()=>" ").join("");this.#i&&this.#r!==void 0&&l.isTTY?this.#r.update(u,(d+i.join("")).split(`
|
|
5
|
+
`),0):v.n(d+i.join(""),l)}};var J=Object.defineProperty,U=n((r,t)=>J(r,"name",{value:t,configurable:!0}),"a");class z extends P.PailBrowserImpl{static{n(this,"v")}constructor(t={}){const{interactive:e,rawReporter:s,reporters:a,stderr:p,stdout:i,...u}=t;super(u),this.options=t,this.interactive=e??!1,this.stdout=i,this.stderr=p,this.interactive&&(this.interactiveManager=new R(new w(this.stdout),new w(this.stderr))),Array.isArray(a)&&this.registerReporters(a),this.rawReporter=this.extendReporter(t.rawReporter??new C)}static{U(this,"PailServerImpl")}stdout;stderr;interactiveManager;interactive;scope(...t){if(t.length===0)throw new Error("No scope name was defined.");return this.scopeName=t.flat(),this}getInteractiveManager(){return this.interactiveManager}wrapStd(){this._wrapStream(this.stdout,"log"),this._wrapStream(this.stderr,"log")}restoreStd(){this._restoreStream(this.stdout),this._restoreStream(this.stderr)}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}clear(){this.stdout.write(f),this.stderr.write(f)}extendReporter(t){return typeof t.setStdout=="function"&&t.setStdout(this.stdout),typeof t.setStderr=="function"&&t.setStderr(this.stderr),typeof t.setLoggerTypes=="function"&&t.setLoggerTypes(this.types),typeof t.setStringify=="function"&&t.setStringify(this.stringify),typeof t.setIsInteractive=="function"&&t.setIsInteractive(this.interactive),this.interactive&&typeof t.setInteractiveManager=="function"&&t.setInteractiveManager(this.interactiveManager),t}_wrapStream(t,e){t&&(t.__write||(t.__write=t.write),t.write=s=>{this[e].log(String(s).trim())})}_restoreStream(t){t&&t.__write&&(t.write=t.__write,delete t.__write)}}const F=z;var K=Object.defineProperty,y=n((r,t)=>K(r,"name",{value:t,configurable:!0}),"t");const W=y(()=>h.env.NODE_ENV==="debug"||h.env.DEBUG!==void 0?"debug":h.env.NODE_ENV==="test"?"warning":"informational","_getDefaultLogLevel"),_=y(r=>{let t=W();return h.env.PAIL_LOG_LEVEL!==void 0&&(t=h.env.PAIL_LOG_LEVEL),new F({logLevel:t,processors:[new O.g,new M.L],reporters:[new v.a],stderr:h.stderr,stdout:h.stdout,...r})},"createPail"),Q=_();exports.createPail=_;exports.pail=Q;
|
package/dist/index.server.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var
|
|
1
|
+
var E=Object.defineProperty;var n=(r,t)=>E(r,"name",{value:t,configurable:!0});import{stdout as g,stderr as m,env as d}from"node:process";import{t as I,w as $,n as j,a as M}from"./shared/pail.CO3y9cQW.mjs";import{StringDecoder as O}from"node:string_decoder";import{a as P}from"./shared/pail.CknsteA6.mjs";import{E as A}from"./shared/pail.C1VNf0a-.mjs";import{L as R}from"./shared/pail.CNxJnpWG.mjs";import{g as x}from"./shared/pail.nEbRCLhY.mjs";var N=Object.defineProperty,T=n((r,t)=>N(r,"name",{value:t,configurable:!0}),"l$1");let D=class{static{n(this,"v")}static{T(this,"InteractiveManager")}#t;#e=!1;#s=!1;#r=0;#i=0;constructor(t,e){this.#t={stderr:e,stdout:t}}get lastLength(){return this.#r}get outside(){return this.#i}get isHooked(){return this.#e}get isSuspended(){return this.#s}erase(t,e=this.#r){if(this.#t[t]===void 0)throw new TypeError(`Stream "${t}" is not available`);this.#t[t].erase(e)}hook(){return this.#e||(Object.values(this.#t).forEach(t=>t.active()),this._clear(!0)),this.#e}resume(t,e){this.#s&&(this.#s=!1,e&&this.erase(t,e),this.#r=0,Object.values(this.#t).forEach(s=>s.active()))}suspend(t,e=!0){this.#s||(this.#s=!0,e&&this.erase(t),Object.values(this.#t).forEach(s=>s.renew()))}unhook(t=!0){return this.#e&&(Object.values(this.#t).forEach(e=>e.inactive(t)),this._clear()),!this.#e}update(t,e,s=0){if(e.length>0){if(this.#t[t]===void 0)throw new TypeError(`Stream "${t}" is not available`);const a=this.#t[t],{columns:p,rows:i}=I(),c=s>i?i-1:Math.max(0,Math.min(i-1,s)),l=this.lastLength-c,u=Math.max(l-i,this.outside);let o=e.reduce((b,L)=>[...b,$(L,p,{hard:!0,trim:!1,wordWrap:!0})],[]);i<=l?(a.erase(i),c<u&&(o=o.slice(u-c+1))):l&&a.erase(l),a.write(o.join(`
|
|
2
2
|
`)+`
|
|
3
|
-
`),this.#r=u?u+
|
|
4
|
-
`),this.#e.forEach(e=>{this.write(e)}),this.#e=[]),this.renew()}renew(){this.#r.write=this.#s,this.write(
|
|
5
|
-
`),0):j(
|
|
3
|
+
`),this.#r=u?u+o.length+1:o.length,this.#i=Math.max(this.lastLength-i,this.outside)}}_clear(t=!1){this.#e=t,this.#r=0,this.#i=0}};var B=Object.defineProperty,S=n((r,t)=>B(r,"name",{value:t,configurable:!0}),"n$1");const h="\x1B[",f=h+"2J",k=h+"2K",G=h+"G",H=S((r=1)=>h+r+"A","cursorUp"),v=process.platform==="win32"?`${f}${h}0f`:`${f}${h}3J${h}H`,V=h+"?25l",Y=h+"?25h",C=S(r=>{let t="";for(let e=0;e<r;e++)t+=k+(e<r-1?H():"");return r&&(t+=G),t},"eraseLines");var J=Object.defineProperty,U=n((r,t)=>J(r,"name",{value:t,configurable:!0}),"s$1");let w=class y{static{n(this,"t")}static{U(this,"InteractiveStreamHook")}static DRAIN=!0;#t=new O;#e=[];#s;#r;constructor(t){this.#s=t.write,this.#r=t}active(){this.write(V),this.#r.write=(t,...e)=>{const s=e.at(-1);return this.#e.push(this.#t.write(typeof t=="string"?Buffer.from(t,typeof e[0]=="string"?e[0]:void 0):Buffer.from(t))),typeof s=="function"&&s(),y.DRAIN}}erase(t){t>0&&this.write(C(t+1))}inactive(t=!1){this.#e.length>0&&(t&&this.write(`
|
|
4
|
+
`),this.#e.forEach(e=>{this.write(e)}),this.#e=[]),this.renew()}renew(){this.#r.write=this.#s,this.write(Y)}write(t){this.#s.apply(this.#r,[t])}};var z=Object.defineProperty,K=n((r,t)=>z(r,"name",{value:t,configurable:!0}),"d");let W=class{static{n(this,"S")}static{K(this,"RawReporter")}#t;#e;#s;#r;#i=!1;constructor(){this.#e=g,this.#s=m}setStdout(t){this.#e=t}setStderr(t){this.#s=t}setStringify(t){this.#t=t}setInteractiveManager(t){this.#r=t}setIsInteractive(t){this.#i=t}log(t){const{context:e,groups:s,message:a,type:p}=t,i=[];if(a!==A){const o=typeof a=="string"?a:this.#t(a);i.push(o+"")}e&&i.push(...e.map(o=>typeof o=="object"?" "+this.#t(o):" "+o));const c=["error","trace","warn"].includes(p.level)?"stderr":"stdout",l=c==="stderr"?this.#s:this.#e,u=s.map(()=>" ").join("");this.#i&&this.#r!==void 0&&l.isTTY?this.#r.update(c,(u+i.join("")).split(`
|
|
5
|
+
`),0):j(u+i.join(""),l)}};var q=Object.defineProperty,F=n((r,t)=>q(r,"name",{value:t,configurable:!0}),"a");class Q extends P{static{n(this,"v")}constructor(t={}){const{interactive:e,rawReporter:s,reporters:a,stderr:p,stdout:i,...c}=t;super(c),this.options=t,this.interactive=e??!1,this.stdout=i,this.stderr=p,this.interactive&&(this.interactiveManager=new D(new w(this.stdout),new w(this.stderr))),Array.isArray(a)&&this.registerReporters(a),this.rawReporter=this.extendReporter(t.rawReporter??new W)}static{F(this,"PailServerImpl")}stdout;stderr;interactiveManager;interactive;scope(...t){if(t.length===0)throw new Error("No scope name was defined.");return this.scopeName=t.flat(),this}getInteractiveManager(){return this.interactiveManager}wrapStd(){this._wrapStream(this.stdout,"log"),this._wrapStream(this.stderr,"log")}restoreStd(){this._restoreStream(this.stdout),this._restoreStream(this.stderr)}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}clear(){this.stdout.write(v),this.stderr.write(v)}extendReporter(t){return typeof t.setStdout=="function"&&t.setStdout(this.stdout),typeof t.setStderr=="function"&&t.setStderr(this.stderr),typeof t.setLoggerTypes=="function"&&t.setLoggerTypes(this.types),typeof t.setStringify=="function"&&t.setStringify(this.stringify),typeof t.setIsInteractive=="function"&&t.setIsInteractive(this.interactive),this.interactive&&typeof t.setInteractiveManager=="function"&&t.setInteractiveManager(this.interactiveManager),t}_wrapStream(t,e){t&&(t.__write||(t.__write=t.write),t.write=s=>{this[e].log(String(s).trim())})}_restoreStream(t){t&&t.__write&&(t.write=t.__write,delete t.__write)}}const X=Q;var Z=Object.defineProperty,_=n((r,t)=>Z(r,"name",{value:t,configurable:!0}),"t");const tt=_(()=>d.NODE_ENV==="debug"||d.DEBUG!==void 0?"debug":d.NODE_ENV==="test"?"warning":"informational","_getDefaultLogLevel"),et=_(r=>{let t=tt();return d.PAIL_LOG_LEVEL!==void 0&&(t=d.PAIL_LOG_LEVEL),new X({logLevel:t,processors:[new x,new R],reporters:[new M],stderr:m,stdout:g,...r})},"createPail"),pt=et();export{et as createPail,pt as pail};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./shared/pail.B85Cx0UJ.cjs");exports.MessageFormatterProcessor=e.g;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./shared/pail.B85Cx0UJ.cjs"),r=require("./shared/pail.zsOZqsvh.cjs");exports.MessageFormatterProcessor=e.g;exports.RedactProcessor=r.n;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FormatterFunction } from '@visulima/fmt';
|
|
2
|
-
import { j as StringifyAwareProcessor, M as Meta } from './shared/pail.DFxpsgpn.cjs';
|
|
2
|
+
import { j as StringifyAwareProcessor, M as Meta, P as Processor } from './shared/pail.DFxpsgpn.cjs';
|
|
3
|
+
import { Rules, RedactOptions } from '@visulima/redact';
|
|
3
4
|
import '@visulima/colorize';
|
|
4
5
|
|
|
5
6
|
declare class MessageFormatterProcessor<L extends string = string> implements StringifyAwareProcessor<L> {
|
|
@@ -12,4 +13,10 @@ declare class MessageFormatterProcessor<L extends string = string> implements St
|
|
|
12
13
|
private _format;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
|
-
|
|
16
|
+
declare class RedactProcessor<L extends string = string> implements Processor<L> {
|
|
17
|
+
#private;
|
|
18
|
+
constructor(rules?: Rules, options?: RedactOptions);
|
|
19
|
+
process(meta: Meta<L>): Meta<L>;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { MessageFormatterProcessor, RedactProcessor };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FormatterFunction } from '@visulima/fmt';
|
|
2
|
-
import { j as StringifyAwareProcessor, M as Meta } from './shared/pail.DFxpsgpn.mjs';
|
|
2
|
+
import { j as StringifyAwareProcessor, M as Meta, P as Processor } from './shared/pail.DFxpsgpn.mjs';
|
|
3
|
+
import { Rules, RedactOptions } from '@visulima/redact';
|
|
3
4
|
import '@visulima/colorize';
|
|
4
5
|
|
|
5
6
|
declare class MessageFormatterProcessor<L extends string = string> implements StringifyAwareProcessor<L> {
|
|
@@ -12,4 +13,10 @@ declare class MessageFormatterProcessor<L extends string = string> implements St
|
|
|
12
13
|
private _format;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
|
-
|
|
16
|
+
declare class RedactProcessor<L extends string = string> implements Processor<L> {
|
|
17
|
+
#private;
|
|
18
|
+
constructor(rules?: Rules, options?: RedactOptions);
|
|
19
|
+
process(meta: Meta<L>): Meta<L>;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { MessageFormatterProcessor, RedactProcessor };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FormatterFunction } from '@visulima/fmt';
|
|
2
|
-
import { j as StringifyAwareProcessor, M as Meta } from './shared/pail.DFxpsgpn.js';
|
|
2
|
+
import { j as StringifyAwareProcessor, M as Meta, P as Processor } from './shared/pail.DFxpsgpn.js';
|
|
3
|
+
import { Rules, RedactOptions } from '@visulima/redact';
|
|
3
4
|
import '@visulima/colorize';
|
|
4
5
|
|
|
5
6
|
declare class MessageFormatterProcessor<L extends string = string> implements StringifyAwareProcessor<L> {
|
|
@@ -12,4 +13,10 @@ declare class MessageFormatterProcessor<L extends string = string> implements St
|
|
|
12
13
|
private _format;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
|
-
|
|
16
|
+
declare class RedactProcessor<L extends string = string> implements Processor<L> {
|
|
17
|
+
#private;
|
|
18
|
+
constructor(rules?: Rules, options?: RedactOptions);
|
|
19
|
+
process(meta: Meta<L>): Meta<L>;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { MessageFormatterProcessor, RedactProcessor };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as
|
|
1
|
+
import{g as e}from"./shared/pail.nEbRCLhY.mjs";import{n as a}from"./shared/pail._czpAR0Z.mjs";export{e as MessageFormatterProcessor,a as RedactProcessor};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var l=Object.defineProperty;var t=(o,e)=>l(o,"name",{value:e,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./shared/pail.C0epjAht.cjs"),i=require("./shared/pail.B85Cx0UJ.cjs"),m=require("./shared/pail.zsOZqsvh.cjs");var u=Object.defineProperty,N=t((o,e)=>u(o,"name",{value:e,configurable:!0}),"u");const b=N(()=>{const o=Error.prepareStackTrace;try{let e=[];Error.prepareStackTrace=(s,r)=>{const c=r.slice(1);return e=c,c},new Error().stack;const a=e.reduce((s,r)=>(r.isNative()||r.getFileName()?.includes("pail/dist")||s.push({columnNumber:r.getColumnNumber(),fileName:r.getFileName(),lineNumber:r.getLineNumber()}),s),[])[0];return a?{columnNumber:a.columnNumber??void 0,fileName:a.fileName,lineNumber:a.lineNumber??void 0}:{fileName:"anonymous",lineNumber:void 0}}finally{Error.prepareStackTrace=o}},"getCallerFilename");var d=Object.defineProperty,f=t((o,e)=>d(o,"name",{value:e,configurable:!0}),"r");class g{static{t(this,"a")}static{f(this,"CallerProcessor")}process(e){const{columnNumber:a,fileName:s,lineNumber:r}=b();return e.file={column:a,line:r,name:s},e}}const p=g;exports.ErrorProcessor=n.L;exports.MessageFormatterProcessor=i.g;exports.RedactProcessor=m.n;exports.CallerProcessor=p;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { P as Processor, M as Meta } from './shared/pail.DFxpsgpn.cjs';
|
|
2
|
-
export { MessageFormatterProcessor } from './processor.browser.cjs';
|
|
2
|
+
export { MessageFormatterProcessor, RedactProcessor } from './processor.browser.cjs';
|
|
3
3
|
import '@visulima/colorize';
|
|
4
4
|
import '@visulima/fmt';
|
|
5
|
+
import '@visulima/redact';
|
|
5
6
|
|
|
6
7
|
declare global {
|
|
7
8
|
namespace VisulimaPail {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { P as Processor, M as Meta } from './shared/pail.DFxpsgpn.mjs';
|
|
2
|
-
export { MessageFormatterProcessor } from './processor.browser.mjs';
|
|
2
|
+
export { MessageFormatterProcessor, RedactProcessor } from './processor.browser.mjs';
|
|
3
3
|
import '@visulima/colorize';
|
|
4
4
|
import '@visulima/fmt';
|
|
5
|
+
import '@visulima/redact';
|
|
5
6
|
|
|
6
7
|
declare global {
|
|
7
8
|
namespace VisulimaPail {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { P as Processor, M as Meta } from './shared/pail.DFxpsgpn.js';
|
|
2
|
-
export { MessageFormatterProcessor } from './processor.browser.js';
|
|
2
|
+
export { MessageFormatterProcessor, RedactProcessor } from './processor.browser.js';
|
|
3
3
|
import '@visulima/colorize';
|
|
4
4
|
import '@visulima/fmt';
|
|
5
|
+
import '@visulima/redact';
|
|
5
6
|
|
|
6
7
|
declare global {
|
|
7
8
|
namespace VisulimaPail {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var s=Object.defineProperty;var t=(a,e)=>s(a,"name",{value:e,configurable:!0});import{L as g}from"./shared/pail.CNxJnpWG.mjs";import{g as y}from"./shared/pail.nEbRCLhY.mjs";import{n as k}from"./shared/pail._czpAR0Z.mjs";var m=Object.defineProperty,c=t((a,e)=>m(a,"name",{value:e,configurable:!0}),"u");const i=c(()=>{const a=Error.prepareStackTrace;try{let e=[];Error.prepareStackTrace=(l,r)=>{const n=r.slice(1);return e=n,n},new Error().stack;const o=e.reduce((l,r)=>(r.isNative()||r.getFileName()?.includes("pail/dist")||l.push({columnNumber:r.getColumnNumber(),fileName:r.getFileName(),lineNumber:r.getLineNumber()}),l),[])[0];return o?{columnNumber:o.columnNumber??void 0,fileName:o.fileName,lineNumber:o.lineNumber??void 0}:{fileName:"anonymous",lineNumber:void 0}}finally{Error.prepareStackTrace=a}},"getCallerFilename");var u=Object.defineProperty,N=t((a,e)=>u(a,"name",{value:e,configurable:!0}),"r");class b{static{t(this,"a")}static{N(this,"CallerProcessor")}process(e){const{columnNumber:o,fileName:l,lineNumber:r}=i();return e.file={column:o,line:r,name:l},e}}const f=b;export{f as CallerProcessor,g as ErrorProcessor,y as MessageFormatterProcessor,k as RedactProcessor};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var S=Object.defineProperty;var f=(n,l)=>S(n,"name",{value:l,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=require("./shared/pail.oMoeTQZX.cjs"),o=require("@visulima/colorize/browser"),i=require("@visulima/fmt"),q=require("./shared/pail.BjvkVeLq.cjs"),v=require("./shared/pail.DwLTdhaq.cjs"),Y=require("./shared/pail.3G15muTS.cjs"),C=f(n=>n&&typeof n=="object"&&"default"in n?n.default:n,"_interopDefaultCompat"),O=C(o);var D=Object.defineProperty,k=f((n,l)=>D(n,"name",{value:l,configurable:!0}),"A");class B extends v.AbstractPrettyReporter{static{f(this,"Y")}static{k(this,"PrettyReporter")}constructor(l={}){super({uppercase:{label:!0,...l.uppercase},...l})}log(l){const t=typeof window<"u"&&typeof window.document<"u",_=Y.t(l.type.level),{badge:w,context:x,date:u,error:A,groups:g,label:y,message:P,prefix:d,repeated:h,scope:a,suffix:m,type:T}=l,{color:L}=this._loggerTypes[T.name],R=L?O[L]:o.white,s=[];if(t&&g.length>0){const e=g.map(()=>" ").join(""),r=o.grey("["+g.at(-1)+"]");s.push(i.format(e+r[0],r.slice(1)))}if(u){const e=o.grey(this._styles.dateFormatter(typeof u=="string"?new Date(u):u));t?s.push(i.format(e[0],e.slice(1))):s.push([e[0]+" ",...e.slice(1)])}if(w){const e=R(w);t?s.push(i.format(e[0],e.slice(1))):s.push([e[0]+" ",...e.slice(1)])}else{const e=v.s(this._loggerTypes);if(e.length>0){const r=o.grey(".".repeat(e.length));t?s.push(i.format(r[0]+" ",r.slice(1))):s.push([r[0]+" ",...r.slice(1)])}}const j=q.s(this._loggerTypes);let b;if(h){const e=o.white("["+h+"x]");b=t?i.format(e[0],e.slice(1)):[e[0],...e.slice(1)]}if(y){const e=R(this._formatLabel(y));t?s.push(i.format(e[0],e.slice(1))):s.push([e[0],...e.slice(1)]),b&&s.push(b);let r=j.length-y.length;if(h?r-=String(h).length+3:r+=1,r>0){const c=o.grey(".".repeat(r));t?s.push(i.format(c[0],c.slice(1))):s.push([" "+c[0],...c.slice(1)])}}else{const e=o.grey(".".repeat(j.length+1));t?s.push(i.format(e[0],e.slice(1))):s.push([e[0],...e.slice(1)])}if(Array.isArray(a)&&a.length>0){const e=o.grey("["+a.join(" > ")+"]");t?s.push(i.format(e[0],e.slice(1))):s.push([e[0],...e.slice(1)])}if(d){const e=o.grey((Array.isArray(a)&&a.length>0?". ":" ")+"["+(this._styles.underline.prefix?o.underline(d):d)+"] ");t?s.push(i.format(e[0],e.slice(1))):s.push([e[0],...e.slice(1)])}if(P!==q.EMPTY_SYMBOL&&s.push(P),x&&s.push(...x),A&&s.push(A,`
|
|
2
2
|
|
|
3
3
|
`),m){const e=o.grey(this._styles.underline.suffix?o.underline(m):m);t?s.push(i.format(`
|
|
4
4
|
`+e[0],e.slice(1))):s.push([`
|
|
5
|
-
`+e[0],...e.slice(1)])}if(t)_(...s);else{let e="";const r=[],c=[];for(const p of s)Array.isArray(p)&&p.length>1&&p[0].includes("%c")?(e+=p[0],r.push(...p.slice(1))):c.push(p);_(e+"%c",...r,"",...c)}}_formatLabel(l){let t=this._styles.uppercase.label?l.toUpperCase():l;return t=this._styles.underline.label?o.underline(t):t,this._styles.bold.label&&(t=o.bold(t)),t}}const
|
|
5
|
+
`+e[0],...e.slice(1)])}if(t)_(...s);else{let e="";const r=[],c=[];for(const p of s)Array.isArray(p)&&p.length>1&&p[0].includes("%c")?(e+=p[0],r.push(...p.slice(1))):c.push(p);_(e+"%c",...r,"",...c)}}_formatLabel(l){let t=this._styles.uppercase.label?l.toUpperCase():l;return t=this._styles.underline.label?o.underline(t):t,this._styles.bold.label&&(t=o.bold(t)),t}}const E=B;exports.JsonReporter=M.n;exports.PrettyReporter=E;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var
|
|
1
|
+
var j=Object.defineProperty;var b=(h,r)=>j(h,"name",{value:r,configurable:!0});import{n as V}from"./shared/pail.xIXzgCNy.mjs";import M,{white as Y,grey as o,underline as _,bold as S}from"@visulima/colorize/browser";import{format as i}from"@visulima/fmt";import{s as E,E as O}from"./shared/pail.C1VNf0a-.mjs";import{A as k,s as B}from"./shared/pail.CsP1h8ZA.mjs";import{t as C}from"./shared/pail.BP95fgQZ.mjs";var D=Object.defineProperty,F=b((h,r)=>D(h,"name",{value:r,configurable:!0}),"A");class J extends k{static{b(this,"Y")}static{F(this,"PrettyReporter")}constructor(r={}){super({uppercase:{label:!0,...r.uppercase},...r})}log(r){const t=typeof window<"u"&&typeof window.document<"u",x=C(r.type.level),{badge:A,context:w,date:a,error:P,groups:f,label:y,message:v,prefix:g,repeated:u,scope:c,suffix:m,type:$}=r,{color:R}=this._loggerTypes[$.name],T=R?M[R]:Y,s=[];if(t&&f.length>0){const e=f.map(()=>" ").join(""),l=o("["+f.at(-1)+"]");s.push(i(e+l[0],l.slice(1)))}if(a){const e=o(this._styles.dateFormatter(typeof a=="string"?new Date(a):a));t?s.push(i(e[0],e.slice(1))):s.push([e[0]+" ",...e.slice(1)])}if(A){const e=T(A);t?s.push(i(e[0],e.slice(1))):s.push([e[0]+" ",...e.slice(1)])}else{const e=B(this._loggerTypes);if(e.length>0){const l=o(".".repeat(e.length));t?s.push(i(l[0]+" ",l.slice(1))):s.push([l[0]+" ",...l.slice(1)])}}const L=E(this._loggerTypes);let d;if(u){const e=Y("["+u+"x]");d=t?i(e[0],e.slice(1)):[e[0],...e.slice(1)]}if(y){const e=T(this._formatLabel(y));t?s.push(i(e[0],e.slice(1))):s.push([e[0],...e.slice(1)]),d&&s.push(d);let l=L.length-y.length;if(u?l-=String(u).length+3:l+=1,l>0){const p=o(".".repeat(l));t?s.push(i(p[0],p.slice(1))):s.push([" "+p[0],...p.slice(1)])}}else{const e=o(".".repeat(L.length+1));t?s.push(i(e[0],e.slice(1))):s.push([e[0],...e.slice(1)])}if(Array.isArray(c)&&c.length>0){const e=o("["+c.join(" > ")+"]");t?s.push(i(e[0],e.slice(1))):s.push([e[0],...e.slice(1)])}if(g){const e=o((Array.isArray(c)&&c.length>0?". ":" ")+"["+(this._styles.underline.prefix?_(g):g)+"] ");t?s.push(i(e[0],e.slice(1))):s.push([e[0],...e.slice(1)])}if(v!==O&&s.push(v),w&&s.push(...w),P&&s.push(P,`
|
|
2
2
|
|
|
3
3
|
`),m){const e=o(this._styles.underline.suffix?_(m):m);t?s.push(i(`
|
|
4
4
|
`+e[0],e.slice(1))):s.push([`
|
|
5
|
-
`+e[0],...e.slice(1)])}if(t)x(...s);else{let e="";const l=[],p=[];for(const n of s)Array.isArray(n)&&n.length>1&&n[0].includes("%c")?(e+=n[0],l.push(...n.slice(1))):p.push(n);x(e+"%c",...l,"",...p)}}_formatLabel(r){let t=this._styles.uppercase.label?r.toUpperCase():r;return t=this._styles.underline.label?_(t):t,this._styles.bold.label&&(t=
|
|
5
|
+
`+e[0],...e.slice(1)])}if(t)x(...s);else{let e="";const l=[],p=[];for(const n of s)Array.isArray(n)&&n.length>1&&n[0].includes("%c")?(e+=n[0],l.push(...n.slice(1))):p.push(n);x(e+"%c",...l,"",...p)}}_formatLabel(r){let t=this._styles.uppercase.label?r.toUpperCase():r;return t=this._styles.underline.label?_(t):t,this._styles.bold.label&&(t=S(t)),t}}const K=J;export{V as JsonReporter,K as PrettyReporter};
|
package/dist/reporter.server.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";var
|
|
2
|
-
`)}}var
|
|
3
|
-
`,r)}}const
|
|
1
|
+
"use strict";var F=Object.defineProperty;var n=(t,e)=>F(t,"name",{value:e,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("./shared/pail.BjvkVeLq.cjs"),m=require("node:process"),o=require("./shared/pail.CPcDF5FN.cjs"),J=require("./shared/pail.D0U9y4qH.cjs"),a=require("@visulima/colorize"),T=require("./shared/pail.DwLTdhaq.cjs"),E=n(t=>t&&typeof t=="object"&&"default"in t?t.default:t,"_interopDefaultCompat"),Y=E(a);var z=Object.defineProperty,I=n((t,e)=>z(t,"name",{value:e,configurable:!0}),"e");class k{static{n(this,"n")}static{I(this,"SafeStreamHandler")}#e=!0;#t;#s;constructor(e,s){this.#t=e,this.#s=s}write(e){this.writeStream(e)}end(...e){this.#t.end(...e)}get isReady(){return this.#e}writeStream(e){if(!this.#e){console.warn("Stream busy: "+this.#s+'. Write will be dropped: "'+e+'"');return}this.#e=!1,this.#t.on("error",s=>{throw s}),this.#t.on("drain",()=>{this.#e=!0}),this.#t.on("finish",()=>{this.#e=!0}),this.#e=this.#t.write(e,()=>{})}}var W=Object.defineProperty,B=n((t,e)=>W(t,"name",{value:e,configurable:!0}),"r$3");class C{static{n(this,"o")}static{B(this,"RotatingFileStream")}#e;#t;#s;#r;#i;constructor(e,s=!1,r={}){if(this.#e=e,this.#t=s,this.#r=r,!this.#t){try{this.#i=require("rotating-file-stream").createStream}catch{throw new Error("The 'rotating-file-stream' package is missing. Make sure to install the 'rotating-file-stream' package.")}this.#s=this.#i(this.#e,r)}}write(e){let s=this.#s;this.#t&&(s=this.#i(this.#e,this.#r));const r=new k(s,this.#e);r.write(e),this.#t&&r.end()}end(){this.#s!==void 0&&this.#s.end()}}var D=Object.defineProperty,G=n((t,e)=>D(t,"name",{value:e,configurable:!0}),"r$2");class q{static{n(this,"AbstractFileReporter")}static{G(this,"AbstractFileReporter")}stream;constructor(e){const{filePath:s,writeImmediately:r=!1,...c}=e;this.stream=new C(s,r,c)}log(e){this.stream.write(this._formatMessage(e)+`
|
|
2
|
+
`)}}var H=Object.defineProperty,K=n((t,e)=>H(t,"name",{value:e,configurable:!0}),"r$1");class N extends q{static{n(this,"f")}static{K(this,"JsonFileReporter")}#e;constructor(e){super({compress:"gzip",interval:"1d",size:"10M",...e})}setStringify(e){this.#e=e}_formatMessage(e){const{file:s,message:r,type:c,...h}=e;return h.label&&(h.label=h.label.trim()),s&&(h.file=s.name+":"+s.line+(s.column?":"+s.column:"")),r===S.EMPTY_SYMBOL?h.message=void 0:h.message=r,this.#e(h)}}const Q=N;var U=Object.defineProperty,V=n((t,e)=>U(t,"name",{value:e,configurable:!0}),"r");class X extends J.f{static{n(this,"a")}static{V(this,"JsonReporter")}#e;#t;constructor(){super(),this.#e=m.stdout,this.#t=m.stderr}setStdout(e){this.#e=e}setStderr(e){this.#t=e}_log(e,s){const r=["error","warn"].includes(s)?this.#t:this.#e;o.n(e+`
|
|
3
|
+
`,r)}}const Z=X;var ee=Object.defineProperty,te=n((t,e)=>ee(t,"name",{value:e,configurable:!0}),"R");class se extends T.AbstractPrettyReporter{static{n(this,"q")}static{te(this,"SimpleReporter")}#e;#t;#s;#r=!1;constructor(e={}){super({uppercase:{label:!0,...e.uppercase},...e}),this.#e=m.stdout,this.#t=m.stderr}setStdout(e){this.#e=e}setStderr(e){this.#t=e}setInteractiveManager(e){this.#s=e}setIsInteractive(e){this.#r=e}log(e){this._log(this._formatMessage(e),e.type.level)}_formatMessage(e){const{columns:s}=o.terminalSize();let r=s;typeof this._styles.messageLength=="number"&&(r=this._styles.messageLength);const{badge:c,context:h,date:g,error:R,file:d,groups:y,label:b,message:f,prefix:v,repeated:j,scope:w,suffix:_,traceError:P,type:O}=e,{color:M}=this._loggerTypes[O.name],$=M?Y[M]:a.white,u=y.map(()=>" ").join(""),i=[];if(y.length>0&&i.push(u+a.grey("["+y.at(-1)+"]")+" "),g&&i.push(a.grey(this._styles.dateFormatter(typeof g=="string"?new Date(g):g))+" "),c)i.push(a.bold($(c)));else{const l=T.s(this._loggerTypes);l.length>0&&i.push(a.grey(" ".repeat(l.length)))}const x=S.s(this._loggerTypes);b?i.push(a.bold($(o.n$1(b,this._styles)))+" "," ".repeat(x.length-o.stringLength(b))):i.push(" ".repeat(x.length+1)),j&&i.push(a.bgGrey.white("["+j+"x]")+" "),Array.isArray(w)&&w.length>0&&i.push(a.grey("["+w.join(" > ")+"]")+" "),v&&i.push(a.grey("["+(this._styles.underline.prefix?a.underline(v):v)+"]")+" ");const L=o.stringLength(i.join(""));if(f!==S.EMPTY_SYMBOL){const l=typeof f=="string"?f:this._stringify(f);i.push(u+o.wrapAnsi(l??"undefined",r-3,{hard:!0,trim:!0,wordWrap:!0}))}if(h){let l=!1;i.push(...h.map(p=>{if(p instanceof Error)return l=!0,`
|
|
4
4
|
|
|
5
|
-
`+
|
|
5
|
+
`+o.w(p,r,u);if(typeof p=="object")return" "+this._stringify(p);const A=(l?`
|
|
6
6
|
|
|
7
|
-
`:" ")+p;return l=!1,
|
|
8
|
-
`,
|
|
9
|
-
`)}return i.join("")}_log(
|
|
10
|
-
`),0):
|
|
11
|
-
`,
|
|
7
|
+
`:" ")+p;return l=!1,A}))}if(R&&i.push(o.w(R,r,u)),P&&i.push(o.w(P,r,u,!0)),_&&i.push(" "+u+a.grey(this._styles.underline.suffix?a.underline(_):_)),d){const l=d.name+(d.line?":"+d.line:"");i.push(`
|
|
8
|
+
`,a.grey("Caller: ")," ".repeat(L-8),l,`
|
|
9
|
+
`)}return i.join("")}_log(e,s){const r=["error","trace","warn"].includes(s)?"stderr":"stdout",c=r==="stderr"?this.#t:this.#e;this.#r&&this.#s!==void 0&&c.isTTY?this.#s.update(r,e.split(`
|
|
10
|
+
`),0):o.n(e+`
|
|
11
|
+
`,c)}}const re=se;exports.PrettyReporter=o.a;exports.AbstractFileReporter=q;exports.JsonFileReporter=Q;exports.JsonReporter=Z;exports.SimpleReporter=re;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Options as Options$1 } from 'rotating-file-stream';
|
|
2
|
-
import { R as Reporter, g as ReadonlyMeta,
|
|
2
|
+
import { R as Reporter, g as ReadonlyMeta, S as StreamAwareReporter, e as LiteralUnion, E as ExtendedRfc5424LogLevels, i as InteractiveStreamReporter, I as InteractiveManager } from './shared/pail.DFxpsgpn.cjs';
|
|
3
3
|
import { A as AbstractJsonReporter, a as AbstractPrettyReporter, P as PrettyStyleOptions } from './shared/pail.BJCog1dH.cjs';
|
|
4
4
|
import '@visulima/colorize';
|
|
5
5
|
import 'safe-stable-stringify';
|
|
@@ -26,7 +26,7 @@ declare class JsonFileReporter<L extends string = string> extends AbstractFileRe
|
|
|
26
26
|
#private;
|
|
27
27
|
constructor(options: Options);
|
|
28
28
|
setStringify(function_: any): void;
|
|
29
|
-
protected _formatMessage(meta:
|
|
29
|
+
protected _formatMessage(meta: ReadonlyMeta<L>): string;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
declare class JsonReporter<L extends string = string> extends AbstractJsonReporter<L> implements StreamAwareReporter<L> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Options as Options$1 } from 'rotating-file-stream';
|
|
2
|
-
import { R as Reporter, g as ReadonlyMeta,
|
|
2
|
+
import { R as Reporter, g as ReadonlyMeta, S as StreamAwareReporter, e as LiteralUnion, E as ExtendedRfc5424LogLevels, i as InteractiveStreamReporter, I as InteractiveManager } from './shared/pail.DFxpsgpn.mjs';
|
|
3
3
|
import { A as AbstractJsonReporter, a as AbstractPrettyReporter, P as PrettyStyleOptions } from './shared/pail.CLIvV09S.mjs';
|
|
4
4
|
import '@visulima/colorize';
|
|
5
5
|
import 'safe-stable-stringify';
|
|
@@ -26,7 +26,7 @@ declare class JsonFileReporter<L extends string = string> extends AbstractFileRe
|
|
|
26
26
|
#private;
|
|
27
27
|
constructor(options: Options);
|
|
28
28
|
setStringify(function_: any): void;
|
|
29
|
-
protected _formatMessage(meta:
|
|
29
|
+
protected _formatMessage(meta: ReadonlyMeta<L>): string;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
declare class JsonReporter<L extends string = string> extends AbstractJsonReporter<L> implements StreamAwareReporter<L> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Options as Options$1 } from 'rotating-file-stream';
|
|
2
|
-
import { R as Reporter, g as ReadonlyMeta,
|
|
2
|
+
import { R as Reporter, g as ReadonlyMeta, S as StreamAwareReporter, e as LiteralUnion, E as ExtendedRfc5424LogLevels, i as InteractiveStreamReporter, I as InteractiveManager } from './shared/pail.DFxpsgpn.js';
|
|
3
3
|
import { A as AbstractJsonReporter, a as AbstractPrettyReporter, P as PrettyStyleOptions } from './shared/pail.Dn8rOK4m.js';
|
|
4
4
|
import '@visulima/colorize';
|
|
5
5
|
import 'safe-stable-stringify';
|
|
@@ -26,7 +26,7 @@ declare class JsonFileReporter<L extends string = string> extends AbstractFileRe
|
|
|
26
26
|
#private;
|
|
27
27
|
constructor(options: Options);
|
|
28
28
|
setStringify(function_: any): void;
|
|
29
|
-
protected _formatMessage(meta:
|
|
29
|
+
protected _formatMessage(meta: ReadonlyMeta<L>): string;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
declare class JsonReporter<L extends string = string> extends AbstractJsonReporter<L> implements StreamAwareReporter<L> {
|
package/dist/reporter.server.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var L=Object.defineProperty;var a=(r,t)=>L(r,"name",{value:t,configurable:!0});import{E as A,s as k}from"./shared/pail.C1VNf0a-.mjs";import{stdout as O,stderr as F}from"node:process";import{n as E,t as q,b as W,s as P,w as Y,c as w}from"./shared/pail.CO3y9cQW.mjs";import{a as Rt}from"./shared/pail.CO3y9cQW.mjs";import{f as B}from"./shared/pail.uFyi02gk.mjs";import C,{white as D,grey as l,bold as M,bgGrey as G,underline as T}from"@visulima/colorize";import{A as H,s as K}from"./shared/pail.CsP1h8ZA.mjs";
|
|
2
2
|
// -- pack CommonJS Shims --
|
|
3
3
|
import __cjs_url__ from "node:url";
|
|
4
4
|
import __cjs_path__ from "node:path";
|
|
@@ -6,14 +6,14 @@ import __cjs_mod__ from "node:module";
|
|
|
6
6
|
const __filename = __cjs_url__.fileURLToPath(import.meta.url);
|
|
7
7
|
const __dirname = __cjs_path__.dirname(__filename);
|
|
8
8
|
const require = __cjs_mod__.createRequire(import.meta.url);
|
|
9
|
-
var
|
|
10
|
-
`)}}var rt=Object.defineProperty,it=
|
|
11
|
-
`,
|
|
9
|
+
var N=Object.defineProperty,Q=a((r,t)=>N(r,"name",{value:t,configurable:!0}),"e");class U{static{a(this,"n")}static{Q(this,"SafeStreamHandler")}#t=!0;#e;#s;constructor(t,e){this.#e=t,this.#s=e}write(t){this.writeStream(t)}end(...t){this.#e.end(...t)}get isReady(){return this.#t}writeStream(t){if(!this.#t){console.warn("Stream busy: "+this.#s+'. Write will be dropped: "'+t+'"');return}this.#t=!1,this.#e.on("error",e=>{throw e}),this.#e.on("drain",()=>{this.#t=!0}),this.#e.on("finish",()=>{this.#t=!0}),this.#t=this.#e.write(t,()=>{})}}var V=Object.defineProperty,X=a((r,t)=>V(r,"name",{value:t,configurable:!0}),"r$3");class Z{static{a(this,"o")}static{X(this,"RotatingFileStream")}#t;#e;#s;#r;#i;constructor(t,e=!1,s={}){if(this.#t=t,this.#e=e,this.#r=s,!this.#e){try{this.#i=require("rotating-file-stream").createStream}catch{throw new Error("The 'rotating-file-stream' package is missing. Make sure to install the 'rotating-file-stream' package.")}this.#s=this.#i(this.#t,s)}}write(t){let e=this.#s;this.#e&&(e=this.#i(this.#t,this.#r));const s=new U(e,this.#t);s.write(t),this.#e&&s.end()}end(){this.#s!==void 0&&this.#s.end()}}var tt=Object.defineProperty,et=a((r,t)=>tt(r,"name",{value:t,configurable:!0}),"r$2");class st{static{a(this,"AbstractFileReporter")}static{et(this,"AbstractFileReporter")}stream;constructor(t){const{filePath:e,writeImmediately:s=!1,...h}=t;this.stream=new Z(e,s,h)}log(t){this.stream.write(this._formatMessage(t)+`
|
|
10
|
+
`)}}var rt=Object.defineProperty,it=a((r,t)=>rt(r,"name",{value:t,configurable:!0}),"r$1");class at extends st{static{a(this,"f")}static{it(this,"JsonFileReporter")}#t;constructor(t){super({compress:"gzip",interval:"1d",size:"10M",...t})}setStringify(t){this.#t=t}_formatMessage(t){const{file:e,message:s,type:h,...n}=t;return n.label&&(n.label=n.label.trim()),e&&(n.file=e.name+":"+e.line+(e.column?":"+e.column:"")),s===A?n.message=void 0:n.message=s,this.#t(n)}}const vt=at;var nt=Object.defineProperty,ot=a((r,t)=>nt(r,"name",{value:t,configurable:!0}),"r");class ht extends B{static{a(this,"a")}static{ot(this,"JsonReporter")}#t;#e;constructor(){super(),this.#t=O,this.#e=F}setStdout(t){this.#t=t}setStderr(t){this.#e=t}_log(t,e){const s=["error","warn"].includes(e)?this.#e:this.#t;E(t+`
|
|
11
|
+
`,s)}}const wt=ht;var lt=Object.defineProperty,ct=a((r,t)=>lt(r,"name",{value:t,configurable:!0}),"R");class pt extends H{static{a(this,"q")}static{ct(this,"SimpleReporter")}#t;#e;#s;#r=!1;constructor(t={}){super({uppercase:{label:!0,...t.uppercase},...t}),this.#t=O,this.#e=F}setStdout(t){this.#t=t}setStderr(t){this.#e=t}setInteractiveManager(t){this.#s=t}setIsInteractive(t){this.#r=t}log(t){this._log(this._formatMessage(t),t.type.level)}_formatMessage(t){const{columns:e}=q();let s=e;typeof this._styles.messageLength=="number"&&(s=this._styles.messageLength);const{badge:h,context:n,date:u,error:_,file:m,groups:g,label:d,message:f,prefix:y,repeated:S,scope:b,suffix:v,traceError:$,type:J}=t,{color:R}=this._loggerTypes[J.name],j=R?C[R]:D,c=g.map(()=>" ").join(""),i=[];if(g.length>0&&i.push(c+l("["+g.at(-1)+"]")+" "),u&&i.push(l(this._styles.dateFormatter(typeof u=="string"?new Date(u):u))+" "),h)i.push(M(j(h)));else{const o=K(this._loggerTypes);o.length>0&&i.push(l(" ".repeat(o.length)))}const x=k(this._loggerTypes);d?i.push(M(j(W(d,this._styles)))+" "," ".repeat(x.length-P(d))):i.push(" ".repeat(x.length+1)),S&&i.push(G.white("["+S+"x]")+" "),Array.isArray(b)&&b.length>0&&i.push(l("["+b.join(" > ")+"]")+" "),y&&i.push(l("["+(this._styles.underline.prefix?T(y):y)+"]")+" ");const z=P(i.join(""));if(f!==A){const o=typeof f=="string"?f:this._stringify(f);i.push(c+Y(o??"undefined",s-3,{hard:!0,trim:!0,wordWrap:!0}))}if(n){let o=!1;i.push(...n.map(p=>{if(p instanceof Error)return o=!0,`
|
|
12
12
|
|
|
13
|
-
`+
|
|
13
|
+
`+w(p,s,c);if(typeof p=="object")return" "+this._stringify(p);const I=(o?`
|
|
14
14
|
|
|
15
|
-
`:" ")+p;return
|
|
16
|
-
`,
|
|
17
|
-
`)}return i.join("")}_log(t,e){const
|
|
18
|
-
`),0):
|
|
19
|
-
`,
|
|
15
|
+
`:" ")+p;return o=!1,I}))}if(_&&i.push(w(_,s,c)),$&&i.push(w($,s,c,!0)),v&&i.push(" "+c+l(this._styles.underline.suffix?T(v):v)),m){const o=m.name+(m.line?":"+m.line:"");i.push(`
|
|
16
|
+
`,l("Caller: ")," ".repeat(z-8),o,`
|
|
17
|
+
`)}return i.join("")}_log(t,e){const s=["error","trace","warn"].includes(e)?"stderr":"stdout",h=s==="stderr"?this.#e:this.#t;this.#r&&this.#s!==void 0&&h.isTTY?this.#s.update(s,t.split(`
|
|
18
|
+
`),0):E(t+`
|
|
19
|
+
`,h)}}const _t=pt;export{st as AbstractFileReporter,vt as JsonFileReporter,wt as JsonReporter,Rt as PrettyReporter,_t as SimpleReporter};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var t=Object.defineProperty;var a=(e,l)=>t(e,"name",{value:l,configurable:!0});const n={alert:7,critical:6,debug:1,emergency:8,error:5,informational:2,notice:3,trace:2,warning:4},i={alert:{color:"red",label:"alert",logLevel:"alert"},await:{color:"blue",label:"awaiting",logLevel:"informational"},complete:{color:"cyan",label:"complete",logLevel:"informational"},critical:{color:"redBright",label:"critical",logLevel:"critical"},debug:{color:"gray",label:"debug",logLevel:"debug"},emergency:{color:"redBright",label:"emergency",logLevel:"emergency"},error:{color:"red",label:"error",logLevel:"error"},info:{color:"blueBright",label:"info",logLevel:"informational"},log:{label:"",logLevel:"informational"},notice:{color:"magentaBright",label:"notice",logLevel:"notice"},pending:{color:"magenta",label:"pending",logLevel:"informational"},start:{color:"greenBright",label:"start",logLevel:"informational"},stop:{color:"red",label:"stop",logLevel:"informational"},success:{color:"green",label:"success",logLevel:"informational"},trace:{color:"cyanBright",label:"trace",logLevel:"trace"},wait:{color:"blue",label:"waiting",logLevel:"informational"},warn:{color:"yellow",label:"warning",logLevel:"warning"},watch:{color:"yellowBright",label:"watching",logLevel:"informational"}};var
|
|
1
|
+
"use strict";var t=Object.defineProperty;var a=(e,l)=>t(e,"name",{value:l,configurable:!0});const n={alert:7,critical:6,debug:1,emergency:8,error:5,informational:2,notice:3,trace:2,warning:4},i={alert:{color:"red",label:"alert",logLevel:"alert"},await:{color:"blue",label:"awaiting",logLevel:"informational"},complete:{color:"cyan",label:"complete",logLevel:"informational"},critical:{color:"redBright",label:"critical",logLevel:"critical"},debug:{color:"gray",label:"debug",logLevel:"debug"},emergency:{color:"redBright",label:"emergency",logLevel:"emergency"},error:{color:"red",label:"error",logLevel:"error"},info:{color:"blueBright",label:"info",logLevel:"informational"},log:{label:"",logLevel:"informational"},notice:{color:"magentaBright",label:"notice",logLevel:"notice"},pending:{color:"magenta",label:"pending",logLevel:"informational"},start:{color:"greenBright",label:"start",logLevel:"informational"},stop:{color:"red",label:"stop",logLevel:"informational"},success:{color:"green",label:"success",logLevel:"informational"},trace:{color:"cyanBright",label:"trace",logLevel:"trace"},wait:{color:"blue",label:"waiting",logLevel:"informational"},warn:{color:"yellow",label:"warning",logLevel:"warning"},watch:{color:"yellowBright",label:"watching",logLevel:"informational"}},c=Symbol("EMPTY");var g=Object.defineProperty,b=a((e,l)=>g(e,"name",{value:l,configurable:!0}),"g");const L=b(e=>{const l=Object.keys(e).map(o=>e[o].label??"");return l.length===0?"":l.reduce((o,r)=>o.length>r.length?o:r)},"getLongestLabel");exports.EMPTY_SYMBOL=c;exports.EXTENDED_RFC_5424_LOG_LEVELS=n;exports.LOG_TYPES=i;exports.s=L;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var t=Object.defineProperty;var
|
|
1
|
+
var t=Object.defineProperty;var r=(e,l)=>t(e,"name",{value:l,configurable:!0});const g={alert:7,critical:6,debug:1,emergency:8,error:5,informational:2,notice:3,trace:2,warning:4},b={alert:{color:"red",label:"alert",logLevel:"alert"},await:{color:"blue",label:"awaiting",logLevel:"informational"},complete:{color:"cyan",label:"complete",logLevel:"informational"},critical:{color:"redBright",label:"critical",logLevel:"critical"},debug:{color:"gray",label:"debug",logLevel:"debug"},emergency:{color:"redBright",label:"emergency",logLevel:"emergency"},error:{color:"red",label:"error",logLevel:"error"},info:{color:"blueBright",label:"info",logLevel:"informational"},log:{label:"",logLevel:"informational"},notice:{color:"magentaBright",label:"notice",logLevel:"notice"},pending:{color:"magenta",label:"pending",logLevel:"informational"},start:{color:"greenBright",label:"start",logLevel:"informational"},stop:{color:"red",label:"stop",logLevel:"informational"},success:{color:"green",label:"success",logLevel:"informational"},trace:{color:"cyanBright",label:"trace",logLevel:"trace"},wait:{color:"blue",label:"waiting",logLevel:"informational"},warn:{color:"yellow",label:"warning",logLevel:"warning"},watch:{color:"yellowBright",label:"watching",logLevel:"informational"}},L=Symbol("EMPTY");var n=Object.defineProperty,i=r((e,l)=>n(e,"name",{value:l,configurable:!0}),"g");const m=i(e=>{const l=Object.keys(e).map(o=>e[o].label??"");return l.length===0?"":l.reduce((o,a)=>o.length>a.length?o:a)},"getLongestLabel");export{L as E,b as L,g as a,m as s};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
var eD=Object.defineProperty;var E=(D,u)=>eD(D,"name",{value:u,configurable:!0});import b,{stdout as ED,stderr as CD}from"node:process";import tD,{red as rD,grey as g,cyan as nD,underline as I,bold as BD,white as sD,bgGrey as iD}from"@visulima/colorize";import{execFileSync as oD}from"node:child_process";import w from"node:fs";import aD from"node:tty";import{s as AD,E as lD}from"./pail.C1VNf0a-.mjs";import{A as cD,s as fD}from"./pail.CsP1h8ZA.mjs";const q=80,H=24,L=E((D,u,{shell:F,env:e}={})=>oD(D,u,{encoding:"utf8",stdio:["ignore","pipe","ignore"],timeout:500,shell:F,env:e}).trim(),"exec$1"),x=E((D,u)=>({columns:Number.parseInt(D,10),rows:Number.parseInt(u,10)}),"create"),J=E((D,u)=>{const{columns:F,rows:e}=x(D,u);if(!(Number.isNaN(F)||Number.isNaN(e))&&!(F===q&&e===H))return{columns:F,rows:e}},"createIfNotDefault");function gD(){const{env:D,stdout:u,stderr:F}=b;if(u?.columns&&u?.rows)return x(u.columns,u.rows);if(F?.columns&&F?.rows)return x(F.columns,F.rows);if(D.COLUMNS&&D.LINES)return x(D.COLUMNS,D.LINES);const e={columns:q,rows:H};return b.platform==="win32"?T()??e:b.platform==="darwin"?G()??T()??e:G()??T()??hD()??e}E(gD,"terminalSize");const G=E(()=>{try{const D=b.platform==="darwin"?w.constants.O_EVTONLY|w.constants.O_NONBLOCK:w.constants.O_NONBLOCK,{columns:u,rows:F}=aD.WriteStream(w.openSync("/dev/tty",D));return{columns:u,rows:F}}catch{}},"devTty"),T=E(()=>{try{const D=L("tput",["cols"],{env:{TERM:"dumb",...b.env}}),u=L("tput",["lines"],{env:{TERM:"dumb",...b.env}});if(D&&u)return J(D,u)}catch{}},"tput"),hD=E(()=>{try{const D=L("resize",["-u"]).match(/\d+/g);if(D.length===2)return J(D[0],D[1])}catch{}},"resize");function pD({onlyFirst:D=!1}={}){const u=["[\\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(u,D?void 0:"g")}E(pD,"ansiRegex");const dD=pD();function R(D){if(typeof D!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof D}\``);return D.replace(dD,"")}E(R,"stripAnsi");function mD(D){return D===161||D===164||D===167||D===168||D===170||D===173||D===174||D>=176&&D<=180||D>=182&&D<=186||D>=188&&D<=191||D===198||D===208||D===215||D===216||D>=222&&D<=225||D===230||D>=232&&D<=234||D===236||D===237||D===240||D===242||D===243||D>=247&&D<=250||D===252||D===254||D===257||D===273||D===275||D===283||D===294||D===295||D===299||D>=305&&D<=307||D===312||D>=319&&D<=322||D===324||D>=328&&D<=331||D===333||D===338||D===339||D===358||D===359||D===363||D===462||D===464||D===466||D===468||D===470||D===472||D===474||D===476||D===593||D===609||D===708||D===711||D>=713&&D<=715||D===717||D===720||D>=728&&D<=731||D===733||D===735||D>=768&&D<=879||D>=913&&D<=929||D>=931&&D<=937||D>=945&&D<=961||D>=963&&D<=969||D===1025||D>=1040&&D<=1103||D===1105||D===8208||D>=8211&&D<=8214||D===8216||D===8217||D===8220||D===8221||D>=8224&&D<=8226||D>=8228&&D<=8231||D===8240||D===8242||D===8243||D===8245||D===8251||D===8254||D===8308||D===8319||D>=8321&&D<=8324||D===8364||D===8451||D===8453||D===8457||D===8467||D===8470||D===8481||D===8482||D===8486||D===8491||D===8531||D===8532||D>=8539&&D<=8542||D>=8544&&D<=8555||D>=8560&&D<=8569||D===8585||D>=8592&&D<=8601||D===8632||D===8633||D===8658||D===8660||D===8679||D===8704||D===8706||D===8707||D===8711||D===8712||D===8715||D===8719||D===8721||D===8725||D===8730||D>=8733&&D<=8736||D===8739||D===8741||D>=8743&&D<=8748||D===8750||D>=8756&&D<=8759||D===8764||D===8765||D===8776||D===8780||D===8786||D===8800||D===8801||D>=8804&&D<=8807||D===8810||D===8811||D===8814||D===8815||D===8834||D===8835||D===8838||D===8839||D===8853||D===8857||D===8869||D===8895||D===8978||D>=9312&&D<=9449||D>=9451&&D<=9547||D>=9552&&D<=9587||D>=9600&&D<=9615||D>=9618&&D<=9621||D===9632||D===9633||D>=9635&&D<=9641||D===9650||D===9651||D===9654||D===9655||D===9660||D===9661||D===9664||D===9665||D>=9670&&D<=9672||D===9675||D>=9678&&D<=9681||D>=9698&&D<=9701||D===9711||D===9733||D===9734||D===9737||D===9742||D===9743||D===9756||D===9758||D===9792||D===9794||D===9824||D===9825||D>=9827&&D<=9829||D>=9831&&D<=9834||D===9836||D===9837||D===9839||D===9886||D===9887||D===9919||D>=9926&&D<=9933||D>=9935&&D<=9939||D>=9941&&D<=9953||D===9955||D===9960||D===9961||D>=9963&&D<=9969||D===9972||D>=9974&&D<=9977||D===9979||D===9980||D===9982||D===9983||D===10045||D>=10102&&D<=10111||D>=11094&&D<=11097||D>=12872&&D<=12879||D>=57344&&D<=63743||D>=65024&&D<=65039||D===65533||D>=127232&&D<=127242||D>=127248&&D<=127277||D>=127280&&D<=127337||D>=127344&&D<=127373||D===127375||D===127376||D>=127387&&D<=127404||D>=917760&&D<=917999||D>=983040&&D<=1048573||D>=1048576&&D<=1114109}E(mD,"isAmbiguous");function bD(D){return D===12288||D>=65281&&D<=65376||D>=65504&&D<=65510}E(bD,"isFullWidth");function yD(D){return D>=4352&&D<=4447||D===8986||D===8987||D===9001||D===9002||D>=9193&&D<=9196||D===9200||D===9203||D===9725||D===9726||D===9748||D===9749||D>=9800&&D<=9811||D===9855||D===9875||D===9889||D===9898||D===9899||D===9917||D===9918||D===9924||D===9925||D===9934||D===9940||D===9962||D===9970||D===9971||D===9973||D===9978||D===9981||D===9989||D===9994||D===9995||D===10024||D===10060||D===10062||D>=10067&&D<=10069||D===10071||D>=10133&&D<=10135||D===10160||D===10175||D===11035||D===11036||D===11088||D===11093||D>=11904&&D<=11929||D>=11931&&D<=12019||D>=12032&&D<=12245||D>=12272&&D<=12287||D>=12289&&D<=12350||D>=12353&&D<=12438||D>=12441&&D<=12543||D>=12549&&D<=12591||D>=12593&&D<=12686||D>=12688&&D<=12771||D>=12783&&D<=12830||D>=12832&&D<=12871||D>=12880&&D<=19903||D>=19968&&D<=42124||D>=42128&&D<=42182||D>=43360&&D<=43388||D>=44032&&D<=55203||D>=63744&&D<=64255||D>=65040&&D<=65049||D>=65072&&D<=65106||D>=65108&&D<=65126||D>=65128&&D<=65131||D>=94176&&D<=94180||D===94192||D===94193||D>=94208&&D<=100343||D>=100352&&D<=101589||D>=101632&&D<=101640||D>=110576&&D<=110579||D>=110581&&D<=110587||D===110589||D===110590||D>=110592&&D<=110882||D===110898||D>=110928&&D<=110930||D===110933||D>=110948&&D<=110951||D>=110960&&D<=111355||D===126980||D===127183||D===127374||D>=127377&&D<=127386||D>=127488&&D<=127490||D>=127504&&D<=127547||D>=127552&&D<=127560||D===127568||D===127569||D>=127584&&D<=127589||D>=127744&&D<=127776||D>=127789&&D<=127797||D>=127799&&D<=127868||D>=127870&&D<=127891||D>=127904&&D<=127946||D>=127951&&D<=127955||D>=127968&&D<=127984||D===127988||D>=127992&&D<=128062||D===128064||D>=128066&&D<=128252||D>=128255&&D<=128317||D>=128331&&D<=128334||D>=128336&&D<=128359||D===128378||D===128405||D===128406||D===128420||D>=128507&&D<=128591||D>=128640&&D<=128709||D===128716||D>=128720&&D<=128722||D>=128725&&D<=128727||D>=128732&&D<=128735||D===128747||D===128748||D>=128756&&D<=128764||D>=128992&&D<=129003||D===129008||D>=129292&&D<=129338||D>=129340&&D<=129349||D>=129351&&D<=129535||D>=129648&&D<=129660||D>=129664&&D<=129672||D>=129680&&D<=129725||D>=129727&&D<=129733||D>=129742&&D<=129755||D>=129760&&D<=129768||D>=129776&&D<=129784||D>=131072&&D<=196605||D>=196608&&D<=262141}E(yD,"isWide");function wD(D){if(!Number.isSafeInteger(D))throw new TypeError(`Expected a code point, got \`${typeof D}\`.`)}E(wD,"validate");function xD(D,{ambiguousAsWide:u=!1}={}){return wD(D),bD(D)||yD(D)||u&&mD(D)?2:1}E(xD,"eastAsianWidth");const SD=E(()=>/[#*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](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\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(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\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](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\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-\uDDF5\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](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\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(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\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-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\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,"emojiRegex"),vD=new Intl.Segmenter;function y(D,u={}){if(typeof D!="string"||D.length===0)return 0;const{ambiguousIsNarrow:F=!0,countAnsiEscapeCodes:e=!1}=u;if(e||(D=R(D)),D.length===0)return 0;let t=0;const B={ambiguousAsWide:!F};for(const{segment:r}of vD.segment(D)){const C=r.codePointAt(0);if(!(C<=31||C>=127&&C<=159)&&!(C>=768&&C<=879)){if(SD().test(r)){t+=2;continue}t+=xD(C,B)}}return t}E(y,"stringWidth");const $=10,Y=E((D=0)=>u=>`\x1B[${u+D}m`,"wrapAnsi16"),U=E((D=0)=>u=>`\x1B[${38+D};5;${u}m`,"wrapAnsi256"),K=E((D=0)=>(u,F,e)=>`\x1B[${38+D};2;${u};${F};${e}m`,"wrapAnsi16m"),n={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]}};Object.keys(n.modifier);const ND=Object.keys(n.color),_D=Object.keys(n.bgColor);[...ND,..._D];function TD(){const D=new Map;for(const[u,F]of Object.entries(n)){for(const[e,t]of Object.entries(F))n[e]={open:`\x1B[${t[0]}m`,close:`\x1B[${t[1]}m`},F[e]=n[e],D.set(t[0],t[1]);Object.defineProperty(n,u,{value:F,enumerable:!1})}return Object.defineProperty(n,"codes",{value:D,enumerable:!1}),n.color.close="\x1B[39m",n.bgColor.close="\x1B[49m",n.color.ansi=Y(),n.color.ansi256=U(),n.color.ansi16m=K(),n.bgColor.ansi=Y($),n.bgColor.ansi256=U($),n.bgColor.ansi16m=K($),Object.defineProperties(n,{rgbToAnsi256:{value:E((u,F,e)=>u===F&&F===e?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(F/255*5)+Math.round(e/255*5),"value"),enumerable:!1},hexToRgb:{value:E(u=>{const F=/[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));if(!F)return[0,0,0];let[e]=F;e.length===3&&(e=[...e].map(B=>B+B).join(""));const t=Number.parseInt(e,16);return[t>>16&255,t>>8&255,t&255]},"value"),enumerable:!1},hexToAnsi256:{value:E(u=>n.rgbToAnsi256(...n.hexToRgb(u)),"value"),enumerable:!1},ansi256ToAnsi:{value:E(u=>{if(u<8)return 30+u;if(u<16)return 90+(u-8);let F,e,t;if(u>=232)F=((u-232)*10+8)/255,e=F,t=F;else{u-=16;const C=u%36;F=Math.floor(u/36)/5,e=Math.floor(C/6)/5,t=C%6/5}const B=Math.max(F,e,t)*2;if(B===0)return 30;let r=30+(Math.round(t)<<2|Math.round(e)<<1|Math.round(F));return B===2&&(r+=60),r},"value"),enumerable:!1},rgbToAnsi:{value:E((u,F,e)=>n.ansi256ToAnsi(n.rgbToAnsi256(u,F,e)),"value"),enumerable:!1},hexToAnsi:{value:E(u=>n.ansi256ToAnsi(n.hexToAnsi256(u)),"value"),enumerable:!1}}),n}E(TD,"assembleStyles");const $D=TD(),v=new Set(["\x1B",""]),OD=39,k="\x07",Q="[",jD="]",X="m",S=`${jD}8;;`,Z=E(D=>`${v.values().next().value}${Q}${D}${X}`,"wrapAnsiCode"),V=E(D=>`${v.values().next().value}${S}${D}${k}`,"wrapAnsiHyperlink"),MD=E(D=>D.split(" ").map(u=>y(u)),"wordLengths"),O=E((D,u,F)=>{const e=[...u];let t=!1,B=!1,r=y(R(D.at(-1)));for(const[C,o]of e.entries()){const A=y(o);if(r+A<=F?D[D.length-1]+=o:(D.push(o),r=0),v.has(o)&&(t=!0,B=e.slice(C+1,C+1+S.length).join("")===S),t){B?o===k&&(t=!1,B=!1):o===X&&(t=!1);continue}r+=A,r===F&&C<e.length-1&&(D.push(""),r=0)}!r&&D.at(-1).length>0&&D.length>1&&(D[D.length-2]+=D.pop())},"wrapWord"),ID=E(D=>{const u=D.split(" ");let F=u.length;for(;F>0&&!(y(u[F-1])>0);)F--;return F===u.length?D:u.slice(0,F).join(" ")+u.slice(F).join("")},"stringVisibleTrimSpacesRight"),LD=E((D,u,F={})=>{if(F.trim!==!1&&D.trim()==="")return"";let e="",t,B;const r=MD(D);let C=[""];for(const[i,l]of D.split(" ").entries()){F.trim!==!1&&(C[C.length-1]=C.at(-1).trimStart());let a=y(C.at(-1));if(i!==0&&(a>=u&&(F.wordWrap===!1||F.trim===!1)&&(C.push(""),a=0),(a>0||F.trim===!1)&&(C[C.length-1]+=" ",a++)),F.hard&&r[i]>u){const c=u-a,p=1+Math.floor((r[i]-c-1)/u);Math.floor((r[i]-1)/u)<p&&C.push(""),O(C,l,u);continue}if(a+r[i]>u&&a>0&&r[i]>0){if(F.wordWrap===!1&&a<u){O(C,l,u);continue}C.push("")}if(a+r[i]>u&&F.wordWrap===!1){O(C,l,u);continue}C[C.length-1]+=l}F.trim!==!1&&(C=C.map(i=>ID(i)));const o=C.join(`
|
|
2
|
+
`),A=[...o];let h=0;for(const[i,l]of A.entries()){if(e+=l,v.has(l)){const{groups:c}=new RegExp(`(?:\\${Q}(?<code>\\d+)m|\\${S}(?<uri>.*)${k})`).exec(o.slice(h))||{groups:{}};if(c.code!==void 0){const p=Number.parseFloat(c.code);t=p===OD?void 0:p}else c.uri!==void 0&&(B=c.uri.length===0?void 0:c.uri)}const a=$D.codes.get(Number(t));A[i+1]===`
|
|
3
|
+
`?(B&&(e+=V("")),t&&a&&(e+=Z(a))):l===`
|
|
4
|
+
`&&(t&&a&&(e+=Z(t)),B&&(e+=V(B))),h+=l.length}return e},"exec");function DD(D,u,F){return String(D).normalize().replaceAll(`\r
|
|
5
|
+
`,`
|
|
6
|
+
`).split(`
|
|
7
|
+
`).map(e=>LD(e,u,F)).join(`
|
|
8
|
+
`)}E(DD,"wrapAnsi");var RD=Object.defineProperty,kD=E((D,u)=>RD(D,"name",{value:u,configurable:!0}),"r");const WD=kD((D,u)=>(u.__write??u.write).call(u,D),"writeStream"),PD=new Intl.Segmenter;function j(D,{countAnsiEscapeCodes:u=!1}={}){if(D===""||(u||(D=R(D)),D===""))return 0;let F=0;for(const e of PD.segment(D))F++;return F}E(j,"stringLength");var zD=Object.defineProperty,GD=E((D,u)=>zD(D,"name",{value:u,configurable:!0}),"o$1");const M=GD((D,u,F,e=!1)=>{const{message:t,name:B,stack:r}=D,C=[];if(C.push(...e?[]:[F+rD(B),": "],DD(t,u-3,{hard:!0,trim:!0,wordWrap:!0})),r){const o=r.split(`
|
|
9
|
+
`).splice(1).map(A=>F+A.trim().replace("file://","")).filter(A=>!A.includes("/pail/dist"));C.push(`
|
|
10
|
+
`,o.map(A=>" "+A.replace(/^at +/,h=>g(h)).replace(/\((.+)\)/,(h,i)=>"("+nD(i)+")")).join(`
|
|
11
|
+
`))}return C.join("")},"formatError");var YD=Object.defineProperty,UD=E((D,u)=>YD(D,"name",{value:u,configurable:!0}),"o");const KD=UD((D,u)=>{let F=u.uppercase.label?D.toUpperCase():D;return F=u.underline.label?I(F):F,u.bold.label&&(F=BD(F)),F},"formatLabel");var ZD=Object.defineProperty,VD=E((D,u)=>ZD(D,"name",{value:u,configurable:!0}),"w");class qD extends cD{static{E(this,"q")}static{VD(this,"PrettyReporter")}#D;#u;#F;#e=!1;constructor(u={}){super({uppercase:{label:!0,...u.uppercase},...u}),this.#D=ED,this.#u=CD}setStdout(u){this.#D=u}setStderr(u){this.#u=u}setInteractiveManager(u){this.#F=u}setIsInteractive(u){this.#e=u}log(u){this._log(this._formatMessage(u),u.type.level)}_formatMessage(u){const{columns:F}=gD();let e=F;typeof this._styles.messageLength=="number"&&(e=this._styles.messageLength);const{badge:t,context:B,date:r,error:C,file:o,groups:A,label:h,message:i,prefix:l,repeated:a,scope:c,suffix:p,traceError:N,type:uD}=u,{color:W}=this._loggerTypes[uD.name],P=W?tD[W]:sD,m=A.map(()=>" ").join(""),s=[];if(A.length>0&&s.push(m+g("["+A.at(-1)+"]")+" "),r&&s.push(g(this._styles.dateFormatter(typeof r=="string"?new Date(r):r))+" "),t)s.push(P(t));else{const f=fD(this._loggerTypes);f.length>0&&s.push(g(".".repeat(f.length))+" ")}const z=AD(this._loggerTypes);h?s.push(P(KD(h,this._styles))+" ",g(".".repeat(z.length-j(h)))):s.push(g(".".repeat(z.length+2))),a&&s.push(iD.white("["+a+"x]")+" "),Array.isArray(c)&&c.length>0&&s.push(" "+g("["+c.join(" > ")+"]")+" "),l&&s.push(g((Array.isArray(c)&&c.length>0?". ":" ")+"["+(this._styles.underline.prefix?I(l):l)+"]")+" ");const _=j(s.join(" "));if(o){const f=o.name+(o.line?":"+o.line:""),d=j(f);d+_+2>e?s.push(g(" "+f)):s.push(g(".".repeat(e-_-d-2)+" "+f))}else s.push(g(".".repeat(e-_-1)));if(s.length>0&&s.push(`
|
|
12
|
+
|
|
13
|
+
`),i!==lD){const f=typeof i=="string"?i:this._stringify(i);s.push(m+DD(f??"undefined",e-3,{hard:!0,trim:!0,wordWrap:!0}))}if(B){let f=!1;s.push(...B.map(d=>{if(d instanceof Error)return f=!0,`
|
|
14
|
+
|
|
15
|
+
`+M(d,e,m);if(typeof d=="object")return" "+this._stringify(d);const FD=(f?`
|
|
16
|
+
|
|
17
|
+
`:" ")+d;return f=!1,FD}))}return C&&s.push(M(C,e,m)),N&&s.push(M(N,e,m,!0)),p&&s.push(`
|
|
18
|
+
`,m+g(this._styles.underline.suffix?I(p):p)),s.join("")+`
|
|
19
|
+
`}_log(u,F){const e=["error","trace","warn"].includes(F)?"stderr":"stdout",t=e==="stderr"?this.#u:this.#D;this.#e&&this.#F!==void 0&&t.isTTY?this.#F.update(e,u.split(`
|
|
20
|
+
`),0):WD(u+`
|
|
21
|
+
`,t)}}const Eu=qD;export{Eu as a,KD as b,M as c,WD as n,j as s,gD as t,DD as w};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";var BD=Object.defineProperty;var E=(D,u)=>BD(D,"name",{value:u,configurable:!0});const I=require("node:process"),i=require("@visulima/colorize"),sD=require("node:child_process"),iD=require("node:fs"),oD=require("node:tty"),Y=require("./pail.BjvkVeLq.cjs"),U=require("./pail.DwLTdhaq.cjs"),N=E(D=>D&&typeof D=="object"&&"default"in D?D.default:D,"_interopDefaultCompat"),b=N(I),aD=N(i),w=N(iD),AD=N(oD),X=80,DD=24,R=E((D,u,{shell:F,env:e}={})=>sD.execFileSync(D,u,{encoding:"utf8",stdio:["ignore","pipe","ignore"],timeout:500,shell:F,env:e}).trim(),"exec$1"),_=E((D,u)=>({columns:Number.parseInt(D,10),rows:Number.parseInt(u,10)}),"create"),uD=E((D,u)=>{const{columns:F,rows:e}=_(D,u);if(!(Number.isNaN(F)||Number.isNaN(e))&&!(F===X&&e===DD))return{columns:F,rows:e}},"createIfNotDefault");function FD(){const{env:D,stdout:u,stderr:F}=b;if(u?.columns&&u?.rows)return _(u.columns,u.rows);if(F?.columns&&F?.rows)return _(F.columns,F.rows);if(D.COLUMNS&&D.LINES)return _(D.COLUMNS,D.LINES);const e={columns:X,rows:DD};return b.platform==="win32"?j()??e:b.platform==="darwin"?K()??j()??e:K()??j()??lD()??e}E(FD,"terminalSize");const K=E(()=>{try{const D=b.platform==="darwin"?w.constants.O_EVTONLY|w.constants.O_NONBLOCK:w.constants.O_NONBLOCK,{columns:u,rows:F}=AD.WriteStream(w.openSync("/dev/tty",D));return{columns:u,rows:F}}catch{}},"devTty"),j=E(()=>{try{const D=R("tput",["cols"],{env:{TERM:"dumb",...b.env}}),u=R("tput",["lines"],{env:{TERM:"dumb",...b.env}});if(D&&u)return uD(D,u)}catch{}},"tput"),lD=E(()=>{try{const D=R("resize",["-u"]).match(/\d+/g);if(D.length===2)return uD(D[0],D[1])}catch{}},"resize");function cD({onlyFirst:D=!1}={}){const u=["[\\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(u,D?void 0:"g")}E(cD,"ansiRegex");const fD=cD();function k(D){if(typeof D!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof D}\``);return D.replace(fD,"")}E(k,"stripAnsi");function gD(D){return D===161||D===164||D===167||D===168||D===170||D===173||D===174||D>=176&&D<=180||D>=182&&D<=186||D>=188&&D<=191||D===198||D===208||D===215||D===216||D>=222&&D<=225||D===230||D>=232&&D<=234||D===236||D===237||D===240||D===242||D===243||D>=247&&D<=250||D===252||D===254||D===257||D===273||D===275||D===283||D===294||D===295||D===299||D>=305&&D<=307||D===312||D>=319&&D<=322||D===324||D>=328&&D<=331||D===333||D===338||D===339||D===358||D===359||D===363||D===462||D===464||D===466||D===468||D===470||D===472||D===474||D===476||D===593||D===609||D===708||D===711||D>=713&&D<=715||D===717||D===720||D>=728&&D<=731||D===733||D===735||D>=768&&D<=879||D>=913&&D<=929||D>=931&&D<=937||D>=945&&D<=961||D>=963&&D<=969||D===1025||D>=1040&&D<=1103||D===1105||D===8208||D>=8211&&D<=8214||D===8216||D===8217||D===8220||D===8221||D>=8224&&D<=8226||D>=8228&&D<=8231||D===8240||D===8242||D===8243||D===8245||D===8251||D===8254||D===8308||D===8319||D>=8321&&D<=8324||D===8364||D===8451||D===8453||D===8457||D===8467||D===8470||D===8481||D===8482||D===8486||D===8491||D===8531||D===8532||D>=8539&&D<=8542||D>=8544&&D<=8555||D>=8560&&D<=8569||D===8585||D>=8592&&D<=8601||D===8632||D===8633||D===8658||D===8660||D===8679||D===8704||D===8706||D===8707||D===8711||D===8712||D===8715||D===8719||D===8721||D===8725||D===8730||D>=8733&&D<=8736||D===8739||D===8741||D>=8743&&D<=8748||D===8750||D>=8756&&D<=8759||D===8764||D===8765||D===8776||D===8780||D===8786||D===8800||D===8801||D>=8804&&D<=8807||D===8810||D===8811||D===8814||D===8815||D===8834||D===8835||D===8838||D===8839||D===8853||D===8857||D===8869||D===8895||D===8978||D>=9312&&D<=9449||D>=9451&&D<=9547||D>=9552&&D<=9587||D>=9600&&D<=9615||D>=9618&&D<=9621||D===9632||D===9633||D>=9635&&D<=9641||D===9650||D===9651||D===9654||D===9655||D===9660||D===9661||D===9664||D===9665||D>=9670&&D<=9672||D===9675||D>=9678&&D<=9681||D>=9698&&D<=9701||D===9711||D===9733||D===9734||D===9737||D===9742||D===9743||D===9756||D===9758||D===9792||D===9794||D===9824||D===9825||D>=9827&&D<=9829||D>=9831&&D<=9834||D===9836||D===9837||D===9839||D===9886||D===9887||D===9919||D>=9926&&D<=9933||D>=9935&&D<=9939||D>=9941&&D<=9953||D===9955||D===9960||D===9961||D>=9963&&D<=9969||D===9972||D>=9974&&D<=9977||D===9979||D===9980||D===9982||D===9983||D===10045||D>=10102&&D<=10111||D>=11094&&D<=11097||D>=12872&&D<=12879||D>=57344&&D<=63743||D>=65024&&D<=65039||D===65533||D>=127232&&D<=127242||D>=127248&&D<=127277||D>=127280&&D<=127337||D>=127344&&D<=127373||D===127375||D===127376||D>=127387&&D<=127404||D>=917760&&D<=917999||D>=983040&&D<=1048573||D>=1048576&&D<=1114109}E(gD,"isAmbiguous");function hD(D){return D===12288||D>=65281&&D<=65376||D>=65504&&D<=65510}E(hD,"isFullWidth");function pD(D){return D>=4352&&D<=4447||D===8986||D===8987||D===9001||D===9002||D>=9193&&D<=9196||D===9200||D===9203||D===9725||D===9726||D===9748||D===9749||D>=9800&&D<=9811||D===9855||D===9875||D===9889||D===9898||D===9899||D===9917||D===9918||D===9924||D===9925||D===9934||D===9940||D===9962||D===9970||D===9971||D===9973||D===9978||D===9981||D===9989||D===9994||D===9995||D===10024||D===10060||D===10062||D>=10067&&D<=10069||D===10071||D>=10133&&D<=10135||D===10160||D===10175||D===11035||D===11036||D===11088||D===11093||D>=11904&&D<=11929||D>=11931&&D<=12019||D>=12032&&D<=12245||D>=12272&&D<=12287||D>=12289&&D<=12350||D>=12353&&D<=12438||D>=12441&&D<=12543||D>=12549&&D<=12591||D>=12593&&D<=12686||D>=12688&&D<=12771||D>=12783&&D<=12830||D>=12832&&D<=12871||D>=12880&&D<=19903||D>=19968&&D<=42124||D>=42128&&D<=42182||D>=43360&&D<=43388||D>=44032&&D<=55203||D>=63744&&D<=64255||D>=65040&&D<=65049||D>=65072&&D<=65106||D>=65108&&D<=65126||D>=65128&&D<=65131||D>=94176&&D<=94180||D===94192||D===94193||D>=94208&&D<=100343||D>=100352&&D<=101589||D>=101632&&D<=101640||D>=110576&&D<=110579||D>=110581&&D<=110587||D===110589||D===110590||D>=110592&&D<=110882||D===110898||D>=110928&&D<=110930||D===110933||D>=110948&&D<=110951||D>=110960&&D<=111355||D===126980||D===127183||D===127374||D>=127377&&D<=127386||D>=127488&&D<=127490||D>=127504&&D<=127547||D>=127552&&D<=127560||D===127568||D===127569||D>=127584&&D<=127589||D>=127744&&D<=127776||D>=127789&&D<=127797||D>=127799&&D<=127868||D>=127870&&D<=127891||D>=127904&&D<=127946||D>=127951&&D<=127955||D>=127968&&D<=127984||D===127988||D>=127992&&D<=128062||D===128064||D>=128066&&D<=128252||D>=128255&&D<=128317||D>=128331&&D<=128334||D>=128336&&D<=128359||D===128378||D===128405||D===128406||D===128420||D>=128507&&D<=128591||D>=128640&&D<=128709||D===128716||D>=128720&&D<=128722||D>=128725&&D<=128727||D>=128732&&D<=128735||D===128747||D===128748||D>=128756&&D<=128764||D>=128992&&D<=129003||D===129008||D>=129292&&D<=129338||D>=129340&&D<=129349||D>=129351&&D<=129535||D>=129648&&D<=129660||D>=129664&&D<=129672||D>=129680&&D<=129725||D>=129727&&D<=129733||D>=129742&&D<=129755||D>=129760&&D<=129768||D>=129776&&D<=129784||D>=131072&&D<=196605||D>=196608&&D<=262141}E(pD,"isWide");function dD(D){if(!Number.isSafeInteger(D))throw new TypeError(`Expected a code point, got \`${typeof D}\`.`)}E(dD,"validate");function mD(D,{ambiguousAsWide:u=!1}={}){return dD(D),hD(D)||pD(D)||u&&gD(D)?2:1}E(mD,"eastAsianWidth");const bD=E(()=>/[#*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](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\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(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\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](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\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-\uDDF5\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](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\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(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\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-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\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,"emojiRegex"),yD=new Intl.Segmenter;function y(D,u={}){if(typeof D!="string"||D.length===0)return 0;const{ambiguousIsNarrow:F=!0,countAnsiEscapeCodes:e=!1}=u;if(e||(D=k(D)),D.length===0)return 0;let t=0;const B={ambiguousAsWide:!F};for(const{segment:r}of yD.segment(D)){const C=r.codePointAt(0);if(!(C<=31||C>=127&&C<=159)&&!(C>=768&&C<=879)){if(bD().test(r)){t+=2;continue}t+=mD(C,B)}}return t}E(y,"stringWidth");const L=10,Z=E((D=0)=>u=>`\x1B[${u+D}m`,"wrapAnsi16"),V=E((D=0)=>u=>`\x1B[${38+D};5;${u}m`,"wrapAnsi256"),J=E((D=0)=>(u,F,e)=>`\x1B[${38+D};2;${u};${F};${e}m`,"wrapAnsi16m"),n={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]}};Object.keys(n.modifier);const wD=Object.keys(n.color),_D=Object.keys(n.bgColor);[...wD,..._D];function xD(){const D=new Map;for(const[u,F]of Object.entries(n)){for(const[e,t]of Object.entries(F))n[e]={open:`\x1B[${t[0]}m`,close:`\x1B[${t[1]}m`},F[e]=n[e],D.set(t[0],t[1]);Object.defineProperty(n,u,{value:F,enumerable:!1})}return Object.defineProperty(n,"codes",{value:D,enumerable:!1}),n.color.close="\x1B[39m",n.bgColor.close="\x1B[49m",n.color.ansi=Z(),n.color.ansi256=V(),n.color.ansi16m=J(),n.bgColor.ansi=Z(L),n.bgColor.ansi256=V(L),n.bgColor.ansi16m=J(L),Object.defineProperties(n,{rgbToAnsi256:{value:E((u,F,e)=>u===F&&F===e?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(F/255*5)+Math.round(e/255*5),"value"),enumerable:!1},hexToRgb:{value:E(u=>{const F=/[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));if(!F)return[0,0,0];let[e]=F;e.length===3&&(e=[...e].map(B=>B+B).join(""));const t=Number.parseInt(e,16);return[t>>16&255,t>>8&255,t&255]},"value"),enumerable:!1},hexToAnsi256:{value:E(u=>n.rgbToAnsi256(...n.hexToRgb(u)),"value"),enumerable:!1},ansi256ToAnsi:{value:E(u=>{if(u<8)return 30+u;if(u<16)return 90+(u-8);let F,e,t;if(u>=232)F=((u-232)*10+8)/255,e=F,t=F;else{u-=16;const C=u%36;F=Math.floor(u/36)/5,e=Math.floor(C/6)/5,t=C%6/5}const B=Math.max(F,e,t)*2;if(B===0)return 30;let r=30+(Math.round(t)<<2|Math.round(e)<<1|Math.round(F));return B===2&&(r+=60),r},"value"),enumerable:!1},rgbToAnsi:{value:E((u,F,e)=>n.ansi256ToAnsi(n.rgbToAnsi256(u,F,e)),"value"),enumerable:!1},hexToAnsi:{value:E(u=>n.ansi256ToAnsi(n.hexToAnsi256(u)),"value"),enumerable:!1}}),n}E(xD,"assembleStyles");const SD=xD(),T=new Set(["\x1B",""]),vD=39,W="\x07",eD="[",ND="]",ED="m",v=`${ND}8;;`,H=E(D=>`${T.values().next().value}${eD}${D}${ED}`,"wrapAnsiCode"),Q=E(D=>`${T.values().next().value}${v}${D}${W}`,"wrapAnsiHyperlink"),TD=E(D=>D.split(" ").map(u=>y(u)),"wordLengths"),M=E((D,u,F)=>{const e=[...u];let t=!1,B=!1,r=y(k(D.at(-1)));for(const[C,a]of e.entries()){const l=y(a);if(r+l<=F?D[D.length-1]+=a:(D.push(a),r=0),T.has(a)&&(t=!0,B=e.slice(C+1,C+1+v.length).join("")===v),t){B?a===W&&(t=!1,B=!1):a===ED&&(t=!1);continue}r+=l,r===F&&C<e.length-1&&(D.push(""),r=0)}!r&&D.at(-1).length>0&&D.length>1&&(D[D.length-2]+=D.pop())},"wrapWord"),OD=E(D=>{const u=D.split(" ");let F=u.length;for(;F>0&&!(y(u[F-1])>0);)F--;return F===u.length?D:u.slice(0,F).join(" ")+u.slice(F).join("")},"stringVisibleTrimSpacesRight"),$D=E((D,u,F={})=>{if(F.trim!==!1&&D.trim()==="")return"";let e="",t,B;const r=TD(D);let C=[""];for(const[o,c]of D.split(" ").entries()){F.trim!==!1&&(C[C.length-1]=C.at(-1).trimStart());let A=y(C.at(-1));if(o!==0&&(A>=u&&(F.wordWrap===!1||F.trim===!1)&&(C.push(""),A=0),(A>0||F.trim===!1)&&(C[C.length-1]+=" ",A++)),F.hard&&r[o]>u){const f=u-A,p=1+Math.floor((r[o]-f-1)/u);Math.floor((r[o]-1)/u)<p&&C.push(""),M(C,c,u);continue}if(A+r[o]>u&&A>0&&r[o]>0){if(F.wordWrap===!1&&A<u){M(C,c,u);continue}C.push("")}if(A+r[o]>u&&F.wordWrap===!1){M(C,c,u);continue}C[C.length-1]+=c}F.trim!==!1&&(C=C.map(o=>OD(o)));const a=C.join(`
|
|
2
|
+
`),l=[...a];let h=0;for(const[o,c]of l.entries()){if(e+=c,T.has(c)){const{groups:f}=new RegExp(`(?:\\${eD}(?<code>\\d+)m|\\${v}(?<uri>.*)${W})`).exec(a.slice(h))||{groups:{}};if(f.code!==void 0){const p=Number.parseFloat(f.code);t=p===vD?void 0:p}else f.uri!==void 0&&(B=f.uri.length===0?void 0:f.uri)}const A=SD.codes.get(Number(t));l[o+1]===`
|
|
3
|
+
`?(B&&(e+=Q("")),t&&A&&(e+=H(A))):c===`
|
|
4
|
+
`&&(t&&A&&(e+=H(t)),B&&(e+=Q(B))),h+=c.length}return e},"exec");function P(D,u,F){return String(D).normalize().replaceAll(`\r
|
|
5
|
+
`,`
|
|
6
|
+
`).split(`
|
|
7
|
+
`).map(e=>$D(e,u,F)).join(`
|
|
8
|
+
`)}E(P,"wrapAnsi");var jD=Object.defineProperty,LD=E((D,u)=>jD(D,"name",{value:u,configurable:!0}),"r");const CD=LD((D,u)=>(u.__write??u.write).call(u,D),"writeStream"),MD=new Intl.Segmenter;function x(D,{countAnsiEscapeCodes:u=!1}={}){if(D===""||(u||(D=k(D)),D===""))return 0;let F=0;for(const e of MD.segment(D))F++;return F}E(x,"stringLength");var ID=Object.defineProperty,RD=E((D,u)=>ID(D,"name",{value:u,configurable:!0}),"o$1");const S=RD((D,u,F,e=!1)=>{const{message:t,name:B,stack:r}=D,C=[];if(C.push(...e?[]:[F+i.red(B),": "],P(t,u-3,{hard:!0,trim:!0,wordWrap:!0})),r){const a=r.split(`
|
|
9
|
+
`).splice(1).map(l=>F+l.trim().replace("file://","")).filter(l=>!l.includes("/pail/dist"));C.push(`
|
|
10
|
+
`,a.map(l=>" "+l.replace(/^at +/,h=>i.grey(h)).replace(/\((.+)\)/,(h,o)=>"("+i.cyan(o)+")")).join(`
|
|
11
|
+
`))}return C.join("")},"formatError");var kD=Object.defineProperty,WD=E((D,u)=>kD(D,"name",{value:u,configurable:!0}),"o");const tD=WD((D,u)=>{let F=u.uppercase.label?D.toUpperCase():D;return F=u.underline.label?i.underline(F):F,u.bold.label&&(F=i.bold(F)),F},"formatLabel");var PD=Object.defineProperty,zD=E((D,u)=>PD(D,"name",{value:u,configurable:!0}),"w");class qD extends U.AbstractPrettyReporter{static{E(this,"q")}static{zD(this,"PrettyReporter")}#D;#u;#F;#e=!1;constructor(u={}){super({uppercase:{label:!0,...u.uppercase},...u}),this.#D=I.stdout,this.#u=I.stderr}setStdout(u){this.#D=u}setStderr(u){this.#u=u}setInteractiveManager(u){this.#F=u}setIsInteractive(u){this.#e=u}log(u){this._log(this._formatMessage(u),u.type.level)}_formatMessage(u){const{columns:F}=FD();let e=F;typeof this._styles.messageLength=="number"&&(e=this._styles.messageLength);const{badge:t,context:B,date:r,error:C,file:a,groups:l,label:h,message:o,prefix:c,repeated:A,scope:f,suffix:p,traceError:O,type:rD}=u,{color:z}=this._loggerTypes[rD.name],q=z?aD[z]:i.white,m=l.map(()=>" ").join(""),s=[];if(l.length>0&&s.push(m+i.grey("["+l.at(-1)+"]")+" "),r&&s.push(i.grey(this._styles.dateFormatter(typeof r=="string"?new Date(r):r))+" "),t)s.push(q(t));else{const g=U.s(this._loggerTypes);g.length>0&&s.push(i.grey(".".repeat(g.length))+" ")}const G=Y.s(this._loggerTypes);h?s.push(q(tD(h,this._styles))+" ",i.grey(".".repeat(G.length-x(h)))):s.push(i.grey(".".repeat(G.length+2))),A&&s.push(i.bgGrey.white("["+A+"x]")+" "),Array.isArray(f)&&f.length>0&&s.push(" "+i.grey("["+f.join(" > ")+"]")+" "),c&&s.push(i.grey((Array.isArray(f)&&f.length>0?". ":" ")+"["+(this._styles.underline.prefix?i.underline(c):c)+"]")+" ");const $=x(s.join(" "));if(a){const g=a.name+(a.line?":"+a.line:""),d=x(g);d+$+2>e?s.push(i.grey(" "+g)):s.push(i.grey(".".repeat(e-$-d-2)+" "+g))}else s.push(i.grey(".".repeat(e-$-1)));if(s.length>0&&s.push(`
|
|
12
|
+
|
|
13
|
+
`),o!==Y.EMPTY_SYMBOL){const g=typeof o=="string"?o:this._stringify(o);s.push(m+P(g??"undefined",e-3,{hard:!0,trim:!0,wordWrap:!0}))}if(B){let g=!1;s.push(...B.map(d=>{if(d instanceof Error)return g=!0,`
|
|
14
|
+
|
|
15
|
+
`+S(d,e,m);if(typeof d=="object")return" "+this._stringify(d);const nD=(g?`
|
|
16
|
+
|
|
17
|
+
`:" ")+d;return g=!1,nD}))}return C&&s.push(S(C,e,m)),O&&s.push(S(O,e,m,!0)),p&&s.push(`
|
|
18
|
+
`,m+i.grey(this._styles.underline.suffix?i.underline(p):p)),s.join("")+`
|
|
19
|
+
`}_log(u,F){const e=["error","trace","warn"].includes(F)?"stderr":"stdout",t=e==="stderr"?this.#u:this.#D;this.#e&&this.#F!==void 0&&t.isTTY?this.#F.update(e,u.split(`
|
|
20
|
+
`),0):CD(u+`
|
|
21
|
+
`,t)}}const GD=qD;exports.a=GD;exports.n=CD;exports.n$1=tD;exports.stringLength=x;exports.terminalSize=FD;exports.w=S;exports.wrapAnsi=P;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var f=Object.defineProperty;var n=(r,e)=>f(r,"name",{value:e,configurable:!0});import{configure as m}from"safe-stable-stringify";import{L as d,s as u,a as L,E as y}from"./pail.C1VNf0a-.mjs";import{t as b}from"./pail.BP95fgQZ.mjs";var v=Object.defineProperty,w=n((r,e)=>v(r,"name",{value:e,configurable:!0}),"t");class x{static{n(this,"i")}static{w(this,"RawReporter")}log(e){const{context:t=[],message:s,type:o}=e;b(o.level)(s,...t)}}var _=Object.defineProperty,M=n((r,e)=>_(r,"name",{value:e,configurable:!0}),"a");const T=M(r=>r===void 0?[]:Array.isArray(r)?r:[r],"arrayify");var E=Object.defineProperty,R=n((r,e)=>E(r,"name",{value:e,configurable:!0}),"g");const j=R((r,e)=>{const t={...r};return Object.keys(e).forEach(s=>{t[s]={...t[s],...e[s]}}),t},"mergeTypes");var P=Object.defineProperty,c=n((r,e)=>P(r,"name",{value:e,configurable:!0}),"l");class S{static{n(this,"PailBrowserImpl")}static{c(this,"PailBrowserImpl")}timersMap;countMap;seqTimers;lastLog;logLevels;disabled;scopeName;types;longestLabel;processors;generalLogLevel;reporters;throttle;throttleMin;stringify;groups;startTimerMessage;endTimerMessage;rawReporter;constructor(e){this.throttle=e.throttle??1e3,this.throttleMin=e.throttleMin??5,this.stringify=m({strict:!0}),this.startTimerMessage=e.messages?.timerStart??"Initialized timer...",this.endTimerMessage=e.messages?.timerEnd??"Timer run for:",this.types=j(d,e.types??{}),this.longestLabel=u(this.types),this.logLevels={...L,...e.logLevels},this.generalLogLevel=this._normalizeLogLevel(e.logLevel),this.reporters=new Set,this.processors=new Set,this.disabled=e.disabled??!1,this.scopeName=T(e.scope).filter(Boolean),this.timersMap=new Map,this.countMap=new Map,this.groups=[],this.seqTimers=new Set;for(const t in this.types)this[t]=this._logger.bind(this,t,!1);this.lastLog={},Array.isArray(e.reporters)&&this.registerReporters(e.reporters),this.rawReporter=this.extendReporter(e.rawReporter??new x),Array.isArray(e.processors)&&this.registerProcessors(e.processors)}wrapConsole(){for(const e in this.types)console["__"+e]||(console["__"+e]=console[e]),console[e]=this[e]}restoreConsole(){for(const e in this.types)console["__"+e]&&(console[e]=console["__"+e],delete console["__"+e])}wrapException(){typeof process<"u"&&(process.on("uncaughtException",e=>{this.error(e)}),process.on("unhandledRejection",e=>{this.error(e)}))}disable(){this.disabled=!0}enable(){this.disabled=!1}isEnabled(){return!this.disabled}scope(...e){if(e.length===0)throw new Error("No scope name was defined.");return this.scopeName=e.flat(),this}unscope(){this.scopeName=[]}time(e="default"){this.seqTimers.has(e)?this._logger("warn",!1,{message:"Timer '"+e+"' already exists",prefix:e}):(this.seqTimers.add(e),this.timersMap.set(e,Date.now()),this._logger("start",!1,{message:this.startTimerMessage,prefix:e}))}timeLog(e,...t){if(!e&&this.seqTimers.size>0&&(e=[...this.seqTimers].pop()),e&&this.timersMap.has(e)){const s=Date.now()-this.timersMap.get(e);this._logger("info",!1,{context:t,message:s<1e3?s+" ms":(s/1e3).toFixed(2)+" s",prefix:e})}else this._logger("warn",!1,{context:t,message:"Timer not found",prefix:e})}timeEnd(e){if(!e&&this.seqTimers.size>0&&(e=[...this.seqTimers].pop()),e&&this.timersMap.has(e)){const t=Date.now()-this.timersMap.get(e);this.timersMap.delete(e),this._logger("stop",!1,{message:this.endTimerMessage+" "+(t<1e3?t+" ms":(t/1e3).toFixed(2)+" s"),prefix:e})}}group(e="console.group"){typeof window>"u"?console.group(e):this.groups.push(e)}groupEnd(){typeof window>"u"?console.groupEnd():this.groups.pop()}count(e="default"){const t=this.countMap.get(e)??0;this.countMap.set(e,t+1),this._logger("log",!1,{message:e+": "+(t+1),prefix:e})}countReset(e="default"){this.countMap.has(e)?this.countMap.delete(e):this._logger("warn",!1,{message:"Count for "+e+" does not exist",prefix:e})}clear(){console.clear()}raw(e,...t){this.disabled||this._logger("log",!0,{context:t,message:e})}extendReporter(e){return typeof e.setLoggerTypes=="function"&&e.setLoggerTypes(this.types),typeof e.setStringify=="function"&&e.setStringify(this.stringify),e}registerReporters(e){for(const t of e)this.reporters.add(this.extendReporter(t))}_report(e,t){if(t)this.rawReporter.log(Object.freeze(e));else for(const s of this.reporters)s.log(Object.freeze(e))}registerProcessors(e){for(const t of e)typeof t.setStringify=="function"&&t.setStringify(this.stringify),this.processors.add(t)}_normalizeLogLevel(e){return e&&this.logLevels[e]?e:"debug"}_buildMeta(e,t,...s){const o={badge:void 0,context:void 0,error:void 0,label:void 0,message:y,prefix:void 0,repeated:void 0,scope:void 0,suffix:void 0};if(o.type={level:t.logLevel,name:e},o.groups=this.groups,o.scope=this.scopeName,o.date=new Date,s.length===1&&typeof s[0]=="object"&&s[0]!==null)if(s[0]instanceof Error)o.error=s[0];else if("message"in s[0]){const{context:i,message:g,prefix:h,suffix:a}=s[0];i&&(o.context=i),h&&(o.prefix=h),a&&(o.suffix=a),o.message=g}else o.message=s[0];else s.length>1&&typeof s[0]=="string"?(o.message=s[0],o.context=s.slice(1)):o.message=s[0];return t.logLevel==="trace"&&(o.traceError=new Error("Trace")),t.badge&&(o.badge=t.badge),t.label&&(o.label=t.label),o}_logger(e,t,...s){if(this.disabled)return;const o=this._normalizeLogLevel(this.types[e].logLevel);if(this.logLevels[o]>=this.logLevels[this.generalLogLevel]){let i=this._buildMeta(e,this.types[e],...s);const g=c((a=!1)=>{const l=(this.lastLog.count||0)-this.throttleMin;if(this.lastLog.object&&l>0){const p={...this.lastLog.object};l>1&&(p.repeated=l),this._report(p,t),this.lastLog.count=1}if(a){for(const p of this.processors)i={...p.process(i)};this.lastLog.object=i,this._report(i,t)}},"resolveLog");clearTimeout(this.lastLog.timeout);const h=this.lastLog.time&&i.date?new Date(i.date).getTime()-this.lastLog.time.getTime():0;if(this.lastLog.time=new Date(i.date),h<this.throttle)try{const a=JSON.stringify([i.label,i.scope,i.type,i.message,i.prefix,i.suffix,i.context]),l=this.lastLog.serialized===a;if(this.lastLog.serialized=a,l&&(this.lastLog.count=(this.lastLog.count||0)+1,this.lastLog.count>this.throttleMin)){this.lastLog.timeout=setTimeout(g,this.throttle);return}}catch{}g(!0)}}}const N=S;export{N as P,S as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var g=Object.defineProperty;var s=(t,e)=>g(t,"name",{value:e,configurable:!0});import{L as i}from"./pail.
|
|
1
|
+
var g=Object.defineProperty;var s=(t,e)=>g(t,"name",{value:e,configurable:!0});import{L as i}from"./pail.C1VNf0a-.mjs";var n=Object.defineProperty,l=s((t,e)=>n(t,"name",{value:e,configurable:!0}),"r$1");const u=l(t=>{const e=Object.keys(t).map(r=>t[r].badge??"");return e.length===0?"":e.reduce((r,a)=>r.length>a.length?r:a)},"getLongestBadge");var c=Object.defineProperty,o=s((t,e)=>c(t,"name",{value:e,configurable:!0}),"r");const p=o(t=>[t.getHours(),t.getMinutes(),t.getSeconds()].map(e=>String(e).padStart(2,"0")).join(":"),"dateFormatter");class d{static{s(this,"AbstractPrettyReporter")}static{o(this,"AbstractPrettyReporter")}_styles;_loggerTypes;_stringify;constructor(e){this._styles={bold:{label:!1},dateFormatter:p,underline:{label:!1,message:!1,prefix:!1,suffix:!1},uppercase:{label:!1},...e},this._loggerTypes=i}setStringify(e){this._stringify=e}setLoggerTypes(e){this._loggerTypes=e}}export{d as A,u as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var n=Object.defineProperty;var l=(i,e)=>n(i,"name",{value:e,configurable:!0});const o=require("./pail.BjvkVeLq.cjs");var g=Object.defineProperty,c=l((i,e)=>g(i,"name",{value:e,configurable:!0}),"a");class f{static{l(this,"f")}static{c(this,"AbstractJsonReporter")}stringify;setStringify(e){this.stringify=e}log(e){const{file:t,message:a,type:r,...s}=e;s.label&&(s.label=s.label.trim()),t&&(s.file=t.name+":"+t.line+(t.column?":"+t.column:"")),a===o.EMPTY_SYMBOL?s.message=void 0:s.message=a,this._log(this.stringify(s),r.level)}}exports.f=f;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var g=Object.defineProperty;var s=(t,e)=>g(t,"name",{value:e,configurable:!0});const n=require("./pail.
|
|
1
|
+
"use strict";var g=Object.defineProperty;var s=(t,e)=>g(t,"name",{value:e,configurable:!0});const n=require("./pail.BjvkVeLq.cjs");var i=Object.defineProperty,l=s((t,e)=>i(t,"name",{value:e,configurable:!0}),"r$1");const c=l(t=>{const e=Object.keys(t).map(r=>t[r].badge??"");return e.length===0?"":e.reduce((r,a)=>r.length>a.length?r:a)},"getLongestBadge");var p=Object.defineProperty,o=s((t,e)=>p(t,"name",{value:e,configurable:!0}),"r");const y=o(t=>[t.getHours(),t.getMinutes(),t.getSeconds()].map(e=>String(e).padStart(2,"0")).join(":"),"dateFormatter");class b{static{s(this,"AbstractPrettyReporter")}static{o(this,"AbstractPrettyReporter")}_styles;_loggerTypes;_stringify;constructor(e){this._styles={bold:{label:!1},dateFormatter:y,underline:{label:!1,message:!1,prefix:!1,suffix:!1},uppercase:{label:!1},...e},this._loggerTypes=n.LOG_TYPES}setStringify(e){this._stringify=e}setLoggerTypes(e){this._loggerTypes=e}}exports.AbstractPrettyReporter=b;exports.s=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var m=Object.defineProperty;var n=(r,e)=>m(r,"name",{value:e,configurable:!0});const u=require("safe-stable-stringify"),p=require("./pail.BjvkVeLq.cjs"),L=require("./pail.3G15muTS.cjs");var y=Object.defineProperty,b=n((r,e)=>y(r,"name",{value:e,configurable:!0}),"t");class v{static{n(this,"i")}static{b(this,"RawReporter")}log(e){const{context:t=[],message:s,type:o}=e;L.t(o.level)(s,...t)}}var w=Object.defineProperty,_=n((r,e)=>w(r,"name",{value:e,configurable:!0}),"a");const x=_(r=>r===void 0?[]:Array.isArray(r)?r:[r],"arrayify");var M=Object.defineProperty,T=n((r,e)=>M(r,"name",{value:e,configurable:!0}),"g");const E=T((r,e)=>{const t={...r};return Object.keys(e).forEach(s=>{t[s]={...t[s],...e[s]}}),t},"mergeTypes");var R=Object.defineProperty,f=n((r,e)=>R(r,"name",{value:e,configurable:!0}),"l");class d{static{n(this,"PailBrowserImpl")}static{f(this,"PailBrowserImpl")}timersMap;countMap;seqTimers;lastLog;logLevels;disabled;scopeName;types;longestLabel;processors;generalLogLevel;reporters;throttle;throttleMin;stringify;groups;startTimerMessage;endTimerMessage;rawReporter;constructor(e){this.throttle=e.throttle??1e3,this.throttleMin=e.throttleMin??5,this.stringify=u.configure({strict:!0}),this.startTimerMessage=e.messages?.timerStart??"Initialized timer...",this.endTimerMessage=e.messages?.timerEnd??"Timer run for:",this.types=E(p.LOG_TYPES,e.types??{}),this.longestLabel=p.s(this.types),this.logLevels={...p.EXTENDED_RFC_5424_LOG_LEVELS,...e.logLevels},this.generalLogLevel=this._normalizeLogLevel(e.logLevel),this.reporters=new Set,this.processors=new Set,this.disabled=e.disabled??!1,this.scopeName=x(e.scope).filter(Boolean),this.timersMap=new Map,this.countMap=new Map,this.groups=[],this.seqTimers=new Set;for(const t in this.types)this[t]=this._logger.bind(this,t,!1);this.lastLog={},Array.isArray(e.reporters)&&this.registerReporters(e.reporters),this.rawReporter=this.extendReporter(e.rawReporter??new v),Array.isArray(e.processors)&&this.registerProcessors(e.processors)}wrapConsole(){for(const e in this.types)console["__"+e]||(console["__"+e]=console[e]),console[e]=this[e]}restoreConsole(){for(const e in this.types)console["__"+e]&&(console[e]=console["__"+e],delete console["__"+e])}wrapException(){typeof process<"u"&&(process.on("uncaughtException",e=>{this.error(e)}),process.on("unhandledRejection",e=>{this.error(e)}))}disable(){this.disabled=!0}enable(){this.disabled=!1}isEnabled(){return!this.disabled}scope(...e){if(e.length===0)throw new Error("No scope name was defined.");return this.scopeName=e.flat(),this}unscope(){this.scopeName=[]}time(e="default"){this.seqTimers.has(e)?this._logger("warn",!1,{message:"Timer '"+e+"' already exists",prefix:e}):(this.seqTimers.add(e),this.timersMap.set(e,Date.now()),this._logger("start",!1,{message:this.startTimerMessage,prefix:e}))}timeLog(e,...t){if(!e&&this.seqTimers.size>0&&(e=[...this.seqTimers].pop()),e&&this.timersMap.has(e)){const s=Date.now()-this.timersMap.get(e);this._logger("info",!1,{context:t,message:s<1e3?s+" ms":(s/1e3).toFixed(2)+" s",prefix:e})}else this._logger("warn",!1,{context:t,message:"Timer not found",prefix:e})}timeEnd(e){if(!e&&this.seqTimers.size>0&&(e=[...this.seqTimers].pop()),e&&this.timersMap.has(e)){const t=Date.now()-this.timersMap.get(e);this.timersMap.delete(e),this._logger("stop",!1,{message:this.endTimerMessage+" "+(t<1e3?t+" ms":(t/1e3).toFixed(2)+" s"),prefix:e})}}group(e="console.group"){typeof window>"u"?console.group(e):this.groups.push(e)}groupEnd(){typeof window>"u"?console.groupEnd():this.groups.pop()}count(e="default"){const t=this.countMap.get(e)??0;this.countMap.set(e,t+1),this._logger("log",!1,{message:e+": "+(t+1),prefix:e})}countReset(e="default"){this.countMap.has(e)?this.countMap.delete(e):this._logger("warn",!1,{message:"Count for "+e+" does not exist",prefix:e})}clear(){console.clear()}raw(e,...t){this.disabled||this._logger("log",!0,{context:t,message:e})}extendReporter(e){return typeof e.setLoggerTypes=="function"&&e.setLoggerTypes(this.types),typeof e.setStringify=="function"&&e.setStringify(this.stringify),e}registerReporters(e){for(const t of e)this.reporters.add(this.extendReporter(t))}_report(e,t){if(t)this.rawReporter.log(Object.freeze(e));else for(const s of this.reporters)s.log(Object.freeze(e))}registerProcessors(e){for(const t of e)typeof t.setStringify=="function"&&t.setStringify(this.stringify),this.processors.add(t)}_normalizeLogLevel(e){return e&&this.logLevels[e]?e:"debug"}_buildMeta(e,t,...s){const o={badge:void 0,context:void 0,error:void 0,label:void 0,message:p.EMPTY_SYMBOL,prefix:void 0,repeated:void 0,scope:void 0,suffix:void 0};if(o.type={level:t.logLevel,name:e},o.groups=this.groups,o.scope=this.scopeName,o.date=new Date,s.length===1&&typeof s[0]=="object"&&s[0]!==null)if(s[0]instanceof Error)o.error=s[0];else if("message"in s[0]){const{context:i,message:g,prefix:h,suffix:a}=s[0];i&&(o.context=i),h&&(o.prefix=h),a&&(o.suffix=a),o.message=g}else o.message=s[0];else s.length>1&&typeof s[0]=="string"?(o.message=s[0],o.context=s.slice(1)):o.message=s[0];return t.logLevel==="trace"&&(o.traceError=new Error("Trace")),t.badge&&(o.badge=t.badge),t.label&&(o.label=t.label),o}_logger(e,t,...s){if(this.disabled)return;const o=this._normalizeLogLevel(this.types[e].logLevel);if(this.logLevels[o]>=this.logLevels[this.generalLogLevel]){let i=this._buildMeta(e,this.types[e],...s);const g=f((a=!1)=>{const l=(this.lastLog.count||0)-this.throttleMin;if(this.lastLog.object&&l>0){const c={...this.lastLog.object};l>1&&(c.repeated=l),this._report(c,t),this.lastLog.count=1}if(a){for(const c of this.processors)i={...c.process(i)};this.lastLog.object=i,this._report(i,t)}},"resolveLog");clearTimeout(this.lastLog.timeout);const h=this.lastLog.time&&i.date?new Date(i.date).getTime()-this.lastLog.time.getTime():0;if(this.lastLog.time=new Date(i.date),h<this.throttle)try{const a=JSON.stringify([i.label,i.scope,i.type,i.message,i.prefix,i.suffix,i.context]),l=this.lastLog.serialized===a;if(this.lastLog.serialized=a,l&&(this.lastLog.count=(this.lastLog.count||0)+1,this.lastLog.count>this.throttleMin)){this.lastLog.timeout=setTimeout(g,this.throttle);return}}catch{}g(!0)}}}const S=d;exports.PailBrowser=S;exports.PailBrowserImpl=d;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
// -- pack CommonJS Shims --
|
|
3
|
+
import __cjs_url__ from "node:url";
|
|
4
|
+
import __cjs_path__ from "node:path";
|
|
5
|
+
import __cjs_mod__ from "node:module";
|
|
6
|
+
const __filename = __cjs_url__.fileURLToPath(import.meta.url);
|
|
7
|
+
const __dirname = __cjs_path__.dirname(__filename);
|
|
8
|
+
const require = __cjs_mod__.createRequire(import.meta.url);
|
|
9
|
+
var i=Object.defineProperty;var s=(t,r)=>i(t,"name",{value:r,configurable:!0});var n=Object.defineProperty,h=s((t,r)=>n(t,"name",{value:r,configurable:!0}),"r");class u{static{s(this,"n")}static{h(this,"RedactProcessor")}#r;constructor(r,e){try{const{redact:a,standardRules:c}=require("@visulima/redact");this.#r=o=>a(o,r||c,e)}catch{throw new Error("The '@visulima/redact' package is missing. Make sure to install the '@visulima/redact' package.")}}process(r){return r.message=this.#r(r.message),r.context=this.#r(r.context),r.error=this.#r(r.error),r}}const d=u;export{d as n};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var o=Object.defineProperty;var r=(t,e)=>o(t,"name",{value:e,configurable:!0});const n=require("./pail.3G15muTS.cjs"),c=require("./pail.D0U9y4qH.cjs");var a=Object.defineProperty,i=r((t,e)=>a(t,"name",{value:e,configurable:!0}),"t");class u extends c.f{static{r(this,"p")}static{i(this,"JsonReporter")}constructor(){super()}_log(e,s){n.t(s)(e)}}const l=u;exports.n=l;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var n=Object.defineProperty;var l=(t,e)=>n(t,"name",{value:e,configurable:!0});import{E as o}from"./pail.C1VNf0a-.mjs";var f=Object.defineProperty,g=l((t,e)=>f(t,"name",{value:e,configurable:!0}),"a");class b{static{l(this,"f")}static{g(this,"AbstractJsonReporter")}stringify;setStringify(e){this.stringify=e}log(e){const{file:i,message:a,type:r,...s}=e;s.label&&(s.label=s.label.trim()),i&&(s.file=i.name+":"+i.line+(i.column?":"+i.column:"")),a===o?s.message=void 0:s.message=a,this._log(this.stringify(s),r.level)}}export{b as f};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var s=Object.defineProperty;var e=(r,t)=>s(r,"name",{value:t,configurable:!0});import{t as n}from"./pail.BP95fgQZ.mjs";import{f as a}from"./pail.uFyi02gk.mjs";var c=Object.defineProperty,p=e((r,t)=>c(r,"name",{value:t,configurable:!0}),"t");class i extends a{static{e(this,"p")}static{p(this,"JsonReporter")}constructor(){super()}_log(t,o){n(o)(t)}}const u=i;export{u as n};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var o=Object.defineProperty;var s=(t,r)=>o(t,"name",{value:r,configurable:!0});var n=Object.defineProperty,u=s((t,r)=>n(t,"name",{value:r,configurable:!0}),"r");class h{static{s(this,"n")}static{u(this,"RedactProcessor")}#r;constructor(r,e){try{const{redact:a,standardRules:c}=require("@visulima/redact");this.#r=i=>a(i,r||c,e)}catch{throw new Error("The '@visulima/redact' package is missing. Make sure to install the '@visulima/redact' package.")}}process(r){return r.message=this.#r(r.message),r.context=this.#r(r.context),r.error=this.#r(r.error),r}}const l=h;exports.n=l;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/pail",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Find a file or directory by walking up parent directories.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ansi",
|
|
@@ -203,6 +203,7 @@
|
|
|
203
203
|
"@total-typescript/ts-reset": "^0.5.1",
|
|
204
204
|
"@types/node": "18.19.15",
|
|
205
205
|
"@visulima/packem": "^1.0.0-alpha.41",
|
|
206
|
+
"@visulima/redact": "1.0.2",
|
|
206
207
|
"@vitest/coverage-v8": "^1.6.0",
|
|
207
208
|
"@vitest/ui": "^1.6.0",
|
|
208
209
|
"conventional-changelog-conventionalcommits": "8.0.0",
|
|
@@ -217,20 +218,24 @@
|
|
|
217
218
|
"eslint-plugin-vitest-globals": "^1.5.0",
|
|
218
219
|
"prettier": "^3.3.2",
|
|
219
220
|
"rimraf": "^5.0.7",
|
|
220
|
-
"type-fest": "^4.20.0",
|
|
221
221
|
"rotating-file-stream": "^3.2.3",
|
|
222
222
|
"secretlint": "8.2.4",
|
|
223
223
|
"semantic-release": "24.0.0",
|
|
224
224
|
"string-length": "^6.0.0",
|
|
225
225
|
"terminal-size": "^4.0.0",
|
|
226
|
+
"type-fest": "^4.20.0",
|
|
226
227
|
"typescript": "^5.4.5",
|
|
227
228
|
"vitest": "^1.6.0",
|
|
228
229
|
"wrap-ansi": "^9.0.0"
|
|
229
230
|
},
|
|
230
231
|
"peerDependencies": {
|
|
232
|
+
"@visulima/redact": "1.0.2",
|
|
231
233
|
"rotating-file-stream": "^3.1.1"
|
|
232
234
|
},
|
|
233
235
|
"peerDependenciesMeta": {
|
|
236
|
+
"@visulima/redact": {
|
|
237
|
+
"optional": true
|
|
238
|
+
},
|
|
234
239
|
"rotating-file-stream": {
|
|
235
240
|
"optional": true
|
|
236
241
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var s=Object.defineProperty;var r=(t,e)=>s(t,"name",{value:e,configurable:!0});const n=require("./pail.3G15muTS.cjs"),c=require("./pail.DFhaFnnA.cjs");var a=Object.defineProperty,i=r((t,e)=>a(t,"name",{value:e,configurable:!0}),"t");class u extends c.o{static{r(this,"p")}static{i(this,"JsonReporter")}constructor(){super()}_log(e,o){n.t(o)(e)}}const l=u;exports.n=l;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var s=Object.defineProperty;var o=(r,t)=>s(r,"name",{value:t,configurable:!0});import{t as n}from"./pail.BP95fgQZ.mjs";import{o as a}from"./pail.Cn4oOlxI.mjs";var c=Object.defineProperty,p=o((r,t)=>c(r,"name",{value:t,configurable:!0}),"t");class i extends a{static{o(this,"p")}static{p(this,"JsonReporter")}constructor(){super()}_log(t,e){n(e)(t)}}const u=i;export{u as n};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r=Object.defineProperty;var s=(l,e)=>r(l,"name",{value:e,configurable:!0});var a=Object.defineProperty,o=s((l,e)=>a(l,"name",{value:e,configurable:!0}),"n");class f{static{s(this,"o")}static{o(this,"AbstractJsonReporter")}stringify;setStringify(e){this.stringify=e}log(e){const{file:t,type:n,...i}=e;i.label&&(i.label=i.label.trim()),t&&(i.file=t.name+":"+t.line+(t.column?":"+t.column:"")),this._log(this.stringify(i),n.level)}}export{f as o};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
var ED=Object.defineProperty;var E=(D,u)=>ED(D,"name",{value:u,configurable:!0});import b,{stdout as CD,stderr as tD}from"node:process";import rD,{red as nD,grey as f,cyan as BD,underline as M,bold as sD,white as iD,bgGrey as oD}from"@visulima/colorize";import{execFileSync as aD}from"node:child_process";import w from"node:fs";import AD from"node:tty";import{A as lD,s as cD}from"./pail.BlF6_AB7.mjs";import{s as fD}from"./pail.CKgnzwt6.mjs";const q=80,H=24,L=E((D,u,{shell:F,env:e}={})=>aD(D,u,{encoding:"utf8",stdio:["ignore","pipe","ignore"],timeout:500,shell:F,env:e}).trim(),"exec$1"),x=E((D,u)=>({columns:Number.parseInt(D,10),rows:Number.parseInt(u,10)}),"create"),J=E((D,u)=>{const{columns:F,rows:e}=x(D,u);if(!(Number.isNaN(F)||Number.isNaN(e))&&!(F===q&&e===H))return{columns:F,rows:e}},"createIfNotDefault");function gD(){const{env:D,stdout:u,stderr:F}=b;if(u?.columns&&u?.rows)return x(u.columns,u.rows);if(F?.columns&&F?.rows)return x(F.columns,F.rows);if(D.COLUMNS&&D.LINES)return x(D.COLUMNS,D.LINES);const e={columns:q,rows:H};return b.platform==="win32"?T()??e:b.platform==="darwin"?G()??T()??e:G()??T()??hD()??e}E(gD,"terminalSize");const G=E(()=>{try{const D=b.platform==="darwin"?w.constants.O_EVTONLY|w.constants.O_NONBLOCK:w.constants.O_NONBLOCK,{columns:u,rows:F}=AD.WriteStream(w.openSync("/dev/tty",D));return{columns:u,rows:F}}catch{}},"devTty"),T=E(()=>{try{const D=L("tput",["cols"],{env:{TERM:"dumb",...b.env}}),u=L("tput",["lines"],{env:{TERM:"dumb",...b.env}});if(D&&u)return J(D,u)}catch{}},"tput"),hD=E(()=>{try{const D=L("resize",["-u"]).match(/\d+/g);if(D.length===2)return J(D[0],D[1])}catch{}},"resize");function pD({onlyFirst:D=!1}={}){const u=["[\\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(u,D?void 0:"g")}E(pD,"ansiRegex");const dD=pD();function R(D){if(typeof D!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof D}\``);return D.replace(dD,"")}E(R,"stripAnsi");function mD(D){return D===161||D===164||D===167||D===168||D===170||D===173||D===174||D>=176&&D<=180||D>=182&&D<=186||D>=188&&D<=191||D===198||D===208||D===215||D===216||D>=222&&D<=225||D===230||D>=232&&D<=234||D===236||D===237||D===240||D===242||D===243||D>=247&&D<=250||D===252||D===254||D===257||D===273||D===275||D===283||D===294||D===295||D===299||D>=305&&D<=307||D===312||D>=319&&D<=322||D===324||D>=328&&D<=331||D===333||D===338||D===339||D===358||D===359||D===363||D===462||D===464||D===466||D===468||D===470||D===472||D===474||D===476||D===593||D===609||D===708||D===711||D>=713&&D<=715||D===717||D===720||D>=728&&D<=731||D===733||D===735||D>=768&&D<=879||D>=913&&D<=929||D>=931&&D<=937||D>=945&&D<=961||D>=963&&D<=969||D===1025||D>=1040&&D<=1103||D===1105||D===8208||D>=8211&&D<=8214||D===8216||D===8217||D===8220||D===8221||D>=8224&&D<=8226||D>=8228&&D<=8231||D===8240||D===8242||D===8243||D===8245||D===8251||D===8254||D===8308||D===8319||D>=8321&&D<=8324||D===8364||D===8451||D===8453||D===8457||D===8467||D===8470||D===8481||D===8482||D===8486||D===8491||D===8531||D===8532||D>=8539&&D<=8542||D>=8544&&D<=8555||D>=8560&&D<=8569||D===8585||D>=8592&&D<=8601||D===8632||D===8633||D===8658||D===8660||D===8679||D===8704||D===8706||D===8707||D===8711||D===8712||D===8715||D===8719||D===8721||D===8725||D===8730||D>=8733&&D<=8736||D===8739||D===8741||D>=8743&&D<=8748||D===8750||D>=8756&&D<=8759||D===8764||D===8765||D===8776||D===8780||D===8786||D===8800||D===8801||D>=8804&&D<=8807||D===8810||D===8811||D===8814||D===8815||D===8834||D===8835||D===8838||D===8839||D===8853||D===8857||D===8869||D===8895||D===8978||D>=9312&&D<=9449||D>=9451&&D<=9547||D>=9552&&D<=9587||D>=9600&&D<=9615||D>=9618&&D<=9621||D===9632||D===9633||D>=9635&&D<=9641||D===9650||D===9651||D===9654||D===9655||D===9660||D===9661||D===9664||D===9665||D>=9670&&D<=9672||D===9675||D>=9678&&D<=9681||D>=9698&&D<=9701||D===9711||D===9733||D===9734||D===9737||D===9742||D===9743||D===9756||D===9758||D===9792||D===9794||D===9824||D===9825||D>=9827&&D<=9829||D>=9831&&D<=9834||D===9836||D===9837||D===9839||D===9886||D===9887||D===9919||D>=9926&&D<=9933||D>=9935&&D<=9939||D>=9941&&D<=9953||D===9955||D===9960||D===9961||D>=9963&&D<=9969||D===9972||D>=9974&&D<=9977||D===9979||D===9980||D===9982||D===9983||D===10045||D>=10102&&D<=10111||D>=11094&&D<=11097||D>=12872&&D<=12879||D>=57344&&D<=63743||D>=65024&&D<=65039||D===65533||D>=127232&&D<=127242||D>=127248&&D<=127277||D>=127280&&D<=127337||D>=127344&&D<=127373||D===127375||D===127376||D>=127387&&D<=127404||D>=917760&&D<=917999||D>=983040&&D<=1048573||D>=1048576&&D<=1114109}E(mD,"isAmbiguous");function bD(D){return D===12288||D>=65281&&D<=65376||D>=65504&&D<=65510}E(bD,"isFullWidth");function yD(D){return D>=4352&&D<=4447||D===8986||D===8987||D===9001||D===9002||D>=9193&&D<=9196||D===9200||D===9203||D===9725||D===9726||D===9748||D===9749||D>=9800&&D<=9811||D===9855||D===9875||D===9889||D===9898||D===9899||D===9917||D===9918||D===9924||D===9925||D===9934||D===9940||D===9962||D===9970||D===9971||D===9973||D===9978||D===9981||D===9989||D===9994||D===9995||D===10024||D===10060||D===10062||D>=10067&&D<=10069||D===10071||D>=10133&&D<=10135||D===10160||D===10175||D===11035||D===11036||D===11088||D===11093||D>=11904&&D<=11929||D>=11931&&D<=12019||D>=12032&&D<=12245||D>=12272&&D<=12287||D>=12289&&D<=12350||D>=12353&&D<=12438||D>=12441&&D<=12543||D>=12549&&D<=12591||D>=12593&&D<=12686||D>=12688&&D<=12771||D>=12783&&D<=12830||D>=12832&&D<=12871||D>=12880&&D<=19903||D>=19968&&D<=42124||D>=42128&&D<=42182||D>=43360&&D<=43388||D>=44032&&D<=55203||D>=63744&&D<=64255||D>=65040&&D<=65049||D>=65072&&D<=65106||D>=65108&&D<=65126||D>=65128&&D<=65131||D>=94176&&D<=94180||D===94192||D===94193||D>=94208&&D<=100343||D>=100352&&D<=101589||D>=101632&&D<=101640||D>=110576&&D<=110579||D>=110581&&D<=110587||D===110589||D===110590||D>=110592&&D<=110882||D===110898||D>=110928&&D<=110930||D===110933||D>=110948&&D<=110951||D>=110960&&D<=111355||D===126980||D===127183||D===127374||D>=127377&&D<=127386||D>=127488&&D<=127490||D>=127504&&D<=127547||D>=127552&&D<=127560||D===127568||D===127569||D>=127584&&D<=127589||D>=127744&&D<=127776||D>=127789&&D<=127797||D>=127799&&D<=127868||D>=127870&&D<=127891||D>=127904&&D<=127946||D>=127951&&D<=127955||D>=127968&&D<=127984||D===127988||D>=127992&&D<=128062||D===128064||D>=128066&&D<=128252||D>=128255&&D<=128317||D>=128331&&D<=128334||D>=128336&&D<=128359||D===128378||D===128405||D===128406||D===128420||D>=128507&&D<=128591||D>=128640&&D<=128709||D===128716||D>=128720&&D<=128722||D>=128725&&D<=128727||D>=128732&&D<=128735||D===128747||D===128748||D>=128756&&D<=128764||D>=128992&&D<=129003||D===129008||D>=129292&&D<=129338||D>=129340&&D<=129349||D>=129351&&D<=129535||D>=129648&&D<=129660||D>=129664&&D<=129672||D>=129680&&D<=129725||D>=129727&&D<=129733||D>=129742&&D<=129755||D>=129760&&D<=129768||D>=129776&&D<=129784||D>=131072&&D<=196605||D>=196608&&D<=262141}E(yD,"isWide");function wD(D){if(!Number.isSafeInteger(D))throw new TypeError(`Expected a code point, got \`${typeof D}\`.`)}E(wD,"validate");function xD(D,{ambiguousAsWide:u=!1}={}){return wD(D),bD(D)||yD(D)||u&&mD(D)?2:1}E(xD,"eastAsianWidth");const vD=E(()=>/[#*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](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\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(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\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](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\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-\uDDF5\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](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\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(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\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-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\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,"emojiRegex"),SD=new Intl.Segmenter;function y(D,u={}){if(typeof D!="string"||D.length===0)return 0;const{ambiguousIsNarrow:F=!0,countAnsiEscapeCodes:e=!1}=u;if(e||(D=R(D)),D.length===0)return 0;let t=0;const B={ambiguousAsWide:!F};for(const{segment:r}of SD.segment(D)){const C=r.codePointAt(0);if(!(C<=31||C>=127&&C<=159)&&!(C>=768&&C<=879)){if(vD().test(r)){t+=2;continue}t+=xD(C,B)}}return t}E(y,"stringWidth");const $=10,U=E((D=0)=>u=>`\x1B[${u+D}m`,"wrapAnsi16"),K=E((D=0)=>u=>`\x1B[${38+D};5;${u}m`,"wrapAnsi256"),Y=E((D=0)=>(u,F,e)=>`\x1B[${38+D};2;${u};${F};${e}m`,"wrapAnsi16m"),n={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]}};Object.keys(n.modifier);const ND=Object.keys(n.color),_D=Object.keys(n.bgColor);[...ND,..._D];function TD(){const D=new Map;for(const[u,F]of Object.entries(n)){for(const[e,t]of Object.entries(F))n[e]={open:`\x1B[${t[0]}m`,close:`\x1B[${t[1]}m`},F[e]=n[e],D.set(t[0],t[1]);Object.defineProperty(n,u,{value:F,enumerable:!1})}return Object.defineProperty(n,"codes",{value:D,enumerable:!1}),n.color.close="\x1B[39m",n.bgColor.close="\x1B[49m",n.color.ansi=U(),n.color.ansi256=K(),n.color.ansi16m=Y(),n.bgColor.ansi=U($),n.bgColor.ansi256=K($),n.bgColor.ansi16m=Y($),Object.defineProperties(n,{rgbToAnsi256:{value:E((u,F,e)=>u===F&&F===e?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(F/255*5)+Math.round(e/255*5),"value"),enumerable:!1},hexToRgb:{value:E(u=>{const F=/[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));if(!F)return[0,0,0];let[e]=F;e.length===3&&(e=[...e].map(B=>B+B).join(""));const t=Number.parseInt(e,16);return[t>>16&255,t>>8&255,t&255]},"value"),enumerable:!1},hexToAnsi256:{value:E(u=>n.rgbToAnsi256(...n.hexToRgb(u)),"value"),enumerable:!1},ansi256ToAnsi:{value:E(u=>{if(u<8)return 30+u;if(u<16)return 90+(u-8);let F,e,t;if(u>=232)F=((u-232)*10+8)/255,e=F,t=F;else{u-=16;const C=u%36;F=Math.floor(u/36)/5,e=Math.floor(C/6)/5,t=C%6/5}const B=Math.max(F,e,t)*2;if(B===0)return 30;let r=30+(Math.round(t)<<2|Math.round(e)<<1|Math.round(F));return B===2&&(r+=60),r},"value"),enumerable:!1},rgbToAnsi:{value:E((u,F,e)=>n.ansi256ToAnsi(n.rgbToAnsi256(u,F,e)),"value"),enumerable:!1},hexToAnsi:{value:E(u=>n.ansi256ToAnsi(n.hexToAnsi256(u)),"value"),enumerable:!1}}),n}E(TD,"assembleStyles");const $D=TD(),S=new Set(["\x1B",""]),jD=39,k="\x07",Q="[",OD="]",X="m",v=`${OD}8;;`,Z=E(D=>`${S.values().next().value}${Q}${D}${X}`,"wrapAnsiCode"),V=E(D=>`${S.values().next().value}${v}${D}${k}`,"wrapAnsiHyperlink"),ID=E(D=>D.split(" ").map(u=>y(u)),"wordLengths"),j=E((D,u,F)=>{const e=[...u];let t=!1,B=!1,r=y(R(D.at(-1)));for(const[C,o]of e.entries()){const A=y(o);if(r+A<=F?D[D.length-1]+=o:(D.push(o),r=0),S.has(o)&&(t=!0,B=e.slice(C+1,C+1+v.length).join("")===v),t){B?o===k&&(t=!1,B=!1):o===X&&(t=!1);continue}r+=A,r===F&&C<e.length-1&&(D.push(""),r=0)}!r&&D.at(-1).length>0&&D.length>1&&(D[D.length-2]+=D.pop())},"wrapWord"),MD=E(D=>{const u=D.split(" ");let F=u.length;for(;F>0&&!(y(u[F-1])>0);)F--;return F===u.length?D:u.slice(0,F).join(" ")+u.slice(F).join("")},"stringVisibleTrimSpacesRight"),LD=E((D,u,F={})=>{if(F.trim!==!1&&D.trim()==="")return"";let e="",t,B;const r=ID(D);let C=[""];for(const[i,l]of D.split(" ").entries()){F.trim!==!1&&(C[C.length-1]=C.at(-1).trimStart());let a=y(C.at(-1));if(i!==0&&(a>=u&&(F.wordWrap===!1||F.trim===!1)&&(C.push(""),a=0),(a>0||F.trim===!1)&&(C[C.length-1]+=" ",a++)),F.hard&&r[i]>u){const c=u-a,p=1+Math.floor((r[i]-c-1)/u);Math.floor((r[i]-1)/u)<p&&C.push(""),j(C,l,u);continue}if(a+r[i]>u&&a>0&&r[i]>0){if(F.wordWrap===!1&&a<u){j(C,l,u);continue}C.push("")}if(a+r[i]>u&&F.wordWrap===!1){j(C,l,u);continue}C[C.length-1]+=l}F.trim!==!1&&(C=C.map(i=>MD(i)));const o=C.join(`
|
|
2
|
-
`),A=[...o];let g=0;for(const[i,l]of A.entries()){if(e+=l,S.has(l)){const{groups:c}=new RegExp(`(?:\\${Q}(?<code>\\d+)m|\\${v}(?<uri>.*)${k})`).exec(o.slice(g))||{groups:{}};if(c.code!==void 0){const p=Number.parseFloat(c.code);t=p===jD?void 0:p}else c.uri!==void 0&&(B=c.uri.length===0?void 0:c.uri)}const a=$D.codes.get(Number(t));A[i+1]===`
|
|
3
|
-
`?(B&&(e+=V("")),t&&a&&(e+=Z(a))):l===`
|
|
4
|
-
`&&(t&&a&&(e+=Z(t)),B&&(e+=V(B))),g+=l.length}return e},"exec");function DD(D,u,F){return String(D).normalize().replaceAll(`\r
|
|
5
|
-
`,`
|
|
6
|
-
`).split(`
|
|
7
|
-
`).map(e=>LD(e,u,F)).join(`
|
|
8
|
-
`)}E(DD,"wrapAnsi");var RD=Object.defineProperty,kD=E((D,u)=>RD(D,"name",{value:u,configurable:!0}),"r");const WD=kD((D,u)=>(u.__write??u.write).call(u,D),"writeStream"),PD=new Intl.Segmenter;function O(D,{countAnsiEscapeCodes:u=!1}={}){if(D===""||(u||(D=R(D)),D===""))return 0;let F=0;for(const e of PD.segment(D))F++;return F}E(O,"stringLength");var zD=Object.defineProperty,GD=E((D,u)=>zD(D,"name",{value:u,configurable:!0}),"o$1");const I=GD((D,u,F,e=!1)=>{const{message:t,name:B,stack:r}=D,C=[];if(C.push(...e?[]:[F+nD(B),": "],DD(t,u-3,{hard:!0,trim:!0,wordWrap:!0})),r){const o=r.split(`
|
|
9
|
-
`).splice(1).map(A=>F+A.trim().replace("file://","")).filter(A=>!A.includes("/pail/dist"));C.push(`
|
|
10
|
-
`,o.map(A=>" "+A.replace(/^at +/,g=>f(g)).replace(/\((.+)\)/,(g,i)=>"("+BD(i)+")")).join(`
|
|
11
|
-
`))}return C.join("")},"formatError");var UD=Object.defineProperty,KD=E((D,u)=>UD(D,"name",{value:u,configurable:!0}),"o");const YD=KD((D,u)=>{let F=u.uppercase.label?D.toUpperCase():D;return F=u.underline.label?M(F):F,u.bold.label&&(F=sD(F)),F},"formatLabel");var ZD=Object.defineProperty,VD=E((D,u)=>ZD(D,"name",{value:u,configurable:!0}),"E");class qD extends lD{static{E(this,"q")}static{VD(this,"PrettyReporter")}#D;#u;#F;#e=!1;constructor(u={}){super({uppercase:{label:!0,...u.uppercase},...u}),this.#D=CD,this.#u=tD}setStdout(u){this.#D=u}setStderr(u){this.#u=u}setInteractiveManager(u){this.#F=u}setIsInteractive(u){this.#e=u}log(u){this._log(this._formatMessage(u),u.type.level)}_formatMessage(u){const{columns:F}=gD();let e=F;typeof this._styles.messageLength=="number"&&(e=this._styles.messageLength);const{badge:t,context:B,date:r,error:C,file:o,groups:A,label:g,message:i,prefix:l,repeated:a,scope:c,suffix:p,traceError:N,type:uD}=u,{color:W}=this._loggerTypes[uD.name],P=W?rD[W]:iD,m=A.map(()=>" ").join(""),s=[];if(A.length>0&&s.push(m+f("["+A.at(-1)+"]")+" "),r&&s.push(f(this._styles.dateFormatter(typeof r=="string"?new Date(r):r))+" "),t)s.push(P(t));else{const h=cD(this._loggerTypes);h.length>0&&s.push(f(".".repeat(h.length))+" ")}const z=fD(this._loggerTypes);g?s.push(P(YD(g,this._styles))+" ",f(".".repeat(z.length-O(g)))):s.push(f(".".repeat(z.length+2))),a&&s.push(oD.white("["+a+"x]")+" "),Array.isArray(c)&&c.length>0&&s.push(" "+f("["+c.join(" > ")+"]")+" "),l&&s.push(f((Array.isArray(c)&&c.length>0?". ":" ")+"["+(this._styles.underline.prefix?M(l):l)+"]")+" ");const _=O(s.join(" "));if(o){const h=o.name+(o.line?":"+o.line:""),d=O(h);d+_+2>e?s.push(f(" "+h)):s.push(f(".".repeat(e-_-d-2)+" "+h))}else s.push(f(".".repeat(e-_-1)));s.length>0&&s.push(`
|
|
12
|
-
|
|
13
|
-
`);const FD=typeof i=="string"?i:this._stringify(i);if(s.push(m+DD(FD??"undefined",e-3,{hard:!0,trim:!0,wordWrap:!0})),B){let h=!1;s.push(...B.map(d=>{if(d instanceof Error)return h=!0,`
|
|
14
|
-
|
|
15
|
-
`+I(d,e,m);if(typeof d=="object")return" "+this._stringify(d);const eD=(h?`
|
|
16
|
-
|
|
17
|
-
`:" ")+d;return h=!1,eD}))}return C&&s.push(I(C,e,m)),N&&s.push(I(N,e,m,!0)),p&&s.push(`
|
|
18
|
-
`,m+f(this._styles.underline.suffix?M(p):p)),s.join("")+`
|
|
19
|
-
`}_log(u,F){const e=["error","trace","warn"].includes(F)?"stderr":"stdout",t=e==="stderr"?this.#u:this.#D;this.#e&&this.#F!==void 0&&t.isTTY?this.#F.update(e,u.split(`
|
|
20
|
-
`),0):WD(u+`
|
|
21
|
-
`,t)}}const Eu=qD;export{Eu as a,YD as b,I as c,WD as n,O as s,gD as t,DD as w};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var r=Object.defineProperty;var s=(l,t)=>r(l,"name",{value:t,configurable:!0});var a=Object.defineProperty,o=s((l,t)=>a(l,"name",{value:t,configurable:!0}),"n");class c{static{s(this,"o")}static{o(this,"AbstractJsonReporter")}stringify;setStringify(t){this.stringify=t}log(t){const{file:e,type:n,...i}=t;i.label&&(i.label=i.label.trim()),e&&(i.file=e.name+":"+e.line+(e.column?":"+e.column:"")),this._log(this.stringify(i),n.level)}}exports.o=c;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var f=Object.defineProperty;var n=(r,e)=>f(r,"name",{value:e,configurable:!0});import{configure as m}from"safe-stable-stringify";import{L as d,s as u,E as L}from"./pail.CKgnzwt6.mjs";import{t as y}from"./pail.BP95fgQZ.mjs";var b=Object.defineProperty,v=n((r,e)=>b(r,"name",{value:e,configurable:!0}),"t");class w{static{n(this,"i")}static{v(this,"RawReporter")}log(e){const{context:t=[],message:s,type:o}=e;y(o.level)(s,...t)}}var x=Object.defineProperty,_=n((r,e)=>x(r,"name",{value:e,configurable:!0}),"a");const M=_(r=>r===void 0?[]:Array.isArray(r)?r:[r],"arrayify");var T=Object.defineProperty,E=n((r,e)=>T(r,"name",{value:e,configurable:!0}),"g");const R=E((r,e)=>{const t={...r};return Object.keys(e).forEach(s=>{t[s]={...t[s],...e[s]}}),t},"mergeTypes");var j=Object.defineProperty,c=n((r,e)=>j(r,"name",{value:e,configurable:!0}),"l");const P={badge:void 0,context:void 0,error:void 0,label:void 0,message:void 0,prefix:void 0,repeated:void 0,scope:void 0,suffix:void 0};class S{static{n(this,"PailBrowserImpl")}static{c(this,"PailBrowserImpl")}timersMap;countMap;seqTimers;lastLog;logLevels;disabled;scopeName;types;longestLabel;processors;generalLogLevel;reporters;throttle;throttleMin;stringify;groups;startTimerMessage;endTimerMessage;rawReporter;constructor(e){this.throttle=e.throttle??1e3,this.throttleMin=e.throttleMin??5,this.stringify=m({strict:!0}),this.startTimerMessage=e.messages?.timerStart??"Initialized timer...",this.endTimerMessage=e.messages?.timerEnd??"Timer run for:",this.types=R(d,e.types??{}),this.longestLabel=u(this.types),this.logLevels={...L,...e.logLevels},this.generalLogLevel=this._normalizeLogLevel(e.logLevel),this.reporters=new Set,this.processors=new Set,this.disabled=e.disabled??!1,this.scopeName=M(e.scope).filter(Boolean),this.timersMap=new Map,this.countMap=new Map,this.groups=[],this.seqTimers=new Set;for(const t in this.types)this[t]=this._logger.bind(this,t,!1);this.lastLog={},Array.isArray(e.reporters)&&this.registerReporters(e.reporters),this.rawReporter=this.extendReporter(e.rawReporter??new w),Array.isArray(e.processors)&&this.registerProcessors(e.processors)}wrapConsole(){for(const e in this.types)console["__"+e]||(console["__"+e]=console[e]),console[e]=this[e]}restoreConsole(){for(const e in this.types)console["__"+e]&&(console[e]=console["__"+e],delete console["__"+e])}wrapException(){typeof process<"u"&&(process.on("uncaughtException",e=>{this.error(e)}),process.on("unhandledRejection",e=>{this.error(e)}))}disable(){this.disabled=!0}enable(){this.disabled=!1}isEnabled(){return!this.disabled}scope(...e){if(e.length===0)throw new Error("No scope name was defined.");return this.scopeName=e.flat(),this}unscope(){this.scopeName=[]}time(e="default"){this.seqTimers.has(e)?this._logger("warn",!1,{message:"Timer '"+e+"' already exists",prefix:e}):(this.seqTimers.add(e),this.timersMap.set(e,Date.now()),this._logger("start",!1,{message:this.startTimerMessage,prefix:e}))}timeLog(e,...t){if(!e&&this.seqTimers.size>0&&(e=[...this.seqTimers].pop()),e&&this.timersMap.has(e)){const s=Date.now()-this.timersMap.get(e);this._logger("info",!1,{context:t,message:s<1e3?s+" ms":(s/1e3).toFixed(2)+" s",prefix:e})}else this._logger("warn",!1,{context:t,message:"Timer not found",prefix:e})}timeEnd(e){if(!e&&this.seqTimers.size>0&&(e=[...this.seqTimers].pop()),e&&this.timersMap.has(e)){const t=Date.now()-this.timersMap.get(e);this.timersMap.delete(e),this._logger("stop",!1,{message:this.endTimerMessage+" "+(t<1e3?t+" ms":(t/1e3).toFixed(2)+" s"),prefix:e})}}group(e="console.group"){typeof window>"u"?console.group(e):this.groups.push(e)}groupEnd(){typeof window>"u"?console.groupEnd():this.groups.pop()}count(e="default"){const t=this.countMap.get(e)??0;this.countMap.set(e,t+1),this._logger("log",!1,{message:e+": "+(t+1),prefix:e})}countReset(e="default"){this.countMap.has(e)?this.countMap.delete(e):this._logger("warn",!1,{message:"Count for "+e+" does not exist",prefix:e})}clear(){console.clear()}raw(e,...t){this.disabled||this._logger("log",!0,{context:t,message:e})}extendReporter(e){return typeof e.setLoggerTypes=="function"&&e.setLoggerTypes(this.types),typeof e.setStringify=="function"&&e.setStringify(this.stringify),e}registerReporters(e){for(const t of e)this.reporters.add(this.extendReporter(t))}_report(e,t){if(t)this.rawReporter.log(Object.freeze(e));else for(const s of this.reporters)s.log(Object.freeze(e))}registerProcessors(e){for(const t of e)typeof t.setStringify=="function"&&t.setStringify(this.stringify),this.processors.add(t)}_normalizeLogLevel(e){return e&&this.logLevels[e]?e:"debug"}_buildMeta(e,t,...s){const o={...P};if(o.type={level:t.logLevel,name:e},o.groups=this.groups,o.scope=this.scopeName,o.date=new Date,s.length===1&&typeof s[0]=="object"&&s[0]!==null)if(s[0]instanceof Error)o.error=s[0];else if("message"in s[0]){const{context:i,message:g,prefix:h,suffix:a}=s[0];i&&(o.context=i),h&&(o.prefix=h),a&&(o.suffix=a),o.message=g}else o.message=s[0];else s.length>1&&typeof s[0]=="string"?(o.message=s[0],o.context=s.slice(1)):o.message=s[0];return t.logLevel==="trace"&&(o.traceError=new Error("Trace")),t.badge&&(o.badge=t.badge),t.label&&(o.label=t.label),o}_logger(e,t,...s){if(this.disabled)return;const o=this._normalizeLogLevel(this.types[e].logLevel);if(this.logLevels[o]>=this.logLevels[this.generalLogLevel]){let i=this._buildMeta(e,this.types[e],...s);const g=c((a=!1)=>{const l=(this.lastLog.count||0)-this.throttleMin;if(this.lastLog.object&&l>0){const p={...this.lastLog.object};l>1&&(p.repeated=l),this._report(p,t),this.lastLog.count=1}if(a){for(const p of this.processors)i={...p.process(i)};this.lastLog.object=i,this._report(i,t)}},"resolveLog");clearTimeout(this.lastLog.timeout);const h=this.lastLog.time&&i.date?new Date(i.date).getTime()-this.lastLog.time.getTime():0;if(this.lastLog.time=new Date(i.date),h<this.throttle)try{const a=JSON.stringify([i.label,i.scope,i.type,i.message,i.prefix,i.suffix,i.context]),l=this.lastLog.serialized===a;if(this.lastLog.serialized=a,l&&(this.lastLog.count=(this.lastLog.count||0)+1,this.lastLog.count>this.throttleMin)){this.lastLog.timeout=setTimeout(g,this.throttle);return}}catch{}g(!0)}}}const N=S;export{N as P,S as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var m=Object.defineProperty;var n=(r,e)=>m(r,"name",{value:e,configurable:!0});const u=require("safe-stable-stringify"),p=require("./pail.B0AqLGpo.cjs"),L=require("./pail.3G15muTS.cjs");var y=Object.defineProperty,b=n((r,e)=>y(r,"name",{value:e,configurable:!0}),"t");class v{static{n(this,"i")}static{b(this,"RawReporter")}log(e){const{context:t=[],message:s,type:o}=e;L.t(o.level)(s,...t)}}var w=Object.defineProperty,x=n((r,e)=>w(r,"name",{value:e,configurable:!0}),"a");const _=x(r=>r===void 0?[]:Array.isArray(r)?r:[r],"arrayify");var M=Object.defineProperty,T=n((r,e)=>M(r,"name",{value:e,configurable:!0}),"g");const E=T((r,e)=>{const t={...r};return Object.keys(e).forEach(s=>{t[s]={...t[s],...e[s]}}),t},"mergeTypes");var R=Object.defineProperty,f=n((r,e)=>R(r,"name",{value:e,configurable:!0}),"l");const S={badge:void 0,context:void 0,error:void 0,label:void 0,message:void 0,prefix:void 0,repeated:void 0,scope:void 0,suffix:void 0};class d{static{n(this,"PailBrowserImpl")}static{f(this,"PailBrowserImpl")}timersMap;countMap;seqTimers;lastLog;logLevels;disabled;scopeName;types;longestLabel;processors;generalLogLevel;reporters;throttle;throttleMin;stringify;groups;startTimerMessage;endTimerMessage;rawReporter;constructor(e){this.throttle=e.throttle??1e3,this.throttleMin=e.throttleMin??5,this.stringify=u.configure({strict:!0}),this.startTimerMessage=e.messages?.timerStart??"Initialized timer...",this.endTimerMessage=e.messages?.timerEnd??"Timer run for:",this.types=E(p.LOG_TYPES,e.types??{}),this.longestLabel=p.s(this.types),this.logLevels={...p.EXTENDED_RFC_5424_LOG_LEVELS,...e.logLevels},this.generalLogLevel=this._normalizeLogLevel(e.logLevel),this.reporters=new Set,this.processors=new Set,this.disabled=e.disabled??!1,this.scopeName=_(e.scope).filter(Boolean),this.timersMap=new Map,this.countMap=new Map,this.groups=[],this.seqTimers=new Set;for(const t in this.types)this[t]=this._logger.bind(this,t,!1);this.lastLog={},Array.isArray(e.reporters)&&this.registerReporters(e.reporters),this.rawReporter=this.extendReporter(e.rawReporter??new v),Array.isArray(e.processors)&&this.registerProcessors(e.processors)}wrapConsole(){for(const e in this.types)console["__"+e]||(console["__"+e]=console[e]),console[e]=this[e]}restoreConsole(){for(const e in this.types)console["__"+e]&&(console[e]=console["__"+e],delete console["__"+e])}wrapException(){typeof process<"u"&&(process.on("uncaughtException",e=>{this.error(e)}),process.on("unhandledRejection",e=>{this.error(e)}))}disable(){this.disabled=!0}enable(){this.disabled=!1}isEnabled(){return!this.disabled}scope(...e){if(e.length===0)throw new Error("No scope name was defined.");return this.scopeName=e.flat(),this}unscope(){this.scopeName=[]}time(e="default"){this.seqTimers.has(e)?this._logger("warn",!1,{message:"Timer '"+e+"' already exists",prefix:e}):(this.seqTimers.add(e),this.timersMap.set(e,Date.now()),this._logger("start",!1,{message:this.startTimerMessage,prefix:e}))}timeLog(e,...t){if(!e&&this.seqTimers.size>0&&(e=[...this.seqTimers].pop()),e&&this.timersMap.has(e)){const s=Date.now()-this.timersMap.get(e);this._logger("info",!1,{context:t,message:s<1e3?s+" ms":(s/1e3).toFixed(2)+" s",prefix:e})}else this._logger("warn",!1,{context:t,message:"Timer not found",prefix:e})}timeEnd(e){if(!e&&this.seqTimers.size>0&&(e=[...this.seqTimers].pop()),e&&this.timersMap.has(e)){const t=Date.now()-this.timersMap.get(e);this.timersMap.delete(e),this._logger("stop",!1,{message:this.endTimerMessage+" "+(t<1e3?t+" ms":(t/1e3).toFixed(2)+" s"),prefix:e})}}group(e="console.group"){typeof window>"u"?console.group(e):this.groups.push(e)}groupEnd(){typeof window>"u"?console.groupEnd():this.groups.pop()}count(e="default"){const t=this.countMap.get(e)??0;this.countMap.set(e,t+1),this._logger("log",!1,{message:e+": "+(t+1),prefix:e})}countReset(e="default"){this.countMap.has(e)?this.countMap.delete(e):this._logger("warn",!1,{message:"Count for "+e+" does not exist",prefix:e})}clear(){console.clear()}raw(e,...t){this.disabled||this._logger("log",!0,{context:t,message:e})}extendReporter(e){return typeof e.setLoggerTypes=="function"&&e.setLoggerTypes(this.types),typeof e.setStringify=="function"&&e.setStringify(this.stringify),e}registerReporters(e){for(const t of e)this.reporters.add(this.extendReporter(t))}_report(e,t){if(t)this.rawReporter.log(Object.freeze(e));else for(const s of this.reporters)s.log(Object.freeze(e))}registerProcessors(e){for(const t of e)typeof t.setStringify=="function"&&t.setStringify(this.stringify),this.processors.add(t)}_normalizeLogLevel(e){return e&&this.logLevels[e]?e:"debug"}_buildMeta(e,t,...s){const o={...S};if(o.type={level:t.logLevel,name:e},o.groups=this.groups,o.scope=this.scopeName,o.date=new Date,s.length===1&&typeof s[0]=="object"&&s[0]!==null)if(s[0]instanceof Error)o.error=s[0];else if("message"in s[0]){const{context:i,message:g,prefix:h,suffix:a}=s[0];i&&(o.context=i),h&&(o.prefix=h),a&&(o.suffix=a),o.message=g}else o.message=s[0];else s.length>1&&typeof s[0]=="string"?(o.message=s[0],o.context=s.slice(1)):o.message=s[0];return t.logLevel==="trace"&&(o.traceError=new Error("Trace")),t.badge&&(o.badge=t.badge),t.label&&(o.label=t.label),o}_logger(e,t,...s){if(this.disabled)return;const o=this._normalizeLogLevel(this.types[e].logLevel);if(this.logLevels[o]>=this.logLevels[this.generalLogLevel]){let i=this._buildMeta(e,this.types[e],...s);const g=f((a=!1)=>{const l=(this.lastLog.count||0)-this.throttleMin;if(this.lastLog.object&&l>0){const c={...this.lastLog.object};l>1&&(c.repeated=l),this._report(c,t),this.lastLog.count=1}if(a){for(const c of this.processors)i={...c.process(i)};this.lastLog.object=i,this._report(i,t)}},"resolveLog");clearTimeout(this.lastLog.timeout);const h=this.lastLog.time&&i.date?new Date(i.date).getTime()-this.lastLog.time.getTime():0;if(this.lastLog.time=new Date(i.date),h<this.throttle)try{const a=JSON.stringify([i.label,i.scope,i.type,i.message,i.prefix,i.suffix,i.context]),l=this.lastLog.serialized===a;if(this.lastLog.serialized=a,l&&(this.lastLog.count=(this.lastLog.count||0)+1,this.lastLog.count>this.throttleMin)){this.lastLog.timeout=setTimeout(g,this.throttle);return}}catch{}g(!0)}}}const j=d;exports.PailBrowser=j;exports.PailBrowserImpl=d;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";var BD=Object.defineProperty;var E=(D,u)=>BD(D,"name",{value:u,configurable:!0});const M=require("node:process"),i=require("@visulima/colorize"),sD=require("node:child_process"),iD=require("node:fs"),oD=require("node:tty"),U=require("./pail.nUyAB-mN.cjs"),aD=require("./pail.B0AqLGpo.cjs"),N=E(D=>D&&typeof D=="object"&&"default"in D?D.default:D,"_interopDefaultCompat"),b=N(M),AD=N(i),w=N(iD),lD=N(oD),Q=80,X=24,R=E((D,u,{shell:F,env:e}={})=>sD.execFileSync(D,u,{encoding:"utf8",stdio:["ignore","pipe","ignore"],timeout:500,shell:F,env:e}).trim(),"exec$1"),_=E((D,u)=>({columns:Number.parseInt(D,10),rows:Number.parseInt(u,10)}),"create"),DD=E((D,u)=>{const{columns:F,rows:e}=_(D,u);if(!(Number.isNaN(F)||Number.isNaN(e))&&!(F===Q&&e===X))return{columns:F,rows:e}},"createIfNotDefault");function uD(){const{env:D,stdout:u,stderr:F}=b;if(u?.columns&&u?.rows)return _(u.columns,u.rows);if(F?.columns&&F?.rows)return _(F.columns,F.rows);if(D.COLUMNS&&D.LINES)return _(D.COLUMNS,D.LINES);const e={columns:Q,rows:X};return b.platform==="win32"?O()??e:b.platform==="darwin"?K()??O()??e:K()??O()??cD()??e}E(uD,"terminalSize");const K=E(()=>{try{const D=b.platform==="darwin"?w.constants.O_EVTONLY|w.constants.O_NONBLOCK:w.constants.O_NONBLOCK,{columns:u,rows:F}=lD.WriteStream(w.openSync("/dev/tty",D));return{columns:u,rows:F}}catch{}},"devTty"),O=E(()=>{try{const D=R("tput",["cols"],{env:{TERM:"dumb",...b.env}}),u=R("tput",["lines"],{env:{TERM:"dumb",...b.env}});if(D&&u)return DD(D,u)}catch{}},"tput"),cD=E(()=>{try{const D=R("resize",["-u"]).match(/\d+/g);if(D.length===2)return DD(D[0],D[1])}catch{}},"resize");function fD({onlyFirst:D=!1}={}){const u=["[\\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(u,D?void 0:"g")}E(fD,"ansiRegex");const gD=fD();function k(D){if(typeof D!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof D}\``);return D.replace(gD,"")}E(k,"stripAnsi");function hD(D){return D===161||D===164||D===167||D===168||D===170||D===173||D===174||D>=176&&D<=180||D>=182&&D<=186||D>=188&&D<=191||D===198||D===208||D===215||D===216||D>=222&&D<=225||D===230||D>=232&&D<=234||D===236||D===237||D===240||D===242||D===243||D>=247&&D<=250||D===252||D===254||D===257||D===273||D===275||D===283||D===294||D===295||D===299||D>=305&&D<=307||D===312||D>=319&&D<=322||D===324||D>=328&&D<=331||D===333||D===338||D===339||D===358||D===359||D===363||D===462||D===464||D===466||D===468||D===470||D===472||D===474||D===476||D===593||D===609||D===708||D===711||D>=713&&D<=715||D===717||D===720||D>=728&&D<=731||D===733||D===735||D>=768&&D<=879||D>=913&&D<=929||D>=931&&D<=937||D>=945&&D<=961||D>=963&&D<=969||D===1025||D>=1040&&D<=1103||D===1105||D===8208||D>=8211&&D<=8214||D===8216||D===8217||D===8220||D===8221||D>=8224&&D<=8226||D>=8228&&D<=8231||D===8240||D===8242||D===8243||D===8245||D===8251||D===8254||D===8308||D===8319||D>=8321&&D<=8324||D===8364||D===8451||D===8453||D===8457||D===8467||D===8470||D===8481||D===8482||D===8486||D===8491||D===8531||D===8532||D>=8539&&D<=8542||D>=8544&&D<=8555||D>=8560&&D<=8569||D===8585||D>=8592&&D<=8601||D===8632||D===8633||D===8658||D===8660||D===8679||D===8704||D===8706||D===8707||D===8711||D===8712||D===8715||D===8719||D===8721||D===8725||D===8730||D>=8733&&D<=8736||D===8739||D===8741||D>=8743&&D<=8748||D===8750||D>=8756&&D<=8759||D===8764||D===8765||D===8776||D===8780||D===8786||D===8800||D===8801||D>=8804&&D<=8807||D===8810||D===8811||D===8814||D===8815||D===8834||D===8835||D===8838||D===8839||D===8853||D===8857||D===8869||D===8895||D===8978||D>=9312&&D<=9449||D>=9451&&D<=9547||D>=9552&&D<=9587||D>=9600&&D<=9615||D>=9618&&D<=9621||D===9632||D===9633||D>=9635&&D<=9641||D===9650||D===9651||D===9654||D===9655||D===9660||D===9661||D===9664||D===9665||D>=9670&&D<=9672||D===9675||D>=9678&&D<=9681||D>=9698&&D<=9701||D===9711||D===9733||D===9734||D===9737||D===9742||D===9743||D===9756||D===9758||D===9792||D===9794||D===9824||D===9825||D>=9827&&D<=9829||D>=9831&&D<=9834||D===9836||D===9837||D===9839||D===9886||D===9887||D===9919||D>=9926&&D<=9933||D>=9935&&D<=9939||D>=9941&&D<=9953||D===9955||D===9960||D===9961||D>=9963&&D<=9969||D===9972||D>=9974&&D<=9977||D===9979||D===9980||D===9982||D===9983||D===10045||D>=10102&&D<=10111||D>=11094&&D<=11097||D>=12872&&D<=12879||D>=57344&&D<=63743||D>=65024&&D<=65039||D===65533||D>=127232&&D<=127242||D>=127248&&D<=127277||D>=127280&&D<=127337||D>=127344&&D<=127373||D===127375||D===127376||D>=127387&&D<=127404||D>=917760&&D<=917999||D>=983040&&D<=1048573||D>=1048576&&D<=1114109}E(hD,"isAmbiguous");function pD(D){return D===12288||D>=65281&&D<=65376||D>=65504&&D<=65510}E(pD,"isFullWidth");function dD(D){return D>=4352&&D<=4447||D===8986||D===8987||D===9001||D===9002||D>=9193&&D<=9196||D===9200||D===9203||D===9725||D===9726||D===9748||D===9749||D>=9800&&D<=9811||D===9855||D===9875||D===9889||D===9898||D===9899||D===9917||D===9918||D===9924||D===9925||D===9934||D===9940||D===9962||D===9970||D===9971||D===9973||D===9978||D===9981||D===9989||D===9994||D===9995||D===10024||D===10060||D===10062||D>=10067&&D<=10069||D===10071||D>=10133&&D<=10135||D===10160||D===10175||D===11035||D===11036||D===11088||D===11093||D>=11904&&D<=11929||D>=11931&&D<=12019||D>=12032&&D<=12245||D>=12272&&D<=12287||D>=12289&&D<=12350||D>=12353&&D<=12438||D>=12441&&D<=12543||D>=12549&&D<=12591||D>=12593&&D<=12686||D>=12688&&D<=12771||D>=12783&&D<=12830||D>=12832&&D<=12871||D>=12880&&D<=19903||D>=19968&&D<=42124||D>=42128&&D<=42182||D>=43360&&D<=43388||D>=44032&&D<=55203||D>=63744&&D<=64255||D>=65040&&D<=65049||D>=65072&&D<=65106||D>=65108&&D<=65126||D>=65128&&D<=65131||D>=94176&&D<=94180||D===94192||D===94193||D>=94208&&D<=100343||D>=100352&&D<=101589||D>=101632&&D<=101640||D>=110576&&D<=110579||D>=110581&&D<=110587||D===110589||D===110590||D>=110592&&D<=110882||D===110898||D>=110928&&D<=110930||D===110933||D>=110948&&D<=110951||D>=110960&&D<=111355||D===126980||D===127183||D===127374||D>=127377&&D<=127386||D>=127488&&D<=127490||D>=127504&&D<=127547||D>=127552&&D<=127560||D===127568||D===127569||D>=127584&&D<=127589||D>=127744&&D<=127776||D>=127789&&D<=127797||D>=127799&&D<=127868||D>=127870&&D<=127891||D>=127904&&D<=127946||D>=127951&&D<=127955||D>=127968&&D<=127984||D===127988||D>=127992&&D<=128062||D===128064||D>=128066&&D<=128252||D>=128255&&D<=128317||D>=128331&&D<=128334||D>=128336&&D<=128359||D===128378||D===128405||D===128406||D===128420||D>=128507&&D<=128591||D>=128640&&D<=128709||D===128716||D>=128720&&D<=128722||D>=128725&&D<=128727||D>=128732&&D<=128735||D===128747||D===128748||D>=128756&&D<=128764||D>=128992&&D<=129003||D===129008||D>=129292&&D<=129338||D>=129340&&D<=129349||D>=129351&&D<=129535||D>=129648&&D<=129660||D>=129664&&D<=129672||D>=129680&&D<=129725||D>=129727&&D<=129733||D>=129742&&D<=129755||D>=129760&&D<=129768||D>=129776&&D<=129784||D>=131072&&D<=196605||D>=196608&&D<=262141}E(dD,"isWide");function mD(D){if(!Number.isSafeInteger(D))throw new TypeError(`Expected a code point, got \`${typeof D}\`.`)}E(mD,"validate");function bD(D,{ambiguousAsWide:u=!1}={}){return mD(D),pD(D)||dD(D)||u&&hD(D)?2:1}E(bD,"eastAsianWidth");const yD=E(()=>/[#*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](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\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(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\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](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\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-\uDDF5\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](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\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(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\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-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\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,"emojiRegex"),wD=new Intl.Segmenter;function y(D,u={}){if(typeof D!="string"||D.length===0)return 0;const{ambiguousIsNarrow:F=!0,countAnsiEscapeCodes:e=!1}=u;if(e||(D=k(D)),D.length===0)return 0;let t=0;const B={ambiguousAsWide:!F};for(const{segment:r}of wD.segment(D)){const C=r.codePointAt(0);if(!(C<=31||C>=127&&C<=159)&&!(C>=768&&C<=879)){if(yD().test(r)){t+=2;continue}t+=bD(C,B)}}return t}E(y,"stringWidth");const L=10,Y=E((D=0)=>u=>`\x1B[${u+D}m`,"wrapAnsi16"),Z=E((D=0)=>u=>`\x1B[${38+D};5;${u}m`,"wrapAnsi256"),V=E((D=0)=>(u,F,e)=>`\x1B[${38+D};2;${u};${F};${e}m`,"wrapAnsi16m"),n={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]}};Object.keys(n.modifier);const _D=Object.keys(n.color),xD=Object.keys(n.bgColor);[..._D,...xD];function SD(){const D=new Map;for(const[u,F]of Object.entries(n)){for(const[e,t]of Object.entries(F))n[e]={open:`\x1B[${t[0]}m`,close:`\x1B[${t[1]}m`},F[e]=n[e],D.set(t[0],t[1]);Object.defineProperty(n,u,{value:F,enumerable:!1})}return Object.defineProperty(n,"codes",{value:D,enumerable:!1}),n.color.close="\x1B[39m",n.bgColor.close="\x1B[49m",n.color.ansi=Y(),n.color.ansi256=Z(),n.color.ansi16m=V(),n.bgColor.ansi=Y(L),n.bgColor.ansi256=Z(L),n.bgColor.ansi16m=V(L),Object.defineProperties(n,{rgbToAnsi256:{value:E((u,F,e)=>u===F&&F===e?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(F/255*5)+Math.round(e/255*5),"value"),enumerable:!1},hexToRgb:{value:E(u=>{const F=/[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));if(!F)return[0,0,0];let[e]=F;e.length===3&&(e=[...e].map(B=>B+B).join(""));const t=Number.parseInt(e,16);return[t>>16&255,t>>8&255,t&255]},"value"),enumerable:!1},hexToAnsi256:{value:E(u=>n.rgbToAnsi256(...n.hexToRgb(u)),"value"),enumerable:!1},ansi256ToAnsi:{value:E(u=>{if(u<8)return 30+u;if(u<16)return 90+(u-8);let F,e,t;if(u>=232)F=((u-232)*10+8)/255,e=F,t=F;else{u-=16;const C=u%36;F=Math.floor(u/36)/5,e=Math.floor(C/6)/5,t=C%6/5}const B=Math.max(F,e,t)*2;if(B===0)return 30;let r=30+(Math.round(t)<<2|Math.round(e)<<1|Math.round(F));return B===2&&(r+=60),r},"value"),enumerable:!1},rgbToAnsi:{value:E((u,F,e)=>n.ansi256ToAnsi(n.rgbToAnsi256(u,F,e)),"value"),enumerable:!1},hexToAnsi:{value:E(u=>n.ansi256ToAnsi(n.hexToAnsi256(u)),"value"),enumerable:!1}}),n}E(SD,"assembleStyles");const vD=SD(),T=new Set(["\x1B",""]),ND=39,W="\x07",FD="[",TD="]",eD="m",v=`${TD}8;;`,H=E(D=>`${T.values().next().value}${FD}${D}${eD}`,"wrapAnsiCode"),J=E(D=>`${T.values().next().value}${v}${D}${W}`,"wrapAnsiHyperlink"),jD=E(D=>D.split(" ").map(u=>y(u)),"wordLengths"),I=E((D,u,F)=>{const e=[...u];let t=!1,B=!1,r=y(k(D.at(-1)));for(const[C,a]of e.entries()){const l=y(a);if(r+l<=F?D[D.length-1]+=a:(D.push(a),r=0),T.has(a)&&(t=!0,B=e.slice(C+1,C+1+v.length).join("")===v),t){B?a===W&&(t=!1,B=!1):a===eD&&(t=!1);continue}r+=l,r===F&&C<e.length-1&&(D.push(""),r=0)}!r&&D.at(-1).length>0&&D.length>1&&(D[D.length-2]+=D.pop())},"wrapWord"),$D=E(D=>{const u=D.split(" ");let F=u.length;for(;F>0&&!(y(u[F-1])>0);)F--;return F===u.length?D:u.slice(0,F).join(" ")+u.slice(F).join("")},"stringVisibleTrimSpacesRight"),OD=E((D,u,F={})=>{if(F.trim!==!1&&D.trim()==="")return"";let e="",t,B;const r=jD(D);let C=[""];for(const[o,c]of D.split(" ").entries()){F.trim!==!1&&(C[C.length-1]=C.at(-1).trimStart());let A=y(C.at(-1));if(o!==0&&(A>=u&&(F.wordWrap===!1||F.trim===!1)&&(C.push(""),A=0),(A>0||F.trim===!1)&&(C[C.length-1]+=" ",A++)),F.hard&&r[o]>u){const f=u-A,p=1+Math.floor((r[o]-f-1)/u);Math.floor((r[o]-1)/u)<p&&C.push(""),I(C,c,u);continue}if(A+r[o]>u&&A>0&&r[o]>0){if(F.wordWrap===!1&&A<u){I(C,c,u);continue}C.push("")}if(A+r[o]>u&&F.wordWrap===!1){I(C,c,u);continue}C[C.length-1]+=c}F.trim!==!1&&(C=C.map(o=>$D(o)));const a=C.join(`
|
|
2
|
-
`),l=[...a];let g=0;for(const[o,c]of l.entries()){if(e+=c,T.has(c)){const{groups:f}=new RegExp(`(?:\\${FD}(?<code>\\d+)m|\\${v}(?<uri>.*)${W})`).exec(a.slice(g))||{groups:{}};if(f.code!==void 0){const p=Number.parseFloat(f.code);t=p===ND?void 0:p}else f.uri!==void 0&&(B=f.uri.length===0?void 0:f.uri)}const A=vD.codes.get(Number(t));l[o+1]===`
|
|
3
|
-
`?(B&&(e+=J("")),t&&A&&(e+=H(A))):c===`
|
|
4
|
-
`&&(t&&A&&(e+=H(t)),B&&(e+=J(B))),g+=c.length}return e},"exec");function P(D,u,F){return String(D).normalize().replaceAll(`\r
|
|
5
|
-
`,`
|
|
6
|
-
`).split(`
|
|
7
|
-
`).map(e=>OD(e,u,F)).join(`
|
|
8
|
-
`)}E(P,"wrapAnsi");var LD=Object.defineProperty,ID=E((D,u)=>LD(D,"name",{value:u,configurable:!0}),"r");const ED=ID((D,u)=>(u.__write??u.write).call(u,D),"writeStream"),MD=new Intl.Segmenter;function x(D,{countAnsiEscapeCodes:u=!1}={}){if(D===""||(u||(D=k(D)),D===""))return 0;let F=0;for(const e of MD.segment(D))F++;return F}E(x,"stringLength");var RD=Object.defineProperty,kD=E((D,u)=>RD(D,"name",{value:u,configurable:!0}),"o$1");const S=kD((D,u,F,e=!1)=>{const{message:t,name:B,stack:r}=D,C=[];if(C.push(...e?[]:[F+i.red(B),": "],P(t,u-3,{hard:!0,trim:!0,wordWrap:!0})),r){const a=r.split(`
|
|
9
|
-
`).splice(1).map(l=>F+l.trim().replace("file://","")).filter(l=>!l.includes("/pail/dist"));C.push(`
|
|
10
|
-
`,a.map(l=>" "+l.replace(/^at +/,g=>i.grey(g)).replace(/\((.+)\)/,(g,o)=>"("+i.cyan(o)+")")).join(`
|
|
11
|
-
`))}return C.join("")},"formatError");var WD=Object.defineProperty,PD=E((D,u)=>WD(D,"name",{value:u,configurable:!0}),"o");const CD=PD((D,u)=>{let F=u.uppercase.label?D.toUpperCase():D;return F=u.underline.label?i.underline(F):F,u.bold.label&&(F=i.bold(F)),F},"formatLabel");var zD=Object.defineProperty,qD=E((D,u)=>zD(D,"name",{value:u,configurable:!0}),"E");class GD extends U.AbstractPrettyReporter{static{E(this,"q")}static{qD(this,"PrettyReporter")}#D;#u;#F;#e=!1;constructor(u={}){super({uppercase:{label:!0,...u.uppercase},...u}),this.#D=M.stdout,this.#u=M.stderr}setStdout(u){this.#D=u}setStderr(u){this.#u=u}setInteractiveManager(u){this.#F=u}setIsInteractive(u){this.#e=u}log(u){this._log(this._formatMessage(u),u.type.level)}_formatMessage(u){const{columns:F}=uD();let e=F;typeof this._styles.messageLength=="number"&&(e=this._styles.messageLength);const{badge:t,context:B,date:r,error:C,file:a,groups:l,label:g,message:o,prefix:c,repeated:A,scope:f,suffix:p,traceError:j,type:tD}=u,{color:z}=this._loggerTypes[tD.name],q=z?AD[z]:i.white,m=l.map(()=>" ").join(""),s=[];if(l.length>0&&s.push(m+i.grey("["+l.at(-1)+"]")+" "),r&&s.push(i.grey(this._styles.dateFormatter(typeof r=="string"?new Date(r):r))+" "),t)s.push(q(t));else{const h=U.s(this._loggerTypes);h.length>0&&s.push(i.grey(".".repeat(h.length))+" ")}const G=aD.s(this._loggerTypes);g?s.push(q(CD(g,this._styles))+" ",i.grey(".".repeat(G.length-x(g)))):s.push(i.grey(".".repeat(G.length+2))),A&&s.push(i.bgGrey.white("["+A+"x]")+" "),Array.isArray(f)&&f.length>0&&s.push(" "+i.grey("["+f.join(" > ")+"]")+" "),c&&s.push(i.grey((Array.isArray(f)&&f.length>0?". ":" ")+"["+(this._styles.underline.prefix?i.underline(c):c)+"]")+" ");const $=x(s.join(" "));if(a){const h=a.name+(a.line?":"+a.line:""),d=x(h);d+$+2>e?s.push(i.grey(" "+h)):s.push(i.grey(".".repeat(e-$-d-2)+" "+h))}else s.push(i.grey(".".repeat(e-$-1)));s.length>0&&s.push(`
|
|
12
|
-
|
|
13
|
-
`);const rD=typeof o=="string"?o:this._stringify(o);if(s.push(m+P(rD??"undefined",e-3,{hard:!0,trim:!0,wordWrap:!0})),B){let h=!1;s.push(...B.map(d=>{if(d instanceof Error)return h=!0,`
|
|
14
|
-
|
|
15
|
-
`+S(d,e,m);if(typeof d=="object")return" "+this._stringify(d);const nD=(h?`
|
|
16
|
-
|
|
17
|
-
`:" ")+d;return h=!1,nD}))}return C&&s.push(S(C,e,m)),j&&s.push(S(j,e,m,!0)),p&&s.push(`
|
|
18
|
-
`,m+i.grey(this._styles.underline.suffix?i.underline(p):p)),s.join("")+`
|
|
19
|
-
`}_log(u,F){const e=["error","trace","warn"].includes(F)?"stderr":"stdout",t=e==="stderr"?this.#u:this.#D;this.#e&&this.#F!==void 0&&t.isTTY?this.#F.update(e,u.split(`
|
|
20
|
-
`),0):ED(u+`
|
|
21
|
-
`,t)}}const UD=GD;exports.a=UD;exports.n=ED;exports.n$1=CD;exports.stringLength=x;exports.terminalSize=uD;exports.w=S;exports.wrapAnsi=P;
|