@seed-design/codemod 0.0.17 → 0.0.18

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.
@@ -1,17 +1,36 @@
1
- var V=Object.create;var b=Object.defineProperty;var z=Object.getOwnPropertyDescriptor;var B=Object.getOwnPropertyNames;var W=Object.getPrototypeOf,A=Object.prototype.hasOwnProperty;var K=(o,e)=>{for(var r in e)b(o,r,{get:e[r],enumerable:!0})},E=(o,e,r,u)=>{if(e&&typeof e=="object"||typeof e=="function")for(let $ of B(e))!A.call(o,$)&&$!==r&&b(o,$,{get:()=>e[$],enumerable:!(u=z(e,$))||u.enumerable});return o};var D=(o,e,r)=>(r=o!=null?V(W(o)):{},E(e||!o||!o.__esModule?b(r,"default",{value:o,enumerable:!0}):r,o)),O=o=>E(b({},"__esModule",{value:!0}),o);var q={};K(q,{default:()=>_});module.exports=O(q);var U=[{previous:"$semantic.color.on-primary",next:["$color.palette.static-white"]},{previous:"$semantic.color.primary",next:["$color.bg.brand-solid","$color.fg.brand"],alternative:["$color.palette.carrot-600"]},{previous:"$semantic.color.primary-low",next:["$color.palette.carrot-100"]},{previous:"$semantic.color.secondary",next:["$color.palette.gray-900"]},{previous:"$semantic.color.secondary-low",next:["$color.bg.neutral-weak"],alternative:["$color.palette.gray-200"]},{previous:"$semantic.color.success",next:["$color.bg.positive-solid","$color.fg.positive"],alternative:["$color.fg.positive-contrast","$color.palette.green-700"]},{previous:"$semantic.color.success-low",next:["$color.bg.positive-weak"],alternative:["$color.palette.green-100"]},{previous:"$semantic.color.warning",next:["$color.bg.warning-solid"],alternative:["$color.fg.warning-contrast","$color.palette.yellow-500"]},{previous:"$semantic.color.warning-low",next:["$color.bg.warning-weak"],alternative:["$color.palette.yellow-100"]},{previous:"$semantic.color.danger",next:["$color.bg.critical-solid","$color.fg.critical"],alternative:["$color.fg.critical-contrast","$color.palette.red-700"]},{previous:"$semantic.color.danger-low",next:["$color.bg.critical-weak"],alternative:["$color.palette.red-100"]},{previous:"$semantic.color.overlay-dim",next:["$color.bg.overlay"],alternative:["$color.palette.static-black-alpha-500"]},{previous:"$semantic.color.overlay-low",next:["$color.bg.overlay-muted"],alternative:["$color.palette.static-black-alpha-200"]},{previous:"$semantic.color.paper-sheet",next:["$color.bg.layer-floating"],alternative:["$color.palette.gray-00"]},{previous:"$semantic.color.paper-dialog",next:["$color.bg.layer-floating"],alternative:["$color.palette.gray-00"]},{previous:"$semantic.color.paper-floating",next:["$color.bg.layer-floating"],alternative:["$color.palette.gray-00"]},{previous:"$semantic.color.paper-contents",next:["$color.bg.layer-fill"],alternative:["$color.palette.gray-100"]},{previous:"$semantic.color.paper-default",next:["$color.bg.layer-default"],alternative:["$color.palette.gray-00"]},{previous:"$semantic.color.paper-background",next:["$color.bg.layer-basement"],alternative:["$color.palette.gray-200"]},{previous:"$semantic.color.paper-accent",next:["$color.palette.carrot-100"]},{previous:"$semantic.color.primary-hover",next:["$color.bg.brand-solid-pressed"],alternative:["$color.palette.carrot-700"]},{previous:"$semantic.color.primary-pressed",next:["$color.bg.brand-solid-pressed"],alternative:["$color.palette.carrot-700"]},{previous:"$semantic.color.primary-low-hover",next:["$color.palette.carrot-200"]},{previous:"$semantic.color.primary-low-active",next:["$color.palette.carrot-100"]},{previous:"$semantic.color.primary-low-pressed",next:["$color.palette.carrot-200"]},{previous:"$semantic.color.gray-hover",next:["$color.bg.neutral-weak-pressed"],alternative:["$color.palette.gray-300"]},{previous:"$semantic.color.gray-pressed",next:["$color.bg.neutral-weak-pressed"],alternative:["$color.palette.gray-300"]},{previous:"$semantic.color.on-primary-overlay-50",next:[],description:"TBD"},{previous:"$semantic.color.on-primary-overlay-200",next:[],description:"TBD"},{previous:"$semantic.color.on-primary-low-overlay-50",next:[],description:"TBD"},{previous:"$semantic.color.on-primary-low-overlay-100",next:[],description:"TBD"},{previous:"$semantic.color.on-primary-low-overlay-200",next:[],description:"TBD"},{previous:"$semantic.color.on-gray-overlay-50",next:[],description:"TBD"},{previous:"$semantic.color.on-gray-overlay-100",next:[],description:"TBD"},{previous:"$semantic.color.divider-1",next:["$color.stroke.on-image"],alternative:["$color.palette.static-black-alpha-50"]},{previous:"$semantic.color.divider-2",next:["$color.stroke.neutral"],alternative:["$color.palette.gray-300"]},{previous:"$semantic.color.divider-3",next:["$color.palette.gray-400"]},{previous:"$semantic.color.accent",next:["$color.bg.informative-solid","$color.fg.informative"],alternative:["$color.fg.informative-contrast","$color.palette.blue-700"]},{previous:"$semantic.color.ink-text",next:["$color.fg.neutral"],alternative:["$color.palette.gray-1000"]},{previous:"$semantic.color.ink-text-low",next:["$color.fg.neutral-subtle"],alternative:["$color.palette.gray-700"]},{previous:"$semantic.color.gray-active",next:["$color.fg.neutral-muted"],alternative:["$color.palette.gray-800"]}],J=[{previous:"$scale.color.gray-00",next:["$color.palette.gray-00"]},{previous:"$scale.color.gray-50",next:["$color.palette.gray-100"]},{previous:"$scale.color.gray-100",next:["$color.palette.gray-200"]},{previous:"$scale.color.gray-200",next:["$color.palette.gray-300"]},{previous:"$scale.color.gray-300",next:["$color.palette.gray-400"]},{previous:"$scale.color.gray-400",next:["$color.palette.gray-500"]},{previous:"$scale.color.gray-500",next:["$color.palette.gray-600"]},{previous:"$scale.color.gray-600",next:["$color.palette.gray-700"]},{previous:"$scale.color.gray-700",next:["$color.palette.gray-800"]},{previous:"$scale.color.gray-800",next:["$color.palette.gray-900"]},{previous:"$scale.color.gray-900",next:["$color.palette.gray-1000"]},{previous:"$scale.color.gray-alpha-50",next:["$color.palette.gray-200","$color.stroke.on-image"]},{previous:"$scale.color.gray-alpha-100",next:["$color.palette.gray-300"]},{previous:"$scale.color.gray-alpha-200",next:["$color.palette.gray-500"]},{previous:"$scale.color.gray-alpha-500",next:["$color.palette.gray-700"]},{previous:"$scale.color.carrot-50",next:["$color.palette.carrot-100"]},{previous:"$scale.color.carrot-100",next:["$color.palette.carrot-200"]},{previous:"$scale.color.carrot-200",next:["$color.palette.carrot-300"]},{previous:"$scale.color.carrot-300",next:["$color.palette.carrot-400"]},{previous:"$scale.color.carrot-400",next:["$color.palette.carrot-500"]},{previous:"$scale.color.carrot-500",next:["$color.palette.carrot-600"]},{previous:"$scale.color.carrot-600",next:["$color.palette.carrot-600"]},{previous:"$scale.color.carrot-700",next:["$color.palette.carrot-700"]},{previous:"$scale.color.carrot-800",next:["$color.palette.carrot-700"]},{previous:"$scale.color.carrot-900",next:["$color.palette.carrot-800"]},{previous:"$scale.color.carrot-950",next:["$color.palette.carrot-800"]},{previous:"$scale.color.carrot-alpha-50",next:["$color.palette.carrot-100"]},{previous:"$scale.color.carrot-alpha-100",next:["$color.palette.carrot-200"]},{previous:"$scale.color.carrot-alpha-200",next:["$color.palette.carrot-200"]},{previous:"$scale.color.blue-50",next:["$color.palette.blue-100"]},{previous:"$scale.color.blue-100",next:["$color.palette.blue-200"]},{previous:"$scale.color.blue-200",next:["$color.palette.blue-300"]},{previous:"$scale.color.blue-300",next:["$color.palette.blue-400"]},{previous:"$scale.color.blue-400",next:["$color.palette.blue-400"]},{previous:"$scale.color.blue-500",next:["$color.palette.blue-600"]},{previous:"$scale.color.blue-600",next:["$color.palette.blue-600"]},{previous:"$scale.color.blue-700",next:["$color.palette.blue-800"]},{previous:"$scale.color.blue-800",next:["$color.palette.blue-900"]},{previous:"$scale.color.blue-900",next:["$color.palette.blue-900"]},{previous:"$scale.color.blue-950",next:["$color.palette.blue-1000"]},{previous:"$scale.color.blue-alpha-50",next:["$color.palette.blue-100"]},{previous:"$scale.color.blue-alpha-100",next:["$color.palette.blue-100"]},{previous:"$scale.color.blue-alpha-200",next:["$color.palette.blue-200"]},{previous:"$scale.color.red-50",next:["$color.palette.red-100"]},{previous:"$scale.color.red-100",next:["$color.palette.red-200"]},{previous:"$scale.color.red-200",next:["$color.palette.red-300"]},{previous:"$scale.color.red-300",next:["$color.palette.red-400"]},{previous:"$scale.color.red-400",next:["$color.palette.red-600"]},{previous:"$scale.color.red-500",next:["$color.palette.red-700"]},{previous:"$scale.color.red-600",next:["$color.palette.red-700"]},{previous:"$scale.color.red-700",next:["$color.palette.red-800"]},{previous:"$scale.color.red-800",next:["$color.palette.red-900"]},{previous:"$scale.color.red-900",next:["$color.palette.red-900"]},{previous:"$scale.color.red-950",next:["$color.palette.red-900"]},{previous:"$scale.color.red-alpha-50",next:["$color.palette.red-100"]},{previous:"$scale.color.red-alpha-100",next:["$color.palette.red-200"]},{previous:"$scale.color.red-alpha-200",next:["$color.palette.red-300"]},{previous:"$scale.color.green-50",next:["$color.palette.green-100"]},{previous:"$scale.color.green-100",next:["$color.palette.green-200"]},{previous:"$scale.color.green-200",next:["$color.palette.green-300"]},{previous:"$scale.color.green-300",next:["$color.palette.green-400"]},{previous:"$scale.color.green-400",next:["$color.palette.green-500"]},{previous:"$scale.color.green-500",next:["$color.palette.green-600"]},{previous:"$scale.color.green-600",next:["$color.palette.green-700"]},{previous:"$scale.color.green-700",next:["$color.palette.green-800"]},{previous:"$scale.color.green-800",next:["$color.palette.green-900"]},{previous:"$scale.color.green-900",next:["$color.palette.green-900"]},{previous:"$scale.color.green-950",next:["$color.palette.green-900"]},{previous:"$scale.color.green-alpha-50",next:["$color.palette.green-100"]},{previous:"$scale.color.green-alpha-100",next:["$color.palette.green-200"]},{previous:"$scale.color.green-alpha-200",next:["$color.palette.green-200"]},{previous:"$scale.color.yellow-50",next:["$color.palette.yellow-100"]},{previous:"$scale.color.yellow-100",next:["$color.palette.yellow-200"]},{previous:"$scale.color.yellow-200",next:["$color.palette.yellow-300"]},{previous:"$scale.color.yellow-300",next:["$color.palette.yellow-400"]},{previous:"$scale.color.yellow-400",next:["$color.palette.yellow-500"]},{previous:"$scale.color.yellow-500",next:["$color.palette.yellow-700"]},{previous:"$scale.color.yellow-600",next:["$color.palette.yellow-700"]},{previous:"$scale.color.yellow-700",next:["$color.palette.yellow-800"]},{previous:"$scale.color.yellow-800",next:["$color.palette.yellow-800"]},{previous:"$scale.color.yellow-900",next:["$color.palette.yellow-900"]},{previous:"$scale.color.yellow-950",next:["$color.palette.yellow-900"]},{previous:"$scale.color.yellow-alpha-50",next:["$color.palette.yellow-100"]},{previous:"$scale.color.yellow-alpha-100",next:["$color.palette.yellow-100"]},{previous:"$scale.color.yellow-alpha-200",next:["$color.palette.yellow-100"]},{previous:"$scale.color.purple-50",next:["$color.palette.purple-100"]},{previous:"$scale.color.purple-100",next:["$color.palette.purple-300"]},{previous:"$scale.color.purple-200",next:["$color.palette.purple-400"]},{previous:"$scale.color.purple-300",next:["$color.palette.purple-400"]},{previous:"$scale.color.purple-400",next:["$color.palette.purple-500"]},{previous:"$scale.color.purple-500",next:["$color.palette.purple-600"]},{previous:"$scale.color.purple-600",next:["$color.palette.purple-700"]},{previous:"$scale.color.purple-700",next:["$color.palette.purple-800"]},{previous:"$scale.color.purple-800",next:["$color.palette.purple-900"]},{previous:"$scale.color.purple-900",next:["$color.palette.purple-900"]},{previous:"$scale.color.purple-950",next:["$color.palette.purple-1000"]}],L=[{previous:"$static.color.static-black",next:["$color.palette.static-black"]},{previous:"$static.color.static-white",next:["$color.palette.static-white"]},{previous:"$static.color.static-gray-900",next:[],description:"static \uC0C9\uC0C1 \uC0AC\uC6A9 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},{previous:"$static.color.static-carrot-50",next:[],description:"static \uC0C9\uC0C1 \uC0AC\uC6A9 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},{previous:"$static.color.static-carrot-800",next:[],description:"static \uC0C9\uC0C1 \uC0AC\uC6A9 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},{previous:"$static.color.static-green-50",next:[],description:"static \uC0C9\uC0C1 \uC0AC\uC6A9 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},{previous:"$static.color.static-green-800",next:[],description:"static \uC0C9\uC0C1 \uC0AC\uC6A9 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},{previous:"$static.color.static-yellow-50",next:[],description:"static \uC0C9\uC0C1 \uC0AC\uC6A9 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},{previous:"$static.color.static-yellow-800",next:[],description:"static \uC0C9\uC0C1 \uC0AC\uC6A9 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},{previous:"$static.color.static-red-50",next:[],description:"static \uC0C9\uC0C1 \uC0AC\uC6A9 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},{previous:"$static.color.static-red-800",next:[],description:"static \uC0C9\uC0C1 \uC0AC\uC6A9 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},{previous:"$static.color.static-blue-50",next:[],description:"static \uC0C9\uC0C1 \uC0AC\uC6A9 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},{previous:"$static.color.static-blue-800",next:[],description:"static \uC0C9\uC0C1 \uC0AC\uC6A9 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},{previous:"$static.color.static-black-alpha-200",next:["$color.palette.static-black-alpha-200"]},{previous:"$static.color.static-black-alpha-500",next:["$color.palette.static-black-alpha-500"]},{previous:"$static.color.static-white-alpha-50",next:[],description:"static \uC0C9\uC0C1 \uC0AC\uC6A9 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},{previous:"$static.color.static-white-alpha-200",next:["$color.palette.static-white-alpha-200"]}],C=[...U,...J,...L];var v=D(require("fs"),1),g=D(require("path"),1),w=class{timestamp;fileMigrations=[];currentFile=null;reportDir=g.join(process.cwd(),".report");transformName;constructor(e){this.transformName=e,this.timestamp=this.generateTimestamp()}generateTimestamp(){return new Date(new Date().getTime()+324e5).toISOString()}getReportPath(){return g.join(this.reportDir,`${this.transformName}.md`)}getRelativePath(e){if(!e)return"unknown";try{let r=g.resolve(e);return g.relative(this.reportDir,r)}catch{return"unknown"}}startNewFile(e){this.currentFile={filePath:this.getRelativePath(e),results:[]}}addResult(e){this.currentFile&&this.currentFile.results.push(e)}finishFile(){this.currentFile&&this.currentFile.results.length>0&&this.fileMigrations.push(this.currentFile),this.currentFile=null}hasResults(){return this.fileMigrations.length>0}writeReport(){if(!this.hasResults())return;v.existsSync(this.reportDir)||v.mkdirSync(this.reportDir,{recursive:!0});let e=this.getReportPath(),r=v.existsSync(e)?v.readFileSync(e,"utf8"):"",u=this.fileMigrations.map(l=>{let p=g.basename(l.filePath),n=l.results.map(t=>{let m=t.line?` (line: ${t.line})`:"",d=t.status==="success"?"\u2705 success":t.status==="warning"?"\u26A0\uFE0F warning":"\u274C failure",y=t.failureReason?`
2
- - reason: ${t.failureReason}`:"";return` - ${d} ${m}
3
- - as-is: \`${t.previousToken}\`
4
- - to-be: ${t.nextToken?`\`${t.nextToken}\``:"undefined"}${y}`}).join(`
5
- `);return`### [${p}](${l.filePath})
6
- - timestamp: ${this.timestamp}
7
- - summary:
8
- - total: ${l.results.length}
9
- - success: ${l.results.filter(t=>t.status==="success").length}
10
- - warning: ${l.results.filter(t=>t.status==="warning").length}
11
- - failure: ${l.results.filter(t=>t.status==="failure").length}
12
- - lines
13
- ${n}`}).join(`
1
+ var Cu=Object.create;var Nr=Object.defineProperty;var ku=Object.getOwnPropertyDescriptor;var Iu=Object.getOwnPropertyNames;var Fu=Object.getPrototypeOf,Wu=Object.prototype.hasOwnProperty;var f=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),Bu=(r,e)=>{for(var t in e)Nr(r,t,{get:e[t],enumerable:!0})},Ri=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Iu(e))!Wu.call(r,i)&&i!==t&&Nr(r,i,{get:()=>e[i],enumerable:!(n=ku(e,i))||n.enumerable});return r};var zu=(r,e,t)=>(t=r!=null?Cu(Fu(r)):{},Ri(e||!r||!r.__esModule?Nr(t,"default",{value:r,enumerable:!0}):t,r)),Hu=r=>Ri(Nr({},"__esModule",{value:!0}),r);var J=f((vg,Ai)=>{"use strict";var Bt=class r extends Error{constructor(e){super(`Format functions must be synchronous taking a two arguments: (info, opts)
2
+ Found: ${e.toString().split(`
3
+ `)[0]}
4
+ `),Error.captureStackTrace(this,r)}};Ai.exports=r=>{if(r.length>2)throw new Bt(r);function e(n={}){this.options=n}e.prototype.transform=r;function t(n){return new e(n)}return t.Format=e,t}});var Pi=f((yg,Ni)=>{var ji={};Ni.exports=ji;var Li={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(Li).forEach(function(r){var e=Li[r],t=ji[r]=[];t.open="\x1B["+e[0]+"m",t.close="\x1B["+e[1]+"m"})});var Ci=f((bg,Di)=>{"use strict";Di.exports=function(r,e){e=e||process.argv||[];var t=e.indexOf("--"),n=/^-{1,2}/.test(r)?"":"--",i=e.indexOf(n+r);return i!==-1&&(t===-1?!0:i<t)}});var Ii=f((wg,ki)=>{"use strict";var Vu=require("os"),ae=Ci(),G=process.env,We=void 0;ae("no-color")||ae("no-colors")||ae("color=false")?We=!1:(ae("color")||ae("colors")||ae("color=true")||ae("color=always"))&&(We=!0);"FORCE_COLOR"in G&&(We=G.FORCE_COLOR.length===0||parseInt(G.FORCE_COLOR,10)!==0);function Ku(r){return r===0?!1:{level:r,hasBasic:!0,has256:r>=2,has16m:r>=3}}function Ju(r){if(We===!1)return 0;if(ae("color=16m")||ae("color=full")||ae("color=truecolor"))return 3;if(ae("color=256"))return 2;if(r&&!r.isTTY&&We!==!0)return 0;var e=We?1:0;if(process.platform==="win32"){var t=Vu.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in G)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(i){return i in G})||G.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in G)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(G.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in G){var n=parseInt((G.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(G.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(G.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(G.TERM)||"COLORTERM"in G?1:(G.TERM==="dumb",e)}function zt(r){var e=Ju(r);return Ku(e)}ki.exports={supportsColor:zt,stdout:zt(process.stdout),stderr:zt(process.stderr)}});var Wi=f((_g,Fi)=>{Fi.exports=function(e,t){var n="";e=e||"Run the trap, drop the bass",e=e.split("");var i={a:["@","\u0104","\u023A","\u0245","\u0394","\u039B","\u0414"],b:["\xDF","\u0181","\u0243","\u026E","\u03B2","\u0E3F"],c:["\xA9","\u023B","\u03FE"],d:["\xD0","\u018A","\u0500","\u0501","\u0502","\u0503"],e:["\xCB","\u0115","\u018E","\u0258","\u03A3","\u03BE","\u04BC","\u0A6C"],f:["\u04FA"],g:["\u0262"],h:["\u0126","\u0195","\u04A2","\u04BA","\u04C7","\u050A"],i:["\u0F0F"],j:["\u0134"],k:["\u0138","\u04A0","\u04C3","\u051E"],l:["\u0139"],m:["\u028D","\u04CD","\u04CE","\u0520","\u0521","\u0D69"],n:["\xD1","\u014B","\u019D","\u0376","\u03A0","\u048A"],o:["\xD8","\xF5","\xF8","\u01FE","\u0298","\u047A","\u05DD","\u06DD","\u0E4F"],p:["\u01F7","\u048E"],q:["\u09CD"],r:["\xAE","\u01A6","\u0210","\u024C","\u0280","\u042F"],s:["\xA7","\u03DE","\u03DF","\u03E8"],t:["\u0141","\u0166","\u0373"],u:["\u01B1","\u054D"],v:["\u05D8"],w:["\u0428","\u0460","\u047C","\u0D70"],x:["\u04B2","\u04FE","\u04FC","\u04FD"],y:["\xA5","\u04B0","\u04CB"],z:["\u01B5","\u0240"]};return e.forEach(function(a){a=a.toLowerCase();var o=i[a]||[" "],s=Math.floor(Math.random()*o.length);typeof i[a]<"u"?n+=i[a][s]:n+=a}),n}});var zi=f((xg,Bi)=>{Bi.exports=function(e,t){e=e||" he is here ";var n={up:["\u030D","\u030E","\u0304","\u0305","\u033F","\u0311","\u0306","\u0310","\u0352","\u0357","\u0351","\u0307","\u0308","\u030A","\u0342","\u0313","\u0308","\u034A","\u034B","\u034C","\u0303","\u0302","\u030C","\u0350","\u0300","\u0301","\u030B","\u030F","\u0312","\u0313","\u0314","\u033D","\u0309","\u0363","\u0364","\u0365","\u0366","\u0367","\u0368","\u0369","\u036A","\u036B","\u036C","\u036D","\u036E","\u036F","\u033E","\u035B","\u0346","\u031A"],down:["\u0316","\u0317","\u0318","\u0319","\u031C","\u031D","\u031E","\u031F","\u0320","\u0324","\u0325","\u0326","\u0329","\u032A","\u032B","\u032C","\u032D","\u032E","\u032F","\u0330","\u0331","\u0332","\u0333","\u0339","\u033A","\u033B","\u033C","\u0345","\u0347","\u0348","\u0349","\u034D","\u034E","\u0353","\u0354","\u0355","\u0356","\u0359","\u035A","\u0323"],mid:["\u0315","\u031B","\u0300","\u0301","\u0358","\u0321","\u0322","\u0327","\u0328","\u0334","\u0335","\u0336","\u035C","\u035D","\u035E","\u035F","\u0360","\u0362","\u0338","\u0337","\u0361"," \u0489"]},i=[].concat(n.up,n.down,n.mid);function a(l){var u=Math.floor(Math.random()*l);return u}function o(l){var u=!1;return i.filter(function(h){u=h===l}),u}function s(l,u){var h="",g,d;u=u||{},u.up=typeof u.up<"u"?u.up:!0,u.mid=typeof u.mid<"u"?u.mid:!0,u.down=typeof u.down<"u"?u.down:!0,u.size=typeof u.size<"u"?u.size:"maxi",l=l.split("");for(d in l)if(!o(d)){switch(h=h+l[d],g={up:0,down:0,mid:0},u.size){case"mini":g.up=a(8),g.mid=a(2),g.down=a(8);break;case"maxi":g.up=a(16)+3,g.mid=a(4)+1,g.down=a(64)+3;break;default:g.up=a(8)+1,g.mid=a(6)/2,g.down=a(8)+1;break}var v=["up","mid","down"];for(var c in v)for(var m=v[c],_=0;_<=g[m];_++)u[m]&&(h=h+n[m][a(n[m].length)])}return h}return s(e,t)}});var Ui=f((Eg,Hi)=>{Hi.exports=function(r){return function(e,t,n){if(e===" ")return e;switch(t%3){case 0:return r.red(e);case 1:return r.white(e);case 2:return r.blue(e)}}}});var Gi=f((Sg,Yi)=>{Yi.exports=function(r){return function(e,t,n){return t%2===0?e:r.inverse(e)}}});var Ki=f(($g,Vi)=>{Vi.exports=function(r){var e=["red","yellow","green","blue","magenta"];return function(t,n,i){return t===" "?t:r[e[n++%e.length]](t)}}});var Zi=f((Mg,Ji)=>{Ji.exports=function(r){var e=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(t,n,i){return t===" "?t:r[e[Math.round(Math.random()*(e.length-2))]](t)}}});var na=f((Og,ta)=>{var q={};ta.exports=q;q.themes={};var Zu=require("util"),$e=q.styles=Pi(),Xi=Object.defineProperties,Qu=new RegExp(/[\r\n]+/g);q.supportsColor=Ii().supportsColor;typeof q.enabled>"u"&&(q.enabled=q.supportsColor()!==!1);q.enable=function(){q.enabled=!0};q.disable=function(){q.enabled=!1};q.stripColors=q.strip=function(r){return(""+r).replace(/\x1B\[\d+m/g,"")};var qg=q.stylize=function(e,t){if(!q.enabled)return e+"";var n=$e[t];return!n&&t in q?q[t](e):n.open+e+n.close},Xu=/[|\\{}()[\]^$+*?.]/g,ec=function(r){if(typeof r!="string")throw new TypeError("Expected a string");return r.replace(Xu,"\\$&")};function ea(r){var e=function t(){return tc.apply(t,arguments)};return e._styles=r,e.__proto__=rc,e}var ra=function(){var r={};return $e.grey=$e.gray,Object.keys($e).forEach(function(e){$e[e].closeRe=new RegExp(ec($e[e].close),"g"),r[e]={get:function(){return ea(this._styles.concat(e))}}}),r}(),rc=Xi(function(){},ra);function tc(){var r=Array.prototype.slice.call(arguments),e=r.map(function(o){return o!=null&&o.constructor===String?o:Zu.inspect(o)}).join(" ");if(!q.enabled||!e)return e;for(var t=e.indexOf(`
5
+ `)!=-1,n=this._styles,i=n.length;i--;){var a=$e[n[i]];e=a.open+e.replace(a.closeRe,a.open)+a.close,t&&(e=e.replace(Qu,function(o){return a.close+o+a.open}))}return e}q.setTheme=function(r){if(typeof r=="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var e in r)(function(t){q[t]=function(n){if(typeof r[t]=="object"){var i=n;for(var a in r[t])i=q[r[t][a]](i);return i}return q[r[t]](n)}})(e)};function nc(){var r={};return Object.keys(ra).forEach(function(e){r[e]={get:function(){return ea([e])}}}),r}var ic=function(e,t){var n=t.split("");return n=n.map(e),n.join("")};q.trap=Wi();q.zalgo=zi();q.maps={};q.maps.america=Ui()(q);q.maps.zebra=Gi()(q);q.maps.rainbow=Ki()(q);q.maps.random=Zi()(q);for(Qi in q.maps)(function(r){q[r]=function(e){return ic(q.maps[r],e)}})(Qi);var Qi;Xi(q,nc())});var Ht=f((Rg,ia)=>{var ac=na();ia.exports=ac});var aa=f(Ut=>{"use strict";Ut.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9};Ut.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}});var oa=f(Yt=>{"use strict";Yt.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6};Yt.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}});var sa=f(Gt=>{"use strict";Gt.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7};Gt.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}});var la=f(Pr=>{"use strict";Object.defineProperty(Pr,"cli",{value:aa()});Object.defineProperty(Pr,"npm",{value:oa()});Object.defineProperty(Pr,"syslog",{value:sa()})});var k=f(nr=>{"use strict";Object.defineProperty(nr,"LEVEL",{value:Symbol.for("level")});Object.defineProperty(nr,"MESSAGE",{value:Symbol.for("message")});Object.defineProperty(nr,"SPLAT",{value:Symbol.for("splat")});Object.defineProperty(nr,"configs",{value:la()})});var kr=f((Pg,Cr)=>{"use strict";var Jt=Ht(),{LEVEL:Vt,MESSAGE:Kt}=k();Jt.enabled=!0;var ua=/\s+/,Dr=class r{constructor(e={}){e.colors&&this.addColors(e.colors),this.options=e}static addColors(e){let t=Object.keys(e).reduce((n,i)=>(n[i]=ua.test(e[i])?e[i].split(ua):e[i],n),{});return r.allColors=Object.assign({},r.allColors||{},t),r.allColors}addColors(e){return r.addColors(e)}colorize(e,t,n){if(typeof n>"u"&&(n=t),!Array.isArray(r.allColors[e]))return Jt[r.allColors[e]](n);for(let i=0,a=r.allColors[e].length;i<a;i++)n=Jt[r.allColors[e][i]](n);return n}transform(e,t){return t.all&&typeof e[Kt]=="string"&&(e[Kt]=this.colorize(e[Vt],e.level,e[Kt])),(t.level||t.all||!t.message)&&(e.level=this.colorize(e[Vt],e.level)),(t.all||t.message)&&(e.message=this.colorize(e[Vt],e.level,e.message)),e}};Cr.exports=r=>new Dr(r);Cr.exports.Colorizer=Cr.exports.Format=Dr});var fa=f((Dg,ca)=>{"use strict";var{Colorizer:oc}=kr();ca.exports=r=>(oc.addColors(r.colors||r),r)});var da=f((Cg,ha)=>{"use strict";var sc=J();ha.exports=sc(r=>(r.message=` ${r.message}`,r))});var ma=f((kg,ga)=>{"use strict";var lc=J(),{LEVEL:pa,MESSAGE:Zt}=k();ga.exports=lc((r,{stack:e,cause:t})=>{if(r instanceof Error){let i=Object.assign({},r,{level:r.level,[pa]:r[pa]||r.level,message:r.message,[Zt]:r[Zt]||r.message});return e&&(i.stack=r.stack),t&&(i.cause=r.cause),i}if(!(r.message instanceof Error))return r;let n=r.message;return Object.assign(r,n),r.message=n.message,r[Zt]=n.message,e&&(r.stack=n.stack),t&&(r.cause=n.cause),r})});var Xt=f((Ig,Fr)=>{"use strict";var{configs:uc,LEVEL:va,MESSAGE:Qt}=k(),Ir=class r{constructor(e={levels:uc.npm.levels}){this.paddings=r.paddingForLevels(e.levels,e.filler),this.options=e}static getLongestLevel(e){let t=Object.keys(e).map(n=>n.length);return Math.max(...t)}static paddingForLevel(e,t,n){let i=n+1-e.length,a=Math.floor(i/t.length);return`${t}${t.repeat(a)}`.slice(0,i)}static paddingForLevels(e,t=" "){let n=r.getLongestLevel(e);return Object.keys(e).reduce((i,a)=>(i[a]=r.paddingForLevel(a,t,n),i),{})}transform(e,t){return e.message=`${this.paddings[e[va]]}${e.message}`,e[Qt]&&(e[Qt]=`${this.paddings[e[va]]}${e[Qt]}`),e}};Fr.exports=r=>new Ir(r);Fr.exports.Padder=Fr.exports.Format=Ir});var ya=f((Fg,en)=>{"use strict";var{Colorizer:cc}=kr(),{Padder:fc}=Xt(),{configs:hc,MESSAGE:dc}=k(),Wr=class{constructor(e={}){e.levels||(e.levels=hc.cli.levels),this.colorizer=new cc(e),this.padder=new fc(e),this.options=e}transform(e,t){return this.colorizer.transform(this.padder.transform(e,t),t),e[dc]=`${e.level}:${e.message}`,e}};en.exports=r=>new Wr(r);en.exports.Format=Wr});var wa=f((Wg,rn)=>{"use strict";var pc=J();function ba(r){if(r.every(gc))return e=>{let t=e;for(let n=0;n<r.length;n++)if(t=r[n].transform(t,r[n].options),!t)return!1;return t}}function gc(r){if(typeof r.transform!="function")throw new Error(["No transform function found on format. Did you create a format instance?","const myFormat = format(formatFn);","const instance = myFormat();"].join(`
6
+ `));return!0}rn.exports=(...r)=>{let e=pc(ba(r)),t=e();return t.Format=e.Format,t};rn.exports.cascade=ba});var ar=f((on,Ea)=>{"use strict";var{hasOwnProperty:ir}=Object.prototype,qe=an();qe.configure=an;qe.stringify=qe;qe.default=qe;on.stringify=qe;on.configure=an;Ea.exports=qe;var mc=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function me(r){return r.length<5e3&&!mc.test(r)?`"${r}"`:JSON.stringify(r)}function tn(r,e){if(r.length>200||e)return r.sort(e);for(let t=1;t<r.length;t++){let n=r[t],i=t;for(;i!==0&&r[i-1]>n;)r[i]=r[i-1],i--;r[i]=n}return r}var vc=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function nn(r){return vc.call(r)!==void 0&&r.length!==0}function _a(r,e,t){r.length<t&&(t=r.length);let n=e===","?"":" ",i=`"0":${n}${r[0]}`;for(let a=1;a<t;a++)i+=`${e}"${a}":${n}${r[a]}`;return i}function yc(r){if(ir.call(r,"circularValue")){let e=r.circularValue;if(typeof e=="string")return`"${e}"`;if(e==null)return e;if(e===Error||e===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}function bc(r){let e;if(ir.call(r,"deterministic")&&(e=r.deterministic,typeof e!="boolean"&&typeof e!="function"))throw new TypeError('The "deterministic" argument must be of type boolean or comparator function');return e===void 0?!0:e}function wc(r,e){let t;if(ir.call(r,e)&&(t=r[e],typeof t!="boolean"))throw new TypeError(`The "${e}" argument must be of type boolean`);return t===void 0?!0:t}function xa(r,e){let t;if(ir.call(r,e)){if(t=r[e],typeof t!="number")throw new TypeError(`The "${e}" argument must be of type number`);if(!Number.isInteger(t))throw new TypeError(`The "${e}" argument must be an integer`);if(t<1)throw new RangeError(`The "${e}" argument must be >= 1`)}return t===void 0?1/0:t}function Me(r){return r===1?"1 item":`${r} items`}function _c(r){let e=new Set;for(let t of r)(typeof t=="string"||typeof t=="number")&&e.add(String(t));return e}function xc(r){if(ir.call(r,"strict")){let e=r.strict;if(typeof e!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(e)return t=>{let n=`Object can not safely be stringified. Received type ${typeof t}`;throw typeof t!="function"&&(n+=` (${t.toString()})`),new Error(n)}}}function an(r){r={...r};let e=xc(r);e&&(r.bigint===void 0&&(r.bigint=!1),"circularValue"in r||(r.circularValue=Error));let t=yc(r),n=wc(r,"bigint"),i=bc(r),a=typeof i=="function"?i:void 0,o=xa(r,"maximumDepth"),s=xa(r,"maximumBreadth");function l(v,c,m,_,x,M){let y=c[v];switch(typeof y=="object"&&y!==null&&typeof y.toJSON=="function"&&(y=y.toJSON(v)),y=_.call(c,v,y),typeof y){case"string":return me(y);case"object":{if(y===null)return"null";if(m.indexOf(y)!==-1)return t;let S="",j=",",N=M;if(Array.isArray(y)){if(y.length===0)return"[]";if(o<m.length+1)return'"[Array]"';m.push(y),x!==""&&(M+=x,S+=`
7
+ ${M}`,j=`,
8
+ ${M}`);let B=Math.min(y.length,s),Q=0;for(;Q<B-1;Q++){let Ie=l(String(Q),y,m,_,x,M);S+=Ie!==void 0?Ie:"null",S+=j}let X=l(String(Q),y,m,_,x,M);if(S+=X!==void 0?X:"null",y.length-1>s){let Ie=y.length-s-1;S+=`${j}"... ${Me(Ie)} not stringified"`}return x!==""&&(S+=`
9
+ ${N}`),m.pop(),`[${S}]`}let T=Object.keys(y),P=T.length;if(P===0)return"{}";if(o<m.length+1)return'"[Object]"';let O="",W="";x!==""&&(M+=x,j=`,
10
+ ${M}`,O=" ");let Y=Math.min(P,s);i&&!nn(y)&&(T=tn(T,a)),m.push(y);for(let B=0;B<Y;B++){let Q=T[B],X=l(Q,y,m,_,x,M);X!==void 0&&(S+=`${W}${me(Q)}:${O}${X}`,W=j)}if(P>s){let B=P-s;S+=`${W}"...":${O}"${Me(B)} not stringified"`,W=j}return x!==""&&W.length>1&&(S=`
11
+ ${M}${S}
12
+ ${N}`),m.pop(),`{${S}}`}case"number":return isFinite(y)?String(y):e?e(y):"null";case"boolean":return y===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(y);default:return e?e(y):void 0}}function u(v,c,m,_,x,M){switch(typeof c=="object"&&c!==null&&typeof c.toJSON=="function"&&(c=c.toJSON(v)),typeof c){case"string":return me(c);case"object":{if(c===null)return"null";if(m.indexOf(c)!==-1)return t;let y=M,S="",j=",";if(Array.isArray(c)){if(c.length===0)return"[]";if(o<m.length+1)return'"[Array]"';m.push(c),x!==""&&(M+=x,S+=`
13
+ ${M}`,j=`,
14
+ ${M}`);let P=Math.min(c.length,s),O=0;for(;O<P-1;O++){let Y=u(String(O),c[O],m,_,x,M);S+=Y!==void 0?Y:"null",S+=j}let W=u(String(O),c[O],m,_,x,M);if(S+=W!==void 0?W:"null",c.length-1>s){let Y=c.length-s-1;S+=`${j}"... ${Me(Y)} not stringified"`}return x!==""&&(S+=`
15
+ ${y}`),m.pop(),`[${S}]`}m.push(c);let N="";x!==""&&(M+=x,j=`,
16
+ ${M}`,N=" ");let T="";for(let P of _){let O=u(P,c[P],m,_,x,M);O!==void 0&&(S+=`${T}${me(P)}:${N}${O}`,T=j)}return x!==""&&T.length>1&&(S=`
17
+ ${M}${S}
18
+ ${y}`),m.pop(),`{${S}}`}case"number":return isFinite(c)?String(c):e?e(c):"null";case"boolean":return c===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(c);default:return e?e(c):void 0}}function h(v,c,m,_,x){switch(typeof c){case"string":return me(c);case"object":{if(c===null)return"null";if(typeof c.toJSON=="function"){if(c=c.toJSON(v),typeof c!="object")return h(v,c,m,_,x);if(c===null)return"null"}if(m.indexOf(c)!==-1)return t;let M=x;if(Array.isArray(c)){if(c.length===0)return"[]";if(o<m.length+1)return'"[Array]"';m.push(c),x+=_;let O=`
19
+ ${x}`,W=`,
20
+ ${x}`,Y=Math.min(c.length,s),B=0;for(;B<Y-1;B++){let X=h(String(B),c[B],m,_,x);O+=X!==void 0?X:"null",O+=W}let Q=h(String(B),c[B],m,_,x);if(O+=Q!==void 0?Q:"null",c.length-1>s){let X=c.length-s-1;O+=`${W}"... ${Me(X)} not stringified"`}return O+=`
21
+ ${M}`,m.pop(),`[${O}]`}let y=Object.keys(c),S=y.length;if(S===0)return"{}";if(o<m.length+1)return'"[Object]"';x+=_;let j=`,
22
+ ${x}`,N="",T="",P=Math.min(S,s);nn(c)&&(N+=_a(c,j,s),y=y.slice(c.length),P-=c.length,T=j),i&&(y=tn(y,a)),m.push(c);for(let O=0;O<P;O++){let W=y[O],Y=h(W,c[W],m,_,x);Y!==void 0&&(N+=`${T}${me(W)}: ${Y}`,T=j)}if(S>s){let O=S-s;N+=`${T}"...": "${Me(O)} not stringified"`,T=j}return T!==""&&(N=`
23
+ ${x}${N}
24
+ ${M}`),m.pop(),`{${N}}`}case"number":return isFinite(c)?String(c):e?e(c):"null";case"boolean":return c===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(c);default:return e?e(c):void 0}}function g(v,c,m){switch(typeof c){case"string":return me(c);case"object":{if(c===null)return"null";if(typeof c.toJSON=="function"){if(c=c.toJSON(v),typeof c!="object")return g(v,c,m);if(c===null)return"null"}if(m.indexOf(c)!==-1)return t;let _="",x=c.length!==void 0;if(x&&Array.isArray(c)){if(c.length===0)return"[]";if(o<m.length+1)return'"[Array]"';m.push(c);let N=Math.min(c.length,s),T=0;for(;T<N-1;T++){let O=g(String(T),c[T],m);_+=O!==void 0?O:"null",_+=","}let P=g(String(T),c[T],m);if(_+=P!==void 0?P:"null",c.length-1>s){let O=c.length-s-1;_+=`,"... ${Me(O)} not stringified"`}return m.pop(),`[${_}]`}let M=Object.keys(c),y=M.length;if(y===0)return"{}";if(o<m.length+1)return'"[Object]"';let S="",j=Math.min(y,s);x&&nn(c)&&(_+=_a(c,",",s),M=M.slice(c.length),j-=c.length,S=","),i&&(M=tn(M,a)),m.push(c);for(let N=0;N<j;N++){let T=M[N],P=g(T,c[T],m);P!==void 0&&(_+=`${S}${me(T)}:${P}`,S=",")}if(y>s){let N=y-s;_+=`${S}"...":"${Me(N)} not stringified"`}return m.pop(),`{${_}}`}case"number":return isFinite(c)?String(c):e?e(c):"null";case"boolean":return c===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(c);default:return e?e(c):void 0}}function d(v,c,m){if(arguments.length>1){let _="";if(typeof m=="number"?_=" ".repeat(Math.min(m,10)):typeof m=="string"&&(_=m.slice(0,10)),c!=null){if(typeof c=="function")return l("",{"":v},[],c,_,"");if(Array.isArray(c))return u("",v,[],_c(c),_,"")}if(_.length!==0)return h("",v,[],_,"")}return g("",v,[])}return d}});var sn=f((Bg,Sa)=>{"use strict";var Ec=J(),{MESSAGE:Sc}=k(),$c=ar();function Mc(r,e){return typeof e=="bigint"?e.toString():e}Sa.exports=Ec((r,e)=>{let t=$c.configure(e);return r[Sc]=t(r,e.replacer||Mc,e.space),r})});var Ma=f((zg,$a)=>{"use strict";var qc=J();$a.exports=qc((r,e)=>e.message?(r.message=`[${e.label}] ${r.message}`,r):(r.label=e.label,r))});var Oa=f((Hg,qa)=>{"use strict";var Oc=J(),{MESSAGE:Rc}=k(),Tc=ar();qa.exports=Oc(r=>{let e={};return r.message&&(e["@message"]=r.message,delete r.message),r.timestamp&&(e["@timestamp"]=r.timestamp,delete r.timestamp),e["@fields"]=r,r[Rc]=Tc(e),r})});var Ta=f((Ug,Ra)=>{"use strict";var Ac=J();function Lc(r,e,t){let n=e.reduce((a,o)=>(a[o]=r[o],delete r[o],a),{}),i=Object.keys(r).reduce((a,o)=>(a[o]=r[o],delete r[o],a),{});return Object.assign(r,n,{[t]:i}),r}function jc(r,e,t){return r[t]=e.reduce((n,i)=>(n[i]=r[i],delete r[i],n),{}),r}Ra.exports=Ac((r,e={})=>{let t="metadata";e.key&&(t=e.key);let n=[];return!e.fillExcept&&!e.fillWith&&(n.push("level"),n.push("message")),e.fillExcept&&(n=e.fillExcept),n.length>0?Lc(r,n,t):e.fillWith?jc(r,e.fillWith,t):r})});var La=f((Yg,Aa)=>{var Be=1e3,ze=Be*60,He=ze*60,Oe=He*24,Nc=Oe*7,Pc=Oe*365.25;Aa.exports=function(r,e){e=e||{};var t=typeof r;if(t==="string"&&r.length>0)return Dc(r);if(t==="number"&&isFinite(r))return e.long?kc(r):Cc(r);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(r))};function Dc(r){if(r=String(r),!(r.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(r);if(e){var t=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return t*Pc;case"weeks":case"week":case"w":return t*Nc;case"days":case"day":case"d":return t*Oe;case"hours":case"hour":case"hrs":case"hr":case"h":return t*He;case"minutes":case"minute":case"mins":case"min":case"m":return t*ze;case"seconds":case"second":case"secs":case"sec":case"s":return t*Be;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function Cc(r){var e=Math.abs(r);return e>=Oe?Math.round(r/Oe)+"d":e>=He?Math.round(r/He)+"h":e>=ze?Math.round(r/ze)+"m":e>=Be?Math.round(r/Be)+"s":r+"ms"}function kc(r){var e=Math.abs(r);return e>=Oe?Br(r,e,Oe,"day"):e>=He?Br(r,e,He,"hour"):e>=ze?Br(r,e,ze,"minute"):e>=Be?Br(r,e,Be,"second"):r+" ms"}function Br(r,e,t,n){var i=e>=t*1.5;return Math.round(r/t)+" "+n+(i?"s":"")}});var Na=f((or,ja)=>{"use strict";var Ic=J(),Fc=La();ja.exports=Ic(r=>{let e=+new Date;return or.diff=e-(or.prevTime||e),or.prevTime=e,r.ms=`+${Fc(or.diff)}`,r})});var Ca=f((Gg,Da)=>{"use strict";var Wc=require("util").inspect,Bc=J(),{LEVEL:zc,MESSAGE:Pa,SPLAT:Hc}=k();Da.exports=Bc((r,e={})=>{let t=Object.assign({},r);return delete t[zc],delete t[Pa],delete t[Hc],r[Pa]=Wc(t,!1,e.depth||null,e.colorize),r})});var ka=f((Vg,Hr)=>{"use strict";var{MESSAGE:Uc}=k(),zr=class{constructor(e){this.template=e}transform(e){return e[Uc]=this.template(e),e}};Hr.exports=r=>new zr(r);Hr.exports.Printf=Hr.exports.Format=zr});var Wa=f((Kg,Fa)=>{"use strict";var Yc=J(),{MESSAGE:Ia}=k(),Gc=ar();Fa.exports=Yc(r=>{let e=Gc(Object.assign({},r,{level:void 0,message:void 0,splat:void 0})),t=r.padding&&r.padding[r.level]||"";return e!=="{}"?r[Ia]=`${r.level}:${t} ${r.message} ${e}`:r[Ia]=`${r.level}:${t} ${r.message}`,r})});var Ha=f((Jg,za)=>{"use strict";var Vc=require("util"),{SPLAT:Ba}=k(),Kc=/%[scdjifoO%]/g,Jc=/%%/g,ln=class{constructor(e){this.options=e}_splat(e,t){let n=e.message,i=e[Ba]||e.splat||[],a=n.match(Jc),o=a&&a.length||0,l=t.length-o-i.length,u=l<0?i.splice(l,-1*l):[],h=u.length;if(h)for(let g=0;g<h;g++)Object.assign(e,u[g]);return e.message=Vc.format(n,...i),e}transform(e){let t=e.message,n=e[Ba]||e.splat;if(!n||!n.length)return e;let i=t&&t.match&&t.match(Kc);if(!i&&(n||n.length)){let a=n.length>1?n.splice(0):n,o=a.length;if(o)for(let s=0;s<o;s++)Object.assign(e,a[s]);return e}return i?this._splat(e,i):e}};za.exports=r=>new ln(r)});var Ya=f((Ur,Ua)=>{(function(r,e){typeof Ur=="object"&&typeof Ua<"u"?e(Ur):typeof define=="function"&&define.amd?define(["exports"],e):e(r.fecha={})})(Ur,function(r){"use strict";var e=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,t="\\d\\d?",n="\\d\\d",i="\\d{3}",a="\\d{4}",o="[^\\s]+",s=/\[([^]*?)\]/gm;function l(p,b){for(var L=[],K=0,E=p.length;K<E;K++)L.push(p[K].substr(0,b));return L}var u=function(p){return function(b,L){var K=L[p].map(function(le){return le.toLowerCase()}),E=K.indexOf(b.toLowerCase());return E>-1?E:null}};function h(p){for(var b=[],L=1;L<arguments.length;L++)b[L-1]=arguments[L];for(var K=0,E=b;K<E.length;K++){var le=E[K];for(var Se in le)p[Se]=le[Se]}return p}var g=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],d=["January","February","March","April","May","June","July","August","September","October","November","December"],v=l(d,3),c=l(g,3),m={dayNamesShort:c,dayNames:g,monthNamesShort:v,monthNames:d,amPm:["am","pm"],DoFn:function(p){return p+["th","st","nd","rd"][p%10>3?0:(p-p%10!==10?1:0)*p%10]}},_=h({},m),x=function(p){return _=h(_,p)},M=function(p){return p.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},y=function(p,b){for(b===void 0&&(b=2),p=String(p);p.length<b;)p="0"+p;return p},S={D:function(p){return String(p.getDate())},DD:function(p){return y(p.getDate())},Do:function(p,b){return b.DoFn(p.getDate())},d:function(p){return String(p.getDay())},dd:function(p){return y(p.getDay())},ddd:function(p,b){return b.dayNamesShort[p.getDay()]},dddd:function(p,b){return b.dayNames[p.getDay()]},M:function(p){return String(p.getMonth()+1)},MM:function(p){return y(p.getMonth()+1)},MMM:function(p,b){return b.monthNamesShort[p.getMonth()]},MMMM:function(p,b){return b.monthNames[p.getMonth()]},YY:function(p){return y(String(p.getFullYear()),4).substr(2)},YYYY:function(p){return y(p.getFullYear(),4)},h:function(p){return String(p.getHours()%12||12)},hh:function(p){return y(p.getHours()%12||12)},H:function(p){return String(p.getHours())},HH:function(p){return y(p.getHours())},m:function(p){return String(p.getMinutes())},mm:function(p){return y(p.getMinutes())},s:function(p){return String(p.getSeconds())},ss:function(p){return y(p.getSeconds())},S:function(p){return String(Math.round(p.getMilliseconds()/100))},SS:function(p){return y(Math.round(p.getMilliseconds()/10),2)},SSS:function(p){return y(p.getMilliseconds(),3)},a:function(p,b){return p.getHours()<12?b.amPm[0]:b.amPm[1]},A:function(p,b){return p.getHours()<12?b.amPm[0].toUpperCase():b.amPm[1].toUpperCase()},ZZ:function(p){var b=p.getTimezoneOffset();return(b>0?"-":"+")+y(Math.floor(Math.abs(b)/60)*100+Math.abs(b)%60,4)},Z:function(p){var b=p.getTimezoneOffset();return(b>0?"-":"+")+y(Math.floor(Math.abs(b)/60),2)+":"+y(Math.abs(b)%60,2)}},j=function(p){return+p-1},N=[null,t],T=[null,o],P=["isPm",o,function(p,b){var L=p.toLowerCase();return L===b.amPm[0]?0:L===b.amPm[1]?1:null}],O=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(p){var b=(p+"").match(/([+-]|\d\d)/gi);if(b){var L=+b[1]*60+parseInt(b[2],10);return b[0]==="+"?L:-L}return 0}],W={D:["day",t],DD:["day",n],Do:["day",t+o,function(p){return parseInt(p,10)}],M:["month",t,j],MM:["month",n,j],YY:["year",n,function(p){var b=new Date,L=+(""+b.getFullYear()).substr(0,2);return+(""+(+p>68?L-1:L)+p)}],h:["hour",t,void 0,"isPm"],hh:["hour",n,void 0,"isPm"],H:["hour",t],HH:["hour",n],m:["minute",t],mm:["minute",n],s:["second",t],ss:["second",n],YYYY:["year",a],S:["millisecond","\\d",function(p){return+p*100}],SS:["millisecond",n,function(p){return+p*10}],SSS:["millisecond",i],d:N,dd:N,ddd:T,dddd:T,MMM:["month",o,u("monthNamesShort")],MMMM:["month",o,u("monthNames")],a:P,A:P,ZZ:O,Z:O},Y={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},B=function(p){return h(Y,p)},Q=function(p,b,L){if(b===void 0&&(b=Y.default),L===void 0&&(L={}),typeof p=="number"&&(p=new Date(p)),Object.prototype.toString.call(p)!=="[object Date]"||isNaN(p.getTime()))throw new Error("Invalid Date pass to format");b=Y[b]||b;var K=[];b=b.replace(s,function(le,Se){return K.push(Se),"@@@"});var E=h(h({},_),L);return b=b.replace(e,function(le){return S[le](p,E)}),b.replace(/@@@/g,function(){return K.shift()})};function X(p,b,L){if(L===void 0&&(L={}),typeof b!="string")throw new Error("Invalid format in fecha parse");if(b=Y[b]||b,p.length>1e3)return null;var K=new Date,E={year:K.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},le=[],Se=[],rr=b.replace(s,function(tr,Fe){return Se.push(M(Fe)),"@@@"}),Tr={},Si={};rr=M(rr).replace(e,function(tr){var Fe=W[tr],Wt=Fe[0],Du=Fe[1],Oi=Fe[3];if(Tr[Wt])throw new Error("Invalid format. "+Wt+" specified twice in format");return Tr[Wt]=!0,Oi&&(Si[Oi]=!0),le.push(Fe),"("+Du+")"}),Object.keys(Si).forEach(function(tr){if(!Tr[tr])throw new Error("Invalid format. "+tr+" is required in specified format")}),rr=rr.replace(/@@@/g,function(){return Se.shift()});var Ar=p.match(new RegExp(rr,"i"));if(!Ar)return null;for(var ju=h(h({},_),L),ie=1;ie<Ar.length;ie++){var $i=le[ie-1],Nu=$i[0],Mi=$i[2],qi=Mi?Mi(Ar[ie],ju):+Ar[ie];if(qi==null)return null;E[Nu]=qi}E.isPm===1&&E.hour!=null&&+E.hour!=12?E.hour=+E.hour+12:E.isPm===0&&+E.hour==12&&(E.hour=0);var Lr;if(E.timezoneOffset==null){Lr=new Date(E.year,E.month,E.day,E.hour,E.minute,E.second,E.millisecond);for(var jr=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],ie=0,Pu=jr.length;ie<Pu;ie++)if(Tr[jr[ie][0]]&&E[jr[ie][0]]!==Lr[jr[ie][1]]())return null}else if(Lr=new Date(Date.UTC(E.year,E.month,E.day,E.hour,E.minute-E.timezoneOffset,E.second,E.millisecond)),E.month>11||E.month<0||E.day>31||E.day<1||E.hour>23||E.hour<0||E.minute>59||E.minute<0||E.second>59||E.second<0)return null;return Lr}var Ie={format:Q,parse:X,defaultI18n:m,setGlobalDateI18n:x,setGlobalDateMasks:B};r.assign=h,r.default=Ie,r.format=Q,r.parse=X,r.defaultI18n=m,r.setGlobalDateI18n=x,r.setGlobalDateMasks=B,Object.defineProperty(r,"__esModule",{value:!0})})});var Va=f((Zg,Ga)=>{"use strict";var Zc=Ya(),Qc=J();Ga.exports=Qc((r,e={})=>(e.format&&(r.timestamp=typeof e.format=="function"?e.format():Zc.format(new Date,e.format)),r.timestamp||(r.timestamp=new Date().toISOString()),e.alias&&(r[e.alias]=r.timestamp),r))});var Ja=f((Qg,Ka)=>{"use strict";var un=Ht(),Xc=J(),{MESSAGE:cn}=k();Ka.exports=Xc((r,e)=>(e.level!==!1&&(r.level=un.strip(r.level)),e.message!==!1&&(r.message=un.strip(String(r.message))),e.raw!==!1&&r[cn]&&(r[cn]=un.strip(String(r[cn]))),r))});var hn=f(fn=>{"use strict";var ef=fn.format=J();fn.levels=fa();function z(r,e){Object.defineProperty(ef,r,{get(){return e()},configurable:!0})}z("align",function(){return da()});z("errors",function(){return ma()});z("cli",function(){return ya()});z("combine",function(){return wa()});z("colorize",function(){return kr()});z("json",function(){return sn()});z("label",function(){return Ma()});z("logstash",function(){return Oa()});z("metadata",function(){return Ta()});z("ms",function(){return Na()});z("padLevels",function(){return Xt()});z("prettyPrint",function(){return Ca()});z("printf",function(){return ka()});z("simple",function(){return Wa()});z("splat",function(){return Ha()});z("timestamp",function(){return Va()});z("uncolorize",function(){return Ja()})});var dn=f(Yr=>{"use strict";var{format:Za}=require("util");Yr.warn={deprecated(r){return()=>{throw new Error(Za("{ %s } was removed in winston@3.0.0.",r))}},useFormat(r){return()=>{throw new Error([Za("{ %s } was removed in winston@3.0.0.",r),"Use a custom winston.format = winston.format(function) instead."].join(`
25
+ `))}},forFunctions(r,e,t){t.forEach(n=>{r[n]=Yr.warn[e](n)})},forProperties(r,e,t){t.forEach(n=>{let i=Yr.warn[e](n);Object.defineProperty(r,n,{get:i,set:i})})}}});var Qa=f((rm,rf)=>{rf.exports={name:"winston",description:"A logger for just about everything.",version:"3.17.0",author:"Charlie Robbins <charlie.robbins@gmail.com>",maintainers:["David Hyde <dabh@alumni.stanford.edu>"],repository:{type:"git",url:"https://github.com/winstonjs/winston.git"},keywords:["winston","logger","logging","logs","sysadmin","bunyan","pino","loglevel","tools","json","stream"],dependencies:{"@dabh/diagnostics":"^2.0.2","@colors/colors":"^1.6.0",async:"^3.2.3","is-stream":"^2.0.0",logform:"^2.7.0","one-time":"^1.0.0","readable-stream":"^3.4.0","safe-stable-stringify":"^2.3.1","stack-trace":"0.0.x","triple-beam":"^1.3.0","winston-transport":"^4.9.0"},devDependencies:{"@babel/cli":"^7.23.9","@babel/core":"^7.24.0","@babel/preset-env":"^7.24.0","@dabh/eslint-config-populist":"^4.4.0","@types/node":"^20.11.24","abstract-winston-transport":"^0.5.1",assume:"^2.2.0","cross-spawn-async":"^2.2.5",eslint:"^8.57.0",hock:"^1.4.1",mocha:"^10.3.0",nyc:"^17.1.0",rimraf:"5.0.1",split2:"^4.1.0","std-mocks":"^2.0.0",through2:"^4.0.2","winston-compat":"^0.1.5"},main:"./lib/winston.js",browser:"./dist/winston",types:"./index.d.ts",scripts:{lint:"eslint lib/*.js lib/winston/*.js lib/winston/**/*.js --resolve-plugins-relative-to ./node_modules/@dabh/eslint-config-populist",test:"rimraf test/fixtures/logs/* && mocha","test:coverage":"nyc npm run test:unit","test:unit":"mocha test/unit","test:integration":"mocha test/integration",build:"rimraf dist && babel lib -d dist",prepublishOnly:"npm run build"},engines:{node:">= 12.0.0"},license:"MIT"}});var eo=f((tm,Xa)=>{Xa.exports=require("util").deprecate});var pn=f((nm,ro)=>{ro.exports=require("stream")});var mn=f((im,no)=>{"use strict";function tf(r,e){var t=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(e?e(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(gn,this,r)):process.nextTick(gn,this,r)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,function(a){!e&&a?t._writableState?t._writableState.errorEmitted?process.nextTick(Gr,t):(t._writableState.errorEmitted=!0,process.nextTick(to,t,a)):process.nextTick(to,t,a):e?(process.nextTick(Gr,t),e(a)):process.nextTick(Gr,t)}),this)}function to(r,e){gn(r,e),Gr(r)}function Gr(r){r._writableState&&!r._writableState.emitClose||r._readableState&&!r._readableState.emitClose||r.emit("close")}function nf(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function gn(r,e){r.emit("error",e)}function af(r,e){var t=r._readableState,n=r._writableState;t&&t.autoDestroy||n&&n.autoDestroy?r.destroy(e):r.emit("error",e)}no.exports={destroy:tf,undestroy:nf,errorOrDestroy:af}});var ve=f((am,oo)=>{"use strict";var ao={};function te(r,e,t){t||(t=Error);function n(a,o,s){return typeof e=="string"?e:e(a,o,s)}class i extends t{constructor(o,s,l){super(n(o,s,l))}}i.prototype.name=t.name,i.prototype.code=r,ao[r]=i}function io(r,e){if(Array.isArray(r)){let t=r.length;return r=r.map(n=>String(n)),t>2?`one of ${e} ${r.slice(0,t-1).join(", ")}, or `+r[t-1]:t===2?`one of ${e} ${r[0]} or ${r[1]}`:`of ${e} ${r[0]}`}else return`of ${e} ${String(r)}`}function of(r,e,t){return r.substr(!t||t<0?0:+t,e.length)===e}function sf(r,e,t){return(t===void 0||t>r.length)&&(t=r.length),r.substring(t-e.length,t)===e}function lf(r,e,t){return typeof t!="number"&&(t=0),t+e.length>r.length?!1:r.indexOf(e,t)!==-1}te("ERR_INVALID_OPT_VALUE",function(r,e){return'The value "'+e+'" is invalid for option "'+r+'"'},TypeError);te("ERR_INVALID_ARG_TYPE",function(r,e,t){let n;typeof e=="string"&&of(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";let i;if(sf(r," argument"))i=`The ${r} ${n} ${io(e,"type")}`;else{let a=lf(r,".")?"property":"argument";i=`The "${r}" ${a} ${n} ${io(e,"type")}`}return i+=`. Received type ${typeof t}`,i},TypeError);te("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");te("ERR_METHOD_NOT_IMPLEMENTED",function(r){return"The "+r+" method is not implemented"});te("ERR_STREAM_PREMATURE_CLOSE","Premature close");te("ERR_STREAM_DESTROYED",function(r){return"Cannot call "+r+" after a stream was destroyed"});te("ERR_MULTIPLE_CALLBACK","Callback called multiple times");te("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");te("ERR_STREAM_WRITE_AFTER_END","write after end");te("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);te("ERR_UNKNOWN_ENCODING",function(r){return"Unknown encoding: "+r},TypeError);te("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");oo.exports.codes=ao});var vn=f((om,so)=>{"use strict";var uf=ve().codes.ERR_INVALID_OPT_VALUE;function cf(r,e,t){return r.highWaterMark!=null?r.highWaterMark:e?r[t]:null}function ff(r,e,t,n){var i=cf(e,n,t);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var a=n?t:"highWaterMark";throw new uf(a,i)}return Math.floor(i)}return r.objectMode?16:16*1024}so.exports={getHighWaterMark:ff}});var lo=f((sm,yn)=>{typeof Object.create=="function"?yn.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:yn.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}});var Ue=f((lm,wn)=>{try{if(bn=require("util"),typeof bn.inherits!="function")throw"";wn.exports=bn.inherits}catch{wn.exports=lo()}var bn});var go=f((um,po)=>{"use strict";function uo(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function co(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?uo(Object(t),!0).forEach(function(n){hf(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):uo(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function hf(r,e,t){return e=ho(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function df(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function fo(r,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,ho(n.key),n)}}function pf(r,e,t){return e&&fo(r.prototype,e),t&&fo(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}function ho(r){var e=gf(r,"string");return typeof e=="symbol"?e:String(e)}function gf(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var mf=require("buffer"),Vr=mf.Buffer,vf=require("util"),_n=vf.inspect,yf=_n&&_n.custom||"inspect";function bf(r,e,t){Vr.prototype.copy.call(r,e,t)}po.exports=function(){function r(){df(this,r),this.head=null,this.tail=null,this.length=0}return pf(r,[{key:"push",value:function(t){var n={data:t,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(t){var n={data:t,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=t+n.data;return i}},{key:"concat",value:function(t){if(this.length===0)return Vr.alloc(0);for(var n=Vr.allocUnsafe(t>>>0),i=this.head,a=0;i;)bf(i.data,n,a),a+=i.data.length,i=i.next;return n}},{key:"consume",value:function(t,n){var i;return t<this.head.data.length?(i=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):t===this.head.data.length?i=this.shift():i=n?this._getString(t):this._getBuffer(t),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var n=this.head,i=1,a=n.data;for(t-=a.length;n=n.next;){var o=n.data,s=t>o.length?o.length:t;if(s===o.length?a+=o:a+=o.slice(0,t),t-=s,t===0){s===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(s));break}++i}return this.length-=i,a}},{key:"_getBuffer",value:function(t){var n=Vr.allocUnsafe(t),i=this.head,a=1;for(i.data.copy(n),t-=i.data.length;i=i.next;){var o=i.data,s=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,s),t-=s,t===0){s===o.length?(++a,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(s));break}++a}return this.length-=a,n}},{key:yf,value:function(t,n){return _n(this,co(co({},n),{},{depth:0,customInspect:!1}))}}]),r}()});var yo=f((xn,vo)=>{var Kr=require("buffer"),ue=Kr.Buffer;function mo(r,e){for(var t in r)e[t]=r[t]}ue.from&&ue.alloc&&ue.allocUnsafe&&ue.allocUnsafeSlow?vo.exports=Kr:(mo(Kr,xn),xn.Buffer=Re);function Re(r,e,t){return ue(r,e,t)}Re.prototype=Object.create(ue.prototype);mo(ue,Re);Re.from=function(r,e,t){if(typeof r=="number")throw new TypeError("Argument must not be a number");return ue(r,e,t)};Re.alloc=function(r,e,t){if(typeof r!="number")throw new TypeError("Argument must be a number");var n=ue(r);return e!==void 0?typeof t=="string"?n.fill(e,t):n.fill(e):n.fill(0),n};Re.allocUnsafe=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return ue(r)};Re.allocUnsafeSlow=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return Kr.SlowBuffer(r)}});var $n=f(wo=>{"use strict";var Sn=yo().Buffer,bo=Sn.isEncoding||function(r){switch(r=""+r,r&&r.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function wf(r){if(!r)return"utf8";for(var e;;)switch(r){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return r;default:if(e)return;r=(""+r).toLowerCase(),e=!0}}function _f(r){var e=wf(r);if(typeof e!="string"&&(Sn.isEncoding===bo||!bo(r)))throw new Error("Unknown encoding: "+r);return e||r}wo.StringDecoder=sr;function sr(r){this.encoding=_f(r);var e;switch(this.encoding){case"utf16le":this.text=qf,this.end=Of,e=4;break;case"utf8":this.fillLast=Sf,e=4;break;case"base64":this.text=Rf,this.end=Tf,e=3;break;default:this.write=Af,this.end=Lf;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Sn.allocUnsafe(e)}sr.prototype.write=function(r){if(r.length===0)return"";var e,t;if(this.lastNeed){if(e=this.fillLast(r),e===void 0)return"";t=this.lastNeed,this.lastNeed=0}else t=0;return t<r.length?e?e+this.text(r,t):this.text(r,t):e||""};sr.prototype.end=Mf;sr.prototype.text=$f;sr.prototype.fillLast=function(r){if(this.lastNeed<=r.length)return r.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,this.lastTotal-this.lastNeed,0,r.length),this.lastNeed-=r.length};function En(r){return r<=127?0:r>>5===6?2:r>>4===14?3:r>>3===30?4:r>>6===2?-1:-2}function xf(r,e,t){var n=e.length-1;if(n<t)return 0;var i=En(e[n]);return i>=0?(i>0&&(r.lastNeed=i-1),i):--n<t||i===-2?0:(i=En(e[n]),i>=0?(i>0&&(r.lastNeed=i-2),i):--n<t||i===-2?0:(i=En(e[n]),i>=0?(i>0&&(i===2?i=0:r.lastNeed=i-3),i):0))}function Ef(r,e,t){if((e[0]&192)!==128)return r.lastNeed=0,"\uFFFD";if(r.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return r.lastNeed=1,"\uFFFD";if(r.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return r.lastNeed=2,"\uFFFD"}}function Sf(r){var e=this.lastTotal-this.lastNeed,t=Ef(this,r,e);if(t!==void 0)return t;if(this.lastNeed<=r.length)return r.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,e,0,r.length),this.lastNeed-=r.length}function $f(r,e){var t=xf(this,r,e);if(!this.lastNeed)return r.toString("utf8",e);this.lastTotal=t;var n=r.length-(t-this.lastNeed);return r.copy(this.lastChar,0,n),r.toString("utf8",e,n)}function Mf(r){var e=r&&r.length?this.write(r):"";return this.lastNeed?e+"\uFFFD":e}function qf(r,e){if((r.length-e)%2===0){var t=r.toString("utf16le",e);if(t){var n=t.charCodeAt(t.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=r[r.length-1],r.toString("utf16le",e,r.length-1)}function Of(r){var e=r&&r.length?this.write(r):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,t)}return e}function Rf(r,e){var t=(r.length-e)%3;return t===0?r.toString("base64",e):(this.lastNeed=3-t,this.lastTotal=3,t===1?this.lastChar[0]=r[r.length-1]:(this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1]),r.toString("base64",e,r.length-t))}function Tf(r){var e=r&&r.length?this.write(r):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function Af(r){return r.toString(this.encoding)}function Lf(r){return r&&r.length?this.write(r):""}});var Jr=f((fm,Eo)=>{"use strict";var _o=ve().codes.ERR_STREAM_PREMATURE_CLOSE;function jf(r){var e=!1;return function(){if(!e){e=!0;for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];r.apply(this,n)}}}function Nf(){}function Pf(r){return r.setHeader&&typeof r.abort=="function"}function xo(r,e,t){if(typeof e=="function")return xo(r,null,e);e||(e={}),t=jf(t||Nf);var n=e.readable||e.readable!==!1&&r.readable,i=e.writable||e.writable!==!1&&r.writable,a=function(){r.writable||s()},o=r._writableState&&r._writableState.finished,s=function(){i=!1,o=!0,n||t.call(r)},l=r._readableState&&r._readableState.endEmitted,u=function(){n=!1,l=!0,i||t.call(r)},h=function(c){t.call(r,c)},g=function(){var c;if(n&&!l)return(!r._readableState||!r._readableState.ended)&&(c=new _o),t.call(r,c);if(i&&!o)return(!r._writableState||!r._writableState.ended)&&(c=new _o),t.call(r,c)},d=function(){r.req.on("finish",s)};return Pf(r)?(r.on("complete",s),r.on("abort",g),r.req?d():r.on("request",d)):i&&!r._writableState&&(r.on("end",a),r.on("close",a)),r.on("end",u),r.on("finish",s),e.error!==!1&&r.on("error",h),r.on("close",g),function(){r.removeListener("complete",s),r.removeListener("abort",g),r.removeListener("request",d),r.req&&r.req.removeListener("finish",s),r.removeListener("end",a),r.removeListener("close",a),r.removeListener("finish",s),r.removeListener("end",u),r.removeListener("error",h),r.removeListener("close",g)}}Eo.exports=xo});var $o=f((hm,So)=>{"use strict";var Zr;function ye(r,e,t){return e=Df(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Df(r){var e=Cf(r,"string");return typeof e=="symbol"?e:String(e)}function Cf(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var kf=Jr(),be=Symbol("lastResolve"),Te=Symbol("lastReject"),lr=Symbol("error"),Qr=Symbol("ended"),Ae=Symbol("lastPromise"),Mn=Symbol("handlePromise"),Le=Symbol("stream");function we(r,e){return{value:r,done:e}}function If(r){var e=r[be];if(e!==null){var t=r[Le].read();t!==null&&(r[Ae]=null,r[be]=null,r[Te]=null,e(we(t,!1)))}}function Ff(r){process.nextTick(If,r)}function Wf(r,e){return function(t,n){r.then(function(){if(e[Qr]){t(we(void 0,!0));return}e[Mn](t,n)},n)}}var Bf=Object.getPrototypeOf(function(){}),zf=Object.setPrototypeOf((Zr={get stream(){return this[Le]},next:function(){var e=this,t=this[lr];if(t!==null)return Promise.reject(t);if(this[Qr])return Promise.resolve(we(void 0,!0));if(this[Le].destroyed)return new Promise(function(o,s){process.nextTick(function(){e[lr]?s(e[lr]):o(we(void 0,!0))})});var n=this[Ae],i;if(n)i=new Promise(Wf(n,this));else{var a=this[Le].read();if(a!==null)return Promise.resolve(we(a,!1));i=new Promise(this[Mn])}return this[Ae]=i,i}},ye(Zr,Symbol.asyncIterator,function(){return this}),ye(Zr,"return",function(){var e=this;return new Promise(function(t,n){e[Le].destroy(null,function(i){if(i){n(i);return}t(we(void 0,!0))})})}),Zr),Bf),Hf=function(e){var t,n=Object.create(zf,(t={},ye(t,Le,{value:e,writable:!0}),ye(t,be,{value:null,writable:!0}),ye(t,Te,{value:null,writable:!0}),ye(t,lr,{value:null,writable:!0}),ye(t,Qr,{value:e._readableState.endEmitted,writable:!0}),ye(t,Mn,{value:function(a,o){var s=n[Le].read();s?(n[Ae]=null,n[be]=null,n[Te]=null,a(we(s,!1))):(n[be]=a,n[Te]=o)},writable:!0}),t));return n[Ae]=null,kf(e,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=n[Te];a!==null&&(n[Ae]=null,n[be]=null,n[Te]=null,a(i)),n[lr]=i;return}var o=n[be];o!==null&&(n[Ae]=null,n[be]=null,n[Te]=null,o(we(void 0,!0))),n[Qr]=!0}),e.on("readable",Ff.bind(null,n)),n};So.exports=Hf});var Ro=f((dm,Oo)=>{"use strict";function Mo(r,e,t,n,i,a,o){try{var s=r[a](o),l=s.value}catch(u){t(u);return}s.done?e(l):Promise.resolve(l).then(n,i)}function Uf(r){return function(){var e=this,t=arguments;return new Promise(function(n,i){var a=r.apply(e,t);function o(l){Mo(a,n,i,o,s,"next",l)}function s(l){Mo(a,n,i,o,s,"throw",l)}o(void 0)})}}function qo(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function Yf(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?qo(Object(t),!0).forEach(function(n){Gf(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):qo(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function Gf(r,e,t){return e=Vf(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Vf(r){var e=Kf(r,"string");return typeof e=="symbol"?e:String(e)}function Kf(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var Jf=ve().codes.ERR_INVALID_ARG_TYPE;function Zf(r,e,t){var n;if(e&&typeof e.next=="function")n=e;else if(e&&e[Symbol.asyncIterator])n=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])n=e[Symbol.iterator]();else throw new Jf("iterable",["Iterable"],e);var i=new r(Yf({objectMode:!0},t)),a=!1;i._read=function(){a||(a=!0,o())};function o(){return s.apply(this,arguments)}function s(){return s=Uf(function*(){try{var l=yield n.next(),u=l.value,h=l.done;h?i.push(null):i.push(yield u)?o():a=!1}catch(g){i.destroy(g)}}),s.apply(this,arguments)}return i}Oo.exports=Zf});var Dn=f((gm,Io)=>{"use strict";Io.exports=R;var Ye;R.ReadableState=jo;var pm=require("events").EventEmitter,Lo=function(e,t){return e.listeners(t).length},cr=pn(),Xr=require("buffer").Buffer,Qf=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Xf(r){return Xr.from(r)}function eh(r){return Xr.isBuffer(r)||r instanceof Qf}var qn=require("util"),$;qn&&qn.debuglog?$=qn.debuglog("stream"):$=function(){};var rh=go(),Nn=mn(),th=vn(),nh=th.getHighWaterMark,et=ve().codes,ih=et.ERR_INVALID_ARG_TYPE,ah=et.ERR_STREAM_PUSH_AFTER_EOF,oh=et.ERR_METHOD_NOT_IMPLEMENTED,sh=et.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Ge,On,Rn;Ue()(R,cr);var ur=Nn.errorOrDestroy,Tn=["error","close","destroy","pause","resume"];function lh(r,e,t){if(typeof r.prependListener=="function")return r.prependListener(e,t);!r._events||!r._events[e]?r.on(e,t):Array.isArray(r._events[e])?r._events[e].unshift(t):r._events[e]=[t,r._events[e]]}function jo(r,e,t){Ye=Ye||je(),r=r||{},typeof t!="boolean"&&(t=e instanceof Ye),this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.readableObjectMode),this.highWaterMark=nh(this,r,"readableHighWaterMark",t),this.buffer=new rh,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=r.emitClose!==!1,this.autoDestroy=!!r.autoDestroy,this.destroyed=!1,this.defaultEncoding=r.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,r.encoding&&(Ge||(Ge=$n().StringDecoder),this.decoder=new Ge(r.encoding),this.encoding=r.encoding)}function R(r){if(Ye=Ye||je(),!(this instanceof R))return new R(r);var e=this instanceof Ye;this._readableState=new jo(r,this,e),this.readable=!0,r&&(typeof r.read=="function"&&(this._read=r.read),typeof r.destroy=="function"&&(this._destroy=r.destroy)),cr.call(this)}Object.defineProperty(R.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});R.prototype.destroy=Nn.destroy;R.prototype._undestroy=Nn.undestroy;R.prototype._destroy=function(r,e){e(r)};R.prototype.push=function(r,e){var t=this._readableState,n;return t.objectMode?n=!0:typeof r=="string"&&(e=e||t.defaultEncoding,e!==t.encoding&&(r=Xr.from(r,e),e=""),n=!0),No(this,r,e,!1,n)};R.prototype.unshift=function(r){return No(this,r,null,!0,!1)};function No(r,e,t,n,i){$("readableAddChunk",e);var a=r._readableState;if(e===null)a.reading=!1,fh(r,a);else{var o;if(i||(o=uh(a,e)),o)ur(r,o);else if(a.objectMode||e&&e.length>0)if(typeof e!="string"&&!a.objectMode&&Object.getPrototypeOf(e)!==Xr.prototype&&(e=Xf(e)),n)a.endEmitted?ur(r,new sh):An(r,a,e,!0);else if(a.ended)ur(r,new ah);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!t?(e=a.decoder.write(e),a.objectMode||e.length!==0?An(r,a,e,!1):jn(r,a)):An(r,a,e,!1)}else n||(a.reading=!1,jn(r,a))}return!a.ended&&(a.length<a.highWaterMark||a.length===0)}function An(r,e,t,n){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,r.emit("data",t)):(e.length+=e.objectMode?1:t.length,n?e.buffer.unshift(t):e.buffer.push(t),e.needReadable&&rt(r)),jn(r,e)}function uh(r,e){var t;return!eh(e)&&typeof e!="string"&&e!==void 0&&!r.objectMode&&(t=new ih("chunk",["string","Buffer","Uint8Array"],e)),t}R.prototype.isPaused=function(){return this._readableState.flowing===!1};R.prototype.setEncoding=function(r){Ge||(Ge=$n().StringDecoder);var e=new Ge(r);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var t=this._readableState.buffer.head,n="";t!==null;)n+=e.write(t.data),t=t.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var To=1073741824;function ch(r){return r>=To?r=To:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r}function Ao(r,e){return r<=0||e.length===0&&e.ended?0:e.objectMode?1:r!==r?e.flowing&&e.length?e.buffer.head.data.length:e.length:(r>e.highWaterMark&&(e.highWaterMark=ch(r)),r<=e.length?r:e.ended?e.length:(e.needReadable=!0,0))}R.prototype.read=function(r){$("read",r),r=parseInt(r,10);var e=this._readableState,t=r;if(r!==0&&(e.emittedReadable=!1),r===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return $("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Ln(this):rt(this),null;if(r=Ao(r,e),r===0&&e.ended)return e.length===0&&Ln(this),null;var n=e.needReadable;$("need readable",n),(e.length===0||e.length-r<e.highWaterMark)&&(n=!0,$("length less than watermark",n)),e.ended||e.reading?(n=!1,$("reading or ended",n)):n&&($("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(r=Ao(t,e)));var i;return r>0?i=Co(r,e):i=null,i===null?(e.needReadable=e.length<=e.highWaterMark,r=0):(e.length-=r,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),t!==r&&e.ended&&Ln(this)),i!==null&&this.emit("data",i),i};function fh(r,e){if($("onEofChunk"),!e.ended){if(e.decoder){var t=e.decoder.end();t&&t.length&&(e.buffer.push(t),e.length+=e.objectMode?1:t.length)}e.ended=!0,e.sync?rt(r):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,Po(r)))}}function rt(r){var e=r._readableState;$("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||($("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(Po,r))}function Po(r){var e=r._readableState;$("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(r.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,Pn(r)}function jn(r,e){e.readingMore||(e.readingMore=!0,process.nextTick(hh,r,e))}function hh(r,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var t=e.length;if($("maybeReadMore read 0"),r.read(0),t===e.length)break}e.readingMore=!1}R.prototype._read=function(r){ur(this,new oh("_read()"))};R.prototype.pipe=function(r,e){var t=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=r;break;case 1:n.pipes=[n.pipes,r];break;default:n.pipes.push(r);break}n.pipesCount+=1,$("pipe count=%d opts=%j",n.pipesCount,e);var i=(!e||e.end!==!1)&&r!==process.stdout&&r!==process.stderr,a=i?s:m;n.endEmitted?process.nextTick(a):t.once("end",a),r.on("unpipe",o);function o(_,x){$("onunpipe"),_===t&&x&&x.hasUnpiped===!1&&(x.hasUnpiped=!0,h())}function s(){$("onend"),r.end()}var l=dh(t);r.on("drain",l);var u=!1;function h(){$("cleanup"),r.removeListener("close",v),r.removeListener("finish",c),r.removeListener("drain",l),r.removeListener("error",d),r.removeListener("unpipe",o),t.removeListener("end",s),t.removeListener("end",m),t.removeListener("data",g),u=!0,n.awaitDrain&&(!r._writableState||r._writableState.needDrain)&&l()}t.on("data",g);function g(_){$("ondata");var x=r.write(_);$("dest.write",x),x===!1&&((n.pipesCount===1&&n.pipes===r||n.pipesCount>1&&ko(n.pipes,r)!==-1)&&!u&&($("false write response, pause",n.awaitDrain),n.awaitDrain++),t.pause())}function d(_){$("onerror",_),m(),r.removeListener("error",d),Lo(r,"error")===0&&ur(r,_)}lh(r,"error",d);function v(){r.removeListener("finish",c),m()}r.once("close",v);function c(){$("onfinish"),r.removeListener("close",v),m()}r.once("finish",c);function m(){$("unpipe"),t.unpipe(r)}return r.emit("pipe",t),n.flowing||($("pipe resume"),t.resume()),r};function dh(r){return function(){var t=r._readableState;$("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&Lo(r,"data")&&(t.flowing=!0,Pn(r))}}R.prototype.unpipe=function(r){var e=this._readableState,t={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return r&&r!==e.pipes?this:(r||(r=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,r&&r.emit("unpipe",this,t),this);if(!r){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var a=0;a<i;a++)n[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=ko(e.pipes,r);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),r.emit("unpipe",this,t),this)};R.prototype.on=function(r,e){var t=cr.prototype.on.call(this,r,e),n=this._readableState;return r==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):r==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,$("on readable",n.length,n.reading),n.length?rt(this):n.reading||process.nextTick(ph,this)),t};R.prototype.addListener=R.prototype.on;R.prototype.removeListener=function(r,e){var t=cr.prototype.removeListener.call(this,r,e);return r==="readable"&&process.nextTick(Do,this),t};R.prototype.removeAllListeners=function(r){var e=cr.prototype.removeAllListeners.apply(this,arguments);return(r==="readable"||r===void 0)&&process.nextTick(Do,this),e};function Do(r){var e=r._readableState;e.readableListening=r.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:r.listenerCount("data")>0&&r.resume()}function ph(r){$("readable nexttick read 0"),r.read(0)}R.prototype.resume=function(){var r=this._readableState;return r.flowing||($("resume"),r.flowing=!r.readableListening,gh(this,r)),r.paused=!1,this};function gh(r,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(mh,r,e))}function mh(r,e){$("resume",e.reading),e.reading||r.read(0),e.resumeScheduled=!1,r.emit("resume"),Pn(r),e.flowing&&!e.reading&&r.read(0)}R.prototype.pause=function(){return $("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&($("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Pn(r){var e=r._readableState;for($("flow",e.flowing);e.flowing&&r.read()!==null;);}R.prototype.wrap=function(r){var e=this,t=this._readableState,n=!1;r.on("end",function(){if($("wrapped end"),t.decoder&&!t.ended){var o=t.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),r.on("data",function(o){if($("wrapped data"),t.decoder&&(o=t.decoder.write(o)),!(t.objectMode&&o==null)&&!(!t.objectMode&&(!o||!o.length))){var s=e.push(o);s||(n=!0,r.pause())}});for(var i in r)this[i]===void 0&&typeof r[i]=="function"&&(this[i]=function(s){return function(){return r[s].apply(r,arguments)}}(i));for(var a=0;a<Tn.length;a++)r.on(Tn[a],this.emit.bind(this,Tn[a]));return this._read=function(o){$("wrapped _read",o),n&&(n=!1,r.resume())},this};typeof Symbol=="function"&&(R.prototype[Symbol.asyncIterator]=function(){return On===void 0&&(On=$o()),On(this)});Object.defineProperty(R.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(R.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(R.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});R._fromList=Co;Object.defineProperty(R.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Co(r,e){if(e.length===0)return null;var t;return e.objectMode?t=e.buffer.shift():!r||r>=e.length?(e.decoder?t=e.buffer.join(""):e.buffer.length===1?t=e.buffer.first():t=e.buffer.concat(e.length),e.buffer.clear()):t=e.buffer.consume(r,e.decoder),t}function Ln(r){var e=r._readableState;$("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(vh,e,r))}function vh(r,e){if($("endReadableNT",r.endEmitted,r.length),!r.endEmitted&&r.length===0&&(r.endEmitted=!0,e.readable=!1,e.emit("end"),r.autoDestroy)){var t=e._writableState;(!t||t.autoDestroy&&t.finished)&&e.destroy()}}typeof Symbol=="function"&&(R.from=function(r,e){return Rn===void 0&&(Rn=Ro()),Rn(R,r,e)});function ko(r,e){for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t;return-1}});var je=f((mm,Wo)=>{"use strict";var yh=Object.keys||function(r){var e=[];for(var t in r)e.push(t);return e};Wo.exports=ce;var Fo=Dn(),kn=it();Ue()(ce,Fo);for(Cn=yh(kn.prototype),tt=0;tt<Cn.length;tt++)nt=Cn[tt],ce.prototype[nt]||(ce.prototype[nt]=kn.prototype[nt]);var Cn,nt,tt;function ce(r){if(!(this instanceof ce))return new ce(r);Fo.call(this,r),kn.call(this,r),this.allowHalfOpen=!0,r&&(r.readable===!1&&(this.readable=!1),r.writable===!1&&(this.writable=!1),r.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",bh)))}Object.defineProperty(ce.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(ce.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(ce.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function bh(){this._writableState.ended||process.nextTick(wh,this)}function wh(r){r.end()}Object.defineProperty(ce.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var it=f((vm,Go)=>{"use strict";Go.exports=D;function zo(r){var e=this;this.next=null,this.entry=null,this.finish=function(){Gh(e,r)}}var Ve;D.WritableState=hr;var _h={deprecate:eo()},Ho=pn(),ot=require("buffer").Buffer,xh=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Eh(r){return ot.from(r)}function Sh(r){return ot.isBuffer(r)||r instanceof xh}var Fn=mn(),$h=vn(),Mh=$h.getHighWaterMark,_e=ve().codes,qh=_e.ERR_INVALID_ARG_TYPE,Oh=_e.ERR_METHOD_NOT_IMPLEMENTED,Rh=_e.ERR_MULTIPLE_CALLBACK,Th=_e.ERR_STREAM_CANNOT_PIPE,Ah=_e.ERR_STREAM_DESTROYED,Lh=_e.ERR_STREAM_NULL_VALUES,jh=_e.ERR_STREAM_WRITE_AFTER_END,Nh=_e.ERR_UNKNOWN_ENCODING,Ke=Fn.errorOrDestroy;Ue()(D,Ho);function Ph(){}function hr(r,e,t){Ve=Ve||je(),r=r||{},typeof t!="boolean"&&(t=e instanceof Ve),this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.writableObjectMode),this.highWaterMark=Mh(this,r,"writableHighWaterMark",t),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=r.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=r.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){Bh(e,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=r.emitClose!==!1,this.autoDestroy=!!r.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new zo(this)}hr.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};(function(){try{Object.defineProperty(hr.prototype,"buffer",{get:_h.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var at;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(at=Function.prototype[Symbol.hasInstance],Object.defineProperty(D,Symbol.hasInstance,{value:function(e){return at.call(this,e)?!0:this!==D?!1:e&&e._writableState instanceof hr}})):at=function(e){return e instanceof this};function D(r){Ve=Ve||je();var e=this instanceof Ve;if(!e&&!at.call(D,this))return new D(r);this._writableState=new hr(r,this,e),this.writable=!0,r&&(typeof r.write=="function"&&(this._write=r.write),typeof r.writev=="function"&&(this._writev=r.writev),typeof r.destroy=="function"&&(this._destroy=r.destroy),typeof r.final=="function"&&(this._final=r.final)),Ho.call(this)}D.prototype.pipe=function(){Ke(this,new Th)};function Dh(r,e){var t=new jh;Ke(r,t),process.nextTick(e,t)}function Ch(r,e,t,n){var i;return t===null?i=new Lh:typeof t!="string"&&!e.objectMode&&(i=new qh("chunk",["string","Buffer"],t)),i?(Ke(r,i),process.nextTick(n,i),!1):!0}D.prototype.write=function(r,e,t){var n=this._writableState,i=!1,a=!n.objectMode&&Sh(r);return a&&!ot.isBuffer(r)&&(r=Eh(r)),typeof e=="function"&&(t=e,e=null),a?e="buffer":e||(e=n.defaultEncoding),typeof t!="function"&&(t=Ph),n.ending?Dh(this,t):(a||Ch(this,n,r,t))&&(n.pendingcb++,i=Ih(this,n,a,r,e,t)),i};D.prototype.cork=function(){this._writableState.corked++};D.prototype.uncork=function(){var r=this._writableState;r.corked&&(r.corked--,!r.writing&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Uo(this,r))};D.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new Nh(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(D.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function kh(r,e,t){return!r.objectMode&&r.decodeStrings!==!1&&typeof e=="string"&&(e=ot.from(e,t)),e}Object.defineProperty(D.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Ih(r,e,t,n,i,a){if(!t){var o=kh(e,n,i);n!==o&&(t=!0,i="buffer",n=o)}var s=e.objectMode?1:n.length;e.length+=s;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:t,callback:a,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else In(r,e,!1,s,n,i,a);return l}function In(r,e,t,n,i,a,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new Ah("write")):t?r._writev(i,e.onwrite):r._write(i,a,e.onwrite),e.sync=!1}function Fh(r,e,t,n,i){--e.pendingcb,t?(process.nextTick(i,n),process.nextTick(fr,r,e),r._writableState.errorEmitted=!0,Ke(r,n)):(i(n),r._writableState.errorEmitted=!0,Ke(r,n),fr(r,e))}function Wh(r){r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0}function Bh(r,e){var t=r._writableState,n=t.sync,i=t.writecb;if(typeof i!="function")throw new Rh;if(Wh(t),e)Fh(r,t,n,e,i);else{var a=Yo(t)||r.destroyed;!a&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Uo(r,t),n?process.nextTick(Bo,r,t,a,i):Bo(r,t,a,i)}}function Bo(r,e,t,n){t||zh(r,e),e.pendingcb--,n(),fr(r,e)}function zh(r,e){e.length===0&&e.needDrain&&(e.needDrain=!1,r.emit("drain"))}function Uo(r,e){e.bufferProcessing=!0;var t=e.bufferedRequest;if(r._writev&&t&&t.next){var n=e.bufferedRequestCount,i=new Array(n),a=e.corkedRequestsFree;a.entry=t;for(var o=0,s=!0;t;)i[o]=t,t.isBuf||(s=!1),t=t.next,o+=1;i.allBuffers=s,In(r,e,!0,e.length,i,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new zo(e),e.bufferedRequestCount=0}else{for(;t;){var l=t.chunk,u=t.encoding,h=t.callback,g=e.objectMode?1:l.length;if(In(r,e,!1,g,l,u,h),t=t.next,e.bufferedRequestCount--,e.writing)break}t===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=t,e.bufferProcessing=!1}D.prototype._write=function(r,e,t){t(new Oh("_write()"))};D.prototype._writev=null;D.prototype.end=function(r,e,t){var n=this._writableState;return typeof r=="function"?(t=r,r=null,e=null):typeof e=="function"&&(t=e,e=null),r!=null&&this.write(r,e),n.corked&&(n.corked=1,this.uncork()),n.ending||Yh(this,n,t),this};Object.defineProperty(D.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Yo(r){return r.ending&&r.length===0&&r.bufferedRequest===null&&!r.finished&&!r.writing}function Hh(r,e){r._final(function(t){e.pendingcb--,t&&Ke(r,t),e.prefinished=!0,r.emit("prefinish"),fr(r,e)})}function Uh(r,e){!e.prefinished&&!e.finalCalled&&(typeof r._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(Hh,r,e)):(e.prefinished=!0,r.emit("prefinish")))}function fr(r,e){var t=Yo(e);if(t&&(Uh(r,e),e.pendingcb===0&&(e.finished=!0,r.emit("finish"),e.autoDestroy))){var n=r._readableState;(!n||n.autoDestroy&&n.endEmitted)&&r.destroy()}return t}function Yh(r,e,t){e.ending=!0,fr(r,e),t&&(e.finished?process.nextTick(t):r.once("finish",t)),e.ended=!0,r.writable=!1}function Gh(r,e,t){var n=r.entry;for(r.entry=null;n;){var i=n.callback;e.pendingcb--,i(t),n=n.next}e.corkedRequestsFree.next=r}Object.defineProperty(D.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});D.prototype.destroy=Fn.destroy;D.prototype._undestroy=Fn.undestroy;D.prototype._destroy=function(r,e){e(r)}});var Wn=f((ym,Jo)=>{"use strict";var Vh=require("util"),Vo=it(),{LEVEL:Ko}=k(),dr=Jo.exports=function(e={}){Vo.call(this,{objectMode:!0,highWaterMark:e.highWaterMark}),this.format=e.format,this.level=e.level,this.handleExceptions=e.handleExceptions,this.handleRejections=e.handleRejections,this.silent=e.silent,e.log&&(this.log=e.log),e.logv&&(this.logv=e.logv),e.close&&(this.close=e.close),this.once("pipe",t=>{this.levels=t.levels,this.parent=t}),this.once("unpipe",t=>{t===this.parent&&(this.parent=null,this.close&&this.close())})};Vh.inherits(dr,Vo);dr.prototype._write=function(e,t,n){if(this.silent||e.exception===!0&&!this.handleExceptions)return n(null);let i=this.level||this.parent&&this.parent.level;if(!i||this.levels[i]>=this.levels[e[Ko]]){if(e&&!this.format)return this.log(e,n);let a,o;try{o=this.format.transform(Object.assign({},e),this.format.options)}catch(s){a=s}if(a||!o){if(n(),a)throw a;return}return this.log(o,n)}return this._writableState.sync=!1,n(null)};dr.prototype._writev=function(e,t){if(this.logv){let n=e.filter(this._accept,this);return n.length?this.logv(n,t):t(null)}for(let n=0;n<e.length;n++){if(!this._accept(e[n]))continue;if(e[n].chunk&&!this.format){this.log(e[n].chunk,e[n].callback);continue}let i,a;try{a=this.format.transform(Object.assign({},e[n].chunk),this.format.options)}catch(o){i=o}if(i||!a){if(e[n].callback(),i)throw t(null),i}else this.log(a,e[n].callback)}return t(null)};dr.prototype._accept=function(e){let t=e.chunk;if(this.silent)return!1;let n=this.level||this.parent&&this.parent.level;return!!((t.exception===!0||!n||this.levels[n]>=this.levels[t[Ko]])&&(this.handleExceptions||t.exception!==!0))};dr.prototype._nop=function(){}});var zn=f((bm,Qo)=>{"use strict";var Kh=require("util"),{LEVEL:Bn}=k(),Zo=Wn(),pr=Qo.exports=function(e={}){if(Zo.call(this,e),!e.transport||typeof e.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");this.transport=e.transport,this.level=this.level||e.transport.level,this.handleExceptions=this.handleExceptions||e.transport.handleExceptions,this._deprecated();function t(n){this.emit("error",n,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=t.bind(this),this.transport.on("error",this.transport.__winstonError))};Kh.inherits(pr,Zo);pr.prototype._write=function(e,t,n){if(this.silent||e.exception===!0&&!this.handleExceptions)return n(null);(!this.level||this.levels[this.level]>=this.levels[e[Bn]])&&this.transport.log(e[Bn],e.message,e,this._nop),n(null)};pr.prototype._writev=function(e,t){for(let n=0;n<e.length;n++)this._accept(e[n])&&(this.transport.log(e[n].chunk[Bn],e[n].chunk.message,e[n].chunk,this._nop),e[n].callback());return t(null)};pr.prototype._deprecated=function(){console.error([`${this.transport.name} is a legacy winston transport. Consider upgrading: `,"- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md"].join(`
26
+ `))};pr.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)}});var Je=f((wm,Hn)=>{"use strict";Hn.exports=Wn();Hn.exports.LegacyTransportStream=zn()});var rs=f((xm,es)=>{"use strict";var Jh=require("os"),{LEVEL:Xo,MESSAGE:Ze}=k(),Zh=Je();es.exports=class extends Zh{constructor(e={}){super(e),this.name=e.name||"console",this.stderrLevels=this._stringArrayToSet(e.stderrLevels),this.consoleWarnLevels=this._stringArrayToSet(e.consoleWarnLevels),this.eol=typeof e.eol=="string"?e.eol:Jh.EOL,this.forceConsole=e.forceConsole||!1,this._consoleLog=console.log.bind(console),this._consoleWarn=console.warn.bind(console),this._consoleError=console.error.bind(console),this.setMaxListeners(30)}log(e,t){if(setImmediate(()=>this.emit("logged",e)),this.stderrLevels[e[Xo]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[Ze]}${this.eol}`):this._consoleError(e[Ze]),t&&t();return}else if(this.consoleWarnLevels[e[Xo]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[Ze]}${this.eol}`):this._consoleWarn(e[Ze]),t&&t();return}console._stdout&&!this.forceConsole?console._stdout.write(`${e[Ze]}${this.eol}`):this._consoleLog(e[Ze]),t&&t()}_stringArrayToSet(e,t){if(!e)return{};if(t=t||"Cannot make set from type other than Array of string elements",!Array.isArray(e))throw new Error(t);return e.reduce((n,i)=>{if(typeof i!="string")throw new Error(t);return n[i]=!0,n},{})}}});var lt=f((st,ts)=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.default=Qh;function Qh(r){return r&&typeof r.length=="number"&&r.length>=0&&r.length%1===0}ts.exports=st.default});var is=f((ut,ns)=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.default=function(r){return function(...e){var t=e.pop();return r.call(this,e,t)}};ns.exports=ut.default});var ss=f(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.fallback=as;xe.wrap=os;var Xh=xe.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,ed=xe.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,rd=xe.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function as(r){setTimeout(r,0)}function os(r){return(e,...t)=>r(()=>e(...t))}var gr;Xh?gr=queueMicrotask:ed?gr=setImmediate:rd?gr=process.nextTick:gr=as;xe.default=os(gr)});var hs=f((ct,fs)=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.default=sd;var td=is(),nd=cs(td),id=ss(),ad=cs(id),od=Ne();function cs(r){return r&&r.__esModule?r:{default:r}}function sd(r){return(0,od.isAsync)(r)?function(...e){let t=e.pop(),n=r.apply(this,e);return ls(n,t)}:(0,nd.default)(function(e,t){var n;try{n=r.apply(this,e)}catch(i){return t(i)}if(n&&typeof n.then=="function")return ls(n,t);t(null,n)})}function ls(r,e){return r.then(t=>{us(e,null,t)},t=>{us(e,t&&(t instanceof Error||t.message)?t:new Error(t))})}function us(r,e,t){try{r(e,t)}catch(n){(0,ad.default)(i=>{throw i},n)}}fs.exports=ct.default});var Ne=f(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.isAsyncIterable=pe.isAsyncGenerator=pe.isAsync=void 0;var ld=hs(),ud=cd(ld);function cd(r){return r&&r.__esModule?r:{default:r}}function ds(r){return r[Symbol.toStringTag]==="AsyncFunction"}function fd(r){return r[Symbol.toStringTag]==="AsyncGenerator"}function hd(r){return typeof r[Symbol.asyncIterator]=="function"}function dd(r){if(typeof r!="function")throw new Error("expected a function");return ds(r)?(0,ud.default)(r):r}pe.default=dd;pe.isAsync=ds;pe.isAsyncGenerator=fd;pe.isAsyncIterable=hd});var Qe=f((ft,ps)=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.default=pd;function pd(r,e){if(e||(e=r.length),!e)throw new Error("arity is undefined");function t(...n){return typeof n[e-1]=="function"?r.apply(this,n):new Promise((i,a)=>{n[e-1]=(o,...s)=>{if(o)return a(o);i(s.length>1?s:s[0])},r.apply(this,n)})}return t}ps.exports=ft.default});var ms=f((ht,gs)=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});var gd=lt(),md=Un(gd),vd=Ne(),yd=Un(vd),bd=Qe(),wd=Un(bd);function Un(r){return r&&r.__esModule?r:{default:r}}ht.default=(0,wd.default)((r,e,t)=>{var n=(0,md.default)(e)?[]:{};r(e,(i,a,o)=>{(0,yd.default)(i)((s,...l)=>{l.length<2&&([l]=l),n[a]=l,o(s)})},i=>t(i,n))},3);gs.exports=ht.default});var Yn=f((dt,vs)=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.default=_d;function _d(r){function e(...t){if(r!==null){var n=r;r=null,n.apply(this,t)}}return Object.assign(e,r),e}vs.exports=dt.default});var bs=f((pt,ys)=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.default=function(r){return r[Symbol.iterator]&&r[Symbol.iterator]()};ys.exports=pt.default});var xs=f((gt,_s)=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.default=Rd;var xd=lt(),Ed=ws(xd),Sd=bs(),$d=ws(Sd);function ws(r){return r&&r.__esModule?r:{default:r}}function Md(r){var e=-1,t=r.length;return function(){return++e<t?{value:r[e],key:e}:null}}function qd(r){var e=-1;return function(){var n=r.next();return n.done?null:(e++,{value:n.value,key:e})}}function Od(r){var e=r?Object.keys(r):[],t=-1,n=e.length;return function i(){var a=e[++t];return a==="__proto__"?i():t<n?{value:r[a],key:a}:null}}function Rd(r){if((0,Ed.default)(r))return Md(r);var e=(0,$d.default)(r);return e?qd(e):Od(r)}_s.exports=gt.default});var Gn=f((mt,Es)=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.default=Td;function Td(r){return function(...e){if(r===null)throw new Error("Callback was already called.");var t=r;r=null,t.apply(this,e)}}Es.exports=mt.default});var yt=f((vt,Ss)=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});var Ad={};vt.default=Ad;Ss.exports=vt.default});var Ms=f((bt,$s)=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.default=Pd;var Ld=yt(),jd=Nd(Ld);function Nd(r){return r&&r.__esModule?r:{default:r}}function Pd(r,e,t,n){let i=!1,a=!1,o=!1,s=0,l=0;function u(){s>=e||o||i||(o=!0,r.next().then(({value:d,done:v})=>{if(!(a||i)){if(o=!1,v){i=!0,s<=0&&n(null);return}s++,t(d,l,h),l++,u()}}).catch(g))}function h(d,v){if(s-=1,!a){if(d)return g(d);if(d===!1){i=!0,a=!0;return}if(v===jd.default||i&&s<=0)return i=!0,n(null);u()}}function g(d){a||(o=!1,i=!0,n(d))}u()}$s.exports=bt.default});var Ts=f((wt,Rs)=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});var Dd=Yn(),Cd=mr(Dd),kd=xs(),Id=mr(kd),Fd=Gn(),Wd=mr(Fd),qs=Ne(),Bd=Ms(),Os=mr(Bd),zd=yt(),Hd=mr(zd);function mr(r){return r&&r.__esModule?r:{default:r}}wt.default=r=>(e,t,n)=>{if(n=(0,Cd.default)(n),r<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return n(null);if((0,qs.isAsyncGenerator)(e))return(0,Os.default)(e,r,t,n);if((0,qs.isAsyncIterable)(e))return(0,Os.default)(e[Symbol.asyncIterator](),r,t,n);var i=(0,Id.default)(e),a=!1,o=!1,s=0,l=!1;function u(g,d){if(!o)if(s-=1,g)a=!0,n(g);else if(g===!1)a=!0,o=!0;else{if(d===Hd.default||a&&s<=0)return a=!0,n(null);l||h()}}function h(){for(l=!0;s<r&&!a;){var g=i();if(g===null){a=!0,s<=0&&n(null);return}s+=1,t(g.value,g.key,(0,Wd.default)(u))}l=!1}h()};Rs.exports=wt.default});var Kn=f((_t,As)=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});var Ud=Ts(),Yd=Vn(Ud),Gd=Ne(),Vd=Vn(Gd),Kd=Qe(),Jd=Vn(Kd);function Vn(r){return r&&r.__esModule?r:{default:r}}function Zd(r,e,t,n){return(0,Yd.default)(e)(r,(0,Vd.default)(t),n)}_t.default=(0,Jd.default)(Zd,4);As.exports=_t.default});var Ns=f((xt,js)=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});var Qd=Kn(),Xd=Ls(Qd),ep=Qe(),rp=Ls(ep);function Ls(r){return r&&r.__esModule?r:{default:r}}function tp(r,e,t){return(0,Xd.default)(r,1,e,t)}xt.default=(0,rp.default)(tp,3);js.exports=xt.default});var Cs=f((Et,Ds)=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.default=sp;var np=ms(),ip=Ps(np),ap=Ns(),op=Ps(ap);function Ps(r){return r&&r.__esModule?r:{default:r}}function sp(r,e){return(0,ip.default)(op.default,r,e)}Ds.exports=Et.default});var Jn=f(($m,Is)=>{"use strict";Is.exports=ge;var St=ve().codes,lp=St.ERR_METHOD_NOT_IMPLEMENTED,up=St.ERR_MULTIPLE_CALLBACK,cp=St.ERR_TRANSFORM_ALREADY_TRANSFORMING,fp=St.ERR_TRANSFORM_WITH_LENGTH_0,$t=je();Ue()(ge,$t);function hp(r,e){var t=this._transformState;t.transforming=!1;var n=t.writecb;if(n===null)return this.emit("error",new up);t.writechunk=null,t.writecb=null,e!=null&&this.push(e),n(r);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function ge(r){if(!(this instanceof ge))return new ge(r);$t.call(this,r),this._transformState={afterTransform:hp.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,r&&(typeof r.transform=="function"&&(this._transform=r.transform),typeof r.flush=="function"&&(this._flush=r.flush)),this.on("prefinish",dp)}function dp(){var r=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,t){ks(r,e,t)}):ks(this,null,null)}ge.prototype.push=function(r,e){return this._transformState.needTransform=!1,$t.prototype.push.call(this,r,e)};ge.prototype._transform=function(r,e,t){t(new lp("_transform()"))};ge.prototype._write=function(r,e,t){var n=this._transformState;if(n.writecb=t,n.writechunk=r,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};ge.prototype._read=function(r){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};ge.prototype._destroy=function(r,e){$t.prototype._destroy.call(this,r,function(t){e(t)})};function ks(r,e,t){if(e)return r.emit("error",e);if(t!=null&&r.push(t),r._writableState.length)throw new fp;if(r._transformState.transforming)throw new cp;return r.push(null)}});var Bs=f((Mm,Ws)=>{"use strict";Ws.exports=vr;var Fs=Jn();Ue()(vr,Fs);function vr(r){if(!(this instanceof vr))return new vr(r);Fs.call(this,r)}vr.prototype._transform=function(r,e,t){t(null,r)}});var Gs=f((qm,Ys)=>{"use strict";var Zn;function pp(r){var e=!1;return function(){e||(e=!0,r.apply(void 0,arguments))}}var Us=ve().codes,gp=Us.ERR_MISSING_ARGS,mp=Us.ERR_STREAM_DESTROYED;function zs(r){if(r)throw r}function vp(r){return r.setHeader&&typeof r.abort=="function"}function yp(r,e,t,n){n=pp(n);var i=!1;r.on("close",function(){i=!0}),Zn===void 0&&(Zn=Jr()),Zn(r,{readable:e,writable:t},function(o){if(o)return n(o);i=!0,n()});var a=!1;return function(o){if(!i&&!a){if(a=!0,vp(r))return r.abort();if(typeof r.destroy=="function")return r.destroy();n(o||new mp("pipe"))}}}function Hs(r){r()}function bp(r,e){return r.pipe(e)}function wp(r){return!r.length||typeof r[r.length-1]!="function"?zs:r.pop()}function _p(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];var n=wp(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new gp("streams");var i,a=e.map(function(o,s){var l=s<e.length-1,u=s>0;return yp(o,l,u,function(h){i||(i=h),h&&a.forEach(Hs),!l&&(a.forEach(Hs),n(i))})});return e.reduce(bp)}Ys.exports=_p});var Pe=f((ne,br)=>{var yr=require("stream");process.env.READABLE_STREAM==="disable"&&yr?(br.exports=yr.Readable,Object.assign(br.exports,yr),br.exports.Stream=yr):(ne=br.exports=Dn(),ne.Stream=yr||ne,ne.Readable=ne,ne.Writable=it(),ne.Duplex=je(),ne.Transform=Jn(),ne.PassThrough=Bs(),ne.finished=Jr(),ne.pipeline=Gs())});var ii=f((Om,Ks)=>{var Xe=[],wr=[],Qn=function(){};function ei(r){return~Xe.indexOf(r)?!1:(Xe.push(r),!0)}function ri(r){Qn=r}function xp(r){for(var e=[],t=0;t<Xe.length;t++){if(Xe[t].async){e.push(Xe[t]);continue}if(Xe[t](r))return!0}return e.length?new Promise(function(i){Promise.all(e.map(function(o){return o(r)})).then(function(o){i(o.some(Boolean))})}):!1}function ti(r){return~wr.indexOf(r)?!1:(wr.push(r),!0)}function Xn(){Qn.apply(Qn,arguments)}function Vs(r){for(var e=0;e<wr.length;e++)r=wr[e].apply(wr[e],arguments);return r}function ni(r,e){var t=Object.prototype.hasOwnProperty;for(var n in e)t.call(e,n)&&(r[n]=e[n]);return r}function Ep(r){return r.enabled=!1,r.modify=ti,r.set=ri,r.use=ei,ni(function(){return!1},r)}function Sp(r){function e(){var t=Array.prototype.slice.call(arguments,0);return Xn.call(Xn,r,Vs(t,r)),!0}return r.enabled=!0,r.modify=ti,r.set=ri,r.use=ei,ni(e,r)}Ks.exports=function(e){return e.introduce=ni,e.enabled=xp,e.process=Vs,e.modify=ti,e.write=Xn,e.nope=Ep,e.yep=Sp,e.set=ri,e.use=ei,e}});var Zs=f((Rm,Js)=>{var $p=ii(),Mp=$p(function r(e,t){return t=t||{},t.namespace=e,t.prod=!0,t.dev=!1,t.force||r.force?r.yep(t):r.nope(t)});Js.exports=Mp});var Xs=f((Tm,Qs)=>{"use strict";Qs.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var rl=f((Am,el)=>{el.exports=function(e){return!e||typeof e=="string"?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String")}});var il=f((Lm,nl)=>{"use strict";var qp=rl(),Op=Array.prototype.concat,Rp=Array.prototype.slice,tl=nl.exports=function(e){for(var t=[],n=0,i=e.length;n<i;n++){var a=e[n];qp(a)?t=Op.call(t,Rp.call(a)):t.push(a)}return t};tl.wrap=function(r){return function(){return r(tl(arguments))}}});var ll=f((jm,sl)=>{var _r=Xs(),xr=il(),al=Object.hasOwnProperty,ol=Object.create(null);for(Mt in _r)al.call(_r,Mt)&&(ol[_r[Mt]]=Mt);var Mt,ee=sl.exports={to:{},get:{}};ee.get=function(r){var e=r.substring(0,3).toLowerCase(),t,n;switch(e){case"hsl":t=ee.get.hsl(r),n="hsl";break;case"hwb":t=ee.get.hwb(r),n="hwb";break;default:t=ee.get.rgb(r),n="rgb";break}return t?{model:n,value:t}:null};ee.get.rgb=function(r){if(!r)return null;var e=/^#([a-f0-9]{3,4})$/i,t=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,n=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,i=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,a=/^(\w+)$/,o=[0,0,0,1],s,l,u;if(s=r.match(t)){for(u=s[2],s=s[1],l=0;l<3;l++){var h=l*2;o[l]=parseInt(s.slice(h,h+2),16)}u&&(o[3]=parseInt(u,16)/255)}else if(s=r.match(e)){for(s=s[1],u=s[3],l=0;l<3;l++)o[l]=parseInt(s[l]+s[l],16);u&&(o[3]=parseInt(u+u,16)/255)}else if(s=r.match(n)){for(l=0;l<3;l++)o[l]=parseInt(s[l+1],0);s[4]&&(s[5]?o[3]=parseFloat(s[4])*.01:o[3]=parseFloat(s[4]))}else if(s=r.match(i)){for(l=0;l<3;l++)o[l]=Math.round(parseFloat(s[l+1])*2.55);s[4]&&(s[5]?o[3]=parseFloat(s[4])*.01:o[3]=parseFloat(s[4]))}else return(s=r.match(a))?s[1]==="transparent"?[0,0,0,0]:al.call(_r,s[1])?(o=_r[s[1]],o[3]=1,o):null:null;for(l=0;l<3;l++)o[l]=Ee(o[l],0,255);return o[3]=Ee(o[3],0,1),o};ee.get.hsl=function(r){if(!r)return null;var e=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,t=r.match(e);if(t){var n=parseFloat(t[4]),i=(parseFloat(t[1])%360+360)%360,a=Ee(parseFloat(t[2]),0,100),o=Ee(parseFloat(t[3]),0,100),s=Ee(isNaN(n)?1:n,0,1);return[i,a,o,s]}return null};ee.get.hwb=function(r){if(!r)return null;var e=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,t=r.match(e);if(t){var n=parseFloat(t[4]),i=(parseFloat(t[1])%360+360)%360,a=Ee(parseFloat(t[2]),0,100),o=Ee(parseFloat(t[3]),0,100),s=Ee(isNaN(n)?1:n,0,1);return[i,a,o,s]}return null};ee.to.hex=function(){var r=xr(arguments);return"#"+qt(r[0])+qt(r[1])+qt(r[2])+(r[3]<1?qt(Math.round(r[3]*255)):"")};ee.to.rgb=function(){var r=xr(arguments);return r.length<4||r[3]===1?"rgb("+Math.round(r[0])+", "+Math.round(r[1])+", "+Math.round(r[2])+")":"rgba("+Math.round(r[0])+", "+Math.round(r[1])+", "+Math.round(r[2])+", "+r[3]+")"};ee.to.rgb.percent=function(){var r=xr(arguments),e=Math.round(r[0]/255*100),t=Math.round(r[1]/255*100),n=Math.round(r[2]/255*100);return r.length<4||r[3]===1?"rgb("+e+"%, "+t+"%, "+n+"%)":"rgba("+e+"%, "+t+"%, "+n+"%, "+r[3]+")"};ee.to.hsl=function(){var r=xr(arguments);return r.length<4||r[3]===1?"hsl("+r[0]+", "+r[1]+"%, "+r[2]+"%)":"hsla("+r[0]+", "+r[1]+"%, "+r[2]+"%, "+r[3]+")"};ee.to.hwb=function(){var r=xr(arguments),e="";return r.length>=4&&r[3]!==1&&(e=", "+r[3]),"hwb("+r[0]+", "+r[1]+"%, "+r[2]+"%"+e+")"};ee.to.keyword=function(r){return ol[r.slice(0,3)]};function Ee(r,e,t){return Math.min(Math.max(e,r),t)}function qt(r){var e=Math.round(r).toString(16).toUpperCase();return e.length<2?"0"+e:e}});var cl=f((Nm,ul)=>{"use strict";ul.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var ai=f((Pm,pl)=>{var De=cl(),dl={};for(Ot in De)De.hasOwnProperty(Ot)&&(dl[De[Ot]]=Ot);var Ot,w=pl.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(V in w)if(w.hasOwnProperty(V)){if(!("channels"in w[V]))throw new Error("missing channels property: "+V);if(!("labels"in w[V]))throw new Error("missing channel labels property: "+V);if(w[V].labels.length!==w[V].channels)throw new Error("channel and label counts mismatch: "+V);fl=w[V].channels,hl=w[V].labels,delete w[V].channels,delete w[V].labels,Object.defineProperty(w[V],"channels",{value:fl}),Object.defineProperty(w[V],"labels",{value:hl})}var fl,hl,V;w.rgb.hsl=function(r){var e=r[0]/255,t=r[1]/255,n=r[2]/255,i=Math.min(e,t,n),a=Math.max(e,t,n),o=a-i,s,l,u;return a===i?s=0:e===a?s=(t-n)/o:t===a?s=2+(n-e)/o:n===a&&(s=4+(e-t)/o),s=Math.min(s*60,360),s<0&&(s+=360),u=(i+a)/2,a===i?l=0:u<=.5?l=o/(a+i):l=o/(2-a-i),[s,l*100,u*100]};w.rgb.hsv=function(r){var e,t,n,i,a,o=r[0]/255,s=r[1]/255,l=r[2]/255,u=Math.max(o,s,l),h=u-Math.min(o,s,l),g=function(d){return(u-d)/6/h+1/2};return h===0?i=a=0:(a=h/u,e=g(o),t=g(s),n=g(l),o===u?i=n-t:s===u?i=1/3+e-n:l===u&&(i=2/3+t-e),i<0?i+=1:i>1&&(i-=1)),[i*360,a*100,u*100]};w.rgb.hwb=function(r){var e=r[0],t=r[1],n=r[2],i=w.rgb.hsl(r)[0],a=1/255*Math.min(e,Math.min(t,n));return n=1-1/255*Math.max(e,Math.max(t,n)),[i,a*100,n*100]};w.rgb.cmyk=function(r){var e=r[0]/255,t=r[1]/255,n=r[2]/255,i,a,o,s;return s=Math.min(1-e,1-t,1-n),i=(1-e-s)/(1-s)||0,a=(1-t-s)/(1-s)||0,o=(1-n-s)/(1-s)||0,[i*100,a*100,o*100,s*100]};function Tp(r,e){return Math.pow(r[0]-e[0],2)+Math.pow(r[1]-e[1],2)+Math.pow(r[2]-e[2],2)}w.rgb.keyword=function(r){var e=dl[r];if(e)return e;var t=1/0,n;for(var i in De)if(De.hasOwnProperty(i)){var a=De[i],o=Tp(r,a);o<t&&(t=o,n=i)}return n};w.keyword.rgb=function(r){return De[r]};w.rgb.xyz=function(r){var e=r[0]/255,t=r[1]/255,n=r[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=e*.4124+t*.3576+n*.1805,a=e*.2126+t*.7152+n*.0722,o=e*.0193+t*.1192+n*.9505;return[i*100,a*100,o*100]};w.rgb.lab=function(r){var e=w.rgb.xyz(r),t=e[0],n=e[1],i=e[2],a,o,s;return t/=95.047,n/=100,i/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,a=116*n-16,o=500*(t-n),s=200*(n-i),[a,o,s]};w.hsl.rgb=function(r){var e=r[0]/360,t=r[1]/100,n=r[2]/100,i,a,o,s,l;if(t===0)return l=n*255,[l,l,l];n<.5?a=n*(1+t):a=n+t-n*t,i=2*n-a,s=[0,0,0];for(var u=0;u<3;u++)o=e+1/3*-(u-1),o<0&&o++,o>1&&o--,6*o<1?l=i+(a-i)*6*o:2*o<1?l=a:3*o<2?l=i+(a-i)*(2/3-o)*6:l=i,s[u]=l*255;return s};w.hsl.hsv=function(r){var e=r[0],t=r[1]/100,n=r[2]/100,i=t,a=Math.max(n,.01),o,s;return n*=2,t*=n<=1?n:2-n,i*=a<=1?a:2-a,s=(n+t)/2,o=n===0?2*i/(a+i):2*t/(n+t),[e,o*100,s*100]};w.hsv.rgb=function(r){var e=r[0]/60,t=r[1]/100,n=r[2]/100,i=Math.floor(e)%6,a=e-Math.floor(e),o=255*n*(1-t),s=255*n*(1-t*a),l=255*n*(1-t*(1-a));switch(n*=255,i){case 0:return[n,l,o];case 1:return[s,n,o];case 2:return[o,n,l];case 3:return[o,s,n];case 4:return[l,o,n];case 5:return[n,o,s]}};w.hsv.hsl=function(r){var e=r[0],t=r[1]/100,n=r[2]/100,i=Math.max(n,.01),a,o,s;return s=(2-t)*n,a=(2-t)*i,o=t*i,o/=a<=1?a:2-a,o=o||0,s/=2,[e,o*100,s*100]};w.hwb.rgb=function(r){var e=r[0]/360,t=r[1]/100,n=r[2]/100,i=t+n,a,o,s,l;i>1&&(t/=i,n/=i),a=Math.floor(6*e),o=1-n,s=6*e-a,(a&1)!==0&&(s=1-s),l=t+s*(o-t);var u,h,g;switch(a){default:case 6:case 0:u=o,h=l,g=t;break;case 1:u=l,h=o,g=t;break;case 2:u=t,h=o,g=l;break;case 3:u=t,h=l,g=o;break;case 4:u=l,h=t,g=o;break;case 5:u=o,h=t,g=l;break}return[u*255,h*255,g*255]};w.cmyk.rgb=function(r){var e=r[0]/100,t=r[1]/100,n=r[2]/100,i=r[3]/100,a,o,s;return a=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,t*(1-i)+i),s=1-Math.min(1,n*(1-i)+i),[a*255,o*255,s*255]};w.xyz.rgb=function(r){var e=r[0]/100,t=r[1]/100,n=r[2]/100,i,a,o;return i=e*3.2406+t*-1.5372+n*-.4986,a=e*-.9689+t*1.8758+n*.0415,o=e*.0557+t*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),[i*255,a*255,o*255]};w.xyz.lab=function(r){var e=r[0],t=r[1],n=r[2],i,a,o;return e/=95.047,t/=100,n/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*t-16,a=500*(e-t),o=200*(t-n),[i,a,o]};w.lab.xyz=function(r){var e=r[0],t=r[1],n=r[2],i,a,o;a=(e+16)/116,i=t/500+a,o=a-n/200;var s=Math.pow(a,3),l=Math.pow(i,3),u=Math.pow(o,3);return a=s>.008856?s:(a-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,o=u>.008856?u:(o-16/116)/7.787,i*=95.047,a*=100,o*=108.883,[i,a,o]};w.lab.lch=function(r){var e=r[0],t=r[1],n=r[2],i,a,o;return i=Math.atan2(n,t),a=i*360/2/Math.PI,a<0&&(a+=360),o=Math.sqrt(t*t+n*n),[e,o,a]};w.lch.lab=function(r){var e=r[0],t=r[1],n=r[2],i,a,o;return o=n/360*2*Math.PI,i=t*Math.cos(o),a=t*Math.sin(o),[e,i,a]};w.rgb.ansi16=function(r){var e=r[0],t=r[1],n=r[2],i=1 in arguments?arguments[1]:w.rgb.hsv(r)[2];if(i=Math.round(i/50),i===0)return 30;var a=30+(Math.round(n/255)<<2|Math.round(t/255)<<1|Math.round(e/255));return i===2&&(a+=60),a};w.hsv.ansi16=function(r){return w.rgb.ansi16(w.hsv.rgb(r),r[2])};w.rgb.ansi256=function(r){var e=r[0],t=r[1],n=r[2];if(e===t&&t===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var i=16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5);return i};w.ansi16.rgb=function(r){var e=r%10;if(e===0||e===7)return r>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var t=(~~(r>50)+1)*.5,n=(e&1)*t*255,i=(e>>1&1)*t*255,a=(e>>2&1)*t*255;return[n,i,a]};w.ansi256.rgb=function(r){if(r>=232){var e=(r-232)*10+8;return[e,e,e]}r-=16;var t,n=Math.floor(r/36)/5*255,i=Math.floor((t=r%36)/6)/5*255,a=t%6/5*255;return[n,i,a]};w.rgb.hex=function(r){var e=((Math.round(r[0])&255)<<16)+((Math.round(r[1])&255)<<8)+(Math.round(r[2])&255),t=e.toString(16).toUpperCase();return"000000".substring(t.length)+t};w.hex.rgb=function(r){var e=r.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var t=e[0];e[0].length===3&&(t=t.split("").map(function(s){return s+s}).join(""));var n=parseInt(t,16),i=n>>16&255,a=n>>8&255,o=n&255;return[i,a,o]};w.rgb.hcg=function(r){var e=r[0]/255,t=r[1]/255,n=r[2]/255,i=Math.max(Math.max(e,t),n),a=Math.min(Math.min(e,t),n),o=i-a,s,l;return o<1?s=a/(1-o):s=0,o<=0?l=0:i===e?l=(t-n)/o%6:i===t?l=2+(n-e)/o:l=4+(e-t)/o+4,l/=6,l%=1,[l*360,o*100,s*100]};w.hsl.hcg=function(r){var e=r[1]/100,t=r[2]/100,n=1,i=0;return t<.5?n=2*e*t:n=2*e*(1-t),n<1&&(i=(t-.5*n)/(1-n)),[r[0],n*100,i*100]};w.hsv.hcg=function(r){var e=r[1]/100,t=r[2]/100,n=e*t,i=0;return n<1&&(i=(t-n)/(1-n)),[r[0],n*100,i*100]};w.hcg.rgb=function(r){var e=r[0]/360,t=r[1]/100,n=r[2]/100;if(t===0)return[n*255,n*255,n*255];var i=[0,0,0],a=e%1*6,o=a%1,s=1-o,l=0;switch(Math.floor(a)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return l=(1-t)*n,[(t*i[0]+l)*255,(t*i[1]+l)*255,(t*i[2]+l)*255]};w.hcg.hsv=function(r){var e=r[1]/100,t=r[2]/100,n=e+t*(1-e),i=0;return n>0&&(i=e/n),[r[0],i*100,n*100]};w.hcg.hsl=function(r){var e=r[1]/100,t=r[2]/100,n=t*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[r[0],i*100,n*100]};w.hcg.hwb=function(r){var e=r[1]/100,t=r[2]/100,n=e+t*(1-e);return[r[0],(n-e)*100,(1-n)*100]};w.hwb.hcg=function(r){var e=r[1]/100,t=r[2]/100,n=1-t,i=n-e,a=0;return i<1&&(a=(n-i)/(1-i)),[r[0],i*100,a*100]};w.apple.rgb=function(r){return[r[0]/65535*255,r[1]/65535*255,r[2]/65535*255]};w.rgb.apple=function(r){return[r[0]/255*65535,r[1]/255*65535,r[2]/255*65535]};w.gray.rgb=function(r){return[r[0]/100*255,r[0]/100*255,r[0]/100*255]};w.gray.hsl=w.gray.hsv=function(r){return[0,0,r[0]]};w.gray.hwb=function(r){return[0,100,r[0]]};w.gray.cmyk=function(r){return[0,0,0,r[0]]};w.gray.lab=function(r){return[r[0],0,0]};w.gray.hex=function(r){var e=Math.round(r[0]/100*255)&255,t=(e<<16)+(e<<8)+e,n=t.toString(16).toUpperCase();return"000000".substring(n.length)+n};w.rgb.gray=function(r){var e=(r[0]+r[1]+r[2])/3;return[e/255*100]}});var ml=f((Dm,gl)=>{var Rt=ai();function Ap(){for(var r={},e=Object.keys(Rt),t=e.length,n=0;n<t;n++)r[e[n]]={distance:-1,parent:null};return r}function Lp(r){var e=Ap(),t=[r];for(e[r].distance=0;t.length;)for(var n=t.pop(),i=Object.keys(Rt[n]),a=i.length,o=0;o<a;o++){var s=i[o],l=e[s];l.distance===-1&&(l.distance=e[n].distance+1,l.parent=n,t.unshift(s))}return e}function jp(r,e){return function(t){return e(r(t))}}function Np(r,e){for(var t=[e[r].parent,r],n=Rt[e[r].parent][r],i=e[r].parent;e[i].parent;)t.unshift(e[i].parent),n=jp(Rt[e[i].parent][i],n),i=e[i].parent;return n.conversion=t,n}gl.exports=function(r){for(var e=Lp(r),t={},n=Object.keys(e),i=n.length,a=0;a<i;a++){var o=n[a],s=e[o];s.parent!==null&&(t[o]=Np(o,e))}return t}});var yl=f((Cm,vl)=>{var oi=ai(),Pp=ml(),er={},Dp=Object.keys(oi);function Cp(r){var e=function(t){return t==null?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),r(t))};return"conversion"in r&&(e.conversion=r.conversion),e}function kp(r){var e=function(t){if(t==null)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=r(t);if(typeof n=="object")for(var i=n.length,a=0;a<i;a++)n[a]=Math.round(n[a]);return n};return"conversion"in r&&(e.conversion=r.conversion),e}Dp.forEach(function(r){er[r]={},Object.defineProperty(er[r],"channels",{value:oi[r].channels}),Object.defineProperty(er[r],"labels",{value:oi[r].labels});var e=Pp(r),t=Object.keys(e);t.forEach(function(n){var i=e[n];er[r][n]=kp(i),er[r][n].raw=Cp(i)})});vl.exports=er});var _l=f((km,wl)=>{"use strict";var Er=ll(),re=yl(),ui=[].slice,bl=["keyword","gray","hex"],si={};Object.keys(re).forEach(function(r){si[ui.call(re[r].labels).sort().join("")]=r});var Tt={};function H(r,e){if(!(this instanceof H))return new H(r,e);if(e&&e in bl&&(e=null),e&&!(e in re))throw new Error("Unknown model: "+e);var t,n;if(r==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(r instanceof H)this.model=r.model,this.color=r.color.slice(),this.valpha=r.valpha;else if(typeof r=="string"){var i=Er.get(r);if(i===null)throw new Error("Unable to parse color from string: "+r);this.model=i.model,n=re[this.model].channels,this.color=i.value.slice(0,n),this.valpha=typeof i.value[n]=="number"?i.value[n]:1}else if(r.length){this.model=e||"rgb",n=re[this.model].channels;var a=ui.call(r,0,n);this.color=li(a,n),this.valpha=typeof r[n]=="number"?r[n]:1}else if(typeof r=="number")r&=16777215,this.model="rgb",this.color=[r>>16&255,r>>8&255,r&255],this.valpha=1;else{this.valpha=1;var o=Object.keys(r);"alpha"in r&&(o.splice(o.indexOf("alpha"),1),this.valpha=typeof r.alpha=="number"?r.alpha:0);var s=o.sort().join("");if(!(s in si))throw new Error("Unable to parse color from object: "+JSON.stringify(r));this.model=si[s];var l=re[this.model].labels,u=[];for(t=0;t<l.length;t++)u.push(r[l[t]]);this.color=li(u)}if(Tt[this.model])for(n=re[this.model].channels,t=0;t<n;t++){var h=Tt[this.model][t];h&&(this.color[t]=h(this.color[t]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}H.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(r){var e=this.model in Er.to?this:this.rgb();e=e.round(typeof r=="number"?r:1);var t=e.valpha===1?e.color:e.color.concat(this.valpha);return Er.to[e.model](t)},percentString:function(r){var e=this.rgb().round(typeof r=="number"?r:1),t=e.valpha===1?e.color:e.color.concat(this.valpha);return Er.to.rgb.percent(t)},array:function(){return this.valpha===1?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var r={},e=re[this.model].channels,t=re[this.model].labels,n=0;n<e;n++)r[t[n]]=this.color[n];return this.valpha!==1&&(r.alpha=this.valpha),r},unitArray:function(){var r=this.rgb().color;return r[0]/=255,r[1]/=255,r[2]/=255,this.valpha!==1&&r.push(this.valpha),r},unitObject:function(){var r=this.rgb().object();return r.r/=255,r.g/=255,r.b/=255,this.valpha!==1&&(r.alpha=this.valpha),r},round:function(r){return r=Math.max(r||0,0),new H(this.color.map(Fp(r)).concat(this.valpha),this.model)},alpha:function(r){return arguments.length?new H(this.color.concat(Math.max(0,Math.min(1,r))),this.model):this.valpha},red:C("rgb",0,I(255)),green:C("rgb",1,I(255)),blue:C("rgb",2,I(255)),hue:C(["hsl","hsv","hsl","hwb","hcg"],0,function(r){return(r%360+360)%360}),saturationl:C("hsl",1,I(100)),lightness:C("hsl",2,I(100)),saturationv:C("hsv",1,I(100)),value:C("hsv",2,I(100)),chroma:C("hcg",1,I(100)),gray:C("hcg",2,I(100)),white:C("hwb",1,I(100)),wblack:C("hwb",2,I(100)),cyan:C("cmyk",0,I(100)),magenta:C("cmyk",1,I(100)),yellow:C("cmyk",2,I(100)),black:C("cmyk",3,I(100)),x:C("xyz",0,I(100)),y:C("xyz",1,I(100)),z:C("xyz",2,I(100)),l:C("lab",0,I(100)),a:C("lab",1),b:C("lab",2),keyword:function(r){return arguments.length?new H(r):re[this.model].keyword(this.color)},hex:function(r){return arguments.length?new H(r):Er.to.hex(this.rgb().round().color)},rgbNumber:function(){var r=this.rgb().color;return(r[0]&255)<<16|(r[1]&255)<<8|r[2]&255},luminosity:function(){for(var r=this.rgb().color,e=[],t=0;t<r.length;t++){var n=r[t]/255;e[t]=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}return .2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(r){var e=this.luminosity(),t=r.luminosity();return e>t?(e+.05)/(t+.05):(t+.05)/(e+.05)},level:function(r){var e=this.contrast(r);return e>=7.1?"AAA":e>=4.5?"AA":""},isDark:function(){var r=this.rgb().color,e=(r[0]*299+r[1]*587+r[2]*114)/1e3;return e<128},isLight:function(){return!this.isDark()},negate:function(){for(var r=this.rgb(),e=0;e<3;e++)r.color[e]=255-r.color[e];return r},lighten:function(r){var e=this.hsl();return e.color[2]+=e.color[2]*r,e},darken:function(r){var e=this.hsl();return e.color[2]-=e.color[2]*r,e},saturate:function(r){var e=this.hsl();return e.color[1]+=e.color[1]*r,e},desaturate:function(r){var e=this.hsl();return e.color[1]-=e.color[1]*r,e},whiten:function(r){var e=this.hwb();return e.color[1]+=e.color[1]*r,e},blacken:function(r){var e=this.hwb();return e.color[2]+=e.color[2]*r,e},grayscale:function(){var r=this.rgb().color,e=r[0]*.3+r[1]*.59+r[2]*.11;return H.rgb(e,e,e)},fade:function(r){return this.alpha(this.valpha-this.valpha*r)},opaquer:function(r){return this.alpha(this.valpha+this.valpha*r)},rotate:function(r){var e=this.hsl(),t=e.color[0];return t=(t+r)%360,t=t<0?360+t:t,e.color[0]=t,e},mix:function(r,e){if(!r||!r.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof r);var t=r.rgb(),n=this.rgb(),i=e===void 0?.5:e,a=2*i-1,o=t.alpha()-n.alpha(),s=((a*o===-1?a:(a+o)/(1+a*o))+1)/2,l=1-s;return H.rgb(s*t.red()+l*n.red(),s*t.green()+l*n.green(),s*t.blue()+l*n.blue(),t.alpha()*i+n.alpha()*(1-i))}};Object.keys(re).forEach(function(r){if(bl.indexOf(r)===-1){var e=re[r].channels;H.prototype[r]=function(){if(this.model===r)return new H(this);if(arguments.length)return new H(arguments,r);var t=typeof arguments[e]=="number"?e:this.valpha;return new H(Wp(re[this.model][r].raw(this.color)).concat(t),r)},H[r]=function(t){return typeof t=="number"&&(t=li(ui.call(arguments),e)),new H(t,r)}}});function Ip(r,e){return Number(r.toFixed(e))}function Fp(r){return function(e){return Ip(e,r)}}function C(r,e,t){return r=Array.isArray(r)?r:[r],r.forEach(function(n){(Tt[n]||(Tt[n]=[]))[e]=t}),r=r[0],function(n){var i;return arguments.length?(t&&(n=t(n)),i=this[r](),i.color[e]=n,i):(i=this[r]().color[e],t&&(i=t(i)),i)}}function I(r){return function(e){return Math.max(0,Math.min(r,e))}}function Wp(r){return Array.isArray(r)?r:[r]}function li(r,e){for(var t=0;t<e;t++)typeof r[t]!="number"&&(r[t]=0);return r}wl.exports=H});var El=f((Im,xl)=>{"use strict";xl.exports=function(e){for(var t=0,n=0;t<e.length;n=e.charCodeAt(t++)+((n<<5)-n));var i=Math.floor(Math.abs(Math.sin(n)*1e4%1*16777216)).toString(16);return"#"+Array(6-i.length+1).join("0")+i}});var ql=f((Fm,Ml)=>{"use strict";var Sl=_l(),$l=El();Ml.exports=function(e,t){var n=e.split(t||":"),i=$l(n[0]);if(!n.length)return i;for(var a=0,o=n.length-1;a<o;a++)i=Sl(i).mix(Sl($l(n[a+1]))).saturate(1).hex();return i}});var Rl=f((Wm,Ol)=>{"use strict";function oe(r,e){if(e)return new oe(r).style(e);if(!(this instanceof oe))return new oe(r);this.text=r}oe.prototype.prefix="\x1B[";oe.prototype.suffix="m";oe.prototype.hex=function(e){e=e[0]==="#"?e.substring(1):e,e.length===3&&(e=e.split(""),e[5]=e[2],e[4]=e[2],e[3]=e[1],e[2]=e[1],e[1]=e[0],e=e.join(""));var t=e.substring(0,2),n=e.substring(2,4),i=e.substring(4,6);return[parseInt(t,16),parseInt(n,16),parseInt(i,16)]};oe.prototype.rgb=function(e,t,n){var i=e/255*5,a=t/255*5,o=n/255*5;return this.ansi(i,a,o)};oe.prototype.ansi=function(e,t,n){var i=Math.round(e),a=Math.round(t),o=Math.round(n);return 16+i*36+a*6+o};oe.prototype.reset=function(){return this.prefix+"39;49"+this.suffix};oe.prototype.style=function(e){return this.prefix+"38;5;"+this.rgb.apply(this,this.hex(e))+this.suffix+this.text+this.reset()};Ol.exports=oe});var Al=f((Bm,Tl)=>{var Bp=ql(),zp=Rl();Tl.exports=function(e,t){var n=t.namespace,i=t.colors!==!1?zp(n+":",Bp(n)):n+":";return e[0]=i+" "+e[0],e}});var jl=f((zm,Ll)=>{"use strict";Ll.exports=function(e,t){if(!t)return!1;for(var n=t.split(/[\s,]+/),i=0;i<n.length;i++){if(t=n[i].replace("*",".*?"),t.charAt(0)==="-"){if(new RegExp("^"+t.substr(1)+"$").test(e))return!1;continue}if(new RegExp("^"+t+"$").test(e))return!0}return!1}});var Pl=f((Hm,Nl)=>{var Hp=jl();Nl.exports=function(e){return function(n){try{return Hp(n,e())}catch{}return!1}}});var Cl=f((Um,Dl)=>{var Up=Pl();Dl.exports=Up(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var Il=f((Ym,kl)=>{kl.exports=function(r,e){try{Function.prototype.apply.call(console.log,console,e)}catch{}}});var Wl=f((Gm,Fl)=>{var Yp=ii(),Gp=require("tty").isatty(1),At=Yp(function r(e,t){return t=t||{},t.colors="colors"in t?t.colors:Gp,t.namespace=e,t.prod=!1,t.dev=!0,!r.enabled(e)&&!(t.force||r.force)?r.nope(t):r.yep(t)});At.modify(Al());At.use(Cl());At.set(Il());Fl.exports=At});var Sr=f((Vm,ci)=>{process.env.NODE_ENV==="production"?ci.exports=Zs():ci.exports=Wl()});var zl=f((Km,Bl)=>{"use strict";var fi=require("fs"),{StringDecoder:Vp}=require("string_decoder"),{Stream:Kp}=Pe();function Jp(){}Bl.exports=(r,e)=>{let t=Buffer.alloc(65536),n=new Vp("utf8"),i=new Kp,a="",o=0,s=0;return r.start===-1&&delete r.start,i.readable=!0,i.destroy=()=>{i.destroyed=!0,i.emit("end"),i.emit("close")},fi.open(r.file,"a+","0644",(l,u)=>{if(l){e?e(l):i.emit("error",l),i.destroy();return}(function h(){if(i.destroyed){fi.close(u,Jp);return}return fi.read(u,t,0,t.length,o,(g,d)=>{if(g){e?e(g):i.emit("error",g),i.destroy();return}if(!d)return a&&((r.start==null||s>r.start)&&(e?e(null,a):i.emit("line",a)),s++,a=""),setTimeout(h,1e3);let v=n.write(t.slice(0,d));e||i.emit("data",v),v=(a+v).split(/\n+/);let c=v.length-1,m=0;for(;m<c;m++)(r.start==null||s>r.start)&&(e?e(null,v[m]):i.emit("line",v[m])),s++;return a=v[c],o+=d,h()})})()}),e?i.destroy:i}});var Gl=f((Zm,Yl)=>{"use strict";var Z=require("fs"),F=require("path"),Hl=Cs(),Zp=require("zlib"),{MESSAGE:Qp}=k(),{Stream:Xp,PassThrough:Ul}=Pe(),e0=Je(),se=Sr()("winston:file"),r0=require("os"),t0=zl();Yl.exports=class extends e0{constructor(e={}){super(e),this.name=e.name||"file";function t(n,...i){i.slice(1).forEach(a=>{if(e[a])throw new Error(`Cannot set ${a} and ${n} together`)})}if(this._stream=new Ul,this._stream.setMaxListeners(30),this._onError=this._onError.bind(this),e.filename||e.dirname)t("filename or dirname","stream"),this._basename=this.filename=e.filename?F.basename(e.filename):"winston.log",this.dirname=e.dirname||F.dirname(e.filename),this.options=e.options||{flags:"a"};else if(e.stream)console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"),t("stream","filename","maxsize"),this._dest=this._stream.pipe(this._setupStream(e.stream)),this.dirname=F.dirname(this._dest.path);else throw new Error("Cannot log to file without filename or stream.");this.maxsize=e.maxsize||null,this.rotationFormat=e.rotationFormat||!1,this.zippedArchive=e.zippedArchive||!1,this.maxFiles=e.maxFiles||null,this.eol=typeof e.eol=="string"?e.eol:r0.EOL,this.tailable=e.tailable||!1,this.lazy=e.lazy||!1,this._size=0,this._pendingSize=0,this._created=0,this._drain=!1,this._opening=!1,this._ending=!1,this._fileExist=!1,this.dirname&&this._createLogDirIfNotExist(this.dirname),this.lazy||this.open()}finishIfEnding(){this._ending&&(this._opening?this.once("open",()=>{this._stream.once("finish",()=>this.emit("finish")),setImmediate(()=>this._stream.end())}):(this._stream.once("finish",()=>this.emit("finish")),setImmediate(()=>this._stream.end())))}log(e,t=()=>{}){if(this.silent)return t(),!0;if(this._drain){this._stream.once("drain",()=>{this._drain=!1,this.log(e,t)});return}if(this._rotate){this._stream.once("rotate",()=>{this._rotate=!1,this.log(e,t)});return}if(this.lazy){if(!this._fileExist){this._opening||this.open(),this.once("open",()=>{this._fileExist=!0,this.log(e,t)});return}if(this._needsNewFile(this._pendingSize)){this._dest.once("close",()=>{this._opening||this.open(),this.once("open",()=>{this.log(e,t)})});return}}let n=`${e[Qp]}${this.eol}`,i=Buffer.byteLength(n);function a(){if(this._size+=i,this._pendingSize-=i,se("logged %s %s",this._size,n),this.emit("logged",e),!this._rotate&&!this._opening&&this._needsNewFile()){if(this.lazy){this._endStream(()=>{this.emit("fileclosed")});return}this._rotate=!0,this._endStream(()=>this._rotateFile())}}this._pendingSize+=i,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);let o=this._stream.write(n,a.bind(this));return o?t():(this._drain=!0,this._stream.once("drain",()=>{this._drain=!1,t()})),se("written",o,this._drain),this.finishIfEnding(),o}query(e,t){typeof e=="function"&&(t=e,e={}),e=g(e);let n=F.join(this.dirname,this.filename),i="",a=[],o=0,s=Z.createReadStream(n,{encoding:"utf8"});s.on("error",d=>{if(s.readable&&s.destroy(),!!t)return d.code!=="ENOENT"?t(d):t(null,a)}),s.on("data",d=>{d=(i+d).split(/\n+/);let v=d.length-1,c=0;for(;c<v;c++)(!e.start||o>=e.start)&&l(d[c]),o++;i=d[v]}),s.on("close",()=>{i&&l(i,!0),e.order==="desc"&&(a=a.reverse()),t&&t(null,a)});function l(d,v){try{let c=JSON.parse(d);h(c)&&u(c)}catch(c){v||s.emit("error",c)}}function u(d){if(e.rows&&a.length>=e.rows&&e.order!=="desc"){s.readable&&s.destroy();return}e.fields&&(d=e.fields.reduce((v,c)=>(v[c]=d[c],v),{})),e.order==="desc"&&a.length>=e.rows&&a.shift(),a.push(d)}function h(d){if(!d||typeof d!="object")return;let v=new Date(d.timestamp);if(!(e.from&&v<e.from||e.until&&v>e.until||e.level&&e.level!==d.level))return!0}function g(d){return d=d||{},d.rows=d.rows||d.limit||10,d.start=d.start||0,d.until=d.until||new Date,typeof d.until!="object"&&(d.until=new Date(d.until)),d.from=d.from||d.until-24*60*60*1e3,typeof d.from!="object"&&(d.from=new Date(d.from)),d.order=d.order||"desc",d}}stream(e={}){let t=F.join(this.dirname,this.filename),n=new Xp,i={file:t,start:e.start};return n.destroy=t0(i,(a,o)=>{if(a)return n.emit("error",a);try{n.emit("data",o),o=JSON.parse(o),n.emit("log",o)}catch(s){n.emit("error",s)}}),n}open(){this.filename&&(this._opening||(this._opening=!0,this.stat((e,t)=>{if(e)return this.emit("error",e);se("stat done: %s { size: %s }",this.filename,t),this._size=t,this._dest=this._createStream(this._stream),this._opening=!1,this.once("open",()=>{this._stream.emit("rotate")||(this._rotate=!1)})})))}stat(e){let t=this._getFile(),n=F.join(this.dirname,t);Z.stat(n,(i,a)=>{if(i&&i.code==="ENOENT")return se("ENOENT\xA0ok",n),this.filename=t,e(null,0);if(i)return se(`err ${i.code} ${n}`),e(i);if(!a||this._needsNewFile(a.size))return this._incFile(()=>this.stat(e));this.filename=t,e(null,a.size)})}close(e){this._stream&&this._stream.end(()=>{e&&e(),this.emit("flush"),this.emit("closed")})}_needsNewFile(e){return e=e||this._size,this.maxsize&&e>=this.maxsize}_onError(e){this.emit("error",e)}_setupStream(e){return e.on("error",this._onError),e}_cleanupStream(e){return e.removeListener("error",this._onError),e.destroy(),e}_rotateFile(){this._incFile(()=>this.open())}_endStream(e=()=>{}){this._dest?(this._stream.unpipe(this._dest),this._dest.end(()=>{this._cleanupStream(this._dest),e()})):e()}_createStream(e){let t=F.join(this.dirname,this.filename);se("create stream start",t,this.options);let n=Z.createWriteStream(t,this.options).on("error",i=>se(i)).on("close",()=>se("close",n.path,n.bytesWritten)).on("open",()=>{se("file open ok",t),this.emit("open",t),e.pipe(n),this.rotatedWhileOpening&&(this._stream=new Ul,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(n),e.end())});return se("create stream ok",t),n}_incFile(e){se("_incFile",this.filename);let t=F.extname(this._basename),n=F.basename(this._basename,t),i=[];this.zippedArchive&&i.push(function(a){let o=this._created>0&&!this.tailable?this._created:"";this._compressFile(F.join(this.dirname,`${n}${o}${t}`),F.join(this.dirname,`${n}${o}${t}.gz`),a)}.bind(this)),i.push(function(a){this.tailable?this._checkMaxFilesTailable(t,n,a):(this._created+=1,this._checkMaxFilesIncrementing(t,n,a))}.bind(this)),Hl(i,e)}_getFile(){let e=F.extname(this._basename),t=F.basename(this._basename,e),n=this.rotationFormat?this.rotationFormat():this._created;return!this.tailable&&this._created?`${t}${n}${e}`:`${t}${e}`}_checkMaxFilesIncrementing(e,t,n){if(!this.maxFiles||this._created<this.maxFiles)return setImmediate(n);let i=this._created-this.maxFiles,a=i!==0?i:"",o=this.zippedArchive?".gz":"",s=`${t}${a}${e}${o}`,l=F.join(this.dirname,s);Z.unlink(l,n)}_checkMaxFilesTailable(e,t,n){let i=[];if(!this.maxFiles)return;let a=this.zippedArchive?".gz":"";for(let o=this.maxFiles-1;o>1;o--)i.push(function(s,l){let u=`${t}${s-1}${e}${a}`,h=F.join(this.dirname,u);Z.exists(h,g=>{if(!g)return l(null);u=`${t}${s}${e}${a}`,Z.rename(h,F.join(this.dirname,u),l)})}.bind(this,o));Hl(i,()=>{Z.rename(F.join(this.dirname,`${t}${e}${a}`),F.join(this.dirname,`${t}1${e}${a}`),n)})}_compressFile(e,t,n){Z.access(e,Z.F_OK,i=>{if(i)return n();var a=Zp.createGzip(),o=Z.createReadStream(e),s=Z.createWriteStream(t);s.on("finish",()=>{Z.unlink(e,n)}),o.pipe(a).pipe(s)})}_createLogDirIfNotExist(e){Z.existsSync(e)||Z.mkdirSync(e,{recursive:!0})}}});var Kl=f((Xm,Vl)=>{"use strict";var n0=require("http"),i0=require("https"),{Stream:a0}=Pe(),o0=Je(),{configure:s0}=ar();Vl.exports=class extends o0{constructor(e={}){super(e),this.options=e,this.name=e.name||"http",this.ssl=!!e.ssl,this.host=e.host||"localhost",this.port=e.port,this.auth=e.auth,this.path=e.path||"",this.maximumDepth=e.maximumDepth,this.agent=e.agent,this.headers=e.headers||{},this.headers["content-type"]="application/json",this.batch=e.batch||!1,this.batchInterval=e.batchInterval||5e3,this.batchCount=e.batchCount||10,this.batchOptions=[],this.batchTimeoutID=-1,this.batchCallback={},this.port||(this.port=this.ssl?443:80)}log(e,t){this._request(e,null,null,(n,i)=>{i&&i.statusCode!==200&&(n=new Error(`Invalid HTTP Status Code: ${i.statusCode}`)),n?this.emit("warn",n):this.emit("logged",e)}),t&&setImmediate(t)}query(e,t){typeof e=="function"&&(t=e,e={}),e={method:"query",params:this.normalizeQuery(e)};let n=e.params.auth||null;delete e.params.auth;let i=e.params.path||null;delete e.params.path,this._request(e,n,i,(a,o,s)=>{if(o&&o.statusCode!==200&&(a=new Error(`Invalid HTTP Status Code: ${o.statusCode}`)),a)return t(a);if(typeof s=="string")try{s=JSON.parse(s)}catch(l){return t(l)}t(null,s)})}stream(e={}){let t=new a0;e={method:"stream",params:e};let n=e.params.path||null;delete e.params.path;let i=e.params.auth||null;delete e.params.auth;let a="",o=this._request(e,i,n);return t.destroy=()=>o.destroy(),o.on("data",s=>{s=(a+s).split(/\n+/);let l=s.length-1,u=0;for(;u<l;u++)try{t.emit("log",JSON.parse(s[u]))}catch(h){t.emit("error",h)}a=s[l]}),o.on("error",s=>t.emit("error",s)),t}_request(e,t,n,i){e=e||{},t=t||this.auth,n=n||this.path||"",this.batch?this._doBatch(e,i,t,n):this._doRequest(e,i,t,n)}_doBatch(e,t,n,i){if(this.batchOptions.push(e),this.batchOptions.length===1){let a=this;this.batchCallback=t,this.batchTimeoutID=setTimeout(function(){a.batchTimeoutID=-1,a._doBatchRequest(a.batchCallback,n,i)},this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,n,i)}_doBatchRequest(e,t,n){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);let i=this.batchOptions.slice();this.batchOptions=[],this._doRequest(i,e,t,n)}_doRequest(e,t,n,i){let a=Object.assign({},this.headers);n&&n.bearer&&(a.Authorization=`Bearer ${n.bearer}`);let o=(this.ssl?i0:n0).request({...this.options,method:"POST",host:this.host,port:this.port,path:`/${i.replace(/^\//,"")}`,headers:a,auth:n&&n.username&&n.password?`${n.username}:${n.password}`:"",agent:this.agent});o.on("error",t),o.on("response",l=>l.on("end",()=>t(null,l)).resume());let s=s0({...this.maximumDepth&&{maximumDepth:this.maximumDepth}});o.end(Buffer.from(s(e,this.options.replacer),"utf8"))}}});var hi=f((ev,Jl)=>{"use strict";var fe=r=>r!==null&&typeof r=="object"&&typeof r.pipe=="function";fe.writable=r=>fe(r)&&r.writable!==!1&&typeof r._write=="function"&&typeof r._writableState=="object";fe.readable=r=>fe(r)&&r.readable!==!1&&typeof r._read=="function"&&typeof r._readableState=="object";fe.duplex=r=>fe.writable(r)&&fe.readable(r);fe.transform=r=>fe.duplex(r)&&typeof r._transform=="function";Jl.exports=fe});var Ql=f((tv,Zl)=>{"use strict";var l0=hi(),{MESSAGE:u0}=k(),c0=require("os"),f0=Je();Zl.exports=class extends f0{constructor(e={}){if(super(e),!e.stream||!l0(e.stream))throw new Error("options.stream is required.");this._stream=e.stream,this._stream.setMaxListeners(1/0),this.isObjectMode=e.stream._writableState.objectMode,this.eol=typeof e.eol=="string"?e.eol:c0.EOL}log(e,t){if(setImmediate(()=>this.emit("logged",e)),this.isObjectMode){this._stream.write(e),t&&t();return}this._stream.write(`${e[u0]}${this.eol}`),t&&t()}}});var Xl=f($r=>{"use strict";Object.defineProperty($r,"Console",{configurable:!0,enumerable:!0,get(){return rs()}});Object.defineProperty($r,"File",{configurable:!0,enumerable:!0,get(){return Gl()}});Object.defineProperty($r,"Http",{configurable:!0,enumerable:!0,get(){return Kl()}});Object.defineProperty($r,"Stream",{configurable:!0,enumerable:!0,get(){return Ql()}})});var jt=f(Mr=>{"use strict";var Lt=hn(),{configs:di}=k();Mr.cli=Lt.levels(di.cli);Mr.npm=Lt.levels(di.npm);Mr.syslog=Lt.levels(di.syslog);Mr.addColors=Lt.levels});var ru=f((Nt,eu)=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});var h0=lt(),d0=Ce(h0),p0=yt(),g0=Ce(p0),m0=Kn(),v0=Ce(m0),y0=Yn(),b0=Ce(y0),w0=Gn(),_0=Ce(w0),x0=Ne(),E0=Ce(x0),S0=Qe(),$0=Ce(S0);function Ce(r){return r&&r.__esModule?r:{default:r}}function M0(r,e,t){t=(0,b0.default)(t);var n=0,i=0,{length:a}=r,o=!1;a===0&&t(null);function s(l,u){l===!1&&(o=!0),o!==!0&&(l?t(l):(++i===a||u===g0.default)&&t(null))}for(;n<a;n++)e(r[n],n,(0,_0.default)(s))}function q0(r,e,t){return(0,v0.default)(r,1/0,e,t)}function O0(r,e,t){var n=(0,d0.default)(r)?M0:q0;return n(r,(0,E0.default)(e),t)}Nt.default=(0,$0.default)(O0,3);eu.exports=Nt.default});var nu=f((Pt,tu)=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.default=R0;function R0(r){return(e,t,n)=>r(e,n)}tu.exports=Pt.default});var kt=f((Ct,iu)=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});var T0=ru(),A0=Dt(T0),L0=nu(),j0=Dt(L0),N0=Ne(),P0=Dt(N0),D0=Qe(),C0=Dt(D0);function Dt(r){return r&&r.__esModule?r:{default:r}}function k0(r,e,t){return(0,A0.default)(r,(0,j0.default)((0,P0.default)(e)),t)}Ct.default=(0,C0.default)(k0,3);iu.exports=Ct.default});var ou=f((av,au)=>{"use strict";var I0=Object.prototype.toString;au.exports=function(e){if(typeof e.displayName=="string"&&e.constructor.name)return e.displayName;if(typeof e.name=="string"&&e.name)return e.name;if(typeof e=="object"&&e.constructor&&typeof e.constructor.name=="string")return e.constructor.name;var t=e.toString(),n=I0.call(e).slice(8,-1);return n==="Function"?t=t.substring(t.indexOf("(")+1,t.indexOf(")")):t=n,t||"anonymous"}});var pi=f((ov,su)=>{"use strict";var F0=ou();su.exports=function(e){var t=0,n;function i(){return t||(t=1,n=e.apply(this,arguments),e=null),n}return i.displayName=F0(e),i}});var gi=f(Or=>{Or.get=function(r){var e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var t={},n=Error.prepareStackTrace;Error.prepareStackTrace=function(a,o){return o},Error.captureStackTrace(t,r||Or.get);var i=t.stack;return Error.prepareStackTrace=n,Error.stackTraceLimit=e,i};Or.parse=function(r){if(!r.stack)return[];var e=this,t=r.stack.split(`
27
+ `).slice(1);return t.map(function(n){if(n.match(/^\s*[-]{4,}$/))return e._createParsedCallSite({fileName:n,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var i=n.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(i){var a=null,o=null,s=null,l=null,u=null,h=i[5]==="native";if(i[1]){s=i[1];var g=s.lastIndexOf(".");if(s[g-1]=="."&&g--,g>0){a=s.substr(0,g),o=s.substr(g+1);var d=a.indexOf(".Module");d>0&&(s=s.substr(d+1),a=a.substr(0,d))}l=null}o&&(l=a,u=o),o==="<anonymous>"&&(u=null,s=null);var v={fileName:i[2]||null,lineNumber:parseInt(i[3],10)||null,functionName:s,typeName:l,methodName:u,columnNumber:parseInt(i[4],10)||null,native:h};return e._createParsedCallSite(v)}}).filter(function(n){return!!n})};function qr(r){for(var e in r)this[e]=r[e]}var W0=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],B0=["topLevel","eval","native","constructor"];W0.forEach(function(r){qr.prototype[r]=null,qr.prototype["get"+r[0].toUpperCase()+r.substr(1)]=function(){return this[r]}});B0.forEach(function(r){qr.prototype[r]=!1,qr.prototype["is"+r[0].toUpperCase()+r.substr(1)]=function(){return this[r]}});Or._createParsedCallSite=function(r){return new qr(r)}});var uu=f((uv,lu)=>{"use strict";var{Writable:z0}=Pe();lu.exports=class extends z0{constructor(e){if(super({objectMode:!0}),!e)throw new Error("ExceptionStream requires a TransportStream instance.");this.handleExceptions=!0,this.transport=e}_write(e,t,n){return e.exception?this.transport.log(e,n):(n(),!0)}}});var vi=f((fv,hu)=>{"use strict";var cu=require("os"),H0=kt(),mi=Sr()("winston:exception"),U0=pi(),fu=gi(),Y0=uu();hu.exports=class{constructor(e){if(!e)throw new Error("Logger is required to handle exceptions");this.logger=e,this.handlers=new Map}handle(...e){e.forEach(t=>{if(Array.isArray(t))return t.forEach(n=>this._addHandler(n));this._addHandler(t)}),this.catcher||(this.catcher=this._uncaughtException.bind(this),process.on("uncaughtException",this.catcher))}unhandle(){this.catcher&&(process.removeListener("uncaughtException",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(e=>this.logger.unpipe(e)))}getAllInfo(e){let t=null;return e&&(t=typeof e=="string"?e:e.message),{error:e,level:"error",message:[`uncaughtException: ${t||"(no error message)"}`,e&&e.stack||" No stack trace"].join(`
28
+ `),stack:e&&e.stack,exception:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:cu.loadavg(),uptime:cu.uptime()}}getTrace(e){return(e?fu.parse(e):fu.get()).map(n=>({column:n.getColumnNumber(),file:n.getFileName(),function:n.getFunctionName(),line:n.getLineNumber(),method:n.getMethodName(),native:n.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleExceptions=!0;let t=new Y0(e);this.handlers.set(e,t),this.logger.pipe(t)}}_uncaughtException(e){let t=this.getAllInfo(e),n=this._getExceptionHandlers(),i=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,a;!n.length&&i&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),i=!1);function o(){mi("doExit",i),mi("process._exiting",process._exiting),i&&!process._exiting&&(a&&clearTimeout(a),process.exit(1))}if(!n||n.length===0)return process.nextTick(o);H0(n,(s,l)=>{let u=U0(l),h=s.transport||s;function g(d){return()=>{mi(d),u()}}h._ending=!0,h.once("finish",g("finished")),h.once("error",g("error"))},()=>i&&o()),this.logger.log(t),i&&(a=setTimeout(o,3e3))}_getExceptionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleExceptions)}}});var pu=f((dv,du)=>{"use strict";var{Writable:G0}=Pe();du.exports=class extends G0{constructor(e){if(super({objectMode:!0}),!e)throw new Error("RejectionStream requires a TransportStream instance.");this.handleRejections=!0,this.transport=e}_write(e,t,n){return e.rejection?this.transport.log(e,n):(n(),!0)}}});var bi=f((gv,vu)=>{"use strict";var gu=require("os"),V0=kt(),yi=Sr()("winston:rejection"),K0=pi(),mu=gi(),J0=pu();vu.exports=class{constructor(e){if(!e)throw new Error("Logger is required to handle rejections");this.logger=e,this.handlers=new Map}handle(...e){e.forEach(t=>{if(Array.isArray(t))return t.forEach(n=>this._addHandler(n));this._addHandler(t)}),this.catcher||(this.catcher=this._unhandledRejection.bind(this),process.on("unhandledRejection",this.catcher))}unhandle(){this.catcher&&(process.removeListener("unhandledRejection",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(e=>this.logger.unpipe(e)))}getAllInfo(e){let t=null;return e&&(t=typeof e=="string"?e:e.message),{error:e,level:"error",message:[`unhandledRejection: ${t||"(no error message)"}`,e&&e.stack||" No stack trace"].join(`
29
+ `),stack:e&&e.stack,rejection:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:gu.loadavg(),uptime:gu.uptime()}}getTrace(e){return(e?mu.parse(e):mu.get()).map(n=>({column:n.getColumnNumber(),file:n.getFileName(),function:n.getFunctionName(),line:n.getLineNumber(),method:n.getMethodName(),native:n.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleRejections=!0;let t=new J0(e);this.handlers.set(e,t),this.logger.pipe(t)}}_unhandledRejection(e){let t=this.getAllInfo(e),n=this._getRejectionHandlers(),i=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,a;!n.length&&i&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),i=!1);function o(){yi("doExit",i),yi("process._exiting",process._exiting),i&&!process._exiting&&(a&&clearTimeout(a),process.exit(1))}if(!n||n.length===0)return process.nextTick(o);V0(n,(s,l)=>{let u=K0(l),h=s.transport||s;function g(d){return()=>{yi(d),u()}}h._ending=!0,h.once("finish",g("finished")),h.once("error",g("error"))},()=>i&&o()),this.logger.log(t),i&&(a=setTimeout(o,3e3))}_getRejectionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleRejections)}}});var bu=f((mv,yu)=>{"use strict";var wi=class{constructor(e){let t=It();if(typeof e!="object"||Array.isArray(e)||!(e instanceof t))throw new Error("Logger is required for profiling");this.logger=e,this.start=Date.now()}done(...e){typeof e[e.length-1]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),e.pop());let t=typeof e[e.length-1]=="object"?e.pop():{};return t.level=t.level||"info",t.durationMs=Date.now()-this.start,this.logger.write(t)}};yu.exports=wi});var It=f((vv,Eu)=>{"use strict";var{Stream:Z0,Transform:Q0}=Pe(),wu=kt(),{LEVEL:he,SPLAT:_u}=k(),xu=hi(),X0=vi(),eg=bi(),rg=zn(),tg=bu(),{warn:ng}=dn(),ig=jt(),ag=/%[scdjifoO%]/g,Ft=class extends Q0{constructor(e){super({objectMode:!0}),this.configure(e)}child(e){let t=this;return Object.create(t,{write:{value:function(n){let i=Object.assign({},e,n);n instanceof Error&&(i.stack=n.stack,i.message=n.message),t.write(i)}}})}configure({silent:e,format:t,defaultMeta:n,levels:i,level:a="info",exitOnError:o=!0,transports:s,colors:l,emitErrs:u,formatters:h,padLevels:g,rewriters:d,stripColors:v,exceptionHandlers:c,rejectionHandlers:m}={}){if(this.transports.length&&this.clear(),this.silent=e,this.format=t||this.format||sn()(),this.defaultMeta=n||null,this.levels=i||this.levels||ig.npm.levels,this.level=a,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new X0(this),this.rejections=new eg(this),this.profilers={},this.exitOnError=o,s&&(s=Array.isArray(s)?s:[s],s.forEach(_=>this.add(_))),l||u||h||g||d||v)throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.","Use a custom winston.format(function) instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
30
+ `));c&&this.exceptions.handle(c),m&&this.rejections.handle(m)}isLevelEnabled(e){let t=_i(this.levels,e);if(t===null)return!1;let n=_i(this.levels,this.level);return n===null?!1:!this.transports||this.transports.length===0?n>=t:this.transports.findIndex(a=>{let o=_i(this.levels,a.level);return o===null&&(o=n),o>=t})!==-1}log(e,t,...n){if(arguments.length===1)return e[he]=e.level,this._addDefaultMeta(e),this.write(e),this;if(arguments.length===2)return t&&typeof t=="object"?(t[he]=t.level=e,this._addDefaultMeta(t),this.write(t),this):(t={[he]:e,level:e,message:t},this._addDefaultMeta(t),this.write(t),this);let[i]=n;if(typeof i=="object"&&i!==null&&!(t&&t.match&&t.match(ag))){let o=Object.assign({},this.defaultMeta,i,{[he]:e,[_u]:n,level:e,message:t});return i.message&&(o.message=`${o.message} ${i.message}`),i.stack&&(o.stack=i.stack),i.cause&&(o.cause=i.cause),this.write(o),this}return this.write(Object.assign({},this.defaultMeta,{[he]:e,[_u]:n,level:e,message:t})),this}_transform(e,t,n){if(this.silent)return n();e[he]||(e[he]=e.level),!this.levels[e[he]]&&this.levels[e[he]]!==0&&console.error("[winston] Unknown logger level: %s",e[he]),this._readableState.pipes||console.error("[winston] Attempt to write logs with no transports, which can increase memory usage: %j",e);try{this.push(this.format.transform(e,this.format.options))}finally{this._writableState.sync=!1,n()}}_final(e){let t=this.transports.slice();wu(t,(n,i)=>{if(!n||n.finished)return setImmediate(i);n.once("finish",i),n.end()},e)}add(e){let t=!xu(e)||e.log.length>2?new rg({transport:e}):e;if(!t._writableState||!t._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",t),this._onEvent("warn",t),this.pipe(t),e.handleExceptions&&this.exceptions.handle(),e.handleRejections&&this.rejections.handle(),this}remove(e){if(!e)return this;let t=e;return(!xu(e)||e.log.length>2)&&(t=this.transports.filter(n=>n.transport===e)[0]),t&&this.unpipe(t),this}clear(){return this.unpipe(),this}close(){return this.exceptions.unhandle(),this.rejections.unhandle(),this.clear(),this.emit("close"),this}setLevels(){ng.deprecated("setLevels")}query(e,t){typeof e=="function"&&(t=e,e={}),e=e||{};let n={},i=Object.assign({},e.query||{});function a(s,l){e.query&&typeof s.formatQuery=="function"&&(e.query=s.formatQuery(i)),s.query(e,(u,h)=>{if(u)return l(u);typeof s.formatResults=="function"&&(h=s.formatResults(h,e.format)),l(null,h)})}function o(s,l){a(s,(u,h)=>{l&&(h=u||h,h&&(n[s.name]=h),l()),l=null})}wu(this.transports.filter(s=>!!s.query),o,()=>t(null,n))}stream(e={}){let t=new Z0,n=[];return t._streams=n,t.destroy=()=>{let i=n.length;for(;i--;)n[i].destroy()},this.transports.filter(i=>!!i.stream).forEach(i=>{let a=i.stream(e);a&&(n.push(a),a.on("log",o=>{o.transport=o.transport||[],o.transport.push(i.name),t.emit("log",o)}),a.on("error",o=>{o.transport=o.transport||[],o.transport.push(i.name),t.emit("error",o)}))}),t}startTimer(){return new tg(this)}profile(e,...t){let n=Date.now();if(this.profilers[e]){let i=this.profilers[e];delete this.profilers[e],typeof t[t.length-2]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),t.pop());let a=typeof t[t.length-1]=="object"?t.pop():{};return a.level=a.level||"info",a.durationMs=n-i,a.message=a.message||e,this.write(a)}return this.profilers[e]=n,this}handleExceptions(...e){console.warn("Deprecated: .handleExceptions() will be removed in winston@4. Use .exceptions.handle()"),this.exceptions.handle(...e)}unhandleExceptions(...e){console.warn("Deprecated: .unhandleExceptions() will be removed in winston@4. Use .exceptions.unhandle()"),this.exceptions.unhandle(...e)}cli(){throw new Error(["Logger.cli() was removed in winston@3.0.0","Use a custom winston.formats.cli() instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
31
+ `))}_onEvent(e,t){function n(i){e==="error"&&!this.transports.includes(t)&&this.add(t),this.emit(e,i,t)}t["__winston"+e]||(t["__winston"+e]=n.bind(this),t.on(e,t["__winston"+e]))}_addDefaultMeta(e){this.defaultMeta&&Object.assign(e,this.defaultMeta)}};function _i(r,e){let t=r[e];return!t&&t!==0?null:t}Object.defineProperty(Ft.prototype,"transports",{configurable:!1,enumerable:!0,get(){let{pipes:r}=this._readableState;return Array.isArray(r)?r:[r].filter(Boolean)}});Eu.exports=Ft});var xi=f((yv,Su)=>{"use strict";var{LEVEL:og}=k(),sg=jt(),lg=It(),ug=Sr()("winston:create-logger");function cg(r){return"is"+r.charAt(0).toUpperCase()+r.slice(1)+"Enabled"}Su.exports=function(r={}){r.levels=r.levels||sg.npm.levels;class e extends lg{constructor(i){super(i)}}let t=new e(r);return Object.keys(r.levels).forEach(function(n){if(ug('Define prototype method for "%s"',n),n==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}e.prototype[n]=function(...i){let a=this||t;if(i.length===1){let[o]=i,s=o&&o.message&&o||{message:o};return s.level=s[og]=n,a._addDefaultMeta(s),a.write(s),this||t}return i.length===0?(a.log(n,""),a):a.log(n,...i)},e.prototype[cg(n)]=function(){return(this||t).isLevelEnabled(n)}}),t}});var Mu=f((wv,$u)=>{"use strict";var fg=xi();$u.exports=class{constructor(e={}){this.loggers=new Map,this.options=e}add(e,t){if(!this.loggers.has(e)){t=Object.assign({},t||this.options);let n=t.transports||this.options.transports;n?t.transports=Array.isArray(n)?n.slice():[n]:t.transports=[];let i=fg(t);i.on("close",()=>this._delete(e)),this.loggers.set(e,i)}return this.loggers.get(e)}get(e,t){return this.add(e,t)}has(e){return!!this.loggers.has(e)}close(e){if(e)return this._removeLogger(e);this.loggers.forEach((t,n)=>this._removeLogger(n))}_removeLogger(e){if(!this.loggers.has(e))return;this.loggers.get(e).close(),this._delete(e)}_delete(e){this.loggers.delete(e)}}});var Ou=f(A=>{"use strict";var qu=hn(),{warn:Rr}=dn();A.version=Qa().version;A.transports=Xl();A.config=jt();A.addColors=qu.levels;A.format=qu.format;A.createLogger=xi();A.Logger=It();A.ExceptionHandler=vi();A.RejectionHandler=bi();A.Container=Mu();A.Transport=Je();A.loggers=new A.Container;var de=A.createLogger();Object.keys(A.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(r=>A[r]=(...e)=>de[r](...e));Object.defineProperty(A,"level",{get(){return de.level},set(r){de.level=r}});Object.defineProperty(A,"exceptions",{get(){return de.exceptions}});Object.defineProperty(A,"rejections",{get(){return de.rejections}});["exitOnError"].forEach(r=>{Object.defineProperty(A,r,{get(){return de[r]},set(e){de[r]=e}})});Object.defineProperty(A,"default",{get(){return{exceptionHandlers:de.exceptionHandlers,rejectionHandlers:de.rejectionHandlers,transports:de.transports}}});Rr.deprecated(A,"setLevels");Rr.forFunctions(A,"useFormat",["cli"]);Rr.forProperties(A,"useFormat",["padLevels","stripColors"]);Rr.forFunctions(A,"deprecated",["addRewriter","addFilter","clone","extend"]);Rr.forProperties(A,"deprecated",["emitErrs","levelLength"])});var pg={};Bu(pg,{default:()=>dg});module.exports=Hu(pg);var Uu=[{previous:"$semantic.color.on-primary",next:["$color.palette.static-white"]},{previous:"$semantic.color.primary",next:["$color.bg.brand-solid","$color.fg.brand"],alternative:["$color.palette.carrot-600"]},{previous:"$semantic.color.primary-low",next:["$color.palette.carrot-100"]},{previous:"$semantic.color.secondary",next:["$color.palette.gray-900"]},{previous:"$semantic.color.secondary-low",next:["$color.bg.neutral-weak"],alternative:["$color.palette.gray-200"]},{previous:"$semantic.color.success",next:["$color.bg.positive-solid","$color.fg.positive"],alternative:["$color.fg.positive-contrast","$color.palette.green-700"]},{previous:"$semantic.color.success-low",next:["$color.bg.positive-weak"],alternative:["$color.palette.green-100"]},{previous:"$semantic.color.warning",next:["$color.bg.warning-solid"],alternative:["$color.fg.warning-contrast","$color.palette.yellow-500"]},{previous:"$semantic.color.warning-low",next:["$color.bg.warning-weak"],alternative:["$color.palette.yellow-100"]},{previous:"$semantic.color.danger",next:["$color.bg.critical-solid","$color.fg.critical"],alternative:["$color.fg.critical-contrast","$color.palette.red-700"]},{previous:"$semantic.color.danger-low",next:["$color.bg.critical-weak"],alternative:["$color.palette.red-100"]},{previous:"$semantic.color.overlay-dim",next:["$color.bg.overlay"],alternative:["$color.palette.static-black-alpha-500"]},{previous:"$semantic.color.overlay-low",next:["$color.bg.overlay-muted"],alternative:["$color.palette.static-black-alpha-200"]},{previous:"$semantic.color.paper-sheet",next:["$color.bg.layer-floating"],alternative:["$color.palette.gray-00"]},{previous:"$semantic.color.paper-dialog",next:["$color.bg.layer-floating"],alternative:["$color.palette.gray-00"]},{previous:"$semantic.color.paper-floating",next:["$color.bg.layer-floating"],alternative:["$color.palette.gray-00"]},{previous:"$semantic.color.paper-contents",next:["$color.bg.layer-fill"],alternative:["$color.palette.gray-100"]},{previous:"$semantic.color.paper-default",next:["$color.bg.layer-default"],alternative:["$color.palette.gray-00"]},{previous:"$semantic.color.paper-background",next:["$color.bg.layer-basement"],alternative:["$color.palette.gray-200"]},{previous:"$semantic.color.paper-accent",next:["$color.palette.carrot-100"]},{previous:"$semantic.color.primary-hover",next:["$color.bg.brand-solid-pressed"],alternative:["$color.palette.carrot-700"]},{previous:"$semantic.color.primary-pressed",next:["$color.bg.brand-solid-pressed"],alternative:["$color.palette.carrot-700"]},{previous:"$semantic.color.primary-low-hover",next:["$color.palette.carrot-200"]},{previous:"$semantic.color.primary-low-active",next:["$color.palette.carrot-100"]},{previous:"$semantic.color.primary-low-pressed",next:["$color.palette.carrot-200"]},{previous:"$semantic.color.gray-hover",next:["$color.bg.neutral-weak-pressed"],alternative:["$color.palette.gray-300"]},{previous:"$semantic.color.gray-pressed",next:["$color.bg.neutral-weak-pressed"],alternative:["$color.palette.gray-300"]},{previous:"$semantic.color.on-primary-overlay-50",next:[],description:"TBD"},{previous:"$semantic.color.on-primary-overlay-200",next:[],description:"TBD"},{previous:"$semantic.color.on-primary-low-overlay-50",next:[],description:"TBD"},{previous:"$semantic.color.on-primary-low-overlay-100",next:[],description:"TBD"},{previous:"$semantic.color.on-primary-low-overlay-200",next:[],description:"TBD"},{previous:"$semantic.color.on-gray-overlay-50",next:["$color.stroke.on-image"]},{previous:"$semantic.color.on-gray-overlay-100",next:[],description:"TBD"},{previous:"$semantic.color.divider-1",next:["$color.stroke.neutral-muted"],alternative:["$color.palette.static-black-alpha-50"]},{previous:"$semantic.color.divider-2",next:["$color.stroke.neutral"],alternative:["$color.palette.gray-300"]},{previous:"$semantic.color.divider-3",next:["$color.palette.gray-400"]},{previous:"$semantic.color.accent",next:["$color.bg.informative-solid","$color.fg.informative"],alternative:["$color.fg.informative-contrast","$color.palette.blue-700"]},{previous:"$semantic.color.ink-text",next:["$color.fg.neutral"],alternative:["$color.palette.gray-1000"]},{previous:"$semantic.color.ink-text-low",next:["$color.fg.neutral-subtle"],alternative:["$color.palette.gray-700"]},{previous:"$semantic.color.gray-active",next:["$color.fg.neutral-muted"],alternative:["$color.palette.gray-800"]}],Yu=[{previous:"$scale.color.gray-00",next:["$color.palette.gray-00"]},{previous:"$scale.color.gray-50",next:["$color.palette.gray-100"]},{previous:"$scale.color.gray-100",next:["$color.palette.gray-200"]},{previous:"$scale.color.gray-200",next:["$color.palette.gray-300"]},{previous:"$scale.color.gray-300",next:["$color.palette.gray-400"]},{previous:"$scale.color.gray-400",next:["$color.palette.gray-500"]},{previous:"$scale.color.gray-500",next:["$color.palette.gray-600"]},{previous:"$scale.color.gray-600",next:["$color.palette.gray-700"]},{previous:"$scale.color.gray-700",next:["$color.palette.gray-800"]},{previous:"$scale.color.gray-800",next:["$color.palette.gray-900"]},{previous:"$scale.color.gray-900",next:["$color.palette.gray-1000"]},{previous:"$scale.color.gray-alpha-50",next:["$color.palette.gray-200","$color.stroke.on-image"]},{previous:"$scale.color.gray-alpha-100",next:["$color.palette.gray-300"]},{previous:"$scale.color.gray-alpha-200",next:["$color.palette.gray-500"]},{previous:"$scale.color.gray-alpha-500",next:["$color.palette.gray-700"]},{previous:"$scale.color.carrot-50",next:["$color.palette.carrot-100"]},{previous:"$scale.color.carrot-100",next:["$color.palette.carrot-200"]},{previous:"$scale.color.carrot-200",next:["$color.palette.carrot-300"]},{previous:"$scale.color.carrot-300",next:["$color.palette.carrot-400"]},{previous:"$scale.color.carrot-400",next:["$color.palette.carrot-500"]},{previous:"$scale.color.carrot-500",next:["$color.palette.carrot-600"]},{previous:"$scale.color.carrot-600",next:["$color.palette.carrot-600"]},{previous:"$scale.color.carrot-700",next:["$color.palette.carrot-700"]},{previous:"$scale.color.carrot-800",next:["$color.palette.carrot-700"]},{previous:"$scale.color.carrot-900",next:["$color.palette.carrot-800"]},{previous:"$scale.color.carrot-950",next:["$color.palette.carrot-800"]},{previous:"$scale.color.carrot-alpha-50",next:["$color.palette.carrot-100"]},{previous:"$scale.color.carrot-alpha-100",next:["$color.palette.carrot-200"]},{previous:"$scale.color.carrot-alpha-200",next:["$color.palette.carrot-200"]},{previous:"$scale.color.blue-50",next:["$color.palette.blue-100"]},{previous:"$scale.color.blue-100",next:["$color.palette.blue-200"]},{previous:"$scale.color.blue-200",next:["$color.palette.blue-300"]},{previous:"$scale.color.blue-300",next:["$color.palette.blue-400"]},{previous:"$scale.color.blue-400",next:["$color.palette.blue-400"]},{previous:"$scale.color.blue-500",next:["$color.palette.blue-600"]},{previous:"$scale.color.blue-600",next:["$color.palette.blue-600"]},{previous:"$scale.color.blue-700",next:["$color.palette.blue-800"]},{previous:"$scale.color.blue-800",next:["$color.palette.blue-900"]},{previous:"$scale.color.blue-900",next:["$color.palette.blue-900"]},{previous:"$scale.color.blue-950",next:["$color.palette.blue-1000"]},{previous:"$scale.color.blue-alpha-50",next:["$color.palette.blue-100"]},{previous:"$scale.color.blue-alpha-100",next:["$color.palette.blue-100"]},{previous:"$scale.color.blue-alpha-200",next:["$color.palette.blue-200"]},{previous:"$scale.color.red-50",next:["$color.palette.red-100"]},{previous:"$scale.color.red-100",next:["$color.palette.red-200"]},{previous:"$scale.color.red-200",next:["$color.palette.red-300"]},{previous:"$scale.color.red-300",next:["$color.palette.red-400"]},{previous:"$scale.color.red-400",next:["$color.palette.red-600"]},{previous:"$scale.color.red-500",next:["$color.palette.red-700"]},{previous:"$scale.color.red-600",next:["$color.palette.red-700"]},{previous:"$scale.color.red-700",next:["$color.palette.red-800"]},{previous:"$scale.color.red-800",next:["$color.palette.red-900"]},{previous:"$scale.color.red-900",next:["$color.palette.red-900"]},{previous:"$scale.color.red-950",next:["$color.palette.red-900"]},{previous:"$scale.color.red-alpha-50",next:["$color.palette.red-100"]},{previous:"$scale.color.red-alpha-100",next:["$color.palette.red-200"]},{previous:"$scale.color.red-alpha-200",next:["$color.palette.red-300"]},{previous:"$scale.color.green-50",next:["$color.palette.green-100"]},{previous:"$scale.color.green-100",next:["$color.palette.green-200"]},{previous:"$scale.color.green-200",next:["$color.palette.green-300"]},{previous:"$scale.color.green-300",next:["$color.palette.green-400"]},{previous:"$scale.color.green-400",next:["$color.palette.green-500"]},{previous:"$scale.color.green-500",next:["$color.palette.green-600"]},{previous:"$scale.color.green-600",next:["$color.palette.green-700"]},{previous:"$scale.color.green-700",next:["$color.palette.green-800"]},{previous:"$scale.color.green-800",next:["$color.palette.green-900"]},{previous:"$scale.color.green-900",next:["$color.palette.green-900"]},{previous:"$scale.color.green-950",next:["$color.palette.green-900"]},{previous:"$scale.color.green-alpha-50",next:["$color.palette.green-100"]},{previous:"$scale.color.green-alpha-100",next:["$color.palette.green-200"]},{previous:"$scale.color.green-alpha-200",next:["$color.palette.green-200"]},{previous:"$scale.color.yellow-50",next:["$color.palette.yellow-100"]},{previous:"$scale.color.yellow-100",next:["$color.palette.yellow-200"]},{previous:"$scale.color.yellow-200",next:["$color.palette.yellow-300"]},{previous:"$scale.color.yellow-300",next:["$color.palette.yellow-400"]},{previous:"$scale.color.yellow-400",next:["$color.palette.yellow-500"]},{previous:"$scale.color.yellow-500",next:["$color.palette.yellow-700"]},{previous:"$scale.color.yellow-600",next:["$color.palette.yellow-700"]},{previous:"$scale.color.yellow-700",next:["$color.palette.yellow-800"]},{previous:"$scale.color.yellow-800",next:["$color.palette.yellow-800"]},{previous:"$scale.color.yellow-900",next:["$color.palette.yellow-900"]},{previous:"$scale.color.yellow-950",next:["$color.palette.yellow-900"]},{previous:"$scale.color.yellow-alpha-50",next:["$color.palette.yellow-100"]},{previous:"$scale.color.yellow-alpha-100",next:["$color.palette.yellow-100"]},{previous:"$scale.color.yellow-alpha-200",next:["$color.palette.yellow-100"]},{previous:"$scale.color.purple-50",next:["$color.palette.purple-100"]},{previous:"$scale.color.purple-100",next:["$color.palette.purple-300"]},{previous:"$scale.color.purple-200",next:["$color.palette.purple-400"]},{previous:"$scale.color.purple-300",next:["$color.palette.purple-400"]},{previous:"$scale.color.purple-400",next:["$color.palette.purple-500"]},{previous:"$scale.color.purple-500",next:["$color.palette.purple-600"]},{previous:"$scale.color.purple-600",next:["$color.palette.purple-700"]},{previous:"$scale.color.purple-700",next:["$color.palette.purple-800"]},{previous:"$scale.color.purple-800",next:["$color.palette.purple-900"]},{previous:"$scale.color.purple-900",next:["$color.palette.purple-900"]},{previous:"$scale.color.purple-950",next:["$color.palette.purple-1000"]}],Gu=[{previous:"$static.color.static-black",next:["$color.palette.static-black"]},{previous:"$static.color.static-white",next:["$color.palette.static-white"]},{previous:"$static.color.static-gray-900",next:[],description:"static \uC0C9\uC0C1 \uC0AC\uC6A9 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},{previous:"$static.color.static-carrot-50",next:[],description:"static \uC0C9\uC0C1 \uC0AC\uC6A9 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},{previous:"$static.color.static-carrot-800",next:[],description:"static \uC0C9\uC0C1 \uC0AC\uC6A9 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},{previous:"$static.color.static-green-50",next:[],description:"static \uC0C9\uC0C1 \uC0AC\uC6A9 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},{previous:"$static.color.static-green-800",next:[],description:"static \uC0C9\uC0C1 \uC0AC\uC6A9 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},{previous:"$static.color.static-yellow-50",next:[],description:"static \uC0C9\uC0C1 \uC0AC\uC6A9 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},{previous:"$static.color.static-yellow-800",next:[],description:"static \uC0C9\uC0C1 \uC0AC\uC6A9 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},{previous:"$static.color.static-red-50",next:[],description:"static \uC0C9\uC0C1 \uC0AC\uC6A9 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},{previous:"$static.color.static-red-800",next:[],description:"static \uC0C9\uC0C1 \uC0AC\uC6A9 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},{previous:"$static.color.static-blue-50",next:[],description:"static \uC0C9\uC0C1 \uC0AC\uC6A9 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},{previous:"$static.color.static-blue-800",next:[],description:"static \uC0C9\uC0C1 \uC0AC\uC6A9 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},{previous:"$static.color.static-black-alpha-200",next:["$color.palette.static-black-alpha-200"]},{previous:"$static.color.static-black-alpha-500",next:["$color.palette.static-black-alpha-500"]},{previous:"$static.color.static-white-alpha-50",next:[],description:"static \uC0C9\uC0C1 \uC0AC\uC6A9 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},{previous:"$static.color.static-white-alpha-200",next:["$color.palette.static-white-alpha-200"]}],Ti=[...Uu,...Yu,...Gu];var U=zu(Ou(),1);function Ru(r){let e=(0,U.createLogger)({level:"debug",format:U.format.combine(U.format.timestamp({format:"YYYY-MM-DD HH:mm:ss"}),U.format.printf(({level:t,message:n,timestamp:i,...a})=>{let o=Object.keys(a).length?` ${JSON.stringify(a)}`:"";return`${i} [${t.toUpperCase()}] ${r}: ${n}${o}`})),transports:[new U.transports.File({filename:`.report/${r}-success.log`,level:"info",format:U.format.combine(U.format.timestamp({format:"YYYY-MM-DD HH:mm:ss"}),U.format.printf(({message:t,timestamp:n,...i})=>{let a=Object.keys(i).length?` ${JSON.stringify(i)}`:"";return`${n} [SUCCESS] ${r}: ${t}${a}`}))}),new U.transports.File({filename:`.report/${r}-issues.log`,level:"warn",format:U.format.combine(U.format.timestamp({format:"YYYY-MM-DD HH:mm:ss"}),U.format.printf(({level:t,message:n,timestamp:i,...a})=>{let o=Object.keys(a).length?` ${JSON.stringify(a)}`:"";return`${i} [${t.toUpperCase()}] ${r}: ${n}${o}`}))}),new U.transports.File({filename:`.report/${r}-debug.log`,level:"debug"}),new U.transports.Console({level:process.env.LOG==="true"?"debug":"info"})]});return{logger:e,logTransformResult(t,n){let{status:i,previousToken:a,nextToken:o,line:s,failureReason:l}=n,u=i==="success"?"info":i==="warning"?"warn":"error",h=s?`(line: ${s})`:"",g=`${t}${h}: ${a} -> ${o||"undefined"}`;e.log({level:u,message:g,...l&&{failureReason:l},metadata:n})},startFile(t){e.debug(`Starting transformation of ${t}`)},finishFile(t){e.debug(`Finished transformation of ${t}`)}}}function ke(r){let e=[],t=r.node;for(;t.type==="MemberExpression";)t.property.type==="Identifier"&&e.unshift(t.property.name),t=t.object;return t.type==="Identifier"&&e.unshift(t.name),e.join(".")}function Ei(r,e){let t=e.split("."),n=r.identifier(t[0]);for(let i=1;i<t.length;i++)n=r.memberExpression(n,r.identifier(t[i]));return n}function Tu(r,e,t,n,i){if(!n)return;let a=e.find(r.ImportDeclaration,{source:{value:"@seed-design/design-token"}});if(a.length===0)return;let o=e.get().node.comments||[];if(i||t){if(a.forEach(l=>{var d,v;let u=l.node.comments||[],h=(d=l.node.specifiers)==null?void 0:d.filter(c=>c.type==="ImportSpecifier"&&c.imported.name==="vars"),g=((v=l.node.specifiers)==null?void 0:v.filter(c=>!(c.type==="ImportSpecifier"&&c.imported.name==="vars")))||[];l.node.specifiers=[...g,...h!=null&&h.length?[r.importSpecifier(r.identifier("vars"),r.identifier("legacyVars"))]:[]],l.node.comments=u}),e.find(r.ImportDeclaration,{source:{value:"@seed-design/css/vars"}}).length===0){let l=r.importDeclaration([r.importSpecifier(r.identifier("vars"),r.identifier("vars"))],r.literal("@seed-design/css/vars")),u=e.find(r.ImportDeclaration).at(0);u.size()>0?u.insertAfter(l):e.get().node.program.body.unshift(l)}}else a.forEach(s=>{let l=s.node.comments||[];s.node.source.value="@seed-design/css/vars",s.node.comments=l});o.length>0&&(e.get().node.comments=o)}function Au(r){return r.replace(/^vars\./,"").replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`).replace(/(\d+)/g,"-$1")}function Lu(r){return`vars.${r.replace(/-(\d+)/g,"$1").replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}`}var hg=(r,e)=>{let t=Ru("replace-color-design-token"),n=e.jscodeshift,i=n(r.source);t.startFile(r.path);let a=new Set,o=!1,s=new Set;if(i.find(n.MemberExpression).filter(u=>ke(u).startsWith("vars.")).forEach(u=>{let h=ke(u);if(h.startsWith("vars.")&&!h.includes("color")){let g=h.split(".");g.length>=2&&s.add(g[1])}}),i.find(n.MemberExpression).filter(u=>ke(u).startsWith("vars.")).forEach(u=>{var c;let h=ke(u),g=Au(h),d=Ti.find(m=>m.previous===g),v=(c=u.node.loc)==null?void 0:c.start.line;if(d){let m=null;if(d.next.length===1)m=d.next[0];else if(d.next.length>1){let M=d.next.filter(y=>y.includes("$color.palette"));if(M.length>0)m=M[0];else if("alternative"in d&&Array.isArray(d.alternative)&&d.alternative.length>0){let y=d.alternative.filter(S=>S.includes("$color.palette"));y.length>0&&(m=y[0])}}if(!m){t.logTransformResult(r.path,{previousToken:h,nextToken:null,line:v,status:"failure",failureReason:d.next.length===0?"No mapping available":"No palette mapping found"}),a.add(h);return}let _=Lu(m),x=Ei(n,_);u.replace(x),o=!0,t.logTransformResult(r.path,{previousToken:h,nextToken:_,line:v,status:"success"})}}),Tu(n,i,a.size>0,o,s.size>0),a.size>0&&i.find(n.MemberExpression).filter(u=>{let h=ke(u);return a.has(h)}).forEach(u=>{let g=ke(u).replace(/^vars\./,"legacyVars."),d=Ei(n,g);u.replace(d)}),i.find(n.Identifier,{name:"legacyVars"}).length===1){let u=i.get().node.comments||[],h=i.find(n.ImportDeclaration,{source:{value:"@seed-design/design-token"}}),g=[];if(h.forEach(d=>{d.node.comments&&d.node.comments.length>0&&(g=[...g,...d.node.comments])}),h.remove(),g.length>0){let d=i.find(n.ImportDeclaration).at(0);d.size()>0?d.get().node.comments=[...d.get().node.comments||[],...g]:i.get().node.comments=[...u,...g]}}return t.finishFile(r.path),i.toSource({})},dg=hg;
32
+ /*! Bundled license information:
14
33
 
15
- `);v.writeFileSync(e,r+(r?`
16
-
17
- `:"")+u)}};function R(o,e,r,u,$){if(!u)return;let l=e.find(o.ImportDeclaration,{source:{value:"@seed-design/design-token"}});if(l.length===0)return;let p=e.get().node.comments||[];if($||r){if(l.forEach(t=>{var s,c;let m=t.node.comments||[],d=(s=t.node.specifiers)==null?void 0:s.filter(i=>i.type==="ImportSpecifier"&&i.imported.name==="vars"),y=((c=t.node.specifiers)==null?void 0:c.filter(i=>!(i.type==="ImportSpecifier"&&i.imported.name==="vars")))||[];t.node.specifiers=[...y,...d!=null&&d.length?[o.importSpecifier(o.identifier("vars"),o.identifier("legacyVars"))]:[]],t.node.comments=m}),e.find(o.ImportDeclaration,{source:{value:"@seed-design/css/vars"}}).length===0){let t=o.importDeclaration([o.importSpecifier(o.identifier("vars"),o.identifier("vars"))],o.literal("@seed-design/css/vars")),m=e.find(o.ImportDeclaration).at(0);m.size()>0?m.insertAfter(t):e.get().node.program.body.unshift(t)}}else l.forEach(n=>{let t=n.node.comments||[];n.node.source.value="@seed-design/css/vars",n.node.comments=t});p.length>0&&(e.get().node.comments=p)}function f(o){let e=[],r=o.node;for(;r.type==="MemberExpression";)r.property.type==="Identifier"&&e.unshift(r.property.name),r=r.object;return r.type==="Identifier"&&e.unshift(r.name),e.join(".")}function k(o,e){let r=e.split("."),u=o.identifier(r[0]);for(let $=1;$<r.length;$++)u=o.memberExpression(u,o.identifier(r[$]));return u}function S(o){return o.replace(/^vars\./,"").replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`).replace(/(\d+)/g,"-$1")}function F(o){return`vars.${o.replace(/-(\d+)/g,"$1").replace(/-([a-z])/g,(e,r)=>r.toUpperCase())}`}var Z=(o,e,r)=>{let u=r,{reporter:$}=u,l=e.jscodeshift,p=l(o.source),n=null;$&&(n=new w("replace-color-design-token"),n.startNewFile(o.path));let t=new Set,m=!1,d=new Set;if(p.find(l.MemberExpression).filter(s=>f(s).startsWith("vars.")).forEach(s=>{let c=f(s);if(c.startsWith("vars.")&&!c.includes("color")){let i=c.split(".");i.length>=2&&d.add(i[1])}}),p.find(l.MemberExpression).filter(s=>f(s).startsWith("vars.")).forEach(s=>{var M;let c=f(s),i=S(c),a=C.find(x=>x.previous===i),T=(M=s.node.loc)==null?void 0:M.start.line;if(a){let x=null;if(a.next.length===1)x=a.next[0];else if(a.next.length>1){let N=a.next.filter(h=>h.includes("$color.palette"));if(N.length>0)x=N[0];else if("alternative"in a&&Array.isArray(a.alternative)&&a.alternative.length>0){let h=a.alternative.filter(P=>P.includes("$color.palette"));h.length>0&&(x=h[0])}}if(!x){n&&n.addResult({previousToken:c,nextToken:null,line:T,status:"failure",failureReason:a.next.length===0?"No mapping available":"No palette mapping found"}),t.add(c);return}let I=F(x),j=k(l,I);s.replace(j),m=!0,n&&n.addResult({previousToken:c,nextToken:I,line:T,status:"success"})}}),R(l,p,t.size>0,m,d.size>0),t.size>0&&p.find(l.MemberExpression).filter(s=>{let c=f(s);return t.has(c)}).forEach(s=>{let i=f(s).replace(/^vars\./,"legacyVars."),a=k(l,i);s.replace(a)}),p.find(l.Identifier,{name:"legacyVars"}).length===1){let s=p.get().node.comments||[],c=p.find(l.ImportDeclaration,{source:{value:"@seed-design/design-token"}}),i=[];if(c.forEach(a=>{a.node.comments&&a.node.comments.length>0&&(i=[...i,...a.node.comments])}),c.remove(),i.length>0){let a=p.find(l.ImportDeclaration).at(0);a.size()>0?a.get().node.comments=[...a.get().node.comments||[],...i]:p.get().node.comments=[...s,...i]}}return n&&(n.finishFile(),n.writeReport()),p.toSource({})},_=Z;
34
+ safe-buffer/index.js:
35
+ (*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
36
+ */