@das-fed/web 1.0.2 → 6.3.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +9886 -349
- package/index.umd.cjs +41 -1
- package/package.json +9 -1
- package/style.css +2 -2
package/index.umd.cjs
CHANGED
|
@@ -1 +1,41 @@
|
|
|
1
|
-
(function(l,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router"],t):(l=typeof globalThis<"u"?globalThis:l||self,t(l["@das-fed/web"]={},l.Vue,l.VueRouter))})(this,function(l,t,y){"use strict";const p=t.ref("light"),g=t.ref({light:{},dark:{}}),A=t.ref({light:{},dark:{}}),z="dasTheme",_="das-theme",G=e=>{let n={light:{},dark:{}};if(!e)return n;const{light:a,dark:r,...c}=e||{};n.light=a||{},n.dark=r||{};for(const o in c){const i=c[o];if(typeof i=="string"&&(n.light[o]=i),typeof i=="object")for(const s in i)n[s][o]=i[s]}return n};function J(e){const n="das-global-theme",a="das-custom-theme";if(!document.getElementById(a)){const c=document.createElement("style");c.appendChild(document.createTextNode("")),c.setAttribute("id",a),document.head.appendChild(c)}if(!document.getElementById(n)){const c=document.createElement("style");c.appendChild(document.createTextNode("")),c.setAttribute("id",n),document.head.appendChild(c)}e||(e="custom");let r=document.getElementById(a);return e==="global"&&(r=document.getElementById(n)),r.sheet}const w=(e,n)=>{n||(n="custom");const a=J(n),r=G(e);for(const o in r){const i=r[o];for(const s in i){const d=i[s],m=`${_}-${o}`;a.insertRule(`.${m} { ${s}:${d} } `,a.cssRules.length)}n==="global"&&(A.value[o]||(A.value[o]={}),A.value[o]={...A.value[o],...i}),n==="custom"&&(g.value[o]||(g.value[o]={}),g.value[o]={...g.value[o],...i})}const c=`${_}-${p.value}`;document.body.classList.contains(c)||document.body.classList.add(c)},I=async e=>{var r;const n=window[z];n&&w(n,"global");const a=(r=e==null?void 0:e.theme)==null?void 0:r.glob;if(a){const c=Object.values(a).map(o=>o.default).filter(o=>!!o).flat();for(const o of c)w(o)}},Q=e=>{document.body.classList.add(`${_}-light`),e==="light"&&document.body.classList.remove(`${_}-${p.value}`),p.value=e,document.body.classList.add(`${_}-${p.value}`)},k=e=>t.computed(()=>{var n,a,r,c;return((a=(n=A.value)==null?void 0:n[p.value])==null?void 0:a[e])||((c=(r=g.value)==null?void 0:r[p.value])==null?void 0:c[e])||e}),U=e=>`var(${e})`,X=k,D=t.reactive({}),N=t.reactive({}),M=t.ref("zh-CN"),Y="dasI18n",$=(e,n)=>{const a=n==="global",r=!a;for(const c in e)a&&(N[c]=e[c]),r&&(D[c]=e[c])},R=async e=>{var r;const n=window[Y];n&&$(n,"global");const a=(r=e==null?void 0:e.i18n)==null?void 0:r.glob;if(a){const c=Object.values(a).map(o=>o.default).filter(o=>!!o).flat();for(const o of c)$(o)}},v=(e,...n)=>t.computed(()=>{const a=N[e]||D[e]||e;if(a===e)return e;let r=a[M.value];return n.map((c,o)=>{r=r.replace(`$${o}`,c)}),r}),B=v,Z=(e,...n)=>B(e,...n).value,x=e=>{M.value=e},ee=()=>M,f=t.ref([]),u={},h={},V=t.reactive({location:{}}),te={class:"das-web-app-container"},ne={class:"header",ref:"header"},ae={class:"main"},ce={class:"aside",ref:"aside"},re={class:"container"},oe={class:"tab"},ie={class:"router-view"},se={style:{width:"100%",height:"100%"}},le={style:{height:"100%",width:"100%"}},de=t.defineComponent({__name:"das-web-layout",props:{transitionConfig:{}},setup(e){const n=e,a=y.useRoute(),r=t.computed(()=>({"enter-active-class":"animate__animated animate__fadeInLeft",...n.transitionConfig||{}}));return(c,o)=>{const i=t.resolveComponent("router-view");return t.openBlock(),t.createElementBlock("div",te,[t.createElementVNode("div",ne,[t.renderSlot(c.$slots,"header",{},void 0,!0)],512),t.createElementVNode("div",ae,[t.createElementVNode("div",ce,[t.renderSlot(c.$slots,"aside",{},void 0,!0)],512),t.createElementVNode("div",re,[t.createElementVNode("div",oe,[t.renderSlot(c.$slots,"tab",{},void 0,!0)]),t.createElementVNode("div",ie,[t.withDirectives(t.createElementVNode("div",se,[t.createVNode(i,null,{default:t.withCtx(({Component:s,route:d})=>[t.createVNode(t.Transition,t.normalizeProps(t.guardReactiveProps(r.value)),{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.KeepAlive,null,[d.meta.keepAlive?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(s),{key:d.path})):t.createCommentVNode("",!0)],1024))]),_:2},1040),t.createVNode(t.Transition,t.normalizeProps(t.guardReactiveProps(r.value)),{default:t.withCtx(()=>[d.meta.keepAlive?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(s),{key:0}))]),_:2},1040)]),_:1})],512),[[t.vShow,!t.unref(a).meta.isMicroApp]]),t.withDirectives(t.createElementVNode("div",le,[t.renderSlot(c.$slots,"micro-app",{},void 0,!0)],512),[[t.vShow,t.unref(a).meta.isMicroApp]])])])])])}}}),L=(e,n)=>{const a=e.__vccOpts||e;for(const[r,c]of n)a[r]=c;return a},T=L(de,[["__scopeId","data-v-8f59fb33"]]),me=(e,n)=>{const a=f.value.find(r=>r.name===e);return a?n?(n.startsWith("/")||(n=`/${n}`),`${a.routerPrefix}${n}`):a.routerPrefix:""},C=(e,n,a,r)=>{var o;const c=f.value.find(i=>i.name===e);c&&((o=c.dom.contentWindow)==null||o.postMessage({type:n,cmd:a,data:r},c.entry))},S=(e,n,a)=>{var r;(r=window.top)==null||r.postMessage({type:e,cmd:n,data:a},V.location.origin)},F=()=>{window.addEventListener("message",e=>{e.data.type&&console.log("initMainAppEventHandler",e.data);const{type:n}=e.data||{};if(h[n])for(const a in h[n])h[n][a](e.data)},!1)},W=()=>{window.addEventListener("message",e=>{const{type:n}=e.data||{};if(u[n])for(const a in u[n])u[n][a](e.data)},!1)},E=(e,n)=>{const a=new Date().getTime()+Math.random().toString(36).slice(-8);return u[e]||(u[e]={}),u[e][a]=n,{removeEventListener:()=>{u[e]&&u[e][a]&&delete u[e][a]}}},j=(e,n)=>{const a=new Date().getTime()+Math.random().toString(36).slice(-8);return h[e]||(h[e]={}),h[e][a]=n,{removeEventListener:()=>{h[e]&&h[e][a]&&delete h[e][a]}}},fe=["src","name"],ue=L(t.defineComponent({__name:"das-micro-app",props:{src:{},name:{},actived:{type:Boolean},fullPath:{}},emits:["loaded"],setup(e,{emit:n}){const a=e,r=n,c=m=>{r("loaded",m)},o=t.computed(()=>a.actived),i=t.computed(()=>a.fullPath),s=(m,P)=>{C(a.name,"router","push",m)},d=()=>{};return t.watch(()=>i.value,s),t.watch(()=>o.value,d),(m,P)=>(t.openBlock(),t.createElementBlock("iframe",{class:"das-micro-app",src:a.src,name:a.name,frameborder:"0",onLoad:c},null,40,fe))}}),[["__scopeId","data-v-0f040a01"]]),he=t.defineComponent({__name:"das-main-app-layout",props:{transitionConfig:{}},setup(e){const n=e,a=y.useRoute(),r=t.computed(()=>({"enter-active-class":"animate__animated animate__fadeInLeft",...n.transitionConfig||{}})),c=async i=>{const s=f.value.find(b=>b.name===i),d=f.value.find(b=>b.actived),m=!!s,P=!(s!=null&&s.loaded),Me=s==null?void 0:s.actived;if(!m){d&&(d.actived=!1);return}const O=a.fullPath.replace(s.routerPrefix||"","")||"/";if(s.currentFullPath=O,P){const b=s.entry+O;s.src=b;const H=f.value.find(we=>we.actived);H&&(H.actived=!1),s.loaded=!0,s.actived=!0;return}if(!Me){d&&(d.actived=!1),s.actived=!0;return}},o=(i,s)=>{const d=f.value.find(m=>m.name===s);d&&(d.dom=i.target,C(s,"mainAppInfo","location",{origin:window.location.origin}))};return t.watch(()=>a.fullPath,()=>{var i;c(String(((i=a.meta)==null?void 0:i.microAppName)||""))}),(i,s)=>(t.openBlock(),t.createBlock(T,{"transition-config":r.value},{header:t.withCtx(()=>[t.renderSlot(i.$slots,"header")]),aside:t.withCtx(()=>[t.renderSlot(i.$slots,"aside")]),tab:t.withCtx(()=>[t.renderSlot(i.$slots,"tab")]),"micro-app":t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(f),d=>(t.openBlock(),t.createBlock(t.Transition,t.normalizeProps(t.guardReactiveProps(r.value)),{default:t.withCtx(()=>[d.loaded?t.withDirectives((t.openBlock(),t.createBlock(ue,{key:0,src:d.src||d.entry,name:d.name,"full-path":d.currentFullPath,onLoaded:m=>o(m,d.name)},null,8,["src","name","full-path","onLoaded"])),[[t.vShow,d.actived]]):t.createCommentVNode("",!0)]),_:2},1040))),256))]),_:3},8,["transition-config"]))}}),pe={};function ge(e,n){return null}const Ae=L(pe,[["render",ge]]),q=(e,n)=>{e!=null&&e.microApps&&(f.value=[],e.microApps.map(a=>{const r=(e==null?void 0:e.microAppRouterPrefix)||`/${a.name}`,c=a.entry||`//${a.name}`;n==null||n.addRoute({name:a.name,path:`${r}/:pathMatch(.*)*`,component:Ae,meta:{isMicroApp:!0,microAppName:a.name}}),f.value.push({...a,entry:c,routerPrefix:r})}),F(),j("router",a=>{var s;const{cmd:r,data:c}=a;let o={};typeof c=="string"?o.path=c:o=c;const i=(e==null?void 0:e.microAppRouterPrefix)||`/${o.meta.microAppName}`;o.path=`${i}${o.path}`,(s=n==null?void 0:n[r])==null||s.call(n,o)}))},K=(e,n)=>{if(e!=null&&e.microAppName&&(W(),E("router",a=>{var i;const{cmd:r,data:c}=a;let o={};typeof c=="string"?o.path=c:o=c,o.query={...o.query||{},changeFromMainApp:!0},(i=n==null?void 0:n[r])==null||i.call(n,o)}),E("mainAppInfo",a=>{const{cmd:r,data:c}=a;V[r]=c}),n)){let a=!0;n.afterEach(r=>{if(a){a=!1;return}r.query.changeFromMainApp||S("router","push",{path:r.path,params:r.params,query:r.query,meta:{...r.meta,microAppName:e==null?void 0:e.microAppName}})})}},_e=e=>{var o,i;const n=((o=e==null?void 0:e.router)==null?void 0:o.options)||{},r=[...Object.values(((i=e==null?void 0:e.router)==null?void 0:i.glob)||[]).map(s=>s.default).filter(s=>!!s).flat().sort((s,d)=>(s.index??0)-(d.index??0)),...(e==null?void 0:e.routes)||[]];return{router:y.createRouter({history:y.createWebHistory(),routes:r,...n})}},be={install:(e,n)=>{var r;const a=(r=n==null?void 0:n.plugins)==null?void 0:r.glob;a&&Object.values(a).sort((c,o)=>(c.index??0)-(o.index??0)).forEach(c=>{c.default&&c.default.install&&e.use(c.default,n)})}},ye=e=>{e||(e={});const n=t.ref(!0);Promise.all([I(e),R(e)]).then(()=>{n.value=!1});const{container:a,component:r,props:c}=(e==null?void 0:e.root)||{},o=t.createApp(r||T,c);o.use(be,e);const{router:i}=_e(e);return e.microApps&&e.microApps.length>0&&q(e,i),e.microAppName&&K(e,i),o.use(i),o.mount(a||"#app"),{app:o,router:i,loading:n}};l.DasMainAppLayout=he,l.DasWebLayout=T,l.addEventListenerFromMainApp=E,l.addEventListenerFromMicroApp=j,l.createDasWebApp=ye,l.currentLang=M,l.currentTheme=p,l.getI18nRule=v,l.getLang=ee,l.getMicroAppRouterPath=me,l.getThemeRule=k,l.getVar=U,l.getVarValue=X,l.i18n=B,l.initI18n=R,l.initMainApp=q,l.initMainAppEventHandler=F,l.initMicroApp=K,l.initMicroAppEventHandler=W,l.initTheme=I,l.sendMessageToMainApp=S,l.sendMessageToMicroApp=C,l.setI18nRule=$,l.setLang=x,l.setTheme=Q,l.setThemeRule=w,l.t=Z,Object.defineProperty(l,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(ve,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("vue"),require("@das-fed/web-components"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","@das-fed/web-components","vue-router"],d):(ve=typeof globalThis<"u"?globalThis:ve||self,d(ve["@das-fed/web"]={},ve.Vue,ve.webComponents,ve.VueRouter))})(this,function(ve,d,Po,In){"use strict";var Kl;const On=d.ref("light"),Tr=d.ref({light:{},dark:{}}),Cr=d.ref({light:{},dark:{}}),Op="dasTheme",Rr="das-theme",Tp=r=>{let n={light:{},dark:{}};if(!r)return n;const{light:i={},dark:a={},base:s={},...c}=r||{};n.light={...i,...s},n.dark=a||{};for(const l in c){const p=c[l];if(typeof p=="string"&&(n.light[l]=p),typeof p=="object")for(const g in p)n[g]||(n[g]={}),n[g][l]||(n[g][l]={}),n[g][l]=p[g]}return n};function Cp(r){const n="das-global-theme",i="das-custom-theme";if(!document.getElementById(i)){const s=document.createElement("style");s.appendChild(document.createTextNode("")),s.setAttribute("id",i),document.head.appendChild(s)}if(!document.getElementById(n)){const s=document.createElement("style");s.appendChild(document.createTextNode("")),s.setAttribute("id",n),document.head.appendChild(s)}r||(r="custom");let a=document.getElementById(i);return r==="global"&&(a=document.getElementById(n)),a.sheet}const Lo=(r,n)=>{n||(n="custom");const i=Cp(n),a=Tp(r);for(const c in a){const l=a[c];for(const p in l){const g=l[p],y=`${Rr}-${c}`;i.insertRule(`.${y} { ${p}:${g} } `,i.cssRules.length)}n==="global"&&(Cr.value[c]||(Cr.value[c]={}),Cr.value[c]={...Cr.value[c],...l}),n==="custom"&&(Tr.value[c]||(Tr.value[c]={}),Tr.value[c]={...Tr.value[c],...l})}const s=`${Rr}-${On.value}`;document.body.classList.contains(s)||document.body.classList.add(s)},mu=async r=>{var a;const n=window[Op];n&&Lo(n,"global");const i=(a=r==null?void 0:r.theme)==null?void 0:a.glob;if(i){const s=Object.values(i).filter(c=>!!c).flat();for(const c of s)Lo(c)}},Rp=r=>{document.body.classList.add(`${Rr}-light`),r==="light"&&document.body.classList.remove(`${Rr}-${On.value}`),On.value=r,document.body.classList.add(`${Rr}-${On.value}`)},yu=r=>d.computed(()=>{var n,i,a,s;return((i=(n=Cr.value)==null?void 0:n[On.value])==null?void 0:i[r])||((s=(a=Tr.value)==null?void 0:a[On.value])==null?void 0:s[r])||r}),xp=r=>`var(${r})`,Pp=yu,vu=d.reactive({}),wu=d.reactive({}),xr=d.ref("zh-CN"),Lp="dasI18n",Do=(r,n)=>{const i=n==="global",a=!i;for(const s in r)i&&(wu[s]=r[s]),a&&(vu[s]=r[s])},Au=async r=>{var a;const n=window[Lp];n&&Do(n,"global");const i=(a=r==null?void 0:r.i18n)==null?void 0:a.glob;if(i){const s=Object.values(i).filter(c=>!!c).flat();for(const c of s)Do(c)}},_u=(r,...n)=>d.computed(()=>{const i=wu[r]||vu[r]||r;if(i===r)return r;let a=i[xr.value];return xr.value==="zh-CN"&&i["zh-cn"]&&!i["zh-CN"]&&(a=i["zh-cn"]),n.map((s,c)=>{a=a.replace(`$${c}`,s)}),a}),bu=_u,Dp=(r,...n)=>bu(r,...n).value,Mp=r=>{xr.value=r},Bp=()=>xr,Su=d.ref("/das-micro-app"),Je=d.ref([]),fi=d.ref(!1),$t=d.ref([]),ln=d.ref(!0),Ee=d.reactive({visible:!1,logo:"",items:[],projects:[],userInfo:{},config:{},searchConfig:{},eventListeners:{}}),Fp={show:()=>{Ee.visible=!0},hide:()=>{Ee.visible=!1},setLogo:r=>{Ee.logo=r},setItems:r=>{Ee.visible||(Ee.visible=!0),Ee.items=r},getItems:()=>Ee.items,removeItem:r=>{const n=Ee.items.filter(i=>i.value!==r);Ee.items=n},appendItem:r=>{Ee.visible||(Ee.visible=!0),!Ee.items.find(i=>i.value==r.value)&&Ee.items.push(r)},setActiveItem:r=>{Ee.activeItem=r},setConfig:r=>{Ee.config=r},setProjects:r=>{Ee.projects=r},setProjectConfig:r=>{Ee.projectConfig=r},setActiveProject:r=>{Ee.activeProject=r},setUserInfo:r=>{Ee.userInfo=r},setSearchConfig:r=>{Ee.searchConfig=r},triggerEventListener:(r,n,i)=>{var l;const a=Ee.eventListeners,{autoRemove:s=!1}=i||{},c=[];for(const p in a){const g=a[p];g.type===r&&c.push((l=g==null?void 0:g.handler)==null?void 0:l.call(g,n).then(()=>{s&&g.remove()}))}return Promise.all(c).then(()=>!0).catch(()=>!1)},addEventListener:(r,n)=>{const i=new Date().getTime()+Math.random().toString(36).slice(-8),a=()=>{Ee.eventListeners[i]&&delete Ee.eventListeners[i]};return Ee.eventListeners[i]={type:r,handler:async s=>{try{await n(s)}catch(c){throw c}},remove:a},{remove:a}}},jt=d.reactive({items:[],eventListeners:{}}),kp={setItems:r=>{jt.items=r},getItems:()=>jt.items,setActiveItem:r=>{jt.activeItem=r},setPopupClassName:r=>{jt.popupClassName=r},triggerEventListener:(r,n,i)=>{var l;const a=jt.eventListeners,{autoRemove:s=!1}=i||{},c=[];for(const p in a){const g=a[p];g.type===r&&c.push((l=g==null?void 0:g.handler)==null?void 0:l.call(g,n).then(()=>{s&&g.remove()}))}return Promise.all(c).then(()=>!0).catch(()=>!1)},addEventListener:(r,n)=>{const i=new Date().getTime()+Math.random().toString(36).slice(-8),a=()=>{jt.eventListeners[i]&&delete jt.eventListeners[i]};return jt.eventListeners[i]={type:r,handler:async s=>{try{await n(s)}catch(c){throw c}},remove:a},{remove:a}}},ut=d.reactive({items:[],eventListeners:{}}),Np={setItems:r=>{ut.items=r},getItems:()=>ut.items,removeItem:r=>{const n=ut.items.filter(i=>i.value!==r);console.log(n),ut.items=n},appendItem:r=>{const n=ut.items.findIndex(i=>i.value==r.value);n!==-1?ut.items.splice(n,1,r):ut.items.push(r)},setActiveItem:r=>{ut.activeItem=r},triggerEventListener:(r,n,i)=>{var l;const a=ut.eventListeners,{autoRemove:s=!1}=i||{},c=[];for(const p in a){const g=a[p];g.type===r&&c.push((l=g==null?void 0:g.handler)==null?void 0:l.call(g,n).then(()=>{s&&g.remove()}))}return Promise.all(c).then(()=>!0).catch(()=>!1)},addEventListener:(r,n)=>{const i=new Date().getTime()+Math.random().toString(36).slice(-8),a=()=>{ut.eventListeners[i]&&delete ut.eventListeners[i]};return ut.eventListeners[i]={type:r,handler:async s=>{try{await n(s)}catch(c){throw c}},remove:a},{remove:a}}},Pr=d.reactive({eventListeners:{}}),Up={triggerEventListener:(r,n,i)=>{var l;const a=Pr.eventListeners,{autoRemove:s=!1}=i||{},c=[];for(const p in a){const g=a[p];g.type===r&&c.push((l=g==null?void 0:g.handler)==null?void 0:l.call(g,n).then(()=>{s&&g.remove()}))}return Promise.all(c).then(()=>!0).catch(()=>!1)},addEventListener:(r,n)=>{const i=new Date().getTime()+Math.random().toString(36).slice(-8),a=()=>{Pr.eventListeners[i]&&delete Pr.eventListeners[i]};return Pr.eventListeners[i]={type:r,handler:async s=>{try{await n(s)}catch(c){throw c}},remove:a},{remove:a}}},Mo=d.reactive({visible:!1,style:{}}),$p={set:(r,n)=>{Mo.visible=r,n||(n={}),n.transition||(n.transition="all 0.3s"),n&&(Mo.style=n)}},Tn={nav:Ee,menu:jt,tab:ut,overlay:Mo,iframeView:Pr,visible:d.ref(!0)},K={nav:Fp,menu:kp,tab:Np,overlay:$p,iframeView:Up,setVisible:r=>Tn.visible.value=r},Hp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAAA0CAYAAADPCHf8AAAAAXNSR0IArs4c6QAAAIRlWElmTU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAIdpAAQAAAABAAAAWgAAAAAAAABIAAAAAQAAAEgAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAAMigAwAEAAAAAQAAADQAAAAA5aXtygAAAAlwSFlzAAALEwAACxMBAJqcGAAAAVlpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDYuMC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwd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KKxMR1MTj4nP0qzpU06PxhNFqfQZC2mK+X2Tt88MusvJy/8jYNSCcjGePOScux5pkwM3pV+O6qW0vj0c4T3HJi2iegpvreDEPiDhB+U2DwlqN+548TuVoptPzhg/1Kx6gDlAJQ9AnOc/WsKfVZC0KVMWWgdxLR90vrAjGCZOSj3adQ2E0wcd51Mo0LAWRisIBD+G8TziOBQOHK7bnrZy4SX3nVwfs1fjj9zwZ2wIXgLsKBPNMxAG4mygbfM3X6WAFe/OUpV797763aUQg/gjavjF94tHWNIna28cap4yQnwYiNmbkAHuIAAPtQVlfQt7qx33HQ420DU5po1bDaMMhLQyykSkXmZmmZOPSGLo2GwzUF3WPJLENwTVSPp14X4N3DkJKdMv333gnnsc20MOXpm8+XjPbq6bv3+eV+a169sX++GzELeYjupB34VDqYiqpp3Rt5OB7ssA04jbV28xOikEzPdrDxw4in1GH9g3jt8jBMUCh55797JWOXS9ZER41k9xTWCJ5K3Ku3r5mB+yhNiE6YLYHRwtyIiz8lvxZFhVHi0IaPeuef6OBlH/05EavVMbvBuEwCcEAUEg7Cv33Lue75RDF+NlKZA5zgYFhQpzFaHRMLGQKWQEqIuUgSaqIAr+vUE8+OxkU0iTf3NiIPjTjX/++m726f5F2uvBsT37ROQOfg1C4J8GAjJUHrhay4VIOeH8pUu6UtZ3kmowJGwqGp90xZEeaLsxWgAf2nH8y7S6lezwq+pbQU1ZXjhceZ4n52LllBj5U/BrJUf+5wn+aSA2ONF/KQi4EqQPkUy+7MfD26Kxy5OWcw5ERpGmysPj+Cs+YVlqidvOPryKtxNB2usCPu3dYaHQB94f4RRQ46u7Fzd+mnbGv9RmDS7204fA/wcLhW6uFoylDQAAAABJRU5ErkJggg==",Wp=["modelValue","logoUrl","config","innerPagesConfig","searchConfig","projectTreeConfig","userInfoConfig"],Bo=d.defineComponent({__name:"das-web-nav",setup(r){const{nav:n}=Tn,i=d.computed(()=>n.logo||Hp),a=d.computed(()=>n.activeItem||""),s=d.computed(()=>(n.items||[]).filter(H=>H.fixed)),c=d.computed(()=>(n.items||[]).filter(H=>!H.fixed)),l=d.computed(()=>{var F,H,z;return{showChangeEnterprise:((F=n.config)==null?void 0:F.showChangeEnterprise)??!1,showSearch:((H=n.config)==null?void 0:H.showSearch)??!0,showProjectTree:((z=n.config)==null?void 0:z.showProjectTree)??!0,subAppList:c.value.map(Y=>({code:Y.value,name:Y.label,...Y}))}}),p=d.computed(()=>{const F=s.value.find(H=>H.value===n.activeItem);return{activeInnerPagePath:(F==null?void 0:F.path)||"",innerPages:s.value.map(H=>({title:H.label,...H}))}}),g=d.computed(()=>({projectStore:{projectTree:n.projects,currentProject:n.activeProject},...n.projectConfig})),y=d.computed(()=>n.userInfo),v=d.computed(()=>n.searchConfig),b=async F=>{const H=F.detail[0],z=s.value.find(ce=>H.value===ce.value);await K.nav.triggerEventListener("onItemClick",z)&&K.nav.setActiveItem(z.value)},_=async F=>{const H=F.detail[0],z=c.value.find(ce=>H===ce.value);await K.nav.triggerEventListener("onItemClick",z)&&K.nav.setActiveItem(z.value)},T=async F=>{const H=F.detail[0],z=c.value.find(ce=>H===ce.value);await K.nav.triggerEventListener("onItemRemove",z)&&K.nav.removeItem(z.value)},I=async F=>{const[H,z]=F.detail;!H||!await K.nav.triggerEventListener("onProjectChange",z)||K.nav.setActiveProject(z)},O=F=>{K.nav.triggerEventListener("onUserCommandChange",F.detail[0])},k=F=>{K.nav.triggerEventListener("searchToPage",{item:F.detail[0],keyword:F.detail[1],cb:F.detail[2]})},C=F=>{K.nav.triggerEventListener("clearSearchList",{cb:F.detail[0]})},U=F=>{K.nav.triggerEventListener("deleteSearchItem",{value:F.detail[0],cb:F.detail[1]})},x=()=>{K.nav.triggerEventListener("changeEnterpriseHandle")};return d.onBeforeMount(()=>{K.nav.triggerEventListener("onBeforeMount",null,{autoRemove:!0})}),d.onMounted(()=>{K.nav.triggerEventListener("onMounted",null,{autoRemove:!0})}),d.onUnmounted(()=>{K.nav.triggerEventListener("onUnmounted",null,{autoRemove:!0})}),(F,H)=>(d.openBlock(),d.createElementBlock("das-ce-nav",{modelValue:a.value,logoUrl:i.value,config:l.value,innerPagesConfig:p.value,searchConfig:v.value,projectTreeConfig:g.value,userInfoConfig:y.value,"on:userCommandHandle":O,"on:changeInnerPage":b,"on:handleTabClick":_,"on:handleTabDelete":T,"on:changeTreeHandle":I,"on:searchToPage":k,"on:clearSearchList":C,"on:deleteSearchItem":U,"on:changeEnterpriseHandle":x},null,40,Wp))}}),Fo=(r,n)=>{let i=window.location.search||"";if(r&&r!==location.href){const s=r.indexOf("?");s!==-1?i=r.slice(s):i=""}const a=new URLSearchParams(i);if(n)return a.get(n);{let s={};for(let[c,l]of a.entries())s[c]=l;return s}},Vp=(r,n)=>{const i=location.href,a=Fo(i),s=Object.keys(a)||[];if(!s||!s.length)return i.includes("?")?i.split("?")[0]:i.split("&")[0];let c=s.filter(p=>!r.includes(p));if(!c||!c.length)return i.includes("?")?i.split("?")[0]:i.split("&")[0];let l="";return c.forEach((p,g)=>{g===s.length-1?l+=`${p}=${a[p]}`:l+=`${p}=${a[p]}&`}),i.includes("?")?i.split("?")[0]+`?${l}`:i.split("&")[0]+`?${l}`},ko=(r,n="children",i=!0)=>Array.isArray(r)&&r.length?r.reduce((a,s)=>{let c=s[n],l={...s};return i&&delete l[n],c&&c.length?a.concat(l,ko(c,n,i)):a.concat(l)},[]):[],Eu=(r,n,i="children")=>r.filter(a=>n(a)).map(a=>(a=Object.assign({},a),a[i]&&(a[i]=Eu(a[i],n)),a)),di=r=>{let n="1366px",i="528px";if(r!=null&&r.minWidth&&(n=r.minWidth),r!=null&&r.minHeight&&(i=r.minHeight),window.__IN_DAS_MICRO_APP){const{left:a=0,top:s=0}=window.__DAS_MICRO_APP_CONTAINER_RECT||{};n=`calc(${n} - ${a}px)`,i=`calc(${i} - ${s}px)`}document.documentElement.style.minWidth=n,document.documentElement.style.minHeight=i},Cn=()=>{let n={...(window==null?void 0:window.config)||{}};n.rootContainer||(n.rootContainer="#app"),n.baseURL||(n.baseURL=location.origin),n.ossBaseURL||(n.ossBaseURL="/oss"),n.ossBaseURL.startsWith("/")&&(n.ossBaseURL=`${n.baseURL}/oss`),n.ssoBaseURL||(n.ssoBaseURL=n.baseURL);let{microAppName:i,publicPath:a,mainAppName:s}=n;return i&&!0&&!a&&(a=`/${i}/`.replace(/\/\//g,"/")),a||(a="/"),n.publicPath=a,n.autoOssBucket||(n.autoOssBucket=s||i),n};/*! js-cookie v3.0.5 | MIT */function pi(r){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var a in i)r[a]=i[a]}return r}var zp={read:function(r){return r[0]==='"'&&(r=r.slice(1,-1)),r.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(r){return encodeURIComponent(r).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function No(r,n){function i(s,c,l){if(!(typeof document>"u")){l=pi({},n,l),typeof l.expires=="number"&&(l.expires=new Date(Date.now()+l.expires*864e5)),l.expires&&(l.expires=l.expires.toUTCString()),s=encodeURIComponent(s).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var p="";for(var g in l)l[g]&&(p+="; "+g,l[g]!==!0&&(p+="="+l[g].split(";")[0]));return document.cookie=s+"="+r.write(c,s)+p}}function a(s){if(!(typeof document>"u"||arguments.length&&!s)){for(var c=document.cookie?document.cookie.split("; "):[],l={},p=0;p<c.length;p++){var g=c[p].split("="),y=g.slice(1).join("=");try{var v=decodeURIComponent(g[0]);if(l[v]=r.read(y,v),s===v)break}catch{}}return s?l[s]:l}}return Object.create({set:i,get:a,remove:function(s,c){i(s,"",pi({},c,{expires:-1}))},withAttributes:function(s){return No(this.converter,pi({},this.attributes,s))},withConverter:function(s){return No(pi({},this.converter,s),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(r)}})}var yt=No(zp,{path:"/"});const Uo="accessToken",Iu="accessTokenExpiredAt",Ou="refreshToken",Tu="redirectUri",Rn=()=>yt.get(Uo)??"",hi=r=>yt.get(r)??"",qp=(r,n={})=>{yt.set(Uo,r),yt.set(Iu,n.accessTokenExpiredAt??"0"),yt.set(Ou,n.refreshToken??""),n.redirectUri&&yt.set(Tu,n.redirectUri)},Cu=()=>{yt.remove(Uo),yt.remove(Iu),yt.remove(Ou),yt.remove(Tu)},Jp=()=>{const r=new URL(location.href).searchParams,n=r.get("token")||r.get("accessToken")||r.get("accesstoken")||"";n&&(console.log("从url上取token:",n),JSON.stringify({access_token:n}),yt.set("accessToken",n))},Gp=()=>{const r=JSON.parse(sessionStorage.getItem("projectInfo")||"{}"),n=new URL(location.href).searchParams,i=n.get("project")||n.get("projectId")||"";if(!i)return;const a=n.get("projectParent")||n.get("projectParentId")||(r==null?void 0:r.parentId)||"",s=n.get("projectName")||(r==null?void 0:r.name)||"";console.log("从url上取project:",i),sessionStorage.setItem("project",i),sessionStorage.setItem("projectInfo",JSON.stringify({...r,id:i,name:s,parentId:a}))},Kp=Rn,$o=()=>{let r=JSON.parse(sessionStorage.getItem("projectInfo")||"{}");const n=Cn();return JSON.stringify(r)==="{}"&&n.projectInfo&&(r=n.projectInfo),{id:(r==null?void 0:r.id)??0,parentId:(r==null?void 0:r.parentId)??"",name:(r==null?void 0:r.name)??"",tenantId:(r==null?void 0:r.tenant)??""}},jp=()=>({instanceInfo:JSON.parse(sessionStorage.getItem("instance")||"{}").instanceInfo??{}}),Yp=()=>localStorage.getItem("fav-icon")||"";Kp()||Jp(),(Kl=$o())!=null&&Kl.id||Gp();function Ru(r,n){return function(){return r.apply(n,arguments)}}const{toString:Qp}=Object.prototype,{getPrototypeOf:Ho}=Object,gi=(r=>n=>{const i=Qp.call(n);return r[i]||(r[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),Rt=r=>(r=r.toLowerCase(),n=>gi(n)===r),mi=r=>n=>typeof n===r,{isArray:jn}=Array,Lr=mi("undefined");function Zp(r){return r!==null&&!Lr(r)&&r.constructor!==null&&!Lr(r.constructor)&&vt(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}const xu=Rt("ArrayBuffer");function Xp(r){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(r):n=r&&r.buffer&&xu(r.buffer),n}const eh=mi("string"),vt=mi("function"),Pu=mi("number"),yi=r=>r!==null&&typeof r=="object",th=r=>r===!0||r===!1,vi=r=>{if(gi(r)!=="object")return!1;const n=Ho(r);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in r)&&!(Symbol.iterator in r)},nh=Rt("Date"),rh=Rt("File"),ih=Rt("Blob"),oh=Rt("FileList"),ah=r=>yi(r)&&vt(r.pipe),sh=r=>{let n;return r&&(typeof FormData=="function"&&r instanceof FormData||vt(r.append)&&((n=gi(r))==="formdata"||n==="object"&&vt(r.toString)&&r.toString()==="[object FormData]"))},uh=Rt("URLSearchParams"),[ch,lh,fh,dh]=["ReadableStream","Request","Response","Headers"].map(Rt),ph=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Dr(r,n,{allOwnKeys:i=!1}={}){if(r===null||typeof r>"u")return;let a,s;if(typeof r!="object"&&(r=[r]),jn(r))for(a=0,s=r.length;a<s;a++)n.call(null,r[a],a,r);else{const c=i?Object.getOwnPropertyNames(r):Object.keys(r),l=c.length;let p;for(a=0;a<l;a++)p=c[a],n.call(null,r[p],p,r)}}function Lu(r,n){n=n.toLowerCase();const i=Object.keys(r);let a=i.length,s;for(;a-- >0;)if(s=i[a],n===s.toLowerCase())return s;return null}const Du=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Mu=r=>!Lr(r)&&r!==Du;function Wo(){const{caseless:r}=Mu(this)&&this||{},n={},i=(a,s)=>{const c=r&&Lu(n,s)||s;vi(n[c])&&vi(a)?n[c]=Wo(n[c],a):vi(a)?n[c]=Wo({},a):jn(a)?n[c]=a.slice():n[c]=a};for(let a=0,s=arguments.length;a<s;a++)arguments[a]&&Dr(arguments[a],i);return n}const hh=(r,n,i,{allOwnKeys:a}={})=>(Dr(n,(s,c)=>{i&&vt(s)?r[c]=Ru(s,i):r[c]=s},{allOwnKeys:a}),r),gh=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),mh=(r,n,i,a)=>{r.prototype=Object.create(n.prototype,a),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:n.prototype}),i&&Object.assign(r.prototype,i)},yh=(r,n,i,a)=>{let s,c,l;const p={};if(n=n||{},r==null)return n;do{for(s=Object.getOwnPropertyNames(r),c=s.length;c-- >0;)l=s[c],(!a||a(l,r,n))&&!p[l]&&(n[l]=r[l],p[l]=!0);r=i!==!1&&Ho(r)}while(r&&(!i||i(r,n))&&r!==Object.prototype);return n},vh=(r,n,i)=>{r=String(r),(i===void 0||i>r.length)&&(i=r.length),i-=n.length;const a=r.indexOf(n,i);return a!==-1&&a===i},wh=r=>{if(!r)return null;if(jn(r))return r;let n=r.length;if(!Pu(n))return null;const i=new Array(n);for(;n-- >0;)i[n]=r[n];return i},Ah=(r=>n=>r&&n instanceof r)(typeof Uint8Array<"u"&&Ho(Uint8Array)),_h=(r,n)=>{const a=(r&&r[Symbol.iterator]).call(r);let s;for(;(s=a.next())&&!s.done;){const c=s.value;n.call(r,c[0],c[1])}},bh=(r,n)=>{let i;const a=[];for(;(i=r.exec(n))!==null;)a.push(i);return a},Sh=Rt("HTMLFormElement"),Eh=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,a,s){return a.toUpperCase()+s}),Bu=(({hasOwnProperty:r})=>(n,i)=>r.call(n,i))(Object.prototype),Ih=Rt("RegExp"),Fu=(r,n)=>{const i=Object.getOwnPropertyDescriptors(r),a={};Dr(i,(s,c)=>{let l;(l=n(s,c,r))!==!1&&(a[c]=l||s)}),Object.defineProperties(r,a)},Oh=r=>{Fu(r,(n,i)=>{if(vt(r)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const a=r[i];if(vt(a)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},Th=(r,n)=>{const i={},a=s=>{s.forEach(c=>{i[c]=!0})};return jn(r)?a(r):a(String(r).split(n)),i},Ch=()=>{},Rh=(r,n)=>r!=null&&Number.isFinite(r=+r)?r:n,Vo="abcdefghijklmnopqrstuvwxyz",ku="0123456789",Nu={DIGIT:ku,ALPHA:Vo,ALPHA_DIGIT:Vo+Vo.toUpperCase()+ku},xh=(r=16,n=Nu.ALPHA_DIGIT)=>{let i="";const{length:a}=n;for(;r--;)i+=n[Math.random()*a|0];return i};function Ph(r){return!!(r&&vt(r.append)&&r[Symbol.toStringTag]==="FormData"&&r[Symbol.iterator])}const Lh=r=>{const n=new Array(10),i=(a,s)=>{if(yi(a)){if(n.indexOf(a)>=0)return;if(!("toJSON"in a)){n[s]=a;const c=jn(a)?[]:{};return Dr(a,(l,p)=>{const g=i(l,s+1);!Lr(g)&&(c[p]=g)}),n[s]=void 0,c}}return a};return i(r,0)},Dh=Rt("AsyncFunction"),P={isArray:jn,isArrayBuffer:xu,isBuffer:Zp,isFormData:sh,isArrayBufferView:Xp,isString:eh,isNumber:Pu,isBoolean:th,isObject:yi,isPlainObject:vi,isReadableStream:ch,isRequest:lh,isResponse:fh,isHeaders:dh,isUndefined:Lr,isDate:nh,isFile:rh,isBlob:ih,isRegExp:Ih,isFunction:vt,isStream:ah,isURLSearchParams:uh,isTypedArray:Ah,isFileList:oh,forEach:Dr,merge:Wo,extend:hh,trim:ph,stripBOM:gh,inherits:mh,toFlatObject:yh,kindOf:gi,kindOfTest:Rt,endsWith:vh,toArray:wh,forEachEntry:_h,matchAll:bh,isHTMLForm:Sh,hasOwnProperty:Bu,hasOwnProp:Bu,reduceDescriptors:Fu,freezeMethods:Oh,toObjectSet:Th,toCamelCase:Eh,noop:Ch,toFiniteNumber:Rh,findKey:Lu,global:Du,isContextDefined:Mu,ALPHABET:Nu,generateString:xh,isSpecCompliantForm:Ph,toJSONObject:Lh,isAsyncFn:Dh,isThenable:r=>r&&(yi(r)||vt(r))&&vt(r.then)&&vt(r.catch)};function ue(r,n,i,a,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",n&&(this.code=n),i&&(this.config=i),a&&(this.request=a),s&&(this.response=s)}P.inherits(ue,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:P.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Uu=ue.prototype,$u={};["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(r=>{$u[r]={value:r}}),Object.defineProperties(ue,$u),Object.defineProperty(Uu,"isAxiosError",{value:!0}),ue.from=(r,n,i,a,s,c)=>{const l=Object.create(Uu);return P.toFlatObject(r,l,function(g){return g!==Error.prototype},p=>p!=="isAxiosError"),ue.call(l,r.message,n,i,a,s),l.cause=r,l.name=r.name,c&&Object.assign(l,c),l};const Mh=null;function zo(r){return P.isPlainObject(r)||P.isArray(r)}function Hu(r){return P.endsWith(r,"[]")?r.slice(0,-2):r}function Wu(r,n,i){return r?r.concat(n).map(function(s,c){return s=Hu(s),!i&&c?"["+s+"]":s}).join(i?".":""):n}function Bh(r){return P.isArray(r)&&!r.some(zo)}const Fh=P.toFlatObject(P,{},null,function(n){return/^is[A-Z]/.test(n)});function wi(r,n,i){if(!P.isObject(r))throw new TypeError("target must be an object");n=n||new FormData,i=P.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(O,k){return!P.isUndefined(k[O])});const a=i.metaTokens,s=i.visitor||v,c=i.dots,l=i.indexes,g=(i.Blob||typeof Blob<"u"&&Blob)&&P.isSpecCompliantForm(n);if(!P.isFunction(s))throw new TypeError("visitor must be a function");function y(I){if(I===null)return"";if(P.isDate(I))return I.toISOString();if(!g&&P.isBlob(I))throw new ue("Blob is not supported. Use a Buffer instead.");return P.isArrayBuffer(I)||P.isTypedArray(I)?g&&typeof Blob=="function"?new Blob([I]):Buffer.from(I):I}function v(I,O,k){let C=I;if(I&&!k&&typeof I=="object"){if(P.endsWith(O,"{}"))O=a?O:O.slice(0,-2),I=JSON.stringify(I);else if(P.isArray(I)&&Bh(I)||(P.isFileList(I)||P.endsWith(O,"[]"))&&(C=P.toArray(I)))return O=Hu(O),C.forEach(function(x,F){!(P.isUndefined(x)||x===null)&&n.append(l===!0?Wu([O],F,c):l===null?O:O+"[]",y(x))}),!1}return zo(I)?!0:(n.append(Wu(k,O,c),y(I)),!1)}const b=[],_=Object.assign(Fh,{defaultVisitor:v,convertValue:y,isVisitable:zo});function T(I,O){if(!P.isUndefined(I)){if(b.indexOf(I)!==-1)throw Error("Circular reference detected in "+O.join("."));b.push(I),P.forEach(I,function(C,U){(!(P.isUndefined(C)||C===null)&&s.call(n,C,P.isString(U)?U.trim():U,O,_))===!0&&T(C,O?O.concat(U):[U])}),b.pop()}}if(!P.isObject(r))throw new TypeError("data must be an object");return T(r),n}function Vu(r){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(a){return n[a]})}function qo(r,n){this._pairs=[],r&&wi(r,this,n)}const zu=qo.prototype;zu.append=function(n,i){this._pairs.push([n,i])},zu.toString=function(n){const i=n?function(a){return n.call(this,a,Vu)}:Vu;return this._pairs.map(function(s){return i(s[0])+"="+i(s[1])},"").join("&")};function kh(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function qu(r,n,i){if(!n)return r;const a=i&&i.encode||kh,s=i&&i.serialize;let c;if(s?c=s(n,i):c=P.isURLSearchParams(n)?n.toString():new qo(n,i).toString(a),c){const l=r.indexOf("#");l!==-1&&(r=r.slice(0,l)),r+=(r.indexOf("?")===-1?"?":"&")+c}return r}class Ju{constructor(){this.handlers=[]}use(n,i,a){return this.handlers.push({fulfilled:n,rejected:i,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){P.forEach(this.handlers,function(a){a!==null&&n(a)})}}const Gu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Nh={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:qo,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Jo=typeof window<"u"&&typeof document<"u",Uh=(r=>Jo&&["ReactNative","NativeScript","NS"].indexOf(r)<0)(typeof navigator<"u"&&navigator.product),$h=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Hh=Jo&&window.location.href||"http://localhost",xt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Jo,hasStandardBrowserEnv:Uh,hasStandardBrowserWebWorkerEnv:$h,origin:Hh},Symbol.toStringTag,{value:"Module"})),...Nh};function Wh(r,n){return wi(r,new xt.classes.URLSearchParams,Object.assign({visitor:function(i,a,s,c){return xt.isNode&&P.isBuffer(i)?(this.append(a,i.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)}},n))}function Vh(r){return P.matchAll(/\w+|\[(\w*)]/g,r).map(n=>n[0]==="[]"?"":n[1]||n[0])}function zh(r){const n={},i=Object.keys(r);let a;const s=i.length;let c;for(a=0;a<s;a++)c=i[a],n[c]=r[c];return n}function Ku(r){function n(i,a,s,c){let l=i[c++];if(l==="__proto__")return!0;const p=Number.isFinite(+l),g=c>=i.length;return l=!l&&P.isArray(s)?s.length:l,g?(P.hasOwnProp(s,l)?s[l]=[s[l],a]:s[l]=a,!p):((!s[l]||!P.isObject(s[l]))&&(s[l]=[]),n(i,a,s[l],c)&&P.isArray(s[l])&&(s[l]=zh(s[l])),!p)}if(P.isFormData(r)&&P.isFunction(r.entries)){const i={};return P.forEachEntry(r,(a,s)=>{n(Vh(a),s,i,0)}),i}return null}function qh(r,n,i){if(P.isString(r))try{return(n||JSON.parse)(r),P.trim(r)}catch(a){if(a.name!=="SyntaxError")throw a}return(i||JSON.stringify)(r)}const Mr={transitional:Gu,adapter:["xhr","http","fetch"],transformRequest:[function(n,i){const a=i.getContentType()||"",s=a.indexOf("application/json")>-1,c=P.isObject(n);if(c&&P.isHTMLForm(n)&&(n=new FormData(n)),P.isFormData(n))return s?JSON.stringify(Ku(n)):n;if(P.isArrayBuffer(n)||P.isBuffer(n)||P.isStream(n)||P.isFile(n)||P.isBlob(n)||P.isReadableStream(n))return n;if(P.isArrayBufferView(n))return n.buffer;if(P.isURLSearchParams(n))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let p;if(c){if(a.indexOf("application/x-www-form-urlencoded")>-1)return Wh(n,this.formSerializer).toString();if((p=P.isFileList(n))||a.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return wi(p?{"files[]":n}:n,g&&new g,this.formSerializer)}}return c||s?(i.setContentType("application/json",!1),qh(n)):n}],transformResponse:[function(n){const i=this.transitional||Mr.transitional,a=i&&i.forcedJSONParsing,s=this.responseType==="json";if(P.isResponse(n)||P.isReadableStream(n))return n;if(n&&P.isString(n)&&(a&&!this.responseType||s)){const l=!(i&&i.silentJSONParsing)&&s;try{return JSON.parse(n)}catch(p){if(l)throw p.name==="SyntaxError"?ue.from(p,ue.ERR_BAD_RESPONSE,this,null,this.response):p}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:xt.classes.FormData,Blob:xt.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};P.forEach(["delete","get","head","post","put","patch"],r=>{Mr.headers[r]={}});const Jh=P.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"]),Gh=r=>{const n={};let i,a,s;return r&&r.split(`
|
|
2
|
+
`).forEach(function(l){s=l.indexOf(":"),i=l.substring(0,s).trim().toLowerCase(),a=l.substring(s+1).trim(),!(!i||n[i]&&Jh[i])&&(i==="set-cookie"?n[i]?n[i].push(a):n[i]=[a]:n[i]=n[i]?n[i]+", "+a:a)}),n},ju=Symbol("internals");function Br(r){return r&&String(r).trim().toLowerCase()}function Ai(r){return r===!1||r==null?r:P.isArray(r)?r.map(Ai):String(r)}function Kh(r){const n=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=i.exec(r);)n[a[1]]=a[2];return n}const jh=r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());function Go(r,n,i,a,s){if(P.isFunction(a))return a.call(this,n,i);if(s&&(n=i),!!P.isString(n)){if(P.isString(a))return n.indexOf(a)!==-1;if(P.isRegExp(a))return a.test(n)}}function Yh(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,i,a)=>i.toUpperCase()+a)}function Qh(r,n){const i=P.toCamelCase(" "+n);["get","set","has"].forEach(a=>{Object.defineProperty(r,a+i,{value:function(s,c,l){return this[a].call(this,n,s,c,l)},configurable:!0})})}class rt{constructor(n){n&&this.set(n)}set(n,i,a){const s=this;function c(p,g,y){const v=Br(g);if(!v)throw new Error("header name must be a non-empty string");const b=P.findKey(s,v);(!b||s[b]===void 0||y===!0||y===void 0&&s[b]!==!1)&&(s[b||g]=Ai(p))}const l=(p,g)=>P.forEach(p,(y,v)=>c(y,v,g));if(P.isPlainObject(n)||n instanceof this.constructor)l(n,i);else if(P.isString(n)&&(n=n.trim())&&!jh(n))l(Gh(n),i);else if(P.isHeaders(n))for(const[p,g]of n.entries())c(g,p,a);else n!=null&&c(i,n,a);return this}get(n,i){if(n=Br(n),n){const a=P.findKey(this,n);if(a){const s=this[a];if(!i)return s;if(i===!0)return Kh(s);if(P.isFunction(i))return i.call(this,s,a);if(P.isRegExp(i))return i.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,i){if(n=Br(n),n){const a=P.findKey(this,n);return!!(a&&this[a]!==void 0&&(!i||Go(this,this[a],a,i)))}return!1}delete(n,i){const a=this;let s=!1;function c(l){if(l=Br(l),l){const p=P.findKey(a,l);p&&(!i||Go(a,a[p],p,i))&&(delete a[p],s=!0)}}return P.isArray(n)?n.forEach(c):c(n),s}clear(n){const i=Object.keys(this);let a=i.length,s=!1;for(;a--;){const c=i[a];(!n||Go(this,this[c],c,n,!0))&&(delete this[c],s=!0)}return s}normalize(n){const i=this,a={};return P.forEach(this,(s,c)=>{const l=P.findKey(a,c);if(l){i[l]=Ai(s),delete i[c];return}const p=n?Yh(c):String(c).trim();p!==c&&delete i[c],i[p]=Ai(s),a[p]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const i=Object.create(null);return P.forEach(this,(a,s)=>{a!=null&&a!==!1&&(i[s]=n&&P.isArray(a)?a.join(", "):a)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,i])=>n+": "+i).join(`
|
|
3
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...i){const a=new this(n);return i.forEach(s=>a.set(s)),a}static accessor(n){const a=(this[ju]=this[ju]={accessors:{}}).accessors,s=this.prototype;function c(l){const p=Br(l);a[p]||(Qh(s,l),a[p]=!0)}return P.isArray(n)?n.forEach(c):c(n),this}}rt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),P.reduceDescriptors(rt.prototype,({value:r},n)=>{let i=n[0].toUpperCase()+n.slice(1);return{get:()=>r,set(a){this[i]=a}}}),P.freezeMethods(rt);function Ko(r,n){const i=this||Mr,a=n||i,s=rt.from(a.headers);let c=a.data;return P.forEach(r,function(p){c=p.call(i,c,s.normalize(),n?n.status:void 0)}),s.normalize(),c}function Yu(r){return!!(r&&r.__CANCEL__)}function Yn(r,n,i){ue.call(this,r??"canceled",ue.ERR_CANCELED,n,i),this.name="CanceledError"}P.inherits(Yn,ue,{__CANCEL__:!0});function Qu(r,n,i){const a=i.config.validateStatus;!i.status||!a||a(i.status)?r(i):n(new ue("Request failed with status code "+i.status,[ue.ERR_BAD_REQUEST,ue.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function Zh(r){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return n&&n[1]||""}function Xh(r,n){r=r||10;const i=new Array(r),a=new Array(r);let s=0,c=0,l;return n=n!==void 0?n:1e3,function(g){const y=Date.now(),v=a[c];l||(l=y),i[s]=g,a[s]=y;let b=c,_=0;for(;b!==s;)_+=i[b++],b=b%r;if(s=(s+1)%r,s===c&&(c=(c+1)%r),y-l<n)return;const T=v&&y-v;return T?Math.round(_*1e3/T):void 0}}function eg(r,n){let i=0;const a=1e3/n;let s=null;return function(){const l=this===!0,p=Date.now();if(l||p-i>a)return s&&(clearTimeout(s),s=null),i=p,r.apply(null,arguments);s||(s=setTimeout(()=>(s=null,i=Date.now(),r.apply(null,arguments)),a-(p-i)))}}const _i=(r,n,i=3)=>{let a=0;const s=Xh(50,250);return eg(c=>{const l=c.loaded,p=c.lengthComputable?c.total:void 0,g=l-a,y=s(g),v=l<=p;a=l;const b={loaded:l,total:p,progress:p?l/p:void 0,bytes:g,rate:y||void 0,estimated:y&&p&&v?(p-l)/y:void 0,event:c,lengthComputable:p!=null};b[n?"download":"upload"]=!0,r(b)},i)},tg=xt.hasStandardBrowserEnv?function(){const n=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");let a;function s(c){let l=c;return n&&(i.setAttribute("href",l),l=i.href),i.setAttribute("href",l),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:i.pathname.charAt(0)==="/"?i.pathname:"/"+i.pathname}}return a=s(window.location.href),function(l){const p=P.isString(l)?s(l):l;return p.protocol===a.protocol&&p.host===a.host}}():function(){return function(){return!0}}(),ng=xt.hasStandardBrowserEnv?{write(r,n,i,a,s,c){const l=[r+"="+encodeURIComponent(n)];P.isNumber(i)&&l.push("expires="+new Date(i).toGMTString()),P.isString(a)&&l.push("path="+a),P.isString(s)&&l.push("domain="+s),c===!0&&l.push("secure"),document.cookie=l.join("; ")},read(r){const n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(r){this.write(r,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function rg(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function ig(r,n){return n?r.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):r}function Zu(r,n){return r&&!rg(n)?ig(r,n):n}const Xu=r=>r instanceof rt?{...r}:r;function xn(r,n){n=n||{};const i={};function a(y,v,b){return P.isPlainObject(y)&&P.isPlainObject(v)?P.merge.call({caseless:b},y,v):P.isPlainObject(v)?P.merge({},v):P.isArray(v)?v.slice():v}function s(y,v,b){if(P.isUndefined(v)){if(!P.isUndefined(y))return a(void 0,y,b)}else return a(y,v,b)}function c(y,v){if(!P.isUndefined(v))return a(void 0,v)}function l(y,v){if(P.isUndefined(v)){if(!P.isUndefined(y))return a(void 0,y)}else return a(void 0,v)}function p(y,v,b){if(b in n)return a(y,v);if(b in r)return a(void 0,y)}const g={url:c,method:c,data:c,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:p,headers:(y,v)=>s(Xu(y),Xu(v),!0)};return P.forEach(Object.keys(Object.assign({},r,n)),function(v){const b=g[v]||s,_=b(r[v],n[v],v);P.isUndefined(_)&&b!==p||(i[v]=_)}),i}const ec=r=>{const n=xn({},r);let{data:i,withXSRFToken:a,xsrfHeaderName:s,xsrfCookieName:c,headers:l,auth:p}=n;n.headers=l=rt.from(l),n.url=qu(Zu(n.baseURL,n.url),r.params,r.paramsSerializer),p&&l.set("Authorization","Basic "+btoa((p.username||"")+":"+(p.password?unescape(encodeURIComponent(p.password)):"")));let g;if(P.isFormData(i)){if(xt.hasStandardBrowserEnv||xt.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((g=l.getContentType())!==!1){const[y,...v]=g?g.split(";").map(b=>b.trim()).filter(Boolean):[];l.setContentType([y||"multipart/form-data",...v].join("; "))}}if(xt.hasStandardBrowserEnv&&(a&&P.isFunction(a)&&(a=a(n)),a||a!==!1&&tg(n.url))){const y=s&&c&&ng.read(c);y&&l.set(s,y)}return n},og=typeof XMLHttpRequest<"u"&&function(r){return new Promise(function(i,a){const s=ec(r);let c=s.data;const l=rt.from(s.headers).normalize();let{responseType:p}=s,g;function y(){s.cancelToken&&s.cancelToken.unsubscribe(g),s.signal&&s.signal.removeEventListener("abort",g)}let v=new XMLHttpRequest;v.open(s.method.toUpperCase(),s.url,!0),v.timeout=s.timeout;function b(){if(!v)return;const T=rt.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),O={data:!p||p==="text"||p==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:T,config:r,request:v};Qu(function(C){i(C),y()},function(C){a(C),y()},O),v=null}"onloadend"in v?v.onloadend=b:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(b)},v.onabort=function(){v&&(a(new ue("Request aborted",ue.ECONNABORTED,s,v)),v=null)},v.onerror=function(){a(new ue("Network Error",ue.ERR_NETWORK,s,v)),v=null},v.ontimeout=function(){let I=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const O=s.transitional||Gu;s.timeoutErrorMessage&&(I=s.timeoutErrorMessage),a(new ue(I,O.clarifyTimeoutError?ue.ETIMEDOUT:ue.ECONNABORTED,s,v)),v=null},c===void 0&&l.setContentType(null),"setRequestHeader"in v&&P.forEach(l.toJSON(),function(I,O){v.setRequestHeader(O,I)}),P.isUndefined(s.withCredentials)||(v.withCredentials=!!s.withCredentials),p&&p!=="json"&&(v.responseType=s.responseType),typeof s.onDownloadProgress=="function"&&v.addEventListener("progress",_i(s.onDownloadProgress,!0)),typeof s.onUploadProgress=="function"&&v.upload&&v.upload.addEventListener("progress",_i(s.onUploadProgress)),(s.cancelToken||s.signal)&&(g=T=>{v&&(a(!T||T.type?new Yn(null,r,v):T),v.abort(),v=null)},s.cancelToken&&s.cancelToken.subscribe(g),s.signal&&(s.signal.aborted?g():s.signal.addEventListener("abort",g)));const _=Zh(s.url);if(_&&xt.protocols.indexOf(_)===-1){a(new ue("Unsupported protocol "+_+":",ue.ERR_BAD_REQUEST,r));return}v.send(c||null)})},ag=(r,n)=>{let i=new AbortController,a;const s=function(g){if(!a){a=!0,l();const y=g instanceof Error?g:this.reason;i.abort(y instanceof ue?y:new Yn(y instanceof Error?y.message:y))}};let c=n&&setTimeout(()=>{s(new ue(`timeout ${n} of ms exceeded`,ue.ETIMEDOUT))},n);const l=()=>{r&&(c&&clearTimeout(c),c=null,r.forEach(g=>{g&&(g.removeEventListener?g.removeEventListener("abort",s):g.unsubscribe(s))}),r=null)};r.forEach(g=>g&&g.addEventListener&&g.addEventListener("abort",s));const{signal:p}=i;return p.unsubscribe=l,[p,()=>{c&&clearTimeout(c),c=null}]},sg=function*(r,n){let i=r.byteLength;if(!n||i<n){yield r;return}let a=0,s;for(;a<i;)s=a+n,yield r.slice(a,s),a=s},ug=async function*(r,n,i){for await(const a of r)yield*sg(ArrayBuffer.isView(a)?a:await i(String(a)),n)},tc=(r,n,i,a,s)=>{const c=ug(r,n,s);let l=0;return new ReadableStream({type:"bytes",async pull(p){const{done:g,value:y}=await c.next();if(g){p.close(),a();return}let v=y.byteLength;i&&i(l+=v),p.enqueue(new Uint8Array(y))},cancel(p){return a(p),c.return()}},{highWaterMark:2})},nc=(r,n)=>{const i=r!=null;return a=>setTimeout(()=>n({lengthComputable:i,total:r,loaded:a}))},bi=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",rc=bi&&typeof ReadableStream=="function",jo=bi&&(typeof TextEncoder=="function"?(r=>n=>r.encode(n))(new TextEncoder):async r=>new Uint8Array(await new Response(r).arrayBuffer())),cg=rc&&(()=>{let r=!1;const n=new Request(xt.origin,{body:new ReadableStream,method:"POST",get duplex(){return r=!0,"half"}}).headers.has("Content-Type");return r&&!n})(),ic=64*1024,Yo=rc&&!!(()=>{try{return P.isReadableStream(new Response("").body)}catch{}})(),Si={stream:Yo&&(r=>r.body)};bi&&(r=>{["text","arrayBuffer","blob","formData","stream"].forEach(n=>{!Si[n]&&(Si[n]=P.isFunction(r[n])?i=>i[n]():(i,a)=>{throw new ue(`Response type '${n}' is not supported`,ue.ERR_NOT_SUPPORT,a)})})})(new Response);const lg=async r=>{if(r==null)return 0;if(P.isBlob(r))return r.size;if(P.isSpecCompliantForm(r))return(await new Request(r).arrayBuffer()).byteLength;if(P.isArrayBufferView(r))return r.byteLength;if(P.isURLSearchParams(r)&&(r=r+""),P.isString(r))return(await jo(r)).byteLength},fg=async(r,n)=>{const i=P.toFiniteNumber(r.getContentLength());return i??lg(n)},Qo={http:Mh,xhr:og,fetch:bi&&(async r=>{let{url:n,method:i,data:a,signal:s,cancelToken:c,timeout:l,onDownloadProgress:p,onUploadProgress:g,responseType:y,headers:v,withCredentials:b="same-origin",fetchOptions:_}=ec(r);y=y?(y+"").toLowerCase():"text";let[T,I]=s||c||l?ag([s,c],l):[],O,k;const C=()=>{!O&&setTimeout(()=>{T&&T.unsubscribe()}),O=!0};let U;try{if(g&&cg&&i!=="get"&&i!=="head"&&(U=await fg(v,a))!==0){let z=new Request(n,{method:"POST",body:a,duplex:"half"}),Y;P.isFormData(a)&&(Y=z.headers.get("content-type"))&&v.setContentType(Y),z.body&&(a=tc(z.body,ic,nc(U,_i(g)),null,jo))}P.isString(b)||(b=b?"cors":"omit"),k=new Request(n,{..._,signal:T,method:i.toUpperCase(),headers:v.normalize().toJSON(),body:a,duplex:"half",withCredentials:b});let x=await fetch(k);const F=Yo&&(y==="stream"||y==="response");if(Yo&&(p||F)){const z={};["status","statusText","headers"].forEach(ce=>{z[ce]=x[ce]});const Y=P.toFiniteNumber(x.headers.get("content-length"));x=new Response(tc(x.body,ic,p&&nc(Y,_i(p,!0)),F&&C,jo),z)}y=y||"text";let H=await Si[P.findKey(Si,y)||"text"](x,r);return!F&&C(),I&&I(),await new Promise((z,Y)=>{Qu(z,Y,{data:H,headers:rt.from(x.headers),status:x.status,statusText:x.statusText,config:r,request:k})})}catch(x){throw C(),x&&x.name==="TypeError"&&/fetch/i.test(x.message)?Object.assign(new ue("Network Error",ue.ERR_NETWORK,r,k),{cause:x.cause||x}):ue.from(x,x&&x.code,r,k)}})};P.forEach(Qo,(r,n)=>{if(r){try{Object.defineProperty(r,"name",{value:n})}catch{}Object.defineProperty(r,"adapterName",{value:n})}});const oc=r=>`- ${r}`,dg=r=>P.isFunction(r)||r===null||r===!1,ac={getAdapter:r=>{r=P.isArray(r)?r:[r];const{length:n}=r;let i,a;const s={};for(let c=0;c<n;c++){i=r[c];let l;if(a=i,!dg(i)&&(a=Qo[(l=String(i)).toLowerCase()],a===void 0))throw new ue(`Unknown adapter '${l}'`);if(a)break;s[l||"#"+c]=a}if(!a){const c=Object.entries(s).map(([p,g])=>`adapter ${p} `+(g===!1?"is not supported by the environment":"is not available in the build"));let l=n?c.length>1?`since :
|
|
4
|
+
`+c.map(oc).join(`
|
|
5
|
+
`):" "+oc(c[0]):"as no adapter specified";throw new ue("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return a},adapters:Qo};function Zo(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new Yn(null,r)}function sc(r){return Zo(r),r.headers=rt.from(r.headers),r.data=Ko.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),ac.getAdapter(r.adapter||Mr.adapter)(r).then(function(a){return Zo(r),a.data=Ko.call(r,r.transformResponse,a),a.headers=rt.from(a.headers),a},function(a){return Yu(a)||(Zo(r),a&&a.response&&(a.response.data=Ko.call(r,r.transformResponse,a.response),a.response.headers=rt.from(a.response.headers))),Promise.reject(a)})}const uc="1.7.2",Xo={};["object","boolean","number","function","string","symbol"].forEach((r,n)=>{Xo[r]=function(a){return typeof a===r||"a"+(n<1?"n ":" ")+r}});const cc={};Xo.transitional=function(n,i,a){function s(c,l){return"[Axios v"+uc+"] Transitional option '"+c+"'"+l+(a?". "+a:"")}return(c,l,p)=>{if(n===!1)throw new ue(s(l," has been removed"+(i?" in "+i:"")),ue.ERR_DEPRECATED);return i&&!cc[l]&&(cc[l]=!0,console.warn(s(l," has been deprecated since v"+i+" and will be removed in the near future"))),n?n(c,l,p):!0}};function pg(r,n,i){if(typeof r!="object")throw new ue("options must be an object",ue.ERR_BAD_OPTION_VALUE);const a=Object.keys(r);let s=a.length;for(;s-- >0;){const c=a[s],l=n[c];if(l){const p=r[c],g=p===void 0||l(p,c,r);if(g!==!0)throw new ue("option "+c+" must be "+g,ue.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new ue("Unknown option "+c,ue.ERR_BAD_OPTION)}}const ea={assertOptions:pg,validators:Xo},fn=ea.validators;class Pn{constructor(n){this.defaults=n,this.interceptors={request:new Ju,response:new Ju}}async request(n,i){try{return await this._request(n,i)}catch(a){if(a instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const c=s.stack?s.stack.replace(/^.+\n/,""):"";try{a.stack?c&&!String(a.stack).endsWith(c.replace(/^.+\n.+\n/,""))&&(a.stack+=`
|
|
6
|
+
`+c):a.stack=c}catch{}}throw a}}_request(n,i){typeof n=="string"?(i=i||{},i.url=n):i=n||{},i=xn(this.defaults,i);const{transitional:a,paramsSerializer:s,headers:c}=i;a!==void 0&&ea.assertOptions(a,{silentJSONParsing:fn.transitional(fn.boolean),forcedJSONParsing:fn.transitional(fn.boolean),clarifyTimeoutError:fn.transitional(fn.boolean)},!1),s!=null&&(P.isFunction(s)?i.paramsSerializer={serialize:s}:ea.assertOptions(s,{encode:fn.function,serialize:fn.function},!0)),i.method=(i.method||this.defaults.method||"get").toLowerCase();let l=c&&P.merge(c.common,c[i.method]);c&&P.forEach(["delete","get","head","post","put","patch","common"],I=>{delete c[I]}),i.headers=rt.concat(l,c);const p=[];let g=!0;this.interceptors.request.forEach(function(O){typeof O.runWhen=="function"&&O.runWhen(i)===!1||(g=g&&O.synchronous,p.unshift(O.fulfilled,O.rejected))});const y=[];this.interceptors.response.forEach(function(O){y.push(O.fulfilled,O.rejected)});let v,b=0,_;if(!g){const I=[sc.bind(this),void 0];for(I.unshift.apply(I,p),I.push.apply(I,y),_=I.length,v=Promise.resolve(i);b<_;)v=v.then(I[b++],I[b++]);return v}_=p.length;let T=i;for(b=0;b<_;){const I=p[b++],O=p[b++];try{T=I(T)}catch(k){O.call(this,k);break}}try{v=sc.call(this,T)}catch(I){return Promise.reject(I)}for(b=0,_=y.length;b<_;)v=v.then(y[b++],y[b++]);return v}getUri(n){n=xn(this.defaults,n);const i=Zu(n.baseURL,n.url);return qu(i,n.params,n.paramsSerializer)}}P.forEach(["delete","get","head","options"],function(n){Pn.prototype[n]=function(i,a){return this.request(xn(a||{},{method:n,url:i,data:(a||{}).data}))}}),P.forEach(["post","put","patch"],function(n){function i(a){return function(c,l,p){return this.request(xn(p||{},{method:n,headers:a?{"Content-Type":"multipart/form-data"}:{},url:c,data:l}))}}Pn.prototype[n]=i(),Pn.prototype[n+"Form"]=i(!0)});class ta{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let i;this.promise=new Promise(function(c){i=c});const a=this;this.promise.then(s=>{if(!a._listeners)return;let c=a._listeners.length;for(;c-- >0;)a._listeners[c](s);a._listeners=null}),this.promise.then=s=>{let c;const l=new Promise(p=>{a.subscribe(p),c=p}).then(s);return l.cancel=function(){a.unsubscribe(c)},l},n(function(c,l,p){a.reason||(a.reason=new Yn(c,l,p),i(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const i=this._listeners.indexOf(n);i!==-1&&this._listeners.splice(i,1)}static source(){let n;return{token:new ta(function(s){n=s}),cancel:n}}}function hg(r){return function(i){return r.apply(null,i)}}function gg(r){return P.isObject(r)&&r.isAxiosError===!0}const na={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(na).forEach(([r,n])=>{na[n]=r});function lc(r){const n=new Pn(r),i=Ru(Pn.prototype.request,n);return P.extend(i,Pn.prototype,n,{allOwnKeys:!0}),P.extend(i,n,null,{allOwnKeys:!0}),i.create=function(s){return lc(xn(r,s))},i}const Oe=lc(Mr);Oe.Axios=Pn,Oe.CanceledError=Yn,Oe.CancelToken=ta,Oe.isCancel=Yu,Oe.VERSION=uc,Oe.toFormData=wi,Oe.AxiosError=ue,Oe.Cancel=Oe.CanceledError,Oe.all=function(n){return Promise.all(n)},Oe.spread=hg,Oe.isAxiosError=gg,Oe.mergeConfig=xn,Oe.AxiosHeaders=rt,Oe.formToJSON=r=>Ku(P.isHTMLForm(r)?new FormData(r):r),Oe.getAdapter=ac.getAdapter,Oe.HttpStatusCode=na,Oe.default=Oe;var Yt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ei(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function mg(r){if(r.__esModule)return r;var n=r.default;if(typeof n=="function"){var i=function a(){return this instanceof a?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(r).forEach(function(a){var s=Object.getOwnPropertyDescriptor(r,a);Object.defineProperty(i,a,s.get?s:{enumerable:!0,get:function(){return r[a]}})}),i}var yg=Error,vg=EvalError,wg=RangeError,Ag=ReferenceError,fc=SyntaxError,Fr=TypeError,_g=URIError,bg=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var n={},i=Symbol("test"),a=Object(i);if(typeof i=="string"||Object.prototype.toString.call(i)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var s=42;n[i]=s;for(i in n)return!1;if(typeof Object.keys=="function"&&Object.keys(n).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(n).length!==0)return!1;var c=Object.getOwnPropertySymbols(n);if(c.length!==1||c[0]!==i||!Object.prototype.propertyIsEnumerable.call(n,i))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(n,i);if(l.value!==s||l.enumerable!==!0)return!1}return!0},dc=typeof Symbol<"u"&&Symbol,Sg=bg,Eg=function(){return typeof dc!="function"||typeof Symbol!="function"||typeof dc("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Sg()},ra={__proto__:null,foo:{}},Ig=Object,Og=function(){return{__proto__:ra}.foo===ra.foo&&!(ra instanceof Ig)},Tg="Function.prototype.bind called on incompatible ",Cg=Object.prototype.toString,Rg=Math.max,xg="[object Function]",pc=function(n,i){for(var a=[],s=0;s<n.length;s+=1)a[s]=n[s];for(var c=0;c<i.length;c+=1)a[c+n.length]=i[c];return a},Pg=function(n,i){for(var a=[],s=i,c=0;s<n.length;s+=1,c+=1)a[c]=n[s];return a},Lg=function(r,n){for(var i="",a=0;a<r.length;a+=1)i+=r[a],a+1<r.length&&(i+=n);return i},Dg=function(n){var i=this;if(typeof i!="function"||Cg.apply(i)!==xg)throw new TypeError(Tg+i);for(var a=Pg(arguments,1),s,c=function(){if(this instanceof s){var v=i.apply(this,pc(a,arguments));return Object(v)===v?v:this}return i.apply(n,pc(a,arguments))},l=Rg(0,i.length-a.length),p=[],g=0;g<l;g++)p[g]="$"+g;if(s=Function("binder","return function ("+Lg(p,",")+"){ return binder.apply(this,arguments); }")(c),i.prototype){var y=function(){};y.prototype=i.prototype,s.prototype=new y,y.prototype=null}return s},Mg=Dg,ia=Function.prototype.bind||Mg,Bg=Function.prototype.call,Fg=Object.prototype.hasOwnProperty,kg=ia,Ng=kg.call(Bg,Fg),ge,Ug=yg,$g=vg,Hg=wg,Wg=Ag,Qn=fc,Zn=Fr,Vg=_g,hc=Function,oa=function(r){try{return hc('"use strict"; return ('+r+").constructor;")()}catch{}},Ln=Object.getOwnPropertyDescriptor;if(Ln)try{Ln({},"")}catch{Ln=null}var aa=function(){throw new Zn},zg=Ln?function(){try{return arguments.callee,aa}catch{try{return Ln(arguments,"callee").get}catch{return aa}}}():aa,Xn=Eg(),qg=Og(),We=Object.getPrototypeOf||(qg?function(r){return r.__proto__}:null),er={},Jg=typeof Uint8Array>"u"||!We?ge:We(Uint8Array),Dn={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?ge:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ge:ArrayBuffer,"%ArrayIteratorPrototype%":Xn&&We?We([][Symbol.iterator]()):ge,"%AsyncFromSyncIteratorPrototype%":ge,"%AsyncFunction%":er,"%AsyncGenerator%":er,"%AsyncGeneratorFunction%":er,"%AsyncIteratorPrototype%":er,"%Atomics%":typeof Atomics>"u"?ge:Atomics,"%BigInt%":typeof BigInt>"u"?ge:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ge:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ge:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ge:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Ug,"%eval%":eval,"%EvalError%":$g,"%Float32Array%":typeof Float32Array>"u"?ge:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ge:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ge:FinalizationRegistry,"%Function%":hc,"%GeneratorFunction%":er,"%Int8Array%":typeof Int8Array>"u"?ge:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ge:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ge:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Xn&&We?We(We([][Symbol.iterator]())):ge,"%JSON%":typeof JSON=="object"?JSON:ge,"%Map%":typeof Map>"u"?ge:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Xn||!We?ge:We(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ge:Promise,"%Proxy%":typeof Proxy>"u"?ge:Proxy,"%RangeError%":Hg,"%ReferenceError%":Wg,"%Reflect%":typeof Reflect>"u"?ge:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ge:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Xn||!We?ge:We(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ge:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Xn&&We?We(""[Symbol.iterator]()):ge,"%Symbol%":Xn?Symbol:ge,"%SyntaxError%":Qn,"%ThrowTypeError%":zg,"%TypedArray%":Jg,"%TypeError%":Zn,"%Uint8Array%":typeof Uint8Array>"u"?ge:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ge:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ge:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ge:Uint32Array,"%URIError%":Vg,"%WeakMap%":typeof WeakMap>"u"?ge:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ge:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ge:WeakSet};if(We)try{null.error}catch(r){var Gg=We(We(r));Dn["%Error.prototype%"]=Gg}var Kg=function r(n){var i;if(n==="%AsyncFunction%")i=oa("async function () {}");else if(n==="%GeneratorFunction%")i=oa("function* () {}");else if(n==="%AsyncGeneratorFunction%")i=oa("async function* () {}");else if(n==="%AsyncGenerator%"){var a=r("%AsyncGeneratorFunction%");a&&(i=a.prototype)}else if(n==="%AsyncIteratorPrototype%"){var s=r("%AsyncGenerator%");s&&We&&(i=We(s.prototype))}return Dn[n]=i,i},gc={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},kr=ia,Ii=Ng,jg=kr.call(Function.call,Array.prototype.concat),Yg=kr.call(Function.apply,Array.prototype.splice),mc=kr.call(Function.call,String.prototype.replace),Oi=kr.call(Function.call,String.prototype.slice),Qg=kr.call(Function.call,RegExp.prototype.exec),Zg=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Xg=/\\(\\)?/g,em=function(n){var i=Oi(n,0,1),a=Oi(n,-1);if(i==="%"&&a!=="%")throw new Qn("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&i!=="%")throw new Qn("invalid intrinsic syntax, expected opening `%`");var s=[];return mc(n,Zg,function(c,l,p,g){s[s.length]=p?mc(g,Xg,"$1"):l||c}),s},tm=function(n,i){var a=n,s;if(Ii(gc,a)&&(s=gc[a],a="%"+s[0]+"%"),Ii(Dn,a)){var c=Dn[a];if(c===er&&(c=Kg(a)),typeof c>"u"&&!i)throw new Zn("intrinsic "+n+" exists, but is not available. Please file an issue!");return{alias:s,name:a,value:c}}throw new Qn("intrinsic "+n+" does not exist!")},tr=function(n,i){if(typeof n!="string"||n.length===0)throw new Zn("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof i!="boolean")throw new Zn('"allowMissing" argument must be a boolean');if(Qg(/^%?[^%]*%?$/,n)===null)throw new Qn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=em(n),s=a.length>0?a[0]:"",c=tm("%"+s+"%",i),l=c.name,p=c.value,g=!1,y=c.alias;y&&(s=y[0],Yg(a,jg([0,1],y)));for(var v=1,b=!0;v<a.length;v+=1){var _=a[v],T=Oi(_,0,1),I=Oi(_,-1);if((T==='"'||T==="'"||T==="`"||I==='"'||I==="'"||I==="`")&&T!==I)throw new Qn("property names with quotes must have matching quotes");if((_==="constructor"||!b)&&(g=!0),s+="."+_,l="%"+s+"%",Ii(Dn,l))p=Dn[l];else if(p!=null){if(!(_ in p)){if(!i)throw new Zn("base intrinsic for "+n+" exists, but the property is not available.");return}if(Ln&&v+1>=a.length){var O=Ln(p,_);b=!!O,b&&"get"in O&&!("originalValue"in O.get)?p=O.get:p=p[_]}else b=Ii(p,_),p=p[_];b&&!g&&(Dn[l]=p)}}return p},yc={exports:{}},sa,vc;function ua(){if(vc)return sa;vc=1;var r=tr,n=r("%Object.defineProperty%",!0)||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return sa=n,sa}var nm=tr,Ti=nm("%Object.getOwnPropertyDescriptor%",!0);if(Ti)try{Ti([],"length")}catch{Ti=null}var wc=Ti,Ac=ua(),rm=fc,nr=Fr,_c=wc,im=function(n,i,a){if(!n||typeof n!="object"&&typeof n!="function")throw new nr("`obj` must be an object or a function`");if(typeof i!="string"&&typeof i!="symbol")throw new nr("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new nr("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new nr("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new nr("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new nr("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,p=arguments.length>6?arguments[6]:!1,g=!!_c&&_c(n,i);if(Ac)Ac(n,i,{configurable:l===null&&g?g.configurable:!l,enumerable:s===null&&g?g.enumerable:!s,value:a,writable:c===null&&g?g.writable:!c});else if(p||!s&&!c&&!l)n[i]=a;else throw new rm("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},ca=ua(),bc=function(){return!!ca};bc.hasArrayLengthDefineBug=function(){if(!ca)return null;try{return ca([],"length",{value:1}).length!==1}catch{return!0}};var om=bc,am=tr,Sc=im,sm=om(),Ec=wc,Ic=Fr,um=am("%Math.floor%"),cm=function(n,i){if(typeof n!="function")throw new Ic("`fn` is not a function");if(typeof i!="number"||i<0||i>4294967295||um(i)!==i)throw new Ic("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],s=!0,c=!0;if("length"in n&&Ec){var l=Ec(n,"length");l&&!l.configurable&&(s=!1),l&&!l.writable&&(c=!1)}return(s||c||!a)&&(sm?Sc(n,"length",i,!0,!0):Sc(n,"length",i)),n};(function(r){var n=ia,i=tr,a=cm,s=Fr,c=i("%Function.prototype.apply%"),l=i("%Function.prototype.call%"),p=i("%Reflect.apply%",!0)||n.call(l,c),g=ua(),y=i("%Math.max%");r.exports=function(_){if(typeof _!="function")throw new s("a function is required");var T=p(n,l,arguments);return a(T,1+y(0,_.length-(arguments.length-1)),!0)};var v=function(){return p(n,c,arguments)};g?g(r.exports,"apply",{value:v}):r.exports.apply=v})(yc);var lm=yc.exports,Oc=tr,Tc=lm,fm=Tc(Oc("String.prototype.indexOf")),dm=function(n,i){var a=Oc(n,!!i);return typeof a=="function"&&fm(n,".prototype.")>-1?Tc(a):a};const pm=mg(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var la=typeof Map=="function"&&Map.prototype,fa=Object.getOwnPropertyDescriptor&&la?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ci=la&&fa&&typeof fa.get=="function"?fa.get:null,Cc=la&&Map.prototype.forEach,da=typeof Set=="function"&&Set.prototype,pa=Object.getOwnPropertyDescriptor&&da?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ri=da&&pa&&typeof pa.get=="function"?pa.get:null,Rc=da&&Set.prototype.forEach,hm=typeof WeakMap=="function"&&WeakMap.prototype,Nr=hm?WeakMap.prototype.has:null,gm=typeof WeakSet=="function"&&WeakSet.prototype,Ur=gm?WeakSet.prototype.has:null,mm=typeof WeakRef=="function"&&WeakRef.prototype,xc=mm?WeakRef.prototype.deref:null,ym=Boolean.prototype.valueOf,vm=Object.prototype.toString,wm=Function.prototype.toString,Am=String.prototype.match,ha=String.prototype.slice,dn=String.prototype.replace,_m=String.prototype.toUpperCase,Pc=String.prototype.toLowerCase,Lc=RegExp.prototype.test,Dc=Array.prototype.concat,Ht=Array.prototype.join,bm=Array.prototype.slice,Mc=Math.floor,ga=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ma=Object.getOwnPropertySymbols,ya=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,rr=typeof Symbol=="function"&&typeof Symbol.iterator=="object",je=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===rr||!0)?Symbol.toStringTag:null,Bc=Object.prototype.propertyIsEnumerable,Fc=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function kc(r,n){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||Lc.call(/e/,n))return n;var i=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var a=r<0?-Mc(-r):Mc(r);if(a!==r){var s=String(a),c=ha.call(n,s.length+1);return dn.call(s,i,"$&_")+"."+dn.call(dn.call(c,/([0-9]{3})/g,"$&_"),/_$/,"")}}return dn.call(n,i,"$&_")}var va=pm,Nc=va.custom,Uc=Wc(Nc)?Nc:null,Sm=function r(n,i,a,s){var c=i||{};if(pn(c,"quoteStyle")&&c.quoteStyle!=="single"&&c.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(pn(c,"maxStringLength")&&(typeof c.maxStringLength=="number"?c.maxStringLength<0&&c.maxStringLength!==1/0:c.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=pn(c,"customInspect")?c.customInspect:!0;if(typeof l!="boolean"&&l!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(pn(c,"indent")&&c.indent!==null&&c.indent!==" "&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(pn(c,"numericSeparator")&&typeof c.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var p=c.numericSeparator;if(typeof n>"u")return"undefined";if(n===null)return"null";if(typeof n=="boolean")return n?"true":"false";if(typeof n=="string")return zc(n,c);if(typeof n=="number"){if(n===0)return 1/0/n>0?"0":"-0";var g=String(n);return p?kc(n,g):g}if(typeof n=="bigint"){var y=String(n)+"n";return p?kc(n,y):y}var v=typeof c.depth>"u"?5:c.depth;if(typeof a>"u"&&(a=0),a>=v&&v>0&&typeof n=="object")return wa(n)?"[Array]":"[Object]";var b=Hm(c,a);if(typeof s>"u")s=[];else if(Vc(s,n)>=0)return"[Circular]";function _(Me,G,W){if(G&&(s=bm.call(s),s.push(G)),W){var $={depth:c.depth};return pn(c,"quoteStyle")&&($.quoteStyle=c.quoteStyle),r(Me,$,a+1,s)}return r(Me,c,a+1,s)}if(typeof n=="function"&&!Hc(n)){var T=Lm(n),I=xi(n,_);return"[Function"+(T?": "+T:" (anonymous)")+"]"+(I.length>0?" { "+Ht.call(I,", ")+" }":"")}if(Wc(n)){var O=rr?dn.call(String(n),/^(Symbol\(.*\))_[^)]*$/,"$1"):ya.call(n);return typeof n=="object"&&!rr?$r(O):O}if(Nm(n)){for(var k="<"+Pc.call(String(n.nodeName)),C=n.attributes||[],U=0;U<C.length;U++)k+=" "+C[U].name+"="+$c(Em(C[U].value),"double",c);return k+=">",n.childNodes&&n.childNodes.length&&(k+="..."),k+="</"+Pc.call(String(n.nodeName))+">",k}if(wa(n)){if(n.length===0)return"[]";var x=xi(n,_);return b&&!$m(x)?"["+_a(x,b)+"]":"[ "+Ht.call(x,", ")+" ]"}if(Om(n)){var F=xi(n,_);return!("cause"in Error.prototype)&&"cause"in n&&!Bc.call(n,"cause")?"{ ["+String(n)+"] "+Ht.call(Dc.call("[cause]: "+_(n.cause),F),", ")+" }":F.length===0?"["+String(n)+"]":"{ ["+String(n)+"] "+Ht.call(F,", ")+" }"}if(typeof n=="object"&&l){if(Uc&&typeof n[Uc]=="function"&&va)return va(n,{depth:v-a});if(l!=="symbol"&&typeof n.inspect=="function")return n.inspect()}if(Dm(n)){var H=[];return Cc&&Cc.call(n,function(Me,G){H.push(_(G,n,!0)+" => "+_(Me,n))}),qc("Map",Ci.call(n),H,b)}if(Fm(n)){var z=[];return Rc&&Rc.call(n,function(Me){z.push(_(Me,n))}),qc("Set",Ri.call(n),z,b)}if(Mm(n))return Aa("WeakMap");if(km(n))return Aa("WeakSet");if(Bm(n))return Aa("WeakRef");if(Cm(n))return $r(_(Number(n)));if(xm(n))return $r(_(ga.call(n)));if(Rm(n))return $r(ym.call(n));if(Tm(n))return $r(_(String(n)));if(typeof window<"u"&&n===window)return"{ [object Window] }";if(n===Yt)return"{ [object globalThis] }";if(!Im(n)&&!Hc(n)){var Y=xi(n,_),ce=Fc?Fc(n)===Object.prototype:n instanceof Object||n.constructor===Object,oe=n instanceof Object?"":"null prototype",Q=!ce&&je&&Object(n)===n&&je in n?ha.call(hn(n),8,-1):oe?"Object":"",X=ce||typeof n.constructor!="function"?"":n.constructor.name?n.constructor.name+" ":"",Pe=X+(Q||oe?"["+Ht.call(Dc.call([],Q||[],oe||[]),": ")+"] ":"");return Y.length===0?Pe+"{}":b?Pe+"{"+_a(Y,b)+"}":Pe+"{ "+Ht.call(Y,", ")+" }"}return String(n)};function $c(r,n,i){var a=(i.quoteStyle||n)==="double"?'"':"'";return a+r+a}function Em(r){return dn.call(String(r),/"/g,""")}function wa(r){return hn(r)==="[object Array]"&&(!je||!(typeof r=="object"&&je in r))}function Im(r){return hn(r)==="[object Date]"&&(!je||!(typeof r=="object"&&je in r))}function Hc(r){return hn(r)==="[object RegExp]"&&(!je||!(typeof r=="object"&&je in r))}function Om(r){return hn(r)==="[object Error]"&&(!je||!(typeof r=="object"&&je in r))}function Tm(r){return hn(r)==="[object String]"&&(!je||!(typeof r=="object"&&je in r))}function Cm(r){return hn(r)==="[object Number]"&&(!je||!(typeof r=="object"&&je in r))}function Rm(r){return hn(r)==="[object Boolean]"&&(!je||!(typeof r=="object"&&je in r))}function Wc(r){if(rr)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!ya)return!1;try{return ya.call(r),!0}catch{}return!1}function xm(r){if(!r||typeof r!="object"||!ga)return!1;try{return ga.call(r),!0}catch{}return!1}var Pm=Object.prototype.hasOwnProperty||function(r){return r in this};function pn(r,n){return Pm.call(r,n)}function hn(r){return vm.call(r)}function Lm(r){if(r.name)return r.name;var n=Am.call(wm.call(r),/^function\s*([\w$]+)/);return n?n[1]:null}function Vc(r,n){if(r.indexOf)return r.indexOf(n);for(var i=0,a=r.length;i<a;i++)if(r[i]===n)return i;return-1}function Dm(r){if(!Ci||!r||typeof r!="object")return!1;try{Ci.call(r);try{Ri.call(r)}catch{return!0}return r instanceof Map}catch{}return!1}function Mm(r){if(!Nr||!r||typeof r!="object")return!1;try{Nr.call(r,Nr);try{Ur.call(r,Ur)}catch{return!0}return r instanceof WeakMap}catch{}return!1}function Bm(r){if(!xc||!r||typeof r!="object")return!1;try{return xc.call(r),!0}catch{}return!1}function Fm(r){if(!Ri||!r||typeof r!="object")return!1;try{Ri.call(r);try{Ci.call(r)}catch{return!0}return r instanceof Set}catch{}return!1}function km(r){if(!Ur||!r||typeof r!="object")return!1;try{Ur.call(r,Ur);try{Nr.call(r,Nr)}catch{return!0}return r instanceof WeakSet}catch{}return!1}function Nm(r){return!r||typeof r!="object"?!1:typeof HTMLElement<"u"&&r instanceof HTMLElement?!0:typeof r.nodeName=="string"&&typeof r.getAttribute=="function"}function zc(r,n){if(r.length>n.maxStringLength){var i=r.length-n.maxStringLength,a="... "+i+" more character"+(i>1?"s":"");return zc(ha.call(r,0,n.maxStringLength),n)+a}var s=dn.call(dn.call(r,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Um);return $c(s,"single",n)}function Um(r){var n=r.charCodeAt(0),i={8:"b",9:"t",10:"n",12:"f",13:"r"}[n];return i?"\\"+i:"\\x"+(n<16?"0":"")+_m.call(n.toString(16))}function $r(r){return"Object("+r+")"}function Aa(r){return r+" { ? }"}function qc(r,n,i,a){var s=a?_a(i,a):Ht.call(i,", ");return r+" ("+n+") {"+s+"}"}function $m(r){for(var n=0;n<r.length;n++)if(Vc(r[n],`
|
|
7
|
+
`)>=0)return!1;return!0}function Hm(r,n){var i;if(r.indent===" ")i=" ";else if(typeof r.indent=="number"&&r.indent>0)i=Ht.call(Array(r.indent+1)," ");else return null;return{base:i,prev:Ht.call(Array(n+1),i)}}function _a(r,n){if(r.length===0)return"";var i=`
|
|
8
|
+
`+n.prev+n.base;return i+Ht.call(r,","+i)+`
|
|
9
|
+
`+n.prev}function xi(r,n){var i=wa(r),a=[];if(i){a.length=r.length;for(var s=0;s<r.length;s++)a[s]=pn(r,s)?n(r[s],r):""}var c=typeof ma=="function"?ma(r):[],l;if(rr){l={};for(var p=0;p<c.length;p++)l["$"+c[p]]=c[p]}for(var g in r)pn(r,g)&&(i&&String(Number(g))===g&&g<r.length||rr&&l["$"+g]instanceof Symbol||(Lc.call(/[^\w$]/,g)?a.push(n(g,r)+": "+n(r[g],r)):a.push(g+": "+n(r[g],r))));if(typeof ma=="function")for(var y=0;y<c.length;y++)Bc.call(r,c[y])&&a.push("["+n(c[y])+"]: "+n(r[c[y]],r));return a}var Jc=tr,ir=dm,Wm=Sm,Vm=Fr,Pi=Jc("%WeakMap%",!0),Li=Jc("%Map%",!0),zm=ir("WeakMap.prototype.get",!0),qm=ir("WeakMap.prototype.set",!0),Jm=ir("WeakMap.prototype.has",!0),Gm=ir("Map.prototype.get",!0),Km=ir("Map.prototype.set",!0),jm=ir("Map.prototype.has",!0),ba=function(r,n){for(var i=r,a;(a=i.next)!==null;i=a)if(a.key===n)return i.next=a.next,a.next=r.next,r.next=a,a},Ym=function(r,n){var i=ba(r,n);return i&&i.value},Qm=function(r,n,i){var a=ba(r,n);a?a.value=i:r.next={key:n,next:r.next,value:i}},Zm=function(r,n){return!!ba(r,n)},Xm=function(){var n,i,a,s={assert:function(c){if(!s.has(c))throw new Vm("Side channel does not contain "+Wm(c))},get:function(c){if(Pi&&c&&(typeof c=="object"||typeof c=="function")){if(n)return zm(n,c)}else if(Li){if(i)return Gm(i,c)}else if(a)return Ym(a,c)},has:function(c){if(Pi&&c&&(typeof c=="object"||typeof c=="function")){if(n)return Jm(n,c)}else if(Li){if(i)return jm(i,c)}else if(a)return Zm(a,c);return!1},set:function(c,l){Pi&&c&&(typeof c=="object"||typeof c=="function")?(n||(n=new Pi),qm(n,c,l)):Li?(i||(i=new Li),Km(i,c,l)):(a||(a={key:{},next:null}),Qm(a,c,l))}};return s},ey=String.prototype.replace,ty=/%20/g,Sa={RFC1738:"RFC1738",RFC3986:"RFC3986"},Ea={default:Sa.RFC3986,formatters:{RFC1738:function(r){return ey.call(r,ty,"+")},RFC3986:function(r){return String(r)}},RFC1738:Sa.RFC1738,RFC3986:Sa.RFC3986},ny=Ea,Ia=Object.prototype.hasOwnProperty,Mn=Array.isArray,Wt=function(){for(var r=[],n=0;n<256;++n)r.push("%"+((n<16?"0":"")+n.toString(16)).toUpperCase());return r}(),ry=function(n){for(;n.length>1;){var i=n.pop(),a=i.obj[i.prop];if(Mn(a)){for(var s=[],c=0;c<a.length;++c)typeof a[c]<"u"&&s.push(a[c]);i.obj[i.prop]=s}}},Gc=function(n,i){for(var a=i&&i.plainObjects?Object.create(null):{},s=0;s<n.length;++s)typeof n[s]<"u"&&(a[s]=n[s]);return a},iy=function r(n,i,a){if(!i)return n;if(typeof i!="object"){if(Mn(n))n.push(i);else if(n&&typeof n=="object")(a&&(a.plainObjects||a.allowPrototypes)||!Ia.call(Object.prototype,i))&&(n[i]=!0);else return[n,i];return n}if(!n||typeof n!="object")return[n].concat(i);var s=n;return Mn(n)&&!Mn(i)&&(s=Gc(n,a)),Mn(n)&&Mn(i)?(i.forEach(function(c,l){if(Ia.call(n,l)){var p=n[l];p&&typeof p=="object"&&c&&typeof c=="object"?n[l]=r(p,c,a):n.push(c)}else n[l]=c}),n):Object.keys(i).reduce(function(c,l){var p=i[l];return Ia.call(c,l)?c[l]=r(c[l],p,a):c[l]=p,c},s)},oy=function(n,i){return Object.keys(i).reduce(function(a,s){return a[s]=i[s],a},n)},ay=function(r,n,i){var a=r.replace(/\+/g," ");if(i==="iso-8859-1")return a.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(a)}catch{return a}},Oa=1024,sy=function(n,i,a,s,c){if(n.length===0)return n;var l=n;if(typeof n=="symbol"?l=Symbol.prototype.toString.call(n):typeof n!="string"&&(l=String(n)),a==="iso-8859-1")return escape(l).replace(/%u[0-9a-f]{4}/gi,function(T){return"%26%23"+parseInt(T.slice(2),16)+"%3B"});for(var p="",g=0;g<l.length;g+=Oa){for(var y=l.length>=Oa?l.slice(g,g+Oa):l,v=[],b=0;b<y.length;++b){var _=y.charCodeAt(b);if(_===45||_===46||_===95||_===126||_>=48&&_<=57||_>=65&&_<=90||_>=97&&_<=122||c===ny.RFC1738&&(_===40||_===41)){v[v.length]=y.charAt(b);continue}if(_<128){v[v.length]=Wt[_];continue}if(_<2048){v[v.length]=Wt[192|_>>6]+Wt[128|_&63];continue}if(_<55296||_>=57344){v[v.length]=Wt[224|_>>12]+Wt[128|_>>6&63]+Wt[128|_&63];continue}b+=1,_=65536+((_&1023)<<10|y.charCodeAt(b)&1023),v[v.length]=Wt[240|_>>18]+Wt[128|_>>12&63]+Wt[128|_>>6&63]+Wt[128|_&63]}p+=v.join("")}return p},uy=function(n){for(var i=[{obj:{o:n},prop:"o"}],a=[],s=0;s<i.length;++s)for(var c=i[s],l=c.obj[c.prop],p=Object.keys(l),g=0;g<p.length;++g){var y=p[g],v=l[y];typeof v=="object"&&v!==null&&a.indexOf(v)===-1&&(i.push({obj:l,prop:y}),a.push(v))}return ry(i),n},cy=function(n){return Object.prototype.toString.call(n)==="[object RegExp]"},ly=function(n){return!n||typeof n!="object"?!1:!!(n.constructor&&n.constructor.isBuffer&&n.constructor.isBuffer(n))},fy=function(n,i){return[].concat(n,i)},dy=function(n,i){if(Mn(n)){for(var a=[],s=0;s<n.length;s+=1)a.push(i(n[s]));return a}return i(n)},Kc={arrayToObject:Gc,assign:oy,combine:fy,compact:uy,decode:ay,encode:sy,isBuffer:ly,isRegExp:cy,maybeMap:dy,merge:iy},jc=Xm,Di=Kc,Hr=Ea,py=Object.prototype.hasOwnProperty,Yc={brackets:function(n){return n+"[]"},comma:"comma",indices:function(n,i){return n+"["+i+"]"},repeat:function(n){return n}},Vt=Array.isArray,hy=Array.prototype.push,Qc=function(r,n){hy.apply(r,Vt(n)?n:[n])},gy=Date.prototype.toISOString,Zc=Hr.default,Ne={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Di.encode,encodeValuesOnly:!1,format:Zc,formatter:Hr.formatters[Zc],indices:!1,serializeDate:function(n){return gy.call(n)},skipNulls:!1,strictNullHandling:!1},my=function(n){return typeof n=="string"||typeof n=="number"||typeof n=="boolean"||typeof n=="symbol"||typeof n=="bigint"},Ta={},yy=function r(n,i,a,s,c,l,p,g,y,v,b,_,T,I,O,k,C,U){for(var x=n,F=U,H=0,z=!1;(F=F.get(Ta))!==void 0&&!z;){var Y=F.get(n);if(H+=1,typeof Y<"u"){if(Y===H)throw new RangeError("Cyclic object value");z=!0}typeof F.get(Ta)>"u"&&(H=0)}if(typeof v=="function"?x=v(i,x):x instanceof Date?x=T(x):a==="comma"&&Vt(x)&&(x=Di.maybeMap(x,function(ee){return ee instanceof Date?T(ee):ee})),x===null){if(l)return y&&!k?y(i,Ne.encoder,C,"key",I):i;x=""}if(my(x)||Di.isBuffer(x)){if(y){var ce=k?i:y(i,Ne.encoder,C,"key",I);return[O(ce)+"="+O(y(x,Ne.encoder,C,"value",I))]}return[O(i)+"="+O(String(x))]}var oe=[];if(typeof x>"u")return oe;var Q;if(a==="comma"&&Vt(x))k&&y&&(x=Di.maybeMap(x,y)),Q=[{value:x.length>0?x.join(",")||null:void 0}];else if(Vt(v))Q=v;else{var X=Object.keys(x);Q=b?X.sort(b):X}var Pe=g?i.replace(/\./g,"%2E"):i,Me=s&&Vt(x)&&x.length===1?Pe+"[]":Pe;if(c&&Vt(x)&&x.length===0)return Me+"[]";for(var G=0;G<Q.length;++G){var W=Q[G],$=typeof W=="object"&&typeof W.value<"u"?W.value:x[W];if(!(p&&$===null)){var q=_&&g?W.replace(/\./g,"%2E"):W,N=Vt(x)?typeof a=="function"?a(Me,q):Me:Me+(_?"."+q:"["+q+"]");U.set(n,H);var ie=jc();ie.set(Ta,U),Qc(oe,r($,N,a,s,c,l,p,g,a==="comma"&&k&&Vt(x)?null:y,v,b,_,T,I,O,k,C,ie))}}return oe},vy=function(n){if(!n)return Ne;if(typeof n.allowEmptyArrays<"u"&&typeof n.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof n.encodeDotInKeys<"u"&&typeof n.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(n.encoder!==null&&typeof n.encoder<"u"&&typeof n.encoder!="function")throw new TypeError("Encoder has to be a function.");var i=n.charset||Ne.charset;if(typeof n.charset<"u"&&n.charset!=="utf-8"&&n.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var a=Hr.default;if(typeof n.format<"u"){if(!py.call(Hr.formatters,n.format))throw new TypeError("Unknown format option provided.");a=n.format}var s=Hr.formatters[a],c=Ne.filter;(typeof n.filter=="function"||Vt(n.filter))&&(c=n.filter);var l;if(n.arrayFormat in Yc?l=n.arrayFormat:"indices"in n?l=n.indices?"indices":"repeat":l=Ne.arrayFormat,"commaRoundTrip"in n&&typeof n.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var p=typeof n.allowDots>"u"?n.encodeDotInKeys===!0?!0:Ne.allowDots:!!n.allowDots;return{addQueryPrefix:typeof n.addQueryPrefix=="boolean"?n.addQueryPrefix:Ne.addQueryPrefix,allowDots:p,allowEmptyArrays:typeof n.allowEmptyArrays=="boolean"?!!n.allowEmptyArrays:Ne.allowEmptyArrays,arrayFormat:l,charset:i,charsetSentinel:typeof n.charsetSentinel=="boolean"?n.charsetSentinel:Ne.charsetSentinel,commaRoundTrip:n.commaRoundTrip,delimiter:typeof n.delimiter>"u"?Ne.delimiter:n.delimiter,encode:typeof n.encode=="boolean"?n.encode:Ne.encode,encodeDotInKeys:typeof n.encodeDotInKeys=="boolean"?n.encodeDotInKeys:Ne.encodeDotInKeys,encoder:typeof n.encoder=="function"?n.encoder:Ne.encoder,encodeValuesOnly:typeof n.encodeValuesOnly=="boolean"?n.encodeValuesOnly:Ne.encodeValuesOnly,filter:c,format:a,formatter:s,serializeDate:typeof n.serializeDate=="function"?n.serializeDate:Ne.serializeDate,skipNulls:typeof n.skipNulls=="boolean"?n.skipNulls:Ne.skipNulls,sort:typeof n.sort=="function"?n.sort:null,strictNullHandling:typeof n.strictNullHandling=="boolean"?n.strictNullHandling:Ne.strictNullHandling}},wy=function(r,n){var i=r,a=vy(n),s,c;typeof a.filter=="function"?(c=a.filter,i=c("",i)):Vt(a.filter)&&(c=a.filter,s=c);var l=[];if(typeof i!="object"||i===null)return"";var p=Yc[a.arrayFormat],g=p==="comma"&&a.commaRoundTrip;s||(s=Object.keys(i)),a.sort&&s.sort(a.sort);for(var y=jc(),v=0;v<s.length;++v){var b=s[v];a.skipNulls&&i[b]===null||Qc(l,yy(i[b],b,p,g,a.allowEmptyArrays,a.strictNullHandling,a.skipNulls,a.encodeDotInKeys,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,y))}var _=l.join(a.delimiter),T=a.addQueryPrefix===!0?"?":"";return a.charsetSentinel&&(a.charset==="iso-8859-1"?T+="utf8=%26%2310003%3B&":T+="utf8=%E2%9C%93&"),_.length>0?T+_:""},or=Kc,Ca=Object.prototype.hasOwnProperty,Ay=Array.isArray,De={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:or.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},_y=function(r){return r.replace(/&#(\d+);/g,function(n,i){return String.fromCharCode(parseInt(i,10))})},Xc=function(r,n){return r&&typeof r=="string"&&n.comma&&r.indexOf(",")>-1?r.split(","):r},by="utf8=%26%2310003%3B",Sy="utf8=%E2%9C%93",Ey=function(n,i){var a={__proto__:null},s=i.ignoreQueryPrefix?n.replace(/^\?/,""):n,c=i.parameterLimit===1/0?void 0:i.parameterLimit,l=s.split(i.delimiter,c),p=-1,g,y=i.charset;if(i.charsetSentinel)for(g=0;g<l.length;++g)l[g].indexOf("utf8=")===0&&(l[g]===Sy?y="utf-8":l[g]===by&&(y="iso-8859-1"),p=g,g=l.length);for(g=0;g<l.length;++g)if(g!==p){var v=l[g],b=v.indexOf("]="),_=b===-1?v.indexOf("="):b+1,T,I;_===-1?(T=i.decoder(v,De.decoder,y,"key"),I=i.strictNullHandling?null:""):(T=i.decoder(v.slice(0,_),De.decoder,y,"key"),I=or.maybeMap(Xc(v.slice(_+1),i),function(k){return i.decoder(k,De.decoder,y,"value")})),I&&i.interpretNumericEntities&&y==="iso-8859-1"&&(I=_y(I)),v.indexOf("[]=")>-1&&(I=Ay(I)?[I]:I);var O=Ca.call(a,T);O&&i.duplicates==="combine"?a[T]=or.combine(a[T],I):(!O||i.duplicates==="last")&&(a[T]=I)}return a},Iy=function(r,n,i,a){for(var s=a?n:Xc(n,i),c=r.length-1;c>=0;--c){var l,p=r[c];if(p==="[]"&&i.parseArrays)l=i.allowEmptyArrays&&s===""?[]:[].concat(s);else{l=i.plainObjects?Object.create(null):{};var g=p.charAt(0)==="["&&p.charAt(p.length-1)==="]"?p.slice(1,-1):p,y=i.decodeDotInKeys?g.replace(/%2E/g,"."):g,v=parseInt(y,10);!i.parseArrays&&y===""?l={0:s}:!isNaN(v)&&p!==y&&String(v)===y&&v>=0&&i.parseArrays&&v<=i.arrayLimit?(l=[],l[v]=s):y!=="__proto__"&&(l[y]=s)}s=l}return s},Oy=function(n,i,a,s){if(n){var c=a.allowDots?n.replace(/\.([^.[]+)/g,"[$1]"):n,l=/(\[[^[\]]*])/,p=/(\[[^[\]]*])/g,g=a.depth>0&&l.exec(c),y=g?c.slice(0,g.index):c,v=[];if(y){if(!a.plainObjects&&Ca.call(Object.prototype,y)&&!a.allowPrototypes)return;v.push(y)}for(var b=0;a.depth>0&&(g=p.exec(c))!==null&&b<a.depth;){if(b+=1,!a.plainObjects&&Ca.call(Object.prototype,g[1].slice(1,-1))&&!a.allowPrototypes)return;v.push(g[1])}return g&&v.push("["+c.slice(g.index)+"]"),Iy(v,i,a,s)}},Ty=function(n){if(!n)return De;if(typeof n.allowEmptyArrays<"u"&&typeof n.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof n.decodeDotInKeys<"u"&&typeof n.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(n.decoder!==null&&typeof n.decoder<"u"&&typeof n.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof n.charset<"u"&&n.charset!=="utf-8"&&n.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var i=typeof n.charset>"u"?De.charset:n.charset,a=typeof n.duplicates>"u"?De.duplicates:n.duplicates;if(a!=="combine"&&a!=="first"&&a!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var s=typeof n.allowDots>"u"?n.decodeDotInKeys===!0?!0:De.allowDots:!!n.allowDots;return{allowDots:s,allowEmptyArrays:typeof n.allowEmptyArrays=="boolean"?!!n.allowEmptyArrays:De.allowEmptyArrays,allowPrototypes:typeof n.allowPrototypes=="boolean"?n.allowPrototypes:De.allowPrototypes,allowSparse:typeof n.allowSparse=="boolean"?n.allowSparse:De.allowSparse,arrayLimit:typeof n.arrayLimit=="number"?n.arrayLimit:De.arrayLimit,charset:i,charsetSentinel:typeof n.charsetSentinel=="boolean"?n.charsetSentinel:De.charsetSentinel,comma:typeof n.comma=="boolean"?n.comma:De.comma,decodeDotInKeys:typeof n.decodeDotInKeys=="boolean"?n.decodeDotInKeys:De.decodeDotInKeys,decoder:typeof n.decoder=="function"?n.decoder:De.decoder,delimiter:typeof n.delimiter=="string"||or.isRegExp(n.delimiter)?n.delimiter:De.delimiter,depth:typeof n.depth=="number"||n.depth===!1?+n.depth:De.depth,duplicates:a,ignoreQueryPrefix:n.ignoreQueryPrefix===!0,interpretNumericEntities:typeof n.interpretNumericEntities=="boolean"?n.interpretNumericEntities:De.interpretNumericEntities,parameterLimit:typeof n.parameterLimit=="number"?n.parameterLimit:De.parameterLimit,parseArrays:n.parseArrays!==!1,plainObjects:typeof n.plainObjects=="boolean"?n.plainObjects:De.plainObjects,strictNullHandling:typeof n.strictNullHandling=="boolean"?n.strictNullHandling:De.strictNullHandling}},Cy=function(r,n){var i=Ty(n);if(r===""||r===null||typeof r>"u")return i.plainObjects?Object.create(null):{};for(var a=typeof r=="string"?Ey(r,i):r,s=i.plainObjects?Object.create(null):{},c=Object.keys(a),l=0;l<c.length;++l){var p=c[l],g=Oy(p,a[p],i,typeof r=="string");s=or.merge(s,g,i)}return i.allowSparse===!0?s:or.compact(s)},Ry=wy,xy=Cy,Py=Ea,Ly={formats:Py,parse:xy,stringify:Ry};const Dy=Ei(Ly);var Mi={exports:{}};/**
|
|
10
|
+
* @license
|
|
11
|
+
* Lodash <https://lodash.com/>
|
|
12
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
13
|
+
* Released under MIT license <https://lodash.com/license>
|
|
14
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
15
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
16
|
+
*/Mi.exports,function(r,n){(function(){var i,a="4.17.21",s=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",p="Invalid `variable` option passed into `_.template`",g="__lodash_hash_undefined__",y=500,v="__lodash_placeholder__",b=1,_=2,T=4,I=1,O=2,k=1,C=2,U=4,x=8,F=16,H=32,z=64,Y=128,ce=256,oe=512,Q=30,X="...",Pe=800,Me=16,G=1,W=2,$=3,q=1/0,N=9007199254740991,ie=17976931348623157e292,ee=NaN,pe=4294967295,Re=pe-1,ke=pe>>>1,ze=[["ary",Y],["bind",k],["bindKey",C],["curry",x],["curryRight",F],["flip",oe],["partial",H],["partialRight",z],["rearg",ce]],Ue="[object Arguments]",Lt="[object Array]",Zt="[object AsyncFunction]",Dt="[object Boolean]",ct="[object Date]",Qe="[object DOMException]",lt="[object Error]",qt="[object Function]",Un="[object GeneratorFunction]",Mt="[object Map]",qr="[object Number]",W0="[object Null]",Xt="[object Object]",jl="[object Promise]",V0="[object Proxy]",Jr="[object RegExp]",Bt="[object Set]",Gr="[object String]",Hi="[object Symbol]",z0="[object Undefined]",Kr="[object WeakMap]",q0="[object WeakSet]",jr="[object ArrayBuffer]",dr="[object DataView]",ja="[object Float32Array]",Ya="[object Float64Array]",Qa="[object Int8Array]",Za="[object Int16Array]",Xa="[object Int32Array]",es="[object Uint8Array]",ts="[object Uint8ClampedArray]",ns="[object Uint16Array]",rs="[object Uint32Array]",J0=/\b__p \+= '';/g,G0=/\b(__p \+=) '' \+/g,K0=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Yl=/&(?:amp|lt|gt|quot|#39);/g,Ql=/[&<>"']/g,j0=RegExp(Yl.source),Y0=RegExp(Ql.source),Q0=/<%-([\s\S]+?)%>/g,Z0=/<%([\s\S]+?)%>/g,Zl=/<%=([\s\S]+?)%>/g,X0=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ew=/^\w*$/,tw=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,is=/[\\^$.*+?()[\]{}|]/g,nw=RegExp(is.source),os=/^\s+/,rw=/\s/,iw=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ow=/\{\n\/\* \[wrapped with (.+)\] \*/,aw=/,? & /,sw=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,uw=/[()=,{}\[\]\/\s]/,cw=/\\(\\)?/g,lw=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Xl=/\w*$/,fw=/^[-+]0x[0-9a-f]+$/i,dw=/^0b[01]+$/i,pw=/^\[object .+?Constructor\]$/,hw=/^0o[0-7]+$/i,gw=/^(?:0|[1-9]\d*)$/,mw=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Wi=/($^)/,yw=/['\n\r\u2028\u2029\\]/g,Vi="\\ud800-\\udfff",vw="\\u0300-\\u036f",ww="\\ufe20-\\ufe2f",Aw="\\u20d0-\\u20ff",ef=vw+ww+Aw,tf="\\u2700-\\u27bf",nf="a-z\\xdf-\\xf6\\xf8-\\xff",_w="\\xac\\xb1\\xd7\\xf7",bw="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Sw="\\u2000-\\u206f",Ew=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",rf="A-Z\\xc0-\\xd6\\xd8-\\xde",of="\\ufe0e\\ufe0f",af=_w+bw+Sw+Ew,as="['’]",Iw="["+Vi+"]",sf="["+af+"]",zi="["+ef+"]",uf="\\d+",Ow="["+tf+"]",cf="["+nf+"]",lf="[^"+Vi+af+uf+tf+nf+rf+"]",ss="\\ud83c[\\udffb-\\udfff]",Tw="(?:"+zi+"|"+ss+")",ff="[^"+Vi+"]",us="(?:\\ud83c[\\udde6-\\uddff]){2}",cs="[\\ud800-\\udbff][\\udc00-\\udfff]",pr="["+rf+"]",df="\\u200d",pf="(?:"+cf+"|"+lf+")",Cw="(?:"+pr+"|"+lf+")",hf="(?:"+as+"(?:d|ll|m|re|s|t|ve))?",gf="(?:"+as+"(?:D|LL|M|RE|S|T|VE))?",mf=Tw+"?",yf="["+of+"]?",Rw="(?:"+df+"(?:"+[ff,us,cs].join("|")+")"+yf+mf+")*",xw="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pw="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",vf=yf+mf+Rw,Lw="(?:"+[Ow,us,cs].join("|")+")"+vf,Dw="(?:"+[ff+zi+"?",zi,us,cs,Iw].join("|")+")",Mw=RegExp(as,"g"),Bw=RegExp(zi,"g"),ls=RegExp(ss+"(?="+ss+")|"+Dw+vf,"g"),Fw=RegExp([pr+"?"+cf+"+"+hf+"(?="+[sf,pr,"$"].join("|")+")",Cw+"+"+gf+"(?="+[sf,pr+pf,"$"].join("|")+")",pr+"?"+pf+"+"+hf,pr+"+"+gf,Pw,xw,uf,Lw].join("|"),"g"),kw=RegExp("["+df+Vi+ef+of+"]"),Nw=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Uw=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],$w=-1,Ie={};Ie[ja]=Ie[Ya]=Ie[Qa]=Ie[Za]=Ie[Xa]=Ie[es]=Ie[ts]=Ie[ns]=Ie[rs]=!0,Ie[Ue]=Ie[Lt]=Ie[jr]=Ie[Dt]=Ie[dr]=Ie[ct]=Ie[lt]=Ie[qt]=Ie[Mt]=Ie[qr]=Ie[Xt]=Ie[Jr]=Ie[Bt]=Ie[Gr]=Ie[Kr]=!1;var Se={};Se[Ue]=Se[Lt]=Se[jr]=Se[dr]=Se[Dt]=Se[ct]=Se[ja]=Se[Ya]=Se[Qa]=Se[Za]=Se[Xa]=Se[Mt]=Se[qr]=Se[Xt]=Se[Jr]=Se[Bt]=Se[Gr]=Se[Hi]=Se[es]=Se[ts]=Se[ns]=Se[rs]=!0,Se[lt]=Se[qt]=Se[Kr]=!1;var Hw={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â: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ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Ww={"&":"&","<":"<",">":">",'"':""","'":"'"},Vw={"&":"&","<":"<",">":">",""":'"',"'":"'"},zw={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},qw=parseFloat,Jw=parseInt,wf=typeof Yt=="object"&&Yt&&Yt.Object===Object&&Yt,Gw=typeof self=="object"&&self&&self.Object===Object&&self,Ge=wf||Gw||Function("return this")(),fs=n&&!n.nodeType&&n,$n=fs&&!0&&r&&!r.nodeType&&r,Af=$n&&$n.exports===fs,ds=Af&&wf.process,_t=function(){try{var S=$n&&$n.require&&$n.require("util").types;return S||ds&&ds.binding&&ds.binding("util")}catch{}}(),_f=_t&&_t.isArrayBuffer,bf=_t&&_t.isDate,Sf=_t&&_t.isMap,Ef=_t&&_t.isRegExp,If=_t&&_t.isSet,Of=_t&&_t.isTypedArray;function ft(S,L,R){switch(R.length){case 0:return S.call(L);case 1:return S.call(L,R[0]);case 2:return S.call(L,R[0],R[1]);case 3:return S.call(L,R[0],R[1],R[2])}return S.apply(L,R)}function Kw(S,L,R,J){for(var ae=-1,we=S==null?0:S.length;++ae<we;){var $e=S[ae];L(J,$e,R($e),S)}return J}function bt(S,L){for(var R=-1,J=S==null?0:S.length;++R<J&&L(S[R],R,S)!==!1;);return S}function jw(S,L){for(var R=S==null?0:S.length;R--&&L(S[R],R,S)!==!1;);return S}function Tf(S,L){for(var R=-1,J=S==null?0:S.length;++R<J;)if(!L(S[R],R,S))return!1;return!0}function mn(S,L){for(var R=-1,J=S==null?0:S.length,ae=0,we=[];++R<J;){var $e=S[R];L($e,R,S)&&(we[ae++]=$e)}return we}function qi(S,L){var R=S==null?0:S.length;return!!R&&hr(S,L,0)>-1}function ps(S,L,R){for(var J=-1,ae=S==null?0:S.length;++J<ae;)if(R(L,S[J]))return!0;return!1}function Ce(S,L){for(var R=-1,J=S==null?0:S.length,ae=Array(J);++R<J;)ae[R]=L(S[R],R,S);return ae}function yn(S,L){for(var R=-1,J=L.length,ae=S.length;++R<J;)S[ae+R]=L[R];return S}function hs(S,L,R,J){var ae=-1,we=S==null?0:S.length;for(J&&we&&(R=S[++ae]);++ae<we;)R=L(R,S[ae],ae,S);return R}function Yw(S,L,R,J){var ae=S==null?0:S.length;for(J&&ae&&(R=S[--ae]);ae--;)R=L(R,S[ae],ae,S);return R}function gs(S,L){for(var R=-1,J=S==null?0:S.length;++R<J;)if(L(S[R],R,S))return!0;return!1}var Qw=ms("length");function Zw(S){return S.split("")}function Xw(S){return S.match(sw)||[]}function Cf(S,L,R){var J;return R(S,function(ae,we,$e){if(L(ae,we,$e))return J=we,!1}),J}function Ji(S,L,R,J){for(var ae=S.length,we=R+(J?1:-1);J?we--:++we<ae;)if(L(S[we],we,S))return we;return-1}function hr(S,L,R){return L===L?fA(S,L,R):Ji(S,Rf,R)}function eA(S,L,R,J){for(var ae=R-1,we=S.length;++ae<we;)if(J(S[ae],L))return ae;return-1}function Rf(S){return S!==S}function xf(S,L){var R=S==null?0:S.length;return R?vs(S,L)/R:ee}function ms(S){return function(L){return L==null?i:L[S]}}function ys(S){return function(L){return S==null?i:S[L]}}function Pf(S,L,R,J,ae){return ae(S,function(we,$e,be){R=J?(J=!1,we):L(R,we,$e,be)}),R}function tA(S,L){var R=S.length;for(S.sort(L);R--;)S[R]=S[R].value;return S}function vs(S,L){for(var R,J=-1,ae=S.length;++J<ae;){var we=L(S[J]);we!==i&&(R=R===i?we:R+we)}return R}function ws(S,L){for(var R=-1,J=Array(S);++R<S;)J[R]=L(R);return J}function nA(S,L){return Ce(L,function(R){return[R,S[R]]})}function Lf(S){return S&&S.slice(0,Ff(S)+1).replace(os,"")}function dt(S){return function(L){return S(L)}}function As(S,L){return Ce(L,function(R){return S[R]})}function Yr(S,L){return S.has(L)}function Df(S,L){for(var R=-1,J=S.length;++R<J&&hr(L,S[R],0)>-1;);return R}function Mf(S,L){for(var R=S.length;R--&&hr(L,S[R],0)>-1;);return R}function rA(S,L){for(var R=S.length,J=0;R--;)S[R]===L&&++J;return J}var iA=ys(Hw),oA=ys(Ww);function aA(S){return"\\"+zw[S]}function sA(S,L){return S==null?i:S[L]}function gr(S){return kw.test(S)}function uA(S){return Nw.test(S)}function cA(S){for(var L,R=[];!(L=S.next()).done;)R.push(L.value);return R}function _s(S){var L=-1,R=Array(S.size);return S.forEach(function(J,ae){R[++L]=[ae,J]}),R}function Bf(S,L){return function(R){return S(L(R))}}function vn(S,L){for(var R=-1,J=S.length,ae=0,we=[];++R<J;){var $e=S[R];($e===L||$e===v)&&(S[R]=v,we[ae++]=R)}return we}function Gi(S){var L=-1,R=Array(S.size);return S.forEach(function(J){R[++L]=J}),R}function lA(S){var L=-1,R=Array(S.size);return S.forEach(function(J){R[++L]=[J,J]}),R}function fA(S,L,R){for(var J=R-1,ae=S.length;++J<ae;)if(S[J]===L)return J;return-1}function dA(S,L,R){for(var J=R+1;J--;)if(S[J]===L)return J;return J}function mr(S){return gr(S)?hA(S):Qw(S)}function Ft(S){return gr(S)?gA(S):Zw(S)}function Ff(S){for(var L=S.length;L--&&rw.test(S.charAt(L)););return L}var pA=ys(Vw);function hA(S){for(var L=ls.lastIndex=0;ls.test(S);)++L;return L}function gA(S){return S.match(ls)||[]}function mA(S){return S.match(Fw)||[]}var yA=function S(L){L=L==null?Ge:yr.defaults(Ge.Object(),L,yr.pick(Ge,Uw));var R=L.Array,J=L.Date,ae=L.Error,we=L.Function,$e=L.Math,be=L.Object,bs=L.RegExp,vA=L.String,St=L.TypeError,Ki=R.prototype,wA=we.prototype,vr=be.prototype,ji=L["__core-js_shared__"],Yi=wA.toString,_e=vr.hasOwnProperty,AA=0,kf=function(){var e=/[^.]+$/.exec(ji&&ji.keys&&ji.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Qi=vr.toString,_A=Yi.call(be),bA=Ge._,SA=bs("^"+Yi.call(_e).replace(is,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Zi=Af?L.Buffer:i,wn=L.Symbol,Xi=L.Uint8Array,Nf=Zi?Zi.allocUnsafe:i,eo=Bf(be.getPrototypeOf,be),Uf=be.create,$f=vr.propertyIsEnumerable,to=Ki.splice,Hf=wn?wn.isConcatSpreadable:i,Qr=wn?wn.iterator:i,Hn=wn?wn.toStringTag:i,no=function(){try{var e=Jn(be,"defineProperty");return e({},"",{}),e}catch{}}(),EA=L.clearTimeout!==Ge.clearTimeout&&L.clearTimeout,IA=J&&J.now!==Ge.Date.now&&J.now,OA=L.setTimeout!==Ge.setTimeout&&L.setTimeout,ro=$e.ceil,io=$e.floor,Ss=be.getOwnPropertySymbols,TA=Zi?Zi.isBuffer:i,Wf=L.isFinite,CA=Ki.join,RA=Bf(be.keys,be),He=$e.max,Ze=$e.min,xA=J.now,PA=L.parseInt,Vf=$e.random,LA=Ki.reverse,Es=Jn(L,"DataView"),Zr=Jn(L,"Map"),Is=Jn(L,"Promise"),wr=Jn(L,"Set"),Xr=Jn(L,"WeakMap"),ei=Jn(be,"create"),oo=Xr&&new Xr,Ar={},DA=Gn(Es),MA=Gn(Zr),BA=Gn(Is),FA=Gn(wr),kA=Gn(Xr),ao=wn?wn.prototype:i,ti=ao?ao.valueOf:i,zf=ao?ao.toString:i;function h(e){if(Le(e)&&!se(e)&&!(e instanceof me)){if(e instanceof Et)return e;if(_e.call(e,"__wrapped__"))return qd(e)}return new Et(e)}var _r=function(){function e(){}return function(t){if(!xe(t))return{};if(Uf)return Uf(t);e.prototype=t;var o=new e;return e.prototype=i,o}}();function so(){}function Et(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}h.templateSettings={escape:Q0,evaluate:Z0,interpolate:Zl,variable:"",imports:{_:h}},h.prototype=so.prototype,h.prototype.constructor=h,Et.prototype=_r(so.prototype),Et.prototype.constructor=Et;function me(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=pe,this.__views__=[]}function NA(){var e=new me(this.__wrapped__);return e.__actions__=it(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=it(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=it(this.__views__),e}function UA(){if(this.__filtered__){var e=new me(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function $A(){var e=this.__wrapped__.value(),t=this.__dir__,o=se(e),u=t<0,f=o?e.length:0,m=Z_(0,f,this.__views__),w=m.start,A=m.end,E=A-w,D=u?A:w-1,M=this.__iteratees__,B=M.length,V=0,j=Ze(E,this.__takeCount__);if(!o||!u&&f==E&&j==E)return hd(e,this.__actions__);var te=[];e:for(;E--&&V<j;){D+=t;for(var fe=-1,ne=e[D];++fe<B;){var he=M[fe],ye=he.iteratee,gt=he.type,nt=ye(ne);if(gt==W)ne=nt;else if(!nt){if(gt==G)continue e;break e}}te[V++]=ne}return te}me.prototype=_r(so.prototype),me.prototype.constructor=me;function Wn(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var u=e[t];this.set(u[0],u[1])}}function HA(){this.__data__=ei?ei(null):{},this.size=0}function WA(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function VA(e){var t=this.__data__;if(ei){var o=t[e];return o===g?i:o}return _e.call(t,e)?t[e]:i}function zA(e){var t=this.__data__;return ei?t[e]!==i:_e.call(t,e)}function qA(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=ei&&t===i?g:t,this}Wn.prototype.clear=HA,Wn.prototype.delete=WA,Wn.prototype.get=VA,Wn.prototype.has=zA,Wn.prototype.set=qA;function en(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var u=e[t];this.set(u[0],u[1])}}function JA(){this.__data__=[],this.size=0}function GA(e){var t=this.__data__,o=uo(t,e);if(o<0)return!1;var u=t.length-1;return o==u?t.pop():to.call(t,o,1),--this.size,!0}function KA(e){var t=this.__data__,o=uo(t,e);return o<0?i:t[o][1]}function jA(e){return uo(this.__data__,e)>-1}function YA(e,t){var o=this.__data__,u=uo(o,e);return u<0?(++this.size,o.push([e,t])):o[u][1]=t,this}en.prototype.clear=JA,en.prototype.delete=GA,en.prototype.get=KA,en.prototype.has=jA,en.prototype.set=YA;function tn(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var u=e[t];this.set(u[0],u[1])}}function QA(){this.size=0,this.__data__={hash:new Wn,map:new(Zr||en),string:new Wn}}function ZA(e){var t=_o(this,e).delete(e);return this.size-=t?1:0,t}function XA(e){return _o(this,e).get(e)}function e_(e){return _o(this,e).has(e)}function t_(e,t){var o=_o(this,e),u=o.size;return o.set(e,t),this.size+=o.size==u?0:1,this}tn.prototype.clear=QA,tn.prototype.delete=ZA,tn.prototype.get=XA,tn.prototype.has=e_,tn.prototype.set=t_;function Vn(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new tn;++t<o;)this.add(e[t])}function n_(e){return this.__data__.set(e,g),this}function r_(e){return this.__data__.has(e)}Vn.prototype.add=Vn.prototype.push=n_,Vn.prototype.has=r_;function kt(e){var t=this.__data__=new en(e);this.size=t.size}function i_(){this.__data__=new en,this.size=0}function o_(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function a_(e){return this.__data__.get(e)}function s_(e){return this.__data__.has(e)}function u_(e,t){var o=this.__data__;if(o instanceof en){var u=o.__data__;if(!Zr||u.length<s-1)return u.push([e,t]),this.size=++o.size,this;o=this.__data__=new tn(u)}return o.set(e,t),this.size=o.size,this}kt.prototype.clear=i_,kt.prototype.delete=o_,kt.prototype.get=a_,kt.prototype.has=s_,kt.prototype.set=u_;function qf(e,t){var o=se(e),u=!o&&Kn(e),f=!o&&!u&&En(e),m=!o&&!u&&!f&&Ir(e),w=o||u||f||m,A=w?ws(e.length,vA):[],E=A.length;for(var D in e)(t||_e.call(e,D))&&!(w&&(D=="length"||f&&(D=="offset"||D=="parent")||m&&(D=="buffer"||D=="byteLength"||D=="byteOffset")||an(D,E)))&&A.push(D);return A}function Jf(e){var t=e.length;return t?e[Fs(0,t-1)]:i}function c_(e,t){return bo(it(e),zn(t,0,e.length))}function l_(e){return bo(it(e))}function Os(e,t,o){(o!==i&&!Nt(e[t],o)||o===i&&!(t in e))&&nn(e,t,o)}function ni(e,t,o){var u=e[t];(!(_e.call(e,t)&&Nt(u,o))||o===i&&!(t in e))&&nn(e,t,o)}function uo(e,t){for(var o=e.length;o--;)if(Nt(e[o][0],t))return o;return-1}function f_(e,t,o,u){return An(e,function(f,m,w){t(u,f,o(f),w)}),u}function Gf(e,t){return e&&Gt(t,qe(t),e)}function d_(e,t){return e&&Gt(t,at(t),e)}function nn(e,t,o){t=="__proto__"&&no?no(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}function Ts(e,t){for(var o=-1,u=t.length,f=R(u),m=e==null;++o<u;)f[o]=m?i:su(e,t[o]);return f}function zn(e,t,o){return e===e&&(o!==i&&(e=e<=o?e:o),t!==i&&(e=e>=t?e:t)),e}function It(e,t,o,u,f,m){var w,A=t&b,E=t&_,D=t&T;if(o&&(w=f?o(e,u,f,m):o(e)),w!==i)return w;if(!xe(e))return e;var M=se(e);if(M){if(w=e1(e),!A)return it(e,w)}else{var B=Xe(e),V=B==qt||B==Un;if(En(e))return yd(e,A);if(B==Xt||B==Ue||V&&!f){if(w=E||V?{}:Fd(e),!A)return E?V_(e,d_(w,e)):W_(e,Gf(w,e))}else{if(!Se[B])return f?e:{};w=t1(e,B,A)}}m||(m=new kt);var j=m.get(e);if(j)return j;m.set(e,w),fp(e)?e.forEach(function(ne){w.add(It(ne,t,o,ne,e,m))}):cp(e)&&e.forEach(function(ne,he){w.set(he,It(ne,t,o,he,e,m))});var te=D?E?Gs:Js:E?at:qe,fe=M?i:te(e);return bt(fe||e,function(ne,he){fe&&(he=ne,ne=e[he]),ni(w,he,It(ne,t,o,he,e,m))}),w}function p_(e){var t=qe(e);return function(o){return Kf(o,e,t)}}function Kf(e,t,o){var u=o.length;if(e==null)return!u;for(e=be(e);u--;){var f=o[u],m=t[f],w=e[f];if(w===i&&!(f in e)||!m(w))return!1}return!0}function jf(e,t,o){if(typeof e!="function")throw new St(l);return ci(function(){e.apply(i,o)},t)}function ri(e,t,o,u){var f=-1,m=qi,w=!0,A=e.length,E=[],D=t.length;if(!A)return E;o&&(t=Ce(t,dt(o))),u?(m=ps,w=!1):t.length>=s&&(m=Yr,w=!1,t=new Vn(t));e:for(;++f<A;){var M=e[f],B=o==null?M:o(M);if(M=u||M!==0?M:0,w&&B===B){for(var V=D;V--;)if(t[V]===B)continue e;E.push(M)}else m(t,B,u)||E.push(M)}return E}var An=bd(Jt),Yf=bd(Rs,!0);function h_(e,t){var o=!0;return An(e,function(u,f,m){return o=!!t(u,f,m),o}),o}function co(e,t,o){for(var u=-1,f=e.length;++u<f;){var m=e[u],w=t(m);if(w!=null&&(A===i?w===w&&!ht(w):o(w,A)))var A=w,E=m}return E}function g_(e,t,o,u){var f=e.length;for(o=le(o),o<0&&(o=-o>f?0:f+o),u=u===i||u>f?f:le(u),u<0&&(u+=f),u=o>u?0:pp(u);o<u;)e[o++]=t;return e}function Qf(e,t){var o=[];return An(e,function(u,f,m){t(u,f,m)&&o.push(u)}),o}function Ke(e,t,o,u,f){var m=-1,w=e.length;for(o||(o=r1),f||(f=[]);++m<w;){var A=e[m];t>0&&o(A)?t>1?Ke(A,t-1,o,u,f):yn(f,A):u||(f[f.length]=A)}return f}var Cs=Sd(),Zf=Sd(!0);function Jt(e,t){return e&&Cs(e,t,qe)}function Rs(e,t){return e&&Zf(e,t,qe)}function lo(e,t){return mn(t,function(o){return sn(e[o])})}function qn(e,t){t=bn(t,e);for(var o=0,u=t.length;e!=null&&o<u;)e=e[Kt(t[o++])];return o&&o==u?e:i}function Xf(e,t,o){var u=t(e);return se(e)?u:yn(u,o(e))}function et(e){return e==null?e===i?z0:W0:Hn&&Hn in be(e)?Q_(e):l1(e)}function xs(e,t){return e>t}function m_(e,t){return e!=null&&_e.call(e,t)}function y_(e,t){return e!=null&&t in be(e)}function v_(e,t,o){return e>=Ze(t,o)&&e<He(t,o)}function Ps(e,t,o){for(var u=o?ps:qi,f=e[0].length,m=e.length,w=m,A=R(m),E=1/0,D=[];w--;){var M=e[w];w&&t&&(M=Ce(M,dt(t))),E=Ze(M.length,E),A[w]=!o&&(t||f>=120&&M.length>=120)?new Vn(w&&M):i}M=e[0];var B=-1,V=A[0];e:for(;++B<f&&D.length<E;){var j=M[B],te=t?t(j):j;if(j=o||j!==0?j:0,!(V?Yr(V,te):u(D,te,o))){for(w=m;--w;){var fe=A[w];if(!(fe?Yr(fe,te):u(e[w],te,o)))continue e}V&&V.push(te),D.push(j)}}return D}function w_(e,t,o,u){return Jt(e,function(f,m,w){t(u,o(f),m,w)}),u}function ii(e,t,o){t=bn(t,e),e=$d(e,t);var u=e==null?e:e[Kt(Tt(t))];return u==null?i:ft(u,e,o)}function ed(e){return Le(e)&&et(e)==Ue}function A_(e){return Le(e)&&et(e)==jr}function __(e){return Le(e)&&et(e)==ct}function oi(e,t,o,u,f){return e===t?!0:e==null||t==null||!Le(e)&&!Le(t)?e!==e&&t!==t:b_(e,t,o,u,oi,f)}function b_(e,t,o,u,f,m){var w=se(e),A=se(t),E=w?Lt:Xe(e),D=A?Lt:Xe(t);E=E==Ue?Xt:E,D=D==Ue?Xt:D;var M=E==Xt,B=D==Xt,V=E==D;if(V&&En(e)){if(!En(t))return!1;w=!0,M=!1}if(V&&!M)return m||(m=new kt),w||Ir(e)?Dd(e,t,o,u,f,m):j_(e,t,E,o,u,f,m);if(!(o&I)){var j=M&&_e.call(e,"__wrapped__"),te=B&&_e.call(t,"__wrapped__");if(j||te){var fe=j?e.value():e,ne=te?t.value():t;return m||(m=new kt),f(fe,ne,o,u,m)}}return V?(m||(m=new kt),Y_(e,t,o,u,f,m)):!1}function S_(e){return Le(e)&&Xe(e)==Mt}function Ls(e,t,o,u){var f=o.length,m=f,w=!u;if(e==null)return!m;for(e=be(e);f--;){var A=o[f];if(w&&A[2]?A[1]!==e[A[0]]:!(A[0]in e))return!1}for(;++f<m;){A=o[f];var E=A[0],D=e[E],M=A[1];if(w&&A[2]){if(D===i&&!(E in e))return!1}else{var B=new kt;if(u)var V=u(D,M,E,e,t,B);if(!(V===i?oi(M,D,I|O,u,B):V))return!1}}return!0}function td(e){if(!xe(e)||o1(e))return!1;var t=sn(e)?SA:pw;return t.test(Gn(e))}function E_(e){return Le(e)&&et(e)==Jr}function I_(e){return Le(e)&&Xe(e)==Bt}function O_(e){return Le(e)&&Co(e.length)&&!!Ie[et(e)]}function nd(e){return typeof e=="function"?e:e==null?st:typeof e=="object"?se(e)?od(e[0],e[1]):id(e):Ep(e)}function Ds(e){if(!ui(e))return RA(e);var t=[];for(var o in be(e))_e.call(e,o)&&o!="constructor"&&t.push(o);return t}function T_(e){if(!xe(e))return c1(e);var t=ui(e),o=[];for(var u in e)u=="constructor"&&(t||!_e.call(e,u))||o.push(u);return o}function Ms(e,t){return e<t}function rd(e,t){var o=-1,u=ot(e)?R(e.length):[];return An(e,function(f,m,w){u[++o]=t(f,m,w)}),u}function id(e){var t=js(e);return t.length==1&&t[0][2]?Nd(t[0][0],t[0][1]):function(o){return o===e||Ls(o,e,t)}}function od(e,t){return Qs(e)&&kd(t)?Nd(Kt(e),t):function(o){var u=su(o,e);return u===i&&u===t?uu(o,e):oi(t,u,I|O)}}function fo(e,t,o,u,f){e!==t&&Cs(t,function(m,w){if(f||(f=new kt),xe(m))C_(e,t,w,o,fo,u,f);else{var A=u?u(Xs(e,w),m,w+"",e,t,f):i;A===i&&(A=m),Os(e,w,A)}},at)}function C_(e,t,o,u,f,m,w){var A=Xs(e,o),E=Xs(t,o),D=w.get(E);if(D){Os(e,o,D);return}var M=m?m(A,E,o+"",e,t,w):i,B=M===i;if(B){var V=se(E),j=!V&&En(E),te=!V&&!j&&Ir(E);M=E,V||j||te?se(A)?M=A:Be(A)?M=it(A):j?(B=!1,M=yd(E,!0)):te?(B=!1,M=vd(E,!0)):M=[]:li(E)||Kn(E)?(M=A,Kn(A)?M=hp(A):(!xe(A)||sn(A))&&(M=Fd(E))):B=!1}B&&(w.set(E,M),f(M,E,u,m,w),w.delete(E)),Os(e,o,M)}function ad(e,t){var o=e.length;if(o)return t+=t<0?o:0,an(t,o)?e[t]:i}function sd(e,t,o){t.length?t=Ce(t,function(m){return se(m)?function(w){return qn(w,m.length===1?m[0]:m)}:m}):t=[st];var u=-1;t=Ce(t,dt(Z()));var f=rd(e,function(m,w,A){var E=Ce(t,function(D){return D(m)});return{criteria:E,index:++u,value:m}});return tA(f,function(m,w){return H_(m,w,o)})}function R_(e,t){return ud(e,t,function(o,u){return uu(e,u)})}function ud(e,t,o){for(var u=-1,f=t.length,m={};++u<f;){var w=t[u],A=qn(e,w);o(A,w)&&ai(m,bn(w,e),A)}return m}function x_(e){return function(t){return qn(t,e)}}function Bs(e,t,o,u){var f=u?eA:hr,m=-1,w=t.length,A=e;for(e===t&&(t=it(t)),o&&(A=Ce(e,dt(o)));++m<w;)for(var E=0,D=t[m],M=o?o(D):D;(E=f(A,M,E,u))>-1;)A!==e&&to.call(A,E,1),to.call(e,E,1);return e}function cd(e,t){for(var o=e?t.length:0,u=o-1;o--;){var f=t[o];if(o==u||f!==m){var m=f;an(f)?to.call(e,f,1):Us(e,f)}}return e}function Fs(e,t){return e+io(Vf()*(t-e+1))}function P_(e,t,o,u){for(var f=-1,m=He(ro((t-e)/(o||1)),0),w=R(m);m--;)w[u?m:++f]=e,e+=o;return w}function ks(e,t){var o="";if(!e||t<1||t>N)return o;do t%2&&(o+=e),t=io(t/2),t&&(e+=e);while(t);return o}function de(e,t){return eu(Ud(e,t,st),e+"")}function L_(e){return Jf(Or(e))}function D_(e,t){var o=Or(e);return bo(o,zn(t,0,o.length))}function ai(e,t,o,u){if(!xe(e))return e;t=bn(t,e);for(var f=-1,m=t.length,w=m-1,A=e;A!=null&&++f<m;){var E=Kt(t[f]),D=o;if(E==="__proto__"||E==="constructor"||E==="prototype")return e;if(f!=w){var M=A[E];D=u?u(M,E,A):i,D===i&&(D=xe(M)?M:an(t[f+1])?[]:{})}ni(A,E,D),A=A[E]}return e}var ld=oo?function(e,t){return oo.set(e,t),e}:st,M_=no?function(e,t){return no(e,"toString",{configurable:!0,enumerable:!1,value:lu(t),writable:!0})}:st;function B_(e){return bo(Or(e))}function Ot(e,t,o){var u=-1,f=e.length;t<0&&(t=-t>f?0:f+t),o=o>f?f:o,o<0&&(o+=f),f=t>o?0:o-t>>>0,t>>>=0;for(var m=R(f);++u<f;)m[u]=e[u+t];return m}function F_(e,t){var o;return An(e,function(u,f,m){return o=t(u,f,m),!o}),!!o}function po(e,t,o){var u=0,f=e==null?u:e.length;if(typeof t=="number"&&t===t&&f<=ke){for(;u<f;){var m=u+f>>>1,w=e[m];w!==null&&!ht(w)&&(o?w<=t:w<t)?u=m+1:f=m}return f}return Ns(e,t,st,o)}function Ns(e,t,o,u){var f=0,m=e==null?0:e.length;if(m===0)return 0;t=o(t);for(var w=t!==t,A=t===null,E=ht(t),D=t===i;f<m;){var M=io((f+m)/2),B=o(e[M]),V=B!==i,j=B===null,te=B===B,fe=ht(B);if(w)var ne=u||te;else D?ne=te&&(u||V):A?ne=te&&V&&(u||!j):E?ne=te&&V&&!j&&(u||!fe):j||fe?ne=!1:ne=u?B<=t:B<t;ne?f=M+1:m=M}return Ze(m,Re)}function fd(e,t){for(var o=-1,u=e.length,f=0,m=[];++o<u;){var w=e[o],A=t?t(w):w;if(!o||!Nt(A,E)){var E=A;m[f++]=w===0?0:w}}return m}function dd(e){return typeof e=="number"?e:ht(e)?ee:+e}function pt(e){if(typeof e=="string")return e;if(se(e))return Ce(e,pt)+"";if(ht(e))return zf?zf.call(e):"";var t=e+"";return t=="0"&&1/e==-q?"-0":t}function _n(e,t,o){var u=-1,f=qi,m=e.length,w=!0,A=[],E=A;if(o)w=!1,f=ps;else if(m>=s){var D=t?null:G_(e);if(D)return Gi(D);w=!1,f=Yr,E=new Vn}else E=t?[]:A;e:for(;++u<m;){var M=e[u],B=t?t(M):M;if(M=o||M!==0?M:0,w&&B===B){for(var V=E.length;V--;)if(E[V]===B)continue e;t&&E.push(B),A.push(M)}else f(E,B,o)||(E!==A&&E.push(B),A.push(M))}return A}function Us(e,t){return t=bn(t,e),e=$d(e,t),e==null||delete e[Kt(Tt(t))]}function pd(e,t,o,u){return ai(e,t,o(qn(e,t)),u)}function ho(e,t,o,u){for(var f=e.length,m=u?f:-1;(u?m--:++m<f)&&t(e[m],m,e););return o?Ot(e,u?0:m,u?m+1:f):Ot(e,u?m+1:0,u?f:m)}function hd(e,t){var o=e;return o instanceof me&&(o=o.value()),hs(t,function(u,f){return f.func.apply(f.thisArg,yn([u],f.args))},o)}function $s(e,t,o){var u=e.length;if(u<2)return u?_n(e[0]):[];for(var f=-1,m=R(u);++f<u;)for(var w=e[f],A=-1;++A<u;)A!=f&&(m[f]=ri(m[f]||w,e[A],t,o));return _n(Ke(m,1),t,o)}function gd(e,t,o){for(var u=-1,f=e.length,m=t.length,w={};++u<f;){var A=u<m?t[u]:i;o(w,e[u],A)}return w}function Hs(e){return Be(e)?e:[]}function Ws(e){return typeof e=="function"?e:st}function bn(e,t){return se(e)?e:Qs(e,t)?[e]:zd(Ae(e))}var k_=de;function Sn(e,t,o){var u=e.length;return o=o===i?u:o,!t&&o>=u?e:Ot(e,t,o)}var md=EA||function(e){return Ge.clearTimeout(e)};function yd(e,t){if(t)return e.slice();var o=e.length,u=Nf?Nf(o):new e.constructor(o);return e.copy(u),u}function Vs(e){var t=new e.constructor(e.byteLength);return new Xi(t).set(new Xi(e)),t}function N_(e,t){var o=t?Vs(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}function U_(e){var t=new e.constructor(e.source,Xl.exec(e));return t.lastIndex=e.lastIndex,t}function $_(e){return ti?be(ti.call(e)):{}}function vd(e,t){var o=t?Vs(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}function wd(e,t){if(e!==t){var o=e!==i,u=e===null,f=e===e,m=ht(e),w=t!==i,A=t===null,E=t===t,D=ht(t);if(!A&&!D&&!m&&e>t||m&&w&&E&&!A&&!D||u&&w&&E||!o&&E||!f)return 1;if(!u&&!m&&!D&&e<t||D&&o&&f&&!u&&!m||A&&o&&f||!w&&f||!E)return-1}return 0}function H_(e,t,o){for(var u=-1,f=e.criteria,m=t.criteria,w=f.length,A=o.length;++u<w;){var E=wd(f[u],m[u]);if(E){if(u>=A)return E;var D=o[u];return E*(D=="desc"?-1:1)}}return e.index-t.index}function Ad(e,t,o,u){for(var f=-1,m=e.length,w=o.length,A=-1,E=t.length,D=He(m-w,0),M=R(E+D),B=!u;++A<E;)M[A]=t[A];for(;++f<w;)(B||f<m)&&(M[o[f]]=e[f]);for(;D--;)M[A++]=e[f++];return M}function _d(e,t,o,u){for(var f=-1,m=e.length,w=-1,A=o.length,E=-1,D=t.length,M=He(m-A,0),B=R(M+D),V=!u;++f<M;)B[f]=e[f];for(var j=f;++E<D;)B[j+E]=t[E];for(;++w<A;)(V||f<m)&&(B[j+o[w]]=e[f++]);return B}function it(e,t){var o=-1,u=e.length;for(t||(t=R(u));++o<u;)t[o]=e[o];return t}function Gt(e,t,o,u){var f=!o;o||(o={});for(var m=-1,w=t.length;++m<w;){var A=t[m],E=u?u(o[A],e[A],A,o,e):i;E===i&&(E=e[A]),f?nn(o,A,E):ni(o,A,E)}return o}function W_(e,t){return Gt(e,Ys(e),t)}function V_(e,t){return Gt(e,Md(e),t)}function go(e,t){return function(o,u){var f=se(o)?Kw:f_,m=t?t():{};return f(o,e,Z(u,2),m)}}function br(e){return de(function(t,o){var u=-1,f=o.length,m=f>1?o[f-1]:i,w=f>2?o[2]:i;for(m=e.length>3&&typeof m=="function"?(f--,m):i,w&&tt(o[0],o[1],w)&&(m=f<3?i:m,f=1),t=be(t);++u<f;){var A=o[u];A&&e(t,A,u,m)}return t})}function bd(e,t){return function(o,u){if(o==null)return o;if(!ot(o))return e(o,u);for(var f=o.length,m=t?f:-1,w=be(o);(t?m--:++m<f)&&u(w[m],m,w)!==!1;);return o}}function Sd(e){return function(t,o,u){for(var f=-1,m=be(t),w=u(t),A=w.length;A--;){var E=w[e?A:++f];if(o(m[E],E,m)===!1)break}return t}}function z_(e,t,o){var u=t&k,f=si(e);function m(){var w=this&&this!==Ge&&this instanceof m?f:e;return w.apply(u?o:this,arguments)}return m}function Ed(e){return function(t){t=Ae(t);var o=gr(t)?Ft(t):i,u=o?o[0]:t.charAt(0),f=o?Sn(o,1).join(""):t.slice(1);return u[e]()+f}}function Sr(e){return function(t){return hs(bp(_p(t).replace(Mw,"")),e,"")}}function si(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var o=_r(e.prototype),u=e.apply(o,t);return xe(u)?u:o}}function q_(e,t,o){var u=si(e);function f(){for(var m=arguments.length,w=R(m),A=m,E=Er(f);A--;)w[A]=arguments[A];var D=m<3&&w[0]!==E&&w[m-1]!==E?[]:vn(w,E);if(m-=D.length,m<o)return Rd(e,t,mo,f.placeholder,i,w,D,i,i,o-m);var M=this&&this!==Ge&&this instanceof f?u:e;return ft(M,this,w)}return f}function Id(e){return function(t,o,u){var f=be(t);if(!ot(t)){var m=Z(o,3);t=qe(t),o=function(A){return m(f[A],A,f)}}var w=e(t,o,u);return w>-1?f[m?t[w]:w]:i}}function Od(e){return on(function(t){var o=t.length,u=o,f=Et.prototype.thru;for(e&&t.reverse();u--;){var m=t[u];if(typeof m!="function")throw new St(l);if(f&&!w&&Ao(m)=="wrapper")var w=new Et([],!0)}for(u=w?u:o;++u<o;){m=t[u];var A=Ao(m),E=A=="wrapper"?Ks(m):i;E&&Zs(E[0])&&E[1]==(Y|x|H|ce)&&!E[4].length&&E[9]==1?w=w[Ao(E[0])].apply(w,E[3]):w=m.length==1&&Zs(m)?w[A]():w.thru(m)}return function(){var D=arguments,M=D[0];if(w&&D.length==1&&se(M))return w.plant(M).value();for(var B=0,V=o?t[B].apply(this,D):M;++B<o;)V=t[B].call(this,V);return V}})}function mo(e,t,o,u,f,m,w,A,E,D){var M=t&Y,B=t&k,V=t&C,j=t&(x|F),te=t&oe,fe=V?i:si(e);function ne(){for(var he=arguments.length,ye=R(he),gt=he;gt--;)ye[gt]=arguments[gt];if(j)var nt=Er(ne),mt=rA(ye,nt);if(u&&(ye=Ad(ye,u,f,j)),m&&(ye=_d(ye,m,w,j)),he-=mt,j&&he<D){var Fe=vn(ye,nt);return Rd(e,t,mo,ne.placeholder,o,ye,Fe,A,E,D-he)}var Ut=B?o:this,cn=V?Ut[e]:e;return he=ye.length,A?ye=f1(ye,A):te&&he>1&&ye.reverse(),M&&E<he&&(ye.length=E),this&&this!==Ge&&this instanceof ne&&(cn=fe||si(cn)),cn.apply(Ut,ye)}return ne}function Td(e,t){return function(o,u){return w_(o,e,t(u),{})}}function yo(e,t){return function(o,u){var f;if(o===i&&u===i)return t;if(o!==i&&(f=o),u!==i){if(f===i)return u;typeof o=="string"||typeof u=="string"?(o=pt(o),u=pt(u)):(o=dd(o),u=dd(u)),f=e(o,u)}return f}}function zs(e){return on(function(t){return t=Ce(t,dt(Z())),de(function(o){var u=this;return e(t,function(f){return ft(f,u,o)})})})}function vo(e,t){t=t===i?" ":pt(t);var o=t.length;if(o<2)return o?ks(t,e):t;var u=ks(t,ro(e/mr(t)));return gr(t)?Sn(Ft(u),0,e).join(""):u.slice(0,e)}function J_(e,t,o,u){var f=t&k,m=si(e);function w(){for(var A=-1,E=arguments.length,D=-1,M=u.length,B=R(M+E),V=this&&this!==Ge&&this instanceof w?m:e;++D<M;)B[D]=u[D];for(;E--;)B[D++]=arguments[++A];return ft(V,f?o:this,B)}return w}function Cd(e){return function(t,o,u){return u&&typeof u!="number"&&tt(t,o,u)&&(o=u=i),t=un(t),o===i?(o=t,t=0):o=un(o),u=u===i?t<o?1:-1:un(u),P_(t,o,u,e)}}function wo(e){return function(t,o){return typeof t=="string"&&typeof o=="string"||(t=Ct(t),o=Ct(o)),e(t,o)}}function Rd(e,t,o,u,f,m,w,A,E,D){var M=t&x,B=M?w:i,V=M?i:w,j=M?m:i,te=M?i:m;t|=M?H:z,t&=~(M?z:H),t&U||(t&=~(k|C));var fe=[e,t,f,j,B,te,V,A,E,D],ne=o.apply(i,fe);return Zs(e)&&Hd(ne,fe),ne.placeholder=u,Wd(ne,e,t)}function qs(e){var t=$e[e];return function(o,u){if(o=Ct(o),u=u==null?0:Ze(le(u),292),u&&Wf(o)){var f=(Ae(o)+"e").split("e"),m=t(f[0]+"e"+(+f[1]+u));return f=(Ae(m)+"e").split("e"),+(f[0]+"e"+(+f[1]-u))}return t(o)}}var G_=wr&&1/Gi(new wr([,-0]))[1]==q?function(e){return new wr(e)}:pu;function xd(e){return function(t){var o=Xe(t);return o==Mt?_s(t):o==Bt?lA(t):nA(t,e(t))}}function rn(e,t,o,u,f,m,w,A){var E=t&C;if(!E&&typeof e!="function")throw new St(l);var D=u?u.length:0;if(D||(t&=~(H|z),u=f=i),w=w===i?w:He(le(w),0),A=A===i?A:le(A),D-=f?f.length:0,t&z){var M=u,B=f;u=f=i}var V=E?i:Ks(e),j=[e,t,o,u,f,M,B,m,w,A];if(V&&u1(j,V),e=j[0],t=j[1],o=j[2],u=j[3],f=j[4],A=j[9]=j[9]===i?E?0:e.length:He(j[9]-D,0),!A&&t&(x|F)&&(t&=~(x|F)),!t||t==k)var te=z_(e,t,o);else t==x||t==F?te=q_(e,t,A):(t==H||t==(k|H))&&!f.length?te=J_(e,t,o,u):te=mo.apply(i,j);var fe=V?ld:Hd;return Wd(fe(te,j),e,t)}function Pd(e,t,o,u){return e===i||Nt(e,vr[o])&&!_e.call(u,o)?t:e}function Ld(e,t,o,u,f,m){return xe(e)&&xe(t)&&(m.set(t,e),fo(e,t,i,Ld,m),m.delete(t)),e}function K_(e){return li(e)?i:e}function Dd(e,t,o,u,f,m){var w=o&I,A=e.length,E=t.length;if(A!=E&&!(w&&E>A))return!1;var D=m.get(e),M=m.get(t);if(D&&M)return D==t&&M==e;var B=-1,V=!0,j=o&O?new Vn:i;for(m.set(e,t),m.set(t,e);++B<A;){var te=e[B],fe=t[B];if(u)var ne=w?u(fe,te,B,t,e,m):u(te,fe,B,e,t,m);if(ne!==i){if(ne)continue;V=!1;break}if(j){if(!gs(t,function(he,ye){if(!Yr(j,ye)&&(te===he||f(te,he,o,u,m)))return j.push(ye)})){V=!1;break}}else if(!(te===fe||f(te,fe,o,u,m))){V=!1;break}}return m.delete(e),m.delete(t),V}function j_(e,t,o,u,f,m,w){switch(o){case dr:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case jr:return!(e.byteLength!=t.byteLength||!m(new Xi(e),new Xi(t)));case Dt:case ct:case qr:return Nt(+e,+t);case lt:return e.name==t.name&&e.message==t.message;case Jr:case Gr:return e==t+"";case Mt:var A=_s;case Bt:var E=u&I;if(A||(A=Gi),e.size!=t.size&&!E)return!1;var D=w.get(e);if(D)return D==t;u|=O,w.set(e,t);var M=Dd(A(e),A(t),u,f,m,w);return w.delete(e),M;case Hi:if(ti)return ti.call(e)==ti.call(t)}return!1}function Y_(e,t,o,u,f,m){var w=o&I,A=Js(e),E=A.length,D=Js(t),M=D.length;if(E!=M&&!w)return!1;for(var B=E;B--;){var V=A[B];if(!(w?V in t:_e.call(t,V)))return!1}var j=m.get(e),te=m.get(t);if(j&&te)return j==t&&te==e;var fe=!0;m.set(e,t),m.set(t,e);for(var ne=w;++B<E;){V=A[B];var he=e[V],ye=t[V];if(u)var gt=w?u(ye,he,V,t,e,m):u(he,ye,V,e,t,m);if(!(gt===i?he===ye||f(he,ye,o,u,m):gt)){fe=!1;break}ne||(ne=V=="constructor")}if(fe&&!ne){var nt=e.constructor,mt=t.constructor;nt!=mt&&"constructor"in e&&"constructor"in t&&!(typeof nt=="function"&&nt instanceof nt&&typeof mt=="function"&&mt instanceof mt)&&(fe=!1)}return m.delete(e),m.delete(t),fe}function on(e){return eu(Ud(e,i,Kd),e+"")}function Js(e){return Xf(e,qe,Ys)}function Gs(e){return Xf(e,at,Md)}var Ks=oo?function(e){return oo.get(e)}:pu;function Ao(e){for(var t=e.name+"",o=Ar[t],u=_e.call(Ar,t)?o.length:0;u--;){var f=o[u],m=f.func;if(m==null||m==e)return f.name}return t}function Er(e){var t=_e.call(h,"placeholder")?h:e;return t.placeholder}function Z(){var e=h.iteratee||fu;return e=e===fu?nd:e,arguments.length?e(arguments[0],arguments[1]):e}function _o(e,t){var o=e.__data__;return i1(t)?o[typeof t=="string"?"string":"hash"]:o.map}function js(e){for(var t=qe(e),o=t.length;o--;){var u=t[o],f=e[u];t[o]=[u,f,kd(f)]}return t}function Jn(e,t){var o=sA(e,t);return td(o)?o:i}function Q_(e){var t=_e.call(e,Hn),o=e[Hn];try{e[Hn]=i;var u=!0}catch{}var f=Qi.call(e);return u&&(t?e[Hn]=o:delete e[Hn]),f}var Ys=Ss?function(e){return e==null?[]:(e=be(e),mn(Ss(e),function(t){return $f.call(e,t)}))}:hu,Md=Ss?function(e){for(var t=[];e;)yn(t,Ys(e)),e=eo(e);return t}:hu,Xe=et;(Es&&Xe(new Es(new ArrayBuffer(1)))!=dr||Zr&&Xe(new Zr)!=Mt||Is&&Xe(Is.resolve())!=jl||wr&&Xe(new wr)!=Bt||Xr&&Xe(new Xr)!=Kr)&&(Xe=function(e){var t=et(e),o=t==Xt?e.constructor:i,u=o?Gn(o):"";if(u)switch(u){case DA:return dr;case MA:return Mt;case BA:return jl;case FA:return Bt;case kA:return Kr}return t});function Z_(e,t,o){for(var u=-1,f=o.length;++u<f;){var m=o[u],w=m.size;switch(m.type){case"drop":e+=w;break;case"dropRight":t-=w;break;case"take":t=Ze(t,e+w);break;case"takeRight":e=He(e,t-w);break}}return{start:e,end:t}}function X_(e){var t=e.match(ow);return t?t[1].split(aw):[]}function Bd(e,t,o){t=bn(t,e);for(var u=-1,f=t.length,m=!1;++u<f;){var w=Kt(t[u]);if(!(m=e!=null&&o(e,w)))break;e=e[w]}return m||++u!=f?m:(f=e==null?0:e.length,!!f&&Co(f)&&an(w,f)&&(se(e)||Kn(e)))}function e1(e){var t=e.length,o=new e.constructor(t);return t&&typeof e[0]=="string"&&_e.call(e,"index")&&(o.index=e.index,o.input=e.input),o}function Fd(e){return typeof e.constructor=="function"&&!ui(e)?_r(eo(e)):{}}function t1(e,t,o){var u=e.constructor;switch(t){case jr:return Vs(e);case Dt:case ct:return new u(+e);case dr:return N_(e,o);case ja:case Ya:case Qa:case Za:case Xa:case es:case ts:case ns:case rs:return vd(e,o);case Mt:return new u;case qr:case Gr:return new u(e);case Jr:return U_(e);case Bt:return new u;case Hi:return $_(e)}}function n1(e,t){var o=t.length;if(!o)return e;var u=o-1;return t[u]=(o>1?"& ":"")+t[u],t=t.join(o>2?", ":" "),e.replace(iw,`{
|
|
17
|
+
/* [wrapped with `+t+`] */
|
|
18
|
+
`)}function r1(e){return se(e)||Kn(e)||!!(Hf&&e&&e[Hf])}function an(e,t){var o=typeof e;return t=t??N,!!t&&(o=="number"||o!="symbol"&&gw.test(e))&&e>-1&&e%1==0&&e<t}function tt(e,t,o){if(!xe(o))return!1;var u=typeof t;return(u=="number"?ot(o)&&an(t,o.length):u=="string"&&t in o)?Nt(o[t],e):!1}function Qs(e,t){if(se(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||ht(e)?!0:ew.test(e)||!X0.test(e)||t!=null&&e in be(t)}function i1(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Zs(e){var t=Ao(e),o=h[t];if(typeof o!="function"||!(t in me.prototype))return!1;if(e===o)return!0;var u=Ks(o);return!!u&&e===u[0]}function o1(e){return!!kf&&kf in e}var a1=ji?sn:gu;function ui(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||vr;return e===o}function kd(e){return e===e&&!xe(e)}function Nd(e,t){return function(o){return o==null?!1:o[e]===t&&(t!==i||e in be(o))}}function s1(e){var t=Oo(e,function(u){return o.size===y&&o.clear(),u}),o=t.cache;return t}function u1(e,t){var o=e[1],u=t[1],f=o|u,m=f<(k|C|Y),w=u==Y&&o==x||u==Y&&o==ce&&e[7].length<=t[8]||u==(Y|ce)&&t[7].length<=t[8]&&o==x;if(!(m||w))return e;u&k&&(e[2]=t[2],f|=o&k?0:U);var A=t[3];if(A){var E=e[3];e[3]=E?Ad(E,A,t[4]):A,e[4]=E?vn(e[3],v):t[4]}return A=t[5],A&&(E=e[5],e[5]=E?_d(E,A,t[6]):A,e[6]=E?vn(e[5],v):t[6]),A=t[7],A&&(e[7]=A),u&Y&&(e[8]=e[8]==null?t[8]:Ze(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=f,e}function c1(e){var t=[];if(e!=null)for(var o in be(e))t.push(o);return t}function l1(e){return Qi.call(e)}function Ud(e,t,o){return t=He(t===i?e.length-1:t,0),function(){for(var u=arguments,f=-1,m=He(u.length-t,0),w=R(m);++f<m;)w[f]=u[t+f];f=-1;for(var A=R(t+1);++f<t;)A[f]=u[f];return A[t]=o(w),ft(e,this,A)}}function $d(e,t){return t.length<2?e:qn(e,Ot(t,0,-1))}function f1(e,t){for(var o=e.length,u=Ze(t.length,o),f=it(e);u--;){var m=t[u];e[u]=an(m,o)?f[m]:i}return e}function Xs(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Hd=Vd(ld),ci=OA||function(e,t){return Ge.setTimeout(e,t)},eu=Vd(M_);function Wd(e,t,o){var u=t+"";return eu(e,n1(u,d1(X_(u),o)))}function Vd(e){var t=0,o=0;return function(){var u=xA(),f=Me-(u-o);if(o=u,f>0){if(++t>=Pe)return arguments[0]}else t=0;return e.apply(i,arguments)}}function bo(e,t){var o=-1,u=e.length,f=u-1;for(t=t===i?u:t;++o<t;){var m=Fs(o,f),w=e[m];e[m]=e[o],e[o]=w}return e.length=t,e}var zd=s1(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(tw,function(o,u,f,m){t.push(f?m.replace(cw,"$1"):u||o)}),t});function Kt(e){if(typeof e=="string"||ht(e))return e;var t=e+"";return t=="0"&&1/e==-q?"-0":t}function Gn(e){if(e!=null){try{return Yi.call(e)}catch{}try{return e+""}catch{}}return""}function d1(e,t){return bt(ze,function(o){var u="_."+o[0];t&o[1]&&!qi(e,u)&&e.push(u)}),e.sort()}function qd(e){if(e instanceof me)return e.clone();var t=new Et(e.__wrapped__,e.__chain__);return t.__actions__=it(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function p1(e,t,o){(o?tt(e,t,o):t===i)?t=1:t=He(le(t),0);var u=e==null?0:e.length;if(!u||t<1)return[];for(var f=0,m=0,w=R(ro(u/t));f<u;)w[m++]=Ot(e,f,f+=t);return w}function h1(e){for(var t=-1,o=e==null?0:e.length,u=0,f=[];++t<o;){var m=e[t];m&&(f[u++]=m)}return f}function g1(){var e=arguments.length;if(!e)return[];for(var t=R(e-1),o=arguments[0],u=e;u--;)t[u-1]=arguments[u];return yn(se(o)?it(o):[o],Ke(t,1))}var m1=de(function(e,t){return Be(e)?ri(e,Ke(t,1,Be,!0)):[]}),y1=de(function(e,t){var o=Tt(t);return Be(o)&&(o=i),Be(e)?ri(e,Ke(t,1,Be,!0),Z(o,2)):[]}),v1=de(function(e,t){var o=Tt(t);return Be(o)&&(o=i),Be(e)?ri(e,Ke(t,1,Be,!0),i,o):[]});function w1(e,t,o){var u=e==null?0:e.length;return u?(t=o||t===i?1:le(t),Ot(e,t<0?0:t,u)):[]}function A1(e,t,o){var u=e==null?0:e.length;return u?(t=o||t===i?1:le(t),t=u-t,Ot(e,0,t<0?0:t)):[]}function _1(e,t){return e&&e.length?ho(e,Z(t,3),!0,!0):[]}function b1(e,t){return e&&e.length?ho(e,Z(t,3),!0):[]}function S1(e,t,o,u){var f=e==null?0:e.length;return f?(o&&typeof o!="number"&&tt(e,t,o)&&(o=0,u=f),g_(e,t,o,u)):[]}function Jd(e,t,o){var u=e==null?0:e.length;if(!u)return-1;var f=o==null?0:le(o);return f<0&&(f=He(u+f,0)),Ji(e,Z(t,3),f)}function Gd(e,t,o){var u=e==null?0:e.length;if(!u)return-1;var f=u-1;return o!==i&&(f=le(o),f=o<0?He(u+f,0):Ze(f,u-1)),Ji(e,Z(t,3),f,!0)}function Kd(e){var t=e==null?0:e.length;return t?Ke(e,1):[]}function E1(e){var t=e==null?0:e.length;return t?Ke(e,q):[]}function I1(e,t){var o=e==null?0:e.length;return o?(t=t===i?1:le(t),Ke(e,t)):[]}function O1(e){for(var t=-1,o=e==null?0:e.length,u={};++t<o;){var f=e[t];u[f[0]]=f[1]}return u}function jd(e){return e&&e.length?e[0]:i}function T1(e,t,o){var u=e==null?0:e.length;if(!u)return-1;var f=o==null?0:le(o);return f<0&&(f=He(u+f,0)),hr(e,t,f)}function C1(e){var t=e==null?0:e.length;return t?Ot(e,0,-1):[]}var R1=de(function(e){var t=Ce(e,Hs);return t.length&&t[0]===e[0]?Ps(t):[]}),x1=de(function(e){var t=Tt(e),o=Ce(e,Hs);return t===Tt(o)?t=i:o.pop(),o.length&&o[0]===e[0]?Ps(o,Z(t,2)):[]}),P1=de(function(e){var t=Tt(e),o=Ce(e,Hs);return t=typeof t=="function"?t:i,t&&o.pop(),o.length&&o[0]===e[0]?Ps(o,i,t):[]});function L1(e,t){return e==null?"":CA.call(e,t)}function Tt(e){var t=e==null?0:e.length;return t?e[t-1]:i}function D1(e,t,o){var u=e==null?0:e.length;if(!u)return-1;var f=u;return o!==i&&(f=le(o),f=f<0?He(u+f,0):Ze(f,u-1)),t===t?dA(e,t,f):Ji(e,Rf,f,!0)}function M1(e,t){return e&&e.length?ad(e,le(t)):i}var B1=de(Yd);function Yd(e,t){return e&&e.length&&t&&t.length?Bs(e,t):e}function F1(e,t,o){return e&&e.length&&t&&t.length?Bs(e,t,Z(o,2)):e}function k1(e,t,o){return e&&e.length&&t&&t.length?Bs(e,t,i,o):e}var N1=on(function(e,t){var o=e==null?0:e.length,u=Ts(e,t);return cd(e,Ce(t,function(f){return an(f,o)?+f:f}).sort(wd)),u});function U1(e,t){var o=[];if(!(e&&e.length))return o;var u=-1,f=[],m=e.length;for(t=Z(t,3);++u<m;){var w=e[u];t(w,u,e)&&(o.push(w),f.push(u))}return cd(e,f),o}function tu(e){return e==null?e:LA.call(e)}function $1(e,t,o){var u=e==null?0:e.length;return u?(o&&typeof o!="number"&&tt(e,t,o)?(t=0,o=u):(t=t==null?0:le(t),o=o===i?u:le(o)),Ot(e,t,o)):[]}function H1(e,t){return po(e,t)}function W1(e,t,o){return Ns(e,t,Z(o,2))}function V1(e,t){var o=e==null?0:e.length;if(o){var u=po(e,t);if(u<o&&Nt(e[u],t))return u}return-1}function z1(e,t){return po(e,t,!0)}function q1(e,t,o){return Ns(e,t,Z(o,2),!0)}function J1(e,t){var o=e==null?0:e.length;if(o){var u=po(e,t,!0)-1;if(Nt(e[u],t))return u}return-1}function G1(e){return e&&e.length?fd(e):[]}function K1(e,t){return e&&e.length?fd(e,Z(t,2)):[]}function j1(e){var t=e==null?0:e.length;return t?Ot(e,1,t):[]}function Y1(e,t,o){return e&&e.length?(t=o||t===i?1:le(t),Ot(e,0,t<0?0:t)):[]}function Q1(e,t,o){var u=e==null?0:e.length;return u?(t=o||t===i?1:le(t),t=u-t,Ot(e,t<0?0:t,u)):[]}function Z1(e,t){return e&&e.length?ho(e,Z(t,3),!1,!0):[]}function X1(e,t){return e&&e.length?ho(e,Z(t,3)):[]}var eb=de(function(e){return _n(Ke(e,1,Be,!0))}),tb=de(function(e){var t=Tt(e);return Be(t)&&(t=i),_n(Ke(e,1,Be,!0),Z(t,2))}),nb=de(function(e){var t=Tt(e);return t=typeof t=="function"?t:i,_n(Ke(e,1,Be,!0),i,t)});function rb(e){return e&&e.length?_n(e):[]}function ib(e,t){return e&&e.length?_n(e,Z(t,2)):[]}function ob(e,t){return t=typeof t=="function"?t:i,e&&e.length?_n(e,i,t):[]}function nu(e){if(!(e&&e.length))return[];var t=0;return e=mn(e,function(o){if(Be(o))return t=He(o.length,t),!0}),ws(t,function(o){return Ce(e,ms(o))})}function Qd(e,t){if(!(e&&e.length))return[];var o=nu(e);return t==null?o:Ce(o,function(u){return ft(t,i,u)})}var ab=de(function(e,t){return Be(e)?ri(e,t):[]}),sb=de(function(e){return $s(mn(e,Be))}),ub=de(function(e){var t=Tt(e);return Be(t)&&(t=i),$s(mn(e,Be),Z(t,2))}),cb=de(function(e){var t=Tt(e);return t=typeof t=="function"?t:i,$s(mn(e,Be),i,t)}),lb=de(nu);function fb(e,t){return gd(e||[],t||[],ni)}function db(e,t){return gd(e||[],t||[],ai)}var pb=de(function(e){var t=e.length,o=t>1?e[t-1]:i;return o=typeof o=="function"?(e.pop(),o):i,Qd(e,o)});function Zd(e){var t=h(e);return t.__chain__=!0,t}function hb(e,t){return t(e),e}function So(e,t){return t(e)}var gb=on(function(e){var t=e.length,o=t?e[0]:0,u=this.__wrapped__,f=function(m){return Ts(m,e)};return t>1||this.__actions__.length||!(u instanceof me)||!an(o)?this.thru(f):(u=u.slice(o,+o+(t?1:0)),u.__actions__.push({func:So,args:[f],thisArg:i}),new Et(u,this.__chain__).thru(function(m){return t&&!m.length&&m.push(i),m}))});function mb(){return Zd(this)}function yb(){return new Et(this.value(),this.__chain__)}function vb(){this.__values__===i&&(this.__values__=dp(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function wb(){return this}function Ab(e){for(var t,o=this;o instanceof so;){var u=qd(o);u.__index__=0,u.__values__=i,t?f.__wrapped__=u:t=u;var f=u;o=o.__wrapped__}return f.__wrapped__=e,t}function _b(){var e=this.__wrapped__;if(e instanceof me){var t=e;return this.__actions__.length&&(t=new me(this)),t=t.reverse(),t.__actions__.push({func:So,args:[tu],thisArg:i}),new Et(t,this.__chain__)}return this.thru(tu)}function bb(){return hd(this.__wrapped__,this.__actions__)}var Sb=go(function(e,t,o){_e.call(e,o)?++e[o]:nn(e,o,1)});function Eb(e,t,o){var u=se(e)?Tf:h_;return o&&tt(e,t,o)&&(t=i),u(e,Z(t,3))}function Ib(e,t){var o=se(e)?mn:Qf;return o(e,Z(t,3))}var Ob=Id(Jd),Tb=Id(Gd);function Cb(e,t){return Ke(Eo(e,t),1)}function Rb(e,t){return Ke(Eo(e,t),q)}function xb(e,t,o){return o=o===i?1:le(o),Ke(Eo(e,t),o)}function Xd(e,t){var o=se(e)?bt:An;return o(e,Z(t,3))}function ep(e,t){var o=se(e)?jw:Yf;return o(e,Z(t,3))}var Pb=go(function(e,t,o){_e.call(e,o)?e[o].push(t):nn(e,o,[t])});function Lb(e,t,o,u){e=ot(e)?e:Or(e),o=o&&!u?le(o):0;var f=e.length;return o<0&&(o=He(f+o,0)),Ro(e)?o<=f&&e.indexOf(t,o)>-1:!!f&&hr(e,t,o)>-1}var Db=de(function(e,t,o){var u=-1,f=typeof t=="function",m=ot(e)?R(e.length):[];return An(e,function(w){m[++u]=f?ft(t,w,o):ii(w,t,o)}),m}),Mb=go(function(e,t,o){nn(e,o,t)});function Eo(e,t){var o=se(e)?Ce:rd;return o(e,Z(t,3))}function Bb(e,t,o,u){return e==null?[]:(se(t)||(t=t==null?[]:[t]),o=u?i:o,se(o)||(o=o==null?[]:[o]),sd(e,t,o))}var Fb=go(function(e,t,o){e[o?0:1].push(t)},function(){return[[],[]]});function kb(e,t,o){var u=se(e)?hs:Pf,f=arguments.length<3;return u(e,Z(t,4),o,f,An)}function Nb(e,t,o){var u=se(e)?Yw:Pf,f=arguments.length<3;return u(e,Z(t,4),o,f,Yf)}function Ub(e,t){var o=se(e)?mn:Qf;return o(e,To(Z(t,3)))}function $b(e){var t=se(e)?Jf:L_;return t(e)}function Hb(e,t,o){(o?tt(e,t,o):t===i)?t=1:t=le(t);var u=se(e)?c_:D_;return u(e,t)}function Wb(e){var t=se(e)?l_:B_;return t(e)}function Vb(e){if(e==null)return 0;if(ot(e))return Ro(e)?mr(e):e.length;var t=Xe(e);return t==Mt||t==Bt?e.size:Ds(e).length}function zb(e,t,o){var u=se(e)?gs:F_;return o&&tt(e,t,o)&&(t=i),u(e,Z(t,3))}var qb=de(function(e,t){if(e==null)return[];var o=t.length;return o>1&&tt(e,t[0],t[1])?t=[]:o>2&&tt(t[0],t[1],t[2])&&(t=[t[0]]),sd(e,Ke(t,1),[])}),Io=IA||function(){return Ge.Date.now()};function Jb(e,t){if(typeof t!="function")throw new St(l);return e=le(e),function(){if(--e<1)return t.apply(this,arguments)}}function tp(e,t,o){return t=o?i:t,t=e&&t==null?e.length:t,rn(e,Y,i,i,i,i,t)}function np(e,t){var o;if(typeof t!="function")throw new St(l);return e=le(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=i),o}}var ru=de(function(e,t,o){var u=k;if(o.length){var f=vn(o,Er(ru));u|=H}return rn(e,u,t,o,f)}),rp=de(function(e,t,o){var u=k|C;if(o.length){var f=vn(o,Er(rp));u|=H}return rn(t,u,e,o,f)});function ip(e,t,o){t=o?i:t;var u=rn(e,x,i,i,i,i,i,t);return u.placeholder=ip.placeholder,u}function op(e,t,o){t=o?i:t;var u=rn(e,F,i,i,i,i,i,t);return u.placeholder=op.placeholder,u}function ap(e,t,o){var u,f,m,w,A,E,D=0,M=!1,B=!1,V=!0;if(typeof e!="function")throw new St(l);t=Ct(t)||0,xe(o)&&(M=!!o.leading,B="maxWait"in o,m=B?He(Ct(o.maxWait)||0,t):m,V="trailing"in o?!!o.trailing:V);function j(Fe){var Ut=u,cn=f;return u=f=i,D=Fe,w=e.apply(cn,Ut),w}function te(Fe){return D=Fe,A=ci(he,t),M?j(Fe):w}function fe(Fe){var Ut=Fe-E,cn=Fe-D,Ip=t-Ut;return B?Ze(Ip,m-cn):Ip}function ne(Fe){var Ut=Fe-E,cn=Fe-D;return E===i||Ut>=t||Ut<0||B&&cn>=m}function he(){var Fe=Io();if(ne(Fe))return ye(Fe);A=ci(he,fe(Fe))}function ye(Fe){return A=i,V&&u?j(Fe):(u=f=i,w)}function gt(){A!==i&&md(A),D=0,u=E=f=A=i}function nt(){return A===i?w:ye(Io())}function mt(){var Fe=Io(),Ut=ne(Fe);if(u=arguments,f=this,E=Fe,Ut){if(A===i)return te(E);if(B)return md(A),A=ci(he,t),j(E)}return A===i&&(A=ci(he,t)),w}return mt.cancel=gt,mt.flush=nt,mt}var Gb=de(function(e,t){return jf(e,1,t)}),Kb=de(function(e,t,o){return jf(e,Ct(t)||0,o)});function jb(e){return rn(e,oe)}function Oo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new St(l);var o=function(){var u=arguments,f=t?t.apply(this,u):u[0],m=o.cache;if(m.has(f))return m.get(f);var w=e.apply(this,u);return o.cache=m.set(f,w)||m,w};return o.cache=new(Oo.Cache||tn),o}Oo.Cache=tn;function To(e){if(typeof e!="function")throw new St(l);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Yb(e){return np(2,e)}var Qb=k_(function(e,t){t=t.length==1&&se(t[0])?Ce(t[0],dt(Z())):Ce(Ke(t,1),dt(Z()));var o=t.length;return de(function(u){for(var f=-1,m=Ze(u.length,o);++f<m;)u[f]=t[f].call(this,u[f]);return ft(e,this,u)})}),iu=de(function(e,t){var o=vn(t,Er(iu));return rn(e,H,i,t,o)}),sp=de(function(e,t){var o=vn(t,Er(sp));return rn(e,z,i,t,o)}),Zb=on(function(e,t){return rn(e,ce,i,i,i,t)});function Xb(e,t){if(typeof e!="function")throw new St(l);return t=t===i?t:le(t),de(e,t)}function eS(e,t){if(typeof e!="function")throw new St(l);return t=t==null?0:He(le(t),0),de(function(o){var u=o[t],f=Sn(o,0,t);return u&&yn(f,u),ft(e,this,f)})}function tS(e,t,o){var u=!0,f=!0;if(typeof e!="function")throw new St(l);return xe(o)&&(u="leading"in o?!!o.leading:u,f="trailing"in o?!!o.trailing:f),ap(e,t,{leading:u,maxWait:t,trailing:f})}function nS(e){return tp(e,1)}function rS(e,t){return iu(Ws(t),e)}function iS(){if(!arguments.length)return[];var e=arguments[0];return se(e)?e:[e]}function oS(e){return It(e,T)}function aS(e,t){return t=typeof t=="function"?t:i,It(e,T,t)}function sS(e){return It(e,b|T)}function uS(e,t){return t=typeof t=="function"?t:i,It(e,b|T,t)}function cS(e,t){return t==null||Kf(e,t,qe(t))}function Nt(e,t){return e===t||e!==e&&t!==t}var lS=wo(xs),fS=wo(function(e,t){return e>=t}),Kn=ed(function(){return arguments}())?ed:function(e){return Le(e)&&_e.call(e,"callee")&&!$f.call(e,"callee")},se=R.isArray,dS=_f?dt(_f):A_;function ot(e){return e!=null&&Co(e.length)&&!sn(e)}function Be(e){return Le(e)&&ot(e)}function pS(e){return e===!0||e===!1||Le(e)&&et(e)==Dt}var En=TA||gu,hS=bf?dt(bf):__;function gS(e){return Le(e)&&e.nodeType===1&&!li(e)}function mS(e){if(e==null)return!0;if(ot(e)&&(se(e)||typeof e=="string"||typeof e.splice=="function"||En(e)||Ir(e)||Kn(e)))return!e.length;var t=Xe(e);if(t==Mt||t==Bt)return!e.size;if(ui(e))return!Ds(e).length;for(var o in e)if(_e.call(e,o))return!1;return!0}function yS(e,t){return oi(e,t)}function vS(e,t,o){o=typeof o=="function"?o:i;var u=o?o(e,t):i;return u===i?oi(e,t,i,o):!!u}function ou(e){if(!Le(e))return!1;var t=et(e);return t==lt||t==Qe||typeof e.message=="string"&&typeof e.name=="string"&&!li(e)}function wS(e){return typeof e=="number"&&Wf(e)}function sn(e){if(!xe(e))return!1;var t=et(e);return t==qt||t==Un||t==Zt||t==V0}function up(e){return typeof e=="number"&&e==le(e)}function Co(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=N}function xe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Le(e){return e!=null&&typeof e=="object"}var cp=Sf?dt(Sf):S_;function AS(e,t){return e===t||Ls(e,t,js(t))}function _S(e,t,o){return o=typeof o=="function"?o:i,Ls(e,t,js(t),o)}function bS(e){return lp(e)&&e!=+e}function SS(e){if(a1(e))throw new ae(c);return td(e)}function ES(e){return e===null}function IS(e){return e==null}function lp(e){return typeof e=="number"||Le(e)&&et(e)==qr}function li(e){if(!Le(e)||et(e)!=Xt)return!1;var t=eo(e);if(t===null)return!0;var o=_e.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&Yi.call(o)==_A}var au=Ef?dt(Ef):E_;function OS(e){return up(e)&&e>=-N&&e<=N}var fp=If?dt(If):I_;function Ro(e){return typeof e=="string"||!se(e)&&Le(e)&&et(e)==Gr}function ht(e){return typeof e=="symbol"||Le(e)&&et(e)==Hi}var Ir=Of?dt(Of):O_;function TS(e){return e===i}function CS(e){return Le(e)&&Xe(e)==Kr}function RS(e){return Le(e)&&et(e)==q0}var xS=wo(Ms),PS=wo(function(e,t){return e<=t});function dp(e){if(!e)return[];if(ot(e))return Ro(e)?Ft(e):it(e);if(Qr&&e[Qr])return cA(e[Qr]());var t=Xe(e),o=t==Mt?_s:t==Bt?Gi:Or;return o(e)}function un(e){if(!e)return e===0?e:0;if(e=Ct(e),e===q||e===-q){var t=e<0?-1:1;return t*ie}return e===e?e:0}function le(e){var t=un(e),o=t%1;return t===t?o?t-o:t:0}function pp(e){return e?zn(le(e),0,pe):0}function Ct(e){if(typeof e=="number")return e;if(ht(e))return ee;if(xe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=xe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Lf(e);var o=dw.test(e);return o||hw.test(e)?Jw(e.slice(2),o?2:8):fw.test(e)?ee:+e}function hp(e){return Gt(e,at(e))}function LS(e){return e?zn(le(e),-N,N):e===0?e:0}function Ae(e){return e==null?"":pt(e)}var DS=br(function(e,t){if(ui(t)||ot(t)){Gt(t,qe(t),e);return}for(var o in t)_e.call(t,o)&&ni(e,o,t[o])}),gp=br(function(e,t){Gt(t,at(t),e)}),xo=br(function(e,t,o,u){Gt(t,at(t),e,u)}),MS=br(function(e,t,o,u){Gt(t,qe(t),e,u)}),BS=on(Ts);function FS(e,t){var o=_r(e);return t==null?o:Gf(o,t)}var kS=de(function(e,t){e=be(e);var o=-1,u=t.length,f=u>2?t[2]:i;for(f&&tt(t[0],t[1],f)&&(u=1);++o<u;)for(var m=t[o],w=at(m),A=-1,E=w.length;++A<E;){var D=w[A],M=e[D];(M===i||Nt(M,vr[D])&&!_e.call(e,D))&&(e[D]=m[D])}return e}),NS=de(function(e){return e.push(i,Ld),ft(mp,i,e)});function US(e,t){return Cf(e,Z(t,3),Jt)}function $S(e,t){return Cf(e,Z(t,3),Rs)}function HS(e,t){return e==null?e:Cs(e,Z(t,3),at)}function WS(e,t){return e==null?e:Zf(e,Z(t,3),at)}function VS(e,t){return e&&Jt(e,Z(t,3))}function zS(e,t){return e&&Rs(e,Z(t,3))}function qS(e){return e==null?[]:lo(e,qe(e))}function JS(e){return e==null?[]:lo(e,at(e))}function su(e,t,o){var u=e==null?i:qn(e,t);return u===i?o:u}function GS(e,t){return e!=null&&Bd(e,t,m_)}function uu(e,t){return e!=null&&Bd(e,t,y_)}var KS=Td(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=Qi.call(t)),e[t]=o},lu(st)),jS=Td(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=Qi.call(t)),_e.call(e,t)?e[t].push(o):e[t]=[o]},Z),YS=de(ii);function qe(e){return ot(e)?qf(e):Ds(e)}function at(e){return ot(e)?qf(e,!0):T_(e)}function QS(e,t){var o={};return t=Z(t,3),Jt(e,function(u,f,m){nn(o,t(u,f,m),u)}),o}function ZS(e,t){var o={};return t=Z(t,3),Jt(e,function(u,f,m){nn(o,f,t(u,f,m))}),o}var XS=br(function(e,t,o){fo(e,t,o)}),mp=br(function(e,t,o,u){fo(e,t,o,u)}),eE=on(function(e,t){var o={};if(e==null)return o;var u=!1;t=Ce(t,function(m){return m=bn(m,e),u||(u=m.length>1),m}),Gt(e,Gs(e),o),u&&(o=It(o,b|_|T,K_));for(var f=t.length;f--;)Us(o,t[f]);return o});function tE(e,t){return yp(e,To(Z(t)))}var nE=on(function(e,t){return e==null?{}:R_(e,t)});function yp(e,t){if(e==null)return{};var o=Ce(Gs(e),function(u){return[u]});return t=Z(t),ud(e,o,function(u,f){return t(u,f[0])})}function rE(e,t,o){t=bn(t,e);var u=-1,f=t.length;for(f||(f=1,e=i);++u<f;){var m=e==null?i:e[Kt(t[u])];m===i&&(u=f,m=o),e=sn(m)?m.call(e):m}return e}function iE(e,t,o){return e==null?e:ai(e,t,o)}function oE(e,t,o,u){return u=typeof u=="function"?u:i,e==null?e:ai(e,t,o,u)}var vp=xd(qe),wp=xd(at);function aE(e,t,o){var u=se(e),f=u||En(e)||Ir(e);if(t=Z(t,4),o==null){var m=e&&e.constructor;f?o=u?new m:[]:xe(e)?o=sn(m)?_r(eo(e)):{}:o={}}return(f?bt:Jt)(e,function(w,A,E){return t(o,w,A,E)}),o}function sE(e,t){return e==null?!0:Us(e,t)}function uE(e,t,o){return e==null?e:pd(e,t,Ws(o))}function cE(e,t,o,u){return u=typeof u=="function"?u:i,e==null?e:pd(e,t,Ws(o),u)}function Or(e){return e==null?[]:As(e,qe(e))}function lE(e){return e==null?[]:As(e,at(e))}function fE(e,t,o){return o===i&&(o=t,t=i),o!==i&&(o=Ct(o),o=o===o?o:0),t!==i&&(t=Ct(t),t=t===t?t:0),zn(Ct(e),t,o)}function dE(e,t,o){return t=un(t),o===i?(o=t,t=0):o=un(o),e=Ct(e),v_(e,t,o)}function pE(e,t,o){if(o&&typeof o!="boolean"&&tt(e,t,o)&&(t=o=i),o===i&&(typeof t=="boolean"?(o=t,t=i):typeof e=="boolean"&&(o=e,e=i)),e===i&&t===i?(e=0,t=1):(e=un(e),t===i?(t=e,e=0):t=un(t)),e>t){var u=e;e=t,t=u}if(o||e%1||t%1){var f=Vf();return Ze(e+f*(t-e+qw("1e-"+((f+"").length-1))),t)}return Fs(e,t)}var hE=Sr(function(e,t,o){return t=t.toLowerCase(),e+(o?Ap(t):t)});function Ap(e){return cu(Ae(e).toLowerCase())}function _p(e){return e=Ae(e),e&&e.replace(mw,iA).replace(Bw,"")}function gE(e,t,o){e=Ae(e),t=pt(t);var u=e.length;o=o===i?u:zn(le(o),0,u);var f=o;return o-=t.length,o>=0&&e.slice(o,f)==t}function mE(e){return e=Ae(e),e&&Y0.test(e)?e.replace(Ql,oA):e}function yE(e){return e=Ae(e),e&&nw.test(e)?e.replace(is,"\\$&"):e}var vE=Sr(function(e,t,o){return e+(o?"-":"")+t.toLowerCase()}),wE=Sr(function(e,t,o){return e+(o?" ":"")+t.toLowerCase()}),AE=Ed("toLowerCase");function _E(e,t,o){e=Ae(e),t=le(t);var u=t?mr(e):0;if(!t||u>=t)return e;var f=(t-u)/2;return vo(io(f),o)+e+vo(ro(f),o)}function bE(e,t,o){e=Ae(e),t=le(t);var u=t?mr(e):0;return t&&u<t?e+vo(t-u,o):e}function SE(e,t,o){e=Ae(e),t=le(t);var u=t?mr(e):0;return t&&u<t?vo(t-u,o)+e:e}function EE(e,t,o){return o||t==null?t=0:t&&(t=+t),PA(Ae(e).replace(os,""),t||0)}function IE(e,t,o){return(o?tt(e,t,o):t===i)?t=1:t=le(t),ks(Ae(e),t)}function OE(){var e=arguments,t=Ae(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var TE=Sr(function(e,t,o){return e+(o?"_":"")+t.toLowerCase()});function CE(e,t,o){return o&&typeof o!="number"&&tt(e,t,o)&&(t=o=i),o=o===i?pe:o>>>0,o?(e=Ae(e),e&&(typeof t=="string"||t!=null&&!au(t))&&(t=pt(t),!t&&gr(e))?Sn(Ft(e),0,o):e.split(t,o)):[]}var RE=Sr(function(e,t,o){return e+(o?" ":"")+cu(t)});function xE(e,t,o){return e=Ae(e),o=o==null?0:zn(le(o),0,e.length),t=pt(t),e.slice(o,o+t.length)==t}function PE(e,t,o){var u=h.templateSettings;o&&tt(e,t,o)&&(t=i),e=Ae(e),t=xo({},t,u,Pd);var f=xo({},t.imports,u.imports,Pd),m=qe(f),w=As(f,m),A,E,D=0,M=t.interpolate||Wi,B="__p += '",V=bs((t.escape||Wi).source+"|"+M.source+"|"+(M===Zl?lw:Wi).source+"|"+(t.evaluate||Wi).source+"|$","g"),j="//# sourceURL="+(_e.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++$w+"]")+`
|
|
19
|
+
`;e.replace(V,function(ne,he,ye,gt,nt,mt){return ye||(ye=gt),B+=e.slice(D,mt).replace(yw,aA),he&&(A=!0,B+=`' +
|
|
20
|
+
__e(`+he+`) +
|
|
21
|
+
'`),nt&&(E=!0,B+=`';
|
|
22
|
+
`+nt+`;
|
|
23
|
+
__p += '`),ye&&(B+=`' +
|
|
24
|
+
((__t = (`+ye+`)) == null ? '' : __t) +
|
|
25
|
+
'`),D=mt+ne.length,ne}),B+=`';
|
|
26
|
+
`;var te=_e.call(t,"variable")&&t.variable;if(!te)B=`with (obj) {
|
|
27
|
+
`+B+`
|
|
28
|
+
}
|
|
29
|
+
`;else if(uw.test(te))throw new ae(p);B=(E?B.replace(J0,""):B).replace(G0,"$1").replace(K0,"$1;"),B="function("+(te||"obj")+`) {
|
|
30
|
+
`+(te?"":`obj || (obj = {});
|
|
31
|
+
`)+"var __t, __p = ''"+(A?", __e = _.escape":"")+(E?`, __j = Array.prototype.join;
|
|
32
|
+
function print() { __p += __j.call(arguments, '') }
|
|
33
|
+
`:`;
|
|
34
|
+
`)+B+`return __p
|
|
35
|
+
}`;var fe=Sp(function(){return we(m,j+"return "+B).apply(i,w)});if(fe.source=B,ou(fe))throw fe;return fe}function LE(e){return Ae(e).toLowerCase()}function DE(e){return Ae(e).toUpperCase()}function ME(e,t,o){if(e=Ae(e),e&&(o||t===i))return Lf(e);if(!e||!(t=pt(t)))return e;var u=Ft(e),f=Ft(t),m=Df(u,f),w=Mf(u,f)+1;return Sn(u,m,w).join("")}function BE(e,t,o){if(e=Ae(e),e&&(o||t===i))return e.slice(0,Ff(e)+1);if(!e||!(t=pt(t)))return e;var u=Ft(e),f=Mf(u,Ft(t))+1;return Sn(u,0,f).join("")}function FE(e,t,o){if(e=Ae(e),e&&(o||t===i))return e.replace(os,"");if(!e||!(t=pt(t)))return e;var u=Ft(e),f=Df(u,Ft(t));return Sn(u,f).join("")}function kE(e,t){var o=Q,u=X;if(xe(t)){var f="separator"in t?t.separator:f;o="length"in t?le(t.length):o,u="omission"in t?pt(t.omission):u}e=Ae(e);var m=e.length;if(gr(e)){var w=Ft(e);m=w.length}if(o>=m)return e;var A=o-mr(u);if(A<1)return u;var E=w?Sn(w,0,A).join(""):e.slice(0,A);if(f===i)return E+u;if(w&&(A+=E.length-A),au(f)){if(e.slice(A).search(f)){var D,M=E;for(f.global||(f=bs(f.source,Ae(Xl.exec(f))+"g")),f.lastIndex=0;D=f.exec(M);)var B=D.index;E=E.slice(0,B===i?A:B)}}else if(e.indexOf(pt(f),A)!=A){var V=E.lastIndexOf(f);V>-1&&(E=E.slice(0,V))}return E+u}function NE(e){return e=Ae(e),e&&j0.test(e)?e.replace(Yl,pA):e}var UE=Sr(function(e,t,o){return e+(o?" ":"")+t.toUpperCase()}),cu=Ed("toUpperCase");function bp(e,t,o){return e=Ae(e),t=o?i:t,t===i?uA(e)?mA(e):Xw(e):e.match(t)||[]}var Sp=de(function(e,t){try{return ft(e,i,t)}catch(o){return ou(o)?o:new ae(o)}}),$E=on(function(e,t){return bt(t,function(o){o=Kt(o),nn(e,o,ru(e[o],e))}),e});function HE(e){var t=e==null?0:e.length,o=Z();return e=t?Ce(e,function(u){if(typeof u[1]!="function")throw new St(l);return[o(u[0]),u[1]]}):[],de(function(u){for(var f=-1;++f<t;){var m=e[f];if(ft(m[0],this,u))return ft(m[1],this,u)}})}function WE(e){return p_(It(e,b))}function lu(e){return function(){return e}}function VE(e,t){return e==null||e!==e?t:e}var zE=Od(),qE=Od(!0);function st(e){return e}function fu(e){return nd(typeof e=="function"?e:It(e,b))}function JE(e){return id(It(e,b))}function GE(e,t){return od(e,It(t,b))}var KE=de(function(e,t){return function(o){return ii(o,e,t)}}),jE=de(function(e,t){return function(o){return ii(e,o,t)}});function du(e,t,o){var u=qe(t),f=lo(t,u);o==null&&!(xe(t)&&(f.length||!u.length))&&(o=t,t=e,e=this,f=lo(t,qe(t)));var m=!(xe(o)&&"chain"in o)||!!o.chain,w=sn(e);return bt(f,function(A){var E=t[A];e[A]=E,w&&(e.prototype[A]=function(){var D=this.__chain__;if(m||D){var M=e(this.__wrapped__),B=M.__actions__=it(this.__actions__);return B.push({func:E,args:arguments,thisArg:e}),M.__chain__=D,M}return E.apply(e,yn([this.value()],arguments))})}),e}function YE(){return Ge._===this&&(Ge._=bA),this}function pu(){}function QE(e){return e=le(e),de(function(t){return ad(t,e)})}var ZE=zs(Ce),XE=zs(Tf),eI=zs(gs);function Ep(e){return Qs(e)?ms(Kt(e)):x_(e)}function tI(e){return function(t){return e==null?i:qn(e,t)}}var nI=Cd(),rI=Cd(!0);function hu(){return[]}function gu(){return!1}function iI(){return{}}function oI(){return""}function aI(){return!0}function sI(e,t){if(e=le(e),e<1||e>N)return[];var o=pe,u=Ze(e,pe);t=Z(t),e-=pe;for(var f=ws(u,t);++o<e;)t(o);return f}function uI(e){return se(e)?Ce(e,Kt):ht(e)?[e]:it(zd(Ae(e)))}function cI(e){var t=++AA;return Ae(e)+t}var lI=yo(function(e,t){return e+t},0),fI=qs("ceil"),dI=yo(function(e,t){return e/t},1),pI=qs("floor");function hI(e){return e&&e.length?co(e,st,xs):i}function gI(e,t){return e&&e.length?co(e,Z(t,2),xs):i}function mI(e){return xf(e,st)}function yI(e,t){return xf(e,Z(t,2))}function vI(e){return e&&e.length?co(e,st,Ms):i}function wI(e,t){return e&&e.length?co(e,Z(t,2),Ms):i}var AI=yo(function(e,t){return e*t},1),_I=qs("round"),bI=yo(function(e,t){return e-t},0);function SI(e){return e&&e.length?vs(e,st):0}function EI(e,t){return e&&e.length?vs(e,Z(t,2)):0}return h.after=Jb,h.ary=tp,h.assign=DS,h.assignIn=gp,h.assignInWith=xo,h.assignWith=MS,h.at=BS,h.before=np,h.bind=ru,h.bindAll=$E,h.bindKey=rp,h.castArray=iS,h.chain=Zd,h.chunk=p1,h.compact=h1,h.concat=g1,h.cond=HE,h.conforms=WE,h.constant=lu,h.countBy=Sb,h.create=FS,h.curry=ip,h.curryRight=op,h.debounce=ap,h.defaults=kS,h.defaultsDeep=NS,h.defer=Gb,h.delay=Kb,h.difference=m1,h.differenceBy=y1,h.differenceWith=v1,h.drop=w1,h.dropRight=A1,h.dropRightWhile=_1,h.dropWhile=b1,h.fill=S1,h.filter=Ib,h.flatMap=Cb,h.flatMapDeep=Rb,h.flatMapDepth=xb,h.flatten=Kd,h.flattenDeep=E1,h.flattenDepth=I1,h.flip=jb,h.flow=zE,h.flowRight=qE,h.fromPairs=O1,h.functions=qS,h.functionsIn=JS,h.groupBy=Pb,h.initial=C1,h.intersection=R1,h.intersectionBy=x1,h.intersectionWith=P1,h.invert=KS,h.invertBy=jS,h.invokeMap=Db,h.iteratee=fu,h.keyBy=Mb,h.keys=qe,h.keysIn=at,h.map=Eo,h.mapKeys=QS,h.mapValues=ZS,h.matches=JE,h.matchesProperty=GE,h.memoize=Oo,h.merge=XS,h.mergeWith=mp,h.method=KE,h.methodOf=jE,h.mixin=du,h.negate=To,h.nthArg=QE,h.omit=eE,h.omitBy=tE,h.once=Yb,h.orderBy=Bb,h.over=ZE,h.overArgs=Qb,h.overEvery=XE,h.overSome=eI,h.partial=iu,h.partialRight=sp,h.partition=Fb,h.pick=nE,h.pickBy=yp,h.property=Ep,h.propertyOf=tI,h.pull=B1,h.pullAll=Yd,h.pullAllBy=F1,h.pullAllWith=k1,h.pullAt=N1,h.range=nI,h.rangeRight=rI,h.rearg=Zb,h.reject=Ub,h.remove=U1,h.rest=Xb,h.reverse=tu,h.sampleSize=Hb,h.set=iE,h.setWith=oE,h.shuffle=Wb,h.slice=$1,h.sortBy=qb,h.sortedUniq=G1,h.sortedUniqBy=K1,h.split=CE,h.spread=eS,h.tail=j1,h.take=Y1,h.takeRight=Q1,h.takeRightWhile=Z1,h.takeWhile=X1,h.tap=hb,h.throttle=tS,h.thru=So,h.toArray=dp,h.toPairs=vp,h.toPairsIn=wp,h.toPath=uI,h.toPlainObject=hp,h.transform=aE,h.unary=nS,h.union=eb,h.unionBy=tb,h.unionWith=nb,h.uniq=rb,h.uniqBy=ib,h.uniqWith=ob,h.unset=sE,h.unzip=nu,h.unzipWith=Qd,h.update=uE,h.updateWith=cE,h.values=Or,h.valuesIn=lE,h.without=ab,h.words=bp,h.wrap=rS,h.xor=sb,h.xorBy=ub,h.xorWith=cb,h.zip=lb,h.zipObject=fb,h.zipObjectDeep=db,h.zipWith=pb,h.entries=vp,h.entriesIn=wp,h.extend=gp,h.extendWith=xo,du(h,h),h.add=lI,h.attempt=Sp,h.camelCase=hE,h.capitalize=Ap,h.ceil=fI,h.clamp=fE,h.clone=oS,h.cloneDeep=sS,h.cloneDeepWith=uS,h.cloneWith=aS,h.conformsTo=cS,h.deburr=_p,h.defaultTo=VE,h.divide=dI,h.endsWith=gE,h.eq=Nt,h.escape=mE,h.escapeRegExp=yE,h.every=Eb,h.find=Ob,h.findIndex=Jd,h.findKey=US,h.findLast=Tb,h.findLastIndex=Gd,h.findLastKey=$S,h.floor=pI,h.forEach=Xd,h.forEachRight=ep,h.forIn=HS,h.forInRight=WS,h.forOwn=VS,h.forOwnRight=zS,h.get=su,h.gt=lS,h.gte=fS,h.has=GS,h.hasIn=uu,h.head=jd,h.identity=st,h.includes=Lb,h.indexOf=T1,h.inRange=dE,h.invoke=YS,h.isArguments=Kn,h.isArray=se,h.isArrayBuffer=dS,h.isArrayLike=ot,h.isArrayLikeObject=Be,h.isBoolean=pS,h.isBuffer=En,h.isDate=hS,h.isElement=gS,h.isEmpty=mS,h.isEqual=yS,h.isEqualWith=vS,h.isError=ou,h.isFinite=wS,h.isFunction=sn,h.isInteger=up,h.isLength=Co,h.isMap=cp,h.isMatch=AS,h.isMatchWith=_S,h.isNaN=bS,h.isNative=SS,h.isNil=IS,h.isNull=ES,h.isNumber=lp,h.isObject=xe,h.isObjectLike=Le,h.isPlainObject=li,h.isRegExp=au,h.isSafeInteger=OS,h.isSet=fp,h.isString=Ro,h.isSymbol=ht,h.isTypedArray=Ir,h.isUndefined=TS,h.isWeakMap=CS,h.isWeakSet=RS,h.join=L1,h.kebabCase=vE,h.last=Tt,h.lastIndexOf=D1,h.lowerCase=wE,h.lowerFirst=AE,h.lt=xS,h.lte=PS,h.max=hI,h.maxBy=gI,h.mean=mI,h.meanBy=yI,h.min=vI,h.minBy=wI,h.stubArray=hu,h.stubFalse=gu,h.stubObject=iI,h.stubString=oI,h.stubTrue=aI,h.multiply=AI,h.nth=M1,h.noConflict=YE,h.noop=pu,h.now=Io,h.pad=_E,h.padEnd=bE,h.padStart=SE,h.parseInt=EE,h.random=pE,h.reduce=kb,h.reduceRight=Nb,h.repeat=IE,h.replace=OE,h.result=rE,h.round=_I,h.runInContext=S,h.sample=$b,h.size=Vb,h.snakeCase=TE,h.some=zb,h.sortedIndex=H1,h.sortedIndexBy=W1,h.sortedIndexOf=V1,h.sortedLastIndex=z1,h.sortedLastIndexBy=q1,h.sortedLastIndexOf=J1,h.startCase=RE,h.startsWith=xE,h.subtract=bI,h.sum=SI,h.sumBy=EI,h.template=PE,h.times=sI,h.toFinite=un,h.toInteger=le,h.toLength=pp,h.toLower=LE,h.toNumber=Ct,h.toSafeInteger=LS,h.toString=Ae,h.toUpper=DE,h.trim=ME,h.trimEnd=BE,h.trimStart=FE,h.truncate=kE,h.unescape=NE,h.uniqueId=cI,h.upperCase=UE,h.upperFirst=cu,h.each=Xd,h.eachRight=ep,h.first=jd,du(h,function(){var e={};return Jt(h,function(t,o){_e.call(h.prototype,o)||(e[o]=t)}),e}(),{chain:!1}),h.VERSION=a,bt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){h[e].placeholder=h}),bt(["drop","take"],function(e,t){me.prototype[e]=function(o){o=o===i?1:He(le(o),0);var u=this.__filtered__&&!t?new me(this):this.clone();return u.__filtered__?u.__takeCount__=Ze(o,u.__takeCount__):u.__views__.push({size:Ze(o,pe),type:e+(u.__dir__<0?"Right":"")}),u},me.prototype[e+"Right"]=function(o){return this.reverse()[e](o).reverse()}}),bt(["filter","map","takeWhile"],function(e,t){var o=t+1,u=o==G||o==$;me.prototype[e]=function(f){var m=this.clone();return m.__iteratees__.push({iteratee:Z(f,3),type:o}),m.__filtered__=m.__filtered__||u,m}}),bt(["head","last"],function(e,t){var o="take"+(t?"Right":"");me.prototype[e]=function(){return this[o](1).value()[0]}}),bt(["initial","tail"],function(e,t){var o="drop"+(t?"":"Right");me.prototype[e]=function(){return this.__filtered__?new me(this):this[o](1)}}),me.prototype.compact=function(){return this.filter(st)},me.prototype.find=function(e){return this.filter(e).head()},me.prototype.findLast=function(e){return this.reverse().find(e)},me.prototype.invokeMap=de(function(e,t){return typeof e=="function"?new me(this):this.map(function(o){return ii(o,e,t)})}),me.prototype.reject=function(e){return this.filter(To(Z(e)))},me.prototype.slice=function(e,t){e=le(e);var o=this;return o.__filtered__&&(e>0||t<0)?new me(o):(e<0?o=o.takeRight(-e):e&&(o=o.drop(e)),t!==i&&(t=le(t),o=t<0?o.dropRight(-t):o.take(t-e)),o)},me.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},me.prototype.toArray=function(){return this.take(pe)},Jt(me.prototype,function(e,t){var o=/^(?:filter|find|map|reject)|While$/.test(t),u=/^(?:head|last)$/.test(t),f=h[u?"take"+(t=="last"?"Right":""):t],m=u||/^find/.test(t);f&&(h.prototype[t]=function(){var w=this.__wrapped__,A=u?[1]:arguments,E=w instanceof me,D=A[0],M=E||se(w),B=function(he){var ye=f.apply(h,yn([he],A));return u&&V?ye[0]:ye};M&&o&&typeof D=="function"&&D.length!=1&&(E=M=!1);var V=this.__chain__,j=!!this.__actions__.length,te=m&&!V,fe=E&&!j;if(!m&&M){w=fe?w:new me(this);var ne=e.apply(w,A);return ne.__actions__.push({func:So,args:[B],thisArg:i}),new Et(ne,V)}return te&&fe?e.apply(this,A):(ne=this.thru(B),te?u?ne.value()[0]:ne.value():ne)})}),bt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Ki[e],o=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",u=/^(?:pop|shift)$/.test(e);h.prototype[e]=function(){var f=arguments;if(u&&!this.__chain__){var m=this.value();return t.apply(se(m)?m:[],f)}return this[o](function(w){return t.apply(se(w)?w:[],f)})}}),Jt(me.prototype,function(e,t){var o=h[t];if(o){var u=o.name+"";_e.call(Ar,u)||(Ar[u]=[]),Ar[u].push({name:t,func:o})}}),Ar[mo(i,C).name]=[{name:"wrapper",func:i}],me.prototype.clone=NA,me.prototype.reverse=UA,me.prototype.value=$A,h.prototype.at=gb,h.prototype.chain=mb,h.prototype.commit=yb,h.prototype.next=vb,h.prototype.plant=Ab,h.prototype.reverse=_b,h.prototype.toJSON=h.prototype.valueOf=h.prototype.value=bb,h.prototype.first=h.prototype.head,Qr&&(h.prototype[Qr]=wb),h},yr=yA();$n?(($n.exports=yr)._=yr,fs._=yr):Ge._=yr}).call(Yt)}(Mi,Mi.exports);var el=Mi.exports;const My=(r,n)=>{const i=(a,s)=>(c,l)=>(p,g)=>{const y=d.ref(!1),v=d.ref(null),b=d.ref(null),_=d.ref(null);return{loading:y,error:v,data:b,run:async(I,O)=>{y.value=!0,v.value=null,b.value=null,_.value=new AbortController,r||(r=Oe.create());let k="";typeof c=="string"&&(k=c),d.isRef(c)&&(k=c.value);let C={method:a,url:k,headers:{}};return I&&(p=I),C.method==="get"||C.method==="delete"?C.params=p:C.data=p,C.method!=="get"&&(C.params={...C.params,timestamp:new Date().getTime()}),l&&(C=await l(C)),g&&(C=el.merge(C,g)),O&&(C=el.merge(C,O)),n&&(C=await n(C)),C.axiosInstance&&(r=C.axiosInstance),C.urlPrefix&&(C.baseURL=C.baseURL+C.urlPrefix),C.signal||(C.signal=_.value.signal),C.beforeRun&&(C=await C.beforeRun(C)),r(C).then(async U=>{let x=(U==null?void 0:U.data)??U;return C.onSuccess&&(x=await C.onSuccess(U,C)),b.value=x,Promise.resolve([null,x])}).catch(async U=>{if(C.signal){const F=C.signal.reason;typeof F=="string"&&(U.abortReason=F||"")}let x=U;return C.onError&&(x=await C.onError(U,C)),C.onCustomError&&(x=await C.onCustomError(U,C)),v.value=x,Promise.resolve([x,null])}).finally(()=>{C.finally&&C.finally(C),y.value=!1})},abortController:_}};return{get:i("get"),post:i("post"),put:i("put"),patch:i("patch"),delete:i("delete")}},By=r=>{var n=encodeURIComponent(r);return n=btoa(n),n},Fy=r=>{sessionStorage.setItem("hotentToken",r.accessToken||""),sessionStorage.setItem("currentUser",JSON.stringify({token:r.accessToken||""}))},ky=()=>{sessionStorage.removeItem("hotentToken"),sessionStorage.removeItem("currentUser")},Ny={personalInfo:"/api/personal-center/personal-server/v1/info"},tl=async r=>{var i;const n=await Oe.create().get(Ny.personalInfo,{baseURL:Cn().baseURL,params:{project:((i=$o())==null?void 0:i.id)||"",timestamp:new Date().getTime()},headers:{Authorization:`Bearer ${r}`}});n!=null&&n.data&&sessionStorage.setItem("userInfo",JSON.stringify(n.data))};var Uy=!1,nl;const Ra=typeof window<"u",$y=r=>typeof r=="string",rl=()=>+Date.now(),xa=()=>{};Ra&&((nl=window==null?void 0:window.navigator)!=null&&nl.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Pa(r){return typeof r=="function"?r():d.unref(r)}function Hy(r,n){function i(...a){return new Promise((s,c)=>{Promise.resolve(r(()=>n.apply(this,a),{fn:n,thisArg:this,args:a})).then(s).catch(c)})}return i}function Wy(r,n=!0,i=!0,a=!1){let s=0,c,l=!0,p=xa,g;const y=()=>{c&&(clearTimeout(c),c=void 0,p(),p=xa)};return b=>{const _=Pa(r),T=Date.now()-s,I=()=>g=b();return y(),_<=0?(s=Date.now(),I()):(T>_&&(i||!l)?(s=Date.now(),I()):n&&(g=new Promise((O,k)=>{p=a?k:O,c=setTimeout(()=>{s=Date.now(),l=!0,O(I()),y()},Math.max(0,_-T))})),!i&&!c&&(c=setTimeout(()=>l=!0,_)),l=!1,g)}}function Vy(r){return r}function il(r){return d.getCurrentScope()?(d.onScopeDispose(r),!0):!1}function zy(r,n=!0){d.getCurrentInstance()?d.onMounted(r):n?r():d.nextTick(r)}function ol(r){var n;const i=Pa(r);return(n=i==null?void 0:i.$el)!=null?n:i}const al=Ra?window:void 0,qy=Ra?window.document:void 0;function La(...r){let n,i,a,s;if($y(r[0])||Array.isArray(r[0])?([i,a,s]=r,n=al):[n,i,a,s]=r,!n)return xa;Array.isArray(i)||(i=[i]),Array.isArray(a)||(a=[a]);const c=[],l=()=>{c.forEach(v=>v()),c.length=0},p=(v,b,_,T)=>(v.addEventListener(b,_,T),()=>v.removeEventListener(b,_,T)),g=d.watch(()=>[ol(n),Pa(s)],([v,b])=>{l(),v&&c.push(...i.flatMap(_=>a.map(T=>p(v,_,T,b))))},{immediate:!0,flush:"post"}),y=()=>{g(),l()};return il(y),y}function Jy(r,n=!1){const i=d.ref(),a=()=>i.value=!!r();return a(),zy(a,n),i}const sl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ul="__vueuse_ssr_handlers__";sl[ul]=sl[ul]||{};const cl=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];function Gy(r,n={}){const{document:i=qy,autoExit:a=!1}=n,s=i==null?void 0:i.querySelector("html"),c=d.ref(!1);let l=cl[0];const p=Jy(()=>{if(i){for(const O of cl)if(O[1]in i)return l=O,!0}else return!1;return!1}),[g,y,v,,b]=l;async function _(){p.value&&(i!=null&&i[v]&&await i[y](),c.value=!1)}async function T(){if(!p.value)return;await _();const O=ol(s);O&&(await O[g](),c.value=!0)}async function I(){c.value?await _():await T()}return i&&La(i,b,()=>{c.value=!!(i!=null&&i[v])},!1),a&&il(_),{isSupported:p,isFullscreen:c,enter:T,exit:_,toggle:I}}const Ky=["mousemove","mousedown","resize","keydown","touchstart","wheel"],jy=6e4;function Yy(r=jy,n={}){const{initialState:i=!1,listenForVisibilityChange:a=!0,events:s=Ky,window:c=al,eventFilter:l=Wy(50)}=n,p=d.ref(i),g=d.ref(rl());let y;const v=Hy(l,()=>{p.value=!1,g.value=rl(),clearTimeout(y),y=setTimeout(()=>p.value=!0,r)});if(c){const b=c.document;for(const _ of s)La(c,_,v,{passive:!0});a&&La(b,"visibilitychange",()=>{b.hidden||v()})}return y=setTimeout(()=>p.value=!0,r),{idle:p,lastActive:g}}var ll;(function(r){r.UP="UP",r.RIGHT="RIGHT",r.DOWN="DOWN",r.LEFT="LEFT",r.NONE="NONE"})(ll||(ll={}));var Qy=Object.defineProperty,fl=Object.getOwnPropertySymbols,Zy=Object.prototype.hasOwnProperty,Xy=Object.prototype.propertyIsEnumerable,dl=(r,n,i)=>n in r?Qy(r,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[n]=i,ev=(r,n)=>{for(var i in n||(n={}))Zy.call(n,i)&&dl(r,i,n[i]);if(fl)for(var i of fl(n))Xy.call(n,i)&&dl(r,i,n[i]);return r};ev({linear:Vy},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});let Da;const pl={triggerProxySso:"triggerProxySso"},tv=()=>{Da=r=>{var i;const{origin:n}=new URL(location.href);(i=window.top)==null||i.postMessage({type:pl.triggerProxySso,data:{...r||{},redirect_uri:`${n}/`}},n)}},nv=r=>{window.top===window.self&&window.addEventListener("message",n=>{const{type:i,data:a}=n.data;i===pl.triggerProxySso&&(r==null||r(a))})};window.top!==window.self&&tv();const Ma=r=>new URL(location.href).searchParams.get(r),Ba={oauth:"/api/justauth/oauth-server/v1/visitor/oauth/authorize",token:"/api/justauth/oauth-server/v1/visitor/oauth/token"},{baseURL:rv,noRedireLogin:iv=!1}=Cn(),Wr=`${location.origin}/`,Bn={response_type:"code",scope:"sever",client_id:"sys",client_secret:By("das123"),state:+new Date},hl=()=>{const r=Fo(location.href,"redirect_url")||"";if(r)window.__isAutoCloseApp=!1,window.location.replace(decodeURIComponent(r));else{let n=["code","state","kingdee_token","redirect_url"];window.history.replaceState(null,"",Vp(n))}},gl=d.ref(!1),ml=r=>{if(r<=0)return;const{idle:n}=Yy(r);d.watch(()=>n.value,i=>{i===!0&&(gl.value=!0)})};localStorage.getItem("idelTime")&&ml(Number(localStorage.getItem("idelTime")));const ov=async()=>{const{redirectUri:r}=sr().getData(),n=Ma("code")||"";let i=Rn();if(i)return n&&hl(),i;console.log("getTokenFromCode===",n);const a=Fo(location.href,"kingdee_token")||"";let s={};const c={grant_type:"authorization_code",code:n,client_id:Bn.client_id,client_secret:Bn.client_secret,redirect_uri:r||Wr};try{a&&(sessionStorage.setItem("kingdee_token",a),c.redirect_uri=`${c.redirect_uri}?kingdee_token=${a}`),s=await Oe.create().post(Ba.token,{},{baseURL:rv,params:c,headers:{"Content-Type":"application/x-www-form-urlencoded"}});const{access_token:l,expires_in:p,refresh_token:g,refresh_exp:y}=s.data,v={accessToken:l,accessTokenExpiredAt:+new Date+p*1e3,refreshToken:g,info:s.data};sr().save(v),tl(l),hl();const b=y-new Date().getTime();return b&&b>0&&(ml(b),b&&localStorage.setItem("idelTime",b.toString())),l}catch{return ar({...Bn,redirect_uri:r||Wr})}},Vr=d.ref(!1),av=async r=>{if(r.public)return;if(console.log("getToken..."),gl.value)return ar({...Bn,redirect_uri:Wr});if(Vr.value)return await new Promise(async s=>{d.watch(()=>Vr.value,c=>{if(!c){const l=Rn();s(l)}})});const{accessTokenExpiredAt:n}=sr().getData(),i=Ma("code")||"";if((!Rn()||n===0)&&!i)return ar({...Bn,redirect_uri:Wr});let a=Rn();Vr.value=!0;try{typeof n=="number"&&n>0&&+new Date+6e4>n&&(a=await sv(Bn)),a=await ov(),Vr.value=!1}catch{Vr.value=!1}return a},ar=r=>{if(iv)return;const{baseURL:n,ssoLocale:i}=Cn();if(Da)return Da(r);r.logout="true",i&&(r.locale="locale");const a=Object.keys(r).filter(c=>c!=="client_secret").map(c=>`${c}=${r[c]}`).join("&"),s=`${n}${Ba.oauth}?${a}`;Cu(),sessionStorage.clear(),localStorage.removeItem("idelTime"),sr().save({redirectUri:r.redirect_uri}),window.__isAutoCloseApp=!1,location.replace(s)};nv(ar);const sv=async r=>{const{baseURL:n}=Cn(),{refreshToken:i,redirectUri:a}=sr().getData();r.redirect_uri=a;try{const s=await Oe.create().post(Ba.token,{},{baseURL:n,params:{refresh_token:i,grant_type:"refresh_token",client_id:r.client_id,client_secret:r.client_secret,redirect_uri:a}}),{access_token:c,expires_in:l,refresh_token:p}=s.data,g={accessToken:c,accessTokenExpiredAt:+new Date+l*1e3,refreshToken:p,info:s.data};return sr().save(g),tl(c),c}catch{return ar(r)}},sr=()=>({getData:()=>({accessToken:Rn(),accessTokenExpiredAt:hi("accessTokenExpiredAt")?Number(hi("accessTokenExpiredAt")):"",refreshToken:hi("refreshToken"),redirectUri:hi("redirectUri")}),save:r=>{qp(r.accessToken||"",{accessTokenExpiredAt:r.accessTokenExpiredAt,refreshToken:r.refreshToken,redirectUri:r.redirectUri}),Fy(r)},remove:()=>{Cu(),ky()}});var yl={exports:{}};(function(r,n){(function(i,a){r.exports=a()})(Yt,function(){var i=1e3,a=6e4,s=36e5,c="millisecond",l="second",p="minute",g="hour",y="day",v="week",b="month",_="quarter",T="year",I="date",O="Invalid Date",k=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,U={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(G){var W=["th","st","nd","rd"],$=G%100;return"["+G+(W[($-20)%10]||W[$]||W[0])+"]"}},x=function(G,W,$){var q=String(G);return!q||q.length>=W?G:""+Array(W+1-q.length).join($)+G},F={s:x,z:function(G){var W=-G.utcOffset(),$=Math.abs(W),q=Math.floor($/60),N=$%60;return(W<=0?"+":"-")+x(q,2,"0")+":"+x(N,2,"0")},m:function G(W,$){if(W.date()<$.date())return-G($,W);var q=12*($.year()-W.year())+($.month()-W.month()),N=W.clone().add(q,b),ie=$-N<0,ee=W.clone().add(q+(ie?-1:1),b);return+(-(q+($-N)/(ie?N-ee:ee-N))||0)},a:function(G){return G<0?Math.ceil(G)||0:Math.floor(G)},p:function(G){return{M:b,y:T,w:v,d:y,D:I,h:g,m:p,s:l,ms:c,Q:_}[G]||String(G||"").toLowerCase().replace(/s$/,"")},u:function(G){return G===void 0}},H="en",z={};z[H]=U;var Y="$isDayjsObject",ce=function(G){return G instanceof Pe||!(!G||!G[Y])},oe=function G(W,$,q){var N;if(!W)return H;if(typeof W=="string"){var ie=W.toLowerCase();z[ie]&&(N=ie),$&&(z[ie]=$,N=ie);var ee=W.split("-");if(!N&&ee.length>1)return G(ee[0])}else{var pe=W.name;z[pe]=W,N=pe}return!q&&N&&(H=N),N||!q&&H},Q=function(G,W){if(ce(G))return G.clone();var $=typeof W=="object"?W:{};return $.date=G,$.args=arguments,new Pe($)},X=F;X.l=oe,X.i=ce,X.w=function(G,W){return Q(G,{locale:W.$L,utc:W.$u,x:W.$x,$offset:W.$offset})};var Pe=function(){function G($){this.$L=oe($.locale,null,!0),this.parse($),this.$x=this.$x||$.x||{},this[Y]=!0}var W=G.prototype;return W.parse=function($){this.$d=function(q){var N=q.date,ie=q.utc;if(N===null)return new Date(NaN);if(X.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var ee=N.match(k);if(ee){var pe=ee[2]-1||0,Re=(ee[7]||"0").substring(0,3);return ie?new Date(Date.UTC(ee[1],pe,ee[3]||1,ee[4]||0,ee[5]||0,ee[6]||0,Re)):new Date(ee[1],pe,ee[3]||1,ee[4]||0,ee[5]||0,ee[6]||0,Re)}}return new Date(N)}($),this.init()},W.init=function(){var $=this.$d;this.$y=$.getFullYear(),this.$M=$.getMonth(),this.$D=$.getDate(),this.$W=$.getDay(),this.$H=$.getHours(),this.$m=$.getMinutes(),this.$s=$.getSeconds(),this.$ms=$.getMilliseconds()},W.$utils=function(){return X},W.isValid=function(){return this.$d.toString()!==O},W.isSame=function($,q){var N=Q($);return this.startOf(q)<=N&&N<=this.endOf(q)},W.isAfter=function($,q){return Q($)<this.startOf(q)},W.isBefore=function($,q){return this.endOf(q)<Q($)},W.$g=function($,q,N){return X.u($)?this[q]:this.set(N,$)},W.unix=function(){return Math.floor(this.valueOf()/1e3)},W.valueOf=function(){return this.$d.getTime()},W.startOf=function($,q){var N=this,ie=!!X.u(q)||q,ee=X.p($),pe=function(ct,Qe){var lt=X.w(N.$u?Date.UTC(N.$y,Qe,ct):new Date(N.$y,Qe,ct),N);return ie?lt:lt.endOf(y)},Re=function(ct,Qe){return X.w(N.toDate()[ct].apply(N.toDate("s"),(ie?[0,0,0,0]:[23,59,59,999]).slice(Qe)),N)},ke=this.$W,ze=this.$M,Ue=this.$D,Lt="set"+(this.$u?"UTC":"");switch(ee){case T:return ie?pe(1,0):pe(31,11);case b:return ie?pe(1,ze):pe(0,ze+1);case v:var Zt=this.$locale().weekStart||0,Dt=(ke<Zt?ke+7:ke)-Zt;return pe(ie?Ue-Dt:Ue+(6-Dt),ze);case y:case I:return Re(Lt+"Hours",0);case g:return Re(Lt+"Minutes",1);case p:return Re(Lt+"Seconds",2);case l:return Re(Lt+"Milliseconds",3);default:return this.clone()}},W.endOf=function($){return this.startOf($,!1)},W.$set=function($,q){var N,ie=X.p($),ee="set"+(this.$u?"UTC":""),pe=(N={},N[y]=ee+"Date",N[I]=ee+"Date",N[b]=ee+"Month",N[T]=ee+"FullYear",N[g]=ee+"Hours",N[p]=ee+"Minutes",N[l]=ee+"Seconds",N[c]=ee+"Milliseconds",N)[ie],Re=ie===y?this.$D+(q-this.$W):q;if(ie===b||ie===T){var ke=this.clone().set(I,1);ke.$d[pe](Re),ke.init(),this.$d=ke.set(I,Math.min(this.$D,ke.daysInMonth())).$d}else pe&&this.$d[pe](Re);return this.init(),this},W.set=function($,q){return this.clone().$set($,q)},W.get=function($){return this[X.p($)]()},W.add=function($,q){var N,ie=this;$=Number($);var ee=X.p(q),pe=function(ze){var Ue=Q(ie);return X.w(Ue.date(Ue.date()+Math.round(ze*$)),ie)};if(ee===b)return this.set(b,this.$M+$);if(ee===T)return this.set(T,this.$y+$);if(ee===y)return pe(1);if(ee===v)return pe(7);var Re=(N={},N[p]=a,N[g]=s,N[l]=i,N)[ee]||1,ke=this.$d.getTime()+$*Re;return X.w(ke,this)},W.subtract=function($,q){return this.add(-1*$,q)},W.format=function($){var q=this,N=this.$locale();if(!this.isValid())return N.invalidDate||O;var ie=$||"YYYY-MM-DDTHH:mm:ssZ",ee=X.z(this),pe=this.$H,Re=this.$m,ke=this.$M,ze=N.weekdays,Ue=N.months,Lt=N.meridiem,Zt=function(Qe,lt,qt,Un){return Qe&&(Qe[lt]||Qe(q,ie))||qt[lt].slice(0,Un)},Dt=function(Qe){return X.s(pe%12||12,Qe,"0")},ct=Lt||function(Qe,lt,qt){var Un=Qe<12?"AM":"PM";return qt?Un.toLowerCase():Un};return ie.replace(C,function(Qe,lt){return lt||function(qt){switch(qt){case"YY":return String(q.$y).slice(-2);case"YYYY":return X.s(q.$y,4,"0");case"M":return ke+1;case"MM":return X.s(ke+1,2,"0");case"MMM":return Zt(N.monthsShort,ke,Ue,3);case"MMMM":return Zt(Ue,ke);case"D":return q.$D;case"DD":return X.s(q.$D,2,"0");case"d":return String(q.$W);case"dd":return Zt(N.weekdaysMin,q.$W,ze,2);case"ddd":return Zt(N.weekdaysShort,q.$W,ze,3);case"dddd":return ze[q.$W];case"H":return String(pe);case"HH":return X.s(pe,2,"0");case"h":return Dt(1);case"hh":return Dt(2);case"a":return ct(pe,Re,!0);case"A":return ct(pe,Re,!1);case"m":return String(Re);case"mm":return X.s(Re,2,"0");case"s":return String(q.$s);case"ss":return X.s(q.$s,2,"0");case"SSS":return X.s(q.$ms,3,"0");case"Z":return ee}return null}(Qe)||ee.replace(":","")})},W.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},W.diff=function($,q,N){var ie,ee=this,pe=X.p(q),Re=Q($),ke=(Re.utcOffset()-this.utcOffset())*a,ze=this-Re,Ue=function(){return X.m(ee,Re)};switch(pe){case T:ie=Ue()/12;break;case b:ie=Ue();break;case _:ie=Ue()/3;break;case v:ie=(ze-ke)/6048e5;break;case y:ie=(ze-ke)/864e5;break;case g:ie=ze/s;break;case p:ie=ze/a;break;case l:ie=ze/i;break;default:ie=ze}return N?ie:X.a(ie)},W.daysInMonth=function(){return this.endOf(b).$D},W.$locale=function(){return z[this.$L]},W.locale=function($,q){if(!$)return this.$L;var N=this.clone(),ie=oe($,q,!0);return ie&&(N.$L=ie),N},W.clone=function(){return X.w(this.$d,this)},W.toDate=function(){return new Date(this.valueOf())},W.toJSON=function(){return this.isValid()?this.toISOString():null},W.toISOString=function(){return this.$d.toISOString()},W.toString=function(){return this.$d.toUTCString()},G}(),Me=Pe.prototype;return Q.prototype=Me,[["$ms",c],["$s",l],["$m",p],["$H",g],["$W",y],["$M",b],["$y",T],["$D",I]].forEach(function(G){Me[G[1]]=function(W){return this.$g(W,G[0],G[1])}}),Q.extend=function(G,W){return G.$i||(G(W,Pe,Q),G.$i=!0),Q},Q.locale=oe,Q.isDayjs=ce,Q.unix=function(G){return Q(1e3*G)},Q.en=z[H],Q.Ls=z,Q.p={},Q})})(yl);var uv=yl.exports;const Fa=Ei(uv);var vl={exports:{}};(function(r,n){(function(i,a){r.exports=a()})(Yt,function(){var i="minute",a=/[+-]\d\d(?::?\d\d)?/g,s=/([+-]|\d\d)/g;return function(c,l,p){var g=l.prototype;p.utc=function(O){var k={date:O,utc:!0,args:arguments};return new l(k)},g.utc=function(O){var k=p(this.toDate(),{locale:this.$L,utc:!0});return O?k.add(this.utcOffset(),i):k},g.local=function(){return p(this.toDate(),{locale:this.$L,utc:!1})};var y=g.parse;g.parse=function(O){O.utc&&(this.$u=!0),this.$utils().u(O.$offset)||(this.$offset=O.$offset),y.call(this,O)};var v=g.init;g.init=function(){if(this.$u){var O=this.$d;this.$y=O.getUTCFullYear(),this.$M=O.getUTCMonth(),this.$D=O.getUTCDate(),this.$W=O.getUTCDay(),this.$H=O.getUTCHours(),this.$m=O.getUTCMinutes(),this.$s=O.getUTCSeconds(),this.$ms=O.getUTCMilliseconds()}else v.call(this)};var b=g.utcOffset;g.utcOffset=function(O,k){var C=this.$utils().u;if(C(O))return this.$u?0:C(this.$offset)?b.call(this):this.$offset;if(typeof O=="string"&&(O=function(H){H===void 0&&(H="");var z=H.match(a);if(!z)return null;var Y=(""+z[0]).match(s)||["-",0,0],ce=Y[0],oe=60*+Y[1]+ +Y[2];return oe===0?0:ce==="+"?oe:-oe}(O),O===null))return this;var U=Math.abs(O)<=16?60*O:O,x=this;if(k)return x.$offset=U,x.$u=O===0,x;if(O!==0){var F=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(x=this.local().add(U+F,i)).$offset=U,x.$x.$localOffset=F}else x=this.utc();return x};var _=g.format;g.format=function(O){var k=O||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return _.call(this,k)},g.valueOf=function(){var O=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*O},g.isUTC=function(){return!!this.$u},g.toISOString=function(){return this.toDate().toISOString()},g.toString=function(){return this.toDate().toUTCString()};var T=g.toDate;g.toDate=function(O){return O==="s"&&this.$offset?p(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():T.call(this)};var I=g.diff;g.diff=function(O,k,C){if(O&&this.$u===O.$u)return I.call(this,O,k,C);var U=this.local(),x=p(O).local();return I.call(U,x,k,C)}}})})(vl);var cv=vl.exports;const lv=Ei(cv);var wl={exports:{}};(function(r,n){(function(i,a){r.exports=a()})(Yt,function(){var i={year:0,month:1,day:2,hour:3,minute:4,second:5},a={};return function(s,c,l){var p,g=function(_,T,I){I===void 0&&(I={});var O=new Date(_),k=function(C,U){U===void 0&&(U={});var x=U.timeZoneName||"short",F=C+"|"+x,H=a[F];return H||(H=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:C,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:x}),a[F]=H),H}(T,I);return k.formatToParts(O)},y=function(_,T){for(var I=g(_,T),O=[],k=0;k<I.length;k+=1){var C=I[k],U=C.type,x=C.value,F=i[U];F>=0&&(O[F]=parseInt(x,10))}var H=O[3],z=H===24?0:H,Y=O[0]+"-"+O[1]+"-"+O[2]+" "+z+":"+O[4]+":"+O[5]+":000",ce=+_;return(l.utc(Y).valueOf()-(ce-=ce%1e3))/6e4},v=c.prototype;v.tz=function(_,T){_===void 0&&(_=p);var I=this.utcOffset(),O=this.toDate(),k=O.toLocaleString("en-US",{timeZone:_}),C=Math.round((O-new Date(k))/1e3/60),U=l(k,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(O.getTimezoneOffset()/15)-C,!0);if(T){var x=U.utcOffset();U=U.add(I-x,"minute")}return U.$x.$timezone=_,U},v.offsetName=function(_){var T=this.$x.$timezone||l.tz.guess(),I=g(this.valueOf(),T,{timeZoneName:_}).find(function(O){return O.type.toLowerCase()==="timezonename"});return I&&I.value};var b=v.startOf;v.startOf=function(_,T){if(!this.$x||!this.$x.$timezone)return b.call(this,_,T);var I=l(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return b.call(I,_,T).tz(this.$x.$timezone,!0)},l.tz=function(_,T,I){var O=I&&T,k=I||T||p,C=y(+l(),k);if(typeof _!="string")return l(_).tz(k);var U=function(z,Y,ce){var oe=z-60*Y*1e3,Q=y(oe,ce);if(Y===Q)return[oe,Y];var X=y(oe-=60*(Q-Y)*1e3,ce);return Q===X?[oe,Q]:[z-60*Math.min(Q,X)*1e3,Math.max(Q,X)]}(l.utc(_,O).valueOf(),C,k),x=U[0],F=U[1],H=l(x).utcOffset(F);return H.$x.$timezone=k,H},l.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},l.tz.setDefault=function(_){p=_}}})})(wl);var fv=wl.exports;const dv=Ei(fv);Fa.extend(lv),Fa.extend(dv);const Al=Cn(),_l=Al.sso??!0,bl=Al.noRedireLogin??!1,Sl=()=>{if(bl)return;const r="/login";location.pathname!==r&&(sessionStorage.clear(),window.__isAutoCloseApp=!1,location.replace(r))},pv=async r=>{var i;return((i=r.config)==null?void 0:i.responseType)==="blob"?r:r.data??r},hv=async(r,n)=>{var g,y,v,b,_;let i=((g=r.response)==null?void 0:g.status)||500,a=(y=r.response)==null?void 0:y.message,s={};const c={400:"参数校验错误",404:"接口地址未找到",500:"服务器内部错误"};let l=((v=r==null?void 0:r.response)==null?void 0:v.data)||{};return!(Ma("code")||"")&&!bl&&(i===401||(l==null?void 0:l.code)===401)?(_l?ar({...Bn,redirect_uri:Wr}):Sl(),s=l):(r.response?(l instanceof Blob&&(l=await new Promise(T=>{const I=new FileReader;I.readAsText(l,"utf-8"),I.onload=()=>{try{T(JSON.parse(I.result||"{}"))}catch{T({code:400,msg:"blob解析错误"})}}})),l.code&&(i=l.code,a=l.msg||l.message,s=l),a||(a=c[r.response.status]||r.message)):r.request?r.code==="ERR_CANCELED"?r.abortReason&&(a=r.abortReason):a="网络异常,请检查您的网络情况":r.code==="ERR_CANCELED"?r.abortReason&&(a=r.abortReason):a="请求配置异常",n!=null&&n.customErrorMessage&&(a=n==null?void 0:n.customErrorMessage(a,r)),!(n!=null&&n.ignoreErrorMessage)&&a&&((_=(b=window.DasMessage)==null?void 0:b.error)==null||_.call(b,{message:a,showClose:!0}))),{...s,code:i,msg:a,error:r}},re=(r,n)=>{const i=Oe.create();return My(i,async a=>{const s=Cn();if(a.headers||(a.headers={}),!(a!=null&&a.public)){let y="";if(s.token&&(y=s.token),!y){const v=new URL(location.href).searchParams;y=v.get("token")||v.get("accessToken")||v.get("accesstoken")||""}_l?y||(y=await av(a)):(y||(y=Rn()),y||Sl()),y&&!a.headers.Authorization&&(a.headers.Authorization=`Bearer ${y}`)}a.baseURL||(a.baseURL=s.baseURL||""),a.urlPrefix||(a.urlPrefix=r),a.paramsSerializer||(a.paramsSerializer={serialize:y=>Dy.stringify(y,{indices:!1})}),a.onSuccess||(a.onSuccess=pv),a.onError||(a.onError=hv),(a.csrf??!1)&&(a.headers["csrf-token"]=yt.get("csrf-token"));const p=a.params||{};if(p.project===void 0){let y=0;const v=new URL(location.href).searchParams;y=v.get("project")||v.get("projectId")||0,y||(y=$o().id??0),(y||y===0)&&(p.project=y)}if(s.microAppName==="iot/iot"){const{instanceInfo:y}=jp();y!=null&&y.instanceId&&(p.instance=y.instanceId)}return a.params=p,a.headers.Timezone=Fa.tz.guess(),a})};re("/api/app-manager/application/v1"),re("/api/license/admin/v1");const ka="/api/bems/data-manage/v1";re(`${ka}/energy-type`),re(`${ka}/energy-object`),re(`${ka}/energy-dimension`),re("/api/supply/contract/v1");const Bi="v1";re(`/api/duty-manage/classes/${Bi}`),re(`/api/duty-manage/group/${Bi}`),re(`/api/duty-manage/scheduling/${Bi}`),re(`/api/duty-manage/shift/${Bi}`);const El=re("/api/enterpriseright/permission/v1"),zt="v1";re(`/api/iot/${zt}`);const gv={thingmodel:re(`/api/iot-device/thingmodel/${zt}`),deviceManage:re(`/api/iot-device/devicemanage/${zt}`),product:re(`/api/iot-device/product/${zt}`),productStorage:re(`/api/iot-device/product-storage/${zt}`)};re(`/api/device-relation/deviceproject/${zt}`),re(`/api/device-relation/devicerule/${zt}`),re(`/api/device-relation/project/${zt}`);const Na=re(`/api/oss/minio/${zt}`),mv=re(`/api/progress/accessor/${zt}`);Na.get("token"),Na.post("putObject",r=>(r.headers||(r.headers={}),r.headers["Content-Type"]="multipart/form-data",r.responseType="blob",r)),Na.post("upload-objects",r=>(r.headers||(r.headers={}),r.headers["Content-Type"]="multipart/form-data",r.responseType="blob",r)),mv.get("progress"),re("/api/edge/v2");const Il="v1";re(`/api/justauth/oauth-server/${Il}/visitor`),re(`/api/justauth/oauth-server/${Il}`),re("/api/knowledge-base/knowledge/v1"),re("/api/custom-datasource/custom/v1"),re("/api/permission/v1");const Fn="v1";re(`/api/customer/customer/${Fn}`),re(`/api/customer/company/${Fn}`),re(`/api/customer/customer-grade/${Fn}`),re(`/api/customer/customer-type/${Fn}`),re(`/api/project/${Fn}/list`),re(`/api/project/${Fn}/app`),re(`/api/project/${Fn}/people`);const yv=re("/api/portal/user/v1");re("/api/space-manage/space-tree/v1");const Fi="v1";re(`/api/superadmin/portal/${Fi}`),re(`/api/superadmin/permission/${Fi}`),re(`/api/superadmin/resource/${Fi}`),re(`/api/superadmin/license/${Fi}`);const Ua="v1";re(`/api/supply/supplier/${Ua}`),re(`/api/supplier/${Ua}`),re(`/api/supplier/${Ua}/classification`),re("/api/supply/brand/v1"),re("/api/tool/v2"),re("/api/system-config/v1").get("/visitor/appearance/with-default",r=>(r.public=!0,r));const vv=r=>{const n=r||"./logo.svg";let i=document.querySelector('link[rel*="icon"]');i?i==null||i.setAttribute("href",n):(i=document.createElement("link"),i.rel="icon",i.type="image/svg+xml",i.href=n,document.getElementsByTagName("head")[0].appendChild(i))},wv=["modelValue","data","collapse","fixedTopMenu","subMenuAttrs"],$a=d.defineComponent({__name:"das-web-menu",props:{menuAttr:{default:()=>({})}},setup(r){const{menu:n}=Tn,i=d.computed(()=>n.items),a=d.computed(()=>n.items.find(g=>g.fixed)),s=d.computed(()=>n.activeItem||""),c=d.computed(()=>n.collapse??!1),l=d.computed(()=>({popupClassName:n.popupClassName??""})),p=async g=>{const y=g.detail[0],v=ko(i.value).find(_=>y===_.id);await K.menu.triggerEventListener("onItemClick",v)&&K.menu.setActiveItem(v.id)};return(g,y)=>i.value.length>0?(d.openBlock(),d.createElementBlock("das-ce-menu",d.mergeProps({key:0,modelValue:s.value,data:i.value,collapse:c.value,fixedTopMenu:a.value,subMenuAttrs:l.value},g.menuAttr,{onChange:p}),null,16,wv)):d.createCommentVNode("",!0)}}),Av=["modelValue","options"],Ha=d.defineComponent({__name:"das-web-tabs",props:{tabsAttr:{default:()=>({})}},setup(r){const{tab:n}=Tn,i=d.computed(()=>n.items.map(y=>({...y,key:y.value,tab:y.label}))),a=d.computed(()=>n.activeItem||""),s=async y=>{const v=y.detail[0],b=i.value.find(T=>v===T.value);await K.tab.triggerEventListener("onItemClick",b)&&K.tab.setActiveItem(b.value)},c=async y=>{const v=y.detail[0],b=i.value.find(T=>v===T.value);await K.tab.triggerEventListener("onItemRemove",b)&&K.tab.removeItem(b.value)},l=async y=>{await K.tab.triggerEventListener("onMenuClick",{type:y.detail[0],data:y.detail[1]})},p=async y=>{await K.tab.triggerEventListener("onPageRefresh",y.detail[0])},g=()=>{K.tab.triggerEventListener("onToggleFullScreen")};return(y,v)=>i.value.length>0?(d.openBlock(),d.createElementBlock("das-ce-tabs",d.mergeProps({key:0,modelValue:a.value,options:i.value},y.tabsAttr,{"on:tabClick":s,"on:tabDelete":c,"on:menuClick":l,"on:pageRefresh":p,"on:toggleFullScreen":g}),null,16,Av)):d.createCommentVNode("",!0)}}),_v=["name"],bv=["name"],Sv=d.defineComponent({__name:"das-iframe-router-view",props:{needTransition:{type:Boolean},transitionConfig:{},exclude:{default:()=>[]}},setup(r){const n=r,i=d.computed(()=>{const{mode:b="",..._}={mode:"out-in","enter-active-class":"animate__animated animate__fadeInLeft",...n.transitionConfig||{}};return _}),a=In.useRouter(),s=In.useRoute(),c=d.ref([]),l=d.computed(()=>c.value.filter(b=>{var _;return(_=b.meta)==null?void 0:_.isOpen})),p=b=>{const _=b.lastIndexOf("-");let T=_!==-1?b.substring(_+1):"";T==="0"?T="1":T="0",l.value.forEach(I=>{I.meta.key===b&&(I.meta.key=`${I.path}-${T}`)})};d.watch(()=>n.exclude,b=>{if(!b||!b.length)return;const _=l.value.find(T=>b.includes(T.path));_&&p(_.meta.key)},{deep:!0});const g=async b=>{const _=b.component;let T=null;return typeof _=="function"?T=(await _()).default:T=_,T},y=async()=>{var _;const b=a.options.routes;for(const T of b)if((_=T==null?void 0:T.meta)!=null&&_.isIframe){const I=await g(T);c.value.push({...T,meta:{...T.meta,key:`${T.path}-0`,componentInstance:I,isOpen:!1,isShow:!1}})}v()},v=async()=>{var T,I;if(!c.value||!c.value.length)return;const b=c.value.find(O=>O.meta.isShow);b&&(b.meta.isShow=!1,await d.nextTick(),K.iframeView.triggerEventListener("onDeactivated",{route:b}));const _=c.value.find(O=>O.path===s.path);_&&((T=_.meta)!=null&&T.isOpen||(_.meta.isOpen=!0),(I=_.meta)!=null&&I.isShow||(_.meta.isShow=!0),await d.nextTick(),K.iframeView.triggerEventListener("onActivated",{route:_}))};return y(),d.watch(()=>s.path,()=>{v()}),(b,_)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[b.needTransition?(d.openBlock(),d.createBlock(d.TransitionGroup,d.normalizeProps(d.mergeProps({key:0},i.value)),{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l.value,({path:T,meta:I})=>d.withDirectives((d.openBlock(),d.createElementBlock("div",{class:"das-iframe-router-view",key:T,name:T},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(I.componentInstance),{key:I.key}))],8,_v)),[[d.vShow,I.componentInstance&&T===d.unref(s).path]])),128))]),_:1},16)):d.createCommentVNode("",!0),b.needTransition?d.createCommentVNode("",!0):(d.openBlock(!0),d.createElementBlock(d.Fragment,{key:1},d.renderList(l.value,({path:T,meta:I})=>d.withDirectives((d.openBlock(),d.createElementBlock("div",{class:"das-iframe-router-view",key:T,name:T},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(I.componentInstance),{key:I.key}))],8,bv)),[[d.vShow,I.componentInstance&&T===d.unref(s).path]])),128))],64))}}),zr=(r,n)=>{const i=r.__vccOpts||r;for(const[a,s]of n)i[a]=s;return i},Ol=zr(Sv,[["__scopeId","data-v-6a9796cb"]]),Ev={class:"das-web-app-container"},Iv={class:"das-web-app-header"},Ov={class:"das-web-app-main"},Tv={class:"aside"},Cv={class:"das-web-app-main-container"},Rv={class:"tab"},xv={class:"das-web-app-main-content"},Pv={class:"banner"},Lv={key:0,style:{padding:"10px 20px",background:"#f56c6c",color:"#fff"}},Dv={class:"das-web-app-main-router-view"},Mv={style:{width:"100%",height:"100%"}},Bv=zr(d.defineComponent({__name:"das-web-layout-dev",setup(r){const n=In.useRouter(),i=In.useRoute(),a=d.computed(()=>$t.value),s=d.computed(()=>ln.value);let c=new Map;const l=(_,T)=>{let I;return c.has(T)?I=c.get(T):(I={name:T,render(){return d.h(_)}},c.set(T,I)),d.h(I)};d.watch(()=>[i.meta,i.query],([_])=>{const{layout:T}=_;di(T)});const p=d.ref(""),g=(_,T)=>{const I="permission-btn",O=JSON.parse(sessionStorage.getItem(I)||"{}")||{},k=_!=null&&_.length?_.filter(F=>F.routeUrl):[],C=_!=null&&_.length?_.filter(F=>!F.routeUrl&&F.children).map(F=>F.children).flat():[],U=[...k,...C],x={};return U.forEach(F=>{var ce;const H=F.code,z=(F==null?void 0:F.originalCode)??"";x[H]||(x[H]=[]);let Y=[];F!=null&&F.children&&((ce=F==null?void 0:F.children)!=null&&ce.length)&&(F.children.forEach(oe=>{var Q;!(oe!=null&&oe.children)||!((Q=oe.children)!=null&&Q.length)?Y.push({code:oe.code,originalCode:oe.originalCode,name:oe.name}):ko([oe]).forEach(Pe=>{Y.push({code:Pe.code,originalCode:Pe.originalCode,name:Pe.name})})}),Y.forEach(oe=>{let Q=oe.originalCode?oe.originalCode:oe.code?oe.code:"";Q.includes(H+".")&&(Q=Q.replace(H+".","").replaceAll(".","-")),Q.includes(z+".")&&(Q=Q.replace(z+".","").replaceAll(".","-"));const X={code:Q,name:oe.name};x[H].push(X),z&&H!==z&&(x["origin-auth"]||(x["origin-auth"]={}),x["origin-auth"][z]||(x["origin-auth"][z]=[]),x["origin-auth"][z].push(X))}))}),O[T]=x,sessionStorage.setItem(I,JSON.stringify(O)),O},y=(_,T)=>{const I="breadcrumb",O=_.filter(C=>C.routeUrl),k=JSON.parse(sessionStorage.getItem(I)||"{}")||{};return O.forEach(C=>{const x=((C==null?void 0:C.style)??1)===1,F=C.code;k[T]||(k[T]={}),k[T][F]=x}),sessionStorage.setItem(I,JSON.stringify(k)),k},v=d.ref(!0),b=async()=>{var q;v.value=!0,p.value="";const _=El.get("/organization/authProjectTree"),[T,I]=await _().run();if(T){p.value="获取项目数据失败,请配置在public/config.local.js中设置baseURL和microAppName";return}if(typeof I=="string"){p.value="获取项目数据失败,请配置在public/config.local.js中设置baseURL和microAppName";return}K.nav.setProjects(I||[]);const O=I[0];let C=((q=O==null?void 0:O.children)==null?void 0:q[0])||O;const U=sessionStorage.getItem("projectInfo");if(U)try{K.nav.setActiveProject(JSON.parse(U)),K.nav.setActiveProject(JSON.parse(U))}catch{K.nav.setActiveProject(C),sessionStorage.setItem("projectInfo",JSON.stringify(C))}else K.nav.setActiveProject(C),sessionStorage.setItem("projectInfo",JSON.stringify(C));const x=yv.get("/appcategory"),[F,H]=await x().run({userType:1});if(F){p.value="获取应用数据失败,请配置在public/config.local.js中设置baseURL和microAppName";return}const z=H.map(N=>N.apps).flat(),Y=window.config.microAppName,ce=z.find(N=>N.routeUrl===Y||N.routeUrl===`enterpriseadmin/${Y}`||N.routeUrl===`enterpriseadmin${Y}`||"/"+N.routeUrl===Y);if(!ce){p.value="没有找到本地应用名称对应的应用编码,请检查权限工具中是否配置了应用";return}const oe=El.get("/permissionset/user-portal-menu"),[Q,X]=await oe().run({code:ce.code,showBtn:!0,userType:1});if(Q){p.value="没有找到应用对应的菜单,请检查菜单工具的配置";return}const Pe=Eu(X,N=>N.isMenu).map(N=>({...N,path:N.routeUrl,value:N.routeUrl,label:N.name})),Me=K.menu.getItems();K.menu.setItems([...Pe,...Me]),g(X,ce.code),sessionStorage.setItem("subApps",JSON.stringify({currentSubApp:{menus:X,code:ce.code}})),y(Pe,ce.code);const G=gv.deviceManage.get("/instance/getLast"),[W,$]=await G().run();W||($&&sessionStorage.setItem("instance",JSON.stringify({instanceInfo:$})),v.value=!1)};return d.onMounted(async()=>{await new Promise(C=>setTimeout(C,150));const _=[{value:"dev-home",label:"DasFe",path:"/",fixed:!0},{value:"dev-app",label:"本地应用",path:"/",fixed:!1}];K.nav.setItems(_),K.nav.setActiveItem(_[1].value),K.nav.addEventListener("onItemRemove",()=>{alert("本地暂无法关闭应用哦"),K.nav.setItems(_)}),K.nav.addEventListener("onItemClick",C=>{n.push(C.path)});const I=n.getRoutes().filter(C=>!C.path.match("das-micro-app-ghost")).map((C,U)=>({id:C.path,value:C.path,name:`本地 - ${C.path} (不鉴权)`,label:`本地 - ${C.path}`,path:C.path,index:C.path==="/"?-1:U})).sort((C,U)=>C.index-U.index),O=I.find(C=>C.value===n.currentRoute.value.path);O&&(console.log(i,O),K.menu.setActiveItem(O.value),K.tab.appendItem(O),K.tab.setActiveItem(O.value)),K.menu.setItems(I),K.menu.addEventListener("onItemClick",C=>{const U=C.value||C.routeUrl;n.push({path:U,query:{menu:C.code,app:C.applicationCode}}),C.value||(C.value=C.routeUrl),K.tab.appendItem({...C,value:U,path:U,label:C.name||U,name:C.name||U}),K.tab.setActiveItem(U)}),K.tab.addEventListener("onItemClick",C=>{const U=C.value;K.tab.setActiveItem(U),n.push({path:U,query:{menu:C.code,app:C.applicationCode}})}),K.tab.addEventListener("onItemRemove",C=>{$t.value.push(C.path),setTimeout(()=>{$t.value=[]},50);const U=K.tab.getItems(),[x]=U.slice(-1);K.tab.setActiveItem(x.value),n.push(x.value)});const k=[{value:"logout",label:"退出登录"}];K.nav.setUserInfo({commandList:k}),K.nav.addEventListener("onUserCommandChange",C=>{document.cookie="accessToken=;expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;",document.cookie="accessTokenInfo=;expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;",document.cookie="access_token=;expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;",sessionStorage.clear(),location.replace("/")}),K.nav.addEventListener("onProjectChange",C=>{sessionStorage.setItem("projectInfo",JSON.stringify(C)),K.nav.setActiveProject(C),location.replace(location.href)}),K.tab.addEventListener("onPageRefresh",C=>{const{path:U}=C;$t.value.push(U),ln.value=!1,setTimeout(()=>{ln.value=!0,$t.value=[]},300)}),K.tab.addEventListener("onToggleFullScreen",()=>{alert("本地开发暂不支持哦")}),b()}),(_,T)=>{const I=d.resolveComponent("router-view");return d.openBlock(),d.createElementBlock("div",Ev,[d.createElementVNode("div",Iv,[d.renderSlot(_.$slots,"header",{},()=>[d.createVNode(Bo)],!0)]),d.createElementVNode("div",Ov,[d.createElementVNode("div",Tv,[d.renderSlot(_.$slots,"aside",{},()=>[d.createVNode($a)],!0)]),d.createElementVNode("div",Cv,[d.createElementVNode("div",Rv,[d.renderSlot(_.$slots,"tab",{},()=>[d.createVNode(Ha)],!0)]),d.createElementVNode("div",xv,[d.createElementVNode("div",Pv,[p.value?(d.openBlock(),d.createElementBlock("div",Lv,d.toDisplayString(p.value),1)):d.createCommentVNode("",!0),d.renderSlot(_.$slots,"banner",{},void 0,!0)]),d.createElementVNode("div",Dv,[d.createElementVNode("div",Mv,[d.renderSlot(_.$slots,"router-view",{},()=>[v.value?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(I,{key:0},{default:d.withCtx(({Component:O})=>[d.unref(i).meta.keepAlive?(d.openBlock(),d.createBlock(d.KeepAlive,{key:0,exclude:a.value},[s.value&&!d.unref(i).meta.isIframe?(d.openBlock(),d.createBlock(d.resolveDynamicComponent(l(O,d.unref(i).path)),{key:d.unref(i).path})):d.createCommentVNode("",!0)],1032,["exclude"])):d.createCommentVNode("",!0),!d.unref(i).meta.keepAlive&&!d.unref(i).meta.isIframe?(d.openBlock(),d.createBlock(d.resolveDynamicComponent(O),{key:1})):d.createCommentVNode("",!0)]),_:1})),d.withDirectives(d.createVNode(Ol,{exclude:a.value},null,8,["exclude"]),[[d.vShow,d.unref(i).meta.isIframe]])],!0)])])])])])])}}}),[["__scopeId","data-v-eaa1eb2a"]]),Fv={class:"das-web-app-container"},kv={key:0,class:"das-web-app-header"},Nv={class:"das-web-app-main"},Uv={key:0,class:"aside"},$v={class:"das-web-app-main-container"},Hv={key:0,class:"tab"},Wv={class:"das-web-app-main-content"},Vv={class:"banner"},zv={class:"das-web-app-main-router-view"},qv={style:{width:"100%",height:"100%"}},Jv={key:0,style:{width:"100%",height:"100%"}},Gv={key:1,style:{width:"100%",height:"100%"}},Kv={class:"micro-app",style:{height:"100%",width:"100%"}},jv=zr(d.defineComponent({__name:"das-web-layout-pro",props:{needTransition:{type:Boolean,default:!0},transitionConfig:{},showLayout:{type:Boolean,default:!0},showAside:{type:Boolean,default:!0},showTabs:{type:Boolean,default:!0},routerViewVisible:{type:Boolean,default:!0}},setup(r){const n=r,i=In.useRoute(),a=d.ref(!1),s=d.ref(!1),c=d.ref(!1),l=d.computed(()=>a.value&&n.showLayout),p=d.computed(()=>s.value&&n.showLayout&&n.showAside),g=d.computed(()=>a.value&&n.showLayout&&n.showTabs),y=d.computed(()=>n.routerViewVisible??!0),v=d.computed(()=>Tn.overlay.visible??!1),b=d.computed(()=>({"das-web-app-overlay-show":v.value===!0,"das-web-app-overlay-hide":v.value===!1,"das-web-app-overlay-destroy":v.value==="destroy"})),_=d.computed(()=>Tn.overlay.style??{backgroundColor:"rgba(0,0,0,0.5)"}),T=d.computed(()=>$t.value),I=d.computed(()=>ln.value);d.watch(()=>[i.meta,i.query],([x,F])=>{const{showLayout:H=!0,showAside:z=!0,showTabs:Y=!0,layout:ce={}}=x,{showLayout:oe=!0,showAside:Q=!0,showTabs:X=!0,app:Pe}=F;window.__IN_DAS_MAIN_APP&&di(Pe?{minHeight:"auto",minWidth:"auto"}:{minHeight:"600px",minWidth:"1200px"}),window.__IN_DAS_MICRO_APP&&di(ce);let Me=!0,G=!0,W=!0;(H===!1||oe===!1||oe==="false")&&(Me=!1,G=!1,W=!1),(z===!1||Q===!1||Q==="false")&&(G=!1),(Y===!1||X===!1||X==="false")&&(W=!1),a.value=Me,s.value=G,c.value=W});const O=d.computed(()=>({mode:"out-in","enter-active-class":"animate__animated animate__fadeInLeft",...n.transitionConfig||{}}));let k=new Map;const C=(x,F)=>{let H;return k.has(F)?H=k.get(F):(H={name:F,render(){return d.h("div",{style:{width:"100%",height:"100%"}},[d.h(x)])}},k.set(F,H)),d.h(H)},U=d.computed(()=>Tn.visible.value);return(x,F)=>{const H=d.resolveComponent("router-view");return d.openBlock(),d.createElementBlock("div",Fv,[d.withDirectives(d.createElementVNode("div",{class:d.normalizeClass(["das-web-app-overlay",b.value]),style:d.normalizeStyle(_.value)},null,6),[[d.vShow,U.value]]),l.value?d.withDirectives((d.openBlock(),d.createElementBlock("div",kv,[d.renderSlot(x.$slots,"header",{},void 0,!0)],512)),[[d.vShow,U.value]]):d.createCommentVNode("",!0),d.createElementVNode("div",Nv,[p.value?d.withDirectives((d.openBlock(),d.createElementBlock("div",Uv,[d.renderSlot(x.$slots,"aside",{},void 0,!0)],512)),[[d.vShow,U.value]]):d.createCommentVNode("",!0),d.createElementVNode("div",$v,[g.value?d.withDirectives((d.openBlock(),d.createElementBlock("div",Hv,[d.renderSlot(x.$slots,"tab",{},void 0,!0)],512)),[[d.vShow,U.value]]):d.createCommentVNode("",!0),d.createElementVNode("div",Wv,[d.withDirectives(d.createElementVNode("div",Vv,[d.renderSlot(x.$slots,"banner",{},void 0,!0)],512),[[d.vShow,U.value]]),d.createElementVNode("div",zv,[d.withDirectives(d.createElementVNode("div",qv,[d.renderSlot(x.$slots,"router-view",{},()=>[x.needTransition?(d.openBlock(),d.createBlock(H,{key:0},{default:d.withCtx(({Component:z})=>[d.createVNode(d.Transition,d.normalizeProps(d.guardReactiveProps(O.value)),{default:d.withCtx(()=>[d.unref(i).meta.keepAlive?(d.openBlock(),d.createBlock(d.KeepAlive,{key:0,exclude:T.value},[I.value&&!d.unref(i).meta.isIframe?(d.openBlock(),d.createBlock(d.resolveDynamicComponent(C(z,d.unref(i).path)),{key:d.unref(i).path})):d.createCommentVNode("",!0)],1032,["exclude"])):d.createCommentVNode("",!0)]),_:2},1040),d.createVNode(d.Transition,d.normalizeProps(d.guardReactiveProps(O.value)),{default:d.withCtx(()=>[!d.unref(i).meta.keepAlive&&!d.unref(i).meta.isIframe?(d.openBlock(),d.createElementBlock("div",Jv,[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(z),{key:d.unref(i).path}))])):d.createCommentVNode("",!0)]),_:2},1040)]),_:1})):d.createCommentVNode("",!0),x.needTransition?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(H,{key:1},{default:d.withCtx(({Component:z})=>[d.unref(i).meta.keepAlive?(d.openBlock(),d.createBlock(d.KeepAlive,{key:0,exclude:T.value},[I.value&&!d.unref(i).meta.isIframe?(d.openBlock(),d.createBlock(d.resolveDynamicComponent(C(z,d.unref(i).path)),{key:d.unref(i).path})):d.createCommentVNode("",!0)],1032,["exclude"])):d.createCommentVNode("",!0),!d.unref(i).meta.keepAlive&&!d.unref(i).meta.isIframe?(d.openBlock(),d.createElementBlock("div",Gv,[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(z),{key:d.unref(i).path}))])):d.createCommentVNode("",!0)]),_:1})),d.withDirectives(d.createElementVNode("template",null,[d.createVNode(Ol,{exclude:T.value,transitionConfig:O.value,needTransition:x.needTransition},null,8,["exclude","transitionConfig","needTransition"])],512),[[d.vShow,d.unref(i).meta.isIframe]])],!0)],512),[[d.vShow,y.value]]),d.withDirectives(d.createElementVNode("div",Kv,[d.renderSlot(x.$slots,"default",{},void 0,!0)],512),[[d.vShow,!y.value]])])])])])])}}}),[["__scopeId","data-v-93cf8797"]]),Wa=d.defineComponent({__name:"das-web-layout",setup(r){Po.createCeMenu(),Po.createCeNav(),Po.createCeTabs();const n=d.useAttrs(),i=!1;return(a,s)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[d.unref(i)?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(jv,d.normalizeProps(d.mergeProps({key:0},d.unref(n))),{header:d.withCtx(()=>[d.renderSlot(a.$slots,"header")]),aside:d.withCtx(()=>[d.renderSlot(a.$slots,"aside")]),banner:d.withCtx(()=>[d.renderSlot(a.$slots,"banner")]),tab:d.withCtx(()=>[d.renderSlot(a.$slots,"tab")]),"router-view":d.withCtx(()=>[d.renderSlot(a.$slots,"router-view")]),default:d.withCtx(()=>[d.renderSlot(a.$slots,"default")]),_:3},16)),d.unref(i)?(d.openBlock(),d.createBlock(Bv,d.normalizeProps(d.mergeProps({key:1},d.unref(n))),{header:d.withCtx(()=>[d.renderSlot(a.$slots,"header")]),aside:d.withCtx(()=>[d.renderSlot(a.$slots,"aside")]),banner:d.withCtx(()=>[d.renderSlot(a.$slots,"banner")]),tab:d.withCtx(()=>[d.renderSlot(a.$slots,"tab")]),"router-view":d.withCtx(()=>[d.renderSlot(a.$slots,"router-view")]),default:d.withCtx(()=>[d.renderSlot(a.$slots,"default")]),_:3},16)):d.createCommentVNode("",!0)],64))}}),Yv=["src","entry","name"],Qv=zr(d.defineComponent({__name:"das-micro-app",props:{src:{},name:{},actived:{type:Boolean}},emits:["onLoaded","onActivated","onDeactivated"],setup(r,{emit:n}){const i=r,a=n,s=p=>{a("onLoaded",p)},c=d.computed(()=>i.actived),l=p=>{p&&a("onActivated"),p||a("onDeactivated")};return d.watch(()=>c.value,l),(p,g)=>(d.openBlock(),d.createElementBlock("iframe",{class:"das-micro-app",src:i.src,entry:i.src,name:i.name,frameborder:"0",onLoad:s},null,40,Yv))}}),[["__scopeId","data-v-63188c8e"]]);let wt=null,At=null,ur=null;const cr=(r,n,i)=>{var s,c,l,p;const a=Je.value.find(g=>g.name===r);if(a){if(a.entry.startsWith("/")||a.entry.match(location.origin)){(c=(s=a.dom)==null?void 0:s.contentWindow)==null||c.postMessage({type:n,data:i});return}(p=(l=a.dom)==null?void 0:l.contentWindow)==null||p.postMessage({type:n,data:i},a.entry)}},Va=(r,n)=>{var c;const{__IN_DAS_MICRO_APP:i,__DAS_MAIN_APP_HREF:a}=window;if(!i||!a)return;const{origin:s}=new URL(a);(c=window.top)==null||c.postMessage({type:r,data:n},s)},Zv=()=>{At||(At||(At={}),window.addEventListener("message",r=>{const{type:n,source:i}=r.data||{};if(i!=="react-devtools-content-script"&&At[n])for(const a in At[n])At[n][a](r.data)},!1))},Xv=()=>{wt||(wt||(wt={}),window.addEventListener("message",r=>{const{type:n}=r.data||{};if(wt[n])for(const i in wt[n])wt[n][i](r.data)},!1))},e0=(r,n)=>{Xv();const i=new Date().getTime()+Math.random().toString(36).slice(-8);return wt[r]||(wt[r]={}),wt[r][i]=n,{remove:()=>{wt[r]&&wt[r][i]&&delete wt[r][i]}}},t0=(r,n)=>{Zv();const i=new Date().getTime()+Math.random().toString(36).slice(-8);return At[r]||(At[r]={}),At[r][i]=n,{remove:()=>{At[r]&&At[r][i]&&delete At[r][i]}}},za=async r=>{await Promise.all(Je.value.filter(n=>n.loaded).map(n=>new Promise(async i=>{n.dom||await new Promise(a=>d.watch(()=>n.dom,a)),setTimeout(()=>{cr(n.name,"sessionStorage",r),i(!0)},0)})))},Te={loadMicroApp:r=>{fi.value=!0;const n=Je.value.find(l=>l.name===r),i=Je.value.find(l=>l.actived),a=!!n,s=!(n!=null&&n.loaded),c=n==null?void 0:n.actived;if(!a){i&&(i.actived=!1);return}if(n.isFirstActived=!0,s){n.src=n.entry;const l=Je.value.find(p=>p.actived);l&&(l.actived=!1),n.loaded=!0,n.actived=!0;return}if(!c){i&&(i.actived=!1),n.actived=!0;return}},hideMicroApp:async r=>{const n=Je.value.find(i=>i.name===r);n&&n.loaded&&(n.dom||await new Promise(i=>d.watch(()=>n.dom,i)),cr(r,"router",{cmd:"push",route:{name:"das-micro-app-ghost",microAppName:r}}))},hideAllMicroApp:()=>{fi.value=!1,Je.value.map(r=>{r.actived=!1})},unloadMicroApp:r=>{const n=Je.value.find(i=>i.name===r);n&&(n.loaded=!1,n.actived=!1,n.dom=void 0)},unloadAllMicroApp:()=>{fi.value=!1,Je.value.map(r=>{r.loaded=!1,r.actived=!1,r.dom=void 0})},setMicroAppRoute:async(r,n,i)=>{const a=Je.value.find(p=>p.name===n);if(!a||!a.loaded||!a.actived||(a.dom||await new Promise(p=>d.watch(()=>a.dom,p)),!a.actived))return a;const s=i.path||i,c=i.query||{},l=i.params||{};return r.push({path:`/${n}${s}`,query:c,params:l}),setTimeout(()=>{const{isFirstActived:p}=a;cr(n,"router",{cmd:p?"replace":"push",route:i,microAppName:n}),p&&(a.isFirstActived=!1)},0),a},sendMessageToMicroApp:cr,sendMessageToMainApp:Va,addEventListenerFromMainApp:e0,addEventListenerFromMicroApp:t0,setMainAppOverlay:(r,n)=>{Va("bodyOverlay",{visible:r,style:n})},sessionStorage:{key:window.sessionStorage.key,getItem:window.sessionStorage.getItem,setItem:(r,n)=>{window.sessionStorage.setItem(r,n),za({cmd:"setItem",key:r,value:n})},removeItem:r=>{window.sessionStorage.removeItem(r),za({cmd:"removeItem",key:r})},clear:()=>{window.sessionStorage.clear(),za({cmd:"clear"})}},addMicroAppLifeCycleListener:(r,n)=>{const i=new Date().getTime()+Math.random().toString(36).slice(-8);ur||(ur={});const a=()=>{ur[i]&&delete ur[i]};return ur[i]={type:r,handler:async s=>await n(s),remove:a},{remove:a}},triggerMicroAppLifeCycleListener:(r,n,i)=>{var c;const a=ur,{autoRemove:s=!1}=i||{};for(const l in a){const p=a[l];p.type===r&&((c=p==null?void 0:p.handler)==null||c.call(p,n).then(()=>{s&&p.remove()}))}},reloadMicroAppRoute:async(r,n)=>{const i=Je.value.find(a=>a.name===r);i&&(!i.loaded||!i.actived||(i.dom||await new Promise(a=>d.watch(()=>i.dom,a)),cr(r,"route",{cmd:"reload",path:n})))},unloadMicroAppRoute:async(r,n)=>{const i=Je.value.find(a=>a.name===r);i&&(!i.loaded||!i.actived||(i.dom||await new Promise(a=>d.watch(()=>i.dom,a)),cr(r,"route",{cmd:"unload",path:n})))},setMainAppLayoutVisible:r=>{Va("layoutVisible",{visible:r})}},n0=zr(d.defineComponent({__name:"das-micro-apps",setup(r){const n=d.ref(null),i=async(c,l)=>{const p=Je.value.find(_=>_.name===l);if(!p)return;p.dom=c.target,await d.nextTick(),await new Promise(_=>setTimeout(_,50));const g=()=>{const _=n.value.getBoundingClientRect()||{};return _.width=n.value.clientWidth,_.height=n.value.clientHeight,_};Te.sendMessageToMicroApp(l,"onLoaded",{href:location.href,microAppContainerRect:g(),entry:p.entry,name:p.name});const{dom:y,...v}=p;Te.triggerMicroAppLifeCycleListener("onLoaded",v),new ResizeObserver(()=>{Te.sendMessageToMicroApp(l,"resize",g())}).observe(n.value),Te.sendMessageToMicroApp(l,"setProxyMessageStatus",{visible:!0,parentHref:location.href}),Te.sendMessageToMicroApp(l,"setProxSsoStatus",{visible:!0,parentHref:location.href})},a=(c,l)=>{const p=Je.value.find(v=>v.name===l);if(!p)return;const{dom:g,...y}=p;Te.sendMessageToMicroApp(l,"onActivated"),Te.triggerMicroAppLifeCycleListener("onActivated",y)},s=(c,l)=>{const p=Je.value.find(v=>v.name===l);if(!p)return;const{dom:g,...y}=p;Te.sendMessageToMicroApp(l,"onDeactivated"),Te.triggerMicroAppLifeCycleListener("onDeactivated",y)};return(c,l)=>(d.openBlock(),d.createElementBlock("div",{ref_key:"containerRef",ref:n,class:"das-micro-app-container"},[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(d.unref(Je),p=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[p.loaded?d.withDirectives((d.openBlock(),d.createBlock(Qv,{key:0,src:p.src||"",name:p.name,actived:p.actived,onOnLoaded:g=>i(g,p.name),onOnActivated:g=>a(g,p.name),onOnDeactivated:g=>s(g,p.name)},null,8,["src","name","actived","onOnLoaded","onOnActivated","onOnDeactivated"])),[[d.vShow,p.actived]]):d.createCommentVNode("",!0)],64))),256))],512))}}),[["__scopeId","data-v-46611615"]]),r0=d.defineComponent({__name:"das-main-app-layout",props:{transitionConfig:{default:()=>({})},showLayout:{type:Boolean,default:!0},showAside:{type:Boolean,default:!0},showTabs:{type:Boolean,default:!0},menuAttr:{default:()=>({})},tabsAttr:{default:()=>({})}},setup(r){const n=d.computed(()=>!fi.value),i=r,a=d.computed(()=>({"enter-active-class":"animate__animated animate__fadeInLeft",...i.transitionConfig||{}})),s=d.computed(()=>{const{showLayout:c,showAside:l,showTabs:p}=i;return{showLayout:c,showAside:l,showTabs:p}});return(c,l)=>(d.openBlock(),d.createBlock(d.unref(Wa),d.mergeProps({"transition-config":a.value,"router-view-visible":n.value},s.value),{header:d.withCtx(()=>[d.renderSlot(c.$slots,"header",{},()=>[d.createVNode(d.unref(Bo))])]),aside:d.withCtx(()=>[d.renderSlot(c.$slots,"aside",{},()=>[d.createVNode(d.unref($a),{menuAttr:c.menuAttr},null,8,["menuAttr"])])]),tab:d.withCtx(()=>[d.renderSlot(c.$slots,"tab",{},()=>[d.createVNode(d.unref(Ha),{tabsAttr:c.tabsAttr},null,8,["tabsAttr"])])]),default:d.withCtx(()=>[d.createVNode(n0)]),_:3},16,["transition-config","router-view-visible"]))}}),Tl=d.defineComponent({__name:"das-micro-app-ghost",setup(r){return d.onActivated(()=>{setTimeout(()=>{document.documentElement.checkVisibility()&&history.back()},300)}),(n,i)=>null}}),i0=r=>["http://","https://","ws://","wss://","/"].find(i=>r.startsWith(i))?r:`/${r}`,Cl=(r,n)=>{if(!(r!=null&&r.microApps)||!Array.isArray(r.microApps))return;window.__IN_DAS_MAIN_APP=!0,r!=null&&r.microAppRouterPrefix&&(Su.value=r.microAppRouterPrefix),Je.value=(r.microApps||[]).filter(s=>!!s.name).map(s=>({...s,entry:i0(s.entry||s.name)})),n==null||n.addRoute({name:"das-micro-app",path:`${Su.value}/:pathMatch(.*)*`,component:Tl,meta:{isMicroApp:!0,keepAlive:!0}}),Te.addEventListenerFromMicroApp("bodyOverlay",s=>{const{visible:c,style:l}=s.data;K.overlay.set(c,l)}),Te.addEventListenerFromMicroApp("layoutVisible",s=>{const{visible:c}=s.data;K.setVisible(c)}),Te.addEventListenerFromMicroApp("route",s=>{const{name:c,cmd:l,path:p}=s.data;l==="reload"&&Te.reloadMicroAppRoute(c,p),l==="unload"&&Te.unloadMicroAppRoute(c,p)});const{enter:i,exit:a}=Gy();Te.addEventListenerFromMicroApp("fullscreen",s=>{const c=s.data;c&&i(),c||a()}),Te.addEventListenerFromMicroApp("location",s=>{const{cmd:c,isAutoCloseApp:l}=s.data||{};c==="reload"&&(l!==void 0&&(window.__isAutoCloseApp=l),location.reload())})},Rl=(r,n)=>{if(!(r!=null&&r.microAppName))return;window.config.microAppName=r.microAppName,window.self!==window.top&&r.microAppName&&(window.__IN_DAS_MICRO_APP=!0),vv(Yp());const i="das-micro-app-ghost";n==null||n.addRoute({name:i,path:`/${i}/:pathMatch(.*)*`,component:Tl,meta:{isMicroApp:!0,keepAlive:!0}});const a=d.ref(!1),s=d.ref("");d.watch(()=>n.currentRoute.value,c=>{if(a.value){a.value=!1;return}const{path:l,query:p,params:g,meta:y}=c;if(s.value.includes(c.path)){s.value="";return}Te.sendMessageToMainApp("router",{cmd:"push",route:{path:l,query:{...p,microAppName:r.microAppName},params:g,meta:y}})}),Te.addEventListenerFromMainApp("router",async c=>{var y;const{cmd:l,route:p,microAppName:g=""}=c.data;s.value=("/"+g+p.path).replace(/\/\//g,"/"),(y=n==null?void 0:n[l])==null||y.call(n,p)}),Te.addEventListenerFromMainApp("onLoaded",c=>{const{href:l,microAppContainerRect:p}=c.data;window.__IN_DAS_MICRO_APP=!0,window.__DAS_MICRO_APP_NAME=r.microAppName,window.__DAS_MAIN_APP_HREF=l,window.__DAS_MICRO_APP_CONTAINER_RECT=p}),Te.addEventListenerFromMainApp("onDeactivated",c=>{const{name:l="",path:p,params:g={},query:y={}}=n.currentRoute.value;a.value=!0,n==null||n.push({name:i,query:{microAppName:r.microAppName,fromQuery:JSON.stringify(y),fromPath:p},params:g})}),Te.addEventListenerFromMainApp("onActivated",c=>{const{name:l="",params:p={},query:g={}}=n.currentRoute.value,{fromPath:y="",fromQuery:v="{}"}=g||{};a.value=!0,n==null||n.push({path:y,query:JSON.parse(v),params:p})}),Te.addEventListenerFromMainApp("sessionStorage",c=>{const{cmd:l,key:p,value:g}=c.data;l==="setItem"&&window.sessionStorage.setItem(p,g),l==="getItem"&&window.sessionStorage.getItem(p),l==="removeItem"&&window.sessionStorage.removeItem(p),l==="clear"&&window.sessionStorage.clear()}),Te.addEventListenerFromMainApp("route",c=>{const{cmd:l,path:p}=c.data;l==="reload"&&($t.value.push(p),ln.value=!1,setTimeout(()=>{ln.value=!0,$t.value=[]},300)),l==="unload"&&($t.value.push(p),ln.value=!1,setTimeout(()=>{ln.value=!0,$t.value=[]},100))})},o0=r=>{var l,p,g;const n=((l=r==null?void 0:r.router)==null?void 0:l.routerBase)??"/",i=((p=r==null?void 0:r.router)==null?void 0:p.options)||{},s=Object.values(((g=r==null?void 0:r.router)==null?void 0:g.glob)||[]).filter(y=>!!y).flat().sort((y,v)=>(y.index??0)-(v.index??0)).map(y=>{const v=y.meta||{};return v.keepAlive=v.keepAlive??r.keepAlive??!0,{...y,meta:v}});return{router:In.createRouter({history:In.createWebHistory(n),routes:s,...i})}};function a0(){return xl().__VUE_DEVTOOLS_GLOBAL_HOOK__}function xl(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const s0=typeof Proxy=="function",u0="devtools-plugin:setup",c0="plugin:settings:set";let lr,qa;function l0(){var r;return lr!==void 0||(typeof window<"u"&&window.performance?(lr=!0,qa=window.performance):typeof globalThis<"u"&&(!((r=globalThis.perf_hooks)===null||r===void 0)&&r.performance)?(lr=!0,qa=globalThis.perf_hooks.performance):lr=!1),lr}function f0(){return l0()?qa.now():Date.now()}class d0{constructor(n,i){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=n,this.hook=i;const a={};if(n.settings)for(const l in n.settings){const p=n.settings[l];a[l]=p.defaultValue}const s=`__vue-devtools-plugin-settings__${n.id}`;let c=Object.assign({},a);try{const l=localStorage.getItem(s),p=JSON.parse(l);Object.assign(c,p)}catch{}this.fallbacks={getSettings(){return c},setSettings(l){try{localStorage.setItem(s,JSON.stringify(l))}catch{}c=l},now(){return f0()}},i&&i.on(c0,(l,p)=>{l===this.plugin.id&&this.fallbacks.setSettings(p)}),this.proxiedOn=new Proxy({},{get:(l,p)=>this.target?this.target.on[p]:(...g)=>{this.onQueue.push({method:p,args:g})}}),this.proxiedTarget=new Proxy({},{get:(l,p)=>this.target?this.target[p]:p==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(p)?(...g)=>(this.targetQueue.push({method:p,args:g,resolve:()=>{}}),this.fallbacks[p](...g)):(...g)=>new Promise(y=>{this.targetQueue.push({method:p,args:g,resolve:y})})})}async setRealTarget(n){this.target=n;for(const i of this.onQueue)this.target.on[i.method](...i.args);for(const i of this.targetQueue)i.resolve(await this.target[i.method](...i.args))}}function Pl(r,n){const i=r,a=xl(),s=a0(),c=s0&&i.enableEarlyProxy;if(s&&(a.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!c))s.emit(u0,r,n);else{const l=c?new d0(i,s):null;(a.__VUE_DEVTOOLS_PLUGINS__=a.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:i,setupFn:n,proxy:l}),l&&n(l.proxiedTarget)}}/*!
|
|
36
|
+
* pinia v2.1.7
|
|
37
|
+
* (c) 2023 Eduardo San Martin Morote
|
|
38
|
+
* @license MIT
|
|
39
|
+
*/const p0=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();var kn;(function(r){r.direct="direct",r.patchObject="patch object",r.patchFunction="patch function"})(kn||(kn={}));const Ll=typeof window<"u",Dl=(process.env.NODE_ENV!=="production"||!1)&&process.env.NODE_ENV!=="test"&&Ll,Ml=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null};function h0(r,{autoBom:n=!1}={}){return n&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(r.type)?new Blob(["\uFEFF",r],{type:r.type}):r}function Ja(r,n,i){const a=new XMLHttpRequest;a.open("GET",r),a.responseType="blob",a.onload=function(){kl(a.response,n,i)},a.onerror=function(){console.error("could not download file")},a.send()}function Bl(r){const n=new XMLHttpRequest;n.open("HEAD",r,!1);try{n.send()}catch{}return n.status>=200&&n.status<=299}function ki(r){try{r.dispatchEvent(new MouseEvent("click"))}catch{const i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),r.dispatchEvent(i)}}const Ni=typeof navigator=="object"?navigator:{userAgent:""},Fl=/Macintosh/.test(Ni.userAgent)&&/AppleWebKit/.test(Ni.userAgent)&&!/Safari/.test(Ni.userAgent),kl=Ll?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!Fl?g0:"msSaveOrOpenBlob"in Ni?m0:y0:()=>{};function g0(r,n="download",i){const a=document.createElement("a");a.download=n,a.rel="noopener",typeof r=="string"?(a.href=r,a.origin!==location.origin?Bl(a.href)?Ja(r,n,i):(a.target="_blank",ki(a)):ki(a)):(a.href=URL.createObjectURL(r),setTimeout(function(){URL.revokeObjectURL(a.href)},4e4),setTimeout(function(){ki(a)},0))}function m0(r,n="download",i){if(typeof r=="string")if(Bl(r))Ja(r,n,i);else{const a=document.createElement("a");a.href=r,a.target="_blank",setTimeout(function(){ki(a)})}else navigator.msSaveOrOpenBlob(h0(r,i),n)}function y0(r,n,i,a){if(a=a||open("","_blank"),a&&(a.document.title=a.document.body.innerText="downloading..."),typeof r=="string")return Ja(r,n,i);const s=r.type==="application/octet-stream",c=/constructor/i.test(String(Ml.HTMLElement))||"safari"in Ml,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||s&&c||Fl)&&typeof FileReader<"u"){const p=new FileReader;p.onloadend=function(){let g=p.result;if(typeof g!="string")throw a=null,new Error("Wrong reader.result type");g=l?g:g.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=g:location.assign(g),a=null},p.readAsDataURL(r)}else{const p=URL.createObjectURL(r);a?a.location.assign(p):location.href=p,a=null,setTimeout(function(){URL.revokeObjectURL(p)},4e4)}}function Ve(r,n){const i="🍍 "+r;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(i,n):n==="error"?console.error(i):n==="warn"?console.warn(i):console.log(i)}function Ga(r){return"_a"in r&&"install"in r}function Nl(){if(!("clipboard"in navigator))return Ve("Your browser doesn't support the Clipboard API","error"),!0}function Ul(r){return r instanceof Error&&r.message.toLowerCase().includes("document is not focused")?(Ve('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function v0(r){if(!Nl())try{await navigator.clipboard.writeText(JSON.stringify(r.state.value)),Ve("Global state copied to clipboard.")}catch(n){if(Ul(n))return;Ve("Failed to serialize the state. Check the console for more details.","error"),console.error(n)}}async function w0(r){if(!Nl())try{$l(r,JSON.parse(await navigator.clipboard.readText())),Ve("Global state pasted from clipboard.")}catch(n){if(Ul(n))return;Ve("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(n)}}async function A0(r){try{kl(new Blob([JSON.stringify(r.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(n){Ve("Failed to export the state as JSON. Check the console for more details.","error"),console.error(n)}}let Qt;function _0(){Qt||(Qt=document.createElement("input"),Qt.type="file",Qt.accept=".json");function r(){return new Promise((n,i)=>{Qt.onchange=async()=>{const a=Qt.files;if(!a)return n(null);const s=a.item(0);return n(s?{text:await s.text(),file:s}:null)},Qt.oncancel=()=>n(null),Qt.onerror=i,Qt.click()})}return r}async function b0(r){try{const i=await _0()();if(!i)return;const{text:a,file:s}=i;$l(r,JSON.parse(a)),Ve(`Global state imported from "${s.name}".`)}catch(n){Ve("Failed to import the state from JSON. Check the console for more details.","error"),console.error(n)}}function $l(r,n){for(const i in n){const a=r.state.value[i];a?Object.assign(a,n[i]):r.state.value[i]=n[i]}}function Pt(r){return{_custom:{display:r}}}const Hl="🍍 Pinia (root)",Ka="_root";function S0(r){return Ga(r)?{id:Ka,label:Hl}:{id:r.$id,label:r.$id}}function E0(r){if(Ga(r)){const i=Array.from(r._s.keys()),a=r._s;return{state:i.map(c=>({editable:!0,key:c,value:r.state.value[c]})),getters:i.filter(c=>a.get(c)._getters).map(c=>{const l=a.get(c);return{editable:!1,key:c,value:l._getters.reduce((p,g)=>(p[g]=l[g],p),{})}})}}const n={state:Object.keys(r.$state).map(i=>({editable:!0,key:i,value:r.$state[i]}))};return r._getters&&r._getters.length&&(n.getters=r._getters.map(i=>({editable:!1,key:i,value:r[i]}))),r._customProperties.size&&(n.customProperties=Array.from(r._customProperties).map(i=>({editable:!0,key:i,value:r[i]}))),n}function I0(r){return r?Array.isArray(r)?r.reduce((n,i)=>(n.keys.push(i.key),n.operations.push(i.type),n.oldValue[i.key]=i.oldValue,n.newValue[i.key]=i.newValue,n),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:Pt(r.type),key:Pt(r.key),oldValue:r.oldValue,newValue:r.newValue}:{}}function O0(r){switch(r){case kn.direct:return"mutation";case kn.patchFunction:return"$patch";case kn.patchObject:return"$patch";default:return"unknown"}}let fr=!0;const Ui=[],Nn="pinia:mutations",Ye="pinia",{assign:T0}=Object,$i=r=>"🍍 "+r;function C0(r,n){Pl({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Ui,app:r},i=>{typeof i.now!="function"&&Ve("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),i.addTimelineLayer({id:Nn,label:"Pinia 🍍",color:15064968}),i.addInspector({id:Ye,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{v0(n)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await w0(n),i.sendInspectorTree(Ye),i.sendInspectorState(Ye)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{A0(n)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await b0(n),i.sendInspectorTree(Ye),i.sendInspectorState(Ye)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:a=>{const s=n._s.get(a);s?typeof s.$reset!="function"?Ve(`Cannot reset "${a}" store because it doesn't have a "$reset" method implemented.`,"warn"):(s.$reset(),Ve(`Store "${a}" reset.`)):Ve(`Cannot reset "${a}" store because it wasn't found.`,"warn")}}]}),i.on.inspectComponent((a,s)=>{const c=a.componentInstance&&a.componentInstance.proxy;if(c&&c._pStores){const l=a.componentInstance.proxy._pStores;Object.values(l).forEach(p=>{a.instanceData.state.push({type:$i(p.$id),key:"state",editable:!0,value:p._isOptionsAPI?{_custom:{value:d.toRaw(p.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>p.$reset()}]}}:Object.keys(p.$state).reduce((g,y)=>(g[y]=p.$state[y],g),{})}),p._getters&&p._getters.length&&a.instanceData.state.push({type:$i(p.$id),key:"getters",editable:!1,value:p._getters.reduce((g,y)=>{try{g[y]=p[y]}catch(v){g[y]=v}return g},{})})})}}),i.on.getInspectorTree(a=>{if(a.app===r&&a.inspectorId===Ye){let s=[n];s=s.concat(Array.from(n._s.values())),a.rootNodes=(a.filter?s.filter(c=>"$id"in c?c.$id.toLowerCase().includes(a.filter.toLowerCase()):Hl.toLowerCase().includes(a.filter.toLowerCase())):s).map(S0)}}),i.on.getInspectorState(a=>{if(a.app===r&&a.inspectorId===Ye){const s=a.nodeId===Ka?n:n._s.get(a.nodeId);if(!s)return;s&&(a.state=E0(s))}}),i.on.editInspectorState((a,s)=>{if(a.app===r&&a.inspectorId===Ye){const c=a.nodeId===Ka?n:n._s.get(a.nodeId);if(!c)return Ve(`store "${a.nodeId}" not found`,"error");const{path:l}=a;Ga(c)?l.unshift("state"):(l.length!==1||!c._customProperties.has(l[0])||l[0]in c.$state)&&l.unshift("$state"),fr=!1,a.set(c,l,a.state.value),fr=!0}}),i.on.editComponentState(a=>{if(a.type.startsWith("🍍")){const s=a.type.replace(/^🍍\s*/,""),c=n._s.get(s);if(!c)return Ve(`store "${s}" not found`,"error");const{path:l}=a;if(l[0]!=="state")return Ve(`Invalid path for store "${s}":
|
|
40
|
+
${l}
|
|
41
|
+
Only state can be modified.`);l[0]="$state",fr=!1,a.set(c,l,a.state.value),fr=!0}})})}function R0(r,n){Ui.includes($i(n.$id))||Ui.push($i(n.$id)),Pl({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Ui,app:r,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},i=>{const a=typeof i.now=="function"?i.now.bind(i):Date.now;n.$onAction(({after:l,onError:p,name:g,args:y})=>{const v=Wl++;i.addTimelineEvent({layerId:Nn,event:{time:a(),title:"🛫 "+g,subtitle:"start",data:{store:Pt(n.$id),action:Pt(g),args:y},groupId:v}}),l(b=>{gn=void 0,i.addTimelineEvent({layerId:Nn,event:{time:a(),title:"🛬 "+g,subtitle:"end",data:{store:Pt(n.$id),action:Pt(g),args:y,result:b},groupId:v}})}),p(b=>{gn=void 0,i.addTimelineEvent({layerId:Nn,event:{time:a(),logType:"error",title:"💥 "+g,subtitle:"end",data:{store:Pt(n.$id),action:Pt(g),args:y,error:b},groupId:v}})})},!0),n._customProperties.forEach(l=>{d.watch(()=>d.unref(n[l]),(p,g)=>{i.notifyComponentUpdate(),i.sendInspectorState(Ye),fr&&i.addTimelineEvent({layerId:Nn,event:{time:a(),title:"Change",subtitle:l,data:{newValue:p,oldValue:g},groupId:gn}})},{deep:!0})}),n.$subscribe(({events:l,type:p},g)=>{if(i.notifyComponentUpdate(),i.sendInspectorState(Ye),!fr)return;const y={time:a(),title:O0(p),data:T0({store:Pt(n.$id)},I0(l)),groupId:gn};p===kn.patchFunction?y.subtitle="⤵️":p===kn.patchObject?y.subtitle="🧩":l&&!Array.isArray(l)&&(y.subtitle=l.type),l&&(y.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:l}}),i.addTimelineEvent({layerId:Nn,event:y})},{detached:!0,flush:"sync"});const s=n._hotUpdate;n._hotUpdate=d.markRaw(l=>{s(l),i.addTimelineEvent({layerId:Nn,event:{time:a(),title:"🔥 "+n.$id,subtitle:"HMR update",data:{store:Pt(n.$id),info:Pt("HMR update")}}}),i.notifyComponentUpdate(),i.sendInspectorTree(Ye),i.sendInspectorState(Ye)});const{$dispose:c}=n;n.$dispose=()=>{c(),i.notifyComponentUpdate(),i.sendInspectorTree(Ye),i.sendInspectorState(Ye),i.getSettings().logStoreChanges&&Ve(`Disposed "${n.$id}" store 🗑`)},i.notifyComponentUpdate(),i.sendInspectorTree(Ye),i.sendInspectorState(Ye),i.getSettings().logStoreChanges&&Ve(`"${n.$id}" store installed 🆕`)})}let Wl=0,gn;function Vl(r,n,i){const a=n.reduce((s,c)=>(s[c]=d.toRaw(r)[c],s),{});for(const s in a)r[s]=function(){const c=Wl,l=i?new Proxy(r,{get(...g){return gn=c,Reflect.get(...g)},set(...g){return gn=c,Reflect.set(...g)}}):r;gn=c;const p=a[s].apply(l,arguments);return gn=void 0,p}}function x0({app:r,store:n,options:i}){if(n.$id.startsWith("__hot:"))return;n._isOptionsAPI=!!i.state,Vl(n,Object.keys(i.actions),n._isOptionsAPI);const a=n._hotUpdate;d.toRaw(n)._hotUpdate=function(s){a.apply(this,arguments),Vl(n,Object.keys(s._hmrPayload.actions),!!n._isOptionsAPI)},R0(r,n)}function P0(){const r=d.effectScope(!0),n=r.run(()=>d.ref({}));let i=[],a=[];const s=d.markRaw({install(c){s._a=c,c.provide(p0,s),c.config.globalProperties.$pinia=s,Dl&&C0(c,s),a.forEach(l=>i.push(l)),a=[]},use(c){return!this._a&&!Uy?a.push(c):i.push(c),this},_p:i,_a:null,_e:r,_s:new Map,state:n});return Dl&&typeof Proxy<"u"&&s.use(x0),s}process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function L0(r){return typeof r=="object"&&r!==null}function zl(r,n){return r=L0(r)?r:Object.create(null),new Proxy(r,{get(i,a,s){return a==="key"?Reflect.get(i,a,s):Reflect.get(i,a,s)||Reflect.get(n,a,s)}})}function D0(r,n){return n.reduce((i,a)=>i==null?void 0:i[a],r)}function M0(r,n,i){return n.slice(0,-1).reduce((a,s)=>/^(__proto__)$/.test(s)?{}:a[s]=a[s]||{},r)[n[n.length-1]]=i,r}function B0(r,n){return n.reduce((i,a)=>{const s=a.split(".");return M0(i,s,D0(r,s))},{})}function F0(r,n){return i=>{var a;try{const{storage:s=localStorage,beforeRestore:c=void 0,afterRestore:l=void 0,serializer:p={serialize:JSON.stringify,deserialize:JSON.parse},key:g=n.$id,paths:y=null,debug:v=!1}=i;return{storage:s,beforeRestore:c,afterRestore:l,serializer:p,key:((a=r.key)!=null?a:b=>b)(typeof g=="string"?g:g(n.$id)),paths:y,debug:v}}catch(s){return i.debug&&console.error("[pinia-plugin-persistedstate]",s),null}}}function ql(r,{storage:n,serializer:i,key:a,debug:s}){try{const c=n==null?void 0:n.getItem(a);c&&r.$patch(i==null?void 0:i.deserialize(c))}catch(c){s&&console.error("[pinia-plugin-persistedstate]",c)}}function Jl(r,{storage:n,serializer:i,key:a,paths:s,debug:c}){try{const l=Array.isArray(s)?B0(r,s):r;n.setItem(a,i.serialize(l))}catch(l){c&&console.error("[pinia-plugin-persistedstate]",l)}}function k0(r={}){return n=>{const{auto:i=!1}=r,{options:{persist:a=i},store:s,pinia:c}=n;if(!a)return;if(!(s.$id in c.state.value)){const p=c._s.get(s.$id.replace("__hot:",""));p&&Promise.resolve().then(()=>p.$persist());return}const l=(Array.isArray(a)?a.map(p=>zl(p,r)):[zl(a,r)]).map(F0(r,s)).filter(Boolean);s.$persist=()=>{l.forEach(p=>{Jl(s.$state,p)})},s.$hydrate=({runHooks:p=!0}={})=>{l.forEach(g=>{const{beforeRestore:y,afterRestore:v}=g;p&&(y==null||y(n)),ql(s,g),p&&(v==null||v(n))})},l.forEach(p=>{const{beforeRestore:g,afterRestore:y}=p;g==null||g(n),ql(s,p),y==null||y(n),s.$subscribe((v,b)=>{Jl(b,p)},{detached:!0})})}}var N0=k0();const Gl=P0();Gl.use(N0);const U0={install:(r,n)=>{var a;const i=(a=n==null?void 0:n.plugins)==null?void 0:a.glob;i&&Object.values(i).sort((s,c)=>(s.index??0)-(c.index??0)).filter(s=>s?!!(s.default&&s.default.install||s.install):!1).forEach(s=>{s.default&&s.default.install&&r.use(s.default,n),s.install&&r.use(s,n)})}},$0=()=>window.config||{},H0=r=>{r||(r={}),r={...r,...$0()};const n=d.ref(!0);Promise.all([mu(r),Au(r)]).then(()=>{n.value=!1});const{container:i,component:a,props:s}=(r==null?void 0:r.root)||{},c=d.createApp(a||Wa,s);c.use(U0,r),c.use(Gl);const{router:l}=o0(r);return r.microApps&&r.microApps.length>0&&Cl(r,l),r.microAppName&&Rl(r,l),c.use(l),c.mount(i||"#app"),{app:c,router:l,loading:n}};ve.DasMainAppLayout=r0,ve.DasWebLayout=Wa,ve.DasWebMenu=$a,ve.DasWebNav=Bo,ve.DasWebTabs=Ha,ve.createDasWebApp=H0,ve.currentLang=xr,ve.currentTheme=On,ve.getI18nRule=_u,ve.getLang=Bp,ve.getThemeRule=yu,ve.getVar=xp,ve.getVarValue=Pp,ve.i18n=bu,ve.initI18n=Au,ve.initMainApp=Cl,ve.initMicroApp=Rl,ve.initTheme=mu,ve.layout=K,ve.microFrontend=Te,ve.setI18nRule=Do,ve.setLang=Mp,ve.setTheme=Rp,ve.setThemeRule=Lo,ve.t=Dp,Object.defineProperty(ve,Symbol.toStringTag,{value:"Module"})});
|