varMY=Object.create;varH6=Object.defineProperty;var$Y=Object.getOwnPropertyDescriptor;varjY=Object.getOwnPropertyNames;varUY=Object.getPrototypeOf,BY=Object.prototype.hasOwnProperty;varC=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports),qx=(n,e)=>{for(varline)H6(n,l,{get:e[l],enumerable:!0})},Vx=(n,e,l,t)=>{if(e&&typeofe=="object"||typeofe=="function")for(letrofjY(e))!BY.call(n,r)&&r!==l&&H6(n,r,{get:()=>e[r],enumerable:!(t=$Y(e,r))||t.enumerable});returnn};varwt=(n,e,l)=>(l=n!=null?MY(UY(n)):{},Vx(e||!n||!n.__esModule?H6(l,"default",{value:n,enumerable:!0}):l,n)),HY=n=>Vx(H6({},"__esModule",{value:!0}),n);varGx=C((zbe,zx)=>{"use strict";functionqY(n){vare=newn,l=e;functiont(){vari=e;returni.next?e=i.next:(e=newn,l=e),i.next=null,i}functionr(i){l.next=i,l=i}return{get:t,release:r}}zx.exports=qY});varjp=C((Gbe,$p)=>{"use strict";varVY=Gx();functionXx(n,e,l){if(typeofn=="function"&&(l=e,e=n,n=null),!(l>=1))thrownewError("fastqueue concurrency must be equal to or greater than 1");vart=VY(zY),r=null,i=null,s=0,u=null,a={push:_,drain:y3,saturated:y3,pause:f,paused:!1,getconcurrency(){returnl},setconcurrency(A){if(!(A>=1))thrownewError("fastqueue concurrency must be equal to or greater than 1");if(l=A,!a.paused)for(;r&&s<l;)s++,T()},running:c,resume:d,idle:g,length:p,getQueue:m,unshift:S,empty:y3,kill:x,killAndDrain:v,error:b};returna;functionc(){returns}functionf(){a.paused=!0}functionp(){for(varA=r,R=0;A;)A=A.next,R++;returnR}functionm(){for(varA=r,R=[];A;)R.push(A.value),A=A.next;returnR}functiond(){if(a.paused)for(a.paused=!1;r&&s<l;)s++,T()}functiong(){returns===0&&a.length()===0}function_(A,R){varO=t.get();O.context=n,O.release=T,O.value=A,O.callback=R||y3,O.errorHandler=u,s>=l||a.paused?i?(i.next=O,i=O):(r=O,i=O,a.saturated()):(s++,e.call(n,O.value,O.worked))}functionS(A,R){varO=t.get();O.context=n,O.release=T,O.value=A,O.callback=R||y3,O.errorHandler=u,s>=l||a.paused?r?(O.next=r,r=O):(r=O,i=O,a.saturated()):(s++,e.call(n,O.value,O.worked))}functionT(A){A&&t.release(A);varR=r;R&&s<=l?a.paused?s--:(i===r&&(i=null),r=R.next,R.next=null,e.call(n,R.value,R.worked),i===null&&a.empty()):--s===0&&a.drain()}functionx(){r=null,i=null,a.drain=y3}functionv(){r=null,i=null,a.drain(),a.drain=y3}functionb(A){u=A}}functiony3(){}functionzY(){this.value=null,this.callback=y3,this.next=null,this.release=y3,this.context=null,this.errorHandler=null;varn=this;this.worked=function(l,t){varr=n.callback,i=n.errorHandler,s=n.value;n.value=null,n.callback=y3,n.errorHandler&&i(l,s),r.call(n.context,l,t),n.release(n)}}functionGY(n,e,l){typeofn=="function"&&(l=e,e=n,n=null);functiont(f,p){e.call(this,f).then(function(m){p(null,m)},p)}varr=Xx(n,t,l),i=r.push,s=r.unshift;returnr.push=u,r.unshift=a,r.drained=c,r;functionu(f){varp=newPromise(function(m,d){i(f,function(g,_){if(g){d(g);return}m(_)})});returnp.catch(y3),p}functiona(f){varp=newPromise(function(m,d){s(f,function(g,_){if(g){d(g);return}m(_)})});returnp.catch(y3),p}functionc(){if(r.idle())returnnewPromise(function(m){m()});varf=r.drain,p=newPromise(function(m){r.drain=function(){f(),m()}});returnp}}$p.exports=Xx;$p.exports.promise=GY});varBp=C((Xbe,Wx)=>{"use strict";var{inherits:XY,format:Up}=require("util");functionhu(n,e,l=Error){if(!n)thrownewError("Avvio error code must not be empty");if(!e)thrownewError("Avvio base error message must not be empty");functiont(r,i,s){if(!new.target)returnnewt(r,i,s);Error.captureStackTrace(this,t),this.code=n,this.message=e,this.name="AvvioError",r&&i&&s?this.message=Up(e,r,i,s):r&&i?this.message=Up(e,r,i):r?this.message=Up(e,r):this.message=e}returnt.prototype[Symbol.toStringTag]="Error",t.prototype.toString=function(){return`${this.name} [${this.code}]: ${this.message}`},XY(t,l),t}Wx.exports={createError:hu,AVV_ERR_EXPOSE_ALREADY_DEFINED:hu("AVV_ERR_EXPOSE_ALREADY_DEFINED","'%s' () is already defined, specify an expose option"),AVV_ERR_CALLBACK_NOT_FN:hu("AVV_ERR_CALLBACK_NOT_FN","Callback for '%s' hook is not a function. Received: '%s'"),AVV_ERR_PLUGIN_NOT_VALID:hu("AVV_ERR_PLUGIN_NOT_VALID","Plugin must be a function or a promise. Received: '%s'"),AVV_ERR_ROOT_PLG_BOOTED:hu("AVV_ERR_PLUGIN_NOT_VALID","Root plugin has already booted"),AVV_ERR_PARENT_PLG_LOADED:hu("AVV_ERR_PARENT_PLG_LOADED","Impossible to load '%s' plugin because the parent '%s' was already loaded"),AVV_ERR_READY_TIMEOUT:hu("AVV_ERR_READY_TIMEOUT","Plugin did not start in time: '%s'. You may have forgotten to call 'done' function or to resolve a Promise")}});varYx=C((Wbe,Kx)=>{Kx.exports=functionn(e,l,t){l===void0&&(l=""),t||(t={});varr=function(a){varc={"\u2502":"|","\u2514":"`","\u251C":"+","\u2500":"-","\u252C":"-"};returnt.unicode===!1?c[a]:a};typeofe=="string"&&(e={label:e});vari=e.nodes||[],s=(e.label||"").split(`
varhY=Object.create;varM6=Object.defineProperty;varmY=Object.getOwnPropertyDescriptor;vargY=Object.getOwnPropertyNames;varyY=Object.getPrototypeOf,vY=Object.prototype.hasOwnProperty;varC=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports),Dx=(n,e)=>{for(varline)M6(n,l,{get:e[l],enumerable:!0})},Lx=(n,e,l,t)=>{if(e&&typeofe=="object"||typeofe=="function")for(letrofgY(e))!vY.call(n,r)&&r!==l&&M6(n,r,{get:()=>e[r],enumerable:!(t=mY(e,r))||t.enumerable});returnn};varSt=(n,e,l)=>(l=n!=null?hY(yY(n)):{},Lx(e||!n||!n.__esModule?M6(l,"default",{value:n,enumerable:!0}):l,n)),_Y=n=>Lx(M6({},"__esModule",{value:!0}),n);varMx=C((vbe,Fx)=>{"use strict";functionEY(n){vare=newn,l=e;functiont(){vari=e;returni.next?e=i.next:(e=newn,l=e),i.next=null,i}functionr(i){l.next=i,l=i}return{get:t,release:r}}Fx.exports=EY});varDp=C((_be,Pp)=>{"use strict";varbY=Mx();function$x(n,e,l){if(typeofn=="function"&&(l=e,e=n,n=null),!(l>=1))thrownewError("fastqueue concurrency must be equal to or greater than 1");vart=bY(TY),r=null,i=null,s=0,u=null,a={push:_,drain:m3,saturated:m3,pause:f,paused:!1,getconcurrency(){returnl},setconcurrency(w){if(!(w>=1))thrownewError("fastqueue concurrency must be equal to or greater than 1");if(l=w,!a.paused)for(;r&&s<l;)s++,T()},running:c,resume:h,idle:g,length:p,getQueue:m,unshift:S,empty:m3,kill:x,killAndDrain:v,error:b};returna;functionc(){returns}functionf(){a.paused=!0}functionp(){for(varw=r,N=0;w;)w=w.next,N++;returnN}functionm(){for(varw=r,N=[];w;)N.push(w.value),w=w.next;returnN}functionh(){if(a.paused)for(a.paused=!1;r&&s<l;)s++,T()}functiong(){returns===0&&a.length()===0}function_(w,N){varO=t.get();O.context=n,O.release=T,O.value=w,O.callback=N||m3,O.errorHandler=u,s>=l||a.paused?i?(i.next=O,i=O):(r=O,i=O,a.saturated()):(s++,e.call(n,O.value,O.worked))}functionS(w,N){varO=t.get();O.context=n,O.release=T,O.value=w,O.callback=N||m3,O.errorHandler=u,s>=l||a.paused?r?(O.next=r,r=O):(r=O,i=O,a.saturated()):(s++,e.call(n,O.value,O.worked))}functionT(w){w&&t.release(w);varN=r;N&&s<=l?a.paused?s--:(i===r&&(i=null),r=N.next,N.next=null,e.call(n,N.value,N.worked),i===null&&a.empty()):--s===0&&a.drain()}functionx(){r=null,i=null,a.drain=m3}functionv(){r=null,i=null,a.drain(),a.drain=m3}functionb(w){u=w}}functionm3(){}functionTY(){this.value=null,this.callback=m3,this.next=null,this.release=m3,this.context=null,this.errorHandler=null;varn=this;this.worked=function(l,t){varr=n.callback,i=n.errorHandler,s=n.value;n.value=null,n.callback=m3,n.errorHandler&&i(l,s),r.call(n.context,l,t),n.release(n)}}functionSY(n,e,l){typeofn=="function"&&(l=e,e=n,n=null);functiont(f,p){e.call(this,f).then(function(m){p(null,m)},p)}varr=$x(n,t,l),i=r.push,s=r.unshift;returnr.push=u,r.unshift=a,r.drained=c,r;functionu(f){varp=newPromise(function(m,h){i(f,function(g,_){if(g){h(g);return}m(_)})});returnp.catch(m3),p}functiona(f){varp=newPromise(function(m,h){s(f,function(g,_){if(g){h(g);return}m(_)})});returnp.catch(m3),p}functionc(){if(r.idle())returnnewPromise(function(m){m()});varf=r.drain,p=newPromise(function(m){r.drain=function(){f(),m()}});returnp}}Pp.exports=$x;Pp.exports.promise=SY});varFp=C((Ebe,jx)=>{"use strict";var{inherits:xY,format:Lp}=require("util");functionou(n,e,l=Error){if(!n)thrownewError("Avvio error code must not be empty");if(!e)thrownewError("Avvio base error message must not be empty");functiont(r,i,s){if(!new.target)returnnewt(r,i,s);Error.captureStackTrace(this,t),this.code=n,this.message=e,this.name="AvvioError",r&&i&&s?this.message=Lp(e,r,i,s):r&&i?this.message=Lp(e,r,i):r?this.message=Lp(e,r):this.message=e}returnt.prototype[Symbol.toStringTag]="Error",t.prototype.toString=function(){return`${this.name} [${this.code}]: ${this.message}`},xY(t,l),t}jx.exports={createError:ou,AVV_ERR_EXPOSE_ALREADY_DEFINED:ou("AVV_ERR_EXPOSE_ALREADY_DEFINED","'%s' () is already defined, specify an expose option"),AVV_ERR_CALLBACK_NOT_FN:ou("AVV_ERR_CALLBACK_NOT_FN","Callback for '%s' hook is not a function. Received: '%s'"),AVV_ERR_PLUGIN_NOT_VALID:ou("AVV_ERR_PLUGIN_NOT_VALID","Plugin must be a function or a promise. Received: '%s'"),AVV_ERR_ROOT_PLG_BOOTED:ou("AVV_ERR_PLUGIN_NOT_VALID","Root plugin has already booted"),AVV_ERR_PARENT_PLG_LOADED:ou("AVV_ERR_PARENT_PLG_LOADED","Impossible to load '%s' plugin because the parent '%s' was already loaded"),AVV_ERR_READY_TIMEOUT:ou("AVV_ERR_READY_TIMEOUT","Plugin did not start in time: '%s'. You may have forgotten to call 'done' function or to resolve a Promise")}});varBx=C((bbe,Ux)=>{Ux.exports=functionn(e,l,t){l===void0&&(l=""),t||(t={});varr=function(a){varc={"\u2502":"|","\u2514":"`","\u251C":"+","\u2500":"-","\u252C":"-"};returnt.unicode===!1?c[a]:a};typeofe=="string"&&(e={label:e});vari=e.nodes||[],s=(e.label||"").split(`
deps:${l}}`};var Gie={keyword:"dependencies",type:"object",schemaType:"object",error:Tr.error,code(n){let[e,l]=Xie(n);lI(n,e),tI(n,l)}};function Xie({schema:n}){let e={},l={};for(let t in n){if(t==="__proto__")continue;let r=Array.isArray(n[t])?e:l;r[t]=n[t]}return[e,l]}function lI(n,e=n.schema){let{gen:l,data:t,it:r}=n;if(Object.keys(e).length===0)return;let i=l.let("missing");for(let s in e){let u=e[s];if(u.length===0)continue;let a=(0,M0.propertyInData)(l,t,s,r.opts.ownProperties);n.setParams({property:s,depsCount:u.length,deps:u.join(", ")}),r.allErrors?l.if(a,()=>{for(let c of u)(0,M0.checkReportMissingProp)(n,c)}):(l.if((0,Om._)`${a}&&(${(0,M0.checkMissingProp)(n,u,i)})`),(0,M0.reportMissingProp)(n,i),l.else())}}Tr.validatePropertyDeps=lI;function tI(n,e=n.schema){let{gen:l,data:t,keyword:r,it:i}=n,s=l.name("valid");for(let u in e)(0,zie.alwaysValidSchema)(i,e[u])||(l.if((0,M0.propertyInData)(l,t,u,i.opts.ownProperties),()=>{let a=n.subschema({keyword:r,schemaProp:u},s);n.mergeValidEvaluated(a,s)},()=>l.var(s,!0)),n.ok(s))}Tr.validateSchemaDeps=tI;Tr.default=Gie});var sI=C(Rm=>{"use strict";Object.defineProperty(Rm,"__esModule",{value:!0});var iI=Ze(),Wie=En(),Kie={message:"property name must be valid",params:({params:n})=>(0,iI._)`{propertyName:${n.propertyName}}`},Yie={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Kie,code(n){let{gen:e,schema:l,data:t,it:r}=n;if((0,Wie.alwaysValidSchema)(r,l))return;let i=e.name("valid");e.forIn("key",t,s=>{n.setParams({propertyName:s}),n.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},i),e.if((0,iI.not)(i),()=>{n.error(!0),r.allErrors||e.break()})}),n.ok(i)}};Rm.default=Yie});var Cm=C(Im=>{"use strict";Object.defineProperty(Im,"__esModule",{value:!0});var X8=Jt(),X3=Ze(),Jie=E3(),W8=En(),Qie={message:"must NOT have additional properties",params:({params:n})=>(0,X3._)`{additionalProperty:${n.additionalProperty}}`},Zie={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Qie,code(n){let{gen:e,schema:l,parentSchema:t,data:r,errsCount:i,it:s}=n;if(!i)throw new Error("ajv implementation error");let{allErrors:u,opts:a}=s;if(s.props=!0,a.removeAdditional!=="all"&&(0,W8.alwaysValidSchema)(s,l))return;let c=(0,X8.allSchemaProperties)(t.properties),f=(0,X8.allSchemaProperties)(t.patternProperties);p(),n.ok((0,X3._)`${i}===${Jie.default.errors}`);function p(){e.forIn("key",r,S=>{!c.length&&!f.length?g(S):e.if(m(S),()=>g(S))})}function m(S){let T;if(c.length>8){let x=(0,W8.schemaRefOrVal)(s,t.properties,"properties");T=(0,X8.isOwnProperty)(e,x,S)}else c.length?T=(0,X3.or)(...c.map(x=>(0,X3._)`${S}===${x}`)):T=X3.nil;return f.length&&(T=(0,X3.or)(T,...f.map(x=>(0,X3._)`${(0,X8.usePattern)(n,x)}.test(${S})`))),(0,X3.not)(T)}function d(S){e.code((0,X3._)`delete${r}[${S}]`)}function g(S){if(a.removeAdditional==="all"||a.removeAdditional&&l===!1){d(S);return}if(l===!1){n.setParams({additionalProperty:S}),n.error(),u||e.break();return}if(typeof l=="object"&&!(0,W8.alwaysValidSchema)(s,l)){let T=e.name("valid");a.removeAdditional==="failing"?(_(S,T,!1),e.if((0,X3.not)(T),()=>{n.reset(),d(S)})):(_(S,T),u||e.if((0,X3.not)(T),()=>e.break()))}}function _(S,T,x){let v={keyword:"additionalProperties",dataProp:S,dataPropType:W8.Type.Str};x===!1&&Object.assign(v,{compositeRule:!0,createErrors:!1,allErrors:!1}),n.subschema(v,T)}}};Im.default=Zie});var oI=C(Pm=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0});var ese=to(),uI=Jt(),km=En(),aI=Cm(),nse={keyword:"properties",type:"object",schemaType:"object",code(n){let{gen:e,schema:l,parentSchema:t,data:r,it:i}=n;i.opts.removeAdditional==="all"&&t.additionalProperties===void 0&&aI.default.code(new ese.KeywordCxt(i,aI.default,"additionalProperties"));let s=(0,uI.allSchemaProperties)(l);for(let p of s)i.definedProperties.add(p);i.opts.unevaluated&&s.length&&i.props!==!0&&(i.props=km.mergeEvaluated.props(e,(0,km.toHash)(s),i.props));let u=s.filter(p=>!(0,km.alwaysValidSchema)(i,l[p]));if(u.length===0)return;let a=e.name("valid");for(let p of u)c(p)?f(p):(e.if((0,uI.propertyInData)(e,r,p,i.opts.ownProperties)),f(p),i.allErrors||e.else().var(a,!0),e.endIf()),n.it.definedProperties.add(p),n.ok(a);function c(p){return i.opts.useDefaults&&!i.compositeRule&&l[p].default!==void 0}function f(p){n.subschema({keyword:"properties",schemaProp:p,dataProp:p},a)}}};Pm.default=nse});var dI=C(Dm=>{"use strict";Object.defineProperty(Dm,"__esModule",{value:!0});var cI=Jt(),K8=Ze(),fI=En(),pI=En(),lse={keyword:"patternProperties",type:"object",schemaType:"object",code(n){let{gen:e,schema:l,data:t,parentSchema:r,it:i}=n,{opts:s}=i,u=(0,cI.allSchemaProperties)(l),a=u.filter(_=>(0,fI.alwaysValidSchema)(i,l[_]));if(u.length===0||a.length===u.length&&(!i.opts.unevaluated||i.props===!0))return;let c=s.strictSchema&&!s.allowMatchingProperties&&r.properties,f=e.name("valid");i.props!==!0&&!(i.props instanc
Line truncated
deps:${l}}`};var Sie={keyword:"dependencies",type:"object",schemaType:"object",error:_r.error,code(n){let[e,l]=xie(n);XN(n,e),WN(n,l)}};function xie({schema:n}){let e={},l={};for(let t in n){if(t==="__proto__")continue;let r=Array.isArray(n[t])?e:l;r[t]=n[t]}return[e,l]}function XN(n,e=n.schema){let{gen:l,data:t,it:r}=n;if(Object.keys(e).length===0)return;let i=l.let("missing");for(let s in e){let u=e[s];if(u.length===0)continue;let a=(0,k0.propertyInData)(l,t,s,r.opts.ownProperties);n.setParams({property:s,depsCount:u.length,deps:u.join(", ")}),r.allErrors?l.if(a,()=>{for(let c of u)(0,k0.checkReportMissingProp)(n,c)}):(l.if((0,Sm._)`${a}&&(${(0,k0.checkMissingProp)(n,u,i)})`),(0,k0.reportMissingProp)(n,i),l.else())}}_r.validatePropertyDeps=XN;function WN(n,e=n.schema){let{gen:l,data:t,keyword:r,it:i}=n,s=l.name("valid");for(let u in e)(0,Tie.alwaysValidSchema)(i,e[u])||(l.if((0,k0.propertyInData)(l,t,u,i.opts.ownProperties),()=>{let a=n.subschema({keyword:r,schemaProp:u},s);n.mergeValidEvaluated(a,s)},()=>l.var(s,!0)),n.ok(s))}_r.validateSchemaDeps=WN;_r.default=Sie});var JN=C(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0});var YN=Ze(),Aie=En(),wie={message:"property name must be valid",params:({params:n})=>(0,YN._)`{propertyName:${n.propertyName}}`},Rie={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:wie,code(n){let{gen:e,schema:l,data:t,it:r}=n;if((0,Aie.alwaysValidSchema)(r,l))return;let i=e.name("valid");e.forIn("key",t,s=>{n.setParams({propertyName:s}),n.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},i),e.if((0,YN.not)(i),()=>{n.error(!0),r.allErrors||e.break()})}),n.ok(i)}};xm.default=Rie});var wm=C(Am=>{"use strict";Object.defineProperty(Am,"__esModule",{value:!0});var H8=Wt(),V3=Ze(),Oie=v3(),q8=En(),Nie={message:"must NOT have additional properties",params:({params:n})=>(0,V3._)`{additionalProperty:${n.additionalProperty}}`},Iie={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Nie,code(n){let{gen:e,schema:l,parentSchema:t,data:r,errsCount:i,it:s}=n;if(!i)throw new Error("ajv implementation error");let{allErrors:u,opts:a}=s;if(s.props=!0,a.removeAdditional!=="all"&&(0,q8.alwaysValidSchema)(s,l))return;let c=(0,H8.allSchemaProperties)(t.properties),f=(0,H8.allSchemaProperties)(t.patternProperties);p(),n.ok((0,V3._)`${i}===${Oie.default.errors}`);function p(){e.forIn("key",r,S=>{!c.length&&!f.length?g(S):e.if(m(S),()=>g(S))})}function m(S){let T;if(c.length>8){let x=(0,q8.schemaRefOrVal)(s,t.properties,"properties");T=(0,H8.isOwnProperty)(e,x,S)}else c.length?T=(0,V3.or)(...c.map(x=>(0,V3._)`${S}===${x}`)):T=V3.nil;return f.length&&(T=(0,V3.or)(T,...f.map(x=>(0,V3._)`${(0,H8.usePattern)(n,x)}.test(${S})`))),(0,V3.not)(T)}function h(S){e.code((0,V3._)`delete${r}[${S}]`)}function g(S){if(a.removeAdditional==="all"||a.removeAdditional&&l===!1){h(S);return}if(l===!1){n.setParams({additionalProperty:S}),n.error(),u||e.break();return}if(typeof l=="object"&&!(0,q8.alwaysValidSchema)(s,l)){let T=e.name("valid");a.removeAdditional==="failing"?(_(S,T,!1),e.if((0,V3.not)(T),()=>{n.reset(),h(S)})):(_(S,T),u||e.if((0,V3.not)(T),()=>e.break()))}}function _(S,T,x){let v={keyword:"additionalProperties",dataProp:S,dataPropType:q8.Type.Str};x===!1&&Object.assign(v,{compositeRule:!0,createErrors:!1,allErrors:!1}),n.subschema(v,T)}}};Am.default=Iie});var eI=C(Om=>{"use strict";Object.defineProperty(Om,"__esModule",{value:!0});var Cie=Za(),QN=Wt(),Rm=En(),ZN=wm(),kie={keyword:"properties",type:"object",schemaType:"object",code(n){let{gen:e,schema:l,parentSchema:t,data:r,it:i}=n;i.opts.removeAdditional==="all"&&t.additionalProperties===void 0&&ZN.default.code(new Cie.KeywordCxt(i,ZN.default,"additionalProperties"));let s=(0,QN.allSchemaProperties)(l);for(let p of s)i.definedProperties.add(p);i.opts.unevaluated&&s.length&&i.props!==!0&&(i.props=Rm.mergeEvaluated.props(e,(0,Rm.toHash)(s),i.props));let u=s.filter(p=>!(0,Rm.alwaysValidSchema)(i,l[p]));if(u.length===0)return;let a=e.name("valid");for(let p of u)c(p)?f(p):(e.if((0,QN.propertyInData)(e,r,p,i.opts.ownProperties)),f(p),i.allErrors||e.else().var(a,!0),e.endIf()),n.it.definedProperties.add(p),n.ok(a);function c(p){return i.opts.useDefaults&&!i.compositeRule&&l[p].default!==void 0}function f(p){n.subschema({keyword:"properties",schemaProp:p,dataProp:p},a)}}};Om.default=kie});var rI=C(Nm=>{"use strict";Object.defineProperty(Nm,"__esModule",{value:!0});var nI=Wt(),V8=Ze(),lI=En(),tI=En(),Pie={keyword:"patternProperties",type:"object",schemaType:"object",code(n){let{gen:e,schema:l,data:t,parentSchema:r,it:i}=n,{opts:s}=i,u=(0,nI.allSchemaProperties)(l),a=u.filter(_=>(0,lI.alwaysValidSchema)(i,l[_]));if(u.length===0||a.length===u.length&&(!i.opts.unevaluated||i.props===!0))return;let c=s.strictSchema&&!s.allowMatchingProperties&&r.properties,f=e.name("valid");i.props!==!0&&!(i.props instanc
Line truncated
`;let u=new E5e(e),a=new b5e(e.ajv);for(let f of l.validatorSchemasIds){let p=l.refResolver.getSchema(f);a.addSchema(p,f);let m=l.refResolver.getSchemaDependencies(f);for(let[d,g]of Object.entries(m))a.addSchema(g,d)}if(e.debugMode&&(e.mode="debug"),e.mode==="debug")return{validator:a,serializer:u,code:`validator
`;let u=new J1e(e),a=new Q1e(e.ajv);for(let f of l.validatorSchemasIds){let p=l.refResolver.getSchema(f);a.addSchema(p,f);let m=l.refResolver.getSchemaDependencies(f);for(let[h,g]of Object.entries(m))a.addSchema(g,h)}if(e.debugMode&&(e.mode="debug"),e.mode==="debug")return{validator:a,serializer:u,code:`validator
serializer
${s}`,ajv:a.ajv};let c=new Function("validator","serializer",s);return e.mode==="standalone"?ag()(c,l,u,a):c(a,u)}var x5e=["properties","required","additionalProperties","patternProperties","maxProperties","minProperties","dependencies"],w5e=["items","additionalItems","maxItems","minItems","uniqueItems","contains"],A5e=["maxLength","minLength","pattern"],N5e=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum"];function CD(n){for(var e of x5e)if(e in n)return"object";for(var e of w5e)if(e in n)return"array";for(var e of A5e)if(e in n)return"string";for(var e of N5e)if(e in n)return"number";return n.type}function O5e(n,e){let l=e.schema,t=Object.keys(l.properties||{}),r=`
${s}`,ajv:a.ajv};let c=new Function("validator","serializer",s);return e.mode==="standalone"?tg()(c,l,u,a):c(a,u)}var n5e=["properties","required","additionalProperties","patternProperties","maxProperties","minProperties","dependencies"],l5e=["items","additionalItems","maxItems","minItems","uniqueItems","contains"],t5e=["maxLength","minLength","pattern"],r5e=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum"];function TD(n){for(var e of n5e)if(e in n)return"object";for(var e of l5e)if(e in n)return"array";for(var e of t5e)if(e in n)return"string";for(var e of r5e)if(e in n)return"number";return n.type}function i5e(n,e){let l=e.schema,t=Object.keys(l.properties||{}),r=`
`,r}function R5e(n,e){let l="",t=e.schema,r=t.required||[],i=e.getPropertyLocation("properties"),s=[],u=[];if(t.properties)for(let c of Object.keys(t.properties)){if(r.indexOf(c)===-1)continue;let f=i.getPropertyLocation(c);f.schema.$ref&&(f=bo(n,e,f.schema.$ref));let p=JSON.stringify(c);f.schema.default===void 0&&(l+=`if(obj[${p}]===undefined)thrownewError('${p} is required!')
`,r}function s5e(n,e){let l="",t=e.schema,r=t.required||[],i=e.getPropertyLocation("properties"),s=[],u=[];if(t.properties)for(let c of Object.keys(t.properties)){if(r.indexOf(c)===-1)continue;let f=i.getPropertyLocation(c);f.schema.$ref&&(f=yo(n,e,f.schema.$ref));let p=JSON.stringify(c);f.schema.default===void 0&&(l+=`if(obj[${p}]===undefined)thrownewError('${p} is required!')
`,u.push(c)),s.push(c)}for(let c of r)s.indexOf(c)===-1&&(l+=`if(obj['${c}']===undefined)thrownewError('"${c}" is required!')
`);l+=`
letaddComma=false
letjson='${n.wrapObjects?"{":""}'
`;let a=n.wrapObjects;if(n.wrapObjects=!0,t.properties)for(let c of Object.keys(t.properties)){let f=i.getPropertyLocation(c);f.schema.$ref&&(f=bo(n,e,f.schema.$ref));let p=JSON.stringify(c);if(u.indexOf(c)!==-1)l+=`
${Eo}
`;let a=n.wrapObjects;if(n.wrapObjects=!0,t.properties)for(let c of Object.keys(t.properties)){let f=i.getPropertyLocation(c);f.schema.$ref&&(f=yo(n,e,f.schema.$ref));let p=JSON.stringify(c);if(u.indexOf(c)!==-1)l+=`
${e}`)}function Z9(n,e,l,t){if((n.isLeafNode||t.commonPrefix!==!1)&&(l=l||"(empty root node)",e=e[l]={},n.isLeafNode&&(e[DF]=k9e(n,l,t)),l=""),n.staticChildren)for(let r of Object.values(n.staticChildren))Z9(r,e,l+r.prefix,t);if(n.parametricChildren)for(let r of Object.values(n.parametricChildren)){let i=Array.from(r.nodePaths).join("|");Z9(r,e,l+i,t)}n.wildcardChild&&Z9(n.wildcardChild,e,"*",t)}function P9e(n,e){let l={};return Z9(n,l,n.prefix,e),LF(l)}MF.exports={prettyPrintTree:P9e}});var UF=C((vAe,jF)=>{"use strict";var D9e=Q9(),av=class{constructor(){this.unconstrainedHandler=null,this.constraints=[],this.handlers=[],this.constrainedHandlerStores=null}getMatchingHandler(e){return e===void 0?this.unconstrainedHandler:this._getHandlerMatchingConstraints(e)}addHandler(e,l){let t=l.params,r=l.opts.constraints||{},i={params:t,constraints:r,handler:l.handler,store:l.store||null,_createParamsObject:this._compileCreateParamsObject(t)},s=Object.keys(r);s.length===0&&(this.unconstrainedHandler=i);for(let a of s)this.constraints.includes(a)||(a==="version"?this.constraints.unshift(a):this.constraints.push(a));let u=s.includes(D9e.name);if(!u&&this.handlers.length>=32)throw new Error("find-my-way supports a maximum of 32 route handlers per node when there are constraints, limit reached");this.handlers.push(i),this.handlers.sort((a,c)=>Object.keys(a.constraints).length-Object.keys(c.constraints).length),u||this._compileGetHandlerMatchingConstraints(e,r)}_compileCreateParamsObject(e){let l=[];for(let t=0;t<e.length;t++)l.push(`'${e[t]}':paramsArray[${t}]`);return new Function("paramsArray",`return{${l.join(",")}}`)}_getHandlerMatchingConstraints(){return null}_buildConstraintStore(e,l){for(let t=0;t<this.handlers.length;t++){let i=this.handlers[t].constraints[l];if(i!==void 0){let s=e.get(i)||0;s|=1<<t,e.set(i,s)}}}_constrainedIndexBitmask(e){let l=0;for(let t=0;t<this.handlers.length;t++)this.handlers[t].constraints[e]!==void 0&&(l|=1<<t);return~l}_compileGetHandlerMatchingConstraints(e){this.constrainedHandlerStores={};for(let t of this.constraints){let r=e.newStoreForConstraint(t);this.constrainedHandlerStores[t]=r,this._buildConstraintStore(r,t)}let l=[];l.push(`
`,l+=wF(s,e+c)}return l}function t9e(n){let e=n.name||"";return e=e.replace("bound","").trim(),e=(e||"anonymous")+"()",e}function RF(n){return Array.isArray(n)?n.map(e=>RF(e)):typeof n=="symbol"?n.toString():typeof n=="function"?t9e(n):n}function r9e(n,e){if(!e.includeMeta)return{};let l=e.buildPrettyMeta(n),t={},r=e.includeMeta;Array.isArray(r)||(r=Reflect.ownKeys(l));for(let i of r){if(!Object.prototype.hasOwnProperty.call(l,i))continue;let s=i.toString(),u=l[i];if(u!=null){let a=JSON.stringify(RF(u));t[s]=a}}return t}function i9e(n){let e="";for(let[l,t]of Object.entries(n))e+=`
${e}`)}function W9(n,e,l,t){if((n.isLeafNode||t.commonPrefix!==!1)&&(l=l||"(empty root node)",e=e[l]={},n.isLeafNode&&(e[AF]=o9e(n,l,t)),l=""),n.staticChildren)for(let r of Object.values(n.staticChildren))W9(r,e,l+r.prefix,t);if(n.parametricChildren)for(let r of Object.values(n.parametricChildren)){let i=Array.from(r.nodePaths).join("|");W9(r,e,l+i,t)}n.wildcardChild&&W9(n.wildcardChild,e,"*",t)}function c9e(n,e){let l={};return W9(n,l,n.prefix,e),wF(l)}OF.exports={prettyPrintTree:c9e}});var CF=C((zAe,IF)=>{"use strict";var f9e=X9(),tv=class{constructor(){this.unconstrainedHandler=null,this.constraints=[],this.handlers=[],this.constrainedHandlerStores=null}getMatchingHandler(e){return e===void 0?this.unconstrainedHandler:this._getHandlerMatchingConstraints(e)}addHandler(e,l){let t=l.params,r=l.opts.constraints||{},i={params:t,constraints:r,handler:l.handler,store:l.store||null,_createParamsObject:this._compileCreateParamsObject(t)},s=Object.keys(r);s.length===0&&(this.unconstrainedHandler=i);for(let a of s)this.constraints.includes(a)||(a==="version"?this.constraints.unshift(a):this.constraints.push(a));let u=s.includes(f9e.name);if(!u&&this.handlers.length>=32)throw new Error("find-my-way supports a maximum of 32 route handlers per node when there are constraints, limit reached");this.handlers.push(i),this.handlers.sort((a,c)=>Object.keys(a.constraints).length-Object.keys(c.constraints).length),u||this._compileGetHandlerMatchingConstraints(e,r)}_compileCreateParamsObject(e){let l=[];for(let t=0;t<e.length;t++)l.push(`'${e[t]}':paramsArray[${t}]`);return new Function("paramsArray",`return{${l.join(",")}}`)}_getHandlerMatchingConstraints(){return null}_buildConstraintStore(e,l){for(let t=0;t<this.handlers.length;t++){let i=this.handlers[t].constraints[l];if(i!==void 0){let s=e.get(i)||0;s|=1<<t,e.set(i,s)}}}_constrainedIndexBitmask(e){let l=0;for(let t=0;t<this.handlers.length;t++)this.handlers[t].constraints[e]!==void 0&&(l|=1<<t);return~l}_compileGetHandlerMatchingConstraints(e){this.constrainedHandlerStores={};for(let t of this.constraints){let r=e.newStoreForConstraint(t);this.constrainedHandlerStores[t]=r,this._buildConstraintStore(r,t)}let l=[];l.push(`
`)}for(let t in e.strategies)e.strategies[t].mustMatchWhenDerived&&!this.constraints.includes(t)&&l.push(`if(derivedConstraints.${t}!==undefined)returnnull`);l.push("return this.handlers[Math.floor(Math.log2(candidates))]"),this._getHandlerMatchingConstraints=new Function("derivedConstraints",l.join(`
`))}};jF.exports=av});var HF=C((_Ae,BF)=>{"use strict";var L9e=UF(),i7={STATIC:0,PARAMETRIC:1,WILDCARD:2},e7=class{constructor(){this.isLeafNode=!1,this.routes=null,this.handlerStorage=null}addRoute(e,l){this.routes===null&&(this.routes=[]),this.handlerStorage===null&&(this.handlerStorage=new L9e),this.isLeafNode=!0,this.routes.push(e),this.handlerStorage.addHandler(l,e)}},n7=class extends e7{constructor(){super(),this.staticChildren={}}findStaticMatchingChild(e,l){let t=this.staticChildren[e.charAt(l)];return t===void 0||!t.matchPrefix(e,l)?null:t}getStaticChild(e,l=0){if(e.length===l)return this;let t=this.findStaticMatchingChild(e,l);return t?t.getStaticChild(e,l+t.prefix.length):null}createStaticChild(e){if(e.length===0)return this;let l=this.staticChildren[e.charAt(0)];if(l){let r=1;for(;r<l.prefix.length;r++)if(e.charCodeAt(r)!==l.prefix.charCodeAt(r)){l=l.split(this,r);break}return l.createStaticChild(e.slice(r))}let t=e.charAt(0);return this.staticChildren[t]=new l7(e),this.staticChildren[t]}},l7=class n extends n7{constructor(e){super(),this.prefix=e,this.wildcardChild=null,this.parametricChildren=[],this.kind=i7.STATIC,this._compilePrefixMatch()}getParametricChild(e){let l=e&&e.source,t=this.parametricChildren.find(r=>(r.regex&&r.regex.source)===l);return t||null}createParametricChild(e,l,t){let r=this.getParametricChild(e);return r?(r.nodePaths.add(t),r):(r=new t7(e,l,t),this.parametricChildren.push(r),this.parametricChildren.sort((i,s)=>i.isRegex?s.isRegex?i.staticSuffix===null?1:s.staticSuffix===null?-1:s.staticSuffix.endsWith(i.staticSuffix)?1:i.staticSuffix.endsWith(s.staticSuffix)?-1:0:-1:1),r)}getWildcardChild(){return this.wildcardChild?this.wildcardChild:null}createWildcardChild(){return this.wildcardChild=this.getWildcardChild()||new r7,this.wildcardChild}split(e,l){let t=this.prefix.slice(0,l),r=this.prefix.slice(l);this.prefix=r,this._compilePrefixMatch();let i=new n(t);return i.staticChildren[r.charAt(0)]=this,e.staticChildren[t.charAt(0)]=i,i}getNextNode(e,l,t,r){let i=this.findStaticMatchingChild(e,l),s=0;if(i===null){if(this.parametricChildren.length===0)return this.wildcardChild;i=this.parametricChildren[0],s=1}this.wildcardChild!==null&&t.push({paramsCount:r,brotherPathIndex:l,brotherNode:this.wildcardChild});for(let u=this.parametricChildren.length-1;u>=s;u--)t.push({paramsCount:r,brotherPathIndex:l,brotherNode:this.parametricChildren[u]});return i}_compilePrefixMatch(){if(this.prefix.length===1){this.matchPrefix=()=>!0;return}let e=[];for(let l=1;l<this.prefix.length;l++){let t=this.prefix.charCodeAt(l);e.push(`path.charCodeAt(i+${l})===${t}`)}this.matchPrefix=new Function("path","i",`return${e.join(" && ")}`)}},t7=class extends n7{constructor(e,l,t){super(),this.isRegex=!!e,this.regex=e||null,this.staticSuffix=l||null,this.kind=i7.PARAMETRIC,this.nodePaths=new Set([t])}getNextNode(e,l){return this.findStaticMatchingChild(e,l)}},r7=class extends e7{constructor(){super(),this.kind=i7.WILDCARD}getNextNode(){return null}};BF.exports={StaticNode:l7,ParametricNode:t7,WildcardNode:r7,NODE_TYPES:i7}});var VF=C((EAe,qF)=>{"use strict";var F9e=require("assert");function _1(){if(!(this instanceof _1))return new _1;this.store={},this.maxMajor=0,this.maxMinors={},this.maxPatches={}}_1.prototype.set=function(n,e){if(typeof n!="string")throw new TypeError("Version should be a string");let[l,t,r]=n.split(".");return l=Number(l)||0,t=Number(t)||0,r=Number(r)||0,l>=this.maxMajor&&(this.maxMajor=l,this.store.x=e,this.store["*"]=e,this.store["x.x"]=e,this.store["x.x.x"]=e),t>=(this.maxMinors[l]||0)&&(this.maxMinors[l]=t,this.store[`${l}.x`]=e,this.store[`${l}.x.x`]=e),r>=(this.store[`${l}.${t}`]||0)&&(this.maxPatches[`${l}.${t}`]=r,this.store[`${l}.${t}.x`]=e),this.store[`${l}.${t}.${r}`]=e,this};_1.prototype.get=function(n){return this.store[n]};qF.exports={name:"version",mustMatchWhenDerived:!0,storage:_1,validate(n){F9e(typeof n=="string","Version should be a string")}}});var GF=C((bAe,zF)=>{"use strict";var M9e=require("assert");function $9e(){let n={},e=[];return{get:l=>{let t=n[l];if(t)return t;for(let r of e)if(r.host.test(l))return r.value},set:(l,t)=>{l instanceof RegExp?e.push({host:l,value:t}):n[l]=t}}}zF.exports={name:"host",mustMatchWhenDerived:!1,storage:$9e,validate(n){M9e(typeof n=="string"||Object.prototype.toString.call(n)==="[object RegExp]","Host should be a string or a RegExp")}}});var WF=C((TAe,XF)=>{"use strict";var j9e=VF(),U9e=GF(),ov=require("assert"),cv=class{constructor(e){if(this.strategies={version:j9e,host:U9e},this.strategiesInUse=new Set,this.asyncStrategiesInUse=new Set,e)for(let l of Object.values(e))this.addConstraintStrategy(l)}isStrategyUsed(e){return this.strategiesInUse.has(e)||this.asyncStrategiesInUse.has(e)}hasConstraintStrategy(e){let l=this.strategies[e];return l!==void 0?l.isCustom||this.isStrategyUsed(e):!1}addConstraintStrategy(e){if(ov(typeof e.name=="string"&&e.name!=="","strategy.name is required."),ov(e.storage&&typeof e.storage=="function
Line truncated
`)).bind(this)}};XF.exports=cv});var YF=C((SAe,KF)=>{"use strict";var B9e=["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"];KF.exports=B9e});var ZF=C((xAe,QF)=>{"use strict";function JF(n,e){return n===50?e===53?"%":e===51?"#":e===52?"$":e===54?"&":e===66||e===98?"+":e===67||e===99?",":e===70||e===102?"/":null:n===51?e===65||e===97?":":e===66||e===98?";":e===68||e===100?"=":e===70||e===102?"?":null:n===52&&e===48?"@":null}function H9e(n,e){let l=!1,t=!1,r="";for(let s=1;s<n.length;s++){let u=n.charCodeAt(s);if(u===37){let a=n.charCodeAt(s+1),c=n.charCodeAt(s+2);JF(a,c)===null?l=!0:(t=!0,a===50&&c===53&&(l=!0,n=n.slice(0,s+1)+"25"+n.slice(s+1),s+=2),s+=2)}else if(u===63||u===35||u===59&&e){r=n.slice(s+1),n=n.slice(0,s);break}}return{path:l?decodeURI(n):n,querystring:r,shouldDecodeParam:t}}function q9e(n){let e=n.indexOf("%");if(e===-1)return n;let l="",t=e;for(let r=e;r<n.length;r++)if(n.charCodeAt(r)===37){let i=n.charCodeAt(r+1),s=n.charCodeAt(r+2),u=JF(i,s);l+=n.slice(t,r)+u,t=r+3}return n.slice(0,e)+l+n.slice(t)}QF.exports={safeDecodeURI:H9e,safeDecodeURIComponent:q9e}});var gv=C((wAe,sM)=>{"use strict";var dt=require("assert"),V9e=EF(),s7=IF(),dv=no(),{prettyPrintTree:z9e}=$F(),{StaticNode:eM,NODE_TYPES:fv}=HF(),G9e=WF(),Do=YF(),pv=Q9(),{safeDecodeURI:X9e,safeDecodeURIComponent:nM}=ZF(),lM=/^https?:\/\/.*?\//,Bu=/(\/:[^/()]*?)\?(\/?)/;if(!s7(lM))throw new Error("the FULL_PATH_REGEXP is not safe, update this module");if(!s7(Bu))throw new Error("the OPTIONAL_PARAM_REGEXP is not safe, update this module");function Kl(n){if(!(this instanceof Kl))return new Kl(n);n=n||{},this._opts=n,n.defaultRoute?(dt(typeof n.defaultRoute=="function","The default route must be a function"),this.defaultRoute=n.defaultRoute):this.defaultRoute=null,n.onBadUrl?(dt(typeof n.onBadUrl=="function","The bad url handler must be a function"),this.onBadUrl=n.onBadUrl):this.onBadUrl=null,n.buildPrettyMeta?(dt(typeof n.buildPrettyMeta=="function","buildPrettyMeta must be a function"),this.buildPrettyMeta=n.buildPrettyMeta):this.buildPrettyMeta=W9e,n.querystringParser?(dt(typeof n.querystringParser=="function","querystringParser must be a function"),this.querystringParser=n.querystringParser):this.querystringParser=e=>e===""?{}:V9e.parse(e),this.caseSensitive=n.caseSensitive===void 0?!0:n.caseSensitive,this.ignoreTrailingSlash=n.ignoreTrailingSlash||!1,this.ignoreDuplicateSlashes=n.ignoreDuplicateSlashes||!1,this.maxParamLength=n.maxParamLength||100,this.allowUnsafeRegex=n.allowUnsafeRegex||!1,this.constrainer=new G9e(n.constraints),this.useSemicolonDelimiter=n.useSemicolonDelimiter||!1,this.routes=[],this.trees={}}Kl.prototype.on=function(e,l,t,r,i){typeof t=="function"&&(r!==void 0&&(i=r),r=t,t={}),dt(typeof l=="string","Path should be a string"),dt(l.length>0,"The path could not be empty"),dt(l[0]==="/"||l[0]==="*","The first character of a path should be `/` or `*`"),dt(typeof r=="function","Handler should be a function");let s=l.match(Bu);if(s){dt(l.length===s.index+s[0].length,"Optional Parameter needs to be the last parameter of the path");let c=l.replace(Bu,"$1$2"),f=l.replace(Bu,"$2");this.on(e,c,t,r,i),this.on(e,f,t,r,i);return}let u=l;this.ignoreDuplicateSlashes&&(l=hv(l)),this.ignoreTrailingSlash&&(l=mv(l));let a=Array.isArray(e)?e:[e];for(let c of a)dt(typeof c=="string","Method should be a string"),dt(Do.includes(c),`Method'${c}'isnotanhttpmethod.`),this._on(c,l,t,r,i,u)};Kl.prototype._on=function(e,l,t,r,i){let s={};t.constraints!==void 0&&(dt(typeof t.constraints=="object"&&t.constraints!==null,"Constraints should be an object"),Object.keys(t.constraints).length!==0&&(s=t.constraints)),this.constrainer.validateConstraints(s),this.constrainer.noteUsage(s),this.trees[e]===void 0&&(this.trees[e]=new eM("/"));let u=l;if(u==="*"&&this.trees[e].prefix.length!==0){let m=this.trees[e];this.trees[e]=new eM(""),this.trees[e].staticChildren["/"]=m}let a=this.trees[e],c=a.prefix.length,f=[];for(let m=0;m<=u.length;m++){if(u.charCodeAt(m)===58&&u.charCodeAt(m+1)===58){m++;continue}let d=u.charCodeAt(m)===58&&u.charCodeAt(m+1)!==58,g=u.charCodeAt(m)===42;if(d||g||m===u.length&&m!==c){let _=u.slice(c,m);this.caseSensitive||(_=_.toLowerCase()),_=_.split("::").join(":"),_=_.split("%").join("%25"),a=a.createStaticChild(_)}if(d){let _=!1,S=[],T=m+1;for(let x=T;;x++){let v=u.charCodeAt(x),b=v===40,A=v===45||v===46,R=v===47||x===u.length;if(b||A||R){let O=u.slice(T,x);if(f.push(O),_=_||b||A,b){let L=iM(u,x),Q=u.slice(x,L+1);this.allowUnsafeRegex||dt(s7(new RegExp(Q)),`Theregex'${Q}'isnotsafe!`),S.push(rM(Q)),x=L+1}else S.push("(.*?)");let k=x;for(;x<u.length;x++){let L=u.charCodeAt(x);if(L===47)break;if(L===58)if(u.charCodeAt(x+1)===58)x++;else break}let j=u.slice(k,x);if(j&&(j=
Line truncated
`))}};IF.exports=tv});var PF=C((GAe,kF)=>{"use strict";var p9e=CF(),e7={STATIC:0,PARAMETRIC:1,WILDCARD:2},K9=class{constructor(){this.isLeafNode=!1,this.routes=null,this.handlerStorage=null}addRoute(e,l){this.routes===null&&(this.routes=[]),this.handlerStorage===null&&(this.handlerStorage=new p9e),this.isLeafNode=!0,this.routes.push(e),this.handlerStorage.addHandler(l,e)}},Y9=class extends K9{constructor(){super(),this.staticChildren={}}findStaticMatchingChild(e,l){let t=this.staticChildren[e.charAt(l)];return t===void 0||!t.matchPrefix(e,l)?null:t}getStaticChild(e,l=0){if(e.length===l)return this;let t=this.findStaticMatchingChild(e,l);return t?t.getStaticChild(e,l+t.prefix.length):null}createStaticChild(e){if(e.length===0)return this;let l=this.staticChildren[e.charAt(0)];if(l){let r=1;for(;r<l.prefix.length;r++)if(e.charCodeAt(r)!==l.prefix.charCodeAt(r)){l=l.split(this,r);break}return l.createStaticChild(e.slice(r))}let t=e.charAt(0);return this.staticChildren[t]=new J9(e),this.staticChildren[t]}},J9=class n extends Y9{constructor(e){super(),this.prefix=e,this.wildcardChild=null,this.parametricChildren=[],this.kind=e7.STATIC,this._compilePrefixMatch()}getParametricChild(e){let l=e&&e.source,t=this.parametricChildren.find(r=>(r.regex&&r.regex.source)===l);return t||null}createParametricChild(e,l,t){let r=this.getParametricChild(e);return r?(r.nodePaths.add(t),r):(r=new Q9(e,l,t),this.parametricChildren.push(r),this.parametricChildren.sort((i,s)=>i.isRegex?s.isRegex?i.staticSuffix===null?1:s.staticSuffix===null?-1:s.staticSuffix.endsWith(i.staticSuffix)?1:i.staticSuffix.endsWith(s.staticSuffix)?-1:0:-1:1),r)}getWildcardChild(){return this.wildcardChild?this.wildcardChild:null}createWildcardChild(){return this.wildcardChild=this.getWildcardChild()||new Z9,this.wildcardChild}split(e,l){let t=this.prefix.slice(0,l),r=this.prefix.slice(l);this.prefix=r,this._compilePrefixMatch();let i=new n(t);return i.staticChildren[r.charAt(0)]=this,e.staticChildren[t.charAt(0)]=i,i}getNextNode(e,l,t,r){let i=this.findStaticMatchingChild(e,l),s=0;if(i===null){if(this.parametricChildren.length===0)return this.wildcardChild;i=this.parametricChildren[0],s=1}this.wildcardChild!==null&&t.push({paramsCount:r,brotherPathIndex:l,brotherNode:this.wildcardChild});for(let u=this.parametricChildren.length-1;u>=s;u--)t.push({paramsCount:r,brotherPathIndex:l,brotherNode:this.parametricChildren[u]});return i}_compilePrefixMatch(){if(this.prefix.length===1){this.matchPrefix=()=>!0;return}let e=[];for(let l=1;l<this.prefix.length;l++){let t=this.prefix.charCodeAt(l);e.push(`path.charCodeAt(i+${l})===${t}`)}this.matchPrefix=new Function("path","i",`return${e.join(" && ")}`)}},Q9=class extends Y9{constructor(e,l,t){super(),this.isRegex=!!e,this.regex=e||null,this.staticSuffix=l||null,this.kind=e7.PARAMETRIC,this.nodePaths=new Set([t])}getNextNode(e,l){return this.findStaticMatchingChild(e,l)}},Z9=class extends K9{constructor(){super(),this.kind=e7.WILDCARD}getNextNode(){return null}};kF.exports={StaticNode:J9,ParametricNode:Q9,WildcardNode:Z9,NODE_TYPES:e7}});var LF=C((XAe,DF)=>{"use strict";var d9e=require("assert");function h1(){if(!(this instanceof h1))return new h1;this.store={},this.maxMajor=0,this.maxMinors={},this.maxPatches={}}h1.prototype.set=function(n,e){if(typeof n!="string")throw new TypeError("Version should be a string");let[l,t,r]=n.split(".");return l=Number(l)||0,t=Number(t)||0,r=Number(r)||0,l>=this.maxMajor&&(this.maxMajor=l,this.store.x=e,this.store["*"]=e,this.store["x.x"]=e,this.store["x.x.x"]=e),t>=(this.maxMinors[l]||0)&&(this.maxMinors[l]=t,this.store[`${l}.x`]=e,this.store[`${l}.x.x`]=e),r>=(this.store[`${l}.${t}`]||0)&&(this.maxPatches[`${l}.${t}`]=r,this.store[`${l}.${t}.x`]=e),this.store[`${l}.${t}.${r}`]=e,this};h1.prototype.get=function(n){return this.store[n]};DF.exports={name:"version",mustMatchWhenDerived:!0,storage:h1,validate(n){d9e(typeof n=="string","Version should be a string")}}});var MF=C((WAe,FF)=>{"use strict";var h9e=require("assert");function m9e(){let n={},e=[];return{get:l=>{let t=n[l];if(t)return t;for(let r of e)if(r.host.test(l))return r.value},set:(l,t)=>{l instanceof RegExp?e.push({host:l,value:t}):n[l]=t}}}FF.exports={name:"host",mustMatchWhenDerived:!1,storage:m9e,validate(n){h9e(typeof n=="string"||Object.prototype.toString.call(n)==="[object RegExp]","Host should be a string or a RegExp")}}});var jF=C((KAe,$F)=>{"use strict";var g9e=LF(),y9e=MF(),rv=require("assert"),iv=class{constructor(e){if(this.strategies={version:g9e,host:y9e},this.strategiesInUse=new Set,this.asyncStrategiesInUse=new Set,e)for(let l of Object.values(e))this.addConstraintStrategy(l)}isStrategyUsed(e){return this.strategiesInUse.has(e)||this.asyncStrategiesInUse.has(e)}hasConstraintStrategy(e){let l=this.strategies[e];return l!==void 0?l.isCustom||this.isStrategyUsed(e):!1}addConstraintStrategy(e){if(rv(typeof e.name=="string"&&e.name!=="","strategy.name is required."),rv(e.storage&&typeof e.storage=="function
Line truncated
`)).bind(this)}};$F.exports=iv});var BF=C((YAe,UF)=>{"use strict";var v9e=["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"];UF.exports=v9e});var VF=C((JAe,qF)=>{"use strict";function HF(n,e){return n===50?e===53?"%":e===51?"#":e===52?"$":e===54?"&":e===66||e===98?"+":e===67||e===99?",":e===70||e===102?"/":null:n===51?e===65||e===97?":":e===66||e===98?";":e===68||e===100?"=":e===70||e===102?"?":null:n===52&&e===48?"@":null}function _9e(n,e){let l=!1,t=!1,r="";for(let s=1;s<n.length;s++){let u=n.charCodeAt(s);if(u===37){let a=n.charCodeAt(s+1),c=n.charCodeAt(s+2);HF(a,c)===null?l=!0:(t=!0,a===50&&c===53&&(l=!0,n=n.slice(0,s+1)+"25"+n.slice(s+1),s+=2),s+=2)}else if(u===63||u===35||u===59&&e){r=n.slice(s+1),n=n.slice(0,s);break}}return{path:l?decodeURI(n):n,querystring:r,shouldDecodeParam:t}}function E9e(n){let e=n.indexOf("%");if(e===-1)return n;let l="",t=e;for(let r=e;r<n.length;r++)if(n.charCodeAt(r)===37){let i=n.charCodeAt(r+1),s=n.charCodeAt(r+2),u=HF(i,s);l+=n.slice(t,r)+u,t=r+3}return n.slice(0,e)+l+n.slice(t)}qF.exports={safeDecodeURI:_9e,safeDecodeURIComponent:E9e}});var fv=C((QAe,JF)=>{"use strict";var ct=require("assert"),b9e=fF(),n7=bF(),av=Ja(),{prettyPrintTree:T9e}=NF(),{StaticNode:zF,NODE_TYPES:sv}=PF(),S9e=jF(),Io=BF(),uv=X9(),{safeDecodeURI:x9e,safeDecodeURIComponent:GF}=VF(),XF=/^https?:\/\/.*?\//,Fu=/(\/:[^/()]*?)\?(\/?)/;if(!n7(XF))throw new Error("the FULL_PATH_REGEXP is not safe, update this module");if(!n7(Fu))throw new Error("the OPTIONAL_PARAM_REGEXP is not safe, update this module");function Gl(n){if(!(this instanceof Gl))return new Gl(n);n=n||{},this._opts=n,n.defaultRoute?(ct(typeof n.defaultRoute=="function","The default route must be a function"),this.defaultRoute=n.defaultRoute):this.defaultRoute=null,n.onBadUrl?(ct(typeof n.onBadUrl=="function","The bad url handler must be a function"),this.onBadUrl=n.onBadUrl):this.onBadUrl=null,n.buildPrettyMeta?(ct(typeof n.buildPrettyMeta=="function","buildPrettyMeta must be a function"),this.buildPrettyMeta=n.buildPrettyMeta):this.buildPrettyMeta=A9e,n.querystringParser?(ct(typeof n.querystringParser=="function","querystringParser must be a function"),this.querystringParser=n.querystringParser):this.querystringParser=e=>e===""?{}:b9e.parse(e),this.caseSensitive=n.caseSensitive===void 0?!0:n.caseSensitive,this.ignoreTrailingSlash=n.ignoreTrailingSlash||!1,this.ignoreDuplicateSlashes=n.ignoreDuplicateSlashes||!1,this.maxParamLength=n.maxParamLength||100,this.allowUnsafeRegex=n.allowUnsafeRegex||!1,this.constrainer=new S9e(n.constraints),this.useSemicolonDelimiter=n.useSemicolonDelimiter||!1,this.routes=[],this.trees={}}Gl.prototype.on=function(e,l,t,r,i){typeof t=="function"&&(r!==void 0&&(i=r),r=t,t={}),ct(typeof l=="string","Path should be a string"),ct(l.length>0,"The path could not be empty"),ct(l[0]==="/"||l[0]==="*","The first character of a path should be `/` or `*`"),ct(typeof r=="function","Handler should be a function");let s=l.match(Fu);if(s){ct(l.length===s.index+s[0].length,"Optional Parameter needs to be the last parameter of the path");let c=l.replace(Fu,"$1$2"),f=l.replace(Fu,"$2");this.on(e,c,t,r,i),this.on(e,f,t,r,i);return}let u=l;this.ignoreDuplicateSlashes&&(l=ov(l)),this.ignoreTrailingSlash&&(l=cv(l));let a=Array.isArray(e)?e:[e];for(let c of a)ct(typeof c=="string","Method should be a string"),ct(Io.includes(c),`Method'${c}'isnotanhttpmethod.`),this._on(c,l,t,r,i,u)};Gl.prototype._on=function(e,l,t,r,i){let s={};t.constraints!==void 0&&(ct(typeof t.constraints=="object"&&t.constraints!==null,"Constraints should be an object"),Object.keys(t.constraints).length!==0&&(s=t.constraints)),this.constrainer.validateConstraints(s),this.constrainer.noteUsage(s),this.trees[e]===void 0&&(this.trees[e]=new zF("/"));let u=l;if(u==="*"&&this.trees[e].prefix.length!==0){let m=this.trees[e];this.trees[e]=new zF(""),this.trees[e].staticChildren["/"]=m}let a=this.trees[e],c=a.prefix.length,f=[];for(let m=0;m<=u.length;m++){if(u.charCodeAt(m)===58&&u.charCodeAt(m+1)===58){m++;continue}let h=u.charCodeAt(m)===58&&u.charCodeAt(m+1)!==58,g=u.charCodeAt(m)===42;if(h||g||m===u.length&&m!==c){let _=u.slice(c,m);this.caseSensitive||(_=_.toLowerCase()),_=_.split("::").join(":"),_=_.split("%").join("%25"),a=a.createStaticChild(_)}if(h){let _=!1,S=[],T=m+1;for(let x=T;;x++){let v=u.charCodeAt(x),b=v===40,w=v===45||v===46,N=v===47||x===u.length;if(b||w||N){let O=u.slice(T,x);if(f.push(O),_=_||b||w,b){let L=YF(u,x),Q=u.slice(x,L+1);this.allowUnsafeRegex||ct(n7(new RegExp(Q)),`Theregex'${Q}'isnotsafe!`),S.push(KF(Q)),x=L+1}else S.push("(.*?)");let k=x;for(;x<u.length;x++){let L=u.charCodeAt(x);if(L===47)break;if(L===58)if(u.charCodeAt(x+1)===58)x++;else break}let j=u.slice(k,x);if(j&&(j=
Line truncated
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"},iU={};function sU(n,e){var l=e.getSiblings(n);return l.length<=1||(n=l.indexOf(n))<0||n===l.length-1?[]:l.slice(n+1).filter(e.isTag)}function E_(n){return{xmlMode:!!n.xmlMode,lowerCaseAttributeNames:!!n.lowerCaseAttributeNames,lowerCaseTags:!!n.lowerCaseTags,quirksMode:!!n.quirksMode,cacheResults:!!n.cacheResults,pseudos:n.pseudos,adapter:n.adapter,equals:n.equals}}var Jv=(n,e,l,t,r)=>{let i=r(e,E_(l),t);return i===An.trueFunc?n:i===An.falseFunc?An.falseFunc:s=>i(s)&&n(s)},Qv={is:Jv,matches:Jv,where:Jv,not(n,e,l,t,r){let i=r(e,E_(l),t);return i===An.falseFunc?n:i===An.trueFunc?An.falseFunc:s=>!i(s)&&n(s)},has(n,e,l,t,r){let i=l.adapter,s=E_(l),u=(s.relativeSelector=!0,e.some(f=>f.some(v_))?[iU]:void 0),a=r(e,s,u);if(a===An.falseFunc)return An.falseFunc;let c=function(f,p){return f===An.falseFunc?An.falseFunc:m=>p.isTag(m)&&f(m)}(a,i);if(u&&a!==An.trueFunc){let{shouldTestNextSiblings:f=!1}=a;return d=>{if(!n(d))return!1;u[0]=d;var m=i.getChildren(d),d=f?[...m,...sU(d,i)]:m;return i.existsOne(c,d)}}return f=>n(f)&&i.existsOne(c,i.getChildren(f))}};function Zv(n,e){return(n=e.getParent(n))&&e.isTag(n)?n:null}function ipe(n,e,l,t,r){let{adapter:i,equals:s}=l;switch(e.type){case en.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case en.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case en.Attribute:if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return l.xmlMode&&!l.lowerCaseAttributeNames||(e.name=e.name.toLowerCase()),npe[e.action](n,e,l);case en.Pseudo:return function(u,a,c,f,p){let{name:m,data:d}=a;if(Array.isArray(d)){if(m in Qv)return Qv[m](u,d,c,f,p);throw new Error(`Unknownpseudo-class:${m}(${d})`)}let g=(a=c.pseudos)==null?void 0:a[m],_=typeof g=="string"?g:rpe[m];if(typeof _=="string"){if(d!=null)throw new Error(`Pseudo${m}doesn'thaveanyarguments`);let S=ec(_);return Qv.is(u,S,c,f,p)}if(typeof g=="function")return z$(g,m,d,1),S=>g(S,d)&&u(S);if(m in __)return __[m](u,d,c,f);if(m in V$){let S=V$[m];return z$(S,m,d,2),T=>S(T,c,d)&&u(T)}throw new Error("Unknown pseudo-class :"+m)}(n,e,l,t,r);case en.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let u=e.name;return l.xmlMode&&!l.lowerCaseTags||(u=u.toLowerCase()),function(a){return i.getName(a)===u&&n(a)}}case en.Descendant:{if(l.cacheResults===!1||typeof WeakSet>"u")return function(a){let c=a;for(;c=Zv(c,i);)if(n(c))return!0;return!1};let u=new WeakSet;return function(a){let c=a;for(;c=Zv(c,i);)if(!u.has(c)){if(i.isTag(c)&&n(c))return!0;u.add(c)}return!1}}case"_flexibleDescendant":return function(u){let a=u;do if(n(a))return!0;while(a=Zv(a,i));return!1};case en.Parent:return function(u){return i.getChildren(u).some(a=>i.isTag(a)&&n(a))};case en.Child:return function(u){return(u=i.getParent(u))!=null&&i.isTag(u)&&n(u)};case en.Sibling:return function(u){var a=i.getSiblings(u);for(let f=0;f<a.length;f++){var c=a[f];if(s(u,c))break;if(i.isTag(c)&&n(c))return!0}return!1};case en.Adjacent:return i.prevElementSibling?function(u){return(u=i.prevElementSibling(u))!=null&&n(u)}:function(u){var a=i.getSiblings(u);let c;for(let p=0;p<a.length;p++){var f=a[p];if(s(u,f))break;i.isTag(f)&&(c=f)}return!!c&&n(c)};case en.Universal:if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return n}}function uU(n){return n.type===en.Pseudo&&(n.name==="scope"||Array.isArray(n.data)&&n.data.some(e=>e.some(uU)))}var spe={type:en.Descendant},upe={type:"_flexibleDescendant"},ape={type:en.Pseudo,name:"scope",data:null};function aU(n,e,l){n.forEach(Qfe),l=(s=e.context)!=null?s:l;let t=Array.isArray(l),r=l&&(Array.isArray(l)?l:[l]);if(e.relativeSelector!==!1)(function(u,{adapter:a},c){var f=!(c==null||!c.every(p=>{var m=a.isTag(p)&&a.getParent(p);return p===iU||m&&a.isTag(m)}));for(let p of u){if(!(0<p.length&&v_(p[0])&&p[0].type!==en.Descendant)){if(!f||p.some(uU))continue;p.unshift(spe)}p.unshift(ape)}})(n,e,r);else if(n.some(u=>0<u.length&&v_(u[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let i=!1;var s=n.map(u=>{if(2<=u.length){let[a,c]=u;a.type===en.Pseudo&&a.name==="scope"&&(t&&c.type===en.D
Line truncated
`)}}):{name:t,value:r.replace(X$,`\r
`)}}).toArray()}}),B1=function(n,e,l){if(this.length=0,this.options=l,this._root=e,n){for(var t=0;t<n.length;t++)this[t]=n[t];this.length=n.length}},Q_=(B1.prototype.cheerio="[cheerio object]",B1.prototype.splice=Array.prototype.splice,B1.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],Object.assign(B1.prototype,zfe,Ape,kpe,Ppe,Lpe),function(n,e){return(Q_=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(l,t){l.__proto__=t}:function(l,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(l[r]=t[r])}))(n,e)}),Fpe=function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function l(){this.constructor=n}Q_(n,e),n.prototype=e===null?Object.create(e):(l.prototype=e.prototype,new l)},H1=function(){return(H1=Object.assign||function(n){for(var e,l=1,t=arguments.length;l<t;l++)for(var r in e=arguments[l])Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}).apply(this,arguments)},Mpe=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),ql="\uFFFD",W$=(function(n){n[n.EOF=-1]="EOF",n[n.NULL=0]="NULL",n[n.TABULATION=9]="TABULATION",n[n.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",n[n.LINE_FEED=10]="LINE_FEED",n[n.FORM_FEED=12]="FORM_FEED",n[n.SPACE=32]="SPACE",n[n.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",n[n.QUOTATION_MARK=34]="QUOTATION_MARK",n[n.NUMBER_SIGN=35]="NUMBER_SIGN",n[n.AMPERSAND=38]="AMPERSAND",n[n.APOSTROPHE=39]="APOSTROPHE",n[n.HYPHEN_MINUS=45]="HYPHEN_MINUS",n[n.SOLIDUS=47]="SOLIDUS",n[n.DIGIT_0=48]="DIGIT_0",n[n.DIGIT_9=57]="DIGIT_9",n[n.SEMICOLON=59]="SEMICOLON",n[n.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",n[n.EQUALS_SIGN=61]="EQUALS_SIGN",n[n.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",n[n.QUESTION_MARK=63]="QUESTION_MARK",n[n.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",n[n.LATIN_CAPITAL_F=70]="LATIN_CAPITAL_F",n[n.LATIN_CAPITAL_X=88]="LATIN_CAPITAL_X",n[n.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",n[n.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",n[n.GRAVE_ACCENT=96]="GRAVE_ACCENT",n[n.LATIN_SMALL_A=97]="LATIN_SMALL_A",n[n.LATIN_SMALL_F=102]="LATIN_SMALL_F",n[n.LATIN_SMALL_X=120]="LATIN_SMALL_X",n[n.LATIN_SMALL_Z=122]="LATIN_SMALL_Z",n[n.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"}(P=P||{}),"--"),K$="[CDATA[",Y$="doctype",$o="script",$pe="public",jpe="system";function bU(n){return 55296<=n&&n<=57343}function TU(n){return n!==32&&n!==10&&n!==13&&n!==9&&n!==12&&1<=n&&n<=31||127<=n&&n<=159}function SU(n){return 64976<=n&&n<=65007||Mpe.has(n)}(function(n){n.controlCharacterInInputStream="control-character-in-input-stream",n.noncharacterInInputStream="noncharacter-in-input-stream",n.surrogateInInputStream="surrogate-in-input-stream",n.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",n.endTagWithAttributes="end-tag-with-attributes",n.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",n.unexpectedSolidusInTag="unexpected-solidus-in-tag",n.unexpectedNullCharacter="unexpected-null-character",n.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",n.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",n.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",n.missingEndTagName="missing-end-tag-name",n.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",n.unknownNamedCharacterReference="unknown-named-character-reference",n.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",n.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",n.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",n.eofBeforeTagName="eof-before-tag-name",n.eofInTag="eof-in-tag",n.missingAttributeValue="missing-attribute-value",n.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",n.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",n.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",n.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",n.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",n.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",n.missingDoctypePublicIdentifier="missing-doctype-public-identifier",n.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",n.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",n.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",n.cdataInHtmlContent="cdata-in-html-content",n.incorrectlyOpenedComment="incorrectly-opened-comm
Line truncated
`,this.firstUpdate&&(j+=" "),this.message=j+(this.message||""),this.firstUpdate=!1,this},b}function c(T){return l.toString.call(T)==="[object Function]"}function f(T){return l.toString.call(T)==="[object Array]"}function p(T){return l.toString.call(T)==="[object String]"}function m(T){return l.toString.call(T)==="[object Object]"}function d(T){var x=function(v){return v?typeof v=="string"?v.split("."):[v]:[]}(T);return function(v){for(var b=v,A=0;A<x.length;A++){var R=x[A];if(!s(b,R))return;b=b[R]}return b}}function g(T){return Array.prototype.slice.call(T)}function _(T,x,v){return Array.prototype.indexOf.call(T||[],x,v)}function S(T){var x,v=[];for(x in T)s(T,x)&&v.push(x);return v}i.hasOwnProp=s,i._prettifyError=function(T,x,v){return(v=v.Update?v:new i.TemplateError(v)).Update(T),x||(T=v,(v=new Error(T.message)).name=T.name),v},Object.setPrototypeOf?Object.setPrototypeOf(a.prototype,Error.prototype):a.prototype=Object.create(Error.prototype,{constructor:{value:a}}),i.TemplateError=a,i.escape=function(T){return T.replace(r,u)},i.isFunction=c,i.isArray=f,i.isString=p,i.isObject=m,i.getAttrGetter=d,i.groupBy=function(T,x,v){for(var b={},A=c(x)?x:d(x),R=0;R<T.length;R++){var O=T[R],k=A(O,R);if(k===void 0&&v===!0)throw new TypeError('groupby: attribute "'+x+'" resolved to undefined');(b[k]||(b[k]=[])).push(O)}return b},i.toArray=g,i.without=function(T){var x=[];if(T)for(var v=T.length,b=g(arguments).slice(1),A=-1;++A<v;)_(b,T[A])===-1&&x.push(T[A]);return x},i.repeat=function(T,x){for(var v="",b=0;b<x;b++)v+=T;return v},i.each=function(T,x,v){if(T!=null){if(e.forEach&&T.forEach===e.forEach)T.forEach(x,v);else if(T.length===+T.length)for(var b=0,A=T.length;b<A;b++)x.call(v,T[b],b,T)}},i.map=function(T,x){var v=[];if(T!=null){if(e.map&&T.map===e.map)return T.map(x);for(var b=0;b<T.length;b++)v[v.length]=x(T[b],b);T.length===+T.length&&(v.length=T.length)}return v},i.asyncIter=function(T,x,v){var b=-1;(function A(){++b<T.length?x(T[b],b,A,v):v()})()},i.asyncFor=function(T,x,v){var b=S(T||{}),A=b.length,R=-1;(function O(){var k=b[++R];R<A?x(k,T[k],R,A,O):v()})()},i.indexOf=_,i.keys=S,i._entries=function(T){return S(T).map(function(x){return[x,T[x]]})},i._values=function(T){return S(T).map(function(x){return T[x]})},i._assign=i.extend=function(T,x){return T=T||{},S(x).forEach(function(v){T[v]=x[v]}),T},i.inOperator=function(T,x){if(f(x)||p(x))return x.indexOf(T)!==-1;if(m(x))return T in x;throw new Error('Cannot use "in" operator to search for "'+T+'" in unexpected types.')}});function WU(){throw new Error("setTimeout has not been defined")}function KU(){throw new Error("clearTimeout has not been defined")}var hs=WU,ms=KU;function YU(n){if(hs===setTimeout)return setTimeout(n,0);if((hs===WU||!hs)&&setTimeout)return(hs=setTimeout)(n,0);try{return hs(n,0)}catch{try{return hs.call(null,n,0)}catch{return hs.call(this,n,0)}}}typeof Ai.setTimeout=="function"&&(hs=setTimeout),typeof Ai.clearTimeout=="function"&&(ms=clearTimeout);var Yu,Oi=[],e4=!1,D7=-1;function Fde(){e4&&Yu&&(e4=!1,Yu.length?Oi=Yu.concat(Oi):D7=-1,Oi.length)&&JU()}function JU(){if(!e4){var n=YU(Fde);e4=!0;for(var e=Oi.length;e;){for(Yu=Oi,Oi=[];++D7<e;)Yu&&Yu[D7].run();D7=-1,e=Oi.length}Yu=null,e4=!1,function(l){if(ms===clearTimeout)return clearTimeout(l);if((ms===KU||!ms)&&clearTimeout)return(ms=clearTimeout)(l);try{ms(l)}catch{try{return ms.call(null,l)}catch{return ms.call(this,l)}}}(n)}}function QU(n,e){this.fun=n,this.array=e}function la(){}QU.prototype.run=function(){this.fun.apply(null,this.array)};var Mde=la,$de=la,jde=la,Ude=la,Bde=la,Hde=la,qde=la,Vo=Ai.performance||{},Vde=Vo.now||Vo.mozNow||Vo.msNow||Vo.oNow||Vo.webkitNow||function(){return new Date().getTime()},zde=new Date,bs={nextTick:function(n){var e=new Array(arguments.length-1);if(1<arguments.length)for(var l=1;l<arguments.length;l++)e[l-1]=arguments[l];Oi.push(new QU(n,e)),Oi.length!==1||e4||YU(JU)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Mde,addListener:$de,once:jde,off:Ude,removeListener:Bde,removeAllListeners:Hde,emit:qde,binding:function(n){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(n){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(n){var l=.001*Vde.call(Vo),e=Math.floor(l),l=Math.floor(l%1*1e9);return n&&(e-=n[0],(l-=n[1])<0)&&(e--,l+=1e9),[e,l]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-zde)/1e3}};function gs(){}function wl(){wl.init.call(this)}function ZU(n){return n._maxListeners===void 0?wl.defaultMaxListeners:n._maxListeners}function Aj(n,e,l,t){var r,i;if(typeof l!="function")throw new TypeError('"listener" argument must be a function');return(r=n._events)?(r.newListener&&(n.emit("newListener",e,l.listener||l),r=n._events),i=r[e]):(r=n._events=new gs,n._eventsCount=0),i?(typeof i=="function"?i=r[e]=t?[l,i]:[i,l]:t?i.unshift(l):i.push(l),!i.warned&&(t=ZU(n))&&0<t&&i.length>t&&(i.warned=!0,(t=new Error("Possible EventEm
Line truncated
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"},Yj={};function Jj(n,e){var l=e.getSiblings(n);return l.length<=1||(n=l.indexOf(n))<0||n===l.length-1?[]:l.slice(n+1).filter(e.isTag)}function m_(n){return{xmlMode:!!n.xmlMode,lowerCaseAttributeNames:!!n.lowerCaseAttributeNames,lowerCaseTags:!!n.lowerCaseTags,quirksMode:!!n.quirksMode,cacheResults:!!n.cacheResults,pseudos:n.pseudos,adapter:n.adapter,equals:n.equals}}var Gv=(n,e,l,t,r)=>{let i=r(e,m_(l),t);return i===wn.trueFunc?n:i===wn.falseFunc?wn.falseFunc:s=>i(s)&&n(s)},Xv={is:Gv,matches:Gv,where:Gv,not(n,e,l,t,r){let i=r(e,m_(l),t);return i===wn.falseFunc?n:i===wn.trueFunc?wn.falseFunc:s=>!i(s)&&n(s)},has(n,e,l,t,r){let i=l.adapter,s=m_(l),u=(s.relativeSelector=!0,e.some(f=>f.some(d_))?[Yj]:void 0),a=r(e,s,u);if(a===wn.falseFunc)return wn.falseFunc;let c=function(f,p){return f===wn.falseFunc?wn.falseFunc:m=>p.isTag(m)&&f(m)}(a,i);if(u&&a!==wn.trueFunc){let{shouldTestNextSiblings:f=!1}=a;return h=>{if(!n(h))return!1;u[0]=h;var m=i.getChildren(h),h=f?[...m,...Jj(h,i)]:m;return i.existsOne(c,h)}}return f=>n(f)&&i.existsOne(c,i.getChildren(f))}};function Wv(n,e){return(n=e.getParent(n))&&e.isTag(n)?n:null}function Ffe(n,e,l,t,r){let{adapter:i,equals:s}=l;switch(e.type){case en.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case en.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case en.Attribute:if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return l.xmlMode&&!l.lowerCaseAttributeNames||(e.name=e.name.toLowerCase()),kfe[e.action](n,e,l);case en.Pseudo:return function(u,a,c,f,p){let{name:m,data:h}=a;if(Array.isArray(h)){if(m in Xv)return Xv[m](u,h,c,f,p);throw new Error(`Unknownpseudo-class:${m}(${h})`)}let g=(a=c.pseudos)==null?void 0:a[m],_=typeof g=="string"?g:Lfe[m];if(typeof _=="string"){if(h!=null)throw new Error(`Pseudo${m}doesn'thaveanyarguments`);let S=K7(_);return Xv.is(u,S,c,f,p)}if(typeof g=="function")return F$(g,m,h,1),S=>g(S,h)&&u(S);if(m in h_)return h_[m](u,h,c,f);if(m in L$){let S=L$[m];return F$(S,m,h,2),T=>S(T,c,h)&&u(T)}throw new Error("Unknown pseudo-class :"+m)}(n,e,l,t,r);case en.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let u=e.name;return l.xmlMode&&!l.lowerCaseTags||(u=u.toLowerCase()),function(a){return i.getName(a)===u&&n(a)}}case en.Descendant:{if(l.cacheResults===!1||typeof WeakSet>"u")return function(a){let c=a;for(;c=Wv(c,i);)if(n(c))return!0;return!1};let u=new WeakSet;return function(a){let c=a;for(;c=Wv(c,i);)if(!u.has(c)){if(i.isTag(c)&&n(c))return!0;u.add(c)}return!1}}case"_flexibleDescendant":return function(u){let a=u;do if(n(a))return!0;while(a=Wv(a,i));return!1};case en.Parent:return function(u){return i.getChildren(u).some(a=>i.isTag(a)&&n(a))};case en.Child:return function(u){return(u=i.getParent(u))!=null&&i.isTag(u)&&n(u)};case en.Sibling:return function(u){var a=i.getSiblings(u);for(let f=0;f<a.length;f++){var c=a[f];if(s(u,c))break;if(i.isTag(c)&&n(c))return!0}return!1};case en.Adjacent:return i.prevElementSibling?function(u){return(u=i.prevElementSibling(u))!=null&&n(u)}:function(u){var a=i.getSiblings(u);let c;for(let p=0;p<a.length;p++){var f=a[p];if(s(u,f))break;i.isTag(f)&&(c=f)}return!!c&&n(c)};case en.Universal:if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return n}}function Qj(n){return n.type===en.Pseudo&&(n.name==="scope"||Array.isArray(n.data)&&n.data.some(e=>e.some(Qj)))}var Mfe={type:en.Descendant},$fe={type:"_flexibleDescendant"},jfe={type:en.Pseudo,name:"scope",data:null};function Zj(n,e,l){n.forEach(Nfe),l=(s=e.context)!=null?s:l;let t=Array.isArray(l),r=l&&(Array.isArray(l)?l:[l]);if(e.relativeSelector!==!1)(function(u,{adapter:a},c){var f=!(c==null||!c.every(p=>{var m=a.isTag(p)&&a.getParent(p);return p===Yj||m&&a.isTag(m)}));for(let p of u){if(!(0<p.length&&d_(p[0])&&p[0].type!==en.Descendant)){if(!f||p.some(Qj))continue;p.unshift(Mfe)}p.unshift(jfe)}})(n,e,r);else if(n.some(u=>0<u.length&&d_(u[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let i=!1;var s=n.map(u=>{if(2<=u.length){let[a,c]=u;a.type===en.Pseudo&&a.name==="scope"&&(t&&c.type===en.D
Line truncated
`)}}):{name:t,value:r.replace($$,`\r
`)}}).toArray()}}),F1=function(n,e,l){if(this.length=0,this.options=l,this._root=e,n){for(var t=0;t<n.length;t++)this[t]=n[t];this.length=n.length}},X_=(F1.prototype.cheerio="[cheerio object]",F1.prototype.splice=Array.prototype.splice,F1.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],Object.assign(F1.prototype,Tfe,tpe,ope,cpe,ppe),function(n,e){return(X_=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(l,t){l.__proto__=t}:function(l,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(l[r]=t[r])}))(n,e)}),dpe=function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function l(){this.constructor=n}X_(n,e),n.prototype=e===null?Object.create(e):(l.prototype=e.prototype,new l)},M1=function(){return(M1=Object.assign||function(n){for(var e,l=1,t=arguments.length;l<t;l++)for(var r in e=arguments[l])Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}).apply(this,arguments)},hpe=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Ul="\uFFFD",j$=(function(n){n[n.EOF=-1]="EOF",n[n.NULL=0]="NULL",n[n.TABULATION=9]="TABULATION",n[n.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",n[n.LINE_FEED=10]="LINE_FEED",n[n.FORM_FEED=12]="FORM_FEED",n[n.SPACE=32]="SPACE",n[n.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",n[n.QUOTATION_MARK=34]="QUOTATION_MARK",n[n.NUMBER_SIGN=35]="NUMBER_SIGN",n[n.AMPERSAND=38]="AMPERSAND",n[n.APOSTROPHE=39]="APOSTROPHE",n[n.HYPHEN_MINUS=45]="HYPHEN_MINUS",n[n.SOLIDUS=47]="SOLIDUS",n[n.DIGIT_0=48]="DIGIT_0",n[n.DIGIT_9=57]="DIGIT_9",n[n.SEMICOLON=59]="SEMICOLON",n[n.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",n[n.EQUALS_SIGN=61]="EQUALS_SIGN",n[n.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",n[n.QUESTION_MARK=63]="QUESTION_MARK",n[n.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",n[n.LATIN_CAPITAL_F=70]="LATIN_CAPITAL_F",n[n.LATIN_CAPITAL_X=88]="LATIN_CAPITAL_X",n[n.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",n[n.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",n[n.GRAVE_ACCENT=96]="GRAVE_ACCENT",n[n.LATIN_SMALL_A=97]="LATIN_SMALL_A",n[n.LATIN_SMALL_F=102]="LATIN_SMALL_F",n[n.LATIN_SMALL_X=120]="LATIN_SMALL_X",n[n.LATIN_SMALL_Z=122]="LATIN_SMALL_Z",n[n.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"}(P=P||{}),"--"),U$="[CDATA[",B$="doctype",Do="script",mpe="public",gpe="system";function pU(n){return 55296<=n&&n<=57343}function dU(n){return n!==32&&n!==10&&n!==13&&n!==9&&n!==12&&1<=n&&n<=31||127<=n&&n<=159}function hU(n){return 64976<=n&&n<=65007||hpe.has(n)}(function(n){n.controlCharacterInInputStream="control-character-in-input-stream",n.noncharacterInInputStream="noncharacter-in-input-stream",n.surrogateInInputStream="surrogate-in-input-stream",n.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",n.endTagWithAttributes="end-tag-with-attributes",n.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",n.unexpectedSolidusInTag="unexpected-solidus-in-tag",n.unexpectedNullCharacter="unexpected-null-character",n.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",n.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",n.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",n.missingEndTagName="missing-end-tag-name",n.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",n.unknownNamedCharacterReference="unknown-named-character-reference",n.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",n.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",n.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",n.eofBeforeTagName="eof-before-tag-name",n.eofInTag="eof-in-tag",n.missingAttributeValue="missing-attribute-value",n.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",n.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",n.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",n.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",n.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",n.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",n.missingDoctypePublicIdentifier="missing-doctype-public-identifier",n.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",n.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",n.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",n.cdataInHtmlContent="cdata-in-html-content",n.incorrectlyOpenedComment="incorrectly-opened-comm
Line truncated
`,this.firstUpdate&&(j+=" "),this.message=j+(this.message||""),this.firstUpdate=!1,this},b}function c(T){return l.toString.call(T)==="[object Function]"}function f(T){return l.toString.call(T)==="[object Array]"}function p(T){return l.toString.call(T)==="[object String]"}function m(T){return l.toString.call(T)==="[object Object]"}function h(T){var x=function(v){return v?typeof v=="string"?v.split("."):[v]:[]}(T);return function(v){for(var b=v,w=0;w<x.length;w++){var N=x[w];if(!s(b,N))return;b=b[N]}return b}}function g(T){return Array.prototype.slice.call(T)}function _(T,x,v){return Array.prototype.indexOf.call(T||[],x,v)}function S(T){var x,v=[];for(x in T)s(T,x)&&v.push(x);return v}i.hasOwnProp=s,i._prettifyError=function(T,x,v){return(v=v.Update?v:new i.TemplateError(v)).Update(T),x||(T=v,(v=new Error(T.message)).name=T.name),v},Object.setPrototypeOf?Object.setPrototypeOf(a.prototype,Error.prototype):a.prototype=Object.create(Error.prototype,{constructor:{value:a}}),i.TemplateError=a,i.escape=function(T){return T.replace(r,u)},i.isFunction=c,i.isArray=f,i.isString=p,i.isObject=m,i.getAttrGetter=h,i.groupBy=function(T,x,v){for(var b={},w=c(x)?x:h(x),N=0;N<T.length;N++){var O=T[N],k=w(O,N);if(k===void 0&&v===!0)throw new TypeError('groupby: attribute "'+x+'" resolved to undefined');(b[k]||(b[k]=[])).push(O)}return b},i.toArray=g,i.without=function(T){var x=[];if(T)for(var v=T.length,b=g(arguments).slice(1),w=-1;++w<v;)_(b,T[w])===-1&&x.push(T[w]);return x},i.repeat=function(T,x){for(var v="",b=0;b<x;b++)v+=T;return v},i.each=function(T,x,v){if(T!=null){if(e.forEach&&T.forEach===e.forEach)T.forEach(x,v);else if(T.length===+T.length)for(var b=0,w=T.length;b<w;b++)x.call(v,T[b],b,T)}},i.map=function(T,x){var v=[];if(T!=null){if(e.map&&T.map===e.map)return T.map(x);for(var b=0;b<T.length;b++)v[v.length]=x(T[b],b);T.length===+T.length&&(v.length=T.length)}return v},i.asyncIter=function(T,x,v){var b=-1;(function w(){++b<T.length?x(T[b],b,w,v):v()})()},i.asyncFor=function(T,x,v){var b=S(T||{}),w=b.length,N=-1;(function O(){var k=b[++N];N<w?x(k,T[k],N,w,O):v()})()},i.indexOf=_,i.keys=S,i._entries=function(T){return S(T).map(function(x){return[x,T[x]]})},i._values=function(T){return S(T).map(function(x){return T[x]})},i._assign=i.extend=function(T,x){return T=T||{},S(x).forEach(function(v){T[v]=x[v]}),T},i.inOperator=function(T,x){if(f(x)||p(x))return x.indexOf(T)!==-1;if(m(x))return T in x;throw new Error('Cannot use "in" operator to search for "'+T+'" in unexpected types.')}});function jU(){throw new Error("setTimeout has not been defined")}function UU(){throw new Error("clearTimeout has not been defined")}var fs=jU,ps=UU;function BU(n){if(fs===setTimeout)return setTimeout(n,0);if((fs===jU||!fs)&&setTimeout)return(fs=setTimeout)(n,0);try{return fs(n,0)}catch{try{return fs.call(null,n,0)}catch{return fs.call(this,n,0)}}}typeof xi.setTimeout=="function"&&(fs=setTimeout),typeof xi.clearTimeout=="function"&&(ps=clearTimeout);var zu,wi=[],Yo=!1,N7=-1;function dde(){Yo&&zu&&(Yo=!1,zu.length?wi=zu.concat(wi):N7=-1,wi.length)&&HU()}function HU(){if(!Yo){var n=BU(dde);Yo=!0;for(var e=wi.length;e;){for(zu=wi,wi=[];++N7<e;)zu&&zu[N7].run();N7=-1,e=wi.length}zu=null,Yo=!1,function(l){if(ps===clearTimeout)return clearTimeout(l);if((ps===UU||!ps)&&clearTimeout)return(ps=clearTimeout)(l);try{ps(l)}catch{try{return ps.call(null,l)}catch{return ps.call(this,l)}}}(n)}}function qU(n,e){this.fun=n,this.array=e}function Ju(){}qU.prototype.run=function(){this.fun.apply(null,this.array)};var hde=Ju,mde=Ju,gde=Ju,yde=Ju,vde=Ju,_de=Ju,Ede=Ju,Uo=xi.performance||{},bde=Uo.now||Uo.mozNow||Uo.msNow||Uo.oNow||Uo.webkitNow||function(){return new Date().getTime()},Tde=new Date,vs={nextTick:function(n){var e=new Array(arguments.length-1);if(1<arguments.length)for(var l=1;l<arguments.length;l++)e[l-1]=arguments[l];wi.push(new qU(n,e)),wi.length!==1||Yo||BU(HU)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:hde,addListener:mde,once:gde,off:yde,removeListener:vde,removeAllListeners:_de,emit:Ede,binding:function(n){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(n){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(n){var l=.001*bde.call(Uo),e=Math.floor(l),l=Math.floor(l%1*1e9);return n&&(e-=n[0],(l-=n[1])<0)&&(e--,l+=1e9),[e,l]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Tde)/1e3}};function ds(){}function El(){El.init.call(this)}function VU(n){return n._maxListeners===void 0?El.defaultMaxListeners:n._maxListeners}function yj(n,e,l,t){var r,i;if(typeof l!="function")throw new TypeError('"listener" argument must be a function');return(r=n._events)?(r.newListener&&(n.emit("newListener",e,l.listener||l),r=n._events),i=r[e]):(r=n._events=new ds,n._eventsCount=0),i?(typeof i=="function"?i=r[e]=t?[l,i]:[i,l]:t?i.unshift(l):i.push(l),!i.warned&&(t=VU(n))&&0<t&&i.length>t&&(i.warned=!0,(t=new Error("Possible EventEm
Line truncated
`?this.forward():this.back())),I2(aB,d,l,t);if(d=(d=this._extractString(this.tags.VARIABLE_END))||this._extractString("-"+this.tags.VARIABLE_END))return this.in_code=!1,I2(cB,d,l,t);if(r==="r"&&this.str.charAt(this.index+1)==="/"){this.forwardN(2);for(var i="";!this.isFinished();){if(this.current()==="/"&&this.previous()!=="\\"){this.forward();break}i+=this.current(),this.forward()}for(var s=["g","i","m","y"],u="";!this.isFinished()&&s.indexOf(this.current())!==-1;)u+=this.current(),this.forward();return I2(AB,{body:i,flags:u},l,t)}if(kj.indexOf(r)!==-1){this.forward();var a,c=["==","===","!=","!==","<=",">=","//","**"],f=r+this.current();switch(ke.indexOf(c,f)!==-1&&(this.forward(),ke.indexOf(c,(r=f)+this.current())!==-1)&&(r=f+this.current(),this.forward()),r){case"(":a=pB;break;case")":a=dB;break;case"[":a=hB;break;case"]":a=mB;break;case"{":a=gB;break;case"}":a=yB;break;case",":a=_B;break;case":":a=EB;break;case"~":a=bB;break;case"|":a=TB;break;default:a=vB}return I2(a,r,l,t)}if((d=this._extractUntil(Cj+kj)).match(/^[-+]?[0-9]+$/))return this.current()==="."?(this.forward(),c=this._extract("0123456789"),I2(SB,d+"."+c,l,t)):I2("int",d,l,t);if(d.match(/^(true|false)$/))return I2(xB,d,l,t);if(d==="none"||d==="null")return I2($_,d,l,t);if(d)return I2(wB,d,l,t);throw new Error("Unexpected value while parsing: "+d)}var p,m=this.tags.BLOCK_START.charAt(0)+this.tags.VARIABLE_START.charAt(0)+this.tags.COMMENT_START.charAt(0)+this.tags.COMMENT_END.charAt(0);if(this.isFinished())return null;if(d=(d=this._extractString(this.tags.BLOCK_START+"-"))||this._extractString(this.tags.BLOCK_START))return this.in_code=!0,I2(uB,d,l,t);if(d=(d=this._extractString(this.tags.VARIABLE_START+"-"))||this._extractString(this.tags.VARIABLE_START))return this.in_code=!0,I2(oB,d,l,t);var d="",g=!1;for(this._matches(this.tags.COMMENT_START)&&(g=!0,d=this._extractString(this.tags.COMMENT_START));(p=this._extractUntil(m))!==null;){if(d+=p,(this._matches(this.tags.BLOCK_START)||this._matches(this.tags.VARIABLE_START)||this._matches(this.tags.COMMENT_START))&&!g){if(this.lstripBlocks&&this._matches(this.tags.BLOCK_START)&&0<this.colno&&this.colno<=d.length){var _=d.slice(-this.colno);if(/^\s+$/.test(_)&&!(d=d.slice(0,-this.colno)).length)return this.nextToken()}break}if(this._matches(this.tags.COMMENT_END)){if(!g)throw new Error("unexpected end of comment");d+=this._extractString(this.tags.COMMENT_END);break}d+=this.current(),this.forward()}if(p===null&&g)throw new Error("expected end of comment, got end of file");return I2(g?fB:sB,d,l,t)},e._parseString=function(l){this.forward();for(var t="";!this.isFinished()&&this.current()!==l;){var r=this.current();if(r==="\\")switch(this.forward(),this.current()){case"n":t+=`
`?this.forward():this.back())),O2(ZU,h,l,t);if(h=(h=this._extractString(this.tags.VARIABLE_END))||this._extractString("-"+this.tags.VARIABLE_END))return this.in_code=!1,O2(nB,h,l,t);if(r==="r"&&this.str.charAt(this.index+1)==="/"){this.forwardN(2);for(var i="";!this.isFinished();){if(this.current()==="/"&&this.previous()!=="\\"){this.forward();break}i+=this.current(),this.forward()}for(var s=["g","i","m","y"],u="";!this.isFinished()&&s.indexOf(this.current())!==-1;)u+=this.current(),this.forward();return O2(yB,{body:i,flags:u},l,t)}if(Sj.indexOf(r)!==-1){this.forward();var a,c=["==","===","!=","!==","<=",">=","//","**"],f=r+this.current();switch(ke.indexOf(c,f)!==-1&&(this.forward(),ke.indexOf(c,(r=f)+this.current())!==-1)&&(r=f+this.current(),this.forward()),r){case"(":a=tB;break;case")":a=rB;break;case"[":a=iB;break;case"]":a=sB;break;case"{":a=uB;break;case"}":a=aB;break;case",":a=cB;break;case":":a=fB;break;case"~":a=pB;break;case"|":a=dB;break;default:a=oB}return O2(a,r,l,t)}if((h=this._extractUntil(Tj+Sj)).match(/^[-+]?[0-9]+$/))return this.current()==="."?(this.forward(),c=this._extract("0123456789"),O2(hB,h+"."+c,l,t)):O2("int",h,l,t);if(h.match(/^(true|false)$/))return O2(mB,h,l,t);if(h==="none"||h==="null")return O2(P_,h,l,t);if(h)return O2(gB,h,l,t);throw new Error("Unexpected value while parsing: "+h)}var p,m=this.tags.BLOCK_START.charAt(0)+this.tags.VARIABLE_START.charAt(0)+this.tags.COMMENT_START.charAt(0)+this.tags.COMMENT_END.charAt(0);if(this.isFinished())return null;if(h=(h=this._extractString(this.tags.BLOCK_START+"-"))||this._extractString(this.tags.BLOCK_START))return this.in_code=!0,O2(QU,h,l,t);if(h=(h=this._extractString(this.tags.VARIABLE_START+"-"))||this._extractString(this.tags.VARIABLE_START))return this.in_code=!0,O2(eB,h,l,t);var h="",g=!1;for(this._matches(this.tags.COMMENT_START)&&(g=!0,h=this._extractString(this.tags.COMMENT_START));(p=this._extractUntil(m))!==null;){if(h+=p,(this._matches(this.tags.BLOCK_START)||this._matches(this.tags.VARIABLE_START)||this._matches(this.tags.COMMENT_START))&&!g){if(this.lstripBlocks&&this._matches(this.tags.BLOCK_START)&&0<this.colno&&this.colno<=h.length){var _=h.slice(-this.colno);if(/^\s+$/.test(_)&&!(h=h.slice(0,-this.colno)).length)return this.nextToken()}break}if(this._matches(this.tags.COMMENT_END)){if(!g)throw new Error("unexpected end of comment");h+=this._extractString(this.tags.COMMENT_END);break}h+=this.current(),this.forward()}if(p===null&&g)throw new Error("expected end of comment, got end of file");return O2(g?lB:JU,h,l,t)},e._parseString=function(l){this.forward();for(var t="";!this.isFinished()&&this.current()!==l;){var r=this.current();if(r==="\\")switch(this.forward(),this.current()){case"n":t+=`
`))})},t.compileRoot=function(r,i){var s=this,u=(i&&this.fail("compileRoot: root node can't have frame"),i=new s_,this._emitFuncBegin(r,"root"),this._emitLine("var parentTemplate = null;"),this._compileChildren(r,i),this._emitLine("if(parentTemplate) {"),this._emitLine("parentTemplate.rootRenderFunc(env, context, frame, runtime, cb);"),this._emitLine("} else {"),this._emitLine("cb(null, "+this.buffer+");"),this._emitLine("}"),this._emitFuncEnd(!0),this.inBlock=!0,[]);(i=r.findAll(z.Block)).forEach(function(a,c){var f=a.name.value;if(u.indexOf(f)!==-1)throw new Error('Block "'+f+'" defined more than once.');u.push(f),s._emitFuncBegin(a,"b_"+f),f=new s_,s._emitLine("var frame = frame.push(true);"),s.compile(a.body,f),s._emitFuncEnd()}),this._emitLine("return {"),i.forEach(function(a,c){a="b_"+a.name.value,s._emitLine(a+": "+a+",")}),this._emitLine(`root:root
};`)},t.compile=function(r,i){var s=this["compile"+r.typename];s?s.call(this,r,i):this.fail("compile: Cannot compile node: "+r.typename,r.lineno,r.colno)},t.getCode=function(){return this.codebuf.join("")},l}(s4.Obj),Jhe={compile:function(s,e,l,t,r){var i=new $j(t,(r=r===void 0?{}:r).throwOnUndefined),s=(l||[]).map(function(u){return u.preprocess}).filter(function(u){return!!u}).reduce(function(u,a){return a(u)},s);return i.compile(Ghe.transform(qhe.parse(s,l,r),e,t)),i.getCode()},Compiler:$j},Qhe=an(function(n){function e(d,g){return d==null||d===!1?g:d}function l(d){return d!=d}function t(d){var g=(d=e(d,"")).toLowerCase();return on.copySafeness(d,g.charAt(0).toUpperCase()+g.slice(1))}function r(d){if(ke.isString(d))return d.split("");if(ke.isObject(d))return ke._entries(d||{}).map(function(g){return{key:g[0],value:g[1]}});if(ke.isArray(d))return d;throw new ke.TemplateError("list filter: type not iterable")}function i(d){return function(g,_,S){var T=this,x=T.env.getTest(_=_===void 0?"truthy":_);return ke.toArray(g).filter(function(v){return x.call(T,v,S)===d})}}function s(d){return on.copySafeness(d,d.replace(/^\s*|\s*$/g,""))}(n=n.exports={}).abs=Math.abs,n.batch=function(d,g,_){for(var S=[],T=[],x=0;x<d.length;x++)x%g==0&&T.length&&(S.push(T),T=[]),T.push(d[x]);if(T.length){if(_)for(x=T.length;x<g;x++)T.push(_);S.push(T)}return S},n.capitalize=t,n.center=function(d,g){var _;return(d=e(d,"")).length>=(g=g||80)?d:(g-=d.length,_=ke.repeat(" ",g/2-g%2),g=ke.repeat(" ",g/2),on.copySafeness(d,_+d+g))},n.default=function(d,g,_){return _?d||g:d!==void 0?d:g},n.dictsort=function(d,g,_){if(!ke.isObject(d))throw new ke.TemplateError("dictsort filter: val must be an object");var S,T,x=[];for(T in d)x.push([T,d[T]]);if(_===void 0||_==="key")S=0;else{if(_!=="value")throw new ke.TemplateError("dictsort filter: You can only sort by either key or value");S=1}return x.sort(function(v,b){return v=v[S],b=b[S],g||(ke.isString(v)&&(v=v.toUpperCase()),ke.isString(b)&&(b=b.toUpperCase())),b<v?1:v===b?0:-1}),x},n.dump=function(d,g){return JSON.stringify(d,null,g)},n.escape=function(d){return d instanceof on.SafeString?d:on.markSafe(ke.escape((d=d??"").toString()))},n.safe=function(d){return d instanceof on.SafeString?d:on.markSafe((d=d??"").toString())},n.first=function(d){return d[0]},n.forceescape=function(d){return on.markSafe(ke.escape((d=d??"").toString()))},n.groupby=function(d,g){return ke.groupBy(d,g,this.env.opts.throwOnUndefined)},n.indent=function(d,x,_){if((d=e(d,""))==="")return"";x=x||4;var S=d.split(`
`))})},t.compileRoot=function(r,i){var s=this,u=(i&&this.fail("compileRoot: root node can't have frame"),i=new n_,this._emitFuncBegin(r,"root"),this._emitLine("var parentTemplate = null;"),this._compileChildren(r,i),this._emitLine("if(parentTemplate) {"),this._emitLine("parentTemplate.rootRenderFunc(env, context, frame, runtime, cb);"),this._emitLine("} else {"),this._emitLine("cb(null, "+this.buffer+");"),this._emitLine("}"),this._emitFuncEnd(!0),this.inBlock=!0,[]);(i=r.findAll(z.Block)).forEach(function(a,c){var f=a.name.value;if(u.indexOf(f)!==-1)throw new Error('Block "'+f+'" defined more than once.');u.push(f),s._emitFuncBegin(a,"b_"+f),f=new n_,s._emitLine("var frame = frame.push(true);"),s.compile(a.body,f),s._emitFuncEnd()}),this._emitLine("return {"),i.forEach(function(a,c){a="b_"+a.name.value,s._emitLine(a+": "+a+",")}),this._emitLine(`root:root
};`)},t.compile=function(r,i){var s=this["compile"+r.typename];s?s.call(this,r,i):this.fail("compile: Cannot compile node: "+r.typename,r.lineno,r.colno)},t.getCode=function(){return this.codebuf.join("")},l}(l4.Obj),Ohe={compile:function(s,e,l,t,r){var i=new Nj(t,(r=r===void 0?{}:r).throwOnUndefined),s=(l||[]).map(function(u){return u.preprocess}).filter(function(u){return!!u}).reduce(function(u,a){return a(u)},s);return i.compile(She.transform(Ehe.parse(s,l,r),e,t)),i.getCode()},Compiler:Nj},Nhe=an(function(n){function e(h,g){return h==null||h===!1?g:h}function l(h){return h!=h}function t(h){var g=(h=e(h,"")).toLowerCase();return on.copySafeness(h,g.charAt(0).toUpperCase()+g.slice(1))}function r(h){if(ke.isString(h))return h.split("");if(ke.isObject(h))return ke._entries(h||{}).map(function(g){return{key:g[0],value:g[1]}});if(ke.isArray(h))return h;throw new ke.TemplateError("list filter: type not iterable")}function i(h){return function(g,_,S){var T=this,x=T.env.getTest(_=_===void 0?"truthy":_);return ke.toArray(g).filter(function(v){return x.call(T,v,S)===h})}}function s(h){return on.copySafeness(h,h.replace(/^\s*|\s*$/g,""))}(n=n.exports={}).abs=Math.abs,n.batch=function(h,g,_){for(var S=[],T=[],x=0;x<h.length;x++)x%g==0&&T.length&&(S.push(T),T=[]),T.push(h[x]);if(T.length){if(_)for(x=T.length;x<g;x++)T.push(_);S.push(T)}return S},n.capitalize=t,n.center=function(h,g){var _;return(h=e(h,"")).length>=(g=g||80)?h:(g-=h.length,_=ke.repeat(" ",g/2-g%2),g=ke.repeat(" ",g/2),on.copySafeness(h,_+h+g))},n.default=function(h,g,_){return _?h||g:h!==void 0?h:g},n.dictsort=function(h,g,_){if(!ke.isObject(h))throw new ke.TemplateError("dictsort filter: val must be an object");var S,T,x=[];for(T in h)x.push([T,h[T]]);if(_===void 0||_==="key")S=0;else{if(_!=="value")throw new ke.TemplateError("dictsort filter: You can only sort by either key or value");S=1}return x.sort(function(v,b){return v=v[S],b=b[S],g||(ke.isString(v)&&(v=v.toUpperCase()),ke.isString(b)&&(b=b.toUpperCase())),b<v?1:v===b?0:-1}),x},n.dump=function(h,g){return JSON.stringify(h,null,g)},n.escape=function(h){return h instanceof on.SafeString?h:on.markSafe(ke.escape((h=h??"").toString()))},n.safe=function(h){return h instanceof on.SafeString?h:on.markSafe((h=h??"").toString())},n.first=function(h){return h[0]},n.forceescape=function(h){return on.markSafe(ke.escape((h=h??"").toString()))},n.groupby=function(h,g){return ke.groupBy(h,g,this.env.opts.throwOnUndefined)},n.indent=function(h,x,_){if((h=e(h,""))==="")return"";x=x||4;var S=h.split(`
`):_.replace(/\s+/gi," ");return on.copySafeness(d,S)},n.title=function(d){var g=(d=e(d,"")).split(" ").map(t);return on.copySafeness(d,g.join(" "))},n.trim=s,n.truncate=function(d,g,_,S){var T=d;return(d=e(d,"")).length<=(g=g||255)?d:(d=_?d.substring(0,g):((_=d.lastIndexOf(" ",g))===-1&&(_=g),d.substring(0,_)),on.copySafeness(T,d+=S??"..."))},n.upper=function(d){return(d=e(d,"")).toUpperCase()},n.urlencode=function(d){var g=encodeURIComponent;return ke.isString(d)?g(d):(ke.isArray(d)?d:ke._entries(d)).map(function(T){var S=T[0],T=T[1];return g(S)+"="+g(T)}).join("&")};var u=/^(?:\(|<|<)?(.*?)(?:\.|,|\)|\n|>)?$/,a=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,c=/^https?:\/\/.*$/,f=/^www\./,p=/\.(?:org|net|com)(?:\:|\/|$)/,m=(n.urlize=function(d,g,_){l(g)&&(g=1/0);varS=_===!0?' rel="nofollow"':"";returnd.split(/(\s+)/).filter(function(T){returnT&&T.length}).map(function(T){varx=T.match(u),v=(x=x?x[1]:T).substr(0,g);returnc.test(x)?'<a href="'+x+'"'+S+">"+v+"</a>":f.test(x)?'<a href="http://'+x+'"'+S+">"+v+"</a>":a.test(x)?'<a href="mailto:'+x+'">'+x+"</a>":p.test(x)?'<a href="http://'+x+'"'+S+">"+v+"</a>":T}).join("")},n.wordcount=function(d){return(d=(d=e(d,""))?d.match(/\w+/g):null)?d.length:null},n.float=function(d,g){returnl(d=parseFloat(d))?g:d},on.makeMacro(["value","default","base"],[],function(d,g,_){return_===void0&&(_=10),l(d=parseInt(d,_))?g:d}));n.int=m,n.d=n.default,n.e=n.escape}),Y7={};functionHB(n,e){for(varl=0,t=n.length-1;0<=t;t--){varr=n[t];r==="."?n.splice(t,1):r===".."?(n.splice(t,1),l++):l&&(n.splice(t,1),l--)}if(e)for(;l--;)n.unshift("..");returnn}varZhe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,u_=function(n){returnZhe.exec(n).slice(1)};functiona_(){for(varn="",e=!1,l=arguments.length-1;-1<=l&&!e;l--){vart=0<=l?arguments[l]:"/";if(typeoft!="string")thrownewTypeError("Arguments to path.resolve must be strings");t&&(n=t+"/"+n,e=t.charAt(0)==="/")}return(e?"/":"")+HB(sE(n.split("/"),function(r){return!!r}),!e).join("/")||"."}functionjj(n){vare=qB(n),l=eme(n,-1)==="/";return(n=(n=HB(sE(n.split("/"),function(t){return!!t}),!e).join("/"))||e?n:".")&&l&&(n+="/"),(e?"/":"")+n}functionqB(n){returnn.charAt(0)==="/"}varn4={extname:function(n){returnu_(n)[3]},basename:function(n,e){returnn=u_(n)[2],e&&n.substr(-1*e.length)===e?n.substr(0,n.length-e.length):n},dirname:function(l){vare=(l=u_(l))[0],l=l[1];returne||l?e+(l&&l.substr(0,l.length-1)):"."},sep:"/",delimiter:":",relative:function(n,e){functionl(c){for(varf=0;f<c.length&&c[f]==="";f++);for(varp=c.length-1;0<=p&&c[p]==="";p--);returnp<f?[]:c.slice(f,p-f+1)}n=a_(n).substr(1),e=a_(e).substr(1);for(vart=l(n.split("/")),r=l(e.split("/")),i=Math.min(t.length,r.length),s=i,u=0;u<i;u++)if(t[u]!==r[u]){s=u;break}for(vara=[],u=s;u<t.length;u++)a.push("..");return(a=a.concat(r.slice(s))).join("/")},join:function(){returnjj(sE(Array.prototype.slice.call(arguments,0),function(n,e){if(typeofn!="string")thrownewTypeError("Arguments to path.join must be strings");returnn}).join("/"))},isAbsolute:qB,normalize:jj,resolve:a_};functionsE(n,e){if(n.filter)returnn.filter(e);for(varl=[],t=0;t<n.length;t++)e(n[t],t,n)&&l.push(n[t]);returnl}vareme="ab".substr(-1)==="b"?function(n,e,l){returnn.substr(e,l)}:function(n,e,l){returne<0&&(e=n.length+e),n.substr(e,l)};functionVB(n,e){return(VB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,t){returnl.__proto__=t,l})(n,e)}varuE=function(n){vare;functionl(){returnn.apply(this,arguments)||this}e=n,(t=l).prototype=Object.create(e.prototype),VB(t.prototype.constructor=t,e);vart=l.prototype;returnt.resolve=function(r,i){returnn4.resolve(n4.dirname(r),i)},t.isRelative=function(r){returnr.indexOf("./")===0||r.indexOf("../")===0},l}(s4.EmitterObj);functionzB(n,e){return(zB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,t){returnl.__proto__=t,l})(n,e)}varnme=function(n){vare,l;functiont(r){vari;return(i=n.call(this)||this).precompiled=r||{},i}returnl=n,(e=t).prototype=Object.create(l.prototype),zB(e.prototype.constructor=e,l),t.prototype.getSource=function(r){returnthis.precompiled[r]?{src:{type:"code",obj:this.precompiled[r]},path:r}:null},t}(uE);functionGB(n,e){n.prototype=Object.create(e.prototype),XB(n.prototype.constructor=n,e)}functionXB(n,e){return(XB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,t){returnl.__proto__=t,l})(n,e)}varlme=nme,tme=function(n){functione(l,t){varr=n.call(this)||this;returntypeoft=="boolean"&&console.log("[nunjucks] Warning: you passed a boolean as the second argument to FileSystemLoader, but it now takes an options object. See http://mozilla.github.io/nunjucks/api.html#filesystemloader"),t=t||{},r.pathsToNames={},r.noCache=!!t.noCache,l?(l=Array.isArray(l)?l:[l],r.searchPaths=l.map(n4.normalize)):r.searchPaths=["."],t.watch,r}returnGB(e,n),e.prototype.getSource=function(l){for(vart=null,r=this.searchPaths,i=0;i<r.length;i++){vars=n4.resoLine truncated
`):_.replace(/\s+/gi," ");return on.copySafeness(h,S)},n.title=function(h){var g=(h=e(h,"")).split(" ").map(t);return on.copySafeness(h,g.join(" "))},n.trim=s,n.truncate=function(h,g,_,S){var T=h;return(h=e(h,"")).length<=(g=g||255)?h:(h=_?h.substring(0,g):((_=h.lastIndexOf(" ",g))===-1&&(_=g),h.substring(0,_)),on.copySafeness(T,h+=S??"..."))},n.upper=function(h){return(h=e(h,"")).toUpperCase()},n.urlencode=function(h){var g=encodeURIComponent;return ke.isString(h)?g(h):(ke.isArray(h)?h:ke._entries(h)).map(function(T){var S=T[0],T=T[1];return g(S)+"="+g(T)}).join("&")};var u=/^(?:\(|<|<)?(.*?)(?:\.|,|\)|\n|>)?$/,a=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,c=/^https?:\/\/.*$/,f=/^www\./,p=/\.(?:org|net|com)(?:\:|\/|$)/,m=(n.urlize=function(h,g,_){l(g)&&(g=1/0);varS=_===!0?' rel="nofollow"':"";returnh.split(/(\s+)/).filter(function(T){returnT&&T.length}).map(function(T){varx=T.match(u),v=(x=x?x[1]:T).substr(0,g);returnc.test(x)?'<a href="'+x+'"'+S+">"+v+"</a>":f.test(x)?'<a href="http://'+x+'"'+S+">"+v+"</a>":a.test(x)?'<a href="mailto:'+x+'">'+x+"</a>":p.test(x)?'<a href="http://'+x+'"'+S+">"+v+"</a>":T}).join("")},n.wordcount=function(h){return(h=(h=e(h,""))?h.match(/\w+/g):null)?h.length:null},n.float=function(h,g){returnl(h=parseFloat(h))?g:h},on.makeMacro(["value","default","base"],[],function(h,g,_){return_===void0&&(_=10),l(h=parseInt(h,_))?g:h}));n.int=m,n.d=n.default,n.e=n.escape}),z7={};functionPB(n,e){for(varl=0,t=n.length-1;0<=t;t--){varr=n[t];r==="."?n.splice(t,1):r===".."?(n.splice(t,1),l++):l&&(n.splice(t,1),l--)}if(e)for(;l--;)n.unshift("..");returnn}varIhe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,l_=function(n){returnIhe.exec(n).slice(1)};functiont_(){for(varn="",e=!1,l=arguments.length-1;-1<=l&&!e;l--){vart=0<=l?arguments[l]:"/";if(typeoft!="string")thrownewTypeError("Arguments to path.resolve must be strings");t&&(n=t+"/"+n,e=t.charAt(0)==="/")}return(e?"/":"")+PB(nE(n.split("/"),function(r){return!!r}),!e).join("/")||"."}functionIj(n){vare=DB(n),l=Che(n,-1)==="/";return(n=(n=PB(nE(n.split("/"),function(t){return!!t}),!e).join("/"))||e?n:".")&&l&&(n+="/"),(e?"/":"")+n}functionDB(n){returnn.charAt(0)==="/"}varJo={extname:function(n){returnl_(n)[3]},basename:function(n,e){returnn=l_(n)[2],e&&n.substr(-1*e.length)===e?n.substr(0,n.length-e.length):n},dirname:function(l){vare=(l=l_(l))[0],l=l[1];returne||l?e+(l&&l.substr(0,l.length-1)):"."},sep:"/",delimiter:":",relative:function(n,e){functionl(c){for(varf=0;f<c.length&&c[f]==="";f++);for(varp=c.length-1;0<=p&&c[p]==="";p--);returnp<f?[]:c.slice(f,p-f+1)}n=t_(n).substr(1),e=t_(e).substr(1);for(vart=l(n.split("/")),r=l(e.split("/")),i=Math.min(t.length,r.length),s=i,u=0;u<i;u++)if(t[u]!==r[u]){s=u;break}for(vara=[],u=s;u<t.length;u++)a.push("..");return(a=a.concat(r.slice(s))).join("/")},join:function(){returnIj(nE(Array.prototype.slice.call(arguments,0),function(n,e){if(typeofn!="string")thrownewTypeError("Arguments to path.join must be strings");returnn}).join("/"))},isAbsolute:DB,normalize:Ij,resolve:t_};functionnE(n,e){if(n.filter)returnn.filter(e);for(varl=[],t=0;t<n.length;t++)e(n[t],t,n)&&l.push(n[t]);returnl}varChe="ab".substr(-1)==="b"?function(n,e,l){returnn.substr(e,l)}:function(n,e,l){returne<0&&(e=n.length+e),n.substr(e,l)};functionLB(n,e){return(LB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,t){returnl.__proto__=t,l})(n,e)}varlE=function(n){vare;functionl(){returnn.apply(this,arguments)||this}e=n,(t=l).prototype=Object.create(e.prototype),LB(t.prototype.constructor=t,e);vart=l.prototype;returnt.resolve=function(r,i){returnJo.resolve(Jo.dirname(r),i)},t.isRelative=function(r){returnr.indexOf("./")===0||r.indexOf("../")===0},l}(l4.EmitterObj);functionFB(n,e){return(FB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,t){returnl.__proto__=t,l})(n,e)}varkhe=function(n){vare,l;functiont(r){vari;return(i=n.call(this)||this).precompiled=r||{},i}returnl=n,(e=t).prototype=Object.create(l.prototype),FB(e.prototype.constructor=e,l),t.prototype.getSource=function(r){returnthis.precompiled[r]?{src:{type:"code",obj:this.precompiled[r]},path:r}:null},t}(lE);functionMB(n,e){n.prototype=Object.create(e.prototype),$B(n.prototype.constructor=n,e)}function$B(n,e){return($B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,t){returnl.__proto__=t,l})(n,e)}varPhe=khe,Dhe=function(n){functione(l,t){varr=n.call(this)||this;returntypeoft=="boolean"&&console.log("[nunjucks] Warning: you passed a boolean as the second argument to FileSystemLoader, but it now takes an options object. See http://mozilla.github.io/nunjucks/api.html#filesystemloader"),t=t||{},r.pathsToNames={},r.noCache=!!t.noCache,l?(l=Array.isArray(l)?l:[l],r.searchPaths=l.map(Jo.normalize)):r.searchPaths=["."],t.watch,r}returnMB(e,n),e.prototype.getSource=function(l){for(vart=null,r=this.searchPaths,i=0;i<r.length;i++){vars=Jo.resoLine truncated
`)){let a=u.trim();if(a)if(a.startsWith("#")){if(a.startsWith("#EXT")){let c=Cme(a,i);c&&s.push(c)}}else s.push(a)}return s.length!==0&&s[0].name==="EXTM3U"||Le("The EXTM3U tag MUST be the first line."),s}(n,e),t=kme(l,e);return t.source=n,t}var Pme=["#EXTINF","#EXT-X-BYTERANGE","#EXT-X-DISCONTINUITY","#EXT-X-STREAM-INF","#EXT-X-CUE-OUT","#EXT-X-CUE-IN","#EXT-X-KEY","#EXT-X-MAP"],Dme=["#EXT-X-MEDIA"],xE=class extends Array{constructor(e){super(),this.baseUri=e}push(...e){for(let l of e)if(l.startsWith("#"))if(Pme.some(t=>l.startsWith(t)))super.push(l);else{if(this.includes(l)){if(Dme.some(t=>l.startsWith(t)))continue;Le(`Redundantitem(${l})`)}super.push(l)}else super.push(l);return this.length}};function OE(n,e){let l=1e3;e&&(l=Math.pow(10,e));let t=Math.round(n*l)/l;return e?t.toFixed(e):t}function Lme(n){let e=[`DATA-ID="${n.id}"`];return n.language&&e.push(`LANGUAGE="${n.language}"`),n.value?e.push(`VALUE="${n.value}"`):n.uri&&e.push(`URI="${n.uri}"`),`#EXT-X-SESSION-DATA:${e.join(",")}`}function _H(n,e){let l=e?"#EXT-X-SESSION-KEY":"#EXT-X-KEY",t=[`METHOD=${n.method}`];return n.uri&&t.push(`URI="${n.uri}"`),n.iv&&(n.iv.length!==16&&Le("IV must be a 128-bit unsigned integer"),t.push(`IV=${gH(n.iv)}`)),n.format&&t.push(`KEYFORMAT="${n.format}"`),n.formatVersion&&t.push(`KEYFORMATVERSIONS="${n.formatVersion}"`),`${l}:${t.join(",")}`}function Fme(n,e){let l=e.isIFrameOnly?"#EXT-X-I-FRAME-STREAM-INF":"#EXT-X-STREAM-INF",t=[`BANDWIDTH=${e.bandwidth}`];if(e.averageBandwidth&&t.push(`AVERAGE-BANDWIDTH=${e.averageBandwidth}`),e.isIFrameOnly&&t.push(`URI="${e.uri}"`),e.codecs&&t.push(`CODECS="${e.codecs}"`),e.resolution&&t.push(`RESOLUTION=${e.resolution.width}x${e.resolution.height}`),e.frameRate&&t.push(`FRAME-RATE=${OE(e.frameRate,3)}`),e.hdcpLevel&&t.push(`HDCP-LEVEL=${e.hdcpLevel}`),e.audio.length>0){t.push(`AUDIO="${e.audio[0].groupId}"`);for(let r of e.audio)n.push(Oc(r))}if(e.video.length>0){t.push(`VIDEO="${e.video[0].groupId}"`);for(let r of e.video)n.push(Oc(r))}if(e.subtitles.length>0){t.push(`SUBTITLES="${e.subtitles[0].groupId}"`);for(let r of e.subtitles)n.push(Oc(r))}if(Tme().allowClosedCaptionsNone&&e.closedCaptions.length===0)t.push("CLOSED-CAPTIONS=NONE");else if(e.closedCaptions.length>0){t.push(`CLOSED-CAPTIONS="${e.closedCaptions[0].groupId}"`);for(let r of e.closedCaptions)n.push(Oc(r))}if(e.score&&t.push(`SCORE=${e.score}`),e.allowedCpc){let r=[];for(let{format:i,cpcList:s}of e.allowedCpc)r.push(`${i}:${s.join("/")}`);t.push(`ALLOWED-CPC="${r.join(",")}"`)}e.videoRange&&t.push(`VIDEO-RANGE=${e.videoRange}`),e.stableVariantId&&t.push(`STABLE-VARIANT-ID="${e.stableVariantId}"`),e.programId&&t.push(`PROGRAM-ID=${e.programId}`),n.push(`${l}:${t.join(",")}`),e.isIFrameOnly||n.push(`${e.uri}`)}function Oc(n){let e=[`TYPE=${n.type}`,`GROUP-ID="${n.groupId}"`,`NAME="${n.name}"`];return n.isDefault!==void 0&&e.push("DEFAULT="+(n.isDefault?"YES":"NO")),n.autoselect!==void 0&&e.push("AUTOSELECT="+(n.autoselect?"YES":"NO")),n.forced!==void 0&&e.push("FORCED="+(n.forced?"YES":"NO")),n.language&&e.push(`LANGUAGE="${n.language}"`),n.assocLanguage&&e.push(`ASSOC-LANGUAGE="${n.assocLanguage}"`),n.instreamId&&e.push(`INSTREAM-ID="${n.instreamId}"`),n.characteristics&&e.push(`CHARACTERISTICS="${n.characteristics}"`),n.channels&&e.push(`CHANNELS="${n.channels}"`),n.uri&&e.push(`URI="${n.uri}"`),`#EXT-X-MEDIA:${e.join(",")}`}function Mme(n,e,l,t,r=1,i=null){let s=!1,u="";if(e.discontinuity&&n.push("#EXT-X-DISCONTINUITY"),e.key){let c=_H(e.key);c!==l&&(n.push(c),l=c)}if(e.map){let c=function(f){let p=[`URI="${f.uri}"`];return f.byterange&&p.push(`BYTERANGE="${EE(f.byterange)}"`),`#EXT-X-MAP:${p.join(",")}`}(e.map);c!==t&&(n.push(c),t=c)}if(e.programDateTime&&n.push(`#EXT-X-PROGRAM-DATE-TIME:${_E(e.programDateTime)}`),e.dateRange&&n.push(function(c){let f=[`ID="${c.id}"`];c.start&&f.push(`START-DATE="${_E(c.start)}"`),c.end&&f.push(`END-DATE="${_E(c.end)}"`),c.duration&&f.push(`DURATION=${c.duration}`),c.plannedDuration&&f.push(`PLANNED-DURATION=${c.plannedDuration}`),c.classId&&f.push(`CLASS="${c.classId}"`),c.endOnNext&&f.push("END-ON-NEXT=YES");for(let p of Object.keys(c.attributes))p.startsWith("X-")?typeof c.attributes[p]=="number"?f.push(`${p}=${c.attributes[p]}`):f.push(`${p}="${c.attributes[p]}"`):p.startsWith("SCTE35-")&&f.push(`${p}=${gH(c.attributes[p])}`);return`#EXT-X-DATERANGE:${f.join(",")}`}(e.dateRange)),e.markers.length>0&&(u=function(c,f){let p="";for(let m of f)if(m.type==="OUT")p="OUT",c.push(`#EXT-X-CUE-OUT:DURATION=${m.duration}`);else if(m.type==="IN")p="IN",c.push("#EXT-X-CUE-IN");else if(m.type==="RAW"){let d=m.value?`:${m.value}`:"";c.push(`#${m.tagName}${d}`)}return p}(n,e.markers)),e.parts.length>0&&(s=function(c,f){let p=!1;for(let m of f)if(m.hint){let d=[];if(d.push("TYPE=PART",`URI="${m.uri}"`),m.byterange){let{offset:g,length:_}=m.byterange;d.push(`BYTERANGE-START=${g}`),_&&d.push(`BYTERANGE-LENGTH=${_}`)}c.push(`#EXT-X-PRELOAD-HINT:${d.join(",")}`),p=!0}else{let d=[];d.push(
Line truncated
`)}var bH="hls_cache",Hc=[],ra={},v5={},ta={},Bc="";function $me(n,e){if(Hc.push(n),ra[n]=e,Hc.length>5){let l=Hc.shift();jme(l)}}function jme(n){delete ra[n],delete Hc[n],new JSFile(bH+"/"+n).delete()}function Ume(n,e){if(e.variants)for(let l of e.variants)l.uri.startsWith("http")||(l.uri=RE(n,l.uri));if(e.segments)for(let l of e.segments)l.uri.startsWith("http")||(l.uri=RE(n,l.uri)),l.key&&l.key.uri&&!l.key.uri.startsWith("http")&&(l.key.uri=RE(n,l.key.uri));return e}async function TH(n,e){let l=md5X(n);if(ra[l])return ra[l];let t={},r=n;for(;t=await req(r,{headers:e,redirect:0}),t.headers.location;)r=t.headers.location;if(t.code==200){var i=t.content;let s=Ume(r,vH(i));return $me(l,{code:t.code,plist:s,key:l,headers:t.headers}),ra[l]}return{}}async function SH(n,e,l){if(!ra[n])return{};let r=ra[n].plist.segments,i=!ta[n];if(i){ta[n]={};for(let f of r){let p=md5X(f.uri+f.mediaSequenceNumber.toString());ta[n][p]={file:bH+"/"+n+"/"+p,uri:f.uri,key:p,index:f.mediaSequenceNumber,order:f.mediaSequenceNumber,state:-1,read:!1}}}for(let f in ta[n]){let p=ta[n][f];p.index>=e?p.order=p.index-e:p.order=r.length-e+p.index}i&&Bme(n,5,l);let s=r[e],u=md5X(s.uri+s.mediaSequenceNumber.toString()),a=ta[n][u];if(a.state==1||a.state==-1){let f=new JSFile(a.file);if(await f.exist())return a.state=1,{buffer:3,code:200,headers:{connection:"close","content-type":"video/mp2t"},content:f};a.state=-1}if(a.state==-1&&xH(n,a,l),a.state==0){var c=new JSProxyStream;c.head(200,{connection:"close","content-type":"video/mp2t"});let f=0;return a.read=!0,new Promise(async function(p,m){let d=new JSFile(a.file+".dl");await d.open("r"),async function g(){let _=await d.size();if(_>f){var S=await d.read(_-f,f);await c.write(S),f=_}if(a.state==1||a.state<0){c.done(),await d.close(),await d.delete(),a.read=!1,p();return}setTimeout(g,5)}()}),{buffer:3,content:c}}}async function xH(n,e,l){if(e.state>=0||!v5[n])return;if(e.state=0,await new JSFile(e.file).exist()){e.state=1;return}let t=new JSFile(e.file+".dl");await t.open("w");let r=await req(e.uri,{buffer:3,headers:l,stream:t,timeout:[5e3,1e4]});if(r.error||r.code>=300){await t.close(),e.read||await t.delete(),e.state=-1;return}await t.close(),e.read?await t.copy(e.file):await t.move(e.file),e.state=1}async function Bme(n,e,l){Bc&&Bc!=n&&delete v5[Bc],Bc=n,v5[n]=!0;for(let t=0;t<e&&v5[n];t++)new Promise(function(r,i){(async function s(){if(!v5[n]){r();return}let u=pe.pickBy(ta[n],function(c){return c.state==-1}),a=pe.minBy(Object.values(u),function(c){return c.order});if(!a){r();return}await xH(n,a,l),setTimeout(s,5)})()})}function RE(n,e){var l=n.split("/"),t=e.split("/");l.pop();for(var r=0;r<t.length;r++)t[r]!="."&&(t[r]==".."?l.pop():l.push(t[r]));return l.join("/")}function wH(n){let e=[];return Array.from(n.danmuku).forEach(l=>{let t=Number(l[0]),r=l[4];e.push(`<dp="${t},1,25,16777215,1659282294,0,8b53b65c,1108899274487246080"><![CDATA[${r}]]></d>`)}),String.raw`<?xmlversion="1.0"encoding="UTF-8"?><i><chatserver>chat.bilibili.com</chatserver><chatid>52175602</chatid><mission>0</mission><maxlimit>1000</maxlimit><state>0</state><real_name>0</real_name><source>k-v</source>`+e.join("")+"</i>"}varqc=class{constructor(){this.siteUrl="https://search.youku.com",this.reconnectTimes=0,this.maxReconnectTimes=5,this.jadeLog=newN3(this.getAppName(),"DEBUG")}getAppName(){return"\u5F39\u5E55"}getHeader(){return{"User-Agent":$r,Referer:this.siteUrl+"/"}}asyncreconnnect(e,l,t,r,i,s){returnawaitthis.jadeLog.error("\u8BF7\u6C42\u5931\u8D25,\u8BF7\u68C0\u67E5url:"+e+",\u4E24\u79D2\u540E\u91CD\u8BD5"),lr(2),this.reconnectTimes<this.maxReconnectTimes?(this.reconnectTimes=this.reconnectTimes+1,awaitthis.fetch(e,l,t,r,i,s)):(awaitthis.jadeLog.error("\u8BF7\u6C42\u5931\u8D25,\u91CD\u8FDE\u5931\u8D25"),null)}asyncgetResponse(e,l,t,r,i,s,u){returnu.headers.location!==void0?r?(awaitthis.jadeLog.debug(`\u8FD4\u56DE\u91CD\u5B9A\u5411\u8FDE\u63A5:${u.headers.location}`),u.headers.location):this.fetch(u.headers.location,l,t,r,i,s):u.content.length>0?(this.reconnectTimes=0,i?{cookie:u.headers["set-cookie"],content:u.content}:u.content):s===1?(this.reconnectTimes=0,u.content):(awaitthis.jadeLog.error(`\u8BF7\u6C42\u5931\u8D25,\u8BF7\u6C42url\u4E3A:${e},\u56DE\u590D\u5185\u5BB9\u4E3A:${JSON.stringify(u)}`),awaitthis.reconnnect(e,l,t,r,i,s))}asyncfetch(e,l,t,r=!1,i=!1,s=0){letu=xc(l),a=e;pe.isEmpty(u)||(a=e+"?"+u);letc=newo5(a),f;returnf=awaitreq(c.toString(),{method:"get",headers:t,buffer:s,data:null}),f.code===201||f.code===200||f.code===302||f.code===301||i?awaitthis.getResponse(e,l,t,r,i,s,f):(awaitthis.jadeLog.error(`\u8BF7\u6C42\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:\u72B6\u6001\u7801\u51FA\u9519,\u8BF7\u6C42url\u4E3A:${c},\u56DE\u590D\u5185\u5BB9\u4E3A:${JSON.stringify(f)}`),awaitthis.reconnnect(e,l,t,r,i,s))}asyncgetHtml(e=this.siteUrl,l=this.getHeader()){lett=awaitthis.fetch(e,null,l);if(pe.isEmpty(t))awaitthis.jadeLog.error("html\u83B7\u53D6\u5931\u8D25",!0);elsereturnul(t)}asynLine truncated
`).forEach(function(s){r=s.indexOf(":"),l=s.substring(0,r).trim().toLowerCase(),t=s.substring(r+1).trim(),!(!l||e[l]&&P_e[l])&&(l==="set-cookie"?e[l]?e[l].push(t):e[l]=[t]:e[l]=e[l]?e[l]+", "+t:t)}),e};var Gz=Symbol("internals");function F5(n){return n&&String(n).trim().toLowerCase()}function Tf(n){return n===!1||n==null?n:X.isArray(n)?n.map(Tf):String(n)}function D_e(n){let e=Object.create(null),l=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,t;for(;t=l.exec(n);)e[t[1]]=t[2];return e}var L_e=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());functionNb(n,e,l,t,r){if(X.isFunction(t))returnt.call(this,e,l);if(r&&(e=l),!!X.isString(e)){if(X.isString(t))returne.indexOf(t)!==-1;if(X.isRegExp(t))returnt.test(e)}}functionF_e(n){returnn.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,l,t)=>l.toUpperCase()+t)}functionM_e(n,e){letl=X.toCamelCase(" "+e);["get","set","has"].forEach(t=>{Object.defineProperty(n,t+l,{value:function(r,i,s){returnthis[t].call(this,e,r,i,s)},configurable:!0})})}varR4=class{constructor(e){e&&this.set(e)}set(e,l,t){letr=this;functioni(u,a,c){letf=F5(a);if(!f)thrownewError("header name must be a non-empty string");letp=X.findKey(r,f);(!p||r[p]===void0||c===!0||c===void0&&r[p]!==!1)&&(r[p||a]=Tf(u))}lets=(u,a)=>X.forEach(u,(c,f)=>i(c,f,a));returnX.isPlainObject(e)||einstanceofthis.constructor?s(e,l):X.isString(e)&&(e=e.trim())&&!L_e(e)?s(zz(e),l):e!=null&&i(l,e,t),this}get(e,l){if(e=F5(e),e){lett=X.findKey(this,e);if(t){letr=this[t];if(!l)returnr;if(l===!0)returnD_e(r);if(X.isFunction(l))returnl.call(this,r,t);if(X.isRegExp(l))returnl.exec(r);thrownewTypeError("parser must be boolean|regexp|function")}}}has(e,l){if(e=F5(e),e){lett=X.findKey(this,e);return!!(t&&this[t]!==void0&&(!l||Nb(this,this[t],t,l)))}return!1}delete(e,l){lett=this,r=!1;functioni(s){if(s=F5(s),s){letu=X.findKey(t,s);u&&(!l||Nb(t,t[u],u,l))&&(deletet[u],r=!0)}}returnX.isArray(e)?e.forEach(i):i(e),r}clear(e){letl=Object.keys(this),t=l.length,r=!1;for(;t--;){leti=l[t];(!e||Nb(this,this[i],i,e,!0))&&(deletethis[i],r=!0)}returnr}normalize(e){letl=this,t={};returnX.forEach(this,(r,i)=>{lets=X.findKey(t,i);if(s){l[s]=Tf(r),deletel[i];return}letu=e?F_e(i):String(i).trim();u!==i&&deletel[i],l[u]=Tf(r),t[u]=!0}),this}concat(...e){returnthis.constructor.concat(this,...e)}toJSON(e){letl=Object.create(null);returnX.forEach(this,(t,r)=>{t!=null&&t!==!1&&(l[r]=e&&X.isArray(t)?t.join(", "):t)}),l}[Symbol.iterator](){returnObject.entries(this.toJSON())[Symbol.iterator]()}toString(){returnObject.entries(this.toJSON()).map(([e,l])=>e+": "+l).join(`
`,iEe=z5.encode(Rs),sEe=2,zb=class{constructor(e,l){let{escapeName:t}=this.constructor,r=X.isString(l),i=`Content-Disposition:form-data;name="${t(e)}"${!r&&l.name?`; filename="${t(l.name)}"`:""}${Rs}`;r?l=z5.encode(String(l).replace(/\r?\n|\r\n?/g,Rs)):i+=`Content-Type:${l.type||"application/octet-stream"}${Rs}`,this.headers=z5.encode(i+Rs),this.contentLength=r?l.byteLength:l.size,this.size=this.headers.byteLength+this.contentLength+sEe,this.name=e,this.value=l}async*encode(){yield this.headers;let{value:e}=this;X.isTypedArray(e)?yield e:yield*wf(e),yield iEe}static escapeName(e){return String(e).replace(/[\r\n"]/g,l=>({"\r":"%0D","\n":"%0A",'"':"%22"})[l])}},uEe=(n,e,l)=>{let{tag:t="form-data-boundary",size:r=25,boundary:i=t+"-"+X.generateString(r,rEe)}=l||{};if(!X.isFormData(n))throw TypeError("FormData instance required");if(i.length<1||i.length>70)throw Error("boundary must be 10-70 characters long");let s=z5.encode("--"+i+Rs),u=z5.encode("--"+i+"--"+Rs+Rs),a=u.byteLength,c=Array.from(n.entries()).map(([p,m])=>{let d=new zb(p,m);return a+=d.size,d});a+=s.byteLength*c.length,a=X.toFiniteNumber(a);let f={"Content-Type":`multipart/form-data;boundary=${i}`};return Number.isFinite(a)&&(f["Content-Length"]=a),e&&e(f),uG.Readable.from(async function*(){for(let p of c)yield s,yield*p.encode();yield u}())},aG=uEe;var oG=wt(require("stream"),1),Gb=class extends oG.default.Transform{__transform(e,l,t){this.push(e),t()}_transform(e,l,t){if(e.length!==0&&(this._transform=this.__transform,e[0]!==120)){let r=Buffer.alloc(2);r[0]=120,r[1]=156,this.push(r,l)}this.__transform(e,l,t)}},cG=Gb;var aEe=(n,e)=>X.isAsyncFn(n)?function(...l){let t=l.pop();n.apply(this,l).then(r=>{try{e?t(null,...e(r)):t(null,r)}catch(i){t(i)}},t)}:n,fG=aEe;var pG={flush:Ci.default.constants.Z_SYNC_FLUSH,finishFlush:Ci.default.constants.Z_SYNC_FLUSH},oEe={flush:Ci.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:Ci.default.constants.BROTLI_OPERATION_FLUSH},dG=X.isFunction(Ci.default.createBrotliDecompress),{http:cEe,https:fEe}=EG.default,pEe=/https:?/,hG=Ct.protocols.map(n=>n+":");function dEe(n,e){n.beforeRedirects.proxy&&n.beforeRedirects.proxy(n),n.beforeRedirects.config&&n.beforeRedirects.config(n,e)}function TG(n,e,l){let t=e;if(!t&&t!==!1){let r=(0,gG.getProxyForUrl)(l);r&&(t=new URL(r))}if(t){if(t.username&&(t.auth=(t.username||"")+":"+(t.password||"")),t.auth){(t.auth.username||t.auth.password)&&(t.auth=(t.auth.username||"")+":"+(t.auth.password||""));let i=Buffer.from(t.auth,"utf8").toString("base64");n.headers["Proxy-Authorization"]="Basic "+i}n.headers.host=n.hostname+(n.port?":"+n.port:"");let r=t.hostname||t.host;n.hostname=r,n.host=r,n.port=t.port,n.path=l,t.protocol&&(n.protocol=t.protocol.includes(":")?t.protocol:`${t.protocol}:`)}n.beforeRedirects.proxy=function(i){TG(i,e,i.href)}}var hEe=typeof process<"u"&&X.kindOf(process)==="process",mEe=n=>new Promise((e,l)=>{let t,r,i=(a,c)=>{r||(r=!0,t&&t(a,c))},s=a=>{i(a),e(a)},u=a=>{i(a,!0),l(a)};n(s,u,a=>t=a).catch(u)}),gEe=({address:n,family:e})=>{if(!X.isString(n))throw TypeError("address must be a string");return{address:n,family:e||(n.indexOf(".")<0?6:4)}},mG=(n,e)=>gEe(X.isObject(n)?n:{address:n,family:e}),SG=hEe&&function(e){return mEe(async function(t,r,i){let{data:s,lookup:u,family:a}=e,{responseType:c,responseEncoding:f}=e,p=e.method.toUpperCase(),m,d=!1,g;if(u){let ue=fG(u,ve=>X.isArray(ve)?ve:[ve]);u=(ve,q,re)=>{ue(ve,q,(te,ne,Vl)=>{if(te)return re(te);let Nn=X.isArray(ne)?ne.map(Ge=>mG(Ge)):[mG(ne,Vl)];q.all?re(te,Nn):re(te,Nn[0].address,Nn[0].family)})}}let _=new bG.default,S=()=>{e.cancelToken&&e.cancelToken.unsubscribe(T),e.signal&&e.signal.removeEventListener("abort",T),_.removeAllListeners()};i((ue,ve)=>{m=!0,ve&&(d=!0,S())});function T(ue){_.emit("abort",!ue||ue.type?new rr(null,e,g):ue)}_.once("abort",r),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(T),e.signal&&(e.signal.aborted?T():e.signal.addEventListener("abort",T)));let x=pa(e.baseURL,e.url),v=new URL(x,"http://localhost"),b=v.protocol||hG[0];if(b==="data:"){let ue;if(p!=="GET")return Os(t,r,{status:405,statusText:"method not allowed",headers:{},config:e});try{ue=Hb(e.url,c==="blob",{Blob:e.env&&e.env.Blob})}catch(ve){throw Fe.from(ve,Fe.ERR_BAD_REQUEST,e)}return c==="text"?(ue=ue.toString(f),(!f||f==="utf8")&&(ue=X.stripBOM(ue))):c==="stream"&&(ue=ma.default.Readable.from(ue)),Os(t,r,{data:ue,status:200,statusText:"OK",headers:new kt,config:e})}if(hG.indexOf(b)===-1)return r(new Fe("Unsupported protocol "+b,Fe.ERR_BAD_REQUEST,e));let A=kt.from(e.headers).normalize();A.set("User-Agent","axios/"+ha,!1);let R=e.onDownloadProgress,O=e.onUploadProgress,k=e.maxRate,j,L;if(X.isSpecCompliantForm(s)){let ue=A.getContentType(/boundary=([-_\w\d]{10,70})/i);s=aG(s,ve=>{A.set(ve)},{tag:`axios-${ha}-boundary`,boundary:ue&&ue[1]||void 0})}else if(X.isFormData(s)&&X.isFunction(s.getHeaders)){if(A.set(s.getHeaders()),!A.hasContentLength())try{let ue=await _G.default.promisify(s.getLength).call(s);
Line truncated
`+i.map(OG).join(`
`):" "+OG(i[0]):"as no adapter specified";throw new Fe("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return t},adapters:Xb};function Wb(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new rr(null,n)}function Nf(n){return Wb(n),n.headers=kt.from(n.headers),n.data=M5.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),Af.getAdapter(n.adapter||O4.adapter)(n).then(function(t){return Wb(n),t.data=M5.call(n,n.transformResponse,t),t.headers=kt.from(t.headers),t},function(t){return $5(t)||(Wb(n),t&&t.response&&(t.response.data=M5.call(n,n.transformResponse,t.response),t.response.headers=kt.from(t.response.headers))),Promise.reject(t)})}var RG=n=>n instanceof kt?n.toJSON():n;function ki(n,e){e=e||{};let l={};function t(c,f,p){return X.isPlainObject(c)&&X.isPlainObject(f)?X.merge.call({caseless:p},c,f):X.isPlainObject(f)?X.merge({},f):X.isArray(f)?f.slice():f}function r(c,f,p){if(X.isUndefined(f)){if(!X.isUndefined(c))return t(void 0,c,p)}else return t(c,f,p)}function i(c,f){if(!X.isUndefined(f))return t(void 0,f)}function s(c,f){if(X.isUndefined(f)){if(!X.isUndefined(c))return t(void 0,c)}else return t(void 0,f)}function u(c,f,p){if(p in e)return t(c,f);if(p in n)return t(void 0,c)}let a={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u,headers:(c,f)=>r(RG(c),RG(f),!0)};return X.forEach(Object.keys(Object.assign({},n,e)),function(f){let p=a[f]||r,m=p(n[f],e[f],f);X.isUndefined(m)&&p!==u||(l[f]=m)}),l}var Kb={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{Kb[n]=function(t){return typeof t===n||"a"+(e<1?"n ":" ")+n}});var IG={};Kb.transitional=function(e,l,t){function r(i,s){return"[Axios v"+ha+"] Transitional option '"+i+"'"+s+(t?". "+t:"")}return(i,s,u)=>{if(e===!1)throw new Fe(r(s," has been removed"+(l?" in "+l:"")),Fe.ERR_DEPRECATED);return l&&!IG[s]&&(IG[s]=!0,console.warn(r(s," has been deprecated since v"+l+" and will be removed in the near future"))),e?e(i,s,u):!0}};function _Ee(n,e,l){if(typeof n!="object")throw new Fe("options must be an object",Fe.ERR_BAD_OPTION_VALUE);let t=Object.keys(n),r=t.length;for(;r-- >0;){let i=t[r],s=e[i];if(s){let u=n[i],a=u===void 0||s(u,i,n);if(a!==!0)throw new Fe("option "+i+" must be "+a,Fe.ERR_BAD_OPTION_VALUE);continue}if(l!==!0)throw new Fe("Unknown option "+i,Fe.ERR_BAD_OPTION)}}var Of={assertOptions:_Ee,validators:Kb};var Is=Of.validators,C4=class{constructor(e){this.defaults=e,this.interceptors={request:new Sb,response:new Sb}}async request(e,l){try{return await this._request(e,l)}catch(t){if(t instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;let i=r.stack?r.stack.replace(/^.+\n/,""):"";t.stack?i&&!String(t.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(t.stack+=`
`)){let a=u.trim();if(a)if(a.startsWith("#")){if(a.startsWith("#EXT")){let c=ame(a,i);c&&s.push(c)}}else s.push(a)}return s.length!==0&&s[0].name==="EXTM3U"||Le("The EXTM3U tag MUST be the first line."),s}(n,e),t=ome(l,e);return t.source=n,t}var cme=["#EXTINF","#EXT-X-BYTERANGE","#EXT-X-DISCONTINUITY","#EXT-X-STREAM-INF","#EXT-X-CUE-OUT","#EXT-X-CUE-IN","#EXT-X-KEY","#EXT-X-MAP"],fme=["#EXT-X-MEDIA"],_E=class extends Array{constructor(e){super(),this.baseUri=e}push(...e){for(let l of e)if(l.startsWith("#"))if(cme.some(t=>l.startsWith(t)))super.push(l);else{if(this.includes(l)){if(fme.some(t=>l.startsWith(t)))continue;Le(`Redundantitem(${l})`)}super.push(l)}else super.push(l);return this.length}};function SE(n,e){let l=1e3;e&&(l=Math.pow(10,e));let t=Math.round(n*l)/l;return e?t.toFixed(e):t}function pme(n){let e=[`DATA-ID="${n.id}"`];return n.language&&e.push(`LANGUAGE="${n.language}"`),n.value?e.push(`VALUE="${n.value}"`):n.uri&&e.push(`URI="${n.uri}"`),`#EXT-X-SESSION-DATA:${e.join(",")}`}function cH(n,e){let l=e?"#EXT-X-SESSION-KEY":"#EXT-X-KEY",t=[`METHOD=${n.method}`];return n.uri&&t.push(`URI="${n.uri}"`),n.iv&&(n.iv.length!==16&&Le("IV must be a 128-bit unsigned integer"),t.push(`IV=${uH(n.iv)}`)),n.format&&t.push(`KEYFORMAT="${n.format}"`),n.formatVersion&&t.push(`KEYFORMATVERSIONS="${n.formatVersion}"`),`${l}:${t.join(",")}`}function dme(n,e){let l=e.isIFrameOnly?"#EXT-X-I-FRAME-STREAM-INF":"#EXT-X-STREAM-INF",t=[`BANDWIDTH=${e.bandwidth}`];if(e.averageBandwidth&&t.push(`AVERAGE-BANDWIDTH=${e.averageBandwidth}`),e.isIFrameOnly&&t.push(`URI="${e.uri}"`),e.codecs&&t.push(`CODECS="${e.codecs}"`),e.resolution&&t.push(`RESOLUTION=${e.resolution.width}x${e.resolution.height}`),e.frameRate&&t.push(`FRAME-RATE=${SE(e.frameRate,3)}`),e.hdcpLevel&&t.push(`HDCP-LEVEL=${e.hdcpLevel}`),e.audio.length>0){t.push(`AUDIO="${e.audio[0].groupId}"`);for(let r of e.audio)n.push(Sc(r))}if(e.video.length>0){t.push(`VIDEO="${e.video[0].groupId}"`);for(let r of e.video)n.push(Sc(r))}if(e.subtitles.length>0){t.push(`SUBTITLES="${e.subtitles[0].groupId}"`);for(let r of e.subtitles)n.push(Sc(r))}if(Zhe().allowClosedCaptionsNone&&e.closedCaptions.length===0)t.push("CLOSED-CAPTIONS=NONE");else if(e.closedCaptions.length>0){t.push(`CLOSED-CAPTIONS="${e.closedCaptions[0].groupId}"`);for(let r of e.closedCaptions)n.push(Sc(r))}if(e.score&&t.push(`SCORE=${e.score}`),e.allowedCpc){let r=[];for(let{format:i,cpcList:s}of e.allowedCpc)r.push(`${i}:${s.join("/")}`);t.push(`ALLOWED-CPC="${r.join(",")}"`)}e.videoRange&&t.push(`VIDEO-RANGE=${e.videoRange}`),e.stableVariantId&&t.push(`STABLE-VARIANT-ID="${e.stableVariantId}"`),e.programId&&t.push(`PROGRAM-ID=${e.programId}`),n.push(`${l}:${t.join(",")}`),e.isIFrameOnly||n.push(`${e.uri}`)}function Sc(n){let e=[`TYPE=${n.type}`,`GROUP-ID="${n.groupId}"`,`NAME="${n.name}"`];return n.isDefault!==void 0&&e.push("DEFAULT="+(n.isDefault?"YES":"NO")),n.autoselect!==void 0&&e.push("AUTOSELECT="+(n.autoselect?"YES":"NO")),n.forced!==void 0&&e.push("FORCED="+(n.forced?"YES":"NO")),n.language&&e.push(`LANGUAGE="${n.language}"`),n.assocLanguage&&e.push(`ASSOC-LANGUAGE="${n.assocLanguage}"`),n.instreamId&&e.push(`INSTREAM-ID="${n.instreamId}"`),n.characteristics&&e.push(`CHARACTERISTICS="${n.characteristics}"`),n.channels&&e.push(`CHANNELS="${n.channels}"`),n.uri&&e.push(`URI="${n.uri}"`),`#EXT-X-MEDIA:${e.join(",")}`}function hme(n,e,l,t,r=1,i=null){let s=!1,u="";if(e.discontinuity&&n.push("#EXT-X-DISCONTINUITY"),e.key){let c=cH(e.key);c!==l&&(n.push(c),l=c)}if(e.map){let c=function(f){let p=[`URI="${f.uri}"`];return f.byterange&&p.push(`BYTERANGE="${mE(f.byterange)}"`),`#EXT-X-MAP:${p.join(",")}`}(e.map);c!==t&&(n.push(c),t=c)}if(e.programDateTime&&n.push(`#EXT-X-PROGRAM-DATE-TIME:${hE(e.programDateTime)}`),e.dateRange&&n.push(function(c){let f=[`ID="${c.id}"`];c.start&&f.push(`START-DATE="${hE(c.start)}"`),c.end&&f.push(`END-DATE="${hE(c.end)}"`),c.duration&&f.push(`DURATION=${c.duration}`),c.plannedDuration&&f.push(`PLANNED-DURATION=${c.plannedDuration}`),c.classId&&f.push(`CLASS="${c.classId}"`),c.endOnNext&&f.push("END-ON-NEXT=YES");for(let p of Object.keys(c.attributes))p.startsWith("X-")?typeof c.attributes[p]=="number"?f.push(`${p}=${c.attributes[p]}`):f.push(`${p}="${c.attributes[p]}"`):p.startsWith("SCTE35-")&&f.push(`${p}=${uH(c.attributes[p])}`);return`#EXT-X-DATERANGE:${f.join(",")}`}(e.dateRange)),e.markers.length>0&&(u=function(c,f){let p="";for(let m of f)if(m.type==="OUT")p="OUT",c.push(`#EXT-X-CUE-OUT:DURATION=${m.duration}`);else if(m.type==="IN")p="IN",c.push("#EXT-X-CUE-IN");else if(m.type==="RAW"){let h=m.value?`:${m.value}`:"";c.push(`#${m.tagName}${h}`)}return p}(n,e.markers)),e.parts.length>0&&(s=function(c,f){let p=!1;for(let m of f)if(m.hint){let h=[];if(h.push("TYPE=PART",`URI="${m.uri}"`),m.byterange){let{offset:g,length:_}=m.byterange;h.push(`BYTERANGE-START=${g}`),_&&h.push(`BYTERANGE-LENGTH=${_}`)}c.push(`#EXT-X-PRELOAD-HINT:${h.join(",")}`),p=!0}else{let h=[];h.push(
Line truncated
`)}var pH="hls_cache",Mc=[],ea={},d5={},Zu={},Fc="";function mme(n,e){if(Mc.push(n),ea[n]=e,Mc.length>5){let l=Mc.shift();gme(l)}}function gme(n){delete ea[n],delete Mc[n],new JSFile(pH+"/"+n).delete()}function yme(n,e){if(e.variants)for(let l of e.variants)l.uri.startsWith("http")||(l.uri=xE(n,l.uri));if(e.segments)for(let l of e.segments)l.uri.startsWith("http")||(l.uri=xE(n,l.uri)),l.key&&l.key.uri&&!l.key.uri.startsWith("http")&&(l.key.uri=xE(n,l.key.uri));return e}async function dH(n,e){let l=md5X(n);if(ea[l])return ea[l];let t={},r=n;for(;t=await req(r,{headers:e,redirect:0}),t.headers.location;)r=t.headers.location;if(t.code==200){var i=t.content;let s=yme(r,oH(i));return mme(l,{code:t.code,plist:s,key:l,headers:t.headers}),ea[l]}return{}}async function hH(n,e,l){if(!ea[n])return{};let r=ea[n].plist.segments,i=!Zu[n];if(i){Zu[n]={};for(let f of r){let p=md5X(f.uri+f.mediaSequenceNumber.toString());Zu[n][p]={file:pH+"/"+n+"/"+p,uri:f.uri,key:p,index:f.mediaSequenceNumber,order:f.mediaSequenceNumber,state:-1,read:!1}}}for(let f in Zu[n]){let p=Zu[n][f];p.index>=e?p.order=p.index-e:p.order=r.length-e+p.index}i&&vme(n,5,l);let s=r[e],u=md5X(s.uri+s.mediaSequenceNumber.toString()),a=Zu[n][u];if(a.state==1||a.state==-1){let f=new JSFile(a.file);if(await f.exist())return a.state=1,{buffer:3,code:200,headers:{connection:"close","content-type":"video/mp2t"},content:f};a.state=-1}if(a.state==-1&&mH(n,a,l),a.state==0){var c=new JSProxyStream;c.head(200,{connection:"close","content-type":"video/mp2t"});let f=0;return a.read=!0,new Promise(async function(p,m){let h=new JSFile(a.file+".dl");await h.open("r"),async function g(){let _=await h.size();if(_>f){var S=await h.read(_-f,f);await c.write(S),f=_}if(a.state==1||a.state<0){c.done(),await h.close(),await h.delete(),a.read=!1,p();return}setTimeout(g,5)}()}),{buffer:3,content:c}}}async function mH(n,e,l){if(e.state>=0||!d5[n])return;if(e.state=0,await new JSFile(e.file).exist()){e.state=1;return}let t=new JSFile(e.file+".dl");await t.open("w");let r=await req(e.uri,{buffer:3,headers:l,stream:t,timeout:[5e3,1e4]});if(r.error||r.code>=300){await t.close(),e.read||await t.delete(),e.state=-1;return}await t.close(),e.read?await t.copy(e.file):await t.move(e.file),e.state=1}async function vme(n,e,l){Fc&&Fc!=n&&delete d5[Fc],Fc=n,d5[n]=!0;for(let t=0;t<e&&d5[n];t++)new Promise(function(r,i){(async function s(){if(!d5[n]){r();return}let u=de.pickBy(Zu[n],function(c){return c.state==-1}),a=de.minBy(Object.values(u),function(c){return c.order});if(!a){r();return}await mH(n,a,l),setTimeout(s,5)})()})}function xE(n,e){var l=n.split("/"),t=e.split("/");l.pop();for(var r=0;r<t.length;r++)t[r]!="."&&(t[r]==".."?l.pop():l.push(t[r]));return l.join("/")}function gH(n){let e=[];return Array.from(n.danmuku).forEach(l=>{let t=Number(l[0]),r=l[4];e.push(`<dp="${t},1,25,16777215,1659282294,0,8b53b65c,1108899274487246080"><![CDATA[${r}]]></d>`)}),String.raw`<?xmlversion="1.0"encoding="UTF-8"?><i><chatserver>chat.bilibili.com</chatserver><chatid>52175602</chatid><mission>0</mission><maxlimit>1000</maxlimit><state>0</state><real_name>0</real_name><source>k-v</source>`+e.join("")+"</i>"}var$c=class{constructor(){this.siteUrl="https://search.youku.com",this.reconnectTimes=0,this.maxReconnectTimes=5,this.jadeLog=newA3(this.getAppName(),"DEBUG")}getAppName(){return"\u5F39\u5E55"}getHeader(){return{"User-Agent":Lr,Referer:this.siteUrl+"/"}}asyncreconnnect(e,l,t,r,i,s){returnawaitthis.jadeLog.error("\u8BF7\u6C42\u5931\u8D25,\u8BF7\u68C0\u67E5url:"+e+",\u4E24\u79D2\u540E\u91CD\u8BD5"),Z3(2),this.reconnectTimes<this.maxReconnectTimes?(this.reconnectTimes=this.reconnectTimes+1,awaitthis.fetch(e,l,t,r,i,s)):(awaitthis.jadeLog.error("\u8BF7\u6C42\u5931\u8D25,\u91CD\u8FDE\u5931\u8D25"),null)}asyncgetResponse(e,l,t,r,i,s,u){returnu.headers.location!==void0?r?(awaitthis.jadeLog.debug(`\u8FD4\u56DE\u91CD\u5B9A\u5411\u8FDE\u63A5:${u.headers.location}`),u.headers.location):this.fetch(u.headers.location,l,t,r,i,s):u.content.length>0?(this.reconnectTimes=0,i?{cookie:u.headers["set-cookie"],content:u.content}:u.content):s===1?(this.reconnectTimes=0,u.content):(awaitthis.jadeLog.error(`\u8BF7\u6C42\u5931\u8D25,\u8BF7\u6C42url\u4E3A:${e},\u56DE\u590D\u5185\u5BB9\u4E3A:${JSON.stringify(u)}`),awaitthis.reconnnect(e,l,t,r,i,s))}asyncfetch(e,l,t,r=!1,i=!1,s=0){letu=_c(l),a=e;de.isEmpty(u)||(a=e+"?"+u);letc=newr5(a),f;returnf=awaitreq(c.toString(),{method:"get",headers:t,buffer:s,data:null}),f.code===201||f.code===200||f.code===302||f.code===301||i?awaitthis.getResponse(e,l,t,r,i,s,f):(awaitthis.jadeLog.error(`\u8BF7\u6C42\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:\u72B6\u6001\u7801\u51FA\u9519,\u8BF7\u6C42url\u4E3A:${c},\u56DE\u590D\u5185\u5BB9\u4E3A:${JSON.stringify(f)}`),awaitthis.reconnnect(e,l,t,r,i,s))}asyncgetHtml(e=this.siteUrl,l=this.getHeader()){lett=awaitthis.fetch(e,null,l);if(de.isEmpty(t))awaitthis.jadeLog.error("html\u83B7\u53D6\u5931\u8D25",!0);elsereturnpt(t)}asynLine truncated
`).forEach(function(s){r=s.indexOf(":"),l=s.substring(0,r).trim().toLowerCase(),t=s.substring(r+1).trim(),!(!l||e[l]&&c_e[l])&&(l==="set-cookie"?e[l]?e[l].push(t):e[l]=[t]:e[l]=e[l]?e[l]+", "+t:t)}),e};var Mz=Symbol("internals");function C5(n){return n&&String(n).trim().toLowerCase()}function yf(n){return n===!1||n==null?n:X.isArray(n)?n.map(yf):String(n)}function f_e(n){let e=Object.create(null),l=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,t;for(;t=l.exec(n);)e[t[1]]=t[2];return e}var p_e=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());functionTb(n,e,l,t,r){if(X.isFunction(t))returnt.call(this,e,l);if(r&&(e=l),!!X.isString(e)){if(X.isString(t))returne.indexOf(t)!==-1;if(X.isRegExp(t))returnt.test(e)}}functiond_e(n){returnn.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,l,t)=>l.toUpperCase()+t)}functionh_e(n,e){letl=X.toCamelCase(" "+e);["get","set","has"].forEach(t=>{Object.defineProperty(n,t+l,{value:function(r,i,s){returnthis[t].call(this,e,r,i,s)},configurable:!0})})}varA4=class{constructor(e){e&&this.set(e)}set(e,l,t){letr=this;functioni(u,a,c){letf=C5(a);if(!f)thrownewError("header name must be a non-empty string");letp=X.findKey(r,f);(!p||r[p]===void0||c===!0||c===void0&&r[p]!==!1)&&(r[p||a]=yf(u))}lets=(u,a)=>X.forEach(u,(c,f)=>i(c,f,a));returnX.isPlainObject(e)||einstanceofthis.constructor?s(e,l):X.isString(e)&&(e=e.trim())&&!p_e(e)?s(Fz(e),l):e!=null&&i(l,e,t),this}get(e,l){if(e=C5(e),e){lett=X.findKey(this,e);if(t){letr=this[t];if(!l)returnr;if(l===!0)returnf_e(r);if(X.isFunction(l))returnl.call(this,r,t);if(X.isRegExp(l))returnl.exec(r);thrownewTypeError("parser must be boolean|regexp|function")}}}has(e,l){if(e=C5(e),e){lett=X.findKey(this,e);return!!(t&&this[t]!==void0&&(!l||Tb(this,this[t],t,l)))}return!1}delete(e,l){lett=this,r=!1;functioni(s){if(s=C5(s),s){letu=X.findKey(t,s);u&&(!l||Tb(t,t[u],u,l))&&(deletet[u],r=!0)}}returnX.isArray(e)?e.forEach(i):i(e),r}clear(e){letl=Object.keys(this),t=l.length,r=!1;for(;t--;){leti=l[t];(!e||Tb(this,this[i],i,e,!0))&&(deletethis[i],r=!0)}returnr}normalize(e){letl=this,t={};returnX.forEach(this,(r,i)=>{lets=X.findKey(t,i);if(s){l[s]=yf(r),deletel[i];return}letu=e?d_e(i):String(i).trim();u!==i&&deletel[i],l[u]=yf(r),t[u]=!0}),this}concat(...e){returnthis.constructor.concat(this,...e)}toJSON(e){letl=Object.create(null);returnX.forEach(this,(t,r)=>{t!=null&&t!==!1&&(l[r]=e&&X.isArray(t)?t.join(", "):t)}),l}[Symbol.iterator](){returnObject.entries(this.toJSON())[Symbol.iterator]()}toString(){returnObject.entries(this.toJSON()).map(([e,l])=>e+": "+l).join(`
`,F_e=U5.encode(ws),M_e=2,Ub=class{constructor(e,l){let{escapeName:t}=this.constructor,r=X.isString(l),i=`Content-Disposition:form-data;name="${t(e)}"${!r&&l.name?`; filename="${t(l.name)}"`:""}${ws}`;r?l=U5.encode(String(l).replace(/\r?\n|\r\n?/g,ws)):i+=`Content-Type:${l.type||"application/octet-stream"}${ws}`,this.headers=U5.encode(i+ws),this.contentLength=r?l.byteLength:l.size,this.size=this.headers.byteLength+this.contentLength+M_e,this.name=e,this.value=l}async*encode(){yield this.headers;let{value:e}=this;X.isTypedArray(e)?yield e:yield*Ef(e),yield F_e}static escapeName(e){return String(e).replace(/[\r\n"]/g,l=>({"\r":"%0D","\n":"%0A",'"':"%22"})[l])}},$_e=(n,e,l)=>{let{tag:t="form-data-boundary",size:r=25,boundary:i=t+"-"+X.generateString(r,L_e)}=l||{};if(!X.isFormData(n))throw TypeError("FormData instance required");if(i.length<1||i.length>70)throw Error("boundary must be 10-70 characters long");let s=U5.encode("--"+i+ws),u=U5.encode("--"+i+"--"+ws+ws),a=u.byteLength,c=Array.from(n.entries()).map(([p,m])=>{let h=new Ub(p,m);return a+=h.size,h});a+=s.byteLength*c.length,a=X.toFiniteNumber(a);let f={"Content-Type":`multipart/form-data;boundary=${i}`};return Number.isFinite(a)&&(f["Content-Length"]=a),e&&e(f),Qz.Readable.from(async function*(){for(let p of c)yield s,yield*p.encode();yield u}())},Zz=$_e;var eG=St(require("stream"),1),Bb=class extends eG.default.Transform{__transform(e,l,t){this.push(e),t()}_transform(e,l,t){if(e.length!==0&&(this._transform=this.__transform,e[0]!==120)){let r=Buffer.alloc(2);r[0]=120,r[1]=156,this.push(r,l)}this.__transform(e,l,t)}},nG=Bb;var j_e=(n,e)=>X.isAsyncFn(n)?function(...l){let t=l.pop();n.apply(this,l).then(r=>{try{e?t(null,...e(r)):t(null,r)}catch(i){t(i)}},t)}:n,lG=j_e;var tG={flush:Oi.default.constants.Z_SYNC_FLUSH,finishFlush:Oi.default.constants.Z_SYNC_FLUSH},U_e={flush:Oi.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:Oi.default.constants.BROTLI_OPERATION_FLUSH},rG=X.isFunction(Oi.default.createBrotliDecompress),{http:B_e,https:H_e}=fG.default,q_e=/https:?/,iG=Nt.protocols.map(n=>n+":");function V_e(n,e){n.beforeRedirects.proxy&&n.beforeRedirects.proxy(n),n.beforeRedirects.config&&n.beforeRedirects.config(n,e)}function dG(n,e,l){let t=e;if(!t&&t!==!1){let r=(0,uG.getProxyForUrl)(l);r&&(t=new URL(r))}if(t){if(t.username&&(t.auth=(t.username||"")+":"+(t.password||"")),t.auth){(t.auth.username||t.auth.password)&&(t.auth=(t.auth.username||"")+":"+(t.auth.password||""));let i=Buffer.from(t.auth,"utf8").toString("base64");n.headers["Proxy-Authorization"]="Basic "+i}n.headers.host=n.hostname+(n.port?":"+n.port:"");let r=t.hostname||t.host;n.hostname=r,n.host=r,n.port=t.port,n.path=l,t.protocol&&(n.protocol=t.protocol.includes(":")?t.protocol:`${t.protocol}:`)}n.beforeRedirects.proxy=function(i){dG(i,e,i.href)}}var z_e=typeof process<"u"&&X.kindOf(process)==="process",G_e=n=>new Promise((e,l)=>{let t,r,i=(a,c)=>{r||(r=!0,t&&t(a,c))},s=a=>{i(a),e(a)},u=a=>{i(a,!0),l(a)};n(s,u,a=>t=a).catch(u)}),X_e=({address:n,family:e})=>{if(!X.isString(n))throw TypeError("address must be a string");return{address:n,family:e||(n.indexOf(".")<0?6:4)}},sG=(n,e)=>X_e(X.isObject(n)?n:{address:n,family:e}),hG=z_e&&function(e){return G_e(async function(t,r,i){let{data:s,lookup:u,family:a}=e,{responseType:c,responseEncoding:f}=e,p=e.method.toUpperCase(),m,h=!1,g;if(u){let ue=lG(u,ve=>X.isArray(ve)?ve:[ve]);u=(ve,q,re)=>{ue(ve,q,(te,ne,Bl)=>{if(te)return re(te);let Rn=X.isArray(ne)?ne.map(Ge=>sG(Ge)):[sG(ne,Bl)];q.all?re(te,Rn):re(te,Rn[0].address,Rn[0].family)})}}let _=new pG.default,S=()=>{e.cancelToken&&e.cancelToken.unsubscribe(T),e.signal&&e.signal.removeEventListener("abort",T),_.removeAllListeners()};i((ue,ve)=>{m=!0,ve&&(h=!0,S())});function T(ue){_.emit("abort",!ue||ue.type?new nr(null,e,g):ue)}_.once("abort",r),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(T),e.signal&&(e.signal.aborted?T():e.signal.addEventListener("abort",T)));let x=aa(e.baseURL,e.url),v=new URL(x,"http://localhost"),b=v.protocol||iG[0];if(b==="data:"){let ue;if(p!=="GET")return As(t,r,{status:405,statusText:"method not allowed",headers:{},config:e});try{ue=Mb(e.url,c==="blob",{Blob:e.env&&e.env.Blob})}catch(ve){throw Fe.from(ve,Fe.ERR_BAD_REQUEST,e)}return c==="text"?(ue=ue.toString(f),(!f||f==="utf8")&&(ue=X.stripBOM(ue))):c==="stream"&&(ue=fa.default.Readable.from(ue)),As(t,r,{data:ue,status:200,statusText:"OK",headers:new It,config:e})}if(iG.indexOf(b)===-1)return r(new Fe("Unsupported protocol "+b,Fe.ERR_BAD_REQUEST,e));let w=It.from(e.headers).normalize();w.set("User-Agent","axios/"+ca,!1);let N=e.onDownloadProgress,O=e.onUploadProgress,k=e.maxRate,j,L;if(X.isSpecCompliantForm(s)){let ue=w.getContentType(/boundary=([-_\w\d]{10,70})/i);s=Zz(s,ve=>{w.set(ve)},{tag:`axios-${ca}-boundary`,boundary:ue&&ue[1]||void 0})}else if(X.isFormData(s)&&X.isFunction(s.getHeaders)){if(w.set(s.getHeaders()),!w.hasContentLength())try{let ue=await cG.default.promisify(s.getLength).call(s);
Line truncated
`+i.map(_G).join(`
`):" "+_G(i[0]):"as no adapter specified";throw new Fe("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return t},adapters:Hb};function qb(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new nr(null,n)}function Tf(n){return qb(n),n.headers=It.from(n.headers),n.data=k5.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),bf.getAdapter(n.adapter||x4.adapter)(n).then(function(t){return qb(n),t.data=k5.call(n,n.transformResponse,t),t.headers=It.from(t.headers),t},function(t){return P5(t)||(qb(n),t&&t.response&&(t.response.data=k5.call(n,n.transformResponse,t.response),t.response.headers=It.from(t.response.headers))),Promise.reject(t)})}var EG=n=>n instanceof It?n.toJSON():n;function Ni(n,e){e=e||{};let l={};function t(c,f,p){return X.isPlainObject(c)&&X.isPlainObject(f)?X.merge.call({caseless:p},c,f):X.isPlainObject(f)?X.merge({},f):X.isArray(f)?f.slice():f}function r(c,f,p){if(X.isUndefined(f)){if(!X.isUndefined(c))return t(void 0,c,p)}else return t(c,f,p)}function i(c,f){if(!X.isUndefined(f))return t(void 0,f)}function s(c,f){if(X.isUndefined(f)){if(!X.isUndefined(c))return t(void 0,c)}else return t(void 0,f)}function u(c,f,p){if(p in e)return t(c,f);if(p in n)return t(void 0,c)}let a={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u,headers:(c,f)=>r(EG(c),EG(f),!0)};return X.forEach(Object.keys(Object.assign({},n,e)),function(f){let p=a[f]||r,m=p(n[f],e[f],f);X.isUndefined(m)&&p!==u||(l[f]=m)}),l}var Vb={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{Vb[n]=function(t){return typeof t===n||"a"+(e<1?"n ":" ")+n}});var bG={};Vb.transitional=function(e,l,t){function r(i,s){return"[Axios v"+ca+"] Transitional option '"+i+"'"+s+(t?". "+t:"")}return(i,s,u)=>{if(e===!1)throw new Fe(r(s," has been removed"+(l?" in "+l:"")),Fe.ERR_DEPRECATED);return l&&!bG[s]&&(bG[s]=!0,console.warn(r(s," has been deprecated since v"+l+" and will be removed in the near future"))),e?e(i,s,u):!0}};function Y_e(n,e,l){if(typeof n!="object")throw new Fe("options must be an object",Fe.ERR_BAD_OPTION_VALUE);let t=Object.keys(n),r=t.length;for(;r-- >0;){let i=t[r],s=e[i];if(s){let u=n[i],a=u===void 0||s(u,i,n);if(a!==!0)throw new Fe("option "+i+" must be "+a,Fe.ERR_BAD_OPTION_VALUE);continue}if(l!==!0)throw new Fe("Unknown option "+i,Fe.ERR_BAD_OPTION)}}var Sf={assertOptions:Y_e,validators:Vb};var Rs=Sf.validators,R4=class{constructor(e){this.defaults=e,this.interceptors={request:new vb,response:new vb}}async request(e,l){try{return await this._request(e,l)}catch(t){if(t instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;let i=r.stack?r.stack.replace(/^.+\n/,""):"";t.stack?i&&!String(t.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(t.stack+=`
vartne=Object.create;varW8=Object.defineProperty;varnne=Object.getOwnPropertyDescriptor;varlne=Object.getOwnPropertyNames;varrne=Object.getPrototypeOf,ine=Object.prototype.hasOwnProperty;vark=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),zA=(t,e)=>{for(varnine)W8(t,n,{get:e[n],enumerable:!0})},GA=(t,e,n,l)=>{if(e&&typeofe=="object"||typeofe=="function")for(letroflne(e))!ine.call(t,r)&&r!==n&&W8(t,r,{get:()=>e[r],enumerable:!(l=nne(e,r))||l.enumerable});returnt};varZl=(t,e,n)=>(n=t!=null?tne(rne(t)):{},GA(e||!t||!t.__esModule?W8(n,"default",{value:t,enumerable:!0}):n,t)),sne=t=>GA(W8({},"__esModule",{value:!0}),t);varKA=k((INe,JA)=>{"use strict";functionane(t){vare=newt,n=e;functionl(){vari=e;returni.next?e=i.next:(e=newt,n=e),i.next=null,i}functionr(i){n.next=i,n=i}return{get:l,release:r}}JA.exports=ane});varJd=k((RNe,Gd)=>{"use strict";varune=KA();functionXA(t,e,n){if(typeoft=="function"&&(n=e,e=t,t=null),!(n>=1))thrownewError("fastqueue concurrency must be equal to or greater than 1");varl=une(one),r=null,i=null,s=0,a=null,u={push:_,drain:X3,saturated:X3,pause:c,paused:!1,getconcurrency(){returnn},setconcurrency(x){if(!(x>=1))thrownewError("fastqueue concurrency must be equal to or greater than 1");if(n=x,!u.paused)for(;r&&s<n;)s++,w()},running:o,resume:d,idle:y,length:f,getQueue:m,unshift:S,empty:X3,kill:E,killAndDrain:g,error:v};returnu;functiono(){returns}functionc(){u.paused=!0}functionf(){for(varx=r,O=0;x;)x=x.next,O++;returnO}functionm(){for(varx=r,O=[];x;)O.push(x.value),x=x.next;returnO}functiond(){if(u.paused)for(u.paused=!1;r&&s<n;)s++,w()}functiony(){returns===0&&u.length()===0}function_(x,O){varN=l.get();N.context=t,N.release=w,N.value=x,N.callback=O||X3,N.errorHandler=a,s>=n||u.paused?i?(i.next=N,i=N):(r=N,i=N,u.saturated()):(s++,e.call(t,N.value,N.worked))}functionS(x,O){varN=l.get();N.context=t,N.release=w,N.value=x,N.callback=O||X3,N.errorHandler=a,s>=n||u.paused?r?(N.next=r,r=N):(r=N,i=N,u.saturated()):(s++,e.call(t,N.value,N.worked))}functionw(x){x&&l.release(x);varO=r;O&&s<=n?u.paused?s--:(i===r&&(i=null),r=O.next,O.next=null,e.call(t,O.value,O.worked),i===null&&u.empty()):--s===0&&u.drain()}functionE(){r=null,i=null,u.drain=X3}functiong(){r=null,i=null,u.drain(),u.drain=X3}functionv(x){a=x}}functionX3(){}functionone(){this.value=null,this.callback=X3,this.next=null,this.release=X3,this.context=null,this.errorHandler=null;vart=this;this.worked=function(n,l){varr=t.callback,i=t.errorHandler,s=t.value;t.value=null,t.callback=X3,t.errorHandler&&i(n,s),r.call(t.context,n,l),t.release(t)}}functioncne(t,e,n){typeoft=="function"&&(n=e,e=t,t=null);functionl(c,f){e.call(this,c).then(function(m){f(null,m)},f)}varr=XA(t,l,n),i=r.push,s=r.unshift;returnr.push=a,r.unshift=u,r.drained=o,r;functiona(c){varf=newPromise(function(m,d){i(c,function(y,_){if(y){d(y);return}m(_)})});returnf.catch(X3),f}functionu(c){varf=newPromise(function(m,d){s(c,function(y,_){if(y){d(y);return}m(_)})});returnf.catch(X3),f}functiono(){if(r.idle())returnnewPromise(function(m){m()});varc=r.drain,f=newPromise(function(m){r.drain=function(){c(),m()}});returnf}}Gd.exports=XA;Gd.exports.promise=cne});varXd=k((kNe,WA)=>{"use strict";var{inherits:pne,format:Kd}=require("util");functionEu(t,e,n=Error){if(!t)thrownewError("Avvio error code must not be empty");if(!e)thrownewError("Avvio base error message must not be empty");functionl(r,i,s){if(!new.target)returnnewl(r,i,s);Error.captureStackTrace(this,l),this.code=t,this.message=e,this.name="AvvioError",r&&i&&s?this.message=Kd(e,r,i,s):r&&i?this.message=Kd(e,r,i):r?this.message=Kd(e,r):this.message=e}returnl.prototype[Symbol.toStringTag]="Error",l.prototype.toString=function(){return`${this.name} [${this.code}]: ${this.message}`},pne(l,n),l}WA.exports={createError:Eu,AVV_ERR_EXPOSE_ALREADY_DEFINED:Eu("AVV_ERR_EXPOSE_ALREADY_DEFINED","'%s' () is already defined, specify an expose option"),AVV_ERR_CALLBACK_NOT_FN:Eu("AVV_ERR_CALLBACK_NOT_FN","Callback for '%s' hook is not a function. Received: '%s'"),AVV_ERR_PLUGIN_NOT_VALID:Eu("AVV_ERR_PLUGIN_NOT_VALID","Plugin must be a function or a promise. Received: '%s'"),AVV_ERR_ROOT_PLG_BOOTED:Eu("AVV_ERR_PLUGIN_NOT_VALID","Root plugin has already booted"),AVV_ERR_PARENT_PLG_LOADED:Eu("AVV_ERR_PARENT_PLG_LOADED","Impossible to load '%s' plugin because the parent '%s' was already loaded"),AVV_ERR_READY_TIMEOUT:Eu("AVV_ERR_READY_TIMEOUT","Plugin did not start in time: '%s'. You may have forgotten to call 'done' function or to resolve a Promise")}});varQA=k((DNe,YA)=>{YA.exports=functiont(e,n,l){n===void0&&(n=""),l||(l={});varr=function(u){varo={"\u2502":"|","\u2514":"`","\u251C":"+","\u2500":"-","\u252C":"-"};returnl.unicode===!1?o[u]:u};typeofe=="string"&&(e={label:e});vari=e.nodes||[],s=(e.label||"").split(`
varEte=Object.create;varq8=Object.defineProperty;varbte=Object.getOwnPropertyDescriptor;varwte=Object.getOwnPropertyNames;varSte=Object.getPrototypeOf,Tte=Object.prototype.hasOwnProperty;vark=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),RA=(t,e)=>{for(varnine)q8(t,n,{get:e[n],enumerable:!0})},kA=(t,e,n,l)=>{if(e&&typeofe=="object"||typeofe=="function")for(letrofwte(e))!Tte.call(t,r)&&r!==n&&q8(t,r,{get:()=>e[r],enumerable:!(l=bte(e,r))||l.enumerable});returnt};varWl=(t,e,n)=>(n=t!=null?Ete(Ste(t)):{},kA(e||!t||!t.__esModule?q8(n,"default",{value:t,enumerable:!0}):n,t)),xte=t=>kA(q8({},"__esModule",{value:!0}),t);varPA=k((HOe,DA)=>{"use strict";functionAte(t){vare=newt,n=e;functionl(){vari=e;returni.next?e=i.next:(e=newt,n=e),i.next=null,i}functionr(i){n.next=i,n=i}return{get:l,release:r}}DA.exports=Ate});varMd=k((qOe,Ud)=>{"use strict";varOte=PA();functionLA(t,e,n){if(typeoft=="function"&&(n=e,e=t,t=null),!(n>=1))thrownewError("fastqueue concurrency must be equal to or greater than 1");varl=Ote(Nte),r=null,i=null,s=0,a=null,u={push:_,drain:G3,saturated:G3,pause:c,paused:!1,getconcurrency(){returnn},setconcurrency(x){if(!(x>=1))thrownewError("fastqueue concurrency must be equal to or greater than 1");if(n=x,!u.paused)for(;r&&s<n;)s++,w()},running:o,resume:d,idle:y,length:f,getQueue:m,unshift:S,empty:G3,kill:E,killAndDrain:g,error:v};returnu;functiono(){returns}functionc(){u.paused=!0}functionf(){for(varx=r,O=0;x;)x=x.next,O++;returnO}functionm(){for(varx=r,O=[];x;)O.push(x.value),x=x.next;returnO}functiond(){if(u.paused)for(u.paused=!1;r&&s<n;)s++,w()}functiony(){returns===0&&u.length()===0}function_(x,O){varN=l.get();N.context=t,N.release=w,N.value=x,N.callback=O||G3,N.errorHandler=a,s>=n||u.paused?i?(i.next=N,i=N):(r=N,i=N,u.saturated()):(s++,e.call(t,N.value,N.worked))}functionS(x,O){varN=l.get();N.context=t,N.release=w,N.value=x,N.callback=O||G3,N.errorHandler=a,s>=n||u.paused?r?(N.next=r,r=N):(r=N,i=N,u.saturated()):(s++,e.call(t,N.value,N.worked))}functionw(x){x&&l.release(x);varO=r;O&&s<=n?u.paused?s--:(i===r&&(i=null),r=O.next,O.next=null,e.call(t,O.value,O.worked),i===null&&u.empty()):--s===0&&u.drain()}functionE(){r=null,i=null,u.drain=G3}functiong(){r=null,i=null,u.drain(),u.drain=G3}functionv(x){a=x}}functionG3(){}functionNte(){this.value=null,this.callback=G3,this.next=null,this.release=G3,this.context=null,this.errorHandler=null;vart=this;this.worked=function(n,l){varr=t.callback,i=t.errorHandler,s=t.value;t.value=null,t.callback=G3,t.errorHandler&&i(n,s),r.call(t.context,n,l),t.release(t)}}functionCte(t,e,n){typeoft=="function"&&(n=e,e=t,t=null);functionl(c,f){e.call(this,c).then(function(m){f(null,m)},f)}varr=LA(t,l,n),i=r.push,s=r.unshift;returnr.push=a,r.unshift=u,r.drained=o,r;functiona(c){varf=newPromise(function(m,d){i(c,function(y,_){if(y){d(y);return}m(_)})});returnf.catch(G3),f}functionu(c){varf=newPromise(function(m,d){s(c,function(y,_){if(y){d(y);return}m(_)})});returnf.catch(G3),f}functiono(){if(r.idle())returnnewPromise(function(m){m()});varc=r.drain,f=newPromise(function(m){r.drain=function(){c(),m()}});returnf}}Ud.exports=LA;Ud.exports.promise=Cte});varBd=k((VOe,FA)=>{"use strict";var{inherits:Ite,format:$d}=require("util");functiondu(t,e,n=Error){if(!t)thrownewError("Avvio error code must not be empty");if(!e)thrownewError("Avvio base error message must not be empty");functionl(r,i,s){if(!new.target)returnnewl(r,i,s);Error.captureStackTrace(this,l),this.code=t,this.message=e,this.name="AvvioError",r&&i&&s?this.message=$d(e,r,i,s):r&&i?this.message=$d(e,r,i):r?this.message=$d(e,r):this.message=e}returnl.prototype[Symbol.toStringTag]="Error",l.prototype.toString=function(){return`${this.name} [${this.code}]: ${this.message}`},Ite(l,n),l}FA.exports={createError:du,AVV_ERR_EXPOSE_ALREADY_DEFINED:du("AVV_ERR_EXPOSE_ALREADY_DEFINED","'%s' () is already defined, specify an expose option"),AVV_ERR_CALLBACK_NOT_FN:du("AVV_ERR_CALLBACK_NOT_FN","Callback for '%s' hook is not a function. Received: '%s'"),AVV_ERR_PLUGIN_NOT_VALID:du("AVV_ERR_PLUGIN_NOT_VALID","Plugin must be a function or a promise. Received: '%s'"),AVV_ERR_ROOT_PLG_BOOTED:du("AVV_ERR_PLUGIN_NOT_VALID","Root plugin has already booted"),AVV_ERR_PARENT_PLG_LOADED:du("AVV_ERR_PARENT_PLG_LOADED","Impossible to load '%s' plugin because the parent '%s' was already loaded"),AVV_ERR_READY_TIMEOUT:du("AVV_ERR_READY_TIMEOUT","Plugin did not start in time: '%s'. You may have forgotten to call 'done' function or to resolve a Promise")}});varUA=k((zOe,jA)=>{jA.exports=functiont(e,n,l){n===void0&&(n=""),l||(l={});varr=function(u){varo={"\u2502":"|","\u2514":"`","\u251C":"+","\u2500":"-","\u252C":"-"};returnl.unicode===!1?o[u]:u};typeofe=="string"&&(e={label:e});vari=e.nodes||[],s=(e.label||"").split(`
deps:${n}}`};var c4e={keyword:"dependencies",type:"object",schemaType:"object",error:ei.error,code(t){let[e,n]=p4e(t);rk(t,e),ik(t,n)}};function p4e({schema:t}){let e={},n={};for(let l in t){if(l==="__proto__")continue;let r=Array.isArray(t[l])?e:n;r[l]=t[l]}return[e,n]}function rk(t,e=t.schema){let{gen:n,data:l,it:r}=t;if(Object.keys(e).length===0)return;let i=n.let("missing");for(let s in e){let a=e[s];if(a.length===0)continue;let u=(0,G1.propertyInData)(n,l,s,r.opts.ownProperties);t.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),r.allErrors?n.if(u,()=>{for(let o of a)(0,G1.checkReportMissingProp)(t,o)}):(n.if((0,Ly._)`${u}&&(${(0,G1.checkMissingProp)(t,a,i)})`),(0,G1.reportMissingProp)(t,i),n.else())}}ei.validatePropertyDeps=rk;function ik(t,e=t.schema){let{gen:n,data:l,keyword:r,it:i}=t,s=n.name("valid");for(let a in e)(0,o4e.alwaysValidSchema)(i,e[a])||(n.if((0,G1.propertyInData)(n,l,a,i.opts.ownProperties),()=>{let u=t.subschema({keyword:r,schemaProp:a},s);t.mergeValidEvaluated(u,s)},()=>n.var(s,!0)),t.ok(s))}ei.validateSchemaDeps=ik;ei.default=c4e});var uk=k(Fy=>{"use strict";Object.defineProperty(Fy,"__esModule",{value:!0});var ak=st(),f4e=Nt(),d4e={message:"property name must be valid",params:({params:t})=>(0,ak._)`{propertyName:${t.propertyName}}`},h4e={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:d4e,code(t){let{gen:e,schema:n,data:l,it:r}=t;if((0,f4e.alwaysValidSchema)(r,n))return;let i=e.name("valid");e.forIn("key",l,s=>{t.setParams({propertyName:s}),t.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},i),e.if((0,ak.not)(i),()=>{t.error(!0),r.allErrors||e.break()})}),t.ok(i)}};Fy.default=h4e});var Uy=k(jy=>{"use strict";Object.defineProperty(jy,"__esModule",{value:!0});var t9=O2(),xr=st(),m4e=Q3(),n9=Nt(),y4e={message:"must NOT have additional properties",params:({params:t})=>(0,xr._)`{additionalProperty:${t.additionalProperty}}`},g4e={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:y4e,code(t){let{gen:e,schema:n,parentSchema:l,data:r,errsCount:i,it:s}=t;if(!i)throw new Error("ajv implementation error");let{allErrors:a,opts:u}=s;if(s.props=!0,u.removeAdditional!=="all"&&(0,n9.alwaysValidSchema)(s,n))return;let o=(0,t9.allSchemaProperties)(l.properties),c=(0,t9.allSchemaProperties)(l.patternProperties);f(),t.ok((0,xr._)`${i}===${m4e.default.errors}`);function f(){e.forIn("key",r,S=>{!o.length&&!c.length?y(S):e.if(m(S),()=>y(S))})}function m(S){let w;if(o.length>8){let E=(0,n9.schemaRefOrVal)(s,l.properties,"properties");w=(0,t9.isOwnProperty)(e,E,S)}else o.length?w=(0,xr.or)(...o.map(E=>(0,xr._)`${S}===${E}`)):w=xr.nil;return c.length&&(w=(0,xr.or)(w,...c.map(E=>(0,xr._)`${(0,t9.usePattern)(t,E)}.test(${S})`))),(0,xr.not)(w)}function d(S){e.code((0,xr._)`delete${r}[${S}]`)}function y(S){if(u.removeAdditional==="all"||u.removeAdditional&&n===!1){d(S);return}if(n===!1){t.setParams({additionalProperty:S}),t.error(),a||e.break();return}if(typeof n=="object"&&!(0,n9.alwaysValidSchema)(s,n)){let w=e.name("valid");u.removeAdditional==="failing"?(_(S,w,!1),e.if((0,xr.not)(w),()=>{t.reset(),d(S)})):(_(S,w),a||e.if((0,xr.not)(w),()=>e.break()))}}function _(S,w,E){let g={keyword:"additionalProperties",dataProp:S,dataPropType:n9.Type.Str};E===!1&&Object.assign(g,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(g,w)}}};jy.default=g4e});var pk=k($y=>{"use strict";Object.defineProperty($y,"__esModule",{value:!0});var v4e=f0(),ok=O2(),My=Nt(),ck=Uy(),_4e={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:n,parentSchema:l,data:r,it:i}=t;i.opts.removeAdditional==="all"&&l.additionalProperties===void 0&&ck.default.code(new v4e.KeywordCxt(i,ck.default,"additionalProperties"));let s=(0,ok.allSchemaProperties)(n);for(let f of s)i.definedProperties.add(f);i.opts.unevaluated&&s.length&&i.props!==!0&&(i.props=My.mergeEvaluated.props(e,(0,My.toHash)(s),i.props));let a=s.filter(f=>!(0,My.alwaysValidSchema)(i,n[f]));if(a.length===0)return;let u=e.name("valid");for(let f of a)o(f)?c(f):(e.if((0,ok.propertyInData)(e,r,f,i.opts.ownProperties)),c(f),i.allErrors||e.else().var(u,!0),e.endIf()),t.it.definedProperties.add(f),t.ok(u);function o(f){return i.opts.useDefaults&&!i.compositeRule&&n[f].default!==void 0}function c(f){t.subschema({keyword:"properties",schemaProp:f,dataProp:f},u)}}};$y.default=_4e});var mk=k(By=>{"use strict";Object.defineProperty(By,"__esModule",{value:!0});var fk=O2(),l9=st(),dk=Nt(),hk=Nt(),E4e={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:n,data:l,parentSchema:r,it:i}=t,{opts:s}=i,a=(0,fk.allSchemaProperties)(n),u=a.filter(_=>(0,dk.alwaysValidSchema)(i,n[_]));if(a.length===0||u.length===a.length&&(!i.opts.unevaluated||i.props===!0))return;let o=s.strictSchema&&!s.allowMatchingProperties&&r.properties,c=e.name("valid");i.props!==!0&&!(i.props instanc
Line truncated
deps:${n}}`};var C0e={keyword:"dependencies",type:"object",schemaType:"object",error:Yr.error,code(t){let[e,n]=I0e(t);VR(t,e),zR(t,n)}};function I0e({schema:t}){let e={},n={};for(let l in t){if(l==="__proto__")continue;let r=Array.isArray(t[l])?e:n;r[l]=t[l]}return[e,n]}function VR(t,e=t.schema){let{gen:n,data:l,it:r}=t;if(Object.keys(e).length===0)return;let i=n.let("missing");for(let s in e){let a=e[s];if(a.length===0)continue;let u=(0,M1.propertyInData)(n,l,s,r.opts.ownProperties);t.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),r.allErrors?n.if(u,()=>{for(let o of a)(0,M1.checkReportMissingProp)(t,o)}):(n.if((0,Oy._)`${u}&&(${(0,M1.checkMissingProp)(t,a,i)})`),(0,M1.reportMissingProp)(t,i),n.else())}}Yr.validatePropertyDeps=VR;function zR(t,e=t.schema){let{gen:n,data:l,keyword:r,it:i}=t,s=n.name("valid");for(let a in e)(0,N0e.alwaysValidSchema)(i,e[a])||(n.if((0,M1.propertyInData)(n,l,a,i.opts.ownProperties),()=>{let u=t.subschema({keyword:r,schemaProp:a},s);t.mergeValidEvaluated(u,s)},()=>n.var(s,!0)),t.ok(s))}Yr.validateSchemaDeps=zR;Yr.default=C0e});var KR=k(Ny=>{"use strict";Object.defineProperty(Ny,"__esModule",{value:!0});var JR=st(),R0e=Nt(),k0e={message:"property name must be valid",params:({params:t})=>(0,JR._)`{propertyName:${t.propertyName}}`},D0e={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:k0e,code(t){let{gen:e,schema:n,data:l,it:r}=t;if((0,R0e.alwaysValidSchema)(r,n))return;let i=e.name("valid");e.forIn("key",l,s=>{t.setParams({propertyName:s}),t.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},i),e.if((0,JR.not)(i),()=>{t.error(!0),r.allErrors||e.break()})}),t.ok(i)}};Ny.default=D0e});var Iy=k(Cy=>{"use strict";Object.defineProperty(Cy,"__esModule",{value:!0});var K9=S2(),wr=st(),P0e=X3(),X9=Nt(),L0e={message:"must NOT have additional properties",params:({params:t})=>(0,wr._)`{additionalProperty:${t.additionalProperty}}`},F0e={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:L0e,code(t){let{gen:e,schema:n,parentSchema:l,data:r,errsCount:i,it:s}=t;if(!i)throw new Error("ajv implementation error");let{allErrors:a,opts:u}=s;if(s.props=!0,u.removeAdditional!=="all"&&(0,X9.alwaysValidSchema)(s,n))return;let o=(0,K9.allSchemaProperties)(l.properties),c=(0,K9.allSchemaProperties)(l.patternProperties);f(),t.ok((0,wr._)`${i}===${P0e.default.errors}`);function f(){e.forIn("key",r,S=>{!o.length&&!c.length?y(S):e.if(m(S),()=>y(S))})}function m(S){let w;if(o.length>8){let E=(0,X9.schemaRefOrVal)(s,l.properties,"properties");w=(0,K9.isOwnProperty)(e,E,S)}else o.length?w=(0,wr.or)(...o.map(E=>(0,wr._)`${S}===${E}`)):w=wr.nil;return c.length&&(w=(0,wr.or)(w,...c.map(E=>(0,wr._)`${(0,K9.usePattern)(t,E)}.test(${S})`))),(0,wr.not)(w)}function d(S){e.code((0,wr._)`delete${r}[${S}]`)}function y(S){if(u.removeAdditional==="all"||u.removeAdditional&&n===!1){d(S);return}if(n===!1){t.setParams({additionalProperty:S}),t.error(),a||e.break();return}if(typeof n=="object"&&!(0,X9.alwaysValidSchema)(s,n)){let w=e.name("valid");u.removeAdditional==="failing"?(_(S,w,!1),e.if((0,wr.not)(w),()=>{t.reset(),d(S)})):(_(S,w),a||e.if((0,wr.not)(w),()=>e.break()))}}function _(S,w,E){let g={keyword:"additionalProperties",dataProp:S,dataPropType:X9.Type.Str};E===!1&&Object.assign(g,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(g,w)}}};Cy.default=F0e});var YR=k(ky=>{"use strict";Object.defineProperty(ky,"__esModule",{value:!0});var j0e=i0(),XR=S2(),Ry=Nt(),WR=Iy(),U0e={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:n,parentSchema:l,data:r,it:i}=t;i.opts.removeAdditional==="all"&&l.additionalProperties===void 0&&WR.default.code(new j0e.KeywordCxt(i,WR.default,"additionalProperties"));let s=(0,XR.allSchemaProperties)(n);for(let f of s)i.definedProperties.add(f);i.opts.unevaluated&&s.length&&i.props!==!0&&(i.props=Ry.mergeEvaluated.props(e,(0,Ry.toHash)(s),i.props));let a=s.filter(f=>!(0,Ry.alwaysValidSchema)(i,n[f]));if(a.length===0)return;let u=e.name("valid");for(let f of a)o(f)?c(f):(e.if((0,XR.propertyInData)(e,r,f,i.opts.ownProperties)),c(f),i.allErrors||e.else().var(u,!0),e.endIf()),t.it.definedProperties.add(f),t.ok(u);function o(f){return i.opts.useDefaults&&!i.compositeRule&&n[f].default!==void 0}function c(f){t.subschema({keyword:"properties",schemaProp:f,dataProp:f},u)}}};ky.default=U0e});var tk=k(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0});var QR=S2(),W9=st(),ZR=Nt(),ek=Nt(),M0e={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:n,data:l,parentSchema:r,it:i}=t,{opts:s}=i,a=(0,QR.allSchemaProperties)(n),u=a.filter(_=>(0,ZR.alwaysValidSchema)(i,n[_]));if(a.length===0||u.length===a.length&&(!i.opts.unevaluated||i.props===!0))return;let o=s.strictSchema&&!s.allowMatchingProperties&&r.properties,c=e.name("valid");i.props!==!0&&!(i.props instanc
Line truncated
`;let a=new U7e(e),u=new M7e(e.ajv);for(let c of n.validatorSchemasIds){let f=n.refResolver.getSchema(c);u.addSchema(f,c);let m=n.refResolver.getSchemaDependencies(c);for(let[d,y]of Object.entries(m))u.addSchema(y,d)}if(e.debugMode&&(e.mode="debug"),e.mode==="debug")return{validator:u,serializer:a,code:`validator
`;let a=new l7e(e),u=new r7e(e.ajv);for(let c of n.validatorSchemasIds){let f=n.refResolver.getSchema(c);u.addSchema(f,c);let m=n.refResolver.getSchemaDependencies(c);for(let[d,y]of Object.entries(m))u.addSchema(y,d)}if(e.debugMode&&(e.mode="debug"),e.mode==="debug")return{validator:u,serializer:a,code:`validator
serializer
${s}`,ajv:u.ajv};let o=new Function("validator","serializer",s);return e.mode==="standalone"?mg()(o,n,a,u):o(u,a)}var H7e=["properties","required","additionalProperties","patternProperties","maxProperties","minProperties","dependencies"],V7e=["items","additionalItems","maxItems","minItems","uniqueItems","contains"],q7e=["maxLength","minLength","pattern"],z7e=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum"];function DF(t){for(var e of H7e)if(e in t)return"object";for(var e of V7e)if(e in t)return"array";for(var e of q7e)if(e in t)return"string";for(var e of z7e)if(e in t)return"number";return t.type}function G7e(t,e){let n=e.schema,l=Object.keys(n.properties||{}),r=`
${s}`,ajv:u.ajv};let o=new Function("validator","serializer",s);return e.mode==="standalone"?ag()(o,n,a,u):o(u,a)}var a7e=["properties","required","additionalProperties","patternProperties","maxProperties","minProperties","dependencies"],u7e=["items","additionalItems","maxItems","minItems","uniqueItems","contains"],o7e=["maxLength","minLength","pattern"],c7e=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum"];function _F(t){for(var e of a7e)if(e in t)return"object";for(var e of u7e)if(e in t)return"array";for(var e of o7e)if(e in t)return"string";for(var e of c7e)if(e in t)return"number";return t.type}function p7e(t,e){let n=e.schema,l=Object.keys(n.properties||{}),r=`
`,r}function J7e(t,e){let n="",l=e.schema,r=l.required||[],i=e.getPropertyLocation("properties"),s=[],a=[];if(l.properties)for(let o of Object.keys(l.properties)){if(r.indexOf(o)===-1)continue;let c=i.getPropertyLocation(o);c.schema.$ref&&(c=C0(t,e,c.schema.$ref));let f=JSON.stringify(o);c.schema.default===void 0&&(n+=`if(obj[${f}]===undefined)thrownewError('${f} is required!')
`,r}function f7e(t,e){let n="",l=e.schema,r=l.required||[],i=e.getPropertyLocation("properties"),s=[],a=[];if(l.properties)for(let o of Object.keys(l.properties)){if(r.indexOf(o)===-1)continue;let c=i.getPropertyLocation(o);c.schema.$ref&&(c=w0(t,e,c.schema.$ref));let f=JSON.stringify(o);c.schema.default===void 0&&(n+=`if(obj[${f}]===undefined)thrownewError('${f} is required!')
`,a.push(o)),s.push(o)}for(let o of r)s.indexOf(o)===-1&&(n+=`if(obj['${o}']===undefined)thrownewError('"${o}" is required!')
`);n+=`
letaddComma=false
letjson='${t.wrapObjects?"{":""}'
`;let u=t.wrapObjects;if(t.wrapObjects=!0,l.properties)for(let o of Object.keys(l.properties)){let c=i.getPropertyLocation(o);c.schema.$ref&&(c=C0(t,e,c.schema.$ref));let f=JSON.stringify(o);if(a.indexOf(o)!==-1)n+=`
${N0}
`;let u=t.wrapObjects;if(t.wrapObjects=!0,l.properties)for(let o of Object.keys(l.properties)){let c=i.getPropertyLocation(o);c.schema.$ref&&(c=w0(t,e,c.schema.$ref));let f=JSON.stringify(o);if(a.indexOf(o)!==-1)n+=`
${e}`)}function a7(t,e,n,l){if((t.isLeafNode||l.commonPrefix!==!1)&&(n=n||"(empty root node)",e=e[n]={},t.isLeafNode&&(e[FU]=Wde(t,n,l)),n=""),t.staticChildren)for(let r of Object.values(t.staticChildren))a7(r,e,n+r.prefix,l);if(t.parametricChildren)for(let r of Object.values(t.parametricChildren)){let i=Array.from(r.nodePaths).join("|");a7(r,e,n+i,l)}t.wildcardChild&&a7(t.wildcardChild,e,"*",l)}function Yde(t,e){let n={};return a7(t,n,t.prefix,e),jU(n)}MU.exports={prettyPrintTree:Yde}});var HU=k((lDe,BU)=>{"use strict";var Qde=s7(),m_=class{constructor(){this.unconstrainedHandler=null,this.constraints=[],this.handlers=[],this.constrainedHandlerStores=null}getMatchingHandler(e){return e===void 0?this.unconstrainedHandler:this._getHandlerMatchingConstraints(e)}addHandler(e,n){let l=n.params,r=n.opts.constraints||{},i={params:l,constraints:r,handler:n.handler,store:n.store||null,_createParamsObject:this._compileCreateParamsObject(l)},s=Object.keys(r);s.length===0&&(this.unconstrainedHandler=i);for(let u of s)this.constraints.includes(u)||(u==="version"?this.constraints.unshift(u):this.constraints.push(u));let a=s.includes(Qde.name);if(!a&&this.handlers.length>=32)throw new Error("find-my-way supports a maximum of 32 route handlers per node when there are constraints, limit reached");this.handlers.push(i),this.handlers.sort((u,o)=>Object.keys(u.constraints).length-Object.keys(o.constraints).length),a||this._compileGetHandlerMatchingConstraints(e,r)}_compileCreateParamsObject(e){let n=[];for(let l=0;l<e.length;l++)n.push(`'${e[l]}':paramsArray[${l}]`);return new Function("paramsArray",`return{${n.join(",")}}`)}_getHandlerMatchingConstraints(){return null}_buildConstraintStore(e,n){for(let l=0;l<this.handlers.length;l++){let i=this.handlers[l].constraints[n];if(i!==void 0){let s=e.get(i)||0;s|=1<<l,e.set(i,s)}}}_constrainedIndexBitmask(e){let n=0;for(let l=0;l<this.handlers.length;l++)this.handlers[l].constraints[e]!==void 0&&(n|=1<<l);return~n}_compileGetHandlerMatchingConstraints(e){this.constrainedHandlerStores={};for(let l of this.constraints){let r=e.newStoreForConstraint(l);this.constrainedHandlerStores[l]=r,this._buildConstraintStore(r,l)}let n=[];n.push(`
`,n+=SU(s,e+o)}return n}function ode(t){let e=t.name||"";return e=e.replace("bound","").trim(),e=(e||"anonymous")+"()",e}function TU(t){return Array.isArray(t)?t.map(e=>TU(e)):typeof t=="symbol"?t.toString():typeof t=="function"?ode(t):t}function cde(t,e){if(!e.includeMeta)return{};let n=e.buildPrettyMeta(t),l={},r=e.includeMeta;Array.isArray(r)||(r=Reflect.ownKeys(n));for(let i of r){if(!Object.prototype.hasOwnProperty.call(n,i))continue;let s=i.toString(),a=n[i];if(a!=null){let u=JSON.stringify(TU(a));l[s]=u}}return l}function pde(t){let e="";for(let[n,l]of Object.entries(t))e+=`
${e}`)}function e7(t,e,n,l){if((t.isLeafNode||l.commonPrefix!==!1)&&(n=n||"(empty root node)",e=e[n]={},t.isLeafNode&&(e[wU]=mde(t,n,l)),n=""),t.staticChildren)for(let r of Object.values(t.staticChildren))e7(r,e,n+r.prefix,l);if(t.parametricChildren)for(let r of Object.values(t.parametricChildren)){let i=Array.from(r.nodePaths).join("|");e7(r,e,n+i,l)}t.wildcardChild&&e7(t.wildcardChild,e,"*",l)}function yde(t,e){let n={};return e7(t,n,t.prefix,e),SU(n)}xU.exports={prettyPrintTree:yde}});var NU=k((mke,OU)=>{"use strict";var gde=Zc(),a_=class{constructor(){this.unconstrainedHandler=null,this.constraints=[],this.handlers=[],this.constrainedHandlerStores=null}getMatchingHandler(e){return e===void 0?this.unconstrainedHandler:this._getHandlerMatchingConstraints(e)}addHandler(e,n){let l=n.params,r=n.opts.constraints||{},i={params:l,constraints:r,handler:n.handler,store:n.store||null,_createParamsObject:this._compileCreateParamsObject(l)},s=Object.keys(r);s.length===0&&(this.unconstrainedHandler=i);for(let u of s)this.constraints.includes(u)||(u==="version"?this.constraints.unshift(u):this.constraints.push(u));let a=s.includes(gde.name);if(!a&&this.handlers.length>=32)throw new Error("find-my-way supports a maximum of 32 route handlers per node when there are constraints, limit reached");this.handlers.push(i),this.handlers.sort((u,o)=>Object.keys(u.constraints).length-Object.keys(o.constraints).length),a||this._compileGetHandlerMatchingConstraints(e,r)}_compileCreateParamsObject(e){let n=[];for(let l=0;l<e.length;l++)n.push(`'${e[l]}':paramsArray[${l}]`);return new Function("paramsArray",`return{${n.join(",")}}`)}_getHandlerMatchingConstraints(){return null}_buildConstraintStore(e,n){for(let l=0;l<this.handlers.length;l++){let i=this.handlers[l].constraints[n];if(i!==void 0){let s=e.get(i)||0;s|=1<<l,e.set(i,s)}}}_constrainedIndexBitmask(e){let n=0;for(let l=0;l<this.handlers.length;l++)this.handlers[l].constraints[e]!==void 0&&(n|=1<<l);return~n}_compileGetHandlerMatchingConstraints(e){this.constrainedHandlerStores={};for(let l of this.constraints){let r=e.newStoreForConstraint(l);this.constrainedHandlerStores[l]=r,this._buildConstraintStore(r,l)}let n=[];n.push(`
`)}for(let l in e.strategies)e.strategies[l].mustMatchWhenDerived&&!this.constraints.includes(l)&&n.push(`if(derivedConstraints.${l}!==undefined)returnnull`);n.push("return this.handlers[Math.floor(Math.log2(candidates))]"),this._getHandlerMatchingConstraints=new Function("derivedConstraints",n.join(`
`))}};BU.exports=m_});var qU=k((rDe,VU)=>{"use strict";var Zde=HU(),d7={STATIC:0,PARAMETRIC:1,WILDCARD:2},u7=class{constructor(){this.isLeafNode=!1,this.routes=null,this.handlerStorage=null}addRoute(e,n){this.routes===null&&(this.routes=[]),this.handlerStorage===null&&(this.handlerStorage=new Zde),this.isLeafNode=!0,this.routes.push(e),this.handlerStorage.addHandler(n,e)}},o7=class extends u7{constructor(){super(),this.staticChildren={}}findStaticMatchingChild(e,n){let l=this.staticChildren[e.charAt(n)];return l===void 0||!l.matchPrefix(e,n)?null:l}getStaticChild(e,n=0){if(e.length===n)return this;let l=this.findStaticMatchingChild(e,n);return l?l.getStaticChild(e,n+l.prefix.length):null}createStaticChild(e){if(e.length===0)return this;let n=this.staticChildren[e.charAt(0)];if(n){let r=1;for(;r<n.prefix.length;r++)if(e.charCodeAt(r)!==n.prefix.charCodeAt(r)){n=n.split(this,r);break}return n.createStaticChild(e.slice(r))}let l=e.charAt(0);return this.staticChildren[l]=new c7(e),this.staticChildren[l]}},c7=class t extends o7{constructor(e){super(),this.prefix=e,this.wildcardChild=null,this.parametricChildren=[],this.kind=d7.STATIC,this._compilePrefixMatch()}getParametricChild(e){let n=e&&e.source,l=this.parametricChildren.find(r=>(r.regex&&r.regex.source)===n);return l||null}createParametricChild(e,n,l){let r=this.getParametricChild(e);return r?(r.nodePaths.add(l),r):(r=new p7(e,n,l),this.parametricChildren.push(r),this.parametricChildren.sort((i,s)=>i.isRegex?s.isRegex?i.staticSuffix===null?1:s.staticSuffix===null?-1:s.staticSuffix.endsWith(i.staticSuffix)?1:i.staticSuffix.endsWith(s.staticSuffix)?-1:0:-1:1),r)}getWildcardChild(){return this.wildcardChild?this.wildcardChild:null}createWildcardChild(){return this.wildcardChild=this.getWildcardChild()||new f7,this.wildcardChild}split(e,n){let l=this.prefix.slice(0,n),r=this.prefix.slice(n);this.prefix=r,this._compilePrefixMatch();let i=new t(l);return i.staticChildren[r.charAt(0)]=this,e.staticChildren[l.charAt(0)]=i,i}getNextNode(e,n,l,r){let i=this.findStaticMatchingChild(e,n),s=0;if(i===null){if(this.parametricChildren.length===0)return this.wildcardChild;i=this.parametricChildren[0],s=1}this.wildcardChild!==null&&l.push({paramsCount:r,brotherPathIndex:n,brotherNode:this.wildcardChild});for(let a=this.parametricChildren.length-1;a>=s;a--)l.push({paramsCount:r,brotherPathIndex:n,brotherNode:this.parametricChildren[a]});return i}_compilePrefixMatch(){if(this.prefix.length===1){this.matchPrefix=()=>!0;return}let e=[];for(let n=1;n<this.prefix.length;n++){let l=this.prefix.charCodeAt(n);e.push(`path.charCodeAt(i+${n})===${l}`)}this.matchPrefix=new Function("path","i",`return${e.join(" && ")}`)}},p7=class extends o7{constructor(e,n,l){super(),this.isRegex=!!e,this.regex=e||null,this.staticSuffix=n||null,this.kind=d7.PARAMETRIC,this.nodePaths=new Set([l])}getNextNode(e,n){return this.findStaticMatchingChild(e,n)}},f7=class extends u7{constructor(){super(),this.kind=d7.WILDCARD}getNextNode(){return null}};VU.exports={StaticNode:c7,ParametricNode:p7,WildcardNode:f7,NODE_TYPES:d7}});var GU=k((iDe,zU)=>{"use strict";var ehe=require("assert");function N5(){if(!(this instanceof N5))return new N5;this.store={},this.maxMajor=0,this.maxMinors={},this.maxPatches={}}N5.prototype.set=function(t,e){if(typeof t!="string")throw new TypeError("Version should be a string");let[n,l,r]=t.split(".");return n=Number(n)||0,l=Number(l)||0,r=Number(r)||0,n>=this.maxMajor&&(this.maxMajor=n,this.store.x=e,this.store["*"]=e,this.store["x.x"]=e,this.store["x.x.x"]=e),l>=(this.maxMinors[n]||0)&&(this.maxMinors[n]=l,this.store[`${n}.x`]=e,this.store[`${n}.x.x`]=e),r>=(this.store[`${n}.${l}`]||0)&&(this.maxPatches[`${n}.${l}`]=r,this.store[`${n}.${l}.x`]=e),this.store[`${n}.${l}.${r}`]=e,this};N5.prototype.get=function(t){return this.store[t]};zU.exports={name:"version",mustMatchWhenDerived:!0,storage:N5,validate(t){ehe(typeof t=="string","Version should be a string")}}});var KU=k((sDe,JU)=>{"use strict";var the=require("assert");function nhe(){let t={},e=[];return{get:n=>{let l=t[n];if(l)return l;for(let r of e)if(r.host.test(n))return r.value},set:(n,l)=>{n instanceof RegExp?e.push({host:n,value:l}):t[n]=l}}}JU.exports={name:"host",mustMatchWhenDerived:!1,storage:nhe,validate(t){the(typeof t=="string"||Object.prototype.toString.call(t)==="[object RegExp]","Host should be a string or a RegExp")}}});var WU=k((aDe,XU)=>{"use strict";var lhe=GU(),rhe=KU(),y_=require("assert"),g_=class{constructor(e){if(this.strategies={version:lhe,host:rhe},this.strategiesInUse=new Set,this.asyncStrategiesInUse=new Set,e)for(let n of Object.values(e))this.addConstraintStrategy(n)}isStrategyUsed(e){return this.strategiesInUse.has(e)||this.asyncStrategiesInUse.has(e)}hasConstraintStrategy(e){let n=this.strategies[e];return n!==void 0?n.isCustom||this.isStrategyUsed(e):!1}addConstraintStrategy(e){if(y_(typeof e.name=="string"&&e.name!=="","strategy.name is required."),y_(e.storage&&typeof e.storage=="function
Line truncated
`)).bind(this)}};XU.exports=g_});var QU=k((uDe,YU)=>{"use strict";var ihe=["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"];YU.exports=ihe});var tM=k((oDe,eM)=>{"use strict";function ZU(t,e){return t===50?e===53?"%":e===51?"#":e===52?"$":e===54?"&":e===66||e===98?"+":e===67||e===99?",":e===70||e===102?"/":null:t===51?e===65||e===97?":":e===66||e===98?";":e===68||e===100?"=":e===70||e===102?"?":null:t===52&&e===48?"@":null}function she(t,e){let n=!1,l=!1,r="";for(let s=1;s<t.length;s++){let a=t.charCodeAt(s);if(a===37){let u=t.charCodeAt(s+1),o=t.charCodeAt(s+2);ZU(u,o)===null?n=!0:(l=!0,u===50&&o===53&&(n=!0,t=t.slice(0,s+1)+"25"+t.slice(s+1),s+=2),s+=2)}else if(a===63||a===35||a===59&&e){r=t.slice(s+1),t=t.slice(0,s);break}}return{path:n?decodeURI(t):t,querystring:r,shouldDecodeParam:l}}function ahe(t){let e=t.indexOf("%");if(e===-1)return t;let n="",l=e;for(let r=e;r<t.length;r++)if(t.charCodeAt(r)===37){let i=t.charCodeAt(r+1),s=t.charCodeAt(r+2),a=ZU(i,s);n+=t.slice(l,r)+a,l=r+3}return t.slice(0,e)+n+t.slice(l)}eM.exports={safeDecodeURI:she,safeDecodeURIComponent:ahe}});var S_=k((cDe,uM)=>{"use strict";var $l=require("assert"),uhe=wU(),h7=kU(),E_=c0(),{prettyPrintTree:ohe}=$U(),{StaticNode:nM,NODE_TYPES:v_}=qU(),che=WU(),H0=QU(),__=s7(),{safeDecodeURI:phe,safeDecodeURIComponent:lM}=tM(),rM=/^https?:\/\/.*?\//,Ju=/(\/:[^/()]*?)\?(\/?)/;if(!h7(rM))throw new Error("the FULL_PATH_REGEXP is not safe, update this module");if(!h7(Ju))throw new Error("the OPTIONAL_PARAM_REGEXP is not safe, update this module");function bl(t){if(!(this instanceof bl))return new bl(t);t=t||{},this._opts=t,t.defaultRoute?($l(typeof t.defaultRoute=="function","The default route must be a function"),this.defaultRoute=t.defaultRoute):this.defaultRoute=null,t.onBadUrl?($l(typeof t.onBadUrl=="function","The bad url handler must be a function"),this.onBadUrl=t.onBadUrl):this.onBadUrl=null,t.buildPrettyMeta?($l(typeof t.buildPrettyMeta=="function","buildPrettyMeta must be a function"),this.buildPrettyMeta=t.buildPrettyMeta):this.buildPrettyMeta=fhe,t.querystringParser?($l(typeof t.querystringParser=="function","querystringParser must be a function"),this.querystringParser=t.querystringParser):this.querystringParser=e=>e===""?{}:uhe.parse(e),this.caseSensitive=t.caseSensitive===void 0?!0:t.caseSensitive,this.ignoreTrailingSlash=t.ignoreTrailingSlash||!1,this.ignoreDuplicateSlashes=t.ignoreDuplicateSlashes||!1,this.maxParamLength=t.maxParamLength||100,this.allowUnsafeRegex=t.allowUnsafeRegex||!1,this.constrainer=new che(t.constraints),this.useSemicolonDelimiter=t.useSemicolonDelimiter||!1,this.routes=[],this.trees={}}bl.prototype.on=function(e,n,l,r,i){typeof l=="function"&&(r!==void 0&&(i=r),r=l,l={}),$l(typeof n=="string","Path should be a string"),$l(n.length>0,"The path could not be empty"),$l(n[0]==="/"||n[0]==="*","The first character of a path should be `/` or `*`"),$l(typeof r=="function","Handler should be a function");let s=n.match(Ju);if(s){$l(n.length===s.index+s[0].length,"Optional Parameter needs to be the last parameter of the path");let o=n.replace(Ju,"$1$2"),c=n.replace(Ju,"$2");this.on(e,o,l,r,i),this.on(e,c,l,r,i);return}let a=n;this.ignoreDuplicateSlashes&&(n=b_(n)),this.ignoreTrailingSlash&&(n=w_(n));let u=Array.isArray(e)?e:[e];for(let o of u)$l(typeof o=="string","Method should be a string"),$l(H0.includes(o),`Method'${o}'isnotanhttpmethod.`),this._on(o,n,l,r,i,a)};bl.prototype._on=function(e,n,l,r,i){let s={};l.constraints!==void 0&&($l(typeof l.constraints=="object"&&l.constraints!==null,"Constraints should be an object"),Object.keys(l.constraints).length!==0&&(s=l.constraints)),this.constrainer.validateConstraints(s),this.constrainer.noteUsage(s),this.trees[e]===void 0&&(this.trees[e]=new nM("/"));let a=n;if(a==="*"&&this.trees[e].prefix.length!==0){let m=this.trees[e];this.trees[e]=new nM(""),this.trees[e].staticChildren["/"]=m}let u=this.trees[e],o=u.prefix.length,c=[];for(let m=0;m<=a.length;m++){if(a.charCodeAt(m)===58&&a.charCodeAt(m+1)===58){m++;continue}let d=a.charCodeAt(m)===58&&a.charCodeAt(m+1)!==58,y=a.charCodeAt(m)===42;if(d||y||m===a.length&&m!==o){let _=a.slice(o,m);this.caseSensitive||(_=_.toLowerCase()),_=_.split("::").join(":"),_=_.split("%").join("%25"),u=u.createStaticChild(_)}if(d){let _=!1,S=[],w=m+1;for(let E=w;;E++){let g=a.charCodeAt(E),v=g===40,x=g===45||g===46,O=g===47||E===a.length;if(v||x||O){let N=a.slice(w,E);if(c.push(N),_=_||v||x,v){let F=aM(a,E),te=a.slice(E,F+1);this.allowUnsafeRegex||$l(h7(new RegExp(te)),`Theregex'${te}'isnotsafe!`),S.push(sM(te)),E=F+1}else S.push("(.*?)");let I=E;for(;E<a.length;E++){let F=a.charCodeAt(E);if(F===47)break;if(F===58)if(a.charCodeAt(E+1)===58)E++;else break}let M=a.slice(I,E);if(M&
Line truncated
`))}};OU.exports=a_});var IU=k((yke,CU)=>{"use strict";var vde=NU(),s7={STATIC:0,PARAMETRIC:1,WILDCARD:2},t7=class{constructor(){this.isLeafNode=!1,this.routes=null,this.handlerStorage=null}addRoute(e,n){this.routes===null&&(this.routes=[]),this.handlerStorage===null&&(this.handlerStorage=new vde),this.isLeafNode=!0,this.routes.push(e),this.handlerStorage.addHandler(n,e)}},n7=class extends t7{constructor(){super(),this.staticChildren={}}findStaticMatchingChild(e,n){let l=this.staticChildren[e.charAt(n)];return l===void 0||!l.matchPrefix(e,n)?null:l}getStaticChild(e,n=0){if(e.length===n)return this;let l=this.findStaticMatchingChild(e,n);return l?l.getStaticChild(e,n+l.prefix.length):null}createStaticChild(e){if(e.length===0)return this;let n=this.staticChildren[e.charAt(0)];if(n){let r=1;for(;r<n.prefix.length;r++)if(e.charCodeAt(r)!==n.prefix.charCodeAt(r)){n=n.split(this,r);break}return n.createStaticChild(e.slice(r))}let l=e.charAt(0);return this.staticChildren[l]=new l7(e),this.staticChildren[l]}},l7=class t extends n7{constructor(e){super(),this.prefix=e,this.wildcardChild=null,this.parametricChildren=[],this.kind=s7.STATIC,this._compilePrefixMatch()}getParametricChild(e){let n=e&&e.source,l=this.parametricChildren.find(r=>(r.regex&&r.regex.source)===n);return l||null}createParametricChild(e,n,l){let r=this.getParametricChild(e);return r?(r.nodePaths.add(l),r):(r=new r7(e,n,l),this.parametricChildren.push(r),this.parametricChildren.sort((i,s)=>i.isRegex?s.isRegex?i.staticSuffix===null?1:s.staticSuffix===null?-1:s.staticSuffix.endsWith(i.staticSuffix)?1:i.staticSuffix.endsWith(s.staticSuffix)?-1:0:-1:1),r)}getWildcardChild(){return this.wildcardChild?this.wildcardChild:null}createWildcardChild(){return this.wildcardChild=this.getWildcardChild()||new i7,this.wildcardChild}split(e,n){let l=this.prefix.slice(0,n),r=this.prefix.slice(n);this.prefix=r,this._compilePrefixMatch();let i=new t(l);return i.staticChildren[r.charAt(0)]=this,e.staticChildren[l.charAt(0)]=i,i}getNextNode(e,n,l,r){let i=this.findStaticMatchingChild(e,n),s=0;if(i===null){if(this.parametricChildren.length===0)return this.wildcardChild;i=this.parametricChildren[0],s=1}this.wildcardChild!==null&&l.push({paramsCount:r,brotherPathIndex:n,brotherNode:this.wildcardChild});for(let a=this.parametricChildren.length-1;a>=s;a--)l.push({paramsCount:r,brotherPathIndex:n,brotherNode:this.parametricChildren[a]});return i}_compilePrefixMatch(){if(this.prefix.length===1){this.matchPrefix=()=>!0;return}let e=[];for(let n=1;n<this.prefix.length;n++){let l=this.prefix.charCodeAt(n);e.push(`path.charCodeAt(i+${n})===${l}`)}this.matchPrefix=new Function("path","i",`return${e.join(" && ")}`)}},r7=class extends n7{constructor(e,n,l){super(),this.isRegex=!!e,this.regex=e||null,this.staticSuffix=n||null,this.kind=s7.PARAMETRIC,this.nodePaths=new Set([l])}getNextNode(e,n){return this.findStaticMatchingChild(e,n)}},i7=class extends t7{constructor(){super(),this.kind=s7.WILDCARD}getNextNode(){return null}};CU.exports={StaticNode:l7,ParametricNode:r7,WildcardNode:i7,NODE_TYPES:s7}});var kU=k((gke,RU)=>{"use strict";var _de=require("assert");function b5(){if(!(this instanceof b5))return new b5;this.store={},this.maxMajor=0,this.maxMinors={},this.maxPatches={}}b5.prototype.set=function(t,e){if(typeof t!="string")throw new TypeError("Version should be a string");let[n,l,r]=t.split(".");return n=Number(n)||0,l=Number(l)||0,r=Number(r)||0,n>=this.maxMajor&&(this.maxMajor=n,this.store.x=e,this.store["*"]=e,this.store["x.x"]=e,this.store["x.x.x"]=e),l>=(this.maxMinors[n]||0)&&(this.maxMinors[n]=l,this.store[`${n}.x`]=e,this.store[`${n}.x.x`]=e),r>=(this.store[`${n}.${l}`]||0)&&(this.maxPatches[`${n}.${l}`]=r,this.store[`${n}.${l}.x`]=e),this.store[`${n}.${l}.${r}`]=e,this};b5.prototype.get=function(t){return this.store[t]};RU.exports={name:"version",mustMatchWhenDerived:!0,storage:b5,validate(t){_de(typeof t=="string","Version should be a string")}}});var PU=k((vke,DU)=>{"use strict";var Ede=require("assert");function bde(){let t={},e=[];return{get:n=>{let l=t[n];if(l)return l;for(let r of e)if(r.host.test(n))return r.value},set:(n,l)=>{n instanceof RegExp?e.push({host:n,value:l}):t[n]=l}}}DU.exports={name:"host",mustMatchWhenDerived:!1,storage:bde,validate(t){Ede(typeof t=="string"||Object.prototype.toString.call(t)==="[object RegExp]","Host should be a string or a RegExp")}}});var FU=k((_ke,LU)=>{"use strict";var wde=kU(),Sde=PU(),u_=require("assert"),o_=class{constructor(e){if(this.strategies={version:wde,host:Sde},this.strategiesInUse=new Set,this.asyncStrategiesInUse=new Set,e)for(let n of Object.values(e))this.addConstraintStrategy(n)}isStrategyUsed(e){return this.strategiesInUse.has(e)||this.asyncStrategiesInUse.has(e)}hasConstraintStrategy(e){let n=this.strategies[e];return n!==void 0?n.isCustom||this.isStrategyUsed(e):!1}addConstraintStrategy(e){if(u_(typeof e.name=="string"&&e.name!=="","strategy.name is required."),u_(e.storage&&typeof e.storage=="function
Line truncated
`)).bind(this)}};LU.exports=o_});var UU=k((Eke,jU)=>{"use strict";var Tde=["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"];jU.exports=Tde});var BU=k((bke,$U)=>{"use strict";function MU(t,e){return t===50?e===53?"%":e===51?"#":e===52?"$":e===54?"&":e===66||e===98?"+":e===67||e===99?",":e===70||e===102?"/":null:t===51?e===65||e===97?":":e===66||e===98?";":e===68||e===100?"=":e===70||e===102?"?":null:t===52&&e===48?"@":null}function xde(t,e){let n=!1,l=!1,r="";for(let s=1;s<t.length;s++){let a=t.charCodeAt(s);if(a===37){let u=t.charCodeAt(s+1),o=t.charCodeAt(s+2);MU(u,o)===null?n=!0:(l=!0,u===50&&o===53&&(n=!0,t=t.slice(0,s+1)+"25"+t.slice(s+1),s+=2),s+=2)}else if(a===63||a===35||a===59&&e){r=t.slice(s+1),t=t.slice(0,s);break}}return{path:n?decodeURI(t):t,querystring:r,shouldDecodeParam:l}}function Ade(t){let e=t.indexOf("%");if(e===-1)return t;let n="",l=e;for(let r=e;r<t.length;r++)if(t.charCodeAt(r)===37){let i=t.charCodeAt(r+1),s=t.charCodeAt(r+2),a=MU(i,s);n+=t.slice(l,r)+a,l=r+3}return t.slice(0,e)+n+t.slice(l)}$U.exports={safeDecodeURI:xde,safeDecodeURIComponent:Ade}});var m_=k((wke,KU)=>{"use strict";var jl=require("assert"),Ode=uU(),a7=vU(),f_=l0(),{prettyPrintTree:Nde}=AU(),{StaticNode:HU,NODE_TYPES:c_}=IU(),Cde=FU(),L0=UU(),p_=Zc(),{safeDecodeURI:Ide,safeDecodeURIComponent:qU}=BU(),VU=/^https?:\/\/.*?\//,$u=/(\/:[^/()]*?)\?(\/?)/;if(!a7(VU))throw new Error("the FULL_PATH_REGEXP is not safe, update this module");if(!a7($u))throw new Error("the OPTIONAL_PARAM_REGEXP is not safe, update this module");function vl(t){if(!(this instanceof vl))return new vl(t);t=t||{},this._opts=t,t.defaultRoute?(jl(typeof t.defaultRoute=="function","The default route must be a function"),this.defaultRoute=t.defaultRoute):this.defaultRoute=null,t.onBadUrl?(jl(typeof t.onBadUrl=="function","The bad url handler must be a function"),this.onBadUrl=t.onBadUrl):this.onBadUrl=null,t.buildPrettyMeta?(jl(typeof t.buildPrettyMeta=="function","buildPrettyMeta must be a function"),this.buildPrettyMeta=t.buildPrettyMeta):this.buildPrettyMeta=Rde,t.querystringParser?(jl(typeof t.querystringParser=="function","querystringParser must be a function"),this.querystringParser=t.querystringParser):this.querystringParser=e=>e===""?{}:Ode.parse(e),this.caseSensitive=t.caseSensitive===void 0?!0:t.caseSensitive,this.ignoreTrailingSlash=t.ignoreTrailingSlash||!1,this.ignoreDuplicateSlashes=t.ignoreDuplicateSlashes||!1,this.maxParamLength=t.maxParamLength||100,this.allowUnsafeRegex=t.allowUnsafeRegex||!1,this.constrainer=new Cde(t.constraints),this.useSemicolonDelimiter=t.useSemicolonDelimiter||!1,this.routes=[],this.trees={}}vl.prototype.on=function(e,n,l,r,i){typeof l=="function"&&(r!==void 0&&(i=r),r=l,l={}),jl(typeof n=="string","Path should be a string"),jl(n.length>0,"The path could not be empty"),jl(n[0]==="/"||n[0]==="*","The first character of a path should be `/` or `*`"),jl(typeof r=="function","Handler should be a function");let s=n.match($u);if(s){jl(n.length===s.index+s[0].length,"Optional Parameter needs to be the last parameter of the path");let o=n.replace($u,"$1$2"),c=n.replace($u,"$2");this.on(e,o,l,r,i),this.on(e,c,l,r,i);return}let a=n;this.ignoreDuplicateSlashes&&(n=d_(n)),this.ignoreTrailingSlash&&(n=h_(n));let u=Array.isArray(e)?e:[e];for(let o of u)jl(typeof o=="string","Method should be a string"),jl(L0.includes(o),`Method'${o}'isnotanhttpmethod.`),this._on(o,n,l,r,i,a)};vl.prototype._on=function(e,n,l,r,i){let s={};l.constraints!==void 0&&(jl(typeof l.constraints=="object"&&l.constraints!==null,"Constraints should be an object"),Object.keys(l.constraints).length!==0&&(s=l.constraints)),this.constrainer.validateConstraints(s),this.constrainer.noteUsage(s),this.trees[e]===void 0&&(this.trees[e]=new HU("/"));let a=n;if(a==="*"&&this.trees[e].prefix.length!==0){let m=this.trees[e];this.trees[e]=new HU(""),this.trees[e].staticChildren["/"]=m}let u=this.trees[e],o=u.prefix.length,c=[];for(let m=0;m<=a.length;m++){if(a.charCodeAt(m)===58&&a.charCodeAt(m+1)===58){m++;continue}let d=a.charCodeAt(m)===58&&a.charCodeAt(m+1)!==58,y=a.charCodeAt(m)===42;if(d||y||m===a.length&&m!==o){let _=a.slice(o,m);this.caseSensitive||(_=_.toLowerCase()),_=_.split("::").join(":"),_=_.split("%").join("%25"),u=u.createStaticChild(_)}if(d){let _=!1,S=[],w=m+1;for(let E=w;;E++){let g=a.charCodeAt(E),v=g===40,x=g===45||g===46,O=g===47||E===a.length;if(v||x||O){let N=a.slice(w,E);if(c.push(N),_=_||v||x,v){let F=JU(a,E),te=a.slice(E,F+1);this.allowUnsafeRegex||jl(a7(new RegExp(te)),`Theregex'${te}'isnotsafe!`),S.push(GU(te)),E=F+1}else S.push("(.*?)");let I=E;for(;E<a.length;E++){let F=a.charCodeAt(E);if(F===47)break;if(F===58)if(a.charCodeAt(E+1)===58)E++;else break}let U=a.slice(I,E);if(U&
Line truncated
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"},aH={};function uH(t,e){var n=e.getSiblings(t);return n.length<=1||(t=n.indexOf(t))<0||t===n.length-1?[]:n.slice(t+1).filter(e.isTag)}function OE(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var rE=(t,e,n,l,r)=>{let i=r(e,OE(n),l);return i===Pt.trueFunc?t:i===Pt.falseFunc?Pt.falseFunc:s=>i(s)&&t(s)},iE={is:rE,matches:rE,where:rE,not(t,e,n,l,r){let i=r(e,OE(n),l);return i===Pt.falseFunc?t:i===Pt.trueFunc?Pt.falseFunc:s=>!i(s)&&t(s)},has(t,e,n,l,r){let i=n.adapter,s=OE(n),a=(s.relativeSelector=!0,e.some(c=>c.some(xE))?[aH]:void 0),u=r(e,s,a);if(u===Pt.falseFunc)return Pt.falseFunc;let o=function(c,f){return c===Pt.falseFunc?Pt.falseFunc:m=>f.isTag(m)&&c(m)}(u,i);if(a&&u!==Pt.trueFunc){let{shouldTestNextSiblings:c=!1}=u;return d=>{if(!t(d))return!1;a[0]=d;var m=i.getChildren(d),d=c?[...m,...uH(d,i)]:m;return i.existsOne(o,d)}}return c=>t(c)&&i.existsOne(o,i.getChildren(c))}};function sE(t,e){return(t=e.getParent(t))&&e.isTag(t)?t:null}function Sge(t,e,n,l,r){let{adapter:i,equals:s}=n;switch(e.type){case at.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case at.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case at.Attribute:if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return n.xmlMode&&!n.lowerCaseAttributeNames||(e.name=e.name.toLowerCase()),_ge[e.action](t,e,n);case at.Pseudo:return function(a,u,o,c,f){let{name:m,data:d}=u;if(Array.isArray(d)){if(m in iE)return iE[m](a,d,o,c,f);throw new Error(`Unknownpseudo-class:${m}(${d})`)}let y=(u=o.pseudos)==null?void 0:u[m],_=typeof y=="string"?y:wge[m];if(typeof _=="string"){if(d!=null)throw new Error(`Pseudo${m}doesn'thaveanyarguments`);let S=up(_);return iE.is(a,S,o,c,f)}if(typeof y=="function")return J$(y,m,d,1),S=>y(S,d)&&a(S);if(m in AE)return AE[m](a,d,o,c);if(m in G$){let S=G$[m];return J$(S,m,d,2),w=>S(w,o,d)&&a(w)}throw new Error("Unknown pseudo-class :"+m)}(t,e,n,l,r);case at.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let a=e.name;return n.xmlMode&&!n.lowerCaseTags||(a=a.toLowerCase()),function(u){return i.getName(u)===a&&t(u)}}case at.Descendant:{if(n.cacheResults===!1||typeof WeakSet>"u")return function(u){let o=u;for(;o=sE(o,i);)if(t(o))return!0;return!1};let a=new WeakSet;return function(u){let o=u;for(;o=sE(o,i);)if(!a.has(o)){if(i.isTag(o)&&t(o))return!0;a.add(o)}return!1}}case"_flexibleDescendant":return function(a){let u=a;do if(t(u))return!0;while(u=sE(u,i));return!1};case at.Parent:return function(a){return i.getChildren(a).some(u=>i.isTag(u)&&t(u))};case at.Child:return function(a){return(a=i.getParent(a))!=null&&i.isTag(a)&&t(a)};case at.Sibling:return function(a){var u=i.getSiblings(a);for(let c=0;c<u.length;c++){var o=u[c];if(s(a,o))break;if(i.isTag(o)&&t(o))return!0}return!1};case at.Adjacent:return i.prevElementSibling?function(a){return(a=i.prevElementSibling(a))!=null&&t(a)}:function(a){var u=i.getSiblings(a);let o;for(let f=0;f<u.length;f++){var c=u[f];if(s(a,c))break;i.isTag(c)&&(o=c)}return!!o&&t(o)};case at.Universal:if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}function oH(t){return t.type===at.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(oH)))}var Tge={type:at.Descendant},xge={type:"_flexibleDescendant"},Age={type:at.Pseudo,name:"scope",data:null};function cH(t,e,n){t.forEach(yge),n=(s=e.context)!=null?s:n;let l=Array.isArray(n),r=n&&(Array.isArray(n)?n:[n]);if(e.relativeSelector!==!1)(function(a,{adapter:u},o){var c=!(o==null||!o.every(f=>{var m=u.isTag(f)&&u.getParent(f);return f===aH||m&&u.isTag(m)}));for(let f of a){if(!(0<f.length&&xE(f[0])&&f[0].type!==at.Descendant)){if(!c||f.some(oH))continue;f.unshift(Tge)}f.unshift(Age)}})(t,e,r);else if(t.some(a=>0<a.length&&xE(a[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let i=!1;var s=t.map(a=>{if(2<=a.length){let[u,o]=a;u.type===at.Pseudo&&u.name==="scope"&&(l&&o.type===at.D
Line truncated
`)}}):{name:l,value:r.replace(X$,`\r
`)}}).toArray()}}),W5=function(t,e,n){if(this.length=0,this.options=n,this._root=e,t){for(var l=0;l<t.length;l++)this[l]=t[l];this.length=t.length}},ib=(W5.prototype.cheerio="[cheerio object]",W5.prototype.splice=Array.prototype.splice,W5.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],Object.assign(W5.prototype,oge,qge,Wge,Yge,Zge),function(t,e){return(ib=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,l){n.__proto__=l}:function(n,l){for(var r in l)Object.prototype.hasOwnProperty.call(l,r)&&(n[r]=l[r])}))(t,e)}),eve=function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}ib(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)},Y5=function(){return(Y5=Object.assign||function(t){for(var e,n=1,l=arguments.length;n<l;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},tve=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),yl="\uFFFD",W$=(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.NUMBER_SIGN=35]="NUMBER_SIGN",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_F=70]="LATIN_CAPITAL_F",t[t.LATIN_CAPITAL_X=88]="LATIN_CAPITAL_X",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_F=102]="LATIN_SMALL_F",t[t.LATIN_SMALL_X=120]="LATIN_SMALL_X",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z",t[t.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"}(D=D||{}),"--"),Y$="[CDATA[",Q$="doctype",G0="script",nve="public",lve="system";function SH(t){return 55296<=t&&t<=57343}function TH(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&1<=t&&t<=31||127<=t&&t<=159}function xH(t){return 64976<=t&&t<=65007||tve.has(t)}(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",t.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",t.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",t.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",t.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",t.missingDoctypePublicIdentifier="missing-doctype-public-identifier",t.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",t.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",t.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",t.cdataInHtmlContent="cdata-in-html-content",t.incorrectlyOpenedComment="incorrectly-opened-comm
Line truncated
`,this.firstUpdate&&(M+=" "),this.message=M+(this.message||""),this.firstUpdate=!1,this},v}function o(w){return n.toString.call(w)==="[object Function]"}function c(w){return n.toString.call(w)==="[object Array]"}function f(w){return n.toString.call(w)==="[object String]"}function m(w){return n.toString.call(w)==="[object Object]"}function d(w){var E=function(g){return g?typeof g=="string"?g.split("."):[g]:[]}(w);return function(g){for(var v=g,x=0;x<E.length;x++){var O=E[x];if(!s(v,O))return;v=v[O]}return v}}function y(w){return Array.prototype.slice.call(w)}function _(w,E,g){return Array.prototype.indexOf.call(w||[],E,g)}function S(w){var E,g=[];for(E in w)s(w,E)&&g.push(E);return g}i.hasOwnProp=s,i._prettifyError=function(w,E,g){return(g=g.Update?g:new i.TemplateError(g)).Update(w),E||(w=g,(g=new Error(w.message)).name=w.name),g},Object.setPrototypeOf?Object.setPrototypeOf(u.prototype,Error.prototype):u.prototype=Object.create(Error.prototype,{constructor:{value:u}}),i.TemplateError=u,i.escape=function(w){return w.replace(r,a)},i.isFunction=o,i.isArray=c,i.isString=f,i.isObject=m,i.getAttrGetter=d,i.groupBy=function(w,E,g){for(var v={},x=o(E)?E:d(E),O=0;O<w.length;O++){var N=w[O],I=x(N,O);if(I===void 0&&g===!0)throw new TypeError('groupby: attribute "'+E+'" resolved to undefined');(v[I]||(v[I]=[])).push(N)}return v},i.toArray=y,i.without=function(w){var E=[];if(w)for(var g=w.length,v=y(arguments).slice(1),x=-1;++x<g;)_(v,w[x])===-1&&E.push(w[x]);return E},i.repeat=function(w,E){for(var g="",v=0;v<E;v++)g+=w;return g},i.each=function(w,E,g){if(w!=null){if(e.forEach&&w.forEach===e.forEach)w.forEach(E,g);else if(w.length===+w.length)for(var v=0,x=w.length;v<x;v++)E.call(g,w[v],v,w)}},i.map=function(w,E){var g=[];if(w!=null){if(e.map&&w.map===e.map)return w.map(E);for(var v=0;v<w.length;v++)g[g.length]=E(w[v],v);w.length===+w.length&&(g.length=w.length)}return g},i.asyncIter=function(w,E,g){var v=-1;(function x(){++v<w.length?E(w[v],v,x,g):g()})()},i.asyncFor=function(w,E,g){var v=S(w||{}),x=v.length,O=-1;(function N(){var I=v[++O];O<x?E(I,w[I],O,x,N):g()})()},i.indexOf=_,i.keys=S,i._entries=function(w){return S(w).map(function(E){return[E,w[E]]})},i._values=function(w){return S(w).map(function(E){return w[E]})},i._assign=i.extend=function(w,E){return w=w||{},S(E).forEach(function(g){w[g]=E[g]}),w},i.inOperator=function(w,E){if(c(E)||f(E))return E.indexOf(w)!==-1;if(m(E))return w in E;throw new Error('Cannot use "in" operator to search for "'+w+'" in unexpected types.')}});function WH(){throw new Error("setTimeout has not been defined")}function YH(){throw new Error("clearTimeout has not been defined")}var Js=WH,Ks=YH;function QH(t){if(Js===setTimeout)return setTimeout(t,0);if((Js===WH||!Js)&&setTimeout)return(Js=setTimeout)(t,0);try{return Js(t,0)}catch{try{return Js.call(null,t,0)}catch{return Js.call(this,t,0)}}}typeof rs.setTimeout=="function"&&(Js=setTimeout),typeof rs.clearTimeout=="function"&&(Ks=clearTimeout);var no,ss=[],u4=!1,H7=-1;function e_e(){u4&&no&&(u4=!1,no.length?ss=no.concat(ss):H7=-1,ss.length)&&ZH()}function ZH(){if(!u4){var t=QH(e_e);u4=!0;for(var e=ss.length;e;){for(no=ss,ss=[];++H7<e;)no&&no[H7].run();H7=-1,e=ss.length}no=null,u4=!1,function(n){if(Ks===clearTimeout)return clearTimeout(n);if((Ks===YH||!Ks)&&clearTimeout)return(Ks=clearTimeout)(n);try{Ks(n)}catch{try{return Ks.call(null,n)}catch{return Ks.call(this,n)}}}(t)}}function eV(t,e){this.fun=t,this.array=e}function uo(){}eV.prototype.run=function(){this.fun.apply(null,this.array)};var t_e=uo,n_e=uo,l_e=uo,r_e=uo,i_e=uo,s_e=uo,a_e=uo,Q0=rs.performance||{},u_e=Q0.now||Q0.mozNow||Q0.msNow||Q0.oNow||Q0.webkitNow||function(){return new Date().getTime()},o_e=new Date,ea={nextTick:function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];ss.push(new eV(t,e)),ss.length!==1||u4||QH(ZH)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:t_e,addListener:n_e,once:l_e,off:r_e,removeListener:i_e,removeAllListeners:s_e,emit:a_e,binding:function(t){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(t){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(t){var n=.001*u_e.call(Q0),e=Math.floor(n),n=Math.floor(n%1*1e9);return t&&(e-=t[0],(n-=t[1])<0)&&(e--,n+=1e9),[e,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-o_e)/1e3}};function Xs(){}function Zn(){Zn.init.call(this)}function tV(t){return t._maxListeners===void 0?Zn.defaultMaxListeners:t._maxListeners}function NB(t,e,n,l){var r,i;if(typeof n!="function")throw new TypeError('"listener" argument must be a function');return(r=t._events)?(r.newListener&&(t.emit("newListener",e,n.listener||n),r=t._events),i=r[e]):(r=t._events=new Xs,t._eventsCount=0),i?(typeof i=="function"?i=r[e]=l?[n,i]:[i,n]:l?i.unshift(n):i.push(n),!i.warned&&(l=tV(t))&&0<l&&i.length>l&&(i.warned=!0,(l=new Error("Possible EventEm
Line truncated
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"},JB={};function KB(t,e){var n=e.getSiblings(t);return n.length<=1||(t=n.indexOf(t))<0||t===n.length-1?[]:n.slice(t+1).filter(e.isTag)}function _E(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var W_=(t,e,n,l,r)=>{let i=r(e,_E(n),l);return i===Pt.trueFunc?t:i===Pt.falseFunc?Pt.falseFunc:s=>i(s)&&t(s)},Y_={is:W_,matches:W_,where:W_,not(t,e,n,l,r){let i=r(e,_E(n),l);return i===Pt.falseFunc?t:i===Pt.trueFunc?Pt.falseFunc:s=>!i(s)&&t(s)},has(t,e,n,l,r){let i=n.adapter,s=_E(n),a=(s.relativeSelector=!0,e.some(c=>c.some(gE))?[JB]:void 0),u=r(e,s,a);if(u===Pt.falseFunc)return Pt.falseFunc;let o=function(c,f){return c===Pt.falseFunc?Pt.falseFunc:m=>f.isTag(m)&&c(m)}(u,i);if(a&&u!==Pt.trueFunc){let{shouldTestNextSiblings:c=!1}=u;return d=>{if(!t(d))return!1;a[0]=d;var m=i.getChildren(d),d=c?[...m,...KB(d,i)]:m;return i.existsOne(o,d)}}return c=>t(c)&&i.existsOne(o,i.getChildren(c))}};function Q_(t,e){return(t=e.getParent(t))&&e.isTag(t)?t:null}function Hye(t,e,n,l,r){let{adapter:i,equals:s}=n;switch(e.type){case at.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case at.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case at.Attribute:if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return n.xmlMode&&!n.lowerCaseAttributeNames||(e.name=e.name.toLowerCase()),Uye[e.action](t,e,n);case at.Pseudo:return function(a,u,o,c,f){let{name:m,data:d}=u;if(Array.isArray(d)){if(m in Y_)return Y_[m](a,d,o,c,f);throw new Error(`Unknownpseudo-class:${m}(${d})`)}let y=(u=o.pseudos)==null?void 0:u[m],_=typeof y=="string"?y:Bye[m];if(typeof _=="string"){if(d!=null)throw new Error(`Pseudo${m}doesn'thaveanyarguments`);let S=tp(_);return Y_.is(a,S,o,c,f)}if(typeof y=="function")return D$(y,m,d,1),S=>y(S,d)&&a(S);if(m in vE)return vE[m](a,d,o,c);if(m in k$){let S=k$[m];return D$(S,m,d,2),w=>S(w,o,d)&&a(w)}throw new Error("Unknown pseudo-class :"+m)}(t,e,n,l,r);case at.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let a=e.name;return n.xmlMode&&!n.lowerCaseTags||(a=a.toLowerCase()),function(u){return i.getName(u)===a&&t(u)}}case at.Descendant:{if(n.cacheResults===!1||typeof WeakSet>"u")return function(u){let o=u;for(;o=Q_(o,i);)if(t(o))return!0;return!1};let a=new WeakSet;return function(u){let o=u;for(;o=Q_(o,i);)if(!a.has(o)){if(i.isTag(o)&&t(o))return!0;a.add(o)}return!1}}case"_flexibleDescendant":return function(a){let u=a;do if(t(u))return!0;while(u=Q_(u,i));return!1};case at.Parent:return function(a){return i.getChildren(a).some(u=>i.isTag(u)&&t(u))};case at.Child:return function(a){return(a=i.getParent(a))!=null&&i.isTag(a)&&t(a)};case at.Sibling:return function(a){var u=i.getSiblings(a);for(let c=0;c<u.length;c++){var o=u[c];if(s(a,o))break;if(i.isTag(o)&&t(o))return!0}return!1};case at.Adjacent:return i.prevElementSibling?function(a){return(a=i.prevElementSibling(a))!=null&&t(a)}:function(a){var u=i.getSiblings(a);let o;for(let f=0;f<u.length;f++){var c=u[f];if(s(a,c))break;i.isTag(c)&&(o=c)}return!!o&&t(o)};case at.Universal:if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}function XB(t){return t.type===at.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(XB)))}var qye={type:at.Descendant},Vye={type:"_flexibleDescendant"},zye={type:at.Pseudo,name:"scope",data:null};function WB(t,e,n){t.forEach(Lye),n=(s=e.context)!=null?s:n;let l=Array.isArray(n),r=n&&(Array.isArray(n)?n:[n]);if(e.relativeSelector!==!1)(function(a,{adapter:u},o){var c=!(o==null||!o.every(f=>{var m=u.isTag(f)&&u.getParent(f);return f===JB||m&&u.isTag(m)}));for(let f of a){if(!(0<f.length&&gE(f[0])&&f[0].type!==at.Descendant)){if(!c||f.some(XB))continue;f.unshift(qye)}f.unshift(zye)}})(t,e,r);else if(t.some(a=>0<a.length&&gE(a[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let i=!1;var s=t.map(a=>{if(2<=a.length){let[u,o]=a;u.type===at.Pseudo&&u.name==="scope"&&(l&&o.type===at.D
Line truncated
`)}}):{name:l,value:r.replace(L$,`\r
`)}}).toArray()}}),q5=function(t,e,n){if(this.length=0,this.options=n,this._root=e,t){for(var l=0;l<t.length;l++)this[l]=t[l];this.length=t.length}},YE=(q5.prototype.cheerio="[cheerio object]",q5.prototype.splice=Array.prototype.splice,q5.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],Object.assign(q5.prototype,Nye,oge,mge,yge,vge),function(t,e){return(YE=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,l){n.__proto__=l}:function(n,l){for(var r in l)Object.prototype.hasOwnProperty.call(l,r)&&(n[r]=l[r])}))(t,e)}),_ge=function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}YE(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)},V5=function(){return(V5=Object.assign||function(t){for(var e,n=1,l=arguments.length;n<l;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},Ege=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),dl="\uFFFD",F$=(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.NUMBER_SIGN=35]="NUMBER_SIGN",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_F=70]="LATIN_CAPITAL_F",t[t.LATIN_CAPITAL_X=88]="LATIN_CAPITAL_X",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_F=102]="LATIN_SMALL_F",t[t.LATIN_SMALL_X=120]="LATIN_SMALL_X",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z",t[t.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"}(D=D||{}),"--"),j$="[CDATA[",U$="doctype",M0="script",bge="public",wge="system";function oH(t){return 55296<=t&&t<=57343}function cH(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&1<=t&&t<=31||127<=t&&t<=159}function pH(t){return 64976<=t&&t<=65007||Ege.has(t)}(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",t.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",t.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",t.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",t.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",t.missingDoctypePublicIdentifier="missing-doctype-public-identifier",t.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",t.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",t.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",t.cdataInHtmlContent="cdata-in-html-content",t.incorrectlyOpenedComment="incorrectly-opened-comm
Line truncated
`,this.firstUpdate&&(U+=" "),this.message=U+(this.message||""),this.firstUpdate=!1,this},v}function o(w){return n.toString.call(w)==="[object Function]"}function c(w){return n.toString.call(w)==="[object Array]"}function f(w){return n.toString.call(w)==="[object String]"}function m(w){return n.toString.call(w)==="[object Object]"}function d(w){var E=function(g){return g?typeof g=="string"?g.split("."):[g]:[]}(w);return function(g){for(var v=g,x=0;x<E.length;x++){var O=E[x];if(!s(v,O))return;v=v[O]}return v}}function y(w){return Array.prototype.slice.call(w)}function _(w,E,g){return Array.prototype.indexOf.call(w||[],E,g)}function S(w){var E,g=[];for(E in w)s(w,E)&&g.push(E);return g}i.hasOwnProp=s,i._prettifyError=function(w,E,g){return(g=g.Update?g:new i.TemplateError(g)).Update(w),E||(w=g,(g=new Error(w.message)).name=w.name),g},Object.setPrototypeOf?Object.setPrototypeOf(u.prototype,Error.prototype):u.prototype=Object.create(Error.prototype,{constructor:{value:u}}),i.TemplateError=u,i.escape=function(w){return w.replace(r,a)},i.isFunction=o,i.isArray=c,i.isString=f,i.isObject=m,i.getAttrGetter=d,i.groupBy=function(w,E,g){for(var v={},x=o(E)?E:d(E),O=0;O<w.length;O++){var N=w[O],I=x(N,O);if(I===void 0&&g===!0)throw new TypeError('groupby: attribute "'+E+'" resolved to undefined');(v[I]||(v[I]=[])).push(N)}return v},i.toArray=y,i.without=function(w){var E=[];if(w)for(var g=w.length,v=y(arguments).slice(1),x=-1;++x<g;)_(v,w[x])===-1&&E.push(w[x]);return E},i.repeat=function(w,E){for(var g="",v=0;v<E;v++)g+=w;return g},i.each=function(w,E,g){if(w!=null){if(e.forEach&&w.forEach===e.forEach)w.forEach(E,g);else if(w.length===+w.length)for(var v=0,x=w.length;v<x;v++)E.call(g,w[v],v,w)}},i.map=function(w,E){var g=[];if(w!=null){if(e.map&&w.map===e.map)return w.map(E);for(var v=0;v<w.length;v++)g[g.length]=E(w[v],v);w.length===+w.length&&(g.length=w.length)}return g},i.asyncIter=function(w,E,g){var v=-1;(function x(){++v<w.length?E(w[v],v,x,g):g()})()},i.asyncFor=function(w,E,g){var v=S(w||{}),x=v.length,O=-1;(function N(){var I=v[++O];O<x?E(I,w[I],O,x,N):g()})()},i.indexOf=_,i.keys=S,i._entries=function(w){return S(w).map(function(E){return[E,w[E]]})},i._values=function(w){return S(w).map(function(E){return w[E]})},i._assign=i.extend=function(w,E){return w=w||{},S(E).forEach(function(g){w[g]=E[g]}),w},i.inOperator=function(w,E){if(c(E)||f(E))return E.indexOf(w)!==-1;if(m(E))return w in E;throw new Error('Cannot use "in" operator to search for "'+w+'" in unexpected types.')}});function FH(){throw new Error("setTimeout has not been defined")}function jH(){throw new Error("clearTimeout has not been defined")}var Vs=FH,zs=jH;function UH(t){if(Vs===setTimeout)return setTimeout(t,0);if((Vs===FH||!Vs)&&setTimeout)return(Vs=setTimeout)(t,0);try{return Vs(t,0)}catch{try{return Vs.call(null,t,0)}catch{return Vs.call(this,t,0)}}}typeof ts.setTimeout=="function"&&(Vs=setTimeout),typeof ts.clearTimeout=="function"&&(zs=clearTimeout);var Xu,ls=[],t4=!1,L7=-1;function _ve(){t4&&Xu&&(t4=!1,Xu.length?ls=Xu.concat(ls):L7=-1,ls.length)&&MH()}function MH(){if(!t4){var t=UH(_ve);t4=!0;for(var e=ls.length;e;){for(Xu=ls,ls=[];++L7<e;)Xu&&Xu[L7].run();L7=-1,e=ls.length}Xu=null,t4=!1,function(n){if(zs===clearTimeout)return clearTimeout(n);if((zs===jH||!zs)&&clearTimeout)return(zs=clearTimeout)(n);try{zs(n)}catch{try{return zs.call(null,n)}catch{return zs.call(this,n)}}}(t)}}function $H(t,e){this.fun=t,this.array=e}function to(){}$H.prototype.run=function(){this.fun.apply(null,this.array)};var Eve=to,bve=to,wve=to,Sve=to,Tve=to,xve=to,Ave=to,z0=ts.performance||{},Ove=z0.now||z0.mozNow||z0.msNow||z0.oNow||z0.webkitNow||function(){return new Date().getTime()},Nve=new Date,Ys={nextTick:function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];ls.push(new $H(t,e)),ls.length!==1||t4||UH(MH)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Eve,addListener:bve,once:wve,off:Sve,removeListener:Tve,removeAllListeners:xve,emit:Ave,binding:function(t){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(t){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(t){var n=.001*Ove.call(z0),e=Math.floor(n),n=Math.floor(n%1*1e9);return t&&(e-=t[0],(n-=t[1])<0)&&(e--,n+=1e9),[e,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Nve)/1e3}};function Gs(){}function Wn(){Wn.init.call(this)}function BH(t){return t._maxListeners===void 0?Wn.defaultMaxListeners:t._maxListeners}function hB(t,e,n,l){var r,i;if(typeof n!="function")throw new TypeError('"listener" argument must be a function');return(r=t._events)?(r.newListener&&(t.emit("newListener",e,n.listener||n),r=t._events),i=r[e]):(r=t._events=new Gs,t._eventsCount=0),i?(typeof i=="function"?i=r[e]=l?[n,i]:[i,n]:l?i.unshift(n):i.push(n),!i.warned&&(l=BH(t))&&0<l&&i.length>l&&(i.warned=!0,(l=new Error("Possible EventEm
Line truncated
`?this.forward():this.back())),s3(cV,d,n,l);if(d=(d=this._extractString(this.tags.VARIABLE_END))||this._extractString("-"+this.tags.VARIABLE_END))return this.in_code=!1,s3(fV,d,n,l);if(r==="r"&&this.str.charAt(this.index+1)==="/"){this.forwardN(2);for(var i="";!this.isFinished();){if(this.current()==="/"&&this.previous()!=="\\"){this.forward();break}i+=this.current(),this.forward()}for(var s=["g","i","m","y"],a="";!this.isFinished()&&s.indexOf(this.current())!==-1;)a+=this.current(),this.forward();return s3(NV,{body:i,flags:a},n,l)}if(PB.indexOf(r)!==-1){this.forward();var u,o=["==","===","!=","!==","<=",">=","//","**"],c=r+this.current();switch(Fe.indexOf(o,c)!==-1&&(this.forward(),Fe.indexOf(o,(r=c)+this.current())!==-1)&&(r=c+this.current(),this.forward()),r){case"(":u=hV;break;case")":u=mV;break;case"[":u=yV;break;case"]":u=gV;break;case"{":u=vV;break;case"}":u=_V;break;case",":u=bV;break;case":":u=wV;break;case"~":u=SV;break;case"|":u=TV;break;default:u=EV}return s3(u,r,n,l)}if((d=this._extractUntil(DB+PB)).match(/^[-+]?[0-9]+$/))return this.current()==="."?(this.forward(),o=this._extract("0123456789"),s3(xV,d+"."+o,n,l)):s3("int",d,n,l);if(d.match(/^(true|false)$/))return s3(AV,d,n,l);if(d==="none"||d==="null")return s3(zE,d,n,l);if(d)return s3(OV,d,n,l);throw new Error("Unexpected value while parsing: "+d)}var f,m=this.tags.BLOCK_START.charAt(0)+this.tags.VARIABLE_START.charAt(0)+this.tags.COMMENT_START.charAt(0)+this.tags.COMMENT_END.charAt(0);if(this.isFinished())return null;if(d=(d=this._extractString(this.tags.BLOCK_START+"-"))||this._extractString(this.tags.BLOCK_START))return this.in_code=!0,s3(oV,d,n,l);if(d=(d=this._extractString(this.tags.VARIABLE_START+"-"))||this._extractString(this.tags.VARIABLE_START))return this.in_code=!0,s3(pV,d,n,l);var d="",y=!1;for(this._matches(this.tags.COMMENT_START)&&(y=!0,d=this._extractString(this.tags.COMMENT_START));(f=this._extractUntil(m))!==null;){if(d+=f,(this._matches(this.tags.BLOCK_START)||this._matches(this.tags.VARIABLE_START)||this._matches(this.tags.COMMENT_START))&&!y){if(this.lstripBlocks&&this._matches(this.tags.BLOCK_START)&&0<this.colno&&this.colno<=d.length){var _=d.slice(-this.colno);if(/^\s+$/.test(_)&&!(d=d.slice(0,-this.colno)).length)return this.nextToken()}break}if(this._matches(this.tags.COMMENT_END)){if(!y)throw new Error("unexpected end of comment");d+=this._extractString(this.tags.COMMENT_END);break}d+=this.current(),this.forward()}if(f===null&&y)throw new Error("expected end of comment, got end of file");return s3(y?dV:uV,d,n,l)},e._parseString=function(n){this.forward();for(var l="";!this.isFinished()&&this.current()!==n;){var r=this.current();if(r==="\\")switch(this.forward(),this.current()){case"n":l+=`
`?this.forward():this.back())),n3(WH,d,n,l);if(d=(d=this._extractString(this.tags.VARIABLE_END))||this._extractString("-"+this.tags.VARIABLE_END))return this.in_code=!1,n3(QH,d,n,l);if(r==="r"&&this.str.charAt(this.index+1)==="/"){this.forwardN(2);for(var i="";!this.isFinished();){if(this.current()==="/"&&this.previous()!=="\\"){this.forward();break}i+=this.current(),this.forward()}for(var s=["g","i","m","y"],a="";!this.isFinished()&&s.indexOf(this.current())!==-1;)a+=this.current(),this.forward();return n3(hq,{body:i,flags:a},n,l)}if(EB.indexOf(r)!==-1){this.forward();var u,o=["==","===","!=","!==","<=",">=","//","**"],c=r+this.current();switch(Le.indexOf(o,c)!==-1&&(this.forward(),Le.indexOf(o,(r=c)+this.current())!==-1)&&(r=c+this.current(),this.forward()),r){case"(":u=eq;break;case")":u=tq;break;case"[":u=nq;break;case"]":u=lq;break;case"{":u=rq;break;case"}":u=iq;break;case",":u=aq;break;case":":u=uq;break;case"~":u=oq;break;case"|":u=cq;break;default:u=sq}return n3(u,r,n,l)}if((d=this._extractUntil(_B+EB)).match(/^[-+]?[0-9]+$/))return this.current()==="."?(this.forward(),o=this._extract("0123456789"),n3(pq,d+"."+o,n,l)):n3("int",d,n,l);if(d.match(/^(true|false)$/))return n3(fq,d,n,l);if(d==="none"||d==="null")return n3(jE,d,n,l);if(d)return n3(dq,d,n,l);throw new Error("Unexpected value while parsing: "+d)}var f,m=this.tags.BLOCK_START.charAt(0)+this.tags.VARIABLE_START.charAt(0)+this.tags.COMMENT_START.charAt(0)+this.tags.COMMENT_END.charAt(0);if(this.isFinished())return null;if(d=(d=this._extractString(this.tags.BLOCK_START+"-"))||this._extractString(this.tags.BLOCK_START))return this.in_code=!0,n3(XH,d,n,l);if(d=(d=this._extractString(this.tags.VARIABLE_START+"-"))||this._extractString(this.tags.VARIABLE_START))return this.in_code=!0,n3(YH,d,n,l);var d="",y=!1;for(this._matches(this.tags.COMMENT_START)&&(y=!0,d=this._extractString(this.tags.COMMENT_START));(f=this._extractUntil(m))!==null;){if(d+=f,(this._matches(this.tags.BLOCK_START)||this._matches(this.tags.VARIABLE_START)||this._matches(this.tags.COMMENT_START))&&!y){if(this.lstripBlocks&&this._matches(this.tags.BLOCK_START)&&0<this.colno&&this.colno<=d.length){var _=d.slice(-this.colno);if(/^\s+$/.test(_)&&!(d=d.slice(0,-this.colno)).length)return this.nextToken()}break}if(this._matches(this.tags.COMMENT_END)){if(!y)throw new Error("unexpected end of comment");d+=this._extractString(this.tags.COMMENT_END);break}d+=this.current(),this.forward()}if(f===null&&y)throw new Error("expected end of comment, got end of file");return n3(y?ZH:KH,d,n,l)},e._parseString=function(n){this.forward();for(var l="";!this.isFinished()&&this.current()!==n;){var r=this.current();if(r==="\\")switch(this.forward(),this.current()){case"n":l+=`
`))})},l.compileRoot=function(r,i){var s=this,a=(i&&this.fail("compileRoot: root node can't have frame"),i=new dE,this._emitFuncBegin(r,"root"),this._emitLine("var parentTemplate = null;"),this._compileChildren(r,i),this._emitLine("if(parentTemplate) {"),this._emitLine("parentTemplate.rootRenderFunc(env, context, frame, runtime, cb);"),this._emitLine("} else {"),this._emitLine("cb(null, "+this.buffer+");"),this._emitLine("}"),this._emitFuncEnd(!0),this.inBlock=!0,[]);(i=r.findAll(X.Block)).forEach(function(u,o){var c=u.name.value;if(a.indexOf(c)!==-1)throw new Error('Block "'+c+'" defined more than once.');a.push(c),s._emitFuncBegin(u,"b_"+c),c=new dE,s._emitLine("var frame = frame.push(true);"),s.compile(u.body,c),s._emitFuncEnd()}),this._emitLine("return {"),i.forEach(function(u,o){u="b_"+u.name.value,s._emitLine(u+": "+u+",")}),this._emitLine(`root:root
};`)},l.compile=function(r,i){var s=this["compile"+r.typename];s?s.call(this,r,i):this.fail("compile: Cannot compile node: "+r.typename,r.lineno,r.colno)},l.getCode=function(){return this.codebuf.join("")},n}(h4.Obj),mEe={compile:function(s,e,n,l,r){var i=new $B(l,(r=r===void 0?{}:r).throwOnUndefined),s=(n||[]).map(function(a){return a.preprocess}).filter(function(a){return!!a}).reduce(function(a,u){return u(a)},s);return i.compile(cEe.transform(aEe.parse(s,n,r),e,l)),i.getCode()},Compiler:$B},yEe=mt(function(t){function e(d,y){return d==null||d===!1?y:d}function n(d){return d!=d}function l(d){var y=(d=e(d,"")).toLowerCase();return yt.copySafeness(d,y.charAt(0).toUpperCase()+y.slice(1))}function r(d){if(Fe.isString(d))return d.split("");if(Fe.isObject(d))return Fe._entries(d||{}).map(function(y){return{key:y[0],value:y[1]}});if(Fe.isArray(d))return d;throw new Fe.TemplateError("list filter: type not iterable")}function i(d){return function(y,_,S){var w=this,E=w.env.getTest(_=_===void 0?"truthy":_);return Fe.toArray(y).filter(function(g){return E.call(w,g,S)===d})}}function s(d){return yt.copySafeness(d,d.replace(/^\s*|\s*$/g,""))}(t=t.exports={}).abs=Math.abs,t.batch=function(d,y,_){for(var S=[],w=[],E=0;E<d.length;E++)E%y==0&&w.length&&(S.push(w),w=[]),w.push(d[E]);if(w.length){if(_)for(E=w.length;E<y;E++)w.push(_);S.push(w)}return S},t.capitalize=l,t.center=function(d,y){var _;return(d=e(d,"")).length>=(y=y||80)?d:(y-=d.length,_=Fe.repeat(" ",y/2-y%2),y=Fe.repeat(" ",y/2),yt.copySafeness(d,_+d+y))},t.default=function(d,y,_){return _?d||y:d!==void 0?d:y},t.dictsort=function(d,y,_){if(!Fe.isObject(d))throw new Fe.TemplateError("dictsort filter: val must be an object");var S,w,E=[];for(w in d)E.push([w,d[w]]);if(_===void 0||_==="key")S=0;else{if(_!=="value")throw new Fe.TemplateError("dictsort filter: You can only sort by either key or value");S=1}return E.sort(function(g,v){return g=g[S],v=v[S],y||(Fe.isString(g)&&(g=g.toUpperCase()),Fe.isString(v)&&(v=v.toUpperCase())),v<g?1:g===v?0:-1}),E},t.dump=function(d,y){return JSON.stringify(d,null,y)},t.escape=function(d){return d instanceof yt.SafeString?d:yt.markSafe(Fe.escape((d=d??"").toString()))},t.safe=function(d){return d instanceof yt.SafeString?d:yt.markSafe((d=d??"").toString())},t.first=function(d){return d[0]},t.forceescape=function(d){return yt.markSafe(Fe.escape((d=d??"").toString()))},t.groupby=function(d,y){return Fe.groupBy(d,y,this.env.opts.throwOnUndefined)},t.indent=function(d,E,_){if((d=e(d,""))==="")return"";E=E||4;var S=d.split(`
`))})},l.compileRoot=function(r,i){var s=this,a=(i&&this.fail("compileRoot: root node can't have frame"),i=new iE,this._emitFuncBegin(r,"root"),this._emitLine("var parentTemplate = null;"),this._compileChildren(r,i),this._emitLine("if(parentTemplate) {"),this._emitLine("parentTemplate.rootRenderFunc(env, context, frame, runtime, cb);"),this._emitLine("} else {"),this._emitLine("cb(null, "+this.buffer+");"),this._emitLine("}"),this._emitFuncEnd(!0),this.inBlock=!0,[]);(i=r.findAll(X.Block)).forEach(function(u,o){var c=u.name.value;if(a.indexOf(c)!==-1)throw new Error('Block "'+c+'" defined more than once.');a.push(c),s._emitFuncBegin(u,"b_"+c),c=new iE,s._emitLine("var frame = frame.push(true);"),s.compile(u.body,c),s._emitFuncEnd()}),this._emitLine("return {"),i.forEach(function(u,o){u="b_"+u.name.value,s._emitLine(u+": "+u+",")}),this._emitLine(`root:root
};`)},l.compile=function(r,i){var s=this["compile"+r.typename];s?s.call(this,r,i):this.fail("compile: Cannot compile node: "+r.typename,r.lineno,r.colno)},l.getCode=function(){return this.codebuf.join("")},n}(a4.Obj),P_e={compile:function(s,e,n,l,r){var i=new AB(l,(r=r===void 0?{}:r).throwOnUndefined),s=(n||[]).map(function(a){return a.preprocess}).filter(function(a){return!!a}).reduce(function(a,u){return u(a)},s);return i.compile(C_e.transform(A_e.parse(s,n,r),e,l)),i.getCode()},Compiler:AB},L_e=mt(function(t){function e(d,y){return d==null||d===!1?y:d}function n(d){return d!=d}function l(d){var y=(d=e(d,"")).toLowerCase();return yt.copySafeness(d,y.charAt(0).toUpperCase()+y.slice(1))}function r(d){if(Le.isString(d))return d.split("");if(Le.isObject(d))return Le._entries(d||{}).map(function(y){return{key:y[0],value:y[1]}});if(Le.isArray(d))return d;throw new Le.TemplateError("list filter: type not iterable")}function i(d){return function(y,_,S){var w=this,E=w.env.getTest(_=_===void 0?"truthy":_);return Le.toArray(y).filter(function(g){return E.call(w,g,S)===d})}}function s(d){return yt.copySafeness(d,d.replace(/^\s*|\s*$/g,""))}(t=t.exports={}).abs=Math.abs,t.batch=function(d,y,_){for(var S=[],w=[],E=0;E<d.length;E++)E%y==0&&w.length&&(S.push(w),w=[]),w.push(d[E]);if(w.length){if(_)for(E=w.length;E<y;E++)w.push(_);S.push(w)}return S},t.capitalize=l,t.center=function(d,y){var _;return(d=e(d,"")).length>=(y=y||80)?d:(y-=d.length,_=Le.repeat(" ",y/2-y%2),y=Le.repeat(" ",y/2),yt.copySafeness(d,_+d+y))},t.default=function(d,y,_){return _?d||y:d!==void 0?d:y},t.dictsort=function(d,y,_){if(!Le.isObject(d))throw new Le.TemplateError("dictsort filter: val must be an object");var S,w,E=[];for(w in d)E.push([w,d[w]]);if(_===void 0||_==="key")S=0;else{if(_!=="value")throw new Le.TemplateError("dictsort filter: You can only sort by either key or value");S=1}return E.sort(function(g,v){return g=g[S],v=v[S],y||(Le.isString(g)&&(g=g.toUpperCase()),Le.isString(v)&&(v=v.toUpperCase())),v<g?1:g===v?0:-1}),E},t.dump=function(d,y){return JSON.stringify(d,null,y)},t.escape=function(d){return d instanceof yt.SafeString?d:yt.markSafe(Le.escape((d=d??"").toString()))},t.safe=function(d){return d instanceof yt.SafeString?d:yt.markSafe((d=d??"").toString())},t.first=function(d){return d[0]},t.forceescape=function(d){return yt.markSafe(Le.escape((d=d??"").toString()))},t.groupby=function(d,y){return Le.groupBy(d,y,this.env.opts.throwOnUndefined)},t.indent=function(d,E,_){if((d=e(d,""))==="")return"";E=E||4;var S=d.split(`
`):_.replace(/\s+/gi," ");return yt.copySafeness(d,S)},t.title=function(d){var y=(d=e(d,"")).split(" ").map(l);return yt.copySafeness(d,y.join(" "))},t.trim=s,t.truncate=function(d,y,_,S){var w=d;return(d=e(d,"")).length<=(y=y||255)?d:(d=_?d.substring(0,y):((_=d.lastIndexOf(" ",y))===-1&&(_=y),d.substring(0,_)),yt.copySafeness(w,d+=S??"..."))},t.upper=function(d){return(d=e(d,"")).toUpperCase()},t.urlencode=function(d){var y=encodeURIComponent;return Fe.isString(d)?y(d):(Fe.isArray(d)?d:Fe._entries(d)).map(function(w){var S=w[0],w=w[1];return y(S)+"="+y(w)}).join("&")};var a=/^(?:\(|<|<)?(.*?)(?:\.|,|\)|\n|>)?$/,u=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,o=/^https?:\/\/.*$/,c=/^www\./,f=/\.(?:org|net|com)(?:\:|\/|$)/,m=(t.urlize=function(d,y,_){n(y)&&(y=1/0);varS=_===!0?' rel="nofollow"':"";returnd.split(/(\s+)/).filter(function(w){returnw&&w.length}).map(function(w){varE=w.match(a),g=(E=E?E[1]:w).substr(0,y);returno.test(E)?'<a href="'+E+'"'+S+">"+g+"</a>":c.test(E)?'<a href="http://'+E+'"'+S+">"+g+"</a>":u.test(E)?'<a href="mailto:'+E+'">'+E+"</a>":f.test(E)?'<a href="http://'+E+'"'+S+">"+g+"</a>":w}).join("")},t.wordcount=function(d){return(d=(d=e(d,""))?d.match(/\w+/g):null)?d.length:null},t.float=function(d,y){returnn(d=parseFloat(d))?y:d},yt.makeMacro(["value","default","base"],[],function(d,y,_){return_===void0&&(_=10),n(d=parseInt(d,_))?y:d}));t.int=m,t.d=t.default,t.e=t.escape}),rp={};functionqV(t,e){for(varn=0,l=t.length-1;0<=l;l--){varr=t[l];r==="."?t.splice(l,1):r===".."?(t.splice(l,1),n++):n&&(t.splice(l,1),n--)}if(e)for(;n--;)t.unshift("..");returnt}vargEe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,hE=function(t){returngEe.exec(t).slice(1)};functionmE(){for(vart="",e=!1,n=arguments.length-1;-1<=n&&!e;n--){varl=0<=n?arguments[n]:"/";if(typeofl!="string")thrownewTypeError("Arguments to path.resolve must be strings");l&&(t=l+"/"+t,e=l.charAt(0)==="/")}return(e?"/":"")+qV(db(t.split("/"),function(r){return!!r}),!e).join("/")||"."}functionBB(t){vare=zV(t),n=vEe(t,-1)==="/";return(t=(t=qV(db(t.split("/"),function(l){return!!l}),!e).join("/"))||e?t:".")&&n&&(t+="/"),(e?"/":"")+t}functionzV(t){returnt.charAt(0)==="/"}varo4={extname:function(t){returnhE(t)[3]},basename:function(t,e){returnt=hE(t)[2],e&&t.substr(-1*e.length)===e?t.substr(0,t.length-e.length):t},dirname:function(n){vare=(n=hE(n))[0],n=n[1];returne||n?e+(n&&n.substr(0,n.length-1)):"."},sep:"/",delimiter:":",relative:function(t,e){functionn(o){for(varc=0;c<o.length&&o[c]==="";c++);for(varf=o.length-1;0<=f&&o[f]==="";f--);returnf<c?[]:o.slice(c,f-c+1)}t=mE(t).substr(1),e=mE(e).substr(1);for(varl=n(t.split("/")),r=n(e.split("/")),i=Math.min(l.length,r.length),s=i,a=0;a<i;a++)if(l[a]!==r[a]){s=a;break}for(varu=[],a=s;a<l.length;a++)u.push("..");return(u=u.concat(r.slice(s))).join("/")},join:function(){returnBB(db(Array.prototype.slice.call(arguments,0),function(t,e){if(typeoft!="string")thrownewTypeError("Arguments to path.join must be strings");returnt}).join("/"))},isAbsolute:zV,normalize:BB,resolve:mE};functiondb(t,e){if(t.filter)returnt.filter(e);for(varn=[],l=0;l<t.length;l++)e(t[l],l,t)&&n.push(t[l]);returnn}varvEe="ab".substr(-1)==="b"?function(t,e,n){returnt.substr(e,n)}:function(t,e,n){returne<0&&(e=t.length+e),t.substr(e,n)};functionGV(t,e){return(GV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,l){returnn.__proto__=l,n})(t,e)}varhb=function(t){vare;functionn(){returnt.apply(this,arguments)||this}e=t,(l=n).prototype=Object.create(e.prototype),GV(l.prototype.constructor=l,e);varl=n.prototype;returnl.resolve=function(r,i){returno4.resolve(o4.dirname(r),i)},l.isRelative=function(r){returnr.indexOf("./")===0||r.indexOf("../")===0},n}(h4.EmitterObj);functionJV(t,e){return(JV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,l){returnn.__proto__=l,n})(t,e)}var_Ee=function(t){vare,n;functionl(r){vari;return(i=t.call(this)||this).precompiled=r||{},i}returnn=t,(e=l).prototype=Object.create(n.prototype),JV(e.prototype.constructor=e,n),l.prototype.getSource=function(r){returnthis.precompiled[r]?{src:{type:"code",obj:this.precompiled[r]},path:r}:null},l}(hb);functionKV(t,e){t.prototype=Object.create(e.prototype),XV(t.prototype.constructor=t,e)}functionXV(t,e){return(XV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,l){returnn.__proto__=l,n})(t,e)}varEEe=_Ee,bEe=function(t){functione(n,l){varr=t.call(this)||this;returntypeofl=="boolean"&&console.log("[nunjucks] Warning: you passed a boolean as the second argument to FileSystemLoader, but it now takes an options object. See http://mozilla.github.io/nunjucks/api.html#filesystemloader"),l=l||{},r.pathsToNames={},r.noCache=!!l.noCache,n?(n=Array.isArray(n)?n:[n],r.searchPaths=n.map(o4.normalize)):r.searchPaths=["."],l.watch,r}returnKV(e,t),e.prototype.getSource=function(n){for(varl=null,r=this.searchPaths,i=0;i<r.length;i++){vars=o4.resoLine truncated
`):_.replace(/\s+/gi," ");return yt.copySafeness(d,S)},t.title=function(d){var y=(d=e(d,"")).split(" ").map(l);return yt.copySafeness(d,y.join(" "))},t.trim=s,t.truncate=function(d,y,_,S){var w=d;return(d=e(d,"")).length<=(y=y||255)?d:(d=_?d.substring(0,y):((_=d.lastIndexOf(" ",y))===-1&&(_=y),d.substring(0,_)),yt.copySafeness(w,d+=S??"..."))},t.upper=function(d){return(d=e(d,"")).toUpperCase()},t.urlencode=function(d){var y=encodeURIComponent;return Le.isString(d)?y(d):(Le.isArray(d)?d:Le._entries(d)).map(function(w){var S=w[0],w=w[1];return y(S)+"="+y(w)}).join("&")};var a=/^(?:\(|<|<)?(.*?)(?:\.|,|\)|\n|>)?$/,u=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,o=/^https?:\/\/.*$/,c=/^www\./,f=/\.(?:org|net|com)(?:\:|\/|$)/,m=(t.urlize=function(d,y,_){n(y)&&(y=1/0);varS=_===!0?' rel="nofollow"':"";returnd.split(/(\s+)/).filter(function(w){returnw&&w.length}).map(function(w){varE=w.match(a),g=(E=E?E[1]:w).substr(0,y);returno.test(E)?'<a href="'+E+'"'+S+">"+g+"</a>":c.test(E)?'<a href="http://'+E+'"'+S+">"+g+"</a>":u.test(E)?'<a href="mailto:'+E+'">'+E+"</a>":f.test(E)?'<a href="http://'+E+'"'+S+">"+g+"</a>":w}).join("")},t.wordcount=function(d){return(d=(d=e(d,""))?d.match(/\w+/g):null)?d.length:null},t.float=function(d,y){returnn(d=parseFloat(d))?y:d},yt.makeMacro(["value","default","base"],[],function(d,y,_){return_===void0&&(_=10),n(d=parseInt(d,_))?y:d}));t.int=m,t.d=t.default,t.e=t.escape}),Y7={};functionIq(t,e){for(varn=0,l=t.length-1;0<=l;l--){varr=t[l];r==="."?t.splice(l,1):r===".."?(t.splice(l,1),n++):n&&(t.splice(l,1),n--)}if(e)for(;n--;)t.unshift("..");returnt}varF_e=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,sE=function(t){returnF_e.exec(t).slice(1)};functionaE(){for(vart="",e=!1,n=arguments.length-1;-1<=n&&!e;n--){varl=0<=n?arguments[n]:"/";if(typeofl!="string")thrownewTypeError("Arguments to path.resolve must be strings");l&&(t=l+"/"+t,e=l.charAt(0)==="/")}return(e?"/":"")+Iq(ib(t.split("/"),function(r){return!!r}),!e).join("/")||"."}functionOB(t){vare=Rq(t),n=j_e(t,-1)==="/";return(t=(t=Iq(ib(t.split("/"),function(l){return!!l}),!e).join("/"))||e?t:".")&&n&&(t+="/"),(e?"/":"")+t}functionRq(t){returnt.charAt(0)==="/"}varn4={extname:function(t){returnsE(t)[3]},basename:function(t,e){returnt=sE(t)[2],e&&t.substr(-1*e.length)===e?t.substr(0,t.length-e.length):t},dirname:function(n){vare=(n=sE(n))[0],n=n[1];returne||n?e+(n&&n.substr(0,n.length-1)):"."},sep:"/",delimiter:":",relative:function(t,e){functionn(o){for(varc=0;c<o.length&&o[c]==="";c++);for(varf=o.length-1;0<=f&&o[f]==="";f--);returnf<c?[]:o.slice(c,f-c+1)}t=aE(t).substr(1),e=aE(e).substr(1);for(varl=n(t.split("/")),r=n(e.split("/")),i=Math.min(l.length,r.length),s=i,a=0;a<i;a++)if(l[a]!==r[a]){s=a;break}for(varu=[],a=s;a<l.length;a++)u.push("..");return(u=u.concat(r.slice(s))).join("/")},join:function(){returnOB(ib(Array.prototype.slice.call(arguments,0),function(t,e){if(typeoft!="string")thrownewTypeError("Arguments to path.join must be strings");returnt}).join("/"))},isAbsolute:Rq,normalize:OB,resolve:aE};functionib(t,e){if(t.filter)returnt.filter(e);for(varn=[],l=0;l<t.length;l++)e(t[l],l,t)&&n.push(t[l]);returnn}varj_e="ab".substr(-1)==="b"?function(t,e,n){returnt.substr(e,n)}:function(t,e,n){returne<0&&(e=t.length+e),t.substr(e,n)};functionkq(t,e){return(kq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,l){returnn.__proto__=l,n})(t,e)}varsb=function(t){vare;functionn(){returnt.apply(this,arguments)||this}e=t,(l=n).prototype=Object.create(e.prototype),kq(l.prototype.constructor=l,e);varl=n.prototype;returnl.resolve=function(r,i){returnn4.resolve(n4.dirname(r),i)},l.isRelative=function(r){returnr.indexOf("./")===0||r.indexOf("../")===0},n}(a4.EmitterObj);functionDq(t,e){return(Dq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,l){returnn.__proto__=l,n})(t,e)}varU_e=function(t){vare,n;functionl(r){vari;return(i=t.call(this)||this).precompiled=r||{},i}returnn=t,(e=l).prototype=Object.create(n.prototype),Dq(e.prototype.constructor=e,n),l.prototype.getSource=function(r){returnthis.precompiled[r]?{src:{type:"code",obj:this.precompiled[r]},path:r}:null},l}(sb);functionPq(t,e){t.prototype=Object.create(e.prototype),Lq(t.prototype.constructor=t,e)}functionLq(t,e){return(Lq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,l){returnn.__proto__=l,n})(t,e)}varM_e=U_e,$_e=function(t){functione(n,l){varr=t.call(this)||this;returntypeofl=="boolean"&&console.log("[nunjucks] Warning: you passed a boolean as the second argument to FileSystemLoader, but it now takes an options object. See http://mozilla.github.io/nunjucks/api.html#filesystemloader"),l=l||{},r.pathsToNames={},r.noCache=!!l.noCache,n?(n=Array.isArray(n)?n:[n],r.searchPaths=n.map(n4.normalize)):r.searchPaths=["."],l.watch,r}returnPq(e,t),e.prototype.getSource=function(n){for(varl=null,r=this.searchPaths,i=0;i<r.length;i++){vars=n4.resoLine truncated
`)){let u=a.trim();if(u)if(u.startsWith("#")){if(u.startsWith("#EXT")){let o=XEe(u,i);o&&s.push(o)}}else s.push(u)}return s.length!==0&&s[0].name==="EXTM3U"||He("The EXTM3U tag MUST be the first line."),s}(t,e),l=WEe(n,e);return l.source=t,l}var YEe=["#EXTINF","#EXT-X-BYTERANGE","#EXT-X-DISCONTINUITY","#EXT-X-STREAM-INF","#EXT-X-CUE-OUT","#EXT-X-CUE-IN","#EXT-X-KEY","#EXT-X-MAP"],QEe=["#EXT-X-MEDIA"],Rb=class extends Array{constructor(e){super(),this.baseUri=e}push(...e){for(let n of e)if(n.startsWith("#"))if(YEe.some(l=>n.startsWith(l)))super.push(n);else{if(this.includes(n)){if(QEe.some(l=>n.startsWith(l)))continue;He(`Redundantitem(${n})`)}super.push(n)}else super.push(n);return this.length}};function Lb(t,e){let n=1e3;e&&(n=Math.pow(10,e));let l=Math.round(t*n)/n;return e?l.toFixed(e):l}function ZEe(t){let e=[`DATA-ID="${t.id}"`];return t.language&&e.push(`LANGUAGE="${t.language}"`),t.value?e.push(`VALUE="${t.value}"`):t.uri&&e.push(`URI="${t.uri}"`),`#EXT-X-SESSION-DATA:${e.join(",")}`}function Sq(t,e){let n=e?"#EXT-X-SESSION-KEY":"#EXT-X-KEY",l=[`METHOD=${t.method}`];return t.uri&&l.push(`URI="${t.uri}"`),t.iv&&(t.iv.length!==16&&He("IV must be a 128-bit unsigned integer"),l.push(`IV=${Eq(t.iv)}`)),t.format&&l.push(`KEYFORMAT="${t.format}"`),t.formatVersion&&l.push(`KEYFORMATVERSIONS="${t.formatVersion}"`),`${n}:${l.join(",")}`}function ebe(t,e){let n=e.isIFrameOnly?"#EXT-X-I-FRAME-STREAM-INF":"#EXT-X-STREAM-INF",l=[`BANDWIDTH=${e.bandwidth}`];if(e.averageBandwidth&&l.push(`AVERAGE-BANDWIDTH=${e.averageBandwidth}`),e.isIFrameOnly&&l.push(`URI="${e.uri}"`),e.codecs&&l.push(`CODECS="${e.codecs}"`),e.resolution&&l.push(`RESOLUTION=${e.resolution.width}x${e.resolution.height}`),e.frameRate&&l.push(`FRAME-RATE=${Lb(e.frameRate,3)}`),e.hdcpLevel&&l.push(`HDCP-LEVEL=${e.hdcpLevel}`),e.audio.length>0){l.push(`AUDIO="${e.audio[0].groupId}"`);for(let r of e.audio)t.push(Pp(r))}if(e.video.length>0){l.push(`VIDEO="${e.video[0].groupId}"`);for(let r of e.video)t.push(Pp(r))}if(e.subtitles.length>0){l.push(`SUBTITLES="${e.subtitles[0].groupId}"`);for(let r of e.subtitles)t.push(Pp(r))}if($Ee().allowClosedCaptionsNone&&e.closedCaptions.length===0)l.push("CLOSED-CAPTIONS=NONE");else if(e.closedCaptions.length>0){l.push(`CLOSED-CAPTIONS="${e.closedCaptions[0].groupId}"`);for(let r of e.closedCaptions)t.push(Pp(r))}if(e.score&&l.push(`SCORE=${e.score}`),e.allowedCpc){let r=[];for(let{format:i,cpcList:s}of e.allowedCpc)r.push(`${i}:${s.join("/")}`);l.push(`ALLOWED-CPC="${r.join(",")}"`)}e.videoRange&&l.push(`VIDEO-RANGE=${e.videoRange}`),e.stableVariantId&&l.push(`STABLE-VARIANT-ID="${e.stableVariantId}"`),e.programId&&l.push(`PROGRAM-ID=${e.programId}`),t.push(`${n}:${l.join(",")}`),e.isIFrameOnly||t.push(`${e.uri}`)}function Pp(t){let e=[`TYPE=${t.type}`,`GROUP-ID="${t.groupId}"`,`NAME="${t.name}"`];return t.isDefault!==void 0&&e.push("DEFAULT="+(t.isDefault?"YES":"NO")),t.autoselect!==void 0&&e.push("AUTOSELECT="+(t.autoselect?"YES":"NO")),t.forced!==void 0&&e.push("FORCED="+(t.forced?"YES":"NO")),t.language&&e.push(`LANGUAGE="${t.language}"`),t.assocLanguage&&e.push(`ASSOC-LANGUAGE="${t.assocLanguage}"`),t.instreamId&&e.push(`INSTREAM-ID="${t.instreamId}"`),t.characteristics&&e.push(`CHARACTERISTICS="${t.characteristics}"`),t.channels&&e.push(`CHANNELS="${t.channels}"`),t.uri&&e.push(`URI="${t.uri}"`),`#EXT-X-MEDIA:${e.join(",")}`}function tbe(t,e,n,l,r=1,i=null){let s=!1,a="";if(e.discontinuity&&t.push("#EXT-X-DISCONTINUITY"),e.key){let o=Sq(e.key);o!==n&&(t.push(o),n=o)}if(e.map){let o=function(c){let f=[`URI="${c.uri}"`];return c.byterange&&f.push(`BYTERANGE="${Ob(c.byterange)}"`),`#EXT-X-MAP:${f.join(",")}`}(e.map);o!==l&&(t.push(o),l=o)}if(e.programDateTime&&t.push(`#EXT-X-PROGRAM-DATE-TIME:${Ab(e.programDateTime)}`),e.dateRange&&t.push(function(o){let c=[`ID="${o.id}"`];o.start&&c.push(`START-DATE="${Ab(o.start)}"`),o.end&&c.push(`END-DATE="${Ab(o.end)}"`),o.duration&&c.push(`DURATION=${o.duration}`),o.plannedDuration&&c.push(`PLANNED-DURATION=${o.plannedDuration}`),o.classId&&c.push(`CLASS="${o.classId}"`),o.endOnNext&&c.push("END-ON-NEXT=YES");for(let f of Object.keys(o.attributes))f.startsWith("X-")?typeof o.attributes[f]=="number"?c.push(`${f}=${o.attributes[f]}`):c.push(`${f}="${o.attributes[f]}"`):f.startsWith("SCTE35-")&&c.push(`${f}=${Eq(o.attributes[f])}`);return`#EXT-X-DATERANGE:${c.join(",")}`}(e.dateRange)),e.markers.length>0&&(a=function(o,c){let f="";for(let m of c)if(m.type==="OUT")f="OUT",o.push(`#EXT-X-CUE-OUT:DURATION=${m.duration}`);else if(m.type==="IN")f="IN",o.push("#EXT-X-CUE-IN");else if(m.type==="RAW"){let d=m.value?`:${m.value}`:"";o.push(`#${m.tagName}${d}`)}return f}(t,e.markers)),e.parts.length>0&&(s=function(o,c){let f=!1;for(let m of c)if(m.hint){let d=[];if(d.push("TYPE=PART",`URI="${m.uri}"`),m.byterange){let{offset:y,length:_}=m.byterange;d.push(`BYTERANGE-START=${y}`),_&&d.push(`BYTERANGE-LENGTH=${_}`)}o.push(`#EXT-X-PRELOAD-HINT:${d.join(",")}`),f=!0}else{let d=[];d.push(
Line truncated
`)}var xq="hls_cache",Kp=[],fo={},O6={},po={},Jp="";function nbe(t,e){if(Kp.push(t),fo[t]=e,Kp.length>5){let n=Kp.shift();lbe(n)}}function lbe(t){delete fo[t],delete Kp[t],new JSFile(xq+"/"+t).delete()}function rbe(t,e){if(e.variants)for(let n of e.variants)n.uri.startsWith("http")||(n.uri=Fb(t,n.uri));if(e.segments)for(let n of e.segments)n.uri.startsWith("http")||(n.uri=Fb(t,n.uri)),n.key&&n.key.uri&&!n.key.uri.startsWith("http")&&(n.key.uri=Fb(t,n.key.uri));return e}async function Aq(t,e){let n=md5X(t);if(fo[n])return fo[n];let l={},r=t;for(;l=await req(r,{headers:e,redirect:0}),l.headers.location;)r=l.headers.location;if(l.code==200){var i=l.content;let s=rbe(r,wq(i));return nbe(n,{code:l.code,plist:s,key:n,headers:l.headers}),fo[n]}return{}}async function Oq(t,e,n){if(!fo[t])return{};let r=fo[t].plist.segments,i=!po[t];if(i){po[t]={};for(let c of r){let f=md5X(c.uri+c.mediaSequenceNumber.toString());po[t][f]={file:xq+"/"+t+"/"+f,uri:c.uri,key:f,index:c.mediaSequenceNumber,order:c.mediaSequenceNumber,state:-1,read:!1}}}for(let c in po[t]){let f=po[t][c];f.index>=e?f.order=f.index-e:f.order=r.length-e+f.index}i&&ibe(t,5,n);let s=r[e],a=md5X(s.uri+s.mediaSequenceNumber.toString()),u=po[t][a];if(u.state==1||u.state==-1){let c=new JSFile(u.file);if(await c.exist())return u.state=1,{buffer:3,code:200,headers:{connection:"close","content-type":"video/mp2t"},content:c};u.state=-1}if(u.state==-1&&Nq(t,u,n),u.state==0){var o=new JSProxyStream;o.head(200,{connection:"close","content-type":"video/mp2t"});let c=0;return u.read=!0,new Promise(async function(f,m){let d=new JSFile(u.file+".dl");await d.open("r"),async function y(){let _=await d.size();if(_>c){var S=await d.read(_-c,c);await o.write(S),c=_}if(u.state==1||u.state<0){o.done(),await d.close(),await d.delete(),u.read=!1,f();return}setTimeout(y,5)}()}),{buffer:3,content:o}}}async function Nq(t,e,n){if(e.state>=0||!O6[t])return;if(e.state=0,await new JSFile(e.file).exist()){e.state=1;return}let l=new JSFile(e.file+".dl");await l.open("w");let r=await req(e.uri,{buffer:3,headers:n,stream:l,timeout:[5e3,1e4]});if(r.error||r.code>=300){await l.close(),e.read||await l.delete(),e.state=-1;return}await l.close(),e.read?await l.copy(e.file):await l.move(e.file),e.state=1}async function ibe(t,e,n){Jp&&Jp!=t&&delete O6[Jp],Jp=t,O6[t]=!0;for(let l=0;l<e&&O6[t];l++)new Promise(function(r,i){(async function s(){if(!O6[t]){r();return}let a=U.pickBy(po[t],function(o){return o.state==-1}),u=U.minBy(Object.values(a),function(o){return o.order});if(!u){r();return}await Nq(t,u,n),setTimeout(s,5)})()})}function Fb(t,e){var n=t.split("/"),l=e.split("/");n.pop();for(var r=0;r<l.length;r++)l[r]!="."&&(l[r]==".."?n.pop():n.push(l[r]));return n.join("/")}function Cq(t){let e=[];return Array.from(t.danmuku).forEach(n=>{let l=Number(n[0]),r=n[4];e.push(`<dp="${l},1,25,16777215,1659282294,0,8b53b65c,1108899274487246080"><![CDATA[${r}]]></d>`)}),String.raw`<?xmlversion="1.0"encoding="UTF-8"?><i><chatserver>chat.bilibili.com</chatserver><chatid>52175602</chatid><mission>0</mission><maxlimit>1000</maxlimit><state>0</state><real_name>0</real_name><source>k-v</source>`+e.join("")+"</i>"}varXp=class{constructor(){this.siteUrl="https://search.youku.com",this.reconnectTimes=0,this.maxReconnectTimes=5,this.jadeLog=newir(this.getAppName(),"DEBUG")}getAppName(){return"\u5F39\u5E55"}getHeader(){return{"User-Agent":Jl,Referer:this.siteUrl+"/"}}asyncreconnnect(e,n,l,r,i,s){returnawaitthis.jadeLog.error("\u8BF7\u6C42\u5931\u8D25,\u8BF7\u68C0\u67E5url:"+e+",\u4E24\u79D2\u540E\u91CD\u8BD5"),Pr(2),this.reconnectTimes<this.maxReconnectTimes?(this.reconnectTimes=this.reconnectTimes+1,awaitthis.fetch(e,n,l,r,i,s)):(awaitthis.jadeLog.error("\u8BF7\u6C42\u5931\u8D25,\u91CD\u8FDE\u5931\u8D25"),null)}asyncgetResponse(e,n,l,r,i,s,a){returna.headers.location!==void0?r?(awaitthis.jadeLog.debug(`\u8FD4\u56DE\u91CD\u5B9A\u5411\u8FDE\u63A5:${a.headers.location}`),a.headers.location):this.fetch(a.headers.location,n,l,r,i,s):a.content.length>0?(this.reconnectTimes=0,i?{cookie:a.headers["set-cookie"],content:a.content}:a.content):s===1?(this.reconnectTimes=0,a.content):(awaitthis.jadeLog.error(`\u8BF7\u6C42\u5931\u8D25,\u8BF7\u6C42url\u4E3A:${e},\u56DE\u590D\u5185\u5BB9\u4E3A:${JSON.stringify(a)}`),awaitthis.reconnnect(e,n,l,r,i,s))}asyncfetch(e,n,l,r=!1,i=!1,s=0){leta=kp(n),u=e;U.isEmpty(a)||(u=e+"?"+a);leto=newv6(u),c;returnc=awaitreq(o.toString(),{method:"get",headers:l,buffer:s,data:null}),c.code===201||c.code===200||c.code===302||c.code===301||i?awaitthis.getResponse(e,n,l,r,i,s,c):(awaitthis.jadeLog.error(`\u8BF7\u6C42\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:\u72B6\u6001\u7801\u51FA\u9519,\u8BF7\u6C42url\u4E3A:${o},\u56DE\u590D\u5185\u5BB9\u4E3A:${JSON.stringify(c)}`),awaitthis.reconnnect(e,n,l,r,i,s))}asyncgetHtml(e=this.siteUrl,n=this.getHeader()){letl=awaitthis.fetch(e,null,n);if(U.isEmpty(l))awaitthis.jadeLog.error("html\u83B7\u53D6\u5931\u8D25",!0);elsereturnVe(l)}asyncpaLine truncated
`).forEach(function(s){r=s.indexOf(":"),n=s.substring(0,r).trim().toLowerCase(),l=s.substring(r+1).trim(),!(!n||e[n]&&YTe[n])&&(n==="set-cookie"?e[n]?e[n].push(l):e[n]=[l]:e[n]=e[n]?e[n]+", "+l:l)}),e};var KJ=Symbol("internals");function V6(t){return t&&String(t).trim().toLowerCase()}function Of(t){return t===!1||t==null?t:Z.isArray(t)?t.map(Of):String(t)}function QTe(t){let e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,l;for(;l=n.exec(t);)e[l[1]]=l[2];return e}var ZTe=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());functionDw(t,e,n,l,r){if(Z.isFunction(l))returnl.call(this,e,n);if(r&&(e=n),!!Z.isString(e)){if(Z.isString(l))returne.indexOf(l)!==-1;if(Z.isRegExp(l))returnl.test(e)}}functionexe(t){returnt.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,l)=>n.toUpperCase()+l)}functiontxe(t,e){letn=Z.toCamelCase(" "+e);["get","set","has"].forEach(l=>{Object.defineProperty(t,l+n,{value:function(r,i,s){returnthis[l].call(this,e,r,i,s)},configurable:!0})})}var$4=class{constructor(e){e&&this.set(e)}set(e,n,l){letr=this;functioni(a,u,o){letc=V6(u);if(!c)thrownewError("header name must be a non-empty string");letf=Z.findKey(r,c);(!f||r[f]===void0||o===!0||o===void0&&r[f]!==!1)&&(r[f||u]=Of(a))}lets=(a,u)=>Z.forEach(a,(o,c)=>i(o,c,u));returnZ.isPlainObject(e)||einstanceofthis.constructor?s(e,n):Z.isString(e)&&(e=e.trim())&&!ZTe(e)?s(JJ(e),n):e!=null&&i(n,e,l),this}get(e,n){if(e=V6(e),e){letl=Z.findKey(this,e);if(l){letr=this[l];if(!n)returnr;if(n===!0)returnQTe(r);if(Z.isFunction(n))returnn.call(this,r,l);if(Z.isRegExp(n))returnn.exec(r);thrownewTypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=V6(e),e){letl=Z.findKey(this,e);return!!(l&&this[l]!==void0&&(!n||Dw(this,this[l],l,n)))}return!1}delete(e,n){letl=this,r=!1;functioni(s){if(s=V6(s),s){leta=Z.findKey(l,s);a&&(!n||Dw(l,l[a],a,n))&&(deletel[a],r=!0)}}returnZ.isArray(e)?e.forEach(i):i(e),r}clear(e){letn=Object.keys(this),l=n.length,r=!1;for(;l--;){leti=n[l];(!e||Dw(this,this[i],i,e,!0))&&(deletethis[i],r=!0)}returnr}normalize(e){letn=this,l={};returnZ.forEach(this,(r,i)=>{lets=Z.findKey(l,i);if(s){n[s]=Of(r),deleten[i];return}leta=e?exe(i):String(i).trim();a!==i&&deleten[i],n[a]=Of(r),l[a]=!0}),this}concat(...e){returnthis.constructor.concat(this,...e)}toJSON(e){letn=Object.create(null);returnZ.forEach(this,(l,r)=>{l!=null&&l!==!1&&(n[r]=e&&Z.isArray(l)?l.join(", "):l)}),n}[Symbol.iterator](){returnObject.entries(this.toJSON())[Symbol.iterator]()}toString(){returnObject.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
`,Sxe=Q6.encode(ca),Txe=2,Yw=class{constructor(e,n){let{escapeName:l}=this.constructor,r=Z.isString(n),i=`Content-Disposition:form-data;name="${l(e)}"${!r&&n.name?`; filename="${l(n.name)}"`:""}${ca}`;r?n=Q6.encode(String(n).replace(/\r?\n|\r\n?/g,ca)):i+=`Content-Type:${n.type||"application/octet-stream"}${ca}`,this.headers=Q6.encode(i+ca),this.contentLength=r?n.byteLength:n.size,this.size=this.headers.byteLength+this.contentLength+Txe,this.name=e,this.value=n}async*encode(){yield this.headers;let{value:e}=this;Z.isTypedArray(e)?yield e:yield*If(e),yield Sxe}static escapeName(e){return String(e).replace(/[\r\n"]/g,n=>({"\r":"%0D","\n":"%0A",'"':"%22"})[n])}},xxe=(t,e,n)=>{let{tag:l="form-data-boundary",size:r=25,boundary:i=l+"-"+Z.generateString(r,wxe)}=n||{};if(!Z.isFormData(t))throw TypeError("FormData instance required");if(i.length<1||i.length>70)throw Error("boundary must be 10-70 characters long");let s=Q6.encode("--"+i+ca),a=Q6.encode("--"+i+"--"+ca+ca),u=a.byteLength,o=Array.from(t.entries()).map(([f,m])=>{let d=new Yw(f,m);return u+=d.size,d});u+=s.byteLength*o.length,u=Z.toFiniteNumber(u);let c={"Content-Type":`multipart/form-data;boundary=${i}`};return Number.isFinite(u)&&(c["Content-Length"]=u),e&&e(c),oK.Readable.from(async function*(){for(let f of o)yield s,yield*f.encode();yield a}())},cK=xxe;var pK=Zl(require("stream"),1),Qw=class extends pK.default.Transform{__transform(e,n,l){this.push(e),l()}_transform(e,n,l){if(e.length!==0&&(this._transform=this.__transform,e[0]!==120)){let r=Buffer.alloc(2);r[0]=120,r[1]=156,this.push(r,n)}this.__transform(e,n,l)}},fK=Qw;var Axe=(t,e)=>Z.isAsyncFn(t)?function(...n){let l=n.pop();t.apply(this,n).then(r=>{try{e?l(null,...e(r)):l(null,r)}catch(i){l(i)}},l)}:t,dK=Axe;var hK={flush:us.default.constants.Z_SYNC_FLUSH,finishFlush:us.default.constants.Z_SYNC_FLUSH},Oxe={flush:us.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:us.default.constants.BROTLI_OPERATION_FLUSH},mK=Z.isFunction(us.default.createBrotliDecompress),{http:Nxe,https:Cxe}=wK.default,Ixe=/https:?/,yK=s2.protocols.map(t=>t+":");function Rxe(t,e){t.beforeRedirects.proxy&&t.beforeRedirects.proxy(t),t.beforeRedirects.config&&t.beforeRedirects.config(t,e)}function TK(t,e,n){let l=e;if(!l&&l!==!1){let r=(0,vK.getProxyForUrl)(n);r&&(l=new URL(r))}if(l){if(l.username&&(l.auth=(l.username||"")+":"+(l.password||"")),l.auth){(l.auth.username||l.auth.password)&&(l.auth=(l.auth.username||"")+":"+(l.auth.password||""));let i=Buffer.from(l.auth,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+i}t.headers.host=t.hostname+(t.port?":"+t.port:"");let r=l.hostname||l.host;t.hostname=r,t.host=r,t.port=l.port,t.path=n,l.protocol&&(t.protocol=l.protocol.includes(":")?l.protocol:`${l.protocol}:`)}t.beforeRedirects.proxy=function(i){TK(i,e,i.href)}}var kxe=typeof process<"u"&&Z.kindOf(process)==="process",Dxe=t=>new Promise((e,n)=>{let l,r,i=(u,o)=>{r||(r=!0,l&&l(u,o))},s=u=>{i(u),e(u)},a=u=>{i(u,!0),n(u)};t(s,a,u=>l=u).catch(a)}),Pxe=({address:t,family:e})=>{if(!Z.isString(t))throw TypeError("address must be a string");return{address:t,family:e||(t.indexOf(".")<0?6:4)}},gK=(t,e)=>Pxe(Z.isObject(t)?t:{address:t,family:e}),xK=kxe&&function(e){return Dxe(async function(l,r,i){let{data:s,lookup:a,family:u}=e,{responseType:o,responseEncoding:c}=e,f=e.method.toUpperCase(),m,d=!1,y;if(a){let ee=dK(a,me=>Z.isArray(me)?me:[me]);a=(me,P,G)=>{ee(me,P,(V,q,el)=>{if(V)return G(V);let Tt=Z.isArray(q)?q.map(Ye=>gK(Ye)):[gK(q,el)];P.all?G(V,Tt):G(V,Tt[0].address,Tt[0].family)})}}let _=new SK.default,S=()=>{e.cancelToken&&e.cancelToken.unsubscribe(w),e.signal&&e.signal.removeEventListener("abort",w),_.removeAllListeners()};i((ee,me)=>{m=!0,me&&(d=!0,S())});function w(ee){_.emit("abort",!ee||ee.type?new Fr(null,e,y):ee)}_.once("abort",r),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(w),e.signal&&(e.signal.aborted?w():e.signal.addEventListener("abort",w)));let E=wo(e.baseURL,e.url),g=new URL(E,"http://localhost"),v=g.protocol||yK[0];if(v==="data:"){let ee;if(f!=="GET")return oa(l,r,{status:405,statusText:"method not allowed",headers:{},config:e});try{ee=Kw(e.url,o==="blob",{Blob:e.env&&e.env.Blob})}catch(me){throw qe.from(me,qe.ERR_BAD_REQUEST,e)}return o==="text"?(ee=ee.toString(c),(!c||c==="utf8")&&(ee=Z.stripBOM(ee))):o==="stream"&&(ee=xo.default.Readable.from(ee)),oa(l,r,{data:ee,status:200,statusText:"OK",headers:new a2,config:e})}if(yK.indexOf(v)===-1)return r(new qe("Unsupported protocol "+v,qe.ERR_BAD_REQUEST,e));let x=a2.from(e.headers).normalize();x.set("User-Agent","axios/"+To,!1);let O=e.onDownloadProgress,N=e.onUploadProgress,I=e.maxRate,M,F;if(Z.isSpecCompliantForm(s)){let ee=x.getContentType(/boundary=([-_\w\d]{10,70})/i);s=cK(s,me=>{x.set(me)},{tag:`axios-${To}-boundary`,boundary:ee&&ee[1]||void 0})}else if(Z.isFormData(s)&&Z.isFunction(s.getHeaders)){if(x.set(s.getHeaders()),!x.hasContentLength())try{let ee=await bK.default.promisify(s.getLength).call(s);Number.isFini
Line truncated
`+i.map(IK).join(`
`):" "+IK(i[0]):"as no adapter specified";throw new qe("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return l},adapters:Zw};function eS(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Fr(null,t)}function kf(t){return eS(t),t.headers=a2.from(t.headers),t.data=q6.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Rf.getAdapter(t.adapter||M4.adapter)(t).then(function(l){return eS(t),l.data=q6.call(t,t.transformResponse,l),l.headers=a2.from(l.headers),l},function(l){return z6(l)||(eS(t),l&&l.response&&(l.response.data=q6.call(t,t.transformResponse,l.response),l.response.headers=a2.from(l.response.headers))),Promise.reject(l)})}var RK=t=>t instanceof a2?t.toJSON():t;function os(t,e){e=e||{};let n={};function l(o,c,f){return Z.isPlainObject(o)&&Z.isPlainObject(c)?Z.merge.call({caseless:f},o,c):Z.isPlainObject(c)?Z.merge({},c):Z.isArray(c)?c.slice():c}function r(o,c,f){if(Z.isUndefined(c)){if(!Z.isUndefined(o))return l(void 0,o,f)}else return l(o,c,f)}function i(o,c){if(!Z.isUndefined(c))return l(void 0,c)}function s(o,c){if(Z.isUndefined(c)){if(!Z.isUndefined(o))return l(void 0,o)}else return l(void 0,c)}function a(o,c,f){if(f in e)return l(o,c);if(f in t)return l(void 0,o)}let u={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(o,c)=>r(RK(o),RK(c),!0)};return Z.forEach(Object.keys(Object.assign({},t,e)),function(c){let f=u[c]||r,m=f(t[c],e[c],c);Z.isUndefined(m)&&f!==a||(n[c]=m)}),n}var tS={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{tS[t]=function(l){return typeof l===t||"a"+(e<1?"n ":" ")+t}});var kK={};tS.transitional=function(e,n,l){function r(i,s){return"[Axios v"+To+"] Transitional option '"+i+"'"+s+(l?". "+l:"")}return(i,s,a)=>{if(e===!1)throw new qe(r(s," has been removed"+(n?" in "+n:"")),qe.ERR_DEPRECATED);return n&&!kK[s]&&(kK[s]=!0,console.warn(r(s," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(i,s,a):!0}};function jxe(t,e,n){if(typeof t!="object")throw new qe("options must be an object",qe.ERR_BAD_OPTION_VALUE);let l=Object.keys(t),r=l.length;for(;r-- >0;){let i=l[r],s=e[i];if(s){let a=t[i],u=a===void 0||s(a,i,t);if(u!==!0)throw new qe("option "+i+" must be "+u,qe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new qe("Unknown option "+i,qe.ERR_BAD_OPTION)}}var Df={assertOptions:jxe,validators:tS};var pa=Df.validators,H4=class{constructor(e){this.defaults=e,this.interceptors={request:new Cw,response:new Cw}}async request(e,n){try{return await this._request(e,n)}catch(l){if(l instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;let i=r.stack?r.stack.replace(/^.+\n/,""):"";l.stack?i&&!String(l.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(l.stack+=`
`,"").replaceAll("\u5267\u60C5\uFF1A",""),n.vod_pic=e("img.lazy")[0].attribs["data-original"],n}async parseVodShortListFromJson(e){let n=[];for(let l of e){let r=new Ne;r.vod_id=l.url,r.vod_pic=l.thumb,r.vod_remarks=l.time,r.vod_name=l.title,n.push(r)}return n}async setClasses(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(!U.isEmpty(e)){let n=Ve(e),l=n("[class=index-list-l]");for(let r of l){let i=n(n(r).find('[class="h1 clearfix"]')[0]).find("a"),s=i[0].attribs.href,a=n(i[1]).text();U.isEmpty(a)||this.classes.push({type_id:s,type_name:a})}}}async getFilter(e){let n=this.siteUrl+e,l=await this.fetch(n,null,this.getHeader()),r=[];if(!U.isEmpty(l)){let i=Ve(l),s=i('[class="sy scon clearfix"]').find("dl"),a=0;for(let u of s){let o=i(i(u).find("dt")).text().replace("\u6309","").replace("\uFF1A",""),c={key:(a+1).toString(),name:o,value:[]},f=i(u).find("a"),m=0;o==="\u5267\u60C5"?m=3:o==="\u5E74\u4EE3"?m=2:o==="\u5730\u533A"&&(m=4);for(let d of f){let y=d.attribs.href.split("/");c.value.push({n:i(d).text(),v:y[m]})}r.push(c),a=a+1}}return r}async setFilterObj(){for(let e of this.classes){let n=e.type_id;n!=="\u6700\u8FD1\u66F4\u65B0"&&(this.filterObj[n]=await this.getFilter(n))}}async setHomeVod(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(!U.isEmpty(e)){let n=Ve(e);this.homeVodList=await this.parseVodShortListFromDoc(n)}}async setCategory(e,n,l,r){let i=this.siteUrl+e,s=await this.fetch(i,null,this.getHeader());if(!U.isEmpty(s)){let a=e.split("/")[1],u=e.split("/")[2],o=xe(/var _yu_gda_s="(.*?)";/,s),c={action:a,page:parseInt(n),year:r[2]??"0",area:r[3]??"all",class:r[1]??"0",dect:"",id:u},f=await this.fetch(o,c,this.getHeader());if(f!==null){let m=Ve(f);this.vodList=await this.parseVodShortListFromDoc(m)}}}async setDetail(e){let n=this.siteUrl+e,l=await this.fetch(n,null,this.getHeader());if(!U.isEmpty(l)){let r=Ve(l);this.vodDetail=await this.parseVodDetailFromDoc(r);let s="http://test.gqyy8.com:8077/ne2"+/<script type="text\/javascript" src="http:\/\/test.gqyy8.com:8077\/ne2(.*?)"><\/script>/g.exec(l)[1],a=await this.fetch(s,null,this.getHeader());if(!U.isEmpty(a)){let u=this.paraseUrlObject(a);this.vodDetail.vod_play_url=u.play_url,this.vodDetail.vod_play_from=u.play_format}}}async setSearch(e,n){let l=this.siteUrl+"/search.php",r=await this.fetch(l,null,this.getHeader());if(!U.isEmpty(r)){let i={top:10,q:e},s=xe(/var my_search='(.*?)';/,r),a=await this.fetch(s,i,this.getHeader());if(!U.isEmpty(a)){let u=JSON.parse(a.replaceAll("\uFEFF",""));this.vodList=await this.parseVodShortListFromJson(u)}}}},gn=new pS;var fS=class extends Ce{constructor(){super()}getName(){return gn.getName()}getAppName(){return gn.getAppName()}getJSName(){return gn.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await gn.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await gn.initCookie(e.server.config.biliCookie),await gn.spiderInit(e),gn.cfgObj.code=0,gn.catOpenStatus=!0,gn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await gn.setClasses(),this.classes=gn.classes}async setFilterObj(){await gn.setFilterObj(),this.filterObj=gn.filterObj}async setHomeVod(){await gn.setHomeVod(),this.homeVodList=gn.homeVodList}async setCategory(e,n,l,r){await gn.setCategory(e,n,l,r),this.vodList=gn.vodList}async setDetail(e){await gn.setDetail(e),this.vodDetail=gn.vodDetail}async setPlay(e,n,l){await gn.setPlay(e,n,l),this.playUrl=gn.playUrl,this.result=gn.result}async setSearch(e,n,l){await gn.setSearch(e,n,l),this.vodList=gn.vodList,this.result=gn.result}async setProxy(e,n){return await gn.proxy(e,n)}},ma=new fS;async function eX(t,e){return await ma.init(t,e)}async function tX(t,e){return await ma.home(t,e)}async function tAe(t,e){return await ma.homeVod(t,e)}async function nX(t,e){return await ma.category(t,e)}async function lX(t,e){return await ma.detail(t,e)}async function rX(t,e){return await ma.play(t,e)}async function iX(t,e){return await ma.search(t,e)}async function nAe(t,e){return await ma.proxy(t,e)}var sX={meta:{key:gn.getJSName(),name:gn.getName(),type:gn.getType()},api:async t=>{t.post("/init",eX),t.post("/home",tX),t.post("/category",nX),t.post("/detail",lX),t.post("/play",rX),t.post("/search",iX),t.get("/proxy/:what/:ids/:end",nAe)},spider:{init:eX,home:tX,homeVod:tAe,category:nX,detail:lX,play:rX,search:iX}};var e8=class extends Pe{constructor(){super(),this.siteUrl="http://op.ysdqjs.cn",this.cookie="",this.extendObj={extend:"\u7C7B\u578B",area:"\u5730\u533A",year:"\u5E74\u4EE3"},this.parseMap={}}async request(e,n,l){let r={"User-Agent":Jl};U.isEmpty(this.cookie)||(r.Cookie=this.cookie);let i=n==="post"?"form-data":"",s=await req(e,{method:n||"get",headers:r,data:l,postType:i});if(s.code===403){let a=s.data.match(/window\.location\.href ="(.*?)"/)[1];this.cookie=U
Line truncated
`,"").replaceAll(" ",""),l.push(s)}return l}async parseVodDetailFromDoc(e){let n=e("#post_content"),l=[],r=[];if(!this.catOpenStatus){let u=0,o="\u78C1\u529B\u7EBF\u8DEF";for(let c of n){let f=e(c).find("table a"),m=[];for(let d of f){let y=d.attribs.href,_=d.children[0].data;y.toLowerCase().startsWith("magnet")&&m.push(_+"$"+y)}m.length>0&&(u++,l.push(o+u),r.push(m.join("#")))}}let i=e(e(".mainleft")).find('[class="widget box row"]');for(let u of i){let o=e(u).find("h3").text(),c=[];if(!U.isEmpty(o)){let f=e(u).find("a");for(let m of f)c.push(m.attribs.title+"$"+m.attribs.href);l.push(o),r.push(c.join("#"))}}let s=e(".context").html(),a=new Ue;return a.vod_name=e(".article_container > h1").text(),a.vod_pic=e("#post_content img").attr("src"),a.type_name=xe(/◎类 别 (.*?)<br>/,s),U.isEmpty(a.type_name)&&(a.type_name=e('[rel="category tag"]').text()),a.vod_year=xe(/◎年 代 (.*?)<br>/,s),U.isEmpty(a.vod_year)&&(a.vod_year=xe(/首播:(.*?)<br>"/,s)),a.vod_area=xe(/◎产 地 (.*?)<br>/,s),U.isEmpty(a.vod_year)&&(a.vod_area=xe(/地区:(.*?)<br>"/,s)),a.vod_remarks=xe(/◎上映日期 (.*?)<br>/,s),a.vod_actor=this.getActorOrDirector(/◎演 员 (.*?)<\/p>/,s),U.isEmpty(a.vod_actor)&&(a.vod_actor=this.getActorOrDirector(/◎主 演 (.*?)<\/p>/,s)),U.isEmpty(a.vod_actor)&&(a.vod_actor=this.getActorOrDirector(/主演:(.*?)<br>/,s)),a.vod_director=this.getActorOrDirector(/◎导 演 (.*?)<br>/,s),U.isEmpty(a.vod_director)&&(a.vod_director=this.getActorOrDirector(/导演:(.*?)<br>/,s)),a.vod_content=this.getDescription(/◎简 介(.*?)<hr>/gi,s),U.isEmpty(a.vod_content)&&(a.vod_content=this.getDescription(/简介(.*?)<\/p>/gi,s)),U.isEmpty(a.vod_content)&&(a.vod_content=this.getDescription(/◎简 介(.*?)<br>/gi,s)),a.vod_play_from=l.join("$$$"),a.vod_play_url=r.join("$$$"),a}async parseVodPlayFromDoc(e,n){let l="",r=n.html();switch(e){case"\u64AD\u653E\u5730\u5740\uFF08\u65E0\u63D2\u4EF6 \u6781\u901F\u64AD\u653E\uFF09":case"\u64AD\u653E\u5730\u5740\u4E09":l=n(n(".video")).find("iframe")[0].attribs.src+"/index.m3u8";break;case"\u64AD\u653E\u5730\u5740\uFF08\u65E0\u9700\u5B89\u88C5\u63D2\u4EF6\uFF09":let i=/url: '(.*?)',/gs.exec(r);i.length>1&&(l=i[1]);break;case"\u64AD\u653E\u5730\u5740\u56DB":let s=/source: "(.*?)",/gs.exec(r);s.length>1&&(l=s[1]);break;default:await this.jadeLog.warning(`\u6682\u4E0D\u652F\u6301\u5F53\u524D\u683C\u5F0F,\u5F53\u524D\u683C\u5F0F\u4E3A:${e}`);break}return l}async setClasses(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(!U.isEmpty(e)){let n=Ve(e),l=n("#menus > li > a");for(let r=0;r<l.length;r++){let i=l[r];if(r<2||r===l.length-1)continue;let s=i.children[0].data,a=i.attribs.href;if(this.classes.push({type_name:s,type_id:a}),s==="\u7535\u89C6\u5267"){let u=[{n:"\u4E0D\u9650",v:""}];for(let o of n(i.next).find("a"))u.push({n:o.children[0].data,v:o.attribs.href.replaceAll(a,"")});this.filterObj[a]=[{key:"cateId",name:"\u7C7B\u578B",value:u}]}}}}async setHomeVod(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(U.isEmpty(e))await this.jadeLog.info("\u9996\u9875\u7C7B\u522B\u89E3\u6790\u5931\u8D25",!0);else{let n=Ve(e);this.homeVodList=await this.parseVodShortListFromDoc(n)}}async setCategory(e,n,l,r){let i=r.cateId??"",s=this.siteUrl+e+i;this.page=parseInt(n),this.count=0,this.limit=18,this.total=0,this.page!==1&&(s+="index_"+n+".html");let a=await this.fetch(s,null,this.getHeader());if(!U.isEmpty(a)){let u=Ve(a),o=u(".pagination > a");if(o.length>0){let c=o.slice(-1)[0].attribs.href,m=/index_(.*?).html/.exec(c);this.count=parseInt(m[1]);let d=u("#post_container .post_hover");this.total=this.page===this.count?(this.page-1)*this.limit+d.length:this.count*this.limit}this.vodList=await this.parseVodShortListFromDoc(u)}}async setSearch(e,n){let l=this.siteUrl+"/e/search/index.php",r={show:"title",tempid:"1",tbname:"article",mid:"1",dopost:"search",keyboard:e},i=await this.post(l,r,this.getHeader());if(!U.isEmpty(i)){let s=Ve(i);this.vodList=await this.parseVodShortListFromDoc(s)}}async setDetail(e){let n=this.siteUrl+e,l=await this.fetch(n,null,this.getHeader());if(!U.isEmpty(l)){let r=Ve(l);this.vodDetail=await this.parseVodDetailFromDoc(r)}}async setPlay(e,n,l){if(n.toLowerCase().startsWith("magnet"))this.playUrl=n;else{let r=this.siteUrl+n,i=await this.fetch(r,null,this.getHeader()),s=Ve(i);this.playUrl=await this.parseVodPlayFromDoc(e,s)}}},_n=new mS;var yS=class extends Ce{constructor(){super()}getName(){return _n.getName()}getAppName(){return _n.getAppName()}getJSName(){return _n.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await _n.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await _n.initCookie(e.server.config.biliCookie),await _n.spiderInit(e),_n.cfgObj.code=0,_n.catOpenStatus=!0,_n.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",ty
Line truncated
`;n.type_name=e(e(e(r).find('[class="post-meta"]')).find("span")[0]).text(),n.vod_pic=e(r).find("img")[0].attribs.src,n.vod_name=xe(/名称:(.*?)\n/,s),n.vod_actor=xe(/主演:(.*?)\n/,s),n.vod_director=xe(/导演:(.*?)\n/,s),n.vod_area=xe(/地区:(.*?)\n/,s),n.vod_year=xe(/年份:(.*?)\n/,s),n.vod_remarks=xe(/更新:(.*?)\n/,s);let a=e('[class="article-related info"]').find("p");n.vod_content=e(a).text();let u=e('[class="article-related download_url"]'),o=[],c=[];for(let f=0;f<u.length;f++){let m=u[f],d=e(e(m).find("h2")).text().replaceAll(n.vod_name,"");o.push(d.replaceAll("\u4E0B\u8F7D","\u64AD\u653E"));let y=[];for(let _ of e(u[f]).find("a")){let S=e(_).text().replaceAll("\u78C1\u529B\u94FE\u4E0B\u8F7D","").replaceAll(".mp4",""),w=_.attribs.href;y.push(S+"$"+w)}c.push(y.join("#"))}return n.vod_play_from=o.join("$$$"),n.vod_play_url=c.join("$$$"),n}async parseVodShortListFromJson(e){let n=[],l=Ve(e.ajaxtxt),r=l(l("ul")).find("li");for(let i of r){let s=new Ne;s.vod_pic=l(i).find("img")[0].attribs["data-original"],s.vod_name=xe(/《(.*?)》/,l(i).find("img")[0].attribs.alt),s.vod_id=l(i).find("a")[0].attribs.href,s.vod_remarks="\u8BC4\u5206:"+l(l(i).find('[class="rate badge"]')).text(),n.push(s)}return n}async parseVodShortListFromDocByCategory(e){let n=[],l=e(e('[id="list_all"]').find("ul")).find("li");for(let r of l){let i=new Ne;i.vod_id=e(r).find("a")[0].attribs.href,i.vod_name=xe(/《(.*?)》/,e(e(e(r).find('[class="text_info"]')).find("a")[0]).text()),i.vod_pic=e(r).find("img")[0].attribs["data-original"],i.vod_remarks=e(e(r).find('[class="update_time"]')).text(),n.push(i)}return n}async setHomeVod(){let e=await this.getHtml();this.homeVodList=await this.parseVodShortListFromDoc(e)}async setDetail(e){let n=await this.getHtml(this.siteUrl+e);return this.vodDetail=await this.parseVodDetailFromDoc(n),this.vodDetail}async setCategory(e,n,l,r){let i=this.siteUrl+`/list/${e}-${n}.html`,s=await this.getHtml(i);this.vodList=await this.parseVodShortListFromDocByCategory(s)}async setSearch(e,n){let l=this.siteUrl+"/search/",r={wd:e,p:"1",t:"j/tNgwBS2e8O4x9TuIkYuQ=="},i=await this.post(l,r,this.getSearchHeader()),s=Ve(i);this.vodList=await this.parseVodShortListFromDocByCategory(s)}},En=new gS;var vS=class extends Ce{constructor(){super()}getName(){return En.getName()}getAppName(){return En.getAppName()}getJSName(){return En.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await En.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await En.initCookie(e.server.config.biliCookie),await En.spiderInit(e),En.cfgObj.code=0,En.catOpenStatus=!0,En.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await En.setClasses(),this.classes=En.classes}async setFilterObj(){await En.setFilterObj(),this.filterObj=En.filterObj}async setHomeVod(){await En.setHomeVod(),this.homeVodList=En.homeVodList}async setCategory(e,n,l,r){await En.setCategory(e,n,l,r),this.vodList=En.vodList}async setDetail(e){await En.setDetail(e),this.vodDetail=En.vodDetail}async setPlay(e,n,l){await En.setPlay(e,n,l),this.playUrl=En.playUrl,this.result=En.result}async setSearch(e,n,l){await En.setSearch(e,n,l),this.vodList=En.vodList,this.result=En.result}async setProxy(e,n){return await En.proxy(e,n)}},va=new vS;async function AX(t,e){return await va.init(t,e)}async function OX(t,e){return await va.home(t,e)}async function aAe(t,e){return await va.homeVod(t,e)}async function NX(t,e){return await va.category(t,e)}async function CX(t,e){return await va.detail(t,e)}async function IX(t,e){return await va.play(t,e)}async function RX(t,e){return await va.search(t,e)}async function uAe(t,e){return await va.proxy(t,e)}var kX={meta:{key:En.getJSName(),name:En.getName(),type:En.getType()},api:async t=>{t.post("/init",AX),t.post("/home",OX),t.post("/category",NX),t.post("/detail",CX),t.post("/play",IX),t.post("/search",RX),t.get("/proxy/:what/:ids/:end",uAe)},spider:{init:AX,home:OX,homeVod:aAe,category:NX,detail:CX,play:IX,search:RX}};var _S=class extends Pe{constructor(){super(),this.siteUrl="http://api2.rinhome.com"}getName(){return"\u{1F33C}\u2503\u8350\u7247\u2503\u{1F33C}"}getAppName(){return"\u8350\u7247"}getJSName(){return"jianpian"}getType(){return 3}getHeader(){return{"User-Agent":"jianpian-android/360",JPAUTH:"y261ow7kF2dtzlxh1GS9EB8nbTxNmaK/QQIAjctlKiEv",Referer:"www.jianpianapp.com"}}async spiderInit(e=null){e!==null?this.jsBase=await js2Proxy(e,"img",this.getHeader()):this.jsBase=await js2Proxy(!0,this.siteType,this.siteKey,"img/",this.getHeader())}async init(e){await super.init(e),this.danmuStaus=!0,await this.spiderInit(null)}async parseVodShortListFromJson(e){let n=[];for(let l of e){let r=new Ne;r.vod_id=l.id,l.path!==void 0?r.vod_pic=this.jsBase+l2(l.path):r.vod_pic=this.jsBase+l2(l.thumbnail),r.vod_name=l.title,l
Line truncated
`,"").replaceAll(" ","");if(a.indexOf("\u65F6\u95F4")>-1&&a.indexOf("\u6587\u4EF6\u5939")>-1){let u=a.split("\u65F6\u95F4"),o=new Ne;o.vod_name=u[0],o.vod_remarks=u[1].split("\u683C\u5F0F")[0].replaceAll(":","").replaceAll(" ","").replaceAll("\uFEFF","").replaceAll("\xA0",""),o.vod_id=JSON.stringify({name:o.vod_name,remarks:o.vod_remarks,id:i}),l.push(o)}}}return l}async setClasses(){await this.parseClassFromDoc(this.content_html)}async setHomeVod(){let e=this.content_html(this.content_html('[id="app"]')[0]).find("van-tab");this.homeVodList=await this.parseVodShortListFromDoc(e[0])}async setDetail(e){if(e.indexOf("search")>-1){let n=this.siteUrl+"/search",l={k:decodeURIComponent(e.split("search?k=").slice(-1)[0])},r=await this.fetch(n,l,this.getHeader());if(!U.isEmpty(r)){let i=Ve(r),s=await this.parseVodShortListFromDocBySearch(i);s.length>0?e=s[0].vod_id:e=""}}if(!U.isEmpty(e)){let n=JSON.parse(e);this.vodDetail=await this.parseVodDetailfromJson(n)}}async setCategory(e,n,l,r){let i=this.content_html(this.content_html('[id="app"]')[0]).find("van-tab");this.vodList=await this.parseVodShortListFromDoc(i[parseInt(e)])}async setSearch(e,n){let l=this.siteUrl+"/search",r={k:e},i=await this.fetch(l,r,this.getHeader());if(!U.isEmpty(i)){let s=Ve(i);this.vodList=await this.parseVodShortListFromDocBySearch(s)}}async setPlay(e,n,l){this.playUrl=await A3(e,n,l),this.result.setHeader(or(e))}},wn=new bS;var wS=class extends Ce{constructor(){super()}getName(){return wn.getName()}getAppName(){return wn.getAppName()}getJSName(){return wn.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await wn.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await wn.initCookie(e.server.config.biliCookie),await wn.spiderInit(e),wn.cfgObj.code=0,wn.catOpenStatus=!0,wn.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await wn.setClasses(),this.classes=wn.classes}async setFilterObj(){await wn.setFilterObj(),this.filterObj=wn.filterObj}async setHomeVod(){await wn.setHomeVod(),this.homeVodList=wn.homeVodList}async setCategory(e,n,l,r){await wn.setCategory(e,n,l,r),this.vodList=wn.vodList}async setDetail(e){await wn.setDetail(e),this.vodDetail=wn.vodDetail}async setPlay(e,n,l){await wn.setPlay(e,n,l),this.playUrl=wn.playUrl,this.result=wn.result}async setSearch(e,n,l){await wn.setSearch(e,n,l),this.vodList=wn.vodList,this.result=wn.result}async setProxy(e,n){return await wn.proxy(e,n)}},Ea=new wS;async function $X(t,e){return await Ea.init(t,e)}async function BX(t,e){return await Ea.home(t,e)}async function pAe(t,e){return await Ea.homeVod(t,e)}async function HX(t,e){return await Ea.category(t,e)}async function VX(t,e){return await Ea.detail(t,e)}async function qX(t,e){return await Ea.play(t,e)}async function zX(t,e){return await Ea.search(t,e)}async function fAe(t,e){return await Ea.proxy(t,e)}var GX={meta:{key:wn.getJSName(),name:wn.getName(),type:wn.getType()},api:async t=>{t.post("/init",$X),t.post("/home",BX),t.post("/category",HX),t.post("/detail",VX),t.post("/play",qX),t.post("/search",zX),t.get("/proxy/:what/:ids/:end",fAe)},spider:{init:$X,home:BX,homeVod:pAe,category:HX,detail:VX,play:qX,search:zX}};var ba=class extends Pe{constructor(){super(),this.siteUrl="http://cj.ffzyapi.com",this.remove18=!1,this.type_id_18=34}async spiderInit(e){e!==null?this.detailProxy=await js2Proxy(e,"detail",this.getHeader()):this.detailProxy=await js2Proxy(!0,this.siteType,this.siteKey,"detail/",this.getHeader())}async init(e){await super.init(e),await this.spiderInit(null)}async parseVodShortListFromJson(e,n=!1){let l=[],r;for(let i of e.list)n?(r=new Ne,r.vod_pic=this.detailProxy+l2(i.vod_id),r.vod_id=i.vod_id,r.vod_name=i.vod_name,r.vod_remarks=i.vod_remarks):r=this.parseVodDetail(i),this.remove18&&i.type_id!==this.type_id_18&&l.push(r),!this.remove18&&i.type_id===this.type_id_18&&l.push(r);return l}parseVodDetail(e){let n=new Ue;n.vod_id=e.vod_id,n.vod_name=e.vod_name,n.vod_pic=e.vod_pic,n.vod_remarks=e.vod_remarks,n.vod_area=e.vod_area,n.vod_year=e.vod_year,n.vod_actor=e.vod_actor,n.vod_director=e.vod_director;let l=Ve(e.vod_content);return n.vod_content=l.text(),e.vod_down_url!==void 0&&e.vod_down_url.length>0&&(n.vod_play_from="\u76F4\u94FE\u64AD\u653E$$$",n.vod_play_url=e.vod_down_url+"$$$"),n.vod_play_from=n.vod_play_from+e.vod_play_from,n.vod_play_url=n.vod_play_url+e.vod_play_url,n.type_name=e.type_name,n}async parseVodDetailfromJson(e){let n,l=e.list;if(l.length>0){let r=l[0];n=this.parseVodDetail(r)}return n}async setClasses(){let e=await this.fetch(this.siteUrl+"/api.php/provide/vod/from",{ac:"list"},this.getHeader()),n=JSON.parse(e);for(let l of n.class)l.type_pid!==0&&this.classes.push(this.getTypeDic(l.type_name,l.type_id))}async setFilterObj(){let e=await this.fetch(this.siteUrl+"/api.php/provide/vod/from",{a
Line truncated
`),r=[];for(let m of l)U.isEmpty(m.replaceAll(" ","").replaceAll("/",""))||r.push(m.replaceAll(" ","").replaceAll("/",""));n.type_name=r.slice(0,2).join("*");let i=e('[class="video-info-items"]');n.vod_director=e(i[0]).find("a")[0].children[0].data;let s=e(i[1]).find("a"),a=[];for(let m of s)a.push(m.children[0].data);n.vod_actor=a.join(" * "),n.vod_year=r[2],n.vod_remarks=e(e(i[3]).find(".video-info-item")).text(),n.vod_content=e(e(i[5]).find(".video-info-item")).text(),n.vod_area=r[3],n.vod_content=n.vod_content.replace("[\u6536\u8D77\u90E8\u5206]","").replace("[\u5C55\u5F00\u5168\u90E8]","").replaceAll(" ","").replaceAll(`
`,"");let u=e(e('[class="module-tab-content"]')[0]).find("span"),o=e('[class="module-list module-player-list tab-list sort-list "]'),c=[];for(let m of u)c.push(e(m).text());let f=[];for(let m of o){let d=e(e(m).find('[class="sort-item"]')).find("a"),y=[];for(let _ of d){let S=e(_).text(),w=_.attribs.href,E=S+"$"+w;y.push(E)}f.push(y.join("#"))}return n.vod_play_from=c.join("$$$"),n.vod_play_url=U.values(f).join("$$$"),n}async parseVodShortListFromDocBySearch(e){let n=e(".module-search-item"),l=[];for(let r of n){let i=new Ne;i.vod_id=e(r).find(".video-serial")[0].attribs.href,i.vod_name=e(r).find(".video-serial")[0].attribs.title,i.vod_pic=e(r).find(".module-item-pic > img")[0].attribs["data-src"],i.vod_remarks=e(e(r).find(".video-serial")[0]).text(),l.push(i)}return l}async setClasses(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(!U.isEmpty(e)){let n=Ve(e),l=n(n('[class="nav-menu-items"]')[0]).find("li");for(let r of l.slice(0,6)){let i=n(n(r).find("span")).text();if(i!=="\u9996\u9875"){let a={type_id:n(r).find("a")[0].attribs.href.split("/").slice(-1)[0].split(".")[0],type_name:i};this.classes.push(a)}}}}async getFilter(e){let n=e('[class="scroll-content"]').slice(1),l=[];for(let r=0;r<n.length;r++){let i={key:(r+1).toString(),name:"",value:[]};if(r<n.length-1){i.name=e(e(n[r]).find("a")[0]).text(),i.value.push({n:"\u5168\u90E8",v:"0"});for(let s of e(n[r]).find("a").slice(1))e(e(n[r]).find("a")[0]).text()==="\u5168\u90E8\u7C7B\u578B"?i.value.push({n:e(s).text(),v:s.attribs.href.split("/").slice(-1)[0].split(".")[0]}):i.value.push({n:e(s).text(),v:e(s).text()});l.push(i)}else i.name=e(e(n[r]).find("a")[0]).text(),i.value=[{n:"\u5168\u90E8",v:"0"},{n:e(e(n[r]).find("a")[1]).text(),v:"hits"},{n:e(e(n[r]).find("a")[2]).text(),v:"score"}],l.push(i)}return l}async setFilterObj(){for(let e of this.classes){let n=e.type_id;if(n!=="/"&&n!=="\u6700\u8FD1\u66F4\u65B0"){let l=this.siteUrl+`/vodshow/id/${n}.html`,r=await this.fetch(l,null,this.getHeader());if(r!=null){let i=Ve(r);this.filterObj[n]=await this.getFilter(i)}}}}async setHomeVod(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(!U.isEmpty(e)){let n=Ve(e);this.homeVodList=await this.parseVodShortListFromDoc(n)}}getExtend(e,n,l=""){return e!==void 0&&e!=="0"?l+e:n}async getCateUrl(e,n,l){e=this.getExtend(l[1],e);let r=this.getExtend(l[2],"","/area/"),i=this.getExtend(l[3],"","/lang/"),s=this.getExtend(l[4],"","/year/"),a=this.getExtend(l[5],"","/letter/"),u=this.getExtend(l[6],"","/by/");return this.siteUrl+`/vodshow${u}${r}/id/${e}${i}${a}${s}/page/${n}.html`}async setCategory(e,n,l,r){let i=await this.getCateUrl(e,n,r),s=await this.fetch(i,null,this.getHeader());if(!U.isEmpty(s)){let a=Ve(s);this.vodList=await this.parseVodShortListFromDoc(a);let u=xe(/\$\("\.mac_total"\)\.text\('(\d+)'\)/,s);this.limit=72,u.length>0&&(this.total=parseInt(u)),this.total<=this.limit?this.count=1:this.count=Math.ceil(this.total/this.limit)}}async setDetail(e){let n=this.siteUrl+e,l=await this.fetch(n,null,this.getHeader());if(!U.isEmpty(l)){let r=Ve(l);this.vodDetail=await this.parseVodDetailFromDoc(r)}}async setPlay(e,n,l){let r=await this.fetch(this.siteUrl+n,null,this.getHeader());if(!U.isEmpty(r)){let i=xe(/<script type="text\/javascript">var player_aaaa=(.*?)<\/script>/,r),s=JSON.parse(i);this.playUrl=s.url}}async setSearch(e,n){let l=this.siteUrl+`/vodsearch/wd/${e}.html`,r=await this.fetch(l,null,this.getHeader());if(!U.isEmpty(r)){let i=Ve(r);this.vodList=await this.parseVodShortListFromDocBySearch(i)}}},On=new kS;var DS=class extends Ce{constructor(){super()}getName(){return On.getName()}getAppName(){return On.getAppName()}getJSName(){return On.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await On.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await On.initCookie(e.server.config.biliCookie),await On.spiderInit(e),On.cfgObj.code=0,On.catOpenStatus=!0,On.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await On.setClasses(),this.classes=On.classes}async setFilterObj(){await On.setFilterObj(),this.filterObj=On.filterObj}async setHomeVod(){await On.setHomeVod(),this.homeVodList=On.homeVodList}async setCategory(e,n,l,r){await On.setCategory(e,n,l,r),this.vodList=On.vodList}async setDetail(e){await On.setDetail(e),this.vodDetail=On.vodDetail}async setPlay(e,n,l){await On.setPlay(e,n,l),this.playUrl=On.playUrl,this.result=On.result}async setSearch(e,n,l){await On.setSearch(e,n,l),this.vodList=On.vodList,this.result=On.result}async setProxy(e,n){return await On.proxy(e,n)}},Ca=new DS;async function wW(t,e){return await Ca.init(t,e)}async function SW(t,e){return await Ca.home(t,e)}async function TAe(t,e){return await Ca.homeVod(t,e)}async function TW(t,e){return await Ca.category(t,e)}async function xW(t,e){r
Line truncated
`)){let u=a.trim();if(u)if(u.startsWith("#")){if(u.startsWith("#EXT")){let o=hEe(u,i);o&&s.push(o)}}else s.push(u)}return s.length!==0&&s[0].name==="EXTM3U"||Be("The EXTM3U tag MUST be the first line."),s}(t,e),l=mEe(n,e);return l.source=t,l}var yEe=["#EXTINF","#EXT-X-BYTERANGE","#EXT-X-DISCONTINUITY","#EXT-X-STREAM-INF","#EXT-X-CUE-OUT","#EXT-X-CUE-IN","#EXT-X-KEY","#EXT-X-MAP"],gEe=["#EXT-X-MEDIA"],Sb=class extends Array{constructor(e){super(),this.baseUri=e}push(...e){for(let n of e)if(n.startsWith("#"))if(yEe.some(l=>n.startsWith(l)))super.push(n);else{if(this.includes(n)){if(gEe.some(l=>n.startsWith(l)))continue;Be(`Redundantitem(${n})`)}super.push(n)}else super.push(n);return this.length}};function Ob(t,e){let n=1e3;e&&(n=Math.pow(10,e));let l=Math.round(t*n)/n;return e?l.toFixed(e):l}function vEe(t){let e=[`DATA-ID="${t.id}"`];return t.language&&e.push(`LANGUAGE="${t.language}"`),t.value?e.push(`VALUE="${t.value}"`):t.uri&&e.push(`URI="${t.uri}"`),`#EXT-X-SESSION-DATA:${e.join(",")}`}function oV(t,e){let n=e?"#EXT-X-SESSION-KEY":"#EXT-X-KEY",l=[`METHOD=${t.method}`];return t.uri&&l.push(`URI="${t.uri}"`),t.iv&&(t.iv.length!==16&&Be("IV must be a 128-bit unsigned integer"),l.push(`IV=${sV(t.iv)}`)),t.format&&l.push(`KEYFORMAT="${t.format}"`),t.formatVersion&&l.push(`KEYFORMATVERSIONS="${t.formatVersion}"`),`${n}:${l.join(",")}`}function _Ee(t,e){let n=e.isIFrameOnly?"#EXT-X-I-FRAME-STREAM-INF":"#EXT-X-STREAM-INF",l=[`BANDWIDTH=${e.bandwidth}`];if(e.averageBandwidth&&l.push(`AVERAGE-BANDWIDTH=${e.averageBandwidth}`),e.isIFrameOnly&&l.push(`URI="${e.uri}"`),e.codecs&&l.push(`CODECS="${e.codecs}"`),e.resolution&&l.push(`RESOLUTION=${e.resolution.width}x${e.resolution.height}`),e.frameRate&&l.push(`FRAME-RATE=${Ob(e.frameRate,3)}`),e.hdcpLevel&&l.push(`HDCP-LEVEL=${e.hdcpLevel}`),e.audio.length>0){l.push(`AUDIO="${e.audio[0].groupId}"`);for(let r of e.audio)t.push(Op(r))}if(e.video.length>0){l.push(`VIDEO="${e.video[0].groupId}"`);for(let r of e.video)t.push(Op(r))}if(e.subtitles.length>0){l.push(`SUBTITLES="${e.subtitles[0].groupId}"`);for(let r of e.subtitles)t.push(Op(r))}if(iEe().allowClosedCaptionsNone&&e.closedCaptions.length===0)l.push("CLOSED-CAPTIONS=NONE");else if(e.closedCaptions.length>0){l.push(`CLOSED-CAPTIONS="${e.closedCaptions[0].groupId}"`);for(let r of e.closedCaptions)t.push(Op(r))}if(e.score&&l.push(`SCORE=${e.score}`),e.allowedCpc){let r=[];for(let{format:i,cpcList:s}of e.allowedCpc)r.push(`${i}:${s.join("/")}`);l.push(`ALLOWED-CPC="${r.join(",")}"`)}e.videoRange&&l.push(`VIDEO-RANGE=${e.videoRange}`),e.stableVariantId&&l.push(`STABLE-VARIANT-ID="${e.stableVariantId}"`),e.programId&&l.push(`PROGRAM-ID=${e.programId}`),t.push(`${n}:${l.join(",")}`),e.isIFrameOnly||t.push(`${e.uri}`)}function Op(t){let e=[`TYPE=${t.type}`,`GROUP-ID="${t.groupId}"`,`NAME="${t.name}"`];return t.isDefault!==void 0&&e.push("DEFAULT="+(t.isDefault?"YES":"NO")),t.autoselect!==void 0&&e.push("AUTOSELECT="+(t.autoselect?"YES":"NO")),t.forced!==void 0&&e.push("FORCED="+(t.forced?"YES":"NO")),t.language&&e.push(`LANGUAGE="${t.language}"`),t.assocLanguage&&e.push(`ASSOC-LANGUAGE="${t.assocLanguage}"`),t.instreamId&&e.push(`INSTREAM-ID="${t.instreamId}"`),t.characteristics&&e.push(`CHARACTERISTICS="${t.characteristics}"`),t.channels&&e.push(`CHANNELS="${t.channels}"`),t.uri&&e.push(`URI="${t.uri}"`),`#EXT-X-MEDIA:${e.join(",")}`}function EEe(t,e,n,l,r=1,i=null){let s=!1,a="";if(e.discontinuity&&t.push("#EXT-X-DISCONTINUITY"),e.key){let o=oV(e.key);o!==n&&(t.push(o),n=o)}if(e.map){let o=function(c){let f=[`URI="${c.uri}"`];return c.byterange&&f.push(`BYTERANGE="${_b(c.byterange)}"`),`#EXT-X-MAP:${f.join(",")}`}(e.map);o!==l&&(t.push(o),l=o)}if(e.programDateTime&&t.push(`#EXT-X-PROGRAM-DATE-TIME:${vb(e.programDateTime)}`),e.dateRange&&t.push(function(o){let c=[`ID="${o.id}"`];o.start&&c.push(`START-DATE="${vb(o.start)}"`),o.end&&c.push(`END-DATE="${vb(o.end)}"`),o.duration&&c.push(`DURATION=${o.duration}`),o.plannedDuration&&c.push(`PLANNED-DURATION=${o.plannedDuration}`),o.classId&&c.push(`CLASS="${o.classId}"`),o.endOnNext&&c.push("END-ON-NEXT=YES");for(let f of Object.keys(o.attributes))f.startsWith("X-")?typeof o.attributes[f]=="number"?c.push(`${f}=${o.attributes[f]}`):c.push(`${f}="${o.attributes[f]}"`):f.startsWith("SCTE35-")&&c.push(`${f}=${sV(o.attributes[f])}`);return`#EXT-X-DATERANGE:${c.join(",")}`}(e.dateRange)),e.markers.length>0&&(a=function(o,c){let f="";for(let m of c)if(m.type==="OUT")f="OUT",o.push(`#EXT-X-CUE-OUT:DURATION=${m.duration}`);else if(m.type==="IN")f="IN",o.push("#EXT-X-CUE-IN");else if(m.type==="RAW"){let d=m.value?`:${m.value}`:"";o.push(`#${m.tagName}${d}`)}return f}(t,e.markers)),e.parts.length>0&&(s=function(o,c){let f=!1;for(let m of c)if(m.hint){let d=[];if(d.push("TYPE=PART",`URI="${m.uri}"`),m.byterange){let{offset:y,length:_}=m.byterange;d.push(`BYTERANGE-START=${y}`),_&&d.push(`BYTERANGE-LENGTH=${_}`)}o.push(`#EXT-X-PRELOAD-HINT:${d.join(",")}`),f=!0}else{let d=[];d.push(
Line truncated
`)}var pV="hls_cache",Bp=[],io={},E6={},ro={},$p="";function bEe(t,e){if(Bp.push(t),io[t]=e,Bp.length>5){let n=Bp.shift();wEe(n)}}function wEe(t){delete io[t],delete Bp[t],new JSFile(pV+"/"+t).delete()}function SEe(t,e){if(e.variants)for(let n of e.variants)n.uri.startsWith("http")||(n.uri=Nb(t,n.uri));if(e.segments)for(let n of e.segments)n.uri.startsWith("http")||(n.uri=Nb(t,n.uri)),n.key&&n.key.uri&&!n.key.uri.startsWith("http")&&(n.key.uri=Nb(t,n.key.uri));return e}async function fV(t,e){let n=md5X(t);if(io[n])return io[n];let l={},r=t;for(;l=await req(r,{headers:e,redirect:0}),l.headers.location;)r=l.headers.location;if(l.code==200){var i=l.content;let s=SEe(r,uV(i));return bEe(n,{code:l.code,plist:s,key:n,headers:l.headers}),io[n]}return{}}async function dV(t,e,n){if(!io[t])return{};let r=io[t].plist.segments,i=!ro[t];if(i){ro[t]={};for(let c of r){let f=md5X(c.uri+c.mediaSequenceNumber.toString());ro[t][f]={file:pV+"/"+t+"/"+f,uri:c.uri,key:f,index:c.mediaSequenceNumber,order:c.mediaSequenceNumber,state:-1,read:!1}}}for(let c in ro[t]){let f=ro[t][c];f.index>=e?f.order=f.index-e:f.order=r.length-e+f.index}i&&TEe(t,5,n);let s=r[e],a=md5X(s.uri+s.mediaSequenceNumber.toString()),u=ro[t][a];if(u.state==1||u.state==-1){let c=new JSFile(u.file);if(await c.exist())return u.state=1,{buffer:3,code:200,headers:{connection:"close","content-type":"video/mp2t"},content:c};u.state=-1}if(u.state==-1&&hV(t,u,n),u.state==0){var o=new JSProxyStream;o.head(200,{connection:"close","content-type":"video/mp2t"});let c=0;return u.read=!0,new Promise(async function(f,m){let d=new JSFile(u.file+".dl");await d.open("r"),async function y(){let _=await d.size();if(_>c){var S=await d.read(_-c,c);await o.write(S),c=_}if(u.state==1||u.state<0){o.done(),await d.close(),await d.delete(),u.read=!1,f();return}setTimeout(y,5)}()}),{buffer:3,content:o}}}async function hV(t,e,n){if(e.state>=0||!E6[t])return;if(e.state=0,await new JSFile(e.file).exist()){e.state=1;return}let l=new JSFile(e.file+".dl");await l.open("w");let r=await req(e.uri,{buffer:3,headers:n,stream:l,timeout:[5e3,1e4]});if(r.error||r.code>=300){await l.close(),e.read||await l.delete(),e.state=-1;return}await l.close(),e.read?await l.copy(e.file):await l.move(e.file),e.state=1}async function TEe(t,e,n){$p&&$p!=t&&delete E6[$p],$p=t,E6[t]=!0;for(let l=0;l<e&&E6[t];l++)new Promise(function(r,i){(async function s(){if(!E6[t]){r();return}let a=M.pickBy(ro[t],function(o){return o.state==-1}),u=M.minBy(Object.values(a),function(o){return o.order});if(!u){r();return}await hV(t,u,n),setTimeout(s,5)})()})}function Nb(t,e){var n=t.split("/"),l=e.split("/");n.pop();for(var r=0;r<l.length;r++)l[r]!="."&&(l[r]==".."?n.pop():n.push(l[r]));return n.join("/")}function mV(t){let e=[];return Array.from(t.danmuku).forEach(n=>{let l=Number(n[0]),r=n[4];e.push(`<dp="${l},1,25,16777215,1659282294,0,8b53b65c,1108899274487246080"><![CDATA[${r}]]></d>`)}),String.raw`<?xmlversion="1.0"encoding="UTF-8"?><i><chatserver>chat.bilibili.com</chatserver><chatid>52175602</chatid><mission>0</mission><maxlimit>1000</maxlimit><state>0</state><real_name>0</real_name><source>k-v</source>`+e.join("")+"</i>"}varHp=class{constructor(){this.siteUrl="https://search.youku.com",this.reconnectTimes=0,this.maxReconnectTimes=5,this.jadeLog=newnr(this.getAppName(),"DEBUG")}getAppName(){return"\u5F39\u5E55"}getHeader(){return{"User-Agent":Vl,Referer:this.siteUrl+"/"}}asyncreconnnect(e,n,l,r,i,s){returnawaitthis.jadeLog.error("\u8BF7\u6C42\u5931\u8D25,\u8BF7\u68C0\u67E5url:"+e+",\u4E24\u79D2\u540E\u91CD\u8BD5"),Rr(2),this.reconnectTimes<this.maxReconnectTimes?(this.reconnectTimes=this.reconnectTimes+1,awaitthis.fetch(e,n,l,r,i,s)):(awaitthis.jadeLog.error("\u8BF7\u6C42\u5931\u8D25,\u91CD\u8FDE\u5931\u8D25"),null)}asyncgetResponse(e,n,l,r,i,s,a){returna.headers.location!==void0?r?(awaitthis.jadeLog.debug(`\u8FD4\u56DE\u91CD\u5B9A\u5411\u8FDE\u63A5:${a.headers.location}`),a.headers.location):this.fetch(a.headers.location,n,l,r,i,s):a.content.length>0?(this.reconnectTimes=0,i?{cookie:a.headers["set-cookie"],content:a.content}:a.content):s===1?(this.reconnectTimes=0,a.content):(awaitthis.jadeLog.error(`\u8BF7\u6C42\u5931\u8D25,\u8BF7\u6C42url\u4E3A:${e},\u56DE\u590D\u5185\u5BB9\u4E3A:${JSON.stringify(a)}`),awaitthis.reconnnect(e,n,l,r,i,s))}asyncfetch(e,n,l,r=!1,i=!1,s=0){leta=xp(n),u=e;M.isEmpty(a)||(u=e+"?"+a);leto=newp6(u),c;returnc=awaitreq(o.toString(),{method:"get",headers:l,buffer:s,data:null}),c.code===201||c.code===200||c.code===302||c.code===301||i?awaitthis.getResponse(e,n,l,r,i,s,c):(awaitthis.jadeLog.error(`\u8BF7\u6C42\u5931\u8D25,\u5931\u8D25\u539F\u56E0\u4E3A:\u72B6\u6001\u7801\u51FA\u9519,\u8BF7\u6C42url\u4E3A:${o},\u56DE\u590D\u5185\u5BB9\u4E3A:${JSON.stringify(c)}`),awaitthis.reconnnect(e,n,l,r,i,s))}asyncgetHtml(e=this.siteUrl,n=this.getHeader()){letl=awaitthis.fetch(e,null,n);if(M.isEmpty(l))awaitthis.jadeLog.error("html\u83B7\u53D6\u5931\u8D25",!0);elsereturnet(l)}asyncpaLine truncated
`).forEach(function(s){r=s.indexOf(":"),n=s.substring(0,r).trim().toLowerCase(),l=s.substring(r+1).trim(),!(!n||e[n]&&yTe[n])&&(n==="set-cookie"?e[n]?e[n].push(l):e[n]=[l]:e[n]=e[n]?e[n]+", "+l:l)}),e};var PJ=Symbol("internals");function F6(t){return t&&String(t).trim().toLowerCase()}function Ef(t){return t===!1||t==null?t:Z.isArray(t)?t.map(Ef):String(t)}function gTe(t){let e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,l;for(;l=n.exec(t);)e[l[1]]=l[2];return e}var vTe=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());functionxw(t,e,n,l,r){if(Z.isFunction(l))returnl.call(this,e,n);if(r&&(e=n),!!Z.isString(e)){if(Z.isString(l))returne.indexOf(l)!==-1;if(Z.isRegExp(l))returnl.test(e)}}function_Te(t){returnt.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,l)=>n.toUpperCase()+l)}functionETe(t,e){letn=Z.toCamelCase(" "+e);["get","set","has"].forEach(l=>{Object.defineProperty(t,l+n,{value:function(r,i,s){returnthis[l].call(this,e,r,i,s)},configurable:!0})})}varD4=class{constructor(e){e&&this.set(e)}set(e,n,l){letr=this;functioni(a,u,o){letc=F6(u);if(!c)thrownewError("header name must be a non-empty string");letf=Z.findKey(r,c);(!f||r[f]===void0||o===!0||o===void0&&r[f]!==!1)&&(r[f||u]=Ef(a))}lets=(a,u)=>Z.forEach(a,(o,c)=>i(o,c,u));returnZ.isPlainObject(e)||einstanceofthis.constructor?s(e,n):Z.isString(e)&&(e=e.trim())&&!vTe(e)?s(DJ(e),n):e!=null&&i(n,e,l),this}get(e,n){if(e=F6(e),e){letl=Z.findKey(this,e);if(l){letr=this[l];if(!n)returnr;if(n===!0)returngTe(r);if(Z.isFunction(n))returnn.call(this,r,l);if(Z.isRegExp(n))returnn.exec(r);thrownewTypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=F6(e),e){letl=Z.findKey(this,e);return!!(l&&this[l]!==void0&&(!n||xw(this,this[l],l,n)))}return!1}delete(e,n){letl=this,r=!1;functioni(s){if(s=F6(s),s){leta=Z.findKey(l,s);a&&(!n||xw(l,l[a],a,n))&&(deletel[a],r=!0)}}returnZ.isArray(e)?e.forEach(i):i(e),r}clear(e){letn=Object.keys(this),l=n.length,r=!1;for(;l--;){leti=n[l];(!e||xw(this,this[i],i,e,!0))&&(deletethis[i],r=!0)}returnr}normalize(e){letn=this,l={};returnZ.forEach(this,(r,i)=>{lets=Z.findKey(l,i);if(s){n[s]=Ef(r),deleten[i];return}leta=e?_Te(i):String(i).trim();a!==i&&deleten[i],n[a]=Ef(r),l[a]=!0}),this}concat(...e){returnthis.constructor.concat(this,...e)}toJSON(e){letn=Object.create(null);returnZ.forEach(this,(l,r)=>{l!=null&&l!==!1&&(n[r]=e&&Z.isArray(l)?l.join(", "):l)}),n}[Symbol.iterator](){returnObject.entries(this.toJSON())[Symbol.iterator]()}toString(){returnObject.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
`,HTe=z6.encode(aa),qTe=2,qw=class{constructor(e,n){let{escapeName:l}=this.constructor,r=Z.isString(n),i=`Content-Disposition:form-data;name="${l(e)}"${!r&&n.name?`; filename="${l(n.name)}"`:""}${aa}`;r?n=z6.encode(String(n).replace(/\r?\n|\r\n?/g,aa)):i+=`Content-Type:${n.type||"application/octet-stream"}${aa}`,this.headers=z6.encode(i+aa),this.contentLength=r?n.byteLength:n.size,this.size=this.headers.byteLength+this.contentLength+qTe,this.name=e,this.value=n}async*encode(){yield this.headers;let{value:e}=this;Z.isTypedArray(e)?yield e:yield*Sf(e),yield HTe}static escapeName(e){return String(e).replace(/[\r\n"]/g,n=>({"\r":"%0D","\n":"%0A",'"':"%22"})[n])}},VTe=(t,e,n)=>{let{tag:l="form-data-boundary",size:r=25,boundary:i=l+"-"+Z.generateString(r,BTe)}=n||{};if(!Z.isFormData(t))throw TypeError("FormData instance required");if(i.length<1||i.length>70)throw Error("boundary must be 10-70 characters long");let s=z6.encode("--"+i+aa),a=z6.encode("--"+i+"--"+aa+aa),u=a.byteLength,o=Array.from(t.entries()).map(([f,m])=>{let d=new qw(f,m);return u+=d.size,d});u+=s.byteLength*o.length,u=Z.toFiniteNumber(u);let c={"Content-Type":`multipart/form-data;boundary=${i}`};return Number.isFinite(u)&&(c["Content-Length"]=u),e&&e(c),XJ.Readable.from(async function*(){for(let f of o)yield s,yield*f.encode();yield a}())},WJ=VTe;var YJ=Wl(require("stream"),1),Vw=class extends YJ.default.Transform{__transform(e,n,l){this.push(e),l()}_transform(e,n,l){if(e.length!==0&&(this._transform=this.__transform,e[0]!==120)){let r=Buffer.alloc(2);r[0]=120,r[1]=156,this.push(r,n)}this.__transform(e,n,l)}},QJ=Vw;var zTe=(t,e)=>Z.isAsyncFn(t)?function(...n){let l=n.pop();t.apply(this,n).then(r=>{try{e?l(null,...e(r)):l(null,r)}catch(i){l(i)}},l)}:t,ZJ=zTe;var eK={flush:is.default.constants.Z_SYNC_FLUSH,finishFlush:is.default.constants.Z_SYNC_FLUSH},GTe={flush:is.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:is.default.constants.BROTLI_OPERATION_FLUSH},tK=Z.isFunction(is.default.createBrotliDecompress),{http:JTe,https:KTe}=uK.default,XTe=/https:?/,nK=n2.protocols.map(t=>t+":");function WTe(t,e){t.beforeRedirects.proxy&&t.beforeRedirects.proxy(t),t.beforeRedirects.config&&t.beforeRedirects.config(t,e)}function cK(t,e,n){let l=e;if(!l&&l!==!1){let r=(0,rK.getProxyForUrl)(n);r&&(l=new URL(r))}if(l){if(l.username&&(l.auth=(l.username||"")+":"+(l.password||"")),l.auth){(l.auth.username||l.auth.password)&&(l.auth=(l.auth.username||"")+":"+(l.auth.password||""));let i=Buffer.from(l.auth,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+i}t.headers.host=t.hostname+(t.port?":"+t.port:"");let r=l.hostname||l.host;t.hostname=r,t.host=r,t.port=l.port,t.path=n,l.protocol&&(t.protocol=l.protocol.includes(":")?l.protocol:`${l.protocol}:`)}t.beforeRedirects.proxy=function(i){cK(i,e,i.href)}}var YTe=typeof process<"u"&&Z.kindOf(process)==="process",QTe=t=>new Promise((e,n)=>{let l,r,i=(u,o)=>{r||(r=!0,l&&l(u,o))},s=u=>{i(u),e(u)},a=u=>{i(u,!0),n(u)};t(s,a,u=>l=u).catch(a)}),ZTe=({address:t,family:e})=>{if(!Z.isString(t))throw TypeError("address must be a string");return{address:t,family:e||(t.indexOf(".")<0?6:4)}},lK=(t,e)=>ZTe(Z.isObject(t)?t:{address:t,family:e}),pK=YTe&&function(e){return QTe(async function(l,r,i){let{data:s,lookup:a,family:u}=e,{responseType:o,responseEncoding:c}=e,f=e.method.toUpperCase(),m,d=!1,y;if(a){let ee=ZJ(a,me=>Z.isArray(me)?me:[me]);a=(me,P,G)=>{ee(me,P,(q,V,Yn)=>{if(q)return G(q);let Tt=Z.isArray(V)?V.map(We=>lK(We)):[lK(V,Yn)];P.all?G(q,Tt):G(q,Tt[0].address,Tt[0].family)})}}let _=new oK.default,S=()=>{e.cancelToken&&e.cancelToken.unsubscribe(w),e.signal&&e.signal.removeEventListener("abort",w),_.removeAllListeners()};i((ee,me)=>{m=!0,me&&(d=!0,S())});function w(ee){_.emit("abort",!ee||ee.type?new Dr(null,e,y):ee)}_.once("abort",r),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(w),e.signal&&(e.signal.aborted?w():e.signal.addEventListener("abort",w)));let E=mo(e.baseURL,e.url),g=new URL(E,"http://localhost"),v=g.protocol||nK[0];if(v==="data:"){let ee;if(f!=="GET")return sa(l,r,{status:405,statusText:"method not allowed",headers:{},config:e});try{ee=$w(e.url,o==="blob",{Blob:e.env&&e.env.Blob})}catch(me){throw qe.from(me,qe.ERR_BAD_REQUEST,e)}return o==="text"?(ee=ee.toString(c),(!c||c==="utf8")&&(ee=Z.stripBOM(ee))):o==="stream"&&(ee=vo.default.Readable.from(ee)),sa(l,r,{data:ee,status:200,statusText:"OK",headers:new l2,config:e})}if(nK.indexOf(v)===-1)return r(new qe("Unsupported protocol "+v,qe.ERR_BAD_REQUEST,e));let x=l2.from(e.headers).normalize();x.set("User-Agent","axios/"+go,!1);let O=e.onDownloadProgress,N=e.onUploadProgress,I=e.maxRate,U,F;if(Z.isSpecCompliantForm(s)){let ee=x.getContentType(/boundary=([-_\w\d]{10,70})/i);s=WJ(s,me=>{x.set(me)},{tag:`axios-${go}-boundary`,boundary:ee&&ee[1]||void 0})}else if(Z.isFormData(s)&&Z.isFunction(s.getHeaders)){if(x.set(s.getHeaders()),!x.hasContentLength())try{let ee=await aK.default.promisify(s.getLength).call(s);Number.isFini
Line truncated
`+i.map(yK).join(`
`):" "+yK(i[0]):"as no adapter specified";throw new qe("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return l},adapters:zw};function Gw(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Dr(null,t)}function xf(t){return Gw(t),t.headers=l2.from(t.headers),t.data=j6.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Tf.getAdapter(t.adapter||k4.adapter)(t).then(function(l){return Gw(t),l.data=j6.call(t,t.transformResponse,l),l.headers=l2.from(l.headers),l},function(l){return U6(l)||(Gw(t),l&&l.response&&(l.response.data=j6.call(t,t.transformResponse,l.response),l.response.headers=l2.from(l.response.headers))),Promise.reject(l)})}var gK=t=>t instanceof l2?t.toJSON():t;function ss(t,e){e=e||{};let n={};function l(o,c,f){return Z.isPlainObject(o)&&Z.isPlainObject(c)?Z.merge.call({caseless:f},o,c):Z.isPlainObject(c)?Z.merge({},c):Z.isArray(c)?c.slice():c}function r(o,c,f){if(Z.isUndefined(c)){if(!Z.isUndefined(o))return l(void 0,o,f)}else return l(o,c,f)}function i(o,c){if(!Z.isUndefined(c))return l(void 0,c)}function s(o,c){if(Z.isUndefined(c)){if(!Z.isUndefined(o))return l(void 0,o)}else return l(void 0,c)}function a(o,c,f){if(f in e)return l(o,c);if(f in t)return l(void 0,o)}let u={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(o,c)=>r(gK(o),gK(c),!0)};return Z.forEach(Object.keys(Object.assign({},t,e)),function(c){let f=u[c]||r,m=f(t[c],e[c],c);Z.isUndefined(m)&&f!==a||(n[c]=m)}),n}var Jw={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Jw[t]=function(l){return typeof l===t||"a"+(e<1?"n ":" ")+t}});var vK={};Jw.transitional=function(e,n,l){function r(i,s){return"[Axios v"+go+"] Transitional option '"+i+"'"+s+(l?". "+l:"")}return(i,s,a)=>{if(e===!1)throw new qe(r(s," has been removed"+(n?" in "+n:"")),qe.ERR_DEPRECATED);return n&&!vK[s]&&(vK[s]=!0,console.warn(r(s," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(i,s,a):!0}};function nxe(t,e,n){if(typeof t!="object")throw new qe("options must be an object",qe.ERR_BAD_OPTION_VALUE);let l=Object.keys(t),r=l.length;for(;r-- >0;){let i=l[r],s=e[i];if(s){let a=t[i],u=a===void 0||s(a,i,t);if(u!==!0)throw new qe("option "+i+" must be "+u,qe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new qe("Unknown option "+i,qe.ERR_BAD_OPTION)}}var Af={assertOptions:nxe,validators:Jw};var ua=Af.validators,L4=class{constructor(e){this.defaults=e,this.interceptors={request:new bw,response:new bw}}async request(e,n){try{return await this._request(e,n)}catch(l){if(l instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;let i=r.stack?r.stack.replace(/^.+\n/,""):"";l.stack?i&&!String(l.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(l.stack+=`
`),r=[];for(let m of l)M.isEmpty(m.replaceAll(" ","").replaceAll("/",""))||r.push(m.replaceAll(" ","").replaceAll("/",""));n.type_name=r.slice(0,2).join("*");let i=e('[class="video-info-items"]');n.vod_director=e(i[0]).find("a")[0].children[0].data;let s=e(i[1]).find("a"),a=[];for(let m of s)a.push(m.children[0].data);n.vod_actor=a.join(" * "),n.vod_year=r[2],n.vod_remarks=e(e(i[3]).find(".video-info-item")).text(),n.vod_content=e(e(i[5]).find(".video-info-item")).text(),n.vod_area=r[3],n.vod_content=n.vod_content.replace("[\u6536\u8D77\u90E8\u5206]","").replace("[\u5C55\u5F00\u5168\u90E8]","").replaceAll(" ","").replaceAll(`
`,"");let u=e(e('[class="module-tab-content"]')[0]).find("span"),o=e('[class="module-list module-player-list tab-list sort-list "]'),c=[];for(let m of u)c.push(e(m).text());let f=[];for(let m of o){let d=e(e(m).find('[class="sort-item"]')).find("a"),y=[];for(let _ of d){let S=e(_).text(),w=_.attribs.href,E=S+"$"+w;y.push(E)}f.push(y.join("#"))}return n.vod_play_from=c.join("$$$"),n.vod_play_url=M.values(f).join("$$$"),n}async parseVodShortListFromDocBySearch(e){let n=e(".module-search-item"),l=[];for(let r of n){let i=new Ne;i.vod_id=e(r).find(".video-serial")[0].attribs.href,i.vod_name=e(r).find(".video-serial")[0].attribs.title,i.vod_pic=e(r).find(".module-item-pic > img")[0].attribs["data-src"],i.vod_remarks=e(e(r).find(".video-serial")[0]).text(),l.push(i)}return l}async setClasses(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(!M.isEmpty(e)){let n=et(e),l=n(n('[class="nav-menu-items"]')[0]).find("li");for(let r of l.slice(0,6)){let i=n(n(r).find("span")).text();if(i!=="\u9996\u9875"){let a={type_id:n(r).find("a")[0].attribs.href.split("/").slice(-1)[0].split(".")[0],type_name:i};this.classes.push(a)}}}}async getFilter(e){let n=e('[class="scroll-content"]').slice(1),l=[];for(let r=0;r<n.length;r++){let i={key:(r+1).toString(),name:"",value:[]};if(r<n.length-1){i.name=e(e(n[r]).find("a")[0]).text(),i.value.push({n:"\u5168\u90E8",v:"0"});for(let s of e(n[r]).find("a").slice(1))e(e(n[r]).find("a")[0]).text()==="\u5168\u90E8\u7C7B\u578B"?i.value.push({n:e(s).text(),v:s.attribs.href.split("/").slice(-1)[0].split(".")[0]}):i.value.push({n:e(s).text(),v:e(s).text()});l.push(i)}else i.name=e(e(n[r]).find("a")[0]).text(),i.value=[{n:"\u5168\u90E8",v:"0"},{n:e(e(n[r]).find("a")[1]).text(),v:"hits"},{n:e(e(n[r]).find("a")[2]).text(),v:"score"}],l.push(i)}return l}async setFilterObj(){for(let e of this.classes){let n=e.type_id;if(n!=="/"&&n!=="\u6700\u8FD1\u66F4\u65B0"){let l=this.siteUrl+`/vodshow/id/${n}.html`,r=await this.fetch(l,null,this.getHeader());if(r!=null){let i=et(r);this.filterObj[n]=await this.getFilter(i)}}}}async setHomeVod(){let e=await this.fetch(this.siteUrl,null,this.getHeader());if(!M.isEmpty(e)){let n=et(e);this.homeVodList=await this.parseVodShortListFromDoc(n)}}getExtend(e,n,l=""){return e!==void 0&&e!=="0"?l+e:n}async getCateUrl(e,n,l){e=this.getExtend(l[1],e);let r=this.getExtend(l[2],"","/area/"),i=this.getExtend(l[3],"","/lang/"),s=this.getExtend(l[4],"","/year/"),a=this.getExtend(l[5],"","/letter/"),u=this.getExtend(l[6],"","/by/");return this.siteUrl+`/vodshow${u}${r}/id/${e}${i}${a}${s}/page/${n}.html`}async setCategory(e,n,l,r){let i=await this.getCateUrl(e,n,r),s=await this.fetch(i,null,this.getHeader());if(!M.isEmpty(s)){let a=et(s);this.vodList=await this.parseVodShortListFromDoc(a);let u=Oe(/\$\("\.mac_total"\)\.text\('(\d+)'\)/,s);this.limit=72,u.length>0&&(this.total=parseInt(u)),this.total<=this.limit?this.count=1:this.count=Math.ceil(this.total/this.limit)}}async setDetail(e){let n=this.siteUrl+e,l=await this.fetch(n,null,this.getHeader());if(!M.isEmpty(l)){let r=et(l);this.vodDetail=await this.parseVodDetailFromDoc(r)}}async setPlay(e,n,l){let r=await this.fetch(this.siteUrl+n,null,this.getHeader());if(!M.isEmpty(r)){let i=Oe(/<script type="text\/javascript">var player_aaaa=(.*?)<\/script>/,r),s=JSON.parse(i);this.playUrl=s.url}}async setSearch(e,n){let l=this.siteUrl+`/vodsearch/wd/${e}.html`,r=await this.fetch(l,null,this.getHeader());if(!M.isEmpty(r)){let i=et(r);this.vodList=await this.parseVodShortListFromDocBySearch(i)}}},An=new wS;var SS=class extends De{constructor(){super()}getName(){return An.getName()}getAppName(){return An.getAppName()}getJSName(){return An.getJSName()}async init(e,n){dataBase=e.server.db,this.getAppName().indexOf("\u963F\u91CC")>-1||this.getAppName().indexOf("\u5382\u957F")>-1||this.getAppName()==="push_agent"?await An.initCloud(e.server.config):this.getAppName()==="\u54D4\u54E9\u54D4\u54E9"&&await An.initCookie(e.server.config.biliCookie),await An.spiderInit(e),An.cfgObj.code=0,An.catOpenStatus=!0,An.classes.push({type_name:"\u6700\u8FD1\u66F4\u65B0",type_id:"\u6700\u8FD1\u66F4\u65B0"}),await super.init(e,n)}async setClasses(){await An.setClasses(),this.classes=An.classes}async setFilterObj(){await An.setFilterObj(),this.filterObj=An.filterObj}async setHomeVod(){await An.setHomeVod(),this.homeVodList=An.homeVodList}async setCategory(e,n,l,r){await An.setCategory(e,n,l,r),this.vodList=An.vodList}async setDetail(e){await An.setDetail(e),this.vodDetail=An.vodDetail}async setPlay(e,n,l){await An.setPlay(e,n,l),this.playUrl=An.playUrl,this.result=An.result}async setSearch(e,n,l){await An.setSearch(e,n,l),this.vodList=An.vodList,this.result=An.result}async setProxy(e,n){return await An.proxy(e,n)}},Ta=new SS;async function tW(t,e){return await Ta.init(t,e)}async function nW(t,e){return await Ta.home(t,e)}async function Bxe(t,e){return await Ta.homeVod(t,e)}async function lW(t,e){return await Ta.category(t,e)}async function rW(t,e){r
Line truncated
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.