coding-tool-x 3.9.9-261027 → 3.9.9-261105
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/CHANGELOG.md +1 -0
- package/dist/web/assets/AgentsDrawer-DWnAsTH_.js +1 -0
- package/dist/web/assets/Analytics-D_WWRO5h.js +1 -0
- package/dist/web/assets/AssetPathField-CoIuoSZr.js +1 -0
- package/dist/web/assets/ChatHistoryDrawer-B_OnCpxR.js +1 -0
- package/dist/web/assets/CollapseItem-DEV7PQ-o.js +1 -0
- package/dist/web/assets/CommandsDrawer-gG61nb7a.js +1 -0
- package/dist/web/assets/ConfigExportDrawer-BkSzLSuZ.js +1 -0
- package/dist/web/assets/ConfigTemplates-DvEDpIso.js +1 -0
- package/dist/web/assets/ConfigTemplatesDrawer-DMPO4gjt.js +1 -0
- package/dist/web/assets/ConfigTemplatesPanel-BQe31_bq.js +1 -0
- package/dist/web/assets/Divider-CEqaZMTW.js +1 -0
- package/dist/web/assets/DrawerContent-BYlV968f.js +1 -0
- package/dist/web/assets/FavoritesDrawer-Y-MmIIE9.js +1 -0
- package/dist/web/assets/{Forward-DLCL7aMY.js → Forward-kgMPT2RI.js} +1 -1
- package/dist/web/assets/GatewayConvertDrawer-BvYhzJD6.js +1 -0
- package/dist/web/assets/Home-BOwk4kTa.js +1 -0
- package/dist/web/assets/MarkdownEditor-Bf9QKKaV.js +1 -0
- package/dist/web/assets/McpDrawer-B7cwI24B.js +1 -0
- package/dist/web/assets/McpFormDrawer-Djt5CJyE.js +1 -0
- package/dist/web/assets/PluginManager-B4J_hR0V.js +1 -0
- package/dist/web/assets/PluginsDrawer-Ch4x66-E.js +1 -0
- package/dist/web/assets/PluginsPanel-mqXBlKZg.js +1 -0
- package/dist/web/assets/ProjectList-DtmQyoPc.css +1 -0
- package/dist/web/assets/ProjectList-xToRgLVw.js +1 -0
- package/dist/web/assets/PromptsDrawer-VYrlk-F6.js +1 -0
- package/dist/web/assets/RecentSessionsDrawer-DCsgGSBu.js +1 -0
- package/dist/web/assets/SessionCard-C9n9lC_Y.css +1 -0
- package/dist/web/assets/SessionCard-DwzxeSe9.js +1 -0
- package/dist/web/assets/{SessionList-qG_XpPBJ.css → SessionList-CCuKp6ib.css} +1 -1
- package/dist/web/assets/SessionList-GqzUHgOu.js +1 -0
- package/dist/web/assets/SettingsDrawer-Q_aTOBhf.js +1 -0
- package/dist/web/assets/SkillManager-B1B58WKe.js +1 -0
- package/dist/web/assets/SkillsDrawer-Ch1b1hLn.js +1 -0
- package/dist/web/assets/SkillsPanel-B_xxyDpy.js +1 -0
- package/dist/web/assets/{Upload-xqorL26i.js → Upload-B6Kn1TvG.js} +1 -1
- package/dist/web/assets/WorkspaceDrawer-C3w-Z87U.js +1 -0
- package/dist/web/assets/WorkspaceManager-BFzjeEWh.js +1 -0
- package/dist/web/assets/WorkspacePanel-DkrwFSLs.js +1 -0
- package/dist/web/assets/_plugin-vue_export-helper-DyHLuIR4.js +1 -0
- package/dist/web/assets/{client-oU6RT-6I.js → client-B31QOzWk.js} +1 -1
- package/dist/web/assets/{dsh-agent-presets-DjJRVMT6.js → dsh-agent-presets-DopJnuAZ.js} +1 -1
- package/dist/web/assets/headers-nTUGmJee.js +1 -0
- package/dist/web/assets/{icons-B-AzZoeE.js → icons-C6KNTFqo.js} +1 -1
- package/dist/web/assets/index-BXWpib7P.js +2 -0
- package/dist/web/assets/{index-DjIuAtaS.css → index-CvL_fRpL.css} +1 -1
- package/dist/web/assets/light-DeIjG9s_.js +1 -0
- package/dist/web/assets/markdown-xLK9ekFg.js +1 -0
- package/dist/web/assets/platforms-BdTllxKt.js +1 -0
- package/dist/web/assets/{platforms-p9AiybLU.js → platforms-CDltfh5G.js} +1 -1
- package/dist/web/assets/{project-config-CzFKBw_m.js → project-config-C16yaWHF.js} +1 -1
- package/dist/web/assets/rolldown-runtime-DcNxTHDL.js +1 -0
- package/dist/web/assets/sessions-B4RD8wDx.js +1 -0
- package/dist/web/assets/{sessions-DJiJJgvg.js → sessions-Xl0HAvhA.js} +1 -1
- package/dist/web/assets/use-lock-html-scroll-Bu94jdUB.js +1 -0
- package/dist/web/assets/use-message-BYx0IRj1.js +1 -0
- package/dist/web/assets/useResponsiveDrawer-Deh7Xdcj.js +1 -0
- package/dist/web/assets/vendors-CvGw6U_t.js +1 -0
- package/dist/web/assets/vue-vendor-Cr_NLmXY.js +1 -0
- package/dist/web/assets/{workspaces-D2yLnT-B.js → workspaces-Y7hS24p2.js} +1 -1
- package/dist/web/assets/xml-B78loRzO.js +1 -0
- package/dist/web/index.html +13 -12
- package/package.json +3 -3
- package/src/config/model-metadata.json +30 -4
- package/src/platforms/drivers/dsh/api-operations.js +1 -1
- package/src/platforms/drivers/dsh/channels-implementation.js +10 -0
- package/src/platforms/drivers/dsh/channels.js +10 -0
- package/src/platforms/drivers/dsh/proxy-implementation.js +7 -1
- package/src/platforms/drivers/dsh/sessions.js +5 -1
- package/src/platforms/manifest-schema.js +1 -1
- package/src/platforms/manifests/dsh.json +8 -0
- package/src/server/services/model-detector.js +22 -3
- package/dist/web/assets/AgentsDrawer-CKEf8ie1.js +0 -1
- package/dist/web/assets/Analytics-0BCMxQ-o.js +0 -1
- package/dist/web/assets/AssetPathField-pfN6L814.js +0 -1
- package/dist/web/assets/ChatHistoryDrawer-nuUPRqje.js +0 -1
- package/dist/web/assets/CollapseItem-B2SdqQp2.js +0 -1
- package/dist/web/assets/CommandsDrawer-D8m0qLzQ.js +0 -1
- package/dist/web/assets/ConfigExportDrawer-BlCBLdue.js +0 -1
- package/dist/web/assets/ConfigTemplates-CePBARK8.js +0 -1
- package/dist/web/assets/ConfigTemplatesDrawer-DbVY4rD1.js +0 -1
- package/dist/web/assets/ConfigTemplatesPanel-CwYPLEFV.js +0 -1
- package/dist/web/assets/Divider-BLLhMTSt.js +0 -1
- package/dist/web/assets/DrawerContent-ChXgZ1Xm.js +0 -1
- package/dist/web/assets/FavoritesDrawer-BKAKQNqP.js +0 -1
- package/dist/web/assets/GatewayConvertDrawer-D2MFXcqS.js +0 -1
- package/dist/web/assets/Home-BmElvXVZ.js +0 -1
- package/dist/web/assets/MarkdownEditor-buNC2iDj.js +0 -1
- package/dist/web/assets/McpDrawer-NBjAyFU5.js +0 -1
- package/dist/web/assets/McpFormDrawer-BUnW9j4A.js +0 -1
- package/dist/web/assets/PluginManager-BgHpsF5S.js +0 -1
- package/dist/web/assets/PluginsDrawer-CFnmqzV0.js +0 -1
- package/dist/web/assets/PluginsPanel-ClSdnSCu.js +0 -1
- package/dist/web/assets/ProjectList-CjlHEyU1.js +0 -1
- package/dist/web/assets/ProjectList-VbIYSHbH.css +0 -1
- package/dist/web/assets/PromptsDrawer-xeSGgpCd.js +0 -1
- package/dist/web/assets/RecentSessionsDrawer-DELB6-rU.js +0 -1
- package/dist/web/assets/SessionCard-BaH42eOe.js +0 -1
- package/dist/web/assets/SessionCard-aM2NHu6i.css +0 -1
- package/dist/web/assets/SessionList-BGB9GwYE.js +0 -1
- package/dist/web/assets/SettingsDrawer-DdYC8GIa.js +0 -1
- package/dist/web/assets/SkillManager-CF7EiSps.js +0 -1
- package/dist/web/assets/SkillsDrawer-Bc5zA1bk.js +0 -1
- package/dist/web/assets/SkillsPanel-SnzwzqW5.js +0 -1
- package/dist/web/assets/WorkspaceDrawer-DBiEnZ7j.js +0 -1
- package/dist/web/assets/WorkspaceManager-C1dNfoAy.js +0 -1
- package/dist/web/assets/WorkspacePanel-CWNQZjm1.js +0 -1
- package/dist/web/assets/_plugin-vue_export-helper-BeLZJZij.js +0 -1
- package/dist/web/assets/headers-DbowkmZJ.js +0 -1
- package/dist/web/assets/index-BKpL4XdU.js +0 -2
- package/dist/web/assets/light-C2X7hegj.js +0 -1
- package/dist/web/assets/markdown-u082bbtj.js +0 -1
- package/dist/web/assets/platforms-Cq6XDXfy.js +0 -1
- package/dist/web/assets/sessions-DSLpMXCq.js +0 -1
- package/dist/web/assets/use-lock-html-scroll-DXIqmUW4.js +0 -1
- package/dist/web/assets/use-message-DBsCm7FJ.js +0 -1
- package/dist/web/assets/useResponsiveDrawer-CTQPBATk.js +0 -1
- package/dist/web/assets/vendors-D0c_0KLP.js +0 -1
- package/dist/web/assets/vue-vendor-BqZbbXHA.js +0 -1
- package/dist/web/assets/xml-CgY3RMlX.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as e,D as t,F as o,G as r,I as n,M as a,N as l,Q as i,V as s,Z as d,b as u,dt as c,f as p,g as f,h,j as v,l as g,st as b,tt as m,v as w,y,z as x}from"./vue-vendor-Cr_NLmXY.js";import{$,$t as S,B as C,Bt as M,C as z,Ct as O,Dt as j,F as T,G as E,H as B,I as A,It as _,J as k,K as P,Lt as W,M as H,N as R,Nt as F,Ot as D,Q as I,Qt as L,Rt as N,Tt as X,U as Y,Ut as V,V as U,Vt as q,W as K,Wt as Q,X as Z,Xt as G,Y as J,Yt as ee,Z as te,Zt as oe,_ as re,_n as ne,an as ae,at as le,b as ie,bn as se,bt as de,ct as ue,dt as ce,et as pe,gn as fe,gt as he,hn as ve,ht as ge,it as be,jt as me,lt as we,nn as ye,nt as xe,ot as $e,pn as Se,q as Ce,qt as Me,rt as ze,st as Oe,tn as je,tt as Te,ut as Ee,vn as Be,wn as Ae,x as _e,yn as ke,z as Pe,zt as We}from"./_plugin-vue_export-helper-DyHLuIR4.js";var He=[],Re=new WeakMap;function Fe(){He.forEach(e=>e(...Re.get(e))),He=[]}function De(e,...t){Re.set(e,t),He.includes(e)||1===He.push(e)&&requestAnimationFrame(Fe)}function Ie(){return null!==v()}var Le,Ne,Xe,Ye,Ve="undefined"!=typeof window;function Ue(e){if(Ne)return;let t=!1;s(()=>{Ne||null==Le||Le.then(()=>{t||e()})}),x(()=>{t=!0})}Le=Ve?null===(Ye=null===(Xe=document)||void 0===Xe?void 0:Xe.fonts)||void 0===Ye?void 0:Ye.ready:void 0,Ne=!1,void 0!==Le?Le.then(()=>{Ne=!0}):Ne=!0;var qe=ee("n-internal-select-menu"),Ke=ee("n-internal-select-menu-body"),Qe="__disabled__";function Ze(e){const t=l(Q,null),o=l(Me,null),r=l(V,null),n=l(Ke,null),a=b();if("undefined"!=typeof document){a.value=document.fullscreenElement;const e=()=>{a.value=document.fullscreenElement};s(()=>{ye("fullscreenchange",document,e)}),x(()=>{je("fullscreenchange",document,e)})}return S(()=>{var l;const{to:i}=e;return void 0!==i?!1===i?Qe:!0===i?a.value||"body":i:(null==t?void 0:t.value)?null!==(l=t.value.$el)&&void 0!==l?l:t.value:(null==o?void 0:o.value)?o.value:(null==r?void 0:r.value)?r.value:(null==n?void 0:n.value)?n.value:null!=i?i:a.value||"body"})}Ze.tdkey=Qe,Ze.propTo={type:[String,Object,Boolean],default:void 0};var Ge=null;function Je(){if(null===Ge&&null===(Ge=document.getElementById("v-binder-view-measurer"))){(Ge=document.createElement("div")).id="v-binder-view-measurer";const{style:e}=Ge;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(Ge)}return Ge.getBoundingClientRect()}function et(e){const t=e.getBoundingClientRect(),o=Je();return{left:t.left-o.left,top:t.top-o.top,bottom:o.height+o.top-t.bottom,right:o.width+o.left-t.right,width:t.width,height:t.height}}function tt(e){if(null===e)return null;const t=function(e){return 9===e.nodeType?null:e.parentNode}(e);if(null===t)return null;if(9===t.nodeType)return document;if(1===t.nodeType){const{overflow:e,overflowX:o,overflowY:r}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(e+r+o))return t}return tt(t)}var ot=e({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;r("VBinder",null===(t=v())||void 0===t?void 0:t.proxy);const o=l("VBinder",null),n=b(null);let a=[];const i=()=>{for(const e of a)je("scroll",e,d,!0);a=[]},s=new Set,d=()=>{De(u)},u=()=>{s.forEach(e=>e())},c=new Set,p=()=>{c.forEach(e=>e())};return x(()=>{je("resize",window,p),i()}),{targetRef:n,setTargetRef:t=>{n.value=t,o&&e.syncTargetWithParent&&o.setTargetRef(t)},addScrollListener:e=>{0===s.size&&(()=>{let e=n.value;for(;e=tt(e),null!==e;)a.push(e);for(const t of a)ye("scroll",t,d,!0)})(),s.has(e)||s.add(e)},removeScrollListener:e=>{s.has(e)&&s.delete(e),0===s.size&&i()},addResizeListener:e=>{0===c.size&&ye("resize",window,p),c.has(e)||c.add(e)},removeResizeListener:e=>{c.has(e)&&c.delete(e),0===c.size&&je("resize",window,p)}}},render(){return q("binder",this.$slots)}}),rt=e({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=l("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?m(M("follower",this.$slots),[[t]]):M("follower",this.$slots)}}),nt="@@mmoContext",at={mounted(e,{value:t}){e[nt]={handler:void 0},"function"==typeof t&&(e[nt].handler=t,ye("mousemoveoutside",e,t))},updated(e,{value:t}){const o=e[nt];"function"==typeof t?o.handler?o.handler!==t&&(je("mousemoveoutside",e,o.handler),o.handler=t,ye("mousemoveoutside",e,t)):(e[nt].handler=t,ye("mousemoveoutside",e,t)):o.handler&&(je("mousemoveoutside",e,o.handler),o.handler=void 0)},unmounted(e){const{handler:t}=e[nt];t&&je("mousemoveoutside",e,t),e[nt].handler=void 0}},{c:lt}=Ae(),it="vueuc-style",st={top:"bottom",bottom:"top",left:"right",right:"left"},dt={start:"end",center:"center",end:"start"},ut={top:"height",bottom:"height",left:"width",right:"width"},ct={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},pt={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},ft={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},ht={top:!0,bottom:!1,left:!0,right:!1},vt={top:"end",bottom:"start",left:"end",right:"start"};var gt,bt=lt([lt(".v-binder-follower-container",{position:"absolute",left:"0",right:"0",top:"0",height:"0",pointerEvents:"none",zIndex:"auto"}),lt(".v-binder-follower-content",{position:"absolute",zIndex:"auto"},[lt("> *",{pointerEvents:"all"})])]),mt=e({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=l("VBinder"),o=S(()=>void 0!==e.enabled?e.enabled:e.show),r=b(null),a=b(null),i=()=>{const{syncTrigger:o}=e;o.includes("scroll")&&t.addScrollListener(f),o.includes("resize")&&t.addResizeListener(f)},u=()=>{t.removeScrollListener(f),t.removeResizeListener(f)};s(()=>{o.value&&(f(),i())});const p=W();bt.mount({id:"vueuc/binder",head:!0,anchorMetaName:it,ssr:p}),x(()=>{u()}),Ue(()=>{o.value&&f()});const f=()=>{if(!o.value)return;const n=r.value;if(null===n)return;const l=t.targetRef,{x:i,y:s,overlap:d}=e,u=void 0!==i&&void 0!==s?function(e,t){const o=Je();return{top:t,left:e,height:0,width:0,right:o.width-e,bottom:o.height-t}}(i,s):et(l);n.style.setProperty("--v-target-width",`${Math.round(u.width)}px`),n.style.setProperty("--v-target-height",`${Math.round(u.height)}px`);const{width:c,minWidth:p,placement:f,internalShift:h,flip:v}=e;n.setAttribute("v-placement",f),d?n.setAttribute("v-overlap",""):n.removeAttribute("v-overlap");const{style:g}=n;g.width="target"===c?`${u.width}px`:void 0!==c?c:"",g.minWidth="target"===p?`${u.width}px`:void 0!==p?p:"";const b=et(n),m=et(a.value),{left:w,top:y,placement:x}=function(e,t,o,r,n,a){if(!n||a)return{placement:e,top:0,left:0};const[l,i]=e.split("-");let s=null!=i?i:"center",d={top:0,left:0};const u=(e,n,a)=>{let l=0,i=0;const s=o[e]-t[n]-t[e];return s>0&&r&&(a?i=ht[n]?s:-s:l=ht[n]?s:-s),{left:l,top:i}},c="left"===l||"right"===l;if("center"!==s){const r=ft[e],n=st[r],a=ut[r];if(o[a]>t[a]){if(t[r]+t[a]<o[a]){const e=(o[a]-t[a])/2;t[r]<e||t[n]<e?t[r]<t[n]?(s=dt[i],d=u(a,n,c)):d=u(a,r,c):s="center"}}else o[a]<t[a]&&t[n]<0&&t[r]>t[n]&&(s=dt[i])}else{const e="bottom"===l||"top"===l?"left":"top",r=st[e],n=ut[e],a=(o[n]-t[n])/2;(t[e]<a||t[r]<a)&&(t[e]>t[r]?(s=vt[e],d=u(n,e,c)):(s=vt[r],d=u(n,r,c)))}let p=l;return t[l]<o[ut[l]]&&t[l]<t[st[l]]&&(p=st[l]),{placement:"center"!==s?`${p}-${s}`:p,left:d.left,top:d.top}}(f,u,b,h,v,d),$=function(e,t){return t?pt[e]:ct[e]}(x,d),{left:S,top:C,transform:M}=function(e,t,o,r,n,a){if(a)switch(e){case"bottom-start":case"left-end":return{top:`${Math.round(o.top-t.top+o.height)}px`,left:`${Math.round(o.left-t.left)}px`,transform:"translateY(-100%)"};case"bottom-end":case"right-end":return{top:`${Math.round(o.top-t.top+o.height)}px`,left:`${Math.round(o.left-t.left+o.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top-start":case"left-start":return{top:`${Math.round(o.top-t.top)}px`,left:`${Math.round(o.left-t.left)}px`,transform:""};case"top-end":case"right-start":return{top:`${Math.round(o.top-t.top)}px`,left:`${Math.round(o.left-t.left+o.width)}px`,transform:"translateX(-100%)"};case"top":return{top:`${Math.round(o.top-t.top)}px`,left:`${Math.round(o.left-t.left+o.width/2)}px`,transform:"translateX(-50%)"};case"right":return{top:`${Math.round(o.top-t.top+o.height/2)}px`,left:`${Math.round(o.left-t.left+o.width)}px`,transform:"translateX(-100%) translateY(-50%)"};case"left":return{top:`${Math.round(o.top-t.top+o.height/2)}px`,left:`${Math.round(o.left-t.left)}px`,transform:"translateY(-50%)"};default:return{top:`${Math.round(o.top-t.top+o.height)}px`,left:`${Math.round(o.left-t.left+o.width/2)}px`,transform:"translateX(-50%) translateY(-100%)"}}switch(e){case"bottom-start":return{top:`${Math.round(o.top-t.top+o.height+r)}px`,left:`${Math.round(o.left-t.left+n)}px`,transform:""};case"bottom-end":return{top:`${Math.round(o.top-t.top+o.height+r)}px`,left:`${Math.round(o.left-t.left+o.width+n)}px`,transform:"translateX(-100%)"};case"top-start":return{top:`${Math.round(o.top-t.top+r)}px`,left:`${Math.round(o.left-t.left+n)}px`,transform:"translateY(-100%)"};case"top-end":return{top:`${Math.round(o.top-t.top+r)}px`,left:`${Math.round(o.left-t.left+o.width+n)}px`,transform:"translateX(-100%) translateY(-100%)"};case"right-start":return{top:`${Math.round(o.top-t.top+r)}px`,left:`${Math.round(o.left-t.left+o.width+n)}px`,transform:""};case"right-end":return{top:`${Math.round(o.top-t.top+o.height+r)}px`,left:`${Math.round(o.left-t.left+o.width+n)}px`,transform:"translateY(-100%)"};case"left-start":return{top:`${Math.round(o.top-t.top+r)}px`,left:`${Math.round(o.left-t.left+n)}px`,transform:"translateX(-100%)"};case"left-end":return{top:`${Math.round(o.top-t.top+o.height+r)}px`,left:`${Math.round(o.left-t.left+n)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top":return{top:`${Math.round(o.top-t.top+r)}px`,left:`${Math.round(o.left-t.left+o.width/2+n)}px`,transform:"translateY(-100%) translateX(-50%)"};case"right":return{top:`${Math.round(o.top-t.top+o.height/2+r)}px`,left:`${Math.round(o.left-t.left+o.width+n)}px`,transform:"translateY(-50%)"};case"left":return{top:`${Math.round(o.top-t.top+o.height/2+r)}px`,left:`${Math.round(o.left-t.left+n)}px`,transform:"translateY(-50%) translateX(-100%)"};default:return{top:`${Math.round(o.top-t.top+o.height+r)}px`,left:`${Math.round(o.left-t.left+o.width/2+n)}px`,transform:"translateX(-50%)"}}}(x,m,u,y,w,d);n.setAttribute("v-placement",x),n.style.setProperty("--v-offset-left",`${Math.round(w)}px`),n.style.setProperty("--v-offset-top",`${Math.round(y)}px`),n.style.transform=`translateX(${S}) translateY(${C}) ${M}`,n.style.setProperty("--v-transform-origin",$),n.style.transformOrigin=$};d(o,e=>{e?(i(),h()):u()});const h=()=>{n().then(f).catch(e=>{})};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(t=>{d(c(e,t),f)}),["teleportDisabled"].forEach(t=>{d(c(e,t),h)}),d(c(e,"syncTrigger"),e=>{e.includes("resize")?t.addResizeListener(f):t.removeResizeListener(f),e.includes("scroll")?t.addScrollListener(f):t.removeScrollListener(f)});const v=oe();return{VBinder:t,mergedEnabled:o,offsetContainerRef:a,followerRef:r,mergedTo:S(()=>{const{to:t}=e;if(void 0!==t)return t;v.value}),syncPosition:f}},render(){return a(_,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const o=a("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[a("div",{class:"v-binder-follower-content",ref:"followerRef"},null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e))]);return this.zindexable?m(o,[[N,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):o}})}});function wt(e,o=!0,r=[]){return e.forEach(e=>{if(null!==e)if("object"==typeof e)if(Array.isArray(e))wt(e,o,r);else if(e.type===f){if(null===e.children)return;Array.isArray(e.children)&&wt(e.children,o,r)}else{if(e.type===h&&o)return;r.push(e)}else"string"!=typeof e&&"number"!=typeof e||r.push(t(String(e)))}),r}function yt(e,t,o){if(!t)return null;const r=wt(t(o));return 1===r.length?r[0]:(D("getFirstSlotVNode",`slot[${e}] should have exactly one child`),null)}function xt(e,t=[],o){const r={};return t.forEach(t=>{r[t]=e[t]}),Object.assign(r,o)}function $t(e,...o){return"function"==typeof e?e(...o):"string"==typeof e?t(e):"number"==typeof e?t(String(e)):null}var St=Te(ce,"WeakMap"),Ct=E(Object.keys,Object),Mt=Object.prototype.hasOwnProperty;function zt(e){return te(e)?P(e):function(e){if(!Z(e))return Ct(e);var t=[];for(var o in Object(e))Mt.call(e,o)&&"constructor"!=o&&t.push(o);return t}(e)}var Ot=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,jt=/^\w*$/;function Tt(e,t){if(le(e))return!1;var o=typeof e;return!("number"!=o&&"symbol"!=o&&"boolean"!=o&&null!=e&&!Oe(e))||(jt.test(e)||!Ot.test(e)||null!=t&&e in Object(t))}function Et(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var o=function(){var r=arguments,n=t?t.apply(this,r):r[0],a=o.cache;if(a.has(n))return a.get(n);var l=e.apply(this,r);return o.cache=a.set(n,l)||a,l};return o.cache=new(Et.Cache||Y),o}Et.Cache=Y;var Bt,At,_t,kt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pt=/\\(\\)?/g,Wt=(Bt=function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(kt,function(e,o,r,n){t.push(r?n.replace(Pt,"$1"):o||e)}),t},At=Et(Bt,function(e){return 500===_t.size&&_t.clear(),e}),_t=At.cache,At);function Ht(e,t){return le(e)?e:Tt(e,t)?[e]:Wt(B(e))}function Rt(e){if("string"==typeof e||Oe(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ft(e,t){for(var o=0,r=(t=Ht(t,e)).length;null!=e&&o<r;)e=e[Rt(t[o++])];return o&&o==r?e:void 0}function Dt(e,t,o){var r=null==e?void 0:Ft(e,t);return void 0===r?o:r}var It=Object.prototype.propertyIsEnumerable,Lt=Object.getOwnPropertySymbols,Nt=Lt?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var o=-1,r=null==e?0:e.length,n=0,a=[];++o<r;){var l=e[o];t(l,o,e)&&(a[n++]=l)}return a}(Lt(e),function(t){return It.call(e,t)}))}:function(){return[]};function Xt(e){return function(e,t,o){var r=t(e);return le(e)?r:function(e,t){for(var o=-1,r=t.length,n=e.length;++o<r;)e[n+o]=t[o];return e}(r,o(e))}(e,zt,Nt)}var Yt=Te(ce,"DataView"),Vt=Te(ce,"Promise"),Ut=Te(ce,"Set"),qt="[object Map]",Kt="[object Promise]",Qt="[object Set]",Zt="[object WeakMap]",Gt="[object DataView]",Jt=xe(Yt),eo=xe(K),to=xe(Vt),oo=xe(Ut),ro=xe(St),no=we;(Yt&&no(new Yt(new ArrayBuffer(1)))!=Gt||K&&no(new K)!=qt||Vt&&no(Vt.resolve())!=Kt||Ut&&no(new Ut)!=Qt||St&&no(new St)!=Zt)&&(no=function(e){var t=we(e),o="[object Object]"==t?e.constructor:void 0,r=o?xe(o):"";if(r)switch(r){case Jt:return Gt;case eo:return qt;case to:return Kt;case oo:return Qt;case ro:return Zt}return t});var ao=no;function lo(e){var t=-1,o=null==e?0:e.length;for(this.__data__=new Y;++t<o;)this.add(e[t])}function io(e,t){for(var o=-1,r=null==e?0:e.length;++o<r;)if(t(e[o],o,e))return!0;return!1}function so(e,t){return e.has(t)}lo.prototype.add=lo.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},lo.prototype.has=function(e){return this.__data__.has(e)};function uo(e,t,o,r,n,a){var l=1&o,i=e.length,s=t.length;if(i!=s&&!(l&&s>i))return!1;var d=a.get(e),u=a.get(t);if(d&&u)return d==t&&u==e;var c=-1,p=!0,f=2&o?new lo:void 0;for(a.set(e,t),a.set(t,e);++c<i;){var h=e[c],v=t[c];if(r)var g=l?r(v,h,c,t,e,a):r(h,v,c,e,t,a);if(void 0!==g){if(g)continue;p=!1;break}if(f){if(!io(t,function(e,t){if(!so(f,t)&&(h===e||n(h,e,o,r,a)))return f.push(t)})){p=!1;break}}else if(h!==v&&!n(h,v,o,r,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function co(e){var t=-1,o=Array(e.size);return e.forEach(function(e,r){o[++t]=[r,e]}),o}function po(e){var t=-1,o=Array(e.size);return e.forEach(function(e){o[++t]=e}),o}var fo=Ee?Ee.prototype:void 0,ho=fo?fo.valueOf:void 0;var vo=Object.prototype.hasOwnProperty;var go="[object Arguments]",bo="[object Array]",mo="[object Object]",wo=Object.prototype.hasOwnProperty;function yo(e,t,o,r,n,a){var l=le(e),i=le(t),s=l?bo:ao(e),d=i?bo:ao(t),u=(s=s==go?mo:s)==mo,c=(d=d==go?mo:d)==mo,p=s==d;if(p&&k(e)){if(!k(t))return!1;l=!0,u=!1}if(p&&!u)return a||(a=new U),l||Ce(e)?uo(e,t,o,r,n,a):function(e,t,o,r,n,a,l){switch(o){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new C(e),new C(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return $(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var i=co;case"[object Set]":var s=1&r;if(i||(i=po),e.size!=t.size&&!s)return!1;var d=l.get(e);if(d)return d==t;r|=2,l.set(e,t);var u=uo(i(e),i(t),r,n,a,l);return l.delete(e),u;case"[object Symbol]":if(ho)return ho.call(e)==ho.call(t)}return!1}(e,t,s,o,r,n,a);if(!(1&o)){var f=u&&wo.call(e,"__wrapped__"),h=c&&wo.call(t,"__wrapped__");if(f||h){var v=f?e.value():e,g=h?t.value():t;return a||(a=new U),n(v,g,o,r,a)}}return!!p&&(a||(a=new U),function(e,t,o,r,n,a){var l=1&o,i=Xt(e),s=i.length;if(s!=Xt(t).length&&!l)return!1;for(var d=s;d--;){var u=i[d];if(!(l?u in t:vo.call(t,u)))return!1}var c=a.get(e),p=a.get(t);if(c&&p)return c==t&&p==e;var f=!0;a.set(e,t),a.set(t,e);for(var h=l;++d<s;){var v=e[u=i[d]],g=t[u];if(r)var b=l?r(g,v,u,t,e,a):r(v,g,u,e,t,a);if(!(void 0===b?v===g||n(v,g,o,r,a):b)){f=!1;break}h||(h="constructor"==u)}if(f&&!h){var m=e.constructor,w=t.constructor;m==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof m&&m instanceof m&&"function"==typeof w&&w instanceof w||(f=!1)}return a.delete(e),a.delete(t),f}(e,t,o,r,n,a))}function xo(e,t,o,r,n){return e===t||(null==e||null==t||!ue(e)&&!ue(t)?e!=e&&t!=t:yo(e,t,o,r,xo,n))}function $o(e){return e==e&&!be(e)}function So(e,t){return function(o){return null!=o&&(o[e]===t&&(void 0!==t||e in Object(o)))}}function Co(e){var t=function(e){for(var t=zt(e),o=t.length;o--;){var r=t[o],n=e[r];t[o]=[r,n,$o(n)]}return t}(e);return 1==t.length&&t[0][2]?So(t[0][0],t[0][1]):function(o){return o===e||function(e,t,o,r){var n=o.length,a=n,l=!r;if(null==e)return!a;for(e=Object(e);n--;){var i=o[n];if(l&&i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++n<a;){var s=(i=o[n])[0],d=e[s],u=i[1];if(l&&i[2]){if(void 0===d&&!(s in e))return!1}else{var c=new U;if(r)var p=r(d,u,s,e,t,c);if(!(void 0===p?xo(u,d,3,r,c):p))return!1}}return!0}(o,e,t)}}function Mo(e,t){return null!=e&&t in Object(e)}function zo(e,t){return null!=e&&function(e,t,o){for(var r=-1,n=(t=Ht(t,e)).length,a=!1;++r<n;){var l=Rt(t[r]);if(!(a=null!=e&&o(e,l)))break;e=e[l]}return a||++r!=n?a:!!(n=null==e?0:e.length)&&I(n)&&pe(l,n)&&(le(e)||J(e))}(e,t,Mo)}function Oo(e){return Tt(e)?(t=Rt(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return Ft(t,e)}}(e);var t}function jo(e){return"function"==typeof e?e:null==e?ze:"object"==typeof e?le(e)?(t=e[0],o=e[1],Tt(t)&&$o(o)?So(Rt(t),o):function(e){var r=Dt(e,t);return void 0===r&&r===o?zo(e,t):xo(o,r,3)}):Co(e):Oo(e);var t,o}var To,Eo,Bo=(To=function(e,t){return e&&Pe(e,t,zt)},function(e,t){if(null==e)return e;if(!te(e))return To(e,t);for(var o=e.length,r=Eo?o:-1,n=Object(e);(Eo?r--:++r<o)&&!1!==t(n[r],r,n););return e});function Ao(e,t){var o=-1,r=te(e)?Array(e.length):[];return Bo(e,function(e,n,a){r[++o]=t(e,n,a)}),r}var _o=e({name:"Eye",render:()=>a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},a("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),a("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}),ko={height:"calc(var(--n-option-height) * 7.6)",paddingTiny:"4px 0",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingTiny:"0 12px",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"};function Po(e){const{borderRadius:t,popoverColor:o,textColor3:r,dividerColor:n,textColor2:a,primaryColorPressed:l,textColorDisabled:i,primaryColor:s,opacityDisabled:d,hoverColor:u,fontSizeTiny:c,fontSizeSmall:p,fontSizeMedium:f,fontSizeLarge:h,fontSizeHuge:v,heightTiny:g,heightSmall:b,heightMedium:m,heightLarge:w,heightHuge:y}=e;return Object.assign(Object.assign({},ko),{optionFontSizeTiny:c,optionFontSizeSmall:p,optionFontSizeMedium:f,optionFontSizeLarge:h,optionFontSizeHuge:v,optionHeightTiny:g,optionHeightSmall:b,optionHeightMedium:m,optionHeightLarge:w,optionHeightHuge:y,borderRadius:t,color:o,groupHeaderTextColor:r,actionDividerColor:n,optionTextColor:a,optionTextColorPressed:l,optionTextColorDisabled:i,optionTextColorActive:s,optionOpacityDisabled:d,optionCheckColor:s,optionColorPending:u,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:u,actionTextColor:a,loadingColor:s})}var Wo=H({name:"InternalSelectMenu",common:z,peers:{Scrollbar:_e,Empty:re},self:Po}),{cubicBezierEaseIn:Ho,cubicBezierEaseOut:Ro}=T;function Fo({transformOrigin:e="inherit",duration:t=".2s",enterScale:o=".9",originalTransform:r="",originalTransition:n=""}={}){return[ve("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${Ho}, transform ${t} ${Ho} ${n&&`,${n}`}`}),ve("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${Ro}, transform ${t} ${Ro} ${n&&`,${n}`}`}),ve("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${r} scale(${o})`}),ve("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${r} scale(1)`})]}var Do={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"};function Io(e){const{boxShadow2:t,popoverColor:o,textColor2:r,borderRadius:n,fontSize:a,dividerColor:l}=e;return Object.assign(Object.assign({},Do),{fontSize:a,borderRadius:n,color:o,dividerColor:l,textColor:r,boxShadow:t})}var Lo,No,Xo=H({name:"Popover",common:z,peers:{Scrollbar:_e},self:Io}),Yo={top:"bottom",bottom:"top",left:"right",right:"left"},Vo="var(--n-arrow-height) * 1.414",Uo=ve([fe("popover","\n transition:\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n position: relative;\n font-size: var(--n-font-size);\n color: var(--n-text-color);\n box-shadow: var(--n-box-shadow);\n word-break: break-word;\n ",[ve(">",[fe("scrollbar","\n height: inherit;\n max-height: inherit;\n ")]),se("raw","\n background-color: var(--n-color);\n border-radius: var(--n-border-radius);\n ",[se("scrollable",[se("show-header-or-footer","padding: var(--n-padding);")])]),Be("header","\n padding: var(--n-padding);\n border-bottom: 1px solid var(--n-divider-color);\n transition: border-color .3s var(--n-bezier);\n "),Be("footer","\n padding: var(--n-padding);\n border-top: 1px solid var(--n-divider-color);\n transition: border-color .3s var(--n-bezier);\n "),ke("scrollable, show-header-or-footer",[Be("content","\n padding: var(--n-padding);\n ")])]),fe("popover-shared","\n transform-origin: inherit;\n ",[fe("popover-arrow-wrapper","\n position: absolute;\n overflow: hidden;\n pointer-events: none;\n ",[fe("popover-arrow",`\n transition: background-color .3s var(--n-bezier);\n position: absolute;\n display: block;\n width: calc(${Vo});\n height: calc(${Vo});\n box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12);\n transform: rotate(45deg);\n background-color: var(--n-color);\n pointer-events: all;\n `)]),ve("&.popover-transition-enter-from, &.popover-transition-leave-to","\n opacity: 0;\n transform: scale(.85);\n "),ve("&.popover-transition-enter-to, &.popover-transition-leave-from","\n transform: scale(1);\n opacity: 1;\n "),ve("&.popover-transition-enter-active","\n transition:\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier),\n opacity .15s var(--n-bezier-ease-out),\n transform .15s var(--n-bezier-ease-out);\n "),ve("&.popover-transition-leave-active","\n transition:\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier),\n opacity .15s var(--n-bezier-ease-in),\n transform .15s var(--n-bezier-ease-in);\n ")]),Ko("top-start",`\n top: calc(${Vo} / -2);\n left: calc(${qo("top-start")} - var(--v-offset-left));\n `),Ko("top",`\n top: calc(${Vo} / -2);\n transform: translateX(calc(${Vo} / -2)) rotate(45deg);\n left: 50%;\n `),Ko("top-end",`\n top: calc(${Vo} / -2);\n right: calc(${qo("top-end")} + var(--v-offset-left));\n `),Ko("bottom-start",`\n bottom: calc(${Vo} / -2);\n left: calc(${qo("bottom-start")} - var(--v-offset-left));\n `),Ko("bottom",`\n bottom: calc(${Vo} / -2);\n transform: translateX(calc(${Vo} / -2)) rotate(45deg);\n left: 50%;\n `),Ko("bottom-end",`\n bottom: calc(${Vo} / -2);\n right: calc(${qo("bottom-end")} + var(--v-offset-left));\n `),Ko("left-start",`\n left: calc(${Vo} / -2);\n top: calc(${qo("left-start")} - var(--v-offset-top));\n `),Ko("left",`\n left: calc(${Vo} / -2);\n transform: translateY(calc(${Vo} / -2)) rotate(45deg);\n top: 50%;\n `),Ko("left-end",`\n left: calc(${Vo} / -2);\n bottom: calc(${qo("left-end")} + var(--v-offset-top));\n `),Ko("right-start",`\n right: calc(${Vo} / -2);\n top: calc(${qo("right-start")} - var(--v-offset-top));\n `),Ko("right",`\n right: calc(${Vo} / -2);\n transform: translateY(calc(${Vo} / -2)) rotate(45deg);\n top: 50%;\n `),Ko("right-end",`\n right: calc(${Vo} / -2);\n bottom: calc(${qo("right-end")} + var(--v-offset-top));\n `),...(Lo={top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},No=(e,t)=>{const o=["right","left"].includes(t),r=o?"width":"height";return e.map(e=>{const n="end"===e.split("-")[1],a=`calc((var(--v-target-${r}, 0px) - ${Vo}) / 2)`,l=qo(e);return ve(`[v-placement="${e}"] >`,[fe("popover-shared",[ke("center-arrow",[fe("popover-arrow",`${t}: calc(max(${a}, ${l}) ${n?"+":"-"} var(--v-offset-${o?"left":"top"}));`)])])])})},(le(Lo)?$e:Ao)(Lo,jo(No)))]);function qo(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function Ko(e,t){const o=e.split("-")[0],r=["top","bottom"].includes(o)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return ve(`[v-placement="${e}"] >`,[fe("popover-shared",`\n margin-${Yo[o]}: var(--n-space);\n `,[ke("show-arrow",`\n margin-${Yo[o]}: var(--n-space-arrow);\n `),ke("overlap","\n margin: 0;\n "),ne("popover-arrow-wrapper",`\n right: 0;\n left: 0;\n top: 0;\n bottom: 0;\n ${o}: 100%;\n ${Yo[o]}: auto;\n ${r}\n `,[fe("popover-arrow",t)])])])}var Qo=Object.assign(Object.assign({},R.props),{to:Ze.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number});function Zo({arrowClass:e,arrowStyle:t,arrowWrapperClass:o,arrowWrapperStyle:r,clsPrefix:n}){return a("div",{key:"__popover-arrow__",style:r,class:[`${n}-popover-arrow-wrapper`,o]},a("div",{class:[`${n}-popover-arrow`,e],style:t}))}var Go=e({name:"PopoverBody",inheritAttrs:!1,props:Qo,setup(e,{slots:t,attrs:n}){const{namespaceRef:s,mergedClsPrefixRef:h,inlineThemeDisabled:v,mergedRtlRef:g}=he(e),w=R("Popover","-popover",Uo,Xo,e,h),y=A("Popover",g,h),$=b(null),S=l("NPopover"),C=b(null),M=b(e.show),z=b(!1);i(()=>{const{show:t}=e;!t||(void 0===gt&&(gt=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),gt)||e.internalDeactivateImmediately||(z.value=!0)});const j=u(()=>{const{trigger:t,onClickoutside:o}=e,r=[],{positionManuallyRef:{value:n}}=S;return n||("click"!==t||o||r.push([We,W,void 0,{capture:!0}]),"hover"===t&&r.push([at,P])),o&&r.push([We,W,void 0,{capture:!0}]),("show"===e.displayDirective||e.animated&&z.value)&&r.push([p,e.show]),r}),T=u(()=>{const{common:{cubicBezierEaseInOut:e,cubicBezierEaseIn:t,cubicBezierEaseOut:o},self:{space:r,spaceArrow:n,padding:a,fontSize:l,textColor:i,dividerColor:s,color:d,boxShadow:u,borderRadius:c,arrowHeight:p,arrowOffset:f,arrowOffsetVertical:h}}=w.value;return{"--n-box-shadow":u,"--n-bezier":e,"--n-bezier-ease-in":t,"--n-bezier-ease-out":o,"--n-font-size":l,"--n-text-color":i,"--n-color":d,"--n-divider-color":s,"--n-border-radius":c,"--n-arrow-height":p,"--n-arrow-offset":f,"--n-arrow-offset-vertical":h,"--n-padding":a,"--n-space":r,"--n-space-arrow":n}}),E=u(()=>{const t="trigger"===e.width?void 0:me(e.width),o=[];t&&o.push({width:t});const{maxWidth:r,minWidth:n}=e;return r&&o.push({maxWidth:me(r)}),n&&o.push({maxWidth:me(n)}),v||o.push(T.value),o}),B=v?ge("popover",void 0,T,e):void 0;function _(t){"hover"===e.trigger&&e.keepAliveOnHover&&e.show&&S.handleMouseEnter(t)}function k(t){"hover"===e.trigger&&e.keepAliveOnHover&&S.handleMouseLeave(t)}function P(t){"hover"!==e.trigger||H().contains(Se(t))||S.handleMouseMoveOutside(t)}function W(t){("click"===e.trigger&&!H().contains(Se(t))||e.onClickoutside)&&S.handleClickOutside(t)}function H(){return S.getTriggerElement()}return S.setBodyInstance({syncPosition:function(){var e;null===(e=$.value)||void 0===e||e.syncPosition()}}),x(()=>{S.setBodyInstance(null)}),d(c(e,"show"),t=>{e.animated||(M.value=!!t)}),r(V,C),r(Me,null),r(Q,null),{displayed:z,namespace:s,isMounted:S.isMountedRef,zIndex:S.zIndexRef,followerRef:$,adjustedTo:Ze(e),followerEnabled:M,renderContentNode:function(){if(null==B||B.onRender(),!("show"===e.displayDirective||e.show||e.animated&&z.value))return null;let r;const l=S.internalRenderBodyRef.value,{value:i}=h;if(l)r=l([`${i}-popover-shared`,(null==y?void 0:y.value)&&`${i}-popover--rtl`,null==B?void 0:B.themeClass.value,e.overlap&&`${i}-popover-shared--overlap`,e.showArrow&&`${i}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${i}-popover-shared--center-arrow`],C,E.value,_,k);else{const{value:l}=S.extraClassRef,{internalTrapFocus:s}=e,d=!de(t.header)||!de(t.footer),u=()=>{var o,r;const n=d?a(f,null,O(t.header,t=>t?a("div",{class:[`${i}-popover__header`,e.headerClass],style:e.headerStyle},t):null),O(t.default,o=>o?a("div",{class:[`${i}-popover__content`,e.contentClass],style:e.contentStyle},t):null),O(t.footer,t=>t?a("div",{class:[`${i}-popover__footer`,e.footerClass],style:e.footerStyle},t):null)):e.scrollable?null===(o=t.default)||void 0===o?void 0:o.call(t):a("div",{class:[`${i}-popover__content`,e.contentClass],style:e.contentStyle},t);return[e.scrollable?a(ie,{themeOverrides:w.value.peerOverrides.Scrollbar,theme:w.value.peers.Scrollbar,contentClass:d?void 0:`${i}-popover__content ${null!==(r=e.contentClass)&&void 0!==r?r:""}`,contentStyle:d?void 0:e.contentStyle},{default:()=>n}):n,e.showArrow?Zo({arrowClass:e.arrowClass,arrowStyle:e.arrowStyle,arrowWrapperClass:e.arrowWrapperClass,arrowWrapperStyle:e.arrowWrapperStyle,clsPrefix:i}):null]};r=a("div",o({class:[`${i}-popover`,`${i}-popover-shared`,(null==y?void 0:y.value)&&`${i}-popover--rtl`,null==B?void 0:B.themeClass.value,l.map(e=>`${i}-${e}`),{[`${i}-popover--scrollable`]:e.scrollable,[`${i}-popover--show-header-or-footer`]:d,[`${i}-popover--raw`]:e.raw,[`${i}-popover-shared--overlap`]:e.overlap,[`${i}-popover-shared--show-arrow`]:e.showArrow,[`${i}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:C,style:E.value,onKeydown:S.handleKeydown,onMouseenter:_,onMouseleave:k},n),s?a(F,{active:e.show,autoFocus:!0},{default:u}):u())}return m(r,j.value)}}},render(){return a(mt,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:"trigger"===this.width?"target":void 0,teleportDisabled:this.adjustedTo===Ze.tdkey},{default:()=>this.animated?a(g,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;null===(e=this.internalOnAfterLeave)||void 0===e||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),Jo=Object.keys(Qo),er={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};var tr={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:Ze.propTo,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},or=e({name:"Popover",inheritAttrs:!1,props:Object.assign(Object.assign(Object.assign({},R.props),tr),{internalOnAfterLeave:Function,internalRenderBody:Function}),slots:Object,__popover__:!0,setup(e){const t=oe(),o=b(null),n=u(()=>e.show),a=b(e.defaultShow),l=L(n,a),s=S(()=>!e.disabled&&l.value),d=()=>{if(e.disabled)return!0;const{getDisabled:t}=e;return!!(null==t?void 0:t())},p=()=>!d()&&l.value,f=G(e,["arrow","showArrow"]),h=u(()=>!e.overlap&&f.value);let v=null;const g=b(null),m=b(null),w=S(()=>void 0!==e.x&&void 0!==e.y);function y(t){const{"onUpdate:show":o,onUpdateShow:r,onShow:n,onHide:l}=e;a.value=t,o&&X(o,t),r&&X(r,t),t&&n&&X(n,!0),t&&l&&X(l,!1)}function x(){const{value:e}=g;e&&(window.clearTimeout(e),g.value=null)}function $(){const{value:e}=m;e&&(window.clearTimeout(e),m.value=null)}function C(){const t=d();if("hover"===e.trigger&&!t){if($(),null!==g.value)return;if(p())return;const t=()=>{y(!0),g.value=null},{delay:o}=e;0===o?t():g.value=window.setTimeout(t,o)}}function M(){const t=d();if("hover"===e.trigger&&!t){if(x(),null!==m.value)return;if(!p())return;const t=()=>{y(!1),m.value=null},{duration:o}=e;0===o?t():m.value=window.setTimeout(t,o)}}return r("NPopover",{getTriggerElement:function(){var e;return null===(e=o.value)||void 0===e?void 0:e.targetRef},handleKeydown:function(t){e.internalTrapFocus&&"Escape"===t.key&&(x(),$(),y(!1))},handleMouseEnter:C,handleMouseLeave:M,handleClickOutside:function(t){var o;p()&&("click"===e.trigger&&(x(),$(),y(!1)),null===(o=e.onClickoutside)||void 0===o||o.call(e,t))},handleMouseMoveOutside:function(){M()},setBodyInstance:function(e){v=e},positionManuallyRef:w,isMountedRef:t,zIndexRef:c(e,"zIndex"),extraClassRef:c(e,"internalExtraClass"),internalRenderBodyRef:c(e,"internalRenderBody")}),i(()=>{l.value&&d()&&y(!1)}),{binderInstRef:o,positionManually:w,mergedShowConsideringDisabledProp:s,uncontrolledShow:a,mergedShowArrow:h,getMergedShow:p,setShow:function(e){a.value=e},handleClick:function(){"click"!==e.trigger||d()||(x(),$(),y(!p()))},handleMouseEnter:C,handleMouseLeave:M,handleFocus:function(){const t=d();if("focus"===e.trigger&&!t){if(p())return;y(!0)}},handleBlur:function(){const t=d();if("focus"===e.trigger&&!t){if(!p())return;y(!1)}},syncPosition:function(){v&&v.syncPosition()}}},render(){var e;const{positionManually:t,$slots:o}=this;let r,n=!1;if(!t&&(r=function(e,t="default",o){const r=e[t];if(!r)return D("getFirstSlotVNode",`slot[${t}] is empty`),null;const n=wt(r(o));return 1===n.length?n[0]:(D("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}(o,"trigger"),r)){r=y(r),r=r.type===w?a("span",[r]):r;const o={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(null===(e=r.type)||void 0===e?void 0:e.__popover__)n=!0,r.props||(r.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),r.props.internalSyncTargetWithParent=!0,r.props.internalInheritedEventHandlers?r.props.internalInheritedEventHandlers=[o,...r.props.internalInheritedEventHandlers]:r.props.internalInheritedEventHandlers=[o];else{const{internalInheritedEventHandlers:e}=this,n=[o,...e];l=r,i=e?"nested":t?"manual":this.trigger,s={onBlur:e=>{n.forEach(t=>{t.onBlur(e)})},onFocus:e=>{n.forEach(t=>{t.onFocus(e)})},onClick:e=>{n.forEach(t=>{t.onClick(e)})},onMouseenter:e=>{n.forEach(t=>{t.onMouseenter(e)})},onMouseleave:e=>{n.forEach(t=>{t.onMouseleave(e)})}},er[i].forEach(e=>{l.props?l.props=Object.assign({},l.props):l.props={};const t=l.props[e],o=s[e];l.props[e]=t?(...e)=>{t(...e),o(...e)}:o})}}var l,i,s;return a(ot,{ref:"binderInstRef",syncTarget:!n,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const e=this.getMergedShow();return[this.internalTrapFocus&&e?m(a("div",{style:{position:"fixed",top:0,right:0,bottom:0,left:0}}),[[N,{enabled:e,zIndex:this.zIndex}]]):null,t?null:a(rt,null,{default:()=>r}),a(Go,xt(this.$props,Jo,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:e})),{default:()=>{var e,t;return null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)},header:()=>{var e,t;return null===(t=(e=this.$slots).header)||void 0===t?void 0:t.call(e)},footer:()=>{var e,t;return null===(t=(e=this.$slots).footer)||void 0===t?void 0:t.call(e)}})]}})}}),rr={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"};var nr=H({name:"InternalSelection",common:z,peers:{Popover:Xo},self:function(e){const{borderRadius:t,textColor2:o,textColorDisabled:r,inputColor:n,inputColorDisabled:a,primaryColor:l,primaryColorHover:i,warningColor:s,warningColorHover:d,errorColor:u,errorColorHover:c,borderColor:p,iconColor:f,iconColorDisabled:h,clearColor:v,clearColorHover:g,clearColorPressed:b,placeholderColor:m,placeholderColorDisabled:w,fontSizeTiny:y,fontSizeSmall:x,fontSizeMedium:$,fontSizeLarge:S,heightTiny:C,heightSmall:M,heightMedium:z,heightLarge:O,fontWeight:j}=e;return Object.assign(Object.assign({},rr),{fontSizeTiny:y,fontSizeSmall:x,fontSizeMedium:$,fontSizeLarge:S,heightTiny:C,heightSmall:M,heightMedium:z,heightLarge:O,borderRadius:t,fontWeight:j,textColor:o,textColorDisabled:r,placeholderColor:m,placeholderColorDisabled:w,color:n,colorDisabled:a,colorActive:n,border:`1px solid ${p}`,borderHover:`1px solid ${i}`,borderActive:`1px solid ${l}`,borderFocus:`1px solid ${i}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${ae(l,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${ae(l,{alpha:.2})}`,caretColor:l,arrowColor:f,arrowColorDisabled:h,loadingColor:l,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${d}`,borderActiveWarning:`1px solid ${s}`,borderFocusWarning:`1px solid ${d}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 0 2px ${ae(s,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${ae(s,{alpha:.2})}`,colorActiveWarning:n,caretColorWarning:s,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${c}`,borderActiveError:`1px solid ${u}`,borderFocusError:`1px solid ${c}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${ae(u,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${ae(u,{alpha:.2})}`,colorActiveError:n,caretColorError:u,clearColor:v,clearColorHover:g,clearColorPressed:b})}}),ar={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"};var lr=H({name:"Input",common:z,peers:{Scrollbar:_e},self:function(e){const{textColor2:t,textColor3:o,textColorDisabled:r,primaryColor:n,primaryColorHover:a,inputColor:l,inputColorDisabled:i,borderColor:s,warningColor:d,warningColorHover:u,errorColor:c,errorColorHover:p,borderRadius:f,lineHeight:h,fontSizeTiny:v,fontSizeSmall:g,fontSizeMedium:b,fontSizeLarge:m,heightTiny:w,heightSmall:y,heightMedium:x,heightLarge:$,actionColor:S,clearColor:C,clearColorHover:M,clearColorPressed:z,placeholderColor:O,placeholderColorDisabled:j,iconColor:T,iconColorDisabled:E,iconColorHover:B,iconColorPressed:A,fontWeight:_}=e;return Object.assign(Object.assign({},ar),{fontWeight:_,countTextColorDisabled:r,countTextColor:o,heightTiny:w,heightSmall:y,heightMedium:x,heightLarge:$,fontSizeTiny:v,fontSizeSmall:g,fontSizeMedium:b,fontSizeLarge:m,lineHeight:h,lineHeightTextarea:h,borderRadius:f,iconSize:"16px",groupLabelColor:S,groupLabelTextColor:t,textColor:t,textColorDisabled:r,textDecorationColor:t,caretColor:n,placeholderColor:O,placeholderColorDisabled:j,color:l,colorDisabled:i,colorFocus:l,groupLabelBorder:`1px solid ${s}`,border:`1px solid ${s}`,borderHover:`1px solid ${a}`,borderDisabled:`1px solid ${s}`,borderFocus:`1px solid ${a}`,boxShadowFocus:`0 0 0 2px ${ae(n,{alpha:.2})}`,loadingColor:n,loadingColorWarning:d,borderWarning:`1px solid ${d}`,borderHoverWarning:`1px solid ${u}`,colorFocusWarning:l,borderFocusWarning:`1px solid ${u}`,boxShadowFocusWarning:`0 0 0 2px ${ae(d,{alpha:.2})}`,caretColorWarning:d,loadingColorError:c,borderError:`1px solid ${c}`,borderHoverError:`1px solid ${p}`,colorFocusError:l,borderFocusError:`1px solid ${p}`,boxShadowFocusError:`0 0 0 2px ${ae(c,{alpha:.2})}`,caretColorError:c,clearColor:C,clearColorHover:M,clearColorPressed:z,iconColor:T,iconColorDisabled:E,iconColorHover:B,iconColorPressed:A,suffixTextColor:t})}});function ir(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}var sr=H({name:"Select",common:z,peers:{InternalSelection:nr,InternalSelectMenu:Wo},self:ir}),dr=ee("n-message-api"),ur=ee("n-message-provider");function cr(){const e=l(dr,null);return null===e&&j("use-message","No outer <n-message-provider /> founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}export{Ke as A,wt as C,rt as D,it as E,De as F,Ue as M,Ie as N,ot as O,Ve as P,yt as S,lt as T,Po as _,ir as a,$t as b,nr as c,tr as d,Zo as f,Wo as g,Fo as h,sr as i,qe as j,Ze as k,rr as l,Io as m,dr as n,lr as o,Xo as p,ur as r,ar as s,cr as t,or as u,_o as v,mt as w,xt as x,Dt as y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as e,F as t,G as n,H as r,M as o,N as i,Q as a,V as s,Z as l,b as d,dt as c,f as u,l as h,st as m,tt as v,z as b}from"./vue-vendor-Cr_NLmXY.js";import{F as f,I as p,It as g,Jt as w,N as y,Nt as z,Qt as $,Rt as x,Tt as S,Ut as k,Wt as C,Zt as E,gn as B,gt as F,hn as M,ht as R,jt as H,kt as O,qt as W,vn as A,w as T,y as D,yn as N,zt as P}from"./_plugin-vue_export-helper-DyHLuIR4.js";import{n as U,t as j}from"./use-lock-html-scroll-Bu94jdUB.js";import{W as L}from"./index-BXWpib7P.js";var I=e({name:"NDrawerContent",inheritAttrs:!1,props:{blockScroll:Boolean,show:{type:Boolean,default:void 0},displayDirective:{type:String,required:!0},placement:{type:String,required:!0},contentClass:String,contentStyle:[Object,String],nativeScrollbar:{type:Boolean,required:!0},scrollbarProps:Object,trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},showMask:{type:[Boolean,String],required:!0},maxWidth:Number,maxHeight:Number,minWidth:Number,minHeight:Number,resizable:Boolean,onClickoutside:Function,onAfterLeave:Function,onAfterEnter:Function,onEsc:Function},setup(e){const t=m(!!e.show),r=m(null),o=i(w);let s=0,c="",h=null;const v=m(!1),f=m(!1),g=d(()=>"top"===e.placement||"bottom"===e.placement),{mergedClsPrefixRef:y,mergedRtlRef:z}=F(e),$=p("Drawer",z,y),x=M,{doUpdateHeight:S,doUpdateWidth:E}=o;function B(t){var n,o;if(f.value)if(g.value){let o=(null===(n=r.value)||void 0===n?void 0:n.offsetHeight)||0;const i=s-t.clientY;o+="bottom"===e.placement?i:-i,o=(t=>{const{maxHeight:n}=e;if(n&&t>n)return n;const{minHeight:r}=e;return r&&t<r?r:t})(o),S(o),s=t.clientY}else{let n=(null===(o=r.value)||void 0===o?void 0:o.offsetWidth)||0;const i=s-t.clientX;n+="right"===e.placement?i:-i,n=(t=>{const{maxWidth:n}=e;if(n&&t>n)return n;const{minWidth:r}=e;return r&&t<r?r:t})(n),E(n),s=t.clientX}}function M(){f.value&&(s=0,f.value=!1,document.body.style.cursor=c,document.body.removeEventListener("mousemove",B),document.body.removeEventListener("mouseup",M),document.body.removeEventListener("mouseleave",x))}a(()=>{e.show&&(t.value=!0)}),l(()=>e.show,e=>{e||M()}),b(()=>{M()});const R=d(()=>{const{show:t}=e,n=[[u,t]];return e.showMask||n.push([P,e.onClickoutside,void 0,{capture:!0}]),n});return j(d(()=>e.blockScroll&&t.value)),n(W,r),n(k,null),n(C,null),{bodyRef:r,rtlEnabled:$,mergedClsPrefix:o.mergedClsPrefixRef,isMounted:o.isMountedRef,mergedTheme:o.mergedThemeRef,displayed:t,transitionName:d(()=>({right:"slide-in-from-right-transition",left:"slide-in-from-left-transition",top:"slide-in-from-top-transition",bottom:"slide-in-from-bottom-transition"}[e.placement])),handleAfterLeave:function(){var n;t.value=!1,null===(n=e.onAfterLeave)||void 0===n||n.call(e)},bodyDirectives:R,handleMousedownResizeTrigger:e=>{f.value=!0,s=g.value?e.clientY:e.clientX,c=document.body.style.cursor,document.body.style.cursor=g.value?"ns-resize":"ew-resize",document.body.addEventListener("mousemove",B),document.body.addEventListener("mouseleave",x),document.body.addEventListener("mouseup",M)},handleMouseenterResizeTrigger:()=>{null!==h&&(window.clearTimeout(h),h=null),f.value?v.value=!0:h=window.setTimeout(()=>{v.value=!0},300)},handleMouseleaveResizeTrigger:()=>{null!==h&&(window.clearTimeout(h),h=null),v.value=!1},isDragging:f,isHoverOnResizeTrigger:v}},render(){const{$slots:e,mergedClsPrefix:n}=this;return"show"===this.displayDirective||this.displayed||this.show?v(o("div",{role:"none"},o(z,{disabled:!this.showMask||!this.trapFocus,active:this.show,autoFocus:this.autoFocus,onEsc:this.onEsc},{default:()=>o(h,{name:this.transitionName,appear:this.isMounted,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>v(o("div",t(this.$attrs,{role:"dialog",ref:"bodyRef","aria-modal":"true",class:[`${n}-drawer`,this.rtlEnabled&&`${n}-drawer--rtl`,`${n}-drawer--${this.placement}-placement`,this.isDragging&&`${n}-drawer--unselectable`,this.nativeScrollbar&&`${n}-drawer--native-scrollbar`]}),[this.resizable?o("div",{class:[`${n}-drawer__resize-trigger`,(this.isDragging||this.isHoverOnResizeTrigger)&&`${n}-drawer__resize-trigger--hover`],onMouseenter:this.handleMouseenterResizeTrigger,onMouseleave:this.handleMouseleaveResizeTrigger,onMousedown:this.handleMousedownResizeTrigger}):null,this.nativeScrollbar?o("div",{class:[`${n}-drawer-content-wrapper`,this.contentClass],style:this.contentStyle,role:"none"},e):o(D,Object.assign({},this.scrollbarProps,{contentStyle:this.contentStyle,contentClass:[`${n}-drawer-content-wrapper`,this.contentClass],theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar}),e)]),this.bodyDirectives)})})),[[u,"if"===this.displayDirective||this.displayed||this.show]]):null}}),{cubicBezierEaseIn:X,cubicBezierEaseOut:Y}=f;var{cubicBezierEaseIn:_,cubicBezierEaseOut:q}=f;var{cubicBezierEaseIn:V,cubicBezierEaseOut:Q}=f;var{cubicBezierEaseIn:Z,cubicBezierEaseOut:G}=f;var J=M([B("drawer","\n word-break: break-word;\n line-height: var(--n-line-height);\n position: absolute;\n pointer-events: all;\n box-shadow: var(--n-box-shadow);\n transition:\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n background-color: var(--n-color);\n color: var(--n-text-color);\n box-sizing: border-box;\n ",[function({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-right"}={}){return[M(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${V}`}),M(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${Q}`}),M(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),M(`&.${n}-transition-enter-from`,{transform:"translateX(100%)"}),M(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),M(`&.${n}-transition-leave-to`,{transform:"translateX(100%)"})]}(),function({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-left"}={}){return[M(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${_}`}),M(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${q}`}),M(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),M(`&.${n}-transition-enter-from`,{transform:"translateX(-100%)"}),M(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),M(`&.${n}-transition-leave-to`,{transform:"translateX(-100%)"})]}(),function({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-top"}={}){return[M(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${Z}`}),M(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${G}`}),M(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),M(`&.${n}-transition-enter-from`,{transform:"translateY(-100%)"}),M(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),M(`&.${n}-transition-leave-to`,{transform:"translateY(-100%)"})]}(),function({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-bottom"}={}){return[M(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${X}`}),M(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${Y}`}),M(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),M(`&.${n}-transition-enter-from`,{transform:"translateY(100%)"}),M(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),M(`&.${n}-transition-leave-to`,{transform:"translateY(100%)"})]}(),N("unselectable","\n user-select: none; \n -webkit-user-select: none;\n "),N("native-scrollbar",[B("drawer-content-wrapper","\n overflow: auto;\n height: 100%;\n ")]),A("resize-trigger","\n position: absolute;\n background-color: #0000;\n transition: background-color .3s var(--n-bezier);\n ",[N("hover","\n background-color: var(--n-resize-trigger-color-hover);\n ")]),B("drawer-content-wrapper","\n box-sizing: border-box;\n "),B("drawer-content","\n height: 100%;\n display: flex;\n flex-direction: column;\n ",[N("native-scrollbar",[B("drawer-body-content-wrapper","\n height: 100%;\n overflow: auto;\n ")]),B("drawer-body","\n flex: 1 0 0;\n overflow: hidden;\n "),B("drawer-body-content-wrapper","\n box-sizing: border-box;\n padding: var(--n-body-padding);\n "),B("drawer-header","\n font-weight: var(--n-title-font-weight);\n line-height: 1;\n font-size: var(--n-title-font-size);\n color: var(--n-title-text-color);\n padding: var(--n-header-padding);\n transition: border .3s var(--n-bezier);\n border-bottom: 1px solid var(--n-divider-color);\n border-bottom: var(--n-header-border-bottom);\n display: flex;\n justify-content: space-between;\n align-items: center;\n ",[A("main","\n flex: 1;\n "),A("close","\n margin-left: 6px;\n transition:\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n ")]),B("drawer-footer","\n display: flex;\n justify-content: flex-end;\n border-top: var(--n-footer-border-top);\n transition: border .3s var(--n-bezier);\n padding: var(--n-footer-padding);\n ")]),N("right-placement","\n top: 0;\n bottom: 0;\n right: 0;\n border-top-left-radius: var(--n-border-radius);\n border-bottom-left-radius: var(--n-border-radius);\n ",[A("resize-trigger","\n width: 3px;\n height: 100%;\n top: 0;\n left: 0;\n transform: translateX(-1.5px);\n cursor: ew-resize;\n ")]),N("left-placement","\n top: 0;\n bottom: 0;\n left: 0;\n border-top-right-radius: var(--n-border-radius);\n border-bottom-right-radius: var(--n-border-radius);\n ",[A("resize-trigger","\n width: 3px;\n height: 100%;\n top: 0;\n right: 0;\n transform: translateX(1.5px);\n cursor: ew-resize;\n ")]),N("top-placement","\n top: 0;\n left: 0;\n right: 0;\n border-bottom-left-radius: var(--n-border-radius);\n border-bottom-right-radius: var(--n-border-radius);\n ",[A("resize-trigger","\n width: 100%;\n height: 3px;\n bottom: 0;\n left: 0;\n transform: translateY(1.5px);\n cursor: ns-resize;\n ")]),N("bottom-placement","\n left: 0;\n bottom: 0;\n right: 0;\n border-top-left-radius: var(--n-border-radius);\n border-top-right-radius: var(--n-border-radius);\n ",[A("resize-trigger","\n width: 100%;\n height: 3px;\n top: 0;\n left: 0;\n transform: translateY(-1.5px);\n cursor: ns-resize;\n ")])]),M("body",[M(">",[B("drawer-container","\n position: fixed;\n ")])]),B("drawer-container","\n position: relative;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n pointer-events: none;\n ",[M("> *","\n pointer-events: all;\n ")]),B("drawer-mask","\n background-color: rgba(0, 0, 0, .3);\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n ",[N("invisible","\n background-color: rgba(0, 0, 0, 0)\n "),T({enterDuration:"0.2s",leaveDuration:"0.2s",enterCubicBezier:"var(--n-bezier-in)",leaveCubicBezier:"var(--n-bezier-out)"})])]),K=e({name:"Drawer",inheritAttrs:!1,props:Object.assign(Object.assign({},y.props),{show:Boolean,width:[Number,String],height:[Number,String],placement:{type:String,default:"right"},maskClosable:{type:Boolean,default:!0},showMask:{type:[Boolean,String],default:!0},to:[String,Object],displayDirective:{type:String,default:"if"},nativeScrollbar:{type:Boolean,default:!0},zIndex:Number,onMaskClick:Function,scrollbarProps:Object,contentClass:String,contentStyle:[Object,String],trapFocus:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0},maxWidth:Number,maxHeight:Number,minWidth:Number,minHeight:Number,resizable:Boolean,defaultWidth:{type:[Number,String],default:251},defaultHeight:{type:[Number,String],default:251},onUpdateWidth:[Function,Array],onUpdateHeight:[Function,Array],"onUpdate:width":[Function,Array],"onUpdate:height":[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,drawerStyle:[String,Object],drawerClass:String,target:null,onShow:Function,onHide:Function}),setup(e){const{mergedClsPrefixRef:t,namespaceRef:r,inlineThemeDisabled:o}=F(e),i=E(),a=y("Drawer","-drawer",J,L,e,t),s=m(e.defaultWidth),l=m(e.defaultHeight),u=$(c(e,"width"),s),h=$(c(e,"height"),l),v=d(()=>{const{placement:t}=e;return"top"===t||"bottom"===t?"":H(u.value)}),b=d(()=>{const{placement:t}=e;return"left"===t||"right"===t?"":H(h.value)}),f=d(()=>[{width:v.value,height:b.value},e.drawerStyle||""]);function p(t){const{onMaskClick:n,maskClosable:r}=e;r&&z(!1),n&&n(t)}const g=U();function z(t){const{onHide:n,onUpdateShow:r,"onUpdate:show":o}=e;r&&S(r,t),o&&S(o,t),n&&!t&&S(n,t)}n(w,{isMountedRef:i,mergedThemeRef:a,mergedClsPrefixRef:t,doUpdateShow:z,doUpdateHeight:t=>{const{onUpdateHeight:n,"onUpdate:width":r}=e;n&&S(n,t),r&&S(r,t),l.value=t},doUpdateWidth:t=>{const{onUpdateWidth:n,"onUpdate:width":r}=e;n&&S(n,t),r&&S(r,t),s.value=t}});const x=d(()=>{const{common:{cubicBezierEaseInOut:e,cubicBezierEaseIn:t,cubicBezierEaseOut:n},self:{color:r,textColor:o,boxShadow:i,lineHeight:s,headerPadding:l,footerPadding:d,borderRadius:c,bodyPadding:u,titleFontSize:h,titleTextColor:m,titleFontWeight:v,headerBorderBottom:b,footerBorderTop:f,closeIconColor:p,closeIconColorHover:g,closeIconColorPressed:w,closeColorHover:y,closeColorPressed:z,closeIconSize:$,closeSize:x,closeBorderRadius:S,resizableTriggerColorHover:k}}=a.value;return{"--n-line-height":s,"--n-color":r,"--n-border-radius":c,"--n-text-color":o,"--n-box-shadow":i,"--n-bezier":e,"--n-bezier-out":n,"--n-bezier-in":t,"--n-header-padding":l,"--n-body-padding":u,"--n-footer-padding":d,"--n-title-text-color":m,"--n-title-font-size":h,"--n-title-font-weight":v,"--n-header-border-bottom":b,"--n-footer-border-top":f,"--n-close-icon-color":p,"--n-close-icon-color-hover":g,"--n-close-icon-color-pressed":w,"--n-close-size":x,"--n-close-color-hover":y,"--n-close-color-pressed":z,"--n-close-icon-size":$,"--n-close-border-radius":S,"--n-resize-trigger-color-hover":k}}),k=o?R("drawer",void 0,x,e):void 0;return{mergedClsPrefix:t,namespace:r,mergedBodyStyle:f,handleOutsideClick:function(e){p(e)},handleMaskClick:p,handleEsc:function(t){var n;null===(n=e.onEsc)||void 0===n||n.call(e),e.show&&e.closeOnEsc&&O(t)&&(g.value||z(!1))},mergedTheme:a,cssVars:o?void 0:x,themeClass:null==k?void 0:k.themeClass,onRender:null==k?void 0:k.onRender,isMounted:i}},render(){const{mergedClsPrefix:e}=this;return o(g,{to:this.to,show:this.show},{default:()=>{var t;return null===(t=this.onRender)||void 0===t||t.call(this),v(o("div",{class:[`${e}-drawer-container`,this.namespace,this.themeClass],style:this.cssVars,role:"none"},this.showMask?o(h,{name:"fade-in-transition",appear:this.isMounted},{default:()=>this.show?o("div",{"aria-hidden":!0,class:[`${e}-drawer-mask`,"transparent"===this.showMask&&`${e}-drawer-mask--invisible`],onClick:this.handleMaskClick}):null}):null,o(I,Object.assign({},this.$attrs,{class:[this.drawerClass,this.$attrs.class],style:[this.mergedBodyStyle,this.$attrs.style],blockScroll:this.blockScroll,contentStyle:this.contentStyle,contentClass:this.contentClass,placement:this.placement,scrollbarProps:this.scrollbarProps,show:this.show,displayDirective:this.displayDirective,nativeScrollbar:this.nativeScrollbar,onAfterEnter:this.onAfterEnter,onAfterLeave:this.onAfterLeave,trapFocus:this.trapFocus,autoFocus:this.autoFocus,resizable:this.resizable,maxHeight:this.maxHeight,minHeight:this.minHeight,maxWidth:this.maxWidth,minWidth:this.minWidth,showMask:this.showMask,onEsc:this.handleEsc,onClickoutside:this.handleOutsideClick}),this.$slots)),[[x,{zIndex:this.zIndex,enabled:this.show}]])}})}});function ee(e=520,t=null){const n=m("undefined"!=typeof window?window.innerWidth:1200),o=()=>{n.value=window.innerWidth};s(()=>{window.addEventListener("resize",o)}),r(()=>{window.removeEventListener("resize",o)});const i=d(()=>n.value<640),a=d(()=>n.value>=640&&n.value<1024);return{drawerWidth:d(()=>{if(n.value<640)return"100%";if(n.value<768)return Math.min(.95*n.value,e);if(n.value<1024){const r=t||e;return Math.min(.85*n.value,r)}return e}),isMobile:i,isTablet:a,windowWidth:n}}export{K as n,ee as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./rolldown-runtime-DcNxTHDL.js";import{A as t,I as n,J as r,M as o,u as i}from"./vue-vendor-Cr_NLmXY.js";function a(e,t){return function(){return e.apply(t,arguments)}}var s,{toString:l}=Object.prototype,{getPrototypeOf:c}=Object,{iterator:u,toStringTag:d}=Symbol,f=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),h=e=>"string"==typeof e&&("__proto__"===e||"constructor"===e||"prototype"===e),p=(e,t,n)=>e===Object.prototype||!n&&null===t,g=(e,t)=>{let n=e;const r=[];for(;null!=n;){if(-1!==r.indexOf(n))return!1;r.push(n);const o=c(n);if(p(n,o,n===e))return!1;if(f(n,t))return!0;n=o}return!1},m=(s=Object.create(null),e=>{const t=l.call(e);return s[t]||(s[t]=t.slice(8,-1).toLowerCase())}),b=e=>(e=e.toLowerCase(),t=>m(t)===e),v=e=>t=>typeof t===e,{isArray:y}=Array,w=v("undefined");function E(e){return null!==e&&!w(e)&&null!==e.constructor&&!w(e.constructor)&&_(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var O=b("ArrayBuffer");var S=v("string"),_=v("function"),R=v("number"),T=e=>null!==e&&"object"==typeof e,C=e=>{if(!T(e))return!1;const t=c(e);return(null===t||t===Object.prototype||null===c(t))&&(p(e,t,!0)||!f(e,d)&&!f(e,u))},A=b("Date"),D=b("File"),P=b("Blob"),x=b("FileList"),N=b("Set");var j="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},L=void 0!==j.FormData?j.FormData:void 0,I=b("URLSearchParams"),[U,F,k,B]=["ReadableStream","Request","Response","Headers"].map(b);function M(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),y(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(E(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}var q="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,z=e=>!w(e)&&e!==q;var $,X=($="undefined"!=typeof Uint8Array&&c(Uint8Array),e=>$&&e instanceof $),H=b("HTMLFormElement"),{propertyIsEnumerable:W}=Object.prototype,V=b("RegExp"),Y=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};M(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)};var J,K,G,Z,Q=b("AsyncFunction"),ee=(J="function"==typeof setImmediate,K=_(q.postMessage),J?setImmediate:K?(G=`axios@${Math.random()}`,Z=[],q.addEventListener("message",({source:e,data:t})=>{e===q&&t===G&&Z.length&&Z.shift()()},!1),e=>{Z.push(e),q.postMessage(G,"*")}):e=>setTimeout(e)),te="undefined"!=typeof queueMicrotask?queueMicrotask.bind(q):"undefined"!=typeof process&&process.nextTick||ee,ne=e=>null!=e&&_(e[u]),re={isArray:y,isArrayBuffer:O,isBuffer:E,isFormData:e=>{if(!e)return!1;if(L&&e instanceof L)return!0;const t=c(e);if(!t||t===Object.prototype)return!1;if(!_(e.append))return!1;const n=m(e);return"formdata"===n||"object"===n&&_(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&O(e.buffer),t},isString:S,isNumber:R,isBoolean:e=>!0===e||!1===e,isObject:T,isPlainObject:C,isEmptyObject:e=>{if(!T(e)||E(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},isReadableStream:U,isRequest:F,isResponse:k,isHeaders:B,isUndefined:w,isDate:A,isFile:D,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:P,isRegExp:V,isFunction:_,isStream:e=>T(e)&&_(e.pipe),isURLSearchParams:I,isTypedArray:X,isFileList:x,forEach:M,merge:function e(...t){const{caseless:n,skipUndefined:r}=z(this)&&this||{},o={},i=n?Object.create(null):null,a=(t,n)=>{if("__proto__"===n||"constructor"===n||"prototype"===n)return;let a=n;if(i&&"string"==typeof n){const e=n.toLowerCase(),t=i[e];void 0!==t&&f(o,t)?a=t:i[e]=n}const s=f(o,a)?o[a]:void 0;C(s)&&C(t)?o[a]=e(s,t):C(t)?o[a]=e({},t):y(t)?o[a]=t.slice():r&&w(t)||(o[a]=t)};for(let s=0,l=t.length;s<l;s++){const e=t[s];if(!e||E(e))continue;if(M(e,a),"object"!=typeof e||y(e)||!Object.getOwnPropertySymbols)continue;const n=Object.getOwnPropertySymbols(e);for(let t=0;t<n.length;t++){const r=n[t];W.call(e,r)&&a(e[r],r)}}return o},extend:(e,t,n,{allOwnKeys:r}={})=>(M(t,(t,r)=>{n&&_(t)?Object.defineProperty(e,r,{__proto__:null,value:a(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&c(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:m,kindOfTest:b,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(y(e))return e;let t=e.length;if(!Number.isSafeInteger(t)||t<0||t>4294967295)return null;const n=new Set,r=new Set;let o=e;for(;null!=o&&n.size<t;){if(r.has(o))return null;r.add(o);const i=c(o);if(p(o,i,o===e))break;Object.getOwnPropertyNames(o).forEach(e=>{const r=+e;Number.isInteger(r)&&r>=0&&r<t&&String(r)===e&&f(o,e)&&n.add(r)}),o=i}if(n.size!==t)return null;const i=new Array(t);for(;t-- >0;)i[t]=e[t];return i},forEachEntry:(e,t)=>{const n=(e&&e[u]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:H,hasOwnProperty:f,hasOwnProp:f,hasOwnInPrototypeChain:g,getSafeProp:(e,t)=>null!=e&&g(e,t)?e[t]:void 0,toSafeFlatObject:e=>{if(null==e||"object"!=typeof e&&"function"!=typeof e)return e;const t=c(e);if(null===t&&(e=>{if(!Object.isExtensible(e))return!1;const t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(h(t))return!1;const n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.configurable&&!0===n.writable})})(e))return e;const n=Object.create(null),r=Object.create(null),o=[];let i=e;for(;null!=i&&-1===o.indexOf(i);){o.push(i);const a=i===e?t:c(i);if(p(i,a,i===e))break;const s=Object.getOwnPropertyNames(i);Object.getOwnPropertySymbols&&s.push(...Object.getOwnPropertySymbols(i));for(const t of s)h(t)||f(r,t)||(n[t]=e[t],r[t]=!0);i=a}return n},reduceDescriptors:Y,freezeMethods:e=>{Y(e,(t,n)=>{if(_(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];_(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return y(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:function(e,t){if(E(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null},global:q,isContextDefined:z,isSpecCompliantForm:function(e){return!!(e&&_(e.append)&&"FormData"===e[d]&&e[u])},toJSONObject:e=>{const t=new WeakSet,n=e=>{if(T(e)){if(t.has(e))return;if(E(e))return e;if(!("toJSON"in e)){let r;if(t.add(e),N(e)){r=[];for(const t of e){const e=n(t);!w(e)&&r.push(e)}}else r=y(e)?[]:{},M(e,(e,t)=>{const o=n(e);!w(o)&&(r[t]=o)});return t.delete(e),r}}return e};return n(e)},isAsyncFn:Q,isThenable:e=>e&&(T(e)||_(e))&&_(e.then)&&_(e.catch),setImmediate:ee,asap:te,isIterable:ne,isSafeIterable:e=>null!=e&&g(e,u)&&ne(e)},oe=re.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var ie=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),ae=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function se(e,t){return re.isArray(e)?e.map(e=>se(e,t)):function(e){let t=0,n=e.length;for(;t<n;){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(t,""))}function le(e){const t=Object.create(null);return re.forEach(e.toJSON(),(e,n)=>{t[n]=(e=>se(e,ae))(e)}),t}var ce=Symbol("internals");function ue(e){return e&&String(e).trim().toLowerCase()}function de(e){return!1===e||null==e?e:re.isArray(e)?e.map(de):(e=>se(e,ie))(String(e))}var fe=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function he(e){let t=0,n=e.length;for(;t<n;){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}var pe=e=>"__proto__"===e?"__Proto__":e;function ge(e,t,n,r,o){return re.isFunction(r)?r.call(e,t,n):(o&&(t=n),re.isString(t)?re.isString(r)?-1!==t.indexOf(r):re.isRegExp(r)?r.test(t):void 0:void 0)}var me=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=ue(t);if(!o)return;const i=re.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[pe(i||t)]=de(e))}const i=(e,t)=>re.forEach(e,(e,n)=>o(e,n,t));if(re.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(re.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t=Object.create(null);let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim();const i=re.hasOwnProp(t,n);!n||i&&re.hasOwnProp(oe,n)||("set-cookie"===n?i?t[n].push(r):t[n]=[r]:t[n]=i?t[n]+", "+r:r)}),t})(e),t);else if(re.isObject(e)&&re.isSafeIterable(e)){let n,r,o=Object.create(null);for(const t of e){if(!re.isArray(t))throw new TypeError("Object iterator must return a key-value pair");r=t[0],re.hasOwnProp(o,r)?(n=o[r],o[r]=re.isArray(n)?[...n,t[1]]:[n,t[1]]):o[r]=t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=ue(e)){const n=re.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(re.isFunction(t))return t.call(this,e,n);if(re.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ue(e)){const n=re.findKey(this,e);return!(!n||void 0===this[n]||t&&!ge(this,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=ue(e)){const o=re.findKey(n,e);!o||t&&!ge(n,n[o],o,t)||(delete n[o],r=!0)}}return re.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!ge(this,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n=Object.create(null);return re.forEach(this,(r,o)=>{const i=re.findKey(n,o);if(i)return t[i]=de(r),void delete t[o];const a=pe(e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim());a!==o&&delete t[o],t[a]=de(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return re.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&re.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){const e=this.get("set-cookie");return re.isArray(e)?e:null==e||!1===e?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return function(e){const t=Object.create(null),n=String(e);let r=0,o=!1,i=!1;function a(e){const o=he(n.slice(r,e)),i=o.indexOf("=");if(i<1)return;const a=he(o.slice(0,i));if(!fe.test(a))return;const s=a.toLowerCase();if("__proto__"===s||"constructor"===s||"prototype"===s)return;const l=he(o.slice(i+1));t[s]=function(e){const t=e.length-1;if(t<1||34!==e.charCodeAt(0)||34!==e.charCodeAt(t))return e;let n="";for(let r=1;r<t;r++){const o=e.charCodeAt(r);if(34===o)return e;if(92===o&&(r+=1,r>=t))return e;n+=e[r]}return n}(l)}for(let s=0;s<n.length;s++){const e=n.charCodeAt(s);o?i?i=!1:92===e?i=!0:34===e&&(o=!1):34===e?o=!0:44!==e&&59!==e||(a(s),r=s+1)}return a(n.length),t}(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[ce]=this[ce]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=ue(e);t[r]||(!function(e,t){const n=re.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return re.isArray(e)?e.forEach(r):r(e),this}};me.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),re.reduceDescriptors(me.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),re.freezeMethods(me);var be="[REDACTED ****]";function ve(e,t){const n=new Set(t.map(e=>String(e).toLowerCase())),r=[],o=e=>{if(null===e||"object"!=typeof e)return e;if(re.isBuffer(e))return e;if(-1!==r.indexOf(e))return;let t;if(e instanceof me&&(e=e.toJSON()),r.push(e),re.isArray(e))t=[],e.forEach((e,n)=>{const r=o(e);re.isUndefined(r)||(t[n]=r)});else{if(!re.isPlainObject(e)&&function(e){if(re.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(re.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return r.pop(),e;t=Object.create(null);for(const[r,i]of Object.entries(e)){const e=n.has(r.toLowerCase())?be:o(i);re.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return o(e)}function ye(e){try{return String(e)}catch(t){return""}}var we=Symbol("causeStack");var Ee=class e extends Error{static from(t,n,r,o,i,a){let s=t.message;!s&&re.isArray(t.errors)&&t.errors.length&&(s=function(e){return e.errors.map(e=>{try{return e&&e.message?ye(e.message):ye(e)}catch(t){return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}(t));const l=new e(s,n||t.code,r,o,i);return Object.defineProperty(l,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),l.name=t.name,function(e,t){try{const n=t&&t.stack;if("string"!=typeof n||!n)return;const r=e.stack;if("string"!=typeof r||!r)return;const o="\nCaused by: "+n;e.stack=r+o,Object.defineProperty(e,we,{__proto__:null,value:o})}catch(n){}}(l,t),null!=t.status&&null==l.status&&(l.status=t.status),a&&Object.assign(l,a),l}constructor(e,t,n,r,o){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){const e=this.config,t=e&&re.hasOwnProp(e,"redact")?e.redact:void 0,n=re.isArray(t)&&t.length>0?ve(e,t):re.toJSONObject(e);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:n,code:this.code,status:this.status}}};Ee.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",Ee.ERR_BAD_OPTION="ERR_BAD_OPTION",Ee.ECONNABORTED="ECONNABORTED",Ee.ETIMEDOUT="ETIMEDOUT",Ee.ECONNREFUSED="ECONNREFUSED",Ee.ERR_NETWORK="ERR_NETWORK",Ee.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",Ee.ERR_DEPRECATED="ERR_DEPRECATED",Ee.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",Ee.ERR_BAD_REQUEST="ERR_BAD_REQUEST",Ee.ERR_CANCELED="ERR_CANCELED",Ee.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",Ee.ERR_INVALID_URL="ERR_INVALID_URL",Ee.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";function Oe(e){return re.isPlainObject(e)||re.isArray(e)}function Se(e){return re.endsWith(e,"[]")?e.slice(0,-2):e}function _e(e,t,n){return e?e.concat(t).map(function(e,t){return e=Se(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}var Re=re.toFlatObject(re,{},null,function(e){return/^is[A-Z]/.test(e)});function Te(e,t,n){if(!re.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(e,t)=>{const r=re.getSafeProp(n,e);return re.isUndefined(r)?t:r},o=r("metaTokens",!0),i=r("visitor")||p,a=r("dots",!1),s=r("indexes",!1),l=r("Blob")||"undefined"!=typeof Blob&&Blob,c=r("maxDepth",100),u=l&&re.isSpecCompliantForm(t),d=[];if(!re.isFunction(i))throw new TypeError("visitor must be a function");function f(e){if(null===e)return"";if(re.isDate(e))return e.toISOString();if(re.isBoolean(e))return e.toString();if(!u&&re.isBlob(e))throw new Ee("Blob is not supported. Use a Buffer instead.");if(re.isArrayBuffer(e)||re.isTypedArray(e)){if(u&&"function"==typeof l)return new l([e]);throw new Ee("Blob is not supported. Use a Buffer instead.",Ee.ERR_NOT_SUPPORT)}return e}function h(e){if(e>c)throw new Ee("Object is too deeply nested ("+e+" levels). Max depth: "+c,Ee.ERR_FORM_DATA_DEPTH_EXCEEDED)}function p(e,n,r){let i=e;if(re.isReactNative(t)&&re.isReactNativeBlob(e))return t.append(_e(r,n,a),f(e)),!1;if(e&&!r&&"object"==typeof e)if(re.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=function(e,t){if(c===1/0)return JSON.stringify(e);const n=[];return JSON.stringify(e,function(e,r){if(!re.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),h(t+n.length-1),r})}(e,1);else if(re.isArray(e)&&function(e){return re.isArray(e)&&!e.some(Oe)}(e)||(re.isFileList(e)||re.endsWith(n,"[]"))&&(i=re.toArray(e)))return n=Se(n),i.forEach(function(e,r){!re.isUndefined(e)&&null!==e&&t.append(!0===s?_e([n],r,a):null===s?n:n+"[]",f(e))}),!1;return!!Oe(e)||(t.append(_e(r,n,a),f(e)),!1)}const g=Object.assign(Re,{defaultVisitor:p,convertValue:f,isVisitable:Oe});if(!re.isObject(e))throw new TypeError("data must be an object");return function e(n,r,o=0){if(!re.isUndefined(n)){if(h(o),-1!==d.indexOf(n))throw new Error("Circular reference detected in "+r.join("."));d.push(n),re.forEach(n,function(n,a){!0===(!(re.isUndefined(n)||null===n)&&i.call(t,n,re.isString(a)?a.trim():a,r,g))&&e(n,r?r.concat(a):[a],o+1)}),d.pop()}}(e),t}function Ce(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function Ae(e,t){this._pairs=[],e&&Te(e,this,t)}var De=Ae.prototype;function Pe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function xe(e,t,n){if(!t)return e;e=e||"";const r=re.isFunction(n)?{serialize:n}:n,o=re.getSafeProp(r,"encode")||Pe,i=re.getSafeProp(r,"serialize");let a;if(a=i?i(t,r):re.isURLSearchParams(t)?t.toString():new Ae(t,r).toString(o),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}De.append=function(e,t){this._pairs.push([e,t])},De.toString=function(e){const t=e?t=>e.call(this,t,Ce):Ce;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var Ne=Symbol("internals");function je(e){return e?e.length:0}function Le(e){if(e)for(;e.length&&null===e[e.length-1];)e.pop()}function Ie(e,t){const n=e.handlers,r=je(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):r!==t.handlersLength&&(r?t.handlerEntries.forEach(function(e,r){n[e.index]!==e.handler&&t.handlerEntries.delete(r)}):t.handlerEntries.clear()),t.handlersLength=r}var Ue=class{constructor(){this.handlers=[],this[Ne]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,n){const r={fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null},o=this[Ne];null==this.handlers&&(this.handlers=[]),Ie(this,o);const i=o.nextId++;return this.handlers.push(r),o.handlerEntries.set(i,{handler:r,index:this.handlers.length-1}),o.handlersLength=this.handlers.length,i}eject(e){const t=this[Ne];Ie(this,t);const n=function(e){return"string"==typeof e&&""!==e&&String(Number(e))===e?Number(e):e}(e),r=t.handlerEntries.get(n);if(r){if(t.handlerEntries.delete(n),this.handlers[r.index]!==r.handler)return;this.handlers[r.index]=null,t.iterationDepth||(Le(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],Ie(this,this[Ne]))}forEach(e){const t=this[Ne];Ie(this,t),t.iterationDepth++;try{re.forEach(this.handlers,function(t){null!==t&&e(t)})}finally{--t.iterationDepth||(Ie(this,t),Le(this.handlers),t.handlersLength=je(this.handlers))}}},Fe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0,encodeBasicAuthUsername:!1},ke={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ae,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Be=e({hasBrowserEnv:()=>Me,hasStandardBrowserEnv:()=>ze,hasStandardBrowserWebWorkerEnv:()=>$e,navigator:()=>qe,origin:()=>Xe}),Me="undefined"!=typeof window&&"undefined"!=typeof document,qe="object"==typeof navigator&&navigator||void 0,ze=Me&&(!qe||["ReactNative","NativeScript","NS"].indexOf(qe.product)<0),$e="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Xe=Me&&window.location.href||"http://localhost",He={...Be,...ke};function We(e){if(e>100)throw new Ee("FormData field is too deeply nested ("+e+" levels). Max depth: 100",Ee.ERR_FORM_DATA_DEPTH_EXCEEDED)}function Ve(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function Ye(e){if(!re.isArray(e))return e;const t=Object.keys(e);return t.length!==e.length||t.some((e,t)=>e!==String(t))?Ve(e):e}function Je(e){function t(e,n,r,o){We(o);let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;return i=!i&&re.isArray(r)?r.length:i,s?(re.hasOwnProp(r,i)?(r[i]=Ye(r[i]),r[i]=re.isArray(r[i])?r[i].concat(n):[r[i],n]):r[i]=n,!a):(re.hasOwnProp(r,i)&&re.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&re.isArray(r[i])&&(r[i]=Ve(r[i])),!a)}if(re.isFormData(e)&&re.isFunction(e.entries)){const n={};return re.forEachEntry(e,(e,r)=>{t(function(e){const t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let r;for(;null!==(r=n.exec(e));)We(t.length),t.push("[]"===r[0]?"":r[1]||r[0]);return t}(e),r,n,0)}),function(e){const t=[e];for(;t.length;){const e=t.pop();Object.keys(e).forEach(n=>{const r=e[n]=Ye(e[n]);(re.isArray(r)||re.isPlainObject(r))&&t.push(r)})}return e}(n)}return null}var Ke=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),Ge=(e,t)=>null!=e&&re.hasOwnProp(e,t)?e[t]:void 0;var Ze={transitional:Fe,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=re.isObject(e);if(o&&re.isHTMLForm(e)&&(e=new FormData(e)),re.isFormData(e))return r?JSON.stringify(Je(e)):e;if(re.isArrayBuffer(e)||re.isBuffer(e)||re.isStream(e)||re.isFile(e)||re.isBlob(e)||re.isReadableStream(e))return e;if(re.isArrayBufferView(e))return e.buffer;if(re.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){const t=Ge(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Te(e,new He.classes.URLSearchParams,{visitor:function(e,t,n,r){return He.isNode&&re.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,t).toString();if((i=re.isFileList(e))||n.indexOf("multipart/form-data")>-1){const n=Ge(this,"env"),r=n&&n.FormData;return Te(i?{"files[]":e}:e,r&&new r,t)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(re.isString(e))try{return(t||JSON.parse)(e),re.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=Ge(this,"transitional")||Ze.transitional,n=t&&t.forcedJSONParsing,r=Ge(this,"responseType"),o="json"===r;if(re.isResponse(e)||re.isReadableStream(e))return e;if(e&&re.isString(e)&&(n&&!r||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,Ge(this,"parseReviver"))}catch(i){if(n){if("SyntaxError"===i.name)throw Ee.from(i,Ee.ERR_BAD_RESPONSE,this,null,Ge(this,"response"));throw i}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:He.classes.FormData,Blob:He.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function Qe(e,t){const n=this||Ze,r=t||n,o=me.from(r.headers);let i=r.data;return re.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function et(e){return!(!e||!e.__CANCEL__)}re.forEach(Ke,e=>{Ze.headers[e]={}});var tt=class extends Ee{constructor(e,t,n){super(null==e?"canceled":e,Ee.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function nt(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Ee("Request failed with status code "+n.status,n.status>=400&&n.status<500?Ee.ERR_BAD_REQUEST:Ee.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}var rt=/[\t\n\r]/g;function ot(e){if("string"!=typeof e)return e;let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(rt,"")}function it(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1].toLowerCase()||""}var at=e=>{try{return decodeURIComponent(e)}catch(t){return e}},st=He.hasStandardBrowserEnv?{write(e,t,n,r,o,i,a){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];re.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),re.isString(r)&&s.push(`path=${r}`),re.isString(o)&&s.push(`domain=${o}`),!0===i&&s.push("secure"),re.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie;if(!t)return null;const n=t.split(";");for(let r=0;r<n.length;r++){const t=n[r].replace(/^\s+/,""),o=t.indexOf("=");if(-1!==o&&t.slice(0,o)===e)return at(t.slice(o+1))}return null},async readAsync(e){try{const t="undefined"!=typeof window&&window.cookieStore;if(t&&re.isFunction(t.get)){const n=await t.get(e);return n?at(n.value):null}}catch(t){}return this.read(e)},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,readAsync:async()=>null,remove(){}};var lt=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},i-s)))},()=>n&&a(n),(...e)=>a(e)]}(n=>{if(!n||!re.isNumber(n.loaded))return;const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=Math.max(0,null!=a?Math.min(i,a):i),l=Math.max(0,s-r),c=o(l);r=Math.max(r,s),e({loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a?(a-s)/c:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},ct=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ut=(e,t=re.asap)=>(...n)=>t(()=>e(...n)),dt=He.hasStandardBrowserEnv?(e=>t=>(t=new URL(t,document.baseURI||He.origin),e.protocol===t.protocol&&e.host===t.host&&e.port===t.port))(new URL(He.origin)):()=>!0;var ft=/^https?:(?!\/\/)/i;function ht(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${be}@`),n=t.indexOf("#"),r=(-1===n?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${be}`);return-1===n?r:`${r}#${o=t.slice(n+1),o?o.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n="")=>`${t}${n}${be}`):o}`;var o}function pt(e,t){if("string"==typeof e){const n=ot(e);if(ft.test(n))throw new Ee(`Invalid URL ${JSON.stringify(ht(n))}: missing "//" after protocol`,Ee.ERR_INVALID_URL,t)}}function gt(e,t,n,r){pt(t,r);let o=!("string"==typeof(i=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i));var i;return e&&(o||!1===n)?(pt(e,r),function(e,t){if(!t)return e;let n=e.length;for(;n>0&&47===e.charCodeAt(n-1);)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}(e,t)):t}var mt=e=>e instanceof me?{...e}:e,bt=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>{const n=Object.getOwnPropertyDescriptor(e,t);return n&&n.enumerable})):Object.keys(e);function vt(e,t,n,r){return re.isPlainObject(e)&&re.isPlainObject(t)?re.merge.call({caseless:r},e,t):re.isPlainObject(t)?re.merge({},t):re.isArray(t)?t.slice():t}function yt(e,t,n,r){return re.isUndefined(t)?re.isUndefined(e)?void 0:vt(void 0,e,0,r):vt(e,t,0,r)}function wt(e,t){if(!re.isUndefined(t))return vt(void 0,t)}function Et(e,t){return re.isUndefined(t)?re.isUndefined(e)?void 0:vt(void 0,e):vt(void 0,t)}function Ot(e,t,n,r,o){return re.hasOwnProp(o,n)?vt(e,t):re.hasOwnProp(r,n)?vt(void 0,e):void 0}var St=Object.freeze({__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0}),_t={url:wt,method:wt,data:wt,baseURL:Et,transformRequest:Et,transformResponse:Et,params:function(e,t){const n=[],r=new WeakMap,o={};function i(e,t){if(!re.isPlainObject(t))return re.isArray(t)?t.slice():t;const i=re.isPlainObject(e)?e:o;let a=r.get(t);if(a||(a=new WeakMap,r.set(t,a)),a.has(i))return a.get(i);const s={};return a.set(i,s),n.push({base:i,source:t,result:s}),s}const a=re.isUndefined(t)?i(void 0,e):i(e,t);for(;n.length;){const{base:e,source:t,result:r}=n.pop(),o=new Set(bt(e)),a=new Set(bt(t));new Set([...o,...a]).forEach(n=>{if("__proto__"===n||"constructor"===n||"prototype"===n)return;const s=a.has(n),l=s?t[n]:void 0,c=s&&!re.isPlainObject(l)||!o.has(n)?void 0:e[n];r[n]=s?i(c,l):i(void 0,c)})}return function(e){const t=[{value:e}],n=new WeakSet,r=new WeakSet;for(;t.length;){const{value:e,done:o}=t.pop();if(!re.isPlainObject(e)&&!re.isArray(e))continue;if(o){n.delete(e);continue}if(n.has(e))throw new Ee("Circular reference detected in params",Ee.ERR_BAD_OPTION_VALUE);if(r.has(e))continue;r.add(e),n.add(e),t.push({value:e,done:!0});const i=Object.keys(e);Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor&&Object.getOwnPropertySymbols(e).forEach(t=>{const n=Object.getOwnPropertyDescriptor(e,t);n&&n.enumerable&&i.push(t)}),i.forEach(n=>{if("__proto__"===n||"constructor"===n||"prototype"===n){const r=Object.getOwnPropertyDescriptor(e,n);r&&re.hasOwnProp(r,"value")&&t.push({value:r.value})}else t.push({value:e[n]})})}}(a),a},paramsSerializer:Et,timeout:Et,timeoutErrorMessage:Et,withCredentials:Et,withXSRFToken:Et,adapter:Et,responseType:Et,xsrfCookieName:Et,xsrfHeaderName:Et,onUploadProgress:Et,onDownloadProgress:Et,decompress:Et,maxContentLength:Et,maxBodyLength:Et,beforeRedirect:Et,transport:Et,httpAgent:Et,httpsAgent:Et,cancelToken:Et,socketPath:Et,allowedSocketPaths:Et,responseEncoding:Et,validateStatus:Ot,headers:function(e,t,n){return yt(mt(e),mt(t),0,!0)}};function Rt(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",St);const r=bt({...e,...t});for(let o=0,i=r.length;o<i;o++){const i=r[o];if("__proto__"===i||"constructor"===i||"prototype"===i)continue;const a=re.hasOwnProp(_t,i)?_t[i]:yt,s=re.hasOwnProp(e,i)?e[i]:void 0,l=re.hasOwnProp(t,i)?t[i]:void 0,c=a===Ot?a(s,l,i,e,t):a(s,l,i);re.isUndefined(c)&&a!==Ot||(n[i]=c)}return re.hasOwnProp(t,"validateStatus")&&re.isUndefined(t.validateStatus)&&!1===function(e,t,n){const r=re.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!re.isUndefined(r)){if(!re.isPlainObject(r))return;if(re.hasOwnProp(r,n))return r[n]}const o=re.hasOwnProp(e,"transitional")?e.transitional:void 0;if(re.isPlainObject(o)&&re.hasOwnProp(o,n))return o[n]}(e,t,"validateStatusUndefinedResolves")&&(re.hasOwnProp(e,"validateStatus")?n.validateStatus=vt(void 0,e.validateStatus):delete n.validateStatus),n}var Tt=["content-type","content-length"];var Ct=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),At=e=>st.read(e);function Dt(e,t=At){const n=Rt({},e),r=e=>re.hasOwnProp(n,e)?n[e]:void 0,o=r("data");let i=r("withXSRFToken");const a=r("xsrfHeaderName"),s=r("xsrfCookieName");let l=r("headers");const c=r("auth"),u=r("baseURL"),d=r("allowAbsoluteUrls"),f=r("url");if(n.headers=l=me.from(l),n.url=xe(gt(u,f,d,n),r("params"),r("paramsSerializer")),c){const t=re.getSafeProp(c,"username")||"",n=re.getSafeProp(c,"password")||"",o=r("transitional"),i=o&&re.hasOwnProp(o,"encodeBasicAuthUsername")&&!0===o.encodeBasicAuthUsername;try{l.set("Authorization","Basic "+btoa((i?Ct(t):t)+":"+(n?Ct(n):"")))}catch(h){throw Ee.from(h,Ee.ERR_BAD_OPTION_VALUE,e)}}if(re.isFormData(o)){const e=re.getSafeProp(o,"getHeaders");He.hasStandardBrowserEnv||He.hasStandardBrowserWebWorkerEnv||re.isReactNative(o)?l.setContentType(void 0):re.isFunction(e)&&function(e,t,n){"content-only"===n?Object.entries(t||{}).forEach(([t,n])=>{Tt.includes(t.toLowerCase())&&e.set(t,n)}):e.set(t)}(l,e.call(o),r("formDataHeaderPolicy"))}if(He.hasStandardBrowserEnv&&(re.isFunction(i)&&(i=i(n)),!0===i||null==i&&dt(n.url))){const e=a&&s&&t(s);e&&l.set(a,e)}return n}var Pt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let r,o;try{const e=He.hasStandardBrowserEnv&&"undefined"!=typeof window&&window.cookieStore;r=e&&re.isFunction(e.get)}catch(S){}const i=Dt(e,r?e=>(o=e,null):void 0);let a=i.data;const s=me.from(i.headers).normalize();let l,c,u,d,f,h,p,{responseType:g,onUploadProgress:m,onDownloadProgress:b}=i;function v(){clearTimeout(c);try{f&&f()}catch(e){setTimeout(()=>{throw e})}try{h&&h()}catch(e){setTimeout(()=>{throw e})}y&&(d&&y.removeEventListener("progress",d),y.upload&&(u&&y.upload.removeEventListener("progress",u),f&&y.upload.removeEventListener("loadend",f))),i.cancelToken&&i.cancelToken.unsubscribe(l),i.signal&&i.signal.removeEventListener("abort",l)}let y=new XMLHttpRequest;function w(r){if(!y)return;if(!(0!==y.status||"file"===(it(ot(i.url))||it(He.origin))||y.responseURL&&y.responseURL.startsWith("file:")))return n(new Ee("Request aborted",Ee.ECONNABORTED,e,y)),v(),void(y=null);try{r?p&&p(r):h&&h()}catch(a){setTimeout(()=>{throw a})}if(!y)return;const o=me.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders());nt(function(e){t(e),v()},function(e){n(e),v()},{data:g&&"text"!==g&&"json"!==g?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:o,config:e,request:y}),y=null}if(y.open(i.method.toUpperCase(),i.url,!0),y.timeout=i.timeout,"onloadend"in y?y.onloadend=w:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&y.responseURL.startsWith("file:"))&&setTimeout(w)},y.onabort=function(){y&&(n(new Ee("Request aborted",Ee.ECONNABORTED,e,y)),v(),y=null)},y.onerror=function(t){const r=t&&t.message?t.message:"Network Error",o=new Ee(r,Ee.ERR_NETWORK,e,y);o.event=t||null,n(o),v(),y=null},y.ontimeout=function(){if(!y)return;let t=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const r=i.transitional||Fe;i.timeoutErrorMessage&&(t=i.timeoutErrorMessage),n(new Ee(t,r.clarifyTimeoutError?Ee.ETIMEDOUT:Ee.ECONNABORTED,e,y)),v(),y=null},void 0===a&&s.setContentType(null),re.isUndefined(i.withCredentials)||(y.withCredentials=!!i.withCredentials),g&&"json"!==g&&(y.responseType=i.responseType),b&&([d,h,p]=lt(b,!0),y.addEventListener("progress",d)),m&&y.upload&&([u,f]=lt(m),y.upload.addEventListener("progress",u),y.upload.addEventListener("loadend",f)),i.cancelToken||i.signal){if(l=t=>{if(!y)return;n(!t||t.type?new tt(null,e,y):t);const r=y;v(),y=null,r.abort()},i.cancelToken&&i.cancelToken.subscribe(l),!y)return;i.signal&&(i.signal.aborted?l():i.signal.addEventListener("abort",l))}if(!y)return;const E=it(i.url);if(E&&!He.protocols.includes(E))return n(new Ee("Unsupported protocol "+E+":",Ee.ERR_BAD_REQUEST,e)),void v();const O=()=>{y&&("setRequestHeader"in y&&re.forEach(le(s),function(e,t){y.setRequestHeader(t,e)}),y.send(a||null))};if(o){const t="undefined"!=typeof performance&&re.isFunction(performance.now)?()=>performance.now():Date.now,r=y.timeout>0?t()+Number(y.timeout):void 0,a=()=>{if(!y)return;const e=y;e.ontimeout(),e.abort()};if(void 0!==r){const e=()=>{const n=r-t();n>0?c=setTimeout(e,Math.min(n,2147483647)):a()};e()}st.readAsync(o).then(e=>{if(y)if(void 0!==r&&t()>=r)a();else{if(e){const t=re.hasOwnProp(i,"xsrfHeaderName")&&i.xsrfHeaderName;s.set(t,e)}O()}}).catch(t=>{y&&(n(Ee.from(t,null,e,y)),v(),y=null)})}else O()})},xt=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const o=function(e){if(!r){r=!0,a();const t=e instanceof Error?e:this.reason;n.abort(t instanceof Ee?t:new tt(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new Ee(`timeout of ${t}ms exceeded`,Ee.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{const t=re.getSafeProp(e,"unsubscribe");re.isFunction(t)?t.call(e,o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>{r||(e.aborted?o.call(e):e.addEventListener("abort",o,{once:!0}))});const{signal:s}=n;return s.unsubscribe=()=>re.asap(a),s},Nt=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},jt=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Lt=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of jt(e))yield*Nt(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;n&&n(a+=i),e.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},It=e=>String(e).replace(/\r\n|\r|\n/g,"\r\n"),Ut=e=>String(e).replace(/[\r\n"]/g,e=>"\r"===e?"%0D":"\n"===e?"%0A":"%22"),Ft=(e,t)=>{let n=0;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);!t||13!==o&&10!==o?o<128?n++:o<2048?n+=2:o>=55296&&o<=56319&&e.charCodeAt(r+1)>=56320&&e.charCodeAt(r+1)<=57343?(n+=4,r++):n+=3:(13===o&&10===e.charCodeAt(r+1)&&r++,n+=2)}return n},kt=class extends TypeError{constructor(e,t){super(e),this.name="FormDataError",this.reason=t}};function Bt(e,t,n,r,o){if(!re.isFunction(t))throw new Ee("Blob is not supported",Ee.ERR_NOT_SUPPORT);if(void 0===o)if(re.isFunction(He.generateString))o="axios-"+He.generateString(36,"0123456789abcdef");else{const e=re.global.crypto;if(!e||!re.isFunction(e.getRandomValues))throw new Ee("Random byte generation is not supported",Ee.ERR_NOT_SUPPORT);const t=new Uint8Array(18);e.getRandomValues(t),o="axios-"+Array.from(t,e=>("0"+e.toString(16)).slice(-2)).join("")}try{return function(e,t,n,r,o){if(!re.isFunction(t))throw new kt("Blob is not supported","blob");if(!re.isString(o)||!/^[A-Za-z0-9'()+_,./:=? -]{1,70}$/.test(o)||/ $/.test(o))throw new kt("Invalid multipart boundary","boundary");const i="--"+o+"--\r\n";let a=i.length;const s=[],l=e=>{if(a+e>n)throw r()};l(0);for(const[u,d]of e){const e=re.isString(d),t=e?Ft(d,!0):d.size;if(!Number.isFinite(t)||t<0)throw new kt("Unsupported FormData part size","part");l(t+Ft(u,!0)+(!e&&d.name?Ft(d.name,!1):0)+(!e&&d.type?Ft(d.type,!1):0));let n="--"+o+'\r\nContent-Disposition: form-data; name="'+Ut(It(u))+'"';e||(n+='; filename="'+Ut(re.isString(d.name)?d.name:"blob")+'"\r\nContent-Type: '+String(d.type||"application/octet-stream").replace(/[\r\n]/g,"")),n+="\r\n\r\n";const r=Ft(n,!1)+t+2;l(r),a+=r,s.push({header:n,value:d,isString:e})}const c=[];for(const u of s)c.push(u.header,u.isString?It(u.value):u.value,"\r\n");return c.push(i),new t(c,{type:"multipart/form-data; boundary="+o})}(e,t,n,r,o)}catch(i){if(i instanceof kt){const e="boundary"===i.reason?Ee.ERR_BAD_OPTION_VALUE:Ee.ERR_BAD_REQUEST;throw new Ee(i.message,e)}throw i}}var Mt=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,qt=(e,t,n)=>t+2<n&&Mt(e.charCodeAt(t+1))&&Mt(e.charCodeAt(t+2)),zt=e=>e<=57?e-48:(223&e)-55,$t=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e,Xt=e=>9===e||10===e||12===e||13===e||32===e,Ht=e=>{const t=e.length;let n=0,r=0,o=!1;for(let i=0;i<t;i++){let a=e.charCodeAt(i);37===a&&qt(e,i,t)&&(a=16*zt(e.charCodeAt(i+1))+zt(e.charCodeAt(i+2)),i+=2),Xt(a)||(61!==a?!$t(a)||r>0?o=!0:n++:r++)}return o||r>2||r>0&&(n+r)%4!=0||n%4==1?(e=>{const t=e.length;let n=0;return t>0&&61===e.charCodeAt(t-1)&&(n++,t>1&&61===e.charCodeAt(t-2)&&n++),Math.floor(3*(t-n)/4)})(e):(e=>{const t=e%4;return 3*Math.floor(e/4)+(2===t?1:3===t?2:0)})(n)};function Wt(e){const t="string"==typeof e?e.indexOf("#"):-1;return((e,t,n)=>{if(!e||"string"!=typeof e)return 0;if(!/^data:/i.test(e))return 0;const r=e.indexOf(",");if(r<0)return 0;const o=e.slice(5,r),i=e.slice(r+1);if(n.test(o))return t(i);let a=0;for(let s=0,l=i.length;s<l;s++){const e=i.charCodeAt(s);if(37===e&&qt(i,s,l))a+=1,s+=2;else if(e<128)a+=1;else if(e<2048)a+=2;else if(e>=55296&&e<=56319&&s+1<l){const e=i.charCodeAt(s+1);e>=56320&&e<=57343?(a+=4,s++):a+=3}else a+=3}return a})(-1===t?e:e.slice(0,t),Ht,/; *base64[\t\n\f\r ]*$/i)}var Vt="1.21.0",Yt={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:Jt}=re,Kt=e=>{if(!re.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},Gt=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},Zt=e=>{const t=void 0!==re.global&&null!==re.global?re.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=re.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response,Blob:t.Blob},e);const o=re.hasOwnProp(e,"fetch")?e.fetch:void 0,{Request:i,Response:a,Blob:s}=e,l=o?Jt(o):"function"==typeof fetch,c=Jt(i),u=Jt(a);if(!l)return!1;const d=l&&Jt(n),f=l&&("function"==typeof r?(h=new r,e=>h.encode(e)):async e=>new Uint8Array(await new i(e).arrayBuffer()));var h;const p=c&&d&&Gt(()=>{let e=!1;const t=new i(He.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r}),g=u&&d&&Gt(()=>re.isReadableStream(new a("").body)),m=Object.assign(Object.create(null),Yt);c&&!Gt(()=>new i(He.origin,m))&&(delete m.cache,Gt(()=>new i(He.origin,m))||(m.cache=Yt.cache));const b={stream:g&&(e=>e.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!b[e]&&(b[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new Ee(`Response type '${e}' is not supported`,Ee.ERR_NOT_SUPPORT,n)})});const v=async e=>null==e?0:re.isBlob(e)?e.size:re.isArrayBufferView(e)||re.isArrayBuffer(e)?e.byteLength:(re.isURLSearchParams(e)&&(e+=""),re.isString(e)?(await f(e)).byteLength:void 0);return async e=>{let{url:t,method:n,data:l,signal:u,cancelToken:f,timeout:h,onDownloadProgress:y,onUploadProgress:w,responseType:E,headers:O,withCredentials:S="same-origin",fetchOptions:_,maxContentLength:R,maxBodyLength:T,maxRedirects:C}=Dt(e);const A=re.isNumber(R)&&R>-1,D=re.isNumber(T)&&T>-1,P=t=>re.hasOwnProp(e,t)?e[t]:void 0;let x=o||fetch;E=E?(E+"").toLowerCase():"text";let N=xt([u,f&&f.toAbortSignal()],h),j=null;const L=N&&N.unsubscribe&&(()=>{N.unsubscribe()});let I,U=null,F=null;const k=()=>new Ee("Request body larger than maxBodyLength limit",Ee.ERR_BAD_REQUEST,e,j);try{let o;const u=P("auth");let f;if(u&&(o={username:re.getSafeProp(u,"username")||"",password:re.getSafeProp(u,"password")||""}),(e=>{const t=e.indexOf("://");let n=e;return-1!==t&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")})(t)&&(f=new URL(t,He.origin),o||!f.username&&!f.password||(o={username:Kt(f.username),password:Kt(f.password)}),(f.username||f.password)&&(f.username="",f.password="",t=f.href)),o&&(O.delete("authorization"),O.set("Authorization","Basic "+btoa((B=(o.username||"")+":"+(o.password||""),encodeURIComponent(B).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))),A&&f&&"data:"===f.protocol&&Wt(f.href)>R)throw new Ee("maxContentLength size of "+R+" exceeded",Ee.ERR_BAD_RESPONSE,e,j);const h=re.isSpecCompliantForm(l)&&me.from(P("headers")).getContentType();let M;if(re.isString(h)&&/^multipart\/form-data(?:\s*;|$)/i.test(h.trim())){const e=me.parseParameters(h);re.hasOwnProp(e,"boundary")&&(M=e.boundary)}if(re.isSpecCompliantForm(l)&&"get"!==n&&"head"!==n&&(D||w&&p||void 0!==M)&&(l=Bt(l,s,D?T:1/0,k,M),O.setContentType(void 0===M?l.type:h),I=l.size),D&&"get"!==n&&"head"!==n){const e=await v(l);if("number"==typeof e&&isFinite(e)&&(I=e,e>T))throw k()}const q=D&&(re.isReadableStream(l)||re.isStream(l)),z=(e,t,n)=>Lt(e,65536,e=>{if(D&&e>T)throw U=k();t&&t(e)},n);if(p&&"get"!==n&&"head"!==n&&(w||q)){if(I=null==I?await(async(e,t)=>{const n=re.toFiniteNumber(e.getContentLength());return null==n?v(t):n})(O,l):I,0!==I||q){let e,n=new i(t,{method:"POST",body:l,duplex:"half"});if(re.isFormData(l)&&(e=n.headers.get("content-type"))&&O.setContentType(e),n.body){const[e,t]=w&&ct(I,lt(ut(w)))||[];l=z(n.body,e,t)}}}else if(q&&!c&&d&&"get"!==n&&"head"!==n)l=z(l);else if(q&&c&&!p&&"get"!==n&&"head"!==n)throw new Ee("Stream request bodies are not supported by the current fetch implementation",Ee.ERR_NOT_SUPPORT,e,j);re.isString(S)||(S=S?"include":"omit");const $=c&&"credentials"in i.prototype;if(re.isFormData(l)){const e=O.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&O.delete("content-type")}O.set("User-Agent","axios/"+Vt,!1);const X=null==_?_:Object.assign(Object.create(null),_);X&&(delete X.body,delete X.headers,delete X.method,delete X.signal,delete X.duplex,delete X.credentials);const H=Object.assign(Object.create(null),X,{signal:N,method:n.toUpperCase(),headers:le(O.normalize()),body:l,duplex:"half",credentials:$?S:void 0});c&&(re.forEach(m,(e,t)=>{void 0===H[t]&&(H[t]=e)}),void 0===H.signal&&(H.signal=null),void 0===H.body&&(H.body=null)),0===C&&(H.redirect="manual",X&&(X.redirect="manual")),j=c&&new i(t,H);let W=await(c?x(j,X):x(t,H));const V=me.from(W.headers);if(A){const t=re.toFiniteNumber(V.getContentLength());if(null!=t&&t>R)throw new Ee("maxContentLength size of "+R+" exceeded",Ee.ERR_BAD_RESPONSE,e,j)}const Y=g&&("stream"===E||"response"===E);if(g&&W.body&&(y||A||Y&&L)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=W[e]});const n=re.toFiniteNumber(V.getContentLength()),[r,o]=y&&ct(n,lt(ut(y),!0))||[];let i=0;const s=t=>{if(A&&(i=t,i>R))throw F=new Ee("maxContentLength size of "+R+" exceeded",Ee.ERR_BAD_RESPONSE,e,j);r&&r(t)};W=new a(Lt(W.body,65536,s,()=>{o&&o(),L&&L()}),t)}E=E||"text";let J=await b[re.findKey(b,E)||"text"](W,e);if(A&&!g&&!Y){let t;if(null!=J&&("number"==typeof J.byteLength?t=J.byteLength:"number"==typeof J.size?t=J.size:"string"==typeof J&&(t="function"==typeof r?(new r).encode(J).byteLength:J.length)),"number"==typeof t&&t>R)throw new Ee("maxContentLength size of "+R+" exceeded",Ee.ERR_BAD_RESPONSE,e,j)}return!Y&&L&&L(),await new Promise((t,n)=>{nt(t,n,{data:J,headers:me.from(W.headers),status:W.status,statusText:W.statusText,config:e,request:j})})}catch(M){if(L&&L(),N&&N.aborted&&N.reason instanceof Ee){const t=N.reason;throw t.config=e,j&&(t.request=j),M!==t&&Object.defineProperty(t,"cause",{__proto__:null,value:M,writable:!0,enumerable:!1,configurable:!0}),t}if(U)throw j&&!U.request&&(U.request=j),U;if(F)throw F;if(M instanceof Ee)throw j&&!M.request&&(M.request=j),M;if(M&&"TypeError"===M.name&&/Load failed|fetch/i.test(M.message)){const t=new Ee("Network Error",Ee.ERR_NETWORK,e,j,M&&M.response);throw Object.defineProperty(t,"cause",{__proto__:null,value:M.cause||M,writable:!0,enumerable:!1,configurable:!0}),t}throw Ee.from(M,M&&M.code,e,j,M&&M.response)}var B}},Qt=new Map,en=e=>{const t=Object.create(null),n=e&&re.hasOwnProp(e,"env")&&e.env;["fetch","Request","Response","Blob"].forEach(e=>{n&&re.hasOwnProp(n,e)&&(t[e]=n[e])});const{fetch:r,Request:o,Response:i,Blob:a}=t,s=[o,i,r,a];let l,c,u=s.length,d=Qt;for(;u--;)l=s[u],c=d.get(l),void 0===c&&d.set(l,c=u?new Map:Zt(t)),d=c;return c},tn=(en(),{http:null,xhr:Pt,fetch:{get:en}});re.forEach(tn,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(n){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var nn=e=>`- ${e}`,rn=e=>re.isFunction(e)||null===e||!1===e;var on={getAdapter:function(e,t){e=re.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let a=0;a<n;a++){let n;if(r=e[a],o=r,!rn(r)&&(o=tn[(n=String(r)).toLowerCase()],void 0===o))throw new Ee(`Unknown adapter '${n}'`);if(o&&(re.isFunction(o)||(o=o.get(t))))break;i[n||"#"+a]=o}if(!o){const e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(nn).join("\n"):" "+nn(e[0]):"as no adapter specified";throw new Ee("There is no suitable adapter to dispatch the request "+t,Ee.ERR_NOT_SUPPORT)}return o},adapters:tn};function an(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new tt(null,e)}function sn(e){return Math.max(0,Date.now()-e)}function ln(e){const t=re.toSafeFlatObject(e);an(t),t.headers=me.from(re.getSafeProp(t,"headers")),t.data=Qe.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);const n=on.getAdapter(t.adapter||Ze.adapter,t),r=Date.now();return n(t).then(function(e){an(t),e.duration=sn(r),t.response=e;try{e.data=Qe.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=me.from(e.headers),e},function(e){if(!et(e)&&(an(t),e&&e.response)){e.response.duration=sn(r),t.response=e.response;try{e.response.data=Qe.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=me.from(e.response.headers)}return Promise.reject(e)})}var cn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{cn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var un={};cn.transitional=function(e,t,n){return(r,o,i)=>{if(!1===e)throw new Ee(function(e,t){return"[Axios v"+Vt+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}(o," has been removed"+(t?" in "+t:"")),Ee.ERR_DEPRECATED);return t&&!un[o]&&(un[o]=!0),!e||e(r,o,i)}},cn.spelling=function(e){return(e,t)=>!0};var dn={assertOptions:function(e,t,n){if("object"!=typeof e||null===e)throw new Ee("options must be an object",Ee.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new Ee("option "+i+" must be "+n,Ee.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new Ee("Unknown option "+i,Ee.ERR_BAD_OPTION)}},validators:cn},fn=dn.validators,hn=e=>{if(null==e||re.isPlainObject(e)||e instanceof me)return!0;try{return re.isObject(e)&&"AxiosHeaders"===re.getSafeProp(e,Symbol.toStringTag)&&["toJSON","set","get","has","delete","clear","normalize","concat","toString",Symbol.iterator].every(t=>re.isFunction(re.getSafeProp(e,t)))}catch(t){return!1}},pn=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Ue,response:new Ue}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error)try{let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack;let r="";if("string"==typeof t){const e=t.indexOf("\n");r=-1===e?"":t.slice(e+1)}if(n.stack){if(r){const e=r.indexOf("\n"),t=-1===e?-1:r.indexOf("\n",e+1),o=-1===t?r:r.slice(t+1),i=String(n.stack),a=function(e,t){const n=re.hasOwnProp(e,we)&&e[we];return n&&t.endsWith(n)?t.length-n.length:-1}(n,i),s=-1===a?i:i.slice(0,a),l=-1===a?"":i.slice(a);s.endsWith(o)||(n.stack=s+"\n"+r+l)}}else n.stack=r}catch(r){}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Rt(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&dn.assertOptions(n,{silentJSONParsing:fn.transitional(fn.boolean),forcedJSONParsing:fn.transitional(fn.boolean),clarifyTimeoutError:fn.transitional(fn.boolean),legacyInterceptorReqResOrdering:fn.transitional(fn.boolean),advertiseZstdAcceptEncoding:fn.transitional(fn.boolean),validateStatusUndefinedResolves:fn.transitional(fn.boolean),encodeBasicAuthUsername:fn.transitional(fn.boolean)},!1),null!=r&&(re.isFunction(r)?t.paramsSerializer={serialize:r}:dn.assertOptions(r,{encode:fn.function,serialize:fn.function},!0)),void 0!==t.allowAbsoluteUrls||(re.hasOwnProp(this.defaults,"allowAbsoluteUrls")&&void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),dn.assertOptions(t,{baseUrl:fn.spelling("baseURL"),withXsrfToken:fn.spelling("withXSRFToken")},!0),t.method=(re.getSafeProp(t,"method")||re.getSafeProp(this.defaults,"method")||"get").toLowerCase();const i=re.getSafeProp(o,"common"),a=re.getSafeProp(o,t.method),s=o&&re.merge(hn(i)?i:void 0,hn(a)?a:void 0);o&&re.forEach(Ke.concat("common"),e=>{hn(re.getSafeProp(o,e))&&delete o[e]}),t.headers=me.concat(s,o);const l=[];let c=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;c=c&&e.synchronous;const n=t.transitional||Fe;n&&n.legacyInterceptorReqResOrdering?l.unshift(e.fulfilled,e.rejected):l.push(e.fulfilled,e.rejected)});const u=[];let d;this.interceptors.response.forEach(function(e){u.push(e.fulfilled,e.rejected)});let f,h=0;if(!c){const e=[ln.bind(this),void 0];for(e.unshift(...l),e.push(...u),f=e.length,d=Promise.resolve(t);h<f;)d=d.then(e[h++],e[h++]);return d}f=l.length;let p=t;for(;h<f;){const e=l[h++],t=l[h++];try{p=e?e(p):p}catch(g){if(!t){d=Promise.reject(g);break}try{const e=t.call(this,g);re.isThenable(e)&&(d=Promise.resolve(e).then(()=>ln.call(this,p)))}catch(m){d=Promise.reject(m)}break}}if(!d)try{d=ln.call(this,p)}catch(g){d=Promise.reject(g)}for(h=0,f=u.length;h<f;)d=d.then(u[h++],u[h++]);return d}getUri(e){return xe(gt((e=Rt(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}};re.forEach(["delete","get","head","options"],function(e){pn.prototype[e]=async function(t,n){return this.request(Rt(n||{},{method:e,url:t,data:n&&re.hasOwnProp(n,"data")?n.data:void 0}))}}),re.forEach(["post","put","patch","query"],function(e){function t(t){return async function(n,r,o){return this.request(Rt(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}pn.prototype[e]=t(),"query"!==e&&(pn.prototype[e+"Form"]=t(!0))});var gn={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,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent: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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(gn).forEach(([e,t])=>{void 0===gn[t]&&(gn[t]=e)});var mn=function e(t){const n=new pn(t),r=a(pn.prototype.request,n);return re.extend(r,pn.prototype,n,{allOwnKeys:!0}),re.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Rt(t,n))},r}(Ze);function bn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bn(Object(n),!0).forEach(function(t){wn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yn(e){return yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yn(e)}function wn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function En(){return En=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},En.apply(this,arguments)}function On(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};for(var n,r={},o=Object.keys(e),i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}mn.Axios=pn,mn.CanceledError=tt,mn.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new tt(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},mn.isCancel=et,mn.VERSION=Vt,mn.toFormData=Te,mn.AxiosError=Ee,mn.Cancel=mn.CanceledError,mn.all=function(e){return Promise.all(e)},mn.spread=function(e){return function(t){return e.apply(null,t)}},mn.isAxiosError=function(e){return re.isObject(e)&&!0===e.isAxiosError},mn.mergeConfig=Rt,mn.AxiosHeaders=me,mn.formToJSON=e=>Je(re.isHTMLForm(e)?new FormData(e):e),mn.getAdapter=on.getAdapter,mn.HttpStatusCode=gn,mn.default=mn;function Sn(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var _n=Sn(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Rn=Sn(/Edge/i),Tn=Sn(/firefox/i),Cn=Sn(/safari/i)&&!Sn(/chrome/i)&&!Sn(/android/i),An=Sn(/iP(ad|od|hone)/i),Dn=Sn(/chrome/i)&&Sn(/android/i),Pn={capture:!1,passive:!1};function xn(e,t,n){e.addEventListener(t,n,!_n&&Pn)}function Nn(e,t,n){e.removeEventListener(t,n,!_n&&Pn)}function jn(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function Ln(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function In(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&jn(e,t):jn(e,t))||r&&e===n)return e;if(e===n)break}while(e=Ln(e))}return null}var Un,Fn=/\s+/g;function kn(e,t,n){e&&t&&(e.classList?e.classList[n?"add":"remove"](t):e.className=((" "+e.className+" ").replace(Fn," ").replace(" "+t+" "," ")+(n?" "+t:"")).replace(Fn," "))}function Bn(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function Mn(e,t){var n="";if("string"==typeof e)n=e;else do{var r=Bn(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function qn(e,t,n){if(e){var r=e.getElementsByTagName(t),o=0,i=r.length;if(n)for(;o<i;o++)n(r[o],o);return r}return[]}function zn(){var e=document.scrollingElement;return e||document.documentElement}function $n(e,t,n,r,o){if(e.getBoundingClientRect||e===window){var i,a,s,l,c,u,d;if(e!==window&&e.parentNode&&e!==zn()?(a=(i=e.getBoundingClientRect()).top,s=i.left,l=i.bottom,c=i.right,u=i.height,d=i.width):(a=0,s=0,l=window.innerHeight,c=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!_n))do{if(o&&o.getBoundingClientRect&&("none"!==Bn(o,"transform")||n&&"static"!==Bn(o,"position"))){var f=o.getBoundingClientRect();a-=f.top+parseInt(Bn(o,"border-top-width")),s-=f.left+parseInt(Bn(o,"border-left-width")),l=a+i.height,c=s+i.width;break}}while(o=o.parentNode);if(r&&e!==window){var h=Mn(o||e),p=h&&h.a,g=h&&h.d;h&&(l=(a/=g)+(u/=g),c=(s/=p)+(d/=p))}return{top:a,left:s,bottom:l,right:c,width:d,height:u}}}function Xn(e,t,n){for(var r=Jn(e,!0),o=$n(e)[t];r;){var i=$n(r)[n];if(!("top"===n||"left"===n?o>=i:o<=i))return r;if(r===zn())break;r=Jn(r,!1)}return!1}function Hn(e,t,n,r){for(var o=0,i=0,a=e.children;i<a.length;){if("none"!==a[i].style.display&&a[i]!==Zr.ghost&&(r||a[i]!==Zr.dragged)&&In(a[i],n.draggable,e,!1)){if(o===t)return a[i];o++}i++}return null}function Wn(e,t){for(var n=e.lastElementChild;n&&(n===Zr.ghost||"none"===Bn(n,"display")||t&&!jn(n,t));)n=n.previousElementSibling;return n||null}function Vn(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===Zr.clone||t&&!jn(e,t)||n++;return n}function Yn(e){var t=0,n=0,r=zn();if(e)do{var o=Mn(e),i=o.a,a=o.d;t+=e.scrollLeft*i,n+=e.scrollTop*a}while(e!==r&&(e=e.parentNode));return[t,n]}function Jn(e,t){if(!e||!e.getBoundingClientRect)return zn();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=Bn(n);if(n.clientWidth<n.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!n.getBoundingClientRect||n===document.body)return zn();if(r||t)return n;r=!0}}}while(n=n.parentNode);return zn()}function Kn(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function Gn(e,t){return function(){if(!Un){var n=arguments;1===n.length?e.call(this,n[0]):e.apply(this,n),Un=setTimeout(function(){Un=void 0},t)}}}function Zn(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Qn(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}var er="Sortable"+(new Date).getTime();function tr(){var e,t=[];return{captureAnimationState:function(){t=[],this.options.animation&&[].slice.call(this.el.children).forEach(function(e){if("none"!==Bn(e,"display")&&e!==Zr.ghost){t.push({target:e,rect:$n(e)});var n=vn({},t[t.length-1].rect);if(e.thisAnimationDuration){var r=Mn(e,!0);r&&(n.top-=r.f,n.left-=r.e)}e.fromRect=n}})},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}(t,{target:e}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof n&&n());var o=!1,i=0;t.forEach(function(e){var t=0,n=e.target,a=n.fromRect,s=$n(n),l=n.prevFromRect,c=n.prevToRect,u=e.rect,d=Mn(n,!0);d&&(s.top-=d.f,s.left-=d.e),n.toRect=s,n.thisAnimationDuration&&Kn(l,s)&&!Kn(a,s)&&(u.top-s.top)/(u.left-s.left)===(a.top-s.top)/(a.left-s.left)&&(t=function(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}(u,l,c,r.options)),Kn(s,a)||(n.prevFromRect=a,n.prevToRect=s,t||(t=r.options.animation),r.animate(n,u,s,t)),t&&(o=!0,i=Math.max(i,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout(function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null},t),n.thisAnimationDuration=t)}),clearTimeout(e),o?e=setTimeout(function(){"function"==typeof n&&n()},i):"function"==typeof n&&n(),t=[]},animate:function(e,t,n,r){if(r){Bn(e,"transition",""),Bn(e,"transform","");var o=Mn(this.el),i=o&&o.a,a=o&&o.d,s=(t.left-n.left)/(i||1),l=(t.top-n.top)/(a||1);e.animatingX=!!s,e.animatingY=!!l,Bn(e,"transform","translate3d("+s+"px,"+l+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),Bn(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),Bn(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout(function(){Bn(e,"transition",""),Bn(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1},r)}}}}var nr=[],rr={initializeByDefault:!0},or={mount:function(e){for(var t in rr)rr.hasOwnProperty(t)&&!(t in e)&&(e[t]=rr[t]);nr.forEach(function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),nr.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var o=e+"Global";nr.forEach(function(r){t[r.pluginName]&&(t[r.pluginName][o]&&t[r.pluginName][o](vn({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](vn({sortable:t},n)))})},initializePlugins:function(e,t,n,r){for(var o in nr.forEach(function(r){var o=r.pluginName;if(e.options[o]||r.initializeByDefault){var i=new r(e,t,e.options);i.sortable=e,i.options=e.options,e[o]=i,En(n,i.defaults)}}),e.options)if(e.options.hasOwnProperty(o)){var i=this.modifyOption(e,o,e.options[o]);void 0!==i&&(e.options[o]=i)}},getEventProperties:function(e,t){var n={};return nr.forEach(function(r){"function"==typeof r.eventProperties&&En(n,r.eventProperties.call(t[r.pluginName],e))}),n},modifyOption:function(e,t,n){var r;return nr.forEach(function(o){e[o.pluginName]&&o.optionListeners&&"function"==typeof o.optionListeners[t]&&(r=o.optionListeners[t].call(e[o.pluginName],n))}),r}};var ir,ar,sr,lr,cr,ur,dr,fr,hr,pr,gr,mr,br,vr,yr=["evt"],wr=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,o=On(n,yr);or.pluginEvent.bind(Zr)(e,t,vn({dragEl:ir,parentEl:ar,ghostEl:sr,rootEl:lr,nextEl:cr,lastDownEl:ur,cloneEl:dr,cloneHidden:fr,dragStarted:Ar,putSortable:vr,activeSortable:Zr.active,originalEvent:r,oldIndex:hr,oldDraggableIndex:gr,newIndex:pr,newDraggableIndex:mr,hideGhostForTarget:Yr,unhideGhostForTarget:Jr,cloneNowHidden:function(){fr=!0},cloneNowShown:function(){fr=!1},dispatchSortableEvent:function(e){Er({sortable:t,name:e,originalEvent:r})}},o))};function Er(e){!function(e){var t=e.sortable,n=e.rootEl,r=e.name,o=e.targetEl,i=e.cloneEl,a=e.toEl,s=e.fromEl,l=e.oldIndex,c=e.newIndex,u=e.oldDraggableIndex,d=e.newDraggableIndex,f=e.originalEvent,h=e.putSortable,p=e.extraEventProperties;if(t=t||n&&n[er]){var g,m=t.options,b="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||_n||Rn?(g=document.createEvent("Event")).initEvent(r,!0,!0):g=new CustomEvent(r,{bubbles:!0,cancelable:!0}),g.to=a||n,g.from=s||n,g.item=o||n,g.clone=i,g.oldIndex=l,g.newIndex=c,g.oldDraggableIndex=u,g.newDraggableIndex=d,g.originalEvent=f,g.pullMode=h?h.lastPutMode:void 0;var v=vn(vn({},p),or.getEventProperties(r,t));for(var y in v)g[y]=v[y];n&&n.dispatchEvent(g),m[b]&&m[b].call(t,g)}}(vn({putSortable:vr,cloneEl:dr,targetEl:ir,rootEl:lr,oldIndex:hr,oldDraggableIndex:gr,newIndex:pr,newDraggableIndex:mr},e))}var Or,Sr,_r,Rr,Tr,Cr,Ar,Dr,Pr,xr,Nr,jr=!1,Lr=!1,Ir=[],Ur=!1,Fr=!1,kr=[],Br=!1,Mr=[],qr="undefined"!=typeof document,zr=An,$r=Rn||_n?"cssFloat":"float",Xr=qr&&!Dn&&!An&&"draggable"in document.createElement("div"),Hr=function(){if(qr){if(_n)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Wr=function(e,t){var n=Bn(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=Hn(e,0,t),i=Hn(e,1,t),a=o&&Bn(o),s=i&&Bn(i),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+$n(o).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+$n(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&a.float&&"none"!==a.float){var u="left"===a.float?"left":"right";return!i||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return o&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=r&&"none"===n[$r]||i&&"none"===n[$r]&&l+c>r)?"vertical":"horizontal"},Vr=function(e){function t(e,n){return function(r,o,i,a){var s=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(null==e&&(n||s))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,o,i,a),n)(r,o,i,a);var l=(n?r:o).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},r=e.group;r&&"object"==yn(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},Yr=function(){!Hr&&sr&&Bn(sr,"display","none")},Jr=function(){!Hr&&sr&&Bn(sr,"display","")};qr&&document.addEventListener("click",function(e){if(Lr)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Lr=!1,!1},!0);var Kr=function(e){if(ir){e=e.touches?e.touches[0]:e;var t=(o=e.clientX,i=e.clientY,Ir.some(function(e){var t=e[er].options.emptyInsertThreshold;if(t&&!Wn(e)){var n=$n(e),r=o>=n.left-t&&o<=n.right+t,s=i>=n.top-t&&i<=n.bottom+t;return r&&s?a=e:void 0}}),a);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[er]._onDragOver(n)}}var o,i,a},Gr=function(e){ir&&ir.parentNode[er]._isOutsideThisEl(e.target)};function Zr(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=En({},t),e[er]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Wr(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Zr.supportPointer&&"PointerEvent"in window&&!Cn,emptyInsertThreshold:5};for(var r in or.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var o in Vr(t),this)"_"===o.charAt(0)&&"function"==typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!t.forceFallback&&Xr,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?xn(e,"pointerdown",this._onTapStart):(xn(e,"mousedown",this._onTapStart),xn(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(xn(e,"dragover",this),xn(e,"dragenter",this)),Ir.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),En(this,tr())}function Qr(e,t,n,r,o,i,a,s){var l,c,u=e[er],d=u.options.onMove;return!window.CustomEvent||_n||Rn?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=n,l.draggedRect=r,l.related=o||t,l.relatedRect=i||$n(t),l.willInsertAfter=s,l.originalEvent=a,e.dispatchEvent(l),d&&(c=d.call(u,l,a)),c}function eo(e){e.draggable=!1}function to(){Br=!1}function no(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function ro(e){return setTimeout(e,0)}function oo(e){return clearTimeout(e)}Zr.prototype={constructor:Zr,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Dr=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,ir):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,o=r.preventOnFilter,i=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,c=r.filter;if(function(e){Mr.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var r=t[n];r.checked&&Mr.push(r)}}(n),!ir&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||r.disabled)&&!l.isContentEditable&&(this.nativeDraggable||!Cn||!s||"SELECT"!==s.tagName.toUpperCase())&&!((s=In(s,r.draggable,n,!1))&&s.animated||ur===s)){if(hr=Vn(s),gr=Vn(s,r.draggable),"function"==typeof c){if(c.call(this,e,s,this))return Er({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),wr("filter",t,{evt:e}),void(o&&e.cancelable&&e.preventDefault())}else if(c&&(c=c.split(",").some(function(r){if(r=In(l,r.trim(),n,!1))return Er({sortable:t,rootEl:r,name:"filter",targetEl:s,fromEl:n,toEl:n}),wr("filter",t,{evt:e}),!0})))return void(o&&e.cancelable&&e.preventDefault());r.handle&&!In(l,r.handle,n,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,n){var r,o=this,i=o.el,a=o.options,s=i.ownerDocument;if(n&&!ir&&n.parentNode===i){var l=$n(n);if(lr=i,ar=(ir=n).parentNode,cr=ir.nextSibling,ur=n,br=a.group,Zr.dragged=ir,Or={target:ir,clientX:(t||e).clientX,clientY:(t||e).clientY},Tr=Or.clientX-l.left,Cr=Or.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,ir.style["will-change"]="all",r=function(){wr("delayEnded",o,{evt:e}),Zr.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!Tn&&o.nativeDraggable&&(ir.draggable=!0),o._triggerDragStart(e,t),Er({sortable:o,name:"choose",originalEvent:e}),kn(ir,a.chosenClass,!0))},a.ignore.split(",").forEach(function(e){qn(ir,e.trim(),eo)}),xn(s,"dragover",Kr),xn(s,"mousemove",Kr),xn(s,"touchmove",Kr),xn(s,"mouseup",o._onDrop),xn(s,"touchend",o._onDrop),xn(s,"touchcancel",o._onDrop),Tn&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ir.draggable=!0),wr("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(Rn||_n))r();else{if(Zr.eventCanceled)return void this._onDrop();xn(s,"mouseup",o._disableDelayedDrag),xn(s,"touchend",o._disableDelayedDrag),xn(s,"touchcancel",o._disableDelayedDrag),xn(s,"mousemove",o._delayedDragTouchMoveHandler),xn(s,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&xn(s,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(r,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ir&&eo(ir),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Nn(e,"mouseup",this._disableDelayedDrag),Nn(e,"touchend",this._disableDelayedDrag),Nn(e,"touchcancel",this._disableDelayedDrag),Nn(e,"mousemove",this._delayedDragTouchMoveHandler),Nn(e,"touchmove",this._delayedDragTouchMoveHandler),Nn(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?xn(document,"pointermove",this._onTouchMove):xn(document,t?"touchmove":"mousemove",this._onTouchMove):(xn(ir,"dragend",this),xn(lr,"dragstart",this._onDragStart));try{document.selection?ro(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(jr=!1,lr&&ir){wr("dragStarted",this,{evt:t}),this.nativeDraggable&&xn(document,"dragover",Gr);var n=this.options;!e&&kn(ir,n.dragClass,!1),kn(ir,n.ghostClass,!0),Zr.active=this,e&&this._appendGhost(),Er({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Sr){this._lastX=Sr.clientX,this._lastY=Sr.clientY,Yr();for(var e=document.elementFromPoint(Sr.clientX,Sr.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Sr.clientX,Sr.clientY))!==t;)t=e;if(ir.parentNode[er]._isOutsideThisEl(e),t)do{if(t[er]){if(t[er]._onDragOver({clientX:Sr.clientX,clientY:Sr.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Jr()}},_onTouchMove:function(e){if(Or){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,o=e.touches?e.touches[0]:e,i=sr&&Mn(sr,!0),a=sr&&i&&i.a,s=sr&&i&&i.d,l=zr&&Nr&&Yn(Nr),c=(o.clientX-Or.clientX+r.x)/(a||1)+(l?l[0]-kr[0]:0)/(a||1),u=(o.clientY-Or.clientY+r.y)/(s||1)+(l?l[1]-kr[1]:0)/(s||1);if(!Zr.active&&!jr){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(sr){i?(i.e+=c-(_r||0),i.f+=u-(Rr||0)):i={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");Bn(sr,"webkitTransform",d),Bn(sr,"mozTransform",d),Bn(sr,"msTransform",d),Bn(sr,"transform",d),_r=c,Rr=u,Sr=o}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!sr){var e=this.options.fallbackOnBody?document.body:lr,t=$n(ir,!0,zr,!0,e),n=this.options;if(zr){for(Nr=e;"static"===Bn(Nr,"position")&&"none"===Bn(Nr,"transform")&&Nr!==document;)Nr=Nr.parentNode;Nr!==document.body&&Nr!==document.documentElement?(Nr===document&&(Nr=zn()),t.top+=Nr.scrollTop,t.left+=Nr.scrollLeft):Nr=zn(),kr=Yn(Nr)}kn(sr=ir.cloneNode(!0),n.ghostClass,!1),kn(sr,n.fallbackClass,!0),kn(sr,n.dragClass,!0),Bn(sr,"transition",""),Bn(sr,"transform",""),Bn(sr,"box-sizing","border-box"),Bn(sr,"margin",0),Bn(sr,"top",t.top),Bn(sr,"left",t.left),Bn(sr,"width",t.width),Bn(sr,"height",t.height),Bn(sr,"opacity","0.8"),Bn(sr,"position",zr?"absolute":"fixed"),Bn(sr,"zIndex","100000"),Bn(sr,"pointerEvents","none"),Zr.ghost=sr,e.appendChild(sr),Bn(sr,"transform-origin",Tr/parseInt(sr.style.width)*100+"% "+Cr/parseInt(sr.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,o=n.options;wr("dragStart",this,{evt:e}),Zr.eventCanceled?this._onDrop():(wr("setupClone",this),Zr.eventCanceled||((dr=Qn(ir)).draggable=!1,dr.style["will-change"]="",this._hideClone(),kn(dr,this.options.chosenClass,!1),Zr.clone=dr),n.cloneId=ro(function(){wr("clone",n),Zr.eventCanceled||(n.options.removeCloneOnHide||lr.insertBefore(dr,ir),n._hideClone(),Er({sortable:n,name:"clone"}))}),!t&&kn(ir,o.dragClass,!0),t?(Lr=!0,n._loopId=setInterval(n._emulateDragOver,50)):(Nn(document,"mouseup",n._onDrop),Nn(document,"touchend",n._onDrop),Nn(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(n,r,ir)),xn(document,"drop",n),Bn(ir,"transform","translateZ(0)")),jr=!0,n._dragStartId=ro(n._dragStarted.bind(n,t,e)),xn(document,"selectstart",n),Ar=!0,Cn&&Bn(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,o,i=this.el,a=e.target,s=this.options,l=s.group,c=Zr.active,u=br===l,d=s.sort,f=vr||c,h=this,p=!1;if(!Br){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),a=In(a,s.draggable,i,!0),D("dragOver"),Zr.eventCanceled)return p;if(ir.contains(e.target)||a.animated&&a.animatingX&&a.animatingY||h._ignoreWhileAnimating===a)return x(!1);if(Lr=!1,c&&!s.disabled&&(u?d||(r=ar!==lr):vr===this||(this.lastPutMode=br.checkPull(this,c,ir,e))&&l.checkPut(this,c,ir,e))){if(o="vertical"===this._getDirection(e,a),t=$n(ir),D("dragOverValid"),Zr.eventCanceled)return p;if(r)return ar=lr,P(),this._hideClone(),D("revert"),Zr.eventCanceled||(cr?lr.insertBefore(ir,cr):lr.appendChild(ir)),x(!0);var g=Wn(i,s.draggable);if(!g||function(e,t,n){var r=$n(Wn(n.el,n.options.draggable)),o=10;return t?e.clientX>r.right+o||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+o}(e,o,this)&&!g.animated){if(g===ir)return x(!1);if(g&&i===e.target&&(a=g),a&&(n=$n(a)),!1!==Qr(lr,i,ir,t,a,n,e,!!a))return P(),i.appendChild(ir),ar=i,N(),x(!0)}else if(g&&function(e,t,n){var r=$n(Hn(n.el,0,n.options,!0)),o=10;return t?e.clientX<r.left-o||e.clientY<r.top&&e.clientX<r.right:e.clientY<r.top-o||e.clientY<r.bottom&&e.clientX<r.left}(e,o,this)){var m=Hn(i,0,s,!0);if(m===ir)return x(!1);if(n=$n(a=m),!1!==Qr(lr,i,ir,t,a,n,e,!1))return P(),i.insertBefore(ir,m),ar=i,N(),x(!0)}else if(a.parentNode===i){n=$n(a);var b,v,y,w=ir.parentNode!==i,E=!function(e,t,n){var r=n?e.left:e.top,o=n?e.right:e.bottom,i=n?e.width:e.height,a=n?t.left:t.top,s=n?t.right:t.bottom,l=n?t.width:t.height;return r===a||o===s||r+i/2===a+l/2}(ir.animated&&ir.toRect||t,a.animated&&a.toRect||n,o),O=o?"top":"left",S=Xn(a,"top","top")||Xn(ir,"top","top"),_=S?S.scrollTop:void 0;if(Dr!==a&&(v=n[O],Ur=!1,Fr=!E&&s.invertSwap||w),b=function(e,t,n,r,o,i,a,s){var l=r?e.clientY:e.clientX,c=r?n.height:n.width,u=r?n.top:n.left,d=r?n.bottom:n.right,f=!1;if(!a)if(s&&xr<c*o){if(!Ur&&(1===Pr?l>u+c*i/2:l<d-c*i/2)&&(Ur=!0),Ur)f=!0;else if(1===Pr?l<u+xr:l>d-xr)return-Pr}else if(l>u+c*(1-o)/2&&l<d-c*(1-o)/2)return function(e){return Vn(ir)<Vn(e)?1:-1}(t);if((f=f||a)&&(l<u+c*i/2||l>d-c*i/2))return l>u+c/2?1:-1;return 0}(e,a,n,o,E?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,Fr,Dr===a),0!==b){var R=Vn(ir);do{R-=b,y=ar.children[R]}while(y&&("none"===Bn(y,"display")||y===sr))}if(0===b||y===a)return x(!1);Dr=a,Pr=b;var T=a.nextElementSibling,C=!1,A=Qr(lr,i,ir,t,a,n,e,C=1===b);if(!1!==A)return 1!==A&&-1!==A||(C=1===A),Br=!0,setTimeout(to,30),P(),C&&!T?i.appendChild(ir):a.parentNode.insertBefore(ir,C?T:a),S&&Zn(S,0,_-S.scrollTop),ar=ir.parentNode,void 0===v||Fr||(xr=Math.abs(v-$n(a)[O])),N(),x(!0)}if(i.contains(ir))return x(!1)}return!1}function D(s,l){wr(s,h,vn({evt:e,isOwner:u,axis:o?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:d,fromSortable:f,target:a,completed:x,onMove:function(n,r){return Qr(lr,i,ir,t,n,$n(n),e,r)},changed:N},l))}function P(){D("dragOverAnimationCapture"),h.captureAnimationState(),h!==f&&f.captureAnimationState()}function x(t){return D("dragOverCompleted",{insertion:t}),t&&(u?c._hideClone():c._showClone(h),h!==f&&(kn(ir,vr?vr.options.ghostClass:c.options.ghostClass,!1),kn(ir,s.ghostClass,!0)),vr!==h&&h!==Zr.active?vr=h:h===Zr.active&&vr&&(vr=null),f===h&&(h._ignoreWhileAnimating=a),h.animateAll(function(){D("dragOverAnimationComplete"),h._ignoreWhileAnimating=null}),h!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(a===ir&&!ir.animated||a===i&&!a.animated)&&(Dr=null),s.dragoverBubble||e.rootEl||a===document||(ir.parentNode[er]._isOutsideThisEl(e.target),!t&&Kr(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),p=!0}function N(){pr=Vn(ir),mr=Vn(ir,s.draggable),Er({sortable:h,name:"change",toEl:i,newIndex:pr,newDraggableIndex:mr,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){Nn(document,"mousemove",this._onTouchMove),Nn(document,"touchmove",this._onTouchMove),Nn(document,"pointermove",this._onTouchMove),Nn(document,"dragover",Kr),Nn(document,"mousemove",Kr),Nn(document,"touchmove",Kr)},_offUpEvents:function(){var e=this.el.ownerDocument;Nn(e,"mouseup",this._onDrop),Nn(e,"touchend",this._onDrop),Nn(e,"pointerup",this._onDrop),Nn(e,"touchcancel",this._onDrop),Nn(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;pr=Vn(ir),mr=Vn(ir,n.draggable),wr("drop",this,{evt:e}),ar=ir&&ir.parentNode,pr=Vn(ir),mr=Vn(ir,n.draggable),Zr.eventCanceled||(jr=!1,Fr=!1,Ur=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),oo(this.cloneId),oo(this._dragStartId),this.nativeDraggable&&(Nn(document,"drop",this),Nn(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Cn&&Bn(document.body,"user-select",""),Bn(ir,"transform",""),e&&(Ar&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),sr&&sr.parentNode&&sr.parentNode.removeChild(sr),(lr===ar||vr&&"clone"!==vr.lastPutMode)&&dr&&dr.parentNode&&dr.parentNode.removeChild(dr),ir&&(this.nativeDraggable&&Nn(ir,"dragend",this),eo(ir),ir.style["will-change"]="",Ar&&!jr&&kn(ir,vr?vr.options.ghostClass:this.options.ghostClass,!1),kn(ir,this.options.chosenClass,!1),Er({sortable:this,name:"unchoose",toEl:ar,newIndex:null,newDraggableIndex:null,originalEvent:e}),lr!==ar?(pr>=0&&(Er({rootEl:ar,name:"add",toEl:ar,fromEl:lr,originalEvent:e}),Er({sortable:this,name:"remove",toEl:ar,originalEvent:e}),Er({rootEl:ar,name:"sort",toEl:ar,fromEl:lr,originalEvent:e}),Er({sortable:this,name:"sort",toEl:ar,originalEvent:e})),vr&&vr.save()):pr!==hr&&pr>=0&&(Er({sortable:this,name:"update",toEl:ar,originalEvent:e}),Er({sortable:this,name:"sort",toEl:ar,originalEvent:e})),Zr.active&&(null!=pr&&-1!==pr||(pr=hr,mr=gr),Er({sortable:this,name:"end",toEl:ar,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){wr("nulling",this),lr=ir=ar=sr=cr=dr=ur=fr=Or=Sr=Ar=pr=mr=hr=gr=Dr=Pr=vr=br=Zr.dragged=Zr.ghost=Zr.clone=Zr.active=null,Mr.forEach(function(e){e.checked=!0}),Mr.length=_r=Rr=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":ir&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,o=n.length,i=this.options;r<o;r++)In(e=n[r],i.draggable,this.el,!1)&&t.push(e.getAttribute(i.dataIdAttr)||no(e));return t},sort:function(e,t){var n={},r=this.el;this.toArray().forEach(function(e,t){var o=r.children[t];In(o,this.options.draggable,r,!1)&&(n[e]=o)},this),t&&this.captureAnimationState(),e.forEach(function(e){n[e]&&(r.removeChild(n[e]),r.appendChild(n[e]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return In(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=or.modifyOption(this,e,t);n[e]=void 0!==r?r:t,"group"===e&&Vr(n)},destroy:function(){wr("destroy",this);var e=this.el;e[er]=null,Nn(e,"mousedown",this._onTapStart),Nn(e,"touchstart",this._onTapStart),Nn(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(Nn(e,"dragover",this),Nn(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Ir.splice(Ir.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!fr){if(wr("hideClone",this),Zr.eventCanceled)return;Bn(dr,"display","none"),this.options.removeCloneOnHide&&dr.parentNode&&dr.parentNode.removeChild(dr),fr=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(fr){if(wr("showClone",this),Zr.eventCanceled)return;ir.parentNode!=lr||this.options.group.revertClone?cr?lr.insertBefore(dr,cr):lr.appendChild(dr):lr.insertBefore(dr,ir),this.options.group.revertClone&&this.animate(ir,dr),Bn(dr,"display",""),fr=!1}}else this._hideClone()}},qr&&xn(document,"touchmove",function(e){(Zr.active||jr)&&e.cancelable&&e.preventDefault()}),Zr.utils={on:xn,off:Nn,css:Bn,find:qn,is:function(e,t){return!!In(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:Gn,closest:In,toggleClass:kn,clone:Qn,index:Vn,nextTick:ro,cancelNextTick:oo,detectDirection:Wr,getChild:Hn},Zr.get=function(e){return e[er]},Zr.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Zr.utils=vn(vn({},Zr.utils),e.utils)),or.mount(e)})},Zr.create=function(e,t){return new Zr(e,t)},Zr.version="1.14.0";var io,ao,so,lo,co,uo,fo=[],ho=!1;function po(){fo.forEach(function(e){clearInterval(e.pid)}),fo=[]}function go(){clearInterval(uo)}var mo=Gn(function(e,t,n,r){if(t.scroll){var o,i=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,l=t.scrollSpeed,c=zn(),u=!1;ao!==n&&(ao=n,po(),io=t.scroll,o=t.scrollFn,!0===io&&(io=Jn(n,!0)));var d=0,f=io;do{var h=f,p=$n(h),g=p.top,m=p.bottom,b=p.left,v=p.right,y=p.width,w=p.height,E=void 0,O=void 0,S=h.scrollWidth,_=h.scrollHeight,R=Bn(h),T=h.scrollLeft,C=h.scrollTop;h===c?(E=y<S&&("auto"===R.overflowX||"scroll"===R.overflowX||"visible"===R.overflowX),O=w<_&&("auto"===R.overflowY||"scroll"===R.overflowY||"visible"===R.overflowY)):(E=y<S&&("auto"===R.overflowX||"scroll"===R.overflowX),O=w<_&&("auto"===R.overflowY||"scroll"===R.overflowY));var A=E&&(Math.abs(v-i)<=s&&T+y<S)-(Math.abs(b-i)<=s&&!!T),D=O&&(Math.abs(m-a)<=s&&C+w<_)-(Math.abs(g-a)<=s&&!!C);if(!fo[d])for(var P=0;P<=d;P++)fo[P]||(fo[P]={});fo[d].vx==A&&fo[d].vy==D&&fo[d].el===h||(fo[d].el=h,fo[d].vx=A,fo[d].vy=D,clearInterval(fo[d].pid),0==A&&0==D||(u=!0,fo[d].pid=setInterval(function(){r&&0===this.layer&&Zr.active._onTouchMove(co);var t=fo[this.layer].vy?fo[this.layer].vy*l:0,n=fo[this.layer].vx?fo[this.layer].vx*l:0;"function"==typeof o&&"continue"!==o.call(Zr.dragged.parentNode[er],n,t,e,co,fo[this.layer].el)||Zn(fo[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==c&&(f=Jn(f,!1)));ho=u}},30),bo=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,o=e.activeSortable,i=e.dispatchSortableEvent,a=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var l=n||o;a();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(c.clientX,c.clientY);s(),l&&!l.el.contains(u)&&(i("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function vo(){}function yo(){}function wo(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function Eo(e,t,n){const r=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,r)}vo.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=Hn(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:bo},En(vo,{pluginName:"revertOnSpill"}),yo.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:bo},En(yo,{pluginName:"removeOnSpill"}),Zr.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?xn(document,"dragover",this._handleAutoScroll):this.options.supportPointer?xn(document,"pointermove",this._handleFallbackAutoScroll):t.touches?xn(document,"touchmove",this._handleFallbackAutoScroll):xn(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?Nn(document,"dragover",this._handleAutoScroll):(Nn(document,"pointermove",this._handleFallbackAutoScroll),Nn(document,"touchmove",this._handleFallbackAutoScroll),Nn(document,"mousemove",this._handleFallbackAutoScroll)),go(),po(),clearTimeout(Un),Un=void 0},nulling:function(){co=ao=io=ho=uo=so=lo=null,fo.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,i=document.elementFromPoint(r,o);if(co=e,t||this.options.forceAutoScrollFallback||Rn||_n||Cn){mo(e,this.options,i,t);var a=Jn(i,!0);!ho||uo&&r===so&&o===lo||(uo&&go(),uo=setInterval(function(){var i=Jn(document.elementFromPoint(r,o),!0);i!==a&&(a=i,po()),mo(e,n.options,i,t)},10),so=r,lo=o)}else{if(!this.options.bubbleScroll||Jn(i,!0)===zn())return void po();mo(e,this.options,Jn(i,!1),!1)}}},En(e,{pluginName:"scroll",initializeByDefault:!0})}),Zr.mount(yo,vo);var Oo="undefined"!=typeof window?window.console:global.console;var So=/-(\w)/g,_o=function(e){const t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}(e=>e.replace(So,(e,t)=>t.toUpperCase())),Ro=["Start","Add","Remove","Update","End"],To=["Choose","Unchoose","Sort","Filter","Clone"],Co=["Move"],Ao=[Co,Ro,To].flatMap(e=>e).map(e=>`on${e}`),Do={manage:Co,manageAndEmit:Ro,emit:To};var Po=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function xo(e){return["id","class","role","style"].includes(e)||e.startsWith("data-")||e.startsWith("aria-")||e.startsWith("on")}function No(e){return e.reduce((e,[t,n])=>(e[t]=n,e),{})}function jo(e){return Object.entries(e).filter(([e,t])=>!xo(e)).map(([e,t])=>[_o(e),t]).filter(([e,t])=>{return n=e,!(-1!==Ao.indexOf(n));var n})}var Lo=({el:e})=>e,Io=e=>e.__draggable_context,Uo=class{constructor({nodes:{header:e,default:t,footer:n},root:r,realList:o}){this.defaultNodes=t,this.children=[...e,...t,...n],this.externalComponent=r.externalComponent,this.rootTransition=r.transition,this.tag=r.tag,this.realList=o}get _isRootComponent(){return this.externalComponent||this.rootTransition}render(e,t){const{tag:n,children:r,_isRootComponent:o}=this;return e(n,t,o?{default:()=>r}:r)}updated(){const{defaultNodes:e,realList:t}=this;e.forEach((e,n)=>{var r,o;r=Lo(e),o={element:t[n],index:n},r.__draggable_context=o})}getUnderlyingVm(e){return Io(e)}getVmIndexFromDomIndex(e,t){const{defaultNodes:n}=this,{length:r}=n,o=t.children,i=o.item(e);if(null===i)return r;const a=Io(i);if(a)return a.index;if(0===r)return 0;const s=Lo(n[0]);return e<[...o].findIndex(e=>e===s)?0:r}};function Fo(e){const t=["transition-group","TransitionGroup"].includes(e);const n=!function(e){return Po.includes(e)}(e)&&!t;return{transition:t,externalComponent:n,tag:n?r(e):t?i:e}}function ko({$slots:e,tag:t,realList:n,getKey:r}){const o=function({$slots:e,realList:t,getKey:n}){const r=t||[],[o,i]=["header","footer"].map(t=>function(e,t){const n=e[t];return n?n():[]}(e,t)),{item:a}=e;if(!a)throw new Error("draggable element must have an item slot");const s=r.flatMap((e,t)=>a({element:e,index:t}).map(t=>(t.key=n(e),t.props={...t.props||{},"data-draggable":!0},t)));if(s.length!==r.length)throw new Error("Item slot must have only one child");return{header:o,footer:i,default:s}}({$slots:e,realList:n,getKey:r}),i=Fo(t);return new Uo({nodes:o,root:i,realList:n})}function Bo(e,t){n(()=>this.$emit(e.toLowerCase(),t))}function Mo(e){return(t,n)=>{if(null!==this.realList)return this[`onDrag${e}`](t,n)}}function qo(e){const t=Mo.call(this,e);return(n,r)=>{t.call(this,n,r),Bo.call(this,e,n)}}var zo=null,$o=t({name:"draggable",inheritAttrs:!1,props:{list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:e=>e},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},emits:["update:modelValue","change",...[...Do.manageAndEmit,...Do.emit].map(e=>e.toLowerCase())],data:()=>({error:!1}),render(){try{this.error=!1;const{$slots:e,$attrs:t,tag:n,componentData:r,realList:i,getKey:a}=this,s=ko({$slots:e,tag:n,realList:i,getKey:a});this.componentStructure=s;const l=function({$attrs:e,componentData:t={}}){return{...No(Object.entries(e).filter(([e,t])=>xo(e))),...t}}({$attrs:t,componentData:r});return s.render(o,l)}catch(e){return this.error=!0,o("pre",{style:{color:"red"}},e.stack)}},created(){null!==this.list&&null!==this.modelValue&&Oo.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted(){if(this.error)return;const{$attrs:e,$el:t,componentStructure:n}=this;n.updated();const r=function({$attrs:e,callBackBuilder:t}){const n=No(jo(e));Object.entries(t).forEach(([e,t])=>{Do[e].forEach(e=>{n[`on${e}`]=t(e)})});const r=`[data-draggable]${n.draggable||""}`;return{...n,draggable:r}}({$attrs:e,callBackBuilder:{manageAndEmit:e=>qo.call(this,e),emit:e=>Bo.bind(this,e),manage:e=>Mo.call(this,e)}}),o=1===t.nodeType?t:t.parentElement;this._sortable=new Zr(o,r),this.targetDomElement=o,o.__draggable_component__=this},updated(){this.componentStructure.updated()},beforeUnmount(){void 0!==this._sortable&&this._sortable.destroy()},computed:{realList(){const{list:e}=this;return e||this.modelValue},getKey(){const{itemKey:e}=this;return"function"==typeof e?e:t=>t[e]}},watch:{$attrs:{handler(e){const{_sortable:t}=this;t&&jo(e).forEach(([e,n])=>{t.option(e,n)})},deep:!0}},methods:{getUnderlyingVm(e){return this.componentStructure.getUnderlyingVm(e)||null},getUnderlyingPotencialDraggableComponent:e=>e.__draggable_component__,emitChanges(e){n(()=>this.$emit("change",e))},alterList(e){if(this.list)return void e(this.list);const t=[...this.modelValue];e(t),this.$emit("update:modelValue",t)},spliceList(){this.alterList(e=>e.splice(...arguments))},updatePosition(e,t){this.alterList(n=>n.splice(t,0,n.splice(e,1)[0]))},getRelatedContextFromMoveEvent({to:e,related:t}){const n=this.getUnderlyingPotencialDraggableComponent(e);if(!n)return{component:n};const r=n.realList,o={list:r,component:n};return e!==t&&r?{...n.getUnderlyingVm(t)||{},...o}:o},getVmIndexFromDomIndex(e){return this.componentStructure.getVmIndexFromDomIndex(e,this.targetDomElement)},onDragStart(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),zo=e.item},onDragAdd(e){const t=e.item._underlying_vm_;if(void 0===t)return;wo(e.item);const n=this.getVmIndexFromDomIndex(e.newIndex);this.spliceList(n,0,t);const r={element:t,newIndex:n};this.emitChanges({added:r})},onDragRemove(e){if(Eo(this.$el,e.item,e.oldIndex),"clone"===e.pullMode)return void wo(e.clone);const{index:t,element:n}=this.context;this.spliceList(t,1);const r={element:n,oldIndex:t};this.emitChanges({removed:r})},onDragUpdate(e){wo(e.item),Eo(e.from,e.item,e.oldIndex);const t=this.context.index,n=this.getVmIndexFromDomIndex(e.newIndex);this.updatePosition(t,n);const r={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:r})},computeFutureIndex(e,t){if(!e.element)return 0;const n=[...t.to.children].filter(e=>"none"!==e.style.display),r=n.indexOf(t.related),o=e.component.getVmIndexFromDomIndex(r);return-1===n.indexOf(zo)&&t.willInsertAfter?o+1:o},onDragMove(e,t){const{move:n,realList:r}=this;if(!n||!r)return!0;const o=this.getRelatedContextFromMoveEvent(e),i=this.computeFutureIndex(o,e),a={...this.context,futureIndex:i};return n({...e,relatedContext:o,draggedContext:a},t)},onDragEnd(){zo=null}}});export{mn as n,$o as t};
|