@juanitte/inoui 1.1.3 → 1.1.4

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/dist/ino-ui.cjs CHANGED
@@ -77,7 +77,7 @@
77
77
  --ty: ${k}px;
78
78
  animation: j-particle 0.6s ease-out ${b}s forwards;
79
79
  pointer-events: none;
80
- `,a.appendChild(d)}document.body.appendChild(a),setTimeout(()=>a.remove(),700)}function jl(){return t.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",style:{animation:"j-spin 1s linear infinite"},children:t.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeDasharray:"32",strokeDashoffset:"12"})})}const Sl={pink:"#eb2f96",magenta:"#eb2f96",red:"#f5222d",volcano:"#fa541c",orange:"#fa8c16",gold:"#faad14",yellow:"#fadb14",lime:"#a0d911",green:"#52c41a",cyan:"#13c2c2",blue:"#1677ff",geekblue:"#2f54eb",purple:"#722ed1"};function Ml(e){if(e)return Sl[e]??e}const Yt=8;function hn(e,r){const n=e.left+e.width/2,o=e.top+e.height/2;switch(r){case"top":return{top:e.top-Yt,left:n};case"topLeft":return{top:e.top-Yt,left:e.left};case"topRight":return{top:e.top-Yt,left:e.right};case"bottom":return{top:e.bottom+Yt,left:n};case"bottomLeft":return{top:e.bottom+Yt,left:e.left};case"bottomRight":return{top:e.bottom+Yt,left:e.right};case"left":return{top:o,left:e.left-Yt};case"leftTop":return{top:e.top,left:e.left-Yt};case"leftBottom":return{top:e.bottom,left:e.left-Yt};case"right":return{top:o,left:e.right+Yt};case"rightTop":return{top:e.top,left:e.right+Yt};case"rightBottom":return{top:e.bottom,left:e.right+Yt}}}function Rl(e,r){const n=r?0:6;switch(e){case"top":return`translateX(-50%) translateY(-100%) translateY(${n}px)`;case"topLeft":return`translateY(-100%) translateY(${n}px)`;case"topRight":return`translateX(-100%) translateY(-100%) translateY(${n}px)`;case"bottom":return`translateX(-50%) translateY(${-n}px)`;case"bottomLeft":return`translateY(${-n}px)`;case"bottomRight":return`translateX(-100%) translateY(${-n}px)`;case"left":return`translateX(-100%) translateY(-50%) translateX(${n}px)`;case"leftTop":return`translateX(-100%) translateX(${n}px)`;case"leftBottom":return`translateX(-100%) translateY(-100%) translateX(${n}px)`;case"right":return`translateY(-50%) translateX(${-n}px)`;case"rightTop":return`translateX(${-n}px)`;case"rightBottom":return`translateY(-100%) translateX(${-n}px)`}}function Bl(e){switch(e){case"topLeft":case"topRight":return"top";case"bottomLeft":case"bottomRight":return"bottom";case"leftTop":case"leftBottom":return"left";case"rightTop":case"rightBottom":return"right";default:return e}}function Tl(e,r,n,o){const l={position:"absolute",width:"0.5rem",height:"0.5rem",backgroundColor:r},a=n!=="transparent"?`1px solid ${n}`:"none";switch(o?Bl(e):e){case"top":return{...l,bottom:"-0.25rem",left:"50%",transform:"translateX(-50%) rotate(45deg)",borderRight:a,borderBottom:a};case"topLeft":return{...l,bottom:"-0.25rem",left:"1rem",transform:"rotate(45deg)",borderRight:a,borderBottom:a};case"topRight":return{...l,bottom:"-0.25rem",right:"1rem",transform:"rotate(45deg)",borderRight:a,borderBottom:a};case"bottom":return{...l,top:"-0.25rem",left:"50%",transform:"translateX(-50%) rotate(-135deg)",borderRight:a,borderBottom:a};case"bottomLeft":return{...l,top:"-0.25rem",left:"1rem",transform:"rotate(-135deg)",borderRight:a,borderBottom:a};case"bottomRight":return{...l,top:"-0.25rem",right:"1rem",transform:"rotate(-135deg)",borderRight:a,borderBottom:a};case"left":return{...l,right:"-0.25rem",top:"50%",transform:"translateY(-50%) rotate(-45deg)",borderRight:a,borderBottom:a};case"leftTop":return{...l,right:"-0.25rem",top:"0.75rem",transform:"rotate(-45deg)",borderRight:a,borderBottom:a};case"leftBottom":return{...l,right:"-0.25rem",bottom:"0.75rem",transform:"rotate(-45deg)",borderRight:a,borderBottom:a};case"right":return{...l,left:"-0.25rem",top:"50%",transform:"translateY(-50%) rotate(135deg)",borderRight:a,borderBottom:a};case"rightTop":return{...l,left:"-0.25rem",top:"0.75rem",transform:"rotate(135deg)",borderRight:a,borderBottom:a};case"rightBottom":return{...l,left:"-0.25rem",bottom:"0.75rem",transform:"rotate(135deg)",borderRight:a,borderBottom:a}}}function Ll(e){return e==="top"?"bottom":e==="topLeft"?"bottomLeft":e==="topRight"?"bottomRight":e==="bottom"?"top":e==="bottomLeft"?"topLeft":e==="bottomRight"?"topRight":e==="left"?"right":e==="leftTop"?"rightTop":e==="leftBottom"?"rightBottom":e==="right"?"left":e==="rightTop"?"leftTop":e==="rightBottom"?"leftBottom":e}function Nt({content:e,children:r,placement:n,position:o,arrow:l=!0,color:a,autoAdjustOverflow:c=!0,delay:d=200,disabled:f=!1,className:u,style:h,classNames:g,styles:m}){const y=n??o??"top",[p,v]=s.useState(!1),[k,j]=s.useState(!1),[b,C]=s.useState({top:0,left:0}),[x,w]=s.useState(y),M=s.useRef(null),R=s.useRef(null),S=s.useRef(null),B=s.useRef(null),I=s.useRef(!1),T=s.useRef(!0),_=s.useRef(p);_.current=p,s.useEffect(()=>{w(y)},[y]);const L=s.useCallback(()=>{if(!S.current)return;const re=S.current.getBoundingClientRect();C(hn(re,x))},[x]),N=s.useCallback(()=>{if(!f){if(R.current&&(clearTimeout(R.current),R.current=null),M.current&&clearTimeout(M.current),_.current){j(!0);return}I.current=!1,T.current=!0,M.current=window.setTimeout(()=>{w(y),S.current&&C(hn(S.current.getBoundingClientRect(),y)),v(!0),requestAnimationFrame(()=>{requestAnimationFrame(()=>{T.current=!1,j(!0)})})},d)}},[f,d,y]),$=s.useCallback(()=>{M.current&&(clearTimeout(M.current),M.current=null),j(!1),R.current=window.setTimeout(()=>v(!1),150)},[]);s.useEffect(()=>()=>{M.current&&clearTimeout(M.current),R.current&&clearTimeout(R.current)},[]),s.useEffect(()=>{if(!p)return;const re=()=>L();return window.addEventListener("scroll",re,!0),window.addEventListener("resize",re),()=>{window.removeEventListener("scroll",re,!0),window.removeEventListener("resize",re)}},[p,L]),s.useLayoutEffect(()=>{if(!c||!p||I.current||!B.current||!S.current)return;I.current=!0;const re=B.current.getBoundingClientRect(),oe=S.current.getBoundingClientRect(),se=x.startsWith("top"),J=x.startsWith("bottom"),ie=x.startsWith("left"),_e=x.startsWith("right");let we=!1;if(se&&re.top<0?window.innerHeight-oe.bottom>oe.top&&(we=!0):J&&re.bottom>window.innerHeight?oe.top>window.innerHeight-oe.bottom&&(we=!0):ie&&re.left<0?window.innerWidth-oe.right>oe.left&&(we=!0):_e&&re.right>window.innerWidth&&oe.left>window.innerWidth-oe.right&&(we=!0),we){const je=Ll(x);w(je),C(hn(oe,je))}});const P=Ml(a),E=!!P,z=E?P:i.colorBgMuted,F=E?"#fff":i.colorText,A=E?"transparent":i.colorBorder,D=l!==!1,W=typeof l=="object"&&l.pointAtCenter,V=Y("ino-tooltip__popup",E?"ino-tooltip__popup--colorful":"ino-tooltip__popup--default",{"ino-tooltip__popup--no-transition":T.current},g?.popup),Z={top:b.top,left:b.left,...E?{backgroundColor:z,color:F}:{},opacity:k?1:0,transform:Rl(x,k),...m?.popup},X={...Tl(x,z,A,W),...m?.arrow},U=Y("ino-tooltip",u,g?.root),q={...m?.root,...h},H=p&&typeof document<"u"?nr.createPortal(t.jsxs("div",{ref:B,style:Z,className:V,role:"tooltip",children:[e,D&&t.jsx("div",{style:X,className:Y("ino-tooltip__arrow",g?.arrow)})]}),document.body):null;return t.jsxs("div",{ref:S,style:q,className:U,onMouseEnter:N,onMouseLeave:$,onFocus:N,onBlur:$,children:[r,H]})}const Kt=8;function pn(e,r){const n=e.left+e.width/2,o=e.top+e.height/2;switch(r){case"top":return{top:e.top-Kt,left:n};case"topLeft":return{top:e.top-Kt,left:e.left};case"topRight":return{top:e.top-Kt,left:e.right};case"bottom":return{top:e.bottom+Kt,left:n};case"bottomLeft":return{top:e.bottom+Kt,left:e.left};case"bottomRight":return{top:e.bottom+Kt,left:e.right};case"left":return{top:o,left:e.left-Kt};case"leftTop":return{top:e.top,left:e.left-Kt};case"leftBottom":return{top:e.bottom,left:e.left-Kt};case"right":return{top:o,left:e.right+Kt};case"rightTop":return{top:e.top,left:e.right+Kt};case"rightBottom":return{top:e.bottom,left:e.right+Kt}}}function _l(e,r){const n=r?0:6;switch(e){case"top":return`translateX(-50%) translateY(-100%) translateY(${n}px)`;case"topLeft":return`translateY(-100%) translateY(${n}px)`;case"topRight":return`translateX(-100%) translateY(-100%) translateY(${n}px)`;case"bottom":return`translateX(-50%) translateY(${-n}px)`;case"bottomLeft":return`translateY(${-n}px)`;case"bottomRight":return`translateX(-100%) translateY(${-n}px)`;case"left":return`translateX(-100%) translateY(-50%) translateX(${n}px)`;case"leftTop":return`translateX(-100%) translateX(${n}px)`;case"leftBottom":return`translateX(-100%) translateY(-100%) translateX(${n}px)`;case"right":return`translateY(-50%) translateX(${-n}px)`;case"rightTop":return`translateX(${-n}px)`;case"rightBottom":return`translateY(-100%) translateX(${-n}px)`}}function El(e){const r={position:"absolute",width:"0.5rem",height:"0.5rem",backgroundColor:i.colorBg},n=`1px solid ${i.colorBorder}`;switch(e){case"top":return{...r,bottom:"-0.25rem",left:"50%",transform:"translateX(-50%) rotate(45deg)",borderRight:n,borderBottom:n};case"topLeft":return{...r,bottom:"-0.25rem",left:"1rem",transform:"rotate(45deg)",borderRight:n,borderBottom:n};case"topRight":return{...r,bottom:"-0.25rem",right:"1rem",transform:"rotate(45deg)",borderRight:n,borderBottom:n};case"bottom":return{...r,top:"-0.25rem",left:"50%",transform:"translateX(-50%) rotate(-135deg)",borderRight:n,borderBottom:n};case"bottomLeft":return{...r,top:"-0.25rem",left:"1rem",transform:"rotate(-135deg)",borderRight:n,borderBottom:n};case"bottomRight":return{...r,top:"-0.25rem",right:"1rem",transform:"rotate(-135deg)",borderRight:n,borderBottom:n};case"left":return{...r,right:"-0.25rem",top:"50%",transform:"translateY(-50%) rotate(-45deg)",borderRight:n,borderBottom:n};case"leftTop":return{...r,right:"-0.25rem",top:"0.75rem",transform:"rotate(-45deg)",borderRight:n,borderBottom:n};case"leftBottom":return{...r,right:"-0.25rem",bottom:"0.75rem",transform:"rotate(-45deg)",borderRight:n,borderBottom:n};case"right":return{...r,left:"-0.25rem",top:"50%",transform:"translateY(-50%) rotate(135deg)",borderRight:n,borderBottom:n};case"rightTop":return{...r,left:"-0.25rem",top:"0.75rem",transform:"rotate(135deg)",borderRight:n,borderBottom:n};case"rightBottom":return{...r,left:"-0.25rem",bottom:"0.75rem",transform:"rotate(135deg)",borderRight:n,borderBottom:n}}}function Il(e){return e==="top"?"bottom":e==="topLeft"?"bottomLeft":e==="topRight"?"bottomRight":e==="bottom"?"top":e==="bottomLeft"?"topLeft":e==="bottomRight"?"topRight":e==="left"?"right":e==="leftTop"?"rightTop":e==="leftBottom"?"rightBottom":e==="right"?"left":e==="rightTop"?"leftTop":e==="rightBottom"?"leftBottom":e}function Vo({title:e,content:r,children:n,placement:o="top",trigger:l="hover",open:a,onOpenChange:c,arrow:d=!0,mouseEnterDelay:f=100,mouseLeaveDelay:u=100,disabled:h=!1,className:g,style:m,classNames:y,styles:p}){const[v,k]=s.useState(!1),[j,b]=s.useState(!1),[C,x]=s.useState(!1),[w,M]=s.useState({top:0,left:0}),[R,S]=s.useState(o),B=s.useRef(null),I=s.useRef(null),T=s.useRef(null),_=s.useRef(null),L=s.useRef(null),N=s.useRef(null),$=s.useRef(!1),P=s.useRef(!0),E=a!==void 0,z=E?a:v,F=s.useRef(z);F.current=z;const A=s.useRef(z);A.current!==z&&(A.current=z,!z&&j&&!C&&x(!0),z&&C&&x(!1));const D=Array.isArray(l)?l:[l];s.useEffect(()=>{S(o)},[o]);const W=s.useCallback(Te=>{h||Te===F.current||(E||k(Te),c?.(Te))},[h,E,c]),V=s.useCallback(()=>{if(!L.current)return;const Te=L.current.getBoundingClientRect();M(pn(Te,R))},[R]),Z=s.useCallback(()=>{if(I.current&&(clearTimeout(I.current),I.current=null),T.current&&(clearTimeout(T.current),T.current=null),B.current&&clearTimeout(B.current),F.current){b(!0);return}$.current=!1,P.current=!0;const Te=D.includes("hover")?f:0;B.current=window.setTimeout(()=>{S(o),L.current&&M(pn(L.current.getBoundingClientRect(),o)),W(!0),requestAnimationFrame(()=>{requestAnimationFrame(()=>{P.current=!1,b(!0)})})},Te)},[f,D,o,W]),X=s.useCallback(()=>{B.current&&(clearTimeout(B.current),B.current=null),I.current&&clearTimeout(I.current);const Te=D.includes("hover")?u:0;I.current=window.setTimeout(()=>{b(!1),T.current=window.setTimeout(()=>W(!1),150)},Te)},[u,D,W]),U=s.useCallback(()=>{z?X():Z()},[z,Z,X]);s.useEffect(()=>{if(C)return b(!1),_.current=window.setTimeout(()=>{x(!1),_.current=null},150),()=>{_.current&&(clearTimeout(_.current),_.current=null)}},[C]),s.useEffect(()=>()=>{B.current&&clearTimeout(B.current),I.current&&clearTimeout(I.current),T.current&&clearTimeout(T.current),_.current&&clearTimeout(_.current)},[]),s.useEffect(()=>{if(!z)return;const Te=()=>V();return window.addEventListener("scroll",Te,!0),window.addEventListener("resize",Te),()=>{window.removeEventListener("scroll",Te,!0),window.removeEventListener("resize",Te)}},[z,V]),s.useLayoutEffect(()=>{if(!z||$.current||!N.current||!L.current)return;$.current=!0;const Te=N.current.getBoundingClientRect(),Ie=L.current.getBoundingClientRect(),Re=R.startsWith("top"),O=R.startsWith("bottom"),K=R.startsWith("left"),te=R.startsWith("right");let ne=!1;if(Re&&Te.top<0?window.innerHeight-Ie.bottom>Ie.top&&(ne=!0):O&&Te.bottom>window.innerHeight?Ie.top>window.innerHeight-Ie.bottom&&(ne=!0):K&&Te.left<0?window.innerWidth-Ie.right>Ie.left&&(ne=!0):te&&Te.right>window.innerWidth&&Ie.left>window.innerWidth-Ie.right&&(ne=!0),ne){const ce=Il(R);S(ce),M(pn(Ie,ce))}}),s.useEffect(()=>{if(!z||!D.includes("click"))return;const Te=Ie=>{const Re=Ie.target;L.current&&!L.current.contains(Re)&&N.current&&!N.current.contains(Re)&&X()};return document.addEventListener("mousedown",Te),()=>document.removeEventListener("mousedown",Te)},[z,D,X]);const q=s.useCallback(()=>{D.includes("hover")&&Z()},[D,Z]),H=s.useCallback(()=>{D.includes("hover")&&X()},[D,X]),re=s.useCallback(()=>{D.includes("click")&&U()},[D,U]),oe=s.useCallback(()=>{D.includes("focus")&&Z()},[D,Z]),se=s.useCallback(()=>{D.includes("focus")&&X()},[D,X]),J=s.useCallback(Te=>{D.includes("contextMenu")&&(Te.preventDefault(),U())},[D,U]),ie=s.useCallback(Te=>{Te.stopPropagation(),D.includes("hover")&&I.current&&(clearTimeout(I.current),I.current=null)},[D]),_e=s.useCallback(Te=>{Te.stopPropagation(),D.includes("hover")&&X()},[D,X]),we=typeof e=="function"?e():e,je=typeof r=="function"?r():r,ae=Y("ino-popover",g,y?.root),he={...p?.root,...m},fe=Y("ino-popover__popup-container",{"ino-popover__popup-container--no-transition":P.current}),Se={top:w.top,left:w.left,opacity:j?1:0,transform:_l(R,j),pointerEvents:j?"auto":"none"},We={...El(R),...p?.arrow},Le=(z||C)&&typeof document<"u"?nr.createPortal(t.jsxs("div",{ref:N,className:fe,style:Se,onMouseEnter:ie,onMouseLeave:_e,children:[t.jsxs("div",{className:Y("ino-popover__card",y?.popup),style:p?.popup,children:[we!=null&&t.jsx("div",{className:Y("ino-popover__title",{"ino-popover__title--bordered":je!=null},y?.title),style:p?.title,children:we}),je!=null&&t.jsx("div",{className:Y("ino-popover__content",y?.content),style:p?.content,children:je})]}),d&&t.jsx("div",{style:We,className:Y("ino-popover__arrow",y?.arrow)})]}),document.body):null;return t.jsxs("div",{ref:L,style:he,className:ae,onMouseEnter:q,onMouseLeave:H,onClick:re,onFocus:oe,onBlur:se,onContextMenu:J,children:[n,Le]})}const Jn={success:i.colorSuccess,processing:i.colorPrimary,default:i.colorBorder,error:i.colorError,warning:i.colorWarning},$l={pink:"#eb2f96",magenta:"#eb2f96",red:"#f5222d",volcano:"#fa541c",orange:"#fa8c16",gold:"#faad14",yellow:"#fadb14",lime:"#a0d911",green:"#52c41a",cyan:"#13c2c2",blue:"#1677ff",geekblue:"#2f54eb",purple:"#722ed1"};function Mn(e){return $l[e]??e}function Dl({children:e,count:r,overflowCount:n=99,dot:o=!1,showZero:l=!1,size:a="default",status:c,text:d,color:f,offset:u,title:h,className:g,style:m,classNames:y,styles:p}){const v=a==="small",k=e!=null&&e!=="",j=c!==void 0,C=o?(typeof r=="number"?r:void 0)!==0||l:r!=null?typeof r=="number"?r>0||l:!0:!1,x=o?null:typeof r=="number"?r>n?`${n}+`:`${r}`:r,w=h??(typeof r=="number"?`${r}`:void 0);if(!k&&j){const L=f?Mn(f):Jn[c];return t.jsxs("span",{className:Y("ino-badge--status",g,y?.root),style:{...p?.root,...m},children:[t.jsx("span",{className:Y("ino-badge__status-dot",y?.indicator),style:{backgroundColor:L,...p?.indicator},children:c==="processing"&&t.jsx("span",{className:"ino-badge__status-dot-pulse",style:{backgroundColor:L}})}),d!=null&&t.jsx("span",{className:"ino-badge__status-text",children:d})]})}const M=f?Mn(f):j?Jn[c]:i.colorError,R=u?-u[0]:0,S=u?u[1]:0,B=k?`translate(50%, -50%) translate(${R}px, ${S}px)`:void 0,I=Y({"ino-badge__sup":k,"ino-badge__sup--with-children":k},y?.indicator),T=o?Y("ino-badge__dot",v?"ino-badge__dot--small":"ino-badge__dot--default"):Y("ino-badge__indicator",v?"ino-badge__indicator--small":"ino-badge__indicator--default"),_={backgroundColor:M,...k?{transform:B}:{},...p?.indicator};return k?t.jsxs("span",{className:Y("ino-badge",g,y?.root),style:{...p?.root,...m},children:[e,C&&t.jsx(Nt,{content:w,disabled:!w,children:t.jsx("sup",{className:Y(T,I),style:_,children:x})})]}):C?t.jsx("span",{className:Y("ino-badge--standalone",g,y?.root),style:{...p?.root,...m},children:t.jsx(Nt,{content:w,disabled:!w,children:t.jsx("sup",{className:Y(T,I),style:_,children:x})})}):null}function Pl({children:e,text:r,color:n=i.colorPrimary,placement:o="end",className:l,style:a,classNames:c,styles:d}){const f=o==="end",u=Mn(n);return t.jsxs("div",{className:Y("ino-badge-ribbon-wrapper",l,c?.wrapper),style:{...d?.wrapper,...a},children:[e,t.jsxs("div",{className:Y("ino-badge-ribbon",f?"ino-badge-ribbon--end":"ino-badge-ribbon--start",c?.ribbon),style:{backgroundColor:u,...d?.ribbon},children:[t.jsx("span",{className:c?.content,style:d?.content,children:r}),t.jsx("div",{className:Y("ino-badge-ribbon__corner",f?"ino-badge-ribbon__corner--end":"ino-badge-ribbon__corner--start",c?.corner),style:{backgroundColor:u,...d?.corner}})]})]})}const Al=Object.assign(Dl,{Ribbon:Pl}),zl={primary:{base:i.colorPrimary,contrast:i.colorPrimaryContrast},secondary:{base:i.colorSecondary,contrast:i.colorSecondaryContrast},success:{base:i.colorSuccess,contrast:i.colorSuccessContrast},warning:{base:i.colorWarning,contrast:i.colorWarningContrast},error:{base:i.colorError,contrast:i.colorErrorContrast},info:{base:i.colorInfo,contrast:i.colorInfoContrast}};function Fl({icon:e,description:r,position:n="bottom-right",shape:o="circle",size:l="md",color:a="primary",tooltip:c,tooltipPosition:d,offsetX:f=24,offsetY:u=24,shadow:h="lg",bordered:g=!0,onBackToTop:m,visibleOnScroll:y,disabled:p,className:v,style:k,onClick:j,_inGroup:b,classNames:C,styles:x,...w}){const[M,R]=s.useState(!1),[S,B]=s.useState(y===void 0),I=s.useRef(null);s.useEffect(()=>{if(y===void 0)return;const V=()=>{B(window.scrollY>=y)};return window.addEventListener("scroll",V),V(),()=>window.removeEventListener("scroll",V)},[y]);const T={sm:{iconSize:16},md:{iconSize:20},lg:{iconSize:24}},_={"top-left":{top:u,left:f},"top-right":{top:u,right:f},"bottom-left":{bottom:u,left:f},"bottom-right":{bottom:u,right:f}},L=()=>d||(n.includes("right")?"left":n.includes("left")?"right":"left"),N=!k?.position||k.position==="fixed"||k.position==="absolute",$=h===!0?"lg":h,P=zl[a],E=Y("ino-bubble",`ino-bubble--${o}`,`ino-bubble--${l}`,{"ino-bubble--bordered":g,"ino-bubble--disabled":p,"ino-bubble--in-group":b,"ino-bubble--hovered":M,[`ino-bubble--shadow-${$}`]:!!h},v,C?.root),z={"--_base":P.base,"--_contrast":P.contrast,...N?_[n]:{},zIndex:M?1002:N?1e3:void 0,...x?.root,...k},F=V=>{p||(m&&(window.scrollTo({top:0,behavior:"smooth"}),m()),j?.(V))};if(!S)return null;const A=L(),D={top:{bottom:"100%",left:"50%",marginBottom:"0.5rem",transform:`translateX(-50%) translateY(${M?0:6}px)`},bottom:{top:"100%",left:"50%",marginTop:"0.5rem",transform:`translateX(-50%) translateY(${M?0:-6}px)`},left:{right:"100%",top:"50%",marginRight:"0.5rem",transform:`translateY(-50%) translateX(${M?0:6}px)`},right:{left:"100%",top:"50%",marginLeft:"0.5rem",transform:`translateY(-50%) translateX(${M?0:-6}px)`}},W={top:{bottom:"-0.25rem",left:"50%",transform:"translateX(-50%) rotate(45deg)",borderRight:`1px solid ${i.colorBorder}`,borderBottom:`1px solid ${i.colorBorder}`},bottom:{top:"-0.25rem",left:"50%",transform:"translateX(-50%) rotate(-135deg)",borderRight:`1px solid ${i.colorBorder}`,borderBottom:`1px solid ${i.colorBorder}`},left:{right:"-0.25rem",top:"50%",transform:"translateY(-50%) rotate(-45deg)",borderRight:`1px solid ${i.colorBorder}`,borderBottom:`1px solid ${i.colorBorder}`},right:{left:"-0.25rem",top:"50%",transform:"translateY(-50%) rotate(135deg)",borderRight:`1px solid ${i.colorBorder}`,borderBottom:`1px solid ${i.colorBorder}`}};return t.jsxs("button",{ref:I,disabled:p,className:E,style:z,onMouseEnter:()=>R(!0),onMouseLeave:()=>R(!1),onClick:F,...w,children:[e?t.jsx("span",{className:Y("ino-bubble__icon",C?.icon),style:{fontSize:T[l].iconSize,...x?.icon},children:e}):r?t.jsx("span",{className:C?.icon,style:x?.icon,children:r}):t.jsx(_r,{size:T[l].iconSize}),c&&t.jsxs("div",{className:Y("ino-bubble__tooltip",{"ino-bubble__tooltip--visible":M},C?.tooltip),style:{...D[A],...x?.tooltip},role:"tooltip",children:[c,t.jsx("div",{className:Y("ino-bubble__tooltip-arrow",C?.tooltipArrow),style:{...W[A],...x?.tooltipArrow}})]})]})}function Nl({children:e,position:r="bottom-right",direction:n="top",size:o="md",offsetX:l=24,offsetY:a=24,shadow:c="lg",style:d,className:f}){const u={"top-left":{top:a,left:l},"top-right":{top:a,right:l},"bottom-left":{bottom:a,left:l},"bottom-right":{bottom:a,right:l}},h=n==="top"||n==="bottom",g=c===!0?"lg":c,y={flexDirection:(()=>{switch(n){case"top":return"column-reverse";case"bottom":return"column";case"left":return"row-reverse";case"right":return"row"}})(),boxShadow:g?`var(--j-shadow${g.charAt(0).toUpperCase()+g.slice(1)})`:void 0,...u[r],...d},v=s.Children.toArray(e).filter(s.isValidElement),k=v.length,j="0.5rem",b=C=>{const x=C===0,w=C===k-1;if(k===1)return j;if(h){const R=n==="top"?w:x,S=n==="top"?x:w;if(R)return`${j} ${j} 0 0`;if(S)return`0 0 ${j} ${j}`}else{const R=n==="right"?w:x,S=n==="right"?x:w;if(R)return`${j} 0 0 ${j}`;if(S)return`0 ${j} ${j} 0`}return"0"};return t.jsx("div",{className:Y("ino-bubble-group",f),style:y,children:v.map((C,x)=>s.isValidElement(C)?s.cloneElement(C,{key:x,style:{position:"relative",borderRadius:b(x),...C.props.style},size:C.props.size||o,shape:"square",shadow:!1,_inGroup:!0}):null)})}function Wl({children:e,position:r="bottom-right",direction:n="top",trigger:o="click",icon:l,openIcon:a,shape:c="circle",size:d="md",color:f="primary",offsetX:u=24,offsetY:h=24,shadow:g="lg",tooltip:m,defaultOpen:y=!1,open:p,onOpenChange:v,gap:k=12,style:j,className:b,classNames:C,styles:x}){const[w,M]=s.useState(y),R=p!==void 0,S=R?p:w,B=Z=>{R||M(Z),v?.(Z)},I=()=>{o==="click"&&B(!S)},T=()=>{o==="hover"&&B(!0)},_=()=>{o==="hover"&&B(!1)},L={sm:40,md:48,lg:56},N=L[d]===40?16:L[d]===48?20:24,$={"top-left":{top:h,left:u},"top-right":{top:h,right:u},"bottom-left":{bottom:h,left:u},"bottom-right":{bottom:h,right:u}},P=n==="top"||n==="bottom",E=()=>{switch(n){case"top":return"column-reverse";case"bottom":return"column";case"left":return"row-reverse";case"right":return"row"}},z=j?.position==="relative"||j?.position==="static",A=s.Children.toArray(e).filter(s.isValidElement),D=()=>{if(S)return 0;switch(n){case"top":return 20;case"bottom":return-20;case"left":return 20;case"right":return-20}},W=()=>{const Z=k;switch(n){case"top":return{bottom:"100%",left:"50%",transform:"translateX(-50%)",paddingBottom:Z};case"bottom":return{top:"100%",left:"50%",transform:"translateX(-50%)",paddingTop:Z};case"left":return{right:"100%",top:"50%",transform:"translateY(-50%)",paddingRight:Z};case"right":return{left:"100%",top:"50%",transform:"translateY(-50%)",paddingLeft:Z}}};if(z)return t.jsxs("div",{className:Y("ino-bubble-menu","ino-bubble-menu--inline",b,C?.root),style:{...x?.root,...j},onMouseEnter:T,onMouseLeave:_,children:[t.jsx(Ar,{icon:a?S?a:l||t.jsx(_r,{size:N}):l||t.jsx(_r,{size:N}),shape:c,size:d,color:f,shadow:g,tooltip:S?void 0:m,onClick:I,_inGroup:!0,className:C?.trigger,style:{position:"relative",transform:!a&&S?"rotate(45deg)":"rotate(0deg)",transition:"transform 0.3s cubic-bezier(0.4, 0, 0.2, 1)",...x?.trigger}}),t.jsx("div",{className:Y("ino-bubble-menu__children",C?.menu),style:{flexDirection:E(),gap:k,pointerEvents:S?"auto":"none",...W(),...x?.menu},children:A.map((Z,X)=>{if(!s.isValidElement(Z))return null;const U=X*.05,q=D(),H=P?"Y":"X";return s.cloneElement(Z,{key:X,style:{position:"relative",opacity:S?1:0,transform:`translate${H}(${q}px)`,transition:`opacity 0.2s ease-out ${U}s, transform 0.2s ease-out ${U}s`,pointerEvents:S?"auto":"none",...Z.props.style},size:Z.props.size||d,shape:Z.props.shape||c,shadow:Z.props.shadow!==void 0?Z.props.shadow:g})})})]});const V={flexDirection:E(),gap:k,position:j?.position==="absolute"?void 0:"fixed",...$[r],...x?.root,...j};return t.jsxs("div",{className:Y("ino-bubble-menu",b,C?.root),style:V,onMouseEnter:T,onMouseLeave:_,children:[t.jsx(Ar,{icon:a?S?a:l||t.jsx(_r,{size:N}):l||t.jsx(_r,{size:N}),shape:c,size:d,color:f,shadow:g,tooltip:S?void 0:m,onClick:I,_inGroup:!0,className:C?.trigger,style:{position:"relative",transform:!a&&S?"rotate(45deg)":"rotate(0deg)",transition:"transform 0.3s cubic-bezier(0.4, 0, 0.2, 1)",...x?.trigger}}),A.map((Z,X)=>{if(!s.isValidElement(Z))return null;const U=X*.05,q=D(),H=P?"Y":"X";return s.cloneElement(Z,{key:X,style:{position:"relative",opacity:S?1:0,transform:`translate${H}(${q}px)`,transition:`opacity 0.2s ease-out ${U}s, transform 0.2s ease-out ${U}s`,pointerEvents:S?"auto":"none",...Z.props.style},size:Z.props.size||d,shape:Z.props.shape||c,shadow:Z.props.shadow!==void 0?Z.props.shadow:g})})]})}const Ar=Fl;Ar.Group=Nl;Ar.Menu=Wl;function _r({size:e}){return t.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),t.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})}function Hl({size:e=20}){return t.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"18 15 12 9 6 15"})})}function Ol({size:e=20}){return t.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})})}function Vl({size:e=20}){return t.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("path",{d:"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"}),t.jsx("path",{d:"M13.73 21a2 2 0 0 1-3.46 0"})]})}function Yl({size:e=20}){return t.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),t.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}function Kl({children:e,type:r="default",size:n="md",disabled:o=!1,mark:l=!1,code:a=!1,keyboard:c=!1,underline:d=!1,delete:f=!1,weight:u,lineHeight:h,italic:g=!1,copyable:m=!1,ellipsis:y=!1,className:p,style:v,classNames:k,styles:j}){const[b,C]=s.useState(!1),[x,w]=s.useState(!1),M=y?typeof y=="object"?y:{rows:1}:null,R=M?.expandable??!1,S=M?.rows??1,B=async()=>{const P=typeof m=="object"&&m.text?m.text:typeof e=="string"?e:"";if(P)try{await navigator.clipboard.writeText(P),C(!0),typeof m=="object"&&m.onCopy&&m.onCopy(),setTimeout(()=>C(!1),2e3)}catch(E){console.error("Failed to copy text:",E)}},I=()=>{const P=!x;w(P),M?.onExpand?.(P)},T=Y(`ino-text--${n}`,o?"ino-text--disabled":`ino-text--${r}`,u?`ino-text--weight-${u}`:void 0,h?`ino-text--lh-${h}`:void 0,{"ino-text--italic":g,"ino-text--underline":d,"ino-text--delete":f},p,k?.root);let _=e;l&&(_=t.jsx("mark",{className:"ino-text__mark",children:_})),a&&(_=t.jsx("code",{className:"ino-text__code",children:_})),c&&(_=t.jsx("kbd",{className:"ino-text__kbd",children:_}));const L=m&&t.jsx(Nt,{content:b?"Copiado!":"Copiar",delay:100,children:t.jsx("button",{onClick:B,disabled:o,className:Y("ino-text__copy-btn",{"ino-text__copy-btn--copied":b},k?.copyButton),style:j?.copyButton,children:b?t.jsx(ql,{size:14}):t.jsx(Ul,{size:14})})}),N=R&&t.jsx("button",{onClick:I,className:Y("ino-text__expand-btn",k?.expandButton),style:j?.expandButton,children:x?"menos":"mas"});if(R){if(S>1){const E=x?void 0:"ino-text--ellipsis-multi",z=x?{}:{WebkitLineClamp:S};return t.jsxs("div",{className:T,style:{...j?.root,...v},children:[t.jsx("div",{className:Y(E,k?.content),style:{...z,...j?.content},children:_}),N,L]})}const P=x?void 0:"ino-text--ellipsis-1";return t.jsxs("span",{className:Y("ino-text--expandable-single",T),style:{...j?.root,...v},children:[t.jsx("span",{className:Y("ino-text__content--expandable-single",P,k?.content),style:j?.content,children:_}),N,L]})}if(M&&S>1)return t.jsxs("div",{className:Y("ino-text--ellipsis-multi",T),style:{WebkitLineClamp:S,...j?.root,...v},children:[k?.content||j?.content?t.jsx("span",{className:k?.content,style:j?.content,children:_}):_,L]});const $=M&&S===1?"ino-text--ellipsis-1":void 0;return t.jsxs("span",{className:Y($,T),style:{...j?.root,...v},children:[k?.content||j?.content?t.jsx("span",{className:k?.content,style:j?.content,children:_}):_,L]})}function Ul({size:e=16}){return t.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),t.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})}function ql({size:e=16}){return t.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"20 6 9 17 4 12"})})}const Gl={default:{line:i.colorBorder,text:i.colorText},primary:{line:i.colorPrimary,text:i.colorPrimary},secondary:{line:i.colorSecondary,text:i.colorSecondary},success:{line:i.colorSuccess,text:i.colorSuccess},warning:{line:i.colorWarning,text:i.colorWarning},error:{line:i.colorError,text:i.colorError},info:{line:i.colorInfo,text:i.colorInfo}},Xl={thin:1,normal:1,medium:2,thick:3};function Ql({type:e="horizontal",dashed:r=!1,orientation:n="center",orientationMargin:o,plain:l=!1,color:a="default",thickness:c="normal",children:d,className:f,style:u,classNames:h,styles:g}){const m=r?"dashed":"solid",y=Gl[a],p=y.line,v=typeof c=="number"?c:Xl[c];if(e==="vertical")return t.jsx("span",{className:Y("ino-divider","ino-divider--vertical",f,h?.root),style:{borderInlineStart:`${v}px ${m} ${p}`,...g?.root,...u},role:"separator"});if(!d)return t.jsx("div",{className:Y("ino-divider",f,h?.root),style:{borderBlockStart:`${v}px ${m} ${p}`,...g?.root,...u},role:"separator"});const j=(()=>{const w=o!==void 0?typeof o=="number"?`${o}px`:o:null;switch(n){case"left":return{before:w||"5%",after:"95%"};case"right":return{before:"95%",after:w||"5%"};default:return{before:"50%",after:"50%"}}})(),b={borderBlockStart:`${v}px ${m} ${p}`,flexGrow:0,flexShrink:0},C={...b,width:j.before},x={...b,width:j.after};return o!==void 0&&n!=="center"?n==="left"?(C.width=typeof o=="number"?`${o}px`:o,C.flexGrow=0,x.width="auto",x.flexGrow=1):(C.width="auto",C.flexGrow=1,x.width=typeof o=="number"?`${o}px`:o,x.flexGrow=0):n==="center"?(C.flexGrow=1,x.flexGrow=1,C.width="auto",x.width="auto"):n==="left"?(x.flexGrow=1,x.width="auto"):(C.flexGrow=1,C.width="auto"),t.jsxs("div",{className:Y("ino-divider","ino-divider--with-text",f,h?.root),style:{...g?.root,...u},role:"separator",children:[t.jsx("span",{className:Y("ino-divider__line",h?.line),style:{...C,...g?.line}}),t.jsx("span",{className:Y("ino-divider__text",l?"ino-divider__text--plain":"ino-divider__text--styled",h?.text),style:{color:y.text,...g?.text},children:d}),t.jsx("span",{className:Y("ino-divider__line",h?.line),style:{...x,...g?.line}})]})}const Zl={"flex-start":"start",center:"center","flex-end":"end","space-between":"between","space-around":"around","space-evenly":"evenly",start:"start",end:"end",normal:"normal"},Jl={"flex-start":"start",center:"center","flex-end":"end",stretch:"stretch",baseline:"baseline",start:"start",end:"end",normal:"normal"};function ea({children:e,vertical:r=!1,wrap:n="nowrap",justify:o="normal",align:l="normal",gap:a,flex:c,component:d="div",className:f,style:u}){const g=typeof n=="boolean"?n?"wrap":"nowrap":n,m=typeof a=="string",y=()=>{if(!(a===void 0||m))return typeof a=="number"?a:`${a[1]}px ${a[0]}px`},p=Y("ino-flex",r?"ino-flex--column":"ino-flex--row",`ino-flex--${g}`,`ino-flex--justify-${Zl[o]??o}`,`ino-flex--align-${Jl[l]??l}`,m?`ino-flex--gap-${a}`:void 0,f),v={gap:y(),flex:c,...u};return t.jsx(d,{className:p,style:v,children:e})}const Or=24,Yo={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1600},ta=["xxl","xl","lg","md","sm","xs"],Ko=s.createContext({gutter:[0,0]});function gn(e,r){if(typeof e!="object"||e===null)return e;const n=e;for(const o of ta)if(r>=Yo[o]&&n[o]!==void 0)return n[o]}function Uo(){return typeof window>"u"?1200:window.innerWidth}function qo({children:e,gutter:r=0,align:n="top",justify:o="start",wrap:l=!0,className:a,style:c}){const d=Uo(),f=()=>{if(typeof r=="number")return[r,0];if(Array.isArray(r)){const y=typeof r[0]=="number"?r[0]:gn(r[0],d)??0,p=typeof r[1]=="number"?r[1]:gn(r[1],d)??0;return[y,p]}return[gn(r,d)??0,0]},[u,h]=f(),g=Y("ino-row",l?"ino-row--wrap":"ino-row--nowrap",`ino-row--align-${n}`,`ino-row--justify-${o}`,a),m={marginLeft:u?-(u/2):void 0,marginRight:u?-(u/2):void 0,rowGap:h||void 0,...c};return t.jsx(Ko.Provider,{value:{gutter:[u,h]},children:t.jsx("div",{className:g,style:m,children:e})})}function Go({children:e,span:r,offset:n,push:o,pull:l,order:a,flex:c,xs:d,sm:f,md:u,lg:h,xl:g,xxl:m,className:y,style:p}){const{gutter:v}=s.useContext(Ko),k=Uo(),b=(()=>{const P=[{bp:"xxl",value:m},{bp:"xl",value:g},{bp:"lg",value:h},{bp:"md",value:u},{bp:"sm",value:f},{bp:"xs",value:d}];for(const{bp:E,value:z}of P)if(z!==void 0&&k>=Yo[E])return typeof z=="number"?{span:z}:z;return{span:r,offset:n,push:o,pull:l,order:a,flex:c}})(),C=b.span??r,x=b.offset??n??0,w=b.push??o??0,M=b.pull??l??0,R=b.order??a,S=b.flex??c,B=()=>{if(!S&&C!==void 0)return C===0?"none":`${C/Or*100}%`},I=()=>{if(x!==0)return`${x/Or*100}%`},T=()=>w===0&&M===0?{}:{position:"relative",left:w?`${w/Or*100}%`:void 0,right:M?`${M/Or*100}%`:void 0},_=B(),L=_==="none",N=Y("ino-col",{"ino-col--hidden":L},y),$={paddingLeft:v[0]?v[0]/2:void 0,paddingRight:v[0]?v[0]/2:void 0,flex:S??(_&&!L?`0 0 ${_}`:void 0),maxWidth:L?void 0:_,marginLeft:I(),order:R,...T(),...p};return t.jsx("div",{className:N,style:$,children:e})}const ra={Row:qo,Col:Go},na={xs:480,sm:576,md:768,lg:992,xl:1200,xxl:1600},Xo=s.createContext({siderCollapsed:!1});function oa({children:e,hasSider:r,className:n,style:o}){const l=Y("ino-layout",{"ino-layout--has-sider":r},n);return t.jsx("div",{className:l,style:o,children:e})}function Qo({children:e,className:r,style:n}){return t.jsx("header",{className:Y("ino-layout__header",r),style:n,children:e})}function Zo({children:e,className:r,style:n}){return t.jsx("footer",{className:Y("ino-layout__footer",r),style:n,children:e})}function Jo({children:e,className:r,style:n}){return t.jsx("main",{className:Y("ino-layout__content",r),style:n,children:e})}function es({children:e,width:r=200,collapsedWidth:n=80,collapsible:o=!1,collapsed:l,defaultCollapsed:a=!1,reverseArrow:c=!1,breakpoint:d,theme:f="dark",trigger:u,onCollapse:h,onBreakpoint:g,className:m,style:y,classNames:p,styles:v}){const[k,j]=s.useState(a),[b,C]=s.useState(!1),x=l!==void 0,w=x?l:k;s.useEffect(()=>{if(!d||typeof window>"u")return;const T=()=>{const _=window.innerWidth<na[d];_!==b&&(C(_),g?.(_),_&&!w?(x||j(!0),h?.(!0,"responsive")):!_&&w&&b&&(x||j(!1),h?.(!1,"responsive")))};return T(),window.addEventListener("resize",T),()=>window.removeEventListener("resize",T)},[d,b,w,x,g,h]);const M=()=>{const T=!w;x||j(T),h?.(T,"clickTrigger")},R=w?n:typeof r=="number"?r:parseInt(r),S={flex:`0 0 ${R}px`,maxWidth:R,minWidth:R,width:R,...v?.root,...y},B=Y("ino-layout__sider",`ino-layout__sider--${f}`,m,p?.root),I=()=>{if(!o||u===null)return null;if(n===0&&w){const _=Y("ino-layout__sider-trigger","ino-layout__sider-trigger--zero",`ino-layout__sider-trigger--${f}`,p?.trigger);return t.jsx("div",{className:_,style:v?.trigger,onClick:M,children:u||t.jsx(eo,{collapsed:w,reverseArrow:c})})}const T=Y("ino-layout__sider-trigger",`ino-layout__sider-trigger--${f}`,p?.trigger);return t.jsx("div",{className:T,style:v?.trigger,onClick:M,children:u||t.jsx(eo,{collapsed:w,reverseArrow:c})})};return t.jsx(Xo.Provider,{value:{siderCollapsed:w},children:t.jsxs("aside",{className:B,style:S,children:[t.jsx("div",{className:Y("ino-layout__sider-content",p?.content),style:v?.content,children:e}),I()]})})}function eo({collapsed:e,reverseArrow:r}){const n=r?e:!e;return t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:Y("ino-layout__trigger-icon",{"ino-layout__trigger-icon--collapsed":n}),children:t.jsx("polyline",{points:"15 18 9 12 15 6"})})}function sa(){return s.useContext(Xo)}const ia=Object.assign(oa,{Header:Qo,Footer:Zo,Content:Jo,Sider:es}),Rn=s.createContext(null);function la(){return s.useContext(Rn)}const aa={small:"0.5rem",middle:"1rem",large:"1.5rem"},or="0.5rem";function Vr(e){return typeof e=="number"?e:aa[e]}function mn(e){return typeof e=="number"?`${e}px`:e}function ca({children:e,size:r="small",direction:n="horizontal",align:o,wrap:l=!1,split:a,className:c,style:d,classNames:f,styles:u}){const h=s.Children.toArray(e);if(h.length===0)return null;const[g,m]=Array.isArray(r)?[Vr(r[0]),Vr(r[1])]:[Vr(r),Vr(r)],y=o??(n==="horizontal"?"center":void 0),p=Y("ino-space",`ino-space--${n}`,l?"ino-space--wrap":"ino-space--nowrap",y?`ino-space--align-${y}`:void 0,c,f?.root),k={...a?{}:{gap:g===m?mn(g):`${mn(m)} ${mn(g)}`},...u?.root,...d};if(!a)return t.jsx("div",{className:p,style:k,children:f?.item||u?.item?h.map((b,C)=>t.jsx("div",{className:f?.item,style:u?.item,children:b},C)):h});const j=n==="vertical";return t.jsx("div",{className:p,style:k,children:h.map((b,C)=>t.jsxs(s.Fragment,{children:[f?.item||u?.item?t.jsx("div",{className:f?.item,style:u?.item,children:b}):b,C<h.length-1&&t.jsx("span",{className:Y("ino-space__separator",f?.separator),style:{margin:j?typeof m=="number"?`${m/2}px 0`:`calc(${m} / 2) 0`:typeof g=="number"?`0 ${g/2}px`:`0 calc(${g} / 2)`,...u?.separator},children:a})]},C))})}function ua({children:e,direction:r="horizontal",block:n=!1,className:o,style:l}){const a=s.Children.toArray(e);if(a.length===0)return null;const c=r==="vertical",d=Y("ino-space-compact",`ino-space-compact--${r}`,{"ino-space-compact--block":n},o);return t.jsx("div",{className:d,style:l,children:a.map((f,u)=>{const h=u===0,g=u===a.length-1,m={};c?(h?m.borderRadius=`${or} ${or} 0 0`:g?m.borderRadius=`0 0 ${or} ${or}`:m.borderRadius=0,h||(m.marginTop=-1)):(h?m.borderRadius=`${or} 0 0 ${or}`:g?m.borderRadius=`0 ${or} ${or} 0`:m.borderRadius=0,h||(m.marginLeft=-1));const y={isFirstItem:h,isLastItem:g,direction:r};return s.isValidElement(f)?t.jsx(Rn.Provider,{value:y,children:s.cloneElement(f,{style:{...f.props.style||{},...m}})},u):t.jsx(Rn.Provider,{value:y,children:f},u)})})}const da=Object.assign(ca,{Compact:ua}),fa={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1600},ha=["xxl","xl","lg","md","sm","xs"];function Yr(e,r,n){if(e===void 0)return n;if(typeof e!="object"||e===null)return e;const o=e;for(const l of ha)if(r>=fa[l]&&o[l]!==void 0)return o[l];return n}function pa(){const[e,r]=s.useState(()=>typeof window>"u"?1200:window.innerWidth);return s.useEffect(()=>{if(typeof window>"u")return;const n=()=>r(window.innerWidth);return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[]),e}function ga({item:e,index:r,column:n,columnWidth:o,horizontalGutter:l,verticalGutter:a,itemRender:c,onResize:d,fresh:f,itemClassName:u,itemStyle:h}){const g=s.useRef(null);s.useEffect(()=>{if(!f||!d||!g.current)return;const p=new ResizeObserver(v=>{for(const k of v)d(e.key,k.contentRect.height)});return p.observe(g.current),()=>p.disconnect()},[f,e.key,d]),s.useEffect(()=>{g.current&&d&&d(e.key,g.current.offsetHeight)},[e.key,d]);const m=e.children??c?.({...e,index:r,assignedColumn:n}),y={width:o,marginBottom:a,paddingLeft:l/2,paddingRight:l/2,...h};return t.jsx("div",{ref:g,className:Y("ino-waterfall__item",u),style:y,children:m})}function ma({items:e=[],columns:r=3,gutter:n=0,itemRender:o,fresh:l=!1,onLayoutChange:a,className:c,style:d,classNames:f,styles:u},h){const g=s.useRef(null),[m,y]=s.useState(new Map),p=pa();s.useEffect(()=>{h&&(typeof h=="function"?h({nativeElement:g.current}):h.current={nativeElement:g.current})},[h]);const v=Yr(r,p,3),[k,j]=s.useMemo(()=>{if(typeof n=="number")return[n,n];if(Array.isArray(n)){const I=Yr(n[0],p,0),T=Yr(n[1],p,0);return[I,T]}const B=Yr(n,p,0);return[B,B]},[n,p]),b=`${100/v}%`,C=s.useCallback((B,I)=>{y(T=>{const _=new Map(T);return _.set(B,I),_})},[]),{columnItems:x,layoutInfo:w}=s.useMemo(()=>{const B=Array.from({length:v},()=>[]),I=Array(v).fill(0),T=[];for(let _=0;_<e.length;_++){const L=e[_];let N;if(L.column!==void 0&&L.column>=0&&L.column<v)N=L.column;else{N=0;let P=I[0];for(let E=1;E<v;E++)I[E]<P&&(P=I[E],N=E)}B[N].push(L);const $=L.height??m.get(L.key)??0;I[N]+=$+j,T.push({key:L.key,column:N})}return{columnItems:B,layoutInfo:T}},[e,v,m,j]),M=s.useRef("");s.useEffect(()=>{const B=JSON.stringify(w);B!==M.current&&(M.current=B,a?.(w))},[w,a]);const R={marginLeft:k?-(k/2):void 0,marginRight:k?-(k/2):void 0,...u?.root,...d},S={width:b,...u?.column};return t.jsx("div",{ref:g,className:Y("ino-waterfall",c,f?.root),style:R,children:x.map((B,I)=>t.jsx("div",{className:Y("ino-waterfall__column",f?.column),style:S,children:B.map(T=>t.jsx(ga,{item:T,index:e.findIndex(_=>_.key===T.key),column:I,columnWidth:"100%",horizontalGutter:k,verticalGutter:j,itemRender:o,onResize:C,fresh:l,itemClassName:f?.item,itemStyle:u?.item},T.key))},I))})}const xa=s.forwardRef(ma);function to(e,r){if(e!==void 0)return typeof e=="number"?e:e.endsWith("%")?parseFloat(e)/100*r:parseFloat(e)}function ts(e){return null}function ya({isVertical:e,onMouseDown:r,collapsibleStart:n,collapsibleEnd:o,onCollapseStart:l,onCollapseEnd:a,isStartCollapsed:c,isEndCollapsed:d,barClassName:f,barStyle:u,collapseButtonClassName:h,collapseButtonStyle:g}){const m=e?"vertical":"horizontal",y=Y("ino-splitter__bar",`ino-splitter__bar--${m}`,f),p=Y("ino-splitter__bar-line",`ino-splitter__bar-line--${m}`),v=j=>{const C=j==="start"?"-0.875rem":"0.875rem";return e?{top:"50%",left:"50%",transform:`translate(calc(-50% + ${C}), -50%)`}:{top:"50%",left:"50%",transform:`translate(-50%, calc(-50% + ${C}))`}},k=j=>{const b=j==="start",C=b?c:d;return e?C?b?"▼":"▲":b?"▲":"▼":C?b?"▶":"◀":b?"◀":"▶"};return t.jsxs("div",{className:y,style:u,onMouseDown:r,children:[t.jsx("div",{className:p}),n&&t.jsx("button",{className:Y("ino-splitter__collapse-btn",h),style:{...v("start"),...g},onClick:j=>{j.stopPropagation(),l()},onMouseDown:j=>j.stopPropagation(),children:k("start")}),o&&t.jsx("button",{className:Y("ino-splitter__collapse-btn",h),style:{...v("end"),...g},onClick:j=>{j.stopPropagation(),a()},onMouseDown:j=>j.stopPropagation(),children:k("end")})]})}function ba({children:e,orientation:r="horizontal",lazy:n=!1,onResize:o,onResizeStart:l,onResizeEnd:a,className:c,style:d,classNames:f,styles:u}){const h=s.useRef(null),g=r==="vertical",m=[];s.Children.forEach(e,$=>{s.isValidElement($)&&$.type===ts&&m.push({defaultSize:$.props.defaultSize,size:$.props.size,min:$.props.min,max:$.props.max,resizable:$.props.resizable??!0,collapsible:$.props.collapsible??!1,children:$.props.children,style:$.props.style,className:$.props.className})});const y=m.length,[p,v]=s.useState(()=>{const $=[];let P=0;for(const F of m)if(F.defaultSize!==void 0||F.size!==void 0){const A=F.size??F.defaultSize;if(typeof A=="string"&&A.endsWith("%")){const D=parseFloat(A);$.push(D),P+=D}else $.push(-(typeof A=="number"?A:parseFloat(A)))}else $.push(0);const E=100-P,z=$.filter(F=>F===0).length;if(z>0){const F=E/z;return $.map(A=>A===0?F:A<0?-A:A)}return $.map(F=>F<0?-F:F)}),[k,j]=s.useState(()=>Array(y).fill(!1)),b=s.useRef([]),C=s.useRef(null),[x,w]=s.useState(!1),M=s.useRef(null),R=s.useRef(null);s.useEffect(()=>{if(!m.some(F=>F.size!==void 0))return;const P=h.current?g?h.current.offsetHeight:h.current.offsetWidth:0,E=m.map((F,A)=>{if(F.size===void 0)return p[A]??100/y;const D=F.size;if(typeof D=="string"&&D.endsWith("%"))return parseFloat(D);const W=typeof D=="number"?D:parseFloat(D);return P>0?W/P*100:W});E.some((F,A)=>Math.abs(F-(p[A]??0))>.01)&&v(E)}),s.useEffect(()=>{if(!h.current)return;const $=g?h.current.offsetHeight:h.current.offsetWidth;if($===0)return;let P=!1;const E=p.map((z,F)=>{const A=m[F];if(A&&A.size===void 0&&A.defaultSize!==void 0){const D=A.defaultSize;if(typeof D=="number"&&D>100)return P=!0,D/$*100}return z});P&&v(E)},[]);const S=s.useCallback($=>{if(!h.current)return $;const P=g?h.current.offsetHeight:h.current.offsetWidth;return $.map((E,z)=>{const F=m[z];if(!F)return E;const A=to(F.min,P),D=to(F.max,P),W=A!==void 0?A/P*100:0,V=D!==void 0?D/P*100:100;return Math.min(Math.max(E,W),V)})},[g,m]),B=s.useCallback($=>P=>{if(P.preventDefault(),!h.current||!m[$]?.resizable||!m[$+1]?.resizable)return;const E=g?h.current.offsetHeight:h.current.offsetWidth,z=g?P.clientY:P.clientX;C.current={barIndex:$,startPos:z,startSizes:[...p],containerSize:E},w(!0),l?.(p),n&&(M.current=[...p])},[g,m,p,l,n]);s.useEffect(()=>{if(!x)return;const $=E=>{if(!C.current)return;const{barIndex:z,startPos:F,startSizes:A,containerSize:D}=C.current,Z=((g?E.clientY:E.clientX)-F)/D*100,X=[...A];X[z]=A[z]+Z,X[z+1]=A[z+1]-Z;const U=[...X],q=A[z]+A[z+1],H=S(U);U[z]=H[z],U[z+1]=q-U[z];const re=S(U);if(U[z+1]=re[z+1],U[z]=q-U[z+1],n){if(M.current=U,R.current&&C.current){const oe=m.length-1,se=C.current.containerSize-oe*12,ie=U.slice(0,C.current.barIndex+1).reduce((_e,we)=>_e+we,0)/100*se+C.current.barIndex*12+6;g?(R.current.style.top=`${ie}px`,R.current.style.left="0"):(R.current.style.left=`${ie}px`,R.current.style.top="0"),R.current.style.display="block"}}else v(U),o?.(U)},P=()=>{R.current&&(R.current.style.display="none"),n&&M.current&&(v(M.current),o?.(M.current),M.current=null),w(!1),C.current=null,a?.(p)};return document.addEventListener("mousemove",$),document.addEventListener("mouseup",P),()=>{document.removeEventListener("mousemove",$),document.removeEventListener("mouseup",P)}},[x,g,S,n,p,o,a]);const I=s.useCallback($=>{j(P=>{const E=[...P];if(E[$]){const z=b.current[$]||100/y;v(F=>{const A=[...F],D=$===0?1:$-1;return A[D]-=z-A[$],A[$]=z,o?.(A),A}),E[$]=!1}else b.current[$]=p[$],v(z=>{const F=[...z],A=$===0?1:$-1;return F[A]+=F[$],F[$]=0,o?.(F),F}),E[$]=!0;return E})},[y,p,o]),T=p,_=g?"vertical":"horizontal",L=Y("ino-splitter",`ino-splitter--${_}`,c,f?.root),N={...u?.root,...d};return t.jsxs("div",{ref:h,className:L,style:N,children:[x&&t.jsx("div",{className:Y("ino-splitter__overlay",`ino-splitter__overlay--${_}`)}),n&&t.jsx("div",{ref:R,className:Y("ino-splitter__lazy-indicator",`ino-splitter__lazy-indicator--${_}`)}),m.map(($,P)=>{const E=Y("ino-splitter__panel",{"ino-splitter__panel--animated":!x},$.className,f?.panel),z={flexBasis:`${T[P]}%`,...u?.panel,...$.style},F=(A,D)=>{const W=A==="start"?D:D+1,V=m[W];return V?typeof V.collapsible=="boolean"?V.collapsible:typeof V.collapsible=="object"?A==="start"?!!V.collapsible.start:!!V.collapsible.end:!1:!1};return t.jsxs("div",{style:{display:"contents"},children:[t.jsx("div",{className:E,style:z,children:$.children}),P<y-1&&t.jsx(ya,{isVertical:g,onMouseDown:B(P),collapsibleStart:F("end",P)||typeof m[P]?.collapsible=="boolean"&&!!m[P]?.collapsible,collapsibleEnd:F("start",P)||typeof m[P+1]?.collapsible=="boolean"&&!!m[P+1]?.collapsible,onCollapseStart:()=>I(P),onCollapseEnd:()=>I(P+1),isStartCollapsed:k[P],isEndCollapsed:k[P+1],barClassName:f?.bar,barStyle:u?.bar,collapseButtonClassName:f?.collapseButton,collapseButtonStyle:u?.collapseButton})]},P)})]})}const va=Object.assign(ba,{Panel:ts});function Ca(){return window}function ka(e){return e===window?window.scrollY||document.documentElement.scrollTop:e.scrollTop}function ro(e,r){if(r===window)return e.getBoundingClientRect().top+window.scrollY;const n=r,o=n.getBoundingClientRect();return e.getBoundingClientRect().top-o.top+n.scrollTop}function rs(e){const r=[];for(const n of e)r.push(n),n.children&&r.push(...rs(n.children));return r}function wa({items:e=[],direction:r="vertical",offsetTop:n=0,targetOffset:o,bounds:l=5,getContainer:a=Ca,getCurrentAnchor:c,onChange:d,onClick:f,replace:u=!1,className:h,style:g,classNames:m,styles:y}){const[p,v]=s.useState(""),k=s.useRef(null),j=s.useRef(null),b=s.useRef(new Map),C=s.useRef(!1),x=s.useRef(p);x.current=p;const w=r==="vertical",M=rs(e),R=o??n,S=s.useCallback(($,P)=>{P?b.current.set($,P):b.current.delete($)},[]),B=s.useCallback(()=>{if(C.current)return;if(c){const z=c(x.current);z!==x.current&&(v(z),d?.(z));return}const $=a(),P=ka($)+n+l;let E="";for(const z of M){if(!z.href.startsWith("#"))continue;const F=z.href.slice(1),A=document.getElementById(F);if(!A)continue;ro(A,$)<=P&&(E=z.href)}!E&&M.length>0&&(E=M[0].href),E!==x.current&&(v(E),d?.(E))},[M,l,a,c,n,d]);s.useEffect(()=>{const $=a(),P=()=>{B()};return $.addEventListener("scroll",P,{passive:!0}),B(),()=>{$.removeEventListener("scroll",P)}},[B,a]),s.useEffect(()=>{if(!k.current||!j.current)return;const $=b.current.get(p);if(!$){k.current.style.opacity="0";return}const P=j.current.getBoundingClientRect(),E=$.getBoundingClientRect();w?(k.current.style.top=`${E.top-P.top}px`,k.current.style.height=`${E.height}px`):(k.current.style.left=`${E.left-P.left}px`,k.current.style.width=`${E.width}px`),k.current.style.opacity="1",w||$.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},[p,w]);const I=s.useCallback(($,P,E)=>{if(f?.($,{title:E,href:P}),!P.startsWith("#"))return;$.preventDefault();const z=P.slice(1),F=document.getElementById(z);if(!F)return;C.current=!0;const A=a(),W=ro(F,A)-R;A===window?window.scrollTo({top:W,behavior:"smooth"}):A.scrollTo({top:W,behavior:"smooth"}),v(P),d?.(P),u?window.history.replaceState(null,"",P):window.history.pushState(null,"",P),setTimeout(()=>{C.current=!1},500)},[a,f,d,u,R]),T=w?"vertical":"horizontal",_=($,P=0)=>$.map(E=>{const z=p===E.href,F=Y("ino-anchor__link",`ino-anchor__link--${T}`,{"ino-anchor__link--active":z},m?.link),A={...w&&P>0?{paddingLeft:`${P+1}rem`}:{},...y?.link},D=t.jsx("a",{ref:W=>S(E.href,W),href:E.href,className:F,style:A,onClick:W=>I(W,E.href,E.title),children:E.title});return t.jsxs("div",{className:w?void 0:"ino-anchor__link-wrapper--horizontal",children:[D,w&&E.children&&E.children.length>0&&t.jsx("div",{children:_(E.children,P+1)})]},E.key)}),L=Y("ino-anchor",`ino-anchor--${T}`,h,m?.root),N={...y?.root,...g};return t.jsxs("div",{ref:j,className:L,style:N,children:[t.jsx("div",{className:Y("ino-anchor__track",`ino-anchor__track--${T}`,m?.track),style:y?.track}),t.jsx("div",{ref:k,className:Y("ino-anchor__indicator",`ino-anchor__indicator--${T}`,m?.indicator),style:y?.indicator}),_(e)]})}const ja=wa;function Sa(){return t.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{marginLeft:"0.125rem"},children:t.jsx("polyline",{points:"6 9 12 15 18 9"})})}function Ma({items:e,style:r,className:n}){const o={position:"absolute",top:"100%",left:0,marginTop:"0.25rem",minWidth:"7.5rem",backgroundColor:i.colorBg,border:`1px solid ${i.colorBorder}`,borderRadius:"0.375rem",boxShadow:i.shadowMd,padding:"0.25rem 0",zIndex:1050,maxHeight:"min(16rem, 40vh)",overflowY:"auto",overscrollBehavior:"contain",...r},l={display:"flex",alignItems:"center",gap:"0.375rem",padding:"0.625rem 0.75rem",minHeight:"2.75rem",fontSize:"0.875rem",color:i.colorText,textDecoration:"none",cursor:"pointer",border:"none",backgroundColor:"transparent",width:"100%",textAlign:"left"};return t.jsx("div",{style:o,className:n,children:e.map(a=>{const c=t.jsxs(t.Fragment,{children:[a.icon&&t.jsx("span",{style:{display:"inline-flex",fontSize:"0.875rem"},children:a.icon}),a.title]});return a.href?t.jsx("a",{href:a.href,style:l,onClick:a.onClick,onMouseEnter:d=>{d.currentTarget.style.backgroundColor=i.colorBgMuted},onMouseLeave:d=>{d.currentTarget.style.backgroundColor="transparent"},children:c},a.key):t.jsx("span",{style:l,onClick:a.onClick,onMouseEnter:d=>{d.currentTarget.style.backgroundColor=i.colorBgMuted},onMouseLeave:d=>{d.currentTarget.style.backgroundColor="transparent"},children:c},a.key)})})}function Ra({items:e=[],separator:r="/",itemRender:n,params:o,className:l,style:a,classNames:c,styles:d}){const[f,u]=s.useState(null),h=[];e.forEach(p=>{p.path?h.push((h.length>0?h[h.length-1]+"/":"")+p.path):h.push(h.length>0?h[h.length-1]:"")});const g=be({fontSize:"0.875rem",color:i.colorTextMuted},d?.root,a),m={display:"flex",flexWrap:"wrap",alignItems:"center",margin:0,padding:0,listStyle:"none",...d?.list},y=(p,v)=>{const k=v===e.length-1;if(n)return n(p,o,e,h);const j=t.jsxs(t.Fragment,{children:[p.icon&&t.jsx("span",{style:{display:"inline-flex",marginRight:p.title?"0.25rem":0,fontSize:"0.875rem"},children:p.icon}),p.title,p.menu&&t.jsx(Sa,{})]}),b={display:"inline-flex",alignItems:"center",textDecoration:"none",transition:"color 0.2s ease"},C=d?.link?.color,x=C??i.colorTextMuted,w=C??i.colorPrimary,M=C??i.colorText;return k?t.jsx("span",{style:{...b,color:M,fontWeight:500,...d?.link,...p.style},className:xt(p.className,c?.link),children:j}):p.href?t.jsx("a",{href:p.href,style:{...b,color:x,cursor:"pointer",...d?.link,...p.style},className:xt(p.className,c?.link),onClick:p.onClick,onMouseEnter:R=>{R.currentTarget.style.color=w},onMouseLeave:R=>{R.currentTarget.style.color=x},children:j}):p.onClick?t.jsx("span",{style:{...b,color:x,cursor:"pointer",...d?.link,...p.style},className:xt(p.className,c?.link),onClick:p.onClick,onMouseEnter:R=>{R.currentTarget.style.color=w},onMouseLeave:R=>{R.currentTarget.style.color=x},children:j}):t.jsx("span",{style:{...b,color:x,...d?.link,...p.style},className:xt(p.className,c?.link),children:j})};return t.jsx("nav",{"aria-label":"breadcrumb",style:g,className:xt(l,c?.root),children:t.jsx("ol",{style:m,className:c?.list,children:e.map((p,v)=>{const k=v===e.length-1,j=p.menu&&p.menu.items.length>0;return t.jsxs(s.Fragment,{children:[t.jsxs("li",{style:{display:"inline-flex",alignItems:"center",position:j?"relative":void 0,...d?.item},className:c?.item,"aria-current":k?"page":void 0,onMouseEnter:j?()=>u(v):void 0,onMouseLeave:j?()=>u(null):void 0,children:[y(p,v),j&&f===v&&t.jsx(Ma,{items:p.menu.items,style:d?.overlay,className:c?.overlay})]}),!k&&t.jsx("li",{"aria-hidden":"true",style:{margin:"0 0.5rem",color:i.colorTextSubtle,userSelect:"none",...d?.separator},className:c?.separator,children:r})]},v)})})})}const Ba={bottom:{top:"100%",left:"50%",transform:"translateX(-50%)",paddingTop:"0.25rem"},bottomLeft:{top:"100%",left:0,paddingTop:"0.25rem"},bottomRight:{top:"100%",right:0,paddingTop:"0.25rem"},top:{bottom:"100%",left:"50%",transform:"translateX(-50%)",paddingBottom:"0.25rem"},topLeft:{bottom:"100%",left:0,paddingBottom:"0.25rem"},topRight:{bottom:"100%",right:0,paddingBottom:"0.25rem"}},Ta={bottom:{top:-4,left:"50%",transform:"translateX(-50%) rotate(-135deg)"},bottomLeft:{top:-4,left:16,transform:"rotate(-135deg)"},bottomRight:{top:-4,right:16,transform:"rotate(-135deg)"},top:{bottom:-4,left:"50%",transform:"translateX(-50%) rotate(45deg)"},topLeft:{bottom:-4,left:16,transform:"rotate(45deg)"},topRight:{bottom:-4,right:16,transform:"rotate(45deg)"}};function La(e,r){const n=r?0:6,o=e.startsWith("top");return`${e==="bottom"||e==="top"?"translateX(-50%) ":""}translateY(${o?n:-n}px)`}function _a(){return t.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"6 9 12 15 18 9"})})}function Ea(){return t.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"9 18 15 12 9 6"})})}function ns({items:e,globalOnClick:r,onCloseDropdown:n,classNames:o,styles:l,isSubmenu:a=!1}){const[c,d]=s.useState(null),f=Y("ino-dropdown__menu",{"ino-dropdown__menu--submenu":a}),u=a?void 0:l?.overlay,h=(g,m)=>{g.disabled||(g.onClick?.({key:g.key,domEvent:m}),r?.({key:g.key,domEvent:m}),n())};return t.jsx("div",{style:u,className:Y(f,a?void 0:o?.overlay),children:e.map(g=>g.type==="divider"?t.jsx("div",{className:"ino-dropdown__divider"},g.key):g.type==="group"?t.jsxs("div",{children:[t.jsx("div",{className:"ino-dropdown__group-title",children:g.title}),g.children?.map(m=>t.jsx(no,{item:m,globalOnClick:r,onCloseDropdown:n,onItemClick:h,hoveredSubmenu:c,setHoveredSubmenu:d,classNames:o,styles:l},m.key))]},g.key):t.jsx(no,{item:g,globalOnClick:r,onCloseDropdown:n,onItemClick:h,hoveredSubmenu:c,setHoveredSubmenu:d,classNames:o,styles:l},g.key))})}function no({item:e,globalOnClick:r,onCloseDropdown:n,onItemClick:o,hoveredSubmenu:l,setHoveredSubmenu:a,classNames:c,styles:d}){const f=e.children&&e.children.length>0,u=Y("ino-dropdown__item",{"ino-dropdown__item--danger":!!e.danger,"ino-dropdown__item--disabled":!!e.disabled,"ino-dropdown__item--has-children":!!f},c?.item);return t.jsxs("div",{className:u,style:d?.item,onClick:!e.disabled&&!f?h=>o(e,h):void 0,onMouseEnter:()=>{f&&a(e.key)},onMouseLeave:()=>{f&&a(null)},children:[e.icon&&t.jsx("span",{className:"ino-dropdown__item-icon",children:e.icon}),t.jsx("span",{className:"ino-dropdown__item-label",children:e.label}),f&&t.jsx("span",{className:"ino-dropdown__item-chevron",children:t.jsx(Ea,{})}),f&&l===e.key&&t.jsx("div",{className:"ino-dropdown__submenu",children:t.jsx(ns,{items:e.children,globalOnClick:r,onCloseDropdown:n,classNames:c,styles:d,isSubmenu:!0})})]})}function os({children:e,menu:r,trigger:n=["hover"],placement:o="bottomLeft",arrow:l=!1,open:a,onOpenChange:c,disabled:d=!1,dropdownRender:f,className:u,style:h,classNames:g,styles:m}){const[y,p]=s.useState(!1),[v,k]=s.useState(!1),[j,b]=s.useState(o),C=s.useRef(null),x=s.useRef(null),w=s.useRef(null),M=a!==void 0,R=M?a:y,S=W=>{d||(M||p(W),c?.(W))},B=()=>{C.current&&(clearTimeout(C.current),C.current=null),b(o),C.current=window.setTimeout(()=>{S(!0),requestAnimationFrame(()=>{requestAnimationFrame(()=>{k(!0)})})},100)},I=()=>{C.current&&(clearTimeout(C.current),C.current=null),k(!1),C.current=window.setTimeout(()=>{S(!1)},150)},T=()=>{R?I():B()};s.useLayoutEffect(()=>{if(!R||!w.current||!x.current)return;const W=w.current.getBoundingClientRect(),V=x.current.getBoundingClientRect(),Z=V.top,X=window.innerHeight-V.bottom,U=j.startsWith("top");!U&&W.bottom>window.innerHeight?Z>X&&b(q=>q.replace("bottom","top").replace("Bottom","Top")):U&&W.top<0&&X>Z&&b(q=>q.replace("top","bottom").replace("Top","Bottom"))}),s.useEffect(()=>{b(o)},[o]),s.useEffect(()=>()=>{C.current&&clearTimeout(C.current)},[]),s.useEffect(()=>{if(!R||!n.includes("click"))return;const W=V=>{x.current&&!x.current.contains(V.target)&&I()};return document.addEventListener("mousedown",W),()=>document.removeEventListener("mousedown",W)},[R,n]);const _=W=>{n.includes("contextMenu")&&(W.preventDefault(),T())},L=()=>{n.includes("hover")&&B()},N=()=>{n.includes("hover")&&I()},$=()=>{n.includes("click")&&T()},P=r?t.jsx(ns,{items:r.items,globalOnClick:r.onClick,onCloseDropdown:I,classNames:g,styles:m}):null,E=f?f(P):P,z={...Ba[j],opacity:v?1:0,transform:La(j,v)},F={...Ta[j],...m?.arrow},A=Y("ino-dropdown",u,g?.root),D={...m?.root,...h};return t.jsxs("div",{ref:x,style:D,className:A,onMouseEnter:L,onMouseLeave:N,onContextMenu:_,children:[t.jsx("span",{onClick:$,className:"ino-dropdown__trigger",children:e}),R&&t.jsxs("div",{ref:w,className:"ino-dropdown__overlay-container",style:z,children:[l&&t.jsx("div",{style:F,className:Y("ino-dropdown__arrow",g?.arrow)}),E]})]})}function Ia({children:e,menu:r,placement:n="bottomRight",trigger:o=["hover"],onClick:l,icon:a,disabled:c=!1,loading:d=!1,variant:f="primary",color:u,size:h="md",className:g,style:m,classNames:y,styles:p}){return t.jsxs("div",{style:{...m,...p?.root},className:Y("ino-dropdown-button",g,y?.root),children:[t.jsx(Pr,{variant:f,color:u,size:h,disabled:c,loading:d,onClick:l,className:"ino-dropdown-button__main",children:e}),t.jsx(os,{menu:r,trigger:o,placement:n,disabled:c,classNames:y,styles:p,children:t.jsx(Pr,{variant:f,color:u,size:h,disabled:c,icon:a||t.jsx(_a,{}),className:"ino-dropdown-button__icon"})})]})}const $a=Object.assign(os,{Button:Ia});function cn(e){return"type"in e&&e.type==="divider"}function zr(e){return"type"in e&&e.type==="group"}function ss(e){return!cn(e)&&!zr(e)&&"children"in e&&Array.isArray(e.children)}function Da(){return t.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"9 18 15 12 9 6"})})}function oo(){return t.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"6 9 12 15 18 9"})})}function Pa({item:e,ctx:r}){return t.jsx("li",{role:"separator",className:Y("ino-menu__divider",{"ino-menu__divider--dashed":e.dashed},r.classNames?.divider),style:r.styles?.divider})}function Aa({item:e,ctx:r,level:n}){const o={...r.mode==="inline"&&!r.inlineCollapsed?{paddingLeft:16+r.inlineIndent*n}:{},...r.styles?.groupTitle};return t.jsxs("li",{role:"presentation",className:Y("ino-menu__group",r.classNames?.group),style:r.styles?.group,children:[t.jsx("div",{className:Y("ino-menu__group-title",r.classNames?.groupTitle),style:o,children:e.label}),t.jsx("ul",{role:"group",className:"ino-menu__group-list",children:e.children.map(l=>t.jsx(rn,{item:l,ctx:r,level:n,keyPath:[]},tn(l)))})]})}function za({item:e,ctx:r,level:n,keyPath:o}){const l=r.selectedKeys.includes(e.key),a=r.mode==="horizontal",c=r.mode==="vertical",d=r.mode==="inline",f=d&&r.inlineCollapsed,u=[e.key,...o],h=Y("ino-menu__item",{"ino-menu__item--horizontal":a,"ino-menu__item--vertical":c,"ino-menu__item--disabled":e.disabled,"ino-menu__item--danger":e.danger,"ino-menu__item--selected":l,"ino-menu__item--collapsed":f},r.classNames?.item),g={...d&&!f?{paddingLeft:16+r.inlineIndent*n}:{},...r.styles?.item},m=p=>{e.disabled||r.onItemClick(e,u,p)},y=t.jsxs(t.Fragment,{children:[e.icon&&t.jsx("span",{className:"ino-menu__item-icon",children:e.icon}),(!f||!e.icon)&&t.jsx("span",{className:"ino-menu__item-label",children:e.label})]});return t.jsx("li",{role:"menuitem",className:h,style:g,title:f?void 0:e.title,onClick:m,children:f&&e.title?t.jsx(Nt,{content:e.title,position:"right",delay:100,children:y}):y})}function Fa({item:e,ctx:r,level:n,keyPath:o}){const l=s.useRef(null),a=r.openKeys.includes(e.key),c=r.mode==="horizontal",d=r.mode==="inline",f=r.mode==="vertical",u=d&&r.inlineCollapsed,h=c||f||u,g=[e.key,...o],m=Bn(e.children,r.selectedKeys),y=Y("ino-menu__submenu-trigger",{"ino-menu__submenu-trigger--horizontal":c,"ino-menu__submenu-trigger--disabled":e.disabled,"ino-menu__submenu-trigger--active":m,"ino-menu__submenu-trigger--collapsed":u},r.classNames?.item),p={...d&&!u?{paddingLeft:16+r.inlineIndent*n}:{},...r.styles?.item},v=M=>{e.disabled||(M.stopPropagation(),(r.triggerSubMenuAction==="click"||d)&&r.onSubMenuToggle(e.key))},k=()=>{e.disabled||!h||r.triggerSubMenuAction==="hover"&&r.onSubMenuMouseEnter(e.key)},j=()=>{h&&r.triggerSubMenuAction==="hover"&&r.onSubMenuMouseLeave(e.key)},b=r.expandIcon??(h?c?t.jsx(oo,{}):t.jsx(Da,{}):t.jsx(oo,{})),C=Y("ino-menu__expand-icon",{"ino-menu__expand-icon--open":a&&!h}),x=Y("ino-menu__submenu-popup",c?"ino-menu__submenu-popup--horizontal":"ino-menu__submenu-popup--vertical",r.classNames?.submenu),w=Y("ino-menu__submenu-inline",a?"ino-menu__submenu-inline--open":"ino-menu__submenu-inline--closed",r.classNames?.submenu);return t.jsxs("li",{role:"none",className:Y("ino-menu__submenu-wrapper",{"ino-menu__submenu-wrapper--popup":h}),onMouseEnter:k,onMouseLeave:j,children:[t.jsxs("div",{role:"menuitem","aria-expanded":a,className:y,style:p,onClick:v,children:[e.icon&&t.jsx("span",{className:"ino-menu__item-icon",children:e.icon}),(!u||!e.icon)&&t.jsx("span",{className:"ino-menu__item-label",children:e.label}),(!u||!e.icon)&&t.jsx("span",{className:C,children:b})]}),h&&a&&t.jsx("ul",{ref:l,role:"menu",className:x,style:r.styles?.submenu,children:e.children.map(M=>t.jsx(rn,{item:M,ctx:r,level:0,keyPath:g},tn(M)))}),!h&&t.jsx("ul",{role:"menu",className:w,style:r.styles?.submenu,children:e.children.map(M=>t.jsx(rn,{item:M,ctx:r,level:n+1,keyPath:g},tn(M)))})]})}function tn(e){return"key"in e&&e.key!=null?String(e.key):cn(e)?`divider-${Math.random()}`:zr(e)?`group-${Math.random()}`:`item-${Math.random()}`}function Bn(e,r){for(const n of e)if(!cn(n)&&!zr(n)&&"key"in n&&r.includes(n.key)||ss(n)&&Bn(n.children,r)||zr(n)&&Bn(n.children,r))return!0;return!1}function rn({item:e,ctx:r,level:n,keyPath:o}){return cn(e)?t.jsx(Pa,{item:e,ctx:r}):zr(e)?t.jsx(Aa,{item:e,ctx:r,level:n}):ss(e)?t.jsx(Fa,{item:e,ctx:r,level:n,keyPath:o}):t.jsx(za,{item:e,ctx:r,level:n,keyPath:o})}function Na({items:e=[],mode:r="vertical",selectedKeys:n,defaultSelectedKeys:o=[],openKeys:l,defaultOpenKeys:a=[],multiple:c=!1,selectable:d=!0,inlineCollapsed:f=!1,inlineIndent:u=24,triggerSubMenuAction:h="hover",onClick:g,onSelect:m,onDeselect:y,onOpenChange:p,expandIcon:v,className:k,style:j,classNames:b,styles:C}){const[x,w]=s.useState(o),M=n??x,[R,S]=s.useState(a),B=l??R,I=s.useRef(new Map);s.useEffect(()=>()=>{I.current.forEach(W=>clearTimeout(W))},[]);const T=s.useRef(B);T.current=B;const _=W=>{l===void 0&&S(W),p?.(W)},E={mode:r,selectedKeys:M,openKeys:B,inlineCollapsed:f,inlineIndent:u,triggerSubMenuAction:h,expandIcon:v,selectable:d,multiple:c,classNames:b,styles:C,onItemClick:(W,V,Z)=>{const X={key:W.key,keyPath:V,domEvent:Z};if(W.onClick?.(X),g?.(X),d){const U=M.includes(W.key);let q;c?U?(q=M.filter(H=>H!==W.key),y?.({...X,selectedKeys:q})):(q=[...M,W.key],m?.({...X,selectedKeys:q})):(q=[W.key],U||m?.({...X,selectedKeys:q})),n===void 0&&w(q)}},onSubMenuToggle:W=>{const V=T.current,Z=V.includes(W);_(Z?V.filter(X=>X!==W):[...V,W])},onSubMenuMouseEnter:W=>{const V=new Set;I.current.forEach((U,q)=>{clearTimeout(U),V.add(q)}),I.current.clear();let X=T.current.filter(U=>!V.has(U));X.includes(W)||(X=[...X,W]),_(X)},onSubMenuMouseLeave:W=>{const V=window.setTimeout(()=>{const Z=T.current;_(Z.filter(X=>X!==W)),I.current.delete(W)},150);I.current.set(W,V)}},z=r==="horizontal",F=r==="inline",A=Y("ino-menu",`ino-menu--${r}`,{"ino-menu--collapsed":F&&f},k,b?.root),D={...C?.root,...j};return t.jsx("ul",{role:z?"menubar":"menu",className:A,style:D,children:e.map(W=>t.jsx(rn,{item:W,ctx:E,level:0,keyPath:[]},tn(W)))})}function so(e,r,n){return Math.max(r,Math.min(n,e))}function Wa(e,r,n){if(r<=0)return[];const o=n?2:3,l=[];if(r<=o*2+3){for(let d=1;d<=r;d++)l.push(d);return l}l.push(1);const a=Math.max(2,e-o),c=Math.min(r-1,e+o);a>2&&l.push("jump-prev");for(let d=a;d<=c;d++)l.push(d);return c<r-1&&l.push("jump-next"),r>1&&l.push(r),l}function mr({page:e,type:r,isActive:n,disabled:o,size:l,showTitle:a,itemRender:c,itemStyle:d,itemClassName:f,onClick:u}){const h=l==="small",g=r==="jump-prev"||r==="jump-next",m=h?"1.5rem":"2rem",y=h?"0.75rem":"0.875rem",p=h?12:14,v={display:"inline-flex",alignItems:"center",justifyContent:"center",minWidth:m,height:m,fontSize:y,lineHeight:1,padding:"0 0.25rem",border:g?"none":"1px solid",borderColor:g?"transparent":n?i.colorPrimary:i.colorBorder,borderRadius:"0.375rem",backgroundColor:g?"transparent":n?i.colorPrimary:i.colorBg,color:g?i.colorTextMuted:n?i.colorPrimaryContrast:i.colorText,fontWeight:n?600:400,cursor:o?"not-allowed":"pointer",opacity:o?.5:1,transition:"all 0.2s",userSelect:"none",...d};let k;a&&(r==="prev"?k="Previous Page":r==="next"?k="Next Page":r==="jump-prev"?k="Previous 5 Pages":r==="jump-next"?k="Next 5 Pages":k=String(e));let j;r==="prev"?j=t.jsx("svg",{width:p,height:p,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"15 18 9 12 15 6"})}):r==="next"?j=t.jsx("svg",{width:p,height:p,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"9 6 15 12 9 18"})}):g?j=t.jsx("span",{style:{letterSpacing:"0.125rem",fontWeight:700},children:"•••"}):j=e;const b=r==="prev"||r==="next"||r==="jump-prev"||r==="jump-next",C=t.jsx("button",{type:"button",disabled:o,"aria-label":r==="prev"?"Previous":r==="next"?"Next":void 0,"aria-current":n?"page":void 0,style:v,className:f,onMouseEnter:w=>{if(o||n)return;const M=w.currentTarget;g||(M.style.borderColor=i.colorPrimary),M.style.color=i.colorPrimary},onMouseLeave:w=>{if(o||n)return;const M=w.currentTarget;g?M.style.color=i.colorTextMuted:(M.style.borderColor=i.colorBorder,M.style.color=i.colorText)},children:j}),x=c?c(e,r,C):C;return t.jsx("li",{style:{listStyle:"none",cursor:o?"not-allowed":"pointer"},onClick:o?void 0:u,children:k&&b?t.jsx(Nt,{content:k,delay:300,children:x}):x})}function Ha({value:e,options:r,disabled:n,size:o,onChange:l,itemsPerPage:a="/ page"}){const[c,d]=s.useState(!1),f=s.useRef(null),u=o==="small",h=u?"1.5rem":"2rem",g=u?"0.75rem":"0.875rem";s.useEffect(()=>{if(!c)return;const v=k=>{f.current&&!f.current.contains(k.target)&&d(!1)};return document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[c]);const m={display:"inline-flex",alignItems:"center",gap:"0.375rem",height:h,border:"1px solid",borderColor:c?i.colorPrimary:i.colorBorder,borderRadius:"0.375rem",backgroundColor:i.colorBg,color:i.colorText,fontSize:g,padding:u?"0 0.5rem":"0 0.75rem",cursor:n?"not-allowed":"pointer",opacity:n?.5:1,transition:"border-color 0.2s",userSelect:"none",whiteSpace:"nowrap"},y={position:"absolute",top:"100%",left:0,marginTop:"0.25rem",minWidth:"100%",backgroundColor:i.colorBg,border:`1px solid ${i.colorBorder}`,borderRadius:"0.5rem",boxShadow:i.shadowMd,padding:"0.25rem 0",zIndex:1050},p=v=>{l(v),d(!1)};return t.jsxs("div",{ref:f,style:{position:"relative"},children:[t.jsxs("div",{role:"button",tabIndex:n?-1:0,style:m,onClick:()=>{n||d(!c)},onKeyDown:v=>{(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),n||d(!c))},onMouseEnter:v=>{n||c||(v.currentTarget.style.borderColor=i.colorPrimary)},onMouseLeave:v=>{n||c||(v.currentTarget.style.borderColor=i.colorBorder)},children:[t.jsxs("span",{children:[e," ",a]}),t.jsx("svg",{width:10,height:10,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{transition:"transform 0.2s",transform:c?"rotate(180deg)":"rotate(0deg)",opacity:.6},children:t.jsx("polyline",{points:"6 9 12 15 18 9"})})]}),c&&t.jsx("div",{style:y,children:r.map(v=>t.jsxs("div",{style:{padding:"0.375rem 0.75rem",fontSize:g,cursor:"pointer",color:v===e?i.colorPrimary:i.colorText,fontWeight:v===e?600:400,transition:"background-color 0.15s ease",whiteSpace:"nowrap"},onClick:()=>p(v),onMouseEnter:k=>{k.currentTarget.style.backgroundColor=i.colorBgMuted},onMouseLeave:k=>{k.currentTarget.style.backgroundColor="transparent"},children:[v," ",a]},v))})]})}function is({total:e=0,current:r,defaultCurrent:n=1,pageSize:o,defaultPageSize:l=10,pageSizeOptions:a=[10,20,50,100],showSizeChanger:c,showQuickJumper:d=!1,showTotal:f,simple:u=!1,size:h="default",disabled:g=!1,hideOnSinglePage:m=!1,showLessItems:y=!1,showTitle:p=!0,itemRender:v,onChange:k,onShowSizeChange:j,className:b,style:C,classNames:x,styles:w}){const{locale:M}=qt(),R=M.Pagination,[S,B]=s.useState(n),[I,T]=s.useState(l),_=r??S,L=o??I,N=Math.max(1,Math.ceil(e/L)),$=so(_,1,N),P=c??e>50,E=fe=>{const Se=so(fe,1,N);Se!==$&&(r===void 0&&B(Se),k?.(Se,L))},z=fe=>{o===void 0&&T(fe);const Se=Math.max(1,Math.ceil(e/fe)),We=Math.min($,Se);r===void 0&&B(We),j?.(We,fe),k?.(We,fe)},[F,A]=s.useState(""),D=fe=>{if(fe.key==="Enter"){const Se=parseInt(F,10);isNaN(Se)||E(Se),A("")}},[W,V]=s.useState(String($));u&&W!==String($)&&document.activeElement?.tagName!=="INPUT"&&V(String($));const Z=fe=>{if(fe.key==="Enter"){const Se=parseInt(W,10);isNaN(Se)||E(Se)}},X=()=>{const fe=parseInt(W,10);isNaN(fe)||E(fe),V(String($))};if(m&&N<=1)return null;const U=h==="small",q=U?"1.5rem":"2rem",H=U?"0.75rem":"0.875rem",re=U?"0.25rem":"0.5rem",oe={display:"flex",alignItems:"center",gap:re,color:i.colorText,fontSize:H},se=be(oe,w?.root,C),J={width:"3.125rem",height:q,border:`1px solid ${i.colorBorder}`,borderRadius:"0.375rem",textAlign:"center",backgroundColor:i.colorBg,color:i.colorText,fontSize:H,outline:"none",transition:"border-color 0.2s"},ie=fe=>{fe.currentTarget.style.borderColor=i.colorPrimary},_e=fe=>{fe.currentTarget.style.borderColor=i.colorBorder};if(u)return t.jsx("nav",{"aria-label":"pagination",style:se,className:xt(b,x?.root),children:t.jsxs("ul",{style:{display:"flex",alignItems:"center",gap:re,listStyle:"none",margin:0,padding:0},children:[t.jsx(mr,{page:$-1,type:"prev",isActive:!1,disabled:g||$<=1,size:h,showTitle:p,itemRender:v,itemStyle:w?.item,itemClassName:x?.item,onClick:()=>E($-1)}),t.jsxs("li",{style:{display:"flex",alignItems:"center",gap:"0.25rem",listStyle:"none"},children:[t.jsx("input",{type:"text",value:W,disabled:g,style:{...J,...g?{opacity:.5,cursor:"not-allowed"}:{}},onChange:fe=>V(fe.target.value),onKeyDown:Z,onBlur:X,onFocus:ie}),t.jsx("span",{style:{color:i.colorTextMuted},children:"/"}),t.jsx("span",{style:{color:i.colorTextMuted},children:N})]}),t.jsx(mr,{page:$+1,type:"next",isActive:!1,disabled:g||$>=N,size:h,showTitle:p,itemRender:v,itemStyle:w?.item,itemClassName:x?.item,onClick:()=>E($+1)})]})});const we=Wa($,N,y),je=5,ae=e===0?0:($-1)*L+1,he=Math.min($*L,e);return t.jsxs("nav",{"aria-label":"pagination",style:se,className:xt(b,x?.root),children:[f&&t.jsx("span",{style:{color:i.colorTextMuted,fontSize:H,marginRight:"0.25rem"},children:f(e,[ae,he])}),t.jsxs("ul",{style:{display:"flex",alignItems:"center",gap:re,listStyle:"none",margin:0,padding:0},children:[t.jsx(mr,{page:$-1,type:"prev",isActive:!1,disabled:g||$<=1,size:h,showTitle:p,itemRender:v,itemStyle:w?.item,itemClassName:x?.item,onClick:()=>E($-1)}),we.map((fe,Se)=>fe==="jump-prev"||fe==="jump-next"?t.jsx(mr,{page:fe==="jump-prev"?Math.max(1,$-je):Math.min(N,$+je),type:fe,isActive:!1,disabled:g,size:h,showTitle:p,itemRender:v,itemStyle:w?.item,itemClassName:x?.item,onClick:()=>{E(fe==="jump-prev"?Math.max(1,$-je):Math.min(N,$+je))}},`${fe}-${Se}`):t.jsx(mr,{page:fe,type:"page",isActive:fe===$,disabled:g,size:h,showTitle:p,itemRender:v,itemStyle:w?.item,itemClassName:x?.item,onClick:()=>E(fe)},fe)),t.jsx(mr,{page:$+1,type:"next",isActive:!1,disabled:g||$>=N,size:h,showTitle:p,itemRender:v,itemStyle:w?.item,itemClassName:x?.item,onClick:()=>E($+1)})]}),(P||d)&&t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:re,...w?.options},className:x?.options,children:[P&&t.jsx(Ha,{value:L,options:a,disabled:g,size:h,onChange:z,itemsPerPage:R?.itemsPerPage}),d&&t.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"0.25rem",color:i.colorText,fontSize:H},children:[R?.jumpTo??"Go to",t.jsx("input",{type:"text",value:F,disabled:g,style:{...J,...g?{opacity:.5,cursor:"not-allowed"}:{}},onChange:fe=>A(fe.target.value),onKeyDown:D,onFocus:ie,onBlur:fe=>{_e(fe)}})]})]})]})}const Oa=({size:e})=>t.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"20 6 9 17 4 12"})}),Va=({size:e})=>t.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),t.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]});function Ya({percent:e,ringSize:r,iconSize:n}){const l=(r-3)/2,a=2*Math.PI*l,c=a-e/100*a,f=n/2-2-r/2;return t.jsxs("svg",{width:r,height:r,style:{position:"absolute",top:f,left:f,transform:"rotate(-90deg)"},children:[t.jsx("circle",{cx:r/2,cy:r/2,r:l,fill:"none",stroke:i.colorBorder,strokeWidth:3}),t.jsx("circle",{cx:r/2,cy:r/2,r:l,fill:"none",stroke:i.colorPrimary,strokeWidth:3,strokeDasharray:a,strokeDashoffset:c,strokeLinecap:"round",style:{transition:"stroke-dashoffset 0.3s"}})]})}function Ka(e){switch(e){case"finish":return i.colorPrimary;case"error":return i.colorError;default:return i.colorBorder}}function Ua({item:e,index:r,stepStatus:n,isFirst:o,isLast:l,isClickable:a,isVertical:c,isNavigation:d,isDot:f,progressDotRender:u,showPercent:h,percent:g,size:m,labelVertical:y,prevTailColor:p,classNames:v,styles:k,onClick:j}){const b=m==="small",C=b?"1.5rem":"2rem",x=b?24:32,w=b?"0.75rem":"0.875rem",M=b?12:14,R=b?"0.875rem":"1rem",S=b?"0.75rem":"0.875rem",B="0.5rem",I=8,_={wait:{iconBg:i.colorBg,iconBorder:i.colorBorder,iconColor:i.colorTextMuted,titleColor:i.colorTextMuted,descColor:i.colorTextMuted,tailColor:i.colorBorder},process:{iconBg:i.colorPrimary,iconBorder:i.colorPrimary,iconColor:i.colorPrimaryContrast,titleColor:i.colorText,descColor:i.colorTextMuted,tailColor:i.colorBorder},finish:{iconBg:i.colorBg,iconBorder:i.colorPrimary,iconColor:i.colorPrimary,titleColor:i.colorText,descColor:i.colorTextMuted,tailColor:i.colorPrimary},error:{iconBg:i.colorBg,iconBorder:i.colorError,iconColor:i.colorError,titleColor:i.colorError,descColor:i.colorError,tailColor:i.colorError}}[n],L=a&&!e.disabled?j:void 0,N=a&&!e.disabled?"pointer":e.disabled?"not-allowed":"default";let $;if(f){const D={width:B,height:B,borderRadius:"50%",backgroundColor:n==="wait"?i.colorBorder:_.iconBorder,transition:"all 0.3s"},W=t.jsx("span",{style:D});typeof u=="function"?$=u(W,{index:r,status:n,title:e.title,description:e.description}):$=W}else e.icon?$=e.icon:n==="finish"?$=t.jsx(Oa,{size:M}):n==="error"?$=t.jsx(Va,{size:M}):$=r+1;const P=f?{display:"flex",alignItems:"center",justifyContent:"center",width:B,height:B,position:"relative",flexShrink:0,...k?.icon}:{display:"flex",alignItems:"center",justifyContent:"center",width:C,height:C,borderRadius:"50%",border:`2px solid ${_.iconBorder}`,backgroundColor:_.iconBg,color:_.iconColor,fontSize:w,fontWeight:600,flexShrink:0,transition:"all 0.3s",position:"relative",...k?.icon},E=t.jsxs("div",{style:P,className:v?.icon,children:[$,h&&!f&&t.jsx(Ya,{percent:g,ringSize:x+10,iconSize:x})]}),z={fontSize:R,fontWeight:n==="process"?600:400,color:_.titleColor,lineHeight:1.5,whiteSpace:"nowrap"},F=D=>t.jsxs("div",{style:{...D,...k?.content},className:v?.content,children:[t.jsxs("div",{style:z,children:[e.title,e.subTitle&&t.jsx("span",{style:{fontSize:S,color:i.colorTextMuted,marginLeft:"0.5rem",fontWeight:400},children:e.subTitle})]}),e.description&&t.jsx("div",{style:{fontSize:S,color:_.descColor,marginTop:"0.125rem",lineHeight:1.5},children:e.description})]}),A=D=>t.jsx("div",{style:{flex:1,height:1,backgroundColor:D,transition:"background-color 0.3s",...k?.tail},className:v?.tail});if(d){const D=b?16:20;return t.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",position:"relative",padding:b?"0.5rem 1rem":"0.75rem 1.5rem",backgroundColor:n==="process"?i.colorBgMuted:"transparent",cursor:N,opacity:e.disabled?.5:1,transition:"background-color 0.2s",...k?.step},className:v?.step,onClick:L,onMouseEnter:W=>{!a||e.disabled||n==="process"||(W.currentTarget.style.backgroundColor=i.colorBgMuted)},onMouseLeave:W=>{!a||e.disabled||n==="process"||(W.currentTarget.style.backgroundColor="transparent")},children:[t.jsxs("div",{style:{display:"flex",flexDirection:"column",flex:1},children:[t.jsx("span",{style:{fontSize:R,fontWeight:n==="process"?600:400,color:_.titleColor},children:e.title}),e.description&&t.jsx("span",{style:{fontSize:S,color:_.descColor,marginTop:"0.125rem"},children:e.description})]}),n==="process"&&t.jsx("div",{style:{position:"absolute",bottom:0,left:0,right:0,height:2,backgroundColor:i.colorPrimary}}),!l&&t.jsx("div",{style:{position:"absolute",right:0,top:"50%",transform:"translateY(-50%) translateX(50%)",zIndex:1,width:0,height:0,borderTop:`${D/2}px solid transparent`,borderBottom:`${D/2}px solid transparent`,borderLeft:`${D/2}px solid ${i.colorBorder}`}})]})}if(!c&&y){const D=f?"0.25rem":"0.5rem";return t.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",cursor:N,opacity:e.disabled?.5:1,...k?.step},className:v?.step,onClick:L,children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",width:"100%"},children:[t.jsx("div",{style:{flex:1,display:"flex",alignItems:"center",paddingRight:D},children:!o&&p&&A(p)}),E,t.jsx("div",{style:{flex:1,display:"flex",alignItems:"center",paddingLeft:D},children:!l&&A(_.tailColor)})]}),F({display:"flex",flexDirection:"column",alignItems:"center",marginTop:f?"0.25rem":"0.5rem"})]})}return c?t.jsxs("div",{style:{display:"flex",alignItems:"flex-start",position:"relative",paddingBottom:l?0:"1.5rem",cursor:N,opacity:e.disabled?.5:1,...k?.step},className:v?.step,onClick:L,children:[E,F({display:"flex",flexDirection:"column",marginLeft:f?"0.75rem":"0.5rem"}),!l&&t.jsx("div",{style:{position:"absolute",left:f?I/2:x/2,top:f?I+4:x+4,bottom:0,width:1,backgroundColor:_.tailColor,transition:"background-color 0.3s",...k?.tail},className:v?.tail})]}):t.jsxs("div",{style:{flex:l?"none":1,display:"flex",alignItems:"flex-start",cursor:N,opacity:e.disabled?.5:1,...k?.step},className:v?.step,onClick:L,children:[E,F({display:"flex",flexDirection:"column",marginLeft:"0.5rem"}),!l&&t.jsx("div",{style:{flex:1,display:"flex",alignItems:"center",height:C,minWidth:"1.5rem",padding:"0 0.5rem"},children:A(_.tailColor)})]})}function qa({items:e=[],current:r=0,direction:n="horizontal",size:o="default",status:l="process",type:a="default",labelPlacement:c="horizontal",progressDot:d=!1,percent:f,initial:u=0,onChange:h,className:g,style:m,classNames:y,styles:p}){const v=n==="vertical",k=a==="navigation",j=!!d&&!k,b=!!h,C=j||c==="vertical",x=typeof d=="function"?d:void 0,w=(S,B)=>B.status?B.status:S<r?"finish":S===r?l:"wait",M={display:"flex",flexDirection:v?"column":"row",width:"100%"};k&&(M.borderBottom=`1px solid ${i.colorBorder}`);const R=be(M,p?.root,m);return t.jsx("div",{role:"navigation","aria-label":"Steps",style:R,className:xt(g,y?.root),children:e.map((S,B)=>{const I=w(B,S),T=B===e.length-1,_=f!==void 0&&B===r&&I==="process";let L;if(B>0){const N=w(B-1,e[B-1]);L=Ka(N)}return t.jsx(Ua,{item:S,index:B+u,stepStatus:I,isFirst:B===0,isLast:T,isClickable:b,isVertical:v,isNavigation:k,isDot:j,progressDotRender:x,showPercent:_,percent:f??0,size:o,labelVertical:C,prevTailColor:L,classNames:y,styles:p,onClick:()=>h?.(B)},B)})})}const io=200,Ga={large:{paddingH:"1.25rem 1rem",paddingV:"0.75rem 1.5rem",fontSize:"1rem",cardHeight:"2.75rem"},middle:{paddingH:"0.75rem 1rem",paddingV:"0.75rem 1.5rem",fontSize:"0.875rem",cardHeight:"2.5rem"},small:{paddingH:"0.5rem 0.75rem",paddingV:"0.5rem 1rem",fontSize:"0.875rem",cardHeight:"2.25rem"}};function Xa(){return t.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),t.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}function Qa(){return t.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),t.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})}function Za(){return t.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"15 18 9 12 15 6"})})}function Ja(){return t.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"9 18 15 12 9 6"})})}function ec(){return t.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"18 15 12 9 6 15"})})}function tc(){return t.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"6 9 12 15 18 9"})})}function ls({items:e=[],activeKey:r,defaultActiveKey:n,type:o="line",size:l="middle",tabPosition:a="top",centered:c=!1,animated:d={inkBar:!0,tabPane:!1},tabBarGutter:f,tabBarStyle:u,tabBarExtraContent:h,indicator:g,addIcon:m,removeIcon:y,hideAdd:p=!1,destroyOnHidden:v=!1,onChange:k,onEdit:j,onTabClick:b,className:C,style:x,classNames:w,styles:M}){const R=r!==void 0,[S,B]=s.useState(n??e[0]?.key??""),I=R?r:S,T=s.useCallback(O=>{R||B(O),k?.(O)},[R,k]),_=a==="left"||a==="right",L=o==="card"||o==="editable-card",N=o==="editable-card",$=typeof d=="boolean"?d:d.inkBar,P=typeof d=="boolean"?d:d.tabPane,E=Ga[l],[z,F]=s.useState(null),A=s.useRef(new Map),D=s.useRef(null),W=s.useRef(null),[V,Z]=s.useState({}),[X,U]=s.useState(!1),[q,H]=s.useState(!1),[re,oe]=s.useState(!1),se=s.useRef(new Set);I&&se.current.add(I);const J=s.useCallback(()=>{if(L||!D.current)return;const O=A.current.get(I);if(!O){Z({opacity:0});return}const K=D.current;let te,ne;_?(te=O.offsetTop-K.offsetTop,ne=O.offsetHeight):(te=O.offsetLeft-K.offsetLeft,ne=O.offsetWidth);let ce=ne,ve=0;if(g?.size!=null){ce=typeof g.size=="function"?g.size(ne):g.size;const De=g.align??"center";De==="center"?ve=(ne-ce)/2:De==="end"&&(ve=ne-ce)}if(_){const De={position:"absolute",width:2,height:ce,top:te+ve,backgroundColor:i.colorPrimary,borderRadius:1,transition:$?"all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)":"none",...a==="left"?{right:0}:{left:0}};Z(De)}else{const De={position:"absolute",height:2,width:ce,left:te+ve,bottom:0,backgroundColor:i.colorPrimary,borderRadius:1,transition:$?"all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)":"none"};Z(De)}},[I,L,_,a,$,g]),ie=s.useCallback(()=>{const O=D.current;if(O)if(_){const K=O.scrollHeight>O.clientHeight+1;U(K),H(O.scrollTop>0),oe(O.scrollTop+O.clientHeight<O.scrollHeight-1)}else{const K=O.scrollWidth>O.clientWidth+1;U(K),H(O.scrollLeft>0),oe(O.scrollLeft+O.clientWidth<O.scrollWidth-1)}},[_]),_e=s.useCallback(()=>{const O=D.current,K=A.current.get(I);if(!(!O||!K))if(_){const te=K.offsetTop-O.offsetTop,ne=te+K.offsetHeight;te<O.scrollTop?O.scrollTo({top:te,behavior:"smooth"}):ne>O.scrollTop+O.clientHeight&&O.scrollTo({top:ne-O.clientHeight,behavior:"smooth"})}else{const te=K.offsetLeft-O.offsetLeft,ne=te+K.offsetWidth;te<O.scrollLeft?O.scrollTo({left:te,behavior:"smooth"}):ne>O.scrollLeft+O.clientWidth&&O.scrollTo({left:ne-O.clientWidth,behavior:"smooth"})}},[I,_]);s.useEffect(()=>{J(),_e()},[J,_e]),s.useEffect(()=>{ie()},[ie,e]),s.useEffect(()=>{const O=D.current;if(!O)return;const K=new ResizeObserver(()=>{J(),ie()});return K.observe(O),A.current.forEach(te=>K.observe(te)),()=>K.disconnect()},[J,ie,e]),s.useEffect(()=>{const O=D.current;if(!O)return;const K=()=>ie();O.addEventListener("scroll",K,{passive:!0});const te=ne=>{_||ne.deltaX===0&&(Math.abs(ne.deltaY)<1||(ne.preventDefault(),O.scrollLeft+=ne.deltaY))};return O.addEventListener("wheel",te,{passive:!1}),()=>{O.removeEventListener("scroll",K),O.removeEventListener("wheel",te)}},[ie,_]);const we=O=>{const K=D.current;K&&(_?K.scrollBy({top:O,behavior:"smooth"}):K.scrollBy({left:O,behavior:"smooth"}))},je=(O,K)=>{O.disabled||(b?.(O.key,K),O.key!==I&&T(O.key))},ae=(O,K)=>{K.stopPropagation(),j?.(O.key,"remove")},he=O=>{j?.(O,"add")};let fe=null,Se=null;if(h)if(typeof h=="object"&&h!==null&&"left"in h){const O=h;fe=O.left??null,Se=O.right??null}else Se=h;const We=L?void 0:a==="top"?"ino-tabs__bar--border-bottom":a==="bottom"?"ino-tabs__bar--border-top":a==="left"?"ino-tabs__bar--border-right":"ino-tabs__bar--border-left",Le=L?{border:`1px solid ${i.colorBorder}`,...a==="top"?{borderTop:"none",borderRadius:"0 0 0.5rem 0.5rem"}:a==="bottom"?{borderBottom:"none",borderRadius:"0.5rem 0.5rem 0 0"}:a==="left"?{borderLeft:"none",borderRadius:"0 0.5rem 0.5rem 0"}:{borderRight:"none",borderRadius:"0.5rem 0 0 0.5rem"}}:{},Te=(O,K)=>{const te=f??(_?0:L?2:0),ne=_?E.paddingV:E.paddingH,ce=z===O.key&&!O.disabled&&!K,ve={padding:ne,fontSize:E.fontSize,cursor:O.disabled?"not-allowed":"pointer",color:O.disabled?i.colorTextSubtle:ce?L?i.colorPrimary:i.colorPrimaryHover:K?L?i.colorText:i.colorPrimary:i.colorText,fontWeight:K?600:400,..._?{marginBottom:te}:{marginRight:te}};if(L){const De=a==="top",G=a==="bottom",le=a==="left",pe="0.5rem",Ee={top:`${pe} ${pe} 0 0`,bottom:`0 0 ${pe} ${pe}`,left:`${pe} 0 0 ${pe}`,right:`0 ${pe} ${pe} 0`};Object.assign(ve,{backgroundColor:K||ce?i.colorBg:i.colorBgSubtle,border:`1px solid ${i.colorBorder}`,borderRadius:Ee[a],height:E.cardHeight,...De?{borderBottomColor:K?i.colorBg:i.colorBorder}:{},...G?{borderTopColor:K?i.colorBg:i.colorBorder}:{},...le?{borderRightColor:K?i.colorBg:i.colorBorder}:{},...!De&&!G&&!le?{borderLeftColor:K?i.colorBg:i.colorBorder}:{}})}return ve},Ie=()=>e.map(O=>{const K=O.key===I,te=(O.destroyOnHidden??v)&&!K,ne=se.current.has(O.key);return K||O.forceRender||ne&&!te?t.jsx("div",{role:"tabpanel","aria-hidden":!K,className:Y("ino-tabs__pane",{"ino-tabs__pane--hidden":!K}),style:P&&K?{animation:"j-tabs-fadein 0.3s ease"}:void 0,children:O.children},O.key):null}),Re=O=>K=>{K?A.current.set(O,K):A.current.delete(O)};return t.jsxs("div",{className:Y("ino-tabs",`ino-tabs--${a}`,C,w?.root),style:{...M?.root,...x},children:[t.jsxs("div",{className:Y("ino-tabs__bar",_?"ino-tabs__bar--vertical":"ino-tabs__bar--horizontal",We,w?.tabBar),style:{...u,...M?.tabBar},children:[fe&&t.jsx("div",{className:"ino-tabs__extra",children:fe}),X&&t.jsx("button",{className:Y("ino-tabs__scroll-arrow",_?"ino-tabs__scroll-arrow--v":"ino-tabs__scroll-arrow--h"),style:{opacity:q?1:.3,pointerEvents:q?"auto":"none"},onClick:()=>we(-io),tabIndex:-1,"aria-label":"Scroll tabs back",children:_?t.jsx(ec,{}):t.jsx(Za,{})}),t.jsx("div",{ref:W,className:"ino-tabs__nav-wrap",children:t.jsxs("div",{ref:D,className:Y("ino-tabs__nav-list",_?"ino-tabs__nav-list--vertical":"ino-tabs__nav-list--horizontal",{"ino-tabs__nav-list--centered":c&&!X}),role:"tablist",children:[e.map(O=>{const K=O.key===I,te=Te(O,K);return t.jsxs("div",{ref:Re(O.key),role:"tab","aria-selected":K,"aria-disabled":O.disabled,tabIndex:K?0:-1,className:Y("ino-tabs__tab",{"ino-tabs__tab--disabled":O.disabled},w?.tab),style:{...te,...M?.tab},onClick:ne=>je(O,ne),onMouseEnter:()=>{O.disabled||F(O.key)},onMouseLeave:()=>{F(ne=>ne===O.key?null:ne)},children:[O.icon&&t.jsx("span",{className:"ino-tabs__tab-icon",children:O.icon}),O.label&&t.jsx("span",{children:O.label}),N&&O.closable!==!1&&t.jsx("button",{className:"ino-tabs__close-btn",onClick:ne=>ae(O,ne),tabIndex:-1,"aria-label":`Close ${O.label??O.key}`,children:O.closeIcon??y??t.jsx(Xa,{})})]},O.key)}),!L&&t.jsx("div",{style:{...V,...M?.inkBar},className:w?.inkBar})]})}),X&&t.jsx("button",{className:Y("ino-tabs__scroll-arrow",_?"ino-tabs__scroll-arrow--v":"ino-tabs__scroll-arrow--h"),style:{opacity:re?1:.3,pointerEvents:re?"auto":"none"},onClick:()=>we(io),tabIndex:-1,"aria-label":"Scroll tabs forward",children:_?t.jsx(tc,{}):t.jsx(Ja,{})}),Se&&t.jsx("div",{className:"ino-tabs__extra",children:Se}),N&&!p&&t.jsx("button",{className:"ino-tabs__add-btn",style:{width:E.cardHeight,height:E.cardHeight,marginLeft:_?0:"0.25rem",marginTop:_?"0.25rem":0},onClick:he,tabIndex:-1,"aria-label":"Add tab",children:m??t.jsx(Qa,{})})]}),t.jsx("div",{className:Y("ino-tabs__content",w?.content),style:{...Le,...M?.content},children:Ie()})]})}function rc(){return t.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),t.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}function nc(e){const r=[];for(const n of e)n.options?r.push(...n.options):r.push(n);return r}function oc(e,r){const n=e.toLowerCase();return!!(r.value.toLowerCase().includes(n)||typeof r.label=="string"&&r.label.toLowerCase().includes(n))}function sc({options:e=[],value:r,defaultValue:n="",placeholder:o,open:l,defaultOpen:a=!1,disabled:c=!1,allowClear:d=!1,autoFocus:f=!1,backfill:u=!1,defaultActiveFirstOption:h=!0,variant:g="outlined",status:m,filterOption:y=!0,notFoundContent:p=null,popupMatchSelectWidth:v=!0,onChange:k,onSearch:j,onSelect:b,onFocus:C,onBlur:x,onDropdownVisibleChange:w,onClear:M,prefix:R,suffix:S,className:B,style:I,classNames:T,styles:_}){const L=r!==void 0,[N,$]=s.useState(n),P=L?r:N,E=l!==void 0,[z,F]=s.useState(a),A=E?l:z,[D,W]=s.useState(-1),[V,Z]=s.useState(!1),[X,U]=s.useState(!1),[q,H]=s.useState(!1),re=s.useRef(null),oe=s.useRef(null),se=s.useRef(null),J=s.useRef(null),ie=s.useCallback(ke=>{L||$(ke),k?.(ke)},[L,k]),_e=s.useCallback(ke=>{E||F(ke),w?.(ke),ke?(U(!1),requestAnimationFrame(()=>{requestAnimationFrame(()=>{H(!0)})})):H(!1)},[E,w]),we=s.useMemo(()=>{if(y===!1)return e;const ke=typeof y=="function"?y:oc;return e.map(ge=>{if(ge.options){const me=ge.options.filter(Ve=>ke(P,Ve));return me.length===0?null:{...ge,options:me}}return ke(P,ge)?ge:null}).filter(Boolean)},[e,P,y]),je=s.useMemo(()=>nc(we),[we]),ae=je.length>0||p!==null,he=A&&ae&&!c;s.useEffect(()=>{if(h&&je.length>0){const ke=je.findIndex(ge=>!ge.disabled);W(ke>=0?ke:-1)}else W(-1)},[je,h]),s.useEffect(()=>{f&&oe.current&&oe.current.focus()},[f]),s.useEffect(()=>{if(!A)return;const ke=ge=>{re.current&&!re.current.contains(ge.target)&&_e(!1)};return document.addEventListener("mousedown",ke),()=>document.removeEventListener("mousedown",ke)},[A,_e]),s.useLayoutEffect(()=>{if(!A||!se.current||!re.current)return;const ke=se.current.getBoundingClientRect(),ge=re.current.getBoundingClientRect(),me=ge.top,Ve=window.innerHeight-ge.bottom;!X&&ke.bottom>window.innerHeight?me>Ve&&U(!0):X&&ke.top<0&&Ve>me&&U(!1)}),s.useEffect(()=>{if(!he||D<0)return;const ke=se.current;if(!ke)return;const ge=ke.querySelector(`[data-option-index="${D}"]`);if(ge){const me=ge.offsetTop,Ve=me+ge.offsetHeight;me<ke.scrollTop?ke.scrollTop=me:Ve>ke.scrollTop+ke.clientHeight&&(ke.scrollTop=Ve-ke.clientHeight)}},[D,he]);const fe=ke=>{const ge=ke.target.value;J.current=null,ie(ge),j?.(ge),A||_e(!0)},Se=ke=>{ke.disabled||(J.current=null,ie(ke.value),b?.(ke.value,ke),_e(!1),oe.current?.focus())},We=ke=>{Z(!0),C?.(ke),!A&&ae&&_e(!0)},Le=ke=>{const ge=ke.relatedTarget;re.current&&ge&&re.current.contains(ge)||(Z(!1),x?.(ke),J.current!==null&&(ie(J.current),J.current=null),_e(!1))},Te=ke=>{ke.stopPropagation(),J.current=null,ie(""),M?.(),oe.current?.focus()},Ie=ke=>{if(je.length===0)return;let ge=D;for(let me=0;me<je.length&&(ge=(ge+ke+je.length)%je.length,!!je[ge].disabled);me++);W(ge),u&&je[ge]&&(J.current=je[ge].value,L||$(je[ge].value),k?.(je[ge].value))},Re=ke=>{switch(ke.key){case"ArrowDown":ke.preventDefault(),A?Ie(1):_e(!0);break;case"ArrowUp":ke.preventDefault(),A&&Ie(-1);break;case"Enter":A&&D>=0&&je[D]&&!je[D].disabled&&(ke.preventDefault(),Se(je[D]));break;case"Escape":A&&(ke.preventDefault(),_e(!1));break}},O=be({position:"relative",display:"inline-block",width:"100%"},_?.root,I),K={outlined:{border:`1px solid ${i.colorBorder}`,backgroundColor:i.colorBg},filled:{border:"1px solid transparent",backgroundColor:i.colorBgMuted},borderless:{border:"1px solid transparent",backgroundColor:"transparent"}},te=m==="error"?i.colorError:m==="warning"?i.colorWarning:void 0,ne=m==="error"?i.colorErrorBg:m==="warning"?i.colorWarningBg:i.colorPrimaryLight,ce={width:"100%",minHeight:"2.75rem",padding:"0.375rem 0.75rem",paddingLeft:R?"2rem":"0.75rem",paddingRight:d&&P?S?"3.5rem":"2.25rem":S?"2rem":"0.75rem",fontSize:"1rem",fontFamily:"inherit",lineHeight:"1.5",borderRadius:"0.375rem",outline:"none",color:c?i.colorTextSubtle:te||i.colorText,cursor:c?"not-allowed":void 0,transition:"border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease",...K[g],...te?{borderColor:te}:{},...V&&!c?{borderColor:te||i.colorPrimary,boxShadow:`0 0 0 2px ${ne}`}:{},...c?{opacity:.6}:{}},ve=be(ce,_?.input),G={position:"absolute",left:0,zIndex:1050,width:(typeof v=="number"?v:void 0)||(v===!0?"100%":void 0),minWidth:v===!1?120:void 0,maxHeight:"min(16rem, 40vh)",overflowY:"auto",overscrollBehavior:"contain",backgroundColor:i.colorBg,border:`1px solid ${i.colorBorder}`,borderRadius:"0.5rem",boxShadow:i.shadowMd,padding:"0.25rem 0",opacity:q?1:0,transition:"opacity 0.15s ease-out, transform 0.15s ease-out",...X?{bottom:"100%",marginBottom:"0.25rem",transform:q?"translateY(0)":"translateY(6px)"}:{top:"100%",marginTop:"0.25rem",transform:q?"translateY(0)":"translateY(-6px)"}},le=be(G,_?.dropdown),pe={padding:"0.625rem 0.75rem",minHeight:"2.75rem",fontSize:"0.875rem",cursor:"pointer",transition:"background-color 0.15s ease",display:"flex",alignItems:"center",lineHeight:"1.375rem",boxSizing:"border-box"},Ee={position:"absolute",right:8,top:"50%",transform:"translateY(-50%)",display:"flex",alignItems:"center",gap:4,pointerEvents:"none"},Ue={display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,margin:-4,borderRadius:"50%",border:"none",backgroundColor:"transparent",color:i.colorTextMuted,cursor:"pointer",padding:0,pointerEvents:"auto",transition:"color 0.15s ease"};let Ye=0;const $e=ke=>{const ge=Ye++,me=ge===D,Ve={...pe,backgroundColor:me?i.colorBgMuted:void 0,color:ke.disabled?i.colorTextSubtle:i.colorText,cursor:ke.disabled?"not-allowed":"pointer",opacity:ke.disabled?.5:1,..._?.option};return t.jsx("div",{role:"option","aria-selected":me,"aria-disabled":ke.disabled,"data-option-index":ge,style:Ve,className:T?.option,onClick:()=>Se(ke),onMouseEnter:Ge=>{ke.disabled||(W(ge),Ge.currentTarget.style.backgroundColor=i.colorBgMuted)},onMouseLeave:Ge=>{!ke.disabled&&!me&&(Ge.currentTarget.style.backgroundColor="transparent")},children:ke.label??ke.value},ke.value)},Ze=()=>(Ye=0,je.length===0?p===null?null:t.jsx("div",{style:{padding:"0.5rem 0.75rem",fontSize:"0.875rem",color:i.colorTextSubtle,textAlign:"center"},children:p}):we.map(ke=>ke.options?t.jsxs("div",{children:[t.jsx("div",{style:{padding:"0.3125rem 0.75rem",fontSize:"0.75rem",color:i.colorTextSubtle,fontWeight:600,userSelect:"none"},children:ke.label??ke.value}),ke.options.map($e)]},`group-${ke.value}`):$e(ke)));return t.jsxs("div",{ref:re,style:O,className:xt(B,T?.root),children:[t.jsx("input",{ref:oe,type:"text",role:"combobox","aria-expanded":he,"aria-haspopup":"listbox","aria-autocomplete":"list",autoComplete:"off",value:P,placeholder:o,disabled:c,style:ve,className:T?.input,onChange:fe,onFocus:We,onBlur:Le,onKeyDown:Re}),R&&t.jsx("span",{style:{position:"absolute",left:10,top:"50%",transform:"translateY(-50%)",display:"flex",alignItems:"center",color:i.colorTextMuted,pointerEvents:"none"},children:R}),(S||d&&P&&!c)&&t.jsxs("span",{style:Ee,children:[d&&P&&!c&&t.jsx("button",{type:"button",style:Ue,onMouseDown:ke=>ke.preventDefault(),onClick:Te,onMouseEnter:ke=>{ke.currentTarget.style.color=i.colorText,ke.currentTarget.style.backgroundColor=i.colorBgMuted},onMouseLeave:ke=>{ke.currentTarget.style.color=i.colorTextMuted,ke.currentTarget.style.backgroundColor="transparent"},tabIndex:-1,"aria-label":"Clear",children:t.jsx(rc,{})}),S&&t.jsx("span",{style:{display:"flex",color:i.colorTextMuted},children:S})]}),he&&t.jsx("div",{ref:se,role:"listbox",style:le,className:T?.dropdown,onMouseDown:ke=>ke.preventDefault(),children:Ze()})]})}function ic(){return t.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"6 9 12 15 18 9"})})}function as(){return t.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"9 18 15 12 9 6"})})}function lc(){return t.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),t.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}function cs(){return t.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"20 6 9 17 4 12"})})}function us(){return t.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})})}function ac(){return t.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),t.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}function cc(){return t.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{animation:"j-nested-spin 1s linear infinite"},children:t.jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})})}function Dt(e,r){return r.value?e[r.value]:e.value}function Cr(e,r){return(r.label?e[r.label]:e.label)??Dt(e,r)}function $t(e,r){return r.children?e[r.children]:e.children}function xn(e,r){if(e.isLeaf===!0)return!1;const n=$t(e,r);return!!n&&n.length>0}function Kr(e,r,n){if(e.isLeaf===!0)return!1;const o=$t(e,r);return o&&o.length>0?!0:n}function Zr(e){return typeof e=="string"?e:typeof e=="number"?String(e):""}function tr(e,r,n){return e.find(o=>Dt(o,n)===r)}function Zt(e,r,n){const o=[];let l=e;for(const a of r){const c=tr(l,a,n);if(!c)break;o.push(c);const d=$t(c,n);if(d)l=d;else break}return o}function ds(e,r,n=[]){const o=[];for(const l of e){const a=[...n,l],c=$t(l,r);c&&c.length>0?o.push(...ds(c,r,a)):o.push(a)}return o}function uc(e,r,n){const o=e.toLowerCase();return r.some(l=>Zr(Cr(l,n)).toLowerCase().includes(o))}function hr(e,r){return e.length===r.length&&e.every((n,o)=>n===r[o])}function pr(e,r){return r.some(n=>hr(n,e))}function wr(e,r,n=[]){const o=Dt(e,r),l=[...n,o],a=$t(e,r);if(a&&a.length>0){const c=[];for(const d of a)c.push(...wr(d,r,l));return c}return[l]}function Wn(e,r,n,o){const l=[];let a=e;for(let c=0;c<o;c++){const d=r[c];if(d===void 0)break;l.push(d);const f=tr(a,d,n);if(f){const u=$t(f,n);u&&(a=u)}}return l}function nn(e,r,n,o,l,a){const c=Wn(a,n,l,r),d=$t(e,l);if(!d||d.length===0){const h=Dt(e,l);return pr([...c,h],o)?"checked":"unchecked"}const f=wr(e,l,c),u=f.filter(h=>pr(h,o)).length;return u===0?"unchecked":u===f.length?"checked":"indeterminate"}function dc(e,r,n){const o=[],l=new Set;function a(c,d){for(const f of c){const u=Dt(f,n),h=[...d,u],g=$t(f,n);if(g&&g.length>0){const m=wr(f,n,d);m.length>0&&m.every(p=>pr(p,e))?(o.push(h),m.forEach(p=>{const v=e.findIndex(k=>hr(k,p));v>=0&&l.add(v)})):a(g,h)}}}return a(r,[]),e.forEach((c,d)=>{l.has(d)||o.push(c)}),o}function fc({options:e=[],value:r,defaultValue:n,placeholder:o="Seleccionar",open:l,disabled:a=!1,allowClear:c=!0,expandTrigger:d="click",changeOnSelect:f=!1,showSearch:u=!1,variant:h="outlined",status:g,size:m="middle",suffixIcon:y,expandIcon:p,notFoundContent:v="Sin resultados",displayRender:k,fieldNames:j,placement:b="bottomLeft",multiple:C=!1,showCheckedStrategy:x="SHOW_CHILD",maxTagCount:w,maxTagPlaceholder:M,tagRender:R,loadData:S,prefix:B,popupRender:I,onChange:T,onDropdownVisibleChange:_,className:L,style:N,classNames:$,styles:P}){const E={label:j?.label??"label",value:j?.value??"value",children:j?.children??"children"},z=!!S,F=C?[]:n??[],A=r!==void 0,[D,W]=s.useState(F),V=C?[]:A?r:D,Z=C?n??[]:[],[X,U]=s.useState(Z),q=C?A?r:X:[],H=l!==void 0,[re,oe]=s.useState(!1),se=H?l:re,[J,ie]=s.useState([]),[_e,we]=s.useState(0),[je,ae]=s.useState([]),[he,fe]=s.useState(""),[Se,We]=s.useState(0),[Le,Te]=s.useState(!1),Ie=s.useRef(!1),Re=s.useRef("keyboard"),[O,K]=s.useState(!1),[te,ne]=s.useState(!1),ce=s.useRef(null),ve=s.useRef(null),De=s.useRef(null),G=s.useRef(null),le=s.useRef(null),pe=!!u&&he.length>0,Ee=s.useCallback((Me,Oe)=>{A||W(Me),T?.(Me,Oe)},[A,T]),Ue=s.useCallback((Me,Oe)=>{A||U(Me),T?.(Me,Oe)},[A,T]),Ye=b.startsWith("top"),$e=s.useCallback(Me=>{H||oe(Me),_?.(Me),Me?(K(Ye),requestAnimationFrame(()=>{requestAnimationFrame(()=>ne(!0))}),!C&&V.length>0?ie([...V]):C&&q.length>0?ie([...q[0]]):ie([]),fe(""),we(0),ae([])):ne(!1)},[H,_,V,q,C,Ye]);s.useLayoutEffect(()=>{if(!se||!ve.current||!ce.current)return;const Me=ve.current.getBoundingClientRect(),Oe=ce.current.getBoundingClientRect(),lt=Oe.top,st=window.innerHeight-Oe.bottom;!O&&Me.bottom>window.innerHeight?lt>st&&K(!0):O&&Me.top<0&&st>lt&&K(!1)});const Ze=s.useMemo(()=>C?[]:Zt(e,V,E),[e,V,E.label,E.value,E.children,C]),ke=s.useMemo(()=>Ze.map(Me=>Zr(Cr(Me,E))),[Ze,E.label]),ge=s.useMemo(()=>C||V.length===0?null:k?k(ke,Ze):ke.join(" / "),[C,V,ke,Ze,k]),me=s.useMemo(()=>!C||q.length===0?[]:x==="SHOW_PARENT"?dc(q,e,E):q,[C,q,x,e,E.label,E.value,E.children]),Ve=s.useMemo(()=>{const Me=[e];let Oe=e;for(const lt of J){const st=tr(Oe,lt,E);if(st){const ct=$t(st,E);if(ct&&ct.length>0)Me.push(ct),Oe=ct;else break}else break}return Me},[e,J,E.value,E.children]),Ge=typeof u=="object"?u:{},Pe=s.useMemo(()=>{if(!pe)return[];const Me=ds(e,E),Oe=Ge.filter?ct=>Ge.filter(he,ct):ct=>uc(he,ct,E),lt=Me.filter(Oe),st=Ge.limit!==void 0?Ge.limit:50;return st===!1?lt:lt.slice(0,st)},[pe,he,e,E.label,E.value,E.children,Ge.filter,Ge.limit]);s.useEffect(()=>{if(!se)return;const Me=Oe=>{ce.current&&!ce.current.contains(Oe.target)&&$e(!1)};return document.addEventListener("mousedown",Me),()=>document.removeEventListener("mousedown",Me)},[se,$e]),s.useEffect(()=>{se&&u&&G.current&&setTimeout(()=>G.current?.focus(),50)},[se,u]),s.useEffect(()=>()=>{le.current&&clearTimeout(le.current)},[]);const ot=()=>{a||$e(!se)},Fe=Me=>{a||(Me.key==="Enter"||Me.key===" "?(Me.preventDefault(),$e(!se)):Me.key==="Escape"&&se?(Me.preventDefault(),$e(!1)):se&&!pe&&kt(Me))},ye=(Me,Oe)=>{const lt=Dt(Oe,E);if(ie(st=>{const ct=st.slice(0,Me);return ct[Me]=lt,ct}),S){const st=$t(Oe,E);if(!st||st.length===0){const ct=[];let ut=e;for(let bt=0;bt<Me;bt++){const Bt=tr(ut,J[bt],E);if(Bt){ct.push(Bt);const _t=$t(Bt,E);_t&&(ut=_t)}}ct.push(Oe),S(ct)}}},Ne=Me=>{const Oe=Me.map(lt=>Dt(lt,E));Ee(Oe,Me),$e(!1),De.current?.focus()},Xe=s.useCallback((Me,Oe)=>{if(Oe.disabled||Oe.disableCheckbox)return;const lt=Wn(e,J,E,Me),st=Dt(Oe,E),ct=$t(Oe,E);let ut;ct&&ct.length>0?ut=wr(Oe,E,lt).filter(It=>{const xe=Zt(e,It,E),Qe=xe[xe.length-1];return Qe&&!Qe.disabled&&!Qe.disableCheckbox}):ut=[[...lt,st]];const bt=nn(Oe,Me,J,q,E,e);let Bt;if(bt==="checked")Bt=q.filter(It=>!ut.some(xe=>hr(It,xe)));else{const It=ut.filter(xe=>!pr(xe,q));Bt=[...q,...It]}const _t=Bt.map(It=>Zt(e,It,E));Ue(Bt,_t)},[e,J,E,q,Ue]),et=(Me,Oe)=>{if(Oe.disabled)return;const lt=Kr(Oe,E,z);if(C){lt&&ye(Me,Oe),Oe.disableCheckbox||Xe(Me,Oe);return}if(lt){if(ye(Me,Oe),f){const st=[];let ct=e;for(let bt=0;bt<Me;bt++){const Bt=tr(ct,J[bt],E);if(Bt){st.push(Bt);const _t=$t(Bt,E);_t&&(ct=_t)}}st.push(Oe);const ut=st.map(bt=>Dt(bt,E));Ee(ut,st)}}else{const st=[];let ct=e;for(let ut=0;ut<Me;ut++){const bt=tr(ct,J[ut],E);if(bt){st.push(bt);const Bt=$t(bt,E);Bt&&(ct=Bt)}}st.push(Oe),Ne(st)}},ht=(Me,Oe)=>{d!=="hover"||Oe.disabled||(le.current&&clearTimeout(le.current),le.current=window.setTimeout(()=>{Kr(Oe,E,z)&&ye(Me,Oe)},150))},yt=Me=>{if(C){const Oe=Me.map(ut=>Dt(ut,E)),lt=pr(Oe,q);let st;lt?st=q.filter(ut=>!hr(ut,Oe)):st=[...q,Oe];const ct=st.map(ut=>Zt(e,ut,E));Ue(st,ct)}else Ne(Me)},ft=Me=>{Me.stopPropagation(),C?Ue([],[]):Ee([],[]),ie([]),De.current?.focus()},Ct=Me=>{const Oe=Zt(e,Me,E),lt=Oe[Oe.length-1];if(lt){const ut=$t(lt,E);if(ut&&ut.length>0){const bt=Me.slice(0,-1),Bt=wr(lt,E,bt),_t=q.filter(xe=>!Bt.some(Qe=>hr(xe,Qe))),It=_t.map(xe=>Zt(e,xe,E));Ue(_t,It);return}}const st=q.filter(ut=>!hr(ut,Me)),ct=st.map(ut=>Zt(e,ut,E));Ue(st,ct)},kt=Me=>{const Oe=_e,lt=Ve[Oe];if(!lt)return;const st=je[Oe]??-1;switch(Me.key){case"ArrowDown":{Me.preventDefault();let ct=st;for(let ut=0;ut<lt.length&&(ct=(ct+1)%lt.length,!!lt[ct].disabled);ut++);ae(ut=>{const bt=[...ut];return bt[Oe]=ct,bt});break}case"ArrowUp":{Me.preventDefault();let ct=st<0?lt.length:st;for(let ut=0;ut<lt.length&&(ct=(ct-1+lt.length)%lt.length,!!lt[ct].disabled);ut++);ae(ut=>{const bt=[...ut];return bt[Oe]=ct,bt});break}case"ArrowRight":{if(Me.preventDefault(),st>=0&&st<lt.length){const ct=lt[st];Kr(ct,E,z)&&!ct.disabled&&(ye(Oe,ct),we(Oe+1),ae(ut=>{const bt=[...ut];return bt[Oe+1]=0,bt}))}break}case"ArrowLeft":{Me.preventDefault(),Oe>0&&we(Oe-1);break}case"Enter":{Me.preventDefault(),st>=0&&st<lt.length&&et(Oe,lt[st]);break}}},St=Me=>{if(Me.key==="Escape"){Me.preventDefault(),$e(!1),De.current?.focus();return}if(!(!pe||Pe.length===0))switch(Me.key){case"ArrowDown":Me.preventDefault(),We(Oe=>Math.min(Oe+1,Pe.length-1));break;case"ArrowUp":Me.preventDefault(),We(Oe=>Math.max(Oe-1,0));break;case"Enter":Me.preventDefault(),Pe[Se]&&yt(Pe[Se]);break}};s.useEffect(()=>{We(0)},[Pe.length]);const de={large:{height:"2.5rem",fontSize:"1rem",padding:"0.5rem 0.75rem",tagLineHeight:"1.75rem"},middle:{height:"2.25rem",fontSize:"0.875rem",padding:"0.375rem 0.75rem",tagLineHeight:"1.5rem"},small:{height:"1.75rem",fontSize:"0.875rem",padding:"0.125rem 0.5rem",tagLineHeight:"1rem"}}[m],He=be({position:"relative",display:"inline-block",width:"100%"},P?.root,N),qe={outlined:{border:`1px solid ${i.colorBorder}`,backgroundColor:i.colorBg},filled:{border:"1px solid transparent",backgroundColor:i.colorBgMuted},borderless:{border:"1px solid transparent",backgroundColor:"transparent"}},nt=g==="error"?i.colorError:g==="warning"?i.colorWarning:void 0,Je=g==="error"?i.colorErrorBg:g==="warning"?i.colorWarningBg:i.colorPrimaryLight,gt=C?q.length>0:V.length>0,Tt={display:"flex",alignItems:C?"flex-start":"center",flexWrap:C?"wrap":void 0,width:"100%",height:C?"auto":de.height,minHeight:C?de.height:void 0,padding:de.padding,paddingRight:"2rem",fontSize:de.fontSize,fontFamily:"inherit",borderRadius:"0.375rem",cursor:a?"not-allowed":"pointer",userSelect:"none",outline:"none",transition:"border-color 0.2s ease, box-shadow 0.2s ease",color:a?i.colorTextSubtle:nt||i.colorText,...qe[h],borderColor:Le&&!a?nt||i.colorPrimary:nt||(h==="outlined"?i.colorBorder:"transparent"),boxShadow:Le&&!a&&Re.current==="keyboard"?`0 0 0 2px ${Je}`:"none",...a?{opacity:.6}:{}},Et=be(Tt,P?.selector),ue=b.endsWith("Right"),Q={position:"absolute",zIndex:1050,left:ue?void 0:0,right:ue?0:void 0,opacity:te?1:0,transition:"opacity 0.15s ease-out, transform 0.15s ease-out",backgroundColor:i.colorBg,border:`1px solid ${i.colorBorder}`,borderRadius:"0.5rem",boxShadow:i.shadowMd,overflow:"hidden",...O?{bottom:"100%",marginBottom:"0.25rem",transform:te?"translateY(0)":"translateY(6px)"}:{top:"100%",marginTop:"0.25rem",transform:te?"translateY(0)":"translateY(-6px)"}},ee=be(Q,P?.dropdown),Be={minWidth:"7.5rem",maxHeight:"16rem",overflowY:"auto",padding:"0.25rem 0"},ze={display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0.375rem 0.75rem",fontSize:"0.875rem",cursor:"pointer",transition:"background-color 0.15s ease",lineHeight:"1.375rem",whiteSpace:"nowrap"},Ke={position:"absolute",right:"0.5rem",top:C?"0.625rem":"50%",transform:C?void 0:"translateY(-50%)",display:"flex",alignItems:"center",gap:"0.25rem",pointerEvents:"none"},rt={display:"flex",alignItems:"center",justifyContent:"center",width:"1.25rem",height:"1.25rem",borderRadius:"50%",border:"none",backgroundColor:"transparent",color:i.colorTextMuted,cursor:"pointer",padding:0,pointerEvents:"auto",transition:"color 0.15s ease, background-color 0.15s ease"},pt={width:"100%",padding:"0.375rem 0.75rem",fontSize:"0.875rem",fontFamily:"inherit",border:"none",borderBottom:`1px solid ${i.colorBorder}`,outline:"none",backgroundColor:"transparent",color:i.colorText},Lt={display:"inline-flex",alignItems:"center",padding:"1px 0.5rem",fontSize:"0.75rem",lineHeight:"1.25rem",backgroundColor:i.colorBgMuted,borderRadius:"0.25rem",maxWidth:"12.5rem",border:`1px solid ${i.colorBorder}`},Ae=(Me,Oe)=>{const lt={display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1rem",height:"1rem",borderRadius:"0.1875rem",border:`1.5px solid ${Me!=="unchecked"?i.colorPrimary:i.colorBorder}`,backgroundColor:Me!=="unchecked"?i.colorPrimary:"transparent",color:"#fff",marginRight:"0.5rem",flexShrink:0,transition:"all 0.15s ease",cursor:Oe?"not-allowed":"pointer",opacity:Oe?.5:1};return t.jsxs("span",{style:lt,children:[Me==="checked"&&t.jsx(cs,{}),Me==="indeterminate"&&t.jsx(us,{})]})},Ce=()=>{if(me.length===0)return t.jsx("span",{style:{color:i.colorTextSubtle,flex:1,lineHeight:de.tagLineHeight},children:o});const Me=w!==void 0?Math.min(w,me.length):me.length,Oe=me.slice(0,Me),lt=me.slice(Me);return t.jsxs("span",{style:{display:"flex",flexWrap:"wrap",gap:"0.25rem",flex:1,overflow:"hidden",alignItems:"center"},children:[Oe.map((st,ct)=>{const Bt=Zt(e,st,E).map(xe=>Zr(Cr(xe,E))).join(" / "),_t=!a,It=()=>Ct(st);return R?t.jsx("span",{children:R({label:Bt,value:st,closable:_t,onClose:It})},ct):t.jsxs("span",{style:Lt,children:[t.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Bt}),_t&&t.jsx("span",{style:{display:"inline-flex",cursor:"pointer",marginLeft:"0.25rem",color:i.colorTextMuted},onClick:xe=>{xe.stopPropagation(),It()},onMouseDown:xe=>xe.preventDefault(),children:t.jsx(ac,{})})]},ct)}),lt.length>0&&t.jsx("span",{style:Lt,children:typeof M=="function"?M(lt):M??`+${lt.length}`})]})},tt=(Me,Oe,lt)=>{const st=Dt(Me,E),ct=Cr(Me,E),ut=Kr(Me,E,z),bt=!C&&V[Oe]===st,Bt=_e===Oe&&je[Oe]===lt,_t={...ze,backgroundColor:Bt?i.colorBgMuted:bt?i.colorPrimaryBg:void 0,color:Me.disabled?i.colorTextSubtle:bt?i.colorPrimary:i.colorText,fontWeight:bt?600:void 0,cursor:Me.disabled?"not-allowed":"pointer",opacity:Me.disabled?.5:1,...P?.option};return t.jsxs("div",{role:"option","aria-selected":bt,"aria-disabled":Me.disabled,style:_t,className:$?.option,onClick:()=>et(Oe,Me),onMouseEnter:It=>{Me.disabled||(!bt&&!Bt&&(It.currentTarget.style.backgroundColor=i.colorBgMuted),ht(Oe,Me))},onMouseLeave:It=>{!Me.disabled&&!bt&&!Bt&&(It.currentTarget.style.backgroundColor="transparent")},children:[C&&Ae(nn(Me,Oe,J,q,E,e),!!Me.disabled||!!Me.disableCheckbox),t.jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis"},children:ct}),ut&&t.jsx("span",{style:{display:"flex",marginLeft:"0.5rem",color:i.colorTextMuted,flexShrink:0},children:Me.loading?t.jsx(cc,{}):p??t.jsx(as,{})})]},String(st))},dt=pe?Pe.length===0?t.jsx("div",{style:{padding:"0.5rem 0.75rem",fontSize:"0.875rem",color:i.colorTextSubtle,textAlign:"center"},children:v}):t.jsx("div",{style:{...Be,...P?.menu},className:$?.menu,children:Pe.map((Me,Oe)=>{const lt=Oe===Se,st=Me.map(_t=>Zr(Cr(_t,E))),ct=Ge.render?Ge.render(he,Me):gc(st.join(" / "),he),ut=Me.map(_t=>Dt(_t,E)),bt=C&&pr(ut,q),Bt={...ze,backgroundColor:lt?i.colorBgMuted:void 0,...P?.option};return t.jsxs("div",{role:"option","aria-selected":lt,style:Bt,className:$?.option,onClick:()=>yt(Me),onMouseEnter:_t=>{We(Oe),lt||(_t.currentTarget.style.backgroundColor=i.colorBgMuted)},onMouseLeave:_t=>{lt||(_t.currentTarget.style.backgroundColor="transparent")},children:[C&&Ae(bt?"checked":"unchecked",!1),t.jsx("span",{style:{flex:1},children:ct})]},Oe)})}):t.jsx("div",{style:{display:"flex"},children:Ve.map((Me,Oe)=>{const lt=Oe===Ve.length-1,st={...Be,borderRight:lt?void 0:`1px solid ${i.colorBorder}`,...P?.menu};return t.jsx("div",{style:st,className:$?.menu,children:Me.map((ct,ut)=>tt(ct,Oe,ut))},Oe)})});return t.jsxs("div",{ref:ce,style:He,className:xt(L,$?.root),children:[t.jsx("style",{children:"@keyframes j-nested-spin { to { transform: rotate(360deg); } }"}),t.jsxs("div",{ref:De,role:"combobox","aria-expanded":se,"aria-haspopup":"listbox",tabIndex:a?-1:0,style:Et,className:$?.selector,onClick:ot,onKeyDown:Fe,onMouseDown:()=>{Ie.current=!0},onFocus:()=>{Re.current=Ie.current?"mouse":"keyboard",Ie.current=!1,Te(!0)},onBlur:()=>Te(!1),children:[B&&t.jsx("span",{style:{display:"flex",alignItems:"center",marginRight:"0.5rem",flexShrink:0},children:B}),C?Ce():ge?t.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1},children:ge}):t.jsx("span",{style:{color:i.colorTextSubtle,flex:1},children:o})]}),t.jsxs("span",{style:Ke,children:[c&&gt&&!a&&t.jsx("button",{type:"button",style:rt,onMouseDown:Me=>Me.preventDefault(),onClick:ft,onMouseEnter:Me=>{Me.currentTarget.style.color=i.colorText,Me.currentTarget.style.backgroundColor=i.colorBgMuted},onMouseLeave:Me=>{Me.currentTarget.style.color=i.colorTextMuted,Me.currentTarget.style.backgroundColor="transparent"},tabIndex:-1,"aria-label":"Clear",children:t.jsx(lc,{})}),t.jsx("span",{style:{display:"flex",color:i.colorTextMuted,pointerEvents:"none"},children:y??t.jsx(ic,{})})]}),se&&t.jsxs("div",{ref:ve,style:ee,className:$?.dropdown,onMouseDown:Me=>Me.preventDefault(),children:[u&&t.jsx("input",{ref:G,type:"text",placeholder:"Buscar...",value:he,onChange:Me=>fe(Me.target.value),onKeyDown:St,style:pt,autoComplete:"off"}),I?I(dt):dt]})]})}function hc({options:e=[],value:r,defaultValue:n,onChange:o,multiple:l=!1,expandTrigger:a="click",changeOnSelect:c=!1,fieldNames:d,expandIcon:f,disabled:u=!1,className:h,style:g,classNames:m,styles:y}){const p={label:d?.label??"label",value:d?.value??"value",children:d?.children??"children"},v=r!==void 0,k=l?[]:n??[],[j,b]=s.useState(k),C=l?[]:v?r:j,x=l?n??[]:[],[w,M]=s.useState(x),R=l?v?r:w:[],[S,B]=s.useState(!l&&C.length>0?[...C]:[]),I=-1,T=[],_=s.useRef(null);s.useEffect(()=>()=>{_.current&&clearTimeout(_.current)},[]);const L=s.useMemo(()=>{const X=[e];let U=e;for(const q of S){const H=tr(U,q,p);if(H){const re=$t(H,p);if(re&&re.length>0)X.push(re),U=re;else break}else break}return X},[e,S,p.value,p.children]),N=s.useCallback((X,U)=>{v||b(X),o?.(X,U)},[v,o]),$=s.useCallback((X,U)=>{v||M(X),o?.(X,U)},[v,o]),P=(X,U)=>{const q=Dt(U,p);B(H=>{const re=H.slice(0,X);return re[X]=q,re})},E=s.useCallback((X,U)=>{if(U.disabled||U.disableCheckbox)return;const q=Wn(e,S,p,X),H=Dt(U,p),re=$t(U,p);let oe;re&&re.length>0?oe=wr(U,p,q).filter(_e=>{const we=Zt(e,_e,p),je=we[we.length-1];return je&&!je.disabled&&!je.disableCheckbox}):oe=[[...q,H]];const se=nn(U,X,S,R,p,e);let J;if(se==="checked")J=R.filter(_e=>!oe.some(we=>hr(_e,we)));else{const _e=oe.filter(we=>!pr(we,R));J=[...R,..._e]}const ie=J.map(_e=>Zt(e,_e,p));$(J,ie)},[e,S,p,R,$]),z=(X,U)=>{if(u||U.disabled)return;const q=xn(U,p);if(l){q&&P(X,U),U.disableCheckbox||E(X,U);return}if(q){if(P(X,U),c){const H=[];let re=e;for(let se=0;se<X;se++){const J=tr(re,S[se],p);if(J){H.push(J);const ie=$t(J,p);ie&&(re=ie)}}H.push(U);const oe=H.map(se=>Dt(se,p));N(oe,H)}}else{const H=[];let re=e;for(let se=0;se<X;se++){const J=tr(re,S[se],p);if(J){H.push(J);const ie=$t(J,p);ie&&(re=ie)}}H.push(U);const oe=H.map(se=>Dt(se,p));N(oe,H)}},F=(X,U)=>{a!=="hover"||u||U.disabled||(_.current&&clearTimeout(_.current),_.current=window.setTimeout(()=>{xn(U,p)&&P(X,U)},150))},A=(X,U)=>{const q={display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1rem",height:"1rem",borderRadius:"0.1875rem",border:`1.5px solid ${X!=="unchecked"?i.colorPrimary:i.colorBorder}`,backgroundColor:X!=="unchecked"?i.colorPrimary:"transparent",color:"#fff",marginRight:"0.5rem",flexShrink:0,transition:"all 0.15s ease",cursor:U?"not-allowed":"pointer",opacity:U?.5:1};return t.jsxs("span",{style:q,children:[X==="checked"&&t.jsx(cs,{}),X==="indeterminate"&&t.jsx(us,{})]})},D={minWidth:"7.5rem",maxHeight:"16rem",overflowY:"auto",padding:"0.25rem 0"},W={display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0.375rem 0.75rem",fontSize:"0.875rem",cursor:u?"not-allowed":"pointer",transition:"background-color 0.15s ease",lineHeight:"1.375rem",whiteSpace:"nowrap"},V={display:"inline-flex",backgroundColor:i.colorBg,border:`1px solid ${i.colorBorder}`,borderRadius:"0.5rem",overflow:"hidden",...g},Z=(X,U,q)=>{const H=Dt(X,p),re=Cr(X,p),oe=xn(X,p),se=!l&&C[U]===H,J=I===U&&T[U]===q,ie=u||!!X.disabled,_e={...W,backgroundColor:J?i.colorBgMuted:se?i.colorPrimaryBg:void 0,color:ie?i.colorTextSubtle:se?i.colorPrimary:i.colorText,fontWeight:se?600:void 0,cursor:ie?"not-allowed":"pointer",opacity:ie?.5:1,...y?.option};return t.jsxs("div",{role:"option","aria-selected":se,"aria-disabled":ie,style:_e,className:m?.option,onClick:()=>z(U,X),onMouseEnter:we=>{ie||(!se&&!J&&(we.currentTarget.style.backgroundColor=i.colorBgMuted),F(U,X))},onMouseLeave:we=>{!ie&&!se&&!J&&(we.currentTarget.style.backgroundColor="transparent")},children:[l&&A(nn(X,U,S,R,p,e),ie||!!X.disableCheckbox),t.jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis"},children:re}),oe&&t.jsx("span",{style:{display:"flex",marginLeft:"0.5rem",color:i.colorTextMuted,flexShrink:0},children:f??t.jsx(as,{})})]},String(H))};return t.jsx("div",{style:be(V,y?.root),className:xt(h,m?.root),children:L.map((X,U)=>{const q=U===L.length-1,H={...D,borderRight:q?void 0:`1px solid ${i.colorBorder}`,...y?.menu};return t.jsx("div",{style:H,className:m?.menu,children:X.map((re,oe)=>Z(re,U,oe))},U)})})}const pc=Object.assign(fc,{Panel:hc,SHOW_PARENT:"SHOW_PARENT",SHOW_CHILD:"SHOW_CHILD"});function gc(e,r){if(!r)return e;const n=e.toLowerCase().indexOf(r.toLowerCase());return n===-1?e:t.jsxs(t.Fragment,{children:[e.slice(0,n),t.jsx("strong",{style:{color:i.colorPrimary},children:e.slice(n,n+r.length)}),e.slice(n+r.length)]})}function mc(){return t.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"2 5.5 4 7.5 8 3"})})}function xc(){return t.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("line",{x1:"2.5",y1:"5",x2:"7.5",y2:"5"})})}const fs=s.createContext(null);function hs({checked:e,defaultChecked:r=!1,disabled:n=!1,indeterminate:o=!1,autoFocus:l=!1,onChange:a,value:c,children:d,id:f,name:u,tabIndex:h,className:g,style:m,classNames:y,styles:p}){const v=s.useRef(null),k=s.useRef(!1),j=s.useRef("keyboard"),b=s.useContext(fs),C=b!==null,x=e!==void 0,[w,M]=s.useState(r);let R,S,B;C?(R=c!==void 0&&b.value.includes(c),S=n||b.disabled,B=b.name||u):(R=x?e:w,S=n,B=u);const[I,T]=s.useState(!1),_=R||o;s.useEffect(()=>{v.current&&(v.current.indeterminate=o)},[o]),s.useEffect(()=>{l&&v.current&&v.current.focus()},[]);const L=$=>{if(!S)if(C&&c!==void 0)b.toggleValue(c);else{const P=$.target.checked;x||M(P),a?.({target:{checked:P,value:c},nativeEvent:$.nativeEvent})}},N=Y("ino-checkbox",{"ino-checkbox--active":_,"ino-checkbox--disabled":S,"ino-checkbox--focused":I&&j.current==="keyboard"},g,y?.root);return t.jsxs("label",{className:N,style:{...p?.root,...m},onMouseDown:()=>{k.current=!0},children:[t.jsxs("span",{className:Y("ino-checkbox__box",y?.checkbox),style:p?.checkbox,children:[t.jsx("input",{ref:v,type:"checkbox",id:f,name:B,checked:R,disabled:S,tabIndex:h,onChange:L,onFocus:()=>{j.current=k.current?"mouse":"keyboard",k.current=!1,T(!0)},onBlur:()=>T(!1),className:"ino-checkbox__input",value:c!==void 0?String(c):void 0}),_&&t.jsx("span",{className:Y("ino-checkbox__indicator",y?.indicator),style:p?.indicator,children:o?t.jsx(xc,{}):t.jsx(mc,{})})]}),d!=null&&t.jsx("span",{className:Y("ino-checkbox__label",y?.label),style:p?.label,children:d})]})}function yc({options:e,value:r,defaultValue:n=[],disabled:o=!1,name:l,onChange:a,children:c,className:d,style:f,classNames:u,styles:h}){const g=r!==void 0,[m,y]=s.useState(n),p=g?r:m,v=s.useCallback(b=>{const C=p.includes(b)?p.filter(x=>x!==b):[...p,b];g||y(C),a?.(C)},[p,g,a]),k={value:p,disabled:o,name:l,toggleValue:v},j=e?.map(b=>typeof b=="string"||typeof b=="number"?{label:String(b),value:b}:b);return t.jsx(fs.Provider,{value:k,children:t.jsx("div",{role:"group",className:Y("ino-checkbox-group",d,u?.root),style:{...h?.root,...f},children:j?j.map(b=>t.jsx(hs,{value:b.value,disabled:b.disabled,className:b.className,style:b.style,children:b.label},String(b.value))):c})})}const Er=Object.assign(hs,{Group:yc});function ps(){return t.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[t.jsx("line",{x1:"3",y1:"3",x2:"9",y2:"9"}),t.jsx("line",{x1:"9",y1:"3",x2:"3",y2:"9"})]})}function Wt(e,r,n){return Math.max(r,Math.min(n,e))}function gr(e,r,n){const o=r/100,l=n/100,a=d=>(d+e/60)%6,c=d=>l*(1-o*Math.max(0,Math.min(a(d),4-a(d),1)));return{r:Math.round(c(5)*255),g:Math.round(c(3)*255),b:Math.round(c(1)*255)}}function Ir(e,r,n){const o=e/255,l=r/255,a=n/255,c=Math.max(o,l,a),d=Math.min(o,l,a),f=c-d;let u=0;if(f!==0)switch(c){case o:u=((l-a)/f+(l<a?6:0))*60;break;case l:u=((a-o)/f+2)*60;break;case a:u=((o-l)/f+4)*60;break}return{h:Math.round(u),s:Math.round(c===0?0:f/c*100),b:Math.round(c*100)}}function Tn(e){let r=e.replace("#","");return r.length===3&&(r=r[0]+r[0]+r[1]+r[1]+r[2]+r[2]),r.length===4&&(r=r[0]+r[0]+r[1]+r[1]+r[2]+r[2]+r[3]+r[3]),{r:parseInt(r.slice(0,2),16)||0,g:parseInt(r.slice(2,4),16)||0,b:parseInt(r.slice(4,6),16)||0,a:r.length===8?Math.round(parseInt(r.slice(6,8),16)/255*100)/100:1}}function cr(e){const{r,g:n,b:o}=gr(e.h,e.s,e.b),l="#"+[r,n,o].map(a=>a.toString(16).padStart(2,"0")).join("");return e.a<1?l+Math.round(e.a*255).toString(16).padStart(2,"0"):l}function bc(e){const{r,g:n,b:o}=gr(e.h,e.s,e.b);return e.a<1?`rgba(${r}, ${n}, ${o}, ${Math.round(e.a*100)/100})`:`rgb(${r}, ${n}, ${o})`}function vc(e){return e.a<1?`hsba(${Math.round(e.h)}, ${Math.round(e.s)}%, ${Math.round(e.b)}%, ${Math.round(e.a*100)/100})`:`hsb(${Math.round(e.h)}, ${Math.round(e.s)}%, ${Math.round(e.b)}%)`}function Ur(e){return{h:e.h,s:e.s,b:e.b,a:e.a,toHexString(){return cr(this)},toRgbString(){return bc(this)},toHsbString(){return vc(this)},toRgb(){return{...gr(this.h,this.s,this.b),a:this.a}},toHsb(){return{h:this.h,s:this.s,b:this.b,a:this.a}}}}function lr(e){if(!e)return{h:0,s:100,b:100,a:1};if(typeof e=="object"&&"h"in e)return{h:e.h,s:e.s,b:e.b,a:e.a};const r=String(e).trim();if(r.startsWith("#")){const l=Tn(r);return{...Ir(l.r,l.g,l.b),a:l.a}}const n=r.match(/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+))?\s*\)/);if(n)return{...Ir(+n[1],+n[2],+n[3]),a:n[4]!==void 0?parseFloat(n[4]):1};const o=r.match(/hsba?\(\s*(\d+)\s*,\s*(\d+)%?\s*,\s*(\d+)%?\s*(?:,\s*([\d.]+))?\s*\)/);return o?{h:+o[1],s:+o[2],b:+o[3],a:o[4]!==void 0?parseFloat(o[4]):1}:/^[0-9a-f]{3,8}$/i.test(r)?lr("#"+r):{h:0,s:100,b:100,a:1}}function Cc(e,r){return e.h===r.h&&e.s===r.s&&e.b===r.b&&e.a===r.a}function yn(e){return Array.isArray(e)&&e.length>0&&typeof e[0]=="object"&&e[0]!==null&&"percent"in e[0]}function lo(e){return e.map(r=>({color:lr(r.color),percent:r.percent}))}function dr(e,r){const o=[...e].sort((l,a)=>l.percent-a.percent).map(l=>`${cr(l.color)} ${l.percent}%`).join(", ");return`linear-gradient(${r}deg, ${o})`}function xr(e){return e.map(r=>({color:cr(r.color),percent:r.percent}))}function kc(e,r){const n=[...e].sort((c,d)=>c.percent-d.percent);if(n.length===0)return{h:0,s:100,b:100,a:1};if(r<=n[0].percent)return{...n[0].color};if(r>=n[n.length-1].percent)return{...n[n.length-1].color};let o=n[0],l=n[n.length-1];for(let c=0;c<n.length-1;c++)if(r>=n[c].percent&&r<=n[c+1].percent){o=n[c],l=n[c+1];break}const a=l.percent===o.percent?0:(r-o.percent)/(l.percent-o.percent);return{h:Math.round(o.color.h+(l.color.h-o.color.h)*a),s:Math.round(o.color.s+(l.color.s-o.color.s)*a),b:Math.round(o.color.b+(l.color.b-o.color.b)*a),a:Math.round((o.color.a+(l.color.a-o.color.a)*a)*100)/100}}function Hn(e,r,n){const o=s.useRef(r),l=s.useRef(n);o.current=r,l.current=n;const a=s.useRef(!1);return s.useEffect(()=>{const c=f=>{if(!a.current||!e.current)return;f.preventDefault();const u=e.current.getBoundingClientRect();o.current(Wt((f.clientX-u.left)/u.width,0,1),Wt((f.clientY-u.top)/u.height,0,1))},d=()=>{a.current&&(a.current=!1,l.current())};return document.addEventListener("mousemove",c),document.addEventListener("mouseup",d),()=>{document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",d)}},[e]),c=>{if(c.preventDefault(),a.current=!0,!e.current)return;const d=e.current.getBoundingClientRect();o.current(Wt((c.clientX-d.left)/d.width,0,1),Wt((c.clientY-d.top)/d.height,0,1))}}function wc({hue:e,saturation:r,brightness:n,onChange:o,onDragEnd:l}){const a=s.useRef(null),c=Hn(a,(f,u)=>o(Math.round(f*100),Math.round((1-u)*100)),l),d=`hsl(${e}, 100%, 50%)`;return t.jsx("div",{ref:a,onMouseDown:c,style:{position:"relative",width:"100%",height:150,borderRadius:4,cursor:"crosshair",overflow:"hidden",background:`linear-gradient(to bottom, transparent 0%, #000 100%), linear-gradient(to right, #fff 0%, ${d} 100%)`},children:t.jsx("div",{style:{position:"absolute",left:`${r}%`,top:`${100-n}%`,width:12,height:12,borderRadius:"50%",border:"2px solid #fff",boxShadow:"0 0 2px rgba(0,0,0,0.4)",transform:"translate(-50%, -50%)",pointerEvents:"none"}})})}function jc({hue:e,onChange:r,onDragEnd:n}){const o=s.useRef(null),l=Hn(o,a=>r(Math.round(a*360)),n);return t.jsx("div",{ref:o,onMouseDown:l,style:{position:"relative",width:"100%",height:10,borderRadius:5,cursor:"pointer",background:"linear-gradient(to right, hsl(0,100%,50%), hsl(60,100%,50%), hsl(120,100%,50%), hsl(180,100%,50%), hsl(240,100%,50%), hsl(300,100%,50%), hsl(360,100%,50%))"},children:t.jsx("div",{style:{position:"absolute",left:`${e/360*100}%`,top:"50%",width:12,height:12,borderRadius:"50%",border:"2px solid #fff",boxShadow:"0 0 2px rgba(0,0,0,0.3)",transform:"translate(-50%, -50%)",pointerEvents:"none",backgroundColor:`hsl(${e}, 100%, 50%)`}})})}function Sc({color:e,alpha:r,onChange:n,onDragEnd:o}){const l=s.useRef(null),a=Hn(l,g=>n(Math.round(g*100)/100),o),{r:c,g:d,b:f}=gr(e.h,e.s,e.b),u=`rgb(${c}, ${d}, ${f})`,h=["linear-gradient(45deg, #ccc 25%, transparent 25%)","linear-gradient(-45deg, #ccc 25%, transparent 25%)","linear-gradient(45deg, transparent 75%, #ccc 75%)","linear-gradient(-45deg, transparent 75%, #ccc 75%)"].join(", ");return t.jsxs("div",{style:{position:"relative",width:"100%",height:10,borderRadius:5},children:[t.jsx("div",{style:{position:"absolute",inset:0,borderRadius:5,backgroundImage:h,backgroundSize:"8px 8px",backgroundPosition:"0 0, 0 4px, 4px -4px, -4px 0"}}),t.jsx("div",{ref:l,onMouseDown:a,style:{position:"absolute",inset:0,borderRadius:5,cursor:"pointer",background:`linear-gradient(to right, transparent 0%, ${u} 100%)`},children:t.jsx("div",{style:{position:"absolute",left:`${r*100}%`,top:"50%",width:12,height:12,borderRadius:"50%",border:"2px solid #fff",boxShadow:"0 0 2px rgba(0,0,0,0.3)",transform:"translate(-50%, -50%)",pointerEvents:"none",backgroundColor:u}})})]})}function Mc({color:e,format:r,disabledAlpha:n,onColorChange:o,onFormatChange:l}){const[a,c]=s.useState(cr(e).toUpperCase()),d=s.useRef(e);Cc(d.current,e)||(d.current=e,c(cr(e).toUpperCase()));const f=["hex","rgb","hsb"],u=()=>{let x=a.startsWith("#")?a:"#"+a;if(/^#[0-9a-f]{6}$/i.test(x)){const w=Tn(x),M=Ir(w.r,w.g,w.b);o({...M,a:e.a})}else if(/^#[0-9a-f]{8}$/i.test(x)){const w=Tn(x),M=Ir(w.r,w.g,w.b);o({...M,a:w.a})}else c(cr(e).toUpperCase())},{r:h,g,b:m}=gr(e.h,e.s,e.b),y=(x,w)=>{if(isNaN(w))return;const M=x==="r"?Wt(w,0,255):h,R=x==="g"?Wt(w,0,255):g,S=x==="b"?Wt(w,0,255):m,B=Ir(M,R,S);o({...B,a:e.a})},p=(x,w)=>{isNaN(w)||o({h:x==="h"?Wt(w,0,360):e.h,s:x==="s"?Wt(w,0,100):e.s,b:x==="b"?Wt(w,0,100):e.b,a:e.a})},v=x=>{isNaN(x)||o({...e,a:Wt(x,0,100)/100})},[k,j]=s.useState(!1),b=s.useRef(null);s.useEffect(()=>{if(!k)return;const x=w=>{b.current&&!b.current.contains(w.target)&&j(!1)};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[k]);const C={height:"1.5rem",border:`1px solid ${i.colorBorder}`,borderRadius:"0.25rem",padding:"0 0.25rem",fontSize:"0.75rem",fontFamily:"monospace",textAlign:"center",outline:"none",color:i.colorText,backgroundColor:"transparent",flex:1,minWidth:0};return t.jsxs("div",{style:{display:"flex",gap:"0.25rem",alignItems:"center"},children:[t.jsxs("div",{ref:b,style:{position:"relative",flexShrink:0},children:[t.jsxs("button",{type:"button",onClick:()=>j(!k),style:{height:"1.5rem",padding:"0 0.25rem 0 0.375rem",border:`1px solid ${i.colorBorder}`,borderRadius:"0.25rem",backgroundColor:"transparent",color:i.colorText,cursor:"pointer",fontSize:"0.6875rem",fontWeight:600,display:"flex",alignItems:"center",gap:"0.125rem",fontFamily:"inherit",outline:"none",transition:"border-color 0.15s ease"},onMouseEnter:x=>{x.currentTarget.style.borderColor=i.colorBorderHover},onMouseLeave:x=>{x.currentTarget.style.borderColor=i.colorBorder},children:[r.toUpperCase(),t.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",style:{transform:k?"rotate(180deg)":void 0,transition:"transform 0.15s ease"},children:t.jsx("polyline",{points:"3 4 5 6 7 4"})})]}),k&&t.jsx("div",{style:{position:"absolute",top:"100%",left:0,marginTop:"0.125rem",zIndex:10,minWidth:"100%",padding:"0.125rem",borderRadius:"0.375rem",border:`1px solid ${i.colorBorder}`,backgroundColor:i.colorBg,boxShadow:"0 2px 8px rgba(0,0,0,0.15)"},children:f.map(x=>t.jsx("button",{type:"button",onClick:()=>{l(x),j(!1)},onMouseEnter:w=>{w.currentTarget.style.backgroundColor=i.colorBgMuted},onMouseLeave:w=>{w.currentTarget.style.backgroundColor="transparent"},style:{display:"block",width:"100%",padding:"0.25rem 0.5rem",border:"none",borderRadius:"0.25rem",backgroundColor:"transparent",color:x===r?i.colorPrimary:i.colorText,cursor:"pointer",fontSize:"0.6875rem",fontWeight:x===r?700:500,fontFamily:"inherit",textAlign:"left",transition:"background-color 0.1s ease"},children:x.toUpperCase()},x))})]}),r==="hex"&&t.jsx("input",{style:{...C,fontFamily:"monospace"},value:a,onChange:x=>c(x.target.value),onBlur:u,onKeyDown:x=>{x.key==="Enter"&&u()}}),r==="rgb"&&t.jsxs(t.Fragment,{children:[t.jsx("input",{style:C,inputMode:"numeric",value:h,onChange:x=>{const w=x.target.value;/^\d*$/.test(w)&&y("r",w===""?0:Math.min(+w,255))}}),t.jsx("input",{style:C,inputMode:"numeric",value:g,onChange:x=>{const w=x.target.value;/^\d*$/.test(w)&&y("g",w===""?0:Math.min(+w,255))}}),t.jsx("input",{style:C,inputMode:"numeric",value:m,onChange:x=>{const w=x.target.value;/^\d*$/.test(w)&&y("b",w===""?0:Math.min(+w,255))}})]}),r==="hsb"&&t.jsxs(t.Fragment,{children:[t.jsx("input",{style:C,inputMode:"numeric",value:Math.round(e.h),onChange:x=>{const w=x.target.value;/^\d*$/.test(w)&&p("h",w===""?0:Math.min(+w,360))}}),t.jsx("input",{style:C,inputMode:"numeric",value:Math.round(e.s),onChange:x=>{const w=x.target.value;/^\d*$/.test(w)&&p("s",w===""?0:Math.min(+w,100))}}),t.jsx("input",{style:C,inputMode:"numeric",value:Math.round(e.b),onChange:x=>{const w=x.target.value;/^\d*$/.test(w)&&p("b",w===""?0:Math.min(+w,100))}})]}),!n&&t.jsxs(t.Fragment,{children:[t.jsx("input",{style:{...C,width:"2.25rem",flex:"none"},inputMode:"numeric",value:Math.round(e.a*100),onChange:x=>{const w=x.target.value;/^\d*$/.test(w)&&v(w===""?0:Math.min(+w,100))}}),t.jsx("span",{style:{fontSize:"0.6875rem",color:i.colorTextMuted,flexShrink:0},children:"%"})]})]})}function Rc({presets:e,onSelect:r}){return t.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"0.5rem"},children:e.map((n,o)=>t.jsxs("div",{children:[n.label&&t.jsx("div",{style:{fontSize:"0.75rem",color:i.colorTextMuted,marginBottom:"0.25rem",fontWeight:500},children:n.label}),t.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"0.25rem"},children:n.colors.map((l,a)=>t.jsx("button",{type:"button",onClick:()=>r(l),style:{width:"1.25rem",height:"1.25rem",borderRadius:"0.25rem",padding:0,cursor:"pointer",border:`1px solid ${i.colorBorder}`,backgroundColor:l}},a))})]},o))})}function Bc({stops:e,activeIndex:r,angle:n,onSelectStop:o,onMoveStop:l,onAddStop:a,onRemoveStop:c,onAngleChange:d,onDragEnd:f}){const u=s.useRef(null),h=s.useRef(null),g=s.useRef(l);g.current=l;const m=s.useRef(f);m.current=f,s.useEffect(()=>{const b=x=>{if(h.current===null||!u.current)return;x.preventDefault();const w=u.current.getBoundingClientRect(),M=Wt((x.clientX-w.left)/w.width*100,0,100);g.current(h.current,Math.round(M))},C=()=>{h.current!==null&&(h.current=null,m.current())};return document.addEventListener("mousemove",b),document.addEventListener("mouseup",C),()=>{document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",C)}},[]);const y=b=>{if(!u.current)return;const C=u.current.getBoundingClientRect(),x=Wt((b.clientX-C.left)/C.width*100,0,100);a(Math.round(x))},p=(b,C)=>{b.stopPropagation(),b.preventDefault(),h.current=C,o(C)},k=[...e].sort((b,C)=>b.percent-C.percent).map(b=>`${cr(b.color)} ${b.percent}%`).join(", "),j=["linear-gradient(45deg, #ccc 25%, transparent 25%)","linear-gradient(-45deg, #ccc 25%, transparent 25%)","linear-gradient(45deg, transparent 75%, #ccc 75%)","linear-gradient(-45deg, transparent 75%, #ccc 75%)"].join(", ");return t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"0.5rem"},children:[t.jsxs("div",{ref:u,onMouseDown:y,style:{position:"relative",height:12,borderRadius:6,cursor:"pointer",marginTop:"0.25rem",marginBottom:"0.25rem"},children:[t.jsx("div",{style:{position:"absolute",inset:0,borderRadius:6,backgroundImage:j,backgroundSize:"8px 8px",backgroundPosition:"0 0, 0 4px, 4px -4px, -4px 0"}}),t.jsx("div",{style:{position:"absolute",inset:0,borderRadius:6,background:`linear-gradient(to right, ${k})`}}),e.map((b,C)=>t.jsx("div",{onMouseDown:x=>p(x,C),style:{position:"absolute",left:`${b.percent}%`,top:"50%",transform:"translate(-50%, -50%)",width:14,height:14,borderRadius:"50%",border:C===r?`2px solid ${i.colorPrimary}`:"2px solid #fff",boxShadow:"0 0 3px rgba(0,0,0,0.3)",backgroundColor:cr(b.color),cursor:"grab",zIndex:C===r?2:1}},C))]}),t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.25rem"},children:[t.jsx("span",{style:{fontSize:"0.6875rem",color:i.colorTextMuted,flexShrink:0},children:"Angle"}),t.jsx("input",{type:"number",min:0,max:360,value:n,onChange:b=>d(Wt(+b.target.value,0,360)),style:{height:"1.5rem",width:"3rem",border:`1px solid ${i.colorBorder}`,borderRadius:"0.25rem",padding:"0 0.25rem",fontSize:"0.75rem",fontFamily:"monospace",textAlign:"center",outline:"none",color:i.colorText,backgroundColor:"transparent"}}),t.jsx("span",{style:{fontSize:"0.6875rem",color:i.colorTextMuted},children:"°"}),t.jsx("div",{style:{flex:1}}),e.length>2&&t.jsx("button",{type:"button",onClick:()=>c(r),style:{display:"flex",alignItems:"center",justifyContent:"center",width:"1.5rem",height:"1.5rem",padding:0,border:`1px solid ${i.colorBorder}`,borderRadius:"0.25rem",backgroundColor:"transparent",cursor:"pointer",color:i.colorTextMuted},onMouseEnter:b=>{b.currentTarget.style.color="#ff4d4f"},onMouseLeave:b=>{b.currentTarget.style.color=i.colorTextMuted},children:t.jsx(ps,{})})]})]})}function Tc({modes:e,activeMode:r,onModeChange:n}){return t.jsx("div",{style:{display:"flex",borderRadius:"0.25rem",overflow:"hidden",border:`1px solid ${i.colorBorder}`},children:e.map(o=>t.jsx("button",{type:"button",onClick:()=>n(o),style:{flex:1,padding:"0.25rem 0",border:"none",backgroundColor:o===r?i.colorPrimary:"transparent",color:o===r?"#fff":i.colorText,cursor:"pointer",fontSize:"0.6875rem",fontWeight:600,fontFamily:"inherit",transition:"background-color 0.15s ease, color 0.15s ease"},children:o==="single"?"Single":"Gradient"},o))})}const Lc={sm:{height:"1.5rem",swatch:16,radius:"0.25rem",fontSize:"0.75rem",paddingText:"0 0.6rem 0 0.375rem",paddingIcon:"0.1875rem"},md:{height:"2rem",swatch:20,radius:"0.375rem",fontSize:"0.8125rem",paddingText:"0 0.8rem 0 0.5rem",paddingIcon:"0.3125rem"},lg:{height:"2.5rem",swatch:28,radius:"0.5rem",fontSize:"0.875rem",paddingText:"0 1rem 0 0.625rem",paddingIcon:"0.3125rem"}};function _c({value:e,defaultValue:r="#1677ff",mode:n,onModeChange:o,format:l,defaultFormat:a="hex",disabled:c=!1,disabledAlpha:d=!1,allowClear:f=!1,showText:u,trigger:h="click",placement:g="bottomLeft",size:m="md",open:y,presets:p,panelRender:v,onChange:k,onChangeComplete:j,onGradientChange:b,onFormatChange:C,onOpenChange:x,onClear:w,children:M,className:R,style:S,classNames:B,styles:I}){const T=n?typeof n=="string"?n==="gradient"?["single","gradient"]:["single"]:n:["single"],_=T.length>1,L=typeof n=="string"&&n==="gradient"?"gradient":T[0],[N,$]=s.useState(L),P=T.includes(N)?N:T[0],E=P==="gradient",z=e!==void 0,F=y!==void 0,A=l!==void 0,D=e??r,[W,V]=s.useState(()=>yn(D)?{h:217,s:91,b:100,a:1}:lr(D)),[Z,X]=s.useState(!1),[U,q]=s.useState(l??a),[H,re]=s.useState(!1),[oe,se]=s.useState(!1),J=yn(e),ie=z&&J,_e=z&&!J?lr(e):W,we=F?y:Z,je=A?l:U,[ae,he]=s.useState(()=>yn(D)?lo(D):[{color:{...lr(D)},percent:0},{color:{h:0,s:0,b:100,a:1},percent:100}]),[fe,Se]=s.useState(90),[We,Le]=s.useState(0),Te=s.useRef(null),Ie=ie?lo(e):ae,Re=Math.min(We,Ie.length-1),O=E?Ie[Re]?.color??{h:0,s:100,b:100,a:1}:_e,K=s.useRef(Ie);K.current=Ie;const te=s.useRef(fe);te.current=fe;const ne=s.useRef(Re);ne.current=Re;const[ce,ve]=s.useState(g),De=s.useRef(null),G=s.useRef(null),le=s.useRef(null);s.useEffect(()=>{we&&(re(!1),requestAnimationFrame(()=>{requestAnimationFrame(()=>re(!0))}))},[we]),s.useEffect(()=>{if(!we)return;const ee=Be=>{De.current?.contains(Be.target)||G.current?.contains(Be.target)||pe(!1)};return document.addEventListener("mousedown",ee),()=>document.removeEventListener("mousedown",ee)},[we]),s.useEffect(()=>()=>{le.current&&clearTimeout(le.current)},[]),s.useLayoutEffect(()=>{if(!we||!G.current||!De.current)return;const ee=G.current.getBoundingClientRect(),Be=De.current.getBoundingClientRect(),ze=Be.top,Ke=window.innerHeight-Be.bottom,rt=ce.startsWith("top");!rt&&ee.bottom>window.innerHeight?ze>Ke&&ve(pt=>pt.replace("bottom","top")):rt&&ee.top<0&&Ke>ze&&ve(pt=>pt.replace("top","bottom"))});const pe=s.useCallback(ee=>{c||(ee&&ve(g),F||X(ee),x?.(ee))},[c,F,x,g]),Ee=s.useCallback(ee=>{if(se(!1),E){const ze=K.current,Ke=ne.current,rt=ze.map((pt,Lt)=>Lt===Ke?{...pt,color:ee}:pt);ie||he(rt),b?.(xr(rt),dr(rt,te.current));return}z||V(ee);const Be=Ur(ee);k?.(Be,Be.toHexString())},[E,ie,z,k,b]),Ue=s.useCallback(()=>{if(E){const ze=K.current;b?.(xr(ze),dr(ze,te.current));return}const ee=z?lr(e):W,Be=Ur(ee);j?.(Be,Be.toHexString())},[E,z,e,W,j,b]),Ye=s.useCallback(ee=>{A||q(ee),C?.(ee)},[A,C]),$e=s.useCallback(ee=>{Ee(lr(ee)),Ue()},[Ee,Ue]),Ze=s.useCallback(()=>{se(!0),w?.()},[w]),ke=s.useCallback(ee=>{if(ee!==P){if(ee==="gradient"){if(Te.current)he(Te.current);else{const Be=z&&!J?lr(e):W;he([{color:{...Be},percent:0},{color:{h:0,s:0,b:100,a:1},percent:100}])}Le(0)}else{Te.current=[...ae];const Be=ae[0]?.color??{h:0,s:100,b:100,a:1};z||V(Be)}$(ee),o?.(ee)}},[P,z,J,e,W,ae,o]),ge=s.useCallback(ee=>{Le(ee)},[]),me=s.useCallback((ee,Be)=>{const Ke=K.current.map((rt,pt)=>pt===ee?{...rt,percent:Be}:rt);ie||he(Ke),b?.(xr(Ke),dr(Ke,te.current))},[ie,b]),Ve=s.useCallback(ee=>{const Be=K.current,ze=kc(Be,ee),Ke=[...Be,{color:ze,percent:ee}];ie||he(Ke),Le(Ke.length-1),b?.(xr(Ke),dr(Ke,te.current))},[ie,b]),Ge=s.useCallback(ee=>{const Be=K.current;if(Be.length<=2)return;const ze=Be.filter((Ke,rt)=>rt!==ee);ie||he(ze),Le(Ke=>Math.min(Ke,ze.length-1)),b?.(xr(ze),dr(ze,te.current))},[ie,b]),Pe=s.useCallback(ee=>{Se(ee);const Be=K.current;b?.(xr(Be),dr(Be,ee))},[b]),ot=()=>{h==="click"&&pe(!we)},Fe=()=>{h!=="hover"||c||(le.current&&clearTimeout(le.current),pe(!0))},ye=()=>{h==="hover"&&(le.current=window.setTimeout(()=>pe(!1),200))},Ne=ce.startsWith("top"),Xe=ce.endsWith("Right"),et={position:"absolute",zIndex:1050,...Ne?{bottom:"100%",marginBottom:"0.25rem"}:{top:"100%",marginTop:"0.25rem"},...Xe?{right:0}:{left:0}},ht=Lc[m],{r:yt,g:ft,b:Ct}=gr(_e.h,_e.s,_e.b),kt=`rgba(${yt}, ${ft}, ${Ct}, ${_e.a})`,St=Ur(_e),{r:Rt,g:de,b:He}=gr(O.h,O.s,O.b),qe=`rgba(${Rt}, ${de}, ${He}, ${O.a})`,nt=E?dr(Ie,fe):"";let Je=null;if(u)if(E)typeof u=="function"?Je=u(Ur(O)):Je=`${fe}°`;else if(typeof u=="function")Je=u(St);else switch(je){case"hex":Je=St.toHexString().toUpperCase();break;case"rgb":Je=St.toRgbString();break;case"hsb":Je=St.toHsbString();break}const gt=t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"0.75rem"},children:[_&&t.jsx(Tc,{modes:T,activeMode:P,onModeChange:ke}),E&&t.jsx(Bc,{stops:Ie,activeIndex:Re,angle:fe,onSelectStop:ge,onMoveStop:me,onAddStop:Ve,onRemoveStop:Ge,onAngleChange:Pe,onDragEnd:Ue}),t.jsx(wc,{hue:O.h,saturation:O.s,brightness:O.b,onChange:(ee,Be)=>Ee({...O,s:ee,b:Be}),onDragEnd:Ue}),t.jsxs("div",{style:{display:"flex",gap:"0.75rem",alignItems:"center"},children:[t.jsx("div",{style:{width:"1.75rem",height:"1.75rem",borderRadius:"50%",flexShrink:0,border:`1px solid ${i.colorBorder}`,backgroundColor:qe}}),t.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:"0.375rem"},children:[t.jsx(jc,{hue:O.h,onChange:ee=>Ee({...O,h:ee}),onDragEnd:Ue}),!d&&t.jsx(Sc,{color:O,alpha:O.a,onChange:ee=>Ee({...O,a:ee}),onDragEnd:Ue})]})]}),t.jsx(Mc,{color:O,format:je,disabledAlpha:d,onColorChange:ee=>{Ee(ee),Ue()},onFormatChange:Ye}),p&&p.length>0&&t.jsxs(t.Fragment,{children:[t.jsx("div",{style:{height:1,backgroundColor:i.colorBorder}}),t.jsx(Rc,{presets:p,onSelect:$e})]}),f&&t.jsxs(t.Fragment,{children:[t.jsx("div",{style:{height:1,backgroundColor:i.colorBorder}}),t.jsxs("button",{type:"button",onClick:Ze,style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"0.25rem",padding:"0.25rem 0",border:"none",backgroundColor:"transparent",color:i.colorTextMuted,cursor:"pointer",fontSize:"0.75rem",fontFamily:"inherit"},onMouseEnter:ee=>{ee.currentTarget.style.color=i.colorText},onMouseLeave:ee=>{ee.currentTarget.style.color=i.colorTextMuted},children:[t.jsx(ps,{})," Clear"]})]})]}),Tt=v?v(gt):gt,Et=["linear-gradient(45deg, #ccc 25%, transparent 25%)","linear-gradient(-45deg, #ccc 25%, transparent 25%)","linear-gradient(45deg, transparent 75%, #ccc 75%)","linear-gradient(-45deg, transparent 75%, #ccc 75%)"].join(", "),ue=s.useRef(null),Q=M||t.jsxs("button",{ref:ue,type:"button",disabled:c,onClick:ot,className:B?.trigger,style:be({display:"inline-flex",alignItems:"center",gap:"0.5rem",height:ht.height,padding:u?ht.paddingText:ht.paddingIcon,border:`1px solid ${i.colorBorder}`,borderRadius:ht.radius,backgroundColor:i.colorBg,cursor:c?"not-allowed":"pointer",opacity:c?.5:1,transition:"border-color 0.2s ease"},I?.trigger),onMouseEnter:ee=>{c||(ee.currentTarget.style.borderColor=i.colorBorderHover)},onMouseLeave:ee=>{c||(ee.currentTarget.style.borderColor=i.colorBorder)},children:[t.jsxs("span",{style:{position:"relative",width:ht.swatch,height:ht.swatch,borderRadius:3,overflow:"hidden",boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"},children:[t.jsx("span",{style:{position:"absolute",inset:0,backgroundImage:Et,backgroundSize:"8px 8px",backgroundPosition:"0 0, 0 4px, 4px -4px, -4px 0"}}),E&&!oe?t.jsx("span",{style:{position:"absolute",inset:0,background:nt}}):t.jsx("span",{style:{position:"absolute",inset:0,backgroundColor:oe?"transparent":kt}}),oe&&t.jsx("span",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center"},children:t.jsx("svg",{width:ht.swatch,height:ht.swatch,viewBox:"0 0 16 16",fill:"none",stroke:"#ff4d4f",strokeWidth:"1.5",children:t.jsx("line",{x1:"3",y1:"3",x2:"13",y2:"13"})})})]}),u&&Je!==null&&t.jsx("span",{style:{fontSize:ht.fontSize,color:i.colorText,whiteSpace:"nowrap"},children:Je})]});return t.jsxs("div",{ref:De,className:xt(R,B?.root),style:be({position:"relative",display:"inline-block"},I?.root,S),onMouseEnter:Fe,onMouseLeave:ye,children:[M?t.jsx("div",{onClick:ot,style:{cursor:c?"not-allowed":"pointer"},children:Q}):Q,we&&t.jsx("div",{ref:G,className:B?.panel,style:be({...et,width:"17.5rem",padding:"0.75rem",borderRadius:"0.5rem",border:`1px solid ${i.colorBorder}`,boxShadow:i.shadowMd,backgroundColor:i.colorBg,opacity:H?1:0,transform:H?"translateY(0)":`translateY(${Ne?4:-4}px)`,transition:"opacity 0.2s ease, transform 0.2s ease"},I?.panel),onMouseEnter:Fe,onMouseLeave:ye,children:Tt})]})}function yr(e,r=2){return String(e).padStart(r,"0")}function Ht(e){return new Date(e.getTime())}function ao(e){const r=Ht(e);r.setHours(0,0,0,0),r.setDate(r.getDate()+4-(r.getDay()||7));const n=new Date(r.getFullYear(),0,1);return Math.ceil(((r.getTime()-n.getTime())/864e5+1)/7)}function Ec(e){const r=["th","st","nd","rd"],n=e%100;return e+(r[(n-20)%10]||r[n]||r[0])}const Ic=/\[([^\]]*)\]|YYYY|YY|MM|M|DD|D|HH|H|hh|h|mm|m|ss|s|A|a|ddd|dd|wo|Wo|QQ|Q/g;class On{locale;constructor(r){this.locale=r??(typeof navigator<"u"?navigator.language:"en-US")}today(){const r=new Date;return r.setHours(0,0,0,0),r}create(r){return r==null?new Date(NaN):r instanceof Date?Ht(r):new Date(r)}clone(r){return Ht(r)}isValid(r){return r instanceof Date&&!isNaN(r.getTime())}getYear(r){return r.getFullYear()}getMonth(r){return r.getMonth()}getDate(r){return r.getDate()}getDay(r){return r.getDay()}getHour(r){return r.getHours()}getMinute(r){return r.getMinutes()}getSecond(r){return r.getSeconds()}setYear(r,n){const o=Ht(r);return o.setFullYear(n),o}setMonth(r,n){const o=Ht(r),l=o.getDate();o.setDate(1),o.setMonth(n);const a=new Date(o.getFullYear(),n+1,0).getDate();return o.setDate(Math.min(l,a)),o}setDate(r,n){const o=Ht(r);return o.setDate(n),o}setHour(r,n){const o=Ht(r);return o.setHours(n),o}setMinute(r,n){const o=Ht(r);return o.setMinutes(n),o}setSecond(r,n){const o=Ht(r);return o.setSeconds(n),o}addDays(r,n){const o=Ht(r);return o.setDate(o.getDate()+n),o}addMonths(r,n){const o=Ht(r),l=o.getDate();o.setDate(1),o.setMonth(o.getMonth()+n);const a=new Date(o.getFullYear(),o.getMonth()+1,0).getDate();return o.setDate(Math.min(l,a)),o}addYears(r,n){const o=Ht(r),l=o.getDate();o.setDate(1),o.setFullYear(o.getFullYear()+n);const a=new Date(o.getFullYear(),o.getMonth()+1,0).getDate();return o.setDate(Math.min(l,a)),o}isSameDay(r,n){return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()&&r.getDate()===n.getDate()}isSameMonth(r,n){return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}isSameYear(r,n){return r.getFullYear()===n.getFullYear()}isBefore(r,n){return r.getTime()<n.getTime()}isAfter(r,n){return r.getTime()>n.getTime()}startOfWeek(r,n=1){const o=Ht(r);o.setHours(0,0,0,0);const a=(o.getDay()-n+7)%7;return o.setDate(o.getDate()-a),o}endOfWeek(r,n=1){const o=this.startOfWeek(r,n);return o.setDate(o.getDate()+6),o.setHours(23,59,59,999),o}startOfMonth(r){return new Date(r.getFullYear(),r.getMonth(),1)}endOfMonth(r){return new Date(r.getFullYear(),r.getMonth()+1,0,23,59,59,999)}getDaysInMonth(r){return new Date(r.getFullYear(),r.getMonth()+1,0).getDate()}getWeekNumber(r){return ao(r)}format(r,n){const o=r.getFullYear(),l=r.getMonth(),a=r.getDate(),c=r.getHours(),d=r.getMinutes(),f=r.getSeconds(),u=r.getDay(),h=c%12||12,g=Math.floor(l/3)+1,m=ao(r),y=this.getDayNames("short"),p=this.getDayNames("narrow");return n.replace(Ic,(v,k)=>{if(k!==void 0)return k;switch(v){case"YYYY":return String(o);case"YY":return String(o).slice(-2);case"MM":return yr(l+1);case"M":return String(l+1);case"DD":return yr(a);case"D":return String(a);case"HH":return yr(c);case"H":return String(c);case"hh":return yr(h);case"h":return String(h);case"mm":return yr(d);case"m":return String(d);case"ss":return yr(f);case"s":return String(f);case"A":return c<12?"AM":"PM";case"a":return c<12?"am":"pm";case"ddd":return y[u];case"dd":return p[u];case"wo":case"Wo":return Ec(m);case"QQ":return"Q"+g;case"Q":return String(g);default:return v}})}parse(r,n){let o="";const l=[];let a=0;const c=n;for(;a<c.length;){if(c[a]==="["){const b=c.indexOf("]",a);if(b!==-1){o+=co(c.substring(a+1,b)),a=b+1;continue}}let j=!1;for(const b of["YYYY","YY","MM","DD","HH","hh","mm","ss","QQ","wo","Wo","ddd","dd","M","D","H","h","m","s","A","a","Q"])if(c.startsWith(b,a)){l.push(b),o+=`(${$c(b)})`,a+=b.length,j=!0;break}j||(o+=co(c[a]),a++)}const d=new RegExp(`^${o}$`),f=r.match(d);if(!f)return null;let u=new Date().getFullYear(),h=0,g=1,m=0,y=0,p=0,v=!1;for(let j=0;j<l.length;j++){const b=f[j+1];switch(l[j]){case"YYYY":u=parseInt(b,10);break;case"YY":u=2e3+parseInt(b,10);break;case"MM":case"M":h=parseInt(b,10)-1;break;case"DD":case"D":g=parseInt(b,10);break;case"HH":case"H":m=parseInt(b,10);break;case"hh":case"h":m=parseInt(b,10);break;case"mm":case"m":y=parseInt(b,10);break;case"ss":case"s":p=parseInt(b,10);break;case"A":case"a":v=b.toLowerCase()==="pm";break;case"Q":case"QQ":h=(parseInt(b.replace("Q",""),10)-1)*3;break}}v&&m<12&&(m+=12),!v&&m===12&&l.some(j=>j==="A"||j==="a")&&(m=0);const k=new Date(u,h,g,m,y,p);return isNaN(k.getTime())?null:k}getMonthNames(r="long"){const n=new Intl.DateTimeFormat(this.locale,{month:r});return Array.from({length:12},(o,l)=>{const a=n.format(new Date(2026,l,1));return a.charAt(0).toUpperCase()+a.slice(1)})}getDayNames(r="short"){const n=new Intl.DateTimeFormat(this.locale,{weekday:r});return Array.from({length:7},(o,l)=>{const a=n.format(new Date(2026,0,4+l));return a.charAt(0).toUpperCase()+a.slice(1)})}getQuarterLabel(r){return`Q${r}`}}function co(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function $c(e){switch(e){case"YYYY":return"\\d{4}";case"YY":return"\\d{2}";case"MM":return"\\d{2}";case"M":return"\\d{1,2}";case"DD":return"\\d{2}";case"D":return"\\d{1,2}";case"HH":return"\\d{2}";case"H":return"\\d{1,2}";case"hh":return"\\d{2}";case"h":return"\\d{1,2}";case"mm":return"\\d{2}";case"m":return"\\d{1,2}";case"ss":return"\\d{2}";case"s":return"\\d{1,2}";case"A":return"[AP]M";case"a":return"[ap]m";case"QQ":return"Q[1-4]";case"Q":return"[1-4]";case"wo":case"Wo":return"\\d{1,2}(?:st|nd|rd|th)";case"ddd":return"[A-Za-z]+";case"dd":return"[A-Za-z]+";default:return".+"}}const Dc=new On,gs=s.createContext(null);function Pc({adapter:e,children:r}){return t.jsx(gs.Provider,{value:e,children:r})}function ms(e){const r=s.useContext(gs);return e??r??Dc}function xs(){return t.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("rect",{x:"2",y:"3",width:"12",height:"11",rx:"1.5"}),t.jsx("line",{x1:"5",y1:"1.5",x2:"5",y2:"4"}),t.jsx("line",{x1:"11",y1:"1.5",x2:"11",y2:"4"}),t.jsx("line",{x1:"2",y1:"7",x2:"14",y2:"7"})]})}function Ac(){return t.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("circle",{cx:"8",cy:"8",r:"6"}),t.jsx("polyline",{points:"8 4.5 8 8 10.5 9.5"})]})}function zc(){return t.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"8.5 3 4.5 7 8.5 11"})})}function Fc(){return t.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"5.5 3 9.5 7 5.5 11"})})}function Nc(){return t.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("polyline",{points:"7.5 3 3.5 7 7.5 11"}),t.jsx("polyline",{points:"11 3 7 7 11 11"})]})}function Wc(){return t.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("polyline",{points:"3 3 7 7 3 11"}),t.jsx("polyline",{points:"6.5 3 10.5 7 6.5 11"})]})}function Ln(){return t.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[t.jsx("circle",{cx:"7",cy:"7",r:"5.5",fill:"currentColor",opacity:"0.08"}),t.jsx("line",{x1:"5",y1:"5",x2:"9",y2:"9"}),t.jsx("line",{x1:"9",y1:"5",x2:"5",y2:"9"})]})}function Hc(){return t.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("line",{x1:"4",y1:"8",x2:"12",y2:"8"}),t.jsx("polyline",{points:"9 5 12 8 9 11"})]})}const ys={sm:{height:"1.75rem",fontSize:"0.75rem",iconSize:14,radius:"0.25rem",paddingH:"0.5rem",inputFontSize:"1rem",tagFontSize:"0.625rem"},md:{height:"2.25rem",fontSize:"0.875rem",iconSize:16,radius:"0.375rem",paddingH:"0.75rem",inputFontSize:"1rem",tagFontSize:"0.75rem"},lg:{height:"2.75rem",fontSize:"1rem",iconSize:18,radius:"0.5rem",paddingH:"0.875rem",inputFontSize:"1rem",tagFontSize:"0.875rem"}};function uo(e){return{bottomLeft:"topLeft",bottomRight:"topRight",topLeft:"bottomLeft",topRight:"bottomRight"}[e]}function bs(e,r,n=360){if(!r)return e;const o=r.getBoundingClientRect(),l=window.innerHeight;if(e.startsWith("bottom")){if(l-o.bottom<n&&o.top>l-o.bottom)return uo(e)}else if(o.top<n&&l-o.bottom>o.top)return uo(e);return e}function vs(e,r){return e==="year"?"YYYY":e==="quarter"?"YYYY-[Q]Q":e==="month"?"YYYY-MM":e==="week"?"YYYY-wo":r?`YYYY-MM-DD ${typeof r=="object"&&r.format?r.format:"HH:mm:ss"}`:"YYYY-MM-DD"}function Oc(e,r,n){return e==="year"?n?.yearPlaceholder??"Select year":e==="quarter"?n?.quarterPlaceholder??"Select quarter":e==="month"?n?.monthPlaceholder??"Select month":e==="week"?n?.weekPlaceholder??"Select week":r?n?.dateTimePlaceholder??"Select date and time":n?.placeholder??"Select date"}function Cs(e,r,n,o=1){const l=e.setDate(e.setMonth(e.setYear(e.today(),r),n),1),a=e.startOfWeek(l,o),c=[];let d=a;for(let f=0;f<6;f++){const u=[];for(let h=0;h<7;h++)u.push(e.clone(d)),d=e.addDays(d,1);c.push(u)}return c}function un(e,r,n,o,l){return!!(n?.(r)||o&&e.isValid(o)&&e.isBefore(r,e.setHour(e.setMinute(e.setSecond(e.clone(o),0),0),0))||l&&e.isValid(l)&&e.isAfter(r,e.setHour(e.setMinute(e.setSecond(e.clone(l),23),59),59)))}function Vc(e){const r=[],n=/YYYY|MM|DD|HH|hh|mm|ss|A/g;let o=0,l;for(;(l=n.exec(e))!==null;)l.index>o&&r.push({type:"separator",separator:e.slice(o,l.index),length:0}),r.push({type:"token",token:l[0],length:l[0].length}),o=l.index+l[0].length;return o<e.length&&r.push({type:"separator",separator:e.slice(o),length:0}),r}function Yc({format:e,value:r,onComplete:n,placeholder:o,fontSize:l,color:a,disabled:c,readOnly:d,onFocus:f}){const u=s.useMemo(()=>Vc(e),[e]),h=s.useMemo(()=>u.filter(w=>w.type==="token"),[u]),[g,m]=s.useState(()=>{if(r){const w=[];let M=0;for(const R of u)R.type==="separator"?M+=R.separator?.length??0:(w.push(r.slice(M,M+R.length)),M+=R.length);return w}return h.map(()=>"")}),[y,p]=s.useState(-1),v=s.useRef(null);s.useEffect(()=>{if(r&&y===-1){const w=[];let M=0;for(const R of u)R.type==="separator"?M+=R.separator?.length??0:(w.push(r.slice(M,M+R.length)),M+=R.length);m(w)}},[r]);const k=s.useMemo(()=>{let w=0;return u.map(M=>{if(M.type==="separator")return M.separator;const R=g[w]??"",S=(M.token??"").replace(/./g,"_");return w++,R+S.slice(R.length)}).join("")},[u,g]),j=w=>{if(c||d)return;const M=y>=0?y:0;if(w.key==="ArrowLeft")w.preventDefault(),p(Math.max(0,M-1));else if(w.key==="ArrowRight"||w.key==="Tab"){if(w.key==="Tab"&&M>=h.length-1)return;w.preventDefault(),p(Math.min(h.length-1,M+1))}else if(w.key==="ArrowUp"||w.key==="ArrowDown"){w.preventDefault();const R=w.key==="ArrowUp"?1:-1;m(S=>{const B=[...S],I=h[M],T=parseInt(B[M])||0,_=I.token==="YYYY"?9999:I.token==="MM"?12:I.token==="DD"?31:I.token==="HH"?23:I.token==="hh"?12:I.token==="mm"||I.token==="ss"?59:99,L=I.token==="MM"||I.token==="DD"||I.token==="hh"?1:0,N=Math.min(_,Math.max(L,T+R));return B[M]=String(N).padStart(I.length,"0"),B})}else if(w.key==="Backspace")w.preventDefault(),m(R=>{const S=[...R];return S[M].length>0?S[M]=S[M].slice(0,-1):M>0&&p(M-1),S});else if(/^\d$/.test(w.key))w.preventDefault(),m(R=>{const S=[...R],B=h[M];return S[M].length>=B.length&&(S[M]=""),S[M]+=w.key,S[M].length>=B.length&&M<h.length-1&&p(M+1),S});else if(w.key==="Enter"){if(g.every((S,B)=>S.length===h[B].length)){let S=0;const B=u.map(I=>I.type==="separator"?I.separator:g[S++]).join("");n(B),p(-1)}}else w.key==="Escape"&&(p(-1),v.current?.blur())},b=()=>{if(g.every((M,R)=>M.length===h[R].length)){let M=0;const R=u.map(S=>S.type==="separator"?S.separator:g[M++]).join("");n(R)}p(-1)},C=w=>{let M=0,R=0;for(const S of u)if(S.type==="separator")M+=S.separator?.length??0;else{if(R===w)return{start:M,length:S.length};M+=S.length,R++}return{start:0,length:0}};s.useEffect(()=>{if(y>=0&&v.current){const{start:w,length:M}=C(y);v.current.setSelectionRange(w,w+M)}},[y,k]);const x=g.every(w=>w==="");return t.jsx("input",{ref:v,value:x&&y===-1?"":k,placeholder:o??e.replace(/[YMDHhms]/g,"_"),readOnly:!0,disabled:c,onKeyDown:j,onFocus:()=>{p(0),f?.()},onBlur:b,style:{flex:1,minWidth:0,border:"none",outline:"none",backgroundColor:"transparent",fontSize:l,fontFamily:"inherit",color:a,caretColor:"transparent",cursor:c?"not-allowed":"text",padding:0}})}function _n({title:e,onPrevYear:r,onNextYear:n,onPrevMonth:o,onNextMonth:l,onTitleClick:a,showMonthNav:c=!0,styles:d,classNames:f}){const u={display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1.75rem",height:"1.75rem",padding:0,border:"none",borderRadius:"0.25rem",backgroundColor:"transparent",cursor:"pointer",color:i.colorTextMuted,transition:"background-color 0.15s ease, color 0.15s ease"},h=m=>{m.currentTarget.style.backgroundColor=i.colorBgMuted,m.currentTarget.style.color=i.colorText},g=m=>{m.currentTarget.style.backgroundColor="transparent",m.currentTarget.style.color=i.colorTextMuted};return t.jsxs("div",{className:f?.header,style:be({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0.5rem 0.5rem 0.25rem",userSelect:"none"},d?.header),children:[t.jsxs("div",{style:{display:"flex",gap:"0.125rem"},children:[t.jsx("button",{type:"button",style:u,onClick:r,onMouseEnter:h,onMouseLeave:g,children:t.jsx(Nc,{})}),c&&o&&t.jsx("button",{type:"button",style:u,onClick:o,onMouseEnter:h,onMouseLeave:g,children:t.jsx(zc,{})})]}),t.jsx("button",{type:"button",onClick:a,style:{border:"none",backgroundColor:"transparent",cursor:a?"pointer":"default",fontSize:"0.875rem",fontWeight:600,fontFamily:"inherit",color:i.colorText,padding:"0.125rem 0.5rem",borderRadius:"0.25rem",transition:"background-color 0.15s ease"},onMouseEnter:m=>{a&&(m.currentTarget.style.backgroundColor=i.colorBgMuted)},onMouseLeave:m=>{m.currentTarget.style.backgroundColor="transparent"},children:e}),t.jsxs("div",{style:{display:"flex",gap:"0.125rem"},children:[c&&l&&t.jsx("button",{type:"button",style:u,onClick:l,onMouseEnter:h,onMouseLeave:g,children:t.jsx(Fc,{})}),t.jsx("button",{type:"button",style:u,onClick:n,onMouseEnter:h,onMouseLeave:g,children:t.jsx(Wc,{})})]})]})}function ks({adapter:e,viewDate:r,value:n,selectedDates:o,onSelect:l,onHover:a,disabledDate:c,minDate:d,maxDate:f,cellRender:u,rangeInfo:h,hideOutOfMonth:g,styles:m,classNames:y}){const p=e.getYear(r),v=e.getMonth(r),k=e.today(),j=Cs(e,p,v,1),b=e.getDayNames("narrow"),C=[...b.slice(1),b[0]],x="2rem",w="1.75rem";return t.jsx("div",{className:y?.body,style:be({padding:"0 0.5rem 0.5rem"},m?.body),children:t.jsxs("div",{style:{display:"grid",gridTemplateColumns:`repeat(7, ${x})`,gridAutoRows:x,placeItems:"center"},children:[C.map((M,R)=>t.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:x,height:x,fontSize:"0.75rem",fontWeight:600,color:i.colorTextMuted},children:M},`h-${R}`)),j.map((M,R)=>M.map((S,B)=>{const I=e.isSameMonth(S,r);if(g&&!I)return t.jsx("div",{},`${R}-${B}`);const T=e.isSameDay(S,k),_=n&&e.isValid(n)&&e.isSameDay(S,n)||(o?.some(A=>e.isSameDay(A,S))??!1),L=un(e,S,c,d,f);let N=!1,$=!1,P=!1;if(h){const{start:A,end:D,hoverDate:W}=h,V=D??W;if(A&&V){const[Z,X]=e.isBefore(A,V)?[A,V]:[V,A];$=e.isSameDay(S,Z),P=e.isSameDay(S,X),N=(e.isAfter(S,Z)||e.isSameDay(S,Z))&&(e.isBefore(S,X)||e.isSameDay(S,X))}}const E={display:"grid",placeContent:"center",width:w,height:w,fontSize:"0.8125rem",borderRadius:"50%",cursor:L?"not-allowed":"pointer",color:_?"#fff":L?i.colorTextSubtle:I?i.colorText:i.colorTextSubtle,backgroundColor:_?i.colorPrimary:N&&!$&&!P?i.colorPrimaryBg:"transparent",fontWeight:T?700:400,boxShadow:T&&!_?`inset 0 0 0 1.5px ${i.colorPrimary}`:"none",transition:"background-color 0.1s ease, color 0.1s ease, box-shadow 0.1s ease",opacity:L?.4:1};($||P)&&(E.backgroundColor=i.colorPrimary,E.color="#fff");const z=t.jsx("span",{style:{lineHeight:0},children:e.getDate(S)}),F=u?u(S,{type:"date",originNode:z,today:T,inView:I,inRange:N,rangeStart:$,rangeEnd:P}):z;return t.jsx("div",{style:E,className:y?.cell,onClick:()=>{L||l(S)},onMouseEnter:A=>{L||(a?.(S),!_&&!$&&!P&&(A.currentTarget.style.backgroundColor=N?i.colorPrimaryBg:i.colorBgMuted))},onMouseLeave:A=>{!L&&!_&&!$&&!P&&(A.currentTarget.style.backgroundColor=N?i.colorPrimaryBg:"transparent"),a?.(null)},children:F},`${R}-${B}`)}))]})})}function Kc({adapter:e,viewDate:r,value:n,onSelect:o,disabledDate:l,minDate:a,maxDate:c,styles:d,classNames:f}){const u=e.getYear(r),h=e.getMonth(r),g=e.today(),m=Cs(e,u,h,1),y=e.getDayNames("narrow"),p=[...y.slice(1),y[0]],v="2rem",k="1.75rem",j=n&&e.isValid(n)?e.startOfWeek(n,1):null;return t.jsxs("div",{className:f?.body,style:be({padding:"0 0.5rem 0.5rem"},d?.body),children:[t.jsx("div",{style:{display:"grid",gridTemplateColumns:`repeat(7, ${v})`,gridAutoRows:v,placeItems:"center"},children:p.map((b,C)=>t.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:v,height:v,fontSize:"0.75rem",fontWeight:600,color:i.colorTextMuted},children:b},C))}),m.map((b,C)=>{const x=e.startOfWeek(b[0],1),w=j&&e.isSameDay(x,j);return t.jsx("div",{style:{display:"grid",gridTemplateColumns:`repeat(7, ${v})`,gridAutoRows:v,placeItems:"center",borderRadius:"0.25rem",cursor:"pointer",backgroundColor:w?i.colorPrimaryBg:"transparent",transition:"background-color 0.1s ease"},onClick:()=>o(x),onMouseEnter:M=>{w||(M.currentTarget.style.backgroundColor=i.colorBgMuted)},onMouseLeave:M=>{w||(M.currentTarget.style.backgroundColor="transparent")},children:b.map((M,R)=>{const S=e.isSameMonth(M,r),B=e.isSameDay(M,g);return t.jsx("div",{style:{display:"grid",placeContent:"center",width:k,height:k,fontSize:"0.8125rem",color:S?w?i.colorPrimary:i.colorText:i.colorTextSubtle,fontWeight:B?700:400,boxShadow:B?`inset 0 0 0 1.5px ${i.colorPrimary}`:"none",borderRadius:"50%"},children:e.getDate(M)},R)})},C)})]})}function ws({adapter:e,viewDate:r,value:n,onSelect:o,disabledDate:l,minDate:a,maxDate:c,cellRender:d,styles:f,classNames:u}){const h=e.getMonthNames("short"),g=e.today(),m=e.getYear(r);return t.jsx("div",{className:u?.body,style:be({padding:"0.5rem",display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"0.5rem"},f?.body),children:h.map((y,p)=>{const v=e.setMonth(e.setDate(e.setYear(e.today(),m),1),p),k=e.isSameMonth(v,g),j=n&&e.isValid(n)&&e.isSameMonth(v,n)&&e.isSameYear(v,n),b=un(e,v,l,a,c),C=t.jsx("span",{children:y}),x=d?d(v,{type:"month",originNode:C,today:k,inView:!0}):C;return t.jsx("button",{type:"button",disabled:b,onClick:()=>o(v),className:u?.cell,style:{height:"2.5rem",border:k&&!j?`1px solid ${i.colorPrimary}`:"1px solid transparent",borderRadius:"0.375rem",cursor:b?"not-allowed":"pointer",backgroundColor:j?i.colorPrimary:"transparent",color:j?"#fff":b?i.colorTextSubtle:i.colorText,fontSize:"0.8125rem",fontWeight:k?600:400,fontFamily:"inherit",transition:"background-color 0.1s ease",opacity:b?.4:1},onMouseEnter:w=>{!b&&!j&&(w.currentTarget.style.backgroundColor=i.colorBgMuted)},onMouseLeave:w=>{!b&&!j&&(w.currentTarget.style.backgroundColor="transparent")},children:x},p)})})}function js({adapter:e,viewDate:r,value:n,onSelect:o,disabledDate:l,minDate:a,maxDate:c,cellRender:d,styles:f,classNames:u}){const h=e.getYear(r),g=Math.floor(h/10)*10,m=e.today(),y=e.getYear(m),p=Array.from({length:12},(v,k)=>g-1+k);return t.jsx("div",{className:u?.body,style:be({padding:"0.5rem",display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"0.5rem"},f?.body),children:p.map(v=>{const k=e.setYear(e.today(),v),j=v>=g&&v<g+10,b=v===y,C=n&&e.isValid(n)&&e.getYear(n)===v,x=un(e,k,l,a,c),w=t.jsx("span",{children:v}),M=d?d(k,{type:"year",originNode:w,today:b,inView:j}):w;return t.jsx("button",{type:"button",disabled:x,onClick:()=>o(k),className:u?.cell,style:{height:"2.5rem",border:b&&!C?`1px solid ${i.colorPrimary}`:"1px solid transparent",borderRadius:"0.375rem",cursor:x?"not-allowed":"pointer",backgroundColor:C?i.colorPrimary:"transparent",color:C?"#fff":j?x?i.colorTextSubtle:i.colorText:i.colorTextSubtle,fontSize:"0.8125rem",fontWeight:b?600:400,fontFamily:"inherit",transition:"background-color 0.1s ease",opacity:x?.4:1},onMouseEnter:R=>{!x&&!C&&(R.currentTarget.style.backgroundColor=i.colorBgMuted)},onMouseLeave:R=>{!x&&!C&&(R.currentTarget.style.backgroundColor="transparent")},children:M},v)})})}function Ss({adapter:e,viewDate:r,value:n,onSelect:o,disabledDate:l,minDate:a,maxDate:c,cellRender:d,styles:f,classNames:u}){const h=e.today(),g=e.getYear(r),m=Math.floor(e.getMonth(h)/3)+1,y=e.getYear(h);return t.jsx("div",{className:u?.body,style:be({padding:"0.5rem",display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:"0.5rem"},f?.body),children:[1,2,3,4].map(p=>{const v=(p-1)*3,k=e.setMonth(e.setDate(e.setYear(e.today(),g),1),v),j=p===m&&g===y,b=n&&e.isValid(n)&&Math.floor(e.getMonth(n)/3)+1===p&&e.getYear(n)===g,C=un(e,k,l,a,c),x=e.getQuarterLabel(p),w=t.jsx("span",{children:x}),M=d?d(k,{type:"quarter",originNode:w,today:j,inView:!0}):w;return t.jsx("button",{type:"button",disabled:C,onClick:()=>o(k),className:u?.cell,style:{height:"3rem",border:j&&!b?`1px solid ${i.colorPrimary}`:"1px solid transparent",borderRadius:"0.375rem",cursor:C?"not-allowed":"pointer",backgroundColor:b?i.colorPrimary:"transparent",color:b?"#fff":C?i.colorTextSubtle:i.colorText,fontSize:"0.875rem",fontWeight:j?600:400,fontFamily:"inherit",transition:"background-color 0.1s ease",opacity:C?.4:1},onMouseEnter:R=>{!C&&!b&&(R.currentTarget.style.backgroundColor=i.colorBgMuted)},onMouseLeave:R=>{!C&&!b&&(R.currentTarget.style.backgroundColor="transparent")},children:M},p)})})}function Uc({adapter:e,value:r,onChange:n,config:o,disabledTime:l}){const a=o?.hourStep??1,c=o?.minuteStep??1,d=o?.secondStep??1,f=o?.showHour!==!1,u=o?.showMinute!==!1,h=o?.showSecond===!0,g=o?.use12Hours??!1,m=e.getHour(r),y=e.getMinute(r),p=e.getSecond(r),v=l?.disabledHours?.()??[],k=l?.disabledMinutes?.(m)??[],j=l?.disabledSeconds?.(m,y)??[],b=Array.from({length:Math.ceil((g?12:24)/a)},(T,_)=>{const L=g?_*a+1:_*a;return L}).filter(T=>g?T<=12:T<24),C=Array.from({length:Math.ceil(60/c)},(T,_)=>_*c).filter(T=>T<60),x=Array.from({length:Math.ceil(60/d)},(T,_)=>_*d).filter(T=>T<60),w="13.5rem",M="j-dp-time-col",R={display:"flex",flexDirection:"column",alignItems:"center",height:w,overflowY:"auto",width:"3.25rem",scrollbarWidth:"thin",scrollbarColor:`${i.colorBorderHover} transparent`,borderRight:`1px solid ${i.colorBorder}`},S=(T,_,L,N)=>t.jsx("div",{className:M,style:R,children:T.map($=>{const P=$===_,E=L.includes($);return t.jsx("button",{type:"button",disabled:E,onClick:()=>{E||N($)},style:{width:"2.75rem",height:"1.75rem",flexShrink:0,border:"none",borderRadius:"0.25rem",backgroundColor:P?i.colorPrimaryBg:"transparent",color:P?i.colorPrimary:E?i.colorTextSubtle:i.colorText,cursor:E?"not-allowed":"pointer",fontSize:"0.8125rem",fontWeight:P?600:400,fontFamily:"monospace",transition:"background-color 0.1s ease",opacity:E?.4:1},onMouseEnter:z=>{!E&&!P&&(z.currentTarget.style.backgroundColor=i.colorBgMuted)},onMouseLeave:z=>{!E&&!P&&(z.currentTarget.style.backgroundColor="transparent")},children:String($).padStart(2,"0")},$)})}),B=g?m%12||12:m,I=m>=12;return t.jsxs("div",{style:{display:"flex",borderLeft:`1px solid ${i.colorBorder}`,padding:"0.5rem 0"},children:[t.jsx("style",{children:`
80
+ `,a.appendChild(d)}document.body.appendChild(a),setTimeout(()=>a.remove(),700)}function jl(){return t.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",style:{animation:"j-spin 1s linear infinite"},children:t.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeDasharray:"32",strokeDashoffset:"12"})})}const Sl={pink:"#eb2f96",magenta:"#eb2f96",red:"#f5222d",volcano:"#fa541c",orange:"#fa8c16",gold:"#faad14",yellow:"#fadb14",lime:"#a0d911",green:"#52c41a",cyan:"#13c2c2",blue:"#1677ff",geekblue:"#2f54eb",purple:"#722ed1"};function Ml(e){if(e)return Sl[e]??e}const Yt=8;function hn(e,r){const n=e.left+e.width/2,o=e.top+e.height/2;switch(r){case"top":return{top:e.top-Yt,left:n};case"topLeft":return{top:e.top-Yt,left:e.left};case"topRight":return{top:e.top-Yt,left:e.right};case"bottom":return{top:e.bottom+Yt,left:n};case"bottomLeft":return{top:e.bottom+Yt,left:e.left};case"bottomRight":return{top:e.bottom+Yt,left:e.right};case"left":return{top:o,left:e.left-Yt};case"leftTop":return{top:e.top,left:e.left-Yt};case"leftBottom":return{top:e.bottom,left:e.left-Yt};case"right":return{top:o,left:e.right+Yt};case"rightTop":return{top:e.top,left:e.right+Yt};case"rightBottom":return{top:e.bottom,left:e.right+Yt}}}function Rl(e,r){const n=r?0:6;switch(e){case"top":return`translateX(-50%) translateY(-100%) translateY(${n}px)`;case"topLeft":return`translateY(-100%) translateY(${n}px)`;case"topRight":return`translateX(-100%) translateY(-100%) translateY(${n}px)`;case"bottom":return`translateX(-50%) translateY(${-n}px)`;case"bottomLeft":return`translateY(${-n}px)`;case"bottomRight":return`translateX(-100%) translateY(${-n}px)`;case"left":return`translateX(-100%) translateY(-50%) translateX(${n}px)`;case"leftTop":return`translateX(-100%) translateX(${n}px)`;case"leftBottom":return`translateX(-100%) translateY(-100%) translateX(${n}px)`;case"right":return`translateY(-50%) translateX(${-n}px)`;case"rightTop":return`translateX(${-n}px)`;case"rightBottom":return`translateY(-100%) translateX(${-n}px)`}}function Bl(e){switch(e){case"topLeft":case"topRight":return"top";case"bottomLeft":case"bottomRight":return"bottom";case"leftTop":case"leftBottom":return"left";case"rightTop":case"rightBottom":return"right";default:return e}}function Tl(e,r,n,o){const l={position:"absolute",width:"0.5rem",height:"0.5rem",backgroundColor:r},a=n!=="transparent"?`1px solid ${n}`:"none";switch(o?Bl(e):e){case"top":return{...l,bottom:"-0.25rem",left:"50%",transform:"translateX(-50%) rotate(45deg)",borderRight:a,borderBottom:a};case"topLeft":return{...l,bottom:"-0.25rem",left:"1rem",transform:"rotate(45deg)",borderRight:a,borderBottom:a};case"topRight":return{...l,bottom:"-0.25rem",right:"1rem",transform:"rotate(45deg)",borderRight:a,borderBottom:a};case"bottom":return{...l,top:"-0.25rem",left:"50%",transform:"translateX(-50%) rotate(-135deg)",borderRight:a,borderBottom:a};case"bottomLeft":return{...l,top:"-0.25rem",left:"1rem",transform:"rotate(-135deg)",borderRight:a,borderBottom:a};case"bottomRight":return{...l,top:"-0.25rem",right:"1rem",transform:"rotate(-135deg)",borderRight:a,borderBottom:a};case"left":return{...l,right:"-0.25rem",top:"50%",transform:"translateY(-50%) rotate(-45deg)",borderRight:a,borderBottom:a};case"leftTop":return{...l,right:"-0.25rem",top:"0.75rem",transform:"rotate(-45deg)",borderRight:a,borderBottom:a};case"leftBottom":return{...l,right:"-0.25rem",bottom:"0.75rem",transform:"rotate(-45deg)",borderRight:a,borderBottom:a};case"right":return{...l,left:"-0.25rem",top:"50%",transform:"translateY(-50%) rotate(135deg)",borderRight:a,borderBottom:a};case"rightTop":return{...l,left:"-0.25rem",top:"0.75rem",transform:"rotate(135deg)",borderRight:a,borderBottom:a};case"rightBottom":return{...l,left:"-0.25rem",bottom:"0.75rem",transform:"rotate(135deg)",borderRight:a,borderBottom:a}}}function Ll(e){return e==="top"?"bottom":e==="topLeft"?"bottomLeft":e==="topRight"?"bottomRight":e==="bottom"?"top":e==="bottomLeft"?"topLeft":e==="bottomRight"?"topRight":e==="left"?"right":e==="leftTop"?"rightTop":e==="leftBottom"?"rightBottom":e==="right"?"left":e==="rightTop"?"leftTop":e==="rightBottom"?"leftBottom":e}function Nt({content:e,children:r,placement:n,position:o,arrow:l=!0,color:a,autoAdjustOverflow:c=!0,delay:d=200,disabled:f=!1,className:u,style:h,classNames:g,styles:m}){const y=n??o??"top",[p,v]=s.useState(!1),[k,j]=s.useState(!1),[b,C]=s.useState({top:0,left:0}),[x,w]=s.useState(y),M=s.useRef(null),R=s.useRef(null),S=s.useRef(null),B=s.useRef(null),I=s.useRef(!1),T=s.useRef(!0),_=s.useRef(p);_.current=p,s.useEffect(()=>{w(y)},[y]);const L=s.useCallback(()=>{if(!S.current)return;const re=S.current.getBoundingClientRect();C(hn(re,x))},[x]),N=s.useCallback(()=>{if(!f){if(R.current&&(clearTimeout(R.current),R.current=null),M.current&&clearTimeout(M.current),_.current){j(!0);return}I.current=!1,T.current=!0,M.current=window.setTimeout(()=>{w(y),S.current&&C(hn(S.current.getBoundingClientRect(),y)),v(!0),requestAnimationFrame(()=>{requestAnimationFrame(()=>{T.current=!1,j(!0)})})},d)}},[f,d,y]),$=s.useCallback(()=>{M.current&&(clearTimeout(M.current),M.current=null),j(!1),R.current=window.setTimeout(()=>v(!1),150)},[]);s.useEffect(()=>()=>{M.current&&clearTimeout(M.current),R.current&&clearTimeout(R.current)},[]),s.useEffect(()=>{if(!p)return;const re=()=>L();return window.addEventListener("scroll",re,!0),window.addEventListener("resize",re),()=>{window.removeEventListener("scroll",re,!0),window.removeEventListener("resize",re)}},[p,L]),s.useLayoutEffect(()=>{if(!c||!p||I.current||!B.current||!S.current)return;I.current=!0;const re=B.current.getBoundingClientRect(),oe=S.current.getBoundingClientRect(),se=x.startsWith("top"),J=x.startsWith("bottom"),ie=x.startsWith("left"),_e=x.startsWith("right");let we=!1;if(se&&re.top<0?window.innerHeight-oe.bottom>oe.top&&(we=!0):J&&re.bottom>window.innerHeight?oe.top>window.innerHeight-oe.bottom&&(we=!0):ie&&re.left<0?window.innerWidth-oe.right>oe.left&&(we=!0):_e&&re.right>window.innerWidth&&oe.left>window.innerWidth-oe.right&&(we=!0),we){const je=Ll(x);w(je),C(hn(oe,je))}});const P=Ml(a),E=!!P,z=E?P:i.colorBgMuted,F=E?"#fff":i.colorText,A=E?"transparent":i.colorBorder,D=l!==!1,W=typeof l=="object"&&l.pointAtCenter,V=Y("ino-tooltip__popup",E?"ino-tooltip__popup--colorful":"ino-tooltip__popup--default",{"ino-tooltip__popup--no-transition":T.current},g?.popup),Z={top:b.top,left:b.left,...E?{backgroundColor:z,color:F}:{},opacity:k?1:0,transform:Rl(x,k),...m?.popup},X={...Tl(x,z,A,W),...m?.arrow},U=Y("ino-tooltip",u,g?.root),q={...m?.root,...h},H=p&&typeof document<"u"?nr.createPortal(t.jsxs("div",{ref:B,style:Z,className:V,role:"tooltip",children:[e,D&&t.jsx("div",{style:X,className:Y("ino-tooltip__arrow",g?.arrow)})]}),document.body):null;return t.jsxs("div",{ref:S,style:q,className:U,onMouseEnter:N,onMouseLeave:$,onFocus:N,onBlur:$,children:[r,H]})}const Kt=8;function pn(e,r){const n=e.left+e.width/2,o=e.top+e.height/2;switch(r){case"top":return{top:e.top-Kt,left:n};case"topLeft":return{top:e.top-Kt,left:e.left};case"topRight":return{top:e.top-Kt,left:e.right};case"bottom":return{top:e.bottom+Kt,left:n};case"bottomLeft":return{top:e.bottom+Kt,left:e.left};case"bottomRight":return{top:e.bottom+Kt,left:e.right};case"left":return{top:o,left:e.left-Kt};case"leftTop":return{top:e.top,left:e.left-Kt};case"leftBottom":return{top:e.bottom,left:e.left-Kt};case"right":return{top:o,left:e.right+Kt};case"rightTop":return{top:e.top,left:e.right+Kt};case"rightBottom":return{top:e.bottom,left:e.right+Kt}}}function _l(e,r){const n=r?0:6;switch(e){case"top":return`translateX(-50%) translateY(-100%) translateY(${n}px)`;case"topLeft":return`translateY(-100%) translateY(${n}px)`;case"topRight":return`translateX(-100%) translateY(-100%) translateY(${n}px)`;case"bottom":return`translateX(-50%) translateY(${-n}px)`;case"bottomLeft":return`translateY(${-n}px)`;case"bottomRight":return`translateX(-100%) translateY(${-n}px)`;case"left":return`translateX(-100%) translateY(-50%) translateX(${n}px)`;case"leftTop":return`translateX(-100%) translateX(${n}px)`;case"leftBottom":return`translateX(-100%) translateY(-100%) translateX(${n}px)`;case"right":return`translateY(-50%) translateX(${-n}px)`;case"rightTop":return`translateX(${-n}px)`;case"rightBottom":return`translateY(-100%) translateX(${-n}px)`}}function El(e){const r={position:"absolute",width:"0.5rem",height:"0.5rem",backgroundColor:i.colorBg},n=`1px solid ${i.colorBorder}`;switch(e){case"top":return{...r,bottom:"-0.25rem",left:"50%",transform:"translateX(-50%) rotate(45deg)",borderRight:n,borderBottom:n};case"topLeft":return{...r,bottom:"-0.25rem",left:"1rem",transform:"rotate(45deg)",borderRight:n,borderBottom:n};case"topRight":return{...r,bottom:"-0.25rem",right:"1rem",transform:"rotate(45deg)",borderRight:n,borderBottom:n};case"bottom":return{...r,top:"-0.25rem",left:"50%",transform:"translateX(-50%) rotate(-135deg)",borderRight:n,borderBottom:n};case"bottomLeft":return{...r,top:"-0.25rem",left:"1rem",transform:"rotate(-135deg)",borderRight:n,borderBottom:n};case"bottomRight":return{...r,top:"-0.25rem",right:"1rem",transform:"rotate(-135deg)",borderRight:n,borderBottom:n};case"left":return{...r,right:"-0.25rem",top:"50%",transform:"translateY(-50%) rotate(-45deg)",borderRight:n,borderBottom:n};case"leftTop":return{...r,right:"-0.25rem",top:"0.75rem",transform:"rotate(-45deg)",borderRight:n,borderBottom:n};case"leftBottom":return{...r,right:"-0.25rem",bottom:"0.75rem",transform:"rotate(-45deg)",borderRight:n,borderBottom:n};case"right":return{...r,left:"-0.25rem",top:"50%",transform:"translateY(-50%) rotate(135deg)",borderRight:n,borderBottom:n};case"rightTop":return{...r,left:"-0.25rem",top:"0.75rem",transform:"rotate(135deg)",borderRight:n,borderBottom:n};case"rightBottom":return{...r,left:"-0.25rem",bottom:"0.75rem",transform:"rotate(135deg)",borderRight:n,borderBottom:n}}}function Il(e){return e==="top"?"bottom":e==="topLeft"?"bottomLeft":e==="topRight"?"bottomRight":e==="bottom"?"top":e==="bottomLeft"?"topLeft":e==="bottomRight"?"topRight":e==="left"?"right":e==="leftTop"?"rightTop":e==="leftBottom"?"rightBottom":e==="right"?"left":e==="rightTop"?"leftTop":e==="rightBottom"?"leftBottom":e}function Vo({title:e,content:r,children:n,placement:o="top",trigger:l="hover",open:a,onOpenChange:c,arrow:d=!0,mouseEnterDelay:f=100,mouseLeaveDelay:u=100,disabled:h=!1,className:g,style:m,classNames:y,styles:p}){const[v,k]=s.useState(!1),[j,b]=s.useState(!1),[C,x]=s.useState(!1),[w,M]=s.useState({top:0,left:0}),[R,S]=s.useState(o),B=s.useRef(null),I=s.useRef(null),T=s.useRef(null),_=s.useRef(null),L=s.useRef(null),N=s.useRef(null),$=s.useRef(!1),P=s.useRef(!0),E=a!==void 0,z=E?a:v,F=s.useRef(z);F.current=z;const A=s.useRef(z);A.current!==z&&(A.current=z,!z&&j&&!C&&x(!0),z&&C&&x(!1));const D=Array.isArray(l)?l:[l];s.useEffect(()=>{S(o)},[o]);const W=s.useCallback(Te=>{h||Te===F.current||(E||k(Te),c?.(Te))},[h,E,c]),V=s.useCallback(()=>{if(!L.current)return;const Te=L.current.getBoundingClientRect();M(pn(Te,R))},[R]),Z=s.useCallback(()=>{if(I.current&&(clearTimeout(I.current),I.current=null),T.current&&(clearTimeout(T.current),T.current=null),B.current&&clearTimeout(B.current),F.current){b(!0);return}$.current=!1,P.current=!0;const Te=D.includes("hover")?f:0;B.current=window.setTimeout(()=>{S(o),L.current&&M(pn(L.current.getBoundingClientRect(),o)),W(!0),requestAnimationFrame(()=>{requestAnimationFrame(()=>{P.current=!1,b(!0)})})},Te)},[f,D,o,W]),X=s.useCallback(()=>{B.current&&(clearTimeout(B.current),B.current=null),I.current&&clearTimeout(I.current);const Te=D.includes("hover")?u:0;I.current=window.setTimeout(()=>{b(!1),T.current=window.setTimeout(()=>W(!1),150)},Te)},[u,D,W]),U=s.useCallback(()=>{z?X():Z()},[z,Z,X]);s.useEffect(()=>{if(C)return b(!1),_.current=window.setTimeout(()=>{x(!1),_.current=null},150),()=>{_.current&&(clearTimeout(_.current),_.current=null)}},[C]),s.useEffect(()=>()=>{B.current&&clearTimeout(B.current),I.current&&clearTimeout(I.current),T.current&&clearTimeout(T.current),_.current&&clearTimeout(_.current)},[]),s.useEffect(()=>{if(!z)return;const Te=()=>V();return window.addEventListener("scroll",Te,!0),window.addEventListener("resize",Te),()=>{window.removeEventListener("scroll",Te,!0),window.removeEventListener("resize",Te)}},[z,V]),s.useLayoutEffect(()=>{if(!z||$.current||!N.current||!L.current)return;$.current=!0;const Te=N.current.getBoundingClientRect(),Ie=L.current.getBoundingClientRect(),Re=R.startsWith("top"),O=R.startsWith("bottom"),K=R.startsWith("left"),te=R.startsWith("right");let ne=!1;if(Re&&Te.top<0?window.innerHeight-Ie.bottom>Ie.top&&(ne=!0):O&&Te.bottom>window.innerHeight?Ie.top>window.innerHeight-Ie.bottom&&(ne=!0):K&&Te.left<0?window.innerWidth-Ie.right>Ie.left&&(ne=!0):te&&Te.right>window.innerWidth&&Ie.left>window.innerWidth-Ie.right&&(ne=!0),ne){const ce=Il(R);S(ce),M(pn(Ie,ce))}}),s.useEffect(()=>{if(!z||!D.includes("click"))return;const Te=Ie=>{const Re=Ie.target;L.current&&!L.current.contains(Re)&&N.current&&!N.current.contains(Re)&&X()};return document.addEventListener("mousedown",Te),()=>document.removeEventListener("mousedown",Te)},[z,D,X]);const q=s.useCallback(()=>{D.includes("hover")&&Z()},[D,Z]),H=s.useCallback(()=>{D.includes("hover")&&X()},[D,X]),re=s.useCallback(()=>{D.includes("click")&&U()},[D,U]),oe=s.useCallback(()=>{D.includes("focus")&&Z()},[D,Z]),se=s.useCallback(()=>{D.includes("focus")&&X()},[D,X]),J=s.useCallback(Te=>{D.includes("contextMenu")&&(Te.preventDefault(),U())},[D,U]),ie=s.useCallback(Te=>{Te.stopPropagation(),D.includes("hover")&&I.current&&(clearTimeout(I.current),I.current=null)},[D]),_e=s.useCallback(Te=>{Te.stopPropagation(),D.includes("hover")&&X()},[D,X]),we=typeof e=="function"?e():e,je=typeof r=="function"?r():r,ae=Y("ino-popover",g,y?.root),he={...p?.root,...m},fe=Y("ino-popover__popup-container",{"ino-popover__popup-container--no-transition":P.current}),Se={top:w.top,left:w.left,opacity:j?1:0,transform:_l(R,j),pointerEvents:j?"auto":"none"},We={...El(R),...p?.arrow},Le=(z||C)&&typeof document<"u"?nr.createPortal(t.jsxs("div",{ref:N,className:fe,style:Se,onMouseEnter:ie,onMouseLeave:_e,children:[t.jsxs("div",{className:Y("ino-popover__card",y?.popup),style:p?.popup,children:[we!=null&&t.jsx("div",{className:Y("ino-popover__title",{"ino-popover__title--bordered":je!=null},y?.title),style:p?.title,children:we}),je!=null&&t.jsx("div",{className:Y("ino-popover__content",y?.content),style:p?.content,children:je})]}),d&&t.jsx("div",{style:We,className:Y("ino-popover__arrow",y?.arrow)})]}),document.body):null;return t.jsxs("div",{ref:L,style:he,className:ae,onMouseEnter:q,onMouseLeave:H,onClick:re,onFocus:oe,onBlur:se,onContextMenu:J,children:[n,Le]})}const Jn={success:i.colorSuccess,processing:i.colorPrimary,default:i.colorBorder,error:i.colorError,warning:i.colorWarning},$l={pink:"#eb2f96",magenta:"#eb2f96",red:"#f5222d",volcano:"#fa541c",orange:"#fa8c16",gold:"#faad14",yellow:"#fadb14",lime:"#a0d911",green:"#52c41a",cyan:"#13c2c2",blue:"#1677ff",geekblue:"#2f54eb",purple:"#722ed1"};function Mn(e){return $l[e]??e}function Dl({children:e,count:r,overflowCount:n=99,dot:o=!1,showZero:l=!1,size:a="default",status:c,text:d,color:f,offset:u,title:h,className:g,style:m,classNames:y,styles:p}){const v=a==="small",k=e!=null&&e!=="",j=c!==void 0,C=o?(typeof r=="number"?r:void 0)!==0||l:r!=null?typeof r=="number"?r>0||l:!0:!1,x=o?null:typeof r=="number"?r>n?`${n}+`:`${r}`:r,w=h??(typeof r=="number"?`${r}`:void 0);if(!k&&j){const L=f?Mn(f):Jn[c];return t.jsxs("span",{className:Y("ino-badge--status",g,y?.root),style:{...p?.root,...m},children:[t.jsx("span",{className:Y("ino-badge__status-dot",y?.indicator),style:{backgroundColor:L,...p?.indicator},children:c==="processing"&&t.jsx("span",{className:"ino-badge__status-dot-pulse",style:{backgroundColor:L}})}),d!=null&&t.jsx("span",{className:"ino-badge__status-text",children:d})]})}const M=f?Mn(f):j?Jn[c]:i.colorError,R=u?-u[0]:0,S=u?u[1]:0,B=k?`translate(50%, -50%) translate(${R}px, ${S}px)`:void 0,I=Y({"ino-badge__sup":k,"ino-badge__sup--with-children":k},y?.indicator),T=o?Y("ino-badge__dot",v?"ino-badge__dot--small":"ino-badge__dot--default"):Y("ino-badge__indicator",v?"ino-badge__indicator--small":"ino-badge__indicator--default"),_={backgroundColor:M,...k?{transform:B}:{},...p?.indicator};return k?t.jsxs("span",{className:Y("ino-badge",g,y?.root),style:{...p?.root,...m},children:[e,C&&t.jsx(Nt,{content:w,disabled:!w,children:t.jsx("sup",{className:Y(T,I),style:_,children:x})})]}):C?t.jsx("span",{className:Y("ino-badge--standalone",g,y?.root),style:{...p?.root,...m},children:t.jsx(Nt,{content:w,disabled:!w,children:t.jsx("sup",{className:Y(T,I),style:_,children:x})})}):null}function Pl({children:e,text:r,color:n=i.colorPrimary,placement:o="end",className:l,style:a,classNames:c,styles:d}){const f=o==="end",u=Mn(n);return t.jsxs("div",{className:Y("ino-badge-ribbon-wrapper",l,c?.wrapper),style:{...d?.wrapper,...a},children:[e,t.jsxs("div",{className:Y("ino-badge-ribbon",f?"ino-badge-ribbon--end":"ino-badge-ribbon--start",c?.ribbon),style:{backgroundColor:u,...d?.ribbon},children:[t.jsx("span",{className:c?.content,style:d?.content,children:r}),t.jsx("div",{className:Y("ino-badge-ribbon__corner",f?"ino-badge-ribbon__corner--end":"ino-badge-ribbon__corner--start",c?.corner),style:{backgroundColor:u,...d?.corner}})]})]})}const Al=Object.assign(Dl,{Ribbon:Pl}),zl={primary:{base:i.colorPrimary,contrast:i.colorPrimaryContrast},secondary:{base:i.colorSecondary,contrast:i.colorSecondaryContrast},success:{base:i.colorSuccess,contrast:i.colorSuccessContrast},warning:{base:i.colorWarning,contrast:i.colorWarningContrast},error:{base:i.colorError,contrast:i.colorErrorContrast},info:{base:i.colorInfo,contrast:i.colorInfoContrast}};function Fl({icon:e,description:r,position:n="bottom-right",shape:o="circle",size:l="md",color:a="primary",tooltip:c,tooltipPosition:d,offsetX:f=24,offsetY:u=24,shadow:h="lg",bordered:g=!0,onBackToTop:m,visibleOnScroll:y,disabled:p,className:v,style:k,onClick:j,_inGroup:b,classNames:C,styles:x,...w}){const[M,R]=s.useState(!1),[S,B]=s.useState(y===void 0),I=s.useRef(null);s.useEffect(()=>{if(y===void 0)return;const V=()=>{B(window.scrollY>=y)};return window.addEventListener("scroll",V),V(),()=>window.removeEventListener("scroll",V)},[y]);const T={sm:{iconSize:16},md:{iconSize:20},lg:{iconSize:24}},_={"top-left":{top:u,left:f},"top-right":{top:u,right:f},"bottom-left":{bottom:u,left:f},"bottom-right":{bottom:u,right:f}},L=()=>d||(n.includes("right")?"left":n.includes("left")?"right":"left"),N=!k?.position||k.position==="fixed"||k.position==="absolute",$=h===!0?"lg":h,P=zl[a],E=Y("ino-bubble",`ino-bubble--${o}`,`ino-bubble--${l}`,{"ino-bubble--bordered":g,"ino-bubble--disabled":p,"ino-bubble--in-group":b,"ino-bubble--hovered":M,[`ino-bubble--shadow-${$}`]:!!h},v,C?.root),z={"--_base":P.base,"--_contrast":P.contrast,...N?_[n]:{},zIndex:M?1002:N?1e3:void 0,...x?.root,...k},F=V=>{p||(m&&(window.scrollTo({top:0,behavior:"smooth"}),m()),j?.(V))};if(!S)return null;const A=L(),D={top:{bottom:"100%",left:"50%",marginBottom:"0.5rem",transform:`translateX(-50%) translateY(${M?0:6}px)`},bottom:{top:"100%",left:"50%",marginTop:"0.5rem",transform:`translateX(-50%) translateY(${M?0:-6}px)`},left:{right:"100%",top:"50%",marginRight:"0.5rem",transform:`translateY(-50%) translateX(${M?0:6}px)`},right:{left:"100%",top:"50%",marginLeft:"0.5rem",transform:`translateY(-50%) translateX(${M?0:-6}px)`}},W={top:{bottom:"-0.25rem",left:"50%",transform:"translateX(-50%) rotate(45deg)",borderRight:`1px solid ${i.colorBorder}`,borderBottom:`1px solid ${i.colorBorder}`},bottom:{top:"-0.25rem",left:"50%",transform:"translateX(-50%) rotate(-135deg)",borderRight:`1px solid ${i.colorBorder}`,borderBottom:`1px solid ${i.colorBorder}`},left:{right:"-0.25rem",top:"50%",transform:"translateY(-50%) rotate(-45deg)",borderRight:`1px solid ${i.colorBorder}`,borderBottom:`1px solid ${i.colorBorder}`},right:{left:"-0.25rem",top:"50%",transform:"translateY(-50%) rotate(135deg)",borderRight:`1px solid ${i.colorBorder}`,borderBottom:`1px solid ${i.colorBorder}`}};return t.jsxs("button",{ref:I,disabled:p,className:E,style:z,onMouseEnter:()=>R(!0),onMouseLeave:()=>R(!1),onClick:F,...w,children:[e?t.jsx("span",{className:Y("ino-bubble__icon",C?.icon),style:{fontSize:T[l].iconSize,...x?.icon},children:e}):r?t.jsx("span",{className:C?.icon,style:x?.icon,children:r}):t.jsx(_r,{size:T[l].iconSize}),c&&t.jsxs("div",{className:Y("ino-bubble__tooltip",{"ino-bubble__tooltip--visible":M},C?.tooltip),style:{...D[A],...x?.tooltip},role:"tooltip",children:[c,t.jsx("div",{className:Y("ino-bubble__tooltip-arrow",C?.tooltipArrow),style:{...W[A],...x?.tooltipArrow}})]})]})}function Nl({children:e,position:r="bottom-right",direction:n="top",size:o="md",offsetX:l=24,offsetY:a=24,shadow:c="lg",style:d,className:f}){const u={"top-left":{top:a,left:l},"top-right":{top:a,right:l},"bottom-left":{bottom:a,left:l},"bottom-right":{bottom:a,right:l}},h=n==="top"||n==="bottom",g=c===!0?"lg":c,y={flexDirection:(()=>{switch(n){case"top":return"column-reverse";case"bottom":return"column";case"left":return"row-reverse";case"right":return"row"}})(),boxShadow:g?`var(--j-shadow${g.charAt(0).toUpperCase()+g.slice(1)})`:void 0,...u[r],...d},v=s.Children.toArray(e).filter(s.isValidElement),k=v.length,j="0.5rem",b=C=>{const x=C===0,w=C===k-1;if(k===1)return j;if(h){const R=n==="top"?w:x,S=n==="top"?x:w;if(R)return`${j} ${j} 0 0`;if(S)return`0 0 ${j} ${j}`}else{const R=n==="right"?w:x,S=n==="right"?x:w;if(R)return`${j} 0 0 ${j}`;if(S)return`0 ${j} ${j} 0`}return"0"};return t.jsx("div",{className:Y("ino-bubble-group",f),style:y,children:v.map((C,x)=>s.isValidElement(C)?s.cloneElement(C,{key:x,style:{position:"relative",borderRadius:b(x),...C.props.style},size:C.props.size||o,shape:"square",shadow:!1,_inGroup:!0}):null)})}function Wl({children:e,position:r="bottom-right",direction:n="top",trigger:o="click",icon:l,openIcon:a,shape:c="circle",size:d="md",color:f="primary",offsetX:u=24,offsetY:h=24,shadow:g="lg",tooltip:m,defaultOpen:y=!1,open:p,onOpenChange:v,gap:k=12,style:j,className:b,classNames:C,styles:x}){const[w,M]=s.useState(y),R=p!==void 0,S=R?p:w,B=Z=>{R||M(Z),v?.(Z)},I=()=>{o==="click"&&B(!S)},T=()=>{o==="hover"&&B(!0)},_=()=>{o==="hover"&&B(!1)},L={sm:40,md:48,lg:56},N=L[d]===40?16:L[d]===48?20:24,$={"top-left":{top:h,left:u},"top-right":{top:h,right:u},"bottom-left":{bottom:h,left:u},"bottom-right":{bottom:h,right:u}},P=n==="top"||n==="bottom",E=()=>{switch(n){case"top":return"column-reverse";case"bottom":return"column";case"left":return"row-reverse";case"right":return"row"}},z=j?.position==="relative"||j?.position==="static",A=s.Children.toArray(e).filter(s.isValidElement),D=()=>{if(S)return 0;switch(n){case"top":return 20;case"bottom":return-20;case"left":return 20;case"right":return-20}},W=()=>{const Z=k;switch(n){case"top":return{bottom:"100%",left:"50%",transform:"translateX(-50%)",paddingBottom:Z};case"bottom":return{top:"100%",left:"50%",transform:"translateX(-50%)",paddingTop:Z};case"left":return{right:"100%",top:"50%",transform:"translateY(-50%)",paddingRight:Z};case"right":return{left:"100%",top:"50%",transform:"translateY(-50%)",paddingLeft:Z}}};if(z)return t.jsxs("div",{className:Y("ino-bubble-menu","ino-bubble-menu--inline",b,C?.root),style:{...x?.root,...j},onMouseEnter:T,onMouseLeave:_,children:[t.jsx(Ar,{icon:a?S?a:l||t.jsx(_r,{size:N}):l||t.jsx(_r,{size:N}),shape:c,size:d,color:f,shadow:g,tooltip:S?void 0:m,onClick:I,_inGroup:!0,className:C?.trigger,style:{position:"relative",transform:!a&&S?"rotate(45deg)":"rotate(0deg)",transition:"transform 0.3s cubic-bezier(0.4, 0, 0.2, 1)",...x?.trigger}}),t.jsx("div",{className:Y("ino-bubble-menu__children",C?.menu),style:{flexDirection:E(),gap:k,pointerEvents:S?"auto":"none",...W(),...x?.menu},children:A.map((Z,X)=>{if(!s.isValidElement(Z))return null;const U=X*.05,q=D(),H=P?"Y":"X";return s.cloneElement(Z,{key:X,style:{position:"relative",opacity:S?1:0,transform:`translate${H}(${q}px)`,transition:`opacity 0.2s ease-out ${U}s, transform 0.2s ease-out ${U}s`,pointerEvents:S?"auto":"none",...Z.props.style},size:Z.props.size||d,shape:Z.props.shape||c,shadow:Z.props.shadow!==void 0?Z.props.shadow:g})})})]});const V={flexDirection:E(),gap:k,position:j?.position==="absolute"?void 0:"fixed",...$[r],...x?.root,...j};return t.jsxs("div",{className:Y("ino-bubble-menu",b,C?.root),style:V,onMouseEnter:T,onMouseLeave:_,children:[t.jsx(Ar,{icon:a?S?a:l||t.jsx(_r,{size:N}):l||t.jsx(_r,{size:N}),shape:c,size:d,color:f,shadow:g,tooltip:S?void 0:m,onClick:I,_inGroup:!0,className:C?.trigger,style:{position:"relative",transform:!a&&S?"rotate(45deg)":"rotate(0deg)",transition:"transform 0.3s cubic-bezier(0.4, 0, 0.2, 1)",...x?.trigger}}),A.map((Z,X)=>{if(!s.isValidElement(Z))return null;const U=X*.05,q=D(),H=P?"Y":"X";return s.cloneElement(Z,{key:X,style:{position:"relative",opacity:S?1:0,transform:`translate${H}(${q}px)`,transition:`opacity 0.2s ease-out ${U}s, transform 0.2s ease-out ${U}s`,pointerEvents:S?"auto":"none",...Z.props.style},size:Z.props.size||d,shape:Z.props.shape||c,shadow:Z.props.shadow!==void 0?Z.props.shadow:g})})]})}const Ar=Fl;Ar.Group=Nl;Ar.Menu=Wl;function _r({size:e}){return t.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),t.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})}function Hl({size:e=20}){return t.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"18 15 12 9 6 15"})})}function Ol({size:e=20}){return t.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})})}function Vl({size:e=20}){return t.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("path",{d:"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"}),t.jsx("path",{d:"M13.73 21a2 2 0 0 1-3.46 0"})]})}function Yl({size:e=20}){return t.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),t.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}function Kl({children:e,type:r="default",size:n="md",disabled:o=!1,mark:l=!1,code:a=!1,keyboard:c=!1,underline:d=!1,delete:f=!1,weight:u,lineHeight:h,italic:g=!1,copyable:m=!1,ellipsis:y=!1,className:p,style:v,classNames:k,styles:j}){const[b,C]=s.useState(!1),[x,w]=s.useState(!1),M=y?typeof y=="object"?y:{rows:1}:null,R=M?.expandable??!1,S=M?.rows??1,B=async()=>{const P=typeof m=="object"&&m.text?m.text:typeof e=="string"?e:"";if(P)try{await navigator.clipboard.writeText(P),C(!0),typeof m=="object"&&m.onCopy&&m.onCopy(),setTimeout(()=>C(!1),2e3)}catch(E){console.error("Failed to copy text:",E)}},I=()=>{const P=!x;w(P),M?.onExpand?.(P)},T=Y(`ino-text--${n}`,o?"ino-text--disabled":`ino-text--${r}`,u?`ino-text--weight-${u}`:void 0,h?`ino-text--lh-${h}`:void 0,{"ino-text--italic":g,"ino-text--underline":d,"ino-text--delete":f},p,k?.root);let _=e;l&&(_=t.jsx("mark",{className:"ino-text__mark",children:_})),a&&(_=t.jsx("code",{className:"ino-text__code",children:_})),c&&(_=t.jsx("kbd",{className:"ino-text__kbd",children:_}));const L=m&&t.jsx(Nt,{content:b?"Copiado!":"Copiar",delay:100,children:t.jsx("button",{onClick:B,disabled:o,className:Y("ino-text__copy-btn",{"ino-text__copy-btn--copied":b},k?.copyButton),style:j?.copyButton,children:b?t.jsx(ql,{size:14}):t.jsx(Ul,{size:14})})}),N=R&&t.jsx("button",{onClick:I,className:Y("ino-text__expand-btn",k?.expandButton),style:j?.expandButton,children:x?"menos":"mas"});if(R){if(S>1){const E=x?void 0:"ino-text--ellipsis-multi",z=x?{}:{WebkitLineClamp:S};return t.jsxs("div",{className:T,style:{...j?.root,...v},children:[t.jsx("div",{className:Y(E,k?.content),style:{...z,...j?.content},children:_}),N,L]})}const P=x?void 0:"ino-text--ellipsis-1";return t.jsxs("span",{className:Y("ino-text--expandable-single",T),style:{...j?.root,...v},children:[t.jsx("span",{className:Y("ino-text__content--expandable-single",P,k?.content),style:j?.content,children:_}),N,L]})}if(M&&S>1)return t.jsxs("div",{className:Y("ino-text--ellipsis-multi",T),style:{WebkitLineClamp:S,...j?.root,...v},children:[k?.content||j?.content?t.jsx("span",{className:k?.content,style:j?.content,children:_}):_,L]});const $=M&&S===1?"ino-text--ellipsis-1":void 0;return t.jsxs("span",{className:Y($,T),style:{...j?.root,...v},children:[k?.content||j?.content?t.jsx("span",{className:k?.content,style:j?.content,children:_}):_,L]})}function Ul({size:e=16}){return t.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),t.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})}function ql({size:e=16}){return t.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"20 6 9 17 4 12"})})}const Gl={default:{line:i.colorBorder,text:i.colorText},primary:{line:i.colorPrimary,text:i.colorPrimary},secondary:{line:i.colorSecondary,text:i.colorSecondary},success:{line:i.colorSuccess,text:i.colorSuccess},warning:{line:i.colorWarning,text:i.colorWarning},error:{line:i.colorError,text:i.colorError},info:{line:i.colorInfo,text:i.colorInfo}},Xl={thin:1,normal:1,medium:2,thick:3};function Ql({type:e="horizontal",dashed:r=!1,orientation:n="center",orientationMargin:o,plain:l=!1,color:a="default",thickness:c="normal",children:d,className:f,style:u,classNames:h,styles:g}){const m=r?"dashed":"solid",y=Gl[a],p=y.line,v=typeof c=="number"?c:Xl[c];if(e==="vertical")return t.jsx("span",{className:Y("ino-divider","ino-divider--vertical",f,h?.root),style:{borderInlineStart:`${v}px ${m} ${p}`,...g?.root,...u},role:"separator"});if(!d)return t.jsx("div",{className:Y("ino-divider",f,h?.root),style:{borderBlockStart:`${v}px ${m} ${p}`,...g?.root,...u},role:"separator"});const j=(()=>{const w=o!==void 0?typeof o=="number"?`${o}px`:o:null;switch(n){case"left":return{before:w||"5%",after:"95%"};case"right":return{before:"95%",after:w||"5%"};default:return{before:"50%",after:"50%"}}})(),b={borderBlockStart:`${v}px ${m} ${p}`,flexGrow:0,flexShrink:0},C={...b,width:j.before},x={...b,width:j.after};return o!==void 0&&n!=="center"?n==="left"?(C.width=typeof o=="number"?`${o}px`:o,C.flexGrow=0,x.width="auto",x.flexGrow=1):(C.width="auto",C.flexGrow=1,x.width=typeof o=="number"?`${o}px`:o,x.flexGrow=0):n==="center"?(C.flexGrow=1,x.flexGrow=1,C.width="auto",x.width="auto"):n==="left"?(x.flexGrow=1,x.width="auto"):(C.flexGrow=1,C.width="auto"),t.jsxs("div",{className:Y("ino-divider","ino-divider--with-text",f,h?.root),style:{...g?.root,...u},role:"separator",children:[t.jsx("span",{className:Y("ino-divider__line",h?.line),style:{...C,...g?.line}}),t.jsx("span",{className:Y("ino-divider__text",l?"ino-divider__text--plain":"ino-divider__text--styled",h?.text),style:{color:y.text,...g?.text},children:d}),t.jsx("span",{className:Y("ino-divider__line",h?.line),style:{...x,...g?.line}})]})}const Zl={"flex-start":"start",center:"center","flex-end":"end","space-between":"between","space-around":"around","space-evenly":"evenly",start:"start",end:"end",normal:"normal"},Jl={"flex-start":"start",center:"center","flex-end":"end",stretch:"stretch",baseline:"baseline",start:"start",end:"end",normal:"normal"};function ea({children:e,vertical:r=!1,wrap:n="nowrap",justify:o="normal",align:l="normal",gap:a,flex:c,component:d="div",className:f,style:u}){const g=typeof n=="boolean"?n?"wrap":"nowrap":n,m=typeof a=="string",y=()=>{if(!(a===void 0||m))return typeof a=="number"?a:`${a[1]}px ${a[0]}px`},p=Y("ino-flex",r?"ino-flex--column":"ino-flex--row",`ino-flex--${g}`,`ino-flex--justify-${Zl[o]??o}`,`ino-flex--align-${Jl[l]??l}`,m?`ino-flex--gap-${a}`:void 0,f),v={gap:y(),flex:c,...u};return t.jsx(d,{className:p,style:v,children:e})}const Or=24,Yo={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1600},ta=["xxl","xl","lg","md","sm","xs"],Ko=s.createContext({gutter:[0,0]});function gn(e,r){if(typeof e!="object"||e===null)return e;const n=e;for(const o of ta)if(r>=Yo[o]&&n[o]!==void 0)return n[o]}function Uo(){return typeof window>"u"?1200:window.innerWidth}function qo({children:e,gutter:r=0,align:n="top",justify:o="start",wrap:l=!0,className:a,style:c}){const d=Uo(),f=()=>{if(typeof r=="number")return[r,0];if(Array.isArray(r)){const y=typeof r[0]=="number"?r[0]:gn(r[0],d)??0,p=typeof r[1]=="number"?r[1]:gn(r[1],d)??0;return[y,p]}return[gn(r,d)??0,0]},[u,h]=f(),g=Y("ino-row",l?"ino-row--wrap":"ino-row--nowrap",`ino-row--align-${n}`,`ino-row--justify-${o}`,a),m={marginLeft:u?-(u/2):void 0,marginRight:u?-(u/2):void 0,rowGap:h||void 0,...c};return t.jsx(Ko.Provider,{value:{gutter:[u,h]},children:t.jsx("div",{className:g,style:m,children:e})})}function Go({children:e,span:r,offset:n,push:o,pull:l,order:a,flex:c,xs:d,sm:f,md:u,lg:h,xl:g,xxl:m,className:y,style:p}){const{gutter:v}=s.useContext(Ko),k=Uo(),b=(()=>{const P=[{bp:"xxl",value:m},{bp:"xl",value:g},{bp:"lg",value:h},{bp:"md",value:u},{bp:"sm",value:f},{bp:"xs",value:d}];for(const{bp:E,value:z}of P)if(z!==void 0&&k>=Yo[E])return typeof z=="number"?{span:z}:z;return{span:r,offset:n,push:o,pull:l,order:a,flex:c}})(),C=b.span??r,x=b.offset??n??0,w=b.push??o??0,M=b.pull??l??0,R=b.order??a,S=b.flex??c,B=()=>{if(!S&&C!==void 0)return C===0?"none":`${C/Or*100}%`},I=()=>{if(x!==0)return`${x/Or*100}%`},T=()=>w===0&&M===0?{}:{position:"relative",left:w?`${w/Or*100}%`:void 0,right:M?`${M/Or*100}%`:void 0},_=B(),L=_==="none",N=Y("ino-col",{"ino-col--hidden":L},y),$={paddingLeft:v[0]?v[0]/2:void 0,paddingRight:v[0]?v[0]/2:void 0,flex:S??(_&&!L?`0 0 ${_}`:void 0),maxWidth:L?void 0:_,marginLeft:I(),order:R,...T(),...p};return t.jsx("div",{className:N,style:$,children:e})}const ra={Row:qo,Col:Go},na={xs:480,sm:576,md:768,lg:992,xl:1200,xxl:1600},Xo=s.createContext({siderCollapsed:!1});function oa({children:e,hasSider:r,className:n,style:o}){const l=Y("ino-layout",{"ino-layout--has-sider":r},n);return t.jsx("div",{className:l,style:o,children:e})}function Qo({children:e,className:r,style:n}){return t.jsx("header",{className:Y("ino-layout__header",r),style:n,children:e})}function Zo({children:e,className:r,style:n}){return t.jsx("footer",{className:Y("ino-layout__footer",r),style:n,children:e})}function Jo({children:e,className:r,style:n}){return t.jsx("main",{className:Y("ino-layout__content",r),style:n,children:e})}function es({children:e,width:r=200,collapsedWidth:n=80,collapsible:o=!1,collapsed:l,defaultCollapsed:a=!1,reverseArrow:c=!1,breakpoint:d,theme:f="dark",trigger:u,onCollapse:h,onBreakpoint:g,className:m,style:y,classNames:p,styles:v}){const[k,j]=s.useState(a),[b,C]=s.useState(!1),x=l!==void 0,w=x?l:k;s.useEffect(()=>{if(!d||typeof window>"u")return;const T=()=>{const _=window.innerWidth<na[d];_!==b&&(C(_),g?.(_),_&&!w?(x||j(!0),h?.(!0,"responsive")):!_&&w&&b&&(x||j(!1),h?.(!1,"responsive")))};return T(),window.addEventListener("resize",T),()=>window.removeEventListener("resize",T)},[d,b,w,x,g,h]);const M=()=>{const T=!w;x||j(T),h?.(T,"clickTrigger")},R=w?n:typeof r=="number"?r:parseInt(r),S={flex:`0 0 ${R}px`,maxWidth:R,minWidth:R,width:R,...v?.root,...y},B=Y("ino-layout__sider",`ino-layout__sider--${f}`,m,p?.root),I=()=>{if(!o||u===null)return null;if(n===0&&w){const _=Y("ino-layout__sider-trigger","ino-layout__sider-trigger--zero",`ino-layout__sider-trigger--${f}`,p?.trigger);return t.jsx("div",{className:_,style:v?.trigger,onClick:M,children:u||t.jsx(eo,{collapsed:w,reverseArrow:c})})}const T=Y("ino-layout__sider-trigger",`ino-layout__sider-trigger--${f}`,p?.trigger);return t.jsx("div",{className:T,style:v?.trigger,onClick:M,children:u||t.jsx(eo,{collapsed:w,reverseArrow:c})})};return t.jsx(Xo.Provider,{value:{siderCollapsed:w},children:t.jsxs("aside",{className:B,style:S,children:[t.jsx("div",{className:Y("ino-layout__sider-content",p?.content),style:v?.content,children:e}),I()]})})}function eo({collapsed:e,reverseArrow:r}){const n=r?e:!e;return t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:Y("ino-layout__trigger-icon",{"ino-layout__trigger-icon--collapsed":n}),children:t.jsx("polyline",{points:"15 18 9 12 15 6"})})}function sa(){return s.useContext(Xo)}const ia=Object.assign(oa,{Header:Qo,Footer:Zo,Content:Jo,Sider:es}),Rn=s.createContext(null);function la(){return s.useContext(Rn)}const aa={small:"0.5rem",middle:"1rem",large:"1.5rem"},or="0.5rem";function Vr(e){return typeof e=="number"?e:aa[e]}function mn(e){return typeof e=="number"?`${e}px`:e}function ca({children:e,size:r="small",direction:n="horizontal",align:o,wrap:l=!1,split:a,className:c,style:d,classNames:f,styles:u}){const h=s.Children.toArray(e);if(h.length===0)return null;const[g,m]=Array.isArray(r)?[Vr(r[0]),Vr(r[1])]:[Vr(r),Vr(r)],y=o??(n==="horizontal"?"center":void 0),p=Y("ino-space",`ino-space--${n}`,l?"ino-space--wrap":"ino-space--nowrap",y?`ino-space--align-${y}`:void 0,c,f?.root),k={...a?{}:{gap:g===m?mn(g):`${mn(m)} ${mn(g)}`},...u?.root,...d};if(!a)return t.jsx("div",{className:p,style:k,children:f?.item||u?.item?h.map((b,C)=>t.jsx("div",{className:f?.item,style:u?.item,children:b},C)):h});const j=n==="vertical";return t.jsx("div",{className:p,style:k,children:h.map((b,C)=>t.jsxs(s.Fragment,{children:[f?.item||u?.item?t.jsx("div",{className:f?.item,style:u?.item,children:b}):b,C<h.length-1&&t.jsx("span",{className:Y("ino-space__separator",f?.separator),style:{margin:j?typeof m=="number"?`${m/2}px 0`:`calc(${m} / 2) 0`:typeof g=="number"?`0 ${g/2}px`:`0 calc(${g} / 2)`,...u?.separator},children:a})]},C))})}function ua({children:e,direction:r="horizontal",block:n=!1,className:o,style:l}){const a=s.Children.toArray(e);if(a.length===0)return null;const c=r==="vertical",d=Y("ino-space-compact",`ino-space-compact--${r}`,{"ino-space-compact--block":n},o);return t.jsx("div",{className:d,style:l,children:a.map((f,u)=>{const h=u===0,g=u===a.length-1,m={};c?(h?m.borderRadius=`${or} ${or} 0 0`:g?m.borderRadius=`0 0 ${or} ${or}`:m.borderRadius=0,h||(m.marginTop=-1)):(h?m.borderRadius=`${or} 0 0 ${or}`:g?m.borderRadius=`0 ${or} ${or} 0`:m.borderRadius=0,h||(m.marginLeft=-1));const y={isFirstItem:h,isLastItem:g,direction:r};return s.isValidElement(f)?t.jsx(Rn.Provider,{value:y,children:s.cloneElement(f,{style:{...f.props.style||{},...m}})},u):t.jsx(Rn.Provider,{value:y,children:f},u)})})}const da=Object.assign(ca,{Compact:ua}),fa={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1600},ha=["xxl","xl","lg","md","sm","xs"];function Yr(e,r,n){if(e===void 0)return n;if(typeof e!="object"||e===null)return e;const o=e;for(const l of ha)if(r>=fa[l]&&o[l]!==void 0)return o[l];return n}function pa(){const[e,r]=s.useState(()=>typeof window>"u"?1200:window.innerWidth);return s.useEffect(()=>{if(typeof window>"u")return;const n=()=>r(window.innerWidth);return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[]),e}function ga({item:e,index:r,column:n,columnWidth:o,horizontalGutter:l,verticalGutter:a,itemRender:c,onResize:d,fresh:f,itemClassName:u,itemStyle:h}){const g=s.useRef(null);s.useEffect(()=>{if(!f||!d||!g.current)return;const p=new ResizeObserver(v=>{for(const k of v)d(e.key,k.contentRect.height)});return p.observe(g.current),()=>p.disconnect()},[f,e.key,d]),s.useEffect(()=>{g.current&&d&&d(e.key,g.current.offsetHeight)},[e.key,d]);const m=e.children??c?.({...e,index:r,assignedColumn:n}),y={width:o,marginBottom:a,paddingLeft:l/2,paddingRight:l/2,...h};return t.jsx("div",{ref:g,className:Y("ino-waterfall__item",u),style:y,children:m})}function ma({items:e=[],columns:r=3,gutter:n=0,itemRender:o,fresh:l=!1,onLayoutChange:a,className:c,style:d,classNames:f,styles:u},h){const g=s.useRef(null),[m,y]=s.useState(new Map),p=pa();s.useEffect(()=>{h&&(typeof h=="function"?h({nativeElement:g.current}):h.current={nativeElement:g.current})},[h]);const v=Yr(r,p,3),[k,j]=s.useMemo(()=>{if(typeof n=="number")return[n,n];if(Array.isArray(n)){const I=Yr(n[0],p,0),T=Yr(n[1],p,0);return[I,T]}const B=Yr(n,p,0);return[B,B]},[n,p]),b=`${100/v}%`,C=s.useCallback((B,I)=>{y(T=>{const _=new Map(T);return _.set(B,I),_})},[]),{columnItems:x,layoutInfo:w}=s.useMemo(()=>{const B=Array.from({length:v},()=>[]),I=Array(v).fill(0),T=[];for(let _=0;_<e.length;_++){const L=e[_];let N;if(L.column!==void 0&&L.column>=0&&L.column<v)N=L.column;else{N=0;let P=I[0];for(let E=1;E<v;E++)I[E]<P&&(P=I[E],N=E)}B[N].push(L);const $=L.height??m.get(L.key)??0;I[N]+=$+j,T.push({key:L.key,column:N})}return{columnItems:B,layoutInfo:T}},[e,v,m,j]),M=s.useRef("");s.useEffect(()=>{const B=JSON.stringify(w);B!==M.current&&(M.current=B,a?.(w))},[w,a]);const R={marginLeft:k?-(k/2):void 0,marginRight:k?-(k/2):void 0,...u?.root,...d},S={width:b,...u?.column};return t.jsx("div",{ref:g,className:Y("ino-waterfall",c,f?.root),style:R,children:x.map((B,I)=>t.jsx("div",{className:Y("ino-waterfall__column",f?.column),style:S,children:B.map(T=>t.jsx(ga,{item:T,index:e.findIndex(_=>_.key===T.key),column:I,columnWidth:"100%",horizontalGutter:k,verticalGutter:j,itemRender:o,onResize:C,fresh:l,itemClassName:f?.item,itemStyle:u?.item},T.key))},I))})}const xa=s.forwardRef(ma);function to(e,r){if(e!==void 0)return typeof e=="number"?e:e.endsWith("%")?parseFloat(e)/100*r:parseFloat(e)}function ts(e){return null}function ya({isVertical:e,onMouseDown:r,collapsibleStart:n,collapsibleEnd:o,onCollapseStart:l,onCollapseEnd:a,isStartCollapsed:c,isEndCollapsed:d,barClassName:f,barStyle:u,collapseButtonClassName:h,collapseButtonStyle:g}){const m=e?"vertical":"horizontal",y=Y("ino-splitter__bar",`ino-splitter__bar--${m}`,f),p=Y("ino-splitter__bar-line",`ino-splitter__bar-line--${m}`),v=j=>{const C=j==="start"?"-0.875rem":"0.875rem";return e?{top:"50%",left:"50%",transform:`translate(calc(-50% + ${C}), -50%)`}:{top:"50%",left:"50%",transform:`translate(-50%, calc(-50% + ${C}))`}},k=j=>{const b=j==="start",C=b?c:d;return e?C?b?"▼":"▲":b?"▲":"▼":C?b?"▶":"◀":b?"◀":"▶"};return t.jsxs("div",{className:y,style:u,onMouseDown:r,children:[t.jsx("div",{className:p}),n&&t.jsx("button",{className:Y("ino-splitter__collapse-btn",h),style:{...v("start"),...g},onClick:j=>{j.stopPropagation(),l()},onMouseDown:j=>j.stopPropagation(),children:k("start")}),o&&t.jsx("button",{className:Y("ino-splitter__collapse-btn",h),style:{...v("end"),...g},onClick:j=>{j.stopPropagation(),a()},onMouseDown:j=>j.stopPropagation(),children:k("end")})]})}function ba({children:e,orientation:r="horizontal",lazy:n=!1,onResize:o,onResizeStart:l,onResizeEnd:a,className:c,style:d,classNames:f,styles:u}){const h=s.useRef(null),g=r==="vertical",m=[];s.Children.forEach(e,$=>{s.isValidElement($)&&$.type===ts&&m.push({defaultSize:$.props.defaultSize,size:$.props.size,min:$.props.min,max:$.props.max,resizable:$.props.resizable??!0,collapsible:$.props.collapsible??!1,children:$.props.children,style:$.props.style,className:$.props.className})});const y=m.length,[p,v]=s.useState(()=>{const $=[];let P=0;for(const F of m)if(F.defaultSize!==void 0||F.size!==void 0){const A=F.size??F.defaultSize;if(typeof A=="string"&&A.endsWith("%")){const D=parseFloat(A);$.push(D),P+=D}else $.push(-(typeof A=="number"?A:parseFloat(A)))}else $.push(0);const E=100-P,z=$.filter(F=>F===0).length;if(z>0){const F=E/z;return $.map(A=>A===0?F:A<0?-A:A)}return $.map(F=>F<0?-F:F)}),[k,j]=s.useState(()=>Array(y).fill(!1)),b=s.useRef([]),C=s.useRef(null),[x,w]=s.useState(!1),M=s.useRef(null),R=s.useRef(null);s.useEffect(()=>{if(!m.some(F=>F.size!==void 0))return;const P=h.current?g?h.current.offsetHeight:h.current.offsetWidth:0,E=m.map((F,A)=>{if(F.size===void 0)return p[A]??100/y;const D=F.size;if(typeof D=="string"&&D.endsWith("%"))return parseFloat(D);const W=typeof D=="number"?D:parseFloat(D);return P>0?W/P*100:W});E.some((F,A)=>Math.abs(F-(p[A]??0))>.01)&&v(E)}),s.useEffect(()=>{if(!h.current)return;const $=g?h.current.offsetHeight:h.current.offsetWidth;if($===0)return;let P=!1;const E=p.map((z,F)=>{const A=m[F];if(A&&A.size===void 0&&A.defaultSize!==void 0){const D=A.defaultSize;if(typeof D=="number"&&D>100)return P=!0,D/$*100}return z});P&&v(E)},[]);const S=s.useCallback($=>{if(!h.current)return $;const P=g?h.current.offsetHeight:h.current.offsetWidth;return $.map((E,z)=>{const F=m[z];if(!F)return E;const A=to(F.min,P),D=to(F.max,P),W=A!==void 0?A/P*100:0,V=D!==void 0?D/P*100:100;return Math.min(Math.max(E,W),V)})},[g,m]),B=s.useCallback($=>P=>{if(P.preventDefault(),!h.current||!m[$]?.resizable||!m[$+1]?.resizable)return;const E=g?h.current.offsetHeight:h.current.offsetWidth,z=g?P.clientY:P.clientX;C.current={barIndex:$,startPos:z,startSizes:[...p],containerSize:E},w(!0),l?.(p),n&&(M.current=[...p])},[g,m,p,l,n]);s.useEffect(()=>{if(!x)return;const $=E=>{if(!C.current)return;const{barIndex:z,startPos:F,startSizes:A,containerSize:D}=C.current,Z=((g?E.clientY:E.clientX)-F)/D*100,X=[...A];X[z]=A[z]+Z,X[z+1]=A[z+1]-Z;const U=[...X],q=A[z]+A[z+1],H=S(U);U[z]=H[z],U[z+1]=q-U[z];const re=S(U);if(U[z+1]=re[z+1],U[z]=q-U[z+1],n){if(M.current=U,R.current&&C.current){const oe=m.length-1,se=C.current.containerSize-oe*12,ie=U.slice(0,C.current.barIndex+1).reduce((_e,we)=>_e+we,0)/100*se+C.current.barIndex*12+6;g?(R.current.style.top=`${ie}px`,R.current.style.left="0"):(R.current.style.left=`${ie}px`,R.current.style.top="0"),R.current.style.display="block"}}else v(U),o?.(U)},P=()=>{R.current&&(R.current.style.display="none"),n&&M.current&&(v(M.current),o?.(M.current),M.current=null),w(!1),C.current=null,a?.(p)};return document.addEventListener("mousemove",$),document.addEventListener("mouseup",P),()=>{document.removeEventListener("mousemove",$),document.removeEventListener("mouseup",P)}},[x,g,S,n,p,o,a]);const I=s.useCallback($=>{j(P=>{const E=[...P];if(E[$]){const z=b.current[$]||100/y;v(F=>{const A=[...F],D=$===0?1:$-1;return A[D]-=z-A[$],A[$]=z,o?.(A),A}),E[$]=!1}else b.current[$]=p[$],v(z=>{const F=[...z],A=$===0?1:$-1;return F[A]+=F[$],F[$]=0,o?.(F),F}),E[$]=!0;return E})},[y,p,o]),T=p,_=g?"vertical":"horizontal",L=Y("ino-splitter",`ino-splitter--${_}`,c,f?.root),N={...u?.root,...d};return t.jsxs("div",{ref:h,className:L,style:N,children:[x&&t.jsx("div",{className:Y("ino-splitter__overlay",`ino-splitter__overlay--${_}`)}),n&&t.jsx("div",{ref:R,className:Y("ino-splitter__lazy-indicator",`ino-splitter__lazy-indicator--${_}`)}),m.map(($,P)=>{const E=Y("ino-splitter__panel",{"ino-splitter__panel--animated":!x},$.className,f?.panel),z={flexBasis:`${T[P]}%`,...u?.panel,...$.style},F=(A,D)=>{const W=A==="start"?D:D+1,V=m[W];return V?typeof V.collapsible=="boolean"?V.collapsible:typeof V.collapsible=="object"?A==="start"?!!V.collapsible.start:!!V.collapsible.end:!1:!1};return t.jsxs("div",{style:{display:"contents"},children:[t.jsx("div",{className:E,style:z,children:$.children}),P<y-1&&t.jsx(ya,{isVertical:g,onMouseDown:B(P),collapsibleStart:F("end",P)||typeof m[P]?.collapsible=="boolean"&&!!m[P]?.collapsible,collapsibleEnd:F("start",P)||typeof m[P+1]?.collapsible=="boolean"&&!!m[P+1]?.collapsible,onCollapseStart:()=>I(P),onCollapseEnd:()=>I(P+1),isStartCollapsed:k[P],isEndCollapsed:k[P+1],barClassName:f?.bar,barStyle:u?.bar,collapseButtonClassName:f?.collapseButton,collapseButtonStyle:u?.collapseButton})]},P)})]})}const va=Object.assign(ba,{Panel:ts});function Ca(){return window}function ka(e){return e===window?window.scrollY||document.documentElement.scrollTop:e.scrollTop}function ro(e,r){if(r===window)return e.getBoundingClientRect().top+window.scrollY;const n=r,o=n.getBoundingClientRect();return e.getBoundingClientRect().top-o.top+n.scrollTop}function rs(e){const r=[];for(const n of e)r.push(n),n.children&&r.push(...rs(n.children));return r}function wa({items:e=[],direction:r="vertical",offsetTop:n=0,targetOffset:o,bounds:l=5,getContainer:a=Ca,getCurrentAnchor:c,onChange:d,onClick:f,replace:u=!1,className:h,style:g,classNames:m,styles:y}){const[p,v]=s.useState(""),k=s.useRef(null),j=s.useRef(null),b=s.useRef(new Map),C=s.useRef(!1),x=s.useRef(p);x.current=p;const w=r==="vertical",M=rs(e),R=o??n,S=s.useCallback(($,P)=>{P?b.current.set($,P):b.current.delete($)},[]),B=s.useCallback(()=>{if(C.current)return;if(c){const z=c(x.current);z!==x.current&&(v(z),d?.(z));return}const $=a(),P=ka($)+n+l;let E="";for(const z of M){if(!z.href.startsWith("#"))continue;const F=z.href.slice(1),A=document.getElementById(F);if(!A)continue;ro(A,$)<=P&&(E=z.href)}!E&&M.length>0&&(E=M[0].href),E!==x.current&&(v(E),d?.(E))},[M,l,a,c,n,d]);s.useEffect(()=>{const $=a(),P=()=>{B()};return $.addEventListener("scroll",P,{passive:!0}),B(),()=>{$.removeEventListener("scroll",P)}},[B,a]),s.useEffect(()=>{if(!k.current||!j.current)return;const $=b.current.get(p);if(!$){k.current.style.opacity="0";return}const P=j.current.getBoundingClientRect(),E=$.getBoundingClientRect();if(w?(k.current.style.top=`${E.top-P.top}px`,k.current.style.height=`${E.height}px`):(k.current.style.left=`${E.left-P.left}px`,k.current.style.width=`${E.width}px`),k.current.style.opacity="1",!w&&j.current){const z=j.current,F=$.offsetLeft-z.offsetWidth/2+$.offsetWidth/2;z.scrollTo({left:F,behavior:"smooth"})}},[p,w]);const I=s.useCallback(($,P,E)=>{if(f?.($,{title:E,href:P}),!P.startsWith("#"))return;$.preventDefault();const z=P.slice(1),F=document.getElementById(z);if(!F)return;C.current=!0;const A=a(),W=ro(F,A)-R;A===window?window.scrollTo({top:W,behavior:"smooth"}):A.scrollTo({top:W,behavior:"smooth"}),v(P),d?.(P),u?window.history.replaceState(null,"",P):window.history.pushState(null,"",P),setTimeout(()=>{C.current=!1},500)},[a,f,d,u,R]),T=w?"vertical":"horizontal",_=($,P=0)=>$.map(E=>{const z=p===E.href,F=Y("ino-anchor__link",`ino-anchor__link--${T}`,{"ino-anchor__link--active":z},m?.link),A={...w&&P>0?{paddingLeft:`${P+1}rem`}:{},...y?.link},D=t.jsx("a",{ref:W=>S(E.href,W),href:E.href,className:F,style:A,onClick:W=>I(W,E.href,E.title),children:E.title});return t.jsxs("div",{className:w?void 0:"ino-anchor__link-wrapper--horizontal",children:[D,w&&E.children&&E.children.length>0&&t.jsx("div",{children:_(E.children,P+1)})]},E.key)}),L=Y("ino-anchor",`ino-anchor--${T}`,h,m?.root),N={...y?.root,...g};return t.jsxs("div",{ref:j,className:L,style:N,children:[t.jsx("div",{className:Y("ino-anchor__track",`ino-anchor__track--${T}`,m?.track),style:y?.track}),t.jsx("div",{ref:k,className:Y("ino-anchor__indicator",`ino-anchor__indicator--${T}`,m?.indicator),style:y?.indicator}),_(e)]})}const ja=wa;function Sa(){return t.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{marginLeft:"0.125rem"},children:t.jsx("polyline",{points:"6 9 12 15 18 9"})})}function Ma({items:e,style:r,className:n}){const o={position:"absolute",top:"100%",left:0,marginTop:"0.25rem",minWidth:"7.5rem",backgroundColor:i.colorBg,border:`1px solid ${i.colorBorder}`,borderRadius:"0.375rem",boxShadow:i.shadowMd,padding:"0.25rem 0",zIndex:1050,maxHeight:"min(16rem, 40vh)",overflowY:"auto",overscrollBehavior:"contain",...r},l={display:"flex",alignItems:"center",gap:"0.375rem",padding:"0.625rem 0.75rem",minHeight:"2.75rem",fontSize:"0.875rem",color:i.colorText,textDecoration:"none",cursor:"pointer",border:"none",backgroundColor:"transparent",width:"100%",textAlign:"left"};return t.jsx("div",{style:o,className:n,children:e.map(a=>{const c=t.jsxs(t.Fragment,{children:[a.icon&&t.jsx("span",{style:{display:"inline-flex",fontSize:"0.875rem"},children:a.icon}),a.title]});return a.href?t.jsx("a",{href:a.href,style:l,onClick:a.onClick,onMouseEnter:d=>{d.currentTarget.style.backgroundColor=i.colorBgMuted},onMouseLeave:d=>{d.currentTarget.style.backgroundColor="transparent"},children:c},a.key):t.jsx("span",{style:l,onClick:a.onClick,onMouseEnter:d=>{d.currentTarget.style.backgroundColor=i.colorBgMuted},onMouseLeave:d=>{d.currentTarget.style.backgroundColor="transparent"},children:c},a.key)})})}function Ra({items:e=[],separator:r="/",itemRender:n,params:o,className:l,style:a,classNames:c,styles:d}){const[f,u]=s.useState(null),h=[];e.forEach(p=>{p.path?h.push((h.length>0?h[h.length-1]+"/":"")+p.path):h.push(h.length>0?h[h.length-1]:"")});const g=be({fontSize:"0.875rem",color:i.colorTextMuted},d?.root,a),m={display:"flex",flexWrap:"wrap",alignItems:"center",margin:0,padding:0,listStyle:"none",...d?.list},y=(p,v)=>{const k=v===e.length-1;if(n)return n(p,o,e,h);const j=t.jsxs(t.Fragment,{children:[p.icon&&t.jsx("span",{style:{display:"inline-flex",marginRight:p.title?"0.25rem":0,fontSize:"0.875rem"},children:p.icon}),p.title,p.menu&&t.jsx(Sa,{})]}),b={display:"inline-flex",alignItems:"center",textDecoration:"none",transition:"color 0.2s ease"},C=d?.link?.color,x=C??i.colorTextMuted,w=C??i.colorPrimary,M=C??i.colorText;return k?t.jsx("span",{style:{...b,color:M,fontWeight:500,...d?.link,...p.style},className:xt(p.className,c?.link),children:j}):p.href?t.jsx("a",{href:p.href,style:{...b,color:x,cursor:"pointer",...d?.link,...p.style},className:xt(p.className,c?.link),onClick:p.onClick,onMouseEnter:R=>{R.currentTarget.style.color=w},onMouseLeave:R=>{R.currentTarget.style.color=x},children:j}):p.onClick?t.jsx("span",{style:{...b,color:x,cursor:"pointer",...d?.link,...p.style},className:xt(p.className,c?.link),onClick:p.onClick,onMouseEnter:R=>{R.currentTarget.style.color=w},onMouseLeave:R=>{R.currentTarget.style.color=x},children:j}):t.jsx("span",{style:{...b,color:x,...d?.link,...p.style},className:xt(p.className,c?.link),children:j})};return t.jsx("nav",{"aria-label":"breadcrumb",style:g,className:xt(l,c?.root),children:t.jsx("ol",{style:m,className:c?.list,children:e.map((p,v)=>{const k=v===e.length-1,j=p.menu&&p.menu.items.length>0;return t.jsxs(s.Fragment,{children:[t.jsxs("li",{style:{display:"inline-flex",alignItems:"center",position:j?"relative":void 0,...d?.item},className:c?.item,"aria-current":k?"page":void 0,onMouseEnter:j?()=>u(v):void 0,onMouseLeave:j?()=>u(null):void 0,children:[y(p,v),j&&f===v&&t.jsx(Ma,{items:p.menu.items,style:d?.overlay,className:c?.overlay})]}),!k&&t.jsx("li",{"aria-hidden":"true",style:{margin:"0 0.5rem",color:i.colorTextSubtle,userSelect:"none",...d?.separator},className:c?.separator,children:r})]},v)})})})}const Ba={bottom:{top:"100%",left:"50%",transform:"translateX(-50%)",paddingTop:"0.25rem"},bottomLeft:{top:"100%",left:0,paddingTop:"0.25rem"},bottomRight:{top:"100%",right:0,paddingTop:"0.25rem"},top:{bottom:"100%",left:"50%",transform:"translateX(-50%)",paddingBottom:"0.25rem"},topLeft:{bottom:"100%",left:0,paddingBottom:"0.25rem"},topRight:{bottom:"100%",right:0,paddingBottom:"0.25rem"}},Ta={bottom:{top:-4,left:"50%",transform:"translateX(-50%) rotate(-135deg)"},bottomLeft:{top:-4,left:16,transform:"rotate(-135deg)"},bottomRight:{top:-4,right:16,transform:"rotate(-135deg)"},top:{bottom:-4,left:"50%",transform:"translateX(-50%) rotate(45deg)"},topLeft:{bottom:-4,left:16,transform:"rotate(45deg)"},topRight:{bottom:-4,right:16,transform:"rotate(45deg)"}};function La(e,r){const n=r?0:6,o=e.startsWith("top");return`${e==="bottom"||e==="top"?"translateX(-50%) ":""}translateY(${o?n:-n}px)`}function _a(){return t.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"6 9 12 15 18 9"})})}function Ea(){return t.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"9 18 15 12 9 6"})})}function ns({items:e,globalOnClick:r,onCloseDropdown:n,classNames:o,styles:l,isSubmenu:a=!1}){const[c,d]=s.useState(null),f=Y("ino-dropdown__menu",{"ino-dropdown__menu--submenu":a}),u=a?void 0:l?.overlay,h=(g,m)=>{g.disabled||(g.onClick?.({key:g.key,domEvent:m}),r?.({key:g.key,domEvent:m}),n())};return t.jsx("div",{style:u,className:Y(f,a?void 0:o?.overlay),children:e.map(g=>g.type==="divider"?t.jsx("div",{className:"ino-dropdown__divider"},g.key):g.type==="group"?t.jsxs("div",{children:[t.jsx("div",{className:"ino-dropdown__group-title",children:g.title}),g.children?.map(m=>t.jsx(no,{item:m,globalOnClick:r,onCloseDropdown:n,onItemClick:h,hoveredSubmenu:c,setHoveredSubmenu:d,classNames:o,styles:l},m.key))]},g.key):t.jsx(no,{item:g,globalOnClick:r,onCloseDropdown:n,onItemClick:h,hoveredSubmenu:c,setHoveredSubmenu:d,classNames:o,styles:l},g.key))})}function no({item:e,globalOnClick:r,onCloseDropdown:n,onItemClick:o,hoveredSubmenu:l,setHoveredSubmenu:a,classNames:c,styles:d}){const f=e.children&&e.children.length>0,u=Y("ino-dropdown__item",{"ino-dropdown__item--danger":!!e.danger,"ino-dropdown__item--disabled":!!e.disabled,"ino-dropdown__item--has-children":!!f},c?.item);return t.jsxs("div",{className:u,style:d?.item,onClick:!e.disabled&&!f?h=>o(e,h):void 0,onMouseEnter:()=>{f&&a(e.key)},onMouseLeave:()=>{f&&a(null)},children:[e.icon&&t.jsx("span",{className:"ino-dropdown__item-icon",children:e.icon}),t.jsx("span",{className:"ino-dropdown__item-label",children:e.label}),f&&t.jsx("span",{className:"ino-dropdown__item-chevron",children:t.jsx(Ea,{})}),f&&l===e.key&&t.jsx("div",{className:"ino-dropdown__submenu",children:t.jsx(ns,{items:e.children,globalOnClick:r,onCloseDropdown:n,classNames:c,styles:d,isSubmenu:!0})})]})}function os({children:e,menu:r,trigger:n=["hover"],placement:o="bottomLeft",arrow:l=!1,open:a,onOpenChange:c,disabled:d=!1,dropdownRender:f,className:u,style:h,classNames:g,styles:m}){const[y,p]=s.useState(!1),[v,k]=s.useState(!1),[j,b]=s.useState(o),C=s.useRef(null),x=s.useRef(null),w=s.useRef(null),M=a!==void 0,R=M?a:y,S=W=>{d||(M||p(W),c?.(W))},B=()=>{C.current&&(clearTimeout(C.current),C.current=null),b(o),C.current=window.setTimeout(()=>{S(!0),requestAnimationFrame(()=>{requestAnimationFrame(()=>{k(!0)})})},100)},I=()=>{C.current&&(clearTimeout(C.current),C.current=null),k(!1),C.current=window.setTimeout(()=>{S(!1)},150)},T=()=>{R?I():B()};s.useLayoutEffect(()=>{if(!R||!w.current||!x.current)return;const W=w.current.getBoundingClientRect(),V=x.current.getBoundingClientRect(),Z=V.top,X=window.innerHeight-V.bottom,U=j.startsWith("top");!U&&W.bottom>window.innerHeight?Z>X&&b(q=>q.replace("bottom","top").replace("Bottom","Top")):U&&W.top<0&&X>Z&&b(q=>q.replace("top","bottom").replace("Top","Bottom"))}),s.useEffect(()=>{b(o)},[o]),s.useEffect(()=>()=>{C.current&&clearTimeout(C.current)},[]),s.useEffect(()=>{if(!R||!n.includes("click"))return;const W=V=>{x.current&&!x.current.contains(V.target)&&I()};return document.addEventListener("mousedown",W),()=>document.removeEventListener("mousedown",W)},[R,n]);const _=W=>{n.includes("contextMenu")&&(W.preventDefault(),T())},L=()=>{n.includes("hover")&&B()},N=()=>{n.includes("hover")&&I()},$=()=>{n.includes("click")&&T()},P=r?t.jsx(ns,{items:r.items,globalOnClick:r.onClick,onCloseDropdown:I,classNames:g,styles:m}):null,E=f?f(P):P,z={...Ba[j],opacity:v?1:0,transform:La(j,v)},F={...Ta[j],...m?.arrow},A=Y("ino-dropdown",u,g?.root),D={...m?.root,...h};return t.jsxs("div",{ref:x,style:D,className:A,onMouseEnter:L,onMouseLeave:N,onContextMenu:_,children:[t.jsx("span",{onClick:$,className:"ino-dropdown__trigger",children:e}),R&&t.jsxs("div",{ref:w,className:"ino-dropdown__overlay-container",style:z,children:[l&&t.jsx("div",{style:F,className:Y("ino-dropdown__arrow",g?.arrow)}),E]})]})}function Ia({children:e,menu:r,placement:n="bottomRight",trigger:o=["hover"],onClick:l,icon:a,disabled:c=!1,loading:d=!1,variant:f="primary",color:u,size:h="md",className:g,style:m,classNames:y,styles:p}){return t.jsxs("div",{style:{...m,...p?.root},className:Y("ino-dropdown-button",g,y?.root),children:[t.jsx(Pr,{variant:f,color:u,size:h,disabled:c,loading:d,onClick:l,className:"ino-dropdown-button__main",children:e}),t.jsx(os,{menu:r,trigger:o,placement:n,disabled:c,classNames:y,styles:p,children:t.jsx(Pr,{variant:f,color:u,size:h,disabled:c,icon:a||t.jsx(_a,{}),className:"ino-dropdown-button__icon"})})]})}const $a=Object.assign(os,{Button:Ia});function cn(e){return"type"in e&&e.type==="divider"}function zr(e){return"type"in e&&e.type==="group"}function ss(e){return!cn(e)&&!zr(e)&&"children"in e&&Array.isArray(e.children)}function Da(){return t.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"9 18 15 12 9 6"})})}function oo(){return t.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"6 9 12 15 18 9"})})}function Pa({item:e,ctx:r}){return t.jsx("li",{role:"separator",className:Y("ino-menu__divider",{"ino-menu__divider--dashed":e.dashed},r.classNames?.divider),style:r.styles?.divider})}function Aa({item:e,ctx:r,level:n}){const o={...r.mode==="inline"&&!r.inlineCollapsed?{paddingLeft:16+r.inlineIndent*n}:{},...r.styles?.groupTitle};return t.jsxs("li",{role:"presentation",className:Y("ino-menu__group",r.classNames?.group),style:r.styles?.group,children:[t.jsx("div",{className:Y("ino-menu__group-title",r.classNames?.groupTitle),style:o,children:e.label}),t.jsx("ul",{role:"group",className:"ino-menu__group-list",children:e.children.map(l=>t.jsx(rn,{item:l,ctx:r,level:n,keyPath:[]},tn(l)))})]})}function za({item:e,ctx:r,level:n,keyPath:o}){const l=r.selectedKeys.includes(e.key),a=r.mode==="horizontal",c=r.mode==="vertical",d=r.mode==="inline",f=d&&r.inlineCollapsed,u=[e.key,...o],h=Y("ino-menu__item",{"ino-menu__item--horizontal":a,"ino-menu__item--vertical":c,"ino-menu__item--disabled":e.disabled,"ino-menu__item--danger":e.danger,"ino-menu__item--selected":l,"ino-menu__item--collapsed":f},r.classNames?.item),g={...d&&!f?{paddingLeft:16+r.inlineIndent*n}:{},...r.styles?.item},m=p=>{e.disabled||r.onItemClick(e,u,p)},y=t.jsxs(t.Fragment,{children:[e.icon&&t.jsx("span",{className:"ino-menu__item-icon",children:e.icon}),(!f||!e.icon)&&t.jsx("span",{className:"ino-menu__item-label",children:e.label})]});return t.jsx("li",{role:"menuitem",className:h,style:g,title:f?void 0:e.title,onClick:m,children:f&&e.title?t.jsx(Nt,{content:e.title,position:"right",delay:100,children:y}):y})}function Fa({item:e,ctx:r,level:n,keyPath:o}){const l=s.useRef(null),a=r.openKeys.includes(e.key),c=r.mode==="horizontal",d=r.mode==="inline",f=r.mode==="vertical",u=d&&r.inlineCollapsed,h=c||f||u,g=[e.key,...o],m=Bn(e.children,r.selectedKeys),y=Y("ino-menu__submenu-trigger",{"ino-menu__submenu-trigger--horizontal":c,"ino-menu__submenu-trigger--disabled":e.disabled,"ino-menu__submenu-trigger--active":m,"ino-menu__submenu-trigger--collapsed":u},r.classNames?.item),p={...d&&!u?{paddingLeft:16+r.inlineIndent*n}:{},...r.styles?.item},v=M=>{e.disabled||(M.stopPropagation(),(r.triggerSubMenuAction==="click"||d)&&r.onSubMenuToggle(e.key))},k=()=>{e.disabled||!h||r.triggerSubMenuAction==="hover"&&r.onSubMenuMouseEnter(e.key)},j=()=>{h&&r.triggerSubMenuAction==="hover"&&r.onSubMenuMouseLeave(e.key)},b=r.expandIcon??(h?c?t.jsx(oo,{}):t.jsx(Da,{}):t.jsx(oo,{})),C=Y("ino-menu__expand-icon",{"ino-menu__expand-icon--open":a&&!h}),x=Y("ino-menu__submenu-popup",c?"ino-menu__submenu-popup--horizontal":"ino-menu__submenu-popup--vertical",r.classNames?.submenu),w=Y("ino-menu__submenu-inline",a?"ino-menu__submenu-inline--open":"ino-menu__submenu-inline--closed",r.classNames?.submenu);return t.jsxs("li",{role:"none",className:Y("ino-menu__submenu-wrapper",{"ino-menu__submenu-wrapper--popup":h}),onMouseEnter:k,onMouseLeave:j,children:[t.jsxs("div",{role:"menuitem","aria-expanded":a,className:y,style:p,onClick:v,children:[e.icon&&t.jsx("span",{className:"ino-menu__item-icon",children:e.icon}),(!u||!e.icon)&&t.jsx("span",{className:"ino-menu__item-label",children:e.label}),(!u||!e.icon)&&t.jsx("span",{className:C,children:b})]}),h&&a&&t.jsx("ul",{ref:l,role:"menu",className:x,style:r.styles?.submenu,children:e.children.map(M=>t.jsx(rn,{item:M,ctx:r,level:0,keyPath:g},tn(M)))}),!h&&t.jsx("ul",{role:"menu",className:w,style:r.styles?.submenu,children:e.children.map(M=>t.jsx(rn,{item:M,ctx:r,level:n+1,keyPath:g},tn(M)))})]})}function tn(e){return"key"in e&&e.key!=null?String(e.key):cn(e)?`divider-${Math.random()}`:zr(e)?`group-${Math.random()}`:`item-${Math.random()}`}function Bn(e,r){for(const n of e)if(!cn(n)&&!zr(n)&&"key"in n&&r.includes(n.key)||ss(n)&&Bn(n.children,r)||zr(n)&&Bn(n.children,r))return!0;return!1}function rn({item:e,ctx:r,level:n,keyPath:o}){return cn(e)?t.jsx(Pa,{item:e,ctx:r}):zr(e)?t.jsx(Aa,{item:e,ctx:r,level:n}):ss(e)?t.jsx(Fa,{item:e,ctx:r,level:n,keyPath:o}):t.jsx(za,{item:e,ctx:r,level:n,keyPath:o})}function Na({items:e=[],mode:r="vertical",selectedKeys:n,defaultSelectedKeys:o=[],openKeys:l,defaultOpenKeys:a=[],multiple:c=!1,selectable:d=!0,inlineCollapsed:f=!1,inlineIndent:u=24,triggerSubMenuAction:h="hover",onClick:g,onSelect:m,onDeselect:y,onOpenChange:p,expandIcon:v,className:k,style:j,classNames:b,styles:C}){const[x,w]=s.useState(o),M=n??x,[R,S]=s.useState(a),B=l??R,I=s.useRef(new Map);s.useEffect(()=>()=>{I.current.forEach(W=>clearTimeout(W))},[]);const T=s.useRef(B);T.current=B;const _=W=>{l===void 0&&S(W),p?.(W)},E={mode:r,selectedKeys:M,openKeys:B,inlineCollapsed:f,inlineIndent:u,triggerSubMenuAction:h,expandIcon:v,selectable:d,multiple:c,classNames:b,styles:C,onItemClick:(W,V,Z)=>{const X={key:W.key,keyPath:V,domEvent:Z};if(W.onClick?.(X),g?.(X),d){const U=M.includes(W.key);let q;c?U?(q=M.filter(H=>H!==W.key),y?.({...X,selectedKeys:q})):(q=[...M,W.key],m?.({...X,selectedKeys:q})):(q=[W.key],U||m?.({...X,selectedKeys:q})),n===void 0&&w(q)}},onSubMenuToggle:W=>{const V=T.current,Z=V.includes(W);_(Z?V.filter(X=>X!==W):[...V,W])},onSubMenuMouseEnter:W=>{const V=new Set;I.current.forEach((U,q)=>{clearTimeout(U),V.add(q)}),I.current.clear();let X=T.current.filter(U=>!V.has(U));X.includes(W)||(X=[...X,W]),_(X)},onSubMenuMouseLeave:W=>{const V=window.setTimeout(()=>{const Z=T.current;_(Z.filter(X=>X!==W)),I.current.delete(W)},150);I.current.set(W,V)}},z=r==="horizontal",F=r==="inline",A=Y("ino-menu",`ino-menu--${r}`,{"ino-menu--collapsed":F&&f},k,b?.root),D={...C?.root,...j};return t.jsx("ul",{role:z?"menubar":"menu",className:A,style:D,children:e.map(W=>t.jsx(rn,{item:W,ctx:E,level:0,keyPath:[]},tn(W)))})}function so(e,r,n){return Math.max(r,Math.min(n,e))}function Wa(e,r,n){if(r<=0)return[];const o=n?2:3,l=[];if(r<=o*2+3){for(let d=1;d<=r;d++)l.push(d);return l}l.push(1);const a=Math.max(2,e-o),c=Math.min(r-1,e+o);a>2&&l.push("jump-prev");for(let d=a;d<=c;d++)l.push(d);return c<r-1&&l.push("jump-next"),r>1&&l.push(r),l}function mr({page:e,type:r,isActive:n,disabled:o,size:l,showTitle:a,itemRender:c,itemStyle:d,itemClassName:f,onClick:u}){const h=l==="small",g=r==="jump-prev"||r==="jump-next",m=h?"1.5rem":"2rem",y=h?"0.75rem":"0.875rem",p=h?12:14,v={display:"inline-flex",alignItems:"center",justifyContent:"center",minWidth:m,height:m,fontSize:y,lineHeight:1,padding:"0 0.25rem",border:g?"none":"1px solid",borderColor:g?"transparent":n?i.colorPrimary:i.colorBorder,borderRadius:"0.375rem",backgroundColor:g?"transparent":n?i.colorPrimary:i.colorBg,color:g?i.colorTextMuted:n?i.colorPrimaryContrast:i.colorText,fontWeight:n?600:400,cursor:o?"not-allowed":"pointer",opacity:o?.5:1,transition:"all 0.2s",userSelect:"none",...d};let k;a&&(r==="prev"?k="Previous Page":r==="next"?k="Next Page":r==="jump-prev"?k="Previous 5 Pages":r==="jump-next"?k="Next 5 Pages":k=String(e));let j;r==="prev"?j=t.jsx("svg",{width:p,height:p,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"15 18 9 12 15 6"})}):r==="next"?j=t.jsx("svg",{width:p,height:p,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"9 6 15 12 9 18"})}):g?j=t.jsx("span",{style:{letterSpacing:"0.125rem",fontWeight:700},children:"•••"}):j=e;const b=r==="prev"||r==="next"||r==="jump-prev"||r==="jump-next",C=t.jsx("button",{type:"button",disabled:o,"aria-label":r==="prev"?"Previous":r==="next"?"Next":void 0,"aria-current":n?"page":void 0,style:v,className:f,onMouseEnter:w=>{if(o||n)return;const M=w.currentTarget;g||(M.style.borderColor=i.colorPrimary),M.style.color=i.colorPrimary},onMouseLeave:w=>{if(o||n)return;const M=w.currentTarget;g?M.style.color=i.colorTextMuted:(M.style.borderColor=i.colorBorder,M.style.color=i.colorText)},children:j}),x=c?c(e,r,C):C;return t.jsx("li",{style:{listStyle:"none",cursor:o?"not-allowed":"pointer"},onClick:o?void 0:u,children:k&&b?t.jsx(Nt,{content:k,delay:300,children:x}):x})}function Ha({value:e,options:r,disabled:n,size:o,onChange:l,itemsPerPage:a="/ page"}){const[c,d]=s.useState(!1),f=s.useRef(null),u=o==="small",h=u?"1.5rem":"2rem",g=u?"0.75rem":"0.875rem";s.useEffect(()=>{if(!c)return;const v=k=>{f.current&&!f.current.contains(k.target)&&d(!1)};return document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[c]);const m={display:"inline-flex",alignItems:"center",gap:"0.375rem",height:h,border:"1px solid",borderColor:c?i.colorPrimary:i.colorBorder,borderRadius:"0.375rem",backgroundColor:i.colorBg,color:i.colorText,fontSize:g,padding:u?"0 0.5rem":"0 0.75rem",cursor:n?"not-allowed":"pointer",opacity:n?.5:1,transition:"border-color 0.2s",userSelect:"none",whiteSpace:"nowrap"},y={position:"absolute",top:"100%",left:0,marginTop:"0.25rem",minWidth:"100%",backgroundColor:i.colorBg,border:`1px solid ${i.colorBorder}`,borderRadius:"0.5rem",boxShadow:i.shadowMd,padding:"0.25rem 0",zIndex:1050},p=v=>{l(v),d(!1)};return t.jsxs("div",{ref:f,style:{position:"relative"},children:[t.jsxs("div",{role:"button",tabIndex:n?-1:0,style:m,onClick:()=>{n||d(!c)},onKeyDown:v=>{(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),n||d(!c))},onMouseEnter:v=>{n||c||(v.currentTarget.style.borderColor=i.colorPrimary)},onMouseLeave:v=>{n||c||(v.currentTarget.style.borderColor=i.colorBorder)},children:[t.jsxs("span",{children:[e," ",a]}),t.jsx("svg",{width:10,height:10,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{transition:"transform 0.2s",transform:c?"rotate(180deg)":"rotate(0deg)",opacity:.6},children:t.jsx("polyline",{points:"6 9 12 15 18 9"})})]}),c&&t.jsx("div",{style:y,children:r.map(v=>t.jsxs("div",{style:{padding:"0.375rem 0.75rem",fontSize:g,cursor:"pointer",color:v===e?i.colorPrimary:i.colorText,fontWeight:v===e?600:400,transition:"background-color 0.15s ease",whiteSpace:"nowrap"},onClick:()=>p(v),onMouseEnter:k=>{k.currentTarget.style.backgroundColor=i.colorBgMuted},onMouseLeave:k=>{k.currentTarget.style.backgroundColor="transparent"},children:[v," ",a]},v))})]})}function is({total:e=0,current:r,defaultCurrent:n=1,pageSize:o,defaultPageSize:l=10,pageSizeOptions:a=[10,20,50,100],showSizeChanger:c,showQuickJumper:d=!1,showTotal:f,simple:u=!1,size:h="default",disabled:g=!1,hideOnSinglePage:m=!1,showLessItems:y=!1,showTitle:p=!0,itemRender:v,onChange:k,onShowSizeChange:j,className:b,style:C,classNames:x,styles:w}){const{locale:M}=qt(),R=M.Pagination,[S,B]=s.useState(n),[I,T]=s.useState(l),_=r??S,L=o??I,N=Math.max(1,Math.ceil(e/L)),$=so(_,1,N),P=c??e>50,E=fe=>{const Se=so(fe,1,N);Se!==$&&(r===void 0&&B(Se),k?.(Se,L))},z=fe=>{o===void 0&&T(fe);const Se=Math.max(1,Math.ceil(e/fe)),We=Math.min($,Se);r===void 0&&B(We),j?.(We,fe),k?.(We,fe)},[F,A]=s.useState(""),D=fe=>{if(fe.key==="Enter"){const Se=parseInt(F,10);isNaN(Se)||E(Se),A("")}},[W,V]=s.useState(String($));u&&W!==String($)&&document.activeElement?.tagName!=="INPUT"&&V(String($));const Z=fe=>{if(fe.key==="Enter"){const Se=parseInt(W,10);isNaN(Se)||E(Se)}},X=()=>{const fe=parseInt(W,10);isNaN(fe)||E(fe),V(String($))};if(m&&N<=1)return null;const U=h==="small",q=U?"1.5rem":"2rem",H=U?"0.75rem":"0.875rem",re=U?"0.25rem":"0.5rem",oe={display:"flex",alignItems:"center",gap:re,color:i.colorText,fontSize:H},se=be(oe,w?.root,C),J={width:"3.125rem",height:q,border:`1px solid ${i.colorBorder}`,borderRadius:"0.375rem",textAlign:"center",backgroundColor:i.colorBg,color:i.colorText,fontSize:H,outline:"none",transition:"border-color 0.2s"},ie=fe=>{fe.currentTarget.style.borderColor=i.colorPrimary},_e=fe=>{fe.currentTarget.style.borderColor=i.colorBorder};if(u)return t.jsx("nav",{"aria-label":"pagination",style:se,className:xt(b,x?.root),children:t.jsxs("ul",{style:{display:"flex",alignItems:"center",gap:re,listStyle:"none",margin:0,padding:0},children:[t.jsx(mr,{page:$-1,type:"prev",isActive:!1,disabled:g||$<=1,size:h,showTitle:p,itemRender:v,itemStyle:w?.item,itemClassName:x?.item,onClick:()=>E($-1)}),t.jsxs("li",{style:{display:"flex",alignItems:"center",gap:"0.25rem",listStyle:"none"},children:[t.jsx("input",{type:"text",value:W,disabled:g,style:{...J,...g?{opacity:.5,cursor:"not-allowed"}:{}},onChange:fe=>V(fe.target.value),onKeyDown:Z,onBlur:X,onFocus:ie}),t.jsx("span",{style:{color:i.colorTextMuted},children:"/"}),t.jsx("span",{style:{color:i.colorTextMuted},children:N})]}),t.jsx(mr,{page:$+1,type:"next",isActive:!1,disabled:g||$>=N,size:h,showTitle:p,itemRender:v,itemStyle:w?.item,itemClassName:x?.item,onClick:()=>E($+1)})]})});const we=Wa($,N,y),je=5,ae=e===0?0:($-1)*L+1,he=Math.min($*L,e);return t.jsxs("nav",{"aria-label":"pagination",style:se,className:xt(b,x?.root),children:[f&&t.jsx("span",{style:{color:i.colorTextMuted,fontSize:H,marginRight:"0.25rem"},children:f(e,[ae,he])}),t.jsxs("ul",{style:{display:"flex",alignItems:"center",gap:re,listStyle:"none",margin:0,padding:0},children:[t.jsx(mr,{page:$-1,type:"prev",isActive:!1,disabled:g||$<=1,size:h,showTitle:p,itemRender:v,itemStyle:w?.item,itemClassName:x?.item,onClick:()=>E($-1)}),we.map((fe,Se)=>fe==="jump-prev"||fe==="jump-next"?t.jsx(mr,{page:fe==="jump-prev"?Math.max(1,$-je):Math.min(N,$+je),type:fe,isActive:!1,disabled:g,size:h,showTitle:p,itemRender:v,itemStyle:w?.item,itemClassName:x?.item,onClick:()=>{E(fe==="jump-prev"?Math.max(1,$-je):Math.min(N,$+je))}},`${fe}-${Se}`):t.jsx(mr,{page:fe,type:"page",isActive:fe===$,disabled:g,size:h,showTitle:p,itemRender:v,itemStyle:w?.item,itemClassName:x?.item,onClick:()=>E(fe)},fe)),t.jsx(mr,{page:$+1,type:"next",isActive:!1,disabled:g||$>=N,size:h,showTitle:p,itemRender:v,itemStyle:w?.item,itemClassName:x?.item,onClick:()=>E($+1)})]}),(P||d)&&t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:re,...w?.options},className:x?.options,children:[P&&t.jsx(Ha,{value:L,options:a,disabled:g,size:h,onChange:z,itemsPerPage:R?.itemsPerPage}),d&&t.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"0.25rem",color:i.colorText,fontSize:H},children:[R?.jumpTo??"Go to",t.jsx("input",{type:"text",value:F,disabled:g,style:{...J,...g?{opacity:.5,cursor:"not-allowed"}:{}},onChange:fe=>A(fe.target.value),onKeyDown:D,onFocus:ie,onBlur:fe=>{_e(fe)}})]})]})]})}const Oa=({size:e})=>t.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"20 6 9 17 4 12"})}),Va=({size:e})=>t.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),t.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]});function Ya({percent:e,ringSize:r,iconSize:n}){const l=(r-3)/2,a=2*Math.PI*l,c=a-e/100*a,f=n/2-2-r/2;return t.jsxs("svg",{width:r,height:r,style:{position:"absolute",top:f,left:f,transform:"rotate(-90deg)"},children:[t.jsx("circle",{cx:r/2,cy:r/2,r:l,fill:"none",stroke:i.colorBorder,strokeWidth:3}),t.jsx("circle",{cx:r/2,cy:r/2,r:l,fill:"none",stroke:i.colorPrimary,strokeWidth:3,strokeDasharray:a,strokeDashoffset:c,strokeLinecap:"round",style:{transition:"stroke-dashoffset 0.3s"}})]})}function Ka(e){switch(e){case"finish":return i.colorPrimary;case"error":return i.colorError;default:return i.colorBorder}}function Ua({item:e,index:r,stepStatus:n,isFirst:o,isLast:l,isClickable:a,isVertical:c,isNavigation:d,isDot:f,progressDotRender:u,showPercent:h,percent:g,size:m,labelVertical:y,prevTailColor:p,classNames:v,styles:k,onClick:j}){const b=m==="small",C=b?"1.5rem":"2rem",x=b?24:32,w=b?"0.75rem":"0.875rem",M=b?12:14,R=b?"0.875rem":"1rem",S=b?"0.75rem":"0.875rem",B="0.5rem",I=8,_={wait:{iconBg:i.colorBg,iconBorder:i.colorBorder,iconColor:i.colorTextMuted,titleColor:i.colorTextMuted,descColor:i.colorTextMuted,tailColor:i.colorBorder},process:{iconBg:i.colorPrimary,iconBorder:i.colorPrimary,iconColor:i.colorPrimaryContrast,titleColor:i.colorText,descColor:i.colorTextMuted,tailColor:i.colorBorder},finish:{iconBg:i.colorBg,iconBorder:i.colorPrimary,iconColor:i.colorPrimary,titleColor:i.colorText,descColor:i.colorTextMuted,tailColor:i.colorPrimary},error:{iconBg:i.colorBg,iconBorder:i.colorError,iconColor:i.colorError,titleColor:i.colorError,descColor:i.colorError,tailColor:i.colorError}}[n],L=a&&!e.disabled?j:void 0,N=a&&!e.disabled?"pointer":e.disabled?"not-allowed":"default";let $;if(f){const D={width:B,height:B,borderRadius:"50%",backgroundColor:n==="wait"?i.colorBorder:_.iconBorder,transition:"all 0.3s"},W=t.jsx("span",{style:D});typeof u=="function"?$=u(W,{index:r,status:n,title:e.title,description:e.description}):$=W}else e.icon?$=e.icon:n==="finish"?$=t.jsx(Oa,{size:M}):n==="error"?$=t.jsx(Va,{size:M}):$=r+1;const P=f?{display:"flex",alignItems:"center",justifyContent:"center",width:B,height:B,position:"relative",flexShrink:0,...k?.icon}:{display:"flex",alignItems:"center",justifyContent:"center",width:C,height:C,borderRadius:"50%",border:`2px solid ${_.iconBorder}`,backgroundColor:_.iconBg,color:_.iconColor,fontSize:w,fontWeight:600,flexShrink:0,transition:"all 0.3s",position:"relative",...k?.icon},E=t.jsxs("div",{style:P,className:v?.icon,children:[$,h&&!f&&t.jsx(Ya,{percent:g,ringSize:x+10,iconSize:x})]}),z={fontSize:R,fontWeight:n==="process"?600:400,color:_.titleColor,lineHeight:1.5,whiteSpace:"nowrap"},F=D=>t.jsxs("div",{style:{...D,...k?.content},className:v?.content,children:[t.jsxs("div",{style:z,children:[e.title,e.subTitle&&t.jsx("span",{style:{fontSize:S,color:i.colorTextMuted,marginLeft:"0.5rem",fontWeight:400},children:e.subTitle})]}),e.description&&t.jsx("div",{style:{fontSize:S,color:_.descColor,marginTop:"0.125rem",lineHeight:1.5},children:e.description})]}),A=D=>t.jsx("div",{style:{flex:1,height:1,backgroundColor:D,transition:"background-color 0.3s",...k?.tail},className:v?.tail});if(d){const D=b?16:20;return t.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",position:"relative",padding:b?"0.5rem 1rem":"0.75rem 1.5rem",backgroundColor:n==="process"?i.colorBgMuted:"transparent",cursor:N,opacity:e.disabled?.5:1,transition:"background-color 0.2s",...k?.step},className:v?.step,onClick:L,onMouseEnter:W=>{!a||e.disabled||n==="process"||(W.currentTarget.style.backgroundColor=i.colorBgMuted)},onMouseLeave:W=>{!a||e.disabled||n==="process"||(W.currentTarget.style.backgroundColor="transparent")},children:[t.jsxs("div",{style:{display:"flex",flexDirection:"column",flex:1},children:[t.jsx("span",{style:{fontSize:R,fontWeight:n==="process"?600:400,color:_.titleColor},children:e.title}),e.description&&t.jsx("span",{style:{fontSize:S,color:_.descColor,marginTop:"0.125rem"},children:e.description})]}),n==="process"&&t.jsx("div",{style:{position:"absolute",bottom:0,left:0,right:0,height:2,backgroundColor:i.colorPrimary}}),!l&&t.jsx("div",{style:{position:"absolute",right:0,top:"50%",transform:"translateY(-50%) translateX(50%)",zIndex:1,width:0,height:0,borderTop:`${D/2}px solid transparent`,borderBottom:`${D/2}px solid transparent`,borderLeft:`${D/2}px solid ${i.colorBorder}`}})]})}if(!c&&y){const D=f?"0.25rem":"0.5rem";return t.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",cursor:N,opacity:e.disabled?.5:1,...k?.step},className:v?.step,onClick:L,children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",width:"100%"},children:[t.jsx("div",{style:{flex:1,display:"flex",alignItems:"center",paddingRight:D},children:!o&&p&&A(p)}),E,t.jsx("div",{style:{flex:1,display:"flex",alignItems:"center",paddingLeft:D},children:!l&&A(_.tailColor)})]}),F({display:"flex",flexDirection:"column",alignItems:"center",marginTop:f?"0.25rem":"0.5rem"})]})}return c?t.jsxs("div",{style:{display:"flex",alignItems:"flex-start",position:"relative",paddingBottom:l?0:"1.5rem",cursor:N,opacity:e.disabled?.5:1,...k?.step},className:v?.step,onClick:L,children:[E,F({display:"flex",flexDirection:"column",marginLeft:f?"0.75rem":"0.5rem"}),!l&&t.jsx("div",{style:{position:"absolute",left:f?I/2:x/2,top:f?I+4:x+4,bottom:0,width:1,backgroundColor:_.tailColor,transition:"background-color 0.3s",...k?.tail},className:v?.tail})]}):t.jsxs("div",{style:{flex:l?"none":1,display:"flex",alignItems:"flex-start",cursor:N,opacity:e.disabled?.5:1,...k?.step},className:v?.step,onClick:L,children:[E,F({display:"flex",flexDirection:"column",marginLeft:"0.5rem"}),!l&&t.jsx("div",{style:{flex:1,display:"flex",alignItems:"center",height:C,minWidth:"1.5rem",padding:"0 0.5rem"},children:A(_.tailColor)})]})}function qa({items:e=[],current:r=0,direction:n="horizontal",size:o="default",status:l="process",type:a="default",labelPlacement:c="horizontal",progressDot:d=!1,percent:f,initial:u=0,onChange:h,className:g,style:m,classNames:y,styles:p}){const v=n==="vertical",k=a==="navigation",j=!!d&&!k,b=!!h,C=j||c==="vertical",x=typeof d=="function"?d:void 0,w=(S,B)=>B.status?B.status:S<r?"finish":S===r?l:"wait",M={display:"flex",flexDirection:v?"column":"row",width:"100%"};k&&(M.borderBottom=`1px solid ${i.colorBorder}`);const R=be(M,p?.root,m);return t.jsx("div",{role:"navigation","aria-label":"Steps",style:R,className:xt(g,y?.root),children:e.map((S,B)=>{const I=w(B,S),T=B===e.length-1,_=f!==void 0&&B===r&&I==="process";let L;if(B>0){const N=w(B-1,e[B-1]);L=Ka(N)}return t.jsx(Ua,{item:S,index:B+u,stepStatus:I,isFirst:B===0,isLast:T,isClickable:b,isVertical:v,isNavigation:k,isDot:j,progressDotRender:x,showPercent:_,percent:f??0,size:o,labelVertical:C,prevTailColor:L,classNames:y,styles:p,onClick:()=>h?.(B)},B)})})}const io=200,Ga={large:{paddingH:"1.25rem 1rem",paddingV:"0.75rem 1.5rem",fontSize:"1rem",cardHeight:"2.75rem"},middle:{paddingH:"0.75rem 1rem",paddingV:"0.75rem 1.5rem",fontSize:"0.875rem",cardHeight:"2.5rem"},small:{paddingH:"0.5rem 0.75rem",paddingV:"0.5rem 1rem",fontSize:"0.875rem",cardHeight:"2.25rem"}};function Xa(){return t.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),t.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}function Qa(){return t.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),t.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})}function Za(){return t.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"15 18 9 12 15 6"})})}function Ja(){return t.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"9 18 15 12 9 6"})})}function ec(){return t.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"18 15 12 9 6 15"})})}function tc(){return t.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"6 9 12 15 18 9"})})}function ls({items:e=[],activeKey:r,defaultActiveKey:n,type:o="line",size:l="middle",tabPosition:a="top",centered:c=!1,animated:d={inkBar:!0,tabPane:!1},tabBarGutter:f,tabBarStyle:u,tabBarExtraContent:h,indicator:g,addIcon:m,removeIcon:y,hideAdd:p=!1,destroyOnHidden:v=!1,onChange:k,onEdit:j,onTabClick:b,className:C,style:x,classNames:w,styles:M}){const R=r!==void 0,[S,B]=s.useState(n??e[0]?.key??""),I=R?r:S,T=s.useCallback(O=>{R||B(O),k?.(O)},[R,k]),_=a==="left"||a==="right",L=o==="card"||o==="editable-card",N=o==="editable-card",$=typeof d=="boolean"?d:d.inkBar,P=typeof d=="boolean"?d:d.tabPane,E=Ga[l],[z,F]=s.useState(null),A=s.useRef(new Map),D=s.useRef(null),W=s.useRef(null),[V,Z]=s.useState({}),[X,U]=s.useState(!1),[q,H]=s.useState(!1),[re,oe]=s.useState(!1),se=s.useRef(new Set);I&&se.current.add(I);const J=s.useCallback(()=>{if(L||!D.current)return;const O=A.current.get(I);if(!O){Z({opacity:0});return}const K=D.current;let te,ne;_?(te=O.offsetTop-K.offsetTop,ne=O.offsetHeight):(te=O.offsetLeft-K.offsetLeft,ne=O.offsetWidth);let ce=ne,ve=0;if(g?.size!=null){ce=typeof g.size=="function"?g.size(ne):g.size;const De=g.align??"center";De==="center"?ve=(ne-ce)/2:De==="end"&&(ve=ne-ce)}if(_){const De={position:"absolute",width:2,height:ce,top:te+ve,backgroundColor:i.colorPrimary,borderRadius:1,transition:$?"all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)":"none",...a==="left"?{right:0}:{left:0}};Z(De)}else{const De={position:"absolute",height:2,width:ce,left:te+ve,bottom:0,backgroundColor:i.colorPrimary,borderRadius:1,transition:$?"all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)":"none"};Z(De)}},[I,L,_,a,$,g]),ie=s.useCallback(()=>{const O=D.current;if(O)if(_){const K=O.scrollHeight>O.clientHeight+1;U(K),H(O.scrollTop>0),oe(O.scrollTop+O.clientHeight<O.scrollHeight-1)}else{const K=O.scrollWidth>O.clientWidth+1;U(K),H(O.scrollLeft>0),oe(O.scrollLeft+O.clientWidth<O.scrollWidth-1)}},[_]),_e=s.useCallback(()=>{const O=D.current,K=A.current.get(I);if(!(!O||!K))if(_){const te=K.offsetTop-O.offsetTop,ne=te+K.offsetHeight;te<O.scrollTop?O.scrollTo({top:te,behavior:"smooth"}):ne>O.scrollTop+O.clientHeight&&O.scrollTo({top:ne-O.clientHeight,behavior:"smooth"})}else{const te=K.offsetLeft-O.offsetLeft,ne=te+K.offsetWidth;te<O.scrollLeft?O.scrollTo({left:te,behavior:"smooth"}):ne>O.scrollLeft+O.clientWidth&&O.scrollTo({left:ne-O.clientWidth,behavior:"smooth"})}},[I,_]);s.useEffect(()=>{J(),_e()},[J,_e]),s.useEffect(()=>{ie()},[ie,e]),s.useEffect(()=>{const O=D.current;if(!O)return;const K=new ResizeObserver(()=>{J(),ie()});return K.observe(O),A.current.forEach(te=>K.observe(te)),()=>K.disconnect()},[J,ie,e]),s.useEffect(()=>{const O=D.current;if(!O)return;const K=()=>ie();O.addEventListener("scroll",K,{passive:!0});const te=ne=>{_||ne.deltaX===0&&(Math.abs(ne.deltaY)<1||(ne.preventDefault(),O.scrollLeft+=ne.deltaY))};return O.addEventListener("wheel",te,{passive:!1}),()=>{O.removeEventListener("scroll",K),O.removeEventListener("wheel",te)}},[ie,_]);const we=O=>{const K=D.current;K&&(_?K.scrollBy({top:O,behavior:"smooth"}):K.scrollBy({left:O,behavior:"smooth"}))},je=(O,K)=>{O.disabled||(b?.(O.key,K),O.key!==I&&T(O.key))},ae=(O,K)=>{K.stopPropagation(),j?.(O.key,"remove")},he=O=>{j?.(O,"add")};let fe=null,Se=null;if(h)if(typeof h=="object"&&h!==null&&"left"in h){const O=h;fe=O.left??null,Se=O.right??null}else Se=h;const We=L?void 0:a==="top"?"ino-tabs__bar--border-bottom":a==="bottom"?"ino-tabs__bar--border-top":a==="left"?"ino-tabs__bar--border-right":"ino-tabs__bar--border-left",Le=L?{border:`1px solid ${i.colorBorder}`,...a==="top"?{borderTop:"none",borderRadius:"0 0 0.5rem 0.5rem"}:a==="bottom"?{borderBottom:"none",borderRadius:"0.5rem 0.5rem 0 0"}:a==="left"?{borderLeft:"none",borderRadius:"0 0.5rem 0.5rem 0"}:{borderRight:"none",borderRadius:"0.5rem 0 0 0.5rem"}}:{},Te=(O,K)=>{const te=f??(_?0:L?2:0),ne=_?E.paddingV:E.paddingH,ce=z===O.key&&!O.disabled&&!K,ve={padding:ne,fontSize:E.fontSize,cursor:O.disabled?"not-allowed":"pointer",color:O.disabled?i.colorTextSubtle:ce?L?i.colorPrimary:i.colorPrimaryHover:K?L?i.colorText:i.colorPrimary:i.colorText,fontWeight:K?600:400,..._?{marginBottom:te}:{marginRight:te}};if(L){const De=a==="top",G=a==="bottom",le=a==="left",pe="0.5rem",Ee={top:`${pe} ${pe} 0 0`,bottom:`0 0 ${pe} ${pe}`,left:`${pe} 0 0 ${pe}`,right:`0 ${pe} ${pe} 0`};Object.assign(ve,{backgroundColor:K||ce?i.colorBg:i.colorBgSubtle,border:`1px solid ${i.colorBorder}`,borderRadius:Ee[a],height:E.cardHeight,...De?{borderBottomColor:K?i.colorBg:i.colorBorder}:{},...G?{borderTopColor:K?i.colorBg:i.colorBorder}:{},...le?{borderRightColor:K?i.colorBg:i.colorBorder}:{},...!De&&!G&&!le?{borderLeftColor:K?i.colorBg:i.colorBorder}:{}})}return ve},Ie=()=>e.map(O=>{const K=O.key===I,te=(O.destroyOnHidden??v)&&!K,ne=se.current.has(O.key);return K||O.forceRender||ne&&!te?t.jsx("div",{role:"tabpanel","aria-hidden":!K,className:Y("ino-tabs__pane",{"ino-tabs__pane--hidden":!K}),style:P&&K?{animation:"j-tabs-fadein 0.3s ease"}:void 0,children:O.children},O.key):null}),Re=O=>K=>{K?A.current.set(O,K):A.current.delete(O)};return t.jsxs("div",{className:Y("ino-tabs",`ino-tabs--${a}`,C,w?.root),style:{...M?.root,...x},children:[t.jsxs("div",{className:Y("ino-tabs__bar",_?"ino-tabs__bar--vertical":"ino-tabs__bar--horizontal",We,w?.tabBar),style:{...u,...M?.tabBar},children:[fe&&t.jsx("div",{className:"ino-tabs__extra",children:fe}),X&&t.jsx("button",{className:Y("ino-tabs__scroll-arrow",_?"ino-tabs__scroll-arrow--v":"ino-tabs__scroll-arrow--h"),style:{opacity:q?1:.3,pointerEvents:q?"auto":"none"},onClick:()=>we(-io),tabIndex:-1,"aria-label":"Scroll tabs back",children:_?t.jsx(ec,{}):t.jsx(Za,{})}),t.jsx("div",{ref:W,className:"ino-tabs__nav-wrap",children:t.jsxs("div",{ref:D,className:Y("ino-tabs__nav-list",_?"ino-tabs__nav-list--vertical":"ino-tabs__nav-list--horizontal",{"ino-tabs__nav-list--centered":c&&!X}),role:"tablist",children:[e.map(O=>{const K=O.key===I,te=Te(O,K);return t.jsxs("div",{ref:Re(O.key),role:"tab","aria-selected":K,"aria-disabled":O.disabled,tabIndex:K?0:-1,className:Y("ino-tabs__tab",{"ino-tabs__tab--disabled":O.disabled},w?.tab),style:{...te,...M?.tab},onClick:ne=>je(O,ne),onMouseEnter:()=>{O.disabled||F(O.key)},onMouseLeave:()=>{F(ne=>ne===O.key?null:ne)},children:[O.icon&&t.jsx("span",{className:"ino-tabs__tab-icon",children:O.icon}),O.label&&t.jsx("span",{children:O.label}),N&&O.closable!==!1&&t.jsx("button",{className:"ino-tabs__close-btn",onClick:ne=>ae(O,ne),tabIndex:-1,"aria-label":`Close ${O.label??O.key}`,children:O.closeIcon??y??t.jsx(Xa,{})})]},O.key)}),!L&&t.jsx("div",{style:{...V,...M?.inkBar},className:w?.inkBar})]})}),X&&t.jsx("button",{className:Y("ino-tabs__scroll-arrow",_?"ino-tabs__scroll-arrow--v":"ino-tabs__scroll-arrow--h"),style:{opacity:re?1:.3,pointerEvents:re?"auto":"none"},onClick:()=>we(io),tabIndex:-1,"aria-label":"Scroll tabs forward",children:_?t.jsx(tc,{}):t.jsx(Ja,{})}),Se&&t.jsx("div",{className:"ino-tabs__extra",children:Se}),N&&!p&&t.jsx("button",{className:"ino-tabs__add-btn",style:{width:E.cardHeight,height:E.cardHeight,marginLeft:_?0:"0.25rem",marginTop:_?"0.25rem":0},onClick:he,tabIndex:-1,"aria-label":"Add tab",children:m??t.jsx(Qa,{})})]}),t.jsx("div",{className:Y("ino-tabs__content",w?.content),style:{...Le,...M?.content},children:Ie()})]})}function rc(){return t.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),t.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}function nc(e){const r=[];for(const n of e)n.options?r.push(...n.options):r.push(n);return r}function oc(e,r){const n=e.toLowerCase();return!!(r.value.toLowerCase().includes(n)||typeof r.label=="string"&&r.label.toLowerCase().includes(n))}function sc({options:e=[],value:r,defaultValue:n="",placeholder:o,open:l,defaultOpen:a=!1,disabled:c=!1,allowClear:d=!1,autoFocus:f=!1,backfill:u=!1,defaultActiveFirstOption:h=!0,variant:g="outlined",status:m,filterOption:y=!0,notFoundContent:p=null,popupMatchSelectWidth:v=!0,onChange:k,onSearch:j,onSelect:b,onFocus:C,onBlur:x,onDropdownVisibleChange:w,onClear:M,prefix:R,suffix:S,className:B,style:I,classNames:T,styles:_}){const L=r!==void 0,[N,$]=s.useState(n),P=L?r:N,E=l!==void 0,[z,F]=s.useState(a),A=E?l:z,[D,W]=s.useState(-1),[V,Z]=s.useState(!1),[X,U]=s.useState(!1),[q,H]=s.useState(!1),re=s.useRef(null),oe=s.useRef(null),se=s.useRef(null),J=s.useRef(null),ie=s.useCallback(ke=>{L||$(ke),k?.(ke)},[L,k]),_e=s.useCallback(ke=>{E||F(ke),w?.(ke),ke?(U(!1),requestAnimationFrame(()=>{requestAnimationFrame(()=>{H(!0)})})):H(!1)},[E,w]),we=s.useMemo(()=>{if(y===!1)return e;const ke=typeof y=="function"?y:oc;return e.map(ge=>{if(ge.options){const me=ge.options.filter(Ve=>ke(P,Ve));return me.length===0?null:{...ge,options:me}}return ke(P,ge)?ge:null}).filter(Boolean)},[e,P,y]),je=s.useMemo(()=>nc(we),[we]),ae=je.length>0||p!==null,he=A&&ae&&!c;s.useEffect(()=>{if(h&&je.length>0){const ke=je.findIndex(ge=>!ge.disabled);W(ke>=0?ke:-1)}else W(-1)},[je,h]),s.useEffect(()=>{f&&oe.current&&oe.current.focus()},[f]),s.useEffect(()=>{if(!A)return;const ke=ge=>{re.current&&!re.current.contains(ge.target)&&_e(!1)};return document.addEventListener("mousedown",ke),()=>document.removeEventListener("mousedown",ke)},[A,_e]),s.useLayoutEffect(()=>{if(!A||!se.current||!re.current)return;const ke=se.current.getBoundingClientRect(),ge=re.current.getBoundingClientRect(),me=ge.top,Ve=window.innerHeight-ge.bottom;!X&&ke.bottom>window.innerHeight?me>Ve&&U(!0):X&&ke.top<0&&Ve>me&&U(!1)}),s.useEffect(()=>{if(!he||D<0)return;const ke=se.current;if(!ke)return;const ge=ke.querySelector(`[data-option-index="${D}"]`);if(ge){const me=ge.offsetTop,Ve=me+ge.offsetHeight;me<ke.scrollTop?ke.scrollTop=me:Ve>ke.scrollTop+ke.clientHeight&&(ke.scrollTop=Ve-ke.clientHeight)}},[D,he]);const fe=ke=>{const ge=ke.target.value;J.current=null,ie(ge),j?.(ge),A||_e(!0)},Se=ke=>{ke.disabled||(J.current=null,ie(ke.value),b?.(ke.value,ke),_e(!1),oe.current?.focus())},We=ke=>{Z(!0),C?.(ke),!A&&ae&&_e(!0)},Le=ke=>{const ge=ke.relatedTarget;re.current&&ge&&re.current.contains(ge)||(Z(!1),x?.(ke),J.current!==null&&(ie(J.current),J.current=null),_e(!1))},Te=ke=>{ke.stopPropagation(),J.current=null,ie(""),M?.(),oe.current?.focus()},Ie=ke=>{if(je.length===0)return;let ge=D;for(let me=0;me<je.length&&(ge=(ge+ke+je.length)%je.length,!!je[ge].disabled);me++);W(ge),u&&je[ge]&&(J.current=je[ge].value,L||$(je[ge].value),k?.(je[ge].value))},Re=ke=>{switch(ke.key){case"ArrowDown":ke.preventDefault(),A?Ie(1):_e(!0);break;case"ArrowUp":ke.preventDefault(),A&&Ie(-1);break;case"Enter":A&&D>=0&&je[D]&&!je[D].disabled&&(ke.preventDefault(),Se(je[D]));break;case"Escape":A&&(ke.preventDefault(),_e(!1));break}},O=be({position:"relative",display:"inline-block",width:"100%"},_?.root,I),K={outlined:{border:`1px solid ${i.colorBorder}`,backgroundColor:i.colorBg},filled:{border:"1px solid transparent",backgroundColor:i.colorBgMuted},borderless:{border:"1px solid transparent",backgroundColor:"transparent"}},te=m==="error"?i.colorError:m==="warning"?i.colorWarning:void 0,ne=m==="error"?i.colorErrorBg:m==="warning"?i.colorWarningBg:i.colorPrimaryLight,ce={width:"100%",minHeight:"2.75rem",padding:"0.375rem 0.75rem",paddingLeft:R?"2rem":"0.75rem",paddingRight:d&&P?S?"3.5rem":"2.25rem":S?"2rem":"0.75rem",fontSize:"1rem",fontFamily:"inherit",lineHeight:"1.5",borderRadius:"0.375rem",outline:"none",color:c?i.colorTextSubtle:te||i.colorText,cursor:c?"not-allowed":void 0,transition:"border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease",...K[g],...te?{borderColor:te}:{},...V&&!c?{borderColor:te||i.colorPrimary,boxShadow:`0 0 0 2px ${ne}`}:{},...c?{opacity:.6}:{}},ve=be(ce,_?.input),G={position:"absolute",left:0,zIndex:1050,width:(typeof v=="number"?v:void 0)||(v===!0?"100%":void 0),minWidth:v===!1?120:void 0,maxHeight:"min(16rem, 40vh)",overflowY:"auto",overscrollBehavior:"contain",backgroundColor:i.colorBg,border:`1px solid ${i.colorBorder}`,borderRadius:"0.5rem",boxShadow:i.shadowMd,padding:"0.25rem 0",opacity:q?1:0,transition:"opacity 0.15s ease-out, transform 0.15s ease-out",...X?{bottom:"100%",marginBottom:"0.25rem",transform:q?"translateY(0)":"translateY(6px)"}:{top:"100%",marginTop:"0.25rem",transform:q?"translateY(0)":"translateY(-6px)"}},le=be(G,_?.dropdown),pe={padding:"0.625rem 0.75rem",minHeight:"2.75rem",fontSize:"0.875rem",cursor:"pointer",transition:"background-color 0.15s ease",display:"flex",alignItems:"center",lineHeight:"1.375rem",boxSizing:"border-box"},Ee={position:"absolute",right:8,top:"50%",transform:"translateY(-50%)",display:"flex",alignItems:"center",gap:4,pointerEvents:"none"},Ue={display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,margin:-4,borderRadius:"50%",border:"none",backgroundColor:"transparent",color:i.colorTextMuted,cursor:"pointer",padding:0,pointerEvents:"auto",transition:"color 0.15s ease"};let Ye=0;const $e=ke=>{const ge=Ye++,me=ge===D,Ve={...pe,backgroundColor:me?i.colorBgMuted:void 0,color:ke.disabled?i.colorTextSubtle:i.colorText,cursor:ke.disabled?"not-allowed":"pointer",opacity:ke.disabled?.5:1,..._?.option};return t.jsx("div",{role:"option","aria-selected":me,"aria-disabled":ke.disabled,"data-option-index":ge,style:Ve,className:T?.option,onClick:()=>Se(ke),onMouseEnter:Ge=>{ke.disabled||(W(ge),Ge.currentTarget.style.backgroundColor=i.colorBgMuted)},onMouseLeave:Ge=>{!ke.disabled&&!me&&(Ge.currentTarget.style.backgroundColor="transparent")},children:ke.label??ke.value},ke.value)},Ze=()=>(Ye=0,je.length===0?p===null?null:t.jsx("div",{style:{padding:"0.5rem 0.75rem",fontSize:"0.875rem",color:i.colorTextSubtle,textAlign:"center"},children:p}):we.map(ke=>ke.options?t.jsxs("div",{children:[t.jsx("div",{style:{padding:"0.3125rem 0.75rem",fontSize:"0.75rem",color:i.colorTextSubtle,fontWeight:600,userSelect:"none"},children:ke.label??ke.value}),ke.options.map($e)]},`group-${ke.value}`):$e(ke)));return t.jsxs("div",{ref:re,style:O,className:xt(B,T?.root),children:[t.jsx("input",{ref:oe,type:"text",role:"combobox","aria-expanded":he,"aria-haspopup":"listbox","aria-autocomplete":"list",autoComplete:"off",value:P,placeholder:o,disabled:c,style:ve,className:T?.input,onChange:fe,onFocus:We,onBlur:Le,onKeyDown:Re}),R&&t.jsx("span",{style:{position:"absolute",left:10,top:"50%",transform:"translateY(-50%)",display:"flex",alignItems:"center",color:i.colorTextMuted,pointerEvents:"none"},children:R}),(S||d&&P&&!c)&&t.jsxs("span",{style:Ee,children:[d&&P&&!c&&t.jsx("button",{type:"button",style:Ue,onMouseDown:ke=>ke.preventDefault(),onClick:Te,onMouseEnter:ke=>{ke.currentTarget.style.color=i.colorText,ke.currentTarget.style.backgroundColor=i.colorBgMuted},onMouseLeave:ke=>{ke.currentTarget.style.color=i.colorTextMuted,ke.currentTarget.style.backgroundColor="transparent"},tabIndex:-1,"aria-label":"Clear",children:t.jsx(rc,{})}),S&&t.jsx("span",{style:{display:"flex",color:i.colorTextMuted},children:S})]}),he&&t.jsx("div",{ref:se,role:"listbox",style:le,className:T?.dropdown,onMouseDown:ke=>ke.preventDefault(),children:Ze()})]})}function ic(){return t.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"6 9 12 15 18 9"})})}function as(){return t.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"9 18 15 12 9 6"})})}function lc(){return t.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),t.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}function cs(){return t.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"20 6 9 17 4 12"})})}function us(){return t.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})})}function ac(){return t.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),t.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}function cc(){return t.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{animation:"j-nested-spin 1s linear infinite"},children:t.jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})})}function Dt(e,r){return r.value?e[r.value]:e.value}function Cr(e,r){return(r.label?e[r.label]:e.label)??Dt(e,r)}function $t(e,r){return r.children?e[r.children]:e.children}function xn(e,r){if(e.isLeaf===!0)return!1;const n=$t(e,r);return!!n&&n.length>0}function Kr(e,r,n){if(e.isLeaf===!0)return!1;const o=$t(e,r);return o&&o.length>0?!0:n}function Zr(e){return typeof e=="string"?e:typeof e=="number"?String(e):""}function tr(e,r,n){return e.find(o=>Dt(o,n)===r)}function Zt(e,r,n){const o=[];let l=e;for(const a of r){const c=tr(l,a,n);if(!c)break;o.push(c);const d=$t(c,n);if(d)l=d;else break}return o}function ds(e,r,n=[]){const o=[];for(const l of e){const a=[...n,l],c=$t(l,r);c&&c.length>0?o.push(...ds(c,r,a)):o.push(a)}return o}function uc(e,r,n){const o=e.toLowerCase();return r.some(l=>Zr(Cr(l,n)).toLowerCase().includes(o))}function hr(e,r){return e.length===r.length&&e.every((n,o)=>n===r[o])}function pr(e,r){return r.some(n=>hr(n,e))}function wr(e,r,n=[]){const o=Dt(e,r),l=[...n,o],a=$t(e,r);if(a&&a.length>0){const c=[];for(const d of a)c.push(...wr(d,r,l));return c}return[l]}function Wn(e,r,n,o){const l=[];let a=e;for(let c=0;c<o;c++){const d=r[c];if(d===void 0)break;l.push(d);const f=tr(a,d,n);if(f){const u=$t(f,n);u&&(a=u)}}return l}function nn(e,r,n,o,l,a){const c=Wn(a,n,l,r),d=$t(e,l);if(!d||d.length===0){const h=Dt(e,l);return pr([...c,h],o)?"checked":"unchecked"}const f=wr(e,l,c),u=f.filter(h=>pr(h,o)).length;return u===0?"unchecked":u===f.length?"checked":"indeterminate"}function dc(e,r,n){const o=[],l=new Set;function a(c,d){for(const f of c){const u=Dt(f,n),h=[...d,u],g=$t(f,n);if(g&&g.length>0){const m=wr(f,n,d);m.length>0&&m.every(p=>pr(p,e))?(o.push(h),m.forEach(p=>{const v=e.findIndex(k=>hr(k,p));v>=0&&l.add(v)})):a(g,h)}}}return a(r,[]),e.forEach((c,d)=>{l.has(d)||o.push(c)}),o}function fc({options:e=[],value:r,defaultValue:n,placeholder:o="Seleccionar",open:l,disabled:a=!1,allowClear:c=!0,expandTrigger:d="click",changeOnSelect:f=!1,showSearch:u=!1,variant:h="outlined",status:g,size:m="middle",suffixIcon:y,expandIcon:p,notFoundContent:v="Sin resultados",displayRender:k,fieldNames:j,placement:b="bottomLeft",multiple:C=!1,showCheckedStrategy:x="SHOW_CHILD",maxTagCount:w,maxTagPlaceholder:M,tagRender:R,loadData:S,prefix:B,popupRender:I,onChange:T,onDropdownVisibleChange:_,className:L,style:N,classNames:$,styles:P}){const E={label:j?.label??"label",value:j?.value??"value",children:j?.children??"children"},z=!!S,F=C?[]:n??[],A=r!==void 0,[D,W]=s.useState(F),V=C?[]:A?r:D,Z=C?n??[]:[],[X,U]=s.useState(Z),q=C?A?r:X:[],H=l!==void 0,[re,oe]=s.useState(!1),se=H?l:re,[J,ie]=s.useState([]),[_e,we]=s.useState(0),[je,ae]=s.useState([]),[he,fe]=s.useState(""),[Se,We]=s.useState(0),[Le,Te]=s.useState(!1),Ie=s.useRef(!1),Re=s.useRef("keyboard"),[O,K]=s.useState(!1),[te,ne]=s.useState(!1),ce=s.useRef(null),ve=s.useRef(null),De=s.useRef(null),G=s.useRef(null),le=s.useRef(null),pe=!!u&&he.length>0,Ee=s.useCallback((Me,Oe)=>{A||W(Me),T?.(Me,Oe)},[A,T]),Ue=s.useCallback((Me,Oe)=>{A||U(Me),T?.(Me,Oe)},[A,T]),Ye=b.startsWith("top"),$e=s.useCallback(Me=>{H||oe(Me),_?.(Me),Me?(K(Ye),requestAnimationFrame(()=>{requestAnimationFrame(()=>ne(!0))}),!C&&V.length>0?ie([...V]):C&&q.length>0?ie([...q[0]]):ie([]),fe(""),we(0),ae([])):ne(!1)},[H,_,V,q,C,Ye]);s.useLayoutEffect(()=>{if(!se||!ve.current||!ce.current)return;const Me=ve.current.getBoundingClientRect(),Oe=ce.current.getBoundingClientRect(),lt=Oe.top,st=window.innerHeight-Oe.bottom;!O&&Me.bottom>window.innerHeight?lt>st&&K(!0):O&&Me.top<0&&st>lt&&K(!1)});const Ze=s.useMemo(()=>C?[]:Zt(e,V,E),[e,V,E.label,E.value,E.children,C]),ke=s.useMemo(()=>Ze.map(Me=>Zr(Cr(Me,E))),[Ze,E.label]),ge=s.useMemo(()=>C||V.length===0?null:k?k(ke,Ze):ke.join(" / "),[C,V,ke,Ze,k]),me=s.useMemo(()=>!C||q.length===0?[]:x==="SHOW_PARENT"?dc(q,e,E):q,[C,q,x,e,E.label,E.value,E.children]),Ve=s.useMemo(()=>{const Me=[e];let Oe=e;for(const lt of J){const st=tr(Oe,lt,E);if(st){const ct=$t(st,E);if(ct&&ct.length>0)Me.push(ct),Oe=ct;else break}else break}return Me},[e,J,E.value,E.children]),Ge=typeof u=="object"?u:{},Pe=s.useMemo(()=>{if(!pe)return[];const Me=ds(e,E),Oe=Ge.filter?ct=>Ge.filter(he,ct):ct=>uc(he,ct,E),lt=Me.filter(Oe),st=Ge.limit!==void 0?Ge.limit:50;return st===!1?lt:lt.slice(0,st)},[pe,he,e,E.label,E.value,E.children,Ge.filter,Ge.limit]);s.useEffect(()=>{if(!se)return;const Me=Oe=>{ce.current&&!ce.current.contains(Oe.target)&&$e(!1)};return document.addEventListener("mousedown",Me),()=>document.removeEventListener("mousedown",Me)},[se,$e]),s.useEffect(()=>{se&&u&&G.current&&setTimeout(()=>G.current?.focus(),50)},[se,u]),s.useEffect(()=>()=>{le.current&&clearTimeout(le.current)},[]);const ot=()=>{a||$e(!se)},Fe=Me=>{a||(Me.key==="Enter"||Me.key===" "?(Me.preventDefault(),$e(!se)):Me.key==="Escape"&&se?(Me.preventDefault(),$e(!1)):se&&!pe&&kt(Me))},ye=(Me,Oe)=>{const lt=Dt(Oe,E);if(ie(st=>{const ct=st.slice(0,Me);return ct[Me]=lt,ct}),S){const st=$t(Oe,E);if(!st||st.length===0){const ct=[];let ut=e;for(let bt=0;bt<Me;bt++){const Bt=tr(ut,J[bt],E);if(Bt){ct.push(Bt);const _t=$t(Bt,E);_t&&(ut=_t)}}ct.push(Oe),S(ct)}}},Ne=Me=>{const Oe=Me.map(lt=>Dt(lt,E));Ee(Oe,Me),$e(!1),De.current?.focus()},Xe=s.useCallback((Me,Oe)=>{if(Oe.disabled||Oe.disableCheckbox)return;const lt=Wn(e,J,E,Me),st=Dt(Oe,E),ct=$t(Oe,E);let ut;ct&&ct.length>0?ut=wr(Oe,E,lt).filter(It=>{const xe=Zt(e,It,E),Qe=xe[xe.length-1];return Qe&&!Qe.disabled&&!Qe.disableCheckbox}):ut=[[...lt,st]];const bt=nn(Oe,Me,J,q,E,e);let Bt;if(bt==="checked")Bt=q.filter(It=>!ut.some(xe=>hr(It,xe)));else{const It=ut.filter(xe=>!pr(xe,q));Bt=[...q,...It]}const _t=Bt.map(It=>Zt(e,It,E));Ue(Bt,_t)},[e,J,E,q,Ue]),et=(Me,Oe)=>{if(Oe.disabled)return;const lt=Kr(Oe,E,z);if(C){lt&&ye(Me,Oe),Oe.disableCheckbox||Xe(Me,Oe);return}if(lt){if(ye(Me,Oe),f){const st=[];let ct=e;for(let bt=0;bt<Me;bt++){const Bt=tr(ct,J[bt],E);if(Bt){st.push(Bt);const _t=$t(Bt,E);_t&&(ct=_t)}}st.push(Oe);const ut=st.map(bt=>Dt(bt,E));Ee(ut,st)}}else{const st=[];let ct=e;for(let ut=0;ut<Me;ut++){const bt=tr(ct,J[ut],E);if(bt){st.push(bt);const Bt=$t(bt,E);Bt&&(ct=Bt)}}st.push(Oe),Ne(st)}},ht=(Me,Oe)=>{d!=="hover"||Oe.disabled||(le.current&&clearTimeout(le.current),le.current=window.setTimeout(()=>{Kr(Oe,E,z)&&ye(Me,Oe)},150))},yt=Me=>{if(C){const Oe=Me.map(ut=>Dt(ut,E)),lt=pr(Oe,q);let st;lt?st=q.filter(ut=>!hr(ut,Oe)):st=[...q,Oe];const ct=st.map(ut=>Zt(e,ut,E));Ue(st,ct)}else Ne(Me)},ft=Me=>{Me.stopPropagation(),C?Ue([],[]):Ee([],[]),ie([]),De.current?.focus()},Ct=Me=>{const Oe=Zt(e,Me,E),lt=Oe[Oe.length-1];if(lt){const ut=$t(lt,E);if(ut&&ut.length>0){const bt=Me.slice(0,-1),Bt=wr(lt,E,bt),_t=q.filter(xe=>!Bt.some(Qe=>hr(xe,Qe))),It=_t.map(xe=>Zt(e,xe,E));Ue(_t,It);return}}const st=q.filter(ut=>!hr(ut,Me)),ct=st.map(ut=>Zt(e,ut,E));Ue(st,ct)},kt=Me=>{const Oe=_e,lt=Ve[Oe];if(!lt)return;const st=je[Oe]??-1;switch(Me.key){case"ArrowDown":{Me.preventDefault();let ct=st;for(let ut=0;ut<lt.length&&(ct=(ct+1)%lt.length,!!lt[ct].disabled);ut++);ae(ut=>{const bt=[...ut];return bt[Oe]=ct,bt});break}case"ArrowUp":{Me.preventDefault();let ct=st<0?lt.length:st;for(let ut=0;ut<lt.length&&(ct=(ct-1+lt.length)%lt.length,!!lt[ct].disabled);ut++);ae(ut=>{const bt=[...ut];return bt[Oe]=ct,bt});break}case"ArrowRight":{if(Me.preventDefault(),st>=0&&st<lt.length){const ct=lt[st];Kr(ct,E,z)&&!ct.disabled&&(ye(Oe,ct),we(Oe+1),ae(ut=>{const bt=[...ut];return bt[Oe+1]=0,bt}))}break}case"ArrowLeft":{Me.preventDefault(),Oe>0&&we(Oe-1);break}case"Enter":{Me.preventDefault(),st>=0&&st<lt.length&&et(Oe,lt[st]);break}}},St=Me=>{if(Me.key==="Escape"){Me.preventDefault(),$e(!1),De.current?.focus();return}if(!(!pe||Pe.length===0))switch(Me.key){case"ArrowDown":Me.preventDefault(),We(Oe=>Math.min(Oe+1,Pe.length-1));break;case"ArrowUp":Me.preventDefault(),We(Oe=>Math.max(Oe-1,0));break;case"Enter":Me.preventDefault(),Pe[Se]&&yt(Pe[Se]);break}};s.useEffect(()=>{We(0)},[Pe.length]);const de={large:{height:"2.5rem",fontSize:"1rem",padding:"0.5rem 0.75rem",tagLineHeight:"1.75rem"},middle:{height:"2.25rem",fontSize:"0.875rem",padding:"0.375rem 0.75rem",tagLineHeight:"1.5rem"},small:{height:"1.75rem",fontSize:"0.875rem",padding:"0.125rem 0.5rem",tagLineHeight:"1rem"}}[m],He=be({position:"relative",display:"inline-block",width:"100%"},P?.root,N),qe={outlined:{border:`1px solid ${i.colorBorder}`,backgroundColor:i.colorBg},filled:{border:"1px solid transparent",backgroundColor:i.colorBgMuted},borderless:{border:"1px solid transparent",backgroundColor:"transparent"}},nt=g==="error"?i.colorError:g==="warning"?i.colorWarning:void 0,Je=g==="error"?i.colorErrorBg:g==="warning"?i.colorWarningBg:i.colorPrimaryLight,gt=C?q.length>0:V.length>0,Tt={display:"flex",alignItems:C?"flex-start":"center",flexWrap:C?"wrap":void 0,width:"100%",height:C?"auto":de.height,minHeight:C?de.height:void 0,padding:de.padding,paddingRight:"2rem",fontSize:de.fontSize,fontFamily:"inherit",borderRadius:"0.375rem",cursor:a?"not-allowed":"pointer",userSelect:"none",outline:"none",transition:"border-color 0.2s ease, box-shadow 0.2s ease",color:a?i.colorTextSubtle:nt||i.colorText,...qe[h],borderColor:Le&&!a?nt||i.colorPrimary:nt||(h==="outlined"?i.colorBorder:"transparent"),boxShadow:Le&&!a&&Re.current==="keyboard"?`0 0 0 2px ${Je}`:"none",...a?{opacity:.6}:{}},Et=be(Tt,P?.selector),ue=b.endsWith("Right"),Q={position:"absolute",zIndex:1050,left:ue?void 0:0,right:ue?0:void 0,opacity:te?1:0,transition:"opacity 0.15s ease-out, transform 0.15s ease-out",backgroundColor:i.colorBg,border:`1px solid ${i.colorBorder}`,borderRadius:"0.5rem",boxShadow:i.shadowMd,overflow:"hidden",...O?{bottom:"100%",marginBottom:"0.25rem",transform:te?"translateY(0)":"translateY(6px)"}:{top:"100%",marginTop:"0.25rem",transform:te?"translateY(0)":"translateY(-6px)"}},ee=be(Q,P?.dropdown),Be={minWidth:"7.5rem",maxHeight:"16rem",overflowY:"auto",padding:"0.25rem 0"},ze={display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0.375rem 0.75rem",fontSize:"0.875rem",cursor:"pointer",transition:"background-color 0.15s ease",lineHeight:"1.375rem",whiteSpace:"nowrap"},Ke={position:"absolute",right:"0.5rem",top:C?"0.625rem":"50%",transform:C?void 0:"translateY(-50%)",display:"flex",alignItems:"center",gap:"0.25rem",pointerEvents:"none"},rt={display:"flex",alignItems:"center",justifyContent:"center",width:"1.25rem",height:"1.25rem",borderRadius:"50%",border:"none",backgroundColor:"transparent",color:i.colorTextMuted,cursor:"pointer",padding:0,pointerEvents:"auto",transition:"color 0.15s ease, background-color 0.15s ease"},pt={width:"100%",padding:"0.375rem 0.75rem",fontSize:"0.875rem",fontFamily:"inherit",border:"none",borderBottom:`1px solid ${i.colorBorder}`,outline:"none",backgroundColor:"transparent",color:i.colorText},Lt={display:"inline-flex",alignItems:"center",padding:"1px 0.5rem",fontSize:"0.75rem",lineHeight:"1.25rem",backgroundColor:i.colorBgMuted,borderRadius:"0.25rem",maxWidth:"12.5rem",border:`1px solid ${i.colorBorder}`},Ae=(Me,Oe)=>{const lt={display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1rem",height:"1rem",borderRadius:"0.1875rem",border:`1.5px solid ${Me!=="unchecked"?i.colorPrimary:i.colorBorder}`,backgroundColor:Me!=="unchecked"?i.colorPrimary:"transparent",color:"#fff",marginRight:"0.5rem",flexShrink:0,transition:"all 0.15s ease",cursor:Oe?"not-allowed":"pointer",opacity:Oe?.5:1};return t.jsxs("span",{style:lt,children:[Me==="checked"&&t.jsx(cs,{}),Me==="indeterminate"&&t.jsx(us,{})]})},Ce=()=>{if(me.length===0)return t.jsx("span",{style:{color:i.colorTextSubtle,flex:1,lineHeight:de.tagLineHeight},children:o});const Me=w!==void 0?Math.min(w,me.length):me.length,Oe=me.slice(0,Me),lt=me.slice(Me);return t.jsxs("span",{style:{display:"flex",flexWrap:"wrap",gap:"0.25rem",flex:1,overflow:"hidden",alignItems:"center"},children:[Oe.map((st,ct)=>{const Bt=Zt(e,st,E).map(xe=>Zr(Cr(xe,E))).join(" / "),_t=!a,It=()=>Ct(st);return R?t.jsx("span",{children:R({label:Bt,value:st,closable:_t,onClose:It})},ct):t.jsxs("span",{style:Lt,children:[t.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Bt}),_t&&t.jsx("span",{style:{display:"inline-flex",cursor:"pointer",marginLeft:"0.25rem",color:i.colorTextMuted},onClick:xe=>{xe.stopPropagation(),It()},onMouseDown:xe=>xe.preventDefault(),children:t.jsx(ac,{})})]},ct)}),lt.length>0&&t.jsx("span",{style:Lt,children:typeof M=="function"?M(lt):M??`+${lt.length}`})]})},tt=(Me,Oe,lt)=>{const st=Dt(Me,E),ct=Cr(Me,E),ut=Kr(Me,E,z),bt=!C&&V[Oe]===st,Bt=_e===Oe&&je[Oe]===lt,_t={...ze,backgroundColor:Bt?i.colorBgMuted:bt?i.colorPrimaryBg:void 0,color:Me.disabled?i.colorTextSubtle:bt?i.colorPrimary:i.colorText,fontWeight:bt?600:void 0,cursor:Me.disabled?"not-allowed":"pointer",opacity:Me.disabled?.5:1,...P?.option};return t.jsxs("div",{role:"option","aria-selected":bt,"aria-disabled":Me.disabled,style:_t,className:$?.option,onClick:()=>et(Oe,Me),onMouseEnter:It=>{Me.disabled||(!bt&&!Bt&&(It.currentTarget.style.backgroundColor=i.colorBgMuted),ht(Oe,Me))},onMouseLeave:It=>{!Me.disabled&&!bt&&!Bt&&(It.currentTarget.style.backgroundColor="transparent")},children:[C&&Ae(nn(Me,Oe,J,q,E,e),!!Me.disabled||!!Me.disableCheckbox),t.jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis"},children:ct}),ut&&t.jsx("span",{style:{display:"flex",marginLeft:"0.5rem",color:i.colorTextMuted,flexShrink:0},children:Me.loading?t.jsx(cc,{}):p??t.jsx(as,{})})]},String(st))},dt=pe?Pe.length===0?t.jsx("div",{style:{padding:"0.5rem 0.75rem",fontSize:"0.875rem",color:i.colorTextSubtle,textAlign:"center"},children:v}):t.jsx("div",{style:{...Be,...P?.menu},className:$?.menu,children:Pe.map((Me,Oe)=>{const lt=Oe===Se,st=Me.map(_t=>Zr(Cr(_t,E))),ct=Ge.render?Ge.render(he,Me):gc(st.join(" / "),he),ut=Me.map(_t=>Dt(_t,E)),bt=C&&pr(ut,q),Bt={...ze,backgroundColor:lt?i.colorBgMuted:void 0,...P?.option};return t.jsxs("div",{role:"option","aria-selected":lt,style:Bt,className:$?.option,onClick:()=>yt(Me),onMouseEnter:_t=>{We(Oe),lt||(_t.currentTarget.style.backgroundColor=i.colorBgMuted)},onMouseLeave:_t=>{lt||(_t.currentTarget.style.backgroundColor="transparent")},children:[C&&Ae(bt?"checked":"unchecked",!1),t.jsx("span",{style:{flex:1},children:ct})]},Oe)})}):t.jsx("div",{style:{display:"flex"},children:Ve.map((Me,Oe)=>{const lt=Oe===Ve.length-1,st={...Be,borderRight:lt?void 0:`1px solid ${i.colorBorder}`,...P?.menu};return t.jsx("div",{style:st,className:$?.menu,children:Me.map((ct,ut)=>tt(ct,Oe,ut))},Oe)})});return t.jsxs("div",{ref:ce,style:He,className:xt(L,$?.root),children:[t.jsx("style",{children:"@keyframes j-nested-spin { to { transform: rotate(360deg); } }"}),t.jsxs("div",{ref:De,role:"combobox","aria-expanded":se,"aria-haspopup":"listbox",tabIndex:a?-1:0,style:Et,className:$?.selector,onClick:ot,onKeyDown:Fe,onMouseDown:()=>{Ie.current=!0},onFocus:()=>{Re.current=Ie.current?"mouse":"keyboard",Ie.current=!1,Te(!0)},onBlur:()=>Te(!1),children:[B&&t.jsx("span",{style:{display:"flex",alignItems:"center",marginRight:"0.5rem",flexShrink:0},children:B}),C?Ce():ge?t.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1},children:ge}):t.jsx("span",{style:{color:i.colorTextSubtle,flex:1},children:o})]}),t.jsxs("span",{style:Ke,children:[c&&gt&&!a&&t.jsx("button",{type:"button",style:rt,onMouseDown:Me=>Me.preventDefault(),onClick:ft,onMouseEnter:Me=>{Me.currentTarget.style.color=i.colorText,Me.currentTarget.style.backgroundColor=i.colorBgMuted},onMouseLeave:Me=>{Me.currentTarget.style.color=i.colorTextMuted,Me.currentTarget.style.backgroundColor="transparent"},tabIndex:-1,"aria-label":"Clear",children:t.jsx(lc,{})}),t.jsx("span",{style:{display:"flex",color:i.colorTextMuted,pointerEvents:"none"},children:y??t.jsx(ic,{})})]}),se&&t.jsxs("div",{ref:ve,style:ee,className:$?.dropdown,onMouseDown:Me=>Me.preventDefault(),children:[u&&t.jsx("input",{ref:G,type:"text",placeholder:"Buscar...",value:he,onChange:Me=>fe(Me.target.value),onKeyDown:St,style:pt,autoComplete:"off"}),I?I(dt):dt]})]})}function hc({options:e=[],value:r,defaultValue:n,onChange:o,multiple:l=!1,expandTrigger:a="click",changeOnSelect:c=!1,fieldNames:d,expandIcon:f,disabled:u=!1,className:h,style:g,classNames:m,styles:y}){const p={label:d?.label??"label",value:d?.value??"value",children:d?.children??"children"},v=r!==void 0,k=l?[]:n??[],[j,b]=s.useState(k),C=l?[]:v?r:j,x=l?n??[]:[],[w,M]=s.useState(x),R=l?v?r:w:[],[S,B]=s.useState(!l&&C.length>0?[...C]:[]),I=-1,T=[],_=s.useRef(null);s.useEffect(()=>()=>{_.current&&clearTimeout(_.current)},[]);const L=s.useMemo(()=>{const X=[e];let U=e;for(const q of S){const H=tr(U,q,p);if(H){const re=$t(H,p);if(re&&re.length>0)X.push(re),U=re;else break}else break}return X},[e,S,p.value,p.children]),N=s.useCallback((X,U)=>{v||b(X),o?.(X,U)},[v,o]),$=s.useCallback((X,U)=>{v||M(X),o?.(X,U)},[v,o]),P=(X,U)=>{const q=Dt(U,p);B(H=>{const re=H.slice(0,X);return re[X]=q,re})},E=s.useCallback((X,U)=>{if(U.disabled||U.disableCheckbox)return;const q=Wn(e,S,p,X),H=Dt(U,p),re=$t(U,p);let oe;re&&re.length>0?oe=wr(U,p,q).filter(_e=>{const we=Zt(e,_e,p),je=we[we.length-1];return je&&!je.disabled&&!je.disableCheckbox}):oe=[[...q,H]];const se=nn(U,X,S,R,p,e);let J;if(se==="checked")J=R.filter(_e=>!oe.some(we=>hr(_e,we)));else{const _e=oe.filter(we=>!pr(we,R));J=[...R,..._e]}const ie=J.map(_e=>Zt(e,_e,p));$(J,ie)},[e,S,p,R,$]),z=(X,U)=>{if(u||U.disabled)return;const q=xn(U,p);if(l){q&&P(X,U),U.disableCheckbox||E(X,U);return}if(q){if(P(X,U),c){const H=[];let re=e;for(let se=0;se<X;se++){const J=tr(re,S[se],p);if(J){H.push(J);const ie=$t(J,p);ie&&(re=ie)}}H.push(U);const oe=H.map(se=>Dt(se,p));N(oe,H)}}else{const H=[];let re=e;for(let se=0;se<X;se++){const J=tr(re,S[se],p);if(J){H.push(J);const ie=$t(J,p);ie&&(re=ie)}}H.push(U);const oe=H.map(se=>Dt(se,p));N(oe,H)}},F=(X,U)=>{a!=="hover"||u||U.disabled||(_.current&&clearTimeout(_.current),_.current=window.setTimeout(()=>{xn(U,p)&&P(X,U)},150))},A=(X,U)=>{const q={display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1rem",height:"1rem",borderRadius:"0.1875rem",border:`1.5px solid ${X!=="unchecked"?i.colorPrimary:i.colorBorder}`,backgroundColor:X!=="unchecked"?i.colorPrimary:"transparent",color:"#fff",marginRight:"0.5rem",flexShrink:0,transition:"all 0.15s ease",cursor:U?"not-allowed":"pointer",opacity:U?.5:1};return t.jsxs("span",{style:q,children:[X==="checked"&&t.jsx(cs,{}),X==="indeterminate"&&t.jsx(us,{})]})},D={minWidth:"7.5rem",maxHeight:"16rem",overflowY:"auto",padding:"0.25rem 0"},W={display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0.375rem 0.75rem",fontSize:"0.875rem",cursor:u?"not-allowed":"pointer",transition:"background-color 0.15s ease",lineHeight:"1.375rem",whiteSpace:"nowrap"},V={display:"inline-flex",backgroundColor:i.colorBg,border:`1px solid ${i.colorBorder}`,borderRadius:"0.5rem",overflow:"hidden",...g},Z=(X,U,q)=>{const H=Dt(X,p),re=Cr(X,p),oe=xn(X,p),se=!l&&C[U]===H,J=I===U&&T[U]===q,ie=u||!!X.disabled,_e={...W,backgroundColor:J?i.colorBgMuted:se?i.colorPrimaryBg:void 0,color:ie?i.colorTextSubtle:se?i.colorPrimary:i.colorText,fontWeight:se?600:void 0,cursor:ie?"not-allowed":"pointer",opacity:ie?.5:1,...y?.option};return t.jsxs("div",{role:"option","aria-selected":se,"aria-disabled":ie,style:_e,className:m?.option,onClick:()=>z(U,X),onMouseEnter:we=>{ie||(!se&&!J&&(we.currentTarget.style.backgroundColor=i.colorBgMuted),F(U,X))},onMouseLeave:we=>{!ie&&!se&&!J&&(we.currentTarget.style.backgroundColor="transparent")},children:[l&&A(nn(X,U,S,R,p,e),ie||!!X.disableCheckbox),t.jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis"},children:re}),oe&&t.jsx("span",{style:{display:"flex",marginLeft:"0.5rem",color:i.colorTextMuted,flexShrink:0},children:f??t.jsx(as,{})})]},String(H))};return t.jsx("div",{style:be(V,y?.root),className:xt(h,m?.root),children:L.map((X,U)=>{const q=U===L.length-1,H={...D,borderRight:q?void 0:`1px solid ${i.colorBorder}`,...y?.menu};return t.jsx("div",{style:H,className:m?.menu,children:X.map((re,oe)=>Z(re,U,oe))},U)})})}const pc=Object.assign(fc,{Panel:hc,SHOW_PARENT:"SHOW_PARENT",SHOW_CHILD:"SHOW_CHILD"});function gc(e,r){if(!r)return e;const n=e.toLowerCase().indexOf(r.toLowerCase());return n===-1?e:t.jsxs(t.Fragment,{children:[e.slice(0,n),t.jsx("strong",{style:{color:i.colorPrimary},children:e.slice(n,n+r.length)}),e.slice(n+r.length)]})}function mc(){return t.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"2 5.5 4 7.5 8 3"})})}function xc(){return t.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("line",{x1:"2.5",y1:"5",x2:"7.5",y2:"5"})})}const fs=s.createContext(null);function hs({checked:e,defaultChecked:r=!1,disabled:n=!1,indeterminate:o=!1,autoFocus:l=!1,onChange:a,value:c,children:d,id:f,name:u,tabIndex:h,className:g,style:m,classNames:y,styles:p}){const v=s.useRef(null),k=s.useRef(!1),j=s.useRef("keyboard"),b=s.useContext(fs),C=b!==null,x=e!==void 0,[w,M]=s.useState(r);let R,S,B;C?(R=c!==void 0&&b.value.includes(c),S=n||b.disabled,B=b.name||u):(R=x?e:w,S=n,B=u);const[I,T]=s.useState(!1),_=R||o;s.useEffect(()=>{v.current&&(v.current.indeterminate=o)},[o]),s.useEffect(()=>{l&&v.current&&v.current.focus()},[]);const L=$=>{if(!S)if(C&&c!==void 0)b.toggleValue(c);else{const P=$.target.checked;x||M(P),a?.({target:{checked:P,value:c},nativeEvent:$.nativeEvent})}},N=Y("ino-checkbox",{"ino-checkbox--active":_,"ino-checkbox--disabled":S,"ino-checkbox--focused":I&&j.current==="keyboard"},g,y?.root);return t.jsxs("label",{className:N,style:{...p?.root,...m},onMouseDown:()=>{k.current=!0},children:[t.jsxs("span",{className:Y("ino-checkbox__box",y?.checkbox),style:p?.checkbox,children:[t.jsx("input",{ref:v,type:"checkbox",id:f,name:B,checked:R,disabled:S,tabIndex:h,onChange:L,onFocus:()=>{j.current=k.current?"mouse":"keyboard",k.current=!1,T(!0)},onBlur:()=>T(!1),className:"ino-checkbox__input",value:c!==void 0?String(c):void 0}),_&&t.jsx("span",{className:Y("ino-checkbox__indicator",y?.indicator),style:p?.indicator,children:o?t.jsx(xc,{}):t.jsx(mc,{})})]}),d!=null&&t.jsx("span",{className:Y("ino-checkbox__label",y?.label),style:p?.label,children:d})]})}function yc({options:e,value:r,defaultValue:n=[],disabled:o=!1,name:l,onChange:a,children:c,className:d,style:f,classNames:u,styles:h}){const g=r!==void 0,[m,y]=s.useState(n),p=g?r:m,v=s.useCallback(b=>{const C=p.includes(b)?p.filter(x=>x!==b):[...p,b];g||y(C),a?.(C)},[p,g,a]),k={value:p,disabled:o,name:l,toggleValue:v},j=e?.map(b=>typeof b=="string"||typeof b=="number"?{label:String(b),value:b}:b);return t.jsx(fs.Provider,{value:k,children:t.jsx("div",{role:"group",className:Y("ino-checkbox-group",d,u?.root),style:{...h?.root,...f},children:j?j.map(b=>t.jsx(hs,{value:b.value,disabled:b.disabled,className:b.className,style:b.style,children:b.label},String(b.value))):c})})}const Er=Object.assign(hs,{Group:yc});function ps(){return t.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[t.jsx("line",{x1:"3",y1:"3",x2:"9",y2:"9"}),t.jsx("line",{x1:"9",y1:"3",x2:"3",y2:"9"})]})}function Wt(e,r,n){return Math.max(r,Math.min(n,e))}function gr(e,r,n){const o=r/100,l=n/100,a=d=>(d+e/60)%6,c=d=>l*(1-o*Math.max(0,Math.min(a(d),4-a(d),1)));return{r:Math.round(c(5)*255),g:Math.round(c(3)*255),b:Math.round(c(1)*255)}}function Ir(e,r,n){const o=e/255,l=r/255,a=n/255,c=Math.max(o,l,a),d=Math.min(o,l,a),f=c-d;let u=0;if(f!==0)switch(c){case o:u=((l-a)/f+(l<a?6:0))*60;break;case l:u=((a-o)/f+2)*60;break;case a:u=((o-l)/f+4)*60;break}return{h:Math.round(u),s:Math.round(c===0?0:f/c*100),b:Math.round(c*100)}}function Tn(e){let r=e.replace("#","");return r.length===3&&(r=r[0]+r[0]+r[1]+r[1]+r[2]+r[2]),r.length===4&&(r=r[0]+r[0]+r[1]+r[1]+r[2]+r[2]+r[3]+r[3]),{r:parseInt(r.slice(0,2),16)||0,g:parseInt(r.slice(2,4),16)||0,b:parseInt(r.slice(4,6),16)||0,a:r.length===8?Math.round(parseInt(r.slice(6,8),16)/255*100)/100:1}}function cr(e){const{r,g:n,b:o}=gr(e.h,e.s,e.b),l="#"+[r,n,o].map(a=>a.toString(16).padStart(2,"0")).join("");return e.a<1?l+Math.round(e.a*255).toString(16).padStart(2,"0"):l}function bc(e){const{r,g:n,b:o}=gr(e.h,e.s,e.b);return e.a<1?`rgba(${r}, ${n}, ${o}, ${Math.round(e.a*100)/100})`:`rgb(${r}, ${n}, ${o})`}function vc(e){return e.a<1?`hsba(${Math.round(e.h)}, ${Math.round(e.s)}%, ${Math.round(e.b)}%, ${Math.round(e.a*100)/100})`:`hsb(${Math.round(e.h)}, ${Math.round(e.s)}%, ${Math.round(e.b)}%)`}function Ur(e){return{h:e.h,s:e.s,b:e.b,a:e.a,toHexString(){return cr(this)},toRgbString(){return bc(this)},toHsbString(){return vc(this)},toRgb(){return{...gr(this.h,this.s,this.b),a:this.a}},toHsb(){return{h:this.h,s:this.s,b:this.b,a:this.a}}}}function lr(e){if(!e)return{h:0,s:100,b:100,a:1};if(typeof e=="object"&&"h"in e)return{h:e.h,s:e.s,b:e.b,a:e.a};const r=String(e).trim();if(r.startsWith("#")){const l=Tn(r);return{...Ir(l.r,l.g,l.b),a:l.a}}const n=r.match(/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+))?\s*\)/);if(n)return{...Ir(+n[1],+n[2],+n[3]),a:n[4]!==void 0?parseFloat(n[4]):1};const o=r.match(/hsba?\(\s*(\d+)\s*,\s*(\d+)%?\s*,\s*(\d+)%?\s*(?:,\s*([\d.]+))?\s*\)/);return o?{h:+o[1],s:+o[2],b:+o[3],a:o[4]!==void 0?parseFloat(o[4]):1}:/^[0-9a-f]{3,8}$/i.test(r)?lr("#"+r):{h:0,s:100,b:100,a:1}}function Cc(e,r){return e.h===r.h&&e.s===r.s&&e.b===r.b&&e.a===r.a}function yn(e){return Array.isArray(e)&&e.length>0&&typeof e[0]=="object"&&e[0]!==null&&"percent"in e[0]}function lo(e){return e.map(r=>({color:lr(r.color),percent:r.percent}))}function dr(e,r){const o=[...e].sort((l,a)=>l.percent-a.percent).map(l=>`${cr(l.color)} ${l.percent}%`).join(", ");return`linear-gradient(${r}deg, ${o})`}function xr(e){return e.map(r=>({color:cr(r.color),percent:r.percent}))}function kc(e,r){const n=[...e].sort((c,d)=>c.percent-d.percent);if(n.length===0)return{h:0,s:100,b:100,a:1};if(r<=n[0].percent)return{...n[0].color};if(r>=n[n.length-1].percent)return{...n[n.length-1].color};let o=n[0],l=n[n.length-1];for(let c=0;c<n.length-1;c++)if(r>=n[c].percent&&r<=n[c+1].percent){o=n[c],l=n[c+1];break}const a=l.percent===o.percent?0:(r-o.percent)/(l.percent-o.percent);return{h:Math.round(o.color.h+(l.color.h-o.color.h)*a),s:Math.round(o.color.s+(l.color.s-o.color.s)*a),b:Math.round(o.color.b+(l.color.b-o.color.b)*a),a:Math.round((o.color.a+(l.color.a-o.color.a)*a)*100)/100}}function Hn(e,r,n){const o=s.useRef(r),l=s.useRef(n);o.current=r,l.current=n;const a=s.useRef(!1);return s.useEffect(()=>{const c=f=>{if(!a.current||!e.current)return;f.preventDefault();const u=e.current.getBoundingClientRect();o.current(Wt((f.clientX-u.left)/u.width,0,1),Wt((f.clientY-u.top)/u.height,0,1))},d=()=>{a.current&&(a.current=!1,l.current())};return document.addEventListener("mousemove",c),document.addEventListener("mouseup",d),()=>{document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",d)}},[e]),c=>{if(c.preventDefault(),a.current=!0,!e.current)return;const d=e.current.getBoundingClientRect();o.current(Wt((c.clientX-d.left)/d.width,0,1),Wt((c.clientY-d.top)/d.height,0,1))}}function wc({hue:e,saturation:r,brightness:n,onChange:o,onDragEnd:l}){const a=s.useRef(null),c=Hn(a,(f,u)=>o(Math.round(f*100),Math.round((1-u)*100)),l),d=`hsl(${e}, 100%, 50%)`;return t.jsx("div",{ref:a,onMouseDown:c,style:{position:"relative",width:"100%",height:150,borderRadius:4,cursor:"crosshair",overflow:"hidden",background:`linear-gradient(to bottom, transparent 0%, #000 100%), linear-gradient(to right, #fff 0%, ${d} 100%)`},children:t.jsx("div",{style:{position:"absolute",left:`${r}%`,top:`${100-n}%`,width:12,height:12,borderRadius:"50%",border:"2px solid #fff",boxShadow:"0 0 2px rgba(0,0,0,0.4)",transform:"translate(-50%, -50%)",pointerEvents:"none"}})})}function jc({hue:e,onChange:r,onDragEnd:n}){const o=s.useRef(null),l=Hn(o,a=>r(Math.round(a*360)),n);return t.jsx("div",{ref:o,onMouseDown:l,style:{position:"relative",width:"100%",height:10,borderRadius:5,cursor:"pointer",background:"linear-gradient(to right, hsl(0,100%,50%), hsl(60,100%,50%), hsl(120,100%,50%), hsl(180,100%,50%), hsl(240,100%,50%), hsl(300,100%,50%), hsl(360,100%,50%))"},children:t.jsx("div",{style:{position:"absolute",left:`${e/360*100}%`,top:"50%",width:12,height:12,borderRadius:"50%",border:"2px solid #fff",boxShadow:"0 0 2px rgba(0,0,0,0.3)",transform:"translate(-50%, -50%)",pointerEvents:"none",backgroundColor:`hsl(${e}, 100%, 50%)`}})})}function Sc({color:e,alpha:r,onChange:n,onDragEnd:o}){const l=s.useRef(null),a=Hn(l,g=>n(Math.round(g*100)/100),o),{r:c,g:d,b:f}=gr(e.h,e.s,e.b),u=`rgb(${c}, ${d}, ${f})`,h=["linear-gradient(45deg, #ccc 25%, transparent 25%)","linear-gradient(-45deg, #ccc 25%, transparent 25%)","linear-gradient(45deg, transparent 75%, #ccc 75%)","linear-gradient(-45deg, transparent 75%, #ccc 75%)"].join(", ");return t.jsxs("div",{style:{position:"relative",width:"100%",height:10,borderRadius:5},children:[t.jsx("div",{style:{position:"absolute",inset:0,borderRadius:5,backgroundImage:h,backgroundSize:"8px 8px",backgroundPosition:"0 0, 0 4px, 4px -4px, -4px 0"}}),t.jsx("div",{ref:l,onMouseDown:a,style:{position:"absolute",inset:0,borderRadius:5,cursor:"pointer",background:`linear-gradient(to right, transparent 0%, ${u} 100%)`},children:t.jsx("div",{style:{position:"absolute",left:`${r*100}%`,top:"50%",width:12,height:12,borderRadius:"50%",border:"2px solid #fff",boxShadow:"0 0 2px rgba(0,0,0,0.3)",transform:"translate(-50%, -50%)",pointerEvents:"none",backgroundColor:u}})})]})}function Mc({color:e,format:r,disabledAlpha:n,onColorChange:o,onFormatChange:l}){const[a,c]=s.useState(cr(e).toUpperCase()),d=s.useRef(e);Cc(d.current,e)||(d.current=e,c(cr(e).toUpperCase()));const f=["hex","rgb","hsb"],u=()=>{let x=a.startsWith("#")?a:"#"+a;if(/^#[0-9a-f]{6}$/i.test(x)){const w=Tn(x),M=Ir(w.r,w.g,w.b);o({...M,a:e.a})}else if(/^#[0-9a-f]{8}$/i.test(x)){const w=Tn(x),M=Ir(w.r,w.g,w.b);o({...M,a:w.a})}else c(cr(e).toUpperCase())},{r:h,g,b:m}=gr(e.h,e.s,e.b),y=(x,w)=>{if(isNaN(w))return;const M=x==="r"?Wt(w,0,255):h,R=x==="g"?Wt(w,0,255):g,S=x==="b"?Wt(w,0,255):m,B=Ir(M,R,S);o({...B,a:e.a})},p=(x,w)=>{isNaN(w)||o({h:x==="h"?Wt(w,0,360):e.h,s:x==="s"?Wt(w,0,100):e.s,b:x==="b"?Wt(w,0,100):e.b,a:e.a})},v=x=>{isNaN(x)||o({...e,a:Wt(x,0,100)/100})},[k,j]=s.useState(!1),b=s.useRef(null);s.useEffect(()=>{if(!k)return;const x=w=>{b.current&&!b.current.contains(w.target)&&j(!1)};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[k]);const C={height:"1.5rem",border:`1px solid ${i.colorBorder}`,borderRadius:"0.25rem",padding:"0 0.25rem",fontSize:"0.75rem",fontFamily:"monospace",textAlign:"center",outline:"none",color:i.colorText,backgroundColor:"transparent",flex:1,minWidth:0};return t.jsxs("div",{style:{display:"flex",gap:"0.25rem",alignItems:"center"},children:[t.jsxs("div",{ref:b,style:{position:"relative",flexShrink:0},children:[t.jsxs("button",{type:"button",onClick:()=>j(!k),style:{height:"1.5rem",padding:"0 0.25rem 0 0.375rem",border:`1px solid ${i.colorBorder}`,borderRadius:"0.25rem",backgroundColor:"transparent",color:i.colorText,cursor:"pointer",fontSize:"0.6875rem",fontWeight:600,display:"flex",alignItems:"center",gap:"0.125rem",fontFamily:"inherit",outline:"none",transition:"border-color 0.15s ease"},onMouseEnter:x=>{x.currentTarget.style.borderColor=i.colorBorderHover},onMouseLeave:x=>{x.currentTarget.style.borderColor=i.colorBorder},children:[r.toUpperCase(),t.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",style:{transform:k?"rotate(180deg)":void 0,transition:"transform 0.15s ease"},children:t.jsx("polyline",{points:"3 4 5 6 7 4"})})]}),k&&t.jsx("div",{style:{position:"absolute",top:"100%",left:0,marginTop:"0.125rem",zIndex:10,minWidth:"100%",padding:"0.125rem",borderRadius:"0.375rem",border:`1px solid ${i.colorBorder}`,backgroundColor:i.colorBg,boxShadow:"0 2px 8px rgba(0,0,0,0.15)"},children:f.map(x=>t.jsx("button",{type:"button",onClick:()=>{l(x),j(!1)},onMouseEnter:w=>{w.currentTarget.style.backgroundColor=i.colorBgMuted},onMouseLeave:w=>{w.currentTarget.style.backgroundColor="transparent"},style:{display:"block",width:"100%",padding:"0.25rem 0.5rem",border:"none",borderRadius:"0.25rem",backgroundColor:"transparent",color:x===r?i.colorPrimary:i.colorText,cursor:"pointer",fontSize:"0.6875rem",fontWeight:x===r?700:500,fontFamily:"inherit",textAlign:"left",transition:"background-color 0.1s ease"},children:x.toUpperCase()},x))})]}),r==="hex"&&t.jsx("input",{style:{...C,fontFamily:"monospace"},value:a,onChange:x=>c(x.target.value),onBlur:u,onKeyDown:x=>{x.key==="Enter"&&u()}}),r==="rgb"&&t.jsxs(t.Fragment,{children:[t.jsx("input",{style:C,inputMode:"numeric",value:h,onChange:x=>{const w=x.target.value;/^\d*$/.test(w)&&y("r",w===""?0:Math.min(+w,255))}}),t.jsx("input",{style:C,inputMode:"numeric",value:g,onChange:x=>{const w=x.target.value;/^\d*$/.test(w)&&y("g",w===""?0:Math.min(+w,255))}}),t.jsx("input",{style:C,inputMode:"numeric",value:m,onChange:x=>{const w=x.target.value;/^\d*$/.test(w)&&y("b",w===""?0:Math.min(+w,255))}})]}),r==="hsb"&&t.jsxs(t.Fragment,{children:[t.jsx("input",{style:C,inputMode:"numeric",value:Math.round(e.h),onChange:x=>{const w=x.target.value;/^\d*$/.test(w)&&p("h",w===""?0:Math.min(+w,360))}}),t.jsx("input",{style:C,inputMode:"numeric",value:Math.round(e.s),onChange:x=>{const w=x.target.value;/^\d*$/.test(w)&&p("s",w===""?0:Math.min(+w,100))}}),t.jsx("input",{style:C,inputMode:"numeric",value:Math.round(e.b),onChange:x=>{const w=x.target.value;/^\d*$/.test(w)&&p("b",w===""?0:Math.min(+w,100))}})]}),!n&&t.jsxs(t.Fragment,{children:[t.jsx("input",{style:{...C,width:"2.25rem",flex:"none"},inputMode:"numeric",value:Math.round(e.a*100),onChange:x=>{const w=x.target.value;/^\d*$/.test(w)&&v(w===""?0:Math.min(+w,100))}}),t.jsx("span",{style:{fontSize:"0.6875rem",color:i.colorTextMuted,flexShrink:0},children:"%"})]})]})}function Rc({presets:e,onSelect:r}){return t.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"0.5rem"},children:e.map((n,o)=>t.jsxs("div",{children:[n.label&&t.jsx("div",{style:{fontSize:"0.75rem",color:i.colorTextMuted,marginBottom:"0.25rem",fontWeight:500},children:n.label}),t.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"0.25rem"},children:n.colors.map((l,a)=>t.jsx("button",{type:"button",onClick:()=>r(l),style:{width:"1.25rem",height:"1.25rem",borderRadius:"0.25rem",padding:0,cursor:"pointer",border:`1px solid ${i.colorBorder}`,backgroundColor:l}},a))})]},o))})}function Bc({stops:e,activeIndex:r,angle:n,onSelectStop:o,onMoveStop:l,onAddStop:a,onRemoveStop:c,onAngleChange:d,onDragEnd:f}){const u=s.useRef(null),h=s.useRef(null),g=s.useRef(l);g.current=l;const m=s.useRef(f);m.current=f,s.useEffect(()=>{const b=x=>{if(h.current===null||!u.current)return;x.preventDefault();const w=u.current.getBoundingClientRect(),M=Wt((x.clientX-w.left)/w.width*100,0,100);g.current(h.current,Math.round(M))},C=()=>{h.current!==null&&(h.current=null,m.current())};return document.addEventListener("mousemove",b),document.addEventListener("mouseup",C),()=>{document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",C)}},[]);const y=b=>{if(!u.current)return;const C=u.current.getBoundingClientRect(),x=Wt((b.clientX-C.left)/C.width*100,0,100);a(Math.round(x))},p=(b,C)=>{b.stopPropagation(),b.preventDefault(),h.current=C,o(C)},k=[...e].sort((b,C)=>b.percent-C.percent).map(b=>`${cr(b.color)} ${b.percent}%`).join(", "),j=["linear-gradient(45deg, #ccc 25%, transparent 25%)","linear-gradient(-45deg, #ccc 25%, transparent 25%)","linear-gradient(45deg, transparent 75%, #ccc 75%)","linear-gradient(-45deg, transparent 75%, #ccc 75%)"].join(", ");return t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"0.5rem"},children:[t.jsxs("div",{ref:u,onMouseDown:y,style:{position:"relative",height:12,borderRadius:6,cursor:"pointer",marginTop:"0.25rem",marginBottom:"0.25rem"},children:[t.jsx("div",{style:{position:"absolute",inset:0,borderRadius:6,backgroundImage:j,backgroundSize:"8px 8px",backgroundPosition:"0 0, 0 4px, 4px -4px, -4px 0"}}),t.jsx("div",{style:{position:"absolute",inset:0,borderRadius:6,background:`linear-gradient(to right, ${k})`}}),e.map((b,C)=>t.jsx("div",{onMouseDown:x=>p(x,C),style:{position:"absolute",left:`${b.percent}%`,top:"50%",transform:"translate(-50%, -50%)",width:14,height:14,borderRadius:"50%",border:C===r?`2px solid ${i.colorPrimary}`:"2px solid #fff",boxShadow:"0 0 3px rgba(0,0,0,0.3)",backgroundColor:cr(b.color),cursor:"grab",zIndex:C===r?2:1}},C))]}),t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.25rem"},children:[t.jsx("span",{style:{fontSize:"0.6875rem",color:i.colorTextMuted,flexShrink:0},children:"Angle"}),t.jsx("input",{type:"number",min:0,max:360,value:n,onChange:b=>d(Wt(+b.target.value,0,360)),style:{height:"1.5rem",width:"3rem",border:`1px solid ${i.colorBorder}`,borderRadius:"0.25rem",padding:"0 0.25rem",fontSize:"0.75rem",fontFamily:"monospace",textAlign:"center",outline:"none",color:i.colorText,backgroundColor:"transparent"}}),t.jsx("span",{style:{fontSize:"0.6875rem",color:i.colorTextMuted},children:"°"}),t.jsx("div",{style:{flex:1}}),e.length>2&&t.jsx("button",{type:"button",onClick:()=>c(r),style:{display:"flex",alignItems:"center",justifyContent:"center",width:"1.5rem",height:"1.5rem",padding:0,border:`1px solid ${i.colorBorder}`,borderRadius:"0.25rem",backgroundColor:"transparent",cursor:"pointer",color:i.colorTextMuted},onMouseEnter:b=>{b.currentTarget.style.color="#ff4d4f"},onMouseLeave:b=>{b.currentTarget.style.color=i.colorTextMuted},children:t.jsx(ps,{})})]})]})}function Tc({modes:e,activeMode:r,onModeChange:n}){return t.jsx("div",{style:{display:"flex",borderRadius:"0.25rem",overflow:"hidden",border:`1px solid ${i.colorBorder}`},children:e.map(o=>t.jsx("button",{type:"button",onClick:()=>n(o),style:{flex:1,padding:"0.25rem 0",border:"none",backgroundColor:o===r?i.colorPrimary:"transparent",color:o===r?"#fff":i.colorText,cursor:"pointer",fontSize:"0.6875rem",fontWeight:600,fontFamily:"inherit",transition:"background-color 0.15s ease, color 0.15s ease"},children:o==="single"?"Single":"Gradient"},o))})}const Lc={sm:{height:"1.5rem",swatch:16,radius:"0.25rem",fontSize:"0.75rem",paddingText:"0 0.6rem 0 0.375rem",paddingIcon:"0.1875rem"},md:{height:"2rem",swatch:20,radius:"0.375rem",fontSize:"0.8125rem",paddingText:"0 0.8rem 0 0.5rem",paddingIcon:"0.3125rem"},lg:{height:"2.5rem",swatch:28,radius:"0.5rem",fontSize:"0.875rem",paddingText:"0 1rem 0 0.625rem",paddingIcon:"0.3125rem"}};function _c({value:e,defaultValue:r="#1677ff",mode:n,onModeChange:o,format:l,defaultFormat:a="hex",disabled:c=!1,disabledAlpha:d=!1,allowClear:f=!1,showText:u,trigger:h="click",placement:g="bottomLeft",size:m="md",open:y,presets:p,panelRender:v,onChange:k,onChangeComplete:j,onGradientChange:b,onFormatChange:C,onOpenChange:x,onClear:w,children:M,className:R,style:S,classNames:B,styles:I}){const T=n?typeof n=="string"?n==="gradient"?["single","gradient"]:["single"]:n:["single"],_=T.length>1,L=typeof n=="string"&&n==="gradient"?"gradient":T[0],[N,$]=s.useState(L),P=T.includes(N)?N:T[0],E=P==="gradient",z=e!==void 0,F=y!==void 0,A=l!==void 0,D=e??r,[W,V]=s.useState(()=>yn(D)?{h:217,s:91,b:100,a:1}:lr(D)),[Z,X]=s.useState(!1),[U,q]=s.useState(l??a),[H,re]=s.useState(!1),[oe,se]=s.useState(!1),J=yn(e),ie=z&&J,_e=z&&!J?lr(e):W,we=F?y:Z,je=A?l:U,[ae,he]=s.useState(()=>yn(D)?lo(D):[{color:{...lr(D)},percent:0},{color:{h:0,s:0,b:100,a:1},percent:100}]),[fe,Se]=s.useState(90),[We,Le]=s.useState(0),Te=s.useRef(null),Ie=ie?lo(e):ae,Re=Math.min(We,Ie.length-1),O=E?Ie[Re]?.color??{h:0,s:100,b:100,a:1}:_e,K=s.useRef(Ie);K.current=Ie;const te=s.useRef(fe);te.current=fe;const ne=s.useRef(Re);ne.current=Re;const[ce,ve]=s.useState(g),De=s.useRef(null),G=s.useRef(null),le=s.useRef(null);s.useEffect(()=>{we&&(re(!1),requestAnimationFrame(()=>{requestAnimationFrame(()=>re(!0))}))},[we]),s.useEffect(()=>{if(!we)return;const ee=Be=>{De.current?.contains(Be.target)||G.current?.contains(Be.target)||pe(!1)};return document.addEventListener("mousedown",ee),()=>document.removeEventListener("mousedown",ee)},[we]),s.useEffect(()=>()=>{le.current&&clearTimeout(le.current)},[]),s.useLayoutEffect(()=>{if(!we||!G.current||!De.current)return;const ee=G.current.getBoundingClientRect(),Be=De.current.getBoundingClientRect(),ze=Be.top,Ke=window.innerHeight-Be.bottom,rt=ce.startsWith("top");!rt&&ee.bottom>window.innerHeight?ze>Ke&&ve(pt=>pt.replace("bottom","top")):rt&&ee.top<0&&Ke>ze&&ve(pt=>pt.replace("top","bottom"))});const pe=s.useCallback(ee=>{c||(ee&&ve(g),F||X(ee),x?.(ee))},[c,F,x,g]),Ee=s.useCallback(ee=>{if(se(!1),E){const ze=K.current,Ke=ne.current,rt=ze.map((pt,Lt)=>Lt===Ke?{...pt,color:ee}:pt);ie||he(rt),b?.(xr(rt),dr(rt,te.current));return}z||V(ee);const Be=Ur(ee);k?.(Be,Be.toHexString())},[E,ie,z,k,b]),Ue=s.useCallback(()=>{if(E){const ze=K.current;b?.(xr(ze),dr(ze,te.current));return}const ee=z?lr(e):W,Be=Ur(ee);j?.(Be,Be.toHexString())},[E,z,e,W,j,b]),Ye=s.useCallback(ee=>{A||q(ee),C?.(ee)},[A,C]),$e=s.useCallback(ee=>{Ee(lr(ee)),Ue()},[Ee,Ue]),Ze=s.useCallback(()=>{se(!0),w?.()},[w]),ke=s.useCallback(ee=>{if(ee!==P){if(ee==="gradient"){if(Te.current)he(Te.current);else{const Be=z&&!J?lr(e):W;he([{color:{...Be},percent:0},{color:{h:0,s:0,b:100,a:1},percent:100}])}Le(0)}else{Te.current=[...ae];const Be=ae[0]?.color??{h:0,s:100,b:100,a:1};z||V(Be)}$(ee),o?.(ee)}},[P,z,J,e,W,ae,o]),ge=s.useCallback(ee=>{Le(ee)},[]),me=s.useCallback((ee,Be)=>{const Ke=K.current.map((rt,pt)=>pt===ee?{...rt,percent:Be}:rt);ie||he(Ke),b?.(xr(Ke),dr(Ke,te.current))},[ie,b]),Ve=s.useCallback(ee=>{const Be=K.current,ze=kc(Be,ee),Ke=[...Be,{color:ze,percent:ee}];ie||he(Ke),Le(Ke.length-1),b?.(xr(Ke),dr(Ke,te.current))},[ie,b]),Ge=s.useCallback(ee=>{const Be=K.current;if(Be.length<=2)return;const ze=Be.filter((Ke,rt)=>rt!==ee);ie||he(ze),Le(Ke=>Math.min(Ke,ze.length-1)),b?.(xr(ze),dr(ze,te.current))},[ie,b]),Pe=s.useCallback(ee=>{Se(ee);const Be=K.current;b?.(xr(Be),dr(Be,ee))},[b]),ot=()=>{h==="click"&&pe(!we)},Fe=()=>{h!=="hover"||c||(le.current&&clearTimeout(le.current),pe(!0))},ye=()=>{h==="hover"&&(le.current=window.setTimeout(()=>pe(!1),200))},Ne=ce.startsWith("top"),Xe=ce.endsWith("Right"),et={position:"absolute",zIndex:1050,...Ne?{bottom:"100%",marginBottom:"0.25rem"}:{top:"100%",marginTop:"0.25rem"},...Xe?{right:0}:{left:0}},ht=Lc[m],{r:yt,g:ft,b:Ct}=gr(_e.h,_e.s,_e.b),kt=`rgba(${yt}, ${ft}, ${Ct}, ${_e.a})`,St=Ur(_e),{r:Rt,g:de,b:He}=gr(O.h,O.s,O.b),qe=`rgba(${Rt}, ${de}, ${He}, ${O.a})`,nt=E?dr(Ie,fe):"";let Je=null;if(u)if(E)typeof u=="function"?Je=u(Ur(O)):Je=`${fe}°`;else if(typeof u=="function")Je=u(St);else switch(je){case"hex":Je=St.toHexString().toUpperCase();break;case"rgb":Je=St.toRgbString();break;case"hsb":Je=St.toHsbString();break}const gt=t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"0.75rem"},children:[_&&t.jsx(Tc,{modes:T,activeMode:P,onModeChange:ke}),E&&t.jsx(Bc,{stops:Ie,activeIndex:Re,angle:fe,onSelectStop:ge,onMoveStop:me,onAddStop:Ve,onRemoveStop:Ge,onAngleChange:Pe,onDragEnd:Ue}),t.jsx(wc,{hue:O.h,saturation:O.s,brightness:O.b,onChange:(ee,Be)=>Ee({...O,s:ee,b:Be}),onDragEnd:Ue}),t.jsxs("div",{style:{display:"flex",gap:"0.75rem",alignItems:"center"},children:[t.jsx("div",{style:{width:"1.75rem",height:"1.75rem",borderRadius:"50%",flexShrink:0,border:`1px solid ${i.colorBorder}`,backgroundColor:qe}}),t.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:"0.375rem"},children:[t.jsx(jc,{hue:O.h,onChange:ee=>Ee({...O,h:ee}),onDragEnd:Ue}),!d&&t.jsx(Sc,{color:O,alpha:O.a,onChange:ee=>Ee({...O,a:ee}),onDragEnd:Ue})]})]}),t.jsx(Mc,{color:O,format:je,disabledAlpha:d,onColorChange:ee=>{Ee(ee),Ue()},onFormatChange:Ye}),p&&p.length>0&&t.jsxs(t.Fragment,{children:[t.jsx("div",{style:{height:1,backgroundColor:i.colorBorder}}),t.jsx(Rc,{presets:p,onSelect:$e})]}),f&&t.jsxs(t.Fragment,{children:[t.jsx("div",{style:{height:1,backgroundColor:i.colorBorder}}),t.jsxs("button",{type:"button",onClick:Ze,style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"0.25rem",padding:"0.25rem 0",border:"none",backgroundColor:"transparent",color:i.colorTextMuted,cursor:"pointer",fontSize:"0.75rem",fontFamily:"inherit"},onMouseEnter:ee=>{ee.currentTarget.style.color=i.colorText},onMouseLeave:ee=>{ee.currentTarget.style.color=i.colorTextMuted},children:[t.jsx(ps,{})," Clear"]})]})]}),Tt=v?v(gt):gt,Et=["linear-gradient(45deg, #ccc 25%, transparent 25%)","linear-gradient(-45deg, #ccc 25%, transparent 25%)","linear-gradient(45deg, transparent 75%, #ccc 75%)","linear-gradient(-45deg, transparent 75%, #ccc 75%)"].join(", "),ue=s.useRef(null),Q=M||t.jsxs("button",{ref:ue,type:"button",disabled:c,onClick:ot,className:B?.trigger,style:be({display:"inline-flex",alignItems:"center",gap:"0.5rem",height:ht.height,padding:u?ht.paddingText:ht.paddingIcon,border:`1px solid ${i.colorBorder}`,borderRadius:ht.radius,backgroundColor:i.colorBg,cursor:c?"not-allowed":"pointer",opacity:c?.5:1,transition:"border-color 0.2s ease"},I?.trigger),onMouseEnter:ee=>{c||(ee.currentTarget.style.borderColor=i.colorBorderHover)},onMouseLeave:ee=>{c||(ee.currentTarget.style.borderColor=i.colorBorder)},children:[t.jsxs("span",{style:{position:"relative",width:ht.swatch,height:ht.swatch,borderRadius:3,overflow:"hidden",boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"},children:[t.jsx("span",{style:{position:"absolute",inset:0,backgroundImage:Et,backgroundSize:"8px 8px",backgroundPosition:"0 0, 0 4px, 4px -4px, -4px 0"}}),E&&!oe?t.jsx("span",{style:{position:"absolute",inset:0,background:nt}}):t.jsx("span",{style:{position:"absolute",inset:0,backgroundColor:oe?"transparent":kt}}),oe&&t.jsx("span",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center"},children:t.jsx("svg",{width:ht.swatch,height:ht.swatch,viewBox:"0 0 16 16",fill:"none",stroke:"#ff4d4f",strokeWidth:"1.5",children:t.jsx("line",{x1:"3",y1:"3",x2:"13",y2:"13"})})})]}),u&&Je!==null&&t.jsx("span",{style:{fontSize:ht.fontSize,color:i.colorText,whiteSpace:"nowrap"},children:Je})]});return t.jsxs("div",{ref:De,className:xt(R,B?.root),style:be({position:"relative",display:"inline-block"},I?.root,S),onMouseEnter:Fe,onMouseLeave:ye,children:[M?t.jsx("div",{onClick:ot,style:{cursor:c?"not-allowed":"pointer"},children:Q}):Q,we&&t.jsx("div",{ref:G,className:B?.panel,style:be({...et,width:"17.5rem",padding:"0.75rem",borderRadius:"0.5rem",border:`1px solid ${i.colorBorder}`,boxShadow:i.shadowMd,backgroundColor:i.colorBg,opacity:H?1:0,transform:H?"translateY(0)":`translateY(${Ne?4:-4}px)`,transition:"opacity 0.2s ease, transform 0.2s ease"},I?.panel),onMouseEnter:Fe,onMouseLeave:ye,children:Tt})]})}function yr(e,r=2){return String(e).padStart(r,"0")}function Ht(e){return new Date(e.getTime())}function ao(e){const r=Ht(e);r.setHours(0,0,0,0),r.setDate(r.getDate()+4-(r.getDay()||7));const n=new Date(r.getFullYear(),0,1);return Math.ceil(((r.getTime()-n.getTime())/864e5+1)/7)}function Ec(e){const r=["th","st","nd","rd"],n=e%100;return e+(r[(n-20)%10]||r[n]||r[0])}const Ic=/\[([^\]]*)\]|YYYY|YY|MM|M|DD|D|HH|H|hh|h|mm|m|ss|s|A|a|ddd|dd|wo|Wo|QQ|Q/g;class On{locale;constructor(r){this.locale=r??(typeof navigator<"u"?navigator.language:"en-US")}today(){const r=new Date;return r.setHours(0,0,0,0),r}create(r){return r==null?new Date(NaN):r instanceof Date?Ht(r):new Date(r)}clone(r){return Ht(r)}isValid(r){return r instanceof Date&&!isNaN(r.getTime())}getYear(r){return r.getFullYear()}getMonth(r){return r.getMonth()}getDate(r){return r.getDate()}getDay(r){return r.getDay()}getHour(r){return r.getHours()}getMinute(r){return r.getMinutes()}getSecond(r){return r.getSeconds()}setYear(r,n){const o=Ht(r);return o.setFullYear(n),o}setMonth(r,n){const o=Ht(r),l=o.getDate();o.setDate(1),o.setMonth(n);const a=new Date(o.getFullYear(),n+1,0).getDate();return o.setDate(Math.min(l,a)),o}setDate(r,n){const o=Ht(r);return o.setDate(n),o}setHour(r,n){const o=Ht(r);return o.setHours(n),o}setMinute(r,n){const o=Ht(r);return o.setMinutes(n),o}setSecond(r,n){const o=Ht(r);return o.setSeconds(n),o}addDays(r,n){const o=Ht(r);return o.setDate(o.getDate()+n),o}addMonths(r,n){const o=Ht(r),l=o.getDate();o.setDate(1),o.setMonth(o.getMonth()+n);const a=new Date(o.getFullYear(),o.getMonth()+1,0).getDate();return o.setDate(Math.min(l,a)),o}addYears(r,n){const o=Ht(r),l=o.getDate();o.setDate(1),o.setFullYear(o.getFullYear()+n);const a=new Date(o.getFullYear(),o.getMonth()+1,0).getDate();return o.setDate(Math.min(l,a)),o}isSameDay(r,n){return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()&&r.getDate()===n.getDate()}isSameMonth(r,n){return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}isSameYear(r,n){return r.getFullYear()===n.getFullYear()}isBefore(r,n){return r.getTime()<n.getTime()}isAfter(r,n){return r.getTime()>n.getTime()}startOfWeek(r,n=1){const o=Ht(r);o.setHours(0,0,0,0);const a=(o.getDay()-n+7)%7;return o.setDate(o.getDate()-a),o}endOfWeek(r,n=1){const o=this.startOfWeek(r,n);return o.setDate(o.getDate()+6),o.setHours(23,59,59,999),o}startOfMonth(r){return new Date(r.getFullYear(),r.getMonth(),1)}endOfMonth(r){return new Date(r.getFullYear(),r.getMonth()+1,0,23,59,59,999)}getDaysInMonth(r){return new Date(r.getFullYear(),r.getMonth()+1,0).getDate()}getWeekNumber(r){return ao(r)}format(r,n){const o=r.getFullYear(),l=r.getMonth(),a=r.getDate(),c=r.getHours(),d=r.getMinutes(),f=r.getSeconds(),u=r.getDay(),h=c%12||12,g=Math.floor(l/3)+1,m=ao(r),y=this.getDayNames("short"),p=this.getDayNames("narrow");return n.replace(Ic,(v,k)=>{if(k!==void 0)return k;switch(v){case"YYYY":return String(o);case"YY":return String(o).slice(-2);case"MM":return yr(l+1);case"M":return String(l+1);case"DD":return yr(a);case"D":return String(a);case"HH":return yr(c);case"H":return String(c);case"hh":return yr(h);case"h":return String(h);case"mm":return yr(d);case"m":return String(d);case"ss":return yr(f);case"s":return String(f);case"A":return c<12?"AM":"PM";case"a":return c<12?"am":"pm";case"ddd":return y[u];case"dd":return p[u];case"wo":case"Wo":return Ec(m);case"QQ":return"Q"+g;case"Q":return String(g);default:return v}})}parse(r,n){let o="";const l=[];let a=0;const c=n;for(;a<c.length;){if(c[a]==="["){const b=c.indexOf("]",a);if(b!==-1){o+=co(c.substring(a+1,b)),a=b+1;continue}}let j=!1;for(const b of["YYYY","YY","MM","DD","HH","hh","mm","ss","QQ","wo","Wo","ddd","dd","M","D","H","h","m","s","A","a","Q"])if(c.startsWith(b,a)){l.push(b),o+=`(${$c(b)})`,a+=b.length,j=!0;break}j||(o+=co(c[a]),a++)}const d=new RegExp(`^${o}$`),f=r.match(d);if(!f)return null;let u=new Date().getFullYear(),h=0,g=1,m=0,y=0,p=0,v=!1;for(let j=0;j<l.length;j++){const b=f[j+1];switch(l[j]){case"YYYY":u=parseInt(b,10);break;case"YY":u=2e3+parseInt(b,10);break;case"MM":case"M":h=parseInt(b,10)-1;break;case"DD":case"D":g=parseInt(b,10);break;case"HH":case"H":m=parseInt(b,10);break;case"hh":case"h":m=parseInt(b,10);break;case"mm":case"m":y=parseInt(b,10);break;case"ss":case"s":p=parseInt(b,10);break;case"A":case"a":v=b.toLowerCase()==="pm";break;case"Q":case"QQ":h=(parseInt(b.replace("Q",""),10)-1)*3;break}}v&&m<12&&(m+=12),!v&&m===12&&l.some(j=>j==="A"||j==="a")&&(m=0);const k=new Date(u,h,g,m,y,p);return isNaN(k.getTime())?null:k}getMonthNames(r="long"){const n=new Intl.DateTimeFormat(this.locale,{month:r});return Array.from({length:12},(o,l)=>{const a=n.format(new Date(2026,l,1));return a.charAt(0).toUpperCase()+a.slice(1)})}getDayNames(r="short"){const n=new Intl.DateTimeFormat(this.locale,{weekday:r});return Array.from({length:7},(o,l)=>{const a=n.format(new Date(2026,0,4+l));return a.charAt(0).toUpperCase()+a.slice(1)})}getQuarterLabel(r){return`Q${r}`}}function co(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function $c(e){switch(e){case"YYYY":return"\\d{4}";case"YY":return"\\d{2}";case"MM":return"\\d{2}";case"M":return"\\d{1,2}";case"DD":return"\\d{2}";case"D":return"\\d{1,2}";case"HH":return"\\d{2}";case"H":return"\\d{1,2}";case"hh":return"\\d{2}";case"h":return"\\d{1,2}";case"mm":return"\\d{2}";case"m":return"\\d{1,2}";case"ss":return"\\d{2}";case"s":return"\\d{1,2}";case"A":return"[AP]M";case"a":return"[ap]m";case"QQ":return"Q[1-4]";case"Q":return"[1-4]";case"wo":case"Wo":return"\\d{1,2}(?:st|nd|rd|th)";case"ddd":return"[A-Za-z]+";case"dd":return"[A-Za-z]+";default:return".+"}}const Dc=new On,gs=s.createContext(null);function Pc({adapter:e,children:r}){return t.jsx(gs.Provider,{value:e,children:r})}function ms(e){const r=s.useContext(gs);return e??r??Dc}function xs(){return t.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("rect",{x:"2",y:"3",width:"12",height:"11",rx:"1.5"}),t.jsx("line",{x1:"5",y1:"1.5",x2:"5",y2:"4"}),t.jsx("line",{x1:"11",y1:"1.5",x2:"11",y2:"4"}),t.jsx("line",{x1:"2",y1:"7",x2:"14",y2:"7"})]})}function Ac(){return t.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("circle",{cx:"8",cy:"8",r:"6"}),t.jsx("polyline",{points:"8 4.5 8 8 10.5 9.5"})]})}function zc(){return t.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"8.5 3 4.5 7 8.5 11"})})}function Fc(){return t.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"5.5 3 9.5 7 5.5 11"})})}function Nc(){return t.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("polyline",{points:"7.5 3 3.5 7 7.5 11"}),t.jsx("polyline",{points:"11 3 7 7 11 11"})]})}function Wc(){return t.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("polyline",{points:"3 3 7 7 3 11"}),t.jsx("polyline",{points:"6.5 3 10.5 7 6.5 11"})]})}function Ln(){return t.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[t.jsx("circle",{cx:"7",cy:"7",r:"5.5",fill:"currentColor",opacity:"0.08"}),t.jsx("line",{x1:"5",y1:"5",x2:"9",y2:"9"}),t.jsx("line",{x1:"9",y1:"5",x2:"5",y2:"9"})]})}function Hc(){return t.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("line",{x1:"4",y1:"8",x2:"12",y2:"8"}),t.jsx("polyline",{points:"9 5 12 8 9 11"})]})}const ys={sm:{height:"1.75rem",fontSize:"0.75rem",iconSize:14,radius:"0.25rem",paddingH:"0.5rem",inputFontSize:"1rem",tagFontSize:"0.625rem"},md:{height:"2.25rem",fontSize:"0.875rem",iconSize:16,radius:"0.375rem",paddingH:"0.75rem",inputFontSize:"1rem",tagFontSize:"0.75rem"},lg:{height:"2.75rem",fontSize:"1rem",iconSize:18,radius:"0.5rem",paddingH:"0.875rem",inputFontSize:"1rem",tagFontSize:"0.875rem"}};function uo(e){return{bottomLeft:"topLeft",bottomRight:"topRight",topLeft:"bottomLeft",topRight:"bottomRight"}[e]}function bs(e,r,n=360){if(!r)return e;const o=r.getBoundingClientRect(),l=window.innerHeight;if(e.startsWith("bottom")){if(l-o.bottom<n&&o.top>l-o.bottom)return uo(e)}else if(o.top<n&&l-o.bottom>o.top)return uo(e);return e}function vs(e,r){return e==="year"?"YYYY":e==="quarter"?"YYYY-[Q]Q":e==="month"?"YYYY-MM":e==="week"?"YYYY-wo":r?`YYYY-MM-DD ${typeof r=="object"&&r.format?r.format:"HH:mm:ss"}`:"YYYY-MM-DD"}function Oc(e,r,n){return e==="year"?n?.yearPlaceholder??"Select year":e==="quarter"?n?.quarterPlaceholder??"Select quarter":e==="month"?n?.monthPlaceholder??"Select month":e==="week"?n?.weekPlaceholder??"Select week":r?n?.dateTimePlaceholder??"Select date and time":n?.placeholder??"Select date"}function Cs(e,r,n,o=1){const l=e.setDate(e.setMonth(e.setYear(e.today(),r),n),1),a=e.startOfWeek(l,o),c=[];let d=a;for(let f=0;f<6;f++){const u=[];for(let h=0;h<7;h++)u.push(e.clone(d)),d=e.addDays(d,1);c.push(u)}return c}function un(e,r,n,o,l){return!!(n?.(r)||o&&e.isValid(o)&&e.isBefore(r,e.setHour(e.setMinute(e.setSecond(e.clone(o),0),0),0))||l&&e.isValid(l)&&e.isAfter(r,e.setHour(e.setMinute(e.setSecond(e.clone(l),23),59),59)))}function Vc(e){const r=[],n=/YYYY|MM|DD|HH|hh|mm|ss|A/g;let o=0,l;for(;(l=n.exec(e))!==null;)l.index>o&&r.push({type:"separator",separator:e.slice(o,l.index),length:0}),r.push({type:"token",token:l[0],length:l[0].length}),o=l.index+l[0].length;return o<e.length&&r.push({type:"separator",separator:e.slice(o),length:0}),r}function Yc({format:e,value:r,onComplete:n,placeholder:o,fontSize:l,color:a,disabled:c,readOnly:d,onFocus:f}){const u=s.useMemo(()=>Vc(e),[e]),h=s.useMemo(()=>u.filter(w=>w.type==="token"),[u]),[g,m]=s.useState(()=>{if(r){const w=[];let M=0;for(const R of u)R.type==="separator"?M+=R.separator?.length??0:(w.push(r.slice(M,M+R.length)),M+=R.length);return w}return h.map(()=>"")}),[y,p]=s.useState(-1),v=s.useRef(null);s.useEffect(()=>{if(r&&y===-1){const w=[];let M=0;for(const R of u)R.type==="separator"?M+=R.separator?.length??0:(w.push(r.slice(M,M+R.length)),M+=R.length);m(w)}},[r]);const k=s.useMemo(()=>{let w=0;return u.map(M=>{if(M.type==="separator")return M.separator;const R=g[w]??"",S=(M.token??"").replace(/./g,"_");return w++,R+S.slice(R.length)}).join("")},[u,g]),j=w=>{if(c||d)return;const M=y>=0?y:0;if(w.key==="ArrowLeft")w.preventDefault(),p(Math.max(0,M-1));else if(w.key==="ArrowRight"||w.key==="Tab"){if(w.key==="Tab"&&M>=h.length-1)return;w.preventDefault(),p(Math.min(h.length-1,M+1))}else if(w.key==="ArrowUp"||w.key==="ArrowDown"){w.preventDefault();const R=w.key==="ArrowUp"?1:-1;m(S=>{const B=[...S],I=h[M],T=parseInt(B[M])||0,_=I.token==="YYYY"?9999:I.token==="MM"?12:I.token==="DD"?31:I.token==="HH"?23:I.token==="hh"?12:I.token==="mm"||I.token==="ss"?59:99,L=I.token==="MM"||I.token==="DD"||I.token==="hh"?1:0,N=Math.min(_,Math.max(L,T+R));return B[M]=String(N).padStart(I.length,"0"),B})}else if(w.key==="Backspace")w.preventDefault(),m(R=>{const S=[...R];return S[M].length>0?S[M]=S[M].slice(0,-1):M>0&&p(M-1),S});else if(/^\d$/.test(w.key))w.preventDefault(),m(R=>{const S=[...R],B=h[M];return S[M].length>=B.length&&(S[M]=""),S[M]+=w.key,S[M].length>=B.length&&M<h.length-1&&p(M+1),S});else if(w.key==="Enter"){if(g.every((S,B)=>S.length===h[B].length)){let S=0;const B=u.map(I=>I.type==="separator"?I.separator:g[S++]).join("");n(B),p(-1)}}else w.key==="Escape"&&(p(-1),v.current?.blur())},b=()=>{if(g.every((M,R)=>M.length===h[R].length)){let M=0;const R=u.map(S=>S.type==="separator"?S.separator:g[M++]).join("");n(R)}p(-1)},C=w=>{let M=0,R=0;for(const S of u)if(S.type==="separator")M+=S.separator?.length??0;else{if(R===w)return{start:M,length:S.length};M+=S.length,R++}return{start:0,length:0}};s.useEffect(()=>{if(y>=0&&v.current){const{start:w,length:M}=C(y);v.current.setSelectionRange(w,w+M)}},[y,k]);const x=g.every(w=>w==="");return t.jsx("input",{ref:v,value:x&&y===-1?"":k,placeholder:o??e.replace(/[YMDHhms]/g,"_"),readOnly:!0,disabled:c,onKeyDown:j,onFocus:()=>{p(0),f?.()},onBlur:b,style:{flex:1,minWidth:0,border:"none",outline:"none",backgroundColor:"transparent",fontSize:l,fontFamily:"inherit",color:a,caretColor:"transparent",cursor:c?"not-allowed":"text",padding:0}})}function _n({title:e,onPrevYear:r,onNextYear:n,onPrevMonth:o,onNextMonth:l,onTitleClick:a,showMonthNav:c=!0,styles:d,classNames:f}){const u={display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1.75rem",height:"1.75rem",padding:0,border:"none",borderRadius:"0.25rem",backgroundColor:"transparent",cursor:"pointer",color:i.colorTextMuted,transition:"background-color 0.15s ease, color 0.15s ease"},h=m=>{m.currentTarget.style.backgroundColor=i.colorBgMuted,m.currentTarget.style.color=i.colorText},g=m=>{m.currentTarget.style.backgroundColor="transparent",m.currentTarget.style.color=i.colorTextMuted};return t.jsxs("div",{className:f?.header,style:be({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0.5rem 0.5rem 0.25rem",userSelect:"none"},d?.header),children:[t.jsxs("div",{style:{display:"flex",gap:"0.125rem"},children:[t.jsx("button",{type:"button",style:u,onClick:r,onMouseEnter:h,onMouseLeave:g,children:t.jsx(Nc,{})}),c&&o&&t.jsx("button",{type:"button",style:u,onClick:o,onMouseEnter:h,onMouseLeave:g,children:t.jsx(zc,{})})]}),t.jsx("button",{type:"button",onClick:a,style:{border:"none",backgroundColor:"transparent",cursor:a?"pointer":"default",fontSize:"0.875rem",fontWeight:600,fontFamily:"inherit",color:i.colorText,padding:"0.125rem 0.5rem",borderRadius:"0.25rem",transition:"background-color 0.15s ease"},onMouseEnter:m=>{a&&(m.currentTarget.style.backgroundColor=i.colorBgMuted)},onMouseLeave:m=>{m.currentTarget.style.backgroundColor="transparent"},children:e}),t.jsxs("div",{style:{display:"flex",gap:"0.125rem"},children:[c&&l&&t.jsx("button",{type:"button",style:u,onClick:l,onMouseEnter:h,onMouseLeave:g,children:t.jsx(Fc,{})}),t.jsx("button",{type:"button",style:u,onClick:n,onMouseEnter:h,onMouseLeave:g,children:t.jsx(Wc,{})})]})]})}function ks({adapter:e,viewDate:r,value:n,selectedDates:o,onSelect:l,onHover:a,disabledDate:c,minDate:d,maxDate:f,cellRender:u,rangeInfo:h,hideOutOfMonth:g,styles:m,classNames:y}){const p=e.getYear(r),v=e.getMonth(r),k=e.today(),j=Cs(e,p,v,1),b=e.getDayNames("narrow"),C=[...b.slice(1),b[0]],x="2rem",w="1.75rem";return t.jsx("div",{className:y?.body,style:be({padding:"0 0.5rem 0.5rem"},m?.body),children:t.jsxs("div",{style:{display:"grid",gridTemplateColumns:`repeat(7, ${x})`,gridAutoRows:x,placeItems:"center"},children:[C.map((M,R)=>t.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:x,height:x,fontSize:"0.75rem",fontWeight:600,color:i.colorTextMuted},children:M},`h-${R}`)),j.map((M,R)=>M.map((S,B)=>{const I=e.isSameMonth(S,r);if(g&&!I)return t.jsx("div",{},`${R}-${B}`);const T=e.isSameDay(S,k),_=n&&e.isValid(n)&&e.isSameDay(S,n)||(o?.some(A=>e.isSameDay(A,S))??!1),L=un(e,S,c,d,f);let N=!1,$=!1,P=!1;if(h){const{start:A,end:D,hoverDate:W}=h,V=D??W;if(A&&V){const[Z,X]=e.isBefore(A,V)?[A,V]:[V,A];$=e.isSameDay(S,Z),P=e.isSameDay(S,X),N=(e.isAfter(S,Z)||e.isSameDay(S,Z))&&(e.isBefore(S,X)||e.isSameDay(S,X))}}const E={display:"grid",placeContent:"center",width:w,height:w,fontSize:"0.8125rem",borderRadius:"50%",cursor:L?"not-allowed":"pointer",color:_?"#fff":L?i.colorTextSubtle:I?i.colorText:i.colorTextSubtle,backgroundColor:_?i.colorPrimary:N&&!$&&!P?i.colorPrimaryBg:"transparent",fontWeight:T?700:400,boxShadow:T&&!_?`inset 0 0 0 1.5px ${i.colorPrimary}`:"none",transition:"background-color 0.1s ease, color 0.1s ease, box-shadow 0.1s ease",opacity:L?.4:1};($||P)&&(E.backgroundColor=i.colorPrimary,E.color="#fff");const z=t.jsx("span",{style:{lineHeight:0},children:e.getDate(S)}),F=u?u(S,{type:"date",originNode:z,today:T,inView:I,inRange:N,rangeStart:$,rangeEnd:P}):z;return t.jsx("div",{style:E,className:y?.cell,onClick:()=>{L||l(S)},onMouseEnter:A=>{L||(a?.(S),!_&&!$&&!P&&(A.currentTarget.style.backgroundColor=N?i.colorPrimaryBg:i.colorBgMuted))},onMouseLeave:A=>{!L&&!_&&!$&&!P&&(A.currentTarget.style.backgroundColor=N?i.colorPrimaryBg:"transparent"),a?.(null)},children:F},`${R}-${B}`)}))]})})}function Kc({adapter:e,viewDate:r,value:n,onSelect:o,disabledDate:l,minDate:a,maxDate:c,styles:d,classNames:f}){const u=e.getYear(r),h=e.getMonth(r),g=e.today(),m=Cs(e,u,h,1),y=e.getDayNames("narrow"),p=[...y.slice(1),y[0]],v="2rem",k="1.75rem",j=n&&e.isValid(n)?e.startOfWeek(n,1):null;return t.jsxs("div",{className:f?.body,style:be({padding:"0 0.5rem 0.5rem"},d?.body),children:[t.jsx("div",{style:{display:"grid",gridTemplateColumns:`repeat(7, ${v})`,gridAutoRows:v,placeItems:"center"},children:p.map((b,C)=>t.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:v,height:v,fontSize:"0.75rem",fontWeight:600,color:i.colorTextMuted},children:b},C))}),m.map((b,C)=>{const x=e.startOfWeek(b[0],1),w=j&&e.isSameDay(x,j);return t.jsx("div",{style:{display:"grid",gridTemplateColumns:`repeat(7, ${v})`,gridAutoRows:v,placeItems:"center",borderRadius:"0.25rem",cursor:"pointer",backgroundColor:w?i.colorPrimaryBg:"transparent",transition:"background-color 0.1s ease"},onClick:()=>o(x),onMouseEnter:M=>{w||(M.currentTarget.style.backgroundColor=i.colorBgMuted)},onMouseLeave:M=>{w||(M.currentTarget.style.backgroundColor="transparent")},children:b.map((M,R)=>{const S=e.isSameMonth(M,r),B=e.isSameDay(M,g);return t.jsx("div",{style:{display:"grid",placeContent:"center",width:k,height:k,fontSize:"0.8125rem",color:S?w?i.colorPrimary:i.colorText:i.colorTextSubtle,fontWeight:B?700:400,boxShadow:B?`inset 0 0 0 1.5px ${i.colorPrimary}`:"none",borderRadius:"50%"},children:e.getDate(M)},R)})},C)})]})}function ws({adapter:e,viewDate:r,value:n,onSelect:o,disabledDate:l,minDate:a,maxDate:c,cellRender:d,styles:f,classNames:u}){const h=e.getMonthNames("short"),g=e.today(),m=e.getYear(r);return t.jsx("div",{className:u?.body,style:be({padding:"0.5rem",display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"0.5rem"},f?.body),children:h.map((y,p)=>{const v=e.setMonth(e.setDate(e.setYear(e.today(),m),1),p),k=e.isSameMonth(v,g),j=n&&e.isValid(n)&&e.isSameMonth(v,n)&&e.isSameYear(v,n),b=un(e,v,l,a,c),C=t.jsx("span",{children:y}),x=d?d(v,{type:"month",originNode:C,today:k,inView:!0}):C;return t.jsx("button",{type:"button",disabled:b,onClick:()=>o(v),className:u?.cell,style:{height:"2.5rem",border:k&&!j?`1px solid ${i.colorPrimary}`:"1px solid transparent",borderRadius:"0.375rem",cursor:b?"not-allowed":"pointer",backgroundColor:j?i.colorPrimary:"transparent",color:j?"#fff":b?i.colorTextSubtle:i.colorText,fontSize:"0.8125rem",fontWeight:k?600:400,fontFamily:"inherit",transition:"background-color 0.1s ease",opacity:b?.4:1},onMouseEnter:w=>{!b&&!j&&(w.currentTarget.style.backgroundColor=i.colorBgMuted)},onMouseLeave:w=>{!b&&!j&&(w.currentTarget.style.backgroundColor="transparent")},children:x},p)})})}function js({adapter:e,viewDate:r,value:n,onSelect:o,disabledDate:l,minDate:a,maxDate:c,cellRender:d,styles:f,classNames:u}){const h=e.getYear(r),g=Math.floor(h/10)*10,m=e.today(),y=e.getYear(m),p=Array.from({length:12},(v,k)=>g-1+k);return t.jsx("div",{className:u?.body,style:be({padding:"0.5rem",display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"0.5rem"},f?.body),children:p.map(v=>{const k=e.setYear(e.today(),v),j=v>=g&&v<g+10,b=v===y,C=n&&e.isValid(n)&&e.getYear(n)===v,x=un(e,k,l,a,c),w=t.jsx("span",{children:v}),M=d?d(k,{type:"year",originNode:w,today:b,inView:j}):w;return t.jsx("button",{type:"button",disabled:x,onClick:()=>o(k),className:u?.cell,style:{height:"2.5rem",border:b&&!C?`1px solid ${i.colorPrimary}`:"1px solid transparent",borderRadius:"0.375rem",cursor:x?"not-allowed":"pointer",backgroundColor:C?i.colorPrimary:"transparent",color:C?"#fff":j?x?i.colorTextSubtle:i.colorText:i.colorTextSubtle,fontSize:"0.8125rem",fontWeight:b?600:400,fontFamily:"inherit",transition:"background-color 0.1s ease",opacity:x?.4:1},onMouseEnter:R=>{!x&&!C&&(R.currentTarget.style.backgroundColor=i.colorBgMuted)},onMouseLeave:R=>{!x&&!C&&(R.currentTarget.style.backgroundColor="transparent")},children:M},v)})})}function Ss({adapter:e,viewDate:r,value:n,onSelect:o,disabledDate:l,minDate:a,maxDate:c,cellRender:d,styles:f,classNames:u}){const h=e.today(),g=e.getYear(r),m=Math.floor(e.getMonth(h)/3)+1,y=e.getYear(h);return t.jsx("div",{className:u?.body,style:be({padding:"0.5rem",display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:"0.5rem"},f?.body),children:[1,2,3,4].map(p=>{const v=(p-1)*3,k=e.setMonth(e.setDate(e.setYear(e.today(),g),1),v),j=p===m&&g===y,b=n&&e.isValid(n)&&Math.floor(e.getMonth(n)/3)+1===p&&e.getYear(n)===g,C=un(e,k,l,a,c),x=e.getQuarterLabel(p),w=t.jsx("span",{children:x}),M=d?d(k,{type:"quarter",originNode:w,today:j,inView:!0}):w;return t.jsx("button",{type:"button",disabled:C,onClick:()=>o(k),className:u?.cell,style:{height:"3rem",border:j&&!b?`1px solid ${i.colorPrimary}`:"1px solid transparent",borderRadius:"0.375rem",cursor:C?"not-allowed":"pointer",backgroundColor:b?i.colorPrimary:"transparent",color:b?"#fff":C?i.colorTextSubtle:i.colorText,fontSize:"0.875rem",fontWeight:j?600:400,fontFamily:"inherit",transition:"background-color 0.1s ease",opacity:C?.4:1},onMouseEnter:R=>{!C&&!b&&(R.currentTarget.style.backgroundColor=i.colorBgMuted)},onMouseLeave:R=>{!C&&!b&&(R.currentTarget.style.backgroundColor="transparent")},children:M},p)})})}function Uc({adapter:e,value:r,onChange:n,config:o,disabledTime:l}){const a=o?.hourStep??1,c=o?.minuteStep??1,d=o?.secondStep??1,f=o?.showHour!==!1,u=o?.showMinute!==!1,h=o?.showSecond===!0,g=o?.use12Hours??!1,m=e.getHour(r),y=e.getMinute(r),p=e.getSecond(r),v=l?.disabledHours?.()??[],k=l?.disabledMinutes?.(m)??[],j=l?.disabledSeconds?.(m,y)??[],b=Array.from({length:Math.ceil((g?12:24)/a)},(T,_)=>{const L=g?_*a+1:_*a;return L}).filter(T=>g?T<=12:T<24),C=Array.from({length:Math.ceil(60/c)},(T,_)=>_*c).filter(T=>T<60),x=Array.from({length:Math.ceil(60/d)},(T,_)=>_*d).filter(T=>T<60),w="13.5rem",M="j-dp-time-col",R={display:"flex",flexDirection:"column",alignItems:"center",height:w,overflowY:"auto",width:"3.25rem",scrollbarWidth:"thin",scrollbarColor:`${i.colorBorderHover} transparent`,borderRight:`1px solid ${i.colorBorder}`},S=(T,_,L,N)=>t.jsx("div",{className:M,style:R,children:T.map($=>{const P=$===_,E=L.includes($);return t.jsx("button",{type:"button",disabled:E,onClick:()=>{E||N($)},style:{width:"2.75rem",height:"1.75rem",flexShrink:0,border:"none",borderRadius:"0.25rem",backgroundColor:P?i.colorPrimaryBg:"transparent",color:P?i.colorPrimary:E?i.colorTextSubtle:i.colorText,cursor:E?"not-allowed":"pointer",fontSize:"0.8125rem",fontWeight:P?600:400,fontFamily:"monospace",transition:"background-color 0.1s ease",opacity:E?.4:1},onMouseEnter:z=>{!E&&!P&&(z.currentTarget.style.backgroundColor=i.colorBgMuted)},onMouseLeave:z=>{!E&&!P&&(z.currentTarget.style.backgroundColor="transparent")},children:String($).padStart(2,"0")},$)})}),B=g?m%12||12:m,I=m>=12;return t.jsxs("div",{style:{display:"flex",borderLeft:`1px solid ${i.colorBorder}`,padding:"0.5rem 0"},children:[t.jsx("style",{children:`
81
81
  .${M}::-webkit-scrollbar { width: 4px; }
82
82
  .${M}::-webkit-scrollbar-track { background: transparent; }
83
83
  .${M}::-webkit-scrollbar-thumb { background: ${i.colorBorderHover}; border-radius: 4px; }