squarex-ui-component-lib 1.0.2 → 1.0.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/index.esm.js +1 -32
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -32
- package/dist/index.js.map +1 -1
- package/dist/ui/index.esm.js +1 -32
- package/dist/ui/index.esm.js.map +1 -1
- package/package.json +6 -2
package/dist/index.esm.js
CHANGED
|
@@ -1,33 +1,2 @@
|
|
|
1
|
-
import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import*as o from"react";import r,{useRef as a,useState as i,useEffect as l,useCallback as s,useMemo as c,version as d,isValidElement as u,useInsertionEffect as p,useContext as m,createContext as f,useLayoutEffect as h,useImperativeHandle as g,useId as v,forwardRef as b,cloneElement as y,memo as w,useReducer as C}from"react";import*as x from"d3";import{createPortal as $,flushSync as S,unstable_batchedUpdates as E}from"react-dom";import{createRoot as k}from"react-dom/client";const N={width:800,height:400,margin:{top:20,right:30,bottom:60,left:80},colors:{gradient:{start:"#8B5CF6",end:"#6B46C1"}},showGrid:!0,animate:!0,responsive:!0,showTooltip:!0,cornerRadius:5,barPadding:.6,tickCount:5,formatValue:e=>0===e?"0":e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(0)}k`:e.toString()},_=o=>{const r={...N,...o},{data:s,title:c,titleStyle:d,titleClassName:u,width:p,height:m,margin:f,colors:h,showGrid:g,animate:v,responsive:b,formatValue:y,className:w,style:C,onBarClick:$,onBarHover:S,showTooltip:E,tooltipStyle:k,tooltipClassName:_,tooltipContent:I,showLegend:P=!0,legendPosition:O="bottom",legendStyle:D,legendClassName:R,legendTitle:M,showYAxis:B=!0,showYAxisLine:T=!1,showYAxisTicks:z=!1,yAxisStyle:A,yAxisClassName:L,yAxisLabelStyle:H,yAxisLabelClassName:F,cornerRadius:j,barPadding:V,tickCount:W}=r,K=a(null),q=a(null),U=a(null),[X,G]=i({width:p||800,height:m||400}),[Y,Z]=i(!1);l(()=>{if(Z(!0),!b)return;const e=()=>{if(q.current){const e=q.current.getBoundingClientRect().width,t=Math.max(300,e),n=Math.max(300,.5*t);G({width:t,height:n})}};let t;q.current&&(t=new ResizeObserver(e),t.observe(q.current)),window.addEventListener("resize",e);const n=setTimeout(e,0);return()=>{t&&t.disconnect(),window.removeEventListener("resize",e),clearTimeout(n)}},[b]),l(()=>{if(!Y||!s||0===s.length)return;const e=x.select(K.current);e.selectAll("*").remove();const t=X.width-(f?.left||0)-(f?.right||0),n=X.height-(f?.top||0)-(f?.bottom||0),o=e.attr("width",X.width).attr("height",X.height).append("g").attr("transform",`translate(${f?.left||0},${f?.top||0})`);if(h?.gradient){const t=e.append("defs").append("linearGradient").attr("id","barGradient").attr("x1","0%").attr("y1","0%").attr("x2","0%").attr("y2","100%");t.append("stop").attr("offset","0%").attr("stop-color",h.gradient.start),t.append("stop").attr("offset","100%").attr("stop-color",h.gradient.end)}const r=x.scaleBand().domain(s.map(e=>e.category)).range([0,t]).padding(V||.6),a=x.max(s,e=>e.value)||0,i=x.scaleLinear().domain([0,1.1*a]).range([n,0]);if(g){const e=x.axisLeft(i).tickSize(-t).tickFormat(()=>"").ticks(W||5);o.append("g").attr("class","grid").style("stroke-dasharray","3,3").style("opacity",.3).call(e)}if(B){const e=x.axisLeft(i).ticks(W||5).tickFormat(e=>{const t="number"==typeof e?e:Number(e);return y?y(t):0===t?"0":t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(0)}k`:t.toString()}),t=o.append("g").attr("class","y-axis").style("color","#7D7D7D").style("font-size","0.875rem").call(e);if(A){["color","font-size","font-weight","font-family","opacity","visibility","display","text-anchor","dominant-baseline"].forEach(e=>{const n=A[e];void 0!==n&&t.style(e,n.toString())})}if(T||t.selectAll("path").style("display","none"),z||t.selectAll("line").style("display","none"),t.selectAll("text").attr("class",`y-axis-label ${F||""}`).style("font-weight","500").style("fill","#7D7D7D").style("font-size","0.875rem").style("font-family","Inter, system-ui, sans-serif").style("dominant-baseline","middle").style("text-anchor","end").attr("dx","-8px"),H){["color","font-size","font-weight","font-family","opacity","visibility","display","text-anchor","dominant-baseline"].forEach(e=>{const n=H[e];void 0!==n&&t.selectAll("text").style(e,n.toString())})}}const l=x.axisBottom(r),c=o.append("g").attr("class","x-axis").attr("transform",`translate(0,${n})`).style("color","#718096").style("font-size","0.875rem").call(l);c.selectAll("path").style("display","none"),c.selectAll("line").style("display","none"),t<600&&c.selectAll("text").style("text-anchor","end").attr("dx","-.8em").attr("dy",".15em").attr("transform","rotate(-45)");const d=o.selectAll(".bar").data(s).enter().append("rect").attr("class","bar").attr("x",e=>r(e.category)||0).attr("width",r.bandwidth()).attr("y",n).attr("height",0).attr("rx",j||5).attr("ry",j||5).style("fill",e=>e.color?e.color:h?.gradient?"url(#barGradient)":h?.solid?h.solid:"#8B5CF6").style("cursor",$?"pointer":"default");v?d.transition().duration(800).ease(x.easeBackOut.overshoot(1.1)).attr("y",e=>i(e.value)).attr("height",e=>n-i(e.value)):d.attr("y",e=>i(e.value)).attr("height",e=>n-i(e.value)),($||S||E)&&d.on("click",(e,t)=>{if($){const e=s.indexOf(t);$(t,e)}}).on("mouseover",(e,t)=>{if(S){const e=s.indexOf(t);S(t,e)}if(E&&U.current&&q.current){const n=x.select(U.current),o=q.current.getBoundingClientRect(),r=e.currentTarget.getBoundingClientRect(),a=r.left-o.left+r.width/2,i=r.top-o.top-15;n.style("opacity",1).style("left",`${a}px`).style("top",`${i}px`).style("transform","translateX(-50%)").html(`\n <div class="font-semibold text-white">${t.category}</div>\n <div class="text-sm text-gray-200 mt-1">${y?y(t.value):t.value.toString()}</div>\n `)}x.select(e.currentTarget).transition().duration(200).style("opacity",.8).style("filter","brightness(1.1)")}).on("mouseout",e=>{E&&U.current&&x.select(U.current).style("opacity",0),x.select(e.currentTarget).transition().duration(200).style("opacity",1).style("filter","brightness(1)")}).on("mousemove",(e,t)=>{if(E&&U.current&&q.current){const t=x.select(U.current),n=q.current.getBoundingClientRect(),o=e.clientX-n.left,r=e.clientY-n.top;t.style("left",`${o}px`).style("top",r-15+"px").style("transform","translateX(-50%)")}})},[Y,s,X,f,h,g,v,y,$,S,E,j,V,W,B,T,z,A,L,H,F]);const Q=()=>{if(!P||!s||0===s.length)return null;const n=s.map((n,o)=>e("div",{className:"flex items-center space-x-2 cursor-pointer hover:opacity-80 transition-opacity",onClick:()=>$?.(n,o),onMouseEnter:()=>S?.(n,o),children:[t("div",{className:"w-4 h-4 rounded-sm",style:{backgroundColor:n.color||(h?.gradient?"url(#barGradient)":h?.solid||"#8B5CF6")}}),t("span",{className:"text-sm font-medium text-gray-700",children:n.category}),e("span",{className:"text-xs text-gray-500",children:["(",y?y(n.value):n.value.toString(),")"]})]},n.category));return e("div",{className:`${{top:"flex flex-wrap justify-center gap-4 mb-4",bottom:"flex flex-wrap justify-center gap-4 mt-4",left:"flex flex-col space-y-2 mr-4",right:"flex flex-col space-y-2 ml-4"}[O]} ${R||""}`,style:D,children:[M&&t("div",{className:"w-full text-center mb-2",children:t("span",{className:"text-sm font-semibold text-gray-600",children:M})}),n]})};return e("div",{ref:q,className:`bg-white p-6 rounded-xl ${w||""}`,style:C,children:[c&&t("h2",{className:`text-xl font-semibold text-[#18044E] mb-6 ${u||""}`,style:d,children:c}),P&&"top"===O&&Q(),e("div",{className:"relative",children:[t("svg",{ref:K,className:"w-full h-auto"}),E&&t("div",{ref:U,className:`absolute pointer-events-none bg-gradient-to-r from-gray-800 to-gray-900 text-white rounded-xl px-4 py-3 shadow-2xl opacity-0 transition-all duration-300 z-50 whitespace-nowrap border border-gray-600 ${_||""}`,style:{fontSize:"0.9rem",minWidth:"120px",textAlign:"center",backdropFilter:"blur(10px)",boxShadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(255, 255, 255, 0.05)",...k},children:I?I(s[0]):e(n,{children:[t("div",{className:"font-semibold text-white",children:s[0]?.category}),t("div",{className:"text-sm text-gray-200 mt-1",children:y?y(s[0]?.value||0):(s[0]?.value||0).toString()})]})})]}),P&&"bottom"===O&&Q()]})},I=({data:n,title:o="Policy Effect",titleStyle:r={},containerStyle:s={},chartSize:c=320,showLegend:d=!0,legendStyle:u={}})=>{const p=a(null),[m,f]=i({visible:!1,x:0,y:0,content:"",label:"",value:"",percentage:""}),h=n||[{label:"Allow",value:35,color:"#4A148C"},{label:"Block",value:30,color:"#7B1FA2"},{label:"Isolate",value:20,color:"#BA68C8"},{label:"Tag",value:15,color:"#E1BEE7"}],g=x.sum(h,e=>e.value);l(()=>{if(!p.current)return;const e=x.select(p.current);e.selectAll("*").remove();const t=c,n=c,o=Math.min(t,n)/2-30,r=e.attr("width",t).attr("height",n).append("g").attr("transform",`translate(${t/2}, ${n/2})`),a=x.pie().value(e=>e.value).sort(null).padAngle(0),i=x.arc().innerRadius(0).outerRadius(o),l=x.arc().innerRadius(0).outerRadius(o+8);r.selectAll("arc").data(a(h)).enter().append("g").attr("class","arc").append("path").attr("d",i).attr("fill",e=>e.data.color||"#4A148C").style("cursor","pointer").style("transition","all 0.3s ease").on("mouseover",function(e,t){const n=(t.data.value/g*100).toFixed(1);x.select(this).transition().duration(200).attr("d",l(t)).style("filter","brightness(1.1)"),f({visible:!0,x:e.clientX,y:e.clientY,content:`${t.data.label??""}: ${t.data.value} (${n}%)`,label:t.data.label??"",value:t.data.value.toString(),percentage:n})}).on("mousemove",function(e){f(t=>({...t,x:e.clientX,y:e.clientY}))}).on("mouseout",function(e,t){x.select(this).transition().duration(200).attr("d",i(t)).style("filter","brightness(1)"),f(e=>({...e,visible:!1}))})},[0,h,c]);const v={fontSize:"1.5rem",fontWeight:"600",marginBottom:"1rem",color:"#374151",textAlign:"center",...r},b={display:"flex",flexDirection:"column",alignItems:"center",padding:"1.5rem",backgroundColor:"white",borderRadius:"0.5rem",position:"relative",...s},y={display:"flex",flexWrap:"wrap",justifyContent:"center",gap:"0.5rem",...u};return e("div",{style:b,children:[t("h2",{style:v,children:o}),t("div",{className:"relative",children:t("svg",{ref:p})}),d&&t("div",{style:y,children:h.map((n,o)=>((n.value/g*100).toFixed(1),e("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg",children:[t("div",{className:"w-[10px] h-[10px] rounded-full",style:{backgroundColor:n.color}}),t("div",{className:"text-sm",children:t("div",{className:"font-medium text-[#454545]",children:n.label})})]},o)))}),m.visible&&e("div",{className:"fixed z-50 bg-gray-900 text-white px-4 py-3 rounded-lg pointer-events-none border border-gray-700",style:{left:m.x+15,top:m.y-60,minWidth:"150px"},children:[t("div",{className:"text-sm font-semibold text-blue-300",children:m.label}),e("div",{className:"text-base",children:[m.value," items"]}),e("div",{className:"text-sm text-gray-300",children:[m.percentage,"% of total"]}),t("div",{className:"absolute -bottom-1 left-4 w-2 h-2 bg-gray-900 transform rotate-45 border-r border-b border-gray-700"})]})]})},P=({data:n,width:o=1200,height:r=600,margin:i={top:80,right:50,bottom:50,left:50},backgroundColor:s="linear-gradient(135deg, #0f0f23 0%, #1a1a3e 100%)",showTimeFilter:c=!0,timeFilters:d=["1W","1M","3M","1Y","ALL"],activeFilter:u="3M",onFilterChange:p=()=>{},filterButtonColor:m="#6366f1",filterButtonInactive:f="rgba(255, 255, 255, 0.1)",useCustomFlowWidth:h=!1,customFlowWidth:g=10,minFlowWidth:v=4,maxFlowWidth:b=20,flowWidthMultiplier:y=1,showStatistics:w=!1,statistics:C={trendGoods:204,shoppingViews:65540,storeDynamics:325}})=>{const $=a(null),S=a(),E=a();l(()=>{if(!$.current)return;const e=x.select($.current);e.selectAll("*").remove(),e.attr("width",o).attr("height",r).style("background",s),e.append("text").attr("x",o/2).attr("y",40).attr("text-anchor","middle").style("font-size","48px").style("font-weight","bold").style("fill","rgba(255,255,255,0.1)").text("Data visualisation");const t=e.append("g").attr("class","zoom-group"),a=t.append("g").attr("transform",`translate(${i.left}, ${i.top})`);E.current&&E.current.remove();const l=x.select("body").append("div").attr("class","tooltip").style("position","absolute").style("background","rgba(0,0,0,0.7)").style("color","white").style("padding","8px").style("border-radius","4px").style("pointer-events","none").style("opacity",0);E.current=l;const c=x.zoom().scaleExtent([.5,3]).on("zoom",e=>{t.attr("transform",e.transform.toString())});e.call(c),S.current=c;const d=180,u=80,p=120,m="drop-shadow(0 8px 16px rgba(0,0,0,0.3))",f="white",I=(r-i.top-i.bottom)/2,P=(o-i.left-i.right)/2-90,O=o-i.left-i.right-d-80,D=n.nodes.filter(e=>"source"===e.type),R=n.nodes.filter(e=>"middle"===e.type),M=n.nodes.filter(e=>"target"===e.type);D.forEach(e=>{e.x=80,e.y=I-40}),R.forEach((e,t)=>{const n=(R.length-1)*p,o=I-n/2;e.x=P,e.y=o+t*p}),M.forEach((e,t)=>{const n=(M.length-1)*p,o=I-n/2;e.x=O,e.y=o+t*p});const B=x.drag().on("start",e=>{e.sourceEvent.stopPropagation()}).on("drag",function(e,t){t.x=e.x,t.y=e.y,x.select(this).attr("transform",`translate(${t.x}, ${t.y})`),a.selectAll("path.sankey-link").remove(),A()}),T=e.append("defs"),z=Math.max(...n.links.map(e=>e.value)),A=()=>{T.selectAll("linearGradient.link-gradient").remove(),n.links.forEach((e,t)=>{const o=n.nodes.find(t=>t.id===e.source),r=n.nodes.find(t=>t.id===e.target);if(!o||!r)return;const i=`gradient-${t}`,s=T.append("linearGradient").attr("id",i).attr("class","link-gradient").attr("gradientUnits","userSpaceOnUse").attr("x1",o.x+d).attr("y1",o.y+40).attr("x2",r.x).attr("y2",r.y+40);s.append("stop").attr("offset","0%").attr("stop-color",o.color).attr("stop-opacity",.8),s.append("stop").attr("offset","100%").attr("stop-color",r.color).attr("stop-opacity",.8);const c=o.x+d,u=o.y+40,p=r.x,f=r.y+40,w=(C=e.value,h?g:(C/z*b+v)*y);var C;a.append("path").attr("class","sankey-link").attr("d",`M${c},${u} C${(c+p)/2},${u} ${(c+p)/2},${f} ${p},${f}`).attr("fill","none").attr("stroke",`url(#${i})`).attr("stroke-width",w).attr("stroke-opacity",.7).style("filter",m).on("mouseover",t=>{l.transition().duration(200).style("opacity",1),l.html(`Flow: ${e.value}<br/>Width: ${w.toFixed(1)}px`).style("left",t.pageX+10+"px").style("top",t.pageY-28+"px"),x.select(t.target).attr("stroke-opacity",1)}).on("mouseout",e=>{l.transition().duration(300).style("opacity",0),x.select(e.target).attr("stroke-opacity",.7)}).on("click",()=>{})})};n.nodes.forEach((e,t)=>{const n=`node-gradient-${t}`,o=T.append("linearGradient").attr("id",n).attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","100%");o.append("stop").attr("offset","0%").attr("stop-color",e.color),o.append("stop").attr("offset","100%").attr("stop-color",x.color(e.color)?.darker(.5)?.toString()||e.color);const r=a.append("g").datum(e).attr("transform",`translate(${e.x}, ${e.y})`).style("cursor","pointer").call(B).on("click",(e,t)=>{});r.append("rect").attr("width",d).attr("height",u).attr("rx",16).style("fill",`url(#${n})`).style("stroke",x.color(e.color)?.darker(.5)?.toString()||e.color).style("stroke-width",2).style("filter",m).on("mouseover",function(){x.select(this).style("filter","drop-shadow(0 12px 24px rgba(0,0,0,0.5))")}).on("mouseout",function(){x.select(this).style("filter",m)}).on("click",(e,t)=>{}),r.append("text").attr("x",20).attr("y",30).style("fill",f).style("font-size","18px").style("font-weight","600").text(e.name),r.append("text").attr("x",20).attr("y",55).style("fill",f).style("font-size","24px").style("font-weight","bold").text(`$${e.value.toLocaleString()}`)}),A();const L=e.append("g").attr("class","zoom-controls"),H=o-100-20;if([{text:"Zoom In",action:"zoomIn"},{text:"Zoom Out",action:"zoomOut"},{text:"Reset Zoom",action:"resetZoom"}].forEach((e,t)=>{const n=20+44*t;L.append("rect").attr("x",H).attr("y",n).attr("width",100).attr("height",36).attr("rx",6).attr("fill","rgba(255, 255, 255, 0.9)").attr("stroke","rgba(255, 255, 255, 0.2)").attr("stroke-width",1).style("cursor","pointer").on("mouseover",function(){x.select(this).attr("fill","rgba(255, 255, 255, 1)")}).on("mouseout",function(){x.select(this).attr("fill","rgba(255, 255, 255, 0.9)")}).on("click",()=>{switch(e.action){case"zoomIn":k();break;case"zoomOut":N();break;case"resetZoom":_()}}),L.append("text").attr("x",H+50).attr("y",n+18+4).attr("text-anchor","middle").style("font-size","12px").style("font-weight","600").style("fill","#1a1a3e").style("pointer-events","none").text(e.text)}),e.selectAll(".stats-panel").remove(),!0===w){const t=e.append("g").attr("class","stats-panel"),n=800,a=120,i=(o-n)/2,l=r-a-20;t.append("rect").attr("x",i).attr("y",l).attr("width",n).attr("height",a).attr("rx",12).attr("fill","rgba(15, 15, 35, 1)").attr("stroke","rgba(255, 255, 255, 0.1)").attr("stroke-width",1);const s=[{title:"TREND GOODS",value:C.trendGoods.toLocaleString(),icon:"▶",color:"#6366f1"},{title:"SHOPPING VIEWS",value:C.shoppingViews.toLocaleString(),icon:"👁",color:"#8b5cf6"},{title:"STORE DYNAMICS",value:C.storeDynamics.toLocaleString(),icon:"⏱",color:"#a855f7"}],c=n/3;s.forEach((e,n)=>{const o=i+n*c+c/2;t.append("rect").attr("x",o-25).attr("y",l+15).attr("width",50).attr("height",50).attr("rx",8).attr("fill","rgba(255, 255, 255, 0.1)").attr("stroke","rgba(255, 255, 255, 0.2)").attr("stroke-width",1),t.append("text").attr("x",o).attr("y",l+45).attr("text-anchor","middle").style("font-size","24px").style("fill",e.color).text(e.icon),t.append("text").attr("x",o).attr("y",l+85).attr("text-anchor","middle").style("font-size","12px").style("font-weight","600").style("fill","rgba(255, 255, 255, 0.7)").style("letter-spacing","1px").text(e.title),t.append("text").attr("x",o).attr("y",l+105).attr("text-anchor","middle").style("font-size","28px").style("font-weight","bold").style("fill","white").text(e.value)})}return()=>{E.current&&E.current.remove()}},[n,o,r,i,s,h,g,v,b,y,w,C]);const k=()=>{$.current&&S.current&&x.select($.current).transition().duration(300).call(S.current.scaleBy,1.2)},N=()=>{$.current&&S.current&&x.select($.current).transition().duration(300).call(S.current.scaleBy,.8)},_=()=>{$.current&&S.current&&x.select($.current).transition().duration(500).call(S.current.transform,x.zoomIdentity)};return e("div",{className:"relative w-full h-screen bg-gray-900 flex flex-col items-center justify-center space-y-4",children:[c&&t("div",{className:"absolute top-6 right-6 flex space-x-2 z-10",children:d.map(e=>t("button",{onClick:()=>p(e),className:"px-4 py-1.5 rounded-full text-white text-sm font-medium transition-all duration-200 hover:scale-105",style:{backgroundColor:u===e?m:f},children:e},e))}),t("svg",{ref:$,className:"max-w-full max-h-full"})]})},O={desktop:{width:900,height:650,margin:{top:120,right:180,bottom:60,left:180},fontSize:{title:26,subtitle:14,label:14,value:16},nodeHeight:45,flowScaleFactor:.35},tablet:{width:700,height:550,margin:{top:100,right:140,bottom:50,left:140},fontSize:{title:22,subtitle:14,label:14,value:18},nodeHeight:40,flowScaleFactor:.3},mobile:{width:350,height:400,margin:{top:80,right:80,bottom:40,left:80},fontSize:{title:16,subtitle:12,label:11,value:14},nodeHeight:30,flowScaleFactor:.2}},D={mobile:640,tablet:1024,desktop:1024},R=({flows:n=[],hoverColor:o="#FF6B6B",title:r="Clipboard Copy Source to Paste Diagram",subtitle:c="Explore the user's Sensitive Data Copy Paste behavior, detection history, and risk exposure.",showHeaders:d=!0,showTitle:u=!0,showSubtitle:p=!0,showDebug:m=!1,sourceHeader:f="Copying Sources",targetHeader:h="Pasting Targets",labelColor:g="#374151",valueColor:v="#111827",headerColor:b="#454545",titleColor:y="#111827",subtitleColor:w="#6B7280",headerUnderlineColor:C="#D4C4FF",flowOpacity:$=.7,hoverOpacity:S=.9,curvature:E=.4,valueFormatter:k,labelFormatter:N,tooltipRenderer:_,gradientStops:I,responsive:P=!0,width:R,height:M,margin:B,nodeHeight:T,flowScaleFactor:z,fontSize:A,responsiveConfig:L=O,breakpoints:H=D})=>{const F=a(null),j=a(null),[V,W]=i({width:0,height:0}),[K,q]=i(L.desktop),[U,X]=i(!1),G=s(()=>{if("undefined"==typeof window)return L.desktop;const e=window.innerWidth;return e<H.mobile?L.mobile:e<H.tablet?L.tablet:(H.desktop,L.desktop)},[L,H]);return l(()=>{const e=()=>{const e=G(),t={...e,margin:B??e.margin,nodeHeight:T??e.nodeHeight,flowScaleFactor:z??e.flowScaleFactor,fontSize:A??e.fontSize,width:R??e.width,height:M??e.height};q(t);const n=window.innerWidth-128;let o=t.width;P&&(o=e===L.desktop?n>=t.width?t.width:Math.max(n,600):Math.max(n,t.width)),W({width:o,height:t.height}),U||X(!0)},t=setTimeout(e,100);return window.addEventListener("resize",e),()=>{clearTimeout(t),window.removeEventListener("resize",e)}},[G,U,P,R,M,B,T,z,A,L]),l(()=>{if(!(n.length&&V.width&&V.height&&U))return;const e=x.select(F.current);e.selectAll("*").remove();const{width:t,height:a}=V,{margin:i,fontSize:l,nodeHeight:s,flowScaleFactor:m}=K,P=new Map,O=new Map,D=new Map,R=new Map;n.forEach(e=>{D.has(e.source)||D.set(e.source,[]),D.get(e.source).push(e),R.has(e.target)||R.set(e.target,[]),R.get(e.target).push(e),P.set(e.source,e.sourceValue),O.set(e.target,e.targetValue)});const M=Array.from(P.entries()),B=Array.from(O.entries()),T=a-i.top-i.bottom,z=T/(M.length+1),A=T/(B.length+1),L=M.map(([e,t],n)=>({name:e,value:t,y:i.top+z*(n+1),height:s})),H=B.map(([e,t],n)=>({name:e,value:t,y:i.top+A*(n+1),height:s})),j=i.left,W=t-i.right;e.attr("width",t).attr("height",a);const q=e.append("defs");n.forEach((e,t)=>{const n=q.append("linearGradient").attr("id",`gradient-${t}`).attr("gradientUnits","userSpaceOnUse").attr("x1",j+80).attr("x2",W-80);(I&&I.length>0?I:[{offset:"0%",color:"#8B5CF6",opacity:.8},{offset:"50%",color:"#3B82F6",opacity:.7},{offset:"100%",color:"#06B6D4",opacity:.8}]).forEach(e=>{n.append("stop").attr("offset","number"==typeof e.offset?`${e.offset}%`:e.offset).attr("stop-color",e.color).attr("stop-opacity",e.opacity??.8)})});let X=x.select("body").select(".sankey-tooltip");X.empty()&&(X=x.select("body").append("div").attr("class","sankey-tooltip").style("position","absolute").style("background","rgba(0, 0, 0, 0.9)").style("color","white").style("padding","12px 16px").style("border-radius","8px").style("font-size","13px").style("font-family","system-ui, sans-serif").style("pointer-events","none").style("opacity",0).style("z-index",1e3).style("box-shadow","0 4px 12px rgba(0,0,0,0.3)").style("max-width","250px"));const G=new Map;L.forEach(e=>{const t=D.get(e.name)||[];let n=e.y-e.height/2;G.set(e.name,new Map),t.forEach(t=>{const o=H.find(e=>e.name===t.target);if(!o)return;const r=o.value,a=s,i=t.thickness/r*a*m;G.get(e.name).set(t.target,{startY:n,endY:n+i,centerY:n+i/2}),n+=i})});const Y=new Map;if(H.forEach(e=>{const t=R.get(e.name)||[];let n=e.y-e.height/2;Y.set(e.name,new Map),t.forEach(t=>{const o=s,r=t.thickness/e.value*o*m;Y.get(e.name).set(t.source,{startY:n,endY:n+r,centerY:n+r/2}),n+=r})}),n.forEach((t,n)=>{const r=L.find(e=>e.name===t.source),a=H.find(e=>e.name===t.target);if(r&&a){const r=G.get(t.source).get(t.target),a=Y.get(t.target).get(t.source),i=r.startY,l=r.endY,s=a.startY,c=a.endY,d=E,u=x.interpolateNumber(j,W),p=u(d),m=u(1-d),f=`M${j},${i}\n C${p},${i} ${m},${s} ${W},${s}\n L${W},${c}\n C${m},${c} ${p},${l} ${j},${l}\n Z`;e.append("path").attr("d",f).attr("fill",`url(#gradient-${n})`).attr("opacity",$).style("cursor","pointer").on("mouseover",function(e){x.select(this).attr("fill",o).attr("opacity",S),"function"==typeof _?X.style("opacity",1).html(_(t)):X.style("opacity",1).html(`\n <div style="font-weight: 600; margin-bottom: 8px;">Flow Details</div>\n <div><strong>From:</strong> ${t.source}</div>\n <div><strong>To:</strong> ${t.target}</div>\n <div><strong>Value:</strong> ${t.thickness}</div>\n <div><strong>Source Total:</strong> ${t.sourceValue}</div>\n <div><strong>Target Total:</strong> ${t.targetValue}</div>\n `)}).on("mousemove",function(e){X.style("left",e.pageX+10+"px").style("top",e.pageY-10+"px")}).on("mouseout",function(){x.select(this).attr("fill",`url(#gradient-${n})`).attr("opacity",$),X.style("opacity",0)})}}),d){const t=e.append("text").attr("x",j-15).attr("y",i.top-10).attr("text-anchor","end").attr("fill",b).attr("font-size",`${l.label}px`).attr("font-weight","600").attr("font-family","system-ui, sans-serif").text(f).node();if(t){const n=t.getBBox();e.append("line").attr("x1",n.x).attr("y1",i.top).attr("x2",n.x+n.width).attr("y2",i.top).attr("stroke",C).attr("stroke-width","1").attr("opacity","1")}const n=e.append("text").attr("x",W+15).attr("y",i.top-10).attr("text-anchor","start").attr("fill",b).attr("font-size",`${l.label}px`).attr("font-weight","600").attr("font-family","system-ui, sans-serif").text(h).node();if(n){const t=n.getBBox();e.append("line").attr("x1",t.x).attr("y1",i.top).attr("x2",t.x+t.width).attr("y2",i.top).attr("stroke",C).attr("stroke-width","1").attr("opacity","1")}}return L.forEach(t=>{e.append("text").attr("x",j-15).attr("y",t.y-8).attr("text-anchor","end").attr("fill",g).attr("font-size",`${l.label}px`).attr("font-weight","500").attr("font-family","system-ui, sans-serif").text(N?N(t.name):t.name),e.append("text").attr("x",j-15).attr("y",t.y+12).attr("text-anchor","end").attr("fill",v).attr("font-size",`${l.value}px`).attr("font-weight","700").attr("font-family","system-ui, sans-serif").text(k?k(t.value):t.value)}),H.forEach(t=>{e.append("text").attr("x",W+15).attr("y",t.y-8).attr("text-anchor","start").attr("fill",g).attr("font-size",`${l.label}px`).attr("font-weight","500").attr("font-family","system-ui, sans-serif").text(N?N(t.name):t.name),e.append("text").attr("x",W+15).attr("y",t.y+12).attr("text-anchor","start").attr("fill",v).attr("font-size",`${l.value}px`).attr("font-weight","700").attr("font-family","system-ui, sans-serif").text(k?k(t.value):t.value)}),u&&e.append("text").attr("x",40).attr("y",35).attr("text-anchor","start").attr("fill",y).attr("font-size",`${l.title}px`).attr("font-weight","600").attr("font-family","system-ui, sans-serif").text(r),p&&e.append("text").attr("x",40).attr("y",60).attr("text-anchor","start").attr("fill",w).attr("font-size",`${l.subtitle}px`).attr("font-weight","400").attr("font-family","system-ui, sans-serif").text(c),()=>{x.select("body").selectAll(".sankey-tooltip").remove()}},[n,o,r,c,V,K,I,g,v,b,y,w,C,$,S,E,k,N,_,d,u,p,m]),t("div",{className:"w-full max-w-7xl mx-auto p-4 md:p-6",children:e("div",{className:"bg-white rounded-xl shadow-lg p-4 md:p-8",children:[m&&e("div",{className:"text-xs text-gray-500 mb-2",children:["Screen: ","undefined"!=typeof window?window.innerWidth:"SSR","px | Config: ",K===L.desktop?"Desktop":K===L.tablet?"Tablet":"Mobile"," | Chart: ",V.width,"x",V.height," | Available: ","undefined"!=typeof window?window.innerWidth-128:"SSR","px | Initialized: ",U?"Yes":"No",t("button",{onClick:()=>{const e=G();q(e);const t=window.innerWidth-128;let n=e.width;n=e===L.desktop?t>=e.width?e.width:Math.max(t,600):Math.max(t,e.width),W({width:n,height:e.height})},className:"ml-4 px-2 py-1 bg-blue-500 text-white text-xs rounded",children:"Refresh"})]}),t("div",{ref:j,className:"w-full overflow-x-auto",children:t("div",{className:"flex justify-center min-w-max",children:t("svg",{ref:F,style:{width:V.width||K.width,height:V.height||K.height,minWidth:K.width,minHeight:K.height}})})})]})})},M=75,B=16,T=1500,z=20,A=e=>`${e.label}: ${e.value.toLocaleString()} (${(100*e.percentage).toFixed(1)}%)`,L=({segments:n,title:o})=>{const r=a(null),{segmentData:d,total:u}=(e=>{const t=e.reduce((e,t)=>e+t.value,0);return{segmentData:e.map(e=>({...e,percentage:e.value/t,arcLength:75*Math.PI*(e.value/t)})),total:t}})(n),{count:p,animationProgress:m}=(e=>{const[t,n]=i(0),[o,r]=i(0);return l(()=>{let t=0;const o=1/(T/z),a=setInterval(()=>{t+=o,t>=1&&(t=1,clearInterval(a)),n(Math.floor(e*t)),r(t)},z);return()=>{clearInterval(a)}},[e]),{count:t,animationProgress:o}})(u),{tooltip:f,showTooltip:h,updateTooltip:g,hideTooltip:v}=(e=>{const[t,n]=i({show:!1,content:"",x:0,y:0,type:""}),o=s((t,o,r)=>{if(!e.current)return;const a=e.current.getBoundingClientRect(),i=t.clientX-a.left,l=t.clientY-a.top;n({show:!0,content:o,type:r,x:i,y:l-70})},[e]),r=s((o,r,a)=>{if(!t.show||!e.current)return;const i=e.current.getBoundingClientRect(),l=o.clientX-i.left,s=o.clientY-i.top;n(e=>({...e,x:l,y:s-70}))},[t.show,e]),a=s(()=>{n(e=>({...e,show:!1}))},[]);return{tooltip:t,showTooltip:o,updateTooltip:r,hideTooltip:a}})(r),b=M,y=B,w=Math.PI*b,C=c(()=>({width:2*b+y,height:b+y+20,viewBox:`0 0 ${2*b+y} ${b+y+20}`}),[b,y]),x=c(()=>((e,t)=>`M ${t/2},${e+10} \n A ${e},${e} 0 0 1 ${2*e+t/2},${e+10}`)(b,y),[b,y]),$=c(()=>d.map((e,t)=>({currentArc:e.arcLength*m,previousArcsLength:d.slice(0,t).reduce((e,t)=>e+t.arcLength*m,0)})),[d,m]);return e("div",{ref:r,className:"flex flex-col items-center justify-center bg-white rounded-xl p-8 w-96 mx-auto relative shadow-[0px_4px_40px_0px_#7090B01F]",children:[t("div",{className:"flex justify-center mb-4",children:e("svg",{width:C.width,height:C.height,viewBox:C.viewBox,className:"relative",children:[t("path",{d:x,fill:"transparent",stroke:"#E5E7EB",strokeWidth:y,strokeLinecap:"round"}),d.map((e,n)=>{const{currentArc:o,previousArcsLength:r}=$[n];return t("path",{d:x,fill:"transparent",stroke:e.color,strokeWidth:y,strokeDasharray:`${o} ${w}`,strokeDashoffset:-r,strokeLinecap:"round"},`visual-${n}`)}),d.map((e,n)=>{const{currentArc:o,previousArcsLength:r}=$[n];return t("path",{d:x,fill:"transparent",stroke:"transparent",strokeWidth:y+4,strokeDasharray:`${o} ${w}`,strokeDashoffset:-r,strokeLinecap:"round",onMouseEnter:t=>h(t,A(e),e.label),onMouseMove:t=>g(t,A(e),e.label),onMouseLeave:v,className:"cursor-pointer",style:{pointerEvents:o>0?"stroke":"none"}},`hit-${n}`)}),t("text",{x:b+y/2,y:b+10-15,textAnchor:"middle",className:"text-base font-bold fill-[#29064D]",children:p.toLocaleString()}),t("text",{x:b+y/2,y:b+10+20,textAnchor:"middle",className:"text-sm fill-[#454545]",children:o})]})}),t("div",{className:"flex flex-wrap gap-4 mt-4 w-full max-w-xs justify-center",children:d.map((n,o)=>e("div",{className:"flex items-center justify-center gap-1",children:[t("div",{className:"w-[10px] h-[10px] rounded-full shadow-sm",style:{backgroundColor:n.color}}),t("span",{className:"text-sm font-medium text-[#454545]",children:n.label})]},`legend-${o}`))}),f.show&&t("div",{className:"absolute z-50 pointer-events-none",style:{left:`${f.x}px`,top:`${f.y}px`,transform:"translateX(-50%)"},children:e("div",{className:"px-3 py-2 rounded-lg text-gray-700 text-sm font-medium bg-white shadow-lg text-center min-w-[120px]",children:[f.content,t("div",{className:"absolute top-full left-1/2 transform -translate-x-1/2 w-0 h-0 border-l-[6px] border-r-[6px] border-t-[6px] border-l-transparent border-r-transparent border-t-white"})]})})]})},H="#7E22CE",F="#7C3AED",j="#DDD6FE",V="#F3F4F6",W="#B4AAFF",K="#8B5FBF",q="#A78BFA",U="#642CFD",X="#131313",G="#5B5B5B",Y="#6B7280",Z="#059669",Q="#7090B0",J=(e,t=40)=>0===e?0:e>=1e4?t/1:e>5e3?t/2:e<5e3?t/3:t,ee={width:1100,height:650,viewBox:"-30 0 1100 700",scale:1,fontSize:14,cardWidth:259,cardHeight:115,nodeWidth:5,main:{source:{x:430,y:320,width:300},target:{x:833,y:236,width:10,spacing:28}},source:{source:{x:75,y:50,width:40,spacing:50},target:{x:430,y:185,width:28,spacing:31}},cards:{cardX:830,cardY1:30,cardY2:160,padding:{top:24,right:20,bottom:24,left:20},gap:16,fontSize:{title:16,value:24,subtitle:14}},specialFlows:{flow5:{target:{x:833,y:384,width:5}}}},te={width:800,height:600,viewBox:"-25 0 800 600",scale:.7,fontSize:12,cardWidth:220,cardHeight:90,nodeWidth:3.5,main:{source:{x:215,y:224,width:210},target:{x:583,y:165,width:7,spacing:20}},source:{source:{x:52,y:35,width:28,spacing:35},target:{x:215,y:129,width:20,spacing:22}},cards:{cardX:600,cardY1:25,cardY2:140,padding:{top:18,right:15,bottom:18,left:15},gap:12,fontSize:{title:14,value:20,subtitle:12}},specialFlows:{flow5:{target:{x:600,y:280,width:4}}}},ne={width:400,height:500,viewBox:"-20 0 400 500",scale:.4,fontSize:10,cardWidth:200,cardHeight:80,nodeWidth:2,main:{source:{x:120,y:160,width:150},target:{x:300,y:118,width:5,spacing:14}},source:{source:{x:30,y:25,width:20,spacing:25},target:{x:120,y:92,width:14,spacing:15}},cards:{cardX:250,cardY1:20,cardY2:120,padding:{top:12,right:10,bottom:12,left:10},gap:8,fontSize:{title:12,value:16,subtitle:10}},specialFlows:{flow5:{target:{x:280,y:200,width:3}}}},oe={borderRadius:12,shadowOpacity:.12,defaultOpacity:.8,hoverOpacity:1,strokeWidth:.5,hoverStrokeWidth:2,transitionDuration:300,tooltipOffset:10};(e=>{const t=e.filter(e=>"main"===e.type),n=e.filter(e=>"source"===e.type),o=[];t.forEach((e,n)=>{const r=(t.length,e.id,{source:{x:0,y:0,width:0},target:{x:0,y:0,width:0}});r&&o.push({...e,source:r.source,target:r.target})}),n.forEach((e,t)=>{const r=(n.length,e.id,{source:{x:0,y:0,width:0},target:{x:0,y:0,width:0}});r&&o.push({...e,source:r.source,target:r.target})})})([{id:"flow1",type:"main",color:H,gradientColors:{start:W,end:H}},{id:"flow2",type:"main",color:F,gradientColors:{start:W,end:F}},{id:"flow3",type:"main",color:"#A78BFA",gradientColors:{start:W,end:H}},{id:"flow4",type:"main",color:j,gradientColors:{start:W,end:j}},{id:"flow5",type:"main",color:V,gradientColors:{start:W,end:V}},{id:"source1",type:"source",sourceLabel:"Source 1",sourceValue:15e3,color:K,gradientColors:{start:W,end:K}},{id:"source2",type:"source",sourceLabel:"Source 2",sourceValue:12e3,color:F,gradientColors:{start:W,end:F}},{id:"source3",type:"source",sourceLabel:"Source 3",sourceValue:8e3,color:q,gradientColors:{start:W,end:q}},{id:"source4",type:"source",sourceLabel:"Source 4",sourceValue:5e3,color:j,gradientColors:{start:W,end:j}},{id:"source5",type:"source",sourceLabel:"Source 5",sourceValue:2e3,color:V,gradientColors:{start:W,end:V}}]);const re=({flows:e,curvature:n=.5,windowSize:o={width:0,height:0},breakpoints:r={mobile:768,tablet:1024},layoutOverrides:i={},totalDetectionsIcon:s={}})=>{const c=a(null);return l(()=>{if("undefined"==typeof window||!e||!Array.isArray(e)||0===e.length||!c.current)return;const t=x.select(c.current);t.selectAll("*").remove();const o=(e,t={})=>({dimensions:{...e.dimensions,...t.dimensions},nodePlacement:{...e.nodePlacement,...t.nodePlacement},specialFlows:t.specialFlows||e.specialFlows,cardConfig:{...e.cardConfig,...t.cardConfig}}),a="undefined"!=typeof window?window.innerWidth:1200,l=e=>{let t;switch(e){case"mobile":t=ne;break;case"tablet":t=te;break;default:t=ee}return{dimensions:{width:(()=>{switch(e){case"mobile":return Math.min(a-40,t.width);case"tablet":return Math.min(a-60,t.width);default:return t.width}})(),height:t.height,viewBox:t.viewBox,scale:t.scale,fontSize:t.fontSize,cardWidth:t.cardWidth,cardHeight:t.cardHeight},nodePlacement:{main:t.main,source:t.source},specialFlows:t.specialFlows,cardConfig:{cardX:t.cards.cardX,cardY1:t.cards.cardY1,cardY2:t.cards.cardY2,padding:t.cards.padding,gap:t.cards.gap,fontSize:t.cards.fontSize}}},{dimensions:d,nodePlacement:u,specialFlows:p,cardConfig:m}=(()=>{if("undefined"==typeof window){const e=l("desktop");return o(e,i.desktop)}const e=window.innerWidth,{mobile:t=768,tablet:n=1024}=r;let a,s={};e<=t?(a="mobile",s=i.mobile||{}):e<=n?(a="tablet",s=i.tablet||{}):(a="desktop",s=i.desktop||{});const c=l(a);return o(c,s)})(),{width:f,height:h,viewBox:g,scale:v,fontSize:b,cardWidth:y,cardHeight:w}=d,C=ee.nodeWidth*v;t.attr("width",f).attr("height",h).attr("viewBox",g);const $=t.append("defs");$.append("filter").attr("id","cardShadow").attr("x","-50%").attr("y","-50%").attr("width","200%").attr("height","200%").append("feDropShadow").attr("dx",0).attr("dy",4).attr("stdDeviation",20).attr("flood-color",Q).attr("flood-opacity",oe.shadowOpacity);let S=x.select("body").select(".sankey-tooltip");S.empty()&&(S=x.select("body").append("div").attr("class","sankey-tooltip absolute bg-black bg-opacity-80 text-white px-3 py-2 rounded-md text-xs pointer-events-none z-50 shadow-lg border border-white border-opacity-20").style("opacity",0));const E=e.filter(e=>"main"===e.type).map((e,t)=>{const n=p[e.id];if(n)return{...e,source:{x:u.main.source.x,y:u.main.source.y,width:u.main.source.width},target:n.target};{const n=u.main;return{...e,source:{x:n.source.x,y:n.source.y,width:n.source.width},target:{x:n.target.x,y:n.target.y+t*n.target.spacing,width:n.target.width}}}}),k=e.filter(e=>"source"===e.type).map((e,t)=>{const n=u.source,o=(()=>{if("undefined"==typeof window)return[185,216,280,248,310,340,370,400,216,430,280,460];const e=window.innerWidth;return e<=768?[92,107,122,137,152,167,182,197,107,212,122,227]:e<=1024?[129,151,173,195,217,239,261,283,151,305,173,327]:[185,216,280,248,310,340,370,400,216,430,280,460]})(),r=J(e.sourceValue||0,n.source.width),a=J(e.sourceValue||0,n.target.width);return{...e,source:{x:n.source.x,y:n.source.y+t*n.source.spacing,width:r},target:{x:n.target.x,y:o[t]||n.target.y+t*n.target.spacing,width:a}}});E.forEach(e=>{const t=$.append("linearGradient").attr("id",`gradient-${e.id}`).attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");e.gradientColors?.start||e.color;const n=e.gradientColors?.end||e.color||"#b6abff";t.append("stop").attr("offset","0%").attr("stop-color",W).attr("stop-opacity",1),t.append("stop").attr("offset","40%").attr("stop-color",W).attr("stop-opacity",1.8),t.append("stop").attr("offset","45%").attr("stop-color",W).attr("stop-opacity",1),t.append("stop").attr("offset","100%").attr("stop-color",n).attr("stop-opacity",1)}),k.forEach(e=>{const t=$.append("linearGradient").attr("id",`source-gradient-${e.id}`).attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");t.append("stop").attr("offset","0%").attr("stop-color",W).attr("stop-opacity",1),t.append("stop").attr("offset","80%").attr("stop-color",W).attr("stop-opacity",1),t.append("stop").attr("offset","100%").attr("stop-color","#BEE4FF").attr("stop-opacity",1)});const N=e=>{if(!e||!e.source||!e.target)return"";const{source:t,target:o}=e,r=n,a=o.x-t.x,i=t.x+a*r,l=o.x-a*r;return`\n M ${t.x} ${t.y-t.width/2}\n C ${i} ${t.y-t.width/2}, \n ${l} ${o.y-o.width/2}, \n ${o.x} ${o.y-o.width/2}\n `+`\n L ${o.x} ${o.y+o.width/2}\n C ${l} ${o.y+o.width/2}, \n ${i} ${t.y+t.width/2}, \n ${t.x} ${t.y+t.width/2}\n Z\n `};E.slice().reverse().forEach(e=>{e&&e.source&&e.target&&t.append("path").attr("d",N(e)).attr("fill",`url(#gradient-${e.id})`).attr("stroke","rgba(255, 255, 255, 0.1)").attr("stroke-width",oe.strokeWidth).style("opacity","0.6").style("transition",`opacity ${oe.transitionDuration}ms, stroke ${oe.transitionDuration}ms`).style("cursor","pointer").attr("data-flow-id",e.id).style("opacity",oe.defaultOpacity).on("mouseover",function(n,o){const r=E.find(t=>t.id===e.id);r&&(S.transition().duration(200).style("opacity",1),S.html(`\n <strong>Flow ${e.id}</strong><br/>\n Source: (${r.source.x}, ${r.source.y})<br/>\n Source Width: ${r.source.width}px<br/>\n Target: (${r.target.x}, ${r.target.y})<br/>\n Target Width: ${r.target.width}px<br/>\n Color: ${r.color}\n `).style("left",n.pageX+10+"px").style("top",n.pageY-10+"px"),t.selectAll("path[data-flow-id]").style("opacity",.3),x.select(this).style("opacity",1).style("stroke","rgba(139, 95, 191, 1.0)").style("stroke-width","2px").raise())}).on("mousemove",function(e){S.style("left",e.pageX+10+"px").style("top",e.pageY-10+"px")}).on("mouseout",function(){S.transition().duration(500).style("opacity",0),t.selectAll("path[data-flow-id]").style("opacity",.8),x.select(this).style("stroke","rgba(255, 255, 255, 0.1)").style("stroke-width","0.5")})}),k.forEach(e=>{e&&e.source&&e.target&&t.append("path").attr("d",N(e)).attr("fill",`url(#source-gradient-${e.id})`).attr("stroke","rgba(255, 255, 255, 0.1)").attr("stroke-width","0.5").style("opacity","0.6").style("transition","opacity 0.3s, stroke 0.3s").style("cursor","pointer").attr("data-flow-id",e.id).style("opacity",.6).style("mix-blend-mode","multiply").on("mouseover",function(n,o){const r=k.find(t=>t.id===e.id);r&&(S.transition().duration(200).style("opacity",1),S.html(`\n <strong>${r.sourceLabel}</strong><br/>\n Value: ${r.sourceValue}<br/>\n Source: (${r.source.x}, ${r.source.y})<br/>\n Source Width: ${r.source.width}px<br/>\n Target: (${r.target.x}, ${r.target.y})<br/>\n Target Width: ${r.target.width}px\n `).style("left",n.pageX+10+"px").style("top",n.pageY-10+"px"),t.selectAll("path[data-flow-id]").style("opacity",.3),x.select(this).style("opacity",1).style("stroke","rgba(139, 95, 191, 1.0)").style("stroke-width","2px").raise())}).on("mousemove",function(e){S.style("left",e.pageX+10+"px").style("top",e.pageY-10+"px")}).on("mouseout",function(){S.transition().duration(500).style("opacity",0),t.selectAll("path[data-flow-id]").style("opacity",.8),x.select(this).style("stroke","rgba(255, 255, 255, 0.1)").style("stroke-width","0.5")})}),E.slice().reverse().forEach((e,n)=>{e&&e.source&&e.target&&t.append("rect").attr("x",e.target.x-C/2).attr("y",e.target.y-e.target.width/2).attr("width",C).attr("height",e.target.width).style("fill",U).style("rx","3").style("ry","3")}),k.forEach((e,n)=>{if(!e||!e.source||!e.target)return;const o=(()=>{if("undefined"==typeof window)return 65;const e=window.innerWidth;return e<=768?25:e<=1024?45:65})();t.append("text").attr("x",o).attr("y",e.source.y-10).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","12px").style("fill",G).style("font-weight","500").style("font-size",`${b}px`).text(e.sourceLabel||""),t.append("text").attr("x",o).attr("y",e.source.y+8).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","11px").style("fill","black").style("font-weight","600").style("font-size",b-2+"px").text(void 0!==e.sourceValue?e.sourceValue:""),t.append("rect").attr("x",e.target.x-C/2).attr("y",e.target.y-e.target.width/2).attr("width",C-3).attr("height",e.target.width).style("fill",U).style("rx","3").style("ry","3")});const{cardX:_,cardY1:I,cardY2:P,padding:O,gap:D,fontSize:R}=m;t.append("rect").attr("x",_).attr("y",I).attr("width",y).attr("height",w).attr("rx",12*v).attr("ry",12*v).attr("fill","white").attr("filter","url(#cardShadow)").style("fill","white").style("rx","8").style("ry","8").style("filter","drop-shadow(0px 4px 40px rgba(112, 144, 176, 0.12))"),t.append("text").attr("x",_+O.left).attr("y",I+O.top+8).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","16px").style("fill",X).style("font-weight","500").style("font-size",`${R.title}px`).style("font-weight","500").text("Total Detections");const M=(()=>{const e=s.alignment||"left",t=s.position?.y||I+O.top+8;if(void 0!==s.position?.x)return{x:s.position.x,y:t};switch(e){case"left":const e=((e,t)=>e.length*t*.55)("Total Detections",R.title);return{x:_+O.left+e+15,y:t};case"center":return{x:_+y/2,y:t};default:return{x:_+y-O.right-16,y:t}}})(),B={icon:s.icon||"↗",color:s.color||"#8B5FBF",size:s.size||14,x:M.x,y:M.y,alignment:s.alignment||"right"},T=t.append("text").attr("x",B.x).attr("y",B.y).attr("text-anchor",(e=>{switch(e){case"left":return"start";case"center":return"middle";default:return"end"}})(B.alignment)).attr("dominant-baseline","middle").style("font-size",`${B.size}px`).style("fill",B.color).style("font-weight","600").style("cursor",s.onClick?"pointer":"default").text(B.icon);s.onClick&&T.on("click",s.onClick).on("mouseover",function(){x.select(this).style("opacity",.7)}).on("mouseout",function(){x.select(this).style("opacity",1)}),t.append("text").attr("x",_+O.left).attr("y",I+O.top+8+D+16).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","16px").style("fill",X).style("font-weight","500").style("font-size","24px").style("font-weight","700").style("fill",X).text("9100"),t.append("text").attr("x",_+O.left+70).attr("y",I+O.top+8+D+16).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","12px").style("fill",Z).style("font-weight","500").style("font-size","14px").style("font-weight","500").style("fill",Z).text("▲ +10%"),t.append("text").attr("x",_+O.left).attr("y",I+O.top+8+D+16+D+12).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","11px").style("fill",Y).style("font-weight","400").style("font-size","14px").style("font-weight","400").style("fill",Y).text("In last 7 days"),t.append("rect").attr("x",_).attr("y",P).attr("width",259).attr("height",307).attr("rx",12).attr("ry",12).attr("fill","white").attr("filter","url(#cardShadow)").style("fill","white").style("rx","8").style("ry","8").style("filter","drop-shadow(0px 4px 40px rgba(112, 144, 176, 0.12))"),t.append("text").attr("x",_+O.left).attr("y",P+O.top+16).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","16px").style("fill",X).style("font-weight","500").text("Mitigated Threats"),t.append("text").attr("x",_+259-O.right).attr("y",P+O.top+16).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","16px").style("fill",X).style("font-weight","500").text("9000");[{label:"Critical",value:60,color:"#4C1D95"},{label:"High",value:300,color:"#7C3AED"},{label:"Medium",value:860,color:"#A78BFA"},{label:"Low",value:100,color:"#DDD6FE"}].forEach((e,n)=>{const o=P+O.top+16+D+20+28*n;t.append("text").attr("x",_+O.left).attr("y",o).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","14px").style("fill",G).style("font-weight","500").text(e.label),t.append("text").attr("x",_+259-O.right).attr("y",o).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","14px").style("fill",G).style("font-weight","500").text(e.value)});const z=P+O.top+16+D+20+112+D+20;t.append("text").attr("x",_+O.left).attr("y",z).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","16px").style("fill",X).style("font-weight","500").text("Unmitigated Threats"),t.append("text").attr("x",_+259-O.right).attr("y",z).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","16px").style("fill",X).style("font-weight","500").text("100");return[{label:"Informational",value:100,color:"#F3F4F6"}].forEach((e,n)=>{const o=z+D+16+28*n;t.append("text").attr("x",_+O.left).attr("y",o).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","14px").style("fill",G).style("font-weight","500").text(e.label),t.append("text").attr("x",_+259-O.right).attr("y",o).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","14px").style("fill",G).style("font-weight","500").text(e.value)}),()=>{"undefined"!=typeof window&&x.select("body").selectAll(".sankey-tooltip").remove()}},[e,n,c]),t("div",{className:"flex justify-center w-full",children:t("svg",{id:"sankey-chart",ref:c,className:"block mx-auto",style:{display:"block",margin:"0 auto"}})})};function ae(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=ae(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function ie(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=ae(e))&&(o&&(o+=" "),o+=t);return o}var le={button:"Button-module_button__hvJpb",label:"Button-module_label__zSB3D",icon:"Button-module_icon__pfoz5",loaderIcon:"Button-module_loaderIcon__4WG9k",spin:"Button-module_spin__6Uwop",size_medium:"Button-module_size_medium__TGkrI",size_small:"Button-module_size_small__-vQKB",style_primary:"Button-module_style_primary__GfCKd",state_default:"Button-module_state_default__KGxJA",state_hover:"Button-module_state_hover__NNaw2",state_focus:"Button-module_state_focus__xudCD",state_disabled:"Button-module_state_disabled__6SakQ",state_loading:"Button-module_state_loading__ZhHO9",style_secondary:"Button-module_style_secondary__9kVUP",style_neutral:"Button-module_style_neutral__ZoLsO",style_subtle:"Button-module_style_subtle__oOeBv"},se={icon:"Icon-module_icon__hJi-x",variant_default:"Icon-module_variant_default__4khrG",variant_hover:"Icon-module_variant_hover__Z-Zt4",variant_active:"Icon-module_variant_active__B7W-7",variant_disabled:"Icon-module_variant_disabled__u8BHu",variant_white:"Icon-module_variant_white__LRbrT"};const ce=[{name:"app-window",label:"App Window",filePath:"icon/AppWindow.svg",variantCount:1},{name:"arrow-arc-left",label:"Arrow Arc Left",filePath:"icon/ArrowArcLeft.svg",variantCount:1},{name:"arrow-arc-right",label:"Arrow Arc Right",filePath:"icon/ArrowArcRight.svg",variantCount:1},{name:"arrow-bend-double-up-left",label:"Arrow Bend Double Up Left",filePath:"icon/ArrowBendDoubleUpLeft.svg",variantCount:1},{name:"arrow-bend-double-up-right",label:"Arrow Bend Double Up Right",filePath:"icon/ArrowBendDoubleUpRight.svg",variantCount:1},{name:"arrow-bend-down-left",label:"Arrow Bend Down Left",filePath:"icon/ArrowBendDownLeft.svg",variantCount:1},{name:"arrow-bend-down-right",label:"Arrow Bend Down Right",filePath:"icon/ArrowBendDownRight.svg",variantCount:1},{name:"arrow-bend-left-down",label:"Arrow Bend Left Down",filePath:"icon/ArrowBendLeftDown.svg",variantCount:1},{name:"arrow-bend-right-down",label:"Arrow Bend Right Down",filePath:"icon/ArrowBendRightDown.svg",variantCount:1},{name:"arrow-bend-right-up",label:"Arrow Bend Right Up",filePath:"icon/ArrowBendRightUp.svg",variantCount:1},{name:"arrow-bend-up-left",label:"Arrow Bend Up Left",filePath:"icon/ArrowBendUpLeft.svg",variantCount:1},{name:"arrow-bend-up-right",label:"Arrow Bend Up Right",filePath:"icon/ArrowBendUpRight.svg",variantCount:1},{name:"arrow-circle-down",label:"Arrow Circle Down",filePath:"icon/ArrowCircleDown.svg",variantCount:1},{name:"arrow-circle-down-left",label:"Arrow Circle Down Left",filePath:"icon/ArrowCircleDownLeft.svg",variantCount:1},{name:"arrow-circle-down-right",label:"Arrow Circle Down Right",filePath:"icon/ArrowCircleDownRight.svg",variantCount:1},{name:"arrow-circle-left",label:"Arrow Circle Left",filePath:"icon/ArrowCircleLeft.svg",variantCount:1},{name:"arrow-circle-right",label:"Arrow Circle Right",filePath:"icon/ArrowCircleRight.svg",variantCount:1},{name:"arrow-circle-up",label:"Arrow Circle Up",filePath:"icon/ArrowCircleUp.svg",variantCount:1},{name:"arrow-circle-up-left",label:"Arrow Circle Up Left",filePath:"icon/ArrowCircleUpLeft.svg",variantCount:1},{name:"arrow-circle-up-right",label:"Arrow Circle Up Right",filePath:"icon/ArrowCircleUpRight.svg",variantCount:1},{name:"arrow-clockwise",label:"Arrow Clockwise",filePath:"icon/ArrowClockwise.svg",variantCount:1},{name:"arrow-counter-clockwise",label:"Arrow Counter Clockwise",filePath:"icon/ArrowCounterClockwise.svg",variantCount:1},{name:"arrow-down",label:"Arrow Down",filePath:"icon/ArrowDown.svg",variantCount:1},{name:"arrow-down-left",label:"Arrow Down Left",filePath:"icon/ArrowDownLeft.svg",variantCount:1},{name:"arrow-down-right",label:"Arrow Down Right",filePath:"icon/ArrowDownRight.svg",variantCount:1},{name:"arrow-elbow-down-left",label:"Arrow Elbow Down Left",filePath:"icon/ArrowElbowDownLeft.svg",variantCount:1},{name:"arrow-elbow-down-right",label:"Arrow Elbow Down Right",filePath:"icon/ArrowElbowDownRight.svg",variantCount:1},{name:"arrow-elbow-left",label:"Arrow Elbow Left",filePath:"icon/ArrowElbowLeft.svg",variantCount:1},{name:"arrow-elbow-left-down",label:"Arrow Elbow Left Down",filePath:"icon/ArrowElbowLeftDown.svg",variantCount:1},{name:"arrow-elbow-left-up",label:"Arrow Elbow Left Up",filePath:"icon/ArrowElbowLeftUp.svg",variantCount:1},{name:"arrow-elbow-right",label:"Arrow Elbow Right",filePath:"icon/ArrowElbowRight.svg",variantCount:1},{name:"arrow-elbow-right-down",label:"Arrow Elbow Right Down",filePath:"icon/ArrowElbowRightDown.svg",variantCount:1},{name:"arrow-elbow-right-up",label:"Arrow Elbow Right Up",filePath:"icon/ArrowElbowRightUp.svg",variantCount:1},{name:"arrow-elbow-up-left",label:"Arrow Elbow Up Left",filePath:"icon/ArrowElbowUpLeft.svg",variantCount:1},{name:"arrow-elbow-up-right",label:"Arrow Elbow Up Right",filePath:"icon/ArrowElbowUpRight.svg",variantCount:1},{name:"arrow-left",label:"Arrow Left",filePath:"icon/ArrowLeft.svg",variantCount:1},{name:"arrow-line-down",label:"Arrow Line Down",filePath:"icon/ArrowLineDown.svg",variantCount:1},{name:"arrow-line-down-left",label:"Arrow Line Down Left",filePath:"icon/ArrowLineDownLeft.svg",variantCount:1},{name:"arrow-line-down-right",label:"Arrow Line Down Right",filePath:"icon/ArrowLineDownRight.svg",variantCount:1},{name:"arrow-line-left",label:"Arrow Line Left",filePath:"icon/ArrowLineLeft.svg",variantCount:1},{name:"arrow-line-right",label:"Arrow Line Right",filePath:"icon/ArrowLineRight.svg",variantCount:1},{name:"arrow-line-up",label:"Arrow Line Up",filePath:"icon/ArrowLineUp.svg",variantCount:1},{name:"arrow-line-up-left",label:"Arrow Line Up Left",filePath:"icon/ArrowLineUpLeft.svg",variantCount:1},{name:"arrow-line-up-right",label:"Arrow Line Up Right",filePath:"icon/ArrowLineUpRight.svg",variantCount:1},{name:"arrow-right",label:"Arrow Right",filePath:"icon/ArrowRight.svg",variantCount:1},{name:"arrow-square-down",label:"Arrow Square Down",filePath:"icon/ArrowSquareDown.svg",variantCount:1},{name:"arrow-square-down-left",label:"Arrow Square Down Left",filePath:"icon/ArrowSquareDownLeft.svg",variantCount:1},{name:"arrow-square-down-right",label:"Arrow Square Down Right",filePath:"icon/ArrowSquareDownRight.svg",variantCount:1},{name:"arrow-square-left",label:"Arrow Square Left",filePath:"icon/ArrowSquareLeft.svg",variantCount:1},{name:"arrow-square-right",label:"Arrow Square Right",filePath:"icon/ArrowSquareRight.svg",variantCount:1},{name:"arrow-square-up",label:"Arrow Square Up",filePath:"icon/ArrowSquareUp.svg",variantCount:1},{name:"arrow-square-up-left",label:"Arrow Square Up Left",filePath:"icon/ArrowSquareUpLeft.svg",variantCount:1},{name:"arrow-square-up-right",label:"Arrow Square Up Right",filePath:"icon/ArrowSquareUpRight.svg",variantCount:1},{name:"arrow-up",label:"Arrow Up",filePath:"icon/ArrowUp.svg",variantCount:1},{name:"arrow-up-left",label:"Arrow Up Left",filePath:"icon/ArrowUpLeft.svg",variantCount:1},{name:"arrow-up-right",label:"Arrow Up Right",filePath:"icon/ArrowUpRight.svg",variantCount:1},{name:"arrows-clockwise",label:"Arrows Clockwise",filePath:"icon/ArrowsClockwise.svg",variantCount:1},{name:"arrows-counter-clockwise",label:"Arrows Counter Clockwise",filePath:"icon/ArrowsCounterClockwise.svg",variantCount:1},{name:"arrows-down-up",label:"Arrows Down Up",filePath:"icon/ArrowsDownUp.svg",variantCount:1},{name:"arrows-horizontal",label:"Arrows Horizontal",filePath:"icon/ArrowsHorizontal.svg",variantCount:1},{name:"arrows-in",label:"Arrows In",filePath:"icon/ArrowsIn.svg",variantCount:1},{name:"arrows-in-cardinal",label:"Arrows In Cardinal",filePath:"icon/ArrowsInCardinal.svg",variantCount:1},{name:"arrows-in-line-horizontal",label:"Arrows In Line Horizontal",filePath:"icon/ArrowsInLineHorizontal.svg",variantCount:1},{name:"arrows-in-line-vertical",label:"Arrows In Line Vertical",filePath:"icon/ArrowsInLineVertical.svg",variantCount:1},{name:"arrows-in-simple",label:"Arrows In Simple",filePath:"icon/ArrowsInSimple.svg",variantCount:1},{name:"arrows-left-right",label:"Arrows Left Right",filePath:"icon/ArrowsLeftRight.svg",variantCount:1},{name:"arrows-out",label:"Arrows Out",filePath:"icon/ArrowsOut.svg",variantCount:1},{name:"arrows-out-cardinal",label:"Arrows Out Cardinal",filePath:"icon/ArrowsOutCardinal.svg",variantCount:1},{name:"arrows-out-line-horizontal",label:"Arrows Out Line Horizontal",filePath:"icon/ArrowsOutLineHorizontal.svg",variantCount:1},{name:"arrows-out-line-vertical",label:"Arrows Out Line Vertical",filePath:"icon/ArrowsOutLineVertical.svg",variantCount:1},{name:"arrows-out-simple",label:"Arrows Out Simple",filePath:"icon/ArrowsOutSimple.svg",variantCount:1},{name:"arrows-vertical",label:"Arrows Vertical",filePath:"icon/ArrowsVertical.svg",variantCount:1},{name:"article",label:"Article",filePath:"icon/Article.svg",variantCount:1},{name:"bell",label:"Bell",filePath:"icon/Bell.svg",variantCount:1},{name:"bell-ringing",label:"Bell Ringing",filePath:"icon/BellRinging.svg",variantCount:1},{name:"bell-simple",label:"Bell Simple",filePath:"icon/BellSimple.svg",variantCount:1},{name:"bell-simple-ringing",label:"Bell Simple Ringing",filePath:"icon/BellSimpleRinging.svg",variantCount:1},{name:"bell-simple-slash",label:"Bell Simple Slash",filePath:"icon/BellSimpleSlash.svg",variantCount:1},{name:"binoculars",label:"Binoculars",filePath:"icon/Binoculars.svg",variantCount:1},{name:"book",label:"Book",filePath:"icon/Book.svg",variantCount:1},{name:"book-open",label:"Book Open",filePath:"icon/BookOpen.svg",variantCount:1},{name:"book-open-text",label:"Book Open Text",filePath:"icon/BookOpenText.svg",variantCount:1},{name:"box-arrow-down",label:"Box Arrow Down",filePath:"icon/BoxArrowDown.svg",variantCount:1},{name:"box-arrow-up",label:"Box Arrow Up",filePath:"icon/BoxArrowUp.svg",variantCount:1},{name:"brackets-angle",label:"Brackets Angle",filePath:"icon/BracketsAngle.svg",variantCount:1},{name:"brackets-curly",label:"Brackets Curly",filePath:"icon/BracketsCurly.svg",variantCount:1},{name:"brackets-round",label:"Brackets Round",filePath:"icon/BracketsRound.svg",variantCount:1},{name:"brackets-square",label:"Brackets Square",filePath:"icon/BracketsSquare.svg",variantCount:1},{name:"browser",label:"Browser",filePath:"icon/Browser.svg",variantCount:1},{name:"browsers",label:"Browsers",filePath:"icon/Browsers.svg",variantCount:1},{name:"bug",label:"Bug",filePath:"icon/Bug.svg",variantCount:1},{name:"calendar-blank",label:"Calendar Blank",filePath:"icon/CalendarBlank.svg",variantCount:1},{name:"calendar-dots",label:"Calendar Dots",filePath:"icon/CalendarDots.svg",variantCount:1},{name:"cards",label:"Cards",filePath:"icon/Cards.svg",variantCount:1},{name:"cards-three",label:"Cards Three",filePath:"icon/CardsThree.svg",variantCount:1},{name:"caret-circle-double-down",label:"Caret Circle Double Down",filePath:"icon/CaretCircleDoubleDown.svg",variantCount:1},{name:"caret-circle-double-left",label:"Caret Circle Double Left",filePath:"icon/CaretCircleDoubleLeft.svg",variantCount:1},{name:"caret-circle-double-right",label:"Caret Circle Double Right",filePath:"icon/CaretCircleDoubleRight.svg",variantCount:1},{name:"caret-circle-double-up",label:"Caret Circle Double Up",filePath:"icon/CaretCircleDoubleUp.svg",variantCount:1},{name:"caret-circle-down",label:"Caret Circle Down",filePath:"icon/CaretCircleDown.svg",variantCount:1},{name:"caret-circle-left",label:"Caret Circle Left",filePath:"icon/CaretCircleLeft.svg",variantCount:1},{name:"caret-circle-right",label:"Caret Circle Right",filePath:"icon/CaretCircleRight.svg",variantCount:1},{name:"caret-circle-up",label:"Caret Circle Up",filePath:"icon/CaretCircleUp.svg",variantCount:1},{name:"caret-circle-up-down",label:"Caret Circle Up Down",filePath:"icon/CaretCircleUpDown.svg",variantCount:1},{name:"caret-down",label:"Caret Down",filePath:"icon/CaretDown.svg",variantCount:1},{name:"caret-left",label:"Caret Left",filePath:"icon/CaretLeft.svg",variantCount:1},{name:"caret-line-down",label:"Caret Line Down",filePath:"icon/CaretLineDown.svg",variantCount:1},{name:"caret-line-left",label:"Caret Line Left",filePath:"icon/CaretLineLeft.svg",variantCount:1},{name:"caret-line-right",label:"Caret Line Right",filePath:"icon/CaretLineRight.svg",variantCount:1},{name:"caret-line-up",label:"Caret Line Up",filePath:"icon/CaretLineUp.svg",variantCount:1},{name:"caret-right",label:"Caret Right",filePath:"icon/CaretRight.svg",variantCount:1},{name:"caret-up",label:"Caret Up",filePath:"icon/CaretUp.svg",variantCount:1},{name:"caret-up-down",label:"Caret Up Down",filePath:"icon/CaretUpDown.svg",variantCount:1},{name:"check",label:"Check",filePath:"icon/Check.svg",variantCount:1},{name:"check-circle",label:"Check Circle",filePath:"icon/CheckCircle.svg",variantCount:1},{name:"check-square",label:"Check Square",filePath:"icon/CheckSquare.svg",variantCount:1},{name:"check-square-offset",label:"Check Square Offset",filePath:"icon/CheckSquareOffset.svg",variantCount:1},{name:"checks",label:"Checks",filePath:"icon/Checks.svg",variantCount:1},{name:"circles-four",label:"Circles Four",filePath:"icon/CirclesFour.svg",variantCount:1},{name:"clipboard",label:"Clipboard",filePath:"icon/Clipboard.svg",variantCount:1},{name:"clipboard-text",label:"Clipboard Text",filePath:"icon/ClipboardText.svg",variantCount:1},{name:"cloud-arrow-down",label:"Cloud Arrow Down",filePath:"icon/CloudArrowDown.svg",variantCount:1},{name:"cloud-arrow-up",label:"Cloud Arrow Up",filePath:"icon/CloudArrowUp.svg",variantCount:1},{name:"cloud-check",label:"Cloud Check",filePath:"icon/CloudCheck.svg",variantCount:1},{name:"cloud-slash",label:"Cloud Slash",filePath:"icon/CloudSlash.svg",variantCount:1},{name:"cloud-warning",label:"Cloud Warning",filePath:"icon/CloudWarning.svg",variantCount:1},{name:"cloud-x",label:"Cloud X",filePath:"icon/CloudX.svg",variantCount:1},{name:"code",label:"Code",filePath:"icon/Code.svg",variantCount:1},{name:"code-block",label:"Code Block",filePath:"icon/CodeBlock.svg",variantCount:1},{name:"code-simple",label:"Code Simple",filePath:"icon/CodeSimple.svg",variantCount:1},{name:"columns",label:"Columns",filePath:"icon/Columns.svg",variantCount:1},{name:"columns-plus-left",label:"Columns Plus Left",filePath:"icon/ColumnsPlusLeft.svg",variantCount:1},{name:"columns-plus-right",label:"Columns Plus Right",filePath:"icon/ColumnsPlusRight.svg",variantCount:1},{name:"copy",label:"Copy",filePath:"icon/Copy.svg",variantCount:1},{name:"copy-simple",label:"Copy Simple",filePath:"icon/CopySimple.svg",variantCount:1},{name:"cpu",label:"Cpu",filePath:"icon/Cpu.svg",variantCount:1},{name:"credit-card",label:"Credit Card",filePath:"icon/CreditCard.svg",variantCount:1},{name:"cube",label:"Cube",filePath:"icon/Cube.svg",variantCount:1},{name:"cube-transparent",label:"Cube Transparent",filePath:"icon/CubeTransparent.svg",variantCount:1},{name:"database",label:"Database",filePath:"icon/Database.svg",variantCount:1},{name:"desktop",label:"Desktop",filePath:"icon/Desktop.svg",variantCount:1},{name:"desktop-tower",label:"Desktop Tower",filePath:"icon/DesktopTower.svg",variantCount:1},{name:"detective",label:"Detective",filePath:"icon/Detective.svg",variantCount:1},{name:"device-mobile-camera",label:"Device Mobile Camera",filePath:"icon/DeviceMobileCamera.svg",variantCount:1},{name:"device-tablet-camera",label:"Device Tablet Camera",filePath:"icon/DeviceTabletCamera.svg",variantCount:1},{name:"devices",label:"Devices",filePath:"icon/Devices.svg",variantCount:1},{name:"diamonds-four",label:"Diamonds Four",filePath:"icon/DiamondsFour.svg",variantCount:1},{name:"dot",label:"Dot",filePath:"icon/Dot.svg",variantCount:1},{name:"dot-outline",label:"Dot Outline",filePath:"icon/DotOutline.svg",variantCount:1},{name:"dots-nine",label:"Dots Nine",filePath:"icon/DotsNine.svg",variantCount:1},{name:"dots-six",label:"Dots Six",filePath:"icon/DotsSix.svg",variantCount:1},{name:"dots-six-vertical",label:"Dots Six Vertical",filePath:"icon/DotsSixVertical.svg",variantCount:1},{name:"dots-three",label:"Dots Three",filePath:"icon/DotsThree.svg",variantCount:1},{name:"dots-three-circle",label:"Dots Three Circle",filePath:"icon/DotsThreeCircle.svg",variantCount:1},{name:"dots-three-circle-vertical",label:"Dots Three Circle Vertical",filePath:"icon/DotsThreeCircleVertical.svg",variantCount:1},{name:"dots-three-outline",label:"Dots Three Outline",filePath:"icon/DotsThreeOutline.svg",variantCount:1},{name:"dots-three-outline-vertical",label:"Dots Three Outline Vertical",filePath:"icon/DotsThreeOutlineVertical.svg",variantCount:1},{name:"dots-three-vertical",label:"Dots Three Vertical",filePath:"icon/DotsThreeVertical.svg",variantCount:1},{name:"download-simple",label:"Download Simple",filePath:"icon/DownloadSimple.svg",variantCount:1},{name:"envelope",label:"Envelope",filePath:"icon/Envelope.svg",variantCount:1},{name:"envelope-simple",label:"Envelope Simple",filePath:"icon/EnvelopeSimple.svg",variantCount:1},{name:"exclamation-mark",label:"Exclamation Mark",filePath:"icon/ExclamationMark.svg",variantCount:1},{name:"export",label:"Export",filePath:"icon/Export.svg",variantCount:1},{name:"eye",label:"Eye",filePath:"icon/Eye.svg",variantCount:1},{name:"eye-closed",label:"Eye Closed",filePath:"icon/EyeClosed.svg",variantCount:1},{name:"eye-slash",label:"Eye Slash",filePath:"icon/EyeSlash.svg",variantCount:1},{name:"faders",label:"Faders",filePath:"icon/Faders.svg",variantCount:1},{name:"faders-horizontal",label:"Faders Horizontal",filePath:"icon/FadersHorizontal.svg",variantCount:1},{name:"file",label:"File",filePath:"icon/File.svg",variantCount:1},{name:"file-archive",label:"File Archive",filePath:"icon/FileArchive.svg",variantCount:1},{name:"file-arrow-down",label:"File Arrow Down",filePath:"icon/FileArrowDown.svg",variantCount:1},{name:"file-arrow-up",label:"File Arrow Up",filePath:"icon/FileArrowUp.svg",variantCount:1},{name:"file-dashed",label:"File Dashed",filePath:"icon/FileDashed.svg",variantCount:1},{name:"file-text",label:"File Text",filePath:"icon/FileText.svg",variantCount:1},{name:"files",label:"Files",filePath:"icon/Files.svg",variantCount:1},{name:"fingerprint",label:"Fingerprint",filePath:"icon/Fingerprint.svg",variantCount:1},{name:"fingerprint-simple",label:"Fingerprint Simple",filePath:"icon/FingerprintSimple.svg",variantCount:1},{name:"flag",label:"Flag",filePath:"icon/Flag.svg",variantCount:1},{name:"flag-pennant",label:"Flag Pennant",filePath:"icon/FlagPennant.svg",variantCount:1},{name:"floppy-disk",label:"Floppy Disk",filePath:"icon/FloppyDisk.svg",variantCount:1},{name:"folder",label:"Folder",filePath:"icon/Folder.svg",variantCount:1},{name:"folder-dashed",label:"Folder Dashed",filePath:"icon/FolderDashed.svg",variantCount:1},{name:"folder-open",label:"Folder Open",filePath:"icon/FolderOpen.svg",variantCount:1},{name:"folder-simple",label:"Folder Simple",filePath:"icon/FolderSimple.svg",variantCount:1},{name:"folder-simple-dashed",label:"Folder Simple Dashed",filePath:"icon/FolderSimpleDashed.svg",variantCount:1},{name:"folders",label:"Folders",filePath:"icon/Folders.svg",variantCount:1},{name:"funnel",label:"Funnel",filePath:"icon/Funnel.svg",variantCount:1},{name:"funnel-simple",label:"Funnel Simple",filePath:"icon/FunnelSimple.svg",variantCount:1},{name:"gear",label:"Gear",filePath:"icon/Gear.svg",variantCount:1},{name:"gear-six",label:"Gear Six",filePath:"icon/GearSix.svg",variantCount:1},{name:"git-branch",label:"Git Branch",filePath:"icon/GitBranch.svg",variantCount:1},{name:"git-merge",label:"Git Merge",filePath:"icon/GitMerge.svg",variantCount:1},{name:"git-pull-request",label:"Git Pull Request",filePath:"icon/GitPullRequest.svg",variantCount:1},{name:"globe",label:"Globe",filePath:"icon/Globe.svg",variantCount:1},{name:"globe-simple",label:"Globe Simple",filePath:"icon/GlobeSimple.svg",variantCount:1},{name:"green-tick",label:"Green Tick",filePath:"icon/GreenTick.svg",variantCount:1},{name:"grid-four",label:"Grid Four",filePath:"icon/GridFour.svg",variantCount:1},{name:"hammer",label:"Hammer",filePath:"icon/Hammer.svg",variantCount:1},{name:"hand",label:"Hand",filePath:"icon/Hand.svg",variantCount:1},{name:"hand-palm",label:"Hand Palm",filePath:"icon/HandPalm.svg",variantCount:1},{name:"hand-pointing",label:"Hand Pointing",filePath:"icon/HandPointing.svg",variantCount:1},{name:"house",label:"House",filePath:"icon/House.svg",variantCount:1},{name:"identification-badge",label:"Identification Badge",filePath:"icon/IdentificationBadge.svg",variantCount:1},{name:"identification-card",label:"Identification Card",filePath:"icon/IdentificationCard.svg",variantCount:1},{name:"info",label:"Info",filePath:"icon/Info.svg",variantCount:1},{name:"key",label:"Key",filePath:"icon/Key.svg",variantCount:1},{name:"ladder-simple",label:"Ladder Simple",filePath:"icon/LadderSimple.svg",variantCount:1},{name:"layout",label:"Layout",filePath:"icon/Layout.svg",variantCount:1},{name:"lifebuoy",label:"Lifebuoy",filePath:"icon/Lifebuoy.svg",variantCount:1},{name:"lightbulb",label:"Lightbulb",filePath:"icon/Lightbulb.svg",variantCount:1},{name:"lightning",label:"Lightning",filePath:"icon/Lightning.svg",variantCount:1},{name:"link",label:"Link",filePath:"icon/Link.svg",variantCount:1},{name:"link-break",label:"Link Break",filePath:"icon/LinkBreak.svg",variantCount:1},{name:"link-simple",label:"Link Simple",filePath:"icon/LinkSimple.svg",variantCount:1},{name:"link-simple-break",label:"Link Simple Break",filePath:"icon/LinkSimpleBreak.svg",variantCount:1},{name:"link-simple-horizontal",label:"Link Simple Horizontal",filePath:"icon/LinkSimpleHorizontal.svg",variantCount:1},{name:"link-simple-horizontal-break",label:"Link Simple Horizontal Break",filePath:"icon/LinkSimpleHorizontalBreak.svg",variantCount:1},{name:"list",label:"List",filePath:"icon/List.svg",variantCount:1},{name:"list-bullets",label:"List Bullets",filePath:"icon/ListBullets.svg",variantCount:1},{name:"list-checks",label:"List Checks",filePath:"icon/ListChecks.svg",variantCount:1},{name:"list-dashes",label:"List Dashes",filePath:"icon/ListDashes.svg",variantCount:1},{name:"list-heart",label:"List Heart",filePath:"icon/ListHeart.svg",variantCount:1},{name:"list-magnifying-glass",label:"List Magnifying Glass",filePath:"icon/ListMagnifyingGlass.svg",variantCount:1},{name:"list-numbers",label:"List Numbers",filePath:"icon/ListNumbers.svg",variantCount:1},{name:"list-plus",label:"List Plus",filePath:"icon/ListPlus.svg",variantCount:1},{name:"list-star",label:"List Star",filePath:"icon/ListStar.svg",variantCount:1},{name:"lock",label:"Lock",filePath:"icon/Lock.svg",variantCount:1},{name:"lock-key",label:"Lock Key",filePath:"icon/LockKey.svg",variantCount:1},{name:"lock-key-open",label:"Lock Key Open",filePath:"icon/LockKeyOpen.svg",variantCount:1},{name:"lock-open",label:"Lock Open",filePath:"icon/LockOpen.svg",variantCount:1},{name:"lock-simple",label:"Lock Simple",filePath:"icon/LockSimple.svg",variantCount:1},{name:"lock-simple-open",label:"Lock Simple Open",filePath:"icon/LockSimpleOpen.svg",variantCount:1},{name:"magnifying-glass",label:"Magnifying Glass",filePath:"icon/MagnifyingGlass.svg",variantCount:1},{name:"magnifying-glass-minus",label:"Magnifying Glass Minus",filePath:"icon/MagnifyingGlassMinus.svg",variantCount:1},{name:"magnifying-glass-plus",label:"Magnifying Glass Plus",filePath:"icon/MagnifyingGlassPlus.svg",variantCount:1},{name:"megaphone",label:"Megaphone",filePath:"icon/Megaphone.svg",variantCount:1},{name:"megaphone-simple",label:"Megaphone Simple",filePath:"icon/MegaphoneSimple.svg",variantCount:1},{name:"microphone",label:"Microphone",filePath:"icon/Microphone.svg",variantCount:1},{name:"navigation-arrow",label:"Navigation Arrow",filePath:"icon/NavigationArrow.svg",variantCount:1},{name:"network",label:"Network",filePath:"icon/Network.svg",variantCount:1},{name:"network-slash",label:"Network Slash",filePath:"icon/NetworkSlash.svg",variantCount:1},{name:"network-x",label:"Network X",filePath:"icon/NetworkX.svg",variantCount:1},{name:"newspaper",label:"Newspaper",filePath:"icon/Newspaper.svg",variantCount:1},{name:"newspaper-clipping",label:"Newspaper Clipping",filePath:"icon/NewspaperClipping.svg",variantCount:1},{name:"notches",label:"Notches",filePath:"icon/Notches.svg",variantCount:1},{name:"note",label:"Note",filePath:"icon/Note.svg",variantCount:1},{name:"note-blank",label:"Note Blank",filePath:"icon/NoteBlank.svg",variantCount:1},{name:"note-pencil",label:"Note Pencil",filePath:"icon/NotePencil.svg",variantCount:1},{name:"notification",label:"Notification",filePath:"icon/Notification.svg",variantCount:1},{name:"nut",label:"Nut",filePath:"icon/Nut.svg",variantCount:1},{name:"paperclip",label:"Paperclip",filePath:"icon/Paperclip.svg",variantCount:1},{name:"paperclip-horizontal",label:"Paperclip Horizontal",filePath:"icon/PaperclipHorizontal.svg",variantCount:1},{name:"password",label:"Password",filePath:"icon/Password.svg",variantCount:1},{name:"pencil-simple",label:"Pencil Simple",filePath:"icon/PencilSimple.svg",variantCount:1},{name:"pencil-simple-line",label:"Pencil Simple Line",filePath:"icon/PencilSimpleLine.svg",variantCount:1},{name:"person",label:"Person",filePath:"icon/Person.svg",variantCount:1},{name:"person-arms-spread",label:"Person Arms Spread",filePath:"icon/PersonArmsSpread.svg",variantCount:1},{name:"person-simple",label:"Person Simple",filePath:"icon/PersonSimple.svg",variantCount:1},{name:"placeholder",label:"Placeholder",filePath:"icon/Placeholder.svg",variantCount:1},{name:"plus",label:"Plus",filePath:"icon/Plus.svg",variantCount:1},{name:"plus-circle",label:"Plus Circle",filePath:"icon/PlusCircle.svg",variantCount:1},{name:"plus-square",label:"Plus Square",filePath:"icon/PlusSquare.svg",variantCount:1},{name:"prohibit",label:"Prohibit",filePath:"icon/Prohibit.svg",variantCount:1},{name:"prohibit-inset",label:"Prohibit Inset",filePath:"icon/ProhibitInset.svg",variantCount:1},{name:"pulse",label:"Pulse",filePath:"icon/Pulse.svg",variantCount:1},{name:"push-pin",label:"Push Pin",filePath:"icon/PushPin.svg",variantCount:1},{name:"push-pin-simple",label:"Push Pin Simple",filePath:"icon/PushPinSimple.svg",variantCount:1},{name:"push-pin-simple-slash",label:"Push Pin Simple Slash",filePath:"icon/PushPinSimpleSlash.svg",variantCount:1},{name:"push-pin-slash",label:"Push Pin Slash",filePath:"icon/PushPinSlash.svg",variantCount:1},{name:"puzzle-piece",label:"Puzzle Piece",filePath:"icon/PuzzlePiece.svg",variantCount:1},{name:"question",label:"Question",filePath:"icon/Question.svg",variantCount:1},{name:"question-mark",label:"Question Mark",filePath:"icon/QuestionMark.svg",variantCount:1},{name:"receipt",label:"Receipt",filePath:"icon/Receipt.svg",variantCount:1},{name:"receipt-x",label:"Receipt X",filePath:"icon/ReceiptX.svg",variantCount:1},{name:"rows-plus-bottom",label:"Rows Plus Bottom",filePath:"icon/RowsPlusBottom.svg",variantCount:1},{name:"rows-plus-top",label:"Rows Plus Top",filePath:"icon/RowsPlusTop.svg",variantCount:1},{name:"scroll",label:"Scroll",filePath:"icon/Scroll.svg",variantCount:1},{name:"seal",label:"Seal",filePath:"icon/Seal.svg",variantCount:1},{name:"seal-check",label:"Seal Check",filePath:"icon/SealCheck.svg",variantCount:1},{name:"share",label:"Share",filePath:"icon/Share.svg",variantCount:1},{name:"share-fat",label:"Share Fat",filePath:"icon/ShareFat.svg",variantCount:1},{name:"share-network",label:"Share Network",filePath:"icon/ShareNetwork.svg",variantCount:1},{name:"shield",label:"Shield",filePath:"icon/Shield.svg",variantCount:1},{name:"shield-check",label:"Shield Check",filePath:"icon/ShieldCheck.svg",variantCount:1},{name:"shield-checkered",label:"Shield Checkered",filePath:"icon/ShieldCheckered.svg",variantCount:1},{name:"shield-chevron",label:"Shield Chevron",filePath:"icon/ShieldChevron.svg",variantCount:1},{name:"shield-plus",label:"Shield Plus",filePath:"icon/ShieldPlus.svg",variantCount:1},{name:"shield-slash",label:"Shield Slash",filePath:"icon/ShieldSlash.svg",variantCount:1},{name:"shield-star",label:"Shield Star",filePath:"icon/ShieldStar.svg",variantCount:1},{name:"shield-warning",label:"Shield Warning",filePath:"icon/ShieldWarning.svg",variantCount:1},{name:"sidebar",label:"Sidebar",filePath:"icon/Sidebar.svg",variantCount:1},{name:"sidebar-simple",label:"Sidebar Simple",filePath:"icon/SidebarSimple.svg",variantCount:1},{name:"sign-in",label:"Sign In",filePath:"icon/SignIn.svg",variantCount:1},{name:"sign-out",label:"Sign Out",filePath:"icon/SignOut.svg",variantCount:1},{name:"siren",label:"Siren",filePath:"icon/Siren.svg",variantCount:1},{name:"sliders",label:"Sliders",filePath:"icon/Sliders.svg",variantCount:1},{name:"sliders-horizontal",label:"Sliders Horizontal",filePath:"icon/SlidersHorizontal.svg",variantCount:1},{name:"sort-ascending",label:"Sort Ascending",filePath:"icon/SortAscending.svg",variantCount:1},{name:"sort-descending",label:"Sort Descending",filePath:"icon/SortDescending.svg",variantCount:1},{name:"spinner",label:"Spinner",filePath:"icon/Spinner.svg",variantCount:1},{name:"spinner-gap",label:"Spinner Gap",filePath:"icon/SpinnerGap.svg",variantCount:1},{name:"split-horizontal",label:"Split Horizontal",filePath:"icon/SplitHorizontal.svg",variantCount:1},{name:"split-vertical",label:"Split Vertical",filePath:"icon/SplitVertical.svg",variantCount:1},{name:"square-half",label:"Square Half",filePath:"icon/SquareHalf.svg",variantCount:1},{name:"square-half-bottom",label:"Square Half Bottom",filePath:"icon/SquareHalfBottom.svg",variantCount:1},{name:"square-split-horizontal",label:"Square Split Horizontal",filePath:"icon/SquareSplitHorizontal.svg",variantCount:1},{name:"square-split-vertical",label:"Square Split Vertical",filePath:"icon/SquareSplitVertical.svg",variantCount:1},{name:"squares-four",label:"Squares Four",filePath:"icon/SquaresFour.svg",variantCount:1},{name:"stack",label:"Stack",filePath:"icon/Stack.svg",variantCount:1},{name:"stack-minus",label:"Stack Minus",filePath:"icon/StackMinus.svg",variantCount:1},{name:"stack-plus",label:"Stack Plus",filePath:"icon/StackPlus.svg",variantCount:1},{name:"stack-simple",label:"Stack Simple",filePath:"icon/StackSimple.svg",variantCount:1},{name:"star",label:"Star",filePath:"icon/Star.svg",variantCount:1},{name:"table",label:"Table",filePath:"icon/Table.svg",variantCount:1},{name:"tag",label:"Tag",filePath:"icon/Tag.svg",variantCount:1},{name:"tag-chevron",label:"Tag Chevron",filePath:"icon/TagChevron.svg",variantCount:1},{name:"tag-simple",label:"Tag Simple",filePath:"icon/TagSimple.svg",variantCount:1},{name:"target",label:"Target",filePath:"icon/Target.svg",variantCount:1},{name:"terminal",label:"Terminal",filePath:"icon/Terminal.svg",variantCount:1},{name:"terminal-window",label:"Terminal Window",filePath:"icon/TerminalWindow.svg",variantCount:1},{name:"text-columns",label:"Text Columns",filePath:"icon/TextColumns.svg",variantCount:1},{name:"ticket",label:"Ticket",filePath:"icon/Ticket.svg",variantCount:1},{name:"trash",label:"Trash",filePath:"icon/Trash.svg",variantCount:1},{name:"trash-simple",label:"Trash Simple",filePath:"icon/TrashSimple.svg",variantCount:1},{name:"tray",label:"Tray",filePath:"icon/Tray.svg",variantCount:1},{name:"tray-arrow-down",label:"Tray Arrow Down",filePath:"icon/TrayArrowDown.svg",variantCount:1},{name:"tray-arrow-up",label:"Tray Arrow Up",filePath:"icon/TrayArrowUp.svg",variantCount:1},{name:"tree-structure",label:"Tree Structure",filePath:"icon/TreeStructure.svg",variantCount:1},{name:"upload-simple",label:"Upload Simple",filePath:"icon/UploadSimple.svg",variantCount:1},{name:"user",label:"User",filePath:"icon/User.svg",variantCount:1},{name:"user-check",label:"User Check",filePath:"icon/UserCheck.svg",variantCount:1},{name:"user-circle",label:"User Circle",filePath:"icon/UserCircle.svg",variantCount:1},{name:"user-circle-check",label:"User Circle Check",filePath:"icon/UserCircleCheck.svg",variantCount:1},{name:"user-circle-dashed",label:"User Circle Dashed",filePath:"icon/UserCircleDashed.svg",variantCount:1},{name:"user-circle-gear",label:"User Circle Gear",filePath:"icon/UserCircleGear.svg",variantCount:1},{name:"user-circle-minus",label:"User Circle Minus",filePath:"icon/UserCircleMinus.svg",variantCount:1},{name:"user-circle-plus",label:"User Circle Plus",filePath:"icon/UserCirclePlus.svg",variantCount:1},{name:"user-focus",label:"User Focus",filePath:"icon/UserFocus.svg",variantCount:1},{name:"user-gear",label:"User Gear",filePath:"icon/UserGear.svg",variantCount:1},{name:"user-list",label:"User List",filePath:"icon/UserList.svg",variantCount:1},{name:"user-minus",label:"User Minus",filePath:"icon/UserMinus.svg",variantCount:1},{name:"user-plus",label:"User Plus",filePath:"icon/UserPlus.svg",variantCount:1},{name:"user-rectangle",label:"User Rectangle",filePath:"icon/UserRectangle.svg",variantCount:1},{name:"user-sound",label:"User Sound",filePath:"icon/UserSound.svg",variantCount:1},{name:"user-square",label:"User Square",filePath:"icon/UserSquare.svg",variantCount:1},{name:"user-switch",label:"User Switch",filePath:"icon/UserSwitch.svg",variantCount:1},{name:"users",label:"Users",filePath:"icon/Users.svg",variantCount:1},{name:"users-four",label:"Users Four",filePath:"icon/UsersFour.svg",variantCount:1},{name:"users-three",label:"Users Three",filePath:"icon/UsersThree.svg",variantCount:1},{name:"vault",label:"Vault",filePath:"icon/Vault.svg",variantCount:1},{name:"warning",label:"Warning",filePath:"icon/Warning.svg",variantCount:1},{name:"warning-circle",label:"Warning Circle",filePath:"icon/WarningCircle.svg",variantCount:1},{name:"warning-diamond",label:"Warning Diamond",filePath:"icon/WarningDiamond.svg",variantCount:1},{name:"warning-octagon",label:"Warning Octagon",filePath:"icon/WarningOctagon.svg",variantCount:1},{name:"wrench",label:"Wrench",filePath:"icon/Wrench.svg",variantCount:1},{name:"x",label:"X",filePath:"icon/X.svg",variantCount:1},{name:"xcircle",label:"XCircle",filePath:"icon/XCircle.svg",variantCount:1},{name:"xsquare",label:"XSquare",filePath:"icon/XSquare.svg",variantCount:1},{name:"calendar",label:"Calendar",filePath:"icon/calendar.svg",variantCount:1}],de=({name:e,size:n="medium",variant:o="default",className:r="",style:a={},alt:i="",...l})=>{const s=e?.replace(/\.svg$/,"").toLowerCase(),c=(()=>{if("number"==typeof n)return`${n}px`;const e={small:"12px",medium:"16px",large:"24px"};return e[n]||e.medium})(),d=(()=>{const t=ce.find(t=>t.name===s||t.name===e);return`https://cdn.jsdelivr.net/npm/squarex-ui-component-lib@latest/public/icon/${t?t.filePath.split("/").pop():`${e}.svg`}`})(),u=i||`${s} icon`,p=[se.icon,se[`variant_${o}`],r].filter(Boolean).join(" "),m={width:c,height:c,...a};return t("img",{src:d,alt:u,className:p,style:m,...l})},ue=({className:e})=>t("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:t("path",{d:"M7.00033 1.16699L8.80283 4.81866L12.8337 5.40783L9.91699 8.24866L10.6053 12.262L7.00033 10.3662L3.39533 12.262L4.08366 8.24866L1.16699 5.40783L5.19783 4.81866L7.00033 1.16699Z",stroke:"#36204C",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})}),pe=({className:n})=>e("svg",{className:n,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[t("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),t("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),me=({label:n="Button",showLeadingIcon:o=!0,showTrailingIcon:r=!1,leadingIcon:a,trailingIcon:i,leftIcon:l,rightIcon:s,variant:c,buttonStyle:d="primary",state:u="default",size:p="medium",onClick:m,disabled:f,loading:h,className:g="",children:v,...b})=>{const y=h?"loading":f?"disabled":u,w=f||h||"disabled"===y,C=ie(le.button,le[`style_${c||d||"primary"}`],le[`state_${y}`],le[`size_${"md"===p?"medium":"sm"===p?"small":p}`],g),x="Button"===n&&v?v:n;return e("button",{className:C,onClick:m,disabled:w,"aria-disabled":w,...b,children:[(()=>{if(!o)return null;const e=a||l;return e?"string"==typeof e?t(de,{name:e,className:le.icon}):e:"loading"===y?t(pe,{className:le.loaderIcon}):t(ue,{className:le.icon})})(),t("span",{className:le.label,children:x}),(()=>{if(!r)return null;const e=i||s;return e?"string"==typeof e?t(de,{name:e,className:le.icon}):e:t(ue,{className:le.icon})})()]})};var fe={button:"ButtonDanger-module_button__AOtwP",label:"ButtonDanger-module_label__b5KXy",icon:"ButtonDanger-module_icon__cFsc0",loaderIcon:"ButtonDanger-module_loaderIcon__0Grd9",spin:"ButtonDanger-module_spin__dWDkA",size_medium:"ButtonDanger-module_size_medium__rSyZy",size_small:"ButtonDanger-module_size_small__uAFGW",style_primary:"ButtonDanger-module_style_primary__iUyC1",state_default:"ButtonDanger-module_state_default__Y5C0B",state_hover:"ButtonDanger-module_state_hover__sATSe",state_focus:"ButtonDanger-module_state_focus__gFvzD",state_disabled:"ButtonDanger-module_state_disabled__UT767",state_loading:"ButtonDanger-module_state_loading__-C8Aq",style_neutral:"ButtonDanger-module_style_neutral__VZ0rO",style_subtle:"ButtonDanger-module_style_subtle__PTOK-"};const he=({label:n="Button",showLeadingIcon:o=!0,showTrailingIcon:r=!1,leadingIcon:a,trailingIcon:i,style:l="primary",state:s="default",size:c="medium",onClick:d,disabled:u,loading:p,className:m="",...f})=>{const h=p?"loading":u?"disabled":s,g=u||p||"disabled"===h,v=[fe.button,fe[`style_${l}`],fe[`state_${h}`],fe[`size_${c}`],m].filter(Boolean).join(" ");return e("button",{className:v,onClick:d,disabled:g,"aria-disabled":g,...f,children:[o?a||t(de,"loading"===h?{name:"spinner",size:16,className:fe.loaderIcon}:{name:"star",size:14,className:fe.icon}):null,t("span",{className:fe.label,children:n}),r?i||t(de,{name:"star",size:14,className:fe.icon}):null]})};var ge={avatar:"Avatar-module_avatar__iHwNB",size_large:"Avatar-module_size_large__lysYk",size_medium:"Avatar-module_size_medium__JL1rC",size_small:"Avatar-module_size_small__F3gWo",shape_circle:"Avatar-module_shape_circle__YEmYW",shape_square:"Avatar-module_shape_square__nLoa1",initialsBg:"Avatar-module_initialsBg__54pKJ",image:"Avatar-module_image__-oxFc",initials:"Avatar-module_initials__DzwqM"};const ve=({src:e,initials:n,alt:o,size:r="medium",shape:a="circle",className:i="",...l})=>{const s=[ge.avatar,ge[`size_${r}`],ge[`shape_${a}`],!e&&n?ge.initialsBg:"",i].filter(Boolean).join(" ");return t("div",{className:s,...l,children:e?t("img",{src:e,alt:o||n||"avatar",className:ge.image}):t("span",{className:ge.initials,children:n})})};var be="BackgroundGradient-module_container__h-ECQ",ye="BackgroundGradient-module_gradientBlobsImage__HSoZE";const we=({className:e="",mode:n="Light Mode BG",...o})=>t("div",{className:`${be} ${e}`,"data-mode":n,...o,children:t("img",{className:ye,src:`/bg/Mode=${n}.svg`,alt:`${n} Blobs`})});var Ce={badge:"Badge-module_badge__IxlOE",size_small:"Badge-module_size_small__blSq3",size_medium:"Badge-module_size_medium__hlh0Y",size_large:"Badge-module_size_large__EzYlM",type_active:"Badge-module_type_active__CPh-H",type_inactive:"Badge-module_type_inactive__xwWXA",type_default:"Badge-module_type_default__5N9w7"};const xe=({label:e="Badge",type:n="default",size:o="medium",className:r="",children:a,...i})=>{const l=(e=>{if(!e)return"default";const t=e.toLowerCase();return"active"===t?"active":"inactive"===t?"inactive":"default"})(n),s=(e=>{if(!e)return"medium";const t=e.toString().toLowerCase();return"small"===t||"sm"===t?"small":"medium"===t||"md"===t?"medium":"large"===t||"lg"===t?"large":"medium"})(o),c=[Ce.badge,Ce[`type_${l}`],Ce[`size_${s}`],r].filter(Boolean).join(" ");return t("span",{className:c,...i,children:a||e})};function $e(e){const t=o.useRef(e);t.current=e;return o.useCallback((...e)=>t.current?.(...e),[])}function Se(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}const Ee="test"!==process.env.NODE_ENV&&Se()?o.useLayoutEffect:o.useEffect,ke=(e,t)=>{const n=o.useRef(!0);Ee(()=>e(n.current),t),Ee(()=>(n.current=!1,()=>{n.current=!0}),[])};function Ne(e){const t=o.useRef(!1),[n,r]=o.useState(e);return o.useEffect(()=>(t.current=!1,()=>{t.current=!0}),[]),[n,function(e,n){n&&t.current||r(e)}]}function _e(e,t){const[n,o]=i(e),r=void 0!==t?t:n;return ke(e=>{e||o(t)},[t]),[r,o]}var Ie,Pe={exports:{}},Oe={};var De,Re={};
|
|
2
|
-
/**
|
|
3
|
-
* @license React
|
|
4
|
-
* react-is.development.js
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/"production"===process.env.NODE_ENV?Pe.exports=function(){if(Ie)return Oe;Ie=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case o:case a:case r:case d:case u:return e;default:switch(e=e&&e.$$typeof){case s:case l:case c:case m:case p:case i:return e;default:return f}}case n:return f}}}return e=Symbol.for("react.module.reference"),Oe.ContextConsumer=l,Oe.ContextProvider=i,Oe.Element=t,Oe.ForwardRef=c,Oe.Fragment=o,Oe.Lazy=m,Oe.Memo=p,Oe.Portal=n,Oe.Profiler=a,Oe.StrictMode=r,Oe.Suspense=d,Oe.SuspenseList=u,Oe.isAsyncMode=function(){return!1},Oe.isConcurrentMode=function(){return!1},Oe.isContextConsumer=function(e){return h(e)===l},Oe.isContextProvider=function(e){return h(e)===i},Oe.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Oe.isForwardRef=function(e){return h(e)===c},Oe.isFragment=function(e){return h(e)===o},Oe.isLazy=function(e){return h(e)===m},Oe.isMemo=function(e){return h(e)===p},Oe.isPortal=function(e){return h(e)===n},Oe.isProfiler=function(e){return h(e)===a},Oe.isStrictMode=function(e){return h(e)===r},Oe.isSuspense=function(e){return h(e)===d},Oe.isSuspenseList=function(e){return h(e)===u},Oe.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===a||t===r||t===d||t===u||t===f||"object"==typeof t&&null!==t&&(t.$$typeof===m||t.$$typeof===p||t.$$typeof===i||t.$$typeof===l||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},Oe.typeOf=h,Oe}():Pe.exports=(De||(De=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:var h=e.type;switch(h){case o:case a:case r:case d:case u:return h;default:var g=h&&h.$$typeof;switch(g){case s:case l:case c:case m:case p:case i:return g;default:return f}}case n:return f}}}e=Symbol.for("react.module.reference");var g=l,v=i,b=t,y=c,w=o,C=m,x=p,$=n,S=a,E=r,k=d,N=u,_=!1,I=!1;Re.ContextConsumer=g,Re.ContextProvider=v,Re.Element=b,Re.ForwardRef=y,Re.Fragment=w,Re.Lazy=C,Re.Memo=x,Re.Portal=$,Re.Profiler=S,Re.StrictMode=E,Re.Suspense=k,Re.SuspenseList=N,Re.isAsyncMode=function(e){return _||(_=!0),!1},Re.isConcurrentMode=function(e){return I||(I=!0),!1},Re.isContextConsumer=function(e){return h(e)===l},Re.isContextProvider=function(e){return h(e)===i},Re.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Re.isForwardRef=function(e){return h(e)===c},Re.isFragment=function(e){return h(e)===o},Re.isLazy=function(e){return h(e)===m},Re.isMemo=function(e){return h(e)===p},Re.isPortal=function(e){return h(e)===n},Re.isProfiler=function(e){return h(e)===a},Re.isStrictMode=function(e){return h(e)===r},Re.isSuspense=function(e){return h(e)===d},Re.isSuspenseList=function(e){return h(e)===u},Re.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===a||t===r||t===d||t===u||t===f||"object"==typeof t&&null!==t&&(t.$$typeof===m||t.$$typeof===p||t.$$typeof===i||t.$$typeof===l||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},Re.typeOf=h}()),Re);var Me=Pe.exports;function Be(e,t,n){const r=o.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}const Te=Symbol.for("react.element"),ze=Symbol.for("react.transitional.element"),Ae=Symbol.for("react.fragment");function Le(e){return e&&"object"==typeof e&&(e.$$typeof===Te||e.$$typeof===ze)&&e.type===Ae}const He=Number(d.split(".")[0]),Fe=(e,t)=>{"function"==typeof e?e(t):"object"==typeof e&&e&&"current"in e&&(e.current=t)},je=(...e)=>{const t=e.filter(Boolean);return t.length<=1?t[0]:t=>{e.forEach(e=>{Fe(e,t)})}},Ve=(...e)=>Be(()=>je(...e),e,(e,t)=>e.length!==t.length||e.every((e,n)=>e!==t[n])),We=e=>{if(!e)return!1;if(Ke(e)&&He>=19)return!0;const t=Me.isMemo(e)?e.type.type:e.type;return!("function"==typeof t&&!t.prototype?.render&&t.$$typeof!==Me.ForwardRef)&&!("function"==typeof e&&!e.prototype?.render&&e.$$typeof!==Me.ForwardRef)};function Ke(e){return u(e)&&!Le(e)}const qe=e=>{if(e&&Ke(e)){const t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function Ue(e,t){let n=e;for(let e=0;e<t.length;e+=1){if(null==n)return;n=n[t[e]]}return n}function Xe(e,t,n,o){if(!t.length)return n;const[r,...a]=t;let i;return i=e||"number"!=typeof r?Array.isArray(e)?[...e]:{...e}:[],o&&void 0===n&&1===a.length?delete i[r][a[0]]:i[r]=Xe(i[r],a,n,o),i}function Ge(e,t,n,o=!1){return t.length&&o&&void 0===n&&!Ue(e,t.slice(0,-1))?e:Xe(e,t,n,o)}function Ye(e){return Array.isArray(e)?[]:{}}const Ze="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function Qe(e,t={}){const{prepareArray:n}=t,o=n||(()=>[]);let r=Ye(e[0]);return e.forEach(e=>{!function t(n,a){const i=new Set(a),l=Ue(e,n),s=Array.isArray(l);if(s||"object"==typeof(c=l)&&null!==c&&Object.getPrototypeOf(c)===Object.prototype){if(!i.has(l)){i.add(l);const e=Ue(r,n);s?r=Ge(r,n,o(e,l)):e&&"object"==typeof e||(r=Ge(r,n,Ye(l))),Ze(l).forEach(e=>{Object.getOwnPropertyDescriptor(l,e).enumerable&&t([...n,e],i)})}}else r=Ge(r,n,l);var c}([])}),r}function Je(...e){return Qe(e)}let et={};const tt=[];function nt(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){tt.reduce((e,t)=>t(e??"","warning"),t)}}function ot(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){tt.reduce((e,t)=>t(e??"","note"),t)}}function rt(e,t,n){t||et[n]||(e(!1,n),et[n]=!0)}function at(e,t){rt(nt,e,t)}function it(e,t){rt(ot,e,t)}function lt(e,t){const n=Object.assign({},e);return Array.isArray(t)&&t.forEach(e=>{delete n[e]}),n}function st(e,t={}){let n=[];return r.Children.forEach(e,e=>{(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(st(e)):Le(e)&&e.props?n=n.concat(st(e.props.children,t)):n.push(e))}),n}function ct(){}at.preMessage=e=>{tt.push(e)},at.resetWarned=function(){et={}},at.noteOnce=it;const{resetWarned:dt}=at;let ut=null;let pt=ct;"production"!==process.env.NODE_ENV&&(pt=(e,t,n)=>{at(e,`[antd: ${t}] ${n}`),"test"===process.env.NODE_ENV&&(ut=null,dt())});const mt=pt,ft=o.createContext({}),ht="production"!==process.env.NODE_ENV?e=>{const{strict:t}=o.useContext(ft),n=(n,o,r)=>{if(!n)if(!1===t&&"deprecated"===o){ut||(ut={}),ut[e]=ut[e]||[],ut[e].includes(r||"")||ut[e].push(r||"")}else"production"!==process.env.NODE_ENV&&mt(n,e,r)};return n.deprecated=(e,t,o,r="")=>{n(e,"deprecated",`\`${t}\` is deprecated. Please use \`${o}\` instead.${r?` ${r}`:""}`)},n}:()=>{const e=()=>{};return e.deprecated=ct,e};var gt=mt;function vt(e){return e instanceof HTMLElement||e instanceof SVGElement}function bt(e){return e&&"object"==typeof e&&vt(e.nativeElement)?e.nativeElement:vt(e)?e:null}const yt=o.createContext(null);const wt=new Map;function Ct(e){e.forEach(e=>{const{target:t}=e;wt.get(t)?.forEach(e=>e(t))})}let xt;function $t(){return xt||(xt=new ResizeObserver(Ct)),xt}function St(e,t){const{children:n,disabled:r}=e,a=o.useRef(null),i=o.useContext(yt),l="function"==typeof n,s=l?n(a):n,c=o.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!l&&o.isValidElement(s)&&We(s),u=d?qe(s):null,p=Ve(u,a),m=()=>bt(a.current);o.useImperativeHandle(t,()=>m());const f=o.useRef(e);f.current=e;const h=o.useCallback(e=>{const{onResize:t,data:n}=f.current,{width:o,height:r}=e.getBoundingClientRect(),{offsetWidth:a,offsetHeight:l}=e,s=Math.floor(o),d=Math.floor(r);if(c.current.width!==s||c.current.height!==d||c.current.offsetWidth!==a||c.current.offsetHeight!==l){const u={width:s,height:d,offsetWidth:a,offsetHeight:l};c.current=u;const p=a===Math.round(o)?o:a,m=l===Math.round(r)?r:l,f={...u,offsetWidth:p,offsetHeight:m};i?.(f,e,n),t&&Promise.resolve().then(()=>{t(f,e)})}},[]);return o.useEffect(()=>{const e=m();var t,n;return e&&!r&&(t=e,n=h,wt.has(t)||(wt.set(t,new Set),$t().observe(t)),wt.get(t).add(n)),()=>function(e,t){wt.has(e)&&(wt.get(e).delete(t),wt.get(e).size||($t().unobserve(e),wt.delete(e)))}(e,h)},[a.current,r]),d?o.cloneElement(s,{ref:p}):s}process.env.NODE_ENV,process.env.NODE_ENV;const Et=o.forwardRef(St);function kt(){return kt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},kt.apply(this,arguments)}"production"!==process.env.NODE_ENV&&(Et.displayName="SingleObserver");function Nt(e,t){const{children:n}=e,r="function"==typeof n?[n]:st(n);return"production"!==process.env.NODE_ENV&&(r.length>1?nt(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):0===r.length&&nt(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),r.map((n,r)=>{const a=n?.key||`rc-observer-key-${r}`;return o.createElement(Et,kt({},e,{key:a,ref:0===r?t:void 0}),n)})}const _t=o.forwardRef(Nt);function It(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function Pt(e,t){if(e){if("string"==typeof e)return It(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?It(e,t):void 0}}function Ot(e){return function(e){if(Array.isArray(e))return It(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Pt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}"production"!==process.env.NODE_ENV&&(_t.displayName="ResizeObserver"),_t.Collection=function({children:e,onBatchResize:t}){const n=o.useRef(0),r=o.useRef([]),a=o.useContext(yt),i=o.useCallback((e,o,i)=>{n.current+=1;const l=n.current;r.current.push({size:e,element:o,data:i}),Promise.resolve().then(()=>{l===n.current&&(t?.(r.current),r.current=[])}),a?.(e,o,i)},[t,a]);return o.createElement(yt.Provider,{value:i},e)};let Dt=e=>+setTimeout(e,16),Rt=e=>clearTimeout(e);"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Dt=e=>window.requestAnimationFrame(e),Rt=e=>window.cancelAnimationFrame(e));let Mt=0;const Bt=new Map;function Tt(e){Bt.delete(e)}const zt=(e,t=1)=>{Mt+=1;const n=Mt;return function t(o){if(0===o)Tt(n),e();else{const e=Dt(()=>{t(o-1)});Bt.set(n,e)}}(t),n};zt.cancel=e=>{const t=Bt.get(e);return Tt(e),Rt(t)},"production"!==process.env.NODE_ENV&&(zt.ids=()=>Bt);const At="ant",Lt="anticon",Ht=["outlined","borderless","filled","underlined"],Ft=o.createContext({getPrefixCls:(e,t)=>t||(e?`${At}-${e}`:At),iconPrefixCls:Lt}),jt={};function Vt(e){const t=o.useContext(Ft),{getPrefixCls:n,direction:r,getPopupContainer:a,renderEmpty:i}=t,l=t[e];return{classNames:jt,styles:jt,...l,getPrefixCls:n,direction:r,getPopupContainer:a,renderEmpty:i}}function Wt(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}const Kt="data-rc-order",qt="data-rc-priority",Ut=new Map;function Xt({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:"rc-util-key"}function Gt(e){if(e.attachTo)return e.attachTo;return document.querySelector("head")||document.body}function Yt(e){return Array.from((Ut.get(e)||e).children).filter(e=>"STYLE"===e.tagName)}function Zt(e,t={}){if(!Se())return null;const{csp:n,prepend:o,priority:r=0}=t,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(o),i="prependQueue"===a,l=document.createElement("style");l.setAttribute(Kt,a),i&&r&&l.setAttribute(qt,`${r}`),n?.nonce&&(l.nonce=n?.nonce),l.innerHTML=e;const s=Gt(t),{firstChild:c}=s;if(o){if(i){const e=(t.styles||Yt(s)).filter(e=>{if(!["prepend","prependQueue"].includes(e.getAttribute(Kt)))return!1;const t=Number(e.getAttribute(qt)||0);return r>=t});if(e.length)return s.insertBefore(l,e[e.length-1].nextSibling),l}s.insertBefore(l,c)}else s.appendChild(l);return l}function Qt(e,t={}){let{styles:n}=t;return n||=Yt(Gt(t)),n.find(n=>n.getAttribute(Xt(t))===e)}function Jt(e,t={}){const n=Qt(e,t);if(n){Gt(t).removeChild(n)}}function en(e,t,n={}){const o=Gt(n),r=Yt(o),a={...n,styles:r};!function(e,t){const n=Ut.get(e);if(!n||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}(document,n)){const n=Zt("",t),{parentNode:o}=n;Ut.set(e,o),e.removeChild(n)}}(o,a);const i=Qt(t,a);if(i)return a.csp?.nonce&&i.nonce!==a.csp?.nonce&&(i.nonce=a.csp?.nonce),i.innerHTML!==e&&(i.innerHTML=e),i;const l=Zt(e,a);return l.setAttribute(Xt(a),t),l}function tn(e,t,n=!1){const o=new Set;return function e(t,r,a=1){const i=o.has(t);if(at(!i,"Warning: There may be circular references"),i)return!1;if(t===r)return!0;if(n&&a>1)return!1;o.add(t);const l=a+1;if(Array.isArray(t)){if(!Array.isArray(r)||t.length!==r.length)return!1;for(let n=0;n<t.length;n++)if(!e(t[n],r[n],l))return!1;return!0}if(t&&r&&"object"==typeof t&&"object"==typeof r){const n=Object.keys(t);return n.length===Object.keys(r).length&&n.every(n=>e(t[n],r[n],l))}return!1}(e,t)}function nn(e){return e.join("%")}let on=0;class rn{instanceId;constructor(e){this.instanceId=e}cache=new Map;updateTimes=new Map;extracted=new Set;get(e){return this.opGet(nn(e))}opGet(e){return this.cache.get(e)||null}update(e,t){return this.opUpdate(nn(e),t)}opUpdate(e,t){const n=t(this.cache.get(e));null===n?(this.cache.delete(e),this.updateTimes.delete(e)):(this.cache.set(e,n),this.updateTimes.set(e,on),on+=1)}}const an="data-token-hash",ln="data-css-hash",sn="__cssinjs_instance__";const cn=o.createContext({hashPriority:"low",cache:function(){const e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${ln}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(t=>{t[sn]||=e,t[sn]===e&&document.head.insertBefore(t,n)});const o={};Array.from(document.querySelectorAll(`style[${ln}]`)).forEach(t=>{const n=t.getAttribute(ln);o[n]?t[sn]===e&&t.parentNode?.removeChild(t):o[n]=!0})}return new rn(e)}(),defaultCache:!0,autoPrefix:!1});class dn{static MAX_CACHE_SIZE=20;static MAX_CACHE_OFFSET=5;cache;keys;cacheCallTimes;constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(e,t=!1){let n={map:this.cache};return e.forEach(e=>{n=n?n?.map?.get(e):void 0}),n?.value&&t&&(n.value[1]=this.cacheCallTimes++),n?.value}get(e){return this.internalGet(e,!0)?.[0]}has(e){return!!this.internalGet(e)}set(e,t){if(!this.has(e)){if(this.size()+1>dn.MAX_CACHE_SIZE+dn.MAX_CACHE_OFFSET){const[e]=this.keys.reduce((e,t)=>{const[,n]=e;return this.internalGet(t)[1]<n?[t,this.internalGet(t)[1]]:e},[this.keys[0],this.cacheCallTimes]);this.delete(e)}this.keys.push(e)}let n=this.cache;e.forEach((o,r)=>{if(r===e.length-1)n.set(o,{value:[t,this.cacheCallTimes++]});else{const e=n.get(o);e?e.map||(e.map=new Map):n.set(o,{map:new Map}),n=n.get(o).map}})}deleteByPath(e,t){const n=e.get(t[0]);if(1===t.length)return n.map?e.set(t[0],{map:n.map}):e.delete(t[0]),n.value?.[0];const o=this.deleteByPath(n.map,t.slice(1));return n.map&&0!==n.map.size||n.value||e.delete(t[0]),o}delete(e){if(this.has(e))return this.keys=this.keys.filter(t=>!function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)),this.deleteByPath(this.cache,e)}}let un=0;class pn{derivatives;id;constructor(e){this.derivatives=Array.isArray(e)?e:[e],this.id=un,0===e.length&&nt(e.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),un+=1}getDerivativeToken(e){return this.derivatives.reduce((t,n)=>n(e,t),void 0)}}const mn=new dn;function fn(e){const t=Array.isArray(e)?e:[e];return mn.has(t)||mn.set(t,new pn(t)),mn.get(t)}const hn=new WeakMap,gn={};const vn=new WeakMap;function bn(e){let t=vn.get(e)||"";return t||(Object.keys(e).forEach(n=>{const o=e[n];t+=n,t+=o instanceof pn?o.id:o&&"object"==typeof o?bn(o):o}),t=Wt(t),vn.set(e,t)),t}const yn=Se();function wn(e){return"number"==typeof e?`${e}px`:e}function Cn(e){const{hashCls:t,hashPriority:n="low"}=e||{};if(!t)return"";const o=`.${t}`;return"low"===n?`:where(${o})`:o}const xn=(e,t="")=>`--${t?`${t}-`:""}${e}`.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase(),$n=(e,t,n)=>{const{hashCls:o,hashPriority:r="low"}=n||{};return Object.keys(e).length?`${Cn({hashCls:o,hashPriority:r})}.${t}${n?.scope?`.${n.scope}`:""}{${Object.entries(e).map(([e,t])=>`${e}:${t};`).join("")}}`:""},Sn=(e,t,n)=>{const{hashCls:o,hashPriority:r="low",prefix:a,unitless:i,ignore:l,preserve:s}=n||{},c={},d={};return Object.entries(e).forEach(([e,t])=>{if(s?.[e])d[e]=t;else if(("string"==typeof t||"number"==typeof t)&&!l?.[e]){const n=xn(e,a);c[n]="number"!=typeof t||i?.[e]?String(t):`${t}px`,d[e]=`var(${n})`}}),[d,$n(c,t,{scope:n?.scope,hashCls:o,hashPriority:r})]};let En=!1;var kn="production"===process.env.NODE_ENV?function(){return!1}:function(){return En};if("production"!==process.env.NODE_ENV&&"undefined"!=typeof module&&module&&module.hot&&"undefined"!=typeof window){const e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:null;if(e&&"function"==typeof e.webpackHotUpdate){const t=e.webpackHotUpdate;e.webpackHotUpdate=(...e)=>(En=!0,setTimeout(()=>{En=!1},0),t(...e))}}const Nn=new Map;function _n(e,t,n,r,a){const{cache:i}=o.useContext(cn),l=nn([e,...t]),s=kn(),c=e=>{i.opUpdate(l,t=>{const[o=0,a]=t||[void 0,void 0];let i=a;"production"!==process.env.NODE_ENV&&a&&s&&(r?.(i,s),i=null);const l=[o,i||n()];return e?e(l):l})};o.useMemo(()=>{c()},[l]);let d=i.opGet(l);"production"===process.env.NODE_ENV||d||(c(),d=i.opGet(l));const u=d[1];return p(()=>(c(([e,t])=>[e+1,t]),Nn.has(l)||(a?.(u),Nn.set(l,!0),Promise.resolve().then(()=>{Nn.delete(l)})),()=>{i.opUpdate(l,e=>{const[t=0,n]=e||[];return 0===t-1?(r?.(n,!1),Nn.delete(l),null):[t-1,n]})}),[l]),u}const In={},Pn="production"!==process.env.NODE_ENV?"css-dev-only-do-not-override":"css",On=new Map;function Dn(e,t){On.set(e,(On.get(e)||0)-1);const n=new Set;On.forEach((e,t)=>{e<=0&&n.add(t)}),On.size-n.size>-1&&n.forEach(e=>{!function(e,t){"undefined"!=typeof document&&document.querySelectorAll(`style[${an}="${e}"]`).forEach(e=>{e[sn]===t&&e.parentNode?.removeChild(e)})}(e,t),On.delete(e)})}function Rn(e,t,n){const{cache:{instanceId:o},container:r,hashPriority:a}=m(cn),{salt:i="",override:l=In,formatToken:s,getComputedToken:c,cssVar:d}=n,u=function(e,t){let n=hn;for(let e=0;e<t.length;e+=1){const o=t[e];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(gn)||n.set(gn,e()),n.get(gn)}(()=>Object.assign({},...t),t),p=bn(u),f=bn(l),h=bn(d),g=_n("token",[i,e.id,p,f,h],()=>{const t=c?c(u,l,e):((e,t,n,o)=>{let r={...n.getDerivativeToken(e),...t};return o&&(r=o(r)),r})(u,l,e,s),n={...t},o=`${i}_${d.prefix}`,r=Wt(o),p=`${Pn}-${r}`;n._tokenKey=function(e,t){return Wt(`${t}_${bn(e)}`)}(n,o);const[m,f]=Sn(t,d.key,{prefix:d.prefix,ignore:d.ignore,unitless:d.unitless,preserve:d.preserve,hashPriority:a,hashCls:d.hashed?p:void 0});var h;return m._hashId=r,h=d.key,On.set(h,(On.get(h)||0)+1),[m,p,n,f,d.key]},([,,,,e])=>{Dn(e,o)},([,,,e,t])=>{if(!e)return;const n=en(e,Wt(`css-var-${t}`),{mark:ln,prepend:"queue",attachTo:r,priority:-999});n[sn]=o,n.setAttribute(an,t)});return g}var Mn={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Bn="-ms-",Tn="-moz-",zn="-webkit-",An="comm",Ln="rule",Hn="decl",Fn="@keyframes",jn=Math.abs,Vn=String.fromCharCode,Wn=Object.assign;function Kn(e){return e.trim()}function qn(e,t){return(e=t.exec(e))?e[0]:e}function Un(e,t,n){return e.replace(t,n)}function Xn(e,t,n){return e.indexOf(t,n)}function Gn(e,t){return 0|e.charCodeAt(t)}function Yn(e,t,n){return e.slice(t,n)}function Zn(e){return e.length}function Qn(e){return e.length}function Jn(e,t){return t.push(e),e}function eo(e,t){return e.filter(function(e){return!qn(e,t)})}var to=1,no=1,oo=0,ro=0,ao=0,io="";function lo(e,t,n,o,r,a,i,l){return{value:e,root:t,parent:n,type:o,props:r,children:a,line:to,column:no,length:i,return:"",siblings:l}}function so(e,t){return Wn(lo("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function co(e){for(;e.root;)e=so(e.root,{children:[e]});Jn(e,e.siblings)}function uo(){return ao=ro>0?Gn(io,--ro):0,no--,10===ao&&(no=1,to--),ao}function po(){return ao=ro<oo?Gn(io,ro++):0,no++,10===ao&&(no=1,to++),ao}function mo(){return Gn(io,ro)}function fo(){return ro}function ho(e,t){return Yn(io,e,t)}function go(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function vo(e){return Kn(ho(ro-1,wo(91===e?e+2:40===e?e+1:e)))}function bo(e){for(;(ao=mo())&&ao<33;)po();return go(e)>2||go(ao)>3?"":" "}function yo(e,t){for(;--t&&po()&&!(ao<48||ao>102||ao>57&&ao<65||ao>70&&ao<97););return ho(e,fo()+(t<6&&32==mo()&&32==po()))}function wo(e){for(;po();)switch(ao){case e:return ro;case 34:case 39:34!==e&&39!==e&&wo(ao);break;case 40:41===e&&wo(e);break;case 92:po()}return ro}function Co(e,t){for(;po()&&e+ao!==57&&(e+ao!==84||47!==mo()););return"/*"+ho(t,ro-1)+"*"+Vn(47===e?e:po())}function xo(e){for(;!go(mo());)po();return ho(e,ro)}function $o(e){return function(e){return io="",e}(So("",null,null,null,[""],e=function(e){return to=no=1,oo=Zn(io=e),ro=0,[]}(e),0,[0],e))}function So(e,t,n,o,r,a,i,l,s){for(var c=0,d=0,u=i,p=0,m=0,f=0,h=1,g=1,v=1,b=0,y="",w=r,C=a,x=o,$=y;g;)switch(f=b,b=po()){case 40:if(108!=f&&58==Gn($,u-1)){-1!=Xn($+=Un(vo(b),"&","&\f"),"&\f",jn(c?l[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:$+=vo(b);break;case 9:case 10:case 13:case 32:$+=bo(f);break;case 92:$+=yo(fo()-1,7);continue;case 47:switch(mo()){case 42:case 47:Jn(ko(Co(po(),fo()),t,n,s),s),5!=go(f||1)&&5!=go(mo()||1)||!Zn($)||" "===Yn($,-1,void 0)||($+=" ");break;default:$+="/"}break;case 123*h:l[c++]=Zn($)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+d:-1==v&&($=Un($,/\f/g,"")),m>0&&(Zn($)-u||0===h&&47===f)&&Jn(m>32?No($+";",o,n,u-1,s):No(Un($," ","")+";",o,n,u-2,s),s);break;case 59:$+=";";default:if(Jn(x=Eo($,t,n,c,d,r,l,y,w=[],C=[],u,a),a),123===b)if(0===d)So($,t,x,x,w,a,u,l,C);else{switch(p){case 99:if(110===Gn($,3))break;case 108:if(97===Gn($,2))break;default:d=0;case 100:case 109:case 115:}d?So(e,x,x,o&&Jn(Eo(e,x,x,0,0,r,l,y,r,w=[],u,C),C),r,C,u,l,o?w:C):So($,x,x,x,[""],C,0,l,C)}}c=d=m=0,h=v=1,y=$="",u=i;break;case 58:u=1+Zn($),m=f;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==uo())continue;switch($+=Vn(b),b*h){case 38:v=d>0?1:($+="\f",-1);break;case 44:l[c++]=(Zn($)-1)*v,v=1;break;case 64:45===mo()&&($+=vo(po())),p=mo(),d=u=Zn(y=$+=xo(fo())),b++;break;case 45:45===f&&2==Zn($)&&(h=0)}}return a}function Eo(e,t,n,o,r,a,i,l,s,c,d,u){for(var p=r-1,m=0===r?a:[""],f=Qn(m),h=0,g=0,v=0;h<o;++h)for(var b=0,y=Yn(e,p+1,p=jn(g=i[h])),w=e;b<f;++b)(w=Kn(g>0?m[b]+" "+y:Un(y,/&\f/g,m[b])))&&(s[v++]=w);return lo(e,t,n,0===r?Ln:l,s,c,d,u)}function ko(e,t,n,o){return lo(e,t,n,An,Vn(ao),Yn(e,2,-2),0,o)}function No(e,t,n,o,r){return lo(e,t,n,Hn,Yn(e,0,o),Yn(e,o+1,-1),o,r)}function _o(e,t,n){switch(function(e,t){return 45^Gn(e,0)?(((t<<2^Gn(e,0))<<2^Gn(e,1))<<2^Gn(e,2))<<2^Gn(e,3):0}(e,t)){case 5103:return zn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return zn+e+e;case 4855:return zn+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Tn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return zn+e+Tn+e+Bn+e+e;case 5936:switch(Gn(e,t+11)){case 114:return zn+e+Bn+Un(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return zn+e+Bn+Un(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return zn+e+Bn+Un(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return zn+e+Bn+e+e;case 6165:return zn+e+Bn+"flex-"+e+e;case 5187:return zn+e+Un(e,/(\w+).+(:[^]+)/,zn+"box-$1$2"+Bn+"flex-$1$2")+e;case 5443:return zn+e+Bn+"flex-item-"+Un(e,/flex-|-self/g,"")+(qn(e,/flex-|baseline/)?"":Bn+"grid-row-"+Un(e,/flex-|-self/g,""))+e;case 4675:return zn+e+Bn+"flex-line-pack"+Un(e,/align-content|flex-|-self/g,"")+e;case 5548:return zn+e+Bn+Un(e,"shrink","negative")+e;case 5292:return zn+e+Bn+Un(e,"basis","preferred-size")+e;case 6060:return zn+"box-"+Un(e,"-grow","")+zn+e+Bn+Un(e,"grow","positive")+e;case 4554:return zn+Un(e,/([^-])(transform)/g,"$1"+zn+"$2")+e;case 6187:return Un(Un(Un(e,/(zoom-|grab)/,zn+"$1"),/(image-set)/,zn+"$1"),e,"")+e;case 5495:case 3959:return Un(e,/(image-set\([^]*)/,zn+"$1$`$1");case 4968:return Un(Un(e,/(.+:)(flex-)?(.*)/,zn+"box-pack:$3"+Bn+"flex-pack:$3"),/space-between/,"justify")+zn+e+e;case 4200:if(!qn(e,/flex-|baseline/))return Bn+"grid-column-align"+Yn(e,t)+e;break;case 2592:case 3360:return Bn+Un(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,qn(e.props,/grid-\w+-end/)})?~Xn(e+(n=n[t].value),"span",0)?e:Bn+Un(e,"-start","")+e+Bn+"grid-row-span:"+(~Xn(n,"span",0)?qn(n,/\d+/):+qn(n,/\d+/)-+qn(e,/\d+/))+";":Bn+Un(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return qn(e.props,/grid-\w+-start/)})?e:Bn+Un(Un(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Un(e,/(.+)-inline(.+)/,zn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Zn(e)-1-t>6)switch(Gn(e,t+1)){case 109:if(45!==Gn(e,t+4))break;case 102:return Un(e,/(.+:)(.+)-([^]+)/,"$1"+zn+"$2-$3$1"+Tn+(108==Gn(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Xn(e,"stretch",0)?_o(Un(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Un(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,o,r,a,i,l){return Bn+n+":"+o+l+(r?Bn+n+"-span:"+(a?i:+i-+o)+l:"")+e});case 4949:if(121===Gn(e,t+6))return Un(e,":",":"+zn)+e;break;case 6444:switch(Gn(e,45===Gn(e,14)?18:11)){case 120:return Un(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+zn+(45===Gn(e,14)?"inline-":"")+"box$3$1"+zn+"$2$3$1"+Bn+"$2box$3")+e;case 100:return Un(e,":",":"+Bn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Un(e,"scroll-","scroll-snap-")+e}return e}function Io(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function Po(e,t,n,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case Hn:return e.return=e.return||e.value;case An:return"";case Fn:return e.return=e.value+"{"+Io(e.children,o)+"}";case Ln:if(!Zn(e.value=e.props.join(",")))return""}return Zn(n=Io(e.children,o))?e.return=e.value+"{"+n+"}":""}function Oo(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case Hn:return void(e.return=_o(e.value,e.length,n));case Fn:return Io([so(e,{value:Un(e.value,"@","@"+zn)})],o);case Ln:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(qn(t,o=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":co(so(e,{props:[Un(t,/:(read-\w+)/,":-moz-$1")]})),co(so(e,{props:[t]})),Wn(e,{props:eo(n,o)});break;case"::placeholder":co(so(e,{props:[Un(t,/:(plac\w+)/,":"+zn+"input-$1")]})),co(so(e,{props:[Un(t,/:(plac\w+)/,":-moz-$1")]})),co(so(e,{props:[Un(t,/:(plac\w+)/,Bn+"input-$1")]})),co(so(e,{props:[t]})),Wn(e,{props:eo(n,o)})}return""})}}function Do(e,t){const{path:n,parentSelectors:o}=t;at(!1,`[Ant Design CSS-in-JS] ${n?`Error in ${n}: `:""}${e}${o.length?` Selector: ${o.join(" | ")}`:""}`)}const Ro=(e,t,n)=>{if("content"===e){const e=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;"string"==typeof t&&(-1!==["normal","none","initial","inherit","unset"].indexOf(t)||e.test(t)||t.startsWith("var(")||t.charAt(0)===t.charAt(t.length-1)&&('"'===t.charAt(0)||"'"===t.charAt(0)))||Do(`You seem to be using a value for 'content' without quotes, try replacing it with \`content: '"${t}"'\`.`,n)}},Mo=(e,t,n)=>{"animation"===e&&n.hashId&&"none"!==t&&Do(`You seem to be using hashed animation '${t}', in which case 'animationName' with Keyframe as value is recommended.`,n)},Bo="data-ant-cssinjs-cache-path",To="_FILE_STYLE__";let zo,Ao=!0;function Lo(e){return function(){if(!zo&&(zo={},Se())){const e=document.createElement("div");e.className=Bo,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);let t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(e=>{const[t,n]=e.split(":");zo[t]=n});const n=document.querySelector(`style[${Bo}]`);n&&(Ao=!1,n.parentNode?.removeChild(n)),document.body.removeChild(e)}}(),!!zo[e]}const Ho="_skip_check_",Fo="_multi_value_";function jo(e,t){const n=Io($o(e),t?function(e){var t=Qn(e);return function(n,o,r,a){for(var i="",l=0;l<t;l++)i+=e[l](n,o,r,a)||"";return i}}([Oo,Po]):Po);return n.replace(/\{%%%\:[^;];}/g,";")}function Vo(e,t,n="high"){if(!t)return e;const o=Cn({hashCls:t,hashPriority:n});return e.split(",").map(e=>{const t=e.trim().split(/\s+/);let n=t[0]||"";const r=n.match(/^\w+/)?.[0]||"";return n=`${r}${o}${n.slice(r.length)}`,[n,...t.slice(1)].join(" ")}).join(",")}const Wo=(e,t={},{root:n,injectHash:o,parentSelectors:r}={root:!0,parentSelectors:[]})=>{const{hashId:a,layer:i,path:l,hashPriority:s,transformers:c=[],linters:d=[]}=t;let u="",p={};function m(e){const n=e.getName(a);if(!p[n]){const[o]=Wo(e.style,t,{root:!1,parentSelectors:r});p[n]=`@keyframes ${e.getName(a)}${o}`}}const f=function e(t,n=[]){return t.forEach(t=>{Array.isArray(t)?e(t,n):t&&n.push(t)}),n}(Array.isArray(e)?e:[e]);return f.forEach(e=>{const i="string"!=typeof e||n?e:{};if("string"==typeof i)u+=`${i}\n`;else if(i._keyframe)m(i);else{const e=c.reduce((e,t)=>t?.visit?.(e)||e,i);Object.keys(e).forEach(i=>{const c=e[i];if("object"!=typeof c||!c||"animationName"===i&&c._keyframe||function(e){return"object"==typeof e&&e&&(Ho in e||Fo in e)}(c)){function f(e,t){"production"===process.env.NODE_ENV||"object"==typeof c&&c?.[Ho]||[Ro,Mo,...d].forEach(n=>n(e,t,{path:l,hashId:a,parentSelectors:r}));const n=e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`);let o=t;Mn[e]||"number"!=typeof o||0===o||(o=`${o}px`),"animationName"===e&&t?._keyframe&&(m(t),o=t.getName(a)),u+=`${n}:${o};`}const h=c?.value??c;"object"==typeof c&&c?.[Fo]&&Array.isArray(h)?h.forEach(e=>{f(i,e)}):f(i,h)}else{let g=!1,v=i.trim(),b=!1;(n||o)&&a?v.startsWith("@")?g=!0:v=Vo("&"===v?"":i,a,s):!n||a||"&"!==v&&""!==v||(v="",b=!0);const[y,w]=Wo(c,t,{root:b,injectHash:g,parentSelectors:[...r,v]});p={...p,...w},u+=`${v}${y}`}})}}),n?i&&(u&&(u=`@layer ${i.name} {${u}}`),i.dependencies&&(p[`@layer ${i.name}`]=i.dependencies.map(e=>`@layer ${e}, ${i.name};`).join("\n"))):u=`{${u}}`,[u,p]};function Ko(e,t){return Wt(`${e.join("%")}${t}`)}function qo(e,t){const{path:n,hashId:r,layer:a,nonce:i,clientOnly:l,order:s=0}=e,{mock:c,hashPriority:d,container:u,transformers:p,linters:m,cache:f,layer:h,autoPrefix:g}=o.useContext(cn),v=[r||""];h&&v.push("layer"),v.push(...n);let b=yn;"production"!==process.env.NODE_ENV&&void 0!==c&&(b="client"===c),_n("style",v,()=>{const e=v.join("|");if(Lo(e)){const[t,n]=function(e){const t=zo[e];let n=null;if(t&&Se())if(Ao)n=To;else{const t=document.querySelector(`style[${ln}="${zo[e]}"]`);t?n=t.innerHTML:delete zo[e]}return[n,t]}(e);if(t)return[t,n,{},l,s]}const o=t(),[i,c]=Wo(o,{hashId:r,hashPriority:d,layer:h?a:void 0,path:n.join("-"),transformers:p,linters:m}),u=jo(i,g||!1);return[u,Ko(v,u),c,l,s]},(e,t)=>{const[,n]=e;t&&yn&&Jt(n,{mark:ln,attachTo:u})},e=>{const[t,n,o,,r]=e;if(b&&t!==To){const e={mark:ln,prepend:!h&&"queue",attachTo:u,priority:r},a="function"==typeof i?i():i;a&&(e.csp={nonce:a});const l=[],s=[];Object.keys(o).forEach(e=>{e.startsWith("@layer")?l.push(e):s.push(e)}),l.forEach(t=>{en(jo(o[t],g||!1),`_layer-${t}`,{...e,prepend:!0})});const c=en(t,n,e);c[sn]=f.instanceId,"production"!==process.env.NODE_ENV&&c.setAttribute("data-cache-path",v.join("|")),s.forEach(t=>{en(jo(o[t],g||!1),`_effect-${t}`,e)})}})}class Uo{name;style;constructor(e,t){this.name=e,this.style=t}getName(e=""){return e?`${e}-${this.name}`:this.name}_keyframe=!0}function Xo(e){return e.notSplit=!0,e}function Go(e){return Go="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Go(e)}function Yo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=a.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw r}}return l}}(e,t)||Pt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zo(e){var t=function(e,t){if("object"!=Go(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Go(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Go(t)?t:t+""}function Qo(e,t,n){return(t=Zo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function er(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jo(Object(n),!0).forEach(function(t){Qo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nr(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Zo(o.key),o)}}function or(e,t,n){return t&&nr(e.prototype,t),n&&nr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function rr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ar(e,t){return ar=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ar(e,t)}function ir(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ar(e,t)}function lr(e){return lr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},lr(e)}function sr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(sr=function(){return!!e})()}function cr(e){var t=sr();return function(){var n,o=lr(e);if(t){var r=lr(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"==Go(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return rr(e)}(this,n)}}Xo(["borderTop","borderBottom"]),Xo(["borderTop"]),Xo(["borderBottom"]),Xo(["borderLeft","borderRight"]),Xo(["borderLeft"]),Xo(["borderRight"]);var dr=or(function e(){tr(this,e)}),ur="CALC_UNIT",pr=new RegExp(ur,"g");function mr(e){return"number"==typeof e?"".concat(e).concat(ur):e}var fr=function(){ir(t,dr);var e=cr(t);function t(n,o){var r;tr(this,t),Qo(rr(r=e.call(this)),"result",""),Qo(rr(r),"unitlessCssVar",void 0),Qo(rr(r),"lowPriority",void 0);var a=Go(n);return r.unitlessCssVar=o,n instanceof t?r.result="(".concat(n.result,")"):"number"===a?r.result=mr(n):"string"===a&&(r.result=n),r}return or(t,[{key:"add",value:function(e){return e instanceof t?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(mr(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof t?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(mr(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,o=!0;return"boolean"==typeof n?o=n:Array.from(this.unitlessCssVar).some(function(e){return t.result.includes(e)})&&(o=!1),this.result=this.result.replace(pr,o?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),t}(),hr=function(){ir(t,dr);var e=cr(t);function t(n){var o;return tr(this,t),Qo(rr(o=e.call(this)),"result",0),n instanceof t?o.result=n.result:"number"==typeof n&&(o.result=n),o}return or(t,[{key:"add",value:function(e){return e instanceof t?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof t?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof t?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof t?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),t}(),gr=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function vr(e,t,n,o){var r=er({},t[e]);null!=o&&o.deprecatedTokens&&o.deprecatedTokens.forEach(function(t){var n,o=Yo(t,2),a=o[0],i=o[1];("production"!==process.env.NODE_ENV&&at(!(null!=r&&r[a]),"Component Token `".concat(String(a),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(i),"` instead.")),null!=r&&r[a]||null!=r&&r[i])&&(null!==(n=r[i])&&void 0!==n||(r[i]=null==r?void 0:r[a]))});var a=er(er({},n),r);return Object.keys(a).forEach(function(e){a[e]===t[e]&&delete a[e]}),a}var br="production"!==process.env.NODE_ENV||"undefined"!=typeof CSSINJS_STATISTIC,yr=!0;function wr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!br)return Object.assign.apply(Object,[{}].concat(t));yr=!1;var o={};return t.forEach(function(e){"object"===Go(e)&&Object.keys(e).forEach(function(t){Object.defineProperty(o,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})})}),yr=!0,o}var Cr={};function xr(){}function $r(e,t,n){var o;return"function"==typeof n?n(wr(t,null!==(o=t[e])&&void 0!==o?o:{})):null!=n?n:{}}var Sr=function(){function e(){tr(this,e),Qo(this,"map",new Map),Qo(this,"objectIDMap",new WeakMap),Qo(this,"nextID",0),Qo(this,"lastAccessBeat",new Map),Qo(this,"accessBeat",0)}return or(e,[{key:"set",value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(e){var t=this;return e.map(function(e){return e&&"object"===Go(e)?"obj_".concat(t.getObjectID(e)):"".concat(Go(e),"_").concat(e)}).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach(function(n,o){t-n>6e5&&(e.map.delete(o),e.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),Er=new Sr;var kr=function(){return{}};const Nr=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function _r(e){return(e+8)/e}const Ir={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"};var Pr={...Ir,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0},Or={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"};const Dr=Math.round;function Rr(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],o=n.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)o[e]=t(o[e]||0,n[e]||"",e);return n[3]?o[3]=n[3].includes("%")?o[3]/100:o[3]:o[3]=1,o}const Mr=(e,t,n)=>0===n?e:e/100;function Br(e,t){const n=t||255;return e>n?n:e<0?0:e}class Tr{isValid=!0;r=0;g=0;b=0;a=1;_h;_s;_l;_v;_max;_min;_brightness;constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(e)if("string"==typeof e){const n=e.trim();function o(e){return n.startsWith(e)}if(/^#?[A-F\d]{3,8}$/i.test(n))this.fromHexString(n);else if(o("rgb"))this.fromRgbString(n);else if(o("hsl"))this.fromHslString(n);else if(o("hsv")||o("hsb"))this.fromHsvString(n);else{const r=Or[n.toLowerCase()];r&&this.fromHexString(parseInt(r,36).toString(16).padStart(6,"0"))}}else if(e instanceof Tr)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=Br(e.r),this.g=Br(e.g),this.b=Br(e.b),this.a="number"==typeof e.a?Br(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}else;}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:Dr(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let o=this.getLightness()-e/100;return o<0&&(o=0),this._c({h:t,s:n,l:o,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let o=this.getLightness()+e/100;return o>1&&(o=1),this._c({h:t,s:n,l:o,a:this.a})}mix(e,t=50){const n=this._c(e),o=t/100,r=e=>(n[e]-this[e])*o+this[e],a={r:Dr(r("r")),g:Dr(r("g")),b:Dr(r("b")),a:Dr(100*r("a"))/100};return this._c(a)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),o=e=>Dr((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:o("r"),g:o("g"),b:o("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const o=(this.b||0).toString(16);if(e+=2===o.length?o:"0"+o,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=Dr(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=Dr(100*this.getSaturation()),n=Dr(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const o=this.clone();return o[e]=Br(t,n),o}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:o}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof o?o:1,t<=0){const e=Dr(255*n);this.r=e,this.g=e,this.b=e}let r=0,a=0,i=0;const l=e/60,s=(1-Math.abs(2*n-1))*t,c=s*(1-Math.abs(l%2-1));l>=0&&l<1?(r=s,a=c):l>=1&&l<2?(r=c,a=s):l>=2&&l<3?(a=s,i=c):l>=3&&l<4?(a=c,i=s):l>=4&&l<5?(r=c,i=s):l>=5&&l<6&&(r=s,i=c);const d=n-s/2;this.r=Dr(255*(r+d)),this.g=Dr(255*(a+d)),this.b=Dr(255*(i+d))}fromHsv({h:e,s:t,v:n,a:o}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof o?o:1;const r=Dr(255*n);if(this.r=r,this.g=r,this.b=r,t<=0)return;const a=e/60,i=Math.floor(a),l=a-i,s=Dr(n*(1-t)*255),c=Dr(n*(1-t*l)*255),d=Dr(n*(1-t*(1-l))*255);switch(i){case 0:this.g=d,this.b=s;break;case 1:this.r=c,this.b=s;break;case 2:this.r=s,this.b=d;break;case 3:this.r=s,this.g=c;break;case 4:this.r=d,this.g=s;break;default:this.g=s,this.b=c}}fromHsvString(e){const t=Rr(e,Mr);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=Rr(e,Mr);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=Rr(e,(e,t)=>t.includes("%")?Dr(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}const zr=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function Ar(e,t,n){let o;return o=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t,o<0?o+=360:o>=360&&(o-=360),o}function Lr(e,t,n){if(0===e.h&&0===e.s)return e.s;let o;return o=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t,o>1&&(o=1),n&&5===t&&o>.1&&(o=.1),o<.06&&(o=.06),Math.round(100*o)/100}function Hr(e,t,n){let o;return o=n?e.v+.05*t:e.v-.15*t,o=Math.max(0,Math.min(1,o)),Math.round(100*o)/100}function Fr(e,t={}){const n=[],o=new Tr(e),r=o.toHsv();for(let e=5;e>0;e-=1){const t=new Tr({h:Ar(r,e,!0),s:Lr(r,e,!0),v:Hr(r,e,!0)});n.push(t)}n.push(o);for(let e=1;e<=4;e+=1){const t=new Tr({h:Ar(r,e),s:Lr(r,e),v:Hr(r,e)});n.push(t)}return"dark"===t.theme?zr.map(({index:e,amount:o})=>new Tr(t.backgroundColor||"#141414").mix(n[e],o).toHexString()):n.map(e=>e.toHexString())}const jr={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Vr=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Vr.primary=Vr[5];const Wr=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Wr.primary=Wr[5];const Kr=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Kr.primary=Kr[5];const qr=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];qr.primary=qr[5];const Ur=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Ur.primary=Ur[5];const Xr=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Xr.primary=Xr[5];const Gr=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Gr.primary=Gr[5];const Yr=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Yr.primary=Yr[5];const Zr=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Zr.primary=Zr[5];const Qr=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Qr.primary=Qr[5];const Jr=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Jr.primary=Jr[5];const ea=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];ea.primary=ea[5];const ta=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];ta.primary=ta[5];const na={red:Vr,volcano:Wr,orange:Kr,gold:qr,yellow:Ur,lime:Xr,green:Gr,cyan:Yr,blue:Zr,geekblue:Qr,purple:Jr,magenta:ea,grey:ta};function oa(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:o,colorWarning:r,colorError:a,colorInfo:i,colorPrimary:l,colorBgBase:s,colorTextBase:c}=e,d=t(l),u=t(o),p=t(r),m=t(a),f=t(i),h=n(s,c),g=t(e.colorLink||e.colorInfo),v=new Tr(m[1]).mix(new Tr(m[3]),50).toHexString();return{...h,colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:u[1],colorSuccessBgHover:u[2],colorSuccessBorder:u[3],colorSuccessBorderHover:u[4],colorSuccessHover:u[4],colorSuccess:u[6],colorSuccessActive:u[7],colorSuccessTextHover:u[8],colorSuccessText:u[9],colorSuccessTextActive:u[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:v,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:f[1],colorInfoBgHover:f[2],colorInfoBorder:f[3],colorInfoBorderHover:f[4],colorInfoHover:f[4],colorInfo:f[6],colorInfoActive:f[7],colorInfoTextHover:f[8],colorInfoText:f[9],colorInfoTextActive:f[10],colorLinkHover:g[4],colorLink:g[6],colorLinkActive:g[7],colorBgMask:new Tr("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}var ra=e=>{let t=e,n=e,o=e,r=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?o=1:e>=6&&(o=2),e>4&&e<8?r=4:e>=8&&(r=6),{borderRadius:e,borderRadiusXS:o,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:r}};function aa(e){const{motionUnit:t,motionBase:n,borderRadius:o,lineWidth:r}=e;return{motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:r+1,...ra(o)}}var ia=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};var la=e=>{const t=function(e){const t=Array.from({length:10}).map((t,n)=>{const o=n-1,r=e*Math.E**(o/5),a=n>1?Math.floor(r):Math.ceil(r);return 2*Math.floor(a/2)});return t[1]=e,t.map(e=>({size:e,lineHeight:_r(e)}))}(e),n=t.map(e=>e.size),o=t.map(e=>e.lineHeight),r=n[1],a=n[0],i=n[2],l=o[1],s=o[0],c=o[2];return{fontSizeSM:a,fontSize:r,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:c,lineHeightSM:s,fontHeight:Math.round(l*r),fontHeightLG:Math.round(c*i),fontHeightSM:Math.round(s*a),lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}};function sa(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const ca=(e,t)=>new Tr(e).setA(t).toRgbString(),da=(e,t)=>new Tr(e).darken(t).toHexString(),ua=e=>{const t=Fr(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},pa=(e,t)=>{const n=e||"#fff",o=t||"#000";return{colorBgBase:n,colorTextBase:o,colorText:ca(o,.88),colorTextSecondary:ca(o,.65),colorTextTertiary:ca(o,.45),colorTextQuaternary:ca(o,.25),colorFill:ca(o,.15),colorFillSecondary:ca(o,.06),colorFillTertiary:ca(o,.04),colorFillQuaternary:ca(o,.02),colorBgSolid:ca(o,1),colorBgSolidHover:ca(o,.75),colorBgSolidActive:ca(o,.95),colorBgLayout:da(n,4),colorBgContainer:da(n,0),colorBgElevated:da(n,0),colorBgSpotlight:ca(o,.85),colorBgBlur:"transparent",colorBorder:da(n,15),colorBorderDisabled:da(n,15),colorBorderSecondary:da(n,6)}};const ma=fn(function(e){jr.pink=jr.magenta,na.pink=na.magenta;const t=Object.keys(Ir).map(t=>{const n=e[t]===jr[t]?na[t]:Fr(e[t]);return Array.from({length:10},()=>1).reduce((e,o,r)=>(e[`${t}-${r+1}`]=n[r],e[`${t}${r+1}`]=n[r],e),{})}).reduce((e,t)=>e={...e,...t},{});return{...e,...t,...oa(e,{generateColorPalettes:ua,generateNeutralColorPalettes:pa}),...la(e.fontSize),...sa(e),...ia(e),...aa(e)}});var fa=ma;const ha={token:Pr,override:{override:Pr},hashed:!0},ga=r.createContext(ha);function va(e){return e>=0&&e<=255}function ba(e,t){const{r:n,g:o,b:r,a:a}=new Tr(e).toRgb();if(a<1)return e;const{r:i,g:l,b:s}=new Tr(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-i*(1-e))/e),a=Math.round((o-l*(1-e))/e),c=Math.round((r-s*(1-e))/e);if(va(t)&&va(a)&&va(c))return new Tr({r:t,g:a,b:c,a:Math.round(100*e)/100}).toRgbString()}return new Tr({r:n,g:o,b:r,a:1}).toRgbString()}const ya={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},wa={motionBase:!0,motionUnit:!0},Ca={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},xa=(e,t,n)=>{const o=n.getDerivativeToken(e),{override:r,...a}=t;let i={...o,override:r};return i=function(e){const{override:t,...n}=e,o={...t};Object.keys(Pr).forEach(e=>{delete o[e]});const r={...n,...o},a=1200,i=1600;if(!1===r.motion){const e="0s";r.motionDurationFast=e,r.motionDurationMid=e,r.motionDurationSlow=e}return{...r,colorFillContent:r.colorFillSecondary,colorFillContentHover:r.colorFill,colorFillAlter:r.colorFillQuaternary,colorBgContainerDisabled:r.colorFillTertiary,colorBorderBg:r.colorBgContainer,colorSplit:ba(r.colorBorderSecondary,r.colorBgContainer),colorTextPlaceholder:r.colorTextQuaternary,colorTextDisabled:r.colorTextQuaternary,colorTextHeading:r.colorText,colorTextLabel:r.colorTextSecondary,colorTextDescription:r.colorTextTertiary,colorTextLightSolid:r.colorWhite,colorHighlight:r.colorError,colorBgTextHover:r.colorFillSecondary,colorBgTextActive:r.colorFill,colorIcon:r.colorTextTertiary,colorIconHover:r.colorText,colorErrorOutline:ba(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:ba(r.colorWarningBg,r.colorBgContainer),fontSizeIcon:r.fontSizeSM,lineWidthFocus:3*r.lineWidth,lineWidth:r.lineWidth,controlOutlineWidth:2*r.lineWidth,controlInteractiveSize:r.controlHeight/2,controlItemBgHover:r.colorFillTertiary,controlItemBgActive:r.colorPrimaryBg,controlItemBgActiveHover:r.colorPrimaryBgHover,controlItemBgActiveDisabled:r.colorFill,controlTmpOutline:r.colorFillQuaternary,controlOutline:ba(r.colorPrimaryBg,r.colorBgContainer),lineType:r.lineType,borderRadius:r.borderRadius,borderRadiusXS:r.borderRadiusXS,borderRadiusSM:r.borderRadiusSM,borderRadiusLG:r.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:r.sizeXXS,paddingXS:r.sizeXS,paddingSM:r.sizeSM,padding:r.size,paddingMD:r.sizeMD,paddingLG:r.sizeLG,paddingXL:r.sizeXL,paddingContentHorizontalLG:r.sizeLG,paddingContentVerticalLG:r.sizeMS,paddingContentHorizontal:r.sizeMS,paddingContentVertical:r.sizeSM,paddingContentHorizontalSM:r.size,paddingContentVerticalSM:r.sizeXS,marginXXS:r.sizeXXS,marginXS:r.sizeXS,marginSM:r.sizeSM,margin:r.size,marginMD:r.sizeMD,marginLG:r.sizeLG,marginXL:r.sizeXL,marginXXL:r.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:a,screenXLMin:a,screenXLMax:1599,screenXXL:i,screenXXLMin:i,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new Tr("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new Tr("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new Tr("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)",...o}}(i),a&&Object.entries(a).forEach(([e,t])=>{const{theme:n,...o}=t;let r=o;n&&(r=xa({...i,...o},{override:o},n)),i[e]=r}),i};function $a(){const{token:e,hashed:t,theme:n,override:o,cssVar:a,zeroRuntime:i}=r.useContext(ga),l={prefix:a?.prefix??"ant",key:a?.key??"css-var-root"},s=`6.1.4-${t||""}`,c=n||fa,[d,u,p]=Rn(c,[Pr,e],{salt:s,override:o,getComputedToken:xa,cssVar:{...l,unitless:ya,ignore:wa,preserve:Ca}});return[c,p,t?u:"",d,l,!!i]}const Sa={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Ea=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),ka=(e,t)=>({outline:`${wn(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Na=(e,t)=>({"&:focus-visible":ka(e,t)}),_a=e=>({[`.${e}`]:{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"},[`.${e} .${e}-icon`]:{display:"block"}}}),Ia=e=>({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none",...Na(e),"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:Pa,genComponentStyleHook:Oa,genSubStyleComponent:Da}=function(e){var t=e.useCSP,n=void 0===t?kr:t,o=e.useToken,a=e.usePrefix,i=e.getResetStyles,l=e.getCommonStyle,s=e.getCompUnitless;function d(t,s,d){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},p=Array.isArray(t)?t:[t,t],m=Yo(p,1)[0],f=p.join("-"),h=e.layer||{name:"antd"};return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,p=o(),g=p.theme,v=p.realToken,b=p.hashId,y=p.token,w=p.cssVar,C=p.zeroRuntime;if(c(function(){return C},[]))return b;var x,$,S=a(),E=S.rootPrefixCls,k=S.iconPrefixCls,N=n(),_="css",I=(x=function(){var e=new Set;return Object.keys(u.unitless||{}).forEach(function(t){e.add(xn(t,w.prefix)),e.add(xn(t,gr(m,w.prefix)))}),function(e,t){var n="css"===e?fr:hr;return function(e){return new n(e,t)}}(_,e)},$=[_,m,null==w?void 0:w.prefix],r.useMemo(function(){var e=Er.get($);if(e)return e;var t=x();return Er.set($,t),t},$)),P=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"max(".concat(t.map(function(e){return wn(e)}).join(","),")")},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"min(".concat(t.map(function(e){return wn(e)}).join(","),")")}}}(_),O=P.max,D=P.min,R={theme:g,token:y,hashId:b,nonce:function(){return N.nonce},clientOnly:u.clientOnly,layer:h,order:u.order||-999};return"function"==typeof i&&qo(er(er({},R),{},{clientOnly:!1,path:["Shared",E]}),function(){return i(y,{prefix:{rootPrefixCls:E,iconPrefixCls:k},csp:N})}),qo(er(er({},R),{},{path:[f,e,k]}),function(){if(!1===u.injectStyle)return[];var n=function(e){var t,n=e,o=xr;return br&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){var o;return yr&&(null===(o=t)||void 0===o||o.add(n)),e[n]}}),o=function(e,n){var o;Cr[e]={global:Array.from(t),component:er(er({},null===(o=Cr[e])||void 0===o?void 0:o.component),n)}}),{token:n,keys:t,flush:o}}(y),o=n.token,r=n.flush,a=$r(m,v,d),i=".".concat(e),c=vr(m,v,a,{deprecatedTokens:u.deprecatedTokens});a&&"object"===Go(a)&&Object.keys(a).forEach(function(e){a[e]="var(".concat(xn(e,gr(m,w.prefix)),")")});var p=wr(o,{componentCls:i,prefixCls:e,iconCls:".".concat(k),antCls:".".concat(E),calc:I,max:O,min:D},a),f=s(p,{hashId:b,prefixCls:e,rootPrefixCls:E,iconPrefixCls:k});r(m,c);var h="function"==typeof l?l(p,e,t,u.resetFont):null;return[!1===u.resetStyle?null:h,f]}),b}}return{genStyleHooks:function(e,t,n,r){var a=Array.isArray(e)?e[0]:e;function i(e){return"".concat(String(a)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var l=(null==r?void 0:r.unitless)||{},c=er(er({},"function"==typeof s?s(e):{}),{},Qo({},i("zIndexPopup"),!0));Object.keys(l).forEach(function(e){c[i(e)]=l[e]});var u=er(er({},r),{},{unitless:c,prefixToken:i}),p=d(e,t,n,u),f=function(e,t,n){var r=n.unitless,a=n.prefixToken,i=n.ignore;return function(l){var s=o(),c=s.cssVar,d=s.realToken;return((e,t)=>{const{key:n,prefix:o,unitless:r,ignore:a,token:i,hashId:l,scope:s=""}=e,{cache:{instanceId:c},container:d,hashPriority:u}=m(cn),{_tokenKey:p}=i,f=[...e.path,n,s,p],h=_n("cssVar",f,()=>{const e=t(),[i,c]=Sn(e,n,{prefix:o,unitless:r,ignore:a,scope:s,hashPriority:u,hashCls:l});return[i,c,Ko(f,c),n]},([,,e])=>{yn&&Jt(e,{mark:ln,attachTo:d})},([,e,t])=>{if(!e)return;const o=en(e,t,{mark:ln,prepend:"queue",attachTo:d,priority:-999});o[sn]=c,o.setAttribute(an,n)})})({path:[e],prefix:c.prefix,key:c.key,unitless:r,ignore:i,token:d,scope:l},function(){var o=$r(e,d,t),r=vr(e,d,o,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return o&&Object.keys(o).forEach(function(e){r[a(e)]=r[e],delete r[e]}),r}),null==c?void 0:c.key}}(a,n,u);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return[p(e,t),f(t)]}},genSubStyleComponent:function(e,t,n){var o=d(e,t,n,er({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})),r=function(e){var t=e.prefixCls,n=e.rootCls;return o(t,void 0===n?t:n),null};return"production"!==process.env.NODE_ENV&&(r.displayName="SubStyle_".concat(String(Array.isArray(e)?e.join("."):e))),r},genComponentStyleHook:d}}({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=m(Ft);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,o,r,a]=$a();return{theme:e,realToken:t,hashId:n,token:o,cssVar:r,zeroRuntime:a}},useCSP:()=>{const{csp:e}=m(Ft);return e??{}},getResetStyles:(e,t)=>{const n=(e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}))(e);return[n,{"&":n},_a(t?.prefix.iconPrefixCls??Lt)]},getCommonStyle:(e,t,n,o)=>{const r=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:r,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return!1!==o&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:{...l,...i,[r]:i}}},getCompUnitless:()=>ya});function Ra(e,t){return Nr.reduce((n,o)=>{const r=e[`${o}1`],a=e[`${o}3`],i=e[`${o}6`],l=e[`${o}7`];return{...n,...t(o,{lightColor:r,lightBorderColor:a,darkColor:i,textColor:l})}},{})}var Ma=(e,t)=>{const[n,o]=$a();return qo({theme:n,token:o,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>_a(e))};var Ba=f({});function Ta(e){return e?.getRootNode?.()}function za(e){return function(e){return Ta(e)instanceof ShadowRoot}(e)?Ta(e):null}function Aa(e){return"object"==typeof e&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"==typeof e.icon||"function"==typeof e.icon)}function La(e={}){return Object.keys(e).reduce((t,n)=>{const o=e[n];if("class"===n)t.className=o,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,(e,t)=>t.toUpperCase()))]=o;var r;return t},{})}function Ha(e,t,n){return n?r.createElement(e.tag,{key:t,...La(e.attrs),...n},(e.children||[]).map((n,o)=>Ha(n,`${t}-${e.tag}-${o}`))):r.createElement(e.tag,{key:t,...La(e.attrs)},(e.children||[]).map((n,o)=>Ha(n,`${t}-${e.tag}-${o}`)))}function Fa(e){return Fr(e)[0]}function ja(e){return e?Array.isArray(e)?e:[e]:[]}const Va={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};const Wa=e=>{const{icon:t,className:n,onClick:r,style:a,primaryColor:i,secondaryColor:s,...c}=e,d=o.useRef(null);let u=Va;if(i&&(u={primaryColor:i,secondaryColor:s||Fa(i)}),(e=>{const{csp:t,prefixCls:n,layer:o}=m(Ba);let r="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n vertical-align: inherit;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";n&&(r=r.replace(/anticon/g,n)),o&&(r=`@layer ${o} {\n${r}\n}`),l(()=>{const n=za(e.current);en(r,"@ant-design-icons",{prepend:!o,csp:t,attachTo:n})},[])})(d),at(Aa(t),`[@ant-design/icons] ${`icon should be icon definiton, but got ${t}`}`),!Aa(t))return null;let p=t;return p&&"function"==typeof p.icon&&(p={...p,icon:p.icon(u.primaryColor,u.secondaryColor)}),Ha(p.icon,`svg-${p.name}`,{className:n,onClick:r,style:a,"data-icon":p.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...c,ref:d})};Wa.displayName="IconReact",Wa.getTwoToneColors=function(){return{...Va}},Wa.setTwoToneColors=function({primaryColor:e,secondaryColor:t}){Va.primaryColor=e,Va.secondaryColor=t||Fa(e),Va.calculated=!!t};var Ka=Wa;function qa(e){const[t,n]=ja(e);return Ka.setTwoToneColors({primaryColor:t,secondaryColor:n})}function Ua(){return Ua=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ua.apply(this,arguments)}qa(Zr.primary);const Xa=o.forwardRef((e,t)=>{const{className:n,icon:r,spin:a,rotate:i,tabIndex:l,onClick:s,twoToneColor:c,...d}=e,{prefixCls:u="anticon",rootClassName:p}=o.useContext(Ba),m=ie(p,u,{[`${u}-${r.name}`]:!!r.name,[`${u}-spin`]:!!a||"loading"===r.name},n);let f=l;void 0===f&&s&&(f=-1);const h=i?{msTransform:`rotate(${i}deg)`,transform:`rotate(${i}deg)`}:void 0,[g,v]=ja(c);return o.createElement("span",Ua({role:"img","aria-label":r.name},d,{ref:t,tabIndex:f,onClick:s,className:m}),o.createElement(Ka,{icon:r,primaryColor:g,secondaryColor:v,style:h}))});Xa.getTwoToneColor=function(){const e=Ka.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Xa.setTwoToneColor=qa,"production"!==process.env.NODE_ENV&&(Xa.displayName="AntdIcon");var Ga=Xa,Ya={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};function Za(){return Za=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Za.apply(this,arguments)}const Qa=(e,t)=>o.createElement(Ga,Za({},e,{ref:t,icon:Ya})),Ja=o.forwardRef(Qa);
|
|
11
|
-
/** */"production"!==process.env.NODE_ENV&&(Ja.displayName="CloseCircleFilled");var ei=Ja,ti={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};function ni(){return ni=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ni.apply(this,arguments)}const oi=(e,t)=>o.createElement(Ga,ni({},e,{ref:t,icon:ti})),ri=o.forwardRef(oi);
|
|
12
|
-
/** */"production"!==process.env.NODE_ENV&&(ri.displayName="CloseOutlined");var ai=ri;const ii=o.createContext({});function li({children:e,...t}){return o.createElement(ii.Provider,{value:t},e)}const si="none",ci="appear",di="enter",ui="leave",pi="none",mi="prepare",fi="start",hi="active",gi="end",vi="prepared";function bi(e,t){const n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit${e}`]=`webkit${t}`,n[`Moz${e}`]=`moz${t}`,n[`ms${e}`]=`MS${t}`,n[`O${e}`]=`o${t.toLowerCase()}`,n}const yi=function(e,t){const n={animationend:bi("Animation","AnimationEnd"),transitionend:bi("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(Se(),"undefined"!=typeof window?window:{});let wi={};Se()&&({style:wi}=document.createElement("div"));const Ci={};function xi(e){if(Ci[e])return Ci[e];const t=yi[e];if(t){const n=Object.keys(t),o=n.length;for(let r=0;r<o;r+=1){const o=n[r];if(Object.prototype.hasOwnProperty.call(t,o)&&o in wi)return Ci[e]=t[o],Ci[e]}}return""}const $i=xi("animationend"),Si=xi("transitionend"),Ei=!(!$i||!Si),ki=$i||"animationend",Ni=Si||"transitionend";function _i(e,t){if(!e)return null;if("object"==typeof e){const n=t.replace(/-\w/g,e=>e[1].toUpperCase());return e[n]}return`${e}-${t}`}const Ii=Se()?h:l;const Pi=[mi,fi,hi,gi],Oi=[mi,vi],Di=!1;function Ri(e){return e===hi||e===gi}var Mi=(e,t,n)=>{const[r,a]=Ne(pi),[i,l]=(()=>{const e=o.useRef(null);function t(){zt.cancel(e.current)}return o.useEffect(()=>()=>{t()},[]),[function n(o,r=2){t();const a=zt(()=>{r<=1?o({isCanceled:()=>a!==e.current}):n(o,r-1)});e.current=a},t]})();const s=t?Oi:Pi;return Ii(()=>{if(r!==pi&&r!==gi){const e=s.indexOf(r),t=s[e+1],o=n(r);o===Di?a(t,!0):t&&i(e=>{function n(){e.isCanceled()||a(t,!0)}!0===o?n():Promise.resolve(o).then(n)})}},[e,r]),o.useEffect(()=>()=>{l()},[]),[function(){a(mi,!0)},r]};function Bi(e,t,n,{motionEnter:r=!0,motionAppear:i=!0,motionLeave:s=!0,motionDeadline:c,motionLeaveImmediately:d,onAppearPrepare:u,onEnterPrepare:p,onLeavePrepare:m,onAppearStart:f,onEnterStart:h,onLeaveStart:g,onAppearActive:v,onEnterActive:b,onLeaveActive:y,onAppearEnd:w,onEnterEnd:C,onLeaveEnd:x,onVisibleChanged:$}){const[S,E]=Ne(),[k,N]=function(e){const[,t]=o.useReducer(e=>e+1,0),n=o.useRef(e);return[$e(()=>n.current),$e(e=>{n.current="function"==typeof e?e(n.current):e,t()})]}(si),[_,I]=Ne(null),P=k(),O=a(!1),D=a(null);function R(){return n()}const M=a(!1);function B(){N(si),I(null,!0)}const T=$e(e=>{const t=k();if(t===si)return;const n=R();if(e&&!e.deadline&&e.target!==n)return;const o=M.current;let r;t===ci&&o?r=w?.(n,e):t===di&&o?r=C?.(n,e):t===ui&&o&&(r=x?.(n,e)),o&&!1!==r&&B()}),[z]=(e=>{const t=a();function n(t){t&&(t.removeEventListener(Ni,e),t.removeEventListener(ki,e))}return o.useEffect(()=>()=>{n(t.current),t.current=null},[]),[function(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(Ni,e),o.addEventListener(ki,e),t.current=o)},n]})(T),A=e=>{switch(e){case ci:return{[mi]:u,[fi]:f,[hi]:v};case di:return{[mi]:p,[fi]:h,[hi]:b};case ui:return{[mi]:m,[fi]:g,[hi]:y};default:return{}}},L=o.useMemo(()=>A(P),[P]),[H,F]=Mi(P,!e,e=>{if(e===mi){const e=L[mi];return e?e(R()):Di}return F in L&&I(L[F]?.(R(),null)||null),F===hi&&P!==si&&(z(R()),c>0&&(clearTimeout(D.current),D.current=setTimeout(()=>{T({deadline:!0})},c))),F===vi&&B(),true}),j=Ri(F);M.current=j;const V=a(null);Ii(()=>{if(O.current&&V.current===t)return;E(t);const n=O.current;let o;O.current=!0,!n&&t&&i&&(o=ci),n&&t&&r&&(o=di),(n&&!t&&s||!n&&d&&!t&&s)&&(o=ui);const a=A(o);o&&(e||a[mi])?(N(o),H()):N(si),V.current=t},[t]),l(()=>{(P===ci&&!i||P===di&&!r||P===ui&&!s)&&N(si)},[i,r,s]),l(()=>()=>{O.current=!1,clearTimeout(D.current)},[]);const W=o.useRef(!1);l(()=>{S&&(W.current=!0),void 0!==S&&P===si&&((W.current||S)&&$?.(S),W.current=!0)},[S,P]);let K=_;return L[mi]&&F===fi&&(K={transition:"none",...K}),[k,F,K,S??t]}var Ti=function(e){let t=e;"object"==typeof e&&({transitionSupport:t}=e);const n=o.forwardRef((e,n)=>{const{visible:r=!0,removeOnLeave:i=!0,forceRender:l,children:s,motionName:c,leavedClassName:d,eventProps:u}=e,{motion:p}=o.useContext(ii),m=function(e,n){return!(!e.motionName||!t||!1===n)}(e,p),f=a();function h(){return bt(f.current)}const[g,v,b,y]=Bi(m,r,h,e),w=g(),C=o.useRef(y);y&&(C.current=!0);const x=o.useMemo(()=>{const e={};return Object.defineProperties(e,{nativeElement:{enumerable:!0,get:h},inMotion:{enumerable:!0,get:()=>()=>g()!==si},enableMotion:{enumerable:!0,get:()=>()=>m}}),e},[]);let $;o.useImperativeHandle(n,()=>x,[]);const S={...u,visible:r};if(s)if(w===si)$=y?s({...S},f):!i&&C.current&&d?s({...S,className:d},f):l||!i&&!d?s({...S,style:{display:"none"}},f):null;else{let e;v===mi?e="prepare":Ri(v)?e="active":v===fi&&(e="start");const t=_i(c,`${w}-${e}`);$=s({...S,className:ie(_i(c,w),{[t]:t&&e,[c]:"string"==typeof c}),style:b},f)}else $=null;if(o.isValidElement($)&&We($)){qe($)||($=o.cloneElement($,{ref:f}))}return $});return n.displayName="CSSMotion",n}(Ei);const zi="accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError".split(/[\s\n]+/);function Ai(e,t){return 0===e.indexOf(t)}function Li(e,t=!1){let n;n=!1===t?{aria:!0,data:!0,attr:!0}:!0===t?{aria:!0}:{...t};const o={};return Object.keys(e).forEach(t=>{(n.aria&&("role"===t||Ai(t,"aria-"))||n.data&&Ai(t,"data-")||n.attr&&zi.includes(t))&&(o[t]=e[t])}),o}const Hi={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};function Fi(e){return Fi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fi(e)}function ji(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Vi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ji(Object(n),!0).forEach(function(t){Wi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ji(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Wi(e,t,n){var o;return o=function(e,t){if("object"!=Fi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Fi(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==Fi(o)?o:String(o))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ki={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};const qi={lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],...Vi(Vi({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"})},timePickerLocale:{...Ki}};const Ui="${label} is not a valid ${type}";var Xi={locale:"en",Pagination:Hi,DatePicker:qi,TimePicker:Ki,Calendar:qi,global:{placeholder:"Please select",close:"Close",sortable:"sortable"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Ui,method:Ui,array:Ui,object:Ui,number:Ui,date:Ui,boolean:Ui,integer:Ui,float:Ui,regexp:Ui,email:Ui,url:Ui,hex:Ui},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Xi.Modal;let Gi=[];const Yi=()=>Gi.reduce((e,t)=>({...e,...t}),Xi.Modal);var Zi=f(void 0);var Qi=(e,t)=>{const n=o.useContext(Zi),r=o.useMemo(()=>{const o=t||Xi[e],r=n?.[e]??{};return{..."function"==typeof o?o():o,...r||{}}},[e,t,n]);return[r,o.useMemo(()=>{const e=n?.locale;return n?.exist&&!e?Xi.locale:e},[n])]};const Ji="internalMark",el=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;if("production"!==process.env.NODE_ENV){const e=ht("LocaleProvider");"production"!==process.env.NODE_ENV&&e(r===Ji,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}o.useEffect(()=>{const e=function(e){if(e){const t={...e};return Gi.push(t),Yi(),()=>{Gi=Gi.filter(e=>e!==t),Yi()}}Xi.Modal}(t?.Modal);return e},[t]);const a=o.useMemo(()=>({...t,exist:!0}),[t]);return o.createElement(Zi.Provider,{value:a},n)};"production"!==process.env.NODE_ENV&&(el.displayName="LocaleProvider");var tl=el;function nl(...e){const t={};return e.forEach(e=>{e&&Object.keys(e).forEach(n=>{void 0!==e[n]&&(t[n]=e[n])})}),t}var ol=e=>null!=e;const rl=()=>r.useReducer(e=>e+1,0),al=(e,...t)=>{const n=e||{};return t.filter(Boolean).reduce((e,t)=>(Object.keys(t||{}).forEach(o=>{const r=n[o],a=t[o];if(r&&"object"==typeof r)if(a&&"object"==typeof a)e[o]=al(r,e[o],a);else{const{_default:t}=r;t&&(e[o]=e[o]||{},e[o][t]=ie(e[o][t],a))}else e[o]=ie(e[o],a)}),e),{})},il=(e,...t)=>o.useMemo(()=>al.apply(void 0,[e].concat(t)),[e].concat(t)),ll=(...e)=>e.filter(Boolean).reduce((e,t={})=>(Object.keys(t).forEach(n=>{e[n]={...e[n],...t[n]}}),e),{}),sl=(...e)=>o.useMemo(()=>ll.apply(void 0,e),[].concat(e)),cl=(e,t)=>{const n={...e};return Object.keys(t).forEach(e=>{if("_default"!==e){const o=t[e],r=n[e]||{};n[e]=o?cl(r,o):r}}),n},dl=(e,t)=>"function"==typeof e?e(t):e,ul=(e,t,n,r)=>{const a=e.map(e=>e?dl(e,n):void 0),i=t.map(e=>e?dl(e,n):void 0),l=il.apply(void 0,[r].concat(Ot(a))),s=sl.apply(void 0,Ot(i));return o.useMemo(()=>r?[cl(l,r),cl(s,r)]:[l,s],[l,s,r])},pl=e=>"horizontal"===e||"vertical"===e,ml=(e,t,n)=>c(()=>{let o;if(pl(e))o=e;else if("boolean"==typeof t)o=t?"vertical":"horizontal";else{o=pl(n)?n:"horizontal"}return[o,"vertical"===o]},[n,e,t]),fl=(e,t)=>g(e,()=>{const e=t(),{nativeElement:n}=e;return"undefined"!=typeof Proxy?new Proxy(n,{get:(t,n)=>e[n]?e[n]:Reflect.get(t,n)}):(r=e,(o=n)._antProxy=o._antProxy||{},Object.keys(r).forEach(e=>{if(!(e in o._antProxy)){const t=o[e];o._antProxy[e]=t,o[e]=r[e]}}),o);var o,r}),hl=r.createContext(void 0);"production"!==process.env.NODE_ENV&&(hl.displayName="zIndexContext");var gl=hl;const vl=100,bl={Modal:vl,Drawer:vl,Popover:vl,Popconfirm:vl,Tooltip:vl,Tour:vl,FloatButton:vl},yl={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},wl=(e,t)=>{const[,n]=$a(),o=r.useContext(gl),a=(e=>e in bl)(e);let i;if(void 0!==t)i=[t,t];else{let r=o??0;r+=a?(o?0:n.zIndexPopupBase)+bl[e]:yl[e],i=[void 0===o?t:r,r]}if("production"!==process.env.NODE_ENV){const o=ht(e),r=n.zIndexPopupBase+1100,a=i[0]||0;"production"!==process.env.NODE_ENV&&o(void 0!==t||a<=r,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return i};function Cl(e){return e&&r.isValidElement(e)&&e.type===r.Fragment}function xl(e,t){return((e,t,n)=>r.isValidElement(e)?r.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t)(e,e,t)}function $l(e){return ol(e)&&e===e.window}var Sl=e=>{if("undefined"==typeof window)return 0;let t=0;return $l(e)?t=e.pageYOffset:e instanceof Document?t=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(t=e.scrollTop),e&&!$l(e)&&"number"!=typeof t&&(t=(e.ownerDocument??e).documentElement?.scrollTop),t};var El=e=>`${e}-css-var`,kl=f(void 0);const Nl=o.createContext(null);let _l=!1;const Il=[];let Pl;function Ol(e){const t=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,n=document.createElement("div");n.id=t;const o=n.style;let r,a;if(o.position="absolute",o.left="0",o.top="0",o.width="100px",o.height="100px",o.overflow="scroll",e){const n=getComputedStyle(e);o.scrollbarColor=n.scrollbarColor,o.scrollbarWidth=n.scrollbarWidth;const i=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(i.width,10),s=parseInt(i.height,10);try{const e=l?`width: ${i.width};`:"";en(`\n#${t}::-webkit-scrollbar {\n${e}\n${s?`height: ${i.height};`:""}\n}`,t)}catch(e){r=l,a=s}}document.body.appendChild(n);const i=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,l=e&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Jt(t),{width:i,height:l}}function Dl(e){return"undefined"==typeof document?0:((e||void 0===Pl)&&(Pl=Ol()),Pl.width)}function Rl(e){return"undefined"!=typeof document&&e&&e instanceof Element?Ol(e):{width:0,height:0}}const Ml=`rc-util-locker-${Date.now()}`;let Bl=0;function Tl(e){const t=!!e,[n]=o.useState(()=>(Bl+=1,`${Ml}_${Bl}`));ke(()=>{if(t){const e=Rl(document.body).width;en(`\nhtml body {\n overflow-y: hidden;\n ${document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?`width: calc(100% - ${e}px);`:""}\n}`,n)}else Jt(n);return()=>{Jt(n)}},[t,n])}let zl=0;const Al={...o}.useId;var Ll=Al?function(e){const t=Al();return e||("test"===process.env.NODE_ENV?"test-id":t)}:function(e){const[t,n]=o.useState("ssr-id");return o.useEffect(()=>{const e=zl;zl+=1,n(`rc_unique_${e}`)},[]),e||("test"===process.env.NODE_ENV?"test-id":t)};let Hl=[];let Fl=0;process.env.NODE_ENV;const jl=e=>{if("Escape"===e.key&&!e.isComposing){if(Date.now()-Fl<200)return;const t=Hl.length;for(let n=t-1;n>=0;n-=1)Hl[n].onEsc({top:n===t-1,event:e})}},Vl=()=>{Fl=Date.now()};function Wl(e,t){const n=Ll(),o=$e(t),r=()=>{Hl.find(e=>e.id===n)||Hl.push({id:n,onEsc:o})},a=()=>{Hl=Hl.filter(e=>e.id!==n)};c(()=>{e?r():e||a()},[e]),l(()=>{if(e)return r(),window.addEventListener("keydown",jl),window.addEventListener("compositionend",Vl),()=>{a(),0===Hl.length&&(window.removeEventListener("keydown",jl),window.removeEventListener("compositionend",Vl))}},[e])}const Kl=e=>!1!==e&&(Se()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null),ql=o.forwardRef((e,t)=>{const{open:n,autoLock:r,getContainer:a,debug:i,autoDestroy:l=!0,children:s,onEsc:c}=e,[d,u]=o.useState(n),p=d||n;"production"!==process.env.NODE_ENV&&at(Se()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),o.useEffect(()=>{(l||n)&&u(n)},[n,l]);const[m,f]=o.useState(()=>Kl(a));o.useEffect(()=>{const e=Kl(a);f(()=>e??null)});const[h,g]=function(e,t){const[n]=o.useState(()=>{if(!Se())return null;const e=document.createElement("div");return"production"!==process.env.NODE_ENV&&t&&e.setAttribute("data-debug",t),e}),r=o.useRef(!1),a=o.useContext(Nl),[i,l]=o.useState(Il),s=a||(r.current?void 0:e=>{l(t=>[e,...t])});function c(){n.parentElement||document.body.appendChild(n),r.current=!0}function d(){n.parentElement?.removeChild(n),r.current=!1}return ke(()=>(e?a?a(c):c():d(),d),[e]),ke(()=>{i.length&&(i.forEach(e=>e()),l(Il))},[i]),[n,s]}(p&&!m,i),v=m??h;Tl(r&&n&&Se()&&(v===h||v===document.body)),Wl(n,c);let b=null;s&&We(s)&&t&&(b=qe(s));const y=Ve(b,t);if(!p||!Se()||void 0===m)return null;const w=!1===v||("boolean"==typeof C&&(_l=C),_l);var C;let x=s;return t&&(x=o.cloneElement(s,{ref:y})),o.createElement(Nl.Provider,{value:g},w?x:$(x,v))});function Ul(e){const{prefixCls:t,align:n,arrow:r,arrowPos:a}=e,{className:i,content:l,style:s}=r||{},{x:c=0,y:d=0}=a,u=o.useRef(null);if(!n||!n.points)return null;const p={position:"absolute"};if(!1!==n.autoArrow){const e=n.points[0],t=n.points[1],o=e[0],r=e[1],a=t[0],i=t[1];o!==a&&["t","b"].includes(o)?"t"===o?p.top=0:p.bottom=0:p.top=d,r!==i&&["l","r"].includes(r)?"l"===r?p.left=0:p.right=0:p.left=c}return o.createElement("div",{ref:u,className:ie(`${t}-arrow`,i),style:{...p,...s}},l)}function Xl(){return Xl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Xl.apply(this,arguments)}function Gl(e){const{prefixCls:t,open:n,zIndex:r,mask:a,motion:i,mobile:l}=e;return a?o.createElement(Ti,Xl({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),({className:e})=>o.createElement("div",{style:{zIndex:r},className:ie(`${t}-mask`,l&&`${t}-mobile-mask`,e)})):null}"production"!==process.env.NODE_ENV&&(ql.displayName="Portal");const Yl=o.memo(({children:e})=>e,(e,t)=>t.cache);function Zl(e,t,n,o,r,a,i,l){const s="auto",c=e?{}:{left:"-1000vw",top:"-1000vh",right:s,bottom:s};if(!e&&(t||!n)){const{points:e}=o,t=o.dynamicInset||o._experimental?.dynamicInset,n=t&&"r"===e[0][1],d=t&&"b"===e[0][0];n?(c.right=r,c.left=s):(c.left=i,c.right=s),d?(c.bottom=a,c.top=s):(c.top=l,c.bottom=s)}return c}function Ql(){return Ql=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ql.apply(this,arguments)}"production"!==process.env.NODE_ENV&&(Yl.displayName="PopupContent");const Jl=o.forwardRef((e,t)=>{const{onEsc:n,popup:r,className:a,prefixCls:i,style:l,target:s,onVisibleChanged:c,open:d,keepDom:u,fresh:p,onClick:m,mask:f,arrow:h,arrowPos:g,align:v,motion:b,maskMotion:y,mobile:w,forceRender:C,getPopupContainer:x,autoDestroy:$,portal:S,children:E,zIndex:k,onMouseEnter:N,onMouseLeave:_,onPointerEnter:I,onPointerDownCapture:P,ready:O,offsetX:D,offsetY:R,offsetR:M,offsetB:B,onAlign:T,onPrepare:z,onResize:A,stretch:L,targetWidth:H,targetHeight:F}=e,j="function"==typeof r?r():r,V=d||u,W=!!w,[K,q,U]=o.useMemo(()=>w?[w.mask,w.maskMotion,w.motion]:[f,y,b],[w,f,y,b]),X=x?.length>0,[G,Y]=o.useState(!x||!X);ke(()=>{!G&&X&&s&&Y(!0)},[G,X,s]);const Z=$e((e,t)=>{A?.(e,t),T()}),Q=Zl(W,O,d,v,M,B,D,R);if(!G)return null;const J={};return L&&(L.includes("height")&&F?J.height=F:L.includes("minHeight")&&F&&(J.minHeight=F),L.includes("width")&&H?J.width=H:L.includes("minWidth")&&H&&(J.minWidth=H)),d||(J.pointerEvents="none"),o.createElement(S,{open:C||V,getContainer:x&&(()=>x(s)),autoDestroy:$,onEsc:n},o.createElement(Gl,{prefixCls:i,open:d,zIndex:k,mask:K,motion:q,mobile:W}),o.createElement(_t,{onResize:Z,disabled:!d},e=>o.createElement(Ti,Ql({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:C,leavedClassName:`${i}-hidden`},U,{onAppearPrepare:z,onEnterPrepare:z,visible:d,onVisibleChanged:e=>{b?.onVisibleChanged?.(e),c(e)}}),({className:n,style:r},s)=>{const c=ie(i,n,a,{[`${i}-mobile`]:W});return o.createElement("div",{ref:je(e,t,s),className:c,style:{"--arrow-x":`${g.x||0}px`,"--arrow-y":`${g.y||0}px`,...Q,...J,...r,boxSizing:"border-box",zIndex:k,...l},onMouseEnter:N,onMouseLeave:_,onPointerEnter:I,onClick:m,onPointerDownCapture:P},h&&o.createElement(Ul,{prefixCls:i,arrow:h,arrowPos:g,align:v}),o.createElement(Yl,{cache:!d&&!p},j))})),E)});"production"!==process.env.NODE_ENV&&(Jl.displayName="Popup");const es=o.createContext(null),ts=o.createContext(null);function ns(e){return e?Array.isArray(e)?e:[e]:[]}var os=e=>{if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){const{width:t,height:n}=e.getBBox();if(t||n)return!0}if(e.getBoundingClientRect){const{width:t,height:n}=e.getBoundingClientRect();if(t||n)return!0}}return!1};function rs(e=[],t=[],n){const o=(e,t)=>e[t]||"";return n?o(e,0)===o(t,0):o(e,0)===o(t,0)&&o(e,1)===o(t,1)}function as(e,t,n,o){const{points:r}=n,a=Object.keys(e);for(let n=0;n<a.length;n+=1){const i=a[n];if(rs(e[i]?.points,r,o))return`${t}-placement-${i}`}return""}function is(e){return e.ownerDocument.defaultView}function ls(e){const t=[];let n=e?.parentElement;const o=["hidden","scroll","clip","auto"];for(;n;){const{overflowX:e,overflowY:r,overflow:a}=is(n).getComputedStyle(n);[e,r,a].some(e=>o.includes(e))&&t.push(n),n=n.parentElement}return t}function ss(e,t=1){return Number.isNaN(e)?t:e}function cs(e){return ss(parseFloat(e),0)}function ds(e,t){const n={...e};return(t||[]).forEach(e=>{if(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)return;const{overflow:t,overflowClipMargin:o,borderTopWidth:r,borderBottomWidth:a,borderLeftWidth:i,borderRightWidth:l}=is(e).getComputedStyle(e),s=e.getBoundingClientRect(),{offsetHeight:c,clientHeight:d,offsetWidth:u,clientWidth:p}=e,m=cs(r),f=cs(a),h=cs(i),g=cs(l),v=ss(Math.round(s.width/u*1e3)/1e3),b=ss(Math.round(s.height/c*1e3)/1e3),y=(u-p-h-g)*v,w=(c-d-m-f)*b,C=m*b,x=f*b,$=h*v,S=g*v;let E=0,k=0;if("clip"===t){const e=cs(o);E=e*v,k=e*b}const N=s.x+$-E,_=s.y+C-k,I=N+s.width+2*E-$-S-y,P=_+s.height+2*k-C-x-w;n.left=Math.max(n.left,N),n.top=Math.max(n.top,_),n.right=Math.min(n.right,I),n.bottom=Math.min(n.bottom,P)}),n}function us(e,t=0){const n=`${t}`,o=n.match(/^(.*)\%$/);return o?e*(parseFloat(o[1])/100):parseFloat(n)}function ps(e,t){const[n,o]=t||[];return[us(e.width,n),us(e.height,o)]}function ms(e=""){return[e[0],e[1]]}function fs(e,t){const n=t[0],o=t[1];let r,a;return a="t"===n?e.y:"b"===n?e.y+e.height:e.y+e.height/2,r="l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,{x:r,y:a}}function hs(e,t){const n=[...e];return n[t]={t:"b",b:"t",l:"r",r:"l"}[e[t]]||"c",n}function gs(e){return e.join("")}function vs(e,t,n,r,a,i,l,s){const[c,d]=o.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[r]||{}}),u=o.useRef(0),p=o.useMemo(()=>!t||s?[]:ls(t),[t]),m=o.useRef({});e||(m.current={});const f=$e(()=>{if(t&&n&&e&&!s){const o=t,c=o.ownerDocument,u=is(o),{position:f}=u.getComputedStyle(o),h=o.style.left,g=o.style.top,v=o.style.right,b=o.style.bottom,y=o.style.overflow,w={...a[r],...i},C=c.createElement("div");let x;if(o.parentElement?.appendChild(C),C.style.left=`${o.offsetLeft}px`,C.style.top=`${o.offsetTop}px`,C.style.position=f,C.style.height=`${o.offsetHeight}px`,C.style.width=`${o.offsetWidth}px`,o.style.left="0",o.style.top="0",o.style.right="auto",o.style.bottom="auto",o.style.overflow="hidden",Array.isArray(n))x={x:n[0],y:n[1],width:0,height:0};else{const Ue=n.getBoundingClientRect();Ue.x=Ue.x??Ue.left,Ue.y=Ue.y??Ue.top,x={x:Ue.x,y:Ue.y,width:Ue.width,height:Ue.height}}const $=o.getBoundingClientRect(),{height:S,width:E}=u.getComputedStyle(o);$.x=$.x??$.left,$.y=$.y??$.top;const{clientWidth:k,clientHeight:N,scrollWidth:_,scrollHeight:I,scrollTop:P,scrollLeft:O}=c.documentElement,D=$.height,R=$.width,M=x.height,B=x.width,T={left:0,top:0,right:k,bottom:N},z={left:-O,top:-P,right:_-O,bottom:I-P};let{htmlRegion:A}=w;const L="visible",H="visibleFirst";"scroll"!==A&&A!==H&&(A=L);const F=A===H,j=ds(z,p),V=ds(T,p),W=A===L?V:j,K=F?V:W;o.style.left="auto",o.style.top="auto",o.style.right="0",o.style.bottom="0";const q=o.getBoundingClientRect();o.style.left=h,o.style.top=g,o.style.right=v,o.style.bottom=b,o.style.overflow=y,o.parentElement?.removeChild(C);const U=ss(Math.round(R/parseFloat(E)*1e3)/1e3),X=ss(Math.round(D/parseFloat(S)*1e3)/1e3);if(0===U||0===X||vt(n)&&!os(n))return;const{offset:G,targetOffset:Y}=w;let[Z,Q]=ps($,G);const[J,ee]=ps(x,Y);x.x-=J,x.y-=ee;const[te,ne]=w.points||[],oe=ms(ne),re=ms(te),ae=fs(x,oe),ie=fs($,re),le={...w};let se=[re,oe],ce=ae.x-ie.x+Z,de=ae.y-ie.y+Q;function ue(e,t,n=W){const o=$.x+e,r=$.y+t,a=o+R,i=r+D,l=Math.max(o,n.left),s=Math.max(r,n.top),c=Math.min(a,n.right),d=Math.min(i,n.bottom);return Math.max(0,(c-l)*(d-s))}const pe=ue(ce,de),me=ue(ce,de,V),fe=fs(x,["t","l"]),he=fs($,["t","l"]),ge=fs(x,["b","r"]),ve=fs($,["b","r"]),be=w.overflow||{},{adjustX:ye,adjustY:we,shiftX:Ce,shiftY:xe}=be,$e=e=>"boolean"==typeof e?e:e>=0;let Se,Ee,ke,Ne;function _e(){Se=$.y+de,Ee=Se+D,ke=$.x+ce,Ne=ke+R}_e();const Ie=$e(we),Pe=re[0]===oe[0];if(Ie&&"t"===re[0]&&(Ee>K.bottom||m.current.bt)){let Xe=de;Pe?Xe-=D-M:Xe=fe.y-ve.y-Q;const Ge=ue(ce,Xe),Ye=ue(ce,Xe,V);Ge>pe||Ge===pe&&(!F||Ye>=me)?(m.current.bt=!0,de=Xe,Q=-Q,se=[hs(se[0],0),hs(se[1],0)]):m.current.bt=!1}if(Ie&&"b"===re[0]&&(Se<K.top||m.current.tb)){let Ze=de;Pe?Ze+=D-M:Ze=ge.y-he.y-Q;const Qe=ue(ce,Ze),Je=ue(ce,Ze,V);Qe>pe||Qe===pe&&(!F||Je>=me)?(m.current.tb=!0,de=Ze,Q=-Q,se=[hs(se[0],0),hs(se[1],0)]):m.current.tb=!1}const Oe=$e(ye),De=re[1]===oe[1];if(Oe&&"l"===re[1]&&(Ne>K.right||m.current.rl)){let et=ce;De?et-=R-B:et=fe.x-ve.x-Z;const tt=ue(et,de),nt=ue(et,de,V);tt>pe||tt===pe&&(!F||nt>=me)?(m.current.rl=!0,ce=et,Z=-Z,se=[hs(se[0],1),hs(se[1],1)]):m.current.rl=!1}if(Oe&&"r"===re[1]&&(ke<K.left||m.current.lr)){let ot=ce;De?ot+=R-B:ot=ge.x-he.x-Z;const rt=ue(ot,de),at=ue(ot,de,V);rt>pe||rt===pe&&(!F||at>=me)?(m.current.lr=!0,ce=ot,Z=-Z,se=[hs(se[0],1),hs(se[1],1)]):m.current.lr=!1}le.points=[gs(se[0]),gs(se[1])],_e();const Re=!0===Ce?0:Ce;"number"==typeof Re&&(ke<V.left&&(ce-=ke-V.left-Z,x.x+B<V.left+Re&&(ce+=x.x-V.left+B-Re)),Ne>V.right&&(ce-=Ne-V.right-Z,x.x>V.right-Re&&(ce+=x.x-V.right+Re)));const Me=!0===xe?0:xe;"number"==typeof Me&&(Se<V.top&&(de-=Se-V.top-Q,x.y+M<V.top+Me&&(de+=x.y-V.top+M-Me)),Ee>V.bottom&&(de-=Ee-V.bottom-Q,x.y>V.bottom-Me&&(de+=x.y-V.bottom+Me)));const Be=$.x+ce,Te=Be+R,ze=$.y+de,Ae=ze+D,Le=x.x,He=Le+B,Fe=x.y,je=Fe+M,Ve=(Math.max(Be,Le)+Math.min(Te,He))/2-Be,We=(Math.max(ze,Fe)+Math.min(Ae,je))/2-ze;l?.(t,le);let Ke=q.right-$.x-(ce+$.width),qe=q.bottom-$.y-(de+$.height);1===U&&(ce=Math.round(ce),Ke=Math.round(Ke)),1===X&&(de=Math.round(de),qe=Math.round(qe));d({ready:!0,offsetX:ce/U,offsetY:de/X,offsetR:Ke/U,offsetB:qe/X,arrowX:Ve/U,arrowY:We/X,scaleX:U,scaleY:X,align:le})}}),h=()=>{d(e=>({...e,ready:!1}))};return ke(h,[r]),ke(()=>{e||h()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,()=>{u.current+=1;const e=u.current;Promise.resolve().then(()=>{u.current===e&&f()})}]}function bs(){const e=o.useRef(null),t=()=>{e.current&&(clearTimeout(e.current),e.current=null)};return o.useEffect(()=>()=>{t()},[]),(n,o)=>{t(),0===o?n():e.current=setTimeout(()=>{n()},1e3*o)}}function ys(){return ys=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ys.apply(this,arguments)}const ws=e=>{const{prefixCls:t,isMobile:n,ready:o,open:a,align:i,offsetR:l,offsetB:s,offsetX:c,offsetY:d,arrowPos:u,popupSize:p,motion:m,uniqueContainerClassName:f,uniqueContainerStyle:h}=e,g=`${t}-unique-container`,[v,b]=r.useState(!1),y=Zl(n,o,a,i,l,s,c,d),w=r.useRef(y);o&&(w.current=y);const C={};return p&&(C.width=p.width,C.height=p.height),r.createElement(Ti,ys({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${g}-hidden`},m,{visible:a,onVisibleChanged:e=>{b(e)}}),({className:e,style:t})=>{const n=ie(g,e,f,{[`${g}-visible`]:v});return r.createElement("div",{className:n,style:{"--arrow-x":`${u?.x||0}px`,"--arrow-y":`${u?.y||0}px`,...w.current,...C,...t,...h}})})},Cs=({children:e,postTriggerProps:t})=>{const[n,a,i,l]=function(){const[e,t]=r.useState(null),[n,o]=r.useState(!1),[a,i]=r.useState(!1),l=r.useRef(null),s=$e(e=>{!1===e?(l.current=null,o(!1)):a&&n?l.current=e:(o(!0),t(e),l.current=null,n||i(!0))}),c=$e(e=>{e?(i(!1),l.current&&(t(l.current),l.current=null)):(i(!1),l.current=null)});return[s,n,e,c]}(),s=o.useMemo(()=>i&&t?t(i):i,[i,t]),[c,d]=o.useState(null),[u,p]=o.useState(null),m=o.useRef(null),f=$e(e=>{m.current=e,vt(e)&&c!==e&&d(e)}),h=o.useRef(null),g=bs(),v=$e((e,t)=>{h.current=t,g(()=>{n(e)},e.delay)}),b=e=>{g(()=>{h.current?.()||n(!1)},e)},y=$e(e=>{l(e)}),[w,C,x,$,S,E,k,,,N,_]=vs(a,c,s?.target,s?.popupPlacement,s?.builtinPlacements||{},s?.popupAlign,void 0,!1),I=o.useMemo(()=>{if(!s)return"";return ie(as(s.builtinPlacements||{},s.prefixCls||"",N,!1),s.getPopupClassNameFromAlign?.(N))},[N,s?.getPopupClassNameFromAlign,s?.builtinPlacements,s?.prefixCls]),P=o.useMemo(()=>({show:v,hide:b}),[]);o.useEffect(()=>{_()},[s?.target]);const O=$e(()=>(_(),Promise.resolve())),D=o.useRef({}),R=o.useContext(es),M=o.useMemo(()=>({registerSubPopup:(e,t)=>{D.current[e]=t,R?.registerSubPopup(e,t)}}),[R]),B=s?.prefixCls;return o.createElement(ts.Provider,{value:P},e,s&&o.createElement(es.Provider,{value:M},o.createElement(Jl,{ref:f,portal:ql,onEsc:s.onEsc,prefixCls:B,popup:s.popup,className:ie(s.popupClassName,I,`${B}-unique-controlled`),style:s.popupStyle,target:s.target,open:a,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:y,ready:w,offsetX:C,offsetY:x,offsetR:$,offsetB:S,onAlign:_,onPrepare:O,onResize:e=>p({width:e.offsetWidth,height:e.offsetHeight}),arrowPos:{x:E,y:k},align:N,zIndex:s.zIndex,mask:s.mask,arrow:s.arrow,motion:s.popupMotion,maskMotion:s.maskMotion,getPopupContainer:s.getPopupContainer},o.createElement(ws,{prefixCls:B,isMobile:!1,ready:w,open:a,align:N,offsetR:$,offsetB:S,offsetX:C,offsetY:x,arrowPos:{x:E,y:k},popupSize:u,motion:s.popupMotion,uniqueContainerClassName:ie(s.uniqueContainerClassName,I),uniqueContainerStyle:s.uniqueContainerStyle}))))};var xs=function(e=ql){const t=o.forwardRef((t,n)=>{const{prefixCls:r="rc-trigger-popup",children:a,action:i="hover",showAction:l,hideAction:s,popupVisible:c,defaultPopupVisible:d,onOpenChange:u,afterOpenChange:p,onPopupVisibleChange:m,afterPopupVisibleChange:f,mouseEnterDelay:h,mouseLeaveDelay:g=.1,focusDelay:v,blurDelay:b,mask:y,maskClosable:w=!0,getPopupContainer:C,forceRender:x,autoDestroy:$,popup:E,popupClassName:k,uniqueContainerClassName:N,uniqueContainerStyle:_,popupStyle:I,popupPlacement:P,builtinPlacements:O={},popupAlign:D,zIndex:R,stretch:M,getPopupClassNameFromAlign:B,fresh:T,unique:z,alignPoint:A,onPopupClick:L,onPopupAlign:H,arrow:F,popupMotion:j,maskMotion:V,mobile:W,...K}=t,q=$||!1,U=void 0===c,X=!!W,G=o.useRef({}),Y=o.useContext(es),Z=o.useMemo(()=>({registerSubPopup:(e,t)=>{G.current[e]=t,Y?.registerSubPopup(e,t)}}),[Y]),Q=o.useContext(ts),J=Ll(),[ee,te]=o.useState(null),ne=o.useRef(null),oe=$e(e=>{ne.current=e,vt(e)&&ee!==e&&te(e),Y?.registerSubPopup(J,e)}),[re,ae]=o.useState(null),le=o.useRef(null),se=$e(e=>{vt(e)&&re!==e&&(ae(e),le.current=e)}),ce={},de=$e(e=>{const t=re;return t?.contains(e)||za(t)?.host===e||e===t||ee?.contains(e)||za(ee)?.host===e||e===ee||Object.values(G.current).some(t=>t?.contains(e)||e===t)}),ue=F?{...!0!==F?F:{}}:null,[pe,me]=_e(d||!1,c),fe=pe||!1,he=o.useMemo(()=>{const e="function"==typeof a?a({open:fe}):a;return o.Children.only(e)},[a,fe]),ge=he?.props||{},ve=$e(()=>fe),be=$e((e=0)=>({popup:E,target:re,delay:e,prefixCls:r,popupClassName:k,uniqueContainerClassName:N,uniqueContainerStyle:_,popupStyle:I,popupPlacement:P,builtinPlacements:O,popupAlign:D,zIndex:R,mask:y,maskClosable:w,popupMotion:j,maskMotion:V,arrow:ue,getPopupContainer:C,getPopupClassNameFromAlign:B,id:J,onEsc:Se}));ke(()=>{Q&&z&&re&&!U&&!Y&&(fe?Q.show(be(h),ve):Q.hide(g))},[fe,re]);const ye=o.useRef(fe);ye.current=fe;const we=$e(e=>{S(()=>{fe!==e&&(me(e),u?.(e),m?.(e))})}),Ce=bs(),xe=(e,t=0)=>{void 0===c&&Q&&z&&U&&!Y?e?Q.show(be(t),ve):Q.hide(t):Ce(()=>{we(e)},t)};function Se({top:e}){e&&xe(!1)}const[Ee,Ne]=o.useState(!1);ke(e=>{e&&!fe||Ne(!0)},[fe]);const[Ie,Pe]=o.useState(null),[Oe,De]=o.useState(null),Re=e=>{De([e.clientX,e.clientY])},[Me,Be,Te,ze,Ae,Le,He,Fe,je,Ve,We]=vs(fe,ee,A&&null!==Oe?Oe:re,P,O,D,H,X),[Ke,qe]=function(e,t,n){return o.useMemo(()=>{const o=ns(t??e),r=ns(n??e),a=new Set(o),i=new Set(r);return a.has("hover")&&!a.has("click")&&a.add("touch"),i.has("hover")&&!i.has("click")&&i.add("touch"),[a,i]},[e,t,n])}(i,l,s),Ue=Ke.has("click"),Xe=qe.has("click")||qe.has("contextMenu"),Ge=$e(()=>{Ee||We()});!function(e,t,n,o,r){ke(()=>{if(e&&t&&n){const a=n,i=ls(t),l=ls(a),s=is(a),c=new Set([s,...i,...l]);function d(){o(),r()}return c.forEach(e=>{e.addEventListener("scroll",d,{passive:!0})}),s.addEventListener("resize",d,{passive:!0}),o(),()=>{c.forEach(e=>{e.removeEventListener("scroll",d),s.removeEventListener("resize",d)})}}},[e,t,n])}(fe,re,ee,Ge,()=>{ye.current&&A&&Xe&&xe(!1)}),ke(()=>{Ge()},[Oe,P]),ke(()=>{fe&&!O?.[P]&&Ge()},[JSON.stringify(D)]);const Ye=o.useMemo(()=>ie(as(O,r,Ve,A),B?.(Ve)),[Ve,B,O,r,A]);o.useImperativeHandle(n,()=>({nativeElement:le.current,popupElement:ne.current,forceAlign:Ge}));const[Ze,Qe]=o.useState(0),[Je,et]=o.useState(0),tt=()=>{if(M&&re){const e=re.getBoundingClientRect();Qe(e.width),et(e.height)}};function ot(e,t,n,o,r){ce[e]=(a,...i)=>{r&&r()||(o?.(a),xe(t,n)),ge[e]?.(a,...i)}}ke(()=>{Ie&&(We(),Ie(),Pe(null))},[Ie]);const rt=Ke.has("touch"),at=qe.has("touch"),it=o.useRef(!1);(rt||at)&&(ce.onTouchStart=(...e)=>{it.current=!0,ye.current&&at?xe(!1):!ye.current&&rt&&xe(!0),ge.onTouchStart?.(...e)}),(Ue||Xe)&&(ce.onClick=(e,...t)=>{ye.current&&Xe?xe(!1):!ye.current&&Ue&&(Re(e),xe(!0)),ge.onClick?.(e,...t),it.current=!1});const lt=function(e,t,n,r,a,i,l,s){const c=o.useRef(e);c.current=e;const d=o.useRef(!1);return o.useEffect(()=>{if(t&&r&&(!a||i)){const e=()=>{d.current=!1},t=e=>{!c.current||l(e.composedPath?.()?.[0]||e.target)||d.current||s(!1)},o=is(r);o.addEventListener("pointerdown",e,!0),o.addEventListener("mousedown",t,!0),o.addEventListener("contextmenu",t,!0);const a=za(n);if(a&&(a.addEventListener("mousedown",t,!0),a.addEventListener("contextmenu",t,!0)),"production"!==process.env.NODE_ENV&&n){const e=n.getRootNode?.(),t=r.getRootNode?.();nt(e===t,"trigger element and popup element should in same shadow root.")}return()=>{o.removeEventListener("pointerdown",e,!0),o.removeEventListener("mousedown",t,!0),o.removeEventListener("contextmenu",t,!0),a&&(a.removeEventListener("mousedown",t,!0),a.removeEventListener("contextmenu",t,!0))}}},[t,n,r,a,i]),function(){d.current=!0}}(fe,Xe||at,re,ee,y,w,de,xe),st=Ke.has("hover"),ct=qe.has("hover");let dt,ut;const pt=()=>it.current;if(st){const e=e=>{Re(e)};ot("onMouseEnter",!0,h,e,pt),ot("onPointerEnter",!0,h,e,pt),dt=e=>{(fe||Ee)&&ee?.contains(e.target)&&xe(!0,h)},A&&(ce.onMouseMove=e=>{ge.onMouseMove?.(e)})}ct&&(ot("onMouseLeave",!1,g,void 0,pt),ot("onPointerLeave",!1,g,void 0,pt),ut=()=>{xe(!1,g)}),Ke.has("focus")&&ot("onFocus",!0,v),qe.has("focus")&&ot("onBlur",!1,b),Ke.has("contextMenu")&&(ce.onContextMenu=(e,...t)=>{ye.current&&qe.has("contextMenu")?xe(!1):(Re(e),xe(!0)),e.preventDefault(),ge.onContextMenu?.(e,...t)});const mt=o.useRef(!1);mt.current||=x||fe||Ee;const ft={...ge,...ce},ht={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(e=>{K[e]&&(ht[e]=(...t)=>{ft[e]?.(...t),K[e](...t)})});const gt={x:Le,y:He},bt=o.cloneElement(he,{...ft,...ht});return o.createElement(o.Fragment,null,o.createElement(_t,{disabled:!fe,ref:se,onResize:()=>{tt(),Ge()}},bt),mt.current&&(!Q||!z)&&o.createElement(es.Provider,{value:Z},o.createElement(Jl,{portal:e,ref:oe,prefixCls:r,popup:E,className:ie(k,!X&&Ye),style:I,target:re,onMouseEnter:dt,onMouseLeave:ut,onPointerEnter:dt,zIndex:R,open:fe,keepDom:Ee,fresh:T,onClick:L,onPointerDownCapture:lt,mask:y,motion:j,maskMotion:V,onVisibleChanged:e=>{Ne(!1),We(),p?.(e),f?.(e)},onPrepare:()=>new Promise(e=>{tt(),Pe(()=>e)}),forceRender:x,autoDestroy:q,getPopupContainer:C,onEsc:Se,align:Ve,arrow:ue,arrowPos:gt,ready:Me,offsetX:Be,offsetY:Te,offsetR:ze,offsetB:Ae,onAlign:Ge,stretch:M,targetWidth:Ze/Fe,targetHeight:Je/je,mobile:W})))});return"production"!==process.env.NODE_ENV&&(t.displayName="Trigger"),t}(ql);var $s=({children:e})=>{const{getPrefixCls:t}=r.useContext(Ft),n=t();return r.isValidElement(e)?r.createElement(Ti,{visible:!0,motionName:`${n}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:t,className:n})=>{const{className:o,style:a}=e.props,i={...a,...t};return r.cloneElement(e,{className:ie(o,n),style:i})}):e};const Ss=[null,null];var Es=({children:e})=>r.createElement(Cs,{postTriggerProps:e=>{const t="function"==typeof e.popup?e.popup():e.popup,{id:n,builtinPlacements:o}=e,a=function(e){if(Ss[0]!==e){const t={};Object.keys(e).forEach(n=>{t[n]={...e[n],dynamicInset:!1}}),Ss[0]=e,Ss[1]=t}return Ss[1]}(o);return{...e,getPopupContainer:null,arrow:!1,popup:r.createElement($s,{key:n},t),builtinPlacements:a}}},e);const ks=o.createContext(!1),Ns=({children:e,disabled:t})=>{const n=o.useContext(ks);return o.createElement(ks.Provider,{value:t??n},e)};var _s=ks;const Is=o.createContext(void 0),Ps=({children:e,size:t})=>{const n=o.useContext(Is);return o.createElement(Is.Provider,{value:t||n},e)};var Os=Is;const Ds=o.createContext(!0);function Rs(e){const t=o.useContext(Ds),{children:n}=e,[,r]=$a(),{motion:a}=r,i=o.useRef(!1);return i.current||(i.current=t!==a),i.current?o.createElement(Ds.Provider,{value:a},o.createElement(li,{motion:a},n)):n}"production"!==process.env.NODE_ENV&&(Ds.displayName="MotionCacheContext");const Ms=o.memo(({dropdownMatchSelectWidth:e})=>(ht("ConfigProvider").deprecated(void 0===e,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));"production"!==process.env.NODE_ENV&&(Ms.displayName="PropWarning");var Bs="production"!==process.env.NODE_ENV?Ms:()=>null;let Ts=!1;process.env.NODE_ENV;const zs=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],As=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:a,affix:i,anchor:l,form:s,locale:c,componentSize:d,direction:u,space:p,splitter:m,virtual:f,dropdownMatchSelectWidth:h,popupMatchSelectWidth:g,popupOverflow:b,legacyLocale:y,parentContext:w,iconPrefixCls:C,theme:x,componentDisabled:$,segmented:S,statistic:E,spin:k,calendar:N,carousel:_,cascader:I,collapse:P,typography:O,checkbox:D,descriptions:R,divider:M,drawer:B,skeleton:T,steps:z,image:A,layout:L,list:H,mentions:F,modal:j,progress:V,result:W,slider:K,breadcrumb:q,masonry:U,menu:X,pagination:G,input:Y,textArea:Z,otp:Q,empty:J,badge:ee,radio:te,rate:ne,ribbon:oe,switch:re,transfer:ae,avatar:ie,message:le,tag:se,table:ce,card:de,cardMeta:ue,tabs:pe,timeline:me,timePicker:fe,upload:he,notification:ge,tree:ve,colorPicker:be,datePicker:ye,rangePicker:we,flex:Ce,wave:xe,dropdown:$e,warning:Se,tour:Ee,tooltip:ke,popover:Ne,popconfirm:_e,qrcode:Ie,floatButton:Pe,floatButtonGroup:Oe,variant:De,inputNumber:Re,treeSelect:Me,watermark:Te}=e,ze=o.useCallback((t,n)=>{const{prefixCls:o}=e;if(n)return n;const r=o||w.getPrefixCls("");return t?`${r}-${t}`:r},[w.getPrefixCls,e.prefixCls]),Ae=C||w.iconPrefixCls||Lt,Le=n||w.csp;Ma(Ae,Le);const He=function(e,t,n){const o=ht("ConfigProvider"),r=e||{},a=!1!==r.inherit&&t?t:{...ha,hashed:t?.hashed??ha.hashed,cssVar:t?.cssVar},i=v();if("production"!==process.env.NODE_ENV){const e=r.cssVar||a.cssVar,t=!!("object"==typeof r.cssVar&&r.cssVar?.key||i);"production"!==process.env.NODE_ENV&&o(!e||t,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return Be(()=>{if(!e)return t;const o={...a.components};Object.keys(e.components||{}).forEach(t=>{o[t]={...o[t],...e.components[t]}});const l=`css-var-${i.replace(/:/g,"")}`,s={prefix:n?.prefixCls,...a.cssVar,...r.cssVar,key:r.cssVar?.key||l};return{...a,...r,token:{...a.token,...r.token},components:o,cssVar:s}},[r,a],(e,t)=>e.some((e,n)=>!tn(e,t[n],!0)))}(x,w.theme,{prefixCls:ze("")});"production"!==process.env.NODE_ENV&&(Ts=Ts||!!He);const Fe={csp:Le,autoInsertSpaceInButton:r,alert:a,affix:i,anchor:l,locale:c||y,direction:u,space:p,splitter:m,virtual:f,popupMatchSelectWidth:g??h,popupOverflow:b,getPrefixCls:ze,iconPrefixCls:Ae,theme:He,segmented:S,statistic:E,spin:k,calendar:N,carousel:_,cascader:I,collapse:P,typography:O,checkbox:D,descriptions:R,divider:M,drawer:B,skeleton:T,steps:z,image:A,input:Y,textArea:Z,otp:Q,layout:L,list:H,mentions:F,modal:j,progress:V,result:W,slider:K,breadcrumb:q,masonry:U,menu:X,pagination:G,empty:J,badge:ee,radio:te,rate:ne,ribbon:oe,switch:re,transfer:ae,avatar:ie,message:le,tag:se,table:ce,card:de,cardMeta:ue,tabs:pe,timeline:me,timePicker:fe,upload:he,notification:ge,tree:ve,colorPicker:be,datePicker:ye,rangePicker:we,flex:Ce,wave:xe,dropdown:$e,warning:Se,tour:Ee,tooltip:ke,popover:Ne,popconfirm:_e,qrcode:Ie,floatButton:Pe,floatButtonGroup:Oe,variant:De,inputNumber:Re,treeSelect:Me,watermark:Te};if("production"!==process.env.NODE_ENV){ht("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.")}const je={...w};Object.keys(Fe).forEach(e=>{void 0!==Fe[e]&&(je[e]=Fe[e])}),zs.forEach(t=>{const n=e[t];n&&(je[t]=n)}),void 0!==r&&(je.button={autoInsertSpace:r,...je.button});const Ve=Be(()=>je,je,(e,t)=>{const n=Object.keys(e),o=Object.keys(t);return n.length!==o.length||n.some(n=>e[n]!==t[n])}),{layer:We}=o.useContext(cn),Ke=o.useMemo(()=>({prefixCls:Ae,csp:Le,layer:We?"antd":void 0}),[Ae,Le,We]);let qe=o.createElement(o.Fragment,null,o.createElement(Bs,{dropdownMatchSelectWidth:h}),t);const Ue=o.useMemo(()=>Je(Xi.Form?.defaultValidateMessages||{},Ve.locale?.Form?.defaultValidateMessages||{},Ve.form?.validateMessages||{},s?.validateMessages||{}),[Ve,s?.validateMessages]);Object.keys(Ue).length>0&&(qe=o.createElement(kl.Provider,{value:Ue},qe)),c&&(qe=o.createElement(tl,{locale:c,_ANT_MARK__:Ji},qe)),(Ae||Le)&&(qe=o.createElement(Ba.Provider,{value:Ke},qe)),d&&(qe=o.createElement(Ps,{size:d},qe)),qe=o.createElement(Rs,null,qe),ke?.unique&&(qe=o.createElement(Es,null,qe));const Xe=o.useMemo(()=>{const{algorithm:e,token:t,components:n,cssVar:o,...r}=He||{},a=e&&(!Array.isArray(e)||e.length>0)?fn(e):fa,i={};Object.entries(n||{}).forEach(([e,t])=>{const n={...t};"algorithm"in n&&(!0===n.algorithm?n.theme=a:(Array.isArray(n.algorithm)||"function"==typeof n.algorithm)&&(n.theme=fn(n.algorithm)),delete n.algorithm),i[e]=n});const l={...Pr,...t};return{...r,theme:a,token:l,components:i,override:{override:l,...i},cssVar:o}},[He]);return x&&(qe=o.createElement(ga.Provider,{value:Xe},qe)),Ve.warning&&(qe=o.createElement(ft.Provider,{value:Ve.warning},qe)),void 0!==$&&(qe=o.createElement(Ns,{disabled:$},qe)),o.createElement(Ft.Provider,{value:Ve},qe)},Ls=e=>{const t=o.useContext(Ft),n=o.useContext(Zi);return o.createElement(As,{parentContext:t,legacyLocale:n,...e})};Ls.ConfigContext=Ft,Ls.SizeContext=Os,Ls.config=e=>{},Ls.useConfig=function(){return{componentDisabled:m(_s),componentSize:m(Os)}},Object.defineProperty(Ls,"SizeContext",{get:()=>("production"!==process.env.NODE_ENV&>(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Os)}),"production"!==process.env.NODE_ENV&&(Ls.displayName="ConfigProvider");var Hs=Ls;const Fs={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){const{keyCode:t}=e;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=Fs.F1&&t<=Fs.F12)return!1;switch(t){case Fs.ALT:case Fs.CAPS_LOCK:case Fs.CONTEXT_MENU:case Fs.CTRL:case Fs.DOWN:case Fs.END:case Fs.ESC:case Fs.HOME:case Fs.INSERT:case Fs.LEFT:case Fs.MAC_FF_META:case Fs.META:case Fs.NUMLOCK:case Fs.NUM_CENTER:case Fs.PAGE_DOWN:case Fs.PAGE_UP:case Fs.PAUSE:case Fs.PRINT_SCREEN:case Fs.RIGHT:case Fs.SHIFT:case Fs.UP:case Fs.WIN_KEY:case Fs.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Fs.ZERO&&e<=Fs.NINE)return!0;if(e>=Fs.NUM_ZERO&&e<=Fs.NUM_MULTIPLY)return!0;if(e>=Fs.A&&e<=Fs.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Fs.SPACE:case Fs.QUESTION_MARK:case Fs.NUM_PLUS:case Fs.NUM_MINUS:case Fs.NUM_PERIOD:case Fs.NUM_DIVISION:case Fs.SEMICOLON:case Fs.DASH:case Fs.EQUALS:case Fs.COMMA:case Fs.PERIOD:case Fs.SLASH:case Fs.APOSTROPHE:case Fs.SINGLE_QUOTE:case Fs.OPEN_SQUARE_BRACKET:case Fs.BACKSLASH:case Fs.CLOSE_SQUARE_BRACKET:return!0;default:return!1}},isEditableTarget:function(e){const t=e.target;if(!(t instanceof HTMLElement))return!1;const n=t.tagName;return!("INPUT"!==n&&"TEXTAREA"!==n&&"SELECT"!==n&&!t.isContentEditable)}};var js={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};function Vs(){return Vs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Vs.apply(this,arguments)}const Ws=(e,t)=>o.createElement(Ga,Vs({},e,{ref:t,icon:js})),Ks=o.forwardRef(Ws);
|
|
13
|
-
/** */"production"!==process.env.NODE_ENV&&(Ks.displayName="LoadingOutlined");var qs=Ks;const Us="__rc_react_root__";const Xs=()=>({height:0,opacity:0}),Gs=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Ys=e=>({height:e?e.offsetHeight:0}),Zs=(e,t)=>!0===t?.deadline||"height"===t.propertyName,Qs=(e=At)=>({motionName:`${e}-motion-collapse`,onAppearStart:Xs,onEnterStart:Xs,onAppearActive:Gs,onEnterActive:Gs,onLeaveStart:Ys,onLeaveActive:Xs,onAppearEnd:Zs,onEnterEnd:Zs,onLeaveEnd:Zs,motionDeadline:500}),Js=(e,t,n)=>void 0!==n?n:`${e}-${t}`;var ec=Oa("Wave",e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}});const tc=`${At}-wave-target`;function nc(e){return e&&"string"==typeof e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e&&"canvastext"!==e}function oc(e){return Number.isNaN(e)?0:e}const rc=e=>{const{className:t,target:n,component:r,colorSource:a}=e,i=o.useRef(null),[l,s]=o.useState(null),[c,d]=o.useState([]),[u,p]=o.useState(0),[m,f]=o.useState(0),[h,g]=o.useState(0),[v,b]=o.useState(0),[y,w]=o.useState(!1),C={left:u,top:m,width:h,height:v,borderRadius:c.map(e=>`${e}px`).join(" ")};function x(){const e=getComputedStyle(n);s(function(e,t=null){const n=getComputedStyle(e),{borderTopColor:o,borderColor:r,backgroundColor:a}=n;return t&&nc(n[t])?n[t]:[o,r,a].find(nc)??null}(n,a));const t="static"===e.position,{borderLeftWidth:o,borderTopWidth:r}=e;p(t?n.offsetLeft:oc(-Number.parseFloat(o))),f(t?n.offsetTop:oc(-Number.parseFloat(r))),g(n.offsetWidth),b(n.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:l,borderBottomLeftRadius:c,borderBottomRightRadius:u}=e;d([i,l,u,c].map(e=>oc(Number.parseFloat(e))))}if(l&&(C["--wave-color"]=l),o.useEffect(()=>{if(n){const e=zt(()=>{x(),w(!0)});let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(x),t.observe(n)),()=>{zt.cancel(e),t?.disconnect()}}},[n]),!y)return null;const $=("Checkbox"===r||"Radio"===r)&&n?.classList.contains(tc);return o.createElement(Ti,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{if(t.deadline||"opacity"===t.propertyName){const e=i.current?.parentElement;(async function(e){return Promise.resolve().then(()=>{e[Us]?.unmount(),delete e[Us]})})(e).then(()=>{e?.remove()})}return!1}},({className:e},n)=>o.createElement("div",{ref:je(i,n),className:ie(t,e,{"wave-quick":$}),style:C}))};var ac=(e,t)=>{const{component:n}=t;if("Checkbox"===n&&!e.querySelector("input")?.checked)return;const r=document.createElement("div");r.style.position="absolute",r.style.left="0px",r.style.top="0px",e?.insertBefore(r,e?.firstChild),function(e,t){const n=t[Us]||k(t);n.render(e),t[Us]=n}(o.createElement(rc,{...t,target:e}),r)};var ic=(e,t,n,r)=>{const{wave:a}=o.useContext(Ft),[,i,l]=$a(),s=$e(o=>{const s=e.current;if(a?.disabled||!s)return;const c=s.querySelector(`.${tc}`)||s,{showEffect:d}=a||{};(d||ac)(c,{className:t,token:i,component:n,event:o,hashId:l,colorSource:r})}),c=o.useRef(null);o.useEffect(()=>()=>{zt.cancel(c.current)},[]);return e=>{zt.cancel(c.current),c.current=zt(()=>{s(e)})}};const lc=e=>{const{children:t,disabled:n,component:o,colorSource:i}=e,{getPrefixCls:l}=m(Ft),s=a(null),c=l("wave"),d=ec(c),u=ic(s,ie(c,d),o,i);if(r.useEffect(()=>{const e=s.current;if(!e||e.nodeType!==window.Node.ELEMENT_NODE||n)return;const t=t=>{!os(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")&&!e.className.includes("disabled:")||"true"===e.getAttribute("aria-disabled")||e.className.includes("-leave")||u(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}},[n]),!r.isValidElement(t))return t??null;return xl(t,{ref:We(t)?je(qe(t),s):s})};"production"!==process.env.NODE_ENV&&(lc.displayName="Wave");var sc=lc;var cc=e=>{const t=r.useContext(Os);return r.useMemo(()=>e?"string"==typeof e?e??t:"function"==typeof e?e(t):t:t,[e,t])};const dc=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}};var uc=Pa(["Space","Compact"],e=>[dc(e)],()=>({}),{resetStyle:!1});const pc=o.createContext(null),mc=(e,t)=>{const n=o.useContext(pc),r=o.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:r,isLastItem:a}=n,i="vertical"===o?"-vertical-":"-";return ie(`${e}-compact${i}item`,{[`${e}-compact${i}first-item`]:r,[`${e}-compact${i}last-item`]:a,[`${e}-compact${i}item-rtl`]:"rtl"===t})},[e,t,n]);return{compactSize:n?.compactSize,compactDirection:n?.compactDirection,compactItemClassnames:r}},fc=e=>{const{children:t}=e;return o.createElement(pc.Provider,{value:null},t)},hc=e=>{const{children:t,...n}=e;return o.createElement(pc.Provider,{value:o.useMemo(()=>n,[n])},t)},gc=o.createContext(void 0);var vc=e=>{const{getPrefixCls:t,direction:n}=o.useContext(Ft),{prefixCls:r,size:a,className:i,...l}=e,s=t("btn-group",r),[,,c]=$a(),d=o.useMemo(()=>{switch(a){case"large":return"lg";case"small":return"sm";default:return""}},[a]);if("production"!==process.env.NODE_ENV){const e=ht("Button.Group");e.deprecated(!1,"Button.Group","Space.Compact"),"production"!==process.env.NODE_ENV&&e(!a||["large","small","middle"].includes(a),"usage","Invalid prop `size`.")}const u=ie(s,{[`${s}-${d}`]:d,[`${s}-rtl`]:"rtl"===n},i,c);return o.createElement(gc.Provider,{value:a},o.createElement("div",{...l,className:u}))};const bc=/^[\u4E00-\u9FA5]{2}$/,yc=bc.test.bind(bc);function wc(e){return"string"==typeof e}function Cc(e){return"text"===e||"link"===e}function xc(e,t,n,o){let a=!1;const i=[];return r.Children.forEach(e,e=>{const t=typeof e,n="string"===t||"number"===t;if(a&&n){const t=i.length-1,n=i[t];i[t]=`${n}${e}`}else i.push(e);a=n}),r.Children.map(i,e=>function(e,t,n,o){if(!ol(e)||""===e)return;const a=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&wc(e.type)&&yc(e.props.children)?xl(e,e=>({...e,children:e.children.split("").join(a),className:o,style:n})):wc(e)?r.createElement("span",{className:o,style:n},yc(e)?e.split("").join(a):e):Cl(e)?r.createElement("span",{className:o,style:n},e):xl(e,e=>({...e,className:ie(e.className,o)||void 0,style:{...e.style,...n}}))}(e,t,n,o))}["default","primary","danger"].concat(Ot(Nr));const $c=b((e,t)=>{const{className:n,style:o,children:a,prefixCls:i}=e,l=ie(`${i}-icon`,n);return r.createElement("span",{ref:t,className:l,style:o},a)});var Sc=$c;const Ec=b((e,t)=>{const{prefixCls:n,className:o,style:a,iconClassName:i}=e,l=ie(`${n}-loading-icon`,o);return r.createElement(Sc,{prefixCls:n,className:l,style:a,ref:t},r.createElement(qs,{className:i}))}),kc=()=>({width:0,opacity:0,transform:"scale(0)"}),Nc=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"});var _c=e=>{const{prefixCls:t,loading:n,existIcon:o,className:a,style:i,mount:l}=e,s=!!n;return o?r.createElement(Ec,{prefixCls:t,className:a,style:i}):r.createElement(Ti,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!l,motionEnter:!l,motionLeave:!l,removeOnLeave:!0,onAppearStart:kc,onAppearActive:Nc,onEnterStart:kc,onEnterActive:Nc,onLeaveStart:Nc,onLeaveActive:kc},({className:e,style:n},o)=>{const l={...i,...n};return r.createElement(Ec,{prefixCls:t,className:ie(a,e),style:l,ref:o})})};const Ic=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}});var Pc=e=>{const{componentCls:t,fontSize:n,lineWidth:o,groupBorderColor:r,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(o).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Ic(`${t}-primary`,r),Ic(`${t}-danger`,a)]}};const Oc=e=>Math.round(Number(e||0));class Dc extends Tr{constructor(e){super((e=>{if(e instanceof Tr)return e;if(e&&"object"==typeof e&&"h"in e&&"b"in e){const{b:t,...n}=e;return{...n,v:t}}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e})(e))}toHsbString(){const e=this.toHsb(),t=Oc(100*e.s),n=Oc(100*e.b),o=Oc(e.h),r=e.a,a=`hsb(${o}, ${t}%, ${n}%)`,i=`hsba(${o}, ${t}%, ${n}%, ${r.toFixed(0===r?0:2)})`;return 1===r?a:i}toHsb(){const{v:e,...t}=this.toHsv();return{...t,b:e,a:this.a}}}const Rc="rc-color-picker",Mc=e=>e instanceof Dc?e:new Dc(e),Bc=Mc("#1677ff"),Tc=e=>{const{offset:t,targetRef:n,containerRef:o,color:r,type:a}=e,{width:i,height:l}=o.current.getBoundingClientRect(),{width:s,height:c}=n.current.getBoundingClientRect(),d=s/2,u=c/2,p=(t.x+d)/i,m=1-(t.y+u)/l,f=r.toHsb(),h=p,g=(t.x+d)/i*360;if(a)switch(a){case"hue":return Mc({...f,h:g<=0?0:g});case"alpha":return Mc({...f,a:h<=0?0:h})}return Mc({h:f.h,s:p<=0?0:p,b:m>=1?1:m,a:f.a})},zc=(e,t)=>{const n=e.toHsb();switch(t){case"hue":return{x:n.h/360*100,y:50};case"alpha":return{x:100*e.a,y:50};default:return{x:100*n.s,y:100*(1-n.b)}}},Ac=({color:e,prefixCls:t,className:n,style:o,onClick:a})=>{const i=`${t}-color-block`;return r.createElement("div",{className:ie(i,n),style:o,onClick:a},r.createElement("div",{className:`${i}-inner`,style:{background:e}}))};function Lc(e){const{targetRef:t,containerRef:n,direction:o,onDragChange:r,onDragChangeComplete:s,calculate:c,color:d,disabledDrag:u}=e,[p,m]=i({x:0,y:0}),f=a(null),h=a(null);l(()=>{m(c())},[d]),l(()=>()=>{document.removeEventListener("mousemove",f.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",f.current),document.removeEventListener("touchend",h.current),f.current=null,h.current=null},[]);const g=e=>{const{pageX:a,pageY:i}=function(e){const t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,o=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-o}}(e),{x:l,y:s,width:c,height:d}=n.current.getBoundingClientRect(),{width:u,height:m}=t.current.getBoundingClientRect(),f=u/2,h=m/2,g=Math.max(0,Math.min(a-l,c))-f,v=Math.max(0,Math.min(i-s,d))-h,b={x:g,y:"x"===o?p.y:v};if(0===u&&0===m||u!==m)return!1;r?.(b)},v=e=>{e.preventDefault(),g(e)},b=e=>{e.preventDefault(),document.removeEventListener("mousemove",f.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",f.current),document.removeEventListener("touchend",h.current),f.current=null,h.current=null,s?.()};return[p,e=>{document.removeEventListener("mousemove",f.current),document.removeEventListener("mouseup",h.current),u||(g(e),document.addEventListener("mousemove",v),document.addEventListener("mouseup",b),document.addEventListener("touchmove",v),document.addEventListener("touchend",b),f.current=v,h.current=b)}]}const Hc=({size:e="default",color:t,prefixCls:n})=>r.createElement("div",{className:ie(`${n}-handler`,{[`${n}-handler-sm`]:"small"===e}),style:{backgroundColor:t}}),Fc=({children:e,style:t,prefixCls:n})=>r.createElement("div",{className:`${n}-palette`,style:{position:"relative",...t}},e),jc=b((e,t)=>{const{children:n,x:o,y:a}=e;return r.createElement("div",{ref:t,style:{position:"absolute",left:`${o}%`,top:`${a}%`,zIndex:1,transform:"translate(-50%, -50%)"}},n)}),Vc=({color:e,onChange:t,prefixCls:n,onChangeComplete:o,disabled:i})=>{const l=a(),s=a(),c=a(e),d=$e(n=>{const o=Tc({offset:n,targetRef:s,containerRef:l,color:e});c.current=o,t(o)}),[u,p]=Lc({color:e,containerRef:l,targetRef:s,calculate:()=>zc(e),onDragChange:d,onDragChangeComplete:()=>o?.(c.current),disabledDrag:i});return r.createElement("div",{ref:l,className:`${n}-select`,onMouseDown:p,onTouchStart:p},r.createElement(Fc,{prefixCls:n},r.createElement(jc,{x:u.x,y:u.y,ref:s},r.createElement(Hc,{color:e.toRgbString(),prefixCls:n})),r.createElement("div",{className:`${n}-saturation`,style:{backgroundColor:`hsl(${e.toHsb().h},100%, 50%)`,backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},Wc=({colors:e,children:t,direction:n="to right",type:o,prefixCls:a})=>{const i=c(()=>e.map((t,n)=>{let r=Mc(t);return"alpha"===o&&n===e.length-1&&(r=new Dc(r.setA(1))),r.toRgbString()}).join(","),[e,o]);return r.createElement("div",{className:`${a}-gradient`,style:{position:"absolute",inset:0,background:`linear-gradient(${n}, ${i})`}},t)},Kc=e=>{const{prefixCls:t,colors:n,disabled:o,onChange:i,onChangeComplete:l,color:s,type:c}=e,d=a(null),u=a(null),p=a(s),m=e=>"hue"===c?e.getHue():100*e.a,f=$e(e=>{const t=Tc({offset:e,targetRef:u,containerRef:d,color:s,type:c});p.current=t,i(m(t))}),[h,g]=Lc({color:s,targetRef:u,containerRef:d,calculate:()=>zc(s,c),onDragChange:f,onDragChangeComplete(){l(m(p.current))},direction:"x",disabledDrag:o}),v=r.useMemo(()=>{if("hue"===c){const e=s.toHsb();e.s=1,e.b=1,e.a=1;return new Dc(e)}return s},[s,c]),b=r.useMemo(()=>n.map(e=>`${e.color} ${e.percent}%`),[n]);return r.createElement("div",{ref:d,className:ie(`${t}-slider`,`${t}-slider-${c}`),onMouseDown:g,onTouchStart:g},r.createElement(Fc,{prefixCls:t},r.createElement(jc,{x:h.x,y:h.y,ref:u},r.createElement(Hc,{size:"small",color:v.toHexString(),prefixCls:t})),r.createElement(Wc,{colors:b,type:c,prefixCls:t})))};function qc(e){return o.useMemo(()=>{const{slider:t}=e||{};return[t||Kc]},[e])}function Uc(){return Uc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Uc.apply(this,arguments)}const Xc=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],Gc=b((e,t)=>{const{value:n,defaultValue:o,prefixCls:a=Rc,onChange:i,onChangeComplete:l,className:s,style:d,panelRender:u,disabledAlpha:p=!1,disabled:m=!1,components:f}=e,[h]=qc(f),[g,v]=((e,t)=>{const[n,o]=_e(e,t);return[c(()=>Mc(n),[n]),o]})(o||Bc,n),b=c(()=>g.setA(1).toRgbString(),[g]),y=(e,t)=>{n||v(e),i?.(e,t)},w=e=>new Dc(g.setHue(e)),C=e=>new Dc(g.setA(e/100)),x=ie(`${a}-panel`,s,{[`${a}-panel-disabled`]:m}),$={prefixCls:a,disabled:m,color:g},S=r.createElement(r.Fragment,null,r.createElement(Vc,Uc({onChange:y},$,{onChangeComplete:l})),r.createElement("div",{className:`${a}-slider-container`},r.createElement("div",{className:ie(`${a}-slider-group`,{[`${a}-slider-group-disabled-alpha`]:p})},r.createElement(h,Uc({},$,{type:"hue",colors:Xc,min:0,max:359,value:g.getHue(),onChange:e=>{y(w(e),{type:"hue",value:e})},onChangeComplete:e=>{l&&l(w(e))}})),!p&&r.createElement(h,Uc({},$,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:b}],min:0,max:100,value:100*g.a,onChange:e=>{y(C(e),{type:"alpha",value:e})},onChangeComplete:e=>{l&&l(C(e))}}))),r.createElement(Ac,{color:g.toRgbString(),prefixCls:a})));return r.createElement("div",{className:x,style:d,ref:t},"function"==typeof u?u(S):S)});"production"!==process.env.NODE_ENV&&(Gc.displayName="ColorPicker");let Yc=function(){return or(function e(t){if(tr(this,e),this.cleared=!1,t instanceof e)return this.metaColor=t.metaColor.clone(),this.colors=t.colors?.map(t=>({color:new e(t.color),percent:t.percent})),void(this.cleared=t.cleared);const n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:t,percent:n})=>({color:new e(t),percent:n})),this.metaColor=new Dc(this.colors[0].color.metaColor)):this.metaColor=new Dc(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)},[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return e=this.toHexString(),t=this.metaColor.a<1,e?((e,t)=>e?.replace(/[^\w/]/g,"").slice(0,t?8:6)||"")(e,t):"";var e,t}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:e}=this;if(e){return`linear-gradient(90deg, ${e.map(e=>`${e.color.toRgbString()} ${e.percent}%`).join(", ")})`}return this.metaColor.toRgbString()}},{key:"equals",value:function(e){return!(!e||this.isGradient()!==e.isGradient())&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every((t,n)=>{const o=e.colors[n];return t.percent===o.percent&&t.color.equals(o.color)}):this.toHexString()===e.toHexString())}}])}();var Zc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};function Qc(){return Qc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Qc.apply(this,arguments)}const Jc=(e,t)=>o.createElement(Ga,Qc({},e,{ref:t,icon:Zc})),ed=o.forwardRef(Jc);
|
|
14
|
-
/** */"production"!==process.env.NODE_ENV&&(ed.displayName="RightOutlined");var td=ed;function nd(){return nd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},nd.apply(null,arguments)}var od=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}});const rd=e=>({animationDuration:e,animationFillMode:"both"}),ad=e=>({animationDuration:e,animationFillMode:"both"}),id=(e,t,n,o,r=!1)=>{const a=r?"&":"";return{[`\n ${a}${e}-enter,\n ${a}${e}-appear\n `]:{...rd(o),animationPlayState:"paused"},[`${a}${e}-leave`]:{...ad(o),animationPlayState:"paused"},[`\n ${a}${e}-enter${e}-enter-active,\n ${a}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},ld=new Uo("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),sd=new Uo("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),cd=(e,t=!1)=>{const{antCls:n}=e,o=`${n}-fade`,r=t?"&":"";return[id(o,ld,sd,e.motionDurationMid,t),{[`\n ${r}${o}-enter,\n ${r}${o}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${r}${o}-leave`]:{animationTimingFunction:"linear"}}]},dd=new Uo("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ud=new Uo("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),pd=new Uo("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),md=new Uo("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),fd=new Uo("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),hd=new Uo("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),gd={"move-up":{inKeyframes:new Uo("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new Uo("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:dd,outKeyframes:ud},"move-left":{inKeyframes:pd,outKeyframes:md},"move-right":{inKeyframes:fd,outKeyframes:hd}},vd=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:a}=gd[t];return[id(o,r,a,e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},bd=new Uo("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),yd=new Uo("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),wd=new Uo("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Cd=new Uo("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),xd=new Uo("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),$d=new Uo("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Sd=new Uo("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Ed=new Uo("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),kd={"slide-up":{inKeyframes:bd,outKeyframes:yd},"slide-down":{inKeyframes:wd,outKeyframes:Cd},"slide-left":{inKeyframes:xd,outKeyframes:$d},"slide-right":{inKeyframes:Sd,outKeyframes:Ed}},Nd=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:a}=kd[t];return[id(o,r,a,e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},_d=new Uo("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Id=new Uo("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Pd=new Uo("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Od=new Uo("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Dd=new Uo("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Rd=new Uo("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Md={zoom:{inKeyframes:_d,outKeyframes:Id},"zoom-big":{inKeyframes:Pd,outKeyframes:Od},"zoom-big-fast":{inKeyframes:Pd,outKeyframes:Od},"zoom-left":{inKeyframes:new Uo("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new Uo("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new Uo("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new Uo("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:Dd,outKeyframes:Rd},"zoom-down":{inKeyframes:new Uo("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new Uo("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},Bd=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:a}=Md[t];return[id(o,r,a,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Td=e=>{const{paddingInline:t,onlyIconSize:n,borderColorDisabled:o}=e;return wr(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n,colorBorderDisabled:o})},zd=e=>{const t=e.contentFontSize??e.fontSize,n=e.contentFontSizeSM??e.fontSize,o=e.contentFontSizeLG??e.fontSizeLG,r=e.contentLineHeight??_r(t),a=e.contentLineHeightSM??_r(n),i=e.contentLineHeightLG??_r(o),l=((e,t)=>{const{r:n,g:o,b:r,a:a}=e.toRgb(),i=new Dc(e.toRgbString()).onBackground(t).toHsv();return a<=.5?i.v>.5:.299*n+.587*o+.114*r>192})(new Yc(e.colorBgSolid),"#fff")?"#000":"#fff",s=Nr.reduce((t,n)=>({...t,[`${n}ShadowColor`]:`0 ${wn(e.controlOutlineWidth)} 0 ${ba(e[`${n}1`],e.colorBgContainer)}`}),{}),c=e.colorBgContainerDisabled,d=e.colorBgContainerDisabled;return{...s,fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorderDisabled,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:l,contentFontSize:t,contentFontSizeSM:n,contentFontSizeLG:o,contentLineHeight:r,contentLineHeightSM:a,contentLineHeightLG:i,paddingBlock:Math.max((e.controlHeight-t*r)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-n*a)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-o*i)/2-e.lineWidth,0),defaultBgDisabled:c,dashedBgDisabled:d}};var Ad=e=>{const{componentCls:t,antCls:n}=e,o=((e,t)=>{const n=`--${e.replace(".","")}-${t}-`;return(e,t=!1)=>{const o=`${n}${e}`;return t?`var(${o})`:o}})(n,"btn");return{[t]:[{[o("border-width")]:"1px",[o("border-color")]:"#000",[o("border-color-hover")]:`var(${o("border-color")})`,[o("border-color-active")]:`var(${o("border-color")})`,[o("border-color-disabled")]:`var(${o("border-color")})`,[o("border-style")]:"solid",[o("text-color")]:"#000",[o("text-color-hover")]:`var(${o("text-color")})`,[o("text-color-active")]:`var(${o("text-color")})`,[o("text-color-disabled")]:`var(${o("text-color")})`,[o("bg-color")]:"#ddd",[o("bg-color-hover")]:`var(${o("bg-color")})`,[o("bg-color-active")]:`var(${o("bg-color")})`,[o("bg-color-disabled")]:e.colorBgContainerDisabled,[o("bg-color-container")]:e.colorBgContainer,[o("shadow")]:"none"},{border:`var(${o("border-width")}) var(${o("border-style")}) var(${o("border-color")})`,color:`var(${o("text-color")})`,backgroundColor:`var(${o("bg-color")})`,[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":{border:`var(${o("border-width")}) var(${o("border-style")}) var(${o("border-color-hover")})`,color:`var(${o("text-color-hover")})`,backgroundColor:`var(${o("bg-color-hover")})`},"&:active":{border:`var(${o("border-width")}) var(${o("border-style")}) var(${o("border-color-active")})`,color:`var(${o("text-color-active")})`,backgroundColor:`var(${o("bg-color-active")})`}}},{[`&${t}-variant-solid`]:{[o("solid-bg-color")]:`var(${o("color-base")})`,[o("solid-bg-color-hover")]:`var(${o("color-hover")})`,[o("solid-bg-color-active")]:`var(${o("color-active")})`,[o("border-color")]:"transparent",[o("text-color")]:e.colorTextLightSolid,[o("bg-color")]:`var(${o("solid-bg-color")})`,[o("bg-color-hover")]:`var(${o("solid-bg-color-hover")})`,[o("bg-color-active")]:`var(${o("solid-bg-color-active")})`,boxShadow:`var(${o("shadow")})`},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("border-color")]:`var(${o("color-base")})`,[o("border-color-hover")]:`var(${o("color-hover")})`,[o("border-color-active")]:`var(${o("color-active")})`,[o("bg-color")]:`var(${o("bg-color-container")})`,[o("text-color")]:`var(${o("color-base")})`,[o("text-color-hover")]:`var(${o("color-hover")})`,[o("text-color-active")]:`var(${o("color-active")})`,boxShadow:`var(${o("shadow")})`},[`&${t}-variant-dashed`]:{[o("border-style")]:"dashed",[o("bg-color-disabled")]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[o("border-color")]:"transparent",[o("text-color")]:`var(${o("color-base")})`,[o("bg-color")]:`var(${o("color-light")})`,[o("bg-color-hover")]:`var(${o("color-light-hover")})`,[o("bg-color-active")]:`var(${o("color-light-active")})`},[`&${t}-variant-text, &${t}-variant-link`]:{[o("border-color")]:"transparent",[o("text-color")]:`var(${o("color-base")})`,[o("text-color-hover")]:`var(${o("color-hover")})`,[o("text-color-active")]:`var(${o("color-active")})`,[o("bg-color")]:"transparent",[o("bg-color-hover")]:"transparent",[o("bg-color-active")]:"transparent",[`&:disabled, &${e.componentCls}-disabled`]:{background:"transparent",borderColor:"transparent"}},[`&${t}-variant-text`]:{[o("bg-color-hover")]:`var(${o("color-light")})`,[o("bg-color-active")]:`var(${o("color-light-active")})`}},{[`&${t}-variant-link`]:{[o("color-base")]:e.colorLink,[o("color-hover")]:e.colorLinkHover,[o("color-active")]:e.colorLinkActive},[`&${t}-color-primary`]:{[o("color-base")]:e.colorPrimary,[o("color-hover")]:e.colorPrimaryHover,[o("color-active")]:e.colorPrimaryActive,[o("color-light")]:e.colorPrimaryBg,[o("color-light-hover")]:e.colorPrimaryBgHover,[o("color-light-active")]:e.colorPrimaryBorder,[o("shadow")]:e.primaryShadow,[`&${t}-variant-solid`]:{[o("text-color")]:e.primaryColor,[o("text-color-hover")]:`var(${o("text-color")})`,[o("text-color-active")]:`var(${o("text-color")})`}},[`&${t}-color-dangerous`]:{[o("color-base")]:e.colorError,[o("color-hover")]:e.colorErrorHover,[o("color-active")]:e.colorErrorActive,[o("color-light")]:e.colorErrorBg,[o("color-light-hover")]:e.colorErrorBgFilledHover,[o("color-light-active")]:e.colorErrorBgActive,[o("shadow")]:e.dangerShadow,[`&${t}-variant-solid`]:{[o("text-color")]:e.dangerColor,[o("text-color-hover")]:`var(${o("text-color")})`,[o("text-color-active")]:`var(${o("text-color")})`}},[`&${t}-color-default`]:{[o("solid-bg-color")]:e.colorBgSolid,[o("solid-bg-color-hover")]:e.colorBgSolidHover,[o("solid-bg-color-active")]:e.colorBgSolidActive,[o("color-base")]:e.defaultBorderColor,[o("color-hover")]:e.defaultHoverBorderColor,[o("color-active")]:e.defaultActiveBorderColor,[o("color-light")]:e.colorFillTertiary,[o("color-light-hover")]:e.colorFillSecondary,[o("color-light-active")]:e.colorFill,[o("text-color")]:e.colorText,[o("text-color-hover")]:e.defaultHoverBorderColor,[o("text-color-active")]:e.defaultActiveBorderColor,[o("shadow")]:e.defaultShadow,[`&${t}-variant-solid`]:{[o("text-color")]:e.solidTextColor,[o("text-color-hover")]:`var(${o("text-color")})`,[o("text-color-active")]:`var(${o("text-color")})`},[`&${t}-variant-filled, &${t}-variant-text`]:{[o("text-color-hover")]:`var(${o("text-color")})`,[o("text-color-active")]:`var(${o("text-color")})`},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("bg-color-hover")]:e.defaultHoverBg,[o("bg-color-active")]:e.defaultActiveBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("text-color")]:e.defaultGhostColor,[o("border-color")]:e.defaultGhostBorderColor}}}},Nr.map(n=>{const r=e[`${n}6`],a=e[`${n}1`],i=e[`${n}5`],l=e[`${n}2`],s=e[`${n}3`],c=e[`${n}7`],d=e[`${n}ShadowColor`];return{[`&${t}-color-${n}`]:{[o("color-base")]:r,[o("color-hover")]:i,[o("color-active")]:c,[o("color-light")]:a,[o("color-light-hover")]:l,[o("color-light-active")]:s,[o("shadow")]:d}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",borderColor:e.colorBorderDisabled,background:`var(${o("bg-color-disabled")})`,color:e.colorTextDisabled,boxShadow:"none"}},{[`&${t}-background-ghost`]:{[o("bg-color")]:"transparent",[o("shadow")]:"none"}}]}};const Ld=e=>{const{componentCls:t,iconCls:n,fontWeight:o,opacityLoading:r,motionDurationSlow:a,motionEaseInOut:i,iconGap:l,calc:s}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:l,alignItems:"center",justifyContent:"center",fontWeight:o,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation","&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}},"> a":{color:"currentColor"},"&:not(:disabled)":Na(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:r,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(e=>`${e} ${a} ${i}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:s(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:s(l).mul(-1).equal()}}}}}},Hd=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),Fd=(e,t="")=>{const{componentCls:n,controlHeight:o,fontSize:r,borderRadius:a,buttonPaddingHorizontal:i,iconCls:l,buttonPaddingVertical:s,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:r,height:o,padding:`${wn(s)} ${wn(i)}`,borderRadius:a,[`&${n}-icon-only`]:{width:o,[l]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:Hd(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},jd=e=>{const t=wr(e,{fontSize:e.contentFontSize});return Fd(t,e.componentCls)},Vd=e=>{const t=wr(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Fd(t,`${e.componentCls}-sm`)},Wd=e=>{const t=wr(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Fd(t,`${e.componentCls}-lg`)},Kd=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}};var qd=Pa("Button",e=>{const t=Td(e);return[Ld(t),jd(t),Vd(t),Wd(t),Kd(t),Ad(t),Pc(t)]},zd,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Ud(e,t,n,o){const{focusElCls:r,focus:a,borderElCls:i}=n,l=i?"> *":"",s=["hover",a?"focus":null,"active"].filter(Boolean).map(e=>`&:${e} ${l}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${o}-status-success)`]:{zIndex:2},"&-item":{[s]:{zIndex:3},...r?{[`&${r}`]:{zIndex:3}}:{},[`&[disabled] ${l}`]:{zIndex:0}}}}function Xd(e,t,n){const{borderElCls:o}=n,r=o?`> ${o}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${r}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Gd(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:o}=t,r=o||n,a=`${r}-compact`;return{[a]:{...Ud(e,a,t,r),...Xd(r,a,t)}}}function Yd(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function Zd(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:{...Yd(e,t,e.componentCls),...(n=e.componentCls,o=t,{[`&-item:not(${o}-first-item):not(${o}-last-item)`]:{borderRadius:0},[`&-item${o}-first-item:not(${o}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${o}-last-item:not(${o}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}})}};var n,o}const Qd=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:o,calc:r}=e,a=r(o).mul(-1).equal(),i=e=>{const r=`${t}-compact${e?"-vertical":""}-item`,i=`${r}${t}-primary:not([disabled])`;return{[r]:{transition:"none"},[`${i} + ${i}::before`]:{position:"absolute",top:e?a:0,insetInlineStart:e?0:a,backgroundColor:n,content:'""',width:e?"100%":o,height:e?o:"100%"}}};return{...i(),...i(!0)}};var Jd=Da(["Button","compact"],e=>{const t=Td(e);return[Gd(t),Zd(t),Qd(t)]},zd);const eu={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},tu=r.forwardRef((e,t)=>{const{_skipSemantic:n,loading:o=!1,prefixCls:s,color:d,variant:u,type:p,danger:f=!1,shape:h,size:g,disabled:v,className:b,rootClassName:y,children:w,icon:C,iconPosition:x,iconPlacement:$,ghost:S=!1,block:E=!1,htmlType:k="button",classNames:N,styles:_,style:I,autoInsertSpace:P,autoFocus:O,...D}=e,R=st(w),M=p||"default",{button:B}=r.useContext(Ft),T=h||B?.shape||"default",[z,A]=c(()=>{if(d&&u)return[d,u];if(p||f){const e=eu[M]||[];return f?["danger",e[1]]:e}return B?.color&&B?.variant?[B.color,B.variant]:["default","outlined"]},[d,u,p,f,B?.color,B?.variant,M]),[L,H]=c(()=>S&&"solid"===A?[z,"outlined"]:[z,A],[z,A,S]),F="danger"===L,j=F?"dangerous":L,{getPrefixCls:V,direction:W,autoInsertSpace:K,className:q,style:U,classNames:X,styles:G}=Vt("button"),Y=P??K??!0,Z=V("btn",s),[Q,J]=qd(Z),ee=m(_s),te=v??ee,ne=m(gc),oe=c(()=>function(e){if("object"==typeof e&&e){let t=e?.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(o),[o]),[re,ae]=i(oe.loading),[le,se]=i(!1),ce=a(null),de=Ve(t,ce),ue=1===R.length&&!C&&!Cc(H),pe=a(!0);r.useEffect(()=>(pe.current=!1,()=>{pe.current=!0}),[]),ke(()=>{let e=null;return oe.delay>0?e=setTimeout(()=>{e=null,ae(!0)},oe.delay):ae(oe.loading),function(){e&&(clearTimeout(e),e=null)}},[oe.delay,oe.loading]),l(()=>{if(!ce.current||!Y)return;const e=ce.current.textContent||"";ue&&yc(e)?le||se(!0):le&&se(!1)}),l(()=>{O&&ce.current&&ce.current.focus()},[]);const me=r.useCallback(t=>{re||te?t.preventDefault():e.onClick?.(t)},[e.onClick,re,te]);if("production"!==process.env.NODE_ENV){const e=ht("Button");"production"!==process.env.NODE_ENV&&e(!("string"==typeof C&&C.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${C}\` at https://ant.design/components/icon`),"production"!==process.env.NODE_ENV&&e(!(S&&Cc(H)),"usage","`link` or `text` button can't be a `ghost` button."),e.deprecated(!x,"iconPosition","iconPlacement")}const{compactSize:fe,compactItemClassnames:he}=mc(Z,W),ge={large:"lg",small:"sm",middle:void 0},ve=cc(e=>g??fe??ne??e),be=ve?ge[ve]??"":"",ye=re?"loading":C,we=$??x??"start",Ce=lt(D,["navigate"]),xe={...e,type:M,color:L,variant:H,danger:F,shape:T,size:ve,disabled:te,loading:re,iconPlacement:we},[$e,Se]=ul([n?void 0:X,N],[n?void 0:G,_],{props:xe}),Ee=ie(Z,Q,J,{[`${Z}-${T}`]:"default"!==T&&"square"!==T&&T,[`${Z}-${M}`]:M,[`${Z}-dangerous`]:f,[`${Z}-color-${j}`]:j,[`${Z}-variant-${H}`]:H,[`${Z}-${be}`]:be,[`${Z}-icon-only`]:!w&&0!==w&&!!ye,[`${Z}-background-ghost`]:S&&!Cc(H),[`${Z}-loading`]:re,[`${Z}-two-chinese-chars`]:le&&Y&&!re,[`${Z}-block`]:E,[`${Z}-rtl`]:"rtl"===W,[`${Z}-icon-end`]:"end"===we},he,b,y,q,$e.root),Ne={...Se.root,...U,...I},_e={className:$e.icon,style:Se.icon},Ie=e=>r.createElement(Sc,{prefixCls:Z,..._e},e),Pe=r.createElement(_c,{existIcon:!!C,prefixCls:Z,loading:re,mount:pe.current,..._e});let Oe;Oe=C&&!re?Ie(C):o&&"object"==typeof o&&o.icon?Ie(o.icon):Pe;const De=ol(w)?xc(w,ue&&Y,Se.content,$e.content):null;if(void 0!==Ce.href)return r.createElement("a",{...Ce,className:ie(Ee,{[`${Z}-disabled`]:te}),href:te?void 0:Ce.href,style:Ne,onClick:me,ref:de,tabIndex:te?-1:0,"aria-disabled":te},Oe,De);let Re=r.createElement("button",{...D,type:k,className:Ee,style:Ne,onClick:me,disabled:te,ref:de},Oe,De,he&&r.createElement(Jd,{prefixCls:Z}));return Cc(H)||(Re=r.createElement(sc,{component:"Button",disabled:re},Re)),Re}),nu=tu;nu.Group=vc,nu.__ANT_BUTTON=!0,"production"!==process.env.NODE_ENV&&(nu.displayName="Button");var ou=nu;const ru="RC_FORM_INTERNAL_HOOKS",au=()=>{at(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},iu=o.createContext({getFieldValue:au,getFieldsValue:au,getFieldError:au,getFieldWarning:au,getFieldsError:au,isFieldsTouched:au,isFieldTouched:au,isFieldValidating:au,isFieldsValidating:au,resetFields:au,setFields:au,setFieldValue:au,setFieldsValue:au,validateFields:au,submit:au,getInternalHooks:()=>(au(),{dispatch:au,initEntityValue:au,registerField:au,useSubscribe:au,setInitialValues:au,destroyForm:au,setCallbacks:au,registerWatch:au,getFields:au,setValidateMessages:au,setPreserve:au,getInitialValue:au})}),lu=o.createContext(null);function su(e){return null==e?[]:Array.isArray(e)?e:[e]}function cu(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var du=cu();function uu(e){var t="function"==typeof Map?new Map:void 0;return uu=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(sr())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var r=new(e.bind.apply(e,o));return n&&ar(r,n.prototype),r}(e,arguments,lr(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ar(n,e)},uu(e)}var pu=/%[sdj%]/g,mu=function(){};function fu(e){if(!e||!e.length)return null;var t={};return e.forEach(function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function hu(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=0,a=n.length;return"function"==typeof e?e.apply(null,n):"string"==typeof e?e.replace(pu,function(e){if("%%"===e)return"%";if(r>=a)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}break;default:return e}}):e}function gu(e,t){return null==e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e))}function vu(e,t,n){var o=0,r=e.length;!function a(i){if(i&&i.length)n(i);else{var l=o;o+=1,l<r?t(e[l],a):n([])}}([])}"undefined"!=typeof process&&process.env&&"production"!==process.env.NODE_ENV&&"undefined"!=typeof window&&"undefined"!=typeof document&&(mu=function(e,t){"undefined"!=typeof console&&console.warn&&"undefined"==typeof ASYNC_VALIDATOR_NO_WARNING&&t.every(function(e){return"string"==typeof e})});var bu=function(){ir(t,uu(Error));var e=cr(t);function t(n,o){var r;return tr(this,t),Qo(rr(r=e.call(this,"Async Validation Error")),"errors",void 0),Qo(rr(r),"fields",void 0),r.errors=n,r.fields=o,r}return or(t)}();function yu(e,t,n,o,r){if(t.first){var a=new Promise(function(t,a){var i=function(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Ot(e[n]||[]))}),t}(e);vu(i,n,function(e){return o(e),e.length?a(new bu(e,fu(e))):t(r)})});return a.catch(function(e){return e}),a}var i=!0===t.firstFields?Object.keys(e):t.firstFields||[],l=Object.keys(e),s=l.length,c=0,d=[],u=new Promise(function(t,a){var u=function(e){if(d.push.apply(d,e),++c===s)return o(d),d.length?a(new bu(d,fu(d))):t(r)};l.length||(o(d),t(r)),l.forEach(function(t){var o=e[t];-1!==i.indexOf(t)?vu(o,n,u):function(e,t,n){var o=[],r=0,a=e.length;function i(e){o.push.apply(o,Ot(e||[])),++r===a&&n(o)}e.forEach(function(e){t(e,i)})}(o,n,u)})});return u.catch(function(e){return e}),u}function wu(e,t){return function(n){var o,r;return o=e.fullFields?function(e,t){for(var n=e,o=0;o<t.length;o++){if(null==n)return n;n=n[t[o]]}return n}(t,e.fullFields):t[n.field||e.fullField],(r=n)&&void 0!==r.message?(n.field=n.field||e.fullField,n.fieldValue=o,n):{message:"function"==typeof n?n():n,fieldValue:o,field:n.field||e.fullField}}}function Cu(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];"object"===Go(o)&&"object"===Go(e[n])?e[n]=er(er({},e[n]),o):e[n]=o}return e}var xu,$u="enum",Su=function(e,t,n,o,r,a){!e.required||n.hasOwnProperty(e.field)&&!gu(t,a||e.type)||o.push(hu(r.messages.required,e.fullField))},Eu=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,ku=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,Nu={integer:function(e){return Nu.number(e)&&parseInt(e,10)===e},float:function(e){return Nu.number(e)&&!Nu.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===Go(e)&&!Nu.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(Eu)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(xu)return xu;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",o="[a-fA-F\\d]{1,4}",r=["(?:".concat(o,":){7}(?:").concat(o,"|:)"),"(?:".concat(o,":){6}(?:").concat(n,"|:").concat(o,"|:)"),"(?:".concat(o,":){5}(?::").concat(n,"|(?::").concat(o,"){1,2}|:)"),"(?:".concat(o,":){4}(?:(?::").concat(o,"){0,1}:").concat(n,"|(?::").concat(o,"){1,3}|:)"),"(?:".concat(o,":){3}(?:(?::").concat(o,"){0,2}:").concat(n,"|(?::").concat(o,"){1,4}|:)"),"(?:".concat(o,":){2}(?:(?::").concat(o,"){0,3}:").concat(n,"|(?::").concat(o,"){1,5}|:)"),"(?:".concat(o,":){1}(?:(?::").concat(o,"){0,4}:").concat(n,"|(?::").concat(o,"){1,6}|:)"),"(?::(?:(?::".concat(o,"){0,5}:").concat(n,"|(?::").concat(o,"){1,7}|:))")],a="(?:".concat(r.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),i=new RegExp("(?:^".concat(n,"$)|(?:^").concat(a,"$)")),l=new RegExp("^".concat(n,"$")),s=new RegExp("^".concat(a,"$")),c=function(e){return e&&e.exact?i:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(a).concat(t(e),")"),"g")};c.v4=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},c.v6=function(e){return e&&e.exact?s:new RegExp("".concat(t(e)).concat(a).concat(t(e)),"g")};var d=c.v4().source,u=c.v6().source,p="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(d,"|").concat(u,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return xu=new RegExp("(?:^".concat(p,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(ku)}},_u={required:Su,whitespace:function(e,t,n,o,r){(/^\s+$/.test(t)||""===t)&&o.push(hu(r.messages.whitespace,e.fullField))},type:function(e,t,n,o,r){if(e.required&&void 0===t)Su(e,t,n,o,r);else{var a=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(a)>-1?Nu[a](t)||o.push(hu(r.messages.types[a],e.fullField,e.type)):a&&Go(t)!==e.type&&o.push(hu(r.messages.types[a],e.fullField,e.type))}},range:function(e,t,n,o,r){var a="number"==typeof e.len,i="number"==typeof e.min,l="number"==typeof e.max,s=t,c=null,d="number"==typeof t,u="string"==typeof t,p=Array.isArray(t);if(d?c="number":u?c="string":p&&(c="array"),!c)return!1;p&&(s=t.length),u&&(s=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),a?s!==e.len&&o.push(hu(r.messages[c].len,e.fullField,e.len)):i&&!l&&s<e.min?o.push(hu(r.messages[c].min,e.fullField,e.min)):l&&!i&&s>e.max?o.push(hu(r.messages[c].max,e.fullField,e.max)):i&&l&&(s<e.min||s>e.max)&&o.push(hu(r.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,o,r){e[$u]=Array.isArray(e[$u])?e[$u]:[],-1===e[$u].indexOf(t)&&o.push(hu(r.messages[$u],e.fullField,e[$u].join(", ")))},pattern:function(e,t,n,o,r){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||o.push(hu(r.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||o.push(hu(r.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},Iu=function(e,t,n,o,r){var a=e.type,i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(gu(t,a)&&!e.required)return n();_u.required(e,t,o,i,r,a),gu(t,a)||_u.type(e,t,o,i,r)}n(i)},Pu={string:function(e,t,n,o,r){var a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(gu(t,"string")&&!e.required)return n();_u.required(e,t,o,a,r,"string"),gu(t,"string")||(_u.type(e,t,o,a,r),_u.range(e,t,o,a,r),_u.pattern(e,t,o,a,r),!0===e.whitespace&&_u.whitespace(e,t,o,a,r))}n(a)},method:function(e,t,n,o,r){var a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(gu(t)&&!e.required)return n();_u.required(e,t,o,a,r),void 0!==t&&_u.type(e,t,o,a,r)}n(a)},number:function(e,t,n,o,r){var a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(""===t&&(t=void 0),gu(t)&&!e.required)return n();_u.required(e,t,o,a,r),void 0!==t&&(_u.type(e,t,o,a,r),_u.range(e,t,o,a,r))}n(a)},boolean:function(e,t,n,o,r){var a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(gu(t)&&!e.required)return n();_u.required(e,t,o,a,r),void 0!==t&&_u.type(e,t,o,a,r)}n(a)},regexp:function(e,t,n,o,r){var a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(gu(t)&&!e.required)return n();_u.required(e,t,o,a,r),gu(t)||_u.type(e,t,o,a,r)}n(a)},integer:function(e,t,n,o,r){var a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(gu(t)&&!e.required)return n();_u.required(e,t,o,a,r),void 0!==t&&(_u.type(e,t,o,a,r),_u.range(e,t,o,a,r))}n(a)},float:function(e,t,n,o,r){var a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(gu(t)&&!e.required)return n();_u.required(e,t,o,a,r),void 0!==t&&(_u.type(e,t,o,a,r),_u.range(e,t,o,a,r))}n(a)},array:function(e,t,n,o,r){var a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();_u.required(e,t,o,a,r,"array"),null!=t&&(_u.type(e,t,o,a,r),_u.range(e,t,o,a,r))}n(a)},object:function(e,t,n,o,r){var a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(gu(t)&&!e.required)return n();_u.required(e,t,o,a,r),void 0!==t&&_u.type(e,t,o,a,r)}n(a)},enum:function(e,t,n,o,r){var a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(gu(t)&&!e.required)return n();_u.required(e,t,o,a,r),void 0!==t&&_u.enum(e,t,o,a,r)}n(a)},pattern:function(e,t,n,o,r){var a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(gu(t,"string")&&!e.required)return n();_u.required(e,t,o,a,r),gu(t,"string")||_u.pattern(e,t,o,a,r)}n(a)},date:function(e,t,n,o,r){var a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(gu(t,"date")&&!e.required)return n();var i;if(_u.required(e,t,o,a,r),!gu(t,"date"))i=t instanceof Date?t:new Date(t),_u.type(e,i,o,a,r),i&&_u.range(e,i.getTime(),o,a,r)}n(a)},url:Iu,hex:Iu,email:Iu,required:function(e,t,n,o,r){var a=[],i=Array.isArray(t)?"array":Go(t);_u.required(e,t,o,a,r,i),n(a)},any:function(e,t,n,o,r){var a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(gu(t)&&!e.required)return n();_u.required(e,t,o,a,r)}n(a)}},Ou=function(){function e(t){tr(this,e),Qo(this,"rules",null),Qo(this,"_messages",du),this.define(t)}return or(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==Go(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach(function(n){var o=e[n];t.rules[n]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(e){return e&&(this._messages=Cu(cu(),e)),this._messages}},{key:"validate",value:function(t){var n=this,o=t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"==typeof r&&(a=r,r={}),!this.rules||0===Object.keys(this.rules).length)return a&&a(null,o),Promise.resolve(o);if(r.messages){var i=this.messages();i===du&&(i=cu()),Cu(i,r.messages),r.messages=i}else r.messages=this.messages();var l={};(r.keys||Object.keys(this.rules)).forEach(function(e){var r=n.rules[e],a=o[e];r.forEach(function(r){var i=r;"function"==typeof i.transform&&(o===t&&(o=er({},o)),null!=(a=o[e]=i.transform(a))&&(i.type=i.type||(Array.isArray(a)?"array":Go(a)))),(i="function"==typeof i?{validator:i}:er({},i)).validator=n.getValidationMethod(i),i.validator&&(i.field=e,i.fullField=i.fullField||e,i.type=n.getType(i),l[e]=l[e]||[],l[e].push({rule:i,value:a,source:o,field:e}))})});var s={};return yu(l,r,function(t,n){var a,i=t.rule,l=!("object"!==i.type&&"array"!==i.type||"object"!==Go(i.fields)&&"object"!==Go(i.defaultField));function c(e,t){return er(er({},t),{},{fullField:"".concat(i.fullField,".").concat(e),fullFields:i.fullFields?[].concat(Ot(i.fullFields),[e]):[e]})}function d(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],d=Array.isArray(a)?a:[a];!r.suppressWarning&&d.length&&e.warning("async-validator:",d),d.length&&void 0!==i.message&&(d=[].concat(i.message));var u=d.map(wu(i,o));if(r.first&&u.length)return s[i.field]=1,n(u);if(l){if(i.required&&!t.value)return void 0!==i.message?u=[].concat(i.message).map(wu(i,o)):r.error&&(u=[r.error(i,hu(r.messages.required,i.field))]),n(u);var p={};i.defaultField&&Object.keys(t.value).map(function(e){p[e]=i.defaultField}),p=er(er({},p),t.rule.fields);var m={};Object.keys(p).forEach(function(e){var t=p[e],n=Array.isArray(t)?t:[t];m[e]=n.map(c.bind(null,e))});var f=new e(m);f.messages(r.messages),t.rule.options&&(t.rule.options.messages=r.messages,t.rule.options.error=r.error),f.validate(t.value,t.rule.options||r,function(e){var t=[];u&&u.length&&t.push.apply(t,Ot(u)),e&&e.length&&t.push.apply(t,Ot(e)),n(t.length?t:null)})}else n(u)}if(l=l&&(i.required||!i.required&&t.value),i.field=t.field,i.asyncValidator)a=i.asyncValidator(i,t.value,d,t.source,r);else if(i.validator){try{a=i.validator(i,t.value,d,t.source,r)}catch(e){var u,p;null===(u=(p=console).error)||void 0===u||u.call(p,e),r.suppressValidatorError||setTimeout(function(){throw e},0),d(e.message)}!0===a?d():!1===a?d("function"==typeof i.message?i.message(i.fullField||i.field):i.message||"".concat(i.fullField||i.field," fails")):a instanceof Array?d(a):a instanceof Error&&d(a.message)}a&&a.then&&a.then(function(){return d()},function(e){return d(e)})},function(e){!function(e){var t=[],n={};function r(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,Ot(e)):t.push(e)}for(var i=0;i<e.length;i++)r(e[i]);t.length?(n=fu(t),a(t,n)):a(null,o)}(e)},o)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!Pu.hasOwnProperty(e.type))throw new Error(hu("Unknown rule type %s",e.type));return e.type||"string"}},{key:"getValidationMethod",value:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?Pu.required:Pu[this.getType(e)]||void 0}}]),e}();Qo(Ou,"register",function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");Pu[e]=t}),Qo(Ou,"warning",mu),Qo(Ou,"messages",du),Qo(Ou,"validators",Pu);const Du="'${name}' is not a valid ${type}",Ru={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Du,method:Du,array:Du,object:Du,number:Du,date:Du,boolean:Du,integer:Du,float:Du,regexp:Du,email:Du,url:Du,hex:Du},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Mu=Ou;const Bu="CODE_LOGIC_ERROR";async function Tu(e,t,n,r,a){const i={...n};if(delete i.ruleIndex,Mu.warning=()=>{},i.validator){const e=i.validator;i.validator=(...t)=>{try{return e(...t)}catch(e){return Promise.reject(Bu)}}}let l=null;i&&"array"===i.type&&i.defaultField&&(l=i.defaultField,delete i.defaultField);const s=new Mu({[e]:[i]}),c=Je(Ru,r.validateMessages);s.messages(c);let d=[];try{await Promise.resolve(s.validate({[e]:t},{...r}))}catch(e){e.errors&&(d=e.errors.map(({message:e},t)=>{const n=e===Bu?c.default:e;return o.isValidElement(n)?o.cloneElement(n,{key:`error_${t}`}):n}))}if(!d.length&&l&&Array.isArray(t)&&t.length>0){return(await Promise.all(t.map((t,n)=>Tu(`${e}.${n}`,t,l,r,a)))).reduce((e,t)=>[...e,...t],[])}const u={...n,name:e,enum:(n.enum||[]).join(", "),...a},p=d.map(e=>"string"==typeof e?function(e,t){return e.replace(/\\?\$\{\w+\}/g,e=>{if(e.startsWith("\\"))return e.slice(1);const n=e.slice(2,-1);return t[n]})}(e,u):e);return p}function zu(e,t,n,o,r,a){const i=e.join("."),l=n.map((e,t)=>{const n=e.validator,o={...e,ruleIndex:t};return n&&(o.validator=(e,t,o)=>{let r=!1;const a=n(e,t,(...e)=>{Promise.resolve().then(()=>{at(!r,"Your validator function has already return a promise. `callback` will be ignored."),r||o(...e)})});r=a&&"function"==typeof a.then&&"function"==typeof a.catch,at(r,"`callback` is deprecated. Please return a promise instead."),r&&a.then(()=>{o()}).catch(e=>{o(e||" ")})}),o}).sort(({warningOnly:e,ruleIndex:t},{warningOnly:n,ruleIndex:o})=>!!e==!!n?t-o:e?1:-1);let s;if(!0===r)s=new Promise(async(e,n)=>{for(let e=0;e<l.length;e+=1){const r=l[e],s=await Tu(i,t,r,o,a);if(s.length)return void n([{errors:s,rule:r}])}e([])});else{const e=l.map(e=>Tu(i,t,e,o,a).then(t=>({errors:t,rule:e})));s=(r?async function(e){let t=0;return new Promise(n=>{e.forEach(o=>{o.then(o=>{o.errors.length&&n([o]),t+=1,t===e.length&&n([])})})})}(e):async function(e){return Promise.all(e).then(e=>[].concat(...e))}(e)).then(e=>Promise.reject(e))}return s.catch(e=>e),s}function Au(e){return su(e)}function Lu(e,t){let n={};return t.forEach(t=>{const o=Ue(e,t);n=Ge(n,t,o)}),n}function Hu(e,t,n=!1){return e&&e.some(e=>Fu(t,e,n))}function Fu(e,t,n=!1){return!(!e||!t)&&(!(!n&&e.length!==t.length)&&t.every((t,n)=>e[n]===t))}function ju(e,t,n){const{length:o}=e;if(t<0||t>=o||n<0||n>=o)return e;const r=e[t],a=t-n;return a>0?[...e.slice(0,n),r,...e.slice(n,t),...e.slice(t+1,o)]:a<0?[...e.slice(0,t),...e.slice(t+1,n+1),r,...e.slice(n+1,o)]:e}function Vu(){return Vu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Vu.apply(this,arguments)}const Wu=[],Ku=[];function qu(e,t,n,o,r,a){return"function"==typeof e?e(t,n,"source"in a?{source:a.source}:{}):o!==r}class Uu extends o.Component{static contextType=iu;state={resetCount:0};cancelRegisterFunc=null;mounted=!1;touched=!1;dirty=!1;validatePromise;prevValidating;errors=Wu;warnings=Ku;constructor(e){if(super(e),e.fieldContext){const{getInternalHooks:t}=e.fieldContext,{initEntityValue:n}=t(ru);n(this)}}componentDidMount(){const{shouldUpdate:e,fieldContext:t}=this.props;if(this.mounted=!0,t){const{getInternalHooks:e}=t,{registerField:n}=e(ru);this.cancelRegisterFunc=n(this)}!0===e&&this.reRender()}componentWillUnmount(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}cancelRegister=()=>{const{preserve:e,isListField:t,name:n}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(t,e,Au(n)),this.cancelRegisterFunc=null};getNamePath=()=>{const{name:e,fieldContext:t}=this.props,{prefixName:n=[]}=t;return void 0!==e?[...n,...e]:[]};getRules=()=>{const{rules:e=[],fieldContext:t}=this.props;return e.map(e=>"function"==typeof e?e(t):e)};reRender(){this.mounted&&this.forceUpdate()}refresh=()=>{this.mounted&&this.setState(({resetCount:e})=>({resetCount:e+1}))};metaCache=null;triggerMetaEvent=e=>{const{onMetaChange:t}=this.props;if(t){const n={...this.getMeta(),destroy:e};tn(this.metaCache,n)||t(n),this.metaCache=n}else this.metaCache=null};onStoreChange=(e,t,n)=>{const{shouldUpdate:o,dependencies:r=[],onReset:a}=this.props,{store:i}=n,l=this.getNamePath(),s=this.getValue(e),c=this.getValue(i),d=t&&Hu(t,l);switch("valueUpdate"!==n.type||"external"!==n.source||tn(s,c)||(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=Wu,this.warnings=Ku,this.triggerMetaEvent()),n.type){case"reset":if(!t||d)return this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=Wu,this.warnings=Ku,this.triggerMetaEvent(),a?.(),void this.refresh();break;case"remove":if(o&&qu(o,e,i,s,c,n))return void this.reRender();break;case"setField":{const{data:r}=n;if(d)return"touched"in r&&(this.touched=r.touched),"validating"in r&&!("originRCField"in r)&&(this.validatePromise=r.validating?Promise.resolve([]):null),"errors"in r&&(this.errors=r.errors||Wu),"warnings"in r&&(this.warnings=r.warnings||Ku),this.dirty=!0,this.triggerMetaEvent(),void this.reRender();if("value"in r&&Hu(t,l,!0))return void this.reRender();if(o&&!l.length&&qu(o,e,i,s,c,n))return void this.reRender();break}case"dependenciesUpdate":if(r.map(Au).some(e=>Hu(n.relatedFields,e)))return void this.reRender();break;default:if(d||(!r.length||l.length||o)&&qu(o,e,i,s,c,n))return void this.reRender()}!0===o&&this.reRender()};validateRules=e=>{const t=this.getNamePath(),n=this.getValue(),{triggerName:o,validateOnly:r=!1}=e||{},a=Promise.resolve().then(async()=>{if(!this.mounted)return[];const{validateFirst:r=!1,messageVariables:i,validateDebounce:l}=this.props;let s=this.getRules();if(o&&(s=s.filter(e=>e).filter(e=>{const{validateTrigger:t}=e;if(!t)return!0;return su(t).includes(o)})),l&&o&&(await new Promise(e=>{setTimeout(e,l)}),this.validatePromise!==a))return[];const c=zu(t,n,s,e,r,i);return c.catch(e=>e).then((e=Wu)=>{if(this.validatePromise===a){this.validatePromise=null;const t=[],n=[];e.forEach?.(({rule:{warningOnly:e},errors:o=Wu})=>{e?n.push(...o):t.push(...o)}),this.errors=t,this.warnings=n,this.triggerMetaEvent(),this.reRender()}}),c});return r||(this.validatePromise=a,this.dirty=!0,this.errors=Wu,this.warnings=Ku,this.triggerMetaEvent(),this.reRender()),a};isFieldValidating=()=>!!this.validatePromise;isFieldTouched=()=>this.touched;isFieldDirty=()=>{if(this.dirty||void 0!==this.props.initialValue)return!0;const{fieldContext:e}=this.props,{getInitialValue:t}=e.getInternalHooks(ru);return void 0!==t(this.getNamePath())};getErrors=()=>this.errors;getWarnings=()=>this.warnings;isListField=()=>this.props.isListField;isList=()=>this.props.isList;isPreserve=()=>this.props.preserve;getMeta=()=>{this.prevValidating=this.isFieldValidating();return{touched:this.isFieldTouched(),validating:this.prevValidating,errors:this.errors,warnings:this.warnings,name:this.getNamePath(),validated:null===this.validatePromise}};getOnlyChild=e=>{if("function"==typeof e){const t=this.getMeta();return{...this.getOnlyChild(e(this.getControlled(),t,this.props.fieldContext)),isFunction:!0}}const t=st(e);return 1===t.length&&o.isValidElement(t[0])?{child:t[0],isFunction:!1}:{child:t,isFunction:!1}};getValue=e=>{const{getFieldsValue:t}=this.props.fieldContext,n=this.getNamePath();return Ue(e||t(!0),n)};getControlled=(e={})=>{const{name:t,trigger:n="onChange",validateTrigger:o,getValueFromEvent:r,normalize:a,valuePropName:i="value",getValueProps:l,fieldContext:s}=this.props,c=void 0!==o?o:s.validateTrigger,d=this.getNamePath(),{getInternalHooks:u,getFieldsValue:p}=s,{dispatch:m}=u(ru),f=this.getValue(),h=l||(e=>({[i]:e})),g=e[n],v=void 0!==t?h(f):{};"production"!==process.env.NODE_ENV&&v&&Object.keys(v).forEach(e=>{at("function"!=typeof v[e],`It's not recommended to generate dynamic function prop by \`getValueProps\`. Please pass it to child component directly (prop: ${e})`)});const b={...e,...v};b[n]=(...e)=>{let t;this.touched=!0,this.dirty=!0,this.triggerMetaEvent(),t=r?r(...e):function(e,...t){const n=t[0];return n&&n.target&&"object"==typeof n.target&&e in n.target?n.target[e]:n}(i,...e),a&&(t=a(t,f,p(!0))),t!==f&&m({type:"updateValue",namePath:d,value:t}),g&&g(...e)};return su(c||[]).forEach(e=>{const t=b[e];b[e]=(...n)=>{t&&t(...n);const{rules:o}=this.props;o&&o.length&&m({type:"validateField",namePath:d,triggerName:e})}}),b};render(){const{resetCount:e}=this.state,{children:t}=this.props,{child:n,isFunction:r}=this.getOnlyChild(t);let a;return r?a=n:o.isValidElement(n)?a=o.cloneElement(n,this.getControlled(n.props)):(at(!n,"`children` of Field is not validate ReactElement."),a=n),o.createElement(o.Fragment,{key:e},a)}}function Xu({name:e,...t}){const n=o.useContext(iu),r=o.useContext(lu),a=void 0!==e?Au(e):void 0,i=t.isListField??!!r;let l="keep";return i||(l=`_${(a||[]).join("_")}`),"production"!==process.env.NODE_ENV&&!1===t.preserve&&i&&a.length<=1&&at(!1,"`preserve` should not apply on Form.List fields."),o.createElement(Uu,Vu({key:l,name:a,isListField:i},t,{fieldContext:n}))}const Gu="__@field_split__";function Yu(e){return e.map(e=>`${typeof e}:${e}`).join(Gu)}class Zu{kvs=new Map;set(e,t){this.kvs.set(Yu(e),t)}get(e){return this.kvs.get(Yu(e))}getAsPrefix(e){const t=Yu(e),n=t+Gu,o=[],r=this.kvs.get(t);return void 0!==r&&o.push(r),this.kvs.forEach((e,t)=>{t.startsWith(n)&&o.push(e)}),o}update(e,t){const n=t(this.get(e));n?this.set(e,n):this.delete(e)}delete(e){this.kvs.delete(Yu(e))}map(e){return[...this.kvs.entries()].map(([t,n])=>{const o=t.split(Gu);return e({key:o.map(e=>{const[,t,n]=e.match(/^([^:]*):(.*)$/);return"number"===t?Number(n):n}),value:n})})}toJSON(){const e={};return this.map(({key:t,value:n})=>(e[t.join(".")]=n,null)),e}}class Qu{namePathList=[];taskId=0;watcherList=new Set;form;constructor(e){this.form=e}register(e){return this.watcherList.add(e),()=>{this.watcherList.delete(e)}}notify(e){e.forEach(e=>{this.namePathList.every(t=>!Fu(t,e))&&this.namePathList.push(e)}),this.doBatch()}doBatch(){this.taskId+=1;const e=this.taskId;(e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)})(()=>{if(e===this.taskId&&this.watcherList.size){const e=this.form.getForm(),t=e.getFieldsValue(),n=e.getFieldsValue(!0);this.watcherList.forEach(e=>{e(t,n,this.namePathList)}),this.namePathList=[]}})}}class Ju{formHooked=!1;forceRootUpdate;subscribable=!0;store={};fieldEntities=[];initialValues={};callbacks={};validateMessages=null;preserve=null;lastValidatePromise=null;watcherCenter=new Qu(this);constructor(e){this.forceRootUpdate=e}getForm=()=>({getFieldValue:this.getFieldValue,getFieldsValue:this.getFieldsValue,getFieldError:this.getFieldError,getFieldWarning:this.getFieldWarning,getFieldsError:this.getFieldsError,isFieldsTouched:this.isFieldsTouched,isFieldTouched:this.isFieldTouched,isFieldValidating:this.isFieldValidating,isFieldsValidating:this.isFieldsValidating,resetFields:this.resetFields,setFields:this.setFields,setFieldValue:this.setFieldValue,setFieldsValue:this.setFieldsValue,validateFields:this.validateFields,submit:this.submit,_init:!0,getInternalHooks:this.getInternalHooks});getInternalHooks=e=>e===ru?(this.formHooked=!0,{dispatch:this.dispatch,initEntityValue:this.initEntityValue,registerField:this.registerField,useSubscribe:this.useSubscribe,setInitialValues:this.setInitialValues,destroyForm:this.destroyForm,setCallbacks:this.setCallbacks,setValidateMessages:this.setValidateMessages,getFields:this.getFields,setPreserve:this.setPreserve,getInitialValue:this.getInitialValue,registerWatch:this.registerWatch}):(at(!1,"`getInternalHooks` is internal usage. Should not call directly."),null);useSubscribe=e=>{this.subscribable=e};prevWithoutPreserves=null;setInitialValues=(e,t)=>{if(this.initialValues=e||{},t){let t=Je(e,this.store);this.prevWithoutPreserves?.map(({key:n})=>{t=Ge(t,n,Ue(e,n))}),this.prevWithoutPreserves=null,this.updateStore(t)}};destroyForm=e=>{if(e)this.updateStore({});else{const e=new Zu;this.getFieldEntities(!0).forEach(t=>{this.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)}),this.prevWithoutPreserves=e}};getInitialValue=e=>{const t=Ue(this.initialValues,e);return e.length?Je(t):t};setCallbacks=e=>{this.callbacks=e};setValidateMessages=e=>{this.validateMessages=e};setPreserve=e=>{this.preserve=e};registerWatch=e=>this.watcherCenter.register(e);notifyWatch=(e=[])=>{this.watcherCenter.notify(e)};timeoutId=null;warningUnhooked=()=>{"production"===process.env.NODE_ENV||this.timeoutId||"undefined"==typeof window||(this.timeoutId=setTimeout(()=>{this.timeoutId=null,this.formHooked||at(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))};updateStore=e=>{this.store=e};getFieldEntities=(e=!1)=>e?this.fieldEntities.filter(e=>e.getNamePath().length):this.fieldEntities;getFieldsMap=(e=!1)=>{const t=new Zu;return this.getFieldEntities(e).forEach(e=>{const n=e.getNamePath();t.set(n,e)}),t};getFieldEntitiesForNamePathList=(e,t=!1)=>{if(!e)return this.getFieldEntities(!0);const n=this.getFieldsMap(!0);return t?e.flatMap(e=>{const t=Au(e),o=n.getAsPrefix(t);return o.length?o:[{INVALIDATE_NAME_PATH:t}]}):e.map(e=>{const t=Au(e);return n.get(t)||{INVALIDATE_NAME_PATH:Au(e)}})};getFieldsValue=(e,t)=>{let n,o;if(this.warningUnhooked(),!0===e||Array.isArray(e)?(n=e,o=t):e&&"object"==typeof e&&(o=e.filter),!0===n&&!o)return this.store;const r=this.getFieldEntitiesForNamePathList(Array.isArray(n)?n:null,!0),a=[],i=[];r.forEach(e=>{const t=e.INVALIDATE_NAME_PATH||e.getNamePath();if(e.isList?.())i.push(t);else if(o){const n="getMeta"in e?e.getMeta():null;o(n)&&a.push(t)}else a.push(t)});let l=Lu(this.store,a.map(Au));return i.forEach(e=>{Ue(l,e)||(l=Ge(l,e,[]))}),l};getFieldValue=e=>{this.warningUnhooked();const t=Au(e);return Ue(this.store,t)};getFieldsError=e=>{this.warningUnhooked();return this.getFieldEntitiesForNamePathList(e).map((t,n)=>t&&!t.INVALIDATE_NAME_PATH?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:Au(e[n]),errors:[],warnings:[]})};getFieldError=e=>{this.warningUnhooked();const t=Au(e);return this.getFieldsError([t])[0].errors};getFieldWarning=e=>{this.warningUnhooked();const t=Au(e);return this.getFieldsError([t])[0].warnings};isFieldsTouched=(...e)=>{this.warningUnhooked();const[t,n]=e;let o,r=!1;0===e.length?o=null:1===e.length?Array.isArray(t)?(o=t.map(Au),r=!1):(o=null,r=t):(o=t.map(Au),r=n);const a=this.getFieldEntities(!0),i=e=>e.isFieldTouched();if(!o)return r?a.every(e=>i(e)||e.isList()):a.some(i);const l=new Zu;o.forEach(e=>{l.set(e,[])}),a.forEach(e=>{const t=e.getNamePath();o.forEach(n=>{n.every((e,n)=>t[n]===e)&&l.update(n,t=>[...t,e])})});const s=e=>e.some(i),c=l.map(({value:e})=>e);return r?c.every(s):c.some(s)};isFieldTouched=e=>(this.warningUnhooked(),this.isFieldsTouched([e]));isFieldsValidating=e=>{this.warningUnhooked();const t=this.getFieldEntities();if(!e)return t.some(e=>e.isFieldValidating());const n=e.map(Au);return t.some(e=>{const t=e.getNamePath();return Hu(n,t)&&e.isFieldValidating()})};isFieldValidating=e=>(this.warningUnhooked(),this.isFieldsValidating([e]));resetWithFieldInitialValue=(e={})=>{const t=new Zu,n=this.getFieldEntities(!0);n.forEach(e=>{const{initialValue:n}=e.props,o=e.getNamePath();if(void 0!==n){const r=t.get(o)||new Set;r.add({entity:e,value:n}),t.set(o,r)}});let o;e.entities?o=e.entities:e.namePathList?(o=[],e.namePathList.forEach(e=>{const n=t.get(e);n&&o.push(...[...n].map(e=>e.entity))})):o=n,(n=>{n.forEach(n=>{const{initialValue:o}=n.props;if(void 0!==o){const o=n.getNamePath();if(void 0!==this.getInitialValue(o))at(!1,`Form already set 'initialValues' with path '${o.join(".")}'. Field can not overwrite it.`);else{const r=t.get(o);if(r&&r.size>1)at(!1,`Multiple Field with path '${o.join(".")}' set 'initialValue'. Can not decide which one to pick.`);else if(r){const t=this.getFieldValue(o);n.isListField()||e.skipExist&&void 0!==t||this.updateStore(Ge(this.store,o,[...r][0].value))}}}})})(o)};resetFields=e=>{this.warningUnhooked();const t=this.store;if(!e)return this.updateStore(Je(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(t,null,{type:"reset"}),void this.notifyWatch();const n=e.map(Au);n.forEach(e=>{const t=this.getInitialValue(e);this.updateStore(Ge(this.store,e,t))}),this.resetWithFieldInitialValue({namePathList:n}),this.notifyObservers(t,n,{type:"reset"}),this.notifyWatch(n)};setFields=e=>{this.warningUnhooked();const t=this.store,n=[];e.forEach(e=>{const{name:o,...r}=e,a=Au(o);n.push(a),"value"in r&&this.updateStore(Ge(this.store,a,r.value)),this.notifyObservers(t,[a],{type:"setField",data:e})}),this.notifyWatch(n)};getFields=()=>this.getFieldEntities(!0).map(e=>{const t=e.getNamePath(),n={...e.getMeta(),name:t,value:this.getFieldValue(t)};return Object.defineProperty(n,"originRCField",{value:!0}),n});initEntityValue=e=>{const{initialValue:t}=e.props;if(void 0!==t){const n=e.getNamePath();void 0===Ue(this.store,n)&&this.updateStore(Ge(this.store,n,t))}};isMergedPreserve=e=>(void 0!==e?e:this.preserve)??!0;registerField=e=>{this.fieldEntities.push(e);const t=e.getNamePath();if(this.notifyWatch([t]),void 0!==e.props.initialValue){const t=this.store;this.resetWithFieldInitialValue({entities:[e],skipExist:!0}),this.notifyObservers(t,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return(n,o,r=[])=>{if(this.fieldEntities=this.fieldEntities.filter(t=>t!==e),!this.isMergedPreserve(o)&&(!n||r.length>1)){const e=n?void 0:this.getInitialValue(t);if(t.length&&this.getFieldValue(t)!==e&&this.fieldEntities.every(e=>!Fu(e.getNamePath(),t))){const n=this.store;this.updateStore(Ge(n,t,e,!0)),this.notifyObservers(n,[t],{type:"remove"}),this.triggerDependenciesUpdate(n,t)}}this.notifyWatch([t])}};dispatch=e=>{switch(e.type){case"updateValue":{const{namePath:t,value:n}=e;this.updateValue(t,n);break}case"validateField":{const{namePath:t,triggerName:n}=e;this.validateFields([t],{triggerName:n});break}}};notifyObservers=(e,t,n)=>{if(this.subscribable){const o={...n,store:this.getFieldsValue(!0)};this.getFieldEntities().forEach(({onStoreChange:n})=>{n(e,t,o)})}else this.forceRootUpdate()};triggerDependenciesUpdate=(e,t)=>{const n=this.getDependencyChildrenFields(t);return n.length&&this.validateFields(n),this.notifyObservers(e,n,{type:"dependenciesUpdate",relatedFields:[t,...n]}),n};updateValue=(e,t)=>{const n=Au(e),o=this.store;this.updateStore(Ge(this.store,n,t)),this.notifyObservers(o,[n],{type:"valueUpdate",source:"internal"}),this.notifyWatch([n]);const r=this.triggerDependenciesUpdate(o,n),{onValuesChange:a}=this.callbacks;if(a){const e=this.getFieldsMap(!0).get(n),t=Lu(this.store,[n]);a(t,Qe([this.getFieldsValue(),t],{prepareArray:t=>e?.isList()?[]:[...t||[]]}))}this.triggerOnFieldsChange([n,...r])};setFieldsValue=e=>{this.warningUnhooked();const t=this.store;if(e){const t=Je(this.store,e);this.updateStore(t)}this.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),this.notifyWatch()};setFieldValue=(e,t)=>{this.setFields([{name:e,value:t,errors:[],warnings:[],touched:!0}])};getDependencyChildrenFields=e=>{const t=new Set,n=[],o=new Zu;this.getFieldEntities().forEach(e=>{const{dependencies:t}=e.props;(t||[]).forEach(t=>{const n=Au(t);o.update(n,(t=new Set)=>(t.add(e),t))})});const r=e=>{(o.get(e)||new Set).forEach(e=>{if(!t.has(e)){t.add(e);const o=e.getNamePath();e.isFieldDirty()&&o.length&&(n.push(o),r(o))}})};return r(e),n};triggerOnFieldsChange=(e,t)=>{const{onFieldsChange:n}=this.callbacks;if(n){const o=this.getFields();if(t){const e=new Zu;t.forEach(({name:t,errors:n})=>{e.set(t,n)}),o.forEach(t=>{t.errors=e.get(t.name)||t.errors})}const r=o.filter(({name:t})=>Hu(e,t));r.length&&n(r,o)}};validateFields=(e,t)=>{let n,o;this.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(n=e,o=t):o=e;const r=!!n,a=r?n.map(Au):[],i=[...a],l=[],s=String(Date.now()),c=new Set,{recursive:d,dirty:u}=o||{};this.getFieldEntities(!0).forEach(e=>{const t=e.getNamePath();if(r||(e.isList()&&a.some(e=>Fu(e,t,!0))||i.push(t),a.push(t)),e.props.rules&&e.props.rules.length&&(!u||e.isFieldDirty())&&(c.add(t.join(s)),!r||Hu(a,t,d))){const n=e.validateRules({validateMessages:{...Ru,...this.validateMessages},...o});l.push(n.then(()=>({name:t,errors:[],warnings:[]})).catch(e=>{const n=[],o=[];return e.forEach?.(({rule:{warningOnly:e},errors:t})=>{e?o.push(...t):n.push(...t)}),n.length?Promise.reject({name:t,errors:n,warnings:o}):{name:t,errors:n,warnings:o}}))}});const p=function(e){let t=!1,n=e.length;const o=[];return e.length?new Promise((r,a)=>{e.forEach((e,i)=>{e.catch(e=>(t=!0,e)).then(e=>{n-=1,o[i]=e,n>0||(t&&a(o),r(o))})})}):Promise.resolve([])}(l);this.lastValidatePromise=p,p.catch(e=>e).then(e=>{const t=e.map(({name:e})=>e);this.notifyObservers(this.store,t,{type:"validateFinish"}),this.triggerOnFieldsChange(t,e)});const m=p.then(()=>this.lastValidatePromise===p?Promise.resolve(this.getFieldsValue(i)):Promise.reject([])).catch(e=>{const t=e.filter(e=>e&&e.errors.length),n=t[0]?.errors?.[0];return Promise.reject({message:n,values:this.getFieldsValue(a),errorFields:t,outOfDate:this.lastValidatePromise!==p})});m.catch(e=>e);const f=a.filter(e=>c.has(e.join(s)));return this.triggerOnFieldsChange(f),m};submit=()=>{this.warningUnhooked(),this.validateFields().then(e=>{const{onFinish:t}=this.callbacks;if(t)try{t(e)}catch(e){}}).catch(e=>{const{onFinishFailed:t}=this.callbacks;t&&t(e)})}}function ep(e){const t=o.useRef(null),[,n]=o.useState({});if(!t.current)if(e)t.current=e;else{const e=new Ju(()=>{n({})});t.current=e.getForm()}return[t.current]}const tp=o.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}});function np(){return np=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},np.apply(this,arguments)}const op=({name:e,initialValues:t,fields:n,form:r,preserve:a,children:i,component:l="form",validateMessages:s,validateTrigger:c="onChange",onValuesChange:d,onFieldsChange:u,onFinish:p,onFinishFailed:m,clearOnDestroy:f,...h},g)=>{const v=o.useRef(null),b=o.useContext(tp),[y]=ep(r),{useSubscribe:w,setInitialValues:C,setCallbacks:x,setValidateMessages:$,setPreserve:S,destroyForm:E}=y.getInternalHooks(ru);o.useImperativeHandle(g,()=>({...y,nativeElement:v.current})),o.useEffect(()=>(b.registerForm(e,y),()=>{b.unregisterForm(e)}),[b,y,e]),$({...b.validateMessages,...s}),x({onValuesChange:d,onFieldsChange:(t,...n)=>{b.triggerFormChange(e,t),u&&u(t,...n)},onFinish:t=>{b.triggerFormFinish(e,t),p&&p(t)},onFinishFailed:m}),S(a);const k=o.useRef(null);let N;C(t,!k.current),k.current||(k.current=!0),o.useEffect(()=>()=>E(f),[]);const _="function"==typeof i;if(_){N=i(y.getFieldsValue(!0),y)}else N=i;w(!_);const I=o.useRef(null);o.useEffect(()=>{(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!=typeof e||"object"!=typeof t)return!1;const n=Object.keys(e),o=Object.keys(t);return[...new Set([...n,...o])].every(n=>{const o=e[n],r=t[n];return"function"==typeof o&&"function"==typeof r||o===r})})(I.current||[],n||[])||y.setFields(n||[]),I.current=n},[n,y]);const P=o.useMemo(()=>({...y,validateTrigger:c}),[y,c]),O=o.createElement(lu.Provider,{value:null},o.createElement(iu.Provider,{value:P},N));return!1===l?O:o.createElement(l,np({},h,{ref:v,onSubmit:e=>{e.preventDefault(),e.stopPropagation(),y.submit()},onReset:e=>{e.preventDefault(),y.resetFields(),h.onReset?.(e)}}),O)};function rp(e){try{return JSON.stringify(e)}catch{return Math.random()}}const ap=o.forwardRef(op);ap.FormProvider=({validateMessages:e,onFormChange:t,onFormFinish:n,children:r})=>{const a=o.useContext(tp),i=o.useRef({});return o.createElement(tp.Provider,{value:{...a,validateMessages:{...a.validateMessages,...e},triggerFormChange:(e,n)=>{t&&t(e,{changedFields:n,forms:i.current}),a.triggerFormChange(e,n)},triggerFormFinish:(e,t)=>{n&&n(e,{values:t,forms:i.current}),a.triggerFormFinish(e,t)},registerForm:(e,t)=>{e&&(i.current={...i.current,[e]:t}),a.registerForm(e,t)},unregisterForm:e=>{const t={...i.current};delete t[e],i.current=t,a.unregisterForm(e)}}},r)},ap.Field=Xu,ap.List=function({name:e,initialValue:t,children:n,rules:r,validateTrigger:a,isListField:i}){const l=o.useContext(iu),s=o.useContext(lu),c=o.useRef({keys:[],id:0}).current,d=o.useMemo(()=>[...Au(l.prefixName)||[],...Au(e)],[l.prefixName,e]),u=o.useMemo(()=>({...l,prefixName:d}),[l,d]),p=o.useMemo(()=>({getKey:e=>{const t=d.length,n=e[t];return[c.keys[n],e.slice(t+1)]}}),[c,d]);return"function"!=typeof n?(at(!1,"Form.List only accepts function as children."),null):o.createElement(lu.Provider,{value:p},o.createElement(iu.Provider,{value:u},o.createElement(Xu,{name:[],shouldUpdate:(e,t,{source:n})=>"internal"!==n&&e!==t,rules:r,validateTrigger:a,initialValue:t,isList:!0,isListField:i??!!s},({value:e=[],onChange:t},o)=>{const{getFieldValue:r}=l,a=()=>r(d||[])||[],i={add:(e,n)=>{const o=a();n>=0&&n<=o.length?(c.keys=[...c.keys.slice(0,n),c.id,...c.keys.slice(n)],t([...o.slice(0,n),e,...o.slice(n)])):("production"!==process.env.NODE_ENV&&(n<0||n>o.length)&&at(!1,"The second parameter of the add function should be a valid positive number."),c.keys=[...c.keys,c.id],t([...o,e])),c.id+=1},remove:e=>{const n=a(),o=new Set(Array.isArray(e)?e:[e]);o.size<=0||(c.keys=c.keys.filter((e,t)=>!o.has(t)),t(n.filter((e,t)=>!o.has(t))))},move(e,n){if(e===n)return;const o=a();e<0||e>=o.length||n<0||n>=o.length||(c.keys=ju(c.keys,e,n),t(ju(o,e,n)))}};let s=e||[];return Array.isArray(s)||(s=[],"production"!==process.env.NODE_ENV&&at(!1,`Current value of '${d.join(" > ")}' is not an array type.`)),n(s.map((e,t)=>{let n=c.keys[t];return void 0===n&&(c.keys[t]=c.id,n=c.keys[t],c.id+=1),{name:t,key:n,isListField:!0}}),i,o)})))},ap.useForm=ep,ap.useWatch=function(...e){const[t,n={}]=e,o=function(e){return e&&!!e._init}(n)?{form:n}:n,r=o.form,[s,d]=i(()=>"function"==typeof t?t({}):void 0),u=c(()=>rp(s),[s]);a(u).current=u;const p=m(iu),f=r||p,h=f&&f._init;"production"!==process.env.NODE_ENV&&at(2===e.length&&!r||h,"useWatch requires a form instance since it can not auto detect from context.");const{getFieldsValue:g,getInternalHooks:v}=f,{registerWatch:b}=v(ru),y=$e((e,n)=>{const r=o.preserve?n??g(!0):e??g(),a="function"==typeof t?t(r):Ue(r,Au(t));rp(s)!==rp(a)&&d(a)}),w="function"==typeof t?t:JSON.stringify(t);return l(()=>{h&&y()},[h,w]),l(()=>{if(!h)return;return b((e,t)=>{y(e,t)})},[h]),s};const ip=o.createContext({});"production"!==process.env.NODE_ENV&&(ip.displayName="FormItemInputContext");const lp=({children:e,status:t,override:n})=>{const r=o.useContext(ip),a=o.useMemo(()=>{const e={...r};return n&&delete e.isFormItemInput,t&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[t,n,r]);return o.createElement(ip.Provider,{value:a},e)},sp=o.createContext(void 0);var cp=e=>{const{space:t,form:n,children:o}=e;if(!ol(o))return null;let a=o;return n&&(a=r.createElement(lp,{override:!0,status:!0},a)),t&&(a=r.createElement(fc,null,a)),a};var dp=(e,t,n,r,a)=>function(e){return t=>o.createElement(Hs,{theme:{token:{motion:!1,zIndexPopupBase:0}}},o.createElement(e,{...t}))}(i=>{const{prefixCls:l,style:s}=i,c=o.useRef(null),[d,u]=o.useState(0),[p,m]=o.useState(0),[f,h]=_e(!1,i.open),{getPrefixCls:g}=o.useContext(Ft),v=g(r||"select",l);o.useEffect(()=>{if(h(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver(e=>{const t=e[0].target;u(t.offsetHeight+8),m(t.offsetWidth)}),t=setInterval(()=>{const n=a?`.${a(v)}`:`.${v}-dropdown`,o=c.current?.querySelector(n);o&&(clearInterval(t),e.observe(o))},10);return()=>{clearInterval(t),e.disconnect()}}},[v]);let b={...i,style:{...s,margin:0},open:f,getPopupContainer:()=>c.current};n&&(b=n(b)),t&&Object.assign(b,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const y={paddingBottom:d,position:"relative",minWidth:p};return o.createElement("div",{ref:c,style:y},o.createElement(e,{...b}))});const up=o.createContext(null);function pp(){return o.useContext(up)}function mp(e,t){return e.filter(e=>e).some(e=>e.contains(t)||e===t)}function fp(){return fp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},fp.apply(this,arguments)}const hp=(e,t)=>{const{prefixCls:n,disabled:r,visible:a,children:i,popupElement:l,animation:s,transitionName:c,popupStyle:d,popupClassName:u,direction:p="ltr",placement:m,builtinPlacements:f,popupMatchSelectWidth:h,popupRender:g,popupAlign:v,getPopupContainer:b,empty:y,onPopupVisibleChange:w,onPopupMouseEnter:C,onPopupMouseDown:x,onPopupBlur:$,...S}=e,E=`${n}-dropdown`;let k=l;g&&(k=g(l));const N=o.useMemo(()=>f||(e=>{const t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}})(h),[f,h]),_=s?`${E}-${s}`:c,I="number"==typeof h,P=o.useMemo(()=>I?null:!1===h?"minWidth":"width",[h,I]);let O=d;I&&(O={...d,width:h});const D=o.useRef(null);return o.useImperativeHandle(t,()=>({getPopupElement:()=>D.current?.popupElement})),o.createElement(xs,fp({},S,{showAction:w?["click"]:[],hideAction:w?["click"]:[],popupPlacement:m||("rtl"===p?"bottomRight":"bottomLeft"),builtinPlacements:N,prefixCls:E,popupMotion:{motionName:_},popup:o.createElement("div",{onMouseEnter:C,onMouseDown:x,onBlur:$},k),ref:D,stretch:P,popupAlign:v,popupVisible:a,getPopupContainer:b,popupClassName:ie(u,{[`${E}-empty`]:y}),popupStyle:O,onPopupVisibleChange:w}),i)},gp=o.forwardRef(hp);function vp(e,t){const{key:n}=e;let o;return"value"in e&&({value:o}=e),null!=n?n:void 0!==o?o:`rc-index-key-${t}`}function bp(e){return void 0!==e&&!Number.isNaN(e)}function yp(e,t){const{label:n,value:o,options:r,groupLabel:a}=e||{},i=n||(t?"children":"label");return{label:i,value:o||"value",options:r||"options",groupLabel:a||i}}function wp(e){const t={...e};return"props"in t||Object.defineProperty(t,"props",{get:()=>(at(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t)}),t}"production"!==process.env.NODE_ENV&&(gp.displayName="SelectTrigger");function Cp(e){const{visible:t,values:n}=e;if(!t)return null;return o.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`${n.slice(0,50).map(({label:e,value:t})=>["number","string"].includes(typeof e)?e:t).join(", ")}`,n.length>50?", ...":null)}const xp=(e,t=1)=>{t<=0?e():(e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)})(()=>{xp(e,t-1)})};function $p(e){const{children:t,...n}=e;return t?o.createElement("div",n,t):null}const Sp=o.createContext(null);function Ep(){return o.useContext(Sp)}const kp=o.forwardRef((e,t)=>{const{onChange:n,onKeyDown:r,onBlur:a,style:i,syncWidth:l,value:s,className:c,autoComplete:d,...u}=e,{prefixCls:p,mode:m,onSearch:f,onSearchSubmit:h,onInputBlur:g,autoFocus:v,tokenWithEnter:b,placeholder:y,components:{input:w="input"}}=Ep(),{id:C,classNames:x,styles:$,open:S,activeDescendantId:E,role:k,disabled:N}=pp()||{},_=ie(`${p}-input`,x?.input,c),I=o.useRef(!1),P=o.useRef(null),O=o.useRef(null);o.useImperativeHandle(t,()=>O.current);const[D,R]=o.useState(void 0);ke(()=>{const e=O.current;if(l&&e){e.style.width="0px";const t=e.scrollWidth;R(t),e.style.width=""}},[l,s]);const M={id:C,type:"combobox"===m?"text":"search",...u,ref:O,style:{...$?.input,...i,"--select-input-width":D},autoFocus:v,autoComplete:d||"off",className:_,disabled:N,value:s||"",onChange:e=>{let{value:t}=e.target;if(b&&P.current&&/[\r\n]/.test(P.current)){const e=P.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(e,P.current)}P.current=null,f&&f(t,!0,I.current),n?.(e)},onKeyDown:e=>{const{key:t}=e,{value:n}=e.currentTarget;"Enter"===t&&"tags"===m&&!I.current&&h&&h(n),r?.(e)},onBlur:e=>{g?.(),a?.(e)},onPaste:e=>{const{clipboardData:t}=e,n=t?.getData("text");P.current=n||""},onCompositionStart:()=>{I.current=!0},onCompositionEnd:e=>{if(I.current=!1,"combobox"!==m){const{value:t}=e.currentTarget;f?.(t,!0,!1)}},role:k||"combobox","aria-expanded":S||!1,"aria-haspopup":"listbox","aria-owns":S?`${C}_list`:void 0,"aria-autocomplete":"list","aria-controls":S?`${C}_list`:void 0,"aria-activedescendant":S?E:void 0};if(o.isValidElement(w)){const t=w.props||{},n={placeholder:e.placeholder||y,...M,...t};return Object.keys(t).forEach(e=>{const o=t[e];"function"==typeof o&&(n[e]=(...t)=>{o(...t),M[e]?.(...t)})}),n.ref=je(w.ref,M.ref),o.cloneElement(w,n)}const B=w;return o.createElement(B,M)});function Np(e){const{prefixCls:t,placeholder:n,displayValues:r}=Ep(),{classNames:a,styles:i}=pp(),{show:l=!0}=e;return r.length?null:o.createElement("div",{className:ie(`${t}-placeholder`,a?.placeholder),style:{visibility:l?"visible":"hidden",...i?.placeholder}},n)}const _p=o.createContext(null);function Ip(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}"undefined"!=typeof window&&window.document&&window.document.documentElement;function Pp(e){return["string","number"].includes(typeof e)}function Op(e){let t;return e&&(Pp(e.title)?t=e.title.toString():Pp(e.label)&&(t=e.label.toString())),t}function Dp(){return Dp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Dp.apply(this,arguments)}process.env.NODE_ENV;const Rp=o.forwardRef(({inputProps:e},t)=>{const{prefixCls:n,searchValue:r,activeValue:a,displayValues:i,maxLength:l,mode:s}=Ep(),{triggerOpen:c,title:d,showSearch:u,classNames:p,styles:m}=pp(),f=o.useContext(_p),[h,g]=o.useState(!1),v="combobox"===s,b=i[0],y=o.useMemo(()=>v&&a&&!h&&c?a:u?r:"",[v,a,h,c,r,u]),w=o.useMemo(()=>{const e={className:`${n}-content-value`,style:{visibility:y?"hidden":"visible"}};if(b&&f?.flattenOptions){const t=f.flattenOptions.find(e=>e.value===b.value);if(t?.data){const{className:n,style:o}=t.data;Object.assign(e,{title:Op(t.data),className:ie(e.className,n),style:{...e.style,...o}})}}return b&&!e.title&&(e.title=Op(b)),void 0!==d&&(e.title=d),e},[b,f?.flattenOptions,n,y,d]);return o.useEffect(()=>{v&&g(!1)},[v,a]),o.createElement("div",{className:ie(`${n}-content`,p?.content),style:m?.content},b?o.createElement("div",w,b.label):o.createElement(Np,{show:!y}),o.createElement(kp,Dp({ref:t},e,{value:y,maxLength:"combobox"===s?l:void 0,onChange:t=>{g(!0),e.onChange?.(t)}})))}),Mp=void 0;function Bp(e,t){const{prefixCls:n,invalidate:r,item:a,renderItem:i,responsive:l,responsiveDisabled:s,registerSize:c,itemKey:d,className:u,style:p,children:m,display:f,order:h,component:g="div",...v}=e,b=l&&!f;function y(e){c(d,e)}o.useEffect(()=>()=>{y(null)},[]);const w=i&&a!==Mp?i(a,{index:h}):m;let C;r||(C={opacity:b?0:1,height:b?0:Mp,overflowY:b?"hidden":Mp,order:l?h:Mp,pointerEvents:b?"none":Mp,position:b?"absolute":Mp});const x={};b&&(x["aria-hidden"]=!0);let $=o.createElement(g,nd({className:ie(!r&&n,u),style:{...C,...p}},x,v,{ref:t}),w);return l&&($=o.createElement(_t,{onResize:({offsetWidth:e})=>{y(e)},disabled:s},$)),$}const Tp=o.forwardRef(Bp);function zp(){const e=o.useRef(null);return t=>{e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)zt(e);else{const t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0)}}(()=>{E(()=>{e.current.forEach(e=>{e()}),e.current=null})})),e.current.push(t)}}function Ap(e,t){const[n,r]=o.useState(t);return[n,$e(t=>{e(()=>{r(t)})})]}"production"!==process.env.NODE_ENV&&(Tp.displayName="Item");const Lp=r.createContext(null),Hp=(e,t)=>{const n=o.useContext(Lp);if(!n){const{component:n="div",...r}=e;return o.createElement(n,nd({},r,{ref:t}))}const{className:r,...a}=n,{className:i,...l}=e;return o.createElement(Lp.Provider,{value:null},o.createElement(Tp,nd({ref:t,className:ie(r,i)},a,l)))},Fp=o.forwardRef(Hp);"production"!==process.env.NODE_ENV&&(Fp.displayName="RawItem");const jp="responsive",Vp="invalidate";function Wp(e){return`+ ${e.length} ...`}function Kp(e,t){const{prefixCls:n="rc-overflow",data:r=[],renderItem:a,renderRawItem:l,itemKey:d,itemWidth:u=10,ssr:p,style:m,className:f,maxCount:h,renderRest:g,renderRawRest:v,prefix:b,suffix:y,component:w="div",itemComponent:C,onVisibleChange:x,...$}=e,S="full"===p,E=zp(),[k,N]=Ap(E,null),_=k||0,[I,P]=Ap(E,new Map),[O,D]=Ap(E,0),[R,M]=Ap(E,0),[B,T]=Ap(E,0),[z,A]=Ap(E,0),[L,H]=i(null),[F,j]=i(null),V=o.useMemo(()=>null===F&&S?Number.MAX_SAFE_INTEGER:F||0,[F,k]),[W,K]=i(!1),q=`${n}-item`,U=Math.max(O,R),X=h===jp,G=r.length&&X,Y=h===Vp,Z=G||"number"==typeof h&&r.length>h,Q=c(()=>{let e=r;return G?e=null===k&&S?r:r.slice(0,Math.min(r.length,_/u)):"number"==typeof h&&(e=r.slice(0,h)),e},[r,u,k,h,G]),J=c(()=>G?r.slice(V+1):r.slice(Q.length),[r,Q,G,V]),ee=s((e,t)=>"function"==typeof d?d(e):(d&&e?.[d])??t,[d]),te=s(a||(e=>e),[a]);function ne(e,t,n){(F!==e||void 0!==t&&t!==L)&&(j(e),n||(K(e<r.length-1),x?.(e)),void 0!==t&&H(t))}function oe(e,t){P(n=>{const o=new Map(n);return null===t?o.delete(e):o.set(e,t),o})}function re(e){return I.get(ee(Q[e],e))}ke(()=>{if(_&&"number"==typeof U&&Q){let e=B+z;const t=Q.length,n=t-1;if(!t)return void ne(0,null);for(let o=0;o<t;o+=1){let t=re(o);if(S&&(t=t||0),void 0===t){ne(o-1,void 0,!0);break}if(e+=t,0===n&&e<=_||o===n-1&&e+re(n)<=_){ne(n,null);break}if(e+U>_){ne(o-1,e-t-z+R);break}}y&&re(0)+z>_&&H(null)}},[_,I,R,B,z,ee,Q]);const ae=W&&!!J.length;let le={};null!==L&&G&&(le={position:"absolute",left:L,top:0});const se={prefixCls:q,responsive:G,component:C,invalidate:Y},ce=l?(e,t)=>{const n=ee(e,t);return o.createElement(Lp.Provider,{key:n,value:{...se,order:t,item:e,itemKey:n,registerSize:oe,display:t<=V}},l(e,t))}:(e,t)=>{const n=ee(e,t);return o.createElement(Tp,nd({},se,{order:t,key:n,item:e,renderItem:te,itemKey:n,registerSize:oe,display:t<=V}))},de={order:ae?V:Number.MAX_SAFE_INTEGER,className:`${q}-rest`,registerSize:function(e,t){M(t),D(R)},display:ae},ue=g||Wp,pe=v?o.createElement(Lp.Provider,{value:{...se,...de}},v(J)):o.createElement(Tp,nd({},se,de),"function"==typeof ue?ue(J):ue),me=o.createElement(w,nd({className:ie(!Y&&n,f),style:m,ref:t},$),b&&o.createElement(Tp,nd({},se,{responsive:X,responsiveDisabled:!G,order:-1,className:`${q}-prefix`,registerSize:function(e,t){T(t)},display:!0}),b),Q.map(ce),Z?pe:null,y&&o.createElement(Tp,nd({},se,{responsive:X,responsiveDisabled:!G,order:V,className:`${q}-suffix`,registerSize:function(e,t){A(t)},display:!0,style:le}),y));return X?o.createElement(_t,{onResize:function(e,t){N(t.clientWidth)},disabled:!G},me):me}const qp=o.forwardRef(Kp);qp.Item=Fp,qp.RESPONSIVE=jp,qp.INVALIDATE=Vp,"production"!==process.env.NODE_ENV&&(qp.displayName="Overflow");const Up=e=>{const{className:t,style:n,customizeIcon:r,customizeIconProps:a,children:i,onMouseDown:l,onClick:s}=e,c="function"==typeof r?r(a):r;return o.createElement("span",{className:t,onMouseDown:e=>{e.preventDefault(),l?.(e)},style:{userSelect:"none",WebkitUserSelect:"none",...n},unselectable:"on",onClick:s,"aria-hidden":!0},void 0!==c?c:o.createElement("span",{className:ie(t.split(/\s+/).map(e=>`${e}-icon`))},i))};function Xp(){return Xp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Xp.apply(this,arguments)}function Gp(e){return e.key??e.value}const Yp=e=>{e.preventDefault(),e.stopPropagation()};var Zp=o.forwardRef(function({inputProps:e},t){const{prefixCls:n,displayValues:r,searchValue:a,mode:i,onSelectorRemove:l,removeIcon:s}=Ep(),{disabled:c,showSearch:d,triggerOpen:u,toggleOpen:p,autoClearSearchValue:m,tagRender:f,maxTagPlaceholder:h,maxTagTextLength:g,maxTagCount:v,classNames:b,styles:y}=pp(),w=`${n}-selection-item`;let C=a;u||"multiple"!==i||!1===m||(C="");const x=d&&C||"",$=d&&!c,S=s??"×",E=h??(e=>`+ ${e.length} ...`),k=f,N=(e,t,n,r,a)=>o.createElement("span",{title:Op(e),className:ie(w,{[`${w}-disabled`]:n},b?.item),style:y?.item},o.createElement("span",{className:ie(`${w}-content`,b?.itemContent),style:y?.itemContent},t),r&&o.createElement(Up,{className:ie(`${w}-remove`,b?.itemRemove),style:y?.itemRemove,onMouseDown:Yp,onClick:a,customizeIcon:S},"×")),_=(e,t,n,r,a,i,l)=>o.createElement("span",{onMouseDown:e=>{Yp(e),p(!u)}},k({label:t,value:e,index:l?.index,disabled:n,closable:r,onClose:a,isMaxTag:!!i}));return o.createElement(qp,{prefixCls:`${n}-content`,className:b?.content,style:y?.content,prefix:r.length||a&&u?null:o.createElement(Np,null),data:r,renderItem:(e,t)=>{const{disabled:n,label:o,value:r}=e,a=!c&&!n;let i=o;if("number"==typeof g&&("string"==typeof o||"number"==typeof o)){const e=String(i);e.length>g&&(i=`${e.slice(0,g)}...`)}const s=t=>{t&&t.stopPropagation(),(e=>{l?.(e)})(e)};return"function"==typeof k?_(r,i,n,a,s,void 0,t):N(e,i,n,a,s)},renderRest:e=>{if(!r.length)return null;const t="function"==typeof E?E(e):E;return"function"==typeof k?_(void 0,t,!1,!1,void 0,!0):N({title:t},t,!1)},suffix:o.createElement(kp,Xp({ref:t,disabled:c,readOnly:!$},e,{value:x||"",syncWidth:!0})),itemKey:Gp,maxCount:v})});const Qp=o.forwardRef(function(e,t){const{multiple:n,onInputKeyDown:r,tabIndex:a}=Ep(),i=pp(),{showSearch:l}=i,s={...Li(i,{aria:!0}),onKeyDown:r,readOnly:!l,tabIndex:a};return n?o.createElement(Zp,{ref:t,inputProps:s}):o.createElement(Rp,{ref:t,inputProps:s})});function Jp(){return Jp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Jp.apply(this,arguments)}const em=["value","onChange","removeIcon","placeholder","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex","activeValue","onSelectorRemove","focused"];var tm=o.forwardRef(function(e,t){const{prefixCls:n,className:r,style:a,prefix:i,suffix:l,clearIcon:s,children:c,multiple:d,displayValues:u,placeholder:p,mode:m,searchValue:f,onSearch:h,onSearchSubmit:g,onInputBlur:v,maxLength:b,autoFocus:y,onMouseDown:w,onClearMouseDown:C,onInputKeyDown:x,onSelectorRemove:$,tokenWithEnter:S,components:E,...k}=e,{triggerOpen:N,toggleOpen:_,showSearch:I,disabled:P,loading:O,classNames:D,styles:R}=pp(),M=o.useRef(null),B=o.useRef(null),T=$e(e=>{const{which:t}=e,n=B.current instanceof HTMLTextAreaElement;if(n||!N||t!==Fs.UP&&t!==Fs.DOWN||e.preventDefault(),x&&x(e),n&&!N&&~[Fs.UP,Fs.DOWN,Fs.LEFT,Fs.RIGHT].indexOf(t))return;var o;e.ctrlKey||e.altKey||e.metaKey||(!(o=t)||[Fs.ESC,Fs.SHIFT,Fs.BACKSPACE,Fs.TAB,Fs.WIN_KEY,Fs.ALT,Fs.META,Fs.WIN_KEY_RIGHT,Fs.CTRL,Fs.SEMICOLON,Fs.EQUALS,Fs.CAPS_LOCK,Fs.CONTEXT_MENU,Fs.UP,Fs.LEFT,Fs.RIGHT,Fs.F1,Fs.F2,Fs.F3,Fs.F4,Fs.F5,Fs.F6,Fs.F7,Fs.F8,Fs.F9,Fs.F10,Fs.F11,Fs.F12].includes(o))||_(!0)});o.useImperativeHandle(t,()=>({focus:e=>{(B.current||M.current).focus?.(e)},blur:()=>{(B.current||M.current).blur?.()},nativeElement:M.current}));const z=$e(e=>{if(!P){const t=bt(B.current);e.nativeEvent._ori_target=t,t&&e.target!==t&&!t.contains(e.target)&&e.preventDefault();const n=N&&!d&&("combobox"===m||I);e.nativeEvent._select_lazy?N&&_(!1):(B.current?.focus(),n||_())}w?.(e)}),{root:A}=E,L=lt(k,em),H=Li(L,{aria:!0}),F=Object.keys(H),j={...e,onInputKeyDown:T};return A?o.isValidElement(A)?o.cloneElement(A,{...L,ref:je(A.ref,M)}):o.createElement(A,Jp({},L,{ref:M})):o.createElement(Sp.Provider,{value:j},o.createElement("div",Jp({},lt(L,F),{ref:M,className:r,style:a,onMouseDown:z}),o.createElement($p,{className:ie(`${n}-prefix`,D?.prefix),style:R?.prefix},i),o.createElement(Qp,{ref:B}),o.createElement($p,{className:ie(`${n}-suffix`,{[`${n}-suffix-loading`]:O},D?.suffix),style:R?.suffix},l),s&&o.createElement($p,{className:ie(`${n}-clear`,D?.clear),style:R?.clear,onMouseDown:e=>{e.nativeEvent._select_lazy=!0,C?.(e)}},s),c))});function nm(){return nm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},nm.apply(this,arguments)}const om=e=>"tags"===e||"multiple"===e,rm=o.forwardRef((e,t)=>{const{id:n,prefixCls:r,className:s,styles:d,classNames:u,showSearch:p,tagRender:m,showScrollBar:f="optional",direction:h,omitDomProps:g,displayValues:v,onDisplayValuesChange:b,emptyOptions:y,notFoundContent:w="Not Found",onClear:C,maxCount:x,placeholder:$,mode:S,disabled:E,loading:k,getInputElement:N,getRawInputElement:_,open:I,defaultOpen:P,onPopupVisibleChange:O,activeValue:D,onActiveValueChange:R,activeDescendantId:M,searchValue:B,autoClearSearchValue:T,onSearch:z,onSearchSplit:A,tokenSeparators:L,allowClear:H,prefix:F,suffix:j,suffixIcon:V,clearIcon:W,OptionList:K,animation:q,transitionName:U,popupStyle:X,popupClassName:G,popupMatchSelectWidth:Y,popupRender:Z,popupAlign:Q,placement:J,builtinPlacements:ee,getPopupContainer:te,showAction:ne=[],onFocus:oe,onBlur:re,onKeyUp:ae,onKeyDown:le,onMouseDown:se,components:ce,...de}=e,ue=om(S),pe=o.useRef(null),me=o.useRef(null),fe=o.useRef(null),[he,ge]=o.useState(!1);o.useImperativeHandle(t,()=>({focus:pe.current?.focus,blur:pe.current?.blur,scrollTo:e=>fe.current?.scrollTo(e),nativeElement:bt(pe.current)}));const ve=function(e,t,n){return o.useMemo(()=>{let{root:o,input:r}=e||{};return n&&(o=n()),t&&(r=t()),{root:o,input:r}},[e,t,n])}(ce,N,_),be=o.useMemo(()=>{if("combobox"!==S)return B;const e=v[0]?.value;return"string"==typeof e||"number"==typeof e?String(e):""},[B,S,v]),ye="combobox"===S&&"function"==typeof N&&N()||null,we=!w&&y,[Ce,xe]=function(e,t,n,o){const[r,s]=i(!1);l(()=>{s(!0)},[]);const[c,d]=_e(e,t),u=o(!!r&&c),p=a(0),m=$e(e=>{n&&u!==e&&n(e),d(e)}),f=$e((e,t={})=>{const{cancelFun:n}=t;p.current+=1;const o=p.current,r="boolean"==typeof e?e:!u;function a(){o!==p.current||n?.()||m(r)}r?a():xp(()=>{a()})});return[u,f]}(P||!1,I,O,e=>!E&&!we&&e),Se=o.useMemo(()=>(L||[]).some(e=>["\n","\r\n"].includes(e)),[L]),Ee=(e,t,n)=>{if(ue&&bp(x)&&v.length>=x)return;let o=!0,r=e;R?.(null);const a=((e,t,n)=>{if(!t||!t.length)return null;let o=!1;const r=(e,[t,...n])=>{if(!t)return[e];const a=e.split(t);return o=o||a.length>1,a.reduce((e,t)=>[...e,...r(t,n)],[]).filter(Boolean)},a=r(e,t);return o?void 0!==n?a.slice(0,n):a:null})(e,L,bp(x)?x-v.length:void 0),i=n?null:a;return"combobox"!==S&&i&&(r="",A?.(i),xe(!1),o=!1),z&&be!==r&&z(r,{source:t?"typing":"effect"}),e&&t&&o&&xe(!0),o};o.useEffect(()=>{Ce||ue||"combobox"===S||Ee("",!1,!1)},[Ce]),o.useEffect(()=>{E&&(xe(!1),ge(!1))},[E,Ce]);const[ke,Ne]=function(e=250){const t=o.useRef(null),n=o.useRef(null);return o.useEffect(()=>()=>{window.clearTimeout(n.current)},[]),[()=>t.current,function(o){(o||null===t.current)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current=null},e)}]}(),Ie=o.useRef(!1),Pe=$e(e=>{const t=v.filter(t=>t!==e);b(t,{type:"remove",values:[e]})}),Oe=()=>[bt(pe.current),me.current?.getPopupElement()];!function(e,t,n,r){const a=$e(o=>{if(r)return;let a=o.target;a.shadowRoot&&o.composed&&(a=o.composedPath()[0]||a),o._ori_target&&(a=o._ori_target),t&&!mp(e(),a)&&n(!1)});o.useEffect(()=>(window.addEventListener("mousedown",a),()=>window.removeEventListener("mousedown",a)),[a])}(Oe,Ce,xe,!!ve.root);const De=o.useRef(!1),Re=()=>{Ce&&!De.current&&xe(!1,{cancelFun:()=>mp(Oe(),document.activeElement)})},Me=(e,...t)=>{const{target:n}=e,o=me.current?.getPopupElement();o?.contains(n)&&xe&&xe(!0),se?.(e,...t),De.current=!0,xp(()=>{De.current=!1})},[,Be]=o.useState({});let Te;ve.root&&(Te=e=>{xe(e)});const ze=o.useMemo(()=>({...e,notFoundContent:w,open:Ce,triggerOpen:Ce,id:n,showSearch:p,multiple:ue,toggleOpen:xe,showScrollBar:f,styles:d,classNames:u}),[e,w,xe,n,p,ue,Ce,f,d,u]),Ae=o.useMemo(()=>{const e=j??V;return"function"==typeof e?e({searchValue:be,open:Ce,focused:he,showSearch:p,loading:k}):e},[j,V,be,Ce,he,p,k]),{allowClear:Le,clearIcon:He}=((e,t,n,o,r=!1,a,i)=>{const l=c(()=>"boolean"==typeof n?{allowClear:n}:n&&"object"==typeof n?n:{allowClear:!1},[n]);return c(()=>{const e=!r&&!1!==l.allowClear&&(t.length||a)&&!("combobox"===i&&""===a);return{allowClear:e,clearIcon:e?l.clearIcon||o||"×":null}},[l,o,r,t.length,a,i])})(0,v,H,W,E,be,S),Fe=o.createElement(K,{ref:fe}),je=ie(r,s,{[`${r}-focused`]:he,[`${r}-multiple`]:ue,[`${r}-single`]:!ue,[`${r}-allow-clear`]:Le,[`${r}-show-arrow`]:null!=Ae,[`${r}-disabled`]:E,[`${r}-loading`]:k,[`${r}-open`]:Ce,[`${r}-customize-input`]:ye,[`${r}-show-search`]:p});let Ve=o.createElement(tm,nm({},de,{ref:pe,prefixCls:r,className:je,focused:he,prefix:F,suffix:Ae,clearIcon:He,multiple:ue,mode:S,displayValues:v,placeholder:$,searchValue:be,activeValue:D,onSearch:Ee,onSearchSubmit:e=>{e&&e.trim()&&z(e,{source:"submit"})},onInputBlur:()=>{Ie.current=!1},onFocus:e=>{ge(!0),E||(ne.includes("focus")&&xe(!0),oe?.(e))},onBlur:e=>{ge(!1),be&&("tags"===S?z(be,{source:"submit"}):"multiple"===S&&z("",{source:"blur"})),Re(),E||re?.(e)},onClearMouseDown:()=>{C?.(),pe.current?.focus(),b([],{type:"clear",values:v}),Ee("",!1,!1)},onKeyDown:e=>{const t=ke(),{key:n}=e,o="Enter"===n;if(o&&("combobox"!==S&&e.preventDefault(),Ce||xe(!0)),Ne(!!be),"Backspace"===n&&!t&&ue&&!be&&v.length){const e=[...v];let t=null;for(let n=e.length-1;n>=0;n-=1){const o=e[n];if(!o.disabled){e.splice(n,1),t=o;break}}t&&b(e,{type:"remove",values:[t]})}!Ce||o&&Ie.current||(o&&(Ie.current=!0),fe.current?.onKeyDown(e)),le?.(e)},onKeyUp:(e,...t)=>{Ce&&fe.current?.onKeyUp(e,...t),"Enter"===e.key&&(Ie.current=!1),ae?.(e,...t)},onSelectorRemove:Pe,tokenWithEnter:Se,onMouseDown:Me,components:ve}));return Ve=o.createElement(gp,{ref:me,disabled:E,prefixCls:r,visible:Ce,popupElement:Fe,animation:q,transitionName:U,popupStyle:X,popupClassName:G,direction:h,popupMatchSelectWidth:Y,popupRender:Z,popupAlign:Q,placement:J,builtinPlacements:ee,getPopupContainer:te,empty:y,onPopupVisibleChange:Te,onPopupMouseEnter:function(){Be({})},onPopupMouseDown:Me,onPopupBlur:Re},Ve),o.createElement(up.Provider,{value:ze},o.createElement(Cp,{visible:he&&!Ce,values:v}),Ve)});"production"!==process.env.NODE_ENV&&(rm.displayName="BaseSelect");const am=()=>null;am.isSelectOptGroup=!0;const im=()=>null;im.isSelectOption=!0;const lm=o.forwardRef(({height:e,offsetY:t,offsetX:n,children:r,prefixCls:a,onInnerResize:i,innerProps:l,rtl:s,extra:c},d)=>{let u={},p={display:"flex",flexDirection:"column"};return void 0!==t&&(u={height:e,position:"relative",overflow:"hidden"},p={...p,transform:`translateY(${t}px)`,[s?"marginRight":"marginLeft"]:-n,position:"absolute",left:0,right:0,top:0}),o.createElement("div",{style:u},o.createElement(_t,{onResize:({offsetHeight:e})=>{e&&i&&i()}},o.createElement("div",nd({style:p,className:ie({[`${a}-holder-inner`]:a}),ref:d},l),r,c)))});function sm({children:e,setRef:t}){const n=o.useCallback(e=>{t(e)},[]);return o.cloneElement(e,{ref:n})}function cm(e,t,n){const[r,a]=o.useState(e),[i,l]=o.useState(null);return o.useEffect(()=>{const o=function(e,t,n){const o=e.length,r=t.length;let a,i;if(0===o&&0===r)return null;o<r?(a=e,i=t):(a=t,i=e);const l={__EMPTY_ITEM__:!0};function s(e){return void 0!==e?n(e):l}let c=null,d=1!==Math.abs(o-r);for(let e=0;e<i.length;e+=1){const t=s(a[e]);if(t!==s(i[e])){c=e,d=d||t!==s(i[e+1]);break}}return null===c?null:{index:c,multiple:d}}(r||[],e||[],t);void 0!==o?.index&&(n?.(o.index),l(e[o.index])),a(e)},[e]),[i]}lm.displayName="Filler";const dm="object"==typeof navigator&&/Firefox/i.test(navigator.userAgent);var um=(e,t,n,o)=>{const r=a(!1),i=a(null);const l=a({top:e,bottom:t,left:n,right:o});return l.current.top=e,l.current.bottom=t,l.current.left=n,l.current.right=o,(e,t,n=!1)=>{const o=e?t<0&&l.current.left||t>0&&l.current.right:t<0&&l.current.top||t>0&&l.current.bottom;return n&&o?(clearTimeout(i.current),r.current=!1):o&&!r.current||(clearTimeout(i.current),r.current=!0,i.current=setTimeout(()=>{r.current=!1},50)),!r.current&&o}};function pm(e,t,n,o,r,i,l){const s=a(0),c=a(null),d=a(null),u=a(!1),p=um(t,n,o,r);const m=a(null),f=a(null);return[function(t){if(!e)return;zt.cancel(f.current),f.current=zt(()=>{m.current=null},2);const{deltaX:n,deltaY:o,shiftKey:r}=t;let a=n,h=o;("sx"===m.current||!m.current&&r&&o&&!n)&&(a=o,h=0,m.current="sx");const g=Math.abs(a),v=Math.abs(h);null===m.current&&(m.current=i&&g>v?"x":"y"),"y"===m.current?function(e,t){if(zt.cancel(c.current),p(!1,t))return;const n=e;n._virtualHandled||(n._virtualHandled=!0,s.current+=t,d.current=t,dm||n.preventDefault(),c.current=zt(()=>{const e=u.current?10:1;l(s.current*e,!1),s.current=0}))}(t,h):function(e,t){l(t,!0),dm||e.preventDefault()}(t,a)},function(t){e&&(u.current=t.detail===d.current)}]}class mm{maps;id=0;diffRecords=new Map;constructor(){this.maps=Object.create(null)}set(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}get(e){return this.maps[e]}resetRecord(){this.diffRecords.clear()}getRecord(){return this.diffRecords}}function fm(e){const t=parseFloat(e);return isNaN(t)?0:t}const hm=14/15;function gm(e){return Math.floor(e**.5)}function vm(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}const bm=o.forwardRef((e,t)=>{const{prefixCls:n,rtl:r,scrollOffset:a,scrollRange:i,onStartMove:l,onStopMove:s,onScroll:c,horizontal:d,spinSize:u,containerSize:p,style:m,thumbStyle:f,showScrollBar:h}=e,[g,v]=o.useState(!1),[b,y]=o.useState(null),[w,C]=o.useState(null),x=!r,$=o.useRef(),S=o.useRef(),[E,k]=o.useState(h),N=o.useRef(),_=()=>{!0!==h&&!1!==h&&(clearTimeout(N.current),k(!0),N.current=setTimeout(()=>{k(!1)},3e3))},I=i-p||0,P=p-u||0,O=o.useMemo(()=>{if(0===a||0===I)return 0;return a/I*P},[a,I,P]),D=o.useRef({top:O,dragging:g,pageY:b,startTop:w});D.current={top:O,dragging:g,pageY:b,startTop:w};const R=e=>{v(!0),y(vm(e,d)),C(D.current.top),l(),e.stopPropagation(),e.preventDefault()};o.useEffect(()=>{const e=e=>{e.preventDefault()},t=$.current,n=S.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",R,{passive:!1}),()=>{t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",R)}},[]);const M=o.useRef();M.current=I;const B=o.useRef();B.current=P,o.useEffect(()=>{if(g){let e;const t=t=>{const{dragging:n,pageY:o,startTop:r}=D.current;zt.cancel(e);const a=$.current.getBoundingClientRect(),i=p/(d?a.width:a.height);if(n){const n=(vm(t,d)-o)*i;let a=r;!x&&d?a-=n:a+=n;const l=M.current,s=B.current,u=s?a/s:0;let p=Math.ceil(u*l);p=Math.max(p,0),p=Math.min(p,l),e=zt(()=>{c(p,d)})}},n=()=>{v(!1),s()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),()=>{window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),zt.cancel(e)}}},[g]),o.useEffect(()=>(_(),()=>{clearTimeout(N.current)}),[a]),o.useImperativeHandle(t,()=>({delayHidden:_}));const T=`${n}-scrollbar`,z={position:"absolute",visibility:E?null:"hidden"},A={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return d?(Object.assign(z,{height:8,left:0,right:0,bottom:0}),Object.assign(A,{height:"100%",width:u,[x?"left":"right"]:O})):(Object.assign(z,{width:8,top:0,bottom:0,[x?"right":"left"]:0}),Object.assign(A,{width:"100%",height:u,top:O})),o.createElement("div",{ref:$,className:ie(T,{[`${T}-horizontal`]:d,[`${T}-vertical`]:!d,[`${T}-visible`]:E}),style:{...z,...m},onMouseDown:e=>{e.stopPropagation(),e.preventDefault()},onMouseMove:_},o.createElement("div",{ref:S,className:ie(`${T}-thumb`,{[`${T}-thumb-moving`]:g}),style:{...A,...f},onMouseDown:R}))});"production"!==process.env.NODE_ENV&&(bm.displayName="ScrollBar");function ym(e=0,t=0){let n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,20),Math.floor(n)}const wm=[],Cm={overflowY:"auto",overflowAnchor:"none"};function xm(e,t){const{prefixCls:n="rc-virtual-list",className:r,height:s,itemHeight:c,fullHeight:d=!0,style:u,data:p,children:m,itemKey:f,virtual:h,direction:g,scrollWidth:v,component:b="div",onScroll:y,onVirtualScroll:w,onVisibleChange:C,innerProps:x,extraRender:$,styles:E,showScrollBar:k="optional",...N}=e,_=o.useCallback(e=>"function"==typeof f?f(e):e?.[f],[f]),[I,P,O,D]=function(e,t,n){const[r,i]=o.useState(0),s=a(new Map),c=a(new mm),d=a(0);function u(){d.current+=1}function p(e=!1){u();const t=()=>{let e=!1;s.current.forEach((t,n)=>{if(t&&t.offsetParent){const{offsetHeight:o}=t,{marginTop:r,marginBottom:a}=getComputedStyle(t),i=o+fm(r)+fm(a);c.current.get(n)!==i&&(c.current.set(n,i),e=!0)}}),e&&i(e=>e+1)};if(e)t();else{d.current+=1;const e=d.current;Promise.resolve().then(()=>{e===d.current&&t()})}}return l(()=>u,[]),[function(o,r){const a=e(o),i=s.current.get(a);r?(s.current.set(a,r),p()):s.current.delete(a),!i!=!r&&(r?t?.(o):n?.(o))},p,c.current,r]}(_,null,null),R=!(!1===h||!s||!c),M=o.useMemo(()=>Object.values(O.maps).reduce((e,t)=>e+t,0),[O.id,O.maps]),B=R&&p&&(Math.max(c*p.length,M)>s||!!v),T="rtl"===g,z=ie(n,{[`${n}-rtl`]:T},r),A=p||wm,L=a(),H=a(),F=a(),[j,V]=i(0),[W,K]=i(0),[q,U]=i(!1),X=()=>{U(!0)},G=()=>{U(!1)},Y={getKey:_};function Z(e){V(t=>{let n;n="function"==typeof e?e(t):e;const o=function(e){let t=e;Number.isNaN(me.current)||(t=Math.min(t,me.current));return t=Math.max(t,0),t}(n);return L.current.scrollTop=o,o})}const Q=a({start:0,end:A.length}),J=a(),[ee]=cm(A,_);J.current=ee;const{scrollHeight:te,start:ne,end:oe,offset:re}=o.useMemo(()=>{if(!R)return{scrollHeight:void 0,start:0,end:A.length-1,offset:void 0};if(!B)return{scrollHeight:H.current?.offsetHeight||0,start:0,end:A.length-1,offset:void 0};let e,t,n,o=0;const r=A.length;for(let a=0;a<r;a+=1){const r=A[a],i=_(r),l=O.get(i),d=o+(void 0===l?c:l);d>=j&&void 0===e&&(e=a,t=o),d>j+s&&void 0===n&&(n=a),o=d}return void 0===e&&(e=0,t=0,n=Math.ceil(s/c)),void 0===n&&(n=A.length-1),n=Math.min(n+1,A.length-1),{scrollHeight:o,start:e,end:n,offset:t}},[B,R,j,A,D,s]);Q.current.start=ne,Q.current.end=oe,o.useLayoutEffect(()=>{const e=O.getRecord();if(1===e.size){const t=Array.from(e.keys())[0],n=e.get(t),o=A[ne];if(o&&void 0===n){if(_(o)===t){const e=O.get(t)-c;Z(t=>t+e)}}}O.resetRecord()},[te]);const[ae,le]=o.useState({width:0,height:s}),se=a(),ce=a(),de=o.useMemo(()=>ym(ae.width,v),[ae.width,v]),ue=o.useMemo(()=>ym(ae.height,te),[ae.height,te]),pe=te-s,me=a(pe);me.current=pe;const fe=j<=0,he=j>=pe,ge=W<=0,ve=W>=v,be=um(fe,he,ge,ve),ye=()=>({x:T?-W:W,y:j}),we=a(ye()),Ce=$e(e=>{if(w){const t={...ye(),...e};we.current.x===t.x&&we.current.y===t.y||(w(t),we.current=t)}});function xe(e,t){const n=e;t?(S(()=>{K(n)}),Ce()):Z(n)}const Se=e=>{let t=e;const n=v?v-ae.width:0;return t=Math.max(t,0),t=Math.min(t,n),t},Ee=$e((e,t)=>{t?(S(()=>{K(t=>Se(t+(T?-e:e)))}),Ce()):Z(t=>t+e)}),[Ne,_e]=pm(R,fe,he,ge,ve,!!v,Ee);!function(e,t,n){const o=a(!1),r=a(0),i=a(0),l=a(null),s=a(null);let c;const d=e=>{if(o.current){const t=Math.ceil(e.touches[0].pageX),o=Math.ceil(e.touches[0].pageY);let a=r.current-t,l=i.current-o;const c=Math.abs(a)>Math.abs(l);c?r.current=t:i.current=o;const d=n(c,c?a:l,!1,e);d&&e.preventDefault(),clearInterval(s.current),d&&(s.current=setInterval(()=>{c?a*=hm:l*=hm;const e=Math.floor(c?a:l);(!n(c,e,!0)||Math.abs(e)<=.1)&&clearInterval(s.current)},16))}},u=()=>{o.current=!1,c()},p=e=>{c(),1!==e.touches.length||o.current||(o.current=!0,r.current=Math.ceil(e.touches[0].pageX),i.current=Math.ceil(e.touches[0].pageY),l.current=e.target,l.current.addEventListener("touchmove",d,{passive:!1}),l.current.addEventListener("touchend",u,{passive:!0}))};c=()=>{l.current&&(l.current.removeEventListener("touchmove",d),l.current.removeEventListener("touchend",u))},ke(()=>(e&&t.current.addEventListener("touchstart",p,{passive:!0}),()=>{t.current?.removeEventListener("touchstart",p),c(),clearInterval(s.current)}),[e])}(R,L,(e,t,n,o)=>{const r=o;return!be(e,t,n)&&((!r||!r._virtualHandled)&&(r&&(r._virtualHandled=!0),Ne({preventDefault(){},deltaX:e?t:0,deltaY:e?0:t}),!0))}),function(e,t,n){o.useEffect(()=>{const o=t.current;if(e&&o){let e,t,r=!1;const a=()=>{zt.cancel(e)},i=()=>{a(),e=zt(()=>{n(t),i()})},l=()=>{r=!1,a()},s=e=>{if(e.target.draggable||0!==e.button)return;const t=e;t._virtualHandled||(t._virtualHandled=!0,r=!0)},c=e=>{if(r){const n=vm(e,!1),{top:r,bottom:l}=o.getBoundingClientRect();n<=r?(t=-gm(r-n),i()):n>=l?(t=gm(n-l),i()):a()}};return o.addEventListener("mousedown",s),o.ownerDocument.addEventListener("mouseup",l),o.ownerDocument.addEventListener("mousemove",c),o.ownerDocument.addEventListener("dragend",l),()=>{o.removeEventListener("mousedown",s),o.ownerDocument.removeEventListener("mouseup",l),o.ownerDocument.removeEventListener("mousemove",c),o.ownerDocument.removeEventListener("dragend",l),a()}}},[e])}(B,L,e=>{Z(t=>t+e)}),ke(()=>{function e(e){const t=fe&&e.detail<0,n=he&&e.detail>0;!R||t||n||e.preventDefault()}const t=L.current;return t.addEventListener("wheel",Ne,{passive:!1}),t.addEventListener("DOMMouseScroll",_e,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),()=>{t.removeEventListener("wheel",Ne),t.removeEventListener("DOMMouseScroll",_e),t.removeEventListener("MozMousePixelScroll",e)}},[R,fe,he]),ke(()=>{if(v){const e=Se(W);K(e),Ce({x:e})}},[ae.width,v]);const Ie=()=>{se.current?.delayHidden(),ce.current?.delayHidden()},Pe=function(e,t,n,r,a,i,l,s){const c=o.useRef(),[d,u]=o.useState(null);return ke(()=>{if(d&&d.times<10){if(!e.current)return void u(e=>({...e}));i();const{targetAlign:o,originAlign:s,index:c,offset:p}=d,m=e.current.clientHeight;let f=!1,h=o,g=null;if(m){const i=o||s;let u=0,v=0,b=0;const y=Math.min(t.length-1,c);for(let e=0;e<=y;e+=1){const o=a(t[e]);v=u;const i=n.get(o);b=v+(void 0===i?r:i),u=b}let w="top"===i?p:m-p;for(let e=y;e>=0;e-=1){const o=a(t[e]),r=n.get(o);if(void 0===r){f=!0;break}if(w-=r,w<=0)break}switch(i){case"top":g=v-p;break;case"bottom":g=b-m+p;break;default:{const{scrollTop:t}=e.current;v<t?h="top":b>t+m&&(h="bottom")}}null!==g&&l(g),g!==d.lastTop&&(f=!0)}f&&u({...d,times:d.times+1,targetAlign:h,lastTop:g})}else"production"!==process.env.NODE_ENV&&10===d?.times&&at(!1,"Seems `scrollTo` with `rc-virtual-list` reach the max limitation. Please fire issue for us. Thanks.")},[d,e.current]),e=>{if(null!=e){if(zt.cancel(c.current),"number"==typeof e)l(e);else if(e&&"object"==typeof e){let n;const{align:o}=e;"index"in e?({index:n}=e):n=t.findIndex(t=>a(t)===e.key);const{offset:r=0}=e;u({times:0,index:n,offset:r,originAlign:o})}}else s()}}(L,A,O,c,_,()=>P(!0),Z,Ie);o.useImperativeHandle(t,()=>({nativeElement:F.current,getScrollInfo:ye,scrollTo:e=>{var t;(t=e)&&"object"==typeof t&&("left"in t||"top"in t)?(void 0!==e.left&&K(Se(e.left)),Pe(e.top)):Pe(e)}})),ke(()=>{if(C){const e=A.slice(ne,oe+1);C(e,A)}},[ne,oe,A]);const Oe=function(e,t,n,r){const[a,i]=o.useMemo(()=>[new Map,[]],[e,n.id,r]);return(o,l=o)=>{let s=a.get(o),c=a.get(l);if(void 0===s||void 0===c){const d=e.length;for(let u=i.length;u<d;u+=1){const d=e[u],p=t(d);a.set(p,u);const m=n.get(p)??r;if(i[u]=(i[u-1]||0)+m,p===o&&(s=u),p===l&&(c=u),void 0!==s&&void 0!==c)break}}return{top:i[s-1]||0,bottom:i[c]}}}(A,_,O,c),De=$?.({start:ne,end:oe,virtual:B,offsetX:W,offsetY:re,rtl:T,getSize:Oe}),Re=function(e,t,n,r,a,i,l,{getKey:s}){return e.slice(t,n+1).map((e,n)=>{const c=l(e,t+n,{style:{width:r},offsetX:a}),d=s(e);return o.createElement(sm,{key:d,setRef:t=>i(e,t)},c)})}(A,ne,oe,v,W,I,m,Y);let Me=null;s&&(Me={[d?"height":"maxHeight"]:s,...Cm},R&&(Me.overflowY="hidden",v&&(Me.overflowX="hidden"),q&&(Me.pointerEvents="none")));const Be={};return T&&(Be.dir="rtl"),o.createElement("div",nd({ref:F,style:{...u,position:"relative"},className:z},Be,N),o.createElement(_t,{onResize:e=>{le({width:e.offsetWidth,height:e.offsetHeight})}},o.createElement(b,{className:`${n}-holder`,style:Me,ref:L,onScroll:function(e){const{scrollTop:t}=e.currentTarget;t!==j&&Z(t),y?.(e),Ce()},onMouseEnter:Ie},o.createElement(lm,{prefixCls:n,height:te,offsetX:W,offsetY:re,scrollWidth:v,onInnerResize:P,ref:H,innerProps:x,rtl:T,extra:De},Re))),B&&te>s&&o.createElement(bm,{ref:se,prefixCls:n,scrollOffset:j,scrollRange:te,rtl:T,onScroll:xe,onStartMove:X,onStopMove:G,spinSize:ue,containerSize:ae.height,style:E?.verticalScrollBar,thumbStyle:E?.verticalScrollBarThumb,showScrollBar:k}),B&&v>ae.width&&o.createElement(bm,{ref:ce,prefixCls:n,scrollOffset:W,scrollRange:v,rtl:T,onScroll:xe,onStartMove:X,onStopMove:G,spinSize:de,containerSize:ae.width,horizontal:!0,style:E?.horizontalScrollBar,thumbStyle:E?.horizontalScrollBarThumb,showScrollBar:k}))}const $m=o.forwardRef(xm);function Sm(){return Sm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Sm.apply(this,arguments)}function Em(e){return"string"==typeof e||"number"==typeof e}$m.displayName="List";const km=(e,t)=>{const{prefixCls:n,id:r,open:a,multiple:i,mode:s,searchValue:c,toggleOpen:d,notFoundContent:u,onPopupScroll:p,showScrollBar:m}=pp(),{maxCount:f,flattenOptions:h,onActiveValue:g,defaultActiveFirstOption:v,onSelect:b,menuItemSelectedIcon:y,rawValues:w,fieldNames:C,virtual:x,direction:$,listHeight:S,listItemHeight:E,optionRender:k,classNames:N,styles:_}=o.useContext(_p),I=`${n}-item`,P=Be(()=>h,[a,h],(e,t)=>t[0]&&e[1]!==t[1]),O=o.useRef(null),D=o.useMemo(()=>i&&bp(f)&&w?.size>=f,[i,f,w?.size]),R=e=>{e.preventDefault()},M=e=>{O.current?.scrollTo("number"==typeof e?{index:e}:e)},B=o.useCallback(e=>"combobox"!==s&&w.has(e),[s,[...w].toString(),w.size]),T=(e,t=1)=>{const n=P.length;for(let o=0;o<n;o+=1){const r=(e+o*t+n)%n,{group:a,data:i}=P[r]||{};if(!a&&!i?.disabled&&(B(i.value)||!D))return r}return-1},[z,A]=o.useState(()=>T(0)),L=(e,t=!1)=>{A(e);const n={source:t?"keyboard":"mouse"},o=P[e];o?g(o.value,e,n):g(null,-1,n)};l(()=>{L(!1!==v?T(0):-1)},[P.length,c]);const H=o.useCallback(e=>"combobox"===s?String(e).toLowerCase()===c.toLowerCase():w.has(e),[s,c,[...w].toString(),w.size]);l(()=>{let e;if(!i&&a&&1===w.size){const t=Array.from(w)[0],n=P.findIndex(({data:e})=>c?String(e.value).startsWith(c):e.value===t);-1!==n&&(L(n),e=setTimeout(()=>{M(n)}))}return a&&O.current?.scrollTo(void 0),()=>clearTimeout(e)},[a,c]);const F=e=>{void 0!==e&&b(e,{selected:!w.has(e)}),i||d(!1)};if(o.useImperativeHandle(t,()=>({onKeyDown:e=>{const{which:t,ctrlKey:n}=e;switch(t){case Fs.N:case Fs.P:case Fs.UP:case Fs.DOWN:{let e=0;if(t===Fs.UP?e=-1:t===Fs.DOWN?e=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===Fs.N?e=1:t===Fs.P&&(e=-1)),0!==e){const t=T(z+e,e);M(t),L(t,!0)}break}case Fs.TAB:case Fs.ENTER:{const t=P[z];if(!t||t.data.disabled)return F(void 0);!D||w.has(t.value)?F(t.value):F(void 0),a&&e.preventDefault();break}case Fs.ESC:d(!1),a&&e.stopPropagation()}},onKeyUp:()=>{},scrollTo:e=>{M(e)}})),0===P.length)return o.createElement("div",{role:"listbox",id:`${r}_list`,className:`${I}-empty`,onMouseDown:R},u);const j=Object.keys(C).map(e=>C[e]),V=e=>e.label;function W(e,t){const{group:n}=e;return{role:n?"presentation":"option",id:`${r}_list_${t}`}}const K=e=>{const t=P[e];if(!t)return null;const n=t.data||{},{value:r}=n,{group:a}=t,i=Li(n,!0),l=V(t);return t?o.createElement("div",Sm({"aria-label":"string"!=typeof l||a?null:l},i,{key:e},W(t,e),{"aria-selected":H(r)}),r):null},q={role:"listbox",id:`${r}_list`};return o.createElement(o.Fragment,null,x&&o.createElement("div",Sm({},q,{style:{height:0,width:0,overflow:"hidden"}}),K(z-1),K(z),K(z+1)),o.createElement($m,{itemKey:"key",ref:O,data:P,height:S,itemHeight:E,fullHeight:!1,onMouseDown:R,onScroll:p,virtual:x,direction:$,innerProps:x?null:q,showScrollBar:m,className:N?.popup?.list,style:_?.popup?.list},(e,t)=>{const{group:n,groupOption:r,data:a,label:i,value:l}=e,{key:s}=a;if(n){const e=a.title??(Em(i)?i.toString():void 0);return o.createElement("div",{className:ie(I,`${I}-group`,a.className),title:e},void 0!==i?i:s)}const{disabled:c,title:d,children:u,style:p,className:m,...f}=a,h=lt(f,j),g=B(l),v=c||!g&&D,b=`${I}-option`,w=ie(I,b,m,N?.popup?.listItem,{[`${b}-grouped`]:r,[`${b}-active`]:z===t&&!v,[`${b}-disabled`]:v,[`${b}-selected`]:g}),C=V(e),$=!y||"function"==typeof y||g,S="number"==typeof C?C:C||l;let E=Em(S)?S.toString():void 0;return void 0!==d&&(E=d),o.createElement("div",Sm({},Li(h),x?{}:W(e,t),{"aria-selected":x?void 0:H(l),className:w,title:E,onMouseMove:()=>{z===t||v||L(t)},onClick:()=>{v||F(l)},style:{..._?.popup?.listItem,...p}}),o.createElement("div",{className:`${b}-content`},"function"==typeof k?k(e,{index:t}):S),o.isValidElement(y)||g,$&&o.createElement(Up,{className:`${I}-option-state`,customizeIcon:y,customizeIconProps:{value:l,disabled:v,isSelected:g}},g?"✓":null))}))},Nm=o.forwardRef(km);"production"!==process.env.NODE_ENV&&(Nm.displayName="OptionList");function _m(e,t){return Ip(e).join("").toUpperCase().includes(t)}function Im(e,t=!1){return st(e).map((e,n)=>{if(!o.isValidElement(e)||!e.type)return null;const{type:{isSelectOptGroup:r},key:a,props:{children:i,...l}}=e;return t||!r?function(e){const{key:t,props:{children:n,value:o,...r}}=e;return{key:t,value:void 0!==o?o:t,children:n,...r}}(e):{key:`__RC_SELECT_GRP__${null===a?n:a}__`,label:a,...l,options:Im(i)}}).filter(e=>e)}function Pm(e){const t=o.useRef();t.current=e;return o.useCallback((...e)=>t.current(...e),[])}function Om(){return Om=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Om.apply(this,arguments)}const Dm=["inputValue"];const Rm=o.forwardRef((e,t)=>{const{id:n,mode:r,prefixCls:a="rc-select",backfill:i,fieldNames:l,showSearch:s,searchValue:c,onSearch:d,autoClearSearchValue:u,filterOption:p,optionFilterProp:m,filterSort:f,onSelect:h,onDeselect:g,onActive:v,popupMatchSelectWidth:b=!0,optionLabelProp:y,options:w,optionRender:C,children:x,defaultActiveFirstOption:$,menuItemSelectedIcon:S,virtual:E,direction:k,listHeight:N=200,listItemHeight:_=20,labelRender:I,value:P,defaultValue:O,labelInValue:D,onChange:R,maxCount:M,classNames:B,styles:T,...z}=e,A={searchValue:c,onSearch:d,autoClearSearchValue:u,filterOption:p,optionFilterProp:m,filterSort:f},[L,H]=function(e,t,n){const{filterOption:r,searchValue:a,optionFilterProp:i,filterSort:l,onSearch:s,autoClearSearchValue:c}=t;return o.useMemo(()=>{const t="object"==typeof e,o={filterOption:r,searchValue:a,optionFilterProp:i,filterSort:l,onSearch:s,autoClearSearchValue:c,...t?e:{}};return[!!(t||"combobox"===n||"tags"===n||"multiple"===n&&void 0===e)||e,o]},[n,e,r,a,i,l,s,c])}(s,A,r),{filterOption:F,searchValue:j,optionFilterProp:V,filterSort:W,onSearch:K,autoClearSearchValue:q=!0}=H,U=o.useMemo(()=>V?Array.isArray(V)?V:[V]:[],[V]),X=Ll(n),G=om(r),Y=!(w||!x),Z=o.useMemo(()=>(void 0!==F||"combobox"!==r)&&F,[F,r]),Q=o.useMemo(()=>yp(l,Y),[JSON.stringify(l),Y]),[J,ee]=_e("",j),te=J||"",ne=((e,t,n,r,a)=>o.useMemo(()=>{let o=e;!e&&(o=Im(t));const i=new Map,l=new Map,s=(e,t,n)=>{n&&"string"==typeof n&&e.set(t[n],t)},c=(e,t=!1)=>{for(let o=0;o<e.length;o+=1){const d=e[o];!d[n.options]||t?(i.set(d[n.value],d),s(l,d,n.label),r.forEach(e=>{s(l,d,e)}),s(l,d,a)):c(d[n.options],!0)}};return c(o),{options:o,valueOptions:i,labelOptions:l}},[e,t,n,r,a]))(w,x,Q,U,y),{valueOptions:oe,labelOptions:re,options:ae}=ne,ie=o.useCallback(e=>Ip(e).map(e=>{let t,n,r,a;!function(e){return!e||"object"!=typeof e}(e)?(n=e.label,t=e.value):t=e;const i=oe.get(t);if(i&&(void 0===n&&(n=i?.[y||Q.label]),r=i?.disabled,a=i?.title,"production"!==process.env.NODE_ENV&&!y)){const e=i?.[Q.label];void 0===e||o.isValidElement(e)||o.isValidElement(n)||e===n||at(!1,"`label` of `value` is not same as `label` in Select options.")}return{label:n,value:t,key:t,disabled:r,title:a}}),[Q,y,oe]),[le,se]=_e(O,P),ce=o.useMemo(()=>{const e=ie(G&&null===le?[]:le);return"combobox"===r&&function(e){return!e&&0!==e}(e[0]?.value)?[]:e},[le,ie,r,G]),[de,ue]=((e,t)=>{const n=o.useRef({values:new Map,options:new Map});return[o.useMemo(()=>{const{values:o,options:r}=n.current,a=e.map(e=>void 0===e.label?{...e,label:o.get(e.value)?.label}:e),i=new Map,l=new Map;return a.forEach(e=>{i.set(e.value,e),l.set(e.value,t.get(e.value)||r.get(e.value))}),n.current.values=i,n.current.options=l,a},[e,t]),o.useCallback(e=>t.get(e)||n.current.options.get(e),[t])]})(ce,oe),pe=o.useMemo(()=>{if(!r&&1===de.length){const e=de[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return de.map(e=>({...e,label:("function"==typeof I?I(e):e.label)??e.value}))},[r,de,I]),me=o.useMemo(()=>new Set(de.map(e=>e.value)),[de]);o.useEffect(()=>{if("combobox"===r){const e=de[0]?.value;ee(function(e){return null!=e}(e)?String(e):"")}},[de]);const fe=Pm((e,t)=>{const n=t??e;return{[Q.value]:e,[Q.label]:n}}),he=((e,t,n,r,a)=>o.useMemo(()=>{if(!n||!1===r)return e;const{options:o,label:i,value:l}=t,s=[],c="function"==typeof r,d=n.toUpperCase(),u=c?r:(e,t)=>a&&a.length?a.some(e=>_m(t[e],d)):t[o]?_m(t["children"!==i?i:"label"],d):_m(t[l],d),p=c?e=>wp(e):e=>e;return e.forEach(e=>{if(e[o])if(u(n,p(e)))s.push(e);else{const t=e[o].filter(e=>u(n,p(e)));t.length&&s.push({...e,[o]:t})}else u(n,p(e))&&s.push(e)}),s},[e,r,a,n,t]))(o.useMemo(()=>{if("tags"!==r)return ae;const e=[...ae];return[...de].sort((e,t)=>e.value<t.value?-1:1).forEach(t=>{const n=t.value;(e=>oe.has(e))(n)||e.push(fe(n,t.label))}),e},[fe,ae,oe,de,r]),Q,te,Z,U),ge=o.useMemo(()=>"tags"!==r||!te||he.some(e=>(e=>U.length?U.some(t=>e?.[t]===te):e?.value===te)(e))||he.some(e=>e[Q.value]===te)?he:[fe(te),...he],[fe,U,r,he,te,Q]),ve=e=>[...e].sort((e,t)=>W(e,t,{searchValue:te})).map(e=>Array.isArray(e.options)?{...e,options:e.options.length>0?ve(e.options):e.options}:e),be=o.useMemo(()=>W?ve(ge):ge,[ge,W,te]),ye=o.useMemo(()=>function(e,{fieldNames:t,childrenAsData:n}={}){const o=[],{label:r,value:a,options:i,groupLabel:l}=yp(t,!1);return function e(t,s){Array.isArray(t)&&t.forEach(t=>{if(s||!(i in t)){const e=t[a];o.push({key:vp(t,o.length),groupOption:s,data:t,label:t[r],value:e})}else{let r=t[l];void 0===r&&n&&(r=t.label),o.push({key:vp(t,o.length),group:!0,data:t,label:r}),e(t[i],!0)}})}(e,!1),o}(be,{fieldNames:Q,childrenAsData:Y}),[be,Q,Y]),we=e=>{const t=ie(e);if(se(t),R&&(t.length!==de.length||t.some((e,t)=>de[t]?.value!==e?.value))){const e=D?t.map(({label:e,value:t})=>({label:e,value:t})):t.map(e=>e.value),n=t.map(e=>wp(ue(e.value)));R(G?e:e[0],G?n:n[0])}},[Ce,xe]=o.useState(null),[$e,Se]=o.useState(0),Ee=void 0!==$?$:"combobox"!==r,ke=o.useRef(),Ne=o.useCallback((e,t,{source:n="keyboard"}={})=>{Se(t),i&&"combobox"===r&&null!==e&&"keyboard"===n&&xe(String(e));const o=Promise.resolve().then(()=>{ke.current===o&&v?.(e)});ke.current=o},[i,r,v]),Ie=(e,t,n)=>{const o=()=>{const t=ue(e);return[D?{label:t?.[Q.label],value:e}:e,wp(t)]};if(t&&h){const[e,t]=o();h(e,t)}else if(!t&&g&&"clear"!==n){const[e,t]=o();g(e,t)}},Pe=Pm((e,t)=>{let n;const o=!G||t.selected;n=o?G?[...de,e]:[e]:de.filter(t=>t.value!==e),we(n),Ie(e,o),"combobox"===r?xe(""):om&&!q||(ee(""),xe(""))}),Oe=o.useMemo(()=>{const e=!1!==E&&!1!==b;return{...ne,flattenOptions:ye,onActiveValue:Ne,defaultActiveFirstOption:Ee,onSelect:Pe,menuItemSelectedIcon:S,rawValues:me,fieldNames:Q,virtual:e,direction:k,listHeight:N,listItemHeight:_,childrenAsData:Y,maxCount:M,optionRender:C,classNames:B,styles:T}},[M,ne,ye,Ne,Ee,Pe,S,me,Q,E,b,k,N,_,Y,C,B,T]);return"production"!==process.env.NODE_ENV&&(function(e){const{mode:t,options:n,children:r,backfill:a,allowClear:i,placeholder:l,getInputElement:s,showSearch:c,onSearch:d,defaultOpen:u,autoFocus:p,labelInValue:m,value:f,optionLabelProp:h}=e,g=om(t),v=void 0!==c?c:g||"combobox"===t,b=n||Im(r);at("tags"!==t||b.every(e=>!e.disabled),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),("tags"===t||"combobox"===t)&&at(!b.some(e=>e.options?e.options.some(e=>"number"==typeof("value"in e?e.value:e.key)):"number"==typeof("value"in e?e.value:e.key)),"`value` of Option should not use number type when `mode` is `tags` or `combobox`.");if(at("combobox"!==t||!h,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),at("combobox"===t||!a,"`backfill` only works with `combobox` mode."),at("combobox"===t||!s,"`getInputElement` only work with `combobox` mode."),it("combobox"!==t||!s||!i||!l,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),d&&!v&&"combobox"!==t&&"tags"!==t&&at(!1,"`onSearch` should work with `showSearch` instead of use alone."),it(!u||p,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),null!=f){const e=Ip(f);at(!m||e.every(e=>"object"==typeof e&&("key"in e||"value"in e)),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),at(!g||Array.isArray(f),"`value` should be array when `mode` is `multiple` or `tags`")}if(r){let e=null;st(r).some(t=>{if(!o.isValidElement(t)||!t.type)return!1;const{type:n}=t;return!n.isSelectOption&&(n.isSelectOptGroup?!st(t.props.children).every(n=>!(o.isValidElement(n)&&t.type&&!n.type.isSelectOption&&(e=n.type,1))):(e=n,!0))}),e&&at(!1,`\`children\` should be \`Select.Option\` or \`Select.OptGroup\` instead of \`${e.displayName||e.name||e}\`.`)}}(e),function(e,t){if(e){const n=(e,o=!1)=>{for(let r=0;r<e.length;r++){const a=e[r];if(null===a[t?.value])return at(!1,"`value` in Select options should not be `null`."),!0;if(!o&&Array.isArray(a[t?.options])&&n(a[t?.options],!0))break}};n(e)}}(ae,Q)),o.createElement(_p.Provider,{value:Oe},o.createElement(rm,Om({},z,{id:X,prefixCls:a,ref:t,omitDomProps:Dm,mode:r,classNames:B,styles:T,displayValues:pe,onDisplayValuesChange:(e,t)=>{we(e);const{type:n,values:o}=t;"remove"!==n&&"clear"!==n||o.forEach(e=>{Ie(e.value,!1,n)})},maxCount:M,direction:k,showSearch:L,searchValue:te,onSearch:(e,t)=>{if(ee(e),xe(null),"submit"===t.source){const t=(e||"").trim();if(t){const e=Array.from(new Set([...me,t]));we(e),Ie(t,!0),ee("")}return}"blur"!==t.source&&("combobox"===r&&we(e),K?.(e))},autoClearSearchValue:q,onSearchSplit:e=>{let t=e;"tags"!==r&&(t=e.map(e=>{const t=re.get(e);return t?.value}).filter(e=>void 0!==e));const n=Array.from(new Set([...me,...t]));we(n),n.forEach(e=>{Ie(e,!0)})},popupMatchSelectWidth:b,OptionList:Nm,emptyOptions:!ye.length,activeValue:Ce,activeDescendantId:`${X}_list_${$e}`})))});"production"!==process.env.NODE_ENV&&(Rm.displayName="Select");const Mm=Rm;Mm.Option=im,Mm.OptGroup=am;const Bm=(e,t,n)=>ie({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n}),Tm=(e,t)=>t||e,zm=()=>{const[,e]=$a(),[t]=Qi("Empty"),n=new Tr(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return o.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,t?.description||"Empty"),o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("g",{transform:"translate(24 31.67)"},o.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),o.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),o.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),o.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),o.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),o.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),o.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},o.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),o.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};"production"!==process.env.NODE_ENV&&(zm.displayName="EmptyImage");var Am=zm;const Lm=()=>{const[,e]=$a(),[t]=Qi("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:a,colorBgContainer:i}=e,{borderColor:l,shadowColor:s,contentColor:d}=c(()=>({borderColor:new Tr(n).onBackground(i).toHexString(),shadowColor:new Tr(r).onBackground(i).toHexString(),contentColor:new Tr(a).onBackground(i).toHexString()}),[n,r,a,i]);return o.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,t?.description||"Empty"),o.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},o.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),o.createElement("g",{fillRule:"nonzero",stroke:l},o.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),o.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:d}))))};"production"!==process.env.NODE_ENV&&(Lm.displayName="SimpleImage");var Hm=Lm;var Fm=Pa("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:o}=e;return(e=>{const{componentCls:t,margin:n,marginXS:o,marginXL:r,fontSize:a,lineHeight:i}=e;return{[t]:{marginInline:o,fontSize:a,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:o,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:r,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:o,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}})(wr(e,{emptyImgCls:`${t}-img`,emptyImgHeight:o(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:o(n).mul(.875).equal()}))});const jm=o.createElement(Am,null),Vm=o.createElement(Hm,null),Wm=e=>{const{className:t,rootClassName:n,prefixCls:r,image:a,description:i,children:l,imageStyle:s,style:c,classNames:d,styles:u,...p}=e,{getPrefixCls:m,direction:f,className:h,style:g,classNames:v,styles:b,image:y}=Vt("empty"),w=m("empty",r),[C,x]=Fm(w),[$,S]=ul([v,d],[b,u],{props:e}),[E]=Qi("Empty"),k=void 0!==i?i:E?.description,N="string"==typeof k?k:"empty",_=a??y??jm;let I=null;if(I="string"==typeof _?o.createElement("img",{draggable:!1,alt:N,src:_}):_,"production"!==process.env.NODE_ENV){const t=ht("Empty");[["imageStyle","styles.image"]].forEach(([n,o])=>{t.deprecated(!(n in e),n,o)})}return o.createElement("div",{className:ie(C,x,w,h,{[`${w}-normal`]:_===Vm,[`${w}-rtl`]:"rtl"===f},t,n,$.root),style:{...S.root,...g,...c},...p},o.createElement("div",{className:ie(`${w}-image`,$.image),style:{...s,...S.image}},I),k&&o.createElement("div",{className:ie(`${w}-description`,$.description),style:S.description},k),l&&o.createElement("div",{className:ie(`${w}-footer`,$.footer),style:S.footer},l))};Wm.PRESENTED_IMAGE_DEFAULT=jm,Wm.PRESENTED_IMAGE_SIMPLE=Vm,"production"!==process.env.NODE_ENV&&(Wm.displayName="Empty");var Km=Wm;var qm=e=>{const{componentName:t}=e,{getPrefixCls:n}=m(Ft),o=n("empty");switch(t){case"Table":case"List":return r.createElement(Km,{image:Km.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return r.createElement(Km,{image:Km.PRESENTED_IMAGE_SIMPLE,className:`${o}-small`});case"Table.filter":return null;default:return r.createElement(Km,null)}};var Um=(e,t,n)=>{const{variant:r,[e]:a}=o.useContext(Ft),i=o.useContext(sp),l=a?.variant;let s;s=void 0!==t?t:!1===n?"borderless":i??l??r??"outlined";return[s,Ht.includes(s)]};function Xm(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:{...t,points:["tl","bl"],offset:[0,4]},bottomRight:{...t,points:["tr","br"],offset:[0,4]},topLeft:{...t,points:["bl","tl"],offset:[0,-4]},topRight:{...t,points:["br","tr"],offset:[0,-4]}}})(t)}const Gm=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:o,optionPadding:r}=e;return{position:"relative",display:"block",minHeight:t,padding:r,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:o,boxSizing:"border-box"}};var Ym=e=>{const{antCls:t,componentCls:n}=e,o=`${n}-item`,r=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`,s=`${o}-option-selected`;return[{[`${n}-dropdown`]:{...Ea(e),position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n ${r}${l}bottomLeft,\n ${a}${l}bottomLeft\n `]:{animationName:bd},[`\n ${r}${l}topLeft,\n ${a}${l}topLeft,\n ${r}${l}topRight,\n ${a}${l}topRight\n `]:{animationName:wd},[`${i}${l}bottomLeft`]:{animationName:yd},[`\n ${i}${l}topLeft,\n ${i}${l}topRight\n `]:{animationName:Cd},"&-hidden":{display:"none"},[o]:{...Gm(e),cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":{flex:"auto",...Sa},"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${o}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${o}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${o}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${o}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":{...Gm(e),color:e.colorTextDisabled}},[`${s}:has(+ ${s})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${s}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}}},Nd(e,"slide-up"),Nd(e,"slide-down"),vd(e,"move-up"),vd(e,"move-down")]};var Zm=e=>{const{componentCls:t}=e;return{[`&${t}-customize`]:{border:0,padding:0,fontSize:"inherit",lineHeight:"inherit",[`${t}-placeholder`]:{display:"none"},[`${t}-content`]:{margin:0,padding:0,"&-value":{display:"none"}}}}};var Qm=e=>{const{componentCls:t,calc:n,iconCls:o,paddingXS:r,paddingXXS:a,INTERNAL_FIXED_ITEM_MARGIN:i,lineWidth:l,colorIcon:s,colorIconHover:c,inputPaddingHorizontalBase:d}=e;return{"&-multiple":{"--select-multi-item-background":e.multipleItemBg,"--select-multi-item-border-color":"transparent","--select-multi-item-border-radius":e.borderRadiusSM,"--select-multi-item-height":e.multipleItemHeight,"--select-multi-padding-base":"calc((var(--select-height) - var(--select-multi-item-height)) / 2)","--select-multi-padding-vertical":`calc(var(--select-multi-padding-base) - ${i} - ${l})`,"--select-multi-item-padding-horizontal":`calc(${d} - var(--select-multi-padding-vertical) - ${l} * 2)`,paddingBlock:"var(--select-multi-padding-vertical)",paddingInlineStart:`calc(var(--select-multi-padding-base) - ${l})`,[`${t}-prefix`]:{marginInlineStart:"var(--select-multi-item-padding-horizontal)"},[`${t}-prefix + ${t}-content`]:{[`${t}-placeholder`]:{insetInlineStart:0},[`${t}-content-item${t}-content-item-suffix`]:{marginInlineStart:0}},[`${t}-placeholder`]:{position:"absolute",lineHeight:"var(--select-line-height)",insetInlineStart:"var(--select-multi-item-padding-horizontal)",width:"calc(100% - var(--select-multi-item-padding-horizontal))",top:"50%",transform:"translateY(-50%)"},[`${t}-content`]:{flexWrap:"wrap",alignItems:"center",lineHeight:1,"&-item-prefix":{height:"var(--select-font-size)"},"&-item":{lineHeight:1,maxWidth:"calc(100% - 4px)"},[`${t}-content-item-prefix + ${t}-content-item-suffix,\n ${t}-content-item-suffix:first-child`]:{marginInlineStart:"var(--select-multi-item-padding-horizontal)"},[`${t}-selection-item`]:{lineHeight:`calc(var(--select-multi-item-height) - ${l} * 2)`,border:`${l} solid var(--select-multi-item-border-color)`,display:"flex",marginBlock:i,marginInlineEnd:n(i).mul(2).equal(),background:"var(--select-multi-item-background)",borderRadius:"var(--select-multi-item-border-radius)",paddingInlineStart:r,paddingInlineEnd:a,transition:["height","line-height","padding"].map(t=>`${t} ${e.motionDurationSlow}`).join(","),"&-content":{...Sa,marginInlineEnd:a},"&-remove":{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"},display:"inline-flex",alignItems:"center",color:s,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${o}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}}},[`${t}-input`]:{lineHeight:n(i).mul(2).add("var(--select-multi-item-height)").equal(),width:"calc(var(--select-input-width, 0) * 1px)",minWidth:4,maxWidth:"100%",transition:`line-height ${e.motionDurationSlow}`}},[`&${t}-sm`]:{"--select-multi-item-height":e.multipleItemHeightSM,"--select-multi-item-border-radius":e.borderRadiusXS},[`&${t}-lg`]:{"--select-multi-item-height":e.multipleItemHeightLG,"--select-multi-item-border-radius":e.borderRadius},[`&${t}-filled`]:{"--select-multi-item-border-color":e.colorSplit,"--select-multi-item-background":e.colorBgContainer,[`&${t}-disabled`]:{"--select-multi-item-border-color":"transparent"}}}}};const Jm=(e,t)=>{const{componentCls:n}=e,{border:o,borderHover:r,borderActive:a,borderOutline:i}=t,l=t.background||e.selectorBg||e.colorBgContainer;return{"--select-border-color":o,"--select-background":l,"--select-color":t.color||e.colorText,[`&:not(${n}-disabled)`]:{"&:hover":{"--select-border-color":r,"--select-background":t.backgroundHover||l},[`&${n}-focused`]:{"--select-border-color":a,"--select-background":t.backgroundActive||l,boxShadow:`0 0 0 ${wn(e.controlOutlineWidth)} ${i}`}},[`&${n}-disabled`]:{"--select-border-color":t.borderDisabled||t.border,"--select-background":t.backgroundDisabled||t.background}}},ef=(e,t,n,o={},r={},a)=>{const{componentCls:i}=e;return{[`&${i}-${t}`]:[Jm(e,n),{[`&${i}-status-error`]:Jm(e,{...n,color:o.color||e.colorError,...o}),[`&${i}-status-warning`]:Jm(e,{...n,color:r.color||e.colorWarning,...r})},a]}};var tf=e=>{const{componentCls:t,calc:n,fontHeight:o,controlHeight:r,iconCls:a}=e;return{[t]:[{"--select-border-radius":e.borderRadius,"--select-border-color":"#000","--select-border-size":e.lineWidth,"--select-background":e.colorBgContainer,"--select-font-size":e.fontSize,"--select-line-height":e.lineHeight,"--select-font-height":o,"--select-color":e.colorText,"--select-height":r,"--select-padding-horizontal":n(e.paddingSM).sub(e.lineWidth).equal(),"--select-padding-vertical":"calc((var(--select-height) - var(--select-font-height)) / 2 - var(--select-border-size))",...Ea(e,!0),display:"inline-flex",flexWrap:"nowrap",position:"relative",transition:`all ${e.motionDurationSlow}`,alignItems:"flex-start",outline:0,cursor:"pointer",borderRadius:"var(--select-border-radius)",borderWidth:"var(--select-border-size)",borderStyle:e.lineType,borderColor:"var(--select-border-color)",background:"var(--select-background)",fontSize:"var(--select-font-size)",lineHeight:"var(--select-line-height)",color:"var(--select-color)",paddingInline:"var(--select-padding-horizontal)",paddingBlock:"var(--select-padding-vertical)",[`${t}-prefix`]:{flex:"none",lineHeight:1},[`${t}-placeholder`]:{...Sa,color:e.colorTextPlaceholder,pointerEvents:"none",zIndex:1},[`${t}-content`]:{flex:"auto",minWidth:0,position:"relative",display:"flex",marginInlineEnd:n(e.paddingXXS).mul(1.5).equal(),"&:before":{content:'"\\a0"',width:0,overflow:"hidden"},"&-value":{...Sa,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,zIndex:1},"input[readonly]":{cursor:"inherit",caretColor:"transparent"}},[`&-open ${t}-content-value`]:{color:e.colorTextPlaceholder},[`${t}-suffix`]:{flex:"none",color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,"> :not(:last-child)":{marginInlineEnd:e.marginXS}},[`${t}-prefix, ${t}-suffix`]:{alignSelf:"center",[a]:{verticalAlign:"top"}},"&-disabled":{background:e.colorBgContainerDisabled,color:e.colorTextDisabled,cursor:"not-allowed",input:{cursor:"not-allowed"}},"&-sm":{"--select-height":e.controlHeightSM,"--select-padding-horizontal":n(e.paddingXS).sub(e.lineWidth).equal(),"--select-border-radius":e.borderRadiusSM},"&-lg":{"--select-height":e.controlHeightLG,"--select-font-size":e.fontSizeLG,"--select-line-height":e.lineHeightLG,"--select-font-height":e.fontHeightLG,"--select-border-radius":e.borderRadiusLG}},{[`&:not(${t}-customize)`]:{[`${t}-input`]:{outline:"none",background:"transparent",appearance:"none",border:0,margin:0,padding:0,color:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},{[`&-single:not(${t}-customize)`]:{[`${t}-input`]:{position:"absolute",insetInline:0,insetBlock:"calc(var(--select-padding-vertical) * -1)",lineHeight:"calc(var(--select-font-height) + var(--select-padding-vertical) * 2)"},[`${t}-content`]:{alignSelf:"center"}}},{[`&-show-search:not(${t}-customize-input):not(${t}-disabled)`]:{cursor:"text"}},Qm(e),ef(e,"outlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:e.activeOutlineColor,borderDisabled:e.colorBorderDisabled},{border:e.colorError,borderHover:e.colorErrorHover,borderActive:e.colorError,borderOutline:e.colorErrorOutline},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning,borderOutline:e.colorWarningOutline}),ef(e,"filled",{border:"transparent",borderHover:"transparent",borderActive:e.activeBorderColor,borderOutline:"transparent",borderDisabled:e.colorBorderDisabled,background:e.colorFillTertiary,backgroundHover:e.colorFillSecondary,backgroundActive:e.colorBgContainer},{background:e.colorErrorBg,backgroundHover:e.colorErrorBgHover,borderActive:e.colorError},{background:e.colorWarningBg,backgroundHover:e.colorWarningBgHover,borderActive:e.colorWarning}),ef(e,"borderless",{border:"transparent",borderHover:"transparent",borderActive:"transparent",borderOutline:"transparent",background:"transparent"}),ef(e,"underlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:"transparent"},{border:e.colorError,borderHover:e.colorErrorHover,borderActive:e.colorError},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning},{borderRadius:0,borderTopColor:"transparent",borderRightColor:"transparent",borderLeftColor:"transparent"}),Zm(e)]}};const nf=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:o}=e,r={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:{...Ea(e),[`${n}-selection-item`]:{flex:1,fontWeight:"normal",position:"relative",userSelect:"none",...Sa,[`> ${t}-typography`]:{display:"inline"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":r,"&:hover":r},[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(o).add(e.fontSize).add(e.paddingXS).equal()}}}}}},of=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},nf(e),Ym(e),{[`${t}-rtl`]:{direction:"rtl"}},Gd(e,{focusElCls:`${t}-focused`})]};var rf=Pa("Select",(e,{rootPrefixCls:t})=>{const n=wr(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[of(n),tf(n)]},e=>{const{fontSize:t,lineHeight:n,lineWidth:o,controlHeight:r,controlHeightSM:a,controlHeightLG:i,paddingXXS:l,controlPaddingHorizontal:s,zIndexPopupBase:c,colorText:d,fontWeightStrong:u,controlItemBgActive:p,controlItemBgHover:m,colorBgContainer:f,colorFillSecondary:h,colorBgContainerDisabled:g,colorTextDisabled:v,colorPrimaryHover:b,colorPrimary:y,controlOutline:w}=e,C=2*l,x=2*o,$=Math.min(r-C,r-x),S=Math.min(a-C,a-x),E=Math.min(i-C,i-x);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:c+50,optionSelectedColor:d,optionSelectedFontWeight:u,optionSelectedBg:p,optionActiveBg:m,optionPadding:`${(r-t*n)/2}px ${s}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:f,clearBg:f,singleItemHeightLG:i,multipleItemBg:h,multipleItemBorderColor:"transparent",multipleItemHeight:$,multipleItemHeightSM:S,multipleItemHeightLG:E,multipleSelectorBgDisabled:g,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize),hoverBorderColor:b,activeBorderColor:y,activeOutlineColor:w,selectAffixPadding:l}},{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),af={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};function lf(){return lf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},lf.apply(this,arguments)}const sf=(e,t)=>o.createElement(Ga,lf({},e,{ref:t,icon:af})),cf=o.forwardRef(sf);
|
|
15
|
-
/** */"production"!==process.env.NODE_ENV&&(cf.displayName="CheckOutlined");var df=cf,uf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};function pf(){return pf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},pf.apply(this,arguments)}const mf=(e,t)=>o.createElement(Ga,pf({},e,{ref:t,icon:uf})),ff=o.forwardRef(mf);
|
|
16
|
-
/** */"production"!==process.env.NODE_ENV&&(ff.displayName="DownOutlined");var hf=ff,gf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};function vf(){return vf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},vf.apply(this,arguments)}const bf=(e,t)=>o.createElement(Ga,vf({},e,{ref:t,icon:gf})),yf=o.forwardRef(bf);
|
|
17
|
-
/** */"production"!==process.env.NODE_ENV&&(yf.displayName="SearchOutlined");var wf=yf;const Cf="SECRET_COMBOBOX_MODE_DO_NOT_USE",xf=(e,t)=>{const{prefixCls:n,bordered:a,className:i,rootClassName:l,getPopupContainer:s,popupClassName:c,dropdownClassName:d,listHeight:u=256,placement:p,listItemHeight:m,size:f,disabled:h,notFoundContent:g,status:v,builtinPlacements:b,dropdownMatchSelectWidth:y,popupMatchSelectWidth:w,direction:C,style:x,allowClear:$,variant:S,popupStyle:E,dropdownStyle:k,transitionName:N,tagRender:_,maxCount:I,prefix:P,dropdownRender:O,popupRender:D,onDropdownVisibleChange:R,onOpenChange:M,styles:B,classNames:T,...z}=e,{getPopupContainer:A,getPrefixCls:L,renderEmpty:H,direction:F,virtual:j,popupMatchSelectWidth:V,popupOverflow:W}=o.useContext(Ft),{showSearch:K,style:q,styles:U,className:X,classNames:G}=Vt("select"),[,Y]=$a(),Z=m??Y?.controlHeight,Q=L("select",n),J=L(),ee=C??F,{compactSize:te,compactItemClassnames:ne}=mc(Q,ee),[oe,re]=Um("select",S,a),ae=El(Q),[le,se]=rf(Q,ae),ce=o.useMemo(()=>{const{mode:t}=e;if("combobox"!==t)return t===Cf?"combobox":t},[e.mode]),de="multiple"===ce||"tags"===ce,ue=function(e,t){return void 0!==t?t:null!==e}(e.suffixIcon,e.showArrow),pe=w??y??V,me=(fe=D||O,r.useMemo(()=>{if(fe)return(...e)=>r.createElement(cp,{space:!0},fe.apply(void 0,e))},[fe]));var fe;const he=M||R,{status:ge,hasFeedback:ve,isFormItemInput:be,feedbackIcon:ye}=o.useContext(ip),we=Tm(ge,v);let Ce;Ce=void 0!==g?g:"combobox"===ce?null:H?.("Select")||o.createElement(qm,{componentName:"Select"});const{suffixIcon:xe,itemIcon:$e,removeIcon:Se,clearIcon:Ee}=function({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:a,multiple:i,hasFeedback:l,showSuffixIcon:s,feedbackIcon:c,showArrow:d,componentName:u}){"production"!==process.env.NODE_ENV&&ht(u).deprecated(!t,"clearIcon","allowClear={{ clearIcon: React.ReactNode }}");const p=t??o.createElement(ei,null),m=t=>null!==e||l||d?o.createElement(o.Fragment,null,!1!==s&&t,l&&c):null;let f=null;f=void 0!==e?m(e):a?m(o.createElement(qs,{spin:!0})):({open:e,showSearch:t})=>m(e&&t?o.createElement(wf,null):o.createElement(hf,null));let h=null;h=void 0!==n?n:i?o.createElement(df,null):null;let g=null;return g=void 0!==r?r:o.createElement(ai,null),{clearIcon:p,suffixIcon:f,itemIcon:h,removeIcon:g}}({...z,multiple:de,hasFeedback:ve,feedbackIcon:ye,showSuffixIcon:ue,prefixCls:Q,componentName:"Select"}),ke=!0===$?{clearIcon:Ee}:$,Ne=lt(z,["suffixIcon","itemIcon"]),_e=cc(e=>f??te??e),Ie=o.useContext(_s),Pe=h??Ie,Oe={...e,variant:oe,status:we,disabled:Pe,size:_e},[De,Re]=ul([G,T],[U,B],{props:Oe},{popup:{_default:"root"}}),Me=ie(De.popup?.root,c,d,{[`${Q}-dropdown-${ee}`]:"rtl"===ee},l,se,ae,le),Be={...Re.popup?.root,...E??k},Te=ie({[`${Q}-lg`]:"large"===_e,[`${Q}-sm`]:"small"===_e,[`${Q}-rtl`]:"rtl"===ee,[`${Q}-${oe}`]:re,[`${Q}-in-form-item`]:be},Bm(Q,we,ve),ne,X,i,De.root,l,se,ae,le),ze=o.useMemo(()=>void 0!==p?p:"rtl"===ee?"bottomRight":"bottomLeft",[p,ee]);if("production"!==process.env.NODE_ENV){const t=ht("Select"),n={dropdownMatchSelectWidth:"popupMatchSelectWidth",dropdownStyle:"styles.popup.root",dropdownClassName:"classNames.popup.root",popupClassName:"classNames.popup.root",dropdownRender:"popupRender",onDropdownVisibleChange:"onOpenChange",bordered:"variant"};Object.entries(n).forEach(([n,o])=>{t.deprecated(!(n in e),n,o)}),"production"!==process.env.NODE_ENV&&t(!("showArrow"in e),"deprecated","`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null."),"production"!==process.env.NODE_ENV&&t(!(void 0!==I&&!de),"usage","`maxCount` only works with mode `multiple` or `tags`")}const[Ae]=wl("SelectLike",Re.popup?.root?.zIndex??Be?.zIndex);return o.createElement(Mm,{ref:t,virtual:j,classNames:De,styles:Re,showSearch:K,...Ne,style:{...Re.root,...q,...x},popupMatchSelectWidth:pe,transitionName:Js(J,"slide-up",N),builtinPlacements:Xm(b,W),listHeight:u,listItemHeight:Z,mode:ce,prefixCls:Q,placement:ze,direction:ee,prefix:P,suffixIcon:xe,menuItemSelectedIcon:$e,removeIcon:Se,allowClear:ke,notFoundContent:Ce,className:Te,getPopupContainer:s||A,popupClassName:Me,disabled:Pe,popupStyle:{...Re.popup?.root,...Be,zIndex:Ae},maxCount:de?I:void 0,tagRender:de?_:void 0,popupRender:me,onPopupVisibleChange:he})};"production"!==process.env.NODE_ENV&&(xf.displayName="Select");const $f=o.forwardRef(xf),Sf=dp($f,"popupAlign");$f.SECRET_COMBOBOX_MODE_DO_NOT_USE=Cf,$f.Option=im,$f.OptGroup=am,$f._InternalPanelDoNotUseOrYouWillBeFired=Sf,"production"!==process.env.NODE_ENV&&($f.displayName="Select");var Ef=$f;const kf=["xxl","xl","lg","md","sm","xs"];var Nf=()=>{const[,e]=$a(),t=(e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}))((e=>{const t=e,n=[].concat(kf).reverse();return n.forEach((e,o)=>{const r=e.toUpperCase(),a=`screen${r}Min`,i=`screen${r}`;if(!(t[a]<=t[i]))throw new Error(`${a}<=${i} fails : !(${t[a]}<=${t[i]})`);if(o<n.length-1){const e=`screen${r}Max`;if(!(t[i]<=t[e]))throw new Error(`${i}<=${e} fails : !(${t[i]}<=${t[e]})`);const a=`screen${n[o+1].toUpperCase()}Min`;if(!(t[e]<=t[a]))throw new Error(`${e}<=${a} fails : !(${t[e]}<=${t[a]})`)}}),e})(e));return r.useMemo(()=>{const e=new Map;let n=-1,o={};return{responsiveMap:t,matchHandlers:{},dispatch:t=>(o=t,e.forEach(e=>e(o)),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(o),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.entries(t).forEach(([e,t])=>{const n=({matches:t})=>{this.dispatch({...o,[e]:t})},r=window.matchMedia(t);"function"==typeof r?.addEventListener&&r.addEventListener("change",n),this.matchHandlers[t]={mql:r,listener:n},n(r)})},unregister(){Object.values(t).forEach(e=>{const t=this.matchHandlers[e];"function"==typeof t?.mql?.removeEventListener&&t.mql.removeEventListener("change",t?.listener)}),e.clear()}}},[t])};function _f(e=!0,t={}){const n=a(t),[,o]=rl(),r=Nf();return ke(()=>{const t=r.subscribe(t=>{n.current=t,e&&o()});return()=>r.unsubscribe(t)},[]),n.current}const If=e=>{const{children:t,prefixCls:n,id:r,classNames:a,styles:i,className:l,style:s}=e;return o.createElement("div",{id:r,className:ie(`${n}-container`,a?.container,l),style:{...i?.container,...s},role:"tooltip"},"function"==typeof t?t():t)},Pf={shiftX:64,adjustY:1},Of={adjustX:1,shiftY:!0},Df=[0,0],Rf={left:{points:["cr","cl"],overflow:Of,offset:[-4,0],targetOffset:Df},right:{points:["cl","cr"],overflow:Of,offset:[4,0],targetOffset:Df},top:{points:["bc","tc"],overflow:Pf,offset:[0,-4],targetOffset:Df},bottom:{points:["tc","bc"],overflow:Pf,offset:[0,4],targetOffset:Df},topLeft:{points:["bl","tl"],overflow:Pf,offset:[0,-4],targetOffset:Df},leftTop:{points:["tr","tl"],overflow:Of,offset:[-4,0],targetOffset:Df},topRight:{points:["br","tr"],overflow:Pf,offset:[0,-4],targetOffset:Df},rightTop:{points:["tl","tr"],overflow:Of,offset:[4,0],targetOffset:Df},bottomRight:{points:["tr","br"],overflow:Pf,offset:[0,4],targetOffset:Df},rightBottom:{points:["bl","br"],overflow:Of,offset:[4,0],targetOffset:Df},bottomLeft:{points:["tl","bl"],overflow:Pf,offset:[0,4],targetOffset:Df},leftBottom:{points:["br","bl"],overflow:Of,offset:[-4,0],targetOffset:Df}};function Mf(){return Mf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Mf.apply(this,arguments)}const Bf=o.forwardRef((e,t)=>{const{trigger:n=["hover"],mouseEnterDelay:r=0,mouseLeaveDelay:i=.1,prefixCls:l="rc-tooltip",children:s,onVisibleChange:c,afterVisibleChange:d,motion:u,placement:p="right",align:m={},destroyOnHidden:f=!1,defaultVisible:h,getTooltipContainer:v,arrowContent:b,overlay:y,id:w,showArrow:C=!0,classNames:x,styles:$,...S}=e,E=Ll(w),k=a(null);g(t,()=>k.current);const N={...S};"visible"in e&&(N.popupVisible=e.visible);const _=o.useMemo(()=>{if(!C)return!1;const e=!0===C?{}:C;return{...e,className:ie(e.className,x?.arrow),style:{...e.style,...$?.arrow},content:e.content??b}},[C,x?.arrow,$?.arrow,b]),I=({open:e})=>{const t=o.Children.only(s),n={"aria-describedby":y&&e?E:void 0};return o.cloneElement(t,n)};return o.createElement(xs,Mf({popupClassName:x?.root,prefixCls:l,popup:o.createElement(If,{key:"content",prefixCls:l,id:E,classNames:x,styles:$},y),action:n,builtinPlacements:Rf,popupPlacement:p,ref:k,popupAlign:m,getPopupContainer:v,onOpenChange:c,afterOpenChange:d,popupMotion:u,defaultPopupVisible:h,autoDestroy:f,mouseLeaveDelay:i,popupStyle:$?.root,mouseEnterDelay:r,arrow:_,uniqueContainerClassName:x?.uniqueContainer,uniqueContainerStyle:$?.uniqueContainer},N),I)});function Tf(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:o}=e,r=t/2,a=r,i=1*o/Math.sqrt(2),l=r-o*(1-1/Math.sqrt(2)),s=r-n*(1/Math.sqrt(2)),c=o*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),d=2*r-s,u=c,p=2*r-i,m=l,f=2*r-0,h=a,g=r*Math.sqrt(2)+o*(Math.sqrt(2)-2),v=o*(Math.sqrt(2)-1);return{arrowShadowWidth:g,arrowPath:`path('M 0 ${a} A ${o} ${o} 0 0 0 ${i} ${l} L ${s} ${c} A ${n} ${n} 0 0 1 ${d} ${u} L ${p} ${m} A ${o} ${o} 0 0 0 ${f} ${h} Z')`,arrowPolygon:`polygon(${v}px 100%, 50% ${v}px, ${2*r-v}px 100%, ${v}px 100%)`}}const zf=(e,t,n)=>{const{sizePopupArrow:o,arrowPolygon:r,arrowPath:a,arrowShadowWidth:i,borderRadiusXS:l,calc:s}=e;return{pointerEvents:"none",width:o,height:o,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:o,height:s(o).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[r,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${wn(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};function Af(e){const{contentRadius:t,limitVerticalRadius:n}=e,o=t>12?t+2:12;return{arrowOffsetHorizontal:o,arrowOffsetVertical:n?8:o}}function Lf(e,t){return e?t:{}}function Hf(e,t,n){const{componentCls:o,boxShadowPopoverArrow:r,arrowOffsetVertical:a,arrowOffsetHorizontal:i}=e,{arrowDistance:l=0,arrowPlacement:s={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[o]:{[`${o}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...zf(e,t,r),"&:before":{background:t}}],...Lf(!!s.top,{[[`&-placement-top > ${o}-arrow`,`&-placement-topLeft > ${o}-arrow`,`&-placement-topRight > ${o}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":i,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${wn(i)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:i}}}}),...Lf(!!s.bottom,{[[`&-placement-bottom > ${o}-arrow`,`&-placement-bottomLeft > ${o}-arrow`,`&-placement-bottomRight > ${o}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":i,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${wn(i)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:i}}}}),...Lf(!!s.left,{[[`&-placement-left > ${o}-arrow`,`&-placement-leftTop > ${o}-arrow`,`&-placement-leftBottom > ${o}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${o}-arrow`]:{top:a},[`&-placement-leftBottom > ${o}-arrow`]:{bottom:a}}),...Lf(!!s.right,{[[`&-placement-right > ${o}-arrow`,`&-placement-rightTop > ${o}-arrow`,`&-placement-rightBottom > ${o}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${o}-arrow`]:{top:a},[`&-placement-rightBottom > ${o}-arrow`]:{bottom:a}})}}}const Ff={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},jf={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},Vf=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Wf(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:o,offset:r,borderRadius:a,visibleFirst:i}=e,l=t/2,s={},c=Af({contentRadius:a,limitVerticalRadius:!0});return Object.keys(Ff).forEach(e=>{const a={...o&&jf[e]||Ff[e],offset:[0,0],dynamicInset:!0};switch(s[e]=a,Vf.has(e)&&(a.autoArrow=!1),e){case"top":case"topLeft":case"topRight":a.offset[1]=-l-r;break;case"bottom":case"bottomLeft":case"bottomRight":a.offset[1]=l+r;break;case"left":case"leftTop":case"leftBottom":a.offset[0]=-l-r;break;case"right":case"rightTop":case"rightBottom":a.offset[0]=l+r}if(o)switch(e){case"topLeft":case"bottomLeft":a.offset[0]=-c.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":a.offset[0]=c.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":a.offset[1]=2*-c.arrowOffsetHorizontal+l;break;case"leftBottom":case"rightBottom":a.offset[1]=2*c.arrowOffsetHorizontal-l}a.overflow=function(e,t,n,o){if(!1===o)return{adjustX:!1,adjustY:!1};const r=o&&"object"==typeof o?o:{},a={};switch(e){case"top":case"bottom":a.shiftX=2*t.arrowOffsetHorizontal+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=2*t.arrowOffsetVertical+n,a.shiftX=!0,a.adjustX=!0}const i={...a,...r};return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}(e,c,t,n),i&&(a.htmlRegion="visibleFirst")}),s}var Kf=(e,t)=>{const n=e=>"boolean"==typeof e?{show:e}:e||{};return r.useMemo(()=>{const o=n(e),r=n(t);return{...r,...o,show:o.show??r.show??!0}},[e,t])};const qf=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:o,tooltipColor:r,tooltipBg:a,tooltipBorderRadius:i,zIndexPopup:l,controlHeight:s,boxShadowSecondary:c,paddingSM:d,paddingXS:u,arrowOffsetHorizontal:p,sizePopupArrow:m}=e,f=t(i).add(m).add(p).equal(),h={minWidth:t(i).mul(2).add(m).equal(),minHeight:s,padding:`${wn(e.calc(d).div(2).equal())} ${wn(u)}`,color:`var(--ant-tooltip-color, ${r})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:i,boxShadow:c,boxSizing:"border-box"},g={"--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" ")};return[{[n]:{...Ea(e),position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:o,visibility:"visible",...g,"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${n}-container`]:[h,cd(e,!0)],[`&:has(~ ${n}-unique-container)`]:{[`${n}-container`]:{border:"none",background:"transparent",boxShadow:"none"}},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:f},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(i,8)}},[`${n}-content`]:{position:"relative"},...Ra(e,(e,{darkColor:t})=>({[`&${n}-${e}`]:{[`${n}-container`]:{backgroundColor:t},[`${n}-arrow`]:{"--antd-arrow-background-color":t}}})),"&-rtl":{direction:"rtl"}}},Hf(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}},{[`${n}-unique-container`]:{...h,...g,position:"absolute",zIndex:t(l).sub(1).equal(),"&-hidden":{display:"none"},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},Uf=e=>({zIndexPopup:e.zIndexPopupBase+70,...Af({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...Tf(wr(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))});var Xf=(e,t,n=!0)=>{const o=Pa("Tooltip",e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:o}=e,r=wr(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:o});return[qf(r),Bd(e,"zoom-big-fast")]},Uf,{resetStyle:!1,injectStyle:n});return o(e,t)};const Gf=Nr.map(e=>`${e}-inverse`);function Yf(e,t){const n=function(e,t=!0){return t?[].concat(Ot(Gf),Ot(Nr)).includes(e):Nr.includes(e)}(t),o=ie({[`${e}-${t}`]:t&&n}),r={},a={},i=(e=>e instanceof Yc?e:new Yc(e))(t).toRgb(),l=(.299*i.r+.587*i.g+.114*i.b)/255<.5?"#FFF":"#000";return t&&!n&&(r.background=t,r["--ant-tooltip-color"]=l,a["--antd-arrow-background-color"]=t),{className:o,overlayStyle:r,arrowStyle:a}}var Zf=e=>{const{prefixCls:t,className:n,placement:r="top",title:a,color:i,overlayInnerStyle:l,classNames:s,styles:c}=e,{getPrefixCls:d}=o.useContext(Ft),u=d("tooltip",t),p=El(u),[m,f]=Xf(u,p),h=Yf(u,i),g=h.arrowStyle,v=o.useMemo(()=>({container:{...l,...h.overlayStyle}}),[l,h.overlayStyle]),b={...e,placement:r},[y,w]=ul([s],[v,c],{props:b}),C=ie(p,m,f,u,`${u}-pure`,`${u}-placement-${r}`,n,h.className);return o.createElement("div",{className:C,style:g},o.createElement("div",{className:`${u}-arrow`}),o.createElement(If,{...e,className:m,prefixCls:u,classNames:y,styles:w},a))};const Qf=o.forwardRef((e,t)=>{const{prefixCls:n,openClassName:r,getTooltipContainer:a,color:i,children:l,afterOpenChange:s,arrow:c,destroyTooltipOnHide:d,destroyOnHidden:u,title:p,overlay:m,trigger:f,builtinPlacements:h,autoAdjustOverflow:g=!0,motion:v,getPopupContainer:b,placement:y="top",mouseEnterDelay:w=.1,mouseLeaveDelay:C=.1,rootClassName:x,styles:$,classNames:S,onOpenChange:E,overlayInnerStyle:k,overlayStyle:N,overlayClassName:_,...I}=e,[,P]=$a(),{getPopupContainer:O,getPrefixCls:D,direction:R,className:M,style:B,classNames:T,styles:z,arrow:A,trigger:L}=Vt("tooltip"),H=Kf(c,A),F=H.show,j=f||L||"hover",V=ht("Tooltip"),W=o.useRef(null),K=()=>{W.current?.forceAlign()};o.useImperativeHandle(t,()=>({forceAlign:K,nativeElement:W.current?.nativeElement,popupElement:W.current?.popupElement})),"production"!==process.env.NODE_ENV&&([["overlayStyle","styles.root"],["overlayInnerStyle","styles.container"],["overlayClassName","classNames.root"],["destroyTooltipOnHide","destroyOnHidden"]].forEach(([t,n])=>{V.deprecated(!(t in e),t,n)}),"production"!==process.env.NODE_ENV&&V(!d||"boolean"==typeof d,"usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."));const[q,U]=_e(e.defaultOpen??!1,e.open),X=!p&&!m&&0!==p,G=o.useMemo(()=>h||Wf({arrowPointAtCenter:H?.pointAtCenter??!1,autoAdjustOverflow:g,arrowWidth:F?P.sizePopupArrow:0,borderRadius:P.borderRadius,offset:P.marginXXS,visibleFirst:!0}),[H,h,P,F,g]),Y=o.useMemo(()=>0===p?p:m||p||"",[m,p]),Z=o.createElement(cp,{space:!0},"function"==typeof Y?Y():Y),Q={...e,trigger:j,color:i,placement:y,builtinPlacements:h,openClassName:r,arrow:c,autoAdjustOverflow:g,getPopupContainer:b,children:l,destroyTooltipOnHide:d,destroyOnHidden:u},[J,ee]=ul([T,S],[z,$],{props:Q}),te=D("tooltip",n),ne=D(),oe=e["data-popover-inject"];let re=q;!("open"in e)&&X&&(re=!1);const ae=o.isValidElement(l)&&!Cl(l)?l:o.createElement("span",null,l),le=ae.props,se=le.className&&"string"!=typeof le.className?le.className:ie(le.className,r||`${te}-open`),ce=El(te),[de,ue]=Xf(te,ce,!oe),pe=Yf(te,i),me=pe.arrowStyle,fe=ie(ce,de,ue),he=ie(_,{[`${te}-rtl`]:"rtl"===R},pe.className,x,fe,M,J.root),[ge,ve]=wl("Tooltip",I.zIndex),be={...ee.container,...k,...pe.overlayStyle},ye=o.createElement(Bf,{unique:!0,...I,trigger:j,zIndex:ge,showArrow:F,placement:y,mouseEnterDelay:w,mouseLeaveDelay:C,prefixCls:te,classNames:{root:he,container:J.container,arrow:J.arrow,uniqueContainer:ie(fe,J.container)},styles:{root:{...me,...ee.root,...B,...N},container:be,uniqueContainer:be,arrow:ee.arrow},getTooltipContainer:b||a||O,ref:W,builtinPlacements:G,overlay:Z,visible:re,onVisibleChange:e=>{U(!X&&e),!X&&E&&E(e)},afterVisibleChange:s,arrowContent:o.createElement("span",{className:`${te}-arrow-content`}),motion:{motionName:Js(ne,"zoom-big-fast","string"==typeof v?.motionName?v?.motionName:void 0),motionDeadline:1e3},destroyOnHidden:u??!!d},re?xl(ae,{className:se}):ae);return o.createElement(gl.Provider,{value:ve},ye)}),Jf=Qf;"production"!==process.env.NODE_ENV&&(Jf.displayName="Tooltip"),Jf._InternalPanelDoNotUseOrYouWillBeFired=Zf,Jf.UniqueProvider=Es;var eh=Jf;var th=r.createContext({}),nh={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};function oh(){return oh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},oh.apply(this,arguments)}const rh=(e,t)=>o.createElement(Ga,oh({},e,{ref:t,icon:nh})),ah=o.forwardRef(rh);
|
|
18
|
-
/** */"production"!==process.env.NODE_ENV&&(ah.displayName="LeftOutlined");var ih=ah;const{ESC:lh,TAB:sh}=Fs;const ch=b((e,t)=>{const{overlay:n,arrow:o,prefixCls:a}=e,i=c(()=>{let e;return e="function"==typeof n?n():n,e},[n]),l=je(t,qe(i));return r.createElement(r.Fragment,null,o&&r.createElement("div",{className:`${a}-arrow`}),r.cloneElement(i,{ref:We(i)?l:void 0}))}),dh={adjustX:1,adjustY:1},uh=[0,0],ph={topLeft:{points:["bl","tl"],overflow:dh,offset:[0,-4],targetOffset:uh},top:{points:["bc","tc"],overflow:dh,offset:[0,-4],targetOffset:uh},topRight:{points:["br","tr"],overflow:dh,offset:[0,-4],targetOffset:uh},bottomLeft:{points:["tl","bl"],overflow:dh,offset:[0,4],targetOffset:uh},bottom:{points:["tc","bc"],overflow:dh,offset:[0,4],targetOffset:uh},bottomRight:{points:["tr","br"],overflow:dh,offset:[0,4],targetOffset:uh}};function mh(){return mh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},mh.apply(this,arguments)}const fh=r.forwardRef((e,t)=>{const{arrow:n=!1,prefixCls:a="rc-dropdown",transitionName:i,animation:l,align:s,placement:c="bottomLeft",placements:d=ph,getPopupContainer:u,showAction:p,hideAction:m,overlayClassName:f,overlayStyle:h,visible:g,trigger:v=["hover"],autoFocus:b,overlay:y,children:w,onVisibleChange:C,...x}=e,[$,S]=r.useState(),E="visible"in e?g:$,k=l?`${a}-${l}`:i,N=r.useRef(null),_=r.useRef(null),I=r.useRef(null);r.useImperativeHandle(t,()=>N.current);const P=e=>{S(e),C?.(e)};!function({visible:e,triggerRef:t,onVisibleChange:n,autoFocus:r,overlayRef:a}){const i=o.useRef(!1),l=()=>{e&&(t.current?.focus?.(),n?.(!1))},s=()=>!!a.current?.focus&&(a.current.focus(),i.current=!0,!0),c=e=>{switch(e.keyCode){case lh:l();break;case sh:{let t=!1;i.current||(t=s()),t?e.preventDefault():l();break}}};o.useEffect(()=>e?(window.addEventListener("keydown",c),r&&zt(s,3),()=>{window.removeEventListener("keydown",c),i.current=!1}):()=>{i.current=!1},[e])}({visible:E,triggerRef:I,onVisibleChange:P,autoFocus:b,overlayRef:_});const O=()=>r.createElement(ch,{ref:_,overlay:y,prefixCls:a,arrow:n}),D=r.cloneElement(w,{className:ie(w.props?.className,E&&(()=>{const{openClassName:t}=e;return void 0!==t?t:`${a}-open`})()),ref:We(w)?je(I,qe(w)):void 0});let R=m;return R||-1===v.indexOf("contextMenu")||(R=["click"]),r.createElement(xs,mh({builtinPlacements:d},x,{prefixCls:a,ref:N,popupClassName:ie(f,{[`${a}-show-arrow`]:n}),popupStyle:h,action:v,showAction:p,hideAction:R,popupPlacement:c,popupAlign:s,popupMotion:{motionName:k},popupVisible:E,stretch:(()=>{const{minOverlayWidthMatchTrigger:t,alignPoint:n}=e;return"minOverlayWidthMatchTrigger"in e?t:!n})()?"minWidth":"",popup:"function"==typeof y?O:O(),onOpenChange:P,onPopupClick:t=>{const{onOverlayClick:n}=e;S(!1),n&&n(t)},getPopupContainer:u}),D)});var hh=e=>"object"!=typeof e&&"function"!=typeof e||null===e;const gh=o.createContext(null);function vh(e,t){return`${e}-${t}`}function bh(e){return vh(o.useContext(gh),e)}const yh=o.createContext(null);function wh({children:e,locked:t,...n}){const r=o.useContext(yh),a=Be(()=>function(e,t){const n={...e};return Object.keys(t).forEach(e=>{const o=t[e];void 0!==o&&(n[e]=o)}),n}(r,n),[r,n],(e,n)=>!(t||e[0]===n[0]&&tn(e[1],n[1],!0)));return o.createElement(yh.Provider,{value:a},e)}const Ch=[],xh=o.createContext(null);function $h(){return o.useContext(xh)}const Sh=o.createContext(Ch);function Eh(e){const t=o.useContext(Sh);return o.useMemo(()=>void 0!==e?[...t,e]:t,[t,e])}const kh=o.createContext(null),Nh=o.createContext({});function _h(e,t=!1){if(os(e)){const n=e.nodeName.toLowerCase(),o=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),r=e.getAttribute("tabindex"),a=Number(r);let i=null;return r&&!Number.isNaN(a)?i=a:o&&null===i&&(i=0),o&&e.disabled&&(i=null),null!==i&&(i>=0||t&&i<0)}return!1}const{LEFT:Ih,RIGHT:Ph,UP:Oh,DOWN:Dh,ENTER:Rh,ESC:Mh,HOME:Bh,END:Th}=Fs,zh=[Oh,Dh,Ih,Ph];function Ah(e,t){const n=function(e,t=!1){const n=[...e.querySelectorAll("*")].filter(e=>_h(e,t));return _h(e,t)&&n.unshift(e),n}(e,!0);return n.filter(e=>t.has(e))}function Lh(e,t,n,o=1){if(!e)return null;const r=Ah(e,t),a=r.length;let i=r.findIndex(e=>n===e);return o<0?-1===i?i=a-1:i-=1:o>0&&(i+=1),i=(i+a)%a,r[i]}const Hh=(e,t)=>{const n=new Set,o=new Map,r=new Map;return e.forEach(e=>{const a=document.querySelector(`[data-menu-id='${vh(t,e)}']`);a&&(n.add(a),r.set(a,e),o.set(e,a))}),{elements:n,key2element:o,element2key:r}};function Fh(e,t,n,r,a,i,l,s,c,d){const u=o.useRef(),p=o.useRef();p.current=t;const m=()=>{zt.cancel(u.current)};return o.useEffect(()=>()=>{m()},[]),o=>{const{which:f}=o;if([...zh,Rh,Mh,Bh,Th].includes(f)){const d=i();let h=Hh(d,r);const{elements:g,key2element:v,element2key:b}=h,y=function(e,t){let n=e||document.activeElement;for(;n;){if(t.has(n))return n;n=n.parentElement}return null}(v.get(t),g),w=b.get(y),C=function(e,t,n,o){const r="prev",a="next",i="children",l="parent";if("inline"===e&&o===Rh)return{inlineTrigger:!0};const s={[Oh]:r,[Dh]:a},c={[Ih]:n?a:r,[Ph]:n?r:a,[Dh]:i,[Rh]:i},d={[Oh]:r,[Dh]:a,[Rh]:i,[Mh]:l,[Ih]:n?i:l,[Ph]:n?l:i},u={inline:s,horizontal:c,vertical:d,inlineSub:s,horizontalSub:d,verticalSub:d},p=u[`${e}${t?"":"Sub"}`]?.[o];switch(p){case r:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case i:return{offset:1,sibling:!1};default:return null}}(e,1===l(w,!0).length,n,f);if(!C&&f!==Bh&&f!==Th)return;(zh.includes(f)||[Bh,Th].includes(f))&&o.preventDefault();const x=e=>{if(e){let t=e;const n=e.querySelector("a");n?.getAttribute("href")&&(t=n);const o=b.get(e);s(o),m(),u.current=zt(()=>{p.current===o&&t.focus()})}};if([Bh,Th].includes(f)||C.sibling||!y){let t,n;t=y&&"inline"!==e?function(e){let t=e;for(;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(y):a.current;const o=Ah(t,g);n=f===Bh?o[0]:f===Th?o[o.length-1]:Lh(t,g,y,C.offset),x(n)}else if(C.inlineTrigger)c(w);else if(C.offset>0)c(w,!0),m(),u.current=zt(()=>{h=Hh(d,r);const e=y.getAttribute("aria-controls"),t=Lh(document.getElementById(e),h.elements);x(t)},5);else if(C.offset<0){const e=l(w,!0),t=e[e.length-2],n=v.get(t);c(t,!1),x(n)}}d?.(o)}}const jh="__RC_UTIL_PATH_SPLIT__",Vh=e=>e.join(jh),Wh="rc-menu-more";function Kh(){const[,e]=o.useState({}),t=a(new Map),n=a(new Map),[r,i]=o.useState([]),l=a(0),c=a(!1),d=s((o,r)=>{"production"!==process.env.NODE_ENV&&at(!t.current.has(o),`Duplicated key '${o}' used in Menu by path [${r.join(" > ")}]`);const a=Vh(r);n.current.set(a,o),t.current.set(o,a),l.current+=1;const i=l.current;var s;s=()=>{i===l.current&&(c.current||e({}))},Promise.resolve().then(s)},[]),u=s((e,o)=>{const r=Vh(o);n.current.delete(r),t.current.delete(e)},[]),p=s(e=>{i(e)},[]),m=s((e,n)=>{const o=t.current.get(e)||"",a=o.split(jh);return n&&r.includes(a[0])&&a.unshift(Wh),a},[r]),f=s((e,t)=>e.filter(e=>void 0!==e).some(e=>m(e,!0).includes(t)),[m]),h=s(e=>{const o=`${t.current.get(e)}${jh}`,r=new Set;return[...n.current.keys()].forEach(e=>{e.startsWith(o)&&r.add(n.current.get(e))}),r},[]);return o.useEffect(()=>()=>{c.current=!0},[]),{registerPath:d,unregisterPath:u,refreshOverflowKeys:p,isSubPathKey:f,getKeyPath:m,getKeys:()=>{const e=[...t.current.keys()];return r.length&&e.push(Wh),e},getSubPathKeys:h}}function qh(e){const t=o.useRef(e);t.current=e;const n=o.useCallback((...e)=>t.current?.(...e),[]);return e?n:void 0}function Uh(e,t,n,r){const{activeKey:a,onActive:i,onInactive:l}=o.useContext(yh),s={active:a===e};return t||(s.onMouseEnter=t=>{n?.({key:e,domEvent:t}),i(e)},s.onMouseLeave=t=>{r?.({key:e,domEvent:t}),l(e)}),s}function Xh(e){const{mode:t,rtl:n,inlineIndent:r}=o.useContext(yh);if("inline"!==t)return null;return n?{paddingRight:e*r}:{paddingLeft:e*r}}function Gh({icon:e,props:t,children:n}){let r;return null===e||!1===e?null:("function"==typeof e?r=o.createElement(e,{...t}):"boolean"!=typeof e&&(r=e),r||n||null)}function Yh({item:e,...t}){return Object.defineProperty(t,"item",{get:()=>(at(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function Zh(){return Zh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Zh.apply(this,arguments)}class Qh extends o.Component{render(){const{title:e,attribute:t,elementRef:n,...r}=this.props,a=lt(r,["eventKey","popupClassName","popupOffset","onTitleClick"]);return at(!t,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),o.createElement(qp.Item,Zh({},t,{title:"string"==typeof e?e:void 0},a,{ref:n}))}}const Jh=o.forwardRef((e,t)=>{const{style:n,className:r,eventKey:a,warnKey:i,disabled:l,itemIcon:s,children:c,role:d,onMouseEnter:u,onMouseLeave:p,onClick:m,onKeyDown:f,onFocus:h,...g}=e,v=bh(a),{prefixCls:b,onItemClick:y,disabled:w,overflowDisabled:C,itemIcon:x,selectedKeys:$,onActive:S}=o.useContext(yh),{_internalRenderMenuItem:E}=o.useContext(Nh),k=`${b}-item`,N=o.useRef(),_=o.useRef(),I=w||l,P=Ve(t,_),O=Eh(a);"production"!==process.env.NODE_ENV&&i&&at(!1,"MenuItem should not leave undefined `key`.");const D=e=>({key:a,keyPath:[...O].reverse(),item:N.current,domEvent:e}),R=s||x,{active:M,...B}=Uh(a,I,u,p),T=$.includes(a),z=Xh(O.length),A={};"option"===e.role&&(A["aria-selected"]=T);let L=o.createElement(Qh,Zh({ref:N,elementRef:P,role:null===d?"none":d||"menuitem",tabIndex:l?null:-1,"data-menu-id":C&&v?null:v},lt(g,["extra"]),B,A,{component:"li","aria-disabled":l,style:{...z,...n},className:ie(k,{[`${k}-active`]:M,[`${k}-selected`]:T,[`${k}-disabled`]:I},r),onClick:e=>{if(I)return;const t=D(e);m?.(Yh(t)),y(t)},onKeyDown:e=>{if(f?.(e),e.which===Fs.ENTER){const t=D(e);m?.(Yh(t)),y(t)}},onFocus:e=>{S(a),h?.(e)}}),c,o.createElement(Gh,{props:{...e,isSelected:T},icon:R}));return E&&(L=E(L,e,{selected:T})),L});function eg(e,t){const{eventKey:n}=e,r=$h(),a=Eh(n);return o.useEffect(()=>{if(r)return r.registerPath(n,a),()=>{r.unregisterPath(n,a)}},[a]),r?null:o.createElement(Jh,Zh({},e,{ref:t}))}var tg=o.forwardRef(eg);function ng(){return ng=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ng.apply(this,arguments)}const og=({className:e,children:t,...n},r)=>{const{prefixCls:a,mode:i,rtl:l}=o.useContext(yh);return o.createElement("ul",ng({className:ie(a,l&&`${a}-rtl`,`${a}-sub`,`${a}-${"inline"===i?"inline":"vertical"}`,e),role:"menu"},n,{"data-menu-list":!0,ref:r}),t)},rg=o.forwardRef(og);function ag(e,t){return st(e).map((e,n)=>{if(o.isValidElement(e)){const{key:r}=e;let a=e.props?.eventKey??r;const i=null==a;i&&(a=`tmp_key-${[...t,n].join("-")}`);const l={key:a,eventKey:a};return"production"!==process.env.NODE_ENV&&i&&(l.warnKey=!0),o.cloneElement(e,l)}return e})}"production"!==process.env.NODE_ENV&&(rg.displayName="SubMenuList");const ig={adjustX:1,adjustY:1},lg={topLeft:{points:["bl","tl"],overflow:ig},topRight:{points:["br","tr"],overflow:ig},bottomLeft:{points:["tl","bl"],overflow:ig},bottomRight:{points:["tr","br"],overflow:ig},leftTop:{points:["tr","tl"],overflow:ig},leftBottom:{points:["br","bl"],overflow:ig},rightTop:{points:["tl","tr"],overflow:ig},rightBottom:{points:["bl","br"],overflow:ig}},sg={topLeft:{points:["bl","tl"],overflow:ig},topRight:{points:["br","tr"],overflow:ig},bottomLeft:{points:["tl","bl"],overflow:ig},bottomRight:{points:["tr","br"],overflow:ig},rightTop:{points:["tr","tl"],overflow:ig},rightBottom:{points:["br","bl"],overflow:ig},leftTop:{points:["tl","tr"],overflow:ig},leftBottom:{points:["bl","br"],overflow:ig}};function cg(e,t,n){return t||(n?n[e]||n.other:void 0)}const dg={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function ug({prefixCls:e,visible:t,children:n,popup:r,popupStyle:a,popupClassName:i,popupOffset:l,disabled:s,mode:c,onVisibleChange:d}){const{getPopupContainer:u,rtl:p,subMenuOpenDelay:m,subMenuCloseDelay:f,builtinPlacements:h,triggerSubMenuAction:g,forceSubMenuRender:v,rootClassName:b,motion:y,defaultMotions:w}=o.useContext(yh),[C,x]=o.useState(!1),$=p?{...sg,...h}:{...lg,...h},S=dg[c],E=cg(c,y,w),k=o.useRef(E);"inline"!==c&&(k.current=E);const N={...k.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},_=o.useRef();return o.useEffect(()=>(_.current=zt(()=>{x(t)}),()=>{zt.cancel(_.current)}),[t]),o.createElement(xs,{prefixCls:e,popupClassName:ie(`${e}-popup`,{[`${e}-rtl`]:p},i,b),stretch:"horizontal"===c?"minWidth":null,getPopupContainer:u,builtinPlacements:$,popupPlacement:S,popupVisible:C,popup:r,popupStyle:a,popupAlign:l&&{offset:l},action:s?[]:[g],mouseEnterDelay:m,mouseLeaveDelay:f,onPopupVisibleChange:d,forceRender:v,popupMotion:N,fresh:!0},n)}function pg(){return pg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},pg.apply(this,arguments)}function mg({id:e,open:t,keyPath:n,children:r}){const a="inline",{prefixCls:i,forceSubMenuRender:l,motion:s,defaultMotions:c,mode:d}=o.useContext(yh),u=o.useRef(!1);u.current=d===a;const[p,m]=o.useState(!u.current),f=!!u.current&&t;o.useEffect(()=>{u.current&&m(!1)},[d]);const h={...cg(a,s,c)};n.length>1&&(h.motionAppear=!1);const g=h.onVisibleChanged;return h.onVisibleChanged=e=>(u.current||e||m(!0),g?.(e)),p?null:o.createElement(wh,{mode:a,locked:!u.current},o.createElement(Ti,pg({visible:f},h,{forceRender:l,removeOnLeave:!1,leavedClassName:`${i}-hidden`}),({className:t,style:n})=>o.createElement(rg,{id:e,className:t,style:n},r)))}function fg(){return fg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},fg.apply(this,arguments)}const hg=o.forwardRef((e,t)=>{const{style:n,className:r,styles:a,classNames:i,title:l,eventKey:s,warnKey:c,disabled:d,internalPopupClose:u,children:p,itemIcon:m,expandIcon:f,popupClassName:h,popupOffset:g,popupStyle:v,onClick:b,onMouseEnter:y,onMouseLeave:w,onTitleClick:C,onTitleMouseEnter:x,onTitleMouseLeave:$,popupRender:S,...E}=e,k=bh(s),{prefixCls:N,mode:_,openKeys:I,disabled:P,overflowDisabled:O,activeKey:D,selectedKeys:R,itemIcon:M,expandIcon:B,onItemClick:T,onOpenChange:z,onActive:A,popupRender:L}=o.useContext(yh),{_internalRenderSubMenuItem:H}=o.useContext(Nh),{isSubPathKey:F}=o.useContext(kh),j=Eh(),V=`${N}-submenu`,W=P||d,K=o.useRef(),q=o.useRef();"production"!==process.env.NODE_ENV&&c&&at(!1,"SubMenu should not leave undefined `key`.");const U=m??M,X=f??B,G=I.includes(s),Y=!O&&G,Z=F(R,s),{active:Q,...J}=Uh(s,W,x,$),[ee,te]=o.useState(!1),ne=e=>{W||te(e)},oe=o.useMemo(()=>Q||"inline"!==_&&(ee||F([D],s)),[_,Q,D,ee,s,F]),re=Xh(j.length),ae=qh(e=>{b?.(Yh(e)),T(e)}),le=e=>{"inline"!==_&&z(s,e)},se=k&&`${k}-popup`,ce=o.useMemo(()=>o.createElement(Gh,{icon:"horizontal"!==_?X:void 0,props:{...e,isOpen:Y,isSubMenu:!0}},o.createElement("i",{className:`${V}-arrow`})),[_,X,e,Y,V]);let de=o.createElement("div",fg({role:"menuitem",style:re,className:`${V}-title`,tabIndex:W?null:-1,ref:K,title:"string"==typeof l?l:null,"data-menu-id":O&&k?null:k,"aria-expanded":Y,"aria-haspopup":!0,"aria-controls":se,"aria-disabled":W,onClick:e=>{W||(C?.({key:s,domEvent:e}),"inline"===_&&z(s,!G))},onFocus:()=>{A(s)}},J),l,ce);const ue=o.useRef(_);"inline"!==_&&j.length>1?ue.current="vertical":ue.current=_;const pe=ue.current,me=o.useMemo(()=>{const t=o.createElement(wh,{classNames:i,styles:a,mode:"horizontal"===pe?"vertical":pe},o.createElement(rg,{id:se,ref:q},p)),n=S||L;if(n){return n(t,{item:e,keys:j})}return t},[S,L,j,se,p,e,pe]);if(!O){const e=ue.current;de=o.createElement(ug,{mode:e,prefixCls:V,visible:!u&&Y&&"inline"!==_,popupClassName:h,popupOffset:g,popupStyle:v,popup:me,disabled:W,onVisibleChange:le},de)}let fe=o.createElement(qp.Item,fg({ref:t,role:"none"},E,{component:"li",style:n,className:ie(V,`${V}-${_}`,r,{[`${V}-open`]:Y,[`${V}-active`]:oe,[`${V}-selected`]:Z,[`${V}-disabled`]:W}),onMouseEnter:e=>{ne(!0),y?.({key:s,domEvent:e})},onMouseLeave:e=>{ne(!1),w?.({key:s,domEvent:e})}}),de,!O&&o.createElement(mg,{id:se,open:Y,keyPath:j},p));return H&&(fe=H(fe,e,{selected:Z,active:oe,open:Y,disabled:W})),o.createElement(wh,{classNames:i,styles:a,onItemClick:ae,mode:"horizontal"===_?"vertical":_,itemIcon:U,expandIcon:X},fe)}),gg=o.forwardRef((e,t)=>{const{eventKey:n,children:r}=e,a=Eh(n),i=ag(r,a),l=$h();let s;return o.useEffect(()=>{if(l)return l.registerPath(n,a),()=>{l.unregisterPath(n,a)}},[a]),s=l?i:o.createElement(hg,fg({ref:t},e),i),o.createElement(Sh.Provider,{value:a},s)});function vg({className:e,style:t}){const{prefixCls:n}=o.useContext(yh);return $h()?null:o.createElement("li",{role:"separator",className:ie(`${n}-item-divider`,e),style:t})}function bg(){return bg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},bg.apply(this,arguments)}"production"!==process.env.NODE_ENV&&(gg.displayName="SubMenu");const yg=o.forwardRef((e,t)=>{const{className:n,title:r,eventKey:a,children:i,...l}=e,{prefixCls:s,classNames:c,styles:d}=o.useContext(yh),u=`${s}-item-group`;return o.createElement("li",bg({ref:t,role:"presentation"},l,{onClick:e=>e.stopPropagation(),className:ie(u,n)}),o.createElement("div",{role:"presentation",className:ie(`${u}-title`,c?.listTitle),style:d?.listTitle,title:"string"==typeof r?r:void 0},r),o.createElement("ul",{role:"group",className:ie(`${u}-list`,c?.list),style:d?.list},i))}),wg=o.forwardRef((e,t)=>{const{eventKey:n,children:r}=e,a=ag(r,Eh(n));return $h()?a:o.createElement(yg,bg({ref:t},lt(e,["warnKey"])),a)});function Cg(){return Cg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Cg.apply(this,arguments)}function xg(e,t,n){const{item:r,group:a,submenu:i,divider:l}=t;return(e||[]).map((e,s)=>{if(e&&"object"==typeof e){const{label:c,children:d,key:u,type:p,extra:m,...f}=e,h=u??`tmp-${s}`;return d||"group"===p?"group"===p?o.createElement(a,Cg({key:h},f,{title:c}),xg(d,t,n)):o.createElement(i,Cg({key:h},f,{title:c}),xg(d,t,n)):"divider"===p?o.createElement(l,Cg({key:h},f)):o.createElement(r,Cg({key:h},f,{extra:m}),c,(!!m||0===m)&&o.createElement("span",{className:`${n}-item-extra`},m))}return null}).filter(e=>e)}function $g(e,t,n,o,r){let a=e;const i={divider:vg,item:tg,group:wg,submenu:gg,...o};return t&&(a=xg(t,i,r)),ag(a,n)}function Sg(){return Sg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Sg.apply(this,arguments)}"production"!==process.env.NODE_ENV&&(wg.displayName="MenuItemGroup");const Eg=[],kg=o.forwardRef((e,t)=>{const{prefixCls:n="rc-menu",rootClassName:r,style:a,className:i,styles:l,classNames:s,tabIndex:c=0,items:d,children:u,direction:p,id:m,mode:f="vertical",inlineCollapsed:h,disabled:v,disabledOverflow:b,subMenuOpenDelay:y=.1,subMenuCloseDelay:w=.1,forceSubMenuRender:C,defaultOpenKeys:x,openKeys:$,activeKey:E,defaultActiveFirst:k,selectable:N=!0,multiple:_=!1,defaultSelectedKeys:I,selectedKeys:P,onSelect:O,onDeselect:D,inlineIndent:R=24,motion:M,defaultMotions:B,triggerSubMenuAction:T="hover",builtinPlacements:z,itemIcon:A,expandIcon:L,overflowedIndicator:H="...",overflowedIndicatorPopupClassName:F,getPopupContainer:j,onClick:V,onOpenChange:W,onKeyDown:K,openAnimation:q,openTransitionName:U,_internalRenderMenuItem:X,_internalRenderSubMenuItem:G,_internalComponents:Y,popupRender:Z,...Q}=e,[J,ee]=o.useMemo(()=>[$g(u,d,Eg,Y,n),$g(u,d,Eg,{},n)],[u,d,Y]),[te,ne]=o.useState(!1),oe=o.useRef(),re=Ll(m?`rc-menu-uuid-${m}`:"rc-menu-uuid"),ae="rtl"===p;"production"!==process.env.NODE_ENV&&at(!q&&!U,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");const[le,se]=_e(x,$),ce=le||Eg,de=(e,t=!1)=>{function n(){se(e),W?.(e)}t?S(n):n()},[ue,pe]=o.useState(ce),me=o.useRef(!1),[fe,he]=o.useMemo(()=>"inline"!==f&&"vertical"!==f||!h?[f,!1]:["vertical",h],[f,h]),ge="inline"===fe,[ve,be]=o.useState(fe),[ye,we]=o.useState(he);o.useEffect(()=>{be(fe),we(he),me.current&&(ge?se(ue):de(Eg))},[fe,he]);const[Ce,xe]=o.useState(0),$e=Ce>=J.length-1||"horizontal"!==ve||b;o.useEffect(()=>{ge&&pe(ce)},[ce]),o.useEffect(()=>(me.current=!0,()=>{me.current=!1}),[]);const{registerPath:Se,unregisterPath:Ee,refreshOverflowKeys:ke,isSubPathKey:Ne,getKeyPath:Ie,getKeys:Pe,getSubPathKeys:Oe}=Kh(),De=o.useMemo(()=>({registerPath:Se,unregisterPath:Ee}),[Se,Ee]),Re=o.useMemo(()=>({isSubPathKey:Ne}),[Ne]);o.useEffect(()=>{ke($e?Eg:J.slice(Ce+1).map(e=>e.key))},[Ce,$e]);const[Me,Be]=_e(E||k&&J[0]?.key,E),Te=qh(e=>{Be(e)}),ze=qh(()=>{Be(void 0)});g(t,()=>({list:oe.current,focus:e=>{const t=Pe(),{elements:n,key2element:o,element2key:r}=Hh(t,re),a=Ah(oe.current,n);let i;i=Me&&t.includes(Me)?Me:a[0]?r.get(a[0]):J.find(e=>!e.props.disabled)?.key;const l=o.get(i);i&&l&&l?.focus?.(e)},findItem:({key:e})=>{const t=Pe(),{key2element:n}=Hh(t,re);return n.get(e)||null}}));const[Ae,Le]=_e(I||[],P),He=o.useMemo(()=>Array.isArray(Ae)?Ae:null==Ae?Eg:[Ae],[Ae]),Fe=qh(e=>{V?.(Yh(e)),(e=>{if(N){const{key:t}=e,n=He.includes(t);let o;o=_?n?He.filter(e=>e!==t):[...He,t]:[t],Le(o);const r={...e,selectedKeys:o};n?D?.(r):O?.(r)}!_&&ce.length&&"inline"!==ve&&de(Eg)})(e)}),je=qh((e,t)=>{let n=ce.filter(t=>t!==e);if(t)n.push(e);else if("inline"!==ve){const t=Oe(e);n=n.filter(e=>!t.has(e))}tn(ce,n,!0)||de(n,!0)}),Ve=Fh(ve,Me,ae,re,oe,Pe,Ie,Be,(e,t)=>{const n=t??!ce.includes(e);je(e,n)},K);o.useEffect(()=>{ne(!0)},[]);const We=o.useMemo(()=>({_internalRenderMenuItem:X,_internalRenderSubMenuItem:G}),[X,G]),Ke="horizontal"!==ve||b?J:J.map((e,t)=>o.createElement(wh,{key:e.key,overflowDisabled:t>Ce,classNames:s,styles:l},e)),qe=o.createElement(qp,Sg({id:m,ref:oe,prefixCls:`${n}-overflow`,component:"ul",itemComponent:tg,className:ie(n,`${n}-root`,`${n}-${ve}`,i,{[`${n}-inline-collapsed`]:ye,[`${n}-rtl`]:ae},r),dir:p,style:a,role:"menu",tabIndex:c,data:Ke,renderRawItem:e=>e,renderRawRest:e=>{const t=e.length,n=t?J.slice(-t):null;return o.createElement(gg,{eventKey:Wh,title:H,disabled:$e,internalPopupClose:0===t,popupClassName:F},n)},maxCount:"horizontal"!==ve||b?qp.INVALIDATE:qp.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:e=>{xe(e)},onKeyDown:Ve},Q));return o.createElement(Nh.Provider,{value:We},o.createElement(gh.Provider,{value:re},o.createElement(wh,{prefixCls:n,rootClassName:r,classNames:s,styles:l,mode:ve,openKeys:ce,rtl:ae,disabled:v,motion:te?M:null,defaultMotions:te?B:null,activeKey:Me,onActive:Te,onInactive:ze,selectedKeys:He,inlineIndent:R,subMenuOpenDelay:y,subMenuCloseDelay:w,forceSubMenuRender:C,builtinPlacements:z,triggerSubMenuAction:T,getPopupContainer:j,itemIcon:A,expandIcon:L,onItemClick:Fe,onOpenChange:je,popupRender:Z},o.createElement(kh.Provider,{value:Re},qe),o.createElement("div",{style:{display:"none"},"aria-hidden":!0},o.createElement(xh.Provider,{value:De},ee)))))}),Ng=kg;Ng.Item=tg,Ng.SubMenu=gg,Ng.ItemGroup=wg,Ng.Divider=vg;var _g={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};function Ig(){return Ig=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ig.apply(this,arguments)}const Pg=(e,t)=>o.createElement(Ga,Ig({},e,{ref:t,icon:_g})),Og=o.forwardRef(Pg);
|
|
19
|
-
/** */"production"!==process.env.NODE_ENV&&(Og.displayName="BarsOutlined");var Dg=Og;const Rg=o.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),Mg=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:o,colorText:r,controlHeightSM:a,marginXXS:i,colorTextLightSolid:l,colorBgContainer:s}=e,c=1.25*o;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*n,headerPadding:`0 ${c}px`,headerColor:r,footerPadding:`${a}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:o+2*i,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:o,zeroTriggerHeight:o,lightSiderBg:s,lightTriggerBg:s,lightTriggerColor:r}},Bg=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Pa("Layout",e=>{const{antCls:t,componentCls:n,colorText:o,footerBg:r,headerHeight:a,headerPadding:i,headerColor:l,footerPadding:s,fontSize:c,bodyBg:d,headerBg:u}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:d,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:a,padding:i,color:l,lineHeight:wn(a),background:u,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:s,color:o,fontSize:c,background:r},[`${n}-content`]:{flex:"auto",color:o,minHeight:0}}},Mg,{deprecatedTokens:Bg});var Tg=Pa(["Layout","Sider"],e=>{const{componentCls:t,siderBg:n,motionDurationMid:o,motionDurationSlow:r,antCls:a,triggerHeight:i,triggerColor:l,triggerBg:s,headerHeight:c,zeroTriggerWidth:d,zeroTriggerHeight:u,borderRadiusLG:p,lightSiderBg:m,lightTriggerColor:f,lightTriggerBg:h,bodyBg:g}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${o}, background 0s`,"&-has-trigger":{paddingBottom:i},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${a}-menu${a}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:i,color:l,lineHeight:wn(i),textAlign:"center",background:s,cursor:"pointer",transition:`all ${o}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:c,insetInlineEnd:e.calc(d).mul(-1).equal(),zIndex:1,width:d,height:u,color:l,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${wn(p)} ${wn(p)} 0`,cursor:"pointer",transition:`background ${r} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${r}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(d).mul(-1).equal(),borderRadius:`${wn(p)} 0 0 ${wn(p)}`}},"&-light":{background:m,[`${t}-trigger`]:{color:f,background:h},[`${t}-zero-width-trigger`]:{color:f,background:h,border:`1px solid ${g}`,borderInlineStart:0}}}}},Mg,{deprecatedTokens:Bg});const zg={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Ag=o.createContext({}),Lg=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),Hg=o.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:s,children:c,defaultCollapsed:d=!1,theme:u="dark",style:p={},collapsible:f=!1,reverseArrow:h=!1,width:g=200,collapsedWidth:v=80,zeroWidthTriggerStyle:b,breakpoint:y,onCollapse:w,onBreakpoint:C,...x}=e,{siderHook:$}=m(Rg),[S,E]=i("collapsed"in e?e.collapsed:d),[k,N]=i(!1);l(()=>{"collapsed"in e&&E(e.collapsed)},[e.collapsed]);const _=(t,n)=>{"collapsed"in e||E(t),w?.(t,n)},{getPrefixCls:I,direction:P}=m(Ft),O=I("layout-sider",n),[D,R]=Tg(O),M=a(null);M.current=e=>{N(e.matches),C?.(e.matches),S!==e.matches&&_(e.matches,"responsive")},l(()=>{function e(e){return M.current?.(e)}let t;return void 0!==window?.matchMedia&&y&&y in zg&&(t=window.matchMedia(`screen and (max-width: ${zg[y]})`),"function"==typeof t?.addEventListener&&t.addEventListener("change",e),e(t)),()=>{"function"==typeof t?.removeEventListener&&t.removeEventListener("change",e)}},[y]),l(()=>{const e=Lg("ant-sider-");return $.addSider(e),()=>$.removeSider(e)},[]);const B=()=>{_(!S,"clickTrigger")},T=lt(x,["collapsed"]),z=S?v:g,A=(L=z,!Number.isNaN(Number.parseFloat(L))&&Number.isFinite(Number(L))?`${z}px`:String(z));var L;const H=0===Number.parseFloat(String(v||0))?o.createElement("span",{onClick:B,className:ie(`${O}-zero-width-trigger`,`${O}-zero-width-trigger-${h?"right":"left"}`),style:b},s||o.createElement(Dg,null)):null,F="rtl"===P==!h,j={expanded:F?o.createElement(td,null):o.createElement(ih,null),collapsed:F?o.createElement(ih,null):o.createElement(td,null)}[S?"collapsed":"expanded"],V=null!==s?H||o.createElement("div",{className:`${O}-trigger`,onClick:B,style:{width:A}},s||j):null,W={...p,flex:`0 0 ${A}`,maxWidth:A,minWidth:A,width:A},K=ie(O,`${O}-${u}`,{[`${O}-collapsed`]:!!S,[`${O}-has-trigger`]:f&&null!==s&&!H,[`${O}-below`]:!!k,[`${O}-zero-width`]:0===Number.parseFloat(A)},r,D,R),q=o.useMemo(()=>({siderCollapsed:S}),[S]);return o.createElement(Ag.Provider,{value:q},o.createElement("aside",{className:K,...T,style:W,ref:t},o.createElement("div",{className:`${O}-children`},c),f||k&&H?V:null))});"production"!==process.env.NODE_ENV&&(Hg.displayName="Sider");var Fg={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};function jg(){return jg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},jg.apply(this,arguments)}const Vg=(e,t)=>o.createElement(Ga,jg({},e,{ref:t,icon:Fg})),Wg=o.forwardRef(Vg);
|
|
20
|
-
/** */"production"!==process.env.NODE_ENV&&(Wg.displayName="EllipsisOutlined");var Kg=Wg;var qg=f({prefixCls:"",firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null});var Ug=e=>{const{prefixCls:t,className:n,dashed:r,...a}=e,{getPrefixCls:i}=o.useContext(Ft),l=i("menu",t),s=ie({[`${l}-item-divider-dashed`]:!!r},n);return o.createElement(vg,{className:s,...a})};var Xg=e=>{const{className:t,children:n,icon:r,title:a,danger:i,extra:l}=e,{prefixCls:s,firstLevel:c,direction:d,disableMenuItemTitleTooltip:u,inlineCollapsed:p,styles:m,classNames:f}=o.useContext(qg),{siderCollapsed:h}=o.useContext(Ag);let g=a;void 0===a?g=c?n:"":!1===a&&(g="");const v={title:g};h||p||(v.title=null,v.open=!1);const b=st(n).length;let y=o.createElement(tg,{...lt(e,["title","icon","danger"]),className:ie(c?f.item:f.subMenu.item,{[`${s}-item-danger`]:i,[`${s}-item-only-child`]:1===(r?b+1:b)},t),style:{...c?m.item:m.subMenu.item,...e.style},title:"string"==typeof a?a:void 0},xl(r,e=>({className:ie(`${s}-item-icon`,c?f.itemIcon:f.subMenu.itemIcon,e.className),style:{...c?m.itemIcon:m.subMenu.itemIcon,...e.style}})),(e=>{const t=n?.[0],a=o.createElement("span",{className:ie(`${s}-title-content`,c?f.itemContent:f.subMenu.itemContent,{[`${s}-title-content-with-extra`]:!!l||0===l}),style:c?m.itemContent:m.subMenu.itemContent},n);return(!r||o.isValidElement(n)&&"span"===n.type)&&n&&e&&c&&"string"==typeof t?o.createElement("div",{className:`${s}-inline-collapsed-noicon`},t.charAt(0)):a})(p));return u||(y=o.createElement(eh,{...v,placement:"rtl"===d?"left":"right",classNames:{root:`${s}-inline-collapsed-tooltip`}},y)),y};const Gg=o.createContext(null),Yg=o.forwardRef((e,t)=>{const{children:n,...r}=e,a=o.useContext(Gg),i=o.useMemo(()=>({...a,...r}),[a,r.prefixCls,r.mode,r.selectable,r.rootClassName]),l=(e=>Ke(e)&&We(e))(n),s=Ve(t,l?qe(n):null);return o.createElement(Gg.Provider,{value:i},o.createElement(cp,{space:!0},l?o.cloneElement(n,{ref:s}):n))});var Zg=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:o,colorSplit:r,lineWidth:a,lineType:i,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:o,border:0,borderBottom:`${wn(a)} ${i} ${r}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}};var Qg=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,\n ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${wn(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${wn(t)})`}}}});const Jg=e=>ka(e);var ev=(e,t)=>{const{componentCls:n,itemColor:o,itemSelectedColor:r,subMenuItemSelectedColor:a,groupTitleColor:i,itemBg:l,subMenuItemBg:s,itemSelectedBg:c,activeBarHeight:d,activeBarWidth:u,activeBarBorderWidth:p,motionDurationSlow:m,motionEaseInOut:f,motionEaseOut:h,itemPaddingInline:g,motionDurationMid:v,itemHoverColor:b,lineType:y,colorSplit:w,itemDisabledColor:C,dangerItemColor:x,dangerItemHoverColor:$,dangerItemSelectedColor:S,dangerItemActiveBg:E,dangerItemSelectedBg:k,popupBg:N,itemHoverBg:_,itemActiveBg:I,menuSubMenuBg:P,horizontalItemSelectedColor:O,horizontalItemSelectedBg:D,horizontalItemBorderRadius:R,horizontalItemHoverBg:M}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:o,background:l,[`&${n}-root:focus-visible`]:{...Jg(e)},[`${n}-item`]:{"&-group-title, &-extra":{color:i}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:a},[`${n}-item, ${n}-submenu-title`]:{color:o,[`&:not(${n}-item-disabled):focus-visible`]:{...Jg(e)}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${C} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:_},"&:active":{backgroundColor:I}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:_},"&:active":{backgroundColor:I}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:$}},[`&${n}-item:active`]:{background:E}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:r,[`&${n}-item-danger`]:{color:S},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:k}},[`&${n}-submenu > ${n}`]:{backgroundColor:P},[`&${n}-popup > ${n}`]:{backgroundColor:N},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:N},[`&${n}-horizontal`]:{..."dark"===t?{borderBottom:0}:{},[`> ${n}-item, > ${n}-submenu`]:{top:p,marginTop:e.calc(p).mul(-1).equal(),marginBottom:0,borderRadius:R,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${wn(d)} solid transparent`,transition:`border-color ${m} ${f}`,content:'""'},"&:hover, &-active, &-open":{background:M,"&::after":{borderBottomWidth:d,borderBottomColor:O}},"&-selected":{color:O,backgroundColor:D,"&:hover":{backgroundColor:D},"&::after":{borderBottomWidth:d,borderBottomColor:O}}}},[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${wn(p)} ${y} ${w}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${wn(u)} solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${v} ${h}`,`opacity ${v} ${h}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:S}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${v} ${f}`,`opacity ${v} ${f}`].join(",")}}}}}};const tv=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:o,padding:r,menuArrowSize:a,marginXS:i,itemMarginBlock:l,itemWidth:s,itemPaddingInline:c}=e,d=e.calc(a).add(r).add(i).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:wn(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:l,width:s},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:wn(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:d}}};var nv=e=>{const{componentCls:t,iconCls:n,itemHeight:o,colorTextLightSolid:r,dropdownWidth:a,controlHeightLG:i,motionEaseOut:l,paddingXL:s,itemMarginInline:c,fontSizeLG:d,motionDurationFast:u,motionDurationSlow:p,paddingXS:m,boxShadowSecondary:f,collapsedWidth:h,collapsedIconSize:g}=e,v={height:o,lineHeight:wn(o),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:"none"},...tv(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...tv(e),boxShadow:f}}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${wn(e.calc(i).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${p}`,`background ${p}`,`padding ${u} ${l}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:v,[`& ${t}-item-group-title`]:{paddingInlineStart:s}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:h,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${wn(e.calc(g).div(2).equal())} - ${wn(c)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:g,lineHeight:wn(o),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:r}},[`${t}-item-group-title`]:{...Sa,paddingInline:m}}}]};const ov=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:o,motionEaseInOut:r,motionEaseOut:a,iconCls:i,iconSize:l,iconMarginInlineEnd:s}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${r}`].join(","),[`${t}-item-icon, ${i}`]:{minWidth:l,fontSize:l,transition:[`font-size ${o} ${a}`,`margin ${n} ${r}`,`color ${n}`].join(","),"+ span":{marginInlineStart:s,opacity:1,transition:[`opacity ${n} ${r}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}},[`&${t}-item-only-child`]:{[`> ${i}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},rv=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:o,borderRadius:r,menuArrowSize:a,menuArrowOffset:i}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${o}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:r,transition:[`background ${n} ${o}`,`transform ${n} ${o}`,`top ${n} ${o}`,`color ${n} ${o}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${wn(e.calc(i).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${wn(i)})`}}}}},av=e=>{const{antCls:t,componentCls:n,fontSize:o,motionDurationSlow:r,motionDurationMid:a,motionEaseInOut:i,paddingXS:l,padding:s,colorSplit:c,lineWidth:d,zIndexPopup:u,borderRadiusLG:p,subMenuItemBorderRadius:m,menuArrowSize:f,menuArrowOffset:h,lineType:g,groupTitleLineHeight:v,groupTitleFontSize:b}=e;return[{"":{[n]:{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'},"&-hidden":{display:"none"}}},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:{...Ea(e),"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'},marginBottom:0,paddingInlineStart:0,fontSize:o,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${r} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${wn(l)} ${wn(s)}`,fontSize:b,lineHeight:v,transition:`all ${r}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${r} ${i}`,`background ${r} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${r} ${i}`,`background ${r} ${i}`,`padding ${a} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${r} ${i}`,`padding ${r} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${r}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:g,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}},...ov(e),[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${wn(e.calc(o).mul(2).equal())} ${wn(s)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:u,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:{borderRadius:p,...ov(e),...rv(e),[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:m},[`${n}-submenu-title::after`]:{transition:`transform ${r} ${i}`}}},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}},...rv(e),[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${wn(h)})`},"&::after":{transform:`rotate(45deg) translateX(${wn(e.calc(h).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${wn(e.calc(f).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${wn(e.calc(h).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${wn(h)})`}}}},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},iv=e=>{const{colorPrimary:t,colorError:n,colorTextDisabled:o,colorErrorBg:r,colorText:a,colorTextDescription:i,colorBgContainer:l,colorFillAlter:s,colorFillContent:c,lineWidth:d,lineWidthBold:u,controlItemBgActive:p,colorBgTextHover:m,controlHeightLG:f,lineHeight:h,colorBgElevated:g,marginXXS:v,padding:b,fontSize:y,controlHeightSM:w,fontSizeLG:C,colorTextLightSolid:x,colorErrorHover:$}=e,S=e.activeBarWidth??0,E=e.activeBarBorderWidth??d,k=e.itemMarginInline??e.marginXXS,N=new Tr(x).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:a,itemColor:a,colorItemTextHover:a,itemHoverColor:a,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:i,groupTitleColor:i,colorItemTextSelected:t,itemSelectedColor:t,subMenuItemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:l,itemBg:l,colorItemBgHover:m,itemHoverBg:m,colorItemBgActive:c,itemActiveBg:p,colorSubItemBg:s,subMenuItemBg:s,colorItemBgSelected:p,itemSelectedBg:p,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:S,colorActiveBarHeight:u,activeBarHeight:u,colorActiveBarBorderSize:d,activeBarBorderWidth:E,colorItemTextDisabled:o,itemDisabledColor:o,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:r,dangerItemActiveBg:r,colorDangerItemBgSelected:r,dangerItemSelectedBg:r,itemMarginInline:k,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:f,groupTitleLineHeight:h,collapsedWidth:2*f,popupBg:g,itemMarginBlock:v,itemPaddingInline:b,horizontalLineHeight:1.15*f+"px",iconSize:y,iconMarginInlineEnd:w-y,collapsedIconSize:C,groupTitleFontSize:y,darkItemDisabledColor:new Tr(x).setA(.25).toRgbString(),darkItemColor:N,darkDangerItemColor:n,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:x,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:"transparent",darkGroupTitleColor:N,darkItemHoverColor:x,darkDangerItemHoverColor:$,darkDangerItemSelectedColor:x,darkDangerItemActiveBg:n,itemWidth:S?`calc(100% + ${E}px)`:`calc(100% - ${2*k}px)`}};var lv=e=>{const{popupClassName:t,icon:n,title:r,theme:a}=e,i=o.useContext(qg),{prefixCls:l,inlineCollapsed:s,theme:c,classNames:d,styles:u}=i,p=Eh();let m;if(n){const e=o.isValidElement(r)&&"span"===r.type;m=o.createElement(o.Fragment,null,xl(n,e=>({className:ie(e.className,`${l}-item-icon`,d.itemIcon),style:{...e.style,...u.itemIcon}})),e?r:o.createElement("span",{className:`${l}-title-content`},r))}else m=s&&!p.length&&r&&"string"==typeof r?o.createElement("div",{className:`${l}-inline-collapsed-noicon`},r.charAt(0)):o.createElement("span",{className:`${l}-title-content`},r);const f=o.useMemo(()=>({...i,firstLevel:!1}),[i]),[h]=wl("Menu");return o.createElement(qg.Provider,{value:f},o.createElement(gg,{...lt(e,["icon"]),title:m,classNames:{list:d.subMenu.list,listTitle:d.subMenu.itemTitle},styles:{list:u.subMenu.list,listTitle:u.subMenu.itemTitle},popupClassName:ie(l,t,d.popup.root,`${l}-${a||c}`),popupStyle:{zIndex:h,...e.popupStyle,...u.popup.root}}))};function sv(e){return null===e||!1===e}const cv={item:Xg,submenu:lv,divider:Ug},dv=b((e,t)=>{const n=o.useContext(Gg),r=n||{},{prefixCls:a,className:i,style:l,theme:s="light",expandIcon:c,_internalDisableMenuItemTitleTooltip:d,inlineCollapsed:u,siderCollapsed:p,rootClassName:m,mode:f,selectable:h,onClick:g,overflowedIndicatorPopupClassName:v,classNames:b,styles:y,...w}=e,{menu:C}=o.useContext(Ft),{getPrefixCls:x,getPopupContainer:$,direction:S,className:E,style:k,classNames:N,styles:_}=Vt("menu"),I=x(),P=lt(w,["collapsedWidth"]);if("production"!==process.env.NODE_ENV){const t=ht("Menu");"production"!==process.env.NODE_ENV&&t(!("inlineCollapsed"in e&&"inline"!==f),"usage","`inlineCollapsed` should only be used when `mode` is inline."),t.deprecated("items"in e&&!e.children,"children","items")}r.validator?.({mode:f});const O=$e((...e)=>{g?.(...e),r.onClick?.()}),D=r.mode||f,R=h??r.selectable,M=u??p,B={...e,mode:D,inlineCollapsed:M,selectable:R,theme:s},[T,z]=ul([N,b],[_,y],{props:B},{popup:{_default:"root"},subMenu:{_default:"item"}}),A={horizontal:{motionName:`${I}-slide-up`},inline:Qs(I),other:{motionName:`${I}-zoom-big`}},L=x("menu",a||r.prefixCls),H=El(L),[F,j]=((e,t=e,n=!0)=>{const o=Pa("Menu",e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:o,darkItemColor:r,darkDangerItemColor:a,darkItemBg:i,darkSubMenuItemBg:l,darkItemSelectedColor:s,darkItemSelectedBg:c,darkDangerItemSelectedBg:d,darkItemHoverBg:u,darkGroupTitleColor:p,darkItemHoverColor:m,darkItemDisabledColor:f,darkDangerItemHoverColor:h,darkDangerItemSelectedColor:g,darkDangerItemActiveBg:v,popupBg:b,darkPopupBg:y}=e,w=e.calc(o).div(7).mul(5).equal(),C=wr(e,{menuArrowSize:w,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(w).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:b}),x=wr(C,{itemColor:r,itemHoverColor:m,groupTitleColor:p,itemSelectedColor:s,subMenuItemSelectedColor:s,itemBg:i,popupBg:y,subMenuItemBg:l,itemActiveBg:"transparent",itemSelectedBg:c,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:u,itemDisabledColor:f,dangerItemColor:a,dangerItemHoverColor:h,dangerItemSelectedColor:g,dangerItemActiveBg:v,dangerItemSelectedBg:d,menuSubMenuBg:l,horizontalItemSelectedColor:s,horizontalItemSelectedBg:c});return[av(C),Zg(C),nv(C),ev(C,"light"),ev(x,"dark"),Qg(C),od(C),Nd(C,"slide-up"),Nd(C,"slide-down"),Bd(C,"zoom-big")]},iv,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}});return o(e,t)})(L,H,!n),V=ie(`${L}-${s}`,E,i),W=o.useMemo(()=>{if("function"==typeof c||sv(c))return c||null;if("function"==typeof r.expandIcon||sv(r.expandIcon))return r.expandIcon||null;if("function"==typeof C?.expandIcon||sv(C?.expandIcon))return C?.expandIcon||null;const e=c??r?.expandIcon??C?.expandIcon;return xl(e,{className:ie(`${L}-submenu-expand-icon`,o.isValidElement(e)?e.props?.className:void 0)})},[c,r?.expandIcon,C?.expandIcon,L]),K=o.useMemo(()=>({prefixCls:L,inlineCollapsed:M||!1,direction:S,firstLevel:!0,theme:s,mode:D,disableMenuItemTitleTooltip:d,classNames:T,styles:z}),[L,M,S,d,s,D,T,z]);return o.createElement(Gg.Provider,{value:null},o.createElement(qg.Provider,{value:K},o.createElement(Ng,{getPopupContainer:$,overflowedIndicator:o.createElement(Kg,null),overflowedIndicatorPopupClassName:ie(L,`${L}-${s}`,v),classNames:{list:T.list,listTitle:T.itemTitle},styles:{list:z.list,listTitle:z.itemTitle},mode:D,selectable:R,onClick:O,...P,inlineCollapsed:M,style:{...z.root,...k,...l},className:V,prefixCls:L,direction:S,defaultMotions:A,expandIcon:W,ref:t,rootClassName:ie(m,F,r.rootClassName,j,H,T.root),_internalComponents:cv})))});var uv=dv;const pv=b((e,t)=>{const n=a(null),r=o.useContext(Ag);return g(t,()=>({menu:n.current,focus:e=>{n.current?.focus(e)}})),o.createElement(uv,{ref:n,...e,...r})});pv.Item=Xg,pv.SubMenu=lv,pv.Divider=Ug,pv.ItemGroup=wg,"production"!==process.env.NODE_ENV&&(pv.displayName="Menu");var mv=pv;var fv=e=>{const{componentCls:t,menuCls:n,colorError:o,colorTextLightSolid:r}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:o,"&:hover":{color:r,backgroundColor:o}}}}}};const hv=e=>{const{componentCls:t,menuCls:n,zIndexPopup:o,dropdownArrowDistance:r,sizePopupArrow:a,antCls:i,iconCls:l,motionDurationMid:s,paddingBlock:c,fontSize:d,dropdownEdgeChildPadding:u,colorTextDisabled:p,fontSizeIcon:m,controlPaddingHorizontal:f,colorBgElevated:h}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:o,display:"block","&::before":{position:"absolute",insetBlock:e.calc(a).div(2).sub(r).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${i}-btn`]:{[`& > ${l}-down, & > ${i}-btn-icon > ${l}-down`]:{fontSize:m}},[`${t}-wrap`]:{position:"relative",[`${i}-btn > ${l}-down`]:{fontSize:m},[`${l}-down::before`]:{transition:`transform ${s}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomLeft,\n &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomLeft,\n &${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottom,\n &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottom,\n &${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomRight,\n &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:bd},[`&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topLeft,\n &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topLeft,\n &${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-top,\n &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-top,\n &${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topRight,\n &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topRight`]:{animationName:wd},[`&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomLeft,\n &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottom,\n &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:yd},[`&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topLeft,\n &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-top,\n &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Cd}}},Hf(e,h,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:o,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{...Ea(e),[n]:{padding:u,listStyleType:"none",backgroundColor:h,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,...Na(e),"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${wn(c)} ${wn(f)}`,color:e.colorTextDescription,transition:`all ${s}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${s}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:{display:"flex",margin:0,padding:`${wn(c)} ${wn(f)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${s}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...Na(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,backgroundColor:h,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${wn(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:m,fontStyle:"normal"}}},[`${n}-item-group-list`]:{margin:`0 ${wn(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(f).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:p,backgroundColor:h,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}}}},[Nd(e,"slide-up"),Nd(e,"slide-down"),vd(e,"move-up"),vd(e,"move-down"),Bd(e,"zoom-big")]]};var gv=Pa("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:o,componentCls:r}=e,a=wr(e,{menuCls:`${r}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:o});return[hv(a),fv(a)]},e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...Af({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...Tf(e)}),{resetStyle:!1});const vv=e=>{const{menu:t,arrow:n,prefixCls:r,children:a,trigger:i,disabled:l,dropdownRender:s,popupRender:c,getPopupContainer:d,overlayClassName:u,rootClassName:p,overlayStyle:m,open:f,onOpenChange:h,mouseEnterDelay:g=.15,mouseLeaveDelay:v=.1,autoAdjustOverflow:b=!0,placement:y="",transitionName:w,classNames:C,styles:x,destroyPopupOnHide:$,destroyOnHidden:S}=e,{getPrefixCls:E,direction:k,getPopupContainer:N,className:_,style:I,classNames:P,styles:O}=Vt("dropdown"),D={...e,mouseEnterDelay:g,mouseLeaveDelay:v,autoAdjustOverflow:b},[R,M]=ul([P,C],[O,x],{props:D}),B={...I,...m,...M.root},T=c||s,z=ht("Dropdown");if("production"!==process.env.NODE_ENV){const t={dropdownRender:"popupRender",destroyPopupOnHide:"destroyOnHidden",overlayClassName:"classNames.root",overlayStyle:"styles.root"};Object.entries(t).forEach(([t,n])=>{z.deprecated(!(t in e),t,n)}),y.includes("Center")&&z.deprecated(!y.includes("Center"),`placement: ${y}`,`placement: ${y.slice(0,y.indexOf("Center"))}`)}const A=o.useMemo(()=>{const e=E();return void 0!==w?w:y.includes("top")?`${e}-slide-down`:`${e}-slide-up`},[E,y,w]),L=o.useMemo(()=>y?y.includes("Center")?y.slice(0,y.indexOf("Center")):y:"rtl"===k?"bottomRight":"bottomLeft",[y,k]),H=E("dropdown",r),F=El(H),[j,V]=gv(H,F),[,W]=$a(),K=o.Children.only(hh(a)?o.createElement("span",null,a):a),q=xl(K,{className:ie(`${H}-trigger`,{[`${H}-rtl`]:"rtl"===k},K.props.className),disabled:K.props.disabled??l}),U=l?[]:i,X=!!U?.includes("contextMenu"),[G,Y]=_e(!1,f),Z=$e(e=>{h?.(e,{source:"trigger"}),Y(e)}),Q=ie(u,p,j,V,F,_,R.root,{[`${H}-rtl`]:"rtl"===k}),J=Wf({arrowPointAtCenter:"object"==typeof n&&n.pointAtCenter,autoAdjustOverflow:b,offset:W.marginXXS,arrowWidth:n?W.sizePopupArrow:0,borderRadius:W.borderRadius}),ee=$e(()=>{t?.selectable&&t?.multiple||(h?.(!1,{source:"menu"}),Y(!1))}),[te,ne]=wl("Dropdown",B.zIndex);let oe=o.createElement(fh,{alignPoint:X,...lt(e,["rootClassName","onOpenChange"]),mouseEnterDelay:g,mouseLeaveDelay:v,visible:G,builtinPlacements:J,arrow:!!n,overlayClassName:Q,prefixCls:H,getPopupContainer:d||N,transitionName:A,trigger:U,overlay:()=>{const e=lt(R,["root"]),n=lt(M,["root"]);let r;return t?.items&&(r=o.createElement(mv,{...t,classNames:{...e,subMenu:{...e}},styles:{...n,subMenu:{...n}}})),T&&(r=T(r)),r=o.Children.only("string"==typeof r?o.createElement("span",null,r):r),o.createElement(Yg,{prefixCls:`${H}-menu`,rootClassName:ie(V,F),expandIcon:o.createElement("span",{className:`${H}-menu-submenu-arrow`},"rtl"===k?o.createElement(ih,{className:`${H}-menu-submenu-arrow-icon`}):o.createElement(td,{className:`${H}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ee,validator:({mode:e})=>{"production"!==process.env.NODE_ENV&&z(!e||"vertical"===e,"usage",`mode="${e}" is not supported for Dropdown's Menu.`)}},r)},placement:L,onVisibleChange:Z,overlayStyle:{...B,zIndex:te},autoDestroy:S??$},q);return te&&(oe=o.createElement(gl.Provider,{value:ne},oe)),oe},bv=dp(vv,"align",void 0,"dropdown",e=>e);vv._InternalPanelDoNotUseOrYouWillBeFired=e=>o.createElement(bv,{...e},o.createElement("span",null)),"production"!==process.env.NODE_ENV&&(vv.displayName="Dropdown");var yv=vv;const wv=({children:e})=>{const{getPrefixCls:t}=o.useContext(Ft),n=t("breadcrumb"),r=o.useContext(th),{classNames:a,styles:i}=r;return o.createElement("li",{className:ie(`${n}-separator`,a?.separator),style:i?.separator,"aria-hidden":"true"},""===e?e:e||"/")};wv.__ANT_BREADCRUMB_SEPARATOR=!0;var Cv=wv;function xv(e,t,n,r){if(!ol(n))return null;const{className:a,onClick:i,...l}=t,s={...Li(l,{data:!0,aria:!0}),onClick:i};return void 0!==r?o.createElement("a",{...s,className:ie(`${e}-link`,a),href:r},n):o.createElement("span",{...s,className:ie(`${e}-link`,a)},n)}function $v(e,t){return(n,o,r,a,i)=>{if(t)return t(n,o,r,a);const l=function(e,t){if(!ol(e.title))return null;const n=Object.keys(t).join("|");return"object"==typeof e.title?e.title:String(e.title).replace(new RegExp(`:(${n})`,"g"),(e,n)=>t[n]||e)}(n,o);return xv(e,n,l,i)}}const Sv=e=>{const{prefixCls:t,separator:n="/",children:r,menu:a,dropdownProps:i,href:l}=e,s=o.useContext(th),{classNames:c,styles:d}=s,u=(e=>{if(a){const n={...i};if(a){const{items:e,...t}=a||{};n.menu={...t,items:e?.map(({key:e,title:t,label:n,path:r,...a},i)=>{let s=n??t;return r&&(s=o.createElement("a",{href:`${l}${r}`},s)),{...a,key:e??i,label:s}})}}return o.createElement(yv,{placement:"bottom",...n},o.createElement("span",{className:`${t}-overlay-link`},e,o.createElement(hf,null)))}return e})(r);return ol(u)?o.createElement(o.Fragment,null,o.createElement("li",{className:ie(`${t}-item`,c?.item),style:d?.item},u),n&&o.createElement(Cv,null,n)):null},Ev=e=>{const{prefixCls:t,children:n,href:r,...a}=e,{getPrefixCls:i}=o.useContext(Ft),l=i("breadcrumb",t);return o.createElement(Sv,{...a,prefixCls:l},xv(l,a,n,r))};Ev.__ANT_BREADCRUMB_ITEM=!0;var kv=Ev;var Nv=Pa("Breadcrumb",e=>(e=>{const{componentCls:t,iconCls:n,calc:o}=e;return{[t]:{...Ea(e),color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},[`${t}-item a`]:{color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${wn(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:o(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover},...Na(e)},[`${t}-item:last-child`]:{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[`\n > ${n} + span,\n > ${n} + a\n `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${wn(e.paddingXXS)}`,marginInline:o(e.marginXXS).mul(-1).equal(),[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}}}})(wr(e,{})),e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}));function _v(e){const{breadcrumbName:t,children:n,...o}=e,r={title:t,...o};return n&&(r.menu={items:n.map(({breadcrumbName:e,...t})=>({...t,title:e}))}),r}const Iv=e=>{const{prefixCls:t,separator:n,style:r,className:a,rootClassName:i,routes:l,items:s,children:d,itemRender:u,params:p={},classNames:m,styles:f,...h}=e,{getPrefixCls:g,direction:v,className:b,style:y,classNames:w,styles:C,separator:x}=Vt("breadcrumb"),$=n??x??"/";let S;const E=g("breadcrumb",t),[k,N]=Nv(E),_=function(e,t){return c(()=>e||(t?t.map(_v):null),[e,t])}(s,l),I=o.useMemo(()=>({...e,separator:$}),[e,$]),[P,O]=ul([w,m],[C,f],{props:I});if("production"!==process.env.NODE_ENV){const e=ht("Breadcrumb");if(e.deprecated(!l,"routes","items"),!_||0===_.length){const t=st(d);e.deprecated(0===t.length,"Breadcrumb.Item and Breadcrumb.Separator","items"),t.forEach(t=>{t&&"production"!==process.env.NODE_ENV&&e(t.type&&(!0===t.type.__ANT_BREADCRUMB_ITEM||!0===t.type.__ANT_BREADCRUMB_SEPARATOR),"usage","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children")})}}const D=$v(E,u);if(_&&_.length>0){const e=[],t=s||l;S=_.map((n,r)=>{const{path:a,key:i,type:l,menu:s,onClick:c,className:d,style:u,separator:m,dropdownProps:f}=n,h=((e,t)=>{if(void 0===t)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach(t=>{n=n.replace(`:${t}`,e[t])}),n})(p,a);void 0!==h&&e.push(h);const g=i??r;if("separator"===l)return o.createElement(Cv,{key:g},m);const v={},b=r===_.length-1;s&&(v.menu=s);let{href:y}=n;return e.length&&void 0!==h&&(y=`#/${e.join("/")}`),o.createElement(Sv,{key:g,...v,...Li(n,{data:!0,aria:!0}),className:d,style:u,dropdownProps:f,href:y,separator:b?"":$,onClick:c,prefixCls:E},D(n,p,t,e,y))})}else if(d){const e=st(d).length;S=st(d).map((t,n)=>{if(!t)return t;return xl(t,{separator:n===e-1?"":$,key:n})})}const R=ie(E,b,{[`${E}-rtl`]:"rtl"===v},a,i,P.root,k,N),M={...O.root,...y,...r},B=o.useMemo(()=>({classNames:P,styles:O}),[P,O]);return o.createElement(th.Provider,{value:B},o.createElement("nav",{className:R,style:M,...h},o.createElement("ol",null,S)))};Iv.Item=kv,Iv.Separator=Cv,"production"!==process.env.NODE_ENV&&(Iv.displayName="Breadcrumb");var Pv=Iv;function Ov(e){var t;return(void 0===(t=e)||!1===t?[]:Array.isArray(t)?t:[t]).join("_")}const Dv=o.createContext(null),Rv=Dv.Provider,Mv=o.createContext(null),Bv=Mv.Provider;function Tv(){return Tv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Tv.apply(this,arguments)}const zv=b((e,t)=>{const{prefixCls:n="rc-checkbox",className:r,style:i,checked:l,disabled:s,defaultChecked:c=!1,type:d="checkbox",title:u,onChange:p,...m}=e,f=a(null),h=a(null),[v,b]=_e(c,l);g(t,()=>({focus:e=>{f.current?.focus(e)},blur:()=>{f.current?.blur()},input:f.current,nativeElement:h.current}));const y=ie(n,r,{[`${n}-checked`]:v,[`${n}-disabled`]:s});return o.createElement("span",{className:y,title:u,style:i,ref:h},o.createElement("input",Tv({},m,{className:`${n}-input`,ref:f,onChange:t=>{s||("checked"in e||b(t.target.checked),p?.({target:{...e,type:d,checked:t.target.checked},stopPropagation(){t.stopPropagation()},preventDefault(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:s,checked:!!v,type:d})),o.createElement("span",{className:`${n}-inner`}))});function Av(e){const t=r.useRef(null),n=()=>{zt.cancel(t.current),t.current=null};return[()=>{n(),t.current=zt(()=>{t.current=null})},o=>{t.current&&(o.stopPropagation(),n()),e?.(o)}]}const Lv=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-group`;return{[o]:{...Ea(e),display:"inline-block",fontSize:0,[`&${o}-rtl`]:{direction:"rtl"},[`&${o}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"},"&-vertical":{display:"flex",flexDirection:"column",rowGap:e.marginXS}}}},Hv=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:o,radioSize:r,motionDurationSlow:a,motionDurationMid:i,motionEaseInOutCirc:l,colorBgContainer:s,colorBorder:c,lineWidth:d,colorBgContainerDisabled:u,colorTextDisabled:p,paddingXS:m,dotColorDisabled:f,lineType:h,radioColor:g,radioBgColor:v,calc:b}=e,y=`${t}-inner`,w=b(r).sub(b(4).mul(2)),C=b(1).mul(r).equal({unit:!0});return{[`${t}-wrapper`]:{...Ea(e),display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${wn(d)} ${h} ${o}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:{...Ea(e),position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"},[`${t}-wrapper:hover &,\n &:hover ${y}`]:{borderColor:o},[`${t}-input:focus-visible + ${y}`]:ka(e),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:C,height:C,marginBlockStart:b(1).mul(r).div(-2).equal({unit:!0}),marginInlineStart:b(1).mul(r).div(-2).equal({unit:!0}),backgroundColor:g,borderBlockStart:0,borderInlineStart:0,borderRadius:C,transform:"scale(0)",opacity:0,transition:`all ${a} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:C,height:C,backgroundColor:s,borderColor:c,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:o,backgroundColor:v,"&::after":{transform:`scale(${e.calc(e.dotSize).div(r).equal()})`,opacity:1,transition:`all ${a} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:u,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:f}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:p,cursor:"not-allowed"},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${b(w).div(r).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}}}},Fv=e=>{const{buttonColor:t,controlHeight:n,componentCls:o,lineWidth:r,lineType:a,colorBorder:i,motionDurationMid:l,buttonPaddingInline:s,fontSize:c,buttonBg:d,fontSizeLG:u,controlHeightLG:p,controlHeightSM:m,paddingXS:f,borderRadius:h,borderRadiusSM:g,borderRadiusLG:v,buttonCheckedBg:b,buttonSolidCheckedColor:y,colorTextDisabled:w,colorBgContainerDisabled:C,buttonCheckedBgDisabled:x,buttonCheckedColorDisabled:$,colorPrimary:S,colorPrimaryHover:E,colorPrimaryActive:k,buttonSolidCheckedBg:N,buttonSolidCheckedHoverBg:_,buttonSolidCheckedActiveBg:I,calc:P}=e;return{[`${o}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:s,paddingBlock:0,color:t,fontSize:c,lineHeight:wn(P(n).sub(P(r).mul(2)).equal()),background:d,border:`${wn(r)} ${a} ${i}`,borderBlockStartWidth:P(r).add(.02).equal(),borderInlineEndWidth:r,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${o}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:P(r).mul(-1).equal()},"&:first-child":{borderInlineStart:`${wn(r)} ${a} ${i}`,borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h},[`${o}-group-large &`]:{height:p,fontSize:u,lineHeight:wn(P(p).sub(P(r).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},[`${o}-group-small &`]:{height:m,paddingInline:P(f).sub(r).equal(),paddingBlock:0,lineHeight:wn(P(m).sub(P(r).mul(2)).equal()),"&:first-child":{borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g}},"&:hover":{position:"relative",color:S},"&:has(:focus-visible)":ka(e),[`${o}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${o}-button-wrapper-disabled)`]:{zIndex:1,color:S,background:b,borderColor:S,"&::before":{backgroundColor:S},"&:first-child":{borderColor:S},"&:hover":{color:E,borderColor:E,"&::before":{backgroundColor:E}},"&:active":{color:k,borderColor:k,"&::before":{backgroundColor:k}}},[`${o}-group-solid &-checked:not(${o}-button-wrapper-disabled)`]:{color:y,background:N,borderColor:N,"&:hover":{color:y,background:_,borderColor:_},"&:active":{color:y,background:I,borderColor:I}},"&-disabled":{color:w,backgroundColor:C,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:w,backgroundColor:C,borderColor:i}},[`&-disabled${o}-button-wrapper-checked`]:{color:$,backgroundColor:x,borderColor:i,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}};var jv=Pa("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,o=`0 0 0 ${wn(n)} ${t}`,r=wr(e,{radioFocusShadow:o,radioButtonFocusShadow:o});return[Lv(r),Hv(r),Fv(r)]},e=>{const{wireframe:t,padding:n,marginXS:o,lineWidth:r,fontSizeLG:a,colorText:i,colorBgContainer:l,colorTextDisabled:s,controlItemBgActiveDisabled:c,colorTextLightSolid:d,colorPrimary:u,colorPrimaryHover:p,colorPrimaryActive:m,colorWhite:f}=e;return{radioSize:a,dotSize:t?a-8:a-2*(4+r),dotColorDisabled:s,buttonSolidCheckedColor:d,buttonSolidCheckedBg:u,buttonSolidCheckedHoverBg:p,buttonSolidCheckedActiveBg:m,buttonBg:l,buttonCheckedBg:l,buttonColor:i,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:s,buttonPaddingInline:n-r,wrapperMarginInlineEnd:o,radioColor:t?u:f,radioBgColor:t?l:u}},{unitless:{radioSize:!0,dotSize:!0}});const Vv=(e,t)=>{const n=o.useContext(Dv),r=o.useContext(Mv),{getPrefixCls:a,direction:i,className:l,style:s,classNames:c,styles:d}=Vt("radio"),u=o.useRef(null),p=je(t,u),{isFormItemInput:m}=o.useContext(ip);if("production"!==process.env.NODE_ENV){const t=ht("Radio");"production"!==process.env.NODE_ENV&&t(!("optionType"in e),"usage","`optionType` is only support in Radio.Group.")}const f=t=>{e.onChange?.(t),n?.onChange?.(t)},{prefixCls:h,className:g,rootClassName:v,children:b,style:y,title:w,classNames:C,styles:x,...$}=e,S=a("radio",h),E="button"===(n?.optionType||r),k=E?`${S}-button`:S,N=El(S),[_,I]=jv(S,N),P={...$},O=o.useContext(_s);n&&(P.name=n.name,P.onChange=f,P.checked=e.value===n.value,P.disabled=P.disabled??n.disabled),P.disabled=P.disabled??O;const D={...e,...P},[R,M]=ul([c,C],[d,x],{props:D}),B=ie(`${k}-wrapper`,{[`${k}-wrapper-checked`]:P.checked,[`${k}-wrapper-disabled`]:P.disabled,[`${k}-wrapper-rtl`]:"rtl"===i,[`${k}-wrapper-in-form-item`]:m,[`${k}-wrapper-block`]:!!n?.block},l,g,v,R.root,_,I,N),[T,z]=Av(P.onClick);return o.createElement(sc,{component:"Radio",disabled:P.disabled},o.createElement("label",{className:B,style:{...M.root,...s,...y},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:w,onClick:T},o.createElement(zv,{...P,className:ie(R.icon,{[tc]:!E}),style:M.icon,type:"radio",prefixCls:k,ref:p,onClick:z}),void 0!==b?o.createElement("span",{className:ie(`${k}-label`,R.label),style:M.label},b):null))},Wv=o.forwardRef(Vv);"production"!==process.env.NODE_ENV&&(Wv.displayName="Radio");var Kv=Wv;const qv=o.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=o.useContext(Ft),{name:a}=o.useContext(ip),i=Ll(Ov(a)),{prefixCls:l,className:s,rootClassName:c,options:d,buttonStyle:u="outline",disabled:p,children:m,size:f,style:h,id:g,optionType:v,name:b=i,defaultValue:y,value:w,block:C=!1,onChange:x,onMouseEnter:$,onMouseLeave:S,onFocus:E,onBlur:k,orientation:N,vertical:_}=e,[I,P]=_e(y,w),O=o.useCallback(t=>{const n=I,o=t.target.value;"value"in e||P(o),o!==n&&x?.(t)},[I,P,x]),D=n("radio",l),R=`${D}-group`,M=El(D),[B,T]=jv(D,M);let z=m;d&&d.length>0&&(z=d.map(e=>"string"==typeof e||"number"==typeof e?o.createElement(Kv,{key:e.toString(),prefixCls:D,disabled:p,value:e,checked:I===e},e):o.createElement(Kv,{key:`radio-group-value-options-${e.value}`,prefixCls:D,disabled:e.disabled||p,value:e.value,checked:I===e.value,title:e.title,style:e.style,className:e.className,id:e.id,required:e.required},e.label)));const A=cc(f),[,L]=ml(N,_),H=ie(R,`${R}-${u}`,{[`${R}-${A}`]:A,[`${R}-rtl`]:"rtl"===r,[`${R}-block`]:C},s,c,B,T,M),F=o.useMemo(()=>({onChange:O,value:I,disabled:p,name:b,optionType:v,block:C}),[O,I,p,b,v,C]);return o.createElement("div",{...Li(e,{aria:!0,data:!0}),className:ie(H,{[`${D}-group-vertical`]:L}),style:h,onMouseEnter:$,onMouseLeave:S,onFocus:E,onBlur:k,id:g,ref:t},o.createElement(Rv,{value:F},z))});var Uv=o.memo(qv);const Xv=(e,t)=>{const{getPrefixCls:n}=o.useContext(Ft),{prefixCls:r,...a}=e,i=n("radio",r);return o.createElement(Bv,{value:"button"},o.createElement(Kv,{prefixCls:i,...a,type:"radio",ref:t}))};var Gv=o.forwardRef(Xv);const Yv=Kv;Yv.Button=Gv,Yv.Group=Uv,Yv.__ANT_RADIO=!0;var Zv=Yv;function Qv(e){return wr(e,{inputAffixPadding:e.paddingXXS})}const Jv=e=>{const{controlHeight:t,fontSize:n,lineHeight:o,lineWidth:r,controlHeightSM:a,controlHeightLG:i,fontSizeLG:l,lineHeightLG:s,paddingSM:c,controlPaddingHorizontalSM:d,controlPaddingHorizontal:u,colorFillAlter:p,colorPrimaryHover:m,colorPrimary:f,controlOutlineWidth:h,controlOutline:g,colorErrorOutline:v,colorWarningOutline:b,colorBgContainer:y,inputFontSize:w,inputFontSizeLG:C,inputFontSizeSM:x}=e,$=w||n,S=x||$,E=C||l,k=Math.round((t-$*o)/2*10)/10-r,N=Math.round((a-S*o)/2*10)/10-r,_=Math.ceil((i-E*s)/2*10)/10-r;return{paddingBlock:Math.max(k,0),paddingBlockSM:Math.max(N,0),paddingBlockLG:Math.max(_,0),paddingInline:c-r,paddingInlineSM:d-r,paddingInlineLG:u-r,addonBg:p,activeBorderColor:f,hoverBorderColor:m,activeShadow:`0 0 0 ${h}px ${g}`,errorActiveShadow:`0 0 0 ${h}px ${v}`,warningActiveShadow:`0 0 0 ${h}px ${b}`,hoverBg:y,activeBg:y,inputFontSize:$,inputFontSizeLG:E,inputFontSizeSM:S}},eb=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),tb=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":{...eb(wr(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled}))}}),nb=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),ob=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...nb(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),rb=(e,t)=>({"&-outlined":{...nb(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...tb(e)},...ob(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...ob(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),ab=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),ib=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${wn(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...ab(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...ab(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...tb(e)}}}}),lb=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":{background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}},...t}}},sb=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t?.inputColor??"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),cb=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...sb(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),db=(e,t)=>({"&-filled":{...sb(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...tb(e)},...cb(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError}),...cb(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning}),...t}}),ub=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),pb=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}},...ub(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...ub(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${wn(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${wn(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${wn(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${wn(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${wn(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${wn(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}}),mb=(e,t)=>({background:e.colorBgContainer,borderWidth:`${wn(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),fb=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...mb(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),hb=(e,t)=>({"&-underlined":{...mb(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"},...fb(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...fb(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),gb=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:o,paddingInlineLG:r}=e;return{padding:`${wn(t)} ${wn(r)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:o}},vb=e=>({padding:`${wn(e.paddingBlockSM)} ${wn(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),bb=(e,t={})=>{return{position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${wn(e.paddingBlock)} ${wn(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...(n=e.colorTextPlaceholder,{"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:n,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),"&-lg":{...gb(e),...t.largeStyle},"&-sm":{...vb(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:"rtl"}};var n},yb=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:{...gb(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...vb(e)},[`&-lg ${n}-select-single`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${wn(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${wn(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${wn(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{backgroundColor:"inherit",border:`${wn(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},[`${n}-cascader-picker`]:{margin:`-9px ${wn(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0},"&:not(:first-child)":{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:{display:"block","&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'},[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{}}}}},wb=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:o,calc:r}=e,a=r(n).sub(r(o).mul(2)).sub(16).div(2).equal();return{[t]:{...Ea(e),...bb(e),...rb(e),...db(e),...lb(e),...hb(e),'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}}}},Cb=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${wn(e.inputAffixPadding)}`}}}},xb=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:o,motionDurationSlow:r,colorIcon:a,colorIconHover:i,iconCls:l}=e,s=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[s]:{...bb(e),display:"inline-flex","&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:o,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}},...Cb(e),[`${l}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${r}`,"&:hover":{color:i}}},[`${t}-underlined`]:{borderRadius:0},[c]:{[`${l}${t}-password-icon`]:{color:a,cursor:"not-allowed","&:hover":{color:a}}}}},$b=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:o}=e;return{[`${t}-group`]:{...Ea(e),...yb(e),"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:o}},...ib(e),...pb(e),[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}}},Sb=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Eb=Pa(["Input","Shared"],e=>{const t=wr(e,Qv(e));return[wb(t),xb(t)]},Jv,{resetFont:!1});var kb=Pa(["Input","Component"],e=>{const t=wr(e,Qv(e));return[$b(t),Sb(t),Gd(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},Jv,{resetFont:!1});function Nb(e,t,n){var o=(n||{}).atBegin;return function(e,t,n){var o,r=n||{},a=r.noTrailing,i=void 0!==a&&a,l=r.noLeading,s=void 0!==l&&l,c=r.debounceMode,d=void 0===c?void 0:c,u=!1,p=0;function m(){o&&clearTimeout(o)}function f(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];var l=this,c=Date.now()-p;function f(){p=Date.now(),t.apply(l,r)}function h(){o=void 0}u||(s||!d||o||f(),m(),void 0===d&&c>e?s?(p=Date.now(),i||(o=setTimeout(d?h:f,e))):f():!0!==i&&(o=setTimeout(d?h:f,void 0===d?e-c:e)))}return f.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;m(),u=!n},f}(e,t,{debounceMode:!1!==(void 0!==o&&o)})}function _b(e,t){return e[t]}function Ib(e,t){return`${e}-${t}`}function Pb(e,t){return null!=e?e:t}function Ob(e){const{title:t,_title:n,key:o,children:r}=e||{},a=t||"title";return{title:a,_title:n||[a],key:o||"key",children:r||"children"}}function Db(e){return function e(t){return st(t).map(t=>{if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return at(!t,"Tree/TreeNode can only accept TreeNode as children."),null;const{key:n}=t,{children:o,...r}=t.props,a={key:n,...r},i=e(o);return i.length&&(a.children=i),a}).filter(e=>e)}(e)}function Rb(e,t,n){const{_title:o,key:r,children:a}=Ob(n),i=new Set(!0===t?[]:t),l=[];return function e(n,s=null){return n.map((c,d)=>{const u=Ib(s?s.pos:"0",d),p=Pb(c[r],u);let m;for(let e=0;e<o.length;e+=1){const t=o[e];if(void 0!==c[t]){m=c[t];break}}const f=Object.assign(lt(c,[...o,r,a]),{title:m,key:p,parent:s,pos:u,children:null,data:c,isStart:[...s?s.isStart:[],0===d],isEnd:[...s?s.isEnd:[],d===n.length-1]});return l.push(f),!0===t||i.has(p)?f.children=e(c[a]||[],f):f.children=[],f})}(e),l}function Mb(e,{initWrapper:t,processEntity:n,onProcessFinished:o,externalGetKey:r,childrenPropName:a,fieldNames:i}={},l){const s=r||l,c={},d={};let u={posEntities:c,keyEntities:d};return t&&(u=t(u)||u),function(e,t,n){let o={};o="object"==typeof n?n:{externalGetKey:n},o=o||{};const{childrenPropName:r,externalGetKey:a,fieldNames:i}=o,{key:l,children:s}=Ob(i),c=r||s;let d;a?"string"==typeof a?d=e=>e[a]:"function"==typeof a&&(d=e=>a(e)):d=(e,t)=>Pb(e[l],t),function n(o,r,a,i){const l=o?o[c]:e,s=o?Ib(a.pos,r):"0",u=o?[...i,o]:[];if(o){const e=d(o,s),n={node:o,index:r,pos:s,key:e,parentPos:a.node?a.pos:null,level:a.level+1,nodes:u};t(n)}l&&l.forEach((e,t)=>{n(e,t,{node:o,pos:s,level:a?a.level+1:-1},u)})}(null)}(e,e=>{const{node:t,index:o,pos:r,key:a,parentPos:i,level:l,nodes:s}=e,p={node:t,nodes:s,index:o,key:a,pos:r,level:l},m=Pb(a,r);c[r]=p,d[m]=p,p.parent=c[i],p.parent&&(p.parent.children=p.parent.children||[],p.parent.children.push(p)),n&&n(p,u)},{externalGetKey:s,childrenPropName:a,fieldNames:i}),o&&o(u),u}function Bb(e,{expandedKeys:t,selectedKeys:n,loadedKeys:o,loadingKeys:r,checkedKeys:a,halfCheckedKeys:i,dragOverNodeKey:l,dropPosition:s,keyEntities:c}){const d=_b(c,e);return{eventKey:e,expanded:-1!==t.indexOf(e),selected:-1!==n.indexOf(e),loaded:-1!==o.indexOf(e),loading:-1!==r.indexOf(e),checked:-1!==a.indexOf(e),halfChecked:-1!==i.indexOf(e),pos:String(d?d.pos:""),dragOver:l===e&&0===s,dragOverGapTop:l===e&&-1===s,dragOverGapBottom:l===e&&1===s}}function Tb(e){const{data:t,expanded:n,selected:o,checked:r,loaded:a,loading:i,halfChecked:l,dragOver:s,dragOverGapTop:c,dragOverGapBottom:d,pos:u,active:p,eventKey:m}=e,f={...t,expanded:n,selected:o,checked:r,loaded:a,loading:i,halfChecked:l,dragOver:s,dragOverGapTop:c,dragOverGapBottom:d,pos:u,active:p,key:m};return"props"in f||Object.defineProperty(f,"props",{get:()=>(at(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e)}),f}function zb(e,t){const n=new Set;return e.forEach(e=>{t.has(e)||n.add(e)}),n}function Ab(e){const{disabled:t,disableCheckbox:n,checkable:o}=e||{};return!(!t&&!n)||!1===o}function Lb(e,t,n,o){const r=[];let a;a=o||Ab;const i=new Set(e.filter(e=>{const t=!!_b(n,e);return t||r.push(e),t})),l=new Map;let s,c=0;return Object.keys(n).forEach(e=>{const t=n[e],{level:o}=t;let r=l.get(o);r||(r=new Set,l.set(o,r)),r.add(t),c=Math.max(c,o)}),at(!r.length,`Tree missing follow keys: ${r.slice(0,100).map(e=>`'${e}'`).join(", ")}`),s=!0===t?function(e,t,n,o){const r=new Set(e),a=new Set;for(let e=0;e<=n;e+=1)(t.get(e)||new Set).forEach(e=>{const{key:t,node:n,children:a=[]}=e;r.has(t)&&!o(n)&&a.filter(e=>!o(e.node)).forEach(e=>{r.add(e.key)})});const i=new Set;for(let e=n;e>=0;e-=1)(t.get(e)||new Set).forEach(e=>{const{parent:t,node:n}=e;if(o(n)||!e.parent||i.has(e.parent.key))return;if(o(e.parent.node))return void i.add(t.key);let l=!0,s=!1;(t.children||[]).filter(e=>!o(e.node)).forEach(({key:e})=>{const t=r.has(e);l&&!t&&(l=!1),s||!t&&!a.has(e)||(s=!0)}),l&&r.add(t.key),s&&a.add(t.key),i.add(t.key)});return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(zb(a,r))}}(i,l,c,a):function(e,t,n,o,r){const a=new Set(e);let i=new Set(t);for(let e=0;e<=o;e+=1)(n.get(e)||new Set).forEach(e=>{const{key:t,node:n,children:o=[]}=e;a.has(t)||i.has(t)||r(n)||o.filter(e=>!r(e.node)).forEach(e=>{a.delete(e.key)})});i=new Set;const l=new Set;for(let e=o;e>=0;e-=1)(n.get(e)||new Set).forEach(e=>{const{parent:t,node:n}=e;if(r(n)||!e.parent||l.has(e.parent.key))return;if(r(e.parent.node))return void l.add(t.key);let o=!0,s=!1;(t.children||[]).filter(e=>!r(e.node)).forEach(({key:e})=>{const t=a.has(e);o&&!t&&(o=!1),s||!t&&!i.has(e)||(s=!0)}),o||a.delete(t.key),s&&i.add(t.key),l.add(t.key)});return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(zb(i,a))}}(i,t.halfCheckedKeys,l,c,a),s}function Hb(e,t){return(e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:{...Ea(e),display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[n]:{...Ea(e),display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}},[t]:{...Ea(e),position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:ka(e)},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${wn(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${wn(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}}},{[`\n ${n}:not(${n}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`\n ${n}-checked:not(${n}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{"&":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorPrimary}`}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]})(wr(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize}))}var Fb=Pa("Checkbox",(e,{prefixCls:t})=>[Hb(t,e)]);var jb=r.createContext(null);const Vb=(e,t)=>{const{prefixCls:n,className:r,rootClassName:a,children:i,indeterminate:l=!1,style:s,onMouseEnter:c,onMouseLeave:d,skipGroup:u=!1,disabled:p,classNames:m,styles:f,...h}=e,{getPrefixCls:g,direction:v,className:b,style:y,classNames:w,styles:C}=Vt("checkbox"),x=o.useContext(jb),{isFormItemInput:$}=o.useContext(ip),S=o.useContext(_s),E=(x?.disabled||p)??S,k={...e,indeterminate:l,disabled:E},[N,_]=ul([w,m],[C,f],{props:k}),I=o.useRef(h.value),P=o.useRef(null),O=je(t,P);if("production"!==process.env.NODE_ENV){const e=ht("Checkbox");"production"!==process.env.NODE_ENV&&e("checked"in h||!!x||!("value"in h),"usage","`value` is not a valid prop, do you mean `checked`?")}o.useEffect(()=>{x?.registerValue(h.value)},[]),o.useEffect(()=>{if(!u)return h.value!==I.current&&(x?.cancelValue(I.current),x?.registerValue(h.value),I.current=h.value),()=>x?.cancelValue(h.value)},[h.value]),o.useEffect(()=>{P.current?.input&&(P.current.input.indeterminate=l)},[l]);const D=g("checkbox",n),R=El(D),[M,B]=Fb(D,R),T={...h};x&&!u&&(T.onChange=(...e)=>{h.onChange&&h.onChange.apply(h,e),x.toggleOption&&x.toggleOption({label:i,value:h.value})},T.name=x.name,T.checked=x.value.includes(h.value));const z=ie(`${D}-wrapper`,{[`${D}-rtl`]:"rtl"===v,[`${D}-wrapper-checked`]:T.checked,[`${D}-wrapper-disabled`]:E,[`${D}-wrapper-in-form-item`]:$},b,r,N.root,a,B,R,M),A=ie(N.icon,{[`${D}-indeterminate`]:l},tc,M),[L,H]=Av(T.onClick);return o.createElement(sc,{component:"Checkbox",disabled:E},o.createElement("label",{className:z,style:{..._.root,...y,...s},onMouseEnter:c,onMouseLeave:d,onClick:L},o.createElement(zv,{...T,onClick:H,prefixCls:D,className:A,style:_.icon,disabled:E,ref:O}),ol(i)&&o.createElement("span",{className:ie(`${D}-label`,N.label),style:_.label},i)))},Wb=o.forwardRef(Vb);"production"!==process.env.NODE_ENV&&(Wb.displayName="Checkbox");var Kb=Wb;const qb=o.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:a=[],prefixCls:i,className:l,rootClassName:s,style:c,onChange:d,...u}=e,{getPrefixCls:p,direction:m}=o.useContext(Ft),[f,h]=o.useState(u.value||n||[]),[g,v]=o.useState([]);o.useEffect(()=>{"value"in u&&h(u.value||[])},[u.value]);const b=o.useMemo(()=>a.map(e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e),[a]),y=e=>{v(t=>t.filter(t=>t!==e))},w=e=>{v(t=>[].concat(Ot(t),[e]))},C=e=>{const t=f.indexOf(e.value),n=Ot(f);-1===t?n.push(e.value):n.splice(t,1),"value"in u||h(n),d?.(n.filter(e=>g.includes(e)).sort((e,t)=>b.findIndex(t=>t.value===e)-b.findIndex(e=>e.value===t)))},x=p("checkbox",i),$=`${x}-group`,S=El(x),[E,k]=Fb(x,S),N=lt(u,["value","disabled"]),_=a.length?b.map(e=>o.createElement(Kb,{prefixCls:x,key:e.value.toString(),disabled:"disabled"in e?e.disabled:u.disabled,value:e.value,checked:f.includes(e.value),onChange:e.onChange,className:ie(`${$}-item`,e.className),style:e.style,title:e.title,id:e.id,required:e.required},e.label)):r,I=o.useMemo(()=>({toggleOption:C,value:f,disabled:u.disabled,name:u.name,registerValue:w,cancelValue:y}),[C,f,u.disabled,u.name,w,y]),P=ie($,{[`${$}-rtl`]:"rtl"===m},l,s,k,S,E);return o.createElement("div",{className:P,style:c,...N,ref:t},o.createElement(jb.Provider,{value:I},_))});var Ub=qb;const Xb=Kb;Xb.Group=Ub,Xb.__ANT_CHECKBOX=!0,"production"!==process.env.NODE_ENV&&(Xb.displayName="Checkbox");var Gb=Xb,Yb={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};function Zb(){return Zb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Zb.apply(this,arguments)}const Qb=(e,t)=>o.createElement(Ga,Zb({},e,{ref:t,icon:Yb})),Jb=o.forwardRef(Qb);
|
|
21
|
-
/** */"production"!==process.env.NODE_ENV&&(Jb.displayName="CaretDownFilled");var ey=Jb,ty={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};function ny(){return ny=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ny.apply(this,arguments)}const oy=(e,t)=>o.createElement(Ga,ny({},e,{ref:t,icon:ty})),ry=o.forwardRef(oy);
|
|
22
|
-
/** */"production"!==process.env.NODE_ENV&&(ry.displayName="CaretDownOutlined");var ay=ry,iy={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};function ly(){return ly=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ly.apply(this,arguments)}const sy=(e,t)=>o.createElement(Ga,ly({},e,{ref:t,icon:iy})),cy=o.forwardRef(sy);
|
|
23
|
-
/** */"production"!==process.env.NODE_ENV&&(cy.displayName="CaretUpOutlined");var dy=cy,uy={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};function py(){return py=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},py.apply(this,arguments)}const my=(e,t)=>o.createElement(Ga,py({},e,{ref:t,icon:uy})),fy=o.forwardRef(my);
|
|
24
|
-
/** */"production"!==process.env.NODE_ENV&&(fy.displayName="DoubleLeftOutlined");var hy=fy,gy={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};function vy(){return vy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},vy.apply(this,arguments)}const by=(e,t)=>o.createElement(Ga,vy({},e,{ref:t,icon:gy})),yy=o.forwardRef(by);
|
|
25
|
-
/** */"production"!==process.env.NODE_ENV&&(yy.displayName="DoubleRightOutlined");var wy=yy,Cy={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};function xy(){return xy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},xy.apply(this,arguments)}const $y=(e,t)=>o.createElement(Ga,xy({},e,{ref:t,icon:Cy})),Sy=o.forwardRef($y);
|
|
26
|
-
/** */"production"!==process.env.NODE_ENV&&(Sy.displayName="FileOutlined");var Ey=Sy,ky={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};function Ny(){return Ny=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ny.apply(this,arguments)}const _y=(e,t)=>o.createElement(Ga,Ny({},e,{ref:t,icon:ky})),Iy=o.forwardRef(_y);
|
|
27
|
-
/** */"production"!==process.env.NODE_ENV&&(Iy.displayName="FilterFilled");var Py=Iy,Oy={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};function Dy(){return Dy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Dy.apply(this,arguments)}const Ry=(e,t)=>o.createElement(Ga,Dy({},e,{ref:t,icon:Oy})),My=o.forwardRef(Ry);
|
|
28
|
-
/** */"production"!==process.env.NODE_ENV&&(My.displayName="FolderOpenOutlined");var By=My,Ty={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};function zy(){return zy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},zy.apply(this,arguments)}const Ay=(e,t)=>o.createElement(Ga,zy({},e,{ref:t,icon:Ty})),Ly=o.forwardRef(Ay);
|
|
29
|
-
/** */"production"!==process.env.NODE_ENV&&(Ly.displayName="FolderOutlined");var Hy=Ly,Fy={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"};function jy(){return jy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},jy.apply(this,arguments)}const Vy=(e,t)=>o.createElement(Ga,jy({},e,{ref:t,icon:Fy})),Wy=o.forwardRef(Vy);
|
|
30
|
-
/** */"production"!==process.env.NODE_ENV&&(Wy.displayName="HolderOutlined");var Ky=Wy,qy={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};function Uy(){return Uy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Uy.apply(this,arguments)}const Xy=(e,t)=>o.createElement(Ga,Uy({},e,{ref:t,icon:qy})),Gy=o.forwardRef(Xy);
|
|
31
|
-
/** */"production"!==process.env.NODE_ENV&&(Gy.displayName="MinusSquareOutlined");var Yy=Gy,Zy={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};function Qy(){return Qy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Qy.apply(this,arguments)}const Jy=(e,t)=>o.createElement(Ga,Qy({},e,{ref:t,icon:Zy})),ew=o.forwardRef(Jy);
|
|
32
|
-
/** */"production"!==process.env.NODE_ENV&&(ew.displayName="PlusSquareOutlined");var tw=ew;const nw=e=>{const{componentCls:t,borderRadius:n,paddingSM:o,colorBorder:r,paddingXS:a,fontSizeLG:i,fontSizeSM:l,borderRadiusLG:s,borderRadiusSM:c,colorBgContainerDisabled:d,lineWidth:u}=e;return{[t]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:o,margin:0,borderWidth:u,borderStyle:"solid",borderRadius:n,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:i,borderRadius:s},"&-small":{paddingInline:a,borderRadius:c,fontSize:l},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0},"&-compact-item:not(:first-child)":{borderInlineStartWidth:0}},{"--space-addon-border-color":r,"--space-addon-background":d,"--space-addon-border-color-outlined":r,"--space-addon-background-filled":d,borderColor:"var(--space-addon-border-color)",background:"var(--space-addon-background)","&-variant-outlined":{"--space-addon-border-color":"var(--space-addon-border-color-outlined)"},"&-variant-filled":{"--space-addon-border-color":"transparent","--space-addon-background":"var(--space-addon-background-filled)",[`&${t}-disabled`]:{"--space-addon-border-color":r,"--space-addon-background":d}},"&-variant-borderless":{border:"none",background:"transparent"},"&-variant-underlined":{border:"none",background:"transparent"}},{"&-status-error":{"--space-addon-border-color-outlined":e.colorError,"--space-addon-background-filled":e.colorErrorBg,color:e.colorError},"&-status-warning":{"--space-addon-border-color-outlined":e.colorWarning,"--space-addon-background-filled":e.colorWarningBg,color:e.colorWarning}}]}};var ow=Pa(["Space","Addon"],e=>[nw(e),Gd(e,{focus:!1})]);const rw=r.forwardRef((e,t)=>{const{className:n,children:o,style:a,prefixCls:i,variant:l="outlined",disabled:s,status:c,...d}=e,{getPrefixCls:u,direction:p}=r.useContext(Ft),m=u("space-addon",i),[f,h]=ow(m),{compactItemClassnames:g,compactSize:v}=mc(m,p),b=ie(m,f,g,h,`${m}-variant-${l}`,Bm(m,c),{[`${m}-${v}`]:v,[`${m}-disabled`]:s},n);return r.createElement("div",{ref:t,className:b,style:a,...d},o)});var aw=rw;function iw(e,t,n){const o=t.cloneNode(!0),r=Object.create(e,{target:{value:o},currentTarget:{value:o}});return o.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(o.selectionStart=t.selectionStart,o.selectionEnd=t.selectionEnd),o.setSelectionRange=(...e)=>{t.setSelectionRange(...e)},r}function lw(e,t,n,o){if(!n)return;let r=t;return"click"===t.type?(r=iw(t,e,""),void n(r)):"file"!==e.type&&void 0!==o?(r=iw(t,e,o),void n(r)):void n(r)}function sw(){return sw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},sw.apply(this,arguments)}const cw=r.forwardRef((e,t)=>{const{inputElement:n,children:o,prefixCls:i,prefix:l,suffix:s,addonBefore:c,addonAfter:d,className:u,style:p,disabled:m,readOnly:f,focused:h,triggerFocus:g,allowClear:v,value:b,handleReset:w,hidden:C,classes:x,classNames:$,dataAttrs:S,styles:E,components:k,onClear:N}=e,_=o??n,I=k?.affixWrapper||"span",P=k?.groupWrapper||"span",O=k?.wrapper||"span",D=k?.groupAddon||"span",R=a(null),M=e=>{R.current?.contains(e.target)&&g?.()},B=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e);let T=y(_,{value:b,className:ie(_.props?.className,!B&&$?.variant)||null});const z=a(null);if(r.useImperativeHandle(t,()=>({nativeElement:z.current||R.current})),B){let e=null;if(v){const t=!m&&!f&&b,n=`${i}-clear-icon`,o="object"==typeof v&&v?.clearIcon?v.clearIcon:"✖";e=r.createElement("button",{type:"button",tabIndex:-1,onClick:e=>{w?.(e),N?.()},onMouseDown:e=>e.preventDefault(),className:ie(n,{[`${n}-hidden`]:!t,[`${n}-has-suffix`]:!!s})},o)}const t=`${i}-affix-wrapper`,n=ie(t,{[`${i}-disabled`]:m,[`${t}-disabled`]:m,[`${t}-focused`]:h,[`${t}-readonly`]:f,[`${t}-input-with-clear-btn`]:s&&v&&b},x?.affixWrapper,$?.affixWrapper,$?.variant),o=(s||v)&&r.createElement("span",{className:ie(`${i}-suffix`,$?.suffix),style:E?.suffix},e,s);T=r.createElement(I,sw({className:n,style:E?.affixWrapper,onClick:M},S?.affixWrapper,{ref:R}),l&&r.createElement("span",{className:ie(`${i}-prefix`,$?.prefix),style:E?.prefix},l),T,o)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(e)){const e=`${i}-group`,t=`${e}-addon`,n=`${e}-wrapper`,o=ie(`${i}-wrapper`,e,x?.wrapper,$?.wrapper),a=ie(n,{[`${n}-disabled`]:m},x?.group,$?.groupWrapper);T=r.createElement(P,{className:a,ref:z},r.createElement(O,{className:o},c&&r.createElement(D,{className:t},c),T,d&&r.createElement(D,{className:t},d)))}return r.cloneElement(T,{className:ie(T.props?.className,u)||null,style:{...T.props?.style,...p},hidden:C})});function dw(){return dw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},dw.apply(this,arguments)}const uw=b((e,t)=>{const{autoComplete:n,onChange:s,onFocus:c,onBlur:d,onPressEnter:u,onKeyDown:p,onKeyUp:m,prefixCls:f="rc-input",disabled:h,htmlSize:v,className:b,maxLength:y,suffix:w,showCount:C,count:x,type:$="text",classes:S,classNames:E,styles:k,onCompositionStart:N,onCompositionEnd:_,...I}=e,[P,O]=i(!1),D=a(!1),R=a(!1),M=a(null),B=a(null),T=e=>{M.current&&function(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(M.current,e)},[z,A]=_e(e.defaultValue,e.value),L=null==z?"":String(z),[H,F]=i(null),j=function(e,t){return o.useMemo(()=>{let n={};t&&(n.show="object"==typeof t&&t.formatter?t.formatter:!!t),n={...n,...e};const{show:o,...r}=n;return{...r,show:!!o,showFormatter:"function"==typeof o?o:void 0,strategy:r.strategy||(e=>e.length)}},[e,t])}(x,C),V=j.max||y,W=j.strategy(L),K=!!V&&W>V;g(t,()=>({focus:T,blur:()=>{M.current?.blur()},setSelectionRange:(e,t,n)=>{M.current?.setSelectionRange(e,t,n)},select:()=>{M.current?.select()},input:M.current,nativeElement:B.current?.nativeElement||M.current})),l(()=>{R.current&&(R.current=!1),O(e=>(!e||!h)&&e)},[h]);const q=(e,t,n)=>{let o=t;if(!D.current&&j.exceedFormatter&&j.max&&j.strategy(t)>j.max)o=j.exceedFormatter(t,{max:j.max}),t!==o&&F([M.current?.selectionStart||0,M.current?.selectionEnd||0]);else if("compositionEnd"===n.source)return;A(o),M.current&&lw(M.current,e,s,o)};l(()=>{H&&M.current?.setSelectionRange(...H)},[H]);const U=e=>{q(e,e.target.value,{source:"change"})},X=e=>{D.current=!1,q(e,e.currentTarget.value,{source:"compositionEnd"}),_?.(e)},G=e=>{!u||"Enter"!==e.key||R.current||e.nativeEvent.isComposing||(R.current=!0,u(e)),p?.(e)},Y=e=>{"Enter"===e.key&&(R.current=!1),m?.(e)},Z=e=>{O(!0),c?.(e)},Q=e=>{R.current&&(R.current=!1),O(!1),d?.(e)},J=K&&`${f}-out-of-range`;return r.createElement(cw,dw({},I,{prefixCls:f,className:ie(b,J),handleReset:e=>{A(""),T(),M.current&&lw(M.current,e,s)},value:L,focused:P,triggerFocus:T,suffix:(()=>{const e=Number(V)>0;if(w||j.show){const t=j.showFormatter?j.showFormatter({value:L,count:W,maxLength:V}):`${W}${e?` / ${V}`:""}`;return r.createElement(r.Fragment,null,j.show&&r.createElement("span",{className:ie(`${f}-show-count-suffix`,{[`${f}-show-count-has-suffix`]:!!w},E?.count),style:{...k?.count}},t),w)}return null})(),disabled:h,classes:S,classNames:E,styles:k,ref:B}),(()=>{const t=lt(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return r.createElement("input",dw({autoComplete:n},t,{onChange:U,onFocus:Z,onBlur:Q,onKeyDown:G,onKeyUp:Y,className:ie(f,{[`${f}-disabled`]:h},E?.input),style:k?.input,ref:M,size:v,type:$,onCompositionStart:e=>{D.current=!0,N?.(e)},onCompositionEnd:X}))})())});var pw=e=>{let t;return"object"==typeof e&&e?.clearIcon?t=e:e&&(t={clearIcon:r.createElement(ei,null)}),t};const mw=b((e,t)=>{const{prefixCls:n,bordered:o=!0,status:i,size:s,disabled:c,onBlur:d,onFocus:u,suffix:p,allowClear:f,addonAfter:h,addonBefore:g,className:v,style:b,styles:y,rootClassName:w,onChange:C,classNames:x,variant:$,...S}=e;if("production"!==process.env.NODE_ENV){const{deprecated:t}=ht("Input");[["bordered","variant"],["addonAfter","Space.Compact"],["addonBefore","Space.Compact"]].forEach(([n,o])=>{t(!(n in e),n,o)})}const{getPrefixCls:E,direction:k,allowClear:N,autoComplete:_,className:I,style:P,classNames:O,styles:D}=Vt("input"),R=E("input",n),M=a(null),B=El(R),[T,z]=Eb(R,w);kb(R,B);const{compactSize:A,compactItemClassnames:L}=mc(R,k),H=cc(e=>s??A??e),F=r.useContext(_s),j=c??F,V={...e,size:H,disabled:j},[W,K]=ul([O,x],[D,y],{props:V}),{status:q,hasFeedback:U,feedbackIcon:X}=m(ip),G=Tm(q,i),Y=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!U,Z=a(Y);if("production"!==process.env.NODE_ENV){const e=ht("Input");l(()=>{Y&&!Z.current&&"production"!==process.env.NODE_ENV&&e(document.activeElement===M.current?.input,"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),Z.current=Y},[Y])}const Q=function(e,t){const n=a([]),o=()=>{n.current.push(setTimeout(()=>{e.current?.input&&"password"===e.current?.input.getAttribute("type")&&e.current?.input.hasAttribute("value")&&e.current?.input.removeAttribute("value")}))};return l(()=>(t&&o(),()=>n.current.forEach(e=>{e&&clearTimeout(e)})),[]),o}(M,!0),J=(U||p)&&r.createElement(r.Fragment,null,p,U&&X),ee=pw(f??N),[te,ne]=Um("input",$,o);return r.createElement(uw,{ref:je(t,M),prefixCls:R,autoComplete:_,...S,disabled:j,onBlur:e=>{Q(),d?.(e)},onFocus:e=>{Q(),u?.(e)},style:{...K.root,...P,...b},styles:K,suffix:J,allowClear:ee,className:ie(v,w,z,B,L,I,W.root),onChange:e=>{Q(),C?.(e)},addonBefore:g&&r.createElement(cp,{form:!0,space:!0},g),addonAfter:h&&r.createElement(cp,{form:!0,space:!0},h),classNames:{...W,input:ie({[`${R}-sm`]:"small"===H,[`${R}-lg`]:"large"===H,[`${R}-rtl`]:"rtl"===k},W.input,T),variant:ie({[`${R}-${te}`]:ne},Bm(R,G)),affixWrapper:ie({[`${R}-affix-wrapper-sm`]:"small"===H,[`${R}-affix-wrapper-lg`]:"large"===H,[`${R}-affix-wrapper-rtl`]:"rtl"===k},T),wrapper:ie({[`${R}-group-rtl`]:"rtl"===k},T),groupWrapper:ie({[`${R}-group-wrapper-sm`]:"small"===H,[`${R}-group-wrapper-lg`]:"large"===H,[`${R}-group-wrapper-rtl`]:"rtl"===k,[`${R}-group-wrapper-${te}`]:ne},Bm(`${R}-group-wrapper`,G,U),T)}})});"production"!==process.env.NODE_ENV&&(mw.displayName="Input");var fw=mw;function hw(e){return["small","middle","large"].includes(e)}function gw(e){return!!e&&("number"==typeof e&&!Number.isNaN(e))}const vw=r.createContext({latestIndex:0}),bw=vw.Provider;var yw=e=>{const{className:t,prefix:n,index:r,children:a,separator:i,style:l,classNames:s,styles:c}=e,{latestIndex:d}=o.useContext(vw);return ol(a)?o.createElement(o.Fragment,null,o.createElement("div",{className:t,style:l},a),r<d&&i&&o.createElement("span",{className:ie(`${n}-item-separator`,s.separator),style:c.separator},i)):null};const ww=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},Cw=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}};var xw=Pa("Space",e=>{const t=wr(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[ww(t),Cw(t)]},()=>({}),{resetStyle:!1});const $w=o.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,size:a,className:i,style:l,classNames:s,styles:c}=Vt("space"),{size:d=a??"small",align:u,className:p,rootClassName:m,children:f,direction:h,orientation:g,prefixCls:v,split:b,separator:y,style:w,vertical:C,wrap:x=!1,classNames:$,styles:S,...E}=e,[k,N]=Array.isArray(d)?d:[d,d],_=hw(N),I=hw(k),P=gw(N),O=gw(k),D=st(f,{keepEmpty:!0}),[R,M]=ml(g,C,h),B=void 0!==u||M?u:"center",T=y??b,z=n("space",v),[A,L]=xw(z),H={...e,size:d,orientation:R,align:B},[F,j]=ul([s,$],[c,S],{props:H}),V=ie(z,i,A,`${z}-${R}`,{[`${z}-rtl`]:"rtl"===r,[`${z}-align-${B}`]:B,[`${z}-gap-row-${N}`]:_,[`${z}-gap-col-${k}`]:I},p,m,L,F.root),W=ie(`${z}-item`,F.item),K=D.map((e,t)=>{const n=e?.key||`${W}-${t}`;return o.createElement(yw,{prefix:z,classNames:F,styles:j,className:W,key:n,index:t,separator:T,style:j.item},e)});if("production"!==process.env.NODE_ENV){const t=ht("Space");[["direction","orientation"],["split","separator"]].forEach(([n,o])=>{t.deprecated(!(n in e),n,o)})}const q=o.useMemo(()=>({latestIndex:D.reduce((e,t,n)=>ol(t)?n:e,0)}),[D]);if(0===D.length)return null;const U={};return x&&(U.flexWrap="wrap"),!I&&O&&(U.columnGap=k),!_&&P&&(U.rowGap=N),o.createElement("div",{ref:t,className:V,style:{...U,...j.root,...l,...w},...E},o.createElement(bw,{value:q},K))}),Sw=$w;Sw.Compact=e=>{const{getPrefixCls:t,direction:n}=o.useContext(Ft),{size:r,direction:a,orientation:i,block:l,prefixCls:s,className:c,rootClassName:d,children:u,vertical:p,...m}=e;if("production"!==process.env.NODE_ENV){ht("Space.Compact").deprecated(!a,"direction","orientation")}const[f,h]=ml(i,p,a),g=cc(e=>r??e),v=t("space-compact",s),[b]=uc(v),y=ie(v,b,{[`${v}-rtl`]:"rtl"===n,[`${v}-block`]:l,[`${v}-vertical`]:h},c,d),w=o.useContext(pc),C=st(u),x=o.useMemo(()=>C.map((e,t)=>{const n=e?.key||`${v}-item-${t}`;return o.createElement(hc,{key:n,compactSize:g,compactDirection:f,isFirstItem:0===t&&(!w||w?.isFirstItem),isLastItem:t===C.length-1&&(!w||w?.isLastItem)},e)}),[C,w,f,g,v]);return 0===C.length?null:o.createElement("div",{className:y,...m},x)},Sw.Addon=aw,"production"!==process.env.NODE_ENV&&(Sw.displayName="Space");var Ew=Sw;const kw=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=o.useContext(Ft),{prefixCls:a,type:i="default",danger:l,disabled:s,loading:c,onClick:d,htmlType:u,children:p,className:m,menu:f,arrow:h,autoFocus:g,trigger:v,align:b,open:y,onOpenChange:w,placement:C,getPopupContainer:x,href:$,icon:S=o.createElement(Kg,null),title:E,buttonsRender:k=e=>e,mouseEnterDelay:N,mouseLeaveDelay:_,overlayClassName:I,overlayStyle:P,destroyOnHidden:O,destroyPopupOnHide:D,dropdownRender:R,popupRender:M,...B}=e,T=n("dropdown",a),z=`${T}-button`,A={menu:f,arrow:h,autoFocus:g,align:b,disabled:s,trigger:s?[]:v,onOpenChange:w,getPopupContainer:x||t,mouseEnterDelay:N,mouseLeaveDelay:_,classNames:{root:I},styles:{root:P},destroyOnHidden:O,popupRender:M||R},{compactSize:L,compactItemClassnames:H}=mc(T,r),F=ie(z,H,m);if("destroyPopupOnHide"in e&&(A.destroyPopupOnHide=D),"open"in e&&(A.open=y),A.placement="placement"in e?C:"rtl"===r?"bottomLeft":"bottomRight","production"!==process.env.NODE_ENV){ht("Dropdown.Button").deprecated(!1,"Dropdown.Button","Space.Compact + Dropdown + Button")}const j=o.createElement(ou,{type:i,danger:l,disabled:s,loading:c,onClick:d,htmlType:u,href:$,title:E},p),V=o.createElement(ou,{type:i,danger:l,icon:S}),[W,K]=k([j,V]);return o.createElement(Ew.Compact,{className:F,size:L,block:!0,...B},W,o.createElement(yv,{...A},K))};kw.__ANT_BUTTON=!0;var Nw=kw;const _w=yv;_w.Button=Nw;var Iw=_w;const Pw={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},Ow=[10,20,50,100],Dw=e=>{const{pageSizeOptions:t=Ow,locale:n,changeSize:o,pageSize:a,goButton:i,quickGo:l,rootPrefixCls:s,disabled:c,buildOptionText:d,showSizeChanger:u,sizeChangerRender:p}=e,[m,f]=r.useState(""),h=r.useMemo(()=>!m||Number.isNaN(m)?void 0:Number(m),[m]),g="function"==typeof d?d:e=>`${e} ${n.items_per_page}`,v=e=>{const t=e.target.value;/^\d*$/.test(t)&&f(t)},b=e=>{i||""===m||(f(""),e.relatedTarget&&(e.relatedTarget.className.includes(`${s}-item-link`)||e.relatedTarget.className.includes(`${s}-item`))||l?.(h))},y=e=>{""!==m&&(e.keyCode!==Fs.ENTER&&"click"!==e.type||(f(""),l?.(h)))},w=`${s}-options`;if(!u&&!l)return null;let C=null,x=null,$=null;return u&&p&&(C=p({disabled:c,size:a,onSizeChange:e=>{o?.(Number(e))},"aria-label":n.page_size,className:`${w}-size-changer`,options:(t.some(e=>e.toString()===a.toString())?t:t.concat([a]).sort((e,t)=>(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t)))).map(e=>({label:g(e),value:e}))})),l&&(i&&($="boolean"==typeof i?r.createElement("button",{type:"button",onClick:y,onKeyUp:y,disabled:c,className:`${w}-quick-jumper-button`},n.jump_to_confirm):r.createElement("span",{onClick:y,onKeyUp:y},i)),x=r.createElement("div",{className:`${w}-quick-jumper`},n.jump_to,r.createElement("input",{disabled:c,type:"text",value:m,onChange:v,onKeyUp:y,onBlur:b,"aria-label":n.page}),n.page,$)),r.createElement("li",{className:w},C,x)};"production"!==process.env.NODE_ENV&&(Dw.displayName="Options");const Rw=e=>{const{rootPrefixCls:t,page:n,active:o,className:a,style:i,showTitle:l,onClick:s,onKeyPress:c,itemRender:d}=e,u=`${t}-item`,p=ie(u,`${u}-${n}`,{[`${u}-active`]:o,[`${u}-disabled`]:!n},a),m=d(n,"page",r.createElement("a",{rel:"nofollow"},n));return m?r.createElement("li",{title:l?String(n):null,className:p,style:i,onClick:()=>{s(n)},onKeyDown:e=>{c(e,s,n)},tabIndex:0},m):null};function Mw(){return Mw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Mw.apply(this,arguments)}"production"!==process.env.NODE_ENV&&(Rw.displayName="Pager");const Bw=(e,t,n)=>n;function Tw(){}function zw(e){const t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Aw(e,t,n){const o=void 0===e?t:e;return Math.floor((n-1)/o)+1}const Lw=e=>{const{prefixCls:t="rc-pagination",selectPrefixCls:n="rc-select",className:o,classNames:a,styles:i,current:s,defaultCurrent:c=1,total:d=0,pageSize:u,defaultPageSize:p=10,onChange:m=Tw,hideOnSinglePage:f,align:h,showPrevNextJumpers:g=!0,showQuickJumper:v,showLessItems:b,showTitle:y=!0,onShowSizeChange:w=Tw,locale:C=Pw,style:x,totalBoundaryShowSizeChanger:$=50,disabled:S,simple:E,showTotal:k,showSizeChanger:N=d>$,sizeChangerRender:_,pageSizeOptions:I,itemRender:P=Bw,jumpPrevIcon:O,jumpNextIcon:D,prevIcon:R,nextIcon:M}=e,B=r.useRef(null),[T,z]=_e(p,u),[A,L]=_e(c,s),H=Math.max(1,Math.min(A,Aw(void 0,T,d))),[F,j]=r.useState(H);l(()=>{j(H)},[H]);const V=m!==Tw,W="current"in e;"production"!==process.env.NODE_ENV&&at(!W||V,"You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");const K=Math.max(1,H-(b?3:5)),q=Math.min(Aw(void 0,T,d),H+(b?3:5));function U(n,o){let a=n||r.createElement("button",{type:"button","aria-label":o,className:`${t}-item-link`});return"function"==typeof n&&(a=r.createElement(n,e)),a}function X(e){const t=e.target.value,n=Aw(void 0,T,d);let o;return o=""===t?t:Number.isNaN(Number(t))?F:t>=n?n:Number(t),o}const G=d>T&&v;function Y(e){const t=X(e);switch(t!==F&&j(t),e.keyCode){case Fs.ENTER:Z(t);break;case Fs.UP:Z(t-1);break;case Fs.DOWN:Z(t+1)}}function Z(e){if(function(e){return zw(e)&&e!==H&&zw(d)&&d>0}(e)&&!S){const t=Aw(void 0,T,d);let n=e;return e>t?n=t:e<1&&(n=1),n!==F&&j(n),L(n),m?.(n,T),n}return H}const Q=H>1,J=H<Aw(void 0,T,d);function ee(){Q&&Z(H-1)}function te(){J&&Z(H+1)}function ne(){Z(K)}function oe(){Z(q)}function re(e,t,...n){"Enter"!==e.key&&e.charCode!==Fs.ENTER&&e.keyCode!==Fs.ENTER||t(...n)}function ae(e){"click"!==e.type&&e.keyCode!==Fs.ENTER||Z(F)}let le=null;const se=Li(e,{aria:!0,data:!0}),ce=k&&r.createElement("li",{className:`${t}-total-text`},k(d,[0===d?0:(H-1)*T+1,H*T>d?d:H*T]));let de=null;const ue=Aw(void 0,T,d);if(f&&d<=T)return null;const pe=[],me={rootPrefixCls:t,onClick:Z,onKeyPress:re,showTitle:y,itemRender:P,page:-1,className:a?.item,style:i?.item},fe=H-1>0?H-1:0,he=H+1<ue?H+1:ue,ge=v&&v.goButton,ve="object"==typeof E?E.readOnly:!E;let be=ge,ye=null;E&&(ge&&(be="boolean"==typeof ge?r.createElement("button",{type:"button",onClick:ae,onKeyUp:ae},C.jump_to_confirm):r.createElement("span",{onClick:ae,onKeyUp:ae},ge),be=r.createElement("li",{title:y?`${C.jump_to}${H}/${ue}`:null,className:`${t}-simple-pager`},be)),ye=r.createElement("li",{title:y?`${H}/${ue}`:null,className:ie(`${t}-simple-pager`,a?.item),style:i?.item},ve?F:r.createElement("input",{type:"text","aria-label":C.jump_to,value:F,disabled:S,onKeyDown:function(e){e.keyCode!==Fs.UP&&e.keyCode!==Fs.DOWN||e.preventDefault()},onKeyUp:Y,onChange:Y,onBlur:function(e){Z(X(e))},size:3}),r.createElement("span",{className:`${t}-slash`},"/"),ue));const we=b?1:2;if(ue<=3+2*we){ue||pe.push(r.createElement(Rw,Mw({},me,{key:"noPager",page:1,className:`${t}-item-disabled`})));for(let e=1;e<=ue;e+=1)pe.push(r.createElement(Rw,Mw({},me,{key:e,page:e,active:H===e})))}else{const e=b?C.prev_3:C.prev_5,n=b?C.next_3:C.next_5,o=P(K,"jump-prev",U(O,"prev page")),a=P(q,"jump-next",U(D,"next page"));g&&(le=o?r.createElement("li",{title:y?e:null,key:"prev",onClick:ne,tabIndex:0,onKeyDown:function(e){re(e,ne)},className:ie(`${t}-jump-prev`,{[`${t}-jump-prev-custom-icon`]:!!O})},o):null,de=a?r.createElement("li",{title:y?n:null,key:"next",onClick:oe,tabIndex:0,onKeyDown:function(e){re(e,oe)},className:ie(`${t}-jump-next`,{[`${t}-jump-next-custom-icon`]:!!D})},a):null);let i=Math.max(1,H-we),l=Math.min(H+we,ue);H-1<=we&&(l=1+2*we),ue-H<=we&&(i=ue-2*we);for(let e=i;e<=l;e+=1)pe.push(r.createElement(Rw,Mw({},me,{key:e,page:e,active:H===e})));if(H-1>=2*we&&3!==H&&(pe[0]=r.cloneElement(pe[0],{className:ie(`${t}-item-after-jump-prev`,pe[0].props.className)}),pe.unshift(le)),ue-H>=2*we&&H!==ue-2){const e=pe[pe.length-1];pe[pe.length-1]=r.cloneElement(e,{className:ie(`${t}-item-before-jump-next`,e.props.className)}),pe.push(de)}1!==i&&pe.unshift(r.createElement(Rw,Mw({},me,{key:1,page:1}))),l!==ue&&pe.push(r.createElement(Rw,Mw({},me,{key:ue,page:ue})))}let Ce=function(e){const t=P(e,"prev",U(R,"prev page"));return r.isValidElement(t)?r.cloneElement(t,{disabled:!Q}):t}(fe);if(Ce){const e=!Q||!ue;Ce=r.createElement("li",{title:y?C.prev_page:null,onClick:ee,tabIndex:e?null:0,onKeyDown:function(e){re(e,ee)},className:ie(`${t}-prev`,a?.item,{[`${t}-disabled`]:e}),style:i?.item,"aria-disabled":e},Ce)}let xe=function(e){const t=P(e,"next",U(M,"next page"));return r.isValidElement(t)?r.cloneElement(t,{disabled:!J}):t}(he);if(xe){let e,n;E?(e=!J,n=Q?0:null):(e=!J||!ue,n=e?null:0),xe=r.createElement("li",{title:y?C.next_page:null,onClick:te,tabIndex:n,onKeyDown:function(e){re(e,te)},className:ie(`${t}-next`,a?.item,{[`${t}-disabled`]:e}),style:i?.item,"aria-disabled":e},xe)}const $e=ie(t,o,{[`${t}-start`]:"start"===h,[`${t}-center`]:"center"===h,[`${t}-end`]:"end"===h,[`${t}-simple`]:E,[`${t}-disabled`]:S});return r.createElement("ul",Mw({className:$e,style:x,ref:B},se),ce,Ce,E?ye:pe,xe,r.createElement(Dw,{locale:C,rootPrefixCls:t,disabled:S,selectPrefixCls:n,changeSize:function(e){const t=Aw(e,T,d),n=H>t&&0!==t?t:H;z(e),j(n),w?.(H,e),L(n),m?.(n,e)},pageSize:T,pageSizeOptions:I,quickGo:G?Z:null,goButton:be,showSizeChanger:N,sizeChangerRender:_}))};"production"!==process.env.NODE_ENV&&(Lw.displayName="Pagination");const Hw=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},Fw=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:wn(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:wn(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:wn(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`\n &${t}-mini ${t}-prev ${t}-item-link,\n &${t}-mini ${t}-next ${t}-item-link\n `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:wn(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:wn(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:wn(e.itemSizeSM),input:{...vb(e),width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM}}}}},jw=e=>{const{componentCls:t}=e;return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSize,lineHeight:wn(e.itemSize),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSize,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSize,lineHeight:wn(e.itemSize)}}},[`${t}-simple-pager`]:{display:"inline-flex",alignItems:"center",height:e.itemSize,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",width:e.quickJumperInputWidth,padding:`0 ${wn(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${wn(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${wn(e.inputOutlineOffset)} 0 ${wn(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}},[`&${t}-mini`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSizeSM,lineHeight:wn(e.itemSizeSM),[`${t}-item-link`]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:wn(e.itemSizeSM)}}},[`${t}-simple-pager`]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},Vw=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`\n ${t}-prev,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{marginInlineEnd:e.marginXS},[`\n ${t}-prev,\n ${t}-next,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:wn(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${wn(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:wn(e.controlHeight),verticalAlign:"top",input:{...bb(e),...nb(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...tb(e)},width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS}}}}},Ww=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:wn(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${wn(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${wn(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},Kw=e=>{const{componentCls:t}=e;return{[t]:{...Ea(e),display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:wn(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"},...Ww(e),...Vw(e),...jw(e),...Fw(e),...Hw(e),[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},qw=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...Na(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...ka(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:ka(e)}}}},Uw=e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0,...Jv(e)}),Xw=e=>wr(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Qv(e));var Gw=Pa("Pagination",e=>{const t=Xw(e);return[Kw(t),qw(t)]},Uw);var Yw=Da(["Pagination","bordered"],e=>(e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${wn(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}})(Xw(e)),Uw);function Zw(e){return c(()=>"boolean"==typeof e?[e,{}]:e&&"object"==typeof e?[!0,e]:[void 0,void 0],[e])}const Qw=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:a,rootClassName:i,style:l,size:s,locale:c,responsive:d,showSizeChanger:u,selectComponentClass:p,pageSizeOptions:m,styles:f,classNames:h,...g}=e,{xs:v}=_f(d),[,b]=$a(),{getPrefixCls:y,direction:w,showSizeChanger:C,className:x,style:$,classNames:S,styles:E}=Vt("pagination"),k=y("pagination",n),[N,_]=Gw(k),I=cc(s),P="small"===I||!(!v||I||!d),O={...e,size:I},[D,R]=ul([S,h],[E,f],{props:O}),[M]=Qi("Pagination",Hi),B={...M,...c},[T,z]=Zw(u),[A,L]=Zw(C),H=T??A,F=z??L,j=p||Ef,V=o.useMemo(()=>m?m.map(e=>Number(e)):void 0,[m]);if("production"!==process.env.NODE_ENV){const e=ht("Pagination");"production"!==process.env.NODE_ENV&&e(!p,"usage","`selectComponentClass` is not official api which will be removed.")}const W=o.useMemo(()=>{const e=o.createElement("span",{className:`${k}-item-ellipsis`},"•••");return{prevIcon:o.createElement("button",{className:`${k}-item-link`,type:"button",tabIndex:-1},"rtl"===w?o.createElement(td,null):o.createElement(ih,null)),nextIcon:o.createElement("button",{className:`${k}-item-link`,type:"button",tabIndex:-1},"rtl"===w?o.createElement(ih,null):o.createElement(td,null)),jumpPrevIcon:o.createElement("a",{className:`${k}-item-link`},o.createElement("div",{className:`${k}-item-container`},"rtl"===w?o.createElement(wy,{className:`${k}-item-link-icon`}):o.createElement(hy,{className:`${k}-item-link-icon`}),e)),jumpNextIcon:o.createElement("a",{className:`${k}-item-link`},o.createElement("div",{className:`${k}-item-container`},"rtl"===w?o.createElement(hy,{className:`${k}-item-link-icon`}):o.createElement(wy,{className:`${k}-item-link-icon`}),e))}},[w,k]),K=y("select",r),q=ie({[`${k}-${t}`]:!!t,[`${k}-mini`]:P,[`${k}-rtl`]:"rtl"===w,[`${k}-bordered`]:b.wireframe},x,a,i,D.root,N,_),U={...R.root,...$,...l};return o.createElement(o.Fragment,null,b.wireframe&&o.createElement(Yw,{prefixCls:k}),o.createElement(Lw,{...W,...g,styles:R,classNames:D,style:U,prefixCls:k,selectPrefixCls:K,className:q,locale:B,pageSizeOptions:V,showSizeChanger:H,sizeChangerRender:e=>{const{disabled:t,size:n,onSizeChange:r,"aria-label":a,className:i,options:l}=e,{className:s,onChange:c}=F||{},d=l.find(e=>String(e.value)===String(n))?.value;return o.createElement(j,{disabled:t,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":a,options:l,...F,value:d,onChange:(e,t)=>{r?.(e),c?.(e,t)},size:P?"small":"middle",className:ie(i,s)})}}))};"production"!==process.env.NODE_ENV&&(Qw.displayName="Pagination");var Jw=Qw;const eC=80*Math.PI,tC=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return o.createElement("circle",{className:ie(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:40,cx:50,cy:50,strokeWidth:20,style:n})};var nC=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,a=`${r}-hidden`,[i,l]=o.useState(!1);ke(()=>{0!==e&&l(!0)},[0!==e]);const s=Math.max(Math.min(e,100),0);if(!i)return null;const c={strokeDashoffset:""+eC/4,strokeDasharray:`${eC*s/100} ${eC*(100-s)/100}`};return o.createElement("span",{className:ie(r,`${n}-progress`,s<=0&&a)},o.createElement("svg",{viewBox:"0 0 100 100",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},o.createElement(tC,{dotClassName:n,hasCircleCls:!0}),o.createElement(tC,{dotClassName:n,style:c})))};function oC(e){const{prefixCls:t,percent:n=0,className:r,style:a}=e,i=`${t}-dot`,l=`${i}-holder`,s=`${l}-hidden`;return o.createElement(o.Fragment,null,o.createElement("span",{className:ie(l,r,n>0&&s),style:a},o.createElement("span",{className:ie(i,`${t}-dot-spin`)},[1,2,3,4].map(e=>o.createElement("i",{className:`${t}-dot-item`,key:e})))),o.createElement(nC,{prefixCls:t,percent:n}))}function rC(e){const{prefixCls:t,indicator:n,percent:r,className:a,style:i}=e,l=`${t}-dot`;return n&&o.isValidElement(n)?xl(n,e=>({className:ie(e.className,l,a),style:{...e.style,...i},percent:r})):o.createElement(oC,{prefixCls:t,percent:r,className:a,style:i})}const aC=new Uo("antSpinMove",{to:{opacity:1}}),iC=new Uo("antRotate",{to:{transform:"rotate(405deg)"}});var lC=Pa("Spin",e=>(e=>{const{componentCls:t,calc:n}=e;return{[t]:{...Ea(e),position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:aC,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:iC,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(t=>`${t} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}}}})(wr(e,{spinDotDefault:e.colorTextDescription})),e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:n}});const sC=[[30,.05],[70,.03],[96,.01]];let cC;const dC=e=>{const{prefixCls:t,spinning:n=!0,delay:r=0,className:a,rootClassName:i,size:l="default",tip:s,wrapperClassName:c,style:d,children:u,fullscreen:p=!1,indicator:m,percent:f,classNames:h,styles:g,...v}=e,{getPrefixCls:b,direction:y,indicator:w,className:C,style:x,classNames:$,styles:S}=Vt("spin"),E=b("spin",t),[k,N]=lC(E),[_,I]=o.useState(()=>n&&!function(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}(n,r)),P=function(e,t){const[n,r]=o.useState(0),a=o.useRef(null),i="auto"===t;return o.useEffect(()=>(i&&e&&(r(0),a.current=setInterval(()=>{r(e=>{const t=100-e;for(let n=0;n<sC.length;n+=1){const[o,r]=sC[n];if(e<=o)return e+t*r}return e})},200)),()=>{a.current&&(clearInterval(a.current),a.current=null)}),[i,e]),i?n:t}(_,f);o.useEffect(()=>{if(n){const e=Nb(r,()=>{I(!0)});return e(),()=>{e?.cancel?.()}}I(!1)},[r,n]);const O=o.useMemo(()=>void 0!==u&&!p,[u,p]),D={...e,size:l,spinning:_,tip:s,fullscreen:p,children:u,percent:P},[R,M]=ul([$,h],[S,g],{props:D});if("production"!==process.env.NODE_ENV){const e=ht("Spin");"production"!==process.env.NODE_ENV&&e(!s||O||p,"usage","`tip` only work in nest or fullscreen pattern.")}const B=ie(E,C,{[`${E}-sm`]:"small"===l,[`${E}-lg`]:"large"===l,[`${E}-spinning`]:_,[`${E}-show-text`]:!!s,[`${E}-rtl`]:"rtl"===y},a,!p&&i,!p&&R.root,k,N),T=ie(`${E}-container`,{[`${E}-blur`]:_}),z=m??w??cC,A={...x,...d},L=o.createElement("div",{...v,style:p?A:{...M.root,...A},className:B,"aria-live":"polite","aria-busy":_},o.createElement(rC,{className:R.indicator,style:M.indicator,prefixCls:E,indicator:z,percent:P}),s&&(O||p)?o.createElement("div",{className:ie(`${E}-text`,R.tip),style:M.tip},s):null);return O?o.createElement("div",{...v,className:ie(`${E}-nested-loading`,c,R.wrapper,k,N),style:M.wrapper},_&&o.createElement("div",{key:"loading"},L),o.createElement("div",{className:T,key:"container"},u)):p?o.createElement("div",{className:ie(`${E}-fullscreen`,{[`${E}-fullscreen-show`]:_},i,k,N,R.mask),style:M.mask},L):L};dC.setDefaultIndicator=e=>{cC=e},"production"!==process.env.NODE_ENV&&(dC.displayName="Spin");var uC=dC;const pC={},mC="rc-table-internal-hook";function fC(e){const t=o.createContext(void 0);return{Context:t,Provider:({value:e,children:n})=>{const r=o.useRef(e);r.current=e;const[a]=o.useState(()=>({getValue:()=>r.current,listeners:new Set}));return ke(()=>{E(()=>{a.listeners.forEach(t=>{t(e)})})},[e]),o.createElement(t.Provider,{value:a},n)},defaultValue:e}}function hC(e,t){const n=$e("function"==typeof t?t:e=>{if(void 0===t)return e;if(!Array.isArray(t))return e[t];const n={};return t.forEach(t=>{n[t]=e[t]}),n}),r=o.useContext(e?.Context),{listeners:a,getValue:i}=r||{},l=o.useRef();l.current=n(r?i():e?.defaultValue);const[,s]=o.useState({});return ke(()=>{if(r)return a.add(e),()=>{a.delete(e)};function e(e){const t=n(e);tn(l.current,t,!0)||s({})}},[r]),l.current}function gC(){return gC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},gC.apply(this,arguments)}const{makeImmutable:vC,responseImmutable:bC,useImmutableMark:yC}=function(){const e=o.createContext(null);function t(){return o.useContext(e)}return{makeImmutable:function(n,r){const a=We(n),i=(i,l)=>{const s=a?{ref:l}:{},c=o.useRef(0),d=o.useRef(i);return null!==t()?o.createElement(n,gC({},i,s)):(r&&!r(d.current,i)||(c.current+=1),d.current=i,o.createElement(e.Provider,{value:c.current},o.createElement(n,gC({},i,s))))};return"production"!==process.env.NODE_ENV&&(i.displayName=`ImmutableRoot(${n.displayName||n.name})`),a?o.forwardRef(i):i},responseImmutable:function(e,n){const r=We(e),a=(n,a)=>{const i=r?{ref:a}:{};return t(),o.createElement(e,gC({},n,i))};return"production"!==process.env.NODE_ENV&&(a.displayName=`ImmutableResponse(${e.displayName||e.name})`),o.memo(r?o.forwardRef(a):a,n)},useImmutableMark:t}}(),wC=fC();function CC(e,t){const n=o.useRef(0);n.current+=1;const r=o.useRef(e),a=[];Object.keys(e||{}).map(t=>{e?.[t]!==r.current?.[t]&&a.push(t)}),r.current=e;const i=o.useRef([]);return a.length&&(i.current=a),o.useDebugValue(n.current),o.useDebugValue(i.current.join(", ")),n.current}var xC="production"!==process.env.NODE_ENV?CC:()=>{};const $C=o.memo(()=>{const e=CC();return o.createElement("h1",null,"Render Times: ",e)});"production"!==process.env.NODE_ENV&&($C.displayName="RenderBlock");const SC=o.createContext({renderWithProps:!1});function EC(e){const t=[],n={};return e.forEach(e=>{const{key:o,dataIndex:r}=e||{};let a=o||(i=r,null==i?[]:Array.isArray(i)?i:[i]).join("-")||"RC_TABLE_KEY";for(var i;n[a];)a=`${a}_next`;n[a]=!0,t.push(a)}),t}function kC(e){return null!=e}function NC(e,t,n,r,a,i){const l=o.useContext(SC),s=Be(()=>{if(kC(r))return[r];const i=null==t||""===t?[]:Array.isArray(t)?t:[t],s=Ue(e,i);let c,d=s;if(a){const t=a(s,e,n);!(u=t)||"object"!=typeof u||Array.isArray(u)||o.isValidElement(u)?d=t:("production"!==process.env.NODE_ENV&&at(!1,"`columns.render` return cell props is deprecated with perf issue, please use `onCell` instead."),d=t.children,c=t.props,l.renderWithProps=!0)}var u;return[d,c]},[yC(),e,r,t,a,n],(e,t)=>{if(i){const[,n]=e,[,o]=t;return i(o,n)}return!!l.renderWithProps||!tn(e,t,!0)});return s}function _C(){return _C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},_C.apply(this,arguments)}const IC=e=>{"production"!==process.env.NODE_ENV&&xC(e);const{component:t,children:n,ellipsis:r,scope:a,prefixCls:i,className:l,style:s,align:c,record:d,render:u,dataIndex:p,renderIndex:m,shouldCellUpdate:f,index:h,rowType:g,colSpan:v,rowSpan:b,fixStart:y,fixEnd:w,fixedStartShadow:C,fixedEndShadow:x,offsetFixedStartShadow:$,offsetFixedEndShadow:S,zIndex:E,zIndexReverse:k,appendNode:N,additionalProps:_={},isSticky:I}=e,P=`${i}-cell`,{allColumnsFixedLeft:O,rowHoverable:D}=hC(wC,["allColumnsFixedLeft","rowHoverable"]),[R,M]=NC(d,p,m,n,u,f),B={},T="number"==typeof y&&!O,z="number"==typeof w&&!O,[A,L]=hC(wC,({scrollInfo:e})=>{if(!T&&!z)return[!1,!1];const[t,n]=e;return[(T&&C&&t)-$>=1,(z&&x&&n-t)-S>1]});T&&(B.insetInlineStart=y,B["--z-offset"]=E,B["--z-offset-reverse"]=k),z&&(B.insetInlineEnd=w,B["--z-offset"]=E,B["--z-offset-reverse"]=k);const H=M?.colSpan??_.colSpan??v??1,F=M?.rowSpan??_.rowSpan??b??1,[j,V]=function(e,t){return hC(wC,n=>{var o,r,a,i;return[(o=e,r=t||1,a=n.hoverStartRow,i=n.hoverEndRow,o<=i&&o+r-1>=a),n.onHover]})}(h,F),W=$e(e=>{d&&V(h,h+F-1),_?.onMouseEnter?.(e)}),K=$e(e=>{d&&V(-1,-1),_?.onMouseLeave?.(e)});if(0===H||0===F)return null;const q=_.title??(({ellipsis:e,rowType:t,children:n})=>{let r;const a=!0===e?{showTitle:!0}:e;return a&&(a.showTitle||"header"===t)&&("string"==typeof n||"number"==typeof n?r=n.toString():o.isValidElement(n)&&"string"==typeof n.props?.children&&(r=n.props?.children)),r})({rowType:g,ellipsis:r,children:R}),U=ie(P,l,{[`${P}-fix`]:T||z,[`${P}-fix-start`]:T,[`${P}-fix-end`]:z,[`${P}-fix-start-shadow`]:C,[`${P}-fix-start-shadow-show`]:C&&A,[`${P}-fix-end-shadow`]:x,[`${P}-fix-end-shadow-show`]:x&&L,[`${P}-ellipsis`]:r,[`${P}-with-append`]:N,[`${P}-fix-sticky`]:(T||z)&&I,[`${P}-row-hover`]:!M&&j},_.className,M?.className),X={};c&&(X.textAlign=c);const G={...M?.style,...B,...X,..._.style,...s};let Y=R;return"object"!=typeof Y||Array.isArray(Y)||o.isValidElement(Y)||(Y=null),r&&(C||x)&&(Y=o.createElement("span",{className:`${P}-content`},Y)),o.createElement(t,_C({},M,_,{className:U,style:G,title:q,scope:a,onMouseEnter:D?W:void 0,onMouseLeave:D?K:void 0,colSpan:1!==H?H:null,rowSpan:1!==F?F:null}),N,Y)};var PC=o.memo(IC);function OC(e){return"start"===e.fixed}function DC(e){return"end"===e.fixed}function RC(e,t,n,o){const r=n[e]||{},a=n[t]||{};let i=null,l=null;OC(r)&&OC(a)?i=o.start[e]:DC(a)&&DC(r)&&(l=o.end[t]);let s=!1,c=!1,d=0,u=0;null!==i&&(s=!n[t+1]||!OC(n[t+1]),d=2*n.length-e,u=n.length+e),null!==l&&(c=!n[e-1]||!DC(n[e-1]),d=t,u=n.length-t);let p=0,m=0;if(s)for(let t=0;t<e;t+=1)OC(n[t])||(p+=o.widths[t]||0);if(c)for(let e=n.length-1;e>t;e-=1)DC(n[e])||(m+=o.widths[e]||0);return{fixStart:i,fixEnd:l,fixedStartShadow:s,fixedEndShadow:c,offsetFixedStartShadow:p,offsetFixedEndShadow:m,isSticky:o.isSticky,zIndex:d,zIndexReverse:u}}const MC=o.createContext({});function BC(){return BC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},BC.apply(this,arguments)}const TC=e=>{const{children:t}=e;return t};TC.Row=e=>{const{children:t,...n}=e;return o.createElement("tr",n,t)},TC.Cell=e=>{const{className:t,index:n,children:r,colSpan:a=1,rowSpan:i,align:l}=e,{prefixCls:s}=hC(wC,["prefixCls"]),{scrollColumnIndex:c,stickyOffsets:d,flattenColumns:u}=o.useContext(MC),p=n+a-1+1===c?a+1:a,m=o.useMemo(()=>RC(n,n+p-1,u,d),[n,p,u,d]);return o.createElement(PC,BC({className:t,index:n,component:"td",prefixCls:s,record:null,dataIndex:null,align:l,colSpan:p,rowSpan:i,render:()=>r},m))};var zC=bC(e=>{"production"!==process.env.NODE_ENV&&xC(e);const{children:t,stickyOffsets:n,flattenColumns:r}=e,a=hC(wC,"prefixCls"),i=r.length-1,l=r[i],s=o.useMemo(()=>({stickyOffsets:n,flattenColumns:r,scrollColumnIndex:l?.scrollbar?i:null}),[l,r,i,n]);return o.createElement(MC.Provider,{value:s},o.createElement("tfoot",{className:`${a}-summary`},t))});const AC=TC;function LC(e,t,n,o,r,a,i){const l=a(t,i);e.push({record:t,indent:n,index:i,rowKey:l});const s=r?.has(l);if(t&&Array.isArray(t[o])&&s)for(let i=0;i<t[o].length;i+=1)LC(e,t[o][i],n+1,o,r,a,i)}function HC(e,t,n,r){return o.useMemo(()=>{if(n?.size){const o=[];for(let a=0;a<e?.length;a+=1){LC(o,e[a],0,t,n,r,a)}return o}return e?.map((e,t)=>({record:e,indent:0,index:t,rowKey:r(e,t)}))},[e,t,n,r])}function FC(e,t,n,o){const r=hC(wC,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),{flattenColumns:a,expandableType:i,expandedKeys:l,childrenColumnName:s,onTriggerExpand:c,rowExpandable:d,onRow:u,expandRowByClick:p,rowClassName:m}=r,f="nest"===i,h="row"===i&&(!d||d(e)),g=h||f,v=l&&l.has(t),b=s&&e&&e[s],y=$e(c),w=u?.(e,n),C=w?.onClick;let x;"string"==typeof m?x=m:"function"==typeof m&&(x=m(e,n,o));const $=EC(a);return{...r,columnsKey:$,nestExpandable:f,expanded:v,hasNestChildren:b,record:e,onTriggerExpand:y,rowSupportExpand:h,expandable:g,rowProps:{...w,className:ie(x,w?.className),onClick:(t,...n)=>{p&&g&&c(e,t),C?.(t,...n)}}}}const jC=e=>{"production"!==process.env.NODE_ENV&&xC(e);const{prefixCls:t,children:n,component:r,cellComponent:a,className:i,expanded:l,colSpan:s,isEmpty:c,stickyOffset:d=0}=e,{scrollbarSize:u,fixHeader:p,fixColumn:m,componentWidth:f,horizonScroll:h}=hC(wC,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]);let g=n;return(c?h&&f:m)&&(g=o.createElement("div",{style:{width:f-d-(p&&!c?u:0),position:"sticky",left:d,overflow:"hidden"},className:`${t}-expanded-row-fixed`},g)),o.createElement(r,{className:i,style:{display:l?null:"none"}},o.createElement(PC,{component:a,prefixCls:t,colSpan:s},g))};function VC({prefixCls:e,record:t,onExpand:n,expanded:r,expandable:a}){const i=`${e}-row-expand-icon`;if(!a)return o.createElement("span",{className:ie(i,`${e}-row-spaced`)});return o.createElement("span",{className:ie(i,{[`${e}-row-expanded`]:r,[`${e}-row-collapsed`]:!r}),onClick:e=>{n(t,e),e.stopPropagation()}})}function WC(e,t,n,o){return"string"==typeof e?e:"function"==typeof e?e(t,n,o):""}function KC(){return KC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},KC.apply(this,arguments)}function qC(e,t,n,r,a,i=[],l=0){const{record:s,prefixCls:c,columnsKey:d,fixedInfoList:u,expandIconColumnIndex:p,nestExpandable:m,indentSize:f,expandIcon:h,expanded:g,hasNestChildren:v,onTriggerExpand:b,expandable:y,expandedKeys:w}=e,C=d[n],x=u[n];let $;n===(p||0)&&m&&($=o.createElement(o.Fragment,null,o.createElement("span",{style:{paddingLeft:f*r+"px"},className:`${c}-row-indent indent-level-${r}`}),h({prefixCls:c,expanded:g,expandable:v,record:s,onExpand:b})));const S=t.onCell?.(s,a)||{};if(l){const{rowSpan:e=1}=S;if(y&&e&&n<l){let t=e;for(let n=a;n<a+e;n+=1){const e=i[n];w.has(e)&&(t+=1)}S.rowSpan=t}}return{key:C,fixedInfo:x,appendCellNode:$,additionalCellProps:S}}const UC=e=>{"production"!==process.env.NODE_ENV&&xC(e);const{className:t,style:n,classNames:r,styles:a,record:i,index:l,renderIndex:s,rowKey:c,rowKeys:d,indent:u=0,rowComponent:p,cellComponent:m,scopeCellComponent:f,expandedRowInfo:h}=e,g=FC(i,c,l,u),{prefixCls:v,flattenColumns:b,expandedRowClassName:y,expandedRowRender:w,rowProps:C,expanded:x,rowSupportExpand:$}=g,S=o.useRef(!1);S.current||=x,"production"!==process.env.NODE_ENV&&xC(e);const E=WC(y,i,l,u),k=o.createElement(p,KC({},C,{"data-row-key":c,className:ie(t,`${v}-row`,`${v}-row-level-${u}`,C?.className,r.row,{[E]:u>=1}),style:{...n,...C?.style,...a.row}}),b.map((e,t)=>{const{render:n,dataIndex:c,className:p}=e,{key:b,fixedInfo:y,appendCellNode:w,additionalCellProps:C}=qC(g,e,t,u,l,d,h?.offset);return o.createElement(PC,KC({className:ie(p,r.cell),style:a.cell,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?f:m,prefixCls:v,key:b,record:i,index:l,renderIndex:s,dataIndex:c,render:n,shouldCellUpdate:e.shouldCellUpdate},y,{appendNode:w,additionalProps:C}))}));let N;if($&&(S.current||x)){const e=w(i,l,u+1,x);N=o.createElement(jC,{expanded:x,className:ie(`${v}-expanded-row`,`${v}-expanded-row-level-${u+1}`,E),prefixCls:v,component:p,cellComponent:m,colSpan:h?h.colSpan:b.length,isEmpty:!1,stickyOffset:h?.sticky},e)}return o.createElement(o.Fragment,null,k,N)};"production"!==process.env.NODE_ENV&&(UC.displayName="BodyRow");var XC=bC(UC);const GC=e=>{const{columnKey:t,onColumnResize:n,title:r}=e,a=o.useRef(null);return ke(()=>{a.current&&n(t,a.current.offsetWidth)},[]),o.createElement(_t,{data:t},o.createElement("td",{ref:a,style:{paddingTop:0,paddingBottom:0,borderTop:0,borderBottom:0,height:0}},o.createElement("div",{style:{height:0,overflow:"hidden",fontWeight:"bold"}},r||" ")))},YC=({prefixCls:e,columnsKey:t,onColumnResize:n,columns:r})=>{const a=o.useRef(null),{measureRowRender:i}=hC(wC,["measureRowRender"]),l=o.createElement("tr",{"aria-hidden":"true",className:`${e}-measure-row`,style:{height:0},ref:a},o.createElement(_t.Collection,{onBatchResize:e=>{os(a.current)&&e.forEach(({data:e,size:t})=>{n(e,t.offsetWidth)})}},t.map(e=>{const t=r.find(t=>t.key===e),a=t?.title,i=o.isValidElement(a)?o.cloneElement(a,{ref:null}):a;return o.createElement(GC,{key:e,columnKey:e,onColumnResize:n,title:i})})));return"function"==typeof i?i(l):l},ZC=e=>{"production"!==process.env.NODE_ENV&&xC(e);const{data:t,measureColumnWidth:n}=e,{prefixCls:r,getComponent:a,onColumnResize:i,flattenColumns:l,getRowKey:s,expandedKeys:c,childrenColumnName:d,emptyNode:u,classNames:p,styles:m,expandedRowOffset:f=0,colWidths:h}=hC(wC,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode","classNames","styles","expandedRowOffset","fixedInfoList","colWidths"]),{body:g={}}=p||{},{body:v={}}=m||{},b=HC(t,d,c,s),y=o.useMemo(()=>b.map(e=>e.rowKey),[b]),w=o.useRef({renderWithProps:!1}),C=o.useMemo(()=>{const e=l.length-f;let t=0;for(let e=0;e<f;e+=1)t+=h[e]||0;return{offset:f,colSpan:e,sticky:t}},[l.length,f,h]),x=a(["body","wrapper"],"tbody"),$=a(["body","row"],"tr"),S=a(["body","cell"],"td"),E=a(["body","cell"],"th");let k;k=t.length?b.map((e,t)=>{const{record:n,indent:r,index:a,rowKey:i}=e;return o.createElement(XC,{classNames:g,styles:v,key:i,rowKey:i,rowKeys:y,record:n,index:t,renderIndex:a,rowComponent:$,cellComponent:S,scopeCellComponent:E,indent:r,expandedRowInfo:C})}):o.createElement(jC,{expanded:!0,className:`${r}-placeholder`,prefixCls:r,component:$,cellComponent:S,colSpan:l.length,isEmpty:!0},u);const N=EC(l);return o.createElement(SC.Provider,{value:w.current},o.createElement(x,{style:v.wrapper,className:ie(`${r}-tbody`,g.wrapper)},n&&o.createElement(YC,{prefixCls:r,columnsKey:N,onColumnResize:i,columns:l}),k))};"production"!==process.env.NODE_ENV&&(ZC.displayName="Body");var QC=bC(ZC);const JC="RC_TABLE_INTERNAL_COL_DEFINE";function ex(){return ex=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ex.apply(this,arguments)}const tx=e=>{const{colWidths:t,columns:n,columCount:r}=e,{tableLayout:a}=hC(wC,["tableLayout"]),i=[];let l=!1;for(let e=(r||n.length)-1;e>=0;e-=1){const r=t[e],s=n&&n[e];let c,d;if(s&&(c=s[JC],"auto"===a&&(d=s.minWidth)),r||d||c||l){const{columnType:t,...n}=c||{};i.unshift(o.createElement("col",ex({key:e,style:{width:r,minWidth:d}},n))),l=!0}}return i.length>0?o.createElement("colgroup",null,i):null};const nx=o.forwardRef((e,t)=>{"production"!==process.env.NODE_ENV&&xC(e);const{className:n,style:r,noData:a,columns:i,flattenColumns:l,colWidths:s,colGroup:d,columCount:u,stickyOffsets:p,direction:m,fixHeader:f,stickyTopOffset:h,stickyBottomOffset:g,stickyClassName:v,scrollX:b,tableLayout:y="fixed",onScroll:w,maxContentScroll:C,children:x,...$}=e,{prefixCls:S,scrollbarSize:E,isSticky:k,getComponent:N}=hC(wC,["prefixCls","scrollbarSize","isSticky","getComponent"]),_=N(["header","table"],"table"),I=k&&!f?0:E,P=o.useRef(null),O=o.useCallback(e=>{Fe(t,e),Fe(P,e)},[]);o.useEffect(()=>{function e(e){const{currentTarget:t,deltaX:n}=e;if(n){const{scrollLeft:o,scrollWidth:r,clientWidth:a}=t,i=r-a;let l=o+n;"rtl"===m?(l=Math.max(-i,l),l=Math.min(0,l)):(l=Math.min(i,l),l=Math.max(0,l)),w({currentTarget:t,scrollLeft:l}),e.preventDefault()}}const t=P.current;return t?.addEventListener("wheel",e,{passive:!1}),()=>{t?.removeEventListener("wheel",e)}},[]);const D=l[l.length-1],R={fixed:D?D.fixed:null,scrollbar:!0,onHeaderCell:()=>({className:`${S}-cell-scrollbar`})},M=c(()=>I?[...i,R]:i,[I,i]),B=c(()=>I?[...l,R]:l,[I,l]),T=c(()=>{const{start:e,end:t}=p;return{...p,start:e,end:[...t.map(e=>e+I),0],isSticky:k}},[I,p,k]),z=function(e,t){return c(()=>{const n=[];for(let o=0;o<t;o+=1){const t=e[o];if(void 0===t)return null;n[o]=t}return n},[e.join("_"),t])}(s,u),A=c(()=>{const e=!z||!z.length||z.every(e=>!e);return a||e},[a,z]);return o.createElement("div",{style:{overflow:"hidden",...k?{top:h,bottom:g}:{},...r},ref:O,className:ie(n,{[v]:!!v})},o.createElement(_,{style:{tableLayout:y,minWidth:"100%",width:b}},A?d:o.createElement(tx,{colWidths:[...z,I],columCount:u+1,columns:B}),x({...$,stickyOffsets:T,columns:M,flattenColumns:B})))});"production"!==process.env.NODE_ENV&&(nx.displayName="FixedHolder");var ox=o.memo(nx);function rx(){return rx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},rx.apply(this,arguments)}const ax=e=>{const{cells:t,stickyOffsets:n,flattenColumns:r,rowComponent:a,cellComponent:i,onHeaderRow:l,index:s,classNames:c,styles:d}=e,{prefixCls:u}=hC(wC,["prefixCls"]);let p;l&&(p=l(t.map(e=>e.column),s));const m=EC(t.map(e=>e.column));return o.createElement(a,rx({},p,{className:c.row,style:d.row}),t.map((e,t)=>{const{column:a,colStart:l,colEnd:s,colSpan:c}=e,d=RC(l,s,r,n),p=a?.onHeaderCell?.(a)||{};return o.createElement(PC,rx({},e,{scope:a.title?c>1?"colgroup":"col":null,ellipsis:a.ellipsis,align:a.align,component:i,prefixCls:u,key:m[t]},d,{additionalProps:p,rowType:"header"}))}))};"production"!==process.env.NODE_ENV&&(ax.displayName="HeaderRow");var ix=bC(e=>{"production"!==process.env.NODE_ENV&&xC(e);const{stickyOffsets:t,columns:n,flattenColumns:r,onHeaderRow:a}=e,{prefixCls:i,getComponent:l,classNames:s,styles:c}=hC(wC,["prefixCls","getComponent","classNames","styles"]),{header:d={}}=s||{},{header:u={}}=c||{},p=o.useMemo(()=>function(e,t,n){const o=[];!function e(r,a,i=0){o[i]=o[i]||[];let l=a;const s=r.filter(Boolean).map(r=>{const a={key:r.key,className:ie(r.className,t.cell)||"",style:n.cell,children:r.title,column:r,colStart:l};let s=1;const c=r.children;return c&&c.length>0&&(s=e(c,l,i+1).reduce((e,t)=>e+t,0),a.hasSubColumns=!0),"colSpan"in r&&({colSpan:s}=r),"rowSpan"in r&&(a.rowSpan=r.rowSpan),a.colSpan=s,a.colEnd=a.colStart+s-1,o[i].push(a),l+=s,s});return s}(e,0);const r=o.length;for(let e=0;e<r;e+=1)o[e].forEach(t=>{"rowSpan"in t||t.hasSubColumns||(t.rowSpan=r-e)});return o}(n,d,u),[n,d,u]),m=l(["header","wrapper"],"thead"),f=l(["header","row"],"tr"),h=l(["header","cell"],"th");return o.createElement(m,{className:ie(`${i}-thead`,d.wrapper),style:u.wrapper},p.map((e,n)=>o.createElement(ax,{classNames:d,styles:u,key:n,flattenColumns:r,cells:e,stickyOffsets:t,rowComponent:f,cellComponent:h,onHeaderRow:a,index:n})))});function lx(e,t=""){return"number"==typeof t?t:t.endsWith("%")?e*parseFloat(t)/100:null}function sx(e){return st(e).filter(e=>o.isValidElement(e)).map(e=>{const{key:t,props:n}=e,{children:o,...r}=n,a={key:t,...r};return o&&(a.children=sx(o)),a})}function cx(e){return e.filter(e=>e&&"object"==typeof e&&!e.hidden).map(e=>{const t=e.children;return t&&t.length>0?{...e,children:cx(t)}:e})}function dx(e,t="key"){return e.filter(e=>e&&"object"==typeof e).reduce((e,n,o)=>{const{fixed:r}=n,a=!0===r||"left"===r?"start":"right"===r?"end":r,i=`${t}-${o}`,l=n.children;return l&&l.length>0?[...e,...dx(l,i).map(e=>({...e,fixed:e.fixed??a}))]:[...e,{key:i,...n,fixed:a}]},[])}function ux({prefixCls:e,columns:t,children:n,expandable:r,expandedKeys:a,columnTitle:i,getRowKey:l,onTriggerExpand:s,expandIcon:c,rowExpandable:d,expandIconColumnIndex:u,expandedRowOffset:p=0,direction:m,expandRowByClick:f,columnWidth:h,fixed:g,scrollWidth:v,clientWidth:b},y){const w=o.useMemo(()=>cx((t||sx(n)||[]).slice()),[t,n]),C=o.useMemo(()=>{if(r){let t=w.slice();if("production"!==process.env.NODE_ENV&&u>=0&&at(!1,"`expandIconColumnIndex` is deprecated. Please use `Table.EXPAND_COLUMN` in `columns` instead."),!t.includes(pC)){const e=u||0,n=0!==e||"right"!==g&&"end"!==g?e:w.length;n>=0&&t.splice(n,0,pC)}"production"!==process.env.NODE_ENV&&t.filter(e=>e===pC).length>1&&at(!1,"There exist more than one `EXPAND_COLUMN` in `columns`.");const n=t.indexOf(pC);t=t.filter((e,t)=>e!==pC||t===n);const r=w[n];let m;m=g||(r?r.fixed:null);const v={[JC]:{className:`${e}-expand-icon-col`,columnType:"EXPAND_COLUMN"},title:i,fixed:m,className:`${e}-row-expand-icon-cell`,width:h,render:(t,n,r)=>{const i=l(n,r),u=a.has(i),p=!d||d(n),m=c({prefixCls:e,expanded:u,expandable:p,record:n,onExpand:s});return f?o.createElement("span",{onClick:e=>e.stopPropagation()},m):m}};return t.map((e,t)=>{const n=e===pC?v:e;return t<p?{...n,fixed:n.fixed||"start"}:n})}return"production"!==process.env.NODE_ENV&&w.includes(pC)&&at(!1,"`expandable` is not config but there exist `EXPAND_COLUMN` in `columns`."),w.filter(e=>e!==pC)},[r,w,l,a,c,m,p]),x=o.useMemo(()=>{let e=C;return y&&(e=y(e)),e.length||(e=[{render:()=>null}]),e},[y,C,m]),$=o.useMemo(()=>dx(x),[x,m,v]),[S,E]=function(e,t,n){return o.useMemo(()=>{if(t&&t>0){let o=0,r=0;e.forEach(e=>{const n=lx(t,e.width);n?o+=n:r+=1});const a=Math.max(t,n);let i=Math.max(a-o,r),l=r;const s=i/r;let c=0;const d=e.map(e=>{const n={...e},o=lx(t,n.width);if(o)n.width=o;else{const e=Math.floor(s);n.width=1===l?i:e,i-=e,l-=1}return c+=n.width,n});if(c<a){const e=a/c;i=a,d.forEach((t,n)=>{const o=Math.floor(t.width*e);t.width=n===d.length-1?i:o,i-=o})}return[d,Math.max(c,a)]}return[e,t]},[e,t,n])}($,v,b);return[x,S,E]}function px(e,t,n){const r=function(e){const{expandable:t,...n}=e;let o;return"expandable"in e?o={...n,...t}:("production"!==process.env.NODE_ENV&&["indentSize","expandedRowKeys","defaultExpandedRowKeys","defaultExpandAllRows","expandedRowRender","expandRowByClick","expandIcon","onExpand","onExpandedRowsChange","expandedRowClassName","expandIconColumnIndex","showExpandColumn","title"].some(t=>t in e)&&at(!1,"expanded related props have been moved into `expandable`."),o=n),!1===o.showExpandColumn&&(o.expandIconColumnIndex=-1),o}(e),{expandIcon:a,expandedRowKeys:i,defaultExpandedRowKeys:l,defaultExpandAllRows:s,expandedRowRender:c,onExpand:d,onExpandedRowsChange:u,childrenColumnName:p}=r,m=a||VC,f=p||"children",h=o.useMemo(()=>c?"row":!!(e.expandable&&e.internalHooks===mC&&e.expandable.__PARENT_RENDER_ICON__||t.some(e=>e&&"object"==typeof e&&e[f]))&&"nest",[!!c,t]),[g,v]=o.useState(()=>l||(s?function(e,t,n){const o=[];return function e(r){(r||[]).forEach((r,a)=>{o.push(t(r,a)),e(r[n])})}(e),o}(t,n,f):[])),b=o.useMemo(()=>new Set(i||g||[]),[i,g]),y=o.useCallback(e=>{const o=n(e,t.indexOf(e));let r;const a=b.has(o);a?(b.delete(o),r=[...b]):r=[...b,o],v(r),d&&d(!a,e),u&&u(r)},[n,b,t,d,u]);return"production"!==process.env.NODE_ENV&&c&&t.some(e=>Array.isArray(e?.[f]))&&at(!1,"`expandedRowRender` should not use with nested Table"),[r,h,b,m,f,y]}const mx=Se()?window:null;const fx=e=>{const{children:t,className:n,style:r}=e;return o.createElement("div",{className:n,style:r},t)};function hx(e){const t=bt(e).getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}const gx="mouseup",vx="mousemove",bx="scroll",yx="resize",wx=(e,t)=>{const{scrollBodyRef:n,onScroll:r,offsetScroll:s,container:c,direction:d}=e,u=hC(wC,"prefixCls"),p=n.current?.scrollWidth||0,m=n.current?.clientWidth||0,f=p&&m*(m/p),h=o.useRef(null),[g,v]=function(e){const t=a(e),[,n]=i({}),o=a(null),r=a([]);return l(()=>()=>{o.current=null},[]),[t.current,function(e){r.current.push(e);const a=Promise.resolve();o.current=a,a.then(()=>{if(o.current===a){const e=r.current,a=t.current;r.current=[],e.forEach(e=>{t.current=e(t.current)}),o.current=null,a!==t.current&&n({})}})}]}({scrollLeft:0,isHiddenScrollBar:!0}),b=o.useRef({delta:0,x:0}),[y,w]=o.useState(!1),C=o.useRef(null);o.useEffect(()=>()=>{zt.cancel(C.current)},[]);const x=()=>{w(!1)},$=e=>{const{buttons:t}=e||window?.event;if(!y||0===t)return void(y&&w(!1));let n=b.current.x+e.pageX-b.current.x-b.current.delta;const o="rtl"===d;n=Math.max(o?f-m:0,Math.min(o?0:m-f,n));(!o||Math.abs(n)+Math.abs(f)<m)&&(r({scrollLeft:n/m*(p+2)}),b.current.x=e.pageX)},S=()=>{zt.cancel(C.current),C.current=zt(()=>{if(!n.current)return;const e=hx(n.current).top,t=e+n.current.offsetHeight,o=c===window?document.documentElement.scrollTop+window.innerHeight:hx(c).top+c.clientHeight;t-Dl()<=o||e>=o-s?v(e=>({...e,isHiddenScrollBar:!0})):v(e=>({...e,isHiddenScrollBar:!1}))})},E=e=>{v(t=>({...t,scrollLeft:e/p*m||0}))};return o.useImperativeHandle(t,()=>({setScrollLeft:E,checkScrollBarVisible:S})),o.useEffect(()=>(document.body.addEventListener(gx,x,!1),document.body.addEventListener(vx,$,!1),S(),()=>{document.body.removeEventListener(gx,x),document.body.removeEventListener(vx,$)}),[f,y]),o.useEffect(()=>{if(n.current){const e=[];let t=bt(n.current);for(;t;)e.push(t),t=t.parentElement;return e.forEach(e=>{e.addEventListener(bx,S,!1)}),window.addEventListener(yx,S,!1),window.addEventListener(bx,S,!1),c.addEventListener(bx,S,!1),()=>{e.forEach(e=>{e.removeEventListener(bx,S)}),window.removeEventListener(yx,S),window.removeEventListener(bx,S),c.removeEventListener(bx,S)}}},[c]),o.useEffect(()=>{g.isHiddenScrollBar||v(e=>{const t=n.current;return t?{...e,scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}:e})},[g.isHiddenScrollBar]),p<=m||!f||g.isHiddenScrollBar?null:o.createElement("div",{style:{height:Dl(),width:m,bottom:s},className:`${u}-sticky-scroll`},o.createElement("div",{onMouseDown:e=>{e.persist(),b.current.delta=e.pageX-g.scrollLeft,b.current.x=0,w(!0),e.preventDefault()},ref:h,className:ie(`${u}-sticky-scroll-bar`,{[`${u}-sticky-scroll-bar-active`]:y}),style:{width:`${f}px`,transform:`translate3d(${g.scrollLeft}px, 0, 0)`}}))};var Cx=o.forwardRef(wx);function xx(){return xx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},xx.apply(this,arguments)}const $x="rc-table",Sx=[],Ex={};function kx(){return"No Data"}const Nx=(e,t)=>{const n={rowKey:"key",prefixCls:$x,emptyText:kx,...e},{prefixCls:r,className:i,rowClassName:s,style:d,classNames:u,styles:p,data:m,rowKey:f,scroll:h,tableLayout:g,direction:v,title:b,footer:y,summary:w,caption:C,id:x,showHeader:$,components:S,emptyText:E,onRow:k,onHeaderRow:N,measureRowRender:_,onScroll:I,internalHooks:P,transformColumns:O,internalRefs:D,tailor:R,getContainerWidth:M,sticky:B,rowHoverable:T=!0}=n,z=m||Sx,A=!!z.length,L=P===mC;"production"!==process.env.NODE_ENV&&(["onRowClick","onRowDoubleClick","onRowContextMenu","onRowMouseEnter","onRowMouseLeave"].forEach(e=>{at(void 0===n[e],`\`${e}\` is removed, please use \`onRow\` instead.`)}),at(!("getBodyWrapper"in n),"`getBodyWrapper` is deprecated, please use custom `components` instead."));const H=o.useCallback((e,t)=>Ue(S,e)||t,[S]),F=o.useMemo(()=>"function"==typeof f?f:e=>{const t=e&&e[f];return"production"!==process.env.NODE_ENV&&at(void 0!==t,"Each record in table should have a unique `key` prop, or set `rowKey` to an unique primary key."),t},[f]),j=H(["body"]),[V,W,K]=function(){const[e,t]=o.useState(-1),[n,r]=o.useState(-1);return[e,n,o.useCallback((e,n)=>{t(e),r(n)},[])]}(),[q,U,X,G,Y,Z]=px(n,z,F),Q=h?.x,[J,ee]=o.useState(0),[te,ne,oe]=ux({...n,...q,expandable:!!q.expandedRowRender,columnTitle:q.columnTitle,expandedKeys:X,getRowKey:F,onTriggerExpand:Z,expandIcon:G,expandIconColumnIndex:q.expandIconColumnIndex,direction:v,scrollWidth:L&&R&&"number"==typeof Q?Q:null,clientWidth:J},L?O:null),re=oe??Q,ae=o.useMemo(()=>({columns:te,flattenColumns:ne}),[te,ne]),le=o.useRef(null),se=o.useRef(null),ce=o.useRef(null),de=o.useRef(null);o.useImperativeHandle(t,()=>({nativeElement:le.current,scrollTo:e=>{if(ce.current instanceof HTMLElement){const{index:n,top:o,key:r,offset:a}=e;if("number"!=typeof(t=o)||Number.isNaN(t)){const e=r??F(z[n]),t=ce.current.querySelector(`[data-row-key="${e}"]`);if(t)if(a){const e=t.offsetTop;ce.current.scrollTo({top:e+a})}else t.scrollIntoView()}else ce.current?.scrollTo({top:o})}else ce.current?.scrollTo&&ce.current.scrollTo(e);var t}}));const ue=o.useRef(null),[pe,me]=o.useState(!1),[fe,he]=o.useState(!1),[ge,ve]=o.useState(new Map),be=EC(ne).map(e=>ge.get(e)),ye=o.useMemo(()=>be,[be.join("_")]),we=function(e,t){const n=c(()=>{const n=t.length,o=(n,o,r)=>{const a=[];let i=0;for(let l=n;l!==o;l+=r)a.push(i),t[l].fixed&&(i+=e[l]||0);return a};return{start:o(0,n,1),end:o(n-1,-1,-1).reverse(),widths:e}},[e,t]);return n}(ye,ne),Ce=h&&kC(h.y),xe=h&&kC(re)||Boolean(q.fixed),Se=xe&&ne.some(({fixed:e})=>e),Ee=o.useRef(null),{isSticky:Ne,offsetHeader:_e,offsetSummary:Ie,offsetScroll:Pe,stickyClassName:Oe,container:De}=function(e,t){const{offsetHeader:n=0,offsetSummary:r=0,offsetScroll:a=0,getContainer:i=()=>mx}="object"==typeof e?e:{},l=i()||mx,s=!!e;return o.useMemo(()=>({isSticky:s,stickyClassName:s?`${t}-sticky-holder`:"",offsetHeader:n,offsetSummary:r,offsetScroll:a,container:l}),[s,a,n,r,t,l])}(B,r),Re=o.useMemo(()=>w?.(z),[w,z]),Me=(Ce||Ne)&&o.isValidElement(Re)&&Re.type===TC&&Re.props.fixed;let Te,ze,Ae;Ce&&(ze={overflowY:A?"scroll":"auto",maxHeight:h.y}),xe&&(Te={overflowX:"auto"},Ce||(ze={overflowY:"hidden"}),Ae={width:!0===re?"auto":re,minWidth:"100%"});const Le=o.useCallback((e,t)=>{ve(n=>{if(n.get(e)!==t){const o=new Map(n);return o.set(e,t),o}return n})},[]),[He,Fe]=function(e){const t=a(e||null),n=a(null);function o(){clearTimeout(n.current)}return l(()=>o,[]),[function(e){t.current=e,o(),n.current=setTimeout(()=>{t.current=null,n.current=void 0},100)},function(){return t.current}]}(null);function je(e,t){t&&("function"==typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout(()=>{t.scrollLeft=e},0)))}const[Ve,We]=o.useState([0,0]),Ke=$e(({currentTarget:e,scrollLeft:t})=>{const n="number"==typeof t?t:e.scrollLeft,o=e||Ex;Fe()&&Fe()!==o||(He(o),je(n,se.current),je(n,ce.current),je(n,ue.current),je(n,Ee.current?.setScrollLeft));const r=e||se.current;if(r){const e=L&&R&&"number"==typeof re?re:r.scrollWidth,t=r.clientWidth,o=Math.abs(n);if(We(n=>{const r=[o,e-t];return tn(n,r)?n:r}),e===t)return me(!1),void he(!1);me(o>0),he(o<e-t-1)}}),qe=$e(e=>{Ke(e),I?.(e)}),Xe=()=>{xe&&ce.current?Ke({currentTarget:bt(ce.current),scrollLeft:ce.current?.scrollLeft}):(me(!1),he(!1))},Ge=e=>{Ee.current?.checkScrollBarVisible();let t=e??le.current?.offsetWidth??0;L&&M&&le.current&&(t=M(le.current,t)||t),t!==J&&(Xe(),ee(t))};ke(()=>{xe&&Ge()},[xe]);const Ye=o.useRef(!1);o.useEffect(()=>{Ye.current&&Xe()},[xe,m,te.length]),o.useEffect(()=>{Ye.current=!0},[]);const[Ze,Qe]=o.useState(0);ke(()=>{R&&L||(ce.current instanceof Element?Qe(Rl(ce.current).width):Qe(Rl(de.current).width))},[]),o.useEffect(()=>{L&&D&&(D.body.current=ce.current)});const Je=o.useCallback(e=>o.createElement(o.Fragment,null,o.createElement(ix,e),"top"===Me&&o.createElement(zC,e,Re)),[Me,Re]),et=o.useCallback(e=>o.createElement(zC,e,Re),[Re]),tt=H(["table"],"table"),nt=o.useMemo(()=>g||(Se?"max-content"===re?"auto":"fixed":Ce||Ne||ne.some(({ellipsis:e})=>e)?"fixed":"auto"),[Ce,Se,ne,g,Ne]);let ot;const rt={colWidths:ye,columCount:ne.length,stickyOffsets:we,onHeaderRow:N,fixHeader:Ce,scroll:h},it=o.useMemo(()=>A?null:"function"==typeof E?E():E,[A,E]),lt=o.createElement(QC,{data:z,measureColumnWidth:Ce||xe||Ne}),st=o.createElement(tx,{colWidths:ne.map(({width:e})=>e),columns:ne}),ct=null!=C?o.createElement("caption",{className:`${r}-caption`},C):void 0,dt=Li(n,{data:!0}),ut=Li(n,{aria:!0});if(Ce||Ne){let e;"function"==typeof j?(e=j(z,{scrollbarSize:Ze,ref:ce,onScroll:Ke}),rt.colWidths=ne.map(({width:e},t)=>{const o=t===ne.length-1?e-Ze:e;return"number"!=typeof o||Number.isNaN(o)?("production"!==process.env.NODE_ENV&&at(0===n.columns.length,"When use `components.body` with render props. Each column should have a fixed `width` value."),0):o})):e=o.createElement("div",{style:{...Te,...ze},onScroll:qe,ref:ce,className:`${r}-body`},o.createElement(tt,xx({style:{...Ae,tableLayout:nt}},ut),ct,st,lt,!Me&&Re&&o.createElement(zC,{stickyOffsets:we,flattenColumns:ne},Re)));const t={noData:!z.length,maxContentScroll:xe&&"max-content"===re,...rt,...ae,direction:v,stickyClassName:Oe,scrollX:re,tableLayout:nt,onScroll:Ke};ot=o.createElement(o.Fragment,null,!1!==$&&o.createElement(ox,xx({},t,{stickyTopOffset:_e,className:`${r}-header`,ref:se,colGroup:st}),Je),e,Me&&"top"!==Me&&o.createElement(ox,xx({},t,{stickyBottomOffset:Ie,className:`${r}-summary`,ref:ue,colGroup:st}),et),Ne&&ce.current&&ce.current instanceof Element&&o.createElement(Cx,{ref:Ee,offsetScroll:Pe,scrollBodyRef:ce,onScroll:Ke,container:De,direction:v}))}else ot=o.createElement("div",{style:{...Te,...ze,...p?.content},className:ie(`${r}-content`,u?.content),onScroll:Ke,ref:ce},o.createElement(tt,xx({style:{...Ae,tableLayout:nt}},ut),ct,st,!1!==$&&o.createElement(ix,xx({},rt,ae)),lt,Re&&o.createElement(zC,{stickyOffsets:we,flattenColumns:ne},Re)));const pt={...d};Ne&&(pt["--columns-count"]=ne.length);let mt=o.createElement("div",xx({className:ie(r,i,{[`${r}-rtl`]:"rtl"===v,[`${r}-fix-start-shadow`]:xe,[`${r}-fix-end-shadow`]:xe,[`${r}-fix-start-shadow-show`]:xe&&pe,[`${r}-fix-end-shadow-show`]:xe&&fe,[`${r}-layout-fixed`]:"fixed"===g,[`${r}-fixed-header`]:Ce,[`${r}-fixed-column`]:Se,[`${r}-scroll-horizontal`]:xe,[`${r}-has-fix-start`]:ne[0]?.fixed,[`${r}-has-fix-end`]:"end"===ne[ne.length-1]?.fixed}),style:pt,id:x,ref:le},dt),b&&o.createElement(fx,{className:ie(`${r}-title`,u?.title),style:p?.title},b(z)),o.createElement("div",{ref:de,className:ie(`${r}-container`,u?.section),style:p?.section},ot),y&&o.createElement(fx,{className:ie(`${r}-footer`,u?.footer),style:p?.footer},y(z)));xe&&(mt=o.createElement(_t,{onResize:({offsetWidth:e})=>Ge(e)},mt));const ft=function(e,t){const n=o.useMemo(()=>e.map((n,o)=>RC(o,o,e,t)),[e,t]);return Be(()=>n,[n],(e,t)=>!tn(e,t))}(ne,we),ht=o.useMemo(()=>({scrollX:re,scrollInfo:Ve,classNames:u,styles:p,prefixCls:r,getComponent:H,scrollbarSize:Ze,direction:v,fixedInfoList:ft,isSticky:Ne,componentWidth:J,fixHeader:Ce,fixColumn:Se,horizonScroll:xe,tableLayout:nt,rowClassName:s,expandedRowClassName:q.expandedRowClassName,expandIcon:G,expandableType:U,expandRowByClick:q.expandRowByClick,expandedRowRender:q.expandedRowRender,expandedRowOffset:q.expandedRowOffset,onTriggerExpand:Z,expandIconColumnIndex:q.expandIconColumnIndex,indentSize:q.indentSize,allColumnsFixedLeft:ne.every(e=>"start"===e.fixed),emptyNode:it,columns:te,flattenColumns:ne,onColumnResize:Le,colWidths:ye,hoverStartRow:V,hoverEndRow:W,onHover:K,rowExpandable:q.rowExpandable,onRow:k,getRowKey:F,expandedKeys:X,childrenColumnName:Y,rowHoverable:T,measureRowRender:_}),[re,Ve,u,p,r,H,Ze,v,ft,Ne,J,Ce,Se,xe,nt,s,q.expandedRowClassName,G,U,q.expandRowByClick,q.expandedRowRender,q.expandedRowOffset,Z,q.expandIconColumnIndex,q.indentSize,it,te,ne,Le,ye,V,W,K,q.rowExpandable,k,F,X,Y,T,_]);return o.createElement(wC.Provider,{value:ht},mt)},_x=o.forwardRef(Nx);"production"!==process.env.NODE_ENV&&(_x.displayName="Table");const Ix=e=>vC(_x,e),Px=Ix();Px.EXPAND_COLUMN=pC,Px.INTERNAL_HOOKS=mC,Px.Column=function(e){return null},Px.ColumnGroup=function(e){return null},Px.Summary=AC;const Ox=fC(null),Dx=fC(null);function Rx(){return Rx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Rx.apply(this,arguments)}const Mx=e=>{const{rowInfo:t,column:n,colIndex:r,indent:a,index:i,component:l,renderIndex:s,record:c,style:d,className:u,inverse:p,getHeight:m}=e,{render:f,dataIndex:h,className:g,width:v}=n,{columnsOffset:b}=hC(Dx,["columnsOffset"]),{key:y,fixedInfo:w,appendCellNode:C,additionalCellProps:x}=qC(t,n,r,a,i),{style:$,colSpan:S=1,rowSpan:E=1}=x,k=function(e,t,n){return n[e+(t||1)]-(n[e]||0)}(r-1,S,b),N={...$,...d,flex:`0 0 ${k}px`,width:`${k}px`,marginRight:S>1?v-k:0,pointerEvents:"auto"},_=o.useMemo(()=>p?E<=1:0===S||0===E||E>1,[E,S,p]);_?N.visibility="hidden":p&&(N.height=m?.(E));const I=_?()=>null:f,P={};return 0!==E&&0!==S||(P.rowSpan=1,P.colSpan=1),o.createElement(PC,Rx({className:ie(g,u),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:l,prefixCls:t.prefixCls,key:y,record:c,index:i,renderIndex:s,dataIndex:h,render:I,shouldCellUpdate:n.shouldCellUpdate},w,{appendNode:C,additionalProps:{...x,style:N,...P}}))};function Bx(){return Bx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Bx.apply(this,arguments)}const Tx=o.forwardRef((e,t)=>{const{data:n,index:r,className:a,rowKey:i,style:l,extra:s,getHeight:c,...d}=e,{record:u,indent:p,index:m}=n,{scrollX:f,flattenColumns:h,prefixCls:g,fixColumn:v,componentWidth:b}=hC(wC,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),{getComponent:y}=hC(Ox,["getComponent"]),w=FC(u,i,r,p),C=y(["body","row"],"div"),x=y(["body","cell"],"div"),{rowSupportExpand:$,expanded:S,rowProps:E,expandedRowRender:k,expandedRowClassName:N}=w;let _;if($&&S){const e=k(u,r,p+1,S),t=WC(N,u,r,p);let n={};v&&(n={style:{"--virtual-width":`${b}px`}});const a=`${g}-expanded-row-cell`;_=o.createElement(C,{className:ie(`${g}-expanded-row`,`${g}-expanded-row-level-${p+1}`,t)},o.createElement(PC,{component:x,prefixCls:g,className:ie(a,{[`${a}-fixed`]:v}),additionalProps:n},e))}const I={...l,width:f};s&&(I.position="absolute",I.pointerEvents="none");const P=o.createElement(C,Bx({},E,d,{"data-row-key":i,ref:$?null:t,className:ie(a,`${g}-row`,E?.className,{[`${g}-row-extra`]:s}),style:{...I,...E?.style}}),h.map((e,t)=>o.createElement(Mx,{key:t,component:x,rowInfo:w,column:e,colIndex:t,indent:p,index:r,renderIndex:m,record:u,inverse:s,getHeight:c})));return $?o.createElement("div",{ref:t},P,_):P}),zx=bC(Tx);"production"!==process.env.NODE_ENV&&(zx.displayName="BodyLine");const Ax=o.forwardRef((e,t)=>{const{data:n,onScroll:r}=e,{flattenColumns:a,onColumnResize:i,getRowKey:l,expandedKeys:s,prefixCls:c,childrenColumnName:d,scrollX:u,direction:p}=hC(wC,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),{sticky:m,scrollY:f,listItemHeight:h,getComponent:g,onScroll:v}=hC(Ox),b=o.useRef(null),y=HC(n,d,s,l),w=o.useMemo(()=>{let e=0;return a.map(({width:t,minWidth:n,key:o})=>{const r=Math.max(t||0,n||0);return e+=r,[o,r,e]})},[a]),C=o.useMemo(()=>w.map(e=>e[2]),[w]);o.useEffect(()=>{w.forEach(([e,t])=>{i(e,t)})},[w]),o.useImperativeHandle(t,()=>{const e={scrollTo:e=>{const{offset:t,...n}=e;t?b.current?.scrollTo({...n,offset:t,align:"top"}):b.current?.scrollTo(e)},nativeElement:b.current?.nativeElement};return Object.defineProperty(e,"scrollLeft",{get:()=>b.current?.getScrollInfo().x||0,set:e=>{b.current?.scrollTo({left:e})}}),Object.defineProperty(e,"scrollTop",{get:()=>b.current?.getScrollInfo().y||0,set:e=>{b.current?.scrollTo({top:e})}}),e});const x=(e,t)=>{const n=y[t]?.record,{onCell:o}=e;if(o){const e=o(n,t);return e?.rowSpan??1}return 1},$=o.useMemo(()=>({columnsOffset:C}),[C]),S=`${c}-tbody`,E=g(["body","wrapper"]),k={};return m&&(k.position="sticky",k.bottom=0,"object"==typeof m&&m.offsetScroll&&(k.bottom=m.offsetScroll)),o.createElement(Dx.Provider,{value:$},o.createElement($m,{fullHeight:!1,ref:b,prefixCls:`${S}-virtual`,styles:{horizontalScrollBar:k},className:S,height:f,itemHeight:h||24,data:y,itemKey:e=>l(e.record),component:E,scrollWidth:u,direction:p,onVirtualScroll:({x:e})=>{r({currentTarget:b.current?.nativeElement,scrollLeft:e})},onScroll:v,extraRender:e=>{const{start:t,end:n,getSize:r,offsetY:i}=e;if(n<0)return null;let s=a.filter(e=>0===x(e,t)),c=t;for(let e=t;e>=0;e-=1)if(s=s.filter(t=>0===x(t,e)),!s.length){c=e;break}let d=a.filter(e=>1!==x(e,n)),u=n;for(let e=n;e<y.length;e+=1)if(d=d.filter(t=>1!==x(t,e)),!d.length){u=Math.max(e-1,n);break}const p=[];for(let e=c;e<=u;e+=1){y[e]&&(a.some(t=>x(t,e)>1)&&p.push(e))}return p.map(e=>{const t=y[e],n=l(t.record,e),a=r(n);return o.createElement(zx,{key:e,data:t,rowKey:n,index:e,style:{top:-i+a.top},extra:!0,getHeight:t=>{const o=e+t-1,a=y[o];if(!a||!a.record){const e=Math.min(o,y.length-1),t=y[e],a=l(t.record,e),i=r(n,a);return i.bottom-i.top}const i=l(a.record,o),s=r(n,i);return s.bottom-s.top}})})}},(e,t,n)=>{const r=l(e.record,t);return o.createElement(zx,{data:e,rowKey:r,index:t,style:n.style})}))}),Lx=bC(Ax);function Hx(){return Hx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Hx.apply(this,arguments)}"production"!==process.env.NODE_ENV&&(Lx.displayName="ResponseGrid");const Fx=(e,t)=>{const{ref:n,onScroll:r}=t;return o.createElement(Lx,{ref:n,data:e,onScroll:r})},jx=(e,t)=>{const{data:n,columns:r,scroll:a,sticky:i,prefixCls:l=$x,className:s,listItemHeight:c,components:d,onScroll:u}=e;let{x:p,y:m}=a||{};"number"!=typeof p&&("production"!==process.env.NODE_ENV&&at(!p,"`scroll.x` in virtual table must be number."),p=1),"number"!=typeof m&&(m=500,"production"!==process.env.NODE_ENV&&at(!1,"`scroll.y` in virtual table must be number."));const f=$e((e,t)=>Ue(d,e)||t),h=$e(u),g=o.useMemo(()=>({sticky:i,scrollY:m,listItemHeight:c,getComponent:f,onScroll:h}),[i,m,c,f,h]);return o.createElement(Ox.Provider,{value:g},o.createElement(Px,Hx({},e,{className:ie(s,`${l}-virtual`),scroll:{...a,x:p},components:{...d,body:n?.length?Fx:void 0},columns:r,internalHooks:mC,tailor:!0,ref:t})))},Vx=o.forwardRef(jx);"production"!==process.env.NODE_ENV&&(Vx.displayName="VirtualTable");const Wx=e=>vC(Vx,e);Wx();var Kx=e=>null;var qx=e=>null;const Ux=o.createContext(null),Xx=o.createContext({}),Gx=({prefixCls:e,level:t,isStart:n,isEnd:r})=>{const a=`${e}-indent-unit`,i=[];for(let e=0;e<t;e+=1)i.push(o.createElement("span",{key:e,className:ie(a,{[`${a}-start`]:n[e],[`${a}-end`]:r[e]})}));return o.createElement("span",{"aria-hidden":"true",className:`${e}-indent`},i)};var Yx=o.memo(Gx);function Zx(){return Zx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Zx.apply(this,arguments)}const Qx="open",Jx="close",e$="---",t$=e=>{const{eventKey:t,className:n,style:o,dragOver:a,dragOverGapTop:i,dragOverGapBottom:l,isLeaf:s,isStart:c,isEnd:d,expanded:u,selected:p,checked:m,halfChecked:f,loading:h,domRef:g,active:v,data:b,onMouseMove:y,selectable:w,...C}=e,x=r.useContext(Ux),{classNames:$,styles:S}=x||{},E=r.useContext(Xx),k=r.useRef(null),[N,_]=r.useState(!1),I=!!(x.disabled||e.disabled||E.nodeDisabled?.(b)),P=r.useMemo(()=>!(!x.checkable||!1===e.checkable)&&x.checkable,[x.checkable,e.checkable]),O=t=>{I||P&&!e.disableCheckbox&&x.onNodeCheck(t,Tb(e),!m)},D=r.useMemo(()=>"boolean"==typeof w?w:x.selectable,[w,x.selectable]),R=t=>{x.onNodeClick(t,Tb(e)),D?(t=>{I||x.onNodeSelect(t,Tb(e))})(t):O(t)},M=t=>{x.onNodeDoubleClick(t,Tb(e))},B=t=>{x.onNodeMouseEnter(t,Tb(e))},T=t=>{x.onNodeMouseLeave(t,Tb(e))},z=t=>{x.onNodeContextMenu(t,Tb(e))},A=r.useMemo(()=>!(!x.draggable||x.draggable.nodeDraggable&&!x.draggable.nodeDraggable(b)),[x.draggable,b]),L=t=>{h||x.onNodeExpand(t,Tb(e))},H=r.useMemo(()=>{const{children:e}=_b(x.keyEntities,t)||{};return Boolean((e||[]).length)},[x.keyEntities,t]),F=r.useMemo(()=>!1!==s&&(s||!x.loadData&&!H||x.loadData&&e.loaded&&!H),[s,x.loadData,H,e.loaded]);r.useEffect(()=>{h||"function"!=typeof x.loadData||!u||F||e.loaded||x.onNodeLoad(Tb(e))},[h,x.loadData,x.onNodeLoad,u,F,e]);const j=r.useMemo(()=>x.draggable?.icon?r.createElement("span",{className:`${x.prefixCls}-draggable-icon`},x.draggable.icon):null,[x.draggable]),V=t=>{const n=e.switcherIcon||x.switcherIcon;return"function"==typeof n?n({...e,isLeaf:t}):n},W=r.useMemo(()=>{if(!P)return null;const t="boolean"!=typeof P?P:null;return r.createElement("span",{className:ie(`${x.prefixCls}-checkbox`,{[`${x.prefixCls}-checkbox-checked`]:m,[`${x.prefixCls}-checkbox-indeterminate`]:!m&&f,[`${x.prefixCls}-checkbox-disabled`]:I||e.disableCheckbox}),onClick:O,role:"checkbox","aria-checked":f?"mixed":m,"aria-disabled":I||e.disableCheckbox,"aria-label":`Select ${"string"==typeof e.title?e.title:"tree node"}`},t)},[P,m,f,I,e.disableCheckbox,e.title]),K=r.useMemo(()=>F?null:u?Qx:Jx,[F,u]),q=r.useMemo(()=>r.createElement("span",{className:ie($?.itemIcon,`${x.prefixCls}-iconEle`,`${x.prefixCls}-icon__${K||"docu"}`,{[`${x.prefixCls}-icon_loading`]:h}),style:S?.itemIcon}),[x.prefixCls,K,h]),U=r.useMemo(()=>{const n=Boolean(x.draggable);return!e.disabled&&n&&x.dragOverNodeKey===t?x.dropIndicatorRender({dropPosition:x.dropPosition,dropLevelOffset:x.dropLevelOffset,indent:x.indent,prefixCls:x.prefixCls,direction:x.direction}):null},[x.dropPosition,x.dropLevelOffset,x.indent,x.prefixCls,x.direction,x.draggable,x.dragOverNodeKey,x.dropIndicatorRender]),X=r.useMemo(()=>{const{title:t=e$}=e,n=`${x.prefixCls}-node-content-wrapper`;let o,a;if(x.showIcon){const t=e.icon||x.icon;o=t?r.createElement("span",{className:ie($?.itemIcon,`${x.prefixCls}-iconEle`,`${x.prefixCls}-icon__customize`),style:S?.itemIcon},"function"==typeof t?t(e):t):q}else x.loadData&&h&&(o=q);return a="function"==typeof t?t(b):x.titleRender?x.titleRender(b):t,r.createElement("span",{ref:k,title:"string"==typeof t?t:"",className:ie(n,`${n}-${K||"normal"}`,{[`${x.prefixCls}-node-selected`]:!I&&(p||N)}),onMouseEnter:B,onMouseLeave:T,onContextMenu:z,onClick:R,onDoubleClick:M},o,r.createElement("span",{className:ie(`${x.prefixCls}-title`,$?.itemTitle),style:S?.itemTitle},a),U)},[x.prefixCls,x.showIcon,e,x.icon,q,x.titleRender,b,K,B,T,z,R,M]),G=Li(C,{aria:!0,data:!0}),{level:Y}=_b(x.keyEntities,t)||{},Z=d[d.length-1],Q=!I&&A,J=x.draggingNodeKey===t,ee=void 0!==w?{"aria-selected":!!w}:void 0;return r.createElement("div",Zx({ref:g,role:"treeitem","aria-expanded":s?void 0:u,className:ie(n,`${x.prefixCls}-treenode`,$?.item,{[`${x.prefixCls}-treenode-disabled`]:I,[`${x.prefixCls}-treenode-switcher-${u?"open":"close"}`]:!s,[`${x.prefixCls}-treenode-checkbox-checked`]:m,[`${x.prefixCls}-treenode-checkbox-indeterminate`]:f,[`${x.prefixCls}-treenode-selected`]:p,[`${x.prefixCls}-treenode-loading`]:h,[`${x.prefixCls}-treenode-active`]:v,[`${x.prefixCls}-treenode-leaf-last`]:Z,[`${x.prefixCls}-treenode-draggable`]:A,dragging:J,"drop-target":x.dropTargetKey===t,"drop-container":x.dropContainerKey===t,"drag-over":!I&&a,"drag-over-gap-top":!I&&i,"drag-over-gap-bottom":!I&&l,"filter-node":x.filterTreeNode?.(Tb(e)),[`${x.prefixCls}-treenode-leaf`]:F}),style:{...o,...S?.item},draggable:Q,onDragStart:Q?t=>{t.stopPropagation(),_(!0),x.onNodeDragStart(t,e);try{t.dataTransfer.setData("text/plain","")}catch{}}:void 0,onDragEnter:A?t=>{t.preventDefault(),t.stopPropagation(),x.onNodeDragEnter(t,e)}:void 0,onDragOver:A?t=>{t.preventDefault(),t.stopPropagation(),x.onNodeDragOver(t,e)}:void 0,onDragLeave:A?t=>{t.stopPropagation(),x.onNodeDragLeave(t,e)}:void 0,onDrop:A?t=>{t.preventDefault(),t.stopPropagation(),_(!1),x.onNodeDrop(t,e)}:void 0,onDragEnd:A?t=>{t.stopPropagation(),_(!1),x.onNodeDragEnd(t,e)}:void 0,onMouseMove:y},ee,G),r.createElement(Yx,{prefixCls:x.prefixCls,level:Y,isStart:c,isEnd:d}),j,(()=>{if(F){const e=V(!0);return!1!==e?r.createElement("span",{className:ie(`${x.prefixCls}-switcher`,`${x.prefixCls}-switcher-noop`)},e):null}const e=V(!1);return!1!==e?r.createElement("span",{onClick:L,className:ie(`${x.prefixCls}-switcher`,`${x.prefixCls}-switcher_${u?Qx:Jx}`)},e):null})(),W,X)};function n$(e,t){if(!e)return[];const n=e.slice(),o=n.indexOf(t);return o>=0&&n.splice(o,1),n}function o$(e,t){const n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function r$(e){return e.split("-")}function a$(e,t){const n=[];return function e(t=[]){t.forEach(({key:t,children:o})=>{n.push(t),e(o)})}(_b(t,e).children),n}function i$(e){if(e.parent){const t=r$(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function l$(e,t,n,o,r,a,i,l,s,c){const{clientX:d,clientY:u}=e,{top:p,height:m}=e.target.getBoundingClientRect(),f=(("rtl"===c?-1:1)*((r?.x||0)-d)-12)/o,h=s.filter(e=>l[e]?.children?.length);let g=_b(l,n.eventKey);if(u<p+m/2){const e=i.findIndex(e=>e.key===g.key),t=i[e<=0?0:e-1].key;g=_b(l,t)}const v=g.key,b=g,y=g.key;let w=0,C=0;if(!h.includes(v))for(let e=0;e<f&&i$(g);e+=1)g=g.parent,C+=1;const x=t.data,$=g.node;let S=!0;return function(e){const t=r$(e.pos);return 0===Number(t[t.length-1])}(g)&&0===g.level&&u<p+m/2&&a({dragNode:x,dropNode:$,dropPosition:-1})&&g.key===n.eventKey?w=-1:(b.children||[]).length&&h.includes(y)?a({dragNode:x,dropNode:$,dropPosition:0})?w=0:S=!1:0===C?f>-1.5?a({dragNode:x,dropNode:$,dropPosition:1})?w=1:S=!1:a({dragNode:x,dropNode:$,dropPosition:0})?w=0:a({dragNode:x,dropNode:$,dropPosition:1})?w=1:S=!1:a({dragNode:x,dropNode:$,dropPosition:1})?w=1:S=!1,{dropPosition:w,dropLevelOffset:C,dropTargetKey:g.key,dropTargetPos:g.pos,dragOverNodeKey:y,dropContainerKey:0===w?null:g.parent?.key||null,dropAllowed:S}}function s$(e,t){if(!e)return;const{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function c$(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!=typeof e)return at(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function d$(e,t){const n=new Set;function o(e){if(n.has(e))return;const r=_b(t,e);if(!r)return;n.add(e);const{parent:a,node:i}=r;i.disabled||a&&o(a.key)}return(e||[]).forEach(e=>{o(e)}),[...n]}t$.isTreeNode=1,"production"!==process.env.NODE_ENV&&(t$.displayName="TreeNode");const u$={},p$="SELECT_ALL",m$="SELECT_INVERT",f$="SELECT_NONE",h$=[],g$=(e,t,n=[])=>((t||[]).forEach(t=>{n.push(t),t&&"object"==typeof t&&e in t&&g$(e,t[e],n)}),n),v$=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:a,getCheckboxProps:l,getTitleCheckboxProps:d,onChange:u,onSelect:p,onSelectAll:m,onSelectInvert:f,onSelectNone:h,onSelectMultiple:g,columnWidth:v,type:b,selections:y,fixed:w,renderCell:C,hideSelectAll:x,checkStrictly:$=!0}=t||{},{prefixCls:S,data:E,pageData:k,getRecordByKey:N,getRowKey:_,expandType:I,childrenColumnName:P,locale:O,getPopupContainer:D}=e,R=ht("Table"),[M,B]=(e=>{const[t,n]=i(null);return[s((o,r,a)=>{const i=t??o,l=Math.min(i||0,o),s=Math.max(i||0,o),c=r.slice(l,s+1).map(e),d=c.some(e=>!a.has(e)),u=[];return c.forEach(e=>{d?(a.has(e)||u.push(e),a.add(e)):(a.delete(e),u.push(e))}),n(d?s:null),u},[t]),n]})(e=>e),[T,z]=_e(a||h$,r),A=o.useRef(new Map),L=s(e=>{if(n){const t=new Map;e.forEach(e=>{let n=N(e);!n&&A.current.has(e)&&(n=A.current.get(e)),t.set(e,n)}),A.current=t}},[N,n]);o.useEffect(()=>{L(T)},[T]);const H=c(()=>g$(P,k),[P,k]),{keyEntities:F}=c(()=>{if($)return{keyEntities:null};let e=E;if(n){const t=new Set(H.map(_)),n=Array.from(A.current).reduce((e,[n,o])=>t.has(n)?e:e.concat(o),[]);e=[].concat(Ot(e),Ot(n))}return Mb(e,{externalGetKey:_,childrenPropName:P})},[E,_,$,P,n,H]),j=c(()=>{const e=new Map;return H.forEach((t,n)=>{const o=_(t,n),r=(l?l(t):null)||{};e.set(o,r),"production"!==process.env.NODE_ENV&&R(!("checked"in r||"defaultChecked"in r),"usage","Do not set `checked` or `defaultChecked` in `getCheckboxProps`. Please use `selectedRowKeys` instead.")}),e},[H,_,l]),V=s(e=>{const t=_(e);let n;return n=j.has(t)?j.get(_(e)):l?l(e):void 0,!!n?.disabled},[j,_]),[W,K]=c(()=>{if($)return[T||[],[]];const{checkedKeys:e,halfCheckedKeys:t}=Lb(T,!0,F,V);return[e||[],t]},[T,$,F,V]),q=c(()=>{const e="radio"===b?W.slice(0,1):W;return new Set(e)},[W,b]),U=c(()=>"radio"===b?new Set:new Set(K),[K,b]);o.useEffect(()=>{t||z(h$)},[!!t]);const X=s((e,t)=>{let o,r;L(e),n?(o=e,r=e.map(e=>A.current.get(e))):(o=[],r=[],e.forEach(e=>{const t=N(e);void 0!==t&&(o.push(e),r.push(t))})),z(o),u?.(o,r,{type:t})},[z,N,u,n]),G=s((e,t,n,o)=>{if(p){const r=n.map(e=>N(e));p(N(e),t,r,o)}X(n,"single")},[p,N,X]),Y=c(()=>{if(!y||x)return null;return(!0===y?[p$,m$,f$]:y).map(e=>e===p$?{key:"all",text:O.selectionAll,onSelect(){X(E.map((e,t)=>_(e,t)).filter(e=>{const t=j.get(e);return!t?.disabled||q.has(e)}),"all")}}:e===m$?{key:"invert",text:O.selectInvert,onSelect(){const e=new Set(q);k.forEach((t,n)=>{const o=_(t,n),r=j.get(o);r?.disabled||(e.has(o)?e.delete(o):e.add(o))});const t=Array.from(e);f&&(R.deprecated(!1,"onSelectInvert","onChange"),f(t)),X(t,"invert")}}:e===f$?{key:"none",text:O.selectNone,onSelect(){h?.(),X(Array.from(q).filter(e=>{const t=j.get(e);return t?.disabled}),"none")}}:e).map(e=>({...e,onSelect:(...t)=>{e.onSelect?.(...t),B(null)}}))},[y,x,O.selectionAll,O.selectInvert,O.selectNone,j,q,E,k,_,f,X]),Z=s(e=>{if(!t)return"production"!==process.env.NODE_ENV&&R(!e.includes(u$),"usage","`rowSelection` is not config but `SELECTION_COLUMN` exists in the `columns`."),e.filter(e=>e!==u$);let n=Ot(e);const r=new Set(q),a=H.map(_).filter(e=>!j.get(e).disabled),i=a.every(e=>r.has(e)),l=a.some(e=>r.has(e));let s,c,u;if("radio"!==b){let e;if(Y){const t={getPopupContainer:D,items:Y.map((e,t)=>{const{key:n,text:o,onSelect:r}=e;return{key:n??t,onClick:()=>{r?.(a)},label:o}})};e=o.createElement("div",{className:`${S}-selection-extra`},o.createElement(Iw,{menu:t,getPopupContainer:D},o.createElement("span",null,o.createElement(hf,null))))}const t=H.map((e,t)=>{const n=_(e,t),o=j.get(n)||{};return{checked:r.has(n),...o}}).filter(({disabled:e})=>e),n=!!t.length&&t.length===H.length,u=n&&t.every(({checked:e})=>e),p=n&&t.some(({checked:e})=>e),f=d?.()||{},{onChange:h,disabled:g}=f;c=o.createElement(Gb,{"aria-label":e?"Custom selection":"Select all",...f,checked:n?u:!!H.length&&i,indeterminate:n?!u&&p:!i&&l,onChange:e=>{(()=>{const e=[];i?a.forEach(t=>{r.delete(t),e.push(t)}):a.forEach(t=>{r.has(t)||(r.add(t),e.push(t))});const t=Array.from(r);m?.(!i,t.map(e=>N(e)),e.map(e=>N(e))),X(t,"all"),B(null)})(),h?.(e)},disabled:g??(0===H.length||n),skipGroup:!0}),s=!x&&o.createElement("div",{className:`${S}-selection`},c,e)}u="radio"===b?(e,t,n)=>{const a=_(t,n),i=r.has(a),l=j.get(a);return{node:o.createElement(Zv,{...l,checked:i,onClick:e=>{e.stopPropagation(),l?.onClick?.(e)},onChange:e=>{r.has(a)||G(a,!0,[a],e.nativeEvent),l?.onChange?.(e)}}),checked:i}}:(e,t,n)=>{const i=_(t,n),l=r.has(i),s=U.has(i),c=j.get(i);let d;return"nest"===I?(d=s,"production"!==process.env.NODE_ENV&&R("boolean"!=typeof c?.indeterminate,"usage","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):d=c?.indeterminate??s,{node:o.createElement(Gb,{...c,indeterminate:d,checked:l,skipGroup:!0,onClick:e=>{e.stopPropagation(),c?.onClick?.(e)},onChange:e=>{const{nativeEvent:t}=e,{shiftKey:n}=t,o=a.indexOf(i),s=W.some(e=>a.includes(e));if(n&&$&&s){const e=M(o,a,r),t=Array.from(r);g?.(!l,t.map(e=>N(e)),e.map(e=>N(e))),X(t,"multiple")}else{const e=W;if($){const n=l?n$(e,i):o$(e,i);G(i,!l,n,t)}else{const n=Lb([].concat(Ot(e),[i]),!0,F,V),{checkedKeys:o,halfCheckedKeys:r}=n;let a=o;if(l){const e=new Set(o);e.delete(i),a=Lb(Array.from(e),{checked:!1,halfCheckedKeys:r},F,V).checkedKeys}G(i,!l,a,t)}}B(l?null:o),c?.onChange?.(e)}}),checked:l}};if(!n.includes(u$))if(0===n.findIndex(e=>"EXPAND_COLUMN"===e[JC]?.columnType)){const[e,...t]=n;n=[e,u$].concat(Ot(t))}else n=[u$].concat(Ot(n));const p=n.indexOf(u$);"production"!==process.env.NODE_ENV&&R(n.filter(e=>e===u$).length<=1,"usage","Multiple `SELECTION_COLUMN` exist in `columns`."),n=n.filter((e,t)=>e!==u$||t===p);const f=n[p-1],h=n[p+1];let E=w;void 0===E&&(void 0!==h?.fixed?E=h.fixed:void 0!==f?.fixed&&(E=f.fixed)),E&&f&&"EXPAND_COLUMN"===f[JC]?.columnType&&void 0===f.fixed&&(f.fixed=E);const k=ie(`${S}-selection-col`,{[`${S}-selection-col-with-dropdown`]:y&&"checkbox"===b}),P={fixed:E,width:v,className:`${S}-selection-column`,title:t?.columnTitle?"function"==typeof t.columnTitle?t.columnTitle(c):t.columnTitle:s,render:(e,t,n)=>{const{node:o,checked:r}=u(e,t,n);return C?C(r,t,n,o):o},onCell:t.onCell,align:t.align,[JC]:{className:k}};return n.map(e=>e===u$?P:e)},[_,H,t,W,q,U,v,Y,I,j,g,G,V]);return[Z,q]};const b$=(e,t)=>"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function y$(e,t){return t?`${t}-${e}`:`${e}`}const w$=(e,t)=>"function"==typeof e?e(t):e,C$=e=>{const{dropPosition:t,dropLevelOffset:n,indent:o}=e,a={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:a.top=0,a.left=-n*o;break;case 1:a.bottom=0,a.left=-n*o;break;case 0:a.bottom=0,a.left=o}return r.createElement("div",{style:a})};function x$(){return x$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},x$.apply(this,arguments)}"production"!==process.env.NODE_ENV&&(C$.displayName="DropIndicator");const $$=o.forwardRef((e,t)=>{const{className:n,style:r,motion:a,motionNodes:i,motionType:l,onMotionStart:s,onMotionEnd:c,active:d,treeNodeRequiredProps:u,...p}=e,[m,f]=o.useState(!0),{prefixCls:h}=o.useContext(Ux),g=i&&"hide"!==l;ke(()=>{i&&g!==m&&f(g)},[i]);const v=o.useRef(!1),b=()=>{i&&!v.current&&(v.current=!0,c())};!function(e,t){const[n,r]=o.useState(!1);ke(()=>{if(n)return e(),()=>{t()}},[n]),ke(()=>(r(!0),()=>{r(!1)}),[])}(()=>{i&&s()},b);const y=e=>{g===e&&b()};return i?o.createElement(Ti,x$({ref:t,visible:m},a,{motionAppear:"show"===l,onVisibleChanged:y}),({className:e,style:t},n)=>o.createElement("div",{ref:n,className:ie(`${h}-treenode-motion`,e),style:t},i.map(e=>{const{data:{...t},title:n,key:r,isStart:a,isEnd:i}=e;delete t.children;const l=Bb(r,u);return o.createElement(t$,x$({},t,l,{title:n,active:d,data:e.data,key:r,isStart:a,isEnd:i}))}))):o.createElement(t$,x$({domRef:t,className:n,style:r},p,{active:d}))});function S$(e,t,n){const o=e.findIndex(e=>e.key===n),r=e[o+1],a=t.findIndex(e=>e.key===n);if(r){const e=t.findIndex(e=>e.key===r.key);return t.slice(a+1,e)}return t.slice(a+1)}function E$(){return E$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},E$.apply(this,arguments)}"production"!==process.env.NODE_ENV&&($$.displayName="MotionTreeNode");const k$={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},N$=()=>{},_$=`RC_TREE_MOTION_${Math.random()}`,I$={key:_$},P$={key:_$,level:0,index:0,pos:"0",node:I$,nodes:[I$]},O$={parent:null,children:[],pos:P$.pos,data:I$,title:null,key:_$,isStart:[],isEnd:[]};function D$(e,t,n,o){return!1!==t&&n?e.slice(0,Math.ceil(n/o)+1):e}function R$(e){const{key:t,pos:n}=e;return Pb(t,n)}const M$=o.forwardRef((e,t)=>{const{prefixCls:n,data:r,selectable:a,checkable:i,expandedKeys:l,selectedKeys:s,checkedKeys:c,loadedKeys:d,loadingKeys:u,halfCheckedKeys:p,keyEntities:m,disabled:f,dragging:h,dragOverNodeKey:g,dropPosition:v,motion:b,height:y,itemHeight:w,virtual:C,scrollWidth:x,focusable:$,activeItem:S,focused:E,tabIndex:k,onKeyDown:N,onFocus:_,onBlur:I,onActiveChange:P,onListChangeStart:O,onListChangeEnd:D,...R}=e,M=o.useRef(null),B=o.useRef(null);o.useImperativeHandle(t,()=>({scrollTo:e=>{M.current.scrollTo(e)},getIndentWidth:()=>B.current.offsetWidth}));const[T,z]=o.useState(l),[A,L]=o.useState(r),[H,F]=o.useState(r),[j,V]=o.useState([]),[W,K]=o.useState(null),q=o.useRef(r);function U(){const e=q.current;L(e),F(e),V([]),K(null),D()}q.current=r,ke(()=>{z(l);const e=function(e=[],t=[]){const n=e.length,o=t.length;if(1!==Math.abs(n-o))return{add:!1,key:null};function r(e,t){const n=new Map;e.forEach(e=>{n.set(e,!0)});const o=t.filter(e=>!n.has(e));return 1===o.length?o[0]:null}return n<o?{add:!0,key:r(e,t)}:{add:!1,key:r(t,e)}}(T,l);if(null!==e.key)if(e.add){const t=A.findIndex(({key:t})=>t===e.key),n=D$(S$(A,r,e.key),C,y,w),o=A.slice();o.splice(t+1,0,O$),F(o),V(n),K("show")}else{const t=r.findIndex(({key:t})=>t===e.key),n=D$(S$(r,A,e.key),C,y,w),o=r.slice();o.splice(t+1,0,O$),F(o),V(n),K("hide")}else A!==r&&(L(r),F(r))},[l,r]),o.useEffect(()=>{h||U()},[h]);const X=b?H:r,G={expandedKeys:l,selectedKeys:s,loadedKeys:d,loadingKeys:u,checkedKeys:c,halfCheckedKeys:p,dragOverNodeKey:g,dropPosition:v,keyEntities:m};return o.createElement(o.Fragment,null,E&&S&&o.createElement("span",{style:k$,"aria-live":"assertive"},function(e){let t=String(e.data.key),n=e;for(;n.parent;)n=n.parent,t=`${n.data.key} > ${t}`;return t}(S)),o.createElement("div",null,o.createElement("input",{style:k$,disabled:!1===$||f,tabIndex:!1!==$?k:null,onKeyDown:N,onFocus:_,onBlur:I,value:"",onChange:N$,"aria-label":"for screen reader"})),o.createElement("div",{className:`${n}-treenode`,"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},o.createElement("div",{className:`${n}-indent`},o.createElement("div",{ref:B,className:`${n}-indent-unit`}))),o.createElement($m,E$({},R,{data:X,itemKey:R$,height:y,fullHeight:!1,virtual:C,itemHeight:w,scrollWidth:x,prefixCls:`${n}-list`,ref:M,role:"tree",onVisibleChange:e=>{e.every(e=>R$(e)!==_$)&&U()}}),e=>{const{pos:t,data:{...n},title:r,key:a,isStart:i,isEnd:l}=e,s=Pb(a,t);delete n.key,delete n.children;const c=Bb(s,G);return o.createElement($$,E$({},n,c,{title:r,active:!!S&&a===S.key,pos:t,data:e.data,isStart:i,isEnd:l,motion:b,motionNodes:a===_$?j:null,motionType:W,onMotionStart:O,onMotionEnd:U,treeNodeRequiredProps:G,onMouseMove:()=>{P(null)}}))}))});function B$(){return B$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},B$.apply(this,arguments)}"production"!==process.env.NODE_ENV&&(M$.displayName="NodeList");class T$ extends o.Component{static defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:C$,allowDrop:()=>!0,expandAction:!1};static TreeNode=t$;destroyed=!1;delayedDragEnterLogic;loadingRetryTimes={};state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:Ob()};dragStartMousePosition=null;dragNodeProps=null;currentMouseOverDroppableNodeKey=null;listRef=o.createRef();componentDidMount(){this.destroyed=!1,this.onUpdated()}componentDidUpdate(){this.onUpdated()}onUpdated(){const{activeKey:e,itemScrollOffset:t=0}=this.props;void 0!==e&&e!==this.state.activeKey&&(this.setState({activeKey:e}),null!==e&&this.scrollTo({key:e,offset:t}))}componentWillUnmount(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}static getDerivedStateFromProps(e,t){const{prevProps:n}=t,o={prevProps:e};function r(t){return!n&&e.hasOwnProperty(t)||n&&n[t]!==e[t]}let a,{fieldNames:i}=t;if(r("fieldNames")&&(i=Ob(e.fieldNames),o.fieldNames=i),r("treeData")?({treeData:a}=e):r("children")&&(at(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),a=Db(e.children)),a){o.treeData=a;const e=Mb(a,{fieldNames:i});o.keyEntities={[_$]:P$,...e.keyEntities},"production"!==process.env.NODE_ENV&&function(e,t){const n=new Map;!function e(o,r=""){(o||[]).forEach(o=>{const a=o[t.key],i=o[t.children];at(null!=a,`Tree node must have a certain key: [${r}${a}]`);const l=String(a);at(!n.has(l)||null==a,`Same 'key' exist in the Tree: ${l}`),n.set(l,!0),e(i,`${r}${l} > `)})}(e)}(a,i)}const l=o.keyEntities||t.keyEntities;if(r("expandedKeys")||n&&r("autoExpandParent"))o.expandedKeys=e.autoExpandParent||!n&&e.defaultExpandParent?d$(e.expandedKeys,l):e.expandedKeys;else if(!n&&e.defaultExpandAll){const e={...l};delete e[_$];const t=[];Object.keys(e).forEach(n=>{const o=e[n];o.children&&o.children.length&&t.push(o.key)}),o.expandedKeys=t}else!n&&e.defaultExpandedKeys&&(o.expandedKeys=e.autoExpandParent||e.defaultExpandParent?d$(e.defaultExpandedKeys,l):e.defaultExpandedKeys);if(o.expandedKeys||delete o.expandedKeys,a||o.expandedKeys){const e=Rb(a||t.treeData,o.expandedKeys||t.expandedKeys,i);o.flattenNodes=e}if(e.selectable&&(r("selectedKeys")?o.selectedKeys=s$(e.selectedKeys,e):!n&&e.defaultSelectedKeys&&(o.selectedKeys=s$(e.defaultSelectedKeys,e))),e.checkable){let i;if(r("checkedKeys")?i=c$(e.checkedKeys)||{}:!n&&e.defaultCheckedKeys?i=c$(e.defaultCheckedKeys)||{}:a&&(i=c$(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),i){let{checkedKeys:t=[],halfCheckedKeys:n=[]}=i;if(!e.checkStrictly){const e=Lb(t,!0,l);({checkedKeys:t,halfCheckedKeys:n}=e)}o.checkedKeys=t,o.halfCheckedKeys=n}}return r("loadedKeys")&&(o.loadedKeys=e.loadedKeys),o}onNodeDragStart=(e,t)=>{const{expandedKeys:n,keyEntities:o}=this.state,{onDragStart:r}=this.props,{eventKey:a}=t;this.dragNodeProps=t,this.dragStartMousePosition={x:e.clientX,y:e.clientY};const i=n$(n,a);this.setState({draggingNodeKey:a,dragChildrenKeys:a$(a,o),indent:this.listRef.current.getIndentWidth()}),this.setExpandedKeys(i),window.addEventListener("dragend",this.onWindowDragEnd),r?.({event:e,node:Tb(t)})};onNodeDragEnter=(e,t)=>{const{expandedKeys:n,keyEntities:o,dragChildrenKeys:r,flattenNodes:a,indent:i}=this.state,{onDragEnter:l,onExpand:s,allowDrop:c,direction:d}=this.props,{pos:u,eventKey:p}=t;if(this.currentMouseOverDroppableNodeKey!==p&&(this.currentMouseOverDroppableNodeKey=p),!this.dragNodeProps)return void this.resetDragState();const{dropPosition:m,dropLevelOffset:f,dropTargetKey:h,dropContainerKey:g,dropTargetPos:v,dropAllowed:b,dragOverNodeKey:y}=l$(e,this.dragNodeProps,t,i,this.dragStartMousePosition,c,a,o,n,d);!r.includes(h)&&b?(this.delayedDragEnterLogic||(this.delayedDragEnterLogic={}),Object.keys(this.delayedDragEnterLogic).forEach(e=>{clearTimeout(this.delayedDragEnterLogic[e])}),this.dragNodeProps.eventKey!==t.eventKey&&(e.persist(),this.delayedDragEnterLogic[u]=window.setTimeout(()=>{if(null===this.state.draggingNodeKey)return;let r=[...n];const a=_b(o,t.eventKey);a&&(a.children||[]).length&&(r=o$(n,t.eventKey)),this.props.hasOwnProperty("expandedKeys")||this.setExpandedKeys(r),s?.(r,{node:Tb(t),expanded:!0,nativeEvent:e.nativeEvent})},800)),this.dragNodeProps.eventKey!==h||0!==f?(this.setState({dragOverNodeKey:y,dropPosition:m,dropLevelOffset:f,dropTargetKey:h,dropContainerKey:g,dropTargetPos:v,dropAllowed:b}),l?.({event:e,node:Tb(t),expandedKeys:n})):this.resetDragState()):this.resetDragState()};onNodeDragOver=(e,t)=>{const{dragChildrenKeys:n,flattenNodes:o,keyEntities:r,expandedKeys:a,indent:i}=this.state,{onDragOver:l,allowDrop:s,direction:c}=this.props;if(!this.dragNodeProps)return;const{dropPosition:d,dropLevelOffset:u,dropTargetKey:p,dropContainerKey:m,dropTargetPos:f,dropAllowed:h,dragOverNodeKey:g}=l$(e,this.dragNodeProps,t,i,this.dragStartMousePosition,s,o,r,a,c);!n.includes(p)&&h&&(this.dragNodeProps.eventKey===p&&0===u?null===this.state.dropPosition&&null===this.state.dropLevelOffset&&null===this.state.dropTargetKey&&null===this.state.dropContainerKey&&null===this.state.dropTargetPos&&!1===this.state.dropAllowed&&null===this.state.dragOverNodeKey||this.resetDragState():d===this.state.dropPosition&&u===this.state.dropLevelOffset&&p===this.state.dropTargetKey&&m===this.state.dropContainerKey&&f===this.state.dropTargetPos&&h===this.state.dropAllowed&&g===this.state.dragOverNodeKey||this.setState({dropPosition:d,dropLevelOffset:u,dropTargetKey:p,dropContainerKey:m,dropTargetPos:f,dropAllowed:h,dragOverNodeKey:g}),l?.({event:e,node:Tb(t)}))};onNodeDragLeave=(e,t)=>{this.currentMouseOverDroppableNodeKey!==t.eventKey||e.currentTarget.contains(e.relatedTarget)||(this.resetDragState(),this.currentMouseOverDroppableNodeKey=null);const{onDragLeave:n}=this.props;n?.({event:e,node:Tb(t)})};onWindowDragEnd=e=>{this.onNodeDragEnd(e,null,!0),window.removeEventListener("dragend",this.onWindowDragEnd)};onNodeDragEnd=(e,t)=>{const{onDragEnd:n}=this.props;this.setState({dragOverNodeKey:null}),this.cleanDragState(),n?.({event:e,node:Tb(t)}),this.dragNodeProps=null,window.removeEventListener("dragend",this.onWindowDragEnd)};onNodeDrop=(e,t,n=!1)=>{const{dragChildrenKeys:o,dropPosition:r,dropTargetKey:a,dropTargetPos:i,dropAllowed:l}=this.state;if(!l)return;const{onDrop:s}=this.props;if(this.setState({dragOverNodeKey:null}),this.cleanDragState(),null===a)return;const c={...Bb(a,this.getTreeNodeRequiredProps()),active:this.getActiveItem()?.key===a,data:_b(this.state.keyEntities,a).node};at(!o.includes(a),"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");const d=r$(i),u={event:e,node:Tb(c),dragNode:this.dragNodeProps?Tb(this.dragNodeProps):null,dragNodesKeys:[this.dragNodeProps.eventKey].concat(o),dropToGap:0!==r,dropPosition:r+Number(d[d.length-1])};n||s?.(u),this.dragNodeProps=null};resetDragState(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}cleanDragState=()=>{const{draggingNodeKey:e}=this.state;null!==e&&this.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),this.dragStartMousePosition=null,this.currentMouseOverDroppableNodeKey=null};triggerExpandActionExpand=(e,t)=>{const{expandedKeys:n,flattenNodes:o}=this.state,{expanded:r,key:a,isLeaf:i}=t;if(i||e.shiftKey||e.metaKey||e.ctrlKey)return;const l=o.filter(e=>e.key===a)[0],s=Tb({...Bb(a,this.getTreeNodeRequiredProps()),data:l.data});this.setExpandedKeys(r?n$(n,a):o$(n,a)),this.onNodeExpand(e,s)};onNodeClick=(e,t)=>{const{onClick:n,expandAction:o}=this.props;"click"===o&&this.triggerExpandActionExpand(e,t),n?.(e,t)};onNodeDoubleClick=(e,t)=>{const{onDoubleClick:n,expandAction:o}=this.props;"doubleClick"===o&&this.triggerExpandActionExpand(e,t),n?.(e,t)};onNodeSelect=(e,t)=>{let{selectedKeys:n}=this.state;const{keyEntities:o,fieldNames:r}=this.state,{onSelect:a,multiple:i}=this.props,{selected:l}=t,s=t[r.key],c=!l;n=c?i?o$(n,s):[s]:n$(n,s);const d=n.map(e=>{const t=_b(o,e);return t?t.node:null}).filter(Boolean);this.setUncontrolledState({selectedKeys:n}),a?.(n,{event:"select",selected:c,node:t,selectedNodes:d,nativeEvent:e.nativeEvent})};onNodeCheck=(e,t,n)=>{const{keyEntities:o,checkedKeys:r,halfCheckedKeys:a}=this.state,{checkStrictly:i,onCheck:l}=this.props,{key:s}=t;let c;const d={event:"check",node:t,checked:n,nativeEvent:e.nativeEvent};if(i){const e=n?o$(r,s):n$(r,s);c={checked:e,halfChecked:n$(a,s)},d.checkedNodes=e.map(e=>_b(o,e)).filter(Boolean).map(e=>e.node),this.setUncontrolledState({checkedKeys:e})}else{let{checkedKeys:e,halfCheckedKeys:t}=Lb([...r,s],!0,o);if(!n){const n=new Set(e);n.delete(s),({checkedKeys:e,halfCheckedKeys:t}=Lb(Array.from(n),{checked:!1,halfCheckedKeys:t},o))}c=e,d.checkedNodes=[],d.checkedNodesPositions=[],d.halfCheckedKeys=t,e.forEach(e=>{const t=_b(o,e);if(!t)return;const{node:n,pos:r}=t;d.checkedNodes.push(n),d.checkedNodesPositions.push({node:n,pos:r})}),this.setUncontrolledState({checkedKeys:e},!1,{halfCheckedKeys:t})}l?.(c,d)};onNodeLoad=e=>{const{key:t}=e,{keyEntities:n}=this.state,o=_b(n,t);if(o?.children?.length)return;const r=new Promise((n,o)=>{this.setState(({loadedKeys:r=[],loadingKeys:a=[]})=>{const{loadData:i,onLoad:l}=this.props;if(!i||r.includes(t)||a.includes(t))return null;return i(e).then(()=>{const{loadedKeys:o}=this.state,r=o$(o,t);l?.(r,{event:"load",node:e}),this.setUncontrolledState({loadedKeys:r}),this.setState(e=>({loadingKeys:n$(e.loadingKeys,t)})),n()}).catch(e=>{if(this.setState(e=>({loadingKeys:n$(e.loadingKeys,t)})),this.loadingRetryTimes[t]=(this.loadingRetryTimes[t]||0)+1,this.loadingRetryTimes[t]>=10){const{loadedKeys:e}=this.state;at(!1,"Retry for `loadData` many times but still failed. No more retry."),this.setUncontrolledState({loadedKeys:o$(e,t)}),n()}o(e)}),{loadingKeys:o$(a,t)}})});return r.catch(()=>{}),r};onNodeMouseEnter=(e,t)=>{const{onMouseEnter:n}=this.props;n?.({event:e,node:t})};onNodeMouseLeave=(e,t)=>{const{onMouseLeave:n}=this.props;n?.({event:e,node:t})};onNodeContextMenu=(e,t)=>{const{onRightClick:n}=this.props;n&&(e.preventDefault(),n({event:e,node:t}))};onFocus=(...e)=>{const{onFocus:t}=this.props;this.setState({focused:!0}),t?.(...e)};onBlur=(...e)=>{const{onBlur:t}=this.props;this.setState({focused:!1}),this.onActiveChange(null),t?.(...e)};getTreeNodeRequiredProps=()=>{const{expandedKeys:e,selectedKeys:t,loadedKeys:n,loadingKeys:o,checkedKeys:r,halfCheckedKeys:a,dragOverNodeKey:i,dropPosition:l,keyEntities:s}=this.state;return{expandedKeys:e||[],selectedKeys:t||[],loadedKeys:n||[],loadingKeys:o||[],checkedKeys:r||[],halfCheckedKeys:a||[],dragOverNodeKey:i,dropPosition:l,keyEntities:s}};setExpandedKeys=e=>{const{treeData:t,fieldNames:n}=this.state,o=Rb(t,e,n);this.setUncontrolledState({expandedKeys:e,flattenNodes:o},!0)};onNodeExpand=(e,t)=>{let{expandedKeys:n}=this.state;const{listChanging:o,fieldNames:r}=this.state,{onExpand:a,loadData:i}=this.props,{expanded:l}=t,s=t[r.key];if(o)return;const c=n.includes(s),d=!l;if(at(l&&c||!l&&!c,"Expand state not sync with index check"),n=d?o$(n,s):n$(n,s),this.setExpandedKeys(n),a?.(n,{node:t,expanded:d,nativeEvent:e.nativeEvent}),d&&i){const e=this.onNodeLoad(t);e&&e.then(()=>{const e=Rb(this.state.treeData,n,r);this.setUncontrolledState({flattenNodes:e})}).catch(()=>{const{expandedKeys:e}=this.state,t=n$(e,s);this.setExpandedKeys(t)})}};onListChangeStart=()=>{this.setUncontrolledState({listChanging:!0})};onListChangeEnd=()=>{setTimeout(()=>{this.setUncontrolledState({listChanging:!1})})};onActiveChange=e=>{const{activeKey:t}=this.state,{onActiveChange:n,itemScrollOffset:o=0}=this.props;t!==e&&(this.setState({activeKey:e}),null!==e&&this.scrollTo({key:e,offset:o}),n?.(e))};getActiveItem=()=>{const{activeKey:e,flattenNodes:t}=this.state;return null===e?null:t.find(({key:t})=>t===e)||null};offsetActiveKey=e=>{const{flattenNodes:t,activeKey:n}=this.state;let o=t.findIndex(({key:e})=>e===n);-1===o&&e<0&&(o=t.length),o=(o+e+t.length)%t.length;const r=t[o];if(r){const{key:e}=r;this.onActiveChange(e)}else this.onActiveChange(null)};onKeyDown=e=>{const{activeKey:t,expandedKeys:n,checkedKeys:o,fieldNames:r}=this.state,{onKeyDown:a,checkable:i,selectable:l}=this.props;switch(e.which){case Fs.UP:this.offsetActiveKey(-1),e.preventDefault();break;case Fs.DOWN:this.offsetActiveKey(1),e.preventDefault()}const s=this.getActiveItem();if(s&&s.data){const a=this.getTreeNodeRequiredProps(),c=!1===s.data.isLeaf||!!(s.data[r.children]||[]).length,d=Tb({...Bb(t,a),data:s.data,active:!0});switch(e.which){case Fs.LEFT:c&&n.includes(t)?this.onNodeExpand({},d):s.parent&&this.onActiveChange(s.parent.key),e.preventDefault();break;case Fs.RIGHT:c&&!n.includes(t)?this.onNodeExpand({},d):s.children&&s.children.length&&this.onActiveChange(s.children[0].key),e.preventDefault();break;case Fs.ENTER:case Fs.SPACE:!i||d.disabled||!1===d.checkable||d.disableCheckbox?i||!l||d.disabled||!1===d.selectable||this.onNodeSelect({},d):this.onNodeCheck({},d,!o.includes(t))}}a?.(e)};setUncontrolledState=(e,t=!1,n=null)=>{if(!this.destroyed){let o=!1,r=!0;const a={};Object.keys(e).forEach(t=>{this.props.hasOwnProperty(t)?r=!1:(o=!0,a[t]=e[t])}),!o||t&&!r||this.setState({...a,...n})}};scrollTo=e=>{this.listRef.current.scrollTo(e)};render(){const{focused:e,flattenNodes:t,keyEntities:n,draggingNodeKey:r,activeKey:a,dropLevelOffset:i,dropContainerKey:l,dropTargetKey:s,dropPosition:c,dragOverNodeKey:d,indent:u}=this.state,{prefixCls:p,className:m,style:f,styles:h,classNames:g,showLine:v,focusable:b,tabIndex:y=0,selectable:w,showIcon:C,icon:x,switcherIcon:$,draggable:S,checkable:E,checkStrictly:k,disabled:N,motion:_,loadData:I,filterTreeNode:P,height:O,itemHeight:D,scrollWidth:R,virtual:M,titleRender:B,dropIndicatorRender:T,onContextMenu:z,onScroll:A,direction:L,rootClassName:H,rootStyle:F}=this.props,j=Li(this.props,{aria:!0,data:!0});let V;S&&(V="object"==typeof S?S:"function"==typeof S?{nodeDraggable:S}:{});const W={styles:h,classNames:g,prefixCls:p,selectable:w,showIcon:C,icon:x,switcherIcon:$,draggable:V,draggingNodeKey:r,checkable:E,checkStrictly:k,disabled:N,keyEntities:n,dropLevelOffset:i,dropContainerKey:l,dropTargetKey:s,dropPosition:c,dragOverNodeKey:d,indent:u,direction:L,dropIndicatorRender:T,loadData:I,filterTreeNode:P,titleRender:B,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return o.createElement(Ux.Provider,{value:W},o.createElement("div",{className:ie(p,m,H,{[`${p}-show-line`]:v,[`${p}-focused`]:e,[`${p}-active-focused`]:null!==a}),style:F},o.createElement(M$,B$({ref:this.listRef,prefixCls:p,style:f,data:t,disabled:N,selectable:w,checkable:!!E,motion:_,dragging:null!==r,height:O,itemHeight:D,virtual:M,focusable:b,focused:e,tabIndex:y,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:z,onScroll:A,scrollWidth:R},this.getTreeNodeRequiredProps(),j))))}}const z$=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:o,motionDurationMid:r,borderRadius:a,controlItemBgHover:i})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:"static",[`&:has(${e}-drop-indicator)`]:{position:"relative"},[`> *:not(${e}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${r}`,content:'""',borderRadius:a},"&:hover:before":{background:i}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:a,[`${e}-switcher, ${e}-draggable-icon`]:{color:o},[`${e}-node-content-wrapper`]:{color:o,background:"transparent","&, &:hover":{color:o},"&:before, &:hover:before":{background:n}}}}}),A$=new Uo("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),L$=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),H$=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${wn(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),F$=(e,t)=>{const{treeCls:n,treeNodeCls:o,treeNodePadding:r,titleHeight:a,indentSize:i,nodeSelectedBg:l,nodeHoverBg:s,colorTextQuaternary:c,controlItemBgActiveDisabled:d}=t;return{[n]:{...Ea(t),"--rc-virtual-list-scrollbar-bg":t.colorSplit,background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:ka(t),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${o}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:A$,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[o]:{display:"flex",alignItems:"flex-start",marginBottom:r,lineHeight:wn(a),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:r},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${o}-disabled${o}-selected ${n}-node-content-wrapper`]:{backgroundColor:d},[`${n}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${o}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${o}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:t.fontWeightStrong},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:a,textAlign:"center",visibility:"visible",color:c},[`&${o}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(a).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:{...L$(e,t),position:"relative",flex:"none",alignSelf:"stretch",width:a,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:a,height:a,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(r).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(a).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}},[`${n}-node-content-wrapper`]:{position:"relative",minHeight:a,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,...H$(e,t),"&:hover":{backgroundColor:s},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:l},[`${n}-iconEle`]:{display:"inline-block",width:a,height:a,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${o}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(r).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${o}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${wn(t.calc(a).div(2).equal())} !important`}}}},j$=(e,t,n=!0)=>{const o=`.${e}`,r=`${o}-treenode`,a=t.calc(t.paddingXS).div(2).equal(),i=wr(t,{treeCls:o,treeNodeCls:r,treeNodePadding:a});return[F$(e,i),n&&z$(i)].filter(Boolean)},V$=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:o}=e;return{titleHeight:t,indentSize:t,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:o,nodeSelectedColor:e.colorText}};var W$=Pa("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:Hb(`${t}-checkbox`,e)},j$(t,e),od(e)],e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return{...V$(e),directoryNodeSelectedColor:t,directoryNodeSelectedBg:n}});function K$(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:o,indent:a,direction:i="ltr"}=e,l="ltr"===i?"left":"right",s="ltr"===i?"right":"left",c={[l]:-n*a+4,[s]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[l]=a+4}return r.createElement("div",{style:c,className:`${o}-drop-indicator`})}var q$=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:a,switcherLoadingIcon:i}=e,{isLeaf:l,expanded:s,loading:c}=r;if(c)return o.isValidElement(i)?i:o.createElement(qs,{className:`${t}-switcher-loading-icon`});let d;if(a&&"object"==typeof a&&(d=a.showLeafIcon),l){if(!a)return null;if("boolean"!=typeof d&&d){const e="function"==typeof d?d(r):d,n=`${t}-switcher-line-custom-icon`;return o.isValidElement(e)?xl(e,{className:ie(e.props?.className,n)}):e}return d?o.createElement(Ey,{className:`${t}-switcher-line-icon`}):o.createElement("span",{className:`${t}-switcher-leaf-line`})}const u=`${t}-switcher-icon`,p="function"==typeof n?n(r):n;return o.isValidElement(p)?xl(p,{className:ie(p.props?.className,u)}):void 0!==p?p:a?s?o.createElement(Yy,{className:`${t}-switcher-line-icon`}):o.createElement(tw,{className:`${t}-switcher-line-icon`}):o.createElement(ey,{className:u})};const U$=r.forwardRef((e,t)=>{const{getPrefixCls:n,direction:o,className:a,style:i,classNames:l,styles:s}=Vt("tree"),{virtual:c}=r.useContext(Ft),{prefixCls:d,className:u,showIcon:p=!1,showLine:m,switcherIcon:f,switcherLoadingIcon:h,blockNode:g=!1,children:v,checkable:b=!1,selectable:y=!0,draggable:w,disabled:C,motion:x,style:$,rootClassName:S,classNames:E,styles:k}=e,N=r.useContext(_s),_=C??N,I=n("tree",d),P=n(),O=x??{...Qs(P),motionAppear:!1},D={...e,showIcon:p,blockNode:g,checkable:b,selectable:y,disabled:_,motion:O},[R,M]=ul([l,E],[s,k],{props:D}),B={...e,checkable:b,selectable:y,showIcon:p,motion:O,blockNode:g,disabled:_,showLine:Boolean(m),dropIndicatorRender:K$},[T,z]=W$(I),[,A]=$a(),L=A.paddingXS/2+(A.Tree?.titleHeight||A.controlHeightSM),H=r.useMemo(()=>{if(!w)return!1;let e={};switch(typeof w){case"function":e.nodeDraggable=w;break;case"object":e={...w}}return!1!==e.icon&&(e.icon=e.icon||r.createElement(Ky,null)),e},[w]);return r.createElement(T$,{itemHeight:L,ref:t,virtual:c,...B,prefixCls:I,className:ie({[`${I}-icon-hide`]:!p,[`${I}-block-node`]:g,[`${I}-unselectable`]:!y,[`${I}-rtl`]:"rtl"===o,[`${I}-disabled`]:_},a,u,T,z),style:{...i,...$},rootClassName:ie(R?.root,S),rootStyle:M?.root,classNames:R,styles:M,direction:o,checkable:b?r.createElement("span",{className:`${I}-checkbox-inner`}):b,selectable:y,switcherIcon:e=>r.createElement(q$,{prefixCls:I,switcherIcon:f,switcherLoadingIcon:h,treeNodeProps:e,showLine:m}),draggable:H},v)});"production"!==process.env.NODE_ENV&&(U$.displayName="Tree");var X$=U$;function G$(e,t,n){const{key:o,children:r}=n;e.forEach(function(e){const a=e[o],i=e[r];!1!==t(a,e)&&G$(i||[],t,n)})}function Y$({treeData:e,expandedKeys:t,startKey:n,endKey:o,fieldNames:r}){const a=[];let i=0;if(n&&n===o)return[n];if(!n||!o)return[];return G$(e,e=>{if(2===i)return!1;if(function(e){return e===n||e===o}(e)){if(a.push(e),0===i)i=1;else if(1===i)return i=2,!1}else 1===i&&a.push(e);return t.includes(e)},Ob(r)),a}function Z$(e,t,n){const o=Ot(t),r=[];return G$(e,(e,t)=>{const n=o.indexOf(e);return-1!==n&&(r.push(t),o.splice(n,1)),!!o.length},Ob(n)),r}function Q$(e){const{isLeaf:t,expanded:n}=e;return t?o.createElement(Ey,null):n?o.createElement(By,null):o.createElement(Hy,null)}function J$({treeData:e,children:t}){return e||Db(t)}const eS=({defaultExpandAll:e,defaultExpandParent:t,defaultExpandedKeys:n,...r},a)=>{const i=o.useRef(null),l=o.useRef(null),[s,c]=o.useState(r.selectedKeys||r.defaultSelectedKeys||[]),[d,u]=o.useState(()=>(()=>{const{keyEntities:o}=Mb(J$(r),{fieldNames:r.fieldNames});let a;return a=e?Object.keys(o):t?d$(r.expandedKeys||n||[],o):r.expandedKeys||n||[],a})());o.useEffect(()=>{"selectedKeys"in r&&c(r.selectedKeys)},[r.selectedKeys]),o.useEffect(()=>{"expandedKeys"in r&&u(r.expandedKeys)},[r.expandedKeys]);const{getPrefixCls:p,direction:m}=o.useContext(Ft),{prefixCls:f,className:h,showIcon:g=!0,expandAction:v="click",...b}=r,y=p("tree",f),w=ie(`${y}-directory`,{[`${y}-directory-rtl`]:"rtl"===m},h);return o.createElement(X$,{icon:Q$,ref:a,blockNode:!0,...b,showIcon:g,expandAction:v,prefixCls:y,className:w,expandedKeys:d,selectedKeys:s,onSelect:(e,t)=>{const{multiple:n,fieldNames:o}=r,{node:a,nativeEvent:s}=t,{key:u=""}=a,p=J$(r),m={...t,selected:!0},f=s?.ctrlKey||s?.metaKey,h=s?.shiftKey;let g;n&&f?(g=e,i.current=u,l.current=g,m.selectedNodes=Z$(p,g,o)):n&&h?(g=Array.from(new Set([].concat(Ot(l.current||[]),Ot(Y$({treeData:p,expandedKeys:d,startKey:u,endKey:i.current,fieldNames:o}))))),m.selectedNodes=Z$(p,g,o)):(g=[u],i.current=u,l.current=g,m.selectedNodes=Z$(p,g,o)),r.onSelect?.(g,m),"selectedKeys"in r||c(g)},onExpand:(e,t)=>("expandedKeys"in r||u(e),r.onExpand?.(e,t))})},tS=o.forwardRef(eS);"production"!==process.env.NODE_ENV&&(tS.displayName="DirectoryTree");var nS=tS;const oS=X$;oS.DirectoryTree=nS,oS.TreeNode=t$;var rS=oS;var aS=r.createContext(!1);var iS=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:a,onChange:i}=e;return n?o.createElement("div",{className:`${r}-filter-dropdown-search`},o.createElement(fw,{prefix:o.createElement(wf,null),placeholder:a.filterSearchPlaceholder,onChange:i,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null};const lS=e=>{const{keyCode:t}=e;t===Fs.ENTER&&e.stopPropagation()},sS=o.forwardRef((e,t)=>o.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:lS,ref:t},e.children));"production"!==process.env.NODE_ENV&&(sS.displayName="FilterDropdownMenuWrapper");var cS=sS;function dS(e){let t=[];return(e||[]).forEach(({value:e,children:n})=>{t.push(e),n&&(t=[].concat(Ot(t),Ot(dS(n))))}),t}function uS(e,t){return("string"==typeof t||"number"==typeof t)&&t?.toString().toLowerCase().includes(e.trim().toLowerCase())}function pS({filters:e,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:a,filterSearch:i}){return e.map((e,l)=>{const s=String(e.value);if(e.children)return{key:s||l,label:e.text,popupClassName:`${t}-dropdown-submenu`,children:pS({filters:e.children,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:a,filterSearch:i})};const c=r?Gb:Zv,d={key:void 0!==e.value?s:l,label:o.createElement(o.Fragment,null,o.createElement(c,{checked:n.includes(s)}),o.createElement("span",null,e.text))};return a.trim()?"function"==typeof i?i(a,e)?d:null:uS(a,e.text)?d:null:d})}function mS(e){return e||[]}const fS=e=>{const{tablePrefixCls:t,prefixCls:n,column:r,dropdownPrefixCls:a,columnKey:i,filterOnClose:l,filterMultiple:s,filterMode:c="menu",filterSearch:d=!1,filterState:u,triggerFilter:p,locale:m,children:f,getPopupContainer:h,rootClassName:g}=e,{filterResetToDefaultFilteredValue:v,defaultFilteredValue:b,filterDropdownProps:y={},filterDropdownOpen:w,onFilterDropdownOpenChange:C}=r,[x,$]=o.useState(!1),S=o.useContext(aS),E=!(!u||!u.filteredKeys?.length&&!u.forceFiltered),k=e=>{$(e),y.onOpenChange?.(e),C?.(e)};if("production"!==process.env.NODE_ENV){const e=ht("Table");[["filterDropdownOpen","filterDropdownProps.open"],["onFilterDropdownOpenChange","filterDropdownProps.onOpenChange"]].forEach(([t,n])=>{e.deprecated(!(t in r),t,n)}),e.deprecated(!("filterCheckall"in m),"filterCheckall","locale.filterCheckAll")}const N=y.open??w??x,_=u?.filteredKeys,[I,P]=(e=>{const t=o.useRef(e),[,n]=rl();return[()=>t.current,e=>{t.current=e,n()}]})(mS(_)),O=({selectedKeys:e})=>{P(e)},D=(e,{node:t,checked:n})=>{O(s?{selectedKeys:e}:{selectedKeys:n&&t.key?[t.key]:[]})};o.useEffect(()=>{x&&O({selectedKeys:mS(_)})},[_]);const[R,M]=o.useState([]),B=e=>{M(e)},[T,z]=o.useState(""),A=e=>{const{value:t}=e.target;z(t)};o.useEffect(()=>{x||z("")},[x]);const L=e=>{const t=e?.length?e:null;return null!==t||u&&u.filteredKeys?tn(t,u?.filteredKeys,!0)?null:void p({column:r,key:i,filteredKeys:t}):null},H=()=>{k(!1),L(I())},F=({confirm:e,closeDropdown:t}={confirm:!1,closeDropdown:!1})=>{e&&L([]),t&&k(!1),z(""),P(v?(b||[]).map(e=>String(e)):[])},j=({closeDropdown:e}={closeDropdown:!0})=>{e&&k(!1),L(I())},V=ie({[`${a}-menu-without-submenu`]:(W=r.filters||[],!W.some(({children:e})=>e))});var W;const K=e=>{if(e.target.checked){const e=dS(r?.filters).map(e=>String(e));P(e)}else P([])},q=({filters:e})=>(e||[]).map((e,t)=>{const n=String(e.value),o={title:e.text,key:void 0!==e.value?n:String(t)};return e.children&&(o.children=q({filters:e.children})),o}),U=e=>({...e,text:e.title,value:e.key,children:e.children?.map(e=>U(e))||[]});let X;const{direction:G,renderEmpty:Y}=o.useContext(Ft);if("function"==typeof r.filterDropdown)X=r.filterDropdown({prefixCls:`${a}-custom`,setSelectedKeys:e=>O({selectedKeys:e}),selectedKeys:I(),confirm:j,clearFilters:F,filters:r.filters,visible:N,close:()=>{k(!1)}});else if(r.filterDropdown)X=r.filterDropdown;else{const e=I()||[],i=()=>{const i=Y?.("Table.filter")??o.createElement(Km,{image:Km.PRESENTED_IMAGE_SIMPLE,description:m.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if(0===(r.filters||[]).length)return i;if("tree"===c)return o.createElement(o.Fragment,null,o.createElement(iS,{filterSearch:d,value:T,onChange:A,tablePrefixCls:t,locale:m}),o.createElement("div",{className:`${t}-filter-dropdown-tree`},s?o.createElement(Gb,{checked:e.length===dS(r.filters).length,indeterminate:e.length>0&&e.length<dS(r.filters).length,className:`${t}-filter-dropdown-checkall`,onChange:K},m?.filterCheckall??m?.filterCheckAll):null,o.createElement(rS,{checkable:!0,selectable:!1,blockNode:!0,multiple:s,checkStrictly:!s,className:`${a}-menu`,onCheck:D,checkedKeys:e,selectedKeys:e,showIcon:!1,treeData:q({filters:r.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:T.trim()?e=>"function"==typeof d?d(T,U(e)):uS(T,e.title):void 0})));const l=pS({filters:r.filters||[],filterSearch:d,prefixCls:n,filteredKeys:I(),filterMultiple:s,searchValue:T}),u=l.every(e=>null===e);return o.createElement(o.Fragment,null,o.createElement(iS,{filterSearch:d,value:T,onChange:A,tablePrefixCls:t,locale:m}),u?i:o.createElement(mv,{selectable:!0,multiple:s,prefixCls:`${a}-menu`,className:V,onSelect:O,onDeselect:O,selectedKeys:e,getPopupContainer:h,openKeys:R,onOpenChange:B,items:l}))},l=()=>v?tn((b||[]).map(e=>String(e)),e,!0):0===e.length;X=o.createElement(o.Fragment,null,i(),o.createElement("div",{className:`${n}-dropdown-btns`},o.createElement(ou,{type:"link",size:"small",disabled:l(),onClick:()=>F()},m.filterReset),o.createElement(ou,{type:"primary",size:"small",onClick:H},m.filterConfirm)))}r.filterDropdown&&(X=o.createElement(Yg,{selectable:void 0},X)),X=o.createElement(cS,{className:`${n}-dropdown`},X);const Z=(()=>{let e;return e="function"==typeof r.filterIcon?r.filterIcon(E):r.filterIcon?r.filterIcon:o.createElement(Py,null),o.createElement("span",{role:"button",tabIndex:-1,className:ie(`${n}-trigger`,{active:E}),onClick:e=>{e.stopPropagation()}},e)})();if(S)return o.createElement("div",{className:`${n}-column`},o.createElement("span",{className:`${t}-column-title`},f),Z);const Q=nl({trigger:["click"],placement:"rtl"===G?"bottomLeft":"bottomRight",children:Z,getPopupContainer:h},{...y,rootClassName:ie(g,y.rootClassName),open:N,onOpenChange:(e,t)=>{"trigger"===t.source&&(e&&void 0!==_&&P(mS(_)),k(e),e||r.filterDropdown||!l||H())},popupRender:()=>"function"==typeof y?.dropdownRender?y.dropdownRender(X):X});return o.createElement("div",{className:`${n}-column`},o.createElement("span",{className:`${t}-column-title`},f),o.createElement(Iw,{...Q}))},hS=(e,t,n)=>{let o=[];return(e||[]).forEach((e,r)=>{const a=y$(r,n),i=void 0!==e.filterDropdown;if(e.filters||i||"onFilter"in e)if("filteredValue"in e){let t=e.filteredValue;i||(t=t?.map(String)??t),o.push({column:e,key:b$(e,a),filteredKeys:t,forceFiltered:e.filtered})}else o.push({column:e,key:b$(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(o=[].concat(Ot(o),Ot(hS(e.children,t,a))))}),o};function gS(e,t,n,r,a,i,l,s,c){return n.map((n,d)=>{const u=y$(d,s),{filterOnClose:p=!0,filterMultiple:m=!0,filterMode:f,filterSearch:h}=n;let g=n;if(g.filters||g.filterDropdown){const s=b$(g,u),d=r.find(({key:e})=>s===e);g={...g,title:r=>o.createElement(fS,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:g,columnKey:s,filterState:d,filterOnClose:p,filterMultiple:m,filterMode:f,filterSearch:h,triggerFilter:i,locale:a,getPopupContainer:l,rootClassName:c},w$(n.title,r))}}return"children"in g&&(g={...g,children:gS(e,t,g.children,r,a,i,l,u,c)}),g})}const vS=e=>{const t={};return e.forEach(({key:e,filteredKeys:n,column:o})=>{const r=e,{filters:a,filterDropdown:i}=o;if(i)t[r]=n||null;else if(Array.isArray(n)){const e=dS(a);t[r]=e.filter(e=>n.includes(String(e)))}else t[r]=null}),t},bS=(e,t,n)=>{const o=t.reduce((e,o)=>{const{column:{onFilter:r,filters:a},filteredKeys:i}=o;return r&&i&&i.length?e.map(e=>({...e})).filter(e=>i.some(o=>{const i=dS(a),l=i.findIndex(e=>String(e)===String(o)),s=-1!==l?i[l]:o;return e[n]&&(e[n]=bS(e[n],t,n)),r(s,e)})):e},e);return o},yS=e=>e.flatMap(e=>"children"in e?[e].concat(Ot(yS(e.children||[]))):[e]);var wS=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:a,getPopupContainer:i,locale:l,rootClassName:s}=e,c=ht("Table"),d=o.useMemo(()=>yS(r||[]),[r]),[u,p]=o.useState(()=>hS(d,!0)),m=o.useMemo(()=>{const e=hS(d,!1);if(0===e.length)return e;let t=!0,n=!0;if(e.forEach(({filteredKeys:e})=>{void 0!==e?t=!1:n=!1}),t){const e=(d||[]).map((e,t)=>b$(e,y$(t)));return u.filter(({key:t})=>e.includes(t)).map(t=>{const n=d[e.indexOf(t.key)];return{...t,column:{...t.column,...n},forceFiltered:n.filtered}})}return"production"!==process.env.NODE_ENV&&c(n,"usage","Columns should all contain `filteredValue` or not contain `filteredValue`."),e},[d,u]),f=o.useMemo(()=>vS(m),[m]),h=e=>{const t=m.filter(({key:t})=>t!==e.key);t.push(e),p(t),a(vS(t),t)};return[e=>gS(t,n,e,m,l,h,i,void 0,s),m,f]};var CS=(e,t,n)=>{const r=o.useRef({});return[function(o){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){const a=new Map;function i(e){e.forEach((e,o)=>{const r=n(e,o);a.set(r,e),e&&"object"==typeof e&&t in e&&i(e[t]||[])})}i(e),r.current={data:e,childrenColumnName:t,kvMap:a,getRowKey:n}}return r.current.kvMap?.get(o)}]};const xS=10;const $S="ascend",SS="descend",ES=e=>"object"==typeof e.sorter&&"number"==typeof e.sorter.multiple&&e.sorter.multiple,kS=e=>"function"==typeof e?e:!(!e||"object"!=typeof e||!e.compare)&&e.compare,NS=(e,t,n)=>{let o=[];const r=(e,t)=>{o.push({column:e,key:b$(e,t),multiplePriority:ES(e),sortOrder:e.sortOrder})};return(e||[]).forEach((e,a)=>{const i=y$(a,n);e.children?("sortOrder"in e&&r(e,i),o=[].concat(Ot(o),Ot(NS(e.children,t,i)))):e.sorter&&("sortOrder"in e?r(e,i):t&&e.defaultSortOrder&&o.push({column:e,key:b$(e,i),multiplePriority:ES(e),sortOrder:e.defaultSortOrder}))}),o},_S=(e,t,n,r,a,i,l,s,c)=>{const d=(t||[]).map((t,d)=>{const u=y$(d,s);let p=t;if(p.sorter){const s=p.sortDirections||a,d=void 0===p.showSorterTooltip?l:p.showSorterTooltip,m=b$(p,u),f=n.find(({key:e})=>e===m),h=f?f.sortOrder:null,g=((e,t)=>t?e[e.indexOf(t)+1]:e[0])(s,h);let v;if(t.sortIcon)v=t.sortIcon({sortOrder:h});else{const t=s.includes($S)&&o.createElement(dy,{className:ie(`${e}-column-sorter-up`,{active:h===$S})}),n=s.includes(SS)&&o.createElement(ay,{className:ie(`${e}-column-sorter-down`,{active:h===SS})});v=o.createElement("span",{className:ie(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!(!t||!n)})},o.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},t,n))}const{cancelSort:b,triggerAsc:y,triggerDesc:w}=i||{};let C=b;g===SS?C=w:g===$S&&(C=y);const x="object"==typeof d?{title:C,...d}:{title:C};p={...p,className:ie(p.className,{[`${e}-column-sort`]:h}),title:n=>{const r=`${e}-column-sorters`,a=o.createElement("span",{className:`${e}-column-title`},w$(t.title,n)),i=o.createElement("div",{className:r},a,v);return d?"boolean"!=typeof d&&"sorter-icon"===d?.target?o.createElement("div",{className:ie(r,`${r}-tooltip-target-sorter`)},a,o.createElement(eh,{...x},v)):o.createElement(eh,{...x},i):i},onHeaderCell:n=>{const o=t.onHeaderCell?.(n)||{},a=o.onClick,i=o.onKeyDown;o.onClick=e=>{r({column:t,key:m,sortOrder:g,multiplePriority:ES(t)}),a?.(e)},o.onKeyDown=e=>{e.keyCode===Fs.ENTER&&(r({column:t,key:m,sortOrder:g,multiplePriority:ES(t)}),i?.(e))};const l=((e,t)=>{const n=w$(e,t);return"[object Object]"===Object.prototype.toString.call(n)?"":n})(t.title,{}),s=l?.toString();return h&&(o["aria-sort"]="ascend"===h?"ascending":"descending"),o["aria-description"]=c?.sortable,o["aria-label"]=s||"",o.className=ie(o.className,`${e}-column-has-sorters`),o.tabIndex=0,t.ellipsis&&(o.title=(l??"").toString()),o}}}return"children"in p&&(p={...p,children:_S(e,p.children,n,r,a,i,l,u,c)}),p});return d},IS=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},PS=e=>{const t=e.filter(({sortOrder:e})=>e).map(IS);if(0===t.length&&e.length){const t=e.length-1;return{...IS(e[t]),column:void 0,order:void 0,field:void 0,columnKey:void 0}}return t.length<=1?t[0]||{}:t},OS=(e,t,n)=>{const o=t.slice().sort((e,t)=>t.multiplePriority-e.multiplePriority),r=e.slice(),a=o.filter(({column:{sorter:e},sortOrder:t})=>kS(e)&&t);return a.length?r.sort((e,t)=>{for(let n=0;n<a.length;n+=1){const o=a[n],{column:{sorter:r},sortOrder:i}=o,l=kS(r);if(l&&i){const n=l(e,t,i);if(0!==n)return i===$S?n:-n}}return 0}).map(e=>{const o=e[n];return o?{...e,[n]:OS(o,t,n)}:e}):r};var DS=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:a,showSorterTooltip:i,onSorterChange:l,globalLocale:s}=e,[c,d]=o.useState(()=>NS(n,!0)),u=(e,t)=>{const n=[];return e.forEach((e,o)=>{const r=y$(o,t);if(n.push(b$(e,r)),Array.isArray(e.children)){const t=u(e.children,r);n.push.apply(n,Ot(t))}}),n},p=o.useMemo(()=>{let e=!0;const t=NS(n,!1);if(!t.length){const e=u(n);return c.filter(({key:t})=>e.includes(t))}const o=[];function r(t){e?o.push(t):o.push({...t,sortOrder:null})}let a=null;return t.forEach(t=>{null===a?(r(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:a=!0)):(a&&!1!==t.multiplePriority||(e=!1),r(t))}),o},[n,c]),m=o.useMemo(()=>{const e=p.map(({column:e,sortOrder:t})=>({column:e,order:t}));return{sortColumns:e,sortColumn:e[0]?.column,sortOrder:e[0]?.order}},[p]),f=e=>{let t;t=!1!==e.multiplePriority&&p.length&&!1!==p[0].multiplePriority?[].concat(Ot(p.filter(({key:t})=>t!==e.key)),[e]):[e],d(t),l(PS(t),t)};return[e=>_S(t,e,p,f,r,a,i,void 0,s),p,m,()=>PS(p)]};const RS=(e,t)=>{const n=e.map(e=>{const n={...e};return n.title=w$(e.title,t),"children"in n&&(n.children=RS(n.children,t)),n});return n};var MS=e=>[o.useCallback(t=>RS(t,e),[e])];const BS=Ix((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:o}=t;return n!==o});var TS=BS;const zS=Wx((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:o}=t;return n!==o});var AS=zS;var LS=e=>{const{componentCls:t,lineWidth:n,lineType:o,tableBorderColor:r,tableHeaderBg:a,tablePaddingVertical:i,tablePaddingHorizontal:l,calc:s}=e,c=`${wn(n)} ${o} ${r}`,d=(e,o,r)=>({[`&${t}-${e}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${wn(s(o).mul(-1).equal())}\n ${wn(s(s(r).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:{[`> ${t}-title`]:{border:c,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:c,borderTop:c,[`\n > ${t}-content,\n > ${t}-header,\n > ${t}-body,\n > ${t}-summary\n `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:c},"> thead":{"> tr:not(:last-child) > th":{borderBottom:c},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:c}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${wn(s(i).mul(-1).equal())} ${wn(s(s(l).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:c,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`\n > tr${t}-expanded-row,\n > tr${t}-placeholder\n `]:{"> th, > td":{borderInlineEnd:0}}}}},...d("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle),...d("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall),[`> ${t}-footer`]:{border:c,borderTop:0}},[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${wn(n)} 0 ${wn(n)} ${a}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}};var HS=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:{...Sa,wordBreak:"keep-all",[`\n &${t}-cell-fix-start-shadow,\n &${t}-cell-fix-end-shadow\n `]:{overflow:"visible",[`${t}-cell-content`]:{...Sa,display:"block"}},[`${t}-column-title`]:{...Sa,wordBreak:"keep-all"}}}}};var FS=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}};var jS=e=>{const{componentCls:t,antCls:n,motionDurationSlow:o,lineWidth:r,paddingXS:a,lineType:i,tableBorderColor:l,tableExpandIconBg:s,tableExpandColumnWidth:c,borderRadius:d,tablePaddingVertical:u,tablePaddingHorizontal:p,tableExpandedRowBg:m,paddingXXS:f,expandIconMarginTop:h,expandIconSize:g,expandIconHalfInner:v,expandIconScale:b,calc:y}=e,w=`${wn(r)} ${i} ${l}`,C=y(f).sub(r).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:c},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:{...Ia(e),position:"relative",float:"left",width:g,height:g,color:"inherit",lineHeight:wn(g),background:s,border:w,borderRadius:d,transform:`scale(${b})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${o} ease-out`,content:'""'},"&::before":{top:v,insetInlineEnd:C,insetInlineStart:C,height:r},"&::after":{top:C,bottom:C,insetInlineStart:v,width:r,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}},[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:h,marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:m}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${wn(y(u).mul(-1).equal())} ${wn(y(p).mul(-1).equal())}`,padding:`${wn(u)} ${wn(p)}`}}}};var VS=e=>{const{componentCls:t,antCls:n,iconCls:o,tableFilterDropdownWidth:r,tableFilterDropdownSearchWidth:a,paddingXXS:i,paddingXS:l,colorText:s,lineWidth:c,lineType:d,tableBorderColor:u,headerIconColor:p,fontSizeSM:m,tablePaddingHorizontal:f,borderRadius:h,motionDurationSlow:g,colorIcon:v,colorPrimary:b,tableHeaderFilterActiveBg:y,colorTextDisabled:w,tableFilterDropdownBg:C,tableFilterDropdownHeight:x,controlItemBgHover:$,controlItemBgActive:S,boxShadowSecondary:E,filterDropdownMenuBg:k,calc:N}=e,_=`${n}-dropdown`,I=`${t}-filter-dropdown`,P=`${n}-tree`,O=`${wn(c)} ${d} ${u}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:N(i).mul(-1).equal(),marginInline:`${wn(i)} ${wn(N(f).div(2).mul(-1).equal())}`,padding:`0 ${wn(i)}`,color:p,fontSize:m,borderRadius:h,cursor:"pointer",transition:`all ${g}`,"&:hover":{color:v,background:y},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[I]:{...Ea(e),minWidth:r,backgroundColor:C,borderRadius:h,boxShadow:E,overflow:"hidden",[`${_}-menu`]:{maxHeight:x,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:k,"&:empty::after":{display:"block",padding:`${wn(l)} 0`,color:w,fontSize:m,textAlign:"center",content:'"Not Found"'}},[`${I}-tree`]:{paddingBlock:`${wn(l)} 0`,paddingInline:l,[P]:{padding:0},[`${P}-treenode ${P}-node-content-wrapper:hover`]:{backgroundColor:$},[`${P}-treenode-checkbox-checked ${P}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:S}}},[`${I}-search`]:{padding:l,borderBottom:O,"&-input":{input:{minWidth:a},[o]:{color:w}}},[`${I}-checkall`]:{width:"100%",marginBottom:i,marginInlineStart:i},[`${I}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${wn(N(l).sub(c).equal())} ${wn(l)}`,overflow:"hidden",borderTop:O}}}},{[`${n}-dropdown ${I}, ${I}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:s},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]};function WS({colorSplit:e}){return[{boxShadow:`inset 10px 0 8px -8px ${e}`},{boxShadow:`inset -10px 0 8px -8px ${e}`}]}var KS=e=>{const{componentCls:t,lineWidth:n,motionDurationSlow:o,zIndexTableFixed:r,tableBg:a,calc:i}=e,l=`${t}-cell`,s=`${l}-fix`,c={position:"absolute",top:0,bottom:i(n).mul(-1).equal(),width:30,transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[d,u]=WS(e);return{[`${t}-wrapper`]:{[`${l}${s}`]:{position:"sticky"},[s]:{zIndex:`calc(var(--z-offset-reverse) + ${r})`,background:a,"&:after":c,"&-start:after":{insetInlineStart:"100%"},"&-end:after":{insetInlineEnd:"100%"},"&-start-shadow-show:after":d,"&-end-shadow-show:after":u},[`${t}-container`]:{position:"relative","&:before, &:after":{...c,zIndex:`calc(var(--columns-count) * 2 + ${r} + 1)`},"&:before":{insetInlineStart:0},"&:after":{insetInlineEnd:0}},[`${t}-has-fix-start ${t}-container:before`]:{display:"none"},[`${t}-has-fix-end ${t}-container:after`]:{display:"none"},[`${t}-fix-start-shadow-show ${t}-container:before`]:d,[`${t}-fix-end-shadow-show ${t}-container:after`]:u}}};var qS=e=>{const{componentCls:t,antCls:n,margin:o}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${wn(o)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"}}}}};var US=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${wn(n)} ${wn(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${wn(n)} ${wn(n)}`}}}}};var XS=e=>{const{componentCls:t}=e,[n,o]=WS(e);return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-cell-fix`]:{"&-start-shadow-show:after":o,"&-end-shadow-show:after":n},[`${t}-container`]:{[`${t}-row-indent`]:{float:"right"}},[`${t}-fix-start-shadow-show ${t}-container:before`]:o,[`${t}-fix-end-shadow-show ${t}-container:after`]:n}}};var GS=e=>{const{componentCls:t,antCls:n,iconCls:o,fontSizeIcon:r,padding:a,paddingXS:i,headerIconColor:l,headerIconHoverColor:s,tableSelectionColumnWidth:c,tableSelectedRowBg:d,tableSelectedRowHoverBg:u,tableRowHoverBg:p,tablePaddingHorizontal:m,calc:f}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:c,[`&${t}-selection-col-with-dropdown`]:{width:f(c).add(r).add(f(a).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:f(c).add(f(i).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:f(c).add(r).add(f(a).div(4)).add(f(i).mul(2)).equal()}},[`\n table tr th${t}-selection-column,\n table tr td${t}-selection-column,\n ${t}-selection-column\n `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:f(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:wn(f(m).div(4).equal()),[o]:{color:l,fontSize:r,verticalAlign:"baseline","&:hover":{color:s}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:d,"&-row-hover":{background:u}}},[`> ${t}-cell-row-hover`]:{background:p}}}}}};var YS=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:o}=e,r=(e,r,a,i)=>({[`${t}${t}-${e}`]:{fontSize:i,[`\n ${t}-title,\n ${t}-footer,\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{padding:`${wn(r)} ${wn(a)}`},[`${t}-filter-trigger`]:{marginInlineEnd:wn(o(a).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${wn(o(r).mul(-1).equal())} ${wn(o(a).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:wn(o(r).mul(-1).equal()),marginInline:`${wn(o(n).sub(a).equal())} ${wn(o(a).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:wn(o(a).div(4).equal())}}});return{[`${t}-wrapper`]:{...r("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle),...r("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall)}}};var ZS=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:o,headerIconColor:r,headerIconHoverColor:a}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`\n &${t}-cell-fix-left:hover,\n &${t}-cell-fix-right:hover\n `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:r,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:o,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:a}}}};var QS=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:o,tableScrollThumbBgHover:r,tableScrollThumbSize:a,tableScrollBg:i,stickyScrollBarBorderRadius:l,lineWidth:s,lineType:c,tableBorderColor:d,zIndexTableFixed:u}=e,p=`${wn(s)} ${c} ${d}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:`calc(var(--columns-count) * 2 + ${u} + 1)`,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${wn(a)} !important`,zIndex:`calc(var(--columns-count) * 2 + ${u} + 1)`,display:"flex",alignItems:"center",background:i,borderTop:p,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:a,backgroundColor:o,borderRadius:l,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:r}}}}}}};var JS=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:o,calc:r}=e,a=`${wn(n)} ${e.lineType} ${o}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},[`div${t}-summary`]:{boxShadow:`0 ${wn(r(n).mul(-1).equal())} 0 ${o}`}}}};var eE=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:o,lineType:r,tableBorderColor:a,calc:i}=e,l=`${wn(o)} ${r} ${a}`,s=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`\n & > ${t}-row, \n & > div:not(${t}-row) > ${t}-row\n `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:l,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${s}${s}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${wn(o)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:l,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:i(o).mul(-1).equal(),borderInlineStart:l}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:l,borderBottom:l}}}}}};const tE=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:o,tablePaddingHorizontal:r,tableExpandColumnWidth:a,lineWidth:i,lineType:l,tableBorderColor:s,tableFontSize:c,tableBg:d,tableRadius:u,tableHeaderTextColor:p,motionDurationMid:m,tableHeaderBg:f,tableHeaderCellSplitColor:h,tableFooterTextColor:g,tableFooterBg:v,calc:b}=e,y=`${wn(i)} ${l} ${s}`;return{[`${t}-wrapper`]:{clear:"both",maxWidth:"100%","--rc-virtual-list-scrollbar-bg":e.tableScrollBg,"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'},[t]:{...Ea(e),fontSize:c,background:d,borderRadius:`${wn(u)} ${wn(u)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`},table:{width:"100%",textAlign:"start",borderRadius:`${wn(u)} ${wn(u)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{position:"relative",padding:`${wn(o)} ${wn(r)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${wn(o)} ${wn(r)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:p,fontWeight:n,textAlign:"start",background:f,borderBottom:y,transition:`background ${m} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:h,transform:"translateY(-50%)",transition:`background-color ${m}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${m}, border-color ${m}`,borderBottom:y,[`\n > ${t}-wrapper:only-child,\n > ${t}-expanded-row-fixed > ${t}-wrapper:only-child\n `]:{[t]:{marginBlock:wn(b(o).mul(-1).equal()),marginInline:`${wn(b(a).sub(r).equal())}\n ${wn(b(r).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:p,fontWeight:n,textAlign:"start",background:f,borderBottom:y,transition:`background ${m} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:"0 !important",borderBlock:"0 !important",[`${t}-measure-cell-content`]:{height:0,overflow:"hidden",pointerEvents:"none"}}}},[`${t}-footer`]:{padding:`${wn(o)} ${wn(r)}`,color:g,background:v}}}};var nE=Pa("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:o,controlInteractiveSize:r,headerBg:a,headerColor:i,headerSortActiveBg:l,headerSortHoverBg:s,bodySortBg:c,rowHoverBg:d,rowSelectedBg:u,rowSelectedHoverBg:p,rowExpandedBg:m,cellPaddingBlock:f,cellPaddingInline:h,cellPaddingBlockMD:g,cellPaddingInlineMD:v,cellPaddingBlockSM:b,cellPaddingInlineSM:y,borderColor:w,footerBg:C,footerColor:x,headerBorderRadius:$,cellFontSize:S,cellFontSizeMD:E,cellFontSizeSM:k,headerSplitColor:N,fixedHeaderSortActiveBg:_,headerFilterHoverBg:I,filterDropdownBg:P,expandIconBg:O,selectionColumnWidth:D,stickyScrollBarBg:R,calc:M}=e,B=wr(e,{tableFontSize:S,tableBg:o,tableRadius:$,tablePaddingVertical:f,tablePaddingHorizontal:h,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:v,tablePaddingVerticalSmall:b,tablePaddingHorizontalSmall:y,tableBorderColor:w,tableHeaderTextColor:i,tableHeaderBg:a,tableFooterTextColor:x,tableFooterBg:C,tableHeaderCellSplitColor:N,tableHeaderSortBg:l,tableHeaderSortHoverBg:s,tableBodySortBg:c,tableFixedHeaderSortActiveBg:_,tableHeaderFilterActiveBg:I,tableFilterDropdownBg:P,tableRowHoverBg:d,tableSelectedRowBg:u,tableSelectedRowHoverBg:p,zIndexTableFixed:2,tableFontSizeMiddle:E,tableFontSizeSmall:k,tableSelectionColumnWidth:D,tableExpandIconBg:O,tableExpandColumnWidth:M(r).add(M(e.padding).mul(2)).equal(),tableExpandedRowBg:m,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:R,tableScrollThumbBgHover:t,tableScrollBg:n});return[tE(B),qS(B),JS(B),ZS(B),VS(B),LS(B),US(B),jS(B),JS(B),FS(B),GS(B),KS(B),QS(B),HS(B),YS(B),XS(B),eE(B)]},e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:o,colorFillSecondary:r,colorFillContent:a,controlItemBgActive:i,controlItemBgActiveHover:l,padding:s,paddingSM:c,paddingXS:d,colorBorderSecondary:u,borderRadiusLG:p,controlHeight:m,colorTextPlaceholder:f,fontSize:h,fontSizeSM:g,lineHeight:v,lineWidth:b,colorIcon:y,colorIconHover:w,opacityLoading:C,controlInteractiveSize:x}=e,$=new Tr(r).onBackground(n).toHexString(),S=new Tr(a).onBackground(n).toHexString(),E=new Tr(t).onBackground(n).toHexString(),k=new Tr(y),N=new Tr(w),_=x/2-b,I=2*_+3*b;return{headerBg:E,headerColor:o,headerSortActiveBg:$,headerSortHoverBg:S,bodySortBg:E,rowHoverBg:E,rowSelectedBg:i,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:s,cellPaddingInline:s,cellPaddingBlockMD:c,cellPaddingInlineMD:d,cellPaddingBlockSM:d,cellPaddingInlineSM:d,borderColor:u,headerBorderRadius:p,footerBg:E,footerColor:o,cellFontSize:h,cellFontSizeMD:h,cellFontSizeSM:h,headerSplitColor:u,fixedHeaderSortActiveBg:$,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:m,stickyScrollBarBg:f,stickyScrollBarBorderRadius:100,expandIconMarginTop:(h*v-3*b)/2-Math.ceil((1.4*g-3*b)/2),headerIconColor:k.clone().setA(k.a*C).toRgbString(),headerIconHoverColor:N.clone().setA(N.a*C).toRgbString(),expandIconHalfInner:_,expandIconSize:I,expandIconScale:x/I}},{resetFont:!1,unitless:{expandIconScale:!0}});const oE=[],rE=(e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:l,classNames:s,styles:c,size:d,bordered:u,dropdownPrefixCls:p,dataSource:m,pagination:f,rowSelection:h,rowKey:g,rowClassName:v,columns:b,children:y,childrenColumnName:w,onChange:C,getPopupContainer:x,loading:$,expandIcon:S,expandable:E,expandedRowRender:k,expandIconColumnIndex:N,indentSize:_,scroll:I,sortDirections:P,locale:O,showSorterTooltip:D={target:"full-header"},virtual:R}=e,M=ht("Table"),B=o.useMemo(()=>b||sx(y),[b,y]),T=_f(o.useMemo(()=>B.some(e=>e.responsive),[B])),z=o.useMemo(()=>{const e=new Set(Object.keys(T).filter(e=>T[e]));return B.filter(t=>!t.responsive||t.responsive.some(t=>e.has(t)))},[B,T]),A=lt(e,["className","style","columns"]),{locale:L=Xi,table:H}=o.useContext(Ft),{getPrefixCls:F,direction:j,renderEmpty:V,getPopupContainer:W,className:K,style:q,classNames:U,styles:X}=Vt("table"),G=cc(d),Y={...e,size:G,bordered:u},[Z,Q]=ul([U,s],[X,c],{props:Y},{pagination:{_default:"root"},header:{_default:"wrapper"},body:{_default:"wrapper"}}),J={...L.Table,...O},[ee]=Qi("global",Xi.global),te=m||oE,ne=F("table",n),oe=F("dropdown",p),[,re]=$a(),ae=El(ne),[le,se]=nE(ne,ae),ce={childrenColumnName:w,expandIconColumnIndex:N,...E,expandIcon:E?.expandIcon??H?.expandable?.expandIcon},{childrenColumnName:de="children"}=ce,ue=o.useMemo(()=>te.some(e=>e?.[de])?"nest":k||E?.expandedRowRender?"row":null,[de,te]),pe={body:o.useRef(null)},me=function(e){return(t,n)=>{const o=t.querySelector(`.${e}-container`);let r=n;if(o){const e=getComputedStyle(o);r=n-Number.parseInt(e.borderLeftWidth,10)-Number.parseInt(e.borderRightWidth,10)}return r}}(ne),fe=o.useRef(null),he=o.useRef(null);fl(t,()=>({...he.current,nativeElement:fe.current}));const ge=g||H?.rowKey||"key";"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&M(!("function"==typeof ge&&ge.length>1),"usage","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.");const ve=o.useMemo(()=>"function"==typeof ge?ge:e=>e?.[ge],[ge]),[be]=CS(te,de,ve),ye={},we=(e,t,n=!1)=>{const o={...ye,...e};n&&(ye.resetPagination?.(),o.pagination?.current&&(o.pagination.current=1),f&&f.onChange?.(1,o.pagination?.pageSize)),I&&!1!==I.scrollToFirstRowOnChange&&pe.body.current&&function(e,t={}){const{getContainer:n=()=>window,callback:o,duration:r=450}=t,a=n(),i=Sl(a),l=Date.now();let s;const c=()=>{const t=Date.now()-l,n=function(e,t,n,o){const r=n-t;return(e/=o/2)<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t}(t>r?r:t,i,e,r);$l(a)?a.scrollTo(window.pageXOffset,n):a instanceof Document||"HTMLDocument"===a.constructor.name?a.documentElement.scrollTop=n:a.scrollTop=n,t<r?s=zt(c):"function"==typeof o&&o()};s=zt(c)}(0,{getContainer:()=>pe.body.current}),C?.(o.pagination,o.filters,o.sorter,{currentDataSource:bS(OS(te,o.sorterStates,de),o.filterStates,de),action:t})},[Ce,xe,$e,Se]=DS({prefixCls:ne,mergedColumns:z,onSorterChange:(e,t)=>{we({sorter:e,sorterStates:t},"sort",!1)},sortDirections:P||["ascend","descend"],tableLocale:J,showSorterTooltip:D,globalLocale:ee}),Ee=o.useMemo(()=>OS(te,xe,de),[de,te,xe]);ye.sorter=Se(),ye.sorterStates=xe;const[ke,Ne,_e]=wS({prefixCls:ne,locale:J,dropdownPrefixCls:oe,mergedColumns:z,onFilterChange:(e,t)=>{we({filters:e,filterStates:t},"filter",!0)},getPopupContainer:x||W,rootClassName:ie(a,ae)}),Ie=bS(Ee,Ne,de);ye.filters=_e,ye.filterStates=Ne;const Pe=o.useMemo(()=>{const e={};return Object.keys(_e).forEach(t=>{null!==_e[t]&&(e[t]=_e[t])}),{...$e,filters:e}},[$e,_e]),[Oe]=MS(Pe),[De,Re]=function(e,t,n){const{total:o=0,...r}=n&&"object"==typeof n?n:{},[a,l]=i(()=>({current:"defaultCurrent"in r?r.defaultCurrent:1,pageSize:"defaultPageSize"in r?r.defaultPageSize:xS})),s=nl(a,r,{total:o>0?o:e}),c=Math.ceil((o||e)/s.pageSize);s.current>c&&(s.current=c||1);const d=(e,t)=>{l({current:e??1,pageSize:t||s.pageSize})};return!1===n?[{},()=>{}]:[{...s,onChange:(e,o)=>{n&&n.onChange?.(e,o),d(e,o),t(e,o||s?.pageSize)}},d]}(Ie.length,(e,t)=>{we({pagination:{...ye.pagination,current:e,pageSize:t}},"paginate")},f);ye.pagination=!1===f?{}:function(e,t){const n={current:e.current,pageSize:e.pageSize},o=t&&"object"==typeof t?t:{};return Object.keys(o).forEach(t=>{const o=e[t];"function"!=typeof o&&(n[t]=o)}),n}(De,f),ye.resetPagination=Re;const Me=o.useMemo(()=>{if(!1===f||!De.pageSize)return Ie;const{current:e=1,total:t,pageSize:n=xS}=De;return"production"!==process.env.NODE_ENV&&M(e>0,"usage","`current` should be positive number."),Ie.length<t?Ie.length>n?("production"!==process.env.NODE_ENV&&M(!1,"usage","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode."),Ie.slice((e-1)*n,e*n)):Ie:Ie.slice((e-1)*n,e*n)},[!!f,Ie,De?.current,De?.pageSize,De?.total]),[Be,Te]=v$({prefixCls:ne,data:Ie,pageData:Me,getRowKey:ve,getRecordByKey:be,expandType:ue,childrenColumnName:de,locale:J,getPopupContainer:x||W},h);ce.__PARENT_RENDER_ICON__=ce.expandIcon,ce.expandIcon=ce.expandIcon||S||function(e){return t=>{const{prefixCls:n,onExpand:r,record:a,expanded:i,expandable:l}=t,s=`${n}-row-expand-icon`;return o.createElement("button",{type:"button",onClick:e=>{r(a,e),e.stopPropagation()},className:ie(s,{[`${s}-spaced`]:!l,[`${s}-expanded`]:l&&i,[`${s}-collapsed`]:l&&!i}),"aria-label":i?e.collapse:e.expand,"aria-expanded":i})}}(J),"nest"===ue&&void 0===ce.expandIconColumnIndex?ce.expandIconColumnIndex=h?1:0:ce.expandIconColumnIndex>0&&h&&(ce.expandIconColumnIndex-=1),"number"!=typeof ce.indentSize&&(ce.indentSize="number"==typeof _?_:15);const ze=o.useCallback(e=>Oe(Be(ke(Ce(e)))),[Ce,ke,Be]);let Ae,Le;if(!1!==f&&De?.total){let e;e=De.size?De.size:"small"===G||"middle"===G?"small":void 0;const t=(t="end")=>o.createElement(Jw,{...De,classNames:Z.pagination,styles:Q.pagination,className:ie(`${ne}-pagination ${ne}-pagination-${t}`,De.className),size:e}),{placement:n,position:r}=De,a=n??r,i=e=>{const t=e.toLowerCase();return t.includes("center")?"center":t.includes("left")||t.includes("start")?"start":"end"};if(Array.isArray(a)){const[e,n]=["top","bottom"].map(e=>a.find(t=>t.includes(e))),o=a.every(e=>"none"==`${e}`);e||n||o||(Le=t()),e&&(Ae=t(i(e))),n&&(Le=t(i(n)))}else Le=t();"production"!==process.env.NODE_ENV&&M.deprecated(!r,"pagination.position","pagination.placement")}const He=o.useMemo(()=>"boolean"==typeof $?{spinning:$}:"object"==typeof $&&null!==$?{spinning:!0,...$}:void 0,[$]),Fe=ie(se,ae,`${ne}-wrapper`,K,{[`${ne}-wrapper-rtl`]:"rtl"===j},r,a,Z.root,le),je={...Q.root,...q,...l},Ve=o.useMemo(()=>He?.spinning&&te===oE?null:void 0!==O?.emptyText?O.emptyText:V?.("Table")||o.createElement(qm,{componentName:"Table"}),[He?.spinning,te,O?.emptyText,V]),We=R?AS:TS,Ke={},qe=o.useMemo(()=>{const{fontSize:e,lineHeight:t,lineWidth:n,padding:o,paddingXS:r,paddingSM:a}=re,i=Math.floor(e*t);switch(G){case"middle":return 2*a+i+n;case"small":return 2*r+i+n;default:return 2*o+i+n}},[re,G]);return R&&(Ke.listItemHeight=qe),o.createElement("div",{ref:fe,className:Fe,style:je},o.createElement(uC,{spinning:!1,...He},Ae,o.createElement(We,{...Ke,...A,classNames:Z,styles:Q,ref:he,columns:z,direction:j,expandable:ce,prefixCls:ne,className:ie({[`${ne}-middle`]:"middle"===G,[`${ne}-small`]:"small"===G,[`${ne}-bordered`]:u,[`${ne}-empty`]:0===te.length},se,ae,le),data:Me,rowKey:ve,rowClassName:(e,t,n)=>{const o="function"==typeof v?v(e,t,n):v;return ie({[`${ne}-row-selected`]:Te.has(ve(e,t))},o)},emptyText:Ve,internalHooks:mC,internalRefs:pe,transformColumns:ze,getContainerWidth:me,measureRowRender:e=>o.createElement(aS.Provider,{value:!0},o.createElement(Hs,{getPopupContainer:e=>e},e))}),Le))};var aE=o.forwardRef(rE);const iE=(e,t)=>{const n=o.useRef(0);return n.current+=1,o.createElement(aE,{...e,ref:t,_renderTimes:n.current})},lE=o.forwardRef(iE);lE.SELECTION_COLUMN=u$,lE.EXPAND_COLUMN=pC,lE.SELECTION_ALL=p$,lE.SELECTION_INVERT=m$,lE.SELECTION_NONE=f$,lE.Column=Kx,lE.ColumnGroup=qx,lE.Summary=AC,"production"!==process.env.NODE_ENV&&(lE.displayName="Table");var sE=lE,cE={breadcrumbContainer:"Breadcrumb-module_breadcrumbContainer__uBvx5",itemContent:"Breadcrumb-module_itemContent__EuvYW",itemIcon:"Breadcrumb-module_itemIcon__mJSYP",itemTitle:"Breadcrumb-module_itemTitle__g8smt",separator:"Breadcrumb-module_separator__VeZVd"};const dE=({items:n=[],separator:o="/",className:r="",...a})=>{const i=n.map(n=>({...n,title:e("span",{className:cE.itemContent,children:[n.icon&&t(de,{name:n.icon,size:14,className:cE.itemIcon}),t("span",{className:cE.itemTitle,children:n.title})]})}));return t("div",{className:`${cE.breadcrumbContainer} ${r}`,children:t(Pv,{items:i,separator:t("span",{className:cE.separator,children:o}),className:cE.antBreadcrumb,...a})})};var uE={container:"Categories-module_container__U5Jrk",searchSection:"Categories-module_searchSection__OtRY7",searchInput:"Categories-module_searchInput__er5yT",searchIcon:"Categories-module_searchIcon__z6tia",searchIconImage:"Categories-module_searchIconImage__pGeZj",searchPlaceholder:"Categories-module_searchPlaceholder__ZmolO",searchValue:"Categories-module_searchValue__21-r9",realSearchInput:"Categories-module_realSearchInput__w4p-O",chipListContainer:"Categories-module_chipListContainer__pacAl",chipListRow:"Categories-module_chipListRow__h7kfy",chip:"Categories-module_chip__QYPTC",chipLabel:"Categories-module_chipLabel__TA2tB",chipRemove:"Categories-module_chipRemove__AZnYD",chipIcon:"Categories-module_chipIcon__jI19r",listsContainer:"Categories-module_listsContainer__qLgWk",categoryList:"Categories-module_categoryList__-hGax",categoryTitle:"Categories-module_categoryTitle__IojeE",categoryTitleText:"Categories-module_categoryTitleText__THhiO",chevronIcon:"Categories-module_chevronIcon__WSZAt",chevronImg:"Categories-module_chevronImg__u0z0y",chevronUp:"Categories-module_chevronUp__3IMMr",categoryItems:"Categories-module_categoryItems__rkjFa",categoryItemWrapper:"Categories-module_categoryItemWrapper__nSWPf",actionsContainer:"Categories-module_actionsContainer__E-9bc",cancelButton:"Categories-module_cancelButton__qSB8B",cancelButtonText:"Categories-module_cancelButtonText__iKhcE",applyButton:"Categories-module_applyButton__f9weo",applyButtonText:"Categories-module_applyButtonText__p7k-s",variant_single:"Categories-module_variant_single__nJbFl",variant_multiple:"Categories-module_variant_multiple__oR0nB"},pE={itemRow:"ItemRow-module_itemRow__rSDeO",infoIcon:"ItemRow-module_infoIcon__Ipwr-",infoIconImg:"ItemRow-module_infoIconImg__70lMY",content:"ItemRow-module_content__Jpfhn",iconWrapper:"ItemRow-module_iconWrapper__tyWxd",fileIconImg:"ItemRow-module_fileIconImg__UtL3V",starIconImg:"ItemRow-module_starIconImg__N5DF0",text:"ItemRow-module_text__2UBMv",label:"ItemRow-module_label__tf9KQ",body:"ItemRow-module_body__nwnZc",checkboxField:"ItemRow-module_checkboxField__fBewb",radioField:"ItemRow-module_radioField__opyC6",type_default:"ItemRow-module_type_default__bHpMa",type_hover:"ItemRow-module_type_hover__96wT9",type_selected:"ItemRow-module_type_selected__Pr3sl",type_disabled:"ItemRow-module_type_disabled__RLuUQ",type_danger:"ItemRow-module_type_danger__4i7oG"},mE={checkboxContainer:"Checkbox-module_checkboxContainer__t5ToR",checkboxWrapper:"Checkbox-module_checkboxWrapper__MQ4h7",checkboxInput:"Checkbox-module_checkboxInput__6emi6",checkbox:"Checkbox-module_checkbox__u-vF9",size_small:"Checkbox-module_size_small__y2One",size_medium:"Checkbox-module_size_medium__tyI8A",size_large:"Checkbox-module_size_large__Dxd5a",checkboxChecked:"Checkbox-module_checkboxChecked__9S3nh",checkboxCheck:"Checkbox-module_checkboxCheck__eC-aU",checkboxIndeterminateState:"Checkbox-module_checkboxIndeterminateState__KlYdz",checkboxIndeterminate:"Checkbox-module_checkboxIndeterminate__KWSZX",indeterminateBar:"Checkbox-module_indeterminateBar__ubEie",checkIconWrapper:"Checkbox-module_checkIconWrapper__5zoMJ",checkIconInner:"Checkbox-module_checkIconInner__-31sZ",checkIcon:"Checkbox-module_checkIcon__ZZUJy",state_default:"Checkbox-module_state_default__07N9s",checkboxDisabled:"Checkbox-module_checkboxDisabled__JuvUf",state_hover:"Checkbox-module_state_hover__-aNwA",state_focus:"Checkbox-module_state_focus__iyLdL",state_pressed:"Checkbox-module_state_pressed__IXWhV",label:"Checkbox-module_label__riL34"};const fE=({checked:n=!1,indeterminate:o=!1,disabled:r=!1,state:a="default",size:i="medium",label:l="",onChange:s,className:c="",id:d,name:u,value:p,...m})=>{const f=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"focus"===t?"focus":"pressed"===t?"pressed":"default"})(a),h="number"==typeof i,g=h?"custom":i.toLowerCase(),v=r||"disabled"===a,b=[mE.checkboxContainer,c].filter(Boolean).join(" "),y=[mE.checkbox,mE[`size_${g}`],n&&mE.checkboxChecked,!n&&o&&mE.checkboxIndeterminateState,v&&mE.checkboxDisabled,!v&&mE[`state_${f}`]].filter(Boolean).join(" "),w=d||`checkbox-${Math.random().toString(36).substr(2,9)}`;return e("div",{className:b,children:[e("div",{className:mE.checkboxWrapper,children:[t("input",{type:"checkbox",id:w,name:u,value:p,checked:n,disabled:v,onChange:e=>{!v&&s&&s(e)},className:mE.checkboxInput,"aria-checked":o?"mixed":n,"aria-disabled":v,...m}),e("label",{htmlFor:w,className:y,style:h?{width:`${i}px`,height:`${i}px`}:{},children:[n&&t("div",{className:mE.checkboxCheck,children:t("div",{className:mE.checkIconWrapper,children:t("div",{className:mE.checkIconInner,children:t(de,{name:"Check",size:12,className:mE.checkIcon})})})}),!n&&o&&t("div",{className:mE.checkboxIndeterminate,children:t("div",{className:mE.indeterminateBar})})]})]}),l&&t("label",{htmlFor:w,className:mE.label,children:l})]})};var hE={radioContainer:"Radio-module_radioContainer__nD7Aj",radioWrapper:"Radio-module_radioWrapper__8nQVu",radioInput:"Radio-module_radioInput__GtQt3",radio:"Radio-module_radio__fnkSK",size_small:"Radio-module_size_small__k7iT3",size_medium:"Radio-module_size_medium__KpT8h",size_large:"Radio-module_size_large__81Vmf",radioChecked:"Radio-module_radioChecked__BaL8g",radioDot:"Radio-module_radioDot__RilTO",state_default:"Radio-module_state_default__zFRxN",radioDisabled:"Radio-module_radioDisabled__i08xK",state_hover:"Radio-module_state_hover__h6W-X",state_focus:"Radio-module_state_focus__8UGb9",state_pressed:"Radio-module_state_pressed__k6gEW",label:"Radio-module_label__rS27E"};const gE=({checked:n=!1,disabled:o=!1,state:r="default",size:a="medium",label:i="",name:l,value:s,onChange:c,className:d="",id:u,...p})=>{const m=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"focus"===t?"focus":"pressed"===t?"pressed":"default"})(r),f="number"==typeof a,h=f?"custom":a.toLowerCase(),g=o||"disabled"===r,v=[hE.radioContainer,d].filter(Boolean).join(" "),b=[hE.radio,hE[`size_${h}`],n&&hE.radioChecked,g&&hE.radioDisabled,!g&&hE[`state_${m}`]].filter(Boolean).join(" "),y=u||`radio-${Math.random().toString(36).substr(2,9)}`;return e("div",{className:v,children:[e("div",{className:hE.radioWrapper,children:[t("input",{type:"radio",id:y,name:l,value:s,checked:n,disabled:g,onChange:e=>{!g&&c&&c(e)},className:hE.radioInput,"aria-checked":n,"aria-disabled":g,...p}),t("label",{htmlFor:y,className:b,style:f?{width:`${a}px`,height:`${a}px`}:{},children:n&&t("div",{className:hE.radioDot})})]}),i&&t("label",{htmlFor:y,className:hE.label,children:i})]})},vE=({showLeftIcon:n=!0,hasCheckbox:o=!1,hasRadio:r=!1,checked:a=!1,chooseLeftIcon:i=null,label:l="Item",showBody:s=!1,body:c="Body",showInfo:d=!1,showRightIcon:u=!1,chooseRightIcon:p=null,type:m="Default",onClick:f,className:h="",...g})=>{const v=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"disabled"===t?"disabled":"selected"===t?"selected":"danger"===t?"danger":"default"})(m),b="disabled"===v,y=b?"div":"button",w=[pE.itemRow,pE[`type_${v}`],h].filter(Boolean).join(" "),C=a||"selected"===v;return e(y,{className:w,onClick:f,disabled:b,type:"button"===y?"button":void 0,...g,children:[d&&t("div",{className:pE.infoIcon,children:t(de,{name:"Info",size:14,className:pE.infoIconImg})}),e("div",{className:pE.content,children:[n&&t("div",{className:pE.iconWrapper,children:i||t(de,{name:"File",size:14,className:pE.fileIconImg})}),e("div",{className:pE.text,children:[t("p",{className:pE.label,children:l}),s&&t("p",{className:pE.body,children:c})]}),u&&t("div",{className:pE.iconWrapper,children:p||t(de,{name:"Star",size:14,className:pE.starIconImg})})]}),o&&t("div",{className:pE.checkboxField,children:t(fE,{checked:C,disabled:b,size:16,readOnly:!f})}),r&&t("div",{className:pE.radioField,children:t(gE,{checked:C,disabled:b,size:16,readOnly:!f})})]})},bE=({variant:n="single",chips:o=[],categories:r=[],onChipRemove:a,onCategoryToggle:s,onItemClick:d,onCancel:u,onApply:p,cancelLabel:m="Cancel",applyLabel:f="Apply",className:h="",...g})=>{const[v,b]=i(""),[y,w]=i(r.reduce((e,t,n)=>(e[n]=void 0===t.expanded||t.expanded,e),{})),C=c(()=>{if(!v)return r;const e=v.toLowerCase();return r.map(t=>{if((t.title||"").toLowerCase().includes(e))return t;const n=(t.items||[]).filter(t=>(t.label||"").toLowerCase().includes(e));return n.length>0?{...t,items:n}:null}).filter(e=>null!==e)},[r,v]);l(()=>{if(v){const e=C.reduce((e,t,n)=>(e[n]=!0,e),{});w(e)}},[v,C.length]);const x=(o,r)=>{const a=!!v||!1!==y[r];return e("div",{className:uE.categoryList,children:[e("button",{type:"button",className:uE.categoryTitle,onClick:()=>{return e=r,w(t=>({...t,[e]:!t[e]})),void(s&&s(e,!y[e]));var e},children:[t("p",{className:uE.categoryTitleText,children:o.title||"Category"}),t("div",{className:uE.chevronIcon,children:t(de,{name:"CaretDown",size:14,className:`${uE.chevronImg} ${a?uE.chevronUp:""}`})})]}),a&&t("div",{className:uE.categoryItems,children:(o.items||[]).map((e,o)=>t("div",{className:uE.categoryItemWrapper,children:t(vE,{label:e.label||"Item",showLeftIcon:!0,showRightIcon:!1,hasCheckbox:"multiple"===n,hasRadio:"multiple"!==n,checked:e.checked||!1,type:e.type||"default",onClick:()=>{d&&d(e,r)}})},e.id||o))})]},r)},$=[uE.container,uE[`variant_${n}`],h].filter(Boolean).join(" ");return e("div",{className:$,...g,children:[e("div",{className:uE.searchSection,children:[e("div",{className:uE.searchInput,children:[t("div",{className:uE.searchIcon,children:t(de,{name:"MagnifyingGlass",size:16,className:uE.searchIconImage})}),t("input",{type:"text",className:uE.realSearchInput,placeholder:"Search",value:v,onChange:e=>{b(e.target.value)}})]}),(()=>{if(!o||0===o.length)return null;const n=o.slice(0,5),r=o.length-5;let i=null;return r>0&&(i={isMore:!0,label:`+${r}`}),e("div",{className:uE.chipListContainer,children:[n.map((n,o)=>e("div",{className:uE.chip,children:[t("p",{className:uE.chipLabel,children:n.label||"Label"}),t("button",{type:"button",className:uE.chipRemove,onClick:e=>{e.stopPropagation(),a&&a(n)},"aria-label":"Remove chip",children:t(de,{name:"X",size:14,className:uE.chipIcon})})]},o)),i&&t("div",{className:uE.chip,children:t("p",{className:uE.chipLabel,children:i.label})})]})})()]}),t("div",{className:uE.listsContainer,children:C.map((e,t)=>x(e,t))}),e("div",{className:uE.actionsContainer,children:[t("button",{type:"button",className:uE.cancelButton,onClick:u,children:t("p",{className:uE.cancelButtonText,children:m})}),t("button",{type:"button",className:uE.applyButton,onClick:p,children:t("p",{className:uE.applyButtonText,children:f})})]})]})};var yE={cell:"Cell-module_cell__wdOpC",label:"Cell-module_label__1JEFV",defaultContent:"Cell-module_defaultContent__Vv8Xy",leadingIcon:"Cell-module_leadingIcon__zmwIZ",trailingIcon:"Cell-module_trailingIcon__6DTXX",avatarContent:"Cell-module_avatarContent__moY52",avatar:"Cell-module_avatar__gUaMQ",avatarPlaceholder:"Cell-module_avatarPlaceholder__RK0QA",statusContent:"Cell-module_statusContent__izq8j",statusDot:"Cell-module_statusDot__5-hPy",status_active:"Cell-module_status_active__yHLS8",status_online:"Cell-module_status_online__oCYlx",status_inactive:"Cell-module_status_inactive__6Jdoj",status_offline:"Cell-module_status_offline__ls8W2",status_pending:"Cell-module_status_pending__ID-H1",socialContent:"Cell-module_socialContent__YuoLv",socialIcon:"Cell-module_socialIcon__ME-Dx",actionsContent:"Cell-module_actionsContent__V-4Lc",actionButton:"Cell-module_actionButton__AJYz-",checkboxContent:"Cell-module_checkboxContent__F2jOW",toggleContent:"Cell-module_toggleContent__0JbeA",userCountContent:"Cell-module_userCountContent__lehFs",userIconWrapper:"Cell-module_userIconWrapper__qqZpf",count:"Cell-module_count__N1yFG",badge:"Cell-module_badge__7KrfZ"},wE={toggleContainer:"Toggle-module_toggleContainer__lTsof",toggleWrapper:"Toggle-module_toggleWrapper__jWaBk",toggleInput:"Toggle-module_toggleInput__srGOt",toggle:"Toggle-module_toggle__zjgHl",toggleThumb:"Toggle-module_toggleThumb__hjTqE",size_small:"Toggle-module_size_small__xxt4m",size_medium:"Toggle-module_size_medium__mZRV2",size_large:"Toggle-module_size_large__dYf3X",toggleChecked:"Toggle-module_toggleChecked__ZM7BJ",state_default:"Toggle-module_state_default__Sk1P2",toggleDisabled:"Toggle-module_toggleDisabled__I8Z63",state_hover:"Toggle-module_state_hover__-Hx6l",state_focus:"Toggle-module_state_focus__E5i0q",state_pressed:"Toggle-module_state_pressed__U2veO",label:"Toggle-module_label__CzLo8"};const CE=({checked:n=!1,disabled:o=!1,state:r="default",size:a="medium",label:i="",onChange:l,className:s="",id:c,name:d,value:u,...p})=>{const m=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"focus"===t?"focus":"pressed"===t?"pressed":"default"})(r),f=a.toLowerCase(),h=o||"disabled"===r,g=[wE.toggleContainer,s].filter(Boolean).join(" "),v=[wE.toggle,wE[`size_${f}`],n&&wE.toggleChecked,h&&wE.toggleDisabled,!h&&wE[`state_${m}`]].filter(Boolean).join(" "),b=c||`toggle-${Math.random().toString(36).substr(2,9)}`;return e("div",{className:g,children:[e("div",{className:wE.toggleWrapper,children:[t("input",{type:"checkbox",id:b,name:d,value:u,checked:n,disabled:h,onChange:e=>{!h&&l&&l(e)},className:wE.toggleInput,"aria-checked":n,"aria-disabled":h,role:"switch",...p}),t("label",{htmlFor:b,className:v,children:t("span",{className:wE.toggleThumb})})]}),i&&t("label",{htmlFor:b,className:wE.label,children:i})]})},xE=({variant:n="default",label:o="",icon:r=null,badge:a=null,avatar:i=null,status:l=null,checked:s=!1,onChange:c,count:d=null,actions:u=[],className:p="",...m})=>t("div",{className:`${yE.cell} ${yE[`variant_${n}`]} ${p}`,...m,children:(()=>{switch(n){case"avatar":return e("div",{className:yE.avatarContent,children:[i?t("img",{src:i,alt:o,className:yE.avatar}):t("div",{className:yE.avatarPlaceholder,children:t(de,{name:"User",size:16})}),t("span",{className:yE.label,children:o})]});case"status":return e("div",{className:yE.statusContent,children:[t("div",{className:`${yE.statusDot} ${yE[`status_${l?.toLowerCase()}`]}`}),t("span",{className:yE.label,children:o}),a&&t("span",{className:yE.badge,children:a})]});case"social":return e("div",{className:yE.socialContent,children:[r&&t(de,{name:r,size:16,className:yE.socialIcon}),t("span",{className:yE.label,children:o})]});case"actions":return t("div",{className:yE.actionsContent,children:u.map((e,n)=>t("button",{className:yE.actionButton,onClick:e.onClick,title:e.label,type:"button",children:t(de,{name:e.icon,size:14})},n))});case"checkbox":return e("div",{className:yE.checkboxContent,children:[t(fE,{checked:s,onChange:c,size:"small"}),t("span",{className:yE.label,children:o})]});case"toggle":return t("div",{className:yE.toggleContent,children:t(CE,{checked:s,onChange:c,size:"small"})});case"userCount":return t("div",{className:yE.userCountContent,children:e("div",{className:yE.userIconWrapper,children:[t(de,{name:"User",size:14}),t("span",{className:yE.count,children:d})]})});default:return e("div",{className:yE.defaultContent,children:[r&&t(de,{name:r,size:16,className:yE.leadingIcon}),t("span",{className:yE.label,children:o}),a&&t("span",{className:yE.badge,children:a}),t(de,{name:"Globe",size:14,className:yE.trailingIcon})]})}})()});var $E="CellHeader-module_cellHeader__9mlaW",SE="CellHeader-module_sortable__bpx5y",EE="CellHeader-module_content__6-yV0",kE="CellHeader-module_checkboxWrapper__ah1PJ",NE="CellHeader-module_sortIcon__6rgJk",_E="CellHeader-module_label__nRBcj";const IE=({label:n="",sortable:o=!1,sortOrder:r=null,hasCheckbox:a=!1,checked:i=!1,onSort:l,onCheckboxChange:s,className:c="",...d})=>t("div",{className:`${$E} ${o?SE:""} ${c}`,onClick:o?l:void 0,...d,children:e("div",{className:EE,children:[a&&t("div",{className:kE,onClick:e=>e.stopPropagation(),children:t(fE,{checked:i,onChange:s,size:"small"})}),o&&t("div",{className:NE,"aria-label":`Sort ${r||"none"}`,children:t(de,{name:"asc"===r?"SortAscending":"desc"===r?"SortDescending":"CaretUpDown",size:14})}),t("span",{className:_E,children:n})]})}),PE=({children:n,variant:o="default",padding:r="md",hover:a=!1,clickable:i=!1,header:l,footer:s,onClick:c,className:d,style:u,animate:p=!0,animationDuration:m=300,animationDelay:f=0,animationEasing:h="ease-in-out",...g})=>{const v=ie("bg-white rounded-lg transition-all duration-200",{default:"shadow-sm border border-gray-200",elevated:"shadow-lg border border-gray-100",outlined:"border-2 border-gray-200",filled:"bg-gray-50 border border-gray-200"}[o],{xs:"p-2",sm:"p-3",md:"p-4",lg:"p-6",xl:"p-8"}[r],a&&"hover:shadow-md hover:-translate-y-0.5",i&&"cursor-pointer hover:shadow-lg hover:-translate-y-1",p&&"animate-fade-in",d),b={...u,...p&&{animationDuration:`${m}ms`,animationDelay:`${f}ms`,animationTimingFunction:h}};return e("div",{className:v,style:b,onClick:e=>{i&&c&&c(e)},...g,children:[l&&t("div",{className:"mb-4 pb-4 border-b border-gray-200",children:l}),t("div",{className:"flex-1",children:n}),s&&t("div",{className:"mt-4 pt-4 border-t border-gray-200",children:s})]})};var OE={chip:"Chip-module_chip__QDbLV",label:"Chip-module_label__jkrIf",iconWrapper:"Chip-module_iconWrapper__NWuWA",icon:"Chip-module_icon__Tkzl1",size_small:"Chip-module_size_small__FfLgY",size_medium:"Chip-module_size_medium__lOEvU",state_default:"Chip-module_state_default__Qcr59",state_hover:"Chip-module_state_hover__Fh-CV",state_pressed:"Chip-module_state_pressed__icmBU",state_active:"Chip-module_state_active__JenYe"};const DE=({label:n="Label",showRightIcon:o=!0,showLeftIcon:r=!0,chooseLeftIcon:a=null,chooseRightIcon:i=null,state:l="default",size:s="medium",onRemove:c,onClick:d,className:u="",...p})=>{const m=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"pressed"===t?"pressed":"active"===t?"active":"default"})(l),f=(s||"medium").toLowerCase(),h="small"===f?12:14,g=[OE.chip,OE[`size_${f}`],OE[`state_${m}`],u].filter(Boolean).join(" ");return e(d?"button":"div",{className:g,onClick:d,type:d?"button":void 0,...p,children:[r?a||t("div",{className:OE.iconWrapper,children:t(de,{name:"x",size:h,className:OE.icon,variant:"active"===m?"white":"default"})}):null,t("span",{className:OE.label,children:n}),o?i||t("div",{className:OE.iconWrapper,children:t(de,{name:"x",size:h,className:OE.icon,variant:"active"===m?"white":"default",onClick:e=>{e.stopPropagation(),c&&c()}})}):null]})};var RE={container:"ChipList-module_container__3H1e7",row:"ChipList-module_row__961Z3",layout_single:"ChipList-module_layout_single__t5ANI",layout_double:"ChipList-module_layout_double__5ihDG",layout_doublerow:"ChipList-module_layout_doublerow__qSwD-"};const ME=({chips:e=[],layout:n="single",onChipRemove:o,className:r="",...a})=>{const i=e.length>0?e:[{label:"Label",id:"1"},{label:"Label",id:"2"},{label:"Label",id:"3"}],l=n.toLowerCase(),s=(()=>{if("double"===l||"doublerow"===l){const e=Math.ceil(i.length/2);return[i.slice(0,e),i.slice(e)]}return[i]})(),c=[RE.container,RE[`layout_${l}`],r].filter(Boolean).join(" ");return t("div",{className:c,...a,children:s.map((e,n)=>t("div",{className:RE.row,children:e.map(e=>t(DE,{label:e.label,showRightIcon:!0,showLeftIcon:!1,state:"default",size:"medium",onRemove:()=>{o&&o(e)}},e.id||e.label))},n))})};var BE={container:"Dropdown-module_container__ErjTf",type_medium:"Dropdown-module_type_medium__-9PP9",type_small:"Dropdown-module_type_small__RBIcw",label:"Dropdown-module_label__r-lFx",description:"Dropdown-module_description__o8wRo",dropdownWrapper:"Dropdown-module_dropdownWrapper__UL4uW",fieldWrapper:"Dropdown-module_fieldWrapper__tDsIq",dropdownWrapper_type_medium:"Dropdown-module_dropdownWrapper_type_medium__fvECq",dropdownWrapper_type_small:"Dropdown-module_dropdownWrapper_type_small__Giu8S",dropdownInner:"Dropdown-module_dropdownInner__-VN-B",placeholder:"Dropdown-module_placeholder__ZqFux",value:"Dropdown-module_value__pqCLT",chevronWrapper:"Dropdown-module_chevronWrapper__zvdRH",chevronIcon:"Dropdown-module_chevronIcon__iBeCV",chipList:"Dropdown-module_chipList__s1lVm",chip:"Dropdown-module_chip__7rR17",chipLabel:"Dropdown-module_chipLabel__-ksTf",chipRemove:"Dropdown-module_chipRemove__yQ6wd",chipIcon:"Dropdown-module_chipIcon__SMMHv",error:"Dropdown-module_error__5Ptsm",dropdownWrapper_type_medium_state_default:"Dropdown-module_dropdownWrapper_type_medium_state_default__5bpre",dropdownWrapper_type_small_state_default:"Dropdown-module_dropdownWrapper_type_small_state_default__skJVV",dropdownWrapper_type_medium_state_hover:"Dropdown-module_dropdownWrapper_type_medium_state_hover__44jce",dropdownWrapper_type_small_state_hover:"Dropdown-module_dropdownWrapper_type_small_state_hover__7hn5F",dropdownWrapper_type_medium_state_selected:"Dropdown-module_dropdownWrapper_type_medium_state_selected__OC89t",dropdownWrapper_type_small_state_selected:"Dropdown-module_dropdownWrapper_type_small_state_selected__BIPst",dropdownWrapper_type_medium_state_focused:"Dropdown-module_dropdownWrapper_type_medium_state_focused__9BNJD",dropdownWrapper_type_small_state_focused:"Dropdown-module_dropdownWrapper_type_small_state_focused__Eq0nK",dropdownWrapper_type_medium_state_error:"Dropdown-module_dropdownWrapper_type_medium_state_error__YgZfn",dropdownWrapper_type_small_state_error:"Dropdown-module_dropdownWrapper_type_small_state_error__40JGM",dropdownWrapper_type_medium_state_disabled:"Dropdown-module_dropdownWrapper_type_medium_state_disabled__hibT2",dropdownWrapper_type_small_state_disabled:"Dropdown-module_dropdownWrapper_type_small_state_disabled__siGnC"};const TE=({value:n="",description:o="",label:r="",error:i="",hasLabel:s=!0,hasDescription:c=!0,hasError:d=!1,hasChips:u=!1,state:p="default",type:m="medium",placeholder:f="Value",chips:h=[],onChange:g,onFocus:v,onBlur:b,onClick:y,onOutsideClick:w,disabled:C,className:x="",children:$,...S})=>{const E=a(null);l(()=>{if(!w)return;const e=e=>{E.current&&!E.current.contains(e.target)&&w()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[w]);const k=(m||"medium").toLowerCase(),N=C?"disabled":(e=>{if(!e)return"default";const t=e.toLowerCase().replace(/\s+/g,"").replace(/-/g,"");return"selected"===t?"selected":"focused"===t?"focused":"hover"===t?"hover":"error"===t?"error":"disabled"===t?"disabled":t})(p),_=[BE.container,BE[`type_${k}`],x].filter(Boolean).join(" "),I=[BE.dropdownWrapper,BE[`dropdownWrapper_type_${k}`],BE[`dropdownWrapper_state_${N}`],BE[`dropdownWrapper_type_${k}_state_${N}`]].filter(Boolean).join(" "),P=C||"disabled"===N,O=e("div",{className:BE.fieldWrapper,children:[t("button",{type:"button",className:I,onClick:y||v,disabled:P,"aria-disabled":P,...S,children:e("div",{className:BE.dropdownInner,children:[u&&0!==h.length?t("div",{className:BE.chipList,children:h.map((n,o)=>e("div",{className:BE.chip,children:[t("span",{className:BE.chipLabel,children:n.label||"Label"}),n.onRemove&&t("button",{type:"button",className:BE.chipRemove,onClick:e=>{e.stopPropagation(),n.onRemove&&n.onRemove()},"aria-label":"Remove chip",children:t(de,{name:"x",size:10,className:BE.chipIcon})})]},o))}):null,t("span",n?{className:BE.value,children:n}:{className:BE.placeholder,children:f}),t("div",{className:BE.chevronWrapper,children:t(de,{name:$?"caret-up":"caret-down",size:12,className:BE.chevronIcon})})]})}),$]});return e("div",{className:_,ref:E,children:[s&&r&&t("p",{className:BE.label,children:r}),c&&o&&t("p",{className:BE.description,children:o}),O,d&&i&&t("p",{className:BE.error,children:i})]})};var zE={dropdownNestedColumn:"DropdownNestedColumn-module_dropdownNestedColumn__-cag7",titleFrame:"DropdownNestedColumn-module_titleFrame__-offj",titleAndCta:"DropdownNestedColumn-module_titleAndCta__4y7z4",titleText:"DropdownNestedColumn-module_titleText__G5mny",clearAllButton:"DropdownNestedColumn-module_clearAllButton__jEO-i",clearAllText:"DropdownNestedColumn-module_clearAllText__WR6Lj",chevronButton:"DropdownNestedColumn-module_chevronButton__pJED1",chevronContainer:"DropdownNestedColumn-module_chevronContainer__KBjay",chevronIcon:"DropdownNestedColumn-module_chevronIcon__B-Vxx",dropdownWithSearch:"DropdownNestedColumn-module_dropdownWithSearch__pLH5k",dropdownContent:"DropdownNestedColumn-module_dropdownContent__yxwX7",chipListSection:"DropdownNestedColumn-module_chipListSection__hz0gx",chipGrid:"DropdownNestedColumn-module_chipGrid__7wFEN",noChips:"DropdownNestedColumn-module_noChips__wktQg",moreChipsChip:"DropdownNestedColumn-module_moreChipsChip__SVtTL",searchInputSection:"DropdownNestedColumn-module_searchInputSection__QRUBF",searchInput:"DropdownNestedColumn-module_searchInput__xvb2F",searchIcon:"DropdownNestedColumn-module_searchIcon__aASpj",searchField:"DropdownNestedColumn-module_searchField__UP-pl",itemsList:"DropdownNestedColumn-module_itemsList__V41r6",itemsContainer:"DropdownNestedColumn-module_itemsContainer__2IXay",noItems:"DropdownNestedColumn-module_noItems__oiWmw"};const AE=({title:n="Title",expanded:o=!0,chips:r=[],items:a=[],onClearAll:l,onChipRemove:s,onItemClick:c,className:d="",...u})=>{const[p,m]=i(o),[f,h]=i(""),g=[zE.dropdownNestedColumn,d].filter(Boolean).join(" "),v=e("div",{className:zE.titleAndCta,children:[t("p",{className:zE.titleText,children:n}),t("button",{className:zE.clearAllButton,onClick:e=>{e.stopPropagation(),l&&l()},type:"button",children:t("p",{className:zE.clearAllText,children:"Clear all"})})]}),b=a.filter(e=>e.label.toLowerCase().includes(f.toLowerCase()));return e("div",{className:g,...u,children:[e("div",{className:zE.titleFrame,children:[v,t("button",{className:zE.chevronButton,onClick:()=>{m(!p)},type:"button",children:t("div",{className:zE.chevronContainer,children:t("div",{className:zE.chevronIcon,style:{transform:p?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.2s ease"},children:t(de,{name:"caret-up",size:16})})})})]}),p&&t("div",{className:zE.dropdownWithSearch,children:e("div",{className:zE.dropdownContent,children:[t("div",{className:zE.chipListSection,children:r.length>0?e("div",{className:zE.chipGrid,children:[r.slice(0,5).map(e=>t(DE,{label:e.label,showRightIcon:!0,showLeftIcon:!1,state:"default",size:"medium",onRemove:()=>{s&&s(e)}},e.id||e.label)),r.length>5&&t(DE,{label:"+"+(r.length-5),showRightIcon:!1,showLeftIcon:!1,state:"default",size:"medium",className:zE.moreChipsChip})]}):t("div",{className:zE.noChips,children:"No items selected"})}),t("div",{className:zE.searchInputSection,children:e("div",{className:zE.searchInput,children:[t(de,{name:"magnifying-glass",size:16,className:zE.searchIcon}),t("input",{type:"text",className:zE.searchField,placeholder:"Search",value:f,onChange:e=>h(e.target.value)})]})}),t("div",{className:zE.itemsList,children:t("div",{className:zE.itemsContainer,children:b.length>0?b.map((e,n)=>t(vE,{label:e.label,showLeftIcon:!1,showRightIcon:!1,hasCheckbox:!0,hasRadio:!1,checked:e.checked||!1,type:e.type||"Default",onClick:()=>{c&&c(e)}},e.id||n)):t("div",{className:zE.noItems,children:"No items found"})})})]})})]})};var LE={dropdownNested:"DropdownNested-module_dropdownNested__S7idI",columns:"DropdownNested-module_columns__VciGu",column:"DropdownNested-module_column__clf4o",ctas:"DropdownNested-module_ctas__MWS3w",cancelButton:"DropdownNested-module_cancelButton__c-8mc",applyButton:"DropdownNested-module_applyButton__AvCpG"};const HE=({leftColumn:n={title:"Select a Member",chips:[],items:[]},rightColumn:o={title:"Select a Group",chips:[],items:[]},onLeftClearAll:r,onRightClearAll:a,onLeftChipRemove:i,onRightChipRemove:l,onLeftItemClick:s,onRightItemClick:c,onCancel:d,onApply:u,className:p="",...m})=>{const f=n.chips,h=o.chips,g=n.items,v=o.items,b=[LE.dropdownNested,p].filter(Boolean).join(" ");return e("div",{className:b,...m,children:[e("div",{className:LE.columns,children:[t("div",{className:LE.column,children:t(AE,{title:n.title,expanded:!0,chips:f,items:g,onClearAll:r,onChipRemove:i,onItemClick:s})}),t("div",{className:LE.column,children:t(AE,{title:o.title,expanded:!0,chips:h,items:v,onClearAll:a,onChipRemove:l,onItemClick:c})})]}),e("div",{className:LE.ctas,children:[t(he,{label:"Cancel",style:"neutral",size:"medium",showLeadingIcon:!1,onClick:d,className:LE.cancelButton}),t(me,{label:"Apply",buttonStyle:"primary",size:"medium",showLeadingIcon:!1,onClick:u,className:LE.applyButton})]})]})};var FE={iconButton:"IconButton-module_iconButton__RX7bN",icon:"IconButton-module_icon__1mvRD",loaderIcon:"IconButton-module_loaderIcon__AB3CY",spin:"IconButton-module_spin__dIR-z",size_medium:"IconButton-module_size_medium__vDKx5",size_small:"IconButton-module_size_small__6QIGb",style_primary:"IconButton-module_style_primary__iuggd",state_default:"IconButton-module_state_default__CRDoC",state_hover:"IconButton-module_state_hover__gREn9",state_focus:"IconButton-module_state_focus__rPK-E",state_disabled:"IconButton-module_state_disabled__LFZlJ",state_loading:"IconButton-module_state_loading__jB6U7",style_secondary:"IconButton-module_style_secondary__3em9O",style_neutral:"IconButton-module_style_neutral__hzeSD",style_subtle:"IconButton-module_style_subtle__QK4-l"};const jE=({icon:e,style:n="primary",state:o="default",size:r="medium",onClick:a,disabled:i,loading:l,className:s="",...c})=>{const d=l?"loading":i?"disabled":o,u=i||l||"disabled"===d,p=[FE.iconButton,FE[`style_${n}`],FE[`state_${d}`],FE[`size_${r}`],s].filter(Boolean).join(" ");return t("button",{className:p,onClick:a,disabled:u,"aria-disabled":u,...c,children:e?"string"==typeof e?t(de,{name:e,className:FE.icon,size:14}):e:t(de,"loading"===d?{name:"spinner",className:FE.loaderIcon,size:16}:{name:"star",className:FE.icon,size:14})})};var VE={overlay:"Modal-module_overlay__-RqGQ",fadeIn:"Modal-module_fadeIn__bf4KI",modal:"Modal-module_modal__MUsZA",slideUp:"Modal-module_slideUp__ZdbV-",small:"Modal-module_small__tMzhZ",medium:"Modal-module_medium__ww1Z7",large:"Modal-module_large__J-zZn",closeButton:"Modal-module_closeButton__1Oslg",content:"Modal-module_content__1bCpv",iconWrapper:"Modal-module_iconWrapper__99kUR",textStack:"Modal-module_textStack__QbEZb",title:"Modal-module_title__TUIss",description:"Modal-module_description__o6Czk",actions:"Modal-module_actions__YzyOX"};const WE=({isOpen:n,onClose:o,title:r,description:a,icon:i,children:s,actions:c,size:d="medium",showCloseButton:u=!0,className:p="",...m})=>{if(l(()=>(document.body.style.overflow=n?"hidden":"unset",()=>{document.body.style.overflow="unset"}),[n]),!n)return null;return t("div",{className:VE.overlay,onClick:e=>{e.target===e.currentTarget&&o&&o()},children:e("div",{className:`${VE.modal} ${VE[d]} ${p}`,role:"dialog","aria-modal":"true",...m,children:[u&&t("button",{className:VE.closeButton,onClick:o,"aria-label":"Close modal",children:t(de,{name:"X"})}),e("div",{className:VE.content,children:[i&&t("div",{className:VE.iconWrapper,children:i}),s||e("div",{className:VE.textStack,children:[r&&t("h2",{className:VE.title,children:r}),a&&t("p",{className:VE.description,children:a})]}),c&&t("div",{className:VE.actions,children:c})]})]})})};var KE={notification:"Notification-module_notification__U2DR1",size_small:"Notification-module_size_small__kHQRv",size_medium:"Notification-module_size_medium__hJpV4",variant_primary:"Notification-module_variant_primary__OQM8e",variant_neutral:"Notification-module_variant_neutral__tmXIq",variant_subtle:"Notification-module_variant_subtle__uwELf",count:"Notification-module_count__XmK01",plus:"Notification-module_plus__oBCK6"};const qE=({count:o=0,variant:r="primary",size:a="medium",maxCount:i=99,className:l="",...s})=>{const c=[KE.notification,KE[`variant_${r}`],KE[`size_${a}`],l].filter(Boolean).join(" ");return t("span",{className:c,...s,children:(()=>{if("number"==typeof o&&o>i)return e(n,{children:[t("span",{className:KE.count,children:i}),t("span",{className:KE.plus,children:"+"})]});if("string"==typeof o&&o.endsWith("+")){const r=o.slice(0,-1);return e(n,{children:[t("span",{className:KE.count,children:r}),t("span",{className:KE.plus,children:"+"})]})}return o})()})};var UE={paginationWrapper:"Pagination-module_paginationWrapper__Da07-",navButtonCustom:"Pagination-module_navButtonCustom__dtnOI",navIcon:"Pagination-module_navIcon__jEBAO",navText:"Pagination-module_navText__epoAF"};const XE=n=>t(Hs,{theme:{token:{colorPrimary:"#4432bf",borderRadius:8,fontFamily:"'Host Grotesk', sans-serif",colorText:"#2f353b",colorTextDescription:"#768494",motion:!1},components:{Pagination:{itemActiveBg:"#4432bf",itemActiveColor:"#F3EEF9",itemBg:"transparent",itemInputBg:"#ffffff",itemSize:36,itemSizeSM:32}}},children:t("div",{className:`${UE.paginationWrapper} ${n.className||""}`,children:t(Jw,{itemRender:(o,r,a)=>"prev"===r?e("div",{className:`${UE.navButtonCustom} ${n.disabled?UE.disabled:""}`,children:[t("div",{className:UE.navIcon,style:{WebkitMaskImage:"url('/icon/ArrowLeft.svg')",maskImage:"url('/icon/ArrowLeft.svg')"}}),t("span",{className:UE.navText,children:"Previous"})]}):"next"===r?e("div",{className:`${UE.navButtonCustom} ${n.disabled?UE.disabled:""}`,children:[t("span",{className:UE.navText,children:"Next"}),t("div",{className:UE.navIcon,style:{WebkitMaskImage:"url('/icon/ArrowRight.svg')",maskImage:"url('/icon/ArrowRight.svg')"}})]}):a,...n})})});var GE={container:"Search-module_container__NslV2",input:"Search-module_input__-SRzW",inputInner:"Search-module_inputInner__BFwA4",searchIcon:"Search-module_searchIcon__kOb49",searchIconImage:"Search-module_searchIconImage__JG5O3",placeholder:"Search-module_placeholder__XGEtM",value:"Search-module_value__r-4hD",realInput:"Search-module_realInput__REpAG",inputInner_state_focused:"Search-module_inputInner_state_focused__Zl5a2",cursor:"Search-module_cursor__hsCJx",blink:"Search-module_blink__PSxpt",cursorTyping:"Search-module_cursorTyping__wAW5b",error:"Search-module_error__4NuH1",input_state_default:"Search-module_input_state_default__5QR0F",inputInner_state_default:"Search-module_inputInner_state_default__YpSHL",input_state_hover:"Search-module_input_state_hover__zvOhd",inputInner_state_hover:"Search-module_inputInner_state_hover__Gxcb9",input_state_focused:"Search-module_input_state_focused__TDgsA",input_state_typing:"Search-module_input_state_typing__GFivl",inputInner_state_typing:"Search-module_inputInner_state_typing__9zezH",input_state_filled:"Search-module_input_state_filled__3FE6u",inputInner_state_filled:"Search-module_inputInner_state_filled__qOdD4",input_state_filledHover:"Search-module_input_state_filledHover__kQu9I",inputInner_state_filledHover:"Search-module_inputInner_state_filledHover__2EMWM",input_state_error:"Search-module_input_state_error__F-GNS",inputInner_state_error:"Search-module_inputInner_state_error__zTv5f",input_state_disabled:"Search-module_input_state_disabled__F5cPc",inputInner_state_disabled:"Search-module_inputInner_state_disabled__gKmLt"};const YE=({value:n="",error:o="",hasError:r=!1,state:a="default",placeholder:l="Search",onChange:s,onFocus:c,onBlur:d,disabled:u,className:p="",title:m="",...f})=>{const[h,g]=i(!1),[v,b]=i(!1),y=(()=>{if(u)return"disabled";const e=(e=>{if(!e||"default"===e)return null;const t=e.toLowerCase().replace(/\s+/g,"").replace(/-/g,"");return"filledin"===t||"filled"===t?"filled":"filledinhover"===t||"filledhover"===t||"filled-hover"===t?"filledHover":"focused"===t?"focused":"typing"===t?"typing":"hover"===t?"hover":"error"===t?"error":"disabled"===t?"disabled":t})(a);return e||(r?"error":v?n?"typing":"focused":h?n?"filledHover":"hover":n?"filled":"default")})(),w=[GE.container,p].filter(Boolean).join(" "),C=[GE.input,GE[`input_state_${y}`]].filter(Boolean).join(" "),x=[GE.inputInner,GE[`inputInner_state_${y}`]].filter(Boolean).join(" "),$=u||"disabled"===y;return e("div",{className:w,title:m,onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),children:[t("div",{className:C,children:e("div",{className:x,children:[t("div",{className:GE.searchIcon,children:t(de,{name:"magnifying-glass",className:GE.searchIconImage,size:16})}),t("input",{type:"search",className:GE.realInput,value:n,placeholder:l,onChange:s,onFocus:e=>{b(!0),c?.(e)},onBlur:e=>{b(!1),d?.(e)},disabled:$,...f}),("focused"===y||"typing"===y)&&!n&&t("span",{className:GE.cursor,children:"|"})]})}),r&&o&&t("p",{className:GE.error,children:o})]})};var ZE={statusIndicator:"StatusIndicator-module_statusIndicator__dYsH-",indicator:"StatusIndicator-module_indicator__YQzs6",label:"StatusIndicator-module_label__WM5I3",size_medium:"StatusIndicator-module_size_medium__Fp-1x",state_default:"StatusIndicator-module_state_default__J4F1G",state_hover:"StatusIndicator-module_state_hover__Hmr-w",state_pressed:"StatusIndicator-module_state_pressed__Cz8o1",state_active:"StatusIndicator-module_state_active__nOiXv",state_disabled:"StatusIndicator-module_state_disabled__umvwX"};const QE=({label:n="Status",state:o="default",size:r="medium",color:a="green",onClick:i,className:l="",...s})=>{const c=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"pressed"===t?"pressed":"active"===t?"active":"disabled"===t?"disabled":"default"})(o),d=(e=>{if(!e)return"green";const t=e.toLowerCase();return"red"===t?"red":"yellow"===t?"yellow":"blue"===t?"blue":"green"})(a),u=r.toLowerCase(),p=[ZE.statusIndicator,ZE[`size_${u}`],ZE[`state_${c}`],ZE[`color_${d}`],l].filter(Boolean).join(" ");return e(i?"button":"div",{className:p,onClick:i,disabled:"disabled"===c,type:i?"button":void 0,...s,children:[(()=>{const e=(()=>{switch(d){case"red":return"var(--color-red-500)";case"yellow":return"var(--color-yellow-500)";case"blue":return"var(--color-violet-500)";default:return"var(--color-green-500)"}})();return t("div",{className:ZE.indicator,style:{backgroundColor:e}})})(),t("span",{className:ZE.label,children:n})]})};var JE={tab:"Tab-module_tab__SstW0",label:"Tab-module_label__3WQV-",active:"Tab-module_active__RQPjd",disabled:"Tab-module_disabled__m49K5",underline:"Tab-module_underline__IupnS",slideIn:"Tab-module_slideIn__owi-7"};const ek=({label:n,count:o,isActive:r=!1,disabled:a=!1,onClick:i,className:l="",...s})=>{const c=[JE.tab,r&&JE.active,a&&JE.disabled,l].filter(Boolean).join(" ");return e("button",{className:c,onClick:e=>{!a&&i&&i(e)},disabled:a,type:"button",role:"tab","aria-selected":r,...s,children:[t("span",{className:JE.label,children:n}),null!=o&&t(qE,{count:o,variant:a?"subtle":r?"primary":"neutral",size:"small",className:JE.notification}),r&&t("div",{className:JE.underline})]})};var tk={tabList:"TabList-module_tabList__sSh3n"};const nk=({items:e,activeKey:n,onChange:o,className:r=""})=>{const a=[tk.tabList,r].filter(Boolean).join(" ");return t("div",{className:a,role:"tablist",children:e.map(e=>t(ek,{label:e.label,count:e.count,disabled:e.disabled,isActive:n===e.key,onClick:()=>!e.disabled&&o?.(e.key)},e.key))})};const ok="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function rk(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function ak(e){return"nodeType"in e}function ik(e){var t,n;return e?rk(e)?e:ak(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function lk(e){const{Document:t}=ik(e);return e instanceof t}function sk(e){return!rk(e)&&e instanceof ik(e).HTMLElement}function ck(e){return e instanceof ik(e).SVGElement}function dk(e){return e?rk(e)?e.document:ak(e)?lk(e)?e:sk(e)||ck(e)?e.ownerDocument:document:document:document}const uk=ok?h:l;function pk(e){const t=a(e);return uk(()=>{t.current=e}),s(function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return null==t.current?void 0:t.current(...n)},[])}function mk(e,t){void 0===t&&(t=[e]);const n=a(e);return uk(()=>{n.current!==e&&(n.current=e)},t),n}function fk(e,t){const n=a();return c(()=>{const t=e(n.current);return n.current=t,t},[...t])}function hk(e){const t=pk(e),n=a(null),o=s(e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e},[]);return[n,o]}function gk(e){const t=a();return l(()=>{t.current=e},[e]),t.current}let vk={};function bk(e,t){return c(()=>{if(t)return t;const n=null==vk[e]?0:vk[e]+1;return vk[e]=n,e+"-"+n},[e,t])}function yk(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return o.reduce((t,n)=>{const o=Object.entries(n);for(const[n,r]of o){const o=t[n];null!=o&&(t[n]=o+e*r)}return t},{...t})}}const wk=yk(1),Ck=yk(-1);function xk(e){if(!e)return!1;const{KeyboardEvent:t}=ik(e.target);return t&&e instanceof t}function $k(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=ik(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const Sk=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Sk.Translate.toString(e),Sk.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:o}=e;return t+" "+n+"ms "+o}}}),Ek="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function kk(e){return e.matches(Ek)?e:e.querySelector(Ek)}const Nk={display:"none"};function _k(e){let{id:t,value:n}=e;return r.createElement("div",{id:t,style:Nk},n)}function Ik(e){let{id:t,announcement:n,ariaLiveType:o="assertive"}=e;return r.createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":o,"aria-atomic":!0},n)}const Pk=f(null);const Ok={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},Dk={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Rk(e){let{announcements:t=Dk,container:n,hiddenTextDescribedById:o,screenReaderInstructions:a=Ok}=e;const{announce:d,announcement:u}=function(){const[e,t]=i("");return{announce:s(e=>{null!=e&&t(e)},[]),announcement:e}}(),p=bk("DndLiveRegion"),[f,h]=i(!1);if(l(()=>{h(!0)},[]),function(e){const t=m(Pk);l(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}(c(()=>({onDragStart(e){let{active:n}=e;d(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:o}=e;t.onDragMove&&d(t.onDragMove({active:n,over:o}))},onDragOver(e){let{active:n,over:o}=e;d(t.onDragOver({active:n,over:o}))},onDragEnd(e){let{active:n,over:o}=e;d(t.onDragEnd({active:n,over:o}))},onDragCancel(e){let{active:n,over:o}=e;d(t.onDragCancel({active:n,over:o}))}}),[d,t])),!f)return null;const g=r.createElement(r.Fragment,null,r.createElement(_k,{id:o,value:a.draggable}),r.createElement(Ik,{id:p,announcement:u}));return n?$(g,n):g}var Mk;function Bk(){}function Tk(e,t){return c(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(Mk||(Mk={}));const zk=Object.freeze({x:0,y:0});function Ak(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Lk(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return n-o}function Hk(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return o-n}function Fk(e){let{left:t,top:n,height:o,width:r}=e;return[{x:t,y:n},{x:t+r,y:n},{x:t,y:n+o},{x:t+r,y:n+o}]}function jk(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}function Vk(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const Wk=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=Vk(t,t.left,t.top),a=[];for(const e of o){const{id:t}=e,o=n.get(t);if(o){const n=Ak(Vk(o),r);a.push({id:t,data:{droppableContainer:e,value:n}})}}return a.sort(Lk)};function Kk(e,t){const n=Math.max(t.top,e.top),o=Math.max(t.left,e.left),r=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),i=r-o,l=a-n;if(o<r&&n<a){const n=t.width*t.height,o=e.width*e.height,r=i*l;return Number((r/(n+o-r)).toFixed(4))}return 0}const qk=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=[];for(const e of o){const{id:o}=e,a=n.get(o);if(a){const n=Kk(a,t);n>0&&r.push({id:o,data:{droppableContainer:e,value:n}})}}return r.sort(Hk)};function Uk(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:zk}function Xk(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return o.reduce((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),{...t})}}const Gk=Xk(1);const Yk={ignoreTransform:!1};function Zk(e,t){void 0===t&&(t=Yk);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:o}=ik(e).getComputedStyle(e);t&&(n=function(e,t,n){const o=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(t);if(!o)return e;const{scaleX:r,scaleY:a,x:i,y:l}=o,s=e.left-i-(1-r)*parseFloat(n),c=e.top-l-(1-a)*parseFloat(n.slice(n.indexOf(" ")+1)),d=r?e.width/r:e.width,u=a?e.height/a:e.height;return{width:d,height:u,top:c,right:s+d,bottom:c+u,left:s}}(n,t,o))}const{top:o,left:r,width:a,height:i,bottom:l,right:s}=n;return{top:o,left:r,width:a,height:i,bottom:l,right:s}}function Qk(e){return Zk(e,{ignoreTransform:!0})}function Jk(e,t){const n=[];return e?function o(r){if(null!=t&&n.length>=t)return n;if(!r)return n;if(lk(r)&&null!=r.scrollingElement&&!n.includes(r.scrollingElement))return n.push(r.scrollingElement),n;if(!sk(r)||ck(r))return n;if(n.includes(r))return n;const a=ik(e).getComputedStyle(r);return r!==e&&function(e,t){void 0===t&&(t=ik(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const o=t[e];return"string"==typeof o&&n.test(o)})}(r,a)&&n.push(r),function(e,t){return void 0===t&&(t=ik(e).getComputedStyle(e)),"fixed"===t.position}(r,a)?n:o(r.parentNode)}(e):n}function eN(e){const[t]=Jk(e,1);return null!=t?t:null}function tN(e){return ok&&e?rk(e)?e:ak(e)?lk(e)||e===dk(e).scrollingElement?window:sk(e)?e:null:null:null}function nN(e){return rk(e)?e.scrollX:e.scrollLeft}function oN(e){return rk(e)?e.scrollY:e.scrollTop}function rN(e){return{x:nN(e),y:oN(e)}}var aN;function iN(e){return!(!ok||!e)&&e===document.scrollingElement}function lN(e){const t={x:0,y:0},n=iN(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=o.y,isRight:e.scrollLeft>=o.x,maxScroll:o,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(aN||(aN={}));const sN={x:.2,y:.2};function cN(e,t,n,o,r){let{top:a,left:i,right:l,bottom:s}=n;void 0===o&&(o=10),void 0===r&&(r=sN);const{isTop:c,isBottom:d,isLeft:u,isRight:p}=lN(e),m={x:0,y:0},f={x:0,y:0},h=t.height*r.y,g=t.width*r.x;return!c&&a<=t.top+h?(m.y=aN.Backward,f.y=o*Math.abs((t.top+h-a)/h)):!d&&s>=t.bottom-h&&(m.y=aN.Forward,f.y=o*Math.abs((t.bottom-h-s)/h)),!p&&l>=t.right-g?(m.x=aN.Forward,f.x=o*Math.abs((t.right-g-l)/g)):!u&&i<=t.left+g&&(m.x=aN.Backward,f.x=o*Math.abs((t.left+g-i)/g)),{direction:m,speed:f}}function dN(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:o,bottom:r}=e.getBoundingClientRect();return{top:t,left:n,right:o,bottom:r,width:e.clientWidth,height:e.clientHeight}}function uN(e){return e.reduce((e,t)=>wk(e,rN(t)),zk)}const pN=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+nN(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+oN(t),0)}]];class mN{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=Jk(t),o=uN(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,r]of pN)for(const a of t)Object.defineProperty(this,a,{get:()=>{const t=r(n),i=o[e]-t;return this.rect[a]+i},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class fN{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,n){var o;null==(o=this.target)||o.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function hN(e,t){const n=Math.abs(e.x),o=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+o**2)>t:"x"in t&&"y"in t?n>t.x&&o>t.y:"x"in t?n>t.x:"y"in t&&o>t.y}var gN,vN;function bN(e){e.preventDefault()}function yN(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(gN||(gN={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"}(vN||(vN={}));const wN={start:[vN.Space,vN.Enter],cancel:[vN.Esc],end:[vN.Space,vN.Enter,vN.Tab]},CN=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case vN.Right:return{...n,x:n.x+25};case vN.Left:return{...n,x:n.x-25};case vN.Down:return{...n,y:n.y+25};case vN.Up:return{...n,y:n.y-25}}};class xN{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new fN(dk(t)),this.windowListeners=new fN(ik(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(gN.Resize,this.handleCancel),this.windowListeners.add(gN.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(gN.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&function(e,t){if(void 0===t&&(t=Zk),!e)return;const{top:n,left:o,bottom:r,right:a}=t(e);eN(e)&&(r<=0||a<=0||n>=window.innerHeight||o>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(n),t(zk)}handleKeyDown(e){if(xk(e)){const{active:t,context:n,options:o}=this.props,{keyboardCodes:r=wN,coordinateGetter:a=CN,scrollBehavior:i="smooth"}=o,{code:l}=e;if(r.end.includes(l))return void this.handleEnd(e);if(r.cancel.includes(l))return void this.handleCancel(e);const{collisionRect:s}=n.current,c=s?{x:s.left,y:s.top}:zk;this.referenceCoordinates||(this.referenceCoordinates=c);const d=a(e,{active:t,context:n.current,currentCoordinates:c});if(d){const t=Ck(d,c),o={x:0,y:0},{scrollableAncestors:r}=n.current;for(const n of r){const r=e.code,{isTop:a,isRight:l,isLeft:s,isBottom:c,maxScroll:u,minScroll:p}=lN(n),m=dN(n),f={x:Math.min(r===vN.Right?m.right-m.width/2:m.right,Math.max(r===vN.Right?m.left:m.left+m.width/2,d.x)),y:Math.min(r===vN.Down?m.bottom-m.height/2:m.bottom,Math.max(r===vN.Down?m.top:m.top+m.height/2,d.y))},h=r===vN.Right&&!l||r===vN.Left&&!s,g=r===vN.Down&&!c||r===vN.Up&&!a;if(h&&f.x!==d.x){const e=n.scrollLeft+t.x,a=r===vN.Right&&e<=u.x||r===vN.Left&&e>=p.x;if(a&&!t.y)return void n.scrollTo({left:e,behavior:i});o.x=a?n.scrollLeft-e:r===vN.Right?n.scrollLeft-u.x:n.scrollLeft-p.x,o.x&&n.scrollBy({left:-o.x,behavior:i});break}if(g&&f.y!==d.y){const e=n.scrollTop+t.y,a=r===vN.Down&&e<=u.y||r===vN.Up&&e>=p.y;if(a&&!t.x)return void n.scrollTo({top:e,behavior:i});o.y=a?n.scrollTop-e:r===vN.Down?n.scrollTop-u.y:n.scrollTop-p.y,o.y&&n.scrollBy({top:-o.y,behavior:i});break}}this.handleMove(e,wk(Ck(d,this.referenceCoordinates),o))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function $N(e){return Boolean(e&&"distance"in e)}function SN(e){return Boolean(e&&"delay"in e)}xN.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:o=wN,onActivation:r}=t,{active:a}=n;const{code:i}=e.nativeEvent;if(o.start.includes(i)){const t=a.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==r||r({event:e.nativeEvent}),!0)}return!1}}];class EN{constructor(e,t,n){var o;void 0===n&&(n=function(e){const{EventTarget:t}=ik(e);return e instanceof t?e:dk(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:r}=e,{target:a}=r;this.props=e,this.events=t,this.document=dk(a),this.documentListeners=new fN(this.document),this.listeners=new fN(n),this.windowListeners=new fN(ik(a)),this.initialCoordinates=null!=(o=$k(r))?o:zk,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(gN.Resize,this.handleCancel),this.windowListeners.add(gN.DragStart,bN),this.windowListeners.add(gN.VisibilityChange,this.handleCancel),this.windowListeners.add(gN.ContextMenu,bN),this.documentListeners.add(gN.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(SN(t))return this.timeoutId=setTimeout(this.handleStart,t.delay),void this.handlePending(t);if($N(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:n,onPending:o}=this.props;o(n,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(gN.Click,yN,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(gN.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:o,props:r}=this,{onMove:a,options:{activationConstraint:i}}=r;if(!o)return;const l=null!=(t=$k(e))?t:zk,s=Ck(o,l);if(!n&&i){if($N(i)){if(null!=i.tolerance&&hN(s,i.tolerance))return this.handleCancel();if(hN(s,i.distance))return this.handleStart()}return SN(i)&&hN(s,i.tolerance)?this.handleCancel():void this.handlePending(i,s)}e.cancelable&&e.preventDefault(),a(l)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===vN.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const kN={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class NN extends EN{constructor(e){const{event:t}=e,n=dk(t.target);super(e,kN,n)}}NN.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return!(!n.isPrimary||0!==n.button)&&(null==o||o({event:n}),!0)}}];const _N={move:{name:"mousemove"},end:{name:"mouseup"}};var IN;!function(e){e[e.RightClick=2]="RightClick"}(IN||(IN={}));(class extends EN{constructor(e){super(e,_N,dk(e.event.target))}}).activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return n.button!==IN.RightClick&&(null==o||o({event:n}),!0)}}];const PN={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};var ON,DN;function RN(e){let{acceleration:t,activator:n=ON.Pointer,canScroll:o,draggingRect:r,enabled:i,interval:d=5,order:u=DN.TreeOrder,pointerCoordinates:p,scrollableAncestors:m,scrollableAncestorRects:f,delta:h,threshold:g}=e;const v=function(e){let{delta:t,disabled:n}=e;const o=gk(t);return fk(e=>{if(n||!o||!e)return MN;const r={x:Math.sign(t.x-o.x),y:Math.sign(t.y-o.y)};return{x:{[aN.Backward]:e.x[aN.Backward]||-1===r.x,[aN.Forward]:e.x[aN.Forward]||1===r.x},y:{[aN.Backward]:e.y[aN.Backward]||-1===r.y,[aN.Forward]:e.y[aN.Forward]||1===r.y}}},[n,t,o])}({delta:h,disabled:!i}),[b,y]=function(){const e=a(null);return[s((t,n)=>{e.current=setInterval(t,n)},[]),s(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}(),w=a({x:0,y:0}),C=a({x:0,y:0}),x=c(()=>{switch(n){case ON.Pointer:return p?{top:p.y,bottom:p.y,left:p.x,right:p.x}:null;case ON.DraggableRect:return r}},[n,r,p]),$=a(null),S=s(()=>{const e=$.current;if(!e)return;const t=w.current.x*C.current.x,n=w.current.y*C.current.y;e.scrollBy(t,n)},[]),E=c(()=>u===DN.TreeOrder?[...m].reverse():m,[u,m]);l(()=>{if(i&&m.length&&x){for(const e of E){if(!1===(null==o?void 0:o(e)))continue;const n=m.indexOf(e),r=f[n];if(!r)continue;const{direction:a,speed:i}=cN(e,r,x,t,g);for(const e of["x","y"])v[e][a[e]]||(i[e]=0,a[e]=0);if(i.x>0||i.y>0)return y(),$.current=e,b(S,d),w.current=i,void(C.current=a)}w.current={x:0,y:0},C.current={x:0,y:0},y()}else y()},[t,S,o,y,i,d,JSON.stringify(x),JSON.stringify(v),b,m,E,f,JSON.stringify(g)])}(class extends EN{constructor(e){super(e,PN)}static setup(){return window.addEventListener(PN.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(PN.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;const{touches:r}=n;return!(r.length>1)&&(null==o||o({event:n}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(ON||(ON={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(DN||(DN={}));const MN={x:{[aN.Backward]:!1,[aN.Forward]:!1},y:{[aN.Backward]:!1,[aN.Forward]:!1}};var BN,TN;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(BN||(BN={})),function(e){e.Optimized="optimized"}(TN||(TN={}));const zN=new Map;function AN(e,t){return fk(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function LN(e){let{callback:t,disabled:n}=e;const o=pk(t),r=c(()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(o)},[n]);return l(()=>()=>null==r?void 0:r.disconnect(),[r]),r}function HN(e){return new mN(Zk(e),e)}function FN(e,t,n){void 0===t&&(t=HN);const[o,r]=i(null);function a(){r(o=>{if(!e)return null;var r;if(!1===e.isConnected)return null!=(r=null!=o?o:n)?r:null;const a=t(e);return JSON.stringify(o)===JSON.stringify(a)?o:a})}const s=function(e){let{callback:t,disabled:n}=e;const o=pk(t),r=c(()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(o)},[o,n]);return l(()=>()=>null==r?void 0:r.disconnect(),[r]),r}({callback(t){if(e)for(const n of t){const{type:t,target:o}=n;if("childList"===t&&o instanceof HTMLElement&&o.contains(e)){a();break}}}}),d=LN({callback:a});return uk(()=>{a(),e?(null==d||d.observe(e),null==s||s.observe(document.body,{childList:!0,subtree:!0})):(null==d||d.disconnect(),null==s||s.disconnect())},[e]),o}const jN=[];function VN(e,t){void 0===t&&(t=[]);const n=a(null);return l(()=>{n.current=null},t),l(()=>{const t=e!==zk;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?Ck(e,n.current):zk}function WN(e){return c(()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null,[e])}const KN=[];function qN(e){let{measure:t}=e;const[n,o]=i(null),r=s(e=>{for(const{target:n}of e)if(sk(n)){o(e=>{const o=t(n);return e?{...e,width:o.width,height:o.height}:o});break}},[t]),a=LN({callback:r}),l=s(e=>{const n=function(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return sk(t)?t:e}(e);null==a||a.disconnect(),n&&(null==a||a.observe(n)),o(n?t(n):null)},[t,a]),[d,u]=hk(l);return c(()=>({nodeRef:d,rect:n,setRef:u}),[n,d,u])}const UN=[{sensor:NN,options:{}},{sensor:xN,options:{}}],XN={current:{}},GN={draggable:{measure:Qk},droppable:{measure:Qk,strategy:BN.WhileDragging,frequency:TN.Optimized},dragOverlay:{measure:Zk}};class YN extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const ZN={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new YN,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Bk},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:GN,measureDroppableContainers:Bk,windowRect:null,measuringScheduled:!1},QN=f({activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Bk,draggableNodes:new Map,over:null,measureDroppableContainers:Bk}),JN=f(ZN);function e_(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new YN}}}function t_(e,t){switch(t.type){case Mk.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Mk.DragMove:return null==e.draggable.active?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Mk.DragEnd:case Mk.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Mk.RegisterDroppable:{const{element:n}=t,{id:o}=n,r=new YN(e.droppable.containers);return r.set(o,n),{...e,droppable:{...e.droppable,containers:r}}}case Mk.SetDroppableDisabled:{const{id:n,key:o,disabled:r}=t,a=e.droppable.containers.get(n);if(!a||o!==a.key)return e;const i=new YN(e.droppable.containers);return i.set(n,{...a,disabled:r}),{...e,droppable:{...e.droppable,containers:i}}}case Mk.UnregisterDroppable:{const{id:n,key:o}=t,r=e.droppable.containers.get(n);if(!r||o!==r.key)return e;const a=new YN(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function n_(e){let{disabled:t}=e;const{active:n,activatorEvent:o,draggableNodes:r}=m(QN),a=gk(o),i=gk(null==n?void 0:n.id);return l(()=>{if(!t&&!o&&a&&null!=i){if(!xk(a))return;if(document.activeElement===a.target)return;const e=r.get(i);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame(()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=kk(e);if(t){t.focus();break}}})}},[o,t,r,i,a]),null}const o_=f({...zk,scaleX:1,scaleY:1});var r_;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(r_||(r_={}));const a_=w(function(e){var t,n,o,d;let{id:u,accessibility:p,autoScroll:m=!0,children:f,sensors:h=UN,collisionDetection:g=qk,measuring:v,modifiers:b,...y}=e;const w=C(t_,void 0,e_),[x,$]=w,[S,k]=function(){const[e]=i(()=>new Set),t=s(t=>(e.add(t),()=>e.delete(t)),[e]),n=s(t=>{let{type:n,event:o}=t;e.forEach(e=>{var t;return null==(t=e[n])?void 0:t.call(e,o)})},[e]);return[n,t]}(),[N,_]=i(r_.Uninitialized),I=N===r_.Initialized,{draggable:{active:P,nodes:O,translate:D},droppable:{containers:R}}=x,M=null!=P?O.get(P):null,B=a({initial:null,translated:null}),T=c(()=>{var e;return null!=P?{id:P,data:null!=(e=null==M?void 0:M.data)?e:XN,rect:B}:null},[P,M]),z=a(null),[A,L]=i(null),[H,F]=i(null),j=mk(y,Object.values(y)),V=bk("DndDescribedBy",u),W=c(()=>R.getEnabled(),[R]),K=c(()=>({draggable:{...GN.draggable,...null==q?void 0:q.draggable},droppable:{...GN.droppable,...null==q?void 0:q.droppable},dragOverlay:{...GN.dragOverlay,...null==q?void 0:q.dragOverlay}}),[null==(q=v)?void 0:q.draggable,null==q?void 0:q.droppable,null==q?void 0:q.dragOverlay]);var q;const{droppableRects:U,measureDroppableContainers:X,measuringScheduled:G}=function(e,t){let{dragging:n,dependencies:o,config:r}=t;const[c,d]=i(null),{frequency:u,measure:p,strategy:m}=r,f=a(e),h=function(){switch(m){case BN.Always:return!1;case BN.BeforeDragging:return n;default:return!n}}(),g=mk(h),v=s(function(e){void 0===e&&(e=[]),g.current||d(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[g]),b=a(null),y=fk(t=>{if(h&&!n)return zN;if(!t||t===zN||f.current!==e||null!=c){const t=new Map;for(let n of e){if(!n)continue;if(c&&c.length>0&&!c.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,o=e?new mN(p(e),e):null;n.rect.current=o,o&&t.set(n.id,o)}return t}return t},[e,c,n,h,p]);return l(()=>{f.current=e},[e]),l(()=>{h||v()},[n,h]),l(()=>{c&&c.length>0&&d(null)},[JSON.stringify(c)]),l(()=>{h||"number"!=typeof u||null!==b.current||(b.current=setTimeout(()=>{v(),b.current=null},u))},[u,h,v,...o]),{droppableRects:y,measureDroppableContainers:v,measuringScheduled:null!=c}}(W,{dragging:I,dependencies:[D.x,D.y],config:K.droppable}),Y=function(e,t){const n=null!=t?e.get(t):void 0,o=n?n.node.current:null;return fk(e=>{var n;return null==t?null:null!=(n=null!=o?o:e)?n:null},[o,t])}(O,P),Z=c(()=>H?$k(H):null,[H]),Q=function(){const e=!1===(null==A?void 0:A.autoScrollEnabled),t="object"==typeof m?!1===m.enabled:!1===m,n=I&&!e&&!t;if("object"==typeof m)return{...m,enabled:n};return{enabled:n}}(),J=function(e,t){return AN(e,t)}(Y,K.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:o,config:r=!0}=e;const i=a(!1),{x:l,y:s}="boolean"==typeof r?{x:r,y:r}:r;uk(()=>{if(!l&&!s||!t)return void(i.current=!1);if(i.current||!o)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const r=Uk(n(e),o);if(l||(r.x=0),s||(r.y=0),i.current=!0,Math.abs(r.x)>0||Math.abs(r.y)>0){const t=eN(e);t&&t.scrollBy({top:r.y,left:r.x})}},[t,l,s,o,n])}({activeNode:null!=P?O.get(P):null,config:Q.layoutShiftCompensation,initialRect:J,measure:K.draggable.measure});const ee=FN(Y,K.draggable.measure,J),te=FN(Y?Y.parentElement:null),ne=a({activatorEvent:null,active:null,activeNode:Y,collisionRect:null,collisions:null,droppableRects:U,draggableNodes:O,draggingNode:null,draggingNodeRect:null,droppableContainers:R,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),oe=R.getNodeFor(null==(t=ne.current.over)?void 0:t.id),re=qN({measure:K.dragOverlay.measure}),ae=null!=(n=re.nodeRef.current)?n:Y,ie=I?null!=(o=re.rect)?o:ee:null,le=Boolean(re.nodeRef.current&&re.rect),se=Uk(ce=le?null:ee,AN(ce));var ce;const de=WN(ae?ik(ae):null),ue=function(e){const t=a(e),n=fk(n=>e?n&&n!==jN&&e&&t.current&&e.parentNode===t.current.parentNode?n:Jk(e):jN,[e]);return l(()=>{t.current=e},[e]),n}(I?null!=oe?oe:Y:null),pe=function(e,t){void 0===t&&(t=Zk);const[n]=e,o=WN(n?ik(n):null),[r,a]=i(KN);function l(){a(()=>e.length?e.map(e=>iN(e)?o:new mN(t(e),e)):KN)}const s=LN({callback:l});return uk(()=>{null==s||s.disconnect(),l(),e.forEach(e=>null==s?void 0:s.observe(e))},[e]),r}(ue),me=function(e,t){let{transform:n,...o}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...o}),n):n}(b,{transform:{x:D.x-se.x,y:D.y-se.y,scaleX:1,scaleY:1},activatorEvent:H,active:T,activeNodeRect:ee,containerNodeRect:te,draggingNodeRect:ie,over:ne.current.over,overlayNodeRect:re.rect,scrollableAncestors:ue,scrollableAncestorRects:pe,windowRect:de}),fe=Z?wk(Z,D):null,he=function(e){const[t,n]=i(null),o=a(e),r=s(e=>{const t=tN(e.target);t&&n(e=>e?(e.set(t,rN(t)),new Map(e)):null)},[]);return l(()=>{const t=o.current;if(e!==t){a(t);const i=e.map(e=>{const t=tN(e);return t?(t.addEventListener("scroll",r,{passive:!0}),[t,rN(t)]):null}).filter(e=>null!=e);n(i.length?new Map(i):null),o.current=e}return()=>{a(e),a(t)};function a(e){e.forEach(e=>{const t=tN(e);null==t||t.removeEventListener("scroll",r)})}},[r,e]),c(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>wk(e,t),zk):uN(e):zk,[e,t])}(ue),ge=VN(he),ve=VN(he,[ee]),be=wk(me,ge),ye=ie?Gk(ie,me):null,we=T&&ye?g({active:T,collisionRect:ye,droppableRects:U,droppableContainers:W,pointerCoordinates:fe}):null,Ce=jk(we,"id"),[xe,$e]=i(null),Se=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(le?me:wk(me,ve),null!=(d=null==xe?void 0:xe.rect)?d:null,ee),Ee=a(null),ke=s((e,t)=>{let{sensor:n,options:o}=t;if(null==z.current)return;const r=O.get(z.current);if(!r)return;const a=e.nativeEvent,i=new n({active:z.current,activeNode:r,event:a,options:o,context:ne,onAbort(e){if(!O.get(e))return;const{onDragAbort:t}=j.current,n={id:e};null==t||t(n),S({type:"onDragAbort",event:n})},onPending(e,t,n,o){if(!O.get(e))return;const{onDragPending:r}=j.current,a={id:e,constraint:t,initialCoordinates:n,offset:o};null==r||r(a),S({type:"onDragPending",event:a})},onStart(e){const t=z.current;if(null==t)return;const n=O.get(t);if(!n)return;const{onDragStart:o}=j.current,r={activatorEvent:a,active:{id:t,data:n.data,rect:B}};E(()=>{null==o||o(r),_(r_.Initializing),$({type:Mk.DragStart,initialCoordinates:e,active:t}),S({type:"onDragStart",event:r}),L(Ee.current),F(a)})},onMove(e){$({type:Mk.DragMove,coordinates:e})},onEnd:l(Mk.DragEnd),onCancel:l(Mk.DragCancel)});function l(e){return async function(){const{active:t,collisions:n,over:o,scrollAdjustedTranslate:r}=ne.current;let i=null;if(t&&r){const{cancelDrop:l}=j.current;if(i={activatorEvent:a,active:t,collisions:n,delta:r,over:o},e===Mk.DragEnd&&"function"==typeof l){await Promise.resolve(l(i))&&(e=Mk.DragCancel)}}z.current=null,E(()=>{$({type:e}),_(r_.Uninitialized),$e(null),L(null),F(null),Ee.current=null;const t=e===Mk.DragEnd?"onDragEnd":"onDragCancel";if(i){const e=j.current[t];null==e||e(i),S({type:t,event:i})}})}}Ee.current=i},[O]),Ne=s((e,t)=>(n,o)=>{const r=n.nativeEvent,a=O.get(o);if(null!==z.current||!a||r.dndKit||r.defaultPrevented)return;const i={active:a};!0===e(n,t.options,i)&&(r.dndKit={capturedBy:t.sensor},z.current=o,ke(n,t))},[O,ke]),_e=function(e,t){return c(()=>e.reduce((e,n)=>{const{sensor:o}=n;return[...e,...o.activators.map(e=>({eventName:e.eventName,handler:t(e.handler,n)}))]},[]),[e,t])}(h,Ne);!function(e){l(()=>{if(!ok)return;const t=e.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(const e of t)null==e||e()}},e.map(e=>{let{sensor:t}=e;return t}))}(h),uk(()=>{ee&&N===r_.Initializing&&_(r_.Initialized)},[ee,N]),l(()=>{const{onDragMove:e}=j.current,{active:t,activatorEvent:n,collisions:o,over:r}=ne.current;if(!t||!n)return;const a={active:t,activatorEvent:n,collisions:o,delta:{x:be.x,y:be.y},over:r};E(()=>{null==e||e(a),S({type:"onDragMove",event:a})})},[be.x,be.y]),l(()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:o,scrollAdjustedTranslate:r}=ne.current;if(!e||null==z.current||!t||!r)return;const{onDragOver:a}=j.current,i=o.get(Ce),l=i&&i.rect.current?{id:i.id,rect:i.rect.current,data:i.data,disabled:i.disabled}:null,s={active:e,activatorEvent:t,collisions:n,delta:{x:r.x,y:r.y},over:l};E(()=>{$e(l),null==a||a(s),S({type:"onDragOver",event:s})})},[Ce]),uk(()=>{ne.current={activatorEvent:H,active:T,activeNode:Y,collisionRect:ye,collisions:we,droppableRects:U,draggableNodes:O,draggingNode:ae,draggingNodeRect:ie,droppableContainers:R,over:xe,scrollableAncestors:ue,scrollAdjustedTranslate:be},B.current={initial:ie,translated:ye}},[T,Y,we,ye,O,ae,ie,U,R,xe,ue,be]),RN({...Q,delta:D,draggingRect:ye,pointerCoordinates:fe,scrollableAncestors:ue,scrollableAncestorRects:pe});const Ie=c(()=>({active:T,activeNode:Y,activeNodeRect:ee,activatorEvent:H,collisions:we,containerNodeRect:te,dragOverlay:re,draggableNodes:O,droppableContainers:R,droppableRects:U,over:xe,measureDroppableContainers:X,scrollableAncestors:ue,scrollableAncestorRects:pe,measuringConfiguration:K,measuringScheduled:G,windowRect:de}),[T,Y,ee,H,we,te,re,O,R,U,xe,X,ue,pe,K,G,de]),Pe=c(()=>({activatorEvent:H,activators:_e,active:T,activeNodeRect:ee,ariaDescribedById:{draggable:V},dispatch:$,draggableNodes:O,over:xe,measureDroppableContainers:X}),[H,_e,T,ee,$,V,O,xe,X]);return r.createElement(Pk.Provider,{value:k},r.createElement(QN.Provider,{value:Pe},r.createElement(JN.Provider,{value:Ie},r.createElement(o_.Provider,{value:Se},f)),r.createElement(n_,{disabled:!1===(null==p?void 0:p.restoreFocus)})),r.createElement(Rk,{...p,hiddenTextDescribedById:V}))}),i_=f(null),l_="button";function s_(e){let{id:t,data:n,disabled:o=!1,attributes:r}=e;const a=bk("Draggable"),{activators:i,activatorEvent:l,active:s,activeNodeRect:d,ariaDescribedById:u,draggableNodes:p,over:f}=m(QN),{role:h=l_,roleDescription:g="draggable",tabIndex:v=0}=null!=r?r:{},b=(null==s?void 0:s.id)===t,y=m(b?o_:i_),[w,C]=hk(),[x,$]=hk(),S=function(e,t){return c(()=>e.reduce((e,n)=>{let{eventName:o,handler:r}=n;return e[o]=e=>{r(e,t)},e},{}),[e,t])}(i,t),E=mk(n);uk(()=>(p.set(t,{id:t,key:a,node:w,activatorNode:x,data:E}),()=>{const e=p.get(t);e&&e.key===a&&p.delete(t)}),[p,t]);return{active:s,activatorEvent:l,activeNodeRect:d,attributes:c(()=>({role:h,tabIndex:v,"aria-disabled":o,"aria-pressed":!(!b||h!==l_)||void 0,"aria-roledescription":g,"aria-describedby":u.draggable}),[o,h,v,b,g,u.draggable]),isDragging:b,listeners:o?void 0:S,node:w,over:f,setNodeRef:C,setActivatorNodeRef:$,transform:y}}const c_={timeout:25};function d_(e,t,n){const o=e.slice();return o.splice(n<0?o.length+n:n,0,o.splice(t,1)[0]),o}function u_(e,t){return e.reduce((e,n,o)=>{const r=t.get(n);return r&&(e[o]=r),e},Array(e.length))}function p_(e){return null!==e&&e>=0}const m_=e=>{let{rects:t,activeIndex:n,overIndex:o,index:r}=e;const a=d_(t,o,n),i=t[r],l=a[r];return l&&i?{x:l.left-i.left,y:l.top-i.top,scaleX:l.width/i.width,scaleY:l.height/i.height}:null},f_={scaleX:1,scaleY:1},h_=e=>{var t;let{activeIndex:n,activeNodeRect:o,index:r,rects:a,overIndex:i}=e;const l=null!=(t=a[n])?t:o;if(!l)return null;if(r===n){const e=a[i];return e?{x:0,y:n<i?e.top+e.height-(l.top+l.height):e.top-l.top,...f_}:null}const s=function(e,t,n){const o=e[t],r=e[t-1],a=e[t+1];if(!o)return 0;if(n<t)return r?o.top-(r.top+r.height):a?a.top-(o.top+o.height):0;return a?a.top-(o.top+o.height):r?o.top-(r.top+r.height):0}(a,r,n);return r>n&&r<=i?{x:0,y:-l.height-s,...f_}:r<n&&r>=i?{x:0,y:l.height+s,...f_}:{x:0,y:0,...f_}};const g_="Sortable",v_=r.createContext({activeIndex:-1,containerId:g_,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:m_,disabled:{draggable:!1,droppable:!1}});function b_(e){let{children:t,id:n,items:o,strategy:i=m_,disabled:s=!1}=e;const{active:d,dragOverlay:u,droppableRects:p,over:f,measureDroppableContainers:h}=m(JN),g=bk(g_,n),v=Boolean(null!==u.rect),b=c(()=>o.map(e=>"object"==typeof e&&"id"in e?e.id:e),[o]),y=null!=d,w=d?b.indexOf(d.id):-1,C=f?b.indexOf(f.id):-1,x=a(b),$=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(b,x.current),S=-1!==C&&-1===w||$,E=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(s);uk(()=>{$&&y&&h(b)},[$,b,y,h]),l(()=>{x.current=b},[b]);const k=c(()=>({activeIndex:w,containerId:g,disabled:E,disableTransforms:S,items:b,overIndex:C,useDragOverlay:v,sortedRects:u_(b,p),strategy:i}),[w,g,E.draggable,E.droppable,S,b,C,p,v,i]);return r.createElement(v_.Provider,{value:k},t)}const y_=e=>{let{id:t,items:n,activeIndex:o,overIndex:r}=e;return d_(n,o,r).indexOf(t)},w_=e=>{let{containerId:t,isSorting:n,wasDragging:o,index:r,items:a,newIndex:i,previousItems:l,previousContainerId:s,transition:c}=e;return!(!c||!o)&&((l===a||r!==i)&&(!!n||i!==r&&t===s))},C_={duration:200,easing:"ease"},x_="transform",$_=Sk.Transition.toString({property:x_,duration:0,easing:"linear"}),S_={roleDescription:"sortable"};function E_(e){let{animateLayoutChanges:t=w_,attributes:n,disabled:o,data:r,getNewIndex:d=y_,id:u,strategy:p,resizeObserverConfig:f,transition:h=C_}=e;const{items:g,containerId:v,activeIndex:b,disabled:y,disableTransforms:w,sortedRects:C,overIndex:x,useDragOverlay:$,strategy:S}=m(v_),E=function(e,t){var n,o;if("boolean"==typeof e)return{draggable:e,droppable:!1};return{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(o=null==e?void 0:e.droppable)?o:t.droppable}}(o,y),k=g.indexOf(u),N=c(()=>({sortable:{containerId:v,index:k,items:g},...r}),[v,r,k,g]),_=c(()=>g.slice(g.indexOf(u)),[g,u]),{rect:I,node:P,isOver:O,setNodeRef:D}=function(e){let{data:t,disabled:n=!1,id:o,resizeObserverConfig:r}=e;const i=bk("Droppable"),{active:c,dispatch:d,over:u,measureDroppableContainers:p}=m(QN),f=a({disabled:n}),h=a(!1),g=a(null),v=a(null),{disabled:b,updateMeasurementsFor:y,timeout:w}={...c_,...r},C=mk(null!=y?y:o),x=LN({callback:s(()=>{h.current?(null!=v.current&&clearTimeout(v.current),v.current=setTimeout(()=>{p(Array.isArray(C.current)?C.current:[C.current]),v.current=null},w)):h.current=!0},[w]),disabled:b||!c}),$=s((e,t)=>{x&&(t&&(x.unobserve(t),h.current=!1),e&&x.observe(e))},[x]),[S,E]=hk($),k=mk(t);return l(()=>{x&&S.current&&(x.disconnect(),h.current=!1,x.observe(S.current))},[S,x]),l(()=>(d({type:Mk.RegisterDroppable,element:{id:o,key:i,disabled:n,node:S,rect:g,data:k}}),()=>d({type:Mk.UnregisterDroppable,key:i,id:o})),[o]),l(()=>{n!==f.current.disabled&&(d({type:Mk.SetDroppableDisabled,id:o,key:i,disabled:n}),f.current.disabled=n)},[o,i,n,d]),{active:c,rect:g,isOver:(null==u?void 0:u.id)===o,node:S,over:u,setNodeRef:E}}({id:u,data:N,disabled:E.droppable,resizeObserverConfig:{updateMeasurementsFor:_,...f}}),{active:R,activatorEvent:M,activeNodeRect:B,attributes:T,setNodeRef:z,listeners:A,isDragging:L,over:H,setActivatorNodeRef:F,transform:j}=s_({id:u,data:N,attributes:{...S_,...n},disabled:E.draggable}),V=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return c(()=>e=>{t.forEach(t=>t(e))},t)}(D,z),W=Boolean(R),K=W&&!w&&p_(b)&&p_(x),q=!$&&L,U=q&&K?j:null,X=K?null!=U?U:(null!=p?p:S)({rects:C,activeNodeRect:B,activeIndex:b,overIndex:x,index:k}):null,G=p_(b)&&p_(x)?d({id:u,items:g,activeIndex:b,overIndex:x}):k,Y=null==R?void 0:R.id,Z=a({activeId:Y,items:g,newIndex:G,containerId:v}),Q=g!==Z.current.items,J=t({active:R,containerId:v,isDragging:L,isSorting:W,id:u,index:k,items:g,newIndex:Z.current.newIndex,previousItems:Z.current.items,previousContainerId:Z.current.containerId,transition:h,wasDragging:null!=Z.current.activeId}),ee=function(e){let{disabled:t,index:n,node:o,rect:r}=e;const[s,c]=i(null),d=a(n);return uk(()=>{if(!t&&n!==d.current&&o.current){const e=r.current;if(e){const t=Zk(o.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&c(n)}}n!==d.current&&(d.current=n)},[t,n,o,r]),l(()=>{s&&c(null)},[s]),s}({disabled:!J,index:k,node:P,rect:I});return l(()=>{W&&Z.current.newIndex!==G&&(Z.current.newIndex=G),v!==Z.current.containerId&&(Z.current.containerId=v),g!==Z.current.items&&(Z.current.items=g)},[W,G,v,g]),l(()=>{if(Y===Z.current.activeId)return;if(null!=Y&&null==Z.current.activeId)return void(Z.current.activeId=Y);const e=setTimeout(()=>{Z.current.activeId=Y},50);return()=>clearTimeout(e)},[Y]),{active:R,activeIndex:b,attributes:T,data:N,rect:I,index:k,newIndex:G,items:g,isOver:O,isSorting:W,isDragging:L,listeners:A,node:P,overIndex:x,over:H,setNodeRef:V,setActivatorNodeRef:F,setDroppableNodeRef:D,setDraggableNodeRef:z,transform:null!=ee?ee:X,transition:function(){if(ee||Q&&Z.current.newIndex===k)return $_;if(q&&!xk(M)||!h)return;if(W||J)return Sk.Transition.toString({...h,property:x_});return}()}}function k_(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const N_=[vN.Down,vN.Right,vN.Up,vN.Left],__=(e,t)=>{let{context:{active:n,collisionRect:o,droppableRects:r,droppableContainers:a,over:i,scrollableAncestors:l}}=t;if(N_.includes(e.code)){if(e.preventDefault(),!n||!o)return;const t=[];a.getEnabled().forEach(n=>{if(!n||null!=n&&n.disabled)return;const a=r.get(n.id);if(a)switch(e.code){case vN.Down:o.top<a.top&&t.push(n);break;case vN.Up:o.top>a.top&&t.push(n);break;case vN.Left:o.left>a.left&&t.push(n);break;case vN.Right:o.left<a.left&&t.push(n)}});const s=(e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=Fk(t),a=[];for(const e of o){const{id:t}=e,o=n.get(t);if(o){const n=Fk(o),i=r.reduce((e,t,o)=>e+Ak(n[o],t),0),l=Number((i/4).toFixed(4));a.push({id:t,data:{droppableContainer:e,value:l}})}}return a.sort(Lk)})({active:n,collisionRect:o,droppableRects:r,droppableContainers:t,pointerCoordinates:null});let c=jk(s,"id");if(c===(null==i?void 0:i.id)&&s.length>1&&(c=s[1].id),null!=c){const e=a.get(n.id),t=a.get(c),i=t?r.get(t.id):null,s=null==t?void 0:t.node.current;if(s&&i&&e&&t){const n=Jk(s).some((e,t)=>l[t]!==e),r=I_(e,t),a=function(e,t){if(!k_(e)||!k_(t))return!1;if(!I_(e,t))return!1;return e.data.current.sortable.index<t.data.current.sortable.index}(e,t),c=n||!r?{x:0,y:0}:{x:a?o.width-i.width:0,y:a?o.height-i.height:0},d={x:i.left,y:i.top};return c.x&&c.y?d:Ck(d,c)}}}};function I_(e,t){return!(!k_(e)||!k_(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}var P_={tableContainer:"Table-module_tableContainer__R0vmz",checkboxHeader:"Table-module_checkboxHeader__nB0jp",tableCell:"Table-module_tableCell__gaAKu",antTable:"Table-module_antTable__bZm6O",dragHandleHeader:"Table-module_dragHandleHeader__KczQT",dragHandleCell:"Table-module_dragHandleCell__3TeKk",dragHandle:"Table-module_dragHandle__gi396",rowDragging:"Table-module_rowDragging__OkG8Q","ant-table-tbody":"Table-module_ant-table-tbody__77qO2",sortIcon:"Table-module_sortIcon__1ordV",columnHeaderContent:"Table-module_columnHeaderContent__3qDkz","ant-table-column-title":"Table-module_ant-table-column-title__OGte0",columnHeaderLabel:"Table-module_columnHeaderLabel__s57EO",sortIconLeft:"Table-module_sortIconLeft__zL1i-","ant-table-thead":"Table-module_ant-table-thead__zf80i",resizeHandle:"Table-module_resizeHandle__2zwBq",resizeHandleLine:"Table-module_resizeHandleLine__i85s6",resizing:"Table-module_resizing__rV8oe","ant-table-column-sorters":"Table-module_ant-table-column-sorters__5YiWY"};const O_=f(null),D_=({children:e,id:n,rowKey:o,row:r})=>{const{attributes:a,listeners:i,setNodeRef:l,transform:s,transition:c,isDragging:d}=E_({id:n}),u={transform:Sk.Transform.toString(s),transition:c,opacity:d?.5:1};return t(O_.Provider,{value:{attributes:a,listeners:i},children:t("tr",{ref:l,style:u,className:`${d?P_.rowDragging:""}`,children:e})})},R_=()=>{const e=m(O_);if(!e)return null;const{attributes:n,listeners:o}=e;return t("td",{className:P_.dragHandleCell,children:t("div",{className:P_.dragHandle,...o,...n,children:t(de,{name:"dots-six-vertical",size:12})})})},M_=({columnKey:e,onResizeStart:n,onResize:o,onResizeEnd:r})=>{const l=a(null),[c,d]=i(!1),u=s(t=>{t.preventDefault(),t.stopPropagation(),d(!0);const a=t.clientX,i=l.current?.parentElement?.offsetWidth||0,s=t=>{const n=t.clientX-a,r=Math.max(50,i+n);o&&o(e,r)},c=()=>{d(!1),r&&r(e),document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",c),document.body.style.cursor="",document.body.style.userSelect=""};n&&n(e),document.addEventListener("mousemove",s),document.addEventListener("mouseup",c),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[e,o,n,r]);return t("div",{ref:l,className:`${P_.resizeHandle} ${c?P_.resizing:""}`,onMouseDown:u,title:"Drag to resize column",children:t("div",{className:P_.resizeHandleLine})})};function B_({columns:n=[],data:o=[],rowKey:a="id",onRowReorder:l,onRowSelect:d,onSort:u,className:p="",...m}){const[f,h]=i([]),[g,v]=i({}),[b,y]=i(o),[w,C]=i({});r.useEffect(()=>{y(o)},[o]),r.useEffect(()=>{const e=()=>{const e=document.querySelector(`.${P_.tableContainer}`);if(!e)return;e.querySelectorAll(".ant-table-thead > tr > th").forEach(e=>{const t=window.getComputedStyle(e,"::before");if("none"!==t.content&&""!==t.content){const e="remove-table-separator";let t=document.getElementById(e);t||(t=document.createElement("style"),t.id=e,t.textContent=`\n .${P_.tableContainer} .ant-table-thead > tr > th::before {\n display: none !important;\n content: none !important;\n width: 0 !important;\n height: 0 !important;\n background: none !important;\n opacity: 0 !important;\n visibility: hidden !important;\n }\n `,document.head.appendChild(t))}})};e();const t=[setTimeout(e,50),setTimeout(e,100),setTimeout(e,200)],n=new MutationObserver(e),o=document.querySelector(`.${P_.tableContainer}`);return o&&n.observe(o,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class"]}),()=>{t.forEach(clearTimeout),n.disconnect();const e=document.getElementById("remove-table-separator");e&&e.remove()}},[b,n]),r.useEffect(()=>{const e=()=>{const e=document.querySelector(`.${P_.tableContainer}`);if(!e)return;e.querySelectorAll(".ant-table-column-sorter, .ant-table-column-sorter-full, .ant-table-column-sorter-inner").forEach(e=>{const t=e;t.closest(`.${P_.sortIconLeft}`)||(t.style.display="none",t.style.visibility="hidden",t.style.opacity="0",t.style.width="0",t.style.height="0",t.style.margin="0",t.style.padding="0")})};e();const t=setTimeout(e,100),n=new MutationObserver(e),o=document.querySelector(`.${P_.tableContainer}`);return o&&n.observe(o,{childList:!0,subtree:!0,attributes:!0}),()=>{clearTimeout(t),n.disconnect()}},[b,n,g]);const x=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return c(()=>[...t].filter(e=>null!=e),[...t])}(Tk(NN),Tk(xN,{coordinateGetter:__})),$=e=>{h(e),d&&d(e)},S=s((e,t)=>{C(n=>({...n,[e]:t}))},[]),E=s(e=>{},[]),k=s(e=>{},[]),N=c(()=>{const o={title:"",key:"drag-handle",width:40,fixed:"left",className:P_.dragHandleHeader,render:()=>t(R_,{})},r=n.map(n=>{const o=w[n.key]||n.width||void 0,r=n.sortable&&g.columnKey===n.key&&g.order||null,a=n.sortable?t("span",{className:P_.sortIconLeft,onClick:e=>{if(e.stopPropagation(),!n.sortable)return;let t;if(t=g.columnKey===n.key?"ascend"===g.order?"descend":"descend"===g.order?null:"ascend":"ascend",t){if(v({order:t,columnKey:n.key}),u){const e="ascend"===t?"asc":"desc";u(n.key,e)}}else v({}),u&&u(null,null)},title:"Click to sort",children:(i=r,t(de,"ascend"===i?{name:"sort-ascending",size:14}:"descend"===i?{name:"sort-descending",size:14}:{name:"caret-up-down",size:14}))}):null;var i;return{title:e("div",{className:P_.columnHeaderContent,children:[a,t("span",{className:P_.columnHeaderLabel,children:n.label}),t(M_,{columnKey:n.key,onResizeStart:E,onResize:S,onResizeEnd:k})]}),dataIndex:n.key,key:n.key,width:o,sorter:!1,render:n.render||(e=>e),className:P_.tableCell,showSorterTooltip:!1}}),i=b.length,l=f.length,s=i>0&&l===i,c=!(0===l)&&!s;return[o,{title:t("div",{className:P_.checkboxHeader,children:t(fE,{checked:s,indeterminate:c,onChange:e=>{if(c)$([]);else{const t=e.target.checked;$(t?b.map(e=>e[a]):[])}},size:"small"})}),key:"selection",width:48,fixed:"left",className:`${P_.tableCell} ${P_.checkboxColumn}`,render:(e,n)=>{const o=f.includes(n[a]);return t("div",{className:P_.checkboxCell,children:t(fE,{checked:o,onChange:e=>{const t=e.target.checked?[...f,n[a]]:f.filter(e=>e!==n[a]);$(t)},size:"small"})})}},...r]},[n,g,w,f,b,a,u,E,S,k]),_=[P_.tableContainer,p].filter(Boolean).join(" "),I=c(()=>b.map(e=>e[a]),[b,a]),P={body:{row:e=>{let n=e["data-row-key"];if(!n&&e.children){const t=r.Children.toArray(e.children);for(const e of t){const t=e;if(t?.props?.record?.[a]){n=t.props.record[a];break}}}if(!n&&void 0!==e["data-row-index"]){const t=e["data-row-index"];b[t]&&b[t][a]&&(n=b[t][a])}return n?t(D_,{id:n,rowKey:a,row:e,children:e.children}):t("tr",{...e,children:e.children})}}};return t("div",{className:_,...m,children:t(a_,{sensors:x,collisionDetection:Wk,onDragEnd:e=>{const{active:t,over:n}=e;n&&t.id!==n.id&&y(e=>{const o=e.findIndex(e=>e[a]===t.id),r=e.findIndex(e=>e[a]===n.id),i=d_(e,o,r);return l&&l(i),i})},children:t(b_,{items:I,strategy:h_,children:t(sE,{className:P_.antTable,columns:N,dataSource:b,rowKey:a,pagination:!1,scroll:{y:600,x:"max-content"},size:"middle",components:P})})})})}var T_={container:"TextArea-module_container__8G9wA",label:"TextArea-module_label__sMQAR",description:"TextArea-module_description__P-BRk",textareaWrapper:"TextArea-module_textareaWrapper__cnITK",textareaInner:"TextArea-module_textareaInner__yxET8",textContent:"TextArea-module_textContent__5-qwn",title:"TextArea-module_title__V-RBC",nativeTextarea:"TextArea-module_nativeTextarea__1fdWN",iconWrapper:"TextArea-module_iconWrapper__3-EUI",icon:"TextArea-module_icon__K1T5J",dragIcon:"TextArea-module_dragIcon__UGnz0",dragIconImage:"TextArea-module_dragIconImage__u8y7I",error:"TextArea-module_error__qIUbc",textareaWrapper_state_default:"TextArea-module_textareaWrapper_state_default__2mpPG",textareaWrapper_state_hover:"TextArea-module_textareaWrapper_state_hover__yNCVJ",textareaWrapper_state_disabled:"TextArea-module_textareaWrapper_state_disabled__Q2hqV",textareaWrapper_state_focused:"TextArea-module_textareaWrapper_state_focused__UfdMe",textareaWrapper_state_typing:"TextArea-module_textareaWrapper_state_typing__81iqx",textareaWrapper_state_filled:"TextArea-module_textareaWrapper_state_filled__XKopI",textareaWrapper_state_filledHover:"TextArea-module_textareaWrapper_state_filledHover__AQra1",textareaWrapper_state_error:"TextArea-module_textareaWrapper_state_error__iBcMB"};const z_=({value:n,defaultValue:o,body:r,title:a="",description:l="",label:s="",error:c="",hasLabel:d=!0,hasDescription:u=!0,hasError:p=!1,showIcon:m=!1,chooseIcon:f=null,showTitle:h=!1,showDragIcon:g=!0,state:v="default",placeholder:b="Body",onChange:y,onFocus:w,onBlur:C,disabled:x,className:$="",rows:S=4,...E})=>{const[k,N]=i(!1);let _=x?"disabled":(e=>{if(!e)return"default";const t=e.toLowerCase().replace(/\s+/g,"").replace(/-/g,"");return"filledin"===t||"filled"===t?"filled":"filledinhover"===t||"filledhover"===t||"filled-hover"===t?"filledHover":"focused"===t?"focused":"typing"===t?"typing":"hover"===t?"hover":"error"===t?"error":"disabled"===t?"disabled":t})(v);"default"===_&&k&&(_="focused");const I=[T_.container,$].filter(Boolean).join(" "),P=[T_.textareaWrapper,T_[`textareaWrapper_state_${_}`],p?T_.textareaWrapper_state_error:""].filter(Boolean).join(" "),O=x||"disabled"===_,D=void 0!==n?n:r;return e("div",{className:I,children:[d&&s&&t("label",{className:T_.label,children:s}),u&&l&&t("p",{className:T_.description,children:l}),t("div",{className:P,children:e("div",{className:T_.textareaInner,children:[e("div",{className:T_.textContent,children:[h&&a&&t("p",{className:T_.title,children:a}),t("textarea",{className:T_.nativeTextarea,value:D,defaultValue:o,placeholder:b,onChange:y,onFocus:e=>{N(!0),w&&w(e)},onBlur:e=>{N(!1),C&&C(e)},disabled:O,rows:S,...E})]}),m?f||t("div",{className:T_.iconWrapper,children:t("img",{src:"/icons/Icon.svg",alt:"Icon",className:T_.icon})}):null,g?t("div",{className:T_.dragIcon,children:t("img",{src:"/icons/Vector.svg",alt:"Drag",className:T_.dragIconImage})}):null]})}),(p||"error"===_)&&c&&t("p",{className:T_.error,children:c})]})},A_={light:{background:"#ffffff",text:"#333333",grid:"#e0e0e0",primary:"#ff6b6b",secondary:"#4ecdc4",accent:"#45b7d1",border:"#cccccc",shadow:"rgba(0, 0, 0, 0.1)"},dark:{background:"#1a1a1a",text:"#ffffff",grid:"#333333",primary:"#ff6b6b",secondary:"#4ecdc4",accent:"#45b7d1",border:"#444444",shadow:"rgba(255, 255, 255, 0.1)"}};function L_(e){return{...A_.light,...e}}const H_={default:["#ff6b6b","#4ecdc4","#45b7d1","#96ceb4","#feca57","#ff9ff3"],vibrant:["#ff4757","#2ed573","#3742fa","#ffa502","#ff6348","#5352ed"],pastel:["#ffb3ba","#baffc9","#bae1ff","#ffffba","#ffb3d9","#d4b3ff"],monochrome:["#f8f9fa","#e9ecef","#dee2e6","#ced4da","#adb5bd","#6c757d"],warm:["#ff6b6b","#ff8e53","#ffa726","#ffcc02","#ffeb3b","#fff176"],cool:["#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a"]},F_={fadeIn:{duration:300,easing:"ease-in-out",keyframes:[{opacity:0},{opacity:1}]},slideUp:{duration:300,easing:"ease-out",keyframes:[{transform:"translateY(10px)",opacity:0},{transform:"translateY(0)",opacity:1}]},slideDown:{duration:300,easing:"ease-out",keyframes:[{transform:"translateY(-10px)",opacity:0},{transform:"translateY(0)",opacity:1}]},slideLeft:{duration:300,easing:"ease-out",keyframes:[{transform:"translateX(10px)",opacity:0},{transform:"translateX(0)",opacity:1}]},slideRight:{duration:300,easing:"ease-out",keyframes:[{transform:"translateX(-10px)",opacity:0},{transform:"translateX(0)",opacity:1}]},scaleIn:{duration:200,easing:"ease-out",keyframes:[{transform:"scale(0.95)",opacity:0},{transform:"scale(1)",opacity:1}]},scaleOut:{duration:200,easing:"ease-in",keyframes:[{transform:"scale(1)",opacity:1},{transform:"scale(0.95)",opacity:0}]},bounce:{duration:600,easing:"ease-in-out",keyframes:[{transform:"translateY(0)"},{transform:"translateY(-5px)"},{transform:"translateY(0)"}]},pulse:{duration:1e3,easing:"ease-in-out",iterations:"infinite",keyframes:[{transform:"scale(1)"},{transform:"scale(1.05)"},{transform:"scale(1)"}]},spin:{duration:1e3,easing:"linear",iterations:"infinite",keyframes:[{transform:"rotate(0deg)"},{transform:"rotate(360deg)"}]}};function j_(e,t,n){if(!e)return null;const o=F_[t],r={duration:n?.duration||o.duration,delay:n?.delay||0,easing:n?.easing||o.easing,iterations:n?.iterations||1,direction:n?.direction||"normal",fillMode:n?.fillMode||"both"};return e.animate(o.keyframes,r)}function V_(e,t,n){return e?e.animate(t,n):null}function W_(e,t,n=100,o){return e.map((e,r)=>{const a={...o,delay:(o?.delay||0)+r*n};return j_(e,t,a)}).filter(Boolean)}function K_(e,t,n=300,o="ease-in-out"){e&&(e.style.transition=t.map(e=>`${e} ${n}ms ${o}`).join(", "))}function q_(e){e&&(e.style.transition="")}const U_={fadeIn:"animate-fade-in",slideUp:"animate-slide-up",bounce:"animate-bounce-gentle",pulse:"animate-pulse-slow",spin:"animate-spin"};function X_(e,t){e&&e.classList.add(U_[t])}function G_(e,t){e&&e.classList.remove(U_[t])}function Y_(e,t={}){const{minimumFractionDigits:n=0,maximumFractionDigits:o=2,useGrouping:r=!0,currency:a="USD",style:i="decimal"}=t;return new Intl.NumberFormat("en-US",{style:i,currency:a,minimumFractionDigits:n,maximumFractionDigits:o,useGrouping:r}).format(e)}function Z_(e){if(0===e)return"0";const t=Math.abs(e),n=e<0?"-":"";return t>=1e12?`${n}${(t/1e12).toFixed(1)}T`:t>=1e9?`${n}${(t/1e9).toFixed(1)}B`:t>=1e6?`${n}${(t/1e6).toFixed(1)}M`:t>=1e3?`${n}${(t/1e3).toFixed(1)}K`:e.toString()}function Q_(e,t=1){return`${(100*e).toFixed(t)}%`}function J_(e,t="USD",n=2){return new Intl.NumberFormat("en-US",{style:"currency",currency:t,minimumFractionDigits:n,maximumFractionDigits:n}).format(e)}function eI(e,t={}){const n=new Date(e),o={year:"numeric",month:"short",day:"numeric",...t};return new Intl.DateTimeFormat("en-US",o).format(n)}function tI(e,t={}){const n=new Date(e),o={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",...t};return new Intl.DateTimeFormat("en-US",o).format(n)}function nI(e,t=new Date){const n=new Date(e),o=Math.floor((t.getTime()-n.getTime())/1e3);if(o<60)return"just now";const r=Math.floor(o/60);if(r<60)return`${r} minute${r>1?"s":""} ago`;const a=Math.floor(r/60);if(a<24)return`${a} hour${a>1?"s":""} ago`;const i=Math.floor(a/24);if(i<30)return`${i} day${i>1?"s":""} ago`;const l=Math.floor(i/30);if(l<12)return`${l} month${l>1?"s":""} ago`;const s=Math.floor(l/12);return`${s} year${s>1?"s":""} ago`}function oI(e){if(0===e)return"0 Bytes";const t=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/Math.pow(1024,t)).toFixed(2))} ${["Bytes","KB","MB","GB","TB"][t]}`}function rI(e){const t=Math.floor(e/3600),n=Math.floor(e%3600/60),o=Math.floor(e%60);return t>0?`${t}:${n.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}`:`${n}:${o.toString().padStart(2,"0")}`}function aI(e){const t=e.replace(/\D/g,"");return 10===t.length?`(${t.slice(0,3)}) ${t.slice(3,6)}-${t.slice(6)}`:11===t.length&&"1"===t[0]?`+1 (${t.slice(1,4)}) ${t.slice(4,7)}-${t.slice(7)}`:e}function iI(e){return(e.replace(/\D/g,"").match(/.{1,4}/g)||[]).join(" ").trim()}function lI(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}function sI(e){return e.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase())}function cI(e,t,n="..."){return e.length<=t?e:e.slice(0,t-n.length)+n}function dI(e){return e.toLowerCase().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}function uI(e,t){return`${lI(e)} ${t}`}function pI(e){return e.replace(/([A-Z])/g," $1").replace(/^./,e=>e.toUpperCase()).trim()}function mI(e){return e?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)?{isValid:!0}:{isValid:!1,message:"Please enter a valid email address"}:{isValid:!1,message:"Email is required"}}function fI(e){return e?e.length<8?{isValid:!1,message:"Password must be at least 8 characters long"}:/(?=.*[a-z])/.test(e)?/(?=.*[A-Z])/.test(e)?/(?=.*\d)/.test(e)?/(?=.*[@$!%*?&])/.test(e)?{isValid:!0}:{isValid:!1,message:"Password must contain at least one special character"}:{isValid:!1,message:"Password must contain at least one number"}:{isValid:!1,message:"Password must contain at least one uppercase letter"}:{isValid:!1,message:"Password must contain at least one lowercase letter"}:{isValid:!1,message:"Password is required"}}function hI(e){const t=e.replace(/\D/g,"");return e?t.length<10||t.length>15?{isValid:!1,message:"Please enter a valid phone number"}:/^[\+]?[1-9][\d]{0,15}$/.test(t)?{isValid:!0}:{isValid:!1,message:"Please enter a valid phone number"}:{isValid:!1,message:"Phone number is required"}}function gI(e){try{return new URL(e),{isValid:!0}}catch{return{isValid:!1,message:"Please enter a valid URL"}}}function vI(e){const t=e.replace(/\D/g,"");if(!e)return{isValid:!1,message:"Credit card number is required"};if(t.length<13||t.length>19)return{isValid:!1,message:"Please enter a valid credit card number"};let n=0,o=!1;for(let e=t.length-1;e>=0;e--){let r=parseInt(t[e]);o&&(r*=2,r>9&&(r-=9)),n+=r,o=!o}return n%10!=0?{isValid:!1,message:"Please enter a valid credit card number"}:{isValid:!0}}function bI(e,t){if(t.required&&(!e||""===e.toString().trim()))return{isValid:!1,message:"This field is required"};if(!e||""===e.toString().trim())return{isValid:!0};const n=e.toString();if(t.minLength&&n.length<t.minLength)return{isValid:!1,message:`Must be at least ${t.minLength} characters long`};if(t.maxLength&&n.length>t.maxLength)return{isValid:!1,message:`Must be no more than ${t.maxLength} characters long`};const o=Number(e);if(!isNaN(o)){if(void 0!==t.min&&o<t.min)return{isValid:!1,message:`Must be at least ${t.min}`};if(void 0!==t.max&&o>t.max)return{isValid:!1,message:`Must be no more than ${t.max}`}}return t.pattern&&!t.pattern.test(n)?{isValid:!1,message:"Invalid format"}:t.custom?t.custom(e):{isValid:!0}}function yI(e,t){const n={};let o=!0;for(const[r,a]of Object.entries(t)){const t=bI(e[r],a);t.isValid||(n[r]=t.message||"Invalid value",o=!1)}return{isValid:o,errors:n}}const wI={email:/^[^\s@]+@[^\s@]+\.[^\s@]+$/,phone:/^[\+]?[1-9][\d]{0,15}$/,url:/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)$/,alphanumeric:/^[a-zA-Z0-9]+$/,alphabetic:/^[a-zA-Z\s]+$/,numeric:/^\d+$/,decimal:/^\d*\.?\d+$/,slug:/^[a-z0-9]+(?:-[a-z0-9]+)*$/,hexColor:/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,ipAddress:/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,uuid:/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i},CI={required:{required:!0},email:{required:!0,pattern:wI.email},password:{required:!0,minLength:8},phone:{required:!0,pattern:wI.phone},url:{required:!0,pattern:wI.url},alphanumeric:{pattern:wI.alphanumeric},numeric:{pattern:wI.numeric},decimal:{pattern:wI.decimal},slug:{pattern:wI.slug},hexColor:{pattern:wI.hexColor}};export{ve as Avatar,we as BackgroundGradient,xe as Badge,_ as BarChart,dE as Breadcrumb,me as Button,he as ButtonDanger,PE as Card,bE as Categories,xE as Cell,IE as CellHeader,fE as Checkbox,DE as Chip,ME as ChipList,TE as Dropdown,HE as DropdownNested,AE as DropdownNestedColumn,L as GaugeChart,de as Icon,jE as IconButton,vE as ItemRow,WE as Modal,qE as Notification,XE as Pagination,I as PieChart,gE as Radio,P as Sankey,YE as Search,re as ShankeyPro,R as ShankyFlow,QE as StatusIndicator,ek as Tab,nk as TabList,B_ as Table,z_ as TextArea,CE as Toggle,X_ as addAnimationClass,ce as allIcons,V_ as animateElement,U_ as animationClasses,lI as capitalizeFirst,sI as capitalizeWords,H_ as colorPalettes,CI as commonRules,j_ as createAnimation,L_ as createTheme,K_ as createTransition,F_ as defaultAnimations,A_ as defaultThemes,Z_ as formatCompactNumber,iI as formatCreditCard,J_ as formatCurrency,eI as formatDate,tI as formatDateTime,rI as formatDuration,pI as formatFieldLabel,oI as formatFileSize,Y_ as formatNumber,Q_ as formatPercentage,aI as formatPhoneNumber,nI as formatRelativeTime,uI as formatValidationError,G_ as removeAnimationClass,q_ as removeTransition,dI as slugify,W_ as staggerAnimation,cI as truncateText,vI as validateCreditCard,mI as validateEmail,bI as validateField,yI as validateForm,fI as validatePassword,hI as validatePhoneNumber,gI as validateURL,wI as validationPatterns};
|
|
1
|
+
import{jsxs as e,jsx as t,Fragment as a}from"react/jsx-runtime";import n,{useRef as o,useState as l,useEffect as r,useCallback as i,useMemo as s,createContext as c,useContext as d}from"react";import*as u from"d3";import{Breadcrumb as m,ConfigProvider as h,Pagination as p,Table as g}from"antd";import{useSensors as f,useSensor as _,PointerSensor as v,KeyboardSensor as b,DndContext as w,closestCenter as C}from"@dnd-kit/core";import{sortableKeyboardCoordinates as y,SortableContext as x,verticalListSortingStrategy as k,arrayMove as P,useSortable as N}from"@dnd-kit/sortable";import{CSS as S}from"@dnd-kit/utilities";const I={width:800,height:400,margin:{top:20,right:30,bottom:60,left:80},colors:{gradient:{start:"#8B5CF6",end:"#6B46C1"}},showGrid:!0,animate:!0,responsive:!0,showTooltip:!0,cornerRadius:5,barPadding:.6,tickCount:5,formatValue:e=>0===e?"0":e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(0)}k`:e.toString()},A=n=>{const i={...I,...n},{data:s,title:c,titleStyle:d,titleClassName:m,width:h,height:p,margin:g,colors:f,showGrid:_,animate:v,responsive:b,formatValue:w,className:C,style:y,onBarClick:x,onBarHover:k,showTooltip:P,tooltipStyle:N,tooltipClassName:S,tooltipContent:A,showLegend:L=!0,legendPosition:B="bottom",legendStyle:D,legendClassName:z,legendTitle:$,showYAxis:T=!0,showYAxisLine:R=!1,showYAxisTicks:F=!1,yAxisStyle:W,yAxisClassName:U,yAxisLabelStyle:E,yAxisLabelClassName:M,cornerRadius:H,barPadding:V,tickCount:q}=i,O=o(null),G=o(null),Y=o(null),[j,X]=l({width:h||800,height:p||400}),[Z,K]=l(!1);r(()=>{if(K(!0),!b)return;const e=()=>{if(G.current){const e=G.current.getBoundingClientRect().width,t=Math.max(300,e),a=Math.max(300,.5*t);X({width:t,height:a})}};let t;G.current&&(t=new ResizeObserver(e),t.observe(G.current)),window.addEventListener("resize",e);const a=setTimeout(e,0);return()=>{t&&t.disconnect(),window.removeEventListener("resize",e),clearTimeout(a)}},[b]),r(()=>{if(!Z||!s||0===s.length)return;const e=u.select(O.current);e.selectAll("*").remove();const t=j.width-(g?.left||0)-(g?.right||0),a=j.height-(g?.top||0)-(g?.bottom||0),n=e.attr("width",j.width).attr("height",j.height).append("g").attr("transform",`translate(${g?.left||0},${g?.top||0})`);if(f?.gradient){const t=e.append("defs").append("linearGradient").attr("id","barGradient").attr("x1","0%").attr("y1","0%").attr("x2","0%").attr("y2","100%");t.append("stop").attr("offset","0%").attr("stop-color",f.gradient.start),t.append("stop").attr("offset","100%").attr("stop-color",f.gradient.end)}const o=u.scaleBand().domain(s.map(e=>e.category)).range([0,t]).padding(V||.6),l=u.max(s,e=>e.value)||0,r=u.scaleLinear().domain([0,1.1*l]).range([a,0]);if(_){const e=u.axisLeft(r).tickSize(-t).tickFormat(()=>"").ticks(q||5);n.append("g").attr("class","grid").style("stroke-dasharray","3,3").style("opacity",.3).call(e)}if(T){const e=u.axisLeft(r).ticks(q||5).tickFormat(e=>{const t="number"==typeof e?e:Number(e);return w?w(t):0===t?"0":t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(0)}k`:t.toString()}),t=n.append("g").attr("class","y-axis").style("color","#7D7D7D").style("font-size","0.875rem").call(e);if(W){["color","font-size","font-weight","font-family","opacity","visibility","display","text-anchor","dominant-baseline"].forEach(e=>{const a=W[e];void 0!==a&&t.style(e,a.toString())})}if(R||t.selectAll("path").style("display","none"),F||t.selectAll("line").style("display","none"),t.selectAll("text").attr("class",`y-axis-label ${M||""}`).style("font-weight","500").style("fill","#7D7D7D").style("font-size","0.875rem").style("font-family","Inter, system-ui, sans-serif").style("dominant-baseline","middle").style("text-anchor","end").attr("dx","-8px"),E){["color","font-size","font-weight","font-family","opacity","visibility","display","text-anchor","dominant-baseline"].forEach(e=>{const a=E[e];void 0!==a&&t.selectAll("text").style(e,a.toString())})}}const i=u.axisBottom(o),c=n.append("g").attr("class","x-axis").attr("transform",`translate(0,${a})`).style("color","#718096").style("font-size","0.875rem").call(i);c.selectAll("path").style("display","none"),c.selectAll("line").style("display","none"),t<600&&c.selectAll("text").style("text-anchor","end").attr("dx","-.8em").attr("dy",".15em").attr("transform","rotate(-45)");const d=n.selectAll(".bar").data(s).enter().append("rect").attr("class","bar").attr("x",e=>o(e.category)||0).attr("width",o.bandwidth()).attr("y",a).attr("height",0).attr("rx",H||5).attr("ry",H||5).style("fill",e=>e.color?e.color:f?.gradient?"url(#barGradient)":f?.solid?f.solid:"#8B5CF6").style("cursor",x?"pointer":"default");v?d.transition().duration(800).ease(u.easeBackOut.overshoot(1.1)).attr("y",e=>r(e.value)).attr("height",e=>a-r(e.value)):d.attr("y",e=>r(e.value)).attr("height",e=>a-r(e.value)),(x||k||P)&&d.on("click",(e,t)=>{if(x){const e=s.indexOf(t);x(t,e)}}).on("mouseover",(e,t)=>{if(k){const e=s.indexOf(t);k(t,e)}if(P&&Y.current&&G.current){const a=u.select(Y.current),n=G.current.getBoundingClientRect(),o=e.currentTarget.getBoundingClientRect(),l=o.left-n.left+o.width/2,r=o.top-n.top-15;a.style("opacity",1).style("left",`${l}px`).style("top",`${r}px`).style("transform","translateX(-50%)").html(`\n <div class="font-semibold text-white">${t.category}</div>\n <div class="text-sm text-gray-200 mt-1">${w?w(t.value):t.value.toString()}</div>\n `)}u.select(e.currentTarget).transition().duration(200).style("opacity",.8).style("filter","brightness(1.1)")}).on("mouseout",e=>{P&&Y.current&&u.select(Y.current).style("opacity",0),u.select(e.currentTarget).transition().duration(200).style("opacity",1).style("filter","brightness(1)")}).on("mousemove",(e,t)=>{if(P&&Y.current&&G.current){const t=u.select(Y.current),a=G.current.getBoundingClientRect(),n=e.clientX-a.left,o=e.clientY-a.top;t.style("left",`${n}px`).style("top",o-15+"px").style("transform","translateX(-50%)")}})},[Z,s,j,g,f,_,v,w,x,k,P,H,V,q,T,R,F,W,U,E,M]);const Q=()=>{if(!L||!s||0===s.length)return null;const a=s.map((a,n)=>e("div",{className:"flex items-center space-x-2 cursor-pointer hover:opacity-80 transition-opacity",onClick:()=>x?.(a,n),onMouseEnter:()=>k?.(a,n),children:[t("div",{className:"w-4 h-4 rounded-sm",style:{backgroundColor:a.color||(f?.gradient?"url(#barGradient)":f?.solid||"#8B5CF6")}}),t("span",{className:"text-sm font-medium text-gray-700",children:a.category}),e("span",{className:"text-xs text-gray-500",children:["(",w?w(a.value):a.value.toString(),")"]})]},a.category));return e("div",{className:`${{top:"flex flex-wrap justify-center gap-4 mb-4",bottom:"flex flex-wrap justify-center gap-4 mt-4",left:"flex flex-col space-y-2 mr-4",right:"flex flex-col space-y-2 ml-4"}[B]} ${z||""}`,style:D,children:[$&&t("div",{className:"w-full text-center mb-2",children:t("span",{className:"text-sm font-semibold text-gray-600",children:$})}),a]})};return e("div",{ref:G,className:`bg-white p-6 rounded-xl ${C||""}`,style:y,children:[c&&t("h2",{className:`text-xl font-semibold text-[#18044E] mb-6 ${m||""}`,style:d,children:c}),L&&"top"===B&&Q(),e("div",{className:"relative",children:[t("svg",{ref:O,className:"w-full h-auto"}),P&&t("div",{ref:Y,className:`absolute pointer-events-none bg-gradient-to-r from-gray-800 to-gray-900 text-white rounded-xl px-4 py-3 shadow-2xl opacity-0 transition-all duration-300 z-50 whitespace-nowrap border border-gray-600 ${S||""}`,style:{fontSize:"0.9rem",minWidth:"120px",textAlign:"center",backdropFilter:"blur(10px)",boxShadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(255, 255, 255, 0.05)",...N},children:A?A(s[0]):e(a,{children:[t("div",{className:"font-semibold text-white",children:s[0]?.category}),t("div",{className:"text-sm text-gray-200 mt-1",children:w?w(s[0]?.value||0):(s[0]?.value||0).toString()})]})})]}),L&&"bottom"===B&&Q()]})},L=({data:a,title:n="Policy Effect",titleStyle:i={},containerStyle:s={},chartSize:c=320,showLegend:d=!0,legendStyle:m={}})=>{const h=o(null),[p,g]=l({visible:!1,x:0,y:0,content:"",label:"",value:"",percentage:""}),f=a||[{label:"Allow",value:35,color:"#4A148C"},{label:"Block",value:30,color:"#7B1FA2"},{label:"Isolate",value:20,color:"#BA68C8"},{label:"Tag",value:15,color:"#E1BEE7"}],_=u.sum(f,e=>e.value);r(()=>{if(!h.current)return;const e=u.select(h.current);e.selectAll("*").remove();const t=c,a=c,n=Math.min(t,a)/2-30,o=e.attr("width",t).attr("height",a).append("g").attr("transform",`translate(${t/2}, ${a/2})`),l=u.pie().value(e=>e.value).sort(null).padAngle(0),r=u.arc().innerRadius(0).outerRadius(n),i=u.arc().innerRadius(0).outerRadius(n+8);o.selectAll("arc").data(l(f)).enter().append("g").attr("class","arc").append("path").attr("d",r).attr("fill",e=>e.data.color||"#4A148C").style("cursor","pointer").style("transition","all 0.3s ease").on("mouseover",function(e,t){const a=(t.data.value/_*100).toFixed(1);u.select(this).transition().duration(200).attr("d",i(t)).style("filter","brightness(1.1)"),g({visible:!0,x:e.clientX,y:e.clientY,content:`${t.data.label??""}: ${t.data.value} (${a}%)`,label:t.data.label??"",value:t.data.value.toString(),percentage:a})}).on("mousemove",function(e){g(t=>({...t,x:e.clientX,y:e.clientY}))}).on("mouseout",function(e,t){u.select(this).transition().duration(200).attr("d",r(t)).style("filter","brightness(1)"),g(e=>({...e,visible:!1}))})},[0,f,c]);const v={fontSize:"1.5rem",fontWeight:"600",marginBottom:"1rem",color:"#374151",textAlign:"center",...i},b={display:"flex",flexDirection:"column",alignItems:"center",padding:"1.5rem",backgroundColor:"white",borderRadius:"0.5rem",position:"relative",...s},w={display:"flex",flexWrap:"wrap",justifyContent:"center",gap:"0.5rem",...m};return e("div",{style:b,children:[t("h2",{style:v,children:n}),t("div",{className:"relative",children:t("svg",{ref:h})}),d&&t("div",{style:w,children:f.map((a,n)=>((a.value/_*100).toFixed(1),e("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg",children:[t("div",{className:"w-[10px] h-[10px] rounded-full",style:{backgroundColor:a.color}}),t("div",{className:"text-sm",children:t("div",{className:"font-medium text-[#454545]",children:a.label})})]},n)))}),p.visible&&e("div",{className:"fixed z-50 bg-gray-900 text-white px-4 py-3 rounded-lg pointer-events-none border border-gray-700",style:{left:p.x+15,top:p.y-60,minWidth:"150px"},children:[t("div",{className:"text-sm font-semibold text-blue-300",children:p.label}),e("div",{className:"text-base",children:[p.value," items"]}),e("div",{className:"text-sm text-gray-300",children:[p.percentage,"% of total"]}),t("div",{className:"absolute -bottom-1 left-4 w-2 h-2 bg-gray-900 transform rotate-45 border-r border-b border-gray-700"})]})]})},B=({data:a,width:n=1200,height:l=600,margin:i={top:80,right:50,bottom:50,left:50},backgroundColor:s="linear-gradient(135deg, #0f0f23 0%, #1a1a3e 100%)",showTimeFilter:c=!0,timeFilters:d=["1W","1M","3M","1Y","ALL"],activeFilter:m="3M",onFilterChange:h=()=>{},filterButtonColor:p="#6366f1",filterButtonInactive:g="rgba(255, 255, 255, 0.1)",useCustomFlowWidth:f=!1,customFlowWidth:_=10,minFlowWidth:v=4,maxFlowWidth:b=20,flowWidthMultiplier:w=1,showStatistics:C=!1,statistics:y={trendGoods:204,shoppingViews:65540,storeDynamics:325}})=>{const x=o(null),k=o(),P=o();r(()=>{if(!x.current)return;const e=u.select(x.current);e.selectAll("*").remove(),e.attr("width",n).attr("height",l).style("background",s),e.append("text").attr("x",n/2).attr("y",40).attr("text-anchor","middle").style("font-size","48px").style("font-weight","bold").style("fill","rgba(255,255,255,0.1)").text("Data visualisation");const t=e.append("g").attr("class","zoom-group"),o=t.append("g").attr("transform",`translate(${i.left}, ${i.top})`);P.current&&P.current.remove();const r=u.select("body").append("div").attr("class","tooltip").style("position","absolute").style("background","rgba(0,0,0,0.7)").style("color","white").style("padding","8px").style("border-radius","4px").style("pointer-events","none").style("opacity",0);P.current=r;const c=u.zoom().scaleExtent([.5,3]).on("zoom",e=>{t.attr("transform",e.transform.toString())});e.call(c),k.current=c;const d=180,m=80,h=120,p="drop-shadow(0 8px 16px rgba(0,0,0,0.3))",g="white",A=(l-i.top-i.bottom)/2,L=(n-i.left-i.right)/2-90,B=n-i.left-i.right-d-80,D=a.nodes.filter(e=>"source"===e.type),z=a.nodes.filter(e=>"middle"===e.type),$=a.nodes.filter(e=>"target"===e.type);D.forEach(e=>{e.x=80,e.y=A-40}),z.forEach((e,t)=>{const a=(z.length-1)*h,n=A-a/2;e.x=L,e.y=n+t*h}),$.forEach((e,t)=>{const a=($.length-1)*h,n=A-a/2;e.x=B,e.y=n+t*h});const T=u.drag().on("start",e=>{e.sourceEvent.stopPropagation()}).on("drag",function(e,t){t.x=e.x,t.y=e.y,u.select(this).attr("transform",`translate(${t.x}, ${t.y})`),o.selectAll("path.sankey-link").remove(),W()}),R=e.append("defs"),F=Math.max(...a.links.map(e=>e.value)),W=()=>{R.selectAll("linearGradient.link-gradient").remove(),a.links.forEach((e,t)=>{const n=a.nodes.find(t=>t.id===e.source),l=a.nodes.find(t=>t.id===e.target);if(!n||!l)return;const i=`gradient-${t}`,s=R.append("linearGradient").attr("id",i).attr("class","link-gradient").attr("gradientUnits","userSpaceOnUse").attr("x1",n.x+d).attr("y1",n.y+40).attr("x2",l.x).attr("y2",l.y+40);s.append("stop").attr("offset","0%").attr("stop-color",n.color).attr("stop-opacity",.8),s.append("stop").attr("offset","100%").attr("stop-color",l.color).attr("stop-opacity",.8);const c=n.x+d,m=n.y+40,h=l.x,g=l.y+40,C=(y=e.value,f?_:(y/F*b+v)*w);var y;o.append("path").attr("class","sankey-link").attr("d",`M${c},${m} C${(c+h)/2},${m} ${(c+h)/2},${g} ${h},${g}`).attr("fill","none").attr("stroke",`url(#${i})`).attr("stroke-width",C).attr("stroke-opacity",.7).style("filter",p).on("mouseover",t=>{r.transition().duration(200).style("opacity",1),r.html(`Flow: ${e.value}<br/>Width: ${C.toFixed(1)}px`).style("left",t.pageX+10+"px").style("top",t.pageY-28+"px"),u.select(t.target).attr("stroke-opacity",1)}).on("mouseout",e=>{r.transition().duration(300).style("opacity",0),u.select(e.target).attr("stroke-opacity",.7)}).on("click",()=>{})})};a.nodes.forEach((e,t)=>{const a=`node-gradient-${t}`,n=R.append("linearGradient").attr("id",a).attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","100%");n.append("stop").attr("offset","0%").attr("stop-color",e.color),n.append("stop").attr("offset","100%").attr("stop-color",u.color(e.color)?.darker(.5)?.toString()||e.color);const l=o.append("g").datum(e).attr("transform",`translate(${e.x}, ${e.y})`).style("cursor","pointer").call(T).on("click",(e,t)=>{});l.append("rect").attr("width",d).attr("height",m).attr("rx",16).style("fill",`url(#${a})`).style("stroke",u.color(e.color)?.darker(.5)?.toString()||e.color).style("stroke-width",2).style("filter",p).on("mouseover",function(){u.select(this).style("filter","drop-shadow(0 12px 24px rgba(0,0,0,0.5))")}).on("mouseout",function(){u.select(this).style("filter",p)}).on("click",(e,t)=>{}),l.append("text").attr("x",20).attr("y",30).style("fill",g).style("font-size","18px").style("font-weight","600").text(e.name),l.append("text").attr("x",20).attr("y",55).style("fill",g).style("font-size","24px").style("font-weight","bold").text(`$${e.value.toLocaleString()}`)}),W();const U=e.append("g").attr("class","zoom-controls"),E=n-100-20;if([{text:"Zoom In",action:"zoomIn"},{text:"Zoom Out",action:"zoomOut"},{text:"Reset Zoom",action:"resetZoom"}].forEach((e,t)=>{const a=20+44*t;U.append("rect").attr("x",E).attr("y",a).attr("width",100).attr("height",36).attr("rx",6).attr("fill","rgba(255, 255, 255, 0.9)").attr("stroke","rgba(255, 255, 255, 0.2)").attr("stroke-width",1).style("cursor","pointer").on("mouseover",function(){u.select(this).attr("fill","rgba(255, 255, 255, 1)")}).on("mouseout",function(){u.select(this).attr("fill","rgba(255, 255, 255, 0.9)")}).on("click",()=>{switch(e.action){case"zoomIn":N();break;case"zoomOut":S();break;case"resetZoom":I()}}),U.append("text").attr("x",E+50).attr("y",a+18+4).attr("text-anchor","middle").style("font-size","12px").style("font-weight","600").style("fill","#1a1a3e").style("pointer-events","none").text(e.text)}),e.selectAll(".stats-panel").remove(),!0===C){const t=e.append("g").attr("class","stats-panel"),a=800,o=120,r=(n-a)/2,i=l-o-20;t.append("rect").attr("x",r).attr("y",i).attr("width",a).attr("height",o).attr("rx",12).attr("fill","rgba(15, 15, 35, 1)").attr("stroke","rgba(255, 255, 255, 0.1)").attr("stroke-width",1);const s=[{title:"TREND GOODS",value:y.trendGoods.toLocaleString(),icon:"▶",color:"#6366f1"},{title:"SHOPPING VIEWS",value:y.shoppingViews.toLocaleString(),icon:"👁",color:"#8b5cf6"},{title:"STORE DYNAMICS",value:y.storeDynamics.toLocaleString(),icon:"⏱",color:"#a855f7"}],c=a/3;s.forEach((e,a)=>{const n=r+a*c+c/2;t.append("rect").attr("x",n-25).attr("y",i+15).attr("width",50).attr("height",50).attr("rx",8).attr("fill","rgba(255, 255, 255, 0.1)").attr("stroke","rgba(255, 255, 255, 0.2)").attr("stroke-width",1),t.append("text").attr("x",n).attr("y",i+45).attr("text-anchor","middle").style("font-size","24px").style("fill",e.color).text(e.icon),t.append("text").attr("x",n).attr("y",i+85).attr("text-anchor","middle").style("font-size","12px").style("font-weight","600").style("fill","rgba(255, 255, 255, 0.7)").style("letter-spacing","1px").text(e.title),t.append("text").attr("x",n).attr("y",i+105).attr("text-anchor","middle").style("font-size","28px").style("font-weight","bold").style("fill","white").text(e.value)})}return()=>{P.current&&P.current.remove()}},[a,n,l,i,s,f,_,v,b,w,C,y]);const N=()=>{x.current&&k.current&&u.select(x.current).transition().duration(300).call(k.current.scaleBy,1.2)},S=()=>{x.current&&k.current&&u.select(x.current).transition().duration(300).call(k.current.scaleBy,.8)},I=()=>{x.current&&k.current&&u.select(x.current).transition().duration(500).call(k.current.transform,u.zoomIdentity)};return e("div",{className:"relative w-full h-screen bg-gray-900 flex flex-col items-center justify-center space-y-4",children:[c&&t("div",{className:"absolute top-6 right-6 flex space-x-2 z-10",children:d.map(e=>t("button",{onClick:()=>h(e),className:"px-4 py-1.5 rounded-full text-white text-sm font-medium transition-all duration-200 hover:scale-105",style:{backgroundColor:m===e?p:g},children:e},e))}),t("svg",{ref:x,className:"max-w-full max-h-full"})]})},D={desktop:{width:900,height:650,margin:{top:120,right:180,bottom:60,left:180},fontSize:{title:26,subtitle:14,label:14,value:16},nodeHeight:45,flowScaleFactor:.35},tablet:{width:700,height:550,margin:{top:100,right:140,bottom:50,left:140},fontSize:{title:22,subtitle:14,label:14,value:18},nodeHeight:40,flowScaleFactor:.3},mobile:{width:350,height:400,margin:{top:80,right:80,bottom:40,left:80},fontSize:{title:16,subtitle:12,label:11,value:14},nodeHeight:30,flowScaleFactor:.2}},z={mobile:640,tablet:1024,desktop:1024},$=({flows:a=[],hoverColor:n="#FF6B6B",title:s="Clipboard Copy Source to Paste Diagram",subtitle:c="Explore the user's Sensitive Data Copy Paste behavior, detection history, and risk exposure.",showHeaders:d=!0,showTitle:m=!0,showSubtitle:h=!0,showDebug:p=!1,sourceHeader:g="Copying Sources",targetHeader:f="Pasting Targets",labelColor:_="#374151",valueColor:v="#111827",headerColor:b="#454545",titleColor:w="#111827",subtitleColor:C="#6B7280",headerUnderlineColor:y="#D4C4FF",flowOpacity:x=.7,hoverOpacity:k=.9,curvature:P=.4,valueFormatter:N,labelFormatter:S,tooltipRenderer:I,gradientStops:A,responsive:L=!0,width:B,height:$,margin:T,nodeHeight:R,flowScaleFactor:F,fontSize:W,responsiveConfig:U=D,breakpoints:E=z})=>{const M=o(null),H=o(null),[V,q]=l({width:0,height:0}),[O,G]=l(U.desktop),[Y,j]=l(!1),X=i(()=>{if("undefined"==typeof window)return U.desktop;const e=window.innerWidth;return e<E.mobile?U.mobile:e<E.tablet?U.tablet:(E.desktop,U.desktop)},[U,E]);return r(()=>{const e=()=>{const e=X(),t={...e,margin:T??e.margin,nodeHeight:R??e.nodeHeight,flowScaleFactor:F??e.flowScaleFactor,fontSize:W??e.fontSize,width:B??e.width,height:$??e.height};G(t);const a=window.innerWidth-128;let n=t.width;L&&(n=e===U.desktop?a>=t.width?t.width:Math.max(a,600):Math.max(a,t.width)),q({width:n,height:t.height}),Y||j(!0)},t=setTimeout(e,100);return window.addEventListener("resize",e),()=>{clearTimeout(t),window.removeEventListener("resize",e)}},[X,Y,L,B,$,T,R,F,W,U]),r(()=>{if(!(a.length&&V.width&&V.height&&Y))return;const e=u.select(M.current);e.selectAll("*").remove();const{width:t,height:o}=V,{margin:l,fontSize:r,nodeHeight:i,flowScaleFactor:p}=O,L=new Map,B=new Map,D=new Map,z=new Map;a.forEach(e=>{D.has(e.source)||D.set(e.source,[]),D.get(e.source).push(e),z.has(e.target)||z.set(e.target,[]),z.get(e.target).push(e),L.set(e.source,e.sourceValue),B.set(e.target,e.targetValue)});const $=Array.from(L.entries()),T=Array.from(B.entries()),R=o-l.top-l.bottom,F=R/($.length+1),W=R/(T.length+1),U=$.map(([e,t],a)=>({name:e,value:t,y:l.top+F*(a+1),height:i})),E=T.map(([e,t],a)=>({name:e,value:t,y:l.top+W*(a+1),height:i})),H=l.left,q=t-l.right;e.attr("width",t).attr("height",o);const G=e.append("defs");a.forEach((e,t)=>{const a=G.append("linearGradient").attr("id",`gradient-${t}`).attr("gradientUnits","userSpaceOnUse").attr("x1",H+80).attr("x2",q-80);(A&&A.length>0?A:[{offset:"0%",color:"#8B5CF6",opacity:.8},{offset:"50%",color:"#3B82F6",opacity:.7},{offset:"100%",color:"#06B6D4",opacity:.8}]).forEach(e=>{a.append("stop").attr("offset","number"==typeof e.offset?`${e.offset}%`:e.offset).attr("stop-color",e.color).attr("stop-opacity",e.opacity??.8)})});let j=u.select("body").select(".sankey-tooltip");j.empty()&&(j=u.select("body").append("div").attr("class","sankey-tooltip").style("position","absolute").style("background","rgba(0, 0, 0, 0.9)").style("color","white").style("padding","12px 16px").style("border-radius","8px").style("font-size","13px").style("font-family","system-ui, sans-serif").style("pointer-events","none").style("opacity",0).style("z-index",1e3).style("box-shadow","0 4px 12px rgba(0,0,0,0.3)").style("max-width","250px"));const X=new Map;U.forEach(e=>{const t=D.get(e.name)||[];let a=e.y-e.height/2;X.set(e.name,new Map),t.forEach(t=>{const n=E.find(e=>e.name===t.target);if(!n)return;const o=n.value,l=i,r=t.thickness/o*l*p;X.get(e.name).set(t.target,{startY:a,endY:a+r,centerY:a+r/2}),a+=r})});const Z=new Map;if(E.forEach(e=>{const t=z.get(e.name)||[];let a=e.y-e.height/2;Z.set(e.name,new Map),t.forEach(t=>{const n=i,o=t.thickness/e.value*n*p;Z.get(e.name).set(t.source,{startY:a,endY:a+o,centerY:a+o/2}),a+=o})}),a.forEach((t,a)=>{const o=U.find(e=>e.name===t.source),l=E.find(e=>e.name===t.target);if(o&&l){const o=X.get(t.source).get(t.target),l=Z.get(t.target).get(t.source),r=o.startY,i=o.endY,s=l.startY,c=l.endY,d=P,m=u.interpolateNumber(H,q),h=m(d),p=m(1-d),g=`M${H},${r}\n C${h},${r} ${p},${s} ${q},${s}\n L${q},${c}\n C${p},${c} ${h},${i} ${H},${i}\n Z`;e.append("path").attr("d",g).attr("fill",`url(#gradient-${a})`).attr("opacity",x).style("cursor","pointer").on("mouseover",function(e){u.select(this).attr("fill",n).attr("opacity",k),"function"==typeof I?j.style("opacity",1).html(I(t)):j.style("opacity",1).html(`\n <div style="font-weight: 600; margin-bottom: 8px;">Flow Details</div>\n <div><strong>From:</strong> ${t.source}</div>\n <div><strong>To:</strong> ${t.target}</div>\n <div><strong>Value:</strong> ${t.thickness}</div>\n <div><strong>Source Total:</strong> ${t.sourceValue}</div>\n <div><strong>Target Total:</strong> ${t.targetValue}</div>\n `)}).on("mousemove",function(e){j.style("left",e.pageX+10+"px").style("top",e.pageY-10+"px")}).on("mouseout",function(){u.select(this).attr("fill",`url(#gradient-${a})`).attr("opacity",x),j.style("opacity",0)})}}),d){const t=e.append("text").attr("x",H-15).attr("y",l.top-10).attr("text-anchor","end").attr("fill",b).attr("font-size",`${r.label}px`).attr("font-weight","600").attr("font-family","system-ui, sans-serif").text(g).node();if(t){const a=t.getBBox();e.append("line").attr("x1",a.x).attr("y1",l.top).attr("x2",a.x+a.width).attr("y2",l.top).attr("stroke",y).attr("stroke-width","1").attr("opacity","1")}const a=e.append("text").attr("x",q+15).attr("y",l.top-10).attr("text-anchor","start").attr("fill",b).attr("font-size",`${r.label}px`).attr("font-weight","600").attr("font-family","system-ui, sans-serif").text(f).node();if(a){const t=a.getBBox();e.append("line").attr("x1",t.x).attr("y1",l.top).attr("x2",t.x+t.width).attr("y2",l.top).attr("stroke",y).attr("stroke-width","1").attr("opacity","1")}}return U.forEach(t=>{e.append("text").attr("x",H-15).attr("y",t.y-8).attr("text-anchor","end").attr("fill",_).attr("font-size",`${r.label}px`).attr("font-weight","500").attr("font-family","system-ui, sans-serif").text(S?S(t.name):t.name),e.append("text").attr("x",H-15).attr("y",t.y+12).attr("text-anchor","end").attr("fill",v).attr("font-size",`${r.value}px`).attr("font-weight","700").attr("font-family","system-ui, sans-serif").text(N?N(t.value):t.value)}),E.forEach(t=>{e.append("text").attr("x",q+15).attr("y",t.y-8).attr("text-anchor","start").attr("fill",_).attr("font-size",`${r.label}px`).attr("font-weight","500").attr("font-family","system-ui, sans-serif").text(S?S(t.name):t.name),e.append("text").attr("x",q+15).attr("y",t.y+12).attr("text-anchor","start").attr("fill",v).attr("font-size",`${r.value}px`).attr("font-weight","700").attr("font-family","system-ui, sans-serif").text(N?N(t.value):t.value)}),m&&e.append("text").attr("x",40).attr("y",35).attr("text-anchor","start").attr("fill",w).attr("font-size",`${r.title}px`).attr("font-weight","600").attr("font-family","system-ui, sans-serif").text(s),h&&e.append("text").attr("x",40).attr("y",60).attr("text-anchor","start").attr("fill",C).attr("font-size",`${r.subtitle}px`).attr("font-weight","400").attr("font-family","system-ui, sans-serif").text(c),()=>{u.select("body").selectAll(".sankey-tooltip").remove()}},[a,n,s,c,V,O,A,_,v,b,w,C,y,x,k,P,N,S,I,d,m,h,p]),t("div",{className:"w-full max-w-7xl mx-auto p-4 md:p-6",children:e("div",{className:"bg-white rounded-xl shadow-lg p-4 md:p-8",children:[p&&e("div",{className:"text-xs text-gray-500 mb-2",children:["Screen: ","undefined"!=typeof window?window.innerWidth:"SSR","px | Config: ",O===U.desktop?"Desktop":O===U.tablet?"Tablet":"Mobile"," | Chart: ",V.width,"x",V.height," | Available: ","undefined"!=typeof window?window.innerWidth-128:"SSR","px | Initialized: ",Y?"Yes":"No",t("button",{onClick:()=>{const e=X();G(e);const t=window.innerWidth-128;let a=e.width;a=e===U.desktop?t>=e.width?e.width:Math.max(t,600):Math.max(t,e.width),q({width:a,height:e.height})},className:"ml-4 px-2 py-1 bg-blue-500 text-white text-xs rounded",children:"Refresh"})]}),t("div",{ref:H,className:"w-full overflow-x-auto",children:t("div",{className:"flex justify-center min-w-max",children:t("svg",{ref:M,style:{width:V.width||O.width,height:V.height||O.height,minWidth:O.width,minHeight:O.height}})})})]})})},T=75,R=16,F=1500,W=20,U=e=>`${e.label}: ${e.value.toLocaleString()} (${(100*e.percentage).toFixed(1)}%)`,E=({segments:a,title:n})=>{const c=o(null),{segmentData:d,total:u}=(e=>{const t=e.reduce((e,t)=>e+t.value,0);return{segmentData:e.map(e=>({...e,percentage:e.value/t,arcLength:75*Math.PI*(e.value/t)})),total:t}})(a),{count:m,animationProgress:h}=(e=>{const[t,a]=l(0),[n,o]=l(0);return r(()=>{let t=0;const n=1/(F/W),l=setInterval(()=>{t+=n,t>=1&&(t=1,clearInterval(l)),a(Math.floor(e*t)),o(t)},W);return()=>{clearInterval(l)}},[e]),{count:t,animationProgress:n}})(u),{tooltip:p,showTooltip:g,updateTooltip:f,hideTooltip:_}=(e=>{const[t,a]=l({show:!1,content:"",x:0,y:0,type:""}),n=i((t,n,o)=>{if(!e.current)return;const l=e.current.getBoundingClientRect(),r=t.clientX-l.left,i=t.clientY-l.top;a({show:!0,content:n,type:o,x:r,y:i-70})},[e]),o=i((n,o,l)=>{if(!t.show||!e.current)return;const r=e.current.getBoundingClientRect(),i=n.clientX-r.left,s=n.clientY-r.top;a(e=>({...e,x:i,y:s-70}))},[t.show,e]),r=i(()=>{a(e=>({...e,show:!1}))},[]);return{tooltip:t,showTooltip:n,updateTooltip:o,hideTooltip:r}})(c),v=T,b=R,w=Math.PI*v,C=s(()=>({width:2*v+b,height:v+b+20,viewBox:`0 0 ${2*v+b} ${v+b+20}`}),[v,b]),y=s(()=>((e,t)=>`M ${t/2},${e+10} \n A ${e},${e} 0 0 1 ${2*e+t/2},${e+10}`)(v,b),[v,b]),x=s(()=>d.map((e,t)=>({currentArc:e.arcLength*h,previousArcsLength:d.slice(0,t).reduce((e,t)=>e+t.arcLength*h,0)})),[d,h]);return e("div",{ref:c,className:"flex flex-col items-center justify-center bg-white rounded-xl p-8 w-96 mx-auto relative shadow-[0px_4px_40px_0px_#7090B01F]",children:[t("div",{className:"flex justify-center mb-4",children:e("svg",{width:C.width,height:C.height,viewBox:C.viewBox,className:"relative",children:[t("path",{d:y,fill:"transparent",stroke:"#E5E7EB",strokeWidth:b,strokeLinecap:"round"}),d.map((e,a)=>{const{currentArc:n,previousArcsLength:o}=x[a];return t("path",{d:y,fill:"transparent",stroke:e.color,strokeWidth:b,strokeDasharray:`${n} ${w}`,strokeDashoffset:-o,strokeLinecap:"round"},`visual-${a}`)}),d.map((e,a)=>{const{currentArc:n,previousArcsLength:o}=x[a];return t("path",{d:y,fill:"transparent",stroke:"transparent",strokeWidth:b+4,strokeDasharray:`${n} ${w}`,strokeDashoffset:-o,strokeLinecap:"round",onMouseEnter:t=>g(t,U(e),e.label),onMouseMove:t=>f(t,U(e),e.label),onMouseLeave:_,className:"cursor-pointer",style:{pointerEvents:n>0?"stroke":"none"}},`hit-${a}`)}),t("text",{x:v+b/2,y:v+10-15,textAnchor:"middle",className:"text-base font-bold fill-[#29064D]",children:m.toLocaleString()}),t("text",{x:v+b/2,y:v+10+20,textAnchor:"middle",className:"text-sm fill-[#454545]",children:n})]})}),t("div",{className:"flex flex-wrap gap-4 mt-4 w-full max-w-xs justify-center",children:d.map((a,n)=>e("div",{className:"flex items-center justify-center gap-1",children:[t("div",{className:"w-[10px] h-[10px] rounded-full shadow-sm",style:{backgroundColor:a.color}}),t("span",{className:"text-sm font-medium text-[#454545]",children:a.label})]},`legend-${n}`))}),p.show&&t("div",{className:"absolute z-50 pointer-events-none",style:{left:`${p.x}px`,top:`${p.y}px`,transform:"translateX(-50%)"},children:e("div",{className:"px-3 py-2 rounded-lg text-gray-700 text-sm font-medium bg-white shadow-lg text-center min-w-[120px]",children:[p.content,t("div",{className:"absolute top-full left-1/2 transform -translate-x-1/2 w-0 h-0 border-l-[6px] border-r-[6px] border-t-[6px] border-l-transparent border-r-transparent border-t-white"})]})})]})},M="#7E22CE",H="#7C3AED",V="#DDD6FE",q="#F3F4F6",O="#B4AAFF",G="#8B5FBF",Y="#A78BFA",j="#642CFD",X="#131313",Z="#5B5B5B",K="#6B7280",Q="#059669",J="#7090B0",ee=(e,t=40)=>0===e?0:e>=1e4?t/1:e>5e3?t/2:e<5e3?t/3:t,te={width:1100,height:650,viewBox:"-30 0 1100 700",scale:1,fontSize:14,cardWidth:259,cardHeight:115,nodeWidth:5,main:{source:{x:430,y:320,width:300},target:{x:833,y:236,width:10,spacing:28}},source:{source:{x:75,y:50,width:40,spacing:50},target:{x:430,y:185,width:28,spacing:31}},cards:{cardX:830,cardY1:30,cardY2:160,padding:{top:24,right:20,bottom:24,left:20},gap:16,fontSize:{title:16,value:24,subtitle:14}},specialFlows:{flow5:{target:{x:833,y:384,width:5}}}},ae={width:800,height:600,viewBox:"-25 0 800 600",scale:.7,fontSize:12,cardWidth:220,cardHeight:90,nodeWidth:3.5,main:{source:{x:215,y:224,width:210},target:{x:583,y:165,width:7,spacing:20}},source:{source:{x:52,y:35,width:28,spacing:35},target:{x:215,y:129,width:20,spacing:22}},cards:{cardX:600,cardY1:25,cardY2:140,padding:{top:18,right:15,bottom:18,left:15},gap:12,fontSize:{title:14,value:20,subtitle:12}},specialFlows:{flow5:{target:{x:600,y:280,width:4}}}},ne={width:400,height:500,viewBox:"-20 0 400 500",scale:.4,fontSize:10,cardWidth:200,cardHeight:80,nodeWidth:2,main:{source:{x:120,y:160,width:150},target:{x:300,y:118,width:5,spacing:14}},source:{source:{x:30,y:25,width:20,spacing:25},target:{x:120,y:92,width:14,spacing:15}},cards:{cardX:250,cardY1:20,cardY2:120,padding:{top:12,right:10,bottom:12,left:10},gap:8,fontSize:{title:12,value:16,subtitle:10}},specialFlows:{flow5:{target:{x:280,y:200,width:3}}}},oe={borderRadius:12,shadowOpacity:.12,defaultOpacity:.8,hoverOpacity:1,strokeWidth:.5,hoverStrokeWidth:2,transitionDuration:300,tooltipOffset:10};(e=>{const t=e.filter(e=>"main"===e.type),a=e.filter(e=>"source"===e.type),n=[];t.forEach((e,a)=>{const o=(t.length,e.id,{source:{x:0,y:0,width:0},target:{x:0,y:0,width:0}});o&&n.push({...e,source:o.source,target:o.target})}),a.forEach((e,t)=>{const o=(a.length,e.id,{source:{x:0,y:0,width:0},target:{x:0,y:0,width:0}});o&&n.push({...e,source:o.source,target:o.target})})})([{id:"flow1",type:"main",color:M,gradientColors:{start:O,end:M}},{id:"flow2",type:"main",color:H,gradientColors:{start:O,end:H}},{id:"flow3",type:"main",color:"#A78BFA",gradientColors:{start:O,end:M}},{id:"flow4",type:"main",color:V,gradientColors:{start:O,end:V}},{id:"flow5",type:"main",color:q,gradientColors:{start:O,end:q}},{id:"source1",type:"source",sourceLabel:"Source 1",sourceValue:15e3,color:G,gradientColors:{start:O,end:G}},{id:"source2",type:"source",sourceLabel:"Source 2",sourceValue:12e3,color:H,gradientColors:{start:O,end:H}},{id:"source3",type:"source",sourceLabel:"Source 3",sourceValue:8e3,color:Y,gradientColors:{start:O,end:Y}},{id:"source4",type:"source",sourceLabel:"Source 4",sourceValue:5e3,color:V,gradientColors:{start:O,end:V}},{id:"source5",type:"source",sourceLabel:"Source 5",sourceValue:2e3,color:q,gradientColors:{start:O,end:q}}]);const le=({flows:e,curvature:a=.5,windowSize:n={width:0,height:0},breakpoints:l={mobile:768,tablet:1024},layoutOverrides:i={},totalDetectionsIcon:s={}})=>{const c=o(null);return r(()=>{if("undefined"==typeof window||!e||!Array.isArray(e)||0===e.length||!c.current)return;const t=u.select(c.current);t.selectAll("*").remove();const n=(e,t={})=>({dimensions:{...e.dimensions,...t.dimensions},nodePlacement:{...e.nodePlacement,...t.nodePlacement},specialFlows:t.specialFlows||e.specialFlows,cardConfig:{...e.cardConfig,...t.cardConfig}}),o="undefined"!=typeof window?window.innerWidth:1200,r=e=>{let t;switch(e){case"mobile":t=ne;break;case"tablet":t=ae;break;default:t=te}return{dimensions:{width:(()=>{switch(e){case"mobile":return Math.min(o-40,t.width);case"tablet":return Math.min(o-60,t.width);default:return t.width}})(),height:t.height,viewBox:t.viewBox,scale:t.scale,fontSize:t.fontSize,cardWidth:t.cardWidth,cardHeight:t.cardHeight},nodePlacement:{main:t.main,source:t.source},specialFlows:t.specialFlows,cardConfig:{cardX:t.cards.cardX,cardY1:t.cards.cardY1,cardY2:t.cards.cardY2,padding:t.cards.padding,gap:t.cards.gap,fontSize:t.cards.fontSize}}},{dimensions:d,nodePlacement:m,specialFlows:h,cardConfig:p}=(()=>{if("undefined"==typeof window){const e=r("desktop");return n(e,i.desktop)}const e=window.innerWidth,{mobile:t=768,tablet:a=1024}=l;let o,s={};e<=t?(o="mobile",s=i.mobile||{}):e<=a?(o="tablet",s=i.tablet||{}):(o="desktop",s=i.desktop||{});const c=r(o);return n(c,s)})(),{width:g,height:f,viewBox:_,scale:v,fontSize:b,cardWidth:w,cardHeight:C}=d,y=te.nodeWidth*v;t.attr("width",g).attr("height",f).attr("viewBox",_);const x=t.append("defs");x.append("filter").attr("id","cardShadow").attr("x","-50%").attr("y","-50%").attr("width","200%").attr("height","200%").append("feDropShadow").attr("dx",0).attr("dy",4).attr("stdDeviation",20).attr("flood-color",J).attr("flood-opacity",oe.shadowOpacity);let k=u.select("body").select(".sankey-tooltip");k.empty()&&(k=u.select("body").append("div").attr("class","sankey-tooltip absolute bg-black bg-opacity-80 text-white px-3 py-2 rounded-md text-xs pointer-events-none z-50 shadow-lg border border-white border-opacity-20").style("opacity",0));const P=e.filter(e=>"main"===e.type).map((e,t)=>{const a=h[e.id];if(a)return{...e,source:{x:m.main.source.x,y:m.main.source.y,width:m.main.source.width},target:a.target};{const a=m.main;return{...e,source:{x:a.source.x,y:a.source.y,width:a.source.width},target:{x:a.target.x,y:a.target.y+t*a.target.spacing,width:a.target.width}}}}),N=e.filter(e=>"source"===e.type).map((e,t)=>{const a=m.source,n=(()=>{if("undefined"==typeof window)return[185,216,280,248,310,340,370,400,216,430,280,460];const e=window.innerWidth;return e<=768?[92,107,122,137,152,167,182,197,107,212,122,227]:e<=1024?[129,151,173,195,217,239,261,283,151,305,173,327]:[185,216,280,248,310,340,370,400,216,430,280,460]})(),o=ee(e.sourceValue||0,a.source.width),l=ee(e.sourceValue||0,a.target.width);return{...e,source:{x:a.source.x,y:a.source.y+t*a.source.spacing,width:o},target:{x:a.target.x,y:n[t]||a.target.y+t*a.target.spacing,width:l}}});P.forEach(e=>{const t=x.append("linearGradient").attr("id",`gradient-${e.id}`).attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");e.gradientColors?.start||e.color;const a=e.gradientColors?.end||e.color||"#b6abff";t.append("stop").attr("offset","0%").attr("stop-color",O).attr("stop-opacity",1),t.append("stop").attr("offset","40%").attr("stop-color",O).attr("stop-opacity",1.8),t.append("stop").attr("offset","45%").attr("stop-color",O).attr("stop-opacity",1),t.append("stop").attr("offset","100%").attr("stop-color",a).attr("stop-opacity",1)}),N.forEach(e=>{const t=x.append("linearGradient").attr("id",`source-gradient-${e.id}`).attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");t.append("stop").attr("offset","0%").attr("stop-color",O).attr("stop-opacity",1),t.append("stop").attr("offset","80%").attr("stop-color",O).attr("stop-opacity",1),t.append("stop").attr("offset","100%").attr("stop-color","#BEE4FF").attr("stop-opacity",1)});const S=e=>{if(!e||!e.source||!e.target)return"";const{source:t,target:n}=e,o=a,l=n.x-t.x,r=t.x+l*o,i=n.x-l*o;return`\n M ${t.x} ${t.y-t.width/2}\n C ${r} ${t.y-t.width/2}, \n ${i} ${n.y-n.width/2}, \n ${n.x} ${n.y-n.width/2}\n `+`\n L ${n.x} ${n.y+n.width/2}\n C ${i} ${n.y+n.width/2}, \n ${r} ${t.y+t.width/2}, \n ${t.x} ${t.y+t.width/2}\n Z\n `};P.slice().reverse().forEach(e=>{e&&e.source&&e.target&&t.append("path").attr("d",S(e)).attr("fill",`url(#gradient-${e.id})`).attr("stroke","rgba(255, 255, 255, 0.1)").attr("stroke-width",oe.strokeWidth).style("opacity","0.6").style("transition",`opacity ${oe.transitionDuration}ms, stroke ${oe.transitionDuration}ms`).style("cursor","pointer").attr("data-flow-id",e.id).style("opacity",oe.defaultOpacity).on("mouseover",function(a,n){const o=P.find(t=>t.id===e.id);o&&(k.transition().duration(200).style("opacity",1),k.html(`\n <strong>Flow ${e.id}</strong><br/>\n Source: (${o.source.x}, ${o.source.y})<br/>\n Source Width: ${o.source.width}px<br/>\n Target: (${o.target.x}, ${o.target.y})<br/>\n Target Width: ${o.target.width}px<br/>\n Color: ${o.color}\n `).style("left",a.pageX+10+"px").style("top",a.pageY-10+"px"),t.selectAll("path[data-flow-id]").style("opacity",.3),u.select(this).style("opacity",1).style("stroke","rgba(139, 95, 191, 1.0)").style("stroke-width","2px").raise())}).on("mousemove",function(e){k.style("left",e.pageX+10+"px").style("top",e.pageY-10+"px")}).on("mouseout",function(){k.transition().duration(500).style("opacity",0),t.selectAll("path[data-flow-id]").style("opacity",.8),u.select(this).style("stroke","rgba(255, 255, 255, 0.1)").style("stroke-width","0.5")})}),N.forEach(e=>{e&&e.source&&e.target&&t.append("path").attr("d",S(e)).attr("fill",`url(#source-gradient-${e.id})`).attr("stroke","rgba(255, 255, 255, 0.1)").attr("stroke-width","0.5").style("opacity","0.6").style("transition","opacity 0.3s, stroke 0.3s").style("cursor","pointer").attr("data-flow-id",e.id).style("opacity",.6).style("mix-blend-mode","multiply").on("mouseover",function(a,n){const o=N.find(t=>t.id===e.id);o&&(k.transition().duration(200).style("opacity",1),k.html(`\n <strong>${o.sourceLabel}</strong><br/>\n Value: ${o.sourceValue}<br/>\n Source: (${o.source.x}, ${o.source.y})<br/>\n Source Width: ${o.source.width}px<br/>\n Target: (${o.target.x}, ${o.target.y})<br/>\n Target Width: ${o.target.width}px\n `).style("left",a.pageX+10+"px").style("top",a.pageY-10+"px"),t.selectAll("path[data-flow-id]").style("opacity",.3),u.select(this).style("opacity",1).style("stroke","rgba(139, 95, 191, 1.0)").style("stroke-width","2px").raise())}).on("mousemove",function(e){k.style("left",e.pageX+10+"px").style("top",e.pageY-10+"px")}).on("mouseout",function(){k.transition().duration(500).style("opacity",0),t.selectAll("path[data-flow-id]").style("opacity",.8),u.select(this).style("stroke","rgba(255, 255, 255, 0.1)").style("stroke-width","0.5")})}),P.slice().reverse().forEach((e,a)=>{e&&e.source&&e.target&&t.append("rect").attr("x",e.target.x-y/2).attr("y",e.target.y-e.target.width/2).attr("width",y).attr("height",e.target.width).style("fill",j).style("rx","3").style("ry","3")}),N.forEach((e,a)=>{if(!e||!e.source||!e.target)return;const n=(()=>{if("undefined"==typeof window)return 65;const e=window.innerWidth;return e<=768?25:e<=1024?45:65})();t.append("text").attr("x",n).attr("y",e.source.y-10).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","12px").style("fill",Z).style("font-weight","500").style("font-size",`${b}px`).text(e.sourceLabel||""),t.append("text").attr("x",n).attr("y",e.source.y+8).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","11px").style("fill","black").style("font-weight","600").style("font-size",b-2+"px").text(void 0!==e.sourceValue?e.sourceValue:""),t.append("rect").attr("x",e.target.x-y/2).attr("y",e.target.y-e.target.width/2).attr("width",y-3).attr("height",e.target.width).style("fill",j).style("rx","3").style("ry","3")});const{cardX:I,cardY1:A,cardY2:L,padding:B,gap:D,fontSize:z}=p;t.append("rect").attr("x",I).attr("y",A).attr("width",w).attr("height",C).attr("rx",12*v).attr("ry",12*v).attr("fill","white").attr("filter","url(#cardShadow)").style("fill","white").style("rx","8").style("ry","8").style("filter","drop-shadow(0px 4px 40px rgba(112, 144, 176, 0.12))"),t.append("text").attr("x",I+B.left).attr("y",A+B.top+8).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","16px").style("fill",X).style("font-weight","500").style("font-size",`${z.title}px`).style("font-weight","500").text("Total Detections");const $=(()=>{const e=s.alignment||"left",t=s.position?.y||A+B.top+8;if(void 0!==s.position?.x)return{x:s.position.x,y:t};switch(e){case"left":const e=((e,t)=>e.length*t*.55)("Total Detections",z.title);return{x:I+B.left+e+15,y:t};case"center":return{x:I+w/2,y:t};default:return{x:I+w-B.right-16,y:t}}})(),T={icon:s.icon||"↗",color:s.color||"#8B5FBF",size:s.size||14,x:$.x,y:$.y,alignment:s.alignment||"right"},R=t.append("text").attr("x",T.x).attr("y",T.y).attr("text-anchor",(e=>{switch(e){case"left":return"start";case"center":return"middle";default:return"end"}})(T.alignment)).attr("dominant-baseline","middle").style("font-size",`${T.size}px`).style("fill",T.color).style("font-weight","600").style("cursor",s.onClick?"pointer":"default").text(T.icon);s.onClick&&R.on("click",s.onClick).on("mouseover",function(){u.select(this).style("opacity",.7)}).on("mouseout",function(){u.select(this).style("opacity",1)}),t.append("text").attr("x",I+B.left).attr("y",A+B.top+8+D+16).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","16px").style("fill",X).style("font-weight","500").style("font-size","24px").style("font-weight","700").style("fill",X).text("9100"),t.append("text").attr("x",I+B.left+70).attr("y",A+B.top+8+D+16).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","12px").style("fill",Q).style("font-weight","500").style("font-size","14px").style("font-weight","500").style("fill",Q).text("▲ +10%"),t.append("text").attr("x",I+B.left).attr("y",A+B.top+8+D+16+D+12).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","11px").style("fill",K).style("font-weight","400").style("font-size","14px").style("font-weight","400").style("fill",K).text("In last 7 days"),t.append("rect").attr("x",I).attr("y",L).attr("width",259).attr("height",307).attr("rx",12).attr("ry",12).attr("fill","white").attr("filter","url(#cardShadow)").style("fill","white").style("rx","8").style("ry","8").style("filter","drop-shadow(0px 4px 40px rgba(112, 144, 176, 0.12))"),t.append("text").attr("x",I+B.left).attr("y",L+B.top+16).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","16px").style("fill",X).style("font-weight","500").text("Mitigated Threats"),t.append("text").attr("x",I+259-B.right).attr("y",L+B.top+16).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","16px").style("fill",X).style("font-weight","500").text("9000");[{label:"Critical",value:60,color:"#4C1D95"},{label:"High",value:300,color:"#7C3AED"},{label:"Medium",value:860,color:"#A78BFA"},{label:"Low",value:100,color:"#DDD6FE"}].forEach((e,a)=>{const n=L+B.top+16+D+20+28*a;t.append("text").attr("x",I+B.left).attr("y",n).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","14px").style("fill",Z).style("font-weight","500").text(e.label),t.append("text").attr("x",I+259-B.right).attr("y",n).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","14px").style("fill",Z).style("font-weight","500").text(e.value)});const F=L+B.top+16+D+20+112+D+20;t.append("text").attr("x",I+B.left).attr("y",F).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","16px").style("fill",X).style("font-weight","500").text("Unmitigated Threats"),t.append("text").attr("x",I+259-B.right).attr("y",F).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","16px").style("fill",X).style("font-weight","500").text("100");return[{label:"Informational",value:100,color:"#F3F4F6"}].forEach((e,a)=>{const n=F+D+16+28*a;t.append("text").attr("x",I+B.left).attr("y",n).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","14px").style("fill",Z).style("font-weight","500").text(e.label),t.append("text").attr("x",I+259-B.right).attr("y",n).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","14px").style("fill",Z).style("font-weight","500").text(e.value)}),()=>{"undefined"!=typeof window&&u.select("body").selectAll(".sankey-tooltip").remove()}},[e,a,c]),t("div",{className:"flex justify-center w-full",children:t("svg",{id:"sankey-chart",ref:c,className:"block mx-auto",style:{display:"block",margin:"0 auto"}})})};function re(e){var t,a,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(a=re(e[t]))&&(n&&(n+=" "),n+=a)}else for(a in e)e[a]&&(n&&(n+=" "),n+=a);return n}function ie(){for(var e,t,a=0,n="",o=arguments.length;a<o;a++)(e=arguments[a])&&(t=re(e))&&(n&&(n+=" "),n+=t);return n}var se={button:"Button-module_button__hvJpb",label:"Button-module_label__zSB3D",icon:"Button-module_icon__pfoz5",loaderIcon:"Button-module_loaderIcon__4WG9k",spin:"Button-module_spin__6Uwop",size_medium:"Button-module_size_medium__TGkrI",size_small:"Button-module_size_small__-vQKB",style_primary:"Button-module_style_primary__GfCKd",state_default:"Button-module_state_default__KGxJA",state_hover:"Button-module_state_hover__NNaw2",state_focus:"Button-module_state_focus__xudCD",state_disabled:"Button-module_state_disabled__6SakQ",state_loading:"Button-module_state_loading__ZhHO9",style_secondary:"Button-module_style_secondary__9kVUP",style_neutral:"Button-module_style_neutral__ZoLsO",style_subtle:"Button-module_style_subtle__oOeBv"},ce={icon:"Icon-module_icon__hJi-x",variant_default:"Icon-module_variant_default__4khrG",variant_hover:"Icon-module_variant_hover__Z-Zt4",variant_active:"Icon-module_variant_active__B7W-7",variant_disabled:"Icon-module_variant_disabled__u8BHu",variant_white:"Icon-module_variant_white__LRbrT"};const de=[{name:"app-window",label:"App Window",filePath:"icon/AppWindow.svg",variantCount:1},{name:"arrow-arc-left",label:"Arrow Arc Left",filePath:"icon/ArrowArcLeft.svg",variantCount:1},{name:"arrow-arc-right",label:"Arrow Arc Right",filePath:"icon/ArrowArcRight.svg",variantCount:1},{name:"arrow-bend-double-up-left",label:"Arrow Bend Double Up Left",filePath:"icon/ArrowBendDoubleUpLeft.svg",variantCount:1},{name:"arrow-bend-double-up-right",label:"Arrow Bend Double Up Right",filePath:"icon/ArrowBendDoubleUpRight.svg",variantCount:1},{name:"arrow-bend-down-left",label:"Arrow Bend Down Left",filePath:"icon/ArrowBendDownLeft.svg",variantCount:1},{name:"arrow-bend-down-right",label:"Arrow Bend Down Right",filePath:"icon/ArrowBendDownRight.svg",variantCount:1},{name:"arrow-bend-left-down",label:"Arrow Bend Left Down",filePath:"icon/ArrowBendLeftDown.svg",variantCount:1},{name:"arrow-bend-right-down",label:"Arrow Bend Right Down",filePath:"icon/ArrowBendRightDown.svg",variantCount:1},{name:"arrow-bend-right-up",label:"Arrow Bend Right Up",filePath:"icon/ArrowBendRightUp.svg",variantCount:1},{name:"arrow-bend-up-left",label:"Arrow Bend Up Left",filePath:"icon/ArrowBendUpLeft.svg",variantCount:1},{name:"arrow-bend-up-right",label:"Arrow Bend Up Right",filePath:"icon/ArrowBendUpRight.svg",variantCount:1},{name:"arrow-circle-down",label:"Arrow Circle Down",filePath:"icon/ArrowCircleDown.svg",variantCount:1},{name:"arrow-circle-down-left",label:"Arrow Circle Down Left",filePath:"icon/ArrowCircleDownLeft.svg",variantCount:1},{name:"arrow-circle-down-right",label:"Arrow Circle Down Right",filePath:"icon/ArrowCircleDownRight.svg",variantCount:1},{name:"arrow-circle-left",label:"Arrow Circle Left",filePath:"icon/ArrowCircleLeft.svg",variantCount:1},{name:"arrow-circle-right",label:"Arrow Circle Right",filePath:"icon/ArrowCircleRight.svg",variantCount:1},{name:"arrow-circle-up",label:"Arrow Circle Up",filePath:"icon/ArrowCircleUp.svg",variantCount:1},{name:"arrow-circle-up-left",label:"Arrow Circle Up Left",filePath:"icon/ArrowCircleUpLeft.svg",variantCount:1},{name:"arrow-circle-up-right",label:"Arrow Circle Up Right",filePath:"icon/ArrowCircleUpRight.svg",variantCount:1},{name:"arrow-clockwise",label:"Arrow Clockwise",filePath:"icon/ArrowClockwise.svg",variantCount:1},{name:"arrow-counter-clockwise",label:"Arrow Counter Clockwise",filePath:"icon/ArrowCounterClockwise.svg",variantCount:1},{name:"arrow-down",label:"Arrow Down",filePath:"icon/ArrowDown.svg",variantCount:1},{name:"arrow-down-left",label:"Arrow Down Left",filePath:"icon/ArrowDownLeft.svg",variantCount:1},{name:"arrow-down-right",label:"Arrow Down Right",filePath:"icon/ArrowDownRight.svg",variantCount:1},{name:"arrow-elbow-down-left",label:"Arrow Elbow Down Left",filePath:"icon/ArrowElbowDownLeft.svg",variantCount:1},{name:"arrow-elbow-down-right",label:"Arrow Elbow Down Right",filePath:"icon/ArrowElbowDownRight.svg",variantCount:1},{name:"arrow-elbow-left",label:"Arrow Elbow Left",filePath:"icon/ArrowElbowLeft.svg",variantCount:1},{name:"arrow-elbow-left-down",label:"Arrow Elbow Left Down",filePath:"icon/ArrowElbowLeftDown.svg",variantCount:1},{name:"arrow-elbow-left-up",label:"Arrow Elbow Left Up",filePath:"icon/ArrowElbowLeftUp.svg",variantCount:1},{name:"arrow-elbow-right",label:"Arrow Elbow Right",filePath:"icon/ArrowElbowRight.svg",variantCount:1},{name:"arrow-elbow-right-down",label:"Arrow Elbow Right Down",filePath:"icon/ArrowElbowRightDown.svg",variantCount:1},{name:"arrow-elbow-right-up",label:"Arrow Elbow Right Up",filePath:"icon/ArrowElbowRightUp.svg",variantCount:1},{name:"arrow-elbow-up-left",label:"Arrow Elbow Up Left",filePath:"icon/ArrowElbowUpLeft.svg",variantCount:1},{name:"arrow-elbow-up-right",label:"Arrow Elbow Up Right",filePath:"icon/ArrowElbowUpRight.svg",variantCount:1},{name:"arrow-left",label:"Arrow Left",filePath:"icon/ArrowLeft.svg",variantCount:1},{name:"arrow-line-down",label:"Arrow Line Down",filePath:"icon/ArrowLineDown.svg",variantCount:1},{name:"arrow-line-down-left",label:"Arrow Line Down Left",filePath:"icon/ArrowLineDownLeft.svg",variantCount:1},{name:"arrow-line-down-right",label:"Arrow Line Down Right",filePath:"icon/ArrowLineDownRight.svg",variantCount:1},{name:"arrow-line-left",label:"Arrow Line Left",filePath:"icon/ArrowLineLeft.svg",variantCount:1},{name:"arrow-line-right",label:"Arrow Line Right",filePath:"icon/ArrowLineRight.svg",variantCount:1},{name:"arrow-line-up",label:"Arrow Line Up",filePath:"icon/ArrowLineUp.svg",variantCount:1},{name:"arrow-line-up-left",label:"Arrow Line Up Left",filePath:"icon/ArrowLineUpLeft.svg",variantCount:1},{name:"arrow-line-up-right",label:"Arrow Line Up Right",filePath:"icon/ArrowLineUpRight.svg",variantCount:1},{name:"arrow-right",label:"Arrow Right",filePath:"icon/ArrowRight.svg",variantCount:1},{name:"arrow-square-down",label:"Arrow Square Down",filePath:"icon/ArrowSquareDown.svg",variantCount:1},{name:"arrow-square-down-left",label:"Arrow Square Down Left",filePath:"icon/ArrowSquareDownLeft.svg",variantCount:1},{name:"arrow-square-down-right",label:"Arrow Square Down Right",filePath:"icon/ArrowSquareDownRight.svg",variantCount:1},{name:"arrow-square-left",label:"Arrow Square Left",filePath:"icon/ArrowSquareLeft.svg",variantCount:1},{name:"arrow-square-right",label:"Arrow Square Right",filePath:"icon/ArrowSquareRight.svg",variantCount:1},{name:"arrow-square-up",label:"Arrow Square Up",filePath:"icon/ArrowSquareUp.svg",variantCount:1},{name:"arrow-square-up-left",label:"Arrow Square Up Left",filePath:"icon/ArrowSquareUpLeft.svg",variantCount:1},{name:"arrow-square-up-right",label:"Arrow Square Up Right",filePath:"icon/ArrowSquareUpRight.svg",variantCount:1},{name:"arrow-up",label:"Arrow Up",filePath:"icon/ArrowUp.svg",variantCount:1},{name:"arrow-up-left",label:"Arrow Up Left",filePath:"icon/ArrowUpLeft.svg",variantCount:1},{name:"arrow-up-right",label:"Arrow Up Right",filePath:"icon/ArrowUpRight.svg",variantCount:1},{name:"arrows-clockwise",label:"Arrows Clockwise",filePath:"icon/ArrowsClockwise.svg",variantCount:1},{name:"arrows-counter-clockwise",label:"Arrows Counter Clockwise",filePath:"icon/ArrowsCounterClockwise.svg",variantCount:1},{name:"arrows-down-up",label:"Arrows Down Up",filePath:"icon/ArrowsDownUp.svg",variantCount:1},{name:"arrows-horizontal",label:"Arrows Horizontal",filePath:"icon/ArrowsHorizontal.svg",variantCount:1},{name:"arrows-in",label:"Arrows In",filePath:"icon/ArrowsIn.svg",variantCount:1},{name:"arrows-in-cardinal",label:"Arrows In Cardinal",filePath:"icon/ArrowsInCardinal.svg",variantCount:1},{name:"arrows-in-line-horizontal",label:"Arrows In Line Horizontal",filePath:"icon/ArrowsInLineHorizontal.svg",variantCount:1},{name:"arrows-in-line-vertical",label:"Arrows In Line Vertical",filePath:"icon/ArrowsInLineVertical.svg",variantCount:1},{name:"arrows-in-simple",label:"Arrows In Simple",filePath:"icon/ArrowsInSimple.svg",variantCount:1},{name:"arrows-left-right",label:"Arrows Left Right",filePath:"icon/ArrowsLeftRight.svg",variantCount:1},{name:"arrows-out",label:"Arrows Out",filePath:"icon/ArrowsOut.svg",variantCount:1},{name:"arrows-out-cardinal",label:"Arrows Out Cardinal",filePath:"icon/ArrowsOutCardinal.svg",variantCount:1},{name:"arrows-out-line-horizontal",label:"Arrows Out Line Horizontal",filePath:"icon/ArrowsOutLineHorizontal.svg",variantCount:1},{name:"arrows-out-line-vertical",label:"Arrows Out Line Vertical",filePath:"icon/ArrowsOutLineVertical.svg",variantCount:1},{name:"arrows-out-simple",label:"Arrows Out Simple",filePath:"icon/ArrowsOutSimple.svg",variantCount:1},{name:"arrows-vertical",label:"Arrows Vertical",filePath:"icon/ArrowsVertical.svg",variantCount:1},{name:"article",label:"Article",filePath:"icon/Article.svg",variantCount:1},{name:"bell",label:"Bell",filePath:"icon/Bell.svg",variantCount:1},{name:"bell-ringing",label:"Bell Ringing",filePath:"icon/BellRinging.svg",variantCount:1},{name:"bell-simple",label:"Bell Simple",filePath:"icon/BellSimple.svg",variantCount:1},{name:"bell-simple-ringing",label:"Bell Simple Ringing",filePath:"icon/BellSimpleRinging.svg",variantCount:1},{name:"bell-simple-slash",label:"Bell Simple Slash",filePath:"icon/BellSimpleSlash.svg",variantCount:1},{name:"binoculars",label:"Binoculars",filePath:"icon/Binoculars.svg",variantCount:1},{name:"book",label:"Book",filePath:"icon/Book.svg",variantCount:1},{name:"book-open",label:"Book Open",filePath:"icon/BookOpen.svg",variantCount:1},{name:"book-open-text",label:"Book Open Text",filePath:"icon/BookOpenText.svg",variantCount:1},{name:"box-arrow-down",label:"Box Arrow Down",filePath:"icon/BoxArrowDown.svg",variantCount:1},{name:"box-arrow-up",label:"Box Arrow Up",filePath:"icon/BoxArrowUp.svg",variantCount:1},{name:"brackets-angle",label:"Brackets Angle",filePath:"icon/BracketsAngle.svg",variantCount:1},{name:"brackets-curly",label:"Brackets Curly",filePath:"icon/BracketsCurly.svg",variantCount:1},{name:"brackets-round",label:"Brackets Round",filePath:"icon/BracketsRound.svg",variantCount:1},{name:"brackets-square",label:"Brackets Square",filePath:"icon/BracketsSquare.svg",variantCount:1},{name:"browser",label:"Browser",filePath:"icon/Browser.svg",variantCount:1},{name:"browsers",label:"Browsers",filePath:"icon/Browsers.svg",variantCount:1},{name:"bug",label:"Bug",filePath:"icon/Bug.svg",variantCount:1},{name:"calendar-blank",label:"Calendar Blank",filePath:"icon/CalendarBlank.svg",variantCount:1},{name:"calendar-dots",label:"Calendar Dots",filePath:"icon/CalendarDots.svg",variantCount:1},{name:"cards",label:"Cards",filePath:"icon/Cards.svg",variantCount:1},{name:"cards-three",label:"Cards Three",filePath:"icon/CardsThree.svg",variantCount:1},{name:"caret-circle-double-down",label:"Caret Circle Double Down",filePath:"icon/CaretCircleDoubleDown.svg",variantCount:1},{name:"caret-circle-double-left",label:"Caret Circle Double Left",filePath:"icon/CaretCircleDoubleLeft.svg",variantCount:1},{name:"caret-circle-double-right",label:"Caret Circle Double Right",filePath:"icon/CaretCircleDoubleRight.svg",variantCount:1},{name:"caret-circle-double-up",label:"Caret Circle Double Up",filePath:"icon/CaretCircleDoubleUp.svg",variantCount:1},{name:"caret-circle-down",label:"Caret Circle Down",filePath:"icon/CaretCircleDown.svg",variantCount:1},{name:"caret-circle-left",label:"Caret Circle Left",filePath:"icon/CaretCircleLeft.svg",variantCount:1},{name:"caret-circle-right",label:"Caret Circle Right",filePath:"icon/CaretCircleRight.svg",variantCount:1},{name:"caret-circle-up",label:"Caret Circle Up",filePath:"icon/CaretCircleUp.svg",variantCount:1},{name:"caret-circle-up-down",label:"Caret Circle Up Down",filePath:"icon/CaretCircleUpDown.svg",variantCount:1},{name:"caret-down",label:"Caret Down",filePath:"icon/CaretDown.svg",variantCount:1},{name:"caret-left",label:"Caret Left",filePath:"icon/CaretLeft.svg",variantCount:1},{name:"caret-line-down",label:"Caret Line Down",filePath:"icon/CaretLineDown.svg",variantCount:1},{name:"caret-line-left",label:"Caret Line Left",filePath:"icon/CaretLineLeft.svg",variantCount:1},{name:"caret-line-right",label:"Caret Line Right",filePath:"icon/CaretLineRight.svg",variantCount:1},{name:"caret-line-up",label:"Caret Line Up",filePath:"icon/CaretLineUp.svg",variantCount:1},{name:"caret-right",label:"Caret Right",filePath:"icon/CaretRight.svg",variantCount:1},{name:"caret-up",label:"Caret Up",filePath:"icon/CaretUp.svg",variantCount:1},{name:"caret-up-down",label:"Caret Up Down",filePath:"icon/CaretUpDown.svg",variantCount:1},{name:"check",label:"Check",filePath:"icon/Check.svg",variantCount:1},{name:"check-circle",label:"Check Circle",filePath:"icon/CheckCircle.svg",variantCount:1},{name:"check-square",label:"Check Square",filePath:"icon/CheckSquare.svg",variantCount:1},{name:"check-square-offset",label:"Check Square Offset",filePath:"icon/CheckSquareOffset.svg",variantCount:1},{name:"checks",label:"Checks",filePath:"icon/Checks.svg",variantCount:1},{name:"circles-four",label:"Circles Four",filePath:"icon/CirclesFour.svg",variantCount:1},{name:"clipboard",label:"Clipboard",filePath:"icon/Clipboard.svg",variantCount:1},{name:"clipboard-text",label:"Clipboard Text",filePath:"icon/ClipboardText.svg",variantCount:1},{name:"cloud-arrow-down",label:"Cloud Arrow Down",filePath:"icon/CloudArrowDown.svg",variantCount:1},{name:"cloud-arrow-up",label:"Cloud Arrow Up",filePath:"icon/CloudArrowUp.svg",variantCount:1},{name:"cloud-check",label:"Cloud Check",filePath:"icon/CloudCheck.svg",variantCount:1},{name:"cloud-slash",label:"Cloud Slash",filePath:"icon/CloudSlash.svg",variantCount:1},{name:"cloud-warning",label:"Cloud Warning",filePath:"icon/CloudWarning.svg",variantCount:1},{name:"cloud-x",label:"Cloud X",filePath:"icon/CloudX.svg",variantCount:1},{name:"code",label:"Code",filePath:"icon/Code.svg",variantCount:1},{name:"code-block",label:"Code Block",filePath:"icon/CodeBlock.svg",variantCount:1},{name:"code-simple",label:"Code Simple",filePath:"icon/CodeSimple.svg",variantCount:1},{name:"columns",label:"Columns",filePath:"icon/Columns.svg",variantCount:1},{name:"columns-plus-left",label:"Columns Plus Left",filePath:"icon/ColumnsPlusLeft.svg",variantCount:1},{name:"columns-plus-right",label:"Columns Plus Right",filePath:"icon/ColumnsPlusRight.svg",variantCount:1},{name:"copy",label:"Copy",filePath:"icon/Copy.svg",variantCount:1},{name:"copy-simple",label:"Copy Simple",filePath:"icon/CopySimple.svg",variantCount:1},{name:"cpu",label:"Cpu",filePath:"icon/Cpu.svg",variantCount:1},{name:"credit-card",label:"Credit Card",filePath:"icon/CreditCard.svg",variantCount:1},{name:"cube",label:"Cube",filePath:"icon/Cube.svg",variantCount:1},{name:"cube-transparent",label:"Cube Transparent",filePath:"icon/CubeTransparent.svg",variantCount:1},{name:"database",label:"Database",filePath:"icon/Database.svg",variantCount:1},{name:"desktop",label:"Desktop",filePath:"icon/Desktop.svg",variantCount:1},{name:"desktop-tower",label:"Desktop Tower",filePath:"icon/DesktopTower.svg",variantCount:1},{name:"detective",label:"Detective",filePath:"icon/Detective.svg",variantCount:1},{name:"device-mobile-camera",label:"Device Mobile Camera",filePath:"icon/DeviceMobileCamera.svg",variantCount:1},{name:"device-tablet-camera",label:"Device Tablet Camera",filePath:"icon/DeviceTabletCamera.svg",variantCount:1},{name:"devices",label:"Devices",filePath:"icon/Devices.svg",variantCount:1},{name:"diamonds-four",label:"Diamonds Four",filePath:"icon/DiamondsFour.svg",variantCount:1},{name:"dot",label:"Dot",filePath:"icon/Dot.svg",variantCount:1},{name:"dot-outline",label:"Dot Outline",filePath:"icon/DotOutline.svg",variantCount:1},{name:"dots-nine",label:"Dots Nine",filePath:"icon/DotsNine.svg",variantCount:1},{name:"dots-six",label:"Dots Six",filePath:"icon/DotsSix.svg",variantCount:1},{name:"dots-six-vertical",label:"Dots Six Vertical",filePath:"icon/DotsSixVertical.svg",variantCount:1},{name:"dots-three",label:"Dots Three",filePath:"icon/DotsThree.svg",variantCount:1},{name:"dots-three-circle",label:"Dots Three Circle",filePath:"icon/DotsThreeCircle.svg",variantCount:1},{name:"dots-three-circle-vertical",label:"Dots Three Circle Vertical",filePath:"icon/DotsThreeCircleVertical.svg",variantCount:1},{name:"dots-three-outline",label:"Dots Three Outline",filePath:"icon/DotsThreeOutline.svg",variantCount:1},{name:"dots-three-outline-vertical",label:"Dots Three Outline Vertical",filePath:"icon/DotsThreeOutlineVertical.svg",variantCount:1},{name:"dots-three-vertical",label:"Dots Three Vertical",filePath:"icon/DotsThreeVertical.svg",variantCount:1},{name:"download-simple",label:"Download Simple",filePath:"icon/DownloadSimple.svg",variantCount:1},{name:"envelope",label:"Envelope",filePath:"icon/Envelope.svg",variantCount:1},{name:"envelope-simple",label:"Envelope Simple",filePath:"icon/EnvelopeSimple.svg",variantCount:1},{name:"exclamation-mark",label:"Exclamation Mark",filePath:"icon/ExclamationMark.svg",variantCount:1},{name:"export",label:"Export",filePath:"icon/Export.svg",variantCount:1},{name:"eye",label:"Eye",filePath:"icon/Eye.svg",variantCount:1},{name:"eye-closed",label:"Eye Closed",filePath:"icon/EyeClosed.svg",variantCount:1},{name:"eye-slash",label:"Eye Slash",filePath:"icon/EyeSlash.svg",variantCount:1},{name:"faders",label:"Faders",filePath:"icon/Faders.svg",variantCount:1},{name:"faders-horizontal",label:"Faders Horizontal",filePath:"icon/FadersHorizontal.svg",variantCount:1},{name:"file",label:"File",filePath:"icon/File.svg",variantCount:1},{name:"file-archive",label:"File Archive",filePath:"icon/FileArchive.svg",variantCount:1},{name:"file-arrow-down",label:"File Arrow Down",filePath:"icon/FileArrowDown.svg",variantCount:1},{name:"file-arrow-up",label:"File Arrow Up",filePath:"icon/FileArrowUp.svg",variantCount:1},{name:"file-dashed",label:"File Dashed",filePath:"icon/FileDashed.svg",variantCount:1},{name:"file-text",label:"File Text",filePath:"icon/FileText.svg",variantCount:1},{name:"files",label:"Files",filePath:"icon/Files.svg",variantCount:1},{name:"fingerprint",label:"Fingerprint",filePath:"icon/Fingerprint.svg",variantCount:1},{name:"fingerprint-simple",label:"Fingerprint Simple",filePath:"icon/FingerprintSimple.svg",variantCount:1},{name:"flag",label:"Flag",filePath:"icon/Flag.svg",variantCount:1},{name:"flag-pennant",label:"Flag Pennant",filePath:"icon/FlagPennant.svg",variantCount:1},{name:"floppy-disk",label:"Floppy Disk",filePath:"icon/FloppyDisk.svg",variantCount:1},{name:"folder",label:"Folder",filePath:"icon/Folder.svg",variantCount:1},{name:"folder-dashed",label:"Folder Dashed",filePath:"icon/FolderDashed.svg",variantCount:1},{name:"folder-open",label:"Folder Open",filePath:"icon/FolderOpen.svg",variantCount:1},{name:"folder-simple",label:"Folder Simple",filePath:"icon/FolderSimple.svg",variantCount:1},{name:"folder-simple-dashed",label:"Folder Simple Dashed",filePath:"icon/FolderSimpleDashed.svg",variantCount:1},{name:"folders",label:"Folders",filePath:"icon/Folders.svg",variantCount:1},{name:"funnel",label:"Funnel",filePath:"icon/Funnel.svg",variantCount:1},{name:"funnel-simple",label:"Funnel Simple",filePath:"icon/FunnelSimple.svg",variantCount:1},{name:"gear",label:"Gear",filePath:"icon/Gear.svg",variantCount:1},{name:"gear-six",label:"Gear Six",filePath:"icon/GearSix.svg",variantCount:1},{name:"git-branch",label:"Git Branch",filePath:"icon/GitBranch.svg",variantCount:1},{name:"git-merge",label:"Git Merge",filePath:"icon/GitMerge.svg",variantCount:1},{name:"git-pull-request",label:"Git Pull Request",filePath:"icon/GitPullRequest.svg",variantCount:1},{name:"globe",label:"Globe",filePath:"icon/Globe.svg",variantCount:1},{name:"globe-simple",label:"Globe Simple",filePath:"icon/GlobeSimple.svg",variantCount:1},{name:"green-tick",label:"Green Tick",filePath:"icon/GreenTick.svg",variantCount:1},{name:"grid-four",label:"Grid Four",filePath:"icon/GridFour.svg",variantCount:1},{name:"hammer",label:"Hammer",filePath:"icon/Hammer.svg",variantCount:1},{name:"hand",label:"Hand",filePath:"icon/Hand.svg",variantCount:1},{name:"hand-palm",label:"Hand Palm",filePath:"icon/HandPalm.svg",variantCount:1},{name:"hand-pointing",label:"Hand Pointing",filePath:"icon/HandPointing.svg",variantCount:1},{name:"house",label:"House",filePath:"icon/House.svg",variantCount:1},{name:"identification-badge",label:"Identification Badge",filePath:"icon/IdentificationBadge.svg",variantCount:1},{name:"identification-card",label:"Identification Card",filePath:"icon/IdentificationCard.svg",variantCount:1},{name:"info",label:"Info",filePath:"icon/Info.svg",variantCount:1},{name:"key",label:"Key",filePath:"icon/Key.svg",variantCount:1},{name:"ladder-simple",label:"Ladder Simple",filePath:"icon/LadderSimple.svg",variantCount:1},{name:"layout",label:"Layout",filePath:"icon/Layout.svg",variantCount:1},{name:"lifebuoy",label:"Lifebuoy",filePath:"icon/Lifebuoy.svg",variantCount:1},{name:"lightbulb",label:"Lightbulb",filePath:"icon/Lightbulb.svg",variantCount:1},{name:"lightning",label:"Lightning",filePath:"icon/Lightning.svg",variantCount:1},{name:"link",label:"Link",filePath:"icon/Link.svg",variantCount:1},{name:"link-break",label:"Link Break",filePath:"icon/LinkBreak.svg",variantCount:1},{name:"link-simple",label:"Link Simple",filePath:"icon/LinkSimple.svg",variantCount:1},{name:"link-simple-break",label:"Link Simple Break",filePath:"icon/LinkSimpleBreak.svg",variantCount:1},{name:"link-simple-horizontal",label:"Link Simple Horizontal",filePath:"icon/LinkSimpleHorizontal.svg",variantCount:1},{name:"link-simple-horizontal-break",label:"Link Simple Horizontal Break",filePath:"icon/LinkSimpleHorizontalBreak.svg",variantCount:1},{name:"list",label:"List",filePath:"icon/List.svg",variantCount:1},{name:"list-bullets",label:"List Bullets",filePath:"icon/ListBullets.svg",variantCount:1},{name:"list-checks",label:"List Checks",filePath:"icon/ListChecks.svg",variantCount:1},{name:"list-dashes",label:"List Dashes",filePath:"icon/ListDashes.svg",variantCount:1},{name:"list-heart",label:"List Heart",filePath:"icon/ListHeart.svg",variantCount:1},{name:"list-magnifying-glass",label:"List Magnifying Glass",filePath:"icon/ListMagnifyingGlass.svg",variantCount:1},{name:"list-numbers",label:"List Numbers",filePath:"icon/ListNumbers.svg",variantCount:1},{name:"list-plus",label:"List Plus",filePath:"icon/ListPlus.svg",variantCount:1},{name:"list-star",label:"List Star",filePath:"icon/ListStar.svg",variantCount:1},{name:"lock",label:"Lock",filePath:"icon/Lock.svg",variantCount:1},{name:"lock-key",label:"Lock Key",filePath:"icon/LockKey.svg",variantCount:1},{name:"lock-key-open",label:"Lock Key Open",filePath:"icon/LockKeyOpen.svg",variantCount:1},{name:"lock-open",label:"Lock Open",filePath:"icon/LockOpen.svg",variantCount:1},{name:"lock-simple",label:"Lock Simple",filePath:"icon/LockSimple.svg",variantCount:1},{name:"lock-simple-open",label:"Lock Simple Open",filePath:"icon/LockSimpleOpen.svg",variantCount:1},{name:"magnifying-glass",label:"Magnifying Glass",filePath:"icon/MagnifyingGlass.svg",variantCount:1},{name:"magnifying-glass-minus",label:"Magnifying Glass Minus",filePath:"icon/MagnifyingGlassMinus.svg",variantCount:1},{name:"magnifying-glass-plus",label:"Magnifying Glass Plus",filePath:"icon/MagnifyingGlassPlus.svg",variantCount:1},{name:"megaphone",label:"Megaphone",filePath:"icon/Megaphone.svg",variantCount:1},{name:"megaphone-simple",label:"Megaphone Simple",filePath:"icon/MegaphoneSimple.svg",variantCount:1},{name:"microphone",label:"Microphone",filePath:"icon/Microphone.svg",variantCount:1},{name:"navigation-arrow",label:"Navigation Arrow",filePath:"icon/NavigationArrow.svg",variantCount:1},{name:"network",label:"Network",filePath:"icon/Network.svg",variantCount:1},{name:"network-slash",label:"Network Slash",filePath:"icon/NetworkSlash.svg",variantCount:1},{name:"network-x",label:"Network X",filePath:"icon/NetworkX.svg",variantCount:1},{name:"newspaper",label:"Newspaper",filePath:"icon/Newspaper.svg",variantCount:1},{name:"newspaper-clipping",label:"Newspaper Clipping",filePath:"icon/NewspaperClipping.svg",variantCount:1},{name:"notches",label:"Notches",filePath:"icon/Notches.svg",variantCount:1},{name:"note",label:"Note",filePath:"icon/Note.svg",variantCount:1},{name:"note-blank",label:"Note Blank",filePath:"icon/NoteBlank.svg",variantCount:1},{name:"note-pencil",label:"Note Pencil",filePath:"icon/NotePencil.svg",variantCount:1},{name:"notification",label:"Notification",filePath:"icon/Notification.svg",variantCount:1},{name:"nut",label:"Nut",filePath:"icon/Nut.svg",variantCount:1},{name:"paperclip",label:"Paperclip",filePath:"icon/Paperclip.svg",variantCount:1},{name:"paperclip-horizontal",label:"Paperclip Horizontal",filePath:"icon/PaperclipHorizontal.svg",variantCount:1},{name:"password",label:"Password",filePath:"icon/Password.svg",variantCount:1},{name:"pencil-simple",label:"Pencil Simple",filePath:"icon/PencilSimple.svg",variantCount:1},{name:"pencil-simple-line",label:"Pencil Simple Line",filePath:"icon/PencilSimpleLine.svg",variantCount:1},{name:"person",label:"Person",filePath:"icon/Person.svg",variantCount:1},{name:"person-arms-spread",label:"Person Arms Spread",filePath:"icon/PersonArmsSpread.svg",variantCount:1},{name:"person-simple",label:"Person Simple",filePath:"icon/PersonSimple.svg",variantCount:1},{name:"placeholder",label:"Placeholder",filePath:"icon/Placeholder.svg",variantCount:1},{name:"plus",label:"Plus",filePath:"icon/Plus.svg",variantCount:1},{name:"plus-circle",label:"Plus Circle",filePath:"icon/PlusCircle.svg",variantCount:1},{name:"plus-square",label:"Plus Square",filePath:"icon/PlusSquare.svg",variantCount:1},{name:"prohibit",label:"Prohibit",filePath:"icon/Prohibit.svg",variantCount:1},{name:"prohibit-inset",label:"Prohibit Inset",filePath:"icon/ProhibitInset.svg",variantCount:1},{name:"pulse",label:"Pulse",filePath:"icon/Pulse.svg",variantCount:1},{name:"push-pin",label:"Push Pin",filePath:"icon/PushPin.svg",variantCount:1},{name:"push-pin-simple",label:"Push Pin Simple",filePath:"icon/PushPinSimple.svg",variantCount:1},{name:"push-pin-simple-slash",label:"Push Pin Simple Slash",filePath:"icon/PushPinSimpleSlash.svg",variantCount:1},{name:"push-pin-slash",label:"Push Pin Slash",filePath:"icon/PushPinSlash.svg",variantCount:1},{name:"puzzle-piece",label:"Puzzle Piece",filePath:"icon/PuzzlePiece.svg",variantCount:1},{name:"question",label:"Question",filePath:"icon/Question.svg",variantCount:1},{name:"question-mark",label:"Question Mark",filePath:"icon/QuestionMark.svg",variantCount:1},{name:"receipt",label:"Receipt",filePath:"icon/Receipt.svg",variantCount:1},{name:"receipt-x",label:"Receipt X",filePath:"icon/ReceiptX.svg",variantCount:1},{name:"rows-plus-bottom",label:"Rows Plus Bottom",filePath:"icon/RowsPlusBottom.svg",variantCount:1},{name:"rows-plus-top",label:"Rows Plus Top",filePath:"icon/RowsPlusTop.svg",variantCount:1},{name:"scroll",label:"Scroll",filePath:"icon/Scroll.svg",variantCount:1},{name:"seal",label:"Seal",filePath:"icon/Seal.svg",variantCount:1},{name:"seal-check",label:"Seal Check",filePath:"icon/SealCheck.svg",variantCount:1},{name:"share",label:"Share",filePath:"icon/Share.svg",variantCount:1},{name:"share-fat",label:"Share Fat",filePath:"icon/ShareFat.svg",variantCount:1},{name:"share-network",label:"Share Network",filePath:"icon/ShareNetwork.svg",variantCount:1},{name:"shield",label:"Shield",filePath:"icon/Shield.svg",variantCount:1},{name:"shield-check",label:"Shield Check",filePath:"icon/ShieldCheck.svg",variantCount:1},{name:"shield-checkered",label:"Shield Checkered",filePath:"icon/ShieldCheckered.svg",variantCount:1},{name:"shield-chevron",label:"Shield Chevron",filePath:"icon/ShieldChevron.svg",variantCount:1},{name:"shield-plus",label:"Shield Plus",filePath:"icon/ShieldPlus.svg",variantCount:1},{name:"shield-slash",label:"Shield Slash",filePath:"icon/ShieldSlash.svg",variantCount:1},{name:"shield-star",label:"Shield Star",filePath:"icon/ShieldStar.svg",variantCount:1},{name:"shield-warning",label:"Shield Warning",filePath:"icon/ShieldWarning.svg",variantCount:1},{name:"sidebar",label:"Sidebar",filePath:"icon/Sidebar.svg",variantCount:1},{name:"sidebar-simple",label:"Sidebar Simple",filePath:"icon/SidebarSimple.svg",variantCount:1},{name:"sign-in",label:"Sign In",filePath:"icon/SignIn.svg",variantCount:1},{name:"sign-out",label:"Sign Out",filePath:"icon/SignOut.svg",variantCount:1},{name:"siren",label:"Siren",filePath:"icon/Siren.svg",variantCount:1},{name:"sliders",label:"Sliders",filePath:"icon/Sliders.svg",variantCount:1},{name:"sliders-horizontal",label:"Sliders Horizontal",filePath:"icon/SlidersHorizontal.svg",variantCount:1},{name:"sort-ascending",label:"Sort Ascending",filePath:"icon/SortAscending.svg",variantCount:1},{name:"sort-descending",label:"Sort Descending",filePath:"icon/SortDescending.svg",variantCount:1},{name:"spinner",label:"Spinner",filePath:"icon/Spinner.svg",variantCount:1},{name:"spinner-gap",label:"Spinner Gap",filePath:"icon/SpinnerGap.svg",variantCount:1},{name:"split-horizontal",label:"Split Horizontal",filePath:"icon/SplitHorizontal.svg",variantCount:1},{name:"split-vertical",label:"Split Vertical",filePath:"icon/SplitVertical.svg",variantCount:1},{name:"square-half",label:"Square Half",filePath:"icon/SquareHalf.svg",variantCount:1},{name:"square-half-bottom",label:"Square Half Bottom",filePath:"icon/SquareHalfBottom.svg",variantCount:1},{name:"square-split-horizontal",label:"Square Split Horizontal",filePath:"icon/SquareSplitHorizontal.svg",variantCount:1},{name:"square-split-vertical",label:"Square Split Vertical",filePath:"icon/SquareSplitVertical.svg",variantCount:1},{name:"squares-four",label:"Squares Four",filePath:"icon/SquaresFour.svg",variantCount:1},{name:"stack",label:"Stack",filePath:"icon/Stack.svg",variantCount:1},{name:"stack-minus",label:"Stack Minus",filePath:"icon/StackMinus.svg",variantCount:1},{name:"stack-plus",label:"Stack Plus",filePath:"icon/StackPlus.svg",variantCount:1},{name:"stack-simple",label:"Stack Simple",filePath:"icon/StackSimple.svg",variantCount:1},{name:"star",label:"Star",filePath:"icon/Star.svg",variantCount:1},{name:"table",label:"Table",filePath:"icon/Table.svg",variantCount:1},{name:"tag",label:"Tag",filePath:"icon/Tag.svg",variantCount:1},{name:"tag-chevron",label:"Tag Chevron",filePath:"icon/TagChevron.svg",variantCount:1},{name:"tag-simple",label:"Tag Simple",filePath:"icon/TagSimple.svg",variantCount:1},{name:"target",label:"Target",filePath:"icon/Target.svg",variantCount:1},{name:"terminal",label:"Terminal",filePath:"icon/Terminal.svg",variantCount:1},{name:"terminal-window",label:"Terminal Window",filePath:"icon/TerminalWindow.svg",variantCount:1},{name:"text-columns",label:"Text Columns",filePath:"icon/TextColumns.svg",variantCount:1},{name:"ticket",label:"Ticket",filePath:"icon/Ticket.svg",variantCount:1},{name:"trash",label:"Trash",filePath:"icon/Trash.svg",variantCount:1},{name:"trash-simple",label:"Trash Simple",filePath:"icon/TrashSimple.svg",variantCount:1},{name:"tray",label:"Tray",filePath:"icon/Tray.svg",variantCount:1},{name:"tray-arrow-down",label:"Tray Arrow Down",filePath:"icon/TrayArrowDown.svg",variantCount:1},{name:"tray-arrow-up",label:"Tray Arrow Up",filePath:"icon/TrayArrowUp.svg",variantCount:1},{name:"tree-structure",label:"Tree Structure",filePath:"icon/TreeStructure.svg",variantCount:1},{name:"upload-simple",label:"Upload Simple",filePath:"icon/UploadSimple.svg",variantCount:1},{name:"user",label:"User",filePath:"icon/User.svg",variantCount:1},{name:"user-check",label:"User Check",filePath:"icon/UserCheck.svg",variantCount:1},{name:"user-circle",label:"User Circle",filePath:"icon/UserCircle.svg",variantCount:1},{name:"user-circle-check",label:"User Circle Check",filePath:"icon/UserCircleCheck.svg",variantCount:1},{name:"user-circle-dashed",label:"User Circle Dashed",filePath:"icon/UserCircleDashed.svg",variantCount:1},{name:"user-circle-gear",label:"User Circle Gear",filePath:"icon/UserCircleGear.svg",variantCount:1},{name:"user-circle-minus",label:"User Circle Minus",filePath:"icon/UserCircleMinus.svg",variantCount:1},{name:"user-circle-plus",label:"User Circle Plus",filePath:"icon/UserCirclePlus.svg",variantCount:1},{name:"user-focus",label:"User Focus",filePath:"icon/UserFocus.svg",variantCount:1},{name:"user-gear",label:"User Gear",filePath:"icon/UserGear.svg",variantCount:1},{name:"user-list",label:"User List",filePath:"icon/UserList.svg",variantCount:1},{name:"user-minus",label:"User Minus",filePath:"icon/UserMinus.svg",variantCount:1},{name:"user-plus",label:"User Plus",filePath:"icon/UserPlus.svg",variantCount:1},{name:"user-rectangle",label:"User Rectangle",filePath:"icon/UserRectangle.svg",variantCount:1},{name:"user-sound",label:"User Sound",filePath:"icon/UserSound.svg",variantCount:1},{name:"user-square",label:"User Square",filePath:"icon/UserSquare.svg",variantCount:1},{name:"user-switch",label:"User Switch",filePath:"icon/UserSwitch.svg",variantCount:1},{name:"users",label:"Users",filePath:"icon/Users.svg",variantCount:1},{name:"users-four",label:"Users Four",filePath:"icon/UsersFour.svg",variantCount:1},{name:"users-three",label:"Users Three",filePath:"icon/UsersThree.svg",variantCount:1},{name:"vault",label:"Vault",filePath:"icon/Vault.svg",variantCount:1},{name:"warning",label:"Warning",filePath:"icon/Warning.svg",variantCount:1},{name:"warning-circle",label:"Warning Circle",filePath:"icon/WarningCircle.svg",variantCount:1},{name:"warning-diamond",label:"Warning Diamond",filePath:"icon/WarningDiamond.svg",variantCount:1},{name:"warning-octagon",label:"Warning Octagon",filePath:"icon/WarningOctagon.svg",variantCount:1},{name:"wrench",label:"Wrench",filePath:"icon/Wrench.svg",variantCount:1},{name:"x",label:"X",filePath:"icon/X.svg",variantCount:1},{name:"xcircle",label:"XCircle",filePath:"icon/XCircle.svg",variantCount:1},{name:"xsquare",label:"XSquare",filePath:"icon/XSquare.svg",variantCount:1},{name:"calendar",label:"Calendar",filePath:"icon/calendar.svg",variantCount:1}],ue=({name:e,size:a="medium",variant:n="default",className:o="",style:l={},alt:r="",...i})=>{const s=e?.replace(/\.svg$/,"").toLowerCase(),c=(()=>{if("number"==typeof a)return`${a}px`;const e={small:"12px",medium:"16px",large:"24px"};return e[a]||e.medium})(),d=(()=>{const t=de.find(t=>t.name===s||t.name===e);return`https://cdn.jsdelivr.net/npm/squarex-ui-component-lib@latest/public/icon/${t?t.filePath.split("/").pop():`${e}.svg`}`})(),u=r||`${s} icon`,m=[ce.icon,ce[`variant_${n}`],o].filter(Boolean).join(" "),h={width:c,height:c,...l};return t("img",{src:d,alt:u,className:m,style:h,...i})},me=({className:e})=>t("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:t("path",{d:"M7.00033 1.16699L8.80283 4.81866L12.8337 5.40783L9.91699 8.24866L10.6053 12.262L7.00033 10.3662L3.39533 12.262L4.08366 8.24866L1.16699 5.40783L5.19783 4.81866L7.00033 1.16699Z",stroke:"#36204C",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})}),he=({className:a})=>e("svg",{className:a,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[t("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),t("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),pe=({label:a="Button",showLeadingIcon:n=!0,showTrailingIcon:o=!1,leadingIcon:l,trailingIcon:r,leftIcon:i,rightIcon:s,variant:c,buttonStyle:d="primary",state:u="default",size:m="medium",onClick:h,disabled:p,loading:g,className:f="",children:_,...v})=>{const b=g?"loading":p?"disabled":u,w=p||g||"disabled"===b,C=ie(se.button,se[`style_${c||d||"primary"}`],se[`state_${b}`],se[`size_${"md"===m?"medium":"sm"===m?"small":m}`],f),y="Button"===a&&_?_:a;return e("button",{className:C,onClick:h,disabled:w,"aria-disabled":w,...v,children:[(()=>{if(!n)return null;const e=l||i;return e?"string"==typeof e?t(ue,{name:e,className:se.icon}):e:"loading"===b?t(he,{className:se.loaderIcon}):t(me,{className:se.icon})})(),t("span",{className:se.label,children:y}),(()=>{if(!o)return null;const e=r||s;return e?"string"==typeof e?t(ue,{name:e,className:se.icon}):e:t(me,{className:se.icon})})()]})};var ge={button:"ButtonDanger-module_button__AOtwP",label:"ButtonDanger-module_label__b5KXy",icon:"ButtonDanger-module_icon__cFsc0",loaderIcon:"ButtonDanger-module_loaderIcon__0Grd9",spin:"ButtonDanger-module_spin__dWDkA",size_medium:"ButtonDanger-module_size_medium__rSyZy",size_small:"ButtonDanger-module_size_small__uAFGW",style_primary:"ButtonDanger-module_style_primary__iUyC1",state_default:"ButtonDanger-module_state_default__Y5C0B",state_hover:"ButtonDanger-module_state_hover__sATSe",state_focus:"ButtonDanger-module_state_focus__gFvzD",state_disabled:"ButtonDanger-module_state_disabled__UT767",state_loading:"ButtonDanger-module_state_loading__-C8Aq",style_neutral:"ButtonDanger-module_style_neutral__VZ0rO",style_subtle:"ButtonDanger-module_style_subtle__PTOK-"};const fe=({label:a="Button",showLeadingIcon:n=!0,showTrailingIcon:o=!1,leadingIcon:l,trailingIcon:r,style:i="primary",state:s="default",size:c="medium",onClick:d,disabled:u,loading:m,className:h="",...p})=>{const g=m?"loading":u?"disabled":s,f=u||m||"disabled"===g,_=[ge.button,ge[`style_${i}`],ge[`state_${g}`],ge[`size_${c}`],h].filter(Boolean).join(" ");return e("button",{className:_,onClick:d,disabled:f,"aria-disabled":f,...p,children:[n?l||t(ue,"loading"===g?{name:"spinner",size:16,className:ge.loaderIcon}:{name:"star",size:14,className:ge.icon}):null,t("span",{className:ge.label,children:a}),o?r||t(ue,{name:"star",size:14,className:ge.icon}):null]})};var _e={avatar:"Avatar-module_avatar__iHwNB",size_large:"Avatar-module_size_large__lysYk",size_medium:"Avatar-module_size_medium__JL1rC",size_small:"Avatar-module_size_small__F3gWo",shape_circle:"Avatar-module_shape_circle__YEmYW",shape_square:"Avatar-module_shape_square__nLoa1",initialsBg:"Avatar-module_initialsBg__54pKJ",image:"Avatar-module_image__-oxFc",initials:"Avatar-module_initials__DzwqM"};const ve=({src:e,initials:a,alt:n,size:o="medium",shape:l="circle",className:r="",...i})=>{const s=[_e.avatar,_e[`size_${o}`],_e[`shape_${l}`],!e&&a?_e.initialsBg:"",r].filter(Boolean).join(" ");return t("div",{className:s,...i,children:e?t("img",{src:e,alt:n||a||"avatar",className:_e.image}):t("span",{className:_e.initials,children:a})})};var be="BackgroundGradient-module_container__h-ECQ",we="BackgroundGradient-module_gradientBlobsImage__HSoZE";const Ce=({className:e="",mode:a="Light Mode BG",...n})=>t("div",{className:`${be} ${e}`,"data-mode":a,...n,children:t("img",{className:we,src:`/bg/Mode=${a}.svg`,alt:`${a} Blobs`})});var ye={badge:"Badge-module_badge__IxlOE",size_small:"Badge-module_size_small__blSq3",size_medium:"Badge-module_size_medium__hlh0Y",size_large:"Badge-module_size_large__EzYlM",type_active:"Badge-module_type_active__CPh-H",type_inactive:"Badge-module_type_inactive__xwWXA",type_default:"Badge-module_type_default__5N9w7"};const xe=({label:e="Badge",type:a="default",size:n="medium",className:o="",children:l,...r})=>{const i=(e=>{if(!e)return"default";const t=e.toLowerCase();return"active"===t?"active":"inactive"===t?"inactive":"default"})(a),s=(e=>{if(!e)return"medium";const t=e.toString().toLowerCase();return"small"===t||"sm"===t?"small":"medium"===t||"md"===t?"medium":"large"===t||"lg"===t?"large":"medium"})(n),c=[ye.badge,ye[`type_${i}`],ye[`size_${s}`],o].filter(Boolean).join(" ");return t("span",{className:c,...r,children:l||e})};var ke={breadcrumbContainer:"Breadcrumb-module_breadcrumbContainer__uBvx5",itemContent:"Breadcrumb-module_itemContent__EuvYW",itemIcon:"Breadcrumb-module_itemIcon__mJSYP",itemTitle:"Breadcrumb-module_itemTitle__g8smt",separator:"Breadcrumb-module_separator__VeZVd"};const Pe=({items:a=[],separator:n="/",className:o="",...l})=>{const r=a.map(a=>({...a,title:e("span",{className:ke.itemContent,children:[a.icon&&t(ue,{name:a.icon,size:14,className:ke.itemIcon}),t("span",{className:ke.itemTitle,children:a.title})]})}));return t("div",{className:`${ke.breadcrumbContainer} ${o}`,children:t(m,{items:r,separator:t("span",{className:ke.separator,children:n}),className:ke.antBreadcrumb,...l})})};var Ne={container:"Categories-module_container__U5Jrk",searchSection:"Categories-module_searchSection__OtRY7",searchInput:"Categories-module_searchInput__er5yT",searchIcon:"Categories-module_searchIcon__z6tia",searchIconImage:"Categories-module_searchIconImage__pGeZj",searchPlaceholder:"Categories-module_searchPlaceholder__ZmolO",searchValue:"Categories-module_searchValue__21-r9",realSearchInput:"Categories-module_realSearchInput__w4p-O",chipListContainer:"Categories-module_chipListContainer__pacAl",chipListRow:"Categories-module_chipListRow__h7kfy",chip:"Categories-module_chip__QYPTC",chipLabel:"Categories-module_chipLabel__TA2tB",chipRemove:"Categories-module_chipRemove__AZnYD",chipIcon:"Categories-module_chipIcon__jI19r",listsContainer:"Categories-module_listsContainer__qLgWk",categoryList:"Categories-module_categoryList__-hGax",categoryTitle:"Categories-module_categoryTitle__IojeE",categoryTitleText:"Categories-module_categoryTitleText__THhiO",chevronIcon:"Categories-module_chevronIcon__WSZAt",chevronImg:"Categories-module_chevronImg__u0z0y",chevronUp:"Categories-module_chevronUp__3IMMr",categoryItems:"Categories-module_categoryItems__rkjFa",categoryItemWrapper:"Categories-module_categoryItemWrapper__nSWPf",actionsContainer:"Categories-module_actionsContainer__E-9bc",cancelButton:"Categories-module_cancelButton__qSB8B",cancelButtonText:"Categories-module_cancelButtonText__iKhcE",applyButton:"Categories-module_applyButton__f9weo",applyButtonText:"Categories-module_applyButtonText__p7k-s",variant_single:"Categories-module_variant_single__nJbFl",variant_multiple:"Categories-module_variant_multiple__oR0nB"},Se={itemRow:"ItemRow-module_itemRow__rSDeO",infoIcon:"ItemRow-module_infoIcon__Ipwr-",infoIconImg:"ItemRow-module_infoIconImg__70lMY",content:"ItemRow-module_content__Jpfhn",iconWrapper:"ItemRow-module_iconWrapper__tyWxd",fileIconImg:"ItemRow-module_fileIconImg__UtL3V",starIconImg:"ItemRow-module_starIconImg__N5DF0",text:"ItemRow-module_text__2UBMv",label:"ItemRow-module_label__tf9KQ",body:"ItemRow-module_body__nwnZc",checkboxField:"ItemRow-module_checkboxField__fBewb",radioField:"ItemRow-module_radioField__opyC6",type_default:"ItemRow-module_type_default__bHpMa",type_hover:"ItemRow-module_type_hover__96wT9",type_selected:"ItemRow-module_type_selected__Pr3sl",type_disabled:"ItemRow-module_type_disabled__RLuUQ",type_danger:"ItemRow-module_type_danger__4i7oG"},Ie={checkboxContainer:"Checkbox-module_checkboxContainer__t5ToR",checkboxWrapper:"Checkbox-module_checkboxWrapper__MQ4h7",checkboxInput:"Checkbox-module_checkboxInput__6emi6",checkbox:"Checkbox-module_checkbox__u-vF9",size_small:"Checkbox-module_size_small__y2One",size_medium:"Checkbox-module_size_medium__tyI8A",size_large:"Checkbox-module_size_large__Dxd5a",checkboxChecked:"Checkbox-module_checkboxChecked__9S3nh",checkboxCheck:"Checkbox-module_checkboxCheck__eC-aU",checkboxIndeterminateState:"Checkbox-module_checkboxIndeterminateState__KlYdz",checkboxIndeterminate:"Checkbox-module_checkboxIndeterminate__KWSZX",indeterminateBar:"Checkbox-module_indeterminateBar__ubEie",checkIconWrapper:"Checkbox-module_checkIconWrapper__5zoMJ",checkIconInner:"Checkbox-module_checkIconInner__-31sZ",checkIcon:"Checkbox-module_checkIcon__ZZUJy",state_default:"Checkbox-module_state_default__07N9s",checkboxDisabled:"Checkbox-module_checkboxDisabled__JuvUf",state_hover:"Checkbox-module_state_hover__-aNwA",state_focus:"Checkbox-module_state_focus__iyLdL",state_pressed:"Checkbox-module_state_pressed__IXWhV",label:"Checkbox-module_label__riL34"};const Ae=({checked:a=!1,indeterminate:n=!1,disabled:o=!1,state:l="default",size:r="medium",label:i="",onChange:s,className:c="",id:d,name:u,value:m,...h})=>{const p=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"focus"===t?"focus":"pressed"===t?"pressed":"default"})(l),g="number"==typeof r,f=g?"custom":r.toLowerCase(),_=o||"disabled"===l,v=[Ie.checkboxContainer,c].filter(Boolean).join(" "),b=[Ie.checkbox,Ie[`size_${f}`],a&&Ie.checkboxChecked,!a&&n&&Ie.checkboxIndeterminateState,_&&Ie.checkboxDisabled,!_&&Ie[`state_${p}`]].filter(Boolean).join(" "),w=d||`checkbox-${Math.random().toString(36).substr(2,9)}`;return e("div",{className:v,children:[e("div",{className:Ie.checkboxWrapper,children:[t("input",{type:"checkbox",id:w,name:u,value:m,checked:a,disabled:_,onChange:e=>{!_&&s&&s(e)},className:Ie.checkboxInput,"aria-checked":n?"mixed":a,"aria-disabled":_,...h}),e("label",{htmlFor:w,className:b,style:g?{width:`${r}px`,height:`${r}px`}:{},children:[a&&t("div",{className:Ie.checkboxCheck,children:t("div",{className:Ie.checkIconWrapper,children:t("div",{className:Ie.checkIconInner,children:t(ue,{name:"Check",size:12,className:Ie.checkIcon})})})}),!a&&n&&t("div",{className:Ie.checkboxIndeterminate,children:t("div",{className:Ie.indeterminateBar})})]})]}),i&&t("label",{htmlFor:w,className:Ie.label,children:i})]})};var Le={radioContainer:"Radio-module_radioContainer__nD7Aj",radioWrapper:"Radio-module_radioWrapper__8nQVu",radioInput:"Radio-module_radioInput__GtQt3",radio:"Radio-module_radio__fnkSK",size_small:"Radio-module_size_small__k7iT3",size_medium:"Radio-module_size_medium__KpT8h",size_large:"Radio-module_size_large__81Vmf",radioChecked:"Radio-module_radioChecked__BaL8g",radioDot:"Radio-module_radioDot__RilTO",state_default:"Radio-module_state_default__zFRxN",radioDisabled:"Radio-module_radioDisabled__i08xK",state_hover:"Radio-module_state_hover__h6W-X",state_focus:"Radio-module_state_focus__8UGb9",state_pressed:"Radio-module_state_pressed__k6gEW",label:"Radio-module_label__rS27E"};const Be=({checked:a=!1,disabled:n=!1,state:o="default",size:l="medium",label:r="",name:i,value:s,onChange:c,className:d="",id:u,...m})=>{const h=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"focus"===t?"focus":"pressed"===t?"pressed":"default"})(o),p="number"==typeof l,g=p?"custom":l.toLowerCase(),f=n||"disabled"===o,_=[Le.radioContainer,d].filter(Boolean).join(" "),v=[Le.radio,Le[`size_${g}`],a&&Le.radioChecked,f&&Le.radioDisabled,!f&&Le[`state_${h}`]].filter(Boolean).join(" "),b=u||`radio-${Math.random().toString(36).substr(2,9)}`;return e("div",{className:_,children:[e("div",{className:Le.radioWrapper,children:[t("input",{type:"radio",id:b,name:i,value:s,checked:a,disabled:f,onChange:e=>{!f&&c&&c(e)},className:Le.radioInput,"aria-checked":a,"aria-disabled":f,...m}),t("label",{htmlFor:b,className:v,style:p?{width:`${l}px`,height:`${l}px`}:{},children:a&&t("div",{className:Le.radioDot})})]}),r&&t("label",{htmlFor:b,className:Le.label,children:r})]})},De=({showLeftIcon:a=!0,hasCheckbox:n=!1,hasRadio:o=!1,checked:l=!1,chooseLeftIcon:r=null,label:i="Item",showBody:s=!1,body:c="Body",showInfo:d=!1,showRightIcon:u=!1,chooseRightIcon:m=null,type:h="Default",onClick:p,className:g="",...f})=>{const _=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"disabled"===t?"disabled":"selected"===t?"selected":"danger"===t?"danger":"default"})(h),v="disabled"===_,b=v?"div":"button",w=[Se.itemRow,Se[`type_${_}`],g].filter(Boolean).join(" "),C=l||"selected"===_;return e(b,{className:w,onClick:p,disabled:v,type:"button"===b?"button":void 0,...f,children:[d&&t("div",{className:Se.infoIcon,children:t(ue,{name:"Info",size:14,className:Se.infoIconImg})}),e("div",{className:Se.content,children:[a&&t("div",{className:Se.iconWrapper,children:r||t(ue,{name:"File",size:14,className:Se.fileIconImg})}),e("div",{className:Se.text,children:[t("p",{className:Se.label,children:i}),s&&t("p",{className:Se.body,children:c})]}),u&&t("div",{className:Se.iconWrapper,children:m||t(ue,{name:"Star",size:14,className:Se.starIconImg})})]}),n&&t("div",{className:Se.checkboxField,children:t(Ae,{checked:C,disabled:v,size:16,readOnly:!p})}),o&&t("div",{className:Se.radioField,children:t(Be,{checked:C,disabled:v,size:16,readOnly:!p})})]})},ze=({variant:a="single",chips:n=[],categories:o=[],onChipRemove:i,onCategoryToggle:c,onItemClick:d,onCancel:u,onApply:m,cancelLabel:h="Cancel",applyLabel:p="Apply",className:g="",...f})=>{const[_,v]=l(""),[b,w]=l(o.reduce((e,t,a)=>(e[a]=void 0===t.expanded||t.expanded,e),{})),C=s(()=>{if(!_)return o;const e=_.toLowerCase();return o.map(t=>{if((t.title||"").toLowerCase().includes(e))return t;const a=(t.items||[]).filter(t=>(t.label||"").toLowerCase().includes(e));return a.length>0?{...t,items:a}:null}).filter(e=>null!==e)},[o,_]);r(()=>{if(_){const e=C.reduce((e,t,a)=>(e[a]=!0,e),{});w(e)}},[_,C.length]);const y=(n,o)=>{const l=!!_||!1!==b[o];return e("div",{className:Ne.categoryList,children:[e("button",{type:"button",className:Ne.categoryTitle,onClick:()=>{return e=o,w(t=>({...t,[e]:!t[e]})),void(c&&c(e,!b[e]));var e},children:[t("p",{className:Ne.categoryTitleText,children:n.title||"Category"}),t("div",{className:Ne.chevronIcon,children:t(ue,{name:"CaretDown",size:14,className:`${Ne.chevronImg} ${l?Ne.chevronUp:""}`})})]}),l&&t("div",{className:Ne.categoryItems,children:(n.items||[]).map((e,n)=>t("div",{className:Ne.categoryItemWrapper,children:t(De,{label:e.label||"Item",showLeftIcon:!0,showRightIcon:!1,hasCheckbox:"multiple"===a,hasRadio:"multiple"!==a,checked:e.checked||!1,type:e.type||"default",onClick:()=>{d&&d(e,o)}})},e.id||n))})]},o)},x=[Ne.container,Ne[`variant_${a}`],g].filter(Boolean).join(" ");return e("div",{className:x,...f,children:[e("div",{className:Ne.searchSection,children:[e("div",{className:Ne.searchInput,children:[t("div",{className:Ne.searchIcon,children:t(ue,{name:"MagnifyingGlass",size:16,className:Ne.searchIconImage})}),t("input",{type:"text",className:Ne.realSearchInput,placeholder:"Search",value:_,onChange:e=>{v(e.target.value)}})]}),(()=>{if(!n||0===n.length)return null;const a=n.slice(0,5),o=n.length-5;let l=null;return o>0&&(l={isMore:!0,label:`+${o}`}),e("div",{className:Ne.chipListContainer,children:[a.map((a,n)=>e("div",{className:Ne.chip,children:[t("p",{className:Ne.chipLabel,children:a.label||"Label"}),t("button",{type:"button",className:Ne.chipRemove,onClick:e=>{e.stopPropagation(),i&&i(a)},"aria-label":"Remove chip",children:t(ue,{name:"X",size:14,className:Ne.chipIcon})})]},n)),l&&t("div",{className:Ne.chip,children:t("p",{className:Ne.chipLabel,children:l.label})})]})})()]}),t("div",{className:Ne.listsContainer,children:C.map((e,t)=>y(e,t))}),e("div",{className:Ne.actionsContainer,children:[t("button",{type:"button",className:Ne.cancelButton,onClick:u,children:t("p",{className:Ne.cancelButtonText,children:h})}),t("button",{type:"button",className:Ne.applyButton,onClick:m,children:t("p",{className:Ne.applyButtonText,children:p})})]})]})};var $e={cell:"Cell-module_cell__wdOpC",label:"Cell-module_label__1JEFV",defaultContent:"Cell-module_defaultContent__Vv8Xy",leadingIcon:"Cell-module_leadingIcon__zmwIZ",trailingIcon:"Cell-module_trailingIcon__6DTXX",avatarContent:"Cell-module_avatarContent__moY52",avatar:"Cell-module_avatar__gUaMQ",avatarPlaceholder:"Cell-module_avatarPlaceholder__RK0QA",statusContent:"Cell-module_statusContent__izq8j",statusDot:"Cell-module_statusDot__5-hPy",status_active:"Cell-module_status_active__yHLS8",status_online:"Cell-module_status_online__oCYlx",status_inactive:"Cell-module_status_inactive__6Jdoj",status_offline:"Cell-module_status_offline__ls8W2",status_pending:"Cell-module_status_pending__ID-H1",socialContent:"Cell-module_socialContent__YuoLv",socialIcon:"Cell-module_socialIcon__ME-Dx",actionsContent:"Cell-module_actionsContent__V-4Lc",actionButton:"Cell-module_actionButton__AJYz-",checkboxContent:"Cell-module_checkboxContent__F2jOW",toggleContent:"Cell-module_toggleContent__0JbeA",userCountContent:"Cell-module_userCountContent__lehFs",userIconWrapper:"Cell-module_userIconWrapper__qqZpf",count:"Cell-module_count__N1yFG",badge:"Cell-module_badge__7KrfZ"},Te={toggleContainer:"Toggle-module_toggleContainer__lTsof",toggleWrapper:"Toggle-module_toggleWrapper__jWaBk",toggleInput:"Toggle-module_toggleInput__srGOt",toggle:"Toggle-module_toggle__zjgHl",toggleThumb:"Toggle-module_toggleThumb__hjTqE",size_small:"Toggle-module_size_small__xxt4m",size_medium:"Toggle-module_size_medium__mZRV2",size_large:"Toggle-module_size_large__dYf3X",toggleChecked:"Toggle-module_toggleChecked__ZM7BJ",state_default:"Toggle-module_state_default__Sk1P2",toggleDisabled:"Toggle-module_toggleDisabled__I8Z63",state_hover:"Toggle-module_state_hover__-Hx6l",state_focus:"Toggle-module_state_focus__E5i0q",state_pressed:"Toggle-module_state_pressed__U2veO",label:"Toggle-module_label__CzLo8"};const Re=({checked:a=!1,disabled:n=!1,state:o="default",size:l="medium",label:r="",onChange:i,className:s="",id:c,name:d,value:u,...m})=>{const h=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"focus"===t?"focus":"pressed"===t?"pressed":"default"})(o),p=l.toLowerCase(),g=n||"disabled"===o,f=[Te.toggleContainer,s].filter(Boolean).join(" "),_=[Te.toggle,Te[`size_${p}`],a&&Te.toggleChecked,g&&Te.toggleDisabled,!g&&Te[`state_${h}`]].filter(Boolean).join(" "),v=c||`toggle-${Math.random().toString(36).substr(2,9)}`;return e("div",{className:f,children:[e("div",{className:Te.toggleWrapper,children:[t("input",{type:"checkbox",id:v,name:d,value:u,checked:a,disabled:g,onChange:e=>{!g&&i&&i(e)},className:Te.toggleInput,"aria-checked":a,"aria-disabled":g,role:"switch",...m}),t("label",{htmlFor:v,className:_,children:t("span",{className:Te.toggleThumb})})]}),r&&t("label",{htmlFor:v,className:Te.label,children:r})]})},Fe=({variant:a="default",label:n="",icon:o=null,badge:l=null,avatar:r=null,status:i=null,checked:s=!1,onChange:c,count:d=null,actions:u=[],className:m="",...h})=>t("div",{className:`${$e.cell} ${$e[`variant_${a}`]} ${m}`,...h,children:(()=>{switch(a){case"avatar":return e("div",{className:$e.avatarContent,children:[r?t("img",{src:r,alt:n,className:$e.avatar}):t("div",{className:$e.avatarPlaceholder,children:t(ue,{name:"User",size:16})}),t("span",{className:$e.label,children:n})]});case"status":return e("div",{className:$e.statusContent,children:[t("div",{className:`${$e.statusDot} ${$e[`status_${i?.toLowerCase()}`]}`}),t("span",{className:$e.label,children:n}),l&&t("span",{className:$e.badge,children:l})]});case"social":return e("div",{className:$e.socialContent,children:[o&&t(ue,{name:o,size:16,className:$e.socialIcon}),t("span",{className:$e.label,children:n})]});case"actions":return t("div",{className:$e.actionsContent,children:u.map((e,a)=>t("button",{className:$e.actionButton,onClick:e.onClick,title:e.label,type:"button",children:t(ue,{name:e.icon,size:14})},a))});case"checkbox":return e("div",{className:$e.checkboxContent,children:[t(Ae,{checked:s,onChange:c,size:"small"}),t("span",{className:$e.label,children:n})]});case"toggle":return t("div",{className:$e.toggleContent,children:t(Re,{checked:s,onChange:c,size:"small"})});case"userCount":return t("div",{className:$e.userCountContent,children:e("div",{className:$e.userIconWrapper,children:[t(ue,{name:"User",size:14}),t("span",{className:$e.count,children:d})]})});default:return e("div",{className:$e.defaultContent,children:[o&&t(ue,{name:o,size:16,className:$e.leadingIcon}),t("span",{className:$e.label,children:n}),l&&t("span",{className:$e.badge,children:l}),t(ue,{name:"Globe",size:14,className:$e.trailingIcon})]})}})()});var We="CellHeader-module_cellHeader__9mlaW",Ue="CellHeader-module_sortable__bpx5y",Ee="CellHeader-module_content__6-yV0",Me="CellHeader-module_checkboxWrapper__ah1PJ",He="CellHeader-module_sortIcon__6rgJk",Ve="CellHeader-module_label__nRBcj";const qe=({label:a="",sortable:n=!1,sortOrder:o=null,hasCheckbox:l=!1,checked:r=!1,onSort:i,onCheckboxChange:s,className:c="",...d})=>t("div",{className:`${We} ${n?Ue:""} ${c}`,onClick:n?i:void 0,...d,children:e("div",{className:Ee,children:[l&&t("div",{className:Me,onClick:e=>e.stopPropagation(),children:t(Ae,{checked:r,onChange:s,size:"small"})}),n&&t("div",{className:He,"aria-label":`Sort ${o||"none"}`,children:t(ue,{name:"asc"===o?"SortAscending":"desc"===o?"SortDescending":"CaretUpDown",size:14})}),t("span",{className:Ve,children:a})]})}),Oe=({children:a,variant:n="default",padding:o="md",hover:l=!1,clickable:r=!1,header:i,footer:s,onClick:c,className:d,style:u,animate:m=!0,animationDuration:h=300,animationDelay:p=0,animationEasing:g="ease-in-out",...f})=>{const _=ie("bg-white rounded-lg transition-all duration-200",{default:"shadow-sm border border-gray-200",elevated:"shadow-lg border border-gray-100",outlined:"border-2 border-gray-200",filled:"bg-gray-50 border border-gray-200"}[n],{xs:"p-2",sm:"p-3",md:"p-4",lg:"p-6",xl:"p-8"}[o],l&&"hover:shadow-md hover:-translate-y-0.5",r&&"cursor-pointer hover:shadow-lg hover:-translate-y-1",m&&"animate-fade-in",d),v={...u,...m&&{animationDuration:`${h}ms`,animationDelay:`${p}ms`,animationTimingFunction:g}};return e("div",{className:_,style:v,onClick:e=>{r&&c&&c(e)},...f,children:[i&&t("div",{className:"mb-4 pb-4 border-b border-gray-200",children:i}),t("div",{className:"flex-1",children:a}),s&&t("div",{className:"mt-4 pt-4 border-t border-gray-200",children:s})]})};var Ge={chip:"Chip-module_chip__QDbLV",label:"Chip-module_label__jkrIf",iconWrapper:"Chip-module_iconWrapper__NWuWA",icon:"Chip-module_icon__Tkzl1",size_small:"Chip-module_size_small__FfLgY",size_medium:"Chip-module_size_medium__lOEvU",state_default:"Chip-module_state_default__Qcr59",state_hover:"Chip-module_state_hover__Fh-CV",state_pressed:"Chip-module_state_pressed__icmBU",state_active:"Chip-module_state_active__JenYe"};const Ye=({label:a="Label",showRightIcon:n=!0,showLeftIcon:o=!0,chooseLeftIcon:l=null,chooseRightIcon:r=null,state:i="default",size:s="medium",onRemove:c,onClick:d,className:u="",...m})=>{const h=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"pressed"===t?"pressed":"active"===t?"active":"default"})(i),p=(s||"medium").toLowerCase(),g="small"===p?12:14,f=[Ge.chip,Ge[`size_${p}`],Ge[`state_${h}`],u].filter(Boolean).join(" ");return e(d?"button":"div",{className:f,onClick:d,type:d?"button":void 0,...m,children:[o?l||t("div",{className:Ge.iconWrapper,children:t(ue,{name:"x",size:g,className:Ge.icon,variant:"active"===h?"white":"default"})}):null,t("span",{className:Ge.label,children:a}),n?r||t("div",{className:Ge.iconWrapper,children:t(ue,{name:"x",size:g,className:Ge.icon,variant:"active"===h?"white":"default",onClick:e=>{e.stopPropagation(),c&&c()}})}):null]})};var je={container:"ChipList-module_container__3H1e7",row:"ChipList-module_row__961Z3",layout_single:"ChipList-module_layout_single__t5ANI",layout_double:"ChipList-module_layout_double__5ihDG",layout_doublerow:"ChipList-module_layout_doublerow__qSwD-"};const Xe=({chips:e=[],layout:a="single",onChipRemove:n,className:o="",...l})=>{const r=e.length>0?e:[{label:"Label",id:"1"},{label:"Label",id:"2"},{label:"Label",id:"3"}],i=a.toLowerCase(),s=(()=>{if("double"===i||"doublerow"===i){const e=Math.ceil(r.length/2);return[r.slice(0,e),r.slice(e)]}return[r]})(),c=[je.container,je[`layout_${i}`],o].filter(Boolean).join(" ");return t("div",{className:c,...l,children:s.map((e,a)=>t("div",{className:je.row,children:e.map(e=>t(Ye,{label:e.label,showRightIcon:!0,showLeftIcon:!1,state:"default",size:"medium",onRemove:()=>{n&&n(e)}},e.id||e.label))},a))})};var Ze={container:"Dropdown-module_container__ErjTf",type_medium:"Dropdown-module_type_medium__-9PP9",type_small:"Dropdown-module_type_small__RBIcw",label:"Dropdown-module_label__r-lFx",description:"Dropdown-module_description__o8wRo",dropdownWrapper:"Dropdown-module_dropdownWrapper__UL4uW",fieldWrapper:"Dropdown-module_fieldWrapper__tDsIq",dropdownWrapper_type_medium:"Dropdown-module_dropdownWrapper_type_medium__fvECq",dropdownWrapper_type_small:"Dropdown-module_dropdownWrapper_type_small__Giu8S",dropdownInner:"Dropdown-module_dropdownInner__-VN-B",placeholder:"Dropdown-module_placeholder__ZqFux",value:"Dropdown-module_value__pqCLT",chevronWrapper:"Dropdown-module_chevronWrapper__zvdRH",chevronIcon:"Dropdown-module_chevronIcon__iBeCV",chipList:"Dropdown-module_chipList__s1lVm",chip:"Dropdown-module_chip__7rR17",chipLabel:"Dropdown-module_chipLabel__-ksTf",chipRemove:"Dropdown-module_chipRemove__yQ6wd",chipIcon:"Dropdown-module_chipIcon__SMMHv",error:"Dropdown-module_error__5Ptsm",dropdownWrapper_type_medium_state_default:"Dropdown-module_dropdownWrapper_type_medium_state_default__5bpre",dropdownWrapper_type_small_state_default:"Dropdown-module_dropdownWrapper_type_small_state_default__skJVV",dropdownWrapper_type_medium_state_hover:"Dropdown-module_dropdownWrapper_type_medium_state_hover__44jce",dropdownWrapper_type_small_state_hover:"Dropdown-module_dropdownWrapper_type_small_state_hover__7hn5F",dropdownWrapper_type_medium_state_selected:"Dropdown-module_dropdownWrapper_type_medium_state_selected__OC89t",dropdownWrapper_type_small_state_selected:"Dropdown-module_dropdownWrapper_type_small_state_selected__BIPst",dropdownWrapper_type_medium_state_focused:"Dropdown-module_dropdownWrapper_type_medium_state_focused__9BNJD",dropdownWrapper_type_small_state_focused:"Dropdown-module_dropdownWrapper_type_small_state_focused__Eq0nK",dropdownWrapper_type_medium_state_error:"Dropdown-module_dropdownWrapper_type_medium_state_error__YgZfn",dropdownWrapper_type_small_state_error:"Dropdown-module_dropdownWrapper_type_small_state_error__40JGM",dropdownWrapper_type_medium_state_disabled:"Dropdown-module_dropdownWrapper_type_medium_state_disabled__hibT2",dropdownWrapper_type_small_state_disabled:"Dropdown-module_dropdownWrapper_type_small_state_disabled__siGnC"};const Ke=({value:a="",description:n="",label:l="",error:i="",hasLabel:s=!0,hasDescription:c=!0,hasError:d=!1,hasChips:u=!1,state:m="default",type:h="medium",placeholder:p="Value",chips:g=[],onChange:f,onFocus:_,onBlur:v,onClick:b,onOutsideClick:w,disabled:C,className:y="",children:x,...k})=>{const P=o(null);r(()=>{if(!w)return;const e=e=>{P.current&&!P.current.contains(e.target)&&w()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[w]);const N=(h||"medium").toLowerCase(),S=C?"disabled":(e=>{if(!e)return"default";const t=e.toLowerCase().replace(/\s+/g,"").replace(/-/g,"");return"selected"===t?"selected":"focused"===t?"focused":"hover"===t?"hover":"error"===t?"error":"disabled"===t?"disabled":t})(m),I=[Ze.container,Ze[`type_${N}`],y].filter(Boolean).join(" "),A=[Ze.dropdownWrapper,Ze[`dropdownWrapper_type_${N}`],Ze[`dropdownWrapper_state_${S}`],Ze[`dropdownWrapper_type_${N}_state_${S}`]].filter(Boolean).join(" "),L=C||"disabled"===S,B=e("div",{className:Ze.fieldWrapper,children:[t("button",{type:"button",className:A,onClick:b||_,disabled:L,"aria-disabled":L,...k,children:e("div",{className:Ze.dropdownInner,children:[u&&0!==g.length?t("div",{className:Ze.chipList,children:g.map((a,n)=>e("div",{className:Ze.chip,children:[t("span",{className:Ze.chipLabel,children:a.label||"Label"}),a.onRemove&&t("button",{type:"button",className:Ze.chipRemove,onClick:e=>{e.stopPropagation(),a.onRemove&&a.onRemove()},"aria-label":"Remove chip",children:t(ue,{name:"x",size:10,className:Ze.chipIcon})})]},n))}):null,t("span",a?{className:Ze.value,children:a}:{className:Ze.placeholder,children:p}),t("div",{className:Ze.chevronWrapper,children:t(ue,{name:x?"caret-up":"caret-down",size:12,className:Ze.chevronIcon})})]})}),x]});return e("div",{className:I,ref:P,children:[s&&l&&t("p",{className:Ze.label,children:l}),c&&n&&t("p",{className:Ze.description,children:n}),B,d&&i&&t("p",{className:Ze.error,children:i})]})};var Qe={dropdownNestedColumn:"DropdownNestedColumn-module_dropdownNestedColumn__-cag7",titleFrame:"DropdownNestedColumn-module_titleFrame__-offj",titleAndCta:"DropdownNestedColumn-module_titleAndCta__4y7z4",titleText:"DropdownNestedColumn-module_titleText__G5mny",clearAllButton:"DropdownNestedColumn-module_clearAllButton__jEO-i",clearAllText:"DropdownNestedColumn-module_clearAllText__WR6Lj",chevronButton:"DropdownNestedColumn-module_chevronButton__pJED1",chevronContainer:"DropdownNestedColumn-module_chevronContainer__KBjay",chevronIcon:"DropdownNestedColumn-module_chevronIcon__B-Vxx",dropdownWithSearch:"DropdownNestedColumn-module_dropdownWithSearch__pLH5k",dropdownContent:"DropdownNestedColumn-module_dropdownContent__yxwX7",chipListSection:"DropdownNestedColumn-module_chipListSection__hz0gx",chipGrid:"DropdownNestedColumn-module_chipGrid__7wFEN",noChips:"DropdownNestedColumn-module_noChips__wktQg",moreChipsChip:"DropdownNestedColumn-module_moreChipsChip__SVtTL",searchInputSection:"DropdownNestedColumn-module_searchInputSection__QRUBF",searchInput:"DropdownNestedColumn-module_searchInput__xvb2F",searchIcon:"DropdownNestedColumn-module_searchIcon__aASpj",searchField:"DropdownNestedColumn-module_searchField__UP-pl",itemsList:"DropdownNestedColumn-module_itemsList__V41r6",itemsContainer:"DropdownNestedColumn-module_itemsContainer__2IXay",noItems:"DropdownNestedColumn-module_noItems__oiWmw"};const Je=({title:a="Title",expanded:n=!0,chips:o=[],items:r=[],onClearAll:i,onChipRemove:s,onItemClick:c,className:d="",...u})=>{const[m,h]=l(n),[p,g]=l(""),f=[Qe.dropdownNestedColumn,d].filter(Boolean).join(" "),_=e("div",{className:Qe.titleAndCta,children:[t("p",{className:Qe.titleText,children:a}),t("button",{className:Qe.clearAllButton,onClick:e=>{e.stopPropagation(),i&&i()},type:"button",children:t("p",{className:Qe.clearAllText,children:"Clear all"})})]}),v=r.filter(e=>e.label.toLowerCase().includes(p.toLowerCase()));return e("div",{className:f,...u,children:[e("div",{className:Qe.titleFrame,children:[_,t("button",{className:Qe.chevronButton,onClick:()=>{h(!m)},type:"button",children:t("div",{className:Qe.chevronContainer,children:t("div",{className:Qe.chevronIcon,style:{transform:m?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.2s ease"},children:t(ue,{name:"caret-up",size:16})})})})]}),m&&t("div",{className:Qe.dropdownWithSearch,children:e("div",{className:Qe.dropdownContent,children:[t("div",{className:Qe.chipListSection,children:o.length>0?e("div",{className:Qe.chipGrid,children:[o.slice(0,5).map(e=>t(Ye,{label:e.label,showRightIcon:!0,showLeftIcon:!1,state:"default",size:"medium",onRemove:()=>{s&&s(e)}},e.id||e.label)),o.length>5&&t(Ye,{label:"+"+(o.length-5),showRightIcon:!1,showLeftIcon:!1,state:"default",size:"medium",className:Qe.moreChipsChip})]}):t("div",{className:Qe.noChips,children:"No items selected"})}),t("div",{className:Qe.searchInputSection,children:e("div",{className:Qe.searchInput,children:[t(ue,{name:"magnifying-glass",size:16,className:Qe.searchIcon}),t("input",{type:"text",className:Qe.searchField,placeholder:"Search",value:p,onChange:e=>g(e.target.value)})]})}),t("div",{className:Qe.itemsList,children:t("div",{className:Qe.itemsContainer,children:v.length>0?v.map((e,a)=>t(De,{label:e.label,showLeftIcon:!1,showRightIcon:!1,hasCheckbox:!0,hasRadio:!1,checked:e.checked||!1,type:e.type||"Default",onClick:()=>{c&&c(e)}},e.id||a)):t("div",{className:Qe.noItems,children:"No items found"})})})]})})]})};var et={dropdownNested:"DropdownNested-module_dropdownNested__S7idI",columns:"DropdownNested-module_columns__VciGu",column:"DropdownNested-module_column__clf4o",ctas:"DropdownNested-module_ctas__MWS3w",cancelButton:"DropdownNested-module_cancelButton__c-8mc",applyButton:"DropdownNested-module_applyButton__AvCpG"};const tt=({leftColumn:a={title:"Select a Member",chips:[],items:[]},rightColumn:n={title:"Select a Group",chips:[],items:[]},onLeftClearAll:o,onRightClearAll:l,onLeftChipRemove:r,onRightChipRemove:i,onLeftItemClick:s,onRightItemClick:c,onCancel:d,onApply:u,className:m="",...h})=>{const p=a.chips,g=n.chips,f=a.items,_=n.items,v=[et.dropdownNested,m].filter(Boolean).join(" ");return e("div",{className:v,...h,children:[e("div",{className:et.columns,children:[t("div",{className:et.column,children:t(Je,{title:a.title,expanded:!0,chips:p,items:f,onClearAll:o,onChipRemove:r,onItemClick:s})}),t("div",{className:et.column,children:t(Je,{title:n.title,expanded:!0,chips:g,items:_,onClearAll:l,onChipRemove:i,onItemClick:c})})]}),e("div",{className:et.ctas,children:[t(fe,{label:"Cancel",style:"neutral",size:"medium",showLeadingIcon:!1,onClick:d,className:et.cancelButton}),t(pe,{label:"Apply",buttonStyle:"primary",size:"medium",showLeadingIcon:!1,onClick:u,className:et.applyButton})]})]})};var at={iconButton:"IconButton-module_iconButton__RX7bN",icon:"IconButton-module_icon__1mvRD",loaderIcon:"IconButton-module_loaderIcon__AB3CY",spin:"IconButton-module_spin__dIR-z",size_medium:"IconButton-module_size_medium__vDKx5",size_small:"IconButton-module_size_small__6QIGb",style_primary:"IconButton-module_style_primary__iuggd",state_default:"IconButton-module_state_default__CRDoC",state_hover:"IconButton-module_state_hover__gREn9",state_focus:"IconButton-module_state_focus__rPK-E",state_disabled:"IconButton-module_state_disabled__LFZlJ",state_loading:"IconButton-module_state_loading__jB6U7",style_secondary:"IconButton-module_style_secondary__3em9O",style_neutral:"IconButton-module_style_neutral__hzeSD",style_subtle:"IconButton-module_style_subtle__QK4-l"};const nt=({icon:e,style:a="primary",state:n="default",size:o="medium",onClick:l,disabled:r,loading:i,className:s="",...c})=>{const d=i?"loading":r?"disabled":n,u=r||i||"disabled"===d,m=[at.iconButton,at[`style_${a}`],at[`state_${d}`],at[`size_${o}`],s].filter(Boolean).join(" ");return t("button",{className:m,onClick:l,disabled:u,"aria-disabled":u,...c,children:e?"string"==typeof e?t(ue,{name:e,className:at.icon,size:14}):e:t(ue,"loading"===d?{name:"spinner",className:at.loaderIcon,size:16}:{name:"star",className:at.icon,size:14})})};var ot={overlay:"Modal-module_overlay__-RqGQ",fadeIn:"Modal-module_fadeIn__bf4KI",modal:"Modal-module_modal__MUsZA",slideUp:"Modal-module_slideUp__ZdbV-",small:"Modal-module_small__tMzhZ",medium:"Modal-module_medium__ww1Z7",large:"Modal-module_large__J-zZn",closeButton:"Modal-module_closeButton__1Oslg",content:"Modal-module_content__1bCpv",iconWrapper:"Modal-module_iconWrapper__99kUR",textStack:"Modal-module_textStack__QbEZb",title:"Modal-module_title__TUIss",description:"Modal-module_description__o6Czk",actions:"Modal-module_actions__YzyOX"};const lt=({isOpen:a,onClose:n,title:o,description:l,icon:i,children:s,actions:c,size:d="medium",showCloseButton:u=!0,className:m="",...h})=>{if(r(()=>(document.body.style.overflow=a?"hidden":"unset",()=>{document.body.style.overflow="unset"}),[a]),!a)return null;return t("div",{className:ot.overlay,onClick:e=>{e.target===e.currentTarget&&n&&n()},children:e("div",{className:`${ot.modal} ${ot[d]} ${m}`,role:"dialog","aria-modal":"true",...h,children:[u&&t("button",{className:ot.closeButton,onClick:n,"aria-label":"Close modal",children:t(ue,{name:"X"})}),e("div",{className:ot.content,children:[i&&t("div",{className:ot.iconWrapper,children:i}),s||e("div",{className:ot.textStack,children:[o&&t("h2",{className:ot.title,children:o}),l&&t("p",{className:ot.description,children:l})]}),c&&t("div",{className:ot.actions,children:c})]})]})})};var rt={notification:"Notification-module_notification__U2DR1",size_small:"Notification-module_size_small__kHQRv",size_medium:"Notification-module_size_medium__hJpV4",variant_primary:"Notification-module_variant_primary__OQM8e",variant_neutral:"Notification-module_variant_neutral__tmXIq",variant_subtle:"Notification-module_variant_subtle__uwELf",count:"Notification-module_count__XmK01",plus:"Notification-module_plus__oBCK6"};const it=({count:n=0,variant:o="primary",size:l="medium",maxCount:r=99,className:i="",...s})=>{const c=[rt.notification,rt[`variant_${o}`],rt[`size_${l}`],i].filter(Boolean).join(" ");return t("span",{className:c,...s,children:(()=>{if("number"==typeof n&&n>r)return e(a,{children:[t("span",{className:rt.count,children:r}),t("span",{className:rt.plus,children:"+"})]});if("string"==typeof n&&n.endsWith("+")){const o=n.slice(0,-1);return e(a,{children:[t("span",{className:rt.count,children:o}),t("span",{className:rt.plus,children:"+"})]})}return n})()})};var st={paginationWrapper:"Pagination-module_paginationWrapper__Da07-",navButtonCustom:"Pagination-module_navButtonCustom__dtnOI",navIcon:"Pagination-module_navIcon__jEBAO",navText:"Pagination-module_navText__epoAF"};const ct=a=>t(h,{theme:{token:{colorPrimary:"#4432bf",borderRadius:8,fontFamily:"'Host Grotesk', sans-serif",colorText:"#2f353b",colorTextDescription:"#768494",motion:!1},components:{Pagination:{itemActiveBg:"#4432bf",itemActiveColor:"#F3EEF9",itemBg:"transparent",itemInputBg:"#ffffff",itemSize:36,itemSizeSM:32}}},children:t("div",{className:`${st.paginationWrapper} ${a.className||""}`,children:t(p,{itemRender:(n,o,l)=>"prev"===o?e("div",{className:`${st.navButtonCustom} ${a.disabled?st.disabled:""}`,children:[t("div",{className:st.navIcon,style:{WebkitMaskImage:"url('/icon/ArrowLeft.svg')",maskImage:"url('/icon/ArrowLeft.svg')"}}),t("span",{className:st.navText,children:"Previous"})]}):"next"===o?e("div",{className:`${st.navButtonCustom} ${a.disabled?st.disabled:""}`,children:[t("span",{className:st.navText,children:"Next"}),t("div",{className:st.navIcon,style:{WebkitMaskImage:"url('/icon/ArrowRight.svg')",maskImage:"url('/icon/ArrowRight.svg')"}})]}):l,...a})})});var dt={container:"Search-module_container__NslV2",input:"Search-module_input__-SRzW",inputInner:"Search-module_inputInner__BFwA4",searchIcon:"Search-module_searchIcon__kOb49",searchIconImage:"Search-module_searchIconImage__JG5O3",placeholder:"Search-module_placeholder__XGEtM",value:"Search-module_value__r-4hD",realInput:"Search-module_realInput__REpAG",inputInner_state_focused:"Search-module_inputInner_state_focused__Zl5a2",cursor:"Search-module_cursor__hsCJx",blink:"Search-module_blink__PSxpt",cursorTyping:"Search-module_cursorTyping__wAW5b",error:"Search-module_error__4NuH1",input_state_default:"Search-module_input_state_default__5QR0F",inputInner_state_default:"Search-module_inputInner_state_default__YpSHL",input_state_hover:"Search-module_input_state_hover__zvOhd",inputInner_state_hover:"Search-module_inputInner_state_hover__Gxcb9",input_state_focused:"Search-module_input_state_focused__TDgsA",input_state_typing:"Search-module_input_state_typing__GFivl",inputInner_state_typing:"Search-module_inputInner_state_typing__9zezH",input_state_filled:"Search-module_input_state_filled__3FE6u",inputInner_state_filled:"Search-module_inputInner_state_filled__qOdD4",input_state_filledHover:"Search-module_input_state_filledHover__kQu9I",inputInner_state_filledHover:"Search-module_inputInner_state_filledHover__2EMWM",input_state_error:"Search-module_input_state_error__F-GNS",inputInner_state_error:"Search-module_inputInner_state_error__zTv5f",input_state_disabled:"Search-module_input_state_disabled__F5cPc",inputInner_state_disabled:"Search-module_inputInner_state_disabled__gKmLt"};const ut=({value:a="",error:n="",hasError:o=!1,state:r="default",placeholder:i="Search",onChange:s,onFocus:c,onBlur:d,disabled:u,className:m="",title:h="",...p})=>{const[g,f]=l(!1),[_,v]=l(!1),b=(()=>{if(u)return"disabled";const e=(e=>{if(!e||"default"===e)return null;const t=e.toLowerCase().replace(/\s+/g,"").replace(/-/g,"");return"filledin"===t||"filled"===t?"filled":"filledinhover"===t||"filledhover"===t||"filled-hover"===t?"filledHover":"focused"===t?"focused":"typing"===t?"typing":"hover"===t?"hover":"error"===t?"error":"disabled"===t?"disabled":t})(r);return e||(o?"error":_?a?"typing":"focused":g?a?"filledHover":"hover":a?"filled":"default")})(),w=[dt.container,m].filter(Boolean).join(" "),C=[dt.input,dt[`input_state_${b}`]].filter(Boolean).join(" "),y=[dt.inputInner,dt[`inputInner_state_${b}`]].filter(Boolean).join(" "),x=u||"disabled"===b;return e("div",{className:w,title:h,onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),children:[t("div",{className:C,children:e("div",{className:y,children:[t("div",{className:dt.searchIcon,children:t(ue,{name:"magnifying-glass",className:dt.searchIconImage,size:16})}),t("input",{type:"search",className:dt.realInput,value:a,placeholder:i,onChange:s,onFocus:e=>{v(!0),c?.(e)},onBlur:e=>{v(!1),d?.(e)},disabled:x,...p}),("focused"===b||"typing"===b)&&!a&&t("span",{className:dt.cursor,children:"|"})]})}),o&&n&&t("p",{className:dt.error,children:n})]})};var mt={statusIndicator:"StatusIndicator-module_statusIndicator__dYsH-",indicator:"StatusIndicator-module_indicator__YQzs6",label:"StatusIndicator-module_label__WM5I3",size_medium:"StatusIndicator-module_size_medium__Fp-1x",state_default:"StatusIndicator-module_state_default__J4F1G",state_hover:"StatusIndicator-module_state_hover__Hmr-w",state_pressed:"StatusIndicator-module_state_pressed__Cz8o1",state_active:"StatusIndicator-module_state_active__nOiXv",state_disabled:"StatusIndicator-module_state_disabled__umvwX"};const ht=({label:a="Status",state:n="default",size:o="medium",color:l="green",onClick:r,className:i="",...s})=>{const c=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"pressed"===t?"pressed":"active"===t?"active":"disabled"===t?"disabled":"default"})(n),d=(e=>{if(!e)return"green";const t=e.toLowerCase();return"red"===t?"red":"yellow"===t?"yellow":"blue"===t?"blue":"green"})(l),u=o.toLowerCase(),m=[mt.statusIndicator,mt[`size_${u}`],mt[`state_${c}`],mt[`color_${d}`],i].filter(Boolean).join(" ");return e(r?"button":"div",{className:m,onClick:r,disabled:"disabled"===c,type:r?"button":void 0,...s,children:[(()=>{const e=(()=>{switch(d){case"red":return"var(--color-red-500)";case"yellow":return"var(--color-yellow-500)";case"blue":return"var(--color-violet-500)";default:return"var(--color-green-500)"}})();return t("div",{className:mt.indicator,style:{backgroundColor:e}})})(),t("span",{className:mt.label,children:a})]})};var pt={tab:"Tab-module_tab__SstW0",label:"Tab-module_label__3WQV-",active:"Tab-module_active__RQPjd",disabled:"Tab-module_disabled__m49K5",underline:"Tab-module_underline__IupnS",slideIn:"Tab-module_slideIn__owi-7"};const gt=({label:a,count:n,isActive:o=!1,disabled:l=!1,onClick:r,className:i="",...s})=>{const c=[pt.tab,o&&pt.active,l&&pt.disabled,i].filter(Boolean).join(" ");return e("button",{className:c,onClick:e=>{!l&&r&&r(e)},disabled:l,type:"button",role:"tab","aria-selected":o,...s,children:[t("span",{className:pt.label,children:a}),null!=n&&t(it,{count:n,variant:l?"subtle":o?"primary":"neutral",size:"small",className:pt.notification}),o&&t("div",{className:pt.underline})]})};var ft={tabList:"TabList-module_tabList__sSh3n"};const _t=({items:e,activeKey:a,onChange:n,className:o=""})=>{const l=[ft.tabList,o].filter(Boolean).join(" ");return t("div",{className:l,role:"tablist",children:e.map(e=>t(gt,{label:e.label,count:e.count,disabled:e.disabled,isActive:a===e.key,onClick:()=>!e.disabled&&n?.(e.key)},e.key))})};var vt={tableContainer:"Table-module_tableContainer__R0vmz",checkboxHeader:"Table-module_checkboxHeader__nB0jp",tableCell:"Table-module_tableCell__gaAKu",antTable:"Table-module_antTable__bZm6O",dragHandleHeader:"Table-module_dragHandleHeader__KczQT",dragHandleCell:"Table-module_dragHandleCell__3TeKk",dragHandle:"Table-module_dragHandle__gi396",rowDragging:"Table-module_rowDragging__OkG8Q","ant-table-tbody":"Table-module_ant-table-tbody__77qO2",sortIcon:"Table-module_sortIcon__1ordV",columnHeaderContent:"Table-module_columnHeaderContent__3qDkz","ant-table-column-title":"Table-module_ant-table-column-title__OGte0",columnHeaderLabel:"Table-module_columnHeaderLabel__s57EO",sortIconLeft:"Table-module_sortIconLeft__zL1i-","ant-table-thead":"Table-module_ant-table-thead__zf80i",resizeHandle:"Table-module_resizeHandle__2zwBq",resizeHandleLine:"Table-module_resizeHandleLine__i85s6",resizing:"Table-module_resizing__rV8oe","ant-table-column-sorters":"Table-module_ant-table-column-sorters__5YiWY"};const bt=c(null),wt=({children:e,id:a,rowKey:n,row:o})=>{const{attributes:l,listeners:r,setNodeRef:i,transform:s,transition:c,isDragging:d}=N({id:a}),u={transform:S.Transform.toString(s),transition:c,opacity:d?.5:1};return t(bt.Provider,{value:{attributes:l,listeners:r},children:t("tr",{ref:i,style:u,className:`${d?vt.rowDragging:""}`,children:e})})},Ct=()=>{const e=d(bt);if(!e)return null;const{attributes:a,listeners:n}=e;return t("td",{className:vt.dragHandleCell,children:t("div",{className:vt.dragHandle,...n,...a,children:t(ue,{name:"dots-six-vertical",size:12})})})},yt=({columnKey:e,onResizeStart:a,onResize:n,onResizeEnd:r})=>{const s=o(null),[c,d]=l(!1),u=i(t=>{t.preventDefault(),t.stopPropagation(),d(!0);const o=t.clientX,l=s.current?.parentElement?.offsetWidth||0,i=t=>{const a=t.clientX-o,r=Math.max(50,l+a);n&&n(e,r)},c=()=>{d(!1),r&&r(e),document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",c),document.body.style.cursor="",document.body.style.userSelect=""};a&&a(e),document.addEventListener("mousemove",i),document.addEventListener("mouseup",c),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[e,n,a,r]);return t("div",{ref:s,className:`${vt.resizeHandle} ${c?vt.resizing:""}`,onMouseDown:u,title:"Drag to resize column",children:t("div",{className:vt.resizeHandleLine})})};function xt({columns:a=[],data:o=[],rowKey:r="id",onRowReorder:c,onRowSelect:d,onSort:u,className:m="",...h}){const[p,N]=l([]),[S,I]=l({}),[A,L]=l(o),[B,D]=l({});n.useEffect(()=>{L(o)},[o]),n.useEffect(()=>{const e=()=>{const e=document.querySelector(`.${vt.tableContainer}`);if(!e)return;e.querySelectorAll(".ant-table-thead > tr > th").forEach(e=>{const t=window.getComputedStyle(e,"::before");if("none"!==t.content&&""!==t.content){const e="remove-table-separator";let t=document.getElementById(e);t||(t=document.createElement("style"),t.id=e,t.textContent=`\n .${vt.tableContainer} .ant-table-thead > tr > th::before {\n display: none !important;\n content: none !important;\n width: 0 !important;\n height: 0 !important;\n background: none !important;\n opacity: 0 !important;\n visibility: hidden !important;\n }\n `,document.head.appendChild(t))}})};e();const t=[setTimeout(e,50),setTimeout(e,100),setTimeout(e,200)],a=new MutationObserver(e),n=document.querySelector(`.${vt.tableContainer}`);return n&&a.observe(n,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class"]}),()=>{t.forEach(clearTimeout),a.disconnect();const e=document.getElementById("remove-table-separator");e&&e.remove()}},[A,a]),n.useEffect(()=>{const e=()=>{const e=document.querySelector(`.${vt.tableContainer}`);if(!e)return;e.querySelectorAll(".ant-table-column-sorter, .ant-table-column-sorter-full, .ant-table-column-sorter-inner").forEach(e=>{const t=e;t.closest(`.${vt.sortIconLeft}`)||(t.style.display="none",t.style.visibility="hidden",t.style.opacity="0",t.style.width="0",t.style.height="0",t.style.margin="0",t.style.padding="0")})};e();const t=setTimeout(e,100),a=new MutationObserver(e),n=document.querySelector(`.${vt.tableContainer}`);return n&&a.observe(n,{childList:!0,subtree:!0,attributes:!0}),()=>{clearTimeout(t),a.disconnect()}},[A,a,S]);const z=f(_(v),_(b,{coordinateGetter:y})),$=e=>{N(e),d&&d(e)},T=i((e,t)=>{D(a=>({...a,[e]:t}))},[]),R=i(e=>{},[]),F=i(e=>{},[]),W=s(()=>{const n={title:"",key:"drag-handle",width:40,fixed:"left",className:vt.dragHandleHeader,render:()=>t(Ct,{})},o=a.map(a=>{const n=B[a.key]||a.width||void 0,o=a.sortable&&S.columnKey===a.key&&S.order||null,l=a.sortable?t("span",{className:vt.sortIconLeft,onClick:e=>{if(e.stopPropagation(),!a.sortable)return;let t;if(t=S.columnKey===a.key?"ascend"===S.order?"descend":"descend"===S.order?null:"ascend":"ascend",t){if(I({order:t,columnKey:a.key}),u){const e="ascend"===t?"asc":"desc";u(a.key,e)}}else I({}),u&&u(null,null)},title:"Click to sort",children:(r=o,t(ue,"ascend"===r?{name:"sort-ascending",size:14}:"descend"===r?{name:"sort-descending",size:14}:{name:"caret-up-down",size:14}))}):null;var r;return{title:e("div",{className:vt.columnHeaderContent,children:[l,t("span",{className:vt.columnHeaderLabel,children:a.label}),t(yt,{columnKey:a.key,onResizeStart:R,onResize:T,onResizeEnd:F})]}),dataIndex:a.key,key:a.key,width:n,sorter:!1,render:a.render||(e=>e),className:vt.tableCell,showSorterTooltip:!1}}),l=A.length,i=p.length,s=l>0&&i===l,c=!(0===i)&&!s;return[n,{title:t("div",{className:vt.checkboxHeader,children:t(Ae,{checked:s,indeterminate:c,onChange:e=>{if(c)$([]);else{const t=e.target.checked;$(t?A.map(e=>e[r]):[])}},size:"small"})}),key:"selection",width:48,fixed:"left",className:`${vt.tableCell} ${vt.checkboxColumn}`,render:(e,a)=>{const n=p.includes(a[r]);return t("div",{className:vt.checkboxCell,children:t(Ae,{checked:n,onChange:e=>{const t=e.target.checked?[...p,a[r]]:p.filter(e=>e!==a[r]);$(t)},size:"small"})})}},...o]},[a,S,B,p,A,r,u,R,T,F]),U=[vt.tableContainer,m].filter(Boolean).join(" "),E=s(()=>A.map(e=>e[r]),[A,r]),M={body:{row:e=>{let a=e["data-row-key"];if(!a&&e.children){const t=n.Children.toArray(e.children);for(const e of t){const t=e;if(t?.props?.record?.[r]){a=t.props.record[r];break}}}if(!a&&void 0!==e["data-row-index"]){const t=e["data-row-index"];A[t]&&A[t][r]&&(a=A[t][r])}return a?t(wt,{id:a,rowKey:r,row:e,children:e.children}):t("tr",{...e,children:e.children})}}};return t("div",{className:U,...h,children:t(w,{sensors:z,collisionDetection:C,onDragEnd:e=>{const{active:t,over:a}=e;a&&t.id!==a.id&&L(e=>{const n=e.findIndex(e=>e[r]===t.id),o=e.findIndex(e=>e[r]===a.id),l=P(e,n,o);return c&&c(l),l})},children:t(x,{items:E,strategy:k,children:t(g,{className:vt.antTable,columns:W,dataSource:A,rowKey:r,pagination:!1,scroll:{y:600,x:"max-content"},size:"middle",components:M})})})})}var kt={container:"TextArea-module_container__8G9wA",label:"TextArea-module_label__sMQAR",description:"TextArea-module_description__P-BRk",textareaWrapper:"TextArea-module_textareaWrapper__cnITK",textareaInner:"TextArea-module_textareaInner__yxET8",textContent:"TextArea-module_textContent__5-qwn",title:"TextArea-module_title__V-RBC",nativeTextarea:"TextArea-module_nativeTextarea__1fdWN",iconWrapper:"TextArea-module_iconWrapper__3-EUI",icon:"TextArea-module_icon__K1T5J",dragIcon:"TextArea-module_dragIcon__UGnz0",dragIconImage:"TextArea-module_dragIconImage__u8y7I",error:"TextArea-module_error__qIUbc",textareaWrapper_state_default:"TextArea-module_textareaWrapper_state_default__2mpPG",textareaWrapper_state_hover:"TextArea-module_textareaWrapper_state_hover__yNCVJ",textareaWrapper_state_disabled:"TextArea-module_textareaWrapper_state_disabled__Q2hqV",textareaWrapper_state_focused:"TextArea-module_textareaWrapper_state_focused__UfdMe",textareaWrapper_state_typing:"TextArea-module_textareaWrapper_state_typing__81iqx",textareaWrapper_state_filled:"TextArea-module_textareaWrapper_state_filled__XKopI",textareaWrapper_state_filledHover:"TextArea-module_textareaWrapper_state_filledHover__AQra1",textareaWrapper_state_error:"TextArea-module_textareaWrapper_state_error__iBcMB"};const Pt=({value:a,defaultValue:n,body:o,title:r="",description:i="",label:s="",error:c="",hasLabel:d=!0,hasDescription:u=!0,hasError:m=!1,showIcon:h=!1,chooseIcon:p=null,showTitle:g=!1,showDragIcon:f=!0,state:_="default",placeholder:v="Body",onChange:b,onFocus:w,onBlur:C,disabled:y,className:x="",rows:k=4,...P})=>{const[N,S]=l(!1);let I=y?"disabled":(e=>{if(!e)return"default";const t=e.toLowerCase().replace(/\s+/g,"").replace(/-/g,"");return"filledin"===t||"filled"===t?"filled":"filledinhover"===t||"filledhover"===t||"filled-hover"===t?"filledHover":"focused"===t?"focused":"typing"===t?"typing":"hover"===t?"hover":"error"===t?"error":"disabled"===t?"disabled":t})(_);"default"===I&&N&&(I="focused");const A=[kt.container,x].filter(Boolean).join(" "),L=[kt.textareaWrapper,kt[`textareaWrapper_state_${I}`],m?kt.textareaWrapper_state_error:""].filter(Boolean).join(" "),B=y||"disabled"===I,D=void 0!==a?a:o;return e("div",{className:A,children:[d&&s&&t("label",{className:kt.label,children:s}),u&&i&&t("p",{className:kt.description,children:i}),t("div",{className:L,children:e("div",{className:kt.textareaInner,children:[e("div",{className:kt.textContent,children:[g&&r&&t("p",{className:kt.title,children:r}),t("textarea",{className:kt.nativeTextarea,value:D,defaultValue:n,placeholder:v,onChange:b,onFocus:e=>{S(!0),w&&w(e)},onBlur:e=>{S(!1),C&&C(e)},disabled:B,rows:k,...P})]}),h?p||t("div",{className:kt.iconWrapper,children:t("img",{src:"/icons/Icon.svg",alt:"Icon",className:kt.icon})}):null,f?t("div",{className:kt.dragIcon,children:t("img",{src:"/icons/Vector.svg",alt:"Drag",className:kt.dragIconImage})}):null]})}),(m||"error"===I)&&c&&t("p",{className:kt.error,children:c})]})},Nt={light:{background:"#ffffff",text:"#333333",grid:"#e0e0e0",primary:"#ff6b6b",secondary:"#4ecdc4",accent:"#45b7d1",border:"#cccccc",shadow:"rgba(0, 0, 0, 0.1)"},dark:{background:"#1a1a1a",text:"#ffffff",grid:"#333333",primary:"#ff6b6b",secondary:"#4ecdc4",accent:"#45b7d1",border:"#444444",shadow:"rgba(255, 255, 255, 0.1)"}};function St(e){return{...Nt.light,...e}}const It={default:["#ff6b6b","#4ecdc4","#45b7d1","#96ceb4","#feca57","#ff9ff3"],vibrant:["#ff4757","#2ed573","#3742fa","#ffa502","#ff6348","#5352ed"],pastel:["#ffb3ba","#baffc9","#bae1ff","#ffffba","#ffb3d9","#d4b3ff"],monochrome:["#f8f9fa","#e9ecef","#dee2e6","#ced4da","#adb5bd","#6c757d"],warm:["#ff6b6b","#ff8e53","#ffa726","#ffcc02","#ffeb3b","#fff176"],cool:["#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a"]},At={fadeIn:{duration:300,easing:"ease-in-out",keyframes:[{opacity:0},{opacity:1}]},slideUp:{duration:300,easing:"ease-out",keyframes:[{transform:"translateY(10px)",opacity:0},{transform:"translateY(0)",opacity:1}]},slideDown:{duration:300,easing:"ease-out",keyframes:[{transform:"translateY(-10px)",opacity:0},{transform:"translateY(0)",opacity:1}]},slideLeft:{duration:300,easing:"ease-out",keyframes:[{transform:"translateX(10px)",opacity:0},{transform:"translateX(0)",opacity:1}]},slideRight:{duration:300,easing:"ease-out",keyframes:[{transform:"translateX(-10px)",opacity:0},{transform:"translateX(0)",opacity:1}]},scaleIn:{duration:200,easing:"ease-out",keyframes:[{transform:"scale(0.95)",opacity:0},{transform:"scale(1)",opacity:1}]},scaleOut:{duration:200,easing:"ease-in",keyframes:[{transform:"scale(1)",opacity:1},{transform:"scale(0.95)",opacity:0}]},bounce:{duration:600,easing:"ease-in-out",keyframes:[{transform:"translateY(0)"},{transform:"translateY(-5px)"},{transform:"translateY(0)"}]},pulse:{duration:1e3,easing:"ease-in-out",iterations:"infinite",keyframes:[{transform:"scale(1)"},{transform:"scale(1.05)"},{transform:"scale(1)"}]},spin:{duration:1e3,easing:"linear",iterations:"infinite",keyframes:[{transform:"rotate(0deg)"},{transform:"rotate(360deg)"}]}};function Lt(e,t,a){if(!e)return null;const n=At[t],o={duration:a?.duration||n.duration,delay:a?.delay||0,easing:a?.easing||n.easing,iterations:a?.iterations||1,direction:a?.direction||"normal",fillMode:a?.fillMode||"both"};return e.animate(n.keyframes,o)}function Bt(e,t,a){return e?e.animate(t,a):null}function Dt(e,t,a=100,n){return e.map((e,o)=>{const l={...n,delay:(n?.delay||0)+o*a};return Lt(e,t,l)}).filter(Boolean)}function zt(e,t,a=300,n="ease-in-out"){e&&(e.style.transition=t.map(e=>`${e} ${a}ms ${n}`).join(", "))}function $t(e){e&&(e.style.transition="")}const Tt={fadeIn:"animate-fade-in",slideUp:"animate-slide-up",bounce:"animate-bounce-gentle",pulse:"animate-pulse-slow",spin:"animate-spin"};function Rt(e,t){e&&e.classList.add(Tt[t])}function Ft(e,t){e&&e.classList.remove(Tt[t])}function Wt(e,t={}){const{minimumFractionDigits:a=0,maximumFractionDigits:n=2,useGrouping:o=!0,currency:l="USD",style:r="decimal"}=t;return new Intl.NumberFormat("en-US",{style:r,currency:l,minimumFractionDigits:a,maximumFractionDigits:n,useGrouping:o}).format(e)}function Ut(e){if(0===e)return"0";const t=Math.abs(e),a=e<0?"-":"";return t>=1e12?`${a}${(t/1e12).toFixed(1)}T`:t>=1e9?`${a}${(t/1e9).toFixed(1)}B`:t>=1e6?`${a}${(t/1e6).toFixed(1)}M`:t>=1e3?`${a}${(t/1e3).toFixed(1)}K`:e.toString()}function Et(e,t=1){return`${(100*e).toFixed(t)}%`}function Mt(e,t="USD",a=2){return new Intl.NumberFormat("en-US",{style:"currency",currency:t,minimumFractionDigits:a,maximumFractionDigits:a}).format(e)}function Ht(e,t={}){const a=new Date(e),n={year:"numeric",month:"short",day:"numeric",...t};return new Intl.DateTimeFormat("en-US",n).format(a)}function Vt(e,t={}){const a=new Date(e),n={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",...t};return new Intl.DateTimeFormat("en-US",n).format(a)}function qt(e,t=new Date){const a=new Date(e),n=Math.floor((t.getTime()-a.getTime())/1e3);if(n<60)return"just now";const o=Math.floor(n/60);if(o<60)return`${o} minute${o>1?"s":""} ago`;const l=Math.floor(o/60);if(l<24)return`${l} hour${l>1?"s":""} ago`;const r=Math.floor(l/24);if(r<30)return`${r} day${r>1?"s":""} ago`;const i=Math.floor(r/30);if(i<12)return`${i} month${i>1?"s":""} ago`;const s=Math.floor(i/12);return`${s} year${s>1?"s":""} ago`}function Ot(e){if(0===e)return"0 Bytes";const t=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/Math.pow(1024,t)).toFixed(2))} ${["Bytes","KB","MB","GB","TB"][t]}`}function Gt(e){const t=Math.floor(e/3600),a=Math.floor(e%3600/60),n=Math.floor(e%60);return t>0?`${t}:${a.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`:`${a}:${n.toString().padStart(2,"0")}`}function Yt(e){const t=e.replace(/\D/g,"");return 10===t.length?`(${t.slice(0,3)}) ${t.slice(3,6)}-${t.slice(6)}`:11===t.length&&"1"===t[0]?`+1 (${t.slice(1,4)}) ${t.slice(4,7)}-${t.slice(7)}`:e}function jt(e){return(e.replace(/\D/g,"").match(/.{1,4}/g)||[]).join(" ").trim()}function Xt(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}function Zt(e){return e.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase())}function Kt(e,t,a="..."){return e.length<=t?e:e.slice(0,t-a.length)+a}function Qt(e){return e.toLowerCase().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}function Jt(e,t){return`${Xt(e)} ${t}`}function ea(e){return e.replace(/([A-Z])/g," $1").replace(/^./,e=>e.toUpperCase()).trim()}function ta(e){return e?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)?{isValid:!0}:{isValid:!1,message:"Please enter a valid email address"}:{isValid:!1,message:"Email is required"}}function aa(e){return e?e.length<8?{isValid:!1,message:"Password must be at least 8 characters long"}:/(?=.*[a-z])/.test(e)?/(?=.*[A-Z])/.test(e)?/(?=.*\d)/.test(e)?/(?=.*[@$!%*?&])/.test(e)?{isValid:!0}:{isValid:!1,message:"Password must contain at least one special character"}:{isValid:!1,message:"Password must contain at least one number"}:{isValid:!1,message:"Password must contain at least one uppercase letter"}:{isValid:!1,message:"Password must contain at least one lowercase letter"}:{isValid:!1,message:"Password is required"}}function na(e){const t=e.replace(/\D/g,"");return e?t.length<10||t.length>15?{isValid:!1,message:"Please enter a valid phone number"}:/^[\+]?[1-9][\d]{0,15}$/.test(t)?{isValid:!0}:{isValid:!1,message:"Please enter a valid phone number"}:{isValid:!1,message:"Phone number is required"}}function oa(e){try{return new URL(e),{isValid:!0}}catch{return{isValid:!1,message:"Please enter a valid URL"}}}function la(e){const t=e.replace(/\D/g,"");if(!e)return{isValid:!1,message:"Credit card number is required"};if(t.length<13||t.length>19)return{isValid:!1,message:"Please enter a valid credit card number"};let a=0,n=!1;for(let e=t.length-1;e>=0;e--){let o=parseInt(t[e]);n&&(o*=2,o>9&&(o-=9)),a+=o,n=!n}return a%10!=0?{isValid:!1,message:"Please enter a valid credit card number"}:{isValid:!0}}function ra(e,t){if(t.required&&(!e||""===e.toString().trim()))return{isValid:!1,message:"This field is required"};if(!e||""===e.toString().trim())return{isValid:!0};const a=e.toString();if(t.minLength&&a.length<t.minLength)return{isValid:!1,message:`Must be at least ${t.minLength} characters long`};if(t.maxLength&&a.length>t.maxLength)return{isValid:!1,message:`Must be no more than ${t.maxLength} characters long`};const n=Number(e);if(!isNaN(n)){if(void 0!==t.min&&n<t.min)return{isValid:!1,message:`Must be at least ${t.min}`};if(void 0!==t.max&&n>t.max)return{isValid:!1,message:`Must be no more than ${t.max}`}}return t.pattern&&!t.pattern.test(a)?{isValid:!1,message:"Invalid format"}:t.custom?t.custom(e):{isValid:!0}}function ia(e,t){const a={};let n=!0;for(const[o,l]of Object.entries(t)){const t=ra(e[o],l);t.isValid||(a[o]=t.message||"Invalid value",n=!1)}return{isValid:n,errors:a}}const sa={email:/^[^\s@]+@[^\s@]+\.[^\s@]+$/,phone:/^[\+]?[1-9][\d]{0,15}$/,url:/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)$/,alphanumeric:/^[a-zA-Z0-9]+$/,alphabetic:/^[a-zA-Z\s]+$/,numeric:/^\d+$/,decimal:/^\d*\.?\d+$/,slug:/^[a-z0-9]+(?:-[a-z0-9]+)*$/,hexColor:/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,ipAddress:/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,uuid:/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i},ca={required:{required:!0},email:{required:!0,pattern:sa.email},password:{required:!0,minLength:8},phone:{required:!0,pattern:sa.phone},url:{required:!0,pattern:sa.url},alphanumeric:{pattern:sa.alphanumeric},numeric:{pattern:sa.numeric},decimal:{pattern:sa.decimal},slug:{pattern:sa.slug},hexColor:{pattern:sa.hexColor}};export{ve as Avatar,Ce as BackgroundGradient,xe as Badge,A as BarChart,Pe as Breadcrumb,pe as Button,fe as ButtonDanger,Oe as Card,ze as Categories,Fe as Cell,qe as CellHeader,Ae as Checkbox,Ye as Chip,Xe as ChipList,Ke as Dropdown,tt as DropdownNested,Je as DropdownNestedColumn,E as GaugeChart,ue as Icon,nt as IconButton,De as ItemRow,lt as Modal,it as Notification,ct as Pagination,L as PieChart,Be as Radio,B as Sankey,ut as Search,le as ShankeyPro,$ as ShankyFlow,ht as StatusIndicator,gt as Tab,_t as TabList,xt as Table,Pt as TextArea,Re as Toggle,Rt as addAnimationClass,de as allIcons,Bt as animateElement,Tt as animationClasses,Xt as capitalizeFirst,Zt as capitalizeWords,It as colorPalettes,ca as commonRules,Lt as createAnimation,St as createTheme,zt as createTransition,At as defaultAnimations,Nt as defaultThemes,Ut as formatCompactNumber,jt as formatCreditCard,Mt as formatCurrency,Ht as formatDate,Vt as formatDateTime,Gt as formatDuration,ea as formatFieldLabel,Ot as formatFileSize,Wt as formatNumber,Et as formatPercentage,Yt as formatPhoneNumber,qt as formatRelativeTime,Jt as formatValidationError,Ft as removeAnimationClass,$t as removeTransition,Qt as slugify,Dt as staggerAnimation,Kt as truncateText,la as validateCreditCard,ta as validateEmail,ra as validateField,ia as validateForm,aa as validatePassword,na as validatePhoneNumber,oa as validateURL,sa as validationPatterns};
|
|
33
2
|
//# sourceMappingURL=index.esm.js.map
|