diff --git a/precompiled/app.js b/precompiled/app.js index 75c173c53e..43a8b98c2a 100644 --- a/precompiled/app.js +++ b/precompiled/app.js @@ -1,6 +1,6 @@ #!/usr/bin/env node -(()=>{var e={9220:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8105),r(1114),r(233),r(2051),r(5607),r(5148),r(9603),r(262),r(5636),r(646),r(2477),r(8778),r(5198),r(7494),r(5885),r(3390),r(9826),r(4049),r(4153),r(4594),r(5334),r(1747),r(5016),r(5321),r(4294),r(2189),r(5584),r(9018),r(7832),r(5736),r(3098),r(1133),r(5261),r(4427),r(427),r(764),r(1962),r(179),r(8540),r(5665);let{EventEmitter:i}=r(2361),{logScope:o}=r(7691),s=o("cache"),a={CLEANUP:"cs@cleanup"};class u extends i{id="Default Cache Storage";cacheMap=new Map;aliveDuration=18e5;constructor(e){super(),e&&(this.id=e),this.on(a.CLEANUP,async()=>this.removeExpiredCache())}get WillExpireAt(){return Date.now()+this.aliveDuration}getLoggerContext(e={}){return{...e,cacheStorageId:this.id}}removeExpiredCache(){s.debug(this.getLoggerContext(),"Cleaning up the expired caches..."),this.cacheMap.forEach((e,t)=>{e.expireAt<=Date.now()&&this.cacheMap.delete(t)})}async cache(e,t,r){if("true"===process.env.NO_CACHE)return t();this.emit(a.CLEANUP);let i=this.cacheMap.get(e),o="object"==typeof e?"Something":e,u=this.getLoggerContext({logKey:o});if(i)return s.debug(u,`${o} hit!`),i.data;s.debug(u,`${o} did not hit. Storing the execution result...`);let c=await t();return this.cacheMap.set(e,{data:c,expireAt:new Date(r||this.WillExpireAt)}),c}}class c{static instance=void 0;cacheStorages=new Set;constructor(){}static getInstance(){return c.instance||(c.instance=new c),c.instance}cleanup(){this.cacheStorages.forEach(e=>e.removeExpiredCache())}}let l=c.getInstance();e.exports={CacheStorage:u,CacheStorageEvents:a,CacheStorageGroup:c,getManagedCacheStorage:function(e){let t=new u(e);return l.cacheStorages.add(t),t}}},2188:(e,t,r)=>{"use strict";let i=r(2361),o="cancel";e.exports={CancelRequest:class extends i{cancelled=!1;cancel(){this.cancelled=!0,this.emit(o)}},ON_CANCEL:o}},5796:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(2961),r(8458),r(9141),r(751),r(4678),r(9826),r(5885),r(3390),r(7308),r(9884),r(7887);let i={width:80,_program:{},_options:[],program:(e={})=>(i._program=e,i),option:(e,t={})=>(e=Array.isArray(e)?e:[e],t.dest=t.dest||e.slice(-1)[0].toLowerCase().replace(/^-+/,"").replace(/-[a-z]/g,e=>e.slice(1).toUpperCase()),t.help=t.help||({help:"output usage information",version:"output the version number"})[t.action],i._options.push(Object.assign(t,{flags:e,positional:!e[0].startsWith("-")})),i),parse:e=>{let t=i._options.map((e,t)=>e.positional?t:null).filter(e=>null!==e),o={};i._options.forEach((e,t)=>e.positional?null:e.flags.forEach(e=>o[e]=t)),i._program.name=i._program.name||r(1017).parse(e[1]).base;let s=e.slice(2).reduce((e,t)=>/^-[^-]/.test(t)?e.concat(t.slice(1).split("").map(e=>"-"+e)):e.concat(t),[]),l=0;for(;le in o),a=-1===t?s.length:l+t;0===(e=s.slice(l,a)).length&&(i._options[f].positional?c(`the following arguments are required: ${r}`):"+"===i._options[f].nargs?c(`argument ${r}: expected at least one argument`):c(`argument ${r}: expected one argument`)),"+"!==i._options[f].nargs?(e=e[0],l+=1):l=a}i[i._options[f].dest]=e}return t.length&&c(`the following arguments are required: ${t.map(e=>i._options[e].flags[0]).join(", ")}`),i}},o=e=>Array(e+1).join(" "),s=()=>{let e=i._options.map(e=>{let t=e.flags.sort((e,t)=>e.length-t.length)[0],r=e.metavar||e.dest;return e.positional?"+"===e.nargs?`${r} [${r} ...]`:`${r}`:["store_true","store_false","help","version"].includes(e.action)?`[${t}]`:"+"===e.nargs?`[${t} ${r} [${r} ...]]`:`[${t} ${r}]`}),t=i.width,r=`usage: ${i._program.name}`,s=[r];e.map(e=>" "+e).forEach(e=>{s[s.length-1].length+e.length{s();let e=i._options.filter(e=>e.positional).map(e=>[e.metavar||e.dest,e.help]),t=i._options.filter(e=>!e.positional).map(e=>{let{flags:t}=e,r=e.metavar||e.dest;return[["store_true","store_false","help","version"].includes(e.action)?t.map(e=>`${e}`).join(", "):"+"===e.nargs?t.map(e=>`${e} ${r} [${r} ...]`).join(", "):t.map(e=>`${e} ${r}`).join(", "),e.help]}),r=Math.max.apply(null,e.concat(t).map(e=>e[0].length));r=r>30?30:r;let a=i.width-r-4,u=e=>{let t=e=>Array.from(Array(Math.ceil(e.length/a)).keys()).map(t=>e.slice(t*a,(t+1)*a)).join("\n"+o(r+4));e[0].length{console.log(i._program.version),process.exit()},c=e=>{s(),console.log(i._program.name+":","error:",e),process.exit(1)};e.exports=i},1784:(e,t,r)=>{"use strict";let i={qq:r(9878),kugou:r(4840),kuwo:r(3081),migu:r(1549),joox:r(9788),youtube:r(8396),youtubedl:r(4396),ytdlp:r(8965),bilibili:r(8573),pyncmd:r(2085)};e.exports={DEFAULT_SOURCE:["kugou","kuwo","migu","bilibili","ytdlp"],PROVIDERS:i}},743:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9884),r(7887),r(9826),r(8458),r(9141);let i=r(6113),o=r(7310).parse,s=r(3477).stringify,a="e82ckenh8dichen8",u="rFgB&h#%2?^eDg:Q",c=(e,t)=>{let r=i.createDecipheriv("aes-128-ecb",t,null);return Buffer.concat([r.update(e),r.final()])},l=(e,t)=>{let r=i.createCipheriv("aes-128-ecb",t,null);return Buffer.concat([r.update(e),r.final()])};e.exports={eapi:{encrypt:e=>l(e,a),decrypt:e=>c(e,a),encryptRequest:(t,r)=>{t=o(t);let a=JSON.stringify(r),u=`nobody${t.path}use${a}md5forencrypt`,c=i.createHash("md5").update(u).digest("hex"),l=`${t.path}-36cd479b6b5-${a}-36cd479b6b5-${c}`;return{url:t.href.replace(/\w*api/,"eapi"),body:s({params:e.exports.eapi.encrypt(Buffer.from(l)).toString("hex").toUpperCase()})}}},linuxapi:{encrypt:e=>l(e,u),decrypt:e=>c(e,u),encryptRequest:(t,r)=>{t=o(t);let i=JSON.stringify({method:"POST",url:t.href,params:r});return{url:t.resolve("/api/linux/forward"),body:s({eparams:e.exports.linuxapi.encrypt(Buffer.from(i)).toString("hex").toUpperCase()})}}},miguapi:{encryptBody:e=>{let t=JSON.stringify(e),r=Buffer.from(i.randomBytes(32).toString("hex")),o=i.randomBytes(8),a=((e,t,r,o)=>{t=t||Buffer.alloc(0);let s=Math.ceil((32+8*o)/32),a=Buffer.concat(Array(s).fill(null).reduce(r=>r.concat(i.createHash("md5").update(Buffer.concat([r.slice(-1)[0],e,t])).digest()),[Buffer.alloc(0)]));return{key:a.slice(0,32),iv:a.slice(32,32+o)}})(r,o,0,16),u=i.createCipheriv("aes-256-cbc",a.key,a.iv);return s({data:Buffer.concat([Buffer.from("Salted__"),o,u.update(Buffer.from(t)),u.final()]).toString("base64"),secKey:i.publicEncrypt({key:"-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC8asrfSaoOb4je+DSmKdriQJKWVJ2oDZrs3wi5W67m3LwTB9QVR+cE3XWU21Nx+YBxS0yun8wDcjgQvYt625ZCcgin2ro/eOkNyUOTBIbuj9CvMnhUYiR61lC1f1IGbrSYYimqBVSjpifVufxtx/I3exReZosTByYp4Xwpb1+WAQIDAQAB\n-----END PUBLIC KEY-----",padding:i.constants.RSA_PKCS1_PADDING},r).toString("base64")})}},base64:{encode:(e,t)=>Buffer.from(e,t).toString("base64").replace(/\+/g,"-").replace(/\//g,"_"),decode:(e,t)=>Buffer.from(e.replace(/-/g,"+").replace(/_/g,"/"),"base64").toString(t)},uri:{retrieve:e=>{e=e.toString().trim();let t="3go8&$8*3*3h0k(2)2",r=Array.from(Array(e.length).keys()).map(r=>String.fromCharCode(e.charCodeAt(r)^t.charCodeAt(r%t.length))).join(""),o=i.createHash("md5").update(r).digest("base64").replace(/\//g,"_").replace(/\+/g,"-");return`http://p1.music.126.net/${o}/${e}`}},md5:{digest:e=>i.createHash("md5").update(e).digest("hex"),pipe:e=>new Promise((t,r)=>{let o=i.createHash("md5").setEncoding("hex");e.pipe(o).on("error",e=>r(e)).once("finish",()=>t(o.read()))})},sha1:{digest:e=>i.createHash("sha1").update(e).digest("hex")},random:{hex:e=>i.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}};try{e.exports.kuwoapi=r(5477)}catch(e){}},312:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(2738),e.exports=class extends Error{constructor(e){super(`The audio data is incomplete: ${e}`),this.name="IncompleteAudioData"}}},3942:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(2738),e.exports=class extends Error{constructor(e,t){super(`${e} exited with ${t}, which is not zero.`),this.process=e,this.exitCode=t,this.name="ProcessExitNotSuccessfully"}}},4113:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(2738),e.exports=class extends Error{constructor(e){super(`This request URL has been cancelled: ${e}`),this.name="RequestCancelled"}}},6014:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(2738),e.exports=class extends Error{constructor(e,t){super(`Failed to get the response. Status code: ${t}`),this.url=e,this.code=t,this.name="RequestFailed"}}},9057:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(2738),e.exports=class extends Error{constructor(e,t="?"){super(`This song "${t}" is not available in ${e}`),this.name="SongNotAvailable"}}},5467:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(2738),e.exports=class extends Error{constructor(e){super("The response of youtube-dl is malformed."),this.name="YoutubeDlInvalidResponse",this.response=e}}},58:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(2738),e.exports=class extends Error{constructor(){super('You must install "youtube-dl" before using the "youtubedl" source.'),this.name="YoutubeDlNotInstalled"}}},2962:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(2738),e.exports=class extends Error{constructor(e){super("The response of yt-dlp is malformed."),this.name="YtDlpInvalidResponse",this.response=e}}},8761:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(2738),e.exports=class extends Error{constructor(){super('You must install "yt-dlp" before using the "ytdlp" source.'),this.name="YtDlpNotInstalled"}}},403:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8458),r(9141),r(751),r(4678),r(9826),r(4049),r(4153),r(4594),r(5334),r(1747),r(5016),r(5321),r(4294),r(2189),r(5584),r(9018),r(7832),r(5736),r(3098),r(1133),r(5261),r(4427),r(427),r(764),r(1962),r(179),r(8540),r(5665),r(8157),r(9059),r(6497),r(2738),r(5885),r(3390),r(9884),r(7887);let i=r(7310).parse,o=r(743),s=r(5262),a=r(886),u=r(3477),{isHost:c}=r(5157),{getManagedCacheStorage:l}=r(9220),{logScope:f}=r(7691),h=f("hook"),p=l("hook");p.aliveDuration=6048e5;let d=["true","cvip","svip"].includes((process.env.ENABLE_LOCAL_VIP||"").toLowerCase()),g="true"===(process.env.BLOCK_ADS||"").toLowerCase(),y="true"===(process.env.DISABLE_UPGRADE_CHECK||"").toLowerCase(),m="svip"===(process.env.ENABLE_LOCAL_VIP||"").toLowerCase(),b=(process.env.LOCAL_VIP_UID||"").split(",").map(e=>parseInt(e)).filter(e=>!Number.isNaN(e)),v={request:{before:()=>{},after:()=>{}},connect:{before:()=>{}},negotiate:{before:()=>{}},target:{host:new Set,path:new Set}};v.target.host=new Set(["music.163.com","interface.music.163.com","interface3.music.163.com","apm.music.163.com","apm3.music.163.com","interface.music.163.com.163jiasu.com","interface3.music.163.com.163jiasu.com"]),v.target.path=new Set(["/api/v3/playlist/detail","/api/v3/song/detail","/api/v6/playlist/detail","/api/album/play","/api/artist/privilege","/api/album/privilege","/api/v1/artist","/api/v1/artist/songs","/api/artist/top/song","/api/v1/album","/api/album/v3/detail","/api/playlist/privilege","/api/song/enhance/player/url","/api/song/enhance/player/url/v1","/api/song/enhance/download/url","/api/song/enhance/download/url/v1","/api/song/enhance/privilege","/api/ad","/batch","/api/batch","/api/listen/together/privilege/get","/api/v1/search/get","/api/v1/search/song/get","/api/search/complex/get","/api/search/complex/page","/api/search/song/page","/api/cloudsearch/pc","/api/v1/playlist/manipulate/tracks","/api/song/like","/api/v1/play/record","/api/playlist/v4/detail","/api/v1/radio/get","/api/v1/discovery/recommend/songs","/api/usertool/sound/mobile/promote","/api/usertool/sound/mobile/theme","/api/usertool/sound/mobile/animationList","/api/usertool/sound/mobile/all","/api/usertool/sound/mobile/detail","/api/vipauth/app/auth/query","/api/music-vip-membership/client/vip/info"]);let w=["music.163.com","music.126.net","iplay.163.com","look.163.com","y.163.com"];v.request.before=e=>{let{req:t}=e;t.url=(t.url.startsWith("http://")?"":(t.socket.encrypted?"https:":"http:")+"//"+(w.some(e=>(t.headers.host||"").endsWith(e))?t.headers.host:null))+t.url;let r=i(t.url);if([r.hostname,t.headers.host].some(e=>c(e,"music.163.com"))&&(e.decision="proxy"),[r.hostname,t.headers.host].some(e=>v.target.host.has(e))&&"POST"===t.method&&("/api/linux/forward"===r.path||r.path.startsWith("/eapi/")))return s.read(t).then(e=>t.body=e).then(s=>{if("x-napm-retry"in t.headers&&delete t.headers["x-napm-retry"],t.headers["X-Real-IP"]="118.88.88.88",!(t.url.includes("stream")||t.url.includes("/eapi/cloud/upload/check"))&&(t.headers["Accept-Encoding"]="gzip, deflate",s)){let t;let a={};if(a.pad=(s.match(/%0+$/)||[""])[0],a.forward="/api/linux/forward"===r.path,a.forward?(t=JSON.parse(o.linuxapi.decrypt(Buffer.from(s.slice(8,s.length-a.pad.length),"hex")).toString()),a.path=i(t.url).path,a.param=t.params):(t=o.eapi.decrypt(Buffer.from(s.slice(7,s.length-a.pad.length),"hex")).toString().split("-36cd479b6b5-"),a.path=t[0],a.param=JSON.parse(t[1])),a.path=a.path.replace(/\/\d*$/,""),e.netease=a,"/api/song/enhance/download/url"===a.path)return _(e);if("/api/song/enhance/download/url/v1"===a.path)return S(e);g&&a.path.startsWith("/api/ad")&&(e.error=Error("ADs blocked."),e.decision="close"),y&&a.path.match(/^\/api(\/v1)?\/(android|ios|osx|pc)\/(upgrade|version)/)&&(e.error=Error("Upgrade check blocked."),e.decision="close")}}).catch(e=>e&&h.error(e,`A error occurred in hook.request.before when hooking ${t.url}.`));if(v.target.host.has(r.hostname)&&(r.path.startsWith("/weapi/")||r.path.startsWith("/api/")))t.headers["X-Real-IP"]="118.88.88.88",e.netease={web:!0,path:r.path.replace(/^\/weapi\//,"/api/").split("?").shift().replace(/\/\d*$/,"")};else if(t.url.includes("package"))try{let r=t.url.split("package/").pop().split("/"),s=i(o.base64.decode(r[0])),a=r[1].replace(/\.\w+/,"");t.url=s.href,t.headers.host=s.hostname,t.headers.cookie=null,e.package={id:a},e.decision="proxy"}catch(t){e.error=t,e.decision="close"}},v.request.after=e=>{let{req:t,proxyRes:r,netease:a,package:u}=e;if("tyst.migu.cn"===t.headers.host&&r.headers["content-range"]&&200===r.statusCode&&(r.statusCode=206),a&&v.target.path.has(a.path)&&200===r.statusCode)return s.read(r,!0).then(e=>e.length?r.body=e:Promise.reject()).then(t=>{let r=e=>e.replace(/([^\\]"\s*:\s*)(\d{16,})(\s*[}|,])/g,'$1"$2L"$3');try{a.encrypted=!1,a.jsonBody=JSON.parse(r(t.toString()))}catch(e){a.encrypted=!0,a.jsonBody=JSON.parse(r(o.eapi.decrypt(t).toString()))}if(d){let e="/api/music-vip-membership/client/vip/info";if("/batch"===a.path||"/api/batch"===a.path||a.path===e){let t=a.path===e?a.jsonBody:a.jsonBody[e],r={iconUrl:null,dynamicIconUrl:null,isSign:!1,isSignIap:!1,isSignDeduct:!1,isSignIapDeduct:!1};if(t&&(0===b.length||b.includes(t.data.userId)))try{let i=t.data.now+316224e5;t.data.redVipLevel=7,t.data.redVipAnnualCount=1,t.data.musicPackage={...r,...t.data.musicPackage,vipCode:230,vipLevel:7,expireTime:i},t.data.associator={...r,...t.data.associator,vipCode:100,vipLevel:7,expireTime:i},m&&(t.data.redplus={...r,...t.data.redplus,vipCode:300,vipLevel:7,expireTime:i},t.data.albumVip={...r,...t.data.albumVip,vipCode:400,vipLevel:0,expireTime:i}),a.path===e?a.jsonBody=t:a.jsonBody[e]=t}catch(e){h.debug({err:e},"Unable to apply the local VIP.")}}}if(new Set([401,512]).has(a.jsonBody.code)&&!a.web){if(a.path.includes("manipulate"))return x(e);if("/api/song/like"===a.path)return E(e)}else if(a.path.includes("url"))return k(e);else if(a.path.includes("/usertool/sound/"))return j(a.jsonBody);else if(a.path.includes("batch"))for(let e in a.jsonBody)e.includes("/usertool/sound/")&&j(a.jsonBody[e]);else if(a.path.includes("/vipauth/app/auth/query"))return T(a.jsonBody)}).then(()=>{["transfer-encoding","content-encoding","content-length"].filter(e=>e in r.headers).forEach(e=>delete r.headers[e]);let e=JSON.stringify(a.jsonBody,(e,t)=>("object"==typeof t&&null!=t&&("cp"in t&&(t.cp=1),"fee"in t&&(t.fee=0),"downloadMaxbr"in t&&0===t.downloadMaxbr&&(t.downloadMaxbr=32e4),"dl"in t&&"downloadMaxbr"in t&&t.dle&&h.error(e,`A error occurred in hook.request.after when hooking ${t.url}.`));if(u){if(new Set([201,301,302,303,307,308]).has(r.statusCode))return s(t.method,i(t.url).resolve(r.headers.location),t.headers).then(t=>e.proxyRes=t);/p\d+c*\.music\.126\.net/.test(t.url)&&(r.headers["content-type"]="audio/*")}},v.connect.before=e=>{let{req:t}=e,r=i("https://"+t.url);[r.hostname,t.headers.host].some(e=>v.target.host.has(e))?80===parseInt(r.port)?(t.url=`${global.address||"localhost"}:${global.port[0]}`,t.local=!0):global.port[1]?(t.url=`${global.address||"localhost"}:${global.port[1]}`,t.local=!0):e.decision="blank":r.href.includes(global.endpoint)&&(e.decision="proxy")},v.negotiate.before=e=>{let{req:t,socket:r,decision:o}=e,s=i("https://"+t.url),a=v.target.host;!t.local&&!o&&a.has(r.sni)&&!a.has(s.hostname)&&(a.add(s.hostname),e.decision="blank")};let _=e=>{let t;let{req:r,netease:i}=e,s="http://music.163.com/api/song/enhance/player/url";if(i.forward){let{id:e,br:r}=i.param;i.param={ids:`["${e}"]`,br:r},t=o.linuxapi.encryptRequest(s,i.param)}else{let{id:e,br:r,e_r:a,header:u}=i.param;i.param={ids:`["${e}"]`,br:r,e_r:a,header:u},t=o.eapi.encryptRequest(s,i.param)}r.url=t.url,r.body=t.body+i.pad},S=e=>{let t;let{req:r,netease:i}=e,s="http://music.163.com/api/song/enhance/player/url/v1";if(i.forward){let{id:e,level:r,immerseType:a}=i.param;i.param={ids:`["${e}"]`,level:r,encodeType:"flac",immerseType:a},t=o.linuxapi.encryptRequest(s,i.param)}else{let{id:e,level:r,immerseType:a,e_r:u,header:c}=i.param;i.param={ids:`["${e}"]`,level:r,encodeType:"flac",immerseType:a,e_r:u,header:c},t=o.eapi.encryptRequest(s,i.param)}r.url=t.url,r.body=t.body+i.pad},x=e=>{let{req:t,netease:r}=e,{trackIds:i,pid:o,op:a}=r.param,u=(Array.isArray(i)?i:JSON.parse(i))[0];return s("POST","http://music.163.com/api/playlist/manipulate/tracks",t.headers,`trackIds=[${u},${u}]&pid=${o}&op=${a}`).then(e=>e.json()).then(e=>{r.jsonBody=e}).catch(e=>e&&h.error(e))},E=e=>{let{req:t,netease:r}=e,{trackId:i}=r.param,o=0;return s("GET","http://music.163.com/api/v1/user/info",t.headers).then(e=>e.json()).then(e=>s("GET",`http://music.163.com/api/user/playlist?uid=${e.userPoint.userId}&limit=1`,t.headers).then(e=>e.json())).then(e=>(o=e.playlist[0].id,s("POST","http://music.163.com/api/playlist/manipulate/tracks",t.headers,`trackIds=[${i},${i}]&pid=${o}&op=add`).then(e=>e.json()))).then(e=>{new Set([200,502]).has(e.code)&&(r.jsonBody={code:200,playlistId:o})}).catch(e=>e&&h.error(e))},O=e=>s("GET",e.url).then(e=>o.md5.pipe(e)),k=e=>{let t;let{req:r,netease:i}=e,{jsonBody:s}=i,c=Number(process.env.MIN_BR)||0,l=0,f=e=>{if(e.flag=0,(200!==e.code||e.freeTrialInfo||e.br{let s="";try{let{header:e}=i.param;e="string"==typeof e?JSON.parse(e):e;let t=u.parse(r.headers.cookie.replace(/\s/g,""),";");s=e.os||t.os}catch(e){}return e.type=999e3===t.br?"flac":"mp3","pc"===s||"uwp"===s?e.url=global.endpoint?`${global.endpoint.replace("https://","http://")}/package/${o.base64.encode(t.url)}/${e.id}.${e.type}`:t.url:e.url=global.endpoint?`${global.endpoint}/package/${o.base64.encode(t.url)}/${e.id}.${e.type}`:t.url,e.md5=t.md5||o.md5.digest(t.url),e.br=t.br||128e3,e.size=t.size,e.code=200,e.freeTrialInfo=null,t}).then(t=>{if(!i.path.includes("download")||t.md5)return;let o={android:"0.0.0",osx:"0.0.0"},s={key:t.url.replace(/\?.*$/,"").replace(/(?<=kugou\.com\/)\w+\/\w+\//,"").replace(/(?<=kuwo\.cn\/)\w+\/\w+\/resource\//,""),url:t.url};try{let{header:t}=i.param;t="string"==typeof t?JSON.parse(t):t;let a=u.parse(r.headers.cookie.replace(/\s/g,""),";"),c=t.os||a.os,l=t.appver||a.appver;if(c in o&&((e,t)=>{let r=Array.from([e,t]).map(e=>e.split(".").slice(0,3).map(e=>parseInt(e)||0)).reduce((e,t)=>e.length?e.map((e,r)=>e.concat(t[r])):t.map(e=>[e]),[]).filter(e=>e[0]!==e[1])[0];return!r||r[0]<=r[1]})(o[c],l))return p.cache(s,()=>O(s)).then(t=>e.md5=t)}catch(e){}}).catch(e=>e&&h.error(e));200===e.code&&i.web&&(e.url=e.url.replace(/(m\d+?)(?!c)\.music\.126\.net/,"$1c.music.126.net"))};return Array.isArray(s.data)?i.path.includes("download")?(s.data=s.data[0],t=[f(s.data)]):(l=i.web?0:parseInt(((Array.isArray(i.param.ids)?i.param.ids:JSON.parse(i.param.ids))[0]||0).toString().replace("_0","")),t=s.data.map(e=>f(e))):t=[f(s.data)],Promise.all(t).catch(e=>e&&h.error(e))},j=e=>{h.debug("unblockSoundEffects() has been triggered.");let{data:t,code:r}=e;200===r&&(Array.isArray(t)?t.map(e=>{e.type&&(e.type=1)}):t.type&&(t.type=1))},T=e=>{h.debug("unblockLyricsEffects() has been triggered.");let{data:t,code:r}=e;200===r&&Array.isArray(t)&&t.forEach(e=>{"canUse"in e&&(e.canUse=!0),"canNotUseReasonCode"in e&&(e.canNotUseReasonCode=200)})};e.exports=v},5477:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9884),r(7887),r(9826),r(8458),r(9141),r(5885),r(3390);let i=e=>{let t=BigInt(e);return{low:Number(t),valueOf:()=>t.valueOf(),toString:()=>t.toString(),not:()=>i(~t),isNegative:()=>t<0,or:e=>i(t|BigInt(e)),and:e=>i(t&BigInt(e)),xor:e=>i(t^BigInt(e)),equals:e=>t===BigInt(e),multiply:e=>i(t*BigInt(e)),shiftLeft:e=>i(t<i(t>>BigInt(e))}},o=e=>Array.from(Array(e).keys()),s=(e,t)=>Array(t).fill(null).reduce(t=>t.multiply(e),i(1)),a=(...e)=>e.map(e=>-1===e?i(-1,-1):i(e)),u=a(31,0,1,2,3,4,-1,-1,3,4,5,6,7,8,-1,-1,7,8,9,10,11,12,-1,-1,11,12,13,14,15,16,-1,-1,15,16,17,18,19,20,-1,-1,19,20,21,22,23,24,-1,-1,23,24,25,26,27,28,-1,-1,27,28,29,30,31,30,-1,-1),c=a(57,49,41,33,25,17,9,1,59,51,43,35,27,19,11,3,61,53,45,37,29,21,13,5,63,55,47,39,31,23,15,7,56,48,40,32,24,16,8,0,58,50,42,34,26,18,10,2,60,52,44,36,28,20,12,4,62,54,46,38,30,22,14,6),l=a(39,7,47,15,55,23,63,31,38,6,46,14,54,22,62,30,37,5,45,13,53,21,61,29,36,4,44,12,52,20,60,28,35,3,43,11,51,19,59,27,34,2,42,10,50,18,58,26,33,1,41,9,49,17,57,25,32,0,40,8,48,16,56,24),f=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1],h=a(0,1048577,3145731),p=o(64).map(e=>s(2,e));p[p.length-1]=p[p.length-1].multiply(-1);let d=a(15,6,19,20,28,11,27,16,0,14,22,25,4,17,30,9,1,7,23,13,31,26,2,8,18,12,29,5,21,10,3,24),g=a(56,48,40,32,24,16,8,0,57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,60,52,44,36,28,20,12,4,27,19,11,3),y=a(13,16,10,23,0,4,-1,-1,2,27,14,5,20,9,-1,-1,22,18,11,3,25,7,-1,-1,15,6,26,19,12,1,-1,-1,40,51,30,36,46,54,-1,-1,29,39,50,44,32,47,-1,-1,43,48,38,55,33,52,-1,-1,45,41,49,35,28,31,-1,-1),m=[[14,4,3,15,2,13,5,3,13,14,6,9,11,2,0,5,4,1,10,12,15,6,9,10,1,8,12,7,8,11,7,0,0,15,10,5,14,4,9,10,7,8,12,3,13,1,3,6,15,12,6,11,2,9,5,0,4,2,11,14,1,7,8,13],[15,0,9,5,6,10,12,9,8,7,2,12,3,13,5,2,1,14,7,8,11,4,0,3,14,11,13,6,4,1,10,15,3,13,12,11,15,3,6,0,4,10,1,7,8,4,11,14,13,8,0,6,2,15,9,5,7,1,10,12,14,2,5,9],[10,13,1,11,6,8,11,5,9,4,12,2,15,3,2,14,0,6,13,1,3,15,4,10,14,9,7,12,5,0,8,7,13,1,2,4,3,6,12,11,0,13,5,14,6,8,15,2,7,10,8,15,4,9,11,5,9,0,14,3,10,7,1,12],[7,10,1,15,0,12,11,5,14,9,8,3,9,7,4,8,13,6,2,1,6,11,12,2,3,0,5,14,10,13,15,4,13,3,4,9,6,10,1,12,11,0,2,5,0,13,14,2,8,15,7,4,15,1,10,7,5,6,12,11,3,8,9,14],[2,4,8,15,7,10,13,6,4,1,3,12,11,7,14,0,12,2,5,9,10,13,0,3,1,11,15,5,6,8,9,14,14,11,5,6,4,1,3,10,2,12,15,0,13,2,8,5,11,8,0,15,7,14,9,4,12,7,10,9,1,13,6,3],[12,9,0,7,9,2,14,1,10,15,3,4,6,12,5,11,1,14,13,0,2,8,7,13,15,5,4,10,8,3,11,6,10,4,6,11,7,9,0,6,4,2,13,1,9,15,3,8,15,3,1,14,12,5,11,0,2,12,14,7,5,10,8,13],[4,1,3,10,15,12,5,0,2,11,9,6,8,7,6,9,11,4,12,15,0,3,10,5,14,13,7,8,13,14,1,2,13,6,14,9,4,1,2,14,11,13,5,0,1,10,8,3,0,11,3,5,9,4,15,2,7,8,12,15,10,7,6,12],[13,7,10,0,6,9,5,15,8,4,3,10,11,14,12,5,2,11,9,6,15,12,0,3,4,1,14,13,1,2,7,8,1,2,12,15,10,4,0,3,13,14,6,9,7,8,9,6,15,1,5,12,3,10,14,5,8,7,11,0,4,13,2,11]],b=(e,t,r)=>{let s=i(0);return o(t).forEach(t=>{e[t].isNegative()||r.and(p[e[t].low]).equals(0)||(s=s.or(p[t]))}),s},v=(e,t)=>{let r=o(8).map(()=>i(0)),s=[i(0),i(0)],a=i(0),f=i(0),h=b(c,64,t);return s[0]=h.and(4294967295),s[1]=h.and(-4294967296).shiftRight(32),o(16).forEach(t=>{let c=i(0);f=(f=b(u,64,f=i(s[1]))).xor(e[t]),o(8).forEach(e=>{r[e]=f.shiftRight(8*e).and(255)}),o(8).reverse().forEach(e=>{c=c.shiftLeft(4).or(m[e][r[e]])}),f=b(d,32,c),a=i(s[0]),s[0]=i(s[1]),s[1]=a.xor(f)}),s.reverse(),h=b(l,64,h=s[1].shiftLeft(32).and(-4294967296).or(s[0].and(4294967295)))},w=(e,t,r)=>{let i=b(g,56,e);o(16).forEach(e=>{i=i.and(h[f[e]]).shiftLeft(28-f[e]).or(i.and(h[f[e]].not()).shiftRight(f[e])),t[e]=b(y,64,i)}),1===r&&o(8).forEach(e=>{[t[e],t[15-e]]=[t[15-e],t[e]]})},_=(e,t,r)=>{let s=i(0);o(8).forEach(e=>{s=i(t[e]).shiftLeft(8*e).or(s)});let a=Math.floor(e.length/8),u=o(16).map(()=>i(0));w(s,u,r);let c=o(a).map(()=>i(0));o(a).forEach(t=>{o(8).forEach(r=>{c[t]=i(e[r+8*t]).shiftLeft(8*r).or(c[t])})});let l=o(Math.floor((1+8*(a+1))/8)).map(()=>i(0));o(a).forEach(e=>{l[e]=v(u,c[e])});let f=e.slice(8*a),h=i(0);o(e.length%8).forEach(e=>{h=i(f[e]).shiftLeft(8*e).or(h)}),(f.length||0===r)&&(l[a]=v(u,h));let p=o(8*l.length).map(()=>0),d=0;return l.forEach(e=>{o(8).forEach(t=>{p[d]=e.shiftRight(8*t).and(255).low,d+=1})}),Buffer.from(p)},S=Buffer.from("ylzsxkwm"),x=e=>_(e,S,0);e.exports={encrypt:x,decrypt:e=>_(e,S,1),encryptQuery:e=>x(Buffer.from(e)).toString("base64")}},7691:(e,t,r)=>{"use strict";var i;let o=r(8167),s=process.env.LOG_FILE,a=process.stdout.isTTY,u=o({level:null!==(i=process.env.LOG_LEVEL)&&void 0!==i?i:"info",prettyPrint:"true"!==process.env.JSON_LOG&&{colorize:a,messageFormat:a?"\x1b[1m\x1b[32m({scope})\x1b[0m\x1b[36m {msg}":"({scope}) {msg}",ignore:"time,pid,hostname,scope",errorProps:"*"}},s&&o.destination(s));e.exports={logger:u,logScope:function(e){return u.child({scope:e})}}},8573:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8458),r(9141);let{cacheStorage:i,CacheStorageGroup:o,getManagedCacheStorage:s}=r(9220),a=r(2290),u=r(2822),c=r(5262),l=e=>({id:e.id,name:e.title,artists:{id:e.mid,name:e.author}}),f=e=>{let t=`https://api.bilibili.com/audio/music-service-c/s?search_type=music&page=1&pagesize=30&keyword=${encodeURIComponent(e.keyword)}`;return c("GET",t).then(e=>e.json()).then(t=>{let r=t.data.result.map(l),i=u(r,e);return i?i.id:Promise.reject()})},h=e=>{let t="https://www.bilibili.com/audio/music-service-c/web/url?rivilege=2&quality=2&sid="+e;return c("GET",t).then(e=>e.json()).then(e=>0===e.code?e.data.cdns[0].replace("https","http"):Promise.reject()).catch(()=>a().bilibili.track(e))},p=s("provider/bilibili");e.exports={check:e=>p.cache(e,()=>f(e)).then(h),track:h}},8537:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9884),r(7887),r(9826),r(8157),r(9059),r(2961),r(8458),r(9141);let i=r(5262),{getManagedCacheStorage:o}=r(9220),s=(e,t)=>Object.keys(e).reduce((r,i)=>Object.assign(r,t.includes(i)&&{[i]:e[i]}),{}),a=e=>{let t=[e[0]],r=()=>t.reduce((e,t)=>e+t.length,0);return e.slice(1).some(e=>r()>15||(t.push(e),!1)),t},u=e=>{try{let r=s(e,["id","name","alias","duration"]);if(r.name=(r.name||"").replace(/(\s*cover[::\s][^)]+)/i,"").replace(/\(\s*cover[::\s][^)]+\)/i,"").replace(/(\s*翻自[::\s][^)]+)/,"").replace(/\(\s*翻自[::\s][^)]+\)/,""),r.album=s(e.album,["id","name"]),r.artists=e.artists.map(e=>s(e,["id","name"])),r.keyword=r.name+" - "+a(r.artists.map(e=>e.name)).join(" / "),"true"===process.env.SEARCH_ALBUM){var t;let e=null===(t=r.album)||void 0===t?void 0:t.name;e&&e!==r.name&&(r.keyword+=` ${e}`)}return r}catch(e){return console.log("getFormatData err: ",e),{}}},c=(e,t)=>{if(!t)return i("GET","https://music.163.com/api/song/detail?ids=["+e+"]").then(e=>e.json()).then(e=>{if(e&&e.songs&&e.songs.length){let t=u(e.songs[0]);return t.name?t:Promise.reject()}return Promise.reject()});{let e=u(t);return e.name?Promise.resolve(e):Promise.reject()}},l=o("provider/find");e.exports=(e,t)=>t?c(e,t):l.cache(e,()=>c(e))},2290:(e,t,r)=>{"use strict";let i=r(5262);e.exports=()=>{let t=global.cnrelay,r=new Proxy(()=>{},{get:(e,t)=>(e.route=(e.route||[]).concat(t),r),apply:(r,o,s)=>{if(e.exports.disable||!t)return Promise.reject();let a=r.route.join("/"),u="object"==typeof s[0]?JSON.stringify(s[0]):s[0];return i("GET",`${t}/${a}?${encodeURIComponent(u)}`).then(e=>e.body())}});return r}},9788:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8458),r(9141),r(6497);let i=r(2290),o=r(2822),s=r(743),a=r(5262),{getManagedCacheStorage:u}=r(9220),c={origin:"http://www.joox.com",referer:"http://www.joox.com",cookie:process.env.JOOX_COOKIE||null},l=e=>/[\u0800-\u4e00]/.test(e.name)?e.name:e.keyword,f=e=>{let{decode:t}=s.base64;return{id:e.songid,name:t(e.info1||""),duration:1e3*e.playtime,album:{id:e.albummid,name:t(e.info3||"")},artists:e.singer_list.map(({id:e,name:r})=>({id:e,name:t(r||"")}))}},h=e=>{let t=l(e),r="http://api-jooxtt.sanook.com/web-fcgi-bin/web_search?country=hk&lang=zh_TW&search_input="+encodeURIComponent(t)+"&sin=0&ein=30";return a("GET",r,c).then(e=>e.body()).then(t=>{let r=JSON.parse(t.replace(/'/g,'"')),i=r.itemlist.map(f),s=o(i,e);return s?s.id:Promise.reject()})},p=e=>{let t="http://api.joox.com/web-fcgi-bin/web_get_songinfo?songid="+e+"&country=hk&lang=zh_cn&from_type=-1&channel_id=-1&_="+new Date().getTime();return a("GET",t,c).then(e=>e.jsonp()).then(e=>{let t=(e.r320Url||e.r192Url||e.mp3Url||e.m4aUrl).replace(/M\d00([\w]+).mp3/,"M800$1.mp3");return t||Promise.reject()}).catch(()=>i().joox.track(e))},d=u("provider/joox");e.exports={check:e=>d.cache(e,()=>h(e)).then(p),track:p}},4840:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8458),r(9141),r(6794),r(3354),r(9826);let i=r(2290),o=r(2822),s=r(743),a=r(5262),{getManagedCacheStorage:u}=r(9220),c=e=>({id:e.hash,id_hq:e["320hash"],id_sq:e.sqhash,name:e.songname,duration:1e3*e.duration,album:{id:e.album_id,name:e.album_name}}),l=e=>{let t="http://mobilecdn.kugou.com/api/v3/search/song?keyword="+encodeURIComponent(e.keyword)+"&page=1&pagesize=10";return a("GET",t).then(e=>e.json()).then(t=>{let r=t.data.info.map(c),i=o(r,e);return i||Promise.reject()}).catch(()=>i().kugou.search(e))},f=(e,t)=>{let r=()=>{switch(t){case"hash":return e.id;case"hqhash":return e.id_hq;case"sqhash":return e.id_sq}return""},i="http://trackercdn.kugou.com/i/v2/?key="+s.md5.digest(`${r()}kgcloudv2`)+"&hash="+r()+"&appid=1005&pid=2&cmd=25&behavior=play&album_id="+e.album.id;return a("GET",i).then(e=>e.json()).then(e=>e.url[0]||Promise.reject())},h=e=>Promise.all(["sqhash","hqhash","hash"].slice(o.ENABLE_FLAC?0:1).map(t=>f(e,t).catch(()=>null))).then(e=>e.find(e=>e)||Promise.reject()).catch(()=>i().kugou.track(e)),p=u("provider/kugou");e.exports={check:e=>p.cache(e,()=>l(e)).then(h),search:l}},3081:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8458),r(9141);let i=r(2290),o=r(2822),s=r(743),a=r(5262),{getManagedCacheStorage:u}=r(9220),c=e=>({id:e.MUSICRID.split("_").pop(),name:e.SONGNAME,duration:1e3*e.DURATION,album:{id:e.ALBUMID,name:e.ALBUM},artists:e.ARTIST.split("&").map((t,r)=>({id:r?null:e.ARTISTID,name:t}))}),l=e=>{let t=encodeURIComponent(e.keyword.replace(" - "," "));return a("GET","http://search.kuwo.cn/r.s?&correct=1&stype=comprehensive&encoding=utf8&rformat=json&mobi=1&show_copyright_off=1&searchapi=6&all="+t).then(e=>e.json()).then(t=>{if(!t||t.content.length<2||!t.content[1].musicpage||t.content[1].musicpage.abslist.length<1)return Promise.reject();let r=t.content[1].musicpage.abslist.map(c),i=o(r,e);return i?i.id:Promise.reject()})},f=e=>{let t=s.kuwoapi?"http://mobi.kuwo.cn/mobi.s?f=kuwo&q="+s.kuwoapi.encryptQuery("corp=kuwo&p2p=1&type=convert_url2&sig=0&format="+["flac","mp3"].slice(o.ENABLE_FLAC?0:1).join("|")+"&rid="+e):"http://antiserver.kuwo.cn/anti.s?type=convert_url&format=mp3&response=url&rid=MUSIC_"+e;return a("GET",t,{"user-agent":"okhttp/3.10.0"}).then(e=>e.body()).then(e=>{let t=(e.match(/http[^\s$"]+/)||[])[0];return t||Promise.reject()}).catch(()=>i().kuwo.track(e))},h=u("provider/kuwo");e.exports={check:e=>h.cache(e,()=>l(e)).then(f),track:f}},886:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8105),r(1114),r(233),r(2051),r(5607),r(5148),r(9603),r(262),r(5636),r(646),r(2477),r(8778),r(5198),r(7494),r(751),r(4678),r(9826),r(1324),r(8458),r(9141),r(9884),r(7887),r(2012),r(9941),r(5885),r(3390);let i=r(8537),o=r(5262),{PROVIDERS:s,DEFAULT_SOURCE:a}=r(1784),{isHostWrapper:u}=r(5157),c=r(9057),l=r(6014),f=r(312),{logScope:h}=r(7691),p=r(4113),d=h("provider/match"),g=e=>e>=200&&e<=299,y=new Map([["bilivideo.com","https://www.bilibili.com/"]]);async function m(e,t){d.debug({source:e,info:t},"Getting the audio...");let r=await s[e].check(t);if(!r)throw new c(e);let i=await v(r);if(d.debug(i,"The matched song is:"),!i||"string"!=typeof i.url)throw new f("song is undefined, or song.url is not a string.");return d.debug({source:e,info:t},"The audio matched!"),i}async function b(e,t,r){let o=(t||global.source||a).filter(e=>e in s),u=await i(e,r),l=null;if(process.env.SELECT_MAX_BR){let e=await Promise.allSettled(o.map(async e=>m(e,u).catch(e=>{throw e&&(e instanceof p?d.debug(e):d.error(e)),e})));if(0===(e=e.filter(e=>"fulfilled"===e.status)).length)throw new c("any source");l=(e=e.map(e=>e.value)).reduce((e,t)=>e.br>=t.br?e:t)}else if(process.env.FOLLOW_SOURCE_ORDER){for(let e=0;em(e,u).catch(e=>{throw e&&(e instanceof p?d.debug(e):d.error(e)),e})));let{id:f,name:h}=u,{url:g}=l;return d.debug({audioInfo:u,audioData:l},"The data to replace:"),d.info({audioId:f,songName:h,url:g},`Replaced: [${f}] ${h}`),l}async function v(e){let t=u(e),r={size:0,br:null,url:null,md5:null},i={range:"bytes=0-8191","accept-encoding":"identity"};y.forEach((e,r)=>{t(r)&&(i.referer=e)});let s=await o("GET",e,i),{headers:a}=s;if(!g(s.statusCode))throw new l(e,s.statusCode);r.url=s.url.href;let c=await s.body(!0);try{let e=function(e){let t={3:{3:["free",32,64,96,128,160,192,224,256,288,320,352,384,416,448,"bad"],2:["free",32,48,56,64,80,96,112,128,160,192,224,256,320,384,"bad"],1:["free",32,40,48,56,64,80,96,112,128,160,192,224,256,320,"bad"]},2:{3:["free",32,48,56,64,80,96,112,128,144,160,176,192,224,256,"bad"],2:["free",8,16,24,32,40,48,56,64,80,96,112,128,144,160,"bad"]}};t[2][1]=t[2][2],t[0]=t[2];let r=0;if("fLaC"===e.slice(0,4).toString())return 999;if("ID3"===e.slice(0,3).toString()){r=6;let t=e.slice(r,r+4).reduce((e,t,r)=>e+(127&t)<<7*(3-r),0);r=10+t}let i=e.slice(r,r+4);if(4===i.length&&255===i[0]&&(i[1]>>5&7)==7&&(i[1]>>1&3)!=0&&(i[2]>>4&15)!=15&&(i[2]>>2&3)!=3){let e=i[1]>>3&3,r=i[1]>>1&3,o=i[2]>>4;return t[e][r][o]}}(c);r.br=e&&!isNaN(e)?1e3*e:null}catch(e){d.debug(e,"Failed to decode and extract the bitrate")}if(!r.br){if(t("qq.com")&&r.url.includes(".m4a")&&(r.br=96e3),t("bilivideo.com")&&r.url.includes(".m4a")){let e=r.url.match(/-(\d+)k\.m4a/),t=parseInt(e);isNaN(t)?t=192e3:t<96||t>999?t=192e3:t*=1e3,r.br=t}t("googlevideo.com")&&(r.br=128e3)}return a&&(t("126.net")&&(r.md5=r.url.split("/").slice(-1)[0].replace(/\..*/g,"")),t("qq.com")&&(r.md5=a["server-md5"]),r.size=parseInt((a["content-range"]||"").split("/").pop()||a["content-length"])||0,"8192"!==a["content-length"])?Promise.reject():r}e.exports=b},1549:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8458),r(9141),r(6794),r(3354),r(9826);let i=r(2290),o=r(2822),s=r(5262),{getManagedCacheStorage:a}=r(9220),u={origin:"http://music.migu.cn/",referer:"http://m.music.migu.cn/v3/",aversionid:process.env.MIGU_COOKIE||null,channel:"0146921"},c=e=>{let t=e.singerId.split(/\s*,\s*/),r=e.singerName.split(/\s*,\s*/);return{id:e.id,name:e.title,album:{id:e.albumId,name:e.albumName},artists:t.map((e,t)=>({id:e,name:r[t]}))}},l=e=>{let t="https://m.music.migu.cn/migu/remoting/scr_search_tag?keyword="+encodeURIComponent(e.keyword)+"&type=2&rows=20&pgc=1";return s("GET",t,u).then(e=>e.json()).then(t=>{let r=((t||{}).musics||[]).map(c),i=o(r,e);return i?i.id:Promise.reject()})},f=(e,t)=>{let r="https://app.c.nf.migu.cn/MIGUM2.0/strategy/listen-url/v2.4?netType=01&resourceType=2&songId="+e.toString()+"&toneFlag="+t;return s("GET",r,u).then(e=>e.json()).then(e=>{let{audioFormatType:i}=e.data;return i!==t?Promise.reject():r?e.data.url:Promise.reject()})},h=e=>Promise.all(["ZQ24","SQ","HQ","PQ"].slice(o.ENABLE_FLAC?0:2).map(t=>f(e,t).catch(()=>null))).then(e=>e.find(e=>e)||Promise.reject()).catch(()=>i().migu.track(e)),p=a("provider/migu");e.exports={check:e=>p.cache(e,()=>l(e)).then(h),track:h}},2085:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(6794),r(3354),r(9826);let i=r(2822),o=r(5262),{getManagedCacheStorage:s}=r(9220),a=e=>{let t="https://pyncmd.apis.imouto.in/api/pyncm?module=track&method=GetTrackAudio&song_ids="+e.id+"&bitrate="+["999000","320000"].slice(i.ENABLE_FLAC?0:1,i.ENABLE_FLAC?1:2);return o("GET",t).then(e=>e.json()).then(t=>{if(t&&"object"==typeof t&&"code"in t&&200!==t.code)return Promise.reject();let r=t.data.find(t=>t.id===e.id);return r&&r.url?r.url:Promise.reject()})},u=s("provider/pyncmd");e.exports={check:e=>u.cache(e,()=>a(e))}},9878:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8458),r(9141),r(6794),r(3354),r(9826);let i=r(2290),o=r(2822),s=r(5262),{getManagedCacheStorage:a}=r(9220),u={origin:"http://y.qq.com/",referer:"http://y.qq.com/",cookie:process.env.QQ_COOKIE||null},c=e=>({id:{song:e.mid,file:e.mid},name:e.name,duration:1e3*e.interval,album:{id:e.album.mid,name:e.album.name},artists:e.singer.map(({mid:e,name:t})=>({id:e,name:t}))}),l=e=>{let t="https://u.y.qq.com/cgi-bin/musicu.fcg?data="+encodeURIComponent(JSON.stringify({search:{method:"DoSearchForQQMusicDesktop",module:"music.search.SearchCgiService",param:{num_per_page:5,page_num:1,query:e.keyword,search_type:0}}}));return s("GET",t,u).then(e=>e.json()).then(t=>{let r=t.search.data.body.song.list.map(c),i=o(r,e);return i?i.id:Promise.reject()})},f=(e,t)=>{let r=((u.cookie||"").match(/uin=(\d+)/)||[])[1]||"0",i="https://u.y.qq.com/cgi-bin/musicu.fcg?data="+encodeURIComponent(JSON.stringify({req_0:{module:"vkey.GetVkeyServer",method:"CgiGetVkey",param:{guid:(1e7*Math.random()).toFixed(0),loginflag:1,filename:t[0]?[t.join(e.file)]:null,songmid:[e.song],songtype:[0],uin:r,platform:"20"}}}));return s("GET",i,u).then(e=>e.json()).then(e=>{let{sip:t,midurlinfo:r}=e.req_0.data;if(!r[0].purl)return Promise.reject();let i=t[0]+r[0].purl;return s("GET",i,{range:"bytes=0-8191","accept-encoding":"identity"}).then(e=>e.statusCode<200||e.statusCode>299?Promise.reject():i)})},h=e=>(e.key=e.file,Promise.all([["F000",".flac"],["M800",".mp3"],["M500",".mp3"],[null,null]].slice(u.cookie||"undefined"!=typeof window?o.ENABLE_FLAC?0:1:2).map(t=>f(e,t).catch(()=>null))).then(e=>e.find(e=>e)||Promise.reject()).catch(()=>i().qq.track(e))),p=a("provider/qq");e.exports={check:e=>p.cache(e,()=>l(e)).then(h),track:h}},2822:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(6794),r(3354),r(9826),e.exports=(e,t)=>{let{duration:r}=t,i=e.slice(0,5).find(e=>e.duration&&5e3>Math.abs(e.duration-r));return i||e[0]},e.exports.ENABLE_FLAC="true"===(process.env.ENABLE_FLAC||"").toLowerCase()},4396:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(6497);let{getManagedCacheStorage:i}=r(9220),{logScope:o}=r(7691),s=r(5467),a=r(58),{spawnStdout:u}=r(7581),c=e=>["-f","140","--dump-json",e],l=e=>`https://www.youtube.com/watch?v=${e}`,f=e=>`ytsearch1:${e}`,h=o("provider/youtube-dl");async function p(e){try{let{stdout:t}=await u("youtube-dl",e),r=JSON.parse(t.toString());if("object"==typeof r&&"string"==typeof r.id&&"string"==typeof r.url)return r;throw new s(r)}catch(e){if(e&&"ENOENT"===e.code)throw new a;throw e}}let d=async e=>{let{id:t}=await p(c(f(e.keyword)));return t},g=async e=>{let{url:t}=await p(c(l(e)));return t},y=i("youtube-dl");e.exports={check:e=>y.cache(e,()=>d(e)).then(g).catch(e=>{throw e&&h.error(e),e}),track:g}},8396:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9884),r(7887),r(9826),r(8458),r(9141),r(6497),r(6794),r(3354);let i=r(5262),{getManagedCacheStorage:o}=r(9220),s=e=>(e||"").split("&").reduce((e,t)=>{let r=t.split("=").map(decodeURIComponent);return Object.assign({},e,{[r[0]]:r[1]})},{}),a=o("provider/youtube"),u=void 0,c=process.env.YOUTUBE_KEY||null,l=(e="-tKVN2mAKRI")=>{let t=`https://www.youtube.com/watch?v=${e}`;return i("GET",t,{},null,u).then(e=>e.body()).then(e=>{let t=/"WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_VERTICAL_LANDING_PAGE_PROMO":{[^}]+}/.exec(e)[0];return i("GET","https://youtube.com"+(t=JSON.parse(`{${t}}}`).WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_VERTICAL_LANDING_PAGE_PROMO).jsUrl,{},null,u).then(e=>e.body())}).then(e=>{let[,t,r]=/function\((\w+)\)\s*{([^}]+split\(""\)[^}]+join\(""\))};/.exec(e),i=/;(.+?)\..+?\(/.exec(r)[1],o=RegExp(`var ${i}={[\\s\\S]+?};`).exec(e)[0];return Function([t],o+"\n"+r)})},f=e=>{let t=`https://www.googleapis.com/youtube/v3/search?part=snippet&q=${encodeURIComponent(e.keyword)}&type=video&key=${c}`;return i("GET",t,{accept:"application/json"},null,u).then(e=>e.json()).then(e=>{let t=e.items[0];return t?t.id.videoId:Promise.reject()})},h=e=>{let t=`https://www.youtube.com/results?search_query=${encodeURIComponent(e.keyword)}`;return i("GET",t,{},null,u).then(e=>e.body()).then(e=>{let t=JSON.parse(e.match(/ytInitialData\s*=\s*([^;]+);/)[1]),r=t.contents.twoColumnSearchResultsRenderer.primaryContents.sectionListRenderer.contents[0].itemSectionRenderer.contents[1];return r?r.videoRenderer.videoId:Promise.reject()})},p=e=>{let t=`https://www.youtube.com/watch?v=${e}`;return i("GET",t,{},null,u).then(e=>e.body()).then(e=>JSON.parse(e.match(/ytInitialPlayerResponse\s*=\s*{[^]+};\s*var\s*meta/)[0].replace(/;var meta/,"").replace(/ytInitialPlayerResponse = /,"")).streamingData).then(e=>{let t=e.formats.concat(e.adaptiveFormats).find(e=>140===e.itag),r=s(t.signatureCipher);return t.url||(r.sp.includes("sig")?a.cache("YOUTUBE_SIGNATURE",()=>l(),Date.now()+864e5).then(e=>r.url+"&sig="+e(r.s)):r.url)})};e.exports={check:e=>a.cache(e,()=>c?f(e):h(e)).then(p),track:p}},8965:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(6497);let{getManagedCacheStorage:i}=r(9220),{logScope:o}=r(7691),{spawnStdout:s}=r(7581),a=r(2962),u=r(8761),c=e=>["-f","140","--dump-json",e],l=e=>`https://www.youtube.com/watch?v=${e}`,f=e=>`ytsearch1:${e}`,h=o("provider/yt-dlp");async function p(e){try{let{stdout:t}=await s("yt-dlp",e),r=JSON.parse(t.toString());if("object"==typeof r&&"string"==typeof r.id&&"string"==typeof r.url)return r;throw new a(r)}catch(e){if(e&&"ENOENT"===e.code)throw new u;throw e}}let d=async e=>{let{id:t}=await p(c(f(e.keyword)));return t},g=async e=>{let{url:t}=await p(c(l(e)));return t},y=i("yt-dlp");e.exports={check:e=>y.cache(e,()=>d(e)).then(g).catch(e=>{throw e&&h.error(e),e}),track:g}},5262:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9884),r(7887),r(9826),r(2961),r(6497);let i=r(9796),o=r(3685),s=r(5687),a=r(2188),u=r(4113),{logScope:c}=r(7691),l=r(7310).parse,f=r(7310).format,h=c("request"),p=e=>(global.hosts||{})[e]||e,d=(e,t)=>("https:"===((void 0===t?global.proxy:t)||e).protocol?s:o).request,g=(e,t,r,i)=>{r=r||{},i=void 0===i?global.proxy:i,"content-length"in r&&delete r["content-length"];let o={};return o._headers=r,i&&"https:"===t.protocol?(o.method="CONNECT",o.headers=Object.keys(r).reduce((e,t)=>Object.assign(e,["host","user-agent"].includes(t)&&{[t]:r[t]}),{})):(o.method=e,o.headers=r),i?(o.hostname=p(i.hostname),o.port=i.port||("https:"===i.protocol?443:80),o.path="https:"===t.protocol?p(t.hostname)+":"+(t.port||443):"http://"+p(t.hostname)+t.path):(o.hostname=p(t.hostname),o.port=t.port||("https:"===t.protocol?443:80),o.path=t.path),o},y=(e,t,r,i,o,c)=>{let p=l(t),w=r||{},_=g(e,p,{host:p.hostname,accept:"application/json, text/plain, */*","accept-encoding":"gzip, deflate","accept-language":"zh-CN,zh;q=0.9","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36",...w},o);return new Promise((r,l)=>{var g;h.debug(`Start requesting ${t}`);let y=d(p,o)(_),m=function(){y.destroy(new u(f(p)))};null==c||c.on(a,m),null!==(g=null==c?void 0:c.cancelled)&&void 0!==g&&g&&m(),y.setTimeout(1e4,()=>{h.warn({url:f(p)},"The request timed out, or the requester didn't handle the response."),m()}).on("response",e=>r(e)).on("connect",(t,o)=>{h.debug("received CONNECT, continuing with https.request()..."),s.request({method:e,path:p.path,headers:_._headers,socket:o,agent:!1}).on("response",e=>r(e)).on("error",e=>l(e)).end(i)}).on("error",e=>l(e)).end("CONNECT"===_.method.toUpperCase()?void 0:i)}).then(t=>{var r;if(null!==(r=null==c?void 0:c.cancelled)&&void 0!==r&&r)return Promise.reject(new u(f(p)));if([201,301,302,303,307,308].includes(t.statusCode)){let r=p.resolve(t.headers.location||p.href);return h.debug(`Redirect to ${r}`),delete w.host,y(e,r,w,i,o)}return Object.assign(t,{url:p,body:e=>m(t,e),json:()=>b(t),jsonp:()=>v(t)})})},m=(e,t)=>new Promise((t,r)=>{let i=[];e.on("data",e=>i.push(e)).on("end",()=>t(Buffer.concat(i))).on("error",e=>r(e))}).then(r=>{if(r.length)switch(e.headers["content-encoding"]){case"deflate":case"gzip":r=i.unzipSync(r);break;case"br":r=i.brotliDecompressSync(r)}return t?r:r.toString()}),b=e=>m(e,!1).then(e=>JSON.parse(e)),v=e=>m(e,!1).then(e=>JSON.parse(e.slice(e.indexOf("(")+1,-1)));y.read=m,y.create=d,y.translate=p,y.configure=g,e.exports=y},8837:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8458),r(9141),r(751),r(4678),r(9826),r(8157),r(9059);let i=r(7147),o=r(1808),s=r(1017),a=r(7310).parse,{logScope:u}=r(7691),c=u("server"),l=r(313),f=r(403),h=r(5262),{isHost:p}=r(5157),d={core:{mitm:(e,t)=>{if("/proxy.pac"===e.url){let r=a("http://"+e.headers.host);t.writeHead(200,{"Content-Type":"application/x-ns-proxy-autoconfig"}),t.end(` +(()=>{var e={9220:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(6883),r(3859),r(9467),r(6811),r(408),r(9502),r(8669),r(6136),r(5803),r(1536),r(8625),r(434),r(3362),r(821),r(4774),r(2702),r(139),r(7326),r(6282),r(8191),r(4680),r(109),r(8275),r(1223),r(4709),r(1401),r(7321),r(1596),r(6727),r(5923),r(9017),r(6169),r(7338),r(1942),r(7333),r(6426),r(4197),r(4213),r(5646),r(1581);let{EventEmitter:i}=r(2361),{logScope:o}=r(7691),s=o("cache"),a={CLEANUP:"cs@cleanup"};class u extends i{id="Default Cache Storage";cacheMap=new Map;aliveDuration=18e5;constructor(e){super(),e&&(this.id=e),this.on(a.CLEANUP,async()=>this.removeExpiredCache())}get WillExpireAt(){return Date.now()+this.aliveDuration}getLoggerContext(e={}){return{...e,cacheStorageId:this.id}}removeExpiredCache(){s.debug(this.getLoggerContext(),"Cleaning up the expired caches..."),this.cacheMap.forEach((e,t)=>{e.expireAt<=Date.now()&&this.cacheMap.delete(t)})}async cache(e,t,r){if("true"===process.env.NO_CACHE)return t();this.emit(a.CLEANUP);let i=this.cacheMap.get(e),o="object"==typeof e?"Something":e,u=this.getLoggerContext({logKey:o});if(i)return s.debug(u,`${o} hit!`),i.data;s.debug(u,`${o} did not hit. Storing the execution result...`);let c=await t();return this.cacheMap.set(e,{data:c,expireAt:new Date(r||this.WillExpireAt)}),c}}class c{static instance=void 0;cacheStorages=new Set;constructor(){}static getInstance(){return c.instance||(c.instance=new c),c.instance}cleanup(){this.cacheStorages.forEach(e=>e.removeExpiredCache())}}let l=c.getInstance();e.exports={CacheStorage:u,CacheStorageEvents:a,CacheStorageGroup:c,getManagedCacheStorage:function(e){let t=new u(e);return l.cacheStorages.add(t),t}}},2188:(e,t,r)=>{"use strict";let i=r(2361),o="cancel";e.exports={CancelRequest:class extends i{cancelled=!1;cancel(){this.cancelled=!0,this.emit(o)}},ON_CANCEL:o}},5796:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(5106),r(726),r(1966),r(6323),r(6761),r(139),r(4774),r(2702),r(3805),r(1832),r(8352);let i={width:80,_program:{},_options:[],program:(e={})=>(i._program=e,i),option:(e,t={})=>(e=Array.isArray(e)?e:[e],t.dest=t.dest||e.slice(-1)[0].toLowerCase().replace(/^-+/,"").replace(/-[a-z]/g,e=>e.slice(1).toUpperCase()),t.help=t.help||({help:"output usage information",version:"output the version number"})[t.action],i._options.push(Object.assign(t,{flags:e,positional:!e[0].startsWith("-")})),i),parse:e=>{let t=i._options.map((e,t)=>e.positional?t:null).filter(e=>null!==e),o={};i._options.forEach((e,t)=>e.positional?null:e.flags.forEach(e=>o[e]=t)),i._program.name=i._program.name||r(1017).parse(e[1]).base;let s=e.slice(2).reduce((e,t)=>/^-[^-]/.test(t)?e.concat(t.slice(1).split("").map(e=>"-"+e)):e.concat(t),[]),l=0;for(;le in o),a=-1===t?s.length:l+t;0===(e=s.slice(l,a)).length&&(i._options[f].positional?c(`the following arguments are required: ${r}`):"+"===i._options[f].nargs?c(`argument ${r}: expected at least one argument`):c(`argument ${r}: expected one argument`)),"+"!==i._options[f].nargs?(e=e[0],l+=1):l=a}i[i._options[f].dest]=e}return t.length&&c(`the following arguments are required: ${t.map(e=>i._options[e].flags[0]).join(", ")}`),i}},o=e=>Array(e+1).join(" "),s=()=>{let e=i._options.map(e=>{let t=e.flags.sort((e,t)=>e.length-t.length)[0],r=e.metavar||e.dest;return e.positional?"+"===e.nargs?`${r} [${r} ...]`:`${r}`:["store_true","store_false","help","version"].includes(e.action)?`[${t}]`:"+"===e.nargs?`[${t} ${r} [${r} ...]]`:`[${t} ${r}]`}),t=i.width,r=`usage: ${i._program.name}`,s=[r];e.map(e=>" "+e).forEach(e=>{s[s.length-1].length+e.length{s();let e=i._options.filter(e=>e.positional).map(e=>[e.metavar||e.dest,e.help]),t=i._options.filter(e=>!e.positional).map(e=>{let{flags:t}=e,r=e.metavar||e.dest;return[["store_true","store_false","help","version"].includes(e.action)?t.map(e=>`${e}`).join(", "):"+"===e.nargs?t.map(e=>`${e} ${r} [${r} ...]`).join(", "):t.map(e=>`${e} ${r}`).join(", "),e.help]}),r=Math.max.apply(null,e.concat(t).map(e=>e[0].length));r=r>30?30:r;let a=i.width-r-4,u=e=>{let t=e=>Array.from(Array(Math.ceil(e.length/a)).keys()).map(t=>e.slice(t*a,(t+1)*a)).join("\n"+o(r+4));e[0].length{console.log(i._program.version),process.exit()},c=e=>{s(),console.log(i._program.name+":","error:",e),process.exit(1)};e.exports=i},1784:(e,t,r)=>{"use strict";let i={qq:r(9878),kugou:r(4840),kuwo:r(3081),migu:r(1549),joox:r(9788),youtube:r(8396),youtubedl:r(4396),ytdlp:r(8965),bilibili:r(8573),pyncmd:r(2085)};e.exports={DEFAULT_SOURCE:["kugou","kuwo","migu","bilibili","ytdlp"],PROVIDERS:i}},743:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1832),r(8352),r(139),r(726),r(1966);let i=r(6113),o=r(7310).parse,s=r(3477).stringify,a="e82ckenh8dichen8",u="rFgB&h#%2?^eDg:Q",c=(e,t)=>{let r=i.createDecipheriv("aes-128-ecb",t,null);return Buffer.concat([r.update(e),r.final()])},l=(e,t)=>{let r=i.createCipheriv("aes-128-ecb",t,null);return Buffer.concat([r.update(e),r.final()])};e.exports={eapi:{encrypt:e=>l(e,a),decrypt:e=>c(e,a),encryptRequest:(t,r)=>{t=o(t);let a=JSON.stringify(r),u=`nobody${t.path}use${a}md5forencrypt`,c=i.createHash("md5").update(u).digest("hex"),l=`${t.path}-36cd479b6b5-${a}-36cd479b6b5-${c}`;return{url:t.href.replace(/\w*api/,"eapi"),body:s({params:e.exports.eapi.encrypt(Buffer.from(l)).toString("hex").toUpperCase()})}}},linuxapi:{encrypt:e=>l(e,u),decrypt:e=>c(e,u),encryptRequest:(t,r)=>{t=o(t);let i=JSON.stringify({method:"POST",url:t.href,params:r});return{url:t.resolve("/api/linux/forward"),body:s({eparams:e.exports.linuxapi.encrypt(Buffer.from(i)).toString("hex").toUpperCase()})}}},miguapi:{encryptBody:e=>{let t=JSON.stringify(e),r=Buffer.from(i.randomBytes(32).toString("hex")),o=i.randomBytes(8),a=((e,t,r,o)=>{t=t||Buffer.alloc(0);let s=Math.ceil((32+8*o)/32),a=Buffer.concat(Array(s).fill(null).reduce(r=>r.concat(i.createHash("md5").update(Buffer.concat([r.slice(-1)[0],e,t])).digest()),[Buffer.alloc(0)]));return{key:a.slice(0,32),iv:a.slice(32,32+o)}})(r,o,0,16),u=i.createCipheriv("aes-256-cbc",a.key,a.iv);return s({data:Buffer.concat([Buffer.from("Salted__"),o,u.update(Buffer.from(t)),u.final()]).toString("base64"),secKey:i.publicEncrypt({key:"-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC8asrfSaoOb4je+DSmKdriQJKWVJ2oDZrs3wi5W67m3LwTB9QVR+cE3XWU21Nx+YBxS0yun8wDcjgQvYt625ZCcgin2ro/eOkNyUOTBIbuj9CvMnhUYiR61lC1f1IGbrSYYimqBVSjpifVufxtx/I3exReZosTByYp4Xwpb1+WAQIDAQAB\n-----END PUBLIC KEY-----",padding:i.constants.RSA_PKCS1_PADDING},r).toString("base64")})}},base64:{encode:(e,t)=>Buffer.from(e,t).toString("base64").replace(/\+/g,"-").replace(/\//g,"_"),decode:(e,t)=>Buffer.from(e.replace(/-/g,"+").replace(/_/g,"/"),"base64").toString(t)},uri:{retrieve:e=>{e=e.toString().trim();let t="3go8&$8*3*3h0k(2)2",r=Array.from(Array(e.length).keys()).map(r=>String.fromCharCode(e.charCodeAt(r)^t.charCodeAt(r%t.length))).join(""),o=i.createHash("md5").update(r).digest("base64").replace(/\//g,"_").replace(/\+/g,"-");return`http://p1.music.126.net/${o}/${e}`}},md5:{digest:e=>i.createHash("md5").update(e).digest("hex"),pipe:e=>new Promise((t,r)=>{let o=i.createHash("md5").setEncoding("hex");e.pipe(o).on("error",e=>r(e)).once("finish",()=>t(o.read()))})},sha1:{digest:e=>i.createHash("sha1").update(e).digest("hex")},random:{hex:e=>i.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}};try{e.exports.kuwoapi=r(5477)}catch(e){}},312:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(4118),e.exports=class extends Error{constructor(e){super(`The audio data is incomplete: ${e}`),this.name="IncompleteAudioData"}}},3942:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(4118),e.exports=class extends Error{constructor(e,t){super(`${e} exited with ${t}, which is not zero.`),this.process=e,this.exitCode=t,this.name="ProcessExitNotSuccessfully"}}},4113:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(4118),e.exports=class extends Error{constructor(e){super(`This request URL has been cancelled: ${e}`),this.name="RequestCancelled"}}},6014:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(4118),e.exports=class extends Error{constructor(e,t){super(`Failed to get the response. Status code: ${t}`),this.url=e,this.code=t,this.name="RequestFailed"}}},9057:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(4118),e.exports=class extends Error{constructor(e,t="?"){super(`This song "${t}" is not available in ${e}`),this.name="SongNotAvailable"}}},5467:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(4118),e.exports=class extends Error{constructor(e){super("The response of youtube-dl is malformed."),this.name="YoutubeDlInvalidResponse",this.response=e}}},58:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(4118),e.exports=class extends Error{constructor(){super('You must install "youtube-dl" before using the "youtubedl" source.'),this.name="YoutubeDlNotInstalled"}}},2962:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(4118),e.exports=class extends Error{constructor(e){super("The response of yt-dlp is malformed."),this.name="YtDlpInvalidResponse",this.response=e}}},8761:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(4118),e.exports=class extends Error{constructor(){super('You must install "yt-dlp" before using the "ytdlp" source.'),this.name="YtDlpNotInstalled"}}},403:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(726),r(1966),r(6323),r(6761),r(139),r(7326),r(6282),r(8191),r(4680),r(109),r(8275),r(1223),r(4709),r(1401),r(7321),r(1596),r(6727),r(5923),r(9017),r(6169),r(7338),r(1942),r(7333),r(6426),r(4197),r(4213),r(5646),r(1581),r(6185),r(2092),r(6081),r(4118),r(4774),r(2702),r(1832),r(8352);let i=r(7310).parse,o=r(743),s=r(5262),a=r(886),u=r(3477),{isHost:c}=r(5157),{getManagedCacheStorage:l}=r(9220),{logScope:f}=r(7691),h=f("hook"),p=l("hook");p.aliveDuration=6048e5;let d=["true","cvip","svip"].includes((process.env.ENABLE_LOCAL_VIP||"").toLowerCase()),g="true"===(process.env.BLOCK_ADS||"").toLowerCase(),y="true"===(process.env.DISABLE_UPGRADE_CHECK||"").toLowerCase(),m="svip"===(process.env.ENABLE_LOCAL_VIP||"").toLowerCase(),b=(process.env.LOCAL_VIP_UID||"").split(",").map(e=>parseInt(e)).filter(e=>!Number.isNaN(e)),v={request:{before:()=>{},after:()=>{}},connect:{before:()=>{}},negotiate:{before:()=>{}},target:{host:new Set,path:new Set}};v.target.host=new Set(["music.163.com","interface.music.163.com","interface3.music.163.com","apm.music.163.com","apm3.music.163.com","interface.music.163.com.163jiasu.com","interface3.music.163.com.163jiasu.com"]),v.target.path=new Set(["/api/v3/playlist/detail","/api/v3/song/detail","/api/v6/playlist/detail","/api/album/play","/api/artist/privilege","/api/album/privilege","/api/v1/artist","/api/v1/artist/songs","/api/artist/top/song","/api/v1/album","/api/album/v3/detail","/api/playlist/privilege","/api/song/enhance/player/url","/api/song/enhance/player/url/v1","/api/song/enhance/download/url","/api/song/enhance/download/url/v1","/api/song/enhance/privilege","/api/ad","/batch","/api/batch","/api/listen/together/privilege/get","/api/v1/search/get","/api/v1/search/song/get","/api/search/complex/get","/api/search/complex/page","/api/search/song/page","/api/cloudsearch/pc","/api/v1/playlist/manipulate/tracks","/api/song/like","/api/v1/play/record","/api/playlist/v4/detail","/api/v1/radio/get","/api/v1/discovery/recommend/songs","/api/usertool/sound/mobile/promote","/api/usertool/sound/mobile/theme","/api/usertool/sound/mobile/animationList","/api/usertool/sound/mobile/all","/api/usertool/sound/mobile/detail","/api/vipauth/app/auth/query","/api/music-vip-membership/client/vip/info"]);let w=["music.163.com","music.126.net","iplay.163.com","look.163.com","y.163.com"];v.request.before=e=>{let{req:t}=e;t.url=(t.url.startsWith("http://")?"":(t.socket.encrypted?"https:":"http:")+"//"+(w.some(e=>(t.headers.host||"").endsWith(e))?t.headers.host:null))+t.url;let r=i(t.url);if([r.hostname,t.headers.host].some(e=>c(e,"music.163.com"))&&(e.decision="proxy"),[r.hostname,t.headers.host].some(e=>v.target.host.has(e))&&"POST"===t.method&&("/api/linux/forward"===r.path||r.path.startsWith("/eapi/")))return s.read(t).then(e=>t.body=e).then(s=>{if("x-napm-retry"in t.headers&&delete t.headers["x-napm-retry"],t.headers["X-Real-IP"]="118.88.88.88",!(t.url.includes("stream")||t.url.includes("/eapi/cloud/upload/check"))&&(t.headers["Accept-Encoding"]="gzip, deflate",s)){let t;let a={};if(a.pad=(s.match(/%0+$/)||[""])[0],a.forward="/api/linux/forward"===r.path,a.forward?(t=JSON.parse(o.linuxapi.decrypt(Buffer.from(s.slice(8,s.length-a.pad.length),"hex")).toString()),a.path=i(t.url).path,a.param=t.params):(t=o.eapi.decrypt(Buffer.from(s.slice(7,s.length-a.pad.length),"hex")).toString().split("-36cd479b6b5-"),a.path=t[0],a.param=JSON.parse(t[1])),a.path=a.path.replace(/\/\d*$/,""),e.netease=a,"/api/song/enhance/download/url"===a.path)return _(e);if("/api/song/enhance/download/url/v1"===a.path)return S(e);g&&a.path.startsWith("/api/ad")&&(e.error=Error("ADs blocked."),e.decision="close"),y&&a.path.match(/^\/api(\/v1)?\/(android|ios|osx|pc)\/(upgrade|version)/)&&(e.error=Error("Upgrade check blocked."),e.decision="close")}}).catch(e=>e&&h.error(e,`A error occurred in hook.request.before when hooking ${t.url}.`));if(v.target.host.has(r.hostname)&&(r.path.startsWith("/weapi/")||r.path.startsWith("/api/")))t.headers["X-Real-IP"]="118.88.88.88",e.netease={web:!0,path:r.path.replace(/^\/weapi\//,"/api/").split("?").shift().replace(/\/\d*$/,"")};else if(t.url.includes("package"))try{let r=t.url.split("package/").pop().split("/"),s=i(o.base64.decode(r[0])),a=r[1].replace(/\.\w+/,"");t.url=s.href,t.headers.host=s.hostname,t.headers.cookie=null,e.package={id:a},e.decision="proxy"}catch(t){e.error=t,e.decision="close"}},v.request.after=e=>{let{req:t,proxyRes:r,netease:a,package:u}=e;if("tyst.migu.cn"===t.headers.host&&r.headers["content-range"]&&200===r.statusCode&&(r.statusCode=206),a&&v.target.path.has(a.path)&&200===r.statusCode)return s.read(r,!0).then(e=>e.length?r.body=e:Promise.reject()).then(t=>{let r=e=>e.replace(/([^\\]"\s*:\s*)(\d{16,})(\s*[}|,])/g,'$1"$2L"$3');try{a.encrypted=!1,a.jsonBody=JSON.parse(r(t.toString()))}catch(e){a.encrypted=!0,a.jsonBody=JSON.parse(r(o.eapi.decrypt(t).toString()))}if(d){let e="/api/music-vip-membership/client/vip/info";if("/batch"===a.path||"/api/batch"===a.path||a.path===e){let t=a.path===e?a.jsonBody:a.jsonBody[e],r={iconUrl:null,dynamicIconUrl:null,isSign:!1,isSignIap:!1,isSignDeduct:!1,isSignIapDeduct:!1};if(t&&(0===b.length||b.includes(t.data.userId)))try{let i=t.data.now+316224e5;t.data.redVipLevel=7,t.data.redVipAnnualCount=1,t.data.musicPackage={...r,...t.data.musicPackage,vipCode:230,vipLevel:7,expireTime:i},t.data.associator={...r,...t.data.associator,vipCode:100,vipLevel:7,expireTime:i},m&&(t.data.redplus={...r,...t.data.redplus,vipCode:300,vipLevel:7,expireTime:i},t.data.albumVip={...r,...t.data.albumVip,vipCode:400,vipLevel:0,expireTime:i}),a.path===e?a.jsonBody=t:a.jsonBody[e]=t}catch(e){h.debug({err:e},"Unable to apply the local VIP.")}}}if(new Set([401,512]).has(a.jsonBody.code)&&!a.web){if(a.path.includes("manipulate"))return x(e);if("/api/song/like"===a.path)return E(e)}else if(a.path.includes("url"))return k(e);else if(a.path.includes("/usertool/sound/"))return j(a.jsonBody);else if(a.path.includes("batch"))for(let e in a.jsonBody)e.includes("/usertool/sound/")&&j(a.jsonBody[e]);else if(a.path.includes("/vipauth/app/auth/query"))return T(a.jsonBody)}).then(()=>{["transfer-encoding","content-encoding","content-length"].filter(e=>e in r.headers).forEach(e=>delete r.headers[e]);let e=JSON.stringify(a.jsonBody,(e,t)=>("object"==typeof t&&null!=t&&("cp"in t&&(t.cp=1),"fee"in t&&(t.fee=0),"downloadMaxbr"in t&&0===t.downloadMaxbr&&(t.downloadMaxbr=32e4),"dl"in t&&"downloadMaxbr"in t&&t.dle&&h.error(e,`A error occurred in hook.request.after when hooking ${t.url}.`));if(u){if(new Set([201,301,302,303,307,308]).has(r.statusCode))return s(t.method,i(t.url).resolve(r.headers.location),t.headers).then(t=>e.proxyRes=t);/p\d+c*\.music\.126\.net/.test(t.url)&&(r.headers["content-type"]="audio/*")}},v.connect.before=e=>{let{req:t}=e,r=i("https://"+t.url);[r.hostname,t.headers.host].some(e=>v.target.host.has(e))?80===parseInt(r.port)?(t.url=`${global.address||"localhost"}:${global.port[0]}`,t.local=!0):global.port[1]?(t.url=`${global.address||"localhost"}:${global.port[1]}`,t.local=!0):e.decision="blank":r.href.includes(global.endpoint)&&(e.decision="proxy")},v.negotiate.before=e=>{let{req:t,socket:r,decision:o}=e,s=i("https://"+t.url),a=v.target.host;!t.local&&!o&&a.has(r.sni)&&!a.has(s.hostname)&&(a.add(s.hostname),e.decision="blank")};let _=e=>{let t;let{req:r,netease:i}=e,s="http://music.163.com/api/song/enhance/player/url";if(i.forward){let{id:e,br:r}=i.param;i.param={ids:`["${e}"]`,br:r},t=o.linuxapi.encryptRequest(s,i.param)}else{let{id:e,br:r,e_r:a,header:u}=i.param;i.param={ids:`["${e}"]`,br:r,e_r:a,header:u},t=o.eapi.encryptRequest(s,i.param)}r.url=t.url,r.body=t.body+i.pad},S=e=>{let t;let{req:r,netease:i}=e,s="http://music.163.com/api/song/enhance/player/url/v1";if(i.forward){let{id:e,level:r,immerseType:a}=i.param;i.param={ids:`["${e}"]`,level:r,encodeType:"flac",immerseType:a},t=o.linuxapi.encryptRequest(s,i.param)}else{let{id:e,level:r,immerseType:a,e_r:u,header:c}=i.param;i.param={ids:`["${e}"]`,level:r,encodeType:"flac",immerseType:a,e_r:u,header:c},t=o.eapi.encryptRequest(s,i.param)}r.url=t.url,r.body=t.body+i.pad},x=e=>{let{req:t,netease:r}=e,{trackIds:i,pid:o,op:a}=r.param,u=(Array.isArray(i)?i:JSON.parse(i))[0];return s("POST","http://music.163.com/api/playlist/manipulate/tracks",t.headers,`trackIds=[${u},${u}]&pid=${o}&op=${a}`).then(e=>e.json()).then(e=>{r.jsonBody=e}).catch(e=>e&&h.error(e))},E=e=>{let{req:t,netease:r}=e,{trackId:i}=r.param,o=0,a=0;return s("GET","http://music.163.com/api/v1/user/info",t.headers).then(e=>e.json()).then(e=>(a=e.userPoint.userId,s("GET",`http://music.163.com/api/user/playlist?uid=${a}&limit=1`,t.headers).then(e=>e.json()))).then(e=>(o=e.playlist[0].id,s("POST","http://music.163.com/api/playlist/manipulate/tracks",t.headers,`trackIds=[${i},${i}]&pid=${o}&op=add`).then(e=>e.json()))).then(e=>{new Set([200,502]).has(e.code)&&(r.jsonBody={code:200,playlistId:o})}).catch(e=>e&&h.error(e))},O=e=>s("GET",e.url).then(e=>o.md5.pipe(e)),k=e=>{let t;let{req:r,netease:i}=e,{jsonBody:s}=i,c=Number(process.env.MIN_BR)||0,l=0,f=e=>{if(e.flag=0,(200!==e.code||e.freeTrialInfo||e.br{let s="";try{let{header:e}=i.param;e="string"==typeof e?JSON.parse(e):e;let t=u.parse(r.headers.cookie.replace(/\s/g,""),";");s=e.os||t.os}catch(e){}return e.type=999e3===t.br?"flac":"mp3","pc"===s||"uwp"===s?e.url=global.endpoint?`${global.endpoint.replace("https://","http://")}/package/${o.base64.encode(t.url)}/${e.id}.${e.type}`:t.url:e.url=global.endpoint?`${global.endpoint}/package/${o.base64.encode(t.url)}/${e.id}.${e.type}`:t.url,e.md5=t.md5||o.md5.digest(t.url),e.br=t.br||128e3,e.size=t.size,e.code=200,e.freeTrialInfo=null,t}).then(t=>{if(!i.path.includes("download")||t.md5)return;let o={android:"0.0.0",osx:"0.0.0"},s={key:t.url.replace(/\?.*$/,"").replace(/(?<=kugou\.com\/)\w+\/\w+\//,"").replace(/(?<=kuwo\.cn\/)\w+\/\w+\/resource\//,""),url:t.url};try{let{header:t}=i.param;t="string"==typeof t?JSON.parse(t):t;let a=u.parse(r.headers.cookie.replace(/\s/g,""),";"),c=t.os||a.os,l=t.appver||a.appver;if(c in o&&((e,t)=>{let r=Array.from([e,t]).map(e=>e.split(".").slice(0,3).map(e=>parseInt(e)||0)).reduce((e,t)=>e.length?e.map((e,r)=>e.concat(t[r])):t.map(e=>[e]),[]).filter(e=>e[0]!==e[1])[0];return!r||r[0]<=r[1]})(o[c],l))return p.cache(s,()=>O(s)).then(t=>e.md5=t)}catch(e){}}).catch(e=>e&&h.error(e));200===e.code&&i.web&&(e.url=e.url.replace(/(m\d+?)(?!c)\.music\.126\.net/,"$1c.music.126.net"))};return Array.isArray(s.data)?i.path.includes("download")?(s.data=s.data[0],t=[f(s.data)]):(l=i.web?0:parseInt(((Array.isArray(i.param.ids)?i.param.ids:JSON.parse(i.param.ids))[0]||0).toString().replace("_0","")),t=s.data.map(e=>f(e))):t=[f(s.data)],Promise.all(t).catch(e=>e&&h.error(e))},j=e=>{h.debug("unblockSoundEffects() has been triggered.");let{data:t,code:r}=e;200===r&&(Array.isArray(t)?t.map(e=>{e.type&&(e.type=1)}):t.type&&(t.type=1))},T=e=>{h.debug("unblockLyricsEffects() has been triggered.");let{data:t,code:r}=e;200===r&&Array.isArray(t)&&t.forEach(e=>{"canUse"in e&&(e.canUse=!0),"canNotUseReasonCode"in e&&(e.canNotUseReasonCode=200)})};e.exports=v},5477:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1832),r(8352),r(139),r(726),r(1966),r(4774),r(2702);let i=e=>{let t=BigInt(e);return{low:Number(t),valueOf:()=>t.valueOf(),toString:()=>t.toString(),not:()=>i(~t),isNegative:()=>t<0,or:e=>i(t|BigInt(e)),and:e=>i(t&BigInt(e)),xor:e=>i(t^BigInt(e)),equals:e=>t===BigInt(e),multiply:e=>i(t*BigInt(e)),shiftLeft:e=>i(t<i(t>>BigInt(e))}},o=e=>Array.from(Array(e).keys()),s=(e,t)=>Array(t).fill(null).reduce(t=>t.multiply(e),i(1)),a=(...e)=>e.map(e=>-1===e?i(-1,-1):i(e)),u=a(31,0,1,2,3,4,-1,-1,3,4,5,6,7,8,-1,-1,7,8,9,10,11,12,-1,-1,11,12,13,14,15,16,-1,-1,15,16,17,18,19,20,-1,-1,19,20,21,22,23,24,-1,-1,23,24,25,26,27,28,-1,-1,27,28,29,30,31,30,-1,-1),c=a(57,49,41,33,25,17,9,1,59,51,43,35,27,19,11,3,61,53,45,37,29,21,13,5,63,55,47,39,31,23,15,7,56,48,40,32,24,16,8,0,58,50,42,34,26,18,10,2,60,52,44,36,28,20,12,4,62,54,46,38,30,22,14,6),l=a(39,7,47,15,55,23,63,31,38,6,46,14,54,22,62,30,37,5,45,13,53,21,61,29,36,4,44,12,52,20,60,28,35,3,43,11,51,19,59,27,34,2,42,10,50,18,58,26,33,1,41,9,49,17,57,25,32,0,40,8,48,16,56,24),f=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1],h=a(0,1048577,3145731),p=o(64).map(e=>s(2,e));p[p.length-1]=p[p.length-1].multiply(-1);let d=a(15,6,19,20,28,11,27,16,0,14,22,25,4,17,30,9,1,7,23,13,31,26,2,8,18,12,29,5,21,10,3,24),g=a(56,48,40,32,24,16,8,0,57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,60,52,44,36,28,20,12,4,27,19,11,3),y=a(13,16,10,23,0,4,-1,-1,2,27,14,5,20,9,-1,-1,22,18,11,3,25,7,-1,-1,15,6,26,19,12,1,-1,-1,40,51,30,36,46,54,-1,-1,29,39,50,44,32,47,-1,-1,43,48,38,55,33,52,-1,-1,45,41,49,35,28,31,-1,-1),m=[[14,4,3,15,2,13,5,3,13,14,6,9,11,2,0,5,4,1,10,12,15,6,9,10,1,8,12,7,8,11,7,0,0,15,10,5,14,4,9,10,7,8,12,3,13,1,3,6,15,12,6,11,2,9,5,0,4,2,11,14,1,7,8,13],[15,0,9,5,6,10,12,9,8,7,2,12,3,13,5,2,1,14,7,8,11,4,0,3,14,11,13,6,4,1,10,15,3,13,12,11,15,3,6,0,4,10,1,7,8,4,11,14,13,8,0,6,2,15,9,5,7,1,10,12,14,2,5,9],[10,13,1,11,6,8,11,5,9,4,12,2,15,3,2,14,0,6,13,1,3,15,4,10,14,9,7,12,5,0,8,7,13,1,2,4,3,6,12,11,0,13,5,14,6,8,15,2,7,10,8,15,4,9,11,5,9,0,14,3,10,7,1,12],[7,10,1,15,0,12,11,5,14,9,8,3,9,7,4,8,13,6,2,1,6,11,12,2,3,0,5,14,10,13,15,4,13,3,4,9,6,10,1,12,11,0,2,5,0,13,14,2,8,15,7,4,15,1,10,7,5,6,12,11,3,8,9,14],[2,4,8,15,7,10,13,6,4,1,3,12,11,7,14,0,12,2,5,9,10,13,0,3,1,11,15,5,6,8,9,14,14,11,5,6,4,1,3,10,2,12,15,0,13,2,8,5,11,8,0,15,7,14,9,4,12,7,10,9,1,13,6,3],[12,9,0,7,9,2,14,1,10,15,3,4,6,12,5,11,1,14,13,0,2,8,7,13,15,5,4,10,8,3,11,6,10,4,6,11,7,9,0,6,4,2,13,1,9,15,3,8,15,3,1,14,12,5,11,0,2,12,14,7,5,10,8,13],[4,1,3,10,15,12,5,0,2,11,9,6,8,7,6,9,11,4,12,15,0,3,10,5,14,13,7,8,13,14,1,2,13,6,14,9,4,1,2,14,11,13,5,0,1,10,8,3,0,11,3,5,9,4,15,2,7,8,12,15,10,7,6,12],[13,7,10,0,6,9,5,15,8,4,3,10,11,14,12,5,2,11,9,6,15,12,0,3,4,1,14,13,1,2,7,8,1,2,12,15,10,4,0,3,13,14,6,9,7,8,9,6,15,1,5,12,3,10,14,5,8,7,11,0,4,13,2,11]],b=(e,t,r)=>{let s=i(0);return o(t).forEach(t=>{e[t].isNegative()||r.and(p[e[t].low]).equals(0)||(s=s.or(p[t]))}),s},v=(e,t)=>{let r=o(8).map(()=>i(0)),s=[i(0),i(0)],a=i(0),f=i(0),h=b(c,64,t);return s[0]=h.and(4294967295),s[1]=h.and(-4294967296).shiftRight(32),o(16).forEach(t=>{let c=i(0);f=(f=b(u,64,f=i(s[1]))).xor(e[t]),o(8).forEach(e=>{r[e]=f.shiftRight(8*e).and(255)}),o(8).reverse().forEach(e=>{c=c.shiftLeft(4).or(m[e][r[e]])}),f=b(d,32,c),a=i(s[0]),s[0]=i(s[1]),s[1]=a.xor(f)}),s.reverse(),h=b(l,64,h=s[1].shiftLeft(32).and(-4294967296).or(s[0].and(4294967295)))},w=(e,t,r)=>{let i=b(g,56,e);o(16).forEach(e=>{i=i.and(h[f[e]]).shiftLeft(28-f[e]).or(i.and(h[f[e]].not()).shiftRight(f[e])),t[e]=b(y,64,i)}),1===r&&o(8).forEach(e=>{[t[e],t[15-e]]=[t[15-e],t[e]]})},_=(e,t,r)=>{let s=i(0);o(8).forEach(e=>{s=i(t[e]).shiftLeft(8*e).or(s)});let a=Math.floor(e.length/8),u=o(16).map(()=>i(0));w(s,u,r);let c=o(a).map(()=>i(0));o(a).forEach(t=>{o(8).forEach(r=>{c[t]=i(e[r+8*t]).shiftLeft(8*r).or(c[t])})});let l=o(Math.floor((1+8*(a+1))/8)).map(()=>i(0));o(a).forEach(e=>{l[e]=v(u,c[e])});let f=e.slice(8*a),h=i(0);o(e.length%8).forEach(e=>{h=i(f[e]).shiftLeft(8*e).or(h)}),(f.length||0===r)&&(l[a]=v(u,h));let p=o(8*l.length).map(()=>0),d=0;return l.forEach(e=>{o(8).forEach(t=>{p[d]=e.shiftRight(8*t).and(255).low,d+=1})}),Buffer.from(p)},S=Buffer.from("ylzsxkwm"),x=e=>_(e,S,0);e.exports={encrypt:x,decrypt:e=>_(e,S,1),encryptQuery:e=>x(Buffer.from(e)).toString("base64")}},7691:(e,t,r)=>{"use strict";var i;let o=r(8167),s=process.env.LOG_FILE,a=process.stdout.isTTY,u=o({level:null!==(i=process.env.LOG_LEVEL)&&void 0!==i?i:"info",prettyPrint:"true"!==process.env.JSON_LOG&&{colorize:a,messageFormat:a?"\x1b[1m\x1b[32m({scope})\x1b[0m\x1b[36m {msg}":"({scope}) {msg}",ignore:"time,pid,hostname,scope",errorProps:"*"}},s&&o.destination(s));e.exports={logger:u,logScope:function(e){return u.child({scope:e})}}},8573:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(726),r(1966);let{cacheStorage:i,CacheStorageGroup:o,getManagedCacheStorage:s}=r(9220),a=r(2290),u=r(2822),c=r(5262),l=e=>({id:e.id,name:e.title,artists:{id:e.mid,name:e.author}}),f=e=>{let t=`https://api.bilibili.com/audio/music-service-c/s?search_type=music&page=1&pagesize=30&keyword=${encodeURIComponent(e.keyword)}`;return c("GET",t).then(e=>e.json()).then(t=>{let r=t.data.result.map(l),i=u(r,e);return i?i.id:Promise.reject()})},h=e=>{let t="https://www.bilibili.com/audio/music-service-c/web/url?rivilege=2&quality=2&sid="+e;return c("GET",t).then(e=>e.json()).then(e=>0===e.code?e.data.cdns[0].replace("https","http"):Promise.reject()).catch(()=>a().bilibili.track(e))},p=s("provider/bilibili");e.exports={check:e=>p.cache(e,()=>f(e)).then(h),track:h}},8537:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1832),r(8352),r(139),r(6185),r(2092),r(5106),r(726),r(1966);let i=r(5262),{getManagedCacheStorage:o}=r(9220),s=(e,t)=>Object.keys(e).reduce((r,i)=>Object.assign(r,t.includes(i)&&{[i]:e[i]}),{}),a=e=>{let t=[e[0]],r=()=>t.reduce((e,t)=>e+t.length,0);return e.slice(1).some(e=>r()>15||(t.push(e),!1)),t},u=e=>{try{let r=s(e,["id","name","alias","duration"]);if(r.name=(r.name||"").replace(/(\s*cover[::\s][^)]+)/i,"").replace(/\(\s*cover[::\s][^)]+\)/i,"").replace(/(\s*翻自[::\s][^)]+)/,"").replace(/\(\s*翻自[::\s][^)]+\)/,""),r.album=s(e.album,["id","name"]),r.artists=e.artists.map(e=>s(e,["id","name"])),r.keyword=r.name+" - "+a(r.artists.map(e=>e.name)).join(" / "),"true"===process.env.SEARCH_ALBUM){var t;let e=null===(t=r.album)||void 0===t?void 0:t.name;e&&e!==r.name&&(r.keyword+=` ${e}`)}return r}catch(e){return console.log("getFormatData err: ",e),{}}},c=(e,t)=>{if(!t)return i("GET","https://music.163.com/api/song/detail?ids=["+e+"]").then(e=>e.json()).then(e=>{if(e&&e.songs&&e.songs.length){let t=u(e.songs[0]);return t.name?t:Promise.reject()}return Promise.reject()});{let e=u(t);return e.name?Promise.resolve(e):Promise.reject()}},l=o("provider/find");e.exports=(e,t)=>t?c(e,t):l.cache(e,()=>c(e))},2290:(e,t,r)=>{"use strict";let i=r(5262);e.exports=()=>{let t=global.cnrelay,r=new Proxy(()=>{},{get:(e,t)=>(e.route=(e.route||[]).concat(t),r),apply:(r,o,s)=>{if(e.exports.disable||!t)return Promise.reject();let a=r.route.join("/"),u="object"==typeof s[0]?JSON.stringify(s[0]):s[0];return i("GET",`${t}/${a}?${encodeURIComponent(u)}`).then(e=>e.body())}});return r}},9788:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(726),r(1966),r(6081);let i=r(2290),o=r(2822),s=r(743),a=r(5262),{getManagedCacheStorage:u}=r(9220),c={origin:"http://www.joox.com",referer:"http://www.joox.com",cookie:process.env.JOOX_COOKIE||null},l=e=>/[\u0800-\u4e00]/.test(e.name)?e.name:e.keyword,f=e=>{let{decode:t}=s.base64;return{id:e.songid,name:t(e.info1||""),duration:1e3*e.playtime,album:{id:e.albummid,name:t(e.info3||"")},artists:e.singer_list.map(({id:e,name:r})=>({id:e,name:t(r||"")}))}},h=e=>{let t=l(e),r="http://api-jooxtt.sanook.com/web-fcgi-bin/web_search?country=hk&lang=zh_TW&search_input="+encodeURIComponent(t)+"&sin=0&ein=30";return a("GET",r,c).then(e=>e.body()).then(t=>{let r=JSON.parse(t.replace(/'/g,'"')),i=r.itemlist.map(f),s=o(i,e);return s?s.id:Promise.reject()})},p=e=>{let t="http://api.joox.com/web-fcgi-bin/web_get_songinfo?songid="+e+"&country=hk&lang=zh_cn&from_type=-1&channel_id=-1&_="+new Date().getTime();return a("GET",t,c).then(e=>e.jsonp()).then(e=>{let t=(e.r320Url||e.r192Url||e.mp3Url||e.m4aUrl).replace(/M\d00([\w]+).mp3/,"M800$1.mp3");return t||Promise.reject()}).catch(()=>i().joox.track(e))},d=u("provider/joox");e.exports={check:e=>d.cache(e,()=>h(e)).then(p),track:p}},4840:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(726),r(1966),r(9493),r(4216),r(139);let i=r(2290),o=r(2822),s=r(743),a=r(5262),{getManagedCacheStorage:u}=r(9220),c=e=>({id:e.hash,id_hq:e["320hash"],id_sq:e.sqhash,name:e.songname,duration:1e3*e.duration,album:{id:e.album_id,name:e.album_name}}),l=e=>{let t="http://mobilecdn.kugou.com/api/v3/search/song?keyword="+encodeURIComponent(e.keyword)+"&page=1&pagesize=10";return a("GET",t).then(e=>e.json()).then(t=>{let r=t.data.info.map(c),i=o(r,e);return i||Promise.reject()}).catch(()=>i().kugou.search(e))},f=(e,t)=>{let r=()=>{switch(t){case"hash":return e.id;case"hqhash":return e.id_hq;case"sqhash":return e.id_sq}return""},i="http://trackercdn.kugou.com/i/v2/?key="+s.md5.digest(`${r()}kgcloudv2`)+"&hash="+r()+"&appid=1005&pid=2&cmd=25&behavior=play&album_id="+e.album.id;return a("GET",i).then(e=>e.json()).then(e=>e.url[0]||Promise.reject())},h=e=>Promise.all(["sqhash","hqhash","hash"].slice(o.ENABLE_FLAC?0:1).map(t=>f(e,t).catch(()=>null))).then(e=>e.find(e=>e)||Promise.reject()).catch(()=>i().kugou.track(e)),p=u("provider/kugou");e.exports={check:e=>p.cache(e,()=>l(e)).then(h),search:l}},3081:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(726),r(1966);let i=r(2290),o=r(2822),s=r(743),a=r(5262),{getManagedCacheStorage:u}=r(9220),c=e=>({id:e.MUSICRID.split("_").pop(),name:e.SONGNAME,duration:1e3*e.DURATION,album:{id:e.ALBUMID,name:e.ALBUM},artists:e.ARTIST.split("&").map((t,r)=>({id:r?null:e.ARTISTID,name:t}))}),l=e=>{let t=encodeURIComponent(e.keyword.replace(" - "," "));return a("GET","http://search.kuwo.cn/r.s?&correct=1&stype=comprehensive&encoding=utf8&rformat=json&mobi=1&show_copyright_off=1&searchapi=6&all="+t).then(e=>e.json()).then(t=>{if(!t||t.content.length<2||!t.content[1].musicpage||t.content[1].musicpage.abslist.length<1)return Promise.reject();let r=t.content[1].musicpage.abslist.map(c),i=o(r,e);return i?i.id:Promise.reject()})},f=e=>{let t=s.kuwoapi?"http://mobi.kuwo.cn/mobi.s?f=kuwo&q="+s.kuwoapi.encryptQuery("corp=kuwo&p2p=1&type=convert_url2&sig=0&format="+["flac","mp3"].slice(o.ENABLE_FLAC?0:1).join("|")+"&rid="+e):"http://antiserver.kuwo.cn/anti.s?type=convert_url&format=mp3&response=url&rid=MUSIC_"+e;return a("GET",t,{"user-agent":"okhttp/3.10.0"}).then(e=>e.body()).then(e=>{let t=(e.match(/http[^\s$"]+/)||[])[0];return t||Promise.reject()}).catch(()=>i().kuwo.track(e))},h=u("provider/kuwo");e.exports={check:e=>h.cache(e,()=>l(e)).then(f),track:f}},886:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(6883),r(3859),r(9467),r(6811),r(408),r(9502),r(8669),r(6136),r(5803),r(1536),r(8625),r(434),r(3362),r(821),r(6323),r(6761),r(139),r(940),r(726),r(1966),r(1832),r(8352),r(732),r(5706),r(4774),r(2702);let i=r(8537),o=r(5262),{PROVIDERS:s,DEFAULT_SOURCE:a}=r(1784),{isHostWrapper:u}=r(5157),c=r(9057),l=r(6014),f=r(312),{logScope:h}=r(7691),p=r(4113),d=h("provider/match"),g=e=>e>=200&&e<=299,y=new Map([["bilivideo.com","https://www.bilibili.com/"]]);async function m(e,t){d.debug({source:e,info:t},"Getting the audio...");let r=await s[e].check(t);if(!r)throw new c(e);let i=await v(r);if(d.debug(i,"The matched song is:"),!i||"string"!=typeof i.url)throw new f("song is undefined, or song.url is not a string.");return d.debug({source:e,info:t},"The audio matched!"),i}async function b(e,t,r){let o=(t||global.source||a).filter(e=>e in s),u=await i(e,r),l=null;if(process.env.SELECT_MAX_BR){let e=await Promise.allSettled(o.map(async e=>m(e,u).catch(e=>{throw e&&(e instanceof p?d.debug(e):d.error(e)),e})));if(0===(e=e.filter(e=>"fulfilled"===e.status)).length)throw new c("any source");l=(e=e.map(e=>e.value)).reduce((e,t)=>e.br>=t.br?e:t)}else if(process.env.FOLLOW_SOURCE_ORDER){for(let e=0;em(e,u).catch(e=>{throw e&&(e instanceof p?d.debug(e):d.error(e)),e})));let{id:f,name:h}=u,{url:g}=l;return d.debug({audioInfo:u,audioData:l},"The data to replace:"),d.info({audioId:f,songName:h,url:g},`Replaced: [${f}] ${h}`),l}async function v(e){let t=u(e),r={size:0,br:null,url:null,md5:null},i={range:"bytes=0-8191","accept-encoding":"identity"};y.forEach((e,r)=>{t(r)&&(i.referer=e)});let s=await o("GET",e,i),{headers:a}=s;if(!g(s.statusCode))throw new l(e,s.statusCode);r.url=s.url.href;let c=await s.body(!0);try{let e=function(e){let t={3:{3:["free",32,64,96,128,160,192,224,256,288,320,352,384,416,448,"bad"],2:["free",32,48,56,64,80,96,112,128,160,192,224,256,320,384,"bad"],1:["free",32,40,48,56,64,80,96,112,128,160,192,224,256,320,"bad"]},2:{3:["free",32,48,56,64,80,96,112,128,144,160,176,192,224,256,"bad"],2:["free",8,16,24,32,40,48,56,64,80,96,112,128,144,160,"bad"]}};t[2][1]=t[2][2],t[0]=t[2];let r=0;if("fLaC"===e.slice(0,4).toString())return 999;if("ID3"===e.slice(0,3).toString()){r=6;let t=e.slice(r,r+4).reduce((e,t,r)=>e+(127&t)<<7*(3-r),0);r=10+t}let i=e.slice(r,r+4);if(4===i.length&&255===i[0]&&(i[1]>>5&7)==7&&(i[1]>>1&3)!=0&&(i[2]>>4&15)!=15&&(i[2]>>2&3)!=3){let e=i[1]>>3&3,r=i[1]>>1&3,o=i[2]>>4;return t[e][r][o]}}(c);r.br=e&&!isNaN(e)?1e3*e:null}catch(e){d.debug(e,"Failed to decode and extract the bitrate")}if(!r.br){if(t("qq.com")&&r.url.includes(".m4a")&&(r.br=96e3),t("bilivideo.com")&&r.url.includes(".m4a")){let e=r.url.match(/-(\d+)k\.m4a/),t=parseInt(e);isNaN(t)?t=192e3:t<96||t>999?t=192e3:t*=1e3,r.br=t}t("googlevideo.com")&&(r.br=128e3)}return a&&(t("126.net")&&(r.md5=r.url.split("/").slice(-1)[0].replace(/\..*/g,"")),t("qq.com")&&(r.md5=a["server-md5"]),r.size=parseInt((a["content-range"]||"").split("/").pop()||a["content-length"])||0,"8192"!==a["content-length"])?Promise.reject():r}e.exports=b},1549:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(726),r(1966),r(9493),r(4216),r(139);let i=r(2290),o=r(2822),s=r(5262),{getManagedCacheStorage:a}=r(9220),u={origin:"http://music.migu.cn/",referer:"http://m.music.migu.cn/v3/",aversionid:process.env.MIGU_COOKIE||null,channel:"0146921"},c=e=>{let t=e.singerId.split(/\s*,\s*/),r=e.singerName.split(/\s*,\s*/);return{id:e.id,name:e.title,album:{id:e.albumId,name:e.albumName},artists:t.map((e,t)=>({id:e,name:r[t]}))}},l=e=>{let t="https://m.music.migu.cn/migu/remoting/scr_search_tag?keyword="+encodeURIComponent(e.keyword)+"&type=2&rows=20&pgc=1";return s("GET",t,u).then(e=>e.json()).then(t=>{let r=((t||{}).musics||[]).map(c),i=o(r,e);return i?i.id:Promise.reject()})},f=(e,t)=>{let r="https://app.c.nf.migu.cn/MIGUM2.0/strategy/listen-url/v2.4?netType=01&resourceType=2&songId="+e.toString()+"&toneFlag="+t;return s("GET",r,u).then(e=>e.json()).then(e=>{let{audioFormatType:i}=e.data;return i!==t?Promise.reject():r?e.data.url:Promise.reject()})},h=e=>Promise.all(["ZQ24","SQ","HQ","PQ"].slice(o.ENABLE_FLAC?0:2).map(t=>f(e,t).catch(()=>null))).then(e=>e.find(e=>e)||Promise.reject()).catch(()=>i().migu.track(e)),p=a("provider/migu");e.exports={check:e=>p.cache(e,()=>l(e)).then(h),track:h}},2085:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9493),r(4216),r(139);let i=r(2822),o=r(5262),{getManagedCacheStorage:s}=r(9220),a=e=>{let t="https://pyncmd.apis.imouto.in/api/pyncm?module=track&method=GetTrackAudio&song_ids="+e.id+"&bitrate="+["999000","320000"].slice(i.ENABLE_FLAC?0:1,i.ENABLE_FLAC?1:2);return o("GET",t).then(e=>e.json()).then(t=>{if(t&&"object"==typeof t&&"code"in t&&200!==t.code)return Promise.reject();let r=t.data.find(t=>t.id===e.id);return r&&r.url?r.url:Promise.reject()})},u=s("provider/pyncmd");e.exports={check:e=>u.cache(e,()=>a(e))}},9878:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(726),r(1966),r(9493),r(4216),r(139);let i=r(2290),o=r(2822),s=r(5262),{getManagedCacheStorage:a}=r(9220),u={origin:"http://y.qq.com/",referer:"http://y.qq.com/",cookie:process.env.QQ_COOKIE||null},c=e=>({id:{song:e.mid,file:e.mid},name:e.name,duration:1e3*e.interval,album:{id:e.album.mid,name:e.album.name},artists:e.singer.map(({mid:e,name:t})=>({id:e,name:t}))}),l=e=>{let t="https://u.y.qq.com/cgi-bin/musicu.fcg?data="+encodeURIComponent(JSON.stringify({search:{method:"DoSearchForQQMusicDesktop",module:"music.search.SearchCgiService",param:{num_per_page:5,page_num:1,query:e.keyword,search_type:0}}}));return s("GET",t,u).then(e=>e.json()).then(t=>{let r=t.search.data.body.song.list.map(c),i=o(r,e);return i?i.id:Promise.reject()})},f=(e,t)=>{let r=((u.cookie||"").match(/uin=(\d+)/)||[])[1]||"0",i="https://u.y.qq.com/cgi-bin/musicu.fcg?data="+encodeURIComponent(JSON.stringify({req_0:{module:"vkey.GetVkeyServer",method:"CgiGetVkey",param:{guid:(1e7*Math.random()).toFixed(0),loginflag:1,filename:t[0]?[t.join(e.file)]:null,songmid:[e.song],songtype:[0],uin:r,platform:"20"}}}));return s("GET",i,u).then(e=>e.json()).then(e=>{let{sip:t,midurlinfo:r}=e.req_0.data;if(!r[0].purl)return Promise.reject();let i=t[0]+r[0].purl;return s("GET",i,{range:"bytes=0-8191","accept-encoding":"identity"}).then(e=>e.statusCode<200||e.statusCode>299?Promise.reject():i)})},h=e=>(e.key=e.file,Promise.all([["F000",".flac"],["M800",".mp3"],["M500",".mp3"],[null,null]].slice(u.cookie||"undefined"!=typeof window?o.ENABLE_FLAC?0:1:2).map(t=>f(e,t).catch(()=>null))).then(e=>e.find(e=>e)||Promise.reject()).catch(()=>i().qq.track(e))),p=a("provider/qq");e.exports={check:e=>p.cache(e,()=>l(e)).then(h),track:h}},2822:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9493),r(4216),r(139),e.exports=(e,t)=>{let{duration:r}=t,i=e.slice(0,5).find(e=>e.duration&&5e3>Math.abs(e.duration-r));return i||e[0]},e.exports.ENABLE_FLAC="true"===(process.env.ENABLE_FLAC||"").toLowerCase()},4396:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(6081);let{getManagedCacheStorage:i}=r(9220),{logScope:o}=r(7691),s=r(5467),a=r(58),{spawnStdout:u}=r(7581),c=e=>["-f","140","--dump-json",e],l=e=>`https://www.youtube.com/watch?v=${e}`,f=e=>`ytsearch1:${e}`,h=o("provider/youtube-dl");async function p(e){try{let{stdout:t}=await u("youtube-dl",e),r=JSON.parse(t.toString());if("object"==typeof r&&"string"==typeof r.id&&"string"==typeof r.url)return r;throw new s(r)}catch(e){if(e&&"ENOENT"===e.code)throw new a;throw e}}let d=async e=>{let{id:t}=await p(c(f(e.keyword)));return t},g=async e=>{let{url:t}=await p(c(l(e)));return t},y=i("youtube-dl");e.exports={check:e=>y.cache(e,()=>d(e)).then(g).catch(e=>{throw e&&h.error(e),e}),track:g}},8396:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1832),r(8352),r(139),r(726),r(1966),r(6081),r(9493),r(4216);let i=r(5262),{getManagedCacheStorage:o}=r(9220),s=e=>(e||"").split("&").reduce((e,t)=>{let r=t.split("=").map(decodeURIComponent);return Object.assign({},e,{[r[0]]:r[1]})},{}),a=o("provider/youtube"),u=void 0,c=process.env.YOUTUBE_KEY||null,l=(e="-tKVN2mAKRI")=>{let t=`https://www.youtube.com/watch?v=${e}`;return i("GET",t,{},null,u).then(e=>e.body()).then(e=>{let t=/"WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_VERTICAL_LANDING_PAGE_PROMO":{[^}]+}/.exec(e)[0];return i("GET","https://youtube.com"+(t=JSON.parse(`{${t}}}`).WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_VERTICAL_LANDING_PAGE_PROMO).jsUrl,{},null,u).then(e=>e.body())}).then(e=>{let[,t,r]=/function\((\w+)\)\s*{([^}]+split\(""\)[^}]+join\(""\))};/.exec(e),i=/;(.+?)\..+?\(/.exec(r)[1],o=RegExp(`var ${i}={[\\s\\S]+?};`).exec(e)[0];return Function([t],o+"\n"+r)})},f=e=>{let t=`https://www.googleapis.com/youtube/v3/search?part=snippet&q=${encodeURIComponent(e.keyword)}&type=video&key=${c}`;return i("GET",t,{accept:"application/json"},null,u).then(e=>e.json()).then(e=>{let t=e.items[0];return t?t.id.videoId:Promise.reject()})},h=e=>{let t=`https://www.youtube.com/results?search_query=${encodeURIComponent(e.keyword)}`;return i("GET",t,{},null,u).then(e=>e.body()).then(e=>{let t=JSON.parse(e.match(/ytInitialData\s*=\s*([^;]+);/)[1]),r=t.contents.twoColumnSearchResultsRenderer.primaryContents.sectionListRenderer.contents[0].itemSectionRenderer.contents[1];return r?r.videoRenderer.videoId:Promise.reject()})},p=e=>{let t=`https://www.youtube.com/watch?v=${e}`;return i("GET",t,{},null,u).then(e=>e.body()).then(e=>JSON.parse(e.match(/ytInitialPlayerResponse\s*=\s*{[^]+};\s*var\s*meta/)[0].replace(/;var meta/,"").replace(/ytInitialPlayerResponse = /,"")).streamingData).then(e=>{let t=e.formats.concat(e.adaptiveFormats).find(e=>140===e.itag),r=s(t.signatureCipher);return t.url||(r.sp.includes("sig")?a.cache("YOUTUBE_SIGNATURE",()=>l(),Date.now()+864e5).then(e=>r.url+"&sig="+e(r.s)):r.url)})};e.exports={check:e=>a.cache(e,()=>c?f(e):h(e)).then(p),track:p}},8965:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(6081);let{getManagedCacheStorage:i}=r(9220),{logScope:o}=r(7691),{spawnStdout:s}=r(7581),a=r(2962),u=r(8761),c=e=>["-f","140","--dump-json",e],l=e=>`https://www.youtube.com/watch?v=${e}`,f=e=>`ytsearch1:${e}`,h=o("provider/yt-dlp");async function p(e){try{let{stdout:t}=await s("yt-dlp",e),r=JSON.parse(t.toString());if("object"==typeof r&&"string"==typeof r.id&&"string"==typeof r.url)return r;throw new a(r)}catch(e){if(e&&"ENOENT"===e.code)throw new u;throw e}}let d=async e=>{let{id:t}=await p(c(f(e.keyword)));return t},g=async e=>{let{url:t}=await p(c(l(e)));return t},y=i("yt-dlp");e.exports={check:e=>y.cache(e,()=>d(e)).then(g).catch(e=>{throw e&&h.error(e),e}),track:g}},5262:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1832),r(8352),r(139),r(5106),r(6081);let i=r(9796),o=r(3685),s=r(5687),a=r(2188),u=r(4113),{logScope:c}=r(7691),l=r(7310).parse,f=r(7310).format,h=c("request"),p=e=>(global.hosts||{})[e]||e,d=(e,t)=>("https:"===((void 0===t?global.proxy:t)||e).protocol?s:o).request,g=(e,t,r,i)=>{r=r||{},i=void 0===i?global.proxy:i,"content-length"in r&&delete r["content-length"];let o={};return o._headers=r,i&&"https:"===t.protocol?(o.method="CONNECT",o.headers=Object.keys(r).reduce((e,t)=>Object.assign(e,["host","user-agent"].includes(t)&&{[t]:r[t]}),{})):(o.method=e,o.headers=r),i?(o.hostname=p(i.hostname),o.port=i.port||("https:"===i.protocol?443:80),o.path="https:"===t.protocol?p(t.hostname)+":"+(t.port||443):"http://"+p(t.hostname)+t.path):(o.hostname=p(t.hostname),o.port=t.port||("https:"===t.protocol?443:80),o.path=t.path),o},y=(e,t,r,i,o,c)=>{let p=l(t),w=r||{},_=g(e,p,{host:p.hostname,accept:"application/json, text/plain, */*","accept-encoding":"gzip, deflate","accept-language":"zh-CN,zh;q=0.9","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36",...w},o);return new Promise((r,l)=>{var g;h.debug(`Start requesting ${t}`);let y=d(p,o)(_),m=function(){y.destroy(new u(f(p)))};null==c||c.on(a,m),null!==(g=null==c?void 0:c.cancelled)&&void 0!==g&&g&&m(),y.setTimeout(1e4,()=>{h.warn({url:f(p)},"The request timed out, or the requester didn't handle the response."),m()}).on("response",e=>r(e)).on("connect",(t,o)=>{h.debug("received CONNECT, continuing with https.request()..."),s.request({method:e,path:p.path,headers:_._headers,socket:o,agent:!1}).on("response",e=>r(e)).on("error",e=>l(e)).end(i)}).on("error",e=>l(e)).end("CONNECT"===_.method.toUpperCase()?void 0:i)}).then(t=>{var r;if(null!==(r=null==c?void 0:c.cancelled)&&void 0!==r&&r)return Promise.reject(new u(f(p)));if([201,301,302,303,307,308].includes(t.statusCode)){let r=p.resolve(t.headers.location||p.href);return h.debug(`Redirect to ${r}`),delete w.host,y(e,r,w,i,o)}return Object.assign(t,{url:p,body:e=>m(t,e),json:()=>b(t),jsonp:()=>v(t)})})},m=(e,t)=>new Promise((t,r)=>{let i=[];e.on("data",e=>i.push(e)).on("end",()=>t(Buffer.concat(i))).on("error",e=>r(e))}).then(r=>{if(r.length)switch(e.headers["content-encoding"]){case"deflate":case"gzip":r=i.unzipSync(r);break;case"br":r=i.brotliDecompressSync(r)}return t?r:r.toString()}),b=e=>m(e,!1).then(e=>JSON.parse(e)),v=e=>m(e,!1).then(e=>JSON.parse(e.slice(e.indexOf("(")+1,-1)));y.read=m,y.create=d,y.translate=p,y.configure=g,e.exports=y},8837:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(726),r(1966),r(6323),r(6761),r(139),r(6185),r(2092);let i=r(7147),o=r(1808),s=r(1017),a=r(7310).parse,{logScope:u}=r(7691),c=u("server"),l=r(313),f=r(403),h=r(5262),{isHost:p}=r(5157),d={core:{mitm:(e,t)=>{if("/proxy.pac"===e.url){let r=a("http://"+e.headers.host);t.writeHead(200,{"Content-Type":"application/x-ns-proxy-autoconfig"}),t.end(` function FindProxyForURL(url, host) { if (${Array.from(f.target.host).map(e=>`host == '${e}'`).join(" || ")}) { return 'PROXY ${r.hostname}:${r.port||80}' @@ -9,7 +9,7 @@ ${o(r+4)}${t(e[1])}`)};e.length&&console.log("\npositional arguments:"),e.forEac } `)}else{let r={res:t,req:e};Promise.resolve().then(()=>d.protect(r)).then(()=>d.authenticate(r)).then(()=>f.request.before(r)).then(()=>d.filter(r)).then(()=>d.log(r)).then(()=>d.mitm.request(r)).then(()=>f.request.after(r)).then(()=>d.mitm.response(r)).catch(()=>d.mitm.close(r))}},tunnel:(e,t,r)=>{let i={req:e,socket:t,head:r};Promise.resolve().then(()=>d.protect(i)).then(()=>d.authenticate(i)).then(()=>f.connect.before(i)).then(()=>d.filter(i)).then(()=>d.log(i)).then(()=>d.tunnel.connect(i)).then(()=>d.tunnel.dock(i)).then(()=>f.negotiate.before(i)).then(()=>d.tunnel.pipe(i)).catch(()=>d.tunnel.close(i))}},abort:e=>{e&&e.end(),e&&!e.destroyed&&e.destroy()},protect:e=>{let{req:t,res:r,socket:i}=e;t&&t.on("error",()=>d.abort(t.socket,"req")),r&&r.on("error",()=>d.abort(r.socket,"res")),i&&i.on("error",()=>d.abort(i,"socket"))},log:e=>{let{req:t,socket:r,decision:i}=e;r&&(r?c.debug({decision:i,url:t.url},"TUNNEL"):c.debug({decision:i,host:a(t.url).host,encrypted:t.socket.encrypted},`MITM${t.socket.encrypted?" (ssl)":""}`))},authenticate:e=>{let{req:t,res:r,socket:i}=e,o=Buffer.from((t.headers["proxy-authorization"]||"").split(/\s+/).pop()||"","base64").toString();if("proxy-authorization"in t.headers&&delete t.headers["proxy-authorization"],b.authentication&&o!==b.authentication&&(i||t.url.startsWith("http://")))return i?i.write('HTTP/1.1 407 Proxy Auth Required\r\nProxy-Authenticate: Basic realm="realm"\r\n\r\n'):r.writeHead(407,{"proxy-authenticate":'Basic realm="realm"'}),Promise.reject(e.error="authenticate")},filter:e=>{if(e.decision||e.req.local)return;let t=a((e.socket?"https://":"")+e.req.url),r=e=>-1!==t.href.search(RegExp(e,"g"));try{let t=b.whitelist.some(r),i=b.blacklist.some(r);if(!t&&i)return Promise.reject(e.error="filter")}catch(t){e.error=t}},mitm:{request:e=>new Promise((t,r)=>{if("close"===e.decision)return r(e.error=e.decision);let{req:i}=e;p(i.url,"bilivideo.com")&&(i.headers.referer="https://www.bilibili.com/",i.headers["user-agent"]="okhttp/3.4.1");let o=a(i.url),s=h.configure(i.method,o,i.headers);e.proxyReq=h.create(o)(s).on("response",r=>t(e.proxyRes=r)).on("error",t=>r(e.error=t)),i.readable?i.pipe(e.proxyReq):e.proxyReq.end(i.body)}),response:e=>{let{res:t,proxyRes:r}=e;r.on("error",()=>d.abort(r.socket,"proxyRes")),t.writeHead(r.statusCode,r.headers),r.readable?r.pipe(t):t.end(r.body)},close:e=>{d.abort(e.res.socket,"mitm")}},tunnel:{connect:e=>new Promise((t,r)=>{if("close"===e.decision)return r(e.error=e.decision);let{req:i}=e,s=a("https://"+i.url);if(global.proxy&&!i.local){let o=h.configure(i.method,s,i.headers);h.create(d)(o).on("connect",(r,i)=>t(e.proxySocket=i)).on("error",t=>r(e.error=t)).end()}else{let i=o.connect(s.port||443,h.translate(s.hostname)).on("connect",()=>t(e.proxySocket=i)).on("error",t=>r(e.error=t))}}),dock:e=>new Promise(t=>{let{req:r,head:i,socket:o}=e;o.once("data",r=>t(e.head=Buffer.concat([i,r]))).write(`HTTP/${r.httpVersion} 200 Connection established\r \r -`)}).then(t=>e.socket.sni=l(t)).catch(e=>e&&c.error(e)),pipe:e=>{if("blank"===e.decision)return Promise.reject(e.error=e.decision);let{head:t,socket:r,proxySocket:i}=e;i.on("error",()=>d.abort(e.proxySocket,"proxySocket")),i.write(t),r.pipe(i),i.pipe(r)},close:e=>{d.abort(e.socket,"tunnel")}}},g=process.env.SIGN_CERT||s.join(__dirname,"..","server.crt"),y=process.env.SIGN_KEY||s.join(__dirname,"..","server.key"),m={key:i.readFileSync(y),cert:i.readFileSync(g)},b={http:r(3685).createServer().on("request",d.core.mitm).on("connect",d.core.tunnel),https:r(5687).createServer(m).on("request",d.core.mitm).on("connect",d.core.tunnel)};b.whitelist=[],b.blacklist=["://127\\.\\d+\\.\\d+\\.\\d+","://localhost"],b.authentication=null,e.exports=b},313:e=>{"use strict";e.exports=e=>{let t=e.length,r=43,i=(e=r)=>isNaN(e);if(r+1>t||i()||(r+=1+e[r],r+2>t||i())||(r+=2+e.readInt16BE(r),r+1>t||i())||(r+=1+e[r],r+2>t||i()))return null;let o=e.readInt16BE(r);r+=2;let s=r+o;if(s>t||i(s))return null;for(t=s;r+4<=t||i();){let o=e.readInt16BE(r),s=e.readInt16BE(r+2);if(r+=4,0!==o){r+=s;continue}if(r+2>t||i())break;let a=e.readInt16BE(r);if(r+=2,r+a>t)break;for(;r+3<=t||i();){let o=e[r],s=e.readInt16BE(r+1);if(r+=3,0!==o){r+=s;continue}if(r+s>t||i())return null;return e.toString("ascii",r,r+s)}}return null}},7581:(e,t,r)=>{"use strict";let i=r(2081),{logScope:o}=r(7691),s=r(3942),a=o("spawn");async function u(e,t=[]){return new Promise((r,o)=>{let u=0,c=0,l=Buffer.alloc(5e6),f=Buffer.alloc(5e6),h=i.spawn(e,t);h.on("spawn",()=>{a.info(`running ${e} ${t.join(" ")}`)}),h.on("error",e=>o(e)),h.on("close",t=>{0!==t?o(new s(e,t)):(a.debug(`process ${e} exited successfully`),r({stdout:l.slice(0,u),stderr:f.slice(0,c)}))}),h.stdout.on("data",e=>{u+=e.copy(l,u)}),h.stderr.on("data",t=>{a.warn(`[${e}][stderr] ${t}`),c+=t.copy(f,c)})})}e.exports={spawnStdout:u}},5157:e=>{"use strict";let t=(e,t)=>e.includes(t);e.exports={isHost:t,isHostWrapper:e=>r=>t(e,r)}},160:e=>{"use strict";if("undefined"!=typeof SharedArrayBuffer&&"undefined"!=typeof Atomics){let t=new Int32Array(new SharedArrayBuffer(4));e.exports=function(e){if(!1==(e>0&&e<1/0)){if("number"!=typeof e&&"bigint"!=typeof e)throw TypeError("sleep: ms must be a number");throw RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity")}Atomics.wait(t,0,0,Number(e))}}else e.exports=function(e){if(!1==(e>0&&e<1/0)){if("number"!=typeof e&&"bigint"!=typeof e)throw TypeError("sleep: ms must be a number");throw RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity")}let t=Date.now()+Number(e);for(;t>Date.now(););}},924:(e,t,r)=>{"use strict";var i;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(s){var a,u,c,l=arguments,f=(a=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,u=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g,function(e,t,r,i){if(1!==l.length||"string"!==y(e)||/\d/.test(e)||(t=e,e=void 0),(e=e||0===e?e:new Date)instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");var o=(t=String(f.masks[t]||t||f.masks.default)).slice(0,4);("UTC:"===o||"GMT:"===o)&&(t=t.slice(4),r=!0,"GMT:"===o&&(i=!0));var s=function(){return r?"getUTC":"get"},m=function(){return e[s()+"Date"]()},b=function(){return e[s()+"Day"]()},v=function(){return e[s()+"Month"]()},w=function(){return e[s()+"FullYear"]()},_=function(){return e[s()+"Hours"]()},S=function(){return e[s()+"Minutes"]()},x=function(){return e[s()+"Seconds"]()},E=function(){return e[s()+"Milliseconds"]()},O=function(){return r?0:e.getTimezoneOffset()},k=function(){return d(e)},j={d:function(){return m()},dd:function(){return h(m())},ddd:function(){return f.i18n.dayNames[b()]},DDD:function(){return p({y:w(),m:v(),d:m(),_:s(),dayName:f.i18n.dayNames[b()],short:!0})},dddd:function(){return f.i18n.dayNames[b()+7]},DDDD:function(){return p({y:w(),m:v(),d:m(),_:s(),dayName:f.i18n.dayNames[b()+7]})},m:function(){return v()+1},mm:function(){return h(v()+1)},mmm:function(){return f.i18n.monthNames[v()]},mmmm:function(){return f.i18n.monthNames[v()+12]},yy:function(){return String(w()).slice(2)},yyyy:function(){return h(w(),4)},h:function(){return _()%12||12},hh:function(){return h(_()%12||12)},H:function(){return _()},HH:function(){return h(_())},M:function(){return S()},MM:function(){return h(S())},s:function(){return x()},ss:function(){return h(x())},l:function(){return h(E(),3)},L:function(){return h(Math.floor(E()/10))},t:function(){return 12>_()?f.i18n.timeNames[0]:f.i18n.timeNames[1]},tt:function(){return 12>_()?f.i18n.timeNames[2]:f.i18n.timeNames[3]},T:function(){return 12>_()?f.i18n.timeNames[4]:f.i18n.timeNames[5]},TT:function(){return 12>_()?f.i18n.timeNames[6]:f.i18n.timeNames[7]},Z:function(){return i?"GMT":r?"UTC":(String(e).match(u)||[""]).pop().replace(c,"").replace(/GMT\+0000/g,"UTC")},o:function(){return(O()>0?"-":"+")+h(100*Math.floor(Math.abs(O())/60)+Math.abs(O())%60,4)},p:function(){return(O()>0?"-":"+")+h(Math.floor(Math.abs(O())/60),2)+":"+h(Math.floor(Math.abs(O())%60),2)},S:function(){return["th","st","nd","rd"][m()%10>3?0:(m()%100-m()%10!=10)*m()%10]},W:function(){return k()},WW:function(){return h(k())},N:function(){return g(e)}};return t.replace(a,function(e){return e in j?j[e]():e.slice(1,e.length-1)})});f.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},f.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]};var h=function(e,t){for(e=String(e),t=t||2;e.length{var i=r(8118),o=r(8839),s=r(1828),a=r(6151),u=Buffer.from&&Buffer.from!==Uint8Array.from?Buffer.from([0]):new Buffer([0]),c=function(e,t){e._corked?e.once("uncork",t):t()},l=function(e,t){e._autoDestroy&&e.destroy(t)},f=function(e,t){return function(r){r?l(e,"premature close"===r.message?null:r):t&&!e._ended&&e.end()}},h=function(){},p=function(e,t,r){if(!(this instanceof p))return new p(e,t,r);i.Duplex.call(this,r),this._writable=null,this._readable=null,this._readable2=null,this._autoDestroy=!r||!1!==r.autoDestroy,this._forwardDestroy=!r||!1!==r.destroy,this._forwardEnd=!r||!1!==r.end,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this.destroyed=!1,e&&this.setWritable(e),t&&this.setReadable(t)};s(p,i.Duplex),p.obj=function(e,t,r){return r||(r={}),r.objectMode=!0,r.highWaterMark=16,new p(e,t,r)},p.prototype.cork=function(){1==++this._corked&&this.emit("cork")},p.prototype.uncork=function(){this._corked&&0==--this._corked&&this.emit("uncork")},p.prototype.setWritable=function(e){if(this._unwrite&&this._unwrite(),this.destroyed){e&&e.destroy&&e.destroy();return}if(null===e||!1===e){this.end();return}var t=this,r=o(e,{writable:!0,readable:!1},f(this,this._forwardEnd)),i=function(){var e=t._ondrain;t._ondrain=null,e&&e()};this._unwrite&&process.nextTick(i),this._writable=e,this._writable.on("drain",i),this._unwrite=function(){t._writable.removeListener("drain",i),r()},this.uncork()},p.prototype.setReadable=function(e){if(this._unread&&this._unread(),this.destroyed){e&&e.destroy&&e.destroy();return}if(null===e||!1===e){this.push(null),this.resume();return}var t=this,r=o(e,{writable:!1,readable:!0},f(this)),s=function(){t._forward()},a=function(){t.push(null)};this._drained=!0,this._readable=e,this._readable2=e._readableState?e:new i.Readable({objectMode:!0,highWaterMark:16}).wrap(e),this._readable2.on("readable",s),this._readable2.on("end",a),this._unread=function(){t._readable2.removeListener("readable",s),t._readable2.removeListener("end",a),r()},this._forward()},p.prototype._read=function(){this._drained=!0,this._forward()},p.prototype._forward=function(){var e;if(!this._forwarding&&this._readable2&&this._drained){for(this._forwarding=!0;this._drained&&null!==(e=a(this._readable2));)this.destroyed||(this._drained=this.push(e));this._forwarding=!1}},p.prototype.destroy=function(e,t){if(t||(t=h),this.destroyed)return t(null);this.destroyed=!0;var r=this;process.nextTick(function(){r._destroy(e),t(null)})},p.prototype._destroy=function(e){if(e){var t=this._ondrain;this._ondrain=null,t?t(e):this.emit("error",e)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close")},p.prototype._write=function(e,t,r){if(!this.destroyed){if(this._corked)return c(this,this._write.bind(this,e,t,r));if(e===u)return this._finish(r);if(!this._writable)return r();!1===this._writable.write(e)?this._ondrain=r:this.destroyed||r()}},p.prototype._finish=function(e){var t=this;this.emit("preend"),c(this,function(){var r,i;r=t._forwardEnd&&t._writable,i=function(){!1===t._writableState.prefinished&&(t._writableState.prefinished=!0),t.emit("prefinish"),c(t,e)},!r||r._writableState&&r._writableState.finished?i():r._writableState?r.end(i):(r.end(),i())})},p.prototype.end=function(e,t,r){return"function"==typeof e?this.end(null,null,e):"function"==typeof t?this.end(e,null,t):(this._ended=!0,e&&this.write(e),this._writableState.ending||this._writableState.destroyed||this.write(u),i.Writable.prototype.end.call(this,r))},e.exports=p},8839:(e,t,r)=>{var i=r(5962),o=function(){},s=function(e,t,r){if("function"==typeof t)return s(e,null,t);t||(t={}),r=i(r||o);var a=e._writableState,u=e._readableState,c=t.readable||!1!==t.readable&&e.readable,l=t.writable||!1!==t.writable&&e.writable,f=!1,h=function(){e.writable||p()},p=function(){l=!1,c||r.call(e)},d=function(){c=!1,l||r.call(e)},g=function(t){r.call(e,t?Error("exited with error code: "+t):null)},y=function(t){r.call(e,t)},m=function(){process.nextTick(b)},b=function(){if(!f&&(c&&!(u&&u.ended&&!u.destroyed)||l&&!(a&&a.ended&&!a.destroyed)))return r.call(e,Error("premature close"))},v=function(){e.req.on("finish",p)};return e.setHeader&&"function"==typeof e.abort?(e.on("complete",p),e.on("abort",m),e.req?v():e.on("request",v)):l&&!a&&(e.on("end",h),e.on("close",h)),e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length&&e.on("exit",g),e.on("end",d),e.on("finish",p),!1!==t.error&&e.on("error",y),e.on("close",m),function(){f=!0,e.removeListener("complete",p),e.removeListener("abort",m),e.removeListener("request",v),e.req&&e.req.removeListener("finish",p),e.removeListener("end",h),e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("exit",g),e.removeListener("end",d),e.removeListener("error",y),e.removeListener("close",m)}};e.exports=s},6417:(e,t,r)=>{"use strict";let i=r(2090),o=r(2224),s=r(4281),a=r(7414),{groupRedact:u,nestedRedact:c}=r(9958),l=r(1166),f=r(5392),h=i(),p=e=>e;function d(e={}){let t=Array.from(new Set(e.paths||[])),r="serialize"in e?!1===e.serialize?e.serialize:"function"==typeof e.serialize?e.serialize:JSON.stringify:JSON.stringify,i=e.remove;if(!0===i&&r!==JSON.stringify)throw Error("fast-redact – remove option may only be set when serializer is JSON.stringify");let f=!0===i?void 0:"censor"in e?e.censor:"[REDACTED]",d="function"==typeof f,g=d&&f.length>1;if(0===t.length)return r||p;h({paths:t,serialize:r,censor:f});let{wildcards:y,wcLen:m,secret:b}=o({paths:t,censor:f}),v=a({secret:b,wcLen:m}),w=!("strict"in e)||e.strict;return s({secret:b,wcLen:m,serialize:r,strict:w,isCensorFct:d,censorFctTakesPath:g},l({secret:b,censor:f,compileRestore:v,serialize:r,groupRedact:u,nestedRedact:c,wildcards:y,wcLen:m}))}p.restore=p,d.rx=f,d.validator=i,e.exports=d},9958:e=>{"use strict";function t(e,t){for(var r=-1,i=t.length,o=e;null!=o&&++r{"use strict";let i=r(5392);e.exports=function({paths:e}){let t=[];var r=0;let o=e.reduce(function(e,o,s){var a=o.match(i).map(e=>e.replace(/'|"|`/g,""));let u="["===o[0];a=a.map(e=>"["===e[0]?e.substr(1,e.length-2):e);let c=a.indexOf("*");if(c>-1){let e=a.slice(0,c),i=e.join("."),o=a.slice(c+1,a.length);if(o.indexOf("*")>-1)throw Error("fast-redact – Only one wildcard per path is supported");let s=o.length>0;r++,t.push({before:e,beforeStr:i,after:o,nested:s})}else e[o]={path:a,val:void 0,precensored:!1,circle:"",escPath:JSON.stringify(o),leadingBracket:u};return e},{});return{wildcards:t,wcLen:r,secret:o}}},4281:(e,t,r)=>{"use strict";let i=r(5392);e.exports=function({secret:e,serialize:t,wcLen:r,strict:o,isCensorFct:s,censorFctTakesPath:a},u){let c=Function("o",` +`)}).then(t=>e.socket.sni=l(t)).catch(e=>e&&c.error(e)),pipe:e=>{if("blank"===e.decision)return Promise.reject(e.error=e.decision);let{head:t,socket:r,proxySocket:i}=e;i.on("error",()=>d.abort(e.proxySocket,"proxySocket")),i.write(t),r.pipe(i),i.pipe(r)},close:e=>{d.abort(e.socket,"tunnel")}}},g=process.env.SIGN_CERT||s.join(__dirname,"..","server.crt"),y=process.env.SIGN_KEY||s.join(__dirname,"..","server.key"),m={key:i.readFileSync(y),cert:i.readFileSync(g)},b={http:r(3685).createServer().on("request",d.core.mitm).on("connect",d.core.tunnel),https:r(5687).createServer(m).on("request",d.core.mitm).on("connect",d.core.tunnel)};b.whitelist=[],b.blacklist=["://127\\.\\d+\\.\\d+\\.\\d+","://localhost"],b.authentication=null,e.exports=b},313:e=>{"use strict";e.exports=e=>{let t=e.length,r=43,i=(e=r)=>isNaN(e);if(r+1>t||i()||(r+=1+e[r],r+2>t||i())||(r+=2+e.readInt16BE(r),r+1>t||i())||(r+=1+e[r],r+2>t||i()))return null;let o=e.readInt16BE(r);r+=2;let s=r+o;if(s>t||i(s))return null;for(t=s;r+4<=t||i();){let o=e.readInt16BE(r),s=e.readInt16BE(r+2);if(r+=4,0!==o){r+=s;continue}if(r+2>t||i())break;let a=e.readInt16BE(r);if(r+=2,r+a>t)break;for(;r+3<=t||i();){let o=e[r],s=e.readInt16BE(r+1);if(r+=3,0!==o){r+=s;continue}if(r+s>t||i())return null;return e.toString("ascii",r,r+s)}}return null}},7581:(e,t,r)=>{"use strict";let i=r(2081),{logScope:o}=r(7691),s=r(3942),a=o("spawn");async function u(e,t=[]){return new Promise((r,o)=>{let u=0,c=0,l=Buffer.alloc(5e6),f=Buffer.alloc(5e6),h=i.spawn(e,t);h.on("spawn",()=>{a.info(`running ${e} ${t.join(" ")}`)}),h.on("error",e=>o(e)),h.on("close",t=>{0!==t?o(new s(e,t)):(a.debug(`process ${e} exited successfully`),r({stdout:l.slice(0,u),stderr:f.slice(0,c)}))}),h.stdout.on("data",e=>{u+=e.copy(l,u)}),h.stderr.on("data",t=>{a.warn(`[${e}][stderr] ${t}`),c+=t.copy(f,c)})})}e.exports={spawnStdout:u}},5157:e=>{"use strict";let t=(e,t)=>e.includes(t);e.exports={isHost:t,isHostWrapper:e=>r=>t(e,r)}},160:e=>{"use strict";if("undefined"!=typeof SharedArrayBuffer&&"undefined"!=typeof Atomics){let t=new Int32Array(new SharedArrayBuffer(4));e.exports=function(e){if(!1==(e>0&&e<1/0)){if("number"!=typeof e&&"bigint"!=typeof e)throw TypeError("sleep: ms must be a number");throw RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity")}Atomics.wait(t,0,0,Number(e))}}else e.exports=function(e){if(!1==(e>0&&e<1/0)){if("number"!=typeof e&&"bigint"!=typeof e)throw TypeError("sleep: ms must be a number");throw RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity")}let t=Date.now()+Number(e);for(;t>Date.now(););}},924:(e,t,r)=>{"use strict";var i;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(s){var a,u,c,l=arguments,f=(a=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,u=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g,function(e,t,r,i){if(1!==l.length||"string"!==y(e)||/\d/.test(e)||(t=e,e=void 0),(e=e||0===e?e:new Date)instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");var o=(t=String(f.masks[t]||t||f.masks.default)).slice(0,4);("UTC:"===o||"GMT:"===o)&&(t=t.slice(4),r=!0,"GMT:"===o&&(i=!0));var s=function(){return r?"getUTC":"get"},m=function(){return e[s()+"Date"]()},b=function(){return e[s()+"Day"]()},v=function(){return e[s()+"Month"]()},w=function(){return e[s()+"FullYear"]()},_=function(){return e[s()+"Hours"]()},S=function(){return e[s()+"Minutes"]()},x=function(){return e[s()+"Seconds"]()},E=function(){return e[s()+"Milliseconds"]()},O=function(){return r?0:e.getTimezoneOffset()},k=function(){return d(e)},j={d:function(){return m()},dd:function(){return h(m())},ddd:function(){return f.i18n.dayNames[b()]},DDD:function(){return p({y:w(),m:v(),d:m(),_:s(),dayName:f.i18n.dayNames[b()],short:!0})},dddd:function(){return f.i18n.dayNames[b()+7]},DDDD:function(){return p({y:w(),m:v(),d:m(),_:s(),dayName:f.i18n.dayNames[b()+7]})},m:function(){return v()+1},mm:function(){return h(v()+1)},mmm:function(){return f.i18n.monthNames[v()]},mmmm:function(){return f.i18n.monthNames[v()+12]},yy:function(){return String(w()).slice(2)},yyyy:function(){return h(w(),4)},h:function(){return _()%12||12},hh:function(){return h(_()%12||12)},H:function(){return _()},HH:function(){return h(_())},M:function(){return S()},MM:function(){return h(S())},s:function(){return x()},ss:function(){return h(x())},l:function(){return h(E(),3)},L:function(){return h(Math.floor(E()/10))},t:function(){return 12>_()?f.i18n.timeNames[0]:f.i18n.timeNames[1]},tt:function(){return 12>_()?f.i18n.timeNames[2]:f.i18n.timeNames[3]},T:function(){return 12>_()?f.i18n.timeNames[4]:f.i18n.timeNames[5]},TT:function(){return 12>_()?f.i18n.timeNames[6]:f.i18n.timeNames[7]},Z:function(){return i?"GMT":r?"UTC":(String(e).match(u)||[""]).pop().replace(c,"").replace(/GMT\+0000/g,"UTC")},o:function(){return(O()>0?"-":"+")+h(100*Math.floor(Math.abs(O())/60)+Math.abs(O())%60,4)},p:function(){return(O()>0?"-":"+")+h(Math.floor(Math.abs(O())/60),2)+":"+h(Math.floor(Math.abs(O())%60),2)},S:function(){return["th","st","nd","rd"][m()%10>3?0:(m()%100-m()%10!=10)*m()%10]},W:function(){return k()},WW:function(){return h(k())},N:function(){return g(e)}};return t.replace(a,function(e){return e in j?j[e]():e.slice(1,e.length-1)})});f.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},f.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]};var h=function(e,t){for(e=String(e),t=t||2;e.length{var i=r(8118),o=r(8839),s=r(1828),a=r(6151),u=Buffer.from&&Buffer.from!==Uint8Array.from?Buffer.from([0]):new Buffer([0]),c=function(e,t){e._corked?e.once("uncork",t):t()},l=function(e,t){e._autoDestroy&&e.destroy(t)},f=function(e,t){return function(r){r?l(e,"premature close"===r.message?null:r):t&&!e._ended&&e.end()}},h=function(){},p=function(e,t,r){if(!(this instanceof p))return new p(e,t,r);i.Duplex.call(this,r),this._writable=null,this._readable=null,this._readable2=null,this._autoDestroy=!r||!1!==r.autoDestroy,this._forwardDestroy=!r||!1!==r.destroy,this._forwardEnd=!r||!1!==r.end,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this.destroyed=!1,e&&this.setWritable(e),t&&this.setReadable(t)};s(p,i.Duplex),p.obj=function(e,t,r){return r||(r={}),r.objectMode=!0,r.highWaterMark=16,new p(e,t,r)},p.prototype.cork=function(){1==++this._corked&&this.emit("cork")},p.prototype.uncork=function(){this._corked&&0==--this._corked&&this.emit("uncork")},p.prototype.setWritable=function(e){if(this._unwrite&&this._unwrite(),this.destroyed){e&&e.destroy&&e.destroy();return}if(null===e||!1===e){this.end();return}var t=this,r=o(e,{writable:!0,readable:!1},f(this,this._forwardEnd)),i=function(){var e=t._ondrain;t._ondrain=null,e&&e()};this._unwrite&&process.nextTick(i),this._writable=e,this._writable.on("drain",i),this._unwrite=function(){t._writable.removeListener("drain",i),r()},this.uncork()},p.prototype.setReadable=function(e){if(this._unread&&this._unread(),this.destroyed){e&&e.destroy&&e.destroy();return}if(null===e||!1===e){this.push(null),this.resume();return}var t=this,r=o(e,{writable:!1,readable:!0},f(this)),s=function(){t._forward()},a=function(){t.push(null)};this._drained=!0,this._readable=e,this._readable2=e._readableState?e:new i.Readable({objectMode:!0,highWaterMark:16}).wrap(e),this._readable2.on("readable",s),this._readable2.on("end",a),this._unread=function(){t._readable2.removeListener("readable",s),t._readable2.removeListener("end",a),r()},this._forward()},p.prototype._read=function(){this._drained=!0,this._forward()},p.prototype._forward=function(){var e;if(!this._forwarding&&this._readable2&&this._drained){for(this._forwarding=!0;this._drained&&null!==(e=a(this._readable2));)this.destroyed||(this._drained=this.push(e));this._forwarding=!1}},p.prototype.destroy=function(e,t){if(t||(t=h),this.destroyed)return t(null);this.destroyed=!0;var r=this;process.nextTick(function(){r._destroy(e),t(null)})},p.prototype._destroy=function(e){if(e){var t=this._ondrain;this._ondrain=null,t?t(e):this.emit("error",e)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close")},p.prototype._write=function(e,t,r){if(!this.destroyed){if(this._corked)return c(this,this._write.bind(this,e,t,r));if(e===u)return this._finish(r);if(!this._writable)return r();!1===this._writable.write(e)?this._ondrain=r:this.destroyed||r()}},p.prototype._finish=function(e){var t=this;this.emit("preend"),c(this,function(){var r,i;r=t._forwardEnd&&t._writable,i=function(){!1===t._writableState.prefinished&&(t._writableState.prefinished=!0),t.emit("prefinish"),c(t,e)},!r||r._writableState&&r._writableState.finished?i():r._writableState?r.end(i):(r.end(),i())})},p.prototype.end=function(e,t,r){return"function"==typeof e?this.end(null,null,e):"function"==typeof t?this.end(e,null,t):(this._ended=!0,e&&this.write(e),this._writableState.ending||this._writableState.destroyed||this.write(u),i.Writable.prototype.end.call(this,r))},e.exports=p},8839:(e,t,r)=>{var i=r(5962),o=function(){},s=function(e,t,r){if("function"==typeof t)return s(e,null,t);t||(t={}),r=i(r||o);var a=e._writableState,u=e._readableState,c=t.readable||!1!==t.readable&&e.readable,l=t.writable||!1!==t.writable&&e.writable,f=!1,h=function(){e.writable||p()},p=function(){l=!1,c||r.call(e)},d=function(){c=!1,l||r.call(e)},g=function(t){r.call(e,t?Error("exited with error code: "+t):null)},y=function(t){r.call(e,t)},m=function(){process.nextTick(b)},b=function(){if(!f&&(c&&!(u&&u.ended&&!u.destroyed)||l&&!(a&&a.ended&&!a.destroyed)))return r.call(e,Error("premature close"))},v=function(){e.req.on("finish",p)};return e.setHeader&&"function"==typeof e.abort?(e.on("complete",p),e.on("abort",m),e.req?v():e.on("request",v)):l&&!a&&(e.on("end",h),e.on("close",h)),e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length&&e.on("exit",g),e.on("end",d),e.on("finish",p),!1!==t.error&&e.on("error",y),e.on("close",m),function(){f=!0,e.removeListener("complete",p),e.removeListener("abort",m),e.removeListener("request",v),e.req&&e.req.removeListener("finish",p),e.removeListener("end",h),e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("exit",g),e.removeListener("end",d),e.removeListener("error",y),e.removeListener("close",m)}};e.exports=s},9775:(e,t,r)=>{"use strict";let i=r(2090),o=r(2224),s=r(4281),a=r(7414),{groupRedact:u,nestedRedact:c}=r(9958),l=r(1166),f=r(5392),h=i(),p=e=>e;function d(e={}){let t=Array.from(new Set(e.paths||[])),r="serialize"in e?!1===e.serialize?e.serialize:"function"==typeof e.serialize?e.serialize:JSON.stringify:JSON.stringify,i=e.remove;if(!0===i&&r!==JSON.stringify)throw Error("fast-redact – remove option may only be set when serializer is JSON.stringify");let f=!0===i?void 0:"censor"in e?e.censor:"[REDACTED]",d="function"==typeof f,g=d&&f.length>1;if(0===t.length)return r||p;h({paths:t,serialize:r,censor:f});let{wildcards:y,wcLen:m,secret:b}=o({paths:t,censor:f}),v=a({secret:b,wcLen:m}),w=!("strict"in e)||e.strict;return s({secret:b,wcLen:m,serialize:r,strict:w,isCensorFct:d,censorFctTakesPath:g},l({secret:b,censor:f,compileRestore:v,serialize:r,groupRedact:u,nestedRedact:c,wildcards:y,wcLen:m}))}p.restore=p,d.rx=f,d.validator=i,e.exports=d},9958:e=>{"use strict";function t(e,t){for(var r=-1,i=t.length,o=e;null!=o&&++r{"use strict";let i=r(5392);e.exports=function({paths:e}){let t=[];var r=0;let o=e.reduce(function(e,o,s){var a=o.match(i).map(e=>e.replace(/'|"|`/g,""));let u="["===o[0];a=a.map(e=>"["===e[0]?e.substr(1,e.length-2):e);let c=a.indexOf("*");if(c>-1){let e=a.slice(0,c),i=e.join("."),o=a.slice(c+1,a.length);if(o.indexOf("*")>-1)throw Error("fast-redact – Only one wildcard per path is supported");let s=o.length>0;r++,t.push({before:e,beforeStr:i,after:o,nested:s})}else e[o]={path:a,val:void 0,precensored:!1,circle:"",escPath:JSON.stringify(o),leadingBracket:u};return e},{});return{wildcards:t,wcLen:r,secret:o}}},4281:(e,t,r)=>{"use strict";let i=r(5392);e.exports=function({secret:e,serialize:t,wcLen:r,strict:o,isCensorFct:s,censorFctTakesPath:a},u){let c=Function("o",` if (typeof o !== 'object' || o == null) { ${!0===o?"throw Error('fast-redact: primitives cannot be redacted')":!1===t?"return o":"return this.serialize(o)"} } @@ -78,4 +78,4 @@ ${o(r+4)}${t(e[1])}`)};e.length&&console.log("\npositional arguments:"),e.forEac o${r} if ([o${r}].length !== 1) throw Error() })() - `,i({o:t,〇:null}),{codeGeneration:{strings:!1,wasm:!1}})}catch(t){throw Error(r(e))}})}}},2988:e=>{e.exports=a,a.default=a,a.stable=l,a.stableStringify=l;var t="[...]",r="[Circular]",i=[],o=[];function s(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(e,a,c,l){void 0===l&&(l=s()),function e(i,o,s,a,c,l,f){if(l+=1,"object"==typeof i&&null!==i){for(h=0;hf.depthLimit||void 0!==f.edgesLimit&&s+1>f.edgesLimit){u(t,i,o,c);return}if(a.push(i),Array.isArray(i))for(h=0;ht?1:0}function l(e,a,l,h){void 0===h&&(h=s());var p,d=function e(o,s,a,l,f,h,p){if(h+=1,"object"==typeof o&&null!==o){for(d=0;dp.depthLimit||void 0!==p.edgesLimit&&a+1>p.edgesLimit){u(t,o,s,f);return}if(l.push(o),Array.isArray(o))for(d=0;d0)for(var i=0;i{"use strict";e.exports=function(e){return e}},1828:(e,t,r)=>{try{var i=r(3837);if("function"!=typeof i.inherits)throw"";e.exports=i.inherits}catch(t){e.exports=r(3730)}},3730:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},3538:e=>{"use strict";function t(e,t,r,i){function o(){let e=t.deref();void 0!==e&&r(e,i)}e[i]=o,process.once(i,o)}let r=new FinalizationRegistry(o),i=new WeakMap;function o(e){process.removeListener("exit",e.exit),process.removeListener("beforeExit",e.beforeExit)}e.exports={register:function(e,o){if(void 0===e)throw Error("the object can't be undefined");let s=new WeakRef(e),a={};i.set(e,a),r.register(e,a),t(a,s,o,"exit"),t(a,s,o,"beforeExit")},unregister:function(e){let t=i.get(e);i.delete(e),t&&o(t),r.unregister(e)}}},5962:(e,t,r)=>{var i=r(4447);function o(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function s(e){var t=function(){if(t.called)throw Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}e.exports=i(o),e.exports.strict=i(s),o.proto=o(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return o(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return s(this)},configurable:!0})})},2306:(e,t,r)=>{"use strict";let i=Symbol.for("pino.metadata"),o=r(5443),s=r(7008);function a(e,t){process.nextTick(t,e)}e.exports=function(e,t={}){let r="lines"===t.parse,u="function"==typeof t.parseLine?t.parseLine:JSON.parse,c=t.close||a,l=o(function(e){let t;try{t=u(e)}catch(t){this.emit("unknown",e,t);return}if(null===t){this.emit("unknown",e,"Null value ignored");return}return("object"!=typeof t&&(t={data:t,time:Date.now()}),l[i]&&(l.lastTime=t.time,l.lastLevel=t.level,l.lastObj=t),r)?e:t},{autoDestroy:!0});l._destroy=function(e,t){let r=c(e,t);r&&"function"==typeof r.then&&r.then(t,t)},!1!==t.metadata&&(l[i]=!0,l.lastTime=0,l.lastLevel=0,l.lastObj=null);let f=e(l);if(f&&"function"==typeof f.catch)f.catch(e=>{l.destroy(e)}),f=null;else if(t.enablePipelining&&f)return s(l,f,{objectMode:!0});return l}},1787:(e,t,r)=>{"use strict";let i=r(8556)();e.exports=i;let o="PinoWarning";i.create(o,"PINODEP004","bindings.serializers is deprecated, use options.serializers option instead"),i.create(o,"PINODEP005","bindings.formatters is deprecated, use options.formatters option instead"),i.create(o,"PINODEP006","bindings.customLevels is deprecated, use options.customLevels option instead"),i.create(o,"PINODEP007","bindings.level is deprecated, use options.level option instead")},6441:(e,t,r)=>{"use strict";let i=r(8306),{lsCacheSym:o,levelValSym:s,useOnlyCustomLevelsSym:a,streamSym:u,formattersSym:c,hooksSym:l}=r(4941),{noop:f,genLog:h}=r(9952),p={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},d={fatal:e=>{let t=h(p.fatal,e);return function(...e){let r=this[u];if(t.call(this,...e),"function"==typeof r.flushSync)try{r.flushSync()}catch(e){}}},error:e=>h(p.error,e),warn:e=>h(p.warn,e),info:e=>h(p.info,e),debug:e=>h(p.debug,e),trace:e=>h(p.trace,e)},g=Object.keys(p).reduce((e,t)=>(e[p[t]]=t,e),{}),y=Object.keys(g).reduce((e,t)=>(e[t]=i('{"level":'+Number(t)),e),{});e.exports={initialLsCache:y,genLsCache:function(e){let t=e[c].level,{labels:r}=e.levels,i={};for(let e in r){let o=t(r[e],Number(e));i[e]=JSON.stringify(o).slice(0,-1)}return e[o]=i,e},levelMethods:d,getLevel:function(e){let{levels:t,levelVal:r}=this;return t&&t.labels?t.labels[r]:""},setLevel:function(e){let{labels:t,values:r}=this.levels;if("number"==typeof e){if(void 0===t[e])throw Error("unknown level value"+e);e=t[e]}if(void 0===r[e])throw Error("unknown level "+e);let i=this[s],o=this[s]=r[e],u=this[a],c=this[l].logMethod;for(let e in r){if(o>r[e]){this[e]=f;continue}this[e]=!function(e,t){if(t)return!1;switch(e){case"fatal":case"error":case"warn":case"info":case"debug":case"trace":return!0;default:return!1}}(e,u)?h(r[e],c):d[e](c)}this.emit("level-change",e,o,t[i],i)},isLevelEnabled:function(e){let{values:t}=this.levels,r=t[e];return void 0!==r&&r>=this[s]},mappings:function(e=null,t=!1){let r=e?Object.keys(e).reduce((t,r)=>(t[e[r]]=r,t),{}):null,i=Object.assign(Object.create(Object.prototype,{Infinity:{value:"silent"}}),t?null:g,r),o=Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),t?null:p,e);return{labels:i,values:o}},assertNoLevelCollisions:function(e,t){let{labels:r,values:i}=e;for(let e in t){if(e in i)throw Error("levels cannot be overridden");if(t[e]in r)throw Error("pre-existing level values cannot be used for new levels")}},assertDefaultLevelFound:function(e,t,r){if("number"==typeof e){let i=[].concat(Object.keys(t||{}).map(e=>t[e]),r?[]:Object.keys(g).map(e=>+e),1/0);if(!i.includes(e))throw Error(`default level:${e} must be included in custom levels`);return}let i=Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),r?null:p,t);if(!(e in i))throw Error(`default level:${e} must be included in custom levels`)}}},8508:(e,t,r)=>{"use strict";let{version:i}=r(8002);e.exports={version:i}},5092:(e,t,r)=>{"use strict";let{EventEmitter:i}=r(2361),o=r(4656),s=r(8306),a=r(1787),{lsCacheSym:u,levelValSym:c,setLevelSym:l,getLevelSym:f,chindingsSym:h,parsedChindingsSym:p,mixinSym:d,asJsonSym:g,writeSym:y,mixinMergeStrategySym:m,timeSym:b,timeSliceIndexSym:v,streamSym:w,serializersSym:_,formattersSym:S,useOnlyCustomLevelsSym:x,needsMetadataGsym:E,redactFmtSym:O,stringifySym:k,formatOptsSym:j,stringifiersSym:T}=r(4941),{getLevel:R,setLevel:P,isLevelEnabled:M,mappings:A,initialLsCache:L,genLsCache:N,assertNoLevelCollisions:C}=r(6441),{asChindings:D,asJson:I,buildFormatters:B,stringify:$}=r(9952),{version:q}=r(8508),U=r(5434),F={constructor:class{},child:function(e,t){if(!e)throw Error("missing bindings for child Pino");t=t||{};let r=this[_],i=this[S],o=Object.create(this);if(!0===e.hasOwnProperty("serializers")&&(a.emit("PINODEP004"),t.serializers=e.serializers),!0===e.hasOwnProperty("formatters")&&(a.emit("PINODEP005"),t.formatters=e.formatters),!0===e.hasOwnProperty("customLevels")&&(a.emit("PINODEP006"),t.customLevels=e.customLevels),!0===e.hasOwnProperty("level")&&(a.emit("PINODEP007"),t.level=e.level),!0===t.hasOwnProperty("serializers")){for(let e in o[_]=Object.create(null),r)o[_][e]=r[e];let e=Object.getOwnPropertySymbols(r);for(var s=0;se;function G(e,t){return Object.assign(t,e)}},5434:(e,t,r)=>{"use strict";let i=r(6417),{redactFmtSym:o,wildcardFirstSym:s}=r(4941),{rx:a,validator:u}=i,c=u({ERR_PATHS_MUST_BE_STRINGS:()=>"pino – redacted paths must be strings",ERR_INVALID_PATH:e=>`pino – redact paths array contains an invalid path (${e})`}),l="[Redacted]";e.exports=function(e,t){let{paths:r,censor:u}=function(e){if(Array.isArray(e))return c(e={paths:e,censor:l}),e;let{paths:t,censor:r=l,remove:i}=e;if(!1===Array.isArray(t))throw Error("pino – redact must contain an array of strings");return!0===i&&(r=void 0),c({paths:t,censor:r}),{paths:t,censor:r}}(e),f=r.reduce((e,t)=>{a.lastIndex=0;let r=a.exec(t),i=a.exec(t),o=void 0!==r[1]?r[1].replace(/^(?:"|'|`)(.*)(?:"|'|`)$/,"$1"):r[0];if("*"===o&&(o=s),null===i)return e[o]=null,e;if(null===e[o])return e;let{index:u}=i,c=`${t.substr(u,t.length-1)}`;return e[o]=e[o]||[],o!==s&&0===e[o].length&&e[o].push(...e[s]||[]),o===s&&Object.keys(e).forEach(function(t){e[t]&&e[t].push(c)}),e[o].push(c),e},{}),h={[o]:i({paths:r,censor:u,serialize:t,strict:!1})},p=(...e)=>"function"==typeof u?t(u(...e)):t(u);return[...Object.keys(f),...Object.getOwnPropertySymbols(f)].reduce((e,r)=>{if(null===f[r])e[r]=e=>p(e,[r]);else{let o="function"==typeof u?(e,t)=>u(e,[r,...t]):u;e[r]=i({paths:f[r],censor:o,serialize:t,strict:!1})}return e},h)}},4941:e=>{"use strict";let t=Symbol("pino.setLevel"),r=Symbol("pino.getLevel"),i=Symbol("pino.levelVal"),o=Symbol("pino.useLevelLabels"),s=Symbol("pino.useOnlyCustomLevels"),a=Symbol("pino.mixin"),u=Symbol("pino.lsCache"),c=Symbol("pino.chindings"),l=Symbol("pino.parsedChindings"),f=Symbol("pino.asJson"),h=Symbol("pino.write"),p=Symbol("pino.redactFmt"),d=Symbol("pino.time"),g=Symbol("pino.timeSliceIndex"),y=Symbol("pino.stream"),m=Symbol("pino.stringify"),b=Symbol("pino.stringifiers"),v=Symbol("pino.end"),w=Symbol("pino.formatOpts"),_=Symbol("pino.messageKey"),S=Symbol("pino.nestedKey"),x=Symbol("pino.mixinMergeStrategy"),E=Symbol("pino.wildcardFirst"),O=Symbol.for("pino.serializers"),k=Symbol.for("pino.formatters"),j=Symbol.for("pino.hooks"),T=Symbol.for("pino.metadata");e.exports={setLevelSym:t,getLevelSym:r,levelValSym:i,useLevelLabelsSym:o,mixinSym:a,lsCacheSym:u,chindingsSym:c,parsedChindingsSym:l,asJsonSym:f,writeSym:h,serializersSym:O,redactFmtSym:p,timeSym:d,timeSliceIndexSym:g,streamSym:y,stringifySym:m,stringifiersSym:b,endSym:v,formatOptsSym:w,messageKeySym:_,nestedKeySym:S,wildcardFirstSym:E,needsMetadataGsym:T,useOnlyCustomLevelsSym:s,formattersSym:k,hooksSym:j,mixinMergeStrategySym:x}},9649:e=>{"use strict";e.exports={nullTime:()=>"",epochTime:()=>`,"time":${Date.now()}`,unixTime:()=>`,"time":${Math.round(Date.now()/1e3)}`,isoTime:()=>`,"time":"${new Date(Date.now()).toISOString()}"`}},9952:(e,t,r)=>{"use strict";let i=r(4532),{mapHttpRequest:o,mapHttpResponse:s}=r(4186),a=r(4656),u=r(2988),{lsCacheSym:c,chindingsSym:l,parsedChindingsSym:f,writeSym:h,serializersSym:p,formatOptsSym:d,endSym:g,stringifiersSym:y,stringifySym:m,wildcardFirstSym:b,needsMetadataGsym:v,redactFmtSym:w,streamSym:_,nestedKeySym:S,formattersSym:x,messageKeySym:E}=r(4941);function O(){}function k(e,t,i,o){if(t&&"function"==typeof t)return j((t=t.bind(o))(e),i,e);try{let t=r(1686).prettyFactory||r(1686);return t.asMetaWrapper=j,j(t(e),i,e)}catch(e){if(e.message.startsWith("Cannot find module 'pino-pretty'"))throw Error("Missing `pino-pretty` module: `pino-pretty` must be installed separately");throw e}}function j(e,t,r){r=Object.assign({suppressFlushSyncWarning:!1},r);let i=!1;return{[v]:!0,lastLevel:0,lastMsg:null,lastObj:null,lastLogger:null,flushSync(){r.suppressFlushSyncWarning||i||(i=!0,R(t,this),t.write(e(Object.assign({level:40,msg:"pino.final with prettyPrint does not support flushing",time:Date.now()},this.chindings()))))},chindings(){let e=this.lastLogger,t=null;return e?(e.hasOwnProperty(f)?t=e[f]:(t=JSON.parse("{"+e[l].substr(1)+"}"),e[f]=t),t):null},write(r){let i=this.lastLogger,o=this.chindings(),s=this.lastTime;s=s.match(/^\d+/)?parseInt(s):s.slice(1,-1);let a=this.lastObj,u=this.lastMsg,c=i[x],l=c.log?c.log(a):a,f=i[E];u&&l&&!l.hasOwnProperty(f)&&(l[f]=u);let h=Object.assign({level:this.lastLevel,time:s},l,null),d=i[p],g=Object.keys(d);for(var m=0;m100)return JSON.stringify(e);for(var a=0;a=32;a++)(34===(o=e.charCodeAt(a))||92===o)&&(t+=e.slice(r,a)+"\\",r=a,i=!0);return i?t+=e.slice(r):t=e,o<32?JSON.stringify(e):'"'+t+'"'})(o);break;default:o=(e||s)(o)}if(void 0===o)continue;w+=',"'+t+'":'+o}return w+u},genLog:function(e,t){if(!t)return r;return function(...i){t.call(this,i,r,e)};function r(t,...a){if("object"==typeof t){let r,u=t;null!==t&&(t.method&&t.headers&&t.socket?t=o(t):"function"==typeof t.setHeader&&(t=s(t))),this[S]&&(t={[this[S]]:t}),null===u&&0===a.length?r=[null]:(u=a.shift(),r=a),this[h](t,i(u,r,this[d]),e)}else this[h](null,i(t,a,this[d]),e)}},createArgsNormalizer:function(e){return function(t,r={},i){var o;if("string"==typeof r?(i=T({dest:r,sync:!0}),r={}):"string"==typeof i?i=T({dest:i,sync:!0}):(r instanceof a||r.writable||r._writableState)&&(i=r,r=null),"extreme"in(r=Object.assign({},e,r)))throw Error("The extreme option has been removed, use pino.destination({ sync: false }) instead");if("onTerminated"in r)throw Error("The onTerminated option has been removed, use pino.final instead");"changeLevelName"in r&&(process.emitWarning("The changeLevelName option is deprecated and will be removed in v7. Use levelKey instead.",{code:"changeLevelName_deprecation"}),r.levelKey=r.changeLevelName,delete r.changeLevelName);let{enabled:s,prettyPrint:u,prettifier:c,messageKey:l}=r;if(!1===s&&(r.level="silent"),(i=i||process.stdout)===process.stdout&&i.fd>=0&&!((o=i).write!==o.constructor.prototype.write)&&(i=T({fd:i.fd,sync:!0})),u){let e=Object.assign({messageKey:l},u);i=k(e,c,i,t)}return{opts:r,stream:i}}},final:function(e,t){if(void 0===e||"function"!=typeof e.child)throw Error("expected a pino logger instance");let r=void 0!==t;if(r&&"function"!=typeof t)throw Error("if supplied, the handler parameter should be a function");let i=e[_];if("function"!=typeof i.flushSync)throw Error("final requires a stream that has a flushSync method, such as pino.destination");let o=new Proxy(e,{get:(e,t)=>t in e.levels.values?(...r)=>{e[t](...r),i.flushSync()}:e[t]});return r?(e=null,...r)=>{try{i.flushSync()}catch(e){}return t(e,o,...r)}:o},stringify:function(e){try{return JSON.stringify(e)}catch(t){return u(e)}},buildFormatters:function(e,t,r){return{level:e,bindings:t,log:r}}}},8167:(e,t,r)=>{"use strict";let i=r(2037),o=r(4186),s=r(5434),a=r(9649),u=r(5092),c=r(4941),{assertDefaultLevelFound:l,mappings:f,genLsCache:h}=r(6441),{createArgsNormalizer:p,asChindings:d,final:g,stringify:y,buildSafeSonicBoom:m,buildFormatters:b,noop:v}=r(9952),{version:w}=r(8508),{mixinMergeStrategySym:_}=r(4941),{chindingsSym:S,redactFmtSym:x,serializersSym:E,timeSym:O,timeSliceIndexSym:k,streamSym:j,stringifySym:T,stringifiersSym:R,setLevelSym:P,endSym:M,formatOptsSym:A,messageKeySym:L,nestedKeySym:N,mixinSym:C,useOnlyCustomLevelsSym:D,formattersSym:I,hooksSym:B}=c,{epochTime:$,nullTime:q}=a,{pid:U}=process,F=i.hostname(),W=o.err,G={level:"info",messageKey:"msg",nestedKey:null,enabled:!0,prettyPrint:!1,base:{pid:U,hostname:F},serializers:Object.assign(Object.create(null),{err:W}),formatters:Object.assign(Object.create(null),{bindings:e=>e,level:(e,t)=>({level:t})}),hooks:{logMethod:void 0},timestamp:$,name:void 0,redact:null,customLevels:null,levelKey:void 0,useOnlyCustomLevels:!1},H=p(G),z=Object.assign(Object.create(null),o);function J(...e){var t,r;let i={},{opts:o,stream:a}=H(i,...e),{redact:c,crlf:p,serializers:g,timestamp:m,messageKey:w,nestedKey:U,base:F,name:W,level:z,customLevels:K,useLevelLabels:Y,changeLevelName:Q,levelKey:X,mixin:Z,mixinMergeStrategy:ee,useOnlyCustomLevels:et,formatters:er,hooks:en}=o,ei=b(er.level,er.bindings,er.log);Y&&!(Q||X)?(process.emitWarning("useLevelLabels is deprecated, use the formatters.level option instead","Warning","PINODEP001"),ei.level=V):(Q||X)&&!Y?(process.emitWarning("changeLevelName and levelKey are deprecated, use the formatters.level option instead","Warning","PINODEP002"),ei.level=(t=Q||X,function(e,r){return{[t]:r}})):(Q||X)&&Y&&(process.emitWarning("useLevelLabels is deprecated, use the formatters.level option instead","Warning","PINODEP001"),process.emitWarning("changeLevelName and levelKey are deprecated, use the formatters.level option instead","Warning","PINODEP002"),ei.level=(r=Q||X,function(e,t){return{[r]:e}})),g[Symbol.for("pino.*")]&&(process.emitWarning("The pino.* serializer is deprecated, use the formatters.log options instead","Warning","PINODEP003"),ei.log=g[Symbol.for("pino.*")]),ei.bindings||(ei.bindings=G.formatters.bindings),ei.level||(ei.level=G.formatters.level);let eo=c?s(c,y):{},es=c?{stringify:eo[x]}:{stringify:y},ea=d.bind(null,{[S]:"",[E]:g,[R]:eo,[T]:y,[I]:ei}),eu="";null!==F&&(eu=ea(void 0===W?F:Object.assign({},F,{name:W})));let ec=m instanceof Function?m:m?$:q,el=ec().indexOf(":")+1;if(et&&!K)throw Error("customLevels is required if useOnlyCustomLevels is set true");if(Z&&"function"!=typeof Z)throw Error(`Unknown mixin type "${typeof Z}" - expected "function"`);l(z,K,et);let ef=f(K,et);return Object.assign(i,{levels:ef,[D]:et,[j]:a,[O]:ec,[k]:el,[T]:y,[R]:eo,[M]:"}"+(p?"\r\n":"\n"),[A]:es,[L]:w,[N]:U,[E]:g,[C]:Z,[_]:ee,[S]:eu,[I]:ei,[B]:en,silent:v}),Object.setPrototypeOf(i,u()),h(i),i[P](z),i}function V(e,t){return{level:e}}e.exports=J,e.exports.extreme=(e=process.stdout.fd)=>(process.emitWarning("The pino.extreme() option is deprecated and will be removed in v7. Use pino.destination({ sync: false }) instead.",{code:"extreme_deprecation"}),m({dest:e,minLength:4096,sync:!1})),e.exports.destination=(e=process.stdout.fd)=>"object"==typeof e?(e.dest=e.dest||process.stdout.fd,m(e)):m({dest:e,minLength:0,sync:!0}),e.exports.final=g,e.exports.levels=f(),e.exports.stdSerializers=z,e.exports.stdTimeFunctions=Object.assign({},a),e.exports.symbols=c,e.exports.version=w,e.exports.default=J,e.exports.pino=J},4186:(e,t,r)=>{"use strict";let i=r(7657),o=r(6836),s=r(6364);e.exports={err:i,mapHttpRequest:o.mapHttpRequest,mapHttpResponse:s.mapHttpResponse,req:o.reqSerializer,res:s.resSerializer,wrapErrorSerializer:function(e){return e===i?e:function(t){return e(i(t))}},wrapRequestSerializer:function(e){return e===o.reqSerializer?e:function(t){return e(o.reqSerializer(t))}},wrapResponseSerializer:function(e){return e===s.resSerializer?e:function(t){return e(s.resSerializer(t))}}}},7657:e=>{"use strict";e.exports=function e(i){if(!(i instanceof Error))return i;i[r]=void 0;let s=Object.create(o);for(let o in s.type="[object Function]"===t.call(i.constructor)?i.constructor.name:i.name,s.message=i.message,s.stack=i.stack,i)if(void 0===s[o]){let t=i[o];t instanceof Error?t.hasOwnProperty(r)||(s[o]=e(t)):s[o]=t}return delete i[r],s.raw=i,s};let{toString:t}=Object.prototype,r=Symbol("circular-ref-tag"),i=Symbol("pino-raw-err-ref"),o=Object.create({},{type:{enumerable:!0,writable:!0,value:void 0},message:{enumerable:!0,writable:!0,value:void 0},stack:{enumerable:!0,writable:!0,value:void 0},raw:{enumerable:!1,get:function(){return this[i]},set:function(e){this[i]=e}}});Object.defineProperty(o,i,{writable:!0,value:{}})},6836:e=>{"use strict";e.exports={mapHttpRequest:function(e){return{req:i(e)}},reqSerializer:i};let t=Symbol("pino-raw-req-ref"),r=Object.create({},{id:{enumerable:!0,writable:!0,value:""},method:{enumerable:!0,writable:!0,value:""},url:{enumerable:!0,writable:!0,value:""},query:{enumerable:!0,writable:!0,value:""},params:{enumerable:!0,writable:!0,value:""},headers:{enumerable:!0,writable:!0,value:{}},remoteAddress:{enumerable:!0,writable:!0,value:""},remotePort:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[t]},set:function(e){this[t]=e}}});function i(e){let t=e.info||e.socket,i=Object.create(r);return i.id="function"==typeof e.id?e.id():e.id||(e.info?e.info.id:void 0),i.method=e.method,e.originalUrl?(i.url=e.originalUrl,i.query=e.query,i.params=e.params):i.url=e.path||(e.url?e.url.path||e.url:void 0),i.headers=e.headers,i.remoteAddress=t&&t.remoteAddress,i.remotePort=t&&t.remotePort,i.raw=e.raw||e,i}Object.defineProperty(r,t,{writable:!0,value:{}})},6364:e=>{"use strict";e.exports={mapHttpResponse:function(e){return{res:i(e)}},resSerializer:i};let t=Symbol("pino-raw-res-ref"),r=Object.create({},{statusCode:{enumerable:!0,writable:!0,value:0},headers:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[t]},set:function(e){this[t]=e}}});function i(e){let t=Object.create(r);return t.statusCode=e.statusCode,t.headers=e.getHeaders?e.getHeaders():e._headers,t.raw=e,t}Object.defineProperty(r,t,{writable:!0,value:{}})},8556:(e,t,r)=>{"use strict";let{format:i}=r(3837);e.exports=function(){let e={},t=new Map;return{create:function(r,o,s){if(!r)throw Error("Warning name must not be empty");if(!o)throw Error("Warning code must not be empty");if(!s)throw Error("Warning message must not be empty");if(void 0!==e[o=o.toUpperCase()])throw Error(`The code '${o}' already exist`);return t.set(o,!1),e[o]=function(e,t,a){return{code:o,name:r,message:e&&t&&a?i(s,e,t,a):e&&t?i(s,e,t):e?i(s,e):s}},e[o]},emit:function(r,i,o,s){if(void 0===e[r])throw Error(`The code '${r}' does not exist`);if(!0===t.get(r))return;t.set(r,!0);let a=e[r](i,o,s);process.emitWarning(a.message,a.name,a.code)},emitted:t}}},2181:(e,t,r)=>{var i=r(5962),o=r(8839),s=r(7147),a=function(){},u=/^v?\.0/.test(process.version),c=function(e){return"function"==typeof e},l=function(e,t,r,l){l=i(l);var f=!1;e.on("close",function(){f=!0}),o(e,{readable:t,writable:r},function(e){if(e)return l(e);f=!0,l()});var h=!1;return function(t){if(!f&&!h){if(h=!0,u&&s&&(e instanceof(s.ReadStream||a)||e instanceof(s.WriteStream||a))&&c(e.close))return e.close(a);if(e.setHeader&&c(e.abort))return e.abort();if(c(e.destroy))return e.destroy();l(t||Error("stream was destroyed"))}}},f=function(e){e()},h=function(e,t){return e.pipe(t)};e.exports=function(){var e,t=Array.prototype.slice.call(arguments),r=c(t[t.length-1]||a)&&t.pop()||a;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw Error("pump requires two streams per minimum");var i=t.map(function(o,s){var a=s0,function(t){e||(e=t),t&&i.forEach(f),a||(i.forEach(f),r(e))})});return t.reduce(h)}},4532:e=>{"use strict";function t(e){try{return JSON.stringify(e)}catch(e){return'"[Circular]"'}}e.exports=function(e,r,i){var o=i&&i.stringify||t;if("object"==typeof e&&null!==e){var s=r.length+1;if(1===s)return e;var a=Array(s);a[0]=o(e);for(var u=1;u-1?h:0,e.charCodeAt(d+1)){case 100:case 102:if(f>=c||null==r[f])break;h=c||null==r[f])break;h=c||void 0===r[f])break;h",h=d+2,d++;break}l+=o(r[f]),h=d+2,d++;break;case 115:if(f>=c)break;h{"use strict";let t={};function r(e,r,i){i||(i=Error);class o extends i{constructor(e,t,i){super("string"==typeof r?r:r(e,t,i))}}o.prototype.name=i.name,o.prototype.code=e,t[e]=o}function i(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){var o,s,a,u,c;let l,f;if("string"==typeof t&&(o="not ",t.substr(!s||s<0?0:+s,o.length)===o)?(l="must not be",t=t.replace(/^not /,"")):l="must be",a=" argument",(void 0===u||u>e.length)&&(u=e.length),e.substring(u-a.length,u)===a)f=`The ${e} ${l} ${i(t,"type")}`;else{let r=("number"!=typeof c&&(c=0),c+1>e.length||-1===e.indexOf(".",c))?"argument":"property";f=`The "${e}" ${r} ${l} ${i(t,"type")}`}return f+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},673:(e,t,r)=>{"use strict";var i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var o=r(5006),s=r(8719);r(1828)(l,o);for(var a=i(s.prototype),u=0;u{"use strict";e.exports=o;var i=r(8597);function o(e){if(!(this instanceof o))return new o(e);i.call(this,e)}r(1828)(o,i),o.prototype._transform=function(e,t,r){r(null,e)}},5006:(e,t,r)=>{"use strict";e.exports=O,O.ReadableState=E,r(2361).EventEmitter;var i,o,s,a,u,c=function(e,t){return e.listeners(t).length},l=r(1829),f=r(4300).Buffer,h=global.Uint8Array||function(){},p=r(3837);o=p&&p.debuglog?p.debuglog("stream"):function(){};var d=r(4506),g=r(618),y=r(1111).getHighWaterMark,m=r(7638).q,b=m.ERR_INVALID_ARG_TYPE,v=m.ERR_STREAM_PUSH_AFTER_EOF,w=m.ERR_METHOD_NOT_IMPLEMENTED,_=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(1828)(O,l);var S=g.errorOrDestroy,x=["error","close","destroy","pause","resume"];function E(e,t,o){i=i||r(673),e=e||{},"boolean"!=typeof o&&(o=t instanceof i),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=y(this,e,"readableHighWaterMark",o),this.buffer=new d,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=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=r(7361).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function O(e){if(i=i||r(673),!(this instanceof O))return new O(e);var t=this instanceof i;this._readableState=new E(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),l.call(this)}function k(e,t,r,i,s){o("readableAddChunk",t);var a,u,c,l,p,d=e._readableState;if(null===t)d.reading=!1,function(e,t){if(o("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?R(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,P(e)))}}(e,d);else{if(s||(a=d,u=t,f.isBuffer(u)||u instanceof h||"string"==typeof u||void 0===u||a.objectMode||(c=new b("chunk",["string","Buffer","Uint8Array"],u)),p=c),p)S(e,p);else if(d.objectMode||t&&t.length>0){if("string"==typeof t||d.objectMode||Object.getPrototypeOf(t)===f.prototype||(l=t,t=f.from(l)),i)d.endEmitted?S(e,new _):j(e,d,t,!0);else if(d.ended)S(e,new v);else{if(d.destroyed)return!1;d.reading=!1,d.decoder&&!r?(t=d.decoder.write(t),d.objectMode||0!==t.length?j(e,d,t,!1):M(e,d)):j(e,d,t,!1)}}else i||(d.reading=!1,M(e,d))}return!d.ended&&(d.lengtht.highWaterMark){var r;t.highWaterMark=((r=e)>=1073741824?r=1073741824:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)}return e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)}function R(e){var t=e._readableState;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(P,e))}function P(e){var t=e._readableState;o("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,D(e)}function M(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(A,e,t))}function A(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function N(e){o("readable nexttick read 0"),e.read(0)}function C(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),D(e),t.flowing&&!t.reading&&e.read(0)}function D(e){var t=e._readableState;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function I(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function B(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick($,t,e))}function $(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function q(e,t){for(var r=0,i=e.length;r=r.highWaterMark:r.length>0)||r.ended))return o("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?B(this):R(this),null;if(0===(e=T(e,r))&&r.ended)return 0===r.length&&B(this),null;var s=r.needReadable;return o("need readable",s),(0===r.length||r.length-e0?I(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),i!==e&&r.ended&&B(this)),null!==t&&this.emit("data",t),t},O.prototype._read=function(e){S(this,new w("_read()"))},O.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,o("pipe count=%d opts=%j",i.pipesCount,t);var s=t&&!1===t.end||e===process.stdout||e===process.stderr?g:a;function a(){o("onend"),e.end()}i.endEmitted?process.nextTick(s):r.once("end",s),e.on("unpipe",function t(s,c){o("onunpipe"),s===r&&c&&!1===c.hasUnpiped&&(c.hasUnpiped=!0,o("cleanup"),e.removeListener("close",p),e.removeListener("finish",d),e.removeListener("drain",u),e.removeListener("error",h),e.removeListener("unpipe",t),r.removeListener("end",a),r.removeListener("end",g),r.removeListener("data",f),l=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u())});var u=function(){var e=r._readableState;o("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&c(r,"data")&&(e.flowing=!0,D(r))};e.on("drain",u);var l=!1;function f(t){o("ondata");var s=e.write(t);o("dest.write",s),!1===s&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==q(i.pipes,e))&&!l&&(o("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function h(t){o("onerror",t),g(),e.removeListener("error",h),0===c(e,"error")&&S(e,t)}function p(){e.removeListener("finish",d),g()}function d(){o("onfinish"),e.removeListener("close",p),g()}function g(){o("unpipe"),r.unpipe(e)}return r.on("data",f),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",h),e.once("close",p),e.once("finish",d),e.emit("pipe",r),i.flowing||(o("pipe resume"),r.resume()),e},O.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var i=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s0,!1!==i.flowing&&this.resume()):"readable"!==e||i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,o("on readable",i.length,i.reading),i.length?R(this):i.reading||process.nextTick(N,this)),r},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(e,t){var r=l.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(L,this),r},O.prototype.removeAllListeners=function(e){var t=l.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&process.nextTick(L,this),t},O.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(C,this,e))),e.paused=!1,this},O.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;for(var s in e.on("end",function(){if(o("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(s){o("wrapped data"),r.decoder&&(s=r.decoder.write(s)),(!r.objectMode||null!=s)&&(r.objectMode||s&&s.length)&&(t.push(s)||(i=!0,e.pause()))}),e)void 0===this[s]&&"function"==typeof e[s]&&(this[s]=function(t){return function(){return e[t].apply(e,arguments)}}(s));for(var a=0;a{"use strict";e.exports=f;var i=r(7638).q,o=i.ERR_METHOD_NOT_IMPLEMENTED,s=i.ERR_MULTIPLE_CALLBACK,a=i.ERR_TRANSFORM_ALREADY_TRANSFORMING,u=i.ERR_TRANSFORM_WITH_LENGTH_0,c=r(673);function l(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(null===i)return this.emit("error",new s);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),i(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length{"use strict";function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){(function(e,t,r){var i=e.entry;for(e.entry=null;i;){var o=i.callback;t.pendingcb--,o(void 0),i=i.next}t.corkedRequestsFree.next=e})(t,e)}}e.exports=O,O.WritableState=E;var o,s,a={deprecate:r(4484)},u=r(1829),c=r(4300).Buffer,l=global.Uint8Array||function(){},f=r(618),h=r(1111).getHighWaterMark,p=r(7638).q,d=p.ERR_INVALID_ARG_TYPE,g=p.ERR_METHOD_NOT_IMPLEMENTED,y=p.ERR_MULTIPLE_CALLBACK,m=p.ERR_STREAM_CANNOT_PIPE,b=p.ERR_STREAM_DESTROYED,v=p.ERR_STREAM_NULL_VALUES,w=p.ERR_STREAM_WRITE_AFTER_END,_=p.ERR_UNKNOWN_ENCODING,S=f.errorOrDestroy;function x(){}function E(e,t,s){o=o||r(673),e=e||{},"boolean"!=typeof s&&(s=t instanceof o),this.objectMode=!!e.objectMode,s&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=h(this,e,"writableHighWaterMark",s),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){(function(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if("function"!=typeof o)throw new y;if(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,t)--r.pendingcb,i?(process.nextTick(o,t),process.nextTick(M,e,r),e._writableState.errorEmitted=!0,S(e,t)):(o(t),e._writableState.errorEmitted=!0,S(e,t),M(e,r));else{var s=R(r)||e.destroyed;s||r.corked||r.bufferProcessing||!r.bufferedRequest||T(e,r),i?process.nextTick(j,e,r,s,o):j(e,r,s,o)}})(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function O(e){var t=this instanceof(o=o||r(673));if(!t&&!s.call(O,this))return new O(e);this._writableState=new E(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function k(e,t,r,i,o,s,a){t.writelen=i,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new b("write")):r?e._writev(o,t.onwrite):e._write(o,s,t.onwrite),t.sync=!1}function j(e,t,r,i){r||0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain")),t.pendingcb--,i(),M(e,t)}function T(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var o=Array(t.bufferedRequestCount),s=t.corkedRequestsFree;s.entry=r;for(var a=0,u=!0;r;)o[a]=r,r.isBuf||(u=!1),r=r.next,a+=1;o.allBuffers=u,k(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,l=r.encoding,f=r.callback,h=t.objectMode?1:c.length;if(k(e,t,!1,h,c,l,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function R(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function P(e,t){e._final(function(r){t.pendingcb--,r&&S(e,r),t.prefinished=!0,e.emit("prefinish"),M(e,t)})}function M(e,t){var r=R(t);if(r&&(t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,process.nextTick(P,e,t))),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return r}r(1828)(O,u),E.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(E.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(O,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===O&&e&&e._writableState instanceof E}})):s=function(e){return e instanceof this},O.prototype.pipe=function(){S(this,new m)},O.prototype.write=function(e,t,r){var i,o,s,a,u,f,h,p=this._writableState,g=!1,y=!p.objectMode&&(i=e,c.isBuffer(i)||i instanceof l);return y&&!c.isBuffer(e)&&(o=e,e=c.from(o)),("function"==typeof t&&(r=t,t=null),y?t="buffer":t||(t=p.defaultEncoding),"function"!=typeof r&&(r=x),p.ending)?(s=r,S(this,a=new w),process.nextTick(s,a)):(y||(u=e,f=r,null===u?h=new v:"string"==typeof u||p.objectMode||(h=new d("chunk",["string","Buffer"],u)),!h||(S(this,h),process.nextTick(f,h),0)))&&(p.pendingcb++,g=function(e,t,r,i,o,s){if(!r){var a,u,l=(a=i,u=o,t.objectMode||!1===t.decodeStrings||"string"!=typeof a||(a=c.from(a,u)),a);i!==l&&(r=!0,o="buffer",i=l)}var f=t.objectMode?1:i.length;t.length+=f;var h=t.length-1))throw new _(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(e,t,r){r(new g("_write()"))},O.prototype._writev=null,O.prototype.end=function(e,t,r){var i,o=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),o.corked&&(o.corked=1,this.uncork()),o.ending||(i=r,o.ending=!0,M(this,o),i&&(o.finished?process.nextTick(i):this.once("finish",i)),o.ended=!0,this.writable=!1),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),O.prototype.destroy=f.destroy,O.prototype._undestroy=f.undestroy,O.prototype._destroy=function(e,t){t(e)}},8187:(e,t,r)=>{"use strict";function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o,s=r(2426),a=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),f=Symbol("lastPromise"),h=Symbol("handlePromise"),p=Symbol("stream");function d(e,t){return{value:e,done:t}}function g(e){var t=e[a];if(null!==t){var r=e[p].read();null!==r&&(e[f]=null,e[a]=null,e[u]=null,t(d(r,!1)))}}function y(e){process.nextTick(g,e)}var m=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((i(o={get stream(){return this[p]},next:function(){var e,t,r=this,i=this[c];if(null!==i)return Promise.reject(i);if(this[l])return Promise.resolve(d(void 0,!0));if(this[p].destroyed)return new Promise(function(e,t){process.nextTick(function(){r[c]?t(r[c]):e(d(void 0,!0))})});var o=this[f];if(o)t=new Promise((e=this,function(t,r){o.then(function(){if(e[l]){t(d(void 0,!0));return}e[h](t,r)},r)}));else{var s=this[p].read();if(null!==s)return Promise.resolve(d(s,!1));t=new Promise(this[h])}return this[f]=t,t}},Symbol.asyncIterator,function(){return this}),i(o,"return",function(){var e=this;return new Promise(function(t,r){e[p].destroy(null,function(e){if(e){r(e);return}t(d(void 0,!0))})})}),o),m);e.exports=function(e){var t,r=Object.create(b,(i(t={},p,{value:e,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,c,{value:null,writable:!0}),i(t,l,{value:e._readableState.endEmitted,writable:!0}),i(t,h,{value:function(e,t){var i=r[p].read();i?(r[f]=null,r[a]=null,r[u]=null,e(d(i,!1))):(r[a]=e,r[u]=t)},writable:!0}),t));return r[f]=null,s(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];null!==t&&(r[f]=null,r[a]=null,r[u]=null,t(e)),r[c]=e;return}var i=r[a];null!==i&&(r[f]=null,r[a]=null,r[u]=null,i(d(void 0,!0))),r[l]=!0}),e.on("readable",y.bind(null,r)),r}},4506:(e,t,r)=>{"use strict";function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function o(e,t){for(var r=0;r0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return s.alloc(0);for(var t,r,i=s.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,r=a,s.prototype.copy.call(t,i,r),a+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var r;return eo.length?o.length:e;if(s===o.length?i+=o:i+=o.slice(0,e),0==(e-=s)){s===o.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=o.slice(s));break}++r}return this.length-=r,i}},{key:"_getBuffer",value:function(e){var t=s.allocUnsafe(e),r=this.head,i=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,a),0==(e-=a)){a===o.length?(++i,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(a));break}++i}return this.length-=i,t}},{key:u,value:function(e,t){return a(this,function(e){for(var t=1;t{"use strict";function t(e,t){i(e,t),r(e)}function r(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,o){var s=this,a=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return a||u?o?o(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(i,this,e)):process.nextTick(i,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!o&&e?s._writableState?s._writableState.errorEmitted?process.nextTick(r,s):(s._writableState.errorEmitted=!0,process.nextTick(t,s,e)):process.nextTick(t,s,e):o?(process.nextTick(r,s),o(e)):process.nextTick(r,s)})),this},undestroy:function(){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)},errorOrDestroy:function(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}}},2426:(e,t,r)=>{"use strict";var i=r(7638).q.ERR_STREAM_PREMATURE_CLOSE;function o(){}e.exports=function e(t,r,s){if("function"==typeof r)return e(t,null,r);r||(r={}),a=s||o,u=!1,s=function(){if(!u){u=!0;for(var e=arguments.length,t=Array(e),r=0;r{"use strict";function i(e,t,r,i,o,s,a){try{var u=e[s](a),c=u.value}catch(e){r(e);return}u.done?t(c):Promise.resolve(c).then(i,o)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}var s=r(7638).q.ERR_INVALID_ARG_TYPE;e.exports=function(e,t,r){if(t&&"function"==typeof t.next)a=t;else if(t&&t[Symbol.asyncIterator])a=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])a=t[Symbol.iterator]();else throw new s("iterable",["Iterable"],t);var a,u=new e(function(e){for(var t=1;t{"use strict";var i,o=r(7638).q,s=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function u(e){if(e)throw e}function c(e){e()}function l(e,t){return e.pipe(t)}e.exports=function(){for(var e,t,o=arguments.length,f=Array(o),h=0;h0},function(e){if(e)return s(e);h=!0,s()}),g=!1,function(t){if(!h&&!g){if(g=!0,e.setHeader&&"function"==typeof e.abort)return e.abort();if("function"==typeof e.destroy)return e.destroy();s(t||new a("pipe"))}}});return f.reduce(l)}},1111:(e,t,r)=>{"use strict";var i=r(7638).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,o){var s=null!=t.highWaterMark?t.highWaterMark:o?t[r]:null;if(null!=s){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var a=o?r:"highWaterMark";throw new i(a,s)}return Math.floor(s)}return e.objectMode?16:16384}}},1829:(e,t,r)=>{e.exports=r(2781)},8118:(e,t,r)=>{var i=r(2781);"disable"===process.env.READABLE_STREAM&&i?(e.exports=i.Readable,Object.assign(e.exports,i),e.exports.Stream=i):((t=e.exports=r(5006)).Stream=i||t,t.Readable=t,t.Writable=r(8719),t.Duplex=r(673),t.Transform=r(8597),t.PassThrough=r(4343),t.finished=r(2426),t.pipeline=r(2970))},3268:e=>{"use strict";function t(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}e.exports=function(e){if((e=e||{}).circles)return function(e){var r=[],i=[];return e.proto?function e(s){if("object"!=typeof s||null===s)return s;if(s instanceof Date)return new Date(s);if(Array.isArray(s))return o(s,e);if(s instanceof Map)return new Map(o(Array.from(s),e));if(s instanceof Set)return new Set(o(Array.from(s),e));var a={};for(var u in r.push(s),i.push(a),s){var c=s[u];if("object"!=typeof c||null===c)a[u]=c;else if(c instanceof Date)a[u]=new Date(c);else if(c instanceof Map)a[u]=new Map(o(Array.from(c),e));else if(c instanceof Set)a[u]=new Set(o(Array.from(c),e));else if(ArrayBuffer.isView(c))a[u]=t(c);else{var l=r.indexOf(c);-1!==l?a[u]=i[l]:a[u]=e(c)}}return r.pop(),i.pop(),a}:function e(s){if("object"!=typeof s||null===s)return s;if(s instanceof Date)return new Date(s);if(Array.isArray(s))return o(s,e);if(s instanceof Map)return new Map(o(Array.from(s),e));if(s instanceof Set)return new Set(o(Array.from(s),e));var a={};for(var u in r.push(s),i.push(a),s)if(!1!==Object.hasOwnProperty.call(s,u)){var c=s[u];if("object"!=typeof c||null===c)a[u]=c;else if(c instanceof Date)a[u]=new Date(c);else if(c instanceof Map)a[u]=new Map(o(Array.from(c),e));else if(c instanceof Set)a[u]=new Set(o(Array.from(c),e));else if(ArrayBuffer.isView(c))a[u]=t(c);else{var l=r.indexOf(c);-1!==l?a[u]=i[l]:a[u]=e(c)}}return r.pop(),i.pop(),a};function o(e,o){for(var s=Object.keys(e),a=Array(s.length),u=0;u{/*! safe-buffer. MIT License. Feross Aboukhadijeh */var i=r(4300),o=i.Buffer;function s(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return o(e,t,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=i:(s(i,t),t.Buffer=a),a.prototype=Object.create(o.prototype),s(o,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return o(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var i=o(e);return void 0!==t?"string"==typeof r?i.fill(t,r):i.fill(t):i.fill(0),i},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i.SlowBuffer(e)}},9316:e=>{"use strict";let t="undefined"!=typeof Buffer,r=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,i=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function o(e,o,a){null==a&&(null!==o&&"object"==typeof o?(a=o,o=void 0):a={});let u=a.protoAction||"error",c=a.constructorAction||"error";t&&Buffer.isBuffer(e)&&(e=e.toString()),e&&65279===e.charCodeAt(0)&&(e=e.slice(1));let l=JSON.parse(e,o);if("ignore"===u&&"ignore"===c||null===l||"object"!=typeof l)return l;if("ignore"!==u&&"ignore"!==c){if(!1===r.test(e)&&!1===i.test(e))return l}else if("ignore"!==u&&"ignore"===c){if(!1===r.test(e))return l}else if(!1===i.test(e))return l;return s(l,{protoAction:u,constructorAction:c}),l}function s(e,{protoAction:t="error",constructorAction:r="error"}={}){let i=[e];for(;i.length;){let e=i;for(let o of(i=[],e)){if("ignore"!==t&&Object.prototype.hasOwnProperty.call(o,"__proto__")){if("error"===t)throw SyntaxError("Object contains forbidden prototype property");delete o.__proto__}if("ignore"!==r&&Object.prototype.hasOwnProperty.call(o,"constructor")&&Object.prototype.hasOwnProperty.call(o.constructor,"prototype")){if("error"===r)throw SyntaxError("Object contains forbidden prototype property");delete o.constructor}for(let e in o){let t=o[e];t&&"object"==typeof t&&i.push(o[e])}}}}e.exports={parse:o,scan:s,safeParse:function(e,t){try{return o(e,t)}catch(e){return null}}}},4656:(e,t,r)=>{"use strict";let i=r(7147),o=r(2361),s=r(8306),a=r(3837).inherits,u=r(160);function c(e,t){function r(r,i){if(r){t._reopening=!1,t._writing=!1,t._opening=!1,t.sync?process.nextTick(()=>{t.listenerCount("error")>0&&t.emit("error",r)}):t.emit("error",r);return}if(t.fd=i,t.file=e,t._reopening=!1,t._opening=!1,t._writing=!1,t.sync?process.nextTick(()=>t.emit("ready")):t.emit("ready"),t._reopening)return;let o=t._buf.length;o>0&&o>t.minLength&&!t.destroyed&&h(t)}if(t._opening=!0,t._writing=!0,t._asyncDrainScheduled=!1,t.sync)try{let t=i.openSync(e,"a");r(null,t)}catch(e){throw r(e),e}else i.open(e,"a",r)}function l(e){if(!(this instanceof l))return new l(e);let{fd:t,dest:r,minLength:o,sync:s}=e||{};if(t=t||r,this._buf="",this.fd=-1,this._writing=!1,this._writingBuf="",this._ending=!1,this._reopening=!1,this._asyncDrainScheduled=!1,this.file=null,this.destroyed=!1,this.sync=s||!1,this.minLength=o||0,"number"==typeof t)this.fd=t,process.nextTick(()=>this.emit("ready"));else if("string"==typeof t)c(t,this);else throw Error("SonicBoom supports only file descriptors and files");this.release=(e,t)=>{if(e){if("EAGAIN"===e.code){if(this.sync)try{u(100),this.release(void 0,0)}catch(e){this.release(e)}else setTimeout(()=>{i.write(this.fd,this._writingBuf,"utf8",this.release)},100)}else this._buf=this._writingBuf+this._buf,this._writingBuf="",this._writing=!1,this.emit("error",e);return}if(this._writingBuf.length!==t){if(this._writingBuf=this._writingBuf.slice(t),this.sync)try{do t=i.writeSync(this.fd,this._writingBuf,"utf8"),this._writingBuf=this._writingBuf.slice(t);while(0!==this._writingBuf.length)}catch(e){this.release(e);return}else{i.write(this.fd,this._writingBuf,"utf8",this.release);return}}if(this._writingBuf="",this.destroyed)return;let r=this._buf.length;this._reopening?(this._writing=!1,this._reopening=!1,this.reopen()):r>0&&r>this.minLength?h(this):this._ending?r>0?h(this):(this._writing=!1,p(this)):(this._writing=!1,this.sync?this._asyncDrainScheduled||(this._asyncDrainScheduled=!0,process.nextTick(f,this)):this.emit("drain"))},this.on("newListener",function(e){"drain"===e&&(this._asyncDrainScheduled=!1)})}function f(e){let t=e.listenerCount("drain")>0;t&&(e._asyncDrainScheduled=!1,e.emit("drain"))}function h(e){e._writing=!0;let t=e._buf,r=e.release;if(t.length>16777216?(t=t.slice(0,16777216),e._buf=e._buf.slice(16777216)):e._buf="",s(t),e._writingBuf=t,e.sync)try{let o=i.writeSync(e.fd,t,"utf8");r(null,o)}catch(e){r(e)}else i.write(e.fd,t,"utf8",r)}function p(e){if(-1===e.fd){e.once("ready",p.bind(null,e));return}i.close(e.fd,t=>{if(t){e.emit("error",t);return}e._ending&&!e._writing&&e.emit("finish"),e.emit("close")}),e.destroyed=!0,e._buf=""}a(l,o),l.prototype.write=function(e){if(this.destroyed)throw Error("SonicBoom destroyed");this._buf+=e;let t=this._buf.length;return!this._writing&&t>this.minLength&&h(this),t<16384},l.prototype.flush=function(){if(this.destroyed)throw Error("SonicBoom destroyed");this._writing||this.minLength<=0||h(this)},l.prototype.reopen=function(e){if(this.destroyed)throw Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.reopen(e)});return}if(this._ending)return;if(!this.file)throw Error("Unable to reopen a file descriptor, you must pass a file to SonicBoom");if(this._reopening=!0,this._writing)return;let t=this.fd;this.once("ready",()=>{t!==this.fd&&i.close(t,e=>{if(e)return this.emit("error",e)})}),c(e||this.file,this)},l.prototype.end=function(){if(this.destroyed)throw Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.end()});return}if(!this._ending){if(this._ending=!0,!this._writing&&this._buf.length>0&&this.fd>=0){h(this);return}this._writing||p(this)}},l.prototype.flushSync=function(){if(this.destroyed)throw Error("SonicBoom destroyed");if(this.fd<0)throw Error("sonic boom is not ready yet");for(;this._buf.length>0;)try{i.writeSync(this.fd,this._buf,"utf8"),this._buf=""}catch(e){if("EAGAIN"!==e.code)throw e;u(100)}},l.prototype.destroy=function(){this.destroyed||p(this)},e.exports=l},5443:(e,t,r)=>{"use strict";let{Transform:i}=r(2781),{StringDecoder:o}=r(1576),s=Symbol("last"),a=Symbol("decoder");function u(e,t,r){let i;if(this.overflow){let t=this[a].write(e);if(1===(i=t.split(this.matcher)).length)return r();i.shift(),this.overflow=!1}else this[s]+=this[a].write(e),i=this[s].split(this.matcher);this[s]=i.pop();for(let e=0;ethis.maxLength,this.overflow&&!this.skipOverflow){r(Error("maximum buffer reached"));return}r()}function c(e){if(this[s]+=this[a].end(),this[s])try{l(this,this.mapper(this[s]))}catch(t){return e(t)}e()}function l(e,t){void 0!==t&&e.push(t)}function f(e){return e}e.exports=function(e,t,r){switch(e=e||/\r?\n/,t=t||f,r=r||{},arguments.length){case 1:"function"==typeof e?(t=e,e=/\r?\n/):"object"!=typeof e||e instanceof RegExp||(r=e,e=/\r?\n/);break;case 2:"function"==typeof e?(r=t,t=e,e=/\r?\n/):"object"==typeof t&&(r=t,t=f)}(r=Object.assign({},r)).autoDestroy=!0,r.transform=u,r.flush=c,r.readableObjectMode=!0;let l=new i(r);return l[s]="",l[a]=new o("utf8"),l.matcher=e,l.mapper=t,l.maxLength=r.maxLength,l.skipOverflow=r.skipOverflow||!1,l.overflow=!1,l._destroy=function(e,t){this._writableState.errorEmitted=!1,t(e)},l}},6151:e=>{e.exports=function(e){var t=e._readableState;return t?t.objectMode||"number"==typeof e._duplexState?e.read():e.read(t.buffer.length?t.buffer.head?t.buffer.head.data.length:t.buffer[0].length:t.length):null}},7361:(e,t,r)=>{"use strict";var i=r(9685).Buffer,o=i.isEncoding||function(e){switch((e=""+e)&&e.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 s(e){var t;switch(this.encoding=function(e){var t=function(e){var t;if(!e)return"utf8";for(;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(i.isEncoding===o||!o(e)))throw Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=l,t=4;break;case"utf8":this.fillLast=u,t=4;break;case"base64":this.text=f,this.end=h,t=3;break;default:this.write=p,this.end=d;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function u(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}(this,e,0);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function c(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function f(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function p(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}t.s=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0?(o>0&&(e.lastNeed=o-1),o):--i=0?(o>0&&(e.lastNeed=o-2),o):--i=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},4484:(e,t,r)=>{e.exports=r(3837).deprecate},4447:e=>{e.exports=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw TypeError("need wrapper function");return Object.keys(t).forEach(function(e){i[e]=t[e]}),i;function i(){for(var e=Array(arguments.length),r=0;r{"use strict";var i=r(5007),o=r(1532),s=TypeError;e.exports=function(e){if(i(e))return e;throw s(o(e)+" is not a function")}},5127:(e,t,r)=>{"use strict";var i=r(6808).has;e.exports=function(e){return i(e),e}},8221:(e,t,r)=>{"use strict";var i=r(5007),o=String,s=TypeError;e.exports=function(e){if("object"==typeof e||i(e))return e;throw s("Can't set "+o(e)+" as a prototype")}},5612:(e,t,r)=>{"use strict";var i=r(2023).has;e.exports=function(e){return i(e),e}},4864:(e,t,r)=>{"use strict";var i=r(2541),o=TypeError;e.exports=function(e,t){if(i(t,e))return e;throw o("Incorrect invocation")}},5952:(e,t,r)=>{"use strict";var i=r(9418),o=String,s=TypeError;e.exports=function(e){if(i(e))return e;throw s(o(e)+" is not an object")}},1998:(e,t,r)=>{"use strict";var i=r(1819),o=r(1021),s=r(7279),a=function(e){return function(t,r,a){var u,c=i(t),l=s(c),f=o(a,l);if(e&&r!=r){for(;l>f;)if((u=c[f++])!=u)return!0}else for(;l>f;f++)if((e||f in c)&&c[f]===r)return e||f||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},994:(e,t,r)=>{"use strict";var i=r(8942),o=r(4694),s=TypeError,a=Object.getOwnPropertyDescriptor,u=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=u?function(e,t){if(o(e)&&!a(e,"length").writable)throw s("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},5396:(e,t,r)=>{"use strict";var i=r(4460),o=r(4464),s=r(5056);e.exports=function(e,t,r,a){try{var u=s(e,"return");if(u)return o("Promise").resolve(i(u,e)).then(function(){t(r)},function(e){a(e)})}catch(e){return a(e)}t(r)}},7637:(e,t,r)=>{"use strict";var i=r(4460),o=r(8995),s=r(5952),a=r(903),u=r(4059),c=r(8979),l=r(5616),f=r(9009),h=r(4464),p=r(5056),d=r(1664),g=r(1765),y=r(8248),m=h("Promise"),b=l("toStringTag"),v="AsyncIteratorHelper",w="WrapForValidAsyncIterator",_=f.set,S=function(e){var t=!e,r=f.getterFor(e?w:v),u=function(e){var i=o(function(){return r(e)}),s=i.error,a=i.value;return s||t&&a.done?{exit:!0,value:s?m.reject(a):m.resolve(g(void 0,!0))}:{exit:!1,value:a}};return c(a(d),{next:function(){var e=u(this),t=e.value;if(e.exit)return t;var r=o(function(){return s(t.nextHandler(m))}),i=r.error,a=r.value;return i&&(t.done=!0),i?m.reject(a):m.resolve(a)},return:function(){var t,r,a=u(this),c=a.value;if(a.exit)return c;c.done=!0;var l=c.iterator,f=o(function(){if(c.inner)try{y(c.inner.iterator,"normal")}catch(e){return y(l,"throw",e)}return p(l,"return")});return(t=r=f.value,f.error)?m.reject(r):void 0===t?m.resolve(g(void 0,!0)):(r=(f=o(function(){return i(t,l)})).value,f.error)?m.reject(r):e?m.resolve(r):m.resolve(r).then(function(e){return s(e),g(void 0,!0)})}})},x=S(!0),E=S(!1);u(E,b,"Async Iterator Helper"),e.exports=function(e,t){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?w:v,i.nextHandler=e,i.counter=0,i.done=!1,_(this,i)};return r.prototype=t?x:E,r}},7398:(e,t,r)=>{"use strict";var i=r(4460),o=r(3093),s=r(5952),a=r(9418),u=r(2724),c=r(4464),l=r(7352),f=r(5396),h=function(e){var t=0===e,r=1===e,h=2===e,p=3===e;return function(e,d,g){s(e);var y=void 0!==d;(y||!t)&&o(d);var m=l(e),b=c("Promise"),v=m.iterator,w=m.next,_=0;return new b(function(e,o){var c=function(e){f(v,o,e,o)},l=function(){try{if(y)try{u(_)}catch(e){c(e)}b.resolve(s(i(w,v))).then(function(i){try{if(s(i).done)t?(g.length=_,e(g)):e(!p&&(h||void 0));else{var u=i.value;try{if(y){var m=d(u,_),w=function(i){if(r)l();else if(h)i?l():f(v,e,!1,o);else if(t)try{g[_++]=i,l()}catch(e){c(e)}else i?f(v,e,p||u,o):l()};a(m)?b.resolve(m).then(w,c):w(m)}else g[_++]=u,l()}catch(e){c(e)}}}catch(e){o(e)}},o)}catch(e){o(e)}};l()})}};e.exports={toArray:h(0),forEach:h(1),every:h(2),some:h(3),find:h(4)}},8561:(e,t,r)=>{"use strict";var i=r(4460),o=r(3093),s=r(5952),a=r(9418),u=r(7352),c=r(7637),l=r(1765),f=r(5396),h=c(function(e){var t=this,r=t.iterator,o=t.mapper;return new e(function(u,c){var h=function(e){t.done=!0,c(e)},p=function(e){f(r,h,e,h)};e.resolve(s(i(t.next,r))).then(function(r){try{if(s(r).done)t.done=!0,u(l(void 0,!0));else{var i=r.value;try{var c=o(i,t.counter++),f=function(e){u(l(e,!1))};a(c)?e.resolve(c).then(f,p):f(c)}catch(e){p(e)}}}catch(e){h(e)}},h)})});e.exports=function(e){return s(this),o(e),new h(u(this),{mapper:e})}},1664:(e,t,r)=>{"use strict";var i,o,s=r(1460),a=r(4607),u=r(5007),c=r(903),l=r(2595),f=r(1782),h=r(5616),p=r(1967),d="USE_FUNCTION_CONSTRUCTOR",g=h("asyncIterator"),y=s.AsyncIterator,m=a.AsyncIteratorPrototype;if(m)i=m;else if(u(y))i=y.prototype;else if(a[d]||s[d])try{o=l(l(l(Function("return async function*(){}()")()))),l(o)===Object.prototype&&(i=o)}catch(e){}i?p&&(i=c(i)):i={},u(i[g])||f(i,g,function(){return this}),e.exports=i},7792:(e,t,r)=>{"use strict";var i=r(5952),o=r(8248);e.exports=function(e,t,r,s){try{return s?t(i(r)[0],r[1]):t(r)}catch(t){o(e,"throw",t)}}},5047:(e,t,r)=>{"use strict";var i=r(5616)("iterator"),o=!1;try{var s=0,a={next:function(){return{done:!!s++}},return:function(){o=!0}};a[i]=function(){return this},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var r=!1;try{var s={};s[i]=function(){return{next:function(){return{done:r=!0}}}},e(s)}catch(e){}return r}},9151:(e,t,r)=>{"use strict";var i=r(796),o=i({}.toString),s=i("".slice);e.exports=function(e){return s(o(e),8,-1)}},8626:(e,t,r)=>{"use strict";var i=r(6325),o=r(5007),s=r(9151),a=r(5616)("toStringTag"),u=Object,c="Arguments"===s(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(e){}};e.exports=i?s:function(e){var t,r,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=l(t=u(e),a))?r:c?s(t):"Object"===(i=s(t))&&o(t.callee)?"Arguments":i}},5991:(e,t,r)=>{"use strict";var i=r(8332),o=r(8389),s=r(3051),a=r(2422);e.exports=function(e,t,r){for(var u=o(t),c=a.f,l=s.f,f=0;f{"use strict";var i=r(3867);e.exports=!i(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},1765:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},4059:(e,t,r)=>{"use strict";var i=r(8942),o=r(2422),s=r(547);e.exports=i?function(e,t,r){return o.f(e,t,s(1,r))}:function(e,t,r){return e[t]=r,e}},547:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},9577:(e,t,r)=>{"use strict";var i=r(4545),o=r(2422),s=r(547);e.exports=function(e,t,r){var a=i(t);a in e?o.f(e,a,s(0,r)):e[a]=r}},5815:(e,t,r)=>{"use strict";var i=r(2283),o=r(2422);e.exports=function(e,t,r){return r.get&&i(r.get,t,{getter:!0}),r.set&&i(r.set,t,{setter:!0}),o.f(e,t,r)}},1782:(e,t,r)=>{"use strict";var i=r(5007),o=r(2422),s=r(2283),a=r(6338);e.exports=function(e,t,r,u){u||(u={});var c=u.enumerable,l=void 0!==u.name?u.name:t;if(i(r)&&s(r,l,u),u.global)c?e[t]=r:a(t,r);else{try{u.unsafe?e[t]&&(c=!0):delete e[t]}catch(e){}c?e[t]=r:o.f(e,t,{value:r,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return e}},8979:(e,t,r)=>{"use strict";var i=r(1782);e.exports=function(e,t,r){for(var o in t)i(e,o,t[o],r);return e}},6338:(e,t,r)=>{"use strict";var i=r(1460),o=Object.defineProperty;e.exports=function(e,t){try{o(i,e,{value:t,configurable:!0,writable:!0})}catch(r){i[e]=t}return t}},8942:(e,t,r)=>{"use strict";var i=r(3867);e.exports=!i(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},3195:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports={all:t,IS_HTMLDDA:void 0===t&&void 0!==t}},5823:(e,t,r)=>{"use strict";var i=r(1460),o=r(9418),s=i.document,a=o(s)&&o(s.createElement);e.exports=function(e){return a?s.createElement(e):{}}},2724:e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},8148:(e,t,r)=>{"use strict";var i=r(2823),o=r(1123);e.exports=!i&&!o&&"object"==typeof window&&"object"==typeof document},2823:e=>{"use strict";e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},1123:(e,t,r)=>{"use strict";var i=r(1460),o=r(9151);e.exports="process"===o(i.process)},3161:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},4638:(e,t,r)=>{"use strict";var i,o,s=r(1460),a=r(3161),u=s.process,c=s.Deno,l=u&&u.versions||c&&c.version,f=l&&l.v8;f&&(o=(i=f.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!o&&a&&(!(i=a.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/))&&(o=+i[1]),e.exports=o},5027:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3880:(e,t,r)=>{"use strict";var i=r(796),o=Error,s=i("".replace),a=String(o("zxcasd").stack),u=/\n\s*at [^:]*:[^\n]*/,c=u.test(a);e.exports=function(e,t){if(c&&"string"==typeof e&&!o.prepareStackTrace)for(;t--;)e=s(e,u,"");return e}},5663:(e,t,r)=>{"use strict";var i=r(4059),o=r(3880),s=r(9644),a=Error.captureStackTrace;e.exports=function(e,t,r,u){s&&(a?a(e,t):i(e,"stack",o(r,u)))}},9644:(e,t,r)=>{"use strict";var i=r(3867),o=r(547);e.exports=!i(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",o(1,7)),7!==e.stack)})},3602:(e,t,r)=>{"use strict";var i=r(1460),o=r(3051).f,s=r(4059),a=r(1782),u=r(6338),c=r(5991),l=r(3475);e.exports=function(e,t){var r,f,h,p,d,g=e.target,y=e.global,m=e.stat;if(r=y?i:m?i[g]||u(g,{}):(i[g]||{}).prototype)for(f in t){if(p=t[f],h=e.dontCallGetSet?(d=o(r,f))&&d.value:r[f],!l(y?f:g+(m?".":"#")+f,e.forced)&&void 0!==h){if(typeof p==typeof h)continue;c(p,h)}(e.sham||h&&h.sham)&&s(p,"sham",!0),a(r,f,p,e)}}},3867:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},9775:(e,t,r)=>{"use strict";var i=r(2975),o=Function.prototype,s=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(i?a.bind(s):function(){return a.apply(s,arguments)})},1336:(e,t,r)=>{"use strict";var i=r(4290),o=r(3093),s=r(2975),a=i(i.bind);e.exports=function(e,t){return o(e),void 0===t?e:s?a(e,t):function(){return e.apply(t,arguments)}}},2975:(e,t,r)=>{"use strict";var i=r(3867);e.exports=!i(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},4460:(e,t,r)=>{"use strict";var i=r(2975),o=Function.prototype.call;e.exports=i?o.bind(o):function(){return o.apply(o,arguments)}},3679:(e,t,r)=>{"use strict";var i=r(8942),o=r(8332),s=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,u=o(s,"name"),c=u&&(!i||i&&a(s,"name").configurable);e.exports={EXISTS:u,PROPER:u&&"something"===(function(){}).name,CONFIGURABLE:c}},6601:(e,t,r)=>{"use strict";var i=r(796),o=r(3093);e.exports=function(e,t,r){try{return i(o(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},4290:(e,t,r)=>{"use strict";var i=r(9151),o=r(796);e.exports=function(e){if("Function"===i(e))return o(e)}},796:(e,t,r)=>{"use strict";var i=r(2975),o=Function.prototype,s=o.call,a=i&&o.bind.bind(s,s);e.exports=i?a:function(e){return function(){return s.apply(e,arguments)}}},4464:(e,t,r)=>{"use strict";var i=r(1460),o=r(5007);e.exports=function(e,t){var r;return arguments.length<2?o(r=i[e])?r:void 0:i[e]&&i[e][t]}},7352:e=>{"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},6225:(e,t,r)=>{"use strict";var i=r(8626),o=r(5056),s=r(5116),a=r(9213),u=r(5616)("iterator");e.exports=function(e){if(!s(e))return o(e,u)||o(e,"@@iterator")||a[i(e)]}},2938:(e,t,r)=>{"use strict";var i=r(4460),o=r(3093),s=r(5952),a=r(1532),u=r(6225),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?u(e):t;if(o(r))return s(i(r,e));throw c(a(e)+" is not iterable")}},5056:(e,t,r)=>{"use strict";var i=r(3093),o=r(5116);e.exports=function(e,t){var r=e[t];return o(r)?void 0:i(r)}},653:(e,t,r)=>{"use strict";var i=r(3093),o=r(5952),s=r(4460),a=r(5335),u=r(7352),c="Invalid size",l=RangeError,f=TypeError,h=Math.max,p=function(e,t,r,i){this.set=e,this.size=t,this.has=r,this.keys=i};p.prototype={getIterator:function(){return u(o(s(this.keys,this.set)))},includes:function(e){return s(this.has,this.set,e)}},e.exports=function(e){o(e);var t=+e.size;if(t!=t)throw f(c);var r=a(t);if(r<0)throw l(c);return new p(e,h(r,0),i(e.has),i(e.keys))}},1460:function(e){"use strict";var t=function(e){return e&&e.Math===Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof global&&global)||function(){return this}()||this||Function("return this")()},8332:(e,t,r)=>{"use strict";var i=r(796),o=r(1055),s=i({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return s(o(e),t)}},4696:e=>{"use strict";e.exports={}},3741:(e,t,r)=>{"use strict";var i=r(4464);e.exports=i("document","documentElement")},8836:(e,t,r)=>{"use strict";var i=r(8942),o=r(3867),s=r(5823);e.exports=!i&&!o(function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a})},6630:(e,t,r)=>{"use strict";var i=r(796),o=r(3867),s=r(9151),a=Object,u=i("".split);e.exports=o(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"===s(e)?u(e,""):a(e)}:a},7307:(e,t,r)=>{"use strict";var i=r(5007),o=r(9418),s=r(1082);e.exports=function(e,t,r){var a,u;return s&&i(a=t.constructor)&&a!==r&&o(u=a.prototype)&&u!==r.prototype&&s(e,u),e}},6612:(e,t,r)=>{"use strict";var i=r(796),o=r(5007),s=r(4607),a=i(Function.toString);o(s.inspectSource)||(s.inspectSource=function(e){return a(e)}),e.exports=s.inspectSource},2438:(e,t,r)=>{"use strict";var i=r(9418),o=r(4059);e.exports=function(e,t){i(t)&&"cause"in t&&o(e,"cause",t.cause)}},9009:(e,t,r)=>{"use strict";var i,o,s,a=r(4314),u=r(1460),c=r(9418),l=r(4059),f=r(8332),h=r(4607),p=r(2924),d=r(4696),g="Object already initialized",y=u.TypeError,m=u.WeakMap;if(a||h.state){var b=h.state||(h.state=new m);b.get=b.get,b.has=b.has,b.set=b.set,i=function(e,t){if(b.has(e))throw y(g);return t.facade=e,b.set(e,t),t},o=function(e){return b.get(e)||{}},s=function(e){return b.has(e)}}else{var v=p("state");d[v]=!0,i=function(e,t){if(f(e,v))throw y(g);return t.facade=e,l(e,v,t),t},o=function(e){return f(e,v)?e[v]:{}},s=function(e){return f(e,v)}}e.exports={set:i,get:o,has:s,enforce:function(e){return s(e)?o(e):i(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=o(t)).type!==e)throw y("Incompatible receiver, "+e+" required");return r}}}},6439:(e,t,r)=>{"use strict";var i=r(5616),o=r(9213),s=i("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[s]===e)}},4694:(e,t,r)=>{"use strict";var i=r(9151);e.exports=Array.isArray||function(e){return"Array"===i(e)}},5007:(e,t,r)=>{"use strict";var i=r(3195),o=i.all;e.exports=i.IS_HTMLDDA?function(e){return"function"==typeof e||e===o}:function(e){return"function"==typeof e}},3475:(e,t,r)=>{"use strict";var i=r(3867),o=r(5007),s=/#|\.prototype\./,a=function(e,t){var r=c[u(e)];return r===f||r!==l&&(o(t)?i(t):!!t)},u=a.normalize=function(e){return String(e).replace(s,".").toLowerCase()},c=a.data={},l=a.NATIVE="N",f=a.POLYFILL="P";e.exports=a},5032:(e,t,r)=>{"use strict";var i=r(8626),o=r(8332),s=r(5116),a=r(5616),u=r(9213),c=a("iterator"),l=Object;e.exports=function(e){if(s(e))return!1;var t=l(e);return void 0!==t[c]||"@@iterator"in t||o(u,i(t))}},5116:e=>{"use strict";e.exports=function(e){return null==e}},9418:(e,t,r)=>{"use strict";var i=r(5007),o=r(3195),s=o.all;e.exports=o.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:i(e)||e===s}:function(e){return"object"==typeof e?null!==e:i(e)}},1967:e=>{"use strict";e.exports=!1},9804:(e,t,r)=>{"use strict";var i=r(4464),o=r(5007),s=r(2541),a=r(9006),u=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return o(t)&&s(t.prototype,u(e))}},54:(e,t,r)=>{"use strict";var i=r(4460);e.exports=function(e,t,r){for(var o,s,a=r?e:e.iterator,u=e.next;!(o=i(u,a)).done;)if(void 0!==(s=t(o.value)))return s}},8378:(e,t,r)=>{"use strict";var i=r(1336),o=r(4460),s=r(5952),a=r(1532),u=r(6439),c=r(7279),l=r(2541),f=r(2938),h=r(6225),p=r(8248),d=TypeError,g=function(e,t){this.stopped=e,this.result=t},y=g.prototype;e.exports=function(e,t,r){var m,b,v,w,_,S,x,E=r&&r.that,O=!!(r&&r.AS_ENTRIES),k=!!(r&&r.IS_RECORD),j=!!(r&&r.IS_ITERATOR),T=!!(r&&r.INTERRUPTED),R=i(t,E),P=function(e){return m&&p(m,"normal",e),new g(!0,e)},M=function(e){return O?(s(e),T?R(e[0],e[1],P):R(e[0],e[1])):T?R(e,P):R(e)};if(k)m=e.iterator;else if(j)m=e;else{if(!(b=h(e)))throw d(a(e)+" is not iterable");if(u(b)){for(v=0,w=c(e);w>v;v++)if((_=M(e[v]))&&l(y,_))return _;return new g(!1)}m=f(e,b)}for(S=k?e.next:m.next;!(x=o(S,m)).done;){try{_=M(x.value)}catch(e){p(m,"throw",e)}if("object"==typeof _&&_&&l(y,_))return _}return new g(!1)}},8248:(e,t,r)=>{"use strict";var i=r(4460),o=r(5952),s=r(5056);e.exports=function(e,t,r){var a,u;o(e);try{if(!(a=s(e,"return"))){if("throw"===t)throw r;return r}a=i(a,e)}catch(e){u=!0,a=e}if("throw"===t)throw r;if(u)throw a;return o(a),r}},2249:(e,t,r)=>{"use strict";var i=r(4460),o=r(903),s=r(4059),a=r(8979),u=r(5616),c=r(9009),l=r(5056),f=r(2462).IteratorPrototype,h=r(1765),p=r(8248),d=u("toStringTag"),g="IteratorHelper",y="WrapForValidIterator",m=c.set,b=function(e){var t=c.getterFor(e?y:g);return a(o(f),{next:function(){var r=t(this);if(e)return r.nextHandler();try{var i=r.done?void 0:r.nextHandler();return h(i,r.done)}catch(e){throw r.done=!0,e}},return:function(){var r=t(this),o=r.iterator;if(r.done=!0,e){var s=l(o,"return");return s?i(s,o):h(void 0,!0)}if(r.inner)try{p(r.inner.iterator,"normal")}catch(e){return p(o,"throw",e)}return p(o,"normal"),h(void 0,!0)}})},v=b(!0),w=b(!1);s(w,d,"Iterator Helper"),e.exports=function(e,t){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?y:g,i.nextHandler=e,i.counter=0,i.done=!1,m(this,i)};return r.prototype=t?v:w,r}},4863:(e,t,r)=>{"use strict";var i=r(4460),o=r(3093),s=r(5952),a=r(7352),u=r(2249),c=r(7792),l=u(function(){var e=this.iterator,t=s(i(this.next,e));if(!(this.done=!!t.done))return c(e,this.mapper,[t.value,this.counter++],!0)});e.exports=function(e){return s(this),o(e),new l(a(this),{mapper:e})}},2462:(e,t,r)=>{"use strict";var i,o,s,a=r(3867),u=r(5007),c=r(9418),l=r(903),f=r(2595),h=r(1782),p=r(5616),d=r(1967),g=p("iterator"),y=!1;[].keys&&("next"in(s=[].keys())?(o=f(f(s)))!==Object.prototype&&(i=o):y=!0),!c(i)||a(function(){var e={};return i[g].call(e)!==e})?i={}:d&&(i=l(i)),u(i[g])||h(i,g,function(){return this}),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:y}},9213:e=>{"use strict";e.exports={}},7279:(e,t,r)=>{"use strict";var i=r(7607);e.exports=function(e){return i(e.length)}},2283:(e,t,r)=>{"use strict";var i=r(796),o=r(3867),s=r(5007),a=r(8332),u=r(8942),c=r(3679).CONFIGURABLE,l=r(6612),f=r(9009),h=f.enforce,p=f.get,d=String,g=Object.defineProperty,y=i("".slice),m=i("".replace),b=i([].join),v=u&&!o(function(){return 8!==g(function(){},"length",{value:8}).length}),w=String(String).split("String"),_=e.exports=function(e,t,r){"Symbol("===y(d(t),0,7)&&(t="["+m(d(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||c&&e.name!==t)&&(u?g(e,"name",{value:t,configurable:!0}):e.name=t),v&&r&&a(r,"arity")&&e.length!==r.arity&&g(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?u&&g(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var i=h(e);return a(i,"source")||(i.source=b(w,"string"==typeof t?t:"")),e};Function.prototype.toString=_(function(){return s(this)&&p(this).source||l(this)},"toString")},6808:(e,t,r)=>{"use strict";var i=r(796),o=Map.prototype;e.exports={Map:Map,set:i(o.set),get:i(o.get),has:i(o.has),remove:i(o.delete),proto:o}},734:(e,t,r)=>{"use strict";var i=r(796),o=r(54),s=r(6808),a=s.Map,u=s.proto,c=i(u.forEach),l=i(u.entries),f=l(new a).next;e.exports=function(e,t,r){return r?o({iterator:l(e),next:f},function(e){return t(e[1],e[0])}):c(e,t)}},4401:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var i=+e;return(i>0?r:t)(i)}},9195:(e,t,r)=>{"use strict";var i=r(3093),o=TypeError,s=function(e){var t,r;this.promise=new e(function(e,i){if(void 0!==t||void 0!==r)throw o("Bad Promise constructor");t=e,r=i}),this.resolve=i(t),this.reject=i(r)};e.exports.f=function(e){return new s(e)}},4118:(e,t,r)=>{"use strict";var i=r(4014);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:i(e)}},903:(e,t,r)=>{"use strict";var i,o=r(5952),s=r(757),a=r(5027),u=r(4696),c=r(3741),l=r(5823),f=r(2924),h="prototype",p="script",d=f("IE_PROTO"),g=function(){},y=function(e){return"<"+p+">"+e+""},m=function(e){e.write(y("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=l("iframe");return t.style.display="none",c.appendChild(t),t.src=String("java"+p+":"),(e=t.contentWindow.document).open(),e.write(y("document.F=Object")),e.close(),e.F},v=function(){try{i=new ActiveXObject("htmlfile")}catch(e){}v="undefined"!=typeof document?document.domain&&i?m(i):b():m(i);for(var e=a.length;e--;)delete v[h][a[e]];return v()};u[d]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(g[h]=o(e),r=new g,g[h]=null,r[d]=e):r=v(),void 0===t?r:s.f(r,t)}},757:(e,t,r)=>{"use strict";var i=r(8942),o=r(9426),s=r(2422),a=r(5952),u=r(1819),c=r(8417);t.f=i&&!o?Object.defineProperties:function(e,t){a(e);for(var r,i=u(t),o=c(t),l=o.length,f=0;l>f;)s.f(e,r=o[f++],i[r]);return e}},2422:(e,t,r)=>{"use strict";var i=r(8942),o=r(8836),s=r(9426),a=r(5952),u=r(4545),c=TypeError,l=Object.defineProperty,f=Object.getOwnPropertyDescriptor,h="enumerable",p="configurable",d="writable";t.f=i?s?function(e,t,r){if(a(e),t=u(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&d in r&&!r[d]){var i=f(e,t);i&&i[d]&&(e[t]=r.value,r={configurable:p in r?r[p]:i[p],enumerable:h in r?r[h]:i[h],writable:!1})}return l(e,t,r)}:l:function(e,t,r){if(a(e),t=u(t),a(r),o)try{return l(e,t,r)}catch(e){}if("get"in r||"set"in r)throw c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},3051:(e,t,r)=>{"use strict";var i=r(8942),o=r(4460),s=r(9716),a=r(547),u=r(1819),c=r(4545),l=r(8332),f=r(8836),h=Object.getOwnPropertyDescriptor;t.f=i?h:function(e,t){if(e=u(e),t=c(t),f)try{return h(e,t)}catch(e){}if(l(e,t))return a(!o(s.f,e,t),e[t])}},2120:(e,t,r)=>{"use strict";var i=r(1150),o=r(5027).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},4008:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},2595:(e,t,r)=>{"use strict";var i=r(8332),o=r(5007),s=r(1055),a=r(2924),u=r(5994),c=a("IE_PROTO"),l=Object,f=l.prototype;e.exports=u?l.getPrototypeOf:function(e){var t=s(e);if(i(t,c))return t[c];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof l?f:null}},2541:(e,t,r)=>{"use strict";var i=r(796);e.exports=i({}.isPrototypeOf)},1150:(e,t,r)=>{"use strict";var i=r(796),o=r(8332),s=r(1819),a=r(1998).indexOf,u=r(4696),c=i([].push);e.exports=function(e,t){var r,i=s(e),l=0,f=[];for(r in i)!o(u,r)&&o(i,r)&&c(f,r);for(;t.length>l;)o(i,r=t[l++])&&(~a(f,r)||c(f,r));return f}},8417:(e,t,r)=>{"use strict";var i=r(1150),o=r(5027);e.exports=Object.keys||function(e){return i(e,o)}},9716:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},1082:(e,t,r)=>{"use strict";var i=r(6601),o=r(5952),s=r(8221);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=i(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,i){return o(r),s(i),t?e(r,i):r.__proto__=i,r}}():void 0)},3928:(e,t,r)=>{"use strict";var i=r(4460),o=r(5007),s=r(9418),a=TypeError;e.exports=function(e,t){var r,u;if("string"===t&&o(r=e.toString)&&!s(u=i(r,e))||o(r=e.valueOf)&&!s(u=i(r,e))||"string"!==t&&o(r=e.toString)&&!s(u=i(r,e)))return u;throw a("Can't convert object to primitive value")}},8389:(e,t,r)=>{"use strict";var i=r(4464),o=r(796),s=r(2120),a=r(4008),u=r(5952),c=o([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=s.f(u(e)),r=a.f;return r?c(t,r(e)):t}},7970:(e,t,r)=>{"use strict";var i=r(796),o=r(8332),s=SyntaxError,a=parseInt,u=String.fromCharCode,c=i("".charAt),l=i("".slice),f=i(/./.exec),h={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":" "},p=/^[\da-f]{4}$/i,d=/^[\u0000-\u001F]$/;e.exports=function(e,t){for(var r=!0,i="";t{"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},8898:(e,t,r)=>{"use strict";var i=r(1460),o=r(1215),s=r(5007),a=r(3475),u=r(6612),c=r(5616),l=r(8148),f=r(2823),h=r(1967),p=r(4638),d=o&&o.prototype,g=c("species"),y=!1,m=s(i.PromiseRejectionEvent),b=a("Promise",function(){var e=u(o),t=e!==String(o);if(!t&&66===p||h&&!(d.catch&&d.finally))return!0;if(!p||p<51||!/native code/.test(e)){var r=new o(function(e){e(1)}),i=function(e){e(function(){},function(){})};if((r.constructor={})[g]=i,!(y=r.then(function(){}) instanceof i))return!0}return!t&&(l||f)&&!m});e.exports={CONSTRUCTOR:b,REJECTION_EVENT:m,SUBCLASSING:y}},1215:(e,t,r)=>{"use strict";var i=r(1460);e.exports=i.Promise},2622:(e,t,r)=>{"use strict";var i=r(1215),o=r(5047),s=r(8898).CONSTRUCTOR;e.exports=s||!o(function(e){i.all(e).then(void 0,function(){})})},8714:(e,t,r)=>{"use strict";var i=r(2422).f;e.exports=function(e,t,r){r in e||i(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},3040:(e,t,r)=>{"use strict";var i=r(5952);e.exports=function(){var e=i(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},2006:(e,t,r)=>{"use strict";var i=r(5116),o=TypeError;e.exports=function(e){if(i(e))throw o("Can't call method on "+e);return e}},7321:e=>{"use strict";e.exports=function(e,t){return e===t||e!=e&&t!=t}},9373:(e,t,r)=>{"use strict";var i=r(2023),o=r(1520),s=i.Set,a=i.add;e.exports=function(e){var t=new s;return o(e,function(e){a(t,e)}),t}},2213:(e,t,r)=>{"use strict";var i=r(5612),o=r(2023),s=r(9373),a=r(6343),u=r(653),c=r(1520),l=r(54),f=o.has,h=o.remove;e.exports=function(e){var t=i(this),r=u(e),o=s(t);return a(t)<=r.size?c(t,function(e){r.includes(e)&&h(o,e)}):l(r.getIterator(),function(e){f(t,e)&&h(o,e)}),o}},2023:(e,t,r)=>{"use strict";var i=r(796),o=Set.prototype;e.exports={Set:Set,add:i(o.add),has:i(o.has),remove:i(o.delete),proto:o}},7747:(e,t,r)=>{"use strict";var i=r(5612),o=r(2023),s=r(6343),a=r(653),u=r(1520),c=r(54),l=o.Set,f=o.add,h=o.has;e.exports=function(e){var t=i(this),r=a(e),o=new l;return s(t)>r.size?c(r.getIterator(),function(e){h(t,e)&&f(o,e)}):u(t,function(e){r.includes(e)&&f(o,e)}),o}},4351:(e,t,r)=>{"use strict";var i=r(5612),o=r(2023).has,s=r(6343),a=r(653),u=r(1520),c=r(54),l=r(8248);e.exports=function(e){var t=i(this),r=a(e);if(s(t)<=r.size)return!1!==u(t,function(e){if(r.includes(e))return!1},!0);var f=r.getIterator();return!1!==c(f,function(e){if(o(t,e))return l(f,"normal",!1)})}},2722:(e,t,r)=>{"use strict";var i=r(5612),o=r(6343),s=r(1520),a=r(653);e.exports=function(e){var t=i(this),r=a(e);return!(o(t)>r.size)&&!1!==s(t,function(e){if(!r.includes(e))return!1},!0)}},7507:(e,t,r)=>{"use strict";var i=r(5612),o=r(2023).has,s=r(6343),a=r(653),u=r(54),c=r(8248);e.exports=function(e){var t=i(this),r=a(e);if(s(t){"use strict";var i=r(796),o=r(54),s=r(2023),a=s.Set,u=s.proto,c=i(u.forEach),l=i(u.keys),f=l(new a).next;e.exports=function(e,t,r){return r?o({iterator:l(e),next:f},t):c(e,t)}},1316:(e,t,r)=>{"use strict";var i=r(4464),o=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};e.exports=function(e){var t=i("Set");try{new t()[e](o(0));try{return new t()[e](o(-1)),!1}catch(e){return!0}}catch(e){return!1}}},6343:(e,t,r)=>{"use strict";var i=r(6601),o=r(2023);e.exports=i(o.proto,"size","get")||function(e){return e.size}},9298:(e,t,r)=>{"use strict";var i=r(5612),o=r(2023),s=r(9373),a=r(653),u=r(54),c=o.add,l=o.has,f=o.remove;e.exports=function(e){var t=i(this),r=a(e).getIterator(),o=s(t);return u(r,function(e){l(t,e)?f(o,e):c(o,e)}),o}},2221:(e,t,r)=>{"use strict";var i=r(5612),o=r(2023).add,s=r(9373),a=r(653),u=r(54);e.exports=function(e){var t=i(this),r=a(e).getIterator(),c=s(t);return u(r,function(e){o(c,e)}),c}},2924:(e,t,r)=>{"use strict";var i=r(8310),o=r(9027),s=i("keys");e.exports=function(e){return s[e]||(s[e]=o(e))}},4607:(e,t,r)=>{"use strict";var i=r(1460),o=r(6338),s="__core-js_shared__",a=i[s]||o(s,{});e.exports=a},8310:(e,t,r)=>{"use strict";var i=r(1967),o=r(4607);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.32.1",mode:i?"pure":"global",copyright:"\xa9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.1/LICENSE",source:"https://github.com/zloirock/core-js"})},852:(e,t,r)=>{"use strict";var i=r(4638),o=r(3867),s=r(1460).String;e.exports=!!Object.getOwnPropertySymbols&&!o(function(){var e=Symbol("symbol detection");return!s(e)||!(Object(e) instanceof Symbol)||!Symbol.sham&&i&&i<41})},1021:(e,t,r)=>{"use strict";var i=r(5335),o=Math.max,s=Math.min;e.exports=function(e,t){var r=i(e);return r<0?o(r+t,0):s(r,t)}},1819:(e,t,r)=>{"use strict";var i=r(6630),o=r(2006);e.exports=function(e){return i(o(e))}},5335:(e,t,r)=>{"use strict";var i=r(4401);e.exports=function(e){var t=+e;return t!=t||0===t?0:i(t)}},7607:(e,t,r)=>{"use strict";var i=r(5335),o=Math.min;e.exports=function(e){return e>0?o(i(e),9007199254740991):0}},1055:(e,t,r)=>{"use strict";var i=r(2006),o=Object;e.exports=function(e){return o(i(e))}},76:(e,t,r)=>{"use strict";var i=r(4460),o=r(9418),s=r(9804),a=r(5056),u=r(3928),c=r(5616),l=TypeError,f=c("toPrimitive");e.exports=function(e,t){if(!o(e)||s(e))return e;var r,c=a(e,f);if(c){if(void 0===t&&(t="default"),!o(r=i(c,e,t))||s(r))return r;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),u(e,t)}},4545:(e,t,r)=>{"use strict";var i=r(76),o=r(9804);e.exports=function(e){var t=i(e,"string");return o(t)?t:t+""}},8668:(e,t,r)=>{"use strict";var i=r(4464),o=r(5007),s=r(5032),a=r(9418),u=i("Set");e.exports=function(e){return a(e)&&"number"==typeof e.size&&o(e.has)&&o(e.keys)?e:s(e)?new u(e):e}},6325:(e,t,r)=>{"use strict";var i=r(5616)("toStringTag"),o={};o[i]="z",e.exports="[object z]"===String(o)},4014:(e,t,r)=>{"use strict";var i=r(8626),o=String;e.exports=function(e){if("Symbol"===i(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},1532:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},9027:(e,t,r)=>{"use strict";var i=r(796),o=0,s=Math.random(),a=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+s,36)}},9006:(e,t,r)=>{"use strict";var i=r(852);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},9426:(e,t,r)=>{"use strict";var i=r(8942),o=r(3867);e.exports=i&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},4314:(e,t,r)=>{"use strict";var i=r(1460),o=r(5007),s=i.WeakMap;e.exports=o(s)&&/native code/.test(String(s))},5616:(e,t,r)=>{"use strict";var i=r(1460),o=r(8310),s=r(8332),a=r(9027),u=r(852),c=r(9006),l=i.Symbol,f=o("wks"),h=c?l.for||l:l&&l.withoutSetter||a;e.exports=function(e){return s(f,e)||(f[e]=u&&s(l,e)?l[e]:h("Symbol."+e)),f[e]}},4152:(e,t,r)=>{"use strict";var i=r(4464),o=r(8332),s=r(4059),a=r(2541),u=r(1082),c=r(5991),l=r(8714),f=r(7307),h=r(4118),p=r(2438),d=r(5663),g=r(8942),y=r(1967);e.exports=function(e,t,r,m){var b="stackTraceLimit",v=m?2:1,w=e.split("."),_=w[w.length-1],S=i.apply(null,w);if(S){var x=S.prototype;if(!y&&o(x,"cause")&&delete x.cause,!r)return S;var E=i("Error"),O=t(function(e,t){var r=h(m?t:e,void 0),i=m?new S(e):new S;return void 0!==r&&s(i,"message",r),d(i,O,i.stack,2),this&&a(x,this)&&f(i,this,O),arguments.length>v&&p(i,arguments[v]),i});if(O.prototype=x,"Error"!==_?u?u(O,E):c(O,E,{name:!0}):g&&b in S&&(l(O,S,b),l(O,S,"prepareStackTrace")),c(O,S),!y)try{x.name!==_&&s(x,"name",_),x.constructor=O}catch(e){}return O}}},4516:(e,t,r)=>{"use strict";var i=r(3602),o=r(2541),s=r(2595),a=r(1082),u=r(5991),c=r(903),l=r(4059),f=r(547),h=r(2438),p=r(5663),d=r(8378),g=r(4118),y=r(5616)("toStringTag"),m=Error,b=[].push,v=function(e,t){var r,i=o(w,this);a?r=a(m(),i?s(this):w):l(r=i?this:c(w),y,"Error"),void 0!==t&&l(r,"message",g(t)),p(r,v,r.stack,1),arguments.length>2&&h(r,arguments[2]);var u=[];return d(e,b,{that:u}),l(r,"errors",u),r};a?a(v,m):u(v,m,{name:!0});var w=v.prototype=c(m.prototype,{constructor:f(1,v),message:f(1,""),name:f(1,"AggregateError")});i({global:!0,constructor:!0,arity:2},{AggregateError:v})},9941:(e,t,r)=>{"use strict";r(4516)},2961:(e,t,r)=>{"use strict";var i=r(3602),o=r(1055),s=r(7279),a=r(994),u=r(2724);i({target:"Array",proto:!0,arity:1,forced:r(3867)(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=o(this),r=s(t),i=arguments.length;u(r+i);for(var c=0;c{"use strict";var i=r(3602),o=r(1460),s=r(9775),a=r(4152),u="WebAssembly",c=o[u],l=7!==Error("e",{cause:7}).cause,f=function(e,t){var r={};r[e]=a(e,t,l),i({global:!0,constructor:!0,arity:1,forced:l},r)},h=function(e,t){if(c&&c[e]){var r={};r[e]=a(u+"."+e,t,l),i({target:u,stat:!0,constructor:!0,arity:1,forced:l},r)}};f("Error",function(e){return function(t){return s(e,this,arguments)}}),f("EvalError",function(e){return function(t){return s(e,this,arguments)}}),f("RangeError",function(e){return function(t){return s(e,this,arguments)}}),f("ReferenceError",function(e){return function(t){return s(e,this,arguments)}}),f("SyntaxError",function(e){return function(t){return s(e,this,arguments)}}),f("TypeError",function(e){return function(t){return s(e,this,arguments)}}),f("URIError",function(e){return function(t){return s(e,this,arguments)}}),h("CompileError",function(e){return function(t){return s(e,this,arguments)}}),h("LinkError",function(e){return function(t){return s(e,this,arguments)}}),h("RuntimeError",function(e){return function(t){return s(e,this,arguments)}})},1324:(e,t,r)=>{"use strict";var i=r(3602),o=r(4460),s=r(3093),a=r(9195),u=r(8995),c=r(8378);i({target:"Promise",stat:!0,forced:r(2622)},{allSettled:function(e){var t=this,r=a.f(t),i=r.resolve,l=r.reject,f=u(function(){var r=s(t.resolve),a=[],u=0,l=1;c(e,function(e){var s=u++,c=!1;l++,o(r,t,e).then(function(e){!c&&(c=!0,a[s]={status:"fulfilled",value:e},--l||i(a))},function(e){!c&&(c=!0,a[s]={status:"rejected",reason:e},--l||i(a))})}),--l||i(a)});return f.error&&l(f.value),r.promise}})},2012:(e,t,r)=>{"use strict";var i=r(3602),o=r(4460),s=r(3093),a=r(4464),u=r(9195),c=r(8995),l=r(8378),f=r(2622),h="No one promise resolved";i({target:"Promise",stat:!0,forced:f},{any:function(e){var t=this,r=a("AggregateError"),i=u.f(t),f=i.resolve,p=i.reject,d=c(function(){var i=s(t.resolve),a=[],u=0,c=1,d=!1;l(e,function(e){var s=u++,l=!1;c++,o(i,t,e).then(function(e){l||d||(d=!0,f(e))},function(e){!l&&!d&&(l=!0,a[s]=e,--c||p(new r(a,h)))})}),--c||p(new r(a,h))});return d.error&&p(d.value),i.promise}})},7308:(e,t,r)=>{"use strict";var i=r(1460),o=r(8942),s=r(5815),a=r(3040),u=r(3867),c=i.RegExp,l=c.prototype;o&&u(function(){var e=!0;try{c(".","d")}catch(t){e=!1}var t={},r="",i=e?"dgimsy":"gimsy",o=function(e,i){Object.defineProperty(t,e,{get:function(){return r+=i,!0}})},s={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(s.hasIndices="d"),s)o(a,s[a]);return Object.getOwnPropertyDescriptor(l,"flags").get.call(t)!==i||r!==i})&&s(l,"flags",{configurable:!0,get:a})},751:(e,t,r)=>{"use strict";var i=r(3602),o=r(4460),s=r(3093),a=r(5952),u=r(9418),c=r(7352),l=r(7637),f=r(1765),h=r(5396),p=r(1967),d=l(function(e){var t=this,r=t.iterator,i=t.predicate;return new e(function(s,c){var l=function(e){t.done=!0,c(e)},p=function(e){h(r,l,e,l)},d=function(){try{e.resolve(a(o(t.next,r))).then(function(r){try{if(a(r).done)t.done=!0,s(f(void 0,!0));else{var o=r.value;try{var c=i(o,t.counter++),h=function(e){e?s(f(o,!1)):d()};u(c)?e.resolve(c).then(h,p):h(c)}catch(e){p(e)}}}catch(e){l(e)}},l)}catch(e){l(e)}};d()})});i({target:"AsyncIterator",proto:!0,real:!0,forced:p},{filter:function(e){return a(this),s(e),new d(c(this),{predicate:e})}})},6794:(e,t,r)=>{"use strict";var i=r(3602),o=r(7398).find;i({target:"AsyncIterator",proto:!0,real:!0},{find:function(e){return o(this,e)}})},5885:(e,t,r)=>{"use strict";var i=r(3602),o=r(7398).forEach;i({target:"AsyncIterator",proto:!0,real:!0},{forEach:function(e){return o(this,e)}})},8458:(e,t,r)=>{"use strict";var i=r(3602),o=r(8561);i({target:"AsyncIterator",proto:!0,real:!0,forced:r(1967)},{map:o})},9884:(e,t,r)=>{"use strict";var i=r(3602),o=r(4460),s=r(3093),a=r(5952),u=r(9418),c=r(4464),l=r(7352),f=r(5396),h=c("Promise"),p=TypeError;i({target:"AsyncIterator",proto:!0,real:!0},{reduce:function(e){a(this),s(e);var t=l(this),r=t.iterator,i=t.next,c=arguments.length<2,d=c?void 0:arguments[1],g=0;return new h(function(t,s){var l=function(e){f(r,s,e,s)},y=function(){try{h.resolve(a(o(i,r))).then(function(r){try{if(a(r).done)c?s(p("Reduce of empty iterator with no initial value")):t(d);else{var i=r.value;if(c)c=!1,d=i,y();else try{var o=e(d,i,g),f=function(e){d=e,y()};u(o)?h.resolve(o).then(f,l):f(o)}catch(e){l(e)}}g++}catch(e){s(e)}},s)}catch(e){s(e)}};y()})}})},8157:(e,t,r)=>{"use strict";var i=r(3602),o=r(7398).some;i({target:"AsyncIterator",proto:!0,real:!0},{some:function(e){return o(this,e)}})},9826:(e,t,r)=>{"use strict";var i=r(3602),o=r(1460),s=r(4864),a=r(5007),u=r(2595),c=r(4059),l=r(3867),f=r(8332),h=r(5616),p=r(2462).IteratorPrototype,d=r(1967),g=h("toStringTag"),y=TypeError,m=o.Iterator,b=d||!a(m)||m.prototype!==p||!l(function(){m({})}),v=function(){if(s(this,p),u(this)===p)throw y("Abstract class Iterator not directly constructable")};f(p,g)||c(p,g,"Iterator"),(b||!f(p,"constructor")||p.constructor===Object)&&c(p,"constructor",v),v.prototype=p,i({global:!0,constructor:!0,forced:b},{Iterator:v})},4678:(e,t,r)=>{"use strict";var i=r(3602),o=r(4460),s=r(3093),a=r(5952),u=r(7352),c=r(2249),l=r(7792),f=r(1967),h=c(function(){for(var e,t,r=this.iterator,i=this.predicate,s=this.next;;){if(e=a(o(s,r)),this.done=!!e.done)return;if(l(r,i,[t=e.value,this.counter++],!0))return t}});i({target:"Iterator",proto:!0,real:!0,forced:f},{filter:function(e){return a(this),s(e),new h(u(this),{predicate:e})}})},3354:(e,t,r)=>{"use strict";var i=r(3602),o=r(8378),s=r(3093),a=r(5952),u=r(7352);i({target:"Iterator",proto:!0,real:!0},{find:function(e){a(this),s(e);var t=u(this),r=0;return o(t,function(t,i){if(e(t,r++))return i(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},3390:(e,t,r)=>{"use strict";var i=r(3602),o=r(8378),s=r(3093),a=r(5952),u=r(7352);i({target:"Iterator",proto:!0,real:!0},{forEach:function(e){a(this),s(e);var t=u(this),r=0;o(t,function(t){e(t,r++)},{IS_RECORD:!0})}})},9141:(e,t,r)=>{"use strict";var i=r(3602),o=r(4863);i({target:"Iterator",proto:!0,real:!0,forced:r(1967)},{map:o})},7887:(e,t,r)=>{"use strict";var i=r(3602),o=r(8378),s=r(3093),a=r(5952),u=r(7352),c=TypeError;i({target:"Iterator",proto:!0,real:!0},{reduce:function(e){a(this),s(e);var t=u(this),r=arguments.length<2,i=r?void 0:arguments[1],l=0;if(o(t,function(t){r?(r=!1,i=t):i=e(i,t,l),l++},{IS_RECORD:!0}),r)throw c("Reduce of empty iterator with no initial value");return i}})},9059:(e,t,r)=>{"use strict";var i=r(3602),o=r(8378),s=r(3093),a=r(5952),u=r(7352);i({target:"Iterator",proto:!0,real:!0},{some:function(e){a(this),s(e);var t=u(this),r=0;return o(t,function(t,i){if(e(t,r++))return i()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},6497:(e,t,r)=>{"use strict";var i=r(3602),o=r(8942),s=r(1460),a=r(4464),u=r(796),c=r(4460),l=r(5007),f=r(9418),h=r(4694),p=r(8332),d=r(4014),g=r(7279),y=r(9577),m=r(3867),b=r(7970),v=r(852),w=s.JSON,_=s.Number,S=s.SyntaxError,x=w&&w.parse,E=a("Object","keys"),O=Object.getOwnPropertyDescriptor,k=u("".charAt),j=u("".slice),T=u(/./.exec),R=u([].push),P=/^\d$/,M=/^[1-9]$/,A=/^(-|\d)$/,L=/^[\t\n\r ]$/,N=function(e,t){e=d(e);var r=new B(e,0,""),i=r.parse(),o=i.value,s=r.skip(L,i.end);if(s{"use strict";var i=r(3602),o=r(5127),s=r(6808).remove;i({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=o(this),r=!0,i=0,a=arguments.length;i{"use strict";var i=r(3602),o=r(5127),s=r(6808),a=s.get,u=s.has,c=s.set;i({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var r,i,s=o(this);return u(s,e)?(r=a(s,e),"update"in t&&(r=t.update(r,e,s),c(s,e,r)),r):(i=t.insert(e,s),c(s,e,i),i)}})},233:(e,t,r)=>{"use strict";var i=r(3602),o=r(1336),s=r(5127),a=r(734);i({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0);return!1!==a(t,function(e,i){if(!r(e,i,t))return!1},!0)}})},2051:(e,t,r)=>{"use strict";var i=r(3602),o=r(1336),s=r(5127),a=r(6808),u=r(734),c=a.Map,l=a.set;i({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new c;return u(t,function(e,o){r(e,o,t)&&l(i,o,e)}),i}})},5148:(e,t,r)=>{"use strict";var i=r(3602),o=r(1336),s=r(5127),a=r(734);i({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=a(t,function(e,i){if(r(e,i,t))return{key:i}},!0);return i&&i.key}})},5607:(e,t,r)=>{"use strict";var i=r(3602),o=r(1336),s=r(5127),a=r(734);i({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=a(t,function(e,i){if(r(e,i,t))return{value:e}},!0);return i&&i.value}})},9603:(e,t,r)=>{"use strict";var i=r(3602),o=r(7321),s=r(5127),a=r(734);i({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===a(s(this),function(t){if(o(t,e))return!0},!0)}})},262:(e,t,r)=>{"use strict";var i=r(3602),o=r(5127),s=r(734);i({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=s(o(this),function(t,r){if(t===e)return{key:r}},!0);return t&&t.key}})},5636:(e,t,r)=>{"use strict";var i=r(3602),o=r(1336),s=r(5127),a=r(6808),u=r(734),c=a.Map,l=a.set;i({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new c;return u(t,function(e,o){l(i,r(e,o,t),e)}),i}})},646:(e,t,r)=>{"use strict";var i=r(3602),o=r(1336),s=r(5127),a=r(6808),u=r(734),c=a.Map,l=a.set;i({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new c;return u(t,function(e,o){l(i,o,r(e,o,t))}),i}})},2477:(e,t,r)=>{"use strict";var i=r(3602),o=r(5127),s=r(8378),a=r(6808).set;i({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=o(this),r=arguments.length,i=0;i{"use strict";var i=r(3602),o=r(3093),s=r(5127),a=r(734),u=TypeError;i({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=s(this),r=arguments.length<2,i=r?void 0:arguments[1];if(o(e),a(t,function(o,s){r?(r=!1,i=o):i=e(i,o,s,t)}),r)throw u("Reduce of empty map with no initial value");return i}})},5198:(e,t,r)=>{"use strict";var i=r(3602),o=r(1336),s=r(5127),a=r(734);i({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0);return!0===a(t,function(e,i){if(r(e,i,t))return!0},!0)}})},7494:(e,t,r)=>{"use strict";var i=r(3602),o=r(3093),s=r(5127),a=r(6808),u=TypeError,c=a.get,l=a.has,f=a.set;i({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var r=s(this),i=arguments.length;o(t);var a=l(r,e);if(!a&&i<3)throw u("Updating absent value");var h=a?c(r,e):o(i>2?arguments[2]:void 0)(e,r);return f(r,e,t(h,e,r)),r}})},4049:(e,t,r)=>{"use strict";var i=r(3602),o=r(5612),s=r(2023).add;i({target:"Set",proto:!0,real:!0,forced:!0},{addAll:function(){for(var e=o(this),t=0,r=arguments.length;t{"use strict";var i=r(3602),o=r(5612),s=r(2023).remove;i({target:"Set",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=o(this),r=!0,i=0,a=arguments.length;i{"use strict";var i=r(3602),o=r(4460),s=r(8668),a=r(2213);i({target:"Set",proto:!0,real:!0,forced:!0},{difference:function(e){return o(a,this,s(e))}})},5334:(e,t,r)=>{"use strict";var i=r(3602),o=r(2213);i({target:"Set",proto:!0,real:!0,forced:!r(1316)("difference")},{difference:o})},1747:(e,t,r)=>{"use strict";var i=r(3602),o=r(1336),s=r(5612),a=r(1520);i({target:"Set",proto:!0,real:!0,forced:!0},{every:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0);return!1!==a(t,function(e){if(!r(e,e,t))return!1},!0)}})},5016:(e,t,r)=>{"use strict";var i=r(3602),o=r(1336),s=r(5612),a=r(2023),u=r(1520),c=a.Set,l=a.add;i({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new c;return u(t,function(e){r(e,e,t)&&l(i,e)}),i}})},5321:(e,t,r)=>{"use strict";var i=r(3602),o=r(1336),s=r(5612),a=r(1520);i({target:"Set",proto:!0,real:!0,forced:!0},{find:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=a(t,function(e){if(r(e,e,t))return{value:e}},!0);return i&&i.value}})},4294:(e,t,r)=>{"use strict";var i=r(3602),o=r(4460),s=r(8668),a=r(7747);i({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(e){return o(a,this,s(e))}})},2189:(e,t,r)=>{"use strict";var i=r(3602),o=r(3867),s=r(7747);i({target:"Set",proto:!0,real:!0,forced:!r(1316)("intersection")||o(function(){return"3,2"!==Array.from(new Set([1,2,3]).intersection(new Set([3,2])))})},{intersection:s})},5584:(e,t,r)=>{"use strict";var i=r(3602),o=r(4460),s=r(8668),a=r(4351);i({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(e){return o(a,this,s(e))}})},9018:(e,t,r)=>{"use strict";var i=r(3602),o=r(4351);i({target:"Set",proto:!0,real:!0,forced:!r(1316)("isDisjointFrom")},{isDisjointFrom:o})},7832:(e,t,r)=>{"use strict";var i=r(3602),o=r(4460),s=r(8668),a=r(2722);i({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(e){return o(a,this,s(e))}})},5736:(e,t,r)=>{"use strict";var i=r(3602),o=r(2722);i({target:"Set",proto:!0,real:!0,forced:!r(1316)("isSubsetOf")},{isSubsetOf:o})},3098:(e,t,r)=>{"use strict";var i=r(3602),o=r(4460),s=r(8668),a=r(7507);i({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(e){return o(a,this,s(e))}})},1133:(e,t,r)=>{"use strict";var i=r(3602),o=r(7507);i({target:"Set",proto:!0,real:!0,forced:!r(1316)("isSupersetOf")},{isSupersetOf:o})},5261:(e,t,r)=>{"use strict";var i=r(3602),o=r(796),s=r(5612),a=r(1520),u=r(4014),c=o([].join),l=o([].push);i({target:"Set",proto:!0,real:!0,forced:!0},{join:function(e){var t=s(this),r=void 0===e?",":u(e),i=[];return a(t,function(e){l(i,e)}),c(i,r)}})},4427:(e,t,r)=>{"use strict";var i=r(3602),o=r(1336),s=r(5612),a=r(2023),u=r(1520),c=a.Set,l=a.add;i({target:"Set",proto:!0,real:!0,forced:!0},{map:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new c;return u(t,function(e){l(i,r(e,e,t))}),i}})},427:(e,t,r)=>{"use strict";var i=r(3602),o=r(3093),s=r(5612),a=r(1520),u=TypeError;i({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=s(this),r=arguments.length<2,i=r?void 0:arguments[1];if(o(e),a(t,function(o){r?(r=!1,i=o):i=e(i,o,o,t)}),r)throw u("Reduce of empty set with no initial value");return i}})},764:(e,t,r)=>{"use strict";var i=r(3602),o=r(1336),s=r(5612),a=r(1520);i({target:"Set",proto:!0,real:!0,forced:!0},{some:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0);return!0===a(t,function(e){if(r(e,e,t))return!0},!0)}})},1962:(e,t,r)=>{"use strict";var i=r(3602),o=r(4460),s=r(8668),a=r(9298);i({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(e){return o(a,this,s(e))}})},179:(e,t,r)=>{"use strict";var i=r(3602),o=r(9298);i({target:"Set",proto:!0,real:!0,forced:!r(1316)("symmetricDifference")},{symmetricDifference:o})},8540:(e,t,r)=>{"use strict";var i=r(3602),o=r(4460),s=r(8668),a=r(2221);i({target:"Set",proto:!0,real:!0,forced:!0},{union:function(e){return o(a,this,s(e))}})},5665:(e,t,r)=>{"use strict";var i=r(3602),o=r(2221);i({target:"Set",proto:!0,real:!0,forced:!r(1316)("union")},{union:o})},4300:e=>{"use strict";e.exports=require("buffer")},2081:e=>{"use strict";e.exports=require("child_process")},6113:e=>{"use strict";e.exports=require("crypto")},9523:e=>{"use strict";e.exports=require("dns")},2361:e=>{"use strict";e.exports=require("events")},7147:e=>{"use strict";e.exports=require("fs")},3685:e=>{"use strict";e.exports=require("http")},5687:e=>{"use strict";e.exports=require("https")},1808:e=>{"use strict";e.exports=require("net")},2037:e=>{"use strict";e.exports=require("os")},1017:e=>{"use strict";e.exports=require("path")},3477:e=>{"use strict";e.exports=require("querystring")},2781:e=>{"use strict";e.exports=require("stream")},1576:e=>{"use strict";e.exports=require("string_decoder")},6224:e=>{"use strict";e.exports=require("tty")},7310:e=>{"use strict";e.exports=require("url")},3837:e=>{"use strict";e.exports=require("util")},6144:e=>{"use strict";e.exports=require("vm")},1267:e=>{"use strict";e.exports=require("worker_threads")},9796:e=>{"use strict";e.exports=require("zlib")},799:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}(r(6224));let o=process.env||{},s=process.argv||[],a="NO_COLOR"in o||s.includes("--no-color"),u="FORCE_COLOR"in o||s.includes("--color"),c="win32"===process.platform,l=i&&i.isatty&&i.isatty(1)&&o.TERM&&"dumb"!==o.TERM,f=!a&&(u||c||l||"CI"in o&&("GITHUB_ACTIONS"in o||"GITLAB_CI"in o||"CIRCLECI"in o)),h=(e,t,r,i,o=t.substring(0,e)+i,s=t.substring(e+r.length),a=s.indexOf(r))=>o+(a<0?s:h(a,s,r,i)),p=(e,t,r,i,o)=>e<0?r+t+i:r+h(e,t,i,o)+i,d=(e,t,r=e,i=e.length+1)=>o=>o||!(""===o||void 0===o)?p((""+o).indexOf(t,i),o,e,t,r):"",g=(e,t,r)=>d(`\x1b[${e}m`,`\x1b[${t}m`,r),y={reset:g(0,0),bold:g(1,22,"\x1b[22m\x1b[1m"),dim:g(2,22,"\x1b[22m\x1b[2m"),italic:g(3,23),underline:g(4,24),inverse:g(7,27),hidden:g(8,28),strikethrough:g(9,29),black:g(30,39),red:g(31,39),green:g(32,39),yellow:g(33,39),blue:g(34,39),magenta:g(35,39),cyan:g(36,39),white:g(37,39),gray:g(90,39),bgBlack:g(40,49),bgRed:g(41,49),bgGreen:g(42,49),bgYellow:g(43,49),bgBlue:g(44,49),bgMagenta:g(45,49),bgCyan:g(46,49),bgWhite:g(47,49),blackBright:g(90,39),redBright:g(91,39),greenBright:g(92,39),yellowBright:g(93,39),blueBright:g(94,39),magentaBright:g(95,39),cyanBright:g(96,39),whiteBright:g(97,39),bgBlackBright:g(100,49),bgRedBright:g(101,49),bgGreenBright:g(102,49),bgYellowBright:g(103,49),bgBlueBright:g(104,49),bgMagentaBright:g(105,49),bgCyanBright:g(106,49),bgWhiteBright:g(107,49)},m=e=>e,b=({useColor:e=f}={})=>e?y:Object.keys(y).reduce((e,t)=>({...e,[t]:m}),{}),{reset:v,bold:w,dim:_,italic:S,underline:x,inverse:E,hidden:O,strikethrough:k,black:j,red:T,green:R,yellow:P,blue:M,magenta:A,cyan:L,white:N,gray:C,bgBlack:D,bgRed:I,bgGreen:B,bgYellow:$,bgBlue:q,bgMagenta:U,bgCyan:F,bgWhite:W,blackBright:G,redBright:H,greenBright:z,yellowBright:J,blueBright:V,magentaBright:K,cyanBright:Y,whiteBright:Q,bgBlackBright:X,bgRedBright:Z,bgGreenBright:ee,bgYellowBright:et,bgBlueBright:er,bgMagentaBright:en,bgCyanBright:ei,bgWhiteBright:eo}=b();t.bgBlack=D,t.bgBlackBright=X,t.bgBlue=q,t.bgBlueBright=er,t.bgCyan=F,t.bgCyanBright=ei,t.bgGreen=B,t.bgGreenBright=ee,t.bgMagenta=U,t.bgMagentaBright=en,t.bgRed=I,t.bgRedBright=Z,t.bgWhite=W,t.bgWhiteBright=eo,t.bgYellow=$,t.bgYellowBright=et,t.black=j,t.blackBright=G,t.blue=M,t.blueBright=V,t.bold=w,t.createColors=b,t.cyan=L,t.cyanBright=Y,t.dim=_,t.gray=C,t.green=R,t.greenBright=z,t.hidden=O,t.inverse=E,t.isColorSupported=f,t.italic=S,t.magenta=A,t.magentaBright=K,t.red=T,t.redBright=H,t.reset=v,t.strikethrough=k,t.underline=x,t.white=N,t.whiteBright=Q,t.yellow=P,t.yellowBright=J},1686:(e,t,r)=>{"use strict";let{isColorSupported:i}=r(799),o=r(2181),{Transform:s}=r(8118),a=r(2306),u=r(9316),c=r(8202),{ERROR_LIKE_KEYS:l,MESSAGE_KEY:f,TIMESTAMP_KEY:h,LEVEL_KEY:p,LEVEL_NAMES:d}=r(484),{isObject:g,prettifyErrorLog:y,prettifyLevel:m,prettifyMessage:b,prettifyMetadata:v,prettifyObject:w,prettifyTime:_,buildSafeSonicBoom:S,filterLog:x}=r(6741),E=e=>{try{return{value:u.parse(e,{protoAction:"remove"})}}catch(e){return{err:e}}},O={colorize:i,crlf:!1,errorLikeObjectKeys:l,errorProps:"",customLevels:null,customColors:null,useOnlyCustomProps:!0,levelFirst:!1,messageKey:f,messageFormat:!1,timestampKey:h,translateTime:!1,useMetadata:!1,outputStream:process.stdout,customPrettifiers:{},hideObject:!1,singleLine:!1};function k(e){let t=Object.assign({},O,e),r=t.crlf?"\r\n":"\n",i=" ",o=t.messageKey,s=t.levelKey,a=t.levelLabel,u=t.minimumLevel,l=t.messageFormat,f=t.timestampKey,h=t.errorLikeObjectKeys,S=t.errorProps.split(","),k="boolean"==typeof t.useOnlyCustomProps?t.useOnlyCustomProps:"true"===t.useOnlyCustomProps,j=t.customLevels?t.customLevels.split(",").reduce((e,t,r)=>{let[i,o=r]=t.split(":");return e[o]=i.toUpperCase(),e},{default:"USERLVL"}):{},T=t.customLevels?t.customLevels.split(",").reduce((e,t,r)=>{let[i,o=r]=t.split(":");return e[i.toLowerCase()]=o,e},{}):{},R=t.customColors?t.customColors.split(",").reduce((e,r)=>{let[i,o]=r.split(":"),s=k?t.customLevels:void 0!==T[i],a=s?T[i]:d[i],u=void 0!==a?a:i;return e.push([u,o]),e},[]):void 0,P={customLevels:j,customLevelNames:T};k&&!t.customLevels&&(P.customLevels=void 0,P.customLevelNames=void 0);let M=t.customPrettifiers,A=t.ignore?new Set(t.ignore.split(",")):void 0,L=t.hideObject,N=t.singleLine,C=c(t.colorize,R,k);return function(e){let c;if(g(e))c=e;else{let t=E(e);if(t.err||!g(t.value))return e+r;c=t.value}if(u){let e=k?t.customLevels:void 0!==T[u],r=(e?T[u]:d[u])||Number(u),i=c[void 0===s?p:s];if(i0?`${I} ${j}`:j),R&&(I=I.length>0?`${I} ${R}:`:R),!1===I.endsWith(":")&&""!==I&&(I+=":"),O&&(I=I.length>0?`${I} ${O}`:O),I.length>0&&!N&&(I+=r),"Error"===c.type&&c.stack){let e=y({log:c,errorLikeKeys:h,errorProperties:S,ident:i,eol:r});N&&(I+=r),I+=e}else if(!L){let e=[o,s,f].filter(e=>"string"==typeof c[e]||"number"==typeof c[e]),t=w({input:c,skipKeys:e,customPrettifiers:M,errorLikeKeys:h,eol:r,ident:i,singleLine:N,colorizer:C});N&&!/^\s$/.test(t)&&(I+=" "),I+=t}return I}}function j(e={}){let t=k(e);return a(function(r){let i;let a=new s({objectMode:!0,autoDestroy:!0,transform(e,r,i){let o=t(e);i(null,o)}});return i="object"==typeof e.destination&&"function"==typeof e.destination.write?e.destination:S({dest:e.destination||1,append:e.append,mkdir:e.mkdir,sync:e.sync}),r.on("unknown",function(e){i.write(e+"\n")}),o(r,a,i),a},{parse:"lines"})}e.exports=j,e.exports.prettyFactory=k,e.exports.colorizerFactory=c,e.exports.default=j},8202:(e,t,r)=>{"use strict";let{LEVELS:i,LEVEL_NAMES:o}=r(484),s=e=>e,a={default:s,60:s,50:s,40:s,30:s,20:s,10:s,message:s,greyMessage:s},{createColors:u}=r(799),c=u({useColor:!0}),{white:l,bgRed:f,red:h,yellow:p,green:d,blue:g,gray:y,cyan:m}=c,b={default:l,60:f,50:h,40:p,30:d,20:g,10:y,message:m,greyMessage:y};function v(e){return function(t,r,{customLevels:s,customLevelNames:a}={}){let u=e?s||i:Object.assign({},i,s),c=e?a||o:Object.assign({},o,a),l="default";l=Number.isInteger(+t)?Object.prototype.hasOwnProperty.call(u,t)?t:l:Object.prototype.hasOwnProperty.call(c,t.toLowerCase())?c[t.toLowerCase()]:l;let f=u[l];return Object.prototype.hasOwnProperty.call(r,l)?r[l](f):r.default(f)}}e.exports=function(e=!1,t,r){return e&&void 0!==t?function(e,t){let r=e.reduce(function(e,[t,r]){return e[t]="function"==typeof c[r]?c[r]:l,e},{default:l,message:m,greyMessage:y}),i=t?r:Object.assign({},b,r),o=v(t),s=function(e,t){return o(e,i,t)};return s.message=s.message||i.message,s.greyMessage=s.greyMessage||i.greyMessage,s}(t,r):e?function(e){let t=v(e),r=function(e,r){return t(e,b,r)};return r.message=b.message,r.greyMessage=b.greyMessage,r}(r):function(e){let t=v(e),r=function(e,r){return t(e,a,r)};return r.message=a.message,r.greyMessage=a.greyMessage,r}(r)}},484:e=>{"use strict";e.exports={DATE_FORMAT:"yyyy-mm-dd HH:MM:ss.l o",ERROR_LIKE_KEYS:["err","error"],MESSAGE_KEY:"msg",LEVEL_KEY:"level",LEVEL_LABEL:"levelLabel",TIMESTAMP_KEY:"time",LEVELS:{default:"USERLVL",60:"FATAL",50:"ERROR",40:"WARN",30:"INFO",20:"DEBUG",10:"TRACE"},LEVEL_NAMES:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},LOGGER_KEYS:["pid","hostname","name","level","time","timestamp","caller"]}},6741:(e,t,r)=>{"use strict";let i=r(3268)({circles:!0}),o=r(924),s=r(6755),a=r(2988),{isMainThread:u}=r(1267),c=r(8202)(),{DATE_FORMAT:l,ERROR_LIKE_KEYS:f,MESSAGE_KEY:h,LEVEL_KEY:p,LEVEL_LABEL:d,TIMESTAMP_KEY:g,LOGGER_KEYS:y,LEVELS:m}=r(484);function b(e,t=!1){if(!1===t)return e;let r=v(e);if(!w(r))return e;if(!0===t)return o(r,"UTC:"+l);let i=t.toUpperCase();if("SYS:STANDARD"===i)return o(r,l);let s=i.substr(0,4);return"SYS:"===s||"UTC:"===s?"UTC:"===s?o(r,t):o(r,t.slice(4)):o(r,`UTC:${t}`)}function v(e){let t=new Date(e);return w(t)?t:t=new Date(+e)}function w(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function _(e){return"[object Object]"===Object.prototype.toString.apply(e)}function S({input:e,ident:t=" ",eol:r="\n"}){let i=e.split(/\r?\n/);for(let e=1;e{if(!1===p.includes(i)){let u="function"==typeof o[i]?o[i](a,i,e):a;s.includes(i)?r[i]=u:t[i]=u}return{plain:t,errors:r}},{plain:{},errors:{}});return l?(Object.keys(g).length>0&&(d+=h.greyMessage(a(g))),d+=r):Object.entries(g).forEach(([e,i])=>{let s="function"==typeof o[e]?i:a(i,null,2);if(void 0===s)return;let u=S({input:s,ident:t,eol:r});d+=`${t}${e}:${u.startsWith(r)?"":" "}${u}${r}`}),Object.entries(m).forEach(([e,i])=>{let s="function"==typeof o[e]?i:a(i,null,2);void 0!==s&&(d+=E({keyName:e,lines:s,eol:r,ident:t}))}),d}function E({keyName:e,lines:t,eol:r,ident:i}){let o="",s=S({input:t,ident:i,eol:r}),a=`${i}${e}: ${s}${r}`.split(r);for(let e=0;e{Object.prototype.hasOwnProperty.call(e,t)&&(e=e[t])}),delete e[i]}function j(){}function T(e,t){e.destroyed||("beforeExit"===t?(e.flush(),e.on("drain",function(){e.end()})):e.flushSync())}e.exports={isObject:_,prettifyErrorLog:function({log:e,messageKey:t=h,ident:r=" ",eol:i="\n",errorLikeKeys:o=f,errorProperties:s=[]}){let a=e.stack,u=S({input:a,ident:r,eol:i}),c=`${r}${u}${i}`;if(s.length>0){let a;let u=y.concat(t,"type","stack");a="*"===s[0]?Object.keys(e).filter(e=>!1===u.includes(e)):s.filter(e=>!1===u.includes(e));for(let t=0;t`),""!==r)return r},prettifyObject:x,prettifyTime:function({log:e,timestampKey:t=g,translateFormat:r,prettifier:i}){let o=null;if(t in e?o=e[t]:"timestamp"in e&&(o=e.timestamp),null===o)return;let s=r?b(o,r):o;return i?i(s):`[${s}]`},buildSafeSonicBoom:function(e){let t=new s(e);return t.on("error",function e(r){if("EPIPE"===r.code){t.write=j,t.end=j,t.flushSync=j,t.destroy=j;return}t.removeListener("error",e)}),!e.sync&&u&&function(e){if(global.WeakRef&&global.WeakMap&&global.FinalizationRegistry){let t=r(3538);t.register(e,T),e.on("close",function(){t.unregister(e)})}}(t),t},filterLog:function(e,t){let r=i(e);return t.forEach(e=>{k(r,e)}),r}},e.exports.internals={formatTime:b,joinLinesWithIndentation:S,prettifyError:E,deleteLogProperty:k,splitIgnoreKey:O,createDate:v,isValidDate:w}},6755:(e,t,r)=>{"use strict";let i=r(7147),o=r(2361),s=r(3837).inherits,a=r(1017),u=r(160);function c(e,t){function r(r,i){if(r){t._reopening=!1,t._writing=!1,t._opening=!1,t.sync?process.nextTick(()=>{t.listenerCount("error")>0&&t.emit("error",r)}):t.emit("error",r);return}t.fd=i,t.file=e,t._reopening=!1,t._opening=!1,t._writing=!1,t.sync?process.nextTick(()=>t.emit("ready")):t.emit("ready"),!t._reopening&&(t._writing||!(t._len>t.minLength)||t.destroyed||h(t))}t._opening=!0,t._writing=!0,t._asyncDrainScheduled=!1;let o=t.append?"a":"w";if(t.sync)try{t.mkdir&&i.mkdirSync(a.dirname(e),{recursive:!0});let s=i.openSync(e,o);r(null,s)}catch(e){throw r(e),e}else t.mkdir?i.mkdir(a.dirname(e),{recursive:!0},t=>{if(t)return r(t);i.open(e,o,r)}):i.open(e,o,r)}function l(e){if(!(this instanceof l))return new l(e);let{fd:t,dest:r,minLength:o,sync:s,append:a=!0,mkdir:d,retryEAGAIN:g}=e||{};if(t=t||r,this._bufs=[],this._len=0,this.fd=-1,this._writing=!1,this._writingBuf="",this._ending=!1,this._reopening=!1,this._asyncDrainScheduled=!1,this._hwm=Math.max(o||0,16387),this.file=null,this.destroyed=!1,this.minLength=o||0,this.sync=s||!1,this.append=a||!1,this.retryEAGAIN=g||(()=>!0),this.mkdir=d||!1,"number"==typeof t)this.fd=t,process.nextTick(()=>this.emit("ready"));else if("string"==typeof t)c(t,this);else throw Error("SonicBoom supports only file descriptors and files");if(this.minLength>=16777216)throw Error("minLength should be smaller than MAX_WRITE (16777216)");this.release=(e,t)=>{if(e){if("EAGAIN"===e.code&&this.retryEAGAIN(e,this._writingBuf.length,this._len-this._writingBuf.length)){if(this.sync)try{u(100),this.release(void 0,0)}catch(e){this.release(e)}else setTimeout(()=>{i.write(this.fd,this._writingBuf,"utf8",this.release)},100)}else this._writing=!1,this.emit("error",e);return}if(this._len-=t,this._writingBuf=this._writingBuf.slice(t),this._writingBuf.length){if(!this.sync){i.write(this.fd,this._writingBuf,"utf8",this.release);return}try{do{let e=i.writeSync(this.fd,this._writingBuf,"utf8");this._len-=e,this._writingBuf=this._writingBuf.slice(e)}while(this._writingBuf)}catch(e){this.release(e);return}}let r=this._len;this._reopening?(this._writing=!1,this._reopening=!1,this.reopen()):r>this.minLength?h(this):this._ending?r>0?h(this):(this._writing=!1,p(this)):(this._writing=!1,this.sync?this._asyncDrainScheduled||(this._asyncDrainScheduled=!0,process.nextTick(f,this)):this.emit("drain"))},this.on("newListener",function(e){"drain"===e&&(this._asyncDrainScheduled=!1)})}function f(e){let t=e.listenerCount("drain")>0;t&&(e._asyncDrainScheduled=!1,e.emit("drain"))}function h(e){let t=e.release;if(e._writing=!0,e._writingBuf=e._writingBuf||e._bufs.shift(),e.sync)try{let r=i.writeSync(e.fd,e._writingBuf,"utf8");t(null,r)}catch(e){t(e)}else i.write(e.fd,e._writingBuf,"utf8",t)}function p(e){if(-1===e.fd){e.once("ready",p.bind(null,e));return}i.close(e.fd,t=>{if(t){e.emit("error",t);return}e._ending&&!e._writing&&e.emit("finish"),e.emit("close")}),e.destroyed=!0,e._bufs=[]}s(l,o),l.prototype.write=function(e){if(this.destroyed)throw Error("SonicBoom destroyed");let t=this._len+e.length,r=this._bufs;return!this._writing&&t>16777216?r.push(e):0===r.length?r[0]=""+e:r[r.length-1]+=e,this._len=t,!this._writing&&this._len>=this.minLength&&h(this),this._len{this.reopen(e)});return}if(this._ending)return;if(!this.file)throw Error("Unable to reopen a file descriptor, you must pass a file to SonicBoom");if(this._reopening=!0,this._writing)return;let t=this.fd;this.once("ready",()=>{t!==this.fd&&i.close(t,e=>{if(e)return this.emit("error",e)})}),c(e||this.file,this)},l.prototype.end=function(){if(this.destroyed)throw Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.end()});return}!this._ending&&(this._ending=!0,this._writing||(this._len>0&&this.fd>=0?h(this):p(this)))},l.prototype.flushSync=function(){if(this.destroyed)throw Error("SonicBoom destroyed");if(this.fd<0)throw Error("sonic boom is not ready yet");for(!this._writing&&this._writingBuf.length>0&&(this._bufs.unshift(this._writingBuf),this._writingBuf="");this._bufs.length;){let e=this._bufs[0];try{this._len-=i.writeSync(this.fd,e,"utf8"),this._bufs.shift()}catch(t){if("EAGAIN"!==t.code||!this.retryEAGAIN(t,e.length,this._len-e.length))throw t;u(100)}}},l.prototype.destroy=function(){this.destroyed||p(this)},l.SonicBoom=l,l.default=l,e.exports=l},8002:e=>{"use strict";e.exports=JSON.parse('{"name":"pino","version":"6.14.0","description":"super fast, all natural json logger","main":"pino.js","browser":"./browser.js","files":["pino.js","bin.js","browser.js","pretty.js","usage.txt","test","docs","example.js","lib"],"scripts":{"docs":"docsify serve","browser-test":"airtap --local 8080 test/browser*test.js","lint":"eslint .","test":"npm run lint && tap --100 test/*test.js test/*/*test.js","test-ci":"npm run lint && tap test/*test.js test/*/*test.js --coverage-report=lcovonly","cov-ui":"tap --coverage-report=html test/*test.js test/*/*test.js","bench":"node benchmarks/utils/runbench all","bench-basic":"node benchmarks/utils/runbench basic","bench-object":"node benchmarks/utils/runbench object","bench-deep-object":"node benchmarks/utils/runbench deep-object","bench-multi-arg":"node benchmarks/utils/runbench multi-arg","bench-longs-tring":"node benchmarks/utils/runbench long-string","bench-child":"node benchmarks/utils/runbench child","bench-child-child":"node benchmarks/utils/runbench child-child","bench-child-creation":"node benchmarks/utils/runbench child-creation","bench-formatters":"node benchmarks/utils/runbench formatters","update-bench-doc":"node benchmarks/utils/generate-benchmark-doc > docs/benchmarks.md"},"bin":{"pino":"./bin.js"},"precommit":"test","repository":{"type":"git","url":"git+https://github.com/pinojs/pino.git"},"keywords":["fast","logger","stream","json"],"author":"Matteo Collina ","contributors":["David Mark Clements ","James Sumners ","Thomas Watson Steen (https://twitter.com/wa7son)"],"license":"MIT","bugs":{"url":"https://github.com/pinojs/pino/issues"},"homepage":"http://getpino.io","devDependencies":{"airtap":"4.0.3","benchmark":"^2.1.4","bole":"^4.0.0","bunyan":"^1.8.14","docsify-cli":"^4.4.1","eslint":"^7.17.0","eslint-config-standard":"^16.0.2","eslint-plugin-import":"^2.22.1","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^5.1.0","execa":"^5.0.0","fastbench":"^1.0.1","flush-write-stream":"^2.0.0","import-fresh":"^3.2.1","log":"^6.0.0","loglevel":"^1.6.7","pino-pretty":"^5.0.0","pre-commit":"^1.2.2","proxyquire":"^2.1.3","pump":"^3.0.0","semver":"^7.0.0","split2":"^3.1.1","steed":"^1.1.3","strip-ansi":"^6.0.0","tap":"^15.0.1","tape":"^5.0.0","through2":"^4.0.0","winston":"^3.3.3"},"dependencies":{"fast-redact":"^3.0.0","fast-safe-stringify":"^2.0.8","process-warning":"^1.0.0","flatstr":"^1.0.12","pino-std-serializers":"^3.1.0","quick-format-unescaped":"^4.0.3","sonic-boom":"^1.0.2"}}')},4147:e=>{"use strict";e.exports=JSON.parse('{"name":"@unblockneteasemusic/server","version":"0.27.4","description":"Revive unavailable songs for Netease Cloud Music","main":"src/provider/match.js","bin":{"unblockneteasemusic":"./precompiled/app.js"},"engines":{"node":">= 12"},"scripts":{"start:dev":"cross-env LOG_LEVEL=debug node src/app.js -e https://music.163.com","start":"cross-env node src/app.js -e https://music.163.com","build":"webpack","pkg":"pkg . --out-path=dist/","test":"jest"},"pkg":{"assets":["server.key","server.crt"],"targets":["node16-linux-arm64","node16-win-arm64","node16-linux-x64","node16-win-x64"],"outputPath":"dist"},"repository":{"type":"git","url":"https://github.com/UnblockNeteaseMusic/server.git"},"author":"nondanee, 1715173329, pan93412","license":"LGPL-3.0-only","dependencies":{"node-windows":"^1.0.0-beta.8","pino":"6.14.0","pino-pretty":"^7.6.1"},"devDependencies":{"@swc/core":"^1.3.83","@types/node":"^20.5.9","@types/pino":"6.3.12","@yarnpkg/sdks":"^3.0.0-rc.50","browserslist":"^4.21.10","core-js":"^3.32.1","cross-env":"^7.0.3","jest":"^29.6.4","pkg":"^5.8.1","prettier":"^3.0.3","swc-loader":"^0.2.3","terser-webpack-plugin":"^5.3.9","typescript":"^5.2.2","webpack":"^5.88.2","webpack-cli":"^5.1.4"},"resolutions":{"cacheable-request":"^10.2.9","minimatch":"^3.0.8","minimist":"^1.2.8","semver":"^7.5.4"},"publishConfig":{"access":"public"},"packageManager":"yarn@3.6.3"}')}},t={};function r(i){var o=t[i];if(void 0!==o)return o.exports;var s=t[i]={exports:{}};return e[i].call(s.exports,s,s.exports,r),s.exports}(()=>{"use strict";r(8458),r(9141),r(8157),r(9059),r(9826),r(9884),r(7887),r(2961),r(5885),r(3390);let e=r(4147),t=r(5796).program({name:e.name.replace(/@.+\//,""),version:e.version}).option(["-v","--version"],{action:"version"}).option(["-p","--port"],{metavar:"http[:https]",help:"specify server port"}).option(["-a","--address"],{metavar:"address",help:"specify server host"}).option(["-u","--proxy-url"],{metavar:"url",help:"request through upstream proxy"}).option(["-f","--force-host"],{metavar:"host",help:"force the netease server ip"}).option(["-o","--match-order"],{metavar:"source",nargs:"+",help:"set priority of sources"}).option(["-t","--token"],{metavar:"token",help:"set up proxy authentication"}).option(["-e","--endpoint"],{metavar:"url",help:"replace virtual endpoint with public host"}).option(["-s","--strict"],{action:"store_true",help:"enable proxy limitation"}).option(["-c","--cnrelay"],{metavar:"cnrelay",help:"Mainland China relay to get music url"}).option(["-h","--help"],{action:"help"}).parse(process.argv);if(global.address=t.address,t.port=(t.port||"8080:8081").split(":").map(e=>parseInt(e)),t.port.some(e=>isNaN(e)||e<1||e>65535)&&(console.log("Port must be a number higher than 0 and lower than 65535."),process.exit(1)),t.proxyUrl&&!/http(s?):\/\/.+:\d+/.test(t.proxyUrl)&&(console.log("Please check the proxy url."),process.exit(1)),t.endpoint?"-"===t.endpoint?t.endpoint="":/http(s?):\/\/.+/.test(t.endpoint)||(console.log("Please check the endpoint host."),process.exit(1)):t.endpoint="https://music.163.com",t.forceHost&&0===r(1808).isIP(t.forceHost)&&(console.log("Please check the server host."),process.exit(1)),t.matchOrder){let e=Object.keys(r(1784).PROVIDERS),i=t.matchOrder;i.some((e,t)=>t!=i.indexOf(e))?(console.log("Please check the duplication in match order."),process.exit(1)):i.some(t=>!e.includes(t))&&(console.log("Please check the availability of match sources."),process.exit(1)),global.source=i}t.token&&!/\S+:\S+/.test(t.token)&&(console.log("Please check the authentication token."),process.exit(1));let{logScope:i}=r(7691),o=r(7310).parse,s=r(403),a=r(8837),{CacheStorageGroup:u}=r(9220),c=i("app"),l=Array.from(s.target.host);global.port=t.port,global.proxy=t.proxyUrl?o(t.proxyUrl):null,global.hosts=l.reduce((e,r)=>Object.assign(e,{[r]:t.forceHost}),{}),a.whitelist=["://[\\w.]*music\\.126\\.net","://[\\w.]*vod\\.126\\.net","://acstatic-dun.126.net","://[\\w.]*\\.netease.com","://[\\w.]*\\.163yun.com"],global.cnrelay=t.cnrelay,t.strict&&a.blacklist.push(".*"),a.authentication=t.token||null,global.endpoint=t.endpoint,t.endpoint&&a.whitelist.push(escape(t.endpoint));let f="true"===process.env.ENABLE_HTTPDNS?[e=>r(5262)("POST","http://music.httpdns.c.163.com/d",{},e).then(e=>e.json()).then(e=>e.dns.reduce((e,t)=>e.concat(t.ips),[])),e=>r(5262)("GET","http://httpdns.n.netease.com/httpdns/v2/d?domain="+e).then(e=>e.json()).then(e=>Object.keys(e.data).map(t=>e.data[t]).reduce((e,t)=>e.concat(t.ip||[]),[]))]:[],h=u.getInstance();setInterval(()=>{h.cleanup()},9e5),Promise.all(f.map(e=>e(l.join(","))).concat(l.map(e=>new Promise((t,i)=>r(9523).lookup(e,{all:!0},(e,r)=>e?i(e):t(r.map(e=>e.address))))))).then(e=>{let{host:t}=s.target;e.forEach(e=>e.forEach(t.add,t)),a.whitelist=a.whitelist.concat(Array.from(t).map(escape));let r=e=>c.info(`${["HTTP","HTTPS"][e]} Server running @ http://${address||"0.0.0.0"}:${port[e]}`);port[0]&&a.http.listen(port[0],address).once("listening",()=>r(0)),port[1]&&a.https.listen(port[1],address).once("listening",()=>r(1)),cnrelay&&c.info(`CNRelay: ${cnrelay}`)}).catch(e=>{console.log(e),process.exit(1)})})()})(); \ No newline at end of file + `,i({o:t,〇:null}),{codeGeneration:{strings:!1,wasm:!1}})}catch(t){throw Error(r(e))}})}}},2988:e=>{e.exports=a,a.default=a,a.stable=l,a.stableStringify=l;var t="[...]",r="[Circular]",i=[],o=[];function s(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(e,a,c,l){void 0===l&&(l=s()),function e(i,o,s,a,c,l,f){if(l+=1,"object"==typeof i&&null!==i){for(h=0;hf.depthLimit||void 0!==f.edgesLimit&&s+1>f.edgesLimit){u(t,i,o,c);return}if(a.push(i),Array.isArray(i))for(h=0;ht?1:0}function l(e,a,l,h){void 0===h&&(h=s());var p,d=function e(o,s,a,l,f,h,p){if(h+=1,"object"==typeof o&&null!==o){for(d=0;dp.depthLimit||void 0!==p.edgesLimit&&a+1>p.edgesLimit){u(t,o,s,f);return}if(l.push(o),Array.isArray(o))for(d=0;d0)for(var i=0;i{"use strict";e.exports=function(e){return e}},1828:(e,t,r)=>{try{var i=r(3837);if("function"!=typeof i.inherits)throw"";e.exports=i.inherits}catch(t){e.exports=r(3730)}},3730:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},3538:e=>{"use strict";function t(e,t,r,i){function o(){let e=t.deref();void 0!==e&&r(e,i)}e[i]=o,process.once(i,o)}let r=new FinalizationRegistry(o),i=new WeakMap;function o(e){process.removeListener("exit",e.exit),process.removeListener("beforeExit",e.beforeExit)}e.exports={register:function(e,o){if(void 0===e)throw Error("the object can't be undefined");let s=new WeakRef(e),a={};i.set(e,a),r.register(e,a),t(a,s,o,"exit"),t(a,s,o,"beforeExit")},unregister:function(e){let t=i.get(e);i.delete(e),t&&o(t),r.unregister(e)}}},5962:(e,t,r)=>{var i=r(4447);function o(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function s(e){var t=function(){if(t.called)throw Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}e.exports=i(o),e.exports.strict=i(s),o.proto=o(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return o(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return s(this)},configurable:!0})})},2306:(e,t,r)=>{"use strict";let i=Symbol.for("pino.metadata"),o=r(5443),s=r(7008);function a(e,t){process.nextTick(t,e)}e.exports=function(e,t={}){let r="lines"===t.parse,u="function"==typeof t.parseLine?t.parseLine:JSON.parse,c=t.close||a,l=o(function(e){let t;try{t=u(e)}catch(t){this.emit("unknown",e,t);return}if(null===t){this.emit("unknown",e,"Null value ignored");return}return("object"!=typeof t&&(t={data:t,time:Date.now()}),l[i]&&(l.lastTime=t.time,l.lastLevel=t.level,l.lastObj=t),r)?e:t},{autoDestroy:!0});l._destroy=function(e,t){let r=c(e,t);r&&"function"==typeof r.then&&r.then(t,t)},!1!==t.metadata&&(l[i]=!0,l.lastTime=0,l.lastLevel=0,l.lastObj=null);let f=e(l);if(f&&"function"==typeof f.catch)f.catch(e=>{l.destroy(e)}),f=null;else if(t.enablePipelining&&f)return s(l,f,{objectMode:!0});return l}},1787:(e,t,r)=>{"use strict";let i=r(8556)();e.exports=i;let o="PinoWarning";i.create(o,"PINODEP004","bindings.serializers is deprecated, use options.serializers option instead"),i.create(o,"PINODEP005","bindings.formatters is deprecated, use options.formatters option instead"),i.create(o,"PINODEP006","bindings.customLevels is deprecated, use options.customLevels option instead"),i.create(o,"PINODEP007","bindings.level is deprecated, use options.level option instead")},6441:(e,t,r)=>{"use strict";let i=r(8306),{lsCacheSym:o,levelValSym:s,useOnlyCustomLevelsSym:a,streamSym:u,formattersSym:c,hooksSym:l}=r(4941),{noop:f,genLog:h}=r(9952),p={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},d={fatal:e=>{let t=h(p.fatal,e);return function(...e){let r=this[u];if(t.call(this,...e),"function"==typeof r.flushSync)try{r.flushSync()}catch(e){}}},error:e=>h(p.error,e),warn:e=>h(p.warn,e),info:e=>h(p.info,e),debug:e=>h(p.debug,e),trace:e=>h(p.trace,e)},g=Object.keys(p).reduce((e,t)=>(e[p[t]]=t,e),{}),y=Object.keys(g).reduce((e,t)=>(e[t]=i('{"level":'+Number(t)),e),{});e.exports={initialLsCache:y,genLsCache:function(e){let t=e[c].level,{labels:r}=e.levels,i={};for(let e in r){let o=t(r[e],Number(e));i[e]=JSON.stringify(o).slice(0,-1)}return e[o]=i,e},levelMethods:d,getLevel:function(e){let{levels:t,levelVal:r}=this;return t&&t.labels?t.labels[r]:""},setLevel:function(e){let{labels:t,values:r}=this.levels;if("number"==typeof e){if(void 0===t[e])throw Error("unknown level value"+e);e=t[e]}if(void 0===r[e])throw Error("unknown level "+e);let i=this[s],o=this[s]=r[e],u=this[a],c=this[l].logMethod;for(let e in r){if(o>r[e]){this[e]=f;continue}this[e]=!function(e,t){if(t)return!1;switch(e){case"fatal":case"error":case"warn":case"info":case"debug":case"trace":return!0;default:return!1}}(e,u)?h(r[e],c):d[e](c)}this.emit("level-change",e,o,t[i],i)},isLevelEnabled:function(e){let{values:t}=this.levels,r=t[e];return void 0!==r&&r>=this[s]},mappings:function(e=null,t=!1){let r=e?Object.keys(e).reduce((t,r)=>(t[e[r]]=r,t),{}):null,i=Object.assign(Object.create(Object.prototype,{Infinity:{value:"silent"}}),t?null:g,r),o=Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),t?null:p,e);return{labels:i,values:o}},assertNoLevelCollisions:function(e,t){let{labels:r,values:i}=e;for(let e in t){if(e in i)throw Error("levels cannot be overridden");if(t[e]in r)throw Error("pre-existing level values cannot be used for new levels")}},assertDefaultLevelFound:function(e,t,r){if("number"==typeof e){let i=[].concat(Object.keys(t||{}).map(e=>t[e]),r?[]:Object.keys(g).map(e=>+e),1/0);if(!i.includes(e))throw Error(`default level:${e} must be included in custom levels`);return}let i=Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),r?null:p,t);if(!(e in i))throw Error(`default level:${e} must be included in custom levels`)}}},8508:(e,t,r)=>{"use strict";let{version:i}=r(8002);e.exports={version:i}},5092:(e,t,r)=>{"use strict";let{EventEmitter:i}=r(2361),o=r(4656),s=r(8306),a=r(1787),{lsCacheSym:u,levelValSym:c,setLevelSym:l,getLevelSym:f,chindingsSym:h,parsedChindingsSym:p,mixinSym:d,asJsonSym:g,writeSym:y,mixinMergeStrategySym:m,timeSym:b,timeSliceIndexSym:v,streamSym:w,serializersSym:_,formattersSym:S,useOnlyCustomLevelsSym:x,needsMetadataGsym:E,redactFmtSym:O,stringifySym:k,formatOptsSym:j,stringifiersSym:T}=r(4941),{getLevel:R,setLevel:P,isLevelEnabled:M,mappings:A,initialLsCache:L,genLsCache:N,assertNoLevelCollisions:C}=r(6441),{asChindings:D,asJson:I,buildFormatters:B,stringify:$}=r(9952),{version:q}=r(8508),U=r(5434),F={constructor:class{},child:function(e,t){if(!e)throw Error("missing bindings for child Pino");t=t||{};let r=this[_],i=this[S],o=Object.create(this);if(!0===e.hasOwnProperty("serializers")&&(a.emit("PINODEP004"),t.serializers=e.serializers),!0===e.hasOwnProperty("formatters")&&(a.emit("PINODEP005"),t.formatters=e.formatters),!0===e.hasOwnProperty("customLevels")&&(a.emit("PINODEP006"),t.customLevels=e.customLevels),!0===e.hasOwnProperty("level")&&(a.emit("PINODEP007"),t.level=e.level),!0===t.hasOwnProperty("serializers")){for(let e in o[_]=Object.create(null),r)o[_][e]=r[e];let e=Object.getOwnPropertySymbols(r);for(var s=0;se;function G(e,t){return Object.assign(t,e)}},5434:(e,t,r)=>{"use strict";let i=r(9775),{redactFmtSym:o,wildcardFirstSym:s}=r(4941),{rx:a,validator:u}=i,c=u({ERR_PATHS_MUST_BE_STRINGS:()=>"pino – redacted paths must be strings",ERR_INVALID_PATH:e=>`pino – redact paths array contains an invalid path (${e})`}),l="[Redacted]";e.exports=function(e,t){let{paths:r,censor:u}=function(e){if(Array.isArray(e))return c(e={paths:e,censor:l}),e;let{paths:t,censor:r=l,remove:i}=e;if(!1===Array.isArray(t))throw Error("pino – redact must contain an array of strings");return!0===i&&(r=void 0),c({paths:t,censor:r}),{paths:t,censor:r}}(e),f=r.reduce((e,t)=>{a.lastIndex=0;let r=a.exec(t),i=a.exec(t),o=void 0!==r[1]?r[1].replace(/^(?:"|'|`)(.*)(?:"|'|`)$/,"$1"):r[0];if("*"===o&&(o=s),null===i)return e[o]=null,e;if(null===e[o])return e;let{index:u}=i,c=`${t.substr(u,t.length-1)}`;return e[o]=e[o]||[],o!==s&&0===e[o].length&&e[o].push(...e[s]||[]),o===s&&Object.keys(e).forEach(function(t){e[t]&&e[t].push(c)}),e[o].push(c),e},{}),h={[o]:i({paths:r,censor:u,serialize:t,strict:!1})},p=(...e)=>"function"==typeof u?t(u(...e)):t(u);return[...Object.keys(f),...Object.getOwnPropertySymbols(f)].reduce((e,r)=>{if(null===f[r])e[r]=e=>p(e,[r]);else{let o="function"==typeof u?(e,t)=>u(e,[r,...t]):u;e[r]=i({paths:f[r],censor:o,serialize:t,strict:!1})}return e},h)}},4941:e=>{"use strict";let t=Symbol("pino.setLevel"),r=Symbol("pino.getLevel"),i=Symbol("pino.levelVal"),o=Symbol("pino.useLevelLabels"),s=Symbol("pino.useOnlyCustomLevels"),a=Symbol("pino.mixin"),u=Symbol("pino.lsCache"),c=Symbol("pino.chindings"),l=Symbol("pino.parsedChindings"),f=Symbol("pino.asJson"),h=Symbol("pino.write"),p=Symbol("pino.redactFmt"),d=Symbol("pino.time"),g=Symbol("pino.timeSliceIndex"),y=Symbol("pino.stream"),m=Symbol("pino.stringify"),b=Symbol("pino.stringifiers"),v=Symbol("pino.end"),w=Symbol("pino.formatOpts"),_=Symbol("pino.messageKey"),S=Symbol("pino.nestedKey"),x=Symbol("pino.mixinMergeStrategy"),E=Symbol("pino.wildcardFirst"),O=Symbol.for("pino.serializers"),k=Symbol.for("pino.formatters"),j=Symbol.for("pino.hooks"),T=Symbol.for("pino.metadata");e.exports={setLevelSym:t,getLevelSym:r,levelValSym:i,useLevelLabelsSym:o,mixinSym:a,lsCacheSym:u,chindingsSym:c,parsedChindingsSym:l,asJsonSym:f,writeSym:h,serializersSym:O,redactFmtSym:p,timeSym:d,timeSliceIndexSym:g,streamSym:y,stringifySym:m,stringifiersSym:b,endSym:v,formatOptsSym:w,messageKeySym:_,nestedKeySym:S,wildcardFirstSym:E,needsMetadataGsym:T,useOnlyCustomLevelsSym:s,formattersSym:k,hooksSym:j,mixinMergeStrategySym:x}},9649:e=>{"use strict";e.exports={nullTime:()=>"",epochTime:()=>`,"time":${Date.now()}`,unixTime:()=>`,"time":${Math.round(Date.now()/1e3)}`,isoTime:()=>`,"time":"${new Date(Date.now()).toISOString()}"`}},9952:(e,t,r)=>{"use strict";let i=r(4532),{mapHttpRequest:o,mapHttpResponse:s}=r(4186),a=r(4656),u=r(2988),{lsCacheSym:c,chindingsSym:l,parsedChindingsSym:f,writeSym:h,serializersSym:p,formatOptsSym:d,endSym:g,stringifiersSym:y,stringifySym:m,wildcardFirstSym:b,needsMetadataGsym:v,redactFmtSym:w,streamSym:_,nestedKeySym:S,formattersSym:x,messageKeySym:E}=r(4941);function O(){}function k(e,t,i,o){if(t&&"function"==typeof t)return j((t=t.bind(o))(e),i,e);try{let t=r(1686).prettyFactory||r(1686);return t.asMetaWrapper=j,j(t(e),i,e)}catch(e){if(e.message.startsWith("Cannot find module 'pino-pretty'"))throw Error("Missing `pino-pretty` module: `pino-pretty` must be installed separately");throw e}}function j(e,t,r){r=Object.assign({suppressFlushSyncWarning:!1},r);let i=!1;return{[v]:!0,lastLevel:0,lastMsg:null,lastObj:null,lastLogger:null,flushSync(){r.suppressFlushSyncWarning||i||(i=!0,R(t,this),t.write(e(Object.assign({level:40,msg:"pino.final with prettyPrint does not support flushing",time:Date.now()},this.chindings()))))},chindings(){let e=this.lastLogger,t=null;return e?(e.hasOwnProperty(f)?t=e[f]:(t=JSON.parse("{"+e[l].substr(1)+"}"),e[f]=t),t):null},write(r){let i=this.lastLogger,o=this.chindings(),s=this.lastTime;s=s.match(/^\d+/)?parseInt(s):s.slice(1,-1);let a=this.lastObj,u=this.lastMsg,c=i[x],l=c.log?c.log(a):a,f=i[E];u&&l&&!l.hasOwnProperty(f)&&(l[f]=u);let h=Object.assign({level:this.lastLevel,time:s},l,null),d=i[p],g=Object.keys(d);for(var m=0;m100)return JSON.stringify(e);for(var a=0;a=32;a++)(34===(o=e.charCodeAt(a))||92===o)&&(t+=e.slice(r,a)+"\\",r=a,i=!0);return i?t+=e.slice(r):t=e,o<32?JSON.stringify(e):'"'+t+'"'})(o);break;default:o=(e||s)(o)}if(void 0===o)continue;w+=',"'+t+'":'+o}return w+u},genLog:function(e,t){if(!t)return r;return function(...i){t.call(this,i,r,e)};function r(t,...a){if("object"==typeof t){let r,u=t;null!==t&&(t.method&&t.headers&&t.socket?t=o(t):"function"==typeof t.setHeader&&(t=s(t))),this[S]&&(t={[this[S]]:t}),null===u&&0===a.length?r=[null]:(u=a.shift(),r=a),this[h](t,i(u,r,this[d]),e)}else this[h](null,i(t,a,this[d]),e)}},createArgsNormalizer:function(e){return function(t,r={},i){var o;if("string"==typeof r?(i=T({dest:r,sync:!0}),r={}):"string"==typeof i?i=T({dest:i,sync:!0}):(r instanceof a||r.writable||r._writableState)&&(i=r,r=null),"extreme"in(r=Object.assign({},e,r)))throw Error("The extreme option has been removed, use pino.destination({ sync: false }) instead");if("onTerminated"in r)throw Error("The onTerminated option has been removed, use pino.final instead");"changeLevelName"in r&&(process.emitWarning("The changeLevelName option is deprecated and will be removed in v7. Use levelKey instead.",{code:"changeLevelName_deprecation"}),r.levelKey=r.changeLevelName,delete r.changeLevelName);let{enabled:s,prettyPrint:u,prettifier:c,messageKey:l}=r;if(!1===s&&(r.level="silent"),(i=i||process.stdout)===process.stdout&&i.fd>=0&&!((o=i).write!==o.constructor.prototype.write)&&(i=T({fd:i.fd,sync:!0})),u){let e=Object.assign({messageKey:l},u);i=k(e,c,i,t)}return{opts:r,stream:i}}},final:function(e,t){if(void 0===e||"function"!=typeof e.child)throw Error("expected a pino logger instance");let r=void 0!==t;if(r&&"function"!=typeof t)throw Error("if supplied, the handler parameter should be a function");let i=e[_];if("function"!=typeof i.flushSync)throw Error("final requires a stream that has a flushSync method, such as pino.destination");let o=new Proxy(e,{get:(e,t)=>t in e.levels.values?(...r)=>{e[t](...r),i.flushSync()}:e[t]});return r?(e=null,...r)=>{try{i.flushSync()}catch(e){}return t(e,o,...r)}:o},stringify:function(e){try{return JSON.stringify(e)}catch(t){return u(e)}},buildFormatters:function(e,t,r){return{level:e,bindings:t,log:r}}}},8167:(e,t,r)=>{"use strict";let i=r(2037),o=r(4186),s=r(5434),a=r(9649),u=r(5092),c=r(4941),{assertDefaultLevelFound:l,mappings:f,genLsCache:h}=r(6441),{createArgsNormalizer:p,asChindings:d,final:g,stringify:y,buildSafeSonicBoom:m,buildFormatters:b,noop:v}=r(9952),{version:w}=r(8508),{mixinMergeStrategySym:_}=r(4941),{chindingsSym:S,redactFmtSym:x,serializersSym:E,timeSym:O,timeSliceIndexSym:k,streamSym:j,stringifySym:T,stringifiersSym:R,setLevelSym:P,endSym:M,formatOptsSym:A,messageKeySym:L,nestedKeySym:N,mixinSym:C,useOnlyCustomLevelsSym:D,formattersSym:I,hooksSym:B}=c,{epochTime:$,nullTime:q}=a,{pid:U}=process,F=i.hostname(),W=o.err,G={level:"info",messageKey:"msg",nestedKey:null,enabled:!0,prettyPrint:!1,base:{pid:U,hostname:F},serializers:Object.assign(Object.create(null),{err:W}),formatters:Object.assign(Object.create(null),{bindings:e=>e,level:(e,t)=>({level:t})}),hooks:{logMethod:void 0},timestamp:$,name:void 0,redact:null,customLevels:null,levelKey:void 0,useOnlyCustomLevels:!1},H=p(G),z=Object.assign(Object.create(null),o);function J(...e){var t,r;let i={},{opts:o,stream:a}=H(i,...e),{redact:c,crlf:p,serializers:g,timestamp:m,messageKey:w,nestedKey:U,base:F,name:W,level:z,customLevels:K,useLevelLabels:Y,changeLevelName:Q,levelKey:X,mixin:Z,mixinMergeStrategy:ee,useOnlyCustomLevels:et,formatters:er,hooks:en}=o,ei=b(er.level,er.bindings,er.log);Y&&!(Q||X)?(process.emitWarning("useLevelLabels is deprecated, use the formatters.level option instead","Warning","PINODEP001"),ei.level=V):(Q||X)&&!Y?(process.emitWarning("changeLevelName and levelKey are deprecated, use the formatters.level option instead","Warning","PINODEP002"),ei.level=(t=Q||X,function(e,r){return{[t]:r}})):(Q||X)&&Y&&(process.emitWarning("useLevelLabels is deprecated, use the formatters.level option instead","Warning","PINODEP001"),process.emitWarning("changeLevelName and levelKey are deprecated, use the formatters.level option instead","Warning","PINODEP002"),ei.level=(r=Q||X,function(e,t){return{[r]:e}})),g[Symbol.for("pino.*")]&&(process.emitWarning("The pino.* serializer is deprecated, use the formatters.log options instead","Warning","PINODEP003"),ei.log=g[Symbol.for("pino.*")]),ei.bindings||(ei.bindings=G.formatters.bindings),ei.level||(ei.level=G.formatters.level);let eo=c?s(c,y):{},es=c?{stringify:eo[x]}:{stringify:y},ea=d.bind(null,{[S]:"",[E]:g,[R]:eo,[T]:y,[I]:ei}),eu="";null!==F&&(eu=ea(void 0===W?F:Object.assign({},F,{name:W})));let ec=m instanceof Function?m:m?$:q,el=ec().indexOf(":")+1;if(et&&!K)throw Error("customLevels is required if useOnlyCustomLevels is set true");if(Z&&"function"!=typeof Z)throw Error(`Unknown mixin type "${typeof Z}" - expected "function"`);l(z,K,et);let ef=f(K,et);return Object.assign(i,{levels:ef,[D]:et,[j]:a,[O]:ec,[k]:el,[T]:y,[R]:eo,[M]:"}"+(p?"\r\n":"\n"),[A]:es,[L]:w,[N]:U,[E]:g,[C]:Z,[_]:ee,[S]:eu,[I]:ei,[B]:en,silent:v}),Object.setPrototypeOf(i,u()),h(i),i[P](z),i}function V(e,t){return{level:e}}e.exports=J,e.exports.extreme=(e=process.stdout.fd)=>(process.emitWarning("The pino.extreme() option is deprecated and will be removed in v7. Use pino.destination({ sync: false }) instead.",{code:"extreme_deprecation"}),m({dest:e,minLength:4096,sync:!1})),e.exports.destination=(e=process.stdout.fd)=>"object"==typeof e?(e.dest=e.dest||process.stdout.fd,m(e)):m({dest:e,minLength:0,sync:!0}),e.exports.final=g,e.exports.levels=f(),e.exports.stdSerializers=z,e.exports.stdTimeFunctions=Object.assign({},a),e.exports.symbols=c,e.exports.version=w,e.exports.default=J,e.exports.pino=J},4186:(e,t,r)=>{"use strict";let i=r(7657),o=r(6836),s=r(6364);e.exports={err:i,mapHttpRequest:o.mapHttpRequest,mapHttpResponse:s.mapHttpResponse,req:o.reqSerializer,res:s.resSerializer,wrapErrorSerializer:function(e){return e===i?e:function(t){return e(i(t))}},wrapRequestSerializer:function(e){return e===o.reqSerializer?e:function(t){return e(o.reqSerializer(t))}},wrapResponseSerializer:function(e){return e===s.resSerializer?e:function(t){return e(s.resSerializer(t))}}}},7657:e=>{"use strict";e.exports=function e(i){if(!(i instanceof Error))return i;i[r]=void 0;let s=Object.create(o);for(let o in s.type="[object Function]"===t.call(i.constructor)?i.constructor.name:i.name,s.message=i.message,s.stack=i.stack,i)if(void 0===s[o]){let t=i[o];t instanceof Error?t.hasOwnProperty(r)||(s[o]=e(t)):s[o]=t}return delete i[r],s.raw=i,s};let{toString:t}=Object.prototype,r=Symbol("circular-ref-tag"),i=Symbol("pino-raw-err-ref"),o=Object.create({},{type:{enumerable:!0,writable:!0,value:void 0},message:{enumerable:!0,writable:!0,value:void 0},stack:{enumerable:!0,writable:!0,value:void 0},raw:{enumerable:!1,get:function(){return this[i]},set:function(e){this[i]=e}}});Object.defineProperty(o,i,{writable:!0,value:{}})},6836:e=>{"use strict";e.exports={mapHttpRequest:function(e){return{req:i(e)}},reqSerializer:i};let t=Symbol("pino-raw-req-ref"),r=Object.create({},{id:{enumerable:!0,writable:!0,value:""},method:{enumerable:!0,writable:!0,value:""},url:{enumerable:!0,writable:!0,value:""},query:{enumerable:!0,writable:!0,value:""},params:{enumerable:!0,writable:!0,value:""},headers:{enumerable:!0,writable:!0,value:{}},remoteAddress:{enumerable:!0,writable:!0,value:""},remotePort:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[t]},set:function(e){this[t]=e}}});function i(e){let t=e.info||e.socket,i=Object.create(r);return i.id="function"==typeof e.id?e.id():e.id||(e.info?e.info.id:void 0),i.method=e.method,e.originalUrl?(i.url=e.originalUrl,i.query=e.query,i.params=e.params):i.url=e.path||(e.url?e.url.path||e.url:void 0),i.headers=e.headers,i.remoteAddress=t&&t.remoteAddress,i.remotePort=t&&t.remotePort,i.raw=e.raw||e,i}Object.defineProperty(r,t,{writable:!0,value:{}})},6364:e=>{"use strict";e.exports={mapHttpResponse:function(e){return{res:i(e)}},resSerializer:i};let t=Symbol("pino-raw-res-ref"),r=Object.create({},{statusCode:{enumerable:!0,writable:!0,value:0},headers:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[t]},set:function(e){this[t]=e}}});function i(e){let t=Object.create(r);return t.statusCode=e.statusCode,t.headers=e.getHeaders?e.getHeaders():e._headers,t.raw=e,t}Object.defineProperty(r,t,{writable:!0,value:{}})},8556:(e,t,r)=>{"use strict";let{format:i}=r(3837);e.exports=function(){let e={},t=new Map;return{create:function(r,o,s){if(!r)throw Error("Warning name must not be empty");if(!o)throw Error("Warning code must not be empty");if(!s)throw Error("Warning message must not be empty");if(void 0!==e[o=o.toUpperCase()])throw Error(`The code '${o}' already exist`);return t.set(o,!1),e[o]=function(e,t,a){return{code:o,name:r,message:e&&t&&a?i(s,e,t,a):e&&t?i(s,e,t):e?i(s,e):s}},e[o]},emit:function(r,i,o,s){if(void 0===e[r])throw Error(`The code '${r}' does not exist`);if(!0===t.get(r))return;t.set(r,!0);let a=e[r](i,o,s);process.emitWarning(a.message,a.name,a.code)},emitted:t}}},2181:(e,t,r)=>{var i=r(5962),o=r(8839),s=r(7147),a=function(){},u=/^v?\.0/.test(process.version),c=function(e){return"function"==typeof e},l=function(e,t,r,l){l=i(l);var f=!1;e.on("close",function(){f=!0}),o(e,{readable:t,writable:r},function(e){if(e)return l(e);f=!0,l()});var h=!1;return function(t){if(!f&&!h){if(h=!0,u&&s&&(e instanceof(s.ReadStream||a)||e instanceof(s.WriteStream||a))&&c(e.close))return e.close(a);if(e.setHeader&&c(e.abort))return e.abort();if(c(e.destroy))return e.destroy();l(t||Error("stream was destroyed"))}}},f=function(e){e()},h=function(e,t){return e.pipe(t)};e.exports=function(){var e,t=Array.prototype.slice.call(arguments),r=c(t[t.length-1]||a)&&t.pop()||a;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw Error("pump requires two streams per minimum");var i=t.map(function(o,s){var a=s0,function(t){e||(e=t),t&&i.forEach(f),a||(i.forEach(f),r(e))})});return t.reduce(h)}},4532:e=>{"use strict";function t(e){try{return JSON.stringify(e)}catch(e){return'"[Circular]"'}}e.exports=function(e,r,i){var o=i&&i.stringify||t;if("object"==typeof e&&null!==e){var s=r.length+1;if(1===s)return e;var a=Array(s);a[0]=o(e);for(var u=1;u-1?h:0,e.charCodeAt(d+1)){case 100:case 102:if(f>=c||null==r[f])break;h=c||null==r[f])break;h=c||void 0===r[f])break;h",h=d+2,d++;break}l+=o(r[f]),h=d+2,d++;break;case 115:if(f>=c)break;h{"use strict";let t={};function r(e,r,i){i||(i=Error);class o extends i{constructor(e,t,i){super("string"==typeof r?r:r(e,t,i))}}o.prototype.name=i.name,o.prototype.code=e,t[e]=o}function i(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){var o,s,a,u,c;let l,f;if("string"==typeof t&&(o="not ",t.substr(!s||s<0?0:+s,o.length)===o)?(l="must not be",t=t.replace(/^not /,"")):l="must be",a=" argument",(void 0===u||u>e.length)&&(u=e.length),e.substring(u-a.length,u)===a)f=`The ${e} ${l} ${i(t,"type")}`;else{let r=("number"!=typeof c&&(c=0),c+1>e.length||-1===e.indexOf(".",c))?"argument":"property";f=`The "${e}" ${r} ${l} ${i(t,"type")}`}return f+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},673:(e,t,r)=>{"use strict";var i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var o=r(5006),s=r(8719);r(1828)(l,o);for(var a=i(s.prototype),u=0;u{"use strict";e.exports=o;var i=r(8597);function o(e){if(!(this instanceof o))return new o(e);i.call(this,e)}r(1828)(o,i),o.prototype._transform=function(e,t,r){r(null,e)}},5006:(e,t,r)=>{"use strict";e.exports=O,O.ReadableState=E,r(2361).EventEmitter;var i,o,s,a,u,c=function(e,t){return e.listeners(t).length},l=r(1829),f=r(4300).Buffer,h=global.Uint8Array||function(){},p=r(3837);o=p&&p.debuglog?p.debuglog("stream"):function(){};var d=r(4506),g=r(3390),y=r(1111).getHighWaterMark,m=r(7638).q,b=m.ERR_INVALID_ARG_TYPE,v=m.ERR_STREAM_PUSH_AFTER_EOF,w=m.ERR_METHOD_NOT_IMPLEMENTED,_=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(1828)(O,l);var S=g.errorOrDestroy,x=["error","close","destroy","pause","resume"];function E(e,t,o){i=i||r(673),e=e||{},"boolean"!=typeof o&&(o=t instanceof i),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=y(this,e,"readableHighWaterMark",o),this.buffer=new d,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=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=r(7361).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function O(e){if(i=i||r(673),!(this instanceof O))return new O(e);var t=this instanceof i;this._readableState=new E(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),l.call(this)}function k(e,t,r,i,s){o("readableAddChunk",t);var a,u,c,l,p,d=e._readableState;if(null===t)d.reading=!1,function(e,t){if(o("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?R(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,P(e)))}}(e,d);else{if(s||(a=d,u=t,f.isBuffer(u)||u instanceof h||"string"==typeof u||void 0===u||a.objectMode||(c=new b("chunk",["string","Buffer","Uint8Array"],u)),p=c),p)S(e,p);else if(d.objectMode||t&&t.length>0){if("string"==typeof t||d.objectMode||Object.getPrototypeOf(t)===f.prototype||(l=t,t=f.from(l)),i)d.endEmitted?S(e,new _):j(e,d,t,!0);else if(d.ended)S(e,new v);else{if(d.destroyed)return!1;d.reading=!1,d.decoder&&!r?(t=d.decoder.write(t),d.objectMode||0!==t.length?j(e,d,t,!1):M(e,d)):j(e,d,t,!1)}}else i||(d.reading=!1,M(e,d))}return!d.ended&&(d.lengtht.highWaterMark){var r;t.highWaterMark=((r=e)>=1073741824?r=1073741824:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)}return e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)}function R(e){var t=e._readableState;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(P,e))}function P(e){var t=e._readableState;o("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,D(e)}function M(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(A,e,t))}function A(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function N(e){o("readable nexttick read 0"),e.read(0)}function C(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),D(e),t.flowing&&!t.reading&&e.read(0)}function D(e){var t=e._readableState;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function I(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function B(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick($,t,e))}function $(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function q(e,t){for(var r=0,i=e.length;r=r.highWaterMark:r.length>0)||r.ended))return o("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?B(this):R(this),null;if(0===(e=T(e,r))&&r.ended)return 0===r.length&&B(this),null;var s=r.needReadable;return o("need readable",s),(0===r.length||r.length-e0?I(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),i!==e&&r.ended&&B(this)),null!==t&&this.emit("data",t),t},O.prototype._read=function(e){S(this,new w("_read()"))},O.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,o("pipe count=%d opts=%j",i.pipesCount,t);var s=t&&!1===t.end||e===process.stdout||e===process.stderr?g:a;function a(){o("onend"),e.end()}i.endEmitted?process.nextTick(s):r.once("end",s),e.on("unpipe",function t(s,c){o("onunpipe"),s===r&&c&&!1===c.hasUnpiped&&(c.hasUnpiped=!0,o("cleanup"),e.removeListener("close",p),e.removeListener("finish",d),e.removeListener("drain",u),e.removeListener("error",h),e.removeListener("unpipe",t),r.removeListener("end",a),r.removeListener("end",g),r.removeListener("data",f),l=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u())});var u=function(){var e=r._readableState;o("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&c(r,"data")&&(e.flowing=!0,D(r))};e.on("drain",u);var l=!1;function f(t){o("ondata");var s=e.write(t);o("dest.write",s),!1===s&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==q(i.pipes,e))&&!l&&(o("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function h(t){o("onerror",t),g(),e.removeListener("error",h),0===c(e,"error")&&S(e,t)}function p(){e.removeListener("finish",d),g()}function d(){o("onfinish"),e.removeListener("close",p),g()}function g(){o("unpipe"),r.unpipe(e)}return r.on("data",f),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",h),e.once("close",p),e.once("finish",d),e.emit("pipe",r),i.flowing||(o("pipe resume"),r.resume()),e},O.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var i=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s0,!1!==i.flowing&&this.resume()):"readable"!==e||i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,o("on readable",i.length,i.reading),i.length?R(this):i.reading||process.nextTick(N,this)),r},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(e,t){var r=l.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(L,this),r},O.prototype.removeAllListeners=function(e){var t=l.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&process.nextTick(L,this),t},O.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(C,this,e))),e.paused=!1,this},O.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;for(var s in e.on("end",function(){if(o("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(s){o("wrapped data"),r.decoder&&(s=r.decoder.write(s)),(!r.objectMode||null!=s)&&(r.objectMode||s&&s.length)&&(t.push(s)||(i=!0,e.pause()))}),e)void 0===this[s]&&"function"==typeof e[s]&&(this[s]=function(t){return function(){return e[t].apply(e,arguments)}}(s));for(var a=0;a{"use strict";e.exports=f;var i=r(7638).q,o=i.ERR_METHOD_NOT_IMPLEMENTED,s=i.ERR_MULTIPLE_CALLBACK,a=i.ERR_TRANSFORM_ALREADY_TRANSFORMING,u=i.ERR_TRANSFORM_WITH_LENGTH_0,c=r(673);function l(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(null===i)return this.emit("error",new s);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),i(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length{"use strict";function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){(function(e,t,r){var i=e.entry;for(e.entry=null;i;){var o=i.callback;t.pendingcb--,o(void 0),i=i.next}t.corkedRequestsFree.next=e})(t,e)}}e.exports=O,O.WritableState=E;var o,s,a={deprecate:r(4484)},u=r(1829),c=r(4300).Buffer,l=global.Uint8Array||function(){},f=r(3390),h=r(1111).getHighWaterMark,p=r(7638).q,d=p.ERR_INVALID_ARG_TYPE,g=p.ERR_METHOD_NOT_IMPLEMENTED,y=p.ERR_MULTIPLE_CALLBACK,m=p.ERR_STREAM_CANNOT_PIPE,b=p.ERR_STREAM_DESTROYED,v=p.ERR_STREAM_NULL_VALUES,w=p.ERR_STREAM_WRITE_AFTER_END,_=p.ERR_UNKNOWN_ENCODING,S=f.errorOrDestroy;function x(){}function E(e,t,s){o=o||r(673),e=e||{},"boolean"!=typeof s&&(s=t instanceof o),this.objectMode=!!e.objectMode,s&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=h(this,e,"writableHighWaterMark",s),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){(function(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if("function"!=typeof o)throw new y;if(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,t)--r.pendingcb,i?(process.nextTick(o,t),process.nextTick(M,e,r),e._writableState.errorEmitted=!0,S(e,t)):(o(t),e._writableState.errorEmitted=!0,S(e,t),M(e,r));else{var s=R(r)||e.destroyed;s||r.corked||r.bufferProcessing||!r.bufferedRequest||T(e,r),i?process.nextTick(j,e,r,s,o):j(e,r,s,o)}})(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function O(e){var t=this instanceof(o=o||r(673));if(!t&&!s.call(O,this))return new O(e);this._writableState=new E(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function k(e,t,r,i,o,s,a){t.writelen=i,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new b("write")):r?e._writev(o,t.onwrite):e._write(o,s,t.onwrite),t.sync=!1}function j(e,t,r,i){r||0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain")),t.pendingcb--,i(),M(e,t)}function T(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var o=Array(t.bufferedRequestCount),s=t.corkedRequestsFree;s.entry=r;for(var a=0,u=!0;r;)o[a]=r,r.isBuf||(u=!1),r=r.next,a+=1;o.allBuffers=u,k(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,l=r.encoding,f=r.callback,h=t.objectMode?1:c.length;if(k(e,t,!1,h,c,l,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function R(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function P(e,t){e._final(function(r){t.pendingcb--,r&&S(e,r),t.prefinished=!0,e.emit("prefinish"),M(e,t)})}function M(e,t){var r=R(t);if(r&&(t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,process.nextTick(P,e,t))),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return r}r(1828)(O,u),E.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(E.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(O,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===O&&e&&e._writableState instanceof E}})):s=function(e){return e instanceof this},O.prototype.pipe=function(){S(this,new m)},O.prototype.write=function(e,t,r){var i,o,s,a,u,f,h,p=this._writableState,g=!1,y=!p.objectMode&&(i=e,c.isBuffer(i)||i instanceof l);return y&&!c.isBuffer(e)&&(o=e,e=c.from(o)),("function"==typeof t&&(r=t,t=null),y?t="buffer":t||(t=p.defaultEncoding),"function"!=typeof r&&(r=x),p.ending)?(s=r,S(this,a=new w),process.nextTick(s,a)):(y||(u=e,f=r,null===u?h=new v:"string"==typeof u||p.objectMode||(h=new d("chunk",["string","Buffer"],u)),!h||(S(this,h),process.nextTick(f,h),0)))&&(p.pendingcb++,g=function(e,t,r,i,o,s){if(!r){var a,u,l=(a=i,u=o,t.objectMode||!1===t.decodeStrings||"string"!=typeof a||(a=c.from(a,u)),a);i!==l&&(r=!0,o="buffer",i=l)}var f=t.objectMode?1:i.length;t.length+=f;var h=t.length-1))throw new _(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(e,t,r){r(new g("_write()"))},O.prototype._writev=null,O.prototype.end=function(e,t,r){var i,o=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),o.corked&&(o.corked=1,this.uncork()),o.ending||(i=r,o.ending=!0,M(this,o),i&&(o.finished?process.nextTick(i):this.once("finish",i)),o.ended=!0,this.writable=!1),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),O.prototype.destroy=f.destroy,O.prototype._undestroy=f.undestroy,O.prototype._destroy=function(e,t){t(e)}},8187:(e,t,r)=>{"use strict";function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o,s=r(2426),a=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),f=Symbol("lastPromise"),h=Symbol("handlePromise"),p=Symbol("stream");function d(e,t){return{value:e,done:t}}function g(e){var t=e[a];if(null!==t){var r=e[p].read();null!==r&&(e[f]=null,e[a]=null,e[u]=null,t(d(r,!1)))}}function y(e){process.nextTick(g,e)}var m=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((i(o={get stream(){return this[p]},next:function(){var e,t,r=this,i=this[c];if(null!==i)return Promise.reject(i);if(this[l])return Promise.resolve(d(void 0,!0));if(this[p].destroyed)return new Promise(function(e,t){process.nextTick(function(){r[c]?t(r[c]):e(d(void 0,!0))})});var o=this[f];if(o)t=new Promise((e=this,function(t,r){o.then(function(){if(e[l]){t(d(void 0,!0));return}e[h](t,r)},r)}));else{var s=this[p].read();if(null!==s)return Promise.resolve(d(s,!1));t=new Promise(this[h])}return this[f]=t,t}},Symbol.asyncIterator,function(){return this}),i(o,"return",function(){var e=this;return new Promise(function(t,r){e[p].destroy(null,function(e){if(e){r(e);return}t(d(void 0,!0))})})}),o),m);e.exports=function(e){var t,r=Object.create(b,(i(t={},p,{value:e,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,c,{value:null,writable:!0}),i(t,l,{value:e._readableState.endEmitted,writable:!0}),i(t,h,{value:function(e,t){var i=r[p].read();i?(r[f]=null,r[a]=null,r[u]=null,e(d(i,!1))):(r[a]=e,r[u]=t)},writable:!0}),t));return r[f]=null,s(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];null!==t&&(r[f]=null,r[a]=null,r[u]=null,t(e)),r[c]=e;return}var i=r[a];null!==i&&(r[f]=null,r[a]=null,r[u]=null,i(d(void 0,!0))),r[l]=!0}),e.on("readable",y.bind(null,r)),r}},4506:(e,t,r)=>{"use strict";function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function o(e,t){for(var r=0;r0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return s.alloc(0);for(var t,r,i=s.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,r=a,s.prototype.copy.call(t,i,r),a+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var r;return eo.length?o.length:e;if(s===o.length?i+=o:i+=o.slice(0,e),0==(e-=s)){s===o.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=o.slice(s));break}++r}return this.length-=r,i}},{key:"_getBuffer",value:function(e){var t=s.allocUnsafe(e),r=this.head,i=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,a),0==(e-=a)){a===o.length?(++i,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(a));break}++i}return this.length-=i,t}},{key:u,value:function(e,t){return a(this,function(e){for(var t=1;t{"use strict";function t(e,t){i(e,t),r(e)}function r(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,o){var s=this,a=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return a||u?o?o(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(i,this,e)):process.nextTick(i,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!o&&e?s._writableState?s._writableState.errorEmitted?process.nextTick(r,s):(s._writableState.errorEmitted=!0,process.nextTick(t,s,e)):process.nextTick(t,s,e):o?(process.nextTick(r,s),o(e)):process.nextTick(r,s)})),this},undestroy:function(){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)},errorOrDestroy:function(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}}},2426:(e,t,r)=>{"use strict";var i=r(7638).q.ERR_STREAM_PREMATURE_CLOSE;function o(){}e.exports=function e(t,r,s){if("function"==typeof r)return e(t,null,r);r||(r={}),a=s||o,u=!1,s=function(){if(!u){u=!0;for(var e=arguments.length,t=Array(e),r=0;r{"use strict";function i(e,t,r,i,o,s,a){try{var u=e[s](a),c=u.value}catch(e){r(e);return}u.done?t(c):Promise.resolve(c).then(i,o)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}var s=r(7638).q.ERR_INVALID_ARG_TYPE;e.exports=function(e,t,r){if(t&&"function"==typeof t.next)a=t;else if(t&&t[Symbol.asyncIterator])a=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])a=t[Symbol.iterator]();else throw new s("iterable",["Iterable"],t);var a,u=new e(function(e){for(var t=1;t{"use strict";var i,o=r(7638).q,s=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function u(e){if(e)throw e}function c(e){e()}function l(e,t){return e.pipe(t)}e.exports=function(){for(var e,t,o=arguments.length,f=Array(o),h=0;h0},function(e){if(e)return s(e);h=!0,s()}),g=!1,function(t){if(!h&&!g){if(g=!0,e.setHeader&&"function"==typeof e.abort)return e.abort();if("function"==typeof e.destroy)return e.destroy();s(t||new a("pipe"))}}});return f.reduce(l)}},1111:(e,t,r)=>{"use strict";var i=r(7638).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,o){var s=null!=t.highWaterMark?t.highWaterMark:o?t[r]:null;if(null!=s){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var a=o?r:"highWaterMark";throw new i(a,s)}return Math.floor(s)}return e.objectMode?16:16384}}},1829:(e,t,r)=>{e.exports=r(2781)},8118:(e,t,r)=>{var i=r(2781);"disable"===process.env.READABLE_STREAM&&i?(e.exports=i.Readable,Object.assign(e.exports,i),e.exports.Stream=i):((t=e.exports=r(5006)).Stream=i||t,t.Readable=t,t.Writable=r(8719),t.Duplex=r(673),t.Transform=r(8597),t.PassThrough=r(4343),t.finished=r(2426),t.pipeline=r(2970))},3268:e=>{"use strict";function t(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}e.exports=function(e){if((e=e||{}).circles)return function(e){var r=[],i=[];return e.proto?function e(s){if("object"!=typeof s||null===s)return s;if(s instanceof Date)return new Date(s);if(Array.isArray(s))return o(s,e);if(s instanceof Map)return new Map(o(Array.from(s),e));if(s instanceof Set)return new Set(o(Array.from(s),e));var a={};for(var u in r.push(s),i.push(a),s){var c=s[u];if("object"!=typeof c||null===c)a[u]=c;else if(c instanceof Date)a[u]=new Date(c);else if(c instanceof Map)a[u]=new Map(o(Array.from(c),e));else if(c instanceof Set)a[u]=new Set(o(Array.from(c),e));else if(ArrayBuffer.isView(c))a[u]=t(c);else{var l=r.indexOf(c);-1!==l?a[u]=i[l]:a[u]=e(c)}}return r.pop(),i.pop(),a}:function e(s){if("object"!=typeof s||null===s)return s;if(s instanceof Date)return new Date(s);if(Array.isArray(s))return o(s,e);if(s instanceof Map)return new Map(o(Array.from(s),e));if(s instanceof Set)return new Set(o(Array.from(s),e));var a={};for(var u in r.push(s),i.push(a),s)if(!1!==Object.hasOwnProperty.call(s,u)){var c=s[u];if("object"!=typeof c||null===c)a[u]=c;else if(c instanceof Date)a[u]=new Date(c);else if(c instanceof Map)a[u]=new Map(o(Array.from(c),e));else if(c instanceof Set)a[u]=new Set(o(Array.from(c),e));else if(ArrayBuffer.isView(c))a[u]=t(c);else{var l=r.indexOf(c);-1!==l?a[u]=i[l]:a[u]=e(c)}}return r.pop(),i.pop(),a};function o(e,o){for(var s=Object.keys(e),a=Array(s.length),u=0;u{/*! safe-buffer. MIT License. Feross Aboukhadijeh */var i=r(4300),o=i.Buffer;function s(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return o(e,t,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=i:(s(i,t),t.Buffer=a),a.prototype=Object.create(o.prototype),s(o,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return o(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var i=o(e);return void 0!==t?"string"==typeof r?i.fill(t,r):i.fill(t):i.fill(0),i},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i.SlowBuffer(e)}},9316:e=>{"use strict";let t="undefined"!=typeof Buffer,r=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,i=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function o(e,o,a){null==a&&(null!==o&&"object"==typeof o?(a=o,o=void 0):a={});let u=a.protoAction||"error",c=a.constructorAction||"error";t&&Buffer.isBuffer(e)&&(e=e.toString()),e&&65279===e.charCodeAt(0)&&(e=e.slice(1));let l=JSON.parse(e,o);if("ignore"===u&&"ignore"===c||null===l||"object"!=typeof l)return l;if("ignore"!==u&&"ignore"!==c){if(!1===r.test(e)&&!1===i.test(e))return l}else if("ignore"!==u&&"ignore"===c){if(!1===r.test(e))return l}else if(!1===i.test(e))return l;return s(l,{protoAction:u,constructorAction:c}),l}function s(e,{protoAction:t="error",constructorAction:r="error"}={}){let i=[e];for(;i.length;){let e=i;for(let o of(i=[],e)){if("ignore"!==t&&Object.prototype.hasOwnProperty.call(o,"__proto__")){if("error"===t)throw SyntaxError("Object contains forbidden prototype property");delete o.__proto__}if("ignore"!==r&&Object.prototype.hasOwnProperty.call(o,"constructor")&&Object.prototype.hasOwnProperty.call(o.constructor,"prototype")){if("error"===r)throw SyntaxError("Object contains forbidden prototype property");delete o.constructor}for(let e in o){let t=o[e];t&&"object"==typeof t&&i.push(o[e])}}}}e.exports={parse:o,scan:s,safeParse:function(e,t){try{return o(e,t)}catch(e){return null}}}},4656:(e,t,r)=>{"use strict";let i=r(7147),o=r(2361),s=r(8306),a=r(3837).inherits,u=r(160);function c(e,t){function r(r,i){if(r){t._reopening=!1,t._writing=!1,t._opening=!1,t.sync?process.nextTick(()=>{t.listenerCount("error")>0&&t.emit("error",r)}):t.emit("error",r);return}if(t.fd=i,t.file=e,t._reopening=!1,t._opening=!1,t._writing=!1,t.sync?process.nextTick(()=>t.emit("ready")):t.emit("ready"),t._reopening)return;let o=t._buf.length;o>0&&o>t.minLength&&!t.destroyed&&h(t)}if(t._opening=!0,t._writing=!0,t._asyncDrainScheduled=!1,t.sync)try{let t=i.openSync(e,"a");r(null,t)}catch(e){throw r(e),e}else i.open(e,"a",r)}function l(e){if(!(this instanceof l))return new l(e);let{fd:t,dest:r,minLength:o,sync:s}=e||{};if(t=t||r,this._buf="",this.fd=-1,this._writing=!1,this._writingBuf="",this._ending=!1,this._reopening=!1,this._asyncDrainScheduled=!1,this.file=null,this.destroyed=!1,this.sync=s||!1,this.minLength=o||0,"number"==typeof t)this.fd=t,process.nextTick(()=>this.emit("ready"));else if("string"==typeof t)c(t,this);else throw Error("SonicBoom supports only file descriptors and files");this.release=(e,t)=>{if(e){if("EAGAIN"===e.code){if(this.sync)try{u(100),this.release(void 0,0)}catch(e){this.release(e)}else setTimeout(()=>{i.write(this.fd,this._writingBuf,"utf8",this.release)},100)}else this._buf=this._writingBuf+this._buf,this._writingBuf="",this._writing=!1,this.emit("error",e);return}if(this._writingBuf.length!==t){if(this._writingBuf=this._writingBuf.slice(t),this.sync)try{do t=i.writeSync(this.fd,this._writingBuf,"utf8"),this._writingBuf=this._writingBuf.slice(t);while(0!==this._writingBuf.length)}catch(e){this.release(e);return}else{i.write(this.fd,this._writingBuf,"utf8",this.release);return}}if(this._writingBuf="",this.destroyed)return;let r=this._buf.length;this._reopening?(this._writing=!1,this._reopening=!1,this.reopen()):r>0&&r>this.minLength?h(this):this._ending?r>0?h(this):(this._writing=!1,p(this)):(this._writing=!1,this.sync?this._asyncDrainScheduled||(this._asyncDrainScheduled=!0,process.nextTick(f,this)):this.emit("drain"))},this.on("newListener",function(e){"drain"===e&&(this._asyncDrainScheduled=!1)})}function f(e){let t=e.listenerCount("drain")>0;t&&(e._asyncDrainScheduled=!1,e.emit("drain"))}function h(e){e._writing=!0;let t=e._buf,r=e.release;if(t.length>16777216?(t=t.slice(0,16777216),e._buf=e._buf.slice(16777216)):e._buf="",s(t),e._writingBuf=t,e.sync)try{let o=i.writeSync(e.fd,t,"utf8");r(null,o)}catch(e){r(e)}else i.write(e.fd,t,"utf8",r)}function p(e){if(-1===e.fd){e.once("ready",p.bind(null,e));return}i.close(e.fd,t=>{if(t){e.emit("error",t);return}e._ending&&!e._writing&&e.emit("finish"),e.emit("close")}),e.destroyed=!0,e._buf=""}a(l,o),l.prototype.write=function(e){if(this.destroyed)throw Error("SonicBoom destroyed");this._buf+=e;let t=this._buf.length;return!this._writing&&t>this.minLength&&h(this),t<16384},l.prototype.flush=function(){if(this.destroyed)throw Error("SonicBoom destroyed");this._writing||this.minLength<=0||h(this)},l.prototype.reopen=function(e){if(this.destroyed)throw Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.reopen(e)});return}if(this._ending)return;if(!this.file)throw Error("Unable to reopen a file descriptor, you must pass a file to SonicBoom");if(this._reopening=!0,this._writing)return;let t=this.fd;this.once("ready",()=>{t!==this.fd&&i.close(t,e=>{if(e)return this.emit("error",e)})}),c(e||this.file,this)},l.prototype.end=function(){if(this.destroyed)throw Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.end()});return}if(!this._ending){if(this._ending=!0,!this._writing&&this._buf.length>0&&this.fd>=0){h(this);return}this._writing||p(this)}},l.prototype.flushSync=function(){if(this.destroyed)throw Error("SonicBoom destroyed");if(this.fd<0)throw Error("sonic boom is not ready yet");for(;this._buf.length>0;)try{i.writeSync(this.fd,this._buf,"utf8"),this._buf=""}catch(e){if("EAGAIN"!==e.code)throw e;u(100)}},l.prototype.destroy=function(){this.destroyed||p(this)},e.exports=l},5443:(e,t,r)=>{"use strict";let{Transform:i}=r(2781),{StringDecoder:o}=r(1576),s=Symbol("last"),a=Symbol("decoder");function u(e,t,r){let i;if(this.overflow){let t=this[a].write(e);if(1===(i=t.split(this.matcher)).length)return r();i.shift(),this.overflow=!1}else this[s]+=this[a].write(e),i=this[s].split(this.matcher);this[s]=i.pop();for(let e=0;ethis.maxLength,this.overflow&&!this.skipOverflow){r(Error("maximum buffer reached"));return}r()}function c(e){if(this[s]+=this[a].end(),this[s])try{l(this,this.mapper(this[s]))}catch(t){return e(t)}e()}function l(e,t){void 0!==t&&e.push(t)}function f(e){return e}e.exports=function(e,t,r){switch(e=e||/\r?\n/,t=t||f,r=r||{},arguments.length){case 1:"function"==typeof e?(t=e,e=/\r?\n/):"object"!=typeof e||e instanceof RegExp||(r=e,e=/\r?\n/);break;case 2:"function"==typeof e?(r=t,t=e,e=/\r?\n/):"object"==typeof t&&(r=t,t=f)}(r=Object.assign({},r)).autoDestroy=!0,r.transform=u,r.flush=c,r.readableObjectMode=!0;let l=new i(r);return l[s]="",l[a]=new o("utf8"),l.matcher=e,l.mapper=t,l.maxLength=r.maxLength,l.skipOverflow=r.skipOverflow||!1,l.overflow=!1,l._destroy=function(e,t){this._writableState.errorEmitted=!1,t(e)},l}},6151:e=>{e.exports=function(e){var t=e._readableState;return t?t.objectMode||"number"==typeof e._duplexState?e.read():e.read(t.buffer.length?t.buffer.head?t.buffer.head.data.length:t.buffer[0].length:t.length):null}},7361:(e,t,r)=>{"use strict";var i=r(7233).Buffer,o=i.isEncoding||function(e){switch((e=""+e)&&e.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 s(e){var t;switch(this.encoding=function(e){var t=function(e){var t;if(!e)return"utf8";for(;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(i.isEncoding===o||!o(e)))throw Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=l,t=4;break;case"utf8":this.fillLast=u,t=4;break;case"base64":this.text=f,this.end=h,t=3;break;default:this.write=p,this.end=d;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function u(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}(this,e,0);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function c(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function f(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function p(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}t.s=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0?(o>0&&(e.lastNeed=o-1),o):--i=0?(o>0&&(e.lastNeed=o-2),o):--i=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},4484:(e,t,r)=>{e.exports=r(3837).deprecate},4447:e=>{e.exports=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw TypeError("need wrapper function");return Object.keys(t).forEach(function(e){i[e]=t[e]}),i;function i(){for(var e=Array(arguments.length),r=0;r{"use strict";var i=r(3211),o=r(5984),s=TypeError;e.exports=function(e){if(i(e))return e;throw s(o(e)+" is not a function")}},8971:(e,t,r)=>{"use strict";var i=r(8471).has;e.exports=function(e){return i(e),e}},9371:(e,t,r)=>{"use strict";var i=r(3211),o=String,s=TypeError;e.exports=function(e){if("object"==typeof e||i(e))return e;throw s("Can't set "+o(e)+" as a prototype")}},5650:(e,t,r)=>{"use strict";var i=r(8509).has;e.exports=function(e){return i(e),e}},4599:(e,t,r)=>{"use strict";var i=r(3568),o=TypeError;e.exports=function(e,t){if(i(t,e))return e;throw o("Incorrect invocation")}},9084:(e,t,r)=>{"use strict";var i=r(4615),o=String,s=TypeError;e.exports=function(e){if(i(e))return e;throw s(o(e)+" is not an object")}},8154:(e,t,r)=>{"use strict";var i=r(9308),o=r(6771),s=r(6206),a=function(e){return function(t,r,a){var u,c=i(t),l=s(c),f=o(a,l);if(e&&r!=r){for(;l>f;)if((u=c[f++])!=u)return!0}else for(;l>f;f++)if((e||f in c)&&c[f]===r)return e||f||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},9200:(e,t,r)=>{"use strict";var i=r(170),o=r(9909),s=TypeError,a=Object.getOwnPropertyDescriptor,u=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=u?function(e,t){if(o(e)&&!a(e,"length").writable)throw s("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},2309:(e,t,r)=>{"use strict";var i=r(7015),o=r(8107),s=r(3869);e.exports=function(e,t,r,a){try{var u=s(e,"return");if(u)return o("Promise").resolve(i(u,e)).then(function(){t(r)},function(e){a(e)})}catch(e){return a(e)}t(r)}},9137:(e,t,r)=>{"use strict";var i=r(7015),o=r(7648),s=r(9084),a=r(9530),u=r(2927),c=r(9102),l=r(6788),f=r(4387),h=r(8107),p=r(3869),d=r(4999),g=r(5610),y=r(1222),m=h("Promise"),b=l("toStringTag"),v="AsyncIteratorHelper",w="WrapForValidAsyncIterator",_=f.set,S=function(e){var t=!e,r=f.getterFor(e?w:v),u=function(e){var i=o(function(){return r(e)}),s=i.error,a=i.value;return s||t&&a.done?{exit:!0,value:s?m.reject(a):m.resolve(g(void 0,!0))}:{exit:!1,value:a}};return c(a(d),{next:function(){var e=u(this),t=e.value;if(e.exit)return t;var r=o(function(){return s(t.nextHandler(m))}),i=r.error,a=r.value;return i&&(t.done=!0),i?m.reject(a):m.resolve(a)},return:function(){var t,r,a=u(this),c=a.value;if(a.exit)return c;c.done=!0;var l=c.iterator,f=o(function(){if(c.inner)try{y(c.inner.iterator,"normal")}catch(e){return y(l,"throw",e)}return p(l,"return")});return(t=r=f.value,f.error)?m.reject(r):void 0===t?m.resolve(g(void 0,!0)):(r=(f=o(function(){return i(t,l)})).value,f.error)?m.reject(r):e?m.resolve(r):m.resolve(r).then(function(e){return s(e),g(void 0,!0)})}})},x=S(!0),E=S(!1);u(E,b,"Async Iterator Helper"),e.exports=function(e,t){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?w:v,i.nextHandler=e,i.counter=0,i.done=!1,_(this,i)};return r.prototype=t?x:E,r}},7663:(e,t,r)=>{"use strict";var i=r(7015),o=r(5966),s=r(9084),a=r(4615),u=r(2048),c=r(8107),l=r(2422),f=r(2309),h=function(e){var t=0===e,r=1===e,h=2===e,p=3===e;return function(e,d,g){s(e);var y=void 0!==d;(y||!t)&&o(d);var m=l(e),b=c("Promise"),v=m.iterator,w=m.next,_=0;return new b(function(e,o){var c=function(e){f(v,o,e,o)},l=function(){try{if(y)try{u(_)}catch(e){c(e)}b.resolve(s(i(w,v))).then(function(i){try{if(s(i).done)t?(g.length=_,e(g)):e(!p&&(h||void 0));else{var u=i.value;try{if(y){var m=d(u,_),w=function(i){if(r)l();else if(h)i?l():f(v,e,!1,o);else if(t)try{g[_++]=i,l()}catch(e){c(e)}else i?f(v,e,p||u,o):l()};a(m)?b.resolve(m).then(w,c):w(m)}else g[_++]=u,l()}catch(e){c(e)}}}catch(e){o(e)}},o)}catch(e){o(e)}};l()})}};e.exports={toArray:h(0),forEach:h(1),every:h(2),some:h(3),find:h(4)}},4094:(e,t,r)=>{"use strict";var i=r(7015),o=r(5966),s=r(9084),a=r(4615),u=r(2422),c=r(9137),l=r(5610),f=r(2309),h=c(function(e){var t=this,r=t.iterator,o=t.mapper;return new e(function(u,c){var h=function(e){t.done=!0,c(e)},p=function(e){f(r,h,e,h)};e.resolve(s(i(t.next,r))).then(function(r){try{if(s(r).done)t.done=!0,u(l(void 0,!0));else{var i=r.value;try{var c=o(i,t.counter++),f=function(e){u(l(e,!1))};a(c)?e.resolve(c).then(f,p):f(c)}catch(e){p(e)}}}catch(e){h(e)}},h)})});e.exports=function(e){return s(this),o(e),new h(u(this),{mapper:e})}},4999:(e,t,r)=>{"use strict";var i,o,s=r(9035),a=r(8727),u=r(3211),c=r(9530),l=r(1205),f=r(2973),h=r(6788),p=r(1593),d="USE_FUNCTION_CONSTRUCTOR",g=h("asyncIterator"),y=s.AsyncIterator,m=a.AsyncIteratorPrototype;if(m)i=m;else if(u(y))i=y.prototype;else if(a[d]||s[d])try{o=l(l(l(Function("return async function*(){}()")()))),l(o)===Object.prototype&&(i=o)}catch(e){}i?p&&(i=c(i)):i={},u(i[g])||f(i,g,function(){return this}),e.exports=i},839:(e,t,r)=>{"use strict";var i=r(9084),o=r(1222);e.exports=function(e,t,r,s){try{return s?t(i(r)[0],r[1]):t(r)}catch(t){o(e,"throw",t)}}},3803:(e,t,r)=>{"use strict";var i=r(6788)("iterator"),o=!1;try{var s=0,a={next:function(){return{done:!!s++}},return:function(){o=!0}};a[i]=function(){return this},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){try{if(!t&&!o)return!1}catch(e){return!1}var r=!1;try{var s={};s[i]=function(){return{next:function(){return{done:r=!0}}}},e(s)}catch(e){}return r}},6385:(e,t,r)=>{"use strict";var i=r(813),o=i({}.toString),s=i("".slice);e.exports=function(e){return s(o(e),8,-1)}},2975:(e,t,r)=>{"use strict";var i=r(3377),o=r(3211),s=r(6385),a=r(6788)("toStringTag"),u=Object,c="Arguments"===s(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(e){}};e.exports=i?s:function(e){var t,r,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=l(t=u(e),a))?r:c?s(t):"Object"===(i=s(t))&&o(t.callee)?"Arguments":i}},2586:(e,t,r)=>{"use strict";var i=r(8228),o=r(472),s=r(8722),a=r(5088);e.exports=function(e,t,r){for(var u=o(t),c=a.f,l=s.f,f=0;f{"use strict";var i=r(7858);e.exports=!i(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},5610:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},2927:(e,t,r)=>{"use strict";var i=r(170),o=r(5088),s=r(7306);e.exports=i?function(e,t,r){return o.f(e,t,s(1,r))}:function(e,t,r){return e[t]=r,e}},7306:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},8186:(e,t,r)=>{"use strict";var i=r(7793),o=r(5088),s=r(7306);e.exports=function(e,t,r){var a=i(t);a in e?o.f(e,a,s(0,r)):e[a]=r}},335:(e,t,r)=>{"use strict";var i=r(728),o=r(5088);e.exports=function(e,t,r){return r.get&&i(r.get,t,{getter:!0}),r.set&&i(r.set,t,{setter:!0}),o.f(e,t,r)}},2973:(e,t,r)=>{"use strict";var i=r(3211),o=r(5088),s=r(728),a=r(6423);e.exports=function(e,t,r,u){u||(u={});var c=u.enumerable,l=void 0!==u.name?u.name:t;if(i(r)&&s(r,l,u),u.global)c?e[t]=r:a(t,r);else{try{u.unsafe?e[t]&&(c=!0):delete e[t]}catch(e){}c?e[t]=r:o.f(e,t,{value:r,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return e}},9102:(e,t,r)=>{"use strict";var i=r(2973);e.exports=function(e,t,r){for(var o in t)i(e,o,t[o],r);return e}},6423:(e,t,r)=>{"use strict";var i=r(9035),o=Object.defineProperty;e.exports=function(e,t){try{o(i,e,{value:t,configurable:!0,writable:!0})}catch(r){i[e]=t}return t}},170:(e,t,r)=>{"use strict";var i=r(7858);e.exports=!i(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},5318:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports={all:t,IS_HTMLDDA:void 0===t&&void 0!==t}},8887:(e,t,r)=>{"use strict";var i=r(9035),o=r(4615),s=i.document,a=o(s)&&o(s.createElement);e.exports=function(e){return a?s.createElement(e):{}}},2048:e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},5012:(e,t,r)=>{"use strict";var i=r(5776),o=r(589);e.exports=!i&&!o&&"object"==typeof window&&"object"==typeof document},5776:e=>{"use strict";e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},589:(e,t,r)=>{"use strict";var i=r(9035),o=r(6385);e.exports="process"===o(i.process)},4466:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},6654:(e,t,r)=>{"use strict";var i,o,s=r(9035),a=r(4466),u=s.process,c=s.Deno,l=u&&u.versions||c&&c.version,f=l&&l.v8;f&&(o=(i=f.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!o&&a&&(!(i=a.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/))&&(o=+i[1]),e.exports=o},5980:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6527:(e,t,r)=>{"use strict";var i=r(813),o=Error,s=i("".replace),a=String(o("zxcasd").stack),u=/\n\s*at [^:]*:[^\n]*/,c=u.test(a);e.exports=function(e,t){if(c&&"string"==typeof e&&!o.prepareStackTrace)for(;t--;)e=s(e,u,"");return e}},8825:(e,t,r)=>{"use strict";var i=r(2927),o=r(6527),s=r(6344),a=Error.captureStackTrace;e.exports=function(e,t,r,u){s&&(a?a(e,t):i(e,"stack",o(r,u)))}},6344:(e,t,r)=>{"use strict";var i=r(7858),o=r(7306);e.exports=!i(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",o(1,7)),7!==e.stack)})},6486:(e,t,r)=>{"use strict";var i=r(9035),o=r(8722).f,s=r(2927),a=r(2973),u=r(6423),c=r(2586),l=r(9963);e.exports=function(e,t){var r,f,h,p,d,g=e.target,y=e.global,m=e.stat;if(r=y?i:m?i[g]||u(g,{}):(i[g]||{}).prototype)for(f in t){if(p=t[f],h=e.dontCallGetSet?(d=o(r,f))&&d.value:r[f],!l(y?f:g+(m?".":"#")+f,e.forced)&&void 0!==h){if(typeof p==typeof h)continue;c(p,h)}(e.sham||h&&h.sham)&&s(p,"sham",!0),a(r,f,p,e)}}},7858:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},7040:(e,t,r)=>{"use strict";var i=r(5259),o=Function.prototype,s=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(i?a.bind(s):function(){return a.apply(s,arguments)})},2942:(e,t,r)=>{"use strict";var i=r(5775),o=r(5966),s=r(5259),a=i(i.bind);e.exports=function(e,t){return o(e),void 0===t?e:s?a(e,t):function(){return e.apply(t,arguments)}}},5259:(e,t,r)=>{"use strict";var i=r(7858);e.exports=!i(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},7015:(e,t,r)=>{"use strict";var i=r(5259),o=Function.prototype.call;e.exports=i?o.bind(o):function(){return o.apply(o,arguments)}},1751:(e,t,r)=>{"use strict";var i=r(170),o=r(8228),s=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,u=o(s,"name"),c=u&&(!i||i&&a(s,"name").configurable);e.exports={EXISTS:u,PROPER:u&&"something"===(function(){}).name,CONFIGURABLE:c}},9444:(e,t,r)=>{"use strict";var i=r(813),o=r(5966);e.exports=function(e,t,r){try{return i(o(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},5775:(e,t,r)=>{"use strict";var i=r(6385),o=r(813);e.exports=function(e){if("Function"===i(e))return o(e)}},813:(e,t,r)=>{"use strict";var i=r(5259),o=Function.prototype,s=o.call,a=i&&o.bind.bind(s,s);e.exports=i?a:function(e){return function(){return s.apply(e,arguments)}}},8107:(e,t,r)=>{"use strict";var i=r(9035),o=r(3211);e.exports=function(e,t){var r;return arguments.length<2?o(r=i[e])?r:void 0:i[e]&&i[e][t]}},2422:e=>{"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},1624:(e,t,r)=>{"use strict";var i=r(2975),o=r(3869),s=r(6024),a=r(571),u=r(6788)("iterator");e.exports=function(e){if(!s(e))return o(e,u)||o(e,"@@iterator")||a[i(e)]}},7096:(e,t,r)=>{"use strict";var i=r(7015),o=r(5966),s=r(9084),a=r(5984),u=r(1624),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?u(e):t;if(o(r))return s(i(r,e));throw c(a(e)+" is not iterable")}},3869:(e,t,r)=>{"use strict";var i=r(5966),o=r(6024);e.exports=function(e,t){var r=e[t];return o(r)?void 0:i(r)}},9950:(e,t,r)=>{"use strict";var i=r(5966),o=r(9084),s=r(7015),a=r(898),u=r(2422),c="Invalid size",l=RangeError,f=TypeError,h=Math.max,p=function(e,t,r,i){this.set=e,this.size=t,this.has=r,this.keys=i};p.prototype={getIterator:function(){return u(o(s(this.keys,this.set)))},includes:function(e){return s(this.has,this.set,e)}},e.exports=function(e){o(e);var t=+e.size;if(t!=t)throw f(c);var r=a(t);if(r<0)throw l(c);return new p(e,h(r,0),i(e.has),i(e.keys))}},9035:function(e){"use strict";var t=function(e){return e&&e.Math===Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof global&&global)||function(){return this}()||this||Function("return this")()},8228:(e,t,r)=>{"use strict";var i=r(813),o=r(9842),s=i({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return s(o(e),t)}},3642:e=>{"use strict";e.exports={}},8232:(e,t,r)=>{"use strict";var i=r(8107);e.exports=i("document","documentElement")},5199:(e,t,r)=>{"use strict";var i=r(170),o=r(7858),s=r(8887);e.exports=!i&&!o(function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a})},3129:(e,t,r)=>{"use strict";var i=r(813),o=r(7858),s=r(6385),a=Object,u=i("".split);e.exports=o(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"===s(e)?u(e,""):a(e)}:a},758:(e,t,r)=>{"use strict";var i=r(3211),o=r(4615),s=r(7653);e.exports=function(e,t,r){var a,u;return s&&i(a=t.constructor)&&a!==r&&o(u=a.prototype)&&u!==r.prototype&&s(e,u),e}},167:(e,t,r)=>{"use strict";var i=r(813),o=r(3211),s=r(8727),a=i(Function.toString);o(s.inspectSource)||(s.inspectSource=function(e){return a(e)}),e.exports=s.inspectSource},1633:(e,t,r)=>{"use strict";var i=r(4615),o=r(2927);e.exports=function(e,t){i(t)&&"cause"in t&&o(e,"cause",t.cause)}},4387:(e,t,r)=>{"use strict";var i,o,s,a=r(2157),u=r(9035),c=r(4615),l=r(2927),f=r(8228),h=r(8727),p=r(4249),d=r(3642),g="Object already initialized",y=u.TypeError,m=u.WeakMap;if(a||h.state){var b=h.state||(h.state=new m);b.get=b.get,b.has=b.has,b.set=b.set,i=function(e,t){if(b.has(e))throw y(g);return t.facade=e,b.set(e,t),t},o=function(e){return b.get(e)||{}},s=function(e){return b.has(e)}}else{var v=p("state");d[v]=!0,i=function(e,t){if(f(e,v))throw y(g);return t.facade=e,l(e,v,t),t},o=function(e){return f(e,v)?e[v]:{}},s=function(e){return f(e,v)}}e.exports={set:i,get:o,has:s,enforce:function(e){return s(e)?o(e):i(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=o(t)).type!==e)throw y("Incompatible receiver, "+e+" required");return r}}}},702:(e,t,r)=>{"use strict";var i=r(6788),o=r(571),s=i("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[s]===e)}},9909:(e,t,r)=>{"use strict";var i=r(6385);e.exports=Array.isArray||function(e){return"Array"===i(e)}},3211:(e,t,r)=>{"use strict";var i=r(5318),o=i.all;e.exports=i.IS_HTMLDDA?function(e){return"function"==typeof e||e===o}:function(e){return"function"==typeof e}},9963:(e,t,r)=>{"use strict";var i=r(7858),o=r(3211),s=/#|\.prototype\./,a=function(e,t){var r=c[u(e)];return r===f||r!==l&&(o(t)?i(t):!!t)},u=a.normalize=function(e){return String(e).replace(s,".").toLowerCase()},c=a.data={},l=a.NATIVE="N",f=a.POLYFILL="P";e.exports=a},9110:(e,t,r)=>{"use strict";var i=r(2975),o=r(8228),s=r(6024),a=r(6788),u=r(571),c=a("iterator"),l=Object;e.exports=function(e){if(s(e))return!1;var t=l(e);return void 0!==t[c]||"@@iterator"in t||o(u,i(t))}},6024:e=>{"use strict";e.exports=function(e){return null==e}},4615:(e,t,r)=>{"use strict";var i=r(3211),o=r(5318),s=o.all;e.exports=o.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:i(e)||e===s}:function(e){return"object"==typeof e?null!==e:i(e)}},1593:e=>{"use strict";e.exports=!1},5121:(e,t,r)=>{"use strict";var i=r(8107),o=r(3211),s=r(3568),a=r(1006),u=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return o(t)&&s(t.prototype,u(e))}},7305:(e,t,r)=>{"use strict";var i=r(7015);e.exports=function(e,t,r){for(var o,s,a=r?e:e.iterator,u=e.next;!(o=i(u,a)).done;)if(void 0!==(s=t(o.value)))return s}},2401:(e,t,r)=>{"use strict";var i=r(2942),o=r(7015),s=r(9084),a=r(5984),u=r(702),c=r(6206),l=r(3568),f=r(7096),h=r(1624),p=r(1222),d=TypeError,g=function(e,t){this.stopped=e,this.result=t},y=g.prototype;e.exports=function(e,t,r){var m,b,v,w,_,S,x,E=r&&r.that,O=!!(r&&r.AS_ENTRIES),k=!!(r&&r.IS_RECORD),j=!!(r&&r.IS_ITERATOR),T=!!(r&&r.INTERRUPTED),R=i(t,E),P=function(e){return m&&p(m,"normal",e),new g(!0,e)},M=function(e){return O?(s(e),T?R(e[0],e[1],P):R(e[0],e[1])):T?R(e,P):R(e)};if(k)m=e.iterator;else if(j)m=e;else{if(!(b=h(e)))throw d(a(e)+" is not iterable");if(u(b)){for(v=0,w=c(e);w>v;v++)if((_=M(e[v]))&&l(y,_))return _;return new g(!1)}m=f(e,b)}for(S=k?e.next:m.next;!(x=o(S,m)).done;){try{_=M(x.value)}catch(e){p(m,"throw",e)}if("object"==typeof _&&_&&l(y,_))return _}return new g(!1)}},1222:(e,t,r)=>{"use strict";var i=r(7015),o=r(9084),s=r(3869);e.exports=function(e,t,r){var a,u;o(e);try{if(!(a=s(e,"return"))){if("throw"===t)throw r;return r}a=i(a,e)}catch(e){u=!0,a=e}if("throw"===t)throw r;if(u)throw a;return o(a),r}},184:(e,t,r)=>{"use strict";var i=r(7015),o=r(9530),s=r(2927),a=r(9102),u=r(6788),c=r(4387),l=r(3869),f=r(2713).IteratorPrototype,h=r(5610),p=r(1222),d=u("toStringTag"),g="IteratorHelper",y="WrapForValidIterator",m=c.set,b=function(e){var t=c.getterFor(e?y:g);return a(o(f),{next:function(){var r=t(this);if(e)return r.nextHandler();try{var i=r.done?void 0:r.nextHandler();return h(i,r.done)}catch(e){throw r.done=!0,e}},return:function(){var r=t(this),o=r.iterator;if(r.done=!0,e){var s=l(o,"return");return s?i(s,o):h(void 0,!0)}if(r.inner)try{p(r.inner.iterator,"normal")}catch(e){return p(o,"throw",e)}return p(o,"normal"),h(void 0,!0)}})},v=b(!0),w=b(!1);s(w,d,"Iterator Helper"),e.exports=function(e,t){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?y:g,i.nextHandler=e,i.counter=0,i.done=!1,m(this,i)};return r.prototype=t?v:w,r}},4503:(e,t,r)=>{"use strict";var i=r(7015),o=r(5966),s=r(9084),a=r(2422),u=r(184),c=r(839),l=u(function(){var e=this.iterator,t=s(i(this.next,e));if(!(this.done=!!t.done))return c(e,this.mapper,[t.value,this.counter++],!0)});e.exports=function(e){return s(this),o(e),new l(a(this),{mapper:e})}},2713:(e,t,r)=>{"use strict";var i,o,s,a=r(7858),u=r(3211),c=r(4615),l=r(9530),f=r(1205),h=r(2973),p=r(6788),d=r(1593),g=p("iterator"),y=!1;[].keys&&("next"in(s=[].keys())?(o=f(f(s)))!==Object.prototype&&(i=o):y=!0),!c(i)||a(function(){var e={};return i[g].call(e)!==e})?i={}:d&&(i=l(i)),u(i[g])||h(i,g,function(){return this}),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:y}},571:e=>{"use strict";e.exports={}},6206:(e,t,r)=>{"use strict";var i=r(2686);e.exports=function(e){return i(e.length)}},728:(e,t,r)=>{"use strict";var i=r(813),o=r(7858),s=r(3211),a=r(8228),u=r(170),c=r(1751).CONFIGURABLE,l=r(167),f=r(4387),h=f.enforce,p=f.get,d=String,g=Object.defineProperty,y=i("".slice),m=i("".replace),b=i([].join),v=u&&!o(function(){return 8!==g(function(){},"length",{value:8}).length}),w=String(String).split("String"),_=e.exports=function(e,t,r){"Symbol("===y(d(t),0,7)&&(t="["+m(d(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||c&&e.name!==t)&&(u?g(e,"name",{value:t,configurable:!0}):e.name=t),v&&r&&a(r,"arity")&&e.length!==r.arity&&g(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?u&&g(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var i=h(e);return a(i,"source")||(i.source=b(w,"string"==typeof t?t:"")),e};Function.prototype.toString=_(function(){return s(this)&&p(this).source||l(this)},"toString")},8471:(e,t,r)=>{"use strict";var i=r(813),o=Map.prototype;e.exports={Map:Map,set:i(o.set),get:i(o.get),has:i(o.has),remove:i(o.delete),proto:o}},7921:(e,t,r)=>{"use strict";var i=r(813),o=r(7305),s=r(8471),a=s.Map,u=s.proto,c=i(u.forEach),l=i(u.entries),f=l(new a).next;e.exports=function(e,t,r){return r?o({iterator:l(e),next:f},function(e){return t(e[1],e[0])}):c(e,t)}},7308:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var i=+e;return(i>0?r:t)(i)}},2644:(e,t,r)=>{"use strict";var i=r(5966),o=TypeError,s=function(e){var t,r;this.promise=new e(function(e,i){if(void 0!==t||void 0!==r)throw o("Bad Promise constructor");t=e,r=i}),this.resolve=i(t),this.reject=i(r)};e.exports.f=function(e){return new s(e)}},8602:(e,t,r)=>{"use strict";var i=r(6650);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:i(e)}},9530:(e,t,r)=>{"use strict";var i,o=r(9084),s=r(4608),a=r(5980),u=r(3642),c=r(8232),l=r(8887),f=r(4249),h="prototype",p="script",d=f("IE_PROTO"),g=function(){},y=function(e){return"<"+p+">"+e+""},m=function(e){e.write(y("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=l("iframe");return t.style.display="none",c.appendChild(t),t.src=String("java"+p+":"),(e=t.contentWindow.document).open(),e.write(y("document.F=Object")),e.close(),e.F},v=function(){try{i=new ActiveXObject("htmlfile")}catch(e){}v="undefined"!=typeof document?document.domain&&i?m(i):b():m(i);for(var e=a.length;e--;)delete v[h][a[e]];return v()};u[d]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(g[h]=o(e),r=new g,g[h]=null,r[d]=e):r=v(),void 0===t?r:s.f(r,t)}},4608:(e,t,r)=>{"use strict";var i=r(170),o=r(7834),s=r(5088),a=r(9084),u=r(9308),c=r(8594);t.f=i&&!o?Object.defineProperties:function(e,t){a(e);for(var r,i=u(t),o=c(t),l=o.length,f=0;l>f;)s.f(e,r=o[f++],i[r]);return e}},5088:(e,t,r)=>{"use strict";var i=r(170),o=r(5199),s=r(7834),a=r(9084),u=r(7793),c=TypeError,l=Object.defineProperty,f=Object.getOwnPropertyDescriptor,h="enumerable",p="configurable",d="writable";t.f=i?s?function(e,t,r){if(a(e),t=u(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&d in r&&!r[d]){var i=f(e,t);i&&i[d]&&(e[t]=r.value,r={configurable:p in r?r[p]:i[p],enumerable:h in r?r[h]:i[h],writable:!1})}return l(e,t,r)}:l:function(e,t,r){if(a(e),t=u(t),a(r),o)try{return l(e,t,r)}catch(e){}if("get"in r||"set"in r)throw c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},8722:(e,t,r)=>{"use strict";var i=r(170),o=r(7015),s=r(7210),a=r(7306),u=r(9308),c=r(7793),l=r(8228),f=r(5199),h=Object.getOwnPropertyDescriptor;t.f=i?h:function(e,t){if(e=u(e),t=c(t),f)try{return h(e,t)}catch(e){}if(l(e,t))return a(!o(s.f,e,t),e[t])}},9898:(e,t,r)=>{"use strict";var i=r(7182),o=r(5980).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},4806:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},1205:(e,t,r)=>{"use strict";var i=r(8228),o=r(3211),s=r(9842),a=r(4249),u=r(9834),c=a("IE_PROTO"),l=Object,f=l.prototype;e.exports=u?l.getPrototypeOf:function(e){var t=s(e);if(i(t,c))return t[c];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof l?f:null}},3568:(e,t,r)=>{"use strict";var i=r(813);e.exports=i({}.isPrototypeOf)},7182:(e,t,r)=>{"use strict";var i=r(813),o=r(8228),s=r(9308),a=r(8154).indexOf,u=r(3642),c=i([].push);e.exports=function(e,t){var r,i=s(e),l=0,f=[];for(r in i)!o(u,r)&&o(i,r)&&c(f,r);for(;t.length>l;)o(i,r=t[l++])&&(~a(f,r)||c(f,r));return f}},8594:(e,t,r)=>{"use strict";var i=r(7182),o=r(5980);e.exports=Object.keys||function(e){return i(e,o)}},7210:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},7653:(e,t,r)=>{"use strict";var i=r(9444),o=r(9084),s=r(9371);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=i(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,i){return o(r),s(i),t?e(r,i):r.__proto__=i,r}}():void 0)},1502:(e,t,r)=>{"use strict";var i=r(7015),o=r(3211),s=r(4615),a=TypeError;e.exports=function(e,t){var r,u;if("string"===t&&o(r=e.toString)&&!s(u=i(r,e))||o(r=e.valueOf)&&!s(u=i(r,e))||"string"!==t&&o(r=e.toString)&&!s(u=i(r,e)))return u;throw a("Can't convert object to primitive value")}},472:(e,t,r)=>{"use strict";var i=r(8107),o=r(813),s=r(9898),a=r(4806),u=r(9084),c=o([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=s.f(u(e)),r=a.f;return r?c(t,r(e)):t}},7392:(e,t,r)=>{"use strict";var i=r(813),o=r(8228),s=SyntaxError,a=parseInt,u=String.fromCharCode,c=i("".charAt),l=i("".slice),f=i(/./.exec),h={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":" "},p=/^[\da-f]{4}$/i,d=/^[\u0000-\u001F]$/;e.exports=function(e,t){for(var r=!0,i="";t{"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},6450:(e,t,r)=>{"use strict";var i=r(9035),o=r(8225),s=r(3211),a=r(9963),u=r(167),c=r(6788),l=r(5012),f=r(5776),h=r(1593),p=r(6654),d=o&&o.prototype,g=c("species"),y=!1,m=s(i.PromiseRejectionEvent),b=a("Promise",function(){var e=u(o),t=e!==String(o);if(!t&&66===p||h&&!(d.catch&&d.finally))return!0;if(!p||p<51||!/native code/.test(e)){var r=new o(function(e){e(1)}),i=function(e){e(function(){},function(){})};if((r.constructor={})[g]=i,!(y=r.then(function(){}) instanceof i))return!0}return!t&&(l||f)&&!m});e.exports={CONSTRUCTOR:b,REJECTION_EVENT:m,SUBCLASSING:y}},8225:(e,t,r)=>{"use strict";var i=r(9035);e.exports=i.Promise},9149:(e,t,r)=>{"use strict";var i=r(8225),o=r(3803),s=r(6450).CONSTRUCTOR;e.exports=s||!o(function(e){i.all(e).then(void 0,function(){})})},4065:(e,t,r)=>{"use strict";var i=r(5088).f;e.exports=function(e,t,r){r in e||i(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},7569:(e,t,r)=>{"use strict";var i=r(9084);e.exports=function(){var e=i(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},8110:(e,t,r)=>{"use strict";var i=r(6024),o=TypeError;e.exports=function(e){if(i(e))throw o("Can't call method on "+e);return e}},9881:e=>{"use strict";e.exports=function(e,t){return e===t||e!=e&&t!=t}},7976:(e,t,r)=>{"use strict";var i=r(8509),o=r(1634),s=i.Set,a=i.add;e.exports=function(e){var t=new s;return o(e,function(e){a(t,e)}),t}},2190:(e,t,r)=>{"use strict";var i=r(5650),o=r(8509),s=r(7976),a=r(2636),u=r(9950),c=r(1634),l=r(7305),f=o.has,h=o.remove;e.exports=function(e){var t=i(this),r=u(e),o=s(t);return a(t)<=r.size?c(t,function(e){r.includes(e)&&h(o,e)}):l(r.getIterator(),function(e){f(t,e)&&h(o,e)}),o}},8509:(e,t,r)=>{"use strict";var i=r(813),o=Set.prototype;e.exports={Set:Set,add:i(o.add),has:i(o.has),remove:i(o.delete),proto:o}},6246:(e,t,r)=>{"use strict";var i=r(5650),o=r(8509),s=r(2636),a=r(9950),u=r(1634),c=r(7305),l=o.Set,f=o.add,h=o.has;e.exports=function(e){var t=i(this),r=a(e),o=new l;return s(t)>r.size?c(r.getIterator(),function(e){h(t,e)&&f(o,e)}):u(t,function(e){r.includes(e)&&f(o,e)}),o}},4380:(e,t,r)=>{"use strict";var i=r(5650),o=r(8509).has,s=r(2636),a=r(9950),u=r(1634),c=r(7305),l=r(1222);e.exports=function(e){var t=i(this),r=a(e);if(s(t)<=r.size)return!1!==u(t,function(e){if(r.includes(e))return!1},!0);var f=r.getIterator();return!1!==c(f,function(e){if(o(t,e))return l(f,"normal",!1)})}},8564:(e,t,r)=>{"use strict";var i=r(5650),o=r(2636),s=r(1634),a=r(9950);e.exports=function(e){var t=i(this),r=a(e);return!(o(t)>r.size)&&!1!==s(t,function(e){if(!r.includes(e))return!1},!0)}},2856:(e,t,r)=>{"use strict";var i=r(5650),o=r(8509).has,s=r(2636),a=r(9950),u=r(7305),c=r(1222);e.exports=function(e){var t=i(this),r=a(e);if(s(t){"use strict";var i=r(813),o=r(7305),s=r(8509),a=s.Set,u=s.proto,c=i(u.forEach),l=i(u.keys),f=l(new a).next;e.exports=function(e,t,r){return r?o({iterator:l(e),next:f},t):c(e,t)}},5378:(e,t,r)=>{"use strict";var i=r(8107),o=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};e.exports=function(e){var t=i("Set");try{new t()[e](o(0));try{return new t()[e](o(-1)),!1}catch(e){return!0}}catch(e){return!1}}},2636:(e,t,r)=>{"use strict";var i=r(9444),o=r(8509);e.exports=i(o.proto,"size","get")||function(e){return e.size}},3208:(e,t,r)=>{"use strict";var i=r(5650),o=r(8509),s=r(7976),a=r(9950),u=r(7305),c=o.add,l=o.has,f=o.remove;e.exports=function(e){var t=i(this),r=a(e).getIterator(),o=s(t);return u(r,function(e){l(t,e)?f(o,e):c(o,e)}),o}},8734:(e,t,r)=>{"use strict";var i=r(5650),o=r(8509).add,s=r(7976),a=r(9950),u=r(7305);e.exports=function(e){var t=i(this),r=a(e).getIterator(),c=s(t);return u(r,function(e){o(c,e)}),c}},4249:(e,t,r)=>{"use strict";var i=r(1211),o=r(9685),s=i("keys");e.exports=function(e){return s[e]||(s[e]=o(e))}},8727:(e,t,r)=>{"use strict";var i=r(9035),o=r(6423),s="__core-js_shared__",a=i[s]||o(s,{});e.exports=a},1211:(e,t,r)=>{"use strict";var i=r(1593),o=r(8727);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.32.2",mode:i?"pure":"global",copyright:"\xa9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.2/LICENSE",source:"https://github.com/zloirock/core-js"})},7971:(e,t,r)=>{"use strict";var i=r(6654),o=r(7858),s=r(9035).String;e.exports=!!Object.getOwnPropertySymbols&&!o(function(){var e=Symbol("symbol detection");return!s(e)||!(Object(e) instanceof Symbol)||!Symbol.sham&&i&&i<41})},6771:(e,t,r)=>{"use strict";var i=r(898),o=Math.max,s=Math.min;e.exports=function(e,t){var r=i(e);return r<0?o(r+t,0):s(r,t)}},9308:(e,t,r)=>{"use strict";var i=r(3129),o=r(8110);e.exports=function(e){return i(o(e))}},898:(e,t,r)=>{"use strict";var i=r(7308);e.exports=function(e){var t=+e;return t!=t||0===t?0:i(t)}},2686:(e,t,r)=>{"use strict";var i=r(898),o=Math.min;e.exports=function(e){return e>0?o(i(e),9007199254740991):0}},9842:(e,t,r)=>{"use strict";var i=r(8110),o=Object;e.exports=function(e){return o(i(e))}},2142:(e,t,r)=>{"use strict";var i=r(7015),o=r(4615),s=r(5121),a=r(3869),u=r(1502),c=r(6788),l=TypeError,f=c("toPrimitive");e.exports=function(e,t){if(!o(e)||s(e))return e;var r,c=a(e,f);if(c){if(void 0===t&&(t="default"),!o(r=i(c,e,t))||s(r))return r;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),u(e,t)}},7793:(e,t,r)=>{"use strict";var i=r(2142),o=r(5121);e.exports=function(e){var t=i(e,"string");return o(t)?t:t+""}},4652:(e,t,r)=>{"use strict";var i=r(8107),o=r(3211),s=r(9110),a=r(4615),u=i("Set");e.exports=function(e){return a(e)&&"number"==typeof e.size&&o(e.has)&&o(e.keys)?e:s(e)?new u(e):e}},3377:(e,t,r)=>{"use strict";var i=r(6788)("toStringTag"),o={};o[i]="z",e.exports="[object z]"===String(o)},6650:(e,t,r)=>{"use strict";var i=r(2975),o=String;e.exports=function(e){if("Symbol"===i(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},5984:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},9685:(e,t,r)=>{"use strict";var i=r(813),o=0,s=Math.random(),a=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+s,36)}},1006:(e,t,r)=>{"use strict";var i=r(7971);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7834:(e,t,r)=>{"use strict";var i=r(170),o=r(7858);e.exports=i&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},2157:(e,t,r)=>{"use strict";var i=r(9035),o=r(3211),s=i.WeakMap;e.exports=o(s)&&/native code/.test(String(s))},6788:(e,t,r)=>{"use strict";var i=r(9035),o=r(1211),s=r(8228),a=r(9685),u=r(7971),c=r(1006),l=i.Symbol,f=o("wks"),h=c?l.for||l:l&&l.withoutSetter||a;e.exports=function(e){return s(f,e)||(f[e]=u&&s(l,e)?l[e]:h("Symbol."+e)),f[e]}},2460:(e,t,r)=>{"use strict";var i=r(8107),o=r(8228),s=r(2927),a=r(3568),u=r(7653),c=r(2586),l=r(4065),f=r(758),h=r(8602),p=r(1633),d=r(8825),g=r(170),y=r(1593);e.exports=function(e,t,r,m){var b="stackTraceLimit",v=m?2:1,w=e.split("."),_=w[w.length-1],S=i.apply(null,w);if(S){var x=S.prototype;if(!y&&o(x,"cause")&&delete x.cause,!r)return S;var E=i("Error"),O=t(function(e,t){var r=h(m?t:e,void 0),i=m?new S(e):new S;return void 0!==r&&s(i,"message",r),d(i,O,i.stack,2),this&&a(x,this)&&f(i,this,O),arguments.length>v&&p(i,arguments[v]),i});if(O.prototype=x,"Error"!==_?u?u(O,E):c(O,E,{name:!0}):g&&b in S&&(l(O,S,b),l(O,S,"prepareStackTrace")),c(O,S),!y)try{x.name!==_&&s(x,"name",_),x.constructor=O}catch(e){}return O}}},1038:(e,t,r)=>{"use strict";var i=r(6486),o=r(3568),s=r(1205),a=r(7653),u=r(2586),c=r(9530),l=r(2927),f=r(7306),h=r(1633),p=r(8825),d=r(2401),g=r(8602),y=r(6788)("toStringTag"),m=Error,b=[].push,v=function(e,t){var r,i=o(w,this);a?r=a(m(),i?s(this):w):l(r=i?this:c(w),y,"Error"),void 0!==t&&l(r,"message",g(t)),p(r,v,r.stack,1),arguments.length>2&&h(r,arguments[2]);var u=[];return d(e,b,{that:u}),l(r,"errors",u),r};a?a(v,m):u(v,m,{name:!0});var w=v.prototype=c(m.prototype,{constructor:f(1,v),message:f(1,""),name:f(1,"AggregateError")});i({global:!0,constructor:!0,arity:2},{AggregateError:v})},5706:(e,t,r)=>{"use strict";r(1038)},5106:(e,t,r)=>{"use strict";var i=r(6486),o=r(9842),s=r(6206),a=r(9200),u=r(2048);i({target:"Array",proto:!0,arity:1,forced:r(7858)(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=o(this),r=s(t),i=arguments.length;u(r+i);for(var c=0;c{"use strict";var i=r(6486),o=r(9035),s=r(7040),a=r(2460),u="WebAssembly",c=o[u],l=7!==Error("e",{cause:7}).cause,f=function(e,t){var r={};r[e]=a(e,t,l),i({global:!0,constructor:!0,arity:1,forced:l},r)},h=function(e,t){if(c&&c[e]){var r={};r[e]=a(u+"."+e,t,l),i({target:u,stat:!0,constructor:!0,arity:1,forced:l},r)}};f("Error",function(e){return function(t){return s(e,this,arguments)}}),f("EvalError",function(e){return function(t){return s(e,this,arguments)}}),f("RangeError",function(e){return function(t){return s(e,this,arguments)}}),f("ReferenceError",function(e){return function(t){return s(e,this,arguments)}}),f("SyntaxError",function(e){return function(t){return s(e,this,arguments)}}),f("TypeError",function(e){return function(t){return s(e,this,arguments)}}),f("URIError",function(e){return function(t){return s(e,this,arguments)}}),h("CompileError",function(e){return function(t){return s(e,this,arguments)}}),h("LinkError",function(e){return function(t){return s(e,this,arguments)}}),h("RuntimeError",function(e){return function(t){return s(e,this,arguments)}})},940:(e,t,r)=>{"use strict";var i=r(6486),o=r(7015),s=r(5966),a=r(2644),u=r(7648),c=r(2401);i({target:"Promise",stat:!0,forced:r(9149)},{allSettled:function(e){var t=this,r=a.f(t),i=r.resolve,l=r.reject,f=u(function(){var r=s(t.resolve),a=[],u=0,l=1;c(e,function(e){var s=u++,c=!1;l++,o(r,t,e).then(function(e){!c&&(c=!0,a[s]={status:"fulfilled",value:e},--l||i(a))},function(e){!c&&(c=!0,a[s]={status:"rejected",reason:e},--l||i(a))})}),--l||i(a)});return f.error&&l(f.value),r.promise}})},732:(e,t,r)=>{"use strict";var i=r(6486),o=r(7015),s=r(5966),a=r(8107),u=r(2644),c=r(7648),l=r(2401),f=r(9149),h="No one promise resolved";i({target:"Promise",stat:!0,forced:f},{any:function(e){var t=this,r=a("AggregateError"),i=u.f(t),f=i.resolve,p=i.reject,d=c(function(){var i=s(t.resolve),a=[],u=0,c=1,d=!1;l(e,function(e){var s=u++,l=!1;c++,o(i,t,e).then(function(e){l||d||(d=!0,f(e))},function(e){!l&&!d&&(l=!0,a[s]=e,--c||p(new r(a,h)))})}),--c||p(new r(a,h))});return d.error&&p(d.value),i.promise}})},3805:(e,t,r)=>{"use strict";var i=r(9035),o=r(170),s=r(335),a=r(7569),u=r(7858),c=i.RegExp,l=c.prototype;o&&u(function(){var e=!0;try{c(".","d")}catch(t){e=!1}var t={},r="",i=e?"dgimsy":"gimsy",o=function(e,i){Object.defineProperty(t,e,{get:function(){return r+=i,!0}})},s={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(s.hasIndices="d"),s)o(a,s[a]);return Object.getOwnPropertyDescriptor(l,"flags").get.call(t)!==i||r!==i})&&s(l,"flags",{configurable:!0,get:a})},6323:(e,t,r)=>{"use strict";var i=r(6486),o=r(7015),s=r(5966),a=r(9084),u=r(4615),c=r(2422),l=r(9137),f=r(5610),h=r(2309),p=r(1593),d=l(function(e){var t=this,r=t.iterator,i=t.predicate;return new e(function(s,c){var l=function(e){t.done=!0,c(e)},p=function(e){h(r,l,e,l)},d=function(){try{e.resolve(a(o(t.next,r))).then(function(r){try{if(a(r).done)t.done=!0,s(f(void 0,!0));else{var o=r.value;try{var c=i(o,t.counter++),h=function(e){e?s(f(o,!1)):d()};u(c)?e.resolve(c).then(h,p):h(c)}catch(e){p(e)}}}catch(e){l(e)}},l)}catch(e){l(e)}};d()})});i({target:"AsyncIterator",proto:!0,real:!0,forced:p},{filter:function(e){return a(this),s(e),new d(c(this),{predicate:e})}})},9493:(e,t,r)=>{"use strict";var i=r(6486),o=r(7663).find;i({target:"AsyncIterator",proto:!0,real:!0},{find:function(e){return o(this,e)}})},4774:(e,t,r)=>{"use strict";var i=r(6486),o=r(7663).forEach;i({target:"AsyncIterator",proto:!0,real:!0},{forEach:function(e){return o(this,e)}})},726:(e,t,r)=>{"use strict";var i=r(6486),o=r(4094);i({target:"AsyncIterator",proto:!0,real:!0,forced:r(1593)},{map:o})},1832:(e,t,r)=>{"use strict";var i=r(6486),o=r(7015),s=r(5966),a=r(9084),u=r(4615),c=r(8107),l=r(2422),f=r(2309),h=c("Promise"),p=TypeError;i({target:"AsyncIterator",proto:!0,real:!0},{reduce:function(e){a(this),s(e);var t=l(this),r=t.iterator,i=t.next,c=arguments.length<2,d=c?void 0:arguments[1],g=0;return new h(function(t,s){var l=function(e){f(r,s,e,s)},y=function(){try{h.resolve(a(o(i,r))).then(function(r){try{if(a(r).done)c?s(p("Reduce of empty iterator with no initial value")):t(d);else{var i=r.value;if(c)c=!1,d=i,y();else try{var o=e(d,i,g),f=function(e){d=e,y()};u(o)?h.resolve(o).then(f,l):f(o)}catch(e){l(e)}}g++}catch(e){s(e)}},s)}catch(e){s(e)}};y()})}})},6185:(e,t,r)=>{"use strict";var i=r(6486),o=r(7663).some;i({target:"AsyncIterator",proto:!0,real:!0},{some:function(e){return o(this,e)}})},139:(e,t,r)=>{"use strict";var i=r(6486),o=r(9035),s=r(4599),a=r(3211),u=r(1205),c=r(2927),l=r(7858),f=r(8228),h=r(6788),p=r(2713).IteratorPrototype,d=r(1593),g=h("toStringTag"),y=TypeError,m=o.Iterator,b=d||!a(m)||m.prototype!==p||!l(function(){m({})}),v=function(){if(s(this,p),u(this)===p)throw y("Abstract class Iterator not directly constructable")};f(p,g)||c(p,g,"Iterator"),(b||!f(p,"constructor")||p.constructor===Object)&&c(p,"constructor",v),v.prototype=p,i({global:!0,constructor:!0,forced:b},{Iterator:v})},6761:(e,t,r)=>{"use strict";var i=r(6486),o=r(7015),s=r(5966),a=r(9084),u=r(2422),c=r(184),l=r(839),f=r(1593),h=c(function(){for(var e,t,r=this.iterator,i=this.predicate,s=this.next;;){if(e=a(o(s,r)),this.done=!!e.done)return;if(l(r,i,[t=e.value,this.counter++],!0))return t}});i({target:"Iterator",proto:!0,real:!0,forced:f},{filter:function(e){return a(this),s(e),new h(u(this),{predicate:e})}})},4216:(e,t,r)=>{"use strict";var i=r(6486),o=r(2401),s=r(5966),a=r(9084),u=r(2422);i({target:"Iterator",proto:!0,real:!0},{find:function(e){a(this),s(e);var t=u(this),r=0;return o(t,function(t,i){if(e(t,r++))return i(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},2702:(e,t,r)=>{"use strict";var i=r(6486),o=r(2401),s=r(5966),a=r(9084),u=r(2422);i({target:"Iterator",proto:!0,real:!0},{forEach:function(e){a(this),s(e);var t=u(this),r=0;o(t,function(t){e(t,r++)},{IS_RECORD:!0})}})},1966:(e,t,r)=>{"use strict";var i=r(6486),o=r(4503);i({target:"Iterator",proto:!0,real:!0,forced:r(1593)},{map:o})},8352:(e,t,r)=>{"use strict";var i=r(6486),o=r(2401),s=r(5966),a=r(9084),u=r(2422),c=TypeError;i({target:"Iterator",proto:!0,real:!0},{reduce:function(e){a(this),s(e);var t=u(this),r=arguments.length<2,i=r?void 0:arguments[1],l=0;if(o(t,function(t){r?(r=!1,i=t):i=e(i,t,l),l++},{IS_RECORD:!0}),r)throw c("Reduce of empty iterator with no initial value");return i}})},2092:(e,t,r)=>{"use strict";var i=r(6486),o=r(2401),s=r(5966),a=r(9084),u=r(2422);i({target:"Iterator",proto:!0,real:!0},{some:function(e){a(this),s(e);var t=u(this),r=0;return o(t,function(t,i){if(e(t,r++))return i()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},6081:(e,t,r)=>{"use strict";var i=r(6486),o=r(170),s=r(9035),a=r(8107),u=r(813),c=r(7015),l=r(3211),f=r(4615),h=r(9909),p=r(8228),d=r(6650),g=r(6206),y=r(8186),m=r(7858),b=r(7392),v=r(7971),w=s.JSON,_=s.Number,S=s.SyntaxError,x=w&&w.parse,E=a("Object","keys"),O=Object.getOwnPropertyDescriptor,k=u("".charAt),j=u("".slice),T=u(/./.exec),R=u([].push),P=/^\d$/,M=/^[1-9]$/,A=/^(?:-|\d)$/,L=/^[\t\n\r ]$/,N=function(e,t){e=d(e);var r=new B(e,0,""),i=r.parse(),o=i.value,s=r.skip(L,i.end);if(s{"use strict";var i=r(6486),o=r(8971),s=r(8471).remove;i({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=o(this),r=!0,i=0,a=arguments.length;i{"use strict";var i=r(6486),o=r(8971),s=r(8471),a=s.get,u=s.has,c=s.set;i({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var r,i,s=o(this);return u(s,e)?(r=a(s,e),"update"in t&&(r=t.update(r,e,s),c(s,e,r)),r):(i=t.insert(e,s),c(s,e,i),i)}})},9467:(e,t,r)=>{"use strict";var i=r(6486),o=r(2942),s=r(8971),a=r(7921);i({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0);return!1!==a(t,function(e,i){if(!r(e,i,t))return!1},!0)}})},6811:(e,t,r)=>{"use strict";var i=r(6486),o=r(2942),s=r(8971),a=r(8471),u=r(7921),c=a.Map,l=a.set;i({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new c;return u(t,function(e,o){r(e,o,t)&&l(i,o,e)}),i}})},9502:(e,t,r)=>{"use strict";var i=r(6486),o=r(2942),s=r(8971),a=r(7921);i({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=a(t,function(e,i){if(r(e,i,t))return{key:i}},!0);return i&&i.key}})},408:(e,t,r)=>{"use strict";var i=r(6486),o=r(2942),s=r(8971),a=r(7921);i({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=a(t,function(e,i){if(r(e,i,t))return{value:e}},!0);return i&&i.value}})},8669:(e,t,r)=>{"use strict";var i=r(6486),o=r(9881),s=r(8971),a=r(7921);i({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===a(s(this),function(t){if(o(t,e))return!0},!0)}})},6136:(e,t,r)=>{"use strict";var i=r(6486),o=r(8971),s=r(7921);i({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=s(o(this),function(t,r){if(t===e)return{key:r}},!0);return t&&t.key}})},5803:(e,t,r)=>{"use strict";var i=r(6486),o=r(2942),s=r(8971),a=r(8471),u=r(7921),c=a.Map,l=a.set;i({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new c;return u(t,function(e,o){l(i,r(e,o,t),e)}),i}})},1536:(e,t,r)=>{"use strict";var i=r(6486),o=r(2942),s=r(8971),a=r(8471),u=r(7921),c=a.Map,l=a.set;i({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new c;return u(t,function(e,o){l(i,o,r(e,o,t))}),i}})},8625:(e,t,r)=>{"use strict";var i=r(6486),o=r(8971),s=r(2401),a=r(8471).set;i({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=o(this),r=arguments.length,i=0;i{"use strict";var i=r(6486),o=r(5966),s=r(8971),a=r(7921),u=TypeError;i({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=s(this),r=arguments.length<2,i=r?void 0:arguments[1];if(o(e),a(t,function(o,s){r?(r=!1,i=o):i=e(i,o,s,t)}),r)throw u("Reduce of empty map with no initial value");return i}})},3362:(e,t,r)=>{"use strict";var i=r(6486),o=r(2942),s=r(8971),a=r(7921);i({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0);return!0===a(t,function(e,i){if(r(e,i,t))return!0},!0)}})},821:(e,t,r)=>{"use strict";var i=r(6486),o=r(5966),s=r(8971),a=r(8471),u=TypeError,c=a.get,l=a.has,f=a.set;i({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var r=s(this),i=arguments.length;o(t);var a=l(r,e);if(!a&&i<3)throw u("Updating absent value");var h=a?c(r,e):o(i>2?arguments[2]:void 0)(e,r);return f(r,e,t(h,e,r)),r}})},7326:(e,t,r)=>{"use strict";var i=r(6486),o=r(5650),s=r(8509).add;i({target:"Set",proto:!0,real:!0,forced:!0},{addAll:function(){for(var e=o(this),t=0,r=arguments.length;t{"use strict";var i=r(6486),o=r(5650),s=r(8509).remove;i({target:"Set",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=o(this),r=!0,i=0,a=arguments.length;i{"use strict";var i=r(6486),o=r(7015),s=r(4652),a=r(2190);i({target:"Set",proto:!0,real:!0,forced:!0},{difference:function(e){return o(a,this,s(e))}})},4680:(e,t,r)=>{"use strict";var i=r(6486),o=r(2190);i({target:"Set",proto:!0,real:!0,forced:!r(5378)("difference")},{difference:o})},109:(e,t,r)=>{"use strict";var i=r(6486),o=r(2942),s=r(5650),a=r(1634);i({target:"Set",proto:!0,real:!0,forced:!0},{every:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0);return!1!==a(t,function(e){if(!r(e,e,t))return!1},!0)}})},8275:(e,t,r)=>{"use strict";var i=r(6486),o=r(2942),s=r(5650),a=r(8509),u=r(1634),c=a.Set,l=a.add;i({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new c;return u(t,function(e){r(e,e,t)&&l(i,e)}),i}})},1223:(e,t,r)=>{"use strict";var i=r(6486),o=r(2942),s=r(5650),a=r(1634);i({target:"Set",proto:!0,real:!0,forced:!0},{find:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=a(t,function(e){if(r(e,e,t))return{value:e}},!0);return i&&i.value}})},4709:(e,t,r)=>{"use strict";var i=r(6486),o=r(7015),s=r(4652),a=r(6246);i({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(e){return o(a,this,s(e))}})},1401:(e,t,r)=>{"use strict";var i=r(6486),o=r(7858),s=r(6246);i({target:"Set",proto:!0,real:!0,forced:!r(5378)("intersection")||o(function(){return"3,2"!==Array.from(new Set([1,2,3]).intersection(new Set([3,2])))})},{intersection:s})},7321:(e,t,r)=>{"use strict";var i=r(6486),o=r(7015),s=r(4652),a=r(4380);i({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(e){return o(a,this,s(e))}})},1596:(e,t,r)=>{"use strict";var i=r(6486),o=r(4380);i({target:"Set",proto:!0,real:!0,forced:!r(5378)("isDisjointFrom")},{isDisjointFrom:o})},6727:(e,t,r)=>{"use strict";var i=r(6486),o=r(7015),s=r(4652),a=r(8564);i({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(e){return o(a,this,s(e))}})},5923:(e,t,r)=>{"use strict";var i=r(6486),o=r(8564);i({target:"Set",proto:!0,real:!0,forced:!r(5378)("isSubsetOf")},{isSubsetOf:o})},9017:(e,t,r)=>{"use strict";var i=r(6486),o=r(7015),s=r(4652),a=r(2856);i({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(e){return o(a,this,s(e))}})},6169:(e,t,r)=>{"use strict";var i=r(6486),o=r(2856);i({target:"Set",proto:!0,real:!0,forced:!r(5378)("isSupersetOf")},{isSupersetOf:o})},7338:(e,t,r)=>{"use strict";var i=r(6486),o=r(813),s=r(5650),a=r(1634),u=r(6650),c=o([].join),l=o([].push);i({target:"Set",proto:!0,real:!0,forced:!0},{join:function(e){var t=s(this),r=void 0===e?",":u(e),i=[];return a(t,function(e){l(i,e)}),c(i,r)}})},1942:(e,t,r)=>{"use strict";var i=r(6486),o=r(2942),s=r(5650),a=r(8509),u=r(1634),c=a.Set,l=a.add;i({target:"Set",proto:!0,real:!0,forced:!0},{map:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new c;return u(t,function(e){l(i,r(e,e,t))}),i}})},7333:(e,t,r)=>{"use strict";var i=r(6486),o=r(5966),s=r(5650),a=r(1634),u=TypeError;i({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=s(this),r=arguments.length<2,i=r?void 0:arguments[1];if(o(e),a(t,function(o){r?(r=!1,i=o):i=e(i,o,o,t)}),r)throw u("Reduce of empty set with no initial value");return i}})},6426:(e,t,r)=>{"use strict";var i=r(6486),o=r(2942),s=r(5650),a=r(1634);i({target:"Set",proto:!0,real:!0,forced:!0},{some:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0);return!0===a(t,function(e){if(r(e,e,t))return!0},!0)}})},4197:(e,t,r)=>{"use strict";var i=r(6486),o=r(7015),s=r(4652),a=r(3208);i({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(e){return o(a,this,s(e))}})},4213:(e,t,r)=>{"use strict";var i=r(6486),o=r(3208);i({target:"Set",proto:!0,real:!0,forced:!r(5378)("symmetricDifference")},{symmetricDifference:o})},5646:(e,t,r)=>{"use strict";var i=r(6486),o=r(7015),s=r(4652),a=r(8734);i({target:"Set",proto:!0,real:!0,forced:!0},{union:function(e){return o(a,this,s(e))}})},1581:(e,t,r)=>{"use strict";var i=r(6486),o=r(8734);i({target:"Set",proto:!0,real:!0,forced:!r(5378)("union")},{union:o})},4300:e=>{"use strict";e.exports=require("buffer")},2081:e=>{"use strict";e.exports=require("child_process")},6113:e=>{"use strict";e.exports=require("crypto")},9523:e=>{"use strict";e.exports=require("dns")},2361:e=>{"use strict";e.exports=require("events")},7147:e=>{"use strict";e.exports=require("fs")},3685:e=>{"use strict";e.exports=require("http")},5687:e=>{"use strict";e.exports=require("https")},1808:e=>{"use strict";e.exports=require("net")},2037:e=>{"use strict";e.exports=require("os")},1017:e=>{"use strict";e.exports=require("path")},3477:e=>{"use strict";e.exports=require("querystring")},2781:e=>{"use strict";e.exports=require("stream")},1576:e=>{"use strict";e.exports=require("string_decoder")},6224:e=>{"use strict";e.exports=require("tty")},7310:e=>{"use strict";e.exports=require("url")},3837:e=>{"use strict";e.exports=require("util")},6144:e=>{"use strict";e.exports=require("vm")},1267:e=>{"use strict";e.exports=require("worker_threads")},9796:e=>{"use strict";e.exports=require("zlib")},799:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}(r(6224));let o=process.env||{},s=process.argv||[],a="NO_COLOR"in o||s.includes("--no-color"),u="FORCE_COLOR"in o||s.includes("--color"),c="win32"===process.platform,l=i&&i.isatty&&i.isatty(1)&&o.TERM&&"dumb"!==o.TERM,f=!a&&(u||c||l||"CI"in o&&("GITHUB_ACTIONS"in o||"GITLAB_CI"in o||"CIRCLECI"in o)),h=(e,t,r,i,o=t.substring(0,e)+i,s=t.substring(e+r.length),a=s.indexOf(r))=>o+(a<0?s:h(a,s,r,i)),p=(e,t,r,i,o)=>e<0?r+t+i:r+h(e,t,i,o)+i,d=(e,t,r=e,i=e.length+1)=>o=>o||!(""===o||void 0===o)?p((""+o).indexOf(t,i),o,e,t,r):"",g=(e,t,r)=>d(`\x1b[${e}m`,`\x1b[${t}m`,r),y={reset:g(0,0),bold:g(1,22,"\x1b[22m\x1b[1m"),dim:g(2,22,"\x1b[22m\x1b[2m"),italic:g(3,23),underline:g(4,24),inverse:g(7,27),hidden:g(8,28),strikethrough:g(9,29),black:g(30,39),red:g(31,39),green:g(32,39),yellow:g(33,39),blue:g(34,39),magenta:g(35,39),cyan:g(36,39),white:g(37,39),gray:g(90,39),bgBlack:g(40,49),bgRed:g(41,49),bgGreen:g(42,49),bgYellow:g(43,49),bgBlue:g(44,49),bgMagenta:g(45,49),bgCyan:g(46,49),bgWhite:g(47,49),blackBright:g(90,39),redBright:g(91,39),greenBright:g(92,39),yellowBright:g(93,39),blueBright:g(94,39),magentaBright:g(95,39),cyanBright:g(96,39),whiteBright:g(97,39),bgBlackBright:g(100,49),bgRedBright:g(101,49),bgGreenBright:g(102,49),bgYellowBright:g(103,49),bgBlueBright:g(104,49),bgMagentaBright:g(105,49),bgCyanBright:g(106,49),bgWhiteBright:g(107,49)},m=e=>e,b=({useColor:e=f}={})=>e?y:Object.keys(y).reduce((e,t)=>({...e,[t]:m}),{}),{reset:v,bold:w,dim:_,italic:S,underline:x,inverse:E,hidden:O,strikethrough:k,black:j,red:T,green:R,yellow:P,blue:M,magenta:A,cyan:L,white:N,gray:C,bgBlack:D,bgRed:I,bgGreen:B,bgYellow:$,bgBlue:q,bgMagenta:U,bgCyan:F,bgWhite:W,blackBright:G,redBright:H,greenBright:z,yellowBright:J,blueBright:V,magentaBright:K,cyanBright:Y,whiteBright:Q,bgBlackBright:X,bgRedBright:Z,bgGreenBright:ee,bgYellowBright:et,bgBlueBright:er,bgMagentaBright:en,bgCyanBright:ei,bgWhiteBright:eo}=b();t.bgBlack=D,t.bgBlackBright=X,t.bgBlue=q,t.bgBlueBright=er,t.bgCyan=F,t.bgCyanBright=ei,t.bgGreen=B,t.bgGreenBright=ee,t.bgMagenta=U,t.bgMagentaBright=en,t.bgRed=I,t.bgRedBright=Z,t.bgWhite=W,t.bgWhiteBright=eo,t.bgYellow=$,t.bgYellowBright=et,t.black=j,t.blackBright=G,t.blue=M,t.blueBright=V,t.bold=w,t.createColors=b,t.cyan=L,t.cyanBright=Y,t.dim=_,t.gray=C,t.green=R,t.greenBright=z,t.hidden=O,t.inverse=E,t.isColorSupported=f,t.italic=S,t.magenta=A,t.magentaBright=K,t.red=T,t.redBright=H,t.reset=v,t.strikethrough=k,t.underline=x,t.white=N,t.whiteBright=Q,t.yellow=P,t.yellowBright=J},1686:(e,t,r)=>{"use strict";let{isColorSupported:i}=r(799),o=r(2181),{Transform:s}=r(8118),a=r(2306),u=r(9316),c=r(8202),{ERROR_LIKE_KEYS:l,MESSAGE_KEY:f,TIMESTAMP_KEY:h,LEVEL_KEY:p,LEVEL_NAMES:d}=r(484),{isObject:g,prettifyErrorLog:y,prettifyLevel:m,prettifyMessage:b,prettifyMetadata:v,prettifyObject:w,prettifyTime:_,buildSafeSonicBoom:S,filterLog:x}=r(6741),E=e=>{try{return{value:u.parse(e,{protoAction:"remove"})}}catch(e){return{err:e}}},O={colorize:i,crlf:!1,errorLikeObjectKeys:l,errorProps:"",customLevels:null,customColors:null,useOnlyCustomProps:!0,levelFirst:!1,messageKey:f,messageFormat:!1,timestampKey:h,translateTime:!1,useMetadata:!1,outputStream:process.stdout,customPrettifiers:{},hideObject:!1,singleLine:!1};function k(e){let t=Object.assign({},O,e),r=t.crlf?"\r\n":"\n",i=" ",o=t.messageKey,s=t.levelKey,a=t.levelLabel,u=t.minimumLevel,l=t.messageFormat,f=t.timestampKey,h=t.errorLikeObjectKeys,S=t.errorProps.split(","),k="boolean"==typeof t.useOnlyCustomProps?t.useOnlyCustomProps:"true"===t.useOnlyCustomProps,j=t.customLevels?t.customLevels.split(",").reduce((e,t,r)=>{let[i,o=r]=t.split(":");return e[o]=i.toUpperCase(),e},{default:"USERLVL"}):{},T=t.customLevels?t.customLevels.split(",").reduce((e,t,r)=>{let[i,o=r]=t.split(":");return e[i.toLowerCase()]=o,e},{}):{},R=t.customColors?t.customColors.split(",").reduce((e,r)=>{let[i,o]=r.split(":"),s=k?t.customLevels:void 0!==T[i],a=s?T[i]:d[i],u=void 0!==a?a:i;return e.push([u,o]),e},[]):void 0,P={customLevels:j,customLevelNames:T};k&&!t.customLevels&&(P.customLevels=void 0,P.customLevelNames=void 0);let M=t.customPrettifiers,A=t.ignore?new Set(t.ignore.split(",")):void 0,L=t.hideObject,N=t.singleLine,C=c(t.colorize,R,k);return function(e){let c;if(g(e))c=e;else{let t=E(e);if(t.err||!g(t.value))return e+r;c=t.value}if(u){let e=k?t.customLevels:void 0!==T[u],r=(e?T[u]:d[u])||Number(u),i=c[void 0===s?p:s];if(i0?`${I} ${j}`:j),R&&(I=I.length>0?`${I} ${R}:`:R),!1===I.endsWith(":")&&""!==I&&(I+=":"),O&&(I=I.length>0?`${I} ${O}`:O),I.length>0&&!N&&(I+=r),"Error"===c.type&&c.stack){let e=y({log:c,errorLikeKeys:h,errorProperties:S,ident:i,eol:r});N&&(I+=r),I+=e}else if(!L){let e=[o,s,f].filter(e=>"string"==typeof c[e]||"number"==typeof c[e]),t=w({input:c,skipKeys:e,customPrettifiers:M,errorLikeKeys:h,eol:r,ident:i,singleLine:N,colorizer:C});N&&!/^\s$/.test(t)&&(I+=" "),I+=t}return I}}function j(e={}){let t=k(e);return a(function(r){let i;let a=new s({objectMode:!0,autoDestroy:!0,transform(e,r,i){let o=t(e);i(null,o)}});return i="object"==typeof e.destination&&"function"==typeof e.destination.write?e.destination:S({dest:e.destination||1,append:e.append,mkdir:e.mkdir,sync:e.sync}),r.on("unknown",function(e){i.write(e+"\n")}),o(r,a,i),a},{parse:"lines"})}e.exports=j,e.exports.prettyFactory=k,e.exports.colorizerFactory=c,e.exports.default=j},8202:(e,t,r)=>{"use strict";let{LEVELS:i,LEVEL_NAMES:o}=r(484),s=e=>e,a={default:s,60:s,50:s,40:s,30:s,20:s,10:s,message:s,greyMessage:s},{createColors:u}=r(799),c=u({useColor:!0}),{white:l,bgRed:f,red:h,yellow:p,green:d,blue:g,gray:y,cyan:m}=c,b={default:l,60:f,50:h,40:p,30:d,20:g,10:y,message:m,greyMessage:y};function v(e){return function(t,r,{customLevels:s,customLevelNames:a}={}){let u=e?s||i:Object.assign({},i,s),c=e?a||o:Object.assign({},o,a),l="default";l=Number.isInteger(+t)?Object.prototype.hasOwnProperty.call(u,t)?t:l:Object.prototype.hasOwnProperty.call(c,t.toLowerCase())?c[t.toLowerCase()]:l;let f=u[l];return Object.prototype.hasOwnProperty.call(r,l)?r[l](f):r.default(f)}}e.exports=function(e=!1,t,r){return e&&void 0!==t?function(e,t){let r=e.reduce(function(e,[t,r]){return e[t]="function"==typeof c[r]?c[r]:l,e},{default:l,message:m,greyMessage:y}),i=t?r:Object.assign({},b,r),o=v(t),s=function(e,t){return o(e,i,t)};return s.message=s.message||i.message,s.greyMessage=s.greyMessage||i.greyMessage,s}(t,r):e?function(e){let t=v(e),r=function(e,r){return t(e,b,r)};return r.message=b.message,r.greyMessage=b.greyMessage,r}(r):function(e){let t=v(e),r=function(e,r){return t(e,a,r)};return r.message=a.message,r.greyMessage=a.greyMessage,r}(r)}},484:e=>{"use strict";e.exports={DATE_FORMAT:"yyyy-mm-dd HH:MM:ss.l o",ERROR_LIKE_KEYS:["err","error"],MESSAGE_KEY:"msg",LEVEL_KEY:"level",LEVEL_LABEL:"levelLabel",TIMESTAMP_KEY:"time",LEVELS:{default:"USERLVL",60:"FATAL",50:"ERROR",40:"WARN",30:"INFO",20:"DEBUG",10:"TRACE"},LEVEL_NAMES:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},LOGGER_KEYS:["pid","hostname","name","level","time","timestamp","caller"]}},6741:(e,t,r)=>{"use strict";let i=r(3268)({circles:!0}),o=r(924),s=r(6755),a=r(2988),{isMainThread:u}=r(1267),c=r(8202)(),{DATE_FORMAT:l,ERROR_LIKE_KEYS:f,MESSAGE_KEY:h,LEVEL_KEY:p,LEVEL_LABEL:d,TIMESTAMP_KEY:g,LOGGER_KEYS:y,LEVELS:m}=r(484);function b(e,t=!1){if(!1===t)return e;let r=v(e);if(!w(r))return e;if(!0===t)return o(r,"UTC:"+l);let i=t.toUpperCase();if("SYS:STANDARD"===i)return o(r,l);let s=i.substr(0,4);return"SYS:"===s||"UTC:"===s?"UTC:"===s?o(r,t):o(r,t.slice(4)):o(r,`UTC:${t}`)}function v(e){let t=new Date(e);return w(t)?t:t=new Date(+e)}function w(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function _(e){return"[object Object]"===Object.prototype.toString.apply(e)}function S({input:e,ident:t=" ",eol:r="\n"}){let i=e.split(/\r?\n/);for(let e=1;e{if(!1===p.includes(i)){let u="function"==typeof o[i]?o[i](a,i,e):a;s.includes(i)?r[i]=u:t[i]=u}return{plain:t,errors:r}},{plain:{},errors:{}});return l?(Object.keys(g).length>0&&(d+=h.greyMessage(a(g))),d+=r):Object.entries(g).forEach(([e,i])=>{let s="function"==typeof o[e]?i:a(i,null,2);if(void 0===s)return;let u=S({input:s,ident:t,eol:r});d+=`${t}${e}:${u.startsWith(r)?"":" "}${u}${r}`}),Object.entries(m).forEach(([e,i])=>{let s="function"==typeof o[e]?i:a(i,null,2);void 0!==s&&(d+=E({keyName:e,lines:s,eol:r,ident:t}))}),d}function E({keyName:e,lines:t,eol:r,ident:i}){let o="",s=S({input:t,ident:i,eol:r}),a=`${i}${e}: ${s}${r}`.split(r);for(let e=0;e{Object.prototype.hasOwnProperty.call(e,t)&&(e=e[t])}),delete e[i]}function j(){}function T(e,t){e.destroyed||("beforeExit"===t?(e.flush(),e.on("drain",function(){e.end()})):e.flushSync())}e.exports={isObject:_,prettifyErrorLog:function({log:e,messageKey:t=h,ident:r=" ",eol:i="\n",errorLikeKeys:o=f,errorProperties:s=[]}){let a=e.stack,u=S({input:a,ident:r,eol:i}),c=`${r}${u}${i}`;if(s.length>0){let a;let u=y.concat(t,"type","stack");a="*"===s[0]?Object.keys(e).filter(e=>!1===u.includes(e)):s.filter(e=>!1===u.includes(e));for(let t=0;t`),""!==r)return r},prettifyObject:x,prettifyTime:function({log:e,timestampKey:t=g,translateFormat:r,prettifier:i}){let o=null;if(t in e?o=e[t]:"timestamp"in e&&(o=e.timestamp),null===o)return;let s=r?b(o,r):o;return i?i(s):`[${s}]`},buildSafeSonicBoom:function(e){let t=new s(e);return t.on("error",function e(r){if("EPIPE"===r.code){t.write=j,t.end=j,t.flushSync=j,t.destroy=j;return}t.removeListener("error",e)}),!e.sync&&u&&function(e){if(global.WeakRef&&global.WeakMap&&global.FinalizationRegistry){let t=r(3538);t.register(e,T),e.on("close",function(){t.unregister(e)})}}(t),t},filterLog:function(e,t){let r=i(e);return t.forEach(e=>{k(r,e)}),r}},e.exports.internals={formatTime:b,joinLinesWithIndentation:S,prettifyError:E,deleteLogProperty:k,splitIgnoreKey:O,createDate:v,isValidDate:w}},6755:(e,t,r)=>{"use strict";let i=r(7147),o=r(2361),s=r(3837).inherits,a=r(1017),u=r(160);function c(e,t){function r(r,i){if(r){t._reopening=!1,t._writing=!1,t._opening=!1,t.sync?process.nextTick(()=>{t.listenerCount("error")>0&&t.emit("error",r)}):t.emit("error",r);return}t.fd=i,t.file=e,t._reopening=!1,t._opening=!1,t._writing=!1,t.sync?process.nextTick(()=>t.emit("ready")):t.emit("ready"),!t._reopening&&(t._writing||!(t._len>t.minLength)||t.destroyed||h(t))}t._opening=!0,t._writing=!0,t._asyncDrainScheduled=!1;let o=t.append?"a":"w";if(t.sync)try{t.mkdir&&i.mkdirSync(a.dirname(e),{recursive:!0});let s=i.openSync(e,o);r(null,s)}catch(e){throw r(e),e}else t.mkdir?i.mkdir(a.dirname(e),{recursive:!0},t=>{if(t)return r(t);i.open(e,o,r)}):i.open(e,o,r)}function l(e){if(!(this instanceof l))return new l(e);let{fd:t,dest:r,minLength:o,sync:s,append:a=!0,mkdir:d,retryEAGAIN:g}=e||{};if(t=t||r,this._bufs=[],this._len=0,this.fd=-1,this._writing=!1,this._writingBuf="",this._ending=!1,this._reopening=!1,this._asyncDrainScheduled=!1,this._hwm=Math.max(o||0,16387),this.file=null,this.destroyed=!1,this.minLength=o||0,this.sync=s||!1,this.append=a||!1,this.retryEAGAIN=g||(()=>!0),this.mkdir=d||!1,"number"==typeof t)this.fd=t,process.nextTick(()=>this.emit("ready"));else if("string"==typeof t)c(t,this);else throw Error("SonicBoom supports only file descriptors and files");if(this.minLength>=16777216)throw Error("minLength should be smaller than MAX_WRITE (16777216)");this.release=(e,t)=>{if(e){if("EAGAIN"===e.code&&this.retryEAGAIN(e,this._writingBuf.length,this._len-this._writingBuf.length)){if(this.sync)try{u(100),this.release(void 0,0)}catch(e){this.release(e)}else setTimeout(()=>{i.write(this.fd,this._writingBuf,"utf8",this.release)},100)}else this._writing=!1,this.emit("error",e);return}if(this._len-=t,this._writingBuf=this._writingBuf.slice(t),this._writingBuf.length){if(!this.sync){i.write(this.fd,this._writingBuf,"utf8",this.release);return}try{do{let e=i.writeSync(this.fd,this._writingBuf,"utf8");this._len-=e,this._writingBuf=this._writingBuf.slice(e)}while(this._writingBuf)}catch(e){this.release(e);return}}let r=this._len;this._reopening?(this._writing=!1,this._reopening=!1,this.reopen()):r>this.minLength?h(this):this._ending?r>0?h(this):(this._writing=!1,p(this)):(this._writing=!1,this.sync?this._asyncDrainScheduled||(this._asyncDrainScheduled=!0,process.nextTick(f,this)):this.emit("drain"))},this.on("newListener",function(e){"drain"===e&&(this._asyncDrainScheduled=!1)})}function f(e){let t=e.listenerCount("drain")>0;t&&(e._asyncDrainScheduled=!1,e.emit("drain"))}function h(e){let t=e.release;if(e._writing=!0,e._writingBuf=e._writingBuf||e._bufs.shift(),e.sync)try{let r=i.writeSync(e.fd,e._writingBuf,"utf8");t(null,r)}catch(e){t(e)}else i.write(e.fd,e._writingBuf,"utf8",t)}function p(e){if(-1===e.fd){e.once("ready",p.bind(null,e));return}i.close(e.fd,t=>{if(t){e.emit("error",t);return}e._ending&&!e._writing&&e.emit("finish"),e.emit("close")}),e.destroyed=!0,e._bufs=[]}s(l,o),l.prototype.write=function(e){if(this.destroyed)throw Error("SonicBoom destroyed");let t=this._len+e.length,r=this._bufs;return!this._writing&&t>16777216?r.push(e):0===r.length?r[0]=""+e:r[r.length-1]+=e,this._len=t,!this._writing&&this._len>=this.minLength&&h(this),this._len{this.reopen(e)});return}if(this._ending)return;if(!this.file)throw Error("Unable to reopen a file descriptor, you must pass a file to SonicBoom");if(this._reopening=!0,this._writing)return;let t=this.fd;this.once("ready",()=>{t!==this.fd&&i.close(t,e=>{if(e)return this.emit("error",e)})}),c(e||this.file,this)},l.prototype.end=function(){if(this.destroyed)throw Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.end()});return}!this._ending&&(this._ending=!0,this._writing||(this._len>0&&this.fd>=0?h(this):p(this)))},l.prototype.flushSync=function(){if(this.destroyed)throw Error("SonicBoom destroyed");if(this.fd<0)throw Error("sonic boom is not ready yet");for(!this._writing&&this._writingBuf.length>0&&(this._bufs.unshift(this._writingBuf),this._writingBuf="");this._bufs.length;){let e=this._bufs[0];try{this._len-=i.writeSync(this.fd,e,"utf8"),this._bufs.shift()}catch(t){if("EAGAIN"!==t.code||!this.retryEAGAIN(t,e.length,this._len-e.length))throw t;u(100)}}},l.prototype.destroy=function(){this.destroyed||p(this)},l.SonicBoom=l,l.default=l,e.exports=l},8002:e=>{"use strict";e.exports=JSON.parse('{"name":"pino","version":"6.14.0","description":"super fast, all natural json logger","main":"pino.js","browser":"./browser.js","files":["pino.js","bin.js","browser.js","pretty.js","usage.txt","test","docs","example.js","lib"],"scripts":{"docs":"docsify serve","browser-test":"airtap --local 8080 test/browser*test.js","lint":"eslint .","test":"npm run lint && tap --100 test/*test.js test/*/*test.js","test-ci":"npm run lint && tap test/*test.js test/*/*test.js --coverage-report=lcovonly","cov-ui":"tap --coverage-report=html test/*test.js test/*/*test.js","bench":"node benchmarks/utils/runbench all","bench-basic":"node benchmarks/utils/runbench basic","bench-object":"node benchmarks/utils/runbench object","bench-deep-object":"node benchmarks/utils/runbench deep-object","bench-multi-arg":"node benchmarks/utils/runbench multi-arg","bench-longs-tring":"node benchmarks/utils/runbench long-string","bench-child":"node benchmarks/utils/runbench child","bench-child-child":"node benchmarks/utils/runbench child-child","bench-child-creation":"node benchmarks/utils/runbench child-creation","bench-formatters":"node benchmarks/utils/runbench formatters","update-bench-doc":"node benchmarks/utils/generate-benchmark-doc > docs/benchmarks.md"},"bin":{"pino":"./bin.js"},"precommit":"test","repository":{"type":"git","url":"git+https://github.com/pinojs/pino.git"},"keywords":["fast","logger","stream","json"],"author":"Matteo Collina ","contributors":["David Mark Clements ","James Sumners ","Thomas Watson Steen (https://twitter.com/wa7son)"],"license":"MIT","bugs":{"url":"https://github.com/pinojs/pino/issues"},"homepage":"http://getpino.io","devDependencies":{"airtap":"4.0.3","benchmark":"^2.1.4","bole":"^4.0.0","bunyan":"^1.8.14","docsify-cli":"^4.4.1","eslint":"^7.17.0","eslint-config-standard":"^16.0.2","eslint-plugin-import":"^2.22.1","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^5.1.0","execa":"^5.0.0","fastbench":"^1.0.1","flush-write-stream":"^2.0.0","import-fresh":"^3.2.1","log":"^6.0.0","loglevel":"^1.6.7","pino-pretty":"^5.0.0","pre-commit":"^1.2.2","proxyquire":"^2.1.3","pump":"^3.0.0","semver":"^7.0.0","split2":"^3.1.1","steed":"^1.1.3","strip-ansi":"^6.0.0","tap":"^15.0.1","tape":"^5.0.0","through2":"^4.0.0","winston":"^3.3.3"},"dependencies":{"fast-redact":"^3.0.0","fast-safe-stringify":"^2.0.8","process-warning":"^1.0.0","flatstr":"^1.0.12","pino-std-serializers":"^3.1.0","quick-format-unescaped":"^4.0.3","sonic-boom":"^1.0.2"}}')},4147:e=>{"use strict";e.exports=JSON.parse('{"name":"@unblockneteasemusic/server","version":"0.27.5-dev","description":"Revive unavailable songs for Netease Cloud Music","main":"src/provider/match.js","bin":{"unblockneteasemusic":"./precompiled/app.js"},"engines":{"node":">= 12"},"scripts":{"start:dev":"cross-env LOG_LEVEL=debug node src/app.js -e https://music.163.com","start":"cross-env node src/app.js -e https://music.163.com","build":"webpack","pkg":"pkg . --out-path=dist/","test":"jest"},"pkg":{"assets":["server.key","server.crt"],"targets":["node16-linux-arm64","node16-win-arm64","node16-linux-x64","node16-win-x64"],"outputPath":"dist"},"repository":{"type":"git","url":"https://github.com/UnblockNeteaseMusic/server.git"},"author":"nondanee, 1715173329, pan93412","license":"LGPL-3.0-only","dependencies":{"node-windows":"^1.0.0-beta.8","pino":"6.14.0","pino-pretty":"^7.6.1"},"devDependencies":{"@swc/core":"^1.3.87","@types/node":"^20.6.4","@types/pino":"6.3.12","@yarnpkg/sdks":"^3.0.0-rc.51","browserslist":"^4.21.11","core-js":"^3.32.2","cross-env":"^7.0.3","jest":"^29.7.0","pkg":"^5.8.1","prettier":"^3.0.3","swc-loader":"^0.2.3","terser-webpack-plugin":"^5.3.9","typescript":"^5.2.2","webpack":"^5.88.2","webpack-cli":"^5.1.4"},"resolutions":{"cacheable-request":"^10.2.9","minimatch":"^3.0.8","minimist":"^1.2.8","semver":"^7.5.4"},"publishConfig":{"access":"public"},"packageManager":"yarn@3.6.3"}')}},t={};function r(i){var o=t[i];if(void 0!==o)return o.exports;var s=t[i]={exports:{}};return e[i].call(s.exports,s,s.exports,r),s.exports}(()=>{"use strict";r(726),r(1966),r(6185),r(2092),r(139),r(1832),r(8352),r(5106),r(4774),r(2702);let e=r(4147),t=r(5796).program({name:e.name.replace(/@.+\//,""),version:e.version}).option(["-v","--version"],{action:"version"}).option(["-p","--port"],{metavar:"http[:https]",help:"specify server port"}).option(["-a","--address"],{metavar:"address",help:"specify server host"}).option(["-u","--proxy-url"],{metavar:"url",help:"request through upstream proxy"}).option(["-f","--force-host"],{metavar:"host",help:"force the netease server ip"}).option(["-o","--match-order"],{metavar:"source",nargs:"+",help:"set priority of sources"}).option(["-t","--token"],{metavar:"token",help:"set up proxy authentication"}).option(["-e","--endpoint"],{metavar:"url",help:"replace virtual endpoint with public host"}).option(["-s","--strict"],{action:"store_true",help:"enable proxy limitation"}).option(["-c","--cnrelay"],{metavar:"cnrelay",help:"Mainland China relay to get music url"}).option(["-h","--help"],{action:"help"}).parse(process.argv);if(global.address=t.address,t.port=(t.port||"8080:8081").split(":").map(e=>parseInt(e)),t.port.some(e=>isNaN(e)||e<1||e>65535)&&(console.log("Port must be a number higher than 0 and lower than 65535."),process.exit(1)),t.proxyUrl&&!/http(s?):\/\/.+:\d+/.test(t.proxyUrl)&&(console.log("Please check the proxy url."),process.exit(1)),t.endpoint?"-"===t.endpoint?t.endpoint="":/http(s?):\/\/.+/.test(t.endpoint)||(console.log("Please check the endpoint host."),process.exit(1)):t.endpoint="https://music.163.com",t.forceHost&&0===r(1808).isIP(t.forceHost)&&(console.log("Please check the server host."),process.exit(1)),t.matchOrder){let e=Object.keys(r(1784).PROVIDERS),i=t.matchOrder;i.some((e,t)=>t!=i.indexOf(e))?(console.log("Please check the duplication in match order."),process.exit(1)):i.some(t=>!e.includes(t))&&(console.log("Please check the availability of match sources."),process.exit(1)),global.source=i}t.token&&!/\S+:\S+/.test(t.token)&&(console.log("Please check the authentication token."),process.exit(1));let{logScope:i}=r(7691),o=r(7310).parse,s=r(403),a=r(8837),{CacheStorageGroup:u}=r(9220),c=i("app"),l=Array.from(s.target.host);global.port=t.port,global.proxy=t.proxyUrl?o(t.proxyUrl):null,global.hosts=l.reduce((e,r)=>Object.assign(e,{[r]:t.forceHost}),{}),a.whitelist=["://[\\w.]*music\\.126\\.net","://[\\w.]*vod\\.126\\.net","://acstatic-dun.126.net","://[\\w.]*\\.netease.com","://[\\w.]*\\.163yun.com"],global.cnrelay=t.cnrelay,t.strict&&a.blacklist.push(".*"),a.authentication=t.token||null,global.endpoint=t.endpoint,t.endpoint&&a.whitelist.push(escape(t.endpoint));let f="true"===process.env.ENABLE_HTTPDNS?[e=>r(5262)("POST","http://music.httpdns.c.163.com/d",{},e).then(e=>e.json()).then(e=>e.dns.reduce((e,t)=>e.concat(t.ips),[])),e=>r(5262)("GET","http://httpdns.n.netease.com/httpdns/v2/d?domain="+e).then(e=>e.json()).then(e=>Object.keys(e.data).map(t=>e.data[t]).reduce((e,t)=>e.concat(t.ip||[]),[]))]:[],h=u.getInstance();setInterval(()=>{h.cleanup()},9e5),Promise.all(f.map(e=>e(l.join(","))).concat(l.map(e=>new Promise((t,i)=>r(9523).lookup(e,{all:!0},(e,r)=>e?i(e):t(r.map(e=>e.address))))))).then(e=>{let{host:t}=s.target;e.forEach(e=>e.forEach(t.add,t)),a.whitelist=a.whitelist.concat(Array.from(t).map(escape));let r=e=>c.info(`${["HTTP","HTTPS"][e]} Server running @ http://${address||"0.0.0.0"}:${port[e]}`);port[0]&&a.http.listen(port[0],address).once("listening",()=>r(0)),port[1]&&a.https.listen(port[1],address).once("listening",()=>r(1)),cnrelay&&c.info(`CNRelay: ${cnrelay}`)}).catch(e=>{console.log(e),process.exit(1)})})()})(); \ No newline at end of file diff --git a/precompiled/bridge.js b/precompiled/bridge.js index ff627eb16f..907e2448c0 100644 --- a/precompiled/bridge.js +++ b/precompiled/bridge.js @@ -1,5 +1,5 @@ #!/usr/bin/env node -(()=>{var e={9220:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8105),r(1114),r(233),r(2051),r(5607),r(5148),r(9603),r(262),r(5636),r(646),r(2477),r(8778),r(5198),r(7494),r(5885),r(3390),r(9826),r(4049),r(4153),r(4594),r(5334),r(1747),r(5016),r(5321),r(4294),r(2189),r(5584),r(9018),r(7832),r(5736),r(3098),r(1133),r(5261),r(4427),r(427),r(764),r(1962),r(179),r(8540),r(5665);let{EventEmitter:i}=r(2361),{logScope:o}=r(7691),s=o("cache"),a={CLEANUP:"cs@cleanup"};class u extends i{id="Default Cache Storage";cacheMap=new Map;aliveDuration=18e5;constructor(e){super(),e&&(this.id=e),this.on(a.CLEANUP,async()=>this.removeExpiredCache())}get WillExpireAt(){return Date.now()+this.aliveDuration}getLoggerContext(e={}){return{...e,cacheStorageId:this.id}}removeExpiredCache(){s.debug(this.getLoggerContext(),"Cleaning up the expired caches..."),this.cacheMap.forEach((e,t)=>{e.expireAt<=Date.now()&&this.cacheMap.delete(t)})}async cache(e,t,r){if("true"===process.env.NO_CACHE)return t();this.emit(a.CLEANUP);let i=this.cacheMap.get(e),o="object"==typeof e?"Something":e,u=this.getLoggerContext({logKey:o});if(i)return s.debug(u,`${o} hit!`),i.data;s.debug(u,`${o} did not hit. Storing the execution result...`);let c=await t();return this.cacheMap.set(e,{data:c,expireAt:new Date(r||this.WillExpireAt)}),c}}class c{static instance=void 0;cacheStorages=new Set;constructor(){}static getInstance(){return c.instance||(c.instance=new c),c.instance}cleanup(){this.cacheStorages.forEach(e=>e.removeExpiredCache())}}let l=c.getInstance();e.exports={CacheStorage:u,CacheStorageEvents:a,CacheStorageGroup:c,getManagedCacheStorage:function(e){let t=new u(e);return l.cacheStorages.add(t),t}}},2188:(e,t,r)=>{"use strict";let i=r(2361),o="cancel";e.exports={CancelRequest:class extends i{cancelled=!1;cancel(){this.cancelled=!0,this.emit(o)}},ON_CANCEL:o}},1784:(e,t,r)=>{"use strict";let i={qq:r(9878),kugou:r(4840),kuwo:r(3081),migu:r(1549),joox:r(9788),youtube:r(8396),youtubedl:r(4396),ytdlp:r(8965),bilibili:r(8573),pyncmd:r(2085)};e.exports={DEFAULT_SOURCE:["kugou","kuwo","migu","bilibili","ytdlp"],PROVIDERS:i}},743:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9884),r(7887),r(9826),r(8458),r(9141);let i=r(6113),o=r(7310).parse,s=r(3477).stringify,a="e82ckenh8dichen8",u="rFgB&h#%2?^eDg:Q",c=(e,t)=>{let r=i.createDecipheriv("aes-128-ecb",t,null);return Buffer.concat([r.update(e),r.final()])},l=(e,t)=>{let r=i.createCipheriv("aes-128-ecb",t,null);return Buffer.concat([r.update(e),r.final()])};e.exports={eapi:{encrypt:e=>l(e,a),decrypt:e=>c(e,a),encryptRequest:(t,r)=>{t=o(t);let a=JSON.stringify(r),u=`nobody${t.path}use${a}md5forencrypt`,c=i.createHash("md5").update(u).digest("hex"),l=`${t.path}-36cd479b6b5-${a}-36cd479b6b5-${c}`;return{url:t.href.replace(/\w*api/,"eapi"),body:s({params:e.exports.eapi.encrypt(Buffer.from(l)).toString("hex").toUpperCase()})}}},linuxapi:{encrypt:e=>l(e,u),decrypt:e=>c(e,u),encryptRequest:(t,r)=>{t=o(t);let i=JSON.stringify({method:"POST",url:t.href,params:r});return{url:t.resolve("/api/linux/forward"),body:s({eparams:e.exports.linuxapi.encrypt(Buffer.from(i)).toString("hex").toUpperCase()})}}},miguapi:{encryptBody:e=>{let t=JSON.stringify(e),r=Buffer.from(i.randomBytes(32).toString("hex")),o=i.randomBytes(8),a=((e,t,r,o)=>{t=t||Buffer.alloc(0);let s=Math.ceil((32+8*o)/32),a=Buffer.concat(Array(s).fill(null).reduce(r=>r.concat(i.createHash("md5").update(Buffer.concat([r.slice(-1)[0],e,t])).digest()),[Buffer.alloc(0)]));return{key:a.slice(0,32),iv:a.slice(32,32+o)}})(r,o,0,16),u=i.createCipheriv("aes-256-cbc",a.key,a.iv);return s({data:Buffer.concat([Buffer.from("Salted__"),o,u.update(Buffer.from(t)),u.final()]).toString("base64"),secKey:i.publicEncrypt({key:"-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC8asrfSaoOb4je+DSmKdriQJKWVJ2oDZrs3wi5W67m3LwTB9QVR+cE3XWU21Nx+YBxS0yun8wDcjgQvYt625ZCcgin2ro/eOkNyUOTBIbuj9CvMnhUYiR61lC1f1IGbrSYYimqBVSjpifVufxtx/I3exReZosTByYp4Xwpb1+WAQIDAQAB\n-----END PUBLIC KEY-----",padding:i.constants.RSA_PKCS1_PADDING},r).toString("base64")})}},base64:{encode:(e,t)=>Buffer.from(e,t).toString("base64").replace(/\+/g,"-").replace(/\//g,"_"),decode:(e,t)=>Buffer.from(e.replace(/-/g,"+").replace(/_/g,"/"),"base64").toString(t)},uri:{retrieve:e=>{e=e.toString().trim();let t="3go8&$8*3*3h0k(2)2",r=Array.from(Array(e.length).keys()).map(r=>String.fromCharCode(e.charCodeAt(r)^t.charCodeAt(r%t.length))).join(""),o=i.createHash("md5").update(r).digest("base64").replace(/\//g,"_").replace(/\+/g,"-");return`http://p1.music.126.net/${o}/${e}`}},md5:{digest:e=>i.createHash("md5").update(e).digest("hex"),pipe:e=>new Promise((t,r)=>{let o=i.createHash("md5").setEncoding("hex");e.pipe(o).on("error",e=>r(e)).once("finish",()=>t(o.read()))})},sha1:{digest:e=>i.createHash("sha1").update(e).digest("hex")},random:{hex:e=>i.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}};try{e.exports.kuwoapi=r(5477)}catch(e){}},3942:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(2738),e.exports=class extends Error{constructor(e,t){super(`${e} exited with ${t}, which is not zero.`),this.process=e,this.exitCode=t,this.name="ProcessExitNotSuccessfully"}}},4113:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(2738),e.exports=class extends Error{constructor(e){super(`This request URL has been cancelled: ${e}`),this.name="RequestCancelled"}}},5467:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(2738),e.exports=class extends Error{constructor(e){super("The response of youtube-dl is malformed."),this.name="YoutubeDlInvalidResponse",this.response=e}}},58:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(2738),e.exports=class extends Error{constructor(){super('You must install "youtube-dl" before using the "youtubedl" source.'),this.name="YoutubeDlNotInstalled"}}},2962:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(2738),e.exports=class extends Error{constructor(e){super("The response of yt-dlp is malformed."),this.name="YtDlpInvalidResponse",this.response=e}}},8761:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(2738),e.exports=class extends Error{constructor(){super('You must install "yt-dlp" before using the "ytdlp" source.'),this.name="YtDlpNotInstalled"}}},5477:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9884),r(7887),r(9826),r(8458),r(9141),r(5885),r(3390);let i=e=>{let t=BigInt(e);return{low:Number(t),valueOf:()=>t.valueOf(),toString:()=>t.toString(),not:()=>i(~t),isNegative:()=>t<0,or:e=>i(t|BigInt(e)),and:e=>i(t&BigInt(e)),xor:e=>i(t^BigInt(e)),equals:e=>t===BigInt(e),multiply:e=>i(t*BigInt(e)),shiftLeft:e=>i(t<i(t>>BigInt(e))}},o=e=>Array.from(Array(e).keys()),s=(e,t)=>Array(t).fill(null).reduce(t=>t.multiply(e),i(1)),a=(...e)=>e.map(e=>-1===e?i(-1,-1):i(e)),u=a(31,0,1,2,3,4,-1,-1,3,4,5,6,7,8,-1,-1,7,8,9,10,11,12,-1,-1,11,12,13,14,15,16,-1,-1,15,16,17,18,19,20,-1,-1,19,20,21,22,23,24,-1,-1,23,24,25,26,27,28,-1,-1,27,28,29,30,31,30,-1,-1),c=a(57,49,41,33,25,17,9,1,59,51,43,35,27,19,11,3,61,53,45,37,29,21,13,5,63,55,47,39,31,23,15,7,56,48,40,32,24,16,8,0,58,50,42,34,26,18,10,2,60,52,44,36,28,20,12,4,62,54,46,38,30,22,14,6),l=a(39,7,47,15,55,23,63,31,38,6,46,14,54,22,62,30,37,5,45,13,53,21,61,29,36,4,44,12,52,20,60,28,35,3,43,11,51,19,59,27,34,2,42,10,50,18,58,26,33,1,41,9,49,17,57,25,32,0,40,8,48,16,56,24),f=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1],h=a(0,1048577,3145731),d=o(64).map(e=>s(2,e));d[d.length-1]=d[d.length-1].multiply(-1);let p=a(15,6,19,20,28,11,27,16,0,14,22,25,4,17,30,9,1,7,23,13,31,26,2,8,18,12,29,5,21,10,3,24),y=a(56,48,40,32,24,16,8,0,57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,60,52,44,36,28,20,12,4,27,19,11,3),g=a(13,16,10,23,0,4,-1,-1,2,27,14,5,20,9,-1,-1,22,18,11,3,25,7,-1,-1,15,6,26,19,12,1,-1,-1,40,51,30,36,46,54,-1,-1,29,39,50,44,32,47,-1,-1,43,48,38,55,33,52,-1,-1,45,41,49,35,28,31,-1,-1),m=[[14,4,3,15,2,13,5,3,13,14,6,9,11,2,0,5,4,1,10,12,15,6,9,10,1,8,12,7,8,11,7,0,0,15,10,5,14,4,9,10,7,8,12,3,13,1,3,6,15,12,6,11,2,9,5,0,4,2,11,14,1,7,8,13],[15,0,9,5,6,10,12,9,8,7,2,12,3,13,5,2,1,14,7,8,11,4,0,3,14,11,13,6,4,1,10,15,3,13,12,11,15,3,6,0,4,10,1,7,8,4,11,14,13,8,0,6,2,15,9,5,7,1,10,12,14,2,5,9],[10,13,1,11,6,8,11,5,9,4,12,2,15,3,2,14,0,6,13,1,3,15,4,10,14,9,7,12,5,0,8,7,13,1,2,4,3,6,12,11,0,13,5,14,6,8,15,2,7,10,8,15,4,9,11,5,9,0,14,3,10,7,1,12],[7,10,1,15,0,12,11,5,14,9,8,3,9,7,4,8,13,6,2,1,6,11,12,2,3,0,5,14,10,13,15,4,13,3,4,9,6,10,1,12,11,0,2,5,0,13,14,2,8,15,7,4,15,1,10,7,5,6,12,11,3,8,9,14],[2,4,8,15,7,10,13,6,4,1,3,12,11,7,14,0,12,2,5,9,10,13,0,3,1,11,15,5,6,8,9,14,14,11,5,6,4,1,3,10,2,12,15,0,13,2,8,5,11,8,0,15,7,14,9,4,12,7,10,9,1,13,6,3],[12,9,0,7,9,2,14,1,10,15,3,4,6,12,5,11,1,14,13,0,2,8,7,13,15,5,4,10,8,3,11,6,10,4,6,11,7,9,0,6,4,2,13,1,9,15,3,8,15,3,1,14,12,5,11,0,2,12,14,7,5,10,8,13],[4,1,3,10,15,12,5,0,2,11,9,6,8,7,6,9,11,4,12,15,0,3,10,5,14,13,7,8,13,14,1,2,13,6,14,9,4,1,2,14,11,13,5,0,1,10,8,3,0,11,3,5,9,4,15,2,7,8,12,15,10,7,6,12],[13,7,10,0,6,9,5,15,8,4,3,10,11,14,12,5,2,11,9,6,15,12,0,3,4,1,14,13,1,2,7,8,1,2,12,15,10,4,0,3,13,14,6,9,7,8,9,6,15,1,5,12,3,10,14,5,8,7,11,0,4,13,2,11]],b=(e,t,r)=>{let s=i(0);return o(t).forEach(t=>{e[t].isNegative()||r.and(d[e[t].low]).equals(0)||(s=s.or(d[t]))}),s},v=(e,t)=>{let r=o(8).map(()=>i(0)),s=[i(0),i(0)],a=i(0),f=i(0),h=b(c,64,t);return s[0]=h.and(4294967295),s[1]=h.and(-4294967296).shiftRight(32),o(16).forEach(t=>{let c=i(0);f=(f=b(u,64,f=i(s[1]))).xor(e[t]),o(8).forEach(e=>{r[e]=f.shiftRight(8*e).and(255)}),o(8).reverse().forEach(e=>{c=c.shiftLeft(4).or(m[e][r[e]])}),f=b(p,32,c),a=i(s[0]),s[0]=i(s[1]),s[1]=a.xor(f)}),s.reverse(),h=b(l,64,h=s[1].shiftLeft(32).and(-4294967296).or(s[0].and(4294967295)))},w=(e,t,r)=>{let i=b(y,56,e);o(16).forEach(e=>{i=i.and(h[f[e]]).shiftLeft(28-f[e]).or(i.and(h[f[e]].not()).shiftRight(f[e])),t[e]=b(g,64,i)}),1===r&&o(8).forEach(e=>{[t[e],t[15-e]]=[t[15-e],t[e]]})},_=(e,t,r)=>{let s=i(0);o(8).forEach(e=>{s=i(t[e]).shiftLeft(8*e).or(s)});let a=Math.floor(e.length/8),u=o(16).map(()=>i(0));w(s,u,r);let c=o(a).map(()=>i(0));o(a).forEach(t=>{o(8).forEach(r=>{c[t]=i(e[r+8*t]).shiftLeft(8*r).or(c[t])})});let l=o(Math.floor((1+8*(a+1))/8)).map(()=>i(0));o(a).forEach(e=>{l[e]=v(u,c[e])});let f=e.slice(8*a),h=i(0);o(e.length%8).forEach(e=>{h=i(f[e]).shiftLeft(8*e).or(h)}),(f.length||0===r)&&(l[a]=v(u,h));let d=o(8*l.length).map(()=>0),p=0;return l.forEach(e=>{o(8).forEach(t=>{d[p]=e.shiftRight(8*t).and(255).low,p+=1})}),Buffer.from(d)},S=Buffer.from("ylzsxkwm"),x=e=>_(e,S,0);e.exports={encrypt:x,decrypt:e=>_(e,S,1),encryptQuery:e=>x(Buffer.from(e)).toString("base64")}},7691:(e,t,r)=>{"use strict";var i;let o=r(8167),s=process.env.LOG_FILE,a=process.stdout.isTTY,u=o({level:null!==(i=process.env.LOG_LEVEL)&&void 0!==i?i:"info",prettyPrint:"true"!==process.env.JSON_LOG&&{colorize:a,messageFormat:a?"\x1b[1m\x1b[32m({scope})\x1b[0m\x1b[36m {msg}":"({scope}) {msg}",ignore:"time,pid,hostname,scope",errorProps:"*"}},s&&o.destination(s));e.exports={logger:u,logScope:function(e){return u.child({scope:e})}}},8573:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8458),r(9141);let{cacheStorage:i,CacheStorageGroup:o,getManagedCacheStorage:s}=r(9220),a=r(2290),u=r(2822),c=r(5262),l=e=>({id:e.id,name:e.title,artists:{id:e.mid,name:e.author}}),f=e=>{let t=`https://api.bilibili.com/audio/music-service-c/s?search_type=music&page=1&pagesize=30&keyword=${encodeURIComponent(e.keyword)}`;return c("GET",t).then(e=>e.json()).then(t=>{let r=t.data.result.map(l),i=u(r,e);return i?i.id:Promise.reject()})},h=e=>{let t="https://www.bilibili.com/audio/music-service-c/web/url?rivilege=2&quality=2&sid="+e;return c("GET",t).then(e=>e.json()).then(e=>0===e.code?e.data.cdns[0].replace("https","http"):Promise.reject()).catch(()=>a().bilibili.track(e))},d=s("provider/bilibili");e.exports={check:e=>d.cache(e,()=>f(e)).then(h),track:h}},2290:(e,t,r)=>{"use strict";let i=r(5262);e.exports=()=>{let t=global.cnrelay,r=new Proxy(()=>{},{get:(e,t)=>(e.route=(e.route||[]).concat(t),r),apply:(r,o,s)=>{if(e.exports.disable||!t)return Promise.reject();let a=r.route.join("/"),u="object"==typeof s[0]?JSON.stringify(s[0]):s[0];return i("GET",`${t}/${a}?${encodeURIComponent(u)}`).then(e=>e.body())}});return r}},9788:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8458),r(9141),r(6497);let i=r(2290),o=r(2822),s=r(743),a=r(5262),{getManagedCacheStorage:u}=r(9220),c={origin:"http://www.joox.com",referer:"http://www.joox.com",cookie:process.env.JOOX_COOKIE||null},l=e=>/[\u0800-\u4e00]/.test(e.name)?e.name:e.keyword,f=e=>{let{decode:t}=s.base64;return{id:e.songid,name:t(e.info1||""),duration:1e3*e.playtime,album:{id:e.albummid,name:t(e.info3||"")},artists:e.singer_list.map(({id:e,name:r})=>({id:e,name:t(r||"")}))}},h=e=>{let t=l(e),r="http://api-jooxtt.sanook.com/web-fcgi-bin/web_search?country=hk&lang=zh_TW&search_input="+encodeURIComponent(t)+"&sin=0&ein=30";return a("GET",r,c).then(e=>e.body()).then(t=>{let r=JSON.parse(t.replace(/'/g,'"')),i=r.itemlist.map(f),s=o(i,e);return s?s.id:Promise.reject()})},d=e=>{let t="http://api.joox.com/web-fcgi-bin/web_get_songinfo?songid="+e+"&country=hk&lang=zh_cn&from_type=-1&channel_id=-1&_="+new Date().getTime();return a("GET",t,c).then(e=>e.jsonp()).then(e=>{let t=(e.r320Url||e.r192Url||e.mp3Url||e.m4aUrl).replace(/M\d00([\w]+).mp3/,"M800$1.mp3");return t||Promise.reject()}).catch(()=>i().joox.track(e))},p=u("provider/joox");e.exports={check:e=>p.cache(e,()=>h(e)).then(d),track:d}},4840:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8458),r(9141),r(6794),r(3354),r(9826);let i=r(2290),o=r(2822),s=r(743),a=r(5262),{getManagedCacheStorage:u}=r(9220),c=e=>({id:e.hash,id_hq:e["320hash"],id_sq:e.sqhash,name:e.songname,duration:1e3*e.duration,album:{id:e.album_id,name:e.album_name}}),l=e=>{let t="http://mobilecdn.kugou.com/api/v3/search/song?keyword="+encodeURIComponent(e.keyword)+"&page=1&pagesize=10";return a("GET",t).then(e=>e.json()).then(t=>{let r=t.data.info.map(c),i=o(r,e);return i||Promise.reject()}).catch(()=>i().kugou.search(e))},f=(e,t)=>{let r=()=>{switch(t){case"hash":return e.id;case"hqhash":return e.id_hq;case"sqhash":return e.id_sq}return""},i="http://trackercdn.kugou.com/i/v2/?key="+s.md5.digest(`${r()}kgcloudv2`)+"&hash="+r()+"&appid=1005&pid=2&cmd=25&behavior=play&album_id="+e.album.id;return a("GET",i).then(e=>e.json()).then(e=>e.url[0]||Promise.reject())},h=e=>Promise.all(["sqhash","hqhash","hash"].slice(o.ENABLE_FLAC?0:1).map(t=>f(e,t).catch(()=>null))).then(e=>e.find(e=>e)||Promise.reject()).catch(()=>i().kugou.track(e)),d=u("provider/kugou");e.exports={check:e=>d.cache(e,()=>l(e)).then(h),search:l}},3081:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8458),r(9141);let i=r(2290),o=r(2822),s=r(743),a=r(5262),{getManagedCacheStorage:u}=r(9220),c=e=>({id:e.MUSICRID.split("_").pop(),name:e.SONGNAME,duration:1e3*e.DURATION,album:{id:e.ALBUMID,name:e.ALBUM},artists:e.ARTIST.split("&").map((t,r)=>({id:r?null:e.ARTISTID,name:t}))}),l=e=>{let t=encodeURIComponent(e.keyword.replace(" - "," "));return a("GET","http://search.kuwo.cn/r.s?&correct=1&stype=comprehensive&encoding=utf8&rformat=json&mobi=1&show_copyright_off=1&searchapi=6&all="+t).then(e=>e.json()).then(t=>{if(!t||t.content.length<2||!t.content[1].musicpage||t.content[1].musicpage.abslist.length<1)return Promise.reject();let r=t.content[1].musicpage.abslist.map(c),i=o(r,e);return i?i.id:Promise.reject()})},f=e=>{let t=s.kuwoapi?"http://mobi.kuwo.cn/mobi.s?f=kuwo&q="+s.kuwoapi.encryptQuery("corp=kuwo&p2p=1&type=convert_url2&sig=0&format="+["flac","mp3"].slice(o.ENABLE_FLAC?0:1).join("|")+"&rid="+e):"http://antiserver.kuwo.cn/anti.s?type=convert_url&format=mp3&response=url&rid=MUSIC_"+e;return a("GET",t,{"user-agent":"okhttp/3.10.0"}).then(e=>e.body()).then(e=>{let t=(e.match(/http[^\s$"]+/)||[])[0];return t||Promise.reject()}).catch(()=>i().kuwo.track(e))},h=u("provider/kuwo");e.exports={check:e=>h.cache(e,()=>l(e)).then(f),track:f}},1549:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8458),r(9141),r(6794),r(3354),r(9826);let i=r(2290),o=r(2822),s=r(5262),{getManagedCacheStorage:a}=r(9220),u={origin:"http://music.migu.cn/",referer:"http://m.music.migu.cn/v3/",aversionid:process.env.MIGU_COOKIE||null,channel:"0146921"},c=e=>{let t=e.singerId.split(/\s*,\s*/),r=e.singerName.split(/\s*,\s*/);return{id:e.id,name:e.title,album:{id:e.albumId,name:e.albumName},artists:t.map((e,t)=>({id:e,name:r[t]}))}},l=e=>{let t="https://m.music.migu.cn/migu/remoting/scr_search_tag?keyword="+encodeURIComponent(e.keyword)+"&type=2&rows=20&pgc=1";return s("GET",t,u).then(e=>e.json()).then(t=>{let r=((t||{}).musics||[]).map(c),i=o(r,e);return i?i.id:Promise.reject()})},f=(e,t)=>{let r="https://app.c.nf.migu.cn/MIGUM2.0/strategy/listen-url/v2.4?netType=01&resourceType=2&songId="+e.toString()+"&toneFlag="+t;return s("GET",r,u).then(e=>e.json()).then(e=>{let{audioFormatType:i}=e.data;return i!==t?Promise.reject():r?e.data.url:Promise.reject()})},h=e=>Promise.all(["ZQ24","SQ","HQ","PQ"].slice(o.ENABLE_FLAC?0:2).map(t=>f(e,t).catch(()=>null))).then(e=>e.find(e=>e)||Promise.reject()).catch(()=>i().migu.track(e)),d=a("provider/migu");e.exports={check:e=>d.cache(e,()=>l(e)).then(h),track:h}},2085:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(6794),r(3354),r(9826);let i=r(2822),o=r(5262),{getManagedCacheStorage:s}=r(9220),a=e=>{let t="https://pyncmd.apis.imouto.in/api/pyncm?module=track&method=GetTrackAudio&song_ids="+e.id+"&bitrate="+["999000","320000"].slice(i.ENABLE_FLAC?0:1,i.ENABLE_FLAC?1:2);return o("GET",t).then(e=>e.json()).then(t=>{if(t&&"object"==typeof t&&"code"in t&&200!==t.code)return Promise.reject();let r=t.data.find(t=>t.id===e.id);return r&&r.url?r.url:Promise.reject()})},u=s("provider/pyncmd");e.exports={check:e=>u.cache(e,()=>a(e))}},9878:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8458),r(9141),r(6794),r(3354),r(9826);let i=r(2290),o=r(2822),s=r(5262),{getManagedCacheStorage:a}=r(9220),u={origin:"http://y.qq.com/",referer:"http://y.qq.com/",cookie:process.env.QQ_COOKIE||null},c=e=>({id:{song:e.mid,file:e.mid},name:e.name,duration:1e3*e.interval,album:{id:e.album.mid,name:e.album.name},artists:e.singer.map(({mid:e,name:t})=>({id:e,name:t}))}),l=e=>{let t="https://u.y.qq.com/cgi-bin/musicu.fcg?data="+encodeURIComponent(JSON.stringify({search:{method:"DoSearchForQQMusicDesktop",module:"music.search.SearchCgiService",param:{num_per_page:5,page_num:1,query:e.keyword,search_type:0}}}));return s("GET",t,u).then(e=>e.json()).then(t=>{let r=t.search.data.body.song.list.map(c),i=o(r,e);return i?i.id:Promise.reject()})},f=(e,t)=>{let r=((u.cookie||"").match(/uin=(\d+)/)||[])[1]||"0",i="https://u.y.qq.com/cgi-bin/musicu.fcg?data="+encodeURIComponent(JSON.stringify({req_0:{module:"vkey.GetVkeyServer",method:"CgiGetVkey",param:{guid:(1e7*Math.random()).toFixed(0),loginflag:1,filename:t[0]?[t.join(e.file)]:null,songmid:[e.song],songtype:[0],uin:r,platform:"20"}}}));return s("GET",i,u).then(e=>e.json()).then(e=>{let{sip:t,midurlinfo:r}=e.req_0.data;if(!r[0].purl)return Promise.reject();let i=t[0]+r[0].purl;return s("GET",i,{range:"bytes=0-8191","accept-encoding":"identity"}).then(e=>e.statusCode<200||e.statusCode>299?Promise.reject():i)})},h=e=>(e.key=e.file,Promise.all([["F000",".flac"],["M800",".mp3"],["M500",".mp3"],[null,null]].slice(u.cookie||"undefined"!=typeof window?o.ENABLE_FLAC?0:1:2).map(t=>f(e,t).catch(()=>null))).then(e=>e.find(e=>e)||Promise.reject()).catch(()=>i().qq.track(e))),d=a("provider/qq");e.exports={check:e=>d.cache(e,()=>l(e)).then(h),track:h}},2822:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(6794),r(3354),r(9826),e.exports=(e,t)=>{let{duration:r}=t,i=e.slice(0,5).find(e=>e.duration&&5e3>Math.abs(e.duration-r));return i||e[0]},e.exports.ENABLE_FLAC="true"===(process.env.ENABLE_FLAC||"").toLowerCase()},4396:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(6497);let{getManagedCacheStorage:i}=r(9220),{logScope:o}=r(7691),s=r(5467),a=r(58),{spawnStdout:u}=r(7581),c=e=>["-f","140","--dump-json",e],l=e=>`https://www.youtube.com/watch?v=${e}`,f=e=>`ytsearch1:${e}`,h=o("provider/youtube-dl");async function d(e){try{let{stdout:t}=await u("youtube-dl",e),r=JSON.parse(t.toString());if("object"==typeof r&&"string"==typeof r.id&&"string"==typeof r.url)return r;throw new s(r)}catch(e){if(e&&"ENOENT"===e.code)throw new a;throw e}}let p=async e=>{let{id:t}=await d(c(f(e.keyword)));return t},y=async e=>{let{url:t}=await d(c(l(e)));return t},g=i("youtube-dl");e.exports={check:e=>g.cache(e,()=>p(e)).then(y).catch(e=>{throw e&&h.error(e),e}),track:y}},8396:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9884),r(7887),r(9826),r(8458),r(9141),r(6497),r(6794),r(3354);let i=r(5262),{getManagedCacheStorage:o}=r(9220),s=e=>(e||"").split("&").reduce((e,t)=>{let r=t.split("=").map(decodeURIComponent);return Object.assign({},e,{[r[0]]:r[1]})},{}),a=o("provider/youtube"),u=void 0,c=process.env.YOUTUBE_KEY||null,l=(e="-tKVN2mAKRI")=>{let t=`https://www.youtube.com/watch?v=${e}`;return i("GET",t,{},null,u).then(e=>e.body()).then(e=>{let t=/"WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_VERTICAL_LANDING_PAGE_PROMO":{[^}]+}/.exec(e)[0];return i("GET","https://youtube.com"+(t=JSON.parse(`{${t}}}`).WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_VERTICAL_LANDING_PAGE_PROMO).jsUrl,{},null,u).then(e=>e.body())}).then(e=>{let[,t,r]=/function\((\w+)\)\s*{([^}]+split\(""\)[^}]+join\(""\))};/.exec(e),i=/;(.+?)\..+?\(/.exec(r)[1],o=RegExp(`var ${i}={[\\s\\S]+?};`).exec(e)[0];return Function([t],o+"\n"+r)})},f=e=>{let t=`https://www.googleapis.com/youtube/v3/search?part=snippet&q=${encodeURIComponent(e.keyword)}&type=video&key=${c}`;return i("GET",t,{accept:"application/json"},null,u).then(e=>e.json()).then(e=>{let t=e.items[0];return t?t.id.videoId:Promise.reject()})},h=e=>{let t=`https://www.youtube.com/results?search_query=${encodeURIComponent(e.keyword)}`;return i("GET",t,{},null,u).then(e=>e.body()).then(e=>{let t=JSON.parse(e.match(/ytInitialData\s*=\s*([^;]+);/)[1]),r=t.contents.twoColumnSearchResultsRenderer.primaryContents.sectionListRenderer.contents[0].itemSectionRenderer.contents[1];return r?r.videoRenderer.videoId:Promise.reject()})},d=e=>{let t=`https://www.youtube.com/watch?v=${e}`;return i("GET",t,{},null,u).then(e=>e.body()).then(e=>JSON.parse(e.match(/ytInitialPlayerResponse\s*=\s*{[^]+};\s*var\s*meta/)[0].replace(/;var meta/,"").replace(/ytInitialPlayerResponse = /,"")).streamingData).then(e=>{let t=e.formats.concat(e.adaptiveFormats).find(e=>140===e.itag),r=s(t.signatureCipher);return t.url||(r.sp.includes("sig")?a.cache("YOUTUBE_SIGNATURE",()=>l(),Date.now()+864e5).then(e=>r.url+"&sig="+e(r.s)):r.url)})};e.exports={check:e=>a.cache(e,()=>c?f(e):h(e)).then(d),track:d}},8965:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(6497);let{getManagedCacheStorage:i}=r(9220),{logScope:o}=r(7691),{spawnStdout:s}=r(7581),a=r(2962),u=r(8761),c=e=>["-f","140","--dump-json",e],l=e=>`https://www.youtube.com/watch?v=${e}`,f=e=>`ytsearch1:${e}`,h=o("provider/yt-dlp");async function d(e){try{let{stdout:t}=await s("yt-dlp",e),r=JSON.parse(t.toString());if("object"==typeof r&&"string"==typeof r.id&&"string"==typeof r.url)return r;throw new a(r)}catch(e){if(e&&"ENOENT"===e.code)throw new u;throw e}}let p=async e=>{let{id:t}=await d(c(f(e.keyword)));return t},y=async e=>{let{url:t}=await d(c(l(e)));return t},g=i("yt-dlp");e.exports={check:e=>g.cache(e,()=>p(e)).then(y).catch(e=>{throw e&&h.error(e),e}),track:y}},5262:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9884),r(7887),r(9826),r(2961),r(6497);let i=r(9796),o=r(3685),s=r(5687),a=r(2188),u=r(4113),{logScope:c}=r(7691),l=r(7310).parse,f=r(7310).format,h=c("request"),d=e=>(global.hosts||{})[e]||e,p=(e,t)=>("https:"===((void 0===t?global.proxy:t)||e).protocol?s:o).request,y=(e,t,r,i)=>{r=r||{},i=void 0===i?global.proxy:i,"content-length"in r&&delete r["content-length"];let o={};return o._headers=r,i&&"https:"===t.protocol?(o.method="CONNECT",o.headers=Object.keys(r).reduce((e,t)=>Object.assign(e,["host","user-agent"].includes(t)&&{[t]:r[t]}),{})):(o.method=e,o.headers=r),i?(o.hostname=d(i.hostname),o.port=i.port||("https:"===i.protocol?443:80),o.path="https:"===t.protocol?d(t.hostname)+":"+(t.port||443):"http://"+d(t.hostname)+t.path):(o.hostname=d(t.hostname),o.port=t.port||("https:"===t.protocol?443:80),o.path=t.path),o},g=(e,t,r,i,o,c)=>{let d=l(t),w=r||{},_=y(e,d,{host:d.hostname,accept:"application/json, text/plain, */*","accept-encoding":"gzip, deflate","accept-language":"zh-CN,zh;q=0.9","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36",...w},o);return new Promise((r,l)=>{var y;h.debug(`Start requesting ${t}`);let g=p(d,o)(_),m=function(){g.destroy(new u(f(d)))};null==c||c.on(a,m),null!==(y=null==c?void 0:c.cancelled)&&void 0!==y&&y&&m(),g.setTimeout(1e4,()=>{h.warn({url:f(d)},"The request timed out, or the requester didn't handle the response."),m()}).on("response",e=>r(e)).on("connect",(t,o)=>{h.debug("received CONNECT, continuing with https.request()..."),s.request({method:e,path:d.path,headers:_._headers,socket:o,agent:!1}).on("response",e=>r(e)).on("error",e=>l(e)).end(i)}).on("error",e=>l(e)).end("CONNECT"===_.method.toUpperCase()?void 0:i)}).then(t=>{var r;if(null!==(r=null==c?void 0:c.cancelled)&&void 0!==r&&r)return Promise.reject(new u(f(d)));if([201,301,302,303,307,308].includes(t.statusCode)){let r=d.resolve(t.headers.location||d.href);return h.debug(`Redirect to ${r}`),delete w.host,g(e,r,w,i,o)}return Object.assign(t,{url:d,body:e=>m(t,e),json:()=>b(t),jsonp:()=>v(t)})})},m=(e,t)=>new Promise((t,r)=>{let i=[];e.on("data",e=>i.push(e)).on("end",()=>t(Buffer.concat(i))).on("error",e=>r(e))}).then(r=>{if(r.length)switch(e.headers["content-encoding"]){case"deflate":case"gzip":r=i.unzipSync(r);break;case"br":r=i.brotliDecompressSync(r)}return t?r:r.toString()}),b=e=>m(e,!1).then(e=>JSON.parse(e)),v=e=>m(e,!1).then(e=>JSON.parse(e.slice(e.indexOf("(")+1,-1)));g.read=m,g.create=p,g.translate=d,g.configure=y,e.exports=g},7581:(e,t,r)=>{"use strict";let i=r(2081),{logScope:o}=r(7691),s=r(3942),a=o("spawn");async function u(e,t=[]){return new Promise((r,o)=>{let u=0,c=0,l=Buffer.alloc(5e6),f=Buffer.alloc(5e6),h=i.spawn(e,t);h.on("spawn",()=>{a.info(`running ${e} ${t.join(" ")}`)}),h.on("error",e=>o(e)),h.on("close",t=>{0!==t?o(new s(e,t)):(a.debug(`process ${e} exited successfully`),r({stdout:l.slice(0,u),stderr:f.slice(0,c)}))}),h.stdout.on("data",e=>{u+=e.copy(l,u)}),h.stderr.on("data",t=>{a.warn(`[${e}][stderr] ${t}`),c+=t.copy(f,c)})})}e.exports={spawnStdout:u}},160:e=>{"use strict";if("undefined"!=typeof SharedArrayBuffer&&"undefined"!=typeof Atomics){let t=new Int32Array(new SharedArrayBuffer(4));e.exports=function(e){if(!1==(e>0&&e<1/0)){if("number"!=typeof e&&"bigint"!=typeof e)throw TypeError("sleep: ms must be a number");throw RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity")}Atomics.wait(t,0,0,Number(e))}}else e.exports=function(e){if(!1==(e>0&&e<1/0)){if("number"!=typeof e&&"bigint"!=typeof e)throw TypeError("sleep: ms must be a number");throw RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity")}let t=Date.now()+Number(e);for(;t>Date.now(););}},924:(e,t,r)=>{"use strict";var i;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(s){var a,u,c,l=arguments,f=(a=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,u=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g,function(e,t,r,i){if(1!==l.length||"string"!==g(e)||/\d/.test(e)||(t=e,e=void 0),(e=e||0===e?e:new Date)instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");var o=(t=String(f.masks[t]||t||f.masks.default)).slice(0,4);("UTC:"===o||"GMT:"===o)&&(t=t.slice(4),r=!0,"GMT:"===o&&(i=!0));var s=function(){return r?"getUTC":"get"},m=function(){return e[s()+"Date"]()},b=function(){return e[s()+"Day"]()},v=function(){return e[s()+"Month"]()},w=function(){return e[s()+"FullYear"]()},_=function(){return e[s()+"Hours"]()},S=function(){return e[s()+"Minutes"]()},x=function(){return e[s()+"Seconds"]()},E=function(){return e[s()+"Milliseconds"]()},O=function(){return r?0:e.getTimezoneOffset()},j=function(){return p(e)},k={d:function(){return m()},dd:function(){return h(m())},ddd:function(){return f.i18n.dayNames[b()]},DDD:function(){return d({y:w(),m:v(),d:m(),_:s(),dayName:f.i18n.dayNames[b()],short:!0})},dddd:function(){return f.i18n.dayNames[b()+7]},DDDD:function(){return d({y:w(),m:v(),d:m(),_:s(),dayName:f.i18n.dayNames[b()+7]})},m:function(){return v()+1},mm:function(){return h(v()+1)},mmm:function(){return f.i18n.monthNames[v()]},mmmm:function(){return f.i18n.monthNames[v()+12]},yy:function(){return String(w()).slice(2)},yyyy:function(){return h(w(),4)},h:function(){return _()%12||12},hh:function(){return h(_()%12||12)},H:function(){return _()},HH:function(){return h(_())},M:function(){return S()},MM:function(){return h(S())},s:function(){return x()},ss:function(){return h(x())},l:function(){return h(E(),3)},L:function(){return h(Math.floor(E()/10))},t:function(){return 12>_()?f.i18n.timeNames[0]:f.i18n.timeNames[1]},tt:function(){return 12>_()?f.i18n.timeNames[2]:f.i18n.timeNames[3]},T:function(){return 12>_()?f.i18n.timeNames[4]:f.i18n.timeNames[5]},TT:function(){return 12>_()?f.i18n.timeNames[6]:f.i18n.timeNames[7]},Z:function(){return i?"GMT":r?"UTC":(String(e).match(u)||[""]).pop().replace(c,"").replace(/GMT\+0000/g,"UTC")},o:function(){return(O()>0?"-":"+")+h(100*Math.floor(Math.abs(O())/60)+Math.abs(O())%60,4)},p:function(){return(O()>0?"-":"+")+h(Math.floor(Math.abs(O())/60),2)+":"+h(Math.floor(Math.abs(O())%60),2)},S:function(){return["th","st","nd","rd"][m()%10>3?0:(m()%100-m()%10!=10)*m()%10]},W:function(){return j()},WW:function(){return h(j())},N:function(){return y(e)}};return t.replace(a,function(e){return e in k?k[e]():e.slice(1,e.length-1)})});f.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},f.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]};var h=function(e,t){for(e=String(e),t=t||2;e.length{var i=r(8118),o=r(8839),s=r(1828),a=r(6151),u=Buffer.from&&Buffer.from!==Uint8Array.from?Buffer.from([0]):new Buffer([0]),c=function(e,t){e._corked?e.once("uncork",t):t()},l=function(e,t){e._autoDestroy&&e.destroy(t)},f=function(e,t){return function(r){r?l(e,"premature close"===r.message?null:r):t&&!e._ended&&e.end()}},h=function(){},d=function(e,t,r){if(!(this instanceof d))return new d(e,t,r);i.Duplex.call(this,r),this._writable=null,this._readable=null,this._readable2=null,this._autoDestroy=!r||!1!==r.autoDestroy,this._forwardDestroy=!r||!1!==r.destroy,this._forwardEnd=!r||!1!==r.end,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this.destroyed=!1,e&&this.setWritable(e),t&&this.setReadable(t)};s(d,i.Duplex),d.obj=function(e,t,r){return r||(r={}),r.objectMode=!0,r.highWaterMark=16,new d(e,t,r)},d.prototype.cork=function(){1==++this._corked&&this.emit("cork")},d.prototype.uncork=function(){this._corked&&0==--this._corked&&this.emit("uncork")},d.prototype.setWritable=function(e){if(this._unwrite&&this._unwrite(),this.destroyed){e&&e.destroy&&e.destroy();return}if(null===e||!1===e){this.end();return}var t=this,r=o(e,{writable:!0,readable:!1},f(this,this._forwardEnd)),i=function(){var e=t._ondrain;t._ondrain=null,e&&e()};this._unwrite&&process.nextTick(i),this._writable=e,this._writable.on("drain",i),this._unwrite=function(){t._writable.removeListener("drain",i),r()},this.uncork()},d.prototype.setReadable=function(e){if(this._unread&&this._unread(),this.destroyed){e&&e.destroy&&e.destroy();return}if(null===e||!1===e){this.push(null),this.resume();return}var t=this,r=o(e,{writable:!1,readable:!0},f(this)),s=function(){t._forward()},a=function(){t.push(null)};this._drained=!0,this._readable=e,this._readable2=e._readableState?e:new i.Readable({objectMode:!0,highWaterMark:16}).wrap(e),this._readable2.on("readable",s),this._readable2.on("end",a),this._unread=function(){t._readable2.removeListener("readable",s),t._readable2.removeListener("end",a),r()},this._forward()},d.prototype._read=function(){this._drained=!0,this._forward()},d.prototype._forward=function(){var e;if(!this._forwarding&&this._readable2&&this._drained){for(this._forwarding=!0;this._drained&&null!==(e=a(this._readable2));)this.destroyed||(this._drained=this.push(e));this._forwarding=!1}},d.prototype.destroy=function(e,t){if(t||(t=h),this.destroyed)return t(null);this.destroyed=!0;var r=this;process.nextTick(function(){r._destroy(e),t(null)})},d.prototype._destroy=function(e){if(e){var t=this._ondrain;this._ondrain=null,t?t(e):this.emit("error",e)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close")},d.prototype._write=function(e,t,r){if(!this.destroyed){if(this._corked)return c(this,this._write.bind(this,e,t,r));if(e===u)return this._finish(r);if(!this._writable)return r();!1===this._writable.write(e)?this._ondrain=r:this.destroyed||r()}},d.prototype._finish=function(e){var t=this;this.emit("preend"),c(this,function(){var r,i;r=t._forwardEnd&&t._writable,i=function(){!1===t._writableState.prefinished&&(t._writableState.prefinished=!0),t.emit("prefinish"),c(t,e)},!r||r._writableState&&r._writableState.finished?i():r._writableState?r.end(i):(r.end(),i())})},d.prototype.end=function(e,t,r){return"function"==typeof e?this.end(null,null,e):"function"==typeof t?this.end(e,null,t):(this._ended=!0,e&&this.write(e),this._writableState.ending||this._writableState.destroyed||this.write(u),i.Writable.prototype.end.call(this,r))},e.exports=d},8839:(e,t,r)=>{var i=r(5962),o=function(){},s=function(e,t,r){if("function"==typeof t)return s(e,null,t);t||(t={}),r=i(r||o);var a=e._writableState,u=e._readableState,c=t.readable||!1!==t.readable&&e.readable,l=t.writable||!1!==t.writable&&e.writable,f=!1,h=function(){e.writable||d()},d=function(){l=!1,c||r.call(e)},p=function(){c=!1,l||r.call(e)},y=function(t){r.call(e,t?Error("exited with error code: "+t):null)},g=function(t){r.call(e,t)},m=function(){process.nextTick(b)},b=function(){if(!f&&(c&&!(u&&u.ended&&!u.destroyed)||l&&!(a&&a.ended&&!a.destroyed)))return r.call(e,Error("premature close"))},v=function(){e.req.on("finish",d)};return e.setHeader&&"function"==typeof e.abort?(e.on("complete",d),e.on("abort",m),e.req?v():e.on("request",v)):l&&!a&&(e.on("end",h),e.on("close",h)),e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length&&e.on("exit",y),e.on("end",p),e.on("finish",d),!1!==t.error&&e.on("error",g),e.on("close",m),function(){f=!0,e.removeListener("complete",d),e.removeListener("abort",m),e.removeListener("request",v),e.req&&e.req.removeListener("finish",d),e.removeListener("end",h),e.removeListener("close",h),e.removeListener("finish",d),e.removeListener("exit",y),e.removeListener("end",p),e.removeListener("error",g),e.removeListener("close",m)}};e.exports=s},6417:(e,t,r)=>{"use strict";let i=r(2090),o=r(2224),s=r(4281),a=r(7414),{groupRedact:u,nestedRedact:c}=r(9958),l=r(1166),f=r(5392),h=i(),d=e=>e;function p(e={}){let t=Array.from(new Set(e.paths||[])),r="serialize"in e?!1===e.serialize?e.serialize:"function"==typeof e.serialize?e.serialize:JSON.stringify:JSON.stringify,i=e.remove;if(!0===i&&r!==JSON.stringify)throw Error("fast-redact – remove option may only be set when serializer is JSON.stringify");let f=!0===i?void 0:"censor"in e?e.censor:"[REDACTED]",p="function"==typeof f,y=p&&f.length>1;if(0===t.length)return r||d;h({paths:t,serialize:r,censor:f});let{wildcards:g,wcLen:m,secret:b}=o({paths:t,censor:f}),v=a({secret:b,wcLen:m}),w=!("strict"in e)||e.strict;return s({secret:b,wcLen:m,serialize:r,strict:w,isCensorFct:p,censorFctTakesPath:y},l({secret:b,censor:f,compileRestore:v,serialize:r,groupRedact:u,nestedRedact:c,wildcards:g,wcLen:m}))}d.restore=d,p.rx=f,p.validator=i,e.exports=p},9958:e=>{"use strict";function t(e,t){for(var r=-1,i=t.length,o=e;null!=o&&++r{"use strict";let i=r(5392);e.exports=function({paths:e}){let t=[];var r=0;let o=e.reduce(function(e,o,s){var a=o.match(i).map(e=>e.replace(/'|"|`/g,""));let u="["===o[0];a=a.map(e=>"["===e[0]?e.substr(1,e.length-2):e);let c=a.indexOf("*");if(c>-1){let e=a.slice(0,c),i=e.join("."),o=a.slice(c+1,a.length);if(o.indexOf("*")>-1)throw Error("fast-redact – Only one wildcard per path is supported");let s=o.length>0;r++,t.push({before:e,beforeStr:i,after:o,nested:s})}else e[o]={path:a,val:void 0,precensored:!1,circle:"",escPath:JSON.stringify(o),leadingBracket:u};return e},{});return{wildcards:t,wcLen:r,secret:o}}},4281:(e,t,r)=>{"use strict";let i=r(5392);e.exports=function({secret:e,serialize:t,wcLen:r,strict:o,isCensorFct:s,censorFctTakesPath:a},u){let c=Function("o",` +(()=>{var e={9220:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(6883),r(3859),r(9467),r(6811),r(408),r(9502),r(8669),r(6136),r(5803),r(1536),r(8625),r(434),r(3362),r(821),r(4774),r(2702),r(139),r(7326),r(6282),r(8191),r(4680),r(109),r(8275),r(1223),r(4709),r(1401),r(7321),r(1596),r(6727),r(5923),r(9017),r(6169),r(7338),r(1942),r(7333),r(6426),r(4197),r(4213),r(5646),r(1581);let{EventEmitter:i}=r(2361),{logScope:o}=r(7691),s=o("cache"),a={CLEANUP:"cs@cleanup"};class u extends i{id="Default Cache Storage";cacheMap=new Map;aliveDuration=18e5;constructor(e){super(),e&&(this.id=e),this.on(a.CLEANUP,async()=>this.removeExpiredCache())}get WillExpireAt(){return Date.now()+this.aliveDuration}getLoggerContext(e={}){return{...e,cacheStorageId:this.id}}removeExpiredCache(){s.debug(this.getLoggerContext(),"Cleaning up the expired caches..."),this.cacheMap.forEach((e,t)=>{e.expireAt<=Date.now()&&this.cacheMap.delete(t)})}async cache(e,t,r){if("true"===process.env.NO_CACHE)return t();this.emit(a.CLEANUP);let i=this.cacheMap.get(e),o="object"==typeof e?"Something":e,u=this.getLoggerContext({logKey:o});if(i)return s.debug(u,`${o} hit!`),i.data;s.debug(u,`${o} did not hit. Storing the execution result...`);let c=await t();return this.cacheMap.set(e,{data:c,expireAt:new Date(r||this.WillExpireAt)}),c}}class c{static instance=void 0;cacheStorages=new Set;constructor(){}static getInstance(){return c.instance||(c.instance=new c),c.instance}cleanup(){this.cacheStorages.forEach(e=>e.removeExpiredCache())}}let l=c.getInstance();e.exports={CacheStorage:u,CacheStorageEvents:a,CacheStorageGroup:c,getManagedCacheStorage:function(e){let t=new u(e);return l.cacheStorages.add(t),t}}},2188:(e,t,r)=>{"use strict";let i=r(2361),o="cancel";e.exports={CancelRequest:class extends i{cancelled=!1;cancel(){this.cancelled=!0,this.emit(o)}},ON_CANCEL:o}},1784:(e,t,r)=>{"use strict";let i={qq:r(9878),kugou:r(4840),kuwo:r(3081),migu:r(1549),joox:r(9788),youtube:r(8396),youtubedl:r(4396),ytdlp:r(8965),bilibili:r(8573),pyncmd:r(2085)};e.exports={DEFAULT_SOURCE:["kugou","kuwo","migu","bilibili","ytdlp"],PROVIDERS:i}},743:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1832),r(8352),r(139),r(726),r(1966);let i=r(6113),o=r(7310).parse,s=r(3477).stringify,a="e82ckenh8dichen8",u="rFgB&h#%2?^eDg:Q",c=(e,t)=>{let r=i.createDecipheriv("aes-128-ecb",t,null);return Buffer.concat([r.update(e),r.final()])},l=(e,t)=>{let r=i.createCipheriv("aes-128-ecb",t,null);return Buffer.concat([r.update(e),r.final()])};e.exports={eapi:{encrypt:e=>l(e,a),decrypt:e=>c(e,a),encryptRequest:(t,r)=>{t=o(t);let a=JSON.stringify(r),u=`nobody${t.path}use${a}md5forencrypt`,c=i.createHash("md5").update(u).digest("hex"),l=`${t.path}-36cd479b6b5-${a}-36cd479b6b5-${c}`;return{url:t.href.replace(/\w*api/,"eapi"),body:s({params:e.exports.eapi.encrypt(Buffer.from(l)).toString("hex").toUpperCase()})}}},linuxapi:{encrypt:e=>l(e,u),decrypt:e=>c(e,u),encryptRequest:(t,r)=>{t=o(t);let i=JSON.stringify({method:"POST",url:t.href,params:r});return{url:t.resolve("/api/linux/forward"),body:s({eparams:e.exports.linuxapi.encrypt(Buffer.from(i)).toString("hex").toUpperCase()})}}},miguapi:{encryptBody:e=>{let t=JSON.stringify(e),r=Buffer.from(i.randomBytes(32).toString("hex")),o=i.randomBytes(8),a=((e,t,r,o)=>{t=t||Buffer.alloc(0);let s=Math.ceil((32+8*o)/32),a=Buffer.concat(Array(s).fill(null).reduce(r=>r.concat(i.createHash("md5").update(Buffer.concat([r.slice(-1)[0],e,t])).digest()),[Buffer.alloc(0)]));return{key:a.slice(0,32),iv:a.slice(32,32+o)}})(r,o,0,16),u=i.createCipheriv("aes-256-cbc",a.key,a.iv);return s({data:Buffer.concat([Buffer.from("Salted__"),o,u.update(Buffer.from(t)),u.final()]).toString("base64"),secKey:i.publicEncrypt({key:"-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC8asrfSaoOb4je+DSmKdriQJKWVJ2oDZrs3wi5W67m3LwTB9QVR+cE3XWU21Nx+YBxS0yun8wDcjgQvYt625ZCcgin2ro/eOkNyUOTBIbuj9CvMnhUYiR61lC1f1IGbrSYYimqBVSjpifVufxtx/I3exReZosTByYp4Xwpb1+WAQIDAQAB\n-----END PUBLIC KEY-----",padding:i.constants.RSA_PKCS1_PADDING},r).toString("base64")})}},base64:{encode:(e,t)=>Buffer.from(e,t).toString("base64").replace(/\+/g,"-").replace(/\//g,"_"),decode:(e,t)=>Buffer.from(e.replace(/-/g,"+").replace(/_/g,"/"),"base64").toString(t)},uri:{retrieve:e=>{e=e.toString().trim();let t="3go8&$8*3*3h0k(2)2",r=Array.from(Array(e.length).keys()).map(r=>String.fromCharCode(e.charCodeAt(r)^t.charCodeAt(r%t.length))).join(""),o=i.createHash("md5").update(r).digest("base64").replace(/\//g,"_").replace(/\+/g,"-");return`http://p1.music.126.net/${o}/${e}`}},md5:{digest:e=>i.createHash("md5").update(e).digest("hex"),pipe:e=>new Promise((t,r)=>{let o=i.createHash("md5").setEncoding("hex");e.pipe(o).on("error",e=>r(e)).once("finish",()=>t(o.read()))})},sha1:{digest:e=>i.createHash("sha1").update(e).digest("hex")},random:{hex:e=>i.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}};try{e.exports.kuwoapi=r(5477)}catch(e){}},3942:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(4118),e.exports=class extends Error{constructor(e,t){super(`${e} exited with ${t}, which is not zero.`),this.process=e,this.exitCode=t,this.name="ProcessExitNotSuccessfully"}}},4113:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(4118),e.exports=class extends Error{constructor(e){super(`This request URL has been cancelled: ${e}`),this.name="RequestCancelled"}}},5467:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(4118),e.exports=class extends Error{constructor(e){super("The response of youtube-dl is malformed."),this.name="YoutubeDlInvalidResponse",this.response=e}}},58:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(4118),e.exports=class extends Error{constructor(){super('You must install "youtube-dl" before using the "youtubedl" source.'),this.name="YoutubeDlNotInstalled"}}},2962:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(4118),e.exports=class extends Error{constructor(e){super("The response of yt-dlp is malformed."),this.name="YtDlpInvalidResponse",this.response=e}}},8761:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(4118),e.exports=class extends Error{constructor(){super('You must install "yt-dlp" before using the "ytdlp" source.'),this.name="YtDlpNotInstalled"}}},5477:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1832),r(8352),r(139),r(726),r(1966),r(4774),r(2702);let i=e=>{let t=BigInt(e);return{low:Number(t),valueOf:()=>t.valueOf(),toString:()=>t.toString(),not:()=>i(~t),isNegative:()=>t<0,or:e=>i(t|BigInt(e)),and:e=>i(t&BigInt(e)),xor:e=>i(t^BigInt(e)),equals:e=>t===BigInt(e),multiply:e=>i(t*BigInt(e)),shiftLeft:e=>i(t<i(t>>BigInt(e))}},o=e=>Array.from(Array(e).keys()),s=(e,t)=>Array(t).fill(null).reduce(t=>t.multiply(e),i(1)),a=(...e)=>e.map(e=>-1===e?i(-1,-1):i(e)),u=a(31,0,1,2,3,4,-1,-1,3,4,5,6,7,8,-1,-1,7,8,9,10,11,12,-1,-1,11,12,13,14,15,16,-1,-1,15,16,17,18,19,20,-1,-1,19,20,21,22,23,24,-1,-1,23,24,25,26,27,28,-1,-1,27,28,29,30,31,30,-1,-1),c=a(57,49,41,33,25,17,9,1,59,51,43,35,27,19,11,3,61,53,45,37,29,21,13,5,63,55,47,39,31,23,15,7,56,48,40,32,24,16,8,0,58,50,42,34,26,18,10,2,60,52,44,36,28,20,12,4,62,54,46,38,30,22,14,6),l=a(39,7,47,15,55,23,63,31,38,6,46,14,54,22,62,30,37,5,45,13,53,21,61,29,36,4,44,12,52,20,60,28,35,3,43,11,51,19,59,27,34,2,42,10,50,18,58,26,33,1,41,9,49,17,57,25,32,0,40,8,48,16,56,24),f=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1],h=a(0,1048577,3145731),d=o(64).map(e=>s(2,e));d[d.length-1]=d[d.length-1].multiply(-1);let p=a(15,6,19,20,28,11,27,16,0,14,22,25,4,17,30,9,1,7,23,13,31,26,2,8,18,12,29,5,21,10,3,24),y=a(56,48,40,32,24,16,8,0,57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,60,52,44,36,28,20,12,4,27,19,11,3),g=a(13,16,10,23,0,4,-1,-1,2,27,14,5,20,9,-1,-1,22,18,11,3,25,7,-1,-1,15,6,26,19,12,1,-1,-1,40,51,30,36,46,54,-1,-1,29,39,50,44,32,47,-1,-1,43,48,38,55,33,52,-1,-1,45,41,49,35,28,31,-1,-1),m=[[14,4,3,15,2,13,5,3,13,14,6,9,11,2,0,5,4,1,10,12,15,6,9,10,1,8,12,7,8,11,7,0,0,15,10,5,14,4,9,10,7,8,12,3,13,1,3,6,15,12,6,11,2,9,5,0,4,2,11,14,1,7,8,13],[15,0,9,5,6,10,12,9,8,7,2,12,3,13,5,2,1,14,7,8,11,4,0,3,14,11,13,6,4,1,10,15,3,13,12,11,15,3,6,0,4,10,1,7,8,4,11,14,13,8,0,6,2,15,9,5,7,1,10,12,14,2,5,9],[10,13,1,11,6,8,11,5,9,4,12,2,15,3,2,14,0,6,13,1,3,15,4,10,14,9,7,12,5,0,8,7,13,1,2,4,3,6,12,11,0,13,5,14,6,8,15,2,7,10,8,15,4,9,11,5,9,0,14,3,10,7,1,12],[7,10,1,15,0,12,11,5,14,9,8,3,9,7,4,8,13,6,2,1,6,11,12,2,3,0,5,14,10,13,15,4,13,3,4,9,6,10,1,12,11,0,2,5,0,13,14,2,8,15,7,4,15,1,10,7,5,6,12,11,3,8,9,14],[2,4,8,15,7,10,13,6,4,1,3,12,11,7,14,0,12,2,5,9,10,13,0,3,1,11,15,5,6,8,9,14,14,11,5,6,4,1,3,10,2,12,15,0,13,2,8,5,11,8,0,15,7,14,9,4,12,7,10,9,1,13,6,3],[12,9,0,7,9,2,14,1,10,15,3,4,6,12,5,11,1,14,13,0,2,8,7,13,15,5,4,10,8,3,11,6,10,4,6,11,7,9,0,6,4,2,13,1,9,15,3,8,15,3,1,14,12,5,11,0,2,12,14,7,5,10,8,13],[4,1,3,10,15,12,5,0,2,11,9,6,8,7,6,9,11,4,12,15,0,3,10,5,14,13,7,8,13,14,1,2,13,6,14,9,4,1,2,14,11,13,5,0,1,10,8,3,0,11,3,5,9,4,15,2,7,8,12,15,10,7,6,12],[13,7,10,0,6,9,5,15,8,4,3,10,11,14,12,5,2,11,9,6,15,12,0,3,4,1,14,13,1,2,7,8,1,2,12,15,10,4,0,3,13,14,6,9,7,8,9,6,15,1,5,12,3,10,14,5,8,7,11,0,4,13,2,11]],b=(e,t,r)=>{let s=i(0);return o(t).forEach(t=>{e[t].isNegative()||r.and(d[e[t].low]).equals(0)||(s=s.or(d[t]))}),s},v=(e,t)=>{let r=o(8).map(()=>i(0)),s=[i(0),i(0)],a=i(0),f=i(0),h=b(c,64,t);return s[0]=h.and(4294967295),s[1]=h.and(-4294967296).shiftRight(32),o(16).forEach(t=>{let c=i(0);f=(f=b(u,64,f=i(s[1]))).xor(e[t]),o(8).forEach(e=>{r[e]=f.shiftRight(8*e).and(255)}),o(8).reverse().forEach(e=>{c=c.shiftLeft(4).or(m[e][r[e]])}),f=b(p,32,c),a=i(s[0]),s[0]=i(s[1]),s[1]=a.xor(f)}),s.reverse(),h=b(l,64,h=s[1].shiftLeft(32).and(-4294967296).or(s[0].and(4294967295)))},w=(e,t,r)=>{let i=b(y,56,e);o(16).forEach(e=>{i=i.and(h[f[e]]).shiftLeft(28-f[e]).or(i.and(h[f[e]].not()).shiftRight(f[e])),t[e]=b(g,64,i)}),1===r&&o(8).forEach(e=>{[t[e],t[15-e]]=[t[15-e],t[e]]})},_=(e,t,r)=>{let s=i(0);o(8).forEach(e=>{s=i(t[e]).shiftLeft(8*e).or(s)});let a=Math.floor(e.length/8),u=o(16).map(()=>i(0));w(s,u,r);let c=o(a).map(()=>i(0));o(a).forEach(t=>{o(8).forEach(r=>{c[t]=i(e[r+8*t]).shiftLeft(8*r).or(c[t])})});let l=o(Math.floor((1+8*(a+1))/8)).map(()=>i(0));o(a).forEach(e=>{l[e]=v(u,c[e])});let f=e.slice(8*a),h=i(0);o(e.length%8).forEach(e=>{h=i(f[e]).shiftLeft(8*e).or(h)}),(f.length||0===r)&&(l[a]=v(u,h));let d=o(8*l.length).map(()=>0),p=0;return l.forEach(e=>{o(8).forEach(t=>{d[p]=e.shiftRight(8*t).and(255).low,p+=1})}),Buffer.from(d)},S=Buffer.from("ylzsxkwm"),x=e=>_(e,S,0);e.exports={encrypt:x,decrypt:e=>_(e,S,1),encryptQuery:e=>x(Buffer.from(e)).toString("base64")}},7691:(e,t,r)=>{"use strict";var i;let o=r(8167),s=process.env.LOG_FILE,a=process.stdout.isTTY,u=o({level:null!==(i=process.env.LOG_LEVEL)&&void 0!==i?i:"info",prettyPrint:"true"!==process.env.JSON_LOG&&{colorize:a,messageFormat:a?"\x1b[1m\x1b[32m({scope})\x1b[0m\x1b[36m {msg}":"({scope}) {msg}",ignore:"time,pid,hostname,scope",errorProps:"*"}},s&&o.destination(s));e.exports={logger:u,logScope:function(e){return u.child({scope:e})}}},8573:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(726),r(1966);let{cacheStorage:i,CacheStorageGroup:o,getManagedCacheStorage:s}=r(9220),a=r(2290),u=r(2822),c=r(5262),l=e=>({id:e.id,name:e.title,artists:{id:e.mid,name:e.author}}),f=e=>{let t=`https://api.bilibili.com/audio/music-service-c/s?search_type=music&page=1&pagesize=30&keyword=${encodeURIComponent(e.keyword)}`;return c("GET",t).then(e=>e.json()).then(t=>{let r=t.data.result.map(l),i=u(r,e);return i?i.id:Promise.reject()})},h=e=>{let t="https://www.bilibili.com/audio/music-service-c/web/url?rivilege=2&quality=2&sid="+e;return c("GET",t).then(e=>e.json()).then(e=>0===e.code?e.data.cdns[0].replace("https","http"):Promise.reject()).catch(()=>a().bilibili.track(e))},d=s("provider/bilibili");e.exports={check:e=>d.cache(e,()=>f(e)).then(h),track:h}},2290:(e,t,r)=>{"use strict";let i=r(5262);e.exports=()=>{let t=global.cnrelay,r=new Proxy(()=>{},{get:(e,t)=>(e.route=(e.route||[]).concat(t),r),apply:(r,o,s)=>{if(e.exports.disable||!t)return Promise.reject();let a=r.route.join("/"),u="object"==typeof s[0]?JSON.stringify(s[0]):s[0];return i("GET",`${t}/${a}?${encodeURIComponent(u)}`).then(e=>e.body())}});return r}},9788:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(726),r(1966),r(6081);let i=r(2290),o=r(2822),s=r(743),a=r(5262),{getManagedCacheStorage:u}=r(9220),c={origin:"http://www.joox.com",referer:"http://www.joox.com",cookie:process.env.JOOX_COOKIE||null},l=e=>/[\u0800-\u4e00]/.test(e.name)?e.name:e.keyword,f=e=>{let{decode:t}=s.base64;return{id:e.songid,name:t(e.info1||""),duration:1e3*e.playtime,album:{id:e.albummid,name:t(e.info3||"")},artists:e.singer_list.map(({id:e,name:r})=>({id:e,name:t(r||"")}))}},h=e=>{let t=l(e),r="http://api-jooxtt.sanook.com/web-fcgi-bin/web_search?country=hk&lang=zh_TW&search_input="+encodeURIComponent(t)+"&sin=0&ein=30";return a("GET",r,c).then(e=>e.body()).then(t=>{let r=JSON.parse(t.replace(/'/g,'"')),i=r.itemlist.map(f),s=o(i,e);return s?s.id:Promise.reject()})},d=e=>{let t="http://api.joox.com/web-fcgi-bin/web_get_songinfo?songid="+e+"&country=hk&lang=zh_cn&from_type=-1&channel_id=-1&_="+new Date().getTime();return a("GET",t,c).then(e=>e.jsonp()).then(e=>{let t=(e.r320Url||e.r192Url||e.mp3Url||e.m4aUrl).replace(/M\d00([\w]+).mp3/,"M800$1.mp3");return t||Promise.reject()}).catch(()=>i().joox.track(e))},p=u("provider/joox");e.exports={check:e=>p.cache(e,()=>h(e)).then(d),track:d}},4840:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(726),r(1966),r(9493),r(4216),r(139);let i=r(2290),o=r(2822),s=r(743),a=r(5262),{getManagedCacheStorage:u}=r(9220),c=e=>({id:e.hash,id_hq:e["320hash"],id_sq:e.sqhash,name:e.songname,duration:1e3*e.duration,album:{id:e.album_id,name:e.album_name}}),l=e=>{let t="http://mobilecdn.kugou.com/api/v3/search/song?keyword="+encodeURIComponent(e.keyword)+"&page=1&pagesize=10";return a("GET",t).then(e=>e.json()).then(t=>{let r=t.data.info.map(c),i=o(r,e);return i||Promise.reject()}).catch(()=>i().kugou.search(e))},f=(e,t)=>{let r=()=>{switch(t){case"hash":return e.id;case"hqhash":return e.id_hq;case"sqhash":return e.id_sq}return""},i="http://trackercdn.kugou.com/i/v2/?key="+s.md5.digest(`${r()}kgcloudv2`)+"&hash="+r()+"&appid=1005&pid=2&cmd=25&behavior=play&album_id="+e.album.id;return a("GET",i).then(e=>e.json()).then(e=>e.url[0]||Promise.reject())},h=e=>Promise.all(["sqhash","hqhash","hash"].slice(o.ENABLE_FLAC?0:1).map(t=>f(e,t).catch(()=>null))).then(e=>e.find(e=>e)||Promise.reject()).catch(()=>i().kugou.track(e)),d=u("provider/kugou");e.exports={check:e=>d.cache(e,()=>l(e)).then(h),search:l}},3081:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(726),r(1966);let i=r(2290),o=r(2822),s=r(743),a=r(5262),{getManagedCacheStorage:u}=r(9220),c=e=>({id:e.MUSICRID.split("_").pop(),name:e.SONGNAME,duration:1e3*e.DURATION,album:{id:e.ALBUMID,name:e.ALBUM},artists:e.ARTIST.split("&").map((t,r)=>({id:r?null:e.ARTISTID,name:t}))}),l=e=>{let t=encodeURIComponent(e.keyword.replace(" - "," "));return a("GET","http://search.kuwo.cn/r.s?&correct=1&stype=comprehensive&encoding=utf8&rformat=json&mobi=1&show_copyright_off=1&searchapi=6&all="+t).then(e=>e.json()).then(t=>{if(!t||t.content.length<2||!t.content[1].musicpage||t.content[1].musicpage.abslist.length<1)return Promise.reject();let r=t.content[1].musicpage.abslist.map(c),i=o(r,e);return i?i.id:Promise.reject()})},f=e=>{let t=s.kuwoapi?"http://mobi.kuwo.cn/mobi.s?f=kuwo&q="+s.kuwoapi.encryptQuery("corp=kuwo&p2p=1&type=convert_url2&sig=0&format="+["flac","mp3"].slice(o.ENABLE_FLAC?0:1).join("|")+"&rid="+e):"http://antiserver.kuwo.cn/anti.s?type=convert_url&format=mp3&response=url&rid=MUSIC_"+e;return a("GET",t,{"user-agent":"okhttp/3.10.0"}).then(e=>e.body()).then(e=>{let t=(e.match(/http[^\s$"]+/)||[])[0];return t||Promise.reject()}).catch(()=>i().kuwo.track(e))},h=u("provider/kuwo");e.exports={check:e=>h.cache(e,()=>l(e)).then(f),track:f}},1549:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(726),r(1966),r(9493),r(4216),r(139);let i=r(2290),o=r(2822),s=r(5262),{getManagedCacheStorage:a}=r(9220),u={origin:"http://music.migu.cn/",referer:"http://m.music.migu.cn/v3/",aversionid:process.env.MIGU_COOKIE||null,channel:"0146921"},c=e=>{let t=e.singerId.split(/\s*,\s*/),r=e.singerName.split(/\s*,\s*/);return{id:e.id,name:e.title,album:{id:e.albumId,name:e.albumName},artists:t.map((e,t)=>({id:e,name:r[t]}))}},l=e=>{let t="https://m.music.migu.cn/migu/remoting/scr_search_tag?keyword="+encodeURIComponent(e.keyword)+"&type=2&rows=20&pgc=1";return s("GET",t,u).then(e=>e.json()).then(t=>{let r=((t||{}).musics||[]).map(c),i=o(r,e);return i?i.id:Promise.reject()})},f=(e,t)=>{let r="https://app.c.nf.migu.cn/MIGUM2.0/strategy/listen-url/v2.4?netType=01&resourceType=2&songId="+e.toString()+"&toneFlag="+t;return s("GET",r,u).then(e=>e.json()).then(e=>{let{audioFormatType:i}=e.data;return i!==t?Promise.reject():r?e.data.url:Promise.reject()})},h=e=>Promise.all(["ZQ24","SQ","HQ","PQ"].slice(o.ENABLE_FLAC?0:2).map(t=>f(e,t).catch(()=>null))).then(e=>e.find(e=>e)||Promise.reject()).catch(()=>i().migu.track(e)),d=a("provider/migu");e.exports={check:e=>d.cache(e,()=>l(e)).then(h),track:h}},2085:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9493),r(4216),r(139);let i=r(2822),o=r(5262),{getManagedCacheStorage:s}=r(9220),a=e=>{let t="https://pyncmd.apis.imouto.in/api/pyncm?module=track&method=GetTrackAudio&song_ids="+e.id+"&bitrate="+["999000","320000"].slice(i.ENABLE_FLAC?0:1,i.ENABLE_FLAC?1:2);return o("GET",t).then(e=>e.json()).then(t=>{if(t&&"object"==typeof t&&"code"in t&&200!==t.code)return Promise.reject();let r=t.data.find(t=>t.id===e.id);return r&&r.url?r.url:Promise.reject()})},u=s("provider/pyncmd");e.exports={check:e=>u.cache(e,()=>a(e))}},9878:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(726),r(1966),r(9493),r(4216),r(139);let i=r(2290),o=r(2822),s=r(5262),{getManagedCacheStorage:a}=r(9220),u={origin:"http://y.qq.com/",referer:"http://y.qq.com/",cookie:process.env.QQ_COOKIE||null},c=e=>({id:{song:e.mid,file:e.mid},name:e.name,duration:1e3*e.interval,album:{id:e.album.mid,name:e.album.name},artists:e.singer.map(({mid:e,name:t})=>({id:e,name:t}))}),l=e=>{let t="https://u.y.qq.com/cgi-bin/musicu.fcg?data="+encodeURIComponent(JSON.stringify({search:{method:"DoSearchForQQMusicDesktop",module:"music.search.SearchCgiService",param:{num_per_page:5,page_num:1,query:e.keyword,search_type:0}}}));return s("GET",t,u).then(e=>e.json()).then(t=>{let r=t.search.data.body.song.list.map(c),i=o(r,e);return i?i.id:Promise.reject()})},f=(e,t)=>{let r=((u.cookie||"").match(/uin=(\d+)/)||[])[1]||"0",i="https://u.y.qq.com/cgi-bin/musicu.fcg?data="+encodeURIComponent(JSON.stringify({req_0:{module:"vkey.GetVkeyServer",method:"CgiGetVkey",param:{guid:(1e7*Math.random()).toFixed(0),loginflag:1,filename:t[0]?[t.join(e.file)]:null,songmid:[e.song],songtype:[0],uin:r,platform:"20"}}}));return s("GET",i,u).then(e=>e.json()).then(e=>{let{sip:t,midurlinfo:r}=e.req_0.data;if(!r[0].purl)return Promise.reject();let i=t[0]+r[0].purl;return s("GET",i,{range:"bytes=0-8191","accept-encoding":"identity"}).then(e=>e.statusCode<200||e.statusCode>299?Promise.reject():i)})},h=e=>(e.key=e.file,Promise.all([["F000",".flac"],["M800",".mp3"],["M500",".mp3"],[null,null]].slice(u.cookie||"undefined"!=typeof window?o.ENABLE_FLAC?0:1:2).map(t=>f(e,t).catch(()=>null))).then(e=>e.find(e=>e)||Promise.reject()).catch(()=>i().qq.track(e))),d=a("provider/qq");e.exports={check:e=>d.cache(e,()=>l(e)).then(h),track:h}},2822:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9493),r(4216),r(139),e.exports=(e,t)=>{let{duration:r}=t,i=e.slice(0,5).find(e=>e.duration&&5e3>Math.abs(e.duration-r));return i||e[0]},e.exports.ENABLE_FLAC="true"===(process.env.ENABLE_FLAC||"").toLowerCase()},4396:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(6081);let{getManagedCacheStorage:i}=r(9220),{logScope:o}=r(7691),s=r(5467),a=r(58),{spawnStdout:u}=r(7581),c=e=>["-f","140","--dump-json",e],l=e=>`https://www.youtube.com/watch?v=${e}`,f=e=>`ytsearch1:${e}`,h=o("provider/youtube-dl");async function d(e){try{let{stdout:t}=await u("youtube-dl",e),r=JSON.parse(t.toString());if("object"==typeof r&&"string"==typeof r.id&&"string"==typeof r.url)return r;throw new s(r)}catch(e){if(e&&"ENOENT"===e.code)throw new a;throw e}}let p=async e=>{let{id:t}=await d(c(f(e.keyword)));return t},y=async e=>{let{url:t}=await d(c(l(e)));return t},g=i("youtube-dl");e.exports={check:e=>g.cache(e,()=>p(e)).then(y).catch(e=>{throw e&&h.error(e),e}),track:y}},8396:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1832),r(8352),r(139),r(726),r(1966),r(6081),r(9493),r(4216);let i=r(5262),{getManagedCacheStorage:o}=r(9220),s=e=>(e||"").split("&").reduce((e,t)=>{let r=t.split("=").map(decodeURIComponent);return Object.assign({},e,{[r[0]]:r[1]})},{}),a=o("provider/youtube"),u=void 0,c=process.env.YOUTUBE_KEY||null,l=(e="-tKVN2mAKRI")=>{let t=`https://www.youtube.com/watch?v=${e}`;return i("GET",t,{},null,u).then(e=>e.body()).then(e=>{let t=/"WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_VERTICAL_LANDING_PAGE_PROMO":{[^}]+}/.exec(e)[0];return i("GET","https://youtube.com"+(t=JSON.parse(`{${t}}}`).WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_VERTICAL_LANDING_PAGE_PROMO).jsUrl,{},null,u).then(e=>e.body())}).then(e=>{let[,t,r]=/function\((\w+)\)\s*{([^}]+split\(""\)[^}]+join\(""\))};/.exec(e),i=/;(.+?)\..+?\(/.exec(r)[1],o=RegExp(`var ${i}={[\\s\\S]+?};`).exec(e)[0];return Function([t],o+"\n"+r)})},f=e=>{let t=`https://www.googleapis.com/youtube/v3/search?part=snippet&q=${encodeURIComponent(e.keyword)}&type=video&key=${c}`;return i("GET",t,{accept:"application/json"},null,u).then(e=>e.json()).then(e=>{let t=e.items[0];return t?t.id.videoId:Promise.reject()})},h=e=>{let t=`https://www.youtube.com/results?search_query=${encodeURIComponent(e.keyword)}`;return i("GET",t,{},null,u).then(e=>e.body()).then(e=>{let t=JSON.parse(e.match(/ytInitialData\s*=\s*([^;]+);/)[1]),r=t.contents.twoColumnSearchResultsRenderer.primaryContents.sectionListRenderer.contents[0].itemSectionRenderer.contents[1];return r?r.videoRenderer.videoId:Promise.reject()})},d=e=>{let t=`https://www.youtube.com/watch?v=${e}`;return i("GET",t,{},null,u).then(e=>e.body()).then(e=>JSON.parse(e.match(/ytInitialPlayerResponse\s*=\s*{[^]+};\s*var\s*meta/)[0].replace(/;var meta/,"").replace(/ytInitialPlayerResponse = /,"")).streamingData).then(e=>{let t=e.formats.concat(e.adaptiveFormats).find(e=>140===e.itag),r=s(t.signatureCipher);return t.url||(r.sp.includes("sig")?a.cache("YOUTUBE_SIGNATURE",()=>l(),Date.now()+864e5).then(e=>r.url+"&sig="+e(r.s)):r.url)})};e.exports={check:e=>a.cache(e,()=>c?f(e):h(e)).then(d),track:d}},8965:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(6081);let{getManagedCacheStorage:i}=r(9220),{logScope:o}=r(7691),{spawnStdout:s}=r(7581),a=r(2962),u=r(8761),c=e=>["-f","140","--dump-json",e],l=e=>`https://www.youtube.com/watch?v=${e}`,f=e=>`ytsearch1:${e}`,h=o("provider/yt-dlp");async function d(e){try{let{stdout:t}=await s("yt-dlp",e),r=JSON.parse(t.toString());if("object"==typeof r&&"string"==typeof r.id&&"string"==typeof r.url)return r;throw new a(r)}catch(e){if(e&&"ENOENT"===e.code)throw new u;throw e}}let p=async e=>{let{id:t}=await d(c(f(e.keyword)));return t},y=async e=>{let{url:t}=await d(c(l(e)));return t},g=i("yt-dlp");e.exports={check:e=>g.cache(e,()=>p(e)).then(y).catch(e=>{throw e&&h.error(e),e}),track:y}},5262:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1832),r(8352),r(139),r(5106),r(6081);let i=r(9796),o=r(3685),s=r(5687),a=r(2188),u=r(4113),{logScope:c}=r(7691),l=r(7310).parse,f=r(7310).format,h=c("request"),d=e=>(global.hosts||{})[e]||e,p=(e,t)=>("https:"===((void 0===t?global.proxy:t)||e).protocol?s:o).request,y=(e,t,r,i)=>{r=r||{},i=void 0===i?global.proxy:i,"content-length"in r&&delete r["content-length"];let o={};return o._headers=r,i&&"https:"===t.protocol?(o.method="CONNECT",o.headers=Object.keys(r).reduce((e,t)=>Object.assign(e,["host","user-agent"].includes(t)&&{[t]:r[t]}),{})):(o.method=e,o.headers=r),i?(o.hostname=d(i.hostname),o.port=i.port||("https:"===i.protocol?443:80),o.path="https:"===t.protocol?d(t.hostname)+":"+(t.port||443):"http://"+d(t.hostname)+t.path):(o.hostname=d(t.hostname),o.port=t.port||("https:"===t.protocol?443:80),o.path=t.path),o},g=(e,t,r,i,o,c)=>{let d=l(t),w=r||{},_=y(e,d,{host:d.hostname,accept:"application/json, text/plain, */*","accept-encoding":"gzip, deflate","accept-language":"zh-CN,zh;q=0.9","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36",...w},o);return new Promise((r,l)=>{var y;h.debug(`Start requesting ${t}`);let g=p(d,o)(_),m=function(){g.destroy(new u(f(d)))};null==c||c.on(a,m),null!==(y=null==c?void 0:c.cancelled)&&void 0!==y&&y&&m(),g.setTimeout(1e4,()=>{h.warn({url:f(d)},"The request timed out, or the requester didn't handle the response."),m()}).on("response",e=>r(e)).on("connect",(t,o)=>{h.debug("received CONNECT, continuing with https.request()..."),s.request({method:e,path:d.path,headers:_._headers,socket:o,agent:!1}).on("response",e=>r(e)).on("error",e=>l(e)).end(i)}).on("error",e=>l(e)).end("CONNECT"===_.method.toUpperCase()?void 0:i)}).then(t=>{var r;if(null!==(r=null==c?void 0:c.cancelled)&&void 0!==r&&r)return Promise.reject(new u(f(d)));if([201,301,302,303,307,308].includes(t.statusCode)){let r=d.resolve(t.headers.location||d.href);return h.debug(`Redirect to ${r}`),delete w.host,g(e,r,w,i,o)}return Object.assign(t,{url:d,body:e=>m(t,e),json:()=>b(t),jsonp:()=>v(t)})})},m=(e,t)=>new Promise((t,r)=>{let i=[];e.on("data",e=>i.push(e)).on("end",()=>t(Buffer.concat(i))).on("error",e=>r(e))}).then(r=>{if(r.length)switch(e.headers["content-encoding"]){case"deflate":case"gzip":r=i.unzipSync(r);break;case"br":r=i.brotliDecompressSync(r)}return t?r:r.toString()}),b=e=>m(e,!1).then(e=>JSON.parse(e)),v=e=>m(e,!1).then(e=>JSON.parse(e.slice(e.indexOf("(")+1,-1)));g.read=m,g.create=p,g.translate=d,g.configure=y,e.exports=g},7581:(e,t,r)=>{"use strict";let i=r(2081),{logScope:o}=r(7691),s=r(3942),a=o("spawn");async function u(e,t=[]){return new Promise((r,o)=>{let u=0,c=0,l=Buffer.alloc(5e6),f=Buffer.alloc(5e6),h=i.spawn(e,t);h.on("spawn",()=>{a.info(`running ${e} ${t.join(" ")}`)}),h.on("error",e=>o(e)),h.on("close",t=>{0!==t?o(new s(e,t)):(a.debug(`process ${e} exited successfully`),r({stdout:l.slice(0,u),stderr:f.slice(0,c)}))}),h.stdout.on("data",e=>{u+=e.copy(l,u)}),h.stderr.on("data",t=>{a.warn(`[${e}][stderr] ${t}`),c+=t.copy(f,c)})})}e.exports={spawnStdout:u}},160:e=>{"use strict";if("undefined"!=typeof SharedArrayBuffer&&"undefined"!=typeof Atomics){let t=new Int32Array(new SharedArrayBuffer(4));e.exports=function(e){if(!1==(e>0&&e<1/0)){if("number"!=typeof e&&"bigint"!=typeof e)throw TypeError("sleep: ms must be a number");throw RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity")}Atomics.wait(t,0,0,Number(e))}}else e.exports=function(e){if(!1==(e>0&&e<1/0)){if("number"!=typeof e&&"bigint"!=typeof e)throw TypeError("sleep: ms must be a number");throw RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity")}let t=Date.now()+Number(e);for(;t>Date.now(););}},924:(e,t,r)=>{"use strict";var i;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(s){var a,u,c,l=arguments,f=(a=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,u=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g,function(e,t,r,i){if(1!==l.length||"string"!==g(e)||/\d/.test(e)||(t=e,e=void 0),(e=e||0===e?e:new Date)instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");var o=(t=String(f.masks[t]||t||f.masks.default)).slice(0,4);("UTC:"===o||"GMT:"===o)&&(t=t.slice(4),r=!0,"GMT:"===o&&(i=!0));var s=function(){return r?"getUTC":"get"},m=function(){return e[s()+"Date"]()},b=function(){return e[s()+"Day"]()},v=function(){return e[s()+"Month"]()},w=function(){return e[s()+"FullYear"]()},_=function(){return e[s()+"Hours"]()},S=function(){return e[s()+"Minutes"]()},x=function(){return e[s()+"Seconds"]()},E=function(){return e[s()+"Milliseconds"]()},O=function(){return r?0:e.getTimezoneOffset()},j=function(){return p(e)},k={d:function(){return m()},dd:function(){return h(m())},ddd:function(){return f.i18n.dayNames[b()]},DDD:function(){return d({y:w(),m:v(),d:m(),_:s(),dayName:f.i18n.dayNames[b()],short:!0})},dddd:function(){return f.i18n.dayNames[b()+7]},DDDD:function(){return d({y:w(),m:v(),d:m(),_:s(),dayName:f.i18n.dayNames[b()+7]})},m:function(){return v()+1},mm:function(){return h(v()+1)},mmm:function(){return f.i18n.monthNames[v()]},mmmm:function(){return f.i18n.monthNames[v()+12]},yy:function(){return String(w()).slice(2)},yyyy:function(){return h(w(),4)},h:function(){return _()%12||12},hh:function(){return h(_()%12||12)},H:function(){return _()},HH:function(){return h(_())},M:function(){return S()},MM:function(){return h(S())},s:function(){return x()},ss:function(){return h(x())},l:function(){return h(E(),3)},L:function(){return h(Math.floor(E()/10))},t:function(){return 12>_()?f.i18n.timeNames[0]:f.i18n.timeNames[1]},tt:function(){return 12>_()?f.i18n.timeNames[2]:f.i18n.timeNames[3]},T:function(){return 12>_()?f.i18n.timeNames[4]:f.i18n.timeNames[5]},TT:function(){return 12>_()?f.i18n.timeNames[6]:f.i18n.timeNames[7]},Z:function(){return i?"GMT":r?"UTC":(String(e).match(u)||[""]).pop().replace(c,"").replace(/GMT\+0000/g,"UTC")},o:function(){return(O()>0?"-":"+")+h(100*Math.floor(Math.abs(O())/60)+Math.abs(O())%60,4)},p:function(){return(O()>0?"-":"+")+h(Math.floor(Math.abs(O())/60),2)+":"+h(Math.floor(Math.abs(O())%60),2)},S:function(){return["th","st","nd","rd"][m()%10>3?0:(m()%100-m()%10!=10)*m()%10]},W:function(){return j()},WW:function(){return h(j())},N:function(){return y(e)}};return t.replace(a,function(e){return e in k?k[e]():e.slice(1,e.length-1)})});f.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},f.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]};var h=function(e,t){for(e=String(e),t=t||2;e.length{var i=r(8118),o=r(8839),s=r(1828),a=r(6151),u=Buffer.from&&Buffer.from!==Uint8Array.from?Buffer.from([0]):new Buffer([0]),c=function(e,t){e._corked?e.once("uncork",t):t()},l=function(e,t){e._autoDestroy&&e.destroy(t)},f=function(e,t){return function(r){r?l(e,"premature close"===r.message?null:r):t&&!e._ended&&e.end()}},h=function(){},d=function(e,t,r){if(!(this instanceof d))return new d(e,t,r);i.Duplex.call(this,r),this._writable=null,this._readable=null,this._readable2=null,this._autoDestroy=!r||!1!==r.autoDestroy,this._forwardDestroy=!r||!1!==r.destroy,this._forwardEnd=!r||!1!==r.end,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this.destroyed=!1,e&&this.setWritable(e),t&&this.setReadable(t)};s(d,i.Duplex),d.obj=function(e,t,r){return r||(r={}),r.objectMode=!0,r.highWaterMark=16,new d(e,t,r)},d.prototype.cork=function(){1==++this._corked&&this.emit("cork")},d.prototype.uncork=function(){this._corked&&0==--this._corked&&this.emit("uncork")},d.prototype.setWritable=function(e){if(this._unwrite&&this._unwrite(),this.destroyed){e&&e.destroy&&e.destroy();return}if(null===e||!1===e){this.end();return}var t=this,r=o(e,{writable:!0,readable:!1},f(this,this._forwardEnd)),i=function(){var e=t._ondrain;t._ondrain=null,e&&e()};this._unwrite&&process.nextTick(i),this._writable=e,this._writable.on("drain",i),this._unwrite=function(){t._writable.removeListener("drain",i),r()},this.uncork()},d.prototype.setReadable=function(e){if(this._unread&&this._unread(),this.destroyed){e&&e.destroy&&e.destroy();return}if(null===e||!1===e){this.push(null),this.resume();return}var t=this,r=o(e,{writable:!1,readable:!0},f(this)),s=function(){t._forward()},a=function(){t.push(null)};this._drained=!0,this._readable=e,this._readable2=e._readableState?e:new i.Readable({objectMode:!0,highWaterMark:16}).wrap(e),this._readable2.on("readable",s),this._readable2.on("end",a),this._unread=function(){t._readable2.removeListener("readable",s),t._readable2.removeListener("end",a),r()},this._forward()},d.prototype._read=function(){this._drained=!0,this._forward()},d.prototype._forward=function(){var e;if(!this._forwarding&&this._readable2&&this._drained){for(this._forwarding=!0;this._drained&&null!==(e=a(this._readable2));)this.destroyed||(this._drained=this.push(e));this._forwarding=!1}},d.prototype.destroy=function(e,t){if(t||(t=h),this.destroyed)return t(null);this.destroyed=!0;var r=this;process.nextTick(function(){r._destroy(e),t(null)})},d.prototype._destroy=function(e){if(e){var t=this._ondrain;this._ondrain=null,t?t(e):this.emit("error",e)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close")},d.prototype._write=function(e,t,r){if(!this.destroyed){if(this._corked)return c(this,this._write.bind(this,e,t,r));if(e===u)return this._finish(r);if(!this._writable)return r();!1===this._writable.write(e)?this._ondrain=r:this.destroyed||r()}},d.prototype._finish=function(e){var t=this;this.emit("preend"),c(this,function(){var r,i;r=t._forwardEnd&&t._writable,i=function(){!1===t._writableState.prefinished&&(t._writableState.prefinished=!0),t.emit("prefinish"),c(t,e)},!r||r._writableState&&r._writableState.finished?i():r._writableState?r.end(i):(r.end(),i())})},d.prototype.end=function(e,t,r){return"function"==typeof e?this.end(null,null,e):"function"==typeof t?this.end(e,null,t):(this._ended=!0,e&&this.write(e),this._writableState.ending||this._writableState.destroyed||this.write(u),i.Writable.prototype.end.call(this,r))},e.exports=d},8839:(e,t,r)=>{var i=r(5962),o=function(){},s=function(e,t,r){if("function"==typeof t)return s(e,null,t);t||(t={}),r=i(r||o);var a=e._writableState,u=e._readableState,c=t.readable||!1!==t.readable&&e.readable,l=t.writable||!1!==t.writable&&e.writable,f=!1,h=function(){e.writable||d()},d=function(){l=!1,c||r.call(e)},p=function(){c=!1,l||r.call(e)},y=function(t){r.call(e,t?Error("exited with error code: "+t):null)},g=function(t){r.call(e,t)},m=function(){process.nextTick(b)},b=function(){if(!f&&(c&&!(u&&u.ended&&!u.destroyed)||l&&!(a&&a.ended&&!a.destroyed)))return r.call(e,Error("premature close"))},v=function(){e.req.on("finish",d)};return e.setHeader&&"function"==typeof e.abort?(e.on("complete",d),e.on("abort",m),e.req?v():e.on("request",v)):l&&!a&&(e.on("end",h),e.on("close",h)),e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length&&e.on("exit",y),e.on("end",p),e.on("finish",d),!1!==t.error&&e.on("error",g),e.on("close",m),function(){f=!0,e.removeListener("complete",d),e.removeListener("abort",m),e.removeListener("request",v),e.req&&e.req.removeListener("finish",d),e.removeListener("end",h),e.removeListener("close",h),e.removeListener("finish",d),e.removeListener("exit",y),e.removeListener("end",p),e.removeListener("error",g),e.removeListener("close",m)}};e.exports=s},9775:(e,t,r)=>{"use strict";let i=r(2090),o=r(2224),s=r(4281),a=r(7414),{groupRedact:u,nestedRedact:c}=r(9958),l=r(1166),f=r(5392),h=i(),d=e=>e;function p(e={}){let t=Array.from(new Set(e.paths||[])),r="serialize"in e?!1===e.serialize?e.serialize:"function"==typeof e.serialize?e.serialize:JSON.stringify:JSON.stringify,i=e.remove;if(!0===i&&r!==JSON.stringify)throw Error("fast-redact – remove option may only be set when serializer is JSON.stringify");let f=!0===i?void 0:"censor"in e?e.censor:"[REDACTED]",p="function"==typeof f,y=p&&f.length>1;if(0===t.length)return r||d;h({paths:t,serialize:r,censor:f});let{wildcards:g,wcLen:m,secret:b}=o({paths:t,censor:f}),v=a({secret:b,wcLen:m}),w=!("strict"in e)||e.strict;return s({secret:b,wcLen:m,serialize:r,strict:w,isCensorFct:p,censorFctTakesPath:y},l({secret:b,censor:f,compileRestore:v,serialize:r,groupRedact:u,nestedRedact:c,wildcards:g,wcLen:m}))}d.restore=d,p.rx=f,p.validator=i,e.exports=p},9958:e=>{"use strict";function t(e,t){for(var r=-1,i=t.length,o=e;null!=o&&++r{"use strict";let i=r(5392);e.exports=function({paths:e}){let t=[];var r=0;let o=e.reduce(function(e,o,s){var a=o.match(i).map(e=>e.replace(/'|"|`/g,""));let u="["===o[0];a=a.map(e=>"["===e[0]?e.substr(1,e.length-2):e);let c=a.indexOf("*");if(c>-1){let e=a.slice(0,c),i=e.join("."),o=a.slice(c+1,a.length);if(o.indexOf("*")>-1)throw Error("fast-redact – Only one wildcard per path is supported");let s=o.length>0;r++,t.push({before:e,beforeStr:i,after:o,nested:s})}else e[o]={path:a,val:void 0,precensored:!1,circle:"",escPath:JSON.stringify(o),leadingBracket:u};return e},{});return{wildcards:t,wcLen:r,secret:o}}},4281:(e,t,r)=>{"use strict";let i=r(5392);e.exports=function({secret:e,serialize:t,wcLen:r,strict:o,isCensorFct:s,censorFctTakesPath:a},u){let c=Function("o",` if (typeof o !== 'object' || o == null) { ${!0===o?"throw Error('fast-redact: primitives cannot be redacted')":!1===t?"return o":"return this.serialize(o)"} } @@ -68,4 +68,4 @@ o${r} if ([o${r}].length !== 1) throw Error() })() - `,i({o:t,〇:null}),{codeGeneration:{strings:!1,wasm:!1}})}catch(t){throw Error(r(e))}})}}},2988:e=>{e.exports=a,a.default=a,a.stable=l,a.stableStringify=l;var t="[...]",r="[Circular]",i=[],o=[];function s(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(e,a,c,l){void 0===l&&(l=s()),function e(i,o,s,a,c,l,f){if(l+=1,"object"==typeof i&&null!==i){for(h=0;hf.depthLimit||void 0!==f.edgesLimit&&s+1>f.edgesLimit){u(t,i,o,c);return}if(a.push(i),Array.isArray(i))for(h=0;ht?1:0}function l(e,a,l,h){void 0===h&&(h=s());var d,p=function e(o,s,a,l,f,h,d){if(h+=1,"object"==typeof o&&null!==o){for(p=0;pd.depthLimit||void 0!==d.edgesLimit&&a+1>d.edgesLimit){u(t,o,s,f);return}if(l.push(o),Array.isArray(o))for(p=0;p0)for(var i=0;i{"use strict";e.exports=function(e){return e}},1828:(e,t,r)=>{try{var i=r(3837);if("function"!=typeof i.inherits)throw"";e.exports=i.inherits}catch(t){e.exports=r(3730)}},3730:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},3538:e=>{"use strict";function t(e,t,r,i){function o(){let e=t.deref();void 0!==e&&r(e,i)}e[i]=o,process.once(i,o)}let r=new FinalizationRegistry(o),i=new WeakMap;function o(e){process.removeListener("exit",e.exit),process.removeListener("beforeExit",e.beforeExit)}e.exports={register:function(e,o){if(void 0===e)throw Error("the object can't be undefined");let s=new WeakRef(e),a={};i.set(e,a),r.register(e,a),t(a,s,o,"exit"),t(a,s,o,"beforeExit")},unregister:function(e){let t=i.get(e);i.delete(e),t&&o(t),r.unregister(e)}}},5962:(e,t,r)=>{var i=r(4447);function o(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function s(e){var t=function(){if(t.called)throw Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}e.exports=i(o),e.exports.strict=i(s),o.proto=o(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return o(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return s(this)},configurable:!0})})},2306:(e,t,r)=>{"use strict";let i=Symbol.for("pino.metadata"),o=r(5443),s=r(7008);function a(e,t){process.nextTick(t,e)}e.exports=function(e,t={}){let r="lines"===t.parse,u="function"==typeof t.parseLine?t.parseLine:JSON.parse,c=t.close||a,l=o(function(e){let t;try{t=u(e)}catch(t){this.emit("unknown",e,t);return}if(null===t){this.emit("unknown",e,"Null value ignored");return}return("object"!=typeof t&&(t={data:t,time:Date.now()}),l[i]&&(l.lastTime=t.time,l.lastLevel=t.level,l.lastObj=t),r)?e:t},{autoDestroy:!0});l._destroy=function(e,t){let r=c(e,t);r&&"function"==typeof r.then&&r.then(t,t)},!1!==t.metadata&&(l[i]=!0,l.lastTime=0,l.lastLevel=0,l.lastObj=null);let f=e(l);if(f&&"function"==typeof f.catch)f.catch(e=>{l.destroy(e)}),f=null;else if(t.enablePipelining&&f)return s(l,f,{objectMode:!0});return l}},1787:(e,t,r)=>{"use strict";let i=r(8556)();e.exports=i;let o="PinoWarning";i.create(o,"PINODEP004","bindings.serializers is deprecated, use options.serializers option instead"),i.create(o,"PINODEP005","bindings.formatters is deprecated, use options.formatters option instead"),i.create(o,"PINODEP006","bindings.customLevels is deprecated, use options.customLevels option instead"),i.create(o,"PINODEP007","bindings.level is deprecated, use options.level option instead")},6441:(e,t,r)=>{"use strict";let i=r(8306),{lsCacheSym:o,levelValSym:s,useOnlyCustomLevelsSym:a,streamSym:u,formattersSym:c,hooksSym:l}=r(4941),{noop:f,genLog:h}=r(9952),d={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},p={fatal:e=>{let t=h(d.fatal,e);return function(...e){let r=this[u];if(t.call(this,...e),"function"==typeof r.flushSync)try{r.flushSync()}catch(e){}}},error:e=>h(d.error,e),warn:e=>h(d.warn,e),info:e=>h(d.info,e),debug:e=>h(d.debug,e),trace:e=>h(d.trace,e)},y=Object.keys(d).reduce((e,t)=>(e[d[t]]=t,e),{}),g=Object.keys(y).reduce((e,t)=>(e[t]=i('{"level":'+Number(t)),e),{});e.exports={initialLsCache:g,genLsCache:function(e){let t=e[c].level,{labels:r}=e.levels,i={};for(let e in r){let o=t(r[e],Number(e));i[e]=JSON.stringify(o).slice(0,-1)}return e[o]=i,e},levelMethods:p,getLevel:function(e){let{levels:t,levelVal:r}=this;return t&&t.labels?t.labels[r]:""},setLevel:function(e){let{labels:t,values:r}=this.levels;if("number"==typeof e){if(void 0===t[e])throw Error("unknown level value"+e);e=t[e]}if(void 0===r[e])throw Error("unknown level "+e);let i=this[s],o=this[s]=r[e],u=this[a],c=this[l].logMethod;for(let e in r){if(o>r[e]){this[e]=f;continue}this[e]=!function(e,t){if(t)return!1;switch(e){case"fatal":case"error":case"warn":case"info":case"debug":case"trace":return!0;default:return!1}}(e,u)?h(r[e],c):p[e](c)}this.emit("level-change",e,o,t[i],i)},isLevelEnabled:function(e){let{values:t}=this.levels,r=t[e];return void 0!==r&&r>=this[s]},mappings:function(e=null,t=!1){let r=e?Object.keys(e).reduce((t,r)=>(t[e[r]]=r,t),{}):null,i=Object.assign(Object.create(Object.prototype,{Infinity:{value:"silent"}}),t?null:y,r),o=Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),t?null:d,e);return{labels:i,values:o}},assertNoLevelCollisions:function(e,t){let{labels:r,values:i}=e;for(let e in t){if(e in i)throw Error("levels cannot be overridden");if(t[e]in r)throw Error("pre-existing level values cannot be used for new levels")}},assertDefaultLevelFound:function(e,t,r){if("number"==typeof e){let i=[].concat(Object.keys(t||{}).map(e=>t[e]),r?[]:Object.keys(y).map(e=>+e),1/0);if(!i.includes(e))throw Error(`default level:${e} must be included in custom levels`);return}let i=Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),r?null:d,t);if(!(e in i))throw Error(`default level:${e} must be included in custom levels`)}}},8508:(e,t,r)=>{"use strict";let{version:i}=r(8002);e.exports={version:i}},5092:(e,t,r)=>{"use strict";let{EventEmitter:i}=r(2361),o=r(4656),s=r(8306),a=r(1787),{lsCacheSym:u,levelValSym:c,setLevelSym:l,getLevelSym:f,chindingsSym:h,parsedChindingsSym:d,mixinSym:p,asJsonSym:y,writeSym:g,mixinMergeStrategySym:m,timeSym:b,timeSliceIndexSym:v,streamSym:w,serializersSym:_,formattersSym:S,useOnlyCustomLevelsSym:x,needsMetadataGsym:E,redactFmtSym:O,stringifySym:j,formatOptsSym:k,stringifiersSym:T}=r(4941),{getLevel:R,setLevel:M,isLevelEnabled:P,mappings:A,initialLsCache:L,genLsCache:N,assertNoLevelCollisions:D}=r(6441),{asChindings:C,asJson:I,buildFormatters:B,stringify:$}=r(9952),{version:q}=r(8508),U=r(5434),F={constructor:class{},child:function(e,t){if(!e)throw Error("missing bindings for child Pino");t=t||{};let r=this[_],i=this[S],o=Object.create(this);if(!0===e.hasOwnProperty("serializers")&&(a.emit("PINODEP004"),t.serializers=e.serializers),!0===e.hasOwnProperty("formatters")&&(a.emit("PINODEP005"),t.formatters=e.formatters),!0===e.hasOwnProperty("customLevels")&&(a.emit("PINODEP006"),t.customLevels=e.customLevels),!0===e.hasOwnProperty("level")&&(a.emit("PINODEP007"),t.level=e.level),!0===t.hasOwnProperty("serializers")){for(let e in o[_]=Object.create(null),r)o[_][e]=r[e];let e=Object.getOwnPropertySymbols(r);for(var s=0;se;function G(e,t){return Object.assign(t,e)}},5434:(e,t,r)=>{"use strict";let i=r(6417),{redactFmtSym:o,wildcardFirstSym:s}=r(4941),{rx:a,validator:u}=i,c=u({ERR_PATHS_MUST_BE_STRINGS:()=>"pino – redacted paths must be strings",ERR_INVALID_PATH:e=>`pino – redact paths array contains an invalid path (${e})`}),l="[Redacted]";e.exports=function(e,t){let{paths:r,censor:u}=function(e){if(Array.isArray(e))return c(e={paths:e,censor:l}),e;let{paths:t,censor:r=l,remove:i}=e;if(!1===Array.isArray(t))throw Error("pino – redact must contain an array of strings");return!0===i&&(r=void 0),c({paths:t,censor:r}),{paths:t,censor:r}}(e),f=r.reduce((e,t)=>{a.lastIndex=0;let r=a.exec(t),i=a.exec(t),o=void 0!==r[1]?r[1].replace(/^(?:"|'|`)(.*)(?:"|'|`)$/,"$1"):r[0];if("*"===o&&(o=s),null===i)return e[o]=null,e;if(null===e[o])return e;let{index:u}=i,c=`${t.substr(u,t.length-1)}`;return e[o]=e[o]||[],o!==s&&0===e[o].length&&e[o].push(...e[s]||[]),o===s&&Object.keys(e).forEach(function(t){e[t]&&e[t].push(c)}),e[o].push(c),e},{}),h={[o]:i({paths:r,censor:u,serialize:t,strict:!1})},d=(...e)=>"function"==typeof u?t(u(...e)):t(u);return[...Object.keys(f),...Object.getOwnPropertySymbols(f)].reduce((e,r)=>{if(null===f[r])e[r]=e=>d(e,[r]);else{let o="function"==typeof u?(e,t)=>u(e,[r,...t]):u;e[r]=i({paths:f[r],censor:o,serialize:t,strict:!1})}return e},h)}},4941:e=>{"use strict";let t=Symbol("pino.setLevel"),r=Symbol("pino.getLevel"),i=Symbol("pino.levelVal"),o=Symbol("pino.useLevelLabels"),s=Symbol("pino.useOnlyCustomLevels"),a=Symbol("pino.mixin"),u=Symbol("pino.lsCache"),c=Symbol("pino.chindings"),l=Symbol("pino.parsedChindings"),f=Symbol("pino.asJson"),h=Symbol("pino.write"),d=Symbol("pino.redactFmt"),p=Symbol("pino.time"),y=Symbol("pino.timeSliceIndex"),g=Symbol("pino.stream"),m=Symbol("pino.stringify"),b=Symbol("pino.stringifiers"),v=Symbol("pino.end"),w=Symbol("pino.formatOpts"),_=Symbol("pino.messageKey"),S=Symbol("pino.nestedKey"),x=Symbol("pino.mixinMergeStrategy"),E=Symbol("pino.wildcardFirst"),O=Symbol.for("pino.serializers"),j=Symbol.for("pino.formatters"),k=Symbol.for("pino.hooks"),T=Symbol.for("pino.metadata");e.exports={setLevelSym:t,getLevelSym:r,levelValSym:i,useLevelLabelsSym:o,mixinSym:a,lsCacheSym:u,chindingsSym:c,parsedChindingsSym:l,asJsonSym:f,writeSym:h,serializersSym:O,redactFmtSym:d,timeSym:p,timeSliceIndexSym:y,streamSym:g,stringifySym:m,stringifiersSym:b,endSym:v,formatOptsSym:w,messageKeySym:_,nestedKeySym:S,wildcardFirstSym:E,needsMetadataGsym:T,useOnlyCustomLevelsSym:s,formattersSym:j,hooksSym:k,mixinMergeStrategySym:x}},9649:e=>{"use strict";e.exports={nullTime:()=>"",epochTime:()=>`,"time":${Date.now()}`,unixTime:()=>`,"time":${Math.round(Date.now()/1e3)}`,isoTime:()=>`,"time":"${new Date(Date.now()).toISOString()}"`}},9952:(e,t,r)=>{"use strict";let i=r(4532),{mapHttpRequest:o,mapHttpResponse:s}=r(4186),a=r(4656),u=r(2988),{lsCacheSym:c,chindingsSym:l,parsedChindingsSym:f,writeSym:h,serializersSym:d,formatOptsSym:p,endSym:y,stringifiersSym:g,stringifySym:m,wildcardFirstSym:b,needsMetadataGsym:v,redactFmtSym:w,streamSym:_,nestedKeySym:S,formattersSym:x,messageKeySym:E}=r(4941);function O(){}function j(e,t,i,o){if(t&&"function"==typeof t)return k((t=t.bind(o))(e),i,e);try{let t=r(1686).prettyFactory||r(1686);return t.asMetaWrapper=k,k(t(e),i,e)}catch(e){if(e.message.startsWith("Cannot find module 'pino-pretty'"))throw Error("Missing `pino-pretty` module: `pino-pretty` must be installed separately");throw e}}function k(e,t,r){r=Object.assign({suppressFlushSyncWarning:!1},r);let i=!1;return{[v]:!0,lastLevel:0,lastMsg:null,lastObj:null,lastLogger:null,flushSync(){r.suppressFlushSyncWarning||i||(i=!0,R(t,this),t.write(e(Object.assign({level:40,msg:"pino.final with prettyPrint does not support flushing",time:Date.now()},this.chindings()))))},chindings(){let e=this.lastLogger,t=null;return e?(e.hasOwnProperty(f)?t=e[f]:(t=JSON.parse("{"+e[l].substr(1)+"}"),e[f]=t),t):null},write(r){let i=this.lastLogger,o=this.chindings(),s=this.lastTime;s=s.match(/^\d+/)?parseInt(s):s.slice(1,-1);let a=this.lastObj,u=this.lastMsg,c=i[x],l=c.log?c.log(a):a,f=i[E];u&&l&&!l.hasOwnProperty(f)&&(l[f]=u);let h=Object.assign({level:this.lastLevel,time:s},l,null),p=i[d],y=Object.keys(p);for(var m=0;m100)return JSON.stringify(e);for(var a=0;a=32;a++)(34===(o=e.charCodeAt(a))||92===o)&&(t+=e.slice(r,a)+"\\",r=a,i=!0);return i?t+=e.slice(r):t=e,o<32?JSON.stringify(e):'"'+t+'"'})(o);break;default:o=(e||s)(o)}if(void 0===o)continue;w+=',"'+t+'":'+o}return w+u},genLog:function(e,t){if(!t)return r;return function(...i){t.call(this,i,r,e)};function r(t,...a){if("object"==typeof t){let r,u=t;null!==t&&(t.method&&t.headers&&t.socket?t=o(t):"function"==typeof t.setHeader&&(t=s(t))),this[S]&&(t={[this[S]]:t}),null===u&&0===a.length?r=[null]:(u=a.shift(),r=a),this[h](t,i(u,r,this[p]),e)}else this[h](null,i(t,a,this[p]),e)}},createArgsNormalizer:function(e){return function(t,r={},i){var o;if("string"==typeof r?(i=T({dest:r,sync:!0}),r={}):"string"==typeof i?i=T({dest:i,sync:!0}):(r instanceof a||r.writable||r._writableState)&&(i=r,r=null),"extreme"in(r=Object.assign({},e,r)))throw Error("The extreme option has been removed, use pino.destination({ sync: false }) instead");if("onTerminated"in r)throw Error("The onTerminated option has been removed, use pino.final instead");"changeLevelName"in r&&(process.emitWarning("The changeLevelName option is deprecated and will be removed in v7. Use levelKey instead.",{code:"changeLevelName_deprecation"}),r.levelKey=r.changeLevelName,delete r.changeLevelName);let{enabled:s,prettyPrint:u,prettifier:c,messageKey:l}=r;if(!1===s&&(r.level="silent"),(i=i||process.stdout)===process.stdout&&i.fd>=0&&!((o=i).write!==o.constructor.prototype.write)&&(i=T({fd:i.fd,sync:!0})),u){let e=Object.assign({messageKey:l},u);i=j(e,c,i,t)}return{opts:r,stream:i}}},final:function(e,t){if(void 0===e||"function"!=typeof e.child)throw Error("expected a pino logger instance");let r=void 0!==t;if(r&&"function"!=typeof t)throw Error("if supplied, the handler parameter should be a function");let i=e[_];if("function"!=typeof i.flushSync)throw Error("final requires a stream that has a flushSync method, such as pino.destination");let o=new Proxy(e,{get:(e,t)=>t in e.levels.values?(...r)=>{e[t](...r),i.flushSync()}:e[t]});return r?(e=null,...r)=>{try{i.flushSync()}catch(e){}return t(e,o,...r)}:o},stringify:function(e){try{return JSON.stringify(e)}catch(t){return u(e)}},buildFormatters:function(e,t,r){return{level:e,bindings:t,log:r}}}},8167:(e,t,r)=>{"use strict";let i=r(2037),o=r(4186),s=r(5434),a=r(9649),u=r(5092),c=r(4941),{assertDefaultLevelFound:l,mappings:f,genLsCache:h}=r(6441),{createArgsNormalizer:d,asChindings:p,final:y,stringify:g,buildSafeSonicBoom:m,buildFormatters:b,noop:v}=r(9952),{version:w}=r(8508),{mixinMergeStrategySym:_}=r(4941),{chindingsSym:S,redactFmtSym:x,serializersSym:E,timeSym:O,timeSliceIndexSym:j,streamSym:k,stringifySym:T,stringifiersSym:R,setLevelSym:M,endSym:P,formatOptsSym:A,messageKeySym:L,nestedKeySym:N,mixinSym:D,useOnlyCustomLevelsSym:C,formattersSym:I,hooksSym:B}=c,{epochTime:$,nullTime:q}=a,{pid:U}=process,F=i.hostname(),W=o.err,G={level:"info",messageKey:"msg",nestedKey:null,enabled:!0,prettyPrint:!1,base:{pid:U,hostname:F},serializers:Object.assign(Object.create(null),{err:W}),formatters:Object.assign(Object.create(null),{bindings:e=>e,level:(e,t)=>({level:t})}),hooks:{logMethod:void 0},timestamp:$,name:void 0,redact:null,customLevels:null,levelKey:void 0,useOnlyCustomLevels:!1},z=d(G),H=Object.assign(Object.create(null),o);function J(...e){var t,r;let i={},{opts:o,stream:a}=z(i,...e),{redact:c,crlf:d,serializers:y,timestamp:m,messageKey:w,nestedKey:U,base:F,name:W,level:H,customLevels:Y,useLevelLabels:V,changeLevelName:Q,levelKey:X,mixin:Z,mixinMergeStrategy:ee,useOnlyCustomLevels:et,formatters:er,hooks:en}=o,ei=b(er.level,er.bindings,er.log);V&&!(Q||X)?(process.emitWarning("useLevelLabels is deprecated, use the formatters.level option instead","Warning","PINODEP001"),ei.level=K):(Q||X)&&!V?(process.emitWarning("changeLevelName and levelKey are deprecated, use the formatters.level option instead","Warning","PINODEP002"),ei.level=(t=Q||X,function(e,r){return{[t]:r}})):(Q||X)&&V&&(process.emitWarning("useLevelLabels is deprecated, use the formatters.level option instead","Warning","PINODEP001"),process.emitWarning("changeLevelName and levelKey are deprecated, use the formatters.level option instead","Warning","PINODEP002"),ei.level=(r=Q||X,function(e,t){return{[r]:e}})),y[Symbol.for("pino.*")]&&(process.emitWarning("The pino.* serializer is deprecated, use the formatters.log options instead","Warning","PINODEP003"),ei.log=y[Symbol.for("pino.*")]),ei.bindings||(ei.bindings=G.formatters.bindings),ei.level||(ei.level=G.formatters.level);let eo=c?s(c,g):{},es=c?{stringify:eo[x]}:{stringify:g},ea=p.bind(null,{[S]:"",[E]:y,[R]:eo,[T]:g,[I]:ei}),eu="";null!==F&&(eu=ea(void 0===W?F:Object.assign({},F,{name:W})));let ec=m instanceof Function?m:m?$:q,el=ec().indexOf(":")+1;if(et&&!Y)throw Error("customLevels is required if useOnlyCustomLevels is set true");if(Z&&"function"!=typeof Z)throw Error(`Unknown mixin type "${typeof Z}" - expected "function"`);l(H,Y,et);let ef=f(Y,et);return Object.assign(i,{levels:ef,[C]:et,[k]:a,[O]:ec,[j]:el,[T]:g,[R]:eo,[P]:"}"+(d?"\r\n":"\n"),[A]:es,[L]:w,[N]:U,[E]:y,[D]:Z,[_]:ee,[S]:eu,[I]:ei,[B]:en,silent:v}),Object.setPrototypeOf(i,u()),h(i),i[M](H),i}function K(e,t){return{level:e}}e.exports=J,e.exports.extreme=(e=process.stdout.fd)=>(process.emitWarning("The pino.extreme() option is deprecated and will be removed in v7. Use pino.destination({ sync: false }) instead.",{code:"extreme_deprecation"}),m({dest:e,minLength:4096,sync:!1})),e.exports.destination=(e=process.stdout.fd)=>"object"==typeof e?(e.dest=e.dest||process.stdout.fd,m(e)):m({dest:e,minLength:0,sync:!0}),e.exports.final=y,e.exports.levels=f(),e.exports.stdSerializers=H,e.exports.stdTimeFunctions=Object.assign({},a),e.exports.symbols=c,e.exports.version=w,e.exports.default=J,e.exports.pino=J},4186:(e,t,r)=>{"use strict";let i=r(7657),o=r(6836),s=r(6364);e.exports={err:i,mapHttpRequest:o.mapHttpRequest,mapHttpResponse:s.mapHttpResponse,req:o.reqSerializer,res:s.resSerializer,wrapErrorSerializer:function(e){return e===i?e:function(t){return e(i(t))}},wrapRequestSerializer:function(e){return e===o.reqSerializer?e:function(t){return e(o.reqSerializer(t))}},wrapResponseSerializer:function(e){return e===s.resSerializer?e:function(t){return e(s.resSerializer(t))}}}},7657:e=>{"use strict";e.exports=function e(i){if(!(i instanceof Error))return i;i[r]=void 0;let s=Object.create(o);for(let o in s.type="[object Function]"===t.call(i.constructor)?i.constructor.name:i.name,s.message=i.message,s.stack=i.stack,i)if(void 0===s[o]){let t=i[o];t instanceof Error?t.hasOwnProperty(r)||(s[o]=e(t)):s[o]=t}return delete i[r],s.raw=i,s};let{toString:t}=Object.prototype,r=Symbol("circular-ref-tag"),i=Symbol("pino-raw-err-ref"),o=Object.create({},{type:{enumerable:!0,writable:!0,value:void 0},message:{enumerable:!0,writable:!0,value:void 0},stack:{enumerable:!0,writable:!0,value:void 0},raw:{enumerable:!1,get:function(){return this[i]},set:function(e){this[i]=e}}});Object.defineProperty(o,i,{writable:!0,value:{}})},6836:e=>{"use strict";e.exports={mapHttpRequest:function(e){return{req:i(e)}},reqSerializer:i};let t=Symbol("pino-raw-req-ref"),r=Object.create({},{id:{enumerable:!0,writable:!0,value:""},method:{enumerable:!0,writable:!0,value:""},url:{enumerable:!0,writable:!0,value:""},query:{enumerable:!0,writable:!0,value:""},params:{enumerable:!0,writable:!0,value:""},headers:{enumerable:!0,writable:!0,value:{}},remoteAddress:{enumerable:!0,writable:!0,value:""},remotePort:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[t]},set:function(e){this[t]=e}}});function i(e){let t=e.info||e.socket,i=Object.create(r);return i.id="function"==typeof e.id?e.id():e.id||(e.info?e.info.id:void 0),i.method=e.method,e.originalUrl?(i.url=e.originalUrl,i.query=e.query,i.params=e.params):i.url=e.path||(e.url?e.url.path||e.url:void 0),i.headers=e.headers,i.remoteAddress=t&&t.remoteAddress,i.remotePort=t&&t.remotePort,i.raw=e.raw||e,i}Object.defineProperty(r,t,{writable:!0,value:{}})},6364:e=>{"use strict";e.exports={mapHttpResponse:function(e){return{res:i(e)}},resSerializer:i};let t=Symbol("pino-raw-res-ref"),r=Object.create({},{statusCode:{enumerable:!0,writable:!0,value:0},headers:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[t]},set:function(e){this[t]=e}}});function i(e){let t=Object.create(r);return t.statusCode=e.statusCode,t.headers=e.getHeaders?e.getHeaders():e._headers,t.raw=e,t}Object.defineProperty(r,t,{writable:!0,value:{}})},8556:(e,t,r)=>{"use strict";let{format:i}=r(3837);e.exports=function(){let e={},t=new Map;return{create:function(r,o,s){if(!r)throw Error("Warning name must not be empty");if(!o)throw Error("Warning code must not be empty");if(!s)throw Error("Warning message must not be empty");if(void 0!==e[o=o.toUpperCase()])throw Error(`The code '${o}' already exist`);return t.set(o,!1),e[o]=function(e,t,a){return{code:o,name:r,message:e&&t&&a?i(s,e,t,a):e&&t?i(s,e,t):e?i(s,e):s}},e[o]},emit:function(r,i,o,s){if(void 0===e[r])throw Error(`The code '${r}' does not exist`);if(!0===t.get(r))return;t.set(r,!0);let a=e[r](i,o,s);process.emitWarning(a.message,a.name,a.code)},emitted:t}}},2181:(e,t,r)=>{var i=r(5962),o=r(8839),s=r(7147),a=function(){},u=/^v?\.0/.test(process.version),c=function(e){return"function"==typeof e},l=function(e,t,r,l){l=i(l);var f=!1;e.on("close",function(){f=!0}),o(e,{readable:t,writable:r},function(e){if(e)return l(e);f=!0,l()});var h=!1;return function(t){if(!f&&!h){if(h=!0,u&&s&&(e instanceof(s.ReadStream||a)||e instanceof(s.WriteStream||a))&&c(e.close))return e.close(a);if(e.setHeader&&c(e.abort))return e.abort();if(c(e.destroy))return e.destroy();l(t||Error("stream was destroyed"))}}},f=function(e){e()},h=function(e,t){return e.pipe(t)};e.exports=function(){var e,t=Array.prototype.slice.call(arguments),r=c(t[t.length-1]||a)&&t.pop()||a;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw Error("pump requires two streams per minimum");var i=t.map(function(o,s){var a=s0,function(t){e||(e=t),t&&i.forEach(f),a||(i.forEach(f),r(e))})});return t.reduce(h)}},4532:e=>{"use strict";function t(e){try{return JSON.stringify(e)}catch(e){return'"[Circular]"'}}e.exports=function(e,r,i){var o=i&&i.stringify||t;if("object"==typeof e&&null!==e){var s=r.length+1;if(1===s)return e;var a=Array(s);a[0]=o(e);for(var u=1;u-1?h:0,e.charCodeAt(p+1)){case 100:case 102:if(f>=c||null==r[f])break;h=c||null==r[f])break;h=c||void 0===r[f])break;h",h=p+2,p++;break}l+=o(r[f]),h=p+2,p++;break;case 115:if(f>=c)break;h{"use strict";let t={};function r(e,r,i){i||(i=Error);class o extends i{constructor(e,t,i){super("string"==typeof r?r:r(e,t,i))}}o.prototype.name=i.name,o.prototype.code=e,t[e]=o}function i(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){var o,s,a,u,c;let l,f;if("string"==typeof t&&(o="not ",t.substr(!s||s<0?0:+s,o.length)===o)?(l="must not be",t=t.replace(/^not /,"")):l="must be",a=" argument",(void 0===u||u>e.length)&&(u=e.length),e.substring(u-a.length,u)===a)f=`The ${e} ${l} ${i(t,"type")}`;else{let r=("number"!=typeof c&&(c=0),c+1>e.length||-1===e.indexOf(".",c))?"argument":"property";f=`The "${e}" ${r} ${l} ${i(t,"type")}`}return f+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},673:(e,t,r)=>{"use strict";var i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var o=r(5006),s=r(8719);r(1828)(l,o);for(var a=i(s.prototype),u=0;u{"use strict";e.exports=o;var i=r(8597);function o(e){if(!(this instanceof o))return new o(e);i.call(this,e)}r(1828)(o,i),o.prototype._transform=function(e,t,r){r(null,e)}},5006:(e,t,r)=>{"use strict";e.exports=O,O.ReadableState=E,r(2361).EventEmitter;var i,o,s,a,u,c=function(e,t){return e.listeners(t).length},l=r(1829),f=r(4300).Buffer,h=global.Uint8Array||function(){},d=r(3837);o=d&&d.debuglog?d.debuglog("stream"):function(){};var p=r(4506),y=r(618),g=r(1111).getHighWaterMark,m=r(7638).q,b=m.ERR_INVALID_ARG_TYPE,v=m.ERR_STREAM_PUSH_AFTER_EOF,w=m.ERR_METHOD_NOT_IMPLEMENTED,_=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(1828)(O,l);var S=y.errorOrDestroy,x=["error","close","destroy","pause","resume"];function E(e,t,o){i=i||r(673),e=e||{},"boolean"!=typeof o&&(o=t instanceof i),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",o),this.buffer=new p,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=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=r(7361).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function O(e){if(i=i||r(673),!(this instanceof O))return new O(e);var t=this instanceof i;this._readableState=new E(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),l.call(this)}function j(e,t,r,i,s){o("readableAddChunk",t);var a,u,c,l,d,p=e._readableState;if(null===t)p.reading=!1,function(e,t){if(o("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?R(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,M(e)))}}(e,p);else{if(s||(a=p,u=t,f.isBuffer(u)||u instanceof h||"string"==typeof u||void 0===u||a.objectMode||(c=new b("chunk",["string","Buffer","Uint8Array"],u)),d=c),d)S(e,d);else if(p.objectMode||t&&t.length>0){if("string"==typeof t||p.objectMode||Object.getPrototypeOf(t)===f.prototype||(l=t,t=f.from(l)),i)p.endEmitted?S(e,new _):k(e,p,t,!0);else if(p.ended)S(e,new v);else{if(p.destroyed)return!1;p.reading=!1,p.decoder&&!r?(t=p.decoder.write(t),p.objectMode||0!==t.length?k(e,p,t,!1):P(e,p)):k(e,p,t,!1)}}else i||(p.reading=!1,P(e,p))}return!p.ended&&(p.lengtht.highWaterMark){var r;t.highWaterMark=((r=e)>=1073741824?r=1073741824:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)}return e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)}function R(e){var t=e._readableState;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(M,e))}function M(e){var t=e._readableState;o("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,C(e)}function P(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(A,e,t))}function A(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function N(e){o("readable nexttick read 0"),e.read(0)}function D(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),C(e),t.flowing&&!t.reading&&e.read(0)}function C(e){var t=e._readableState;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function I(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function B(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick($,t,e))}function $(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function q(e,t){for(var r=0,i=e.length;r=r.highWaterMark:r.length>0)||r.ended))return o("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?B(this):R(this),null;if(0===(e=T(e,r))&&r.ended)return 0===r.length&&B(this),null;var s=r.needReadable;return o("need readable",s),(0===r.length||r.length-e0?I(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),i!==e&&r.ended&&B(this)),null!==t&&this.emit("data",t),t},O.prototype._read=function(e){S(this,new w("_read()"))},O.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,o("pipe count=%d opts=%j",i.pipesCount,t);var s=t&&!1===t.end||e===process.stdout||e===process.stderr?y:a;function a(){o("onend"),e.end()}i.endEmitted?process.nextTick(s):r.once("end",s),e.on("unpipe",function t(s,c){o("onunpipe"),s===r&&c&&!1===c.hasUnpiped&&(c.hasUnpiped=!0,o("cleanup"),e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("drain",u),e.removeListener("error",h),e.removeListener("unpipe",t),r.removeListener("end",a),r.removeListener("end",y),r.removeListener("data",f),l=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u())});var u=function(){var e=r._readableState;o("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&c(r,"data")&&(e.flowing=!0,C(r))};e.on("drain",u);var l=!1;function f(t){o("ondata");var s=e.write(t);o("dest.write",s),!1===s&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==q(i.pipes,e))&&!l&&(o("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function h(t){o("onerror",t),y(),e.removeListener("error",h),0===c(e,"error")&&S(e,t)}function d(){e.removeListener("finish",p),y()}function p(){o("onfinish"),e.removeListener("close",d),y()}function y(){o("unpipe"),r.unpipe(e)}return r.on("data",f),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",h),e.once("close",d),e.once("finish",p),e.emit("pipe",r),i.flowing||(o("pipe resume"),r.resume()),e},O.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var i=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s0,!1!==i.flowing&&this.resume()):"readable"!==e||i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,o("on readable",i.length,i.reading),i.length?R(this):i.reading||process.nextTick(N,this)),r},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(e,t){var r=l.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(L,this),r},O.prototype.removeAllListeners=function(e){var t=l.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&process.nextTick(L,this),t},O.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(D,this,e))),e.paused=!1,this},O.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;for(var s in e.on("end",function(){if(o("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(s){o("wrapped data"),r.decoder&&(s=r.decoder.write(s)),(!r.objectMode||null!=s)&&(r.objectMode||s&&s.length)&&(t.push(s)||(i=!0,e.pause()))}),e)void 0===this[s]&&"function"==typeof e[s]&&(this[s]=function(t){return function(){return e[t].apply(e,arguments)}}(s));for(var a=0;a{"use strict";e.exports=f;var i=r(7638).q,o=i.ERR_METHOD_NOT_IMPLEMENTED,s=i.ERR_MULTIPLE_CALLBACK,a=i.ERR_TRANSFORM_ALREADY_TRANSFORMING,u=i.ERR_TRANSFORM_WITH_LENGTH_0,c=r(673);function l(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(null===i)return this.emit("error",new s);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),i(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length{"use strict";function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){(function(e,t,r){var i=e.entry;for(e.entry=null;i;){var o=i.callback;t.pendingcb--,o(void 0),i=i.next}t.corkedRequestsFree.next=e})(t,e)}}e.exports=O,O.WritableState=E;var o,s,a={deprecate:r(4484)},u=r(1829),c=r(4300).Buffer,l=global.Uint8Array||function(){},f=r(618),h=r(1111).getHighWaterMark,d=r(7638).q,p=d.ERR_INVALID_ARG_TYPE,y=d.ERR_METHOD_NOT_IMPLEMENTED,g=d.ERR_MULTIPLE_CALLBACK,m=d.ERR_STREAM_CANNOT_PIPE,b=d.ERR_STREAM_DESTROYED,v=d.ERR_STREAM_NULL_VALUES,w=d.ERR_STREAM_WRITE_AFTER_END,_=d.ERR_UNKNOWN_ENCODING,S=f.errorOrDestroy;function x(){}function E(e,t,s){o=o||r(673),e=e||{},"boolean"!=typeof s&&(s=t instanceof o),this.objectMode=!!e.objectMode,s&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=h(this,e,"writableHighWaterMark",s),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){(function(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if("function"!=typeof o)throw new g;if(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,t)--r.pendingcb,i?(process.nextTick(o,t),process.nextTick(P,e,r),e._writableState.errorEmitted=!0,S(e,t)):(o(t),e._writableState.errorEmitted=!0,S(e,t),P(e,r));else{var s=R(r)||e.destroyed;s||r.corked||r.bufferProcessing||!r.bufferedRequest||T(e,r),i?process.nextTick(k,e,r,s,o):k(e,r,s,o)}})(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function O(e){var t=this instanceof(o=o||r(673));if(!t&&!s.call(O,this))return new O(e);this._writableState=new E(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function j(e,t,r,i,o,s,a){t.writelen=i,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new b("write")):r?e._writev(o,t.onwrite):e._write(o,s,t.onwrite),t.sync=!1}function k(e,t,r,i){r||0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain")),t.pendingcb--,i(),P(e,t)}function T(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var o=Array(t.bufferedRequestCount),s=t.corkedRequestsFree;s.entry=r;for(var a=0,u=!0;r;)o[a]=r,r.isBuf||(u=!1),r=r.next,a+=1;o.allBuffers=u,j(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,l=r.encoding,f=r.callback,h=t.objectMode?1:c.length;if(j(e,t,!1,h,c,l,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function R(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function M(e,t){e._final(function(r){t.pendingcb--,r&&S(e,r),t.prefinished=!0,e.emit("prefinish"),P(e,t)})}function P(e,t){var r=R(t);if(r&&(t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,process.nextTick(M,e,t))),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return r}r(1828)(O,u),E.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(E.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(O,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===O&&e&&e._writableState instanceof E}})):s=function(e){return e instanceof this},O.prototype.pipe=function(){S(this,new m)},O.prototype.write=function(e,t,r){var i,o,s,a,u,f,h,d=this._writableState,y=!1,g=!d.objectMode&&(i=e,c.isBuffer(i)||i instanceof l);return g&&!c.isBuffer(e)&&(o=e,e=c.from(o)),("function"==typeof t&&(r=t,t=null),g?t="buffer":t||(t=d.defaultEncoding),"function"!=typeof r&&(r=x),d.ending)?(s=r,S(this,a=new w),process.nextTick(s,a)):(g||(u=e,f=r,null===u?h=new v:"string"==typeof u||d.objectMode||(h=new p("chunk",["string","Buffer"],u)),!h||(S(this,h),process.nextTick(f,h),0)))&&(d.pendingcb++,y=function(e,t,r,i,o,s){if(!r){var a,u,l=(a=i,u=o,t.objectMode||!1===t.decodeStrings||"string"!=typeof a||(a=c.from(a,u)),a);i!==l&&(r=!0,o="buffer",i=l)}var f=t.objectMode?1:i.length;t.length+=f;var h=t.length-1))throw new _(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(e,t,r){r(new y("_write()"))},O.prototype._writev=null,O.prototype.end=function(e,t,r){var i,o=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),o.corked&&(o.corked=1,this.uncork()),o.ending||(i=r,o.ending=!0,P(this,o),i&&(o.finished?process.nextTick(i):this.once("finish",i)),o.ended=!0,this.writable=!1),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),O.prototype.destroy=f.destroy,O.prototype._undestroy=f.undestroy,O.prototype._destroy=function(e,t){t(e)}},8187:(e,t,r)=>{"use strict";function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o,s=r(2426),a=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),f=Symbol("lastPromise"),h=Symbol("handlePromise"),d=Symbol("stream");function p(e,t){return{value:e,done:t}}function y(e){var t=e[a];if(null!==t){var r=e[d].read();null!==r&&(e[f]=null,e[a]=null,e[u]=null,t(p(r,!1)))}}function g(e){process.nextTick(y,e)}var m=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((i(o={get stream(){return this[d]},next:function(){var e,t,r=this,i=this[c];if(null!==i)return Promise.reject(i);if(this[l])return Promise.resolve(p(void 0,!0));if(this[d].destroyed)return new Promise(function(e,t){process.nextTick(function(){r[c]?t(r[c]):e(p(void 0,!0))})});var o=this[f];if(o)t=new Promise((e=this,function(t,r){o.then(function(){if(e[l]){t(p(void 0,!0));return}e[h](t,r)},r)}));else{var s=this[d].read();if(null!==s)return Promise.resolve(p(s,!1));t=new Promise(this[h])}return this[f]=t,t}},Symbol.asyncIterator,function(){return this}),i(o,"return",function(){var e=this;return new Promise(function(t,r){e[d].destroy(null,function(e){if(e){r(e);return}t(p(void 0,!0))})})}),o),m);e.exports=function(e){var t,r=Object.create(b,(i(t={},d,{value:e,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,c,{value:null,writable:!0}),i(t,l,{value:e._readableState.endEmitted,writable:!0}),i(t,h,{value:function(e,t){var i=r[d].read();i?(r[f]=null,r[a]=null,r[u]=null,e(p(i,!1))):(r[a]=e,r[u]=t)},writable:!0}),t));return r[f]=null,s(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];null!==t&&(r[f]=null,r[a]=null,r[u]=null,t(e)),r[c]=e;return}var i=r[a];null!==i&&(r[f]=null,r[a]=null,r[u]=null,i(p(void 0,!0))),r[l]=!0}),e.on("readable",g.bind(null,r)),r}},4506:(e,t,r)=>{"use strict";function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function o(e,t){for(var r=0;r0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return s.alloc(0);for(var t,r,i=s.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,r=a,s.prototype.copy.call(t,i,r),a+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var r;return eo.length?o.length:e;if(s===o.length?i+=o:i+=o.slice(0,e),0==(e-=s)){s===o.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=o.slice(s));break}++r}return this.length-=r,i}},{key:"_getBuffer",value:function(e){var t=s.allocUnsafe(e),r=this.head,i=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,a),0==(e-=a)){a===o.length?(++i,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(a));break}++i}return this.length-=i,t}},{key:u,value:function(e,t){return a(this,function(e){for(var t=1;t{"use strict";function t(e,t){i(e,t),r(e)}function r(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,o){var s=this,a=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return a||u?o?o(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(i,this,e)):process.nextTick(i,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!o&&e?s._writableState?s._writableState.errorEmitted?process.nextTick(r,s):(s._writableState.errorEmitted=!0,process.nextTick(t,s,e)):process.nextTick(t,s,e):o?(process.nextTick(r,s),o(e)):process.nextTick(r,s)})),this},undestroy:function(){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)},errorOrDestroy:function(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}}},2426:(e,t,r)=>{"use strict";var i=r(7638).q.ERR_STREAM_PREMATURE_CLOSE;function o(){}e.exports=function e(t,r,s){if("function"==typeof r)return e(t,null,r);r||(r={}),a=s||o,u=!1,s=function(){if(!u){u=!0;for(var e=arguments.length,t=Array(e),r=0;r{"use strict";function i(e,t,r,i,o,s,a){try{var u=e[s](a),c=u.value}catch(e){r(e);return}u.done?t(c):Promise.resolve(c).then(i,o)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}var s=r(7638).q.ERR_INVALID_ARG_TYPE;e.exports=function(e,t,r){if(t&&"function"==typeof t.next)a=t;else if(t&&t[Symbol.asyncIterator])a=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])a=t[Symbol.iterator]();else throw new s("iterable",["Iterable"],t);var a,u=new e(function(e){for(var t=1;t{"use strict";var i,o=r(7638).q,s=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function u(e){if(e)throw e}function c(e){e()}function l(e,t){return e.pipe(t)}e.exports=function(){for(var e,t,o=arguments.length,f=Array(o),h=0;h0},function(e){if(e)return s(e);h=!0,s()}),y=!1,function(t){if(!h&&!y){if(y=!0,e.setHeader&&"function"==typeof e.abort)return e.abort();if("function"==typeof e.destroy)return e.destroy();s(t||new a("pipe"))}}});return f.reduce(l)}},1111:(e,t,r)=>{"use strict";var i=r(7638).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,o){var s=null!=t.highWaterMark?t.highWaterMark:o?t[r]:null;if(null!=s){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var a=o?r:"highWaterMark";throw new i(a,s)}return Math.floor(s)}return e.objectMode?16:16384}}},1829:(e,t,r)=>{e.exports=r(2781)},8118:(e,t,r)=>{var i=r(2781);"disable"===process.env.READABLE_STREAM&&i?(e.exports=i.Readable,Object.assign(e.exports,i),e.exports.Stream=i):((t=e.exports=r(5006)).Stream=i||t,t.Readable=t,t.Writable=r(8719),t.Duplex=r(673),t.Transform=r(8597),t.PassThrough=r(4343),t.finished=r(2426),t.pipeline=r(2970))},3268:e=>{"use strict";function t(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}e.exports=function(e){if((e=e||{}).circles)return function(e){var r=[],i=[];return e.proto?function e(s){if("object"!=typeof s||null===s)return s;if(s instanceof Date)return new Date(s);if(Array.isArray(s))return o(s,e);if(s instanceof Map)return new Map(o(Array.from(s),e));if(s instanceof Set)return new Set(o(Array.from(s),e));var a={};for(var u in r.push(s),i.push(a),s){var c=s[u];if("object"!=typeof c||null===c)a[u]=c;else if(c instanceof Date)a[u]=new Date(c);else if(c instanceof Map)a[u]=new Map(o(Array.from(c),e));else if(c instanceof Set)a[u]=new Set(o(Array.from(c),e));else if(ArrayBuffer.isView(c))a[u]=t(c);else{var l=r.indexOf(c);-1!==l?a[u]=i[l]:a[u]=e(c)}}return r.pop(),i.pop(),a}:function e(s){if("object"!=typeof s||null===s)return s;if(s instanceof Date)return new Date(s);if(Array.isArray(s))return o(s,e);if(s instanceof Map)return new Map(o(Array.from(s),e));if(s instanceof Set)return new Set(o(Array.from(s),e));var a={};for(var u in r.push(s),i.push(a),s)if(!1!==Object.hasOwnProperty.call(s,u)){var c=s[u];if("object"!=typeof c||null===c)a[u]=c;else if(c instanceof Date)a[u]=new Date(c);else if(c instanceof Map)a[u]=new Map(o(Array.from(c),e));else if(c instanceof Set)a[u]=new Set(o(Array.from(c),e));else if(ArrayBuffer.isView(c))a[u]=t(c);else{var l=r.indexOf(c);-1!==l?a[u]=i[l]:a[u]=e(c)}}return r.pop(),i.pop(),a};function o(e,o){for(var s=Object.keys(e),a=Array(s.length),u=0;u{/*! safe-buffer. MIT License. Feross Aboukhadijeh */var i=r(4300),o=i.Buffer;function s(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return o(e,t,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=i:(s(i,t),t.Buffer=a),a.prototype=Object.create(o.prototype),s(o,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return o(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var i=o(e);return void 0!==t?"string"==typeof r?i.fill(t,r):i.fill(t):i.fill(0),i},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i.SlowBuffer(e)}},9316:e=>{"use strict";let t="undefined"!=typeof Buffer,r=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,i=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function o(e,o,a){null==a&&(null!==o&&"object"==typeof o?(a=o,o=void 0):a={});let u=a.protoAction||"error",c=a.constructorAction||"error";t&&Buffer.isBuffer(e)&&(e=e.toString()),e&&65279===e.charCodeAt(0)&&(e=e.slice(1));let l=JSON.parse(e,o);if("ignore"===u&&"ignore"===c||null===l||"object"!=typeof l)return l;if("ignore"!==u&&"ignore"!==c){if(!1===r.test(e)&&!1===i.test(e))return l}else if("ignore"!==u&&"ignore"===c){if(!1===r.test(e))return l}else if(!1===i.test(e))return l;return s(l,{protoAction:u,constructorAction:c}),l}function s(e,{protoAction:t="error",constructorAction:r="error"}={}){let i=[e];for(;i.length;){let e=i;for(let o of(i=[],e)){if("ignore"!==t&&Object.prototype.hasOwnProperty.call(o,"__proto__")){if("error"===t)throw SyntaxError("Object contains forbidden prototype property");delete o.__proto__}if("ignore"!==r&&Object.prototype.hasOwnProperty.call(o,"constructor")&&Object.prototype.hasOwnProperty.call(o.constructor,"prototype")){if("error"===r)throw SyntaxError("Object contains forbidden prototype property");delete o.constructor}for(let e in o){let t=o[e];t&&"object"==typeof t&&i.push(o[e])}}}}e.exports={parse:o,scan:s,safeParse:function(e,t){try{return o(e,t)}catch(e){return null}}}},4656:(e,t,r)=>{"use strict";let i=r(7147),o=r(2361),s=r(8306),a=r(3837).inherits,u=r(160);function c(e,t){function r(r,i){if(r){t._reopening=!1,t._writing=!1,t._opening=!1,t.sync?process.nextTick(()=>{t.listenerCount("error")>0&&t.emit("error",r)}):t.emit("error",r);return}if(t.fd=i,t.file=e,t._reopening=!1,t._opening=!1,t._writing=!1,t.sync?process.nextTick(()=>t.emit("ready")):t.emit("ready"),t._reopening)return;let o=t._buf.length;o>0&&o>t.minLength&&!t.destroyed&&h(t)}if(t._opening=!0,t._writing=!0,t._asyncDrainScheduled=!1,t.sync)try{let t=i.openSync(e,"a");r(null,t)}catch(e){throw r(e),e}else i.open(e,"a",r)}function l(e){if(!(this instanceof l))return new l(e);let{fd:t,dest:r,minLength:o,sync:s}=e||{};if(t=t||r,this._buf="",this.fd=-1,this._writing=!1,this._writingBuf="",this._ending=!1,this._reopening=!1,this._asyncDrainScheduled=!1,this.file=null,this.destroyed=!1,this.sync=s||!1,this.minLength=o||0,"number"==typeof t)this.fd=t,process.nextTick(()=>this.emit("ready"));else if("string"==typeof t)c(t,this);else throw Error("SonicBoom supports only file descriptors and files");this.release=(e,t)=>{if(e){if("EAGAIN"===e.code){if(this.sync)try{u(100),this.release(void 0,0)}catch(e){this.release(e)}else setTimeout(()=>{i.write(this.fd,this._writingBuf,"utf8",this.release)},100)}else this._buf=this._writingBuf+this._buf,this._writingBuf="",this._writing=!1,this.emit("error",e);return}if(this._writingBuf.length!==t){if(this._writingBuf=this._writingBuf.slice(t),this.sync)try{do t=i.writeSync(this.fd,this._writingBuf,"utf8"),this._writingBuf=this._writingBuf.slice(t);while(0!==this._writingBuf.length)}catch(e){this.release(e);return}else{i.write(this.fd,this._writingBuf,"utf8",this.release);return}}if(this._writingBuf="",this.destroyed)return;let r=this._buf.length;this._reopening?(this._writing=!1,this._reopening=!1,this.reopen()):r>0&&r>this.minLength?h(this):this._ending?r>0?h(this):(this._writing=!1,d(this)):(this._writing=!1,this.sync?this._asyncDrainScheduled||(this._asyncDrainScheduled=!0,process.nextTick(f,this)):this.emit("drain"))},this.on("newListener",function(e){"drain"===e&&(this._asyncDrainScheduled=!1)})}function f(e){let t=e.listenerCount("drain")>0;t&&(e._asyncDrainScheduled=!1,e.emit("drain"))}function h(e){e._writing=!0;let t=e._buf,r=e.release;if(t.length>16777216?(t=t.slice(0,16777216),e._buf=e._buf.slice(16777216)):e._buf="",s(t),e._writingBuf=t,e.sync)try{let o=i.writeSync(e.fd,t,"utf8");r(null,o)}catch(e){r(e)}else i.write(e.fd,t,"utf8",r)}function d(e){if(-1===e.fd){e.once("ready",d.bind(null,e));return}i.close(e.fd,t=>{if(t){e.emit("error",t);return}e._ending&&!e._writing&&e.emit("finish"),e.emit("close")}),e.destroyed=!0,e._buf=""}a(l,o),l.prototype.write=function(e){if(this.destroyed)throw Error("SonicBoom destroyed");this._buf+=e;let t=this._buf.length;return!this._writing&&t>this.minLength&&h(this),t<16384},l.prototype.flush=function(){if(this.destroyed)throw Error("SonicBoom destroyed");this._writing||this.minLength<=0||h(this)},l.prototype.reopen=function(e){if(this.destroyed)throw Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.reopen(e)});return}if(this._ending)return;if(!this.file)throw Error("Unable to reopen a file descriptor, you must pass a file to SonicBoom");if(this._reopening=!0,this._writing)return;let t=this.fd;this.once("ready",()=>{t!==this.fd&&i.close(t,e=>{if(e)return this.emit("error",e)})}),c(e||this.file,this)},l.prototype.end=function(){if(this.destroyed)throw Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.end()});return}if(!this._ending){if(this._ending=!0,!this._writing&&this._buf.length>0&&this.fd>=0){h(this);return}this._writing||d(this)}},l.prototype.flushSync=function(){if(this.destroyed)throw Error("SonicBoom destroyed");if(this.fd<0)throw Error("sonic boom is not ready yet");for(;this._buf.length>0;)try{i.writeSync(this.fd,this._buf,"utf8"),this._buf=""}catch(e){if("EAGAIN"!==e.code)throw e;u(100)}},l.prototype.destroy=function(){this.destroyed||d(this)},e.exports=l},5443:(e,t,r)=>{"use strict";let{Transform:i}=r(2781),{StringDecoder:o}=r(1576),s=Symbol("last"),a=Symbol("decoder");function u(e,t,r){let i;if(this.overflow){let t=this[a].write(e);if(1===(i=t.split(this.matcher)).length)return r();i.shift(),this.overflow=!1}else this[s]+=this[a].write(e),i=this[s].split(this.matcher);this[s]=i.pop();for(let e=0;ethis.maxLength,this.overflow&&!this.skipOverflow){r(Error("maximum buffer reached"));return}r()}function c(e){if(this[s]+=this[a].end(),this[s])try{l(this,this.mapper(this[s]))}catch(t){return e(t)}e()}function l(e,t){void 0!==t&&e.push(t)}function f(e){return e}e.exports=function(e,t,r){switch(e=e||/\r?\n/,t=t||f,r=r||{},arguments.length){case 1:"function"==typeof e?(t=e,e=/\r?\n/):"object"!=typeof e||e instanceof RegExp||(r=e,e=/\r?\n/);break;case 2:"function"==typeof e?(r=t,t=e,e=/\r?\n/):"object"==typeof t&&(r=t,t=f)}(r=Object.assign({},r)).autoDestroy=!0,r.transform=u,r.flush=c,r.readableObjectMode=!0;let l=new i(r);return l[s]="",l[a]=new o("utf8"),l.matcher=e,l.mapper=t,l.maxLength=r.maxLength,l.skipOverflow=r.skipOverflow||!1,l.overflow=!1,l._destroy=function(e,t){this._writableState.errorEmitted=!1,t(e)},l}},6151:e=>{e.exports=function(e){var t=e._readableState;return t?t.objectMode||"number"==typeof e._duplexState?e.read():e.read(t.buffer.length?t.buffer.head?t.buffer.head.data.length:t.buffer[0].length:t.length):null}},7361:(e,t,r)=>{"use strict";var i=r(9685).Buffer,o=i.isEncoding||function(e){switch((e=""+e)&&e.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 s(e){var t;switch(this.encoding=function(e){var t=function(e){var t;if(!e)return"utf8";for(;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(i.isEncoding===o||!o(e)))throw Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=l,t=4;break;case"utf8":this.fillLast=u,t=4;break;case"base64":this.text=f,this.end=h,t=3;break;default:this.write=d,this.end=p;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function u(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}(this,e,0);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function c(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function f(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.s=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0?(o>0&&(e.lastNeed=o-1),o):--i=0?(o>0&&(e.lastNeed=o-2),o):--i=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},4484:(e,t,r)=>{e.exports=r(3837).deprecate},4447:e=>{e.exports=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw TypeError("need wrapper function");return Object.keys(t).forEach(function(e){i[e]=t[e]}),i;function i(){for(var e=Array(arguments.length),r=0;r{"use strict";var i=r(5007),o=r(1532),s=TypeError;e.exports=function(e){if(i(e))return e;throw s(o(e)+" is not a function")}},5127:(e,t,r)=>{"use strict";var i=r(6808).has;e.exports=function(e){return i(e),e}},8221:(e,t,r)=>{"use strict";var i=r(5007),o=String,s=TypeError;e.exports=function(e){if("object"==typeof e||i(e))return e;throw s("Can't set "+o(e)+" as a prototype")}},5612:(e,t,r)=>{"use strict";var i=r(2023).has;e.exports=function(e){return i(e),e}},4864:(e,t,r)=>{"use strict";var i=r(2541),o=TypeError;e.exports=function(e,t){if(i(t,e))return e;throw o("Incorrect invocation")}},5952:(e,t,r)=>{"use strict";var i=r(9418),o=String,s=TypeError;e.exports=function(e){if(i(e))return e;throw s(o(e)+" is not an object")}},1998:(e,t,r)=>{"use strict";var i=r(1819),o=r(1021),s=r(7279),a=function(e){return function(t,r,a){var u,c=i(t),l=s(c),f=o(a,l);if(e&&r!=r){for(;l>f;)if((u=c[f++])!=u)return!0}else for(;l>f;f++)if((e||f in c)&&c[f]===r)return e||f||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},994:(e,t,r)=>{"use strict";var i=r(8942),o=r(4694),s=TypeError,a=Object.getOwnPropertyDescriptor,u=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=u?function(e,t){if(o(e)&&!a(e,"length").writable)throw s("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},5396:(e,t,r)=>{"use strict";var i=r(4460),o=r(4464),s=r(5056);e.exports=function(e,t,r,a){try{var u=s(e,"return");if(u)return o("Promise").resolve(i(u,e)).then(function(){t(r)},function(e){a(e)})}catch(e){return a(e)}t(r)}},7637:(e,t,r)=>{"use strict";var i=r(4460),o=r(8995),s=r(5952),a=r(903),u=r(4059),c=r(8979),l=r(5616),f=r(9009),h=r(4464),d=r(5056),p=r(1664),y=r(1765),g=r(8248),m=h("Promise"),b=l("toStringTag"),v="AsyncIteratorHelper",w="WrapForValidAsyncIterator",_=f.set,S=function(e){var t=!e,r=f.getterFor(e?w:v),u=function(e){var i=o(function(){return r(e)}),s=i.error,a=i.value;return s||t&&a.done?{exit:!0,value:s?m.reject(a):m.resolve(y(void 0,!0))}:{exit:!1,value:a}};return c(a(p),{next:function(){var e=u(this),t=e.value;if(e.exit)return t;var r=o(function(){return s(t.nextHandler(m))}),i=r.error,a=r.value;return i&&(t.done=!0),i?m.reject(a):m.resolve(a)},return:function(){var t,r,a=u(this),c=a.value;if(a.exit)return c;c.done=!0;var l=c.iterator,f=o(function(){if(c.inner)try{g(c.inner.iterator,"normal")}catch(e){return g(l,"throw",e)}return d(l,"return")});return(t=r=f.value,f.error)?m.reject(r):void 0===t?m.resolve(y(void 0,!0)):(r=(f=o(function(){return i(t,l)})).value,f.error)?m.reject(r):e?m.resolve(r):m.resolve(r).then(function(e){return s(e),y(void 0,!0)})}})},x=S(!0),E=S(!1);u(E,b,"Async Iterator Helper"),e.exports=function(e,t){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?w:v,i.nextHandler=e,i.counter=0,i.done=!1,_(this,i)};return r.prototype=t?x:E,r}},7398:(e,t,r)=>{"use strict";var i=r(4460),o=r(3093),s=r(5952),a=r(9418),u=r(2724),c=r(4464),l=r(7352),f=r(5396),h=function(e){var t=0===e,r=1===e,h=2===e,d=3===e;return function(e,p,y){s(e);var g=void 0!==p;(g||!t)&&o(p);var m=l(e),b=c("Promise"),v=m.iterator,w=m.next,_=0;return new b(function(e,o){var c=function(e){f(v,o,e,o)},l=function(){try{if(g)try{u(_)}catch(e){c(e)}b.resolve(s(i(w,v))).then(function(i){try{if(s(i).done)t?(y.length=_,e(y)):e(!d&&(h||void 0));else{var u=i.value;try{if(g){var m=p(u,_),w=function(i){if(r)l();else if(h)i?l():f(v,e,!1,o);else if(t)try{y[_++]=i,l()}catch(e){c(e)}else i?f(v,e,d||u,o):l()};a(m)?b.resolve(m).then(w,c):w(m)}else y[_++]=u,l()}catch(e){c(e)}}}catch(e){o(e)}},o)}catch(e){o(e)}};l()})}};e.exports={toArray:h(0),forEach:h(1),every:h(2),some:h(3),find:h(4)}},8561:(e,t,r)=>{"use strict";var i=r(4460),o=r(3093),s=r(5952),a=r(9418),u=r(7352),c=r(7637),l=r(1765),f=r(5396),h=c(function(e){var t=this,r=t.iterator,o=t.mapper;return new e(function(u,c){var h=function(e){t.done=!0,c(e)},d=function(e){f(r,h,e,h)};e.resolve(s(i(t.next,r))).then(function(r){try{if(s(r).done)t.done=!0,u(l(void 0,!0));else{var i=r.value;try{var c=o(i,t.counter++),f=function(e){u(l(e,!1))};a(c)?e.resolve(c).then(f,d):f(c)}catch(e){d(e)}}}catch(e){h(e)}},h)})});e.exports=function(e){return s(this),o(e),new h(u(this),{mapper:e})}},1664:(e,t,r)=>{"use strict";var i,o,s=r(1460),a=r(4607),u=r(5007),c=r(903),l=r(2595),f=r(1782),h=r(5616),d=r(1967),p="USE_FUNCTION_CONSTRUCTOR",y=h("asyncIterator"),g=s.AsyncIterator,m=a.AsyncIteratorPrototype;if(m)i=m;else if(u(g))i=g.prototype;else if(a[p]||s[p])try{o=l(l(l(Function("return async function*(){}()")()))),l(o)===Object.prototype&&(i=o)}catch(e){}i?d&&(i=c(i)):i={},u(i[y])||f(i,y,function(){return this}),e.exports=i},7792:(e,t,r)=>{"use strict";var i=r(5952),o=r(8248);e.exports=function(e,t,r,s){try{return s?t(i(r)[0],r[1]):t(r)}catch(t){o(e,"throw",t)}}},9151:(e,t,r)=>{"use strict";var i=r(796),o=i({}.toString),s=i("".slice);e.exports=function(e){return s(o(e),8,-1)}},8626:(e,t,r)=>{"use strict";var i=r(6325),o=r(5007),s=r(9151),a=r(5616)("toStringTag"),u=Object,c="Arguments"===s(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(e){}};e.exports=i?s:function(e){var t,r,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=l(t=u(e),a))?r:c?s(t):"Object"===(i=s(t))&&o(t.callee)?"Arguments":i}},5991:(e,t,r)=>{"use strict";var i=r(8332),o=r(8389),s=r(3051),a=r(2422);e.exports=function(e,t,r){for(var u=o(t),c=a.f,l=s.f,f=0;f{"use strict";var i=r(3867);e.exports=!i(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},1765:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},4059:(e,t,r)=>{"use strict";var i=r(8942),o=r(2422),s=r(547);e.exports=i?function(e,t,r){return o.f(e,t,s(1,r))}:function(e,t,r){return e[t]=r,e}},547:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},9577:(e,t,r)=>{"use strict";var i=r(4545),o=r(2422),s=r(547);e.exports=function(e,t,r){var a=i(t);a in e?o.f(e,a,s(0,r)):e[a]=r}},1782:(e,t,r)=>{"use strict";var i=r(5007),o=r(2422),s=r(2283),a=r(6338);e.exports=function(e,t,r,u){u||(u={});var c=u.enumerable,l=void 0!==u.name?u.name:t;if(i(r)&&s(r,l,u),u.global)c?e[t]=r:a(t,r);else{try{u.unsafe?e[t]&&(c=!0):delete e[t]}catch(e){}c?e[t]=r:o.f(e,t,{value:r,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return e}},8979:(e,t,r)=>{"use strict";var i=r(1782);e.exports=function(e,t,r){for(var o in t)i(e,o,t[o],r);return e}},6338:(e,t,r)=>{"use strict";var i=r(1460),o=Object.defineProperty;e.exports=function(e,t){try{o(i,e,{value:t,configurable:!0,writable:!0})}catch(r){i[e]=t}return t}},8942:(e,t,r)=>{"use strict";var i=r(3867);e.exports=!i(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},3195:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports={all:t,IS_HTMLDDA:void 0===t&&void 0!==t}},5823:(e,t,r)=>{"use strict";var i=r(1460),o=r(9418),s=i.document,a=o(s)&&o(s.createElement);e.exports=function(e){return a?s.createElement(e):{}}},2724:e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},3161:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},4638:(e,t,r)=>{"use strict";var i,o,s=r(1460),a=r(3161),u=s.process,c=s.Deno,l=u&&u.versions||c&&c.version,f=l&&l.v8;f&&(o=(i=f.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!o&&a&&(!(i=a.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/))&&(o=+i[1]),e.exports=o},5027:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3880:(e,t,r)=>{"use strict";var i=r(796),o=Error,s=i("".replace),a=String(o("zxcasd").stack),u=/\n\s*at [^:]*:[^\n]*/,c=u.test(a);e.exports=function(e,t){if(c&&"string"==typeof e&&!o.prepareStackTrace)for(;t--;)e=s(e,u,"");return e}},5663:(e,t,r)=>{"use strict";var i=r(4059),o=r(3880),s=r(9644),a=Error.captureStackTrace;e.exports=function(e,t,r,u){s&&(a?a(e,t):i(e,"stack",o(r,u)))}},9644:(e,t,r)=>{"use strict";var i=r(3867),o=r(547);e.exports=!i(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",o(1,7)),7!==e.stack)})},3602:(e,t,r)=>{"use strict";var i=r(1460),o=r(3051).f,s=r(4059),a=r(1782),u=r(6338),c=r(5991),l=r(3475);e.exports=function(e,t){var r,f,h,d,p,y=e.target,g=e.global,m=e.stat;if(r=g?i:m?i[y]||u(y,{}):(i[y]||{}).prototype)for(f in t){if(d=t[f],h=e.dontCallGetSet?(p=o(r,f))&&p.value:r[f],!l(g?f:y+(m?".":"#")+f,e.forced)&&void 0!==h){if(typeof d==typeof h)continue;c(d,h)}(e.sham||h&&h.sham)&&s(d,"sham",!0),a(r,f,d,e)}}},3867:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},9775:(e,t,r)=>{"use strict";var i=r(2975),o=Function.prototype,s=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(i?a.bind(s):function(){return a.apply(s,arguments)})},1336:(e,t,r)=>{"use strict";var i=r(4290),o=r(3093),s=r(2975),a=i(i.bind);e.exports=function(e,t){return o(e),void 0===t?e:s?a(e,t):function(){return e.apply(t,arguments)}}},2975:(e,t,r)=>{"use strict";var i=r(3867);e.exports=!i(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},4460:(e,t,r)=>{"use strict";var i=r(2975),o=Function.prototype.call;e.exports=i?o.bind(o):function(){return o.apply(o,arguments)}},3679:(e,t,r)=>{"use strict";var i=r(8942),o=r(8332),s=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,u=o(s,"name"),c=u&&(!i||i&&a(s,"name").configurable);e.exports={EXISTS:u,PROPER:u&&"something"===(function(){}).name,CONFIGURABLE:c}},6601:(e,t,r)=>{"use strict";var i=r(796),o=r(3093);e.exports=function(e,t,r){try{return i(o(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},4290:(e,t,r)=>{"use strict";var i=r(9151),o=r(796);e.exports=function(e){if("Function"===i(e))return o(e)}},796:(e,t,r)=>{"use strict";var i=r(2975),o=Function.prototype,s=o.call,a=i&&o.bind.bind(s,s);e.exports=i?a:function(e){return function(){return s.apply(e,arguments)}}},4464:(e,t,r)=>{"use strict";var i=r(1460),o=r(5007);e.exports=function(e,t){var r;return arguments.length<2?o(r=i[e])?r:void 0:i[e]&&i[e][t]}},7352:e=>{"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},6225:(e,t,r)=>{"use strict";var i=r(8626),o=r(5056),s=r(5116),a=r(9213),u=r(5616)("iterator");e.exports=function(e){if(!s(e))return o(e,u)||o(e,"@@iterator")||a[i(e)]}},2938:(e,t,r)=>{"use strict";var i=r(4460),o=r(3093),s=r(5952),a=r(1532),u=r(6225),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?u(e):t;if(o(r))return s(i(r,e));throw c(a(e)+" is not iterable")}},5056:(e,t,r)=>{"use strict";var i=r(3093),o=r(5116);e.exports=function(e,t){var r=e[t];return o(r)?void 0:i(r)}},653:(e,t,r)=>{"use strict";var i=r(3093),o=r(5952),s=r(4460),a=r(5335),u=r(7352),c="Invalid size",l=RangeError,f=TypeError,h=Math.max,d=function(e,t,r,i){this.set=e,this.size=t,this.has=r,this.keys=i};d.prototype={getIterator:function(){return u(o(s(this.keys,this.set)))},includes:function(e){return s(this.has,this.set,e)}},e.exports=function(e){o(e);var t=+e.size;if(t!=t)throw f(c);var r=a(t);if(r<0)throw l(c);return new d(e,h(r,0),i(e.has),i(e.keys))}},1460:function(e){"use strict";var t=function(e){return e&&e.Math===Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof global&&global)||function(){return this}()||this||Function("return this")()},8332:(e,t,r)=>{"use strict";var i=r(796),o=r(1055),s=i({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return s(o(e),t)}},4696:e=>{"use strict";e.exports={}},3741:(e,t,r)=>{"use strict";var i=r(4464);e.exports=i("document","documentElement")},8836:(e,t,r)=>{"use strict";var i=r(8942),o=r(3867),s=r(5823);e.exports=!i&&!o(function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a})},6630:(e,t,r)=>{"use strict";var i=r(796),o=r(3867),s=r(9151),a=Object,u=i("".split);e.exports=o(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"===s(e)?u(e,""):a(e)}:a},7307:(e,t,r)=>{"use strict";var i=r(5007),o=r(9418),s=r(1082);e.exports=function(e,t,r){var a,u;return s&&i(a=t.constructor)&&a!==r&&o(u=a.prototype)&&u!==r.prototype&&s(e,u),e}},6612:(e,t,r)=>{"use strict";var i=r(796),o=r(5007),s=r(4607),a=i(Function.toString);o(s.inspectSource)||(s.inspectSource=function(e){return a(e)}),e.exports=s.inspectSource},2438:(e,t,r)=>{"use strict";var i=r(9418),o=r(4059);e.exports=function(e,t){i(t)&&"cause"in t&&o(e,"cause",t.cause)}},9009:(e,t,r)=>{"use strict";var i,o,s,a=r(4314),u=r(1460),c=r(9418),l=r(4059),f=r(8332),h=r(4607),d=r(2924),p=r(4696),y="Object already initialized",g=u.TypeError,m=u.WeakMap;if(a||h.state){var b=h.state||(h.state=new m);b.get=b.get,b.has=b.has,b.set=b.set,i=function(e,t){if(b.has(e))throw g(y);return t.facade=e,b.set(e,t),t},o=function(e){return b.get(e)||{}},s=function(e){return b.has(e)}}else{var v=d("state");p[v]=!0,i=function(e,t){if(f(e,v))throw g(y);return t.facade=e,l(e,v,t),t},o=function(e){return f(e,v)?e[v]:{}},s=function(e){return f(e,v)}}e.exports={set:i,get:o,has:s,enforce:function(e){return s(e)?o(e):i(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=o(t)).type!==e)throw g("Incompatible receiver, "+e+" required");return r}}}},6439:(e,t,r)=>{"use strict";var i=r(5616),o=r(9213),s=i("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[s]===e)}},4694:(e,t,r)=>{"use strict";var i=r(9151);e.exports=Array.isArray||function(e){return"Array"===i(e)}},5007:(e,t,r)=>{"use strict";var i=r(3195),o=i.all;e.exports=i.IS_HTMLDDA?function(e){return"function"==typeof e||e===o}:function(e){return"function"==typeof e}},3475:(e,t,r)=>{"use strict";var i=r(3867),o=r(5007),s=/#|\.prototype\./,a=function(e,t){var r=c[u(e)];return r===f||r!==l&&(o(t)?i(t):!!t)},u=a.normalize=function(e){return String(e).replace(s,".").toLowerCase()},c=a.data={},l=a.NATIVE="N",f=a.POLYFILL="P";e.exports=a},5032:(e,t,r)=>{"use strict";var i=r(8626),o=r(8332),s=r(5116),a=r(5616),u=r(9213),c=a("iterator"),l=Object;e.exports=function(e){if(s(e))return!1;var t=l(e);return void 0!==t[c]||"@@iterator"in t||o(u,i(t))}},5116:e=>{"use strict";e.exports=function(e){return null==e}},9418:(e,t,r)=>{"use strict";var i=r(5007),o=r(3195),s=o.all;e.exports=o.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:i(e)||e===s}:function(e){return"object"==typeof e?null!==e:i(e)}},1967:e=>{"use strict";e.exports=!1},9804:(e,t,r)=>{"use strict";var i=r(4464),o=r(5007),s=r(2541),a=r(9006),u=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return o(t)&&s(t.prototype,u(e))}},54:(e,t,r)=>{"use strict";var i=r(4460);e.exports=function(e,t,r){for(var o,s,a=r?e:e.iterator,u=e.next;!(o=i(u,a)).done;)if(void 0!==(s=t(o.value)))return s}},8378:(e,t,r)=>{"use strict";var i=r(1336),o=r(4460),s=r(5952),a=r(1532),u=r(6439),c=r(7279),l=r(2541),f=r(2938),h=r(6225),d=r(8248),p=TypeError,y=function(e,t){this.stopped=e,this.result=t},g=y.prototype;e.exports=function(e,t,r){var m,b,v,w,_,S,x,E=r&&r.that,O=!!(r&&r.AS_ENTRIES),j=!!(r&&r.IS_RECORD),k=!!(r&&r.IS_ITERATOR),T=!!(r&&r.INTERRUPTED),R=i(t,E),M=function(e){return m&&d(m,"normal",e),new y(!0,e)},P=function(e){return O?(s(e),T?R(e[0],e[1],M):R(e[0],e[1])):T?R(e,M):R(e)};if(j)m=e.iterator;else if(k)m=e;else{if(!(b=h(e)))throw p(a(e)+" is not iterable");if(u(b)){for(v=0,w=c(e);w>v;v++)if((_=P(e[v]))&&l(g,_))return _;return new y(!1)}m=f(e,b)}for(S=j?e.next:m.next;!(x=o(S,m)).done;){try{_=P(x.value)}catch(e){d(m,"throw",e)}if("object"==typeof _&&_&&l(g,_))return _}return new y(!1)}},8248:(e,t,r)=>{"use strict";var i=r(4460),o=r(5952),s=r(5056);e.exports=function(e,t,r){var a,u;o(e);try{if(!(a=s(e,"return"))){if("throw"===t)throw r;return r}a=i(a,e)}catch(e){u=!0,a=e}if("throw"===t)throw r;if(u)throw a;return o(a),r}},2249:(e,t,r)=>{"use strict";var i=r(4460),o=r(903),s=r(4059),a=r(8979),u=r(5616),c=r(9009),l=r(5056),f=r(2462).IteratorPrototype,h=r(1765),d=r(8248),p=u("toStringTag"),y="IteratorHelper",g="WrapForValidIterator",m=c.set,b=function(e){var t=c.getterFor(e?g:y);return a(o(f),{next:function(){var r=t(this);if(e)return r.nextHandler();try{var i=r.done?void 0:r.nextHandler();return h(i,r.done)}catch(e){throw r.done=!0,e}},return:function(){var r=t(this),o=r.iterator;if(r.done=!0,e){var s=l(o,"return");return s?i(s,o):h(void 0,!0)}if(r.inner)try{d(r.inner.iterator,"normal")}catch(e){return d(o,"throw",e)}return d(o,"normal"),h(void 0,!0)}})},v=b(!0),w=b(!1);s(w,p,"Iterator Helper"),e.exports=function(e,t){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?g:y,i.nextHandler=e,i.counter=0,i.done=!1,m(this,i)};return r.prototype=t?v:w,r}},4863:(e,t,r)=>{"use strict";var i=r(4460),o=r(3093),s=r(5952),a=r(7352),u=r(2249),c=r(7792),l=u(function(){var e=this.iterator,t=s(i(this.next,e));if(!(this.done=!!t.done))return c(e,this.mapper,[t.value,this.counter++],!0)});e.exports=function(e){return s(this),o(e),new l(a(this),{mapper:e})}},2462:(e,t,r)=>{"use strict";var i,o,s,a=r(3867),u=r(5007),c=r(9418),l=r(903),f=r(2595),h=r(1782),d=r(5616),p=r(1967),y=d("iterator"),g=!1;[].keys&&("next"in(s=[].keys())?(o=f(f(s)))!==Object.prototype&&(i=o):g=!0),!c(i)||a(function(){var e={};return i[y].call(e)!==e})?i={}:p&&(i=l(i)),u(i[y])||h(i,y,function(){return this}),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:g}},9213:e=>{"use strict";e.exports={}},7279:(e,t,r)=>{"use strict";var i=r(7607);e.exports=function(e){return i(e.length)}},2283:(e,t,r)=>{"use strict";var i=r(796),o=r(3867),s=r(5007),a=r(8332),u=r(8942),c=r(3679).CONFIGURABLE,l=r(6612),f=r(9009),h=f.enforce,d=f.get,p=String,y=Object.defineProperty,g=i("".slice),m=i("".replace),b=i([].join),v=u&&!o(function(){return 8!==y(function(){},"length",{value:8}).length}),w=String(String).split("String"),_=e.exports=function(e,t,r){"Symbol("===g(p(t),0,7)&&(t="["+m(p(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||c&&e.name!==t)&&(u?y(e,"name",{value:t,configurable:!0}):e.name=t),v&&r&&a(r,"arity")&&e.length!==r.arity&&y(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?u&&y(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var i=h(e);return a(i,"source")||(i.source=b(w,"string"==typeof t?t:"")),e};Function.prototype.toString=_(function(){return s(this)&&d(this).source||l(this)},"toString")},6808:(e,t,r)=>{"use strict";var i=r(796),o=Map.prototype;e.exports={Map:Map,set:i(o.set),get:i(o.get),has:i(o.has),remove:i(o.delete),proto:o}},734:(e,t,r)=>{"use strict";var i=r(796),o=r(54),s=r(6808),a=s.Map,u=s.proto,c=i(u.forEach),l=i(u.entries),f=l(new a).next;e.exports=function(e,t,r){return r?o({iterator:l(e),next:f},function(e){return t(e[1],e[0])}):c(e,t)}},4401:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var i=+e;return(i>0?r:t)(i)}},4118:(e,t,r)=>{"use strict";var i=r(4014);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:i(e)}},903:(e,t,r)=>{"use strict";var i,o=r(5952),s=r(757),a=r(5027),u=r(4696),c=r(3741),l=r(5823),f=r(2924),h="prototype",d="script",p=f("IE_PROTO"),y=function(){},g=function(e){return"<"+d+">"+e+""},m=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=l("iframe");return t.style.display="none",c.appendChild(t),t.src=String("java"+d+":"),(e=t.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F},v=function(){try{i=new ActiveXObject("htmlfile")}catch(e){}v="undefined"!=typeof document?document.domain&&i?m(i):b():m(i);for(var e=a.length;e--;)delete v[h][a[e]];return v()};u[p]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(y[h]=o(e),r=new y,y[h]=null,r[p]=e):r=v(),void 0===t?r:s.f(r,t)}},757:(e,t,r)=>{"use strict";var i=r(8942),o=r(9426),s=r(2422),a=r(5952),u=r(1819),c=r(8417);t.f=i&&!o?Object.defineProperties:function(e,t){a(e);for(var r,i=u(t),o=c(t),l=o.length,f=0;l>f;)s.f(e,r=o[f++],i[r]);return e}},2422:(e,t,r)=>{"use strict";var i=r(8942),o=r(8836),s=r(9426),a=r(5952),u=r(4545),c=TypeError,l=Object.defineProperty,f=Object.getOwnPropertyDescriptor,h="enumerable",d="configurable",p="writable";t.f=i?s?function(e,t,r){if(a(e),t=u(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&p in r&&!r[p]){var i=f(e,t);i&&i[p]&&(e[t]=r.value,r={configurable:d in r?r[d]:i[d],enumerable:h in r?r[h]:i[h],writable:!1})}return l(e,t,r)}:l:function(e,t,r){if(a(e),t=u(t),a(r),o)try{return l(e,t,r)}catch(e){}if("get"in r||"set"in r)throw c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},3051:(e,t,r)=>{"use strict";var i=r(8942),o=r(4460),s=r(9716),a=r(547),u=r(1819),c=r(4545),l=r(8332),f=r(8836),h=Object.getOwnPropertyDescriptor;t.f=i?h:function(e,t){if(e=u(e),t=c(t),f)try{return h(e,t)}catch(e){}if(l(e,t))return a(!o(s.f,e,t),e[t])}},2120:(e,t,r)=>{"use strict";var i=r(1150),o=r(5027).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},4008:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},2595:(e,t,r)=>{"use strict";var i=r(8332),o=r(5007),s=r(1055),a=r(2924),u=r(5994),c=a("IE_PROTO"),l=Object,f=l.prototype;e.exports=u?l.getPrototypeOf:function(e){var t=s(e);if(i(t,c))return t[c];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof l?f:null}},2541:(e,t,r)=>{"use strict";var i=r(796);e.exports=i({}.isPrototypeOf)},1150:(e,t,r)=>{"use strict";var i=r(796),o=r(8332),s=r(1819),a=r(1998).indexOf,u=r(4696),c=i([].push);e.exports=function(e,t){var r,i=s(e),l=0,f=[];for(r in i)!o(u,r)&&o(i,r)&&c(f,r);for(;t.length>l;)o(i,r=t[l++])&&(~a(f,r)||c(f,r));return f}},8417:(e,t,r)=>{"use strict";var i=r(1150),o=r(5027);e.exports=Object.keys||function(e){return i(e,o)}},9716:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},1082:(e,t,r)=>{"use strict";var i=r(6601),o=r(5952),s=r(8221);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=i(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,i){return o(r),s(i),t?e(r,i):r.__proto__=i,r}}():void 0)},3928:(e,t,r)=>{"use strict";var i=r(4460),o=r(5007),s=r(9418),a=TypeError;e.exports=function(e,t){var r,u;if("string"===t&&o(r=e.toString)&&!s(u=i(r,e))||o(r=e.valueOf)&&!s(u=i(r,e))||"string"!==t&&o(r=e.toString)&&!s(u=i(r,e)))return u;throw a("Can't convert object to primitive value")}},8389:(e,t,r)=>{"use strict";var i=r(4464),o=r(796),s=r(2120),a=r(4008),u=r(5952),c=o([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=s.f(u(e)),r=a.f;return r?c(t,r(e)):t}},7970:(e,t,r)=>{"use strict";var i=r(796),o=r(8332),s=SyntaxError,a=parseInt,u=String.fromCharCode,c=i("".charAt),l=i("".slice),f=i(/./.exec),h={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":" "},d=/^[\da-f]{4}$/i,p=/^[\u0000-\u001F]$/;e.exports=function(e,t){for(var r=!0,i="";t{"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},8714:(e,t,r)=>{"use strict";var i=r(2422).f;e.exports=function(e,t,r){r in e||i(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},2006:(e,t,r)=>{"use strict";var i=r(5116),o=TypeError;e.exports=function(e){if(i(e))throw o("Can't call method on "+e);return e}},7321:e=>{"use strict";e.exports=function(e,t){return e===t||e!=e&&t!=t}},9373:(e,t,r)=>{"use strict";var i=r(2023),o=r(1520),s=i.Set,a=i.add;e.exports=function(e){var t=new s;return o(e,function(e){a(t,e)}),t}},2213:(e,t,r)=>{"use strict";var i=r(5612),o=r(2023),s=r(9373),a=r(6343),u=r(653),c=r(1520),l=r(54),f=o.has,h=o.remove;e.exports=function(e){var t=i(this),r=u(e),o=s(t);return a(t)<=r.size?c(t,function(e){r.includes(e)&&h(o,e)}):l(r.getIterator(),function(e){f(t,e)&&h(o,e)}),o}},2023:(e,t,r)=>{"use strict";var i=r(796),o=Set.prototype;e.exports={Set:Set,add:i(o.add),has:i(o.has),remove:i(o.delete),proto:o}},7747:(e,t,r)=>{"use strict";var i=r(5612),o=r(2023),s=r(6343),a=r(653),u=r(1520),c=r(54),l=o.Set,f=o.add,h=o.has;e.exports=function(e){var t=i(this),r=a(e),o=new l;return s(t)>r.size?c(r.getIterator(),function(e){h(t,e)&&f(o,e)}):u(t,function(e){r.includes(e)&&f(o,e)}),o}},4351:(e,t,r)=>{"use strict";var i=r(5612),o=r(2023).has,s=r(6343),a=r(653),u=r(1520),c=r(54),l=r(8248);e.exports=function(e){var t=i(this),r=a(e);if(s(t)<=r.size)return!1!==u(t,function(e){if(r.includes(e))return!1},!0);var f=r.getIterator();return!1!==c(f,function(e){if(o(t,e))return l(f,"normal",!1)})}},2722:(e,t,r)=>{"use strict";var i=r(5612),o=r(6343),s=r(1520),a=r(653);e.exports=function(e){var t=i(this),r=a(e);return!(o(t)>r.size)&&!1!==s(t,function(e){if(!r.includes(e))return!1},!0)}},7507:(e,t,r)=>{"use strict";var i=r(5612),o=r(2023).has,s=r(6343),a=r(653),u=r(54),c=r(8248);e.exports=function(e){var t=i(this),r=a(e);if(s(t){"use strict";var i=r(796),o=r(54),s=r(2023),a=s.Set,u=s.proto,c=i(u.forEach),l=i(u.keys),f=l(new a).next;e.exports=function(e,t,r){return r?o({iterator:l(e),next:f},t):c(e,t)}},1316:(e,t,r)=>{"use strict";var i=r(4464),o=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};e.exports=function(e){var t=i("Set");try{new t()[e](o(0));try{return new t()[e](o(-1)),!1}catch(e){return!0}}catch(e){return!1}}},6343:(e,t,r)=>{"use strict";var i=r(6601),o=r(2023);e.exports=i(o.proto,"size","get")||function(e){return e.size}},9298:(e,t,r)=>{"use strict";var i=r(5612),o=r(2023),s=r(9373),a=r(653),u=r(54),c=o.add,l=o.has,f=o.remove;e.exports=function(e){var t=i(this),r=a(e).getIterator(),o=s(t);return u(r,function(e){l(t,e)?f(o,e):c(o,e)}),o}},2221:(e,t,r)=>{"use strict";var i=r(5612),o=r(2023).add,s=r(9373),a=r(653),u=r(54);e.exports=function(e){var t=i(this),r=a(e).getIterator(),c=s(t);return u(r,function(e){o(c,e)}),c}},2924:(e,t,r)=>{"use strict";var i=r(8310),o=r(9027),s=i("keys");e.exports=function(e){return s[e]||(s[e]=o(e))}},4607:(e,t,r)=>{"use strict";var i=r(1460),o=r(6338),s="__core-js_shared__",a=i[s]||o(s,{});e.exports=a},8310:(e,t,r)=>{"use strict";var i=r(1967),o=r(4607);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.32.1",mode:i?"pure":"global",copyright:"\xa9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.1/LICENSE",source:"https://github.com/zloirock/core-js"})},852:(e,t,r)=>{"use strict";var i=r(4638),o=r(3867),s=r(1460).String;e.exports=!!Object.getOwnPropertySymbols&&!o(function(){var e=Symbol("symbol detection");return!s(e)||!(Object(e) instanceof Symbol)||!Symbol.sham&&i&&i<41})},1021:(e,t,r)=>{"use strict";var i=r(5335),o=Math.max,s=Math.min;e.exports=function(e,t){var r=i(e);return r<0?o(r+t,0):s(r,t)}},1819:(e,t,r)=>{"use strict";var i=r(6630),o=r(2006);e.exports=function(e){return i(o(e))}},5335:(e,t,r)=>{"use strict";var i=r(4401);e.exports=function(e){var t=+e;return t!=t||0===t?0:i(t)}},7607:(e,t,r)=>{"use strict";var i=r(5335),o=Math.min;e.exports=function(e){return e>0?o(i(e),9007199254740991):0}},1055:(e,t,r)=>{"use strict";var i=r(2006),o=Object;e.exports=function(e){return o(i(e))}},76:(e,t,r)=>{"use strict";var i=r(4460),o=r(9418),s=r(9804),a=r(5056),u=r(3928),c=r(5616),l=TypeError,f=c("toPrimitive");e.exports=function(e,t){if(!o(e)||s(e))return e;var r,c=a(e,f);if(c){if(void 0===t&&(t="default"),!o(r=i(c,e,t))||s(r))return r;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),u(e,t)}},4545:(e,t,r)=>{"use strict";var i=r(76),o=r(9804);e.exports=function(e){var t=i(e,"string");return o(t)?t:t+""}},8668:(e,t,r)=>{"use strict";var i=r(4464),o=r(5007),s=r(5032),a=r(9418),u=i("Set");e.exports=function(e){return a(e)&&"number"==typeof e.size&&o(e.has)&&o(e.keys)?e:s(e)?new u(e):e}},6325:(e,t,r)=>{"use strict";var i=r(5616)("toStringTag"),o={};o[i]="z",e.exports="[object z]"===String(o)},4014:(e,t,r)=>{"use strict";var i=r(8626),o=String;e.exports=function(e){if("Symbol"===i(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},1532:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},9027:(e,t,r)=>{"use strict";var i=r(796),o=0,s=Math.random(),a=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+s,36)}},9006:(e,t,r)=>{"use strict";var i=r(852);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},9426:(e,t,r)=>{"use strict";var i=r(8942),o=r(3867);e.exports=i&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},4314:(e,t,r)=>{"use strict";var i=r(1460),o=r(5007),s=i.WeakMap;e.exports=o(s)&&/native code/.test(String(s))},5616:(e,t,r)=>{"use strict";var i=r(1460),o=r(8310),s=r(8332),a=r(9027),u=r(852),c=r(9006),l=i.Symbol,f=o("wks"),h=c?l.for||l:l&&l.withoutSetter||a;e.exports=function(e){return s(f,e)||(f[e]=u&&s(l,e)?l[e]:h("Symbol."+e)),f[e]}},4152:(e,t,r)=>{"use strict";var i=r(4464),o=r(8332),s=r(4059),a=r(2541),u=r(1082),c=r(5991),l=r(8714),f=r(7307),h=r(4118),d=r(2438),p=r(5663),y=r(8942),g=r(1967);e.exports=function(e,t,r,m){var b="stackTraceLimit",v=m?2:1,w=e.split("."),_=w[w.length-1],S=i.apply(null,w);if(S){var x=S.prototype;if(!g&&o(x,"cause")&&delete x.cause,!r)return S;var E=i("Error"),O=t(function(e,t){var r=h(m?t:e,void 0),i=m?new S(e):new S;return void 0!==r&&s(i,"message",r),p(i,O,i.stack,2),this&&a(x,this)&&f(i,this,O),arguments.length>v&&d(i,arguments[v]),i});if(O.prototype=x,"Error"!==_?u?u(O,E):c(O,E,{name:!0}):y&&b in S&&(l(O,S,b),l(O,S,"prepareStackTrace")),c(O,S),!g)try{x.name!==_&&s(x,"name",_),x.constructor=O}catch(e){}return O}}},2961:(e,t,r)=>{"use strict";var i=r(3602),o=r(1055),s=r(7279),a=r(994),u=r(2724);i({target:"Array",proto:!0,arity:1,forced:r(3867)(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=o(this),r=s(t),i=arguments.length;u(r+i);for(var c=0;c{"use strict";var i=r(3602),o=r(1460),s=r(9775),a=r(4152),u="WebAssembly",c=o[u],l=7!==Error("e",{cause:7}).cause,f=function(e,t){var r={};r[e]=a(e,t,l),i({global:!0,constructor:!0,arity:1,forced:l},r)},h=function(e,t){if(c&&c[e]){var r={};r[e]=a(u+"."+e,t,l),i({target:u,stat:!0,constructor:!0,arity:1,forced:l},r)}};f("Error",function(e){return function(t){return s(e,this,arguments)}}),f("EvalError",function(e){return function(t){return s(e,this,arguments)}}),f("RangeError",function(e){return function(t){return s(e,this,arguments)}}),f("ReferenceError",function(e){return function(t){return s(e,this,arguments)}}),f("SyntaxError",function(e){return function(t){return s(e,this,arguments)}}),f("TypeError",function(e){return function(t){return s(e,this,arguments)}}),f("URIError",function(e){return function(t){return s(e,this,arguments)}}),h("CompileError",function(e){return function(t){return s(e,this,arguments)}}),h("LinkError",function(e){return function(t){return s(e,this,arguments)}}),h("RuntimeError",function(e){return function(t){return s(e,this,arguments)}})},6794:(e,t,r)=>{"use strict";var i=r(3602),o=r(7398).find;i({target:"AsyncIterator",proto:!0,real:!0},{find:function(e){return o(this,e)}})},5885:(e,t,r)=>{"use strict";var i=r(3602),o=r(7398).forEach;i({target:"AsyncIterator",proto:!0,real:!0},{forEach:function(e){return o(this,e)}})},8458:(e,t,r)=>{"use strict";var i=r(3602),o=r(8561);i({target:"AsyncIterator",proto:!0,real:!0,forced:r(1967)},{map:o})},9884:(e,t,r)=>{"use strict";var i=r(3602),o=r(4460),s=r(3093),a=r(5952),u=r(9418),c=r(4464),l=r(7352),f=r(5396),h=c("Promise"),d=TypeError;i({target:"AsyncIterator",proto:!0,real:!0},{reduce:function(e){a(this),s(e);var t=l(this),r=t.iterator,i=t.next,c=arguments.length<2,p=c?void 0:arguments[1],y=0;return new h(function(t,s){var l=function(e){f(r,s,e,s)},g=function(){try{h.resolve(a(o(i,r))).then(function(r){try{if(a(r).done)c?s(d("Reduce of empty iterator with no initial value")):t(p);else{var i=r.value;if(c)c=!1,p=i,g();else try{var o=e(p,i,y),f=function(e){p=e,g()};u(o)?h.resolve(o).then(f,l):f(o)}catch(e){l(e)}}y++}catch(e){s(e)}},s)}catch(e){s(e)}};g()})}})},8157:(e,t,r)=>{"use strict";var i=r(3602),o=r(7398).some;i({target:"AsyncIterator",proto:!0,real:!0},{some:function(e){return o(this,e)}})},9826:(e,t,r)=>{"use strict";var i=r(3602),o=r(1460),s=r(4864),a=r(5007),u=r(2595),c=r(4059),l=r(3867),f=r(8332),h=r(5616),d=r(2462).IteratorPrototype,p=r(1967),y=h("toStringTag"),g=TypeError,m=o.Iterator,b=p||!a(m)||m.prototype!==d||!l(function(){m({})}),v=function(){if(s(this,d),u(this)===d)throw g("Abstract class Iterator not directly constructable")};f(d,y)||c(d,y,"Iterator"),(b||!f(d,"constructor")||d.constructor===Object)&&c(d,"constructor",v),v.prototype=d,i({global:!0,constructor:!0,forced:b},{Iterator:v})},3354:(e,t,r)=>{"use strict";var i=r(3602),o=r(8378),s=r(3093),a=r(5952),u=r(7352);i({target:"Iterator",proto:!0,real:!0},{find:function(e){a(this),s(e);var t=u(this),r=0;return o(t,function(t,i){if(e(t,r++))return i(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},3390:(e,t,r)=>{"use strict";var i=r(3602),o=r(8378),s=r(3093),a=r(5952),u=r(7352);i({target:"Iterator",proto:!0,real:!0},{forEach:function(e){a(this),s(e);var t=u(this),r=0;o(t,function(t){e(t,r++)},{IS_RECORD:!0})}})},9141:(e,t,r)=>{"use strict";var i=r(3602),o=r(4863);i({target:"Iterator",proto:!0,real:!0,forced:r(1967)},{map:o})},7887:(e,t,r)=>{"use strict";var i=r(3602),o=r(8378),s=r(3093),a=r(5952),u=r(7352),c=TypeError;i({target:"Iterator",proto:!0,real:!0},{reduce:function(e){a(this),s(e);var t=u(this),r=arguments.length<2,i=r?void 0:arguments[1],l=0;if(o(t,function(t){r?(r=!1,i=t):i=e(i,t,l),l++},{IS_RECORD:!0}),r)throw c("Reduce of empty iterator with no initial value");return i}})},9059:(e,t,r)=>{"use strict";var i=r(3602),o=r(8378),s=r(3093),a=r(5952),u=r(7352);i({target:"Iterator",proto:!0,real:!0},{some:function(e){a(this),s(e);var t=u(this),r=0;return o(t,function(t,i){if(e(t,r++))return i()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},6497:(e,t,r)=>{"use strict";var i=r(3602),o=r(8942),s=r(1460),a=r(4464),u=r(796),c=r(4460),l=r(5007),f=r(9418),h=r(4694),d=r(8332),p=r(4014),y=r(7279),g=r(9577),m=r(3867),b=r(7970),v=r(852),w=s.JSON,_=s.Number,S=s.SyntaxError,x=w&&w.parse,E=a("Object","keys"),O=Object.getOwnPropertyDescriptor,j=u("".charAt),k=u("".slice),T=u(/./.exec),R=u([].push),M=/^\d$/,P=/^[1-9]$/,A=/^(-|\d)$/,L=/^[\t\n\r ]$/,N=function(e,t){e=p(e);var r=new B(e,0,""),i=r.parse(),o=i.value,s=r.skip(L,i.end);if(s{"use strict";var i=r(3602),o=r(5127),s=r(6808).remove;i({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=o(this),r=!0,i=0,a=arguments.length;i{"use strict";var i=r(3602),o=r(5127),s=r(6808),a=s.get,u=s.has,c=s.set;i({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var r,i,s=o(this);return u(s,e)?(r=a(s,e),"update"in t&&(r=t.update(r,e,s),c(s,e,r)),r):(i=t.insert(e,s),c(s,e,i),i)}})},233:(e,t,r)=>{"use strict";var i=r(3602),o=r(1336),s=r(5127),a=r(734);i({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0);return!1!==a(t,function(e,i){if(!r(e,i,t))return!1},!0)}})},2051:(e,t,r)=>{"use strict";var i=r(3602),o=r(1336),s=r(5127),a=r(6808),u=r(734),c=a.Map,l=a.set;i({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new c;return u(t,function(e,o){r(e,o,t)&&l(i,o,e)}),i}})},5148:(e,t,r)=>{"use strict";var i=r(3602),o=r(1336),s=r(5127),a=r(734);i({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=a(t,function(e,i){if(r(e,i,t))return{key:i}},!0);return i&&i.key}})},5607:(e,t,r)=>{"use strict";var i=r(3602),o=r(1336),s=r(5127),a=r(734);i({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=a(t,function(e,i){if(r(e,i,t))return{value:e}},!0);return i&&i.value}})},9603:(e,t,r)=>{"use strict";var i=r(3602),o=r(7321),s=r(5127),a=r(734);i({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===a(s(this),function(t){if(o(t,e))return!0},!0)}})},262:(e,t,r)=>{"use strict";var i=r(3602),o=r(5127),s=r(734);i({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=s(o(this),function(t,r){if(t===e)return{key:r}},!0);return t&&t.key}})},5636:(e,t,r)=>{"use strict";var i=r(3602),o=r(1336),s=r(5127),a=r(6808),u=r(734),c=a.Map,l=a.set;i({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new c;return u(t,function(e,o){l(i,r(e,o,t),e)}),i}})},646:(e,t,r)=>{"use strict";var i=r(3602),o=r(1336),s=r(5127),a=r(6808),u=r(734),c=a.Map,l=a.set;i({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new c;return u(t,function(e,o){l(i,o,r(e,o,t))}),i}})},2477:(e,t,r)=>{"use strict";var i=r(3602),o=r(5127),s=r(8378),a=r(6808).set;i({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=o(this),r=arguments.length,i=0;i{"use strict";var i=r(3602),o=r(3093),s=r(5127),a=r(734),u=TypeError;i({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=s(this),r=arguments.length<2,i=r?void 0:arguments[1];if(o(e),a(t,function(o,s){r?(r=!1,i=o):i=e(i,o,s,t)}),r)throw u("Reduce of empty map with no initial value");return i}})},5198:(e,t,r)=>{"use strict";var i=r(3602),o=r(1336),s=r(5127),a=r(734);i({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0);return!0===a(t,function(e,i){if(r(e,i,t))return!0},!0)}})},7494:(e,t,r)=>{"use strict";var i=r(3602),o=r(3093),s=r(5127),a=r(6808),u=TypeError,c=a.get,l=a.has,f=a.set;i({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var r=s(this),i=arguments.length;o(t);var a=l(r,e);if(!a&&i<3)throw u("Updating absent value");var h=a?c(r,e):o(i>2?arguments[2]:void 0)(e,r);return f(r,e,t(h,e,r)),r}})},4049:(e,t,r)=>{"use strict";var i=r(3602),o=r(5612),s=r(2023).add;i({target:"Set",proto:!0,real:!0,forced:!0},{addAll:function(){for(var e=o(this),t=0,r=arguments.length;t{"use strict";var i=r(3602),o=r(5612),s=r(2023).remove;i({target:"Set",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=o(this),r=!0,i=0,a=arguments.length;i{"use strict";var i=r(3602),o=r(4460),s=r(8668),a=r(2213);i({target:"Set",proto:!0,real:!0,forced:!0},{difference:function(e){return o(a,this,s(e))}})},5334:(e,t,r)=>{"use strict";var i=r(3602),o=r(2213);i({target:"Set",proto:!0,real:!0,forced:!r(1316)("difference")},{difference:o})},1747:(e,t,r)=>{"use strict";var i=r(3602),o=r(1336),s=r(5612),a=r(1520);i({target:"Set",proto:!0,real:!0,forced:!0},{every:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0);return!1!==a(t,function(e){if(!r(e,e,t))return!1},!0)}})},5016:(e,t,r)=>{"use strict";var i=r(3602),o=r(1336),s=r(5612),a=r(2023),u=r(1520),c=a.Set,l=a.add;i({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new c;return u(t,function(e){r(e,e,t)&&l(i,e)}),i}})},5321:(e,t,r)=>{"use strict";var i=r(3602),o=r(1336),s=r(5612),a=r(1520);i({target:"Set",proto:!0,real:!0,forced:!0},{find:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=a(t,function(e){if(r(e,e,t))return{value:e}},!0);return i&&i.value}})},4294:(e,t,r)=>{"use strict";var i=r(3602),o=r(4460),s=r(8668),a=r(7747);i({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(e){return o(a,this,s(e))}})},2189:(e,t,r)=>{"use strict";var i=r(3602),o=r(3867),s=r(7747);i({target:"Set",proto:!0,real:!0,forced:!r(1316)("intersection")||o(function(){return"3,2"!==Array.from(new Set([1,2,3]).intersection(new Set([3,2])))})},{intersection:s})},5584:(e,t,r)=>{"use strict";var i=r(3602),o=r(4460),s=r(8668),a=r(4351);i({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(e){return o(a,this,s(e))}})},9018:(e,t,r)=>{"use strict";var i=r(3602),o=r(4351);i({target:"Set",proto:!0,real:!0,forced:!r(1316)("isDisjointFrom")},{isDisjointFrom:o})},7832:(e,t,r)=>{"use strict";var i=r(3602),o=r(4460),s=r(8668),a=r(2722);i({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(e){return o(a,this,s(e))}})},5736:(e,t,r)=>{"use strict";var i=r(3602),o=r(2722);i({target:"Set",proto:!0,real:!0,forced:!r(1316)("isSubsetOf")},{isSubsetOf:o})},3098:(e,t,r)=>{"use strict";var i=r(3602),o=r(4460),s=r(8668),a=r(7507);i({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(e){return o(a,this,s(e))}})},1133:(e,t,r)=>{"use strict";var i=r(3602),o=r(7507);i({target:"Set",proto:!0,real:!0,forced:!r(1316)("isSupersetOf")},{isSupersetOf:o})},5261:(e,t,r)=>{"use strict";var i=r(3602),o=r(796),s=r(5612),a=r(1520),u=r(4014),c=o([].join),l=o([].push);i({target:"Set",proto:!0,real:!0,forced:!0},{join:function(e){var t=s(this),r=void 0===e?",":u(e),i=[];return a(t,function(e){l(i,e)}),c(i,r)}})},4427:(e,t,r)=>{"use strict";var i=r(3602),o=r(1336),s=r(5612),a=r(2023),u=r(1520),c=a.Set,l=a.add;i({target:"Set",proto:!0,real:!0,forced:!0},{map:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new c;return u(t,function(e){l(i,r(e,e,t))}),i}})},427:(e,t,r)=>{"use strict";var i=r(3602),o=r(3093),s=r(5612),a=r(1520),u=TypeError;i({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=s(this),r=arguments.length<2,i=r?void 0:arguments[1];if(o(e),a(t,function(o){r?(r=!1,i=o):i=e(i,o,o,t)}),r)throw u("Reduce of empty set with no initial value");return i}})},764:(e,t,r)=>{"use strict";var i=r(3602),o=r(1336),s=r(5612),a=r(1520);i({target:"Set",proto:!0,real:!0,forced:!0},{some:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0);return!0===a(t,function(e){if(r(e,e,t))return!0},!0)}})},1962:(e,t,r)=>{"use strict";var i=r(3602),o=r(4460),s=r(8668),a=r(9298);i({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(e){return o(a,this,s(e))}})},179:(e,t,r)=>{"use strict";var i=r(3602),o=r(9298);i({target:"Set",proto:!0,real:!0,forced:!r(1316)("symmetricDifference")},{symmetricDifference:o})},8540:(e,t,r)=>{"use strict";var i=r(3602),o=r(4460),s=r(8668),a=r(2221);i({target:"Set",proto:!0,real:!0,forced:!0},{union:function(e){return o(a,this,s(e))}})},5665:(e,t,r)=>{"use strict";var i=r(3602),o=r(2221);i({target:"Set",proto:!0,real:!0,forced:!r(1316)("union")},{union:o})},4300:e=>{"use strict";e.exports=require("buffer")},2081:e=>{"use strict";e.exports=require("child_process")},6113:e=>{"use strict";e.exports=require("crypto")},2361:e=>{"use strict";e.exports=require("events")},7147:e=>{"use strict";e.exports=require("fs")},3685:e=>{"use strict";e.exports=require("http")},5687:e=>{"use strict";e.exports=require("https")},2037:e=>{"use strict";e.exports=require("os")},1017:e=>{"use strict";e.exports=require("path")},3477:e=>{"use strict";e.exports=require("querystring")},2781:e=>{"use strict";e.exports=require("stream")},1576:e=>{"use strict";e.exports=require("string_decoder")},6224:e=>{"use strict";e.exports=require("tty")},7310:e=>{"use strict";e.exports=require("url")},3837:e=>{"use strict";e.exports=require("util")},6144:e=>{"use strict";e.exports=require("vm")},1267:e=>{"use strict";e.exports=require("worker_threads")},9796:e=>{"use strict";e.exports=require("zlib")},799:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}(r(6224));let o=process.env||{},s=process.argv||[],a="NO_COLOR"in o||s.includes("--no-color"),u="FORCE_COLOR"in o||s.includes("--color"),c="win32"===process.platform,l=i&&i.isatty&&i.isatty(1)&&o.TERM&&"dumb"!==o.TERM,f=!a&&(u||c||l||"CI"in o&&("GITHUB_ACTIONS"in o||"GITLAB_CI"in o||"CIRCLECI"in o)),h=(e,t,r,i,o=t.substring(0,e)+i,s=t.substring(e+r.length),a=s.indexOf(r))=>o+(a<0?s:h(a,s,r,i)),d=(e,t,r,i,o)=>e<0?r+t+i:r+h(e,t,i,o)+i,p=(e,t,r=e,i=e.length+1)=>o=>o||!(""===o||void 0===o)?d((""+o).indexOf(t,i),o,e,t,r):"",y=(e,t,r)=>p(`\x1b[${e}m`,`\x1b[${t}m`,r),g={reset:y(0,0),bold:y(1,22,"\x1b[22m\x1b[1m"),dim:y(2,22,"\x1b[22m\x1b[2m"),italic:y(3,23),underline:y(4,24),inverse:y(7,27),hidden:y(8,28),strikethrough:y(9,29),black:y(30,39),red:y(31,39),green:y(32,39),yellow:y(33,39),blue:y(34,39),magenta:y(35,39),cyan:y(36,39),white:y(37,39),gray:y(90,39),bgBlack:y(40,49),bgRed:y(41,49),bgGreen:y(42,49),bgYellow:y(43,49),bgBlue:y(44,49),bgMagenta:y(45,49),bgCyan:y(46,49),bgWhite:y(47,49),blackBright:y(90,39),redBright:y(91,39),greenBright:y(92,39),yellowBright:y(93,39),blueBright:y(94,39),magentaBright:y(95,39),cyanBright:y(96,39),whiteBright:y(97,39),bgBlackBright:y(100,49),bgRedBright:y(101,49),bgGreenBright:y(102,49),bgYellowBright:y(103,49),bgBlueBright:y(104,49),bgMagentaBright:y(105,49),bgCyanBright:y(106,49),bgWhiteBright:y(107,49)},m=e=>e,b=({useColor:e=f}={})=>e?g:Object.keys(g).reduce((e,t)=>({...e,[t]:m}),{}),{reset:v,bold:w,dim:_,italic:S,underline:x,inverse:E,hidden:O,strikethrough:j,black:k,red:T,green:R,yellow:M,blue:P,magenta:A,cyan:L,white:N,gray:D,bgBlack:C,bgRed:I,bgGreen:B,bgYellow:$,bgBlue:q,bgMagenta:U,bgCyan:F,bgWhite:W,blackBright:G,redBright:z,greenBright:H,yellowBright:J,blueBright:K,magentaBright:Y,cyanBright:V,whiteBright:Q,bgBlackBright:X,bgRedBright:Z,bgGreenBright:ee,bgYellowBright:et,bgBlueBright:er,bgMagentaBright:en,bgCyanBright:ei,bgWhiteBright:eo}=b();t.bgBlack=C,t.bgBlackBright=X,t.bgBlue=q,t.bgBlueBright=er,t.bgCyan=F,t.bgCyanBright=ei,t.bgGreen=B,t.bgGreenBright=ee,t.bgMagenta=U,t.bgMagentaBright=en,t.bgRed=I,t.bgRedBright=Z,t.bgWhite=W,t.bgWhiteBright=eo,t.bgYellow=$,t.bgYellowBright=et,t.black=k,t.blackBright=G,t.blue=P,t.blueBright=K,t.bold=w,t.createColors=b,t.cyan=L,t.cyanBright=V,t.dim=_,t.gray=D,t.green=R,t.greenBright=H,t.hidden=O,t.inverse=E,t.isColorSupported=f,t.italic=S,t.magenta=A,t.magentaBright=Y,t.red=T,t.redBright=z,t.reset=v,t.strikethrough=j,t.underline=x,t.white=N,t.whiteBright=Q,t.yellow=M,t.yellowBright=J},1686:(e,t,r)=>{"use strict";let{isColorSupported:i}=r(799),o=r(2181),{Transform:s}=r(8118),a=r(2306),u=r(9316),c=r(8202),{ERROR_LIKE_KEYS:l,MESSAGE_KEY:f,TIMESTAMP_KEY:h,LEVEL_KEY:d,LEVEL_NAMES:p}=r(484),{isObject:y,prettifyErrorLog:g,prettifyLevel:m,prettifyMessage:b,prettifyMetadata:v,prettifyObject:w,prettifyTime:_,buildSafeSonicBoom:S,filterLog:x}=r(6741),E=e=>{try{return{value:u.parse(e,{protoAction:"remove"})}}catch(e){return{err:e}}},O={colorize:i,crlf:!1,errorLikeObjectKeys:l,errorProps:"",customLevels:null,customColors:null,useOnlyCustomProps:!0,levelFirst:!1,messageKey:f,messageFormat:!1,timestampKey:h,translateTime:!1,useMetadata:!1,outputStream:process.stdout,customPrettifiers:{},hideObject:!1,singleLine:!1};function j(e){let t=Object.assign({},O,e),r=t.crlf?"\r\n":"\n",i=" ",o=t.messageKey,s=t.levelKey,a=t.levelLabel,u=t.minimumLevel,l=t.messageFormat,f=t.timestampKey,h=t.errorLikeObjectKeys,S=t.errorProps.split(","),j="boolean"==typeof t.useOnlyCustomProps?t.useOnlyCustomProps:"true"===t.useOnlyCustomProps,k=t.customLevels?t.customLevels.split(",").reduce((e,t,r)=>{let[i,o=r]=t.split(":");return e[o]=i.toUpperCase(),e},{default:"USERLVL"}):{},T=t.customLevels?t.customLevels.split(",").reduce((e,t,r)=>{let[i,o=r]=t.split(":");return e[i.toLowerCase()]=o,e},{}):{},R=t.customColors?t.customColors.split(",").reduce((e,r)=>{let[i,o]=r.split(":"),s=j?t.customLevels:void 0!==T[i],a=s?T[i]:p[i],u=void 0!==a?a:i;return e.push([u,o]),e},[]):void 0,M={customLevels:k,customLevelNames:T};j&&!t.customLevels&&(M.customLevels=void 0,M.customLevelNames=void 0);let P=t.customPrettifiers,A=t.ignore?new Set(t.ignore.split(",")):void 0,L=t.hideObject,N=t.singleLine,D=c(t.colorize,R,j);return function(e){let c;if(y(e))c=e;else{let t=E(e);if(t.err||!y(t.value))return e+r;c=t.value}if(u){let e=j?t.customLevels:void 0!==T[u],r=(e?T[u]:p[u])||Number(u),i=c[void 0===s?d:s];if(i0?`${I} ${k}`:k),R&&(I=I.length>0?`${I} ${R}:`:R),!1===I.endsWith(":")&&""!==I&&(I+=":"),O&&(I=I.length>0?`${I} ${O}`:O),I.length>0&&!N&&(I+=r),"Error"===c.type&&c.stack){let e=g({log:c,errorLikeKeys:h,errorProperties:S,ident:i,eol:r});N&&(I+=r),I+=e}else if(!L){let e=[o,s,f].filter(e=>"string"==typeof c[e]||"number"==typeof c[e]),t=w({input:c,skipKeys:e,customPrettifiers:P,errorLikeKeys:h,eol:r,ident:i,singleLine:N,colorizer:D});N&&!/^\s$/.test(t)&&(I+=" "),I+=t}return I}}function k(e={}){let t=j(e);return a(function(r){let i;let a=new s({objectMode:!0,autoDestroy:!0,transform(e,r,i){let o=t(e);i(null,o)}});return i="object"==typeof e.destination&&"function"==typeof e.destination.write?e.destination:S({dest:e.destination||1,append:e.append,mkdir:e.mkdir,sync:e.sync}),r.on("unknown",function(e){i.write(e+"\n")}),o(r,a,i),a},{parse:"lines"})}e.exports=k,e.exports.prettyFactory=j,e.exports.colorizerFactory=c,e.exports.default=k},8202:(e,t,r)=>{"use strict";let{LEVELS:i,LEVEL_NAMES:o}=r(484),s=e=>e,a={default:s,60:s,50:s,40:s,30:s,20:s,10:s,message:s,greyMessage:s},{createColors:u}=r(799),c=u({useColor:!0}),{white:l,bgRed:f,red:h,yellow:d,green:p,blue:y,gray:g,cyan:m}=c,b={default:l,60:f,50:h,40:d,30:p,20:y,10:g,message:m,greyMessage:g};function v(e){return function(t,r,{customLevels:s,customLevelNames:a}={}){let u=e?s||i:Object.assign({},i,s),c=e?a||o:Object.assign({},o,a),l="default";l=Number.isInteger(+t)?Object.prototype.hasOwnProperty.call(u,t)?t:l:Object.prototype.hasOwnProperty.call(c,t.toLowerCase())?c[t.toLowerCase()]:l;let f=u[l];return Object.prototype.hasOwnProperty.call(r,l)?r[l](f):r.default(f)}}e.exports=function(e=!1,t,r){return e&&void 0!==t?function(e,t){let r=e.reduce(function(e,[t,r]){return e[t]="function"==typeof c[r]?c[r]:l,e},{default:l,message:m,greyMessage:g}),i=t?r:Object.assign({},b,r),o=v(t),s=function(e,t){return o(e,i,t)};return s.message=s.message||i.message,s.greyMessage=s.greyMessage||i.greyMessage,s}(t,r):e?function(e){let t=v(e),r=function(e,r){return t(e,b,r)};return r.message=b.message,r.greyMessage=b.greyMessage,r}(r):function(e){let t=v(e),r=function(e,r){return t(e,a,r)};return r.message=a.message,r.greyMessage=a.greyMessage,r}(r)}},484:e=>{"use strict";e.exports={DATE_FORMAT:"yyyy-mm-dd HH:MM:ss.l o",ERROR_LIKE_KEYS:["err","error"],MESSAGE_KEY:"msg",LEVEL_KEY:"level",LEVEL_LABEL:"levelLabel",TIMESTAMP_KEY:"time",LEVELS:{default:"USERLVL",60:"FATAL",50:"ERROR",40:"WARN",30:"INFO",20:"DEBUG",10:"TRACE"},LEVEL_NAMES:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},LOGGER_KEYS:["pid","hostname","name","level","time","timestamp","caller"]}},6741:(e,t,r)=>{"use strict";let i=r(3268)({circles:!0}),o=r(924),s=r(6755),a=r(2988),{isMainThread:u}=r(1267),c=r(8202)(),{DATE_FORMAT:l,ERROR_LIKE_KEYS:f,MESSAGE_KEY:h,LEVEL_KEY:d,LEVEL_LABEL:p,TIMESTAMP_KEY:y,LOGGER_KEYS:g,LEVELS:m}=r(484);function b(e,t=!1){if(!1===t)return e;let r=v(e);if(!w(r))return e;if(!0===t)return o(r,"UTC:"+l);let i=t.toUpperCase();if("SYS:STANDARD"===i)return o(r,l);let s=i.substr(0,4);return"SYS:"===s||"UTC:"===s?"UTC:"===s?o(r,t):o(r,t.slice(4)):o(r,`UTC:${t}`)}function v(e){let t=new Date(e);return w(t)?t:t=new Date(+e)}function w(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function _(e){return"[object Object]"===Object.prototype.toString.apply(e)}function S({input:e,ident:t=" ",eol:r="\n"}){let i=e.split(/\r?\n/);for(let e=1;e{if(!1===d.includes(i)){let u="function"==typeof o[i]?o[i](a,i,e):a;s.includes(i)?r[i]=u:t[i]=u}return{plain:t,errors:r}},{plain:{},errors:{}});return l?(Object.keys(y).length>0&&(p+=h.greyMessage(a(y))),p+=r):Object.entries(y).forEach(([e,i])=>{let s="function"==typeof o[e]?i:a(i,null,2);if(void 0===s)return;let u=S({input:s,ident:t,eol:r});p+=`${t}${e}:${u.startsWith(r)?"":" "}${u}${r}`}),Object.entries(m).forEach(([e,i])=>{let s="function"==typeof o[e]?i:a(i,null,2);void 0!==s&&(p+=E({keyName:e,lines:s,eol:r,ident:t}))}),p}function E({keyName:e,lines:t,eol:r,ident:i}){let o="",s=S({input:t,ident:i,eol:r}),a=`${i}${e}: ${s}${r}`.split(r);for(let e=0;e{Object.prototype.hasOwnProperty.call(e,t)&&(e=e[t])}),delete e[i]}function k(){}function T(e,t){e.destroyed||("beforeExit"===t?(e.flush(),e.on("drain",function(){e.end()})):e.flushSync())}e.exports={isObject:_,prettifyErrorLog:function({log:e,messageKey:t=h,ident:r=" ",eol:i="\n",errorLikeKeys:o=f,errorProperties:s=[]}){let a=e.stack,u=S({input:a,ident:r,eol:i}),c=`${r}${u}${i}`;if(s.length>0){let a;let u=g.concat(t,"type","stack");a="*"===s[0]?Object.keys(e).filter(e=>!1===u.includes(e)):s.filter(e=>!1===u.includes(e));for(let t=0;t`),""!==r)return r},prettifyObject:x,prettifyTime:function({log:e,timestampKey:t=y,translateFormat:r,prettifier:i}){let o=null;if(t in e?o=e[t]:"timestamp"in e&&(o=e.timestamp),null===o)return;let s=r?b(o,r):o;return i?i(s):`[${s}]`},buildSafeSonicBoom:function(e){let t=new s(e);return t.on("error",function e(r){if("EPIPE"===r.code){t.write=k,t.end=k,t.flushSync=k,t.destroy=k;return}t.removeListener("error",e)}),!e.sync&&u&&function(e){if(global.WeakRef&&global.WeakMap&&global.FinalizationRegistry){let t=r(3538);t.register(e,T),e.on("close",function(){t.unregister(e)})}}(t),t},filterLog:function(e,t){let r=i(e);return t.forEach(e=>{j(r,e)}),r}},e.exports.internals={formatTime:b,joinLinesWithIndentation:S,prettifyError:E,deleteLogProperty:j,splitIgnoreKey:O,createDate:v,isValidDate:w}},6755:(e,t,r)=>{"use strict";let i=r(7147),o=r(2361),s=r(3837).inherits,a=r(1017),u=r(160);function c(e,t){function r(r,i){if(r){t._reopening=!1,t._writing=!1,t._opening=!1,t.sync?process.nextTick(()=>{t.listenerCount("error")>0&&t.emit("error",r)}):t.emit("error",r);return}t.fd=i,t.file=e,t._reopening=!1,t._opening=!1,t._writing=!1,t.sync?process.nextTick(()=>t.emit("ready")):t.emit("ready"),!t._reopening&&(t._writing||!(t._len>t.minLength)||t.destroyed||h(t))}t._opening=!0,t._writing=!0,t._asyncDrainScheduled=!1;let o=t.append?"a":"w";if(t.sync)try{t.mkdir&&i.mkdirSync(a.dirname(e),{recursive:!0});let s=i.openSync(e,o);r(null,s)}catch(e){throw r(e),e}else t.mkdir?i.mkdir(a.dirname(e),{recursive:!0},t=>{if(t)return r(t);i.open(e,o,r)}):i.open(e,o,r)}function l(e){if(!(this instanceof l))return new l(e);let{fd:t,dest:r,minLength:o,sync:s,append:a=!0,mkdir:p,retryEAGAIN:y}=e||{};if(t=t||r,this._bufs=[],this._len=0,this.fd=-1,this._writing=!1,this._writingBuf="",this._ending=!1,this._reopening=!1,this._asyncDrainScheduled=!1,this._hwm=Math.max(o||0,16387),this.file=null,this.destroyed=!1,this.minLength=o||0,this.sync=s||!1,this.append=a||!1,this.retryEAGAIN=y||(()=>!0),this.mkdir=p||!1,"number"==typeof t)this.fd=t,process.nextTick(()=>this.emit("ready"));else if("string"==typeof t)c(t,this);else throw Error("SonicBoom supports only file descriptors and files");if(this.minLength>=16777216)throw Error("minLength should be smaller than MAX_WRITE (16777216)");this.release=(e,t)=>{if(e){if("EAGAIN"===e.code&&this.retryEAGAIN(e,this._writingBuf.length,this._len-this._writingBuf.length)){if(this.sync)try{u(100),this.release(void 0,0)}catch(e){this.release(e)}else setTimeout(()=>{i.write(this.fd,this._writingBuf,"utf8",this.release)},100)}else this._writing=!1,this.emit("error",e);return}if(this._len-=t,this._writingBuf=this._writingBuf.slice(t),this._writingBuf.length){if(!this.sync){i.write(this.fd,this._writingBuf,"utf8",this.release);return}try{do{let e=i.writeSync(this.fd,this._writingBuf,"utf8");this._len-=e,this._writingBuf=this._writingBuf.slice(e)}while(this._writingBuf)}catch(e){this.release(e);return}}let r=this._len;this._reopening?(this._writing=!1,this._reopening=!1,this.reopen()):r>this.minLength?h(this):this._ending?r>0?h(this):(this._writing=!1,d(this)):(this._writing=!1,this.sync?this._asyncDrainScheduled||(this._asyncDrainScheduled=!0,process.nextTick(f,this)):this.emit("drain"))},this.on("newListener",function(e){"drain"===e&&(this._asyncDrainScheduled=!1)})}function f(e){let t=e.listenerCount("drain")>0;t&&(e._asyncDrainScheduled=!1,e.emit("drain"))}function h(e){let t=e.release;if(e._writing=!0,e._writingBuf=e._writingBuf||e._bufs.shift(),e.sync)try{let r=i.writeSync(e.fd,e._writingBuf,"utf8");t(null,r)}catch(e){t(e)}else i.write(e.fd,e._writingBuf,"utf8",t)}function d(e){if(-1===e.fd){e.once("ready",d.bind(null,e));return}i.close(e.fd,t=>{if(t){e.emit("error",t);return}e._ending&&!e._writing&&e.emit("finish"),e.emit("close")}),e.destroyed=!0,e._bufs=[]}s(l,o),l.prototype.write=function(e){if(this.destroyed)throw Error("SonicBoom destroyed");let t=this._len+e.length,r=this._bufs;return!this._writing&&t>16777216?r.push(e):0===r.length?r[0]=""+e:r[r.length-1]+=e,this._len=t,!this._writing&&this._len>=this.minLength&&h(this),this._len{this.reopen(e)});return}if(this._ending)return;if(!this.file)throw Error("Unable to reopen a file descriptor, you must pass a file to SonicBoom");if(this._reopening=!0,this._writing)return;let t=this.fd;this.once("ready",()=>{t!==this.fd&&i.close(t,e=>{if(e)return this.emit("error",e)})}),c(e||this.file,this)},l.prototype.end=function(){if(this.destroyed)throw Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.end()});return}!this._ending&&(this._ending=!0,this._writing||(this._len>0&&this.fd>=0?h(this):d(this)))},l.prototype.flushSync=function(){if(this.destroyed)throw Error("SonicBoom destroyed");if(this.fd<0)throw Error("sonic boom is not ready yet");for(!this._writing&&this._writingBuf.length>0&&(this._bufs.unshift(this._writingBuf),this._writingBuf="");this._bufs.length;){let e=this._bufs[0];try{this._len-=i.writeSync(this.fd,e,"utf8"),this._bufs.shift()}catch(t){if("EAGAIN"!==t.code||!this.retryEAGAIN(t,e.length,this._len-e.length))throw t;u(100)}}},l.prototype.destroy=function(){this.destroyed||d(this)},l.SonicBoom=l,l.default=l,e.exports=l},8002:e=>{"use strict";e.exports=JSON.parse('{"name":"pino","version":"6.14.0","description":"super fast, all natural json logger","main":"pino.js","browser":"./browser.js","files":["pino.js","bin.js","browser.js","pretty.js","usage.txt","test","docs","example.js","lib"],"scripts":{"docs":"docsify serve","browser-test":"airtap --local 8080 test/browser*test.js","lint":"eslint .","test":"npm run lint && tap --100 test/*test.js test/*/*test.js","test-ci":"npm run lint && tap test/*test.js test/*/*test.js --coverage-report=lcovonly","cov-ui":"tap --coverage-report=html test/*test.js test/*/*test.js","bench":"node benchmarks/utils/runbench all","bench-basic":"node benchmarks/utils/runbench basic","bench-object":"node benchmarks/utils/runbench object","bench-deep-object":"node benchmarks/utils/runbench deep-object","bench-multi-arg":"node benchmarks/utils/runbench multi-arg","bench-longs-tring":"node benchmarks/utils/runbench long-string","bench-child":"node benchmarks/utils/runbench child","bench-child-child":"node benchmarks/utils/runbench child-child","bench-child-creation":"node benchmarks/utils/runbench child-creation","bench-formatters":"node benchmarks/utils/runbench formatters","update-bench-doc":"node benchmarks/utils/generate-benchmark-doc > docs/benchmarks.md"},"bin":{"pino":"./bin.js"},"precommit":"test","repository":{"type":"git","url":"git+https://github.com/pinojs/pino.git"},"keywords":["fast","logger","stream","json"],"author":"Matteo Collina ","contributors":["David Mark Clements ","James Sumners ","Thomas Watson Steen (https://twitter.com/wa7son)"],"license":"MIT","bugs":{"url":"https://github.com/pinojs/pino/issues"},"homepage":"http://getpino.io","devDependencies":{"airtap":"4.0.3","benchmark":"^2.1.4","bole":"^4.0.0","bunyan":"^1.8.14","docsify-cli":"^4.4.1","eslint":"^7.17.0","eslint-config-standard":"^16.0.2","eslint-plugin-import":"^2.22.1","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^5.1.0","execa":"^5.0.0","fastbench":"^1.0.1","flush-write-stream":"^2.0.0","import-fresh":"^3.2.1","log":"^6.0.0","loglevel":"^1.6.7","pino-pretty":"^5.0.0","pre-commit":"^1.2.2","proxyquire":"^2.1.3","pump":"^3.0.0","semver":"^7.0.0","split2":"^3.1.1","steed":"^1.1.3","strip-ansi":"^6.0.0","tap":"^15.0.1","tape":"^5.0.0","through2":"^4.0.0","winston":"^3.3.3"},"dependencies":{"fast-redact":"^3.0.0","fast-safe-stringify":"^2.0.8","process-warning":"^1.0.0","flatstr":"^1.0.12","pino-std-serializers":"^3.1.0","quick-format-unescaped":"^4.0.3","sonic-boom":"^1.0.2"}}')}},t={};function r(i){var o=t[i];if(void 0!==o)return o.exports;var s=t[i]={exports:{}};return e[i].call(s.exports,s,s.exports,r),s.exports}(()=>{"use strict";r(8458),r(9141),r(6497),r(8157),r(9059),r(9826);let{getManagedCacheStorage:e,CacheStorageGroup:t}=r(9220),i=r(7310).parse;r(2290).disable=!0;let o=r(1784).PROVIDERS,s=e("bridge");s.aliveDuration=9e5;let a=(e,t)=>Promise.resolve().then(()=>{let r=e.pathname.slice(1).split("/").map(e=>decodeURIComponent(e)),i=t,o=decodeURIComponent(e.query);try{o=JSON.parse(o)}catch(e){}let a=r.some(e=>{if(!(e in i))return!0;i=i[e]});return a||"function"!=typeof i?Promise.reject():s.cache(o,()=>i(o))}),u=t.getInstance();setInterval(()=>{u.cleanup()},9e5),r(3685).createServer().listen(parseInt(process.argv[2])||9e3).on("request",(e,t)=>a(i(e.url),o).then(e=>t.write(e)).catch(()=>t.writeHead(404)).then(()=>t.end()))})()})(); \ No newline at end of file + `,i({o:t,〇:null}),{codeGeneration:{strings:!1,wasm:!1}})}catch(t){throw Error(r(e))}})}}},2988:e=>{e.exports=a,a.default=a,a.stable=l,a.stableStringify=l;var t="[...]",r="[Circular]",i=[],o=[];function s(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(e,a,c,l){void 0===l&&(l=s()),function e(i,o,s,a,c,l,f){if(l+=1,"object"==typeof i&&null!==i){for(h=0;hf.depthLimit||void 0!==f.edgesLimit&&s+1>f.edgesLimit){u(t,i,o,c);return}if(a.push(i),Array.isArray(i))for(h=0;ht?1:0}function l(e,a,l,h){void 0===h&&(h=s());var d,p=function e(o,s,a,l,f,h,d){if(h+=1,"object"==typeof o&&null!==o){for(p=0;pd.depthLimit||void 0!==d.edgesLimit&&a+1>d.edgesLimit){u(t,o,s,f);return}if(l.push(o),Array.isArray(o))for(p=0;p0)for(var i=0;i{"use strict";e.exports=function(e){return e}},1828:(e,t,r)=>{try{var i=r(3837);if("function"!=typeof i.inherits)throw"";e.exports=i.inherits}catch(t){e.exports=r(3730)}},3730:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},3538:e=>{"use strict";function t(e,t,r,i){function o(){let e=t.deref();void 0!==e&&r(e,i)}e[i]=o,process.once(i,o)}let r=new FinalizationRegistry(o),i=new WeakMap;function o(e){process.removeListener("exit",e.exit),process.removeListener("beforeExit",e.beforeExit)}e.exports={register:function(e,o){if(void 0===e)throw Error("the object can't be undefined");let s=new WeakRef(e),a={};i.set(e,a),r.register(e,a),t(a,s,o,"exit"),t(a,s,o,"beforeExit")},unregister:function(e){let t=i.get(e);i.delete(e),t&&o(t),r.unregister(e)}}},5962:(e,t,r)=>{var i=r(4447);function o(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function s(e){var t=function(){if(t.called)throw Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}e.exports=i(o),e.exports.strict=i(s),o.proto=o(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return o(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return s(this)},configurable:!0})})},2306:(e,t,r)=>{"use strict";let i=Symbol.for("pino.metadata"),o=r(5443),s=r(7008);function a(e,t){process.nextTick(t,e)}e.exports=function(e,t={}){let r="lines"===t.parse,u="function"==typeof t.parseLine?t.parseLine:JSON.parse,c=t.close||a,l=o(function(e){let t;try{t=u(e)}catch(t){this.emit("unknown",e,t);return}if(null===t){this.emit("unknown",e,"Null value ignored");return}return("object"!=typeof t&&(t={data:t,time:Date.now()}),l[i]&&(l.lastTime=t.time,l.lastLevel=t.level,l.lastObj=t),r)?e:t},{autoDestroy:!0});l._destroy=function(e,t){let r=c(e,t);r&&"function"==typeof r.then&&r.then(t,t)},!1!==t.metadata&&(l[i]=!0,l.lastTime=0,l.lastLevel=0,l.lastObj=null);let f=e(l);if(f&&"function"==typeof f.catch)f.catch(e=>{l.destroy(e)}),f=null;else if(t.enablePipelining&&f)return s(l,f,{objectMode:!0});return l}},1787:(e,t,r)=>{"use strict";let i=r(8556)();e.exports=i;let o="PinoWarning";i.create(o,"PINODEP004","bindings.serializers is deprecated, use options.serializers option instead"),i.create(o,"PINODEP005","bindings.formatters is deprecated, use options.formatters option instead"),i.create(o,"PINODEP006","bindings.customLevels is deprecated, use options.customLevels option instead"),i.create(o,"PINODEP007","bindings.level is deprecated, use options.level option instead")},6441:(e,t,r)=>{"use strict";let i=r(8306),{lsCacheSym:o,levelValSym:s,useOnlyCustomLevelsSym:a,streamSym:u,formattersSym:c,hooksSym:l}=r(4941),{noop:f,genLog:h}=r(9952),d={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},p={fatal:e=>{let t=h(d.fatal,e);return function(...e){let r=this[u];if(t.call(this,...e),"function"==typeof r.flushSync)try{r.flushSync()}catch(e){}}},error:e=>h(d.error,e),warn:e=>h(d.warn,e),info:e=>h(d.info,e),debug:e=>h(d.debug,e),trace:e=>h(d.trace,e)},y=Object.keys(d).reduce((e,t)=>(e[d[t]]=t,e),{}),g=Object.keys(y).reduce((e,t)=>(e[t]=i('{"level":'+Number(t)),e),{});e.exports={initialLsCache:g,genLsCache:function(e){let t=e[c].level,{labels:r}=e.levels,i={};for(let e in r){let o=t(r[e],Number(e));i[e]=JSON.stringify(o).slice(0,-1)}return e[o]=i,e},levelMethods:p,getLevel:function(e){let{levels:t,levelVal:r}=this;return t&&t.labels?t.labels[r]:""},setLevel:function(e){let{labels:t,values:r}=this.levels;if("number"==typeof e){if(void 0===t[e])throw Error("unknown level value"+e);e=t[e]}if(void 0===r[e])throw Error("unknown level "+e);let i=this[s],o=this[s]=r[e],u=this[a],c=this[l].logMethod;for(let e in r){if(o>r[e]){this[e]=f;continue}this[e]=!function(e,t){if(t)return!1;switch(e){case"fatal":case"error":case"warn":case"info":case"debug":case"trace":return!0;default:return!1}}(e,u)?h(r[e],c):p[e](c)}this.emit("level-change",e,o,t[i],i)},isLevelEnabled:function(e){let{values:t}=this.levels,r=t[e];return void 0!==r&&r>=this[s]},mappings:function(e=null,t=!1){let r=e?Object.keys(e).reduce((t,r)=>(t[e[r]]=r,t),{}):null,i=Object.assign(Object.create(Object.prototype,{Infinity:{value:"silent"}}),t?null:y,r),o=Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),t?null:d,e);return{labels:i,values:o}},assertNoLevelCollisions:function(e,t){let{labels:r,values:i}=e;for(let e in t){if(e in i)throw Error("levels cannot be overridden");if(t[e]in r)throw Error("pre-existing level values cannot be used for new levels")}},assertDefaultLevelFound:function(e,t,r){if("number"==typeof e){let i=[].concat(Object.keys(t||{}).map(e=>t[e]),r?[]:Object.keys(y).map(e=>+e),1/0);if(!i.includes(e))throw Error(`default level:${e} must be included in custom levels`);return}let i=Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),r?null:d,t);if(!(e in i))throw Error(`default level:${e} must be included in custom levels`)}}},8508:(e,t,r)=>{"use strict";let{version:i}=r(8002);e.exports={version:i}},5092:(e,t,r)=>{"use strict";let{EventEmitter:i}=r(2361),o=r(4656),s=r(8306),a=r(1787),{lsCacheSym:u,levelValSym:c,setLevelSym:l,getLevelSym:f,chindingsSym:h,parsedChindingsSym:d,mixinSym:p,asJsonSym:y,writeSym:g,mixinMergeStrategySym:m,timeSym:b,timeSliceIndexSym:v,streamSym:w,serializersSym:_,formattersSym:S,useOnlyCustomLevelsSym:x,needsMetadataGsym:E,redactFmtSym:O,stringifySym:j,formatOptsSym:k,stringifiersSym:T}=r(4941),{getLevel:R,setLevel:M,isLevelEnabled:P,mappings:A,initialLsCache:L,genLsCache:N,assertNoLevelCollisions:D}=r(6441),{asChindings:C,asJson:I,buildFormatters:B,stringify:$}=r(9952),{version:q}=r(8508),U=r(5434),F={constructor:class{},child:function(e,t){if(!e)throw Error("missing bindings for child Pino");t=t||{};let r=this[_],i=this[S],o=Object.create(this);if(!0===e.hasOwnProperty("serializers")&&(a.emit("PINODEP004"),t.serializers=e.serializers),!0===e.hasOwnProperty("formatters")&&(a.emit("PINODEP005"),t.formatters=e.formatters),!0===e.hasOwnProperty("customLevels")&&(a.emit("PINODEP006"),t.customLevels=e.customLevels),!0===e.hasOwnProperty("level")&&(a.emit("PINODEP007"),t.level=e.level),!0===t.hasOwnProperty("serializers")){for(let e in o[_]=Object.create(null),r)o[_][e]=r[e];let e=Object.getOwnPropertySymbols(r);for(var s=0;se;function G(e,t){return Object.assign(t,e)}},5434:(e,t,r)=>{"use strict";let i=r(9775),{redactFmtSym:o,wildcardFirstSym:s}=r(4941),{rx:a,validator:u}=i,c=u({ERR_PATHS_MUST_BE_STRINGS:()=>"pino – redacted paths must be strings",ERR_INVALID_PATH:e=>`pino – redact paths array contains an invalid path (${e})`}),l="[Redacted]";e.exports=function(e,t){let{paths:r,censor:u}=function(e){if(Array.isArray(e))return c(e={paths:e,censor:l}),e;let{paths:t,censor:r=l,remove:i}=e;if(!1===Array.isArray(t))throw Error("pino – redact must contain an array of strings");return!0===i&&(r=void 0),c({paths:t,censor:r}),{paths:t,censor:r}}(e),f=r.reduce((e,t)=>{a.lastIndex=0;let r=a.exec(t),i=a.exec(t),o=void 0!==r[1]?r[1].replace(/^(?:"|'|`)(.*)(?:"|'|`)$/,"$1"):r[0];if("*"===o&&(o=s),null===i)return e[o]=null,e;if(null===e[o])return e;let{index:u}=i,c=`${t.substr(u,t.length-1)}`;return e[o]=e[o]||[],o!==s&&0===e[o].length&&e[o].push(...e[s]||[]),o===s&&Object.keys(e).forEach(function(t){e[t]&&e[t].push(c)}),e[o].push(c),e},{}),h={[o]:i({paths:r,censor:u,serialize:t,strict:!1})},d=(...e)=>"function"==typeof u?t(u(...e)):t(u);return[...Object.keys(f),...Object.getOwnPropertySymbols(f)].reduce((e,r)=>{if(null===f[r])e[r]=e=>d(e,[r]);else{let o="function"==typeof u?(e,t)=>u(e,[r,...t]):u;e[r]=i({paths:f[r],censor:o,serialize:t,strict:!1})}return e},h)}},4941:e=>{"use strict";let t=Symbol("pino.setLevel"),r=Symbol("pino.getLevel"),i=Symbol("pino.levelVal"),o=Symbol("pino.useLevelLabels"),s=Symbol("pino.useOnlyCustomLevels"),a=Symbol("pino.mixin"),u=Symbol("pino.lsCache"),c=Symbol("pino.chindings"),l=Symbol("pino.parsedChindings"),f=Symbol("pino.asJson"),h=Symbol("pino.write"),d=Symbol("pino.redactFmt"),p=Symbol("pino.time"),y=Symbol("pino.timeSliceIndex"),g=Symbol("pino.stream"),m=Symbol("pino.stringify"),b=Symbol("pino.stringifiers"),v=Symbol("pino.end"),w=Symbol("pino.formatOpts"),_=Symbol("pino.messageKey"),S=Symbol("pino.nestedKey"),x=Symbol("pino.mixinMergeStrategy"),E=Symbol("pino.wildcardFirst"),O=Symbol.for("pino.serializers"),j=Symbol.for("pino.formatters"),k=Symbol.for("pino.hooks"),T=Symbol.for("pino.metadata");e.exports={setLevelSym:t,getLevelSym:r,levelValSym:i,useLevelLabelsSym:o,mixinSym:a,lsCacheSym:u,chindingsSym:c,parsedChindingsSym:l,asJsonSym:f,writeSym:h,serializersSym:O,redactFmtSym:d,timeSym:p,timeSliceIndexSym:y,streamSym:g,stringifySym:m,stringifiersSym:b,endSym:v,formatOptsSym:w,messageKeySym:_,nestedKeySym:S,wildcardFirstSym:E,needsMetadataGsym:T,useOnlyCustomLevelsSym:s,formattersSym:j,hooksSym:k,mixinMergeStrategySym:x}},9649:e=>{"use strict";e.exports={nullTime:()=>"",epochTime:()=>`,"time":${Date.now()}`,unixTime:()=>`,"time":${Math.round(Date.now()/1e3)}`,isoTime:()=>`,"time":"${new Date(Date.now()).toISOString()}"`}},9952:(e,t,r)=>{"use strict";let i=r(4532),{mapHttpRequest:o,mapHttpResponse:s}=r(4186),a=r(4656),u=r(2988),{lsCacheSym:c,chindingsSym:l,parsedChindingsSym:f,writeSym:h,serializersSym:d,formatOptsSym:p,endSym:y,stringifiersSym:g,stringifySym:m,wildcardFirstSym:b,needsMetadataGsym:v,redactFmtSym:w,streamSym:_,nestedKeySym:S,formattersSym:x,messageKeySym:E}=r(4941);function O(){}function j(e,t,i,o){if(t&&"function"==typeof t)return k((t=t.bind(o))(e),i,e);try{let t=r(1686).prettyFactory||r(1686);return t.asMetaWrapper=k,k(t(e),i,e)}catch(e){if(e.message.startsWith("Cannot find module 'pino-pretty'"))throw Error("Missing `pino-pretty` module: `pino-pretty` must be installed separately");throw e}}function k(e,t,r){r=Object.assign({suppressFlushSyncWarning:!1},r);let i=!1;return{[v]:!0,lastLevel:0,lastMsg:null,lastObj:null,lastLogger:null,flushSync(){r.suppressFlushSyncWarning||i||(i=!0,R(t,this),t.write(e(Object.assign({level:40,msg:"pino.final with prettyPrint does not support flushing",time:Date.now()},this.chindings()))))},chindings(){let e=this.lastLogger,t=null;return e?(e.hasOwnProperty(f)?t=e[f]:(t=JSON.parse("{"+e[l].substr(1)+"}"),e[f]=t),t):null},write(r){let i=this.lastLogger,o=this.chindings(),s=this.lastTime;s=s.match(/^\d+/)?parseInt(s):s.slice(1,-1);let a=this.lastObj,u=this.lastMsg,c=i[x],l=c.log?c.log(a):a,f=i[E];u&&l&&!l.hasOwnProperty(f)&&(l[f]=u);let h=Object.assign({level:this.lastLevel,time:s},l,null),p=i[d],y=Object.keys(p);for(var m=0;m100)return JSON.stringify(e);for(var a=0;a=32;a++)(34===(o=e.charCodeAt(a))||92===o)&&(t+=e.slice(r,a)+"\\",r=a,i=!0);return i?t+=e.slice(r):t=e,o<32?JSON.stringify(e):'"'+t+'"'})(o);break;default:o=(e||s)(o)}if(void 0===o)continue;w+=',"'+t+'":'+o}return w+u},genLog:function(e,t){if(!t)return r;return function(...i){t.call(this,i,r,e)};function r(t,...a){if("object"==typeof t){let r,u=t;null!==t&&(t.method&&t.headers&&t.socket?t=o(t):"function"==typeof t.setHeader&&(t=s(t))),this[S]&&(t={[this[S]]:t}),null===u&&0===a.length?r=[null]:(u=a.shift(),r=a),this[h](t,i(u,r,this[p]),e)}else this[h](null,i(t,a,this[p]),e)}},createArgsNormalizer:function(e){return function(t,r={},i){var o;if("string"==typeof r?(i=T({dest:r,sync:!0}),r={}):"string"==typeof i?i=T({dest:i,sync:!0}):(r instanceof a||r.writable||r._writableState)&&(i=r,r=null),"extreme"in(r=Object.assign({},e,r)))throw Error("The extreme option has been removed, use pino.destination({ sync: false }) instead");if("onTerminated"in r)throw Error("The onTerminated option has been removed, use pino.final instead");"changeLevelName"in r&&(process.emitWarning("The changeLevelName option is deprecated and will be removed in v7. Use levelKey instead.",{code:"changeLevelName_deprecation"}),r.levelKey=r.changeLevelName,delete r.changeLevelName);let{enabled:s,prettyPrint:u,prettifier:c,messageKey:l}=r;if(!1===s&&(r.level="silent"),(i=i||process.stdout)===process.stdout&&i.fd>=0&&!((o=i).write!==o.constructor.prototype.write)&&(i=T({fd:i.fd,sync:!0})),u){let e=Object.assign({messageKey:l},u);i=j(e,c,i,t)}return{opts:r,stream:i}}},final:function(e,t){if(void 0===e||"function"!=typeof e.child)throw Error("expected a pino logger instance");let r=void 0!==t;if(r&&"function"!=typeof t)throw Error("if supplied, the handler parameter should be a function");let i=e[_];if("function"!=typeof i.flushSync)throw Error("final requires a stream that has a flushSync method, such as pino.destination");let o=new Proxy(e,{get:(e,t)=>t in e.levels.values?(...r)=>{e[t](...r),i.flushSync()}:e[t]});return r?(e=null,...r)=>{try{i.flushSync()}catch(e){}return t(e,o,...r)}:o},stringify:function(e){try{return JSON.stringify(e)}catch(t){return u(e)}},buildFormatters:function(e,t,r){return{level:e,bindings:t,log:r}}}},8167:(e,t,r)=>{"use strict";let i=r(2037),o=r(4186),s=r(5434),a=r(9649),u=r(5092),c=r(4941),{assertDefaultLevelFound:l,mappings:f,genLsCache:h}=r(6441),{createArgsNormalizer:d,asChindings:p,final:y,stringify:g,buildSafeSonicBoom:m,buildFormatters:b,noop:v}=r(9952),{version:w}=r(8508),{mixinMergeStrategySym:_}=r(4941),{chindingsSym:S,redactFmtSym:x,serializersSym:E,timeSym:O,timeSliceIndexSym:j,streamSym:k,stringifySym:T,stringifiersSym:R,setLevelSym:M,endSym:P,formatOptsSym:A,messageKeySym:L,nestedKeySym:N,mixinSym:D,useOnlyCustomLevelsSym:C,formattersSym:I,hooksSym:B}=c,{epochTime:$,nullTime:q}=a,{pid:U}=process,F=i.hostname(),W=o.err,G={level:"info",messageKey:"msg",nestedKey:null,enabled:!0,prettyPrint:!1,base:{pid:U,hostname:F},serializers:Object.assign(Object.create(null),{err:W}),formatters:Object.assign(Object.create(null),{bindings:e=>e,level:(e,t)=>({level:t})}),hooks:{logMethod:void 0},timestamp:$,name:void 0,redact:null,customLevels:null,levelKey:void 0,useOnlyCustomLevels:!1},z=d(G),H=Object.assign(Object.create(null),o);function J(...e){var t,r;let i={},{opts:o,stream:a}=z(i,...e),{redact:c,crlf:d,serializers:y,timestamp:m,messageKey:w,nestedKey:U,base:F,name:W,level:H,customLevels:Y,useLevelLabels:V,changeLevelName:Q,levelKey:X,mixin:Z,mixinMergeStrategy:ee,useOnlyCustomLevels:et,formatters:er,hooks:en}=o,ei=b(er.level,er.bindings,er.log);V&&!(Q||X)?(process.emitWarning("useLevelLabels is deprecated, use the formatters.level option instead","Warning","PINODEP001"),ei.level=K):(Q||X)&&!V?(process.emitWarning("changeLevelName and levelKey are deprecated, use the formatters.level option instead","Warning","PINODEP002"),ei.level=(t=Q||X,function(e,r){return{[t]:r}})):(Q||X)&&V&&(process.emitWarning("useLevelLabels is deprecated, use the formatters.level option instead","Warning","PINODEP001"),process.emitWarning("changeLevelName and levelKey are deprecated, use the formatters.level option instead","Warning","PINODEP002"),ei.level=(r=Q||X,function(e,t){return{[r]:e}})),y[Symbol.for("pino.*")]&&(process.emitWarning("The pino.* serializer is deprecated, use the formatters.log options instead","Warning","PINODEP003"),ei.log=y[Symbol.for("pino.*")]),ei.bindings||(ei.bindings=G.formatters.bindings),ei.level||(ei.level=G.formatters.level);let eo=c?s(c,g):{},es=c?{stringify:eo[x]}:{stringify:g},ea=p.bind(null,{[S]:"",[E]:y,[R]:eo,[T]:g,[I]:ei}),eu="";null!==F&&(eu=ea(void 0===W?F:Object.assign({},F,{name:W})));let ec=m instanceof Function?m:m?$:q,el=ec().indexOf(":")+1;if(et&&!Y)throw Error("customLevels is required if useOnlyCustomLevels is set true");if(Z&&"function"!=typeof Z)throw Error(`Unknown mixin type "${typeof Z}" - expected "function"`);l(H,Y,et);let ef=f(Y,et);return Object.assign(i,{levels:ef,[C]:et,[k]:a,[O]:ec,[j]:el,[T]:g,[R]:eo,[P]:"}"+(d?"\r\n":"\n"),[A]:es,[L]:w,[N]:U,[E]:y,[D]:Z,[_]:ee,[S]:eu,[I]:ei,[B]:en,silent:v}),Object.setPrototypeOf(i,u()),h(i),i[M](H),i}function K(e,t){return{level:e}}e.exports=J,e.exports.extreme=(e=process.stdout.fd)=>(process.emitWarning("The pino.extreme() option is deprecated and will be removed in v7. Use pino.destination({ sync: false }) instead.",{code:"extreme_deprecation"}),m({dest:e,minLength:4096,sync:!1})),e.exports.destination=(e=process.stdout.fd)=>"object"==typeof e?(e.dest=e.dest||process.stdout.fd,m(e)):m({dest:e,minLength:0,sync:!0}),e.exports.final=y,e.exports.levels=f(),e.exports.stdSerializers=H,e.exports.stdTimeFunctions=Object.assign({},a),e.exports.symbols=c,e.exports.version=w,e.exports.default=J,e.exports.pino=J},4186:(e,t,r)=>{"use strict";let i=r(7657),o=r(6836),s=r(6364);e.exports={err:i,mapHttpRequest:o.mapHttpRequest,mapHttpResponse:s.mapHttpResponse,req:o.reqSerializer,res:s.resSerializer,wrapErrorSerializer:function(e){return e===i?e:function(t){return e(i(t))}},wrapRequestSerializer:function(e){return e===o.reqSerializer?e:function(t){return e(o.reqSerializer(t))}},wrapResponseSerializer:function(e){return e===s.resSerializer?e:function(t){return e(s.resSerializer(t))}}}},7657:e=>{"use strict";e.exports=function e(i){if(!(i instanceof Error))return i;i[r]=void 0;let s=Object.create(o);for(let o in s.type="[object Function]"===t.call(i.constructor)?i.constructor.name:i.name,s.message=i.message,s.stack=i.stack,i)if(void 0===s[o]){let t=i[o];t instanceof Error?t.hasOwnProperty(r)||(s[o]=e(t)):s[o]=t}return delete i[r],s.raw=i,s};let{toString:t}=Object.prototype,r=Symbol("circular-ref-tag"),i=Symbol("pino-raw-err-ref"),o=Object.create({},{type:{enumerable:!0,writable:!0,value:void 0},message:{enumerable:!0,writable:!0,value:void 0},stack:{enumerable:!0,writable:!0,value:void 0},raw:{enumerable:!1,get:function(){return this[i]},set:function(e){this[i]=e}}});Object.defineProperty(o,i,{writable:!0,value:{}})},6836:e=>{"use strict";e.exports={mapHttpRequest:function(e){return{req:i(e)}},reqSerializer:i};let t=Symbol("pino-raw-req-ref"),r=Object.create({},{id:{enumerable:!0,writable:!0,value:""},method:{enumerable:!0,writable:!0,value:""},url:{enumerable:!0,writable:!0,value:""},query:{enumerable:!0,writable:!0,value:""},params:{enumerable:!0,writable:!0,value:""},headers:{enumerable:!0,writable:!0,value:{}},remoteAddress:{enumerable:!0,writable:!0,value:""},remotePort:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[t]},set:function(e){this[t]=e}}});function i(e){let t=e.info||e.socket,i=Object.create(r);return i.id="function"==typeof e.id?e.id():e.id||(e.info?e.info.id:void 0),i.method=e.method,e.originalUrl?(i.url=e.originalUrl,i.query=e.query,i.params=e.params):i.url=e.path||(e.url?e.url.path||e.url:void 0),i.headers=e.headers,i.remoteAddress=t&&t.remoteAddress,i.remotePort=t&&t.remotePort,i.raw=e.raw||e,i}Object.defineProperty(r,t,{writable:!0,value:{}})},6364:e=>{"use strict";e.exports={mapHttpResponse:function(e){return{res:i(e)}},resSerializer:i};let t=Symbol("pino-raw-res-ref"),r=Object.create({},{statusCode:{enumerable:!0,writable:!0,value:0},headers:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[t]},set:function(e){this[t]=e}}});function i(e){let t=Object.create(r);return t.statusCode=e.statusCode,t.headers=e.getHeaders?e.getHeaders():e._headers,t.raw=e,t}Object.defineProperty(r,t,{writable:!0,value:{}})},8556:(e,t,r)=>{"use strict";let{format:i}=r(3837);e.exports=function(){let e={},t=new Map;return{create:function(r,o,s){if(!r)throw Error("Warning name must not be empty");if(!o)throw Error("Warning code must not be empty");if(!s)throw Error("Warning message must not be empty");if(void 0!==e[o=o.toUpperCase()])throw Error(`The code '${o}' already exist`);return t.set(o,!1),e[o]=function(e,t,a){return{code:o,name:r,message:e&&t&&a?i(s,e,t,a):e&&t?i(s,e,t):e?i(s,e):s}},e[o]},emit:function(r,i,o,s){if(void 0===e[r])throw Error(`The code '${r}' does not exist`);if(!0===t.get(r))return;t.set(r,!0);let a=e[r](i,o,s);process.emitWarning(a.message,a.name,a.code)},emitted:t}}},2181:(e,t,r)=>{var i=r(5962),o=r(8839),s=r(7147),a=function(){},u=/^v?\.0/.test(process.version),c=function(e){return"function"==typeof e},l=function(e,t,r,l){l=i(l);var f=!1;e.on("close",function(){f=!0}),o(e,{readable:t,writable:r},function(e){if(e)return l(e);f=!0,l()});var h=!1;return function(t){if(!f&&!h){if(h=!0,u&&s&&(e instanceof(s.ReadStream||a)||e instanceof(s.WriteStream||a))&&c(e.close))return e.close(a);if(e.setHeader&&c(e.abort))return e.abort();if(c(e.destroy))return e.destroy();l(t||Error("stream was destroyed"))}}},f=function(e){e()},h=function(e,t){return e.pipe(t)};e.exports=function(){var e,t=Array.prototype.slice.call(arguments),r=c(t[t.length-1]||a)&&t.pop()||a;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw Error("pump requires two streams per minimum");var i=t.map(function(o,s){var a=s0,function(t){e||(e=t),t&&i.forEach(f),a||(i.forEach(f),r(e))})});return t.reduce(h)}},4532:e=>{"use strict";function t(e){try{return JSON.stringify(e)}catch(e){return'"[Circular]"'}}e.exports=function(e,r,i){var o=i&&i.stringify||t;if("object"==typeof e&&null!==e){var s=r.length+1;if(1===s)return e;var a=Array(s);a[0]=o(e);for(var u=1;u-1?h:0,e.charCodeAt(p+1)){case 100:case 102:if(f>=c||null==r[f])break;h=c||null==r[f])break;h=c||void 0===r[f])break;h",h=p+2,p++;break}l+=o(r[f]),h=p+2,p++;break;case 115:if(f>=c)break;h{"use strict";let t={};function r(e,r,i){i||(i=Error);class o extends i{constructor(e,t,i){super("string"==typeof r?r:r(e,t,i))}}o.prototype.name=i.name,o.prototype.code=e,t[e]=o}function i(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){var o,s,a,u,c;let l,f;if("string"==typeof t&&(o="not ",t.substr(!s||s<0?0:+s,o.length)===o)?(l="must not be",t=t.replace(/^not /,"")):l="must be",a=" argument",(void 0===u||u>e.length)&&(u=e.length),e.substring(u-a.length,u)===a)f=`The ${e} ${l} ${i(t,"type")}`;else{let r=("number"!=typeof c&&(c=0),c+1>e.length||-1===e.indexOf(".",c))?"argument":"property";f=`The "${e}" ${r} ${l} ${i(t,"type")}`}return f+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},673:(e,t,r)=>{"use strict";var i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var o=r(5006),s=r(8719);r(1828)(l,o);for(var a=i(s.prototype),u=0;u{"use strict";e.exports=o;var i=r(8597);function o(e){if(!(this instanceof o))return new o(e);i.call(this,e)}r(1828)(o,i),o.prototype._transform=function(e,t,r){r(null,e)}},5006:(e,t,r)=>{"use strict";e.exports=O,O.ReadableState=E,r(2361).EventEmitter;var i,o,s,a,u,c=function(e,t){return e.listeners(t).length},l=r(1829),f=r(4300).Buffer,h=global.Uint8Array||function(){},d=r(3837);o=d&&d.debuglog?d.debuglog("stream"):function(){};var p=r(4506),y=r(3390),g=r(1111).getHighWaterMark,m=r(7638).q,b=m.ERR_INVALID_ARG_TYPE,v=m.ERR_STREAM_PUSH_AFTER_EOF,w=m.ERR_METHOD_NOT_IMPLEMENTED,_=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(1828)(O,l);var S=y.errorOrDestroy,x=["error","close","destroy","pause","resume"];function E(e,t,o){i=i||r(673),e=e||{},"boolean"!=typeof o&&(o=t instanceof i),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",o),this.buffer=new p,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=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=r(7361).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function O(e){if(i=i||r(673),!(this instanceof O))return new O(e);var t=this instanceof i;this._readableState=new E(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),l.call(this)}function j(e,t,r,i,s){o("readableAddChunk",t);var a,u,c,l,d,p=e._readableState;if(null===t)p.reading=!1,function(e,t){if(o("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?R(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,M(e)))}}(e,p);else{if(s||(a=p,u=t,f.isBuffer(u)||u instanceof h||"string"==typeof u||void 0===u||a.objectMode||(c=new b("chunk",["string","Buffer","Uint8Array"],u)),d=c),d)S(e,d);else if(p.objectMode||t&&t.length>0){if("string"==typeof t||p.objectMode||Object.getPrototypeOf(t)===f.prototype||(l=t,t=f.from(l)),i)p.endEmitted?S(e,new _):k(e,p,t,!0);else if(p.ended)S(e,new v);else{if(p.destroyed)return!1;p.reading=!1,p.decoder&&!r?(t=p.decoder.write(t),p.objectMode||0!==t.length?k(e,p,t,!1):P(e,p)):k(e,p,t,!1)}}else i||(p.reading=!1,P(e,p))}return!p.ended&&(p.lengtht.highWaterMark){var r;t.highWaterMark=((r=e)>=1073741824?r=1073741824:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)}return e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)}function R(e){var t=e._readableState;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(M,e))}function M(e){var t=e._readableState;o("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,C(e)}function P(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(A,e,t))}function A(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function N(e){o("readable nexttick read 0"),e.read(0)}function D(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),C(e),t.flowing&&!t.reading&&e.read(0)}function C(e){var t=e._readableState;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function I(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function B(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick($,t,e))}function $(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function q(e,t){for(var r=0,i=e.length;r=r.highWaterMark:r.length>0)||r.ended))return o("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?B(this):R(this),null;if(0===(e=T(e,r))&&r.ended)return 0===r.length&&B(this),null;var s=r.needReadable;return o("need readable",s),(0===r.length||r.length-e0?I(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),i!==e&&r.ended&&B(this)),null!==t&&this.emit("data",t),t},O.prototype._read=function(e){S(this,new w("_read()"))},O.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,o("pipe count=%d opts=%j",i.pipesCount,t);var s=t&&!1===t.end||e===process.stdout||e===process.stderr?y:a;function a(){o("onend"),e.end()}i.endEmitted?process.nextTick(s):r.once("end",s),e.on("unpipe",function t(s,c){o("onunpipe"),s===r&&c&&!1===c.hasUnpiped&&(c.hasUnpiped=!0,o("cleanup"),e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("drain",u),e.removeListener("error",h),e.removeListener("unpipe",t),r.removeListener("end",a),r.removeListener("end",y),r.removeListener("data",f),l=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u())});var u=function(){var e=r._readableState;o("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&c(r,"data")&&(e.flowing=!0,C(r))};e.on("drain",u);var l=!1;function f(t){o("ondata");var s=e.write(t);o("dest.write",s),!1===s&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==q(i.pipes,e))&&!l&&(o("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function h(t){o("onerror",t),y(),e.removeListener("error",h),0===c(e,"error")&&S(e,t)}function d(){e.removeListener("finish",p),y()}function p(){o("onfinish"),e.removeListener("close",d),y()}function y(){o("unpipe"),r.unpipe(e)}return r.on("data",f),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",h),e.once("close",d),e.once("finish",p),e.emit("pipe",r),i.flowing||(o("pipe resume"),r.resume()),e},O.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var i=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s0,!1!==i.flowing&&this.resume()):"readable"!==e||i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,o("on readable",i.length,i.reading),i.length?R(this):i.reading||process.nextTick(N,this)),r},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(e,t){var r=l.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(L,this),r},O.prototype.removeAllListeners=function(e){var t=l.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&process.nextTick(L,this),t},O.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(D,this,e))),e.paused=!1,this},O.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;for(var s in e.on("end",function(){if(o("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(s){o("wrapped data"),r.decoder&&(s=r.decoder.write(s)),(!r.objectMode||null!=s)&&(r.objectMode||s&&s.length)&&(t.push(s)||(i=!0,e.pause()))}),e)void 0===this[s]&&"function"==typeof e[s]&&(this[s]=function(t){return function(){return e[t].apply(e,arguments)}}(s));for(var a=0;a{"use strict";e.exports=f;var i=r(7638).q,o=i.ERR_METHOD_NOT_IMPLEMENTED,s=i.ERR_MULTIPLE_CALLBACK,a=i.ERR_TRANSFORM_ALREADY_TRANSFORMING,u=i.ERR_TRANSFORM_WITH_LENGTH_0,c=r(673);function l(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(null===i)return this.emit("error",new s);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),i(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length{"use strict";function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){(function(e,t,r){var i=e.entry;for(e.entry=null;i;){var o=i.callback;t.pendingcb--,o(void 0),i=i.next}t.corkedRequestsFree.next=e})(t,e)}}e.exports=O,O.WritableState=E;var o,s,a={deprecate:r(4484)},u=r(1829),c=r(4300).Buffer,l=global.Uint8Array||function(){},f=r(3390),h=r(1111).getHighWaterMark,d=r(7638).q,p=d.ERR_INVALID_ARG_TYPE,y=d.ERR_METHOD_NOT_IMPLEMENTED,g=d.ERR_MULTIPLE_CALLBACK,m=d.ERR_STREAM_CANNOT_PIPE,b=d.ERR_STREAM_DESTROYED,v=d.ERR_STREAM_NULL_VALUES,w=d.ERR_STREAM_WRITE_AFTER_END,_=d.ERR_UNKNOWN_ENCODING,S=f.errorOrDestroy;function x(){}function E(e,t,s){o=o||r(673),e=e||{},"boolean"!=typeof s&&(s=t instanceof o),this.objectMode=!!e.objectMode,s&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=h(this,e,"writableHighWaterMark",s),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){(function(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if("function"!=typeof o)throw new g;if(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,t)--r.pendingcb,i?(process.nextTick(o,t),process.nextTick(P,e,r),e._writableState.errorEmitted=!0,S(e,t)):(o(t),e._writableState.errorEmitted=!0,S(e,t),P(e,r));else{var s=R(r)||e.destroyed;s||r.corked||r.bufferProcessing||!r.bufferedRequest||T(e,r),i?process.nextTick(k,e,r,s,o):k(e,r,s,o)}})(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function O(e){var t=this instanceof(o=o||r(673));if(!t&&!s.call(O,this))return new O(e);this._writableState=new E(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function j(e,t,r,i,o,s,a){t.writelen=i,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new b("write")):r?e._writev(o,t.onwrite):e._write(o,s,t.onwrite),t.sync=!1}function k(e,t,r,i){r||0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain")),t.pendingcb--,i(),P(e,t)}function T(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var o=Array(t.bufferedRequestCount),s=t.corkedRequestsFree;s.entry=r;for(var a=0,u=!0;r;)o[a]=r,r.isBuf||(u=!1),r=r.next,a+=1;o.allBuffers=u,j(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,l=r.encoding,f=r.callback,h=t.objectMode?1:c.length;if(j(e,t,!1,h,c,l,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function R(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function M(e,t){e._final(function(r){t.pendingcb--,r&&S(e,r),t.prefinished=!0,e.emit("prefinish"),P(e,t)})}function P(e,t){var r=R(t);if(r&&(t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,process.nextTick(M,e,t))),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return r}r(1828)(O,u),E.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(E.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(O,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===O&&e&&e._writableState instanceof E}})):s=function(e){return e instanceof this},O.prototype.pipe=function(){S(this,new m)},O.prototype.write=function(e,t,r){var i,o,s,a,u,f,h,d=this._writableState,y=!1,g=!d.objectMode&&(i=e,c.isBuffer(i)||i instanceof l);return g&&!c.isBuffer(e)&&(o=e,e=c.from(o)),("function"==typeof t&&(r=t,t=null),g?t="buffer":t||(t=d.defaultEncoding),"function"!=typeof r&&(r=x),d.ending)?(s=r,S(this,a=new w),process.nextTick(s,a)):(g||(u=e,f=r,null===u?h=new v:"string"==typeof u||d.objectMode||(h=new p("chunk",["string","Buffer"],u)),!h||(S(this,h),process.nextTick(f,h),0)))&&(d.pendingcb++,y=function(e,t,r,i,o,s){if(!r){var a,u,l=(a=i,u=o,t.objectMode||!1===t.decodeStrings||"string"!=typeof a||(a=c.from(a,u)),a);i!==l&&(r=!0,o="buffer",i=l)}var f=t.objectMode?1:i.length;t.length+=f;var h=t.length-1))throw new _(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(e,t,r){r(new y("_write()"))},O.prototype._writev=null,O.prototype.end=function(e,t,r){var i,o=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),o.corked&&(o.corked=1,this.uncork()),o.ending||(i=r,o.ending=!0,P(this,o),i&&(o.finished?process.nextTick(i):this.once("finish",i)),o.ended=!0,this.writable=!1),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),O.prototype.destroy=f.destroy,O.prototype._undestroy=f.undestroy,O.prototype._destroy=function(e,t){t(e)}},8187:(e,t,r)=>{"use strict";function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o,s=r(2426),a=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),f=Symbol("lastPromise"),h=Symbol("handlePromise"),d=Symbol("stream");function p(e,t){return{value:e,done:t}}function y(e){var t=e[a];if(null!==t){var r=e[d].read();null!==r&&(e[f]=null,e[a]=null,e[u]=null,t(p(r,!1)))}}function g(e){process.nextTick(y,e)}var m=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((i(o={get stream(){return this[d]},next:function(){var e,t,r=this,i=this[c];if(null!==i)return Promise.reject(i);if(this[l])return Promise.resolve(p(void 0,!0));if(this[d].destroyed)return new Promise(function(e,t){process.nextTick(function(){r[c]?t(r[c]):e(p(void 0,!0))})});var o=this[f];if(o)t=new Promise((e=this,function(t,r){o.then(function(){if(e[l]){t(p(void 0,!0));return}e[h](t,r)},r)}));else{var s=this[d].read();if(null!==s)return Promise.resolve(p(s,!1));t=new Promise(this[h])}return this[f]=t,t}},Symbol.asyncIterator,function(){return this}),i(o,"return",function(){var e=this;return new Promise(function(t,r){e[d].destroy(null,function(e){if(e){r(e);return}t(p(void 0,!0))})})}),o),m);e.exports=function(e){var t,r=Object.create(b,(i(t={},d,{value:e,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,c,{value:null,writable:!0}),i(t,l,{value:e._readableState.endEmitted,writable:!0}),i(t,h,{value:function(e,t){var i=r[d].read();i?(r[f]=null,r[a]=null,r[u]=null,e(p(i,!1))):(r[a]=e,r[u]=t)},writable:!0}),t));return r[f]=null,s(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];null!==t&&(r[f]=null,r[a]=null,r[u]=null,t(e)),r[c]=e;return}var i=r[a];null!==i&&(r[f]=null,r[a]=null,r[u]=null,i(p(void 0,!0))),r[l]=!0}),e.on("readable",g.bind(null,r)),r}},4506:(e,t,r)=>{"use strict";function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function o(e,t){for(var r=0;r0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return s.alloc(0);for(var t,r,i=s.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,r=a,s.prototype.copy.call(t,i,r),a+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var r;return eo.length?o.length:e;if(s===o.length?i+=o:i+=o.slice(0,e),0==(e-=s)){s===o.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=o.slice(s));break}++r}return this.length-=r,i}},{key:"_getBuffer",value:function(e){var t=s.allocUnsafe(e),r=this.head,i=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,a),0==(e-=a)){a===o.length?(++i,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(a));break}++i}return this.length-=i,t}},{key:u,value:function(e,t){return a(this,function(e){for(var t=1;t{"use strict";function t(e,t){i(e,t),r(e)}function r(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,o){var s=this,a=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return a||u?o?o(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(i,this,e)):process.nextTick(i,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!o&&e?s._writableState?s._writableState.errorEmitted?process.nextTick(r,s):(s._writableState.errorEmitted=!0,process.nextTick(t,s,e)):process.nextTick(t,s,e):o?(process.nextTick(r,s),o(e)):process.nextTick(r,s)})),this},undestroy:function(){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)},errorOrDestroy:function(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}}},2426:(e,t,r)=>{"use strict";var i=r(7638).q.ERR_STREAM_PREMATURE_CLOSE;function o(){}e.exports=function e(t,r,s){if("function"==typeof r)return e(t,null,r);r||(r={}),a=s||o,u=!1,s=function(){if(!u){u=!0;for(var e=arguments.length,t=Array(e),r=0;r{"use strict";function i(e,t,r,i,o,s,a){try{var u=e[s](a),c=u.value}catch(e){r(e);return}u.done?t(c):Promise.resolve(c).then(i,o)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}var s=r(7638).q.ERR_INVALID_ARG_TYPE;e.exports=function(e,t,r){if(t&&"function"==typeof t.next)a=t;else if(t&&t[Symbol.asyncIterator])a=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])a=t[Symbol.iterator]();else throw new s("iterable",["Iterable"],t);var a,u=new e(function(e){for(var t=1;t{"use strict";var i,o=r(7638).q,s=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function u(e){if(e)throw e}function c(e){e()}function l(e,t){return e.pipe(t)}e.exports=function(){for(var e,t,o=arguments.length,f=Array(o),h=0;h0},function(e){if(e)return s(e);h=!0,s()}),y=!1,function(t){if(!h&&!y){if(y=!0,e.setHeader&&"function"==typeof e.abort)return e.abort();if("function"==typeof e.destroy)return e.destroy();s(t||new a("pipe"))}}});return f.reduce(l)}},1111:(e,t,r)=>{"use strict";var i=r(7638).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,o){var s=null!=t.highWaterMark?t.highWaterMark:o?t[r]:null;if(null!=s){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var a=o?r:"highWaterMark";throw new i(a,s)}return Math.floor(s)}return e.objectMode?16:16384}}},1829:(e,t,r)=>{e.exports=r(2781)},8118:(e,t,r)=>{var i=r(2781);"disable"===process.env.READABLE_STREAM&&i?(e.exports=i.Readable,Object.assign(e.exports,i),e.exports.Stream=i):((t=e.exports=r(5006)).Stream=i||t,t.Readable=t,t.Writable=r(8719),t.Duplex=r(673),t.Transform=r(8597),t.PassThrough=r(4343),t.finished=r(2426),t.pipeline=r(2970))},3268:e=>{"use strict";function t(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}e.exports=function(e){if((e=e||{}).circles)return function(e){var r=[],i=[];return e.proto?function e(s){if("object"!=typeof s||null===s)return s;if(s instanceof Date)return new Date(s);if(Array.isArray(s))return o(s,e);if(s instanceof Map)return new Map(o(Array.from(s),e));if(s instanceof Set)return new Set(o(Array.from(s),e));var a={};for(var u in r.push(s),i.push(a),s){var c=s[u];if("object"!=typeof c||null===c)a[u]=c;else if(c instanceof Date)a[u]=new Date(c);else if(c instanceof Map)a[u]=new Map(o(Array.from(c),e));else if(c instanceof Set)a[u]=new Set(o(Array.from(c),e));else if(ArrayBuffer.isView(c))a[u]=t(c);else{var l=r.indexOf(c);-1!==l?a[u]=i[l]:a[u]=e(c)}}return r.pop(),i.pop(),a}:function e(s){if("object"!=typeof s||null===s)return s;if(s instanceof Date)return new Date(s);if(Array.isArray(s))return o(s,e);if(s instanceof Map)return new Map(o(Array.from(s),e));if(s instanceof Set)return new Set(o(Array.from(s),e));var a={};for(var u in r.push(s),i.push(a),s)if(!1!==Object.hasOwnProperty.call(s,u)){var c=s[u];if("object"!=typeof c||null===c)a[u]=c;else if(c instanceof Date)a[u]=new Date(c);else if(c instanceof Map)a[u]=new Map(o(Array.from(c),e));else if(c instanceof Set)a[u]=new Set(o(Array.from(c),e));else if(ArrayBuffer.isView(c))a[u]=t(c);else{var l=r.indexOf(c);-1!==l?a[u]=i[l]:a[u]=e(c)}}return r.pop(),i.pop(),a};function o(e,o){for(var s=Object.keys(e),a=Array(s.length),u=0;u{/*! safe-buffer. MIT License. Feross Aboukhadijeh */var i=r(4300),o=i.Buffer;function s(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return o(e,t,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=i:(s(i,t),t.Buffer=a),a.prototype=Object.create(o.prototype),s(o,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return o(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var i=o(e);return void 0!==t?"string"==typeof r?i.fill(t,r):i.fill(t):i.fill(0),i},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i.SlowBuffer(e)}},9316:e=>{"use strict";let t="undefined"!=typeof Buffer,r=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,i=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function o(e,o,a){null==a&&(null!==o&&"object"==typeof o?(a=o,o=void 0):a={});let u=a.protoAction||"error",c=a.constructorAction||"error";t&&Buffer.isBuffer(e)&&(e=e.toString()),e&&65279===e.charCodeAt(0)&&(e=e.slice(1));let l=JSON.parse(e,o);if("ignore"===u&&"ignore"===c||null===l||"object"!=typeof l)return l;if("ignore"!==u&&"ignore"!==c){if(!1===r.test(e)&&!1===i.test(e))return l}else if("ignore"!==u&&"ignore"===c){if(!1===r.test(e))return l}else if(!1===i.test(e))return l;return s(l,{protoAction:u,constructorAction:c}),l}function s(e,{protoAction:t="error",constructorAction:r="error"}={}){let i=[e];for(;i.length;){let e=i;for(let o of(i=[],e)){if("ignore"!==t&&Object.prototype.hasOwnProperty.call(o,"__proto__")){if("error"===t)throw SyntaxError("Object contains forbidden prototype property");delete o.__proto__}if("ignore"!==r&&Object.prototype.hasOwnProperty.call(o,"constructor")&&Object.prototype.hasOwnProperty.call(o.constructor,"prototype")){if("error"===r)throw SyntaxError("Object contains forbidden prototype property");delete o.constructor}for(let e in o){let t=o[e];t&&"object"==typeof t&&i.push(o[e])}}}}e.exports={parse:o,scan:s,safeParse:function(e,t){try{return o(e,t)}catch(e){return null}}}},4656:(e,t,r)=>{"use strict";let i=r(7147),o=r(2361),s=r(8306),a=r(3837).inherits,u=r(160);function c(e,t){function r(r,i){if(r){t._reopening=!1,t._writing=!1,t._opening=!1,t.sync?process.nextTick(()=>{t.listenerCount("error")>0&&t.emit("error",r)}):t.emit("error",r);return}if(t.fd=i,t.file=e,t._reopening=!1,t._opening=!1,t._writing=!1,t.sync?process.nextTick(()=>t.emit("ready")):t.emit("ready"),t._reopening)return;let o=t._buf.length;o>0&&o>t.minLength&&!t.destroyed&&h(t)}if(t._opening=!0,t._writing=!0,t._asyncDrainScheduled=!1,t.sync)try{let t=i.openSync(e,"a");r(null,t)}catch(e){throw r(e),e}else i.open(e,"a",r)}function l(e){if(!(this instanceof l))return new l(e);let{fd:t,dest:r,minLength:o,sync:s}=e||{};if(t=t||r,this._buf="",this.fd=-1,this._writing=!1,this._writingBuf="",this._ending=!1,this._reopening=!1,this._asyncDrainScheduled=!1,this.file=null,this.destroyed=!1,this.sync=s||!1,this.minLength=o||0,"number"==typeof t)this.fd=t,process.nextTick(()=>this.emit("ready"));else if("string"==typeof t)c(t,this);else throw Error("SonicBoom supports only file descriptors and files");this.release=(e,t)=>{if(e){if("EAGAIN"===e.code){if(this.sync)try{u(100),this.release(void 0,0)}catch(e){this.release(e)}else setTimeout(()=>{i.write(this.fd,this._writingBuf,"utf8",this.release)},100)}else this._buf=this._writingBuf+this._buf,this._writingBuf="",this._writing=!1,this.emit("error",e);return}if(this._writingBuf.length!==t){if(this._writingBuf=this._writingBuf.slice(t),this.sync)try{do t=i.writeSync(this.fd,this._writingBuf,"utf8"),this._writingBuf=this._writingBuf.slice(t);while(0!==this._writingBuf.length)}catch(e){this.release(e);return}else{i.write(this.fd,this._writingBuf,"utf8",this.release);return}}if(this._writingBuf="",this.destroyed)return;let r=this._buf.length;this._reopening?(this._writing=!1,this._reopening=!1,this.reopen()):r>0&&r>this.minLength?h(this):this._ending?r>0?h(this):(this._writing=!1,d(this)):(this._writing=!1,this.sync?this._asyncDrainScheduled||(this._asyncDrainScheduled=!0,process.nextTick(f,this)):this.emit("drain"))},this.on("newListener",function(e){"drain"===e&&(this._asyncDrainScheduled=!1)})}function f(e){let t=e.listenerCount("drain")>0;t&&(e._asyncDrainScheduled=!1,e.emit("drain"))}function h(e){e._writing=!0;let t=e._buf,r=e.release;if(t.length>16777216?(t=t.slice(0,16777216),e._buf=e._buf.slice(16777216)):e._buf="",s(t),e._writingBuf=t,e.sync)try{let o=i.writeSync(e.fd,t,"utf8");r(null,o)}catch(e){r(e)}else i.write(e.fd,t,"utf8",r)}function d(e){if(-1===e.fd){e.once("ready",d.bind(null,e));return}i.close(e.fd,t=>{if(t){e.emit("error",t);return}e._ending&&!e._writing&&e.emit("finish"),e.emit("close")}),e.destroyed=!0,e._buf=""}a(l,o),l.prototype.write=function(e){if(this.destroyed)throw Error("SonicBoom destroyed");this._buf+=e;let t=this._buf.length;return!this._writing&&t>this.minLength&&h(this),t<16384},l.prototype.flush=function(){if(this.destroyed)throw Error("SonicBoom destroyed");this._writing||this.minLength<=0||h(this)},l.prototype.reopen=function(e){if(this.destroyed)throw Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.reopen(e)});return}if(this._ending)return;if(!this.file)throw Error("Unable to reopen a file descriptor, you must pass a file to SonicBoom");if(this._reopening=!0,this._writing)return;let t=this.fd;this.once("ready",()=>{t!==this.fd&&i.close(t,e=>{if(e)return this.emit("error",e)})}),c(e||this.file,this)},l.prototype.end=function(){if(this.destroyed)throw Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.end()});return}if(!this._ending){if(this._ending=!0,!this._writing&&this._buf.length>0&&this.fd>=0){h(this);return}this._writing||d(this)}},l.prototype.flushSync=function(){if(this.destroyed)throw Error("SonicBoom destroyed");if(this.fd<0)throw Error("sonic boom is not ready yet");for(;this._buf.length>0;)try{i.writeSync(this.fd,this._buf,"utf8"),this._buf=""}catch(e){if("EAGAIN"!==e.code)throw e;u(100)}},l.prototype.destroy=function(){this.destroyed||d(this)},e.exports=l},5443:(e,t,r)=>{"use strict";let{Transform:i}=r(2781),{StringDecoder:o}=r(1576),s=Symbol("last"),a=Symbol("decoder");function u(e,t,r){let i;if(this.overflow){let t=this[a].write(e);if(1===(i=t.split(this.matcher)).length)return r();i.shift(),this.overflow=!1}else this[s]+=this[a].write(e),i=this[s].split(this.matcher);this[s]=i.pop();for(let e=0;ethis.maxLength,this.overflow&&!this.skipOverflow){r(Error("maximum buffer reached"));return}r()}function c(e){if(this[s]+=this[a].end(),this[s])try{l(this,this.mapper(this[s]))}catch(t){return e(t)}e()}function l(e,t){void 0!==t&&e.push(t)}function f(e){return e}e.exports=function(e,t,r){switch(e=e||/\r?\n/,t=t||f,r=r||{},arguments.length){case 1:"function"==typeof e?(t=e,e=/\r?\n/):"object"!=typeof e||e instanceof RegExp||(r=e,e=/\r?\n/);break;case 2:"function"==typeof e?(r=t,t=e,e=/\r?\n/):"object"==typeof t&&(r=t,t=f)}(r=Object.assign({},r)).autoDestroy=!0,r.transform=u,r.flush=c,r.readableObjectMode=!0;let l=new i(r);return l[s]="",l[a]=new o("utf8"),l.matcher=e,l.mapper=t,l.maxLength=r.maxLength,l.skipOverflow=r.skipOverflow||!1,l.overflow=!1,l._destroy=function(e,t){this._writableState.errorEmitted=!1,t(e)},l}},6151:e=>{e.exports=function(e){var t=e._readableState;return t?t.objectMode||"number"==typeof e._duplexState?e.read():e.read(t.buffer.length?t.buffer.head?t.buffer.head.data.length:t.buffer[0].length:t.length):null}},7361:(e,t,r)=>{"use strict";var i=r(7233).Buffer,o=i.isEncoding||function(e){switch((e=""+e)&&e.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 s(e){var t;switch(this.encoding=function(e){var t=function(e){var t;if(!e)return"utf8";for(;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(i.isEncoding===o||!o(e)))throw Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=l,t=4;break;case"utf8":this.fillLast=u,t=4;break;case"base64":this.text=f,this.end=h,t=3;break;default:this.write=d,this.end=p;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function u(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}(this,e,0);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function c(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function f(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.s=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0?(o>0&&(e.lastNeed=o-1),o):--i=0?(o>0&&(e.lastNeed=o-2),o):--i=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},4484:(e,t,r)=>{e.exports=r(3837).deprecate},4447:e=>{e.exports=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw TypeError("need wrapper function");return Object.keys(t).forEach(function(e){i[e]=t[e]}),i;function i(){for(var e=Array(arguments.length),r=0;r{"use strict";var i=r(3211),o=r(5984),s=TypeError;e.exports=function(e){if(i(e))return e;throw s(o(e)+" is not a function")}},8971:(e,t,r)=>{"use strict";var i=r(8471).has;e.exports=function(e){return i(e),e}},9371:(e,t,r)=>{"use strict";var i=r(3211),o=String,s=TypeError;e.exports=function(e){if("object"==typeof e||i(e))return e;throw s("Can't set "+o(e)+" as a prototype")}},5650:(e,t,r)=>{"use strict";var i=r(8509).has;e.exports=function(e){return i(e),e}},4599:(e,t,r)=>{"use strict";var i=r(3568),o=TypeError;e.exports=function(e,t){if(i(t,e))return e;throw o("Incorrect invocation")}},9084:(e,t,r)=>{"use strict";var i=r(4615),o=String,s=TypeError;e.exports=function(e){if(i(e))return e;throw s(o(e)+" is not an object")}},8154:(e,t,r)=>{"use strict";var i=r(9308),o=r(6771),s=r(6206),a=function(e){return function(t,r,a){var u,c=i(t),l=s(c),f=o(a,l);if(e&&r!=r){for(;l>f;)if((u=c[f++])!=u)return!0}else for(;l>f;f++)if((e||f in c)&&c[f]===r)return e||f||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},9200:(e,t,r)=>{"use strict";var i=r(170),o=r(9909),s=TypeError,a=Object.getOwnPropertyDescriptor,u=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=u?function(e,t){if(o(e)&&!a(e,"length").writable)throw s("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},2309:(e,t,r)=>{"use strict";var i=r(7015),o=r(8107),s=r(3869);e.exports=function(e,t,r,a){try{var u=s(e,"return");if(u)return o("Promise").resolve(i(u,e)).then(function(){t(r)},function(e){a(e)})}catch(e){return a(e)}t(r)}},9137:(e,t,r)=>{"use strict";var i=r(7015),o=r(7648),s=r(9084),a=r(9530),u=r(2927),c=r(9102),l=r(6788),f=r(4387),h=r(8107),d=r(3869),p=r(4999),y=r(5610),g=r(1222),m=h("Promise"),b=l("toStringTag"),v="AsyncIteratorHelper",w="WrapForValidAsyncIterator",_=f.set,S=function(e){var t=!e,r=f.getterFor(e?w:v),u=function(e){var i=o(function(){return r(e)}),s=i.error,a=i.value;return s||t&&a.done?{exit:!0,value:s?m.reject(a):m.resolve(y(void 0,!0))}:{exit:!1,value:a}};return c(a(p),{next:function(){var e=u(this),t=e.value;if(e.exit)return t;var r=o(function(){return s(t.nextHandler(m))}),i=r.error,a=r.value;return i&&(t.done=!0),i?m.reject(a):m.resolve(a)},return:function(){var t,r,a=u(this),c=a.value;if(a.exit)return c;c.done=!0;var l=c.iterator,f=o(function(){if(c.inner)try{g(c.inner.iterator,"normal")}catch(e){return g(l,"throw",e)}return d(l,"return")});return(t=r=f.value,f.error)?m.reject(r):void 0===t?m.resolve(y(void 0,!0)):(r=(f=o(function(){return i(t,l)})).value,f.error)?m.reject(r):e?m.resolve(r):m.resolve(r).then(function(e){return s(e),y(void 0,!0)})}})},x=S(!0),E=S(!1);u(E,b,"Async Iterator Helper"),e.exports=function(e,t){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?w:v,i.nextHandler=e,i.counter=0,i.done=!1,_(this,i)};return r.prototype=t?x:E,r}},7663:(e,t,r)=>{"use strict";var i=r(7015),o=r(5966),s=r(9084),a=r(4615),u=r(2048),c=r(8107),l=r(2422),f=r(2309),h=function(e){var t=0===e,r=1===e,h=2===e,d=3===e;return function(e,p,y){s(e);var g=void 0!==p;(g||!t)&&o(p);var m=l(e),b=c("Promise"),v=m.iterator,w=m.next,_=0;return new b(function(e,o){var c=function(e){f(v,o,e,o)},l=function(){try{if(g)try{u(_)}catch(e){c(e)}b.resolve(s(i(w,v))).then(function(i){try{if(s(i).done)t?(y.length=_,e(y)):e(!d&&(h||void 0));else{var u=i.value;try{if(g){var m=p(u,_),w=function(i){if(r)l();else if(h)i?l():f(v,e,!1,o);else if(t)try{y[_++]=i,l()}catch(e){c(e)}else i?f(v,e,d||u,o):l()};a(m)?b.resolve(m).then(w,c):w(m)}else y[_++]=u,l()}catch(e){c(e)}}}catch(e){o(e)}},o)}catch(e){o(e)}};l()})}};e.exports={toArray:h(0),forEach:h(1),every:h(2),some:h(3),find:h(4)}},4094:(e,t,r)=>{"use strict";var i=r(7015),o=r(5966),s=r(9084),a=r(4615),u=r(2422),c=r(9137),l=r(5610),f=r(2309),h=c(function(e){var t=this,r=t.iterator,o=t.mapper;return new e(function(u,c){var h=function(e){t.done=!0,c(e)},d=function(e){f(r,h,e,h)};e.resolve(s(i(t.next,r))).then(function(r){try{if(s(r).done)t.done=!0,u(l(void 0,!0));else{var i=r.value;try{var c=o(i,t.counter++),f=function(e){u(l(e,!1))};a(c)?e.resolve(c).then(f,d):f(c)}catch(e){d(e)}}}catch(e){h(e)}},h)})});e.exports=function(e){return s(this),o(e),new h(u(this),{mapper:e})}},4999:(e,t,r)=>{"use strict";var i,o,s=r(9035),a=r(8727),u=r(3211),c=r(9530),l=r(1205),f=r(2973),h=r(6788),d=r(1593),p="USE_FUNCTION_CONSTRUCTOR",y=h("asyncIterator"),g=s.AsyncIterator,m=a.AsyncIteratorPrototype;if(m)i=m;else if(u(g))i=g.prototype;else if(a[p]||s[p])try{o=l(l(l(Function("return async function*(){}()")()))),l(o)===Object.prototype&&(i=o)}catch(e){}i?d&&(i=c(i)):i={},u(i[y])||f(i,y,function(){return this}),e.exports=i},839:(e,t,r)=>{"use strict";var i=r(9084),o=r(1222);e.exports=function(e,t,r,s){try{return s?t(i(r)[0],r[1]):t(r)}catch(t){o(e,"throw",t)}}},6385:(e,t,r)=>{"use strict";var i=r(813),o=i({}.toString),s=i("".slice);e.exports=function(e){return s(o(e),8,-1)}},2975:(e,t,r)=>{"use strict";var i=r(3377),o=r(3211),s=r(6385),a=r(6788)("toStringTag"),u=Object,c="Arguments"===s(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(e){}};e.exports=i?s:function(e){var t,r,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=l(t=u(e),a))?r:c?s(t):"Object"===(i=s(t))&&o(t.callee)?"Arguments":i}},2586:(e,t,r)=>{"use strict";var i=r(8228),o=r(472),s=r(8722),a=r(5088);e.exports=function(e,t,r){for(var u=o(t),c=a.f,l=s.f,f=0;f{"use strict";var i=r(7858);e.exports=!i(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},5610:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},2927:(e,t,r)=>{"use strict";var i=r(170),o=r(5088),s=r(7306);e.exports=i?function(e,t,r){return o.f(e,t,s(1,r))}:function(e,t,r){return e[t]=r,e}},7306:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},8186:(e,t,r)=>{"use strict";var i=r(7793),o=r(5088),s=r(7306);e.exports=function(e,t,r){var a=i(t);a in e?o.f(e,a,s(0,r)):e[a]=r}},2973:(e,t,r)=>{"use strict";var i=r(3211),o=r(5088),s=r(728),a=r(6423);e.exports=function(e,t,r,u){u||(u={});var c=u.enumerable,l=void 0!==u.name?u.name:t;if(i(r)&&s(r,l,u),u.global)c?e[t]=r:a(t,r);else{try{u.unsafe?e[t]&&(c=!0):delete e[t]}catch(e){}c?e[t]=r:o.f(e,t,{value:r,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return e}},9102:(e,t,r)=>{"use strict";var i=r(2973);e.exports=function(e,t,r){for(var o in t)i(e,o,t[o],r);return e}},6423:(e,t,r)=>{"use strict";var i=r(9035),o=Object.defineProperty;e.exports=function(e,t){try{o(i,e,{value:t,configurable:!0,writable:!0})}catch(r){i[e]=t}return t}},170:(e,t,r)=>{"use strict";var i=r(7858);e.exports=!i(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},5318:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports={all:t,IS_HTMLDDA:void 0===t&&void 0!==t}},8887:(e,t,r)=>{"use strict";var i=r(9035),o=r(4615),s=i.document,a=o(s)&&o(s.createElement);e.exports=function(e){return a?s.createElement(e):{}}},2048:e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},4466:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},6654:(e,t,r)=>{"use strict";var i,o,s=r(9035),a=r(4466),u=s.process,c=s.Deno,l=u&&u.versions||c&&c.version,f=l&&l.v8;f&&(o=(i=f.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!o&&a&&(!(i=a.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/))&&(o=+i[1]),e.exports=o},5980:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6527:(e,t,r)=>{"use strict";var i=r(813),o=Error,s=i("".replace),a=String(o("zxcasd").stack),u=/\n\s*at [^:]*:[^\n]*/,c=u.test(a);e.exports=function(e,t){if(c&&"string"==typeof e&&!o.prepareStackTrace)for(;t--;)e=s(e,u,"");return e}},8825:(e,t,r)=>{"use strict";var i=r(2927),o=r(6527),s=r(6344),a=Error.captureStackTrace;e.exports=function(e,t,r,u){s&&(a?a(e,t):i(e,"stack",o(r,u)))}},6344:(e,t,r)=>{"use strict";var i=r(7858),o=r(7306);e.exports=!i(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",o(1,7)),7!==e.stack)})},6486:(e,t,r)=>{"use strict";var i=r(9035),o=r(8722).f,s=r(2927),a=r(2973),u=r(6423),c=r(2586),l=r(9963);e.exports=function(e,t){var r,f,h,d,p,y=e.target,g=e.global,m=e.stat;if(r=g?i:m?i[y]||u(y,{}):(i[y]||{}).prototype)for(f in t){if(d=t[f],h=e.dontCallGetSet?(p=o(r,f))&&p.value:r[f],!l(g?f:y+(m?".":"#")+f,e.forced)&&void 0!==h){if(typeof d==typeof h)continue;c(d,h)}(e.sham||h&&h.sham)&&s(d,"sham",!0),a(r,f,d,e)}}},7858:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},7040:(e,t,r)=>{"use strict";var i=r(5259),o=Function.prototype,s=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(i?a.bind(s):function(){return a.apply(s,arguments)})},2942:(e,t,r)=>{"use strict";var i=r(5775),o=r(5966),s=r(5259),a=i(i.bind);e.exports=function(e,t){return o(e),void 0===t?e:s?a(e,t):function(){return e.apply(t,arguments)}}},5259:(e,t,r)=>{"use strict";var i=r(7858);e.exports=!i(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},7015:(e,t,r)=>{"use strict";var i=r(5259),o=Function.prototype.call;e.exports=i?o.bind(o):function(){return o.apply(o,arguments)}},1751:(e,t,r)=>{"use strict";var i=r(170),o=r(8228),s=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,u=o(s,"name"),c=u&&(!i||i&&a(s,"name").configurable);e.exports={EXISTS:u,PROPER:u&&"something"===(function(){}).name,CONFIGURABLE:c}},9444:(e,t,r)=>{"use strict";var i=r(813),o=r(5966);e.exports=function(e,t,r){try{return i(o(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},5775:(e,t,r)=>{"use strict";var i=r(6385),o=r(813);e.exports=function(e){if("Function"===i(e))return o(e)}},813:(e,t,r)=>{"use strict";var i=r(5259),o=Function.prototype,s=o.call,a=i&&o.bind.bind(s,s);e.exports=i?a:function(e){return function(){return s.apply(e,arguments)}}},8107:(e,t,r)=>{"use strict";var i=r(9035),o=r(3211);e.exports=function(e,t){var r;return arguments.length<2?o(r=i[e])?r:void 0:i[e]&&i[e][t]}},2422:e=>{"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},1624:(e,t,r)=>{"use strict";var i=r(2975),o=r(3869),s=r(6024),a=r(571),u=r(6788)("iterator");e.exports=function(e){if(!s(e))return o(e,u)||o(e,"@@iterator")||a[i(e)]}},7096:(e,t,r)=>{"use strict";var i=r(7015),o=r(5966),s=r(9084),a=r(5984),u=r(1624),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?u(e):t;if(o(r))return s(i(r,e));throw c(a(e)+" is not iterable")}},3869:(e,t,r)=>{"use strict";var i=r(5966),o=r(6024);e.exports=function(e,t){var r=e[t];return o(r)?void 0:i(r)}},9950:(e,t,r)=>{"use strict";var i=r(5966),o=r(9084),s=r(7015),a=r(898),u=r(2422),c="Invalid size",l=RangeError,f=TypeError,h=Math.max,d=function(e,t,r,i){this.set=e,this.size=t,this.has=r,this.keys=i};d.prototype={getIterator:function(){return u(o(s(this.keys,this.set)))},includes:function(e){return s(this.has,this.set,e)}},e.exports=function(e){o(e);var t=+e.size;if(t!=t)throw f(c);var r=a(t);if(r<0)throw l(c);return new d(e,h(r,0),i(e.has),i(e.keys))}},9035:function(e){"use strict";var t=function(e){return e&&e.Math===Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof global&&global)||function(){return this}()||this||Function("return this")()},8228:(e,t,r)=>{"use strict";var i=r(813),o=r(9842),s=i({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return s(o(e),t)}},3642:e=>{"use strict";e.exports={}},8232:(e,t,r)=>{"use strict";var i=r(8107);e.exports=i("document","documentElement")},5199:(e,t,r)=>{"use strict";var i=r(170),o=r(7858),s=r(8887);e.exports=!i&&!o(function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a})},3129:(e,t,r)=>{"use strict";var i=r(813),o=r(7858),s=r(6385),a=Object,u=i("".split);e.exports=o(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"===s(e)?u(e,""):a(e)}:a},758:(e,t,r)=>{"use strict";var i=r(3211),o=r(4615),s=r(7653);e.exports=function(e,t,r){var a,u;return s&&i(a=t.constructor)&&a!==r&&o(u=a.prototype)&&u!==r.prototype&&s(e,u),e}},167:(e,t,r)=>{"use strict";var i=r(813),o=r(3211),s=r(8727),a=i(Function.toString);o(s.inspectSource)||(s.inspectSource=function(e){return a(e)}),e.exports=s.inspectSource},1633:(e,t,r)=>{"use strict";var i=r(4615),o=r(2927);e.exports=function(e,t){i(t)&&"cause"in t&&o(e,"cause",t.cause)}},4387:(e,t,r)=>{"use strict";var i,o,s,a=r(2157),u=r(9035),c=r(4615),l=r(2927),f=r(8228),h=r(8727),d=r(4249),p=r(3642),y="Object already initialized",g=u.TypeError,m=u.WeakMap;if(a||h.state){var b=h.state||(h.state=new m);b.get=b.get,b.has=b.has,b.set=b.set,i=function(e,t){if(b.has(e))throw g(y);return t.facade=e,b.set(e,t),t},o=function(e){return b.get(e)||{}},s=function(e){return b.has(e)}}else{var v=d("state");p[v]=!0,i=function(e,t){if(f(e,v))throw g(y);return t.facade=e,l(e,v,t),t},o=function(e){return f(e,v)?e[v]:{}},s=function(e){return f(e,v)}}e.exports={set:i,get:o,has:s,enforce:function(e){return s(e)?o(e):i(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=o(t)).type!==e)throw g("Incompatible receiver, "+e+" required");return r}}}},702:(e,t,r)=>{"use strict";var i=r(6788),o=r(571),s=i("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[s]===e)}},9909:(e,t,r)=>{"use strict";var i=r(6385);e.exports=Array.isArray||function(e){return"Array"===i(e)}},3211:(e,t,r)=>{"use strict";var i=r(5318),o=i.all;e.exports=i.IS_HTMLDDA?function(e){return"function"==typeof e||e===o}:function(e){return"function"==typeof e}},9963:(e,t,r)=>{"use strict";var i=r(7858),o=r(3211),s=/#|\.prototype\./,a=function(e,t){var r=c[u(e)];return r===f||r!==l&&(o(t)?i(t):!!t)},u=a.normalize=function(e){return String(e).replace(s,".").toLowerCase()},c=a.data={},l=a.NATIVE="N",f=a.POLYFILL="P";e.exports=a},9110:(e,t,r)=>{"use strict";var i=r(2975),o=r(8228),s=r(6024),a=r(6788),u=r(571),c=a("iterator"),l=Object;e.exports=function(e){if(s(e))return!1;var t=l(e);return void 0!==t[c]||"@@iterator"in t||o(u,i(t))}},6024:e=>{"use strict";e.exports=function(e){return null==e}},4615:(e,t,r)=>{"use strict";var i=r(3211),o=r(5318),s=o.all;e.exports=o.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:i(e)||e===s}:function(e){return"object"==typeof e?null!==e:i(e)}},1593:e=>{"use strict";e.exports=!1},5121:(e,t,r)=>{"use strict";var i=r(8107),o=r(3211),s=r(3568),a=r(1006),u=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return o(t)&&s(t.prototype,u(e))}},7305:(e,t,r)=>{"use strict";var i=r(7015);e.exports=function(e,t,r){for(var o,s,a=r?e:e.iterator,u=e.next;!(o=i(u,a)).done;)if(void 0!==(s=t(o.value)))return s}},2401:(e,t,r)=>{"use strict";var i=r(2942),o=r(7015),s=r(9084),a=r(5984),u=r(702),c=r(6206),l=r(3568),f=r(7096),h=r(1624),d=r(1222),p=TypeError,y=function(e,t){this.stopped=e,this.result=t},g=y.prototype;e.exports=function(e,t,r){var m,b,v,w,_,S,x,E=r&&r.that,O=!!(r&&r.AS_ENTRIES),j=!!(r&&r.IS_RECORD),k=!!(r&&r.IS_ITERATOR),T=!!(r&&r.INTERRUPTED),R=i(t,E),M=function(e){return m&&d(m,"normal",e),new y(!0,e)},P=function(e){return O?(s(e),T?R(e[0],e[1],M):R(e[0],e[1])):T?R(e,M):R(e)};if(j)m=e.iterator;else if(k)m=e;else{if(!(b=h(e)))throw p(a(e)+" is not iterable");if(u(b)){for(v=0,w=c(e);w>v;v++)if((_=P(e[v]))&&l(g,_))return _;return new y(!1)}m=f(e,b)}for(S=j?e.next:m.next;!(x=o(S,m)).done;){try{_=P(x.value)}catch(e){d(m,"throw",e)}if("object"==typeof _&&_&&l(g,_))return _}return new y(!1)}},1222:(e,t,r)=>{"use strict";var i=r(7015),o=r(9084),s=r(3869);e.exports=function(e,t,r){var a,u;o(e);try{if(!(a=s(e,"return"))){if("throw"===t)throw r;return r}a=i(a,e)}catch(e){u=!0,a=e}if("throw"===t)throw r;if(u)throw a;return o(a),r}},184:(e,t,r)=>{"use strict";var i=r(7015),o=r(9530),s=r(2927),a=r(9102),u=r(6788),c=r(4387),l=r(3869),f=r(2713).IteratorPrototype,h=r(5610),d=r(1222),p=u("toStringTag"),y="IteratorHelper",g="WrapForValidIterator",m=c.set,b=function(e){var t=c.getterFor(e?g:y);return a(o(f),{next:function(){var r=t(this);if(e)return r.nextHandler();try{var i=r.done?void 0:r.nextHandler();return h(i,r.done)}catch(e){throw r.done=!0,e}},return:function(){var r=t(this),o=r.iterator;if(r.done=!0,e){var s=l(o,"return");return s?i(s,o):h(void 0,!0)}if(r.inner)try{d(r.inner.iterator,"normal")}catch(e){return d(o,"throw",e)}return d(o,"normal"),h(void 0,!0)}})},v=b(!0),w=b(!1);s(w,p,"Iterator Helper"),e.exports=function(e,t){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?g:y,i.nextHandler=e,i.counter=0,i.done=!1,m(this,i)};return r.prototype=t?v:w,r}},4503:(e,t,r)=>{"use strict";var i=r(7015),o=r(5966),s=r(9084),a=r(2422),u=r(184),c=r(839),l=u(function(){var e=this.iterator,t=s(i(this.next,e));if(!(this.done=!!t.done))return c(e,this.mapper,[t.value,this.counter++],!0)});e.exports=function(e){return s(this),o(e),new l(a(this),{mapper:e})}},2713:(e,t,r)=>{"use strict";var i,o,s,a=r(7858),u=r(3211),c=r(4615),l=r(9530),f=r(1205),h=r(2973),d=r(6788),p=r(1593),y=d("iterator"),g=!1;[].keys&&("next"in(s=[].keys())?(o=f(f(s)))!==Object.prototype&&(i=o):g=!0),!c(i)||a(function(){var e={};return i[y].call(e)!==e})?i={}:p&&(i=l(i)),u(i[y])||h(i,y,function(){return this}),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:g}},571:e=>{"use strict";e.exports={}},6206:(e,t,r)=>{"use strict";var i=r(2686);e.exports=function(e){return i(e.length)}},728:(e,t,r)=>{"use strict";var i=r(813),o=r(7858),s=r(3211),a=r(8228),u=r(170),c=r(1751).CONFIGURABLE,l=r(167),f=r(4387),h=f.enforce,d=f.get,p=String,y=Object.defineProperty,g=i("".slice),m=i("".replace),b=i([].join),v=u&&!o(function(){return 8!==y(function(){},"length",{value:8}).length}),w=String(String).split("String"),_=e.exports=function(e,t,r){"Symbol("===g(p(t),0,7)&&(t="["+m(p(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||c&&e.name!==t)&&(u?y(e,"name",{value:t,configurable:!0}):e.name=t),v&&r&&a(r,"arity")&&e.length!==r.arity&&y(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?u&&y(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var i=h(e);return a(i,"source")||(i.source=b(w,"string"==typeof t?t:"")),e};Function.prototype.toString=_(function(){return s(this)&&d(this).source||l(this)},"toString")},8471:(e,t,r)=>{"use strict";var i=r(813),o=Map.prototype;e.exports={Map:Map,set:i(o.set),get:i(o.get),has:i(o.has),remove:i(o.delete),proto:o}},7921:(e,t,r)=>{"use strict";var i=r(813),o=r(7305),s=r(8471),a=s.Map,u=s.proto,c=i(u.forEach),l=i(u.entries),f=l(new a).next;e.exports=function(e,t,r){return r?o({iterator:l(e),next:f},function(e){return t(e[1],e[0])}):c(e,t)}},7308:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var i=+e;return(i>0?r:t)(i)}},8602:(e,t,r)=>{"use strict";var i=r(6650);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:i(e)}},9530:(e,t,r)=>{"use strict";var i,o=r(9084),s=r(4608),a=r(5980),u=r(3642),c=r(8232),l=r(8887),f=r(4249),h="prototype",d="script",p=f("IE_PROTO"),y=function(){},g=function(e){return"<"+d+">"+e+""},m=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=l("iframe");return t.style.display="none",c.appendChild(t),t.src=String("java"+d+":"),(e=t.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F},v=function(){try{i=new ActiveXObject("htmlfile")}catch(e){}v="undefined"!=typeof document?document.domain&&i?m(i):b():m(i);for(var e=a.length;e--;)delete v[h][a[e]];return v()};u[p]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(y[h]=o(e),r=new y,y[h]=null,r[p]=e):r=v(),void 0===t?r:s.f(r,t)}},4608:(e,t,r)=>{"use strict";var i=r(170),o=r(7834),s=r(5088),a=r(9084),u=r(9308),c=r(8594);t.f=i&&!o?Object.defineProperties:function(e,t){a(e);for(var r,i=u(t),o=c(t),l=o.length,f=0;l>f;)s.f(e,r=o[f++],i[r]);return e}},5088:(e,t,r)=>{"use strict";var i=r(170),o=r(5199),s=r(7834),a=r(9084),u=r(7793),c=TypeError,l=Object.defineProperty,f=Object.getOwnPropertyDescriptor,h="enumerable",d="configurable",p="writable";t.f=i?s?function(e,t,r){if(a(e),t=u(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&p in r&&!r[p]){var i=f(e,t);i&&i[p]&&(e[t]=r.value,r={configurable:d in r?r[d]:i[d],enumerable:h in r?r[h]:i[h],writable:!1})}return l(e,t,r)}:l:function(e,t,r){if(a(e),t=u(t),a(r),o)try{return l(e,t,r)}catch(e){}if("get"in r||"set"in r)throw c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},8722:(e,t,r)=>{"use strict";var i=r(170),o=r(7015),s=r(7210),a=r(7306),u=r(9308),c=r(7793),l=r(8228),f=r(5199),h=Object.getOwnPropertyDescriptor;t.f=i?h:function(e,t){if(e=u(e),t=c(t),f)try{return h(e,t)}catch(e){}if(l(e,t))return a(!o(s.f,e,t),e[t])}},9898:(e,t,r)=>{"use strict";var i=r(7182),o=r(5980).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},4806:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},1205:(e,t,r)=>{"use strict";var i=r(8228),o=r(3211),s=r(9842),a=r(4249),u=r(9834),c=a("IE_PROTO"),l=Object,f=l.prototype;e.exports=u?l.getPrototypeOf:function(e){var t=s(e);if(i(t,c))return t[c];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof l?f:null}},3568:(e,t,r)=>{"use strict";var i=r(813);e.exports=i({}.isPrototypeOf)},7182:(e,t,r)=>{"use strict";var i=r(813),o=r(8228),s=r(9308),a=r(8154).indexOf,u=r(3642),c=i([].push);e.exports=function(e,t){var r,i=s(e),l=0,f=[];for(r in i)!o(u,r)&&o(i,r)&&c(f,r);for(;t.length>l;)o(i,r=t[l++])&&(~a(f,r)||c(f,r));return f}},8594:(e,t,r)=>{"use strict";var i=r(7182),o=r(5980);e.exports=Object.keys||function(e){return i(e,o)}},7210:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},7653:(e,t,r)=>{"use strict";var i=r(9444),o=r(9084),s=r(9371);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=i(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,i){return o(r),s(i),t?e(r,i):r.__proto__=i,r}}():void 0)},1502:(e,t,r)=>{"use strict";var i=r(7015),o=r(3211),s=r(4615),a=TypeError;e.exports=function(e,t){var r,u;if("string"===t&&o(r=e.toString)&&!s(u=i(r,e))||o(r=e.valueOf)&&!s(u=i(r,e))||"string"!==t&&o(r=e.toString)&&!s(u=i(r,e)))return u;throw a("Can't convert object to primitive value")}},472:(e,t,r)=>{"use strict";var i=r(8107),o=r(813),s=r(9898),a=r(4806),u=r(9084),c=o([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=s.f(u(e)),r=a.f;return r?c(t,r(e)):t}},7392:(e,t,r)=>{"use strict";var i=r(813),o=r(8228),s=SyntaxError,a=parseInt,u=String.fromCharCode,c=i("".charAt),l=i("".slice),f=i(/./.exec),h={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":" "},d=/^[\da-f]{4}$/i,p=/^[\u0000-\u001F]$/;e.exports=function(e,t){for(var r=!0,i="";t{"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},4065:(e,t,r)=>{"use strict";var i=r(5088).f;e.exports=function(e,t,r){r in e||i(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},8110:(e,t,r)=>{"use strict";var i=r(6024),o=TypeError;e.exports=function(e){if(i(e))throw o("Can't call method on "+e);return e}},9881:e=>{"use strict";e.exports=function(e,t){return e===t||e!=e&&t!=t}},7976:(e,t,r)=>{"use strict";var i=r(8509),o=r(1634),s=i.Set,a=i.add;e.exports=function(e){var t=new s;return o(e,function(e){a(t,e)}),t}},2190:(e,t,r)=>{"use strict";var i=r(5650),o=r(8509),s=r(7976),a=r(2636),u=r(9950),c=r(1634),l=r(7305),f=o.has,h=o.remove;e.exports=function(e){var t=i(this),r=u(e),o=s(t);return a(t)<=r.size?c(t,function(e){r.includes(e)&&h(o,e)}):l(r.getIterator(),function(e){f(t,e)&&h(o,e)}),o}},8509:(e,t,r)=>{"use strict";var i=r(813),o=Set.prototype;e.exports={Set:Set,add:i(o.add),has:i(o.has),remove:i(o.delete),proto:o}},6246:(e,t,r)=>{"use strict";var i=r(5650),o=r(8509),s=r(2636),a=r(9950),u=r(1634),c=r(7305),l=o.Set,f=o.add,h=o.has;e.exports=function(e){var t=i(this),r=a(e),o=new l;return s(t)>r.size?c(r.getIterator(),function(e){h(t,e)&&f(o,e)}):u(t,function(e){r.includes(e)&&f(o,e)}),o}},4380:(e,t,r)=>{"use strict";var i=r(5650),o=r(8509).has,s=r(2636),a=r(9950),u=r(1634),c=r(7305),l=r(1222);e.exports=function(e){var t=i(this),r=a(e);if(s(t)<=r.size)return!1!==u(t,function(e){if(r.includes(e))return!1},!0);var f=r.getIterator();return!1!==c(f,function(e){if(o(t,e))return l(f,"normal",!1)})}},8564:(e,t,r)=>{"use strict";var i=r(5650),o=r(2636),s=r(1634),a=r(9950);e.exports=function(e){var t=i(this),r=a(e);return!(o(t)>r.size)&&!1!==s(t,function(e){if(!r.includes(e))return!1},!0)}},2856:(e,t,r)=>{"use strict";var i=r(5650),o=r(8509).has,s=r(2636),a=r(9950),u=r(7305),c=r(1222);e.exports=function(e){var t=i(this),r=a(e);if(s(t){"use strict";var i=r(813),o=r(7305),s=r(8509),a=s.Set,u=s.proto,c=i(u.forEach),l=i(u.keys),f=l(new a).next;e.exports=function(e,t,r){return r?o({iterator:l(e),next:f},t):c(e,t)}},5378:(e,t,r)=>{"use strict";var i=r(8107),o=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};e.exports=function(e){var t=i("Set");try{new t()[e](o(0));try{return new t()[e](o(-1)),!1}catch(e){return!0}}catch(e){return!1}}},2636:(e,t,r)=>{"use strict";var i=r(9444),o=r(8509);e.exports=i(o.proto,"size","get")||function(e){return e.size}},3208:(e,t,r)=>{"use strict";var i=r(5650),o=r(8509),s=r(7976),a=r(9950),u=r(7305),c=o.add,l=o.has,f=o.remove;e.exports=function(e){var t=i(this),r=a(e).getIterator(),o=s(t);return u(r,function(e){l(t,e)?f(o,e):c(o,e)}),o}},8734:(e,t,r)=>{"use strict";var i=r(5650),o=r(8509).add,s=r(7976),a=r(9950),u=r(7305);e.exports=function(e){var t=i(this),r=a(e).getIterator(),c=s(t);return u(r,function(e){o(c,e)}),c}},4249:(e,t,r)=>{"use strict";var i=r(1211),o=r(9685),s=i("keys");e.exports=function(e){return s[e]||(s[e]=o(e))}},8727:(e,t,r)=>{"use strict";var i=r(9035),o=r(6423),s="__core-js_shared__",a=i[s]||o(s,{});e.exports=a},1211:(e,t,r)=>{"use strict";var i=r(1593),o=r(8727);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.32.2",mode:i?"pure":"global",copyright:"\xa9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.2/LICENSE",source:"https://github.com/zloirock/core-js"})},7971:(e,t,r)=>{"use strict";var i=r(6654),o=r(7858),s=r(9035).String;e.exports=!!Object.getOwnPropertySymbols&&!o(function(){var e=Symbol("symbol detection");return!s(e)||!(Object(e) instanceof Symbol)||!Symbol.sham&&i&&i<41})},6771:(e,t,r)=>{"use strict";var i=r(898),o=Math.max,s=Math.min;e.exports=function(e,t){var r=i(e);return r<0?o(r+t,0):s(r,t)}},9308:(e,t,r)=>{"use strict";var i=r(3129),o=r(8110);e.exports=function(e){return i(o(e))}},898:(e,t,r)=>{"use strict";var i=r(7308);e.exports=function(e){var t=+e;return t!=t||0===t?0:i(t)}},2686:(e,t,r)=>{"use strict";var i=r(898),o=Math.min;e.exports=function(e){return e>0?o(i(e),9007199254740991):0}},9842:(e,t,r)=>{"use strict";var i=r(8110),o=Object;e.exports=function(e){return o(i(e))}},2142:(e,t,r)=>{"use strict";var i=r(7015),o=r(4615),s=r(5121),a=r(3869),u=r(1502),c=r(6788),l=TypeError,f=c("toPrimitive");e.exports=function(e,t){if(!o(e)||s(e))return e;var r,c=a(e,f);if(c){if(void 0===t&&(t="default"),!o(r=i(c,e,t))||s(r))return r;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),u(e,t)}},7793:(e,t,r)=>{"use strict";var i=r(2142),o=r(5121);e.exports=function(e){var t=i(e,"string");return o(t)?t:t+""}},4652:(e,t,r)=>{"use strict";var i=r(8107),o=r(3211),s=r(9110),a=r(4615),u=i("Set");e.exports=function(e){return a(e)&&"number"==typeof e.size&&o(e.has)&&o(e.keys)?e:s(e)?new u(e):e}},3377:(e,t,r)=>{"use strict";var i=r(6788)("toStringTag"),o={};o[i]="z",e.exports="[object z]"===String(o)},6650:(e,t,r)=>{"use strict";var i=r(2975),o=String;e.exports=function(e){if("Symbol"===i(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},5984:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},9685:(e,t,r)=>{"use strict";var i=r(813),o=0,s=Math.random(),a=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+s,36)}},1006:(e,t,r)=>{"use strict";var i=r(7971);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7834:(e,t,r)=>{"use strict";var i=r(170),o=r(7858);e.exports=i&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},2157:(e,t,r)=>{"use strict";var i=r(9035),o=r(3211),s=i.WeakMap;e.exports=o(s)&&/native code/.test(String(s))},6788:(e,t,r)=>{"use strict";var i=r(9035),o=r(1211),s=r(8228),a=r(9685),u=r(7971),c=r(1006),l=i.Symbol,f=o("wks"),h=c?l.for||l:l&&l.withoutSetter||a;e.exports=function(e){return s(f,e)||(f[e]=u&&s(l,e)?l[e]:h("Symbol."+e)),f[e]}},2460:(e,t,r)=>{"use strict";var i=r(8107),o=r(8228),s=r(2927),a=r(3568),u=r(7653),c=r(2586),l=r(4065),f=r(758),h=r(8602),d=r(1633),p=r(8825),y=r(170),g=r(1593);e.exports=function(e,t,r,m){var b="stackTraceLimit",v=m?2:1,w=e.split("."),_=w[w.length-1],S=i.apply(null,w);if(S){var x=S.prototype;if(!g&&o(x,"cause")&&delete x.cause,!r)return S;var E=i("Error"),O=t(function(e,t){var r=h(m?t:e,void 0),i=m?new S(e):new S;return void 0!==r&&s(i,"message",r),p(i,O,i.stack,2),this&&a(x,this)&&f(i,this,O),arguments.length>v&&d(i,arguments[v]),i});if(O.prototype=x,"Error"!==_?u?u(O,E):c(O,E,{name:!0}):y&&b in S&&(l(O,S,b),l(O,S,"prepareStackTrace")),c(O,S),!g)try{x.name!==_&&s(x,"name",_),x.constructor=O}catch(e){}return O}}},5106:(e,t,r)=>{"use strict";var i=r(6486),o=r(9842),s=r(6206),a=r(9200),u=r(2048);i({target:"Array",proto:!0,arity:1,forced:r(7858)(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=o(this),r=s(t),i=arguments.length;u(r+i);for(var c=0;c{"use strict";var i=r(6486),o=r(9035),s=r(7040),a=r(2460),u="WebAssembly",c=o[u],l=7!==Error("e",{cause:7}).cause,f=function(e,t){var r={};r[e]=a(e,t,l),i({global:!0,constructor:!0,arity:1,forced:l},r)},h=function(e,t){if(c&&c[e]){var r={};r[e]=a(u+"."+e,t,l),i({target:u,stat:!0,constructor:!0,arity:1,forced:l},r)}};f("Error",function(e){return function(t){return s(e,this,arguments)}}),f("EvalError",function(e){return function(t){return s(e,this,arguments)}}),f("RangeError",function(e){return function(t){return s(e,this,arguments)}}),f("ReferenceError",function(e){return function(t){return s(e,this,arguments)}}),f("SyntaxError",function(e){return function(t){return s(e,this,arguments)}}),f("TypeError",function(e){return function(t){return s(e,this,arguments)}}),f("URIError",function(e){return function(t){return s(e,this,arguments)}}),h("CompileError",function(e){return function(t){return s(e,this,arguments)}}),h("LinkError",function(e){return function(t){return s(e,this,arguments)}}),h("RuntimeError",function(e){return function(t){return s(e,this,arguments)}})},9493:(e,t,r)=>{"use strict";var i=r(6486),o=r(7663).find;i({target:"AsyncIterator",proto:!0,real:!0},{find:function(e){return o(this,e)}})},4774:(e,t,r)=>{"use strict";var i=r(6486),o=r(7663).forEach;i({target:"AsyncIterator",proto:!0,real:!0},{forEach:function(e){return o(this,e)}})},726:(e,t,r)=>{"use strict";var i=r(6486),o=r(4094);i({target:"AsyncIterator",proto:!0,real:!0,forced:r(1593)},{map:o})},1832:(e,t,r)=>{"use strict";var i=r(6486),o=r(7015),s=r(5966),a=r(9084),u=r(4615),c=r(8107),l=r(2422),f=r(2309),h=c("Promise"),d=TypeError;i({target:"AsyncIterator",proto:!0,real:!0},{reduce:function(e){a(this),s(e);var t=l(this),r=t.iterator,i=t.next,c=arguments.length<2,p=c?void 0:arguments[1],y=0;return new h(function(t,s){var l=function(e){f(r,s,e,s)},g=function(){try{h.resolve(a(o(i,r))).then(function(r){try{if(a(r).done)c?s(d("Reduce of empty iterator with no initial value")):t(p);else{var i=r.value;if(c)c=!1,p=i,g();else try{var o=e(p,i,y),f=function(e){p=e,g()};u(o)?h.resolve(o).then(f,l):f(o)}catch(e){l(e)}}y++}catch(e){s(e)}},s)}catch(e){s(e)}};g()})}})},6185:(e,t,r)=>{"use strict";var i=r(6486),o=r(7663).some;i({target:"AsyncIterator",proto:!0,real:!0},{some:function(e){return o(this,e)}})},139:(e,t,r)=>{"use strict";var i=r(6486),o=r(9035),s=r(4599),a=r(3211),u=r(1205),c=r(2927),l=r(7858),f=r(8228),h=r(6788),d=r(2713).IteratorPrototype,p=r(1593),y=h("toStringTag"),g=TypeError,m=o.Iterator,b=p||!a(m)||m.prototype!==d||!l(function(){m({})}),v=function(){if(s(this,d),u(this)===d)throw g("Abstract class Iterator not directly constructable")};f(d,y)||c(d,y,"Iterator"),(b||!f(d,"constructor")||d.constructor===Object)&&c(d,"constructor",v),v.prototype=d,i({global:!0,constructor:!0,forced:b},{Iterator:v})},4216:(e,t,r)=>{"use strict";var i=r(6486),o=r(2401),s=r(5966),a=r(9084),u=r(2422);i({target:"Iterator",proto:!0,real:!0},{find:function(e){a(this),s(e);var t=u(this),r=0;return o(t,function(t,i){if(e(t,r++))return i(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},2702:(e,t,r)=>{"use strict";var i=r(6486),o=r(2401),s=r(5966),a=r(9084),u=r(2422);i({target:"Iterator",proto:!0,real:!0},{forEach:function(e){a(this),s(e);var t=u(this),r=0;o(t,function(t){e(t,r++)},{IS_RECORD:!0})}})},1966:(e,t,r)=>{"use strict";var i=r(6486),o=r(4503);i({target:"Iterator",proto:!0,real:!0,forced:r(1593)},{map:o})},8352:(e,t,r)=>{"use strict";var i=r(6486),o=r(2401),s=r(5966),a=r(9084),u=r(2422),c=TypeError;i({target:"Iterator",proto:!0,real:!0},{reduce:function(e){a(this),s(e);var t=u(this),r=arguments.length<2,i=r?void 0:arguments[1],l=0;if(o(t,function(t){r?(r=!1,i=t):i=e(i,t,l),l++},{IS_RECORD:!0}),r)throw c("Reduce of empty iterator with no initial value");return i}})},2092:(e,t,r)=>{"use strict";var i=r(6486),o=r(2401),s=r(5966),a=r(9084),u=r(2422);i({target:"Iterator",proto:!0,real:!0},{some:function(e){a(this),s(e);var t=u(this),r=0;return o(t,function(t,i){if(e(t,r++))return i()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},6081:(e,t,r)=>{"use strict";var i=r(6486),o=r(170),s=r(9035),a=r(8107),u=r(813),c=r(7015),l=r(3211),f=r(4615),h=r(9909),d=r(8228),p=r(6650),y=r(6206),g=r(8186),m=r(7858),b=r(7392),v=r(7971),w=s.JSON,_=s.Number,S=s.SyntaxError,x=w&&w.parse,E=a("Object","keys"),O=Object.getOwnPropertyDescriptor,j=u("".charAt),k=u("".slice),T=u(/./.exec),R=u([].push),M=/^\d$/,P=/^[1-9]$/,A=/^(?:-|\d)$/,L=/^[\t\n\r ]$/,N=function(e,t){e=p(e);var r=new B(e,0,""),i=r.parse(),o=i.value,s=r.skip(L,i.end);if(s{"use strict";var i=r(6486),o=r(8971),s=r(8471).remove;i({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=o(this),r=!0,i=0,a=arguments.length;i{"use strict";var i=r(6486),o=r(8971),s=r(8471),a=s.get,u=s.has,c=s.set;i({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var r,i,s=o(this);return u(s,e)?(r=a(s,e),"update"in t&&(r=t.update(r,e,s),c(s,e,r)),r):(i=t.insert(e,s),c(s,e,i),i)}})},9467:(e,t,r)=>{"use strict";var i=r(6486),o=r(2942),s=r(8971),a=r(7921);i({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0);return!1!==a(t,function(e,i){if(!r(e,i,t))return!1},!0)}})},6811:(e,t,r)=>{"use strict";var i=r(6486),o=r(2942),s=r(8971),a=r(8471),u=r(7921),c=a.Map,l=a.set;i({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new c;return u(t,function(e,o){r(e,o,t)&&l(i,o,e)}),i}})},9502:(e,t,r)=>{"use strict";var i=r(6486),o=r(2942),s=r(8971),a=r(7921);i({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=a(t,function(e,i){if(r(e,i,t))return{key:i}},!0);return i&&i.key}})},408:(e,t,r)=>{"use strict";var i=r(6486),o=r(2942),s=r(8971),a=r(7921);i({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=a(t,function(e,i){if(r(e,i,t))return{value:e}},!0);return i&&i.value}})},8669:(e,t,r)=>{"use strict";var i=r(6486),o=r(9881),s=r(8971),a=r(7921);i({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===a(s(this),function(t){if(o(t,e))return!0},!0)}})},6136:(e,t,r)=>{"use strict";var i=r(6486),o=r(8971),s=r(7921);i({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=s(o(this),function(t,r){if(t===e)return{key:r}},!0);return t&&t.key}})},5803:(e,t,r)=>{"use strict";var i=r(6486),o=r(2942),s=r(8971),a=r(8471),u=r(7921),c=a.Map,l=a.set;i({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new c;return u(t,function(e,o){l(i,r(e,o,t),e)}),i}})},1536:(e,t,r)=>{"use strict";var i=r(6486),o=r(2942),s=r(8971),a=r(8471),u=r(7921),c=a.Map,l=a.set;i({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new c;return u(t,function(e,o){l(i,o,r(e,o,t))}),i}})},8625:(e,t,r)=>{"use strict";var i=r(6486),o=r(8971),s=r(2401),a=r(8471).set;i({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=o(this),r=arguments.length,i=0;i{"use strict";var i=r(6486),o=r(5966),s=r(8971),a=r(7921),u=TypeError;i({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=s(this),r=arguments.length<2,i=r?void 0:arguments[1];if(o(e),a(t,function(o,s){r?(r=!1,i=o):i=e(i,o,s,t)}),r)throw u("Reduce of empty map with no initial value");return i}})},3362:(e,t,r)=>{"use strict";var i=r(6486),o=r(2942),s=r(8971),a=r(7921);i({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0);return!0===a(t,function(e,i){if(r(e,i,t))return!0},!0)}})},821:(e,t,r)=>{"use strict";var i=r(6486),o=r(5966),s=r(8971),a=r(8471),u=TypeError,c=a.get,l=a.has,f=a.set;i({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var r=s(this),i=arguments.length;o(t);var a=l(r,e);if(!a&&i<3)throw u("Updating absent value");var h=a?c(r,e):o(i>2?arguments[2]:void 0)(e,r);return f(r,e,t(h,e,r)),r}})},7326:(e,t,r)=>{"use strict";var i=r(6486),o=r(5650),s=r(8509).add;i({target:"Set",proto:!0,real:!0,forced:!0},{addAll:function(){for(var e=o(this),t=0,r=arguments.length;t{"use strict";var i=r(6486),o=r(5650),s=r(8509).remove;i({target:"Set",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=o(this),r=!0,i=0,a=arguments.length;i{"use strict";var i=r(6486),o=r(7015),s=r(4652),a=r(2190);i({target:"Set",proto:!0,real:!0,forced:!0},{difference:function(e){return o(a,this,s(e))}})},4680:(e,t,r)=>{"use strict";var i=r(6486),o=r(2190);i({target:"Set",proto:!0,real:!0,forced:!r(5378)("difference")},{difference:o})},109:(e,t,r)=>{"use strict";var i=r(6486),o=r(2942),s=r(5650),a=r(1634);i({target:"Set",proto:!0,real:!0,forced:!0},{every:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0);return!1!==a(t,function(e){if(!r(e,e,t))return!1},!0)}})},8275:(e,t,r)=>{"use strict";var i=r(6486),o=r(2942),s=r(5650),a=r(8509),u=r(1634),c=a.Set,l=a.add;i({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new c;return u(t,function(e){r(e,e,t)&&l(i,e)}),i}})},1223:(e,t,r)=>{"use strict";var i=r(6486),o=r(2942),s=r(5650),a=r(1634);i({target:"Set",proto:!0,real:!0,forced:!0},{find:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=a(t,function(e){if(r(e,e,t))return{value:e}},!0);return i&&i.value}})},4709:(e,t,r)=>{"use strict";var i=r(6486),o=r(7015),s=r(4652),a=r(6246);i({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(e){return o(a,this,s(e))}})},1401:(e,t,r)=>{"use strict";var i=r(6486),o=r(7858),s=r(6246);i({target:"Set",proto:!0,real:!0,forced:!r(5378)("intersection")||o(function(){return"3,2"!==Array.from(new Set([1,2,3]).intersection(new Set([3,2])))})},{intersection:s})},7321:(e,t,r)=>{"use strict";var i=r(6486),o=r(7015),s=r(4652),a=r(4380);i({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(e){return o(a,this,s(e))}})},1596:(e,t,r)=>{"use strict";var i=r(6486),o=r(4380);i({target:"Set",proto:!0,real:!0,forced:!r(5378)("isDisjointFrom")},{isDisjointFrom:o})},6727:(e,t,r)=>{"use strict";var i=r(6486),o=r(7015),s=r(4652),a=r(8564);i({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(e){return o(a,this,s(e))}})},5923:(e,t,r)=>{"use strict";var i=r(6486),o=r(8564);i({target:"Set",proto:!0,real:!0,forced:!r(5378)("isSubsetOf")},{isSubsetOf:o})},9017:(e,t,r)=>{"use strict";var i=r(6486),o=r(7015),s=r(4652),a=r(2856);i({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(e){return o(a,this,s(e))}})},6169:(e,t,r)=>{"use strict";var i=r(6486),o=r(2856);i({target:"Set",proto:!0,real:!0,forced:!r(5378)("isSupersetOf")},{isSupersetOf:o})},7338:(e,t,r)=>{"use strict";var i=r(6486),o=r(813),s=r(5650),a=r(1634),u=r(6650),c=o([].join),l=o([].push);i({target:"Set",proto:!0,real:!0,forced:!0},{join:function(e){var t=s(this),r=void 0===e?",":u(e),i=[];return a(t,function(e){l(i,e)}),c(i,r)}})},1942:(e,t,r)=>{"use strict";var i=r(6486),o=r(2942),s=r(5650),a=r(8509),u=r(1634),c=a.Set,l=a.add;i({target:"Set",proto:!0,real:!0,forced:!0},{map:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new c;return u(t,function(e){l(i,r(e,e,t))}),i}})},7333:(e,t,r)=>{"use strict";var i=r(6486),o=r(5966),s=r(5650),a=r(1634),u=TypeError;i({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=s(this),r=arguments.length<2,i=r?void 0:arguments[1];if(o(e),a(t,function(o){r?(r=!1,i=o):i=e(i,o,o,t)}),r)throw u("Reduce of empty set with no initial value");return i}})},6426:(e,t,r)=>{"use strict";var i=r(6486),o=r(2942),s=r(5650),a=r(1634);i({target:"Set",proto:!0,real:!0,forced:!0},{some:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0);return!0===a(t,function(e){if(r(e,e,t))return!0},!0)}})},4197:(e,t,r)=>{"use strict";var i=r(6486),o=r(7015),s=r(4652),a=r(3208);i({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(e){return o(a,this,s(e))}})},4213:(e,t,r)=>{"use strict";var i=r(6486),o=r(3208);i({target:"Set",proto:!0,real:!0,forced:!r(5378)("symmetricDifference")},{symmetricDifference:o})},5646:(e,t,r)=>{"use strict";var i=r(6486),o=r(7015),s=r(4652),a=r(8734);i({target:"Set",proto:!0,real:!0,forced:!0},{union:function(e){return o(a,this,s(e))}})},1581:(e,t,r)=>{"use strict";var i=r(6486),o=r(8734);i({target:"Set",proto:!0,real:!0,forced:!r(5378)("union")},{union:o})},4300:e=>{"use strict";e.exports=require("buffer")},2081:e=>{"use strict";e.exports=require("child_process")},6113:e=>{"use strict";e.exports=require("crypto")},2361:e=>{"use strict";e.exports=require("events")},7147:e=>{"use strict";e.exports=require("fs")},3685:e=>{"use strict";e.exports=require("http")},5687:e=>{"use strict";e.exports=require("https")},2037:e=>{"use strict";e.exports=require("os")},1017:e=>{"use strict";e.exports=require("path")},3477:e=>{"use strict";e.exports=require("querystring")},2781:e=>{"use strict";e.exports=require("stream")},1576:e=>{"use strict";e.exports=require("string_decoder")},6224:e=>{"use strict";e.exports=require("tty")},7310:e=>{"use strict";e.exports=require("url")},3837:e=>{"use strict";e.exports=require("util")},6144:e=>{"use strict";e.exports=require("vm")},1267:e=>{"use strict";e.exports=require("worker_threads")},9796:e=>{"use strict";e.exports=require("zlib")},799:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}(r(6224));let o=process.env||{},s=process.argv||[],a="NO_COLOR"in o||s.includes("--no-color"),u="FORCE_COLOR"in o||s.includes("--color"),c="win32"===process.platform,l=i&&i.isatty&&i.isatty(1)&&o.TERM&&"dumb"!==o.TERM,f=!a&&(u||c||l||"CI"in o&&("GITHUB_ACTIONS"in o||"GITLAB_CI"in o||"CIRCLECI"in o)),h=(e,t,r,i,o=t.substring(0,e)+i,s=t.substring(e+r.length),a=s.indexOf(r))=>o+(a<0?s:h(a,s,r,i)),d=(e,t,r,i,o)=>e<0?r+t+i:r+h(e,t,i,o)+i,p=(e,t,r=e,i=e.length+1)=>o=>o||!(""===o||void 0===o)?d((""+o).indexOf(t,i),o,e,t,r):"",y=(e,t,r)=>p(`\x1b[${e}m`,`\x1b[${t}m`,r),g={reset:y(0,0),bold:y(1,22,"\x1b[22m\x1b[1m"),dim:y(2,22,"\x1b[22m\x1b[2m"),italic:y(3,23),underline:y(4,24),inverse:y(7,27),hidden:y(8,28),strikethrough:y(9,29),black:y(30,39),red:y(31,39),green:y(32,39),yellow:y(33,39),blue:y(34,39),magenta:y(35,39),cyan:y(36,39),white:y(37,39),gray:y(90,39),bgBlack:y(40,49),bgRed:y(41,49),bgGreen:y(42,49),bgYellow:y(43,49),bgBlue:y(44,49),bgMagenta:y(45,49),bgCyan:y(46,49),bgWhite:y(47,49),blackBright:y(90,39),redBright:y(91,39),greenBright:y(92,39),yellowBright:y(93,39),blueBright:y(94,39),magentaBright:y(95,39),cyanBright:y(96,39),whiteBright:y(97,39),bgBlackBright:y(100,49),bgRedBright:y(101,49),bgGreenBright:y(102,49),bgYellowBright:y(103,49),bgBlueBright:y(104,49),bgMagentaBright:y(105,49),bgCyanBright:y(106,49),bgWhiteBright:y(107,49)},m=e=>e,b=({useColor:e=f}={})=>e?g:Object.keys(g).reduce((e,t)=>({...e,[t]:m}),{}),{reset:v,bold:w,dim:_,italic:S,underline:x,inverse:E,hidden:O,strikethrough:j,black:k,red:T,green:R,yellow:M,blue:P,magenta:A,cyan:L,white:N,gray:D,bgBlack:C,bgRed:I,bgGreen:B,bgYellow:$,bgBlue:q,bgMagenta:U,bgCyan:F,bgWhite:W,blackBright:G,redBright:z,greenBright:H,yellowBright:J,blueBright:K,magentaBright:Y,cyanBright:V,whiteBright:Q,bgBlackBright:X,bgRedBright:Z,bgGreenBright:ee,bgYellowBright:et,bgBlueBright:er,bgMagentaBright:en,bgCyanBright:ei,bgWhiteBright:eo}=b();t.bgBlack=C,t.bgBlackBright=X,t.bgBlue=q,t.bgBlueBright=er,t.bgCyan=F,t.bgCyanBright=ei,t.bgGreen=B,t.bgGreenBright=ee,t.bgMagenta=U,t.bgMagentaBright=en,t.bgRed=I,t.bgRedBright=Z,t.bgWhite=W,t.bgWhiteBright=eo,t.bgYellow=$,t.bgYellowBright=et,t.black=k,t.blackBright=G,t.blue=P,t.blueBright=K,t.bold=w,t.createColors=b,t.cyan=L,t.cyanBright=V,t.dim=_,t.gray=D,t.green=R,t.greenBright=H,t.hidden=O,t.inverse=E,t.isColorSupported=f,t.italic=S,t.magenta=A,t.magentaBright=Y,t.red=T,t.redBright=z,t.reset=v,t.strikethrough=j,t.underline=x,t.white=N,t.whiteBright=Q,t.yellow=M,t.yellowBright=J},1686:(e,t,r)=>{"use strict";let{isColorSupported:i}=r(799),o=r(2181),{Transform:s}=r(8118),a=r(2306),u=r(9316),c=r(8202),{ERROR_LIKE_KEYS:l,MESSAGE_KEY:f,TIMESTAMP_KEY:h,LEVEL_KEY:d,LEVEL_NAMES:p}=r(484),{isObject:y,prettifyErrorLog:g,prettifyLevel:m,prettifyMessage:b,prettifyMetadata:v,prettifyObject:w,prettifyTime:_,buildSafeSonicBoom:S,filterLog:x}=r(6741),E=e=>{try{return{value:u.parse(e,{protoAction:"remove"})}}catch(e){return{err:e}}},O={colorize:i,crlf:!1,errorLikeObjectKeys:l,errorProps:"",customLevels:null,customColors:null,useOnlyCustomProps:!0,levelFirst:!1,messageKey:f,messageFormat:!1,timestampKey:h,translateTime:!1,useMetadata:!1,outputStream:process.stdout,customPrettifiers:{},hideObject:!1,singleLine:!1};function j(e){let t=Object.assign({},O,e),r=t.crlf?"\r\n":"\n",i=" ",o=t.messageKey,s=t.levelKey,a=t.levelLabel,u=t.minimumLevel,l=t.messageFormat,f=t.timestampKey,h=t.errorLikeObjectKeys,S=t.errorProps.split(","),j="boolean"==typeof t.useOnlyCustomProps?t.useOnlyCustomProps:"true"===t.useOnlyCustomProps,k=t.customLevels?t.customLevels.split(",").reduce((e,t,r)=>{let[i,o=r]=t.split(":");return e[o]=i.toUpperCase(),e},{default:"USERLVL"}):{},T=t.customLevels?t.customLevels.split(",").reduce((e,t,r)=>{let[i,o=r]=t.split(":");return e[i.toLowerCase()]=o,e},{}):{},R=t.customColors?t.customColors.split(",").reduce((e,r)=>{let[i,o]=r.split(":"),s=j?t.customLevels:void 0!==T[i],a=s?T[i]:p[i],u=void 0!==a?a:i;return e.push([u,o]),e},[]):void 0,M={customLevels:k,customLevelNames:T};j&&!t.customLevels&&(M.customLevels=void 0,M.customLevelNames=void 0);let P=t.customPrettifiers,A=t.ignore?new Set(t.ignore.split(",")):void 0,L=t.hideObject,N=t.singleLine,D=c(t.colorize,R,j);return function(e){let c;if(y(e))c=e;else{let t=E(e);if(t.err||!y(t.value))return e+r;c=t.value}if(u){let e=j?t.customLevels:void 0!==T[u],r=(e?T[u]:p[u])||Number(u),i=c[void 0===s?d:s];if(i0?`${I} ${k}`:k),R&&(I=I.length>0?`${I} ${R}:`:R),!1===I.endsWith(":")&&""!==I&&(I+=":"),O&&(I=I.length>0?`${I} ${O}`:O),I.length>0&&!N&&(I+=r),"Error"===c.type&&c.stack){let e=g({log:c,errorLikeKeys:h,errorProperties:S,ident:i,eol:r});N&&(I+=r),I+=e}else if(!L){let e=[o,s,f].filter(e=>"string"==typeof c[e]||"number"==typeof c[e]),t=w({input:c,skipKeys:e,customPrettifiers:P,errorLikeKeys:h,eol:r,ident:i,singleLine:N,colorizer:D});N&&!/^\s$/.test(t)&&(I+=" "),I+=t}return I}}function k(e={}){let t=j(e);return a(function(r){let i;let a=new s({objectMode:!0,autoDestroy:!0,transform(e,r,i){let o=t(e);i(null,o)}});return i="object"==typeof e.destination&&"function"==typeof e.destination.write?e.destination:S({dest:e.destination||1,append:e.append,mkdir:e.mkdir,sync:e.sync}),r.on("unknown",function(e){i.write(e+"\n")}),o(r,a,i),a},{parse:"lines"})}e.exports=k,e.exports.prettyFactory=j,e.exports.colorizerFactory=c,e.exports.default=k},8202:(e,t,r)=>{"use strict";let{LEVELS:i,LEVEL_NAMES:o}=r(484),s=e=>e,a={default:s,60:s,50:s,40:s,30:s,20:s,10:s,message:s,greyMessage:s},{createColors:u}=r(799),c=u({useColor:!0}),{white:l,bgRed:f,red:h,yellow:d,green:p,blue:y,gray:g,cyan:m}=c,b={default:l,60:f,50:h,40:d,30:p,20:y,10:g,message:m,greyMessage:g};function v(e){return function(t,r,{customLevels:s,customLevelNames:a}={}){let u=e?s||i:Object.assign({},i,s),c=e?a||o:Object.assign({},o,a),l="default";l=Number.isInteger(+t)?Object.prototype.hasOwnProperty.call(u,t)?t:l:Object.prototype.hasOwnProperty.call(c,t.toLowerCase())?c[t.toLowerCase()]:l;let f=u[l];return Object.prototype.hasOwnProperty.call(r,l)?r[l](f):r.default(f)}}e.exports=function(e=!1,t,r){return e&&void 0!==t?function(e,t){let r=e.reduce(function(e,[t,r]){return e[t]="function"==typeof c[r]?c[r]:l,e},{default:l,message:m,greyMessage:g}),i=t?r:Object.assign({},b,r),o=v(t),s=function(e,t){return o(e,i,t)};return s.message=s.message||i.message,s.greyMessage=s.greyMessage||i.greyMessage,s}(t,r):e?function(e){let t=v(e),r=function(e,r){return t(e,b,r)};return r.message=b.message,r.greyMessage=b.greyMessage,r}(r):function(e){let t=v(e),r=function(e,r){return t(e,a,r)};return r.message=a.message,r.greyMessage=a.greyMessage,r}(r)}},484:e=>{"use strict";e.exports={DATE_FORMAT:"yyyy-mm-dd HH:MM:ss.l o",ERROR_LIKE_KEYS:["err","error"],MESSAGE_KEY:"msg",LEVEL_KEY:"level",LEVEL_LABEL:"levelLabel",TIMESTAMP_KEY:"time",LEVELS:{default:"USERLVL",60:"FATAL",50:"ERROR",40:"WARN",30:"INFO",20:"DEBUG",10:"TRACE"},LEVEL_NAMES:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},LOGGER_KEYS:["pid","hostname","name","level","time","timestamp","caller"]}},6741:(e,t,r)=>{"use strict";let i=r(3268)({circles:!0}),o=r(924),s=r(6755),a=r(2988),{isMainThread:u}=r(1267),c=r(8202)(),{DATE_FORMAT:l,ERROR_LIKE_KEYS:f,MESSAGE_KEY:h,LEVEL_KEY:d,LEVEL_LABEL:p,TIMESTAMP_KEY:y,LOGGER_KEYS:g,LEVELS:m}=r(484);function b(e,t=!1){if(!1===t)return e;let r=v(e);if(!w(r))return e;if(!0===t)return o(r,"UTC:"+l);let i=t.toUpperCase();if("SYS:STANDARD"===i)return o(r,l);let s=i.substr(0,4);return"SYS:"===s||"UTC:"===s?"UTC:"===s?o(r,t):o(r,t.slice(4)):o(r,`UTC:${t}`)}function v(e){let t=new Date(e);return w(t)?t:t=new Date(+e)}function w(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function _(e){return"[object Object]"===Object.prototype.toString.apply(e)}function S({input:e,ident:t=" ",eol:r="\n"}){let i=e.split(/\r?\n/);for(let e=1;e{if(!1===d.includes(i)){let u="function"==typeof o[i]?o[i](a,i,e):a;s.includes(i)?r[i]=u:t[i]=u}return{plain:t,errors:r}},{plain:{},errors:{}});return l?(Object.keys(y).length>0&&(p+=h.greyMessage(a(y))),p+=r):Object.entries(y).forEach(([e,i])=>{let s="function"==typeof o[e]?i:a(i,null,2);if(void 0===s)return;let u=S({input:s,ident:t,eol:r});p+=`${t}${e}:${u.startsWith(r)?"":" "}${u}${r}`}),Object.entries(m).forEach(([e,i])=>{let s="function"==typeof o[e]?i:a(i,null,2);void 0!==s&&(p+=E({keyName:e,lines:s,eol:r,ident:t}))}),p}function E({keyName:e,lines:t,eol:r,ident:i}){let o="",s=S({input:t,ident:i,eol:r}),a=`${i}${e}: ${s}${r}`.split(r);for(let e=0;e{Object.prototype.hasOwnProperty.call(e,t)&&(e=e[t])}),delete e[i]}function k(){}function T(e,t){e.destroyed||("beforeExit"===t?(e.flush(),e.on("drain",function(){e.end()})):e.flushSync())}e.exports={isObject:_,prettifyErrorLog:function({log:e,messageKey:t=h,ident:r=" ",eol:i="\n",errorLikeKeys:o=f,errorProperties:s=[]}){let a=e.stack,u=S({input:a,ident:r,eol:i}),c=`${r}${u}${i}`;if(s.length>0){let a;let u=g.concat(t,"type","stack");a="*"===s[0]?Object.keys(e).filter(e=>!1===u.includes(e)):s.filter(e=>!1===u.includes(e));for(let t=0;t`),""!==r)return r},prettifyObject:x,prettifyTime:function({log:e,timestampKey:t=y,translateFormat:r,prettifier:i}){let o=null;if(t in e?o=e[t]:"timestamp"in e&&(o=e.timestamp),null===o)return;let s=r?b(o,r):o;return i?i(s):`[${s}]`},buildSafeSonicBoom:function(e){let t=new s(e);return t.on("error",function e(r){if("EPIPE"===r.code){t.write=k,t.end=k,t.flushSync=k,t.destroy=k;return}t.removeListener("error",e)}),!e.sync&&u&&function(e){if(global.WeakRef&&global.WeakMap&&global.FinalizationRegistry){let t=r(3538);t.register(e,T),e.on("close",function(){t.unregister(e)})}}(t),t},filterLog:function(e,t){let r=i(e);return t.forEach(e=>{j(r,e)}),r}},e.exports.internals={formatTime:b,joinLinesWithIndentation:S,prettifyError:E,deleteLogProperty:j,splitIgnoreKey:O,createDate:v,isValidDate:w}},6755:(e,t,r)=>{"use strict";let i=r(7147),o=r(2361),s=r(3837).inherits,a=r(1017),u=r(160);function c(e,t){function r(r,i){if(r){t._reopening=!1,t._writing=!1,t._opening=!1,t.sync?process.nextTick(()=>{t.listenerCount("error")>0&&t.emit("error",r)}):t.emit("error",r);return}t.fd=i,t.file=e,t._reopening=!1,t._opening=!1,t._writing=!1,t.sync?process.nextTick(()=>t.emit("ready")):t.emit("ready"),!t._reopening&&(t._writing||!(t._len>t.minLength)||t.destroyed||h(t))}t._opening=!0,t._writing=!0,t._asyncDrainScheduled=!1;let o=t.append?"a":"w";if(t.sync)try{t.mkdir&&i.mkdirSync(a.dirname(e),{recursive:!0});let s=i.openSync(e,o);r(null,s)}catch(e){throw r(e),e}else t.mkdir?i.mkdir(a.dirname(e),{recursive:!0},t=>{if(t)return r(t);i.open(e,o,r)}):i.open(e,o,r)}function l(e){if(!(this instanceof l))return new l(e);let{fd:t,dest:r,minLength:o,sync:s,append:a=!0,mkdir:p,retryEAGAIN:y}=e||{};if(t=t||r,this._bufs=[],this._len=0,this.fd=-1,this._writing=!1,this._writingBuf="",this._ending=!1,this._reopening=!1,this._asyncDrainScheduled=!1,this._hwm=Math.max(o||0,16387),this.file=null,this.destroyed=!1,this.minLength=o||0,this.sync=s||!1,this.append=a||!1,this.retryEAGAIN=y||(()=>!0),this.mkdir=p||!1,"number"==typeof t)this.fd=t,process.nextTick(()=>this.emit("ready"));else if("string"==typeof t)c(t,this);else throw Error("SonicBoom supports only file descriptors and files");if(this.minLength>=16777216)throw Error("minLength should be smaller than MAX_WRITE (16777216)");this.release=(e,t)=>{if(e){if("EAGAIN"===e.code&&this.retryEAGAIN(e,this._writingBuf.length,this._len-this._writingBuf.length)){if(this.sync)try{u(100),this.release(void 0,0)}catch(e){this.release(e)}else setTimeout(()=>{i.write(this.fd,this._writingBuf,"utf8",this.release)},100)}else this._writing=!1,this.emit("error",e);return}if(this._len-=t,this._writingBuf=this._writingBuf.slice(t),this._writingBuf.length){if(!this.sync){i.write(this.fd,this._writingBuf,"utf8",this.release);return}try{do{let e=i.writeSync(this.fd,this._writingBuf,"utf8");this._len-=e,this._writingBuf=this._writingBuf.slice(e)}while(this._writingBuf)}catch(e){this.release(e);return}}let r=this._len;this._reopening?(this._writing=!1,this._reopening=!1,this.reopen()):r>this.minLength?h(this):this._ending?r>0?h(this):(this._writing=!1,d(this)):(this._writing=!1,this.sync?this._asyncDrainScheduled||(this._asyncDrainScheduled=!0,process.nextTick(f,this)):this.emit("drain"))},this.on("newListener",function(e){"drain"===e&&(this._asyncDrainScheduled=!1)})}function f(e){let t=e.listenerCount("drain")>0;t&&(e._asyncDrainScheduled=!1,e.emit("drain"))}function h(e){let t=e.release;if(e._writing=!0,e._writingBuf=e._writingBuf||e._bufs.shift(),e.sync)try{let r=i.writeSync(e.fd,e._writingBuf,"utf8");t(null,r)}catch(e){t(e)}else i.write(e.fd,e._writingBuf,"utf8",t)}function d(e){if(-1===e.fd){e.once("ready",d.bind(null,e));return}i.close(e.fd,t=>{if(t){e.emit("error",t);return}e._ending&&!e._writing&&e.emit("finish"),e.emit("close")}),e.destroyed=!0,e._bufs=[]}s(l,o),l.prototype.write=function(e){if(this.destroyed)throw Error("SonicBoom destroyed");let t=this._len+e.length,r=this._bufs;return!this._writing&&t>16777216?r.push(e):0===r.length?r[0]=""+e:r[r.length-1]+=e,this._len=t,!this._writing&&this._len>=this.minLength&&h(this),this._len{this.reopen(e)});return}if(this._ending)return;if(!this.file)throw Error("Unable to reopen a file descriptor, you must pass a file to SonicBoom");if(this._reopening=!0,this._writing)return;let t=this.fd;this.once("ready",()=>{t!==this.fd&&i.close(t,e=>{if(e)return this.emit("error",e)})}),c(e||this.file,this)},l.prototype.end=function(){if(this.destroyed)throw Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.end()});return}!this._ending&&(this._ending=!0,this._writing||(this._len>0&&this.fd>=0?h(this):d(this)))},l.prototype.flushSync=function(){if(this.destroyed)throw Error("SonicBoom destroyed");if(this.fd<0)throw Error("sonic boom is not ready yet");for(!this._writing&&this._writingBuf.length>0&&(this._bufs.unshift(this._writingBuf),this._writingBuf="");this._bufs.length;){let e=this._bufs[0];try{this._len-=i.writeSync(this.fd,e,"utf8"),this._bufs.shift()}catch(t){if("EAGAIN"!==t.code||!this.retryEAGAIN(t,e.length,this._len-e.length))throw t;u(100)}}},l.prototype.destroy=function(){this.destroyed||d(this)},l.SonicBoom=l,l.default=l,e.exports=l},8002:e=>{"use strict";e.exports=JSON.parse('{"name":"pino","version":"6.14.0","description":"super fast, all natural json logger","main":"pino.js","browser":"./browser.js","files":["pino.js","bin.js","browser.js","pretty.js","usage.txt","test","docs","example.js","lib"],"scripts":{"docs":"docsify serve","browser-test":"airtap --local 8080 test/browser*test.js","lint":"eslint .","test":"npm run lint && tap --100 test/*test.js test/*/*test.js","test-ci":"npm run lint && tap test/*test.js test/*/*test.js --coverage-report=lcovonly","cov-ui":"tap --coverage-report=html test/*test.js test/*/*test.js","bench":"node benchmarks/utils/runbench all","bench-basic":"node benchmarks/utils/runbench basic","bench-object":"node benchmarks/utils/runbench object","bench-deep-object":"node benchmarks/utils/runbench deep-object","bench-multi-arg":"node benchmarks/utils/runbench multi-arg","bench-longs-tring":"node benchmarks/utils/runbench long-string","bench-child":"node benchmarks/utils/runbench child","bench-child-child":"node benchmarks/utils/runbench child-child","bench-child-creation":"node benchmarks/utils/runbench child-creation","bench-formatters":"node benchmarks/utils/runbench formatters","update-bench-doc":"node benchmarks/utils/generate-benchmark-doc > docs/benchmarks.md"},"bin":{"pino":"./bin.js"},"precommit":"test","repository":{"type":"git","url":"git+https://github.com/pinojs/pino.git"},"keywords":["fast","logger","stream","json"],"author":"Matteo Collina ","contributors":["David Mark Clements ","James Sumners ","Thomas Watson Steen (https://twitter.com/wa7son)"],"license":"MIT","bugs":{"url":"https://github.com/pinojs/pino/issues"},"homepage":"http://getpino.io","devDependencies":{"airtap":"4.0.3","benchmark":"^2.1.4","bole":"^4.0.0","bunyan":"^1.8.14","docsify-cli":"^4.4.1","eslint":"^7.17.0","eslint-config-standard":"^16.0.2","eslint-plugin-import":"^2.22.1","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^5.1.0","execa":"^5.0.0","fastbench":"^1.0.1","flush-write-stream":"^2.0.0","import-fresh":"^3.2.1","log":"^6.0.0","loglevel":"^1.6.7","pino-pretty":"^5.0.0","pre-commit":"^1.2.2","proxyquire":"^2.1.3","pump":"^3.0.0","semver":"^7.0.0","split2":"^3.1.1","steed":"^1.1.3","strip-ansi":"^6.0.0","tap":"^15.0.1","tape":"^5.0.0","through2":"^4.0.0","winston":"^3.3.3"},"dependencies":{"fast-redact":"^3.0.0","fast-safe-stringify":"^2.0.8","process-warning":"^1.0.0","flatstr":"^1.0.12","pino-std-serializers":"^3.1.0","quick-format-unescaped":"^4.0.3","sonic-boom":"^1.0.2"}}')}},t={};function r(i){var o=t[i];if(void 0!==o)return o.exports;var s=t[i]={exports:{}};return e[i].call(s.exports,s,s.exports,r),s.exports}(()=>{"use strict";r(726),r(1966),r(6081),r(6185),r(2092),r(139);let{getManagedCacheStorage:e,CacheStorageGroup:t}=r(9220),i=r(7310).parse;r(2290).disable=!0;let o=r(1784).PROVIDERS,s=e("bridge");s.aliveDuration=9e5;let a=(e,t)=>Promise.resolve().then(()=>{let r=e.pathname.slice(1).split("/").map(e=>decodeURIComponent(e)),i=t,o=decodeURIComponent(e.query);try{o=JSON.parse(o)}catch(e){}let a=r.some(e=>{if(!(e in i))return!0;i=i[e]});return a||"function"!=typeof i?Promise.reject():s.cache(o,()=>i(o))}),u=t.getInstance();setInterval(()=>{u.cleanup()},9e5),r(3685).createServer().listen(parseInt(process.argv[2])||9e3).on("request",(e,t)=>a(i(e.url),o).then(e=>t.write(e)).catch(()=>t.writeHead(404)).then(()=>t.end()))})()})(); \ No newline at end of file