import{k as e,Y as t,n as a,X as n,bv as o,aj as i,ck as r,ai as l,an as s,cD as c,cE as u,cF as d,cG as v,af as p,cH as b,cI as f,a7 as m,h as g,P as h,l as y,c as $,g as x,a as k,a$ as w,b as C,cJ as _,F as S,G as T,H as P,a6 as B,aW as O,_ as E,b5 as A,I as R,aL as L,aK as D,bY as I,cK as z,q as M,aU as j,aV as N,aZ as H,bR as G,A as W,bW as K,$ as X,aI as F,j as q,m as V,r as Y,bb as U,aH as J,v as Z,f as Q,o as ee,ay as te,p as ae,aO as ne,bh as oe,b9 as ie,aM as re,u as le,C as se,bU as ce,cL as ue,bg as de,cM as ve,bt as pe}from"./index-b8cd3494.js";import{o as be}from"./omit-cfb7cc57.js";const fe=()=>{if("undefined"==typeof navigator||"undefined"==typeof window)return!1;const e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substring(0,4))};function me(i,r){const{defaultValue:l,value:s=e()}=r||{};let c="function"==typeof i?i():i;void 0!==s.value&&(c=t(s)),void 0!==l&&(c="function"==typeof l?l():l);const u=e(c),d=e(c);return a((()=>{let e=void 0!==s.value?s.value:u.value;r.postState&&(e=r.postState(e)),d.value=e})),n(s,(()=>{u.value=s.value})),[d,function(e){const t=d.value;u.value=e,o(d.value)!==e&&r.onChange&&r.onChange(e,t)}]}function ge(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}function he(e,t){for(var a=-1,n=null==e?0:e.length,o=Array(n);++a<n;)o[a]=t(e[a],a,e);return o}var ye=l?l.prototype:void 0,$e=ye?ye.toString:void 0;function xe(e){if("string"==typeof e)return e;if(s(e))return he(e,xe)+"";if(ge(e))return $e?$e.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ke(e){return e}var we=Date.now;var Ce=function(){try{var e=c(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();const _e=Ce;var Se=_e?function(e,t){return _e(e,"toString",{configurable:!0,enumerable:!1,value:(a=t,function(){return a}),writable:!0});var a}:ke;var Te,Pe,Be;const Oe=(Te=Se,Pe=0,Be=0,function(){var e=we(),t=16-(e-Be);if(Be=e,t>0){if(++Pe>=800)return arguments[0]}else Pe=0;return Te.apply(void 0,arguments)});function Ee(e,t,a){"__proto__"==t&&_e?_e(e,t,{configurable:!0,enumerable:!0,value:a,writable:!0}):e[t]=a}var Ae=Object.prototype.hasOwnProperty;function Re(e,t,a){var n=e[t];Ae.call(e,t)&&u(n,a)&&(void 0!==a||t in e)||Ee(e,t,a)}var Le=Math.max;function De(e,t,a){return t=Le(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=Le(n.length-t,0),r=Array(i);++o<i;)r[o]=n[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=n[o];return l[t]=a(r),function(e,t,a){switch(a.length){case 0:return e.call(t);case 1:return e.call(t,a[0]);case 2:return e.call(t,a[0],a[1]);case 3:return e.call(t,a[0],a[1],a[2])}return e.apply(t,a)}(e,this,l)}}var Ie=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ze=/^\w*$/;function Me(e,t){if(s(e))return!1;var a=typeof e;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=e&&!ge(e))||(ze.test(e)||!Ie.test(e)||null!=t&&e in Object(t))}function je(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var a=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=a.cache;if(i.has(o))return i.get(o);var r=e.apply(this,n);return a.cache=i.set(o,r)||i,r};return a.cache=new(je.Cache||d),a}je.Cache=d;var Ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,He=/\\(\\)?/g,Ge=function(e){var t=je(e,(function(e){return 500===a.size&&a.clear(),e})),a=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ne,(function(e,a,n,o){t.push(n?o.replace(He,"$1"):a||e)})),t}));const We=Ge;function Ke(e,t){return s(e)?e:Me(e,t)?[e]:We(function(e){return null==e?"":xe(e)}(e))}function Xe(e){if("string"==typeof e||ge(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Fe(e,t){for(var a=0,n=(t=Ke(t,e)).length;null!=e&&a<n;)e=e[Xe(t[a++])];return a&&a==n?e:void 0}var qe=l?l.isConcatSpreadable:void 0;function Ve(e){return s(e)||v(e)||!!(qe&&e&&e[qe])}function Ye(e,t,a,n,o){var i=-1,r=e.length;for(a||(a=Ve),o||(o=[]);++i<r;){var l=e[i];t>0&&a(l)?t>1?Ye(l,t-1,a,n,o):p(o,l):n||(o[o.length]=l)}return o}function Ue(e){return(null==e?0:e.length)?Ye(e,1):[]}function Je(e){return Oe(De(e,void 0,Ue),e+"")}function Ze(e,t){return null!=e&&t in Object(e)}function Qe(e,t){return null!=e&&function(e,t,a){for(var n=-1,o=(t=Ke(t,e)).length,i=!1;++n<o;){var r=Xe(t[n]);if(!(i=null!=e&&a(e,r)))break;e=e[r]}return i||++n!=o?i:!!(o=null==e?0:e.length)&&b(o)&&f(r,o)&&(s(e)||v(e))}(e,t,Ze)}function et(e,t,a,n){if(!m(e))return e;for(var o=-1,i=(t=Ke(t,e)).length,r=i-1,l=e;null!=l&&++o<i;){var s=Xe(t[o]),c=a;if("__proto__"===s||"constructor"===s||"prototype"===s)return e;if(o!=r){var u=l[s];void 0===(c=n?n(u,s,l):void 0)&&(c=m(u)?u:f(t[o+1])?[]:{})}Re(l,s,c),l=l[s]}return e}function tt(e,t){return function(e,t,a){for(var n=-1,o=t.length,i={};++n<o;){var r=t[n],l=Fe(e,r);a(l,r)&&et(i,Ke(r,e),l)}return i}(e,t,(function(t,a){return Qe(e,a)}))}const at=Je((function(e,t){return null==e?{}:tt(e,t)})),nt={adjustX:1,adjustY:1},ot=[0,0],it={topLeft:{points:["bl","tl"],overflow:nt,offset:[0,-4],targetOffset:ot},topCenter:{points:["bc","tc"],overflow:nt,offset:[0,-4],targetOffset:ot},topRight:{points:["br","tr"],overflow:nt,offset:[0,-4],targetOffset:ot},bottomLeft:{points:["tl","bl"],overflow:nt,offset:[0,4],targetOffset:ot},bottomCenter:{points:["tc","bc"],overflow:nt,offset:[0,4],targetOffset:ot},bottomRight:{points:["tr","br"],overflow:nt,offset:[0,4],targetOffset:ot}};var rt=globalThis&&globalThis.__rest||function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(a[n[o]]=e[n[o]])}return a};const lt=g({compatConfig:{MODE:3},props:{minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},arrow:{type:Boolean,default:!1},prefixCls:h.string.def("rc-dropdown"),transitionName:String,overlayClassName:h.string.def(""),openClassName:String,animation:h.any,align:h.object,overlayStyle:{type:Object,default:void 0},placement:h.string.def("bottomLeft"),overlay:h.any,trigger:h.oneOfType([h.string,h.arrayOf(h.string)]).def("hover"),alignPoint:{type:Boolean,default:void 0},showAction:h.array,hideAction:h.array,getPopupContainer:Function,visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},mouseEnterDelay:h.number.def(.15),mouseLeaveDelay:h.number.def(.1)},emits:["visibleChange","overlayClick"],setup(t,a){let{slots:o,emit:i,expose:r}=a;const l=e(!!t.visible);n((()=>t.visible),(e=>{void 0!==e&&(l.value=e)}));const s=e();r({triggerRef:s});const c=e=>{void 0===t.visible&&(l.value=!1),i("overlayClick",e)},u=e=>{void 0===t.visible&&(l.value=e),i("visibleChange",e)},d=()=>{var e;const a=null===(e=o.overlay)||void 0===e?void 0:e.call(o),n={prefixCls:`${t.prefixCls}-menu`,onClick:c};return $(S,{key:_},[t.arrow&&$("div",{class:`${t.prefixCls}-arrow`},null),C(a,n,!1)])},v=y((()=>{const{minOverlayWidthMatchTrigger:e=!t.alignPoint}=t;return e})),p=()=>{var e;const a=null===(e=o.default)||void 0===e?void 0:e.call(o);return l.value&&a?C(a[0],{class:t.openClassName||`${t.prefixCls}-open`},!1):a},b=y((()=>t.hideAction||-1===t.trigger.indexOf("contextmenu")?t.hideAction:["click"]));return()=>{const{prefixCls:e,arrow:a,showAction:n,overlayStyle:o,trigger:i,placement:r,align:c,getPopupContainer:f,transitionName:m,animation:g,overlayClassName:h}=t,y=rt(t,["prefixCls","arrow","showAction","overlayStyle","trigger","placement","align","getPopupContainer","transitionName","animation","overlayClassName"]);return $(w,x(x({},y),{},{prefixCls:e,ref:s,popupClassName:k(h,{[`${e}-show-arrow`]:a}),popupStyle:o,builtinPlacements:it,action:i,showAction:n,hideAction:b.value||[],popupPlacement:r,popupAlign:c,popupTransitionName:m,popupAnimation:g,popupVisible:l.value,stretch:v.value?"minWidth":"",onPopupVisibleChange:u,getPopupContainer:f}),{popup:d,default:p})}}});function st(e){const t=T([]),a=T("function"==typeof e?e():e),n=function(e){const t=T(),a=T(!1);return P((()=>{a.value=!0,B.cancel(t.value)})),function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];a.value||(B.cancel(t.value),t.value=B((()=>{e(...o)})))}}((()=>{let e=a.value;t.value.forEach((t=>{e=t(e)})),t.value=[],a.value=e}));return[a,function(e){t.value.push(e),n()}]}const ct=g({compatConfig:{MODE:3},name:"TabNode",props:{id:{type:String},prefixCls:{type:String},tab:{type:Object},active:{type:Boolean},closable:{type:Boolean},editable:{type:Object},onClick:{type:Function},onResize:{type:Function},renderWrapper:{type:Function},removeAriaLabel:{type:String},onFocus:{type:Function}},emits:["click","resize","remove","focus"],setup(t,a){let{expose:n,attrs:o}=a;const i=e();function r(e){var a;(null===(a=t.tab)||void 0===a?void 0:a.disabled)||t.onClick(e)}n({domRef:i});const l=y((()=>{var e;return t.editable&&!1!==t.closable&&!(null===(e=t.tab)||void 0===e?void 0:e.disabled)}));return()=>{var e;const{prefixCls:a,id:n,active:s,tab:{key:c,tab:u,disabled:d,closeIcon:v},renderWrapper:p,removeAriaLabel:b,editable:f,onFocus:m}=t,g=`${a}-tab`,h=$("div",{key:c,ref:i,class:k(g,{[`${g}-with-remove`]:l.value,[`${g}-active`]:s,[`${g}-disabled`]:d}),style:o.style,onClick:r},[$("div",{role:"tab","aria-selected":s,id:n&&`${n}-tab-${c}`,class:`${g}-btn`,"aria-controls":n&&`${n}-panel-${c}`,"aria-disabled":d,tabindex:d?null:0,onClick:e=>{e.stopPropagation(),r(e)},onKeydown:e=>{[O.SPACE,O.ENTER].includes(e.which)&&(e.preventDefault(),r(e))},onFocus:m},["function"==typeof u?u():u]),l.value&&$("button",{type:"button","aria-label":b||"remove",tabindex:0,class:`${g}-remove`,onClick:e=>{e.stopPropagation(),function(e){var a;e.preventDefault(),e.stopPropagation(),t.editable.onEdit("remove",{key:null===(a=t.tab)||void 0===a?void 0:a.key,event:e})}(e)}},[(null==v?void 0:v())||(null===(e=f.removeIcon)||void 0===e?void 0:e.call(f))||"×"])]);return p?p(h):h}}}),ut={width:0,height:0,left:0,top:0};const dt=g({compatConfig:{MODE:3},name:"AddButton",inheritAttrs:!1,props:{prefixCls:String,editable:{type:Object},locale:{type:Object,default:void 0}},setup(t,a){let{expose:n,attrs:o}=a;const i=e();return n({domRef:i}),()=>{const{prefixCls:e,editable:a,locale:n}=t;return a&&!1!==a.showAdd?$("button",{ref:i,type:"button",class:`${e}-nav-add`,style:o.style,"aria-label":(null==n?void 0:n.addAriaLabel)||"Add tab",onClick:e=>{a.onEdit("add",{event:e})}},[a.addIcon?a.addIcon():"+"]):null}}}),vt=g({compatConfig:{MODE:3},name:"OperationNode",inheritAttrs:!1,props:{prefixCls:{type:String},id:{type:String},tabs:{type:Object},rtl:{type:Boolean},tabBarGutter:{type:Number},activeKey:{type:[String,Number]},mobile:{type:Boolean},moreIcon:h.any,moreTransitionName:{type:String},editable:{type:Object},locale:{type:Object,default:void 0},removeAriaLabel:String,onTabClick:{type:Function},popupClassName:String,getPopupContainer:M()},emits:["tabClick"],slots:Object,setup(e,t){let{attrs:a,slots:o}=t;const[i,r]=A(!1),[l,s]=A(null),c=t=>{const a=e.tabs.filter((e=>!e.disabled));let n=a.findIndex((e=>e.key===l.value))||0;const o=a.length;for(let e=0;e<o;e+=1){n=(n+t+o)%o;const e=a[n];if(!e.disabled)return void s(e.key)}},u=t=>{const{which:a}=t;if(i.value)switch(a){case O.UP:c(-1),t.preventDefault();break;case O.DOWN:c(1),t.preventDefault();break;case O.ESC:r(!1);break;case O.SPACE:case O.ENTER:null!==l.value&&e.onTabClick(l.value,t)}else[O.DOWN,O.SPACE,O.ENTER].includes(a)&&(r(!0),t.preventDefault())},d=y((()=>`${e.id}-more-popup`)),v=y((()=>null!==l.value?`${d.value}-${l.value}`:null));return R((()=>{n(l,(()=>{const e=document.getElementById(v.value);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),{flush:"post",immediate:!0})})),n(i,(()=>{i.value||s(null)})),L({}),()=>{var t;const{prefixCls:n,id:s,tabs:c,locale:p,mobile:b,moreIcon:f=(null===(t=o.moreIcon)||void 0===t?void 0:t.call(o))||$(D,null,null),moreTransitionName:m,editable:g,tabBarGutter:h,rtl:y,onTabClick:x,popupClassName:w}=e;if(!c.length)return null;const C=`${n}-dropdown`,_=null==p?void 0:p.dropdownAriaLabel,S={[y?"marginRight":"marginLeft"]:h};c.length||(S.visibility="hidden",S.order=1);const T=k({[`${C}-rtl`]:y,[`${w}`]:!0}),P=b?null:$(lt,{prefixCls:C,trigger:["hover"],visible:i.value,transitionName:m,onVisibleChange:r,overlayClassName:T,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:e.getPopupContainer},{overlay:()=>$(I,{onClick:e=>{let{key:t,domEvent:a}=e;x(t,a),r(!1)},id:d.value,tabindex:-1,role:"listbox","aria-activedescendant":v.value,selectedKeys:[l.value],"aria-label":void 0!==_?_:"expanded dropdown"},{default:()=>[c.map((t=>{var a,n;const o=g&&!1!==t.closable&&!t.disabled;return $(z,{key:t.key,id:`${d.value}-${t.key}`,role:"option","aria-controls":s&&`${s}-panel-${t.key}`,disabled:t.disabled},{default:()=>[$("span",null,["function"==typeof t.tab?t.tab():t.tab]),o&&$("button",{type:"button","aria-label":e.removeAriaLabel||"remove",tabindex:0,class:`${C}-menu-item-remove`,onClick:a=>{var n,o;a.stopPropagation(),n=a,o=t.key,n.preventDefault(),n.stopPropagation(),e.editable.onEdit("remove",{key:o,event:n})}},[(null===(a=t.closeIcon)||void 0===a?void 0:a.call(t))||(null===(n=g.removeIcon)||void 0===n?void 0:n.call(g))||"×"])]})}))]}),default:()=>$("button",{type:"button",class:`${n}-nav-more`,style:S,tabindex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":d.value,id:`${s}-more`,"aria-expanded":i.value,onKeydown:u},[f])});return $("div",{class:k(`${n}-nav-operations`,a.class),style:a.style},[P,$(dt,{prefixCls:n,locale:p,editable:g},null)])}}}),pt=Symbol("tabsContextKey"),bt=()=>N(pt,{tabs:e([]),prefixCls:e()}),ft=Math.pow(.995,20);function mt(t,a){const n=e(t);return[n,function(e){const t="function"==typeof e?e(n.value):e;t!==n.value&&a(t,n.value),n.value=t}]}const gt=()=>{const t=e(new Map);return H((()=>{t.value=new Map})),[e=>a=>{t.value.set(e,a)},t]},ht={width:0,height:0,left:0,top:0,right:0},yt=g({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:{id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:W(),editable:W(),moreIcon:h.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:W(),popupClassName:String,getPopupContainer:M(),onTabClick:{type:Function},onTabScroll:{type:Function}},slots:Object,emits:["tabClick","tabScroll"],setup(t,o){let{attrs:i,slots:r}=o;const{tabs:l,prefixCls:s}=bt(),c=T(),u=T(),d=T(),v=T(),[p,b]=gt(),f=y((()=>"top"===t.tabPosition||"bottom"===t.tabPosition)),[m,g]=mt(0,((e,a)=>{f.value&&t.onTabScroll&&t.onTabScroll({direction:e>a?"left":"right"})})),[h,w]=mt(0,((e,a)=>{!f.value&&t.onTabScroll&&t.onTabScroll({direction:e>a?"top":"bottom"})})),[C,_]=A(0),[S,O]=A(0),[L,D]=A(null),[I,z]=A(null),[M,j]=A(0),[N,H]=A(0),[W,X]=st(new Map),F=function(t,n){const o=e(new Map);return a((()=>{var e,a;const i=new Map,r=t.value,l=n.value.get(null===(e=r[0])||void 0===e?void 0:e.key)||ut,s=l.left+l.width;for(let t=0;t<r.length;t+=1){const{key:e}=r[t];let o=n.value.get(e);o||(o=n.value.get(null===(a=r[t-1])||void 0===a?void 0:a.key)||ut);const l=i.get(e)||E({},o);l.right=s-l.left-l.width,i.set(e,l)}o.value=new Map(i)})),o}(l,W),q=y((()=>`${s.value}-nav-operations-hidden`)),V=T(0),Y=T(0);a((()=>{f.value?t.rtl?(V.value=0,Y.value=Math.max(0,C.value-L.value)):(V.value=Math.min(0,L.value-C.value),Y.value=0):(V.value=Math.min(0,I.value-S.value),Y.value=0)}));const U=e=>e<V.value?V.value:e>Y.value?Y.value:e,J=T(),[Z,Q]=A(),ee=()=>{Q(Date.now())},te=()=>{clearTimeout(J.value)},ae=(e,t)=>{e((e=>U(e+t)))};!function(t,a){const[n,o]=A(),[i,r]=A(0),[l,s]=A(0),[c,u]=A(),d=e(),v=e(),p=e({onTouchStart:function(e){const{screenX:t,screenY:a}=e.touches[0];o({x:t,y:a}),clearInterval(d.value)},onTouchMove:function(e){if(!n.value)return;e.preventDefault();const{screenX:t,screenY:l}=e.touches[0],c=t-n.value.x,d=l-n.value.y;a(c,d),o({x:t,y:l});const v=Date.now();s(v-i.value),r(v),u({x:c,y:d})},onTouchEnd:function(){if(!n.value)return;const e=c.value;if(o(null),u(null),e){const t=e.x/l.value,n=e.y/l.value,o=Math.abs(t),i=Math.abs(n);if(Math.max(o,i)<.1)return;let r=t,s=n;d.value=setInterval((()=>{Math.abs(r)<.01&&Math.abs(s)<.01?clearInterval(d.value):(r*=ft,s*=ft,a(20*r,20*s))}),20)}},onWheel:function(e){const{deltaX:t,deltaY:n}=e;let o=0;const i=Math.abs(t),r=Math.abs(n);i===r?o="x"===v.value?t:n:i>r?(o=t,v.value="x"):(o=n,v.value="y"),a(-o,-o)&&e.preventDefault()}});function b(e){p.value.onTouchStart(e)}function f(e){p.value.onTouchMove(e)}function m(e){p.value.onTouchEnd(e)}function g(e){p.value.onWheel(e)}R((()=>{var e,a;document.addEventListener("touchmove",f,{passive:!1}),document.addEventListener("touchend",m,{passive:!1}),null===(e=t.value)||void 0===e||e.addEventListener("touchstart",b,{passive:!1}),null===(a=t.value)||void 0===a||a.addEventListener("wheel",g,{passive:!1})})),P((()=>{document.removeEventListener("touchmove",f),document.removeEventListener("touchend",m)}))}(c,((e,t)=>{if(f.value){if(L.value>=C.value)return!1;ae(g,e)}else{if(I.value>=S.value)return!1;ae(w,t)}return te(),ee(),!0})),n(Z,(()=>{te(),Z.value&&(J.value=setTimeout((()=>{Q(0)}),100))}));const ne=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.activeKey;const a=F.value.get(e)||{width:0,height:0,left:0,right:0,top:0};if(f.value){let e=m.value;t.rtl?a.right<m.value?e=a.right:a.right+a.width>m.value+L.value&&(e=a.right+a.width-L.value):a.left<-m.value?e=-a.left:a.left+a.width>-m.value+L.value&&(e=-(a.left+a.width-L.value)),w(0),g(U(e))}else{let e=h.value;a.top<-h.value?e=-a.top:a.top+a.height>-h.value+I.value&&(e=-(a.top+a.height-I.value)),g(0),w(U(e))}},oe=T(0),ie=T(0);a((()=>{let e,a,n,o,i,r;const s=F.value;["top","bottom"].includes(t.tabPosition)?(e="width",o=L.value,i=C.value,r=M.value,a=t.rtl?"right":"left",n=Math.abs(m.value)):(e="height",o=I.value,i=C.value,r=N.value,a="top",n=-h.value);let c=o;i+r>o&&i<o&&(c=o-r);const u=l.value;if(!u.length)return[oe.value,ie.value]=[0,0];const d=u.length;let v=d;for(let t=0;t<d;t+=1){const o=s.get(u[t].key)||ht;if(o[a]+o[e]>n+c){v=t-1;break}}let p=0;for(let t=d-1;t>=0;t-=1){if((s.get(u[t].key)||ht)[a]<n){p=t+1;break}}return[oe.value,ie.value]=[p,v]}));const re=()=>{X((()=>{var e;const t=new Map,a=null===(e=u.value)||void 0===e?void 0:e.getBoundingClientRect();return l.value.forEach((e=>{let{key:n}=e;const o=b.value.get(n),i=(null==o?void 0:o.$el)||o;if(i){const[e,o,r,l]=((e,t)=>{const{offsetWidth:a,offsetHeight:n,offsetTop:o,offsetLeft:i}=e,{width:r,height:l,x:s,y:c}=e.getBoundingClientRect();return Math.abs(r-a)<1?[r,l,s-t.x,c-t.y]:[a,n,i,o]})(i,a);t.set(n,{width:e,height:o,left:r,top:l})}})),t}))};n((()=>l.value.map((e=>e.key)).join("%%")),(()=>{re()}),{flush:"post"});const le=()=>{var e,t,a,n,o;const i=(null===(e=c.value)||void 0===e?void 0:e.offsetWidth)||0,r=(null===(t=c.value)||void 0===t?void 0:t.offsetHeight)||0,l=(null===(a=v.value)||void 0===a?void 0:a.$el)||{},s=l.offsetWidth||0,d=l.offsetHeight||0;D(i),z(r),j(s),H(d);const p=((null===(n=u.value)||void 0===n?void 0:n.offsetWidth)||0)-s,b=((null===(o=u.value)||void 0===o?void 0:o.offsetHeight)||0)-d;_(p),O(b),re()},se=y((()=>[...l.value.slice(0,oe.value),...l.value.slice(ie.value+1)])),[ce,ue]=A(),de=y((()=>F.value.get(t.activeKey))),ve=T(),pe=()=>{B.cancel(ve.value)};n([de,f,()=>t.rtl],(()=>{const e={};de.value&&(f.value?(t.rtl?e.right=K(de.value.right):e.left=K(de.value.left),e.width=K(de.value.width)):(e.top=K(de.value.top),e.height=K(de.value.height))),pe(),ve.value=B((()=>{ue(e)}))})),n([()=>t.activeKey,de,F,f],(()=>{ne()}),{flush:"post"}),n([()=>t.rtl,()=>t.tabBarGutter,()=>t.activeKey,()=>l.value],(()=>{le()}),{flush:"post"});const be=e=>{let{position:t,prefixCls:a,extra:n}=e;if(!n)return null;const o=null==n?void 0:n({position:t});return o?$("div",{class:`${a}-extra-content`},[o]):null};return P((()=>{te(),pe()})),()=>{const{id:e,animated:a,activeKey:n,rtl:o,editable:b,locale:g,tabPosition:y,tabBarGutter:w,onTabClick:_}=t,{class:T,style:P}=i,B=s.value,O=!!se.value.length,A=`${B}-nav-wrap`;let R,D,z,M;f.value?o?(D=m.value>0,R=m.value+L.value<C.value):(R=m.value<0,D=-m.value+L.value<C.value):(z=h.value<0,M=-h.value+I.value<S.value);const j={};"top"===y||"bottom"===y?j[o?"marginRight":"marginLeft"]="number"==typeof w?`${w}px`:w:j.marginTop="number"==typeof w?`${w}px`:w;const N=l.value.map(((t,a)=>{const{key:i}=t;return $(ct,{id:e,prefixCls:B,key:i,tab:t,style:0===a?void 0:j,closable:t.closable,editable:b,active:i===n,removeAriaLabel:null==g?void 0:g.removeAriaLabel,ref:p(i),onClick:e=>{_(i,e)},onFocus:()=>{ne(i),ee(),c.value&&(o||(c.value.scrollLeft=0),c.value.scrollTop=0)}},r)}));return $("div",{role:"tablist",class:k(`${B}-nav`,T),style:P,onKeydown:()=>{ee()}},[$(be,{position:"left",prefixCls:B,extra:r.leftExtra},null),$(G,{onResize:le},{default:()=>[$("div",{class:k(A,{[`${A}-ping-left`]:R,[`${A}-ping-right`]:D,[`${A}-ping-top`]:z,[`${A}-ping-bottom`]:M}),ref:c},[$(G,{onResize:le},{default:()=>[$("div",{ref:u,class:`${B}-nav-list`,style:{transform:`translate(${m.value}px, ${h.value}px)`,transition:Z.value?"none":void 0}},[N,$(dt,{ref:v,prefixCls:B,locale:g,editable:b,style:E(E({},0===N.length?void 0:j),{visibility:O?"hidden":null})},null),$("div",{class:k(`${B}-ink-bar`,{[`${B}-ink-bar-animated`]:a.inkBar}),style:ce.value},null)])]})])]}),$(vt,x(x({},t),{},{removeAriaLabel:null==g?void 0:g.removeAriaLabel,ref:d,prefixCls:B,tabs:se.value,class:!O&&q.value}),at(r,["moreIcon"])),$(be,{position:"right",prefixCls:B,extra:r.rightExtra},null),$(be,{position:"right",prefixCls:B,extra:r.tabBarExtraContent},null)])}}}),$t=g({compatConfig:{MODE:3},name:"TabPanelList",inheritAttrs:!1,props:{activeKey:{type:[String,Number]},id:{type:String},rtl:{type:Boolean},animated:{type:Object,default:void 0},tabPosition:{type:String},destroyInactiveTabPane:{type:Boolean}},setup(e){const{tabs:t,prefixCls:a}=bt();return()=>{const{id:n,activeKey:o,animated:i,tabPosition:r,rtl:l,destroyInactiveTabPane:s}=e,c=i.tabPane,u=a.value,d=t.value.findIndex((e=>e.key===o));return $("div",{class:`${u}-content-holder`},[$("div",{class:[`${u}-content`,`${u}-content-${r}`,{[`${u}-content-animated`]:c}],style:d&&c?{[l?"marginRight":"marginLeft"]:`-${d}00%`}:null},[t.value.map((e=>C(e.node,{key:e.key,prefixCls:u,tabKey:e.key,id:n,animated:c,active:e.key===o,destroyInactiveTabPane:s})))])])}}});const xt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};function kt(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),n.forEach((function(t){wt(e,t,a[t])}))}return e}function wt(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var Ct=function(e,t){var a=kt({},e,t.attrs);return $(X,kt({},a,{icon:xt}),null)};Ct.displayName="PlusOutlined",Ct.inheritAttrs=!1;const _t=Ct,St=e=>{const{componentCls:t,motionDurationSlow:a}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${a}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${a}`}}}}},[F(e,"slide-up"),F(e,"slide-down")]]},Tt=e=>{const{componentCls:t,tabsCardHorizontalPadding:a,tabsCardHeadBackground:n,tabsCardGutter:o,colorSplit:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:a,background:n,border:`${e.lineWidth}px ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:e.colorPrimary,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${o}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${o}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Pt=e=>{const{componentCls:t,tabsHoverColor:a,dropdownEdgeChildVerticalPadding:n}=e;return{[`${t}-dropdown`]:E(E({},Y(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${n}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":E(E({},U),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:a}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Bt=e=>{const{componentCls:t,margin:a,colorSplit:n}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:`0 0 ${a}px 0`,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${n}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${a}px`,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:1.25*e.controlHeight,[`${t}-tab`]:{padding:`${e.paddingXS}px ${e.paddingLG}px`,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:`${e.margin}px 0 0 0`},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Ot=e=>{const{componentCls:t,padding:a}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px 0`,fontSize:e.fontSize}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${a}px 0`,fontSize:e.fontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${1.5*e.paddingXXS}px ${a}px`}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px ${a}px ${1.5*e.paddingXXS}px`}}}}}},Et=e=>{const{componentCls:t,tabsActiveColor:a,tabsHoverColor:n,iconCls:o,tabsHorizontalGutter:i}=e,r=`${t}-tab`;return{[r]:{position:"relative",display:"inline-flex",alignItems:"center",padding:`${e.paddingSM}px 0`,fontSize:`${e.fontSize}px`,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":E({"&:focus:not(:focus-visible), &:active":{color:a}},J(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:n},[`&${r}-active ${r}-btn`]:{color:e.colorPrimary,textShadow:e.tabsActiveTextShadow},[`&${r}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${r}-disabled ${r}-btn, &${r}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${r}-remove ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${r} + ${r}`]:{margin:{_skip_check_:!0,value:`0 0 0 ${i}px`}}}},At=e=>{const{componentCls:t,tabsHorizontalGutter:a,iconCls:n,tabsCardGutter:o}=e,i=`${t}-rtl`;return{[i]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:`0 0 0 ${a}px`},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[n]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[n]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:`${o}px`},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Rt=e=>{const{componentCls:t,tabsCardHorizontalPadding:a,tabsCardHeight:n,tabsCardGutter:o,tabsHoverColor:i,tabsActiveColor:r,colorSplit:l}=e;return{[t]:E(E(E(E({},Y(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:a,background:"transparent",border:0,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:E({minWidth:`${n}px`,marginLeft:{_skip_check_:!0,value:`${o}px`},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${l}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:r}},J(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.colorPrimary,pointerEvents:"none"}}),Et(e)),{[`${t}-content`]:{position:"relative",display:"flex",width:"100%","&-animated":{transition:"margin 0.3s"}},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none",flex:"none",width:"100%"}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},Lt=q("Tabs",(e=>{const t=e.controlHeightLG,a=V(e,{tabsHoverColor:e.colorPrimaryHover,tabsActiveColor:e.colorPrimaryActive,tabsCardHorizontalPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,tabsCardHeight:t,tabsCardGutter:e.marginXXS/2,tabsHorizontalGutter:32,tabsCardHeadBackground:e.colorFillAlter,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120});return[Ot(a),At(a),Bt(a),Pt(a),Tt(a),Rt(a),St(a)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50})));let Dt=0;const It=()=>({prefixCls:{type:String},id:{type:String},popupClassName:String,getPopupContainer:M(),activeKey:{type:[String,Number]},defaultActiveKey:{type:[String,Number]},direction:ee(),animated:te([Boolean,Object]),renderTabBar:M(),tabBarGutter:{type:Number},tabBarStyle:W(),tabPosition:ee(),destroyInactiveTabPane:ae(),hideAdd:Boolean,type:ee(),size:ee(),centered:Boolean,onEdit:M(),onChange:M(),onTabClick:M(),onTabScroll:M(),"onUpdate:activeKey":M(),locale:W(),onPrevClick:M(),onNextClick:M(),tabBarExtraContent:h.any});const zt=g({compatConfig:{MODE:3},name:"InternalTabs",inheritAttrs:!1,props:E(E({},Z(It(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}})),{tabs:ie()}),slots:Object,setup(e,t){let{attrs:n,slots:o}=t;re(!(void 0!==e.onPrevClick||void 0!==e.onNextClick),"Tabs","`onPrevClick / @prevClick` and `onNextClick / @nextClick` has been removed. Please use `onTabScroll / @tabScroll` instead."),re(!(void 0!==e.tabBarExtraContent),"Tabs","`tabBarExtraContent` prop has been removed. Please use `rightExtra` slot instead."),re(!(void 0!==o.tabBarExtraContent),"Tabs","`tabBarExtraContent` slot is deprecated. Please use `rightExtra` slot instead.");const{prefixCls:i,direction:r,size:l,rootPrefixCls:s,getPopupContainer:c}=le("tabs",e),[u,d]=Lt(i),v=y((()=>"rtl"===r.value)),p=y((()=>{const{animated:t,tabPosition:a}=e;return!1===t||["left","right"].includes(a)?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!0}:E({inkBar:!0,tabPane:!1},"object"==typeof t?t:{})})),[b,f]=A(!1);R((()=>{f(fe())}));const[m,g]=me((()=>{var t;return null===(t=e.tabs[0])||void 0===t?void 0:t.key}),{value:y((()=>e.activeKey)),defaultValue:e.defaultActiveKey}),[h,w]=A((()=>e.tabs.findIndex((e=>e.key===m.value))));a((()=>{var t;let a=e.tabs.findIndex((e=>e.key===m.value));-1===a&&(a=Math.max(0,Math.min(h.value,e.tabs.length-1)),g(null===(t=e.tabs[a])||void 0===t?void 0:t.key)),w(a)}));const[C,_]=me(null,{value:y((()=>e.id))}),S=y((()=>b.value&&!["left","right"].includes(e.tabPosition)?"top":e.tabPosition));R((()=>{e.id||(_(`rc-tabs-${Dt}`),Dt+=1)}));const T=(t,a)=>{var n,o;null===(n=e.onTabClick)||void 0===n||n.call(e,t,a);const i=t!==m.value;g(t),i&&(null===(o=e.onChange)||void 0===o||o.call(e,t))};return(e=>{j(pt,e)})({tabs:y((()=>e.tabs)),prefixCls:i}),()=>{const{id:t,type:a,tabBarGutter:r,tabBarStyle:f,locale:g,destroyInactiveTabPane:h,renderTabBar:y=o.renderTabBar,onTabScroll:w,hideAdd:_,centered:P}=e,B={id:C.value,activeKey:m.value,animated:p.value,tabPosition:S.value,rtl:v.value,mobile:b.value};let O,A;"editable-card"===a&&(O={onEdit:(t,a)=>{let{key:n,event:o}=a;var i;null===(i=e.onEdit)||void 0===i||i.call(e,"add"===t?o:n,t)},removeIcon:()=>$(se,null,null),addIcon:o.addIcon?o.addIcon:()=>$(_t,null,null),showAdd:!0!==_});const R=E(E({},B),{moreTransitionName:`${s.value}-slide-up`,editable:O,locale:g,tabBarGutter:r,onTabClick:T,onTabScroll:w,style:f,getPopupContainer:c.value,popupClassName:k(e.popupClassName,d.value)});A=y?y(E(E({},R),{DefaultTabBar:yt})):$(yt,R,at(o,["moreIcon","leftExtra","rightExtra","tabBarExtraContent"]));const L=i.value;return u($("div",x(x({},n),{},{id:t,class:k(L,`${L}-${S.value}`,{[d.value]:!0,[`${L}-${l.value}`]:l.value,[`${L}-card`]:["card","editable-card"].includes(a),[`${L}-editable-card`]:"editable-card"===a,[`${L}-centered`]:P,[`${L}-mobile`]:b.value,[`${L}-editable`]:"editable-card"===a,[`${L}-rtl`]:v.value},n.class)}),[A,$($t,x(x({destroyInactiveTabPane:h},B),{},{animated:p.value}),null)]))}}}),Mt=g({compatConfig:{MODE:3},name:"ATabs",inheritAttrs:!1,props:Z(It(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}}),slots:Object,setup(e,t){let{attrs:a,slots:n,emit:o}=t;const i=e=>{o("update:activeKey",e),o("change",e)};return()=>{var t;const o=Q(null===(t=n.default)||void 0===t?void 0:t.call(n)).map((e=>{if(ne(e)){const t=E({},e.props||{});for(const[e,d]of Object.entries(t))delete t[e],t[oe(e)]=d;const a=e.children||{},n=void 0!==e.key?e.key:void 0,{tab:o=a.tab,disabled:i,forceRender:r,closable:l,animated:s,active:c,destroyInactiveTabPane:u}=t;return E(E({key:n},t),{node:e,closeIcon:a.closeIcon,tab:o,disabled:""===i||i,forceRender:""===r||r,closable:""===l||l,animated:""===s||s,active:""===c||c,destroyInactiveTabPane:""===u||u})}return null})).filter((e=>e));return $(zt,x(x(x({},be(e,["onUpdate:activeKey"])),a),{},{onChange:i,tabs:o}),n)}}}),jt=g({compatConfig:{MODE:3},name:"ATabPane",inheritAttrs:!1,__ANT_TAB_PANE:!0,props:{tab:h.any,disabled:{type:Boolean},forceRender:{type:Boolean},closable:{type:Boolean},animated:{type:Boolean},active:{type:Boolean},destroyInactiveTabPane:{type:Boolean},prefixCls:{type:String},tabKey:{type:[String,Number]},id:{type:String}},slots:Object,setup(t,a){let{attrs:o,slots:i}=a;const r=e(t.forceRender);n([()=>t.active,()=>t.destroyInactiveTabPane],(()=>{t.active?r.value=!0:t.destroyInactiveTabPane&&(r.value=!1)}),{immediate:!0});const l=y((()=>t.active?{}:t.animated?{visibility:"hidden",height:0,overflowY:"hidden"}:{display:"none"}));return()=>{var e;const{prefixCls:a,forceRender:n,id:s,active:c,tabKey:u}=t;return $("div",{id:s&&`${s}-panel-${u}`,role:"tabpanel",tabindex:c?0:-1,"aria-labelledby":s&&`${s}-tab-${u}`,"aria-hidden":!c,style:[l.value,o.style],class:[`${a}-tabpane`,c&&`${a}-tabpane-active`,o.class]},[(c||r.value||n)&&(null===(e=i.default)||void 0===e?void 0:e.call(i))])}}});Mt.TabPane=jt,Mt.install=function(e){return e.component(Mt.name,Mt),e.component(jt.name,jt),e};const Nt=()=>ce()&&window.document.documentElement,Ht=e=>{if(ce()&&window.document.documentElement){const t=Array.isArray(e)?e:[e],{documentElement:a}=window.document;return t.some((e=>e in a.style))}return!1};function Gt(e,t){return Array.isArray(e)||void 0===t?Ht(e):((e,t)=>{if(!Ht(e))return!1;const a=document.createElement("div"),n=a.style[e];return a.style[e]=t,a.style[e]!==n})(e,t)}let Wt;const Kt=()=>{const e=T(!1);return R((()=>{e.value=(()=>{if(!Nt())return!1;if(void 0!==Wt)return Wt;const e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),Wt=1===e.scrollHeight,document.body.removeChild(e),Wt})()})),e},Xt={small:8,middle:16,large:24};const Ft=g({compatConfig:{MODE:3},name:"ASpace",inheritAttrs:!1,props:{prefixCls:String,size:{type:[String,Number,Array]},direction:h.oneOf(pe("horizontal","vertical")).def("horizontal"),align:h.oneOf(pe("start","end","center","baseline")),wrap:ae()},slots:Object,setup(t,a){let{slots:o,attrs:i}=a;const{prefixCls:r,space:l,direction:s}=le("space",t),[c,u]=ue(r),d=Kt(),v=y((()=>{var e,a,n;return null!==(n=null!==(e=t.size)&&void 0!==e?e:null===(a=null==l?void 0:l.value)||void 0===a?void 0:a.size)&&void 0!==n?n:"small"})),p=e(),b=e();n(v,(()=>{[p.value,b.value]=(Array.isArray(v.value)?v.value:[v.value,v.value]).map((e=>function(e){return"string"==typeof e?Xt[e]:e||0}(e)))}),{immediate:!0});const f=y((()=>void 0===t.align&&"horizontal"===t.direction?"center":t.align)),m=y((()=>k(r.value,u.value,`${r.value}-${t.direction}`,{[`${r.value}-rtl`]:"rtl"===s.value,[`${r.value}-align-${f.value}`]:f.value}))),g=y((()=>"rtl"===s.value?"marginLeft":"marginRight")),h=y((()=>{const e={};return d.value&&(e.columnGap=`${p.value}px`,e.rowGap=`${b.value}px`),E(E({},e),t.wrap&&{flexWrap:"wrap",marginBottom:-b.value+"px"})}));return()=>{var e,a;const{wrap:n,direction:l="horizontal"}=t,s=null===(e=o.default)||void 0===e?void 0:e.call(o),u=de(s),v=u.length;if(0===v)return null;const f=null===(a=o.split)||void 0===a?void 0:a.call(o),y=`${r.value}-item`,k=p.value,w=v-1;return $("div",x(x({},i),{},{class:[m.value,i.class],style:[h.value,i.style]}),[u.map(((e,t)=>{let a=s.indexOf(e);-1===a&&(a=`$$space-${t}`);let o={};return d.value||("vertical"===l?t<w&&(o={marginBottom:k/(f?2:1)+"px"}):o=E(E({},t<w&&{[g.value]:k/(f?2:1)+"px"}),n&&{paddingBottom:`${b.value}px`})),c($(S,{key:a},[$("div",{class:y,style:o},[e]),t<w&&f&&$("span",{class:`${y}-split`,style:o},[f])]))}))])}}});Ft.Compact=ve,Ft.install=function(e){return e.component(Ft.name,Ft),e.component(ve.name,ve),e};const qt=Ft;export{lt as D,Mt as T,qt as _,jt as a,Ee as b,Nt as c,Re as d,Fe as e,Me as f,he as g,Qe as h,ke as i,Ke as j,Je as k,fe as l,Gt as m,ge as n,De as o,Kt as p,Oe as s,Xe as t,me as u};