|
Server : Apache System : Linux s1230 5.15.0-139-generic #149~20.04.1 SMP Tue Jul 14 11:21:49 UTC 2026 x86_64 User : p141464 ( 418825) PHP Version : 7.4.33.12 Disable Function : NONE Directory : /html/relaunch-kmu/wp-content/plugins/real-cookie-banner/public/dist/ |
Upload File : |
"use strict";(self.webpackChunkrealCookieBanner_=self.webpackChunkrealCookieBanner_||[]).push([[577],{3577:(e,t,n)=>{n.d(t,{A:()=>E});var a=n(41594),o=n(81499),r=n(35678),i=n(44105),l=n(29771),s=n(95401),d=n(84816),c=n(56532),u=n(62801);const p=({prefixCls:e,className:t,hoverable:n=!0,...o})=>{const{getPrefixCls:i}=a.useContext(l.QO),s=i("card",e),d=(0,r.$)(`${s}-grid`,t,{[`${s}-grid-hoverable`]:n});return a.createElement("div",{...o,className:d})};var b=n(13700),m=n(25893),h=n(20690),$=n(93579);const g=e=>{const{antCls:t,componentCls:n,headerHeight:a,headerPadding:o,tabsMarginBottom:r}=e;return{display:"flex",justifyContent:"center",flexDirection:"column",minHeight:a,marginBottom:-1,padding:`0 ${(0,b.zA)(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${(0,b.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${(0,b.zA)(e.borderRadiusLG)} ${(0,b.zA)(e.borderRadiusLG)} 0 0`,...(0,m.t6)(),"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":{display:"inline-block",flex:1,...m.L9,[`\n > ${n}-typography,\n > ${n}-typography-edit-content\n `]:{insetInlineStart:0,marginTop:0,marginBottom:0}},[`${t}-tabs-top`]:{clear:"both",marginBottom:r,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${(0,b.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}}},f=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:a,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`\n ${(0,b.zA)(o)} 0 0 0 ${n},\n 0 ${(0,b.zA)(o)} 0 0 ${n},\n ${(0,b.zA)(o)} ${(0,b.zA)(o)} 0 0 ${n},\n ${(0,b.zA)(o)} 0 0 0 ${n} inset,\n 0 ${(0,b.zA)(o)} 0 0 ${n} inset;\n `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:a}}},v=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:a,cardActionsIconSize:o,colorBorderSecondary:r,actionsBg:i}=e;return{margin:0,padding:0,listStyle:"none",background:i,borderTop:`${(0,b.zA)(e.lineWidth)} ${e.lineType} ${r}`,display:"flex",borderRadius:`0 0 ${(0,b.zA)(e.borderRadiusLG)} ${(0,b.zA)(e.borderRadiusLG)}`,...(0,m.t6)(),"& > li":{margin:a,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:(0,b.zA)(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:(0,b.zA)(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,b.zA)(e.lineWidth)} ${e.lineType} ${r}`}}}},y=e=>({margin:`${(0,b.zA)(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex",...(0,m.t6)(),"&-avatar":{paddingInlineEnd:e.padding},"&-section":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,...m.L9},"&-description":{color:e.colorTextDescription}}),k=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:a,bodyPadding:o}=e;return{[`${t}-head`]:{padding:`0 ${(0,b.zA)(a)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${(0,b.zA)(e.padding)} ${(0,b.zA)(o)}`}}},S=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},x=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:a,colorBorderSecondary:o,boxShadowTertiary:r,bodyPadding:i,extraColor:l,motionDurationMid:s}=e;return{[t]:{...(0,m.dF)(e),position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:r},[`${t}-head`]:g(e),[`${t}-extra`]:{marginInlineStart:"auto",color:l,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:i,borderRadius:`0 0 ${(0,b.zA)(e.borderRadiusLG)} ${(0,b.zA)(e.borderRadiusLG)}`,"&:first-child":{borderStartStartRadius:e.borderRadiusLG,borderStartEndRadius:e.borderRadiusLG},"&:not(:last-child)":{borderEndStartRadius:0,borderEndEndRadius:0}},[`${t}-grid`]:f(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${(0,b.zA)(e.borderRadiusLG)} ${(0,b.zA)(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:v(e),[`${t}-meta`]:y(e)},[`${t}-bordered`]:{border:`${(0,b.zA)(e.lineWidth)} ${e.lineType} ${o}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:["box-shadow","border-color"].map(e=>`${e} ${s}`).join(", "),"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${(0,b.zA)(e.borderRadiusLG)} ${(0,b.zA)(e.borderRadiusLG)} 0 0 `,[`&:not(:has(> ${t}-head))`]:{borderRadius:0},[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:a}}},[`${t}-type-inner`]:k(e),[`${t}-loading`]:S(e),[`${t}-rtl`]:{direction:"rtl"}}},w=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:a,headerHeightSM:o,headerFontSizeSM:r}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:o,padding:`0 ${(0,b.zA)(a)}`,fontSize:r,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},z=(0,h.OF)("Card",e=>{const t=(0,$.oX)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[x(t),w(t)]},e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:e.bodyPadding??e.paddingLG,headerPadding:e.headerPadding??e.paddingLG})),C=e=>{const{actionClasses:t,actions:n=[],actionStyle:o}=e;return a.createElement("ul",{className:t,style:o},n.map((e,t)=>{const o=`action-${t}`;return a.createElement("li",{style:{width:100/n.length+"%"},key:o},a.createElement("span",null,e))}))},A=a.forwardRef((e,t)=>{const{prefixCls:n,className:b,rootClassName:m,style:h,extra:$,headStyle:g={},bodyStyle:f={},title:v,loading:y,bordered:k,variant:S,size:x,type:w,cover:A,actions:_,tabList:E,children:R,activeTabKey:P,defaultActiveTabKey:M,tabBarExtraContent:L,hoverable:T,tabProps:I={},classNames:N,styles:B,...H}=e,{getPrefixCls:G,direction:D,className:W,style:O,classNames:j,styles:X}=(0,l.TP)("card"),[K]=(0,d.A)("card",S,k),F=(0,s.A)(x),q={...e,size:F,variant:K},[V,Y]=(0,i.AV)([j,N],[X,B],{props:q}),U=a.useMemo(()=>(0,o.$r)(R),[R]),Q=a.useMemo(()=>U.some(e=>a.isValidElement(e)&&e.type===p),[U]),J=G("card",n),[Z,ee]=z(J),te=a.createElement(c.A,{loading:!0,active:!0,paragraph:{rows:4},title:!1},R),ne=void 0!==P,ae={...I,[ne?"activeKey":"defaultActiveKey"]:ne?P:M,tabBarExtraContent:L};let oe;const re="small"!==F?"large":F,ie=E?a.createElement(u.A,{size:re,...ae,className:`${J}-head-tabs`,onChange:t=>{e.onTabChange?.(t)},items:E.map(({tab:e,...t})=>({label:e,...t}))}):null;if(v||$||ie){const e=(0,r.$)(`${J}-head`,V.header),t=(0,r.$)(`${J}-head-title`,V.title),n=(0,r.$)(`${J}-extra`,V.extra),o={...g,...Y.header};oe=a.createElement("div",{className:e,style:o},a.createElement("div",{className:`${J}-head-wrapper`},v&&a.createElement("div",{className:t,style:Y.title},v),$&&a.createElement("div",{className:n,style:Y.extra},$)),ie)}const le=(0,r.$)(`${J}-cover`,V.cover),se=A?a.createElement("div",{className:le,style:Y.cover},A):null,de=(0,r.$)(`${J}-body`,V.body),ce={...f,...Y.body},ue=y||U.length?a.createElement("div",{className:de,style:ce},y?te:R):null,pe=(0,r.$)(`${J}-actions`,V.actions),be=_?.length?a.createElement(C,{actionClasses:pe,actionStyle:Y.actions,actions:_}):null,me=(0,o.cJ)(H,["onTabChange"]),he=(0,r.$)(J,W,{[`${J}-loading`]:y,[`${J}-bordered`]:"borderless"!==K,[`${J}-hoverable`]:T,[`${J}-contain-grid`]:Q,[`${J}-contain-tabs`]:E?.length,[`${J}-small`]:"small"===F,[`${J}-type-${w}`]:!!w,[`${J}-rtl`]:"rtl"===D},b,m,Z,ee,V.root),$e={...Y.root,...O,...h};return a.createElement("div",{ref:t,...me,className:he,style:$e},oe,se,ue,be)}),_=A;_.Grid=p,_.Meta=e=>{const{prefixCls:t,className:n,avatar:o,title:s,description:d,style:c,classNames:u,styles:p,...b}=e,{getPrefixCls:m,className:h,style:$,classNames:g,styles:f}=(0,l.TP)("cardMeta"),v=`${m("card",t)}-meta`,[y,k]=(0,i.AV)([g,u],[f,p],{props:e}),S=(0,r.$)(v,n,h,y.root),x={...$,...k.root,...c},w=(0,r.$)(`${v}-avatar`,y.avatar),z=(0,r.$)(`${v}-title`,y.title),C=(0,r.$)(`${v}-description`,y.description),A=(0,r.$)(`${v}-section`,y.section),_=o?a.createElement("div",{className:w,style:k.avatar},o):null,E=s?a.createElement("div",{className:z,style:k.title},s):null,R=d?a.createElement("div",{className:C,style:k.description},d):null,P=E||R?a.createElement("div",{className:A,style:k.section},E,R):null;return a.createElement("div",{...b,className:S,style:x},_,P)};const E=_},62801:(e,t,n)=>{n.d(t,{A:()=>ye});var a=n(41594),o=n.n(a),r=n(94452),i=n(86817),l=n(66342),s=n(35678),d=n(67336),c=n(94217);const u=(0,a.createContext)(null);var p=n(41921),b=n(72675),m=n(37026),h=n(30886);const $={width:0,height:0,left:0,top:0};function g(e,t){const n=a.useRef(e),[,o]=a.useState({});return[n.current,function(e){const a="function"==typeof e?e(n.current):e;a!==n.current&&t(a,n.current),n.current=a,o({})}]}const f=.995**20;var v=n(21500);function y(e){const[t,n]=(0,a.useState)(0),o=(0,a.useRef)(0),r=(0,a.useRef)();return r.current=e,(0,v.o)(()=>{r.current?.()},[t]),()=>{o.current===t&&(o.current+=1,n(o.current))}}const k={width:0,height:0,left:0,top:0,right:0};function S(e){let t;return e instanceof Map?(t={},e.forEach((e,n)=>{t[n]=e})):t=e,JSON.stringify(t)}function x(e){return String(e).replace(/"/g,"TABS_DQ")}function w(e,t,n,a){return!(!n||a||!1===e||void 0===e&&(!1===t||null===t))}const z=a.forwardRef((e,t)=>{const{prefixCls:n,editable:o,locale:r,style:i}=e;return o&&!1!==o.showAdd?a.createElement("button",{ref:t,type:"button",className:`${n}-nav-add`,style:i,"aria-label":r?.addAriaLabel||"Add tab",onClick:e=>{o.onEdit("add",{event:e})}},o.addIcon||"+"):null}),C=z,A=a.forwardRef((e,t)=>{const{position:n,prefixCls:o,extra:r}=e;if(!r)return null;let i,l={};return"object"!=typeof r||a.isValidElement(r)?l.right=r:l=r,"right"===n&&(i=l.right),"left"===n&&(i=l.left),i?a.createElement("div",{className:`${o}-extra-content`,ref:t},i):null});var _=n(12098),E=n(61558),R=n(12717);function P(){return P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},P.apply(this,arguments)}const M=a.forwardRef((e,t)=>{const{prefixCls:n,id:o,tabs:r,locale:i,mobile:l,more:d={},style:c,className:u,editable:p,tabBarGutter:b,rtl:m,removeAriaLabel:h,onTabClick:$,getPopupContainer:g,popupClassName:f,popupStyle:v}=e,[y,k]=(0,a.useState)(!1),[S,x]=(0,a.useState)(null),{icon:z="More"}=d,A=`${o}-more-popup`,M=`${n}-dropdown`,L=null!==S?`${A}-${S}`:null,T=i?.dropdownAriaLabel,I=a.createElement(E.Ay,{onClick:({key:e,domEvent:t})=>{$(e,t),k(!1)},prefixCls:`${M}-menu`,id:A,tabIndex:-1,role:"listbox","aria-activedescendant":L,selectedKeys:[S],"aria-label":void 0!==T?T:"expanded dropdown"},r.map(e=>{const{closable:t,disabled:n,closeIcon:r,key:i,label:l}=e,s=w(t,r,p,n);return a.createElement(E.Dr,{key:i,id:`${A}-${i}`,role:"option","aria-controls":o&&`${o}-panel-${i}`,disabled:n},a.createElement("span",null,l),s&&a.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:`${M}-menu-item-remove`,onClick:e=>{e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),p.onEdit("remove",{key:t,event:e})}(e,i)}},r||p.removeIcon||"×"))}));function N(e){const t=r.filter(e=>!e.disabled);let n=t.findIndex(e=>e.key===S)||0;const a=t.length;for(let o=0;o<a;o+=1){n=(n+e+a)%a;const o=t[n];if(!o.disabled)return void x(o.key)}}(0,a.useEffect)(()=>{const e=document.getElementById(L);e?.scrollIntoView&&e.scrollIntoView(!1)},[L,S]),(0,a.useEffect)(()=>{y||x(null)},[y]);const B={marginInlineStart:b};r.length||(B.visibility="hidden",B.order=1);const H=(0,s.$)(f,{[`${M}-rtl`]:m}),G=l?null:a.createElement(_.A,P({prefixCls:M,overlay:I,visible:!!r.length&&y,onVisibleChange:k,overlayClassName:H,overlayStyle:v,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:g},d),a.createElement("button",{type:"button",className:`${n}-nav-more`,style:B,"aria-haspopup":"listbox","aria-controls":A,id:`${o}-more`,"aria-expanded":y,onKeyDown:function(e){const{which:t}=e;if(y)switch(t){case R.A.UP:N(-1),e.preventDefault();break;case R.A.DOWN:N(1),e.preventDefault();break;case R.A.ESC:k(!1);break;case R.A.SPACE:case R.A.ENTER:null!==S&&$(S,e)}else[R.A.DOWN,R.A.SPACE,R.A.ENTER].includes(t)&&(k(!0),e.preventDefault())}},z));return a.createElement("div",{className:(0,s.$)(`${n}-nav-operations`,u),style:c,ref:t},G,a.createElement(C,{prefixCls:n,locale:i,editable:p}))}),L=a.memo(M,(e,t)=>t.tabMoving),T=e=>{const{prefixCls:t,id:n,active:o,focus:r,tab:{key:i,label:l,disabled:d,closeIcon:c,icon:u},closable:p,renderWrapper:b,removeAriaLabel:m,editable:h,onClick:$,onFocus:g,onBlur:f,onKeyDown:v,onMouseDown:y,onMouseUp:k,style:S,className:z,tabCount:C,currentPosition:A}=e,_=`${t}-tab`,E=w(p,c,h,d);function R(e){d||$(e)}const P=a.useMemo(()=>u&&"string"==typeof l?a.createElement("span",null,l):l,[l,u]),M=a.useRef(null);a.useEffect(()=>{r&&M.current&&M.current.focus()},[r]);const L=a.createElement("div",{key:i,"data-node-key":x(i),className:(0,s.$)(_,z,{[`${_}-with-remove`]:E,[`${_}-active`]:o,[`${_}-disabled`]:d,[`${_}-focus`]:r}),style:S,onClick:R},a.createElement("div",{ref:M,role:"tab","aria-selected":o,id:n&&`${n}-tab-${i}`,className:`${_}-btn`,"aria-controls":n&&`${n}-panel-${i}`,"aria-disabled":d,tabIndex:d?null:o?0:-1,onClick:e=>{e.stopPropagation(),R(e)},onKeyDown:v,onMouseDown:y,onMouseUp:k,onFocus:g,onBlur:f},r&&a.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`Tab ${A} of ${C}`),u&&a.createElement("span",{className:`${_}-icon`},u),l&&P),E&&a.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:o?0:-1,className:`${_}-remove`,onClick:e=>{var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),h.onEdit("remove",{key:i,event:t})}},c||h.removeIcon||"×"));return b?b(L):L};function I(){return I=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},I.apply(this,arguments)}const N=e=>{const{offsetWidth:t=0,offsetHeight:n=0}=e.current||{};if(e.current){const{width:n,height:a}=e.current.getBoundingClientRect();if(Math.abs(n-t)<1)return[n,a]}return[t,n]},B=(e,t)=>e[t?0:1],H=a.forwardRef((e,t)=>{const{className:n,style:r,id:i,animated:l,activeKey:d,rtl:c,extra:v,editable:z,locale:_,tabPosition:E,tabBarGutter:R,children:P,onTabClick:M,onTabScroll:H,indicator:G,classNames:D,styles:W}=e,{prefixCls:O,tabs:j}=a.useContext(u),X=(0,a.useRef)(null),K=(0,a.useRef)(null),F=(0,a.useRef)(null),q=(0,a.useRef)(null),V=(0,a.useRef)(null),Y=(0,a.useRef)(null),U=(0,a.useRef)(null),Q="top"===E||"bottom"===E,[J,Z]=g(0,(e,t)=>{Q&&H&&H({direction:e>t?"left":"right"})}),[ee,te]=g(0,(e,t)=>{!Q&&H&&H({direction:e>t?"top":"bottom"})}),[ne,ae]=(0,a.useState)([0,0]),[oe,re]=(0,a.useState)([0,0]),[ie,le]=(0,a.useState)([0,0]),[se,de]=(0,a.useState)([0,0]),[ce,ue]=function(e){const t=(0,a.useRef)([]),[,n]=(0,a.useState)({}),o=(0,a.useRef)("function"==typeof e?e():e),r=y(()=>{let e=o.current;t.current.forEach(t=>{e=t(e)}),t.current=[],o.current=e,n({})});return[o.current,function(e){t.current.push(e),r()}]}(new Map),pe=function(e,t,n){return(0,a.useMemo)(()=>{const n=new Map,a=t.get(e[0]?.key)||$,o=a.left+a.width;for(let a=0;a<e.length;a+=1){const{key:r}=e[a];let i=t.get(r);i||(i=t.get(e[a-1]?.key)||$);const l=n.get(r)||{...i};l.right=o-l.left-l.width,n.set(r,l)}return n},[e.map(e=>e.key).join("_"),t,n])}(j,ce,oe[0]),be=B(ne,Q),me=B(oe,Q),he=B(ie,Q),$e=B(se,Q),ge=Math.floor(be)<Math.floor(me+he),fe=ge?be-$e:be-he,ve=`${O}-nav-operations-hidden`;let ye=0,ke=0;function Se(e){return e<ye?ye:e>ke?ke:e}Q&&c?(ye=0,ke=Math.max(0,me-fe)):(ye=Math.min(0,fe-me),ke=0);const xe=(0,a.useRef)(null),[we,ze]=(0,a.useState)();function Ce(){ze(Date.now())}function Ae(){xe.current&&clearTimeout(xe.current)}!function(e,t){const[n,o]=(0,a.useState)(),[r,i]=(0,a.useState)(0),[l,s]=(0,a.useState)(0),[d,c]=(0,a.useState)(),u=(0,a.useRef)(),p=(0,a.useRef)(),b=(0,a.useRef)(null);b.current={onTouchStart:function(e){const{screenX:t,screenY:n}=e.touches[0];o({x:t,y:n}),window.clearInterval(u.current)},onTouchMove:function(e){if(!n)return;const{screenX:a,screenY:l}=e.touches[0];o({x:a,y:l});const d=a-n.x,u=l-n.y;t(d,u);const p=Date.now();i(p),s(p-r),c({x:d,y:u})},onTouchEnd:function(){if(n&&(o(null),c(null),d)){const e=d.x/l,n=d.y/l,a=Math.abs(e),o=Math.abs(n);if(Math.max(a,o)<.1)return;let r=e,i=n;u.current=window.setInterval(()=>{Math.abs(r)<.01&&Math.abs(i)<.01?window.clearInterval(u.current):(r*=f,i*=f,t(20*r,20*i))},20)}},onWheel:function(e){const{deltaX:n,deltaY:a}=e;let o=0;const r=Math.abs(n),i=Math.abs(a);r===i?o="x"===p.current?n:a:r>i?(o=n,p.current="x"):(o=a,p.current="y"),t(-o,-o)&&e.preventDefault()}},a.useEffect(()=>{function t(e){b.current.onTouchMove(e)}function n(e){b.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),e.current.addEventListener("touchstart",function(e){b.current.onTouchStart(e)},{passive:!0}),e.current.addEventListener("wheel",function(e){b.current.onWheel(e)},{passive:!1}),()=>{document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}},[])}(q,(e,t)=>{function n(e,t){e(e=>Se(e+t))}return!!ge&&(Q?n(Z,e):n(te,t),Ae(),Ce(),!0)}),(0,a.useEffect)(()=>(Ae(),we&&(xe.current=setTimeout(()=>{ze(0)},100)),Ae),[we]);const[_e,Ee]=function(e,t,n,o,r,i,{tabs:l,tabPosition:s,rtl:d}){let c,u,p;return["top","bottom"].includes(s)?(c="width",u=d?"right":"left",p=Math.abs(n)):(c="height",u="top",p=-n),(0,a.useMemo)(()=>{if(!l.length)return[0,0];const n=l.length;let a=n;for(let o=0;o<n;o+=1){const n=e.get(l[o].key)||k;if(Math.floor(n[u]+n[c])>Math.floor(p+t)){a=o-1;break}}let o=0;for(let t=n-1;t>=0;t-=1)if((e.get(l[t].key)||k)[u]<p){o=t+1;break}return o>a?[0,-1]:[o,a]},[e,t,o,r,i,p,s,l.map(e=>e.key).join("_"),d])}(pe,fe,Q?J:ee,me,he,$e,{...e,tabs:j}),Re=(0,b.A)((e=d)=>{const t=pe.get(e)||{width:0,height:0,left:0,right:0,top:0};if(Q){let e=J;c?t.right<J?e=t.right:t.right+t.width>J+fe&&(e=t.right+t.width-fe):t.left<-J?e=-t.left:t.left+t.width>-J+fe&&(e=-(t.left+t.width-fe)),te(0),Z(Se(e))}else{let e=ee;t.top<-ee?e=-t.top:t.top+t.height>-ee+fe&&(e=-(t.top+t.height-fe)),Z(0),te(Se(e))}}),[Pe,Me]=(0,a.useState)(),[Le,Te]=(0,a.useState)(!1),Ie=j.filter(e=>!e.disabled).map(e=>e.key),Ne=e=>{const t=Ie.indexOf(Pe||d),n=Ie.length,a=Ie[(t+e+n)%n];Me(a)},Be=(e,t)=>{const n=Ie.indexOf(e),a=j.find(t=>t.key===e);w(a?.closable,a?.closeIcon,z,a?.disabled)&&(t.preventDefault(),t.stopPropagation(),z.onEdit("remove",{key:e,event:t}),n===Ie.length-1?Ne(-1):Ne(1))},He=e=>{const{code:t}=e,n=c&&Q,a=Ie[0],o=Ie[Ie.length-1];switch(t){case"ArrowLeft":Q&&Ne(n?1:-1);break;case"ArrowRight":Q&&Ne(n?-1:1);break;case"ArrowUp":e.preventDefault(),Q||Ne(-1);break;case"ArrowDown":e.preventDefault(),Q||Ne(1);break;case"Home":e.preventDefault(),Me(a);break;case"End":e.preventDefault(),Me(o);break;case"Enter":case"Space":e.preventDefault(),M(Pe??d,e);break;case"Backspace":case"Delete":Be(Pe,e)}},Ge={};Q?Ge.marginInlineStart=R:Ge.marginTop=R;const De=j.map((e,t)=>{const{key:n}=e;return a.createElement(T,{id:i,prefixCls:O,key:n,tab:e,className:D?.item,style:0===t?W?.item:{...Ge,...W?.item},closable:e.closable,editable:z,active:n===d,focus:n===Pe,renderWrapper:P,removeAriaLabel:_?.removeAriaLabel,tabCount:Ie.length,currentPosition:t+1,onClick:e=>{M(n,e)},onKeyDown:He,onFocus:()=>{Le||Me(n),Re(n),Ce(),q.current&&(c||(q.current.scrollLeft=0),q.current.scrollTop=0)},onBlur:()=>{Me(void 0)},onMouseDown:e=>((e,t)=>{Te(!0),1===t.button&&Be(e,t)})(n,e),onMouseUp:()=>{Te(!1)}})}),We=()=>ue(()=>{const e=new Map,t=V.current?.getBoundingClientRect();return j.forEach(({key:n})=>{const a=V.current?.querySelector(`[data-node-key="${x(n)}"]`);if(a){const[o,r,i,l]=((e,t)=>{const{offsetWidth:n,offsetHeight:a,offsetTop:o,offsetLeft:r}=e,{width:i,height:l,left:s,top:d}=e.getBoundingClientRect();return Math.abs(i-n)<1?[i,l,s-t.left,d-t.top]:[n,a,r,o]})(a,t);e.set(n,{width:o,height:r,left:i,top:l})}}),e});(0,a.useEffect)(()=>{We()},[j.map(e=>e.key).join("_")]);const Oe=y(()=>{const e=N(X),t=N(K),n=N(F);ae([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);const a=N(U);le(a);const o=N(Y);de(o);const r=N(V);re([r[0]-a[0],r[1]-a[1]]),We()}),je=[...j.slice(0,_e),...j.slice(Ee+1)],Xe=pe.get(d),{style:Ke}=(e=>{const{activeTabOffset:t,horizontal:n,rtl:r,indicator:i={}}=e,{size:l,align:s="center"}=i,[d,c]=(0,a.useState)(),u=(0,a.useRef)(),p=o().useCallback(e=>"function"==typeof l?l(e):"number"==typeof l?l:e,[l]);function b(){h.A.cancel(u.current)}return(0,a.useEffect)(()=>{const e={};if(t)if(n){e.width=p(t.width);const n=r?"right":"left";"start"===s&&(e[n]=t[n]),"center"===s&&(e[n]=t[n]+t.width/2,e.transform=r?"translateX(50%)":"translateX(-50%)"),"end"===s&&(e[n]=t[n]+t.width,e.transform="translateX(-100%)")}else e.height=p(t.height),"start"===s&&(e.top=t.top),"center"===s&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===s&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return b(),u.current=(0,h.A)(()=>{d&&e&&Object.keys(e).every(t=>{const n=e[t],a=d[t];return"number"==typeof n&&"number"==typeof a?Math.round(n)===Math.round(a):n===a})||c(e)}),b},[JSON.stringify(t),n,r,s,p]),{style:d}})({activeTabOffset:Xe,horizontal:Q,indicator:G,rtl:c});(0,a.useEffect)(()=>{Re()},[d,ye,ke,S(Xe),S(pe),Q]),(0,a.useEffect)(()=>{Oe()},[c]);const Fe=!!je.length,qe=`${O}-nav-wrap`;let Ve,Ye,Ue,Qe;return Q?c?(Ye=J>0,Ve=J!==ke):(Ve=J<0,Ye=J!==ye):(Ue=ee<0,Qe=ee!==ye),a.createElement(p.Ay,{onResize:Oe},a.createElement("div",{ref:(0,m.xK)(t,X),role:"tablist","aria-orientation":Q?"horizontal":"vertical",className:(0,s.$)(`${O}-nav`,n,D?.header),style:{...W?.header,...r},onKeyDown:()=>{Ce()}},a.createElement(A,{ref:K,position:"left",extra:v,prefixCls:O}),a.createElement(p.Ay,{onResize:Oe},a.createElement("div",{className:(0,s.$)(qe,{[`${qe}-ping-left`]:Ve,[`${qe}-ping-right`]:Ye,[`${qe}-ping-top`]:Ue,[`${qe}-ping-bottom`]:Qe}),ref:q},a.createElement(p.Ay,{onResize:Oe},a.createElement("div",{ref:V,className:`${O}-nav-list`,style:{transform:`translate(${J}px, ${ee}px)`,transition:we?"none":void 0}},De,a.createElement(C,{ref:U,prefixCls:O,locale:_,editable:z,style:{...0===De.length?void 0:Ge,visibility:Fe?"hidden":null}}),a.createElement("div",{className:(0,s.$)(`${O}-ink-bar`,D?.indicator,{[`${O}-ink-bar-animated`]:l.inkBar}),style:{...Ke,...W?.indicator}}))))),a.createElement(L,I({},e,{removeAriaLabel:_?.removeAriaLabel,ref:Y,prefixCls:O,tabs:je,className:!Fe&&ve,popupStyle:W?.popup,tabMoving:!!we})),a.createElement(A,{ref:F,position:"right",extra:v,prefixCls:O})))}),G=H,D=({renderTabBar:e,...t})=>e?e(t,G):a.createElement(G,t);var W=n(14373);const O=a.forwardRef((e,t)=>{const{prefixCls:n,className:o,style:r,id:i,active:l,tabKey:d,children:c}=e,u=a.Children.count(c)>0;return a.createElement("div",{id:i&&`${i}-panel-${d}`,role:"tabpanel",tabIndex:l&&u?0:-1,"aria-labelledby":i&&`${i}-tab-${d}`,"aria-hidden":!l,style:r,className:(0,s.$)(n,l&&`${n}-active`,o),ref:t},c)}),j=O;function X(){return X=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},X.apply(this,arguments)}const K=e=>{const{id:t,activeKey:n,animated:o,tabPosition:r,destroyOnHidden:i,contentStyle:l,contentClassName:d}=e,{prefixCls:c,tabs:p}=a.useContext(u),b=o.tabPane,m=`${c}-tabpane`;return a.createElement("div",{className:(0,s.$)(`${c}-content-holder`)},a.createElement("div",{className:(0,s.$)(`${c}-content`,`${c}-content-${r}`,{[`${c}-content-animated`]:b})},p.map(e=>{const{key:r,forceRender:c,style:u,className:p,destroyOnHidden:h,...$}=e,g=r===n;return a.createElement(W.Ay,X({key:r,visible:g,forceRender:c,removeOnLeave:!!(i??h),leavedClassName:`${m}-hidden`},o.tabPaneMotion),({style:e,className:n},o)=>a.createElement(j,X({},$,{prefixCls:m,id:t,tabKey:r,animated:b,active:g,style:{...l,...u,...e},className:(0,s.$)(d,p,n),ref:o})))})))};function F(){return F=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},F.apply(this,arguments)}n(19431);let q=0;const V=a.forwardRef((e,t)=>{const{id:n,prefixCls:o="rc-tabs",className:r,items:i,direction:l,activeKey:p,defaultActiveKey:b,editable:m,animated:h,tabPosition:$="top",tabBarGutter:g,tabBarStyle:f,tabBarExtraContent:v,locale:y,more:k,destroyOnHidden:S,renderTabBar:x,onChange:w,onTabClick:z,onTabScroll:C,getPopupContainer:A,popupClassName:_,indicator:E,classNames:R,styles:P,...M}=e,L=a.useMemo(()=>(i||[]).filter(e=>e&&"object"==typeof e&&"key"in e),[i]),T="rtl"===l,I=function(e={inkBar:!0,tabPane:!1}){let t;return t=!1===e?{inkBar:!1,tabPane:!1}:!0===e?{inkBar:!0,tabPane:!1}:{inkBar:!0,..."object"==typeof e?e:{}},t.tabPaneMotion&&void 0===t.tabPane&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}(h),[N,B]=(0,a.useState)(!1);(0,a.useEffect)(()=>{B((0,c.A)())},[]);const[H,G]=(0,d.A)(b??L[0]?.key,p),[W,O]=(0,a.useState)(()=>L.findIndex(e=>e.key===H));(0,a.useEffect)(()=>{let e=L.findIndex(e=>e.key===H);-1===e&&(e=Math.max(0,Math.min(W,L.length-1)),G(L[e]?.key)),O(e)},[L.map(e=>e.key).join("_"),H,W]);const[j,X]=(0,d.A)(null,n);(0,a.useEffect)(()=>{n||(X(`rc-tabs-${q}`),q+=1)},[]);const V={id:j,activeKey:H,animated:I,tabPosition:$,rtl:T,mobile:N},Y={...V,editable:m,locale:y,more:k,tabBarGutter:g,onTabClick:function(e,t){z?.(e,t);const n=e!==H;G(e),n&&w?.(e)},onTabScroll:C,extra:v,style:f,getPopupContainer:A,popupClassName:(0,s.$)(_,R?.popup),indicator:E,styles:P,classNames:R},U=a.useMemo(()=>({tabs:L,prefixCls:o}),[L,o]);return a.createElement(u.Provider,{value:U},a.createElement("div",F({ref:t,id:n,className:(0,s.$)(o,`${o}-${$}`,{[`${o}-mobile`]:N,[`${o}-editable`]:m,[`${o}-rtl`]:T},r)},M),a.createElement(D,F({},Y,{renderTabBar:x})),a.createElement(K,F({destroyOnHidden:S},V,{contentStyle:P?.content,contentClassName:R?.content,animated:I}))))}),Y=V;var U=n(44105),Q=n(29771),J=n(21586),Z=n(95401),ee=n(5265),te=n(72847);const ne={motionAppear:!1,motionEnter:!0,motionLeave:!0};var ae=n(81499);var oe=n(13700),re=n(25893),ie=n(20690),le=n(93579),se=n(14709);const de=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[(0,se._j)(e,"slide-up"),(0,se._j)(e,"slide-down")]]},ce=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:a,cardGutter:o,colorBorderSecondary:r,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:a,border:`${(0,oe.zA)(e.lineWidth)} ${e.lineType} ${r}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:(0,re.jk)(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:(0,oe.zA)(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${(0,oe.zA)(e.borderRadiusLG)} ${(0,oe.zA)(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${(0,oe.zA)(e.borderRadiusLG)} ${(0,oe.zA)(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:(0,oe.zA)(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,oe.zA)(e.borderRadiusLG)} 0 0 ${(0,oe.zA)(e.borderRadiusLG)}`}},[`${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 ${(0,oe.zA)(e.borderRadiusLG)} ${(0,oe.zA)(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},ue=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:a}=e;return{[`${t}-dropdown`]:{...(0,re.dF)(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:`${(0,oe.zA)(a)} 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":{...re.L9,display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${(0,oe.zA)(e.paddingXXS)} ${(0,oe.zA)(e.paddingSM)}`,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.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}}}}}},pe=e=>{const{componentCls:t,margin:n,colorBorderSecondary:a,horizontalMargin:o,verticalItemPadding:r,verticalItemMargin:i,motionDurationSlow:l,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${(0,oe.zA)(e.lineWidth)} ${e.lineType} ${a}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:["width","left","right"].map(e=>`${e} ${l}`).join(", ")}},[`${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:n,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:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:r,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${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","top"].map(e=>`${e} ${l}`).join(", ")}},[`${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:(0,oe.zA)(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,oe.zA)(e.lineWidth)} ${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:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${(0,oe.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},be=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:a,cardHeightSM:o,cardHeightLG:r,horizontalItemPaddingSM:i,horizontalItemPaddingLG:l}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:l,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:o,minHeight:o}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${(0,oe.zA)(e.borderRadius)} ${(0,oe.zA)(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${(0,oe.zA)(e.borderRadius)} ${(0,oe.zA)(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,oe.zA)(e.borderRadius)} ${(0,oe.zA)(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,oe.zA)(e.borderRadius)} 0 0 ${(0,oe.zA)(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a},[`${t}-nav-add`]:{minWidth:r,minHeight:r}}}}}},me=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:a,iconCls:o,tabsHorizontalItemMargin:r,horizontalItemPadding:i,itemSelectedColor:l,itemColor:s}=e,d=`${t}-tab`;return{[d]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:s,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${d}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading},...(0,re.K8)(e)},"&:hover":{color:a},[`&${d}-active ${d}-btn`]:{color:l},[`&${d}-focus ${d}-btn:focus-visible`]:(0,re.jk)(e),[`&${d}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${d}-disabled ${d}-btn, &${d}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${d}-remove ${o}`]:{margin:0,verticalAlign:"middle"},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${d} + ${d}`]:{margin:{_skip_check_:!0,value:r}}}},he=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:a,cardGutter:o,calc:r}=e,i=`${t}-rtl`;return{[i]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[a]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:e.marginSM}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:e.marginXS},marginLeft:{_skip_check_:!0,value:r(e.marginXXS).mul(-1).equal()},[a]:{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},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},$e=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:a,cardGutter:o,itemHoverColor:r,itemActiveColor:i,colorBorderSecondary:l}=e;return{[t]:{...(0,re.dF)(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:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:{minWidth:a,minHeight:a,marginLeft:{_skip_check_:!0,value:o},background:"transparent",border:`${(0,oe.zA)(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${(0,oe.zA)(e.borderRadiusLG)} ${(0,oe.zA)(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:r},"&:active, &:focus:not(:focus-visible)":{color:i},...(0,re.K8)(e,-3)}},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"},...me(e),[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{...(0,re.K8)(e),"&-hidden":{display:"none"}}},[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},ge=(0,ie.OF)("Tabs",e=>{const t=(0,le.oX)(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${(0,oe.zA)(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${(0,oe.zA)(e.horizontalItemGutter)}`});return[be(t),he(t),pe(t),ue(t),ce(t),$e(t),de(t)]},e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:a,controlHeight:o,controlHeightLG:r}=e,i=t||r,l=n||o,s=a||r+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:i,cardHeightSM:l,cardHeightLG:s,cardPadding:`${(i-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(l-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(s-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}),fe=a.forwardRef((e,t)=>{const{type:n,className:o,rootClassName:d,size:c,onEdit:u,hideAdd:p,centered:b,addIcon:m,removeIcon:h,moreIcon:$,more:g,popupClassName:f,children:v,items:y,animated:k,style:S,indicatorSize:x,indicator:w,classNames:z,styles:C,destroyInactiveTabPane:A,destroyOnHidden:_,tabPlacement:E,tabPosition:R,...P}=e,{prefixCls:M}=P,{getPrefixCls:L,direction:T,getPopupContainer:I,className:N,style:B,classNames:H,styles:G}=(0,Q.TP)("tabs"),{tabs:D}=a.useContext(Q.QO),W=L("tabs",M),O=(0,J.A)(W),[j,X]=ge(W,O),K=a.useRef(null);let F;a.useImperativeHandle(t,()=>({nativeElement:K.current})),"editable-card"===n&&(F={onEdit:(e,{key:t,event:n})=>{u?.("add"===e?n:t,e)},removeIcon:h??D?.removeIcon??a.createElement(r.A,null),addIcon:(m??D?.addIcon)||a.createElement(l.A,null),showAdd:!0!==p});const q=L(),V=(0,Z.A)(c),oe=function(e,t){return e?e.map(e=>({...e,destroyOnHidden:e.destroyOnHidden??e.destroyInactiveTabPane})):function(e){return e.filter(e=>e)}((0,ae.$r)(t).map(e=>{if(a.isValidElement(e)){const{key:t,props:n}=e,{tab:a,...o}=n||{};return{key:String(t),...o,label:a}}return null}))}(y,v),re=function(e,t={inkBar:!0,tabPane:!1}){let n;return n=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!0}:{inkBar:!0,...(0,ee.Qd)(t)?t:{}},n.tabPane&&(n.tabPaneMotion={...ne,motionName:(0,te.b)(e,"switch")}),n}(W,k),ie={align:w?.align??D?.indicator?.align,size:w?.size??x??D?.indicator?.size??D?.indicatorSize},le=a.useMemo(()=>{const e=E??R??void 0,t="rtl"===T;switch(e){case"start":return t?"right":"left";case"end":return t?"left":"right";default:return e}},[E,R,T]),se={...e,size:V,tabPlacement:le,items:oe},[de,ce]=(0,U.AV)([H,z],[G,C],{props:se},{popup:{_default:"root"}});return a.createElement(Y,{ref:K,direction:T,getPopupContainer:I,...P,items:oe,className:(0,s.$)({[`${W}-large`]:"large"===V,[`${W}-small`]:"small"===V,[`${W}-card`]:["card","editable-card"].includes(n),[`${W}-editable-card`]:"editable-card"===n,[`${W}-centered`]:b},N,o,d,de.root,j,X,O),classNames:{...de,popup:(0,s.$)(f,j,X,O,de.popup?.root)},styles:ce,style:{...ce.root,...B,...S},editable:F,more:{icon:D?.more?.icon??D?.moreIcon??$??a.createElement(i.A,null),transitionName:`${q}-slide-up`,...g},prefixCls:W,animated:re,indicator:ie,destroyOnHidden:_??A,tabPosition:le})}),ve=fe;ve.TabPane=()=>null;const ye=ve}}]);
//# sourceMappingURL=https://sourcemap.devowl.io/real-cookie-banner/5.3.0/2e05edf83333ee286f302bc9b2b6c92b/577.lite.js.map