@fmdevui/fm-dev
Version:
Page level components developed based on Element Plus.
8 lines • 1.42 MB
JavaScript
/*! fm-dev v1.0.85 */(function($,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("crypto"),require("url"),require("http"),require("https"),require("util"),require("stream"),require("assert"),require("zlib"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","crypto","url","http","https","util","stream","assert","zlib","element-plus"],r):($=typeof globalThis<"u"?globalThis:$||self,r($.FmPlus={},$.Vue,$.crypto,$.require$$0,$.require$$1,$.require$$2,$.util,$.stream,$.require$$4,$.zlib,$.ElementPlus))})(this,function($,r,Ys,Z0,W5,K5,Y5,Ee,Js,xe,Su){"use strict";const Xs={class:"fm-transfer-panel"},Zs={class:"fm-transfer-panel__header"},Qs={class:"fm-transfer-panel__body"},u2={class:"fm-transfer-buttons__item"},e2={class:"fm-transfer-buttons__item"},t2={class:"fm-transfer-buttons__item"},r2={class:"fm-transfer-buttons__item"},n2={class:"fm-transfer-panel"},a2={class:"fm-transfer-panel__header"},o2={class:"fm-transfer-panel__body"};var l2=r.defineComponent({name:"FmTransfer",__name:"index",props:{leftTitle:String,rightTitle:String,options:{type:Object,default:()=>({value:"id",label:"name",disabled:"disabled"})},leftData:{type:Array,default:()=>[]},rightData:{type:Array,default:()=>[]}},emits:["left","right","allLeft","allRight","update:leftData","update:rightData"],setup(u,{emit:e}){const t=u,n=e,a=r.reactive({leftAllChecked:!1,leftKeyword:"",leftChecked:[],rightAllChecked:!1,rightKeyword:"",rightChecked:[]}),o=r.computed(()=>{let m=t.leftData.filter(f=>f[t.options.label].toLowerCase().includes(a.leftKeyword.toLowerCase()));if(a.leftChecked.length>0)for(let f=a.leftChecked.length-1;f>=0;f--)m.findIndex(D=>D[t.options.value]==a.leftChecked[f])==-1&&a.leftChecked.splice(f,1);return m}),l=m=>{a.leftChecked=m?o.value.filter(f=>f[t.options.disabled]==!1).map(f=>f[t.options.value]):[]},i=r.computed(()=>{const m=a.leftChecked.length;return m>0&&m<o.value.filter(g=>g[t.options.disabled]==!1).length});r.watch(()=>a.leftChecked,m=>{a.leftAllChecked=m.length>0&&m.length==o.value.filter(f=>f[t.options.disabled]==!1).length});const c=r.computed(()=>{let m=t.rightData.filter(f=>f[t.options.label].toLowerCase().includes(a.rightKeyword.toLowerCase()));if(a.rightChecked.length>0)for(let f=a.rightChecked.length-1;f>=0;f--)m.findIndex(D=>D[t.options.value]==a.rightChecked[f])==-1&&a.rightChecked.splice(f,1);return m}),s=m=>{a.rightChecked=m?c.value.filter(f=>f[t.options.disabled]==!1).map(f=>f[t.options.value]):[]},E=r.computed(()=>{const m=a.rightChecked.length;return m>0&&m<c.value.filter(g=>g[t.options.disabled]==!1).length});r.watch(()=>a.rightChecked,m=>{a.rightAllChecked=m.length>0&&m.length==c.value.filter(f=>f[t.options.disabled]==!1).length});const p=m=>{if(m[t.options.value]&&m[t.options.disabled]===!1){let f=t.leftData.filter(D=>m[t.options.value]==D[t.options.value]),g=t.leftData.filter(D=>m[t.options.value]!=D[t.options.value]);n("update:leftData",g),n("update:rightData",t.rightData.concat(f)),n("right"),a.leftChecked=a.leftChecked.filter(D=>m[t.options.value]!=D)}},C=()=>{if(a.leftChecked?.length>0){let m=t.leftData.filter(g=>a.leftChecked.some(D=>D==g[t.options.value])),f=t.leftData.filter(g=>a.leftChecked.every(D=>D!=g[t.options.value]));n("update:leftData",f),n("update:rightData",t.rightData.concat(m)),n("right"),a.leftChecked=[]}},B=()=>{if(o.value?.length>0){let m=o.value.filter(D=>D[t.options.disabled]==!1),f=t.leftData.filter(D=>m.some(A=>A[t.options.value]==D[t.options.value])),g=t.leftData.filter(D=>m.every(A=>A[t.options.value]!=D[t.options.value]));n("update:leftData",g),n("update:rightData",t.rightData.concat(f)),n("allRight"),a.leftChecked=[]}},d=m=>{if(m[t.options.value]&&m[t.options.disabled]===!1){let f=t.rightData.filter(D=>m[t.options.value]==D[t.options.value]),g=t.rightData.filter(D=>m[t.options.value]!=D[t.options.value]);n("update:leftData",t.leftData.concat(f)),n("update:rightData",g),n("left"),a.rightChecked=a.rightChecked.filter(D=>m[t.options.value]!=D)}},h=()=>{if(a.rightChecked?.length>0){let m=t.rightData.filter(g=>a.rightChecked.some(D=>D==g[t.options.value])),f=t.rightData.filter(g=>a.rightChecked.every(D=>D!=g[t.options.value]));n("update:leftData",t.leftData.concat(m)),n("update:rightData",f),n("left"),a.rightChecked=[]}},F=()=>{if(c.value?.length>0){let m=c.value.filter(D=>D[t.options.disabled]==!1),f=t.rightData.filter(D=>m.some(A=>A[t.options.value]==D[t.options.value])),g=t.rightData.filter(D=>m.every(A=>A[t.options.value]!=D[t.options.value]));n("update:leftData",t.leftData.concat(f)),n("update:rightData",g),n("allLeft"),a.rightChecked=[]}};return(m,f)=>{const g=r.resolveComponent("el-checkbox"),D=r.resolveComponent("el-input"),A=r.resolveComponent("el-checkbox-group"),x=r.resolveComponent("el-col"),_=r.resolveComponent("el-button"),y=r.resolveComponent("el-row");return r.openBlock(),r.createBlock(y,{gutter:10},{default:r.withCtx(()=>[r.createVNode(x,{span:10},{default:r.withCtx(()=>[r.createElementVNode("div",Xs,[r.createElementVNode("p",Zs,[r.createVNode(g,{modelValue:a.leftAllChecked,"onUpdate:modelValue":f[0]||(f[0]=k=>a.leftAllChecked=k),indeterminate:i.value,"validate-event":!1,onChange:l},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(t.leftTitle),1)]),_:1},8,["modelValue","indeterminate"]),r.createElementVNode("span",null,r.toDisplayString(a.leftChecked.length)+"/"+r.toDisplayString(t.leftData.length),1)]),r.createElementVNode("div",Qs,[r.createVNode(D,{class:"transfer-panel__filter",modelValue:a.leftKeyword,"onUpdate:modelValue":f[1]||(f[1]=k=>a.leftKeyword=k),placeholder:"\u641C\u7D22","prefix-icon":"ele-Search",clearable:"","validate-event":!1},null,8,["modelValue"]),r.withDirectives(r.createVNode(A,{modelValue:a.leftChecked,"onUpdate:modelValue":f[2]||(f[2]=k=>a.leftChecked=k),"validate-event":!1,class:"fm-transfer-panel__list"},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.value,(k,v)=>(r.openBlock(),r.createBlock(g,{key:v,value:k[t.options.value],label:k[t.options.label],disabled:k[t.options.disabled],"validate-event":!1,class:"fm-transfer-panel__item",onDblclick:b=>p(k)},null,8,["value","label","disabled","onDblclick"]))),128))]),_:1},8,["modelValue"]),[[r.vShow,!0]])])])]),_:1}),r.createVNode(x,{span:4,class:"fm-transfer-buttons"},{default:r.withCtx(()=>[r.createElementVNode("div",u2,[r.createVNode(_,{type:"primary",style:{},icon:"ele-ArrowRight",onClick:C})]),r.createElementVNode("div",e2,[r.createVNode(_,{type:"primary",style:{},icon:"ele-ArrowLeft",onClick:h})]),r.createElementVNode("div",t2,[r.createVNode(_,{type:"primary",style:{},icon:"ele-DArrowRight",onClick:B})]),r.createElementVNode("div",r2,[r.createVNode(_,{type:"primary",style:{},icon:"ele-DArrowLeft",onClick:F})])]),_:1}),r.createVNode(x,{span:10},{default:r.withCtx(()=>[r.createElementVNode("div",n2,[r.createElementVNode("p",a2,[r.createVNode(g,{modelValue:a.rightAllChecked,"onUpdate:modelValue":f[3]||(f[3]=k=>a.rightAllChecked=k),indeterminate:E.value,"validate-event":!1,onChange:s},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(t.rightTitle),1)]),_:1},8,["modelValue","indeterminate"]),r.createElementVNode("span",null,r.toDisplayString(a.rightChecked.length)+"/"+r.toDisplayString(t.rightData.length),1)]),r.createElementVNode("div",o2,[r.createVNode(D,{class:"transfer-panel__filter",modelValue:a.rightKeyword,"onUpdate:modelValue":f[4]||(f[4]=k=>a.rightKeyword=k),placeholder:"\u641C\u7D22","prefix-icon":"ele-Search",clearable:"","validate-event":!1},null,8,["modelValue"]),r.withDirectives(r.createVNode(A,{modelValue:a.rightChecked,"onUpdate:modelValue":f[5]||(f[5]=k=>a.rightChecked=k),"validate-event":!1,class:"fm-transfer-panel__list"},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.value,(k,v)=>(r.openBlock(),r.createBlock(g,{key:v,value:k[t.options.value],label:k[t.options.label],disabled:k[t.options.disabled],"validate-event":!1,class:"fm-transfer-panel__item",onDblclick:b=>d(k)},null,8,["value","label","disabled","onDblclick"]))),128))]),_:1},8,["modelValue"]),[[r.vShow,!0]])])])]),_:1})]),_:1})}}});const i2={class:"notice-bar-warp-text-box"},s2=["innerHTML"];var c2=r.defineComponent({name:"FmNoticeBar",__name:"index",props:{mode:{type:String,default:""},text:{type:String,default:""},color:{type:String,default:"var(--el-color-warning)"},background:{type:String,default:"var(--el-color-warning-light-9)"},size:{type:[Number,String],default:14},height:{type:Number,default:40},delay:{type:Number,default:1},speed:{type:Number,default:100},scrollable:{type:Boolean,default:!1},leftIcon:{type:String,default:"iconfont icon-tongzhi2"},rightIcon:{type:String,default:""}},emits:["close","link"],setup(u,{emit:e}){const t=u,n=r.ref(null),a=r.ref(null),o=r.reactive({isMode:!1,warpOWidth:0,textOWidth:0,animationDuration:0});r.onMounted(async()=>{t.scrollable||l()});const l=()=>{r.nextTick(()=>{if(n.value&&a.value){o.warpOWidth=n.value.offsetWidth,o.textOWidth=a.value.scrollWidth,o.animationDuration=(o.textOWidth+o.warpOWidth)/t.speed,a.value.style.animation="none",a.value.offsetHeight,a.value.style.animation=`marquee ${o.animationDuration}s linear infinite`;const i=`
@keyframes marquee {
0% { transform: translateX(${o.warpOWidth}px); }
100% { transform: translateX(-${o.textOWidth}px); }
}
`,c=document.createElement("style");c.innerText=i,document.head.appendChild(c)}})};return(i,c)=>r.withDirectives((r.openBlock(),r.createElementBlock("div",{class:"fm-notice-bar",style:r.normalizeStyle({background:u.background,height:`${u.height}px`})},[r.createElementVNode("div",{class:"notice-bar-warp",style:r.normalizeStyle({color:u.color,fontSize:`${u.size}px`}),ref_key:"noticeBarWarpRef",ref:n},[u.leftIcon?(r.openBlock(),r.createElementBlock("i",{key:0,class:r.normalizeClass(["notice-bar-warp-left-icon",u.leftIcon])},null,2)):r.createCommentVNode("v-if",!0),r.createElementVNode("div",i2,[r.createElementVNode("div",{class:"notice-bar-warp-text",ref_key:"noticeBarTextRef",ref:a},[r.createElementVNode("div",{innerHTML:t.text,"data-slate-editor":""},null,8,s2)],512)])],4)],4)),[[r.vShow,!o.isMode]])}}),E2={name:"dragVerify",props:{isPassing:{type:Boolean,default:!1},width:{type:Number,default:250},height:{type:Number,default:40},text:{type:String,default:"swiping to the right side"},successText:{type:String,default:"success"},background:{type:String,default:"#eee"},progressBarBg:{type:String,default:"#76c61d"},completedBg:{type:String,default:"#76c61d"},circle:{type:Boolean,default:!1},radius:{type:String,default:"4px"},handlerIcon:{type:String},successIcon:{type:String},handlerBg:{type:String,default:"#fff"},textSize:{type:String,default:"14px"},textColor:{type:String,default:"#333"},imgsrc:{type:String},showTips:{type:Boolean,default:!0},successTip:{type:String,default:"\u9A8C\u8BC1\u901A\u8FC7"},failTip:{type:String,default:"\u9A8C\u8BC1\u5931\u8D25"},diffDegree:{type:Number,default:10},minDegree:{type:Number,default:90},maxDegree:{type:Number,default:270}},mounted:function(){const u=this.$refs.dragVerify;u.style.setProperty("--textColor",this.textColor),u.style.setProperty("--width",Math.floor(this.width/2)+"px"),u.style.setProperty("--pwidth",-Math.floor(this.width/2)+"px")},computed:{handlerStyle:function(){return{width:this.height+"px",height:this.height+"px",background:this.handlerBg}},message:function(){return this.isPassing?"":this.text},successMessage:function(){return this.isPassing?this.successText:""},dragVerifyStyle:function(){return{width:this.width+"px",height:this.height+"px",lineHeight:this.height+"px",marginTop:"20px",background:this.background,borderRadius:this.circle?this.height/2+"px":this.radius}},dragVerifyImgStyle:function(){return{width:this.width+"px",height:this.width+"px",position:"relative",overflow:"hidden","border-radius":"50%"}},progressBarStyle:function(){return{background:this.progressBarBg,height:this.height+"px",borderRadius:this.circle?this.height/2+"px 0 0 "+this.height/2+"px":this.radius}},textStyle:function(){return{height:this.height+"px",width:this.width+"px",fontSize:this.textSize}},factor:function(){return this.minDegree==this.maxDegree?Math.floor(1+Math.random()*6)/10+1:1}},data(){return{isMoving:!1,x:0,isOk:!1,showBar:!1,showErrorTip:!1,ranRotate:0,cRotate:0,imgStyle:{}}},methods:{checkimgLoaded:function(){var u=this.minDegree,e=this.maxDegree,t=Math.floor(u+Math.random()*(e-u));this.ranRotate=t,this.imgStyle={transform:`rotateZ(${t}deg)`}},dragStart:function(u){this.isPassing||(this.isMoving=!0,this.x=u.pageX||u.touches[0].pageX),this.showBar=!0,this.showErrorTip=!1,this.$emit("handlerMove")},dragMoving:function(u){if(this.isMoving&&!this.isPassing){var e=(u.pageX||u.touches[0].pageX)-this.x,t=this.$refs.handler;t.style.left=e+"px";var n=this.$refs.progressBar;n.style.width=e+this.height/2+"px";var a=Math.ceil(e/(this.width-this.height)*this.maxDegree*this.factor);this.cRotate=a;var o=this.ranRotate-a;this.imgStyle={transform:`rotateZ(${o}deg)`}}},dragFinish:function(u){if(this.isMoving&&!this.isPassing){if(Math.abs(this.ranRotate-this.cRotate)>this.diffDegree){this.isOk=!0,this.imgStyle={transform:`rotateZ(${this.ranRotate}deg)`};var e=this;setTimeout(function(){var t=e.$refs.handler,n=e.$refs.progressBar;t.style.left="0",n.style.width="0",e.isOk=!1},500),this.showErrorTip=!0,this.$emit("passfail")}else this.passVerify();this.isMoving=!1}},passVerify:function(){this.$emit("update:isPassing",!0),this.isMoving=!1;var u=this.$refs.handler;u.children[0].className=this.successIcon,this.$refs.progressBar.style.background=this.completedBg,this.$refs.message.style["-webkit-text-fill-color"]="unset",this.$refs.message.style.animation="slidetounlock2 3s infinite",this.$refs.progressBar.style.color="#fff",this.$refs.progressBar.style.fontSize=this.textSize,this.$emit("passcallback")},reset:function(){this.reImg(),this.checkimgLoaded()},reImg:function(){this.$emit("update:isPassing",!1);const u=this.$options.data();for(const n in u)Object.prototype.hasOwnProperty.call(u,n)&&(this[n]=u[n]);var e=this.$refs.handler,t=this.$refs.message;e.style.left="0",this.$refs.progressBar.style.width="0",e.children[0].className=this.handlerIcon,t.style["-webkit-text-fill-color"]="transparent",t.style.animation="slidetounlock 3s infinite",t.style.color=this.background},refreshimg:function(){this.$emit("refresh")}},watch:{imgsrc:{immediate:!1,handler:function(){this.reImg()}}}},d2=(u,e)=>{const t=u.__vccOpts||u;for(const[n,a]of e)t[n]=a;return t};const C2={class:"drag-verify-container"},p2=["src"],m2={key:0,class:"tips success"},F2={key:1,class:"tips danger"};function f2(u,e,t,n,a,o){return r.openBlock(),r.createElementBlock("div",C2,[r.createElementVNode("div",{style:r.normalizeStyle([o.dragVerifyImgStyle,{"background-color":"var(--el-color-primary)"}])},[r.createElementVNode("img",{ref:"checkImg",src:t.imgsrc,class:r.normalizeClass(["check-img",{goOrigin:a.isOk}]),onLoad:e[0]||(e[0]=(...l)=>o.checkimgLoaded&&o.checkimgLoaded(...l)),style:r.normalizeStyle(a.imgStyle),alt:""},null,46,p2),t.showTips&&t.isPassing?(r.openBlock(),r.createElementBlock("div",m2,r.toDisplayString(t.successTip),1)):r.createCommentVNode("v-if",!0),t.showTips&&!t.isPassing&&a.showErrorTip?(r.openBlock(),r.createElementBlock("div",F2,r.toDisplayString(t.failTip),1)):r.createCommentVNode("v-if",!0)],4),r.createElementVNode("div",{ref:"dragVerify",class:"drag_verify",style:r.normalizeStyle(o.dragVerifyStyle),onMousemove:e[3]||(e[3]=(...l)=>o.dragMoving&&o.dragMoving(...l)),onMouseup:e[4]||(e[4]=(...l)=>o.dragFinish&&o.dragFinish(...l)),onMouseleave:e[5]||(e[5]=(...l)=>o.dragFinish&&o.dragFinish(...l)),onTouchmove:e[6]||(e[6]=r.withModifiers((...l)=>o.dragMoving&&o.dragMoving(...l),["prevent"])),onTouchend:e[7]||(e[7]=r.withModifiers((...l)=>o.dragFinish&&o.dragFinish(...l),["prevent"]))},[r.createElementVNode("div",{class:r.normalizeClass(["dv_progress_bar",{goFirst2:a.isOk}]),ref:"progressBar",style:r.normalizeStyle(o.progressBarStyle)},r.toDisplayString(o.successMessage),7),r.createElementVNode("div",{class:"dv_text",style:r.normalizeStyle(o.textStyle),ref:"message"},r.toDisplayString(o.message),5),r.createElementVNode("div",{class:r.normalizeClass(["dv_handler dv_handler_bg",{goFirst:a.isOk}]),onMousedown:e[1]||(e[1]=(...l)=>o.dragStart&&o.dragStart(...l)),onTouchstart:e[2]||(e[2]=r.withModifiers((...l)=>o.dragStart&&o.dragStart(...l),["prevent"])),ref:"handler",style:r.normalizeStyle([o.handlerStyle,{"background-color":"var(--el-color-primary)"}])},[r.createElementVNode("i",{class:r.normalizeClass(t.handlerIcon),style:{color:"#fff"}},null,2)],38)],36)])}var B2=d2(E2,[["render",f2],["__scopeId","data-v-9e8c9ed2"]]),D2=r.defineComponent({name:"Fmselect",__name:"index",props:r.mergeModels({optionData:{type:Array,default:[]},bvalue:{type:String,default:"id"},blabel:{type:String,default:"name"}},{id:{type:Number,default:0},idModifiers:{},name:{type:String,default:""},nameModifiers:{}}),emits:r.mergeModels(["change"],["update:id","update:name"]),setup(u,{emit:e}){const t=r.useModel(u,"id"),n=r.useModel(u,"name"),a=u,o=e,l=i=>{const c=a.optionData.find(s=>s[a.bvalue]==i);n.value=c==null?"":c[a.blabel],o("change",c)};return(i,c)=>{const s=r.resolveComponent("el-option"),E=r.resolveComponent("el-select");return r.openBlock(),r.createBlock(E,{modelValue:t.value,"onUpdate:modelValue":c[0]||(c[0]=p=>t.value=p),placeholder:"\u8BF7\u9009\u62E9",onChange:l},{default:r.withCtx(()=>[r.createVNode(s,{value:0,label:""}),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.optionData,(p,C)=>(r.openBlock(),r.createBlock(s,{key:C,value:p[u.bvalue],label:p[u.blabel]},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])}}});function J5(u,e){return function(){return u.apply(e,arguments)}}const{toString:h2}=Object.prototype,{getPrototypeOf:Q0}=Object,{iterator:hr,toStringTag:X5}=Symbol,gr=(u=>e=>{const t=h2.call(e);return u[t]||(u[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),ne=u=>(u=u.toLowerCase(),e=>gr(e)===u),_r=u=>e=>typeof e===u,{isArray:et}=Array,xt=_r("undefined");function g2(u){return u!==null&&!xt(u)&&u.constructor!==null&&!xt(u.constructor)&&Wu(u.constructor.isBuffer)&&u.constructor.isBuffer(u)}const Z5=ne("ArrayBuffer");function _2(u){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(u):e=u&&u.buffer&&Z5(u.buffer),e}const A2=_r("string"),Wu=_r("function"),Q5=_r("number"),Ar=u=>u!==null&&typeof u=="object",x2=u=>u===!0||u===!1,xr=u=>{if(gr(u)!=="object")return!1;const e=Q0(u);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(X5 in u)&&!(hr in u)},v2=ne("Date"),y2=ne("File"),b2=ne("Blob"),w2=ne("FileList"),T2=u=>Ar(u)&&Wu(u.pipe),k2=u=>{let e;return u&&(typeof FormData=="function"&&u instanceof FormData||Wu(u.append)&&((e=gr(u))==="formdata"||e==="object"&&Wu(u.toString)&&u.toString()==="[object FormData]"))},S2=ne("URLSearchParams"),[N2,L2,P2,V2]=["ReadableStream","Request","Response","Headers"].map(ne),O2=u=>u.trim?u.trim():u.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function vt(u,e,{allOwnKeys:t=!1}={}){if(u===null||typeof u>"u")return;let n,a;if(typeof u!="object"&&(u=[u]),et(u))for(n=0,a=u.length;n<a;n++)e.call(null,u[n],n,u);else{const o=t?Object.getOwnPropertyNames(u):Object.keys(u),l=o.length;let i;for(n=0;n<l;n++)i=o[n],e.call(null,u[i],i,u)}}function ua(u,e){e=e.toLowerCase();const t=Object.keys(u);let n=t.length,a;for(;n-- >0;)if(a=t[n],e===a.toLowerCase())return a;return null}const Oe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ea=u=>!xt(u)&&u!==Oe;function un(){const{caseless:u}=ea(this)&&this||{},e={},t=(n,a)=>{const o=u&&ua(e,a)||a;xr(e[o])&&xr(n)?e[o]=un(e[o],n):xr(n)?e[o]=un({},n):et(n)?e[o]=n.slice():e[o]=n};for(let n=0,a=arguments.length;n<a;n++)arguments[n]&&vt(arguments[n],t);return e}const M2=(u,e,t,{allOwnKeys:n}={})=>(vt(e,(a,o)=>{t&&Wu(a)?u[o]=J5(a,t):u[o]=a},{allOwnKeys:n}),u),R2=u=>(u.charCodeAt(0)===65279&&(u=u.slice(1)),u),z2=(u,e,t,n)=>{u.prototype=Object.create(e.prototype,n),u.prototype.constructor=u,Object.defineProperty(u,"super",{value:e.prototype}),t&&Object.assign(u.prototype,t)},I2=(u,e,t,n)=>{let a,o,l;const i={};if(e=e||{},u==null)return e;do{for(a=Object.getOwnPropertyNames(u),o=a.length;o-- >0;)l=a[o],(!n||n(l,u,e))&&!i[l]&&(e[l]=u[l],i[l]=!0);u=t!==!1&&Q0(u)}while(u&&(!t||t(u,e))&&u!==Object.prototype);return e},H2=(u,e,t)=>{u=String(u),(t===void 0||t>u.length)&&(t=u.length),t-=e.length;const n=u.indexOf(e,t);return n!==-1&&n===t},U2=u=>{if(!u)return null;if(et(u))return u;let e=u.length;if(!Q5(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=u[e];return t},q2=(u=>e=>u&&e instanceof u)(typeof Uint8Array<"u"&&Q0(Uint8Array)),$2=(u,e)=>{const n=(u&&u[hr]).call(u);let a;for(;(a=n.next())&&!a.done;){const o=a.value;e.call(u,o[0],o[1])}},j2=(u,e)=>{let t;const n=[];for(;(t=u.exec(e))!==null;)n.push(t);return n},G2=ne("HTMLFormElement"),W2=u=>u.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,a){return n.toUpperCase()+a}),ta=(({hasOwnProperty:u})=>(e,t)=>u.call(e,t))(Object.prototype),K2=ne("RegExp"),ra=(u,e)=>{const t=Object.getOwnPropertyDescriptors(u),n={};vt(t,(a,o)=>{let l;(l=e(a,o,u))!==!1&&(n[o]=l||a)}),Object.defineProperties(u,n)},Y2=u=>{ra(u,(e,t)=>{if(Wu(u)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=u[t];if(Wu(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},J2=(u,e)=>{const t={},n=a=>{a.forEach(o=>{t[o]=!0})};return et(u)?n(u):n(String(u).split(e)),t},X2=()=>{},Z2=(u,e)=>u!=null&&Number.isFinite(u=+u)?u:e;function Q2(u){return!!(u&&Wu(u.append)&&u[X5]==="FormData"&&u[hr])}const u3=u=>{const e=new Array(10),t=(n,a)=>{if(Ar(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[a]=n;const o=et(n)?[]:{};return vt(n,(l,i)=>{const c=t(l,a+1);!xt(c)&&(o[i]=c)}),e[a]=void 0,o}}return n};return t(u,0)},e3=ne("AsyncFunction"),t3=u=>u&&(Ar(u)||Wu(u))&&Wu(u.then)&&Wu(u.catch),na=((u,e)=>u?setImmediate:e?((t,n)=>(Oe.addEventListener("message",({source:a,data:o})=>{a===Oe&&o===t&&n.length&&n.shift()()},!1),a=>{n.push(a),Oe.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",Wu(Oe.postMessage)),r3=typeof queueMicrotask<"u"?queueMicrotask.bind(Oe):typeof process<"u"&&process.nextTick||na;var H={isArray:et,isArrayBuffer:Z5,isBuffer:g2,isFormData:k2,isArrayBufferView:_2,isString:A2,isNumber:Q5,isBoolean:x2,isObject:Ar,isPlainObject:xr,isReadableStream:N2,isRequest:L2,isResponse:P2,isHeaders:V2,isUndefined:xt,isDate:v2,isFile:y2,isBlob:b2,isRegExp:K2,isFunction:Wu,isStream:T2,isURLSearchParams:S2,isTypedArray:q2,isFileList:w2,forEach:vt,merge:un,extend:M2,trim:O2,stripBOM:R2,inherits:z2,toFlatObject:I2,kindOf:gr,kindOfTest:ne,endsWith:H2,toArray:U2,forEachEntry:$2,matchAll:j2,isHTMLForm:G2,hasOwnProperty:ta,hasOwnProp:ta,reduceDescriptors:ra,freezeMethods:Y2,toObjectSet:J2,toCamelCase:W2,noop:X2,toFiniteNumber:Z2,findKey:ua,global:Oe,isContextDefined:ea,isSpecCompliantForm:Q2,toJSONObject:u3,isAsyncFn:e3,isThenable:t3,setImmediate:na,asap:r3,isIterable:u=>u!=null&&Wu(u[hr])};function tu(u,e,t,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=u,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),n&&(this.request=n),a&&(this.response=a,this.status=a.status?a.status:null)}H.inherits(tu,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:H.toJSONObject(this.config),code:this.code,status:this.status}}});const aa=tu.prototype,oa={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(u=>{oa[u]={value:u}}),Object.defineProperties(tu,oa),Object.defineProperty(aa,"isAxiosError",{value:!0}),tu.from=(u,e,t,n,a,o)=>{const l=Object.create(aa);return H.toFlatObject(u,l,function(c){return c!==Error.prototype},i=>i!=="isAxiosError"),tu.call(l,u.message,e,t,n,a),l.cause=u,l.name=u.name,o&&Object.assign(l,o),l};var en=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vu(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var tn,la;function n3(){return la||(la=1,tn=typeof self=="object"?self.FormData:window.FormData),tn}var a3=n3(),ia=vu(a3);function rn(u){return H.isPlainObject(u)||H.isArray(u)}function sa(u){return H.endsWith(u,"[]")?u.slice(0,-2):u}function ca(u,e,t){return u?u.concat(e).map(function(a,o){return a=sa(a),!t&&o?"["+a+"]":a}).join(t?".":""):e}function o3(u){return H.isArray(u)&&!u.some(rn)}const l3=H.toFlatObject(H,{},null,function(e){return/^is[A-Z]/.test(e)});function vr(u,e,t){if(!H.isObject(u))throw new TypeError("target must be an object");e=e||new(ia||FormData),t=H.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,F){return!H.isUndefined(F[h])});const n=t.metaTokens,a=t.visitor||E,o=t.dots,l=t.indexes,c=(t.Blob||typeof Blob<"u"&&Blob)&&H.isSpecCompliantForm(e);if(!H.isFunction(a))throw new TypeError("visitor must be a function");function s(d){if(d===null)return"";if(H.isDate(d))return d.toISOString();if(H.isBoolean(d))return d.toString();if(!c&&H.isBlob(d))throw new tu("Blob is not supported. Use a Buffer instead.");return H.isArrayBuffer(d)||H.isTypedArray(d)?c&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function E(d,h,F){let m=d;if(d&&!F&&typeof d=="object"){if(H.endsWith(h,"{}"))h=n?h:h.slice(0,-2),d=JSON.stringify(d);else if(H.isArray(d)&&o3(d)||(H.isFileList(d)||H.endsWith(h,"[]"))&&(m=H.toArray(d)))return h=sa(h),m.forEach(function(g,D){!(H.isUndefined(g)||g===null)&&e.append(l===!0?ca([h],D,o):l===null?h:h+"[]",s(g))}),!1}return rn(d)?!0:(e.append(ca(F,h,o),s(d)),!1)}const p=[],C=Object.assign(l3,{defaultVisitor:E,convertValue:s,isVisitable:rn});function B(d,h){if(!H.isUndefined(d)){if(p.indexOf(d)!==-1)throw Error("Circular reference detected in "+h.join("."));p.push(d),H.forEach(d,function(m,f){(!(H.isUndefined(m)||m===null)&&a.call(e,m,H.isString(f)?f.trim():f,h,C))===!0&&B(m,h?h.concat(f):[f])}),p.pop()}}if(!H.isObject(u))throw new TypeError("data must be an object");return B(u),e}function Ea(u){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(u).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function da(u,e){this._pairs=[],u&&vr(u,this,e)}const Ca=da.prototype;Ca.append=function(e,t){this._pairs.push([e,t])},Ca.toString=function(e){const t=e?function(n){return e.call(this,n,Ea)}:Ea;return this._pairs.map(function(a){return t(a[0])+"="+t(a[1])},"").join("&")};function i3(u){return encodeURIComponent(u).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function nn(u,e,t){if(!e)return u;const n=t&&t.encode||i3;H.isFunction(t)&&(t={serialize:t});const a=t&&t.serialize;let o;if(a?o=a(e,t):o=H.isURLSearchParams(e)?e.toString():new da(e,t).toString(n),o){const l=u.indexOf("#");l!==-1&&(u=u.slice(0,l)),u+=(u.indexOf("?")===-1?"?":"&")+o}return u}class pa{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){H.forEach(this.handlers,function(n){n!==null&&e(n)})}}var an={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},s3=Z0.URLSearchParams;const on="abcdefghijklmnopqrstuvwxyz",ma="0123456789",Fa={DIGIT:ma,ALPHA:on,ALPHA_DIGIT:on+on.toUpperCase()+ma};var c3={isNode:!0,classes:{URLSearchParams:s3,FormData:ia,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:Fa,generateString:(u=16,e=Fa.ALPHA_DIGIT)=>{let t="";const{length:n}=e,a=new Uint32Array(u);Ys.randomFillSync(a);for(let o=0;o<u;o++)t+=e[a[o]%n];return t},protocols:["http","https","file","data"]};const ln=typeof window<"u"&&typeof document<"u",sn=typeof navigator=="object"&&navigator||void 0,E3=ln&&(!sn||["ReactNative","NativeScript","NS"].indexOf(sn.product)<0),d3=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",C3=ln&&window.location.href||"http://localhost";var p3=Object.freeze({__proto__:null,hasBrowserEnv:ln,hasStandardBrowserEnv:E3,hasStandardBrowserWebWorkerEnv:d3,navigator:sn,origin:C3}),_u={...p3,...c3};function m3(u,e){return vr(u,new _u.classes.URLSearchParams,Object.assign({visitor:function(t,n,a,o){return _u.isNode&&H.isBuffer(t)?(this.append(n,t.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function F3(u){return H.matchAll(/\w+|\[(\w*)]/g,u).map(e=>e[0]==="[]"?"":e[1]||e[0])}function f3(u){const e={},t=Object.keys(u);let n;const a=t.length;let o;for(n=0;n<a;n++)o=t[n],e[o]=u[o];return e}function fa(u){function e(t,n,a,o){let l=t[o++];if(l==="__proto__")return!0;const i=Number.isFinite(+l),c=o>=t.length;return l=!l&&H.isArray(a)?a.length:l,c?(H.hasOwnProp(a,l)?a[l]=[a[l],n]:a[l]=n,!i):((!a[l]||!H.isObject(a[l]))&&(a[l]=[]),e(t,n,a[l],o)&&H.isArray(a[l])&&(a[l]=f3(a[l])),!i)}if(H.isFormData(u)&&H.isFunction(u.entries)){const t={};return H.forEachEntry(u,(n,a)=>{e(F3(n),a,t,0)}),t}return null}function B3(u,e,t){if(H.isString(u))try{return(e||JSON.parse)(u),H.trim(u)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(u)}const yt={transitional:an,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",a=n.indexOf("application/json")>-1,o=H.isObject(e);if(o&&H.isHTMLForm(e)&&(e=new FormData(e)),H.isFormData(e))return a?JSON.stringify(fa(e)):e;if(H.isArrayBuffer(e)||H.isBuffer(e)||H.isStream(e)||H.isFile(e)||H.isBlob(e)||H.isReadableStream(e))return e;if(H.isArrayBufferView(e))return e.buffer;if(H.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return m3(e,this.formSerializer).toString();if((i=H.isFileList(e))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return vr(i?{"files[]":e}:e,c&&new c,this.formSerializer)}}return o||a?(t.setContentType("application/json",!1),B3(e)):e}],transformResponse:[function(e){const t=this.transitional||yt.transitional,n=t&&t.forcedJSONParsing,a=this.responseType==="json";if(H.isResponse(e)||H.isReadableStream(e))return e;if(e&&H.isString(e)&&(n&&!this.responseType||a)){const l=!(t&&t.silentJSONParsing)&&a;try{return JSON.parse(e)}catch(i){if(l)throw i.name==="SyntaxError"?tu.from(i,tu.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_u.classes.FormData,Blob:_u.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};H.forEach(["delete","get","head","post","put","patch"],u=>{yt.headers[u]={}});const D3=H.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var h3=u=>{const e={};let t,n,a;return u&&u.split(`
`).forEach(function(l){a=l.indexOf(":"),t=l.substring(0,a).trim().toLowerCase(),n=l.substring(a+1).trim(),!(!t||e[t]&&D3[t])&&(t==="set-cookie"?e[t]?e[t].push(n):e[t]=[n]:e[t]=e[t]?e[t]+", "+n:n)}),e};const Ba=Symbol("internals");function bt(u){return u&&String(u).trim().toLowerCase()}function yr(u){return u===!1||u==null?u:H.isArray(u)?u.map(yr):String(u)}function g3(u){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=t.exec(u);)e[n[1]]=n[2];return e}const _3=u=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(u.trim());function cn(u,e,t,n,a){if(H.isFunction(n))return n.call(this,e,t);if(a&&(e=t),!!H.isString(e)){if(H.isString(n))return e.indexOf(n)!==-1;if(H.isRegExp(n))return n.test(e)}}function A3(u){return u.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function x3(u,e){const t=H.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(u,n+t,{value:function(a,o,l){return this[n].call(this,e,a,o,l)},configurable:!0})})}let Vu=class{constructor(e){e&&this.set(e)}set(e,t,n){const a=this;function o(i,c,s){const E=bt(c);if(!E)throw new Error("header name must be a non-empty string");const p=H.findKey(a,E);(!p||a[p]===void 0||s===!0||s===void 0&&a[p]!==!1)&&(a[p||c]=yr(i))}const l=(i,c)=>H.forEach(i,(s,E)=>o(s,E,c));if(H.isPlainObject(e)||e instanceof this.constructor)l(e,t);else if(H.isString(e)&&(e=e.trim())&&!_3(e))l(h3(e),t);else if(H.isObject(e)&&H.isIterable(e)){let i={},c,s;for(const E of e){if(!H.isArray(E))throw TypeError("Object iterator must return a key-value pair");i[s=E[0]]=(c=i[s])?H.isArray(c)?[...c,E[1]]:[c,E[1]]:E[1]}l(i,t)}else e!=null&&o(t,e,n);return this}get(e,t){if(e=bt(e),e){const n=H.findKey(this,e);if(n){const a=this[n];if(!t)return a;if(t===!0)return g3(a);if(H.isFunction(t))return t.call(this,a,n);if(H.isRegExp(t))return t.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=bt(e),e){const n=H.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||cn(this,this[n],n,t)))}return!1}delete(e,t){const n=this;let a=!1;function o(l){if(l=bt(l),l){const i=H.findKey(n,l);i&&(!t||cn(n,n[i],i,t))&&(delete n[i],a=!0)}}return H.isArray(e)?e.forEach(o):o(e),a}clear(e){const t=Object.keys(this);let n=t.length,a=!1;for(;n--;){const o=t[n];(!e||cn(this,this[o],o,e,!0))&&(delete this[o],a=!0)}return a}normalize(e){const t=this,n={};return H.forEach(this,(a,o)=>{const l=H.findKey(n,o);if(l){t[l]=yr(a),delete t[o];return}const i=e?A3(o):String(o).trim();i!==o&&delete t[o],t[i]=yr(a),n[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return H.forEach(this,(n,a)=>{n!=null&&n!==!1&&(t[a]=e&&H.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(a=>n.set(a)),n}static accessor(e){const n=(this[Ba]=this[Ba]={accessors:{}}).accessors,a=this.prototype;function o(l){const i=bt(l);n[i]||(x3(a,l),n[i]=!0)}return H.isArray(e)?e.forEach(o):o(e),this}};Vu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),H.reduceDescriptors(Vu.prototype,({value:u},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>u,set(n){this[t]=n}}}),H.freezeMethods(Vu);function En(u,e){const t=this||yt,n=e||t,a=Vu.from(n.headers);let o=n.data;return H.forEach(u,function(i){o=i.call(t,o,a.normalize(),e?e.status:void 0)}),a.normalize(),o}function Da(u){return!!(u&&u.__CANCEL__)}function ve(u,e,t){tu.call(this,u??"canceled",tu.ERR_CANCELED,e,t),this.name="CanceledError"}H.inherits(ve,tu,{__CANCEL__:!0});function tt(u,e,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?u(t):e(new tu("Request failed with status code "+t.status,[tu.ERR_BAD_REQUEST,tu.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function v3(u){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(u)}function y3(u,e){return e?u.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):u}function dn(u,e,t){let n=!v3(e);return u&&(n||t==!1)?y3(u,e):e}var Cn={},ha;function b3(){if(ha)return Cn;ha=1;var u=Z0.parse,e={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},t=String.prototype.endsWith||function(l){return l.length<=this.length&&this.indexOf(l,this.length-l.length)!==-1};function n(l){var i=typeof l=="string"?u(l):l||{},c=i.protocol,s=i.host,E=i.port;if(typeof s!="string"||!s||typeof c!="string"||(c=c.split(":",1)[0],s=s.replace(/:\d*$/,""),E=parseInt(E)||e[c]||0,!a(s,E)))return"";var p=o("npm_config_"+c+"_proxy")||o(c+"_proxy")||o("npm_config_proxy")||o("all_proxy");return p&&p.indexOf("://")===-1&&(p=c+"://"+p),p}function a(l,i){var c=(o("npm_config_no_proxy")||o("no_proxy")).toLowerCase();return c?c==="*"?!1:c.split(/[,\s]/).every(function(s){if(!s)return!0;var E=s.match(/^(.+):(\d+)$/),p=E?E[1]:s,C=E?parseInt(E[2]):0;return C&&C!==i?!0:/^[.*]/.test(p)?(p.charAt(0)==="*"&&(p=p.slice(1)),!t.call(l,p)):l!==p}):!0}function o(l){return process.env[l.toLowerCase()]||process.env[l.toUpperCase()]||""}return Cn.getProxyForUrl=n,Cn}var w3=b3(),T3=vu(w3),br={exports:{}},wr={exports:{}},pn,ga;function k3(){if(ga)return pn;ga=1;var u=1e3,e=u*60,t=e*60,n=t*24,a=n*7,o=n*365.25;pn=function(E,p){p=p||{};var C=typeof E;if(C==="string"&&E.length>0)return l(E);if(C==="number"&&isFinite(E))return p.long?c(E):i(E);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(E))};function l(E){if(E=String(E),!(E.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(E);if(p){var C=parseFloat(p[1]),B=(p[2]||"ms").toLowerCase();switch(B){case"years":case"year":case"yrs":case"yr":case"y":return C*o;case"weeks":case"week":case"w":return C*a;case"days":case"day":case"d":return C*n;case"hours":case"hour":case"hrs":case"hr":case"h":return C*t;case"minutes":case"minute":case"mins":case"min":case"m":return C*e;case"seconds":case"second":case"secs":case"sec":case"s":return C*u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return C;default:return}}}}function i(E){var p=Math.abs(E);return p>=n?Math.round(E/n)+"d":p>=t?Math.round(E/t)+"h":p>=e?Math.round(E/e)+"m":p>=u?Math.round(E/u)+"s":E+"ms"}function c(E){var p=Math.abs(E);return p>=n?s(E,p,n,"day"):p>=t?s(E,p,t,"hour"):p>=e?s(E,p,e,"minute"):p>=u?s(E,p,u,"second"):E+" ms"}function s(E,p,C,B){var d=p>=C*1.5;return Math.round(E/C)+" "+B+(d?"s":"")}return pn}var mn,_a;function S3(){if(_a)return mn;_a=1;function u(e){n.debug=n,n.default=n,n.coerce=s,n.disable=i,n.enable=o,n.enabled=c,n.humanize=k3(),n.destroy=E,Object.keys(e).forEach(p=>{n[p]=e[p]}),n.names=[],n.skips=[],n.formatters={};function t(p){let C=0;for(let B=0;B<p.length;B++)C=(C<<5)-C+p.charCodeAt(B),C|=0;return n.colors[Math.abs(C)%n.colors.length]}n.selectColor=t;function n(p){let C,B=null,d,h;function F(...m){if(!F.enabled)return;const f=F,g=Number(new Date),D=g-(C||g);f.diff=D,f.prev=C,f.curr=g,C=g,m[0]=n.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let A=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(_,y)=>{if(_==="%%")return"%";A++;const k=n.formatters[y];if(typeof k=="function"){const v=m[A];_=k.call(f,v),m.splice(A,1),A--}return _}),n.formatArgs.call(f,m),(f.log||n.log).apply(f,m)}return F.namespace=p,F.useColors=n.useColors(),F.color=n.selectColor(p),F.extend=a,F.destroy=n.destroy,Object.defineProperty(F,"enabled",{enumerable:!0,configurable:!1,get:()=>B!==null?B:(d!==n.namespaces&&(d=n.namespaces,h=n.enabled(p)),h),set:m=>{B=m}}),typeof n.init=="function"&&n.init(F),F}function a(p,C){const B=n(this.namespace+(typeof C>"u"?":":C)+p);return B.log=this.log,B}function o(p){n.save(p),n.namespaces=p,n.names=[],n.skips=[];const C=(typeof p=="string"?p:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const B of C)B[0]==="-"?n.skips.push(B.slice(1)):n.names.push(B)}function l(p,C){let B=0,d=0,h=-1,F=0;for(;B<p.length;)if(d<C.length&&(C[d]===p[B]||C[d]==="*"))C[d]==="*"?(h=d,F=B,d++):(B++,d++);else if(h!==-1)d=h+1,F++,B=F;else return!1;for(;d<C.length&&C[d]==="*";)d++;return d===C.length}function i(){const p=[...n.names,...n.skips.map(C=>"-"+C)].join(",");return n.enable(""),p}function c(p){for(const C of n.skips)if(l(p,C))return!1;for(const C of n.names)if(l(p,C))return!0;return!1}function s(p){return p instanceof Error?p.stack||p.message:p}function E(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}return mn=u,mn}var Aa;function N3(){return Aa||(Aa=1,function(u,e){e.formatArgs=n,e.save=save,e.load=a,e.useColors=t,e.storage=o(),e.destroy=(()=>{let i=!1;return()=>{i||(i=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function t(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let i;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(i=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(i[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function n(i){if(i[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+i[0]+(this.useColors?"%c ":" ")+"+"+u.exports.humanize(this.diff),!this.useColors)return;const c="color: "+this.color;i.splice(1,0,c,"color: inherit");let s=0,E=0;i[0].replace(/%[a-zA-Z%]/g,p=>{p!=="%%"&&(s++,p==="%c"&&(E=s))}),i.splice(E,0,c)}e.log=console.debug||function(c){try{c?e.storage.setItem("debug",c):e.storage.removeItem("debug")}catch{}};function a(){let i;try{i=e.storage.getItem("debug")||e.storage.getItem("DEBUG")}catch{}return!i&&typeof process<"u"&&"env"in process&&(i=process.env.DEBUG),i}function o(){try{return localStorage}catch{}}u.exports=S3()(e);const{formatters:l}=u.exports;l.j=function(i){try{return JSON.stringify(i)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}}(wr,wr.exports)),wr.exports}var Fn,xa;function L3(){if(xa)return Fn;xa=1;var u;return Fn=function(){if(!u){try{u=N3()("follow-redirects")}catch{}typeof u!="function"&&(u=function(){})}u.apply(null,arguments)},Fn}var va;function P3(){if(va)return br.exports;va=1;var u=Z0,e=u.URL,t=W5,n=K5,a=Ee.Writable,o=Js,l=L3();(function(){var V=typeof process<"u",T=typeof window<"u"&&typeof document<"u",I=q(Error.captureStackTrace);!V&&(T||!I)&&console.warn("The follow-redirects package should be excluded from browser builds.")})();var i=!1;try{o(new e(""))}catch(O){i=O.code==="ERR_INVALID_URL"}var c=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],s=["abort","aborted","connect","error","socket","timeout"],E=Object.create(null);s.forEach(function(O){E[O]=function(V,T,I){this._redirectable.emit(O,V,T,I)}});var p=k("ERR_INVALID_URL","Invalid URL",TypeError),C=k("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),B=k("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",C),d=k("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),h=k("ERR_STREAM_WRITE_AFTER_END","write after end"),F=a.prototype.destroy||g;function m(O,V){a.call(this),this._sanitizeOptions(O),this._options=O,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],V&&this.on("response",V);var T=this;this._onNativeResponse=function(I){try{T._processResponse(I)}catch(K){T.emit("error",K instanceof C?K:new C({cause:K}))}},this._performRequest()}m.prototype=Object.create(a.prototype),m.prototype.abort=function(){v(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},m.prototype.destroy=function(O){return v(this._currentRequest,O),F.call(this,O),this},m.prototype.write=function(O,V,T){if(this._ending)throw new h;if(!M(O)&&!Z(O))throw new TypeError("data should be a string, Buffer or Uint8Array");if(q(V)&&(T=V,V=null),O.length===0){T&&T();return}this._requestBodyLength+O.length<=this._options.maxBodyLength?(this._requestBodyLength+=O.length,this._requestBodyBuffers.push({data:O,encoding:V}),this._currentRequest.write(O,V,T)):(this.emit("error",new d),this.abort())},m.prototype.end=function(O,V,T){if(q(O)?(T=O,O=V=null):q(V)&&(T=V,V=null),!O)this._ended=this._ending=!0,this._currentRequest.end(null,null,T);else{var I=this,K=this._currentRequest;this.write(O,V,function(){I._ended=!0,K.end(null,null,T)}),this._ending=!0}},m.prototype.setHeader=function(O,V){this._options.headers[O]=V,this._currentRequest.setHeader(O,V)},m.prototype.removeHeader=function(O){delete this._options.headers[O],this._currentRequest.removeHeader(O)},m.prototype.setTimeout=function(O,V){var T=this;function I(P){P.setTimeout(O),P.removeListener("timeout",P.destroy),P.addListener("timeout",P.destroy)}function K(P){T._timeout&&clearTimeout(T._timeout),T._timeout=setTimeout(function(){T.emit("timeout"),N()},O),I(P)}function N(){T._timeout&&(clearTimeout(T._timeout),T._timeout=null),T.removeListener("abort",N),T.removeListener("error",N),T.removeListener("response",N),T.removeListener("close",N),V&&T.removeListener("timeout",V),T.socket||T._currentRequest.removeListener("socket",K)}return V&&this.on("timeout",V),this.socket?K(this.socket):this._currentRequest.once("socket",K),this.on("socket",I),this.on("abort",N),this.on("error",N),this.on("response",N),this.on("close",N),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(O){m.prototype[O]=function(V,T){return this._currentRequest[O](V,T)}}),["aborted","connection","socket"].forEach(function(O){Object.defineProperty(m.prototype,O,{get:function(){return this._currentRequest[O]}})}),m.prototype._sanitizeOptions=function(O){if(O.headers||(O.headers={}),O.host&&(O.hostname||(O.hostname=O.host),delete O.host),!O.pathname&&O.path){var V=O.path.indexOf("?");V<0?O.pathname=O.path:(O.pathname=O.path.substring(0,V),O.search=O.path.substring(V))}},m.prototype._performRequest=function(){var O=this._options.protocol,V=this._options.nativeProtocols[O];if(!V)throw new TypeError("Unsupported protocol "+O);if(this._options.agents){var T=O.slice(0,-1);this._options.agent=this._options.agents[T]}var I=this._currentRequest=V.request(this._options,this._onNativeResponse);I._redirectable=this;for(var K of s)I.on(K,E[K]);if(this._currentUrl=/^\//.test(this._options.path)?u.format(this._options):this._options.path,this._isRedirect){var N=0,P=this,R=this._requestBodyBuffers;(function w(W){if(I===P._currentRequest)if(W)P.emit("error",W);else if(N<R.length){var G=R[N++];I.finished||I.write(G.data,G.encoding,w)}else P._ended&&I.end()})()}},m.prototype._processResponse=function(O){var V=O.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:O.headers,statusCode:V});var T=O.headers.location;if(!T||this._options.followRedirects===!1||V<300||V>=400){O.responseUrl=this._currentUrl,O.redirects=this._redirects,this.emit("response",O),this._requestBodyBuffers=[];return}if(v(this._currentRequest),O.destroy(),++this._redirectCount>this._options.maxRedirects)throw new B;var I,K=this._options.beforeRedirect;K&&(I=Object.assign({Host:O.req.getHeader("host")},this._options.headers));var N=this._options.method;((V===301||V===302)&&this._options.method==="POST"||V===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],y(/^content-/i,this._options.headers));var P=y(/^host$/i,this._options.headers),R=D(this._currentUrl),w=P||R.host,W=/^\w+:/.test(T)?this._currentUrl:u.format(Object.assign(R,{host:w})),G=A(T,W);if(l("redirecting to",G.href),this._isRedirect=!0,_(G,this._options),(G.protocol!==R.protocol&&G.protocol!=="https:"||G.host!==w&&!b(G.host,w))&&y(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),q(K)){var ru={headers:O.headers,statusCode:V},Q={url:W,method:N,headers:I};K(this._options,ru,Q),this._sanitizeOptions(this._options)}this._performRequest()};function f(O){var V={maxRedirects:21,maxBodyLength:10485760},T={};return Object.keys(O).forEach(function(I){var K=I+":",N=T[K]=O[I],P=V[I]=Object.create(N);function R(W,G,ru){return uu(W)?W=_(W):M(W)?W=_(D(W)):(ru=G,G=x(W),W={protocol:K}),q(G)&&(ru=G,G=null),G=Object.assign({maxRedirects:V.maxRedirects,maxBodyLength:V.maxBodyLength},W,G),G.nativeProtocols=T,!M(G.host)&&!M(G.hostname)&&(G.hostname="::1"),o.equal(G.protocol,K,"protocol mismatch"),l("options",G),new m(G,ru)}function w(W,G,ru){var Q=P.request(W,G,ru);return Q.end(),Q}Object.defineProperties(P,{request:{value:R,configurable:!0,enumerable:!0,writable:!0},get:{value:w,configurable:!0,enumerable:!0,writable:!0}})}),V}function g(){}function D(O){var V;if(i)V=new e(O);else if(V=x(u.parse(O)),!M(V.protocol))throw new p({input:O});return V}function A(O,V){return i?new e(O,V):D(u.resolve(V,O))}functio