(e)
| 2 | (()=>{var e={15:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9479),e.exports=class extends Error{constructor(e){super(`This request URL has been cancelled: ${e}`),this.name="RequestCancelled"}}},23:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(777),r(4099),r(9071);let i=r(6982),o=r(7016).parse,s=r(3480).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()})}}},api:{encryptRequest:(e,t)=>({url:(e=o(e)).href.replace(/\w*api/,"api"),body:s(t)})},linuxapi:{encrypt:e=>l(e,u),decrypt:e=>c(e,u),encryptRequest:(t,r)=>{let i=JSON.stringify({method:"POST",url:(t=o(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=`-----BEGIN PUBLIC KEY----- |
| 3 | MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC8asrfSaoOb4je+DSmKdriQJKWVJ2oDZrs3wi5W67m3LwTB9QVR+cE3XWU21Nx+YBxS0yun8wDcjgQvYt625ZCcgin2ro/eOkNyUOTBIbuj9CvMnhUYiR61lC1f1IGbrSYYimqBVSjpifVufxtx/I3exReZosTByYp4Xwpb1+WAQIDAQAB |
| 4 | -----END PUBLIC KEY-----`,u=((e,t,r,o)=>{t=t||Buffer.alloc(0);let s=r/8,a=Math.ceil((s+8*o)/32),u=Buffer.concat(Array(a).fill(null).reduce(r=>r.concat(i.createHash("md5").update(Buffer.concat([r.slice(-1)[0],e,t])).digest()),[Buffer.alloc(0)]));return{key:u.slice(0,s),iv:u.slice(s,s+o)}})(r,o,256,16),c=i.createCipheriv("aes-256-cbc",u.key,u.iv);return s({data:Buffer.concat([Buffer.from("Salted__"),o,c.update(Buffer.from(t)),c.final()]).toString("base64"),secKey:i.publicEncrypt({key:a,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),uuid:()=>i.randomUUID()}};try{e.exports.kuwoapi=r(9726)}catch(e){}},37: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");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:Symbol.for("pino.metadata"),useOnlyCustomLevelsSym:s,formattersSym:j,hooksSym:k,mixinMergeStrategySym:x}},82:(e,t,r)=>{"use strict";var i=r(8585),o=r(3695),s=r(8142),a=r(4526),u=r(1512),c=r(9589);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}},148:(e,t,r)=>{"use strict";var i=r(5422),o=r(1820);e.exports=function(e){var t=i(e,"string");return o(t)?t:t+""}},181:e=>{"use strict";e.exports=require("buffer")},202:(e,t,r)=>{"use strict";let{Transform:i}=r(2203),{StringDecoder:o}=r(3193),s=Symbol("last"),a=Symbol("decoder");function u(e,t,r){let i;if(this.overflow){if(1===(i=this[a].write(e).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;e<i.length;e++)try{l(this,this.mapper(i[e]))}catch(e){return r(e)}if(this.overflow=this[s].length>this.maxLength,this.overflow&&!this.skipOverflow)return void r(Error("maximum buffer reached"));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}},361:(e,t,r)=>{"use strict";let i=r(9896),o=r(4434),s=r(1517),a=r(9023).inherits,u=r(7048);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)return void i.write(this.fd,this._writingBuf,"utf8",this.release);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}}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){e.listenerCount("drain")>0&&(e._asyncDrainScheduled=!1,e.emit("drain"))}function h(e){e._writing=!0;let t=e._buf,r=e.release;if(t.length>0x1000000?(t=t.slice(0,0x1000000),e._buf=e._buf.slice(0x1000000)):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)return void e.once("ready",d.bind(null,e));i.close(e.fd,t=>{if(t)return void e.emit("error",t);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)return void this.once("ready",()=>{this.reopen(e)});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");return this._opening?void this.once("ready",()=>{this.end()}):this._ending?void 0:(this._ending=!0,!this._writing&&this._buf.length>0&&this.fd>=0)?void h(this):void(!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},408:(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}var o=r(181).Buffer,s=r(9023).inspect,a=s&&s.custom||"inspect";e.exports=function(){var e;function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.head=null,this.tail=null,this.length=0}return e=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?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 o.alloc(0);for(var t,r,i=o.allocUnsafe(e>>>0),s=this.head,a=0;s;)t=s.data,r=a,o.prototype.copy.call(t,i,r),a+=s.data.length,s=s.next;return i}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,i=t.data;for(e-=i.length;t=t.next;){var o=t.data,s=e>o.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=o.allocUnsafe(e),r=this.head,i=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var s=r.data,a=e>s.length?s.length:e;if(s.copy(t,t.length-e,0,a),0==(e-=a)){a===s.length?(++i,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=s.slice(a));break}++i}return this.length-=i,t}},{key:a,value:function(e,t){return s(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){var i,o,s;i=e,o=t,s=r[t],o in i?Object.defineProperty(i,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[o]=s}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},t,{depth:0,customInspect:!1}))}}],function(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(t.prototype,e),t}()},419:(e,t,r)=>{"use strict";e.exports=o;var i=r(9585);function o(e){if(!(this instanceof o))return new o(e);i.call(this,e)}r(3081)(o,i),o.prototype._transform=function(e,t,r){r(null,e)}},470:(e,t,r)=>{"use strict";var i=r(2870),o=r(6880),s=r(5032),a=r(8364),u=r(4068),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}},487:(e,t,r)=>{"use strict";var i=r(8173),o=Set.prototype;e.exports={Set:Set,add:i(o.add),has:i(o.has),remove:i(o.delete),proto:o}},488:(e,t,r)=>{"use strict";var i=r(697),o=r(5092),s=r(2675),a=r(4285);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)}})},506:(e,t,r)=>{"use strict";var i=r(6814),o=TypeError;e.exports=function(e,t){if(i(t,e))return e;throw new o("Incorrect invocation")}},574:(e,t,r)=>{"use strict";var i=r(3746),o=r(877),s=r(8034),a=r(6728),u=r(8078)("iterator");e.exports=function(e){if(!s(e))return o(e,u)||o(e,"@@iterator")||a[i(e)]}},605:(e,t,r)=>{"use strict";e.exports=O,O.ReadableState=E,r(4434).EventEmitter;var i,o,s,a,u,c=function(e,t){return e.listeners(t).length},l=r(5251),f=r(181).Buffer,h=global.Uint8Array||function(){},d=r(9023);o=d&&d.debuglog?d.debuglog("stream"):function(){};var p=r(408),y=r(849),g=r(6906).getHighWaterMark,m=r(8396).F,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(3081)(O,l);var S=y.errorOrDestroy,x=["error","close","destroy","pause","resume"];function E(e,t,o){i=i||r(5535),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(7549).I),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function O(e){if(i=i||r(5535),!(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=e._readableState;if(null===t)c.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,c);else if(s||(u=function(e,t){var r;return f.isBuffer(t)||t instanceof h||"string"==typeof t||void 0===t||e.objectMode||(r=new b("chunk",["string","Buffer","Uint8Array"],t)),r}(c,t)),u)S(e,u);else if(c.objectMode||t&&t.length>0)if("string"==typeof t||c.objectMode||Object.getPrototypeOf(t)===f.prototype||(a=t,t=f.from(a)),i)c.endEmitted?S(e,new _):k(e,c,t,!0);else if(c.ended)S(e,new v);else{if(c.destroyed)return!1;c.reading=!1,c.decoder&&!r?(t=c.decoder.write(t),c.objectMode||0!==t.length?k(e,c,t,!1):P(e,c)):k(e,c,t,!1)}else i||(c.reading=!1,P(e,c));return!c.ended&&(c.length<c.highWaterMark||0===c.length)}function k(e,t,r,i){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&R(e)),P(e,t)}function T(e,t){var r;if(e<=0||0===t.length&&t.ended)return 0;if(t.objectMode)return 1;if(e!=e)if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length;return(e>t.highWaterMark&&((r=e)>=0x40000000?r=0x40000000:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),t.highWaterMark=r),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(L,e,t))}function L(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(o("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function A(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,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 U(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return -1}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),O.prototype.destroy=y.destroy,O.prototype._undestroy=y.undestroy,O.prototype._destroy=function(e,t){t(e)},O.prototype.push=function(e,t){var r,i=this._readableState;return i.objectMode?r=!0:"string"==typeof e&&((t=t||i.defaultEncoding)!==i.encoding&&(e=f.from(e,t),t=""),r=!0),j(this,e,t,!1,r)},O.prototype.unshift=function(e){return j(this,e,null,!0,!1)},O.prototype.isPaused=function(){return!1===this._readableState.flowing},O.prototype.setEncoding=function(e){s||(s=r(7549).I);var t=new s(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var i=this._readableState.buffer.head,o="";null!==i;)o+=t.write(i.data),i=i.next;return this._readableState.buffer.clear(),""!==o&&this._readableState.buffer.push(o),this._readableState.length=o.length,this},O.prototype.read=function(e){o("read",e),e=parseInt(e,10);var t,r=this._readableState,i=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=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-e<r.highWaterMark)&&o("length less than watermark",s=!0),r.ended||r.reading?o("reading or ended",s=!1):s&&(o("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=T(i,r))),null===(t=e>0?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,i=this,s=this._readableState;switch(s.pipesCount){case 0:s.pipes=e;break;case 1:s.pipes=[s.pipes,e];break;default:s.pipes.push(e)}s.pipesCount+=1,o("pipe count=%d opts=%j",s.pipesCount,t);var a=t&&!1===t.end||e===process.stdout||e===process.stderr?g:u;function u(){o("onend"),e.end()}s.endEmitted?process.nextTick(a):i.once("end",a),e.on("unpipe",function t(r,a){o("onunpipe"),r===i&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,o("cleanup"),e.removeListener("close",p),e.removeListener("finish",y),e.removeListener("drain",l),e.removeListener("error",d),e.removeListener("unpipe",t),i.removeListener("end",u),i.removeListener("end",g),i.removeListener("data",h),f=!0,s.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l())});var l=(r=i,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",l);var f=!1;function h(t){o("ondata");var r=e.write(t);o("dest.write",r),!1===r&&((1===s.pipesCount&&s.pipes===e||s.pipesCount>1&&-1!==U(s.pipes,e))&&!f&&(o("false write response, pause",s.awaitDrain),s.awaitDrain++),i.pause())}function d(t){o("onerror",t),g(),e.removeListener("error",d),0===c(e,"error")&&S(e,t)}function p(){e.removeListener("finish",y),g()}function y(){o("onfinish"),e.removeListener("close",p),g()}function g(){o("unpipe"),i.unpipe(e)}return i.on("data",h),!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",d),e.once("close",p),e.once("finish",y),e.emit("pipe",i),s.flowing||(o("pipe resume"),i.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;s<o;s++)i[s].emit("unpipe",this,{hasUnpiped:!1});return this}var a=U(t.pipes,e);return -1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},O.prototype.on=function(e,t){var r=l.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!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(A,this),r},O.prototype.removeAllListeners=function(e){var t=l.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&process.nextTick(A,this),t},O.prototype.resume=function(){var e,t,r=this._readableState;return r.flowing||(o("resume"),r.flowing=!r.readableListening,e=this,(t=r).resumeScheduled||(t.resumeScheduled=!0,process.nextTick(D,e,t))),r.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){if(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<x.length;a++)e.on(x[a],this.emit.bind(this,x[a]));return this._read=function(t){o("wrapped _read",t),i&&(i=!1,e.resume())},this},"function"==typeof Symbol&&(O.prototype[Symbol.asyncIterator]=function(){return void 0===a&&(a=r(916)),a(this)}),Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(O.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(O.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),O._fromList=I,Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(O.from=function(e,t){return void 0===u&&(u=r(1027)),u(O,e,t)})},617:(e,t,r)=>{"use strict";let i=r(9271)();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")},623:e=>{"use strict";e.exports=function(e,t){var r="function"==typeof Iterator&&Iterator.prototype[e];if(r)try{r.call({next:null},t).next()}catch(e){return!0}}},697:(e,t,r)=>{"use strict";var i=r(2025),o=r(5212).f,s=r(4164),a=r(5369),u=r(722),c=r(8629),l=r(8813);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]&&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)}}},711:(e,t,r)=>{"use strict";let i=r(1013),{mapHttpRequest:o,mapHttpResponse:s}=r(1265),a=r(361),u=r(8183),{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(37);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(9640).prettyFactory||r(9640);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;m<y.length;m++){let e=y[m];void 0!==h[e]&&(h[e]=p[e](h[e]))}for(let e in o)h.hasOwnProperty(e)||(h[e]=o[e]);let b=i[g][w],v=e("function"==typeof b?b(h):h);void 0!==v&&(R(t,this),t.write(v))}}}function T(e){let t=new a(e);return t.on("error",function e(r){if("EPIPE"===r.code){t.write=O,t.end=O,t.flushSync=O,t.destroy=O;return}t.removeListener("error",e),t.emit("error",r)}),t}function R(e,t){!0===e[v]&&(e.lastLevel=t.lastLevel,e.lastMsg=t.lastMsg,e.lastObj=t.lastObj,e.lastTime=t.lastTime,e.lastLogger=t.lastLogger)}e.exports={noop:O,buildSafeSonicBoom:T,getPrettyStream:j,asChindings:function(e,t){let r,i=e[l],o=e[m],s=e[g],a=s[b],u=e[d];for(let c in t=(0,e[x].bindings)(t))if(r=t[c],!0===("level"!==c&&"serializers"!==c&&"formatters"!==c&&"customLevels"!==c&&t.hasOwnProperty(c)&&void 0!==r)){if(r=u[c]?u[c](r):r,void 0===(r=(s[c]||a||o)(r)))continue;i+=',"'+c+'":'+r}return i},asJson:function(e,t,r,i){let o,s=this[m],a=this[g],u=this[y],f=this[l],h=this[d],p=this[x],v=this[E],w=this[c][r]+i;w+=f;let _=void 0===e.hasOwnProperty;p.log&&(e=p.log(e)),void 0!==t&&(e[v]=t);let S=a[b];for(let t in e)if(o=e[t],(_||e.hasOwnProperty(t))&&void 0!==o){o=h[t]?h[t](o):o;let e=a[t]||S;switch(typeof o){case"undefined":case"function":continue;case"number":!1===Number.isFinite(o)&&(o=null);case"boolean":e&&(o=e(o));break;case"string":o=(e||function(e){let t="",r=0,i=!1,o=255,s=e.length;if(s>100)return JSON.stringify(e);for(var a=0;a<s&&o>=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;return!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&&(i=j(Object.assign({messageKey:l},u),c,i,t)),{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}}}},722:(e,t,r)=>{"use strict";var i=r(2025),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}},777:(e,t,r)=>{"use strict";r(8546)},816:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9479),e.exports=class extends Error{constructor(e){super("The response of yt-dlp is malformed."),this.name="YtDlpInvalidResponse",this.response=e}}},823:(e,t,r)=>{"use strict";var i=r(5773),o=r(487),s=r(1451),a=r(7417),u=r(1428),c=r(9900),l=r(8348),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(o,e)&&h(o,e)}),o}},833:(e,t,r)=>{"use strict";var i=r(5871),o=r(8350).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},849:e=>{"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)}}},857:e=>{"use strict";e.exports=require("os")},877:(e,t,r)=>{"use strict";var i=r(5869),o=r(8034);e.exports=function(e,t){var r=e[t];return o(r)?void 0:i(r)}},916:(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(9919),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])return void t(p(void 0,!0));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)return void r(e);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}},992:(e,t,r)=>{"use strict";var i=r(8173),o=Error,s=i("".replace),a=String(new 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}},1013: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<s;u++)a[u]=o(r[u]);return a.join(" ")}if("string"!=typeof e)return e;var c=r.length;if(0===c)return e;for(var l="",f=0,h=-1,d=e&&e.length||0,p=0;p<d;){if(37===e.charCodeAt(p)&&p+1<d){switch(h=h>-1?h:0,e.charCodeAt(p+1)){case 100:case 102:if(f>=c||null==r[f])break;h<p&&(l+=e.slice(h,p)),l+=Number(r[f]),h=p+2,p++;break;case 105:if(f>=c||null==r[f])break;h<p&&(l+=e.slice(h,p)),l+=Math.floor(Number(r[f])),h=p+2,p++;break;case 79:case 111:case 106:if(f>=c||void 0===r[f])break;h<p&&(l+=e.slice(h,p));var y=typeof r[f];if("string"===y){l+="'"+r[f]+"'",h=p+2,p++;break}if("function"===y){l+=r[f].name||"<anonymous>",h=p+2,p++;break}l+=o(r[f]),h=p+2,p++;break;case 115:if(f>=c)break;h<p&&(l+=e.slice(h,p)),l+=String(r[f]),h=p+2,p++;break;case 37:h<p&&(l+=e.slice(h,p)),l+="%",h=p+2,p++,f--}++f}++p}return -1===h?e:(h<d&&(l+=e.slice(h)),l)}},1021:(e,t,r)=>{"use strict";var i=r(3531),o=r(4164);e.exports=function(e,t){i(t)&&"cause"in t&&o(e,"cause",t.cause)}},1022:e=>{"use strict";function t(e,t){return null!=e&&("hasOwn"in Object?Object.hasOwn(e,t):Object.prototype.hasOwnProperty.call(e,t))}function r(e,t){for(var r=-1,i=t.length,o=e;null!=o&&++r<i;)o=o[t[r]];return o}function i(e,t,r){if(e.depth===r)return i(e.parent,t,r);var o={parent:e,key:t,depth:r,children:[]};return e.children.push(o),o}function o(e,t,r){let i=e,o=[];do o.push(i.key),i=i.parent;while(null!=i.parent)return{path:o,value:t,target:r}}e.exports={groupRedact:function(e,t,i,o,s){let a=r(e,t);if(null==a||"string"==typeof a)return{keys:null,values:null,target:a,flat:!0};let u=Object.keys(a),c=u.length,l=t.length,f=s?[...t]:void 0,h=Array(c);for(var d=0;d<c;d++){let e=u[d];h[d]=a[e],s?(f[l]=e,a[e]=i(a[e],f)):o?a[e]=i(a[e]):a[e]=i}return{keys:u,values:h,target:a,flat:!0}},groupRestore:function({keys:e,values:t,target:r}){if(null==r||"string"==typeof r)return;let i=e.length;for(var o=0;o<i;o++)r[e[o]]=t[o]},nestedRedact:function(e,s,a,u,c,l,f){let h=r(s,a);if(null==h)return;let d=Object.keys(h),p=d.length;for(var y=0;y<p;y++)!function(e,r,s,a,u,c,l,f){let h=u.length,d=h-1,p=s;var y,g,m,b,v,w=-1,_=null,S=!1,x=0,E={parent:null,key:null,children:[],depth:0};if(m=y=r[s],"object"==typeof y){for(;null!=y&&++w<h&&(x+=1,s=u[w],"*"===s||_||"object"==typeof y&&s in y);)if("*"!==s||("*"===_&&(S=!0),_=s,w===d)){if(_){let h=Object.keys(y);for(var O=0;O<h.length;O++){let _=h[O];if(v=y[_],b="*"===s,S)E=i(E,_,x),m=function e(r,s,a,u,c,l,f,h,d,p,y,g,m,b,v,w,_,S,x,E){if(0===s&&(m||"object"==typeof r&&null!==r&&a in r))if(g=m?r:r[a],y=v!==w?g:f?h?l(g,[...u,d,...c]):l(g):l,m){let e=o(_,g,x);S.push(e),p[b]=y}else if(r[a]===y);else if(void 0===y&&void 0!==l||t(r,a)&&y===g);else{let e=o(i(_,a,E+1),g,x);S.push(e),r[a]=y}for(let t in r)"object"==typeof r[t]&&(_=i(_,t,E),e(r[t],s-1,a,u,c,l,f,h,d,p,y,g,m,b,v,w,_,S,x,E+1))}(v,w-1,s,a,u,c,l,f,p,y,g,m,b,_,w,d,E,e,r[p],x+1);else if(b||"object"==typeof v&&null!==v&&s in v)if(m=b?v:v[s],g=w!==d?m:l?f?c(m,[...a,p,...u]):c(m):c,b){let t=o(i(E,_,x),m,r[p]);e.push(t),y[_]=g}else if(v[s]===g);else if(void 0===g&&void 0!==c||t(v,s)&&g===m)E=i(E,_,x);else{E=i(E,_,x);let t=o(i(E,s,x+1),m,r[p]);e.push(t),v[s]=g}}_=null}else{if(m=y[s],E=i(E,s,x),g=w!==d?m:l?f?c(m,[...a,p,...u]):c(m):c,t(y,s)&&g===m||void 0===g&&void 0!==c);else{let t=o(E,m,r[p]);e.push(t),y[s]=g}y=y[s]}if("object"!=typeof y)break}}}(e,h,d[y],a,u,c,l,f);return e},nestedRestore:function(e){for(let t=0;t<e.length;t++){let{target:r,path:i,value:o}=e[t],s=r;for(let e=i.length-1;e>0;e--)s=s[i[e]];s[i[0]]=o}}}},1027:(e,t,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(8396).F.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<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){var i,o,s;i=e,o=t,s=r[t],o in i?Object.defineProperty(i,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[o]=s}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({objectMode:!0},r)),c=!1;function l(){return f.apply(this,arguments)}function f(){var e;return e=function*(){try{var e=yield a.next(),t=e.value;e.done?u.push(null):u.push((yield t))?l():c=!1}catch(e){u.destroy(e)}},(f=function(){var t=this,r=arguments;return new Promise(function(o,s){var a=e.apply(t,r);function u(e){i(a,o,s,u,c,"next",e)}function c(e){i(a,o,s,u,c,"throw",e)}u(void 0)})}).apply(this,arguments)}return u._read=function(){c||(c=!0,l())},u}},1037:(e,t,r)=>{"use strict";var i=r(5773),o=r(487),s=r(7417),a=r(1428),u=r(9900),c=r(8348),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}},1075: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:{}})},1088:e=>{"use strict";e.exports={}},1128:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(777),r(9071),r(4914);let i=r(9588),o=r(3186),s=r(2965),{getManagedCacheStorage:a}=r(4337),u=process.env.NEW_QQ_COOKIE||process.env.QQ_COOKIE,c={origin:"http://y.qq.com/",referer:"http://y.qq.com/",cookie:u||null},l=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}))}),f=e=>(e.key=e.file,Promise.all([["F000",".flac"],["M800",".mp3"],["M500",".mp3"],[null,null]].slice(c.cookie||"undefined"!=typeof window?+!o.ENABLE_FLAC:2).map(t=>((e,t)=>{let r=((c.cookie||"").match(/uin=(\d+)/)||[])[1]||"0";return s("GET","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"}}})),c).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)})})(e,t).catch(()=>null))).then(e=>e.find(e=>e)||Promise.reject()).catch(()=>i().qq.track(e))),h=a("provider/qq");e.exports={check:e=>{let t=Math.floor(Date.now()/1e3),r=((u||"").match(/musickey_createtime=(\d+)/)||[])[1]||"",i=parseInt(r,10)+259200;return r&&i-t<600&&(()=>{let e=(u.match(/qqrefresh_token=([^;]*)/)||[])[1]||"",t=(u.match(/qqmusic_key=([^;]*)/)||[])[1]||"",r=parseInt((u.match(/uin=(\d+)/)||[])[1]||0,10);return s("POST","https://u.y.qq.com/cgi-bin/musicu.fcg",{Cookie:u,"Content-Type":"application/json"},JSON.stringify({req:{module:"music.login.LoginServer",method:"Login",param:{refresh_token:e,musickey:t,musicid:r}}})).then(e=>e.json()).then(e=>{var t;let r=(null==(t=e.req)?void 0:t.data)||{},i=r.musickey,o=r.musickeyCreateTime;if(!i||!o)return;let s=u;s=s.replace(/(qqmusic_key=)[^;]*/,`$1${i}`).replace(/(qm_keyst=)[^;]*/,`$1${i}`).replace(/(psrf_musickey_createtime=)[^;]*/,`$1${o}`),process.env.NEW_QQ_COOKIE=s,c.cookie=s,u=s})})(),h.cache(e,()=>(e=>s("GET","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}}})),c).then(e=>e.json()).then(t=>{let r=o(t.search.data.body.song.list.map(l),e);return r?r.id:Promise.reject()}))(e)).then(f)},track:f}},1142:(e,t,r)=>{"use strict";var i=r(697),o=r(7854);i({target:"Set",proto:!0,real:!0,forced:!r(6707)("isDisjointFrom",function(e){return!e})},{isDisjointFrom:o})},1144:(e,t,r)=>{var i=r(181),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)}},1185:e=>{"use strict";var t=TypeError;e.exports=function(e,r){if(e<r)throw new t("Not enough arguments");return e}},1196:(e,t,r)=>{"use strict";var i=r(1651),o=Function.prototype.call;e.exports=i?o.bind(o):function(){return o.apply(o,arguments)}},1202:(e,t,r)=>{"use strict";var i=r(697),o=r(4689),s=r(2675),a=r(4285);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)}})},1262:(e,t,r)=>{"use strict";var i=r(8173),o=r(6078),s=r(6880),a=r(2870),u=r(8585),c=r(6043).CONFIGURABLE,l=r(4833),f=r(9434),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")},1265:(e,t,r)=>{"use strict";let i=r(9950),o=r(6565),s=r(1075);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))}}}},1294:(e,t,r)=>{"use strict";var i,o,s,a=r(6078),u=r(6880),c=r(3531),l=r(2397),f=r(470),h=r(5369),d=r(8078),p=r(2250),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}},1428:(e,t,r)=>{"use strict";var i=r(5869),o=r(4526),s=r(1196),a=r(6724),u=r(6718),c="Invalid size",l=RangeError,f=TypeError,h=Math.max,d=function(e,t){this.set=e,this.size=h(t,0),this.has=i(e.has),this.keys=i(e.keys)};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 new f(c);var r=a(t);if(r<0)throw new l(c);return new d(e,r)}},1429:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(777),r(9071),r(6352),r(7903),r(6834);let i=r(9588),o=r(3186),s=r(23),a=r(2965),{getManagedCacheStorage:u}=r(4337),{logScope:c}=r(6166),l=c("provider/bodian"),f=(Math.floor(Math.random()*(1e11+1))+0).toString(),h=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}))}),d=e=>{let t={"user-agent":"Dart/2.19 (dart:io)",plat:"ar",channel:"aliopen",devid:f,ver:"3.9.0",host:"bd-api.kuwo.cn","X-Forwarded-For":"1.0.1.114"},r=`http://bd-api.kuwo.cn/api/play/music/v2/audioUrl?&br=${o.ENABLE_FLAC?"2000kflac":"320kmp3"}&musicId=${e}`;return r=(e=>{let t=new URL(e),r=Date.now(),i=(e+=`×tamp=${r}`).substring(e.indexOf("?")+1).replace(/[^a-zA-Z0-9]/g,"").split("").sort(),o=`kuwotest${i.join("")}${t.pathname}`,a=s.md5.digest(o);return`${e}&sign=${a}`})(r),a("POST","http://bd-api.kuwo.cn/api/service/advert/watch?uid=-1&token=×tamp=1724306124436&sign=15a676d66285117ad714e8c8371691da",{"user-agent":"Dart/2.19 (dart:io)",plat:"ar",channel:"aliopen",devid:f,ver:"3.9.0",host:"bd-api.kuwo.cn",qimei36:"1e9970cbcdc20a031dee9f37100017e1840e","content-type":"application/json; charset=utf-8"},JSON.stringify({type:5,subType:5,musicId:0,adToken:""})).then(e=>e.body()).then(e=>l.debug(`bodian ad free response: ${e}`)).then(()=>a("GET",r,t).then(e=>e.json()).then(e=>e&&200===e.code&&"object"==typeof e.data&&e.data.audioUrl||Promise.reject()).catch(()=>i().bodian.track(e)))},p=u("provider/bodian");e.exports={check:e=>p.cache(e,()=>(e=>a("GET","http://search.kuwo.cn/r.s?&correct=1&vipver=1&stype=comprehensive&encoding=utf8&rformat=json&mobi=1&show_copyright_off=1&searchapi=6&all="+encodeURIComponent(e.keyword.replace(" - "," "))).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=o(t.content[1].musicpage.abslist.map(h),e);return r?r.id:Promise.reject()}))(e)).then(d),track:d}},1451:(e,t,r)=>{"use strict";var i=r(487),o=r(9900),s=i.Set,a=i.add;e.exports=function(e){var t=new s;return o(e,function(e){a(t,e)}),t}},1501:(e,t,r)=>{"use strict";var i=r(697),o=r(2675),s=r(3845),a=r(6465).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<r;)s(arguments[i++],function(e,r){a(t,e,r)},{AS_ENTRIES:!0});return t}})},1512:(e,t,r)=>{"use strict";var i=r(7644),o=r(3561);e.exports=function(e){return i(o(e))}},1517:e=>{"use strict";e.exports=function(e){return e}},1561:(e,t,r)=>{"use strict";r(9268)},1576:(e,t,r)=>{"use strict";var i=r(2025).navigator,o=i&&i.userAgent;e.exports=o?String(o):""},1651:(e,t,r)=>{"use strict";e.exports=!r(6078)(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},1727:(e,t,r)=>{"use strict";let i=r(3186),o=r(2965),{getManagedCacheStorage:s}=r(4337),a=s("provider/pyncmd");e.exports={check:e=>a.cache(e,()=>o("GET","https://music-api.gdstudio.xyz/api.php?types=url&source=netease&id="+e.id+"&br="+["999","320"].slice(+!i.ENABLE_FLAC,i.ENABLE_FLAC?1:2)).then(e=>e.json()).then(e=>e&&"object"==typeof e&&!1 in e?Promise.reject():e.br>0?e.url:Promise.reject()))}},1806:(e,t,r)=>{"use strict";var i=r(697),o=r(8585),s=r(2025),a=r(7776),u=r(8173),c=r(1196),l=r(6880),f=r(3531),h=r(6475),d=r(2870),p=r(6790),y=r(2913),g=r(3557),m=r(6078),b=r(9997),v=r(2436),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]$/,L=/^[\d-]$/,A=/^[\t\n\r ]$/,N=function(e,t){var r=new B(e=p(e),0,""),i=r.parse(),o=i.value,s=r.skip(A,i.end);if(s<e.length)throw new S('Unexpected extra character: "'+j(e,s)+'" after the parsed data at: '+s);return l(t)?D({"":o},"",t,i):o},D=function(e,t,r,i){var o,s,a,u,l,p=e[t],g=i&&p===i.value,m=g&&"string"==typeof i.source?{source:i.source}:{};if(f(p)){var b=h(p),v=g?i.nodes:b?[]:{};if(b)for(u=0,o=v.length,a=y(p);u<a;u++)C(p,u,D(p,""+u,r,u<o?v[u]:void 0));else for(u=0,a=y(s=E(p));u<a;u++)C(p,l=s[u],D(p,l,r,d(v,l)?v[l]:void 0))}return c(r,e,t,p,m)},C=function(e,t,r){if(o){var i=O(e,t);if(i&&!i.configurable)return}void 0===r?delete e[t]:g(e,t,r)},I=function(e,t,r,i){this.value=e,this.end=t,this.source=r,this.nodes=i},B=function(e,t){this.source=e,this.index=t};B.prototype={fork:function(e){return new B(this.source,e)},parse:function(){var e=this.source,t=this.skip(A,this.index),r=this.fork(t),i=j(e,t);if(T(L,i))return r.number();switch(i){case"{":return r.object();case"[":return r.array();case'"':return r.string();case"t":return r.keyword(!0);case"f":return r.keyword(!1);case"n":return r.keyword(null)}throw new S('Unexpected character: "'+i+'" at: '+t)},node:function(e,t,r,i,o){return new I(t,i,e?null:k(this.source,r,i),o)},object:function(){for(var e=this.source,t=this.index+1,r=!1,i={},o={};t<e.length;){if("}"===j(e,t=this.until(['"',"}"],t))&&!r){t++;break}var s=this.fork(t).string(),a=s.value;t=s.end,t=this.until([":"],t)+1,t=this.skip(A,t),g(o,a,s=this.fork(t).parse()),g(i,a,s.value);var u=j(e,t=this.until([",","}"],s.end));if(","===u)r=!0,t++;else if("}"===u){t++;break}}return this.node(1,i,this.index,t,o)},array:function(){for(var e=this.source,t=this.index+1,r=!1,i=[],o=[];t<e.length;){if("]"===j(e,t=this.skip(A,t))&&!r){t++;break}var s=this.fork(t).parse();if(R(o,s),R(i,s.value),","===j(e,t=this.until([",","]"],s.end)))r=!0,t++;else if("]"===j(e,t)){t++;break}}return this.node(1,i,this.index,t,o)},string:function(){var e=this.index,t=b(this.source,this.index+1);return this.node(0,t.value,e,t.end)},number:function(){var e=this.source,t=this.index,r=t;if("-"===j(e,r)&&r++,"0"===j(e,r))r++;else if(T(P,j(e,r)))r=this.skip(M,r+1);else throw new S("Failed to parse number at: "+r);if("."===j(e,r)&&(r=this.skip(M,r+1)),("e"===j(e,r)||"E"===j(e,r))&&(("+"===j(e,++r)||"-"===j(e,r))&&r++,r===(r=this.skip(M,r))))throw new S("Failed to parse number's exponent value at: "+r);return this.node(0,_(k(e,t,r)),t,r)},keyword:function(e){var t=""+e,r=this.index,i=r+t.length;if(k(this.source,r,i)!==t)throw new S("Failed to parse value at: "+r);return this.node(0,e,r,i)},skip:function(e,t){for(var r=this.source;t<r.length&&T(e,j(r,t));t++);return t},until:function(e,t){t=this.skip(A,t);for(var r=j(this.source,t),i=0;i<e.length;i++)if(e[i]===r)return t;throw new S('Unexpected character: "'+r+'" at: '+t)}};var $=m(function(){var e,t="9007199254740993";return x(t,function(t,r,i){e=i.source}),e!==t}),U=v&&!m(function(){return 1/x("-0 ")!=-1/0});i({target:"JSON",stat:!0,forced:$},{parse:function(e,t){return U&&!l(t)?x(e):N(e,t)}})},1808:(e,t,r)=>{"use strict";var i=r(697),o=r(4689),s=r(2675),a=r(6465),u=r(4285),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}})},1820:(e,t,r)=>{"use strict";var i=r(7776),o=r(6880),s=r(6814),a=r(4429),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))}},1828:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9479),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"}}},1852:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor;t.f=i&&!r.call({1:2},1)?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},1933:(e,t,r)=>{"use strict";var i=r(697),o=r(4689),s=r(2675),a=r(6465),u=r(4285),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}})},1976:(e,t,r)=>{"use strict";var i=r(697),o=r(1196),s=r(5869),a=r(4526),u=r(6718),c=r(9415),l=r(4296),f=r(9384),h=r(623),d=r(8918),p=r(2250),y=!p&&!h("map",function(){}),g=!p&&!y&&d("map",TypeError),m=p||y||g,b=c(function(){var e=this.iterator,t=a(o(this.next,e));if(!(this.done=!!t.done))return l(e,this.mapper,[t.value,this.counter++],!0)});i({target:"Iterator",proto:!0,real:!0,forced:m},{map:function(e){a(this);try{s(e)}catch(e){f(this,"throw",e)}return g?o(g,this,e):new b(u(this),{mapper:e})}})},1999:(e,t,r)=>{"use strict";var i=r(7776),o=r(6880),s=r(4214),a=r(3531),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}},2018:e=>{"use strict";e.exports=require("tty")},2020:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},2025: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)||t("object"==typeof this&&this)||function(){return this}()||Function("return this")()},2076:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(777),r(9071);let i=r(9588),o=r(3186),s=r(23),a=r(2965),{getManagedCacheStorage:u}=r(4337),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=>a("GET",s.kuwoapi?"http://mobi.kuwo.cn/mobi.s?f=kuwo&q="+s.kuwoapi.encryptQuery("corp=kuwo&source=kwplayer_ar_5.1.0.0_B_jiakong_vh.apk&p2p=1&type=convert_url2&sig=0&format="+["flac","mp3"].slice(+!o.ENABLE_FLAC).join("|")+"&rid="+e):"http://antiserver.kuwo.cn/anti.s?type=convert_url&format=mp3&response=url&rid=MUSIC_"+e,{"user-agent":"okhttp/3.10.0"}).then(e=>e.body()).then(e=>(e.match(/http[^\s$"]+/)||[])[0]||Promise.reject()).catch(()=>i().kuwo.track(e)),f=u("provider/kuwo");e.exports={check:e=>f.cache(e,()=>(e=>a("GET","http://search.kuwo.cn/r.s?&correct=1&vipver=1&stype=comprehensive&encoding=utf8&rformat=json&mobi=1&show_copyright_off=1&searchapi=6&all="+encodeURIComponent(e.keyword.replace(" - "," "))).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=o(t.content[1].musicpage.abslist.map(c),e);return r?r.id:Promise.reject()}))(e)).then(l),track:l}},2083:(e,t,r)=>{"use strict";var i=r(697),o=r(2749);i({target:"Set",proto:!0,real:!0,forced:!r(6707)("isSubsetOf",function(e){return e})},{isSubsetOf:o})},2122:(e,t,r)=>{"use strict";r(6315)},2129:(e,t,r)=>{"use strict";let i=r(1517),{lsCacheSym:o,levelValSym:s,useOnlyCustomLevelsSym:a,streamSym:u,formattersSym:c,hooksSym:l}=r(37),{noop:f,genLog:h}=r(711),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),{});e.exports={initialLsCache:Object.keys(y).reduce((e,t)=>(e[t]=i('{"level":'+Number(t)),e),{}),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;return{labels:Object.assign(Object.create(Object.prototype,{Infinity:{value:"silent"}}),t?null:y,r),values:Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),t?null:d,e)}},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){if(![].concat(Object.keys(t||{}).map(e=>t[e]),r?[]:Object.keys(y).map(e=>+e),1/0).includes(e))throw Error(`default level:${e} must be included in custom levels`);return}if(!(e in Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),r?null:d,t)))throw Error(`default level:${e} must be included in custom levels`)}}},2203:e=>{"use strict";e.exports=require("stream")},2205:(e,t,r)=>{"use strict";let i=r(6208),{redactFmtSym:o,wildcardFirstSym:s}=r(37),{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})};return[...Object.keys(f),...Object.getOwnPropertySymbols(f)].reduce((e,r)=>{if(null===f[r])e[r]=e=>((...e)=>"function"==typeof u?t(u(...e)):t(u))(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)}},2250:e=>{"use strict";e.exports=!1},2262:(e,t,r)=>{"use strict";var i=r(697),o=r(3845),s=r(5869),a=r(4526),u=r(6718),c=r(9384),l=r(8918),f=r(6234),h=r(6078),d=TypeError,p=h(function(){[].keys().reduce(function(){},void 0)}),y=!p&&l("reduce",d);i({target:"Iterator",proto:!0,real:!0,forced:p||y},{reduce:function(e){a(this);try{s(e)}catch(e){c(this,"throw",e)}var t=arguments.length<2,r=t?void 0:arguments[1];if(y)return f(y,this,t?[e]:[e,r]);var i=u(this),l=0;if(o(i,function(i){t?(t=!1,r=i):r=e(r,i,l),l++},{IS_RECORD:!0}),t)throw new d("Reduce of empty iterator with no initial value");return r}})},2306:(e,t,r)=>{"use strict";let i=r(857),o=r(1265),s=r(2205),a=r(6751),u=r(5262),c=r(37),{assertDefaultLevelFound:l,mappings:f,genLsCache:h}=r(2129),{createArgsNormalizer:d,asChindings:p,final:y,stringify:g,buildSafeSonicBoom:m,buildFormatters:b,noop:v}=r(711),{version:w}=r(6011),{mixinMergeStrategySym:_}=r(37),{chindingsSym:S,redactFmtSym:x,serializersSym:E,timeSym:O,timeSliceIndexSym:j,streamSym:k,stringifySym:T,stringifiersSym:R,setLevelSym:M,endSym:P,formatOptsSym:L,messageKeySym:A,nestedKeySym:N,mixinSym:D,useOnlyCustomLevelsSym:C,formattersSym:I,hooksSym:B}=c,{epochTime:$,nullTime:U}=a,{pid:q}=process,F=i.hostname(),W=o.err,z={level:"info",messageKey:"msg",nestedKey:null,enabled:!0,prettyPrint:!1,base:{pid:q,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},G=d(z),H=Object.assign(Object.create(null),o);function K(...e){var t,r;let i={},{opts:o,stream:a}=G(i,...e),{redact:c,crlf:d,serializers:y,timestamp:m,messageKey:w,nestedKey:q,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=J):(Q||X)&&!V?(process.emitWarning("changeLevelName and levelKey are deprecated, use the formatters.level option instead","Warning","PINODEP002"),t=Q||X,ei.level=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"),r=Q||X,ei.level=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=z.formatters.bindings),ei.level||(ei.level=z.formatters.level);let eo=c?s(c,g):{},es=c?{stringify:eo[x]}:{stringify:g},ea="}"+(d?`\r |
| 5 | `:` |
| 6 | `),eu=p.bind(null,{[S]:"",[E]:y,[R]:eo,[T]:g,[I]:ei}),ec="";null!==F&&(ec=eu(void 0===W?F:Object.assign({},F,{name:W})));let el=m instanceof Function?m:m?$:U,ef=el().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"`);return l(H,Y,et),Object.assign(i,{levels:f(Y,et),[C]:et,[k]:a,[O]:el,[j]:ef,[T]:g,[R]:eo,[P]:ea,[L]:es,[A]:w,[N]:q,[E]:y,[D]:Z,[_]:ee,[S]:ec,[I]:ei,[B]:en,silent:v}),Object.setPrototypeOf(i,u()),h(i),i[M](H),i}function J(e,t){return{level:e}}e.exports=K,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=K,e.exports.pino=K},2349:(e,t,r)=>{"use strict";let i=r(9460)({circles:!0}),o=r(5402),s=r(2985),a=r(8183),{isMainThread:u}=r(8167),c=r(5550)(),{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(4249);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=` |
| 7 | `}){let i=e.split(/\r?\n/);for(let e=1;e<i.length;e+=1)i[e]=t+i[e];return i.join(r)}function x({input:e,ident:t=" ",eol:r=` |
no test coverage detected