UNPKG

@fmdevui/fm-dev

Version:

Page level components developed based on Element Plus.

8 lines 2.82 MB
/*! fm-dev v1.0.129 */(function(K,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("vue"),require("crypto"),require("url"),require("http"),require("https"),require("http2"),require("util"),require("stream"),require("assert"),require("zlib"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","crypto","url","http","https","http2","util","stream","assert","zlib","element-plus"],h):(K=typeof globalThis<"u"?globalThis:K||self,h(K.FmPlus={},K.Vue,K.crypto,K.require$$0,K.require$$1,K.require$$2,K.http2,K.util$2,K.stream,K.require$$4,K.zlib,K.ElementPlus))})(this,function(K,h,TN,lE,S4,T4,k4,cE,or,kN,ha,Ie){"use strict";const MN={class:"fm-transfer-panel"},LN={class:"fm-transfer-panel__header"},PN={class:"fm-transfer-panel__body"},NN={class:"fm-transfer-buttons__item"},IN={class:"fm-transfer-buttons__item"},RN={class:"fm-transfer-buttons__item"},ON={class:"fm-transfer-buttons__item"},VN={class:"fm-transfer-panel"},zN={class:"fm-transfer-panel__header"},HN={class:"fm-transfer-panel__body"};var UN=h.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(e,{emit:u}){const t=e,r=u,n=h.reactive({leftAllChecked:!1,leftKeyword:"",leftChecked:[],rightAllChecked:!1,rightKeyword:"",rightChecked:[]}),a=h.computed(()=>{let m=t.leftData.filter(v=>v[t.options.label].toLowerCase().includes(n.leftKeyword.toLowerCase()));if(n.leftChecked.length>0)for(let v=n.leftChecked.length-1;v>=0;v--)m.findIndex(g=>g[t.options.value]==n.leftChecked[v])==-1&&n.leftChecked.splice(v,1);return m}),i=m=>{n.leftChecked=m?a.value.filter(v=>v[t.options.disabled]==!1).map(v=>v[t.options.value]):[]},o=h.computed(()=>{const m=n.leftChecked.length;return m>0&&m<a.value.filter(D=>D[t.options.disabled]==!1).length});h.watch(()=>n.leftChecked,m=>{n.leftAllChecked=m.length>0&&m.length==a.value.filter(v=>v[t.options.disabled]==!1).length});const s=h.computed(()=>{let m=t.rightData.filter(v=>v[t.options.label].toLowerCase().includes(n.rightKeyword.toLowerCase()));if(n.rightChecked.length>0)for(let v=n.rightChecked.length-1;v>=0;v--)m.findIndex(g=>g[t.options.value]==n.rightChecked[v])==-1&&n.rightChecked.splice(v,1);return m}),l=m=>{n.rightChecked=m?s.value.filter(v=>v[t.options.disabled]==!1).map(v=>v[t.options.value]):[]},c=h.computed(()=>{const m=n.rightChecked.length;return m>0&&m<s.value.filter(D=>D[t.options.disabled]==!1).length});h.watch(()=>n.rightChecked,m=>{n.rightAllChecked=m.length>0&&m.length==s.value.filter(v=>v[t.options.disabled]==!1).length});const E=m=>{if(m[t.options.value]&&m[t.options.disabled]===!1){let v=t.leftData.filter(g=>m[t.options.value]==g[t.options.value]),D=t.leftData.filter(g=>m[t.options.value]!=g[t.options.value]);r("update:leftData",D),r("update:rightData",t.rightData.concat(v)),r("right"),n.leftChecked=n.leftChecked.filter(g=>m[t.options.value]!=g)}},d=()=>{if(n.leftChecked?.length>0){let m=t.leftData.filter(D=>n.leftChecked.some(g=>g==D[t.options.value])),v=t.leftData.filter(D=>n.leftChecked.every(g=>g!=D[t.options.value]));r("update:leftData",v),r("update:rightData",t.rightData.concat(m)),r("right"),n.leftChecked=[]}},f=()=>{if(a.value?.length>0){let m=a.value.filter(g=>g[t.options.disabled]==!1),v=t.leftData.filter(g=>m.some(B=>B[t.options.value]==g[t.options.value])),D=t.leftData.filter(g=>m.every(B=>B[t.options.value]!=g[t.options.value]));r("update:leftData",D),r("update:rightData",t.rightData.concat(v)),r("allRight"),n.leftChecked=[]}},p=m=>{if(m[t.options.value]&&m[t.options.disabled]===!1){let v=t.rightData.filter(g=>m[t.options.value]==g[t.options.value]),D=t.rightData.filter(g=>m[t.options.value]!=g[t.options.value]);r("update:leftData",t.leftData.concat(v)),r("update:rightData",D),r("left"),n.rightChecked=n.rightChecked.filter(g=>m[t.options.value]!=g)}},F=()=>{if(n.rightChecked?.length>0){let m=t.rightData.filter(D=>n.rightChecked.some(g=>g==D[t.options.value])),v=t.rightData.filter(D=>n.rightChecked.every(g=>g!=D[t.options.value]));r("update:leftData",t.leftData.concat(m)),r("update:rightData",v),r("left"),n.rightChecked=[]}},C=()=>{if(s.value?.length>0){let m=s.value.filter(g=>g[t.options.disabled]==!1),v=t.rightData.filter(g=>m.some(B=>B[t.options.value]==g[t.options.value])),D=t.rightData.filter(g=>m.every(B=>B[t.options.value]!=g[t.options.value]));r("update:leftData",t.leftData.concat(v)),r("update:rightData",D),r("allLeft"),n.rightChecked=[]}};return(m,v)=>{const D=h.resolveComponent("el-checkbox"),g=h.resolveComponent("el-input"),B=h.resolveComponent("el-checkbox-group"),y=h.resolveComponent("el-col"),A=h.resolveComponent("el-button"),_=h.resolveComponent("el-row");return h.openBlock(),h.createBlock(_,{gutter:10},{default:h.withCtx(()=>[h.createVNode(y,{span:10},{default:h.withCtx(()=>[h.createElementVNode("div",MN,[h.createElementVNode("p",LN,[h.createVNode(D,{modelValue:n.leftAllChecked,"onUpdate:modelValue":v[0]||(v[0]=w=>n.leftAllChecked=w),indeterminate:o.value,"validate-event":!1,onChange:i},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(t.leftTitle),1)]),_:1},8,["modelValue","indeterminate"]),h.createElementVNode("span",null,h.toDisplayString(n.leftChecked.length)+"/"+h.toDisplayString(t.leftData.length),1)]),h.createElementVNode("div",PN,[h.createVNode(g,{class:"transfer-panel__filter",modelValue:n.leftKeyword,"onUpdate:modelValue":v[1]||(v[1]=w=>n.leftKeyword=w),placeholder:"\u641C\u7D22","prefix-icon":"ele-Search",clearable:"","validate-event":!1},null,8,["modelValue"]),h.withDirectives(h.createVNode(B,{modelValue:n.leftChecked,"onUpdate:modelValue":v[2]||(v[2]=w=>n.leftChecked=w),"validate-event":!1,class:"fm-transfer-panel__list"},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(a.value,(w,x)=>(h.openBlock(),h.createBlock(D,{key:x,value:w[t.options.value],label:w[t.options.label],disabled:w[t.options.disabled],"validate-event":!1,class:"fm-transfer-panel__item",onDblclick:b=>E(w)},null,8,["value","label","disabled","onDblclick"]))),128))]),_:1},8,["modelValue"]),[[h.vShow,!0]])])])]),_:1}),h.createVNode(y,{span:4,class:"fm-transfer-buttons"},{default:h.withCtx(()=>[h.createElementVNode("div",NN,[h.createVNode(A,{type:"primary",style:{},icon:"ele-ArrowRight",onClick:d})]),h.createElementVNode("div",IN,[h.createVNode(A,{type:"primary",style:{},icon:"ele-ArrowLeft",onClick:F})]),h.createElementVNode("div",RN,[h.createVNode(A,{type:"primary",style:{},icon:"ele-DArrowRight",onClick:f})]),h.createElementVNode("div",ON,[h.createVNode(A,{type:"primary",style:{},icon:"ele-DArrowLeft",onClick:C})])]),_:1}),h.createVNode(y,{span:10},{default:h.withCtx(()=>[h.createElementVNode("div",VN,[h.createElementVNode("p",zN,[h.createVNode(D,{modelValue:n.rightAllChecked,"onUpdate:modelValue":v[3]||(v[3]=w=>n.rightAllChecked=w),indeterminate:c.value,"validate-event":!1,onChange:l},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(t.rightTitle),1)]),_:1},8,["modelValue","indeterminate"]),h.createElementVNode("span",null,h.toDisplayString(n.rightChecked.length)+"/"+h.toDisplayString(t.rightData.length),1)]),h.createElementVNode("div",HN,[h.createVNode(g,{class:"transfer-panel__filter",modelValue:n.rightKeyword,"onUpdate:modelValue":v[4]||(v[4]=w=>n.rightKeyword=w),placeholder:"\u641C\u7D22","prefix-icon":"ele-Search",clearable:"","validate-event":!1},null,8,["modelValue"]),h.withDirectives(h.createVNode(B,{modelValue:n.rightChecked,"onUpdate:modelValue":v[5]||(v[5]=w=>n.rightChecked=w),"validate-event":!1,class:"fm-transfer-panel__list"},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(s.value,(w,x)=>(h.openBlock(),h.createBlock(D,{key:x,value:w[t.options.value],label:w[t.options.label],disabled:w[t.options.disabled],"validate-event":!1,class:"fm-transfer-panel__item",onDblclick:b=>p(w)},null,8,["value","label","disabled","onDblclick"]))),128))]),_:1},8,["modelValue"]),[[h.vShow,!0]])])])]),_:1})]),_:1})}}});const GN={class:"notice-bar-warp-text-box"},qN=["innerHTML"];var WN=h.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(e,{emit:u}){const t=e,r=h.ref(null),n=h.ref(null),a=h.reactive({isMode:!1,warpOWidth:0,textOWidth:0,animationDuration:0});h.onMounted(async()=>{t.scrollable||i()});const i=()=>{h.nextTick(()=>{if(r.value&&n.value){a.warpOWidth=r.value.offsetWidth,a.textOWidth=n.value.scrollWidth,a.animationDuration=(a.textOWidth+a.warpOWidth)/t.speed,n.value.style.animation="none",n.value.offsetHeight,n.value.style.animation=`marquee ${a.animationDuration}s linear infinite`;const o=` @keyframes marquee { 0% { transform: translateX(${a.warpOWidth}px); } 100% { transform: translateX(-${a.textOWidth}px); } } `,s=document.createElement("style");s.innerText=o,document.head.appendChild(s)}})};return(o,s)=>h.withDirectives((h.openBlock(),h.createElementBlock("div",{class:"fm-notice-bar",style:h.normalizeStyle({background:e.background,height:`${e.height}px`})},[h.createElementVNode("div",{class:"notice-bar-warp",style:h.normalizeStyle({color:e.color,fontSize:`${e.size}px`}),ref_key:"noticeBarWarpRef",ref:r},[e.leftIcon?(h.openBlock(),h.createElementBlock("i",{key:0,class:h.normalizeClass(["notice-bar-warp-left-icon",e.leftIcon])},null,2)):h.createCommentVNode("v-if",!0),h.createElementVNode("div",GN,[h.createElementVNode("div",{class:"notice-bar-warp-text",ref_key:"noticeBarTextRef",ref:n},[h.createElementVNode("div",{innerHTML:t.text,"data-slate-editor":""},null,8,qN)],512)])],4)],4)),[[h.vShow,!a.isMode]])}}),$N={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 e=this.$refs.dragVerify;e.style.setProperty("--textColor",this.textColor),e.style.setProperty("--width",Math.floor(this.width/2)+"px"),e.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 e=this.minDegree,u=this.maxDegree,t=Math.floor(e+Math.random()*(u-e));this.ranRotate=t,this.imgStyle={transform:`rotateZ(${t}deg)`}},dragStart:function(e){this.isPassing||(this.isMoving=!0,this.x=e.pageX||e.touches[0].pageX),this.showBar=!0,this.showErrorTip=!1,this.$emit("handlerMove")},dragMoving:function(e){if(this.isMoving&&!this.isPassing){var u=(e.pageX||e.touches[0].pageX)-this.x,t=this.$refs.handler;t.style.left=u+"px";var r=this.$refs.progressBar;r.style.width=u+this.height/2+"px";var n=Math.ceil(u/(this.width-this.height)*this.maxDegree*this.factor);this.cRotate=n;var a=this.ranRotate-n;this.imgStyle={transform:`rotateZ(${a}deg)`}}},dragFinish:function(e){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 u=this;setTimeout(function(){var t=u.$refs.handler,r=u.$refs.progressBar;t.style.left="0",r.style.width="0",u.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 e=this.$refs.handler;e.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 e=this.$options.data();for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this[r]=e[r]);var u=this.$refs.handler,t=this.$refs.message;u.style.left="0",this.$refs.progressBar.style.width="0",u.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()}}}},M4=(e,u)=>{const t=e.__vccOpts||e;for(const[r,n]of u)t[r]=n;return t};const jN={class:"drag-verify-container"},YN=["src"],KN={key:0,class:"tips success"},XN={key:1,class:"tips danger"};function ZN(e,u,t,r,n,a){return h.openBlock(),h.createElementBlock("div",jN,[h.createElementVNode("div",{style:h.normalizeStyle([a.dragVerifyImgStyle,{"background-color":"var(--el-color-primary)"}])},[h.createElementVNode("img",{ref:"checkImg",src:t.imgsrc,class:h.normalizeClass(["check-img",{goOrigin:n.isOk}]),onLoad:u[0]||(u[0]=(...i)=>a.checkimgLoaded&&a.checkimgLoaded(...i)),style:h.normalizeStyle(n.imgStyle),alt:""},null,46,YN),t.showTips&&t.isPassing?(h.openBlock(),h.createElementBlock("div",KN,h.toDisplayString(t.successTip),1)):h.createCommentVNode("v-if",!0),t.showTips&&!t.isPassing&&n.showErrorTip?(h.openBlock(),h.createElementBlock("div",XN,h.toDisplayString(t.failTip),1)):h.createCommentVNode("v-if",!0)],4),h.createElementVNode("div",{ref:"dragVerify",class:"drag_verify",style:h.normalizeStyle(a.dragVerifyStyle),onMousemove:u[3]||(u[3]=(...i)=>a.dragMoving&&a.dragMoving(...i)),onMouseup:u[4]||(u[4]=(...i)=>a.dragFinish&&a.dragFinish(...i)),onMouseleave:u[5]||(u[5]=(...i)=>a.dragFinish&&a.dragFinish(...i)),onTouchmove:u[6]||(u[6]=h.withModifiers((...i)=>a.dragMoving&&a.dragMoving(...i),["prevent"])),onTouchend:u[7]||(u[7]=h.withModifiers((...i)=>a.dragFinish&&a.dragFinish(...i),["prevent"]))},[h.createElementVNode("div",{class:h.normalizeClass(["dv_progress_bar",{goFirst2:n.isOk}]),ref:"progressBar",style:h.normalizeStyle(a.progressBarStyle)},h.toDisplayString(a.successMessage),7),h.createElementVNode("div",{class:"dv_text",style:h.normalizeStyle(a.textStyle),ref:"message"},h.toDisplayString(a.message),5),h.createElementVNode("div",{class:h.normalizeClass(["dv_handler dv_handler_bg",{goFirst:n.isOk}]),onMousedown:u[1]||(u[1]=(...i)=>a.dragStart&&a.dragStart(...i)),onTouchstart:u[2]||(u[2]=h.withModifiers((...i)=>a.dragStart&&a.dragStart(...i),["prevent"])),ref:"handler",style:h.normalizeStyle([a.handlerStyle,{"background-color":"var(--el-color-primary)"}])},[h.createElementVNode("i",{class:h.normalizeClass(t.handlerIcon),style:{color:"#fff"}},null,2)],38)],36)])}var JN=M4($N,[["render",ZN],["__scopeId","data-v-9e8c9ed2"]]),QN=h.defineComponent({name:"Fmselect",__name:"index",props:h.mergeModels({optionData:{type:Array,default:[]},bvalue:{type:String,default:"id"},blabel:{type:String,default:"name"},elabel:{type:String,default:"\u8BF7\u9009\u62E9"},isshowelabel:{type:Boolean,default:!0},placeholder:{type:String,default:"\u8BF7\u9009\u62E9"}},{id:{type:Number,default:0},idModifiers:{},name:{type:String,default:""},nameModifiers:{}}),emits:h.mergeModels(["change"],["update:id","update:name"]),setup(e,{emit:u}){const t=h.useModel(e,"id"),r=h.useModel(e,"name"),n=e,a=u,i=o=>{const s=n.optionData.find(l=>l[n.bvalue]==o);r.value=s==null?"":s[n.blabel],a("change",s)};return(o,s)=>{const l=h.resolveComponent("el-option"),c=h.resolveComponent("el-select");return h.openBlock(),h.createBlock(c,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=E=>t.value=E),placeholder:e.placeholder,onChange:i},{default:h.withCtx(()=>[e.isshowelabel?(h.openBlock(),h.createBlock(l,{key:0,value:0,label:e.elabel},null,8,["label"])):h.createCommentVNode("v-if",!0),(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.optionData,(E,d)=>(h.openBlock(),h.createBlock(l,{key:d,value:E[e.bvalue],label:E[e.blabel]},null,8,["value","label"]))),128))]),_:1},8,["modelValue","placeholder"])}}});function L4(e,u){return function(){return e.apply(u,arguments)}}const{toString:uI}=Object.prototype,{getPrototypeOf:EE}=Object,{iterator:D6,toStringTag:P4}=Symbol,g6=(e=>u=>{const t=uI.call(u);return e[t]||(e[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Or=e=>(e=e.toLowerCase(),u=>g6(u)===e),B6=e=>u=>typeof u===e,{isArray:Wo}=Array,$o=B6("undefined");function Ls(e){return e!==null&&!$o(e)&&e.constructor!==null&&!$o(e.constructor)&&Ut(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const N4=Or("ArrayBuffer");function eI(e){let u;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?u=ArrayBuffer.isView(e):u=e&&e.buffer&&N4(e.buffer),u}const tI=B6("string"),Ut=B6("function"),I4=B6("number"),Ps=e=>e!==null&&typeof e=="object",rI=e=>e===!0||e===!1,A6=e=>{if(g6(e)!=="object")return!1;const u=EE(e);return(u===null||u===Object.prototype||Object.getPrototypeOf(u)===null)&&!(P4 in e)&&!(D6 in e)},nI=e=>{if(!Ps(e)||Ls(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},aI=Or("Date"),iI=Or("File"),oI=Or("Blob"),sI=Or("FileList"),lI=e=>Ps(e)&&Ut(e.pipe),cI=e=>{let u;return e&&(typeof FormData=="function"&&e instanceof FormData||Ut(e.append)&&((u=g6(e))==="formdata"||u==="object"&&Ut(e.toString)&&e.toString()==="[object FormData]"))},EI=Or("URLSearchParams"),[dI,fI,pI,hI]=["ReadableStream","Request","Response","Headers"].map(Or),CI=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ns(e,u,{allOwnKeys:t=!1}={}){if(e===null||typeof e>"u")return;let r,n;if(typeof e!="object"&&(e=[e]),Wo(e))for(r=0,n=e.length;r<n;r++)u.call(null,e[r],r,e);else{if(Ls(e))return;const a=t?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length;let o;for(r=0;r<i;r++)o=a[r],u.call(null,e[o],o,e)}}function R4(e,u){if(Ls(e))return null;u=u.toLowerCase();const t=Object.keys(e);let r=t.length,n;for(;r-- >0;)if(n=t[r],u===n.toLowerCase())return n;return null}const li=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,O4=e=>!$o(e)&&e!==li;function dE(){const{caseless:e,skipUndefined:u}=O4(this)&&this||{},t={},r=(n,a)=>{const i=e&&R4(t,a)||a;A6(t[i])&&A6(n)?t[i]=dE(t[i],n):A6(n)?t[i]=dE({},n):Wo(n)?t[i]=n.slice():(!u||!$o(n))&&(t[i]=n)};for(let n=0,a=arguments.length;n<a;n++)arguments[n]&&Ns(arguments[n],r);return t}const FI=(e,u,t,{allOwnKeys:r}={})=>(Ns(u,(n,a)=>{t&&Ut(n)?e[a]=L4(n,t):e[a]=n},{allOwnKeys:r}),e),mI=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),vI=(e,u,t,r)=>{e.prototype=Object.create(u.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:u.prototype}),t&&Object.assign(e.prototype,t)},DI=(e,u,t,r)=>{let n,a,i;const o={};if(u=u||{},e==null)return u;do{for(n=Object.getOwnPropertyNames(e),a=n.length;a-- >0;)i=n[a],(!r||r(i,e,u))&&!o[i]&&(u[i]=e[i],o[i]=!0);e=t!==!1&&EE(e)}while(e&&(!t||t(e,u))&&e!==Object.prototype);return u},gI=(e,u,t)=>{e=String(e),(t===void 0||t>e.length)&&(t=e.length),t-=u.length;const r=e.indexOf(u,t);return r!==-1&&r===t},BI=e=>{if(!e)return null;if(Wo(e))return e;let u=e.length;if(!I4(u))return null;const t=new Array(u);for(;u-- >0;)t[u]=e[u];return t},AI=(e=>u=>e&&u instanceof e)(typeof Uint8Array<"u"&&EE(Uint8Array)),yI=(e,u)=>{const r=(e&&e[D6]).call(e);let n;for(;(n=r.next())&&!n.done;){const a=n.value;u.call(e,a[0],a[1])}},_I=(e,u)=>{let t;const r=[];for(;(t=e.exec(u))!==null;)r.push(t);return r},xI=Or("HTMLFormElement"),bI=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),V4=(({hasOwnProperty:e})=>(u,t)=>e.call(u,t))(Object.prototype),wI=Or("RegExp"),z4=(e,u)=>{const t=Object.getOwnPropertyDescriptors(e),r={};Ns(t,(n,a)=>{let i;(i=u(n,a,e))!==!1&&(r[a]=i||n)}),Object.defineProperties(e,r)},SI=e=>{z4(e,(u,t)=>{if(Ut(e)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const r=e[t];if(Ut(r)){if(u.enumerable=!1,"writable"in u){u.writable=!1;return}u.set||(u.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},TI=(e,u)=>{const t={},r=n=>{n.forEach(a=>{t[a]=!0})};return Wo(e)?r(e):r(String(e).split(u)),t},kI=()=>{},MI=(e,u)=>e!=null&&Number.isFinite(e=+e)?e:u;function LI(e){return!!(e&&Ut(e.append)&&e[P4]==="FormData"&&e[D6])}const PI=e=>{const u=new Array(10),t=(r,n)=>{if(Ps(r)){if(u.indexOf(r)>=0)return;if(Ls(r))return r;if(!("toJSON"in r)){u[n]=r;const a=Wo(r)?[]:{};return Ns(r,(i,o)=>{const s=t(i,n+1);!$o(s)&&(a[o]=s)}),u[n]=void 0,a}}return r};return t(e,0)},NI=Or("AsyncFunction"),II=e=>e&&(Ps(e)||Ut(e))&&Ut(e.then)&&Ut(e.catch),H4=((e,u)=>e?setImmediate:u?((t,r)=>(li.addEventListener("message",({source:n,data:a})=>{n===li&&a===t&&r.length&&r.shift()()},!1),n=>{r.push(n),li.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",Ut(li.postMessage)),RI=typeof queueMicrotask<"u"?queueMicrotask.bind(li):typeof process<"u"&&process.nextTick||H4;var j={isArray:Wo,isArrayBuffer:N4,isBuffer:Ls,isFormData:cI,isArrayBufferView:eI,isString:tI,isNumber:I4,isBoolean:rI,isObject:Ps,isPlainObject:A6,isEmptyObject:nI,isReadableStream:dI,isRequest:fI,isResponse:pI,isHeaders:hI,isUndefined:$o,isDate:aI,isFile:iI,isBlob:oI,isRegExp:wI,isFunction:Ut,isStream:lI,isURLSearchParams:EI,isTypedArray:AI,isFileList:sI,forEach:Ns,merge:dE,extend:FI,trim:CI,stripBOM:mI,inherits:vI,toFlatObject:DI,kindOf:g6,kindOfTest:Or,endsWith:gI,toArray:BI,forEachEntry:yI,matchAll:_I,isHTMLForm:xI,hasOwnProperty:V4,hasOwnProp:V4,reduceDescriptors:z4,freezeMethods:SI,toObjectSet:TI,toCamelCase:bI,noop:kI,toFiniteNumber:MI,findKey:R4,global:li,isContextDefined:O4,isSpecCompliantForm:LI,toJSONObject:PI,isAsyncFn:NI,isThenable:II,setImmediate:H4,asap:RI,isIterable:e=>e!=null&&Ut(e[D6])};function xu(e,u,t,r,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",u&&(this.code=u),t&&(this.config=t),r&&(this.request=r),n&&(this.response=n,this.status=n.status?n.status:null)}j.inherits(xu,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:j.toJSONObject(this.config),code:this.code,status:this.status}}});const U4=xu.prototype,G4={};["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(e=>{G4[e]={value:e}}),Object.defineProperties(xu,G4),Object.defineProperty(U4,"isAxiosError",{value:!0}),xu.from=(e,u,t,r,n,a)=>{const i=Object.create(U4);j.toFlatObject(e,i,function(c){return c!==Error.prototype},l=>l!=="isAxiosError");const o=e&&e.message?e.message:"Error",s=u==null&&e?e.code:u;return xu.call(i,o,s,t,r,n),e&&i.cause==null&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",a&&Object.assign(i,a),i};var fE=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Re(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pE,q4;function OI(){return q4||(q4=1,pE=typeof self=="object"?self.FormData:window.FormData),pE}var VI=OI(),W4=Re(VI);function hE(e){return j.isPlainObject(e)||j.isArray(e)}function $4(e){return j.endsWith(e,"[]")?e.slice(0,-2):e}function j4(e,u,t){return e?e.concat(u).map(function(n,a){return n=$4(n),!t&&a?"["+n+"]":n}).join(t?".":""):u}function zI(e){return j.isArray(e)&&!e.some(hE)}const HI=j.toFlatObject(j,{},null,function(u){return/^is[A-Z]/.test(u)});function y6(e,u,t){if(!j.isObject(e))throw new TypeError("target must be an object");u=u||new(W4||FormData),t=j.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(F,C){return!j.isUndefined(C[F])});const r=t.metaTokens,n=t.visitor||c,a=t.dots,i=t.indexes,s=(t.Blob||typeof Blob<"u"&&Blob)&&j.isSpecCompliantForm(u);if(!j.isFunction(n))throw new TypeError("visitor must be a function");function l(p){if(p===null)return"";if(j.isDate(p))return p.toISOString();if(j.isBoolean(p))return p.toString();if(!s&&j.isBlob(p))throw new xu("Blob is not supported. Use a Buffer instead.");return j.isArrayBuffer(p)||j.isTypedArray(p)?s&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,F,C){let m=p;if(p&&!C&&typeof p=="object"){if(j.endsWith(F,"{}"))F=r?F:F.slice(0,-2),p=JSON.stringify(p);else if(j.isArray(p)&&zI(p)||(j.isFileList(p)||j.endsWith(F,"[]"))&&(m=j.toArray(p)))return F=$4(F),m.forEach(function(D,g){!(j.isUndefined(D)||D===null)&&u.append(i===!0?j4([F],g,a):i===null?F:F+"[]",l(D))}),!1}return hE(p)?!0:(u.append(j4(C,F,a),l(p)),!1)}const E=[],d=Object.assign(HI,{defaultVisitor:c,convertValue:l,isVisitable:hE});function f(p,F){if(!j.isUndefined(p)){if(E.indexOf(p)!==-1)throw Error("Circular reference detected in "+F.join("."));E.push(p),j.forEach(p,function(m,v){(!(j.isUndefined(m)||m===null)&&n.call(u,m,j.isString(v)?v.trim():v,F,d))===!0&&f(m,F?F.concat(v):[v])}),E.pop()}}if(!j.isObject(e))throw new TypeError("data must be an object");return f(e),u}function Y4(e){const u={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return u[r]})}function K4(e,u){this._pairs=[],e&&y6(e,this,u)}const X4=K4.prototype;X4.append=function(u,t){this._pairs.push([u,t])},X4.toString=function(u){const t=u?function(r){return u.call(this,r,Y4)}:Y4;return this._pairs.map(function(n){return t(n[0])+"="+t(n[1])},"").join("&")};function UI(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function CE(e,u,t){if(!u)return e;const r=t&&t.encode||UI;j.isFunction(t)&&(t={serialize:t});const n=t&&t.serialize;let a;if(n?a=n(u,t):a=j.isURLSearchParams(u)?u.toString():new K4(u,t).toString(r),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Z4{constructor(){this.handlers=[]}use(u,t,r){return this.handlers.push({fulfilled:u,rejected:t,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(u){this.handlers[u]&&(this.handlers[u]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(u){j.forEach(this.handlers,function(r){r!==null&&u(r)})}}var FE={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},GI=lE.URLSearchParams;const mE="abcdefghijklmnopqrstuvwxyz",J4="0123456789",Q4={DIGIT:J4,ALPHA:mE,ALPHA_DIGIT:mE+mE.toUpperCase()+J4};var qI={isNode:!0,classes:{URLSearchParams:GI,FormData:W4,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:Q4,generateString:(e=16,u=Q4.ALPHA_DIGIT)=>{let t="";const{length:r}=u,n=new Uint32Array(e);TN.randomFillSync(n);for(let a=0;a<e;a++)t+=u[n[a]%r];return t},protocols:["http","https","file","data"]};const vE=typeof window<"u"&&typeof document<"u",DE=typeof navigator=="object"&&navigator||void 0,WI=vE&&(!DE||["ReactNative","NativeScript","NS"].indexOf(DE.product)<0),$I=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",jI=vE&&window.location.href||"http://localhost";var YI=Object.freeze({__proto__:null,hasBrowserEnv:vE,hasStandardBrowserEnv:WI,hasStandardBrowserWebWorkerEnv:$I,navigator:DE,origin:jI}),be={...YI,...qI};function KI(e,u){return y6(e,new be.classes.URLSearchParams,{visitor:function(t,r,n,a){return be.isNode&&j.isBuffer(t)?(this.append(r,t.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...u})}function XI(e){return j.matchAll(/\w+|\[(\w*)]/g,e).map(u=>u[0]==="[]"?"":u[1]||u[0])}function ZI(e){const u={},t=Object.keys(e);let r;const n=t.length;let a;for(r=0;r<n;r++)a=t[r],u[a]=e[a];return u}function u9(e){function u(t,r,n,a){let i=t[a++];if(i==="__proto__")return!0;const o=Number.isFinite(+i),s=a>=t.length;return i=!i&&j.isArray(n)?n.length:i,s?(j.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!o):((!n[i]||!j.isObject(n[i]))&&(n[i]=[]),u(t,r,n[i],a)&&j.isArray(n[i])&&(n[i]=ZI(n[i])),!o)}if(j.isFormData(e)&&j.isFunction(e.entries)){const t={};return j.forEachEntry(e,(r,n)=>{u(XI(r),n,t,0)}),t}return null}function JI(e,u,t){if(j.isString(e))try{return(u||JSON.parse)(e),j.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(t||JSON.stringify)(e)}const Is={transitional:FE,adapter:["xhr","http","fetch"],transformRequest:[function(u,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,a=j.isObject(u);if(a&&j.isHTMLForm(u)&&(u=new FormData(u)),j.isFormData(u))return n?JSON.stringify(u9(u)):u;if(j.isArrayBuffer(u)||j.isBuffer(u)||j.isStream(u)||j.isFile(u)||j.isBlob(u)||j.isReadableStream(u))return u;if(j.isArrayBufferView(u))return u.buffer;if(j.isURLSearchParams(u))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),u.toString();let o;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return KI(u,this.formSerializer).toString();if((o=j.isFileList(u))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return y6(o?{"files[]":u}:u,s&&new s,this.formSerializer)}}return a||n?(t.setContentType("application/json",!1),JI(u)):u}],transformResponse:[function(u){const t=this.transitional||Is.transitional,r=t&&t.forcedJSONParsing,n=this.responseType==="json";if(j.isResponse(u)||j.isReadableStream(u))return u;if(u&&j.isString(u)&&(r&&!this.responseType||n)){const i=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(u,this.parseReviver)}catch(o){if(i)throw o.name==="SyntaxError"?xu.from(o,xu.ERR_BAD_RESPONSE,this,null,this.response):o}}return u}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:be.classes.FormData,Blob:be.classes.Blob},validateStatus:function(u){return u>=200&&u<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};j.forEach(["delete","get","head","post","put","patch"],e=>{Is.headers[e]={}});const QI=j.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 uR=e=>{const u={};let t,r,n;return e&&e.split(` `).forEach(function(i){n=i.indexOf(":"),t=i.substring(0,n).trim().toLowerCase(),r=i.substring(n+1).trim(),!(!t||u[t]&&QI[t])&&(t==="set-cookie"?u[t]?u[t].push(r):u[t]=[r]:u[t]=u[t]?u[t]+", "+r:r)}),u};const e9=Symbol("internals");function Rs(e){return e&&String(e).trim().toLowerCase()}function _6(e){return e===!1||e==null?e:j.isArray(e)?e.map(_6):String(e)}function eR(e){const u=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=t.exec(e);)u[r[1]]=r[2];return u}const tR=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function gE(e,u,t,r,n){if(j.isFunction(r))return r.call(this,u,t);if(n&&(u=t),!!j.isString(u)){if(j.isString(r))return u.indexOf(r)!==-1;if(j.isRegExp(r))return r.test(u)}}function rR(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(u,t,r)=>t.toUpperCase()+r)}function nR(e,u){const t=j.toCamelCase(" "+u);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+t,{value:function(n,a,i){return this[r].call(this,u,n,a,i)},configurable:!0})})}let lt=class{constructor(u){u&&this.set(u)}set(u,t,r){const n=this;function a(o,s,l){const c=Rs(s);if(!c)throw new Error("header name must be a non-empty string");const E=j.findKey(n,c);(!E||n[E]===void 0||l===!0||l===void 0&&n[E]!==!1)&&(n[E||s]=_6(o))}const i=(o,s)=>j.forEach(o,(l,c)=>a(l,c,s));if(j.isPlainObject(u)||u instanceof this.constructor)i(u,t);else if(j.isString(u)&&(u=u.trim())&&!tR(u))i(uR(u),t);else if(j.isObject(u)&&j.isIterable(u)){let o={},s,l;for(const c of u){if(!j.isArray(c))throw TypeError("Object iterator must return a key-value pair");o[l=c[0]]=(s=o[l])?j.isArray(s)?[...s,c[1]]:[s,c[1]]:c[1]}i(o,t)}else u!=null&&a(t,u,r);return this}get(u,t){if(u=Rs(u),u){const r=j.findKey(this,u);if(r){const n=this[r];if(!t)return n;if(t===!0)return eR(n);if(j.isFunction(t))return t.call(this,n,r);if(j.isRegExp(t))return t.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(u,t){if(u=Rs(u),u){const r=j.findKey(this,u);return!!(r&&this[r]!==void 0&&(!t||gE(this,this[r],r,t)))}return!1}delete(u,t){const r=this;let n=!1;function a(i){if(i=Rs(i),i){const o=j.findKey(r,i);o&&(!t||gE(r,r[o],o,t))&&(delete r[o],n=!0)}}return j.isArray(u)?u.forEach(a):a(u),n}clear(u){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const a=t[r];(!u||gE(this,this[a],a,u,!0))&&(delete this[a],n=!0)}return n}normalize(u){const t=this,r={};return j.forEach(this,(n,a)=>{const i=j.findKey(r,a);if(i){t[i]=_6(n),delete t[a];return}const o=u?rR(a):String(a).trim();o!==a&&delete t[a],t[o]=_6(n),r[o]=!0}),this}concat(...u){return this.constructor.concat(this,...u)}toJSON(u){const t=Object.create(null);return j.forEach(this,(r,n)=>{r!=null&&r!==!1&&(t[n]=u&&j.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([u,t])=>u+": "+t).join(` `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(u){return u instanceof this?u:new this(u)}static concat(u,...t){const r=new this(u);return t.forEach(n=>r.set(n)),r}static accessor(u){const r=(this[e9]=this[e9]={accessors:{}}).accessors,n=this.prototype;function a(i){const o=Rs(i);r[o]||(nR(n,i),r[o]=!0)}return j.isArray(u)?u.forEach(a):a(u),this}};lt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),j.reduceDescriptors(lt.prototype,({value:e},u)=>{let t=u[0].toUpperCase()+u.slice(1);return{get:()=>e,set(r){this[t]=r}}}),j.freezeMethods(lt);function BE(e,u){const t=this||Is,r=u||t,n=lt.from(r.headers);let a=r.data;return j.forEach(e,function(o){a=o.call(t,a,n.normalize(),u?u.status:void 0)}),n.normalize(),a}function t9(e){return!!(e&&e.__CANCEL__)}function Ca(e,u,t){xu.call(this,e??"canceled",xu.ERR_CANCELED,u,t),this.name="CanceledError"}j.inherits(Ca,xu,{__CANCEL__:!0});function jo(e,u,t){const r=t.config.validateStatus;!t.status||!r||r(t.status)?e(t):u(new xu("Request failed with status code "+t.status,[xu.ERR_BAD_REQUEST,xu.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function aR(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function iR(e,u){return u?e.replace(/\/?\/$/,"")+"/"+u.replace(/^\/+/,""):e}function AE(e,u,t){let r=!aR(u);return e&&(r||t==!1)?iR(e,u):u}var yE={},r9;function oR(){if(r9)return yE;r9=1;var e=lE.parse,u={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},t=String.prototype.endsWith||function(i){return i.length<=this.length&&this.indexOf(i,this.length-i.length)!==-1};function r(i){var o=typeof i=="string"?e(i):i||{},s=o.protocol,l=o.host,c=o.port;if(typeof l!="string"||!l||typeof s!="string"||(s=s.split(":",1)[0],l=l.replace(/:\d*$/,""),c=parseInt(c)||u[s]||0,!n(l,c)))return"";var E=a("npm_config_"+s+"_proxy")||a(s+"_proxy")||a("npm_config_proxy")||a("all_proxy");return E&&E.indexOf("://")===-1&&(E=s+"://"+E),E}function n(i,o){var s=(a("npm_config_no_proxy")||a("no_proxy")).toLowerCase();return s?s==="*"?!1:s.split(/[,\s]/).every(function(l){if(!l)return!0;var c=l.match(/^(.+):(\d+)$/),E=c?c[1]:l,d=c?parseInt(c[2]):0;return d&&d!==o?!0:/^[.*]/.test(E)?(E.charAt(0)==="*"&&(E=E.slice(1)),!t.call(i,E)):i!==E}):!0}function a(i){return process.env[i.toLowerCase()]||process.env[i.toUpperCase()]||""}return yE.getProxyForUrl=r,yE}var sR=oR(),lR=Re(sR),x6={exports:{}},b6={exports:{}},_E,n9;function cR(){if(n9)return _E;n9=1;var e=1e3,u=e*60,t=u*60,r=t*24,n=r*7,a=r*365.25;_E=function(c,E){E=E||{};var d=typeof c;if(d==="string"&&c.length>0)return i(c);if(d==="number"&&isFinite(c))return E.long?s(c):o(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))};function i(c){if(c=String(c),!(c.length>100)){var E=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(c);if(E){var d=parseFloat(E[1]),f=(E[2]||"ms").toLowerCase();switch(f){case"years":case"year":case"yrs":case"yr":case"y":return d*a;case"weeks":case"week":case"w":return d*n;case"days":case"day":case"d":return d*r;case"hours":case"hour":case"hrs":case"hr":case"h":return d*t;case"minutes":case"minute":case"mins":case"min":case"m":return d*u;case"seconds":case"second":case"secs":case"sec":case"s":return d*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return}}}}function o(c){var E=Math.abs(c);return E>=r?Math.round(c/r)+"d":E>=t?Math.round(c/t)+"h":E>=u?Math.round(c/u)+"m":E>=e?Math.round(c/e)+"s":c+"ms"}function s(c){var E=Math.abs(c);return E>=r?l(c,E,r,"day"):E>=t?l(c,E,t,"hour"):E>=u?l(c,E,u,"minute"):E>=e?l(c,E,e,"second"):c+" ms"}function l(c,E,d,f){var p=E>=d*1.5;return Math.round(c/d)+" "+f+(p?"s":"")}return _E}var xE,a9;function ER(){if(a9)return xE;a9=1;function e(u){r.debug=r,r.default=r,r.coerce=l,r.disable=o,r.enable=a,r.enabled=s,r.humanize=cR(),r.destroy=c,Object.keys(u).forEach(E=>{r[E]=u[E]}),r.names=[],r.skips=[],r.formatters={};function t(E){let d=0;for(let f=0;f<E.length;f++)d=(d<<5)-d+E.charCodeAt(f),d|=0;return r.colors[Math.abs(d)%r.colors.length]}r.selectColor=t;function r(E){let d,f=null,p,F;function C(...m){if(!C.enabled)return;const v=C,D=Number(new Date),g=D-(d||D);v.diff=g,v.prev=d,v.curr=D,d=D,m[0]=r.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let B=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(A,_)=>{if(A==="%%")return"%";B++;const w=r.formatters[_];if(typeof w=="function"){const x=m[B];A=w.call(v,x),m.splice(B,1),B--}return A}),r.formatArgs.call(v,m),(v.log||r.log).apply(v,m)}return C.namespace=E,C.useColors=r.useColors(),C.color=r.selectColor(E),C.extend=n,C.destroy=r.destroy,Object.defineProperty(C,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(p!==r.namespaces&&(p=r.namespaces,F=r.enabled(E)),F),set:m=>{f=m}}),typeof r.init=="function"&&r.init(C),C}function n(E,d){const f=r(this.namespace+(typeof d>"u"?":":d)+E);return f.log=this.log,f}function a(E){r.save(E),r.namespaces=E,r.names=[],r.skips=[];const d=(typeof E=="string"?E:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const f of d)f[0]==="-"?r.skips.push(f.slice(1)):r.names.push(f)}function i(E,d){let f=0,p=0,F=-1,C=0;for(;f<E.length;)if(p<d.length&&(d[p]===E[f]||d[p]==="*"))d[p]==="*"?(F=p,C=f,p++):(f++,p++);else if(F!==-1)p=F+1,C++,f=C;else return!1;for(;p<d.length&&d[p]==="*";)p++;return p===d.length}function o(){const E=[...r.names,...r.skips.map(d=>"-"+d)].join(",");return r.enable(""),E}function s(E){for(const d of r.skips)if(i(E,d))return!1;for(const d of r.names)if(i(E,d))return!0;return!1}function l(E){return E instanceof Error?E.stack||E.message:E}function c(){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 r.enable(r.load()),r}return xE=e,xE}var i9;function dR(){return i9||(i9=1,function(e,u){u.formatArgs=r,u.save=save,u.load=n,u.useColors=t,u.storage=a(),u.destroy=(()=>{let o=!1;return()=>{o||(o=!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`."))}})(),u.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 o;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&&(o=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(o[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(o){if(o[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+o[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const s="color: "+this.color;o.splice(1,0,s,"color: inherit");let l=0,c=0;o[0].replace(/%[a-zA-Z%]/g,E=>{E!=="%%"&&(l++,E==="%c"&&(c=l))}),o.splice(c,0,s)}u.log=console.debug||function(s){try{s?u.storage.setItem("debug",s):u.storage.removeItem("debug")}catch{}};function n(){let o;try{o=u.storage.getItem("debug")||u.storage.getItem("DEBUG")}catch{}return!o&&typeof process<"u"&&"env"in process&&(o=process.env.DEBUG),o}function a(){try{return localStorage}catch{}}e.exports=ER()(u);const{formatters:i}=e.exports;i.j=function(o){try{return JSON.stringify(o)}catch(s){return"[UnexpectedJSONParseError]: "+s.message}}}(b6,b6.exports)),b6.exports}var bE,o9;function fR(){if(o9)return bE;o9=1;var e;return bE=function(){if(!e){try{e=dR()("follow-redirects")}catch{}typeof e!="function"&&(e=function(){})}e.apply(null,arguments)},bE}var s9;function pR(){if(s9)return x6.exports;s9=1;var e=lE,u=e.URL,t=S4,r=T4,n=or.Writable,a=kN,i=fR();(function(){var R=typeof process<"u",P=typeof window<"u"&&typeof document<"u",z=S(Error.captureStackTrace);!R&&(P||!z)&&console.warn("The follow-redirects package should be excluded from browser builds.")})();var o=!1;try{a(new u(""))}catch(M){o=M.code==="ERR_INVALID_URL"}var s=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],l=["abort","aborted","connect","error","socket","timeout"],c=Object.create(null);l.forEach(function(M){c[M]=function(R,P,z){this._redirectable.emit(M,R,P,z)}});var E=w("ERR_INVALID_URL","Invalid URL",TypeError),d=w("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),f=w("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",d),p=w("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),F=w("ERR_STREAM_WRITE_AFTER_END","write after end"),C=n.prototype.destroy||D;function m(M,R){n.call(this),this._sanitizeOptions(M),this._options=M,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],R&&this.on("response",R);var P=this;this._onNativeResponse=function(z){try{P._processResponse(z)}catch(H){P.emit("error",H instanceof d?H:new d({cause:H}))}},this._performRequest()}m.prototype=Object.create(n.prototype),m.prototype.abort=function(){x(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},m.prototype.destroy=function(M){return x(this._currentRequest,M),C.call(this,M),this},m.prototype.write=function(M,R,P){if(this._ending)throw new F;if(!T(M)&&!k(M))throw new TypeError("data should be a string, Buffer or Uint8Array");if(S(R)&&(P=R,R=null),M.length===0){P&&P();return}this._requestBodyLength+M.length<=this._options.maxBodyLength?(this._requestBodyLength+=M.length,this._requestBodyBuffers.push({data:M,encoding:R}),this._currentRequest.write(M,R,P)):(this.emit("error",new p),this.abort())},m.prototype.end=function(M,R,P){if(S(M)?(P=M,M=R=null):S(R)&&(P=R,R=null),!M)this._ended=this._ending=!0,this._currentRequest.end(null,null,P);else{var z=this,H=this._currentRequest;this.write(M,R,function(){z._ended=!0,H.end(null,null,P)}),this._ending=!0}},m.prototype.setHeader=function(M,R){this._options.headers[M]=R,this._currentRequest.setHeader(M,R)},m.prototype.removeHeader=function(M){delete this._options.headers[M],this._currentRequest.removeHeader(M)},m.prototype.setTimeout=function(M,R){var P=this;function z(O){O.setTimeout(M),O.removeListener("timeout",O.destroy),O.addListener("timeout",O.destroy)}function H(O){P._timeout&&clearTimeout(P._timeout),P._timeout=setTimeout(function(){P.emit("timeout"),I()},M),z(O)}function I(){P._timeout&&(clearTimeout(P._timeout),P._timeout=null),P.removeListener("abort",I),P.removeListener("error",I),P.removeListener("response",I),P.removeListener("close",I),R&&P.removeListener("timeout",R),P.socket||P._currentRequest.removeListener("socket",H)}return R&&this.on("timeout",R),this.socket?H(this.socket):this._currentRequest.once("socket",H),this.on("socket",z),this.on("abort",I),this.on("error",I),this.on("response",I),this.on("close",I),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(M){m.prototype[M]=function(R,P){return this._currentRequest[M](R,P)}}),["aborted","connection","socket"].forEach(function(M){Object.defineProperty(m.prototype,M,{get:function(){return this._currentRequest[M]}})}),m.prototype._sanitizeOptions=function(M){if(M.headers||(M.headers={}),M.host&&(M.hostname||(M.hostname=M.host),delete M.host),!M.pathname&&M.path){var R=M.path.indexOf("?");R<0?M.pathname=M.path:(M.pathname=M.path.substring(0,R),M.search=M.path.substring(R))}},m.prototype._performRequest=function(){var M=this._options.protocol,R=this._options.nativeProtocols[M];if(!R)throw new TypeError("Unsupported protocol "+M);if(this._options.agents){var P=M.slice(0,-1);this._options.agent=this._options.agents[P]}var z=this._currentRequest=R.request(this._options,this._onNativeResponse);z._redirectable=this;for(var H of l)z.on(H,c[H]);if(this._currentUrl=/^\//.test(this._options.path)?e.format(this._options):this._options.path,this._isRedirect){var I=0,O=this,U=this._requestBodyBuffers;(function V(Y){if(z===O._currentRequest)if(Y)O.emit("error",Y);else if(I<U.length){var Z=U[I++];z.finished||z.write(Z.data,Z.encoding,V)}else O._ended&&z.end()})()}},m.prototype._processResponse=function(M){var R=M.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:M.headers,statusCode:R});var P=M.headers.location;if(!P||this._options.followRedirects===!1||R<300||R>=400){M.responseUrl=this._currentUrl,M.redirects=this._redirects,this.emit("response",M),this._requestBodyBuffers=[];return}if(x(this._currentRequest),M.destroy(),++this._redirectCount>this._options.maxRedirects)throw new f;var z,H=this._options.beforeRedirect;H&&(z=Object.assign({Host:M.req.getHeader("host")},this._options.headers));var I=this._options.method;((R===301||R===302)&&this._options.method==="POST"||R===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],_(/^content-/i,this._options.headers));var O=_(/^host$/i,this._options.headers),U=g(this._currentUrl),V=O||U.host,Y=/^\w+:/.test(P)?this._currentUrl:e.format(Object.assign(U,{host:V})),Z=B(P,Y);if(i("redirecting to",Z.href),this._isRedirect=!0,A(Z,this._options),(Z.protocol!==U.protocol&&Z.protocol!=="https:"||Z.host!==V&&!b(Z.host,V))&&_(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),S(H)){var ou={headers:M.headers,statusCode:R},ru={url:Y,method:I,headers:z};H(this._options,ou,ru),this._sanitizeOptions(this._options)}this._performRequest()};function v(M){var R={maxRedirects:21,maxBodyLength:10485760},P={};return Object.keys(M).forEach(function(z){var H=z+":",I=P[H]=M[z],O=R[z]=Object.create(I);function U(Y,Z,ou){return N(Y)?Y=A(Y):T(Y)?Y=A(g(Y)):(ou=Z,Z=y(Y),Y={protocol:H}),S(Z)&&(ou=Z,Z