@michengai/dsh-automation 0.1.46 → 0.1.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -9
- package/CHANGELOG.zh-CN.md +20 -9
- package/README.md +2 -2
- package/README.zh-CN.md +2 -2
- package/lib/client.js +45 -42
- package/lib/client.js.map +2 -2
- package/lib/types/client/host-icons.d.ts +1 -1
- package/lib/types/client/locales.d.ts +2 -0
- package/lib/types/client/native-session-menu.d.ts +9 -0
- package/package.json +39 -39
package/lib/client.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
window.__ModuleLoader__.load({ id: "@michengai/dsh-automation", factory: (require) => {
|
|
2
2
|
var module = { exports: {} }; var exports = module.exports;
|
|
3
|
-
"use strict";var WA=Object.create;var au=Object.defineProperty;var jA=Object.getOwnPropertyDescriptor;var UA=Object.getOwnPropertyNames;var KA=Object.getPrototypeOf,GA=Object.prototype.hasOwnProperty;var th=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),qA=(e,t)=>{for(var o in t)au(e,o,{get:t[o],enumerable:!0})},YS=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of UA(t))!GA.call(e,r)&&r!==o&&au(e,r,{get:()=>t[r],enumerable:!(n=jA(t,r))||n.enumerable});return e};var M=(e,t,o)=>(o=e!=null?WA(KA(e)):{},YS(t||!e||!e.__esModule?au(o,"default",{value:e,enumerable:!0}):o,e)),XA=e=>YS(au({},"__esModule",{value:!0}),e);var J0=th(Bt=>{"use strict";var Nh=Symbol.for("react.transitional.element"),Ph=Symbol.for("react.portal"),Iu=Symbol.for("react.fragment"),Nu=Symbol.for("react.strict_mode"),Pu=Symbol.for("react.profiler"),Tu=Symbol.for("react.consumer"),Mu=Symbol.for("react.context"),Ou=Symbol.for("react.forward_ref"),Au=Symbol.for("react.suspense"),ku=Symbol.for("react.suspense_list"),Lu=Symbol.for("react.memo"),Du=Symbol.for("react.lazy"),Q0=Symbol.for("react.view_transition"),$2=Symbol.for("react.client.reference");function cr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Nh:switch(e=e.type,e){case Iu:case Pu:case Nu:case Au:case ku:case Q0:return e;default:switch(e=e&&e.$$typeof,e){case Mu:case Ou:case Du:case Lu:return e;case Tu:return e;default:return t}}case Ph:return t}}}Bt.ContextConsumer=Tu;Bt.ContextProvider=Mu;Bt.Element=Nh;Bt.ForwardRef=Ou;Bt.Fragment=Iu;Bt.Lazy=Du;Bt.Memo=Lu;Bt.Portal=Ph;Bt.Profiler=Pu;Bt.StrictMode=Nu;Bt.Suspense=Au;Bt.SuspenseList=ku;Bt.isContextConsumer=function(e){return cr(e)===Tu};Bt.isContextProvider=function(e){return cr(e)===Mu};Bt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Nh};Bt.isForwardRef=function(e){return cr(e)===Ou};Bt.isFragment=function(e){return cr(e)===Iu};Bt.isLazy=function(e){return cr(e)===Du};Bt.isMemo=function(e){return cr(e)===Lu};Bt.isPortal=function(e){return cr(e)===Ph};Bt.isProfiler=function(e){return cr(e)===Pu};Bt.isStrictMode=function(e){return cr(e)===Nu};Bt.isSuspense=function(e){return cr(e)===Au};Bt.isSuspenseList=function(e){return cr(e)===ku};Bt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Iu||e===Pu||e===Nu||e===Au||e===ku||e===Q0||typeof e=="object"&&e!==null&&(e.$$typeof===Du||e.$$typeof===Lu||e.$$typeof===Mu||e.$$typeof===Tu||e.$$typeof===Ou||e.$$typeof===$2||e.getModuleId!==void 0)};Bt.typeOf=cr});var tw=th((mV,ew)=>{"use strict";ew.exports=J0()});var fw=th((DV,Bu)=>{"use strict";Bu.exports=Vh;Bu.exports.isMobile=Vh;Bu.exports.default=Vh;var W2=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,j2=/CrOS/,U2=/android|ipad|playbook|silk/i;function Vh(e){e||(e={});let t=e.ua;if(!t&&typeof navigator<"u"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let o=W2.test(t)&&!j2.test(t)||!!e.tablet&&U2.test(t);return!o&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(o=!0),o}});var L3={};qA(L3,{apply:()=>O3,inject:()=>E3,name:()=>R3});module.exports=XA(L3);var Fa=require("react");var yo=require("react");var Hs=require("react"),YA=M(require("@deepseek-ai/dsh-client-ui-primitives"),1);function lu(e,t){return function(n){return e(n)??t(n)}}function Io(e,...t){for(let o of t){let n=e[o];if(typeof n=="function")return n}return function(){return null}}var No=YA;function ZA(){return(0,Hs.createElement)("svg",{viewBox:"0 0 16 16",width:16,height:16,fill:"none","aria-hidden":!0},(0,Hs.createElement)("path",{d:"M3 3h4v3H3V3Zm6 1h4M3 10h4v3H3v-3Zm6 1.5h4M7 4.5h2M7 11.5h2",stroke:"currentColor",strokeWidth:1.4,strokeLinecap:"round"}))}function QA(){return(0,Hs.createElement)("svg",{viewBox:"0 0 16 16",width:16,height:16,fill:"none","aria-hidden":!0},(0,Hs.createElement)("path",{d:"M3 4h10M3 8h10M3 12h10",stroke:"currentColor",strokeWidth:1.4,strokeLinecap:"round"}))}function JA(){return(0,Hs.createElement)("svg",{viewBox:"0 0 16 16",width:16,height:16,fill:"none","aria-hidden":!0},(0,Hs.createElement)("path",{d:"M3 6.5h10v6H3v-6Zm1.2-2.5h7.6L13 6.5H3L4.2 4Zm2.3 5.2 1.3 1.3 2.6-2.6",stroke:"currentColor",strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"}))}var oh=Io(No,"IconEllipsisOutlineRegular","IconEllipsisOutline16"),ZS=Io(No,"IconSettingsOutlineRegular","IconSettingsOutline16"),za=Io(No,"IconArchiveOutlineRegular","IconArchiveOutline20"),QS=Io(No,"IconBranchOutlineRegular","IconBranchOutline16"),JS=Io(No,"IconEditOutlineRegular","IconEditOutline16"),eC=Io(No,"IconTrashOutlineRegular","IconTrashOutline16"),z3=Io(No,"IconCheckOutlineRegular","IconCheckOutline16"),B3=Io(No,"IconChevronDownOutlineRegular","IconChevronDownOutline14"),tC=Io(No,"IconListPenOutlineRegular","IconListPenOutline16"),oC=Io(No,"IconSearchOutlineRegular","IconSearchOutline16"),nC=Io(No,"IconCloseFillRegular","IconCloseOutline16"),rC=Io(No,"IconSlidersTwoOutlineRegular","IconSlidersOutline16"),iC=Io(No,"IconFolderCloseRegular","IconFolderOutline16"),sC=lu(Io(No,"IconWorkspaceTreeOutlineRegular"),ZA),aC=lu(Io(No,"IconFlatListOutlineRegular"),QA),H3=Io(No,"IconChevronsUpDownOutlineRegular"),lC=Io(No,"IconClockOutlineRegular","IconClockOutline16"),cC=lu(Io(No,"IconArchiveCheckOutlineRegular"),JA);function dC(){return typeof No.IconEllipsisOutlineRegular=="function"}function uC(e,t){return t(`run.trigger.${e}`)}var nn=class extends Error{constructor(o){super(o);this.key=o}},e2=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;function mC(e){return`/${e2.test(e.name)?e.name:e.id}`}function pC(e,t,o){let n=t.startsWith("/")?t:`/${t}`,r=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(new RegExp(`(^|\\s)${r}(?=\\s|$)`).test(e))return{text:e,caret:Math.min(Math.max(o,0),e.length)};let i=Math.min(Math.max(o,0),e.length),s=e.slice(0,i),a=e.slice(i),l=`${s.length>0&&!/\s$/.test(s)?" ":""}${n} `;return{text:s+l+a,caret:s.length+l.length}}function fC(e=new Date){let t=new Date(e.getTime()+36e5);t.setMinutes(0,0,0);let o=t.getTimezoneOffset()*6e4;return new Date(t.getTime()-o).toISOString().slice(0,16)}function nh(e=new Date,t=[],o,n=""){return{name:"",prompt:"",scheduleKind:"daily",onceAt:fC(e),everyMinutes:"60",maxConcurrentRuns:"1",intervalAnchor:"",time:"09:00",weekdays:[1,2,3,4,5],hourlyMinute:"00",monthDay:"1",customDays:"2",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone||"Asia/Shanghai",permission:n,workspaceId:t[0]?.id??"",modelKey:o==null?"default":`${o.provider}::${o.model}`,reasoningEffort:o?.reasoning?.defaultEffort??"none",skills:[]}}function gC(e,t,o,n=new Date,r={}){let i=Number(e.maxConcurrentRuns);if(!Number.isSafeInteger(i)||i<1)throw new nn("form.error.maxConcurrentRuns");let s=e.name.trim(),a=e.prompt.trim();if(s==="")throw new nn("form.error.name");if(a==="")throw new nn("form.error.prompt");let c=t.find(u=>u.id===e.workspaceId);if(c===void 0)throw new nn("form.error.workspace");let l;switch(e.scheduleKind){case"once":{let u=new Date(e.onceAt);if(!Number.isFinite(u.getTime())||r.allowPastOnce!==!0&&u.getTime()<=n.getTime())throw new nn("form.error.once");l={kind:"once",at:u.toISOString(),timeZone:e.timeZone};break}case"interval":{let u=Number(e.everyMinutes);if(!Number.isInteger(u)||u<1||u>43200)throw new nn("form.error.interval");l={kind:"interval",everyMinutes:u,anchor:e.intervalAnchor.trim()||n.toISOString(),timeZone:e.timeZone};break}case"daily":l={kind:"daily",time:e.time,timeZone:e.timeZone};break;case"weekly":if(e.weekdays.length===0)throw new nn("form.error.weekdays");l={kind:"weekly",time:e.time,weekdays:[...e.weekdays].sort((u,m)=>u-m),timeZone:e.timeZone};break;case"hourly":{let u=Number(e.hourlyMinute);if(!Number.isInteger(u)||u<0||u>59)throw new nn("form.error.interval");l={kind:"hourly",minute:u,timeZone:e.timeZone};break}case"monthly":{let u=Number(e.monthDay);if(!Number.isInteger(u)||u<1||u>31)throw new nn("form.error.interval");l={kind:"monthly",day:u,time:e.time,timeZone:e.timeZone};break}case"custom":{let u=Number(e.customDays);if(!Number.isInteger(u)||u<1)throw new nn("form.error.interval");l={kind:"custom",everyDays:u,time:e.time,timeZone:e.timeZone};break}}let d=o.find(u=>`${u.provider}::${u.model}`===e.modelKey);return{name:s,prompt:a,schedule:l,timeZone:e.timeZone,permission:e.permission,maxConcurrentRuns:i,workspaceId:c.id,cwd:c.path,...d===void 0?{provider:null,model:null}:{provider:d.provider,model:d.model},reasoningEffort:e.reasoningEffort==="none"?null:e.reasoningEffort}}function hC(e,t,o){let n=Date.parse(e);if(!Number.isFinite(n))return e;let r=Math.round((n-t.getTime())/6e4),i=Math.abs(r);if(i<1)return o("time.now");let s=r>0;if(i<60)return o(s?"time.inMinute":"time.minuteAgo",{count:i});let a=Math.round(i/60);if(a<24)return o(s?"time.inHour":"time.hourAgo",{count:a});let c=Math.round(a/24);return o(s?"time.inDay":"time.dayAgo",{count:c})}function uu(e,t){switch(e.kind){case"once":return t("schedule.onceAt",{time:new Date(e.at).toLocaleString()});case"interval":return t("schedule.everyMinutes",{count:e.everyMinutes});case"daily":return t("schedule.dailyAt",{time:e.time});case"weekly":{let o=e.weekdays.map(n=>t(`day.${n}`)).join("\u3001");return t("schedule.weeklyAt",{days:o,time:e.time})}case"hourly":return t("schedule.hourlyAt",{minute:String(e.minute).padStart(2,"0")});case"monthly":return t("schedule.monthlyAt",{day:e.day,time:e.time});case"custom":return t("schedule.customAt",{count:e.everyDays,time:e.time})}}function mu(e,t,o){let n=Date.parse(e)-t.getTime();if(!Number.isFinite(n)||n<=0)return o("time.now");let r=Math.max(1,Math.ceil(n/6e4));if(r<60)return o("time.withinMinute",{count:r});let i=Math.ceil(r/60);return i<24?o("time.withinHour",{count:i}):o("time.withinDay",{count:Math.ceil(i/24)})}function yC(e,t){if(e===void 0||t===void 0)return;let o=(Date.parse(t)-Date.parse(e))/1e3;if(!(!Number.isFinite(o)||o<0))return`${o.toFixed(1)}s`}function bC(e){let t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1})}var xC=["succeeded","failed","interrupted","running","queued","skipped","cancelled"];function cu(e){let t=Date.parse(e);return Number.isFinite(t)?t:0}function pu(e,t,o){let n=o==="asc"?1:-1;return e.slice().sort((r,i)=>{if(t==="planned"){let a=r.nextRunAt,c=i.nextRunAt;if(a===void 0||c===void 0)return a===void 0&&c===void 0?r.name.localeCompare(i.name)||r.id.localeCompare(i.id):a===void 0?1:-1;let l=cu(a)-cu(c);return l!==0?l*n:r.name.localeCompare(i.name)||r.id.localeCompare(i.id)}let s=cu(r.createdAt)-cu(i.createdAt);return s!==0?s*n:r.id.localeCompare(i.id)})}var fu="dsh-automation.sort-default.settings",gu="dsh-automation.sort-default.overview";function Gi(e,t){if(e!==void 0)try{let o=e.getItem(t);if(o===null)return;let n=JSON.parse(o);return n.key!=="created"&&n.key!=="planned"||n.direction!=="asc"&&n.direction!=="desc"?void 0:{key:n.key,direction:n.direction}}catch{return}}function vC(e,t,o,n){e.setItem(t,JSON.stringify({key:o,direction:n}))}function SC(e,t,o,n){let r=new Map;for(let i of e){let s=new Date(i.finishedAt??i.startedAt??i.scheduledFor);if(Number.isNaN(s.getTime()))continue;let a;if(t==="month")a=`${s.getFullYear()}-${String(s.getMonth()+1).padStart(2,"0")}`;else if(t==="week"){let l=t2(s);a=du(l)}else a=du(s);let c=r.get(a)??[];c.push(i),r.set(a,c)}return[...r.entries()].map(([i,s])=>({key:i,label:s[0]===void 0?i:t==="month"?n("history.month",{month:i.replace("-","/")}):t==="week"?n("history.week",{date:i.slice(5).replace("-","/")}):i===du(o)?n("history.today"):i===du(new Date(o.getTime()-864e5))?n("history.yesterday"):n("history.date",{date:i.slice(5).replace("-","/")}),items:s}))}function du(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}function t2(e){let t=new Date(e),o=t.getDay(),n=o===0?6:o-1;return t.setHours(0,0,0,0),t.setDate(t.getDate()-n),t}function CC(e,t=[],o,n=e.permission){let r=nh(new Date,t,o,n),i=e.schedule,s=e.provider&&e.model?`${e.provider}::${e.model}`:"default",a={...r,name:e.name,prompt:e.prompt,permission:e.permission,maxConcurrentRuns:String(e.maxConcurrentRuns??1),workspaceId:e.workspaceId??r.workspaceId,modelKey:s,reasoningEffort:e.reasoningEffort??"none",timeZone:e.timeZone||i.timeZone||r.timeZone};switch(i.kind){case"once":return{...a,scheduleKind:"once",onceAt:o2(i.at)};case"interval":return{...a,scheduleKind:"interval",everyMinutes:String(i.everyMinutes),intervalAnchor:i.anchor??""};case"hourly":return{...a,scheduleKind:"hourly",hourlyMinute:String(i.minute).padStart(2,"0")};case"daily":return{...a,scheduleKind:"daily",time:i.time};case"weekly":return{...a,scheduleKind:"weekly",time:i.time,weekdays:[...i.weekdays]};case"monthly":return{...a,scheduleKind:"monthly",time:i.time,monthDay:String(i.day)};case"custom":return{...a,scheduleKind:"custom",time:i.time,customDays:String(i.everyDays)}}}function o2(e){let t=new Date(e);if(Number.isNaN(t.getTime()))return fC();let o=t.getTimezoneOffset()*6e4;return new Date(t.getTime()-o).toISOString().slice(0,16)}var n2={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hourCycle:"h23"},wC=new Map;function r2(e){let t=wC.get(e);if(t!==void 0)return t;let o=new Intl.DateTimeFormat("en-CA",{...n2,timeZone:e});return wC.set(e,o),o}function gc(e,t){let o=new Date(e);if(Number.isNaN(o.getTime()))return e;if(t===void 0){let n=`${o.getFullYear()}-${String(o.getMonth()+1).padStart(2,"0")}-${String(o.getDate()).padStart(2,"0")}`,r=`${String(o.getHours()).padStart(2,"0")}:${String(o.getMinutes()).padStart(2,"0")}`;return`${n} ${r}`}try{let n=r2(t).formatToParts(o),r=d=>n.find(u=>u.type===d)?.value,[i,s,a,c,l]=["year","month","day","hour","minute"].map(d=>r(d));return[i,s,a,c,l].some(d=>d===void 0)?e:`${i}-${s}-${a} ${c}:${l}`}catch{return e}}var Ha="dsh-automation-session-",ih="dsh-automation.sidebar-tab";function hu(e,t){let o=new Map,n=new Map;for(let s of e)o.set(s.id,s.name),s.timeZone!==void 0&&n.set(s.id,s.timeZone);for(let s of t){let a=(s.automationName||"").trim();a!==""&&a!==s.automationId&&!o.has(s.automationId)&&o.set(s.automationId,a)}let r=[],i=new Set;for(let s of e)i.has(s.id)||(r.push(s.id),i.add(s.id));for(let s of t)s.sessionId===void 0||s.sessionId===""||i.has(s.automationId)||(r.push(s.automationId),i.add(s.automationId));return r.map(s=>{let a=o.get(s)??s;return{id:s,name:a,sessions:t.filter(c=>c.automationId===s&&c.sessionId!==void 0&&c.sessionId!=="").slice().sort((c,l)=>Date.parse(l.startedAt??l.scheduledFor)-Date.parse(c.startedAt??c.scheduledFor)).map(c=>({id:c.sessionId,running:c.status==="running"||c.status==="queued",label:gc(c.startedAt??c.scheduledFor,n.get(s))+" - "+a}))}}).filter(s=>s.sessions.length>0)}function yu(e){return e==="active"?"pause":"resume"}function TC(e){return e.map(t=>({id:t.id,name:t.name,status:t.status,...t.nextRunAt===void 0?{}:{nextRunAt:t.nextRunAt}}))}function MC(e,t,o){if(e===void 0||e==="")return!1;let n=t.has(e);return o==="only"?n:o==="show"?!0:!n}function bu(e,t){return e==null||e===""||!e.startsWith(Ha)?!1:!(t??[]).some(o=>o.sessionId===e)}function OC(e){let t=new Set;for(let o of e??[]){let n=o.sessionId;typeof n=="string"&&n!==""&&t.add(n)}return t}var i2=/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}/;function sh(e,t,o=new Set){if(e.startsWith(Ha)||o.has(e))return!0;let n=String(t?.title??t?.displayTitle??"");return i2.test(n)}function RC(e,t=new Set){if(e===void 0||e.blank===!0||e.origin==="im"||e.origin==="subagent")return!1;let o=e.id??"";return!(o.startsWith("im:")||sh(o,e,t))}function AC(e,t,o,n=new Set){let r=e.byId??{},i=new Set(t?.archivedSessionIds??[]),s=new Set,a=[];for(let l of t?.items??[]){let d=(l.sessionIds??[]).map(u=>r[u]).filter(u=>u!==void 0&&u.id!==void 0&&RC(u,n)&&!i.has(u.id));for(let u of d)u.id!==void 0&&s.add(u.id);d.length>0&&a.push({id:l.workspaceId??l.id??l.path??l.title??"workspace",label:l.title||l.path||o,sessions:d})}let c=(e.ids??[]).map(l=>r[l]).filter(l=>l!==void 0&&l.id!==void 0&&!s.has(l.id)&&RC(l,n)&&!i.has(l.id));return c.length>0&&a.push({id:"",label:o,sessions:c}),a}function kC(e){return e==="channels"||e==="schedule"||e==="tasks"?e:"tasks"}function LC(e,t){let o=e??"",n=t??"";return n!==""&&o!==n}function DC(e){let t=["tasks"];for(let o of e.extraTabIds)o===""||o==="tasks"||o==="schedule"||t.includes(o)||t.push(o);return e.channelsReady&&!t.includes("channels")&&t.push("channels"),t.push("schedule"),t}function _C(e){return e.extraTabIds.includes(e.tab)?e.tab:e.tab==="channels"&&!e.channelsReady?"tasks":e.tab}function FC(e,t){if(!(e==null||e==="")){if(t!==void 0?t.has(e):e.startsWith(Ha))return"schedule";if(e.startsWith("im:"))return"channels"}}function s2(e){return/dsh-codex-ui|michengai-codex-ui|michengai\.codexUi|codex-ui/i.test(String(e??""))}function a2(e){let t=e;return String(t?.options?.locale??t?.options?.id??t?.options?.name??t?.options?.registrant??t?.component?.displayName??t?.component?.name??t?.id??t?.name??"")}function zC(e){return(e??[]).some(t=>s2(a2(t)))}var EC=new WeakMap,$C=new WeakMap;function BC(e){return e.size===0?"":[...e].sort().join("\0")}function HC(e,t=new Set){let o=e??{ids:[],byId:{},current:null},n=BC(t);if(typeof o=="object"&&o!==null){let a=EC.get(o);if(a!==void 0&&a.key===n)return a.result}let r=(o.ids??[]).filter(a=>{let c=String(a);return!c.startsWith("im:")&&!sh(c,o.byId?.[c],t)}),s=r.length===(o.ids??[]).length?o:{...o,ids:r,byId:Object.fromEntries(r.map(a=>[a,o.byId?.[a]]).filter(a=>a[1]!==void 0))};return typeof o=="object"&&o!==null&&EC.set(o,{key:n,result:s}),s}function hc(e){let t=e?.current;if(typeof t=="string"&&t!=="")return t;let o=e?.byId??{};for(let[n,r]of Object.entries(o))if((r?.retainedBy?.mainView??0)>0){let i=r.id?.trim();return i!==void 0&&i!==""?i:n}return null}function l2(e){if(e===null||typeof e!="object")return;let t=e.openSession;if(typeof t=="function")return{openSession:o=>{t.call(e,o)}}}function c2(e,t){let o=e.reflect?.get;if(typeof o=="function")try{return o.call(e.reflect,t)}catch{}if(typeof e.get=="function")try{return e.get(t)}catch{}}function VC(e){let t=l2(c2(e,"uiWorkspace"));return{...t===void 0?{}:{uiWorkspace:t},...e.sessions===void 0?{}:{sessions:e.sessions}}}function WC(e){return typeof e.uiWorkspace?.openSession=="function"||typeof e.sessions?.open=="function"}function jC(e,t){if(typeof e.uiWorkspace?.openSession=="function"){e.uiWorkspace.openSession(t);return}if(typeof e.sessions?.open=="function"){e.sessions.open(t);return}throw new Error("no client session opener")}function IC(e,t,o){if(e==="")return!1;let n=e.startsWith(Ha)||e.startsWith("im:")?[t,o]:[o,t];for(let r of n)if(typeof r=="function")try{return r(e),!0}catch{}return!1}async function UC(e){let t=e.id.trim();return t===""?!1:(await e.adopt?.(t).catch(()=>{}),!(e.listed?.(t)===!0)&&e.refresh!==void 0&&await e.refresh().catch(()=>{}),IC(t,e.openRuntime,e.openHost)?!0:(e.refresh!==void 0&&await e.refresh().catch(()=>{}),IC(t,e.openRuntime,e.openHost)))}function d2(e,t=new Set){return e.startsWith("im:")||sh(e,void 0,t)}function KC(e,t=new Set){let o=e??{items:[],archivedSessionIds:[]},n=BC(t);if(typeof o=="object"&&o!==null){let a=$C.get(o);if(a!==void 0&&a.key===n)return a.result}let r=!1,i=(o.items??[]).map(a=>{let c=(a.sessionIds??[]).filter(l=>!d2(String(l),t));return c.length!==(a.sessionIds??[]).length?(r=!0,{...a,sessionIds:c}):a}),s=r?{...o,items:i}:o;return typeof o=="object"&&o!==null&&$C.set(o,{key:n,result:s}),s}function GC(e){return e==null||typeof e!="function"&&typeof e!="object"?{}:e}function u2(e){return GC(e).__dshAutomationWrapped===!0}function qC(e){let t=new Set,o=e;for(;o!=null&&!t.has(o);){t.add(o);let n=GC(o),r=n.__dshAutomationOriginal??n.__imConnectOriginal;if(r!==void 0&&r!==o){o=r;continue}return n.__dshAutomationWrapped===!0||n.__imConnectWrapped===!0?void 0:o}}function m2(e){let t=e,o=String(t?.options?.id??""),n=String(t?.component?.displayName??t?.component?.name??"");return o==="dsh-automation-native-switcher"||o==="dsh-automation-wrap-bump"||n==="AutomationNativeWorkspaceShell"||n==="AutomationWrapBump"||u2(t?.component)}function XC(e){for(let t of e)if(t?.component!==void 0&&!m2(t))return t}function Ba(e){return e.replace(/\\/g,"/").replace(/\/+$/,"")}function NC(e,t){let o=Ba(e),n,r=-1;for(let i of t){let s=Ba(i);s.length>r&&o!==s&&o.startsWith(`${s}/`)&&(n=i,r=s.length)}return n}function YC(e,t,o){let n=new Map;for(let h of t)for(let y of h.sessionIds??[])n.set(y,h);let r=new Map,i=[];for(let h of e){let y=h.id===void 0?void 0:n.get(h.id),x=y?.workspaceId??y?.id??y?.path;if(y===void 0||x===void 0||x===""){i.push(h);continue}let b=r.get(x)??[];b.push(h),r.set(x,b)}let s=new Map;for(let h of t)h.path!==void 0&&h.path!==""&&s.set(Ba(h.path),h);let a=new Map;for(let h of t){let y=h.workspaceId??h.id??h.path;if(y===void 0||y===""||!r.has(y))continue;a.set(y,h);let x=h.path,b=new Set;for(;x!==void 0&&x!==""&&!b.has(x);){b.add(x);let S=NC(x,[...s.keys()]);if(S===void 0)break;let v=s.get(Ba(S)),C=v?.workspaceId??v?.id??v?.path;if(v===void 0||C===void 0||C==="")break;a.set(C,v),x=v.path}}let c=[...a.values()],l=c.map(h=>h.path).filter(h=>h!==void 0&&h!==""),d=h=>h.workspaceId??h.id??h.path??"",u=new Map,m=[];for(let h of c){let y=h.path===void 0?void 0:NC(h.path,l),x=y===void 0?void 0:c.find(S=>S.path!==void 0&&Ba(S.path)===Ba(y)),b=x===void 0?void 0:d(x);if(x===void 0||b===void 0||b==="")m.push(h);else{let S=u.get(b)??[];S.push(h),u.set(b,S)}}let f=(h,y)=>(h.title||h.path||"").localeCompare(y.title||y.path||""),g=[],p=(h,y)=>{let x=d(h),b=r.get(x)??[];g.push({id:x,name:h.title||h.path||o,depth:y,keep:b.length===0,sessions:b});for(let S of(u.get(x)??[]).sort(f))p(S,y+1)};for(let h of m.sort(f))p(h,0);return i.length>0&&g.push({id:"",name:o,depth:0,sessions:i}),g}function ZC(e,t,o,n="workspace"){let r=t.trim().toLocaleLowerCase(),i=e.map(s=>{if(r===""||s.name.toLocaleLowerCase().includes(r))return s;let a=s.sessions.filter(c=>`${c.title??""} ${c.label??""}`.toLocaleLowerCase().includes(r));return{...s,sessions:a}}).filter(s=>s.sessions.length>0||r===""&&s.keep===!0||r!==""&&s.name.toLocaleLowerCase().includes(r));if(n==="list"){let s=i.flatMap(a=>[...a.sessions]);return o==="time"&&s.sort((a,c)=>rh(c)-rh(a)),s.length===0?[]:[{...i[0],name:"",sessions:s}]}return n==="workspace-tree"||o==="manual"?i:[...i].sort((s,a)=>PC(a)-PC(s))}function rh(e){let t=Date.parse(e.updatedAt??"");return Number.isFinite(t)?t:0}function PC(e){let t=0;for(let o of e.sessions){let n=rh(o);n>t&&(t=n)}return t}var Xe=require("react/jsx-runtime");function Gr({children:e,...t}){return(0,Xe.jsx)("svg",{viewBox:"0 0 24 24",width:"18",height:"18",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t,children:e})}function JC(e){return(0,Xe.jsx)(Gr,{...e,children:(0,Xe.jsx)("path",{d:"M12 5v14M5 12h14"})})}function e0(e){return(0,Xe.jsxs)(Gr,{...e,children:[(0,Xe.jsx)("path",{d:"M19 7v5h-5"}),(0,Xe.jsx)("path",{d:"M18.1 15.5A7.5 7.5 0 1 1 19 12"})]})}function t0(e){return(0,Xe.jsxs)(Gr,{...e,children:[(0,Xe.jsx)("path",{d:"M12 3.8 19 6v5.1c0 4.3-2.6 7.4-7 9.1-4.4-1.7-7-4.8-7-9.1V6l7-2.2Z"}),(0,Xe.jsx)("path",{d:"m9.4 12 1.7 1.7 3.7-4"})]})}function o0(e){return(0,Xe.jsxs)(Gr,{...e,children:[(0,Xe.jsx)("rect",{x:"4",y:"5.5",width:"16",height:"14",rx:"2"}),(0,Xe.jsx)("path",{d:"M8 3.8v3.4M16 3.8v3.4M4 9.5h16"})]})}function n0(e){return(0,Xe.jsxs)(Gr,{...e,children:[(0,Xe.jsx)("circle",{cx:"6",cy:"12",r:"1.2",fill:"currentColor"}),(0,Xe.jsx)("circle",{cx:"12",cy:"12",r:"1.2",fill:"currentColor"}),(0,Xe.jsx)("circle",{cx:"18",cy:"12",r:"1.2",fill:"currentColor"})]})}function r0(e){return(0,Xe.jsxs)(Gr,{...e,children:[(0,Xe.jsx)("circle",{cx:"12",cy:"12",r:"8.25"}),(0,Xe.jsx)("path",{d:"M12 10.4V16"}),(0,Xe.jsx)("path",{d:"M12 7.6h.01"})]})}function yc(e){return(0,Xe.jsxs)(Gr,{...e,children:[(0,Xe.jsx)("circle",{cx:"12",cy:"12",r:"8.25"}),(0,Xe.jsx)("path",{d:"M12 7.6v4.6l3 1.8"})]})}function i0(e){return(0,Xe.jsx)(Gr,{...e,children:(0,Xe.jsx)("path",{d:"M5.5 6.5h13v9.2H9.2L5.5 18.8V6.5Z"})})}function s0(e){return(0,Xe.jsx)("svg",{viewBox:"0 0 16 16",width:16,height:16,"aria-hidden":"true",focusable:"false",...e,children:(0,Xe.jsx)("path",{fill:"currentColor",d:"M8 0a8 8 0 0 0-2.53 15.59c.4.074.547-.173.547-.385 0-.19-.007-.693-.01-1.36-2.226.484-2.695-1.073-2.695-1.073-.364-.924-.89-1.17-.89-1.17-.726-.496.055-.486.055-.486.803.056 1.225.824 1.225.824.714 1.223 1.872.87 2.328.665.072-.517.28-.87.508-1.07-1.777-.202-3.645-.888-3.645-3.956 0-.874.31-1.588.823-2.148-.083-.202-.357-1.017.078-2.12 0 0 .672-.215 2.2.82A7.65 7.65 0 0 1 8 4.8c.68.003 1.365.092 2.004.27 1.527-1.035 2.197-.82 2.197-.82.437 1.103.162 1.918.08 2.12.513.56.822 1.274.822 2.148 0 3.076-1.872 3.752-3.654 3.95.288.248.544.735.544 1.482 0 1.07-.01 1.932-.01 2.195 0 .214.144.463.55.384A8.001 8.001 0 0 0 8 0Z"})})}function a0(e){return(0,Xe.jsx)(Gr,{...e,children:(0,Xe.jsx)("path",{d:"M4 7.2h6.1l1.7 1.8H20V18H4V7.2Z"})})}function l0(e){return(0,Xe.jsx)(Gr,{...e,children:(0,Xe.jsx)("path",{d:"M12 3.6 13.3 8.7 18.4 10 13.3 11.3 12 16.4 10.7 11.3 5.6 10 10.7 8.7 12 3.6Z"})})}function ah({children:e,width:t=16,height:o=16}){return(0,Xe.jsx)("svg",{viewBox:"0 0 16 16",width:t,height:o,fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:e})}function c0(e){return(0,Xe.jsx)(ah,{...e,children:(0,Xe.jsx)("path",{fill:"currentColor",d:"M2 6.2h12v7.2H2V6.2Zm1.2 1.2v4.8h9.6V7.4H3.2ZM6.1 9.2h3.8v1.2H6.1V9.2ZM3.4 2.2h9.2L14 4.6H2L3.4 2.2Z"})})}function d0(e){return(0,Xe.jsx)(ah,{...e,children:(0,Xe.jsx)("path",{fill:"currentColor",transform:"translate(1.5 2.429)",d:"M5.05582 0.518756L4.50669 0.86654L5.05582 0.518756ZM13 9.4837L13.65 9.4837L13.65 3.53962L13 3.53962L12.35 3.53962L12.35 9.4837L13 9.4837ZM11.3264 1.86603L11.3264 1.21603L6.52313 1.21603L6.52313 1.86603L6.52313 2.51603L11.3264 2.51603L11.3264 1.86603ZM5.58054 1.34727L6.12968 0.999489L5.60495 0.170972L5.05582 0.518756L4.50669 0.86654L5.03141 1.69506L5.58054 1.34727ZM4.11323 1.23058e-13L4.11323 -0.65L1.67359 -0.65L1.67359 5.00699e-14L1.67359 0.65L4.11323 0.65L4.11323 1.23058e-13ZM0 1.67359L-0.65 1.67359L-0.65 9.4837L0 9.4837L0.65 9.4837L0.65 1.67359L0 1.67359ZM11.3264 11.1573L11.3264 10.5073L1.67359 10.5073L1.67359 11.1573L1.67359 11.8073L11.3264 11.8073L11.3264 11.1573ZM0 9.4837L-0.65 9.4837C-0.65 10.767 0.390308 11.8073 1.67359 11.8073L1.67359 11.1573L1.67359 10.5073C1.10828 10.5073 0.65 10.049 0.65 9.4837L0 9.4837ZM1.67359 5.00699e-14L1.67359 -0.65C0.390307 -0.65 -0.65 0.390309 -0.65 1.67359L0 1.67359L0.65 1.67359C0.65 1.10828 1.10828 0.65 1.67359 0.65L1.67359 5.00699e-14ZM5.05582 0.518756L5.60495 0.170972C5.28121 -0.340193 4.71829 -0.65 4.11323 -0.65L4.11323 1.23058e-13L4.11323 0.65C4.27282 0.65 4.4213 0.731715 4.50669 0.86654L5.05582 0.518756ZM6.52313 1.86603L6.52313 1.21603C6.36354 1.21603 6.21507 1.13431 6.12968 0.999489L5.58054 1.34727L5.03141 1.69506C5.35515 2.20622 5.91808 2.51603 6.52313 2.51603L6.52313 1.86603ZM13 3.53962L13.65 3.53962C13.65 2.25634 12.6097 1.21603 11.3264 1.21603L11.3264 1.86603L11.3264 2.51603C11.8917 2.51603 12.35 2.97431 12.35 3.53962L13 3.53962ZM13 9.4837L12.35 9.4837C12.35 10.049 11.8917 10.5073 11.3264 10.5073L11.3264 11.1573L11.3264 11.8073C12.6097 11.8073 13.65 10.767 13.65 9.4837L13 9.4837Z"})})}function u0(e){return(0,Xe.jsxs)(ah,{...e,children:[(0,Xe.jsx)("path",{fill:"currentColor",d:"M5.19629 1.57104C5.81144 1.5711 6.38623 1.8786 6.72754 2.39038L7.19922 3.09839C7.28454 3.22635 7.42824 3.30344 7.58203 3.30347H12.1699C13.5039 3.30348 14.5859 4.38548 14.5859 5.71948V6.62671C15.2694 7.02689 15.6605 7.85012 15.4385 8.68726L14.3848 12.658C14.1037 13.7164 13.1449 14.4527 12.0498 14.4529H2.91699C1.51651 14.4529 0.451662 13.2814 0.501954 11.9519V3.98706C0.501954 2.65305 1.58396 1.57104 2.91797 1.57104H5.19629ZM3.7793 7.75562C3.30994 7.75562 2.89883 8.07153 2.77832 8.52515L1.91602 11.7722C1.74167 12.4291 2.23734 13.073 2.91699 13.073H12.0498C12.5191 13.0728 12.9304 12.757 13.0508 12.3035L14.1045 8.33374C14.1819 8.04202 13.9619 7.756 13.6602 7.75562H3.7793ZM2.91797 2.9519C2.34625 2.9519 1.88281 3.41534 1.88281 3.98706V7.2937C2.33068 6.7269 3.02249 6.37476 3.7793 6.37476H13.2051V5.71948C13.2051 5.14777 12.7416 4.68434 12.1699 4.68433H7.58203C6.96675 4.6843 6.39209 4.37595 6.05078 3.86401L5.5791 3.15601C5.49379 3.02821 5.34995 2.95196 5.19629 2.9519H2.91797Z"}),(0,Xe.jsx)("path",{fill:"currentColor",opacity:"0.2",d:"M13.6602 7.75525C13.9618 7.7556 14.1815 8.04179 14.1045 8.33337L13.0508 12.3031C12.9304 12.7567 12.5191 13.0725 12.0498 13.0726H2.91701C2.23744 13.0725 1.7417 12.4287 1.91603 11.7719L2.77834 8.52478C2.89898 8.07146 3.31018 7.75532 3.77931 7.75525H13.6602ZM5.1963 2.95154C5.34985 2.95159 5.49377 3.02803 5.57912 3.15564L6.0508 3.86365C6.39205 4.37553 6.96685 4.68385 7.58205 4.68396H12.1699C12.7416 4.68396 13.2049 5.14754 13.2051 5.71912V6.37439H3.77931C3.02267 6.37444 2.33067 6.72671 1.88283 7.29333V3.98669C1.88299 3.4152 2.34649 2.95168 2.91798 2.95154H5.1963Z"})]})}function m0(e){return(0,Xe.jsx)("svg",{viewBox:"0 0 14 14",width:e.width||14,height:e.height||14,fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",...e,children:(0,Xe.jsx)("path",{fill:"currentColor",d:"M4.25 2.828v8.344c0 .49.592.735.939.389l4.172-4.172a.55.55 0 0 0 0-.778L5.189 2.439c-.347-.347-.939-.101-.939.389Z"})})}var QC=[[0,0],[4,0],[8,0],[8,4],[8,8],[4,8],[0,8],[0,4]];function xu(){return(0,Xe.jsx)("svg",{className:"dsh-st-run-dot",width:10,height:10,viewBox:"0 0 10 10",shapeRendering:"crispEdges","aria-hidden":"true",children:QC.map(([e,t],o)=>(0,Xe.jsx)("rect",{className:"dsh-st-run-dot-cell",x:e,y:t,width:"2",height:"2",style:{animationDelay:`${(o-QC.length)*125}ms`}},`${e}-${t}`))})}var p0={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"};var _o=Math.round;function lh(e,t){let o=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=o.map(r=>parseFloat(r));for(let r=0;r<3;r+=1)n[r]=t(n[r]||0,o[r]||"",r);return o[3]?n[3]=o[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}var f0=(e,t,o)=>o===0?e:e/100;function bc(e,t){let o=t||255;return e>o?o:e<0?0:e}var pt=class e{isValid=!0;r=0;g=0;b=0;a=1;_h;_hsl_s;_hsv_s;_l;_v;_max;_min;_brightness;constructor(t){function o(n){return n[0]in t&&n[1]in t&&n[2]in t}if(t)if(typeof t=="string"){let r=function(i){return n.startsWith(i)},n=t.trim();if(/^#?[A-F\d]{3,8}$/i.test(n))this.fromHexString(n);else if(r("rgb"))this.fromRgbString(n);else if(r("hsl"))this.fromHslString(n);else if(r("hsv")||r("hsb"))this.fromHsvString(n);else{let i=p0[n.toLowerCase()];i&&this.fromHexString(parseInt(i,36).toString(16).padStart(6,"0"))}}else if(t instanceof e)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._hsl_s=t._hsl_s,this._hsv_s=t._hsv_s,this._l=t._l,this._v=t._v;else if(o("rgb"))this.r=bc(t.r),this.g=bc(t.g),this.b=bc(t.b),this.a=typeof t.a=="number"?bc(t.a,1):1;else if(o("hsl"))this.fromHsl(t);else if(o("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){let o=this.toHsv();return o.h=t,this._c(o)}getLuminance(){function t(i){let s=i/255;return s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4)}let o=t(this.r),n=t(this.g),r=t(this.b);return .2126*o+.7152*n+.0722*r}getHue(){if(typeof this._h>"u"){let t=this.getMax()-this.getMin();t===0?this._h=0:this._h=_o(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){return this.getHSVSaturation()}getHSVSaturation(){if(typeof this._hsv_s>"u"){let t=this.getMax()-this.getMin();t===0?this._hsv_s=0:this._hsv_s=t/this.getMax()}return this._hsv_s}getHSLSaturation(){if(typeof this._hsl_s>"u"){let t=this.getMax()-this.getMin();if(t===0)this._hsl_s=0;else{let o=this.getLightness();this._hsl_s=t/255/(1-Math.abs(2*o-1))}}return this._hsl_s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){let o=this.getHue(),n=this.getSaturation(),r=this.getLightness()-t/100;return r<0&&(r=0),this._c({h:o,s:n,l:r,a:this.a})}lighten(t=10){let o=this.getHue(),n=this.getSaturation(),r=this.getLightness()+t/100;return r>1&&(r=1),this._c({h:o,s:n,l:r,a:this.a})}mix(t,o=50){let n=this._c(t),r=o/100,i=a=>(n[a]-this[a])*r+this[a],s={r:_o(i("r")),g:_o(i("g")),b:_o(i("b")),a:_o(i("a")*100)/100};return this._c(s)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){let o=this._c(t),n=this.a+o.a*(1-this.a),r=i=>_o((this[i]*this.a+o[i]*o.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#",o=(this.r||0).toString(16);t+=o.length===2?o:"0"+o;let n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;let r=(this.b||0).toString(16);if(t+=r.length===2?r:"0"+r,typeof this.a=="number"&&this.a>=0&&this.a<1){let i=_o(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){let t=this.getHue(),o=_o(this.getHSLSaturation()*100),n=_o(this.getLightness()*100);return this.a!==1?`hsla(${t},${o}%,${n}%,${this.a})`:`hsl(${t},${o}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,o,n){let r=this.clone();return r[t]=bc(o,n),r}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){let o=t.replace("#","");function n(r,i){return parseInt(o[r]+o[i||r],16)}o.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=o[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=o[6]?n(6,7)/255:1)}fromHsl({h:t,s:o,l:n,a:r}){let i=(t%360+360)%360;if(this._h=i,this._hsl_s=o,this._l=n,this.a=typeof r=="number"?r:1,o<=0){let f=_o(n*255);this.r=f,this.g=f,this.b=f;return}let s=0,a=0,c=0,l=i/60,d=(1-Math.abs(2*n-1))*o,u=d*(1-Math.abs(l%2-1));l>=0&&l<1?(s=d,a=u):l>=1&&l<2?(s=u,a=d):l>=2&&l<3?(a=d,c=u):l>=3&&l<4?(a=u,c=d):l>=4&&l<5?(s=u,c=d):l>=5&&l<6&&(s=d,c=u);let m=n-d/2;this.r=_o((s+m)*255),this.g=_o((a+m)*255),this.b=_o((c+m)*255)}fromHsv({h:t,s:o,v:n,a:r}){let i=(t%360+360)%360;this._h=i,this._hsv_s=o,this._v=n,this.a=typeof r=="number"?r:1;let s=_o(n*255);if(this.r=s,this.g=s,this.b=s,o<=0)return;let a=i/60,c=Math.floor(a),l=a-c,d=_o(n*(1-o)*255),u=_o(n*(1-o*l)*255),m=_o(n*(1-o*(1-l))*255);switch(c){case 0:this.g=m,this.b=d;break;case 1:this.r=u,this.b=d;break;case 2:this.r=d,this.b=m;break;case 3:this.r=d,this.g=u;break;case 4:this.r=m,this.g=d;break;case 5:default:this.g=d,this.b=u;break}}fromHsvString(t){let o=lh(t,f0);this.fromHsv({h:o[0],s:o[1],v:o[2],a:o[3]})}fromHslString(t){let o=lh(t,f0);this.fromHsl({h:o[0],s:o[1],l:o[2],a:o[3]})}fromRgbString(t){let o=lh(t,(n,r)=>r.includes("%")?_o(n/100*255):n);this.r=o[0],this.g=o[1],this.b=o[2],this.a=o[3]}};var vu=2,g0=.16,p2=.05,f2=.05,g2=.15,x0=5,v0=4,h2=[{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 h0(e,t,o){let n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=o?Math.round(e.h)-vu*t:Math.round(e.h)+vu*t:n=o?Math.round(e.h)+vu*t:Math.round(e.h)-vu*t,n<0?n+=360:n>=360&&(n-=360),n}function y0(e,t,o){if(e.h===0&&e.s===0)return e.s;let n;return o?n=e.s-g0*t:t===v0?n=e.s+g0:n=e.s+p2*t,n>1&&(n=1),o&&t===x0&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function b0(e,t,o){let n;return o?n=e.v+f2*t:n=e.v-g2*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function qr(e,t={}){let o=[],n=new pt(e),r=n.toHsv();for(let i=x0;i>0;i-=1){let s=new pt({h:h0(r,i,!0),s:y0(r,i,!0),v:b0(r,i,!0)});o.push(s)}o.push(n);for(let i=1;i<=v0;i+=1){let s=new pt({h:h0(r,i),s:y0(r,i),v:b0(r,i)});o.push(s)}return t.theme==="dark"?h2.map(({index:i,amount:s})=>new pt(t.backgroundColor||"#141414").mix(o[i],s).toHexString()):o.map(i=>i.toHexString())}var vi={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"},ch=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];ch.primary=ch[5];var dh=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];dh.primary=dh[5];var uh=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];uh.primary=uh[5];var mh=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];mh.primary=mh[5];var ph=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];ph.primary=ph[5];var fh=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];fh.primary=fh[5];var gh=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];gh.primary=gh[5];var hh=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];hh.primary=hh[5];var yh=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];yh.primary=yh[5];var bh=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];bh.primary=bh[5];var xh=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];xh.primary=xh[5];var vh=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];vh.primary=vh[5];var Sh=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Sh.primary=Sh[5];var Su={red:ch,volcano:dh,orange:uh,gold:mh,yellow:ph,lime:fh,green:gh,cyan:hh,blue:yh,geekblue:bh,purple:xh,magenta:vh,grey:Sh},S0=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];S0.primary=S0[5];var C0=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];C0.primary=C0[5];var w0=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];w0.primary=w0[5];var R0=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];R0.primary=R0[5];var E0=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];E0.primary=E0[5];var $0=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];$0.primary=$0[5];var I0=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];I0.primary=I0[5];var N0=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];N0.primary=N0[5];var P0=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];P0.primary=P0[5];var T0=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];T0.primary=T0[5];var M0=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];M0.primary=M0[5];var O0=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];O0.primary=O0[5];var A0=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];A0.primary=A0[5];var jo=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var xc={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"},y2={...xc,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
3
|
+
"use strict";var KA=Object.create;var au=Object.defineProperty;var GA=Object.getOwnPropertyDescriptor;var qA=Object.getOwnPropertyNames;var XA=Object.getPrototypeOf,YA=Object.prototype.hasOwnProperty;var th=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ZA=(e,t)=>{for(var o in t)au(e,o,{get:t[o],enumerable:!0})},ZS=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of qA(t))!YA.call(e,r)&&r!==o&&au(e,r,{get:()=>t[r],enumerable:!(n=GA(t,r))||n.enumerable});return e};var M=(e,t,o)=>(o=e!=null?KA(XA(e)):{},ZS(t||!e||!e.__esModule?au(o,"default",{value:e,enumerable:!0}):o,e)),QA=e=>ZS(au({},"__esModule",{value:!0}),e);var ew=th(Bt=>{"use strict";var Nh=Symbol.for("react.transitional.element"),Ph=Symbol.for("react.portal"),Iu=Symbol.for("react.fragment"),Nu=Symbol.for("react.strict_mode"),Pu=Symbol.for("react.profiler"),Tu=Symbol.for("react.consumer"),Mu=Symbol.for("react.context"),Ou=Symbol.for("react.forward_ref"),Au=Symbol.for("react.suspense"),ku=Symbol.for("react.suspense_list"),Lu=Symbol.for("react.memo"),Du=Symbol.for("react.lazy"),J0=Symbol.for("react.view_transition"),P2=Symbol.for("react.client.reference");function cr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Nh:switch(e=e.type,e){case Iu:case Pu:case Nu:case Au:case ku:case J0:return e;default:switch(e=e&&e.$$typeof,e){case Mu:case Ou:case Du:case Lu:return e;case Tu:return e;default:return t}}case Ph:return t}}}Bt.ContextConsumer=Tu;Bt.ContextProvider=Mu;Bt.Element=Nh;Bt.ForwardRef=Ou;Bt.Fragment=Iu;Bt.Lazy=Du;Bt.Memo=Lu;Bt.Portal=Ph;Bt.Profiler=Pu;Bt.StrictMode=Nu;Bt.Suspense=Au;Bt.SuspenseList=ku;Bt.isContextConsumer=function(e){return cr(e)===Tu};Bt.isContextProvider=function(e){return cr(e)===Mu};Bt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Nh};Bt.isForwardRef=function(e){return cr(e)===Ou};Bt.isFragment=function(e){return cr(e)===Iu};Bt.isLazy=function(e){return cr(e)===Du};Bt.isMemo=function(e){return cr(e)===Lu};Bt.isPortal=function(e){return cr(e)===Ph};Bt.isProfiler=function(e){return cr(e)===Pu};Bt.isStrictMode=function(e){return cr(e)===Nu};Bt.isSuspense=function(e){return cr(e)===Au};Bt.isSuspenseList=function(e){return cr(e)===ku};Bt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Iu||e===Pu||e===Nu||e===Au||e===ku||e===J0||typeof e=="object"&&e!==null&&(e.$$typeof===Du||e.$$typeof===Lu||e.$$typeof===Mu||e.$$typeof===Tu||e.$$typeof===Ou||e.$$typeof===P2||e.getModuleId!==void 0)};Bt.typeOf=cr});var ow=th((hV,tw)=>{"use strict";tw.exports=ew()});var gw=th((BV,Bu)=>{"use strict";Bu.exports=Vh;Bu.exports.isMobile=Vh;Bu.exports.default=Vh;var K2=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,G2=/CrOS/,q2=/android|ipad|playbook|silk/i;function Vh(e){e||(e={});let t=e.ua;if(!t&&typeof navigator<"u"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let o=K2.test(t)&&!G2.test(t)||!!e.tablet&&q2.test(t);return!o&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(o=!0),o}});var z3={};ZA(z3,{apply:()=>D3,inject:()=>P3,name:()=>N3});module.exports=QA(z3);var Fa=require("react");var yo=require("react");var Hs=require("react"),JA=M(require("@deepseek-ai/dsh-client-ui-primitives"),1);function lu(e,t){return function(n){return e(n)??t(n)}}function No(e,...t){for(let o of t){let n=e[o];if(typeof n=="function")return n}return function(){return null}}var Po=JA;function e2(){return(0,Hs.createElement)("svg",{viewBox:"0 0 16 16",width:16,height:16,fill:"none","aria-hidden":!0},(0,Hs.createElement)("path",{d:"M3 3h4v3H3V3Zm6 1h4M3 10h4v3H3v-3Zm6 1.5h4M7 4.5h2M7 11.5h2",stroke:"currentColor",strokeWidth:1.4,strokeLinecap:"round"}))}function t2(){return(0,Hs.createElement)("svg",{viewBox:"0 0 16 16",width:16,height:16,fill:"none","aria-hidden":!0},(0,Hs.createElement)("path",{d:"M3 4h10M3 8h10M3 12h10",stroke:"currentColor",strokeWidth:1.4,strokeLinecap:"round"}))}function o2(){return(0,Hs.createElement)("svg",{viewBox:"0 0 16 16",width:16,height:16,fill:"none","aria-hidden":!0},(0,Hs.createElement)("path",{d:"M3 6.5h10v6H3v-6Zm1.2-2.5h7.6L13 6.5H3L4.2 4Zm2.3 5.2 1.3 1.3 2.6-2.6",stroke:"currentColor",strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"}))}var oh=No(Po,"IconEllipsisOutlineRegular","IconEllipsisOutline16"),QS=No(Po,"IconSettingsOutlineRegular","IconSettingsOutline16"),za=No(Po,"IconArchiveOutlineRegular","IconArchiveOutline20"),JS=No(Po,"IconBranchOutlineRegular","IconBranchOutline16"),eC=No(Po,"IconEditOutlineRegular","IconEditOutline16"),tC=No(Po,"IconTrashOutlineRegular","IconTrashOutline16"),W3=No(Po,"IconCheckOutlineRegular","IconCheckOutline16"),j3=No(Po,"IconChevronDownOutlineRegular","IconChevronDownOutline14"),oC=No(Po,"IconListPenOutlineRegular","IconListPenOutline16"),nC=No(Po,"IconSearchOutlineRegular","IconSearchOutline16"),rC=No(Po,"IconCloseFillRegular","IconCloseOutline16"),iC=No(Po,"IconSlidersTwoOutlineRegular","IconSlidersOutline16"),sC=No(Po,"IconFolderCloseRegular","IconFolderOutline16"),aC=lu(No(Po,"IconWorkspaceTreeOutlineRegular"),e2),lC=lu(No(Po,"IconFlatListOutlineRegular"),t2),U3=No(Po,"IconChevronsUpDownOutlineRegular"),cC=No(Po,"IconClockOutlineRegular","IconClockOutline16"),dC=lu(No(Po,"IconArchiveCheckOutlineRegular"),o2);function uC(){return typeof Po.IconEllipsisOutlineRegular=="function"}function mC(e,t){return t(`run.trigger.${e}`)}var nn=class extends Error{constructor(o){super(o);this.key=o}},n2=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;function pC(e){return`/${n2.test(e.name)?e.name:e.id}`}function fC(e,t,o){let n=t.startsWith("/")?t:`/${t}`,r=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(new RegExp(`(^|\\s)${r}(?=\\s|$)`).test(e))return{text:e,caret:Math.min(Math.max(o,0),e.length)};let i=Math.min(Math.max(o,0),e.length),s=e.slice(0,i),a=e.slice(i),l=`${s.length>0&&!/\s$/.test(s)?" ":""}${n} `;return{text:s+l+a,caret:s.length+l.length}}function gC(e=new Date){let t=new Date(e.getTime()+36e5);t.setMinutes(0,0,0);let o=t.getTimezoneOffset()*6e4;return new Date(t.getTime()-o).toISOString().slice(0,16)}function nh(e=new Date,t=[],o,n=""){return{name:"",prompt:"",scheduleKind:"daily",onceAt:gC(e),everyMinutes:"60",maxConcurrentRuns:"1",intervalAnchor:"",time:"09:00",weekdays:[1,2,3,4,5],hourlyMinute:"00",monthDay:"1",customDays:"2",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone||"Asia/Shanghai",permission:n,workspaceId:t[0]?.id??"",modelKey:o==null?"default":`${o.provider}::${o.model}`,reasoningEffort:o?.reasoning?.defaultEffort??"none",skills:[]}}function hC(e,t,o,n=new Date,r={}){let i=Number(e.maxConcurrentRuns);if(!Number.isSafeInteger(i)||i<1)throw new nn("form.error.maxConcurrentRuns");let s=e.name.trim(),a=e.prompt.trim();if(s==="")throw new nn("form.error.name");if(a==="")throw new nn("form.error.prompt");let c=t.find(u=>u.id===e.workspaceId);if(c===void 0)throw new nn("form.error.workspace");let l;switch(e.scheduleKind){case"once":{let u=new Date(e.onceAt);if(!Number.isFinite(u.getTime())||r.allowPastOnce!==!0&&u.getTime()<=n.getTime())throw new nn("form.error.once");l={kind:"once",at:u.toISOString(),timeZone:e.timeZone};break}case"interval":{let u=Number(e.everyMinutes);if(!Number.isInteger(u)||u<1||u>43200)throw new nn("form.error.interval");l={kind:"interval",everyMinutes:u,anchor:e.intervalAnchor.trim()||n.toISOString(),timeZone:e.timeZone};break}case"daily":l={kind:"daily",time:e.time,timeZone:e.timeZone};break;case"weekly":if(e.weekdays.length===0)throw new nn("form.error.weekdays");l={kind:"weekly",time:e.time,weekdays:[...e.weekdays].sort((u,m)=>u-m),timeZone:e.timeZone};break;case"hourly":{let u=Number(e.hourlyMinute);if(!Number.isInteger(u)||u<0||u>59)throw new nn("form.error.interval");l={kind:"hourly",minute:u,timeZone:e.timeZone};break}case"monthly":{let u=Number(e.monthDay);if(!Number.isInteger(u)||u<1||u>31)throw new nn("form.error.interval");l={kind:"monthly",day:u,time:e.time,timeZone:e.timeZone};break}case"custom":{let u=Number(e.customDays);if(!Number.isInteger(u)||u<1)throw new nn("form.error.interval");l={kind:"custom",everyDays:u,time:e.time,timeZone:e.timeZone};break}}let d=o.find(u=>`${u.provider}::${u.model}`===e.modelKey);return{name:s,prompt:a,schedule:l,timeZone:e.timeZone,permission:e.permission,maxConcurrentRuns:i,workspaceId:c.id,cwd:c.path,...d===void 0?{provider:null,model:null}:{provider:d.provider,model:d.model},reasoningEffort:e.reasoningEffort==="none"?null:e.reasoningEffort}}function yC(e,t,o){let n=Date.parse(e);if(!Number.isFinite(n))return e;let r=Math.round((n-t.getTime())/6e4),i=Math.abs(r);if(i<1)return o("time.now");let s=r>0;if(i<60)return o(s?"time.inMinute":"time.minuteAgo",{count:i});let a=Math.round(i/60);if(a<24)return o(s?"time.inHour":"time.hourAgo",{count:a});let c=Math.round(a/24);return o(s?"time.inDay":"time.dayAgo",{count:c})}function uu(e,t){switch(e.kind){case"once":return t("schedule.onceAt",{time:new Date(e.at).toLocaleString()});case"interval":return t("schedule.everyMinutes",{count:e.everyMinutes});case"daily":return t("schedule.dailyAt",{time:e.time});case"weekly":{let o=e.weekdays.map(n=>t(`day.${n}`)).join("\u3001");return t("schedule.weeklyAt",{days:o,time:e.time})}case"hourly":return t("schedule.hourlyAt",{minute:String(e.minute).padStart(2,"0")});case"monthly":return t("schedule.monthlyAt",{day:e.day,time:e.time});case"custom":return t("schedule.customAt",{count:e.everyDays,time:e.time})}}function mu(e,t,o){let n=Date.parse(e)-t.getTime();if(!Number.isFinite(n)||n<=0)return o("time.now");let r=Math.max(1,Math.ceil(n/6e4));if(r<60)return o("time.withinMinute",{count:r});let i=Math.ceil(r/60);return i<24?o("time.withinHour",{count:i}):o("time.withinDay",{count:Math.ceil(i/24)})}function bC(e,t){if(e===void 0||t===void 0)return;let o=(Date.parse(t)-Date.parse(e))/1e3;if(!(!Number.isFinite(o)||o<0))return`${o.toFixed(1)}s`}function xC(e){let t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1})}var vC=["succeeded","failed","interrupted","running","queued","skipped","cancelled"];function cu(e){let t=Date.parse(e);return Number.isFinite(t)?t:0}function pu(e,t,o){let n=o==="asc"?1:-1;return e.slice().sort((r,i)=>{if(t==="planned"){let a=r.nextRunAt,c=i.nextRunAt;if(a===void 0||c===void 0)return a===void 0&&c===void 0?r.name.localeCompare(i.name)||r.id.localeCompare(i.id):a===void 0?1:-1;let l=cu(a)-cu(c);return l!==0?l*n:r.name.localeCompare(i.name)||r.id.localeCompare(i.id)}let s=cu(r.createdAt)-cu(i.createdAt);return s!==0?s*n:r.id.localeCompare(i.id)})}var fu="dsh-automation.sort-default.settings",gu="dsh-automation.sort-default.overview";function Gi(e,t){if(e!==void 0)try{let o=e.getItem(t);if(o===null)return;let n=JSON.parse(o);return n.key!=="created"&&n.key!=="planned"||n.direction!=="asc"&&n.direction!=="desc"?void 0:{key:n.key,direction:n.direction}}catch{return}}function SC(e,t,o,n){e.setItem(t,JSON.stringify({key:o,direction:n}))}function CC(e,t,o,n){let r=new Map;for(let i of e){let s=new Date(i.finishedAt??i.startedAt??i.scheduledFor);if(Number.isNaN(s.getTime()))continue;let a;if(t==="month")a=`${s.getFullYear()}-${String(s.getMonth()+1).padStart(2,"0")}`;else if(t==="week"){let l=r2(s);a=du(l)}else a=du(s);let c=r.get(a)??[];c.push(i),r.set(a,c)}return[...r.entries()].map(([i,s])=>({key:i,label:s[0]===void 0?i:t==="month"?n("history.month",{month:i.replace("-","/")}):t==="week"?n("history.week",{date:i.slice(5).replace("-","/")}):i===du(o)?n("history.today"):i===du(new Date(o.getTime()-864e5))?n("history.yesterday"):n("history.date",{date:i.slice(5).replace("-","/")}),items:s}))}function du(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}function r2(e){let t=new Date(e),o=t.getDay(),n=o===0?6:o-1;return t.setHours(0,0,0,0),t.setDate(t.getDate()-n),t}function wC(e,t=[],o,n=e.permission){let r=nh(new Date,t,o,n),i=e.schedule,s=e.provider&&e.model?`${e.provider}::${e.model}`:"default",a={...r,name:e.name,prompt:e.prompt,permission:e.permission,maxConcurrentRuns:String(e.maxConcurrentRuns??1),workspaceId:e.workspaceId??r.workspaceId,modelKey:s,reasoningEffort:e.reasoningEffort??"none",timeZone:e.timeZone||i.timeZone||r.timeZone};switch(i.kind){case"once":return{...a,scheduleKind:"once",onceAt:i2(i.at)};case"interval":return{...a,scheduleKind:"interval",everyMinutes:String(i.everyMinutes),intervalAnchor:i.anchor??""};case"hourly":return{...a,scheduleKind:"hourly",hourlyMinute:String(i.minute).padStart(2,"0")};case"daily":return{...a,scheduleKind:"daily",time:i.time};case"weekly":return{...a,scheduleKind:"weekly",time:i.time,weekdays:[...i.weekdays]};case"monthly":return{...a,scheduleKind:"monthly",time:i.time,monthDay:String(i.day)};case"custom":return{...a,scheduleKind:"custom",time:i.time,customDays:String(i.everyDays)}}}function i2(e){let t=new Date(e);if(Number.isNaN(t.getTime()))return gC();let o=t.getTimezoneOffset()*6e4;return new Date(t.getTime()-o).toISOString().slice(0,16)}var s2={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hourCycle:"h23"},RC=new Map;function a2(e){let t=RC.get(e);if(t!==void 0)return t;let o=new Intl.DateTimeFormat("en-CA",{...s2,timeZone:e});return RC.set(e,o),o}function gc(e,t){let o=new Date(e);if(Number.isNaN(o.getTime()))return e;if(t===void 0){let n=`${o.getFullYear()}-${String(o.getMonth()+1).padStart(2,"0")}-${String(o.getDate()).padStart(2,"0")}`,r=`${String(o.getHours()).padStart(2,"0")}:${String(o.getMinutes()).padStart(2,"0")}`;return`${n} ${r}`}try{let n=a2(t).formatToParts(o),r=d=>n.find(u=>u.type===d)?.value,[i,s,a,c,l]=["year","month","day","hour","minute"].map(d=>r(d));return[i,s,a,c,l].some(d=>d===void 0)?e:`${i}-${s}-${a} ${c}:${l}`}catch{return e}}var Ha="dsh-automation-session-",ih="dsh-automation.sidebar-tab";function hu(e,t){let o=new Map,n=new Map;for(let s of e)o.set(s.id,s.name),s.timeZone!==void 0&&n.set(s.id,s.timeZone);for(let s of t){let a=(s.automationName||"").trim();a!==""&&a!==s.automationId&&!o.has(s.automationId)&&o.set(s.automationId,a)}let r=[],i=new Set;for(let s of e)i.has(s.id)||(r.push(s.id),i.add(s.id));for(let s of t)s.sessionId===void 0||s.sessionId===""||i.has(s.automationId)||(r.push(s.automationId),i.add(s.automationId));return r.map(s=>{let a=o.get(s)??s;return{id:s,name:a,sessions:t.filter(c=>c.automationId===s&&c.sessionId!==void 0&&c.sessionId!=="").slice().sort((c,l)=>Date.parse(l.startedAt??l.scheduledFor)-Date.parse(c.startedAt??c.scheduledFor)).map(c=>({id:c.sessionId,running:c.status==="running"||c.status==="queued",label:gc(c.startedAt??c.scheduledFor,n.get(s))+" - "+a}))}}).filter(s=>s.sessions.length>0)}function yu(e){return e==="active"?"pause":"resume"}function MC(e){return e.map(t=>({id:t.id,name:t.name,status:t.status,...t.nextRunAt===void 0?{}:{nextRunAt:t.nextRunAt}}))}function OC(e,t,o){if(e===void 0||e==="")return!1;let n=t.has(e);return o==="only"?n:o==="show"?!0:!n}function bu(e,t){return e==null||e===""||!e.startsWith(Ha)?!1:!(t??[]).some(o=>o.sessionId===e)}function AC(e){let t=new Set;for(let o of e??[]){let n=o.sessionId;typeof n=="string"&&n!==""&&t.add(n)}return t}var l2=/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}/;function sh(e,t,o=new Set){if(e.startsWith(Ha)||o.has(e))return!0;let n=String(t?.title??t?.displayTitle??"");return l2.test(n)}function EC(e,t=new Set){if(e===void 0||e.blank===!0||e.origin==="im"||e.origin==="subagent")return!1;let o=e.id??"";return!(o.startsWith("im:")||sh(o,e,t))}function kC(e,t,o,n=new Set){let r=e.byId??{},i=new Set(t?.archivedSessionIds??[]),s=new Set,a=[];for(let l of t?.items??[]){let d=(l.sessionIds??[]).map(u=>r[u]).filter(u=>u!==void 0&&u.id!==void 0&&EC(u,n)&&!i.has(u.id));for(let u of d)u.id!==void 0&&s.add(u.id);d.length>0&&a.push({id:l.workspaceId??l.id??l.path??l.title??"workspace",label:l.title||l.path||o,sessions:d})}let c=(e.ids??[]).map(l=>r[l]).filter(l=>l!==void 0&&l.id!==void 0&&!s.has(l.id)&&EC(l,n)&&!i.has(l.id));return c.length>0&&a.push({id:"",label:o,sessions:c}),a}function LC(e){return e==="channels"||e==="schedule"||e==="tasks"?e:"tasks"}function DC(e,t){let o=e??"",n=t??"";return n!==""&&o!==n}function _C(e){let t=["tasks"];for(let o of e.extraTabIds)o===""||o==="tasks"||o==="schedule"||t.includes(o)||t.push(o);return e.channelsReady&&!t.includes("channels")&&t.push("channels"),t.push("schedule"),t}function FC(e){return e.extraTabIds.includes(e.tab)?e.tab:e.tab==="channels"&&!e.channelsReady?"tasks":e.tab}function zC(e,t){if(!(e==null||e==="")){if(t!==void 0?t.has(e):e.startsWith(Ha))return"schedule";if(e.startsWith("im:"))return"channels"}}function c2(e){return/dsh-codex-ui|michengai-codex-ui|michengai\.codexUi|codex-ui/i.test(String(e??""))}function d2(e){let t=e;return String(t?.options?.locale??t?.options?.id??t?.options?.name??t?.options?.registrant??t?.component?.displayName??t?.component?.name??t?.id??t?.name??"")}function BC(e){return(e??[]).some(t=>c2(d2(t)))}var $C=new WeakMap,IC=new WeakMap;function HC(e){return e.size===0?"":[...e].sort().join("\0")}function VC(e,t=new Set){let o=e??{ids:[],byId:{},current:null},n=HC(t);if(typeof o=="object"&&o!==null){let a=$C.get(o);if(a!==void 0&&a.key===n)return a.result}let r=(o.ids??[]).filter(a=>{let c=String(a);return!c.startsWith("im:")&&!sh(c,o.byId?.[c],t)}),s=r.length===(o.ids??[]).length?o:{...o,ids:r,byId:Object.fromEntries(r.map(a=>[a,o.byId?.[a]]).filter(a=>a[1]!==void 0))};return typeof o=="object"&&o!==null&&$C.set(o,{key:n,result:s}),s}function hc(e){let t=e?.current;if(typeof t=="string"&&t!=="")return t;let o=e?.byId??{};for(let[n,r]of Object.entries(o))if((r?.retainedBy?.mainView??0)>0){let i=r.id?.trim();return i!==void 0&&i!==""?i:n}return null}function u2(e){if(e===null||typeof e!="object")return;let t=e.openSession;if(typeof t=="function")return{openSession:o=>{t.call(e,o)}}}function m2(e,t){let o=e.reflect?.get;if(typeof o=="function")try{return o.call(e.reflect,t)}catch{}if(typeof e.get=="function")try{return e.get(t)}catch{}}function WC(e){let t=u2(m2(e,"uiWorkspace"));return{...t===void 0?{}:{uiWorkspace:t},...e.sessions===void 0?{}:{sessions:e.sessions}}}function jC(e){return typeof e.uiWorkspace?.openSession=="function"||typeof e.sessions?.open=="function"}function UC(e,t){if(typeof e.uiWorkspace?.openSession=="function"){e.uiWorkspace.openSession(t);return}if(typeof e.sessions?.open=="function"){e.sessions.open(t);return}throw new Error("no client session opener")}function NC(e,t,o){if(e==="")return!1;let n=e.startsWith(Ha)||e.startsWith("im:")?[t,o]:[o,t];for(let r of n)if(typeof r=="function")try{return r(e),!0}catch{}return!1}async function KC(e){let t=e.id.trim();return t===""?!1:(await e.adopt?.(t).catch(()=>{}),!(e.listed?.(t)===!0)&&e.refresh!==void 0&&await e.refresh().catch(()=>{}),NC(t,e.openRuntime,e.openHost)?!0:(e.refresh!==void 0&&await e.refresh().catch(()=>{}),NC(t,e.openRuntime,e.openHost)))}function p2(e,t=new Set){return e.startsWith("im:")||sh(e,void 0,t)}function GC(e,t=new Set){let o=e??{items:[],archivedSessionIds:[]},n=HC(t);if(typeof o=="object"&&o!==null){let a=IC.get(o);if(a!==void 0&&a.key===n)return a.result}let r=!1,i=(o.items??[]).map(a=>{let c=(a.sessionIds??[]).filter(l=>!p2(String(l),t));return c.length!==(a.sessionIds??[]).length?(r=!0,{...a,sessionIds:c}):a}),s=r?{...o,items:i}:o;return typeof o=="object"&&o!==null&&IC.set(o,{key:n,result:s}),s}function qC(e){return e==null||typeof e!="function"&&typeof e!="object"?{}:e}function f2(e){return qC(e).__dshAutomationWrapped===!0}function XC(e){let t=new Set,o=e;for(;o!=null&&!t.has(o);){t.add(o);let n=qC(o),r=n.__dshAutomationOriginal??n.__imConnectOriginal;if(r!==void 0&&r!==o){o=r;continue}return n.__dshAutomationWrapped===!0||n.__imConnectWrapped===!0?void 0:o}}function g2(e){let t=e,o=String(t?.options?.id??""),n=String(t?.component?.displayName??t?.component?.name??"");return o==="dsh-automation-native-switcher"||o==="dsh-automation-wrap-bump"||n==="AutomationNativeWorkspaceShell"||n==="AutomationWrapBump"||f2(t?.component)}function YC(e){for(let t of e)if(t?.component!==void 0&&!g2(t))return t}function Ba(e){return e.replace(/\\/g,"/").replace(/\/+$/,"")}function PC(e,t){let o=Ba(e),n,r=-1;for(let i of t){let s=Ba(i);s.length>r&&o!==s&&o.startsWith(`${s}/`)&&(n=i,r=s.length)}return n}function ZC(e,t,o){let n=new Map;for(let h of t)for(let y of h.sessionIds??[])n.set(y,h);let r=new Map,i=[];for(let h of e){let y=h.id===void 0?void 0:n.get(h.id),x=y?.workspaceId??y?.id??y?.path;if(y===void 0||x===void 0||x===""){i.push(h);continue}let b=r.get(x)??[];b.push(h),r.set(x,b)}let s=new Map;for(let h of t)h.path!==void 0&&h.path!==""&&s.set(Ba(h.path),h);let a=new Map;for(let h of t){let y=h.workspaceId??h.id??h.path;if(y===void 0||y===""||!r.has(y))continue;a.set(y,h);let x=h.path,b=new Set;for(;x!==void 0&&x!==""&&!b.has(x);){b.add(x);let S=PC(x,[...s.keys()]);if(S===void 0)break;let v=s.get(Ba(S)),C=v?.workspaceId??v?.id??v?.path;if(v===void 0||C===void 0||C==="")break;a.set(C,v),x=v.path}}let c=[...a.values()],l=c.map(h=>h.path).filter(h=>h!==void 0&&h!==""),d=h=>h.workspaceId??h.id??h.path??"",u=new Map,m=[];for(let h of c){let y=h.path===void 0?void 0:PC(h.path,l),x=y===void 0?void 0:c.find(S=>S.path!==void 0&&Ba(S.path)===Ba(y)),b=x===void 0?void 0:d(x);if(x===void 0||b===void 0||b==="")m.push(h);else{let S=u.get(b)??[];S.push(h),u.set(b,S)}}let f=(h,y)=>(h.title||h.path||"").localeCompare(y.title||y.path||""),g=[],p=(h,y)=>{let x=d(h),b=r.get(x)??[];g.push({id:x,name:h.title||h.path||o,depth:y,keep:b.length===0,sessions:b});for(let S of(u.get(x)??[]).sort(f))p(S,y+1)};for(let h of m.sort(f))p(h,0);return i.length>0&&g.push({id:"",name:o,depth:0,sessions:i}),g}function QC(e,t,o,n="workspace"){let r=t.trim().toLocaleLowerCase(),i=e.map(s=>{if(r===""||s.name.toLocaleLowerCase().includes(r))return s;let a=s.sessions.filter(c=>`${c.title??""} ${c.label??""}`.toLocaleLowerCase().includes(r));return{...s,sessions:a}}).filter(s=>s.sessions.length>0||r===""&&s.keep===!0||r!==""&&s.name.toLocaleLowerCase().includes(r));if(n==="list"){let s=i.flatMap(a=>[...a.sessions]);return o==="time"&&s.sort((a,c)=>rh(c)-rh(a)),s.length===0?[]:[{...i[0],name:"",sessions:s}]}return n==="workspace-tree"||o==="manual"?i:[...i].sort((s,a)=>TC(a)-TC(s))}function rh(e){let t=Date.parse(e.updatedAt??"");return Number.isFinite(t)?t:0}function TC(e){let t=0;for(let o of e.sessions){let n=rh(o);n>t&&(t=n)}return t}var Xe=require("react/jsx-runtime");function Gr({children:e,...t}){return(0,Xe.jsx)("svg",{viewBox:"0 0 24 24",width:"18",height:"18",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t,children:e})}function e0(e){return(0,Xe.jsx)(Gr,{...e,children:(0,Xe.jsx)("path",{d:"M12 5v14M5 12h14"})})}function t0(e){return(0,Xe.jsxs)(Gr,{...e,children:[(0,Xe.jsx)("path",{d:"M19 7v5h-5"}),(0,Xe.jsx)("path",{d:"M18.1 15.5A7.5 7.5 0 1 1 19 12"})]})}function o0(e){return(0,Xe.jsxs)(Gr,{...e,children:[(0,Xe.jsx)("path",{d:"M12 3.8 19 6v5.1c0 4.3-2.6 7.4-7 9.1-4.4-1.7-7-4.8-7-9.1V6l7-2.2Z"}),(0,Xe.jsx)("path",{d:"m9.4 12 1.7 1.7 3.7-4"})]})}function n0(e){return(0,Xe.jsxs)(Gr,{...e,children:[(0,Xe.jsx)("rect",{x:"4",y:"5.5",width:"16",height:"14",rx:"2"}),(0,Xe.jsx)("path",{d:"M8 3.8v3.4M16 3.8v3.4M4 9.5h16"})]})}function r0(e){return(0,Xe.jsxs)(Gr,{...e,children:[(0,Xe.jsx)("circle",{cx:"6",cy:"12",r:"1.2",fill:"currentColor"}),(0,Xe.jsx)("circle",{cx:"12",cy:"12",r:"1.2",fill:"currentColor"}),(0,Xe.jsx)("circle",{cx:"18",cy:"12",r:"1.2",fill:"currentColor"})]})}function i0(e){return(0,Xe.jsxs)(Gr,{...e,children:[(0,Xe.jsx)("circle",{cx:"12",cy:"12",r:"8.25"}),(0,Xe.jsx)("path",{d:"M12 10.4V16"}),(0,Xe.jsx)("path",{d:"M12 7.6h.01"})]})}function yc(e){return(0,Xe.jsxs)(Gr,{...e,children:[(0,Xe.jsx)("circle",{cx:"12",cy:"12",r:"8.25"}),(0,Xe.jsx)("path",{d:"M12 7.6v4.6l3 1.8"})]})}function s0(e){return(0,Xe.jsx)(Gr,{...e,children:(0,Xe.jsx)("path",{d:"M5.5 6.5h13v9.2H9.2L5.5 18.8V6.5Z"})})}function a0(e){return(0,Xe.jsx)("svg",{viewBox:"0 0 16 16",width:16,height:16,"aria-hidden":"true",focusable:"false",...e,children:(0,Xe.jsx)("path",{fill:"currentColor",d:"M8 0a8 8 0 0 0-2.53 15.59c.4.074.547-.173.547-.385 0-.19-.007-.693-.01-1.36-2.226.484-2.695-1.073-2.695-1.073-.364-.924-.89-1.17-.89-1.17-.726-.496.055-.486.055-.486.803.056 1.225.824 1.225.824.714 1.223 1.872.87 2.328.665.072-.517.28-.87.508-1.07-1.777-.202-3.645-.888-3.645-3.956 0-.874.31-1.588.823-2.148-.083-.202-.357-1.017.078-2.12 0 0 .672-.215 2.2.82A7.65 7.65 0 0 1 8 4.8c.68.003 1.365.092 2.004.27 1.527-1.035 2.197-.82 2.197-.82.437 1.103.162 1.918.08 2.12.513.56.822 1.274.822 2.148 0 3.076-1.872 3.752-3.654 3.95.288.248.544.735.544 1.482 0 1.07-.01 1.932-.01 2.195 0 .214.144.463.55.384A8.001 8.001 0 0 0 8 0Z"})})}function l0(e){return(0,Xe.jsx)(Gr,{...e,children:(0,Xe.jsx)("path",{d:"M4 7.2h6.1l1.7 1.8H20V18H4V7.2Z"})})}function c0(e){return(0,Xe.jsx)(Gr,{...e,children:(0,Xe.jsx)("path",{d:"M12 3.6 13.3 8.7 18.4 10 13.3 11.3 12 16.4 10.7 11.3 5.6 10 10.7 8.7 12 3.6Z"})})}function ah({children:e,width:t=16,height:o=16}){return(0,Xe.jsx)("svg",{viewBox:"0 0 16 16",width:t,height:o,fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:e})}function d0(e){return(0,Xe.jsx)(ah,{...e,children:(0,Xe.jsx)("path",{fill:"currentColor",d:"M2 6.2h12v7.2H2V6.2Zm1.2 1.2v4.8h9.6V7.4H3.2ZM6.1 9.2h3.8v1.2H6.1V9.2ZM3.4 2.2h9.2L14 4.6H2L3.4 2.2Z"})})}function u0(e){return(0,Xe.jsx)(ah,{...e,children:(0,Xe.jsx)("path",{fill:"currentColor",transform:"translate(1.5 2.429)",d:"M5.05582 0.518756L4.50669 0.86654L5.05582 0.518756ZM13 9.4837L13.65 9.4837L13.65 3.53962L13 3.53962L12.35 3.53962L12.35 9.4837L13 9.4837ZM11.3264 1.86603L11.3264 1.21603L6.52313 1.21603L6.52313 1.86603L6.52313 2.51603L11.3264 2.51603L11.3264 1.86603ZM5.58054 1.34727L6.12968 0.999489L5.60495 0.170972L5.05582 0.518756L4.50669 0.86654L5.03141 1.69506L5.58054 1.34727ZM4.11323 1.23058e-13L4.11323 -0.65L1.67359 -0.65L1.67359 5.00699e-14L1.67359 0.65L4.11323 0.65L4.11323 1.23058e-13ZM0 1.67359L-0.65 1.67359L-0.65 9.4837L0 9.4837L0.65 9.4837L0.65 1.67359L0 1.67359ZM11.3264 11.1573L11.3264 10.5073L1.67359 10.5073L1.67359 11.1573L1.67359 11.8073L11.3264 11.8073L11.3264 11.1573ZM0 9.4837L-0.65 9.4837C-0.65 10.767 0.390308 11.8073 1.67359 11.8073L1.67359 11.1573L1.67359 10.5073C1.10828 10.5073 0.65 10.049 0.65 9.4837L0 9.4837ZM1.67359 5.00699e-14L1.67359 -0.65C0.390307 -0.65 -0.65 0.390309 -0.65 1.67359L0 1.67359L0.65 1.67359C0.65 1.10828 1.10828 0.65 1.67359 0.65L1.67359 5.00699e-14ZM5.05582 0.518756L5.60495 0.170972C5.28121 -0.340193 4.71829 -0.65 4.11323 -0.65L4.11323 1.23058e-13L4.11323 0.65C4.27282 0.65 4.4213 0.731715 4.50669 0.86654L5.05582 0.518756ZM6.52313 1.86603L6.52313 1.21603C6.36354 1.21603 6.21507 1.13431 6.12968 0.999489L5.58054 1.34727L5.03141 1.69506C5.35515 2.20622 5.91808 2.51603 6.52313 2.51603L6.52313 1.86603ZM13 3.53962L13.65 3.53962C13.65 2.25634 12.6097 1.21603 11.3264 1.21603L11.3264 1.86603L11.3264 2.51603C11.8917 2.51603 12.35 2.97431 12.35 3.53962L13 3.53962ZM13 9.4837L12.35 9.4837C12.35 10.049 11.8917 10.5073 11.3264 10.5073L11.3264 11.1573L11.3264 11.8073C12.6097 11.8073 13.65 10.767 13.65 9.4837L13 9.4837Z"})})}function m0(e){return(0,Xe.jsxs)(ah,{...e,children:[(0,Xe.jsx)("path",{fill:"currentColor",d:"M5.19629 1.57104C5.81144 1.5711 6.38623 1.8786 6.72754 2.39038L7.19922 3.09839C7.28454 3.22635 7.42824 3.30344 7.58203 3.30347H12.1699C13.5039 3.30348 14.5859 4.38548 14.5859 5.71948V6.62671C15.2694 7.02689 15.6605 7.85012 15.4385 8.68726L14.3848 12.658C14.1037 13.7164 13.1449 14.4527 12.0498 14.4529H2.91699C1.51651 14.4529 0.451662 13.2814 0.501954 11.9519V3.98706C0.501954 2.65305 1.58396 1.57104 2.91797 1.57104H5.19629ZM3.7793 7.75562C3.30994 7.75562 2.89883 8.07153 2.77832 8.52515L1.91602 11.7722C1.74167 12.4291 2.23734 13.073 2.91699 13.073H12.0498C12.5191 13.0728 12.9304 12.757 13.0508 12.3035L14.1045 8.33374C14.1819 8.04202 13.9619 7.756 13.6602 7.75562H3.7793ZM2.91797 2.9519C2.34625 2.9519 1.88281 3.41534 1.88281 3.98706V7.2937C2.33068 6.7269 3.02249 6.37476 3.7793 6.37476H13.2051V5.71948C13.2051 5.14777 12.7416 4.68434 12.1699 4.68433H7.58203C6.96675 4.6843 6.39209 4.37595 6.05078 3.86401L5.5791 3.15601C5.49379 3.02821 5.34995 2.95196 5.19629 2.9519H2.91797Z"}),(0,Xe.jsx)("path",{fill:"currentColor",opacity:"0.2",d:"M13.6602 7.75525C13.9618 7.7556 14.1815 8.04179 14.1045 8.33337L13.0508 12.3031C12.9304 12.7567 12.5191 13.0725 12.0498 13.0726H2.91701C2.23744 13.0725 1.7417 12.4287 1.91603 11.7719L2.77834 8.52478C2.89898 8.07146 3.31018 7.75532 3.77931 7.75525H13.6602ZM5.1963 2.95154C5.34985 2.95159 5.49377 3.02803 5.57912 3.15564L6.0508 3.86365C6.39205 4.37553 6.96685 4.68385 7.58205 4.68396H12.1699C12.7416 4.68396 13.2049 5.14754 13.2051 5.71912V6.37439H3.77931C3.02267 6.37444 2.33067 6.72671 1.88283 7.29333V3.98669C1.88299 3.4152 2.34649 2.95168 2.91798 2.95154H5.1963Z"})]})}function p0(e){return(0,Xe.jsx)("svg",{viewBox:"0 0 14 14",width:e.width||14,height:e.height||14,fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",...e,children:(0,Xe.jsx)("path",{fill:"currentColor",d:"M4.25 2.828v8.344c0 .49.592.735.939.389l4.172-4.172a.55.55 0 0 0 0-.778L5.189 2.439c-.347-.347-.939-.101-.939.389Z"})})}var JC=[[0,0],[4,0],[8,0],[8,4],[8,8],[4,8],[0,8],[0,4]];function xu(){return(0,Xe.jsx)("svg",{className:"dsh-st-run-dot",width:10,height:10,viewBox:"0 0 10 10",shapeRendering:"crispEdges","aria-hidden":"true",children:JC.map(([e,t],o)=>(0,Xe.jsx)("rect",{className:"dsh-st-run-dot-cell",x:e,y:t,width:"2",height:"2",style:{animationDelay:`${(o-JC.length)*125}ms`}},`${e}-${t}`))})}var f0={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"};var Fo=Math.round;function lh(e,t){let o=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=o.map(r=>parseFloat(r));for(let r=0;r<3;r+=1)n[r]=t(n[r]||0,o[r]||"",r);return o[3]?n[3]=o[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}var g0=(e,t,o)=>o===0?e:e/100;function bc(e,t){let o=t||255;return e>o?o:e<0?0:e}var pt=class e{isValid=!0;r=0;g=0;b=0;a=1;_h;_hsl_s;_hsv_s;_l;_v;_max;_min;_brightness;constructor(t){function o(n){return n[0]in t&&n[1]in t&&n[2]in t}if(t)if(typeof t=="string"){let r=function(i){return n.startsWith(i)},n=t.trim();if(/^#?[A-F\d]{3,8}$/i.test(n))this.fromHexString(n);else if(r("rgb"))this.fromRgbString(n);else if(r("hsl"))this.fromHslString(n);else if(r("hsv")||r("hsb"))this.fromHsvString(n);else{let i=f0[n.toLowerCase()];i&&this.fromHexString(parseInt(i,36).toString(16).padStart(6,"0"))}}else if(t instanceof e)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._hsl_s=t._hsl_s,this._hsv_s=t._hsv_s,this._l=t._l,this._v=t._v;else if(o("rgb"))this.r=bc(t.r),this.g=bc(t.g),this.b=bc(t.b),this.a=typeof t.a=="number"?bc(t.a,1):1;else if(o("hsl"))this.fromHsl(t);else if(o("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){let o=this.toHsv();return o.h=t,this._c(o)}getLuminance(){function t(i){let s=i/255;return s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4)}let o=t(this.r),n=t(this.g),r=t(this.b);return .2126*o+.7152*n+.0722*r}getHue(){if(typeof this._h>"u"){let t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Fo(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){return this.getHSVSaturation()}getHSVSaturation(){if(typeof this._hsv_s>"u"){let t=this.getMax()-this.getMin();t===0?this._hsv_s=0:this._hsv_s=t/this.getMax()}return this._hsv_s}getHSLSaturation(){if(typeof this._hsl_s>"u"){let t=this.getMax()-this.getMin();if(t===0)this._hsl_s=0;else{let o=this.getLightness();this._hsl_s=t/255/(1-Math.abs(2*o-1))}}return this._hsl_s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){let o=this.getHue(),n=this.getSaturation(),r=this.getLightness()-t/100;return r<0&&(r=0),this._c({h:o,s:n,l:r,a:this.a})}lighten(t=10){let o=this.getHue(),n=this.getSaturation(),r=this.getLightness()+t/100;return r>1&&(r=1),this._c({h:o,s:n,l:r,a:this.a})}mix(t,o=50){let n=this._c(t),r=o/100,i=a=>(n[a]-this[a])*r+this[a],s={r:Fo(i("r")),g:Fo(i("g")),b:Fo(i("b")),a:Fo(i("a")*100)/100};return this._c(s)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){let o=this._c(t),n=this.a+o.a*(1-this.a),r=i=>Fo((this[i]*this.a+o[i]*o.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#",o=(this.r||0).toString(16);t+=o.length===2?o:"0"+o;let n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;let r=(this.b||0).toString(16);if(t+=r.length===2?r:"0"+r,typeof this.a=="number"&&this.a>=0&&this.a<1){let i=Fo(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){let t=this.getHue(),o=Fo(this.getHSLSaturation()*100),n=Fo(this.getLightness()*100);return this.a!==1?`hsla(${t},${o}%,${n}%,${this.a})`:`hsl(${t},${o}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,o,n){let r=this.clone();return r[t]=bc(o,n),r}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){let o=t.replace("#","");function n(r,i){return parseInt(o[r]+o[i||r],16)}o.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=o[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=o[6]?n(6,7)/255:1)}fromHsl({h:t,s:o,l:n,a:r}){let i=(t%360+360)%360;if(this._h=i,this._hsl_s=o,this._l=n,this.a=typeof r=="number"?r:1,o<=0){let f=Fo(n*255);this.r=f,this.g=f,this.b=f;return}let s=0,a=0,c=0,l=i/60,d=(1-Math.abs(2*n-1))*o,u=d*(1-Math.abs(l%2-1));l>=0&&l<1?(s=d,a=u):l>=1&&l<2?(s=u,a=d):l>=2&&l<3?(a=d,c=u):l>=3&&l<4?(a=u,c=d):l>=4&&l<5?(s=u,c=d):l>=5&&l<6&&(s=d,c=u);let m=n-d/2;this.r=Fo((s+m)*255),this.g=Fo((a+m)*255),this.b=Fo((c+m)*255)}fromHsv({h:t,s:o,v:n,a:r}){let i=(t%360+360)%360;this._h=i,this._hsv_s=o,this._v=n,this.a=typeof r=="number"?r:1;let s=Fo(n*255);if(this.r=s,this.g=s,this.b=s,o<=0)return;let a=i/60,c=Math.floor(a),l=a-c,d=Fo(n*(1-o)*255),u=Fo(n*(1-o*l)*255),m=Fo(n*(1-o*(1-l))*255);switch(c){case 0:this.g=m,this.b=d;break;case 1:this.r=u,this.b=d;break;case 2:this.r=d,this.b=m;break;case 3:this.r=d,this.g=u;break;case 4:this.r=m,this.g=d;break;case 5:default:this.g=d,this.b=u;break}}fromHsvString(t){let o=lh(t,g0);this.fromHsv({h:o[0],s:o[1],v:o[2],a:o[3]})}fromHslString(t){let o=lh(t,g0);this.fromHsl({h:o[0],s:o[1],l:o[2],a:o[3]})}fromRgbString(t){let o=lh(t,(n,r)=>r.includes("%")?Fo(n/100*255):n);this.r=o[0],this.g=o[1],this.b=o[2],this.a=o[3]}};var vu=2,h0=.16,h2=.05,y2=.05,b2=.15,v0=5,S0=4,x2=[{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 y0(e,t,o){let n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=o?Math.round(e.h)-vu*t:Math.round(e.h)+vu*t:n=o?Math.round(e.h)+vu*t:Math.round(e.h)-vu*t,n<0?n+=360:n>=360&&(n-=360),n}function b0(e,t,o){if(e.h===0&&e.s===0)return e.s;let n;return o?n=e.s-h0*t:t===S0?n=e.s+h0:n=e.s+h2*t,n>1&&(n=1),o&&t===v0&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function x0(e,t,o){let n;return o?n=e.v+y2*t:n=e.v-b2*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function qr(e,t={}){let o=[],n=new pt(e),r=n.toHsv();for(let i=v0;i>0;i-=1){let s=new pt({h:y0(r,i,!0),s:b0(r,i,!0),v:x0(r,i,!0)});o.push(s)}o.push(n);for(let i=1;i<=S0;i+=1){let s=new pt({h:y0(r,i),s:b0(r,i),v:x0(r,i)});o.push(s)}return t.theme==="dark"?x2.map(({index:i,amount:s})=>new pt(t.backgroundColor||"#141414").mix(o[i],s).toHexString()):o.map(i=>i.toHexString())}var vi={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"},ch=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];ch.primary=ch[5];var dh=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];dh.primary=dh[5];var uh=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];uh.primary=uh[5];var mh=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];mh.primary=mh[5];var ph=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];ph.primary=ph[5];var fh=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];fh.primary=fh[5];var gh=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];gh.primary=gh[5];var hh=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];hh.primary=hh[5];var yh=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];yh.primary=yh[5];var bh=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];bh.primary=bh[5];var xh=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];xh.primary=xh[5];var vh=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];vh.primary=vh[5];var Sh=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Sh.primary=Sh[5];var Su={red:ch,volcano:dh,orange:uh,gold:mh,yellow:ph,lime:fh,green:gh,cyan:hh,blue:yh,geekblue:bh,purple:xh,magenta:vh,grey:Sh},C0=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];C0.primary=C0[5];var w0=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];w0.primary=w0[5];var R0=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];R0.primary=R0[5];var E0=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];E0.primary=E0[5];var $0=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];$0.primary=$0[5];var I0=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];I0.primary=I0[5];var N0=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];N0.primary=N0[5];var P0=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];P0.primary=P0[5];var T0=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];T0.primary=T0[5];var M0=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];M0.primary=M0[5];var O0=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];O0.primary=O0[5];var A0=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];A0.primary=A0[5];var k0=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];k0.primary=k0[5];var jo=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var xc={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"},v2={...xc,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
4
4
|
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
5
|
-
'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,focusOutline:!0,motion:!0},Si=y2;function vc(e,{generateColorPalettes:t,generateNeutralColorPalettes:o}){let{colorSuccess:n,colorWarning:r,colorError:i,colorInfo:s,colorPrimary:a,colorBgBase:c,colorTextBase:l}=e,d=t(a),u=t(n),m=t(r),f=t(i),g=t(s),p=o(c,l),h=e.colorLink||e.colorInfo,y=t(h),x=new pt(f[1]).mix(new pt(f[3]),50).toHexString(),b={};return jo.forEach(S=>{let v=e[S];if(v){let C=t(v);b[`${S}Hover`]=C[5],b[`${S}Active`]=C[7]}}),{...p,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:f[1],colorErrorBgHover:f[2],colorErrorBgFilledHover:x,colorErrorBgActive:f[3],colorErrorBorder:f[3],colorErrorBorderHover:f[4],colorErrorHover:f[5],colorError:f[6],colorErrorActive:f[7],colorErrorTextHover:f[8],colorErrorText:f[9],colorErrorTextActive:f[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],...b,colorBgMask:new pt("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}var b2=e=>{let t=e,o=e,n=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?o=4:e<8&&e>=7?o=5:e<14&&e>=8?o=6:e<16&&e>=14?o=7:e>=16&&(o=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?r=4:e>=8&&(r=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:o,borderRadiusLG:t,borderRadiusOuter:r}},k0=b2;function Ch(e){let{motionUnit:t,motionBase:o,borderRadius:n,lineWidth:r}=e;return{motionDurationFast:`${(o+t).toFixed(1)}s`,motionDurationMid:`${(o+t*2).toFixed(1)}s`,motionDurationSlow:`${(o+t*3).toFixed(1)}s`,lineWidthBold:r+1,...k0(n)}}var x2=e=>{let{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},L0=x2;function Va(e){return(e+8)/e}function wh(e){let t=Array.from({length:10}).map((o,n)=>{let r=n-1,i=e*Math.E**(r/5),s=n>1?Math.floor(i):Math.ceil(i);return Math.floor(s/2)*2});return t[1]=e,t.map(o=>({size:o,lineHeight:Va(o)}))}var v2=e=>{let t=wh(e),o=t.map(d=>d.size),n=t.map(d=>d.lineHeight),r=o[1],i=o[0],s=o[2],a=n[1],c=n[0],l=n[2];return{fontSizeSM:i,fontSize:r,fontSizeLG:s,fontSizeXL:o[3],fontSizeHeading1:o[6],fontSizeHeading2:o[5],fontSizeHeading3:o[4],fontSizeHeading4:o[3],fontSizeHeading5:o[2],lineHeight:a,lineHeightLG:l,lineHeightSM:c,fontHeight:Math.round(a*r),fontHeightLG:Math.round(l*s),fontHeightSM:Math.round(c*i),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},D0=v2;function Rh(e){let{sizeUnit:t,sizeStep:o}=e;return{sizeXXL:t*(o+8),sizeXL:t*(o+4),sizeLG:t*(o+2),sizeMD:t*(o+1),sizeMS:t*o,size:t*o,sizeSM:t*(o-1),sizeXS:t*(o-2),sizeXXS:t*(o-3)}}var jn=(e,t)=>new pt(e).setA(t).toRgbString(),Vs=(e,t)=>new pt(e).darken(t).toHexString();var _0=e=>{let t=qr(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]}},F0=(e,t,o)=>{let n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorShadow:o||"#000",colorText:jn(r,.88),colorTextSecondary:jn(r,.65),colorTextTertiary:jn(r,.45),colorTextQuaternary:jn(r,.25),colorFill:jn(r,.15),colorFillSecondary:jn(r,.06),colorFillTertiary:jn(r,.04),colorFillQuaternary:jn(r,.02),colorBgSolid:jn(r,1),colorBgSolidHover:jn(r,.75),colorBgSolidActive:jn(r,.95),colorBgLayout:Vs(n,4),colorBgContainer:Vs(n,0),colorBgElevated:Vs(n,0),colorBgSpotlight:jn(r,.85),colorBgBlur:"transparent",colorBorder:Vs(n,15),colorBorderDisabled:Vs(n,15),colorBorderSecondary:Vs(n,6)}};function Ws(e){vi.pink=vi.magenta,Su.pink=Su.magenta;let t=Object.keys(xc).map(o=>{let n=e[o]===vi[o]?Su[o]:qr(e[o]);return Array.from({length:10},()=>1).reduce((r,i,s)=>(r[`${o}-${s+1}`]=n[s],r[`${o}${s+1}`]=n[s],r),{})}).reduce((o,n)=>(o={...o,...n},o),{});return{...e,...t,...vc(e,{generateColorPalettes:_0,generateNeutralColorPalettes:F0}),...D0(e.fontSize),...Rh(e),...L0(e),...Ch(e)}}var Un=(e,t)=>new pt(e).setA(t).toRgbString(),qi=(e,t)=>new pt(e).lighten(t).toHexString();var Eh=e=>{let t=qr(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},z0=(e,t,o)=>{let n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorShadow:o||"rgba(255, 255, 255, 0.2)",colorText:Un(r,.85),colorTextSecondary:Un(r,.65),colorTextTertiary:Un(r,.45),colorTextQuaternary:Un(r,.25),colorFill:Un(r,.18),colorFillSecondary:Un(r,.12),colorFillTertiary:Un(r,.08),colorFillQuaternary:Un(r,.04),colorBgSolid:Un(r,.95),colorBgSolidHover:Un(r,1),colorBgSolidActive:Un(r,.9),colorBgElevated:qi(n,12),colorBgContainer:qi(n,8),colorBgLayout:qi(n,0),colorBgSpotlight:qi(n,26),colorBgBlur:Un(r,.04),colorBorder:qi(n,26),colorBorderDisabled:qi(n,26),colorBorderSecondary:qi(n,19)}};var S2=(e,t)=>{let o=Object.keys(xc).map(s=>{let a=qr(e[s],{theme:"dark"});return Array.from({length:10},()=>1).reduce((c,l,d)=>(c[`${s}-${d+1}`]=a[d],c[`${s}${d+1}`]=a[d],c),{})}).reduce((s,a)=>(s={...s,...a},s),{}),n=t??Ws(e),r=vc(e,{generateColorPalettes:Eh,generateNeutralColorPalettes:z0}),i=jo.reduce((s,a)=>{let c=e[a];if(c){let l=Eh(c);s[`${a}Hover`]=l[7],s[`${a}Active`]=l[5]}return s},{});return{...n,...o,...r,...i,colorPrimaryBg:r.colorPrimaryBorder,colorPrimaryBgHover:r.colorPrimaryBorderHover}},B0=S2;var Jt=M(require("react"));var Cu=M(require("react")),C2=e=>{let t=Cu.useRef(e);return t.current=e,Cu.useCallback((...n)=>t.current?.(...n),[])},Ie=C2;var Wa=M(require("react"));function Ut(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var H0=Ut()?Wa.useLayoutEffect:Wa.useEffect,V0=(e,t)=>{let o=Wa.useRef(!0);H0(()=>e(o.current),t),H0(()=>(o.current=!1,()=>{o.current=!0}),[])},wu=(e,t)=>{V0(o=>{if(!o)return e()},t)},it=V0;var ja=M(require("react")),w2=e=>{let t=ja.useRef(!1),[o,n]=ja.useState(e);ja.useEffect(()=>(t.current=!1,()=>{t.current=!0}),[]);function r(i,s){s&&t.current||n(i)}return[o,r]},Ua=w2;var W0=require("react");function st(e,t){let[o,n]=(0,W0.useState)(e),r=t!==void 0?t:o;return it(i=>{i||n(t)},[t]),[r,n]}var Ru=M(require("react"));var U0=e=>+setTimeout(e,16),K0=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(U0=e=>window.requestAnimationFrame(e),K0=e=>window.cancelAnimationFrame(e));var j0=0,$h=new Map;function G0(e){$h.delete(e)}var q0=(e,t=1)=>{j0+=1;let o=j0;function n(r){if(r===0)G0(o),e();else{let i=U0(()=>{n(r-1)});$h.set(o,i)}}return n(t),o};q0.cancel=e=>{let t=$h.get(e);return G0(e),K0(t)};var He=q0;function Eu(e){let[t,o]=Ru.useState(e),n=Ru.useRef(null),r=Ie(()=>{if(n.current){let[s,a]=n.current;s?He.cancel(a):clearTimeout(a),n.current=null}}),i=Ie((s,a)=>{let c=a||{frame:1};r(),c===!0?o(s):"ms"in c?n.current=[!1,setTimeout(()=>o(s),c.ms)]:n.current=[!0,He(()=>o(s),c.frame)]});return[t,i]}var Sc=M(require("react"));function R2(){return{...Sc}.useId}var X0=0;var Y0=R2(),Co=Y0?function(t){let o=Y0();return t||o}:function(t){let[o,n]=Sc.useState("ssr-id");return Sc.useEffect(()=>{let r=X0;X0+=1,n(`rc_unique_${r}`)},[]),t||o};var Z0=M(require("react"));function Kn(e,t,o){let n=Z0.useRef({});return(!("value"in n.current)||o(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}var $u=M(require("react"));function E2(e){let[,t]=$u.useReducer(i=>i+1,0),o=$u.useRef(e),n=Ie(()=>o.current),r=Ie(i=>{o.current=typeof i=="function"?i(o.current):i,t()});return[n,r]}var Ih=E2;var _u=require("react"),wc=M(tw());var I2=Symbol.for("react.element"),N2=Symbol.for("react.transitional.element"),P2=Symbol.for("react.fragment");function Cc(e){return e&&typeof e=="object"&&(e.$$typeof===I2||e.$$typeof===N2)&&e.type===P2}var T2=Number(_u.version.split(".")[0]),ow=(e,t)=>{typeof e=="function"?e(t):typeof e=="object"&&e&&"current"in e&&(e.current=t)},Mt=(...e)=>{let t=e.filter(Boolean);return t.length<=1?t[0]:o=>{e.forEach(n=>{ow(n,o)})}},bo=(...e)=>Kn(()=>Mt(...e),e,(t,o)=>t.length!==o.length||t.every((n,r)=>n!==o[r])),dr=e=>{if(!e)return!1;if(Th(e)&&T2>=19)return!0;let t=(0,wc.isMemo)(e)?e.type.type:e.type;return!(typeof t=="function"&&!t.prototype?.render&&t.$$typeof!==wc.ForwardRef||typeof e=="function"&&!e.prototype?.render&&e.$$typeof!==wc.ForwardRef)};function Th(e){return(0,_u.isValidElement)(e)&&!Cc(e)}var Rc=e=>Th(e)&&dr(e),Po=e=>{if(e&&Th(e)){let t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function js(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let o=t;for(;o;){if(o===e)return!0;o=o.parentNode}return!1}var nw="data-rc-order",rw="data-rc-priority",M2="rc-util-key",Mh=new Map;function iw({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:M2}function Fu(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function O2(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Oh(e){return Array.from((Mh.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function Ah(e,t={}){if(!Ut())return null;let{csp:o,prepend:n,priority:r=0}=t,i=O2(n),s=i==="prependQueue",a=document.createElement("style");a.setAttribute(nw,i),s&&r&&a.setAttribute(rw,`${r}`),o?.nonce&&(a.nonce=o?.nonce),a.innerHTML=e;let c=Fu(t),{firstChild:l}=c;if(n){if(s){let d=(t.styles||Oh(c)).filter(u=>{if(!["prepend","prependQueue"].includes(u.getAttribute(nw)))return!1;let m=Number(u.getAttribute(rw)||0);return r>=m});if(d.length)return c.insertBefore(a,d[d.length-1].nextSibling),a}c.insertBefore(a,l)}else c.appendChild(a);return a}function sw(e,t={}){let{styles:o}=t;return o||=Oh(Fu(t)),o.find(n=>n.getAttribute(iw(t))===e)}function Tr(e,t={}){let o=sw(e,t);o&&Fu(t).removeChild(o)}function A2(e,t){let o=Mh.get(e);if(!o||!js(document,o)){let n=Ah("",t),{parentNode:r}=n;Mh.set(e,r),e.removeChild(n)}}function In(e,t,o={}){let n=Fu(o),r=Oh(n),i={...o,styles:r};A2(n,i);let s=sw(t,i);if(s)return i.csp?.nonce&&s.nonce!==i.csp?.nonce&&(s.nonce=i.csp?.nonce),s.innerHTML!==e&&(s.innerHTML=e),s;let a=Ah(e,i);return a.setAttribute(iw(i),t),a}function Xr(e){return e instanceof HTMLElement||e instanceof SVGElement}function Gn(e){return e&&typeof e=="object"&&Xr(e.nativeElement)?e.nativeElement:Xr(e)?e:null}var Yi=require("react");var Us=e=>{if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){let{width:t,height:o}=e.getBBox();if(t||o)return!0}if(e.getBoundingClientRect){let{width:t,height:o}=e.getBoundingClientRect();if(t||o)return!0}}return!1};function aw(e,t=!1){if(Us(e)){let o=e.nodeName.toLowerCase(),n=["input","select","textarea","button"].includes(o)||e.isContentEditable||o==="a"&&!!e.getAttribute("href"),r=e.getAttribute("tabindex"),i=Number(r),s=null;return r&&!Number.isNaN(i)?s=i:n&&s===null&&(s=0),n&&e.disabled&&(s=null),s!==null&&(s>=0||t&&s<0)}return!1}function Ec(e,t=!1){let o=[...e.querySelectorAll("*")].filter(n=>aw(n,t));return aw(e,t)&&o.unshift(e),o}function Ga(e,t){if(!e)return;e.focus(t);let{cursor:o}=t||{};if(o&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){let n=e.value.length;switch(o){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(n,n);break;default:e.setSelectionRange(0,n)}}}var Ka=null,Xi=[],Lh=new Map,Dh=new Map;function _h(){return Xi[Xi.length-1]}function k2(e){let t=_h();if(e&&t){let o;for(let[r,i]of Lh.entries())if(i===t){o=r;break}let n=Dh.get(o);return!!n&&(n===e||n.contains(e))}return!1}function L2(e){let{activeElement:t}=document;return e===t||e.contains(t)}function kh(){let e=_h(),{activeElement:t}=document;if(!k2(t))if(e&&!L2(e)){let o=Ec(e);(o.includes(Ka)?Ka:o[0])?.focus({preventScroll:!0})}else Ka=t}function lw(e){if(e.key==="Tab"){let{activeElement:t}=document,o=_h(),n=Ec(o),r=n[n.length-1];e.shiftKey&&t===n[0]?Ka=r:!e.shiftKey&&t===r&&(Ka=n[0])}}function cw(e,t){return e&&(Lh.set(t,e),Xi=Xi.filter(o=>o!==e),Xi.push(e),window.addEventListener("focusin",kh),window.addEventListener("keydown",lw,!0),kh()),()=>{Ka=null,Xi=Xi.filter(o=>o!==e),Lh.delete(t),Dh.delete(t),Xi.length===0&&(window.removeEventListener("focusin",kh),window.removeEventListener("keydown",lw,!0))}}function D2(e,t){let o=(0,Yi.useRef)(0),[n,r]=(0,Yi.useState)(0);(0,Yi.useEffect)(()=>{o.current=0},t),(0,Yi.useEffect)(()=>{let[i,s]=e(o.current);return s||(o.current+=1,r(a=>a+1)),i},[...t,n])}function Fh(e,t){let o=Co(),n=(0,Yi.useRef)(t);return n.current=t,D2(s=>{if(!e)return[void 0,!0];let a=n.current();return a?[cw(a,o),!0]:[void 0,s>=1]},[o,e]),[s=>{s&&Dh.set(o,s)}]}function dw(e){return e?.getRootNode?.()}function _2(e){return dw(e)instanceof ShadowRoot}function qa(e){return _2(e)?dw(e):null}var Ue={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(t){let{keyCode:o}=t;if(t.altKey&&!t.ctrlKey||t.metaKey||o>=Ue.F1&&o<=Ue.F12)return!1;switch(o){case Ue.ALT:case Ue.CAPS_LOCK:case Ue.CONTEXT_MENU:case Ue.CTRL:case Ue.DOWN:case Ue.END:case Ue.ESC:case Ue.HOME:case Ue.INSERT:case Ue.LEFT:case Ue.MAC_FF_META:case Ue.META:case Ue.NUMLOCK:case Ue.NUM_CENTER:case Ue.PAGE_DOWN:case Ue.PAGE_UP:case Ue.PAUSE:case Ue.PRINT_SCREEN:case Ue.RIGHT:case Ue.SHIFT:case Ue.UP:case Ue.WIN_KEY:case Ue.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=Ue.ZERO&&t<=Ue.NINE||t>=Ue.NUM_ZERO&&t<=Ue.NUM_MULTIPLY||t>=Ue.A&&t<=Ue.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case Ue.SPACE:case Ue.QUESTION_MARK:case Ue.NUM_PLUS:case Ue.NUM_MINUS:case Ue.NUM_PERIOD:case Ue.NUM_DIVISION:case Ue.SEMICOLON:case Ue.DASH:case Ue.EQUALS:case Ue.COMMA:case Ue.PERIOD:case Ue.SLASH:case Ue.APOSTROPHE:case Ue.SINGLE_QUOTE:case Ue.OPEN_SQUARE_BRACKET:case Ue.BACKSLASH:case Ue.CLOSE_SQUARE_BRACKET:return!0;default:return!1}},isEditableTarget:function(t){let o=t.target;if(!(o instanceof HTMLElement))return!1;let n=o.tagName;return!!(n==="INPUT"||n==="TEXTAREA"||n==="SELECT"||o.isContentEditable)}},Me=Ue;function F2(e){let t=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,o=document.createElement("div");o.id=t;let n=o.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";let r,i;if(e){let c=getComputedStyle(e);n.scrollbarColor=c.scrollbarColor,n.scrollbarWidth=c.scrollbarWidth;let l=getComputedStyle(e,"::-webkit-scrollbar"),d=parseInt(l.width,10),u=parseInt(l.height,10);try{let m=d?`width: ${l.width};`:"",f=u?`height: ${l.height};`:"";In(`
|
|
5
|
+
'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,focusOutline:!0,motion:!0},Si=v2;function vc(e,{generateColorPalettes:t,generateNeutralColorPalettes:o}){let{colorSuccess:n,colorWarning:r,colorError:i,colorInfo:s,colorPrimary:a,colorBgBase:c,colorTextBase:l}=e,d=t(a),u=t(n),m=t(r),f=t(i),g=t(s),p=o(c,l),h=e.colorLink||e.colorInfo,y=t(h),x=new pt(f[1]).mix(new pt(f[3]),50).toHexString(),b={};return jo.forEach(S=>{let v=e[S];if(v){let C=t(v);b[`${S}Hover`]=C[5],b[`${S}Active`]=C[7]}}),{...p,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:f[1],colorErrorBgHover:f[2],colorErrorBgFilledHover:x,colorErrorBgActive:f[3],colorErrorBorder:f[3],colorErrorBorderHover:f[4],colorErrorHover:f[5],colorError:f[6],colorErrorActive:f[7],colorErrorTextHover:f[8],colorErrorText:f[9],colorErrorTextActive:f[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],...b,colorBgMask:new pt("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}var S2=e=>{let t=e,o=e,n=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?o=4:e<8&&e>=7?o=5:e<14&&e>=8?o=6:e<16&&e>=14?o=7:e>=16&&(o=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?r=4:e>=8&&(r=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:o,borderRadiusLG:t,borderRadiusOuter:r}},L0=S2;function Ch(e){let{motionUnit:t,motionBase:o,borderRadius:n,lineWidth:r}=e;return{motionDurationFast:`${(o+t).toFixed(1)}s`,motionDurationMid:`${(o+t*2).toFixed(1)}s`,motionDurationSlow:`${(o+t*3).toFixed(1)}s`,lineWidthBold:r+1,...L0(n)}}var C2=e=>{let{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},D0=C2;function Va(e){return(e+8)/e}function wh(e){let t=Array.from({length:10}).map((o,n)=>{let r=n-1,i=e*Math.E**(r/5),s=n>1?Math.floor(i):Math.ceil(i);return Math.floor(s/2)*2});return t[1]=e,t.map(o=>({size:o,lineHeight:Va(o)}))}var w2=e=>{let t=wh(e),o=t.map(d=>d.size),n=t.map(d=>d.lineHeight),r=o[1],i=o[0],s=o[2],a=n[1],c=n[0],l=n[2];return{fontSizeSM:i,fontSize:r,fontSizeLG:s,fontSizeXL:o[3],fontSizeHeading1:o[6],fontSizeHeading2:o[5],fontSizeHeading3:o[4],fontSizeHeading4:o[3],fontSizeHeading5:o[2],lineHeight:a,lineHeightLG:l,lineHeightSM:c,fontHeight:Math.round(a*r),fontHeightLG:Math.round(l*s),fontHeightSM:Math.round(c*i),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},_0=w2;function Rh(e){let{sizeUnit:t,sizeStep:o}=e;return{sizeXXL:t*(o+8),sizeXL:t*(o+4),sizeLG:t*(o+2),sizeMD:t*(o+1),sizeMS:t*o,size:t*o,sizeSM:t*(o-1),sizeXS:t*(o-2),sizeXXS:t*(o-3)}}var jn=(e,t)=>new pt(e).setA(t).toRgbString(),Vs=(e,t)=>new pt(e).darken(t).toHexString();var F0=e=>{let t=qr(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]}},z0=(e,t,o)=>{let n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorShadow:o||"#000",colorText:jn(r,.88),colorTextSecondary:jn(r,.65),colorTextTertiary:jn(r,.45),colorTextQuaternary:jn(r,.25),colorFill:jn(r,.15),colorFillSecondary:jn(r,.06),colorFillTertiary:jn(r,.04),colorFillQuaternary:jn(r,.02),colorBgSolid:jn(r,1),colorBgSolidHover:jn(r,.75),colorBgSolidActive:jn(r,.95),colorBgLayout:Vs(n,4),colorBgContainer:Vs(n,0),colorBgElevated:Vs(n,0),colorBgSpotlight:jn(r,.85),colorBgBlur:"transparent",colorBorder:Vs(n,15),colorBorderDisabled:Vs(n,15),colorBorderSecondary:Vs(n,6)}};function Ws(e){vi.pink=vi.magenta,Su.pink=Su.magenta;let t=Object.keys(xc).map(o=>{let n=e[o]===vi[o]?Su[o]:qr(e[o]);return Array.from({length:10},()=>1).reduce((r,i,s)=>(r[`${o}-${s+1}`]=n[s],r[`${o}${s+1}`]=n[s],r),{})}).reduce((o,n)=>(o={...o,...n},o),{});return{...e,...t,...vc(e,{generateColorPalettes:F0,generateNeutralColorPalettes:z0}),..._0(e.fontSize),...Rh(e),...D0(e),...Ch(e)}}var Un=(e,t)=>new pt(e).setA(t).toRgbString(),qi=(e,t)=>new pt(e).lighten(t).toHexString();var Eh=e=>{let t=qr(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},B0=(e,t,o)=>{let n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorShadow:o||"rgba(255, 255, 255, 0.2)",colorText:Un(r,.85),colorTextSecondary:Un(r,.65),colorTextTertiary:Un(r,.45),colorTextQuaternary:Un(r,.25),colorFill:Un(r,.18),colorFillSecondary:Un(r,.12),colorFillTertiary:Un(r,.08),colorFillQuaternary:Un(r,.04),colorBgSolid:Un(r,.95),colorBgSolidHover:Un(r,1),colorBgSolidActive:Un(r,.9),colorBgElevated:qi(n,12),colorBgContainer:qi(n,8),colorBgLayout:qi(n,0),colorBgSpotlight:qi(n,26),colorBgBlur:Un(r,.04),colorBorder:qi(n,26),colorBorderDisabled:qi(n,26),colorBorderSecondary:qi(n,19)}};var R2=(e,t)=>{let o=Object.keys(xc).map(s=>{let a=qr(e[s],{theme:"dark"});return Array.from({length:10},()=>1).reduce((c,l,d)=>(c[`${s}-${d+1}`]=a[d],c[`${s}${d+1}`]=a[d],c),{})}).reduce((s,a)=>(s={...s,...a},s),{}),n=t??Ws(e),r=vc(e,{generateColorPalettes:Eh,generateNeutralColorPalettes:B0}),i=jo.reduce((s,a)=>{let c=e[a];if(c){let l=Eh(c);s[`${a}Hover`]=l[7],s[`${a}Active`]=l[5]}return s},{});return{...n,...o,...r,...i,colorPrimaryBg:r.colorPrimaryBorder,colorPrimaryBgHover:r.colorPrimaryBorderHover}},H0=R2;var Jt=M(require("react"));var Cu=M(require("react")),E2=e=>{let t=Cu.useRef(e);return t.current=e,Cu.useCallback((...n)=>t.current?.(...n),[])},Ie=E2;var Wa=M(require("react"));function Ut(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var V0=Ut()?Wa.useLayoutEffect:Wa.useEffect,W0=(e,t)=>{let o=Wa.useRef(!0);V0(()=>e(o.current),t),V0(()=>(o.current=!1,()=>{o.current=!0}),[])},wu=(e,t)=>{W0(o=>{if(!o)return e()},t)},it=W0;var ja=M(require("react")),$2=e=>{let t=ja.useRef(!1),[o,n]=ja.useState(e);ja.useEffect(()=>(t.current=!1,()=>{t.current=!0}),[]);function r(i,s){s&&t.current||n(i)}return[o,r]},Ua=$2;var j0=require("react");function st(e,t){let[o,n]=(0,j0.useState)(e),r=t!==void 0?t:o;return it(i=>{i||n(t)},[t]),[r,n]}var Ru=M(require("react"));var K0=e=>+setTimeout(e,16),G0=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(K0=e=>window.requestAnimationFrame(e),G0=e=>window.cancelAnimationFrame(e));var U0=0,$h=new Map;function q0(e){$h.delete(e)}var X0=(e,t=1)=>{U0+=1;let o=U0;function n(r){if(r===0)q0(o),e();else{let i=K0(()=>{n(r-1)});$h.set(o,i)}}return n(t),o};X0.cancel=e=>{let t=$h.get(e);return q0(e),G0(t)};var He=X0;function Eu(e){let[t,o]=Ru.useState(e),n=Ru.useRef(null),r=Ie(()=>{if(n.current){let[s,a]=n.current;s?He.cancel(a):clearTimeout(a),n.current=null}}),i=Ie((s,a)=>{let c=a||{frame:1};r(),c===!0?o(s):"ms"in c?n.current=[!1,setTimeout(()=>o(s),c.ms)]:n.current=[!0,He(()=>o(s),c.frame)]});return[t,i]}var Sc=M(require("react"));function I2(){return{...Sc}.useId}var Y0=0;var Z0=I2(),Co=Z0?function(t){let o=Z0();return t||o}:function(t){let[o,n]=Sc.useState("ssr-id");return Sc.useEffect(()=>{let r=Y0;Y0+=1,n(`rc_unique_${r}`)},[]),t||o};var Q0=M(require("react"));function Kn(e,t,o){let n=Q0.useRef({});return(!("value"in n.current)||o(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}var $u=M(require("react"));function N2(e){let[,t]=$u.useReducer(i=>i+1,0),o=$u.useRef(e),n=Ie(()=>o.current),r=Ie(i=>{o.current=typeof i=="function"?i(o.current):i,t()});return[n,r]}var Ih=N2;var _u=require("react"),wc=M(ow());var T2=Symbol.for("react.element"),M2=Symbol.for("react.transitional.element"),O2=Symbol.for("react.fragment");function Cc(e){return e&&typeof e=="object"&&(e.$$typeof===T2||e.$$typeof===M2)&&e.type===O2}var A2=Number(_u.version.split(".")[0]),nw=(e,t)=>{typeof e=="function"?e(t):typeof e=="object"&&e&&"current"in e&&(e.current=t)},Mt=(...e)=>{let t=e.filter(Boolean);return t.length<=1?t[0]:o=>{e.forEach(n=>{nw(n,o)})}},bo=(...e)=>Kn(()=>Mt(...e),e,(t,o)=>t.length!==o.length||t.every((n,r)=>n!==o[r])),dr=e=>{if(!e)return!1;if(Th(e)&&A2>=19)return!0;let t=(0,wc.isMemo)(e)?e.type.type:e.type;return!(typeof t=="function"&&!t.prototype?.render&&t.$$typeof!==wc.ForwardRef||typeof e=="function"&&!e.prototype?.render&&e.$$typeof!==wc.ForwardRef)};function Th(e){return(0,_u.isValidElement)(e)&&!Cc(e)}var Rc=e=>Th(e)&&dr(e),To=e=>{if(e&&Th(e)){let t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function js(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let o=t;for(;o;){if(o===e)return!0;o=o.parentNode}return!1}var rw="data-rc-order",iw="data-rc-priority",k2="rc-util-key",Mh=new Map;function sw({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:k2}function Fu(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function L2(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Oh(e){return Array.from((Mh.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function Ah(e,t={}){if(!Ut())return null;let{csp:o,prepend:n,priority:r=0}=t,i=L2(n),s=i==="prependQueue",a=document.createElement("style");a.setAttribute(rw,i),s&&r&&a.setAttribute(iw,`${r}`),o?.nonce&&(a.nonce=o?.nonce),a.innerHTML=e;let c=Fu(t),{firstChild:l}=c;if(n){if(s){let d=(t.styles||Oh(c)).filter(u=>{if(!["prepend","prependQueue"].includes(u.getAttribute(rw)))return!1;let m=Number(u.getAttribute(iw)||0);return r>=m});if(d.length)return c.insertBefore(a,d[d.length-1].nextSibling),a}c.insertBefore(a,l)}else c.appendChild(a);return a}function aw(e,t={}){let{styles:o}=t;return o||=Oh(Fu(t)),o.find(n=>n.getAttribute(sw(t))===e)}function Tr(e,t={}){let o=aw(e,t);o&&Fu(t).removeChild(o)}function D2(e,t){let o=Mh.get(e);if(!o||!js(document,o)){let n=Ah("",t),{parentNode:r}=n;Mh.set(e,r),e.removeChild(n)}}function In(e,t,o={}){let n=Fu(o),r=Oh(n),i={...o,styles:r};D2(n,i);let s=aw(t,i);if(s)return i.csp?.nonce&&s.nonce!==i.csp?.nonce&&(s.nonce=i.csp?.nonce),s.innerHTML!==e&&(s.innerHTML=e),s;let a=Ah(e,i);return a.setAttribute(sw(i),t),a}function Xr(e){return e instanceof HTMLElement||e instanceof SVGElement}function Gn(e){return e&&typeof e=="object"&&Xr(e.nativeElement)?e.nativeElement:Xr(e)?e:null}var Yi=require("react");var Us=e=>{if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){let{width:t,height:o}=e.getBBox();if(t||o)return!0}if(e.getBoundingClientRect){let{width:t,height:o}=e.getBoundingClientRect();if(t||o)return!0}}return!1};function lw(e,t=!1){if(Us(e)){let o=e.nodeName.toLowerCase(),n=["input","select","textarea","button"].includes(o)||e.isContentEditable||o==="a"&&!!e.getAttribute("href"),r=e.getAttribute("tabindex"),i=Number(r),s=null;return r&&!Number.isNaN(i)?s=i:n&&s===null&&(s=0),n&&e.disabled&&(s=null),s!==null&&(s>=0||t&&s<0)}return!1}function Ec(e,t=!1){let o=[...e.querySelectorAll("*")].filter(n=>lw(n,t));return lw(e,t)&&o.unshift(e),o}function Ga(e,t){if(!e)return;e.focus(t);let{cursor:o}=t||{};if(o&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){let n=e.value.length;switch(o){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(n,n);break;default:e.setSelectionRange(0,n)}}}var Ka=null,Xi=[],Lh=new Map,Dh=new Map;function _h(){return Xi[Xi.length-1]}function _2(e){let t=_h();if(e&&t){let o;for(let[r,i]of Lh.entries())if(i===t){o=r;break}let n=Dh.get(o);return!!n&&(n===e||n.contains(e))}return!1}function F2(e){let{activeElement:t}=document;return e===t||e.contains(t)}function kh(){let e=_h(),{activeElement:t}=document;if(!_2(t))if(e&&!F2(e)){let o=Ec(e);(o.includes(Ka)?Ka:o[0])?.focus({preventScroll:!0})}else Ka=t}function cw(e){if(e.key==="Tab"){let{activeElement:t}=document,o=_h(),n=Ec(o),r=n[n.length-1];e.shiftKey&&t===n[0]?Ka=r:!e.shiftKey&&t===r&&(Ka=n[0])}}function dw(e,t){return e&&(Lh.set(t,e),Xi=Xi.filter(o=>o!==e),Xi.push(e),window.addEventListener("focusin",kh),window.addEventListener("keydown",cw,!0),kh()),()=>{Ka=null,Xi=Xi.filter(o=>o!==e),Lh.delete(t),Dh.delete(t),Xi.length===0&&(window.removeEventListener("focusin",kh),window.removeEventListener("keydown",cw,!0))}}function z2(e,t){let o=(0,Yi.useRef)(0),[n,r]=(0,Yi.useState)(0);(0,Yi.useEffect)(()=>{o.current=0},t),(0,Yi.useEffect)(()=>{let[i,s]=e(o.current);return s||(o.current+=1,r(a=>a+1)),i},[...t,n])}function Fh(e,t){let o=Co(),n=(0,Yi.useRef)(t);return n.current=t,z2(s=>{if(!e)return[void 0,!0];let a=n.current();return a?[dw(a,o),!0]:[void 0,s>=1]},[o,e]),[s=>{s&&Dh.set(o,s)}]}function uw(e){return e?.getRootNode?.()}function B2(e){return uw(e)instanceof ShadowRoot}function qa(e){return B2(e)?uw(e):null}var Ue={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(t){let{keyCode:o}=t;if(t.altKey&&!t.ctrlKey||t.metaKey||o>=Ue.F1&&o<=Ue.F12)return!1;switch(o){case Ue.ALT:case Ue.CAPS_LOCK:case Ue.CONTEXT_MENU:case Ue.CTRL:case Ue.DOWN:case Ue.END:case Ue.ESC:case Ue.HOME:case Ue.INSERT:case Ue.LEFT:case Ue.MAC_FF_META:case Ue.META:case Ue.NUMLOCK:case Ue.NUM_CENTER:case Ue.PAGE_DOWN:case Ue.PAGE_UP:case Ue.PAUSE:case Ue.PRINT_SCREEN:case Ue.RIGHT:case Ue.SHIFT:case Ue.UP:case Ue.WIN_KEY:case Ue.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=Ue.ZERO&&t<=Ue.NINE||t>=Ue.NUM_ZERO&&t<=Ue.NUM_MULTIPLY||t>=Ue.A&&t<=Ue.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case Ue.SPACE:case Ue.QUESTION_MARK:case Ue.NUM_PLUS:case Ue.NUM_MINUS:case Ue.NUM_PERIOD:case Ue.NUM_DIVISION:case Ue.SEMICOLON:case Ue.DASH:case Ue.EQUALS:case Ue.COMMA:case Ue.PERIOD:case Ue.SLASH:case Ue.APOSTROPHE:case Ue.SINGLE_QUOTE:case Ue.OPEN_SQUARE_BRACKET:case Ue.BACKSLASH:case Ue.CLOSE_SQUARE_BRACKET:return!0;default:return!1}},isEditableTarget:function(t){let o=t.target;if(!(o instanceof HTMLElement))return!1;let n=o.tagName;return!!(n==="INPUT"||n==="TEXTAREA"||n==="SELECT"||o.isContentEditable)}},Me=Ue;function H2(e){let t=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,o=document.createElement("div");o.id=t;let n=o.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";let r,i;if(e){let c=getComputedStyle(e);n.scrollbarColor=c.scrollbarColor,n.scrollbarWidth=c.scrollbarWidth;let l=getComputedStyle(e,"::-webkit-scrollbar"),d=parseInt(l.width,10),u=parseInt(l.height,10);try{let m=d?`width: ${l.width};`:"",f=u?`height: ${l.height};`:"";In(`
|
|
6
6
|
#${t}::-webkit-scrollbar {
|
|
7
7
|
${m}
|
|
8
8
|
${f}
|
|
9
|
-
}`,t)}catch(m){console.error(m),r=d,i=u}}document.body.appendChild(o);let s=e&&r&&!Number.isNaN(r)?r:o.offsetWidth-o.clientWidth,a=e&&i&&!Number.isNaN(i)?i:o.offsetHeight-o.clientHeight;return document.body.removeChild(o),Tr(t),{width:s,height:a}}function zh(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:
|
|
9
|
+
}`,t)}catch(m){console.error(m),r=d,i=u}}document.body.appendChild(o);let s=e&&r&&!Number.isNaN(r)?r:o.offsetWidth-o.clientWidth,a=e&&i&&!Number.isNaN(i)?i:o.offsetHeight-o.clientHeight;return document.body.removeChild(o),Tr(t),{width:s,height:a}}function zh(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:H2(e)}var Bh={},V2=[],W2=e=>{V2.push(e)};function mw(e,t){}function j2(e,t){}function pw(){Bh={}}function fw(e,t,o){!t&&!Bh[o]&&(e(!1,o),Bh[o]=!0)}function zu(e,t){fw(mw,e,t)}function Hh(e,t){fw(j2,e,t)}zu.preMessage=W2;zu.resetWarned=pw;zu.noteOnce=Hh;var Kt=zu;function U2(e,t,o=!1){let n=new Set;function r(i,s,a=1){let c=n.has(i);if(Kt(!c,"Warning: There may be circular references"),c)return!1;if(i===s)return!0;if(o&&a>1)return!1;n.add(i);let l=a+1;if(Array.isArray(i)){if(!Array.isArray(s)||i.length!==s.length)return!1;for(let d=0;d<i.length;d++)if(!r(i[d],s[d],l))return!1;return!0}if(i&&s&&typeof i=="object"&&typeof s=="object"){let d=Object.keys(i);return d.length!==Object.keys(s).length?!1:d.every(u=>r(i[u],s[u],l))}return!1}return r(e,t)}var Mr=U2;function Nn(e){return e!=null}function lo(e){return Nn(e)&&e!==!1&&e!==""}var hw=M(gw()),Wh,X2=()=>(typeof Wh>"u"&&(Wh=(0,hw.default)()),Wh),jh=X2;function Ke(e,t){let o=Object.assign({},e);return Array.isArray(t)&&t.forEach(n=>{delete o[n]}),o}var Y2=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
10
10
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
11
11
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
12
12
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
@@ -17,7 +17,7 @@ ${f}
|
|
|
17
17
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
18
18
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
19
19
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
20
|
-
summary tabIndex target title type useMap value width wmode wrap`,
|
|
20
|
+
summary tabIndex target title type useMap value width wmode wrap`,Z2=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
21
21
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
22
22
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
23
23
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
@@ -28,15 +28,15 @@ ${f}
|
|
|
28
28
|
onAnimationStart onAnimationEnd onAnimationIteration
|
|
29
29
|
onTransitionEnd onTransitionRun onTransitionStart onTransitionCancel
|
|
30
30
|
onBeforeInput onReset onInvalid
|
|
31
|
-
onAuxClick onToggle onBeforeToggle onCancel onClose onResize onScrollEnd`,
|
|
32
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zt(e){return ww(e)||Rw(e)||ju(e)||Ew()}var Pc=M(require("react"));var Ko=e=>typeof e=="number"&&!Number.isNaN(e),Pn=e=>typeof e=="string",at=e=>e!==null&&typeof e=="object",ct=e=>typeof e=="function",Uu=e=>Nn(e)&&ct(e.then),$w=e=>typeof e!="object"&&!ct(e)||e===null,Ku=e=>at(e)&&"propertyName"in e&&Pn(e.propertyName);var Gu=(e,t)=>{let o={...e};return Object.keys(t).forEach(n=>{t[n]._default?o[n]||(o[n]={}):o[n]=Gu(o[n],t[n])}),o};var Nw=(e={},...t)=>t.filter(o=>!!o).reduce((o,n)=>(Object.keys(n).forEach(r=>{let i=e[r],s=n[r];if(i)if(at(s))o[r]=Nw(i,o[r],s);else{let{_default:a}=i;a&&(o[r]=o[r]||{},o[r][a]=$(o[r][a],s))}else o[r]=$(o[r],s)}),o),{}),nk=(e,...t)=>Pc.useMemo(()=>Nw.apply(void 0,[e].concat(t)),[e].concat(t)),rk=(...e)=>e.filter(t=>!!t).reduce((t,o={})=>(Object.keys(o).forEach(n=>{t[n]={...t[n],...o[n]}}),t),{}),ik=(...e)=>Pc.useMemo(()=>rk.apply(void 0,e),[].concat(e)),De=(e,t="root")=>Pc.useMemo(()=>e?{[t]:e}:void 0,[e,t]),Iw=(e,t)=>ct(e)?e(t):e,et=(e,t,o,n)=>{let r=e.map(c=>c?Iw(c,o):void 0),i=t.map(c=>c?Iw(c,o):void 0),s=nk.apply(void 0,[n].concat(Zt(r))),a=ik.apply(void 0,Zt(i));return Pc.useMemo(()=>n?[Gu(s,n),Gu(a,n)]:[s,a],[s,a,n])};var Uh=M(require("react"));function sk(){}var{resetWarned:lW}=Kt;var Pw=Uh.createContext({}),ak=()=>{let e=()=>{};return e.deprecated=sk,e},Xa=ak;var ua=M(require("react"));var Lt=M(require("react"));function lk(e){for(var t=0,o,n=0,r=e.length;r>=4;++n,r-=4)o=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,o=(o&65535)*1540483477+((o>>>16)*59797<<16),o^=o>>>24,t=(o&65535)*1540483477+((o>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Zi=lk;var Bw=require("react");var Xu=M(require("react"));var ck="%";function qu(e){return e.join(ck)}var Tw=0,Kh=class{instanceId;constructor(t){this.instanceId=t}cache=new Map;updateTimes=new Map;extracted=new Set;get(t){return this.opGet(qu(t))}opGet(t){return this.cache.get(t)||null}update(t,o){return this.opUpdate(qu(t),o)}opUpdate(t,o){let n=this.cache.get(t),r=o(n);r===null?(this.cache.delete(t),this.updateTimes.delete(t)):(this.cache.set(t,r),this.updateTimes.set(t,Tw),Tw+=1)}},Mw=Kh;var Ks="data-token-hash",bn="data-css-hash";var Zr="__cssinjs_instance__";function Ow(){let e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){let t=document.body.querySelectorAll(`style[${bn}]`)||[],{firstChild:o}=document.head;Array.from(t).forEach(r=>{r[Zr]||=e,r[Zr]===e&&document.head.insertBefore(r,o)});let n={};Array.from(document.querySelectorAll(`style[${bn}]`)).forEach(r=>{let i=r.getAttribute(bn);n[i]?r[Zr]===e&&r.parentNode?.removeChild(r):n[i]=!0})}return new Mw(e)}var dk=Xu.createContext({hashPriority:"low",cache:Ow(),defaultCache:!0,autoPrefix:!1});var Or=dk;var mk="CALC_UNIT",SW=new RegExp(mk,"g");function pk(e,t){if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}var Ya=class e{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(t,o=!1){let n={map:this.cache};return t.forEach(r=>{n?n=n?.map?.get(r):n=void 0}),n?.value&&o&&(n.value[1]=this.cacheCallTimes++),n?.value}get(t){return this.internalGet(t,!0)?.[0]}has(t){return!!this.internalGet(t)}set(t,o){if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){let[r]=this.keys.reduce((i,s)=>{let[,a]=i;return this.internalGet(s)[1]<a?[s,this.internalGet(s)[1]]:i},[this.keys[0],this.cacheCallTimes]);this.delete(r)}this.keys.push(t)}let n=this.cache;t.forEach((r,i)=>{if(i===t.length-1)n.set(r,{value:[o,this.cacheCallTimes++]});else{let s=n.get(r);s?s.map||(s.map=new Map):n.set(r,{map:new Map}),n=n.get(r).map}})}deleteByPath(t,o){let n=t.get(o[0]);if(o.length===1)return n.map?t.set(o[0],{map:n.map}):t.delete(o[0]),n.value?.[0];let r=this.deleteByPath(n.map,o.slice(1));return(!n.map||n.map.size===0)&&!n.value&&t.delete(o[0]),r}delete(t){if(this.has(t))return this.keys=this.keys.filter(o=>!pk(o,t)),this.deleteByPath(this.cache,t)}};var Aw=0,Ci=class{derivatives;id;constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=Aw,t.length===0&&(t.length>0,void 0),Aw+=1}getDerivativeToken(t){return this.derivatives.reduce((o,n)=>n(t,o),void 0)}};var Gh=new Ya;function Qi(e){let t=Array.isArray(e)?e:[e];return Gh.has(t)||Gh.set(t,new Ci(t)),Gh.get(t)}var gk=new WeakMap,qh={};function Lw(e,t){let o=gk;for(let n=0;n<t.length;n+=1){let r=t[n];o.has(r)||o.set(r,new WeakMap),o=o.get(r)}return o.has(qh)||o.set(qh,e()),o.get(qh)}var kw=new WeakMap;function Za(e){let t=kw.get(e)||"";return t||(Object.keys(e).forEach(o=>{let n=e[o];t+=o,n instanceof Ci?t+=n.id:n&&typeof n=="object"?t+=Za(n):t+=n}),t=Zi(t),kw.set(e,t)),t}function Dw(e,t){return Zi(`${t}_${Za(e)}`)}var KW=`random-${Date.now()}-${Math.random()}`.replace(/\./g,"");var Tc=Ut();function q(e){return typeof e=="number"?`${e}px`:e}function Ji(e,t,o,n={},r=!1){if(r)return e;let i={...n,[Ks]:t,[bn]:o};return`<style ${Object.keys(i).map(a=>{let c=i[a];return c?`${a}="${c}"`:null}).filter(a=>a).join(" ")}>${e}</style>`}function Yu(e){let{hashCls:t,hashPriority:o="low"}=e||{};if(!t)return"";let n=`.${t}`;return o==="low"?`:where(${n})`:n}var _w=e=>e!=null;function Qa(e,t){let o=typeof t=="function"?t():t;return o?{...e,csp:{...e.csp,nonce:o}}:e}var Ja=(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(),hk=(e,t,o)=>{let{hashCls:n,hashPriority:r="low",scope:i}=o||{};if(!Object.keys(e).length)return"";let s=`${Yu({hashCls:n,hashPriority:r})}.${t}`,a=[i].flat().filter(Boolean);return`${a.length?a.map(l=>`${s}.${l}`).join(", "):s}{${Object.entries(e).map(([l,d])=>`${l}:${d};`).join("")}}`},Zu=(e,t,o)=>{let{hashCls:n,hashPriority:r="low",prefix:i,unitless:s,ignore:a,preserve:c}=o||{},l={},d={};return Object.entries(e).forEach(([u,m])=>{if(c?.[u])d[u]=m;else if((typeof m=="string"||typeof m=="number")&&!a?.[u]){let f=Ja(u,i);l[f]=typeof m=="number"&&!s?.[u]?`${m}px`:String(m),d[u]=`var(${f})`}}),[d,hk(l,t,{scope:o?.scope,hashCls:n,hashPriority:r})]};var Ju=M(require("react")),zw=require("react");function yk(){return!1}var Fw=yk;var Qu=new Map;function Gs(e,t,o,n,r){let{cache:i}=Ju.useContext(Or),s=[e,...t],a=qu(s),c=Fw(),l=m=>{i.opUpdate(a,f=>{let[g=0,p]=f||[void 0,void 0],y=p||o(),x=[g,y];return m?m(x):x})};Ju.useMemo(()=>{l()},[a]);let u=i.opGet(a)[1];return(0,zw.useInsertionEffect)(()=>(l(([m,f])=>[m+1,f]),Qu.has(a)||(r?.(u),Qu.set(a,!0),Promise.resolve().then(()=>{Qu.delete(a)})),()=>{i.opUpdate(a,m=>{let[f=0,g]=m||[];return f-1===0?(n?.(g,!1),Qu.delete(a),null):[f-1,g]})}),[a]),u}var bk={},xk="css",qs=new Map;function vk(e){qs.set(e,(qs.get(e)||0)+1)}function Sk(e,t){typeof document<"u"&&document.querySelectorAll(`style[${Ks}="${e}"]`).forEach(n=>{n[Zr]===t&&n.parentNode?.removeChild(n)})}var Ck=-1;function wk(e,t){qs.set(e,(qs.get(e)||0)-1);let o=new Set;qs.forEach((n,r)=>{n<=0&&o.add(r)}),qs.size-o.size>Ck&&o.forEach(n=>{Sk(n,t),qs.delete(n)})}var Hw=(e,t,o,n)=>{let i={...o.getDerivativeToken(e),...t};return n&&(i=n(i)),i},Xh="token";function em(e,t,o){let{cache:{instanceId:n},container:r,hashPriority:i}=(0,Bw.useContext)(Or),{salt:s="",override:a=bk,formatToken:c,getComputedToken:l,cssVar:d,nonce:u}=o,m=Lw(()=>Object.assign({},...t),t),f=Za(m),g=Za(a),p=Za(d);return Gs(Xh,[s,e.id,f,g,p],()=>{let y=l?l(m,a,e):Hw(m,a,e,c),x={...y},b=`${s}_${d.prefix}`,S=Zi(b),v=`${xk}-${S}`;x._tokenKey=Dw(x,b);let[C,R]=Zu(y,d.key,{prefix:d.prefix,ignore:d.ignore,unitless:d.unitless,preserve:d.preserve,hashPriority:i,hashCls:d.hashed?v:void 0});return C._hashId=S,vk(d.key),[C,v,x,R,d.key]},([,,,,y])=>{wk(y,n)},([,,,y,x])=>{if(!y)return;let b={mark:bn,prepend:"queue",attachTo:r,priority:-999};b=Qa(b,u);let S=In(y,Zi(`css-var-${x}`),b);S[Zr]=n,S.setAttribute(Ks,x)})}var Vw=(e,t,o)=>{let[,,n,r,i]=e,{plain:s}=o||{};if(!r)return null;let a=n._tokenKey,c=-999,l={"data-rc-order":"prependQueue","data-rc-priority":`${c}`},d=Ji(r,i,a,l,s);return[c,a,d]};var gR=require("react");var mR=M(require("react"));var Rk={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},Yh=Rk;var Ht="-ms-",Xs="-moz-",St="-webkit-",tm="comm",el="rule",tl="decl";var Ww="@import";var jw="@namespace",om="@keyframes";var Uw="@layer";var Kw=Math.abs,Ys=String.fromCharCode,Mc=Object.assign;function Gw(e,t){return uo(e,0)^45?(((t<<2^uo(e,0))<<2^uo(e,1))<<2^uo(e,2))<<2^uo(e,3):0}function nm(e){return e.trim()}function Ar(e,t){return(e=t.exec(e))?e[0]:e}function tt(e,t,o){return e.replace(t,o)}function rm(e,t){return e.indexOf(t)}function uo(e,t){return e.charCodeAt(t)|0}function kr(e,t,o){return e.slice(t,o)}function rn(e){return e.length}function im(e){return e.length}function Zs(e,t){return t.push(e),e}function qw(e,t){return e.map(t).join("")}function Zh(e,t){return e.filter(function(o){return!Ar(o,t)})}var sm=1,ol=1,Xw=0,ur=0,wo=0,rl="";function Oc(e,t,o,n,r,i,s,a){return{value:e,root:t,parent:o,type:n,props:r,children:i,line:sm,column:ol,length:s,return:"",siblings:a}}function wi(e,t){return Mc(Oc("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Qs(e){for(;e.root;)e=wi(e.root,{children:[e]});Zs(e,e.siblings)}function Yw(){return wo}function Zw(){return wo=ur>0?uo(rl,--ur):0,ol--,wo===10&&(ol=1,sm--),wo}function mr(){return wo=ur<Xw?uo(rl,ur++):0,ol++,wo===10&&(ol=1,sm++),wo}function Ri(){return uo(rl,ur)}function Ac(){return ur}function am(e,t){return kr(rl,e,t)}function nl(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 Qw(e){return sm=ol=1,Xw=rn(rl=e),ur=0,[]}function Jw(e){return rl="",e}function lm(e){return nm(am(ur-1,Qh(e===91?e+2:e===40?e+1:e)))}function eR(e){for(;(wo=Ri())&&wo<33;)mr();return nl(e)>2||nl(wo)>3?"":" "}function tR(e,t){for(;--t&&mr()&&!(wo<48||wo>102||wo>57&&wo<65||wo>70&&wo<97););return am(e,Ac()+(t<6&&Ri()==32&&mr()==32))}function Qh(e){for(;mr();)switch(wo){case e:return ur;case 34:case 39:e!==34&&e!==39&&Qh(wo);break;case 40:e===41&&Qh(e);break;case 92:mr();break}return ur}function oR(e,t){for(;mr()&&e+wo!==57;)if(e+wo===84&&Ri()===47)break;return"/*"+am(t,ur-1)+"*"+Ys(e===47?e:mr())}function nR(e){for(;!nl(Ri());)mr();return am(e,ur)}function Jh(e){return Jw(cm("",null,null,null,[""],e=Qw(e),0,[0],e))}function cm(e,t,o,n,r,i,s,a,c){for(var l=0,d=0,u=s,m=0,f=0,g=0,p=1,h=1,y=1,x=0,b=0,S="",v=r,C=i,R=n,w=S;h;)switch(g=b,b=mr()){case 40:g!=108&&uo(w,u-1)==58?(x++,w+="("):w+=lm(b);break;case 41:x--,w+=")";break;case 34:case 39:case 91:w+=lm(b);break;case 9:case 10:case 13:case 32:if(x>0){w+=Ys(b);break}w+=eR(g);break;case 92:w+=tR(Ac()-1,7);continue;case 47:switch(Ri()){case 42:case 47:Zs(Ek(oR(mr(),Ac()),t,o,c),c),(nl(g||1)==5||nl(Ri()||1)==5)&&rn(w)&&kr(w,-1,void 0)!==" "&&(w+=" ");break;default:w+="/"}break;case 123*p:a[l++]=rn(w)*y;case 125*p:case 59:case 0:if(x>0&&b){w+=Ys(b);break}switch(b){case 0:case 125:h=0;case 59+d:y==-1&&(w=tt(w,/\f/g,"")),f>0&&(rn(w)-u||p===0)&&Zs(f>32?iR(w+";",n,o,u-1,c):iR(tt(w," ","")+";",n,o,u-2,c),c);break;case 59:w+=";";default:if(Zs(R=rR(w,t,o,l,d,r,a,S,v=[],C=[],u,i),i),b===123)if(d===0)cm(w,t,R,R,v,i,u,a,C);else{switch(m){case 99:if(uo(w,3)===110)break;case 108:if(uo(w,2)===97)break;default:d=0;case 100:case 109:case 115:}d?cm(e,R,R,n&&Zs(rR(e,R,R,0,0,r,a,S,r,v=[],u,C),C),r,C,u,a,n?v:C):cm(w,R,R,R,[""],C,0,a,C)}}l=d=f=0,p=y=1,S=w="",u=s;break;case 58:u=1+rn(w),f=g;default:if(p<1){if(b==123)--p;else if(b==125&&p++==0&&Zw()==125)continue}switch(w+=Ys(b),b*p){case 38:y=d>0?1:(w+="\f",-1);break;case 44:if(x>0)break;a[l++]=(rn(w)-1)*y,y=1;break;case 64:Ri()===45&&(w+=lm(mr())),m=Ri(),d=u=rn(S=w+=nR(Ac())),b++;break;case 45:g===45&&rn(w)==2&&(p=0)}}return i}function rR(e,t,o,n,r,i,s,a,c,l,d,u){for(var m=r-1,f=r===0?i:[""],g=im(f),p=0,h=0,y=0;p<n;++p)for(var x=0,b=kr(e,m+1,m=Kw(h=s[p])),S=e;x<g;++x)(S=nm(h>0?f[x]+" "+b:tt(b,/&\f/g,f[x])))&&(c[y++]=S);return Oc(e,t,o,r===0?el:a,c,l,d,u)}function Ek(e,t,o,n){return Oc(e,t,o,tm,Ys(Yw()),kr(e,2,-2),0,n)}function iR(e,t,o,n,r){return Oc(e,t,o,tl,kr(e,0,n),kr(e,n+1,-1),n,r)}function ey(e,t,o){switch(Gw(e,t)){case 5103:return St+"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 St+e+e;case 4855:return St+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Xs+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return St+e+Xs+e+Ht+e+e;case 5936:switch(uo(e,t+11)){case 114:return St+e+Ht+tt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return St+e+Ht+tt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return St+e+Ht+tt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return St+e+Ht+e+e;case 6165:return St+e+Ht+"flex-"+e+e;case 5187:return St+e+tt(e,/(\w+).+(:[^]+)/,St+"box-$1$2"+Ht+"flex-$1$2")+e;case 5443:return St+e+Ht+"flex-item-"+tt(e,/flex-|-self/g,"")+(Ar(e,/flex-|baseline/)?"":Ht+"grid-row-"+tt(e,/flex-|-self/g,""))+e;case 4675:return St+e+Ht+"flex-line-pack"+tt(e,/align-content|flex-|-self/g,"")+e;case 5548:return St+e+Ht+tt(e,"shrink","negative")+e;case 5292:return St+e+Ht+tt(e,"basis","preferred-size")+e;case 6060:return St+"box-"+tt(e,"-grow","")+St+e+Ht+tt(e,"grow","positive")+e;case 4554:return St+tt(e,/([^-])(transform)/g,"$1"+St+"$2")+e;case 6187:return tt(tt(tt(e,/(zoom-|grab)/,St+"$1"),/(image-set)/,St+"$1"),e,"")+e;case 5495:case 3959:return tt(e,/(image-set\([^]*)/,St+"$1$`$1");case 4968:return tt(tt(e,/(.+:)(flex-)?(.*)/,St+"box-pack:$3"+Ht+"flex-pack:$3"),/space-between/,"justify")+St+e+e;case 4200:if(!Ar(e,/flex-|baseline/))return Ht+"grid-column-align"+kr(e,t)+e;break;case 2592:case 3360:return Ht+tt(e,"template-","")+e;case 4384:case 3616:return o&&o.some(function(n,r){return t=r,Ar(n.props,/grid-\w+-end/)})?~rm(e+(o=o[t].value),"span")?e:Ht+tt(e,"-start","")+e+Ht+"grid-row-span:"+(~rm(o,"span")?Ar(o,/\d+/):+Ar(o,/\d+/)-+Ar(e,/\d+/))+";":Ht+tt(e,"-start","")+e;case 4896:case 4128:return o&&o.some(function(n){return Ar(n.props,/grid-\w+-start/)})?e:Ht+tt(tt(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return tt(e,/(.+)-inline(.+)/,St+"$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(rn(e)-1-t>6)switch(uo(e,t+1)){case 109:if(uo(e,t+4)!==45)break;case 102:return tt(e,/(.+:)(.+)-([^]+)/,"$1"+St+"$2-$3$1"+Xs+(uo(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~rm(e,"stretch")?ey(tt(e,"stretch","fill-available"),t,o)+e:e}break;case 5152:case 5920:return tt(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,r,i,s,a,c,l){return Ht+r+":"+i+l+(s?Ht+r+"-span:"+(a?c:+c-+i)+l:"")+e});case 4949:if(uo(e,t+6)===121)return tt(e,":",":"+St)+e;break;case 6444:switch(uo(e,uo(e,14)===45?18:11)){case 120:return tt(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+St+(uo(e,14)===45?"inline-":"")+"box$3$1"+St+"$2$3$1"+Ht+"$2box$3")+e;case 100:return tt(e,":",":"+Ht)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return tt(e,"scroll-","scroll-snap-")+e}return e}function Js(e,t){for(var o="",n=0;n<e.length;n++)o+=t(e[n],n,e,t)||"";return o}function ty(e,t,o,n){switch(e.type){case Uw:if(e.children.length)break;case Ww:case jw:case tl:return e.return=e.return||e.value;case tm:return"";case om:return e.return=e.value+"{"+Js(e.children,n)+"}";case el:if(!rn(e.value=e.props.join(",")))return""}return rn(o=Js(e.children,n))?e.return=e.value+"{"+o+"}":""}function sR(e){var t=im(e);return function(o,n,r,i){for(var s="",a=0;a<t;a++)s+=e[a](o,n,r,i)||"";return s}}function aR(e,t,o,n){if(e.length>-1&&!e.return)switch(e.type){case tl:e.return=ey(e.value,e.length,o);return;case om:return Js([wi(e,{value:tt(e.value,"@","@"+St)})],n);case el:if(e.length)return qw(o=e.props,function(r){switch(Ar(r,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Qs(wi(e,{props:[tt(r,/:(read-\w+)/,":"+Xs+"$1")]})),Qs(wi(e,{props:[r]})),Mc(e,{props:Zh(o,n)});break;case"::placeholder":Qs(wi(e,{props:[tt(r,/:(plac\w+)/,":"+St+"input-$1")]})),Qs(wi(e,{props:[tt(r,/:(plac\w+)/,":"+Xs+"$1")]})),Qs(wi(e,{props:[tt(r,/:(plac\w+)/,Ht+"input-$1")]})),Qs(wi(e,{props:[r]})),Mc(e,{props:Zh(o,n)});break}return""})}}var oy="data-ant-cssinjs-cache-path",ny="_FILE_STYLE__";var ea,lR=!0;function Tk(){if(!ea&&(ea={},Ut())){let e=document.createElement("div");e.className=oy,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(n=>{let[r,i]=n.split(":");ea[r]=i});let o=document.querySelector(`style[${oy}]`);o&&(lR=!1,o.parentNode?.removeChild(o)),document.body.removeChild(e)}}function cR(e){return Tk(),!!ea[e]}function dR(e){let t=ea[e],o=null;if(t&&Ut())if(lR)o=ny;else{let n=document.querySelector(`style[${bn}="${ea[e]}"]`);n?o=n.innerHTML:delete ea[e]}return[o,t]}var Mk="_skip_check_",pR="_multi_value_";function dm(e,t){return(t?Js(Jh(e),sR([aR,ty])):Js(Jh(e),ty)).replace(/\{%%%\:[^;];}/g,";")}function Ok(e){return typeof e=="object"&&e&&(Mk in e||pR in e)}function uR(e,t,o="high"){if(!t)return e;let n=Yu({hashCls:t,hashPriority:o});return e.split(",").map(i=>{let s=i.trim().split(/\s+/),a=s[0]||"",c=a.match(/^\w+/)?.[0]||"";return a=`${c}${n}${a.slice(c.length)}`,[a,...s.slice(1)].join(" ")}).join(",")}var ry=(e,t={},{root:o,injectHash:n,parentSelectors:r}={root:!0,parentSelectors:[]})=>{let{hashId:i,layer:s,path:a,hashPriority:c,transformers:l=[],linters:d=[]}=t,u="",m={};function f(h){let y=h.getName(i);if(!m[y]){let[x]=ry(h.style,t,{root:!1,parentSelectors:r});m[y]=`@keyframes ${h.getName(i)}${x}`}}function g(h,y=[]){return h.forEach(x=>{Array.isArray(x)?g(x,y):x&&y.push(x)}),y}return g(Array.isArray(e)?e:[e]).forEach(h=>{let y=typeof h=="string"&&!o?{}:h;if(typeof y=="string")u+=`${y}
|
|
33
|
-
`;else if(y._keyframe)f(y);else{let x=l.reduce((b,S)=>S?.visit?.(b)||b,y);Object.keys(x).forEach(b=>{let S=x[b];if(typeof S=="object"&&S&&(b!=="animationName"||!S._keyframe)&&!
|
|
34
|
-
`))):u=`{${u}}`,[u,m]};function iy(e,t){return Zi(`${e.join("%")}${t}`)}var sy="style";function es(e,t){let{path:o,hashId:n,layer:r,nonce:i,clientOnly:s,order:a=0}=e,{mock:c,hashPriority:l,container:d,transformers:u,linters:m,cache:f,layer:g,autoPrefix:p}=mR.useContext(Or),h=[n||""];g&&h.push("layer"),h.push(...o);let y=Tc;Gs(sy,h,()=>{let x=h.join("|");if(cR(x)){let[w,I]=dR(x);if(w)return[w,I,{},s,a]}let b=t(),[S,v]=ry(b,{hashId:n,hashPriority:l,layer:g?r:void 0,path:o.join("-"),transformers:u,linters:m}),C=dm(S,p||!1),R=iy(h,C);return[C,R,v,s,a]},(x,b)=>{let[,S]=x;b&&Tc&&Tr(S,{mark:bn,attachTo:d})},x=>{let[b,S,v,,C]=x;if(y&&b!==ny){let R={mark:bn,prepend:g?!1:"queue",attachTo:d,priority:C};R=Qa(R,i);let w=[],I=[];Object.keys(v).forEach(N=>{N.startsWith("@layer")?w.push(N):I.push(N)}),w.forEach(N=>{In(dm(v[N],p||!1),`_layer-${N}`,{...R,prepend:!0})});let P=In(b,S,R);P[Zr]=f.instanceId,I.forEach(N=>{In(dm(v[N],p||!1),`_effect-${N}`,R)})}})}var fR=(e,t,o)=>{let[n,r,i,s,a]=e,{plain:c,autoPrefix:l}=o||{};if(s)return null;let d=n,u={"data-rc-order":"prependQueue","data-rc-priority":`${a}`};return d=Ji(n,void 0,r,u,c),i&&Object.keys(i).forEach(m=>{if(!t[m]){t[m]=!0;let f=dm(i[m],l||!1),g=Ji(f,void 0,`_effect-${m}`,u,c);m.startsWith("@layer")?d=g+d:d+=g}}),[a,r,d]};var ay="cssVar",Ak=(e,t)=>{let{key:o,prefix:n,unitless:r,ignore:i,token:s,hashId:a,scope:c,nonce:l}=e,{cache:{instanceId:d},container:u,hashPriority:m}=(0,gR.useContext)(Or),{_tokenKey:f}=s,g=Array.isArray(c)?c.join("@@"):c,p=[...e.path,o,g,f];return Gs(ay,p,()=>{let y=t(),[x,b]=Zu(y,o,{prefix:n,unitless:r,ignore:i,scope:c,hashPriority:m,hashCls:a}),S=iy(p,b);return[x,b,S,o]},([,,y])=>{Tc&&Tr(y,{mark:bn,attachTo:u})},([,y,x])=>{if(!y)return;let b={mark:bn,prepend:"queue",attachTo:u,priority:-999};b=Qa(b,l);let S=In(y,x,b);S[Zr]=d,S.setAttribute(Ks,o)})},hR=(e,t,o)=>{let[,n,r,i]=e,{plain:s}=o||{};if(!n)return null;let a=-999,c={"data-rc-order":"prependQueue","data-rc-priority":`${a}`},l=Ji(n,i,r,c,s);return[a,r,l]},ly=Ak;var N7={[sy]:fR,[Xh]:Vw,[ay]:hR};var cy=class{name;style;constructor(t,o){this.name=t,this.style=o}getName(t=""){return t?`${t}-${this.name}`:this.name}_keyframe=!0},nt=cy;function il(e){return e.notSplit=!0,e}var M7={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:il(["borderTop","borderBottom"]),borderBlockStart:il(["borderTop"]),borderBlockEnd:il(["borderBottom"]),borderInline:il(["borderLeft","borderRight"]),borderInlineStart:il(["borderLeft"]),borderInlineEnd:il(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};var yR=require("react"),kk=(0,yR.createContext)({}),sl=kk;var bR=require("react"),xR=(0,bR.createContext)(void 0);var ll=M(require("react"));var Lk={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"},vR=Lk;var SR={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};var Dk={...SR,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",nextMonth:"Next month",previousYear:"Last year",nextYear:"Next year",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},CR=Dk;var _k={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},um=_k;var Fk={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"],...CR},timePickerLocale:{...um}},mm=Fk;var wR=mm;var qn="${label} is not a valid ${type}",zk={locale:"en",Pagination:vR,DatePicker:mm,TimePicker:um,Calendar:wR,global:{placeholder:"Please select",close:"Close",sortable:"sortable",show:"Show",hide:"Hide"},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"},Carousel:{prevSlide:"Previous slide",nextSlide:"Next slide"},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:qn,method:qn,array:qn,object:qn,number:qn,date:qn,boolean:qn,integer:qn,float:qn,regexp:qn,email:qn,url:qn,hex:qn},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"}},Xn=zk;var pm={...Xn.Modal},fm=[],RR=()=>fm.reduce((e,t)=>({...e,...t}),Xn.Modal);function ER(e){if(e){let t={...e};return fm.push(t),pm=RR(),()=>{fm=fm.filter(o=>o!==t),pm=RR()}}pm={...Xn.Modal}}function gm(){return pm}var $R=require("react"),Bk=(0,$R.createContext)(void 0),al=Bk;var Lc=M(require("react"));var Hk=(e,t)=>{let o=Lc.useContext(al),n=Lc.useMemo(()=>{let i=t||Xn[e],s=o?.[e]??{};return{...ct(i)?i():i,...s||{}}},[e,t,o]),r=Lc.useMemo(()=>{let i=o?.locale;return o?.exist&&!i?Xn.locale:i},[o]);return[n,r]},Go=Hk;var IR="internalMark",Vk=e=>{let{locale:t={},children:o,_ANT_MARK__:n}=e;ll.useEffect(()=>ER(t?.Modal),[t]);let r=ll.useMemo(()=>({...t,exist:!0}),[t]);return ll.createElement(al.Provider,{value:r},o)},NR=Vk;var PR=M(require("react"));var Wk=Qi(Ws),Dc=Wk;var _c={token:Si,override:{override:Si},hashed:!0},Fc=PR.default.createContext(_c);var By=M(require("react"));var pr=M(require("react")),BR=require("react-dom");var TR=M(require("react")),jk=TR.createContext(null),hm=jk;var MR=!1;function dy(e){return typeof e=="boolean"&&(MR=e),MR}var ta=M(require("react"));var OR=[];function uy(e,t){let[o]=ta.useState(()=>Ut()?document.createElement("div"):null),n=ta.useRef(!1),r=ta.useContext(hm),[i,s]=ta.useState(OR),a=r||(n.current?void 0:d=>{s(u=>[d,...u])});function c(){o.parentElement||document.body.appendChild(o),n.current=!0}function l(){o.parentElement?.removeChild(o),n.current=!1}return it(()=>(e?r?r(c):c():l(),l),[e]),it(()=>{i.length&&(i.forEach(d=>d()),s(OR))},[i]),[o,a]}var LR=M(require("react"));function AR(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Uk=`rc-util-locker-${Date.now()}`,kR=0;function my(e){let t=!!e,[o]=LR.useState(()=>(kR+=1,`${Uk}_${kR}`));it(()=>{if(t){let n=zh(document.body).width,r=AR();In(`
|
|
31
|
+
onAuxClick onToggle onBeforeToggle onCancel onClose onResize onScrollEnd`,Q2=`${Y2} ${Z2}`.split(/[\s\n]+/),J2="aria-",ek="data-";function yw(e,t){return e.indexOf(t)===0}function Mo(e,t=!1){let o;t===!1?o={aria:!0,data:!0,attr:!0}:t===!0?o={aria:!0}:o={...t};let n={};return Object.keys(e).forEach(r=>{(o.aria&&(r==="role"||yw(r,J2))||o.data&&yw(r,ek)||o.attr&&Q2.includes(r))&&(n[r]=e[r])}),n}var bw=M(require("react"));function co(e,t={}){let o=[];return bw.default.Children.forEach(e,n=>{n==null&&!t.keepEmpty||(Array.isArray(n)?o=o.concat(co(n)):Cc(n)&&n.props?o=o.concat(co(n.props.children,t)):o.push(n))}),o}function tk(...e){let t={};for(let o of e)if(o)for(let n of Object.keys(o))o[n]!==void 0&&(t[n]=o[n]);return t}var Hu=tk;function Oo(e,t){let o=e;for(let n=0;n<t.length;n+=1){if(o==null)return;o=o[t[n]]}return o}function vw(e,t,o,n){if(!t.length)return o;let[r,...i]=t,s;return!e&&typeof r=="number"?s=[]:Array.isArray(e)?s=[...e]:s={...e},n&&o===void 0&&i.length===1?delete s[r][i[0]]:s[r]=vw(s[r],i,o,n),s}function Uo(e,t,o,n=!1){return t.length&&n&&o===void 0&&!Oo(e,t.slice(0,-1))?e:vw(e,t,o,n)}function ok(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function xw(e){return Array.isArray(e)?[]:{}}var nk=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Sw(e,t={}){let{prepareArray:o}=t,n=o||(()=>[]),r=xw(e[0]);return e.forEach(i=>{function s(a,c){let l=new Set(c),d=Oo(i,a),u=Array.isArray(d);if(u||ok(d)){if(!l.has(d)){l.add(d);let m=Oo(r,a);u?r=Uo(r,a,n(m,d)):(!m||typeof m!="object")&&(r=Uo(r,a,xw(d))),nk(d).forEach(f=>{Object.getOwnPropertyDescriptor(d,f).enumerable&&s([...a,f],l)})}}else r=Uo(r,a,d)}s([])}),r}function Yr(...e){return Sw(e)}var Cw=require("react-dom/client"),Vu="__rc_react_root__";function $c(e,t){let o=t[Vu]||(0,Cw.createRoot)(t);o.render(e),t[Vu]=o}async function Ic(e){return Promise.resolve().then(()=>{e[Vu]?.unmount(),delete e[Vu]})}var Wu=require("react"),rk=M(require("react-dom"));function ww(e){var t,o,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(o=ww(e[t]))&&(n&&(n+=" "),n+=o)}else for(o in e)e[o]&&(n&&(n+=" "),n+=o);return n}function $(){for(var e,t,o=0,n="",r=arguments.length;o<r;o++)(e=arguments[o])&&(t=ww(e))&&(n&&(n+=" "),n+=t);return n}function Nc(e,t){(t==null||t>e.length)&&(t=e.length);for(var o=0,n=Array(t);o<t;o++)n[o]=e[o];return n}function Rw(e){if(Array.isArray(e))return Nc(e)}function Ew(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ju(e,t){if(e){if(typeof e=="string")return Nc(e,t);var o={}.toString.call(e).slice(8,-1);return o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set"?Array.from(e):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Nc(e,t):void 0}}function $w(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
32
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zt(e){return Rw(e)||Ew(e)||ju(e)||$w()}var Pc=M(require("react"));var Ko=e=>typeof e=="number"&&!Number.isNaN(e),Pn=e=>typeof e=="string",at=e=>e!==null&&typeof e=="object",dt=e=>typeof e=="function",Uu=e=>Nn(e)&&dt(e.then),Iw=e=>typeof e!="object"&&!dt(e)||e===null,Ku=e=>at(e)&&"propertyName"in e&&Pn(e.propertyName);var Gu=(e,t)=>{let o={...e};return Object.keys(t).forEach(n=>{t[n]._default?o[n]||(o[n]={}):o[n]=Gu(o[n],t[n])}),o};var Pw=(e={},...t)=>t.filter(o=>!!o).reduce((o,n)=>(Object.keys(n).forEach(r=>{let i=e[r],s=n[r];if(i)if(at(s))o[r]=Pw(i,o[r],s);else{let{_default:a}=i;a&&(o[r]=o[r]||{},o[r][a]=$(o[r][a],s))}else o[r]=$(o[r],s)}),o),{}),sk=(e,...t)=>Pc.useMemo(()=>Pw.apply(void 0,[e].concat(t)),[e].concat(t)),ak=(...e)=>e.filter(t=>!!t).reduce((t,o={})=>(Object.keys(o).forEach(n=>{t[n]={...t[n],...o[n]}}),t),{}),lk=(...e)=>Pc.useMemo(()=>ak.apply(void 0,e),[].concat(e)),De=(e,t="root")=>Pc.useMemo(()=>e?{[t]:e}:void 0,[e,t]),Nw=(e,t)=>dt(e)?e(t):e,et=(e,t,o,n)=>{let r=e.map(c=>c?Nw(c,o):void 0),i=t.map(c=>c?Nw(c,o):void 0),s=sk.apply(void 0,[n].concat(Zt(r))),a=lk.apply(void 0,Zt(i));return Pc.useMemo(()=>n?[Gu(s,n),Gu(a,n)]:[s,a],[s,a,n])};var Uh=M(require("react"));function ck(){}var{resetWarned:mW}=Kt;var Tw=Uh.createContext({}),dk=()=>{let e=()=>{};return e.deprecated=ck,e},Xa=dk;var ua=M(require("react"));var Lt=M(require("react"));function uk(e){for(var t=0,o,n=0,r=e.length;r>=4;++n,r-=4)o=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,o=(o&65535)*1540483477+((o>>>16)*59797<<16),o^=o>>>24,t=(o&65535)*1540483477+((o>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Zi=uk;var Hw=require("react");var Xu=M(require("react"));var mk="%";function qu(e){return e.join(mk)}var Mw=0,Kh=class{instanceId;constructor(t){this.instanceId=t}cache=new Map;updateTimes=new Map;extracted=new Set;get(t){return this.opGet(qu(t))}opGet(t){return this.cache.get(t)||null}update(t,o){return this.opUpdate(qu(t),o)}opUpdate(t,o){let n=this.cache.get(t),r=o(n);r===null?(this.cache.delete(t),this.updateTimes.delete(t)):(this.cache.set(t,r),this.updateTimes.set(t,Mw),Mw+=1)}},Ow=Kh;var Ks="data-token-hash",bn="data-css-hash";var Zr="__cssinjs_instance__";function Aw(){let e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){let t=document.body.querySelectorAll(`style[${bn}]`)||[],{firstChild:o}=document.head;Array.from(t).forEach(r=>{r[Zr]||=e,r[Zr]===e&&document.head.insertBefore(r,o)});let n={};Array.from(document.querySelectorAll(`style[${bn}]`)).forEach(r=>{let i=r.getAttribute(bn);n[i]?r[Zr]===e&&r.parentNode?.removeChild(r):n[i]=!0})}return new Ow(e)}var pk=Xu.createContext({hashPriority:"low",cache:Aw(),defaultCache:!0,autoPrefix:!1});var Or=pk;var gk="CALC_UNIT",EW=new RegExp(gk,"g");function hk(e,t){if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}var Ya=class e{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(t,o=!1){let n={map:this.cache};return t.forEach(r=>{n?n=n?.map?.get(r):n=void 0}),n?.value&&o&&(n.value[1]=this.cacheCallTimes++),n?.value}get(t){return this.internalGet(t,!0)?.[0]}has(t){return!!this.internalGet(t)}set(t,o){if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){let[r]=this.keys.reduce((i,s)=>{let[,a]=i;return this.internalGet(s)[1]<a?[s,this.internalGet(s)[1]]:i},[this.keys[0],this.cacheCallTimes]);this.delete(r)}this.keys.push(t)}let n=this.cache;t.forEach((r,i)=>{if(i===t.length-1)n.set(r,{value:[o,this.cacheCallTimes++]});else{let s=n.get(r);s?s.map||(s.map=new Map):n.set(r,{map:new Map}),n=n.get(r).map}})}deleteByPath(t,o){let n=t.get(o[0]);if(o.length===1)return n.map?t.set(o[0],{map:n.map}):t.delete(o[0]),n.value?.[0];let r=this.deleteByPath(n.map,o.slice(1));return(!n.map||n.map.size===0)&&!n.value&&t.delete(o[0]),r}delete(t){if(this.has(t))return this.keys=this.keys.filter(o=>!hk(o,t)),this.deleteByPath(this.cache,t)}};var kw=0,Ci=class{derivatives;id;constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=kw,t.length===0&&(t.length>0,void 0),kw+=1}getDerivativeToken(t){return this.derivatives.reduce((o,n)=>n(t,o),void 0)}};var Gh=new Ya;function Qi(e){let t=Array.isArray(e)?e:[e];return Gh.has(t)||Gh.set(t,new Ci(t)),Gh.get(t)}var bk=new WeakMap,qh={};function Dw(e,t){let o=bk;for(let n=0;n<t.length;n+=1){let r=t[n];o.has(r)||o.set(r,new WeakMap),o=o.get(r)}return o.has(qh)||o.set(qh,e()),o.get(qh)}var Lw=new WeakMap;function Za(e){let t=Lw.get(e)||"";return t||(Object.keys(e).forEach(o=>{let n=e[o];t+=o,n instanceof Ci?t+=n.id:n&&typeof n=="object"?t+=Za(n):t+=n}),t=Zi(t),Lw.set(e,t)),t}function _w(e,t){return Zi(`${t}_${Za(e)}`)}var YW=`random-${Date.now()}-${Math.random()}`.replace(/\./g,"");var Tc=Ut();function q(e){return typeof e=="number"?`${e}px`:e}function Ji(e,t,o,n={},r=!1){if(r)return e;let i={...n,[Ks]:t,[bn]:o};return`<style ${Object.keys(i).map(a=>{let c=i[a];return c?`${a}="${c}"`:null}).filter(a=>a).join(" ")}>${e}</style>`}function Yu(e){let{hashCls:t,hashPriority:o="low"}=e||{};if(!t)return"";let n=`.${t}`;return o==="low"?`:where(${n})`:n}var Fw=e=>e!=null;function Qa(e,t){let o=typeof t=="function"?t():t;return o?{...e,csp:{...e.csp,nonce:o}}:e}var Ja=(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(),xk=(e,t,o)=>{let{hashCls:n,hashPriority:r="low",scope:i}=o||{};if(!Object.keys(e).length)return"";let s=`${Yu({hashCls:n,hashPriority:r})}.${t}`,a=[i].flat().filter(Boolean);return`${a.length?a.map(l=>`${s}.${l}`).join(", "):s}{${Object.entries(e).map(([l,d])=>`${l}:${d};`).join("")}}`},Zu=(e,t,o)=>{let{hashCls:n,hashPriority:r="low",prefix:i,unitless:s,ignore:a,preserve:c}=o||{},l={},d={};return Object.entries(e).forEach(([u,m])=>{if(c?.[u])d[u]=m;else if((typeof m=="string"||typeof m=="number")&&!a?.[u]){let f=Ja(u,i);l[f]=typeof m=="number"&&!s?.[u]?`${m}px`:String(m),d[u]=`var(${f})`}}),[d,xk(l,t,{scope:o?.scope,hashCls:n,hashPriority:r})]};var Ju=M(require("react")),Bw=require("react");function vk(){return!1}var zw=vk;var Qu=new Map;function Gs(e,t,o,n,r){let{cache:i}=Ju.useContext(Or),s=[e,...t],a=qu(s),c=zw(),l=m=>{i.opUpdate(a,f=>{let[g=0,p]=f||[void 0,void 0],y=p||o(),x=[g,y];return m?m(x):x})};Ju.useMemo(()=>{l()},[a]);let u=i.opGet(a)[1];return(0,Bw.useInsertionEffect)(()=>(l(([m,f])=>[m+1,f]),Qu.has(a)||(r?.(u),Qu.set(a,!0),Promise.resolve().then(()=>{Qu.delete(a)})),()=>{i.opUpdate(a,m=>{let[f=0,g]=m||[];return f-1===0?(n?.(g,!1),Qu.delete(a),null):[f-1,g]})}),[a]),u}var Sk={},Ck="css",qs=new Map;function wk(e){qs.set(e,(qs.get(e)||0)+1)}function Rk(e,t){typeof document<"u"&&document.querySelectorAll(`style[${Ks}="${e}"]`).forEach(n=>{n[Zr]===t&&n.parentNode?.removeChild(n)})}var Ek=-1;function $k(e,t){qs.set(e,(qs.get(e)||0)-1);let o=new Set;qs.forEach((n,r)=>{n<=0&&o.add(r)}),qs.size-o.size>Ek&&o.forEach(n=>{Rk(n,t),qs.delete(n)})}var Vw=(e,t,o,n)=>{let i={...o.getDerivativeToken(e),...t};return n&&(i=n(i)),i},Xh="token";function em(e,t,o){let{cache:{instanceId:n},container:r,hashPriority:i}=(0,Hw.useContext)(Or),{salt:s="",override:a=Sk,formatToken:c,getComputedToken:l,cssVar:d,nonce:u}=o,m=Dw(()=>Object.assign({},...t),t),f=Za(m),g=Za(a),p=Za(d);return Gs(Xh,[s,e.id,f,g,p],()=>{let y=l?l(m,a,e):Vw(m,a,e,c),x={...y},b=`${s}_${d.prefix}`,S=Zi(b),v=`${Ck}-${S}`;x._tokenKey=_w(x,b);let[C,R]=Zu(y,d.key,{prefix:d.prefix,ignore:d.ignore,unitless:d.unitless,preserve:d.preserve,hashPriority:i,hashCls:d.hashed?v:void 0});return C._hashId=S,wk(d.key),[C,v,x,R,d.key]},([,,,,y])=>{$k(y,n)},([,,,y,x])=>{if(!y)return;let b={mark:bn,prepend:"queue",attachTo:r,priority:-999};b=Qa(b,u);let S=In(y,Zi(`css-var-${x}`),b);S[Zr]=n,S.setAttribute(Ks,x)})}var Ww=(e,t,o)=>{let[,,n,r,i]=e,{plain:s}=o||{};if(!r)return null;let a=n._tokenKey,c=-999,l={"data-rc-order":"prependQueue","data-rc-priority":`${c}`},d=Ji(r,i,a,l,s);return[c,a,d]};var hR=require("react");var pR=M(require("react"));var Ik={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},Yh=Ik;var Ht="-ms-",Xs="-moz-",St="-webkit-",tm="comm",el="rule",tl="decl";var jw="@import";var Uw="@namespace",om="@keyframes";var Kw="@layer";var Gw=Math.abs,Ys=String.fromCharCode,Mc=Object.assign;function qw(e,t){return uo(e,0)^45?(((t<<2^uo(e,0))<<2^uo(e,1))<<2^uo(e,2))<<2^uo(e,3):0}function nm(e){return e.trim()}function Ar(e,t){return(e=t.exec(e))?e[0]:e}function tt(e,t,o){return e.replace(t,o)}function rm(e,t){return e.indexOf(t)}function uo(e,t){return e.charCodeAt(t)|0}function kr(e,t,o){return e.slice(t,o)}function rn(e){return e.length}function im(e){return e.length}function Zs(e,t){return t.push(e),e}function Xw(e,t){return e.map(t).join("")}function Zh(e,t){return e.filter(function(o){return!Ar(o,t)})}var sm=1,ol=1,Yw=0,ur=0,wo=0,rl="";function Oc(e,t,o,n,r,i,s,a){return{value:e,root:t,parent:o,type:n,props:r,children:i,line:sm,column:ol,length:s,return:"",siblings:a}}function wi(e,t){return Mc(Oc("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Qs(e){for(;e.root;)e=wi(e.root,{children:[e]});Zs(e,e.siblings)}function Zw(){return wo}function Qw(){return wo=ur>0?uo(rl,--ur):0,ol--,wo===10&&(ol=1,sm--),wo}function mr(){return wo=ur<Yw?uo(rl,ur++):0,ol++,wo===10&&(ol=1,sm++),wo}function Ri(){return uo(rl,ur)}function Ac(){return ur}function am(e,t){return kr(rl,e,t)}function nl(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 Jw(e){return sm=ol=1,Yw=rn(rl=e),ur=0,[]}function eR(e){return rl="",e}function lm(e){return nm(am(ur-1,Qh(e===91?e+2:e===40?e+1:e)))}function tR(e){for(;(wo=Ri())&&wo<33;)mr();return nl(e)>2||nl(wo)>3?"":" "}function oR(e,t){for(;--t&&mr()&&!(wo<48||wo>102||wo>57&&wo<65||wo>70&&wo<97););return am(e,Ac()+(t<6&&Ri()==32&&mr()==32))}function Qh(e){for(;mr();)switch(wo){case e:return ur;case 34:case 39:e!==34&&e!==39&&Qh(wo);break;case 40:e===41&&Qh(e);break;case 92:mr();break}return ur}function nR(e,t){for(;mr()&&e+wo!==57;)if(e+wo===84&&Ri()===47)break;return"/*"+am(t,ur-1)+"*"+Ys(e===47?e:mr())}function rR(e){for(;!nl(Ri());)mr();return am(e,ur)}function Jh(e){return eR(cm("",null,null,null,[""],e=Jw(e),0,[0],e))}function cm(e,t,o,n,r,i,s,a,c){for(var l=0,d=0,u=s,m=0,f=0,g=0,p=1,h=1,y=1,x=0,b=0,S="",v=r,C=i,R=n,w=S;h;)switch(g=b,b=mr()){case 40:g!=108&&uo(w,u-1)==58?(x++,w+="("):w+=lm(b);break;case 41:x--,w+=")";break;case 34:case 39:case 91:w+=lm(b);break;case 9:case 10:case 13:case 32:if(x>0){w+=Ys(b);break}w+=tR(g);break;case 92:w+=oR(Ac()-1,7);continue;case 47:switch(Ri()){case 42:case 47:Zs(Nk(nR(mr(),Ac()),t,o,c),c),(nl(g||1)==5||nl(Ri()||1)==5)&&rn(w)&&kr(w,-1,void 0)!==" "&&(w+=" ");break;default:w+="/"}break;case 123*p:a[l++]=rn(w)*y;case 125*p:case 59:case 0:if(x>0&&b){w+=Ys(b);break}switch(b){case 0:case 125:h=0;case 59+d:y==-1&&(w=tt(w,/\f/g,"")),f>0&&(rn(w)-u||p===0)&&Zs(f>32?sR(w+";",n,o,u-1,c):sR(tt(w," ","")+";",n,o,u-2,c),c);break;case 59:w+=";";default:if(Zs(R=iR(w,t,o,l,d,r,a,S,v=[],C=[],u,i),i),b===123)if(d===0)cm(w,t,R,R,v,i,u,a,C);else{switch(m){case 99:if(uo(w,3)===110)break;case 108:if(uo(w,2)===97)break;default:d=0;case 100:case 109:case 115:}d?cm(e,R,R,n&&Zs(iR(e,R,R,0,0,r,a,S,r,v=[],u,C),C),r,C,u,a,n?v:C):cm(w,R,R,R,[""],C,0,a,C)}}l=d=f=0,p=y=1,S=w="",u=s;break;case 58:u=1+rn(w),f=g;default:if(p<1){if(b==123)--p;else if(b==125&&p++==0&&Qw()==125)continue}switch(w+=Ys(b),b*p){case 38:y=d>0?1:(w+="\f",-1);break;case 44:if(x>0)break;a[l++]=(rn(w)-1)*y,y=1;break;case 64:Ri()===45&&(w+=lm(mr())),m=Ri(),d=u=rn(S=w+=rR(Ac())),b++;break;case 45:g===45&&rn(w)==2&&(p=0)}}return i}function iR(e,t,o,n,r,i,s,a,c,l,d,u){for(var m=r-1,f=r===0?i:[""],g=im(f),p=0,h=0,y=0;p<n;++p)for(var x=0,b=kr(e,m+1,m=Gw(h=s[p])),S=e;x<g;++x)(S=nm(h>0?f[x]+" "+b:tt(b,/&\f/g,f[x])))&&(c[y++]=S);return Oc(e,t,o,r===0?el:a,c,l,d,u)}function Nk(e,t,o,n){return Oc(e,t,o,tm,Ys(Zw()),kr(e,2,-2),0,n)}function sR(e,t,o,n,r){return Oc(e,t,o,tl,kr(e,0,n),kr(e,n+1,-1),n,r)}function ey(e,t,o){switch(qw(e,t)){case 5103:return St+"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 St+e+e;case 4855:return St+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Xs+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return St+e+Xs+e+Ht+e+e;case 5936:switch(uo(e,t+11)){case 114:return St+e+Ht+tt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return St+e+Ht+tt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return St+e+Ht+tt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return St+e+Ht+e+e;case 6165:return St+e+Ht+"flex-"+e+e;case 5187:return St+e+tt(e,/(\w+).+(:[^]+)/,St+"box-$1$2"+Ht+"flex-$1$2")+e;case 5443:return St+e+Ht+"flex-item-"+tt(e,/flex-|-self/g,"")+(Ar(e,/flex-|baseline/)?"":Ht+"grid-row-"+tt(e,/flex-|-self/g,""))+e;case 4675:return St+e+Ht+"flex-line-pack"+tt(e,/align-content|flex-|-self/g,"")+e;case 5548:return St+e+Ht+tt(e,"shrink","negative")+e;case 5292:return St+e+Ht+tt(e,"basis","preferred-size")+e;case 6060:return St+"box-"+tt(e,"-grow","")+St+e+Ht+tt(e,"grow","positive")+e;case 4554:return St+tt(e,/([^-])(transform)/g,"$1"+St+"$2")+e;case 6187:return tt(tt(tt(e,/(zoom-|grab)/,St+"$1"),/(image-set)/,St+"$1"),e,"")+e;case 5495:case 3959:return tt(e,/(image-set\([^]*)/,St+"$1$`$1");case 4968:return tt(tt(e,/(.+:)(flex-)?(.*)/,St+"box-pack:$3"+Ht+"flex-pack:$3"),/space-between/,"justify")+St+e+e;case 4200:if(!Ar(e,/flex-|baseline/))return Ht+"grid-column-align"+kr(e,t)+e;break;case 2592:case 3360:return Ht+tt(e,"template-","")+e;case 4384:case 3616:return o&&o.some(function(n,r){return t=r,Ar(n.props,/grid-\w+-end/)})?~rm(e+(o=o[t].value),"span")?e:Ht+tt(e,"-start","")+e+Ht+"grid-row-span:"+(~rm(o,"span")?Ar(o,/\d+/):+Ar(o,/\d+/)-+Ar(e,/\d+/))+";":Ht+tt(e,"-start","")+e;case 4896:case 4128:return o&&o.some(function(n){return Ar(n.props,/grid-\w+-start/)})?e:Ht+tt(tt(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return tt(e,/(.+)-inline(.+)/,St+"$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(rn(e)-1-t>6)switch(uo(e,t+1)){case 109:if(uo(e,t+4)!==45)break;case 102:return tt(e,/(.+:)(.+)-([^]+)/,"$1"+St+"$2-$3$1"+Xs+(uo(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~rm(e,"stretch")?ey(tt(e,"stretch","fill-available"),t,o)+e:e}break;case 5152:case 5920:return tt(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,r,i,s,a,c,l){return Ht+r+":"+i+l+(s?Ht+r+"-span:"+(a?c:+c-+i)+l:"")+e});case 4949:if(uo(e,t+6)===121)return tt(e,":",":"+St)+e;break;case 6444:switch(uo(e,uo(e,14)===45?18:11)){case 120:return tt(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+St+(uo(e,14)===45?"inline-":"")+"box$3$1"+St+"$2$3$1"+Ht+"$2box$3")+e;case 100:return tt(e,":",":"+Ht)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return tt(e,"scroll-","scroll-snap-")+e}return e}function Js(e,t){for(var o="",n=0;n<e.length;n++)o+=t(e[n],n,e,t)||"";return o}function ty(e,t,o,n){switch(e.type){case Kw:if(e.children.length)break;case jw:case Uw:case tl:return e.return=e.return||e.value;case tm:return"";case om:return e.return=e.value+"{"+Js(e.children,n)+"}";case el:if(!rn(e.value=e.props.join(",")))return""}return rn(o=Js(e.children,n))?e.return=e.value+"{"+o+"}":""}function aR(e){var t=im(e);return function(o,n,r,i){for(var s="",a=0;a<t;a++)s+=e[a](o,n,r,i)||"";return s}}function lR(e,t,o,n){if(e.length>-1&&!e.return)switch(e.type){case tl:e.return=ey(e.value,e.length,o);return;case om:return Js([wi(e,{value:tt(e.value,"@","@"+St)})],n);case el:if(e.length)return Xw(o=e.props,function(r){switch(Ar(r,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Qs(wi(e,{props:[tt(r,/:(read-\w+)/,":"+Xs+"$1")]})),Qs(wi(e,{props:[r]})),Mc(e,{props:Zh(o,n)});break;case"::placeholder":Qs(wi(e,{props:[tt(r,/:(plac\w+)/,":"+St+"input-$1")]})),Qs(wi(e,{props:[tt(r,/:(plac\w+)/,":"+Xs+"$1")]})),Qs(wi(e,{props:[tt(r,/:(plac\w+)/,Ht+"input-$1")]})),Qs(wi(e,{props:[r]})),Mc(e,{props:Zh(o,n)});break}return""})}}var oy="data-ant-cssinjs-cache-path",ny="_FILE_STYLE__";var ea,cR=!0;function Ak(){if(!ea&&(ea={},Ut())){let e=document.createElement("div");e.className=oy,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(n=>{let[r,i]=n.split(":");ea[r]=i});let o=document.querySelector(`style[${oy}]`);o&&(cR=!1,o.parentNode?.removeChild(o)),document.body.removeChild(e)}}function dR(e){return Ak(),!!ea[e]}function uR(e){let t=ea[e],o=null;if(t&&Ut())if(cR)o=ny;else{let n=document.querySelector(`style[${bn}="${ea[e]}"]`);n?o=n.innerHTML:delete ea[e]}return[o,t]}var kk="_skip_check_",fR="_multi_value_";function dm(e,t){return(t?Js(Jh(e),aR([lR,ty])):Js(Jh(e),ty)).replace(/\{%%%\:[^;];}/g,";")}function Lk(e){return typeof e=="object"&&e&&(kk in e||fR in e)}function mR(e,t,o="high"){if(!t)return e;let n=Yu({hashCls:t,hashPriority:o});return e.split(",").map(i=>{let s=i.trim().split(/\s+/),a=s[0]||"",c=a.match(/^\w+/)?.[0]||"";return a=`${c}${n}${a.slice(c.length)}`,[a,...s.slice(1)].join(" ")}).join(",")}var ry=(e,t={},{root:o,injectHash:n,parentSelectors:r}={root:!0,parentSelectors:[]})=>{let{hashId:i,layer:s,path:a,hashPriority:c,transformers:l=[],linters:d=[]}=t,u="",m={};function f(h){let y=h.getName(i);if(!m[y]){let[x]=ry(h.style,t,{root:!1,parentSelectors:r});m[y]=`@keyframes ${h.getName(i)}${x}`}}function g(h,y=[]){return h.forEach(x=>{Array.isArray(x)?g(x,y):x&&y.push(x)}),y}return g(Array.isArray(e)?e:[e]).forEach(h=>{let y=typeof h=="string"&&!o?{}:h;if(typeof y=="string")u+=`${y}
|
|
33
|
+
`;else if(y._keyframe)f(y);else{let x=l.reduce((b,S)=>S?.visit?.(b)||b,y);Object.keys(x).forEach(b=>{let S=x[b];if(typeof S=="object"&&S&&(b!=="animationName"||!S._keyframe)&&!Lk(S)){let v=!1,C=b.trim(),R=!1;(o||n)&&i?C.startsWith("@")?v=!0:C==="&"?C=mR("",i,c):C=mR(b,i,c):o&&!i&&(C==="&"||C==="")&&(C="",R=!0);let[w,I]=ry(S,t,{root:R,injectHash:v,parentSelectors:[...r,C]});m={...m,...I},u+=`${C}${w}`}else{let v=function(R,w){let I=R.replace(/[A-Z]/g,N=>`-${N.toLowerCase()}`),P=w;!Yh[R]&&typeof P=="number"&&P!==0&&(P=`${P}px`),R==="animationName"&&w?._keyframe&&(f(w),P=w.getName(i)),u+=`${I}:${P};`},C=S?.value??S;typeof S=="object"&&S?.[fR]&&Array.isArray(C)?C.forEach(R=>{v(b,R)}):Fw(C)&&v(b,C)}})}}),o?s&&(u&&(u=`@layer ${s.name} {${u}}`),s.dependencies&&(m[`@layer ${s.name}`]=s.dependencies.map(h=>`@layer ${h}, ${s.name};`).join(`
|
|
34
|
+
`))):u=`{${u}}`,[u,m]};function iy(e,t){return Zi(`${e.join("%")}${t}`)}var sy="style";function es(e,t){let{path:o,hashId:n,layer:r,nonce:i,clientOnly:s,order:a=0}=e,{mock:c,hashPriority:l,container:d,transformers:u,linters:m,cache:f,layer:g,autoPrefix:p}=pR.useContext(Or),h=[n||""];g&&h.push("layer"),h.push(...o);let y=Tc;Gs(sy,h,()=>{let x=h.join("|");if(dR(x)){let[w,I]=uR(x);if(w)return[w,I,{},s,a]}let b=t(),[S,v]=ry(b,{hashId:n,hashPriority:l,layer:g?r:void 0,path:o.join("-"),transformers:u,linters:m}),C=dm(S,p||!1),R=iy(h,C);return[C,R,v,s,a]},(x,b)=>{let[,S]=x;b&&Tc&&Tr(S,{mark:bn,attachTo:d})},x=>{let[b,S,v,,C]=x;if(y&&b!==ny){let R={mark:bn,prepend:g?!1:"queue",attachTo:d,priority:C};R=Qa(R,i);let w=[],I=[];Object.keys(v).forEach(N=>{N.startsWith("@layer")?w.push(N):I.push(N)}),w.forEach(N=>{In(dm(v[N],p||!1),`_layer-${N}`,{...R,prepend:!0})});let P=In(b,S,R);P[Zr]=f.instanceId,I.forEach(N=>{In(dm(v[N],p||!1),`_effect-${N}`,R)})}})}var gR=(e,t,o)=>{let[n,r,i,s,a]=e,{plain:c,autoPrefix:l}=o||{};if(s)return null;let d=n,u={"data-rc-order":"prependQueue","data-rc-priority":`${a}`};return d=Ji(n,void 0,r,u,c),i&&Object.keys(i).forEach(m=>{if(!t[m]){t[m]=!0;let f=dm(i[m],l||!1),g=Ji(f,void 0,`_effect-${m}`,u,c);m.startsWith("@layer")?d=g+d:d+=g}}),[a,r,d]};var ay="cssVar",Dk=(e,t)=>{let{key:o,prefix:n,unitless:r,ignore:i,token:s,hashId:a,scope:c,nonce:l}=e,{cache:{instanceId:d},container:u,hashPriority:m}=(0,hR.useContext)(Or),{_tokenKey:f}=s,g=Array.isArray(c)?c.join("@@"):c,p=[...e.path,o,g,f];return Gs(ay,p,()=>{let y=t(),[x,b]=Zu(y,o,{prefix:n,unitless:r,ignore:i,scope:c,hashPriority:m,hashCls:a}),S=iy(p,b);return[x,b,S,o]},([,,y])=>{Tc&&Tr(y,{mark:bn,attachTo:u})},([,y,x])=>{if(!y)return;let b={mark:bn,prepend:"queue",attachTo:u,priority:-999};b=Qa(b,l);let S=In(y,x,b);S[Zr]=d,S.setAttribute(Ks,o)})},yR=(e,t,o)=>{let[,n,r,i]=e,{plain:s}=o||{};if(!n)return null;let a=-999,c={"data-rc-order":"prependQueue","data-rc-priority":`${a}`},l=Ji(n,i,r,c,s);return[a,r,l]},ly=Dk;var O7={[sy]:gR,[Xh]:Ww,[ay]:yR};var cy=class{name;style;constructor(t,o){this.name=t,this.style=o}getName(t=""){return t?`${t}-${this.name}`:this.name}_keyframe=!0},nt=cy;function il(e){return e.notSplit=!0,e}var L7={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:il(["borderTop","borderBottom"]),borderBlockStart:il(["borderTop"]),borderBlockEnd:il(["borderBottom"]),borderInline:il(["borderLeft","borderRight"]),borderInlineStart:il(["borderLeft"]),borderInlineEnd:il(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};var bR=require("react"),_k=(0,bR.createContext)({}),sl=_k;var xR=require("react"),vR=(0,xR.createContext)(void 0);var ll=M(require("react"));var Fk={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"},SR=Fk;var CR={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};var zk={...CR,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",nextMonth:"Next month",previousYear:"Last year",nextYear:"Next year",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},wR=zk;var Bk={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},um=Bk;var Hk={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"],...wR},timePickerLocale:{...um}},mm=Hk;var RR=mm;var qn="${label} is not a valid ${type}",Vk={locale:"en",Pagination:SR,DatePicker:mm,TimePicker:um,Calendar:RR,global:{placeholder:"Please select",close:"Close",sortable:"sortable",show:"Show",hide:"Hide"},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"},Carousel:{prevSlide:"Previous slide",nextSlide:"Next slide"},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:qn,method:qn,array:qn,object:qn,number:qn,date:qn,boolean:qn,integer:qn,float:qn,regexp:qn,email:qn,url:qn,hex:qn},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"}},Xn=Vk;var pm={...Xn.Modal},fm=[],ER=()=>fm.reduce((e,t)=>({...e,...t}),Xn.Modal);function $R(e){if(e){let t={...e};return fm.push(t),pm=ER(),()=>{fm=fm.filter(o=>o!==t),pm=ER()}}pm={...Xn.Modal}}function gm(){return pm}var IR=require("react"),Wk=(0,IR.createContext)(void 0),al=Wk;var Lc=M(require("react"));var jk=(e,t)=>{let o=Lc.useContext(al),n=Lc.useMemo(()=>{let i=t||Xn[e],s=o?.[e]??{};return{...dt(i)?i():i,...s||{}}},[e,t,o]),r=Lc.useMemo(()=>{let i=o?.locale;return o?.exist&&!i?Xn.locale:i},[o]);return[n,r]},Go=jk;var NR="internalMark",Uk=e=>{let{locale:t={},children:o,_ANT_MARK__:n}=e;ll.useEffect(()=>$R(t?.Modal),[t]);let r=ll.useMemo(()=>({...t,exist:!0}),[t]);return ll.createElement(al.Provider,{value:r},o)},PR=Uk;var TR=M(require("react"));var Kk=Qi(Ws),Dc=Kk;var _c={token:Si,override:{override:Si},hashed:!0},Fc=TR.default.createContext(_c);var By=M(require("react"));var pr=M(require("react")),HR=require("react-dom");var MR=M(require("react")),Gk=MR.createContext(null),hm=Gk;var OR=!1;function dy(e){return typeof e=="boolean"&&(OR=e),OR}var ta=M(require("react"));var AR=[];function uy(e,t){let[o]=ta.useState(()=>Ut()?document.createElement("div"):null),n=ta.useRef(!1),r=ta.useContext(hm),[i,s]=ta.useState(AR),a=r||(n.current?void 0:d=>{s(u=>[d,...u])});function c(){o.parentElement||document.body.appendChild(o),n.current=!0}function l(){o.parentElement?.removeChild(o),n.current=!1}return it(()=>(e?r?r(c):c():l(),l),[e]),it(()=>{i.length&&(i.forEach(d=>d()),s(AR))},[i]),[o,a]}var DR=M(require("react"));function kR(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var qk=`rc-util-locker-${Date.now()}`,LR=0;function my(e){let t=!!e,[o]=DR.useState(()=>(LR+=1,`${qk}_${LR}`));it(()=>{if(t){let n=zh(document.body).width,r=kR();In(`
|
|
35
35
|
html body {
|
|
36
36
|
overflow-y: hidden;
|
|
37
37
|
${r?`width: calc(100% - ${n}px);`:""}
|
|
38
|
-
}`,o)}else Tr(o);return()=>{Tr(o)}},[t,o])}var ym=require("react"),oa=[],Kk=200,DR=0;var _R=e=>{if(e.key==="Escape"&&!e.isComposing){if(Date.now()-DR<Kk)return;let o=oa.length;for(let n=o-1;n>=0;n-=1)oa[n].onEsc({top:n===o-1,event:e})}},FR=()=>{DR=Date.now()};function Gk(){window.addEventListener("keydown",_R),window.addEventListener("compositionend",FR)}function qk(){oa.length===0&&(window.removeEventListener("keydown",_R),window.removeEventListener("compositionend",FR))}function py(e,t){let o=Co(),n=Ie(t),r=()=>{oa.find(s=>s.id===o)||oa.push({id:o,onEsc:n})},i=()=>{oa=oa.filter(s=>s.id!==o)};(0,ym.useMemo)(()=>{e?r():e||i()},[e]),(0,ym.useEffect)(()=>{if(e)return r(),Gk(),()=>{i(),qk()}},[e])}var zR=e=>e===!1?!1:!Ut()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e,Xk=pr.forwardRef((e,t)=>{let{open:o,autoLock:n,getContainer:r,debug:i,autoDestroy:s=!0,children:a,onEsc:c}=e,[l,d]=pr.useState(o),u=l||o;pr.useEffect(()=>{(s||o)&&d(o)},[o,s]);let[m,f]=pr.useState(()=>zR(r));pr.useEffect(()=>{let v=zR(r);f(()=>v??null)});let[g,p]=uy(u&&!m,i),h=m??g;my(n&&o&&Ut()&&(h===g||h===document.body)),py(o,c);let y=null;a&&dr(a)&&t&&(y=Po(a));let x=bo(y,t);if(!u||!Ut()||m===void 0)return null;let b=h===!1||dy(),S=a;return t&&(S=pr.cloneElement(a,{ref:x})),pr.createElement(hm.Provider,{value:p},b?S:(0,BR.createPortal)(S,h))}),HR=Xk;var na=HR;var xm=M(require("react"));var fr=M(require("react"));var Lr=M(require("react")),bm=Lr.createContext(null);function VR({children:e,onBatchResize:t}){let o=Lr.useRef(0),n=Lr.useRef([]),r=Lr.useContext(bm),i=Lr.useCallback((s,a,c)=>{o.current+=1;let l=o.current;n.current.push({size:s,element:a,data:c}),Promise.resolve().then(()=>{l===o.current&&(t?.(n.current),n.current=[])}),r?.(s,a,c)},[t,r]);return Lr.createElement(bm.Provider,{value:i},e)}var zc=M(require("react"));var ts=new Map;function Yk(e){e.forEach(t=>{let{target:o}=t;ts.get(o)?.forEach(n=>n(o))})}var fy;function WR(){return fy||(fy=new ResizeObserver(Yk)),fy}function jR(e,t){ts.has(e)||(ts.set(e,new Set),WR().observe(e)),ts.get(e).add(t)}function UR(e,t){ts.has(e)&&(ts.get(e).delete(t),ts.get(e).size||(WR().unobserve(e),ts.delete(e)))}function cl(e,t,o,n){let r=zc.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),i=Ie(c=>{let{width:l,height:d}=c.getBoundingClientRect(),{offsetWidth:u,offsetHeight:m}=c,f=Math.floor(l),g=Math.floor(d);if(r.current.width!==f||r.current.height!==g||r.current.offsetWidth!==u||r.current.offsetHeight!==m){let p={width:f,height:g,offsetWidth:u,offsetHeight:m};r.current=p;let h=u===Math.round(l)?l:u,y=m===Math.round(d)?d:m,x={...p,offsetWidth:h,offsetHeight:y};n?.(x,c),Promise.resolve().then(()=>{o?.(x,c)})}}),s=typeof t=="function",a=zc.useRef(0);zc.useEffect(()=>{let c=s?t():t;return c&&e?jR(c,i):e&&s&&(a.current+=1),()=>{c&&UR(c,i)}},[e,s?a.current:t])}function Zk(e,t){let{children:o,disabled:n,onResize:r,data:i}=e,s=fr.useRef(null),a=fr.useContext(bm),c=typeof o=="function",l=c?o(s):o,d=!c&&fr.isValidElement(l)&&dr(l),u=d?Po(l):null,m=bo(u,s),f=()=>Gn(s.current);return fr.useImperativeHandle(t,()=>f()),cl(!n,f,r,(g,p)=>{a?.(g,p,i)}),d?fr.cloneElement(l,{ref:m}):l}var Qk=fr.forwardRef(Zk),KR=Qk;function gy(){return gy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},gy.apply(this,arguments)}var Jk="rc-observer-key";function eL(e,t){let{children:o}=e;return(typeof o=="function"?[o]:co(o)).map((r,i)=>{let s=r?.key||`${Jk}-${i}`;return xm.createElement(KR,gy({},e,{key:s,ref:i===0?t:void 0}),r)})}var GR=xm.forwardRef(eL);GR.Collection=VR;var sn=GR;var ft=M(require("react"));var Mn=M(require("react")),sE=require("react");var dl=M(require("react")),hy=dl.createContext({}),tL=e=>{let{children:t,...o}=e,n=dl.useMemo(()=>({motion:o.motion}),[o.motion]);return dl.createElement(hy.Provider,{value:n},t)},yy=tL;var ra=M(require("react")),$i=require("react");var gr="none",Bc="appear",Hc="enter",Vc="leave",by="none",Tn="prepare",Qr="start",Ei="active",vm="end",Sm="prepared";var JR=M(require("react")),eE=require("react");function qR(e,t){let o={};return o[e.toLowerCase()]=t.toLowerCase(),o[`Webkit${e}`]=`webkit${t}`,o[`Moz${e}`]=`moz${t}`,o[`ms${e}`]=`MS${t}`,o[`O${e}`]=`o${t.toLowerCase()}`,o}function oL(e,t){let o={animationend:qR("Animation","AnimationEnd"),transitionend:qR("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete o.animationend.animation,"TransitionEvent"in t||delete o.transitionend.transition),o}var nL=oL(Ut(),typeof window<"u"?window:{}),XR={};Ut()&&({style:XR}=document.createElement("div"));var Cm={};function YR(e){if(Cm[e])return Cm[e];let t=nL[e];if(t){let o=Object.keys(t),n=o.length;for(let r=0;r<n;r+=1){let i=o[r];if(Object.prototype.hasOwnProperty.call(t,i)&&i in XR)return Cm[e]=t[i],Cm[e]}}return""}var ZR=YR("animationend"),QR=YR("transitionend"),wm=!!(ZR&&QR),xy=ZR||"animationend",vy=QR||"transitionend";function Sy(e,t){if(!e)return null;if(typeof e=="object"){let o=t.replace(/-\w/g,n=>n[1].toUpperCase());return e[o]}return`${e}-${t}`}var tE=e=>{let t=(0,eE.useRef)();function o(r){r&&(r.removeEventListener(vy,e),r.removeEventListener(xy,e))}function n(r){t.current&&t.current!==r&&o(t.current),r&&r!==t.current&&(r.addEventListener(vy,e),r.addEventListener(xy,e),t.current=r)}return JR.useEffect(()=>()=>{o(t.current),t.current=null},[]),[n,o]};var Rm=require("react"),rL=Ut()?Rm.useLayoutEffect:Rm.useEffect,Em=rL;var nE=M(require("react"));var $m=M(require("react")),oE=()=>{let e=$m.useRef(null);function t(){He.cancel(e.current)}function o(n,r=2){t();let i=He(()=>{r<=1?n({isCanceled:()=>i!==e.current}):o(n,r-1)});e.current=i}return $m.useEffect(()=>()=>{t()},[]),[o,t]};var iL=[Tn,Qr,Ei,vm],sL=[Tn,Sm],Cy=!1,rE=!0;function Im(e){return e===Ei||e===vm}var iE=(e,t,o)=>{let[n,r]=Ua(by),[i,s]=oE();function a(){r(Tn,!0)}let c=t?sL:iL;return Em(()=>{if(n!==by&&n!==vm){let l=c.indexOf(n),d=c[l+1],u=o(n);u===Cy?r(d,!0):d&&i(m=>{function f(){m.isCanceled()||r(d,!0)}u===!0?f():Promise.resolve(u).then(f)})}},[e,n]),nE.useEffect(()=>()=>{s()},[]),[a,n]};function wy(e,t,o,{motionEnter:n=!0,motionAppear:r=!0,motionLeave:i=!0,motionDeadline:s,motionLeaveImmediately:a,onAppearPrepare:c,onEnterPrepare:l,onLeavePrepare:d,onAppearStart:u,onEnterStart:m,onLeaveStart:f,onAppearActive:g,onEnterActive:p,onLeaveActive:h,onAppearEnd:y,onEnterEnd:x,onLeaveEnd:b,onVisibleChanged:S}){let[v,C]=ra.useState(),[R,w]=Ih(gr),[I,P]=ra.useState([null,null]),N=R(),E=(0,$i.useRef)(!1),O=(0,$i.useRef)(null);function D(){return o()}let A=(0,$i.useRef)(!1);function F(){w(gr),P([null,null])}let _=Ie(Z=>{let X=R();if(X===gr)return;let k=D();if(Z&&!Z.deadline&&Z.target!==k)return;let W=A.current,H;X===Bc&&W?H=y?.(k,Z):X===Hc&&W?H=x?.(k,Z):X===Vc&&W&&(H=b?.(k,Z)),W&&H!==!1&&F()}),[T]=tE(_),L=Z=>{switch(Z){case Bc:return{[Tn]:c,[Qr]:u,[Ei]:g};case Hc:return{[Tn]:l,[Qr]:m,[Ei]:p};case Vc:return{[Tn]:d,[Qr]:f,[Ei]:h};default:return{}}},z=ra.useMemo(()=>L(N),[N]),[G,V]=iE(N,!e,Z=>{if(Z===Tn){let X=z[Tn];return X?X(D()):Cy}return Z in z&&P([z[Z]?.(D(),null)||null,Z]),Z===Ei&&N!==gr&&(T(D()),s>0&&(clearTimeout(O.current),O.current=setTimeout(()=>{_({deadline:!0})},s))),Z===Sm&&F(),rE}),j=Im(V);A.current=j;let Y=(0,$i.useRef)(null);Em(()=>{if(E.current&&Y.current===t)return;C(t);let Z=E.current;E.current=!0;let X;!Z&&t&&r&&(X=Bc),Z&&t&&n&&(X=Hc),(Z&&!t&&i||!Z&&a&&!t&&i)&&(X=Vc);let k=L(X);X&&(e||k[Tn])?(w(X),G()):w(gr),Y.current=t},[t]),(0,$i.useEffect)(()=>{(N===Bc&&!r||N===Hc&&!n||N===Vc&&!i)&&w(gr)},[r,n,i]),(0,$i.useEffect)(()=>()=>{E.current=!1,clearTimeout(O.current)},[]);let B=ra.useRef(!1);(0,$i.useEffect)(()=>{v&&(B.current=!0),v!==void 0&&N===gr&&((B.current||v)&&S?.(v),B.current=!0)},[v,N]);let U=I[0];z[Tn]&&V===Qr&&(U={transition:"none",...U});let K=I[1];return[R,V,U,v??t,!E.current&&N===gr&&e&&r?"NONE":V===Qr||V===Ei?K===V:!0]}function Ry(e){return e?.length<2}function aE(e){let t=e;typeof e=="object"&&({transitionSupport:t}=e);function o(r,i){return!!(r.motionName&&t&&i!==!1)}let n=Mn.forwardRef((r,i)=>{let{visible:s=!0,removeOnLeave:a=!0,forceRender:c,children:l,motionName:d,leavedClassName:u,eventProps:m}=r,{motion:f}=Mn.useContext(hy),g=o(r,f),p=(0,sE.useRef)();function h(){return Gn(p.current)}let[y,x,b,S,v]=wy(g,s,h,r),C=y(),R=Mn.useRef(S);S&&(R.current=!0);let w=Mn.useMemo(()=>{let N={};return Object.defineProperties(N,{nativeElement:{enumerable:!0,get:h},inMotion:{enumerable:!0,get:()=>()=>y()!==gr},enableMotion:{enumerable:!0,get:()=>()=>g}}),N},[]);Mn.useImperativeHandle(i,()=>w,[]);let I=Mn.useRef(0);v&&(I.current+=1);let P=Mn.useMemo(()=>{if(v==="NONE")return null;let N,E={...m,visible:s};if(!l)N=null;else if(C===gr)S?N=l({...E},p):!a&&R.current&&u?N=l({...E,className:u},p):c||!a&&!u?N=l({...E,style:{display:"none"}},p):N=null;else{let O;x===Tn?O="prepare":Im(x)?O="active":x===Qr&&(O="start");let D=Sy(d,`${C}-${O}`);N=l({...E,className:$(Sy(d,C),{[D]:D&&O,[d]:typeof d=="string"}),style:b},p)}return N},[I.current]);if(Ry(l)&&Rc(P)){let N=Po(P);if(N!==p)return Mn.cloneElement(P,{ref:Mt(N,p)})}return P});return n.displayName="CSSMotion",n}var Nm=aE(wm);var ia=M(require("react"));var Pm="add",Tm="keep",Mm="remove",Am="removed";function aL(e){let t;return e&&typeof e=="object"&&"key"in e?t=e:t={key:e},{...t,key:String(t.key)}}function Om(e=[]){return e.map(aL)}function lE(e=[],t=[]){let o=[],n=0,r=t.length,i=Om(e),s=Om(t);i.forEach(l=>{let d=!1;for(let u=n;u<r;u+=1){let m=s[u];if(m.key===l.key){n<u&&(o=o.concat(s.slice(n,u).map(f=>({...f,status:Pm}))),n=u),o.push({...m,status:Tm}),n+=1,d=!0;break}}d||o.push({...l,status:Mm})}),n<r&&(o=o.concat(s.slice(n).map(l=>({...l,status:Pm}))));let a={};return o.forEach(({key:l})=>{a[l]=(a[l]||0)+1}),Object.keys(a).filter(l=>a[l]>1).forEach(l=>{o=o.filter(({key:d,status:u})=>d!==l||u!==Mm),o.forEach(d=>{d.key===l&&(d.status=Tm)})}),o}function Ey(){return Ey=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Ey.apply(this,arguments)}var lL=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function cL(e,t=Nm){class o extends ia.Component{static defaultProps={component:"div"};state={keyEntities:[]};static getDerivedStateFromProps({keys:r},{keyEntities:i}){let s=Om(r);return{keyEntities:lE(i,s).filter(c=>{let l=i.find(({key:d})=>c.key===d);return!(l&&l.status===Am&&c.status===Mm)})}}removeKey=r=>{this.setState(i=>({keyEntities:i.keyEntities.map(a=>a.key!==r?a:{...a,status:Am})}),()=>{let{keyEntities:i}=this.state;i.filter(({status:a})=>a!==Am).length===0&&this.props.onAllRemoved&&this.props.onAllRemoved()})};render(){let{keyEntities:r}=this.state,{component:i,children:s,onVisibleChanged:a,onAllRemoved:c,...l}=this.props,d=i||ia.Fragment,u={};return lL.forEach(m=>{u[m]=l[m],delete l[m]}),delete l.keys,ia.createElement(d,l,r.map(({status:m,...f},g)=>{let p=m===Pm||m===Tm;return ia.createElement(t,Ey({},u,{key:f.key,visible:p,eventProps:f,onVisibleChanged:h=>{a?.(h,{key:f.key}),h||this.removeKey(f.key)}}),Ry(s)?h=>s({...h,index:g}):(h,y)=>s({...h,index:g},y))}))}}return o}var dL=cL(wm);var po=Nm;var On=M(require("react"));var km=M(require("react"));function $y(e){let{prefixCls:t,align:o,arrow:n,arrowPos:r}=e,{className:i,content:s,style:a}=n||{},{x:c=0,y:l=0}=r,d=km.useRef(null);if(!o||!o.points)return null;let u={position:"absolute"};if(o.autoArrow!==!1){let m=o.points[0],f=o.points[1],g=m[0],p=m[1],h=f[0],y=f[1];g===h||!["t","b"].includes(g)?u.top=l:g==="t"?u.top=0:u.bottom=0,p===y||!["l","r"].includes(p)?u.left=c:p==="l"?u.left=0:u.right=0}return km.createElement("div",{ref:d,className:$(`${t}-arrow`,i),style:{...u,...a}},s)}var Ny=M(require("react"));function Iy(){return Iy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Iy.apply(this,arguments)}function Py(e){let{prefixCls:t,open:o,zIndex:n,mask:r,motion:i,mobile:s}=e;return r?Ny.createElement(po,Iy({},i,{motionAppear:!0,visible:o,removeOnLeave:!0}),({className:a})=>Ny.createElement("div",{style:{zIndex:n},className:$(`${t}-mask`,s&&`${t}-mobile-mask`,a)})):null}var cE=M(require("react")),uL=cE.memo(({children:e})=>e,(e,t)=>t.cache),dE=uL;function Wc(e,t,o,n,r,i,s,a){let c="auto",l=e?{}:{left:"-1000vw",top:"-1000vh",right:c,bottom:c};if(!e&&(t||!o)){let{points:d}=n,u=n.dynamicInset||n._experimental?.dynamicInset,m=u&&d[0][1]==="r",f=u&&d[0][0]==="b";m?(l.right=r,l.left=c):(l.left=s,l.right=c),f?(l.bottom=i,l.top=c):(l.top=a,l.bottom=c)}return l}function Ty(){return Ty=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Ty.apply(this,arguments)}var mL=On.forwardRef((e,t)=>{let{onEsc:o,popup:n,className:r,prefixCls:i,style:s,target:a,onVisibleChanged:c,open:l,keepDom:d,fresh:u,onClick:m,mask:f,arrow:g,arrowPos:p,align:h,motion:y,maskMotion:x,mobile:b,forceRender:S,getPopupContainer:v,autoDestroy:C,portal:R,children:w,zIndex:I,onMouseEnter:P,onMouseLeave:N,onPointerEnter:E,onPointerDownCapture:O,ready:D,offsetX:A,offsetY:F,offsetR:_,offsetB:T,onAlign:L,onPrepare:z,onResize:G,stretch:V,targetWidth:j,targetHeight:Y}=e,B=typeof n=="function"?n():n,U=l||d,K=!!b,[Z,X,k]=On.useMemo(()=>b?[b.mask,b.maskMotion,b.motion]:[f,x,y],[b,f,x,y]),W=v?.length>0,[H,ee]=On.useState(!v||!W);it(()=>{!H&&W&&a&&ee(!0)},[H,W,a]);let J=Ie((re,ie)=>{G?.(re,ie),L()}),te=Wc(K,D,l,h,_,T,A,F);if(!H)return null;let le={};return V&&(V.includes("height")&&Y?le.height=Y:V.includes("minHeight")&&Y&&(le.minHeight=Y),V.includes("width")&&j?le.width=j:V.includes("minWidth")&&j&&(le.minWidth=j)),l||(le.pointerEvents="none"),On.createElement(R,{open:S||U,getContainer:v&&(()=>v(a)),autoDestroy:C,onEsc:o},On.createElement(Py,{prefixCls:i,open:l,zIndex:I,mask:Z,motion:X,mobile:K}),On.createElement(sn,{onResize:J,disabled:!l},re=>On.createElement(po,Ty({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:S,leavedClassName:`${i}-hidden`},k,{onAppearPrepare:z,onEnterPrepare:z,visible:l,onVisibleChanged:ie=>{y?.onVisibleChanged?.(ie),c(ie)}}),({className:ie,style:Se},de)=>{let Ee=$(i,ie,r,{[`${i}-mobile`]:K});return On.createElement("div",{ref:Mt(re,t,de),className:Ee,style:{"--arrow-x":`${p.x||0}px`,"--arrow-y":`${p.y||0}px`,...te,...le,...Se,boxSizing:"border-box",zIndex:I,...s},onMouseEnter:P,onMouseLeave:N,onPointerEnter:E,onClick:m,onPointerDownCapture:O},g&&On.createElement($y,{prefixCls:i,arrow:g,arrowPos:p,align:h}),On.createElement(dE,{cache:!l&&!u},B))})),w)}),Lm=mL;var My=M(require("react")),pL=My.createContext(null),ul=pL,Dm=My.createContext(null);var mE=M(require("react"));function uE(e){return e?Array.isArray(e)?e:[e]:[]}function Oy(e,t,o){return mE.useMemo(()=>{let n=uE(t??e),r=uE(o??e),i=new Set(n),s=new Set(r);return i.has("hover")&&!i.has("click")&&i.add("touch"),s.has("hover")&&!s.has("click")&&s.add("touch"),[i,s]},[e,t,o])}var sa=M(require("react"));function fL(e=[],t=[],o){let n=(r,i)=>r[i]||"";return o?n(e,0)===n(t,0):n(e,0)===n(t,0)&&n(e,1)===n(t,1)}function _m(e,t,o,n){let{points:r}=o,i=Object.keys(e);for(let s=0;s<i.length;s+=1){let a=i[s];if(fL(e[a]?.points,r,n))return`${t}-placement-${a}`}return""}function os(e){return e.ownerDocument.defaultView}function Uc(e){let t=[],o=e?.parentElement,n=["hidden","scroll","clip","auto"];for(;o;){let{overflowX:r,overflowY:i,overflow:s}=os(o).getComputedStyle(o);[r,i,s].some(a=>n.includes(a))&&t.push(o),o=o.parentElement}return t}function ml(e,t=1){return Number.isNaN(e)?t:e}function jc(e){return ml(parseFloat(e),0)}function Ay(e,t){let o={...e};return(t||[]).forEach(n=>{if(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)return;let{overflow:r,overflowClipMargin:i,borderTopWidth:s,borderBottomWidth:a,borderLeftWidth:c,borderRightWidth:l}=os(n).getComputedStyle(n),d=n.getBoundingClientRect(),{offsetHeight:u,clientHeight:m,offsetWidth:f,clientWidth:g}=n,p=jc(s),h=jc(a),y=jc(c),x=jc(l),b=ml(Math.round(d.width/f*1e3)/1e3),S=ml(Math.round(d.height/u*1e3)/1e3),v=(f-g-y-x)*b,C=(u-m-p-h)*S,R=p*S,w=h*S,I=y*b,P=x*b,N=0,E=0;if(r==="clip"){let _=jc(i);N=_*b,E=_*S}let O=d.x+I-N,D=d.y+R-E,A=O+d.width+2*N-I-P-v,F=D+d.height+2*E-R-w-C;o.left=Math.max(o.left,O),o.top=Math.max(o.top,D),o.right=Math.min(o.right,A),o.bottom=Math.min(o.bottom,F)}),o}function pE(e,t=0){let o=`${t}`,n=o.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(o)}function fE(e,t){let[o,n]=t||[];return[pE(e.width,o),pE(e.height,n)]}function gE(e=""){return[e[0],e[1]]}function pl(e,t){let o=t[0],n=t[1],r,i;return o==="t"?i=e.y:o==="b"?i=e.y+e.height:i=e.y+e.height/2,n==="l"?r=e.x:n==="r"?r=e.x+e.width:r=e.x+e.width/2,{x:r,y:i}}function ns(e,t){let o={t:"b",b:"t",l:"r",r:"l"},n=[...e];return n[t]=o[e[t]]||"c",n}function hE(e){return e.join("")}function Kc(e,t,o,n,r,i,s,a){let[c,l]=sa.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:r[n]||{}}),d=sa.useRef(0),u=sa.useMemo(()=>!t||a?[]:Uc(t),[t]),m=sa.useRef({});e||(()=>{m.current={}})();let g=Ie(()=>{if(t&&o&&e&&!a){let Ge=function(Be,yn,on=le){let fc=A.x+Be,Bs=A.y+yn,nu=fc+B,ru=Bs+Y,iu=Math.max(fc,on.left),GS=Math.max(Bs,on.top),Jg=Math.min(nu,on.right),eh=Math.min(ru,on.bottom);return Math.max(0,(Jg-iu)*(eh-GS))},ye=function(){oe=A.y+Pe,me=oe+Y,Q=A.x+$e,ge=Q+B},y=t,x=y.ownerDocument,b=os(y),{position:S}=b.getComputedStyle(y),v=y.style.left,C=y.style.top,R=y.style.right,w=y.style.bottom,I=y.style.overflow,P=y.style.overflowX,N=y.style.overflowY,E={...r[n],...i},O=x.createElement("div");y.parentElement?.appendChild(O),O.style.left=`${y.offsetLeft}px`,O.style.top=`${y.offsetTop}px`,O.style.position=S,O.style.height=`${y.offsetHeight}px`,O.style.width=`${y.offsetWidth}px`,y.style.left="0",y.style.top="0",y.style.right="auto",y.style.bottom="auto",y.style.overflow="hidden";let D;if(Array.isArray(o))D={x:o[0],y:o[1],width:0,height:0};else{let Be=o.getBoundingClientRect();Be.x=Be.x??Be.left,Be.y=Be.y??Be.top,D={x:Be.x,y:Be.y,width:Be.width,height:Be.height}}let A=y.getBoundingClientRect(),{height:F,width:_}=b.getComputedStyle(y);A.x=A.x??A.left,A.y=A.y??A.top;let{clientWidth:T,clientHeight:L,scrollWidth:z,scrollHeight:G,scrollTop:V,scrollLeft:j}=x.documentElement,Y=A.height,B=A.width,U=D.height,K=D.width,Z={left:0,top:0,right:T,bottom:L},X={left:-j,top:-V,right:z-j,bottom:G-V},{htmlRegion:k}=E,W="visible",H="visibleFirst";k!=="scroll"&&k!==H&&(k=W);let ee=k===H,J=Ay(X,u),te=Ay(Z,u),le=k===W?te:J,re=ee?te:le;y.style.left="auto",y.style.top="auto",y.style.right="0",y.style.bottom="0";let ie=y.getBoundingClientRect();y.style.left=v,y.style.top=C,y.style.right=R,y.style.bottom=w,y.style.overflow=I,y.style.overflowX=P,y.style.overflowY=N,y.parentElement?.removeChild(O);let Se=ml(Math.round(B/parseFloat(_)*1e3)/1e3),de=ml(Math.round(Y/parseFloat(F)*1e3)/1e3);if(Se===0||de===0||Xr(o)&&!Us(o))return;let{offset:Ee,targetOffset:ae}=E,[Ne,he]=fE(A,Ee),[ne,fe]=fE(D,ae);D.x-=ne,D.y-=fe;let[ce,we]=E.points||[],Le=gE(we),Ce=gE(ce),pe=pl(D,Le),ue=pl(A,Ce),se={...E},ve=[Ce,Le],$e=pe.x-ue.x+Ne,Pe=pe.y-ue.y+he,qe=Ge($e,Pe),mt=Ge($e,Pe,te),Qe=pl(D,["t","l"]),$t=pl(A,["t","l"]),wt=pl(D,["b","r"]),gt=pl(A,["b","r"]),ht=E.overflow||{},{adjustX:yt,adjustY:Rt,shiftX:_e,shiftY:xt}=ht,be=Be=>typeof Be=="boolean"?Be:Be>=0,oe,me,Q,ge;ye();let ke=be(Rt),Je=Ce[0]===Le[0];if(ke&&Ce[0]==="t"&&(me>re.bottom||m.current.bt)){let Be=Pe;Je?Be-=Y-U:Be=Qe.y-gt.y-he;let yn=Ge($e,Be),on=Ge($e,Be,te);yn>qe||yn===qe&&(!ee||on>=mt)?(m.current.bt=!0,Pe=Be,he=-he,ve=[ns(ve[0],0),ns(ve[1],0)]):m.current.bt=!1}if(ke&&Ce[0]==="b"&&(oe<re.top||m.current.tb)){let Be=Pe;Je?Be+=Y-U:Be=wt.y-$t.y-he;let yn=Ge($e,Be),on=Ge($e,Be,te);yn>qe||yn===qe&&(!ee||on>=mt)?(m.current.tb=!0,Pe=Be,he=-he,ve=[ns(ve[0],0),ns(ve[1],0)]):m.current.tb=!1}let At=be(yt),Wt=Ce[1]===Le[1];if(At&&Ce[1]==="l"&&(ge>re.right||m.current.rl)){let Be=$e;Wt?Be-=B-K:Be=Qe.x-gt.x-Ne;let yn=Ge(Be,Pe),on=Ge(Be,Pe,te);yn>qe||yn===qe&&(!ee||on>=mt)?(m.current.rl=!0,$e=Be,Ne=-Ne,ve=[ns(ve[0],1),ns(ve[1],1)]):m.current.rl=!1}if(At&&Ce[1]==="r"&&(Q<re.left||m.current.lr)){let Be=$e;Wt?Be+=B-K:Be=wt.x-$t.x-Ne;let yn=Ge(Be,Pe),on=Ge(Be,Pe,te);yn>qe||yn===qe&&(!ee||on>=mt)?(m.current.lr=!0,$e=Be,Ne=-Ne,ve=[ns(ve[0],1),ns(ve[1],1)]):m.current.lr=!1}se.points=[hE(ve[0]),hE(ve[1])],ye();let Pt=_e===!0?0:_e;typeof Pt=="number"&&(Q<te.left&&($e-=Q-te.left-Ne,D.x+K<te.left+Pt&&($e+=D.x-te.left+K-Pt)),ge>te.right&&($e-=ge-te.right-Ne,D.x>te.right-Pt&&($e+=D.x-te.right+Pt)));let to=xt===!0?0:xt;typeof to=="number"&&(oe<te.top&&(Pe-=oe-te.top-he,D.y+U<te.top+to&&(Pe+=D.y-te.top+U-to)),me>te.bottom&&(Pe-=me-te.bottom-he,D.y>te.bottom-to&&(Pe+=D.y-te.bottom+to)));let ao=A.x+$e,$n=ao+B,ze=A.y+Pe,ot=ze+Y,dt=D.x,Ae=dt+K,je=D.y,Tt=je+U,mo=Math.max(ao,dt),vt=Math.min($n,Ae),Do=(mo+vt)/2-ao,hn=Math.max(ze,je),Pr=Math.min(ot,Tt),Ki=(hn+Pr)/2-ze;s?.(t,se);let Kr=ie.right-A.x-($e+A.width),xi=ie.bottom-A.y-(Pe+A.height);Se===1&&($e=Math.floor($e),Kr=Math.floor(Kr)),de===1&&(Pe=Math.floor(Pe),xi=Math.floor(xi));let pc={ready:!0,offsetX:$e/Se,offsetY:Pe/de,offsetR:Kr/Se,offsetB:xi/de,arrowX:Do/Se,arrowY:Ki/de,scaleX:Se,scaleY:de,align:se};l(pc)}}),p=()=>{d.current+=1;let y=d.current;Promise.resolve().then(()=>{d.current===y&&g()})},h=()=>{l(y=>({...y,ready:!1}))};return it(h,[n]),it(()=>{e||h()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,p]}var Fm=M(require("react"));function Gc(){let e=Fm.useRef(null),t=()=>{e.current&&(clearTimeout(e.current),e.current=null)},o=(n,r)=>{t(),r===0?n():e.current=setTimeout(()=>{n()},r*1e3)};return Fm.useEffect(()=>()=>{t()},[]),o}function ky(e,t,o,n,r){it(()=>{if(e&&t&&o){let u=function(){n(),r()},i=t,s=o,a=Uc(i),c=Uc(s),l=os(s),d=new Set([l,...a,...c]);return d.forEach(m=>{m.addEventListener("scroll",u,{passive:!0})}),l.addEventListener("resize",u,{passive:!0}),n(),()=>{d.forEach(m=>{m.removeEventListener("scroll",u),l.removeEventListener("resize",u)})}}},[e,t,o])}var qc=M(require("react"));function Ly(e,t,o,n,r,i,s,a){let c=qc.useRef(e);c.current=e;let l=qc.useRef(!1);qc.useEffect(()=>{if(t&&n&&(!r||i)){let u=()=>{l.current=!1},m=p=>{c.current&&!s(p.composedPath?.()?.[0]||p.target)&&!l.current&&a(!1)},f=os(n);f.addEventListener("pointerdown",u,!0),f.addEventListener("mousedown",m,!0),f.addEventListener("contextmenu",m,!0);let g=qa(o);return g&&(g.addEventListener("mousedown",m,!0),g.addEventListener("contextmenu",m,!0)),()=>{f.removeEventListener("pointerdown",u,!0),f.removeEventListener("mousedown",m,!0),f.removeEventListener("contextmenu",m,!0),g&&(g.removeEventListener("mousedown",m,!0),g.removeEventListener("contextmenu",m,!0))}}},[t,o,n,r,i]);function d(){l.current=!0}return d}var xo=M(require("react"));var Xc=M(require("react"));function Dy(){let[e,t]=Xc.default.useState(null),[o,n]=Xc.default.useState(!1),[r,i]=Xc.default.useState(!1),s=Xc.default.useRef(null),a=Ie(l=>{l===!1?(s.current=null,n(!1)):r&&o?s.current=l:(n(!0),t(l),s.current=null,o||i(!0))}),c=Ie(l=>{l?(i(!1),s.current&&(t(s.current),s.current=null)):(i(!1),s.current=null)});return[a,o,e,c]}var Yc=M(require("react"));function _y(){return _y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},_y.apply(this,arguments)}var gL=e=>{let{prefixCls:t,isMobile:o,ready:n,open:r,align:i,offsetR:s,offsetB:a,offsetX:c,offsetY:l,arrowPos:d,popupSize:u,motion:m,uniqueContainerClassName:f,uniqueContainerStyle:g}=e,p=`${t}-unique-container`,[h,y]=Yc.default.useState(!1),x=Wc(o,n,r,i,s,a,c,l),b=Yc.default.useRef(x);n&&(b.current=x);let S={};return u&&(S.width=u.width,S.height=u.height),Yc.default.createElement(po,_y({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${p}-hidden`},m,{visible:r,onVisibleChanged:v=>{y(v)}}),({className:v,style:C})=>{let R=$(p,v,f,{[`${p}-visible`]:h});return Yc.default.createElement("div",{className:R,style:{"--arrow-x":`${d?.x||0}px`,"--arrow-y":`${d?.y||0}px`,...b.current,...S,...C,...g}})})},yE=gL;var hL=({children:e,postTriggerProps:t})=>{let[o,n,r,i]=Dy(),s=xo.useMemo(()=>!r||!t?r:t(r),[r,t]),[a,c]=xo.useState(null),[l,d]=xo.useState(null),u=xo.useRef(null),m=Ie(T=>{u.current=T,Xr(T)&&a!==T&&c(T)}),f=xo.useRef(null),g=Gc(),p=Ie((T,L)=>{f.current=L,g(()=>{o(T)},T.delay)}),h=T=>{g(()=>{f.current?.()||o(!1)},T)},y=Ie(T=>{i(T)}),[x,b,S,v,C,R,w,,,I,P]=Kc(n,a,s?.target,s?.popupPlacement,s?.builtinPlacements||{},s?.popupAlign,void 0,!1),N=xo.useMemo(()=>{if(!s)return"";let T=_m(s.builtinPlacements||{},s.prefixCls||"",I,!1);return $(T,s.getPopupClassNameFromAlign?.(I))},[I,s?.getPopupClassNameFromAlign,s?.builtinPlacements,s?.prefixCls]),E=xo.useMemo(()=>({show:p,hide:h}),[]);xo.useEffect(()=>{P()},[s?.target]);let O=Ie(()=>(P(),Promise.resolve())),D=xo.useRef({}),A=xo.useContext(ul),F=xo.useMemo(()=>({registerSubPopup:(T,L)=>{D.current[T]=L,A?.registerSubPopup(T,L)}}),[A]),_=s?.prefixCls;return xo.createElement(Dm.Provider,{value:E},e,s&&xo.createElement(ul.Provider,{value:F},xo.createElement(Lm,{ref:m,portal:na,onEsc:s.onEsc,prefixCls:_,popup:s.popup,className:$(s.popupClassName,N,`${_}-unique-controlled`),style:s.popupStyle,target:s.target,open:n,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:y,ready:x,offsetX:b,offsetY:S,offsetR:v,offsetB:C,onAlign:P,onPrepare:O,onResize:T=>d({width:T.offsetWidth,height:T.offsetHeight}),arrowPos:{x:R,y:w},align:I,zIndex:s.zIndex,mask:s.mask,arrow:s.arrow,motion:s.popupMotion,maskMotion:s.maskMotion,getPopupContainer:s.getPopupContainer},xo.createElement(yE,{prefixCls:_,isMobile:!1,ready:x,open:n,align:I,offsetR:v,offsetB:C,offsetX:b,offsetY:S,arrowPos:{x:R,y:w},popupSize:l,motion:s.popupMotion,uniqueContainerClassName:$(s.uniqueContainerClassName,N),uniqueContainerStyle:s.uniqueContainerStyle}))))},Fy=hL;var bE=require("react-dom");function yL(e=na){return ft.forwardRef((o,n)=>{let{prefixCls:r="rc-trigger-popup",children:i,action:s="hover",showAction:a,hideAction:c,disabled:l=!1,popupVisible:d,defaultPopupVisible:u,onOpenChange:m,afterOpenChange:f,onPopupVisibleChange:g,afterPopupVisibleChange:p,mouseEnterDelay:h,mouseLeaveDelay:y=.1,focusDelay:x,blurDelay:b,mask:S,maskClosable:v=!0,getPopupContainer:C,forceRender:R,autoDestroy:w,popup:I,popupClassName:P,uniqueContainerClassName:N,uniqueContainerStyle:E,popupStyle:O,popupPlacement:D,builtinPlacements:A={},popupAlign:F,zIndex:_,stretch:T,getPopupClassNameFromAlign:L,fresh:z,unique:G,alignPoint:V,onPopupClick:j,onPopupAlign:Y,arrow:B,popupMotion:U,maskMotion:K,mobile:Z,...X}=o,k=w||!1,W=d===void 0,H=!!Z,ee=ft.useRef({}),J=ft.useContext(ul),te=ft.useMemo(()=>({registerSubPopup:(Te,It)=>{ee.current[Te]=It,J?.registerSubPopup(Te,It)}}),[J]),le=ft.useContext(Dm),re=Co(),[ie,Se]=ft.useState(null),de=ft.useRef(null),Ee=Ie(Te=>{de.current=Te,Xr(Te)&&ie!==Te&&Se(Te),J?.registerSubPopup(re,Te)}),[ae,Ne]=ft.useState(null),he=ft.useRef(null),ne=Ie(Te=>{let It=Gn(Te);Xr(It)&&ae!==It&&(Ne(It),he.current=It)}),fe={},ce=Ie(Te=>{let It=ae;return It?.contains(Te)||qa(It)?.host===Te||Te===It||ie?.contains(Te)||qa(ie)?.host===Te||Te===ie||Object.values(ee.current).some(su=>su?.contains(Te)||Te===su)}),we=B?{...B!==!0?B:{}}:null,[Le,Ce]=st(u||!1,d),pe=Le||!1,ue=pe&&!l,se=ft.useMemo(()=>{let Te=typeof i=="function"?i({open:ue}):i;return ft.Children.only(Te)},[i,ue]),ve=se?.props||{},$e=Ie(()=>ue),Pe=Ie((Te=0)=>({popup:I,target:ae,delay:Te,prefixCls:r,popupClassName:P,uniqueContainerClassName:N,uniqueContainerStyle:E,popupStyle:O,popupPlacement:D,builtinPlacements:A,popupAlign:F,zIndex:_,mask:S,maskClosable:v,popupMotion:U,maskMotion:K,arrow:we,getPopupContainer:C,getPopupClassNameFromAlign:L,id:re,onEsc:$t}));it(()=>{le&&G&&ae&&!W&&!J&&(ue?le.show(Pe(h),$e):le.hide(y))},[ue,ae]);let Ge=ft.useRef(ue);Ge.current=ue;let qe=Ie(Te=>{(0,bE.flushSync)(()=>{pe!==Te&&(Ce(Te),m?.(Te),g?.(Te))})}),mt=Gc(),Qe=(Te,It=0)=>{if(d!==void 0){mt(()=>{qe(Te)},It);return}if(le&&G&&W&&!J){Te?le.show(Pe(It),$e):le.hide(It);return}mt(()=>{qe(Te)},It)};function $t({top:Te}){Te&&Qe(!1)}let[wt,gt]=ft.useState(!1);it(Te=>{(!Te||ue)&>(!0)},[ue]);let[ht,yt]=ft.useState(null),[Rt,_e]=ft.useState(null),xt=Te=>{_e([Te.clientX,Te.clientY])},[be,oe,me,Q,ge,ye,ke,Je,At,Wt,Pt]=Kc(ue,ie,V&&Rt!==null?Rt:ae,D,A,F,Y,H),[to,ao]=Oy(s,a,c),$n=to.has("click"),ze=ao.has("click")||ao.has("contextMenu"),ot=Ie(()=>{wt||Pt()});ky(ue,ae,ie,ot,()=>{Ge.current&&V&&ze&&Qe(!1)}),it(()=>{ot()},[Rt,D]),it(()=>{ue&&!A?.[D]&&ot()},[JSON.stringify(F)]);let Ae=ft.useMemo(()=>{let Te=_m(A,r,Wt,V);return $(Te,L?.(Wt))},[Wt,L,A,r,V]);ft.useImperativeHandle(n,()=>({nativeElement:he.current,popupElement:de.current,forceAlign:ot}));let[je,Tt]=ft.useState(0),[mo,vt]=ft.useState(0),jt=()=>{if(T&&ae){let Te=ae.getBoundingClientRect();Tt(Te.width),vt(Te.height)}},Do=()=>{jt(),ot()},hn=Te=>{gt(!1),Pt(),f?.(Te),p?.(Te)},Pr=()=>new Promise(Te=>{jt(),yt(()=>Te)});it(()=>{ht&&(Pt(),ht(),yt(null))},[ht]);function Ur(Te,It,su,HA,qS){fe[Te]=(XS,...VA)=>{(!qS||!qS())&&(HA?.(XS),Qe(It,su)),ve[Te]?.(XS,...VA)}}let Ki=to.has("touch"),Kr=ao.has("touch"),xi=ft.useRef(!1);(Ki||Kr)&&(fe.onTouchStart=(...Te)=>{xi.current=!0,Ge.current&&Kr?Qe(!1):!Ge.current&&Ki&&Qe(!0),ve.onTouchStart?.(...Te)}),($n||ze)&&(fe.onClick=(Te,...It)=>{Ge.current&&ze?Qe(!1):!Ge.current&&$n&&(xt(Te),Qe(!0)),ve.onClick?.(Te,...It),xi.current=!1});let pc=Ly(ue,ze||Kr,ae,ie,S,v,ce,Qe),Be=to.has("hover"),yn=ao.has("hover"),on,fc,Bs=()=>xi.current;if(Be){let Te=It=>{xt(It)};Ur("onMouseEnter",!0,h,Te,Bs),Ur("onPointerEnter",!0,h,Te,Bs),on=It=>{(ue||wt)&&ie?.contains(It.target)&&Qe(!0,h)},V&&(fe.onMouseMove=It=>{ve.onMouseMove?.(It)})}yn&&(Ur("onMouseLeave",!1,y,void 0,Bs),Ur("onPointerLeave",!1,y,void 0,Bs),fc=()=>{Qe(!1,y)}),to.has("focus")&&Ur("onFocus",!0,x),ao.has("focus")&&Ur("onBlur",!1,b),to.has("contextMenu")&&(fe.onContextMenu=(Te,...It)=>{Ge.current&&ao.has("contextMenu")?Qe(!1):(xt(Te),Qe(!0)),Te.preventDefault(),ve.onContextMenu?.(Te,...It)});let nu=ft.useRef(!1);nu.current||=R||ue||wt;let ru={...ve,...fe},iu={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(Te=>{X[Te]&&(iu[Te]=(...It)=>{ru[Te]?.(...It),X[Te](...It)})});let Jg={x:ye,y:ke};cl(ue,ae,Do);let eh=bo(ne,Po(se)),BA=ft.cloneElement(se,{...ru,...iu,ref:eh});return ft.createElement(ft.Fragment,null,BA,nu.current&&(!le||!G)&&ft.createElement(ul.Provider,{value:te},ft.createElement(Lm,{portal:e,ref:Ee,prefixCls:r,popup:I,className:$(P,!H&&Ae),style:O,target:ae,onMouseEnter:on,onMouseLeave:fc,onPointerEnter:on,zIndex:_,open:ue,keepDom:wt,fresh:z,onClick:j,onPointerDownCapture:pc,mask:S,motion:U,maskMotion:K,onVisibleChanged:hn,onPrepare:Pr,forceRender:R,autoDestroy:k,getPopupContainer:C,onEsc:$t,align:Wt,arrow:we,arrowPos:Jg,ready:be,offsetX:oe,offsetY:me,offsetR:Q,offsetB:ge,onAlign:ot,stretch:T,targetWidth:je/Je,targetHeight:mo/At,mobile:Z})))})}var rs=yL(na);var Hm=M(require("react"));var Zc=M(require("react"));function zm(e){return e&&Zc.default.isValidElement(e)&&e.type===Zc.default.Fragment}var bL=(e,t,o)=>Zc.default.isValidElement(e)?Zc.default.cloneElement(e,ct(o)?o(e.props||{}):o):t;function Ro(e,t){return bL(e,e,t)}var Bm=M(require("react")),is="ant",fl="anticon",zy=["outlined","borderless","filled","underlined"],xL=(e,t)=>t||(e?`${is}-${e}`:is),Oe=Bm.createContext({getPrefixCls:xL,iconPrefixCls:fl}),{Consumer:vL}=Oe,xE={};function Ye(e){let t=Bm.useContext(Oe),{getPrefixCls:o,direction:n,getPopupContainer:r,renderEmpty:i}=t,s=t[e];return{classNames:xE,styles:xE,...s,getPrefixCls:o,direction:n,getPopupContainer:r,renderEmpty:i}}var SL=({children:e})=>{let{getPrefixCls:t}=Hm.default.useContext(Oe),o=t();return Hm.default.isValidElement(e)?Hm.default.createElement(po,{visible:!0,motionName:`${o}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:n,className:r})=>Ro(e,i=>({className:$(i.className,r),style:{...i.style,...n}}))):e},vE=SL;var Vm=[null,null];function CL(e){if(Vm[0]!==e){let t={};Object.keys(e).forEach(o=>{t[o]={...e[o],dynamicInset:!1}}),Vm[0]=e,Vm[1]=t}return Vm[1]}var wL=({children:e})=>{let t=o=>{let{id:n,builtinPlacements:r,popup:i}=o,s=ct(i)?i():i,a=CL(r);return{...o,getPopupContainer:null,arrow:!1,popup:By.default.createElement(vE,{key:n},s),builtinPlacements:a}};return By.default.createElement(Fy,{postTriggerProps:t},e)},Wm=wL;var gl=M(require("react")),Hy=gl.createContext(!1),jm=({children:e,disabled:t})=>{let o=gl.useContext(Hy);return gl.createElement(Hy.Provider,{value:t??o},e)},Fo=Hy;var Wy=require("react");var hl=M(require("react")),Vy=hl.createContext(void 0),SE=({children:e,size:t})=>{let o=hl.useContext(Vy);return hl.createElement(Vy.Provider,{value:t||o},e)},aa=Vy;function RL(){let e=(0,Wy.useContext)(Fo),t=(0,Wy.useContext)(aa);return{componentDisabled:e,componentSize:t}}var CE=RL;var UE=require("react");function zo(e){"@babel/helpers - typeof";return zo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zo(e)}function wE(e){if(Array.isArray(e))return e}function RE(e,t){var o=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o!=null){var n,r,i,s,a=[],c=!0,l=!1;try{if(i=(o=o.call(e)).next,t===0){if(Object(o)!==o)return;c=!1}else for(;!(c=(n=i.call(o)).done)&&(a.push(n.value),a.length!==t);c=!0);}catch(d){l=!0,r=d}finally{try{if(!c&&o.return!=null&&(s=o.return(),Object(s)!==s))return}finally{if(l)throw r}}return a}}function EE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
39
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Um(e,t){return wE(e)||RE(e,t)||ju(e,t)||EE()}function $E(e,t){if(zo(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,t||"default");if(zo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Km(e){var t=$E(e,"string");return zo(t)=="symbol"?t:t+""}function an(e,t,o){return(t=Km(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function IE(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),o.push.apply(o,n)}return o}function qo(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?IE(Object(o),!0).forEach(function(n){an(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):IE(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}var zE=require("react");function Jr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NE(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Km(n.key),n)}}function ei(e,t,o){return t&&NE(e.prototype,t),o&&NE(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function ss(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gm(e,t){return Gm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,n){return o.__proto__=n,o},Gm(e,t)}function qm(e,t){if(typeof t!="function"&&t!==null)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&&Gm(e,t)}function Qc(e){return Qc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Qc(e)}function jy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jy=function(){return!!e})()}function PE(e,t){if(t&&(zo(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ss(e)}function Xm(e){var t=jy();return function(){var o,n=Qc(e);if(t){var r=Qc(this).constructor;o=Reflect.construct(n,arguments,r)}else o=n.apply(this,arguments);return PE(this,o)}}var EL=ei(function e(){Jr(this,e)}),Ym=EL;var TE="CALC_UNIT",$L=new RegExp(TE,"g");function Uy(e){return typeof e=="number"?"".concat(e).concat(TE):e}var ME=function(e){qm(o,e);var t=Xm(o);function o(n,r){var i;Jr(this,o),i=t.call(this),an(ss(i),"result",""),an(ss(i),"unitlessCssVar",void 0),an(ss(i),"lowPriority",void 0);var s=zo(n);return i.unitlessCssVar=r,n instanceof o?i.result="(".concat(n.result,")"):s==="number"?i.result=Uy(n):s==="string"&&(i.result=n),i}return ei(o,[{key:"add",value:function(r){return r instanceof o?this.result="".concat(this.result," + ").concat(r.getResult()):(typeof r=="number"||typeof r=="string")&&(this.result="".concat(this.result," + ").concat(Uy(r))),this.lowPriority=!0,this}},{key:"sub",value:function(r){return r instanceof o?this.result="".concat(this.result," - ").concat(r.getResult()):(typeof r=="number"||typeof r=="string")&&(this.result="".concat(this.result," - ").concat(Uy(r))),this.lowPriority=!0,this}},{key:"mul",value:function(r){return this.lowPriority&&(this.result="(".concat(this.result,")")),r instanceof o?this.result="".concat(this.result," * ").concat(r.getResult(!0)):(typeof r=="number"||typeof r=="string")&&(this.result="".concat(this.result," * ").concat(r)),this.lowPriority=!1,this}},{key:"div",value:function(r){return this.lowPriority&&(this.result="(".concat(this.result,")")),r instanceof o?this.result="".concat(this.result," / ").concat(r.getResult(!0)):(typeof r=="number"||typeof r=="string")&&(this.result="".concat(this.result," / ").concat(r)),this.lowPriority=!1,this}},{key:"getResult",value:function(r){return this.lowPriority||r?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(r){var i=this,s=r||{},a=s.unit,c=!0;return typeof a=="boolean"?c=a:Array.from(this.unitlessCssVar).some(function(l){return i.result.includes(l)})&&(c=!1),this.result=this.result.replace($L,c?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),o}(Ym);var IL=function(e){qm(o,e);var t=Xm(o);function o(n){var r;return Jr(this,o),r=t.call(this),an(ss(r),"result",0),n instanceof o?r.result=n.result:typeof n=="number"&&(r.result=n),r}return ei(o,[{key:"add",value:function(r){return r instanceof o?this.result+=r.result:typeof r=="number"&&(this.result+=r),this}},{key:"sub",value:function(r){return r instanceof o?this.result-=r.result:typeof r=="number"&&(this.result-=r),this}},{key:"mul",value:function(r){return r instanceof o?this.result*=r.result:typeof r=="number"&&(this.result*=r),this}},{key:"div",value:function(r){return r instanceof o?this.result/=r.result:typeof r=="number"&&(this.result/=r),this}},{key:"equal",value:function(){return this.result}}]),o}(Ym),OE=IL;var NL=function(t,o){var n=t==="css"?ME:OE;return function(r){return new n(r,o)}},Zm=NL;var PL=function(t,o){return"".concat([o,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))},Ky=PL;function TL(e,t,o,n){var r=qo({},t[e]);if(n!=null&&n.deprecatedTokens){var i=n.deprecatedTokens;i.forEach(function(a){var c=Um(a,2),l=c[0],d=c[1];if(r!=null&&r[l]||r!=null&&r[d]){var u;(u=r[d])!==null&&u!==void 0||(r[d]=r?.[l])}})}var s=qo(qo({},o),r);return Object.keys(s).forEach(function(a){s[a]===t[a]&&delete s[a]}),s}var Gy=TL;var AE=typeof CSSINJS_STATISTIC<"u",qy=!0;function Fe(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];if(!AE)return Object.assign.apply(Object,[{}].concat(t));qy=!1;var n={};return t.forEach(function(r){if(zo(r)==="object"){var i=Object.keys(r);i.forEach(function(s){Object.defineProperty(n,s,{configurable:!0,enumerable:!0,get:function(){return r[s]}})})}}),qy=!0,n}var Qm={};function ML(){}var OL=function(t){var o,n=t,r=ML;return AE&&typeof Proxy<"u"&&(o=new Set,n=new Proxy(t,{get:function(s,a){if(qy){var c;(c=o)===null||c===void 0||c.add(a)}return s[a]}}),r=function(s,a){var c;Qm[s]={global:Array.from(o),component:qo(qo({},(c=Qm[s])===null||c===void 0?void 0:c.component),a)}}),{token:n,keys:o,flush:r}},Jm=OL;function AL(e,t,o){if(typeof o=="function"){var n;return o(Fe(t,(n=t[e])!==null&&n!==void 0?n:{}))}return o??{}}var Xy=AL;function kL(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var o=arguments.length,n=new Array(o),r=0;r<o;r++)n[r]=arguments[r];return"max(".concat(n.map(function(i){return q(i)}).join(","),")")},min:function(){for(var o=arguments.length,n=new Array(o),r=0;r<o;r++)n[r]=arguments[r];return"min(".concat(n.map(function(i){return q(i)}).join(","),")")}}}var kE=kL;var DE=M(require("react")),LL=1e3*60*10,DL=function(){function e(){Jr(this,e),an(this,"map",new Map),an(this,"objectIDMap",new WeakMap),an(this,"nextID",0),an(this,"lastAccessBeat",new Map),an(this,"accessBeat",0)}return ei(e,[{key:"set",value:function(o,n){this.clear();var r=this.getCompositeKey(o);this.map.set(r,n),this.lastAccessBeat.set(r,Date.now())}},{key:"get",value:function(o){var n=this.getCompositeKey(o),r=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,r}},{key:"getCompositeKey",value:function(o){var n=this,r=o.map(function(i){return i&&zo(i)==="object"?"obj_".concat(n.getObjectID(i)):"".concat(zo(i),"_").concat(i)});return r.join("|")}},{key:"getObjectID",value:function(o){if(this.objectIDMap.has(o))return this.objectIDMap.get(o);var n=this.nextID;return this.objectIDMap.set(o,n),this.nextID+=1,n}},{key:"clear",value:function(){var o=this;if(this.accessBeat>1e4){var n=Date.now();this.lastAccessBeat.forEach(function(r,i){n-r>LL&&(o.map.delete(i),o.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e}(),LE=new DL;function _L(e,t){return DE.default.useMemo(function(){var o=LE.get(t);if(o)return o;var n=e();return LE.set(t,n),n},t)}var _E=_L;var FL=function(){return{}},FE=FL;function zL(e){var t=e.useCSP,o=t===void 0?FE:t,n=e.useToken,r=e.usePrefix,i=e.getResetStyles,s=e.getCommonStyle,a=e.getCompUnitless;function c(m,f,g,p){var h=Array.isArray(m)?m[0]:m;function y(w){return"".concat(String(h)).concat(w.slice(0,1).toUpperCase()).concat(w.slice(1))}var x=p?.unitless||{},b=typeof a=="function"?a(m):{},S=qo(qo({},b),{},an({},y("zIndexPopup"),!0));Object.keys(x).forEach(function(w){S[y(w)]=x[w]});var v=qo(qo({},p),{},{unitless:S,prefixToken:y}),C=d(m,f,g,v),R=l(h,g,v);return function(w){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,P=C(w,I),N=p?.extraCssVarPrefixCls,E=typeof N=="function"?N({prefixCls:w,rootCls:I}):N,O=R(E!=null&&E.length?[I].concat(Zt(E)):I);return[P,O]}}function l(m,f,g){var p=g.unitless,h=g.prefixToken,y=g.ignore;return function(x){var b=n(),S=b.cssVar,v=b.realToken,C=o();return ly({path:[m],prefix:S.prefix,key:S.key,unitless:p,ignore:y,token:v,scope:x,nonce:function(){return C.nonce}},function(){var R=Xy(m,v,f),w=Gy(m,v,R,{deprecatedTokens:g?.deprecatedTokens});return R&&Object.keys(R).forEach(function(I){w[h(I)]=w[I],delete w[I]}),w}),S?.key}}function d(m,f,g){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},h=Array.isArray(m)?m:[m,m],y=Um(h,1),x=y[0],b=h.join("-"),S=e.layer||{name:"antd"};return function(v){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v,R=n(),w=R.theme,I=R.realToken,P=R.hashId,N=R.token,E=R.cssVar,O=R.zeroRuntime,D=(0,zE.useMemo)(function(){return O},[]);if(D)return P;var A=r(),F=A.rootPrefixCls,_=A.iconPrefixCls,T=o(),L="css",z=_E(function(){var B=new Set;return Object.keys(p.unitless||{}).forEach(function(U){B.add(Ja(U,E.prefix)),B.add(Ja(U,Ky(x,E.prefix)))}),Zm(L,B)},[L,x,E?.prefix]),G=kE(L),V=G.max,j=G.min,Y={theme:w,token:N,hashId:P,nonce:function(){return T.nonce},clientOnly:p.clientOnly,layer:S,order:p.order||-999};return typeof i=="function"&&es(qo(qo({},Y),{},{clientOnly:!1,path:["Shared",F]}),function(){return i(N,{prefix:{rootPrefixCls:F,iconPrefixCls:_},csp:T})}),es(qo(qo({},Y),{},{path:[b,v,_]}),function(){if(p.injectStyle===!1)return[];var B=Jm(N),U=B.token,K=B.flush,Z=Xy(x,I,g),X=".".concat(v),k=Gy(x,I,Z,{deprecatedTokens:p.deprecatedTokens});Z&&zo(Z)==="object"&&Object.keys(Z).forEach(function(J){Z[J]="var(".concat(Ja(J,Ky(x,E.prefix)),")")});var W=Fe(U,{componentCls:X,prefixCls:v,iconCls:".".concat(_),antCls:".".concat(F),calc:z,max:V,min:j},Z),H=f(W,{hashId:P,prefixCls:v,rootPrefixCls:F,iconPrefixCls:_});K(x,k);var ee=typeof s=="function"?s(W,v,C,p.resetFont):null;return[p.resetStyle===!1?null:ee,H]}),P}}function u(m,f,g){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},h=d(m,f,g,qo({resetStyle:!1,order:-998},p)),y=function(b){var S=b.prefixCls,v=b.rootCls,C=v===void 0?S:v;return h(S,C),null};return y}return{genStyleHooks:c,genSubStyleComponent:u,genComponentStyleHook:d}}var Yy=zL;var Jy=M(require("react"));var BE="6.6.5";var HE=BE;function Zy(e){return e>=0&&e<=255}function BL(e,t){let{r:o,g:n,b:r,a:i}=new pt(e).toRgb();if(i<1)return e;let{r:s,g:a,b:c}=new pt(t).toRgb();for(let l=.01;l<=1;l+=.01){let d=Math.round((o-s*(1-l))/l),u=Math.round((n-a*(1-l))/l),m=Math.round((r-c*(1-l))/l);if(Zy(d)&&Zy(u)&&Zy(m))return new pt({r:d,g:u,b:m,a:Math.round(l*100)/100}).toRgbString()}return new pt({r:o,g:n,b:r,a:1}).toRgbString()}var la=BL;function Qy(e){let{override:t,...o}=e,n={...t};Object.keys(Si).forEach(h=>{delete n[h]});let r={...o,...n},i=new pt(r.colorShadow),s=i.a,a=h=>i.clone().setA(s*h).toRgbString(),c=480,l=576,d=768,u=992,m=1200,f=1600,g=1920;if(r.motion===!1){let h="0s";r.motionDurationFast=h,r.motionDurationMid=h,r.motionDurationSlow=h}return{...r,colorFillContent:r.colorFillSecondary,colorFillContentHover:r.colorFill,colorFillAlter:r.colorFillQuaternary,colorBgContainerDisabled:r.colorFillTertiary,colorBorderBg:r.colorBgContainer,colorSplit:la(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:la(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:la(r.colorWarningBg,r.colorBgContainer),colorErrorAffix:r.colorError,colorWarningAffix:r.colorWarning,fontHeight:Math.round(r.fontSize*r.lineHeight),fontHeightSM:Math.round(r.fontSizeSM*r.lineHeightSM),fontHeightLG:Math.round(r.fontSizeLG*r.lineHeightLG),fontSizeIcon:r.fontSizeSM,lineWidthFocus:r.focusOutline===!1?0:r.lineWidth*3,lineWidth:r.lineWidth,controlOutlineWidth:r.lineWidth*2,controlInteractiveSize:r.controlHeight/2,controlItemBgHover:r.colorFillTertiary,controlItemBgActive:r.colorPrimaryBg,controlItemBgActiveHover:r.colorPrimaryBgHover,controlItemBgActiveDisabled:r.colorFill,controlTmpOutline:r.colorFillQuaternary,controlOutline:la(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:`
|
|
38
|
+
}`,o)}else Tr(o);return()=>{Tr(o)}},[t,o])}var ym=require("react"),oa=[],Xk=200,_R=0;var FR=e=>{if(e.key==="Escape"&&!e.isComposing){if(Date.now()-_R<Xk)return;let o=oa.length;for(let n=o-1;n>=0;n-=1)oa[n].onEsc({top:n===o-1,event:e})}},zR=()=>{_R=Date.now()};function Yk(){window.addEventListener("keydown",FR),window.addEventListener("compositionend",zR)}function Zk(){oa.length===0&&(window.removeEventListener("keydown",FR),window.removeEventListener("compositionend",zR))}function py(e,t){let o=Co(),n=Ie(t),r=()=>{oa.find(s=>s.id===o)||oa.push({id:o,onEsc:n})},i=()=>{oa=oa.filter(s=>s.id!==o)};(0,ym.useMemo)(()=>{e?r():e||i()},[e]),(0,ym.useEffect)(()=>{if(e)return r(),Yk(),()=>{i(),Zk()}},[e])}var BR=e=>e===!1?!1:!Ut()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e,Qk=pr.forwardRef((e,t)=>{let{open:o,autoLock:n,getContainer:r,debug:i,autoDestroy:s=!0,children:a,onEsc:c}=e,[l,d]=pr.useState(o),u=l||o;pr.useEffect(()=>{(s||o)&&d(o)},[o,s]);let[m,f]=pr.useState(()=>BR(r));pr.useEffect(()=>{let v=BR(r);f(()=>v??null)});let[g,p]=uy(u&&!m,i),h=m??g;my(n&&o&&Ut()&&(h===g||h===document.body)),py(o,c);let y=null;a&&dr(a)&&t&&(y=To(a));let x=bo(y,t);if(!u||!Ut()||m===void 0)return null;let b=h===!1||dy(),S=a;return t&&(S=pr.cloneElement(a,{ref:x})),pr.createElement(hm.Provider,{value:p},b?S:(0,HR.createPortal)(S,h))}),VR=Qk;var na=VR;var xm=M(require("react"));var fr=M(require("react"));var Lr=M(require("react")),bm=Lr.createContext(null);function WR({children:e,onBatchResize:t}){let o=Lr.useRef(0),n=Lr.useRef([]),r=Lr.useContext(bm),i=Lr.useCallback((s,a,c)=>{o.current+=1;let l=o.current;n.current.push({size:s,element:a,data:c}),Promise.resolve().then(()=>{l===o.current&&(t?.(n.current),n.current=[])}),r?.(s,a,c)},[t,r]);return Lr.createElement(bm.Provider,{value:i},e)}var zc=M(require("react"));var ts=new Map;function Jk(e){e.forEach(t=>{let{target:o}=t;ts.get(o)?.forEach(n=>n(o))})}var fy;function jR(){return fy||(fy=new ResizeObserver(Jk)),fy}function UR(e,t){ts.has(e)||(ts.set(e,new Set),jR().observe(e)),ts.get(e).add(t)}function KR(e,t){ts.has(e)&&(ts.get(e).delete(t),ts.get(e).size||(jR().unobserve(e),ts.delete(e)))}function cl(e,t,o,n){let r=zc.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),i=Ie(c=>{let{width:l,height:d}=c.getBoundingClientRect(),{offsetWidth:u,offsetHeight:m}=c,f=Math.floor(l),g=Math.floor(d);if(r.current.width!==f||r.current.height!==g||r.current.offsetWidth!==u||r.current.offsetHeight!==m){let p={width:f,height:g,offsetWidth:u,offsetHeight:m};r.current=p;let h=u===Math.round(l)?l:u,y=m===Math.round(d)?d:m,x={...p,offsetWidth:h,offsetHeight:y};n?.(x,c),Promise.resolve().then(()=>{o?.(x,c)})}}),s=typeof t=="function",a=zc.useRef(0);zc.useEffect(()=>{let c=s?t():t;return c&&e?UR(c,i):e&&s&&(a.current+=1),()=>{c&&KR(c,i)}},[e,s?a.current:t])}function eL(e,t){let{children:o,disabled:n,onResize:r,data:i}=e,s=fr.useRef(null),a=fr.useContext(bm),c=typeof o=="function",l=c?o(s):o,d=!c&&fr.isValidElement(l)&&dr(l),u=d?To(l):null,m=bo(u,s),f=()=>Gn(s.current);return fr.useImperativeHandle(t,()=>f()),cl(!n,f,r,(g,p)=>{a?.(g,p,i)}),d?fr.cloneElement(l,{ref:m}):l}var tL=fr.forwardRef(eL),GR=tL;function gy(){return gy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},gy.apply(this,arguments)}var oL="rc-observer-key";function nL(e,t){let{children:o}=e;return(typeof o=="function"?[o]:co(o)).map((r,i)=>{let s=r?.key||`${oL}-${i}`;return xm.createElement(GR,gy({},e,{key:s,ref:i===0?t:void 0}),r)})}var qR=xm.forwardRef(nL);qR.Collection=WR;var sn=qR;var ft=M(require("react"));var Mn=M(require("react")),aE=require("react");var dl=M(require("react")),hy=dl.createContext({}),rL=e=>{let{children:t,...o}=e,n=dl.useMemo(()=>({motion:o.motion}),[o.motion]);return dl.createElement(hy.Provider,{value:n},t)},yy=rL;var ra=M(require("react")),$i=require("react");var gr="none",Bc="appear",Hc="enter",Vc="leave",by="none",Tn="prepare",Qr="start",Ei="active",vm="end",Sm="prepared";var eE=M(require("react")),tE=require("react");function XR(e,t){let o={};return o[e.toLowerCase()]=t.toLowerCase(),o[`Webkit${e}`]=`webkit${t}`,o[`Moz${e}`]=`moz${t}`,o[`ms${e}`]=`MS${t}`,o[`O${e}`]=`o${t.toLowerCase()}`,o}function iL(e,t){let o={animationend:XR("Animation","AnimationEnd"),transitionend:XR("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete o.animationend.animation,"TransitionEvent"in t||delete o.transitionend.transition),o}var sL=iL(Ut(),typeof window<"u"?window:{}),YR={};Ut()&&({style:YR}=document.createElement("div"));var Cm={};function ZR(e){if(Cm[e])return Cm[e];let t=sL[e];if(t){let o=Object.keys(t),n=o.length;for(let r=0;r<n;r+=1){let i=o[r];if(Object.prototype.hasOwnProperty.call(t,i)&&i in YR)return Cm[e]=t[i],Cm[e]}}return""}var QR=ZR("animationend"),JR=ZR("transitionend"),wm=!!(QR&&JR),xy=QR||"animationend",vy=JR||"transitionend";function Sy(e,t){if(!e)return null;if(typeof e=="object"){let o=t.replace(/-\w/g,n=>n[1].toUpperCase());return e[o]}return`${e}-${t}`}var oE=e=>{let t=(0,tE.useRef)();function o(r){r&&(r.removeEventListener(vy,e),r.removeEventListener(xy,e))}function n(r){t.current&&t.current!==r&&o(t.current),r&&r!==t.current&&(r.addEventListener(vy,e),r.addEventListener(xy,e),t.current=r)}return eE.useEffect(()=>()=>{o(t.current),t.current=null},[]),[n,o]};var Rm=require("react"),aL=Ut()?Rm.useLayoutEffect:Rm.useEffect,Em=aL;var rE=M(require("react"));var $m=M(require("react")),nE=()=>{let e=$m.useRef(null);function t(){He.cancel(e.current)}function o(n,r=2){t();let i=He(()=>{r<=1?n({isCanceled:()=>i!==e.current}):o(n,r-1)});e.current=i}return $m.useEffect(()=>()=>{t()},[]),[o,t]};var lL=[Tn,Qr,Ei,vm],cL=[Tn,Sm],Cy=!1,iE=!0;function Im(e){return e===Ei||e===vm}var sE=(e,t,o)=>{let[n,r]=Ua(by),[i,s]=nE();function a(){r(Tn,!0)}let c=t?cL:lL;return Em(()=>{if(n!==by&&n!==vm){let l=c.indexOf(n),d=c[l+1],u=o(n);u===Cy?r(d,!0):d&&i(m=>{function f(){m.isCanceled()||r(d,!0)}u===!0?f():Promise.resolve(u).then(f)})}},[e,n]),rE.useEffect(()=>()=>{s()},[]),[a,n]};function wy(e,t,o,{motionEnter:n=!0,motionAppear:r=!0,motionLeave:i=!0,motionDeadline:s,motionLeaveImmediately:a,onAppearPrepare:c,onEnterPrepare:l,onLeavePrepare:d,onAppearStart:u,onEnterStart:m,onLeaveStart:f,onAppearActive:g,onEnterActive:p,onLeaveActive:h,onAppearEnd:y,onEnterEnd:x,onLeaveEnd:b,onVisibleChanged:S}){let[v,C]=ra.useState(),[R,w]=Ih(gr),[I,P]=ra.useState([null,null]),N=R(),E=(0,$i.useRef)(!1),O=(0,$i.useRef)(null);function L(){return o()}let k=(0,$i.useRef)(!1);function z(){w(gr),P([null,null])}let _=Ie(Z=>{let Y=R();if(Y===gr)return;let K=L();if(Z&&!Z.deadline&&Z.target!==K)return;let V=k.current,A;Y===Bc&&V?A=y?.(K,Z):Y===Hc&&V?A=x?.(K,Z):Y===Vc&&V&&(A=b?.(K,Z)),V&&A!==!1&&z()}),[T]=oE(_),D=Z=>{switch(Z){case Bc:return{[Tn]:c,[Qr]:u,[Ei]:g};case Hc:return{[Tn]:l,[Qr]:m,[Ei]:p};case Vc:return{[Tn]:d,[Qr]:f,[Ei]:h};default:return{}}},F=ra.useMemo(()=>D(N),[N]),[G,H]=sE(N,!e,Z=>{if(Z===Tn){let Y=F[Tn];return Y?Y(L()):Cy}return Z in F&&P([F[Z]?.(L(),null)||null,Z]),Z===Ei&&N!==gr&&(T(L()),s>0&&(clearTimeout(O.current),O.current=setTimeout(()=>{_({deadline:!0})},s))),Z===Sm&&z(),iE}),W=Im(H);k.current=W;let X=(0,$i.useRef)(null);Em(()=>{if(E.current&&X.current===t)return;C(t);let Z=E.current;E.current=!0;let Y;!Z&&t&&r&&(Y=Bc),Z&&t&&n&&(Y=Hc),(Z&&!t&&i||!Z&&a&&!t&&i)&&(Y=Vc);let K=D(Y);Y&&(e||K[Tn])?(w(Y),G()):w(gr),X.current=t},[t]),(0,$i.useEffect)(()=>{(N===Bc&&!r||N===Hc&&!n||N===Vc&&!i)&&w(gr)},[r,n,i]),(0,$i.useEffect)(()=>()=>{E.current=!1,clearTimeout(O.current)},[]);let B=ra.useRef(!1);(0,$i.useEffect)(()=>{v&&(B.current=!0),v!==void 0&&N===gr&&((B.current||v)&&S?.(v),B.current=!0)},[v,N]);let j=I[0];F[Tn]&&H===Qr&&(j={transition:"none",...j});let U=I[1];return[R,H,j,v??t,!E.current&&N===gr&&e&&r?"NONE":H===Qr||H===Ei?U===H:!0]}function Ry(e){return e?.length<2}function lE(e){let t=e;typeof e=="object"&&({transitionSupport:t}=e);function o(r,i){return!!(r.motionName&&t&&i!==!1)}let n=Mn.forwardRef((r,i)=>{let{visible:s=!0,removeOnLeave:a=!0,forceRender:c,children:l,motionName:d,leavedClassName:u,eventProps:m}=r,{motion:f}=Mn.useContext(hy),g=o(r,f),p=(0,aE.useRef)();function h(){return Gn(p.current)}let[y,x,b,S,v]=wy(g,s,h,r),C=y(),R=Mn.useRef(S);S&&(R.current=!0);let w=Mn.useMemo(()=>{let N={};return Object.defineProperties(N,{nativeElement:{enumerable:!0,get:h},inMotion:{enumerable:!0,get:()=>()=>y()!==gr},enableMotion:{enumerable:!0,get:()=>()=>g}}),N},[]);Mn.useImperativeHandle(i,()=>w,[]);let I=Mn.useRef(0);v&&(I.current+=1);let P=Mn.useMemo(()=>{if(v==="NONE")return null;let N,E={...m,visible:s};if(!l)N=null;else if(C===gr)S?N=l({...E},p):!a&&R.current&&u?N=l({...E,className:u},p):c||!a&&!u?N=l({...E,style:{display:"none"}},p):N=null;else{let O;x===Tn?O="prepare":Im(x)?O="active":x===Qr&&(O="start");let L=Sy(d,`${C}-${O}`);N=l({...E,className:$(Sy(d,C),{[L]:L&&O,[d]:typeof d=="string"}),style:b},p)}return N},[I.current]);if(Ry(l)&&Rc(P)){let N=To(P);if(N!==p)return Mn.cloneElement(P,{ref:Mt(N,p)})}return P});return n.displayName="CSSMotion",n}var Nm=lE(wm);var ia=M(require("react"));var Pm="add",Tm="keep",Mm="remove",Am="removed";function dL(e){let t;return e&&typeof e=="object"&&"key"in e?t=e:t={key:e},{...t,key:String(t.key)}}function Om(e=[]){return e.map(dL)}function cE(e=[],t=[]){let o=[],n=0,r=t.length,i=Om(e),s=Om(t);i.forEach(l=>{let d=!1;for(let u=n;u<r;u+=1){let m=s[u];if(m.key===l.key){n<u&&(o=o.concat(s.slice(n,u).map(f=>({...f,status:Pm}))),n=u),o.push({...m,status:Tm}),n+=1,d=!0;break}}d||o.push({...l,status:Mm})}),n<r&&(o=o.concat(s.slice(n).map(l=>({...l,status:Pm}))));let a={};return o.forEach(({key:l})=>{a[l]=(a[l]||0)+1}),Object.keys(a).filter(l=>a[l]>1).forEach(l=>{o=o.filter(({key:d,status:u})=>d!==l||u!==Mm),o.forEach(d=>{d.key===l&&(d.status=Tm)})}),o}function Ey(){return Ey=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Ey.apply(this,arguments)}var uL=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function mL(e,t=Nm){class o extends ia.Component{static defaultProps={component:"div"};state={keyEntities:[]};static getDerivedStateFromProps({keys:r},{keyEntities:i}){let s=Om(r);return{keyEntities:cE(i,s).filter(c=>{let l=i.find(({key:d})=>c.key===d);return!(l&&l.status===Am&&c.status===Mm)})}}removeKey=r=>{this.setState(i=>({keyEntities:i.keyEntities.map(a=>a.key!==r?a:{...a,status:Am})}),()=>{let{keyEntities:i}=this.state;i.filter(({status:a})=>a!==Am).length===0&&this.props.onAllRemoved&&this.props.onAllRemoved()})};render(){let{keyEntities:r}=this.state,{component:i,children:s,onVisibleChanged:a,onAllRemoved:c,...l}=this.props,d=i||ia.Fragment,u={};return uL.forEach(m=>{u[m]=l[m],delete l[m]}),delete l.keys,ia.createElement(d,l,r.map(({status:m,...f},g)=>{let p=m===Pm||m===Tm;return ia.createElement(t,Ey({},u,{key:f.key,visible:p,eventProps:f,onVisibleChanged:h=>{a?.(h,{key:f.key}),h||this.removeKey(f.key)}}),Ry(s)?h=>s({...h,index:g}):(h,y)=>s({...h,index:g},y))}))}}return o}var pL=mL(wm);var po=Nm;var On=M(require("react"));var km=M(require("react"));function $y(e){let{prefixCls:t,align:o,arrow:n,arrowPos:r}=e,{className:i,content:s,style:a}=n||{},{x:c=0,y:l=0}=r,d=km.useRef(null);if(!o||!o.points)return null;let u={position:"absolute"};if(o.autoArrow!==!1){let m=o.points[0],f=o.points[1],g=m[0],p=m[1],h=f[0],y=f[1];g===h||!["t","b"].includes(g)?u.top=l:g==="t"?u.top=0:u.bottom=0,p===y||!["l","r"].includes(p)?u.left=c:p==="l"?u.left=0:u.right=0}return km.createElement("div",{ref:d,className:$(`${t}-arrow`,i),style:{...u,...a}},s)}var Ny=M(require("react"));function Iy(){return Iy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Iy.apply(this,arguments)}function Py(e){let{prefixCls:t,open:o,zIndex:n,mask:r,motion:i,mobile:s}=e;return r?Ny.createElement(po,Iy({},i,{motionAppear:!0,visible:o,removeOnLeave:!0}),({className:a})=>Ny.createElement("div",{style:{zIndex:n},className:$(`${t}-mask`,s&&`${t}-mobile-mask`,a)})):null}var dE=M(require("react")),fL=dE.memo(({children:e})=>e,(e,t)=>t.cache),uE=fL;function Wc(e,t,o,n,r,i,s,a){let c="auto",l=e?{}:{left:"-1000vw",top:"-1000vh",right:c,bottom:c};if(!e&&(t||!o)){let{points:d}=n,u=n.dynamicInset||n._experimental?.dynamicInset,m=u&&d[0][1]==="r",f=u&&d[0][0]==="b";m?(l.right=r,l.left=c):(l.left=s,l.right=c),f?(l.bottom=i,l.top=c):(l.top=a,l.bottom=c)}return l}function Ty(){return Ty=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Ty.apply(this,arguments)}var gL=On.forwardRef((e,t)=>{let{onEsc:o,popup:n,className:r,prefixCls:i,style:s,target:a,onVisibleChanged:c,open:l,keepDom:d,fresh:u,onClick:m,mask:f,arrow:g,arrowPos:p,align:h,motion:y,maskMotion:x,mobile:b,forceRender:S,getPopupContainer:v,autoDestroy:C,portal:R,children:w,zIndex:I,onMouseEnter:P,onMouseLeave:N,onPointerEnter:E,onPointerDownCapture:O,ready:L,offsetX:k,offsetY:z,offsetR:_,offsetB:T,onAlign:D,onPrepare:F,onResize:G,stretch:H,targetWidth:W,targetHeight:X}=e,B=typeof n=="function"?n():n,j=l||d,U=!!b,[Z,Y,K]=On.useMemo(()=>b?[b.mask,b.maskMotion,b.motion]:[f,x,y],[b,f,x,y]),V=v?.length>0,[A,ee]=On.useState(!v||!V);it(()=>{!A&&V&&a&&ee(!0)},[A,V,a]);let Q=Ie((re,ie)=>{G?.(re,ie),D()}),te=Wc(U,L,l,h,_,T,k,z);if(!A)return null;let le={};return H&&(H.includes("height")&&X?le.height=X:H.includes("minHeight")&&X&&(le.minHeight=X),H.includes("width")&&W?le.width=W:H.includes("minWidth")&&W&&(le.minWidth=W)),l||(le.pointerEvents="none"),On.createElement(R,{open:S||j,getContainer:v&&(()=>v(a)),autoDestroy:C,onEsc:o},On.createElement(Py,{prefixCls:i,open:l,zIndex:I,mask:Z,motion:Y,mobile:U}),On.createElement(sn,{onResize:Q,disabled:!l},re=>On.createElement(po,Ty({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:S,leavedClassName:`${i}-hidden`},K,{onAppearPrepare:F,onEnterPrepare:F,visible:l,onVisibleChanged:ie=>{y?.onVisibleChanged?.(ie),c(ie)}}),({className:ie,style:Se},de)=>{let Ee=$(i,ie,r,{[`${i}-mobile`]:U});return On.createElement("div",{ref:Mt(re,t,de),className:Ee,style:{"--arrow-x":`${p.x||0}px`,"--arrow-y":`${p.y||0}px`,...te,...le,...Se,boxSizing:"border-box",zIndex:I,...s},onMouseEnter:P,onMouseLeave:N,onPointerEnter:E,onClick:m,onPointerDownCapture:O},g&&On.createElement($y,{prefixCls:i,arrow:g,arrowPos:p,align:h}),On.createElement(uE,{cache:!l&&!u},B))})),w)}),Lm=gL;var My=M(require("react")),hL=My.createContext(null),ul=hL,Dm=My.createContext(null);var pE=M(require("react"));function mE(e){return e?Array.isArray(e)?e:[e]:[]}function Oy(e,t,o){return pE.useMemo(()=>{let n=mE(t??e),r=mE(o??e),i=new Set(n),s=new Set(r);return i.has("hover")&&!i.has("click")&&i.add("touch"),s.has("hover")&&!s.has("click")&&s.add("touch"),[i,s]},[e,t,o])}var sa=M(require("react"));function yL(e=[],t=[],o){let n=(r,i)=>r[i]||"";return o?n(e,0)===n(t,0):n(e,0)===n(t,0)&&n(e,1)===n(t,1)}function _m(e,t,o,n){let{points:r}=o,i=Object.keys(e);for(let s=0;s<i.length;s+=1){let a=i[s];if(yL(e[a]?.points,r,n))return`${t}-placement-${a}`}return""}function os(e){return e.ownerDocument.defaultView}function Uc(e){let t=[],o=e?.parentElement,n=["hidden","scroll","clip","auto"];for(;o;){let{overflowX:r,overflowY:i,overflow:s}=os(o).getComputedStyle(o);[r,i,s].some(a=>n.includes(a))&&t.push(o),o=o.parentElement}return t}function ml(e,t=1){return Number.isNaN(e)?t:e}function jc(e){return ml(parseFloat(e),0)}function Ay(e,t){let o={...e};return(t||[]).forEach(n=>{if(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)return;let{overflow:r,overflowClipMargin:i,borderTopWidth:s,borderBottomWidth:a,borderLeftWidth:c,borderRightWidth:l}=os(n).getComputedStyle(n),d=n.getBoundingClientRect(),{offsetHeight:u,clientHeight:m,offsetWidth:f,clientWidth:g}=n,p=jc(s),h=jc(a),y=jc(c),x=jc(l),b=ml(Math.round(d.width/f*1e3)/1e3),S=ml(Math.round(d.height/u*1e3)/1e3),v=(f-g-y-x)*b,C=(u-m-p-h)*S,R=p*S,w=h*S,I=y*b,P=x*b,N=0,E=0;if(r==="clip"){let _=jc(i);N=_*b,E=_*S}let O=d.x+I-N,L=d.y+R-E,k=O+d.width+2*N-I-P-v,z=L+d.height+2*E-R-w-C;o.left=Math.max(o.left,O),o.top=Math.max(o.top,L),o.right=Math.min(o.right,k),o.bottom=Math.min(o.bottom,z)}),o}function fE(e,t=0){let o=`${t}`,n=o.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(o)}function gE(e,t){let[o,n]=t||[];return[fE(e.width,o),fE(e.height,n)]}function hE(e=""){return[e[0],e[1]]}function pl(e,t){let o=t[0],n=t[1],r,i;return o==="t"?i=e.y:o==="b"?i=e.y+e.height:i=e.y+e.height/2,n==="l"?r=e.x:n==="r"?r=e.x+e.width:r=e.x+e.width/2,{x:r,y:i}}function ns(e,t){let o={t:"b",b:"t",l:"r",r:"l"},n=[...e];return n[t]=o[e[t]]||"c",n}function yE(e){return e.join("")}function Kc(e,t,o,n,r,i,s,a){let[c,l]=sa.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:r[n]||{}}),d=sa.useRef(0),u=sa.useMemo(()=>!t||a?[]:Uc(t),[t]),m=sa.useRef({});e||(()=>{m.current={}})();let g=Ie(()=>{if(t&&o&&e&&!a){let Ge=function(Be,yn,on=le){let fc=k.x+Be,Bs=k.y+yn,nu=fc+B,ru=Bs+X,iu=Math.max(fc,on.left),qS=Math.max(Bs,on.top),Jg=Math.min(nu,on.right),eh=Math.min(ru,on.bottom);return Math.max(0,(Jg-iu)*(eh-qS))},ye=function(){oe=k.y+Pe,me=oe+X,J=k.x+$e,ge=J+B},y=t,x=y.ownerDocument,b=os(y),{position:S}=b.getComputedStyle(y),v=y.style.left,C=y.style.top,R=y.style.right,w=y.style.bottom,I=y.style.overflow,P=y.style.overflowX,N=y.style.overflowY,E={...r[n],...i},O=x.createElement("div");y.parentElement?.appendChild(O),O.style.left=`${y.offsetLeft}px`,O.style.top=`${y.offsetTop}px`,O.style.position=S,O.style.height=`${y.offsetHeight}px`,O.style.width=`${y.offsetWidth}px`,y.style.left="0",y.style.top="0",y.style.right="auto",y.style.bottom="auto",y.style.overflow="hidden";let L;if(Array.isArray(o))L={x:o[0],y:o[1],width:0,height:0};else{let Be=o.getBoundingClientRect();Be.x=Be.x??Be.left,Be.y=Be.y??Be.top,L={x:Be.x,y:Be.y,width:Be.width,height:Be.height}}let k=y.getBoundingClientRect(),{height:z,width:_}=b.getComputedStyle(y);k.x=k.x??k.left,k.y=k.y??k.top;let{clientWidth:T,clientHeight:D,scrollWidth:F,scrollHeight:G,scrollTop:H,scrollLeft:W}=x.documentElement,X=k.height,B=k.width,j=L.height,U=L.width,Z={left:0,top:0,right:T,bottom:D},Y={left:-W,top:-H,right:F-W,bottom:G-H},{htmlRegion:K}=E,V="visible",A="visibleFirst";K!=="scroll"&&K!==A&&(K=V);let ee=K===A,Q=Ay(Y,u),te=Ay(Z,u),le=K===V?te:Q,re=ee?te:le;y.style.left="auto",y.style.top="auto",y.style.right="0",y.style.bottom="0";let ie=y.getBoundingClientRect();y.style.left=v,y.style.top=C,y.style.right=R,y.style.bottom=w,y.style.overflow=I,y.style.overflowX=P,y.style.overflowY=N,y.parentElement?.removeChild(O);let Se=ml(Math.round(B/parseFloat(_)*1e3)/1e3),de=ml(Math.round(X/parseFloat(z)*1e3)/1e3);if(Se===0||de===0||Xr(o)&&!Us(o))return;let{offset:Ee,targetOffset:ae}=E,[Ne,he]=gE(k,Ee),[ne,fe]=gE(L,ae);L.x-=ne,L.y-=fe;let[ce,we]=E.points||[],Le=hE(we),Ce=hE(ce),pe=pl(L,Le),ue=pl(k,Ce),se={...E},ve=[Ce,Le],$e=pe.x-ue.x+Ne,Pe=pe.y-ue.y+he,qe=Ge($e,Pe),mt=Ge($e,Pe,te),Qe=pl(L,["t","l"]),$t=pl(k,["t","l"]),wt=pl(L,["b","r"]),gt=pl(k,["b","r"]),ht=E.overflow||{},{adjustX:yt,adjustY:Rt,shiftX:_e,shiftY:xt}=ht,be=Be=>typeof Be=="boolean"?Be:Be>=0,oe,me,J,ge;ye();let ke=be(Rt),Je=Ce[0]===Le[0];if(ke&&Ce[0]==="t"&&(me>re.bottom||m.current.bt)){let Be=Pe;Je?Be-=X-j:Be=Qe.y-gt.y-he;let yn=Ge($e,Be),on=Ge($e,Be,te);yn>qe||yn===qe&&(!ee||on>=mt)?(m.current.bt=!0,Pe=Be,he=-he,ve=[ns(ve[0],0),ns(ve[1],0)]):m.current.bt=!1}if(ke&&Ce[0]==="b"&&(oe<re.top||m.current.tb)){let Be=Pe;Je?Be+=X-j:Be=wt.y-$t.y-he;let yn=Ge($e,Be),on=Ge($e,Be,te);yn>qe||yn===qe&&(!ee||on>=mt)?(m.current.tb=!0,Pe=Be,he=-he,ve=[ns(ve[0],0),ns(ve[1],0)]):m.current.tb=!1}let At=be(yt),Wt=Ce[1]===Le[1];if(At&&Ce[1]==="l"&&(ge>re.right||m.current.rl)){let Be=$e;Wt?Be-=B-U:Be=Qe.x-gt.x-Ne;let yn=Ge(Be,Pe),on=Ge(Be,Pe,te);yn>qe||yn===qe&&(!ee||on>=mt)?(m.current.rl=!0,$e=Be,Ne=-Ne,ve=[ns(ve[0],1),ns(ve[1],1)]):m.current.rl=!1}if(At&&Ce[1]==="r"&&(J<re.left||m.current.lr)){let Be=$e;Wt?Be+=B-U:Be=wt.x-$t.x-Ne;let yn=Ge(Be,Pe),on=Ge(Be,Pe,te);yn>qe||yn===qe&&(!ee||on>=mt)?(m.current.lr=!0,$e=Be,Ne=-Ne,ve=[ns(ve[0],1),ns(ve[1],1)]):m.current.lr=!1}se.points=[yE(ve[0]),yE(ve[1])],ye();let Pt=_e===!0?0:_e;typeof Pt=="number"&&(J<te.left&&($e-=J-te.left-Ne,L.x+U<te.left+Pt&&($e+=L.x-te.left+U-Pt)),ge>te.right&&($e-=ge-te.right-Ne,L.x>te.right-Pt&&($e+=L.x-te.right+Pt)));let to=xt===!0?0:xt;typeof to=="number"&&(oe<te.top&&(Pe-=oe-te.top-he,L.y+j<te.top+to&&(Pe+=L.y-te.top+j-to)),me>te.bottom&&(Pe-=me-te.bottom-he,L.y>te.bottom-to&&(Pe+=L.y-te.bottom+to)));let ao=k.x+$e,$n=ao+B,ze=k.y+Pe,ot=ze+X,ut=L.x,Ae=ut+U,je=L.y,Tt=je+j,mo=Math.max(ao,ut),vt=Math.min($n,Ae),_o=(mo+vt)/2-ao,hn=Math.max(ze,je),Pr=Math.min(ot,Tt),Ki=(hn+Pr)/2-ze;s?.(t,se);let Kr=ie.right-k.x-($e+k.width),xi=ie.bottom-k.y-(Pe+k.height);Se===1&&($e=Math.floor($e),Kr=Math.floor(Kr)),de===1&&(Pe=Math.floor(Pe),xi=Math.floor(xi));let pc={ready:!0,offsetX:$e/Se,offsetY:Pe/de,offsetR:Kr/Se,offsetB:xi/de,arrowX:_o/Se,arrowY:Ki/de,scaleX:Se,scaleY:de,align:se};l(pc)}}),p=()=>{d.current+=1;let y=d.current;Promise.resolve().then(()=>{d.current===y&&g()})},h=()=>{l(y=>({...y,ready:!1}))};return it(h,[n]),it(()=>{e||h()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,p]}var Fm=M(require("react"));function Gc(){let e=Fm.useRef(null),t=()=>{e.current&&(clearTimeout(e.current),e.current=null)},o=(n,r)=>{t(),r===0?n():e.current=setTimeout(()=>{n()},r*1e3)};return Fm.useEffect(()=>()=>{t()},[]),o}function ky(e,t,o,n,r){it(()=>{if(e&&t&&o){let u=function(){n(),r()},i=t,s=o,a=Uc(i),c=Uc(s),l=os(s),d=new Set([l,...a,...c]);return d.forEach(m=>{m.addEventListener("scroll",u,{passive:!0})}),l.addEventListener("resize",u,{passive:!0}),n(),()=>{d.forEach(m=>{m.removeEventListener("scroll",u),l.removeEventListener("resize",u)})}}},[e,t,o])}var qc=M(require("react"));function Ly(e,t,o,n,r,i,s,a){let c=qc.useRef(e);c.current=e;let l=qc.useRef(!1);qc.useEffect(()=>{if(t&&n&&(!r||i)){let u=()=>{l.current=!1},m=p=>{c.current&&!s(p.composedPath?.()?.[0]||p.target)&&!l.current&&a(!1)},f=os(n);f.addEventListener("pointerdown",u,!0),f.addEventListener("mousedown",m,!0),f.addEventListener("contextmenu",m,!0);let g=qa(o);return g&&(g.addEventListener("mousedown",m,!0),g.addEventListener("contextmenu",m,!0)),()=>{f.removeEventListener("pointerdown",u,!0),f.removeEventListener("mousedown",m,!0),f.removeEventListener("contextmenu",m,!0),g&&(g.removeEventListener("mousedown",m,!0),g.removeEventListener("contextmenu",m,!0))}}},[t,o,n,r,i]);function d(){l.current=!0}return d}var xo=M(require("react"));var Xc=M(require("react"));function Dy(){let[e,t]=Xc.default.useState(null),[o,n]=Xc.default.useState(!1),[r,i]=Xc.default.useState(!1),s=Xc.default.useRef(null),a=Ie(l=>{l===!1?(s.current=null,n(!1)):r&&o?s.current=l:(n(!0),t(l),s.current=null,o||i(!0))}),c=Ie(l=>{l?(i(!1),s.current&&(t(s.current),s.current=null)):(i(!1),s.current=null)});return[a,o,e,c]}var Yc=M(require("react"));function _y(){return _y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},_y.apply(this,arguments)}var bL=e=>{let{prefixCls:t,isMobile:o,ready:n,open:r,align:i,offsetR:s,offsetB:a,offsetX:c,offsetY:l,arrowPos:d,popupSize:u,motion:m,uniqueContainerClassName:f,uniqueContainerStyle:g}=e,p=`${t}-unique-container`,[h,y]=Yc.default.useState(!1),x=Wc(o,n,r,i,s,a,c,l),b=Yc.default.useRef(x);n&&(b.current=x);let S={};return u&&(S.width=u.width,S.height=u.height),Yc.default.createElement(po,_y({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${p}-hidden`},m,{visible:r,onVisibleChanged:v=>{y(v)}}),({className:v,style:C})=>{let R=$(p,v,f,{[`${p}-visible`]:h});return Yc.default.createElement("div",{className:R,style:{"--arrow-x":`${d?.x||0}px`,"--arrow-y":`${d?.y||0}px`,...b.current,...S,...C,...g}})})},bE=bL;var xL=({children:e,postTriggerProps:t})=>{let[o,n,r,i]=Dy(),s=xo.useMemo(()=>!r||!t?r:t(r),[r,t]),[a,c]=xo.useState(null),[l,d]=xo.useState(null),u=xo.useRef(null),m=Ie(T=>{u.current=T,Xr(T)&&a!==T&&c(T)}),f=xo.useRef(null),g=Gc(),p=Ie((T,D)=>{f.current=D,g(()=>{o(T)},T.delay)}),h=T=>{g(()=>{f.current?.()||o(!1)},T)},y=Ie(T=>{i(T)}),[x,b,S,v,C,R,w,,,I,P]=Kc(n,a,s?.target,s?.popupPlacement,s?.builtinPlacements||{},s?.popupAlign,void 0,!1),N=xo.useMemo(()=>{if(!s)return"";let T=_m(s.builtinPlacements||{},s.prefixCls||"",I,!1);return $(T,s.getPopupClassNameFromAlign?.(I))},[I,s?.getPopupClassNameFromAlign,s?.builtinPlacements,s?.prefixCls]),E=xo.useMemo(()=>({show:p,hide:h}),[]);xo.useEffect(()=>{P()},[s?.target]);let O=Ie(()=>(P(),Promise.resolve())),L=xo.useRef({}),k=xo.useContext(ul),z=xo.useMemo(()=>({registerSubPopup:(T,D)=>{L.current[T]=D,k?.registerSubPopup(T,D)}}),[k]),_=s?.prefixCls;return xo.createElement(Dm.Provider,{value:E},e,s&&xo.createElement(ul.Provider,{value:z},xo.createElement(Lm,{ref:m,portal:na,onEsc:s.onEsc,prefixCls:_,popup:s.popup,className:$(s.popupClassName,N,`${_}-unique-controlled`),style:s.popupStyle,target:s.target,open:n,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:y,ready:x,offsetX:b,offsetY:S,offsetR:v,offsetB:C,onAlign:P,onPrepare:O,onResize:T=>d({width:T.offsetWidth,height:T.offsetHeight}),arrowPos:{x:R,y:w},align:I,zIndex:s.zIndex,mask:s.mask,arrow:s.arrow,motion:s.popupMotion,maskMotion:s.maskMotion,getPopupContainer:s.getPopupContainer},xo.createElement(bE,{prefixCls:_,isMobile:!1,ready:x,open:n,align:I,offsetR:v,offsetB:C,offsetX:b,offsetY:S,arrowPos:{x:R,y:w},popupSize:l,motion:s.popupMotion,uniqueContainerClassName:$(s.uniqueContainerClassName,N),uniqueContainerStyle:s.uniqueContainerStyle}))))},Fy=xL;var xE=require("react-dom");function vL(e=na){return ft.forwardRef((o,n)=>{let{prefixCls:r="rc-trigger-popup",children:i,action:s="hover",showAction:a,hideAction:c,disabled:l=!1,popupVisible:d,defaultPopupVisible:u,onOpenChange:m,afterOpenChange:f,onPopupVisibleChange:g,afterPopupVisibleChange:p,mouseEnterDelay:h,mouseLeaveDelay:y=.1,focusDelay:x,blurDelay:b,mask:S,maskClosable:v=!0,getPopupContainer:C,forceRender:R,autoDestroy:w,popup:I,popupClassName:P,uniqueContainerClassName:N,uniqueContainerStyle:E,popupStyle:O,popupPlacement:L,builtinPlacements:k={},popupAlign:z,zIndex:_,stretch:T,getPopupClassNameFromAlign:D,fresh:F,unique:G,alignPoint:H,onPopupClick:W,onPopupAlign:X,arrow:B,popupMotion:j,maskMotion:U,mobile:Z,...Y}=o,K=w||!1,V=d===void 0,A=!!Z,ee=ft.useRef({}),Q=ft.useContext(ul),te=ft.useMemo(()=>({registerSubPopup:(Te,It)=>{ee.current[Te]=It,Q?.registerSubPopup(Te,It)}}),[Q]),le=ft.useContext(Dm),re=Co(),[ie,Se]=ft.useState(null),de=ft.useRef(null),Ee=Ie(Te=>{de.current=Te,Xr(Te)&&ie!==Te&&Se(Te),Q?.registerSubPopup(re,Te)}),[ae,Ne]=ft.useState(null),he=ft.useRef(null),ne=Ie(Te=>{let It=Gn(Te);Xr(It)&&ae!==It&&(Ne(It),he.current=It)}),fe={},ce=Ie(Te=>{let It=ae;return It?.contains(Te)||qa(It)?.host===Te||Te===It||ie?.contains(Te)||qa(ie)?.host===Te||Te===ie||Object.values(ee.current).some(su=>su?.contains(Te)||Te===su)}),we=B?{...B!==!0?B:{}}:null,[Le,Ce]=st(u||!1,d),pe=Le||!1,ue=pe&&!l,se=ft.useMemo(()=>{let Te=typeof i=="function"?i({open:ue}):i;return ft.Children.only(Te)},[i,ue]),ve=se?.props||{},$e=Ie(()=>ue),Pe=Ie((Te=0)=>({popup:I,target:ae,delay:Te,prefixCls:r,popupClassName:P,uniqueContainerClassName:N,uniqueContainerStyle:E,popupStyle:O,popupPlacement:L,builtinPlacements:k,popupAlign:z,zIndex:_,mask:S,maskClosable:v,popupMotion:j,maskMotion:U,arrow:we,getPopupContainer:C,getPopupClassNameFromAlign:D,id:re,onEsc:$t}));it(()=>{le&&G&&ae&&!V&&!Q&&(ue?le.show(Pe(h),$e):le.hide(y))},[ue,ae]);let Ge=ft.useRef(ue);Ge.current=ue;let qe=Ie(Te=>{(0,xE.flushSync)(()=>{pe!==Te&&(Ce(Te),m?.(Te),g?.(Te))})}),mt=Gc(),Qe=(Te,It=0)=>{if(d!==void 0){mt(()=>{qe(Te)},It);return}if(le&&G&&V&&!Q){Te?le.show(Pe(It),$e):le.hide(It);return}mt(()=>{qe(Te)},It)};function $t({top:Te}){Te&&Qe(!1)}let[wt,gt]=ft.useState(!1);it(Te=>{(!Te||ue)&>(!0)},[ue]);let[ht,yt]=ft.useState(null),[Rt,_e]=ft.useState(null),xt=Te=>{_e([Te.clientX,Te.clientY])},[be,oe,me,J,ge,ye,ke,Je,At,Wt,Pt]=Kc(ue,ie,H&&Rt!==null?Rt:ae,L,k,z,X,A),[to,ao]=Oy(s,a,c),$n=to.has("click"),ze=ao.has("click")||ao.has("contextMenu"),ot=Ie(()=>{wt||Pt()});ky(ue,ae,ie,ot,()=>{Ge.current&&H&&ze&&Qe(!1)}),it(()=>{ot()},[Rt,L]),it(()=>{ue&&!k?.[L]&&ot()},[JSON.stringify(z)]);let Ae=ft.useMemo(()=>{let Te=_m(k,r,Wt,H);return $(Te,D?.(Wt))},[Wt,D,k,r,H]);ft.useImperativeHandle(n,()=>({nativeElement:he.current,popupElement:de.current,forceAlign:ot}));let[je,Tt]=ft.useState(0),[mo,vt]=ft.useState(0),jt=()=>{if(T&&ae){let Te=ae.getBoundingClientRect();Tt(Te.width),vt(Te.height)}},_o=()=>{jt(),ot()},hn=Te=>{gt(!1),Pt(),f?.(Te),p?.(Te)},Pr=()=>new Promise(Te=>{jt(),yt(()=>Te)});it(()=>{ht&&(Pt(),ht(),yt(null))},[ht]);function Ur(Te,It,su,jA,XS){fe[Te]=(YS,...UA)=>{(!XS||!XS())&&(jA?.(YS),Qe(It,su)),ve[Te]?.(YS,...UA)}}let Ki=to.has("touch"),Kr=ao.has("touch"),xi=ft.useRef(!1);(Ki||Kr)&&(fe.onTouchStart=(...Te)=>{xi.current=!0,Ge.current&&Kr?Qe(!1):!Ge.current&&Ki&&Qe(!0),ve.onTouchStart?.(...Te)}),($n||ze)&&(fe.onClick=(Te,...It)=>{Ge.current&&ze?Qe(!1):!Ge.current&&$n&&(xt(Te),Qe(!0)),ve.onClick?.(Te,...It),xi.current=!1});let pc=Ly(ue,ze||Kr,ae,ie,S,v,ce,Qe),Be=to.has("hover"),yn=ao.has("hover"),on,fc,Bs=()=>xi.current;if(Be){let Te=It=>{xt(It)};Ur("onMouseEnter",!0,h,Te,Bs),Ur("onPointerEnter",!0,h,Te,Bs),on=It=>{(ue||wt)&&ie?.contains(It.target)&&Qe(!0,h)},H&&(fe.onMouseMove=It=>{ve.onMouseMove?.(It)})}yn&&(Ur("onMouseLeave",!1,y,void 0,Bs),Ur("onPointerLeave",!1,y,void 0,Bs),fc=()=>{Qe(!1,y)}),to.has("focus")&&Ur("onFocus",!0,x),ao.has("focus")&&Ur("onBlur",!1,b),to.has("contextMenu")&&(fe.onContextMenu=(Te,...It)=>{Ge.current&&ao.has("contextMenu")?Qe(!1):(xt(Te),Qe(!0)),Te.preventDefault(),ve.onContextMenu?.(Te,...It)});let nu=ft.useRef(!1);nu.current||=R||ue||wt;let ru={...ve,...fe},iu={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(Te=>{Y[Te]&&(iu[Te]=(...It)=>{ru[Te]?.(...It),Y[Te](...It)})});let Jg={x:ye,y:ke};cl(ue,ae,_o);let eh=bo(ne,To(se)),WA=ft.cloneElement(se,{...ru,...iu,ref:eh});return ft.createElement(ft.Fragment,null,WA,nu.current&&(!le||!G)&&ft.createElement(ul.Provider,{value:te},ft.createElement(Lm,{portal:e,ref:Ee,prefixCls:r,popup:I,className:$(P,!A&&Ae),style:O,target:ae,onMouseEnter:on,onMouseLeave:fc,onPointerEnter:on,zIndex:_,open:ue,keepDom:wt,fresh:F,onClick:W,onPointerDownCapture:pc,mask:S,motion:j,maskMotion:U,onVisibleChanged:hn,onPrepare:Pr,forceRender:R,autoDestroy:K,getPopupContainer:C,onEsc:$t,align:Wt,arrow:we,arrowPos:Jg,ready:be,offsetX:oe,offsetY:me,offsetR:J,offsetB:ge,onAlign:ot,stretch:T,targetWidth:je/Je,targetHeight:mo/At,mobile:Z})))})}var rs=vL(na);var Hm=M(require("react"));var Zc=M(require("react"));function zm(e){return e&&Zc.default.isValidElement(e)&&e.type===Zc.default.Fragment}var SL=(e,t,o)=>Zc.default.isValidElement(e)?Zc.default.cloneElement(e,dt(o)?o(e.props||{}):o):t;function Ro(e,t){return SL(e,e,t)}var Bm=M(require("react")),is="ant",fl="anticon",zy=["outlined","borderless","filled","underlined"],CL=(e,t)=>t||(e?`${is}-${e}`:is),Oe=Bm.createContext({getPrefixCls:CL,iconPrefixCls:fl}),{Consumer:wL}=Oe,vE={};function Ye(e){let t=Bm.useContext(Oe),{getPrefixCls:o,direction:n,getPopupContainer:r,renderEmpty:i}=t,s=t[e];return{classNames:vE,styles:vE,...s,getPrefixCls:o,direction:n,getPopupContainer:r,renderEmpty:i}}var RL=({children:e})=>{let{getPrefixCls:t}=Hm.default.useContext(Oe),o=t();return Hm.default.isValidElement(e)?Hm.default.createElement(po,{visible:!0,motionName:`${o}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:n,className:r})=>Ro(e,i=>({className:$(i.className,r),style:{...i.style,...n}}))):e},SE=RL;var Vm=[null,null];function EL(e){if(Vm[0]!==e){let t={};Object.keys(e).forEach(o=>{t[o]={...e[o],dynamicInset:!1}}),Vm[0]=e,Vm[1]=t}return Vm[1]}var $L=({children:e})=>{let t=o=>{let{id:n,builtinPlacements:r,popup:i}=o,s=dt(i)?i():i,a=EL(r);return{...o,getPopupContainer:null,arrow:!1,popup:By.default.createElement(SE,{key:n},s),builtinPlacements:a}};return By.default.createElement(Fy,{postTriggerProps:t},e)},Wm=$L;var gl=M(require("react")),Hy=gl.createContext(!1),jm=({children:e,disabled:t})=>{let o=gl.useContext(Hy);return gl.createElement(Hy.Provider,{value:t??o},e)},zo=Hy;var Wy=require("react");var hl=M(require("react")),Vy=hl.createContext(void 0),CE=({children:e,size:t})=>{let o=hl.useContext(Vy);return hl.createElement(Vy.Provider,{value:t||o},e)},aa=Vy;function IL(){let e=(0,Wy.useContext)(zo),t=(0,Wy.useContext)(aa);return{componentDisabled:e,componentSize:t}}var wE=IL;var KE=require("react");function Bo(e){"@babel/helpers - typeof";return Bo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bo(e)}function RE(e){if(Array.isArray(e))return e}function EE(e,t){var o=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o!=null){var n,r,i,s,a=[],c=!0,l=!1;try{if(i=(o=o.call(e)).next,t===0){if(Object(o)!==o)return;c=!1}else for(;!(c=(n=i.call(o)).done)&&(a.push(n.value),a.length!==t);c=!0);}catch(d){l=!0,r=d}finally{try{if(!c&&o.return!=null&&(s=o.return(),Object(s)!==s))return}finally{if(l)throw r}}return a}}function $E(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
39
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Um(e,t){return RE(e)||EE(e,t)||ju(e,t)||$E()}function IE(e,t){if(Bo(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,t||"default");if(Bo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Km(e){var t=IE(e,"string");return Bo(t)=="symbol"?t:t+""}function an(e,t,o){return(t=Km(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function NE(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),o.push.apply(o,n)}return o}function qo(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?NE(Object(o),!0).forEach(function(n){an(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):NE(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}var BE=require("react");function Jr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PE(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Km(n.key),n)}}function ei(e,t,o){return t&&PE(e.prototype,t),o&&PE(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function ss(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gm(e,t){return Gm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,n){return o.__proto__=n,o},Gm(e,t)}function qm(e,t){if(typeof t!="function"&&t!==null)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&&Gm(e,t)}function Qc(e){return Qc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Qc(e)}function jy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jy=function(){return!!e})()}function TE(e,t){if(t&&(Bo(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ss(e)}function Xm(e){var t=jy();return function(){var o,n=Qc(e);if(t){var r=Qc(this).constructor;o=Reflect.construct(n,arguments,r)}else o=n.apply(this,arguments);return TE(this,o)}}var NL=ei(function e(){Jr(this,e)}),Ym=NL;var ME="CALC_UNIT",PL=new RegExp(ME,"g");function Uy(e){return typeof e=="number"?"".concat(e).concat(ME):e}var OE=function(e){qm(o,e);var t=Xm(o);function o(n,r){var i;Jr(this,o),i=t.call(this),an(ss(i),"result",""),an(ss(i),"unitlessCssVar",void 0),an(ss(i),"lowPriority",void 0);var s=Bo(n);return i.unitlessCssVar=r,n instanceof o?i.result="(".concat(n.result,")"):s==="number"?i.result=Uy(n):s==="string"&&(i.result=n),i}return ei(o,[{key:"add",value:function(r){return r instanceof o?this.result="".concat(this.result," + ").concat(r.getResult()):(typeof r=="number"||typeof r=="string")&&(this.result="".concat(this.result," + ").concat(Uy(r))),this.lowPriority=!0,this}},{key:"sub",value:function(r){return r instanceof o?this.result="".concat(this.result," - ").concat(r.getResult()):(typeof r=="number"||typeof r=="string")&&(this.result="".concat(this.result," - ").concat(Uy(r))),this.lowPriority=!0,this}},{key:"mul",value:function(r){return this.lowPriority&&(this.result="(".concat(this.result,")")),r instanceof o?this.result="".concat(this.result," * ").concat(r.getResult(!0)):(typeof r=="number"||typeof r=="string")&&(this.result="".concat(this.result," * ").concat(r)),this.lowPriority=!1,this}},{key:"div",value:function(r){return this.lowPriority&&(this.result="(".concat(this.result,")")),r instanceof o?this.result="".concat(this.result," / ").concat(r.getResult(!0)):(typeof r=="number"||typeof r=="string")&&(this.result="".concat(this.result," / ").concat(r)),this.lowPriority=!1,this}},{key:"getResult",value:function(r){return this.lowPriority||r?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(r){var i=this,s=r||{},a=s.unit,c=!0;return typeof a=="boolean"?c=a:Array.from(this.unitlessCssVar).some(function(l){return i.result.includes(l)})&&(c=!1),this.result=this.result.replace(PL,c?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),o}(Ym);var TL=function(e){qm(o,e);var t=Xm(o);function o(n){var r;return Jr(this,o),r=t.call(this),an(ss(r),"result",0),n instanceof o?r.result=n.result:typeof n=="number"&&(r.result=n),r}return ei(o,[{key:"add",value:function(r){return r instanceof o?this.result+=r.result:typeof r=="number"&&(this.result+=r),this}},{key:"sub",value:function(r){return r instanceof o?this.result-=r.result:typeof r=="number"&&(this.result-=r),this}},{key:"mul",value:function(r){return r instanceof o?this.result*=r.result:typeof r=="number"&&(this.result*=r),this}},{key:"div",value:function(r){return r instanceof o?this.result/=r.result:typeof r=="number"&&(this.result/=r),this}},{key:"equal",value:function(){return this.result}}]),o}(Ym),AE=TL;var ML=function(t,o){var n=t==="css"?OE:AE;return function(r){return new n(r,o)}},Zm=ML;var OL=function(t,o){return"".concat([o,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))},Ky=OL;function AL(e,t,o,n){var r=qo({},t[e]);if(n!=null&&n.deprecatedTokens){var i=n.deprecatedTokens;i.forEach(function(a){var c=Um(a,2),l=c[0],d=c[1];if(r!=null&&r[l]||r!=null&&r[d]){var u;(u=r[d])!==null&&u!==void 0||(r[d]=r?.[l])}})}var s=qo(qo({},o),r);return Object.keys(s).forEach(function(a){s[a]===t[a]&&delete s[a]}),s}var Gy=AL;var kE=typeof CSSINJS_STATISTIC<"u",qy=!0;function Fe(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];if(!kE)return Object.assign.apply(Object,[{}].concat(t));qy=!1;var n={};return t.forEach(function(r){if(Bo(r)==="object"){var i=Object.keys(r);i.forEach(function(s){Object.defineProperty(n,s,{configurable:!0,enumerable:!0,get:function(){return r[s]}})})}}),qy=!0,n}var Qm={};function kL(){}var LL=function(t){var o,n=t,r=kL;return kE&&typeof Proxy<"u"&&(o=new Set,n=new Proxy(t,{get:function(s,a){if(qy){var c;(c=o)===null||c===void 0||c.add(a)}return s[a]}}),r=function(s,a){var c;Qm[s]={global:Array.from(o),component:qo(qo({},(c=Qm[s])===null||c===void 0?void 0:c.component),a)}}),{token:n,keys:o,flush:r}},Jm=LL;function DL(e,t,o){if(typeof o=="function"){var n;return o(Fe(t,(n=t[e])!==null&&n!==void 0?n:{}))}return o??{}}var Xy=DL;function _L(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var o=arguments.length,n=new Array(o),r=0;r<o;r++)n[r]=arguments[r];return"max(".concat(n.map(function(i){return q(i)}).join(","),")")},min:function(){for(var o=arguments.length,n=new Array(o),r=0;r<o;r++)n[r]=arguments[r];return"min(".concat(n.map(function(i){return q(i)}).join(","),")")}}}var LE=_L;var _E=M(require("react")),FL=1e3*60*10,zL=function(){function e(){Jr(this,e),an(this,"map",new Map),an(this,"objectIDMap",new WeakMap),an(this,"nextID",0),an(this,"lastAccessBeat",new Map),an(this,"accessBeat",0)}return ei(e,[{key:"set",value:function(o,n){this.clear();var r=this.getCompositeKey(o);this.map.set(r,n),this.lastAccessBeat.set(r,Date.now())}},{key:"get",value:function(o){var n=this.getCompositeKey(o),r=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,r}},{key:"getCompositeKey",value:function(o){var n=this,r=o.map(function(i){return i&&Bo(i)==="object"?"obj_".concat(n.getObjectID(i)):"".concat(Bo(i),"_").concat(i)});return r.join("|")}},{key:"getObjectID",value:function(o){if(this.objectIDMap.has(o))return this.objectIDMap.get(o);var n=this.nextID;return this.objectIDMap.set(o,n),this.nextID+=1,n}},{key:"clear",value:function(){var o=this;if(this.accessBeat>1e4){var n=Date.now();this.lastAccessBeat.forEach(function(r,i){n-r>FL&&(o.map.delete(i),o.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e}(),DE=new zL;function BL(e,t){return _E.default.useMemo(function(){var o=DE.get(t);if(o)return o;var n=e();return DE.set(t,n),n},t)}var FE=BL;var HL=function(){return{}},zE=HL;function VL(e){var t=e.useCSP,o=t===void 0?zE:t,n=e.useToken,r=e.usePrefix,i=e.getResetStyles,s=e.getCommonStyle,a=e.getCompUnitless;function c(m,f,g,p){var h=Array.isArray(m)?m[0]:m;function y(w){return"".concat(String(h)).concat(w.slice(0,1).toUpperCase()).concat(w.slice(1))}var x=p?.unitless||{},b=typeof a=="function"?a(m):{},S=qo(qo({},b),{},an({},y("zIndexPopup"),!0));Object.keys(x).forEach(function(w){S[y(w)]=x[w]});var v=qo(qo({},p),{},{unitless:S,prefixToken:y}),C=d(m,f,g,v),R=l(h,g,v);return function(w){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,P=C(w,I),N=p?.extraCssVarPrefixCls,E=typeof N=="function"?N({prefixCls:w,rootCls:I}):N,O=R(E!=null&&E.length?[I].concat(Zt(E)):I);return[P,O]}}function l(m,f,g){var p=g.unitless,h=g.prefixToken,y=g.ignore;return function(x){var b=n(),S=b.cssVar,v=b.realToken,C=o();return ly({path:[m],prefix:S.prefix,key:S.key,unitless:p,ignore:y,token:v,scope:x,nonce:function(){return C.nonce}},function(){var R=Xy(m,v,f),w=Gy(m,v,R,{deprecatedTokens:g?.deprecatedTokens});return R&&Object.keys(R).forEach(function(I){w[h(I)]=w[I],delete w[I]}),w}),S?.key}}function d(m,f,g){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},h=Array.isArray(m)?m:[m,m],y=Um(h,1),x=y[0],b=h.join("-"),S=e.layer||{name:"antd"};return function(v){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v,R=n(),w=R.theme,I=R.realToken,P=R.hashId,N=R.token,E=R.cssVar,O=R.zeroRuntime,L=(0,BE.useMemo)(function(){return O},[]);if(L)return P;var k=r(),z=k.rootPrefixCls,_=k.iconPrefixCls,T=o(),D="css",F=FE(function(){var B=new Set;return Object.keys(p.unitless||{}).forEach(function(j){B.add(Ja(j,E.prefix)),B.add(Ja(j,Ky(x,E.prefix)))}),Zm(D,B)},[D,x,E?.prefix]),G=LE(D),H=G.max,W=G.min,X={theme:w,token:N,hashId:P,nonce:function(){return T.nonce},clientOnly:p.clientOnly,layer:S,order:p.order||-999};return typeof i=="function"&&es(qo(qo({},X),{},{clientOnly:!1,path:["Shared",z]}),function(){return i(N,{prefix:{rootPrefixCls:z,iconPrefixCls:_},csp:T})}),es(qo(qo({},X),{},{path:[b,v,_]}),function(){if(p.injectStyle===!1)return[];var B=Jm(N),j=B.token,U=B.flush,Z=Xy(x,I,g),Y=".".concat(v),K=Gy(x,I,Z,{deprecatedTokens:p.deprecatedTokens});Z&&Bo(Z)==="object"&&Object.keys(Z).forEach(function(Q){Z[Q]="var(".concat(Ja(Q,Ky(x,E.prefix)),")")});var V=Fe(j,{componentCls:Y,prefixCls:v,iconCls:".".concat(_),antCls:".".concat(z),calc:F,max:H,min:W},Z),A=f(V,{hashId:P,prefixCls:v,rootPrefixCls:z,iconPrefixCls:_});U(x,K);var ee=typeof s=="function"?s(V,v,C,p.resetFont):null;return[p.resetStyle===!1?null:ee,A]}),P}}function u(m,f,g){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},h=d(m,f,g,qo({resetStyle:!1,order:-998},p)),y=function(b){var S=b.prefixCls,v=b.rootCls,C=v===void 0?S:v;return h(S,C),null};return y}return{genStyleHooks:c,genSubStyleComponent:u,genComponentStyleHook:d}}var Yy=VL;var Jy=M(require("react"));var HE="6.6.5";var VE=HE;function Zy(e){return e>=0&&e<=255}function WL(e,t){let{r:o,g:n,b:r,a:i}=new pt(e).toRgb();if(i<1)return e;let{r:s,g:a,b:c}=new pt(t).toRgb();for(let l=.01;l<=1;l+=.01){let d=Math.round((o-s*(1-l))/l),u=Math.round((n-a*(1-l))/l),m=Math.round((r-c*(1-l))/l);if(Zy(d)&&Zy(u)&&Zy(m))return new pt({r:d,g:u,b:m,a:Math.round(l*100)/100}).toRgbString()}return new pt({r:o,g:n,b:r,a:1}).toRgbString()}var la=WL;function Qy(e){let{override:t,...o}=e,n={...t};Object.keys(Si).forEach(h=>{delete n[h]});let r={...o,...n},i=new pt(r.colorShadow),s=i.a,a=h=>i.clone().setA(s*h).toRgbString(),c=480,l=576,d=768,u=992,m=1200,f=1600,g=1920;if(r.motion===!1){let h="0s";r.motionDurationFast=h,r.motionDurationMid=h,r.motionDurationSlow=h}return{...r,colorFillContent:r.colorFillSecondary,colorFillContentHover:r.colorFill,colorFillAlter:r.colorFillQuaternary,colorBgContainerDisabled:r.colorFillTertiary,colorBorderBg:r.colorBgContainer,colorSplit:la(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:la(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:la(r.colorWarningBg,r.colorBgContainer),colorErrorAffix:r.colorError,colorWarningAffix:r.colorWarning,fontHeight:Math.round(r.fontSize*r.lineHeight),fontHeightSM:Math.round(r.fontSizeSM*r.lineHeightSM),fontHeightLG:Math.round(r.fontSizeLG*r.lineHeightLG),fontSizeIcon:r.fontSizeSM,lineWidthFocus:r.focusOutline===!1?0:r.lineWidth*3,lineWidth:r.lineWidth,controlOutlineWidth:r.lineWidth*2,controlInteractiveSize:r.controlHeight/2,controlItemBgHover:r.colorFillTertiary,controlItemBgActive:r.colorPrimaryBg,controlItemBgActiveHover:r.colorPrimaryBgHover,controlItemBgActiveDisabled:r.colorFill,controlTmpOutline:r.colorFillQuaternary,controlOutline:la(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:`
|
|
40
40
|
0 6px 16px 0 ${a(.08)},
|
|
41
41
|
0 3px 6px -4px ${a(.12)},
|
|
42
42
|
0 9px 28px 8px ${a(.05)}
|
|
@@ -68,7 +68,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
68
68
|
0 -6px 16px 0 ${a(.08)},
|
|
69
69
|
0 -3px 6px -4px ${a(.12)},
|
|
70
70
|
0 -9px 28px 8px ${a(.05)}
|
|
71
|
-
`,boxShadowTabsOverflowLeft:`inset 10px 0 8px -8px ${a(.08)}`,boxShadowTabsOverflowRight:`inset -10px 0 8px -8px ${a(.08)}`,boxShadowTabsOverflowTop:`inset 0 10px 8px -8px ${a(.08)}`,boxShadowTabsOverflowBottom:`inset 0 -10px 8px -8px ${a(.08)}`,...n}}var eb={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},HL={motionBase:!0,motionUnit:!0},VL={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,screenXXLMax:!0,screenXXXL:!0,screenXXXLMin:!0},VE=(e,t,o)=>{let n=o.getDerivativeToken(e),{override:r,...i}=t,s={...n,override:r};return s=Qy(s),i&&Object.entries(i).forEach(([a,c])=>{let{theme:l,...d}=c,u=d;l&&(u=VE({...s,...d},{override:d},l)),s[a]=u}),s};function Gt(){let{token:e,hashed:t,theme:o,override:n,cssVar:r,zeroRuntime:i}=Jy.default.useContext(Fc),{csp:s,getPrefixCls:a}=Jy.default.useContext(Oe),c={prefix:r?.prefix??a(),key:r?.key??"css-var-root"},l=`${HE}-${t||""}`,d=o||Dc,[u,m,f]=em(d,[Si,e],{salt:l,override:n,getComputedToken:VE,cssVar:{...c,unitless:eb,ignore:HL,preserve:VL},nonce:s?.nonce});return[d,f,t?m:"",u,c,!!i]}var tb=require("react");var Xo={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Et=(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}),ca=()=>({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",verticalAlign:"inherit"}}),WL=new nt("loadingCircle",{"100%":{transform:"rotate(360deg)"}}),da=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),An=(e,t)=>({outline:`${q(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:["outline-offset","outline"].map(o=>`${o} 0s`).join(", ")}),ln=(e,t)=>({"&:focus-visible":An(e,t)}),WE=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},...ln(e),"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),jE=(e,t,o,n)=>{let r=`[class^="${t}"], [class*=" ${t}"]`,i=o?`.${o}`:r,s={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},a={};return n!==!1&&(a={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:{...a,...s,[r]:s}}},ep=e=>({[`.${e}`]:{...ca(),"&::before":{display:"none"},"&[tabindex]":{cursor:"pointer"}},[`.${e} .${e}-icon`]:{display:"block"},[`.${e}-spin`]:{animationName:WL,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}});var{genStyleHooks:Ze,genComponentStyleHook:ob,genSubStyleComponent:Jc}=Yy({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=(0,tb.useContext)(Oe);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{let[e,t,o,n,r,i]=Gt();return{theme:e,realToken:t,hashId:o,token:n,cssVar:r,zeroRuntime:i}},useCSP:()=>{let{csp:e}=(0,tb.useContext)(Oe);return e??{}},getResetStyles:(e,t)=>{let o=WE(e);return[o,{"&":o},ep(t?.prefix.iconPrefixCls??fl)]},getCommonStyle:jE,getCompUnitless:()=>eb}),qt=(e,t)=>{let o=`--${e.replace(/\./g,"")}-${t}-`;return[i=>`${o}${i}`,(i,s)=>s?`var(${o}${i}, ${s})`:`var(${o}${i})`]};function tp(e,t){return jo.reduce((o,n)=>{let r=e[`${n}1`],i=e[`${n}3`],s=e[`${n}6`],a=e[`${n}7`];return{...o,...t(n,{lightColor:r,lightBorderColor:i,darkColor:s,textColor:a})}},{})}var jL=(e,t)=>{let[o,n]=Gt();return es({theme:o,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>ep(e))},op=jL;function nb(e,t,o){let n=Xa("ConfigProvider"),r=e||{},i=r.inherit===!1||!t?{..._c,hashed:t?.hashed??_c.hashed,cssVar:t?.cssVar,zeroRuntime:t?.zeroRuntime}:t,s=(0,UE.useId)();return Kn(()=>{if(!e)return t;let a={...i.components};Object.keys(e.components||{}).forEach(d=>{a[d]={...a[d],...e.components[d]}});let c=`css-var-${s.replace(/:/g,"")}`,l={prefix:o?.prefixCls,...i.cssVar,...r.cssVar,key:r.cssVar?.key||c};return{...i,...r,token:{...i.token,...r.token},components:a,cssVar:l}},[r,i,o?.prefixCls,s],(a,c)=>a.some((l,d)=>{let u=c[d];return!Mr(l,u,!0)}))}var Ii=M(require("react"));var KE=Ii.createContext(!0);function rb(e){let t=Ii.useContext(KE),{children:o}=e,[,n]=Gt(),{motion:r}=n,i=Ii.useRef(!1);return i.current||(i.current=t!==r),i.current?Ii.createElement(KE.Provider,{value:r},Ii.createElement(yy,{motion:r},o)):o}var UL=M(require("react"));var GE=()=>null;var KL=({iconPrefixCls:e,csp:t})=>(op(e,t),null);var GL=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],np,qE,XE,YE;function ib(){return np||is}function qL(){return qE||fl}var XL=e=>{let{prefixCls:t,iconPrefixCls:o,theme:n,holderRender:r}=e;t!==void 0&&(np=t),o!==void 0&&(qE=o),"holderRender"in e&&(YE=r),n&&(XE=n)},ZE=()=>({getPrefixCls:(e,t)=>t||(e?`${ib()}-${e}`:ib()),getIconPrefixCls:qL,getRootPrefixCls:()=>np||ib(),getTheme:()=>XE,holderRender:YE}),YL=e=>{let{children:t,csp:o,autoInsertSpaceInButton:n,alert:r,affix:i,anchor:s,app:a,form:c,locale:l,componentSize:d,direction:u,space:m,splitter:f,virtual:g,dropdownMatchSelectWidth:p,popupMatchSelectWidth:h,popupOverflow:y,legacyLocale:x,parentContext:b,iconPrefixCls:S,theme:v,componentDisabled:C,segmented:R,statistic:w,spin:I,calendar:P,carousel:N,cascader:E,collapse:O,typography:D,checkbox:A,descriptions:F,divider:_,drawer:T,skeleton:L,steps:z,image:G,layout:V,list:j,listy:Y,mentions:B,modal:U,progress:K,result:Z,slider:X,breadcrumb:k,masonry:W,menu:H,pagination:ee,input:J,inputPassword:te,inputSearch:le,textArea:re,otp:ie,empty:Se,badge:de,borderBeam:Ee,radio:ae,rate:Ne,ribbon:he,switch:ne,transfer:fe,avatar:ce,message:we,tag:Le,table:Ce,card:pe,cardMeta:ue,tabs:se,timeline:ve,timePicker:$e,upload:Pe,notification:Ge,tree:qe,colorPicker:mt,datePicker:Qe,rangePicker:$t,flex:wt,wave:gt,dropdown:ht,warning:yt,tour:Rt,tooltip:_e,popover:xt,popconfirm:be,qrcode:oe,floatButton:me,floatButtonGroup:Q,variant:ge,inputNumber:ye,treeSelect:ke,watermark:Je}=e,At=Lt.useMemo(()=>at(l)&&Object.prototype.hasOwnProperty.call(l,"default")&&l.default?.locale?l.default:l,[l]),Wt=Lt.useCallback((vt,jt)=>{let{prefixCls:Do}=e;if(jt)return jt;let hn=Do||b.getPrefixCls("");return vt?`${hn}-${vt}`:hn},[b.getPrefixCls,e.prefixCls]),Pt=S||b.iconPrefixCls||fl,to=o||b.csp,ao=nb(v,b.theme,{prefixCls:Wt("")}),$n={csp:to,autoInsertSpaceInButton:n,alert:r,affix:i,anchor:s,app:a,locale:At||x,direction:u,space:m,splitter:f,virtual:g,popupMatchSelectWidth:h??p,popupOverflow:y,getPrefixCls:Wt,iconPrefixCls:Pt,theme:ao,segmented:R,statistic:w,spin:I,calendar:P,carousel:N,cascader:E,collapse:O,typography:D,checkbox:A,descriptions:F,divider:_,drawer:T,skeleton:L,steps:z,image:G,input:J,inputPassword:te,inputSearch:le,textArea:re,otp:ie,layout:V,list:j,listy:Y,mentions:B,modal:U,progress:K,result:Z,slider:X,breadcrumb:k,masonry:W,menu:H,pagination:ee,empty:Se,badge:de,borderBeam:Ee,radio:ae,rate:Ne,ribbon:he,switch:ne,transfer:fe,avatar:ce,message:we,tag:Le,table:Ce,card:pe,cardMeta:ue,tabs:se,timeline:ve,timePicker:$e,upload:Pe,notification:Ge,tree:qe,colorPicker:mt,datePicker:Qe,rangePicker:$t,flex:wt,wave:gt,dropdown:ht,warning:yt,tour:Rt,tooltip:_e,popover:xt,popconfirm:be,qrcode:oe,floatButton:me,floatButtonGroup:Q,variant:ge,inputNumber:ye,treeSelect:ke,watermark:Je},ze={...b};Object.keys($n).forEach(vt=>{$n[vt]!==void 0&&(ze[vt]=$n[vt])}),GL.forEach(vt=>{let jt=e[vt];jt&&(ze[vt]=jt)}),typeof n<"u"&&(ze.button={autoInsertSpace:n,...ze.button});let ot=Kn(()=>ze,ze,(vt,jt)=>{let Do=Object.keys(vt),hn=Object.keys(jt);return Do.length!==hn.length||Do.some(Pr=>vt[Pr]!==jt[Pr])}),{layer:dt}=Lt.useContext(Or),Ae=Lt.useMemo(()=>({prefixCls:Pt,csp:to,layer:dt?"antd":void 0,zeroRuntime:!!dt||ao?.zeroRuntime}),[Pt,to,dt,ao?.zeroRuntime]),je=Lt.createElement(Lt.Fragment,null,Lt.createElement(KL,{iconPrefixCls:Pt,csp:to}),Lt.createElement(GE,{dropdownMatchSelectWidth:p}),t),Tt=Lt.useMemo(()=>Yr(Xn.Form?.defaultValidateMessages||{},ot.locale?.Form?.defaultValidateMessages||{},ot.form?.validateMessages||{},c?.validateMessages||{}),[ot,c?.validateMessages]);Object.keys(Tt).length>0&&(je=Lt.createElement(xR.Provider,{value:Tt},je)),At&&(je=Lt.createElement(NR,{locale:At,_ANT_MARK__:IR},je)),(Pt||to)&&(je=Lt.createElement(sl.Provider,{value:Ae},je)),d&&(je=Lt.createElement(SE,{size:d},je)),je=Lt.createElement(rb,null,je),_e?.unique&&(je=Lt.createElement(Wm,null,je));let mo=Lt.useMemo(()=>{let{algorithm:vt,token:jt,components:Do,cssVar:hn,...Pr}=ao||{},Ur=vt&&(!Array.isArray(vt)||vt.length>0)?Qi(vt):Dc,Ki={};Object.entries(Do||{}).forEach(([xi,pc])=>{let Be={...pc};"algorithm"in Be&&(Be.algorithm===!0?Be.theme=Ur:(Array.isArray(Be.algorithm)||ct(Be.algorithm))&&(Be.theme=Qi(Be.algorithm)),delete Be.algorithm),Ki[xi]=Be});let Kr={...Si,...jt};return{...Pr,theme:Ur,token:Kr,components:Ki,override:{override:Kr,...Ki},cssVar:hn}},[ao]);return v&&(je=Lt.createElement(Fc.Provider,{value:mo},je)),ot.warning&&(je=Lt.createElement(Pw.Provider,{value:ot.warning},je)),C!==void 0&&(je=Lt.createElement(jm,{disabled:C},je)),Lt.createElement(Oe.Provider,{value:ot},je)},yl=e=>{let t=Lt.useContext(Oe),o=Lt.useContext(al);return Lt.createElement(YL,{parentContext:t,legacyLocale:o,...e})};yl.ConfigContext=Oe;yl.SizeContext=aa;yl.config=XL;yl.useConfig=CE;Object.defineProperty(yl,"SizeContext",{get:()=>aa});var as=yl;var ZL=e=>{let{componentCls:t,colorPrimary:o,motionDurationSlow:n,motionEaseInOut:r,motionEaseOutCirc:i,antCls:s}=e,[,a]=qt(s,"wave");return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:a("color",o),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:["box-shadow 0.4s","opacity 2s"].map(c=>`${c} ${i}`).join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:["box-shadow","opacity"].map(c=>`${c} ${n} ${r}`).join(",")}}}}},QE=ob("Wave",ZL);var xl=M(require("react"));var bl=`${is}-wave-target`;var Bo=M(require("react"));var JE=e=>e?Pn(e)&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/i.test(e)&&!/^#(?:[0-9a-f]{3}0|[0-9a-f]{6}00)$/i.test(e)&&e!=="transparent"&&e!=="canvastext":!1;function e1(e,t=null){let o=getComputedStyle(e),{borderTopColor:n,borderColor:r,backgroundColor:i}=o;return t&&JE(o[t])?o[t]:[n,r,i].find(JE)??null}function sb(e){return Number.isNaN(e)?0:e}var QL=e=>{let{className:t,target:o,component:n,colorSource:r}=e,i=Bo.useRef(null),{getPrefixCls:s}=Bo.useContext(Oe),a=s(),[c]=qt(a,"wave"),[l,d]=Bo.useState(null),[u,m]=Bo.useState([]),[f,g]=Bo.useState(0),[p,h]=Bo.useState(0),[y,x]=Bo.useState(0),[b,S]=Bo.useState(0),[v,C]=Bo.useState(!1),R={left:f,top:p,width:y,height:b,borderRadius:u.map(P=>`${P}px`).join(" ")};l&&(R[c("color")]=l);function w(){let P=getComputedStyle(o);d(e1(o,r));let N=P.position==="static",{borderLeftWidth:E,borderTopWidth:O}=P;g(N?o.offsetLeft:sb(-Number.parseFloat(E))),h(N?o.offsetTop:sb(-Number.parseFloat(O))),x(o.offsetWidth),S(o.offsetHeight);let{borderTopLeftRadius:D,borderTopRightRadius:A,borderBottomLeftRadius:F,borderBottomRightRadius:_}=P;m([D,A,_,F].map(T=>sb(Number.parseFloat(T))))}if(Bo.useEffect(()=>{if(o){let P=He(()=>{w(),C(!0)}),N;return typeof ResizeObserver<"u"&&(N=new ResizeObserver(w),N.observe(o)),()=>{He.cancel(P),N?.disconnect()}}},[o]),!v)return null;let I=(n==="Checkbox"||n==="Radio")&&o?.classList.contains(bl);return Bo.createElement(po,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(P,N)=>{if(N.deadline||Ku(N)&&N.propertyName==="opacity"){let E=i.current?.parentElement;Ic(E).then(()=>{E?.remove()})}return!1}},({className:P},N)=>Bo.createElement("div",{ref:Mt(i,N),className:$(t,P,{"wave-quick":I}),style:R}))},JL=(e,t)=>{let{component:o}=t;if(o==="Checkbox"&&!e.querySelector("input")?.checked)return;let n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",e?.insertBefore(n,e?.firstChild),$c(Bo.createElement(QL,{...t,target:e}),n)},t1=JL;var e5=(e,t,o,n)=>{let{wave:r}=xl.useContext(Oe),[,i,s]=Gt(),a=Ie(d=>{let u=e.current;if(r?.disabled||!u)return;let m=u.querySelector(`.${bl}`)||u,{showEffect:f}=r||{};(f||t1)(m,{className:t,token:i,component:o,event:d,hashId:s,colorSource:n})}),c=xl.useRef(null);return xl.useEffect(()=>()=>{He.cancel(c.current)},[]),d=>{He.cancel(c.current),c.current=He(()=>{a(d)})}},o1=e5;var n1={click:"click",mousedown:"mousedown",mouseup:"mouseup",pointerdown:"pointerdown",pointerup:"pointerup"},t5=e=>{let{children:t,disabled:o,component:n,colorSource:r}=e,{getPrefixCls:i,wave:s}=(0,ua.useContext)(Oe),a=(0,ua.useRef)(null),c=i("wave"),l=QE(c),d=o1(a,$(c,l),n,r);if(ua.default.useEffect(()=>{let m=a.current;if(!m||m.nodeType!==window.Node.ELEMENT_NODE||o)return;let f=h=>{!Us(h.target)||!m.getAttribute||m.getAttribute("disabled")||m.disabled||m.className.includes("disabled")&&!m.className.includes("disabled:")||m.getAttribute("aria-disabled")==="true"||m.className.includes("-leave")||d(h)},g=s?.triggerType,p=g&&g in n1?n1[g]:"click";return m.addEventListener(p,f,!0),()=>{m.removeEventListener(p,f,!0)}},[o,s?.triggerType]),!ua.default.isValidElement(t))return t??null;let u=dr(t)?Mt(Po(t),a):a;return Ro(t,{ref:u})},vl=t5;var ab=M(require("react"));var o5=e=>{let t=ab.default.useContext(aa);return ab.default.useMemo(()=>e?Pn(e)?e??t:ct(e)?e(t):t:t,[e,t])},Xt=o5;var vo=M(require("react"));var ap=M(require("react"));var sp=M(require("react"));var n5={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"},r1=n5;var pa=M(require("react"));var h1=M(require("react"));var ma=M(require("react"));var i1="data-rc-order",s1="data-rc-priority",r5="rc-util-key",lb=new Map;function l1(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function i5(e,t){if(!e||!t)return!1;if(e.contains)return e.contains(t);let o=t;for(;o;){if(o===e)return!0;o=o.parentNode}return!1}function c1({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:r5}function cb(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function s5(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function db(e){return Array.from((lb.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function d1(e,t={}){if(!l1())return null;let{csp:o,prepend:n,priority:r=0}=t,i=s5(n),s=i==="prependQueue",a=document.createElement("style");a.setAttribute(i1,i),s&&r&&a.setAttribute(s1,`${r}`),o?.nonce&&(a.nonce=o.nonce),a.innerHTML=e;let c=cb(t),{firstChild:l}=c;if(n){if(s){let d=(t.styles||db(c)).filter(u=>{if(!["prepend","prependQueue"].includes(u.getAttribute(i1)))return!1;let m=Number(u.getAttribute(s1)||0);return r>=m});if(d.length)return c.insertBefore(a,d[d.length-1].nextSibling),a}c.insertBefore(a,l)}else c.appendChild(a);return a}function a5(e,t={}){let{styles:o}=t;return o||=db(cb(t)),o.find(n=>n.getAttribute(c1(t))===e)}function l5(e,t){let o=lb.get(e);if(!o||!i5(document,o)){let n=d1("",t);if(!n)return;let{parentNode:r}=n;lb.set(e,r),e.removeChild(n)}}function u1(e,t,o={}){if(!l1())return null;let n=cb(o),r=db(n),i={...o,styles:r};l5(n,i);let s=a5(t,i);if(s)return i.csp?.nonce&&s.nonce!==i.csp.nonce&&(s.nonce=i.csp.nonce),s.innerHTML!==e&&(s.innerHTML=e),s;let a=d1(e,i);return a?.setAttribute(c1(i),t),a}function c5(e){return e?.getRootNode?.()}function m1(e){let t=c5(e);return typeof ShadowRoot<"u"&&t instanceof ShadowRoot?t:null}var a1={};function p1(e,t){e||a1[t]||(a1[t]=!0)}function d5(e){return e.replace(/-(.)/g,(t,o)=>o.toUpperCase())}function ip(e,t){p1(e,`[@ant-design/icons] ${t}`)}function Sl(e){return e!==null&&typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function f1(e={}){return Object.keys(e).reduce((t,o)=>{let n=e[o];switch(o){case"class":t.className=n,delete t.class;break;default:delete t[o],t[d5(o)]=n}return t},{})}function rp(e,t,o){return o?ma.default.createElement(e.tag,{key:t,...f1(e.attrs),...o},(e.children||[]).map((n,r)=>rp(n,`${t}-${e.tag}-${r}`))):ma.default.createElement(e.tag,{key:t,...f1(e.attrs)},(e.children||[]).map((n,r)=>rp(n,`${t}-${e.tag}-${r}`)))}var u5=`
|
|
71
|
+
`,boxShadowTabsOverflowLeft:`inset 10px 0 8px -8px ${a(.08)}`,boxShadowTabsOverflowRight:`inset -10px 0 8px -8px ${a(.08)}`,boxShadowTabsOverflowTop:`inset 0 10px 8px -8px ${a(.08)}`,boxShadowTabsOverflowBottom:`inset 0 -10px 8px -8px ${a(.08)}`,...n}}var eb={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},jL={motionBase:!0,motionUnit:!0},UL={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,screenXXLMax:!0,screenXXXL:!0,screenXXXLMin:!0},WE=(e,t,o)=>{let n=o.getDerivativeToken(e),{override:r,...i}=t,s={...n,override:r};return s=Qy(s),i&&Object.entries(i).forEach(([a,c])=>{let{theme:l,...d}=c,u=d;l&&(u=WE({...s,...d},{override:d},l)),s[a]=u}),s};function Gt(){let{token:e,hashed:t,theme:o,override:n,cssVar:r,zeroRuntime:i}=Jy.default.useContext(Fc),{csp:s,getPrefixCls:a}=Jy.default.useContext(Oe),c={prefix:r?.prefix??a(),key:r?.key??"css-var-root"},l=`${VE}-${t||""}`,d=o||Dc,[u,m,f]=em(d,[Si,e],{salt:l,override:n,getComputedToken:WE,cssVar:{...c,unitless:eb,ignore:jL,preserve:UL},nonce:s?.nonce});return[d,f,t?m:"",u,c,!!i]}var tb=require("react");var Xo={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Et=(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}),ca=()=>({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",verticalAlign:"inherit"}}),KL=new nt("loadingCircle",{"100%":{transform:"rotate(360deg)"}}),da=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),An=(e,t)=>({outline:`${q(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:["outline-offset","outline"].map(o=>`${o} 0s`).join(", ")}),ln=(e,t)=>({"&:focus-visible":An(e,t)}),jE=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},...ln(e),"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),UE=(e,t,o,n)=>{let r=`[class^="${t}"], [class*=" ${t}"]`,i=o?`.${o}`:r,s={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},a={};return n!==!1&&(a={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:{...a,...s,[r]:s}}},ep=e=>({[`.${e}`]:{...ca(),"&::before":{display:"none"},"&[tabindex]":{cursor:"pointer"}},[`.${e} .${e}-icon`]:{display:"block"},[`.${e}-spin`]:{animationName:KL,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}});var{genStyleHooks:Ze,genComponentStyleHook:ob,genSubStyleComponent:Jc}=Yy({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=(0,tb.useContext)(Oe);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{let[e,t,o,n,r,i]=Gt();return{theme:e,realToken:t,hashId:o,token:n,cssVar:r,zeroRuntime:i}},useCSP:()=>{let{csp:e}=(0,tb.useContext)(Oe);return e??{}},getResetStyles:(e,t)=>{let o=jE(e);return[o,{"&":o},ep(t?.prefix.iconPrefixCls??fl)]},getCommonStyle:UE,getCompUnitless:()=>eb}),qt=(e,t)=>{let o=`--${e.replace(/\./g,"")}-${t}-`;return[i=>`${o}${i}`,(i,s)=>s?`var(${o}${i}, ${s})`:`var(${o}${i})`]};function tp(e,t){return jo.reduce((o,n)=>{let r=e[`${n}1`],i=e[`${n}3`],s=e[`${n}6`],a=e[`${n}7`];return{...o,...t(n,{lightColor:r,lightBorderColor:i,darkColor:s,textColor:a})}},{})}var GL=(e,t)=>{let[o,n]=Gt();return es({theme:o,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>ep(e))},op=GL;function nb(e,t,o){let n=Xa("ConfigProvider"),r=e||{},i=r.inherit===!1||!t?{..._c,hashed:t?.hashed??_c.hashed,cssVar:t?.cssVar,zeroRuntime:t?.zeroRuntime}:t,s=(0,KE.useId)();return Kn(()=>{if(!e)return t;let a={...i.components};Object.keys(e.components||{}).forEach(d=>{a[d]={...a[d],...e.components[d]}});let c=`css-var-${s.replace(/:/g,"")}`,l={prefix:o?.prefixCls,...i.cssVar,...r.cssVar,key:r.cssVar?.key||c};return{...i,...r,token:{...i.token,...r.token},components:a,cssVar:l}},[r,i,o?.prefixCls,s],(a,c)=>a.some((l,d)=>{let u=c[d];return!Mr(l,u,!0)}))}var Ii=M(require("react"));var GE=Ii.createContext(!0);function rb(e){let t=Ii.useContext(GE),{children:o}=e,[,n]=Gt(),{motion:r}=n,i=Ii.useRef(!1);return i.current||(i.current=t!==r),i.current?Ii.createElement(GE.Provider,{value:r},Ii.createElement(yy,{motion:r},o)):o}var qL=M(require("react"));var qE=()=>null;var XL=({iconPrefixCls:e,csp:t})=>(op(e,t),null);var YL=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],np,XE,YE,ZE;function ib(){return np||is}function ZL(){return XE||fl}var QL=e=>{let{prefixCls:t,iconPrefixCls:o,theme:n,holderRender:r}=e;t!==void 0&&(np=t),o!==void 0&&(XE=o),"holderRender"in e&&(ZE=r),n&&(YE=n)},QE=()=>({getPrefixCls:(e,t)=>t||(e?`${ib()}-${e}`:ib()),getIconPrefixCls:ZL,getRootPrefixCls:()=>np||ib(),getTheme:()=>YE,holderRender:ZE}),JL=e=>{let{children:t,csp:o,autoInsertSpaceInButton:n,alert:r,affix:i,anchor:s,app:a,form:c,locale:l,componentSize:d,direction:u,space:m,splitter:f,virtual:g,dropdownMatchSelectWidth:p,popupMatchSelectWidth:h,popupOverflow:y,legacyLocale:x,parentContext:b,iconPrefixCls:S,theme:v,componentDisabled:C,segmented:R,statistic:w,spin:I,calendar:P,carousel:N,cascader:E,collapse:O,typography:L,checkbox:k,descriptions:z,divider:_,drawer:T,skeleton:D,steps:F,image:G,layout:H,list:W,listy:X,mentions:B,modal:j,progress:U,result:Z,slider:Y,breadcrumb:K,masonry:V,menu:A,pagination:ee,input:Q,inputPassword:te,inputSearch:le,textArea:re,otp:ie,empty:Se,badge:de,borderBeam:Ee,radio:ae,rate:Ne,ribbon:he,switch:ne,transfer:fe,avatar:ce,message:we,tag:Le,table:Ce,card:pe,cardMeta:ue,tabs:se,timeline:ve,timePicker:$e,upload:Pe,notification:Ge,tree:qe,colorPicker:mt,datePicker:Qe,rangePicker:$t,flex:wt,wave:gt,dropdown:ht,warning:yt,tour:Rt,tooltip:_e,popover:xt,popconfirm:be,qrcode:oe,floatButton:me,floatButtonGroup:J,variant:ge,inputNumber:ye,treeSelect:ke,watermark:Je}=e,At=Lt.useMemo(()=>at(l)&&Object.prototype.hasOwnProperty.call(l,"default")&&l.default?.locale?l.default:l,[l]),Wt=Lt.useCallback((vt,jt)=>{let{prefixCls:_o}=e;if(jt)return jt;let hn=_o||b.getPrefixCls("");return vt?`${hn}-${vt}`:hn},[b.getPrefixCls,e.prefixCls]),Pt=S||b.iconPrefixCls||fl,to=o||b.csp,ao=nb(v,b.theme,{prefixCls:Wt("")}),$n={csp:to,autoInsertSpaceInButton:n,alert:r,affix:i,anchor:s,app:a,locale:At||x,direction:u,space:m,splitter:f,virtual:g,popupMatchSelectWidth:h??p,popupOverflow:y,getPrefixCls:Wt,iconPrefixCls:Pt,theme:ao,segmented:R,statistic:w,spin:I,calendar:P,carousel:N,cascader:E,collapse:O,typography:L,checkbox:k,descriptions:z,divider:_,drawer:T,skeleton:D,steps:F,image:G,input:Q,inputPassword:te,inputSearch:le,textArea:re,otp:ie,layout:H,list:W,listy:X,mentions:B,modal:j,progress:U,result:Z,slider:Y,breadcrumb:K,masonry:V,menu:A,pagination:ee,empty:Se,badge:de,borderBeam:Ee,radio:ae,rate:Ne,ribbon:he,switch:ne,transfer:fe,avatar:ce,message:we,tag:Le,table:Ce,card:pe,cardMeta:ue,tabs:se,timeline:ve,timePicker:$e,upload:Pe,notification:Ge,tree:qe,colorPicker:mt,datePicker:Qe,rangePicker:$t,flex:wt,wave:gt,dropdown:ht,warning:yt,tour:Rt,tooltip:_e,popover:xt,popconfirm:be,qrcode:oe,floatButton:me,floatButtonGroup:J,variant:ge,inputNumber:ye,treeSelect:ke,watermark:Je},ze={...b};Object.keys($n).forEach(vt=>{$n[vt]!==void 0&&(ze[vt]=$n[vt])}),YL.forEach(vt=>{let jt=e[vt];jt&&(ze[vt]=jt)}),typeof n<"u"&&(ze.button={autoInsertSpace:n,...ze.button});let ot=Kn(()=>ze,ze,(vt,jt)=>{let _o=Object.keys(vt),hn=Object.keys(jt);return _o.length!==hn.length||_o.some(Pr=>vt[Pr]!==jt[Pr])}),{layer:ut}=Lt.useContext(Or),Ae=Lt.useMemo(()=>({prefixCls:Pt,csp:to,layer:ut?"antd":void 0,zeroRuntime:!!ut||ao?.zeroRuntime}),[Pt,to,ut,ao?.zeroRuntime]),je=Lt.createElement(Lt.Fragment,null,Lt.createElement(XL,{iconPrefixCls:Pt,csp:to}),Lt.createElement(qE,{dropdownMatchSelectWidth:p}),t),Tt=Lt.useMemo(()=>Yr(Xn.Form?.defaultValidateMessages||{},ot.locale?.Form?.defaultValidateMessages||{},ot.form?.validateMessages||{},c?.validateMessages||{}),[ot,c?.validateMessages]);Object.keys(Tt).length>0&&(je=Lt.createElement(vR.Provider,{value:Tt},je)),At&&(je=Lt.createElement(PR,{locale:At,_ANT_MARK__:NR},je)),(Pt||to)&&(je=Lt.createElement(sl.Provider,{value:Ae},je)),d&&(je=Lt.createElement(CE,{size:d},je)),je=Lt.createElement(rb,null,je),_e?.unique&&(je=Lt.createElement(Wm,null,je));let mo=Lt.useMemo(()=>{let{algorithm:vt,token:jt,components:_o,cssVar:hn,...Pr}=ao||{},Ur=vt&&(!Array.isArray(vt)||vt.length>0)?Qi(vt):Dc,Ki={};Object.entries(_o||{}).forEach(([xi,pc])=>{let Be={...pc};"algorithm"in Be&&(Be.algorithm===!0?Be.theme=Ur:(Array.isArray(Be.algorithm)||dt(Be.algorithm))&&(Be.theme=Qi(Be.algorithm)),delete Be.algorithm),Ki[xi]=Be});let Kr={...Si,...jt};return{...Pr,theme:Ur,token:Kr,components:Ki,override:{override:Kr,...Ki},cssVar:hn}},[ao]);return v&&(je=Lt.createElement(Fc.Provider,{value:mo},je)),ot.warning&&(je=Lt.createElement(Tw.Provider,{value:ot.warning},je)),C!==void 0&&(je=Lt.createElement(jm,{disabled:C},je)),Lt.createElement(Oe.Provider,{value:ot},je)},yl=e=>{let t=Lt.useContext(Oe),o=Lt.useContext(al);return Lt.createElement(JL,{parentContext:t,legacyLocale:o,...e})};yl.ConfigContext=Oe;yl.SizeContext=aa;yl.config=QL;yl.useConfig=wE;Object.defineProperty(yl,"SizeContext",{get:()=>aa});var as=yl;var e5=e=>{let{componentCls:t,colorPrimary:o,motionDurationSlow:n,motionEaseInOut:r,motionEaseOutCirc:i,antCls:s}=e,[,a]=qt(s,"wave");return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:a("color",o),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:["box-shadow 0.4s","opacity 2s"].map(c=>`${c} ${i}`).join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:["box-shadow","opacity"].map(c=>`${c} ${n} ${r}`).join(",")}}}}},JE=ob("Wave",e5);var xl=M(require("react"));var bl=`${is}-wave-target`;var Ho=M(require("react"));var e1=e=>e?Pn(e)&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/i.test(e)&&!/^#(?:[0-9a-f]{3}0|[0-9a-f]{6}00)$/i.test(e)&&e!=="transparent"&&e!=="canvastext":!1;function t1(e,t=null){let o=getComputedStyle(e),{borderTopColor:n,borderColor:r,backgroundColor:i}=o;return t&&e1(o[t])?o[t]:[n,r,i].find(e1)??null}function sb(e){return Number.isNaN(e)?0:e}var t5=e=>{let{className:t,target:o,component:n,colorSource:r}=e,i=Ho.useRef(null),{getPrefixCls:s}=Ho.useContext(Oe),a=s(),[c]=qt(a,"wave"),[l,d]=Ho.useState(null),[u,m]=Ho.useState([]),[f,g]=Ho.useState(0),[p,h]=Ho.useState(0),[y,x]=Ho.useState(0),[b,S]=Ho.useState(0),[v,C]=Ho.useState(!1),R={left:f,top:p,width:y,height:b,borderRadius:u.map(P=>`${P}px`).join(" ")};l&&(R[c("color")]=l);function w(){let P=getComputedStyle(o);d(t1(o,r));let N=P.position==="static",{borderLeftWidth:E,borderTopWidth:O}=P;g(N?o.offsetLeft:sb(-Number.parseFloat(E))),h(N?o.offsetTop:sb(-Number.parseFloat(O))),x(o.offsetWidth),S(o.offsetHeight);let{borderTopLeftRadius:L,borderTopRightRadius:k,borderBottomLeftRadius:z,borderBottomRightRadius:_}=P;m([L,k,_,z].map(T=>sb(Number.parseFloat(T))))}if(Ho.useEffect(()=>{if(o){let P=He(()=>{w(),C(!0)}),N;return typeof ResizeObserver<"u"&&(N=new ResizeObserver(w),N.observe(o)),()=>{He.cancel(P),N?.disconnect()}}},[o]),!v)return null;let I=(n==="Checkbox"||n==="Radio")&&o?.classList.contains(bl);return Ho.createElement(po,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(P,N)=>{if(N.deadline||Ku(N)&&N.propertyName==="opacity"){let E=i.current?.parentElement;Ic(E).then(()=>{E?.remove()})}return!1}},({className:P},N)=>Ho.createElement("div",{ref:Mt(i,N),className:$(t,P,{"wave-quick":I}),style:R}))},o5=(e,t)=>{let{component:o}=t;if(o==="Checkbox"&&!e.querySelector("input")?.checked)return;let n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",e?.insertBefore(n,e?.firstChild),$c(Ho.createElement(t5,{...t,target:e}),n)},o1=o5;var n5=(e,t,o,n)=>{let{wave:r}=xl.useContext(Oe),[,i,s]=Gt(),a=Ie(d=>{let u=e.current;if(r?.disabled||!u)return;let m=u.querySelector(`.${bl}`)||u,{showEffect:f}=r||{};(f||o1)(m,{className:t,token:i,component:o,event:d,hashId:s,colorSource:n})}),c=xl.useRef(null);return xl.useEffect(()=>()=>{He.cancel(c.current)},[]),d=>{He.cancel(c.current),c.current=He(()=>{a(d)})}},n1=n5;var r1={click:"click",mousedown:"mousedown",mouseup:"mouseup",pointerdown:"pointerdown",pointerup:"pointerup"},r5=e=>{let{children:t,disabled:o,component:n,colorSource:r}=e,{getPrefixCls:i,wave:s}=(0,ua.useContext)(Oe),a=(0,ua.useRef)(null),c=i("wave"),l=JE(c),d=n1(a,$(c,l),n,r);if(ua.default.useEffect(()=>{let m=a.current;if(!m||m.nodeType!==window.Node.ELEMENT_NODE||o)return;let f=h=>{!Us(h.target)||!m.getAttribute||m.getAttribute("disabled")||m.disabled||m.className.includes("disabled")&&!m.className.includes("disabled:")||m.getAttribute("aria-disabled")==="true"||m.className.includes("-leave")||d(h)},g=s?.triggerType,p=g&&g in r1?r1[g]:"click";return m.addEventListener(p,f,!0),()=>{m.removeEventListener(p,f,!0)}},[o,s?.triggerType]),!ua.default.isValidElement(t))return t??null;let u=dr(t)?Mt(To(t),a):a;return Ro(t,{ref:u})},vl=r5;var ab=M(require("react"));var i5=e=>{let t=ab.default.useContext(aa);return ab.default.useMemo(()=>e?Pn(e)?e??t:dt(e)?e(t):t:t,[e,t])},Xt=i5;var vo=M(require("react"));var ap=M(require("react"));var sp=M(require("react"));var s5={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"},i1=s5;var pa=M(require("react"));var y1=M(require("react"));var ma=M(require("react"));var s1="data-rc-order",a1="data-rc-priority",a5="rc-util-key",lb=new Map;function c1(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function l5(e,t){if(!e||!t)return!1;if(e.contains)return e.contains(t);let o=t;for(;o;){if(o===e)return!0;o=o.parentNode}return!1}function d1({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:a5}function cb(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function c5(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function db(e){return Array.from((lb.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function u1(e,t={}){if(!c1())return null;let{csp:o,prepend:n,priority:r=0}=t,i=c5(n),s=i==="prependQueue",a=document.createElement("style");a.setAttribute(s1,i),s&&r&&a.setAttribute(a1,`${r}`),o?.nonce&&(a.nonce=o.nonce),a.innerHTML=e;let c=cb(t),{firstChild:l}=c;if(n){if(s){let d=(t.styles||db(c)).filter(u=>{if(!["prepend","prependQueue"].includes(u.getAttribute(s1)))return!1;let m=Number(u.getAttribute(a1)||0);return r>=m});if(d.length)return c.insertBefore(a,d[d.length-1].nextSibling),a}c.insertBefore(a,l)}else c.appendChild(a);return a}function d5(e,t={}){let{styles:o}=t;return o||=db(cb(t)),o.find(n=>n.getAttribute(d1(t))===e)}function u5(e,t){let o=lb.get(e);if(!o||!l5(document,o)){let n=u1("",t);if(!n)return;let{parentNode:r}=n;lb.set(e,r),e.removeChild(n)}}function m1(e,t,o={}){if(!c1())return null;let n=cb(o),r=db(n),i={...o,styles:r};u5(n,i);let s=d5(t,i);if(s)return i.csp?.nonce&&s.nonce!==i.csp.nonce&&(s.nonce=i.csp.nonce),s.innerHTML!==e&&(s.innerHTML=e),s;let a=u1(e,i);return a?.setAttribute(d1(i),t),a}function m5(e){return e?.getRootNode?.()}function p1(e){let t=m5(e);return typeof ShadowRoot<"u"&&t instanceof ShadowRoot?t:null}var l1={};function f1(e,t){e||l1[t]||(l1[t]=!0)}function p5(e){return e.replace(/-(.)/g,(t,o)=>o.toUpperCase())}function ip(e,t){f1(e,`[@ant-design/icons] ${t}`)}function Sl(e){return e!==null&&typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function g1(e={}){return Object.keys(e).reduce((t,o)=>{let n=e[o];switch(o){case"class":t.className=n,delete t.class;break;default:delete t[o],t[p5(o)]=n}return t},{})}function rp(e,t,o){return o?ma.default.createElement(e.tag,{key:t,...g1(e.attrs),...o},(e.children||[]).map((n,r)=>rp(n,`${t}-${e.tag}-${r}`))):ma.default.createElement(e.tag,{key:t,...g1(e.attrs)},(e.children||[]).map((n,r)=>rp(n,`${t}-${e.tag}-${r}`)))}var f5=`
|
|
72
72
|
.anticon {
|
|
73
73
|
display: inline-flex;
|
|
74
74
|
align-items: center;
|
|
@@ -122,42 +122,42 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
122
122
|
transform: rotate(360deg);
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
|
-
`,
|
|
125
|
+
`,h1=e=>{let{csp:t,prefixCls:o,layer:n,zeroRuntime:r}=(0,ma.useContext)(sl),i=f5;o&&(i=i.replace(/anticon/g,o)),n&&(i=`@layer ${n} {
|
|
126
126
|
${i}
|
|
127
|
-
}`),(0,ma.useEffect)(()=>{if(r)return;let s=e.current,a=m1(s);u1(i,"@ant-design-icons",{prepend:!n,csp:t,attachTo:a})},[])};var y1=e=>{let{icon:t,className:o,onClick:n,style:r,primaryColor:i,secondaryColor:s,...a}=e,c=h1.useRef(null);if(g1(c),ip(Sl(t),`icon should be icon definiton, but got ${typeof t}`),!Sl(t))return null;let l=t;return rp(l.icon,`svg-${l.name}`,{className:o,onClick:n,style:r,"data-icon":l.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...a,ref:c})};y1.displayName="IconReact";var b1=y1;function ub(){return ub=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},ub.apply(this,arguments)}var m5=pa.forwardRef((e,t)=>{let{className:o,icon:n,spin:r,rotate:i,tabIndex:s,onClick:a,twoToneColor:c,...l}=e,{prefixCls:d="anticon",rootClassName:u}=pa.useContext(sl);if(ip(Sl(n),`icon should be icon definiton, but got ${typeof n}`),!Sl(n))return null;let m=$(u,d,{[`${d}-${n.name}`]:!!n.name,[`${d}-spin`]:!!r||n.name==="loading"},o),f=s;f===void 0&&a&&(f=-1);let g=i?{msTransform:`rotate(${i}deg)`,transform:`rotate(${i}deg)`}:void 0;return pa.createElement("span",ub({role:"img","aria-label":n.name},l,{ref:t,tabIndex:f,onClick:a,className:m}),pa.createElement(b1,{icon:n,style:g}))}),Ot=m5;function mb(){return mb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},mb.apply(this,arguments)}var p5=(e,t)=>sp.createElement(Ot,mb({},e,{ref:t,icon:r1})),f5=sp.forwardRef(p5),ls=f5;function Qt(...e){return e.find(t=>t!==void 0)}var lp=e=>{let{allowClear:t,clearIcon:o,contextAllowClear:n,contextClearIcon:r,defaultAllowClear:i,componentName:s}=e;return(0,ap.useMemo)(()=>t??n??i?{clearIcon:Qt(at(t)?t?.clearIcon:o,at(n)?n?.clearIcon:r,ap.default.createElement(ls,null)),disabled:(at(t)?t?.disabled:void 0)??(at(n)?n?.disabled:void 0)}:!1,[t,o,n,r,i])};var fa=M(require("react"));var cp=M(require("react"));var g5={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"},x1=g5;function pb(){return pb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},pb.apply(this,arguments)}var h5=(e,t)=>cp.createElement(Ot,pb({},e,{ref:t,icon:x1})),y5=cp.forwardRef(h5),Yn=y5;var fb=e=>{if(!e)return;let{closable:t,closeIcon:o}=e;return{closable:t,closeIcon:o}},S1={},v1=(e,t)=>{if(!e&&(e===!1||t===!1||t===null))return!1;if(!Nn(e)&&!Nn(t))return null;let o={closeIcon:typeof t!="boolean"&&Nn(t)?t:void 0};return at(e)&&(o={...o,...e}),o},b5=(e,t,o)=>e===!1?!1:e?Hu(o,t,e):t===!1?!1:t?Hu(o,t):o.closable?o:!1,x5=(e,t,o)=>{let{closeIconRender:n}=t,{closeIcon:r,...i}=e,s=r,a=To(i,!0);return Nn(s)&&(n&&(s=n(s)),s=fa.default.isValidElement(s)?fa.default.cloneElement(s,{"aria-label":o,...s.props,...a}):fa.default.createElement("span",{"aria-label":o,...a},s)),[s,{"aria-label":o,...a}]},v5=(e,t,o=S1,n="Close")=>{let r=v1(e?.closable,e?.closeIcon),i=v1(t?.closable,t?.closeIcon),s={closeIcon:fa.default.createElement(Yn,null),...o},a=b5(r,i,s),c=typeof a!="boolean"?!!a?.disabled:!1;if(a===!1)return[!1,null,c,{}];let[l,d]=x5(a,s,n);return[!0,l,c,d]},C1=(e,t,o=S1)=>{let[n]=Go("global",Xn.global);return fa.default.useMemo(()=>v5(e,t,{closeIcon:fa.default.createElement(Yn,null),...o},n.close),[e,t,o,n.close])};var w1=require("react");var dp=(e,t)=>{let o={};return at(e)&&(o={...e}),typeof e=="boolean"&&(o={enabled:e}),o.closable===void 0&&t!==void 0&&(o.closable=t),o},R1=(e,t,o,n)=>(0,w1.useMemo)(()=>{let r=dp(e,n),i=dp(t),s={blur:!1,...i,...r,closable:r.closable??n??i.closable??!0},a=s.blur?`${o}-mask-blur`:void 0;return[s.enabled!==!1,{mask:a},!!s.closable]},[e,t,o,n]);var $1=require("react"),E1=e=>e==="horizontal"||e==="vertical",Cl=(e,t,o)=>(0,$1.useMemo)(()=>{let n=E1(e),r;return n?r=e:typeof t=="boolean"?r=t?"vertical":"horizontal":r=E1(o)?o:"horizontal",[r,r==="vertical"]},[o,e,t]);var up=M(require("react")),I1=()=>{let[e,t]=up.useState([]),o=up.useCallback(n=>(t(r=>[].concat(Zt(r),[n])),()=>{t(r=>r.filter(i=>i!==n))}),[]);return[e,o]};var P1=M(require("react"));var N1=M(require("react")),S5=N1.default.createContext(void 0),cs=S5;var Ni=100,C5=10,gb=Ni*C5,tQ=gb+Ni,T1={Modal:Ni,Drawer:Ni,Popover:Ni,Popconfirm:Ni,Tooltip:Ni,Tour:Ni,FloatButton:Ni},w5={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},R5=e=>e in T1,ti=(e,t)=>{let[,o]=Gt(),n=P1.default.useContext(cs),r=R5(e),i;if(t!==void 0)i=[t,t];else{let s=n??0;r?s+=(n?0:o.zIndexPopupBase)+T1[e]:s+=w5[e],i=[n===void 0?t:s,s]}return i};var E5=e=>{let{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},M1=Ze(["Space","Compact"],E5,()=>({}),{resetStyle:!1});var mp=vo.createContext(null),kn=(e,t)=>{let o=vo.useContext(mp),n=vo.useMemo(()=>{if(!o)return"";let{compactDirection:r,isFirstItem:i,isLastItem:s}=o,a=r==="vertical"?"-vertical-":"-";return $(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:i,[`${e}-compact${a}last-item`]:s,[`${e}-compact${a}item-rtl`]:t==="rtl"})},[e,t,o]);return{compactSize:o?.compactSize,compactDirection:o?.compactDirection,compactItemClassnames:n}},O1=e=>{let{children:t}=e;return vo.createElement(mp.Provider,{value:null},t)},$5=e=>{let{children:t,...o}=e;return vo.createElement(mp.Provider,{value:vo.useMemo(()=>o,[o])},t)},I5=vo.forwardRef((e,t)=>{let{getPrefixCls:o,direction:n}=vo.useContext(Oe),{size:r,direction:i,orientation:s,block:a,prefixCls:c,className:l,rootClassName:d,children:u,vertical:m,...f}=e,[g,p]=Cl(s,m,i),h=Xt(w=>r??w),y=o("space-compact",c),[x]=M1(y),b=$(y,x,{[`${y}-rtl`]:n==="rtl",[`${y}-block`]:a,[`${y}-vertical`]:p},l,d),S=vo.useContext(mp),v=vo.useRef(null);vo.useImperativeHandle(t,()=>({nativeElement:v.current}));let C=co(u),R=vo.useMemo(()=>C.map((w,I)=>{let P=w?.key||`${y}-item-${I}`;return vo.createElement($5,{key:P,compactSize:h,compactDirection:g,isFirstItem:I===0&&(!S||S?.isFirstItem),isLastItem:I===C.length-1&&(!S||S?.isLastItem)},w)}),[C,S,g,h,y]);return C.length===0?null:vo.createElement("div",{ref:v,className:b,...f},R)}),pp=I5;var Pi=M(require("react"));var hb=Pi.createContext(void 0),N5=e=>{let{getPrefixCls:t,direction:o}=Pi.useContext(Oe),{prefixCls:n,size:r,className:i,...s}=e,a=t("btn-group",n),[,,c]=Gt(),l=Pi.useMemo(()=>{switch(r){case"large":return"lg";case"small":return"sm";default:return""}},[r]),d=$(a,{[`${a}-${l}`]:l,[`${a}-rtl`]:o==="rtl"},i,c);return Pi.createElement(hb.Provider,{value:r},Pi.createElement("div",{...s,className:d}))},A1=N5;var ed=M(require("react"));var k1=/^[\u4E00-\u9FA5]{2}$/,fp=k1.test.bind(k1);function gp(e){return e==="danger"?{danger:!0}:{type:e}}function hp(e){return e==="text"||e==="link"}function P5(e,t,o,n){if(!lo(e))return;let r=t?" ":"";return!Pn(e)&&!Ko(e)&&Pn(e.type)&&fp(e.props.children)?Ro(e,i=>{let s=$(i.className,n)||void 0,a={...o,...i.style};return{...i,children:i.children.split("").join(r),className:s,style:a}}):Pn(e)?ed.default.createElement("span",{className:n,style:o},fp(e)?e.split("").join(r):e):zm(e)?ed.default.createElement("span",{className:n,style:o},e):Ro(e,i=>({...i,className:$(i.className,n)||void 0,style:{...i.style,...o}}))}function L1(e,t,o,n){let r=!1,i=[];return ed.default.Children.forEach(e,s=>{let a=Pn(s)||Ko(s);if(r&&a){let c=i.length-1,l=i[c];i[c]=`${l}${s}`}else i.push(s);r=a}),ed.default.Children.map(i,s=>P5(s,t,o,n))}var CQ=["default","primary","danger"].concat(Zt(jo));var ds=M(require("react"));var yp=M(require("react"));var T5={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"},D1=T5;function yb(){return yb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},yb.apply(this,arguments)}var M5=(e,t)=>yp.createElement(Ot,yb({},e,{ref:t,icon:D1})),O5=yp.forwardRef(M5),wl=O5;var bp=M(require("react"));var A5=(0,bp.forwardRef)((e,t)=>{let{className:o,style:n,children:r,prefixCls:i}=e,s=$(`${i}-icon`,o);return bp.default.createElement("span",{ref:t,className:s,style:n},r)}),xp=A5;var _1=(0,ds.forwardRef)((e,t)=>{let{prefixCls:o,className:n,style:r,iconClassName:i}=e,s=$(`${o}-loading-icon`,n);return ds.default.createElement(xp,{prefixCls:o,className:s,style:r,ref:t},ds.default.createElement(wl,{className:i}))}),bb=()=>({width:0,opacity:0,transform:"scale(0)"}),xb=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),k5=e=>{let{prefixCls:t,loading:o,existIcon:n,className:r,style:i,mount:s}=e,a=!!o;return n?ds.default.createElement(_1,{prefixCls:t,className:r,style:i}):ds.default.createElement(po,{visible:a,motionName:`${t}-loading-icon-motion`,motionAppear:!s,motionEnter:!s,motionLeave:!s,removeOnLeave:!0,onAppearStart:bb,onAppearActive:xb,onEnterStart:bb,onEnterActive:xb,onLeaveStart:xb,onLeaveActive:bb},({className:c,style:l},d)=>{let u={...i,...l};return ds.default.createElement(_1,{prefixCls:t,className:$(r,c),style:u,ref:d})})},F1=k5;var L5=e=>{let{componentCls:t,antCls:o,motionDurationMid:n,motionEaseInOut:r}=e;return{[t]:{[`${o}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`${["height","opacity"].map(i=>`${i} ${n} ${r}`).join(", ")} !important`}},[`${o}-motion-collapse`]:{overflow:"hidden",transition:`${["height","opacity"].map(i=>`${i} ${n} ${r}`).join(", ")} !important`}}}},vb=L5;var z1=e=>({animationDuration:e,animationFillMode:"both"}),us=(e,t,o,n,r=!1)=>{let i=r?"&":"";return{[`
|
|
127
|
+
}`),(0,ma.useEffect)(()=>{if(r)return;let s=e.current,a=p1(s);m1(i,"@ant-design-icons",{prepend:!n,csp:t,attachTo:a})},[])};var b1=e=>{let{icon:t,className:o,onClick:n,style:r,primaryColor:i,secondaryColor:s,...a}=e,c=y1.useRef(null);if(h1(c),ip(Sl(t),`icon should be icon definiton, but got ${typeof t}`),!Sl(t))return null;let l=t;return rp(l.icon,`svg-${l.name}`,{className:o,onClick:n,style:r,"data-icon":l.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...a,ref:c})};b1.displayName="IconReact";var x1=b1;function ub(){return ub=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},ub.apply(this,arguments)}var g5=pa.forwardRef((e,t)=>{let{className:o,icon:n,spin:r,rotate:i,tabIndex:s,onClick:a,twoToneColor:c,...l}=e,{prefixCls:d="anticon",rootClassName:u}=pa.useContext(sl);if(ip(Sl(n),`icon should be icon definiton, but got ${typeof n}`),!Sl(n))return null;let m=$(u,d,{[`${d}-${n.name}`]:!!n.name,[`${d}-spin`]:!!r||n.name==="loading"},o),f=s;f===void 0&&a&&(f=-1);let g=i?{msTransform:`rotate(${i}deg)`,transform:`rotate(${i}deg)`}:void 0;return pa.createElement("span",ub({role:"img","aria-label":n.name},l,{ref:t,tabIndex:f,onClick:a,className:m}),pa.createElement(x1,{icon:n,style:g}))}),Ot=g5;function mb(){return mb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},mb.apply(this,arguments)}var h5=(e,t)=>sp.createElement(Ot,mb({},e,{ref:t,icon:i1})),y5=sp.forwardRef(h5),ls=y5;function Qt(...e){return e.find(t=>t!==void 0)}var lp=e=>{let{allowClear:t,clearIcon:o,contextAllowClear:n,contextClearIcon:r,defaultAllowClear:i,componentName:s}=e;return(0,ap.useMemo)(()=>t??n??i?{clearIcon:Qt(at(t)?t?.clearIcon:o,at(n)?n?.clearIcon:r,ap.default.createElement(ls,null)),disabled:(at(t)?t?.disabled:void 0)??(at(n)?n?.disabled:void 0)}:!1,[t,o,n,r,i])};var fa=M(require("react"));var cp=M(require("react"));var b5={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"},v1=b5;function pb(){return pb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},pb.apply(this,arguments)}var x5=(e,t)=>cp.createElement(Ot,pb({},e,{ref:t,icon:v1})),v5=cp.forwardRef(x5),Yn=v5;var fb=e=>{if(!e)return;let{closable:t,closeIcon:o}=e;return{closable:t,closeIcon:o}},C1={},S1=(e,t)=>{if(!e&&(e===!1||t===!1||t===null))return!1;if(!Nn(e)&&!Nn(t))return null;let o={closeIcon:typeof t!="boolean"&&Nn(t)?t:void 0};return at(e)&&(o={...o,...e}),o},S5=(e,t,o)=>e===!1?!1:e?Hu(o,t,e):t===!1?!1:t?Hu(o,t):o.closable?o:!1,C5=(e,t,o)=>{let{closeIconRender:n}=t,{closeIcon:r,...i}=e,s=r,a=Mo(i,!0);return Nn(s)&&(n&&(s=n(s)),s=fa.default.isValidElement(s)?fa.default.cloneElement(s,{"aria-label":o,...s.props,...a}):fa.default.createElement("span",{"aria-label":o,...a},s)),[s,{"aria-label":o,...a}]},w5=(e,t,o=C1,n="Close")=>{let r=S1(e?.closable,e?.closeIcon),i=S1(t?.closable,t?.closeIcon),s={closeIcon:fa.default.createElement(Yn,null),...o},a=S5(r,i,s),c=typeof a!="boolean"?!!a?.disabled:!1;if(a===!1)return[!1,null,c,{}];let[l,d]=C5(a,s,n);return[!0,l,c,d]},w1=(e,t,o=C1)=>{let[n]=Go("global",Xn.global);return fa.default.useMemo(()=>w5(e,t,{closeIcon:fa.default.createElement(Yn,null),...o},n.close),[e,t,o,n.close])};var R1=require("react");var dp=(e,t)=>{let o={};return at(e)&&(o={...e}),typeof e=="boolean"&&(o={enabled:e}),o.closable===void 0&&t!==void 0&&(o.closable=t),o},E1=(e,t,o,n)=>(0,R1.useMemo)(()=>{let r=dp(e,n),i=dp(t),s={blur:!1,...i,...r,closable:r.closable??n??i.closable??!0},a=s.blur?`${o}-mask-blur`:void 0;return[s.enabled!==!1,{mask:a},!!s.closable]},[e,t,o,n]);var I1=require("react"),$1=e=>e==="horizontal"||e==="vertical",Cl=(e,t,o)=>(0,I1.useMemo)(()=>{let n=$1(e),r;return n?r=e:typeof t=="boolean"?r=t?"vertical":"horizontal":r=$1(o)?o:"horizontal",[r,r==="vertical"]},[o,e,t]);var up=M(require("react")),N1=()=>{let[e,t]=up.useState([]),o=up.useCallback(n=>(t(r=>[].concat(Zt(r),[n])),()=>{t(r=>r.filter(i=>i!==n))}),[]);return[e,o]};var T1=M(require("react"));var P1=M(require("react")),R5=P1.default.createContext(void 0),cs=R5;var Ni=100,E5=10,gb=Ni*E5,iQ=gb+Ni,M1={Modal:Ni,Drawer:Ni,Popover:Ni,Popconfirm:Ni,Tooltip:Ni,Tour:Ni,FloatButton:Ni},$5={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},I5=e=>e in M1,ti=(e,t)=>{let[,o]=Gt(),n=T1.default.useContext(cs),r=I5(e),i;if(t!==void 0)i=[t,t];else{let s=n??0;r?s+=(n?0:o.zIndexPopupBase)+M1[e]:s+=$5[e],i=[n===void 0?t:s,s]}return i};var N5=e=>{let{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},O1=Ze(["Space","Compact"],N5,()=>({}),{resetStyle:!1});var mp=vo.createContext(null),kn=(e,t)=>{let o=vo.useContext(mp),n=vo.useMemo(()=>{if(!o)return"";let{compactDirection:r,isFirstItem:i,isLastItem:s}=o,a=r==="vertical"?"-vertical-":"-";return $(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:i,[`${e}-compact${a}last-item`]:s,[`${e}-compact${a}item-rtl`]:t==="rtl"})},[e,t,o]);return{compactSize:o?.compactSize,compactDirection:o?.compactDirection,compactItemClassnames:n}},A1=e=>{let{children:t}=e;return vo.createElement(mp.Provider,{value:null},t)},P5=e=>{let{children:t,...o}=e;return vo.createElement(mp.Provider,{value:vo.useMemo(()=>o,[o])},t)},T5=vo.forwardRef((e,t)=>{let{getPrefixCls:o,direction:n}=vo.useContext(Oe),{size:r,direction:i,orientation:s,block:a,prefixCls:c,className:l,rootClassName:d,children:u,vertical:m,...f}=e,[g,p]=Cl(s,m,i),h=Xt(w=>r??w),y=o("space-compact",c),[x]=O1(y),b=$(y,x,{[`${y}-rtl`]:n==="rtl",[`${y}-block`]:a,[`${y}-vertical`]:p},l,d),S=vo.useContext(mp),v=vo.useRef(null);vo.useImperativeHandle(t,()=>({nativeElement:v.current}));let C=co(u),R=vo.useMemo(()=>C.map((w,I)=>{let P=w?.key||`${y}-item-${I}`;return vo.createElement(P5,{key:P,compactSize:h,compactDirection:g,isFirstItem:I===0&&(!S||S?.isFirstItem),isLastItem:I===C.length-1&&(!S||S?.isLastItem)},w)}),[C,S,g,h,y]);return C.length===0?null:vo.createElement("div",{ref:v,className:b,...f},R)}),pp=T5;var Pi=M(require("react"));var hb=Pi.createContext(void 0),M5=e=>{let{getPrefixCls:t,direction:o}=Pi.useContext(Oe),{prefixCls:n,size:r,className:i,...s}=e,a=t("btn-group",n),[,,c]=Gt(),l=Pi.useMemo(()=>{switch(r){case"large":return"lg";case"small":return"sm";default:return""}},[r]),d=$(a,{[`${a}-${l}`]:l,[`${a}-rtl`]:o==="rtl"},i,c);return Pi.createElement(hb.Provider,{value:r},Pi.createElement("div",{...s,className:d}))},k1=M5;var ed=M(require("react"));var L1=/^[\u4E00-\u9FA5]{2}$/,fp=L1.test.bind(L1);function gp(e){return e==="danger"?{danger:!0}:{type:e}}function hp(e){return e==="text"||e==="link"}function O5(e,t,o,n){if(!lo(e))return;let r=t?" ":"";return!Pn(e)&&!Ko(e)&&Pn(e.type)&&fp(e.props.children)?Ro(e,i=>{let s=$(i.className,n)||void 0,a={...o,...i.style};return{...i,children:i.children.split("").join(r),className:s,style:a}}):Pn(e)?ed.default.createElement("span",{className:n,style:o},fp(e)?e.split("").join(r):e):zm(e)?ed.default.createElement("span",{className:n,style:o},e):Ro(e,i=>({...i,className:$(i.className,n)||void 0,style:{...i.style,...o}}))}function D1(e,t,o,n){let r=!1,i=[];return ed.default.Children.forEach(e,s=>{let a=Pn(s)||Ko(s);if(r&&a){let c=i.length-1,l=i[c];i[c]=`${l}${s}`}else i.push(s);r=a}),ed.default.Children.map(i,s=>O5(s,t,o,n))}var $Q=["default","primary","danger"].concat(Zt(jo));var ds=M(require("react"));var yp=M(require("react"));var A5={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"},_1=A5;function yb(){return yb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},yb.apply(this,arguments)}var k5=(e,t)=>yp.createElement(Ot,yb({},e,{ref:t,icon:_1})),L5=yp.forwardRef(k5),wl=L5;var bp=M(require("react"));var D5=(0,bp.forwardRef)((e,t)=>{let{className:o,style:n,children:r,prefixCls:i}=e,s=$(`${i}-icon`,o);return bp.default.createElement("span",{ref:t,className:s,style:n},r)}),xp=D5;var F1=(0,ds.forwardRef)((e,t)=>{let{prefixCls:o,className:n,style:r,iconClassName:i}=e,s=$(`${o}-loading-icon`,n);return ds.default.createElement(xp,{prefixCls:o,className:s,style:r,ref:t},ds.default.createElement(wl,{className:i}))}),bb=()=>({width:0,opacity:0,transform:"scale(0)"}),xb=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),_5=e=>{let{prefixCls:t,loading:o,existIcon:n,className:r,style:i,mount:s}=e,a=!!o;return n?ds.default.createElement(F1,{prefixCls:t,className:r,style:i}):ds.default.createElement(po,{visible:a,motionName:`${t}-loading-icon-motion`,motionAppear:!s,motionEnter:!s,motionLeave:!s,removeOnLeave:!0,onAppearStart:bb,onAppearActive:xb,onEnterStart:bb,onEnterActive:xb,onLeaveStart:xb,onLeaveActive:bb},({className:c,style:l},d)=>{let u={...i,...l};return ds.default.createElement(F1,{prefixCls:t,className:$(r,c),style:u,ref:d})})},z1=_5;var F5=e=>{let{componentCls:t,antCls:o,motionDurationMid:n,motionEaseInOut:r}=e;return{[t]:{[`${o}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`${["height","opacity"].map(i=>`${i} ${n} ${r}`).join(", ")} !important`}},[`${o}-motion-collapse`]:{overflow:"hidden",transition:`${["height","opacity"].map(i=>`${i} ${n} ${r}`).join(", ")} !important`}}}},vb=F5;var B1=e=>({animationDuration:e,animationFillMode:"both"}),us=(e,t,o,n,r=!1)=>{let i=r?"&":"";return{[`
|
|
128
128
|
${i}${e}-enter,
|
|
129
129
|
${i}${e}-appear
|
|
130
|
-
`]:{...
|
|
130
|
+
`]:{...B1(n),animationPlayState:"paused"},[`${i}${e}-leave`]:{...B1(n),animationPlayState:"paused"},[`
|
|
131
131
|
${i}${e}-enter${e}-enter-active,
|
|
132
132
|
${i}${e}-appear${e}-appear-active
|
|
133
|
-
`]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:o,animationPlayState:"running",pointerEvents:"none"}}};var
|
|
133
|
+
`]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:o,animationPlayState:"running",pointerEvents:"none"}}};var H1=new nt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),V1=new nt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),td=(e,t=!1)=>{let{antCls:o}=e,n=`${o}-fade`,r=t?"&":"";return[us(n,H1,V1,e.motionDurationMid,t),{[`
|
|
134
134
|
${r}${n}-enter,
|
|
135
135
|
${r}${n}-appear
|
|
136
|
-
`]:{opacity:0,animationTimingFunction:"linear"},[`${r}${n}-leave`]:{animationTimingFunction:"linear"}}]};var
|
|
136
|
+
`]:{opacity:0,animationTimingFunction:"linear"},[`${r}${n}-leave`]:{animationTimingFunction:"linear"}}]};var W1=new nt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),j1=new nt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),U1=new nt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),K1=new nt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),G1=new nt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),q1=new nt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),X1=new nt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Y1=new nt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),z5={"move-up":{inKeyframes:X1,outKeyframes:Y1},"move-down":{inKeyframes:W1,outKeyframes:j1},"move-left":{inKeyframes:U1,outKeyframes:K1},"move-right":{inKeyframes:G1,outKeyframes:q1}},ga=(e,t)=>{let{antCls:o}=e,n=`${o}-${t}`,{inKeyframes:r,outKeyframes:i}=z5[t];return[us(n,r,i,e.motionDurationMid),{[`
|
|
137
137
|
${n}-enter,
|
|
138
138
|
${n}-appear
|
|
139
|
-
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var ms=new nt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),ps=new nt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),fs=new nt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),gs=new nt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),vp=new nt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Sp=new nt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Cp=new nt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),wp=new nt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),
|
|
139
|
+
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var ms=new nt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),ps=new nt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),fs=new nt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),gs=new nt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),vp=new nt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Sp=new nt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Cp=new nt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),wp=new nt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),B5={"slide-up":{inKeyframes:ms,outKeyframes:ps},"slide-down":{inKeyframes:fs,outKeyframes:gs},"slide-left":{inKeyframes:vp,outKeyframes:Sp},"slide-right":{inKeyframes:Cp,outKeyframes:wp}},xn=(e,t)=>{let{antCls:o}=e,n=`${o}-${t}`,{inKeyframes:r,outKeyframes:i}=B5[t];return[us(n,r,i,e.motionDurationMid),{[`
|
|
140
140
|
${n}-enter,
|
|
141
141
|
${n}-appear
|
|
142
|
-
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]};var oi=()=>({"@media (prefers-reduced-motion: reduce)":{"&, &::before, &::after":{transition:"none",animation:"none"}}}),Rl=()=>({"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"}});var
|
|
142
|
+
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]};var oi=()=>({"@media (prefers-reduced-motion: reduce)":{"&, &::before, &::after":{transition:"none",animation:"none"}}}),Rl=()=>({"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"}});var Z1=new nt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Q1=new nt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Sb=new nt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Cb=new nt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),J1=new nt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),e$=new nt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),t$=new nt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),o$=new nt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),n$=new nt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),r$=new nt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),i$=new nt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),s$=new nt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),H5={zoom:{inKeyframes:Z1,outKeyframes:Q1},"zoom-big":{inKeyframes:Sb,outKeyframes:Cb},"zoom-big-fast":{inKeyframes:Sb,outKeyframes:Cb},"zoom-left":{inKeyframes:t$,outKeyframes:o$},"zoom-right":{inKeyframes:n$,outKeyframes:r$},"zoom-up":{inKeyframes:J1,outKeyframes:e$},"zoom-down":{inKeyframes:i$,outKeyframes:s$}},Ti=(e,t)=>{let{antCls:o}=e,n=`${o}-${t}`,{inKeyframes:r,outKeyframes:i}=H5[t];return[us(n,r,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
|
|
143
143
|
${n}-enter,
|
|
144
144
|
${n}-appear
|
|
145
|
-
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var s$=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),z5=e=>{let{componentCls:t,fontSize:o,lineWidth:n,groupBorderColor:r,colorErrorHover:i}=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(n).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:o}},s$(`${t}-primary`,r),s$(`${t}-danger`,i)]}},a$=z5;var $b=M(require("react"));var wb=e=>Math.round(Number(e||0)),B5=e=>{if(e instanceof pt)return e;if(e&&typeof e=="object"&&"h"in e&&"b"in e){let{b:t,...o}=e;return{...o,v:t}}return typeof e=="string"&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e},vn=class extends pt{constructor(t){super(B5(t))}toHsbString(){let t=this.toHsb(),o=wb(t.s*100),n=wb(t.b*100),r=wb(t.h),i=t.a,s=`hsb(${r}, ${o}%, ${n}%)`,a=`hsba(${r}, ${o}%, ${n}%, ${i.toFixed(i===0?0:2)})`;return i===1?s:a}toHsb(){let{v:t,...o}=this.toHsv();return{...o,b:t,a:this.a}}};var Rb=e=>e instanceof vn?e:new vn(e),H5=Rb("#1677ff");var V5=M(require("react"));var c$=M(require("react"));var Eb=require("react");var W5=M(require("react"));var j5=M(require("react"));var l$=M(require("react"));var Z5=require("react");var Q5=M(require("react"));var u$=M(require("react"));var d$=M(require("react"));var J5=(e,t)=>e?.replace(/[^0-9a-f]/gi,"").slice(0,t?8:6)||"",eD=(e,t)=>e?J5(e,t):"",od=function(){function e(t){if(Jr(this,e),this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=t.colors?.map(n=>({color:new e(n.color),percent:n.percent})),this.cleared=t.cleared;return}let o=Array.isArray(t);o&&t.length?(this.colors=t.map(({color:n,percent:r})=>({color:new e(n),percent:r})),this.metaColor=new vn(this.colors[0].color.metaColor)):this.metaColor=new vn(o?"":t),(!t||o&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return ei(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return eD(this.toHexString(),this.metaColor.a<1)}},{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(){let{colors:o}=this;return o?`linear-gradient(90deg, ${o.map(r=>`${r.color.toRgbString()} ${r.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(o){return!o||this.isGradient()!==o.isGradient()?!1:this.isGradient()?this.colors.length===o.colors.length&&this.colors.every((n,r)=>{let i=o.colors[r];return n.percent===i.percent&&n.color.equals(i.color)}):this.toHexString()===o.toHexString()}}])}();var b$=M(require("react"));var Rp=M(require("react"));var tD={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"},p$=tD;function Ib(){return Ib=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Ib.apply(this,arguments)}var oD=(e,t)=>Rp.createElement(Ot,Ib({},e,{ref:t,icon:p$})),nD=Rp.forwardRef(oD),f$=nD;function Zn(){return Zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Zn.apply(null,arguments)}var Nb=()=>({height:0,opacity:0}),g$=e=>({height:e?.scrollHeight??0,opacity:e?1:0}),rD=e=>({height:e?.offsetHeight??0}),Pb=(e,t)=>t?.deadline===!0||Ku(t)&&t.propertyName==="height",iD=(e=is)=>({motionName:`${e}-motion-collapse`,onAppearStart:Nb,onEnterStart:Nb,onAppearActive:g$,onEnterActive:g$,onLeaveStart:rD,onLeaveActive:Nb,onAppearEnd:Pb,onEnterEnd:Pb,onLeaveEnd:Pb,motionDeadline:500});var hr=(e,t,o)=>o!==void 0?o:`${e}-${t}`;var h$=iD;var y$=e=>e instanceof od?e:new od(e);var x$=(e,t)=>{let{r:o,g:n,b:r,a:i}=e.toRgb(),s=new vn(e.toRgbString()).onBackground(t).toHsv();return i<=.5?s.v>.5:o*.299+n*.587+r*.114>192};var Ep=e=>{let{paddingInline:t,onlyIconSize:o,borderColorDisabled:n}=e;return Fe(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:o,colorBorderDisabled:n})},$p=e=>{let t=e.contentFontSize??e.fontSize,o=e.contentFontSizeSM??e.fontSize,n=e.contentFontSizeLG??e.fontSizeLG,r=e.contentLineHeight??Va(t),i=e.contentLineHeightSM??Va(o),s=e.contentLineHeightLG??Va(n),a=x$(new od(e.colorBgSolid),"#fff")?"#000":"#fff",c=jo.reduce((u,m)=>({...u,[`${m}ShadowColor`]:`0 ${q(e.controlOutlineWidth)} 0 ${la(e[`${m}1`],e.colorBgContainer)}`}),{}),l=e.colorBgContainerDisabled,d=e.colorBgContainerDisabled;return{...c,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:a,contentFontSize:t,contentFontSizeSM:o,contentFontSizeLG:n,contentLineHeight:r,contentLineHeightSM:i,contentLineHeightLG:s,paddingBlock:Math.max((e.controlHeight-t*r)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-o*i)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-n*s)/2-e.lineWidth,0),defaultBgDisabled:l,dashedBgDisabled:d}};var sD=e=>{let{componentCls:t,antCls:o,lineWidth:n,lineType:r}=e,[i,s]=qt(o,"btn");return{[t]:[{[i("border-width")]:n,[i("border-color")]:"#000",[i("border-color-hover")]:s("border-color"),[i("border-color-active")]:s("border-color"),[i("border-color-disabled")]:s("border-color"),[i("border-style")]:r,[i("text-color")]:"#000",[i("text-color-hover")]:s("text-color"),[i("text-color-active")]:s("text-color"),[i("text-color-disabled")]:s("text-color"),[i("bg-color")]:"#ddd",[i("bg-color-hover")]:s("bg-color"),[i("bg-color-active")]:s("bg-color"),[i("bg-color-disabled")]:e.colorBgContainerDisabled,[i("bg-color-container")]:e.colorBgContainer,[i("shadow")]:"none"},{border:[s("border-width"),s("border-style"),s("border-color")].join(" "),color:s("text-color"),backgroundColor:s("bg-color"),[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":{border:[s("border-width"),s("border-style"),s("border-color-hover")].join(" "),color:s("text-color-hover"),backgroundColor:s("bg-color-hover")},"&:active":{border:[s("border-width"),s("border-style"),s("border-color-active")].join(" "),color:s("text-color-active"),backgroundColor:s("bg-color-active")}}},{[`&${t}-variant-solid`]:{[i("solid-bg-color")]:s("color-base"),[i("solid-bg-color-hover")]:s("color-hover"),[i("solid-bg-color-active")]:s("color-active"),[i("border-color")]:"transparent",[i("text-color")]:e.colorTextLightSolid,[i("bg-color")]:s("solid-bg-color"),[i("bg-color-hover")]:s("solid-bg-color-hover"),[i("bg-color-active")]:s("solid-bg-color-active"),boxShadow:s("shadow")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i("border-color")]:s("color-base"),[i("border-color-hover")]:s("color-hover"),[i("border-color-active")]:s("color-active"),[i("bg-color")]:s("bg-color-container"),[i("text-color")]:s("color-base"),[i("text-color-hover")]:s("color-hover"),[i("text-color-active")]:s("color-active"),boxShadow:s("shadow")},[`&${t}-variant-dashed`]:{[i("border-style")]:"dashed",[i("bg-color-disabled")]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[i("border-color")]:"transparent",[i("text-color")]:s("color-base"),[i("bg-color")]:s("color-light"),[i("bg-color-hover")]:s("color-light-hover"),[i("bg-color-active")]:s("color-light-active")},[`&${t}-variant-text, &${t}-variant-link`]:{[i("border-color")]:"transparent",[i("text-color")]:s("color-base"),[i("text-color-hover")]:s("color-hover"),[i("text-color-active")]:s("color-active"),[i("bg-color")]:"transparent",[i("bg-color-hover")]:"transparent",[i("bg-color-active")]:"transparent",[`&:disabled, &${e.componentCls}-disabled`]:{background:"transparent",borderColor:"transparent"}},[`&${t}-variant-text`]:{[i("bg-color-hover")]:s("color-light"),[i("bg-color-active")]:s("color-light-active")}},{[`&${t}-variant-link`]:{[i("color-base")]:e.colorLink,[i("color-hover")]:e.colorLinkHover,[i("color-active")]:e.colorLinkActive,[i("bg-color-hover")]:e.linkHoverBg},[`&${t}-color-primary`]:{[i("color-base")]:e.colorPrimary,[i("color-hover")]:e.colorPrimaryHover,[i("color-active")]:e.colorPrimaryActive,[i("color-light")]:e.colorPrimaryBg,[i("color-light-hover")]:e.colorPrimaryBgHover,[i("color-light-active")]:e.colorPrimaryBorder,[i("shadow")]:e.primaryShadow,[`&${t}-variant-solid`]:{[i("text-color")]:e.primaryColor,[i("text-color-hover")]:s("text-color"),[i("text-color-active")]:s("text-color")}},[`&${t}-color-dangerous`]:{[i("color-base")]:e.colorError,[i("color-hover")]:e.colorErrorHover,[i("color-active")]:e.colorErrorActive,[i("color-light")]:e.colorErrorBg,[i("color-light-hover")]:e.colorErrorBgFilledHover,[i("color-light-active")]:e.colorErrorBgActive,[i("shadow")]:e.dangerShadow,[`&${t}-variant-solid`]:{[i("text-color")]:e.dangerColor,[i("text-color-hover")]:s("text-color"),[i("text-color-active")]:s("text-color")}},[`&${t}-color-default`]:{[i("solid-bg-color")]:e.colorBgSolid,[i("solid-bg-color-hover")]:e.colorBgSolidHover,[i("solid-bg-color-active")]:e.colorBgSolidActive,[i("color-base")]:e.defaultBorderColor,[i("color-hover")]:e.defaultHoverBorderColor,[i("color-active")]:e.defaultActiveBorderColor,[i("color-light")]:e.colorFillTertiary,[i("color-light-hover")]:e.colorFillSecondary,[i("color-light-active")]:e.colorFill,[i("text-color")]:e.defaultColor,[i("text-color-hover")]:e.defaultHoverColor,[i("text-color-active")]:e.defaultActiveColor,[i("shadow")]:e.defaultShadow,[`&${t}-variant-outlined`]:{[i("bg-color-disabled")]:e.defaultBgDisabled},[`&${t}-variant-solid`]:{[i("text-color")]:e.solidTextColor,[i("text-color-hover")]:s("text-color"),[i("text-color-active")]:s("text-color")},[`&${t}-variant-filled, &${t}-variant-text`]:{[i("text-color-hover")]:s("text-color"),[i("text-color-active")]:s("text-color")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i("text-color")]:e.defaultColor,[i("text-color-hover")]:e.defaultHoverColor,[i("text-color-active")]:e.defaultActiveColor,[i("bg-color-container")]:e.defaultBg,[i("bg-color-hover")]:e.defaultHoverBg,[i("bg-color-active")]:e.defaultActiveBg},[`&${t}-variant-text`]:{[i("text-color")]:e.textTextColor,[i("text-color-hover")]:e.textTextHoverColor,[i("text-color-active")]:e.textTextActiveColor,[i("bg-color-hover")]:e.textHoverBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i("text-color")]:e.defaultGhostColor,[i("border-color")]:e.defaultGhostBorderColor}}}},jo.map(a=>{let c=e[`${a}6`],l=e[`${a}1`],d=e[`${a}Hover`],u=e[`${a}2`],m=e[`${a}3`],f=e[`${a}Active`],g=e[`${a}ShadowColor`];return{[`&${t}-color-${a}`]:{[i("color-base")]:c,[i("color-hover")]:d,[i("color-active")]:f,[i("color-light")]:l,[i("color-light-hover")]:u,[i("color-light-active")]:m,[i("shadow")]:g}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",borderColor:e.colorBorderDisabled,background:s("bg-color-disabled"),color:e.colorTextDisabled,boxShadow:"none"}},{[`&${t}-background-ghost`]:{[i("bg-color")]:e.ghostBg,[i("bg-color-hover")]:e.ghostBg,[i("bg-color-active")]:e.ghostBg,[i("shadow")]:"none",[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i("bg-color-hover")]:e.ghostBg,[i("bg-color-active")]:e.ghostBg}}}]}},v$=sD;var aD=e=>{let{componentCls:t,iconCls:o,fontWeight:n,opacityLoading:r,motionDurationSlow:i,motionEaseInOut:s,iconGap:a,calc:c}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:a,alignItems:"center",justifyContent:"center",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",...oi(),"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:ca(),[`${t}-icon`]:{display:"inline-flex",alignItems:"center",[o]:{verticalAlign:"middle","&:before":{content:'"\\a0"',display:"inline-block",width:0}}},"> a":{color:"currentColor"},"&:not(:disabled)":ln(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${o})`]:{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(l=>`${l} ${i} ${s}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start, &-appear-prepare, &-enter-prepare":{marginInlineEnd:c(a).mul(-1).equal(),opacity:0},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:c(a).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start, &-appear-prepare, &-enter-prepare":{marginInlineStart:c(a).mul(-1).equal(),opacity:0},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:c(a).mul(-1).equal()}}}}}},lD=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),Tb=(e,t="")=>{let{componentCls:o,controlHeight:n,fontSize:r,borderRadius:i,buttonPaddingHorizontal:s,iconCls:a,buttonPaddingVertical:c,buttonIconOnlyFontSize:l}=e;return[{[t]:{fontSize:r,height:n,padding:`${q(c)} ${q(s)}`,borderRadius:i,[`&${o}-icon-only`]:{width:n,[a]:{fontSize:l}}}},{[`${o}${o}-circle${t}`]:lD(e)},{[`${o}${o}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${o}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},cD=e=>{let t=Fe(e,{fontSize:e.contentFontSize});return Tb(t,e.componentCls)},dD=e=>{let t=Fe(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Tb(t,`${e.componentCls}-sm`)},uD=e=>{let t=Fe(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Tb(t,`${e.componentCls}-lg`)},mD=e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},S$=Ze("Button",e=>{let t=Ep(e);return[aD(t),cD(t),dD(t),uD(t),mD(t),v$(t),a$(t)]},$p,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function pD(e,t,o,n){let{focusElCls:r,focus:i,borderElCls:s}=o,a=s?"> *":"",c=a?` ${a}`:"",l=m=>m.filter(Boolean).map(f=>`&:${f}${c}`).join(","),d=l(["hover",r?`hover${r}`:null]),u=l([i?"focus":null,"active"]);return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{[u]:{zIndex:3},[d]:{zIndex:4},...r?{[`&${r}`]:{zIndex:3}}:{},[`&[disabled] ${a}`]:{zIndex:0}}}}function fD(e,t,o){let{borderElCls:n}=o,r=n?`> ${n}`:"";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 hs(e,t={focus:!0}){let{componentCls:o}=e,{componentCls:n}=t,r=n||o,i=`${r}-compact`;return{[i]:{...pD(e,i,t,r),...fD(r,i,t)}}}function gD(e,t,o){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${o}-status-success)`]:{zIndex:2},"&-item":{"&:focus,&:active":{zIndex:3},"&:hover":{zIndex:4},"&[disabled]":{zIndex:0}}}}function hD(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function C$(e){let t=`${e.componentCls}-compact-vertical`;return{[t]:{...gD(e,t,e.componentCls),...hD(e.componentCls,t)}}}var yD=e=>{let{antCls:t,componentCls:o,lineWidth:n,calc:r,colorBgContainer:i}=e,s=`${o}-variant-solid:not([disabled])`,a=r(n).mul(-1).equal(),[c,l]=qt(t,"btn"),d=u=>({[`${o}-compact${u?"-vertical":""}-item`]:{[c("compact-connect-border-color")]:l("bg-color-hover"),[`&${s}`]:{transition:"none",[`& + ${s}:before`]:[{position:"absolute",backgroundColor:l("compact-connect-border-color"),content:'""'},u?{top:a,insetInline:a,height:n}:{insetBlock:a,insetInlineStart:a,width:n}],"&:hover:before":{display:"none"}}}});return[d(),d(!0),{[`${s}${o}-color-default`]:{[c("compact-connect-border-color")]:`color-mix(in srgb, ${l("bg-color-hover")} 75%, ${i})`}}]},w$=Jc(["Button","compact"],e=>{let t=Ep(e);return[hs(t),C$(t),yD(t)]},$p);function bD(e){if(at(e)){let t=e?.delay;return t=Ko(t)?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}var xD={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},vD=Jt.default.forwardRef((e,t)=>{let{_skipSemantic:o,loading:n=!1,prefixCls:r,color:i,variant:s,type:a,danger:c=!1,shape:l,size:d,disabled:u,className:m,rootClassName:f,children:g,icon:p,iconPosition:h,iconPlacement:y,ghost:x=!1,block:b=!1,htmlType:S="button",classNames:v,styles:C,style:R,autoInsertSpace:w,autoFocus:I,...P}=e,N=co(g),E=a||"default",{getPrefixCls:O,direction:D,autoInsertSpace:A,className:F,style:_,classNames:T,styles:L,loadingIcon:z,shape:G,color:V,variant:j}=Ye("button"),Y=l||G||"default",[B,U]=(0,Jt.useMemo)(()=>{if(i&&s)return[i,s];if(a||c){let _e=xD[E]||[];return c?["danger",_e[1]]:_e}return s==="solid"?["primary",s]:V&&j?[V,j]:j==="solid"?["primary",j]:["default","outlined"]},[i,s,a,c,V,j,E]),[K,Z]=(0,Jt.useMemo)(()=>x&&U==="solid"?[B,"outlined"]:[B,U],[B,U,x]),X=K==="danger",k=X?"dangerous":K,W=w??A??!0,H=O("btn",r),[ee,J]=S$(H),te=(0,Jt.useContext)(Fo),le=u??te,re=(0,Jt.useContext)(hb),ie=(0,Jt.useMemo)(()=>bD(n),[n]),[Se,de]=Eu(ie.loading),[Ee,ae]=(0,Jt.useState)(!1),Ne=(0,Jt.useRef)(null),he=bo(t,Ne),ne=N.length===1&&!p&&!hp(Z),fe=(0,Jt.useRef)(!0);Jt.default.useEffect(()=>(fe.current=!1,()=>{fe.current=!0}),[]),it(()=>{ie.delay>0?de(!0,{ms:ie.delay}):de(ie.loading,!0)},[ie.delay,ie.loading]),(0,Jt.useEffect)(()=>{if(!Ne.current||!W)return;let _e=Ne.current.textContent||"";ne&&fp(_e)?Ee||ae(!0):Ee&&ae(!1)}),(0,Jt.useEffect)(()=>{I&&Ne.current?.focus()},[]);let ce=Jt.default.useCallback(_e=>{if(Se||le){_e.preventDefault();return}e.onClick?.(("href"in e,_e))},[e.onClick,Se,le]),{compactSize:we,compactItemClassnames:Le}=kn(H,D),Ce=Xt(_e=>d??we??re??_e),pe=Se?"loading":p,ue=y??h??"start",se=Ke(P,["navigate"]),ve={...e,type:E,color:K,variant:Z,danger:X,shape:Y,size:Ce,disabled:le,loading:Se,iconPlacement:ue},$e=De(_),Pe=De(R),[Ge,qe]=et([o?void 0:T,v],[o?void 0:L,$e,C,Pe],{props:ve}),mt=$(H,ee,J,{[`${H}-${Y}`]:Y!=="default"&&Y!=="square"&&Y,[`${H}-${E}`]:E,[`${H}-dangerous`]:c,[`${H}-color-${k}`]:k,[`${H}-variant-${Z}`]:Z,[`${H}-lg`]:Ce==="large",[`${H}-sm`]:Ce==="small",[`${H}-icon-only`]:!g&&g!==0&&!!pe,[`${H}-background-ghost`]:x&&!hp(Z),[`${H}-loading`]:Se,[`${H}-two-chinese-chars`]:Ee&&W&&!Se,[`${H}-block`]:b,[`${H}-rtl`]:D==="rtl",[`${H}-icon-end`]:ue==="end"},Le,m,f,F,Ge.root),Qe={className:Ge.icon,style:qe.icon},$t=_e=>Jt.default.createElement(xp,{prefixCls:H,...Qe},_e),wt=Jt.default.createElement(F1,{existIcon:!!p,prefixCls:H,loading:Se,mount:fe.current,...Qe}),gt=at(n)&&n.icon||z,ht;p&&!Se?ht=$t(p):n&>?ht=$t(gt):ht=wt;let yt=lo(g)?L1(g,ne&&W,qe.content,Ge.content):null;if(se.href!==void 0)return Jt.default.createElement("a",{...se,className:$(mt,{[`${H}-disabled`]:le}),href:le?void 0:se.href,style:qe.root,onClick:ce,ref:he,tabIndex:le?-1:0,"aria-disabled":le},ht,yt);let Rt=Jt.default.createElement("button",{...P,type:S,className:mt,style:qe.root,onClick:ce,disabled:le,ref:he},ht,yt,Le&&Jt.default.createElement(w$,{prefixCls:H}));return hp(Z)||(Rt=Jt.default.createElement(vl,{component:"Button",disabled:Se},Rt)),Rt}),Mb=vD;Mb.Group=A1;Mb.__ANT_BUTTON=!0;var ni=Mb;var nd=ni;var dn=M(require("react"));var Ab=M(require("react")),ha=require("react");function Ob(){return Ob=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Ob.apply(this,arguments)}var SD=(0,ha.forwardRef)((e,t)=>{let{prefixCls:o="rc-checkbox",className:n,style:r,checked:i,disabled:s,defaultChecked:a=!1,type:c="checkbox",title:l,onChange:d,...u}=e,m=(0,ha.useRef)(null),f=(0,ha.useRef)(null),[g,p]=st(a,i);(0,ha.useImperativeHandle)(t,()=>({focus:x=>{m.current?.focus(x)},blur:()=>{m.current?.blur()},input:m.current,nativeElement:f.current}));let h=$(o,n,{[`${o}-checked`]:g,[`${o}-disabled`]:s}),y=x=>{s||("checked"in e||p(x.target.checked),d?.({target:{...e,type:c,checked:x.target.checked},stopPropagation(){x.stopPropagation()},preventDefault(){x.preventDefault()},nativeEvent:x.nativeEvent}))};return Ab.createElement("span",{className:h,title:l,style:r,ref:f},Ab.createElement("input",Ob({},u,{className:`${o}-input`,ref:m,onChange:y,disabled:s,checked:!!g,type:c})))}),R$=SD;var CD=e=>`${e}-css-var`,oo=CD;var Mi=M(require("react"));var lI=M(require("react"));var Sn=M(require("react"));var E$=M(require("react")),Dr="RC_FORM_INTERNAL_HOOKS",Dt=()=>{Kt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},wD=E$.createContext({getFieldValue:Dt,getFieldsValue:Dt,getFieldError:Dt,getFieldWarning:Dt,getFieldsError:Dt,isFieldsTouched:Dt,isFieldTouched:Dt,isFieldValidating:Dt,isFieldsValidating:Dt,resetFields:Dt,setFields:Dt,setFieldValue:Dt,setFieldsValue:Dt,validateFields:Dt,submit:Dt,getInternalHooks:()=>(Dt(),{dispatch:Dt,initEntityValue:Dt,registerField:Dt,useSubscribe:Dt,setInitialValues:Dt,destroyForm:Dt,setCallbacks:Dt,registerWatch:Dt,getFields:Dt,setValidateMessages:Dt,setPreserve:Dt,getInitialValue:Dt})}),_r=wD;var $$=M(require("react")),RD=$$.createContext(null),ys=RD;function rd(e){return e==null?[]:Array.isArray(e)?e:[e]}function I$(e){return e&&!!e._init}function Ip(){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",tel:"%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(){let e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Np=Ip();var ED=/%[sdj%]/g,P$=()=>{};typeof process<"u"&&process.env;function Pp(e){if(!e||!e.length)return null;let t={};return e.forEach(o=>{let n=o.field;t[n]=t[n]||[],t[n].push(o)}),t}function Eo(e,...t){let o=0,n=t.length;return typeof e=="function"?e.apply(null,t):typeof e=="string"?e.replace(ED,i=>{if(i==="%%")return"%";if(o>=n)return i;switch(i){case"%s":return String(t[o++]);case"%d":return Number(t[o++]);case"%j":try{return JSON.stringify(t[o++])}catch{return"[Circular]"}break;default:return i}}):e}function $D(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function Ct(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||$D(t)&&typeof e=="string"&&!e)}function ID(e,t,o){let n=[],r=0,i=e.length;function s(a){n.push(...a||[]),r++,r===i&&o(n)}e.forEach(a=>{t(a,s)})}function N$(e,t,o){let n=0,r=e.length;function i(s){if(s&&s.length){o(s);return}let a=n;n=n+1,a<r?t(e[a],i):o([])}i([])}function ND(e){let t=[];return Object.keys(e).forEach(o=>{t.push(...e[o]||[])}),t}var Tp=class extends Error{errors;fields;constructor(t,o){super("Async Validation Error"),this.errors=t,this.fields=o}};function T$(e,t,o,n,r){if(t.first){let u=new Promise((m,f)=>{let g=h=>(n(h),h.length?f(new Tp(h,Pp(h))):m(r)),p=ND(e);N$(p,o,g)});return u.catch(m=>m),u}let i=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),a=s.length,c=0,l=[],d=new Promise((u,m)=>{let f=g=>{if(l.push.apply(l,g),c++,c===a)return n(l),l.length?m(new Tp(l,Pp(l))):u(r)};s.length||(n(l),u(r)),s.forEach(g=>{let p=e[g];i.indexOf(g)!==-1?N$(p,o,f):ID(p,o,f)})});return d.catch(u=>u),d}function PD(e){return!!(e&&e.message!==void 0)}function TD(e,t){let o=e;for(let n=0;n<t.length;n++){if(o==null)return o;o=o[t[n]]}return o}function kb(e,t){return o=>{let n;return e.fullFields?n=TD(t,e.fullFields):n=t[o.field||e.fullField],PD(o)?(o.field=o.field||e.fullField,o.fieldValue=n,o):{message:typeof o=="function"?o():o,fieldValue:n,field:o.field||e.fullField}}}function Lb(e,t){if(t){for(let o in t)if(t.hasOwnProperty(o)){let n=t[o];typeof n=="object"&&typeof e[o]=="object"?e[o]={...e[o],...n}:e[o]=n}}return e}var El="enum",MD=(e,t,o,n,r)=>{e[El]=Array.isArray(e[El])?e[El]:[],e[El].indexOf(t)===-1&&n.push(Eo(r.messages[El],e.fullField,e[El].join(", ")))},M$=MD;var OD=(e,t,o,n,r)=>{e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||n.push(Eo(r.messages.pattern.mismatch,e.fullField,t,e.pattern))):typeof e.pattern=="string"&&(new RegExp(e.pattern).test(t)||n.push(Eo(r.messages.pattern.mismatch,e.fullField,t,e.pattern))))},O$=OD;var AD=(e,t,o,n,r)=>{let i=typeof e.len=="number",s=typeof e.min=="number",a=typeof e.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=t,d=null,u=typeof t=="number",m=typeof t=="string",f=Array.isArray(t);if(u?d="number":m?d="string":f&&(d="array"),!d)return!1;f&&(l=t.length),m&&(l=t.replace(c,"_").length),i?l!==e.len&&n.push(Eo(r.messages[d].len,e.fullField,e.len)):s&&!a&&l<e.min?n.push(Eo(r.messages[d].min,e.fullField,e.min)):a&&!s&&l>e.max?n.push(Eo(r.messages[d].max,e.fullField,e.max)):s&&a&&(l<e.min||l>e.max)&&n.push(Eo(r.messages[d].range,e.fullField,e.min,e.max))},A$=AD;var kD=(e,t,o,n,r,i)=>{e.required&&(!o.hasOwnProperty(e.field)||Ct(t,i||e.type))&&n.push(Eo(r.messages.required,e.fullField))},Mp=kD;var Op,k$=()=>{if(Op)return Op;let e="[a-fA-F\\d:]",t=v=>v&&v.includeBoundaries?`(?:(?<=\\s|^)(?=${e})|(?<=${e})(?=\\s|$))`:"",o="(?: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}",n="[a-fA-F\\d]{1,4}",s=`(?:${[`(?:${n}:){7}(?:${n}|:)`,`(?:${n}:){6}(?:${o}|:${n}|:)`,`(?:${n}:){5}(?::${o}|(?::${n}){1,2}|:)`,`(?:${n}:){4}(?:(?::${n}){0,1}:${o}|(?::${n}){1,3}|:)`,`(?:${n}:){3}(?:(?::${n}){0,2}:${o}|(?::${n}){1,4}|:)`,`(?:${n}:){2}(?:(?::${n}){0,3}:${o}|(?::${n}){1,5}|:)`,`(?:${n}:){1}(?:(?::${n}){0,4}:${o}|(?::${n}){1,6}|:)`,`(?::(?:(?::${n}){0,5}:${o}|(?::${n}){1,7}|:))`].join("|")})(?:%[0-9a-zA-Z]{1,})?`,a=new RegExp(`(?:^${o}$)|(?:^${s}$)`),c=new RegExp(`^${o}$`),l=new RegExp(`^${s}$`),d=v=>v&&v.exact?a:new RegExp(`(?:${t(v)}${o}${t(v)})|(?:${t(v)}${s}${t(v)})`,"g");d.v4=v=>v&&v.exact?c:new RegExp(`${t(v)}${o}${t(v)}`,"g"),d.v6=v=>v&&v.exact?l:new RegExp(`${t(v)}${s}${t(v)}`,"g");let u="(?:(?:[a-z]+:)?//)",m="(?:\\S+(?::\\S*)?@)?",f=d.v4().source,g=d.v6().source,S=`(?:${u}|www\\.)${m}(?:localhost|${f}|${g}|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?`;return Op=new RegExp(`(?:^${S}$)`,"i"),Op};var Db={email:/^(([^<>()\[\]\\.,;:\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,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},id={integer(e){return id.number(e)&&parseInt(e,10)===e},float(e){return id.number(e)&&!id.integer(e)},array(e){return Array.isArray(e)},regexp(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number(e){return isNaN(e)?!1:typeof e=="number"},object(e){return typeof e=="object"&&!id.array(e)},method(e){return typeof e=="function"},email(e){return typeof e=="string"&&e.length<=320&&!!e.match(Db.email)},tel(e){return typeof e=="string"&&e.length<=32&&!!e.match(Db.tel)},url(e){return typeof e=="string"&&e.length<=2048&&!!e.match(k$())},hex(e){return typeof e=="string"&&!!e.match(Db.hex)}},LD=(e,t,o,n,r)=>{if(e.required&&t===void 0){Mp(e,t,o,n,r);return}let i=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],s=e.type;i.indexOf(s)>-1?id[s](t)||n.push(Eo(r.messages.types[s],e.fullField,e.type)):s&&typeof t!==e.type&&n.push(Eo(r.messages.types[s],e.fullField,e.type))},L$=LD;var DD=(e,t,o,n,r)=>{(/^\s+$/.test(t)||t==="")&&n.push(Eo(r.messages.whitespace,e.fullField))},D$=DD;var We={required:Mp,whitespace:D$,type:L$,range:A$,enum:M$,pattern:O$};var _D=(e,t,o,n,r)=>{let i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(Ct(t)&&!e.required)return o();We.required(e,t,n,i,r)}o(i)},_$=_D;var FD=(e,t,o,n,r)=>{let i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(t==null&&!e.required)return o();We.required(e,t,n,i,r,"array"),t!=null&&(We.type(e,t,n,i,r),We.range(e,t,n,i,r))}o(i)},F$=FD;var zD=(e,t,o,n,r)=>{let i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(Ct(t)&&!e.required)return o();We.required(e,t,n,i,r),t!==void 0&&We.type(e,t,n,i,r)}o(i)},z$=zD;var BD=(e,t,o,n,r)=>{let i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(Ct(t,"date")&&!e.required)return o();if(We.required(e,t,n,i,r),!Ct(t,"date")){let a;t instanceof Date?a=t:a=new Date(t),We.type(e,a,n,i,r),a&&We.range(e,a.getTime(),n,i,r)}}o(i)},B$=BD;var HD="enum",VD=(e,t,o,n,r)=>{let i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(Ct(t)&&!e.required)return o();We.required(e,t,n,i,r),t!==void 0&&We[HD](e,t,n,i,r)}o(i)},H$=VD;var WD=(e,t,o,n,r)=>{let i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(Ct(t)&&!e.required)return o();We.required(e,t,n,i,r),t!==void 0&&(We.type(e,t,n,i,r),We.range(e,t,n,i,r))}o(i)},V$=WD;var jD=(e,t,o,n,r)=>{let i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(Ct(t)&&!e.required)return o();We.required(e,t,n,i,r),t!==void 0&&(We.type(e,t,n,i,r),We.range(e,t,n,i,r))}o(i)},W$=jD;var UD=(e,t,o,n,r)=>{let i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(Ct(t)&&!e.required)return o();We.required(e,t,n,i,r),t!==void 0&&We.type(e,t,n,i,r)}o(i)},j$=UD;var KD=(e,t,o,n,r)=>{let i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(t===""&&(t=void 0),Ct(t)&&!e.required)return o();We.required(e,t,n,i,r),t!==void 0&&(We.type(e,t,n,i,r),We.range(e,t,n,i,r))}o(i)},U$=KD;var GD=(e,t,o,n,r)=>{let i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(Ct(t)&&!e.required)return o();We.required(e,t,n,i,r),t!==void 0&&We.type(e,t,n,i,r)}o(i)},K$=GD;var qD=(e,t,o,n,r)=>{let i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(Ct(t,"string")&&!e.required)return o();We.required(e,t,n,i,r),Ct(t,"string")||We.pattern(e,t,n,i,r)}o(i)},G$=qD;var XD=(e,t,o,n,r)=>{let i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(Ct(t)&&!e.required)return o();We.required(e,t,n,i,r),Ct(t)||We.type(e,t,n,i,r)}o(i)},q$=XD;var YD=(e,t,o,n,r)=>{let i=[],s=Array.isArray(t)?"array":typeof t;We.required(e,t,n,i,r,s),o(i)},X$=YD;var ZD=(e,t,o,n,r)=>{let i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(Ct(t,"string")&&!e.required)return o();We.required(e,t,n,i,r,"string"),Ct(t,"string")||(We.type(e,t,n,i,r),We.range(e,t,n,i,r),We.pattern(e,t,n,i,r),e.whitespace===!0&&We.whitespace(e,t,n,i,r))}o(i)},Y$=ZD;var QD=(e,t,o,n,r)=>{let i=e.type,s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(Ct(t,i)&&!e.required)return o();We.required(e,t,n,s,r,i),Ct(t,i)||We.type(e,t,n,s,r)}o(s)},sd=QD;var $l={string:Y$,method:j$,number:U$,boolean:z$,regexp:q$,integer:W$,float:V$,array:F$,object:K$,enum:H$,pattern:G$,date:B$,url:sd,hex:sd,email:sd,tel:sd,required:X$,any:_$};var _b=class e{static register=function(o,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");$l[o]=n};static warning=P$;static messages=Np;static validators=$l;rules=null;_messages=Np;constructor(t){this.define(t)}define(t){if(!t)throw new Error("Cannot configure a schema with no rules");if(typeof t!="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={},Object.keys(t).forEach(o=>{let n=t[o];this.rules[o]=Array.isArray(n)?n:[n]})}messages(t){return t&&(this._messages=Lb(Ip(),t)),this._messages}validate(t,o={},n=()=>{}){let r=t,i=o,s=n;if(typeof i=="function"&&(s=i,i={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(null,r),Promise.resolve(r);function a(u){let m=[],f={};function g(p){Array.isArray(p)?m=m.concat(...p):m.push(p)}for(let p=0;p<u.length;p++)g(u[p]);m.length?(f=Pp(m),s(m,f)):s(null,r)}if(i.messages){let u=this.messages();u===Np&&(u=Ip()),Lb(u,i.messages),i.messages=u}else i.messages=this.messages();let c={};(i.keys||Object.keys(this.rules)).forEach(u=>{let m=this.rules[u],f=r[u];m.forEach(g=>{let p=g;typeof p.transform=="function"&&(r===t&&(r={...r}),f=r[u]=p.transform(f),f!=null&&(p.type=p.type||(Array.isArray(f)?"array":typeof f))),typeof p=="function"?p={validator:p}:p={...p},p.validator=this.getValidationMethod(p),p.validator&&(p.field=u,p.fullField=p.fullField||u,p.type=this.getType(p),c[u]=c[u]||[],c[u].push({rule:p,value:f,source:r,field:u}))})});let d={};return T$(c,i,(u,m)=>{let f=u.rule,g=(f.type==="object"||f.type==="array")&&(typeof f.fields=="object"||typeof f.defaultField=="object");g=g&&(f.required||!f.required&&u.value),f.field=u.field;function p(x,b){return{...b,fullField:`${f.fullField}.${x}`,fullFields:f.fullFields?[...f.fullFields,x]:[x]}}function h(x=[]){let b=Array.isArray(x)?x:[x];!i.suppressWarning&&b.length&&e.warning("async-validator:",b),b.length&&f.message!==void 0&&f.message!==null&&(b=[].concat(f.message));let S=b.map(kb(f,r));if(i.first&&S.length)return d[f.field]=1,m(S);if(!g)m(S);else{if(f.required&&!u.value)return f.message!==void 0?S=[].concat(f.message).map(kb(f,r)):i.error&&(S=[i.error(f,Eo(i.messages.required,f.field))]),m(S);let v={};f.defaultField&&Object.keys(u.value).map(w=>{v[w]=f.defaultField}),v={...v,...u.rule.fields};let C={};Object.keys(v).forEach(w=>{let I=v[w],P=Array.isArray(I)?I:[I];C[w]=P.map(p.bind(null,w))});let R=new e(C);R.messages(i.messages),u.rule.options&&(u.rule.options.messages=i.messages,u.rule.options.error=i.error),R.validate(u.value,u.rule.options||i,w=>{let I=[];S&&S.length&&I.push(...S),w&&w.length&&I.push(...w),m(I.length?I:null)})}}let y;if(f.asyncValidator)y=f.asyncValidator(f,u.value,h,u.source,i);else if(f.validator){try{y=f.validator(f,u.value,h,u.source,i)}catch(x){console.error?.(x),i.suppressValidatorError||setTimeout(()=>{throw x},0),h(x.message)}y===!0?h():y===!1?h(typeof f.message=="function"?f.message(f.fullField||f.field):f.message||`${f.fullField||f.field} fails`):y instanceof Array?h(y):y instanceof Error&&h(y.message)}y&&y.then&&y.then(()=>h(),x=>h(x))},u=>{a(u)},r)}getType(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!$l.hasOwnProperty(t.type))throw new Error(Eo("Unknown rule type %s",t.type));return t.type||"string"}getValidationMethod(t){if(typeof t.validator=="function")return t.validator;let o=Object.keys(t),n=o.indexOf("message");return n!==-1&&o.splice(n,1),o.length===1&&o[0]==="required"?$l.required:$l[this.getType(t)]||void 0}},Z$=_b;var kp=M(require("react"));var Ln="'${name}' is not a valid ${type}",Ap={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:Ln,method:Ln,array:Ln,object:Ln,number:Ln,date:Ln,boolean:Ln,integer:Ln,float:Ln,regexp:Ln,email:Ln,tel:Ln,url:Ln,hex:Ln},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}"}};var Q$=Z$;function JD(e,t){return e.replace(/\\?\$\{\w+\}/g,o=>{if(o.startsWith("\\"))return o.slice(1);let n=o.slice(2,-1);return t[n]})}var J$="CODE_LOGIC_ERROR";async function Fb(e,t,o,n,r){let i={...o};if(delete i.ruleIndex,Q$.warning=()=>{},i.validator){let m=i.validator;i.validator=(...f)=>{try{return m(...f)}catch(g){return console.error(g),Promise.reject(J$)}}}let s=null;i&&i.type==="array"&&i.defaultField&&(s=i.defaultField,delete i.defaultField);let a=new Q$({[e]:[i]}),c=Yr(Ap,n.validateMessages);a.messages(c);let l=[];try{await Promise.resolve(a.validate({[e]:t},{...n}))}catch(m){m.errors&&(l=m.errors.map(({message:f},g)=>{let p=f===J$?c.default:f;return kp.isValidElement(p)?kp.cloneElement(p,{key:`error_${g}`}):p}))}if(!l.length&&s&&Array.isArray(t)&&t.length>0)return(await Promise.all(t.map((f,g)=>Fb(`${e}.${g}`,f,s,n,r)))).reduce((f,g)=>[...f,...g],[]);let d={...o,name:e,enum:(o.enum||[]).join(", "),...r};return l.map(m=>typeof m=="string"?JD(m,d):m)}function eI(e,t,o,n,r,i){let s=e.join("."),a=o.map((l,d)=>{let u=l.validator,m={...l,ruleIndex:d};return u&&(m.validator=(f,g,p)=>{let h=!1,x=u(f,g,(...b)=>{Promise.resolve().then(()=>{Kt(!h,"Your validator function has already return a promise. `callback` will be ignored."),h||p(...b)})});h=x&&typeof x.then=="function"&&typeof x.catch=="function",Kt(h,"`callback` is deprecated. Please return a promise instead."),h&&x.then(()=>{p()}).catch(b=>{p(b||" ")})}),m}).sort(({warningOnly:l,ruleIndex:d},{warningOnly:u,ruleIndex:m})=>!!l==!!u?d-m:l?1:-1),c;if(r===!0)c=new Promise(async(l,d)=>{for(let u=0;u<a.length;u+=1){let m=a[u],f=await Fb(s,t,m,n,i);if(f.length){d([{errors:f,rule:m}]);return}}l([])});else{let l=a.map(d=>Fb(s,t,d,n,i).then(u=>({errors:u,rule:d})));c=(r?t_(l):e_(l)).then(d=>Promise.reject(d))}return c.catch(l=>l),c}async function e_(e){return Promise.all(e).then(t=>[].concat(...t))}async function t_(e){let t=0;return new Promise(o=>{e.forEach(n=>{n.then(r=>{r.errors.length&&o([r]),t+=1,t===e.length&&o([])})})})}function Yt(e){return rd(e)}function zb(e,t){let o={};return t.forEach(n=>{let r=Mo(e,n);o=Uo(o,n,r)}),o}function bs(e,t,o=!1){return e&&e.some(n=>Il(t,n,o))}function Il(e,t,o=!1){return!e||!t||!o&&e.length!==t.length?!1:t.every((n,r)=>e[r]===n)}function tI(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||typeof e!="object"||typeof t!="object")return!1;let o=Object.keys(e),n=Object.keys(t);return[...new Set([...o,...n])].every(i=>{let s=e[i],a=t[i];return typeof s=="function"&&typeof a=="function"?!0:s===a})}function oI(e,...t){let o=t[0];return o&&o.target&&typeof o.target=="object"&&e in o.target?o.target[e]:o}function Bb(e,t,o){let{length:n}=e;if(t<0||t>=n||o<0||o>=n)return e;let r=e[t],i=t-o;return i>0?[...e.slice(0,o),r,...e.slice(o,t),...e.slice(t+1,n)]:i<0?[...e.slice(0,t),...e.slice(t+1,o+1),r,...e.slice(o+1,n)]:e}var Hb=e=>{let t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},ad=class{namePathList=[];taskId=0;watcherList=new Set;form;constructor(t){this.form=t}register(t){return this.watcherList.add(t),()=>{this.watcherList.delete(t)}}notify(t){t.forEach(o=>{this.namePathList.every(n=>!Il(n,o))&&this.namePathList.push(o)}),this.doBatch()}doBatch(){this.taskId+=1;let t=this.taskId;Hb(()=>{if(t===this.taskId&&this.watcherList.size){let o=this.form.getForm(),n=o.getFieldsValue(),r=o.getFieldsValue(!0);this.watcherList.forEach(i=>{i(n,r,this.namePathList)}),this.namePathList=[]}})}};async function Vb(){return new Promise(e=>{Hb(()=>{He(()=>{e()})})})}function jb(){return jb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},jb.apply(this,arguments)}var ya=[],ld=[];function Wb(e,t,o,n,r,i){return typeof e=="function"?e(t,o,"source"in i?{source:i.source}:{}):n!==r}var Ub=class extends Sn.PureComponent{static contextType=_r;state={resetCount:0};cancelRegisterFunc=null;mounted=!1;touched=!1;dirty=!1;validatePromise;prevValidating;errors=ya;warnings=ld;constructor(t){if(super(t),t.fieldContext){let{getInternalHooks:o}=t.fieldContext,{initEntityValue:n}=o(Dr);n(this)}}componentDidMount(){let{shouldUpdate:t,fieldContext:o}=this.props;if(this.mounted=!0,o){let{getInternalHooks:n}=o,{registerField:r}=n(Dr);this.cancelRegisterFunc=r(this)}t===!0&&this.reRender()}componentWillUnmount(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}cancelRegister=()=>{let{preserve:t,isListField:o,name:n}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(o,t,Yt(n)),this.cancelRegisterFunc=null};getNamePath=()=>{let{name:t,fieldContext:o}=this.props,{prefixName:n=[]}=o;return t!==void 0?[...n,...t]:[]};getRules=()=>{let{rules:t=[],fieldContext:o}=this.props;return t.map(n=>typeof n=="function"?n(o):n)};reRender(){this.mounted&&this.forceUpdate()}refresh=()=>{this.mounted&&this.setState(({resetCount:t})=>({resetCount:t+1}))};metaCache=null;triggerMetaEvent=t=>{let{onMetaChange:o}=this.props;if(o){let n={...this.getMeta(),destroy:t};Mr(this.metaCache,n)||o(n),this.metaCache=n}else this.metaCache=null};onStoreChange=(t,o,n)=>{let{shouldUpdate:r,dependencies:i=[],onReset:s}=this.props,{store:a}=n,c=this.getNamePath(),l=this.getValue(t),d=this.getValue(a),u=o&&bs(o,c);switch(n.type==="valueUpdate"&&n.source==="external"&&!Mr(l,d)&&(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=ya,this.warnings=ld,this.triggerMetaEvent()),n.type){case"reset":if(!o||u){this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=ya,this.warnings=ld,this.triggerMetaEvent(),s?.(),this.refresh();return}break;case"remove":{if(r&&Wb(r,t,a,l,d,n)){this.reRender();return}break}case"setField":{let{data:m}=n;if(u){"touched"in m&&(this.touched=m.touched),"validating"in m&&!("originRCField"in m)&&(this.validatePromise=m.validating?Promise.resolve([]):null),"errors"in m&&(this.errors=m.errors||ya),"warnings"in m&&(this.warnings=m.warnings||ld),this.dirty=!0,this.triggerMetaEvent(),this.reRender();return}else if("value"in m&&bs(o,c,!0)){this.reRender();return}if(r&&!c.length&&Wb(r,t,a,l,d,n)){this.reRender();return}break}case"dependenciesUpdate":{if(i.map(Yt).some(f=>bs(n.relatedFields,f))){this.reRender();return}break}default:if(u||(!i.length||c.length||r)&&Wb(r,t,a,l,d,n)){this.reRender();return}break}r===!0&&this.reRender()};validateRules=t=>{let o=this.getNamePath(),n=this.getValue(),{triggerName:r,validateOnly:i=!1,delayFrame:s}=t||{},a=Promise.resolve().then(async()=>{if(!this.mounted)return[];let{validateFirst:c=!1,messageVariables:l,validateDebounce:d}=this.props;s&&await Vb();let u=this.getRules();if(r&&(u=u.filter(f=>f).filter(f=>{let{validateTrigger:g}=f;return g?rd(g).includes(r):!0})),d&&r&&(await new Promise(f=>{setTimeout(f,d)}),this.validatePromise!==a))return[];let m=eI(o,n,u,t,c,l);return m.catch(f=>f).then((f=ya)=>{if(this.validatePromise===a){this.validatePromise=null;let g=[],p=[];f.forEach?.(({rule:{warningOnly:h},errors:y=ya})=>{h?p.push(...y):g.push(...y)}),this.errors=g,this.warnings=p,this.triggerMetaEvent(),this.reRender()}}),m});return i||(this.validatePromise=a,this.dirty=!0,this.errors=ya,this.warnings=ld,this.triggerMetaEvent(),this.reRender()),a};isFieldValidating=()=>!!this.validatePromise;isFieldTouched=()=>this.touched;isFieldDirty=()=>{if(this.dirty||this.props.initialValue!==void 0)return!0;let{fieldContext:t}=this.props,{getInitialValue:o}=t.getInternalHooks(Dr);return o(this.getNamePath())!==void 0};getErrors=()=>this.errors;getWarnings=()=>this.warnings;isListField=()=>this.props.isListField;isList=()=>this.props.isList;isPreserve=()=>this.props.preserve;getMeta=()=>(this.prevValidating=this.isFieldValidating(),{touched:this.isFieldTouched(),validating:this.prevValidating,errors:this.errors,warnings:this.warnings,name:this.getNamePath(),validated:this.validatePromise===null});getOnlyChild=t=>{if(typeof t=="function"){let n=this.getMeta();return{...this.getOnlyChild(t(this.getControlled(),n,this.props.fieldContext)),isFunction:!0}}let o=co(t);return o.length!==1||!Sn.isValidElement(o[0])?{child:o,isFunction:!1}:{child:o[0],isFunction:!1}};getValue=t=>{let{getFieldsValue:o}=this.props.fieldContext,n=this.getNamePath();return Mo(t||o(!0),n)};getControlled=(t={})=>{let{name:o,trigger:n="onChange",validateTrigger:r,getValueFromEvent:i,normalize:s,valuePropName:a="value",getValueProps:c,fieldContext:l}=this.props,d=r!==void 0?r:l.validateTrigger,u=this.getNamePath(),{getInternalHooks:m,getFieldsValue:f}=l,{dispatch:g}=m(Dr),p=this.getValue(),h=c||(v=>({[a]:v})),y=t[n],x=o!==void 0?h(p):{},b={...t,...x};return b[n]=(...v)=>{this.touched=!0,this.dirty=!0,this.triggerMetaEvent();let C=this.getValue(),R;i?R=i(...v):R=oI(a,...v),s&&(R=s(R,C,f(!0))),R!==C&&g({type:"updateValue",namePath:u,value:R}),y&&y(...v)},rd(d||[]).forEach(v=>{let C=b[v];b[v]=(...R)=>{C&&C(...R);let{rules:w}=this.props;w&&w.length&&g({type:"validateField",namePath:u,triggerName:v})}}),b};render(){let{resetCount:t}=this.state,{children:o}=this.props,{child:n,isFunction:r}=this.getOnlyChild(o),i;return r?i=n:Sn.isValidElement(n)?i=Sn.cloneElement(n,this.getControlled(n.props)):(Kt(!n,"`children` of Field is not validate ReactElement."),i=n),Sn.createElement(Sn.Fragment,{key:t},i)}};function o_({name:e,...t}){let o=Sn.useContext(_r),n=Sn.useContext(ys),r=e!==void 0?Yt(e):void 0,i=t.isListField??!!n,s="keep";return i||(s=`_${(r||[]).join("_")}`),Sn.createElement(Ub,jb({key:s,name:r,isListField:i},t,{fieldContext:o}))}var Lp=o_;var Qn=M(require("react"));function n_({name:e,initialValue:t,children:o,rules:n,validateTrigger:r,isListField:i}){let s=Qn.useContext(_r),a=Qn.useContext(ys),l=Qn.useRef({keys:[],id:0}).current,d=Qn.useMemo(()=>[...Yt(s.prefixName)||[],...Yt(e)],[s.prefixName,e]),u=Qn.useMemo(()=>({...s,prefixName:d}),[s,d]),m=Qn.useMemo(()=>({getKey:g=>{let p=d.length,h=g[p];return[l.keys[h],g.slice(p+1)]}}),[l,d]);if(typeof o!="function")return Kt(!1,"Form.List only accepts function as children."),null;let f=(g,p,{source:h})=>h==="internal"?!1:g!==p;return Qn.createElement(ys.Provider,{value:m},Qn.createElement(_r.Provider,{value:u},Qn.createElement(Lp,{name:[],shouldUpdate:f,rules:n,validateTrigger:r,initialValue:t,isList:!0,isListField:i??!!a},({value:g=[],onChange:p},h)=>{let{getFieldValue:y}=s,x=()=>y(d||[])||[],b={add:(v,C)=>{let R=x();C>=0&&C<=R.length?(l.keys=[...l.keys.slice(0,C),l.id,...l.keys.slice(C)],p([...R.slice(0,C),v,...R.slice(C)])):(l.keys=[...l.keys,l.id],p([...R,v])),l.id+=1},remove:v=>{let C=x(),R=new Set(Array.isArray(v)?v:[v]);R.size<=0||(l.keys=l.keys.filter((w,I)=>!R.has(I)),p(C.filter((w,I)=>!R.has(I))))},move(v,C){if(v===C)return;let R=x();v<0||v>=R.length||C<0||C>=R.length||(l.keys=Bb(l.keys,v,C),p(Bb(R,v,C)))}},S=g||[];return Array.isArray(S)||(S=[]),o(S.map((v,C)=>{let R=l.keys[C];return R===void 0&&(l.keys[C]=l.id,R=l.keys[C],l.id+=1),{name:C,key:R,isListField:!0}}),b,h)})))}var nI=n_;var _p=M(require("react"));function rI(e){let t=!1,o=e.length,n=[];return e.length?new Promise((r,i)=>{e.forEach((s,a)=>{s.catch(c=>(t=!0,c)).then(c=>{o-=1,n[a]=c,!(o>0)&&(t&&i(n),r(n))})})}):Promise.resolve([])}var Kb="__@field_split__";function Dp(e){return e.map(t=>`${typeof t}:${t}`).join(Kb)}var Gb=class{kvs=new Map;set(t,o){this.kvs.set(Dp(t),o)}get(t){return this.kvs.get(Dp(t))}getAsPrefix(t){let o=Dp(t),n=o+Kb,r=[],i=this.kvs.get(o);return i!==void 0&&r.push(i),this.kvs.forEach((s,a)=>{a.startsWith(n)&&r.push(s)}),r}update(t,o){let n=this.get(t),r=o(n);r?this.set(t,r):this.delete(t)}delete(t){this.kvs.delete(Dp(t))}map(t){return[...this.kvs.entries()].map(([o,n])=>{let r=o.split(Kb);return t({key:r.map(i=>{let[,s,a]=i.match(/^([^:]*):(.*)$/);return s==="number"?Number(a):a}),value:n})})}toJSON(){let t={};return this.map(({key:o,value:n})=>(t[o.join(".")]=n,null)),t}},ba=Gb;var qb=class{formHooked=!1;forceRootUpdate;subscribable=!0;store={};fieldEntities=[];initialValues={};callbacks={};validateMessages=null;preserve=null;lastValidatePromise=null;watcherCenter=new ad(this);constructor(t){this.forceRootUpdate=t}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=t=>t===Dr?(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}):(Kt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null);useSubscribe=t=>{this.subscribable=t};prevWithoutPreserves=null;setInitialValues=(t,o)=>{if(this.initialValues=t||{},o){let n=Yr(t,this.store);this.prevWithoutPreserves?.map(({key:r})=>{n=Uo(n,r,Mo(t,r))}),this.prevWithoutPreserves=null,this.updateStore(n)}};destroyForm=t=>{if(t)this.updateStore({});else{let o=new ba;this.getFieldEntities(!0).forEach(n=>{this.isMergedPreserve(n.isPreserve())||o.set(n.getNamePath(),!0)}),this.prevWithoutPreserves=o}};getInitialValue=t=>{let o=Mo(this.initialValues,t);return t.length?Yr(o):o};setCallbacks=t=>{this.callbacks=t};setValidateMessages=t=>{this.validateMessages=t};setPreserve=t=>{this.preserve=t};registerWatch=t=>this.watcherCenter.register(t);notifyWatch=(t=[])=>{this.watcherCenter.notify(t)};timeoutId=null;warningUnhooked=()=>{};updateStore=t=>{this.store=t};getFieldEntities=(t=!1)=>t?this.fieldEntities.filter(o=>o.getNamePath().length):this.fieldEntities;getFieldsMap=(t=!1)=>{let o=new ba;return this.getFieldEntities(t).forEach(n=>{let r=n.getNamePath();o.set(r,n)}),o};getFieldEntitiesForNamePathList=(t,o=!1)=>{if(!t)return this.getFieldEntities(!0);let n=this.getFieldsMap(!0);return o?t.flatMap(r=>{let i=Yt(r),s=n.getAsPrefix(i);return s.length?s:[{INVALIDATE_NAME_PATH:i}]}):t.map(r=>{let i=Yt(r);return n.get(i)||{INVALIDATE_NAME_PATH:Yt(r)}})};getFieldsValue=(t,o)=>{this.warningUnhooked();let n,r;if(t===!0||Array.isArray(t)?(n=t,r=o):t&&typeof t=="object"&&(r=t.filter),n===!0&&!r)return this.store;let i=this.getFieldEntitiesForNamePathList(Array.isArray(n)?n:null,!0),s=[],a=[];i.forEach(l=>{let d=l.INVALIDATE_NAME_PATH||l.getNamePath();if(l.isList?.()){a.push(d);return}if(!r)s.push(d);else{let u="getMeta"in l?l.getMeta():null;r(u)&&s.push(d)}});let c=zb(this.store,s.map(Yt));return a.forEach(l=>{Mo(c,l)||(c=Uo(c,l,[]))}),c};getFieldValue=t=>{this.warningUnhooked();let o=Yt(t);return Mo(this.store,o)};getFieldsError=t=>(this.warningUnhooked(),this.getFieldEntitiesForNamePathList(t).map((n,r)=>n&&!n.INVALIDATE_NAME_PATH?{name:n.getNamePath(),errors:n.getErrors(),warnings:n.getWarnings()}:{name:Yt(t[r]),errors:[],warnings:[]}));getFieldError=t=>{this.warningUnhooked();let o=Yt(t);return this.getFieldsError([o])[0].errors};getFieldWarning=t=>{this.warningUnhooked();let o=Yt(t);return this.getFieldsError([o])[0].warnings};isFieldsTouched=(...t)=>{this.warningUnhooked();let[o,n]=t,r,i=!1;t.length===0?r=null:t.length===1?Array.isArray(o)?(r=o.map(Yt),i=!1):(r=null,i=o):(r=o.map(Yt),i=n);let s=this.getFieldEntities(!0),a=u=>u.isFieldTouched();if(!r)return i?s.every(u=>a(u)||u.isList()):s.some(a);let c=new ba;r.forEach(u=>{c.set(u,[])}),s.forEach(u=>{let m=u.getNamePath();r.forEach(f=>{f.every((g,p)=>m[p]===g)&&c.update(f,g=>[...g,u])})});let l=u=>u.some(a),d=c.map(({value:u})=>u);return i?d.every(l):d.some(l)};isFieldTouched=t=>(this.warningUnhooked(),this.isFieldsTouched([t]));isFieldsValidating=t=>{this.warningUnhooked();let o=this.getFieldEntities();if(!t)return o.some(r=>r.isFieldValidating());let n=t.map(Yt);return o.some(r=>{let i=r.getNamePath();return bs(n,i)&&r.isFieldValidating()})};isFieldValidating=t=>(this.warningUnhooked(),this.isFieldsValidating([t]));resetWithFieldInitialValue=(t={})=>{let o=new ba,n=this.getFieldEntities(!0);n.forEach(s=>{let{initialValue:a}=s.props,c=s.getNamePath();if(a!==void 0){let l=o.get(c)||new Set;l.add({entity:s,value:a}),o.set(c,l)}});let r=s=>{s.forEach(a=>{let{initialValue:c}=a.props;if(c!==void 0){let l=a.getNamePath();if(this.getInitialValue(l)!==void 0)Kt(!1,`Form already set 'initialValues' with path '${l.join(".")}'. Field can not overwrite it.`);else{let u=o.get(l);if(u&&u.size>1)Kt(!1,`Multiple Field with path '${l.join(".")}' set 'initialValue'. Can not decide which one to pick.`);else if(u){let m=this.getFieldValue(l);!a.isListField()&&(!t.skipExist||m===void 0)&&this.updateStore(Uo(this.store,l,[...u][0].value))}}}})},i;t.entities?i=t.entities:t.namePathList?(i=[],t.namePathList.forEach(s=>{let a=o.get(s);a&&i.push(...[...a].map(c=>c.entity))})):i=n,r(i)};resetFields=t=>{this.warningUnhooked();let o=this.store;if(!t){this.updateStore(Yr(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(o,null,{type:"reset"}),this.notifyWatch();return}let n=t.map(Yt);n.forEach(r=>{let i=this.getInitialValue(r);this.updateStore(Uo(this.store,r,i))}),this.resetWithFieldInitialValue({namePathList:n}),this.notifyObservers(o,n,{type:"reset"}),this.notifyWatch(n)};setFields=t=>{this.warningUnhooked();let o=this.store,n=[];t.forEach(r=>{let{name:i,...s}=r,a=Yt(i);n.push(a),"value"in s&&this.updateStore(Uo(this.store,a,s.value)),this.notifyObservers(o,[a],{type:"setField",data:r})}),this.notifyWatch(n)};getFields=()=>this.getFieldEntities(!0).map(n=>{let r=n.getNamePath(),s={...n.getMeta(),name:r,value:this.getFieldValue(r)};return Object.defineProperty(s,"originRCField",{value:!0}),s});initEntityValue=t=>{let{initialValue:o}=t.props;if(o!==void 0){let n=t.getNamePath();Mo(this.store,n)===void 0&&this.updateStore(Uo(this.store,n,o))}};isMergedPreserve=t=>(t!==void 0?t:this.preserve)??!0;registerField=t=>{this.fieldEntities.push(t);let o=t.getNamePath();if(this.notifyWatch([o]),t.props.initialValue!==void 0){let n=this.store;this.resetWithFieldInitialValue({entities:[t],skipExist:!0}),this.notifyObservers(n,[t.getNamePath()],{type:"valueUpdate",source:"internal"})}return(n,r,i=[])=>{if(this.fieldEntities=this.fieldEntities.filter(s=>s!==t),!this.isMergedPreserve(r)&&(!n||i.length>1)){let s=n?void 0:this.getInitialValue(o);if(o.length&&this.getFieldValue(o)!==s&&this.fieldEntities.every(a=>!Il(a.getNamePath(),o))){let a=this.store;this.updateStore(Uo(a,o,s,!0)),this.notifyObservers(a,[o],{type:"remove"}),this.triggerDependenciesUpdate(a,o)}}this.notifyWatch([o])}};dispatch=t=>{switch(t.type){case"updateValue":{let{namePath:o,value:n}=t;this.updateValue(o,n);break}case"validateField":{let{namePath:o,triggerName:n}=t;this.validateFields([o],{triggerName:n});break}default:}};notifyObservers=(t,o,n)=>{if(this.subscribable){let r={...n,store:this.getFieldsValue(!0)};this.getFieldEntities().forEach(({onStoreChange:i})=>{i(t,o,r)})}else this.forceRootUpdate()};triggerDependenciesUpdate=(t,o)=>{let n=this.getDependencyChildrenFields(o);return n.length&&this.validateFields(n,{delayFrame:!0}),this.notifyObservers(t,n,{type:"dependenciesUpdate",relatedFields:[o,...n]}),n};updateValue=(t,o)=>{let n=Yt(t),r=this.store;this.updateStore(Uo(this.store,n,o)),this.notifyObservers(r,[n],{type:"valueUpdate",source:"internal"}),this.notifyWatch([n]);let i=this.triggerDependenciesUpdate(r,n),{onValuesChange:s}=this.callbacks;if(s){let a=zb(this.store,[n]),c=this.getFieldsValue(),l=Uo(c,n,Mo(a,n));s(a,l)}this.triggerOnFieldsChange([n,...i])};setFieldsValue=t=>{this.warningUnhooked();let o=this.store;if(t){let n=Yr(this.store,t);this.updateStore(n)}this.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),this.notifyWatch()};setFieldValue=(t,o)=>{this.setFields([{name:t,value:o,errors:[],warnings:[],touched:!0}])};getDependencyChildrenFields=t=>{let o=new Set,n=[],r=new ba;this.getFieldEntities().forEach(s=>{let{dependencies:a}=s.props;(a||[]).forEach(c=>{let l=Yt(c);r.update(l,(d=new Set)=>(d.add(s),d))})});let i=s=>{(r.get(s)||new Set).forEach(c=>{if(!o.has(c)){o.add(c);let l=c.getNamePath();c.isFieldDirty()&&l.length&&(n.push(l),i(l))}})};return i(t),n};triggerOnFieldsChange=(t,o)=>{let{onFieldsChange:n}=this.callbacks;if(n){let r=this.getFields();if(o){let s=new ba;o.forEach(({name:a,errors:c})=>{s.set(a,c)}),r.forEach(a=>{a.errors=s.get(a.name)||a.errors})}let i=r.filter(({name:s})=>bs(t,s));i.length&&n(i,r)}};validateFields=(t,o)=>{this.warningUnhooked();let n,r;Array.isArray(t)||typeof t=="string"||typeof o=="string"?(n=t,r=o):r=t;let i=!!n,s=i?n.map(Yt):[],a=[...s],c=[],l=String(Date.now()),d=new Set,{recursive:u,dirty:m}=r||{};this.getFieldEntities(!0).forEach(h=>{let y=h.getNamePath();if(i||((!h.isList()||!s.some(x=>Il(x,y,!0)))&&a.push(y),s.push(y)),!(!h.props.rules||!h.props.rules.length)&&!(m&&!h.isFieldDirty())&&(d.add(y.join(l)),!i||bs(s,y,u))){let x=h.validateRules({validateMessages:{...Ap,...this.validateMessages},...r});c.push(x.then(()=>({name:y,errors:[],warnings:[]})).catch(b=>{let S=[],v=[];return b.forEach?.(({rule:{warningOnly:C},errors:R})=>{C?v.push(...R):S.push(...R)}),S.length?Promise.reject({name:y,errors:S,warnings:v}):{name:y,errors:S,warnings:v}}))}});let f=rI(c);this.lastValidatePromise=f,f.catch(h=>h).then(h=>{let y=h.map(({name:x})=>x);this.notifyObservers(this.store,y,{type:"validateFinish"}),this.triggerOnFieldsChange(y,h)});let g=f.then(()=>this.lastValidatePromise===f?Promise.resolve(this.getFieldsValue(a)):Promise.reject([])).catch(h=>{let y=h.filter(b=>b&&b.errors.length),x=y[0]?.errors?.[0];return Promise.reject({message:x,values:this.getFieldsValue(s),errorFields:y,outOfDate:this.lastValidatePromise!==f})});g.catch(h=>h);let p=s.filter(h=>d.has(h.join(l)));return this.triggerOnFieldsChange(p),g};submit=()=>{this.warningUnhooked(),this.validateFields().then(t=>{let{onFinish:o}=this.callbacks;if(o)try{o(t)}catch(n){console.error(n)}}).catch(t=>{let{onFinishFailed:o}=this.callbacks;o&&o(t)})}};function r_(e){let t=_p.useRef(null),[,o]=_p.useState({});if(!t.current)if(e)t.current=e;else{let n=()=>{o({})},r=new qb(n);t.current=r.getForm()}return[t.current]}var Fp=r_;var Ho=M(require("react"));var xs=M(require("react")),Xb=xs.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),Yb=({validateMessages:e,onFormChange:t,onFormFinish:o,children:n})=>{let r=xs.useContext(Xb),i=xs.useRef({});return xs.createElement(Xb.Provider,{value:{...r,validateMessages:{...r.validateMessages,...e},triggerFormChange:(s,a)=>{t&&t(s,{changedFields:a,forms:i.current}),r.triggerFormChange(s,a)},triggerFormFinish:(s,a)=>{o&&o(s,{values:a,forms:i.current}),r.triggerFormFinish(s,a)},registerForm:(s,a)=>{s&&(i.current={...i.current,[s]:a}),r.registerForm(s,a)},unregisterForm:s=>{let a={...i.current};delete a[s],i.current=a,r.unregisterForm(s)}}},n)};var iI=Xb;function Zb(){return Zb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Zb.apply(this,arguments)}var i_=(e,t)=>{let{name:o,initialValues:n,fields:r,form:i,preserve:s,children:a,component:c="form",validateMessages:l,validateTrigger:d="onChange",onValuesChange:u,onFieldsChange:m,onFinish:f,onFinishFailed:g,clearOnDestroy:p,...h}=e,y=Ho.useRef(null),x=Ho.useContext(iI),[b]=Fp(i),{useSubscribe:S,setInitialValues:v,setCallbacks:C,setValidateMessages:R,setPreserve:w,destroyForm:I}=b.getInternalHooks(Dr);Ho.useImperativeHandle(t,()=>({...b,nativeElement:y.current})),Ho.useEffect(()=>(x.registerForm(o,b),()=>{x.unregisterForm(o)}),[x,b,o]),R({...x.validateMessages,...l}),C({onValuesChange:u,onFieldsChange:(F,..._)=>{x.triggerFormChange(o,F),m&&m(F,..._)},onFinish:F=>{x.triggerFormFinish(o,F),f&&f(F)},onFinishFailed:g}),w(s);let P=Ho.useRef(null);v(n,!P.current),P.current||(P.current=!0),Ho.useEffect(()=>()=>I(p),[]);let N,E=typeof a=="function";if(E){let F=b.getFieldsValue(!0);N=a(F,b)}else N=a;S(!E);let O=Ho.useRef(null);Ho.useEffect(()=>{tI(O.current||[],r||[])||b.setFields(r||[]),O.current=r},[r,b]);let D=Ho.useMemo(()=>({...b,validateTrigger:d}),[b,d]),A=Ho.createElement(ys.Provider,{value:null},Ho.createElement(_r.Provider,{value:D},N));return c===!1?A:Ho.createElement(c,Zb({},h,{ref:y,onSubmit:F=>{F.preventDefault(),F.stopPropagation(),b.submit()},onReset:F=>{F.preventDefault(),b.resetFields(),h.onReset?.(F)}}),A)},sI=i_;var Fr=require("react");function Qb(e){try{return JSON.stringify(e)}catch{return Math.random()}}function s_(...e){let[t,o={}]=e,n=I$(o)?{form:o}:o,r=n.form,[i,s]=(0,Fr.useState)(()=>typeof t=="function"?t({}):void 0),a=(0,Fr.useMemo)(()=>Qb(i),[i]),c=(0,Fr.useRef)(a);c.current=a;let l=(0,Fr.useContext)(_r),d=r||l,u=d&&d._init,{getFieldsValue:m,getInternalHooks:f}=d,{registerWatch:g}=f(Dr),p=Ie((y,x)=>{let b=n.preserve?x??m(!0):y??m(),S=typeof t=="function"?t(b):Mo(b,Yt(t));Qb(i)!==Qb(S)&&s(S)}),h=typeof t=="function"?t:JSON.stringify(t);return(0,Fr.useEffect)(()=>{u&&p()},[u,h]),(0,Fr.useEffect)(()=>u?g((x,b)=>{p(x,b)}):void 0,[u]),i}var aI=s_;var a_=lI.forwardRef(sI),cd=a_;cd.FormProvider=Yb;cd.Field=Lp;cd.List=nI;cd.useForm=Fp;cd.useWatch=aI;var cn=Mi.createContext({}),cI=({children:e,status:t,override:o})=>{let n=Mi.useContext(cn),r=Mi.useMemo(()=>{let i={...n};return o&&delete i.isFormItemInput,t&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[t,o,n]);return Mi.createElement(cn.Provider,{value:r},e)},dI=Mi.createContext(void 0);var uI=M(require("react")),l_=uI.default.createContext(null),zp=l_;var c_=e=>{let{checkboxCls:t,checkboxSize:o,lineWidth:n}=e,r=`${t}-wrapper`,i="@media (hover: hover) and (pointer: fine)";return[{[`${t}-group`]:{...Et(e),display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[r]:{...Et(e),display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${r}`]:{marginInlineStart:0}},[t]:{...Et(e),position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",boxSizing:"border-box",display:"block",width:o,height:o,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${q(n)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,flex:"none",...oi(),"&:after":{boxSizing:"border-box",position:"absolute",top:`calc(${o} / 2 - ${n})`,insetInlineStart:`calc(${o} / 4 - ${n})`,display:"table",width:e.calc(o).div(14).mul(5).equal(),height:e.calc(o).div(14).mul(8).equal(),border:`${q(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}`,...Rl()},[`${t}-input`]:{position:"absolute",inset:`calc(-1 * (${n}))`,zIndex:1,cursor:"pointer",opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:An(e),"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}}},{[i]:{[`
|
|
145
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var a$=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),V5=e=>{let{componentCls:t,fontSize:o,lineWidth:n,groupBorderColor:r,colorErrorHover:i}=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(n).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:o}},a$(`${t}-primary`,r),a$(`${t}-danger`,i)]}},l$=V5;var $b=M(require("react"));var wb=e=>Math.round(Number(e||0)),W5=e=>{if(e instanceof pt)return e;if(e&&typeof e=="object"&&"h"in e&&"b"in e){let{b:t,...o}=e;return{...o,v:t}}return typeof e=="string"&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e},vn=class extends pt{constructor(t){super(W5(t))}toHsbString(){let t=this.toHsb(),o=wb(t.s*100),n=wb(t.b*100),r=wb(t.h),i=t.a,s=`hsb(${r}, ${o}%, ${n}%)`,a=`hsba(${r}, ${o}%, ${n}%, ${i.toFixed(i===0?0:2)})`;return i===1?s:a}toHsb(){let{v:t,...o}=this.toHsv();return{...o,b:t,a:this.a}}};var Rb=e=>e instanceof vn?e:new vn(e),j5=Rb("#1677ff");var U5=M(require("react"));var d$=M(require("react"));var Eb=require("react");var K5=M(require("react"));var G5=M(require("react"));var c$=M(require("react"));var eD=require("react");var tD=M(require("react"));var m$=M(require("react"));var u$=M(require("react"));var oD=(e,t)=>e?.replace(/[^0-9a-f]/gi,"").slice(0,t?8:6)||"",nD=(e,t)=>e?oD(e,t):"",od=function(){function e(t){if(Jr(this,e),this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=t.colors?.map(n=>({color:new e(n.color),percent:n.percent})),this.cleared=t.cleared;return}let o=Array.isArray(t);o&&t.length?(this.colors=t.map(({color:n,percent:r})=>({color:new e(n),percent:r})),this.metaColor=new vn(this.colors[0].color.metaColor)):this.metaColor=new vn(o?"":t),(!t||o&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return ei(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return nD(this.toHexString(),this.metaColor.a<1)}},{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(){let{colors:o}=this;return o?`linear-gradient(90deg, ${o.map(r=>`${r.color.toRgbString()} ${r.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(o){return!o||this.isGradient()!==o.isGradient()?!1:this.isGradient()?this.colors.length===o.colors.length&&this.colors.every((n,r)=>{let i=o.colors[r];return n.percent===i.percent&&n.color.equals(i.color)}):this.toHexString()===o.toHexString()}}])}();var x$=M(require("react"));var Rp=M(require("react"));var rD={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"},f$=rD;function Ib(){return Ib=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Ib.apply(this,arguments)}var iD=(e,t)=>Rp.createElement(Ot,Ib({},e,{ref:t,icon:f$})),sD=Rp.forwardRef(iD),g$=sD;function Zn(){return Zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Zn.apply(null,arguments)}var Nb=()=>({height:0,opacity:0}),h$=e=>({height:e?.scrollHeight??0,opacity:e?1:0}),aD=e=>({height:e?.offsetHeight??0}),Pb=(e,t)=>t?.deadline===!0||Ku(t)&&t.propertyName==="height",lD=(e=is)=>({motionName:`${e}-motion-collapse`,onAppearStart:Nb,onEnterStart:Nb,onAppearActive:h$,onEnterActive:h$,onLeaveStart:aD,onLeaveActive:Nb,onAppearEnd:Pb,onEnterEnd:Pb,onLeaveEnd:Pb,motionDeadline:500});var hr=(e,t,o)=>o!==void 0?o:`${e}-${t}`;var y$=lD;var b$=e=>e instanceof od?e:new od(e);var v$=(e,t)=>{let{r:o,g:n,b:r,a:i}=e.toRgb(),s=new vn(e.toRgbString()).onBackground(t).toHsv();return i<=.5?s.v>.5:o*.299+n*.587+r*.114>192};var Ep=e=>{let{paddingInline:t,onlyIconSize:o,borderColorDisabled:n}=e;return Fe(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:o,colorBorderDisabled:n})},$p=e=>{let t=e.contentFontSize??e.fontSize,o=e.contentFontSizeSM??e.fontSize,n=e.contentFontSizeLG??e.fontSizeLG,r=e.contentLineHeight??Va(t),i=e.contentLineHeightSM??Va(o),s=e.contentLineHeightLG??Va(n),a=v$(new od(e.colorBgSolid),"#fff")?"#000":"#fff",c=jo.reduce((u,m)=>({...u,[`${m}ShadowColor`]:`0 ${q(e.controlOutlineWidth)} 0 ${la(e[`${m}1`],e.colorBgContainer)}`}),{}),l=e.colorBgContainerDisabled,d=e.colorBgContainerDisabled;return{...c,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:a,contentFontSize:t,contentFontSizeSM:o,contentFontSizeLG:n,contentLineHeight:r,contentLineHeightSM:i,contentLineHeightLG:s,paddingBlock:Math.max((e.controlHeight-t*r)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-o*i)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-n*s)/2-e.lineWidth,0),defaultBgDisabled:l,dashedBgDisabled:d}};var cD=e=>{let{componentCls:t,antCls:o,lineWidth:n,lineType:r}=e,[i,s]=qt(o,"btn");return{[t]:[{[i("border-width")]:n,[i("border-color")]:"#000",[i("border-color-hover")]:s("border-color"),[i("border-color-active")]:s("border-color"),[i("border-color-disabled")]:s("border-color"),[i("border-style")]:r,[i("text-color")]:"#000",[i("text-color-hover")]:s("text-color"),[i("text-color-active")]:s("text-color"),[i("text-color-disabled")]:s("text-color"),[i("bg-color")]:"#ddd",[i("bg-color-hover")]:s("bg-color"),[i("bg-color-active")]:s("bg-color"),[i("bg-color-disabled")]:e.colorBgContainerDisabled,[i("bg-color-container")]:e.colorBgContainer,[i("shadow")]:"none"},{border:[s("border-width"),s("border-style"),s("border-color")].join(" "),color:s("text-color"),backgroundColor:s("bg-color"),[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":{border:[s("border-width"),s("border-style"),s("border-color-hover")].join(" "),color:s("text-color-hover"),backgroundColor:s("bg-color-hover")},"&:active":{border:[s("border-width"),s("border-style"),s("border-color-active")].join(" "),color:s("text-color-active"),backgroundColor:s("bg-color-active")}}},{[`&${t}-variant-solid`]:{[i("solid-bg-color")]:s("color-base"),[i("solid-bg-color-hover")]:s("color-hover"),[i("solid-bg-color-active")]:s("color-active"),[i("border-color")]:"transparent",[i("text-color")]:e.colorTextLightSolid,[i("bg-color")]:s("solid-bg-color"),[i("bg-color-hover")]:s("solid-bg-color-hover"),[i("bg-color-active")]:s("solid-bg-color-active"),boxShadow:s("shadow")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i("border-color")]:s("color-base"),[i("border-color-hover")]:s("color-hover"),[i("border-color-active")]:s("color-active"),[i("bg-color")]:s("bg-color-container"),[i("text-color")]:s("color-base"),[i("text-color-hover")]:s("color-hover"),[i("text-color-active")]:s("color-active"),boxShadow:s("shadow")},[`&${t}-variant-dashed`]:{[i("border-style")]:"dashed",[i("bg-color-disabled")]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[i("border-color")]:"transparent",[i("text-color")]:s("color-base"),[i("bg-color")]:s("color-light"),[i("bg-color-hover")]:s("color-light-hover"),[i("bg-color-active")]:s("color-light-active")},[`&${t}-variant-text, &${t}-variant-link`]:{[i("border-color")]:"transparent",[i("text-color")]:s("color-base"),[i("text-color-hover")]:s("color-hover"),[i("text-color-active")]:s("color-active"),[i("bg-color")]:"transparent",[i("bg-color-hover")]:"transparent",[i("bg-color-active")]:"transparent",[`&:disabled, &${e.componentCls}-disabled`]:{background:"transparent",borderColor:"transparent"}},[`&${t}-variant-text`]:{[i("bg-color-hover")]:s("color-light"),[i("bg-color-active")]:s("color-light-active")}},{[`&${t}-variant-link`]:{[i("color-base")]:e.colorLink,[i("color-hover")]:e.colorLinkHover,[i("color-active")]:e.colorLinkActive,[i("bg-color-hover")]:e.linkHoverBg},[`&${t}-color-primary`]:{[i("color-base")]:e.colorPrimary,[i("color-hover")]:e.colorPrimaryHover,[i("color-active")]:e.colorPrimaryActive,[i("color-light")]:e.colorPrimaryBg,[i("color-light-hover")]:e.colorPrimaryBgHover,[i("color-light-active")]:e.colorPrimaryBorder,[i("shadow")]:e.primaryShadow,[`&${t}-variant-solid`]:{[i("text-color")]:e.primaryColor,[i("text-color-hover")]:s("text-color"),[i("text-color-active")]:s("text-color")}},[`&${t}-color-dangerous`]:{[i("color-base")]:e.colorError,[i("color-hover")]:e.colorErrorHover,[i("color-active")]:e.colorErrorActive,[i("color-light")]:e.colorErrorBg,[i("color-light-hover")]:e.colorErrorBgFilledHover,[i("color-light-active")]:e.colorErrorBgActive,[i("shadow")]:e.dangerShadow,[`&${t}-variant-solid`]:{[i("text-color")]:e.dangerColor,[i("text-color-hover")]:s("text-color"),[i("text-color-active")]:s("text-color")}},[`&${t}-color-default`]:{[i("solid-bg-color")]:e.colorBgSolid,[i("solid-bg-color-hover")]:e.colorBgSolidHover,[i("solid-bg-color-active")]:e.colorBgSolidActive,[i("color-base")]:e.defaultBorderColor,[i("color-hover")]:e.defaultHoverBorderColor,[i("color-active")]:e.defaultActiveBorderColor,[i("color-light")]:e.colorFillTertiary,[i("color-light-hover")]:e.colorFillSecondary,[i("color-light-active")]:e.colorFill,[i("text-color")]:e.defaultColor,[i("text-color-hover")]:e.defaultHoverColor,[i("text-color-active")]:e.defaultActiveColor,[i("shadow")]:e.defaultShadow,[`&${t}-variant-outlined`]:{[i("bg-color-disabled")]:e.defaultBgDisabled},[`&${t}-variant-solid`]:{[i("text-color")]:e.solidTextColor,[i("text-color-hover")]:s("text-color"),[i("text-color-active")]:s("text-color")},[`&${t}-variant-filled, &${t}-variant-text`]:{[i("text-color-hover")]:s("text-color"),[i("text-color-active")]:s("text-color")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i("text-color")]:e.defaultColor,[i("text-color-hover")]:e.defaultHoverColor,[i("text-color-active")]:e.defaultActiveColor,[i("bg-color-container")]:e.defaultBg,[i("bg-color-hover")]:e.defaultHoverBg,[i("bg-color-active")]:e.defaultActiveBg},[`&${t}-variant-text`]:{[i("text-color")]:e.textTextColor,[i("text-color-hover")]:e.textTextHoverColor,[i("text-color-active")]:e.textTextActiveColor,[i("bg-color-hover")]:e.textHoverBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i("text-color")]:e.defaultGhostColor,[i("border-color")]:e.defaultGhostBorderColor}}}},jo.map(a=>{let c=e[`${a}6`],l=e[`${a}1`],d=e[`${a}Hover`],u=e[`${a}2`],m=e[`${a}3`],f=e[`${a}Active`],g=e[`${a}ShadowColor`];return{[`&${t}-color-${a}`]:{[i("color-base")]:c,[i("color-hover")]:d,[i("color-active")]:f,[i("color-light")]:l,[i("color-light-hover")]:u,[i("color-light-active")]:m,[i("shadow")]:g}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",borderColor:e.colorBorderDisabled,background:s("bg-color-disabled"),color:e.colorTextDisabled,boxShadow:"none"}},{[`&${t}-background-ghost`]:{[i("bg-color")]:e.ghostBg,[i("bg-color-hover")]:e.ghostBg,[i("bg-color-active")]:e.ghostBg,[i("shadow")]:"none",[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i("bg-color-hover")]:e.ghostBg,[i("bg-color-active")]:e.ghostBg}}}]}},S$=cD;var dD=e=>{let{componentCls:t,iconCls:o,fontWeight:n,opacityLoading:r,motionDurationSlow:i,motionEaseInOut:s,iconGap:a,calc:c}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:a,alignItems:"center",justifyContent:"center",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",...oi(),"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:ca(),[`${t}-icon`]:{display:"inline-flex",alignItems:"center",[o]:{verticalAlign:"middle","&:before":{content:'"\\a0"',display:"inline-block",width:0}}},"> a":{color:"currentColor"},"&:not(:disabled)":ln(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${o})`]:{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(l=>`${l} ${i} ${s}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start, &-appear-prepare, &-enter-prepare":{marginInlineEnd:c(a).mul(-1).equal(),opacity:0},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:c(a).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start, &-appear-prepare, &-enter-prepare":{marginInlineStart:c(a).mul(-1).equal(),opacity:0},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:c(a).mul(-1).equal()}}}}}},uD=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),Tb=(e,t="")=>{let{componentCls:o,controlHeight:n,fontSize:r,borderRadius:i,buttonPaddingHorizontal:s,iconCls:a,buttonPaddingVertical:c,buttonIconOnlyFontSize:l}=e;return[{[t]:{fontSize:r,height:n,padding:`${q(c)} ${q(s)}`,borderRadius:i,[`&${o}-icon-only`]:{width:n,[a]:{fontSize:l}}}},{[`${o}${o}-circle${t}`]:uD(e)},{[`${o}${o}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${o}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},mD=e=>{let t=Fe(e,{fontSize:e.contentFontSize});return Tb(t,e.componentCls)},pD=e=>{let t=Fe(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Tb(t,`${e.componentCls}-sm`)},fD=e=>{let t=Fe(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Tb(t,`${e.componentCls}-lg`)},gD=e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},C$=Ze("Button",e=>{let t=Ep(e);return[dD(t),mD(t),pD(t),fD(t),gD(t),S$(t),l$(t)]},$p,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function hD(e,t,o,n){let{focusElCls:r,focus:i,borderElCls:s}=o,a=s?"> *":"",c=a?` ${a}`:"",l=m=>m.filter(Boolean).map(f=>`&:${f}${c}`).join(","),d=l(["hover",r?`hover${r}`:null]),u=l([i?"focus":null,"active"]);return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{[u]:{zIndex:3},[d]:{zIndex:4},...r?{[`&${r}`]:{zIndex:3}}:{},[`&[disabled] ${a}`]:{zIndex:0}}}}function yD(e,t,o){let{borderElCls:n}=o,r=n?`> ${n}`:"";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 hs(e,t={focus:!0}){let{componentCls:o}=e,{componentCls:n}=t,r=n||o,i=`${r}-compact`;return{[i]:{...hD(e,i,t,r),...yD(r,i,t)}}}function bD(e,t,o){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${o}-status-success)`]:{zIndex:2},"&-item":{"&:focus,&:active":{zIndex:3},"&:hover":{zIndex:4},"&[disabled]":{zIndex:0}}}}function xD(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function w$(e){let t=`${e.componentCls}-compact-vertical`;return{[t]:{...bD(e,t,e.componentCls),...xD(e.componentCls,t)}}}var vD=e=>{let{antCls:t,componentCls:o,lineWidth:n,calc:r,colorBgContainer:i}=e,s=`${o}-variant-solid:not([disabled])`,a=r(n).mul(-1).equal(),[c,l]=qt(t,"btn"),d=u=>({[`${o}-compact${u?"-vertical":""}-item`]:{[c("compact-connect-border-color")]:l("bg-color-hover"),[`&${s}`]:{transition:"none",[`& + ${s}:before`]:[{position:"absolute",backgroundColor:l("compact-connect-border-color"),content:'""'},u?{top:a,insetInline:a,height:n}:{insetBlock:a,insetInlineStart:a,width:n}],"&:hover:before":{display:"none"}}}});return[d(),d(!0),{[`${s}${o}-color-default`]:{[c("compact-connect-border-color")]:`color-mix(in srgb, ${l("bg-color-hover")} 75%, ${i})`}}]},R$=Jc(["Button","compact"],e=>{let t=Ep(e);return[hs(t),w$(t),vD(t)]},$p);function SD(e){if(at(e)){let t=e?.delay;return t=Ko(t)?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}var CD={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},wD=Jt.default.forwardRef((e,t)=>{let{_skipSemantic:o,loading:n=!1,prefixCls:r,color:i,variant:s,type:a,danger:c=!1,shape:l,size:d,disabled:u,className:m,rootClassName:f,children:g,icon:p,iconPosition:h,iconPlacement:y,ghost:x=!1,block:b=!1,htmlType:S="button",classNames:v,styles:C,style:R,autoInsertSpace:w,autoFocus:I,...P}=e,N=co(g),E=a||"default",{getPrefixCls:O,direction:L,autoInsertSpace:k,className:z,style:_,classNames:T,styles:D,loadingIcon:F,shape:G,color:H,variant:W}=Ye("button"),X=l||G||"default",[B,j]=(0,Jt.useMemo)(()=>{if(i&&s)return[i,s];if(a||c){let _e=CD[E]||[];return c?["danger",_e[1]]:_e}return s==="solid"?["primary",s]:H&&W?[H,W]:W==="solid"?["primary",W]:["default","outlined"]},[i,s,a,c,H,W,E]),[U,Z]=(0,Jt.useMemo)(()=>x&&j==="solid"?[B,"outlined"]:[B,j],[B,j,x]),Y=U==="danger",K=Y?"dangerous":U,V=w??k??!0,A=O("btn",r),[ee,Q]=C$(A),te=(0,Jt.useContext)(zo),le=u??te,re=(0,Jt.useContext)(hb),ie=(0,Jt.useMemo)(()=>SD(n),[n]),[Se,de]=Eu(ie.loading),[Ee,ae]=(0,Jt.useState)(!1),Ne=(0,Jt.useRef)(null),he=bo(t,Ne),ne=N.length===1&&!p&&!hp(Z),fe=(0,Jt.useRef)(!0);Jt.default.useEffect(()=>(fe.current=!1,()=>{fe.current=!0}),[]),it(()=>{ie.delay>0?de(!0,{ms:ie.delay}):de(ie.loading,!0)},[ie.delay,ie.loading]),(0,Jt.useEffect)(()=>{if(!Ne.current||!V)return;let _e=Ne.current.textContent||"";ne&&fp(_e)?Ee||ae(!0):Ee&&ae(!1)}),(0,Jt.useEffect)(()=>{I&&Ne.current?.focus()},[]);let ce=Jt.default.useCallback(_e=>{if(Se||le){_e.preventDefault();return}e.onClick?.(("href"in e,_e))},[e.onClick,Se,le]),{compactSize:we,compactItemClassnames:Le}=kn(A,L),Ce=Xt(_e=>d??we??re??_e),pe=Se?"loading":p,ue=y??h??"start",se=Ke(P,["navigate"]),ve={...e,type:E,color:U,variant:Z,danger:Y,shape:X,size:Ce,disabled:le,loading:Se,iconPlacement:ue},$e=De(_),Pe=De(R),[Ge,qe]=et([o?void 0:T,v],[o?void 0:D,$e,C,Pe],{props:ve}),mt=$(A,ee,Q,{[`${A}-${X}`]:X!=="default"&&X!=="square"&&X,[`${A}-${E}`]:E,[`${A}-dangerous`]:c,[`${A}-color-${K}`]:K,[`${A}-variant-${Z}`]:Z,[`${A}-lg`]:Ce==="large",[`${A}-sm`]:Ce==="small",[`${A}-icon-only`]:!g&&g!==0&&!!pe,[`${A}-background-ghost`]:x&&!hp(Z),[`${A}-loading`]:Se,[`${A}-two-chinese-chars`]:Ee&&V&&!Se,[`${A}-block`]:b,[`${A}-rtl`]:L==="rtl",[`${A}-icon-end`]:ue==="end"},Le,m,f,z,Ge.root),Qe={className:Ge.icon,style:qe.icon},$t=_e=>Jt.default.createElement(xp,{prefixCls:A,...Qe},_e),wt=Jt.default.createElement(z1,{existIcon:!!p,prefixCls:A,loading:Se,mount:fe.current,...Qe}),gt=at(n)&&n.icon||F,ht;p&&!Se?ht=$t(p):n&>?ht=$t(gt):ht=wt;let yt=lo(g)?D1(g,ne&&V,qe.content,Ge.content):null;if(se.href!==void 0)return Jt.default.createElement("a",{...se,className:$(mt,{[`${A}-disabled`]:le}),href:le?void 0:se.href,style:qe.root,onClick:ce,ref:he,tabIndex:le?-1:0,"aria-disabled":le},ht,yt);let Rt=Jt.default.createElement("button",{...P,type:S,className:mt,style:qe.root,onClick:ce,disabled:le,ref:he},ht,yt,Le&&Jt.default.createElement(R$,{prefixCls:A}));return hp(Z)||(Rt=Jt.default.createElement(vl,{component:"Button",disabled:Se},Rt)),Rt}),Mb=wD;Mb.Group=k1;Mb.__ANT_BUTTON=!0;var ni=Mb;var nd=ni;var dn=M(require("react"));var Ab=M(require("react")),ha=require("react");function Ob(){return Ob=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Ob.apply(this,arguments)}var RD=(0,ha.forwardRef)((e,t)=>{let{prefixCls:o="rc-checkbox",className:n,style:r,checked:i,disabled:s,defaultChecked:a=!1,type:c="checkbox",title:l,onChange:d,...u}=e,m=(0,ha.useRef)(null),f=(0,ha.useRef)(null),[g,p]=st(a,i);(0,ha.useImperativeHandle)(t,()=>({focus:x=>{m.current?.focus(x)},blur:()=>{m.current?.blur()},input:m.current,nativeElement:f.current}));let h=$(o,n,{[`${o}-checked`]:g,[`${o}-disabled`]:s}),y=x=>{s||("checked"in e||p(x.target.checked),d?.({target:{...e,type:c,checked:x.target.checked},stopPropagation(){x.stopPropagation()},preventDefault(){x.preventDefault()},nativeEvent:x.nativeEvent}))};return Ab.createElement("span",{className:h,title:l,style:r,ref:f},Ab.createElement("input",Ob({},u,{className:`${o}-input`,ref:m,onChange:y,disabled:s,checked:!!g,type:c})))}),E$=RD;var ED=e=>`${e}-css-var`,oo=ED;var Mi=M(require("react"));var cI=M(require("react"));var Sn=M(require("react"));var $$=M(require("react")),Dr="RC_FORM_INTERNAL_HOOKS",Dt=()=>{Kt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},$D=$$.createContext({getFieldValue:Dt,getFieldsValue:Dt,getFieldError:Dt,getFieldWarning:Dt,getFieldsError:Dt,isFieldsTouched:Dt,isFieldTouched:Dt,isFieldValidating:Dt,isFieldsValidating:Dt,resetFields:Dt,setFields:Dt,setFieldValue:Dt,setFieldsValue:Dt,validateFields:Dt,submit:Dt,getInternalHooks:()=>(Dt(),{dispatch:Dt,initEntityValue:Dt,registerField:Dt,useSubscribe:Dt,setInitialValues:Dt,destroyForm:Dt,setCallbacks:Dt,registerWatch:Dt,getFields:Dt,setValidateMessages:Dt,setPreserve:Dt,getInitialValue:Dt})}),_r=$D;var I$=M(require("react")),ID=I$.createContext(null),ys=ID;function rd(e){return e==null?[]:Array.isArray(e)?e:[e]}function N$(e){return e&&!!e._init}function Ip(){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",tel:"%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(){let e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Np=Ip();var ND=/%[sdj%]/g,T$=()=>{};typeof process<"u"&&process.env;function Pp(e){if(!e||!e.length)return null;let t={};return e.forEach(o=>{let n=o.field;t[n]=t[n]||[],t[n].push(o)}),t}function Eo(e,...t){let o=0,n=t.length;return typeof e=="function"?e.apply(null,t):typeof e=="string"?e.replace(ND,i=>{if(i==="%%")return"%";if(o>=n)return i;switch(i){case"%s":return String(t[o++]);case"%d":return Number(t[o++]);case"%j":try{return JSON.stringify(t[o++])}catch{return"[Circular]"}break;default:return i}}):e}function PD(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function Ct(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||PD(t)&&typeof e=="string"&&!e)}function TD(e,t,o){let n=[],r=0,i=e.length;function s(a){n.push(...a||[]),r++,r===i&&o(n)}e.forEach(a=>{t(a,s)})}function P$(e,t,o){let n=0,r=e.length;function i(s){if(s&&s.length){o(s);return}let a=n;n=n+1,a<r?t(e[a],i):o([])}i([])}function MD(e){let t=[];return Object.keys(e).forEach(o=>{t.push(...e[o]||[])}),t}var Tp=class extends Error{errors;fields;constructor(t,o){super("Async Validation Error"),this.errors=t,this.fields=o}};function M$(e,t,o,n,r){if(t.first){let u=new Promise((m,f)=>{let g=h=>(n(h),h.length?f(new Tp(h,Pp(h))):m(r)),p=MD(e);P$(p,o,g)});return u.catch(m=>m),u}let i=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),a=s.length,c=0,l=[],d=new Promise((u,m)=>{let f=g=>{if(l.push.apply(l,g),c++,c===a)return n(l),l.length?m(new Tp(l,Pp(l))):u(r)};s.length||(n(l),u(r)),s.forEach(g=>{let p=e[g];i.indexOf(g)!==-1?P$(p,o,f):TD(p,o,f)})});return d.catch(u=>u),d}function OD(e){return!!(e&&e.message!==void 0)}function AD(e,t){let o=e;for(let n=0;n<t.length;n++){if(o==null)return o;o=o[t[n]]}return o}function kb(e,t){return o=>{let n;return e.fullFields?n=AD(t,e.fullFields):n=t[o.field||e.fullField],OD(o)?(o.field=o.field||e.fullField,o.fieldValue=n,o):{message:typeof o=="function"?o():o,fieldValue:n,field:o.field||e.fullField}}}function Lb(e,t){if(t){for(let o in t)if(t.hasOwnProperty(o)){let n=t[o];typeof n=="object"&&typeof e[o]=="object"?e[o]={...e[o],...n}:e[o]=n}}return e}var El="enum",kD=(e,t,o,n,r)=>{e[El]=Array.isArray(e[El])?e[El]:[],e[El].indexOf(t)===-1&&n.push(Eo(r.messages[El],e.fullField,e[El].join(", ")))},O$=kD;var LD=(e,t,o,n,r)=>{e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||n.push(Eo(r.messages.pattern.mismatch,e.fullField,t,e.pattern))):typeof e.pattern=="string"&&(new RegExp(e.pattern).test(t)||n.push(Eo(r.messages.pattern.mismatch,e.fullField,t,e.pattern))))},A$=LD;var DD=(e,t,o,n,r)=>{let i=typeof e.len=="number",s=typeof e.min=="number",a=typeof e.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=t,d=null,u=typeof t=="number",m=typeof t=="string",f=Array.isArray(t);if(u?d="number":m?d="string":f&&(d="array"),!d)return!1;f&&(l=t.length),m&&(l=t.replace(c,"_").length),i?l!==e.len&&n.push(Eo(r.messages[d].len,e.fullField,e.len)):s&&!a&&l<e.min?n.push(Eo(r.messages[d].min,e.fullField,e.min)):a&&!s&&l>e.max?n.push(Eo(r.messages[d].max,e.fullField,e.max)):s&&a&&(l<e.min||l>e.max)&&n.push(Eo(r.messages[d].range,e.fullField,e.min,e.max))},k$=DD;var _D=(e,t,o,n,r,i)=>{e.required&&(!o.hasOwnProperty(e.field)||Ct(t,i||e.type))&&n.push(Eo(r.messages.required,e.fullField))},Mp=_D;var Op,L$=()=>{if(Op)return Op;let e="[a-fA-F\\d:]",t=v=>v&&v.includeBoundaries?`(?:(?<=\\s|^)(?=${e})|(?<=${e})(?=\\s|$))`:"",o="(?: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}",n="[a-fA-F\\d]{1,4}",s=`(?:${[`(?:${n}:){7}(?:${n}|:)`,`(?:${n}:){6}(?:${o}|:${n}|:)`,`(?:${n}:){5}(?::${o}|(?::${n}){1,2}|:)`,`(?:${n}:){4}(?:(?::${n}){0,1}:${o}|(?::${n}){1,3}|:)`,`(?:${n}:){3}(?:(?::${n}){0,2}:${o}|(?::${n}){1,4}|:)`,`(?:${n}:){2}(?:(?::${n}){0,3}:${o}|(?::${n}){1,5}|:)`,`(?:${n}:){1}(?:(?::${n}){0,4}:${o}|(?::${n}){1,6}|:)`,`(?::(?:(?::${n}){0,5}:${o}|(?::${n}){1,7}|:))`].join("|")})(?:%[0-9a-zA-Z]{1,})?`,a=new RegExp(`(?:^${o}$)|(?:^${s}$)`),c=new RegExp(`^${o}$`),l=new RegExp(`^${s}$`),d=v=>v&&v.exact?a:new RegExp(`(?:${t(v)}${o}${t(v)})|(?:${t(v)}${s}${t(v)})`,"g");d.v4=v=>v&&v.exact?c:new RegExp(`${t(v)}${o}${t(v)}`,"g"),d.v6=v=>v&&v.exact?l:new RegExp(`${t(v)}${s}${t(v)}`,"g");let u="(?:(?:[a-z]+:)?//)",m="(?:\\S+(?::\\S*)?@)?",f=d.v4().source,g=d.v6().source,S=`(?:${u}|www\\.)${m}(?:localhost|${f}|${g}|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?`;return Op=new RegExp(`(?:^${S}$)`,"i"),Op};var Db={email:/^(([^<>()\[\]\\.,;:\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,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},id={integer(e){return id.number(e)&&parseInt(e,10)===e},float(e){return id.number(e)&&!id.integer(e)},array(e){return Array.isArray(e)},regexp(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number(e){return isNaN(e)?!1:typeof e=="number"},object(e){return typeof e=="object"&&!id.array(e)},method(e){return typeof e=="function"},email(e){return typeof e=="string"&&e.length<=320&&!!e.match(Db.email)},tel(e){return typeof e=="string"&&e.length<=32&&!!e.match(Db.tel)},url(e){return typeof e=="string"&&e.length<=2048&&!!e.match(L$())},hex(e){return typeof e=="string"&&!!e.match(Db.hex)}},FD=(e,t,o,n,r)=>{if(e.required&&t===void 0){Mp(e,t,o,n,r);return}let i=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],s=e.type;i.indexOf(s)>-1?id[s](t)||n.push(Eo(r.messages.types[s],e.fullField,e.type)):s&&typeof t!==e.type&&n.push(Eo(r.messages.types[s],e.fullField,e.type))},D$=FD;var zD=(e,t,o,n,r)=>{(/^\s+$/.test(t)||t==="")&&n.push(Eo(r.messages.whitespace,e.fullField))},_$=zD;var We={required:Mp,whitespace:_$,type:D$,range:k$,enum:O$,pattern:A$};var BD=(e,t,o,n,r)=>{let i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(Ct(t)&&!e.required)return o();We.required(e,t,n,i,r)}o(i)},F$=BD;var HD=(e,t,o,n,r)=>{let i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(t==null&&!e.required)return o();We.required(e,t,n,i,r,"array"),t!=null&&(We.type(e,t,n,i,r),We.range(e,t,n,i,r))}o(i)},z$=HD;var VD=(e,t,o,n,r)=>{let i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(Ct(t)&&!e.required)return o();We.required(e,t,n,i,r),t!==void 0&&We.type(e,t,n,i,r)}o(i)},B$=VD;var WD=(e,t,o,n,r)=>{let i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(Ct(t,"date")&&!e.required)return o();if(We.required(e,t,n,i,r),!Ct(t,"date")){let a;t instanceof Date?a=t:a=new Date(t),We.type(e,a,n,i,r),a&&We.range(e,a.getTime(),n,i,r)}}o(i)},H$=WD;var jD="enum",UD=(e,t,o,n,r)=>{let i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(Ct(t)&&!e.required)return o();We.required(e,t,n,i,r),t!==void 0&&We[jD](e,t,n,i,r)}o(i)},V$=UD;var KD=(e,t,o,n,r)=>{let i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(Ct(t)&&!e.required)return o();We.required(e,t,n,i,r),t!==void 0&&(We.type(e,t,n,i,r),We.range(e,t,n,i,r))}o(i)},W$=KD;var GD=(e,t,o,n,r)=>{let i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(Ct(t)&&!e.required)return o();We.required(e,t,n,i,r),t!==void 0&&(We.type(e,t,n,i,r),We.range(e,t,n,i,r))}o(i)},j$=GD;var qD=(e,t,o,n,r)=>{let i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(Ct(t)&&!e.required)return o();We.required(e,t,n,i,r),t!==void 0&&We.type(e,t,n,i,r)}o(i)},U$=qD;var XD=(e,t,o,n,r)=>{let i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(t===""&&(t=void 0),Ct(t)&&!e.required)return o();We.required(e,t,n,i,r),t!==void 0&&(We.type(e,t,n,i,r),We.range(e,t,n,i,r))}o(i)},K$=XD;var YD=(e,t,o,n,r)=>{let i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(Ct(t)&&!e.required)return o();We.required(e,t,n,i,r),t!==void 0&&We.type(e,t,n,i,r)}o(i)},G$=YD;var ZD=(e,t,o,n,r)=>{let i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(Ct(t,"string")&&!e.required)return o();We.required(e,t,n,i,r),Ct(t,"string")||We.pattern(e,t,n,i,r)}o(i)},q$=ZD;var QD=(e,t,o,n,r)=>{let i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(Ct(t)&&!e.required)return o();We.required(e,t,n,i,r),Ct(t)||We.type(e,t,n,i,r)}o(i)},X$=QD;var JD=(e,t,o,n,r)=>{let i=[],s=Array.isArray(t)?"array":typeof t;We.required(e,t,n,i,r,s),o(i)},Y$=JD;var e_=(e,t,o,n,r)=>{let i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(Ct(t,"string")&&!e.required)return o();We.required(e,t,n,i,r,"string"),Ct(t,"string")||(We.type(e,t,n,i,r),We.range(e,t,n,i,r),We.pattern(e,t,n,i,r),e.whitespace===!0&&We.whitespace(e,t,n,i,r))}o(i)},Z$=e_;var t_=(e,t,o,n,r)=>{let i=e.type,s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(Ct(t,i)&&!e.required)return o();We.required(e,t,n,s,r,i),Ct(t,i)||We.type(e,t,n,s,r)}o(s)},sd=t_;var $l={string:Z$,method:U$,number:K$,boolean:B$,regexp:X$,integer:j$,float:W$,array:z$,object:G$,enum:V$,pattern:q$,date:H$,url:sd,hex:sd,email:sd,tel:sd,required:Y$,any:F$};var _b=class e{static register=function(o,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");$l[o]=n};static warning=T$;static messages=Np;static validators=$l;rules=null;_messages=Np;constructor(t){this.define(t)}define(t){if(!t)throw new Error("Cannot configure a schema with no rules");if(typeof t!="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={},Object.keys(t).forEach(o=>{let n=t[o];this.rules[o]=Array.isArray(n)?n:[n]})}messages(t){return t&&(this._messages=Lb(Ip(),t)),this._messages}validate(t,o={},n=()=>{}){let r=t,i=o,s=n;if(typeof i=="function"&&(s=i,i={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(null,r),Promise.resolve(r);function a(u){let m=[],f={};function g(p){Array.isArray(p)?m=m.concat(...p):m.push(p)}for(let p=0;p<u.length;p++)g(u[p]);m.length?(f=Pp(m),s(m,f)):s(null,r)}if(i.messages){let u=this.messages();u===Np&&(u=Ip()),Lb(u,i.messages),i.messages=u}else i.messages=this.messages();let c={};(i.keys||Object.keys(this.rules)).forEach(u=>{let m=this.rules[u],f=r[u];m.forEach(g=>{let p=g;typeof p.transform=="function"&&(r===t&&(r={...r}),f=r[u]=p.transform(f),f!=null&&(p.type=p.type||(Array.isArray(f)?"array":typeof f))),typeof p=="function"?p={validator:p}:p={...p},p.validator=this.getValidationMethod(p),p.validator&&(p.field=u,p.fullField=p.fullField||u,p.type=this.getType(p),c[u]=c[u]||[],c[u].push({rule:p,value:f,source:r,field:u}))})});let d={};return M$(c,i,(u,m)=>{let f=u.rule,g=(f.type==="object"||f.type==="array")&&(typeof f.fields=="object"||typeof f.defaultField=="object");g=g&&(f.required||!f.required&&u.value),f.field=u.field;function p(x,b){return{...b,fullField:`${f.fullField}.${x}`,fullFields:f.fullFields?[...f.fullFields,x]:[x]}}function h(x=[]){let b=Array.isArray(x)?x:[x];!i.suppressWarning&&b.length&&e.warning("async-validator:",b),b.length&&f.message!==void 0&&f.message!==null&&(b=[].concat(f.message));let S=b.map(kb(f,r));if(i.first&&S.length)return d[f.field]=1,m(S);if(!g)m(S);else{if(f.required&&!u.value)return f.message!==void 0?S=[].concat(f.message).map(kb(f,r)):i.error&&(S=[i.error(f,Eo(i.messages.required,f.field))]),m(S);let v={};f.defaultField&&Object.keys(u.value).map(w=>{v[w]=f.defaultField}),v={...v,...u.rule.fields};let C={};Object.keys(v).forEach(w=>{let I=v[w],P=Array.isArray(I)?I:[I];C[w]=P.map(p.bind(null,w))});let R=new e(C);R.messages(i.messages),u.rule.options&&(u.rule.options.messages=i.messages,u.rule.options.error=i.error),R.validate(u.value,u.rule.options||i,w=>{let I=[];S&&S.length&&I.push(...S),w&&w.length&&I.push(...w),m(I.length?I:null)})}}let y;if(f.asyncValidator)y=f.asyncValidator(f,u.value,h,u.source,i);else if(f.validator){try{y=f.validator(f,u.value,h,u.source,i)}catch(x){console.error?.(x),i.suppressValidatorError||setTimeout(()=>{throw x},0),h(x.message)}y===!0?h():y===!1?h(typeof f.message=="function"?f.message(f.fullField||f.field):f.message||`${f.fullField||f.field} fails`):y instanceof Array?h(y):y instanceof Error&&h(y.message)}y&&y.then&&y.then(()=>h(),x=>h(x))},u=>{a(u)},r)}getType(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!$l.hasOwnProperty(t.type))throw new Error(Eo("Unknown rule type %s",t.type));return t.type||"string"}getValidationMethod(t){if(typeof t.validator=="function")return t.validator;let o=Object.keys(t),n=o.indexOf("message");return n!==-1&&o.splice(n,1),o.length===1&&o[0]==="required"?$l.required:$l[this.getType(t)]||void 0}},Q$=_b;var kp=M(require("react"));var Ln="'${name}' is not a valid ${type}",Ap={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:Ln,method:Ln,array:Ln,object:Ln,number:Ln,date:Ln,boolean:Ln,integer:Ln,float:Ln,regexp:Ln,email:Ln,tel:Ln,url:Ln,hex:Ln},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}"}};var J$=Q$;function o_(e,t){return e.replace(/\\?\$\{\w+\}/g,o=>{if(o.startsWith("\\"))return o.slice(1);let n=o.slice(2,-1);return t[n]})}var eI="CODE_LOGIC_ERROR";async function Fb(e,t,o,n,r){let i={...o};if(delete i.ruleIndex,J$.warning=()=>{},i.validator){let m=i.validator;i.validator=(...f)=>{try{return m(...f)}catch(g){return console.error(g),Promise.reject(eI)}}}let s=null;i&&i.type==="array"&&i.defaultField&&(s=i.defaultField,delete i.defaultField);let a=new J$({[e]:[i]}),c=Yr(Ap,n.validateMessages);a.messages(c);let l=[];try{await Promise.resolve(a.validate({[e]:t},{...n}))}catch(m){m.errors&&(l=m.errors.map(({message:f},g)=>{let p=f===eI?c.default:f;return kp.isValidElement(p)?kp.cloneElement(p,{key:`error_${g}`}):p}))}if(!l.length&&s&&Array.isArray(t)&&t.length>0)return(await Promise.all(t.map((f,g)=>Fb(`${e}.${g}`,f,s,n,r)))).reduce((f,g)=>[...f,...g],[]);let d={...o,name:e,enum:(o.enum||[]).join(", "),...r};return l.map(m=>typeof m=="string"?o_(m,d):m)}function tI(e,t,o,n,r,i){let s=e.join("."),a=o.map((l,d)=>{let u=l.validator,m={...l,ruleIndex:d};return u&&(m.validator=(f,g,p)=>{let h=!1,x=u(f,g,(...b)=>{Promise.resolve().then(()=>{Kt(!h,"Your validator function has already return a promise. `callback` will be ignored."),h||p(...b)})});h=x&&typeof x.then=="function"&&typeof x.catch=="function",Kt(h,"`callback` is deprecated. Please return a promise instead."),h&&x.then(()=>{p()}).catch(b=>{p(b||" ")})}),m}).sort(({warningOnly:l,ruleIndex:d},{warningOnly:u,ruleIndex:m})=>!!l==!!u?d-m:l?1:-1),c;if(r===!0)c=new Promise(async(l,d)=>{for(let u=0;u<a.length;u+=1){let m=a[u],f=await Fb(s,t,m,n,i);if(f.length){d([{errors:f,rule:m}]);return}}l([])});else{let l=a.map(d=>Fb(s,t,d,n,i).then(u=>({errors:u,rule:d})));c=(r?r_(l):n_(l)).then(d=>Promise.reject(d))}return c.catch(l=>l),c}async function n_(e){return Promise.all(e).then(t=>[].concat(...t))}async function r_(e){let t=0;return new Promise(o=>{e.forEach(n=>{n.then(r=>{r.errors.length&&o([r]),t+=1,t===e.length&&o([])})})})}function Yt(e){return rd(e)}function zb(e,t){let o={};return t.forEach(n=>{let r=Oo(e,n);o=Uo(o,n,r)}),o}function bs(e,t,o=!1){return e&&e.some(n=>Il(t,n,o))}function Il(e,t,o=!1){return!e||!t||!o&&e.length!==t.length?!1:t.every((n,r)=>e[r]===n)}function oI(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||typeof e!="object"||typeof t!="object")return!1;let o=Object.keys(e),n=Object.keys(t);return[...new Set([...o,...n])].every(i=>{let s=e[i],a=t[i];return typeof s=="function"&&typeof a=="function"?!0:s===a})}function nI(e,...t){let o=t[0];return o&&o.target&&typeof o.target=="object"&&e in o.target?o.target[e]:o}function Bb(e,t,o){let{length:n}=e;if(t<0||t>=n||o<0||o>=n)return e;let r=e[t],i=t-o;return i>0?[...e.slice(0,o),r,...e.slice(o,t),...e.slice(t+1,n)]:i<0?[...e.slice(0,t),...e.slice(t+1,o+1),r,...e.slice(o+1,n)]:e}var Hb=e=>{let t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},ad=class{namePathList=[];taskId=0;watcherList=new Set;form;constructor(t){this.form=t}register(t){return this.watcherList.add(t),()=>{this.watcherList.delete(t)}}notify(t){t.forEach(o=>{this.namePathList.every(n=>!Il(n,o))&&this.namePathList.push(o)}),this.doBatch()}doBatch(){this.taskId+=1;let t=this.taskId;Hb(()=>{if(t===this.taskId&&this.watcherList.size){let o=this.form.getForm(),n=o.getFieldsValue(),r=o.getFieldsValue(!0);this.watcherList.forEach(i=>{i(n,r,this.namePathList)}),this.namePathList=[]}})}};async function Vb(){return new Promise(e=>{Hb(()=>{He(()=>{e()})})})}function jb(){return jb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},jb.apply(this,arguments)}var ya=[],ld=[];function Wb(e,t,o,n,r,i){return typeof e=="function"?e(t,o,"source"in i?{source:i.source}:{}):n!==r}var Ub=class extends Sn.PureComponent{static contextType=_r;state={resetCount:0};cancelRegisterFunc=null;mounted=!1;touched=!1;dirty=!1;validatePromise;prevValidating;errors=ya;warnings=ld;constructor(t){if(super(t),t.fieldContext){let{getInternalHooks:o}=t.fieldContext,{initEntityValue:n}=o(Dr);n(this)}}componentDidMount(){let{shouldUpdate:t,fieldContext:o}=this.props;if(this.mounted=!0,o){let{getInternalHooks:n}=o,{registerField:r}=n(Dr);this.cancelRegisterFunc=r(this)}t===!0&&this.reRender()}componentWillUnmount(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}cancelRegister=()=>{let{preserve:t,isListField:o,name:n}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(o,t,Yt(n)),this.cancelRegisterFunc=null};getNamePath=()=>{let{name:t,fieldContext:o}=this.props,{prefixName:n=[]}=o;return t!==void 0?[...n,...t]:[]};getRules=()=>{let{rules:t=[],fieldContext:o}=this.props;return t.map(n=>typeof n=="function"?n(o):n)};reRender(){this.mounted&&this.forceUpdate()}refresh=()=>{this.mounted&&this.setState(({resetCount:t})=>({resetCount:t+1}))};metaCache=null;triggerMetaEvent=t=>{let{onMetaChange:o}=this.props;if(o){let n={...this.getMeta(),destroy:t};Mr(this.metaCache,n)||o(n),this.metaCache=n}else this.metaCache=null};onStoreChange=(t,o,n)=>{let{shouldUpdate:r,dependencies:i=[],onReset:s}=this.props,{store:a}=n,c=this.getNamePath(),l=this.getValue(t),d=this.getValue(a),u=o&&bs(o,c);switch(n.type==="valueUpdate"&&n.source==="external"&&!Mr(l,d)&&(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=ya,this.warnings=ld,this.triggerMetaEvent()),n.type){case"reset":if(!o||u){this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=ya,this.warnings=ld,this.triggerMetaEvent(),s?.(),this.refresh();return}break;case"remove":{if(r&&Wb(r,t,a,l,d,n)){this.reRender();return}break}case"setField":{let{data:m}=n;if(u){"touched"in m&&(this.touched=m.touched),"validating"in m&&!("originRCField"in m)&&(this.validatePromise=m.validating?Promise.resolve([]):null),"errors"in m&&(this.errors=m.errors||ya),"warnings"in m&&(this.warnings=m.warnings||ld),this.dirty=!0,this.triggerMetaEvent(),this.reRender();return}else if("value"in m&&bs(o,c,!0)){this.reRender();return}if(r&&!c.length&&Wb(r,t,a,l,d,n)){this.reRender();return}break}case"dependenciesUpdate":{if(i.map(Yt).some(f=>bs(n.relatedFields,f))){this.reRender();return}break}default:if(u||(!i.length||c.length||r)&&Wb(r,t,a,l,d,n)){this.reRender();return}break}r===!0&&this.reRender()};validateRules=t=>{let o=this.getNamePath(),n=this.getValue(),{triggerName:r,validateOnly:i=!1,delayFrame:s}=t||{},a=Promise.resolve().then(async()=>{if(!this.mounted)return[];let{validateFirst:c=!1,messageVariables:l,validateDebounce:d}=this.props;s&&await Vb();let u=this.getRules();if(r&&(u=u.filter(f=>f).filter(f=>{let{validateTrigger:g}=f;return g?rd(g).includes(r):!0})),d&&r&&(await new Promise(f=>{setTimeout(f,d)}),this.validatePromise!==a))return[];let m=tI(o,n,u,t,c,l);return m.catch(f=>f).then((f=ya)=>{if(this.validatePromise===a){this.validatePromise=null;let g=[],p=[];f.forEach?.(({rule:{warningOnly:h},errors:y=ya})=>{h?p.push(...y):g.push(...y)}),this.errors=g,this.warnings=p,this.triggerMetaEvent(),this.reRender()}}),m});return i||(this.validatePromise=a,this.dirty=!0,this.errors=ya,this.warnings=ld,this.triggerMetaEvent(),this.reRender()),a};isFieldValidating=()=>!!this.validatePromise;isFieldTouched=()=>this.touched;isFieldDirty=()=>{if(this.dirty||this.props.initialValue!==void 0)return!0;let{fieldContext:t}=this.props,{getInitialValue:o}=t.getInternalHooks(Dr);return o(this.getNamePath())!==void 0};getErrors=()=>this.errors;getWarnings=()=>this.warnings;isListField=()=>this.props.isListField;isList=()=>this.props.isList;isPreserve=()=>this.props.preserve;getMeta=()=>(this.prevValidating=this.isFieldValidating(),{touched:this.isFieldTouched(),validating:this.prevValidating,errors:this.errors,warnings:this.warnings,name:this.getNamePath(),validated:this.validatePromise===null});getOnlyChild=t=>{if(typeof t=="function"){let n=this.getMeta();return{...this.getOnlyChild(t(this.getControlled(),n,this.props.fieldContext)),isFunction:!0}}let o=co(t);return o.length!==1||!Sn.isValidElement(o[0])?{child:o,isFunction:!1}:{child:o[0],isFunction:!1}};getValue=t=>{let{getFieldsValue:o}=this.props.fieldContext,n=this.getNamePath();return Oo(t||o(!0),n)};getControlled=(t={})=>{let{name:o,trigger:n="onChange",validateTrigger:r,getValueFromEvent:i,normalize:s,valuePropName:a="value",getValueProps:c,fieldContext:l}=this.props,d=r!==void 0?r:l.validateTrigger,u=this.getNamePath(),{getInternalHooks:m,getFieldsValue:f}=l,{dispatch:g}=m(Dr),p=this.getValue(),h=c||(v=>({[a]:v})),y=t[n],x=o!==void 0?h(p):{},b={...t,...x};return b[n]=(...v)=>{this.touched=!0,this.dirty=!0,this.triggerMetaEvent();let C=this.getValue(),R;i?R=i(...v):R=nI(a,...v),s&&(R=s(R,C,f(!0))),R!==C&&g({type:"updateValue",namePath:u,value:R}),y&&y(...v)},rd(d||[]).forEach(v=>{let C=b[v];b[v]=(...R)=>{C&&C(...R);let{rules:w}=this.props;w&&w.length&&g({type:"validateField",namePath:u,triggerName:v})}}),b};render(){let{resetCount:t}=this.state,{children:o}=this.props,{child:n,isFunction:r}=this.getOnlyChild(o),i;return r?i=n:Sn.isValidElement(n)?i=Sn.cloneElement(n,this.getControlled(n.props)):(Kt(!n,"`children` of Field is not validate ReactElement."),i=n),Sn.createElement(Sn.Fragment,{key:t},i)}};function i_({name:e,...t}){let o=Sn.useContext(_r),n=Sn.useContext(ys),r=e!==void 0?Yt(e):void 0,i=t.isListField??!!n,s="keep";return i||(s=`_${(r||[]).join("_")}`),Sn.createElement(Ub,jb({key:s,name:r,isListField:i},t,{fieldContext:o}))}var Lp=i_;var Qn=M(require("react"));function s_({name:e,initialValue:t,children:o,rules:n,validateTrigger:r,isListField:i}){let s=Qn.useContext(_r),a=Qn.useContext(ys),l=Qn.useRef({keys:[],id:0}).current,d=Qn.useMemo(()=>[...Yt(s.prefixName)||[],...Yt(e)],[s.prefixName,e]),u=Qn.useMemo(()=>({...s,prefixName:d}),[s,d]),m=Qn.useMemo(()=>({getKey:g=>{let p=d.length,h=g[p];return[l.keys[h],g.slice(p+1)]}}),[l,d]);if(typeof o!="function")return Kt(!1,"Form.List only accepts function as children."),null;let f=(g,p,{source:h})=>h==="internal"?!1:g!==p;return Qn.createElement(ys.Provider,{value:m},Qn.createElement(_r.Provider,{value:u},Qn.createElement(Lp,{name:[],shouldUpdate:f,rules:n,validateTrigger:r,initialValue:t,isList:!0,isListField:i??!!a},({value:g=[],onChange:p},h)=>{let{getFieldValue:y}=s,x=()=>y(d||[])||[],b={add:(v,C)=>{let R=x();C>=0&&C<=R.length?(l.keys=[...l.keys.slice(0,C),l.id,...l.keys.slice(C)],p([...R.slice(0,C),v,...R.slice(C)])):(l.keys=[...l.keys,l.id],p([...R,v])),l.id+=1},remove:v=>{let C=x(),R=new Set(Array.isArray(v)?v:[v]);R.size<=0||(l.keys=l.keys.filter((w,I)=>!R.has(I)),p(C.filter((w,I)=>!R.has(I))))},move(v,C){if(v===C)return;let R=x();v<0||v>=R.length||C<0||C>=R.length||(l.keys=Bb(l.keys,v,C),p(Bb(R,v,C)))}},S=g||[];return Array.isArray(S)||(S=[]),o(S.map((v,C)=>{let R=l.keys[C];return R===void 0&&(l.keys[C]=l.id,R=l.keys[C],l.id+=1),{name:C,key:R,isListField:!0}}),b,h)})))}var rI=s_;var _p=M(require("react"));function iI(e){let t=!1,o=e.length,n=[];return e.length?new Promise((r,i)=>{e.forEach((s,a)=>{s.catch(c=>(t=!0,c)).then(c=>{o-=1,n[a]=c,!(o>0)&&(t&&i(n),r(n))})})}):Promise.resolve([])}var Kb="__@field_split__";function Dp(e){return e.map(t=>`${typeof t}:${t}`).join(Kb)}var Gb=class{kvs=new Map;set(t,o){this.kvs.set(Dp(t),o)}get(t){return this.kvs.get(Dp(t))}getAsPrefix(t){let o=Dp(t),n=o+Kb,r=[],i=this.kvs.get(o);return i!==void 0&&r.push(i),this.kvs.forEach((s,a)=>{a.startsWith(n)&&r.push(s)}),r}update(t,o){let n=this.get(t),r=o(n);r?this.set(t,r):this.delete(t)}delete(t){this.kvs.delete(Dp(t))}map(t){return[...this.kvs.entries()].map(([o,n])=>{let r=o.split(Kb);return t({key:r.map(i=>{let[,s,a]=i.match(/^([^:]*):(.*)$/);return s==="number"?Number(a):a}),value:n})})}toJSON(){let t={};return this.map(({key:o,value:n})=>(t[o.join(".")]=n,null)),t}},ba=Gb;var qb=class{formHooked=!1;forceRootUpdate;subscribable=!0;store={};fieldEntities=[];initialValues={};callbacks={};validateMessages=null;preserve=null;lastValidatePromise=null;watcherCenter=new ad(this);constructor(t){this.forceRootUpdate=t}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=t=>t===Dr?(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}):(Kt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null);useSubscribe=t=>{this.subscribable=t};prevWithoutPreserves=null;setInitialValues=(t,o)=>{if(this.initialValues=t||{},o){let n=Yr(t,this.store);this.prevWithoutPreserves?.map(({key:r})=>{n=Uo(n,r,Oo(t,r))}),this.prevWithoutPreserves=null,this.updateStore(n)}};destroyForm=t=>{if(t)this.updateStore({});else{let o=new ba;this.getFieldEntities(!0).forEach(n=>{this.isMergedPreserve(n.isPreserve())||o.set(n.getNamePath(),!0)}),this.prevWithoutPreserves=o}};getInitialValue=t=>{let o=Oo(this.initialValues,t);return t.length?Yr(o):o};setCallbacks=t=>{this.callbacks=t};setValidateMessages=t=>{this.validateMessages=t};setPreserve=t=>{this.preserve=t};registerWatch=t=>this.watcherCenter.register(t);notifyWatch=(t=[])=>{this.watcherCenter.notify(t)};timeoutId=null;warningUnhooked=()=>{};updateStore=t=>{this.store=t};getFieldEntities=(t=!1)=>t?this.fieldEntities.filter(o=>o.getNamePath().length):this.fieldEntities;getFieldsMap=(t=!1)=>{let o=new ba;return this.getFieldEntities(t).forEach(n=>{let r=n.getNamePath();o.set(r,n)}),o};getFieldEntitiesForNamePathList=(t,o=!1)=>{if(!t)return this.getFieldEntities(!0);let n=this.getFieldsMap(!0);return o?t.flatMap(r=>{let i=Yt(r),s=n.getAsPrefix(i);return s.length?s:[{INVALIDATE_NAME_PATH:i}]}):t.map(r=>{let i=Yt(r);return n.get(i)||{INVALIDATE_NAME_PATH:Yt(r)}})};getFieldsValue=(t,o)=>{this.warningUnhooked();let n,r;if(t===!0||Array.isArray(t)?(n=t,r=o):t&&typeof t=="object"&&(r=t.filter),n===!0&&!r)return this.store;let i=this.getFieldEntitiesForNamePathList(Array.isArray(n)?n:null,!0),s=[],a=[];i.forEach(l=>{let d=l.INVALIDATE_NAME_PATH||l.getNamePath();if(l.isList?.()){a.push(d);return}if(!r)s.push(d);else{let u="getMeta"in l?l.getMeta():null;r(u)&&s.push(d)}});let c=zb(this.store,s.map(Yt));return a.forEach(l=>{Oo(c,l)||(c=Uo(c,l,[]))}),c};getFieldValue=t=>{this.warningUnhooked();let o=Yt(t);return Oo(this.store,o)};getFieldsError=t=>(this.warningUnhooked(),this.getFieldEntitiesForNamePathList(t).map((n,r)=>n&&!n.INVALIDATE_NAME_PATH?{name:n.getNamePath(),errors:n.getErrors(),warnings:n.getWarnings()}:{name:Yt(t[r]),errors:[],warnings:[]}));getFieldError=t=>{this.warningUnhooked();let o=Yt(t);return this.getFieldsError([o])[0].errors};getFieldWarning=t=>{this.warningUnhooked();let o=Yt(t);return this.getFieldsError([o])[0].warnings};isFieldsTouched=(...t)=>{this.warningUnhooked();let[o,n]=t,r,i=!1;t.length===0?r=null:t.length===1?Array.isArray(o)?(r=o.map(Yt),i=!1):(r=null,i=o):(r=o.map(Yt),i=n);let s=this.getFieldEntities(!0),a=u=>u.isFieldTouched();if(!r)return i?s.every(u=>a(u)||u.isList()):s.some(a);let c=new ba;r.forEach(u=>{c.set(u,[])}),s.forEach(u=>{let m=u.getNamePath();r.forEach(f=>{f.every((g,p)=>m[p]===g)&&c.update(f,g=>[...g,u])})});let l=u=>u.some(a),d=c.map(({value:u})=>u);return i?d.every(l):d.some(l)};isFieldTouched=t=>(this.warningUnhooked(),this.isFieldsTouched([t]));isFieldsValidating=t=>{this.warningUnhooked();let o=this.getFieldEntities();if(!t)return o.some(r=>r.isFieldValidating());let n=t.map(Yt);return o.some(r=>{let i=r.getNamePath();return bs(n,i)&&r.isFieldValidating()})};isFieldValidating=t=>(this.warningUnhooked(),this.isFieldsValidating([t]));resetWithFieldInitialValue=(t={})=>{let o=new ba,n=this.getFieldEntities(!0);n.forEach(s=>{let{initialValue:a}=s.props,c=s.getNamePath();if(a!==void 0){let l=o.get(c)||new Set;l.add({entity:s,value:a}),o.set(c,l)}});let r=s=>{s.forEach(a=>{let{initialValue:c}=a.props;if(c!==void 0){let l=a.getNamePath();if(this.getInitialValue(l)!==void 0)Kt(!1,`Form already set 'initialValues' with path '${l.join(".")}'. Field can not overwrite it.`);else{let u=o.get(l);if(u&&u.size>1)Kt(!1,`Multiple Field with path '${l.join(".")}' set 'initialValue'. Can not decide which one to pick.`);else if(u){let m=this.getFieldValue(l);!a.isListField()&&(!t.skipExist||m===void 0)&&this.updateStore(Uo(this.store,l,[...u][0].value))}}}})},i;t.entities?i=t.entities:t.namePathList?(i=[],t.namePathList.forEach(s=>{let a=o.get(s);a&&i.push(...[...a].map(c=>c.entity))})):i=n,r(i)};resetFields=t=>{this.warningUnhooked();let o=this.store;if(!t){this.updateStore(Yr(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(o,null,{type:"reset"}),this.notifyWatch();return}let n=t.map(Yt);n.forEach(r=>{let i=this.getInitialValue(r);this.updateStore(Uo(this.store,r,i))}),this.resetWithFieldInitialValue({namePathList:n}),this.notifyObservers(o,n,{type:"reset"}),this.notifyWatch(n)};setFields=t=>{this.warningUnhooked();let o=this.store,n=[];t.forEach(r=>{let{name:i,...s}=r,a=Yt(i);n.push(a),"value"in s&&this.updateStore(Uo(this.store,a,s.value)),this.notifyObservers(o,[a],{type:"setField",data:r})}),this.notifyWatch(n)};getFields=()=>this.getFieldEntities(!0).map(n=>{let r=n.getNamePath(),s={...n.getMeta(),name:r,value:this.getFieldValue(r)};return Object.defineProperty(s,"originRCField",{value:!0}),s});initEntityValue=t=>{let{initialValue:o}=t.props;if(o!==void 0){let n=t.getNamePath();Oo(this.store,n)===void 0&&this.updateStore(Uo(this.store,n,o))}};isMergedPreserve=t=>(t!==void 0?t:this.preserve)??!0;registerField=t=>{this.fieldEntities.push(t);let o=t.getNamePath();if(this.notifyWatch([o]),t.props.initialValue!==void 0){let n=this.store;this.resetWithFieldInitialValue({entities:[t],skipExist:!0}),this.notifyObservers(n,[t.getNamePath()],{type:"valueUpdate",source:"internal"})}return(n,r,i=[])=>{if(this.fieldEntities=this.fieldEntities.filter(s=>s!==t),!this.isMergedPreserve(r)&&(!n||i.length>1)){let s=n?void 0:this.getInitialValue(o);if(o.length&&this.getFieldValue(o)!==s&&this.fieldEntities.every(a=>!Il(a.getNamePath(),o))){let a=this.store;this.updateStore(Uo(a,o,s,!0)),this.notifyObservers(a,[o],{type:"remove"}),this.triggerDependenciesUpdate(a,o)}}this.notifyWatch([o])}};dispatch=t=>{switch(t.type){case"updateValue":{let{namePath:o,value:n}=t;this.updateValue(o,n);break}case"validateField":{let{namePath:o,triggerName:n}=t;this.validateFields([o],{triggerName:n});break}default:}};notifyObservers=(t,o,n)=>{if(this.subscribable){let r={...n,store:this.getFieldsValue(!0)};this.getFieldEntities().forEach(({onStoreChange:i})=>{i(t,o,r)})}else this.forceRootUpdate()};triggerDependenciesUpdate=(t,o)=>{let n=this.getDependencyChildrenFields(o);return n.length&&this.validateFields(n,{delayFrame:!0}),this.notifyObservers(t,n,{type:"dependenciesUpdate",relatedFields:[o,...n]}),n};updateValue=(t,o)=>{let n=Yt(t),r=this.store;this.updateStore(Uo(this.store,n,o)),this.notifyObservers(r,[n],{type:"valueUpdate",source:"internal"}),this.notifyWatch([n]);let i=this.triggerDependenciesUpdate(r,n),{onValuesChange:s}=this.callbacks;if(s){let a=zb(this.store,[n]),c=this.getFieldsValue(),l=Uo(c,n,Oo(a,n));s(a,l)}this.triggerOnFieldsChange([n,...i])};setFieldsValue=t=>{this.warningUnhooked();let o=this.store;if(t){let n=Yr(this.store,t);this.updateStore(n)}this.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),this.notifyWatch()};setFieldValue=(t,o)=>{this.setFields([{name:t,value:o,errors:[],warnings:[],touched:!0}])};getDependencyChildrenFields=t=>{let o=new Set,n=[],r=new ba;this.getFieldEntities().forEach(s=>{let{dependencies:a}=s.props;(a||[]).forEach(c=>{let l=Yt(c);r.update(l,(d=new Set)=>(d.add(s),d))})});let i=s=>{(r.get(s)||new Set).forEach(c=>{if(!o.has(c)){o.add(c);let l=c.getNamePath();c.isFieldDirty()&&l.length&&(n.push(l),i(l))}})};return i(t),n};triggerOnFieldsChange=(t,o)=>{let{onFieldsChange:n}=this.callbacks;if(n){let r=this.getFields();if(o){let s=new ba;o.forEach(({name:a,errors:c})=>{s.set(a,c)}),r.forEach(a=>{a.errors=s.get(a.name)||a.errors})}let i=r.filter(({name:s})=>bs(t,s));i.length&&n(i,r)}};validateFields=(t,o)=>{this.warningUnhooked();let n,r;Array.isArray(t)||typeof t=="string"||typeof o=="string"?(n=t,r=o):r=t;let i=!!n,s=i?n.map(Yt):[],a=[...s],c=[],l=String(Date.now()),d=new Set,{recursive:u,dirty:m}=r||{};this.getFieldEntities(!0).forEach(h=>{let y=h.getNamePath();if(i||((!h.isList()||!s.some(x=>Il(x,y,!0)))&&a.push(y),s.push(y)),!(!h.props.rules||!h.props.rules.length)&&!(m&&!h.isFieldDirty())&&(d.add(y.join(l)),!i||bs(s,y,u))){let x=h.validateRules({validateMessages:{...Ap,...this.validateMessages},...r});c.push(x.then(()=>({name:y,errors:[],warnings:[]})).catch(b=>{let S=[],v=[];return b.forEach?.(({rule:{warningOnly:C},errors:R})=>{C?v.push(...R):S.push(...R)}),S.length?Promise.reject({name:y,errors:S,warnings:v}):{name:y,errors:S,warnings:v}}))}});let f=iI(c);this.lastValidatePromise=f,f.catch(h=>h).then(h=>{let y=h.map(({name:x})=>x);this.notifyObservers(this.store,y,{type:"validateFinish"}),this.triggerOnFieldsChange(y,h)});let g=f.then(()=>this.lastValidatePromise===f?Promise.resolve(this.getFieldsValue(a)):Promise.reject([])).catch(h=>{let y=h.filter(b=>b&&b.errors.length),x=y[0]?.errors?.[0];return Promise.reject({message:x,values:this.getFieldsValue(s),errorFields:y,outOfDate:this.lastValidatePromise!==f})});g.catch(h=>h);let p=s.filter(h=>d.has(h.join(l)));return this.triggerOnFieldsChange(p),g};submit=()=>{this.warningUnhooked(),this.validateFields().then(t=>{let{onFinish:o}=this.callbacks;if(o)try{o(t)}catch(n){console.error(n)}}).catch(t=>{let{onFinishFailed:o}=this.callbacks;o&&o(t)})}};function a_(e){let t=_p.useRef(null),[,o]=_p.useState({});if(!t.current)if(e)t.current=e;else{let n=()=>{o({})},r=new qb(n);t.current=r.getForm()}return[t.current]}var Fp=a_;var Vo=M(require("react"));var xs=M(require("react")),Xb=xs.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),Yb=({validateMessages:e,onFormChange:t,onFormFinish:o,children:n})=>{let r=xs.useContext(Xb),i=xs.useRef({});return xs.createElement(Xb.Provider,{value:{...r,validateMessages:{...r.validateMessages,...e},triggerFormChange:(s,a)=>{t&&t(s,{changedFields:a,forms:i.current}),r.triggerFormChange(s,a)},triggerFormFinish:(s,a)=>{o&&o(s,{values:a,forms:i.current}),r.triggerFormFinish(s,a)},registerForm:(s,a)=>{s&&(i.current={...i.current,[s]:a}),r.registerForm(s,a)},unregisterForm:s=>{let a={...i.current};delete a[s],i.current=a,r.unregisterForm(s)}}},n)};var sI=Xb;function Zb(){return Zb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Zb.apply(this,arguments)}var l_=(e,t)=>{let{name:o,initialValues:n,fields:r,form:i,preserve:s,children:a,component:c="form",validateMessages:l,validateTrigger:d="onChange",onValuesChange:u,onFieldsChange:m,onFinish:f,onFinishFailed:g,clearOnDestroy:p,...h}=e,y=Vo.useRef(null),x=Vo.useContext(sI),[b]=Fp(i),{useSubscribe:S,setInitialValues:v,setCallbacks:C,setValidateMessages:R,setPreserve:w,destroyForm:I}=b.getInternalHooks(Dr);Vo.useImperativeHandle(t,()=>({...b,nativeElement:y.current})),Vo.useEffect(()=>(x.registerForm(o,b),()=>{x.unregisterForm(o)}),[x,b,o]),R({...x.validateMessages,...l}),C({onValuesChange:u,onFieldsChange:(z,..._)=>{x.triggerFormChange(o,z),m&&m(z,..._)},onFinish:z=>{x.triggerFormFinish(o,z),f&&f(z)},onFinishFailed:g}),w(s);let P=Vo.useRef(null);v(n,!P.current),P.current||(P.current=!0),Vo.useEffect(()=>()=>I(p),[]);let N,E=typeof a=="function";if(E){let z=b.getFieldsValue(!0);N=a(z,b)}else N=a;S(!E);let O=Vo.useRef(null);Vo.useEffect(()=>{oI(O.current||[],r||[])||b.setFields(r||[]),O.current=r},[r,b]);let L=Vo.useMemo(()=>({...b,validateTrigger:d}),[b,d]),k=Vo.createElement(ys.Provider,{value:null},Vo.createElement(_r.Provider,{value:L},N));return c===!1?k:Vo.createElement(c,Zb({},h,{ref:y,onSubmit:z=>{z.preventDefault(),z.stopPropagation(),b.submit()},onReset:z=>{z.preventDefault(),b.resetFields(),h.onReset?.(z)}}),k)},aI=l_;var Fr=require("react");function Qb(e){try{return JSON.stringify(e)}catch{return Math.random()}}function c_(...e){let[t,o={}]=e,n=N$(o)?{form:o}:o,r=n.form,[i,s]=(0,Fr.useState)(()=>typeof t=="function"?t({}):void 0),a=(0,Fr.useMemo)(()=>Qb(i),[i]),c=(0,Fr.useRef)(a);c.current=a;let l=(0,Fr.useContext)(_r),d=r||l,u=d&&d._init,{getFieldsValue:m,getInternalHooks:f}=d,{registerWatch:g}=f(Dr),p=Ie((y,x)=>{let b=n.preserve?x??m(!0):y??m(),S=typeof t=="function"?t(b):Oo(b,Yt(t));Qb(i)!==Qb(S)&&s(S)}),h=typeof t=="function"?t:JSON.stringify(t);return(0,Fr.useEffect)(()=>{u&&p()},[u,h]),(0,Fr.useEffect)(()=>u?g((x,b)=>{p(x,b)}):void 0,[u]),i}var lI=c_;var d_=cI.forwardRef(aI),cd=d_;cd.FormProvider=Yb;cd.Field=Lp;cd.List=rI;cd.useForm=Fp;cd.useWatch=lI;var cn=Mi.createContext({}),dI=({children:e,status:t,override:o})=>{let n=Mi.useContext(cn),r=Mi.useMemo(()=>{let i={...n};return o&&delete i.isFormItemInput,t&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[t,o,n]);return Mi.createElement(cn.Provider,{value:r},e)},uI=Mi.createContext(void 0);var mI=M(require("react")),u_=mI.default.createContext(null),zp=u_;var m_=e=>{let{checkboxCls:t,checkboxSize:o,lineWidth:n}=e,r=`${t}-wrapper`,i="@media (hover: hover) and (pointer: fine)";return[{[`${t}-group`]:{...Et(e),display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[r]:{...Et(e),display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${r}`]:{marginInlineStart:0}},[t]:{...Et(e),position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",boxSizing:"border-box",display:"block",width:o,height:o,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${q(n)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,flex:"none",...oi(),"&:after":{boxSizing:"border-box",position:"absolute",top:`calc(${o} / 2 - ${n})`,insetInlineStart:`calc(${o} / 4 - ${n})`,display:"table",width:e.calc(o).div(14).mul(5).equal(),height:e.calc(o).div(14).mul(8).equal(),border:`${q(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}`,...Rl()},[`${t}-input`]:{position:"absolute",inset:`calc(-1 * (${n}))`,zIndex:1,cursor:"pointer",opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:An(e),"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}}},{[i]:{[`
|
|
146
146
|
${r}:not(${r}-disabled),
|
|
147
147
|
${t}:not(${t}-disabled)
|
|
148
|
-
`]:{[`&:hover ${t}`]:{borderColor:e.colorPrimary}},[`${r}:not(${r}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}}},{[`${t}-checked`]:{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}`,...Rl()},[i]:{[`&:not(${t}-disabled):hover`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}}},{[t]:{"&-indeterminate":{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:'""'},[i]:{[`&:not(${t}-disabled):hover`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorPrimary}}}}},{[`${r}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate::after`]:{background:e.colorTextDisabled}}}]};function d_(e,t){let o=Fe(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return c_(o)}var Bp=Ze("Checkbox",(e,{prefixCls:t})=>[d_(t,e)]);var mI=M(require("react"));function Jb(e){let t=mI.default.useRef(null),o=()=>{He.cancel(t.current),t.current=null};return[()=>{o(),t.current=He(()=>{t.current=null})},i=>{t.current&&(i.stopPropagation(),o()),e?.(i)}]}var u_=(e,t)=>{let{prefixCls:o,children:n,indeterminate:r=!1,onMouseEnter:i,onMouseLeave:s,skipGroup:a=!1,disabled:c,rootClassName:l,className:d,style:u,classNames:m,styles:f,name:g,value:p,checked:h,defaultChecked:y,onChange:x,...b}=e,{getPrefixCls:S,direction:v,className:C,style:R,classNames:w,styles:I}=Ye("checkbox"),P=dn.useContext(zp),{isFormItemInput:N}=dn.useContext(cn),E=dn.useContext(Fo),O=c??P?.disabled??E,[D,A]=st(y,h),F=D,_=Ie(J=>{A(J.target.checked),x?.(J),!a&&P?.toggleOption&&P.toggleOption({label:n,value:p})});P&&!a&&(F=P.value.includes(p));let T=dn.useRef(null),L=bo(t,T);dn.useEffect(()=>{if(!(a||!P))return P.registerValue(p),()=>{P.cancelValue(p)}},[p,a]),dn.useEffect(()=>{T.current?.input&&(T.current.input.indeterminate=r)},[r]);let z=S("checkbox",o),G=oo(z),[V,j]=Bp(z,G),Y={...b},B={...e,indeterminate:r,disabled:O,checked:F},U=De(R),K=De(u),[Z,X]=et([w,m],[I,U,f,K],{props:B}),k=$(`${z}-wrapper`,{[`${z}-rtl`]:v==="rtl",[`${z}-wrapper-checked`]:F,[`${z}-wrapper-disabled`]:O,[`${z}-wrapper-in-form-item`]:N},C,d,Z.root,l,j,G,V),W=$(Z.icon,{[`${z}-indeterminate`]:r},bl,V),[H,ee]=Jb(Y.onClick);return dn.createElement(vl,{component:"Checkbox",disabled:O},dn.createElement("label",{className:k,style:X.root,onMouseEnter:i,onMouseLeave:s,onClick:H},dn.createElement(R$,{...Y,name:!a&&P?P.name:g,checked:F,onClick:ee,onChange:_,prefixCls:z,className:W,style:X.icon,disabled:O,ref:L,value:p}),lo(n)&&dn.createElement("span",{className:$(`${z}-label`,Z.label),style:X.label},n)))},m_=dn.forwardRef(u_),Hp=m_;var Jn=M(require("react"));var p_=Jn.forwardRef((e,t)=>{let{defaultValue:o,children:n,options:r=[],prefixCls:i,className:s,rootClassName:a,style:c,onChange:l,role:d="group",...u}=e,{getPrefixCls:m,direction:f}=Jn.useContext(Oe),[g,p]=st(o||[],u.value),h=g||[],[y,x]=Jn.useState([]),b=Jn.useMemo(()=>r.map(F=>Pn(F)||Ko(F)?{label:F,value:F}:F).filter(F=>Nn(F)&&Nn(F.value)),[r]),S=F=>{x(_=>_.filter(T=>T!==F))},v=F=>{x(_=>[].concat(Zt(_),[F]))},C=F=>{let _=h.indexOf(F.value),T=Zt(h);_===-1?T.push(F.value):T.splice(_,1),p(T),l?.(T.filter(L=>y.includes(L)).sort((L,z)=>{let G=b.findIndex(j=>j.value===L),V=b.findIndex(j=>j.value===z);return G-V}))},R=m("checkbox",i),w=`${R}-group`,I=oo(R),[P,N]=Bp(R,I),E=Ke(u,["value","disabled"]),O=Array.isArray(b)&&b.length>0?b.map(F=>Jn.createElement(Hp,{prefixCls:R,key:F.value.toString(),disabled:"disabled"in F?F.disabled:u.disabled,value:F.value,checked:h.includes(F.value),onChange:F.onChange,className:$(`${w}-item`,F.className),style:F.style,title:F.title,id:F.id,required:F.required},F.label)):n,D=Jn.useMemo(()=>({toggleOption:C,value:h,disabled:u.disabled,name:u.name,registerValue:v,cancelValue:S}),[C,h,u.disabled,u.name,v,S]),A=$(w,{[`${w}-rtl`]:f==="rtl"},s,a,N,I,P);return Jn.createElement("div",{className:A,style:c,role:d,...E,ref:t},Jn.createElement(zp.Provider,{value:D},O))});var pI=p_;var ex=Hp;ex.Group=pI;ex.__ANT_CHECKBOX=!0;var fI=ex;var no=M(require("react"));var Vp=M(require("react"));var f_={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"},gI=f_;function tx(){return tx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},tx.apply(this,arguments)}var g_=(e,t)=>Vp.createElement(Ot,tx({},e,{ref:t,icon:gI})),h_=Vp.forwardRef(g_),hI=h_;var yr=M(require("react"));var Wp=M(require("react")),{ESC:y_,TAB:b_}=Me;function ox({visible:e,triggerRef:t,onVisibleChange:o,autoFocus:n,overlayRef:r}){let i=Wp.useRef(!1),s=()=>{e&&(t.current?.focus?.(),o?.(!1))},a=()=>r.current?.focus?(r.current.focus(),i.current=!0,!0):!1,c=l=>{switch(l.keyCode){case y_:s();break;case b_:{let d=!1;i.current||(d=a()),d?l.preventDefault():s();break}}};Wp.useEffect(()=>e?(window.addEventListener("keydown",c),n&&He(a,3),()=>{window.removeEventListener("keydown",c),i.current=!1}):()=>{i.current=!1},[e])}var Oi=M(require("react")),x_=(0,Oi.forwardRef)((e,t)=>{let{overlay:o,arrow:n,prefixCls:r}=e,i=(0,Oi.useMemo)(()=>{let a;return typeof o=="function"?a=o():a=o,a},[o]),s=Mt(t,Po(i));return Oi.default.createElement(Oi.default.Fragment,null,n&&Oi.default.createElement("div",{className:`${r}-arrow`}),Oi.default.cloneElement(i,{ref:dr(i)?s:void 0}))}),yI=x_;var Nl={adjustX:1,adjustY:1},Pl=[0,0],v_={topLeft:{points:["bl","tl"],overflow:Nl,offset:[0,-4],targetOffset:Pl},top:{points:["bc","tc"],overflow:Nl,offset:[0,-4],targetOffset:Pl},topRight:{points:["br","tr"],overflow:Nl,offset:[0,-4],targetOffset:Pl},bottomLeft:{points:["tl","bl"],overflow:Nl,offset:[0,4],targetOffset:Pl},bottom:{points:["tc","bc"],overflow:Nl,offset:[0,4],targetOffset:Pl},bottomRight:{points:["tr","br"],overflow:Nl,offset:[0,4],targetOffset:Pl}},bI=v_;function nx(){return nx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},nx.apply(this,arguments)}var S_=yr.default.forwardRef((e,t)=>{let{arrow:o=!1,prefixCls:n="rc-dropdown",transitionName:r,animation:i,align:s,placement:a="bottomLeft",placements:c=bI,getPopupContainer:l,showAction:d,hideAction:u,overlayClassName:m,overlayStyle:f,visible:g,trigger:p=["hover"],autoFocus:h,overlay:y,children:x,onVisibleChange:b,disabled:S,...v}=e,[C,R]=yr.default.useState(),w="visible"in e?g:C,I=i?`${n}-${i}`:r,P=yr.default.useRef(null),N=yr.default.useRef(null),E=yr.default.useRef(null);yr.default.useImperativeHandle(t,()=>P.current);let O=Y=>{R(Y),b?.(Y)};ox({visible:w,triggerRef:E,onVisibleChange:O,autoFocus:h,overlayRef:N});let D=Y=>{let{onOverlayClick:B}=e;R(!1),B&&B(Y)},A=()=>yr.default.createElement(yI,{ref:N,overlay:y,prefixCls:n,arrow:o}),F=()=>typeof y=="function"?A:A(),_=()=>{let{minOverlayWidthMatchTrigger:Y,alignPoint:B}=e;return"minOverlayWidthMatchTrigger"in e?Y:!B},T=()=>{let{openClassName:Y}=e;return Y!==void 0?Y:`${n}-open`},L=x,z=$(L.props?.className,w&&T()),G={className:z,ref:Mt(E,Po(L))},V=dr(L)?yr.default.cloneElement(L,G):yr.default.createElement("span",{className:z,ref:E},yr.default.cloneElement(L,{className:z})),j=u;return!j&&p.indexOf("contextMenu")!==-1&&(j=["click"]),yr.default.createElement(rs,nx({builtinPlacements:c},v,{prefixCls:n,ref:P,popupClassName:$(m,{[`${n}-show-arrow`]:o}),popupStyle:f,action:p,showAction:d,hideAction:j,popupPlacement:a,popupAlign:s,popupMotion:{motionName:I},popupVisible:w,stretch:_()?"minWidth":"",popup:F(),onOpenChange:O,onPopupClick:D,getPopupContainer:l}),V)}),xI=S_;var jp=xI;function Up(e){let{sizePopupArrow:t,borderRadiusXS:o,borderRadiusOuter:n}=e,r=t/2,i=0,s=r,a=n*1/Math.sqrt(2),c=r-n*(1-1/Math.sqrt(2)),l=r-o*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+o*(1/Math.sqrt(2)),u=2*r-l,m=d,f=2*r-a,g=c,p=2*r-i,h=s,y=r*Math.sqrt(2)+n*(Math.sqrt(2)-2),x=n*(Math.sqrt(2)-1),b=`polygon(${x}px 100%, 50% ${x}px, ${2*r-x}px 100%, ${x}px 100%)`,S=`path('M ${i} ${s} A ${n} ${n} 0 0 0 ${a} ${c} L ${l} ${d} A ${o} ${o} 0 0 1 ${u} ${m} L ${f} ${g} A ${n} ${n} 0 0 0 ${p} ${h} Z')`;return{arrowShadowWidth:y,arrowPath:S,arrowPolygon:b}}var vI=(e,t,o)=>{let{sizePopupArrow:n,arrowPolygon:r,arrowPath:i,arrowShadowWidth:s,borderRadiusXS:a,calc:c}=e,l={content:'""',position:"absolute",width:s,height:s,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${q(a)} 0`},transform:"translateY(50%) rotate(-135deg)",zIndex:0,background:"transparent"};return o&&(l.boxShadow=o),{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:c(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[r,i]},content:'""'},"&::after":l}};var rx=8;function Tl(e){let{contentRadius:t,limitVerticalRadius:o}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:o?rx:n}}var C_=(e,t,o)=>{let{componentCls:n,boxShadowPopoverArrow:r,arrowOffsetVertical:i,arrowOffsetHorizontal:s,antCls:a}=e,[c]=qt(a,"tooltip"),{arrowDistance:l=0,arrowShadow:d=!0}=o||{};return{[n]:{[`${n}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...vI(e,t,d?r:!1),"&:before":{background:t}}],[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{[c("arrow-offset-x")]:s,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-topRight":{[c("arrow-offset-x")]:`calc(100% - ${q(s)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:s}}},[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{[c("arrow-offset-x")]:s,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-bottomRight":{[c("arrow-offset-x")]:`calc(100% - ${q(s)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:s}}},[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:i},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:i},[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:i},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:i}}}},Kp=C_;function w_(e,t,o,n){if(n===!1)return{adjustX:!1,adjustY:!1};let r=at(n)?n:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+o,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+o,i.shiftX=!0,i.adjustX=!0;break}let s={...i,...r};return s.shiftX||(s.adjustX=!0),s.shiftY||(s.adjustY=!0),s}var SI={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"]}},R_={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"]}},E_=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function dd(e){let{arrowWidth:t,autoAdjustOverflow:o,arrowPointAtCenter:n,offset:r,borderRadius:i,visibleFirst:s}=e,a=t/2,c={},l=Tl({contentRadius:i,limitVerticalRadius:!0});return Object.keys(SI).forEach(d=>{let m={...n&&R_[d]||SI[d],offset:[0,0],dynamicInset:!0};switch(c[d]=m,E_.has(d)&&(m.autoArrow=!1),d){case"top":case"topLeft":case"topRight":m.offset[1]=-a-r;break;case"bottom":case"bottomLeft":case"bottomRight":m.offset[1]=a+r;break;case"left":case"leftTop":case"leftBottom":m.offset[0]=-a-r;break;case"right":case"rightTop":case"rightBottom":m.offset[0]=a+r;break}if(n)switch(d){case"topLeft":case"bottomLeft":m.offset[0]=-l.arrowOffsetHorizontal-a;break;case"topRight":case"bottomRight":m.offset[0]=l.arrowOffsetHorizontal+a;break;case"leftTop":case"rightTop":m.offset[1]=-l.arrowOffsetHorizontal*2+a;break;case"leftBottom":case"rightBottom":m.offset[1]=l.arrowOffsetHorizontal*2-a;break}m.overflow=w_(d,l,t,o),s&&(m.htmlRegion="visibleFirst")}),c}var Dn=M(require("react"));function ix(e){return t=>Dn.createElement(as,{theme:{token:{motion:!1,zIndexPopupBase:0}}},Dn.createElement(e,{...t}))}var $_=(e,t,o,n,r)=>ix(s=>{let{prefixCls:a,style:c}=s,l=Dn.useRef(null),[d,u]=Dn.useState(0),[m,f]=Dn.useState(0),[g,p]=st(!1,s.open),{getPrefixCls:h}=Dn.useContext(Oe),y=h(n||"select",a);Dn.useEffect(()=>{if(p(!0),typeof ResizeObserver<"u"){let S=new ResizeObserver(C=>{let R=C[0].target;u(R.offsetHeight+8),f(R.offsetWidth)}),v=setInterval(()=>{let C=r?`.${r(y)}`:`.${y}-dropdown`,R=l.current?.querySelector(C);R&&(clearInterval(v),S.observe(R))},10);return()=>{clearInterval(v),S.disconnect()}}},[y]);let x={...s,style:{...c,margin:0},open:g,getPopupContainer:()=>l.current};return o&&(x=o(x)),t&&(x={...x,[t]:{overflow:{adjustX:!1,adjustY:!1}}}),Dn.createElement("div",{ref:l,style:{paddingBottom:d,position:"relative",minWidth:m}},Dn.createElement(e,{...x}))}),Gp=$_;var Sf=M(require("react")),Vl=require("react");var er=M(require("react")),ri=require("react");var xa=M(require("react"));var Ml=void 0;function I_(e,t){let{prefixCls:o,invalidate:n,item:r,renderItem:i,responsive:s,responsiveDisabled:a,registerSize:c,itemKey:l,className:d,style:u,children:m,display:f,order:g,component:p="div",...h}=e,y=s&&!f;function x(R){c(l,R)}xa.useEffect(()=>()=>{x(null)},[]);let b=i&&r!==Ml?i(r,{index:g}):m,S;n||(S={opacity:y?0:1,height:y?0:Ml,overflowY:y?"hidden":Ml,order:s?g:Ml,pointerEvents:y?"none":Ml,position:y?"absolute":Ml});let v={};y&&(v["aria-hidden"]=!0);let C=xa.createElement(p,Zn({className:$(!n&&o,d),style:{...S,...u}},v,h,{ref:t}),b);return s&&(C=xa.createElement(sn,{onResize:({offsetWidth:R})=>{x(R)},disabled:a},C)),C}var N_=xa.forwardRef(I_),va=N_;var qp=M(require("react")),CI=require("react-dom");function sx(e){if(typeof MessageChannel>"u")He(e);else{let t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0)}}function wI(){let e=qp.useRef(null);return o=>{e.current||(e.current=[],sx(()=>{(0,CI.unstable_batchedUpdates)(()=>{e.current.forEach(n=>{n()}),e.current=null})})),e.current.push(o)}}function vs(e,t){let[o,n]=qp.useState(t),r=Ie(i=>{e(()=>{n(i)})});return[o,r]}var Ss=M(require("react"));var RI=M(require("react")),Sa=RI.default.createContext(null);var P_=(e,t)=>{let o=Ss.useContext(Sa);if(!o){let{component:a="div",...c}=e;return Ss.createElement(a,Zn({},c,{ref:t}))}let{className:n,...r}=o,{className:i,...s}=e;return Ss.createElement(Sa.Provider,{value:null},Ss.createElement(va,Zn({ref:t,className:$(n,i)},r,s)))},T_=Ss.forwardRef(P_),EI=T_;var $I="responsive",II="invalidate";function M_(e){return`+ ${e.length} ...`}function O_(e,t){let{prefixCls:o="rc-overflow",data:n=[],renderItem:r,renderRawItem:i,itemKey:s,itemWidth:a=10,ssr:c,style:l,className:d,maxCount:u,renderRest:m,renderRawRest:f,prefix:g,suffix:p,component:h="div",itemComponent:y,onVisibleChange:x,...b}=e,S=c==="full",v=wI(),[C,R]=vs(v,null),w=C||0,[I,P]=vs(v,new Map),[N,E]=vs(v,0),[O,D]=vs(v,0),[A,F]=vs(v,0),[_,T]=vs(v,0),[L,z]=(0,ri.useState)(null),[G,V]=(0,ri.useState)(null),j=er.useMemo(()=>G===null&&S?Number.MAX_SAFE_INTEGER:G||0,[G,C]),[Y,B]=(0,ri.useState)(!1),U=`${o}-item`,K=Math.max(N,O),Z=u===$I,X=n.length&&Z,k=u===II,W=X||typeof u=="number"&&n.length>u,H=(0,ri.useMemo)(()=>{let pe=n;return X?C===null&&S?pe=n:pe=n.slice(0,Math.min(n.length,w/a)):typeof u=="number"&&(pe=n.slice(0,u)),pe},[n,a,C,u,X]),ee=(0,ri.useMemo)(()=>X?n.slice(j+1):n.slice(H.length),[n,H,X,j]),J=(0,ri.useCallback)((pe,ue)=>typeof s=="function"?s(pe):(s&&pe?.[s])??ue,[s]),te=(0,ri.useCallback)(r||(pe=>pe),[r]);function le(pe,ue,se){G===pe&&(ue===void 0||ue===L)||(V(pe),se||(B(pe<n.length-1),x?.(pe)),ue!==void 0&&z(ue))}function re(pe,ue){R(ue.clientWidth)}function ie(pe,ue){P(se=>{let ve=new Map(se);return ue===null?ve.delete(pe):ve.set(pe,ue),ve})}function Se(pe,ue){D(ue),E(O)}function de(pe,ue){F(ue)}function Ee(pe,ue){T(ue)}function ae(pe){return I.get(J(H[pe],pe))}it(()=>{if(w&&typeof K=="number"&&H){let pe=A+_,ue=H.length,se=ue-1;if(!ue){le(0,null);return}for(let ve=0;ve<ue;ve+=1){let $e=ae(ve);if(S&&($e=$e||0),$e===void 0){le(ve-1,void 0,!0);break}if(pe+=$e,se===0&&pe<=w||ve===se-1&&pe+ae(se)<=w){le(se,null);break}else if(pe+K>w){le(ve-1,pe-$e-_+O);break}}p&&ae(0)+_>w&&z(null)}},[w,I,O,A,_,J,H]);let Ne=Y&&!!ee.length,he={};L!==null&&X&&(he={position:"absolute",top:0,insetInlineStart:L});let ne={prefixCls:U,responsive:X,component:y,invalidate:k},fe=i?(pe,ue)=>{let se=J(pe,ue);return er.createElement(Sa.Provider,{key:se,value:{...ne,order:ue,item:pe,itemKey:se,registerSize:ie,display:ue<=j}},i(pe,ue))}:(pe,ue)=>{let se=J(pe,ue);return er.createElement(va,Zn({},ne,{order:ue,key:se,item:pe,renderItem:te,itemKey:se,registerSize:ie,display:ue<=j}))},ce={order:Ne?j:Number.MAX_SAFE_INTEGER,className:`${U}-rest`,registerSize:Se,display:Ne},we=m||M_,Le=f?er.createElement(Sa.Provider,{value:{...ne,...ce}},f(ee)):er.createElement(va,Zn({},ne,ce),typeof we=="function"?we(ee):we),Ce=er.createElement(h,Zn({className:$(!k&&o,d),style:l,ref:t},b),g&&er.createElement(va,Zn({},ne,{responsive:Z,responsiveDisabled:!X,order:-1,className:`${U}-prefix`,registerSize:de,display:!0}),g),H.map(fe),W?Le:null,p&&er.createElement(va,Zn({},ne,{responsive:Z,responsiveDisabled:!X,order:j,className:`${U}-suffix`,registerSize:Ee,display:!0,style:he}),p));return Z?er.createElement(sn,{onResize:re,disabled:!X},Ce):Ce}var Xp=er.forwardRef(O_);Xp.Item=EI;Xp.RESPONSIVE=$I;Xp.INVALIDATE=II;var NI=Xp;var ii=NI;var bt=M(require("react")),HI=require("react"),VI=require("react-dom");var Yp=M(require("react")),ax=Yp.createContext(null);function lx(e,t){return`${e}-${t}`}function Zp(e){let t=Yp.useContext(ax);return lx(t,e)}var Ol=M(require("react"));var $o=Ol.createContext(null);function A_(e,t){let o={...e};return Object.keys(t).forEach(n=>{let r=t[n];r!==void 0&&(o[n]=r)}),o}function Ai({children:e,locked:t,...o}){let n=Ol.useContext($o),r=Kn(()=>A_(n,o),[n,o],(i,s)=>!t&&(i[0]!==s[0]||!Mr(i[1],s[1],!0)));return Ol.createElement($o.Provider,{value:r},e)}var ki=M(require("react")),k_=[],cx=ki.createContext(null);function Cs(){return ki.useContext(cx)}var dx=ki.createContext(k_);function zr(e){let t=ki.useContext(dx);return ki.useMemo(()=>e!==void 0?[...t,e]:t,[t,e])}var Qp=ki.createContext(null);var PI=M(require("react")),L_=PI.createContext({}),Al=L_;var pd=M(require("react"));var{LEFT:ux,RIGHT:mx,UP:px,DOWN:Jp,ENTER:ef,ESC:OI,HOME:ud,END:md}=Me,TI=[px,Jp,ux,mx];function D_(e,t,o,n){let r="prev",i="next",s="children",a="parent";if(e==="inline"&&n===ef)return{inlineTrigger:!0};let c={[px]:r,[Jp]:i},l={[ux]:o?i:r,[mx]:o?r:i,[Jp]:s,[ef]:s},d={[px]:r,[Jp]:i,[ef]:s,[OI]:a,[ux]:o?s:a,[mx]:o?a:s};switch({inline:c,horizontal:l,vertical:d,inlineSub:c,horizontalSub:d,verticalSub:d}[`${e}${t?"":"Sub"}`]?.[n]){case r:return{offset:-1,sibling:!0};case i:return{offset:1,sibling:!0};case a:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function __(e){let t=e;for(;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function F_(e,t){let o=e||document.activeElement;for(;o;){if(t.has(o))return o;o=o.parentElement}return null}function tf(e,t){return Ec(e,!0).filter(n=>t.has(n))}function MI(e,t,o,n=1){if(!e)return null;let r=tf(e,t),i=r.length,s=r.findIndex(a=>o===a);return n<0?s===-1?s=i-1:s-=1:n>0&&(s+=1),s=(s+i)%i,r[s]}var fd=(e,t)=>{let o=new Set,n=new Map,r=new Map;return e.forEach(i=>{let s=document.querySelector(`[data-menu-id='${lx(t,i)}']`);s&&(o.add(s),r.set(s,i),n.set(i,s))}),{elements:o,key2element:n,element2key:r}};function AI(e,t,o,n,r,i,s,a,c,l){let d=pd.useRef(void 0),u=pd.useRef(void 0);u.current=t;let m=()=>{He.cancel(d.current)};return pd.useEffect(()=>()=>{m()},[]),f=>{let{which:g}=f;if([...TI,ef,OI,ud,md].includes(g)){let p=i(),h=fd(p,n),{elements:y,key2element:x,element2key:b}=h,S=x.get(t),v=F_(S,y),C=b.get(v),R=D_(e,s(C,!0).length===1,o,g);if(!R&&g!==ud&&g!==md)return;(TI.includes(g)||[ud,md].includes(g))&&f.preventDefault();let w=I=>{if(I){let P=I,N=I.querySelector("a");N?.getAttribute("href")&&(P=N);let E=b.get(I);a(E),m(),d.current=He(()=>{u.current===E&&P.focus()})}};if([ud,md].includes(g)||R.sibling||!v){let I;!v||e==="inline"?I=r.current:I=__(v);let P,N=tf(I,y);g===ud?P=N[0]:g===md?P=N[N.length-1]:P=MI(I,y,v,R.offset),w(P)}else if(R.inlineTrigger)c(C);else if(R.offset>0)c(C,!0),m(),d.current=He(()=>{h=fd(p,n);let I=v.getAttribute("aria-controls"),P=document.getElementById(I),N=MI(P,h.elements);w(N)},5);else if(R.offset<0){let I=s(C,!0),P=I[I.length-2],N=x.get(P);c(P,!1),w(N)}}l?.(f)}}var gd=M(require("react")),br=require("react");function kI(e){Promise.resolve().then(e)}var fx="__RC_UTIL_PATH_SPLIT__",LI=e=>e.join(fx),z_=e=>e.split(fx),of="rc-menu-more";function gx(){let[,e]=gd.useState({}),t=(0,br.useRef)(new Map),o=(0,br.useRef)(new Map),[n,r]=gd.useState([]),i=(0,br.useRef)(0),s=(0,br.useRef)(!1),a=()=>{s.current||e({})},c=(0,br.useCallback)((p,h)=>{let y=LI(h);o.current.set(y,p),t.current.set(p,y),i.current+=1;let x=i.current;kI(()=>{x===i.current&&a()})},[]),l=(0,br.useCallback)((p,h)=>{let y=LI(h);o.current.delete(y),t.current.delete(p)},[]),d=(0,br.useCallback)(p=>{r(p)},[]),u=(0,br.useCallback)((p,h)=>{let y=t.current.get(p)||"",x=z_(y);return h&&n.includes(x[0])&&x.unshift(of),x},[n]),m=(0,br.useCallback)((p,h)=>p.filter(y=>y!==void 0).some(y=>u(y,!0).includes(h)),[u]),f=()=>{let p=[...t.current.keys()];return n.length&&p.push(of),p},g=(0,br.useCallback)(p=>{let h=`${t.current.get(p)}${fx}`,y=new Set;return[...o.current.keys()].forEach(x=>{x.startsWith(h)&&y.add(o.current.get(x))}),y},[]);return gd.useEffect(()=>()=>{s.current=!0},[]),{registerPath:c,unregisterPath:l,refreshOverflowKeys:d,isSubPathKey:m,getKeyPath:u,getKeys:f,getSubPathKeys:g}}var nf=M(require("react"));function ws(e){let t=nf.useRef(e);t.current=e;let o=nf.useCallback((...n)=>t.current?.(...n),[]);return e?o:void 0}var Vo=M(require("react"));var DI=M(require("react"));function hd(e,t,o,n){let{activeKey:r,onActive:i,onInactive:s}=DI.useContext($o),a={active:r===e};return t||(a.onMouseEnter=c=>{o?.({key:e,domEvent:c}),i(e)},a.onMouseLeave=c=>{n?.({key:e,domEvent:c}),s(e)}),a}var _I=M(require("react"));function yd(e){let{mode:t,rtl:o,inlineIndent:n}=_I.useContext($o);if(t!=="inline")return null;let r=e;return o?{paddingRight:r*n}:{paddingLeft:r*n}}var FI=M(require("react"));function bd({icon:e,props:t,children:o}){let n;return e===null||e===!1?null:(typeof e=="function"?n=FI.createElement(e,{...t}):typeof e!="boolean"&&(n=e),n||o||null)}function Ca({item:e,...t}){return Object.defineProperty(t,"item",{get:()=>(Kt(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function xd(){return xd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},xd.apply(this,arguments)}var hx=class extends Vo.Component{render(){let{title:t,attribute:o,elementRef:n,...r}=this.props,i=Ke(r,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Kt(!o,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),Vo.createElement(ii.Item,xd({},o,{title:typeof t=="string"?t:void 0},i,{ref:n}))}},B_=Vo.forwardRef((e,t)=>{let{style:o,className:n,eventKey:r,warnKey:i,disabled:s,itemIcon:a,children:c,itemData:l,role:d,onMouseEnter:u,onMouseLeave:m,onClick:f,onKeyDown:g,onFocus:p,...h}=e,y=Zp(r),{prefixCls:x,onItemClick:b,disabled:S,overflowDisabled:v,itemIcon:C,selectedKeys:R,onActive:w}=Vo.useContext($o),{_internalRenderMenuItem:I}=Vo.useContext(Al),P=`${x}-item`,N=Vo.useRef(null),E=Vo.useRef(null),O=S||s,D=bo(t,E),A=zr(r),F=K=>{let Z=l||{key:r||"",label:c,itemIcon:a,extra:e.extra,title:e.title};return{key:r,keyPath:[...A].reverse(),item:N.current,domEvent:K,itemData:l||Z}},_=a||C,{active:T,...L}=hd(r,O,u,m),z=R.includes(r),G=yd(A.length),V=K=>{if(O)return;let Z=F(K);f?.(Ca(Z)),b(Z)},j=K=>{if(g?.(K),K.which===Me.ENTER){let Z=F(K);f?.(Ca(Z)),b(Z)}},Y=K=>{w(r),p?.(K)},B={};e.role==="option"&&(B["aria-selected"]=z);let U=Vo.createElement(hx,xd({ref:N,elementRef:D,role:d===null?"none":d||"menuitem",tabIndex:s?null:-1,"data-menu-id":v&&y?null:y},Ke(h,["extra"]),L,B,{component:"li","aria-disabled":s,style:{...G,...o},className:$(P,{[`${P}-active`]:T,[`${P}-selected`]:z,[`${P}-disabled`]:O},n),onClick:V,onKeyDown:j,onFocus:Y}),c,Vo.createElement(bd,{props:{...e,isSelected:z},icon:_}));return I&&(U=I(U,e,{selected:z})),U});function H_(e,t){let{eventKey:o}=e,n=Cs(),r=zr(o);return Vo.useEffect(()=>{if(n)return n.registerPath(o,r),()=>{n.unregisterPath(o,r)}},[r]),n?null:Vo.createElement(B_,xd({},e,{ref:t}))}var si=Vo.forwardRef(H_);var Nt=M(require("react"));var kl=M(require("react"));function yx(){return yx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},yx.apply(this,arguments)}var V_=({className:e,children:t,...o},n)=>{let{prefixCls:r,mode:i,rtl:s}=kl.useContext($o);return kl.createElement("ul",yx({className:$(r,s&&`${r}-rtl`,`${r}-sub`,`${r}-${i==="inline"?"inline":"vertical"}`,e),role:"menu"},o,{"data-menu-list":!0,ref:n}),t)},W_=kl.forwardRef(V_),rf=W_;var sf=M(require("react"));function Ll(e,t){return co(e).map((o,n)=>{if(sf.isValidElement(o)){let{key:r}=o,i=o.props?.eventKey??r;return i==null&&(i=`tmp_key-${[...t,n].join("-")}`),sf.cloneElement(o,{key:i,eventKey:i})}return o})}var Br=M(require("react"));var un={adjustX:1,adjustY:1},zI={topLeft:{points:["bl","tl"],overflow:un},topRight:{points:["br","tr"],overflow:un},bottomLeft:{points:["tl","bl"],overflow:un},bottomRight:{points:["tr","br"],overflow:un},leftTop:{points:["tr","tl"],overflow:un},leftBottom:{points:["br","bl"],overflow:un},rightTop:{points:["tl","tr"],overflow:un},rightBottom:{points:["bl","br"],overflow:un}},BI={topLeft:{points:["bl","tl"],overflow:un},topRight:{points:["br","tr"],overflow:un},bottomLeft:{points:["tl","bl"],overflow:un},bottomRight:{points:["tr","br"],overflow:un},rightTop:{points:["tr","tl"],overflow:un},rightBottom:{points:["br","bl"],overflow:un},leftTop:{points:["tl","tr"],overflow:un},leftBottom:{points:["bl","br"],overflow:un}};function af(e,t,o){if(t)return t;if(o)return o[e]||o.other}var j_={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function bx({prefixCls:e,visible:t,children:o,popup:n,popupStyle:r,popupClassName:i,popupOffset:s,disabled:a,mode:c,onVisibleChange:l}){let{getPopupContainer:d,rtl:u,subMenuOpenDelay:m,subMenuCloseDelay:f,builtinPlacements:g,triggerSubMenuAction:p,forceSubMenuRender:h,rootClassName:y,motion:x,defaultMotions:b}=Br.useContext($o),[S,v]=Br.useState(!1),C=u?{...BI,...g}:{...zI,...g},R=j_[c],w=af(c,x,b),I=Br.useRef(w);c!=="inline"&&(I.current=w);let P={...I.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},N=Br.useRef(void 0);return Br.useEffect(()=>(N.current=He(()=>{v(t)}),()=>{He.cancel(N.current)}),[t]),Br.createElement(rs,{prefixCls:e,popupClassName:$(`${e}-popup`,{[`${e}-rtl`]:u},i,y),stretch:c==="horizontal"?"minWidth":null,getPopupContainer:d,builtinPlacements:C,popupPlacement:R,popupVisible:S,popup:n,popupStyle:r,popupAlign:s&&{offset:s},action:a?[]:[p],mouseEnterDelay:m,mouseLeaveDelay:f,onPopupVisibleChange:l,forceRender:h,popupMotion:P,fresh:!0},o)}var xr=M(require("react"));function xx(){return xx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},xx.apply(this,arguments)}function vx({id:e,open:t,keyPath:o,children:n}){let r="inline",{prefixCls:i,forceSubMenuRender:s,motion:a,defaultMotions:c,mode:l}=xr.useContext($o),d=xr.useRef(!1);d.current=l===r;let[u,m]=xr.useState(!d.current),f=d.current?t:!1;xr.useEffect(()=>{d.current&&m(!1)},[l]);let g={...af(r,a,c)};o.length>1&&(g.motionAppear=!1);let p=g.onVisibleChanged;return g.onVisibleChanged=h=>(!d.current&&!h&&m(!0),p?.(h)),u?null:xr.createElement(Ai,{mode:r,locked:!d.current},xr.createElement(po,xx({visible:f},g,{forceRender:s,removeOnLeave:!1,leavedClassName:`${i}-hidden`}),({className:h,style:y})=>xr.createElement(rf,{id:e,className:h,style:y},n)))}function vd(){return vd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},vd.apply(this,arguments)}var U_=Nt.forwardRef((e,t)=>{let{style:o,className:n,styles:r,classNames:i,title:s,itemTitle:a,eventKey:c,warnKey:l,disabled:d,internalPopupClose:u,children:m,itemIcon:f,expandIcon:g,popupClassName:p,popupOffset:h,popupStyle:y,onClick:x,onMouseEnter:b,onMouseLeave:S,onTitleClick:v,onTitleMouseEnter:C,onTitleMouseLeave:R,popupRender:w,...I}=e,P=Zp(c),{prefixCls:N,mode:E,openKeys:O,disabled:D,overflowDisabled:A,activeKey:F,selectedKeys:_,itemIcon:T,expandIcon:L,onItemClick:z,onOpenChange:G,onActive:V,popupRender:j}=Nt.useContext($o),{_internalRenderSubMenuItem:Y}=Nt.useContext(Al),{isSubPathKey:B}=Nt.useContext(Qp),U=zr(),K=`${N}-submenu`,Z=D||d,X=Nt.useRef(null),k=Nt.useRef(null),W=f??T,H=g??L,ee=O.includes(c),J=!A&&ee,te=B(_,c),{active:le,...re}=hd(c,Z,C,R),[ie,Se]=Nt.useState(!1),de=Pe=>{Z||Se(Pe)},Ee=Pe=>{de(!0),b?.({key:c,domEvent:Pe})},ae=Pe=>{de(!1),S?.({key:c,domEvent:Pe})},Ne=Nt.useMemo(()=>le||(E!=="inline"?ie||B([F],c):!1),[E,le,F,ie,c,B]),he=yd(U.length),ne=Pe=>{Z||(v?.({key:c,domEvent:Pe}),E==="inline"&&G(c,!ee))},fe=ws(Pe=>{x?.(Ca(Pe)),z(Pe)}),ce=Pe=>{E!=="inline"&&G(c,Pe)},we=()=>{V(c)},Le=P&&`${P}-popup`,Ce=Nt.useMemo(()=>Nt.createElement(bd,{icon:E!=="horizontal"?H:void 0,props:{...e,isOpen:J,isSubMenu:!0}},Nt.createElement("i",{className:`${K}-arrow`})),[E,H,e,J,K]),pe=Nt.createElement("div",vd({role:"menuitem",style:he,className:`${K}-title`,tabIndex:Z?null:-1,ref:X,title:a??(typeof s=="string"?s:null),"data-menu-id":A&&P?null:P,"aria-expanded":J,"aria-haspopup":!0,"aria-controls":Le,"aria-disabled":Z,onClick:ne,onFocus:we},re),s,Ce),ue=Nt.useRef(E);E!=="inline"&&U.length>1?ue.current="vertical":ue.current=E;let se=ue.current,ve=Nt.useMemo(()=>{let Pe=Nt.createElement(Ai,{classNames:i,styles:r,mode:se==="horizontal"?"vertical":se},Nt.createElement(rf,{id:Le,ref:k},m)),Ge=w||j;return Ge?Ge(Pe,{item:e,keys:U}):Pe},[w,j,U,Le,m,e,se]);if(!A){let Pe=ue.current;pe=Nt.createElement(bx,{mode:Pe,prefixCls:K,visible:!u&&J&&E!=="inline",popupClassName:p,popupOffset:h,popupStyle:y,popup:ve,disabled:Z,onVisibleChange:ce},pe)}let $e=Nt.createElement(ii.Item,vd({ref:t,role:"none"},I,{component:"li",style:o,className:$(K,`${K}-${E}`,n,{[`${K}-open`]:J,[`${K}-active`]:Ne,[`${K}-selected`]:te,[`${K}-disabled`]:Z}),onMouseEnter:Ee,onMouseLeave:ae}),pe,!A&&Nt.createElement(vx,{id:Le,open:J,keyPath:U},m));return Y&&($e=Y($e,e,{selected:te,active:Ne,open:J,disabled:Z})),Nt.createElement(Ai,{classNames:i,styles:r,onItemClick:fe,mode:E==="horizontal"?"vertical":E,itemIcon:W,expandIcon:H},$e)}),K_=Nt.forwardRef((e,t)=>{let{eventKey:o,children:n}=e,r=zr(o),i=Ll(n,r),s=Cs();Nt.useEffect(()=>{if(s)return s.registerPath(o,r),()=>{s.unregisterPath(o,r)}},[r]);let a;return s?a=i:a=Nt.createElement(U_,vd({ref:t},e),i),Nt.createElement(dx.Provider,{value:r},a)}),Rs=K_;var li=M(require("react"));var lf=M(require("react"));function wa({className:e,style:t}){let{prefixCls:o}=lf.useContext($o);return Cs()?null:lf.createElement("li",{role:"separator",className:$(`${o}-item-divider`,e),style:t})}var ai=M(require("react"));function cf(){return cf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},cf.apply(this,arguments)}var G_=ai.forwardRef((e,t)=>{let{className:o,title:n,eventKey:r,children:i,...s}=e,{prefixCls:a,classNames:c,styles:l}=ai.useContext($o),d=`${a}-item-group`;return ai.createElement("li",cf({ref:t,role:"presentation"},s,{onClick:u=>u.stopPropagation(),className:$(d,o)}),ai.createElement("div",{role:"presentation",className:$(`${d}-title`,c?.listTitle),style:l?.listTitle,title:typeof n=="string"?n:void 0},n),ai.createElement("ul",{role:"group",className:$(`${d}-list`,c?.list),style:l?.list},i))}),q_=ai.forwardRef((e,t)=>{let{eventKey:o,children:n}=e,r=zr(o),i=Ll(n,r);return Cs()?i:ai.createElement(G_,cf({ref:t},Ke(e,["warnKey"])),i)}),Dl=q_;function _l(){return _l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},_l.apply(this,arguments)}function Sx(e,t,o){let{item:n,group:r,submenu:i,divider:s}=t;return(e||[]).map((a,c)=>{if(a&&typeof a=="object"){let{label:l,children:d,key:u,type:m,extra:f,...g}=a,p=u??`tmp-${c}`;if(d||m==="group"){if(m==="group")return li.createElement(r,_l({key:p},g,{title:l}),Sx(d,t,o));let{title:y,...x}=g;return li.createElement(i,_l({key:p},x,{title:l,itemTitle:typeof y=="string"?y:void 0}),Sx(d,t,o))}if(m==="divider")return li.createElement(s,_l({key:p},g));let h=!!f||f===0;return li.createElement(n,_l({key:p},g,{extra:f,itemData:{...a,key:p}}),h?li.createElement(li.Fragment,null,li.createElement("span",{className:`${o}-item-label`},l),li.createElement("span",{className:`${o}-item-extra`},f)):l)}return null}).filter(a=>a)}function Cx(e,t,o,n,r){let i=e,s={divider:wa,item:si,group:Dl,submenu:Rs,...n};return t&&(i=Sx(t,s,r)),Ll(i,o)}function wx(){return wx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},wx.apply(this,arguments)}var Ra=[],X_=bt.forwardRef((e,t)=>{let{prefixCls:o="rc-menu",rootClassName:n,style:r,className:i,styles:s,classNames:a,tabIndex:c=0,items:l,children:d,direction:u,id:m,mode:f="vertical",inlineCollapsed:g,disabled:p,disabledOverflow:h,subMenuOpenDelay:y=.1,subMenuCloseDelay:x=.1,forceSubMenuRender:b,defaultOpenKeys:S,openKeys:v,activeKey:C,defaultActiveFirst:R,selectable:w=!0,multiple:I=!1,defaultSelectedKeys:P,selectedKeys:N,onSelect:E,onDeselect:O,inlineIndent:D=24,motion:A,defaultMotions:F,triggerSubMenuAction:_="hover",builtinPlacements:T,itemIcon:L,expandIcon:z,overflowedIndicator:G="...",overflowedIndicatorPopupClassName:V,getPopupContainer:j,onClick:Y,onOpenChange:B,onKeyDown:U,openAnimation:K,openTransitionName:Z,_internalRenderMenuItem:X,_internalRenderSubMenuItem:k,_internalComponents:W,popupRender:H,...ee}=e,[J,te]=bt.useMemo(()=>[Cx(d,l,Ra,W,o),Cx(d,l,Ra,{},o)],[d,l,W]),[le,re]=bt.useState(!1),ie=bt.useRef(null),Se=Co(),de=m??`rc-menu-uuid-${Se}`,Ee=u==="rtl",[ae,Ne]=st(S,v),he=ae||Ra,ne=(ze,ot=!1)=>{function dt(){Ne(ze),B?.(ze)}ot?(0,VI.flushSync)(dt):dt()},[fe,ce]=bt.useState(he),we=bt.useRef(!1),[Le,Ce]=bt.useMemo(()=>(f==="inline"||f==="vertical")&&g?["vertical",g]:[f,!1],[f,g]),pe=Le==="inline",[ue,se]=bt.useState(Le),[ve,$e]=bt.useState(Ce);bt.useEffect(()=>{se(Le),$e(Ce),we.current&&(pe?Ne(fe):ne(Ra))},[Le,Ce]);let[Pe,Ge]=bt.useState(0),qe=Pe>=J.length-1||ue!=="horizontal"||h;bt.useEffect(()=>{pe&&ce(he)},[he]),bt.useEffect(()=>(we.current=!0,()=>{we.current=!1}),[]);let{registerPath:mt,unregisterPath:Qe,refreshOverflowKeys:$t,isSubPathKey:wt,getKeyPath:gt,getKeys:ht,getSubPathKeys:yt}=gx(),Rt=bt.useMemo(()=>({registerPath:mt,unregisterPath:Qe}),[mt,Qe]),_e=bt.useMemo(()=>({isSubPathKey:wt}),[wt]);bt.useEffect(()=>{$t(qe?Ra:J.slice(Pe+1).map(ze=>ze.key))},[Pe,qe]);let[xt,be]=st(C||R&&J[0]?.key,C),oe=ws(ze=>{be(ze)}),me=ws(()=>{be(void 0)});(0,HI.useImperativeHandle)(t,()=>({list:ie.current,focus:ze=>{let ot=ht(),{elements:dt,key2element:Ae,element2key:je}=fd(ot,de),Tt=tf(ie.current,dt),mo;xt&&ot.includes(xt)?mo=xt:mo=Tt[0]?je.get(Tt[0]):J.find(jt=>!jt.props.disabled)?.key;let vt=Ae.get(mo);mo&&vt&&vt?.focus?.(ze)},findItem:({key:ze})=>{let ot=ht(),{key2element:dt}=fd(ot,de);return dt.get(ze)||null}}));let[Q,ge]=st(P||[],N),ye=bt.useMemo(()=>Array.isArray(Q)?Q:Q==null?Ra:[Q],[Q]),ke=ze=>{if(w){let{key:ot}=ze,dt=ye.includes(ot),Ae;I?dt?Ae=ye.filter(Tt=>Tt!==ot):Ae=[...ye,ot]:Ae=[ot],ge(Ae);let je={...ze,selectedKeys:Ae};dt?O?.(je):E?.(je)}!I&&he.length&&ue!=="inline"&&ne(Ra)},Je=ws(ze=>{Y?.(Ca(ze)),ke(ze)}),At=ws((ze,ot)=>{let dt=he.filter(Ae=>Ae!==ze);if(ot)dt.push(ze);else if(ue!=="inline"){let Ae=yt(ze);dt=dt.filter(je=>!Ae.has(je))}Mr(he,dt,!0)||ne(dt,!0)}),Pt=AI(ue,xt,Ee,de,ie,ht,gt,be,(ze,ot)=>{let dt=ot??!he.includes(ze);At(ze,dt)},U);bt.useEffect(()=>{re(!0)},[]);let to=bt.useMemo(()=>({_internalRenderMenuItem:X,_internalRenderSubMenuItem:k}),[X,k]),ao=ue!=="horizontal"||h?J:J.map((ze,ot)=>bt.createElement(Ai,{key:ze.key,overflowDisabled:ot>Pe,classNames:a,styles:s},ze)),$n=bt.createElement(ii,wx({id:m,ref:ie,prefixCls:`${o}-overflow`,component:"ul",itemComponent:si,className:$(o,`${o}-root`,`${o}-${ue}`,i,{[`${o}-inline-collapsed`]:ve,[`${o}-rtl`]:Ee},n),dir:u,style:r,role:"menu",tabIndex:c,data:ao,renderRawItem:ze=>ze,renderRawRest:ze=>{let ot=ze.length,dt=ot?J.slice(-ot):null;return bt.createElement(Rs,{eventKey:of,title:G,disabled:qe,internalPopupClose:ot===0,popupClassName:V},dt)},maxCount:ue!=="horizontal"||h?ii.INVALIDATE:ii.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:ze=>{Ge(ze)},onKeyDown:Pt},ee));return bt.createElement(Al.Provider,{value:to},bt.createElement(ax.Provider,{value:de},bt.createElement(Ai,{prefixCls:o,rootClassName:n,classNames:a,styles:s,mode:ue,openKeys:he,rtl:Ee,disabled:p,motion:le?A:null,defaultMotions:le?F:null,activeKey:xt,onActive:oe,onInactive:me,selectedKeys:ye,inlineIndent:D,subMenuOpenDelay:y,subMenuCloseDelay:x,forceSubMenuRender:b,builtinPlacements:T,triggerSubMenuAction:_,getPopupContainer:j,itemIcon:L,expandIcon:z,onItemClick:Je,onOpenChange:At,popupRender:H},bt.createElement(Qp.Provider,{value:_e},$n),bt.createElement("div",{style:{display:"none"},"aria-hidden":!0},bt.createElement(cx.Provider,{value:Rt},te)))))}),WI=X_;var Sd=WI;Sd.Item=si;Sd.SubMenu=Rs;Sd.ItemGroup=Dl;Sd.Divider=wa;var df=Sd;var Cd=M(require("react")),uf=require("react");var mf=Cd.createContext({});var or=M(require("react")),mN=require("react");var pf=M(require("react"));var Y_={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"},jI=Y_;function Rx(){return Rx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Rx.apply(this,arguments)}var Z_=(e,t)=>pf.createElement(Ot,Rx({},e,{ref:t,icon:jI})),Q_=pf.forwardRef(Z_),Fl=Q_;var UI=require("react"),J_=(0,UI.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),Ea=J_;var ff=M(require("react"));var e6=e=>{let{prefixCls:t,className:o,dashed:n,...r}=e,{getPrefixCls:i}=ff.useContext(Oe),s=i("menu",t),a=$({[`${s}-item-divider-dashed`]:!!n},o);return ff.createElement(wa,{className:a,...r})},gf=e6;var _n=M(require("react"));var Oo=M(require("react"));var KI=M(require("react")),t6=e=>{let{children:t,prefixCls:o,id:n,classNames:r,styles:i,className:s,style:a}=e;return KI.createElement("div",{id:n,className:$(`${o}-container`,r?.container,s),style:{...i?.container,...a},role:"tooltip"},typeof t=="function"?t():t)},wd=t6;var Hr=M(require("react")),hf=require("react");var zl={shiftX:64,adjustY:1},Bl={adjustX:1,shiftY:!0},vr=[0,0],GI={left:{points:["cr","cl"],overflow:Bl,offset:[-4,0],targetOffset:vr},right:{points:["cl","cr"],overflow:Bl,offset:[4,0],targetOffset:vr},top:{points:["bc","tc"],overflow:zl,offset:[0,-4],targetOffset:vr},bottom:{points:["tc","bc"],overflow:zl,offset:[0,4],targetOffset:vr},topLeft:{points:["bl","tl"],overflow:zl,offset:[0,-4],targetOffset:vr},leftTop:{points:["tr","tl"],overflow:Bl,offset:[-4,0],targetOffset:vr},topRight:{points:["br","tr"],overflow:zl,offset:[0,-4],targetOffset:vr},rightTop:{points:["tl","tr"],overflow:Bl,offset:[4,0],targetOffset:vr},bottomRight:{points:["tr","br"],overflow:zl,offset:[0,4],targetOffset:vr},rightBottom:{points:["bl","br"],overflow:Bl,offset:[4,0],targetOffset:vr},bottomLeft:{points:["tl","bl"],overflow:zl,offset:[0,4],targetOffset:vr},leftBottom:{points:["br","bl"],overflow:Bl,offset:[-4,0],targetOffset:vr}};function Ex(){return Ex=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Ex.apply(this,arguments)}var o6=Hr.forwardRef((e,t)=>{let{trigger:o=["hover","focus"],mouseEnterDelay:n=0,mouseLeaveDelay:r=.1,prefixCls:i="rc-tooltip",children:s,onVisibleChange:a,afterVisibleChange:c,motion:l,placement:d="right",align:u={},destroyOnHidden:m=!1,defaultVisible:f,getTooltipContainer:g,arrowContent:p,overlay:h,id:y,showArrow:x=!0,classNames:b,styles:S,...v}=e,C=Co(y),R=(0,hf.useRef)(null);(0,hf.useImperativeHandle)(t,()=>R.current);let w={...v};"visible"in e&&(w.popupVisible=e.visible);let I=Hr.useMemo(()=>{if(!x)return!1;let N=x===!0?{}:x;return{...N,className:$(N.className,b?.arrow),style:{...N.style,...S?.arrow},content:N.content??p}},[x,b?.arrow,S?.arrow,p]),P=({open:N})=>{let E=Hr.Children.only(s),A={"aria-describedby":[E.props["aria-describedby"],h&&N?C:void 0].filter(Boolean).join(" ")||void 0};return Hr.cloneElement(E,A)};return Hr.createElement(rs,Ex({popupClassName:b?.root,prefixCls:i,popup:Hr.createElement(wd,{key:"content",prefixCls:i,id:C,classNames:b,styles:S},h),action:o,builtinPlacements:GI,popupPlacement:d,ref:R,popupAlign:u,getPopupContainer:g,onOpenChange:a,afterOpenChange:c,popupMotion:l,defaultPopupVisible:f,autoDestroy:m,mouseLeaveDelay:r,popupStyle:S?.root,mouseEnterDelay:n,arrow:I,uniqueContainerClassName:b?.uniqueContainer,uniqueContainerStyle:S?.uniqueContainer},w),P)}),qI=o6;var XI=qI;var $x=M(require("react"));var n6=e=>{let{space:t,form:o,children:n}=e;if(!lo(n))return null;let r=n;return o&&(r=$x.default.createElement(cI,{override:!0,status:!0},r)),t&&(r=$x.default.createElement(O1,null,r)),r},Vr=n6;var YI=M(require("react")),r6=YI.default.createContext(!1),ZI=r6;var QI=M(require("react")),i6=(e,t)=>{let o=n=>typeof n=="boolean"?{show:n}:n||{};return QI.default.useMemo(()=>{let n=o(e),r=o(t);return{...r,...n,show:n.show??r.show??!0}},[e,t])},JI=i6;var Es=M(require("react"));var eN="50%",s6=e=>{let{calc:t,componentCls:o,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:i,tooltipBorderRadius:s,zIndexPopup:a,controlHeight:c,dropShadowPopover:l,paddingSM:d,paddingXS:u,arrowOffsetHorizontal:m,sizePopupArrow:f,antCls:g}=e,[p,h]=qt(g,"tooltip"),y=t(s).add(f).add(m).equal(),b={minWidth:t(s).mul(2).add(f).equal(),minHeight:c,padding:`${q(e.calc(d).div(2).equal())} ${q(u)}`,color:h("overlay-color",r),textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:s,boxSizing:"border-box"},S={[p("valid-offset-x")]:h("arrow-offset-x","var(--arrow-x)"),transformOrigin:[h("valid-offset-x",eN),`var(--arrow-y, ${eN})`].join(" ")};return[{[o]:{...Et(e),position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",filter:l,...S,"&-hidden":{display:"none"},[p("arrow-background-color")]:i,[`${o}-container`]:[b,td(e,!0)],[`&:has(~ ${o}-unique-container)`]:{[`${o}-container`]:{border:"none",background:"transparent"}},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:y},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${o}-inner`]:{borderRadius:e.min(s,rx)}},[`${o}-content`]:{position:"relative"},...tp(e,(v,{darkColor:C})=>({[`&${o}-${v}`]:{[`${o}-container`]:{backgroundColor:C},[`${o}-arrow`]:{[p("arrow-background-color")]:C}}})),"&-rtl":{direction:"rtl"}}},Kp(e,h("arrow-background-color"),{arrowShadow:!1}),{[`${o}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}},{[`${o}-unique-container`]:{...b,...S,position:"absolute",zIndex:t(a).sub(1).equal(),filter:l,"&-hidden":{display:"none"},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},a6=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...Tl({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...Up(Fe(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),yf=(e,t,o=!0)=>Ze("Tooltip",r=>{let{borderRadius:i,colorTextLightSolid:s,colorBgSpotlight:a,maxWidth:c}=r,l=Fe(r,{tooltipMaxWidth:c,tooltipColor:s,tooltipBorderRadius:i,tooltipBg:a});return[s6(l),Ti(r,"zoom-big-fast")]},a6,{resetStyle:!1,injectStyle:o})(e,t);var l6=jo.map(e=>`${e}-inverse`);function tN(e,t=!0){return t?[].concat(Zt(l6),Zt(jo)).includes(e):jo.includes(e)}var bf=(e,t,o)=>{let n=tN(o),[r]=qt(e,"tooltip"),i=$({[`${t}-${o}`]:o&&n}),s={},a={},c=y$(o).toRgb(),d=(.299*c.r+.587*c.g+.114*c.b)/255<.5?"#FFF":"#000";return o&&!n&&(s.background=o,s[r("overlay-color")]=d,a[r("arrow-background-color")]=o),{className:i,overlayStyle:s,arrowStyle:a}};var c6=e=>{let{prefixCls:t,className:o,placement:n="top",title:r,color:i,overlayInnerStyle:s,classNames:a,styles:c}=e,{getPrefixCls:l}=Es.useContext(Oe),d=l("tooltip",t),u=l(),m=oo(d),[f,g]=yf(d,m),p=bf(u,d,i),h=p.arrowStyle,y=Es.useMemo(()=>({container:{...s,...p.overlayStyle}}),[s,p.overlayStyle]),x={...e,placement:n},[b,S]=et([a],[y,c],{props:x}),v=$(m,f,g,d,`${d}-pure`,`${d}-placement-${n}`,o,p.className);return Es.createElement("div",{className:v,style:h},Es.createElement("div",{className:`${d}-arrow`}),Es.createElement(wd,{...e,className:f,prefixCls:d,classNames:b,styles:S},r))},oN=c6;var d6=Oo.forwardRef((e,t)=>{let{prefixCls:o,openClassName:n,getTooltipContainer:r,color:i,children:s,afterOpenChange:a,arrow:c,destroyTooltipOnHide:l,destroyOnHidden:d,title:u,overlay:m,trigger:f,builtinPlacements:g,autoAdjustOverflow:p=!0,motion:h,getPopupContainer:y,placement:x="top",mouseEnterDelay:b,mouseLeaveDelay:S,rootClassName:v,styles:C,classNames:R,onOpenChange:w,overlayInnerStyle:I,overlayStyle:P,overlayClassName:N,...E}=e,[,O]=Gt(),D=e["data-popover-inject"],{getPopupContainer:A,getPrefixCls:F,direction:_,...T}=Ye("tooltip"),{className:L,style:z,classNames:G,styles:V,arrow:j,trigger:Y,mouseEnterDelay:B,mouseLeaveDelay:U}=D?{}:T,K=b??B??.1,Z=S??U??.1,X=JI(c,j),k=X.show,W=f||Y||"hover",H=y||r||A,ee=d??!!l,J=Oo.useContext(ZI),te=Xa("Tooltip"),le=Oo.useRef(null),re=()=>{le.current?.forceAlign()};Oo.useImperativeHandle(t,()=>({forceAlign:re,nativeElement:le.current?.nativeElement,popupElement:le.current?.popupElement}));let[ie,Se]=st(e.defaultOpen??!1,e.open),de=!u&&!m&&u!==0,Ee=_e=>{Se(de?!1:_e),!de&&w&&w(_e)},ae=Oo.useMemo(()=>g||dd({arrowPointAtCenter:X?.pointAtCenter??!1,autoAdjustOverflow:p,arrowWidth:k?O.sizePopupArrow:0,borderRadius:O.borderRadius,offset:O.marginXXS,visibleFirst:!0}),[X,g,O,k,p]),Ne=Oo.useMemo(()=>u===0?u:m||u||"",[m,u]),he=Oo.createElement(Vr,{space:!0,form:!0},ct(Ne)?Ne():Ne),ne={...e,trigger:W,builtinPlacements:ae,getPopupContainer:H,destroyOnHidden:ee,mouseEnterDelay:K,mouseLeaveDelay:Z},fe=De(z),ce=De(P),[we,Le]=et([G,R],[V,fe,C,ce],{props:ne}),Ce=F("tooltip",o),pe=F(),ue=ie;(!("open"in e)&&de||J)&&(ue=!1);let se=Oo.isValidElement(s)&&!zm(s)?s:Oo.createElement("span",null,s),ve=se.props,$e=!ve.className||typeof ve.className=="string"?$(ve.className,n||`${Ce}-open`):ve.className,Pe=oo(Ce),[Ge,qe]=yf(Ce,Pe,!D),mt=bf(pe,Ce,i),Qe=mt.arrowStyle,$t=$(Pe,Ge,qe),wt=$(N,{[`${Ce}-rtl`]:_==="rtl"},mt.className,v,$t,L,we.root),[gt,ht]=ti("Tooltip",E.zIndex),yt={...Le.container,...I,...mt.overlayStyle},Rt=Oo.createElement(XI,{unique:!0,...E,zIndex:gt,showArrow:k,placement:x,mouseEnterDelay:K,mouseLeaveDelay:Z,prefixCls:Ce,classNames:{root:wt,container:we.container,arrow:we.arrow,uniqueContainer:$($t,we.container)},styles:{root:{...Qe,...Le.root},container:yt,uniqueContainer:yt,arrow:Le.arrow},ref:le,overlay:he,visible:ue,onVisibleChange:Ee,afterVisibleChange:a,arrowContent:Oo.createElement("span",{className:`${Ce}-arrow-content`}),motion:{motionName:hr(pe,"zoom-big-fast",typeof h?.motionName=="string"?h?.motionName:void 0),motionDeadline:1e3},trigger:W,builtinPlacements:ae,getTooltipContainer:H,destroyOnHidden:ee},ue&&!E.disabled?Ro(se,{className:$e}):se);return Oo.createElement(cs.Provider,{value:ht},Rt)}),Ix=d6;Ix._InternalPanelDoNotUseOrYouWillBeFired=oN;Ix.UniqueProvider=Wm;var Hl=Ix;var u6=e=>{let{className:t,children:o,icon:n,title:r,danger:i,extra:s}=e,{prefixCls:a,firstLevel:c,direction:l,disableMenuItemTitleTooltip:d,tooltip:u,inlineCollapsed:m,styles:f,classNames:g}=_n.useContext(Ea),{siderCollapsed:p}=_n.useContext(mf),h=!!(p||m),[y,x]=_n.useState(!1);_n.useEffect(()=>{x(!1)},[h]);let b=P=>{let N=o?.[0],E=_n.createElement("span",{className:$(`${a}-title-content`,c?g?.itemContent:g?.subMenu?.itemContent,{[`${a}-title-content-with-extra`]:!!s||s===0}),style:c?f?.itemContent:f?.subMenu?.itemContent},o);return(!n||_n.isValidElement(o)&&o.type==="span")&&o&&P&&c&&typeof N=="string"?_n.createElement("div",{className:`${a}-inline-collapsed-noicon`},N.charAt(0)):E},S=r;typeof r>"u"?S=c?o:"":r===!1&&(S="");let v=u===!1?void 0:u,C=v&&v.title!==void 0?v.title:S,R={...v??null,title:C};h?(R.open=v?.open??y,R.onOpenChange=P=>{x(P),v?.onOpenChange?.(P)}):(R.title=null,R.open=!1);let w=co(o).length,I=_n.createElement(si,{...Ke(e,["title","icon","danger"]),className:$(c?g?.item:g?.subMenu?.item,{[`${a}-item-danger`]:i,[`${a}-item-only-child`]:(n?w+1:w)===1},t),style:{...c?f?.item:f?.subMenu?.item,...e.style},title:typeof r=="string"?r:void 0,itemData:e?.itemData??{...e,key:e.eventKey}},Ro(n,P=>({className:$(`${a}-item-icon`,c?g?.itemIcon:g?.subMenu?.itemIcon,P.className),style:{...c?f?.itemIcon:f?.subMenu?.itemIcon,...P.style}})),b(m));if(!d&&u!==!1){let P=v&&v.placement?v.placement:l==="rtl"?"left":"right",N=`${a}-inline-collapsed-tooltip`,E=D=>({...D,root:$(N,D?.root)}),O=ct(v?.classNames)?D=>{let A=v.classNames(D);return E(A)}:E(v?.classNames);I=_n.createElement(Hl,{...R,placement:P,classNames:O},I)}return I},xf=u6;var tr=M(require("react"));var Nx=tr.createContext(null),nN=tr.forwardRef((e,t)=>{let{children:o,...n}=e,r=tr.useContext(Nx),i=tr.useMemo(()=>({...r,...n}),[r,n.prefixCls,n.mode,n.selectable,n.rootClassName]),s=Rc(o),a=bo(t,s?Po(o):null);return tr.createElement(Nx.Provider,{value:i},tr.createElement(Vr,{space:!0},s?tr.cloneElement(o,{ref:a}):o))}),Px=Nx;var m6=e=>{let{componentCls:t,motionDurationSlow:o,horizontalLineHeight:n,colorSplit:r,lineWidth:i,lineType:s,itemPaddingInline:a}=e;return{[`${t}-horizontal`]:{lineHeight:n,border:0,borderBottom:`${q(i)} ${s} ${r}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:a},[`> ${t}-item:hover,
|
|
148
|
+
`]:{[`&:hover ${t}`]:{borderColor:e.colorPrimary}},[`${r}:not(${r}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}}},{[`${t}-checked`]:{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}`,...Rl()},[i]:{[`&:not(${t}-disabled):hover`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}}},{[t]:{"&-indeterminate":{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:'""'},[i]:{[`&:not(${t}-disabled):hover`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorPrimary}}}}},{[`${r}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate::after`]:{background:e.colorTextDisabled}}}]};function p_(e,t){let o=Fe(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return m_(o)}var Bp=Ze("Checkbox",(e,{prefixCls:t})=>[p_(t,e)]);var pI=M(require("react"));function Jb(e){let t=pI.default.useRef(null),o=()=>{He.cancel(t.current),t.current=null};return[()=>{o(),t.current=He(()=>{t.current=null})},i=>{t.current&&(i.stopPropagation(),o()),e?.(i)}]}var f_=(e,t)=>{let{prefixCls:o,children:n,indeterminate:r=!1,onMouseEnter:i,onMouseLeave:s,skipGroup:a=!1,disabled:c,rootClassName:l,className:d,style:u,classNames:m,styles:f,name:g,value:p,checked:h,defaultChecked:y,onChange:x,...b}=e,{getPrefixCls:S,direction:v,className:C,style:R,classNames:w,styles:I}=Ye("checkbox"),P=dn.useContext(zp),{isFormItemInput:N}=dn.useContext(cn),E=dn.useContext(zo),O=c??P?.disabled??E,[L,k]=st(y,h),z=L,_=Ie(Q=>{k(Q.target.checked),x?.(Q),!a&&P?.toggleOption&&P.toggleOption({label:n,value:p})});P&&!a&&(z=P.value.includes(p));let T=dn.useRef(null),D=bo(t,T);dn.useEffect(()=>{if(!(a||!P))return P.registerValue(p),()=>{P.cancelValue(p)}},[p,a]),dn.useEffect(()=>{T.current?.input&&(T.current.input.indeterminate=r)},[r]);let F=S("checkbox",o),G=oo(F),[H,W]=Bp(F,G),X={...b},B={...e,indeterminate:r,disabled:O,checked:z},j=De(R),U=De(u),[Z,Y]=et([w,m],[I,j,f,U],{props:B}),K=$(`${F}-wrapper`,{[`${F}-rtl`]:v==="rtl",[`${F}-wrapper-checked`]:z,[`${F}-wrapper-disabled`]:O,[`${F}-wrapper-in-form-item`]:N},C,d,Z.root,l,W,G,H),V=$(Z.icon,{[`${F}-indeterminate`]:r},bl,H),[A,ee]=Jb(X.onClick);return dn.createElement(vl,{component:"Checkbox",disabled:O},dn.createElement("label",{className:K,style:Y.root,onMouseEnter:i,onMouseLeave:s,onClick:A},dn.createElement(E$,{...X,name:!a&&P?P.name:g,checked:z,onClick:ee,onChange:_,prefixCls:F,className:V,style:Y.icon,disabled:O,ref:D,value:p}),lo(n)&&dn.createElement("span",{className:$(`${F}-label`,Z.label),style:Y.label},n)))},g_=dn.forwardRef(f_),Hp=g_;var Jn=M(require("react"));var h_=Jn.forwardRef((e,t)=>{let{defaultValue:o,children:n,options:r=[],prefixCls:i,className:s,rootClassName:a,style:c,onChange:l,role:d="group",...u}=e,{getPrefixCls:m,direction:f}=Jn.useContext(Oe),[g,p]=st(o||[],u.value),h=g||[],[y,x]=Jn.useState([]),b=Jn.useMemo(()=>r.map(z=>Pn(z)||Ko(z)?{label:z,value:z}:z).filter(z=>Nn(z)&&Nn(z.value)),[r]),S=z=>{x(_=>_.filter(T=>T!==z))},v=z=>{x(_=>[].concat(Zt(_),[z]))},C=z=>{let _=h.indexOf(z.value),T=Zt(h);_===-1?T.push(z.value):T.splice(_,1),p(T),l?.(T.filter(D=>y.includes(D)).sort((D,F)=>{let G=b.findIndex(W=>W.value===D),H=b.findIndex(W=>W.value===F);return G-H}))},R=m("checkbox",i),w=`${R}-group`,I=oo(R),[P,N]=Bp(R,I),E=Ke(u,["value","disabled"]),O=Array.isArray(b)&&b.length>0?b.map(z=>Jn.createElement(Hp,{prefixCls:R,key:z.value.toString(),disabled:"disabled"in z?z.disabled:u.disabled,value:z.value,checked:h.includes(z.value),onChange:z.onChange,className:$(`${w}-item`,z.className),style:z.style,title:z.title,id:z.id,required:z.required},z.label)):n,L=Jn.useMemo(()=>({toggleOption:C,value:h,disabled:u.disabled,name:u.name,registerValue:v,cancelValue:S}),[C,h,u.disabled,u.name,v,S]),k=$(w,{[`${w}-rtl`]:f==="rtl"},s,a,N,I,P);return Jn.createElement("div",{className:k,style:c,role:d,...E,ref:t},Jn.createElement(zp.Provider,{value:L},O))});var fI=h_;var ex=Hp;ex.Group=fI;ex.__ANT_CHECKBOX=!0;var gI=ex;var no=M(require("react"));var Vp=M(require("react"));var y_={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"},hI=y_;function tx(){return tx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},tx.apply(this,arguments)}var b_=(e,t)=>Vp.createElement(Ot,tx({},e,{ref:t,icon:hI})),x_=Vp.forwardRef(b_),yI=x_;var yr=M(require("react"));var Wp=M(require("react")),{ESC:v_,TAB:S_}=Me;function ox({visible:e,triggerRef:t,onVisibleChange:o,autoFocus:n,overlayRef:r}){let i=Wp.useRef(!1),s=()=>{e&&(t.current?.focus?.(),o?.(!1))},a=()=>r.current?.focus?(r.current.focus(),i.current=!0,!0):!1,c=l=>{switch(l.keyCode){case v_:s();break;case S_:{let d=!1;i.current||(d=a()),d?l.preventDefault():s();break}}};Wp.useEffect(()=>e?(window.addEventListener("keydown",c),n&&He(a,3),()=>{window.removeEventListener("keydown",c),i.current=!1}):()=>{i.current=!1},[e])}var Oi=M(require("react")),C_=(0,Oi.forwardRef)((e,t)=>{let{overlay:o,arrow:n,prefixCls:r}=e,i=(0,Oi.useMemo)(()=>{let a;return typeof o=="function"?a=o():a=o,a},[o]),s=Mt(t,To(i));return Oi.default.createElement(Oi.default.Fragment,null,n&&Oi.default.createElement("div",{className:`${r}-arrow`}),Oi.default.cloneElement(i,{ref:dr(i)?s:void 0}))}),bI=C_;var Nl={adjustX:1,adjustY:1},Pl=[0,0],w_={topLeft:{points:["bl","tl"],overflow:Nl,offset:[0,-4],targetOffset:Pl},top:{points:["bc","tc"],overflow:Nl,offset:[0,-4],targetOffset:Pl},topRight:{points:["br","tr"],overflow:Nl,offset:[0,-4],targetOffset:Pl},bottomLeft:{points:["tl","bl"],overflow:Nl,offset:[0,4],targetOffset:Pl},bottom:{points:["tc","bc"],overflow:Nl,offset:[0,4],targetOffset:Pl},bottomRight:{points:["tr","br"],overflow:Nl,offset:[0,4],targetOffset:Pl}},xI=w_;function nx(){return nx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},nx.apply(this,arguments)}var R_=yr.default.forwardRef((e,t)=>{let{arrow:o=!1,prefixCls:n="rc-dropdown",transitionName:r,animation:i,align:s,placement:a="bottomLeft",placements:c=xI,getPopupContainer:l,showAction:d,hideAction:u,overlayClassName:m,overlayStyle:f,visible:g,trigger:p=["hover"],autoFocus:h,overlay:y,children:x,onVisibleChange:b,disabled:S,...v}=e,[C,R]=yr.default.useState(),w="visible"in e?g:C,I=i?`${n}-${i}`:r,P=yr.default.useRef(null),N=yr.default.useRef(null),E=yr.default.useRef(null);yr.default.useImperativeHandle(t,()=>P.current);let O=X=>{R(X),b?.(X)};ox({visible:w,triggerRef:E,onVisibleChange:O,autoFocus:h,overlayRef:N});let L=X=>{let{onOverlayClick:B}=e;R(!1),B&&B(X)},k=()=>yr.default.createElement(bI,{ref:N,overlay:y,prefixCls:n,arrow:o}),z=()=>typeof y=="function"?k:k(),_=()=>{let{minOverlayWidthMatchTrigger:X,alignPoint:B}=e;return"minOverlayWidthMatchTrigger"in e?X:!B},T=()=>{let{openClassName:X}=e;return X!==void 0?X:`${n}-open`},D=x,F=$(D.props?.className,w&&T()),G={className:F,ref:Mt(E,To(D))},H=dr(D)?yr.default.cloneElement(D,G):yr.default.createElement("span",{className:F,ref:E},yr.default.cloneElement(D,{className:F})),W=u;return!W&&p.indexOf("contextMenu")!==-1&&(W=["click"]),yr.default.createElement(rs,nx({builtinPlacements:c},v,{prefixCls:n,ref:P,popupClassName:$(m,{[`${n}-show-arrow`]:o}),popupStyle:f,action:p,showAction:d,hideAction:W,popupPlacement:a,popupAlign:s,popupMotion:{motionName:I},popupVisible:w,stretch:_()?"minWidth":"",popup:z(),onOpenChange:O,onPopupClick:L,getPopupContainer:l}),H)}),vI=R_;var jp=vI;function Up(e){let{sizePopupArrow:t,borderRadiusXS:o,borderRadiusOuter:n}=e,r=t/2,i=0,s=r,a=n*1/Math.sqrt(2),c=r-n*(1-1/Math.sqrt(2)),l=r-o*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+o*(1/Math.sqrt(2)),u=2*r-l,m=d,f=2*r-a,g=c,p=2*r-i,h=s,y=r*Math.sqrt(2)+n*(Math.sqrt(2)-2),x=n*(Math.sqrt(2)-1),b=`polygon(${x}px 100%, 50% ${x}px, ${2*r-x}px 100%, ${x}px 100%)`,S=`path('M ${i} ${s} A ${n} ${n} 0 0 0 ${a} ${c} L ${l} ${d} A ${o} ${o} 0 0 1 ${u} ${m} L ${f} ${g} A ${n} ${n} 0 0 0 ${p} ${h} Z')`;return{arrowShadowWidth:y,arrowPath:S,arrowPolygon:b}}var SI=(e,t,o)=>{let{sizePopupArrow:n,arrowPolygon:r,arrowPath:i,arrowShadowWidth:s,borderRadiusXS:a,calc:c}=e,l={content:'""',position:"absolute",width:s,height:s,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${q(a)} 0`},transform:"translateY(50%) rotate(-135deg)",zIndex:0,background:"transparent"};return o&&(l.boxShadow=o),{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:c(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[r,i]},content:'""'},"&::after":l}};var rx=8;function Tl(e){let{contentRadius:t,limitVerticalRadius:o}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:o?rx:n}}var E_=(e,t,o)=>{let{componentCls:n,boxShadowPopoverArrow:r,arrowOffsetVertical:i,arrowOffsetHorizontal:s,antCls:a}=e,[c]=qt(a,"tooltip"),{arrowDistance:l=0,arrowShadow:d=!0}=o||{};return{[n]:{[`${n}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...SI(e,t,d?r:!1),"&:before":{background:t}}],[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{[c("arrow-offset-x")]:s,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-topRight":{[c("arrow-offset-x")]:`calc(100% - ${q(s)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:s}}},[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{[c("arrow-offset-x")]:s,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-bottomRight":{[c("arrow-offset-x")]:`calc(100% - ${q(s)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:s}}},[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:i},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:i},[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:i},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:i}}}},Kp=E_;function $_(e,t,o,n){if(n===!1)return{adjustX:!1,adjustY:!1};let r=at(n)?n:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+o,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+o,i.shiftX=!0,i.adjustX=!0;break}let s={...i,...r};return s.shiftX||(s.adjustX=!0),s.shiftY||(s.adjustY=!0),s}var CI={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"]}},I_={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"]}},N_=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function dd(e){let{arrowWidth:t,autoAdjustOverflow:o,arrowPointAtCenter:n,offset:r,borderRadius:i,visibleFirst:s}=e,a=t/2,c={},l=Tl({contentRadius:i,limitVerticalRadius:!0});return Object.keys(CI).forEach(d=>{let m={...n&&I_[d]||CI[d],offset:[0,0],dynamicInset:!0};switch(c[d]=m,N_.has(d)&&(m.autoArrow=!1),d){case"top":case"topLeft":case"topRight":m.offset[1]=-a-r;break;case"bottom":case"bottomLeft":case"bottomRight":m.offset[1]=a+r;break;case"left":case"leftTop":case"leftBottom":m.offset[0]=-a-r;break;case"right":case"rightTop":case"rightBottom":m.offset[0]=a+r;break}if(n)switch(d){case"topLeft":case"bottomLeft":m.offset[0]=-l.arrowOffsetHorizontal-a;break;case"topRight":case"bottomRight":m.offset[0]=l.arrowOffsetHorizontal+a;break;case"leftTop":case"rightTop":m.offset[1]=-l.arrowOffsetHorizontal*2+a;break;case"leftBottom":case"rightBottom":m.offset[1]=l.arrowOffsetHorizontal*2-a;break}m.overflow=$_(d,l,t,o),s&&(m.htmlRegion="visibleFirst")}),c}var Dn=M(require("react"));function ix(e){return t=>Dn.createElement(as,{theme:{token:{motion:!1,zIndexPopupBase:0}}},Dn.createElement(e,{...t}))}var P_=(e,t,o,n,r)=>ix(s=>{let{prefixCls:a,style:c}=s,l=Dn.useRef(null),[d,u]=Dn.useState(0),[m,f]=Dn.useState(0),[g,p]=st(!1,s.open),{getPrefixCls:h}=Dn.useContext(Oe),y=h(n||"select",a);Dn.useEffect(()=>{if(p(!0),typeof ResizeObserver<"u"){let S=new ResizeObserver(C=>{let R=C[0].target;u(R.offsetHeight+8),f(R.offsetWidth)}),v=setInterval(()=>{let C=r?`.${r(y)}`:`.${y}-dropdown`,R=l.current?.querySelector(C);R&&(clearInterval(v),S.observe(R))},10);return()=>{clearInterval(v),S.disconnect()}}},[y]);let x={...s,style:{...c,margin:0},open:g,getPopupContainer:()=>l.current};return o&&(x=o(x)),t&&(x={...x,[t]:{overflow:{adjustX:!1,adjustY:!1}}}),Dn.createElement("div",{ref:l,style:{paddingBottom:d,position:"relative",minWidth:m}},Dn.createElement(e,{...x}))}),Gp=P_;var Sf=M(require("react")),Vl=require("react");var er=M(require("react")),ri=require("react");var xa=M(require("react"));var Ml=void 0;function T_(e,t){let{prefixCls:o,invalidate:n,item:r,renderItem:i,responsive:s,responsiveDisabled:a,registerSize:c,itemKey:l,className:d,style:u,children:m,display:f,order:g,component:p="div",...h}=e,y=s&&!f;function x(R){c(l,R)}xa.useEffect(()=>()=>{x(null)},[]);let b=i&&r!==Ml?i(r,{index:g}):m,S;n||(S={opacity:y?0:1,height:y?0:Ml,overflowY:y?"hidden":Ml,order:s?g:Ml,pointerEvents:y?"none":Ml,position:y?"absolute":Ml});let v={};y&&(v["aria-hidden"]=!0);let C=xa.createElement(p,Zn({className:$(!n&&o,d),style:{...S,...u}},v,h,{ref:t}),b);return s&&(C=xa.createElement(sn,{onResize:({offsetWidth:R})=>{x(R)},disabled:a},C)),C}var M_=xa.forwardRef(T_),va=M_;var qp=M(require("react")),wI=require("react-dom");function sx(e){if(typeof MessageChannel>"u")He(e);else{let t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0)}}function RI(){let e=qp.useRef(null);return o=>{e.current||(e.current=[],sx(()=>{(0,wI.unstable_batchedUpdates)(()=>{e.current.forEach(n=>{n()}),e.current=null})})),e.current.push(o)}}function vs(e,t){let[o,n]=qp.useState(t),r=Ie(i=>{e(()=>{n(i)})});return[o,r]}var Ss=M(require("react"));var EI=M(require("react")),Sa=EI.default.createContext(null);var O_=(e,t)=>{let o=Ss.useContext(Sa);if(!o){let{component:a="div",...c}=e;return Ss.createElement(a,Zn({},c,{ref:t}))}let{className:n,...r}=o,{className:i,...s}=e;return Ss.createElement(Sa.Provider,{value:null},Ss.createElement(va,Zn({ref:t,className:$(n,i)},r,s)))},A_=Ss.forwardRef(O_),$I=A_;var II="responsive",NI="invalidate";function k_(e){return`+ ${e.length} ...`}function L_(e,t){let{prefixCls:o="rc-overflow",data:n=[],renderItem:r,renderRawItem:i,itemKey:s,itemWidth:a=10,ssr:c,style:l,className:d,maxCount:u,renderRest:m,renderRawRest:f,prefix:g,suffix:p,component:h="div",itemComponent:y,onVisibleChange:x,...b}=e,S=c==="full",v=RI(),[C,R]=vs(v,null),w=C||0,[I,P]=vs(v,new Map),[N,E]=vs(v,0),[O,L]=vs(v,0),[k,z]=vs(v,0),[_,T]=vs(v,0),[D,F]=(0,ri.useState)(null),[G,H]=(0,ri.useState)(null),W=er.useMemo(()=>G===null&&S?Number.MAX_SAFE_INTEGER:G||0,[G,C]),[X,B]=(0,ri.useState)(!1),j=`${o}-item`,U=Math.max(N,O),Z=u===II,Y=n.length&&Z,K=u===NI,V=Y||typeof u=="number"&&n.length>u,A=(0,ri.useMemo)(()=>{let pe=n;return Y?C===null&&S?pe=n:pe=n.slice(0,Math.min(n.length,w/a)):typeof u=="number"&&(pe=n.slice(0,u)),pe},[n,a,C,u,Y]),ee=(0,ri.useMemo)(()=>Y?n.slice(W+1):n.slice(A.length),[n,A,Y,W]),Q=(0,ri.useCallback)((pe,ue)=>typeof s=="function"?s(pe):(s&&pe?.[s])??ue,[s]),te=(0,ri.useCallback)(r||(pe=>pe),[r]);function le(pe,ue,se){G===pe&&(ue===void 0||ue===D)||(H(pe),se||(B(pe<n.length-1),x?.(pe)),ue!==void 0&&F(ue))}function re(pe,ue){R(ue.clientWidth)}function ie(pe,ue){P(se=>{let ve=new Map(se);return ue===null?ve.delete(pe):ve.set(pe,ue),ve})}function Se(pe,ue){L(ue),E(O)}function de(pe,ue){z(ue)}function Ee(pe,ue){T(ue)}function ae(pe){return I.get(Q(A[pe],pe))}it(()=>{if(w&&typeof U=="number"&&A){let pe=k+_,ue=A.length,se=ue-1;if(!ue){le(0,null);return}for(let ve=0;ve<ue;ve+=1){let $e=ae(ve);if(S&&($e=$e||0),$e===void 0){le(ve-1,void 0,!0);break}if(pe+=$e,se===0&&pe<=w||ve===se-1&&pe+ae(se)<=w){le(se,null);break}else if(pe+U>w){le(ve-1,pe-$e-_+O);break}}p&&ae(0)+_>w&&F(null)}},[w,I,O,k,_,Q,A]);let Ne=X&&!!ee.length,he={};D!==null&&Y&&(he={position:"absolute",top:0,insetInlineStart:D});let ne={prefixCls:j,responsive:Y,component:y,invalidate:K},fe=i?(pe,ue)=>{let se=Q(pe,ue);return er.createElement(Sa.Provider,{key:se,value:{...ne,order:ue,item:pe,itemKey:se,registerSize:ie,display:ue<=W}},i(pe,ue))}:(pe,ue)=>{let se=Q(pe,ue);return er.createElement(va,Zn({},ne,{order:ue,key:se,item:pe,renderItem:te,itemKey:se,registerSize:ie,display:ue<=W}))},ce={order:Ne?W:Number.MAX_SAFE_INTEGER,className:`${j}-rest`,registerSize:Se,display:Ne},we=m||k_,Le=f?er.createElement(Sa.Provider,{value:{...ne,...ce}},f(ee)):er.createElement(va,Zn({},ne,ce),typeof we=="function"?we(ee):we),Ce=er.createElement(h,Zn({className:$(!K&&o,d),style:l,ref:t},b),g&&er.createElement(va,Zn({},ne,{responsive:Z,responsiveDisabled:!Y,order:-1,className:`${j}-prefix`,registerSize:de,display:!0}),g),A.map(fe),V?Le:null,p&&er.createElement(va,Zn({},ne,{responsive:Z,responsiveDisabled:!Y,order:W,className:`${j}-suffix`,registerSize:Ee,display:!0,style:he}),p));return Z?er.createElement(sn,{onResize:re,disabled:!Y},Ce):Ce}var Xp=er.forwardRef(L_);Xp.Item=$I;Xp.RESPONSIVE=II;Xp.INVALIDATE=NI;var PI=Xp;var ii=PI;var bt=M(require("react")),VI=require("react"),WI=require("react-dom");var Yp=M(require("react")),ax=Yp.createContext(null);function lx(e,t){return`${e}-${t}`}function Zp(e){let t=Yp.useContext(ax);return lx(t,e)}var Ol=M(require("react"));var $o=Ol.createContext(null);function D_(e,t){let o={...e};return Object.keys(t).forEach(n=>{let r=t[n];r!==void 0&&(o[n]=r)}),o}function Ai({children:e,locked:t,...o}){let n=Ol.useContext($o),r=Kn(()=>D_(n,o),[n,o],(i,s)=>!t&&(i[0]!==s[0]||!Mr(i[1],s[1],!0)));return Ol.createElement($o.Provider,{value:r},e)}var ki=M(require("react")),__=[],cx=ki.createContext(null);function Cs(){return ki.useContext(cx)}var dx=ki.createContext(__);function zr(e){let t=ki.useContext(dx);return ki.useMemo(()=>e!==void 0?[...t,e]:t,[t,e])}var Qp=ki.createContext(null);var TI=M(require("react")),F_=TI.createContext({}),Al=F_;var pd=M(require("react"));var{LEFT:ux,RIGHT:mx,UP:px,DOWN:Jp,ENTER:ef,ESC:AI,HOME:ud,END:md}=Me,MI=[px,Jp,ux,mx];function z_(e,t,o,n){let r="prev",i="next",s="children",a="parent";if(e==="inline"&&n===ef)return{inlineTrigger:!0};let c={[px]:r,[Jp]:i},l={[ux]:o?i:r,[mx]:o?r:i,[Jp]:s,[ef]:s},d={[px]:r,[Jp]:i,[ef]:s,[AI]:a,[ux]:o?s:a,[mx]:o?a:s};switch({inline:c,horizontal:l,vertical:d,inlineSub:c,horizontalSub:d,verticalSub:d}[`${e}${t?"":"Sub"}`]?.[n]){case r:return{offset:-1,sibling:!0};case i:return{offset:1,sibling:!0};case a:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function B_(e){let t=e;for(;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function H_(e,t){let o=e||document.activeElement;for(;o;){if(t.has(o))return o;o=o.parentElement}return null}function tf(e,t){return Ec(e,!0).filter(n=>t.has(n))}function OI(e,t,o,n=1){if(!e)return null;let r=tf(e,t),i=r.length,s=r.findIndex(a=>o===a);return n<0?s===-1?s=i-1:s-=1:n>0&&(s+=1),s=(s+i)%i,r[s]}var fd=(e,t)=>{let o=new Set,n=new Map,r=new Map;return e.forEach(i=>{let s=document.querySelector(`[data-menu-id='${lx(t,i)}']`);s&&(o.add(s),r.set(s,i),n.set(i,s))}),{elements:o,key2element:n,element2key:r}};function kI(e,t,o,n,r,i,s,a,c,l){let d=pd.useRef(void 0),u=pd.useRef(void 0);u.current=t;let m=()=>{He.cancel(d.current)};return pd.useEffect(()=>()=>{m()},[]),f=>{let{which:g}=f;if([...MI,ef,AI,ud,md].includes(g)){let p=i(),h=fd(p,n),{elements:y,key2element:x,element2key:b}=h,S=x.get(t),v=H_(S,y),C=b.get(v),R=z_(e,s(C,!0).length===1,o,g);if(!R&&g!==ud&&g!==md)return;(MI.includes(g)||[ud,md].includes(g))&&f.preventDefault();let w=I=>{if(I){let P=I,N=I.querySelector("a");N?.getAttribute("href")&&(P=N);let E=b.get(I);a(E),m(),d.current=He(()=>{u.current===E&&P.focus()})}};if([ud,md].includes(g)||R.sibling||!v){let I;!v||e==="inline"?I=r.current:I=B_(v);let P,N=tf(I,y);g===ud?P=N[0]:g===md?P=N[N.length-1]:P=OI(I,y,v,R.offset),w(P)}else if(R.inlineTrigger)c(C);else if(R.offset>0)c(C,!0),m(),d.current=He(()=>{h=fd(p,n);let I=v.getAttribute("aria-controls"),P=document.getElementById(I),N=OI(P,h.elements);w(N)},5);else if(R.offset<0){let I=s(C,!0),P=I[I.length-2],N=x.get(P);c(P,!1),w(N)}}l?.(f)}}var gd=M(require("react")),br=require("react");function LI(e){Promise.resolve().then(e)}var fx="__RC_UTIL_PATH_SPLIT__",DI=e=>e.join(fx),V_=e=>e.split(fx),of="rc-menu-more";function gx(){let[,e]=gd.useState({}),t=(0,br.useRef)(new Map),o=(0,br.useRef)(new Map),[n,r]=gd.useState([]),i=(0,br.useRef)(0),s=(0,br.useRef)(!1),a=()=>{s.current||e({})},c=(0,br.useCallback)((p,h)=>{let y=DI(h);o.current.set(y,p),t.current.set(p,y),i.current+=1;let x=i.current;LI(()=>{x===i.current&&a()})},[]),l=(0,br.useCallback)((p,h)=>{let y=DI(h);o.current.delete(y),t.current.delete(p)},[]),d=(0,br.useCallback)(p=>{r(p)},[]),u=(0,br.useCallback)((p,h)=>{let y=t.current.get(p)||"",x=V_(y);return h&&n.includes(x[0])&&x.unshift(of),x},[n]),m=(0,br.useCallback)((p,h)=>p.filter(y=>y!==void 0).some(y=>u(y,!0).includes(h)),[u]),f=()=>{let p=[...t.current.keys()];return n.length&&p.push(of),p},g=(0,br.useCallback)(p=>{let h=`${t.current.get(p)}${fx}`,y=new Set;return[...o.current.keys()].forEach(x=>{x.startsWith(h)&&y.add(o.current.get(x))}),y},[]);return gd.useEffect(()=>()=>{s.current=!0},[]),{registerPath:c,unregisterPath:l,refreshOverflowKeys:d,isSubPathKey:m,getKeyPath:u,getKeys:f,getSubPathKeys:g}}var nf=M(require("react"));function ws(e){let t=nf.useRef(e);t.current=e;let o=nf.useCallback((...n)=>t.current?.(...n),[]);return e?o:void 0}var Wo=M(require("react"));var _I=M(require("react"));function hd(e,t,o,n){let{activeKey:r,onActive:i,onInactive:s}=_I.useContext($o),a={active:r===e};return t||(a.onMouseEnter=c=>{o?.({key:e,domEvent:c}),i(e)},a.onMouseLeave=c=>{n?.({key:e,domEvent:c}),s(e)}),a}var FI=M(require("react"));function yd(e){let{mode:t,rtl:o,inlineIndent:n}=FI.useContext($o);if(t!=="inline")return null;let r=e;return o?{paddingRight:r*n}:{paddingLeft:r*n}}var zI=M(require("react"));function bd({icon:e,props:t,children:o}){let n;return e===null||e===!1?null:(typeof e=="function"?n=zI.createElement(e,{...t}):typeof e!="boolean"&&(n=e),n||o||null)}function Ca({item:e,...t}){return Object.defineProperty(t,"item",{get:()=>(Kt(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function xd(){return xd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},xd.apply(this,arguments)}var hx=class extends Wo.Component{render(){let{title:t,attribute:o,elementRef:n,...r}=this.props,i=Ke(r,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Kt(!o,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),Wo.createElement(ii.Item,xd({},o,{title:typeof t=="string"?t:void 0},i,{ref:n}))}},W_=Wo.forwardRef((e,t)=>{let{style:o,className:n,eventKey:r,warnKey:i,disabled:s,itemIcon:a,children:c,itemData:l,role:d,onMouseEnter:u,onMouseLeave:m,onClick:f,onKeyDown:g,onFocus:p,...h}=e,y=Zp(r),{prefixCls:x,onItemClick:b,disabled:S,overflowDisabled:v,itemIcon:C,selectedKeys:R,onActive:w}=Wo.useContext($o),{_internalRenderMenuItem:I}=Wo.useContext(Al),P=`${x}-item`,N=Wo.useRef(null),E=Wo.useRef(null),O=S||s,L=bo(t,E),k=zr(r),z=U=>{let Z=l||{key:r||"",label:c,itemIcon:a,extra:e.extra,title:e.title};return{key:r,keyPath:[...k].reverse(),item:N.current,domEvent:U,itemData:l||Z}},_=a||C,{active:T,...D}=hd(r,O,u,m),F=R.includes(r),G=yd(k.length),H=U=>{if(O)return;let Z=z(U);f?.(Ca(Z)),b(Z)},W=U=>{if(g?.(U),U.which===Me.ENTER){let Z=z(U);f?.(Ca(Z)),b(Z)}},X=U=>{w(r),p?.(U)},B={};e.role==="option"&&(B["aria-selected"]=F);let j=Wo.createElement(hx,xd({ref:N,elementRef:L,role:d===null?"none":d||"menuitem",tabIndex:s?null:-1,"data-menu-id":v&&y?null:y},Ke(h,["extra"]),D,B,{component:"li","aria-disabled":s,style:{...G,...o},className:$(P,{[`${P}-active`]:T,[`${P}-selected`]:F,[`${P}-disabled`]:O},n),onClick:H,onKeyDown:W,onFocus:X}),c,Wo.createElement(bd,{props:{...e,isSelected:F},icon:_}));return I&&(j=I(j,e,{selected:F})),j});function j_(e,t){let{eventKey:o}=e,n=Cs(),r=zr(o);return Wo.useEffect(()=>{if(n)return n.registerPath(o,r),()=>{n.unregisterPath(o,r)}},[r]),n?null:Wo.createElement(W_,xd({},e,{ref:t}))}var si=Wo.forwardRef(j_);var Nt=M(require("react"));var kl=M(require("react"));function yx(){return yx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},yx.apply(this,arguments)}var U_=({className:e,children:t,...o},n)=>{let{prefixCls:r,mode:i,rtl:s}=kl.useContext($o);return kl.createElement("ul",yx({className:$(r,s&&`${r}-rtl`,`${r}-sub`,`${r}-${i==="inline"?"inline":"vertical"}`,e),role:"menu"},o,{"data-menu-list":!0,ref:n}),t)},K_=kl.forwardRef(U_),rf=K_;var sf=M(require("react"));function Ll(e,t){return co(e).map((o,n)=>{if(sf.isValidElement(o)){let{key:r}=o,i=o.props?.eventKey??r;return i==null&&(i=`tmp_key-${[...t,n].join("-")}`),sf.cloneElement(o,{key:i,eventKey:i})}return o})}var Br=M(require("react"));var un={adjustX:1,adjustY:1},BI={topLeft:{points:["bl","tl"],overflow:un},topRight:{points:["br","tr"],overflow:un},bottomLeft:{points:["tl","bl"],overflow:un},bottomRight:{points:["tr","br"],overflow:un},leftTop:{points:["tr","tl"],overflow:un},leftBottom:{points:["br","bl"],overflow:un},rightTop:{points:["tl","tr"],overflow:un},rightBottom:{points:["bl","br"],overflow:un}},HI={topLeft:{points:["bl","tl"],overflow:un},topRight:{points:["br","tr"],overflow:un},bottomLeft:{points:["tl","bl"],overflow:un},bottomRight:{points:["tr","br"],overflow:un},rightTop:{points:["tr","tl"],overflow:un},rightBottom:{points:["br","bl"],overflow:un},leftTop:{points:["tl","tr"],overflow:un},leftBottom:{points:["bl","br"],overflow:un}};function af(e,t,o){if(t)return t;if(o)return o[e]||o.other}var G_={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function bx({prefixCls:e,visible:t,children:o,popup:n,popupStyle:r,popupClassName:i,popupOffset:s,disabled:a,mode:c,onVisibleChange:l}){let{getPopupContainer:d,rtl:u,subMenuOpenDelay:m,subMenuCloseDelay:f,builtinPlacements:g,triggerSubMenuAction:p,forceSubMenuRender:h,rootClassName:y,motion:x,defaultMotions:b}=Br.useContext($o),[S,v]=Br.useState(!1),C=u?{...HI,...g}:{...BI,...g},R=G_[c],w=af(c,x,b),I=Br.useRef(w);c!=="inline"&&(I.current=w);let P={...I.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},N=Br.useRef(void 0);return Br.useEffect(()=>(N.current=He(()=>{v(t)}),()=>{He.cancel(N.current)}),[t]),Br.createElement(rs,{prefixCls:e,popupClassName:$(`${e}-popup`,{[`${e}-rtl`]:u},i,y),stretch:c==="horizontal"?"minWidth":null,getPopupContainer:d,builtinPlacements:C,popupPlacement:R,popupVisible:S,popup:n,popupStyle:r,popupAlign:s&&{offset:s},action:a?[]:[p],mouseEnterDelay:m,mouseLeaveDelay:f,onPopupVisibleChange:l,forceRender:h,popupMotion:P,fresh:!0},o)}var xr=M(require("react"));function xx(){return xx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},xx.apply(this,arguments)}function vx({id:e,open:t,keyPath:o,children:n}){let r="inline",{prefixCls:i,forceSubMenuRender:s,motion:a,defaultMotions:c,mode:l}=xr.useContext($o),d=xr.useRef(!1);d.current=l===r;let[u,m]=xr.useState(!d.current),f=d.current?t:!1;xr.useEffect(()=>{d.current&&m(!1)},[l]);let g={...af(r,a,c)};o.length>1&&(g.motionAppear=!1);let p=g.onVisibleChanged;return g.onVisibleChanged=h=>(!d.current&&!h&&m(!0),p?.(h)),u?null:xr.createElement(Ai,{mode:r,locked:!d.current},xr.createElement(po,xx({visible:f},g,{forceRender:s,removeOnLeave:!1,leavedClassName:`${i}-hidden`}),({className:h,style:y})=>xr.createElement(rf,{id:e,className:h,style:y},n)))}function vd(){return vd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},vd.apply(this,arguments)}var q_=Nt.forwardRef((e,t)=>{let{style:o,className:n,styles:r,classNames:i,title:s,itemTitle:a,eventKey:c,warnKey:l,disabled:d,internalPopupClose:u,children:m,itemIcon:f,expandIcon:g,popupClassName:p,popupOffset:h,popupStyle:y,onClick:x,onMouseEnter:b,onMouseLeave:S,onTitleClick:v,onTitleMouseEnter:C,onTitleMouseLeave:R,popupRender:w,...I}=e,P=Zp(c),{prefixCls:N,mode:E,openKeys:O,disabled:L,overflowDisabled:k,activeKey:z,selectedKeys:_,itemIcon:T,expandIcon:D,onItemClick:F,onOpenChange:G,onActive:H,popupRender:W}=Nt.useContext($o),{_internalRenderSubMenuItem:X}=Nt.useContext(Al),{isSubPathKey:B}=Nt.useContext(Qp),j=zr(),U=`${N}-submenu`,Z=L||d,Y=Nt.useRef(null),K=Nt.useRef(null),V=f??T,A=g??D,ee=O.includes(c),Q=!k&&ee,te=B(_,c),{active:le,...re}=hd(c,Z,C,R),[ie,Se]=Nt.useState(!1),de=Pe=>{Z||Se(Pe)},Ee=Pe=>{de(!0),b?.({key:c,domEvent:Pe})},ae=Pe=>{de(!1),S?.({key:c,domEvent:Pe})},Ne=Nt.useMemo(()=>le||(E!=="inline"?ie||B([z],c):!1),[E,le,z,ie,c,B]),he=yd(j.length),ne=Pe=>{Z||(v?.({key:c,domEvent:Pe}),E==="inline"&&G(c,!ee))},fe=ws(Pe=>{x?.(Ca(Pe)),F(Pe)}),ce=Pe=>{E!=="inline"&&G(c,Pe)},we=()=>{H(c)},Le=P&&`${P}-popup`,Ce=Nt.useMemo(()=>Nt.createElement(bd,{icon:E!=="horizontal"?A:void 0,props:{...e,isOpen:Q,isSubMenu:!0}},Nt.createElement("i",{className:`${U}-arrow`})),[E,A,e,Q,U]),pe=Nt.createElement("div",vd({role:"menuitem",style:he,className:`${U}-title`,tabIndex:Z?null:-1,ref:Y,title:a??(typeof s=="string"?s:null),"data-menu-id":k&&P?null:P,"aria-expanded":Q,"aria-haspopup":!0,"aria-controls":Le,"aria-disabled":Z,onClick:ne,onFocus:we},re),s,Ce),ue=Nt.useRef(E);E!=="inline"&&j.length>1?ue.current="vertical":ue.current=E;let se=ue.current,ve=Nt.useMemo(()=>{let Pe=Nt.createElement(Ai,{classNames:i,styles:r,mode:se==="horizontal"?"vertical":se},Nt.createElement(rf,{id:Le,ref:K},m)),Ge=w||W;return Ge?Ge(Pe,{item:e,keys:j}):Pe},[w,W,j,Le,m,e,se]);if(!k){let Pe=ue.current;pe=Nt.createElement(bx,{mode:Pe,prefixCls:U,visible:!u&&Q&&E!=="inline",popupClassName:p,popupOffset:h,popupStyle:y,popup:ve,disabled:Z,onVisibleChange:ce},pe)}let $e=Nt.createElement(ii.Item,vd({ref:t,role:"none"},I,{component:"li",style:o,className:$(U,`${U}-${E}`,n,{[`${U}-open`]:Q,[`${U}-active`]:Ne,[`${U}-selected`]:te,[`${U}-disabled`]:Z}),onMouseEnter:Ee,onMouseLeave:ae}),pe,!k&&Nt.createElement(vx,{id:Le,open:Q,keyPath:j},m));return X&&($e=X($e,e,{selected:te,active:Ne,open:Q,disabled:Z})),Nt.createElement(Ai,{classNames:i,styles:r,onItemClick:fe,mode:E==="horizontal"?"vertical":E,itemIcon:V,expandIcon:A},$e)}),X_=Nt.forwardRef((e,t)=>{let{eventKey:o,children:n}=e,r=zr(o),i=Ll(n,r),s=Cs();Nt.useEffect(()=>{if(s)return s.registerPath(o,r),()=>{s.unregisterPath(o,r)}},[r]);let a;return s?a=i:a=Nt.createElement(q_,vd({ref:t},e),i),Nt.createElement(dx.Provider,{value:r},a)}),Rs=X_;var li=M(require("react"));var lf=M(require("react"));function wa({className:e,style:t}){let{prefixCls:o}=lf.useContext($o);return Cs()?null:lf.createElement("li",{role:"separator",className:$(`${o}-item-divider`,e),style:t})}var ai=M(require("react"));function cf(){return cf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},cf.apply(this,arguments)}var Y_=ai.forwardRef((e,t)=>{let{className:o,title:n,eventKey:r,children:i,...s}=e,{prefixCls:a,classNames:c,styles:l}=ai.useContext($o),d=`${a}-item-group`;return ai.createElement("li",cf({ref:t,role:"presentation"},s,{onClick:u=>u.stopPropagation(),className:$(d,o)}),ai.createElement("div",{role:"presentation",className:$(`${d}-title`,c?.listTitle),style:l?.listTitle,title:typeof n=="string"?n:void 0},n),ai.createElement("ul",{role:"group",className:$(`${d}-list`,c?.list),style:l?.list},i))}),Z_=ai.forwardRef((e,t)=>{let{eventKey:o,children:n}=e,r=zr(o),i=Ll(n,r);return Cs()?i:ai.createElement(Y_,cf({ref:t},Ke(e,["warnKey"])),i)}),Dl=Z_;function _l(){return _l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},_l.apply(this,arguments)}function Sx(e,t,o){let{item:n,group:r,submenu:i,divider:s}=t;return(e||[]).map((a,c)=>{if(a&&typeof a=="object"){let{label:l,children:d,key:u,type:m,extra:f,...g}=a,p=u??`tmp-${c}`;if(d||m==="group"){if(m==="group")return li.createElement(r,_l({key:p},g,{title:l}),Sx(d,t,o));let{title:y,...x}=g;return li.createElement(i,_l({key:p},x,{title:l,itemTitle:typeof y=="string"?y:void 0}),Sx(d,t,o))}if(m==="divider")return li.createElement(s,_l({key:p},g));let h=!!f||f===0;return li.createElement(n,_l({key:p},g,{extra:f,itemData:{...a,key:p}}),h?li.createElement(li.Fragment,null,li.createElement("span",{className:`${o}-item-label`},l),li.createElement("span",{className:`${o}-item-extra`},f)):l)}return null}).filter(a=>a)}function Cx(e,t,o,n,r){let i=e,s={divider:wa,item:si,group:Dl,submenu:Rs,...n};return t&&(i=Sx(t,s,r)),Ll(i,o)}function wx(){return wx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},wx.apply(this,arguments)}var Ra=[],Q_=bt.forwardRef((e,t)=>{let{prefixCls:o="rc-menu",rootClassName:n,style:r,className:i,styles:s,classNames:a,tabIndex:c=0,items:l,children:d,direction:u,id:m,mode:f="vertical",inlineCollapsed:g,disabled:p,disabledOverflow:h,subMenuOpenDelay:y=.1,subMenuCloseDelay:x=.1,forceSubMenuRender:b,defaultOpenKeys:S,openKeys:v,activeKey:C,defaultActiveFirst:R,selectable:w=!0,multiple:I=!1,defaultSelectedKeys:P,selectedKeys:N,onSelect:E,onDeselect:O,inlineIndent:L=24,motion:k,defaultMotions:z,triggerSubMenuAction:_="hover",builtinPlacements:T,itemIcon:D,expandIcon:F,overflowedIndicator:G="...",overflowedIndicatorPopupClassName:H,getPopupContainer:W,onClick:X,onOpenChange:B,onKeyDown:j,openAnimation:U,openTransitionName:Z,_internalRenderMenuItem:Y,_internalRenderSubMenuItem:K,_internalComponents:V,popupRender:A,...ee}=e,[Q,te]=bt.useMemo(()=>[Cx(d,l,Ra,V,o),Cx(d,l,Ra,{},o)],[d,l,V]),[le,re]=bt.useState(!1),ie=bt.useRef(null),Se=Co(),de=m??`rc-menu-uuid-${Se}`,Ee=u==="rtl",[ae,Ne]=st(S,v),he=ae||Ra,ne=(ze,ot=!1)=>{function ut(){Ne(ze),B?.(ze)}ot?(0,WI.flushSync)(ut):ut()},[fe,ce]=bt.useState(he),we=bt.useRef(!1),[Le,Ce]=bt.useMemo(()=>(f==="inline"||f==="vertical")&&g?["vertical",g]:[f,!1],[f,g]),pe=Le==="inline",[ue,se]=bt.useState(Le),[ve,$e]=bt.useState(Ce);bt.useEffect(()=>{se(Le),$e(Ce),we.current&&(pe?Ne(fe):ne(Ra))},[Le,Ce]);let[Pe,Ge]=bt.useState(0),qe=Pe>=Q.length-1||ue!=="horizontal"||h;bt.useEffect(()=>{pe&&ce(he)},[he]),bt.useEffect(()=>(we.current=!0,()=>{we.current=!1}),[]);let{registerPath:mt,unregisterPath:Qe,refreshOverflowKeys:$t,isSubPathKey:wt,getKeyPath:gt,getKeys:ht,getSubPathKeys:yt}=gx(),Rt=bt.useMemo(()=>({registerPath:mt,unregisterPath:Qe}),[mt,Qe]),_e=bt.useMemo(()=>({isSubPathKey:wt}),[wt]);bt.useEffect(()=>{$t(qe?Ra:Q.slice(Pe+1).map(ze=>ze.key))},[Pe,qe]);let[xt,be]=st(C||R&&Q[0]?.key,C),oe=ws(ze=>{be(ze)}),me=ws(()=>{be(void 0)});(0,VI.useImperativeHandle)(t,()=>({list:ie.current,focus:ze=>{let ot=ht(),{elements:ut,key2element:Ae,element2key:je}=fd(ot,de),Tt=tf(ie.current,ut),mo;xt&&ot.includes(xt)?mo=xt:mo=Tt[0]?je.get(Tt[0]):Q.find(jt=>!jt.props.disabled)?.key;let vt=Ae.get(mo);mo&&vt&&vt?.focus?.(ze)},findItem:({key:ze})=>{let ot=ht(),{key2element:ut}=fd(ot,de);return ut.get(ze)||null}}));let[J,ge]=st(P||[],N),ye=bt.useMemo(()=>Array.isArray(J)?J:J==null?Ra:[J],[J]),ke=ze=>{if(w){let{key:ot}=ze,ut=ye.includes(ot),Ae;I?ut?Ae=ye.filter(Tt=>Tt!==ot):Ae=[...ye,ot]:Ae=[ot],ge(Ae);let je={...ze,selectedKeys:Ae};ut?O?.(je):E?.(je)}!I&&he.length&&ue!=="inline"&&ne(Ra)},Je=ws(ze=>{X?.(Ca(ze)),ke(ze)}),At=ws((ze,ot)=>{let ut=he.filter(Ae=>Ae!==ze);if(ot)ut.push(ze);else if(ue!=="inline"){let Ae=yt(ze);ut=ut.filter(je=>!Ae.has(je))}Mr(he,ut,!0)||ne(ut,!0)}),Pt=kI(ue,xt,Ee,de,ie,ht,gt,be,(ze,ot)=>{let ut=ot??!he.includes(ze);At(ze,ut)},j);bt.useEffect(()=>{re(!0)},[]);let to=bt.useMemo(()=>({_internalRenderMenuItem:Y,_internalRenderSubMenuItem:K}),[Y,K]),ao=ue!=="horizontal"||h?Q:Q.map((ze,ot)=>bt.createElement(Ai,{key:ze.key,overflowDisabled:ot>Pe,classNames:a,styles:s},ze)),$n=bt.createElement(ii,wx({id:m,ref:ie,prefixCls:`${o}-overflow`,component:"ul",itemComponent:si,className:$(o,`${o}-root`,`${o}-${ue}`,i,{[`${o}-inline-collapsed`]:ve,[`${o}-rtl`]:Ee},n),dir:u,style:r,role:"menu",tabIndex:c,data:ao,renderRawItem:ze=>ze,renderRawRest:ze=>{let ot=ze.length,ut=ot?Q.slice(-ot):null;return bt.createElement(Rs,{eventKey:of,title:G,disabled:qe,internalPopupClose:ot===0,popupClassName:H},ut)},maxCount:ue!=="horizontal"||h?ii.INVALIDATE:ii.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:ze=>{Ge(ze)},onKeyDown:Pt},ee));return bt.createElement(Al.Provider,{value:to},bt.createElement(ax.Provider,{value:de},bt.createElement(Ai,{prefixCls:o,rootClassName:n,classNames:a,styles:s,mode:ue,openKeys:he,rtl:Ee,disabled:p,motion:le?k:null,defaultMotions:le?z:null,activeKey:xt,onActive:oe,onInactive:me,selectedKeys:ye,inlineIndent:L,subMenuOpenDelay:y,subMenuCloseDelay:x,forceSubMenuRender:b,builtinPlacements:T,triggerSubMenuAction:_,getPopupContainer:W,itemIcon:D,expandIcon:F,onItemClick:Je,onOpenChange:At,popupRender:A},bt.createElement(Qp.Provider,{value:_e},$n),bt.createElement("div",{style:{display:"none"},"aria-hidden":!0},bt.createElement(cx.Provider,{value:Rt},te)))))}),jI=Q_;var Sd=jI;Sd.Item=si;Sd.SubMenu=Rs;Sd.ItemGroup=Dl;Sd.Divider=wa;var df=Sd;var Cd=M(require("react")),uf=require("react");var mf=Cd.createContext({});var or=M(require("react")),pN=require("react");var pf=M(require("react"));var J_={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"},UI=J_;function Rx(){return Rx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Rx.apply(this,arguments)}var e6=(e,t)=>pf.createElement(Ot,Rx({},e,{ref:t,icon:UI})),t6=pf.forwardRef(e6),Fl=t6;var KI=require("react"),o6=(0,KI.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),Ea=o6;var ff=M(require("react"));var n6=e=>{let{prefixCls:t,className:o,dashed:n,...r}=e,{getPrefixCls:i}=ff.useContext(Oe),s=i("menu",t),a=$({[`${s}-item-divider-dashed`]:!!n},o);return ff.createElement(wa,{className:a,...r})},gf=n6;var _n=M(require("react"));var Ao=M(require("react"));var GI=M(require("react")),r6=e=>{let{children:t,prefixCls:o,id:n,classNames:r,styles:i,className:s,style:a}=e;return GI.createElement("div",{id:n,className:$(`${o}-container`,r?.container,s),style:{...i?.container,...a},role:"tooltip"},typeof t=="function"?t():t)},wd=r6;var Hr=M(require("react")),hf=require("react");var zl={shiftX:64,adjustY:1},Bl={adjustX:1,shiftY:!0},vr=[0,0],qI={left:{points:["cr","cl"],overflow:Bl,offset:[-4,0],targetOffset:vr},right:{points:["cl","cr"],overflow:Bl,offset:[4,0],targetOffset:vr},top:{points:["bc","tc"],overflow:zl,offset:[0,-4],targetOffset:vr},bottom:{points:["tc","bc"],overflow:zl,offset:[0,4],targetOffset:vr},topLeft:{points:["bl","tl"],overflow:zl,offset:[0,-4],targetOffset:vr},leftTop:{points:["tr","tl"],overflow:Bl,offset:[-4,0],targetOffset:vr},topRight:{points:["br","tr"],overflow:zl,offset:[0,-4],targetOffset:vr},rightTop:{points:["tl","tr"],overflow:Bl,offset:[4,0],targetOffset:vr},bottomRight:{points:["tr","br"],overflow:zl,offset:[0,4],targetOffset:vr},rightBottom:{points:["bl","br"],overflow:Bl,offset:[4,0],targetOffset:vr},bottomLeft:{points:["tl","bl"],overflow:zl,offset:[0,4],targetOffset:vr},leftBottom:{points:["br","bl"],overflow:Bl,offset:[-4,0],targetOffset:vr}};function Ex(){return Ex=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Ex.apply(this,arguments)}var i6=Hr.forwardRef((e,t)=>{let{trigger:o=["hover","focus"],mouseEnterDelay:n=0,mouseLeaveDelay:r=.1,prefixCls:i="rc-tooltip",children:s,onVisibleChange:a,afterVisibleChange:c,motion:l,placement:d="right",align:u={},destroyOnHidden:m=!1,defaultVisible:f,getTooltipContainer:g,arrowContent:p,overlay:h,id:y,showArrow:x=!0,classNames:b,styles:S,...v}=e,C=Co(y),R=(0,hf.useRef)(null);(0,hf.useImperativeHandle)(t,()=>R.current);let w={...v};"visible"in e&&(w.popupVisible=e.visible);let I=Hr.useMemo(()=>{if(!x)return!1;let N=x===!0?{}:x;return{...N,className:$(N.className,b?.arrow),style:{...N.style,...S?.arrow},content:N.content??p}},[x,b?.arrow,S?.arrow,p]),P=({open:N})=>{let E=Hr.Children.only(s),k={"aria-describedby":[E.props["aria-describedby"],h&&N?C:void 0].filter(Boolean).join(" ")||void 0};return Hr.cloneElement(E,k)};return Hr.createElement(rs,Ex({popupClassName:b?.root,prefixCls:i,popup:Hr.createElement(wd,{key:"content",prefixCls:i,id:C,classNames:b,styles:S},h),action:o,builtinPlacements:qI,popupPlacement:d,ref:R,popupAlign:u,getPopupContainer:g,onOpenChange:a,afterOpenChange:c,popupMotion:l,defaultPopupVisible:f,autoDestroy:m,mouseLeaveDelay:r,popupStyle:S?.root,mouseEnterDelay:n,arrow:I,uniqueContainerClassName:b?.uniqueContainer,uniqueContainerStyle:S?.uniqueContainer},w),P)}),XI=i6;var YI=XI;var $x=M(require("react"));var s6=e=>{let{space:t,form:o,children:n}=e;if(!lo(n))return null;let r=n;return o&&(r=$x.default.createElement(dI,{override:!0,status:!0},r)),t&&(r=$x.default.createElement(A1,null,r)),r},Vr=s6;var ZI=M(require("react")),a6=ZI.default.createContext(!1),QI=a6;var JI=M(require("react")),l6=(e,t)=>{let o=n=>typeof n=="boolean"?{show:n}:n||{};return JI.default.useMemo(()=>{let n=o(e),r=o(t);return{...r,...n,show:n.show??r.show??!0}},[e,t])},eN=l6;var Es=M(require("react"));var tN="50%",c6=e=>{let{calc:t,componentCls:o,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:i,tooltipBorderRadius:s,zIndexPopup:a,controlHeight:c,dropShadowPopover:l,paddingSM:d,paddingXS:u,arrowOffsetHorizontal:m,sizePopupArrow:f,antCls:g}=e,[p,h]=qt(g,"tooltip"),y=t(s).add(f).add(m).equal(),b={minWidth:t(s).mul(2).add(f).equal(),minHeight:c,padding:`${q(e.calc(d).div(2).equal())} ${q(u)}`,color:h("overlay-color",r),textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:s,boxSizing:"border-box"},S={[p("valid-offset-x")]:h("arrow-offset-x","var(--arrow-x)"),transformOrigin:[h("valid-offset-x",tN),`var(--arrow-y, ${tN})`].join(" ")};return[{[o]:{...Et(e),position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",filter:l,...S,"&-hidden":{display:"none"},[p("arrow-background-color")]:i,[`${o}-container`]:[b,td(e,!0)],[`&:has(~ ${o}-unique-container)`]:{[`${o}-container`]:{border:"none",background:"transparent"}},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:y},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${o}-inner`]:{borderRadius:e.min(s,rx)}},[`${o}-content`]:{position:"relative"},...tp(e,(v,{darkColor:C})=>({[`&${o}-${v}`]:{[`${o}-container`]:{backgroundColor:C},[`${o}-arrow`]:{[p("arrow-background-color")]:C}}})),"&-rtl":{direction:"rtl"}}},Kp(e,h("arrow-background-color"),{arrowShadow:!1}),{[`${o}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}},{[`${o}-unique-container`]:{...b,...S,position:"absolute",zIndex:t(a).sub(1).equal(),filter:l,"&-hidden":{display:"none"},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},d6=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...Tl({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...Up(Fe(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),yf=(e,t,o=!0)=>Ze("Tooltip",r=>{let{borderRadius:i,colorTextLightSolid:s,colorBgSpotlight:a,maxWidth:c}=r,l=Fe(r,{tooltipMaxWidth:c,tooltipColor:s,tooltipBorderRadius:i,tooltipBg:a});return[c6(l),Ti(r,"zoom-big-fast")]},d6,{resetStyle:!1,injectStyle:o})(e,t);var u6=jo.map(e=>`${e}-inverse`);function oN(e,t=!0){return t?[].concat(Zt(u6),Zt(jo)).includes(e):jo.includes(e)}var bf=(e,t,o)=>{let n=oN(o),[r]=qt(e,"tooltip"),i=$({[`${t}-${o}`]:o&&n}),s={},a={},c=b$(o).toRgb(),d=(.299*c.r+.587*c.g+.114*c.b)/255<.5?"#FFF":"#000";return o&&!n&&(s.background=o,s[r("overlay-color")]=d,a[r("arrow-background-color")]=o),{className:i,overlayStyle:s,arrowStyle:a}};var m6=e=>{let{prefixCls:t,className:o,placement:n="top",title:r,color:i,overlayInnerStyle:s,classNames:a,styles:c}=e,{getPrefixCls:l}=Es.useContext(Oe),d=l("tooltip",t),u=l(),m=oo(d),[f,g]=yf(d,m),p=bf(u,d,i),h=p.arrowStyle,y=Es.useMemo(()=>({container:{...s,...p.overlayStyle}}),[s,p.overlayStyle]),x={...e,placement:n},[b,S]=et([a],[y,c],{props:x}),v=$(m,f,g,d,`${d}-pure`,`${d}-placement-${n}`,o,p.className);return Es.createElement("div",{className:v,style:h},Es.createElement("div",{className:`${d}-arrow`}),Es.createElement(wd,{...e,className:f,prefixCls:d,classNames:b,styles:S},r))},nN=m6;var p6=Ao.forwardRef((e,t)=>{let{prefixCls:o,openClassName:n,getTooltipContainer:r,color:i,children:s,afterOpenChange:a,arrow:c,destroyTooltipOnHide:l,destroyOnHidden:d,title:u,overlay:m,trigger:f,builtinPlacements:g,autoAdjustOverflow:p=!0,motion:h,getPopupContainer:y,placement:x="top",mouseEnterDelay:b,mouseLeaveDelay:S,rootClassName:v,styles:C,classNames:R,onOpenChange:w,overlayInnerStyle:I,overlayStyle:P,overlayClassName:N,...E}=e,[,O]=Gt(),L=e["data-popover-inject"],{getPopupContainer:k,getPrefixCls:z,direction:_,...T}=Ye("tooltip"),{className:D,style:F,classNames:G,styles:H,arrow:W,trigger:X,mouseEnterDelay:B,mouseLeaveDelay:j}=L?{}:T,U=b??B??.1,Z=S??j??.1,Y=eN(c,W),K=Y.show,V=f||X||"hover",A=y||r||k,ee=d??!!l,Q=Ao.useContext(QI),te=Xa("Tooltip"),le=Ao.useRef(null),re=()=>{le.current?.forceAlign()};Ao.useImperativeHandle(t,()=>({forceAlign:re,nativeElement:le.current?.nativeElement,popupElement:le.current?.popupElement}));let[ie,Se]=st(e.defaultOpen??!1,e.open),de=!u&&!m&&u!==0,Ee=_e=>{Se(de?!1:_e),!de&&w&&w(_e)},ae=Ao.useMemo(()=>g||dd({arrowPointAtCenter:Y?.pointAtCenter??!1,autoAdjustOverflow:p,arrowWidth:K?O.sizePopupArrow:0,borderRadius:O.borderRadius,offset:O.marginXXS,visibleFirst:!0}),[Y,g,O,K,p]),Ne=Ao.useMemo(()=>u===0?u:m||u||"",[m,u]),he=Ao.createElement(Vr,{space:!0,form:!0},dt(Ne)?Ne():Ne),ne={...e,trigger:V,builtinPlacements:ae,getPopupContainer:A,destroyOnHidden:ee,mouseEnterDelay:U,mouseLeaveDelay:Z},fe=De(F),ce=De(P),[we,Le]=et([G,R],[H,fe,C,ce],{props:ne}),Ce=z("tooltip",o),pe=z(),ue=ie;(!("open"in e)&&de||Q)&&(ue=!1);let se=Ao.isValidElement(s)&&!zm(s)?s:Ao.createElement("span",null,s),ve=se.props,$e=!ve.className||typeof ve.className=="string"?$(ve.className,n||`${Ce}-open`):ve.className,Pe=oo(Ce),[Ge,qe]=yf(Ce,Pe,!L),mt=bf(pe,Ce,i),Qe=mt.arrowStyle,$t=$(Pe,Ge,qe),wt=$(N,{[`${Ce}-rtl`]:_==="rtl"},mt.className,v,$t,D,we.root),[gt,ht]=ti("Tooltip",E.zIndex),yt={...Le.container,...I,...mt.overlayStyle},Rt=Ao.createElement(YI,{unique:!0,...E,zIndex:gt,showArrow:K,placement:x,mouseEnterDelay:U,mouseLeaveDelay:Z,prefixCls:Ce,classNames:{root:wt,container:we.container,arrow:we.arrow,uniqueContainer:$($t,we.container)},styles:{root:{...Qe,...Le.root},container:yt,uniqueContainer:yt,arrow:Le.arrow},ref:le,overlay:he,visible:ue,onVisibleChange:Ee,afterVisibleChange:a,arrowContent:Ao.createElement("span",{className:`${Ce}-arrow-content`}),motion:{motionName:hr(pe,"zoom-big-fast",typeof h?.motionName=="string"?h?.motionName:void 0),motionDeadline:1e3},trigger:V,builtinPlacements:ae,getTooltipContainer:A,destroyOnHidden:ee},ue&&!E.disabled?Ro(se,{className:$e}):se);return Ao.createElement(cs.Provider,{value:ht},Rt)}),Ix=p6;Ix._InternalPanelDoNotUseOrYouWillBeFired=nN;Ix.UniqueProvider=Wm;var Hl=Ix;var f6=e=>{let{className:t,children:o,icon:n,title:r,danger:i,extra:s}=e,{prefixCls:a,firstLevel:c,direction:l,disableMenuItemTitleTooltip:d,tooltip:u,inlineCollapsed:m,styles:f,classNames:g}=_n.useContext(Ea),{siderCollapsed:p}=_n.useContext(mf),h=!!(p||m),[y,x]=_n.useState(!1);_n.useEffect(()=>{x(!1)},[h]);let b=P=>{let N=o?.[0],E=_n.createElement("span",{className:$(`${a}-title-content`,c?g?.itemContent:g?.subMenu?.itemContent,{[`${a}-title-content-with-extra`]:!!s||s===0}),style:c?f?.itemContent:f?.subMenu?.itemContent},o);return(!n||_n.isValidElement(o)&&o.type==="span")&&o&&P&&c&&typeof N=="string"?_n.createElement("div",{className:`${a}-inline-collapsed-noicon`},N.charAt(0)):E},S=r;typeof r>"u"?S=c?o:"":r===!1&&(S="");let v=u===!1?void 0:u,C=v&&v.title!==void 0?v.title:S,R={...v??null,title:C};h?(R.open=v?.open??y,R.onOpenChange=P=>{x(P),v?.onOpenChange?.(P)}):(R.title=null,R.open=!1);let w=co(o).length,I=_n.createElement(si,{...Ke(e,["title","icon","danger"]),className:$(c?g?.item:g?.subMenu?.item,{[`${a}-item-danger`]:i,[`${a}-item-only-child`]:(n?w+1:w)===1},t),style:{...c?f?.item:f?.subMenu?.item,...e.style},title:typeof r=="string"?r:void 0,itemData:e?.itemData??{...e,key:e.eventKey}},Ro(n,P=>({className:$(`${a}-item-icon`,c?g?.itemIcon:g?.subMenu?.itemIcon,P.className),style:{...c?f?.itemIcon:f?.subMenu?.itemIcon,...P.style}})),b(m));if(!d&&u!==!1){let P=v&&v.placement?v.placement:l==="rtl"?"left":"right",N=`${a}-inline-collapsed-tooltip`,E=L=>({...L,root:$(N,L?.root)}),O=dt(v?.classNames)?L=>{let k=v.classNames(L);return E(k)}:E(v?.classNames);I=_n.createElement(Hl,{...R,placement:P,classNames:O},I)}return I},xf=f6;var tr=M(require("react"));var Nx=tr.createContext(null),rN=tr.forwardRef((e,t)=>{let{children:o,...n}=e,r=tr.useContext(Nx),i=tr.useMemo(()=>({...r,...n}),[r,n.prefixCls,n.mode,n.selectable,n.rootClassName]),s=Rc(o),a=bo(t,s?To(o):null);return tr.createElement(Nx.Provider,{value:i},tr.createElement(Vr,{space:!0},s?tr.cloneElement(o,{ref:a}):o))}),Px=Nx;var g6=e=>{let{componentCls:t,motionDurationSlow:o,horizontalLineHeight:n,colorSplit:r,lineWidth:i,lineType:s,itemPaddingInline:a}=e;return{[`${t}-horizontal`]:{lineHeight:n,border:0,borderBottom:`${q(i)} ${s} ${r}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:a},[`> ${t}-item:hover,
|
|
149
149
|
> ${t}-item-active,
|
|
150
|
-
> ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:["border-color","background-color"].map(c=>`${c} ${o}`).join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},
|
|
151
|
-
${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${q(o(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${q(t)})`}}}}),
|
|
150
|
+
> ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:["border-color","background-color"].map(c=>`${c} ${o}`).join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},iN=g6;var h6=({componentCls:e,menuArrowOffset:t,calc:o})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
|
|
151
|
+
${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${q(o(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${q(t)})`}}}}),sN=h6;var aN=e=>An(e),y6=(e,t)=>{let{componentCls:o,itemColor:n,itemSelectedColor:r,subMenuItemSelectedColor:i,groupTitleColor:s,itemBg:a,subMenuItemBg:c,itemSelectedBg:l,activeBarHeight:d,activeBarWidth:u,activeBarBorderWidth:m,motionDurationSlow:f,motionEaseInOut:g,motionEaseOut:p,itemPaddingInline:h,motionDurationMid:y,itemHoverColor:x,lineType:b,colorSplit:S,itemDisabledColor:v,dangerItemColor:C,dangerItemHoverColor:R,dangerItemSelectedColor:w,dangerItemActiveBg:I,dangerItemSelectedBg:P,popupBg:N,itemHoverBg:E,itemActiveBg:O,menuSubMenuBg:L,horizontalItemSelectedColor:k,horizontalItemSelectedBg:z,horizontalItemBorderRadius:_,horizontalItemHoverBg:T}=e;return{[`${o}-${t}, ${o}-${t} > ${o}`]:{color:n,background:a,[`&${o}-root:focus-visible`]:{...aN(e)},[`${o}-item`]:{"&-group-title, &-extra":{color:s}},[`${o}-submenu-selected > ${o}-submenu-title`]:{color:i},[`${o}-item, ${o}-submenu-title`]:{color:n,[`&:not(${o}-item-disabled):focus-visible`]:{...aN(e)}},[`${o}-item-disabled, ${o}-submenu-disabled`]:{color:`${v} !important`},[`${o}-item:not(${o}-item-selected):not(${o}-submenu-selected)`]:{[`&:hover, > ${o}-submenu-title:hover`]:{color:x}},[`${o}-submenu:not(${o}-submenu-selected)`]:{[`> ${o}-submenu-title:hover`]:{color:x}},[`&:not(${o}-horizontal)`]:{[`${o}-item:not(${o}-item-selected)`]:{"&:hover":{backgroundColor:E},"&:active":{backgroundColor:O}},[`${o}-submenu-title`]:{"&:hover":{backgroundColor:E},"&:active":{backgroundColor:O}}},[`${o}-item-danger`]:{color:C,[`&${o}-item:hover`]:{[`&:not(${o}-item-selected):not(${o}-submenu-selected)`]:{color:R}},[`&${o}-item:active`]:{background:I}},[`${o}-item a`]:{"&, &:hover":{color:"inherit"}},[`${o}-item-selected`]:{color:r,[`&${o}-item-danger`]:{color:w},"a, a:hover":{color:"inherit"}},[`& ${o}-item-selected`]:{backgroundColor:l,[`&${o}-item-danger`]:{backgroundColor:P}},[`&${o}-submenu > ${o}`]:{backgroundColor:L},[`&${o}-popup > ${o}`]:{backgroundColor:N},[`&${o}-submenu-popup > ${o}`]:{backgroundColor:N},[`&${o}-horizontal`]:{...t==="dark"?{borderBottom:0}:{},[`> ${o}-item, > ${o}-submenu`]:{top:m,marginTop:e.calc(m).mul(-1).equal(),marginBottom:0,borderRadius:_,"&::after":{position:"absolute",insetInline:h,bottom:0,pointerEvents:"none",borderBottom:`${q(d)} solid transparent`,transition:`border-color ${f} ${g}`,content:'""'},"&:hover, &-active, &-open":{background:T,"&::after":{borderBottomWidth:d,borderBottomColor:k}},"&-selected":{color:k,backgroundColor:z,"&:hover":{backgroundColor:z},"&::after":{borderBottomWidth:d,borderBottomColor:k}}}},[`&${o}-root`]:{[`&${o}-inline, &${o}-vertical`]:{borderInlineEnd:`${q(m)} ${b} ${S}`}},[`&${o}-inline`]:{[`${o}-sub${o}-inline`]:{background:c},[`${o}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${q(u)} solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:["transform","opacity"].map(D=>`${D} ${y} ${p}`).join(","),content:'""'},[`&${o}-item-danger`]:{"&::after":{borderInlineEndColor:w}}},[`${o}-selected, ${o}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:["transform","opacity"].map(D=>`${D} ${y} ${g}`).join(",")}}}}}},Tx=y6;var lN=e=>{let{componentCls:t,itemHeight:o,itemMarginInline:n,padding:r,menuArrowSize:i,marginXS:s,itemMarginBlock:a,itemWidth:c,itemPaddingInline:l}=e,d=e.calc(i).add(r).add(s).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:o,lineHeight:q(o),paddingInline:l,overflow:"hidden",textOverflow:"ellipsis",marginInline:n,marginBlock:a,width:c},[`> ${t}-item,
|
|
152
152
|
> ${t}-submenu > ${t}-submenu-title`]:{height:o,lineHeight:q(o)},[`${t}-item-group-list ${t}-submenu-title,
|
|
153
|
-
${t}-submenu-title`]:{paddingInlineEnd:d}}},
|
|
153
|
+
${t}-submenu-title`]:{paddingInlineEnd:d}}},b6=e=>{let{componentCls:t,iconCls:o,itemHeight:n,colorTextLightSolid:r,dropdownWidth:i,controlHeightLG:s,padding:a,paddingXL:c,itemMarginInline:l,fontSizeLG:d,motionDurationSlow:u,paddingXS:m,boxShadowSecondary:f,collapsedWidth:g,collapsedIconSize:p}=e,h={height:n,lineHeight:q(n),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:"none"},...lN(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...lN(e),boxShadow:f}}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${q(e.calc(s).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 ${u}`,`background-color ${u}`].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`]:h,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:h}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{transition:["border-color","background-color"].map(y=>`${y} ${u}`).join(","),[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center",width:"100%"}}},[`> ${t}-item,
|
|
154
154
|
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
|
|
155
155
|
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
|
|
156
156
|
> ${t}-submenu > ${t}-submenu-title`]:{display:"flex",alignItems:"center",justifyContent:"flex-start",insetInlineStart:0,paddingInline:`calc(50% - ${q(e.calc(p).div(2).equal())} - ${q(l)})`,textOverflow:"clip",[`
|
|
157
157
|
${t}-submenu-arrow,
|
|
158
158
|
${t}-submenu-expand-icon
|
|
159
|
-
`]:{opacity:0},[`> ${t}-title-content`]:{width:0,opacity:0,overflow:"hidden"},[`${t}-item-icon, ${o}`]:{margin:0,fontSize:p,lineHeight:q(n),"+ span":{display:"inline-block",width:0,opacity:0,overflow:"hidden",marginInlineStart:0}}},[`${t}-item-icon, ${o}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${o}`]:{display:"none"},[`${t}-item-extra`]:{paddingInlineStart:a},"a, a:hover":{color:r}},[`${t}-item-group-title`]:{...Xo,paddingInline:m}}}]},
|
|
160
|
-
&-inline ${o}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${q(p)})`},"&::after":{transform:`rotate(45deg) translateX(${q(e.calc(p).mul(-1).equal())})`}},[`${o}-submenu-open${o}-submenu-inline > ${o}-submenu-title > ${o}-submenu-arrow`]:{transform:`translateY(${q(e.calc(g).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${q(e.calc(p).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${q(p)})`}}}},{[`${t}-layout-header`]:{[o]:{lineHeight:"inherit"}}}]},
|
|
159
|
+
`]:{opacity:0},[`> ${t}-title-content`]:{width:0,opacity:0,overflow:"hidden"},[`${t}-item-icon, ${o}`]:{margin:0,fontSize:p,lineHeight:q(n),"+ span":{display:"inline-block",width:0,opacity:0,overflow:"hidden",marginInlineStart:0}}},[`${t}-item-icon, ${o}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${o}`]:{display:"none"},[`${t}-item-extra`]:{paddingInlineStart:a},"a, a:hover":{color:r}},[`${t}-item-group-title`]:{...Xo,paddingInline:m}}}]},cN=b6;var dN=e=>{let{componentCls:t,motionDurationSlow:o,motionDurationMid:n,motionEaseInOut:r,motionEaseOut:i,iconCls:s,iconSize:a,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${o}`,`background-color ${o}`,`padding calc(${o} + 0.1s) ${r}`].join(","),[`${t}-item-icon, ${s}`]:{minWidth:a,fontSize:a,transition:[`font-size ${n} ${i}`,`margin ${o} ${r}`,`color ${o}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${o} ${r}`,`margin ${o}`,`color ${o}`].join(",")}},[`${t}-item-icon`]:{...ca()},[`&${t}-item-only-child`]:{[`> ${s}, > ${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"}}}},uN=e=>{let{componentCls:t,motionDurationSlow:o,motionEaseInOut:n,borderRadius:r,menuArrowSize:i,menuArrowOffset:s}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:["transform","opacity"].map(a=>`${a} ${o}`).join(",")},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:r,transition:["background-color","transform","top","color"].map(a=>`${a} ${o} ${n}`).join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${q(e.calc(s).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${q(s)})`}}}}},x6=e=>{let{antCls:t,componentCls:o,fontSize:n,motionDurationSlow:r,motionDurationMid:i,motionEaseInOut:s,paddingXS:a,padding:c,colorSplit:l,lineWidth:d,zIndexPopup:u,borderRadiusLG:m,subMenuItemBorderRadius:f,menuArrowSize:g,menuArrowOffset:p,lineType:h,groupTitleLineHeight:y,groupTitleFontSize:x,iconSize:b,iconMarginInlineEnd:S}=e,v=[`> ${t}-typography-ellipsis-single-line`,`> ${o}-item-label > ${t}-typography-ellipsis-single-line`].join(",");return[{"":{[o]:{...da(),"&-hidden":{display:"none"}}},[`${o}-submenu-hidden`]:{display:"none"}},{[o]:{...Et(e),...da(),marginBottom:0,paddingInlineStart:0,fontSize:n,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",[`${o}-item`]:{flex:"none"}},[`${o}-item, ${o}-submenu, ${o}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${o}-item-group-title`]:{padding:`${q(a)} ${q(c)}`,fontSize:x,lineHeight:y,transition:`all ${r}`},[`&-horizontal ${o}-submenu`]:{transition:["border-color","background-color"].map(C=>`${C} ${r} ${s}`).join(",")},[`${o}-submenu, ${o}-submenu-inline`]:{transition:[`border-color ${r}`,`background-color ${r}`,`padding ${i}`].map(C=>`${C} ${s}`).join(",")},[`${o}-submenu ${o}-sub`]:{cursor:"initial",transition:["background-color","padding"].map(C=>`${C} ${r} ${s}`).join(",")},[`${o}-title-content`]:{transition:`color ${r}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%",minWidth:0},[`${o}-item-label`]:{flex:"auto",minWidth:0,...Xo},[v]:{display:"inline",verticalAlign:"unset"},[`${o}-item-extra`]:{flex:"none",marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${o}-item-icon + ${o}-title-content-with-extra`]:{width:`calc(100% - ${q(e.calc(b).add(S??0).equal())})`},[`${o}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${o}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:l,borderStyle:h,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}},...dN(e),[`${o}-item-group`]:{[`${o}-item-group-list`]:{margin:0,padding:0,[`${o}-item, ${o}-submenu-title`]:{paddingInline:`${q(e.calc(n).mul(2).equal())} ${q(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:u,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${o}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${o}`]:{borderRadius:m,...dN(e),...uN(e),[`${o}-item, ${o}-submenu > ${o}-submenu-title`]:{borderRadius:f},[`${o}-submenu-title::after`]:{transition:`transform ${r} ${s}`}}},"&-placement-leftTop, &-placement-bottomRight":{transformOrigin:"100% 0"},"&-placement-leftBottom, &-placement-topRight":{transformOrigin:"100% 100%"},"&-placement-rightBottom, &-placement-topLeft":{transformOrigin:"0 100%"},"&-placement-bottomLeft, &-placement-rightTop":{transformOrigin:"0 0"},"&-placement-leftTop, &-placement-leftBottom":{paddingInlineEnd:e.paddingXS},"&-placement-rightTop, &-placement-rightBottom":{paddingInlineStart:e.paddingXS},"&-placement-topRight, &-placement-topLeft":{paddingBottom:e.paddingXS},"&-placement-bottomRight, &-placement-bottomLeft":{paddingTop:e.paddingXS}},...uN(e),[`&-inline-collapsed ${o}-submenu-arrow,
|
|
160
|
+
&-inline ${o}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${q(p)})`},"&::after":{transform:`rotate(45deg) translateX(${q(e.calc(p).mul(-1).equal())})`}},[`${o}-submenu-open${o}-submenu-inline > ${o}-submenu-title > ${o}-submenu-arrow`]:{transform:`translateY(${q(e.calc(g).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${q(e.calc(p).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${q(p)})`}}}},{[`${t}-layout-header`]:{[o]:{lineHeight:"inherit"}}}]},v6=e=>{let{colorPrimary:t,colorError:o,colorTextDisabled:n,colorErrorBg:r,colorText:i,colorTextDescription:s,colorBgContainer:a,colorFillAlter:c,colorFillContent:l,lineWidth:d,lineWidthBold:u,controlItemBgActive:m,colorBgTextHover:f,controlHeightLG:g,lineHeight:p,colorBgElevated:h,marginXXS:y,padding:x,fontSize:b,controlHeightSM:S,fontSizeLG:v,colorTextLightSolid:C,colorErrorHover:R}=e,w=e.activeBarWidth??0,I=e.activeBarBorderWidth??d,P=e.itemMarginInline??e.marginXXS,N=new pt(C).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:i,itemColor:i,colorItemTextHover:i,itemHoverColor:i,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:s,groupTitleColor:s,colorItemTextSelected:t,itemSelectedColor:t,subMenuItemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:a,itemBg:a,colorItemBgHover:f,itemHoverBg:f,colorItemBgActive:l,itemActiveBg:m,colorSubItemBg:c,subMenuItemBg:c,colorItemBgSelected:m,itemSelectedBg:m,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:w,colorActiveBarHeight:u,activeBarHeight:u,colorActiveBarBorderSize:d,activeBarBorderWidth:I,colorItemTextDisabled:n,itemDisabledColor:n,colorDangerItemText:o,dangerItemColor:o,colorDangerItemTextHover:o,dangerItemHoverColor:o,colorDangerItemTextSelected:o,dangerItemSelectedColor:o,colorDangerItemBgActive:r,dangerItemActiveBg:r,colorDangerItemBgSelected:r,dangerItemSelectedBg:r,itemMarginInline:P,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:g,groupTitleLineHeight:p,collapsedWidth:g*2,popupBg:h,itemMarginBlock:y,itemPaddingInline:x,horizontalLineHeight:`${g*1.15}px`,iconSize:b,iconMarginInlineEnd:S-b,collapsedIconSize:v,groupTitleFontSize:b,darkItemDisabledColor:new pt(C).setA(.25).toRgbString(),darkItemColor:N,darkDangerItemColor:o,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:C,darkItemSelectedBg:t,darkDangerItemSelectedBg:o,darkItemHoverBg:"transparent",darkGroupTitleColor:N,darkItemHoverColor:C,darkDangerItemHoverColor:R,darkDangerItemSelectedColor:C,darkDangerItemActiveBg:o,itemWidth:w?`calc(100% + ${I}px)`:`calc(100% - ${P*2}px)`}},mN=(e,t=e,o=!0)=>Ze("Menu",r=>{let{colorBgElevated:i,controlHeightLG:s,fontSize:a,darkItemColor:c,darkDangerItemColor:l,darkItemBg:d,darkSubMenuItemBg:u,darkItemSelectedColor:m,darkItemSelectedBg:f,darkDangerItemSelectedBg:g,darkItemHoverBg:p,darkGroupTitleColor:h,darkItemHoverColor:y,darkItemDisabledColor:x,darkDangerItemHoverColor:b,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:v,popupBg:C,darkPopupBg:R}=r,w=r.calc(a).div(7).mul(5).equal(),I=Fe(r,{menuArrowSize:w,menuHorizontalHeight:r.calc(s).mul(1.15).equal(),menuArrowOffset:r.calc(w).mul(.25).equal(),menuSubMenuBg:i,calc:r.calc,popupBg:C}),P=Fe(I,{itemColor:c,itemHoverColor:y,groupTitleColor:h,itemSelectedColor:m,subMenuItemSelectedColor:m,itemBg:d,popupBg:R,subMenuItemBg:u,itemActiveBg:"transparent",itemSelectedBg:f,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:p,itemDisabledColor:x,dangerItemColor:l,dangerItemHoverColor:b,dangerItemSelectedColor:S,dangerItemActiveBg:v,dangerItemSelectedBg:g,menuSubMenuBg:u,horizontalItemSelectedColor:m,horizontalItemSelectedBg:f});return[x6(I),iN(I),cN(I),Tx(I,"light"),Tx(P,"dark"),sN(I),vb(I),xn(I,"slide-up"),xn(I,"slide-down"),Ti(I,"zoom-big")]},v6,{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:o,unitless:{groupTitleLineHeight:!0}})(e,t);var Cn=M(require("react"));var S6=e=>{let{popupClassName:t,icon:o,title:n,theme:r}=e,i=Cn.useContext(Ea),{prefixCls:s,inlineCollapsed:a,theme:c,classNames:l,styles:d}=i,u=zr(),m;if(!o)m=a&&!u.length&&n&&typeof n=="string"?Cn.createElement("div",{className:`${s}-inline-collapsed-noicon`},n.charAt(0)):Cn.createElement("span",{className:`${s}-title-content`},n);else{let p=Cn.isValidElement(n)&&n.type==="span";m=Cn.createElement(Cn.Fragment,null,Ro(o,h=>({className:$(h.className,`${s}-item-icon`,l?.itemIcon),style:{...h.style,...d?.itemIcon}})),p?n:Cn.createElement("span",{className:`${s}-title-content`},n))}let f=Cn.useMemo(()=>({...i,firstLevel:!1}),[i]),[g]=ti("Menu");return Cn.createElement(Ea.Provider,{value:f},Cn.createElement(Rs,{...Ke(e,["icon"]),title:m,classNames:{list:l?.subMenu?.list,listTitle:l?.subMenu?.itemTitle},styles:{list:d?.subMenu?.list,listTitle:d?.subMenu?.itemTitle},popupClassName:$(s,t,l?.popup?.root,`${s}-${r||c}`),popupStyle:{zIndex:g,...e.popupStyle,...d?.popup?.root}}))},vf=S6;function Mx(e){return e===null||e===!1}var C6={item:xf,submenu:vf,divider:gf},w6=(0,pN.forwardRef)((e,t)=>{let o=or.useContext(Px),n=o||{},{prefixCls:r,className:i,style:s,theme:a="light",expandIcon:c,_internalDisableMenuItemTitleTooltip:l,tooltip:d,inlineCollapsed:u,siderCollapsed:m,rootClassName:f,mode:g,selectable:p,onClick:h,overflowedIndicatorPopupClassName:y,classNames:x,styles:b,...S}=e,{menu:v}=or.useContext(Oe),{getPrefixCls:C,getPopupContainer:R,direction:w,className:I,style:P,classNames:N,styles:E}=Ye("menu"),O=C(),L=Ke(S,["collapsedWidth"]);n.validator?.({mode:g});let k=Ie((...A)=>{h?.(...A),n.onClick?.()}),z=n.mode||g,_=p??n.selectable,T=u??m,D={...e,mode:z,inlineCollapsed:T,selectable:_,theme:a},F=De(P),G=De(s),[H,W]=et([N,x],[E,F,b,G],{props:D},{popup:{_default:"root"},subMenu:{_default:"item"}}),X={horizontal:{motionName:`${O}-slide-up`},inline:y$(O),other:{motionName:`${O}-zoom-big`}},B=C("menu",r||n.prefixCls),j=oo(B),[U,Z]=mN(B,j,!o),Y=$(`${B}-${a}`,I,i),K=or.useMemo(()=>{if(dt(c)||Mx(c))return c||null;if(dt(n.expandIcon)||Mx(n.expandIcon))return n.expandIcon||null;if(dt(v?.expandIcon)||Mx(v?.expandIcon))return v?.expandIcon||null;let A=c??n?.expandIcon??v?.expandIcon;return Ro(A,{className:$(`${B}-submenu-expand-icon`,or.isValidElement(A)?A.props?.className:void 0)})},[c,n?.expandIcon,v?.expandIcon,B]),V=or.useMemo(()=>({prefixCls:B,inlineCollapsed:T||!1,direction:w,firstLevel:!0,theme:a,mode:z,disableMenuItemTitleTooltip:l,tooltip:d,classNames:H,styles:W}),[B,T,w,l,a,z,H,W,d]);return or.createElement(Px.Provider,{value:null},or.createElement(Ea.Provider,{value:V},or.createElement(df,{getPopupContainer:R,overflowedIndicator:or.createElement(Fl,null),overflowedIndicatorPopupClassName:$(B,`${B}-${a}`,y),classNames:{list:H.list,listTitle:H.itemTitle},styles:{list:W.list,listTitle:W.itemTitle},mode:z,selectable:_,onClick:k,...L,inlineCollapsed:T,style:W.root,className:Y,prefixCls:B,direction:w,defaultMotions:X,expandIcon:K,ref:t,rootClassName:$(f,U,n.rootClassName,Z,j,H.root),_internalComponents:C6})))}),fN=w6;var Rd=(0,Vl.forwardRef)((e,t)=>{let o=(0,Vl.useRef)(null),n=Sf.useContext(mf);return(0,Vl.useImperativeHandle)(t,()=>({menu:o.current,focus:r=>{o.current?.focus(r)}})),Sf.createElement(fN,{ref:o,...e,...n})});Rd.Item=xf;Rd.SubMenu=vf;Rd.Divider=gf;Rd.ItemGroup=Dl;var gN=Rd;var R6=e=>{let{componentCls:t,menuCls:o,colorError:n,colorTextLightSolid:r}=e,i=`${o}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${o} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:n,"&:hover":{color:r,backgroundColor:n}}}}}},hN=R6;var E6=e=>{let{componentCls:t,menuCls:o,zIndexPopup:n,dropdownArrowDistance:r,sizePopupArrow:i,antCls:s,iconCls:a,motionDurationMid:c,paddingBlock:l,fontSize:d,dropdownEdgeChildPadding:u,colorTextDisabled:m,fontSizeIcon:f,controlPaddingHorizontal:g,colorBgElevated:p,controlHeightLG:h}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:n,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(r).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:`calc(100vh - ${q(e.calc(h).mul(2.5).equal())})`,overflowY:"auto"},[`&-trigger${s}-btn`]:{[`& > ${a}-down, & > ${s}-btn-icon > ${a}-down`]:{fontSize:f}},[`${t}-wrap`]:{position:"relative",[`${s}-btn > ${a}-down`]:{fontSize:f},[`${a}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${a}-down::before`]:{transform:"rotate(180deg)"}},"&-hidden, &-menu-hidden, &-menu-submenu-hidden":{display:"none"},[`&${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottomLeft,
|
|
161
161
|
&${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottomLeft,
|
|
162
162
|
&${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottom,
|
|
163
163
|
&${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottom,
|
|
@@ -185,7 +185,7 @@ ${i}
|
|
|
185
185
|
&${s}-slide-right-leave${s}-slide-right-leave-active${t}-placement-rightTop,
|
|
186
186
|
&${s}-slide-right-leave${s}-slide-right-leave-active${t}-placement-rightBottom`]:{animationName:Sp},[`&${s}-slide-left-leave${s}-slide-left-leave-active${t}-placement-left,
|
|
187
187
|
&${s}-slide-left-leave${s}-slide-left-leave-active${t}-placement-leftTop,
|
|
188
|
-
&${s}-slide-left-leave${s}-slide-left-leave-active${t}-placement-leftBottom`]:{animationName:wp}}},Kp(e,p),{[`${t} ${o}`]:{position:"relative",margin:0},[`${o}-submenu-popup`]:{position:"absolute",zIndex:n,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{...Et(e),[o]:{padding:u,listStyleType:"none",backgroundColor:p,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,...ln(e),"&:empty":{padding:0,boxShadow:"none"},[`${o}-item-group-title`]:{padding:`${q(l)} ${q(g)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${o}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${o}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${o}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> a, > ${o}-item-label > a`]:{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${o}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${o}-item, ${o}-submenu-title`]:{display:"flex",margin:0,padding:`${q(l)} ${q(g)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...ln(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:p,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${q(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:f,fontStyle:"normal"}}},[`${o}-item-group-list`]:{margin:`0 ${q(e.marginXS)}`,padding:0,listStyle:"none"},[`${o}-submenu-title`]:{paddingInlineEnd:e.calc(g).add(e.fontSizeSM).equal()},[`${o}-submenu-vertical`]:{position:"relative"},[`${o}-submenu${o}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:p,cursor:"not-allowed"}},[`${o}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}}}},[xn(e,"slide-up"),xn(e,"slide-down"),xn(e,"slide-left"),xn(e,"slide-right"),ga(e,"move-up"),ga(e,"move-down"),Ti(e,"zoom-big")]]},w6=e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...Tl({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...Up(e)}),hN=Ze("Dropdown",e=>{let{marginXXS:t,sizePopupArrow:o,paddingXXS:n,componentCls:r}=e,i=Fe(e,{menuCls:`${r}-menu`,dropdownArrowDistance:e.calc(o).div(2).add(t).equal(),dropdownEdgeChildPadding:n});return[C6(i),gN(i)]},w6,{resetStyle:!1});var Ox=no.forwardRef((e,t)=>{let{menu:o,arrow:n,prefixCls:r,children:i,trigger:s,disabled:a,dropdownRender:c,popupRender:l,getPopupContainer:d,overlayClassName:u,rootClassName:m,overlayStyle:f,open:g,onOpenChange:p,mouseEnterDelay:h=.15,mouseLeaveDelay:y=.1,autoAdjustOverflow:x=!0,placement:b="",transitionName:S,classNames:v,styles:C,destroyPopupOnHide:R,destroyOnHidden:w}=e,{getPrefixCls:I,direction:P,getPopupContainer:N,className:E,style:O,classNames:D,styles:A}=Ye("dropdown"),F={...e,mouseEnterDelay:h,mouseLeaveDelay:y,autoAdjustOverflow:x},_=De(O),T=De(f),[L,z]=et([D,v],[A,_,C,T],{props:F}),G={...z.root},V=l||c,j=Xa("Dropdown"),Y=no.useMemo(()=>{let fe=I();return S!==void 0?S:b.startsWith("top")?`${fe}-slide-down`:b.startsWith("left")?`${fe}-slide-right`:b.startsWith("right")?`${fe}-slide-left`:`${fe}-slide-up`},[I,b,S]),B=no.useMemo(()=>b?b.includes("Center")?b.slice(0,b.indexOf("Center")):b:P==="rtl"?"bottomRight":"bottomLeft",[b,P]),U=I("dropdown",r),K=oo(U),[Z,X]=hN(U,K),[,k]=Gt(),W=no.Children.only($w(i)?no.createElement("span",null,i):i),H=bo(t,Po(W)),ee=Ro(W,{className:$(`${U}-trigger`,{[`${U}-rtl`]:P==="rtl"},W.props.className),disabled:W.props.disabled??a,ref:H}),J=a?[]:s,te=!!J?.includes("contextMenu"),[le,re]=st(!1,g),ie=Ie(fe=>{p?.(fe,{source:"trigger"}),re(fe)}),Se=$(u,m,Z,X,K,E,L.root,{[`${U}-rtl`]:P==="rtl"}),de=dd({arrowPointAtCenter:at(n)&&n.pointAtCenter,autoAdjustOverflow:x,offset:k.marginXXS,arrowWidth:n?k.sizePopupArrow:0,borderRadius:k.borderRadius}),Ee=Ie(()=>{o?.selectable&&o?.multiple||(p?.(!1,{source:"menu"}),re(!1))}),ae=()=>{let fe=Ke(L,["root"]),ce=Ke(z,["root"]),we;return o?.items&&(we=no.createElement(fN,{...o,classNames:{...fe,subMenu:{...fe}},styles:{...ce,subMenu:{...ce}}})),V&&(we=V(we)),Pn(we)?we=no.createElement("span",null,we):no.isValidElement(we)||(we=no.createElement(no.Fragment,null,we)),no.createElement(nN,{prefixCls:`${U}-menu`,rootClassName:$(X,K),expandIcon:no.createElement("span",{className:`${U}-menu-submenu-arrow`},P==="rtl"?no.createElement(hI,{className:`${U}-menu-submenu-arrow-icon`}):no.createElement(f$,{className:`${U}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Ee,validator:({mode:Le})=>{}},we)},[Ne,he]=ti("Dropdown",G.zIndex),ne=no.createElement(jp,{alignPoint:te,...Ke(e,["rootClassName","onOpenChange"]),mouseEnterDelay:h,mouseLeaveDelay:y,visible:le,builtinPlacements:de,arrow:!!n,overlayClassName:Se,prefixCls:U,getPopupContainer:d||N,transitionName:Y,trigger:J,overlay:ae,placement:B,onVisibleChange:ie,overlayStyle:{...G,zIndex:Ne},autoDestroy:w??R},ee);return Ne&&(ne=no.createElement(cs.Provider,{value:he},ne)),ne}),R6=Gp(Ox,"align",void 0,"dropdown",e=>e),E6=e=>no.createElement(R6,{...e},no.createElement("span",null));Ox._InternalPanelDoNotUseOrYouWillBeFired=E6;var Cf=Ox;var Ps=M(require("react"));var Ns=M(require("react"));function Ax(e){return["small","middle","medium","large"].includes(e)}function kx(e){return e?Ko(e):!1}var wf=M(require("react"));var Li=(e,t,o)=>$({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:o}),$s=(e,t)=>t||e;var $6=e=>{let{componentCls:t,borderRadius:o,paddingSM:n,colorBorder:r,paddingXS:i,fontSizeLG:s,fontSizeSM:a,borderRadiusLG:c,borderRadiusSM:l,colorBgContainerDisabled:d,lineWidth:u,lineType:m,antCls:f}=e,[g,p]=qt(f,"space-addon");return{[t]:[{...Et(e),display:"inline-flex",alignItems:"center",gap:0,whiteSpace:"nowrap",paddingInline:n,margin:0,borderWidth:u,borderStyle:m,borderRadius:o,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:s,borderRadius:c},"&-small":{paddingInline:i,borderRadius:l,fontSize:a},"&-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}},{[g("addon-border-color")]:r,[g("addon-background")]:d,[g("addon-border-color-outlined")]:r,[g("addon-background-filled")]:d,borderColor:p("addon-border-color"),background:p("addon-background"),"&-variant-outlined":{[g("addon-border-color")]:p("addon-border-color-outlined")},"&-variant-filled":{[g("addon-border-color")]:"transparent",[g("addon-background")]:p("addon-background-filled"),[`&${t}-disabled`]:{[g("addon-border-color")]:r,[g("addon-background")]:d}},"&-variant-borderless":{border:"none",background:"transparent"},"&-variant-underlined":{border:"none",background:"transparent"}},{"&-status-error":{[g("addon-border-color-outlined")]:e.colorError,[g("addon-background-filled")]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[g("addon-border-color-outlined")]:e.colorWarning,[g("addon-background-filled")]:e.colorWarningBg,color:e.colorWarning}}]}},yN=Ze("Addon",e=>[$6(e),hs(e,{focus:!1})]);var I6=wf.default.forwardRef((e,t)=>{let{className:o,children:n,style:r,prefixCls:i,variant:s="outlined",disabled:a,status:c,...l}=e,{getPrefixCls:d,direction:u}=wf.default.useContext(Oe),m=d("space-addon",i),[f,g]=yN(m),{compactItemClassnames:p,compactSize:h}=kn(m,u),y=Li(m,c),x=$(m,f,p,g,`${m}-variant-${s}`,y,{[`${m}-${h}`]:h,[`${m}-disabled`]:a},o);return wf.default.createElement("div",{ref:t,className:x,style:r,...l},n)}),bN=I6;var xN=M(require("react")),Lx=xN.default.createContext({latestIndex:0}),vN=Lx.Provider;var Is=M(require("react"));var N6=e=>{let{className:t,prefix:o,index:n,children:r,separator:i,style:s,classNames:a,styles:c}=e,{latestIndex:l}=Is.useContext(Lx);return lo(r)?Is.createElement(Is.Fragment,null,Is.createElement("div",{className:t,style:s},r),n<l&&i&&Is.createElement("span",{className:$(`${o}-item-separator`,a?.separator),style:c?.separator},i)):null},SN=N6;var P6=e=>{let{componentCls:t,antCls:o}=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 > ${o}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},T6=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-medium, &-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-medium, &-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}};var CN=Ze("Space",e=>{let t=Fe(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[P6(t),T6(t)]},()=>({}),{resetStyle:!1});var M6=Ns.forwardRef((e,t)=>{let{getPrefixCls:o,direction:n,size:r,className:i,style:s,classNames:a,styles:c}=Ye("space"),{size:l=r??"small",align:d,className:u,rootClassName:m,children:f,direction:g,orientation:p,prefixCls:h,split:y,separator:x,style:b,vertical:S,wrap:v=!1,classNames:C,styles:R,...w}=e,[I,P]=Array.isArray(l)?l:[l,l],N=Ax(P),E=Ax(I),O=kx(P),D=kx(I),A=co(f,{keepEmpty:!0}),[F,_]=Cl(p,S,g),T=d===void 0&&!_?"center":d,L=x??y,z=o("space",h),[G,V]=CN(z),j={...e,size:l,orientation:F,align:T},Y=De(s),B=De(b),[U,K]=et([a,C],[c,Y,R,B],{props:j}),Z=$(z,i,G,`${z}-${F}`,{[`${z}-rtl`]:n==="rtl",[`${z}-align-${T}`]:T,[`${z}-gap-row-${P}`]:N,[`${z}-gap-col-${I}`]:E},u,m,V,U.root),X=$(`${z}-item`,U.item),k=A.map((ee,J)=>{let te=ee?.key||`${X}-${J}`;return Ns.createElement(SN,{prefix:z,classNames:U,styles:K,className:X,key:te,index:J,separator:L,style:K.item},ee)}),W=Ns.useMemo(()=>({latestIndex:A.reduce((J,te,le)=>lo(te)?le:J,0)}),[A]);if(A.length===0)return null;let H={};return v&&(H.flexWrap="wrap"),!E&&D&&(H.columnGap=I),!N&&O&&(H.rowGap=P),Ns.createElement("div",{ref:t,className:Z,style:{...H,...K.root},...w},Ns.createElement(vN,{value:W},k))}),Dx=M6;Dx.Compact=pp;Dx.Addon=bN;var Rf=Dx;var wN=e=>{let{getPopupContainer:t,getPrefixCls:o,direction:n}=Ps.useContext(Oe),{prefixCls:r,type:i="default",danger:s,disabled:a,loading:c,onClick:l,htmlType:d,children:u,className:m,menu:f,arrow:g,autoFocus:p,trigger:h,align:y,open:x,onOpenChange:b,placement:S,getPopupContainer:v,href:C,icon:R=Ps.createElement(Fl,null),title:w,buttonsRender:I=k=>k,mouseEnterDelay:P,mouseLeaveDelay:N,overlayClassName:E,overlayStyle:O,destroyOnHidden:D,destroyPopupOnHide:A,dropdownRender:F,popupRender:_,...T}=e,L=o("dropdown",r),z=`${L}-button`,V={menu:f,arrow:g,autoFocus:p,align:y,disabled:a,trigger:a?[]:h,onOpenChange:b,getPopupContainer:v||t,mouseEnterDelay:P,mouseLeaveDelay:N,classNames:{root:E},styles:{root:O},destroyOnHidden:D,popupRender:_||F},{compactSize:j,compactItemClassnames:Y}=kn(L,n),B=$(z,Y,m);"destroyPopupOnHide"in e&&(V.destroyPopupOnHide=A),"open"in e&&(V.open=x),"placement"in e?V.placement=S:V.placement=n==="rtl"?"bottomLeft":"bottomRight";let U=Ps.createElement(nd,{type:i,danger:s,disabled:a,loading:c,onClick:l,htmlType:d,href:C,title:w},u),K=Ps.createElement(nd,{type:i,danger:s,icon:R}),[Z,X]=I([U,K]);return Ps.createElement(Rf.Compact,{className:B,size:j,block:!0,...T},Z,Ps.createElement(Cf,{...V},X))};wN.__ANT_BUTTON=!0;var RN=wN;var EN=Cf;EN.Button=RN;var $N=EN;var Fx=M(require("react")),Ed=require("react");function Di(e){return Fe(e,{inputAffixPadding:e.paddingXXS})}var _i=e=>{let{controlHeight:t,fontSize:o,lineHeight:n,lineWidth:r,lineWidthFocus:i,controlHeightSM:s,controlHeightLG:a,fontSizeLG:c,lineHeightLG:l,paddingSM:d,controlPaddingHorizontalSM:u,controlPaddingHorizontal:m,colorFillAlter:f,colorPrimaryHover:g,colorPrimary:p,controlOutlineWidth:h,controlOutline:y,colorErrorOutline:x,colorWarningOutline:b,colorBgContainer:S,inputFontSize:v,inputFontSizeLG:C,inputFontSizeSM:R}=e,w=v||o,I=R||w,P=C||c,N=Math.round((t-w*n)/2*10)/10-r,E=Math.round((s-I*n)/2*10)/10-r,O=Math.ceil((a-P*l)/2*10)/10-r;return{lineWidthFocus:i===0?0:r,paddingBlock:Math.max(N,0),paddingBlockSM:Math.max(E,0),paddingBlockLG:Math.max(O,0),paddingInline:d-r,paddingInlineSM:u-r,paddingInlineLG:m-r,addonBg:f,activeBorderColor:p,hoverBorderColor:g,activeShadow:`0 0 0 ${h}px ${y}`,errorActiveShadow:`0 0 0 ${h}px ${x}`,warningActiveShadow:`0 0 0 ${h}px ${b}`,hoverBg:S,activeBg:S,inputFontSize:w,inputFontSizeLG:P,inputFontSizeSM:I}};var O6=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),_x=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorderDisabled,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":{...O6(Fe(e,{hoverBorderColor:e.colorBorderDisabled,hoverBg:e.colorBgContainerDisabled}))}}),AN=(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}}),IN=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...AN(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),kN=(e,t)=>({"&-outlined":{...AN(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{..._x(e)},...IN(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...IN(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),NN=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),LN=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...NN(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...NN(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{..._x(e)}}}}),DN="&:focus-visible, &:has(input:focus-visible), &:has(textarea:focus-visible)",_N=(e,t)=>({outline:`${q(e.lineWidthFocus)} ${e.lineType} ${t}`,outlineOffset:q(e.calc(e.lineWidth).mul(-1).equal()),transition:["outline-offset","outline"].map(o=>`${o} 0s`).join(", ")}),PN=(e,t)=>({"&, & input, & textarea":{color:t.color},[DN]:_N(e,t.color),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),FN=(e,t)=>{let{componentCls:o}=e;return{"&-borderless":{background:"transparent",border:"none",paddingBlock:e.calc(e.paddingBlock).add(e.lineWidth).equal(),[`&${o}-sm, &${o}-affix-wrapper-sm`]:{paddingBlock:e.calc(e.paddingBlockSM).add(e.lineWidth).equal()},[`&${o}-lg, &${o}-affix-wrapper-lg`]:{paddingBlock:e.calc(e.paddingBlockLG).add(e.lineWidth).equal()},"&:focus, &:focus-within":{outline:"none"},[DN]:_N(e,e.activeBorderColor),[`&${o}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${o}-status-error`]:PN(e,{color:e.colorError,affixColor:e.colorErrorAffix}),[`&${o}-status-warning`]:PN(e,{color:e.colorWarning,affixColor:e.colorWarningAffix}),...t}}},zN=(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}}),TN=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...zN(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),BN=(e,t)=>({"&-filled":{...zN(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{..._x(e)},...TN(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorErrorAffix}),...TN(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarningAffix}),...t}}),MN=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),HN=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}},...MN(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...MN(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:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}}),VN=(e,t)=>({background:e.colorBgContainer,borderWidth:`${q(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}}),ON=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...VN(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`}}),WN=(e,t)=>({"&-underlined":{...VN(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"},...ON(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...ON(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}});var A6=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}});var jN=e=>{let{paddingBlockLG:t,lineHeightLG:o,borderRadiusLG:n,paddingInlineLG:r}=e;return{padding:`${q(t)} ${q(r)}`,fontSize:e.inputFontSizeLG,lineHeight:o,borderRadius:n}},UN=e=>({padding:`${q(e.paddingBlockSM)} ${q(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),KN=(e,t={})=>({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${q(e.paddingBlock)} ${q(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...A6(e.colorTextPlaceholder),"&-lg":{...jN(e),...t.largeStyle},"&-sm":{...UN(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:"rtl"}}),k6=e=>{let{componentCls:t,antCls:o}=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`]:{...jN(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...UN(e)},[`&-lg ${o}-select-single`]:{height:e.controlHeightLG},[`&-sm ${o}-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 ${q(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${o}-select`]:{margin:`${q(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${q(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${o}-select-single:not(${o}-select-customize-input):not(${o}-pagination-size-changer)`]:{backgroundColor:"inherit",border:`${q(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},[`${o}-cascader-picker`]:{margin:`-9px ${q(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${o}-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,[`${o}-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,[`${o}-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",...da(),[`${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},[`
|
|
188
|
+
&${s}-slide-left-leave${s}-slide-left-leave-active${t}-placement-leftBottom`]:{animationName:wp}}},Kp(e,p),{[`${t} ${o}`]:{position:"relative",margin:0},[`${o}-submenu-popup`]:{position:"absolute",zIndex:n,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{...Et(e),[o]:{padding:u,listStyleType:"none",backgroundColor:p,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,...ln(e),"&:empty":{padding:0,boxShadow:"none"},[`${o}-item-group-title`]:{padding:`${q(l)} ${q(g)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${o}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${o}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${o}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> a, > ${o}-item-label > a`]:{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${o}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${o}-item, ${o}-submenu-title`]:{display:"flex",margin:0,padding:`${q(l)} ${q(g)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...ln(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:p,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${q(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:f,fontStyle:"normal"}}},[`${o}-item-group-list`]:{margin:`0 ${q(e.marginXS)}`,padding:0,listStyle:"none"},[`${o}-submenu-title`]:{paddingInlineEnd:e.calc(g).add(e.fontSizeSM).equal()},[`${o}-submenu-vertical`]:{position:"relative"},[`${o}-submenu${o}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:p,cursor:"not-allowed"}},[`${o}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}}}},[xn(e,"slide-up"),xn(e,"slide-down"),xn(e,"slide-left"),xn(e,"slide-right"),ga(e,"move-up"),ga(e,"move-down"),Ti(e,"zoom-big")]]},$6=e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...Tl({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...Up(e)}),yN=Ze("Dropdown",e=>{let{marginXXS:t,sizePopupArrow:o,paddingXXS:n,componentCls:r}=e,i=Fe(e,{menuCls:`${r}-menu`,dropdownArrowDistance:e.calc(o).div(2).add(t).equal(),dropdownEdgeChildPadding:n});return[E6(i),hN(i)]},$6,{resetStyle:!1});var Ox=no.forwardRef((e,t)=>{let{menu:o,arrow:n,prefixCls:r,children:i,trigger:s,disabled:a,dropdownRender:c,popupRender:l,getPopupContainer:d,overlayClassName:u,rootClassName:m,overlayStyle:f,open:g,onOpenChange:p,mouseEnterDelay:h=.15,mouseLeaveDelay:y=.1,autoAdjustOverflow:x=!0,placement:b="",transitionName:S,classNames:v,styles:C,destroyPopupOnHide:R,destroyOnHidden:w}=e,{getPrefixCls:I,direction:P,getPopupContainer:N,className:E,style:O,classNames:L,styles:k}=Ye("dropdown"),z={...e,mouseEnterDelay:h,mouseLeaveDelay:y,autoAdjustOverflow:x},_=De(O),T=De(f),[D,F]=et([L,v],[k,_,C,T],{props:z}),G={...F.root},H=l||c,W=Xa("Dropdown"),X=no.useMemo(()=>{let fe=I();return S!==void 0?S:b.startsWith("top")?`${fe}-slide-down`:b.startsWith("left")?`${fe}-slide-right`:b.startsWith("right")?`${fe}-slide-left`:`${fe}-slide-up`},[I,b,S]),B=no.useMemo(()=>b?b.includes("Center")?b.slice(0,b.indexOf("Center")):b:P==="rtl"?"bottomRight":"bottomLeft",[b,P]),j=I("dropdown",r),U=oo(j),[Z,Y]=yN(j,U),[,K]=Gt(),V=no.Children.only(Iw(i)?no.createElement("span",null,i):i),A=bo(t,To(V)),ee=Ro(V,{className:$(`${j}-trigger`,{[`${j}-rtl`]:P==="rtl"},V.props.className),disabled:V.props.disabled??a,ref:A}),Q=a?[]:s,te=!!Q?.includes("contextMenu"),[le,re]=st(!1,g),ie=Ie(fe=>{p?.(fe,{source:"trigger"}),re(fe)}),Se=$(u,m,Z,Y,U,E,D.root,{[`${j}-rtl`]:P==="rtl"}),de=dd({arrowPointAtCenter:at(n)&&n.pointAtCenter,autoAdjustOverflow:x,offset:K.marginXXS,arrowWidth:n?K.sizePopupArrow:0,borderRadius:K.borderRadius}),Ee=Ie(()=>{o?.selectable&&o?.multiple||(p?.(!1,{source:"menu"}),re(!1))}),ae=()=>{let fe=Ke(D,["root"]),ce=Ke(F,["root"]),we;return o?.items&&(we=no.createElement(gN,{...o,classNames:{...fe,subMenu:{...fe}},styles:{...ce,subMenu:{...ce}}})),H&&(we=H(we)),Pn(we)?we=no.createElement("span",null,we):no.isValidElement(we)||(we=no.createElement(no.Fragment,null,we)),no.createElement(rN,{prefixCls:`${j}-menu`,rootClassName:$(Y,U),expandIcon:no.createElement("span",{className:`${j}-menu-submenu-arrow`},P==="rtl"?no.createElement(yI,{className:`${j}-menu-submenu-arrow-icon`}):no.createElement(g$,{className:`${j}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Ee,validator:({mode:Le})=>{}},we)},[Ne,he]=ti("Dropdown",G.zIndex),ne=no.createElement(jp,{alignPoint:te,...Ke(e,["rootClassName","onOpenChange"]),mouseEnterDelay:h,mouseLeaveDelay:y,visible:le,builtinPlacements:de,arrow:!!n,overlayClassName:Se,prefixCls:j,getPopupContainer:d||N,transitionName:X,trigger:Q,overlay:ae,placement:B,onVisibleChange:ie,overlayStyle:{...G,zIndex:Ne},autoDestroy:w??R},ee);return Ne&&(ne=no.createElement(cs.Provider,{value:he},ne)),ne}),I6=Gp(Ox,"align",void 0,"dropdown",e=>e),N6=e=>no.createElement(I6,{...e},no.createElement("span",null));Ox._InternalPanelDoNotUseOrYouWillBeFired=N6;var Cf=Ox;var Ps=M(require("react"));var Ns=M(require("react"));function Ax(e){return["small","middle","medium","large"].includes(e)}function kx(e){return e?Ko(e):!1}var wf=M(require("react"));var Li=(e,t,o)=>$({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:o}),$s=(e,t)=>t||e;var P6=e=>{let{componentCls:t,borderRadius:o,paddingSM:n,colorBorder:r,paddingXS:i,fontSizeLG:s,fontSizeSM:a,borderRadiusLG:c,borderRadiusSM:l,colorBgContainerDisabled:d,lineWidth:u,lineType:m,antCls:f}=e,[g,p]=qt(f,"space-addon");return{[t]:[{...Et(e),display:"inline-flex",alignItems:"center",gap:0,whiteSpace:"nowrap",paddingInline:n,margin:0,borderWidth:u,borderStyle:m,borderRadius:o,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:s,borderRadius:c},"&-small":{paddingInline:i,borderRadius:l,fontSize:a},"&-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}},{[g("addon-border-color")]:r,[g("addon-background")]:d,[g("addon-border-color-outlined")]:r,[g("addon-background-filled")]:d,borderColor:p("addon-border-color"),background:p("addon-background"),"&-variant-outlined":{[g("addon-border-color")]:p("addon-border-color-outlined")},"&-variant-filled":{[g("addon-border-color")]:"transparent",[g("addon-background")]:p("addon-background-filled"),[`&${t}-disabled`]:{[g("addon-border-color")]:r,[g("addon-background")]:d}},"&-variant-borderless":{border:"none",background:"transparent"},"&-variant-underlined":{border:"none",background:"transparent"}},{"&-status-error":{[g("addon-border-color-outlined")]:e.colorError,[g("addon-background-filled")]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[g("addon-border-color-outlined")]:e.colorWarning,[g("addon-background-filled")]:e.colorWarningBg,color:e.colorWarning}}]}},bN=Ze("Addon",e=>[P6(e),hs(e,{focus:!1})]);var T6=wf.default.forwardRef((e,t)=>{let{className:o,children:n,style:r,prefixCls:i,variant:s="outlined",disabled:a,status:c,...l}=e,{getPrefixCls:d,direction:u}=wf.default.useContext(Oe),m=d("space-addon",i),[f,g]=bN(m),{compactItemClassnames:p,compactSize:h}=kn(m,u),y=Li(m,c),x=$(m,f,p,g,`${m}-variant-${s}`,y,{[`${m}-${h}`]:h,[`${m}-disabled`]:a},o);return wf.default.createElement("div",{ref:t,className:x,style:r,...l},n)}),xN=T6;var vN=M(require("react")),Lx=vN.default.createContext({latestIndex:0}),SN=Lx.Provider;var Is=M(require("react"));var M6=e=>{let{className:t,prefix:o,index:n,children:r,separator:i,style:s,classNames:a,styles:c}=e,{latestIndex:l}=Is.useContext(Lx);return lo(r)?Is.createElement(Is.Fragment,null,Is.createElement("div",{className:t,style:s},r),n<l&&i&&Is.createElement("span",{className:$(`${o}-item-separator`,a?.separator),style:c?.separator},i)):null},CN=M6;var O6=e=>{let{componentCls:t,antCls:o}=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 > ${o}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},A6=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-medium, &-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-medium, &-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}};var wN=Ze("Space",e=>{let t=Fe(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[O6(t),A6(t)]},()=>({}),{resetStyle:!1});var k6=Ns.forwardRef((e,t)=>{let{getPrefixCls:o,direction:n,size:r,className:i,style:s,classNames:a,styles:c}=Ye("space"),{size:l=r??"small",align:d,className:u,rootClassName:m,children:f,direction:g,orientation:p,prefixCls:h,split:y,separator:x,style:b,vertical:S,wrap:v=!1,classNames:C,styles:R,...w}=e,[I,P]=Array.isArray(l)?l:[l,l],N=Ax(P),E=Ax(I),O=kx(P),L=kx(I),k=co(f,{keepEmpty:!0}),[z,_]=Cl(p,S,g),T=d===void 0&&!_?"center":d,D=x??y,F=o("space",h),[G,H]=wN(F),W={...e,size:l,orientation:z,align:T},X=De(s),B=De(b),[j,U]=et([a,C],[c,X,R,B],{props:W}),Z=$(F,i,G,`${F}-${z}`,{[`${F}-rtl`]:n==="rtl",[`${F}-align-${T}`]:T,[`${F}-gap-row-${P}`]:N,[`${F}-gap-col-${I}`]:E},u,m,H,j.root),Y=$(`${F}-item`,j.item),K=k.map((ee,Q)=>{let te=ee?.key||`${Y}-${Q}`;return Ns.createElement(CN,{prefix:F,classNames:j,styles:U,className:Y,key:te,index:Q,separator:D,style:U.item},ee)}),V=Ns.useMemo(()=>({latestIndex:k.reduce((Q,te,le)=>lo(te)?le:Q,0)}),[k]);if(k.length===0)return null;let A={};return v&&(A.flexWrap="wrap"),!E&&L&&(A.columnGap=I),!N&&O&&(A.rowGap=P),Ns.createElement("div",{ref:t,className:Z,style:{...A,...U.root},...w},Ns.createElement(SN,{value:V},K))}),Dx=k6;Dx.Compact=pp;Dx.Addon=xN;var Rf=Dx;var RN=e=>{let{getPopupContainer:t,getPrefixCls:o,direction:n}=Ps.useContext(Oe),{prefixCls:r,type:i="default",danger:s,disabled:a,loading:c,onClick:l,htmlType:d,children:u,className:m,menu:f,arrow:g,autoFocus:p,trigger:h,align:y,open:x,onOpenChange:b,placement:S,getPopupContainer:v,href:C,icon:R=Ps.createElement(Fl,null),title:w,buttonsRender:I=K=>K,mouseEnterDelay:P,mouseLeaveDelay:N,overlayClassName:E,overlayStyle:O,destroyOnHidden:L,destroyPopupOnHide:k,dropdownRender:z,popupRender:_,...T}=e,D=o("dropdown",r),F=`${D}-button`,H={menu:f,arrow:g,autoFocus:p,align:y,disabled:a,trigger:a?[]:h,onOpenChange:b,getPopupContainer:v||t,mouseEnterDelay:P,mouseLeaveDelay:N,classNames:{root:E},styles:{root:O},destroyOnHidden:L,popupRender:_||z},{compactSize:W,compactItemClassnames:X}=kn(D,n),B=$(F,X,m);"destroyPopupOnHide"in e&&(H.destroyPopupOnHide=k),"open"in e&&(H.open=x),"placement"in e?H.placement=S:H.placement=n==="rtl"?"bottomLeft":"bottomRight";let j=Ps.createElement(nd,{type:i,danger:s,disabled:a,loading:c,onClick:l,htmlType:d,href:C,title:w},u),U=Ps.createElement(nd,{type:i,danger:s,icon:R}),[Z,Y]=I([j,U]);return Ps.createElement(Rf.Compact,{className:B,size:W,block:!0,...T},Z,Ps.createElement(Cf,{...H},Y))};RN.__ANT_BUTTON=!0;var EN=RN;var $N=Cf;$N.Button=EN;var IN=$N;var Fx=M(require("react")),Ed=require("react");function Di(e){return Fe(e,{inputAffixPadding:e.paddingXXS})}var _i=e=>{let{controlHeight:t,fontSize:o,lineHeight:n,lineWidth:r,lineWidthFocus:i,controlHeightSM:s,controlHeightLG:a,fontSizeLG:c,lineHeightLG:l,paddingSM:d,controlPaddingHorizontalSM:u,controlPaddingHorizontal:m,colorFillAlter:f,colorPrimaryHover:g,colorPrimary:p,controlOutlineWidth:h,controlOutline:y,colorErrorOutline:x,colorWarningOutline:b,colorBgContainer:S,inputFontSize:v,inputFontSizeLG:C,inputFontSizeSM:R}=e,w=v||o,I=R||w,P=C||c,N=Math.round((t-w*n)/2*10)/10-r,E=Math.round((s-I*n)/2*10)/10-r,O=Math.ceil((a-P*l)/2*10)/10-r;return{lineWidthFocus:i===0?0:r,paddingBlock:Math.max(N,0),paddingBlockSM:Math.max(E,0),paddingBlockLG:Math.max(O,0),paddingInline:d-r,paddingInlineSM:u-r,paddingInlineLG:m-r,addonBg:f,activeBorderColor:p,hoverBorderColor:g,activeShadow:`0 0 0 ${h}px ${y}`,errorActiveShadow:`0 0 0 ${h}px ${x}`,warningActiveShadow:`0 0 0 ${h}px ${b}`,hoverBg:S,activeBg:S,inputFontSize:w,inputFontSizeLG:P,inputFontSizeSM:I}};var L6=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),_x=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorderDisabled,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":{...L6(Fe(e,{hoverBorderColor:e.colorBorderDisabled,hoverBg:e.colorBgContainerDisabled}))}}),kN=(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}}),NN=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...kN(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),LN=(e,t)=>({"&-outlined":{...kN(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{..._x(e)},...NN(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...NN(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),PN=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),DN=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...PN(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...PN(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{..._x(e)}}}}),_N="&:focus-visible, &:has(input:focus-visible), &:has(textarea:focus-visible)",FN=(e,t)=>({outline:`${q(e.lineWidthFocus)} ${e.lineType} ${t}`,outlineOffset:q(e.calc(e.lineWidth).mul(-1).equal()),transition:["outline-offset","outline"].map(o=>`${o} 0s`).join(", ")}),TN=(e,t)=>({"&, & input, & textarea":{color:t.color},[_N]:FN(e,t.color),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),zN=(e,t)=>{let{componentCls:o}=e;return{"&-borderless":{background:"transparent",border:"none",paddingBlock:e.calc(e.paddingBlock).add(e.lineWidth).equal(),[`&${o}-sm, &${o}-affix-wrapper-sm`]:{paddingBlock:e.calc(e.paddingBlockSM).add(e.lineWidth).equal()},[`&${o}-lg, &${o}-affix-wrapper-lg`]:{paddingBlock:e.calc(e.paddingBlockLG).add(e.lineWidth).equal()},"&:focus, &:focus-within":{outline:"none"},[_N]:FN(e,e.activeBorderColor),[`&${o}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${o}-status-error`]:TN(e,{color:e.colorError,affixColor:e.colorErrorAffix}),[`&${o}-status-warning`]:TN(e,{color:e.colorWarning,affixColor:e.colorWarningAffix}),...t}}},BN=(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}}),MN=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...BN(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),HN=(e,t)=>({"&-filled":{...BN(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{..._x(e)},...MN(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorErrorAffix}),...MN(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarningAffix}),...t}}),ON=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),VN=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}},...ON(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...ON(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:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}}),WN=(e,t)=>({background:e.colorBgContainer,borderWidth:`${q(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}}),AN=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...WN(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`}}),jN=(e,t)=>({"&-underlined":{...WN(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"},...AN(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...AN(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}});var D6=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}});var UN=e=>{let{paddingBlockLG:t,lineHeightLG:o,borderRadiusLG:n,paddingInlineLG:r}=e;return{padding:`${q(t)} ${q(r)}`,fontSize:e.inputFontSizeLG,lineHeight:o,borderRadius:n}},KN=e=>({padding:`${q(e.paddingBlockSM)} ${q(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),GN=(e,t={})=>({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${q(e.paddingBlock)} ${q(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...D6(e.colorTextPlaceholder),"&-lg":{...UN(e),...t.largeStyle},"&-sm":{...KN(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:"rtl"}}),_6=e=>{let{componentCls:t,antCls:o}=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`]:{...UN(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...KN(e)},[`&-lg ${o}-select-single`]:{height:e.controlHeightLG},[`&-sm ${o}-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 ${q(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${o}-select`]:{margin:`${q(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${q(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${o}-select-single:not(${o}-select-customize-input):not(${o}-pagination-size-changer)`]:{backgroundColor:"inherit",border:`${q(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},[`${o}-cascader-picker`]:{margin:`-9px ${q(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${o}-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,[`${o}-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,[`${o}-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",...da(),[`${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},[`
|
|
189
189
|
& > ${t}-affix-wrapper,
|
|
190
190
|
& > ${t}-number-affix-wrapper,
|
|
191
191
|
& > ${o}-picker-range
|
|
@@ -198,7 +198,7 @@ ${i}
|
|
|
198
198
|
& > ${o}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
199
199
|
& > ${o}-select:last-child,
|
|
200
200
|
& > ${o}-cascader-picker:last-child ${t},
|
|
201
|
-
& > ${o}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${o}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{}}}}},L6=e=>{let{componentCls:t,controlHeightSM:o,lineWidth:n,calc:r}=e,s=r(o).sub(r(n).mul(2)).sub(16).div(2).equal();return{[t]:{...Et(e),...KN(e),...kN(e),...BN(e),...FN(e),...WN(e),'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:o,paddingTop:s,paddingBottom:s}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}}}},D6=e=>{let{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},"&:focus-visible":{color:e.colorIcon,borderRadius:e.borderRadiusSM,...An(e)},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${q(e.inputAffixPadding)}`}}}},_6=e=>{let{componentCls:t,inputAffixPadding:o,colorTextDescription:n,motionDurationSlow:r,colorIcon:i,colorIconHover:s}=e,a=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[a]:{...KN(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:n,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:o},"&-suffix":{marginInlineStart:o},"&-password-icon":{display:"inline-flex",color:i,cursor:"pointer",transition:`all ${r}`,"&:hover":{color:s}}},...D6(e)},[`${t}-underlined`]:{borderRadius:0},[c]:{[`${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},F6=e=>{let{componentCls:t,borderRadiusLG:o,borderRadiusSM:n}=e;return{[`${t}-group`]:{...Et(e),...k6(e),"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:n}},...LN(e),...HN(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}}}}}},z6=e=>{let{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Ef=Ze(["Input","Shared"],e=>{let t=Fe(e,Di(e));return[L6(t),_6(t)]},_i,{resetFont:!1}),$f=Ze(["Input","Component"],e=>{let t=Fe(e,Di(e));return[F6(t),z6(t),hs(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},_i,{resetFont:!1});var B6=e=>{let{getPrefixCls:t,direction:o}=(0,Ed.useContext)(Oe),{prefixCls:n,className:r}=e,i=t("input-group",n),s=t("input"),[a,c]=$f(s),l=$(i,c,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:o==="rtl"},a,r),d=(0,Ed.useContext)(cn),u=(0,Ed.useMemo)(()=>({...d,isFormItemInput:!1}),[d]);return Fx.createElement(cn.Provider,{value:u},Fx.createElement(Rf.Compact,{className:l,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))},GN=B6;var Fn=M(require("react"));var Yo=M(require("react"));function XN(e){return!!(e.addonBefore||e.addonAfter)}function YN(e){return!!(e.prefix||e.suffix||e.allowClear)}function qN(e,t,o){let n=t.cloneNode(!0),r=Object.create(e,{target:{value:n},currentTarget:{value:n}});return n.value=o,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd),n.setSelectionRange=(...i)=>{t.setSelectionRange(...i)},r}function Wl(e,t,o,n){if(!o)return;let r=t;if(t.type==="click"){r=qN(t,e,""),o(r);return}if(e.type!=="file"&&n!==void 0){r=qN(t,e,n),o(r);return}o(r)}function zx(){return zx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},zx.apply(this,arguments)}var H6=Yo.default.forwardRef((e,t)=>{let{inputElement:o,children:n,prefixCls:r,prefix:i,suffix:s,addonBefore:a,addonAfter:c,className:l,style:d,disabled:u,readOnly:m,focused:f,triggerFocus:g,allowClear:p,value:h,handleReset:y,hidden:x,classes:b,classNames:S,dataAttrs:v,styles:C,components:R,onClear:w}=e,I=n??o,P=R?.affixWrapper||"span",N=R?.groupWrapper||"span",E=R?.wrapper||"span",O=R?.groupAddon||"span",D=(0,Yo.useRef)(null),A=L=>{D.current?.contains(L.target)&&g?.()},F=YN(e),_=(0,Yo.cloneElement)(I,{value:h,className:$(I.props?.className,!F&&S?.variant)||null}),T=(0,Yo.useRef)(null);if(Yo.default.useImperativeHandle(t,()=>({nativeElement:T.current||D.current})),F){let L=null;if(p){let j=!u&&!m&&h&&!(typeof p=="object"&&p.disabled),Y=`${r}-clear-icon`,B=typeof p=="object"&&p?.clearIcon?p.clearIcon:"\u2716";L=Yo.default.createElement("button",{type:"button",onClick:U=>{y?.(U),w?.()},onMouseDown:U=>U.preventDefault(),className:$(Y,{[`${Y}-hidden`]:!j,[`${Y}-has-suffix`]:!!s},S?.clear),style:C?.clear},B)}let z=`${r}-affix-wrapper`,G=$(z,{[`${r}-disabled`]:u,[`${z}-disabled`]:u,[`${z}-focused`]:f,[`${z}-readonly`]:m,[`${z}-input-with-clear-btn`]:s&&p&&h},b?.affixWrapper,S?.affixWrapper,S?.variant),V=(s||p)&&Yo.default.createElement("span",{className:$(`${r}-suffix`,S?.suffix),style:C?.suffix},L,s);_=Yo.default.createElement(P,zx({className:G,style:C?.affixWrapper,onClick:A},v?.affixWrapper,{ref:D}),i&&Yo.default.createElement("span",{className:$(`${r}-prefix`,S?.prefix),style:C?.prefix},i),_,V)}if(XN(e)){let L=`${r}-group`,z=`${L}-addon`,G=`${L}-wrapper`,V=$(`${r}-wrapper`,L,b?.wrapper,S?.wrapper),j=$(G,{[`${G}-disabled`]:u},b?.group,S?.groupWrapper);_=Yo.default.createElement(N,{className:j,ref:T},Yo.default.createElement(E,{className:V},a&&Yo.default.createElement(O,{className:z},a),_,c&&Yo.default.createElement(O,{className:z},c)))}return Yo.default.cloneElement(_,{className:$(_.props?.className,l)||null,style:{..._.props?.style,...d},hidden:x})}),$d=H6;var Ao=M(require("react"));var ZN=M(require("react"));function Id(e,t){return ZN.useMemo(()=>{let o={};t&&(o.show=typeof t=="object"&&t.formatter?t.formatter:!!t),o={...o,...e};let{show:n,...r}=o;return{...r,show:!!n,showFormatter:typeof n=="function"?n:void 0,strategy:r.strategy||(i=>i.length)}},[e,t])}var QN=M(require("react"));function Nd({countConfig:e,value:t,maxLength:o}){return QN.useMemo(()=>{let n=e.max??o,r=e.strategy(t),i=!!n&&r>n,s=Number(n)>0,a=e.show?e.showFormatter?e.showFormatter({value:t,count:r,maxLength:n}):`${r}${s?` / ${n}`:""}`:void 0;return{mergedMax:n,isOutOfRange:i,dataCount:a}},[e,o,t])}var Fi=M(require("react"));function Pd({countConfig:e,getTarget:t}){let[o,n]=Fi.useState(null),r=Fi.useRef(t);return Fi.useEffect(()=>{r.current=t},[t]),Fi.useEffect(()=>{o&&(r.current()?.setSelectionRange(...o),n(null))},[o]),Fi.useCallback((s,a)=>{let c=s;return!a&&e.exceedFormatter&&e.max&&e.strategy(s)>e.max&&(c=e.exceedFormatter(s,{max:e.max}),s!==c&&n([r.current()?.selectionStart||0,r.current()?.selectionEnd||0])),c},[e])}function Td(e,t){let[o,n]=st(e,t),r=o==null?"":String(o);return{value:o,setValue:n,formatValue:r}}function If(){return If=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},If.apply(this,arguments)}var V6=(0,Ao.forwardRef)((e,t)=>{let{autoComplete:o,onChange:n,onFocus:r,onBlur:i,onPressEnter:s,onKeyDown:a,onKeyUp:c,prefixCls:l="rc-input",disabled:d,htmlSize:u,className:m,maxLength:f,suffix:g,showCount:p,count:h,type:y="text",classes:x,classNames:b,styles:S,onCompositionStart:v,onCompositionEnd:C,...R}=e,[w,I]=(0,Ao.useState)(!1),P=(0,Ao.useRef)(!1),N=(0,Ao.useRef)(!1),E=(0,Ao.useRef)(null),O=(0,Ao.useRef)(null),D=H=>{E.current&&Ga(E.current,H)},{setValue:A,formatValue:F}=Td(e.defaultValue,e.value),_=Id(h,p),{isOutOfRange:T,dataCount:L}=Nd({countConfig:_,value:F,maxLength:f}),z=Pd({countConfig:_,getTarget:()=>E.current});(0,Ao.useImperativeHandle)(t,()=>({focus:D,blur:()=>{E.current?.blur()},setSelectionRange:(H,ee,J)=>{E.current?.setSelectionRange(H,ee,J)},select:()=>{E.current?.select()},input:E.current,nativeElement:O.current?.nativeElement||E.current})),(0,Ao.useEffect)(()=>{N.current&&(N.current=!1),I(H=>H&&d?!1:H)},[d]);let G=(H,ee,J)=>{let te=z(ee,P.current);J.source==="compositionEnd"&&ee===te||(A(te),E.current&&Wl(E.current,H,n,te))},V=H=>{G(H,H.target.value,{source:"change"})},j=H=>{P.current=!1,G(H,H.currentTarget.value,{source:"compositionEnd"}),C?.(H)},Y=H=>{s&&H.key==="Enter"&&!N.current&&!H.nativeEvent.isComposing&&(N.current=!0,s(H)),a?.(H)},B=H=>{H.key==="Enter"&&(N.current=!1),c?.(H)},U=H=>{I(!0),r?.(H)},K=H=>{N.current&&(N.current=!1),I(!1),i?.(H)},Z=H=>{A(""),D(),E.current&&Wl(E.current,H,n)},X=T&&`${l}-out-of-range`,k=()=>{let H=Ke(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return Ao.default.createElement("input",If({autoComplete:o},H,{onChange:V,onFocus:U,onBlur:K,onKeyDown:Y,onKeyUp:B,className:$(l,{[`${l}-disabled`]:d},b?.input),style:S?.input,ref:E,size:u,type:y,onCompositionStart:ee=>{P.current=!0,v?.(ee)},onCompositionEnd:j}))},W=()=>g||_.show?Ao.default.createElement(Ao.default.Fragment,null,_.show&&Ao.default.createElement("span",{className:$(`${l}-show-count-suffix`,{[`${l}-show-count-has-suffix`]:!!g},b?.count),style:{...S?.count}},L),g):null;return Ao.default.createElement($d,If({},R,{prefixCls:l,className:$(m,X),handleReset:Z,value:F,focused:w,triggerFocus:D,suffix:W(),disabled:d,classes:x,classNames:b,styles:S,ref:O}),k())}),JN=V6;var Qo=M(require("react"));var Zo=M(require("react"));var W6=`
|
|
201
|
+
& > ${o}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${o}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{}}}}},F6=e=>{let{componentCls:t,controlHeightSM:o,lineWidth:n,calc:r}=e,s=r(o).sub(r(n).mul(2)).sub(16).div(2).equal();return{[t]:{...Et(e),...GN(e),...LN(e),...HN(e),...zN(e),...jN(e),'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:o,paddingTop:s,paddingBottom:s}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}}}},z6=e=>{let{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},"&:focus-visible":{color:e.colorIcon,borderRadius:e.borderRadiusSM,...An(e)},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${q(e.inputAffixPadding)}`}}}},B6=e=>{let{componentCls:t,inputAffixPadding:o,colorTextDescription:n,motionDurationSlow:r,colorIcon:i,colorIconHover:s}=e,a=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[a]:{...GN(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:n,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:o},"&-suffix":{marginInlineStart:o},"&-password-icon":{display:"inline-flex",color:i,cursor:"pointer",transition:`all ${r}`,"&:hover":{color:s}}},...z6(e)},[`${t}-underlined`]:{borderRadius:0},[c]:{[`${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},H6=e=>{let{componentCls:t,borderRadiusLG:o,borderRadiusSM:n}=e;return{[`${t}-group`]:{...Et(e),..._6(e),"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:n}},...DN(e),...VN(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}}}}}},V6=e=>{let{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Ef=Ze(["Input","Shared"],e=>{let t=Fe(e,Di(e));return[F6(t),B6(t)]},_i,{resetFont:!1}),$f=Ze(["Input","Component"],e=>{let t=Fe(e,Di(e));return[H6(t),V6(t),hs(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},_i,{resetFont:!1});var W6=e=>{let{getPrefixCls:t,direction:o}=(0,Ed.useContext)(Oe),{prefixCls:n,className:r}=e,i=t("input-group",n),s=t("input"),[a,c]=$f(s),l=$(i,c,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:o==="rtl"},a,r),d=(0,Ed.useContext)(cn),u=(0,Ed.useMemo)(()=>({...d,isFormItemInput:!1}),[d]);return Fx.createElement(cn.Provider,{value:u},Fx.createElement(Rf.Compact,{className:l,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))},qN=W6;var Fn=M(require("react"));var Yo=M(require("react"));function YN(e){return!!(e.addonBefore||e.addonAfter)}function ZN(e){return!!(e.prefix||e.suffix||e.allowClear)}function XN(e,t,o){let n=t.cloneNode(!0),r=Object.create(e,{target:{value:n},currentTarget:{value:n}});return n.value=o,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd),n.setSelectionRange=(...i)=>{t.setSelectionRange(...i)},r}function Wl(e,t,o,n){if(!o)return;let r=t;if(t.type==="click"){r=XN(t,e,""),o(r);return}if(e.type!=="file"&&n!==void 0){r=XN(t,e,n),o(r);return}o(r)}function zx(){return zx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},zx.apply(this,arguments)}var j6=Yo.default.forwardRef((e,t)=>{let{inputElement:o,children:n,prefixCls:r,prefix:i,suffix:s,addonBefore:a,addonAfter:c,className:l,style:d,disabled:u,readOnly:m,focused:f,triggerFocus:g,allowClear:p,value:h,handleReset:y,hidden:x,classes:b,classNames:S,dataAttrs:v,styles:C,components:R,onClear:w}=e,I=n??o,P=R?.affixWrapper||"span",N=R?.groupWrapper||"span",E=R?.wrapper||"span",O=R?.groupAddon||"span",L=(0,Yo.useRef)(null),k=D=>{L.current?.contains(D.target)&&g?.()},z=ZN(e),_=(0,Yo.cloneElement)(I,{value:h,className:$(I.props?.className,!z&&S?.variant)||null}),T=(0,Yo.useRef)(null);if(Yo.default.useImperativeHandle(t,()=>({nativeElement:T.current||L.current})),z){let D=null;if(p){let W=!u&&!m&&h&&!(typeof p=="object"&&p.disabled),X=`${r}-clear-icon`,B=typeof p=="object"&&p?.clearIcon?p.clearIcon:"\u2716";D=Yo.default.createElement("button",{type:"button",onClick:j=>{y?.(j),w?.()},onMouseDown:j=>j.preventDefault(),className:$(X,{[`${X}-hidden`]:!W,[`${X}-has-suffix`]:!!s},S?.clear),style:C?.clear},B)}let F=`${r}-affix-wrapper`,G=$(F,{[`${r}-disabled`]:u,[`${F}-disabled`]:u,[`${F}-focused`]:f,[`${F}-readonly`]:m,[`${F}-input-with-clear-btn`]:s&&p&&h},b?.affixWrapper,S?.affixWrapper,S?.variant),H=(s||p)&&Yo.default.createElement("span",{className:$(`${r}-suffix`,S?.suffix),style:C?.suffix},D,s);_=Yo.default.createElement(P,zx({className:G,style:C?.affixWrapper,onClick:k},v?.affixWrapper,{ref:L}),i&&Yo.default.createElement("span",{className:$(`${r}-prefix`,S?.prefix),style:C?.prefix},i),_,H)}if(YN(e)){let D=`${r}-group`,F=`${D}-addon`,G=`${D}-wrapper`,H=$(`${r}-wrapper`,D,b?.wrapper,S?.wrapper),W=$(G,{[`${G}-disabled`]:u},b?.group,S?.groupWrapper);_=Yo.default.createElement(N,{className:W,ref:T},Yo.default.createElement(E,{className:H},a&&Yo.default.createElement(O,{className:F},a),_,c&&Yo.default.createElement(O,{className:F},c)))}return Yo.default.cloneElement(_,{className:$(_.props?.className,l)||null,style:{..._.props?.style,...d},hidden:x})}),$d=j6;var ko=M(require("react"));var QN=M(require("react"));function Id(e,t){return QN.useMemo(()=>{let o={};t&&(o.show=typeof t=="object"&&t.formatter?t.formatter:!!t),o={...o,...e};let{show:n,...r}=o;return{...r,show:!!n,showFormatter:typeof n=="function"?n:void 0,strategy:r.strategy||(i=>i.length)}},[e,t])}var JN=M(require("react"));function Nd({countConfig:e,value:t,maxLength:o}){return JN.useMemo(()=>{let n=e.max??o,r=e.strategy(t),i=!!n&&r>n,s=Number(n)>0,a=e.show?e.showFormatter?e.showFormatter({value:t,count:r,maxLength:n}):`${r}${s?` / ${n}`:""}`:void 0;return{mergedMax:n,isOutOfRange:i,dataCount:a}},[e,o,t])}var Fi=M(require("react"));function Pd({countConfig:e,getTarget:t}){let[o,n]=Fi.useState(null),r=Fi.useRef(t);return Fi.useEffect(()=>{r.current=t},[t]),Fi.useEffect(()=>{o&&(r.current()?.setSelectionRange(...o),n(null))},[o]),Fi.useCallback((s,a)=>{let c=s;return!a&&e.exceedFormatter&&e.max&&e.strategy(s)>e.max&&(c=e.exceedFormatter(s,{max:e.max}),s!==c&&n([r.current()?.selectionStart||0,r.current()?.selectionEnd||0])),c},[e])}function Td(e,t){let[o,n]=st(e,t),r=o==null?"":String(o);return{value:o,setValue:n,formatValue:r}}function If(){return If=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},If.apply(this,arguments)}var U6=(0,ko.forwardRef)((e,t)=>{let{autoComplete:o,onChange:n,onFocus:r,onBlur:i,onPressEnter:s,onKeyDown:a,onKeyUp:c,prefixCls:l="rc-input",disabled:d,htmlSize:u,className:m,maxLength:f,suffix:g,showCount:p,count:h,type:y="text",classes:x,classNames:b,styles:S,onCompositionStart:v,onCompositionEnd:C,...R}=e,[w,I]=(0,ko.useState)(!1),P=(0,ko.useRef)(!1),N=(0,ko.useRef)(!1),E=(0,ko.useRef)(null),O=(0,ko.useRef)(null),L=A=>{E.current&&Ga(E.current,A)},{setValue:k,formatValue:z}=Td(e.defaultValue,e.value),_=Id(h,p),{isOutOfRange:T,dataCount:D}=Nd({countConfig:_,value:z,maxLength:f}),F=Pd({countConfig:_,getTarget:()=>E.current});(0,ko.useImperativeHandle)(t,()=>({focus:L,blur:()=>{E.current?.blur()},setSelectionRange:(A,ee,Q)=>{E.current?.setSelectionRange(A,ee,Q)},select:()=>{E.current?.select()},input:E.current,nativeElement:O.current?.nativeElement||E.current})),(0,ko.useEffect)(()=>{N.current&&(N.current=!1),I(A=>A&&d?!1:A)},[d]);let G=(A,ee,Q)=>{let te=F(ee,P.current);Q.source==="compositionEnd"&&ee===te||(k(te),E.current&&Wl(E.current,A,n,te))},H=A=>{G(A,A.target.value,{source:"change"})},W=A=>{P.current=!1,G(A,A.currentTarget.value,{source:"compositionEnd"}),C?.(A)},X=A=>{s&&A.key==="Enter"&&!N.current&&!A.nativeEvent.isComposing&&(N.current=!0,s(A)),a?.(A)},B=A=>{A.key==="Enter"&&(N.current=!1),c?.(A)},j=A=>{I(!0),r?.(A)},U=A=>{N.current&&(N.current=!1),I(!1),i?.(A)},Z=A=>{k(""),L(),E.current&&Wl(E.current,A,n)},Y=T&&`${l}-out-of-range`,K=()=>{let A=Ke(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return ko.default.createElement("input",If({autoComplete:o},A,{onChange:H,onFocus:j,onBlur:U,onKeyDown:X,onKeyUp:B,className:$(l,{[`${l}-disabled`]:d},b?.input),style:S?.input,ref:E,size:u,type:y,onCompositionStart:ee=>{P.current=!0,v?.(ee)},onCompositionEnd:W}))},V=()=>g||_.show?ko.default.createElement(ko.default.Fragment,null,_.show&&ko.default.createElement("span",{className:$(`${l}-show-count-suffix`,{[`${l}-show-count-has-suffix`]:!!g},b?.count),style:{...S?.count}},D),g):null;return ko.default.createElement($d,If({},R,{prefixCls:l,className:$(m,Y),handleReset:Z,value:z,focused:w,triggerFocus:L,suffix:V(),disabled:d,classes:x,classNames:b,styles:S,ref:O}),K())}),eP=U6;var Qo=M(require("react"));var Zo=M(require("react"));var K6=`
|
|
202
202
|
min-height:0 !important;
|
|
203
203
|
max-height:none !important;
|
|
204
204
|
height:0 !important;
|
|
@@ -209,10 +209,10 @@ ${i}
|
|
|
209
209
|
top:0 !important;
|
|
210
210
|
right:0 !important;
|
|
211
211
|
pointer-events: none !important;
|
|
212
|
-
`,j6=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Bx={},nr;function U6(e,t=!1){let o=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Bx[o])return Bx[o];let n=window.getComputedStyle(e),r=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),i=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),s=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),c={sizingStyle:j6.map(l=>`${l}:${n.getPropertyValue(l)}`).join(";"),paddingSize:i,borderSize:s,boxSizing:r};return t&&o&&(Bx[o]=c),c}function Hx(e,t=!1,o=null,n=null){nr||(nr=document.createElement("textarea"),nr.setAttribute("tab-index","-1"),nr.setAttribute("aria-hidden","true"),nr.setAttribute("name","hiddenTextarea"),document.body.appendChild(nr)),e.getAttribute("wrap")?nr.setAttribute("wrap",e.getAttribute("wrap")):nr.removeAttribute("wrap");let{paddingSize:r,borderSize:i,boxSizing:s,sizingStyle:a}=U6(e,t);nr.setAttribute("style",`${a};${W6}`),nr.value=e.value||e.placeholder||"";let c,l,d,u=nr.scrollHeight;if(s==="border-box"?u+=i:s==="content-box"&&(u-=r),o!==null||n!==null){nr.value=" ";let f=nr.scrollHeight-r;o!==null&&(c=f*o,s==="border-box"&&(c=c+r+i),u=Math.max(c,u)),n!==null&&(l=f*n,s==="border-box"&&(l=l+r+i),d=u>l?void 0:"hidden",u=Math.min(l,u))}let m={height:u,overflowY:d,resize:"none"};return c&&(m.minHeight=c),l&&(m.maxHeight=l),m}function Ux(){return Ux=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Ux.apply(this,arguments)}var Vx=0,Wx=1,jx=2,K6=Zo.forwardRef((e,t)=>{let{prefixCls:o,defaultValue:n,value:r,autoSize:i,onResize:s,className:a,style:c,disabled:l,onChange:d,onInternalAutoSize:u,...m}=e,[f,g]=st(n,r),p=f??"",h=A=>{g(A.target.value),d?.(A)},y=Zo.useRef(null);Zo.useImperativeHandle(t,()=>({textArea:y.current}));let[x,b]=Zo.useMemo(()=>i&&typeof i=="object"?[i.minRows,i.maxRows]:[],[i]),S=!!i,[v,C]=Zo.useState(jx),[R,w]=Zo.useState(),I=()=>{C(Vx)};it(()=>{S&&I()},[r,x,b,S]),it(()=>{if(v===Vx)C(Wx);else if(v===Wx){let A=Hx(y.current,!1,x,b);C(jx),w(A)}},[v]);let P=Zo.useRef(void 0),N=()=>{P.current!==void 0&&He.cancel(P.current)},E=A=>{v===jx&&(s?.(A),i&&(N(),P.current=He(()=>{I()})))};Zo.useEffect(()=>N,[]);let D={...c,...S?R:null};return(v===Vx||v===Wx)&&(D.overflowY="hidden",D.overflowX="hidden"),Zo.createElement(sn,{onResize:E,disabled:!(i||s)},Zo.createElement("textarea",Ux({},m,{ref:y,style:D,className:$(o,a,{[`${o}-disabled`]:l}),disabled:l,value:p,onChange:h})))}),Kx=K6;function Gx(){return Gx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Gx.apply(this,arguments)}var G6=Qo.default.forwardRef(({defaultValue:e,value:t,onFocus:o,onBlur:n,onChange:r,allowClear:i,maxLength:s,onCompositionStart:a,onCompositionEnd:c,suffix:l,prefixCls:d="rc-textarea",showCount:u,count:m,className:f,style:g,disabled:p,hidden:h,classNames:y,styles:x,onResize:b,onClear:S,onPressEnter:v,readOnly:C,autoSize:R,onKeyDown:w,...I},P)=>{let[N,E]=Qo.default.useState(!1),O=Qo.default.useRef(!1),[D,A]=Qo.default.useState(null),F=(0,Qo.useRef)(null),_=(0,Qo.useRef)(null),T=()=>_.current?.textArea||null,{setValue:L,formatValue:z}=Td(e,t),G=Id(m,u),{isOutOfRange:V,dataCount:j}=Nd({countConfig:G,value:z,maxLength:s}),Y=Pd({countConfig:G,getTarget:()=>_.current?.textArea||null}),B=()=>{T()?.focus()};(0,Qo.useImperativeHandle)(P,()=>({resizableTextArea:_.current,focus:B,blur:()=>{T()?.blur()},nativeElement:F.current?.nativeElement||T()})),(0,Qo.useEffect)(()=>{E(re=>!p&&re)},[p]);let U=(re,ie)=>{let Se=Y(ie,O.current);L(Se),Wl(re.currentTarget,re,r,Se)},K=re=>{O.current=!0,a?.(re)},Z=re=>{O.current=!1,U(re,re.currentTarget.value),c?.(re)},X=re=>{U(re,re.target.value)},k=re=>{re.key==="Enter"&&v&&!re.nativeEvent.isComposing&&v(re),w?.(re)},W=re=>{E(!0),o?.(re)},H=re=>{E(!1),n?.(re)},ee=re=>{L(""),B();let ie=T();ie&&Wl(ie,re,r)},J=l;G.show&&(J=Qo.default.createElement(Qo.default.Fragment,null,J,Qo.default.createElement("span",{className:$(`${d}-data-count`,y?.count),style:x?.count},j)));let te=re=>{b?.(re),T()?.style.height&&A(!0)},le=!R&&!u&&!i;return Qo.default.createElement($d,{ref:F,value:z,allowClear:i,handleReset:ee,suffix:J,prefixCls:d,classNames:{...y,affixWrapper:$(y?.affixWrapper,{[`${d}-show-count`]:u,[`${d}-textarea-allow-clear`]:i})},disabled:p,focused:N,className:$(f,V&&`${d}-out-of-range`),style:{...g,...D&&!le?{height:"auto"}:{}},dataAttrs:typeof j=="string"?{affixWrapper:{"data-count":j}}:void 0,styles:x,hidden:h,readOnly:C,onClear:S},Qo.default.createElement(Kx,Gx({},I,{autoSize:R,maxLength:s,onKeyDown:k,onChange:X,onFocus:W,onBlur:H,onCompositionStart:K,onCompositionEnd:Z,className:$(y?.textarea),style:{resize:g?.resize,...x?.textarea},disabled:p,prefixCls:d,onResize:te,ref:_,readOnly:C})))}),qx=G6;var eP=JN;var Xx=M(require("react"));var q6=(e,t,o,n)=>{let r=Xx.useContext(Oe),{variant:i,[e]:s}=r,a=Xx.useContext(dI),c=n?r[n]:void 0,l=s?.variant??c?.variant,d=typeof t<"u"||o===!1||typeof a<"u"||typeof l<"u"||typeof i<"u",u;typeof t<"u"?u=t:o===!1?u="borderless":u=a??l??i??"outlined";let m=zy.includes(u);return[u,m,d]},rr=q6;var Nf=require("react");function Md(e,t){let o=(0,Nf.useRef)([]),n=()=>{o.current.push(setTimeout(()=>{e.current?.input&&e.current?.input.getAttribute("type")==="password"&&e.current?.input.hasAttribute("value")&&e.current?.input.removeAttribute("value")}))};return(0,Nf.useEffect)(()=>(t&&n(),()=>o.current.forEach(r=>{r&&clearTimeout(r)})),[t]),n}function tP(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var X6=(0,Fn.forwardRef)((e,t)=>{let{prefixCls:o,bordered:n=!0,status:r,size:i,disabled:s,onBlur:a,onFocus:c,suffix:l,allowClear:d,addonAfter:u,addonBefore:m,className:f,style:g,styles:p,rootClassName:h,onChange:y,classNames:x,variant:b,...S}=e,{getPrefixCls:v,direction:C,allowClear:R,autoComplete:w,className:I,style:P,classNames:N,styles:E}=Ye("input"),O=v("input",o),D=(0,Fn.useRef)(null),A=oo(O),[F,_]=Ef(O,h);$f(O,A);let{compactSize:T,compactItemClassnames:L}=kn(O,C),z=Xt(ae=>i??T??ae),G=Fn.default.useContext(Fo),V=s??G,j={...e,size:z,disabled:V},Y=De(P),B=De(g),[U,K]=et([N,x],[E,Y,p,B],{props:j}),{status:Z,hasFeedback:X,feedbackIcon:k}=(0,Fn.useContext)(cn),W=$s(Z,r),H=tP(e)||!!X,ee=(0,Fn.useRef)(H),J=Md(D,!0),te=ae=>{J(),a?.(ae)},le=ae=>{J(),c?.(ae)},re=ae=>{J(),y?.(ae)},ie=(X||l)&&Fn.default.createElement(Fn.default.Fragment,null,l,X&&k),Se=lp({allowClear:d,contextAllowClear:R,componentName:"Input"}),[de,Ee]=rr("input",b,n);return Fn.default.createElement(eP,{ref:Mt(t,D),prefixCls:O,autoComplete:w,...S,disabled:V,onBlur:te,onFocus:le,style:K.root,styles:K,suffix:ie,allowClear:Se,className:$(f,h,_,A,L,I,U.root),onChange:re,addonBefore:m&&Fn.default.createElement(Vr,{form:!0,space:!0},m),addonAfter:u&&Fn.default.createElement(Vr,{form:!0,space:!0},u),classNames:{...U,input:$({[`${O}-sm`]:z==="small",[`${O}-lg`]:z==="large",[`${O}-rtl`]:C==="rtl"},U.input,F),variant:$({[`${O}-${de}`]:Ee},Li(O,W)),affixWrapper:$({[`${O}-affix-wrapper-sm`]:z==="small",[`${O}-affix-wrapper-lg`]:z==="large",[`${O}-affix-wrapper-rtl`]:C==="rtl"},F),wrapper:$({[`${O}-group-rtl`]:C==="rtl"},F),groupWrapper:$({[`${O}-group-wrapper-sm`]:z==="small",[`${O}-group-wrapper-lg`]:z==="large",[`${O}-group-wrapper-rtl`]:C==="rtl",[`${O}-group-wrapper-${de}`]:Ee},Li(`${O}-group-wrapper`,W,X),F)}})}),Ts=X6;var ro=M(require("react"));var Y6=e=>{let{componentCls:t,paddingXS:o}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:o,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText,"&::selection":{color:"transparent"}},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},oP=Ze(["Input","OTP"],e=>{let t=Fe(e,Di(e));return Y6(t)},_i);var Sr=M(require("react"));var Z6="\u2022",Q6=Sr.forwardRef((e,t)=>{let{className:o,value:n,onChange:r,onActiveChange:i,index:s,mask:a,onFocus:c,type:l,...d}=e,{getPrefixCls:u}=Sr.useContext(Oe),m=u("otp"),f=typeof a=="string"?a:Z6,g=Sr.useRef(null);Sr.useImperativeHandle(t,()=>g.current);let p=b=>{r(s,b.target.value)},h=()=>{He(()=>{let b=g.current?.input;document.activeElement===b&&b&&b.select()})},y=b=>{c?.(b),h()},x=b=>{let{key:S,ctrlKey:v,metaKey:C}=b;S==="ArrowLeft"?i(s-1):S==="ArrowRight"?i(s+1):S==="z"&&(v||C)?b.preventDefault():S==="Backspace"&&!n&&i(s-1),h()};return Sr.createElement("span",{className:`${m}-input-wrapper`,role:"presentation"},a&&n!==""&&n!==void 0&&Sr.createElement("span",{className:`${m}-mask-icon`,"aria-hidden":"true"},f),Sr.createElement(Ts,{"aria-label":`OTP Input ${s+1}`,...d,type:l??(a?"password":"text"),ref:g,value:n,onInput:p,onFocus:y,onKeyDown:x,onMouseDown:h,onMouseUp:h,className:$(o,{[`${m}-mask-input`]:a})}))}),nP=Q6;function Pf(e){return(e||"").split("")}var J6=e=>{let{index:t,prefixCls:o,separator:n,className:r,style:i}=e,s=ct(n)?n(t):n;return s?ro.createElement("span",{className:$(`${o}-separator`,r),style:i},s):null},eF=ro.forwardRef((e,t)=>{let{prefixCls:o,length:n=6,size:r,defaultValue:i,value:s,onChange:a,formatter:c,separator:l,variant:d,disabled:u,status:m,autoFocus:f,mask:g,type:p,autoComplete:h,onInput:y,onFocus:x,inputMode:b,classNames:S,styles:v,className:C,style:R,...w}=e,{classNames:I,styles:P,getPrefixCls:N,direction:E,style:O,className:D}=Ye("otp"),A=N("otp",o),[F]=rr("otp",d,void 0,"input"),_={...e,length:n,variant:F},T=De(O),L=De(R),[z,G]=et([I,S],[P,T,v,L],{props:_}),V=To(w,{aria:!0,data:!0,attr:!0}),[j,Y]=oP(A),B=Xt(de=>r??de),U=ro.useContext(cn),K=$s(U.status,m),Z=ro.useMemo(()=>({...U,status:K,hasFeedback:!1,feedbackIcon:null}),[U,K]),X=ro.useRef(null),k=ro.useRef({});ro.useImperativeHandle(t,()=>({focus:()=>{k.current[0]?.focus()},blur:()=>{for(let de=0;de<n;de+=1)k.current[de]?.blur()},nativeElement:X.current}));let W=de=>c?c(de):de,[H,ee]=ro.useState(()=>Pf(W(i||"")));ro.useEffect(()=>{s!==void 0&&ee(Pf(s))},[s]);let J=Ie(de=>{ee(de),y&&y(de),a&&de.length===n&&de.every(Ee=>Ee)&&de.some((Ee,ae)=>H[ae]!==Ee)&&a(de.join(""))}),te=Ie((de,Ee)=>{let ae=Zt(H);for(let he=0;he<de;he+=1)ae[he]||(ae[he]="");Ee.length<=1?ae[de]=Ee:ae=ae.slice(0,de).concat(Pf(Ee)),ae=ae.slice(0,n);for(let he=ae.length-1;he>=0&&!ae[he];he-=1)ae.pop();let Ne=W(ae.map(he=>he||" ").join(""));return ae=Pf(Ne).map((he,ne)=>he===" "&&!ae[ne]?ae[ne]:he),ae}),le=(de,Ee)=>{let ae=te(de,Ee),Ne=Math.min(de+Ee.length,n-1);Ne!==de&&ae[de]!==void 0&&k.current[Ne]?.focus(),J(ae)},re=de=>{k.current[de]?.focus()},ie=(de,Ee)=>{for(let ae=0;ae<Ee;ae+=1)if(!k.current[ae]?.input?.value){k.current[ae]?.focus();break}x?.(de)},Se={variant:F,disabled:u,status:K,mask:g,type:p,inputMode:b,autoComplete:h};return ro.createElement("div",{...V,ref:X,className:$(C,A,{[`${A}-sm`]:B==="small",[`${A}-lg`]:B==="large",[`${A}-rtl`]:E==="rtl"},Y,j,D,z.root),style:G.root,role:"group"},ro.createElement(cn.Provider,{value:Z},Array.from({length:n}).map((de,Ee)=>{let ae=`otp-${Ee}`,Ne=H[Ee]||"";return ro.createElement(ro.Fragment,{key:ae},ro.createElement(nP,{ref:he=>{k.current[Ee]=he},index:Ee,size:B,htmlSize:1,className:$(z.input,`${A}-input`),style:G.input,onChange:le,value:Ne,onActiveChange:re,autoFocus:Ee===0&&f,onFocus:he=>ie(he,Ee),...Se}),Ee<n-1&&ro.createElement(J6,{separator:l,index:Ee,prefixCls:A,className:$(z.separator),style:G.separator}))})))}),rP=eF;var zn=M(require("react")),Of=require("react");var Tf=M(require("react"));var tF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},iP=tF;function Yx(){return Yx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Yx.apply(this,arguments)}var oF=(e,t)=>Tf.createElement(Ot,Yx({},e,{ref:t,icon:iP})),nF=Tf.forwardRef(oF),sP=nF;var Mf=M(require("react"));var rF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},aP=rF;function Zx(){return Zx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Zx.apply(this,arguments)}var iF=(e,t)=>Mf.createElement(Ot,Zx({},e,{ref:t,icon:aP})),sF=Mf.forwardRef(iF),lP=sF;var aF=e=>e?zn.createElement(lP,null):zn.createElement(sP,null),lF={click:"onClick",hover:"onMouseOver"},cF=zn.forwardRef((e,t)=>{let{disabled:o,action:n="click",visibilityToggle:r=!0,iconRender:i,prefixCls:s,inputPrefixCls:a,suffix:c,className:l,style:d,classNames:u,styles:m,variant:f,...g}=e,{getPrefixCls:p,className:h,style:y,classNames:x,styles:b,iconRender:S}=Ye("inputPassword"),[v]=rr("inputPassword",f,e.bordered,"input"),[C]=Go("global"),R=zn.useContext(Fo),w=o??R,I={...e,disabled:w,variant:v},P=De(y),N=De(d),[E,O]=et([x,u],[b,P,m,N],{props:I}),D=at(r)&&r.visible!==void 0,[A,F]=(0,Of.useState)(()=>D?r.visible:!1),_=(0,Of.useRef)(null);zn.useEffect(()=>{D&&F(r.visible)},[D,r]);let T=Md(_),L=()=>{if(w)return;A&&T();let U=!A;D||F(U),at(r)&&r.onVisibleChange?.(U)},z=U=>{let K=lF[n]||"",X=(i||S||aF)(A),k=at(r)?r.tabIndex:void 0;return zn.createElement("span",{key:"passwordIcon",role:"button",tabIndex:w?-1:k??0,className:`${U}-icon`,"aria-disabled":w,"aria-pressed":A,"aria-label":A?C.hide:C.show,onMouseDown:W=>{W.preventDefault()},onMouseUp:W=>{W.preventDefault()},onKeyDown:W=>{(W.key==="Enter"||W.key===" ")&&(W.preventDefault(),W.repeat||L())},[K]:L},X)},G=p("input",a),V=p("input-password",s),j=r&&z(V),Y=$(V,h,l,{[`${V}-${e.size}`]:!!e.size}),B={...g,type:A?"text":"password",prefixCls:G,suffix:zn.createElement(zn.Fragment,null,j,c),disabled:w,className:Y,classNames:E,styles:O,variant:v};return zn.createElement(Ts,{ref:Mt(t,_),...B})}),cP=cF;var Cr=M(require("react"));var Af=M(require("react"));var dF={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"},dP=dF;function Qx(){return Qx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Qx.apply(this,arguments)}var uF=(e,t)=>Af.createElement(Ot,Qx({},e,{ref:t,icon:dP})),mF=Af.forwardRef(uF),kf=mF;var pF=e=>{let{componentCls:t,antCls:o,calc:n,max:r}=e,i=`${t}-btn`,[s,a]=qt(o,"input-search"),c=e.inputFontSizeSM??e.fontSize,l=r(e.controlHeightSM,n(c).mul(e.lineHeight).add(n(e.paddingBlockSM).mul(2)).add(n(e.lineWidth).mul(2)).equal());return{[t]:{[s("btn-height")]:q(e.controlHeight),width:"100%",[i]:{height:a("btn-height"),"&:focus-visible":{zIndex:5},[`&${o}-btn-icon-only`]:{width:a("btn-height")},"&-filled":{background:e.colorFillTertiary,"&:not(:disabled)":{"&:hover":{background:e.colorFillSecondary},"&:active":{background:e.colorFill}}}},[`&${t}-large`]:{[s("btn-height")]:q(e.controlHeightLG)},[`&${t}-small`]:{[s("btn-height")]:q(e.controlHeightSM)},[`&${t}-small ${i}`]:{minHeight:l,[`&${e.antCls}-btn-icon-only`]:{minWidth:l}}}}},uP=Ze(["Input","Search"],e=>{let t=Fe(e,Di(e));return pF(t)},_i);var fF=Cr.forwardRef((e,t)=>{let{prefixCls:o,inputPrefixCls:n,className:r,size:i,style:s,enterButton:a=!1,searchIcon:c,addonAfter:l,loading:d,disabled:u,onSearch:m,onChange:f,onCompositionStart:g,onCompositionEnd:p,variant:h,onPressEnter:y,classNames:x,styles:b,hidden:S,...v}=e,{direction:C,getPrefixCls:R,className:w,style:I,classNames:P,styles:N,searchIcon:E}=Ye("inputSearch"),O=Cr.useContext(Fo),D=u??O,[A,,F]=rr("inputSearch",h,e.bordered),_=F?A:void 0,[T]=rr("inputSearch",h,e.bordered,"input"),L={...e,enterButton:a,variant:_},z=De(I),G=De(s),[V,j]=et([P,x],[N,z,b,G],{props:L},{button:{_default:"root"}}),Y=Cr.useRef(!1),B=R("input-search",o),U=R("input",n),[K,Z]=uP(B),{compactSize:X}=kn(B,C),k=Xt(ce=>i??X??ce),W=Cr.useRef(null),H=ce=>{ce?.target&&ce.type==="click"&&m&&m(ce.target.value,ce,{source:"clear"}),f?.(ce)},ee=ce=>{document.activeElement===W.current?.input&&ce.preventDefault()},J=ce=>{m&&m(W.current?.input?.value,ce,{source:"input"})},te=ce=>{Y.current||d||(y?.(ce),J(ce))},le=typeof a=="boolean"?Qt(c,E,Cr.createElement(kf,null)):null,re=`${B}-btn`,ie=$(re,{[`${re}-${_}`]:_}),Se,de=a||{},Ee=de.type&&de.type.__ANT_BUTTON===!0;if(Ee||de.type==="button"){let ce=de.props;Se=Ro(de,{disabled:D||ce.disabled||!Ee&&d,onMouseDown:we=>{ce.onMouseDown?.(we),ee(we)},onClick:we=>{de?.props?.onClick?.(we),J(we)},key:"enterButton",...Ee?{className:$(ie,ce.className),loading:d||ce.loading,size:k}:{}})}else Se=Cr.createElement(ni,{classNames:V.button,styles:j.button,className:ie,color:a?"primary":"default",size:k,disabled:u,key:"enterButton",onMouseDown:ee,onClick:J,loading:d,icon:le,variant:_==="borderless"||_==="filled"||_==="underlined"?"text":a?"solid":void 0},a);l&&(Se=[Se,Ro(l,{key:"addonAfter"})]);let ae=$(B,Z,{[`${B}-rtl`]:C==="rtl",[`${B}-${k}`]:!!k,[`${B}-with-button`]:!!a},r,w,K,V.root),Ne=ce=>{Y.current=!0,g?.(ce)},he=ce=>{Y.current=!1,p?.(ce)},ne=To(v,{data:!0}),fe=Ke({...v,classNames:Ke(V,["button","root"]),styles:Ke(j,["button","root"]),prefixCls:U,type:"search",size:k,variant:T,onPressEnter:te,onCompositionStart:Ne,onCompositionEnd:he,onChange:H,disabled:u},Object.keys(ne));return Cr.createElement(pp,{className:ae,style:j.root,...ne,hidden:S},Cr.createElement(Ts,{ref:Mt(W,t),...fe}),Se)}),mP=fF;var ir=M(require("react")),fP=require("react");var gF=e=>{let{componentCls:t,paddingLG:o}=e,n=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical","@media (hover: none) and (pointer: coarse)":{resize:"none"},[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[n]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
212
|
+
`,G6=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Bx={},nr;function q6(e,t=!1){let o=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Bx[o])return Bx[o];let n=window.getComputedStyle(e),r=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),i=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),s=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),c={sizingStyle:G6.map(l=>`${l}:${n.getPropertyValue(l)}`).join(";"),paddingSize:i,borderSize:s,boxSizing:r};return t&&o&&(Bx[o]=c),c}function Hx(e,t=!1,o=null,n=null){nr||(nr=document.createElement("textarea"),nr.setAttribute("tab-index","-1"),nr.setAttribute("aria-hidden","true"),nr.setAttribute("name","hiddenTextarea"),document.body.appendChild(nr)),e.getAttribute("wrap")?nr.setAttribute("wrap",e.getAttribute("wrap")):nr.removeAttribute("wrap");let{paddingSize:r,borderSize:i,boxSizing:s,sizingStyle:a}=q6(e,t);nr.setAttribute("style",`${a};${K6}`),nr.value=e.value||e.placeholder||"";let c,l,d,u=nr.scrollHeight;if(s==="border-box"?u+=i:s==="content-box"&&(u-=r),o!==null||n!==null){nr.value=" ";let f=nr.scrollHeight-r;o!==null&&(c=f*o,s==="border-box"&&(c=c+r+i),u=Math.max(c,u)),n!==null&&(l=f*n,s==="border-box"&&(l=l+r+i),d=u>l?void 0:"hidden",u=Math.min(l,u))}let m={height:u,overflowY:d,resize:"none"};return c&&(m.minHeight=c),l&&(m.maxHeight=l),m}function Ux(){return Ux=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Ux.apply(this,arguments)}var Vx=0,Wx=1,jx=2,X6=Zo.forwardRef((e,t)=>{let{prefixCls:o,defaultValue:n,value:r,autoSize:i,onResize:s,className:a,style:c,disabled:l,onChange:d,onInternalAutoSize:u,...m}=e,[f,g]=st(n,r),p=f??"",h=k=>{g(k.target.value),d?.(k)},y=Zo.useRef(null);Zo.useImperativeHandle(t,()=>({textArea:y.current}));let[x,b]=Zo.useMemo(()=>i&&typeof i=="object"?[i.minRows,i.maxRows]:[],[i]),S=!!i,[v,C]=Zo.useState(jx),[R,w]=Zo.useState(),I=()=>{C(Vx)};it(()=>{S&&I()},[r,x,b,S]),it(()=>{if(v===Vx)C(Wx);else if(v===Wx){let k=Hx(y.current,!1,x,b);C(jx),w(k)}},[v]);let P=Zo.useRef(void 0),N=()=>{P.current!==void 0&&He.cancel(P.current)},E=k=>{v===jx&&(s?.(k),i&&(N(),P.current=He(()=>{I()})))};Zo.useEffect(()=>N,[]);let L={...c,...S?R:null};return(v===Vx||v===Wx)&&(L.overflowY="hidden",L.overflowX="hidden"),Zo.createElement(sn,{onResize:E,disabled:!(i||s)},Zo.createElement("textarea",Ux({},m,{ref:y,style:L,className:$(o,a,{[`${o}-disabled`]:l}),disabled:l,value:p,onChange:h})))}),Kx=X6;function Gx(){return Gx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Gx.apply(this,arguments)}var Y6=Qo.default.forwardRef(({defaultValue:e,value:t,onFocus:o,onBlur:n,onChange:r,allowClear:i,maxLength:s,onCompositionStart:a,onCompositionEnd:c,suffix:l,prefixCls:d="rc-textarea",showCount:u,count:m,className:f,style:g,disabled:p,hidden:h,classNames:y,styles:x,onResize:b,onClear:S,onPressEnter:v,readOnly:C,autoSize:R,onKeyDown:w,...I},P)=>{let[N,E]=Qo.default.useState(!1),O=Qo.default.useRef(!1),[L,k]=Qo.default.useState(null),z=(0,Qo.useRef)(null),_=(0,Qo.useRef)(null),T=()=>_.current?.textArea||null,{setValue:D,formatValue:F}=Td(e,t),G=Id(m,u),{isOutOfRange:H,dataCount:W}=Nd({countConfig:G,value:F,maxLength:s}),X=Pd({countConfig:G,getTarget:()=>_.current?.textArea||null}),B=()=>{T()?.focus()};(0,Qo.useImperativeHandle)(P,()=>({resizableTextArea:_.current,focus:B,blur:()=>{T()?.blur()},nativeElement:z.current?.nativeElement||T()})),(0,Qo.useEffect)(()=>{E(re=>!p&&re)},[p]);let j=(re,ie)=>{let Se=X(ie,O.current);D(Se),Wl(re.currentTarget,re,r,Se)},U=re=>{O.current=!0,a?.(re)},Z=re=>{O.current=!1,j(re,re.currentTarget.value),c?.(re)},Y=re=>{j(re,re.target.value)},K=re=>{re.key==="Enter"&&v&&!re.nativeEvent.isComposing&&v(re),w?.(re)},V=re=>{E(!0),o?.(re)},A=re=>{E(!1),n?.(re)},ee=re=>{D(""),B();let ie=T();ie&&Wl(ie,re,r)},Q=l;G.show&&(Q=Qo.default.createElement(Qo.default.Fragment,null,Q,Qo.default.createElement("span",{className:$(`${d}-data-count`,y?.count),style:x?.count},W)));let te=re=>{b?.(re),T()?.style.height&&k(!0)},le=!R&&!u&&!i;return Qo.default.createElement($d,{ref:z,value:F,allowClear:i,handleReset:ee,suffix:Q,prefixCls:d,classNames:{...y,affixWrapper:$(y?.affixWrapper,{[`${d}-show-count`]:u,[`${d}-textarea-allow-clear`]:i})},disabled:p,focused:N,className:$(f,H&&`${d}-out-of-range`),style:{...g,...L&&!le?{height:"auto"}:{}},dataAttrs:typeof W=="string"?{affixWrapper:{"data-count":W}}:void 0,styles:x,hidden:h,readOnly:C,onClear:S},Qo.default.createElement(Kx,Gx({},I,{autoSize:R,maxLength:s,onKeyDown:K,onChange:Y,onFocus:V,onBlur:A,onCompositionStart:U,onCompositionEnd:Z,className:$(y?.textarea),style:{resize:g?.resize,...x?.textarea},disabled:p,prefixCls:d,onResize:te,ref:_,readOnly:C})))}),qx=Y6;var tP=eP;var Xx=M(require("react"));var Z6=(e,t,o,n)=>{let r=Xx.useContext(Oe),{variant:i,[e]:s}=r,a=Xx.useContext(uI),c=n?r[n]:void 0,l=s?.variant??c?.variant,d=typeof t<"u"||o===!1||typeof a<"u"||typeof l<"u"||typeof i<"u",u;typeof t<"u"?u=t:o===!1?u="borderless":u=a??l??i??"outlined";let m=zy.includes(u);return[u,m,d]},rr=Z6;var Nf=require("react");function Md(e,t){let o=(0,Nf.useRef)([]),n=()=>{o.current.push(setTimeout(()=>{e.current?.input&&e.current?.input.getAttribute("type")==="password"&&e.current?.input.hasAttribute("value")&&e.current?.input.removeAttribute("value")}))};return(0,Nf.useEffect)(()=>(t&&n(),()=>o.current.forEach(r=>{r&&clearTimeout(r)})),[t]),n}function oP(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var Q6=(0,Fn.forwardRef)((e,t)=>{let{prefixCls:o,bordered:n=!0,status:r,size:i,disabled:s,onBlur:a,onFocus:c,suffix:l,allowClear:d,addonAfter:u,addonBefore:m,className:f,style:g,styles:p,rootClassName:h,onChange:y,classNames:x,variant:b,...S}=e,{getPrefixCls:v,direction:C,allowClear:R,autoComplete:w,className:I,style:P,classNames:N,styles:E}=Ye("input"),O=v("input",o),L=(0,Fn.useRef)(null),k=oo(O),[z,_]=Ef(O,h);$f(O,k);let{compactSize:T,compactItemClassnames:D}=kn(O,C),F=Xt(ae=>i??T??ae),G=Fn.default.useContext(zo),H=s??G,W={...e,size:F,disabled:H},X=De(P),B=De(g),[j,U]=et([N,x],[E,X,p,B],{props:W}),{status:Z,hasFeedback:Y,feedbackIcon:K}=(0,Fn.useContext)(cn),V=$s(Z,r),A=oP(e)||!!Y,ee=(0,Fn.useRef)(A),Q=Md(L,!0),te=ae=>{Q(),a?.(ae)},le=ae=>{Q(),c?.(ae)},re=ae=>{Q(),y?.(ae)},ie=(Y||l)&&Fn.default.createElement(Fn.default.Fragment,null,l,Y&&K),Se=lp({allowClear:d,contextAllowClear:R,componentName:"Input"}),[de,Ee]=rr("input",b,n);return Fn.default.createElement(tP,{ref:Mt(t,L),prefixCls:O,autoComplete:w,...S,disabled:H,onBlur:te,onFocus:le,style:U.root,styles:U,suffix:ie,allowClear:Se,className:$(f,h,_,k,D,I,j.root),onChange:re,addonBefore:m&&Fn.default.createElement(Vr,{form:!0,space:!0},m),addonAfter:u&&Fn.default.createElement(Vr,{form:!0,space:!0},u),classNames:{...j,input:$({[`${O}-sm`]:F==="small",[`${O}-lg`]:F==="large",[`${O}-rtl`]:C==="rtl"},j.input,z),variant:$({[`${O}-${de}`]:Ee},Li(O,V)),affixWrapper:$({[`${O}-affix-wrapper-sm`]:F==="small",[`${O}-affix-wrapper-lg`]:F==="large",[`${O}-affix-wrapper-rtl`]:C==="rtl"},z),wrapper:$({[`${O}-group-rtl`]:C==="rtl"},z),groupWrapper:$({[`${O}-group-wrapper-sm`]:F==="small",[`${O}-group-wrapper-lg`]:F==="large",[`${O}-group-wrapper-rtl`]:C==="rtl",[`${O}-group-wrapper-${de}`]:Ee},Li(`${O}-group-wrapper`,V,Y),z)}})}),Ts=Q6;var ro=M(require("react"));var J6=e=>{let{componentCls:t,paddingXS:o}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:o,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText,"&::selection":{color:"transparent"}},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},nP=Ze(["Input","OTP"],e=>{let t=Fe(e,Di(e));return J6(t)},_i);var Sr=M(require("react"));var eF="\u2022",tF=Sr.forwardRef((e,t)=>{let{className:o,value:n,onChange:r,onActiveChange:i,index:s,mask:a,onFocus:c,type:l,...d}=e,{getPrefixCls:u}=Sr.useContext(Oe),m=u("otp"),f=typeof a=="string"?a:eF,g=Sr.useRef(null);Sr.useImperativeHandle(t,()=>g.current);let p=b=>{r(s,b.target.value)},h=()=>{He(()=>{let b=g.current?.input;document.activeElement===b&&b&&b.select()})},y=b=>{c?.(b),h()},x=b=>{let{key:S,ctrlKey:v,metaKey:C}=b;S==="ArrowLeft"?i(s-1):S==="ArrowRight"?i(s+1):S==="z"&&(v||C)?b.preventDefault():S==="Backspace"&&!n&&i(s-1),h()};return Sr.createElement("span",{className:`${m}-input-wrapper`,role:"presentation"},a&&n!==""&&n!==void 0&&Sr.createElement("span",{className:`${m}-mask-icon`,"aria-hidden":"true"},f),Sr.createElement(Ts,{"aria-label":`OTP Input ${s+1}`,...d,type:l??(a?"password":"text"),ref:g,value:n,onInput:p,onFocus:y,onKeyDown:x,onMouseDown:h,onMouseUp:h,className:$(o,{[`${m}-mask-input`]:a})}))}),rP=tF;function Pf(e){return(e||"").split("")}var oF=e=>{let{index:t,prefixCls:o,separator:n,className:r,style:i}=e,s=dt(n)?n(t):n;return s?ro.createElement("span",{className:$(`${o}-separator`,r),style:i},s):null},nF=ro.forwardRef((e,t)=>{let{prefixCls:o,length:n=6,size:r,defaultValue:i,value:s,onChange:a,formatter:c,separator:l,variant:d,disabled:u,status:m,autoFocus:f,mask:g,type:p,autoComplete:h,onInput:y,onFocus:x,inputMode:b,classNames:S,styles:v,className:C,style:R,...w}=e,{classNames:I,styles:P,getPrefixCls:N,direction:E,style:O,className:L}=Ye("otp"),k=N("otp",o),[z]=rr("otp",d,void 0,"input"),_={...e,length:n,variant:z},T=De(O),D=De(R),[F,G]=et([I,S],[P,T,v,D],{props:_}),H=Mo(w,{aria:!0,data:!0,attr:!0}),[W,X]=nP(k),B=Xt(de=>r??de),j=ro.useContext(cn),U=$s(j.status,m),Z=ro.useMemo(()=>({...j,status:U,hasFeedback:!1,feedbackIcon:null}),[j,U]),Y=ro.useRef(null),K=ro.useRef({});ro.useImperativeHandle(t,()=>({focus:()=>{K.current[0]?.focus()},blur:()=>{for(let de=0;de<n;de+=1)K.current[de]?.blur()},nativeElement:Y.current}));let V=de=>c?c(de):de,[A,ee]=ro.useState(()=>Pf(V(i||"")));ro.useEffect(()=>{s!==void 0&&ee(Pf(s))},[s]);let Q=Ie(de=>{ee(de),y&&y(de),a&&de.length===n&&de.every(Ee=>Ee)&&de.some((Ee,ae)=>A[ae]!==Ee)&&a(de.join(""))}),te=Ie((de,Ee)=>{let ae=Zt(A);for(let he=0;he<de;he+=1)ae[he]||(ae[he]="");Ee.length<=1?ae[de]=Ee:ae=ae.slice(0,de).concat(Pf(Ee)),ae=ae.slice(0,n);for(let he=ae.length-1;he>=0&&!ae[he];he-=1)ae.pop();let Ne=V(ae.map(he=>he||" ").join(""));return ae=Pf(Ne).map((he,ne)=>he===" "&&!ae[ne]?ae[ne]:he),ae}),le=(de,Ee)=>{let ae=te(de,Ee),Ne=Math.min(de+Ee.length,n-1);Ne!==de&&ae[de]!==void 0&&K.current[Ne]?.focus(),Q(ae)},re=de=>{K.current[de]?.focus()},ie=(de,Ee)=>{for(let ae=0;ae<Ee;ae+=1)if(!K.current[ae]?.input?.value){K.current[ae]?.focus();break}x?.(de)},Se={variant:z,disabled:u,status:U,mask:g,type:p,inputMode:b,autoComplete:h};return ro.createElement("div",{...H,ref:Y,className:$(C,k,{[`${k}-sm`]:B==="small",[`${k}-lg`]:B==="large",[`${k}-rtl`]:E==="rtl"},X,W,L,F.root),style:G.root,role:"group"},ro.createElement(cn.Provider,{value:Z},Array.from({length:n}).map((de,Ee)=>{let ae=`otp-${Ee}`,Ne=A[Ee]||"";return ro.createElement(ro.Fragment,{key:ae},ro.createElement(rP,{ref:he=>{K.current[Ee]=he},index:Ee,size:B,htmlSize:1,className:$(F.input,`${k}-input`),style:G.input,onChange:le,value:Ne,onActiveChange:re,autoFocus:Ee===0&&f,onFocus:he=>ie(he,Ee),...Se}),Ee<n-1&&ro.createElement(oF,{separator:l,index:Ee,prefixCls:k,className:$(F.separator),style:G.separator}))})))}),iP=nF;var zn=M(require("react")),Of=require("react");var Tf=M(require("react"));var rF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},sP=rF;function Yx(){return Yx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Yx.apply(this,arguments)}var iF=(e,t)=>Tf.createElement(Ot,Yx({},e,{ref:t,icon:sP})),sF=Tf.forwardRef(iF),aP=sF;var Mf=M(require("react"));var aF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},lP=aF;function Zx(){return Zx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Zx.apply(this,arguments)}var lF=(e,t)=>Mf.createElement(Ot,Zx({},e,{ref:t,icon:lP})),cF=Mf.forwardRef(lF),cP=cF;var dF=e=>e?zn.createElement(cP,null):zn.createElement(aP,null),uF={click:"onClick",hover:"onMouseOver"},mF=zn.forwardRef((e,t)=>{let{disabled:o,action:n="click",visibilityToggle:r=!0,iconRender:i,prefixCls:s,inputPrefixCls:a,suffix:c,className:l,style:d,classNames:u,styles:m,variant:f,...g}=e,{getPrefixCls:p,className:h,style:y,classNames:x,styles:b,iconRender:S}=Ye("inputPassword"),[v]=rr("inputPassword",f,e.bordered,"input"),[C]=Go("global"),R=zn.useContext(zo),w=o??R,I={...e,disabled:w,variant:v},P=De(y),N=De(d),[E,O]=et([x,u],[b,P,m,N],{props:I}),L=at(r)&&r.visible!==void 0,[k,z]=(0,Of.useState)(()=>L?r.visible:!1),_=(0,Of.useRef)(null);zn.useEffect(()=>{L&&z(r.visible)},[L,r]);let T=Md(_),D=()=>{if(w)return;k&&T();let j=!k;L||z(j),at(r)&&r.onVisibleChange?.(j)},F=j=>{let U=uF[n]||"",Y=(i||S||dF)(k),K=at(r)?r.tabIndex:void 0;return zn.createElement("span",{key:"passwordIcon",role:"button",tabIndex:w?-1:K??0,className:`${j}-icon`,"aria-disabled":w,"aria-pressed":k,"aria-label":k?C.hide:C.show,onMouseDown:V=>{V.preventDefault()},onMouseUp:V=>{V.preventDefault()},onKeyDown:V=>{(V.key==="Enter"||V.key===" ")&&(V.preventDefault(),V.repeat||D())},[U]:D},Y)},G=p("input",a),H=p("input-password",s),W=r&&F(H),X=$(H,h,l,{[`${H}-${e.size}`]:!!e.size}),B={...g,type:k?"text":"password",prefixCls:G,suffix:zn.createElement(zn.Fragment,null,W,c),disabled:w,className:X,classNames:E,styles:O,variant:v};return zn.createElement(Ts,{ref:Mt(t,_),...B})}),dP=mF;var Cr=M(require("react"));var Af=M(require("react"));var pF={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"},uP=pF;function Qx(){return Qx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Qx.apply(this,arguments)}var fF=(e,t)=>Af.createElement(Ot,Qx({},e,{ref:t,icon:uP})),gF=Af.forwardRef(fF),kf=gF;var hF=e=>{let{componentCls:t,antCls:o,calc:n,max:r}=e,i=`${t}-btn`,[s,a]=qt(o,"input-search"),c=e.inputFontSizeSM??e.fontSize,l=r(e.controlHeightSM,n(c).mul(e.lineHeight).add(n(e.paddingBlockSM).mul(2)).add(n(e.lineWidth).mul(2)).equal());return{[t]:{[s("btn-height")]:q(e.controlHeight),width:"100%",[i]:{height:a("btn-height"),"&:focus-visible":{zIndex:5},[`&${o}-btn-icon-only`]:{width:a("btn-height")},"&-filled":{background:e.colorFillTertiary,"&:not(:disabled)":{"&:hover":{background:e.colorFillSecondary},"&:active":{background:e.colorFill}}}},[`&${t}-large`]:{[s("btn-height")]:q(e.controlHeightLG)},[`&${t}-small`]:{[s("btn-height")]:q(e.controlHeightSM)},[`&${t}-small ${i}`]:{minHeight:l,[`&${e.antCls}-btn-icon-only`]:{minWidth:l}}}}},mP=Ze(["Input","Search"],e=>{let t=Fe(e,Di(e));return hF(t)},_i);var yF=Cr.forwardRef((e,t)=>{let{prefixCls:o,inputPrefixCls:n,className:r,size:i,style:s,enterButton:a=!1,searchIcon:c,addonAfter:l,loading:d,disabled:u,onSearch:m,onChange:f,onCompositionStart:g,onCompositionEnd:p,variant:h,onPressEnter:y,classNames:x,styles:b,hidden:S,...v}=e,{direction:C,getPrefixCls:R,className:w,style:I,classNames:P,styles:N,searchIcon:E}=Ye("inputSearch"),O=Cr.useContext(zo),L=u??O,[k,,z]=rr("inputSearch",h,e.bordered),_=z?k:void 0,[T]=rr("inputSearch",h,e.bordered,"input"),D={...e,enterButton:a,variant:_},F=De(I),G=De(s),[H,W]=et([P,x],[N,F,b,G],{props:D},{button:{_default:"root"}}),X=Cr.useRef(!1),B=R("input-search",o),j=R("input",n),[U,Z]=mP(B),{compactSize:Y}=kn(B,C),K=Xt(ce=>i??Y??ce),V=Cr.useRef(null),A=ce=>{ce?.target&&ce.type==="click"&&m&&m(ce.target.value,ce,{source:"clear"}),f?.(ce)},ee=ce=>{document.activeElement===V.current?.input&&ce.preventDefault()},Q=ce=>{m&&m(V.current?.input?.value,ce,{source:"input"})},te=ce=>{X.current||d||(y?.(ce),Q(ce))},le=typeof a=="boolean"?Qt(c,E,Cr.createElement(kf,null)):null,re=`${B}-btn`,ie=$(re,{[`${re}-${_}`]:_}),Se,de=a||{},Ee=de.type&&de.type.__ANT_BUTTON===!0;if(Ee||de.type==="button"){let ce=de.props;Se=Ro(de,{disabled:L||ce.disabled||!Ee&&d,onMouseDown:we=>{ce.onMouseDown?.(we),ee(we)},onClick:we=>{de?.props?.onClick?.(we),Q(we)},key:"enterButton",...Ee?{className:$(ie,ce.className),loading:d||ce.loading,size:K}:{}})}else Se=Cr.createElement(ni,{classNames:H.button,styles:W.button,className:ie,color:a?"primary":"default",size:K,disabled:u,key:"enterButton",onMouseDown:ee,onClick:Q,loading:d,icon:le,variant:_==="borderless"||_==="filled"||_==="underlined"?"text":a?"solid":void 0},a);l&&(Se=[Se,Ro(l,{key:"addonAfter"})]);let ae=$(B,Z,{[`${B}-rtl`]:C==="rtl",[`${B}-${K}`]:!!K,[`${B}-with-button`]:!!a},r,w,U,H.root),Ne=ce=>{X.current=!0,g?.(ce)},he=ce=>{X.current=!1,p?.(ce)},ne=Mo(v,{data:!0}),fe=Ke({...v,classNames:Ke(H,["button","root"]),styles:Ke(W,["button","root"]),prefixCls:j,type:"search",size:K,variant:T,onPressEnter:te,onCompositionStart:Ne,onCompositionEnd:he,onChange:A,disabled:u},Object.keys(ne));return Cr.createElement(pp,{className:ae,style:W.root,...ne,hidden:S},Cr.createElement(Ts,{ref:Mt(V,t),...fe}),Se)}),pP=yF;var ir=M(require("react")),gP=require("react");var bF=e=>{let{componentCls:t,paddingLG:o}=e,n=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical","@media (hover: none) and (pointer: coarse)":{resize:"none"},[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[n]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
213
213
|
&-allow-clear > ${t},
|
|
214
214
|
&-affix-wrapper${n}-has-feedback ${t}
|
|
215
|
-
`]:{paddingInlineEnd:o},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},pP=Ze(["Input","TextArea"],e=>{let t=Fe(e,Di(e));return gF(t)},_i,{resetFont:!1});var hF=(0,fP.forwardRef)((e,t)=>{let{prefixCls:o,bordered:n=!0,size:r,disabled:i,status:s,allowClear:a,classNames:c,rootClassName:l,className:d,style:u,styles:m,variant:f,showCount:g,onMouseDown:p,onResize:h,...y}=e,{getPrefixCls:x,direction:b,allowClear:S,autoComplete:v,className:C,style:R,classNames:w,styles:I}=Ye("textArea"),P=ir.useContext(Fo),N=i??P,{status:E,hasFeedback:O,feedbackIcon:D}=ir.useContext(cn),A=$s(E,s),F=De(R),_=De(u),[T,L]=et([w,c],[I,F,m,_],{props:e}),z=ir.useRef(null);ir.useImperativeHandle(t,()=>({resizableTextArea:z.current?.resizableTextArea,focus:re=>{Ga(z.current?.resizableTextArea?.textArea,re)},blur:()=>z.current?.blur(),nativeElement:z.current?.nativeElement||null}));let G=x("input",o),V=oo(G),[j,Y]=Ef(G,l);pP(G,V);let{compactSize:B,compactItemClassnames:U}=kn(G,b),K=Xt(re=>r??B??re),[Z,X]=rr("textArea",f,n),k=lp({allowClear:a,contextAllowClear:S,componentName:"TextArea"}),[W,H]=ir.useState(!1),[ee,J]=ir.useState(!1),te=re=>{H(!0),p?.(re);let ie=()=>{H(!1),document.removeEventListener("mouseup",ie)};document.addEventListener("mouseup",ie)},le=re=>{if(h?.(re),W&&ct(getComputedStyle)){let ie=z.current?.nativeElement?.querySelector("textarea");ie&&getComputedStyle(ie).resize==="both"&&J(!0)}};return ir.createElement(qx,{autoComplete:v,...y,style:L.root,styles:L,disabled:N,allowClear:k,className:$(Y,V,d,l,U,C,T.root,{[`${G}-textarea-affix-wrapper-resize-dirty`]:ee}),classNames:{...T,textarea:$({[`${G}-sm`]:K==="small",[`${G}-lg`]:K==="large"},j,T.textarea,W&&`${G}-mouse-active`),variant:$({[`${G}-${Z}`]:X},Li(G,A)),affixWrapper:$(`${G}-textarea-affix-wrapper`,{[`${G}-affix-wrapper-rtl`]:b==="rtl",[`${G}-affix-wrapper-sm`]:K==="small",[`${G}-affix-wrapper-lg`]:K==="large",[`${G}-textarea-show-count`]:g||e.count?.show},j)},prefixCls:G,suffix:O&&ir.createElement("span",{className:`${G}-textarea-suffix`},D),showCount:g,ref:z,onResize:le,onMouseDown:te})}),Lf=hF;var jl=Ts;jl.Group=GN;jl.Search=mP;jl.TextArea=Lf;jl.Password=cP;jl.OTP=rP;var gP=jl;var Gl=M(require("react"));var Vt=M(require("react"));var Df=M(require("react"));var yF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},hP=yF;function Jx(){return Jx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Jx.apply(this,arguments)}var bF=(e,t)=>Df.createElement(Ot,Jx({},e,{ref:t,icon:hP})),xF=Df.forwardRef(bF),_f=xF;var Ff=M(require("react"));var vF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},yP=vF;function ev(){return ev=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},ev.apply(this,arguments)}var SF=(e,t)=>Ff.createElement(Ot,ev({},e,{ref:t,icon:yP})),CF=Ff.forwardRef(SF),bP=CF;var zf=M(require("react"));var wF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},xP=wF;function tv(){return tv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},tv.apply(this,arguments)}var RF=(e,t)=>zf.createElement(Ot,tv({},e,{ref:t,icon:xP})),EF=zf.forwardRef(RF),vP=EF;var Vf=M(require("react"));var $a=M(require("react"));var $F=e=>{let{type:t,children:o,prefixCls:n,buttonProps:r,close:i,autoFocus:s,emitEvent:a,isSilent:c,quitOnNullishReturnValue:l,actionFn:d}=e,u=$a.useRef(!1),m=$a.useRef(null),[f,g]=Ua(!1),p=(...x)=>{i?.(...x)};$a.useEffect(()=>{let x=null;return s&&(x=setTimeout(()=>{m.current?.focus({preventScroll:!0})})),()=>{x&&clearTimeout(x)}},[s]);let h=x=>{Uu(x)&&(g(!0),x.then((...b)=>{g(!1,!0),p.apply(void 0,b),u.current=!1},b=>{if(g(!1,!0),u.current=!1,!c?.())return Promise.reject(b)}))},y=x=>{if(u.current)return;if(u.current=!0,!d){p();return}let b;if(a){if(b=d(x),l&&!Uu(b)){u.current=!1,p(x);return}}else if(d.length)b=d(i),u.current=!1;else if(b=d(),!Uu(b)){p();return}h(b)};return $a.createElement(ni,{...gp(t),onClick:y,loading:f,prefixCls:n,...r,ref:m},o)},Bf=$F;var SP=M(require("react")),zi=SP.default.createContext({}),{Provider:Hf}=zi;var IF=()=>{let{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:o,isSilent:n,mergedOkCancel:r,rootPrefixCls:i,close:s,onCancel:a,onConfirm:c,onClose:l}=(0,Vf.useContext)(zi);return r?Vf.default.createElement(Bf,{isSilent:n,actionFn:a,close:(...d)=>{s?.(...d),c?.(!1),l?.()},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${i}-btn`},o):null},ov=IF;var Wf=M(require("react"));var NF=()=>{let{autoFocusButton:e,close:t,isSilent:o,okButtonProps:n,rootPrefixCls:r,okTextLocale:i,okType:s,onConfirm:a,onOk:c,onClose:l}=(0,Wf.useContext)(zi);return Wf.default.createElement(Bf,{isSilent:o,type:s||"primary",actionFn:c,close:(...d)=>{t?.(...d),a?.(!0),l?.()},autoFocus:e==="ok",buttonProps:n,prefixCls:`${r}-btn`},i)},nv=NF;var Bn=M(require("react"));var ci=M(require("react"));var CP=M(require("react")),jf=CP.createContext({});var Ms=M(require("react")),Ia=require("react");function rv(e,t,o){let n=t;return!n&&o&&(n=`${e}-${o}`),n}function wP(e,t){let o=e[`page${t?"Y":"X"}Offset`],n=`scroll${t?"Top":"Left"}`;if(typeof o!="number"){let r=e.document;o=r.documentElement[n],typeof o!="number"&&(o=r.body[n])}return o}function RP(e){let t=e.getBoundingClientRect(),o={left:t.left,top:t.top},n=e.ownerDocument,r=n.defaultView||n.parentWindow;return o.left+=wP(r),o.top+=wP(r,!0),o}var Bi=M(require("react")),sv=require("react");var Jo=M(require("react"));var EP=M(require("react")),$P=EP.memo(({children:e})=>e,(e,{shouldUpdate:t})=>!t);function Uf(){return Uf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Uf.apply(this,arguments)}var PF=Jo.default.forwardRef((e,t)=>{let{prefixCls:o,className:n,style:r,title:i,ariaId:s,footer:a,closable:c,closeIcon:l,onClose:d,children:u,bodyStyle:m,bodyProps:f,modalRender:g,onMouseDown:p,onMouseUp:h,holderRef:y,visible:x,forceRender:b,width:S,height:v,classNames:C,styles:R,isFixedPos:w,focusTrap:I}=e,{panel:P}=Jo.default.useContext(jf),N=(0,Jo.useRef)(null),E=bo(y,P,N),[O]=Fh(x&&w&&I!==!1,()=>N.current);Jo.default.useImperativeHandle(t,()=>({focus:()=>{N.current?.focus({preventScroll:!0})}}));let D={};S!==void 0&&(D.width=S),v!==void 0&&(D.height=v);let A=a?Jo.default.createElement("div",{className:$(`${o}-footer`,C?.footer),style:{...R?.footer}},a):null,F=i?Jo.default.createElement("div",{className:$(`${o}-header`,C?.header),style:{...R?.header}},Jo.default.createElement("div",{className:$(`${o}-title`,C?.title),id:s,style:{...R?.title}},i)):null,_=(0,Jo.useMemo)(()=>typeof c=="object"&&c!==null?c:c?{closeIcon:l??Jo.default.createElement("span",{className:`${o}-close-x`})}:{},[c,l,o]),T=To(_,!0),L=typeof c=="object"&&c.disabled,z=c?Jo.default.createElement("button",Uf({type:"button",onClick:d,"aria-label":"Close"},T,{className:$(`${o}-close`,C?.close),disabled:L,style:R?.close}),_.closeIcon):null,G=Jo.default.createElement("div",{className:$(`${o}-container`,C?.container),style:R?.container},z,F,Jo.default.createElement("div",Uf({className:$(`${o}-body`,C?.body),style:{...m,...R?.body}},f),u),A);return Jo.default.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?s:null,"aria-modal":"true",ref:E,style:{...r,...D},className:$(o,n),onMouseDown:p,onMouseUp:h,tabIndex:-1,onFocus:V=>{O(V.target)}},Jo.default.createElement($P,{shouldUpdate:x||b},g?g(G):G))}),Od=PF;function iv(){return iv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},iv.apply(this,arguments)}var TF=Bi.forwardRef((e,t)=>{let{prefixCls:o,title:n,style:r,className:i,visible:s,forceRender:a,destroyOnHidden:c,motionName:l,ariaId:d,onVisibleChanged:u,mousePosition:m}=e,f=(0,sv.useRef)(null),g=(0,sv.useRef)(null);Bi.useImperativeHandle(t,()=>({...g.current,inMotion:f.current.inMotion,enableMotion:f.current.enableMotion}));let[p,h]=Bi.useState(),y={};p&&(y.transformOrigin=p);function x(){if(!f.current?.nativeElement)return;let b=RP(f.current.nativeElement);h(m&&(m.x||m.y)?`${m.x-b.left}px ${m.y-b.top}px`:"")}return Bi.createElement(po,{visible:s,onVisibleChanged:u,onAppearPrepare:x,onEnterPrepare:x,forceRender:a,motionName:l,removeOnLeave:c,ref:f},({className:b,style:S},v)=>Bi.createElement(Od,iv({},e,{ref:g,title:n,ariaId:d,prefixCls:o,holderRef:v,style:{...S,...r,...y},className:$(i,b)})))}),IP=TF;var lv=M(require("react"));function av(){return av=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},av.apply(this,arguments)}var MF=e=>{let{prefixCls:t,style:o,visible:n,maskProps:r,motionName:i,className:s}=e;return lv.createElement(po,{key:"mask",visible:n,motionName:i,leavedClassName:`${t}-mask-hidden`},({className:a,style:c},l)=>lv.createElement("div",av({ref:l,style:{...c,...o},className:$(`${t}-mask`,a,s)},r)))},NP=MF;function Ad(){return Ad=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Ad.apply(this,arguments)}var OF=e=>{let{prefixCls:t="rc-dialog",zIndex:o,visible:n=!1,focusTriggerAfterClose:r=!0,wrapStyle:i,wrapClassName:s,wrapProps:a,onClose:c,afterOpenChange:l,afterClose:d,transitionName:u,animation:m,closable:f=!0,mask:g=!0,maskTransitionName:p,maskAnimation:h,maskClosable:y=!0,maskStyle:x,maskProps:b,rootClassName:S,rootStyle:v,classNames:C,styles:R}=e,w=(0,Ia.useRef)(null),I=(0,Ia.useRef)(null),P=(0,Ia.useRef)(null),[N,E]=Ms.useState(n),[O,D]=Ms.useState(!1),A=Co();function F(){js(I.current,document.activeElement)||(w.current=document.activeElement)}function _(){js(I.current,document.activeElement)||P.current?.focus()}function T(){if(E(!1),g&&w.current&&r){try{w.current.focus({preventScroll:!0})}catch{}w.current=null}N&&d?.()}function L(B){B?_():T(),l?.(B)}function z(B){c?.(B)}let G=(0,Ia.useRef)(!1),V=null;y&&(V=B=>{I.current===B.target&&G.current&&z(B)});function j(B){G.current=B.target===I.current}(0,Ia.useEffect)(()=>{if(n){if(G.current=!1,E(!0),F(),I.current){let B=getComputedStyle(I.current);D(B.position==="fixed")}}else N&&P.current.enableMotion()&&!P.current.inMotion()&&T()},[n]);let Y={zIndex:o,...i,...R?.wrapper,display:N?null:"none"};return Ms.createElement("div",Ad({className:$(`${t}-root`,S),style:v},To(e,{data:!0})),Ms.createElement(NP,{prefixCls:t,visible:g&&n,motionName:rv(t,p,h),style:{zIndex:o,...x,...R?.mask},maskProps:b,className:C?.mask}),Ms.createElement("div",Ad({className:$(`${t}-wrap`,s,C?.wrapper),ref:I,onClick:V,onMouseDown:j,style:Y},a),Ms.createElement(IP,Ad({},e,{isFixedPos:O,ref:P,closable:f,ariaId:A,prefixCls:t,visible:n&&N,onClose:z,onVisibleChanged:L,motionName:rv(t,u,m)}))))},PP=OF;function cv(){return cv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},cv.apply(this,arguments)}var AF=e=>{let{visible:t,getContainer:o,forceRender:n,destroyOnHidden:r=!1,afterClose:i,closable:s,panelRef:a,keyboard:c=!0,scrollLock:l=!0,onClose:d}=e,{scrollLock:u,...m}=e,[f,g]=ci.useState(t),p=ci.useMemo(()=>({panel:a}),[a]),h=({top:y,event:x})=>{if(y&&c){x.stopPropagation(),d?.(x);return}};return ci.useEffect(()=>{t&&g(!0)},[t]),!n&&r&&!f?null:ci.createElement(jf.Provider,{value:p},ci.createElement(na,{open:t||n||f,onEsc:h,autoDestroy:!1,getContainer:o,autoLock:l&&(t||f)},ci.createElement(PP,cv({},m,{destroyOnHidden:r,afterClose:()=>{let y=s&&typeof s=="object"?s:{},{afterClose:x}=y||{};x?.(),i?.(),g(!1)}}))))},TP=AF;var MP=TP;var OP=()=>Ut()&&window.document.documentElement;var AP=require("react");function dv(e,t,o){return(0,AP.useMemo)(()=>({...{trap:t??!0,focusTriggerAfterClose:o??!0},...e}),[e,t,o])}var ui=M(require("react"));var kd=M(require("react"));var Kf=M(require("react"));var kF=e=>{let{prefixCls:t,className:o,style:n,size:r,shape:i}=e,s=$({[`${t}-lg`]:r==="large",[`${t}-sm`]:r==="small"}),a=$({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),c=Kf.useMemo(()=>Ko(r)?{width:r,height:r,lineHeight:`${r}px`}:{},[r]);return Kf.createElement("span",{className:$(t,s,a,o),style:{...c,...n}})},Os=kF;var LF=new nt("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),fv=e=>({height:e,lineHeight:q(e)}),As=e=>({width:e,...fv(e)}),DF=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:LF,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),uv=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...fv(e)}),_F=e=>{let{skeletonAvatarCls:t,gradientFromColor:o,controlHeight:n,controlHeightLG:r,controlHeightSM:i}=e;return{[t]:{display:"inline-block",verticalAlign:"top",background:o,...As(n)},[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:{...As(r)},[`${t}${t}-sm`]:{...As(i)}}},FF=e=>{let{controlHeight:t,borderRadiusSM:o,skeletonInputCls:n,controlHeightLG:r,controlHeightSM:i,gradientFromColor:s,calc:a}=e;return{[n]:{display:"inline-block",verticalAlign:"top",background:s,borderRadius:o,...uv(t,a)},[`${n}-lg`]:{...uv(r,a)},[`${n}-sm`]:{...uv(i,a)}}},kP=e=>{let{gradientFromColor:t,borderRadiusSM:o,imageSizeBase:n,calc:r}=e;return{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:t,borderRadius:o,...As(r(n).mul(2).equal())}},zF=e=>({[e.skeletonNodeCls]:{...kP(e)}}),BF=e=>{let{skeletonImageCls:t,imageSizeBase:o,calc:n}=e;return{[t]:{...kP(e),[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:{...As(o),maxWidth:n(o).mul(4).equal(),maxHeight:n(o).mul(4).equal()},[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}},[`${t}${t}-circle`]:{borderRadius:"50%"}}},mv=(e,t,o)=>{let{skeletonButtonCls:n}=e;return{[`${o}${n}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${o}${n}-round`]:{borderRadius:t}}},pv=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...fv(e)}),HF=e=>{let{borderRadiusSM:t,skeletonButtonCls:o,controlHeight:n,controlHeightLG:r,controlHeightSM:i,gradientFromColor:s,calc:a}=e;return{[o]:{display:"inline-block",verticalAlign:"top",background:s,borderRadius:t,width:a(n).mul(2).equal(),minWidth:a(n).mul(2).equal(),...pv(n,a)},...mv(e,n,o),[`${o}-lg`]:{...pv(r,a)},...mv(e,r,`${o}-lg`),[`${o}-sm`]:{...pv(i,a)},...mv(e,i,`${o}-sm`)}},VF=e=>{let{componentCls:t,skeletonAvatarCls:o,skeletonTitleCls:n,skeletonParagraphCls:r,skeletonButtonCls:i,skeletonInputCls:s,skeletonNodeCls:a,skeletonImageCls:c,controlHeight:l,controlHeightLG:d,controlHeightSM:u,gradientFromColor:m,padding:f,marginSM:g,borderRadius:p,titleHeight:h,blockRadius:y,paragraphLiHeight:x,controlHeightXS:b,paragraphMarginTop:S}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[o]:{display:"inline-block",verticalAlign:"top",background:m,...As(l)},[`${o}-circle`]:{borderRadius:"50%"},[`${o}-lg`]:{...As(d)},[`${o}-sm`]:{...As(u)}},[`${t}-section`]:{display:"table-cell",width:"100%",verticalAlign:"top",[n]:{width:"100%",height:h,background:m,borderRadius:y,[`+ ${r}`]:{marginBlockStart:u}},[r]:{padding:0,"> li":{width:"100%",height:x,listStyle:"none",background:m,borderRadius:y,"+ li":{marginBlockStart:b}}},[`${r}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-section`]:{[`${n}, ${r} > li`]:{borderRadius:p}}},[`${t}-with-avatar ${t}-section`]:{[n]:{marginBlockStart:g,[`+ ${r}`]:{marginBlockStart:S}}},[`${t}${t}-element`]:{display:"inline-block",width:"auto",...HF(e),..._F(e),...FF(e),...zF(e),...BF(e)},[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[s]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
215
|
+
`]:{paddingInlineEnd:o},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},fP=Ze(["Input","TextArea"],e=>{let t=Fe(e,Di(e));return bF(t)},_i,{resetFont:!1});var xF=(0,gP.forwardRef)((e,t)=>{let{prefixCls:o,bordered:n=!0,size:r,disabled:i,status:s,allowClear:a,classNames:c,rootClassName:l,className:d,style:u,styles:m,variant:f,showCount:g,onMouseDown:p,onResize:h,...y}=e,{getPrefixCls:x,direction:b,allowClear:S,autoComplete:v,className:C,style:R,classNames:w,styles:I}=Ye("textArea"),P=ir.useContext(zo),N=i??P,{status:E,hasFeedback:O,feedbackIcon:L}=ir.useContext(cn),k=$s(E,s),z=De(R),_=De(u),[T,D]=et([w,c],[I,z,m,_],{props:e}),F=ir.useRef(null);ir.useImperativeHandle(t,()=>({resizableTextArea:F.current?.resizableTextArea,focus:re=>{Ga(F.current?.resizableTextArea?.textArea,re)},blur:()=>F.current?.blur(),nativeElement:F.current?.nativeElement||null}));let G=x("input",o),H=oo(G),[W,X]=Ef(G,l);fP(G,H);let{compactSize:B,compactItemClassnames:j}=kn(G,b),U=Xt(re=>r??B??re),[Z,Y]=rr("textArea",f,n),K=lp({allowClear:a,contextAllowClear:S,componentName:"TextArea"}),[V,A]=ir.useState(!1),[ee,Q]=ir.useState(!1),te=re=>{A(!0),p?.(re);let ie=()=>{A(!1),document.removeEventListener("mouseup",ie)};document.addEventListener("mouseup",ie)},le=re=>{if(h?.(re),V&&dt(getComputedStyle)){let ie=F.current?.nativeElement?.querySelector("textarea");ie&&getComputedStyle(ie).resize==="both"&&Q(!0)}};return ir.createElement(qx,{autoComplete:v,...y,style:D.root,styles:D,disabled:N,allowClear:K,className:$(X,H,d,l,j,C,T.root,{[`${G}-textarea-affix-wrapper-resize-dirty`]:ee}),classNames:{...T,textarea:$({[`${G}-sm`]:U==="small",[`${G}-lg`]:U==="large"},W,T.textarea,V&&`${G}-mouse-active`),variant:$({[`${G}-${Z}`]:Y},Li(G,k)),affixWrapper:$(`${G}-textarea-affix-wrapper`,{[`${G}-affix-wrapper-rtl`]:b==="rtl",[`${G}-affix-wrapper-sm`]:U==="small",[`${G}-affix-wrapper-lg`]:U==="large",[`${G}-textarea-show-count`]:g||e.count?.show},W)},prefixCls:G,suffix:O&&ir.createElement("span",{className:`${G}-textarea-suffix`},L),showCount:g,ref:F,onResize:le,onMouseDown:te})}),Lf=xF;var jl=Ts;jl.Group=qN;jl.Search=pP;jl.TextArea=Lf;jl.Password=dP;jl.OTP=iP;var hP=jl;var Gl=M(require("react"));var Vt=M(require("react"));var Df=M(require("react"));var vF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},yP=vF;function Jx(){return Jx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Jx.apply(this,arguments)}var SF=(e,t)=>Df.createElement(Ot,Jx({},e,{ref:t,icon:yP})),CF=Df.forwardRef(SF),_f=CF;var Ff=M(require("react"));var wF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},bP=wF;function ev(){return ev=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},ev.apply(this,arguments)}var RF=(e,t)=>Ff.createElement(Ot,ev({},e,{ref:t,icon:bP})),EF=Ff.forwardRef(RF),xP=EF;var zf=M(require("react"));var $F={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},vP=$F;function tv(){return tv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},tv.apply(this,arguments)}var IF=(e,t)=>zf.createElement(Ot,tv({},e,{ref:t,icon:vP})),NF=zf.forwardRef(IF),SP=NF;var Vf=M(require("react"));var $a=M(require("react"));var PF=e=>{let{type:t,children:o,prefixCls:n,buttonProps:r,close:i,autoFocus:s,emitEvent:a,isSilent:c,quitOnNullishReturnValue:l,actionFn:d}=e,u=$a.useRef(!1),m=$a.useRef(null),[f,g]=Ua(!1),p=(...x)=>{i?.(...x)};$a.useEffect(()=>{let x=null;return s&&(x=setTimeout(()=>{m.current?.focus({preventScroll:!0})})),()=>{x&&clearTimeout(x)}},[s]);let h=x=>{Uu(x)&&(g(!0),x.then((...b)=>{g(!1,!0),p.apply(void 0,b),u.current=!1},b=>{if(g(!1,!0),u.current=!1,!c?.())return Promise.reject(b)}))},y=x=>{if(u.current)return;if(u.current=!0,!d){p();return}let b;if(a){if(b=d(x),l&&!Uu(b)){u.current=!1,p(x);return}}else if(d.length)b=d(i),u.current=!1;else if(b=d(),!Uu(b)){p();return}h(b)};return $a.createElement(ni,{...gp(t),onClick:y,loading:f,prefixCls:n,...r,ref:m},o)},Bf=PF;var CP=M(require("react")),zi=CP.default.createContext({}),{Provider:Hf}=zi;var TF=()=>{let{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:o,isSilent:n,mergedOkCancel:r,rootPrefixCls:i,close:s,onCancel:a,onConfirm:c,onClose:l}=(0,Vf.useContext)(zi);return r?Vf.default.createElement(Bf,{isSilent:n,actionFn:a,close:(...d)=>{s?.(...d),c?.(!1),l?.()},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${i}-btn`},o):null},ov=TF;var Wf=M(require("react"));var MF=()=>{let{autoFocusButton:e,close:t,isSilent:o,okButtonProps:n,rootPrefixCls:r,okTextLocale:i,okType:s,onConfirm:a,onOk:c,onClose:l}=(0,Wf.useContext)(zi);return Wf.default.createElement(Bf,{isSilent:o,type:s||"primary",actionFn:c,close:(...d)=>{t?.(...d),a?.(!0),l?.()},autoFocus:e==="ok",buttonProps:n,prefixCls:`${r}-btn`},i)},nv=MF;var Bn=M(require("react"));var ci=M(require("react"));var wP=M(require("react")),jf=wP.createContext({});var Ms=M(require("react")),Ia=require("react");function rv(e,t,o){let n=t;return!n&&o&&(n=`${e}-${o}`),n}function RP(e,t){let o=e[`page${t?"Y":"X"}Offset`],n=`scroll${t?"Top":"Left"}`;if(typeof o!="number"){let r=e.document;o=r.documentElement[n],typeof o!="number"&&(o=r.body[n])}return o}function EP(e){let t=e.getBoundingClientRect(),o={left:t.left,top:t.top},n=e.ownerDocument,r=n.defaultView||n.parentWindow;return o.left+=RP(r),o.top+=RP(r,!0),o}var Bi=M(require("react")),sv=require("react");var Jo=M(require("react"));var $P=M(require("react")),IP=$P.memo(({children:e})=>e,(e,{shouldUpdate:t})=>!t);function Uf(){return Uf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Uf.apply(this,arguments)}var OF=Jo.default.forwardRef((e,t)=>{let{prefixCls:o,className:n,style:r,title:i,ariaId:s,footer:a,closable:c,closeIcon:l,onClose:d,children:u,bodyStyle:m,bodyProps:f,modalRender:g,onMouseDown:p,onMouseUp:h,holderRef:y,visible:x,forceRender:b,width:S,height:v,classNames:C,styles:R,isFixedPos:w,focusTrap:I}=e,{panel:P}=Jo.default.useContext(jf),N=(0,Jo.useRef)(null),E=bo(y,P,N),[O]=Fh(x&&w&&I!==!1,()=>N.current);Jo.default.useImperativeHandle(t,()=>({focus:()=>{N.current?.focus({preventScroll:!0})}}));let L={};S!==void 0&&(L.width=S),v!==void 0&&(L.height=v);let k=a?Jo.default.createElement("div",{className:$(`${o}-footer`,C?.footer),style:{...R?.footer}},a):null,z=i?Jo.default.createElement("div",{className:$(`${o}-header`,C?.header),style:{...R?.header}},Jo.default.createElement("div",{className:$(`${o}-title`,C?.title),id:s,style:{...R?.title}},i)):null,_=(0,Jo.useMemo)(()=>typeof c=="object"&&c!==null?c:c?{closeIcon:l??Jo.default.createElement("span",{className:`${o}-close-x`})}:{},[c,l,o]),T=Mo(_,!0),D=typeof c=="object"&&c.disabled,F=c?Jo.default.createElement("button",Uf({type:"button",onClick:d,"aria-label":"Close"},T,{className:$(`${o}-close`,C?.close),disabled:D,style:R?.close}),_.closeIcon):null,G=Jo.default.createElement("div",{className:$(`${o}-container`,C?.container),style:R?.container},F,z,Jo.default.createElement("div",Uf({className:$(`${o}-body`,C?.body),style:{...m,...R?.body}},f),u),k);return Jo.default.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?s:null,"aria-modal":"true",ref:E,style:{...r,...L},className:$(o,n),onMouseDown:p,onMouseUp:h,tabIndex:-1,onFocus:H=>{O(H.target)}},Jo.default.createElement(IP,{shouldUpdate:x||b},g?g(G):G))}),Od=OF;function iv(){return iv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},iv.apply(this,arguments)}var AF=Bi.forwardRef((e,t)=>{let{prefixCls:o,title:n,style:r,className:i,visible:s,forceRender:a,destroyOnHidden:c,motionName:l,ariaId:d,onVisibleChanged:u,mousePosition:m}=e,f=(0,sv.useRef)(null),g=(0,sv.useRef)(null);Bi.useImperativeHandle(t,()=>({...g.current,inMotion:f.current.inMotion,enableMotion:f.current.enableMotion}));let[p,h]=Bi.useState(),y={};p&&(y.transformOrigin=p);function x(){if(!f.current?.nativeElement)return;let b=EP(f.current.nativeElement);h(m&&(m.x||m.y)?`${m.x-b.left}px ${m.y-b.top}px`:"")}return Bi.createElement(po,{visible:s,onVisibleChanged:u,onAppearPrepare:x,onEnterPrepare:x,forceRender:a,motionName:l,removeOnLeave:c,ref:f},({className:b,style:S},v)=>Bi.createElement(Od,iv({},e,{ref:g,title:n,ariaId:d,prefixCls:o,holderRef:v,style:{...S,...r,...y},className:$(i,b)})))}),NP=AF;var lv=M(require("react"));function av(){return av=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},av.apply(this,arguments)}var kF=e=>{let{prefixCls:t,style:o,visible:n,maskProps:r,motionName:i,className:s}=e;return lv.createElement(po,{key:"mask",visible:n,motionName:i,leavedClassName:`${t}-mask-hidden`},({className:a,style:c},l)=>lv.createElement("div",av({ref:l,style:{...c,...o},className:$(`${t}-mask`,a,s)},r)))},PP=kF;function Ad(){return Ad=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Ad.apply(this,arguments)}var LF=e=>{let{prefixCls:t="rc-dialog",zIndex:o,visible:n=!1,focusTriggerAfterClose:r=!0,wrapStyle:i,wrapClassName:s,wrapProps:a,onClose:c,afterOpenChange:l,afterClose:d,transitionName:u,animation:m,closable:f=!0,mask:g=!0,maskTransitionName:p,maskAnimation:h,maskClosable:y=!0,maskStyle:x,maskProps:b,rootClassName:S,rootStyle:v,classNames:C,styles:R}=e,w=(0,Ia.useRef)(null),I=(0,Ia.useRef)(null),P=(0,Ia.useRef)(null),[N,E]=Ms.useState(n),[O,L]=Ms.useState(!1),k=Co();function z(){js(I.current,document.activeElement)||(w.current=document.activeElement)}function _(){js(I.current,document.activeElement)||P.current?.focus()}function T(){if(E(!1),g&&w.current&&r){try{w.current.focus({preventScroll:!0})}catch{}w.current=null}N&&d?.()}function D(B){B?_():T(),l?.(B)}function F(B){c?.(B)}let G=(0,Ia.useRef)(!1),H=null;y&&(H=B=>{I.current===B.target&&G.current&&F(B)});function W(B){G.current=B.target===I.current}(0,Ia.useEffect)(()=>{if(n){if(G.current=!1,E(!0),z(),I.current){let B=getComputedStyle(I.current);L(B.position==="fixed")}}else N&&P.current.enableMotion()&&!P.current.inMotion()&&T()},[n]);let X={zIndex:o,...i,...R?.wrapper,display:N?null:"none"};return Ms.createElement("div",Ad({className:$(`${t}-root`,S),style:v},Mo(e,{data:!0})),Ms.createElement(PP,{prefixCls:t,visible:g&&n,motionName:rv(t,p,h),style:{zIndex:o,...x,...R?.mask},maskProps:b,className:C?.mask}),Ms.createElement("div",Ad({className:$(`${t}-wrap`,s,C?.wrapper),ref:I,onClick:H,onMouseDown:W,style:X},a),Ms.createElement(NP,Ad({},e,{isFixedPos:O,ref:P,closable:f,ariaId:k,prefixCls:t,visible:n&&N,onClose:F,onVisibleChanged:D,motionName:rv(t,u,m)}))))},TP=LF;function cv(){return cv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},cv.apply(this,arguments)}var DF=e=>{let{visible:t,getContainer:o,forceRender:n,destroyOnHidden:r=!1,afterClose:i,closable:s,panelRef:a,keyboard:c=!0,scrollLock:l=!0,onClose:d}=e,{scrollLock:u,...m}=e,[f,g]=ci.useState(t),p=ci.useMemo(()=>({panel:a}),[a]),h=({top:y,event:x})=>{if(y&&c){x.stopPropagation(),d?.(x);return}};return ci.useEffect(()=>{t&&g(!0)},[t]),!n&&r&&!f?null:ci.createElement(jf.Provider,{value:p},ci.createElement(na,{open:t||n||f,onEsc:h,autoDestroy:!1,getContainer:o,autoLock:l&&(t||f)},ci.createElement(TP,cv({},m,{destroyOnHidden:r,afterClose:()=>{let y=s&&typeof s=="object"?s:{},{afterClose:x}=y||{};x?.(),i?.(),g(!1)}}))))},MP=DF;var OP=MP;var AP=()=>Ut()&&window.document.documentElement;var kP=require("react");function dv(e,t,o){return(0,kP.useMemo)(()=>({...{trap:t??!0,focusTriggerAfterClose:o??!0},...e}),[e,t,o])}var ui=M(require("react"));var kd=M(require("react"));var Kf=M(require("react"));var _F=e=>{let{prefixCls:t,className:o,style:n,size:r,shape:i}=e,s=$({[`${t}-lg`]:r==="large",[`${t}-sm`]:r==="small"}),a=$({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),c=Kf.useMemo(()=>Ko(r)?{width:r,height:r,lineHeight:`${r}px`}:{},[r]);return Kf.createElement("span",{className:$(t,s,a,o),style:{...c,...n}})},Os=_F;var FF=new nt("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),fv=e=>({height:e,lineHeight:q(e)}),As=e=>({width:e,...fv(e)}),zF=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:FF,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),uv=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...fv(e)}),BF=e=>{let{skeletonAvatarCls:t,gradientFromColor:o,controlHeight:n,controlHeightLG:r,controlHeightSM:i}=e;return{[t]:{display:"inline-block",verticalAlign:"top",background:o,...As(n)},[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:{...As(r)},[`${t}${t}-sm`]:{...As(i)}}},HF=e=>{let{controlHeight:t,borderRadiusSM:o,skeletonInputCls:n,controlHeightLG:r,controlHeightSM:i,gradientFromColor:s,calc:a}=e;return{[n]:{display:"inline-block",verticalAlign:"top",background:s,borderRadius:o,...uv(t,a)},[`${n}-lg`]:{...uv(r,a)},[`${n}-sm`]:{...uv(i,a)}}},LP=e=>{let{gradientFromColor:t,borderRadiusSM:o,imageSizeBase:n,calc:r}=e;return{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:t,borderRadius:o,...As(r(n).mul(2).equal())}},VF=e=>({[e.skeletonNodeCls]:{...LP(e)}}),WF=e=>{let{skeletonImageCls:t,imageSizeBase:o,calc:n}=e;return{[t]:{...LP(e),[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:{...As(o),maxWidth:n(o).mul(4).equal(),maxHeight:n(o).mul(4).equal()},[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}},[`${t}${t}-circle`]:{borderRadius:"50%"}}},mv=(e,t,o)=>{let{skeletonButtonCls:n}=e;return{[`${o}${n}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${o}${n}-round`]:{borderRadius:t}}},pv=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...fv(e)}),jF=e=>{let{borderRadiusSM:t,skeletonButtonCls:o,controlHeight:n,controlHeightLG:r,controlHeightSM:i,gradientFromColor:s,calc:a}=e;return{[o]:{display:"inline-block",verticalAlign:"top",background:s,borderRadius:t,width:a(n).mul(2).equal(),minWidth:a(n).mul(2).equal(),...pv(n,a)},...mv(e,n,o),[`${o}-lg`]:{...pv(r,a)},...mv(e,r,`${o}-lg`),[`${o}-sm`]:{...pv(i,a)},...mv(e,i,`${o}-sm`)}},UF=e=>{let{componentCls:t,skeletonAvatarCls:o,skeletonTitleCls:n,skeletonParagraphCls:r,skeletonButtonCls:i,skeletonInputCls:s,skeletonNodeCls:a,skeletonImageCls:c,controlHeight:l,controlHeightLG:d,controlHeightSM:u,gradientFromColor:m,padding:f,marginSM:g,borderRadius:p,titleHeight:h,blockRadius:y,paragraphLiHeight:x,controlHeightXS:b,paragraphMarginTop:S}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[o]:{display:"inline-block",verticalAlign:"top",background:m,...As(l)},[`${o}-circle`]:{borderRadius:"50%"},[`${o}-lg`]:{...As(d)},[`${o}-sm`]:{...As(u)}},[`${t}-section`]:{display:"table-cell",width:"100%",verticalAlign:"top",[n]:{width:"100%",height:h,background:m,borderRadius:y,[`+ ${r}`]:{marginBlockStart:u}},[r]:{padding:0,"> li":{width:"100%",height:x,listStyle:"none",background:m,borderRadius:y,"+ li":{marginBlockStart:b}}},[`${r}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-section`]:{[`${n}, ${r} > li`]:{borderRadius:p}}},[`${t}-with-avatar ${t}-section`]:{[n]:{marginBlockStart:g,[`+ ${r}`]:{marginBlockStart:S}}},[`${t}${t}-element`]:{display:"inline-block",width:"auto",...jF(e),...BF(e),...HF(e),...VF(e),...WF(e)},[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[s]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
216
216
|
${n},
|
|
217
217
|
${r} > li,
|
|
218
218
|
${o},
|
|
@@ -220,15 +220,15 @@ ${i}
|
|
|
220
220
|
${s},
|
|
221
221
|
${a},
|
|
222
222
|
${c}
|
|
223
|
-
`]:{...DF(e)}}}},WF=e=>{let{colorFillContent:t,colorFill:o}=e,n=t,r=o;return{color:n,colorGradientEnd:r,gradientFromColor:n,gradientToColor:r,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},di=Ze("Skeleton",e=>{let{componentCls:t,calc:o}=e,n=Fe(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonNodeCls:`${t}-node`,skeletonImageCls:`${t}-image`,imageSizeBase:o(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return VF(n)},WF,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]});var jF=e=>{let{prefixCls:t,className:o,classNames:n,rootClassName:r,active:i,style:s,styles:a,shape:c="circle",size:l,...d}=e,{getPrefixCls:u}=kd.useContext(Oe),m=u("skeleton",t),[f,g]=di(m),p=Xt(y=>l??y),h=$(m,`${m}-element`,{[`${m}-active`]:i},n?.root,o,r,f,g);return kd.createElement("div",{className:h,style:a?.root},kd.createElement(Os,{prefixCls:`${m}-avatar`,className:n?.content,style:{...a?.content,...s},shape:c,size:p,...d}))},LP=jF;var Ld=M(require("react"));var UF=e=>{let{prefixCls:t,className:o,rootClassName:n,classNames:r,active:i,style:s,styles:a,block:c=!1,size:l,...d}=e,{getPrefixCls:u}=Ld.useContext(Oe),m=u("skeleton",t),[f,g]=di(m),p=Xt(y=>l??y),h=$(m,`${m}-element`,{[`${m}-active`]:i,[`${m}-block`]:c},r?.root,o,n,f,g);return Ld.createElement("div",{className:h,style:a?.root},Ld.createElement(Os,{prefixCls:`${m}-button`,className:r?.content,style:{...a?.content,...s},size:p,...d}))},DP=UF;var Na=M(require("react"));var Dd=M(require("react"));var KF=e=>{let{prefixCls:t,className:o,classNames:n,rootClassName:r,internalClassName:i,style:s,styles:a,active:c,children:l}=e,{getPrefixCls:d}=Dd.useContext(Oe),u=d("skeleton",t),[m,f]=di(u),g=$(u,`${u}-element`,{[`${u}-active`]:c},m,n?.root,o,r,f);return Dd.createElement("div",{className:g,style:a?.root},Dd.createElement("div",{className:$(n?.content,i||`${u}-node`),style:{...a?.content,...s}},l))},Gf=KF;var GF=e=>{let{getPrefixCls:t}=Na.useContext(Oe),o=t("skeleton",e.prefixCls);return Na.createElement(Gf,{...e,internalClassName:`${o}-image`},Na.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${o}-image-svg`,"aria-hidden":"true",focusable:"false"},Na.createElement("title",null,"Image placeholder"),Na.createElement("path",{d:"M365.7 329.1q0 45.8-32 77.7t-77.7 32-77.7-32-32-77.7 32-77.6 77.7-32 77.7 32 32 77.6M951 548.6v256H146.3V694.9L329 512l91.5 91.4L713 311zm54.8-402.3H91.4q-7.4 0-12.8 5.4T73 164.6v694.8q0 7.5 5.5 12.9t12.8 5.4h914.3q7.5 0 12.9-5.4t5.4-12.9V164.6q0-7.5-5.4-12.9t-12.9-5.4m91.4 18.3v694.8q0 37.8-26.8 64.6t-64.6 26.9H91.4q-37.7 0-64.6-26.9T0 859.4V164.6q0-37.8 26.8-64.6T91.4 73h914.3q37.8 0 64.6 26.9t26.8 64.6",className:`${o}-image-path`})))},_P=GF;var _d=M(require("react"));var qF=e=>{let{prefixCls:t,className:o,classNames:n,rootClassName:r,active:i,block:s,style:a,styles:c,size:l,...d}=e,{getPrefixCls:u}=_d.useContext(Oe),m=u("skeleton",t),[f,g]=di(m),p=Xt(y=>l??y),h=$(m,`${m}-element`,{[`${m}-active`]:i,[`${m}-block`]:s},n?.root,o,r,f,g);return _d.createElement("div",{className:h,style:c?.root},_d.createElement(Os,{prefixCls:`${m}-input`,className:n?.content,style:{...c?.content,...a},size:p,...d}))},FP=qF;var gv=M(require("react"));var XF=(e,t)=>{let{width:o,rows:n=2}=t;if(Array.isArray(o))return o[e];if(n-1===e)return o},YF=e=>{let{prefixCls:t,className:o,style:n,rows:r=0}=e,i=Array.from({length:r}).map((s,a)=>gv.createElement("li",{key:a,style:{width:XF(a,e)}}));return gv.createElement("ul",{className:$(t,o),style:n},i)},zP=YF;var BP=M(require("react"));var ZF=({prefixCls:e,className:t,width:o,style:n})=>BP.createElement("h3",{className:$(e,t),style:{width:o,...n}}),HP=ZF;function hv(e){return at(e)?e:{}}function QF(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function JF(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function ez(e,t){let o={};return(!e||!t)&&(o.width="61%"),!e&&t?o.rows=3:o.rows=2,o}var Ul=ui.default.forwardRef((e,t)=>{let{prefixCls:o,loading:n,className:r,rootClassName:i,classNames:s,style:a,styles:c,children:l,avatar:d=!1,title:u=!0,paragraph:m=!0,active:f,round:g}=e,{getPrefixCls:p,direction:h,className:y,style:x,classNames:b,styles:S}=Ye("skeleton"),v=p("skeleton",o),[C,R]=di(v),w={...e,avatar:d,title:u,paragraph:m},I=De(x),P=De(a),[N,E]=et([b,s],[S,I,c,P],{props:w}),O=ui.default.useRef(null);if(ui.default.useImperativeHandle(t,()=>({nativeElement:O.current})),n||!("loading"in e)){let D=!!d,A=!!u,F=!!m,_;if(D){let z={className:N.avatar,prefixCls:`${v}-avatar`,...QF(A,F),...hv(d),style:E.avatar};_=ui.default.createElement("div",{className:$(N.header,`${v}-header`),style:E.header},ui.default.createElement(Os,{...z}))}let T;if(A||F){let z;if(A){let V={className:N.title,prefixCls:`${v}-title`,...JF(D,F),...hv(u),style:E.title};z=ui.default.createElement(HP,{...V})}let G;if(F){let V={className:N.paragraph,prefixCls:`${v}-paragraph`,...ez(D,A),...hv(m),style:E.paragraph};G=ui.default.createElement(zP,{...V})}T=ui.default.createElement("div",{className:$(N.section,`${v}-section`),style:E.section},z,G)}let L=$(v,{[`${v}-with-avatar`]:D,[`${v}-active`]:f,[`${v}-rtl`]:h==="rtl",[`${v}-round`]:g},N.root,y,r,i,C,R);return ui.default.createElement("div",{ref:O,className:L,style:E.root},_,T)}return l??null});Ul.Button=DP;Ul.Avatar=LP;Ul.Input=FP;Ul.Image=_P;Ul.Node=Gf;var VP=Ul;var WP=VP;var Kl=M(require("react"));function jP(){}var tz=Kl.createContext({add:jP,remove:jP});function UP(e){let t=Kl.useContext(tz),o=Kl.useRef(null);return Ie(r=>{if(r){let i=e?r.querySelector(e):r;i&&(t.add(i),o.current=i)}else t.remove(o.current)})}var mi=M(require("react"));var qf=M(require("react"));var oz=()=>{let{cancelButtonProps:e,cancelTextLocale:t,onCancel:o}=(0,qf.useContext)(zi),n=r=>{o?.(r),e?.onClick?.(r)};return qf.default.createElement(ni,{...e,onClick:n},t)},yv=oz;var Xf=M(require("react"));var nz=()=>{let{confirmLoading:e,okButtonProps:t,okType:o,okTextLocale:n,onOk:r}=(0,Xf.useContext)(zi);return Xf.default.createElement(ni,{...gp(o),loading:e,onClick:r,...t},n)},bv=nz;function Yf(e,t){return mi.default.createElement("span",{className:`${e}-close-x`},lo(t)?t:mi.default.createElement(Yn,{className:`${e}-close-icon`}))}var Zf=e=>{let{okText:t,okType:o="primary",cancelText:n,confirmLoading:r,onOk:i,onCancel:s,okButtonProps:a,cancelButtonProps:c,footer:l}=e,[d]=Go("Modal",gm()),u=Qt(t,d?.okText),m=Qt(n,d?.cancelText),f=mi.default.useMemo(()=>({confirmLoading:r,okButtonProps:a,cancelButtonProps:c,okTextLocale:u,cancelTextLocale:m,okType:o,onOk:i,onCancel:s}),[r,a,c,u,m,o,i,s]),g;return ct(l)||typeof l>"u"?(g=mi.default.createElement(mi.default.Fragment,null,mi.default.createElement(yv,null),mi.default.createElement(bv,null)),ct(l)&&(g=l(g,{OkBtn:bv,CancelBtn:yv})),g=mi.default.createElement(Hf,{value:f},g)):g=l,mi.default.createElement(jm,{disabled:!1},g)};var rz=e=>{let{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},iz=e=>{let{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},sz=(e,t)=>{let{componentCls:o,gridColumns:n,antCls:r}=e,[i,s]=qt(r,"grid"),[,a]=qt(r,"col"),c={};for(let l=n;l>=0;l--)l===0?(c[`${o}${t}-${l}`]={display:"none"},c[`${o}-push-${l}`]={insetInlineStart:"auto"},c[`${o}-pull-${l}`]={insetInlineEnd:"auto"},c[`${o}${t}-push-${l}`]={insetInlineStart:"auto"},c[`${o}${t}-pull-${l}`]={insetInlineEnd:"auto"},c[`${o}${t}-offset-${l}`]={marginInlineStart:0},c[`${o}${t}-order-${l}`]={order:0}):(c[`${o}${t}-${l}`]=[{[i("display")]:"block",display:"block"},{display:s("display"),flex:`0 0 ${l/n*100}%`,maxWidth:`${l/n*100}%`}],c[`${o}${t}-push-${l}`]={insetInlineStart:`${l/n*100}%`},c[`${o}${t}-pull-${l}`]={insetInlineEnd:`${l/n*100}%`},c[`${o}${t}-offset-${l}`]={marginInlineStart:`${l/n*100}%`},c[`${o}${t}-order-${l}`]={order:l});return c[`${o}${t}-flex`]={flex:a(`${t.replace(/-/,"")}-flex`)},c},xv=(e,t)=>sz(e,t),az=(e,t,o)=>({[`@media (min-width: ${q(t)})`]:{...xv(e,o)}}),lz=()=>({}),cz=()=>({}),Pye=Ze("Grid",rz,lz),vv=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin,xxxl:e.screenXXXLMin}),Tye=Ze("Grid",e=>{let t=Fe(e,{gridColumns:24}),o=vv(t);return delete o.xs,[iz(t),xv(t,""),xv(t,"-xs"),Object.keys(o).map(n=>az(t,o[n],`-${n}`)).reduce((n,r)=>({...n,...r}),{})]},cz);function KP(e){return{position:e,inset:0}}var dz=e=>{let{componentCls:t,antCls:o}=e;return[{[`${t}-root`]:{[`${t}${o}-zoom-enter, ${t}${o}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${o}-zoom-leave ${t}-container`]:{pointerEvents:"none"},[`${t}-mask`]:{...KP("fixed"),zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`&${t}-mask-blur`]:{backdropFilter:"blur(4px)"},[`${t}-hidden`]:{display:"none"}},[`${t}-wrap`]:{...KP("fixed"),zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${t}-root`]:td(e)}]},uz=e=>{let{componentCls:t,motionDurationMid:o}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${q(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:{...Et(e),pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${q(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto","&:focus-visible":{borderRadius:e.borderRadiusLG,...An(e)},[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-container`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:{position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:["color","background-color"].map(n=>`${n} ${o}`).join(", "),"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:q(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive},...ln(e)},[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${q(e.borderRadiusLG)} ${q(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${q(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}}},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-container,
|
|
223
|
+
`]:{...zF(e)}}}},KF=e=>{let{colorFillContent:t,colorFill:o}=e,n=t,r=o;return{color:n,colorGradientEnd:r,gradientFromColor:n,gradientToColor:r,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},di=Ze("Skeleton",e=>{let{componentCls:t,calc:o}=e,n=Fe(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonNodeCls:`${t}-node`,skeletonImageCls:`${t}-image`,imageSizeBase:o(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return UF(n)},KF,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]});var GF=e=>{let{prefixCls:t,className:o,classNames:n,rootClassName:r,active:i,style:s,styles:a,shape:c="circle",size:l,...d}=e,{getPrefixCls:u}=kd.useContext(Oe),m=u("skeleton",t),[f,g]=di(m),p=Xt(y=>l??y),h=$(m,`${m}-element`,{[`${m}-active`]:i},n?.root,o,r,f,g);return kd.createElement("div",{className:h,style:a?.root},kd.createElement(Os,{prefixCls:`${m}-avatar`,className:n?.content,style:{...a?.content,...s},shape:c,size:p,...d}))},DP=GF;var Ld=M(require("react"));var qF=e=>{let{prefixCls:t,className:o,rootClassName:n,classNames:r,active:i,style:s,styles:a,block:c=!1,size:l,...d}=e,{getPrefixCls:u}=Ld.useContext(Oe),m=u("skeleton",t),[f,g]=di(m),p=Xt(y=>l??y),h=$(m,`${m}-element`,{[`${m}-active`]:i,[`${m}-block`]:c},r?.root,o,n,f,g);return Ld.createElement("div",{className:h,style:a?.root},Ld.createElement(Os,{prefixCls:`${m}-button`,className:r?.content,style:{...a?.content,...s},size:p,...d}))},_P=qF;var Na=M(require("react"));var Dd=M(require("react"));var XF=e=>{let{prefixCls:t,className:o,classNames:n,rootClassName:r,internalClassName:i,style:s,styles:a,active:c,children:l}=e,{getPrefixCls:d}=Dd.useContext(Oe),u=d("skeleton",t),[m,f]=di(u),g=$(u,`${u}-element`,{[`${u}-active`]:c},m,n?.root,o,r,f);return Dd.createElement("div",{className:g,style:a?.root},Dd.createElement("div",{className:$(n?.content,i||`${u}-node`),style:{...a?.content,...s}},l))},Gf=XF;var YF=e=>{let{getPrefixCls:t}=Na.useContext(Oe),o=t("skeleton",e.prefixCls);return Na.createElement(Gf,{...e,internalClassName:`${o}-image`},Na.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${o}-image-svg`,"aria-hidden":"true",focusable:"false"},Na.createElement("title",null,"Image placeholder"),Na.createElement("path",{d:"M365.7 329.1q0 45.8-32 77.7t-77.7 32-77.7-32-32-77.7 32-77.6 77.7-32 77.7 32 32 77.6M951 548.6v256H146.3V694.9L329 512l91.5 91.4L713 311zm54.8-402.3H91.4q-7.4 0-12.8 5.4T73 164.6v694.8q0 7.5 5.5 12.9t12.8 5.4h914.3q7.5 0 12.9-5.4t5.4-12.9V164.6q0-7.5-5.4-12.9t-12.9-5.4m91.4 18.3v694.8q0 37.8-26.8 64.6t-64.6 26.9H91.4q-37.7 0-64.6-26.9T0 859.4V164.6q0-37.8 26.8-64.6T91.4 73h914.3q37.8 0 64.6 26.9t26.8 64.6",className:`${o}-image-path`})))},FP=YF;var _d=M(require("react"));var ZF=e=>{let{prefixCls:t,className:o,classNames:n,rootClassName:r,active:i,block:s,style:a,styles:c,size:l,...d}=e,{getPrefixCls:u}=_d.useContext(Oe),m=u("skeleton",t),[f,g]=di(m),p=Xt(y=>l??y),h=$(m,`${m}-element`,{[`${m}-active`]:i,[`${m}-block`]:s},n?.root,o,r,f,g);return _d.createElement("div",{className:h,style:c?.root},_d.createElement(Os,{prefixCls:`${m}-input`,className:n?.content,style:{...c?.content,...a},size:p,...d}))},zP=ZF;var gv=M(require("react"));var QF=(e,t)=>{let{width:o,rows:n=2}=t;if(Array.isArray(o))return o[e];if(n-1===e)return o},JF=e=>{let{prefixCls:t,className:o,style:n,rows:r=0}=e,i=Array.from({length:r}).map((s,a)=>gv.createElement("li",{key:a,style:{width:QF(a,e)}}));return gv.createElement("ul",{className:$(t,o),style:n},i)},BP=JF;var HP=M(require("react"));var ez=({prefixCls:e,className:t,width:o,style:n})=>HP.createElement("h3",{className:$(e,t),style:{width:o,...n}}),VP=ez;function hv(e){return at(e)?e:{}}function tz(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function oz(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function nz(e,t){let o={};return(!e||!t)&&(o.width="61%"),!e&&t?o.rows=3:o.rows=2,o}var Ul=ui.default.forwardRef((e,t)=>{let{prefixCls:o,loading:n,className:r,rootClassName:i,classNames:s,style:a,styles:c,children:l,avatar:d=!1,title:u=!0,paragraph:m=!0,active:f,round:g}=e,{getPrefixCls:p,direction:h,className:y,style:x,classNames:b,styles:S}=Ye("skeleton"),v=p("skeleton",o),[C,R]=di(v),w={...e,avatar:d,title:u,paragraph:m},I=De(x),P=De(a),[N,E]=et([b,s],[S,I,c,P],{props:w}),O=ui.default.useRef(null);if(ui.default.useImperativeHandle(t,()=>({nativeElement:O.current})),n||!("loading"in e)){let L=!!d,k=!!u,z=!!m,_;if(L){let F={className:N.avatar,prefixCls:`${v}-avatar`,...tz(k,z),...hv(d),style:E.avatar};_=ui.default.createElement("div",{className:$(N.header,`${v}-header`),style:E.header},ui.default.createElement(Os,{...F}))}let T;if(k||z){let F;if(k){let H={className:N.title,prefixCls:`${v}-title`,...oz(L,z),...hv(u),style:E.title};F=ui.default.createElement(VP,{...H})}let G;if(z){let H={className:N.paragraph,prefixCls:`${v}-paragraph`,...nz(L,k),...hv(m),style:E.paragraph};G=ui.default.createElement(BP,{...H})}T=ui.default.createElement("div",{className:$(N.section,`${v}-section`),style:E.section},F,G)}let D=$(v,{[`${v}-with-avatar`]:L,[`${v}-active`]:f,[`${v}-rtl`]:h==="rtl",[`${v}-round`]:g},N.root,y,r,i,C,R);return ui.default.createElement("div",{ref:O,className:D,style:E.root},_,T)}return l??null});Ul.Button=_P;Ul.Avatar=DP;Ul.Input=zP;Ul.Image=FP;Ul.Node=Gf;var WP=Ul;var jP=WP;var Kl=M(require("react"));function UP(){}var rz=Kl.createContext({add:UP,remove:UP});function KP(e){let t=Kl.useContext(rz),o=Kl.useRef(null);return Ie(r=>{if(r){let i=e?r.querySelector(e):r;i&&(t.add(i),o.current=i)}else t.remove(o.current)})}var mi=M(require("react"));var qf=M(require("react"));var iz=()=>{let{cancelButtonProps:e,cancelTextLocale:t,onCancel:o}=(0,qf.useContext)(zi),n=r=>{o?.(r),e?.onClick?.(r)};return qf.default.createElement(ni,{...e,onClick:n},t)},yv=iz;var Xf=M(require("react"));var sz=()=>{let{confirmLoading:e,okButtonProps:t,okType:o,okTextLocale:n,onOk:r}=(0,Xf.useContext)(zi);return Xf.default.createElement(ni,{...gp(o),loading:e,onClick:r,...t},n)},bv=sz;function Yf(e,t){return mi.default.createElement("span",{className:`${e}-close-x`},lo(t)?t:mi.default.createElement(Yn,{className:`${e}-close-icon`}))}var Zf=e=>{let{okText:t,okType:o="primary",cancelText:n,confirmLoading:r,onOk:i,onCancel:s,okButtonProps:a,cancelButtonProps:c,footer:l}=e,[d]=Go("Modal",gm()),u=Qt(t,d?.okText),m=Qt(n,d?.cancelText),f=mi.default.useMemo(()=>({confirmLoading:r,okButtonProps:a,cancelButtonProps:c,okTextLocale:u,cancelTextLocale:m,okType:o,onOk:i,onCancel:s}),[r,a,c,u,m,o,i,s]),g;return dt(l)||typeof l>"u"?(g=mi.default.createElement(mi.default.Fragment,null,mi.default.createElement(yv,null),mi.default.createElement(bv,null)),dt(l)&&(g=l(g,{OkBtn:bv,CancelBtn:yv})),g=mi.default.createElement(Hf,{value:f},g)):g=l,mi.default.createElement(jm,{disabled:!1},g)};var az=e=>{let{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},lz=e=>{let{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},cz=(e,t)=>{let{componentCls:o,gridColumns:n,antCls:r}=e,[i,s]=qt(r,"grid"),[,a]=qt(r,"col"),c={};for(let l=n;l>=0;l--)l===0?(c[`${o}${t}-${l}`]={display:"none"},c[`${o}-push-${l}`]={insetInlineStart:"auto"},c[`${o}-pull-${l}`]={insetInlineEnd:"auto"},c[`${o}${t}-push-${l}`]={insetInlineStart:"auto"},c[`${o}${t}-pull-${l}`]={insetInlineEnd:"auto"},c[`${o}${t}-offset-${l}`]={marginInlineStart:0},c[`${o}${t}-order-${l}`]={order:0}):(c[`${o}${t}-${l}`]=[{[i("display")]:"block",display:"block"},{display:s("display"),flex:`0 0 ${l/n*100}%`,maxWidth:`${l/n*100}%`}],c[`${o}${t}-push-${l}`]={insetInlineStart:`${l/n*100}%`},c[`${o}${t}-pull-${l}`]={insetInlineEnd:`${l/n*100}%`},c[`${o}${t}-offset-${l}`]={marginInlineStart:`${l/n*100}%`},c[`${o}${t}-order-${l}`]={order:l});return c[`${o}${t}-flex`]={flex:a(`${t.replace(/-/,"")}-flex`)},c},xv=(e,t)=>cz(e,t),dz=(e,t,o)=>({[`@media (min-width: ${q(t)})`]:{...xv(e,o)}}),uz=()=>({}),mz=()=>({}),Aye=Ze("Grid",az,uz),vv=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin,xxxl:e.screenXXXLMin}),kye=Ze("Grid",e=>{let t=Fe(e,{gridColumns:24}),o=vv(t);return delete o.xs,[lz(t),xv(t,""),xv(t,"-xs"),Object.keys(o).map(n=>dz(t,o[n],`-${n}`)).reduce((n,r)=>({...n,...r}),{})]},mz);function GP(e){return{position:e,inset:0}}var pz=e=>{let{componentCls:t,antCls:o}=e;return[{[`${t}-root`]:{[`${t}${o}-zoom-enter, ${t}${o}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${o}-zoom-leave ${t}-container`]:{pointerEvents:"none"},[`${t}-mask`]:{...GP("fixed"),zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`&${t}-mask-blur`]:{backdropFilter:"blur(4px)"},[`${t}-hidden`]:{display:"none"}},[`${t}-wrap`]:{...GP("fixed"),zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${t}-root`]:td(e)}]},fz=e=>{let{componentCls:t,motionDurationMid:o}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${q(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:{...Et(e),pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${q(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto","&:focus-visible":{borderRadius:e.borderRadiusLG,...An(e)},[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-container`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:{position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:["color","background-color"].map(n=>`${n} ${o}`).join(", "),"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:q(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive},...ln(e)},[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${q(e.borderRadiusLG)} ${q(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${q(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}}},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-container,
|
|
224
224
|
${t}-body,
|
|
225
|
-
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},
|
|
226
|
-
${d}-confirm ${d}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${d}-info ${d}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${d}-success ${d}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},GP=Jc(["Modal","confirm"],e=>{let t=Sv(e);return hz(t)},Cv,{order:-1e3});var yz=["body"],Rv=e=>{let{prefixCls:t,icon:o,okText:n,cancelText:r,confirmPrefixCls:i,type:s,okCancel:a,footer:c,locale:l,autoFocusButton:d,focusable:u,contentClassName:m,contentStyle:f,...g}=e,{infoIcon:p,successIcon:h,errorIcon:y,warningIcon:x}=Ye("modal"),b=o;if(o===void 0)switch(s){case"info":b=Qt(p,Vt.createElement(vP,null));break;case"success":b=Qt(h,Vt.createElement(_f,null));break;case"error":b=Qt(y,Vt.createElement(ls,null));break;default:b=Qt(x,Vt.createElement(bP,null))}let S=a??s==="confirm",v=Vt.useMemo(()=>{let _=u?.autoFocusButton||d;return _||_===null?_:"ok"},[d,u?.autoFocusButton]),[C]=Go("Modal"),R=l||C,w=Qt(n,S?R?.okText:R?.justOkText),I=Qt(r,R?.cancelText),{closable:P}=g,{onClose:N}=at(P)?P:{},E=Vt.useMemo(()=>({autoFocusButton:v,cancelTextLocale:I,okTextLocale:w,mergedOkCancel:S,onClose:N,...g}),[v,I,w,S,N,g]),O=Vt.createElement(Vt.Fragment,null,Vt.createElement(ov,null),Vt.createElement(nv,null)),D=lo(e.title),A=lo(b),F=`${i}-body`;return Vt.createElement("div",{className:`${i}-body-wrapper`},Vt.createElement("div",{className:$(F,{[`${F}-has-title`]:D,[`${F}-no-icon`]:!A})},b,Vt.createElement("div",{className:`${i}-paragraph`},D&&Vt.createElement("span",{className:`${i}-title`},e.title),Vt.createElement("div",{className:$(`${i}-content`,m),style:f},e.content))),c===void 0||ct(c)?Vt.createElement(Hf,{value:E},Vt.createElement("div",{className:`${i}-btns`},ct(c)?c(O,{OkBtn:nv,CancelBtn:ov}):O)):c,Vt.createElement(GP,{prefixCls:t}))},bz=e=>{let{close:t,zIndex:o,maskStyle:n,direction:r,prefixCls:i,wrapClassName:s,rootPrefixCls:a,bodyStyle:c,closable:l=!1,onConfirm:d,styles:u,title:m,mask:f,maskClosable:g,okButtonProps:p,cancelButtonProps:h}=e,{cancelButtonProps:y,okButtonProps:x}=Ye("modal"),b=`${i}-confirm`,S=e.width||416,v=e.style||{},C=ct(u)?E=>({body:c,mask:n,...u(E)}):{body:c,mask:n,...u},R=Ke(e,["bodyStyle","maskStyle"]),w=$(b,`${b}-${e.type}`,{[`${b}-rtl`]:r==="rtl"},e.className),I=Vt.useMemo(()=>{let E=dp(f,g);return E.closable??(E.closable=!1),E},[f,g]),[,P]=Gt(),N=Vt.useMemo(()=>o!==void 0?o:P.zIndexPopupBase+gb,[o,P]);return Vt.createElement(Jf,{...R,className:w,wrapClassName:$({[`${b}-centered`]:!!e.centered},s),onCancel:()=>{t?.({triggerCancel:!0}),d?.(!1)},title:m,footer:null,transitionName:hr(a||"","zoom",e.transitionName),maskTransitionName:hr(a||"","fade",e.maskTransitionName),mask:I,style:v,styles:C,width:S,zIndex:N,closable:l,_semanticOmit:yz,_renderSemanticContent:({classNames:E,styles:O})=>Vt.createElement(Rv,{...e,confirmPrefixCls:b,okButtonProps:{...x,...p},cancelButtonProps:{...y,...h},contentClassName:E.body,contentStyle:O.body})})},xz=e=>{let{rootPrefixCls:t,iconPrefixCls:o,direction:n,theme:r}=e;return Vt.createElement(as,{prefixCls:t,iconPrefixCls:o,direction:n,theme:r},Vt.createElement(bz,{...e}))},eg=xz;var vz=[],pi=vz;var qP="";function XP(){return qP}var Sz=e=>{let{prefixCls:t,getContainer:o,direction:n}=e,r=gm(),i=(0,Gl.useContext)(Oe),s=XP()||i.getPrefixCls(),a=t||`${s}-modal`,c=o;return c===!1&&(c=void 0),Gl.default.createElement(eg,{...e,rootPrefixCls:s,prefixCls:a,iconPrefixCls:i.iconPrefixCls,theme:i.theme,direction:n??i.direction,locale:i.locale?.Modal??r,getContainer:c})};function Pa(e){let t=ZE(),o=document.createDocumentFragment(),n={...e,close:a,open:!0},r;function i(...l){l.some(u=>u?.triggerCancel)&&e.onCancel?.(()=>{},...l.slice(1));for(let u=0;u<pi.length;u++)if(pi[u]===a){pi.splice(u,1);break}Ic(o).then(()=>{})}let s=l=>{clearTimeout(r),r=setTimeout(()=>{let d=t.getPrefixCls(void 0,XP()),u=t.getIconPrefixCls(),m=t.getTheme(),f=Gl.default.createElement(Sz,{...l});$c(Gl.default.createElement(as,{prefixCls:d,iconPrefixCls:u,theme:m},ct(t.holderRender)?t.holderRender(f):f),o)})};function a(...l){n={...n,open:!1,afterClose:()=>{ct(e.afterClose)&&e.afterClose(),i.apply(this,l)}},s(n)}function c(l){ct(l)?n=l(n):n={...n,...l},s(n)}return s(n),pi.push(a),{destroy:a,update:c}}function tg(e){return{...e,type:"warning"}}function og(e){return{...e,type:"info"}}function ng(e){return{...e,type:"success"}}function rg(e){return{...e,type:"error"}}function ig(e){return{...e,type:"confirm"}}function YP({rootPrefixCls:e}){qP=e}var ql=M(require("react"));var Cz=e=>{let{prefixCls:t,className:o,closeIcon:n,closable:r,type:i,title:s,children:a,footer:c,style:l,classNames:d,styles:u,...m}=e,{getPrefixCls:f}=ql.useContext(Oe),{className:g,style:p,classNames:h,styles:y}=Ye("modal"),x=f(),b=t||f("modal"),S=oo(x),[v,C]=Qf(b,S),R=De(p),w=De(l),[I,P]=et([h,d],[y,R,u,w],{props:e}),N=`${b}-confirm`,E={};return i?E={closable:r??!1,title:"",footer:"",children:ql.createElement(Rv,{...e,prefixCls:b,confirmPrefixCls:N,rootPrefixCls:x,content:a})}:E={closable:r??!0,title:s,footer:c!==null&&ql.createElement(Zf,{...e}),children:a},ql.createElement(Od,{prefixCls:b,className:$(v,`${b}-pure-panel`,i&&N,i&&`${N}-${i}`,o,g,C,S,I.root),style:P.root,...m,closeIcon:Yf(b,n),closable:r,classNames:I,styles:P,...E})},ZP=ix(Cz);var io=M(require("react"));var Wr=M(require("react"));var wz=Wr.forwardRef((e,t)=>{let{afterClose:o,config:n,...r}=e,[i,s]=Wr.useState(!0),[a,c]=Wr.useState(n),{direction:l,getPrefixCls:d}=Wr.useContext(Oe),u=d("modal"),m=d(),f=()=>{o(),a.afterClose?.()},g=(...y)=>{s(!1),y.some(b=>b?.triggerCancel)&&a.onCancel?.(()=>{},...y.slice(1))};Wr.useImperativeHandle(t,()=>({destroy:g,update:y=>{c(x=>{let b=ct(y)?y(x):y;return{...x,...b}})}}));let p=a.okCancel??a.type==="confirm",[h]=Go("Modal",Xn.Modal);return Wr.createElement(eg,{prefixCls:u,rootPrefixCls:m,...a,close:g,open:i,afterClose:f,okText:Qt(a.okText,p?h?.okText:h?.justOkText),direction:a.direction||l,cancelText:Qt(a.cancelText,h?.cancelText),...r})}),QP=wz;var JP=0,Rz=io.memo(io.forwardRef((e,t)=>{let[o,n]=I1();return io.useImperativeHandle(t,()=>({patchElement:n}),[n]),io.createElement(io.Fragment,null,o)}));function Ez(){let e=io.useRef(null),[t,o]=io.useState([]);io.useEffect(()=>{t.length&&(Zt(t).forEach(s=>{s()}),o([]))},[t]);let n=io.useCallback(i=>function(a){JP+=1;let c=io.createRef(),l,d=new Promise(p=>{l=p}),u=!1,m,f=io.createElement(QP,{key:`modal-${JP}`,config:i(a),ref:c,afterClose:()=>{m?.()},isSilent:()=>u,onConfirm:p=>{l(p)}});return m=e.current?.patchElement(f),m&&pi.push(m),{destroy:()=>{function p(){c.current?.destroy()}c.current?p():o(h=>[].concat(Zt(h),[p]))},update:p=>{function h(){c.current?.update(p)}c.current?h():o(y=>[].concat(Zt(y),[h]))},then:p=>(u=!0,d.then(p))}},[]);return[io.useMemo(()=>({info:n(og),success:n(ng),error:n(rg),warning:n(tg),confirm:n(ig)}),[n]),io.createElement(Rz,{key:"modal-holder",ref:e})]}var eT=Ez;function tT(e){return Pa(tg(e))}var jr=Jf;jr.useModal=eT;jr.info=function(t){return Pa(og(t))};jr.success=function(t){return Pa(ng(t))};jr.error=function(t){return Pa(rg(t))};jr.warning=tT;jr.warn=tT;jr.confirm=function(t){return Pa(ig(t))};jr.destroyAll=function(){for(;pi.length;){let t=pi.pop();t&&t()}};jr.config=YP;jr._InternalPanelDoNotUseOrYouWillBeFired=ZP;var oT=jr;var en=M(require("react"));var sg=M(require("react"));var $z={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"},nT=$z;function Ev(){return Ev=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Ev.apply(this,arguments)}var Iz=(e,t)=>sg.createElement(Ot,Ev({},e,{ref:t,icon:nT})),Nz=sg.forwardRef(Iz),ag=Nz;var Ta=M(require("react"));var Tz=M(require("react"));var Fd=require("react"),$v={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,railColor:"#D9D9D9",railWidth:1,gapPosition:"bottom",loading:!1},Iv=()=>{let e=(0,Fd.useRef)([]),t=(0,Fd.useRef)(null);return(0,Fd.useEffect)(()=>{let o=Date.now(),n=!1;e.current.forEach(r=>{if(!r)return;n=!0;let i=r.style;i.transitionDuration=".3s, .3s, .3s, .06s",t.current&&o-t.current<100&&(i.transitionDuration="0s, 0s")}),n&&(t.current=Date.now())}),e.current};var Pz=M(require("react"));var zd=M(require("react"));var wr=M(require("react"));var rT=({bg:e,children:t})=>wr.createElement("div",{style:{width:"100%",height:"100%",background:e}},t);function iT(e,t){return Object.keys(e).map(o=>{let n=parseFloat(o),r=`${Math.floor(n*t)}%`;return`${e[o]} ${r}`})}var Mz=wr.forwardRef((e,t)=>{let{prefixCls:o,color:n,gradientId:r,radius:i,className:s,style:a,ptg:c,strokeLinecap:l,strokeWidth:d,size:u,gapDegree:m}=e,f=n&&typeof n=="object",g=f?"#FFF":void 0,p=u/2,h=wr.createElement("circle",{className:$(`${o}-circle-path`,s),r:i,cx:p,cy:p,stroke:g,strokeLinecap:l,strokeWidth:d,opacity:c===0?0:1,style:a,ref:t});if(!f)return h;let y=`${r}-conic`,x=m?`${180+m/2}deg`:"0deg",b=iT(n,(360-m)/360),S=iT(n,1),v=`conic-gradient(from ${x}, ${b.join(", ")})`,C=`linear-gradient(to ${m?"bottom":"top"}, ${S.join(", ")})`;return wr.createElement(wr.Fragment,null,wr.createElement("mask",{id:y},h),wr.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:`url(#${y})`},wr.createElement(rT,{bg:C},wr.createElement(rT,{bg:v}))))}),sT=Mz;var lg=(e,t,o,n,r,i,s,a,c,l,d=0)=>{let u=o/100*360*((360-i)/360),m=i===0?0:{bottom:0,top:180,left:90,right:-90}[s],f=(100-n)/100*t;c==="round"&&n!==100&&(f+=l/2,f>=t&&(f=t-.01));let g=100/2;return{stroke:typeof a=="string"?a:void 0,strokeDasharray:`${t}px ${e}`,strokeDashoffset:f+d,transform:`rotate(${r+u+m}deg)`,transformOrigin:`${g}px ${g}px`,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}};var aT=M(require("react")),lT=({id:e,loading:t})=>{if(!t)return{indeterminateStyleProps:{},indeterminateStyleAnimation:null};let o=`${e}-indeterminate-animate`;return{indeterminateStyleProps:{transform:"rotate(0deg)",animation:`${o} 1s linear infinite`},indeterminateStyleAnimation:aT.default.createElement("style",null,`@keyframes ${o} {
|
|
225
|
+
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},gz=e=>{let{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},hz=e=>{let{componentCls:t}=e,o=vv(e),n={...o};delete n.xs;let r=`--${t.replace(".","")}-`,i=Object.keys(n).map(s=>({[`@media (min-width: ${q(n[s])})`]:{width:`var(${r}${s}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(Zt(Object.keys(o).map((s,a)=>{let c=Object.keys(o)[a-1];return c?{[`${r}${s}-width`]:`var(${r}${c}-width)`}:null})),[{width:`var(${r}xs-width)`}],Zt(i))}}},Sv=e=>{let t=e.padding,o=e.fontSizeHeading5,n=e.lineHeightHeading5;return Fe(e,{modalHeaderHeight:e.calc(e.calc(n).mul(o).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},Cv=e=>({footerBg:"transparent",headerBg:"transparent",titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${q(e.paddingMD)} ${q(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${q(e.padding)} ${q(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${q(e.paddingXS)} ${q(e.padding)}`:0,footerBorderTop:e.wireframe?`${q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${q(e.borderRadiusLG)} ${q(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${q(e.padding*2)} ${q(e.padding*2)} ${q(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM,mask:!0}),Qf=Ze("Modal",e=>{let t=Sv(e);return[fz(t),gz(t),pz(t),Ti(t,"zoom"),hz(t)]},Cv,{unitless:{titleLineHeight:!0}});var wv,yz=e=>{wv={x:e.pageX,y:e.pageY},setTimeout(()=>{wv=null},100)};AP()&&document.documentElement.addEventListener("click",yz,!0);var bz=e=>{let{prefixCls:t,className:o,rootClassName:n,open:r,wrapClassName:i,centered:s,getContainer:a,style:c,width:l=520,footer:d,classNames:u,styles:m,children:f,loading:g,confirmLoading:p,zIndex:h,mousePosition:y,onOk:x,onCancel:b,okButtonProps:S,cancelButtonProps:v,destroyOnHidden:C,destroyOnClose:R,panelRef:w=null,closable:I,mask:P,modalRender:N,maskClosable:E,_semanticOmit:O,scrollLock:L,focusTriggerAfterClose:k,focusable:z,_renderSemanticContent:_,...T}=e,{getPopupContainer:D,getPrefixCls:F,direction:G,className:H,style:W,classNames:X,styles:B,centered:j,cancelButtonProps:U,okButtonProps:Z,mask:Y,focusable:K}=Ye("modal"),{modal:V}=Bn.useContext(Oe),[A,ee]=Bn.useMemo(()=>typeof I=="boolean"?[void 0,void 0]:[I?.afterClose,I?.onClose],[I]),Q=F("modal",t),te=F(),[le,re,ie]=E1(P,Y,Q,E),Se=dv({...K,...z},le,k),de=_e=>{p||(b?.(_e),ee?.())},Ee=_e=>{x?.(_e),ee?.()},ae=oo(Q),[Ne,he]=Qf(Q,ae),ne=$(i,{[`${Q}-centered`]:s??j,[`${Q}-wrap-rtl`]:G==="rtl"}),fe=d!==null&&!g?Bn.createElement(Zf,{...e,okButtonProps:{...Z,...S},onOk:Ee,cancelButtonProps:{...U,...v},onCancel:de}):null,[ce,we,Le,Ce]=w1(fb(e),fb(V),{closable:!0,closeIcon:Bn.createElement(Yn,{className:`${Q}-close-icon`}),closeIconRender:_e=>Yf(Q,_e)}),pe=ce?{disabled:Le,closeIcon:we,afterClose:A,...Ce}:!1,ue=N?_e=>Bn.createElement("div",{className:`${Q}-render`},N(_e)):void 0,se=`.${Q}-${N?"render":"container"}`,ve=KP(se),$e=Mt(w,ve),[Pe,Ge]=ti("Modal",h),qe={...e,width:l,panelRef:w,focusTriggerAfterClose:Se.focusTriggerAfterClose,focusable:Se,mask:le,maskClosable:ie,zIndex:Pe},[mt,Qe]=et([X,u,re],[B,m],{props:qe}),$t=O?Ke(mt,O):mt,wt=O?Ke(Qe,O):Qe,gt=_?_({classNames:mt,styles:Qe}):f,[ht,yt]=Bn.useMemo(()=>at(l)?[void 0,l]:[l,void 0],[l]),Rt=Bn.useMemo(()=>{let _e={};return yt&&Object.keys(yt).forEach(xt=>{let be=yt[xt];Nn(be)&&(_e[`--${Q}-${xt}-width`]=Ko(be)?`${be}px`:be)}),_e},[Q,yt]);return Bn.createElement(Vr,{form:!0,space:!0},Bn.createElement(cs.Provider,{value:Ge},Bn.createElement(OP,{width:ht,...T,zIndex:Pe,getContainer:a===void 0?D:a,prefixCls:Q,rootClassName:$(Ne,n,he,ae,$t.root),rootStyle:wt.root,footer:fe,visible:r,mousePosition:y??wv,onClose:de,closable:pe,closeIcon:we,transitionName:hr(te,"zoom",e.transitionName),maskTransitionName:hr(te,"fade",e.maskTransitionName),mask:le,maskClosable:ie,scrollLock:L,className:$(Ne,o,H),style:{...W,...c,...Rt},classNames:{...$t,wrapper:$($t.wrapper,ne)},styles:wt,panelRef:$e,destroyOnHidden:C??R,modalRender:ue,focusTriggerAfterClose:Se.focusTriggerAfterClose,focusTrap:Se.trap},g?Bn.createElement(jP,{active:!0,title:!1,paragraph:{rows:4},className:`${Q}-body-skeleton`}):gt)))},Jf=bz;var xz=e=>{let{componentCls:t,titleFontSize:o,titleLineHeight:n,modalConfirmIconSize:r,fontSize:i,lineHeight:s,modalTitleHeight:a,fontHeight:c,confirmBodyPadding:l}=e,d=`${t}-confirm`;return{[d]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${d}-body-wrapper`]:{...da()},[`&${t} ${t}-body`]:{padding:l},[`${d}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:r,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(r).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(a).sub(r).equal()).div(2).equal()}},[`${d}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${q(e.marginSM)})`},[`${d}-body-no-icon ${d}-paragraph`]:{maxWidth:"100%"},[`${e.iconCls} + ${d}-paragraph`]:{maxWidth:`calc(100% - ${q(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${d}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:o,lineHeight:n},[`${d}-container`]:{color:e.colorText,fontSize:i,lineHeight:s},[`${d}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${d}-error ${d}-body > ${e.iconCls}`]:{color:e.colorError},[`${d}-warning ${d}-body > ${e.iconCls},
|
|
226
|
+
${d}-confirm ${d}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${d}-info ${d}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${d}-success ${d}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},qP=Jc(["Modal","confirm"],e=>{let t=Sv(e);return xz(t)},Cv,{order:-1e3});var vz=["body"],Rv=e=>{let{prefixCls:t,icon:o,okText:n,cancelText:r,confirmPrefixCls:i,type:s,okCancel:a,footer:c,locale:l,autoFocusButton:d,focusable:u,contentClassName:m,contentStyle:f,...g}=e,{infoIcon:p,successIcon:h,errorIcon:y,warningIcon:x}=Ye("modal"),b=o;if(o===void 0)switch(s){case"info":b=Qt(p,Vt.createElement(SP,null));break;case"success":b=Qt(h,Vt.createElement(_f,null));break;case"error":b=Qt(y,Vt.createElement(ls,null));break;default:b=Qt(x,Vt.createElement(xP,null))}let S=a??s==="confirm",v=Vt.useMemo(()=>{let _=u?.autoFocusButton||d;return _||_===null?_:"ok"},[d,u?.autoFocusButton]),[C]=Go("Modal"),R=l||C,w=Qt(n,S?R?.okText:R?.justOkText),I=Qt(r,R?.cancelText),{closable:P}=g,{onClose:N}=at(P)?P:{},E=Vt.useMemo(()=>({autoFocusButton:v,cancelTextLocale:I,okTextLocale:w,mergedOkCancel:S,onClose:N,...g}),[v,I,w,S,N,g]),O=Vt.createElement(Vt.Fragment,null,Vt.createElement(ov,null),Vt.createElement(nv,null)),L=lo(e.title),k=lo(b),z=`${i}-body`;return Vt.createElement("div",{className:`${i}-body-wrapper`},Vt.createElement("div",{className:$(z,{[`${z}-has-title`]:L,[`${z}-no-icon`]:!k})},b,Vt.createElement("div",{className:`${i}-paragraph`},L&&Vt.createElement("span",{className:`${i}-title`},e.title),Vt.createElement("div",{className:$(`${i}-content`,m),style:f},e.content))),c===void 0||dt(c)?Vt.createElement(Hf,{value:E},Vt.createElement("div",{className:`${i}-btns`},dt(c)?c(O,{OkBtn:nv,CancelBtn:ov}):O)):c,Vt.createElement(qP,{prefixCls:t}))},Sz=e=>{let{close:t,zIndex:o,maskStyle:n,direction:r,prefixCls:i,wrapClassName:s,rootPrefixCls:a,bodyStyle:c,closable:l=!1,onConfirm:d,styles:u,title:m,mask:f,maskClosable:g,okButtonProps:p,cancelButtonProps:h}=e,{cancelButtonProps:y,okButtonProps:x}=Ye("modal"),b=`${i}-confirm`,S=e.width||416,v=e.style||{},C=dt(u)?E=>({body:c,mask:n,...u(E)}):{body:c,mask:n,...u},R=Ke(e,["bodyStyle","maskStyle"]),w=$(b,`${b}-${e.type}`,{[`${b}-rtl`]:r==="rtl"},e.className),I=Vt.useMemo(()=>{let E=dp(f,g);return E.closable??(E.closable=!1),E},[f,g]),[,P]=Gt(),N=Vt.useMemo(()=>o!==void 0?o:P.zIndexPopupBase+gb,[o,P]);return Vt.createElement(Jf,{...R,className:w,wrapClassName:$({[`${b}-centered`]:!!e.centered},s),onCancel:()=>{t?.({triggerCancel:!0}),d?.(!1)},title:m,footer:null,transitionName:hr(a||"","zoom",e.transitionName),maskTransitionName:hr(a||"","fade",e.maskTransitionName),mask:I,style:v,styles:C,width:S,zIndex:N,closable:l,_semanticOmit:vz,_renderSemanticContent:({classNames:E,styles:O})=>Vt.createElement(Rv,{...e,confirmPrefixCls:b,okButtonProps:{...x,...p},cancelButtonProps:{...y,...h},contentClassName:E.body,contentStyle:O.body})})},Cz=e=>{let{rootPrefixCls:t,iconPrefixCls:o,direction:n,theme:r}=e;return Vt.createElement(as,{prefixCls:t,iconPrefixCls:o,direction:n,theme:r},Vt.createElement(Sz,{...e}))},eg=Cz;var wz=[],pi=wz;var XP="";function YP(){return XP}var Rz=e=>{let{prefixCls:t,getContainer:o,direction:n}=e,r=gm(),i=(0,Gl.useContext)(Oe),s=YP()||i.getPrefixCls(),a=t||`${s}-modal`,c=o;return c===!1&&(c=void 0),Gl.default.createElement(eg,{...e,rootPrefixCls:s,prefixCls:a,iconPrefixCls:i.iconPrefixCls,theme:i.theme,direction:n??i.direction,locale:i.locale?.Modal??r,getContainer:c})};function Pa(e){let t=QE(),o=document.createDocumentFragment(),n={...e,close:a,open:!0},r;function i(...l){l.some(u=>u?.triggerCancel)&&e.onCancel?.(()=>{},...l.slice(1));for(let u=0;u<pi.length;u++)if(pi[u]===a){pi.splice(u,1);break}Ic(o).then(()=>{})}let s=l=>{clearTimeout(r),r=setTimeout(()=>{let d=t.getPrefixCls(void 0,YP()),u=t.getIconPrefixCls(),m=t.getTheme(),f=Gl.default.createElement(Rz,{...l});$c(Gl.default.createElement(as,{prefixCls:d,iconPrefixCls:u,theme:m},dt(t.holderRender)?t.holderRender(f):f),o)})};function a(...l){n={...n,open:!1,afterClose:()=>{dt(e.afterClose)&&e.afterClose(),i.apply(this,l)}},s(n)}function c(l){dt(l)?n=l(n):n={...n,...l},s(n)}return s(n),pi.push(a),{destroy:a,update:c}}function tg(e){return{...e,type:"warning"}}function og(e){return{...e,type:"info"}}function ng(e){return{...e,type:"success"}}function rg(e){return{...e,type:"error"}}function ig(e){return{...e,type:"confirm"}}function ZP({rootPrefixCls:e}){XP=e}var ql=M(require("react"));var Ez=e=>{let{prefixCls:t,className:o,closeIcon:n,closable:r,type:i,title:s,children:a,footer:c,style:l,classNames:d,styles:u,...m}=e,{getPrefixCls:f}=ql.useContext(Oe),{className:g,style:p,classNames:h,styles:y}=Ye("modal"),x=f(),b=t||f("modal"),S=oo(x),[v,C]=Qf(b,S),R=De(p),w=De(l),[I,P]=et([h,d],[y,R,u,w],{props:e}),N=`${b}-confirm`,E={};return i?E={closable:r??!1,title:"",footer:"",children:ql.createElement(Rv,{...e,prefixCls:b,confirmPrefixCls:N,rootPrefixCls:x,content:a})}:E={closable:r??!0,title:s,footer:c!==null&&ql.createElement(Zf,{...e}),children:a},ql.createElement(Od,{prefixCls:b,className:$(v,`${b}-pure-panel`,i&&N,i&&`${N}-${i}`,o,g,C,S,I.root),style:P.root,...m,closeIcon:Yf(b,n),closable:r,classNames:I,styles:P,...E})},QP=ix(Ez);var io=M(require("react"));var Wr=M(require("react"));var $z=Wr.forwardRef((e,t)=>{let{afterClose:o,config:n,...r}=e,[i,s]=Wr.useState(!0),[a,c]=Wr.useState(n),{direction:l,getPrefixCls:d}=Wr.useContext(Oe),u=d("modal"),m=d(),f=()=>{o(),a.afterClose?.()},g=(...y)=>{s(!1),y.some(b=>b?.triggerCancel)&&a.onCancel?.(()=>{},...y.slice(1))};Wr.useImperativeHandle(t,()=>({destroy:g,update:y=>{c(x=>{let b=dt(y)?y(x):y;return{...x,...b}})}}));let p=a.okCancel??a.type==="confirm",[h]=Go("Modal",Xn.Modal);return Wr.createElement(eg,{prefixCls:u,rootPrefixCls:m,...a,close:g,open:i,afterClose:f,okText:Qt(a.okText,p?h?.okText:h?.justOkText),direction:a.direction||l,cancelText:Qt(a.cancelText,h?.cancelText),...r})}),JP=$z;var eT=0,Iz=io.memo(io.forwardRef((e,t)=>{let[o,n]=N1();return io.useImperativeHandle(t,()=>({patchElement:n}),[n]),io.createElement(io.Fragment,null,o)}));function Nz(){let e=io.useRef(null),[t,o]=io.useState([]);io.useEffect(()=>{t.length&&(Zt(t).forEach(s=>{s()}),o([]))},[t]);let n=io.useCallback(i=>function(a){eT+=1;let c=io.createRef(),l,d=new Promise(p=>{l=p}),u=!1,m,f=io.createElement(JP,{key:`modal-${eT}`,config:i(a),ref:c,afterClose:()=>{m?.()},isSilent:()=>u,onConfirm:p=>{l(p)}});return m=e.current?.patchElement(f),m&&pi.push(m),{destroy:()=>{function p(){c.current?.destroy()}c.current?p():o(h=>[].concat(Zt(h),[p]))},update:p=>{function h(){c.current?.update(p)}c.current?h():o(y=>[].concat(Zt(y),[h]))},then:p=>(u=!0,d.then(p))}},[]);return[io.useMemo(()=>({info:n(og),success:n(ng),error:n(rg),warning:n(tg),confirm:n(ig)}),[n]),io.createElement(Iz,{key:"modal-holder",ref:e})]}var tT=Nz;function oT(e){return Pa(tg(e))}var jr=Jf;jr.useModal=tT;jr.info=function(t){return Pa(og(t))};jr.success=function(t){return Pa(ng(t))};jr.error=function(t){return Pa(rg(t))};jr.warning=oT;jr.warn=oT;jr.confirm=function(t){return Pa(ig(t))};jr.destroyAll=function(){for(;pi.length;){let t=pi.pop();t&&t()}};jr.config=ZP;jr._InternalPanelDoNotUseOrYouWillBeFired=QP;var nT=jr;var en=M(require("react"));var sg=M(require("react"));var Pz={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"},rT=Pz;function Ev(){return Ev=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Ev.apply(this,arguments)}var Tz=(e,t)=>sg.createElement(Ot,Ev({},e,{ref:t,icon:rT})),Mz=sg.forwardRef(Tz),ag=Mz;var Ta=M(require("react"));var Az=M(require("react"));var Fd=require("react"),$v={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,railColor:"#D9D9D9",railWidth:1,gapPosition:"bottom",loading:!1},Iv=()=>{let e=(0,Fd.useRef)([]),t=(0,Fd.useRef)(null);return(0,Fd.useEffect)(()=>{let o=Date.now(),n=!1;e.current.forEach(r=>{if(!r)return;n=!0;let i=r.style;i.transitionDuration=".3s, .3s, .3s, .06s",t.current&&o-t.current<100&&(i.transitionDuration="0s, 0s")}),n&&(t.current=Date.now())}),e.current};var Oz=M(require("react"));var zd=M(require("react"));var wr=M(require("react"));var iT=({bg:e,children:t})=>wr.createElement("div",{style:{width:"100%",height:"100%",background:e}},t);function sT(e,t){return Object.keys(e).map(o=>{let n=parseFloat(o),r=`${Math.floor(n*t)}%`;return`${e[o]} ${r}`})}var kz=wr.forwardRef((e,t)=>{let{prefixCls:o,color:n,gradientId:r,radius:i,className:s,style:a,ptg:c,strokeLinecap:l,strokeWidth:d,size:u,gapDegree:m}=e,f=n&&typeof n=="object",g=f?"#FFF":void 0,p=u/2,h=wr.createElement("circle",{className:$(`${o}-circle-path`,s),r:i,cx:p,cy:p,stroke:g,strokeLinecap:l,strokeWidth:d,opacity:c===0?0:1,style:a,ref:t});if(!f)return h;let y=`${r}-conic`,x=m?`${180+m/2}deg`:"0deg",b=sT(n,(360-m)/360),S=sT(n,1),v=`conic-gradient(from ${x}, ${b.join(", ")})`,C=`linear-gradient(to ${m?"bottom":"top"}, ${S.join(", ")})`;return wr.createElement(wr.Fragment,null,wr.createElement("mask",{id:y},h),wr.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:`url(#${y})`},wr.createElement(iT,{bg:C},wr.createElement(iT,{bg:v}))))}),aT=kz;var lg=(e,t,o,n,r,i,s,a,c,l,d=0)=>{let u=o/100*360*((360-i)/360),m=i===0?0:{bottom:0,top:180,left:90,right:-90}[s],f=(100-n)/100*t;c==="round"&&n!==100&&(f+=l/2,f>=t&&(f=t-.01));let g=100/2;return{stroke:typeof a=="string"?a:void 0,strokeDasharray:`${t}px ${e}`,strokeDashoffset:f+d,transform:`rotate(${r+u+m}deg)`,transformOrigin:`${g}px ${g}px`,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}};var lT=M(require("react")),cT=({id:e,loading:t})=>{if(!t)return{indeterminateStyleProps:{},indeterminateStyleAnimation:null};let o=`${e}-indeterminate-animate`;return{indeterminateStyleProps:{transform:"rotate(0deg)",animation:`${o} 1s linear infinite`},indeterminateStyleAnimation:lT.default.createElement("style",null,`@keyframes ${o} {
|
|
227
227
|
0% { transform: rotate(0deg); }
|
|
228
228
|
100% { transform: rotate(360deg); }
|
|
229
|
-
}`)}};function Nv(){return Nv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Nv.apply(this,arguments)}function cT(e){let t=e??[];return Array.isArray(t)?t:[t]}var Oz=e=>{let{id:t,prefixCls:o,classNames:n={},styles:r={},steps:i,strokeWidth:s,railWidth:a,gapDegree:c=0,gapPosition:l,railColor:d,strokeLinecap:u,style:m,className:f,strokeColor:g,percent:p,loading:h,...y}={...$v,...e},x=100/2,b=Co(t),S=`${b}-gradient`,v=x-s/2,C=Math.PI*2*v,R=c>0?90+c/2:-90,w=C*((360-c)/360),{count:I,gap:P}=typeof i=="object"?i:{count:i,gap:2},N=cT(p),E=cT(g),O=E.find(V=>V&&typeof V=="object"),A=O&&typeof O=="object"?"butt":u,{indeterminateStyleProps:F,indeterminateStyleAnimation:_}=lT({id:b,loading:h}),T=lg(C,w,0,100,R,c,l,d,A,s),L=Iv(),z=()=>{let V=0;return N.map((j,Y)=>{let B=E[Y]||E[E.length-1],U=lg(C,w,V,j,R,c,l,B,A,s);return V+=j,zd.createElement(sT,{key:Y,color:B,ptg:j,radius:v,prefixCls:o,gradientId:S,className:n.track,style:{...U,...F,...r.track},strokeLinecap:A,strokeWidth:s,gapDegree:c,ref:K=>{L[Y]=K},size:100})}).reverse()},G=()=>{let V=Math.round(I*(N[0]/100)),j=100/I,Y=0;return new Array(I).fill(null).map((B,U)=>{let K=U<=V-1?E[0]:d,Z=K&&typeof K=="object"?`url(#${S})`:void 0,X=lg(C,w,Y,j,R,c,l,K,"butt",s,P);return Y+=(w-X.strokeDashoffset+P)*100/w,zd.createElement("circle",{key:U,className:$(`${o}-circle-path`,n.track),r:v,cx:x,cy:x,stroke:Z,strokeWidth:s,opacity:1,style:{...X,...r.track},ref:k=>{L[U]=k}})})};return zd.createElement("svg",Nv({className:$(`${o}-circle`,n.root,f),viewBox:`0 0 ${100} ${100}`,style:{...r.root,...m},id:t,role:"presentation"},y),!I&&zd.createElement("circle",{className:$(`${o}-circle-rail`,n.rail),r:v,cx:x,cy:x,stroke:d,strokeLinecap:A,strokeWidth:a||s,style:{...T,...r.rail}}),I?G():z(),_)},Pv=Oz;function Hi(e){return!e||e<0?0:e>100?100:e}function Xl({success:e}){let t;return e&&"percent"in e&&(t=e.percent),t}var dT=({percent:e,success:t})=>{let o=Hi(Xl({success:t}));return[o,Hi(Hi(e)-o)]},uT=({success:e={},strokeColor:t})=>{let{strokeColor:o}=e;return[o||vi.green,t||null]},ks=(e,t,o)=>{let n=-1,r=-1;if(t==="step"){let i=o.steps,s=o.strokeWidth;typeof e=="string"||typeof e>"u"?(n=e==="small"?2:14,r=s??8):Ko(e)?[n,r]=[e,e]:[n=14,r=8]=Array.isArray(e)?e:[e.width,e.height],n*=i}else if(t==="line"){let i=o?.strokeWidth;typeof e=="string"||typeof e>"u"?r=i||(e==="small"?6:8):Ko(e)?[n,r]=[e,e]:[n=-1,r=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[n,r]=e==="small"?[60,60]:[120,120]:Ko(e)?[n,r]=[e,e]:Array.isArray(e)&&(n=e[0]??e[1]??120,r=e[0]??e[1]??120));return[n,r]};var Az=3,kz=e=>Az/e*100,mT=["root","body","indicator"],Lz=e=>{let{prefixCls:t,classNames:o,styles:n,railColor:r,trailColor:i,strokeLinecap:s="round",gapPosition:a,gapPlacement:c,gapDegree:l,width:d=120,type:u,children:m,success:f,size:g=d,steps:p}=e,{direction:h}=Ye("progress"),y=r??i,[x,b]=ks(g,"circle"),{strokeWidth:S}=e;S===void 0&&(S=Math.max(kz(x),6));let v={width:x,height:b,fontSize:x*.15+6},C=Ta.useMemo(()=>{if(l||l===0)return l;if(u==="dashboard")return 75},[l,u]),R=dT(e),w=Ta.useMemo(()=>{let A=(c??a)||u==="dashboard"&&"bottom"||void 0,F=h==="rtl";switch(A){case"start":return F?"right":"left";case"end":return F?"left":"right";default:return A}},[h,c,a,u]),I=at(e.strokeColor),P=uT({success:f,strokeColor:e.strokeColor}),N=$(`${t}-body`,{[`${t}-circle-gradient`]:I},o.body),E=Ta.createElement(Pv,{steps:p,percent:p?R[1]:R,strokeWidth:S,railWidth:S,strokeColor:p?P[1]:P,strokeLinecap:s,railColor:y,prefixCls:t,gapDegree:C,gapPosition:w,classNames:Ke(o,mT),styles:Ke(n,mT)}),O=x<=20,D=Ta.createElement("div",{className:N,style:{...v,...n.body}},E,!O&&m);return O?Ta.createElement(Hl,{title:m},D):D},pT=Lz;var Bd=M(require("react"));var dg="--progress-line-stroke-color",Dz=e=>{let t=e?"100%":"-100%";return new nt(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},_z=e=>{let{componentCls:t,iconCls:o}=e;return{[t]:{...Et(e),display:"inline-flex","&-rtl":{direction:"rtl"},[`${t}-indicator`]:{color:e.colorText,lineHeight:1,whiteSpace:"nowrap",verticalAlign:"middle",wordBreak:"normal",[o]:{fontSize:e.fontSize}},[`&${t}-status-exception`]:{[`${t}-indicator`]:{color:e.colorError}},[`&${t}-status-success`]:{[`${t}-indicator`]:{color:e.colorSuccess}}}}},Fz=e=>{let{componentCls:t}=e;return{[`${t}-line`]:{position:"relative",width:"100%",fontSize:e.fontSize,[`${t}-body`]:{display:"inline-flex",alignItems:"center",width:"100%",gap:e.marginXS},[`${t}-rail`]:{flex:"auto",background:e.remainingColor,borderRadius:e.lineBorderRadius,position:"relative",width:"100%",overflow:"hidden"},[`&${t}-status-active`]:{[`${t}-track:after`]:{content:'""',position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:"inherit",opacity:0,animationName:Dz(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite"}},[`${t}-track`]:{position:"absolute",insetInlineStart:0,insetBlock:0,borderRadius:"inherit",background:e.defaultColor,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,minWidth:"max-content",display:"flex",alignItems:"center","&-success":{background:e.colorSuccess}},[`&${t}-status-exception`]:{[`${t}-track`]:{background:e.colorError}},[`&${t}-status-success`]:{[`${t}-track`]:{background:e.colorSuccess}},[`${t}-indicator-outer`]:{[`&${t}-indicator-start`]:{order:-1}},[`${t}-body-layout-bottom`]:{flexDirection:"column",alignItems:"center",gap:e.marginXXS},[`${t}-indicator${t}-indicator-inner`]:{color:e.colorWhite,paddingInline:e.paddingXXS,width:"100%",display:"flex",justifyContent:"center",[`&${t}-indicator-end`]:{justifyContent:"end"},[`&${t}-indicator-start`]:{justifyContent:"start"},[`&${t}-indicator-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}}},zz=e=>{let{componentCls:t,iconCls:o}=e;return{[`${t}-circle`]:{[`${t}-circle-rail`]:{stroke:e.remainingColor},[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-body`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`${t}-indicator`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[o]:{fontSize:e.circleIconFontSize}},[`&${t}-status-exception`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}}},[`&${t}-status-success`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},Bz=e=>{let{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-body":{display:"flex",flexDirection:"row",alignItems:"center",gap:e.progressStepMarginInlineEnd,[`${t}-indicator`]:{marginInlineStart:e.marginXS}},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},Hz=e=>{let{componentCls:t,iconCls:o}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-indicator ${o}`]:{fontSize:e.fontSizeSM}}}},Vz=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),fT=Ze("Progress",e=>{let t=e.calc(e.marginXXS).div(2).equal(),o=Fe(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[_z(o),Fz(o),zz(o),Bz(o),Hz(o)]},Vz);var Wz=e=>{let t=[];return Object.keys(e).forEach(o=>{let n=Number.parseFloat(o.replace(/%/g,""));Number.isNaN(n)||t.push({key:n,value:e[o]})}),t=t.sort((o,n)=>o.key-n.key),t.map(({key:o,value:n})=>`${n} ${o}%`).join(", ")},jz=(e,t)=>{let{from:o=vi.blue,to:n=vi.blue,direction:r=t==="rtl"?"to left":"to right",...i}=e;if(Object.keys(i).length!==0){let a=Wz(i),c=`linear-gradient(${r}, ${a})`;return{background:c,[dg]:c}}let s=`linear-gradient(${r}, ${o}, ${n})`;return{background:s,[dg]:s}},Uz=e=>{let{prefixCls:t,classNames:o,styles:n,direction:r,percent:i,size:s,strokeWidth:a,strokeColor:c,strokeLinecap:l="round",children:d,railColor:u,trailColor:m,percentPosition:f,success:g}=e,{align:p,type:h}=f,y=u??m,x=l==="square"||l==="butt"?0:void 0,b=s??[-1,a||(s==="small"?6:8)],[S,v]=ks(b,"line",{strokeWidth:a}),C={backgroundColor:y||void 0,borderRadius:x,height:v},R=`${t}-track`,w=c&&typeof c!="string"?jz(c,r):{[dg]:c,background:c},I={width:`${Hi(i)}%`,height:v,borderRadius:x,...w},P=Xl(e),N={width:`${Hi(P)}%`,height:v,borderRadius:x,backgroundColor:g?.strokeColor};return Bd.createElement("div",{className:$(`${t}-body`,o.body,{[`${t}-body-layout-bottom`]:p==="center"&&h==="outer"}),style:{width:S>0?S:"100%",...n.body}},Bd.createElement("div",{className:$(`${t}-rail`,o.rail),style:{...C,...n.rail}},Bd.createElement("div",{className:$(R,o.track),style:{...I,...n.track}},h==="inner"&&d),P!==void 0&&Bd.createElement("div",{className:$(R,`${R}-success`,o.track),style:{...N,...n.track}})),h==="outer"&&d)},gT=Uz;var Tv=M(require("react"));var Kz=e=>{let{classNames:t,styles:o,size:n,steps:r,rounding:i=Math.round,percent:s=0,strokeWidth:a=8,strokeColor:c,railColor:l,trailColor:d,prefixCls:u,children:m}=e,f=i(r*(s/100)),p=n??[n==="small"?2:14,a],[h,y]=ks(p,"step",{steps:r,strokeWidth:a}),x=h/r,b=Array.from({length:r}),S=l??d;for(let v=0;v<r;v++){let C=Array.isArray(c)?c[v]:c;b[v]=Tv.createElement("div",{key:v,className:$(`${u}-steps-item`,{[`${u}-steps-item-active`]:v<=f-1},t.track),style:{backgroundColor:v<=f-1?C:S,width:x,height:y,...o.track}})}return Tv.createElement("div",{className:$(`${u}-steps-body`,t.body),style:o.body},b,m)},hT=Kz;var Gz=["normal","exception","active","success"],qz=en.forwardRef((e,t)=>{let{prefixCls:o,className:n,rootClassName:r,classNames:i,styles:s,steps:a,strokeColor:c,percent:l=0,size:d="medium",showInfo:u=!0,type:m="line",status:f,format:g,style:p,percentPosition:h={},...y}=e,{align:x="end",type:b="outer"}=h,S=Array.isArray(c)?c[0]:c,v=typeof c=="string"||Array.isArray(c)?c:void 0,C=en.useMemo(()=>{if(S){let X=typeof S=="string"?S:Object.values(S)[0];return new pt(X).isLight()}return!1},[c]),R=en.useMemo(()=>{let X=Xl(e);return Number.parseInt(X!==void 0?(X??0)?.toString():(l??0)?.toString(),10)},[l,e.success]),w=en.useMemo(()=>!Gz.includes(f)&&R>=100?"success":f||"normal",[f,R]),{getPrefixCls:I,direction:P,className:N,style:E,classNames:O,styles:D}=Ye("progress"),A=I("progress",o),[F,_]=fT(A),T={...e,percent:l,type:m,size:d,showInfo:u,percentPosition:h},L=De(E),z=De(p),[G,V]=et([O,i],[D,L,s,z],{props:T}),j=m==="line",Y=j&&!a,B=en.useMemo(()=>{if(!u)return null;let X=Xl(e),k,W=g||(ee=>`${ee}%`),H=j&&C&&b==="inner";return b==="inner"||g||w!=="exception"&&w!=="success"?k=W(Hi(l),Hi(X)):w==="exception"?k=j?en.createElement(ls,null):en.createElement(Yn,null):w==="success"&&(k=j?en.createElement(_f,null):en.createElement(ag,null)),en.createElement("span",{className:$(`${A}-indicator`,{[`${A}-indicator-bright`]:H,[`${A}-indicator-${x}`]:Y,[`${A}-indicator-${b}`]:Y},G.indicator),style:V.indicator,title:typeof k=="string"?k:void 0},k)},[u,l,R,w,m,A,g,j,C,b,x,Y,G.indicator,V.indicator]),U={...e,classNames:G,styles:V},K;m==="line"?K=a?en.createElement(hT,{...U,strokeColor:v,prefixCls:A,steps:at(a)?a.count:a},B):en.createElement(gT,{...U,strokeColor:S,prefixCls:A,direction:P,percentPosition:{align:x,type:b}},B):(m==="circle"||m==="dashboard")&&(K=en.createElement(pT,{...U,strokeColor:S,prefixCls:A,progressStatus:w},B));let Z=$(A,`${A}-status-${w}`,{[`${A}-${m==="dashboard"&&"circle"||m}`]:m!=="line",[`${A}-inline-circle`]:m==="circle"&&ks(d,"circle")[0]<=20,[`${A}-line`]:Y,[`${A}-line-align-${x}`]:Y,[`${A}-line-position-${b}`]:Y,[`${A}-steps`]:a,[`${A}-show-info`]:u,[`${A}-small`]:d==="small",[`${A}-rtl`]:P==="rtl"},N,n,r,G.root,F,_);return en.createElement("div",{ref:t,style:V.root,className:Z,role:"progressbar","aria-valuenow":R,"aria-valuemin":0,"aria-valuemax":100,...Ke(y,["railColor","trailColor","strokeWidth","width","gapDegree","gapPosition","gapPlacement","strokeLinecap","success"])},K)}),yT=qz;var bT=yT;var Er=M(require("react"));var ko=M(require("react"));var Rr=M(require("react")),xT=(e,t)=>{if(!e)return null;let o={left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth,top:e.offsetTop,bottom:e.parentElement.clientHeight-e.clientHeight-e.offsetTop,height:e.clientHeight};return t?{left:0,right:0,width:0,top:o.top,bottom:o.bottom,height:o.height}:{left:o.left,right:o.right,width:o.width,top:0,bottom:0,height:0}},fi=e=>e!==void 0?`${e}px`:void 0;function Mv(e){let{prefixCls:t,containerRef:o,value:n,getValueIndex:r,motionName:i,onMotionStart:s,onMotionEnd:a,direction:c,vertical:l=!1}=e,d=Rr.useRef(null),[u,m]=Rr.useState(n),f=R=>{let w=r(R),I=o.current?.querySelectorAll(`.${t}-item`)[w];return I?.offsetParent&&I},[g,p]=Rr.useState(null),[h,y]=Rr.useState(null);it(()=>{if(u!==n){let R=f(u),w=f(n),I=xT(R,l),P=xT(w,l);m(n),p(I),y(P),R&&w?s():a()}},[n]);let x=Rr.useMemo(()=>fi(l?g?.top??0:c==="rtl"?-g?.right:g?.left),[l,c,g]),b=Rr.useMemo(()=>fi(l?h?.top??0:c==="rtl"?-h?.right:h?.left),[l,c,h]),S=()=>l?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"},v=()=>l?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"},C=()=>{p(null),y(null),a()};return!g||!h?null:Rr.createElement(po,{visible:!0,motionName:i,motionAppear:!0,onAppearStart:S,onAppearActive:v,onVisibleChanged:C},({className:R,style:w},I)=>{let P={...w,"--thumb-start-left":x,"--thumb-start-width":fi(g?.width),"--thumb-active-left":b,"--thumb-active-width":fi(h?.width),"--thumb-start-top":x,"--thumb-start-height":fi(g?.height),"--thumb-active-top":b,"--thumb-active-height":fi(h?.height)},N={ref:Mt(d,I),style:P,className:$(`${t}-thumb`,R)};return Rr.createElement("div",N)})}function ug(){return ug=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},ug.apply(this,arguments)}function Xz(e){if(typeof e.title<"u")return e.title;if(typeof e.label!="object")return e.label?.toString()}function Yz(e){return e.map(t=>{if(typeof t=="object"&&t!==null){let o=Xz(t);return{...t,value:t.value,title:o}}return{label:t?.toString(),title:t?.toString(),value:t}})}var Zz=({prefixCls:e,className:t,style:o,styles:n,classNames:r,data:i,disabled:s,checked:a,label:c,title:l,value:d,name:u,onChange:m,onFocus:f,onBlur:g,onKeyDown:p,onKeyUp:h,onMouseDown:y,itemRender:x=b=>b})=>{let b=v=>{s||m(v,d)},S=ko.createElement("label",{className:$(t,{[`${e}-item-disabled`]:s}),style:o,onMouseDown:y},ko.createElement("input",{name:u,className:`${e}-item-input`,type:"radio",disabled:s,checked:a,onChange:b,onFocus:f,onBlur:g,onKeyDown:p,onKeyUp:h}),ko.createElement("div",{className:$(`${e}-item-label`,r?.label),title:l,style:n?.label},c));return x(S,{item:i})},Qz=ko.forwardRef((e,t)=>{let{prefixCls:o="rc-segmented",direction:n,vertical:r,options:i=[],disabled:s,defaultValue:a,value:c,name:l,onChange:d,className:u="",style:m,styles:f,classNames:g,motionName:p="thumb-motion",itemRender:h,...y}=e,x=ko.useRef(null),b=ko.useMemo(()=>Mt(x,t),[x,t]),S=ko.useMemo(()=>Yz(i),[i]),[v,C]=st(a??S[0]?.value,c),[R,w]=ko.useState(!1),I=(V,j)=>{C(j),d?.(j)},P=Ke(y,["children"]),[N,E]=ko.useState(!1),[O,D]=ko.useState(!1),A=()=>{D(!0)},F=()=>{D(!1)},_=()=>{E(!1)},T=V=>{V.key==="Tab"&&E(!0)},L=V=>{let j=S.filter(Z=>Z.value===v||!Z.disabled),Y=j.findIndex(Z=>Z.value===v),B=j.length,U=(Y+V+B)%B,K=j[U];K&&K.value!==v&&(C(K.value),d?.(K.value))},z=V=>{switch(V.key){case"ArrowLeft":case"ArrowUp":L(-1);break;case"ArrowRight":case"ArrowDown":L(1);break}},G=V=>{let{value:j,disabled:Y}=V;return ko.createElement(Zz,ug({},V,{name:l,data:V,itemRender:h,key:j,prefixCls:o,className:$(V.className,`${o}-item`,g?.item,{[`${o}-item-selected`]:j===v&&!R,[`${o}-item-selected-text`]:j===v,[`${o}-item-focused`]:O&&N&&j===v}),style:f?.item,classNames:g,styles:f,checked:j===v,onChange:I,onFocus:A,onBlur:F,onKeyDown:z,onKeyUp:T,onMouseDown:_,disabled:!!s||!!Y}))};return ko.createElement("div",ug({role:"radiogroup","aria-label":"segmented control",tabIndex:s?void 0:0,"aria-orientation":r?"vertical":"horizontal",style:m},P,{className:$(o,{[`${o}-rtl`]:n==="rtl",[`${o}-disabled`]:s,[`${o}-vertical`]:r},u),ref:b}),ko.createElement("div",{className:`${o}-group`},ko.createElement(Mv,{vertical:r,prefixCls:o,value:v,containerRef:x,motionName:`${o}-${p}`,direction:n,getValueIndex:V=>S.findIndex(j=>j.value===V),onMotionStart:()=>{w(!0)},onMotionEnd:()=>{w(!1)}}),S.map(G)))}),Jz=Qz,vT=Jz;function ST(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}var CT=e=>({background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}),e4={overflow:"hidden",...Xo},t4=e=>{let{componentCls:t,motionDurationSlow:o,motionEaseInOut:n,motionDurationMid:r}=e,i=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),s=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),a=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:{...Et(e),display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${r}`,...ln(e),[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${q(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${r}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":{...CT(e),color:e.itemSelectedColor},"&-selected-text":{color:e.itemSelectedColor,transition:`color ${r}`},"&-focused":An(e),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",opacity:0,pointerEvents:"none",transition:["opacity","background-color"].map(c=>`${c} ${r}`).join(", ")},[`&:not(${t}-item-selected):not(${t}-item-selected-text):not(${t}-item-disabled)`]:{"&:hover, &:active":{color:e.itemHoverColor},"&:hover::after":{opacity:1,backgroundColor:e.itemHoverBg},"&:active::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":{minHeight:i,lineHeight:q(i),padding:`0 ${q(e.segmentedPaddingHorizontal)}`,...e4},"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-icon > svg":{display:"inline-block",verticalAlign:"middle",marginBlockEnd:"0.2em"},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:{...CT(e),position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${q(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}},[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:s,lineHeight:q(s),padding:`0 ${q(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:a,lineHeight:q(a),padding:`0 ${q(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...ST(`&-disabled ${t}-item`,e),...ST(`${t}-item-disabled`,e),[`${t}-thumb-motion-appear-active`]:{willChange:"transform, width",transition:["transform","width"].map(c=>`${c} ${o} ${n}`).join(", ")},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}}}},o4=e=>{let{colorTextLabel:t,colorText:o,colorFillSecondary:n,colorBgElevated:r,colorFill:i,lineWidthBold:s,colorBgLayout:a}=e;return{trackPadding:s,trackBg:a,itemColor:t,itemHoverColor:o,itemHoverBg:n,itemSelectedBg:r,itemActiveBg:i,itemSelectedColor:o}},wT=Ze("Segmented",e=>{let{lineWidth:t,calc:o}=e,n=Fe(e,{segmentedPaddingHorizontal:o(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:o(e.controlPaddingHorizontalSM).sub(t).equal()});return t4(n)},o4);function n4(e){return at(e)&&!!e?.icon}var r4=Er.forwardRef((e,t)=>{let o=Co(),{prefixCls:n,className:r,rootClassName:i,block:s,options:a=[],size:c,style:l,vertical:d,orientation:u,shape:m="default",name:f=o,styles:g,classNames:p,...h}=e,{getPrefixCls:y,direction:x,className:b,style:S,classNames:v,styles:C}=Ye("segmented"),R={...e,options:a,size:c,shape:m},w=De(S),I=De(l),[P,N]=et([v,p],[C,w,g,I],{props:R}),E=y("segmented",n),[O,D]=wT(E),A=Xt(c),F=Er.useMemo(()=>a.map(z=>{if(n4(z)){let{icon:G,label:V,...j}=z;return{...j,label:Er.createElement(Er.Fragment,null,Er.createElement("span",{className:$(`${E}-item-icon`,P.icon),style:N.icon},G),lo(V)&&Er.createElement("span",null,V))}}return z}),[a,E,P.icon,N.icon]),[,_]=Cl(u,d),T=$(r,i,b,P.root,{[`${E}-block`]:s,[`${E}-sm`]:A==="small",[`${E}-lg`]:A==="large",[`${E}-vertical`]:_,[`${E}-shape-${m}`]:m==="round"},O,D),L=(z,{item:G})=>{if(!G.tooltip)return z;let V=at(G.tooltip)?G.tooltip:{title:G.tooltip};return Er.createElement(Hl,{...V},z)};return Er.createElement(vT,{...h,name:f,className:T,style:N.root,classNames:P,styles:N,itemRender:L,options:F,ref:t,prefixCls:E,direction:x,vertical:_})}),i4=r4,RT=i4;var Nr=M(require("react"));var Ft=M(require("react"));var _t=M(require("react"));var Ov=require("react"),ET=(e,t,o,n,r=!1,i,s)=>{let a=(0,Ov.useMemo)(()=>typeof o=="boolean"?{allowClear:o}:o&&typeof o=="object"?o:{allowClear:!1},[o]);return(0,Ov.useMemo)(()=>{let c=!r&&a.allowClear!==!1&&(t.length||i)&&!(s==="combobox"&&i==="");return{allowClear:c,clearIcon:c?a.clearIcon||n||"\xD7":null,label:c?a.label??"Clear":""}},[a,n,r,t.length,i,s])};var mg=M(require("react")),Av=mg.createContext(null);function mn(){return mg.useContext(Av)}var Hd=M(require("react"));function kv(e=250){let t=Hd.useRef(null),o=Hd.useRef(null);Hd.useEffect(()=>()=>{window.clearTimeout(o.current)},[]);function n(r){(r||t.current===null)&&(t.current=r),window.clearTimeout(o.current),o.current=window.setTimeout(()=>{t.current=null},e)}return[()=>t.current,n]}var $T=M(require("react"));function Lv(e,t){return e.filter(o=>o).some(o=>o.contains(t)||o===t)}function Dv(e,t,o,n){let r=Ie(i=>{if(n)return;let s=i.target;s.shadowRoot&&i.composed&&(s=i.composedPath()[0]||s),i._ori_target&&(s=i._ori_target),t&&!Lv(e(),s)&&o(!1)});$T.useEffect(()=>(window.addEventListener("mousedown",r),()=>window.removeEventListener("mousedown",r)),[r])}var $r=M(require("react"));function _v(){return _v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},_v.apply(this,arguments)}var s4=e=>{let t=e===!0?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"}}},a4=(e,t)=>{let{prefixCls:o,disabled:n,visible:r,children:i,popupElement:s,animation:a,transitionName:c,popupStyle:l,popupClassName:d,direction:u="ltr",placement:m,builtinPlacements:f,popupMatchSelectWidth:g,popupRender:p,popupAlign:h,getPopupContainer:y,empty:x,onPopupVisibleChange:b,onPopupMouseEnter:S,onPopupMouseDown:v,onPopupBlur:C,...R}=e,w=`${o}-dropdown`,I=s;p&&(I=p(s));let P=$r.useMemo(()=>f||s4(g),[f,g]),N=a?`${w}-${a}`:c,E=typeof g=="number",O=$r.useMemo(()=>g===!1||E?"minWidth":"width",[g,E]),D=l;E&&(D={...l,width:g});let A=$r.useRef(null);return $r.useImperativeHandle(t,()=>({getPopupElement:()=>A.current?.popupElement})),$r.createElement(rs,_v({},R,{showAction:b?["click"]:[],hideAction:b?["click"]:[],popupPlacement:m||(u==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:P,prefixCls:w,popupMotion:{motionName:N},popup:$r.createElement("div",{onMouseEnter:S,onMouseDown:v,onBlur:C},I),ref:A,stretch:O,popupAlign:h,popupVisible:r,getPopupContainer:y,popupClassName:$(d,{[`${w}-empty`]:x}),popupStyle:D,onPopupVisibleChange:b}),i)},l4=$r.forwardRef(a4),IT=l4;function NT(e,t){let{key:o}=e,n;return"value"in e&&({value:n}=e),o??(n!==void 0?n:`rc-index-key-${t}`)}function Vd(e){return typeof e<"u"&&!Number.isNaN(e)}function Fv(e,t){let{label:o,value:n,options:r,groupLabel:i}=e||{},s=o||(t?"children":"label");return{label:s,value:n||"value",options:r||"options",groupLabel:i||s}}function PT(e,{fieldNames:t,childrenAsData:o}={}){let n=[],{label:r,value:i,options:s,groupLabel:a}=Fv(t,!1);function c(l,d){Array.isArray(l)&&l.forEach(u=>{if(d||!(s in u)){let m=u[i];n.push({key:NT(u,n.length),groupOption:d,data:u,label:u[r],value:m})}else{let m=u[a];m===void 0&&o&&(m=u.label),n.push({key:NT(u,n.length),group:!0,data:u,label:m}),c(u[s],!0)}})}return c(e,!1),n}function Wd(e){let t={...e};return"props"in t||Object.defineProperty(t,"props",{get(){return Kt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var TT=(e,t,o)=>{if(!t||!t.length)return null;let n=!1,r=(s,[a,...c])=>{if(!a)return[s];let l=s.split(a);return n=n||l.length>1,l.reduce((d,u)=>[...d,...r(u,c)],[]).filter(Boolean)},i=r(e,t);return n?typeof o<"u"?i.slice(0,o):i:null};var MT=M(require("react"));function zv(e){let{visible:t,values:o}=e;if(!t)return null;let n=50;return MT.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`${o.slice(0,n).map(({label:r,value:i})=>["number","string"].includes(typeof r)?r:i).join(", ")}`,o.length>n?", ...":null)}var Ma=require("react"),c4=e=>{let t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},pg=(e,t=1)=>{if(t<=0){e();return}c4(()=>{pg(e,t-1)})};function Bv(e,t,o,n){let[r,i]=(0,Ma.useState)(!1);(0,Ma.useEffect)(()=>{i(!0)},[]);let[s,a]=st(e,t),[c,l]=(0,Ma.useState)(!1),d=r?s:!1,u=n(d),m=(0,Ma.useRef)(0),f=Ie(p=>{o&&u!==p&&o(p),a(p)}),g=Ie((p,h={})=>{let{cancelFun:y}=h;m.current+=1;let x=m.current,b=typeof p=="boolean"?p:!u;l(!b);function S(){x===m.current&&!y?.()&&(f(b),l(!1))}b?S():pg(()=>{S()})});return[d,u,g,c]}var Lo=M(require("react"));var OT=M(require("react"));function fg(e){let{children:t,...o}=e;return t?OT.createElement("div",o,t):null}var Gd=M(require("react"));var fn=M(require("react"));var pn=M(require("react"));var gg=M(require("react")),AT=gg.createContext(null);function gi(){return gg.useContext(AT)}var kT=AT;var d4=pn.forwardRef((e,t)=>{let{onChange:o,onKeyDown:n,onBlur:r,style:i,syncWidth:s,value:a,className:c,autoComplete:l,...d}=e,{prefixCls:u,mode:m,onSearch:f,onSearchSubmit:g,onInputBlur:p,autoFocus:h,tokenWithEnter:y,placeholder:x,components:{input:b="input"}}=gi(),{id:S,classNames:v,styles:C,open:R,activeDescendantId:w,role:I,disabled:P}=mn()||{},N=$(`${u}-input`,v?.input,c),E=pn.useRef(!1),O=pn.useRef(null),D=pn.useRef(null);pn.useImperativeHandle(t,()=>D.current);let A=B=>{let{value:U}=B.target;if(y&&O.current&&/[\r\n]/.test(O.current)){let K=O.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");U=U.replace(K,O.current)}O.current=null,f&&f(U,!0,E.current),o?.(B)},F=B=>{let{key:U}=B,{value:K}=B.currentTarget;U==="Enter"&&m==="tags"&&!R&&!E.current&&g&&g(K),n?.(B)},_=B=>{p?.(),r?.(B)},T=()=>{E.current=!0},L=B=>{if(E.current=!1,m!=="combobox"){let{value:U}=B.currentTarget;f?.(U,!0,!1)}},z=B=>{let{clipboardData:U}=B,K=U?.getData("text");O.current=K||""},[G,V]=pn.useState(void 0);it(()=>{let B=D.current;if(s&&B){B.style.width="0px";let U=B.scrollWidth;V(U),B.style.width=""}},[s,a]);let j={id:S,type:"text",...d,ref:D,style:{...C?.input,...i,"--select-input-width":G},autoFocus:h,autoComplete:l||"new-password",className:N,disabled:P,value:a||"",onChange:A,onKeyDown:F,onBlur:_,onPaste:z,onCompositionStart:T,onCompositionEnd:L,role:I||"combobox","aria-expanded":R||!1,"aria-haspopup":"listbox","aria-owns":R?`${S}_list`:void 0,"aria-autocomplete":"list","aria-controls":R?`${S}_list`:void 0,"aria-activedescendant":R?w:void 0};if(pn.isValidElement(b)){let B=b.props||{},U={placeholder:e.placeholder||x,...j,...B};return Object.keys(B).forEach(K=>{let Z=B[K];typeof Z=="function"&&(U[K]=(...X)=>{Z(...X),j[K]?.(...X)})}),U.ref=Mt(b.ref,j.ref),pn.cloneElement(b,U)}return pn.createElement(b,j)}),hg=d4;var LT=M(require("react"));function jd(e){let{prefixCls:t,placeholder:o,displayValues:n}=gi(),{classNames:r,styles:i}=mn(),{show:s=!0}=e;return n.length?null:LT.createElement("div",{className:$(`${t}-placeholder`,r?.placeholder),style:{...s?{}:{visibility:"hidden"},...i?.placeholder}},o)}var DT=M(require("react")),u4=DT.createContext(null),Yl=u4;function Ud(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var wSe=typeof window<"u"&&window.document&&window.document.documentElement;function FT(e){return e!=null}function zT(e){return!e&&e!==0}function _T(e){return["string","number"].includes(typeof e)}function Kd(e){let t;return e&&(_T(e.title)?t=e.title.toString():_T(e.label)&&(t=e.label.toString())),t}function Hv(){return Hv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Hv.apply(this,arguments)}var m4=fn.forwardRef(({inputProps:e},t)=>{let{prefixCls:o,searchValue:n,activeValue:r,displayValues:i,maxLength:s,mode:a,components:c}=gi(),{triggerOpen:l,title:d,showSearch:u,classNames:m,styles:f}=mn(),g=fn.useContext(Yl),[p,h]=fn.useState(!1),y=a==="combobox",x=i[0],b=fn.useMemo(()=>y&&r&&!p&&l?r:u?n:"",[y,r,p,l,n,u]),[S,v,C,R]=fn.useMemo(()=>{let N,E,O;if(x&&g?.flattenOptions){let A=g.flattenOptions.find(F=>F.value===x.value);A?.data&&(N=A.data.className,E=A.data.style,O=Kd(A.data))}return x&&!O&&(O=Kd(x)),d!==void 0&&(O=d),[N,E,O,!!N||!!E]},[x,g?.flattenOptions,d]);fn.useEffect(()=>{y&&h(!1)},[y,r]);let w=x&&x.label!==null&&x.label!==void 0&&String(x.label).trim()!=="",P=!(y&&c?.input)?x?R?fn.createElement("div",{className:$(`${o}-content-value`,S),style:{...b?{visibility:"hidden"}:{},...v},title:C},x.label):x.label:fn.createElement(jd,{show:!b}):null;return fn.createElement("div",{className:$(`${o}-content`,w&&`${o}-content-has-value`,b&&`${o}-content-has-search-value`,R&&`${o}-content-has-option-style`,m?.content),style:f?.content,title:R?void 0:C},P,fn.createElement(hg,Hv({ref:t},e,{value:b,maxLength:a==="combobox"?s:void 0,onChange:N=>{h(!0),e.onChange?.(N)}})))}),BT=m4;var hi=M(require("react"));var Vv=M(require("react"));var p4=e=>{let{className:t,style:o,customizeIcon:n,customizeIconProps:r,children:i,onMouseDown:s,onClick:a}=e,c=typeof n=="function"?n(r):n;return Vv.createElement("span",{className:t,onMouseDown:l=>{l.preventDefault(),s?.(l)},style:{userSelect:"none",WebkitUserSelect:"none",...o},unselectable:"on",onClick:a,"aria-hidden":!0},c!==void 0?c:Vv.createElement("span",{className:$(t.split(/\s+/).map(l=>`${l}-icon`))},i))},yg=p4;function Wv(){return Wv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Wv.apply(this,arguments)}function f4(e){return e.key??e.value}var HT=e=>{e.preventDefault(),e.stopPropagation()},VT=hi.forwardRef(function({inputProps:t},o){let{prefixCls:n,displayValues:r,searchValue:i,mode:s,onSelectorRemove:a,removeIcon:c}=gi(),{disabled:l,showSearch:d,triggerOpen:u,rawOpen:m,toggleOpen:f,autoClearSearchValue:g,tagRender:p,maxTagPlaceholder:h,maxTagTextLength:y,maxTagCount:x,classNames:b,styles:S}=mn(),v=`${n}-selection-item`,C=i;!m&&s==="multiple"&&g!==!1&&(C="");let R=d&&C||"",w=d&&!l,I=c??"\xD7",P=h??(T=>`+ ${T.length} ...`),N=p,E=T=>{f(T)},O=T=>{a?.(T)},D=(T,L,z,G,V)=>hi.createElement("span",{title:Kd(T),className:$(v,{[`${v}-disabled`]:z},b?.item),style:S?.item},hi.createElement("span",{className:$(`${v}-content`,b?.itemContent),style:S?.itemContent},L),G&&hi.createElement(yg,{className:$(`${v}-remove`,b?.itemRemove),style:S?.itemRemove,onMouseDown:HT,onClick:V,customizeIcon:I},"\xD7")),A=(T,L,z,G,V,j,Y)=>hi.createElement("span",{onMouseDown:U=>{HT(U),E(!u)}},N({label:L,value:T,index:Y?.index,disabled:z,closable:G,onClose:V,isMaxTag:!!j})),F=(T,L)=>{let{disabled:z,label:G,value:V}=T,j=!l&&!z,Y=G;if(typeof y=="number"&&(typeof G=="string"||typeof G=="number")){let U=String(Y);U.length>y&&(Y=`${U.slice(0,y)}...`)}let B=U=>{U&&U.stopPropagation(),O(T)};return typeof N=="function"?A(V,Y,z,j,B,void 0,L):D(T,Y,z,j,B)},_=T=>{if(!r.length)return null;let L=typeof P=="function"?P(T):P;return typeof N=="function"?A(void 0,L,!1,!1,void 0,!0):D({title:L},L,!1)};return hi.createElement(ii,{prefixCls:`${n}-content`,className:b?.content,style:S?.content,prefix:!r.length&&!R&&hi.createElement(jd,null),data:r,renderItem:F,renderRest:_,suffix:hi.createElement(hg,Wv({ref:o,disabled:l,readOnly:!w},t,{value:R||"",syncWidth:!0})),itemKey:f4,maxCount:x})});var g4=Gd.forwardRef(function(t,o){let{multiple:n,onInputKeyDown:r,tabIndex:i}=gi(),s=mn(),{showSearch:a}=s,l={...To(s,{aria:!0}),onKeyDown:r,readOnly:!a,tabIndex:i};return n?Gd.createElement(VT,{ref:o,inputProps:l}):Gd.createElement(BT,{ref:o,inputProps:l})}),WT=g4;function jT(e){return e&&![Me.ESC,Me.SHIFT,Me.BACKSPACE,Me.TAB,Me.WIN_KEY,Me.ALT,Me.META,Me.WIN_KEY_RIGHT,Me.CTRL,Me.SEMICOLON,Me.EQUALS,Me.CAPS_LOCK,Me.CONTEXT_MENU,Me.UP,Me.LEFT,Me.RIGHT,Me.F1,Me.F2,Me.F3,Me.F4,Me.F5,Me.F6,Me.F7,Me.F8,Me.F9,Me.F10,Me.F11,Me.F12].includes(e)}function bg(){return bg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},bg.apply(this,arguments)}var h4=["value","onChange","removeIcon","placeholder","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex","activeValue","onSelectorRemove","focused"],UT=Lo.forwardRef(function(t,o){let{prefixCls:n,className:r,style:i,prefix:s,suffix:a,clearIcon:c,clearLabel:l,children:d,multiple:u,displayValues:m,placeholder:f,mode:g,searchValue:p,onSearch:h,onSearchSubmit:y,onInputBlur:x,maxLength:b,autoFocus:S,onMouseDown:v,onClearMouseDown:C,onInputKeyDown:R,onSelectorRemove:w,tokenWithEnter:I,components:P,...N}=t,{triggerOpen:E,toggleOpen:O,showSearch:D,disabled:A,loading:F,classNames:_,styles:T}=mn(),L=Lo.useRef(null),z=Lo.useRef(null),G=Ie(X=>{let{which:k}=X,W=z.current instanceof HTMLTextAreaElement;if(!W&&E&&(k===Me.UP||k===Me.DOWN)&&X.preventDefault(),R&&R(X),W&&!E&&~[Me.UP,Me.DOWN,Me.LEFT,Me.RIGHT].indexOf(k))return;!(X.ctrlKey||X.altKey||X.metaKey)&&jT(k)&&O(!0)});Lo.useImperativeHandle(o,()=>({focus:X=>{(z.current||L.current).focus?.(X)},blur:()=>{(z.current||L.current).blur?.()},nativeElement:Gn(L.current)}));let V=Ie(X=>{if(!A){let k=Gn(z.current);X.nativeEvent._ori_target=k;let W=k===X.target||k?.contains(X.target);k&&!W&&X.preventDefault();let J=E&&!u&&(g==="combobox"||D)||E&&u&&W;X.nativeEvent._select_lazy?E&&!u&&O(!1):(z.current?.focus(),J||O())}v?.(X)}),j=X=>{(X.key==="Enter"||X.key===" ")&&X.stopPropagation()},{root:Y}=P,B=Ke(N,h4),U=To(B,{aria:!0}),K=Object.keys(U),Z={...t,onInputKeyDown:G};if(Y){let X=Y.props||{},k={...X,...B};return Object.keys(X).forEach(W=>{let H=X[W],ee=B[W];typeof H=="function"&&typeof ee=="function"&&(k[W]=(...J)=>{ee(...J),H(...J)})}),Lo.isValidElement(Y)?Lo.cloneElement(Y,{...k,ref:Mt(Y.ref,L)}):Lo.createElement(Y,bg({},k,{ref:L}))}return Lo.createElement(kT.Provider,{value:Z},Lo.createElement("div",bg({},Ke(B,K),{ref:L,className:r,style:i,onMouseDown:V}),Lo.createElement(fg,{className:$(`${n}-prefix`,_?.prefix),style:T?.prefix},s),Lo.createElement(WT,{ref:z}),Lo.createElement(fg,{className:$(`${n}-suffix`,{[`${n}-suffix-loading`]:F},_?.suffix),style:T?.suffix},a),c&&Lo.createElement("button",{type:"button","aria-label":l,className:$(`${n}-clear`,_?.clear),style:T?.clear,onMouseDown:X=>{X.preventDefault(),X.nativeEvent._select_lazy=!0},onKeyDown:j,onClick:C},c),d))});var KT=M(require("react"));function jv(e,t,o){return KT.useMemo(()=>{let{root:n,input:r}=e||{};return o&&(n=o()),t&&(r=t()),{root:n,input:r}},[e,t,o])}function Uv(){return Uv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Uv.apply(this,arguments)}var qd=e=>e==="tags"||e==="multiple",y4=_t.forwardRef((e,t)=>{let{id:o,prefixCls:n,className:r,styles:i,classNames:s,showSearch:a,tagRender:c,showScrollBar:l="optional",direction:d,omitDomProps:u,displayValues:m,onDisplayValuesChange:f,emptyOptions:g,notFoundContent:p="Not Found",onClear:h,maxCount:y,placeholder:x,mode:b,disabled:S,loading:v,getInputElement:C,getRawInputElement:R,open:w,defaultOpen:I,onPopupVisibleChange:P,activeValue:N,onActiveValueChange:E,activeDescendantId:O,searchValue:D,autoClearSearchValue:A,onSearch:F,onSearchSplit:_,tokenSeparators:T,allowClear:L,prefix:z,suffix:G,suffixIcon:V,clearIcon:j,OptionList:Y,animation:B,transitionName:U,popupStyle:K,popupClassName:Z,popupMatchSelectWidth:X,popupRender:k,popupAlign:W,placement:H,builtinPlacements:ee,getPopupContainer:J,showAction:te=[],onFocus:le,onBlur:re,onKeyUp:ie,onKeyDown:Se,onMouseDown:de,components:Ee,...ae}=e,Ne=qd(b),he=_t.useRef(null),ne=_t.useRef(null),fe=_t.useRef(null),[ce,we]=_t.useState(!1);_t.useImperativeHandle(t,()=>({focus:he.current?.focus,blur:he.current?.blur,scrollTo:Ae=>fe.current?.scrollTo(Ae),nativeElement:Gn(he.current)}));let Le=jv(Ee,C,R),Ce=_t.useMemo(()=>{if(b!=="combobox")return D;let Ae=m[0]?.value;return typeof Ae=="string"||typeof Ae=="number"?String(Ae):""},[D,b,m]),pe=b==="combobox"&&typeof C=="function"&&C()||null,ue=!p&&g,[se,ve,$e,Pe]=Bv(I||!1,w,P,Ae=>S||ue?!1:Ae),Ge=_t.useMemo(()=>typeof T=="function"||(T||[]).some(Ae=>[`
|
|
229
|
+
}`)}};function Nv(){return Nv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Nv.apply(this,arguments)}function dT(e){let t=e??[];return Array.isArray(t)?t:[t]}var Lz=e=>{let{id:t,prefixCls:o,classNames:n={},styles:r={},steps:i,strokeWidth:s,railWidth:a,gapDegree:c=0,gapPosition:l,railColor:d,strokeLinecap:u,style:m,className:f,strokeColor:g,percent:p,loading:h,...y}={...$v,...e},x=100/2,b=Co(t),S=`${b}-gradient`,v=x-s/2,C=Math.PI*2*v,R=c>0?90+c/2:-90,w=C*((360-c)/360),{count:I,gap:P}=typeof i=="object"?i:{count:i,gap:2},N=dT(p),E=dT(g),O=E.find(H=>H&&typeof H=="object"),k=O&&typeof O=="object"?"butt":u,{indeterminateStyleProps:z,indeterminateStyleAnimation:_}=cT({id:b,loading:h}),T=lg(C,w,0,100,R,c,l,d,k,s),D=Iv(),F=()=>{let H=0;return N.map((W,X)=>{let B=E[X]||E[E.length-1],j=lg(C,w,H,W,R,c,l,B,k,s);return H+=W,zd.createElement(aT,{key:X,color:B,ptg:W,radius:v,prefixCls:o,gradientId:S,className:n.track,style:{...j,...z,...r.track},strokeLinecap:k,strokeWidth:s,gapDegree:c,ref:U=>{D[X]=U},size:100})}).reverse()},G=()=>{let H=Math.round(I*(N[0]/100)),W=100/I,X=0;return new Array(I).fill(null).map((B,j)=>{let U=j<=H-1?E[0]:d,Z=U&&typeof U=="object"?`url(#${S})`:void 0,Y=lg(C,w,X,W,R,c,l,U,"butt",s,P);return X+=(w-Y.strokeDashoffset+P)*100/w,zd.createElement("circle",{key:j,className:$(`${o}-circle-path`,n.track),r:v,cx:x,cy:x,stroke:Z,strokeWidth:s,opacity:1,style:{...Y,...r.track},ref:K=>{D[j]=K}})})};return zd.createElement("svg",Nv({className:$(`${o}-circle`,n.root,f),viewBox:`0 0 ${100} ${100}`,style:{...r.root,...m},id:t,role:"presentation"},y),!I&&zd.createElement("circle",{className:$(`${o}-circle-rail`,n.rail),r:v,cx:x,cy:x,stroke:d,strokeLinecap:k,strokeWidth:a||s,style:{...T,...r.rail}}),I?G():F(),_)},Pv=Lz;function Hi(e){return!e||e<0?0:e>100?100:e}function Xl({success:e}){let t;return e&&"percent"in e&&(t=e.percent),t}var uT=({percent:e,success:t})=>{let o=Hi(Xl({success:t}));return[o,Hi(Hi(e)-o)]},mT=({success:e={},strokeColor:t})=>{let{strokeColor:o}=e;return[o||vi.green,t||null]},ks=(e,t,o)=>{let n=-1,r=-1;if(t==="step"){let i=o.steps,s=o.strokeWidth;typeof e=="string"||typeof e>"u"?(n=e==="small"?2:14,r=s??8):Ko(e)?[n,r]=[e,e]:[n=14,r=8]=Array.isArray(e)?e:[e.width,e.height],n*=i}else if(t==="line"){let i=o?.strokeWidth;typeof e=="string"||typeof e>"u"?r=i||(e==="small"?6:8):Ko(e)?[n,r]=[e,e]:[n=-1,r=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[n,r]=e==="small"?[60,60]:[120,120]:Ko(e)?[n,r]=[e,e]:Array.isArray(e)&&(n=e[0]??e[1]??120,r=e[0]??e[1]??120));return[n,r]};var Dz=3,_z=e=>Dz/e*100,pT=["root","body","indicator"],Fz=e=>{let{prefixCls:t,classNames:o,styles:n,railColor:r,trailColor:i,strokeLinecap:s="round",gapPosition:a,gapPlacement:c,gapDegree:l,width:d=120,type:u,children:m,success:f,size:g=d,steps:p}=e,{direction:h}=Ye("progress"),y=r??i,[x,b]=ks(g,"circle"),{strokeWidth:S}=e;S===void 0&&(S=Math.max(_z(x),6));let v={width:x,height:b,fontSize:x*.15+6},C=Ta.useMemo(()=>{if(l||l===0)return l;if(u==="dashboard")return 75},[l,u]),R=uT(e),w=Ta.useMemo(()=>{let k=(c??a)||u==="dashboard"&&"bottom"||void 0,z=h==="rtl";switch(k){case"start":return z?"right":"left";case"end":return z?"left":"right";default:return k}},[h,c,a,u]),I=at(e.strokeColor),P=mT({success:f,strokeColor:e.strokeColor}),N=$(`${t}-body`,{[`${t}-circle-gradient`]:I},o.body),E=Ta.createElement(Pv,{steps:p,percent:p?R[1]:R,strokeWidth:S,railWidth:S,strokeColor:p?P[1]:P,strokeLinecap:s,railColor:y,prefixCls:t,gapDegree:C,gapPosition:w,classNames:Ke(o,pT),styles:Ke(n,pT)}),O=x<=20,L=Ta.createElement("div",{className:N,style:{...v,...n.body}},E,!O&&m);return O?Ta.createElement(Hl,{title:m},L):L},fT=Fz;var Bd=M(require("react"));var dg="--progress-line-stroke-color",zz=e=>{let t=e?"100%":"-100%";return new nt(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Bz=e=>{let{componentCls:t,iconCls:o}=e;return{[t]:{...Et(e),display:"inline-flex","&-rtl":{direction:"rtl"},[`${t}-indicator`]:{color:e.colorText,lineHeight:1,whiteSpace:"nowrap",verticalAlign:"middle",wordBreak:"normal",[o]:{fontSize:e.fontSize}},[`&${t}-status-exception`]:{[`${t}-indicator`]:{color:e.colorError}},[`&${t}-status-success`]:{[`${t}-indicator`]:{color:e.colorSuccess}}}}},Hz=e=>{let{componentCls:t}=e;return{[`${t}-line`]:{position:"relative",width:"100%",fontSize:e.fontSize,[`${t}-body`]:{display:"inline-flex",alignItems:"center",width:"100%",gap:e.marginXS},[`${t}-rail`]:{flex:"auto",background:e.remainingColor,borderRadius:e.lineBorderRadius,position:"relative",width:"100%",overflow:"hidden"},[`&${t}-status-active`]:{[`${t}-track:after`]:{content:'""',position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:"inherit",opacity:0,animationName:zz(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite"}},[`${t}-track`]:{position:"absolute",insetInlineStart:0,insetBlock:0,borderRadius:"inherit",background:e.defaultColor,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,minWidth:"max-content",display:"flex",alignItems:"center","&-success":{background:e.colorSuccess}},[`&${t}-status-exception`]:{[`${t}-track`]:{background:e.colorError}},[`&${t}-status-success`]:{[`${t}-track`]:{background:e.colorSuccess}},[`${t}-indicator-outer`]:{[`&${t}-indicator-start`]:{order:-1}},[`${t}-body-layout-bottom`]:{flexDirection:"column",alignItems:"center",gap:e.marginXXS},[`${t}-indicator${t}-indicator-inner`]:{color:e.colorWhite,paddingInline:e.paddingXXS,width:"100%",display:"flex",justifyContent:"center",[`&${t}-indicator-end`]:{justifyContent:"end"},[`&${t}-indicator-start`]:{justifyContent:"start"},[`&${t}-indicator-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}}},Vz=e=>{let{componentCls:t,iconCls:o}=e;return{[`${t}-circle`]:{[`${t}-circle-rail`]:{stroke:e.remainingColor},[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-body`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`${t}-indicator`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[o]:{fontSize:e.circleIconFontSize}},[`&${t}-status-exception`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}}},[`&${t}-status-success`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},Wz=e=>{let{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-body":{display:"flex",flexDirection:"row",alignItems:"center",gap:e.progressStepMarginInlineEnd,[`${t}-indicator`]:{marginInlineStart:e.marginXS}},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},jz=e=>{let{componentCls:t,iconCls:o}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-indicator ${o}`]:{fontSize:e.fontSizeSM}}}},Uz=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),gT=Ze("Progress",e=>{let t=e.calc(e.marginXXS).div(2).equal(),o=Fe(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[Bz(o),Hz(o),Vz(o),Wz(o),jz(o)]},Uz);var Kz=e=>{let t=[];return Object.keys(e).forEach(o=>{let n=Number.parseFloat(o.replace(/%/g,""));Number.isNaN(n)||t.push({key:n,value:e[o]})}),t=t.sort((o,n)=>o.key-n.key),t.map(({key:o,value:n})=>`${n} ${o}%`).join(", ")},Gz=(e,t)=>{let{from:o=vi.blue,to:n=vi.blue,direction:r=t==="rtl"?"to left":"to right",...i}=e;if(Object.keys(i).length!==0){let a=Kz(i),c=`linear-gradient(${r}, ${a})`;return{background:c,[dg]:c}}let s=`linear-gradient(${r}, ${o}, ${n})`;return{background:s,[dg]:s}},qz=e=>{let{prefixCls:t,classNames:o,styles:n,direction:r,percent:i,size:s,strokeWidth:a,strokeColor:c,strokeLinecap:l="round",children:d,railColor:u,trailColor:m,percentPosition:f,success:g}=e,{align:p,type:h}=f,y=u??m,x=l==="square"||l==="butt"?0:void 0,b=s??[-1,a||(s==="small"?6:8)],[S,v]=ks(b,"line",{strokeWidth:a}),C={backgroundColor:y||void 0,borderRadius:x,height:v},R=`${t}-track`,w=c&&typeof c!="string"?Gz(c,r):{[dg]:c,background:c},I={width:`${Hi(i)}%`,height:v,borderRadius:x,...w},P=Xl(e),N={width:`${Hi(P)}%`,height:v,borderRadius:x,backgroundColor:g?.strokeColor};return Bd.createElement("div",{className:$(`${t}-body`,o.body,{[`${t}-body-layout-bottom`]:p==="center"&&h==="outer"}),style:{width:S>0?S:"100%",...n.body}},Bd.createElement("div",{className:$(`${t}-rail`,o.rail),style:{...C,...n.rail}},Bd.createElement("div",{className:$(R,o.track),style:{...I,...n.track}},h==="inner"&&d),P!==void 0&&Bd.createElement("div",{className:$(R,`${R}-success`,o.track),style:{...N,...n.track}})),h==="outer"&&d)},hT=qz;var Tv=M(require("react"));var Xz=e=>{let{classNames:t,styles:o,size:n,steps:r,rounding:i=Math.round,percent:s=0,strokeWidth:a=8,strokeColor:c,railColor:l,trailColor:d,prefixCls:u,children:m}=e,f=i(r*(s/100)),p=n??[n==="small"?2:14,a],[h,y]=ks(p,"step",{steps:r,strokeWidth:a}),x=h/r,b=Array.from({length:r}),S=l??d;for(let v=0;v<r;v++){let C=Array.isArray(c)?c[v]:c;b[v]=Tv.createElement("div",{key:v,className:$(`${u}-steps-item`,{[`${u}-steps-item-active`]:v<=f-1},t.track),style:{backgroundColor:v<=f-1?C:S,width:x,height:y,...o.track}})}return Tv.createElement("div",{className:$(`${u}-steps-body`,t.body),style:o.body},b,m)},yT=Xz;var Yz=["normal","exception","active","success"],Zz=en.forwardRef((e,t)=>{let{prefixCls:o,className:n,rootClassName:r,classNames:i,styles:s,steps:a,strokeColor:c,percent:l=0,size:d="medium",showInfo:u=!0,type:m="line",status:f,format:g,style:p,percentPosition:h={},...y}=e,{align:x="end",type:b="outer"}=h,S=Array.isArray(c)?c[0]:c,v=typeof c=="string"||Array.isArray(c)?c:void 0,C=en.useMemo(()=>{if(S){let Y=typeof S=="string"?S:Object.values(S)[0];return new pt(Y).isLight()}return!1},[c]),R=en.useMemo(()=>{let Y=Xl(e);return Number.parseInt(Y!==void 0?(Y??0)?.toString():(l??0)?.toString(),10)},[l,e.success]),w=en.useMemo(()=>!Yz.includes(f)&&R>=100?"success":f||"normal",[f,R]),{getPrefixCls:I,direction:P,className:N,style:E,classNames:O,styles:L}=Ye("progress"),k=I("progress",o),[z,_]=gT(k),T={...e,percent:l,type:m,size:d,showInfo:u,percentPosition:h},D=De(E),F=De(p),[G,H]=et([O,i],[L,D,s,F],{props:T}),W=m==="line",X=W&&!a,B=en.useMemo(()=>{if(!u)return null;let Y=Xl(e),K,V=g||(ee=>`${ee}%`),A=W&&C&&b==="inner";return b==="inner"||g||w!=="exception"&&w!=="success"?K=V(Hi(l),Hi(Y)):w==="exception"?K=W?en.createElement(ls,null):en.createElement(Yn,null):w==="success"&&(K=W?en.createElement(_f,null):en.createElement(ag,null)),en.createElement("span",{className:$(`${k}-indicator`,{[`${k}-indicator-bright`]:A,[`${k}-indicator-${x}`]:X,[`${k}-indicator-${b}`]:X},G.indicator),style:H.indicator,title:typeof K=="string"?K:void 0},K)},[u,l,R,w,m,k,g,W,C,b,x,X,G.indicator,H.indicator]),j={...e,classNames:G,styles:H},U;m==="line"?U=a?en.createElement(yT,{...j,strokeColor:v,prefixCls:k,steps:at(a)?a.count:a},B):en.createElement(hT,{...j,strokeColor:S,prefixCls:k,direction:P,percentPosition:{align:x,type:b}},B):(m==="circle"||m==="dashboard")&&(U=en.createElement(fT,{...j,strokeColor:S,prefixCls:k,progressStatus:w},B));let Z=$(k,`${k}-status-${w}`,{[`${k}-${m==="dashboard"&&"circle"||m}`]:m!=="line",[`${k}-inline-circle`]:m==="circle"&&ks(d,"circle")[0]<=20,[`${k}-line`]:X,[`${k}-line-align-${x}`]:X,[`${k}-line-position-${b}`]:X,[`${k}-steps`]:a,[`${k}-show-info`]:u,[`${k}-small`]:d==="small",[`${k}-rtl`]:P==="rtl"},N,n,r,G.root,z,_);return en.createElement("div",{ref:t,style:H.root,className:Z,role:"progressbar","aria-valuenow":R,"aria-valuemin":0,"aria-valuemax":100,...Ke(y,["railColor","trailColor","strokeWidth","width","gapDegree","gapPosition","gapPlacement","strokeLinecap","success"])},U)}),bT=Zz;var xT=bT;var Er=M(require("react"));var Lo=M(require("react"));var Rr=M(require("react")),vT=(e,t)=>{if(!e)return null;let o={left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth,top:e.offsetTop,bottom:e.parentElement.clientHeight-e.clientHeight-e.offsetTop,height:e.clientHeight};return t?{left:0,right:0,width:0,top:o.top,bottom:o.bottom,height:o.height}:{left:o.left,right:o.right,width:o.width,top:0,bottom:0,height:0}},fi=e=>e!==void 0?`${e}px`:void 0;function Mv(e){let{prefixCls:t,containerRef:o,value:n,getValueIndex:r,motionName:i,onMotionStart:s,onMotionEnd:a,direction:c,vertical:l=!1}=e,d=Rr.useRef(null),[u,m]=Rr.useState(n),f=R=>{let w=r(R),I=o.current?.querySelectorAll(`.${t}-item`)[w];return I?.offsetParent&&I},[g,p]=Rr.useState(null),[h,y]=Rr.useState(null);it(()=>{if(u!==n){let R=f(u),w=f(n),I=vT(R,l),P=vT(w,l);m(n),p(I),y(P),R&&w?s():a()}},[n]);let x=Rr.useMemo(()=>fi(l?g?.top??0:c==="rtl"?-g?.right:g?.left),[l,c,g]),b=Rr.useMemo(()=>fi(l?h?.top??0:c==="rtl"?-h?.right:h?.left),[l,c,h]),S=()=>l?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"},v=()=>l?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"},C=()=>{p(null),y(null),a()};return!g||!h?null:Rr.createElement(po,{visible:!0,motionName:i,motionAppear:!0,onAppearStart:S,onAppearActive:v,onVisibleChanged:C},({className:R,style:w},I)=>{let P={...w,"--thumb-start-left":x,"--thumb-start-width":fi(g?.width),"--thumb-active-left":b,"--thumb-active-width":fi(h?.width),"--thumb-start-top":x,"--thumb-start-height":fi(g?.height),"--thumb-active-top":b,"--thumb-active-height":fi(h?.height)},N={ref:Mt(d,I),style:P,className:$(`${t}-thumb`,R)};return Rr.createElement("div",N)})}function ug(){return ug=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},ug.apply(this,arguments)}function Qz(e){if(typeof e.title<"u")return e.title;if(typeof e.label!="object")return e.label?.toString()}function Jz(e){return e.map(t=>{if(typeof t=="object"&&t!==null){let o=Qz(t);return{...t,value:t.value,title:o}}return{label:t?.toString(),title:t?.toString(),value:t}})}var e4=({prefixCls:e,className:t,style:o,styles:n,classNames:r,data:i,disabled:s,checked:a,label:c,title:l,value:d,name:u,onChange:m,onFocus:f,onBlur:g,onKeyDown:p,onKeyUp:h,onMouseDown:y,itemRender:x=b=>b})=>{let b=v=>{s||m(v,d)},S=Lo.createElement("label",{className:$(t,{[`${e}-item-disabled`]:s}),style:o,onMouseDown:y},Lo.createElement("input",{name:u,className:`${e}-item-input`,type:"radio",disabled:s,checked:a,onChange:b,onFocus:f,onBlur:g,onKeyDown:p,onKeyUp:h}),Lo.createElement("div",{className:$(`${e}-item-label`,r?.label),title:l,style:n?.label},c));return x(S,{item:i})},t4=Lo.forwardRef((e,t)=>{let{prefixCls:o="rc-segmented",direction:n,vertical:r,options:i=[],disabled:s,defaultValue:a,value:c,name:l,onChange:d,className:u="",style:m,styles:f,classNames:g,motionName:p="thumb-motion",itemRender:h,...y}=e,x=Lo.useRef(null),b=Lo.useMemo(()=>Mt(x,t),[x,t]),S=Lo.useMemo(()=>Jz(i),[i]),[v,C]=st(a??S[0]?.value,c),[R,w]=Lo.useState(!1),I=(H,W)=>{C(W),d?.(W)},P=Ke(y,["children"]),[N,E]=Lo.useState(!1),[O,L]=Lo.useState(!1),k=()=>{L(!0)},z=()=>{L(!1)},_=()=>{E(!1)},T=H=>{H.key==="Tab"&&E(!0)},D=H=>{let W=S.filter(Z=>Z.value===v||!Z.disabled),X=W.findIndex(Z=>Z.value===v),B=W.length,j=(X+H+B)%B,U=W[j];U&&U.value!==v&&(C(U.value),d?.(U.value))},F=H=>{switch(H.key){case"ArrowLeft":case"ArrowUp":D(-1);break;case"ArrowRight":case"ArrowDown":D(1);break}},G=H=>{let{value:W,disabled:X}=H;return Lo.createElement(e4,ug({},H,{name:l,data:H,itemRender:h,key:W,prefixCls:o,className:$(H.className,`${o}-item`,g?.item,{[`${o}-item-selected`]:W===v&&!R,[`${o}-item-selected-text`]:W===v,[`${o}-item-focused`]:O&&N&&W===v}),style:f?.item,classNames:g,styles:f,checked:W===v,onChange:I,onFocus:k,onBlur:z,onKeyDown:F,onKeyUp:T,onMouseDown:_,disabled:!!s||!!X}))};return Lo.createElement("div",ug({role:"radiogroup","aria-label":"segmented control",tabIndex:s?void 0:0,"aria-orientation":r?"vertical":"horizontal",style:m},P,{className:$(o,{[`${o}-rtl`]:n==="rtl",[`${o}-disabled`]:s,[`${o}-vertical`]:r},u),ref:b}),Lo.createElement("div",{className:`${o}-group`},Lo.createElement(Mv,{vertical:r,prefixCls:o,value:v,containerRef:x,motionName:`${o}-${p}`,direction:n,getValueIndex:H=>S.findIndex(W=>W.value===H),onMotionStart:()=>{w(!0)},onMotionEnd:()=>{w(!1)}}),S.map(G)))}),o4=t4,ST=o4;function CT(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}var wT=e=>({background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}),n4={overflow:"hidden",...Xo},r4=e=>{let{componentCls:t,motionDurationSlow:o,motionEaseInOut:n,motionDurationMid:r}=e,i=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),s=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),a=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:{...Et(e),display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${r}`,...ln(e),[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${q(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${r}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":{...wT(e),color:e.itemSelectedColor},"&-selected-text":{color:e.itemSelectedColor,transition:`color ${r}`},"&-focused":An(e),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",opacity:0,pointerEvents:"none",transition:["opacity","background-color"].map(c=>`${c} ${r}`).join(", ")},[`&:not(${t}-item-selected):not(${t}-item-selected-text):not(${t}-item-disabled)`]:{"&:hover, &:active":{color:e.itemHoverColor},"&:hover::after":{opacity:1,backgroundColor:e.itemHoverBg},"&:active::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":{minHeight:i,lineHeight:q(i),padding:`0 ${q(e.segmentedPaddingHorizontal)}`,...n4},"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-icon > svg":{display:"inline-block",verticalAlign:"middle",marginBlockEnd:"0.2em"},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:{...wT(e),position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${q(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}},[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:s,lineHeight:q(s),padding:`0 ${q(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:a,lineHeight:q(a),padding:`0 ${q(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...CT(`&-disabled ${t}-item`,e),...CT(`${t}-item-disabled`,e),[`${t}-thumb-motion-appear-active`]:{willChange:"transform, width",transition:["transform","width"].map(c=>`${c} ${o} ${n}`).join(", ")},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}}}},i4=e=>{let{colorTextLabel:t,colorText:o,colorFillSecondary:n,colorBgElevated:r,colorFill:i,lineWidthBold:s,colorBgLayout:a}=e;return{trackPadding:s,trackBg:a,itemColor:t,itemHoverColor:o,itemHoverBg:n,itemSelectedBg:r,itemActiveBg:i,itemSelectedColor:o}},RT=Ze("Segmented",e=>{let{lineWidth:t,calc:o}=e,n=Fe(e,{segmentedPaddingHorizontal:o(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:o(e.controlPaddingHorizontalSM).sub(t).equal()});return r4(n)},i4);function s4(e){return at(e)&&!!e?.icon}var a4=Er.forwardRef((e,t)=>{let o=Co(),{prefixCls:n,className:r,rootClassName:i,block:s,options:a=[],size:c,style:l,vertical:d,orientation:u,shape:m="default",name:f=o,styles:g,classNames:p,...h}=e,{getPrefixCls:y,direction:x,className:b,style:S,classNames:v,styles:C}=Ye("segmented"),R={...e,options:a,size:c,shape:m},w=De(S),I=De(l),[P,N]=et([v,p],[C,w,g,I],{props:R}),E=y("segmented",n),[O,L]=RT(E),k=Xt(c),z=Er.useMemo(()=>a.map(F=>{if(s4(F)){let{icon:G,label:H,...W}=F;return{...W,label:Er.createElement(Er.Fragment,null,Er.createElement("span",{className:$(`${E}-item-icon`,P.icon),style:N.icon},G),lo(H)&&Er.createElement("span",null,H))}}return F}),[a,E,P.icon,N.icon]),[,_]=Cl(u,d),T=$(r,i,b,P.root,{[`${E}-block`]:s,[`${E}-sm`]:k==="small",[`${E}-lg`]:k==="large",[`${E}-vertical`]:_,[`${E}-shape-${m}`]:m==="round"},O,L),D=(F,{item:G})=>{if(!G.tooltip)return F;let H=at(G.tooltip)?G.tooltip:{title:G.tooltip};return Er.createElement(Hl,{...H},F)};return Er.createElement(ST,{...h,name:f,className:T,style:N.root,classNames:P,styles:N,itemRender:D,options:z,ref:t,prefixCls:E,direction:x,vertical:_})}),l4=a4,ET=l4;var Nr=M(require("react"));var Ft=M(require("react"));var _t=M(require("react"));var Ov=require("react"),$T=(e,t,o,n,r=!1,i,s)=>{let a=(0,Ov.useMemo)(()=>typeof o=="boolean"?{allowClear:o}:o&&typeof o=="object"?o:{allowClear:!1},[o]);return(0,Ov.useMemo)(()=>{let c=!r&&a.allowClear!==!1&&(t.length||i)&&!(s==="combobox"&&i==="");return{allowClear:c,clearIcon:c?a.clearIcon||n||"\xD7":null,label:c?a.label??"Clear":""}},[a,n,r,t.length,i,s])};var mg=M(require("react")),Av=mg.createContext(null);function mn(){return mg.useContext(Av)}var Hd=M(require("react"));function kv(e=250){let t=Hd.useRef(null),o=Hd.useRef(null);Hd.useEffect(()=>()=>{window.clearTimeout(o.current)},[]);function n(r){(r||t.current===null)&&(t.current=r),window.clearTimeout(o.current),o.current=window.setTimeout(()=>{t.current=null},e)}return[()=>t.current,n]}var IT=M(require("react"));function Lv(e,t){return e.filter(o=>o).some(o=>o.contains(t)||o===t)}function Dv(e,t,o,n){let r=Ie(i=>{if(n)return;let s=i.target;s.shadowRoot&&i.composed&&(s=i.composedPath()[0]||s),i._ori_target&&(s=i._ori_target),t&&!Lv(e(),s)&&o(!1)});IT.useEffect(()=>(window.addEventListener("mousedown",r),()=>window.removeEventListener("mousedown",r)),[r])}var $r=M(require("react"));function _v(){return _v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},_v.apply(this,arguments)}var c4=e=>{let t=e===!0?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"}}},d4=(e,t)=>{let{prefixCls:o,disabled:n,visible:r,children:i,popupElement:s,animation:a,transitionName:c,popupStyle:l,popupClassName:d,direction:u="ltr",placement:m,builtinPlacements:f,popupMatchSelectWidth:g,popupRender:p,popupAlign:h,getPopupContainer:y,empty:x,onPopupVisibleChange:b,onPopupMouseEnter:S,onPopupMouseDown:v,onPopupBlur:C,...R}=e,w=`${o}-dropdown`,I=s;p&&(I=p(s));let P=$r.useMemo(()=>f||c4(g),[f,g]),N=a?`${w}-${a}`:c,E=typeof g=="number",O=$r.useMemo(()=>g===!1||E?"minWidth":"width",[g,E]),L=l;E&&(L={...l,width:g});let k=$r.useRef(null);return $r.useImperativeHandle(t,()=>({getPopupElement:()=>k.current?.popupElement})),$r.createElement(rs,_v({},R,{showAction:b?["click"]:[],hideAction:b?["click"]:[],popupPlacement:m||(u==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:P,prefixCls:w,popupMotion:{motionName:N},popup:$r.createElement("div",{onMouseEnter:S,onMouseDown:v,onBlur:C},I),ref:k,stretch:O,popupAlign:h,popupVisible:r,getPopupContainer:y,popupClassName:$(d,{[`${w}-empty`]:x}),popupStyle:L,onPopupVisibleChange:b}),i)},u4=$r.forwardRef(d4),NT=u4;function PT(e,t){let{key:o}=e,n;return"value"in e&&({value:n}=e),o??(n!==void 0?n:`rc-index-key-${t}`)}function Vd(e){return typeof e<"u"&&!Number.isNaN(e)}function Fv(e,t){let{label:o,value:n,options:r,groupLabel:i}=e||{},s=o||(t?"children":"label");return{label:s,value:n||"value",options:r||"options",groupLabel:i||s}}function TT(e,{fieldNames:t,childrenAsData:o}={}){let n=[],{label:r,value:i,options:s,groupLabel:a}=Fv(t,!1);function c(l,d){Array.isArray(l)&&l.forEach(u=>{if(d||!(s in u)){let m=u[i];n.push({key:PT(u,n.length),groupOption:d,data:u,label:u[r],value:m})}else{let m=u[a];m===void 0&&o&&(m=u.label),n.push({key:PT(u,n.length),group:!0,data:u,label:m}),c(u[s],!0)}})}return c(e,!1),n}function Wd(e){let t={...e};return"props"in t||Object.defineProperty(t,"props",{get(){return Kt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var MT=(e,t,o)=>{if(!t||!t.length)return null;let n=!1,r=(s,[a,...c])=>{if(!a)return[s];let l=s.split(a);return n=n||l.length>1,l.reduce((d,u)=>[...d,...r(u,c)],[]).filter(Boolean)},i=r(e,t);return n?typeof o<"u"?i.slice(0,o):i:null};var OT=M(require("react"));function zv(e){let{visible:t,values:o}=e;if(!t)return null;let n=50;return OT.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`${o.slice(0,n).map(({label:r,value:i})=>["number","string"].includes(typeof r)?r:i).join(", ")}`,o.length>n?", ...":null)}var Ma=require("react"),m4=e=>{let t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},pg=(e,t=1)=>{if(t<=0){e();return}m4(()=>{pg(e,t-1)})};function Bv(e,t,o,n){let[r,i]=(0,Ma.useState)(!1);(0,Ma.useEffect)(()=>{i(!0)},[]);let[s,a]=st(e,t),[c,l]=(0,Ma.useState)(!1),d=r?s:!1,u=n(d),m=(0,Ma.useRef)(0),f=Ie(p=>{o&&u!==p&&o(p),a(p)}),g=Ie((p,h={})=>{let{cancelFun:y}=h;m.current+=1;let x=m.current,b=typeof p=="boolean"?p:!u;l(!b);function S(){x===m.current&&!y?.()&&(f(b),l(!1))}b?S():pg(()=>{S()})});return[d,u,g,c]}var Do=M(require("react"));var AT=M(require("react"));function fg(e){let{children:t,...o}=e;return t?AT.createElement("div",o,t):null}var Gd=M(require("react"));var fn=M(require("react"));var pn=M(require("react"));var gg=M(require("react")),kT=gg.createContext(null);function gi(){return gg.useContext(kT)}var LT=kT;var p4=pn.forwardRef((e,t)=>{let{onChange:o,onKeyDown:n,onBlur:r,style:i,syncWidth:s,value:a,className:c,autoComplete:l,...d}=e,{prefixCls:u,mode:m,onSearch:f,onSearchSubmit:g,onInputBlur:p,autoFocus:h,tokenWithEnter:y,placeholder:x,components:{input:b="input"}}=gi(),{id:S,classNames:v,styles:C,open:R,activeDescendantId:w,role:I,disabled:P}=mn()||{},N=$(`${u}-input`,v?.input,c),E=pn.useRef(!1),O=pn.useRef(null),L=pn.useRef(null);pn.useImperativeHandle(t,()=>L.current);let k=B=>{let{value:j}=B.target;if(y&&O.current&&/[\r\n]/.test(O.current)){let U=O.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");j=j.replace(U,O.current)}O.current=null,f&&f(j,!0,E.current),o?.(B)},z=B=>{let{key:j}=B,{value:U}=B.currentTarget;j==="Enter"&&m==="tags"&&!R&&!E.current&&g&&g(U),n?.(B)},_=B=>{p?.(),r?.(B)},T=()=>{E.current=!0},D=B=>{if(E.current=!1,m!=="combobox"){let{value:j}=B.currentTarget;f?.(j,!0,!1)}},F=B=>{let{clipboardData:j}=B,U=j?.getData("text");O.current=U||""},[G,H]=pn.useState(void 0);it(()=>{let B=L.current;if(s&&B){B.style.width="0px";let j=B.scrollWidth;H(j),B.style.width=""}},[s,a]);let W={id:S,type:"text",...d,ref:L,style:{...C?.input,...i,"--select-input-width":G},autoFocus:h,autoComplete:l||"new-password",className:N,disabled:P,value:a||"",onChange:k,onKeyDown:z,onBlur:_,onPaste:F,onCompositionStart:T,onCompositionEnd:D,role:I||"combobox","aria-expanded":R||!1,"aria-haspopup":"listbox","aria-owns":R?`${S}_list`:void 0,"aria-autocomplete":"list","aria-controls":R?`${S}_list`:void 0,"aria-activedescendant":R?w:void 0};if(pn.isValidElement(b)){let B=b.props||{},j={placeholder:e.placeholder||x,...W,...B};return Object.keys(B).forEach(U=>{let Z=B[U];typeof Z=="function"&&(j[U]=(...Y)=>{Z(...Y),W[U]?.(...Y)})}),j.ref=Mt(b.ref,W.ref),pn.cloneElement(b,j)}return pn.createElement(b,W)}),hg=p4;var DT=M(require("react"));function jd(e){let{prefixCls:t,placeholder:o,displayValues:n}=gi(),{classNames:r,styles:i}=mn(),{show:s=!0}=e;return n.length?null:DT.createElement("div",{className:$(`${t}-placeholder`,r?.placeholder),style:{...s?{}:{visibility:"hidden"},...i?.placeholder}},o)}var _T=M(require("react")),f4=_T.createContext(null),Yl=f4;function Ud(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var ISe=typeof window<"u"&&window.document&&window.document.documentElement;function zT(e){return e!=null}function BT(e){return!e&&e!==0}function FT(e){return["string","number"].includes(typeof e)}function Kd(e){let t;return e&&(FT(e.title)?t=e.title.toString():FT(e.label)&&(t=e.label.toString())),t}function Hv(){return Hv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Hv.apply(this,arguments)}var g4=fn.forwardRef(({inputProps:e},t)=>{let{prefixCls:o,searchValue:n,activeValue:r,displayValues:i,maxLength:s,mode:a,components:c}=gi(),{triggerOpen:l,title:d,showSearch:u,classNames:m,styles:f}=mn(),g=fn.useContext(Yl),[p,h]=fn.useState(!1),y=a==="combobox",x=i[0],b=fn.useMemo(()=>y&&r&&!p&&l?r:u?n:"",[y,r,p,l,n,u]),[S,v,C,R]=fn.useMemo(()=>{let N,E,O;if(x&&g?.flattenOptions){let k=g.flattenOptions.find(z=>z.value===x.value);k?.data&&(N=k.data.className,E=k.data.style,O=Kd(k.data))}return x&&!O&&(O=Kd(x)),d!==void 0&&(O=d),[N,E,O,!!N||!!E]},[x,g?.flattenOptions,d]);fn.useEffect(()=>{y&&h(!1)},[y,r]);let w=x&&x.label!==null&&x.label!==void 0&&String(x.label).trim()!=="",P=!(y&&c?.input)?x?R?fn.createElement("div",{className:$(`${o}-content-value`,S),style:{...b?{visibility:"hidden"}:{},...v},title:C},x.label):x.label:fn.createElement(jd,{show:!b}):null;return fn.createElement("div",{className:$(`${o}-content`,w&&`${o}-content-has-value`,b&&`${o}-content-has-search-value`,R&&`${o}-content-has-option-style`,m?.content),style:f?.content,title:R?void 0:C},P,fn.createElement(hg,Hv({ref:t},e,{value:b,maxLength:a==="combobox"?s:void 0,onChange:N=>{h(!0),e.onChange?.(N)}})))}),HT=g4;var hi=M(require("react"));var Vv=M(require("react"));var h4=e=>{let{className:t,style:o,customizeIcon:n,customizeIconProps:r,children:i,onMouseDown:s,onClick:a}=e,c=typeof n=="function"?n(r):n;return Vv.createElement("span",{className:t,onMouseDown:l=>{l.preventDefault(),s?.(l)},style:{userSelect:"none",WebkitUserSelect:"none",...o},unselectable:"on",onClick:a,"aria-hidden":!0},c!==void 0?c:Vv.createElement("span",{className:$(t.split(/\s+/).map(l=>`${l}-icon`))},i))},yg=h4;function Wv(){return Wv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Wv.apply(this,arguments)}function y4(e){return e.key??e.value}var VT=e=>{e.preventDefault(),e.stopPropagation()},WT=hi.forwardRef(function({inputProps:t},o){let{prefixCls:n,displayValues:r,searchValue:i,mode:s,onSelectorRemove:a,removeIcon:c}=gi(),{disabled:l,showSearch:d,triggerOpen:u,rawOpen:m,toggleOpen:f,autoClearSearchValue:g,tagRender:p,maxTagPlaceholder:h,maxTagTextLength:y,maxTagCount:x,classNames:b,styles:S}=mn(),v=`${n}-selection-item`,C=i;!m&&s==="multiple"&&g!==!1&&(C="");let R=d&&C||"",w=d&&!l,I=c??"\xD7",P=h??(T=>`+ ${T.length} ...`),N=p,E=T=>{f(T)},O=T=>{a?.(T)},L=(T,D,F,G,H)=>hi.createElement("span",{title:Kd(T),className:$(v,{[`${v}-disabled`]:F},b?.item),style:S?.item},hi.createElement("span",{className:$(`${v}-content`,b?.itemContent),style:S?.itemContent},D),G&&hi.createElement(yg,{className:$(`${v}-remove`,b?.itemRemove),style:S?.itemRemove,onMouseDown:VT,onClick:H,customizeIcon:I},"\xD7")),k=(T,D,F,G,H,W,X)=>hi.createElement("span",{onMouseDown:j=>{VT(j),E(!u)}},N({label:D,value:T,index:X?.index,disabled:F,closable:G,onClose:H,isMaxTag:!!W})),z=(T,D)=>{let{disabled:F,label:G,value:H}=T,W=!l&&!F,X=G;if(typeof y=="number"&&(typeof G=="string"||typeof G=="number")){let j=String(X);j.length>y&&(X=`${j.slice(0,y)}...`)}let B=j=>{j&&j.stopPropagation(),O(T)};return typeof N=="function"?k(H,X,F,W,B,void 0,D):L(T,X,F,W,B)},_=T=>{if(!r.length)return null;let D=typeof P=="function"?P(T):P;return typeof N=="function"?k(void 0,D,!1,!1,void 0,!0):L({title:D},D,!1)};return hi.createElement(ii,{prefixCls:`${n}-content`,className:b?.content,style:S?.content,prefix:!r.length&&!R&&hi.createElement(jd,null),data:r,renderItem:z,renderRest:_,suffix:hi.createElement(hg,Wv({ref:o,disabled:l,readOnly:!w},t,{value:R||"",syncWidth:!0})),itemKey:y4,maxCount:x})});var b4=Gd.forwardRef(function(t,o){let{multiple:n,onInputKeyDown:r,tabIndex:i}=gi(),s=mn(),{showSearch:a}=s,l={...Mo(s,{aria:!0}),onKeyDown:r,readOnly:!a,tabIndex:i};return n?Gd.createElement(WT,{ref:o,inputProps:l}):Gd.createElement(HT,{ref:o,inputProps:l})}),jT=b4;function UT(e){return e&&![Me.ESC,Me.SHIFT,Me.BACKSPACE,Me.TAB,Me.WIN_KEY,Me.ALT,Me.META,Me.WIN_KEY_RIGHT,Me.CTRL,Me.SEMICOLON,Me.EQUALS,Me.CAPS_LOCK,Me.CONTEXT_MENU,Me.UP,Me.LEFT,Me.RIGHT,Me.F1,Me.F2,Me.F3,Me.F4,Me.F5,Me.F6,Me.F7,Me.F8,Me.F9,Me.F10,Me.F11,Me.F12].includes(e)}function bg(){return bg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},bg.apply(this,arguments)}var x4=["value","onChange","removeIcon","placeholder","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex","activeValue","onSelectorRemove","focused"],KT=Do.forwardRef(function(t,o){let{prefixCls:n,className:r,style:i,prefix:s,suffix:a,clearIcon:c,clearLabel:l,children:d,multiple:u,displayValues:m,placeholder:f,mode:g,searchValue:p,onSearch:h,onSearchSubmit:y,onInputBlur:x,maxLength:b,autoFocus:S,onMouseDown:v,onClearMouseDown:C,onInputKeyDown:R,onSelectorRemove:w,tokenWithEnter:I,components:P,...N}=t,{triggerOpen:E,toggleOpen:O,showSearch:L,disabled:k,loading:z,classNames:_,styles:T}=mn(),D=Do.useRef(null),F=Do.useRef(null),G=Ie(Y=>{let{which:K}=Y,V=F.current instanceof HTMLTextAreaElement;if(!V&&E&&(K===Me.UP||K===Me.DOWN)&&Y.preventDefault(),R&&R(Y),V&&!E&&~[Me.UP,Me.DOWN,Me.LEFT,Me.RIGHT].indexOf(K))return;!(Y.ctrlKey||Y.altKey||Y.metaKey)&&UT(K)&&O(!0)});Do.useImperativeHandle(o,()=>({focus:Y=>{(F.current||D.current).focus?.(Y)},blur:()=>{(F.current||D.current).blur?.()},nativeElement:Gn(D.current)}));let H=Ie(Y=>{if(!k){let K=Gn(F.current);Y.nativeEvent._ori_target=K;let V=K===Y.target||K?.contains(Y.target);K&&!V&&Y.preventDefault();let Q=E&&!u&&(g==="combobox"||L)||E&&u&&V;Y.nativeEvent._select_lazy?E&&!u&&O(!1):(F.current?.focus(),Q||O())}v?.(Y)}),W=Y=>{(Y.key==="Enter"||Y.key===" ")&&Y.stopPropagation()},{root:X}=P,B=Ke(N,x4),j=Mo(B,{aria:!0}),U=Object.keys(j),Z={...t,onInputKeyDown:G};if(X){let Y=X.props||{},K={...Y,...B};return Object.keys(Y).forEach(V=>{let A=Y[V],ee=B[V];typeof A=="function"&&typeof ee=="function"&&(K[V]=(...Q)=>{ee(...Q),A(...Q)})}),Do.isValidElement(X)?Do.cloneElement(X,{...K,ref:Mt(X.ref,D)}):Do.createElement(X,bg({},K,{ref:D}))}return Do.createElement(LT.Provider,{value:Z},Do.createElement("div",bg({},Ke(B,U),{ref:D,className:r,style:i,onMouseDown:H}),Do.createElement(fg,{className:$(`${n}-prefix`,_?.prefix),style:T?.prefix},s),Do.createElement(jT,{ref:F}),Do.createElement(fg,{className:$(`${n}-suffix`,{[`${n}-suffix-loading`]:z},_?.suffix),style:T?.suffix},a),c&&Do.createElement("button",{type:"button","aria-label":l,className:$(`${n}-clear`,_?.clear),style:T?.clear,onMouseDown:Y=>{Y.preventDefault(),Y.nativeEvent._select_lazy=!0},onKeyDown:W,onClick:C},c),d))});var GT=M(require("react"));function jv(e,t,o){return GT.useMemo(()=>{let{root:n,input:r}=e||{};return o&&(n=o()),t&&(r=t()),{root:n,input:r}},[e,t,o])}function Uv(){return Uv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Uv.apply(this,arguments)}var qd=e=>e==="tags"||e==="multiple",v4=_t.forwardRef((e,t)=>{let{id:o,prefixCls:n,className:r,styles:i,classNames:s,showSearch:a,tagRender:c,showScrollBar:l="optional",direction:d,omitDomProps:u,displayValues:m,onDisplayValuesChange:f,emptyOptions:g,notFoundContent:p="Not Found",onClear:h,maxCount:y,placeholder:x,mode:b,disabled:S,loading:v,getInputElement:C,getRawInputElement:R,open:w,defaultOpen:I,onPopupVisibleChange:P,activeValue:N,onActiveValueChange:E,activeDescendantId:O,searchValue:L,autoClearSearchValue:k,onSearch:z,onSearchSplit:_,tokenSeparators:T,allowClear:D,prefix:F,suffix:G,suffixIcon:H,clearIcon:W,OptionList:X,animation:B,transitionName:j,popupStyle:U,popupClassName:Z,popupMatchSelectWidth:Y,popupRender:K,popupAlign:V,placement:A,builtinPlacements:ee,getPopupContainer:Q,showAction:te=[],onFocus:le,onBlur:re,onKeyUp:ie,onKeyDown:Se,onMouseDown:de,components:Ee,...ae}=e,Ne=qd(b),he=_t.useRef(null),ne=_t.useRef(null),fe=_t.useRef(null),[ce,we]=_t.useState(!1);_t.useImperativeHandle(t,()=>({focus:he.current?.focus,blur:he.current?.blur,scrollTo:Ae=>fe.current?.scrollTo(Ae),nativeElement:Gn(he.current)}));let Le=jv(Ee,C,R),Ce=_t.useMemo(()=>{if(b!=="combobox")return L;let Ae=m[0]?.value;return typeof Ae=="string"||typeof Ae=="number"?String(Ae):""},[L,b,m]),pe=b==="combobox"&&typeof C=="function"&&C()||null,ue=!p&&g,[se,ve,$e,Pe]=Bv(I||!1,w,P,Ae=>S||ue?!1:Ae),Ge=_t.useMemo(()=>typeof T=="function"||(T||[]).some(Ae=>[`
|
|
230
230
|
`,`\r
|
|
231
|
-
`].includes(Ae)),[T]),qe=_t.useMemo(()=>typeof T=="function"?(Ae,je)=>{let Tt=T(Ae),mo=Array.isArray(Tt)&&Tt.length===1&&Tt[0]===Ae;return!Array.isArray(Tt)||!Tt.length||mo?null:typeof je<"u"?Tt.slice(0,je):Tt}:(Ae,je)=>TT(Ae,T,je),[T]),mt=(Ae,je,Tt)=>{if(Ne&&Vd(y)&&m.length>=y)return;let mo=!0,vt=Ae;E?.(null);let jt=Vd(y)?y-m.length:void 0,Do=Tt?null:qe(Ae,jt);return b!=="combobox"&&Do&&(vt="",_?.(Do),$e(!1),mo=!1),F&&Ce!==vt&&F(vt,{source:je?"typing":"effect"}),Ae&&je&&mo&&$e(!0),mo},Qe=Ae=>{!Ae||!Ae.trim()||F(Ae,{source:"submit"})};_t.useEffect(()=>{!se&&!Ne&&b!=="combobox"&&mt("",!1,!1)},[se]),_t.useEffect(()=>{S&&($e(!1),we(!1))},[S,ve]);let[$t,wt]=kv(),gt=_t.useRef(!1),ht=Ae=>{let je=$t(),{key:Tt}=Ae,mo=Tt==="Enter",vt=Tt===" ";if(mo||vt){let jt=b==="combobox";(vt&&!(jt||a)||mo&&!jt)&&Ae.preventDefault(),ve||$e(!0)}if(wt(!!Ce),Tt==="Backspace"&&!je&&Ne&&!Ce&&m.length){let jt=[...m],Do=null;for(let hn=jt.length-1;hn>=0;hn-=1){let Pr=jt[hn];if(!Pr.disabled){jt.splice(hn,1),Do=Pr;break}}Do&&f(jt,{type:"remove",values:[Do]})}ve&&(!mo||!gt.current)&&!vt&&(mo&&(gt.current=!0),fe.current?.onKeyDown(Ae)),Se?.(Ae)},yt=(Ae,...je)=>{ve&&fe.current?.onKeyUp(Ae,...je),Ae.key==="Enter"&&(gt.current=!1),ie?.(Ae,...je)},Rt=Ie(Ae=>{let je=m.filter(Tt=>Tt!==Ae);f(je,{type:"remove",values:[Ae]})}),_e=()=>{gt.current=!1},xt=()=>[Gn(he.current),ne.current?.getPopupElement()];Dv(xt,ve,$e,!!Le.root);let be=_t.useRef(!1),oe=Ae=>{we(!0),S||(te.includes("focus")&&$e(!0),le?.(Ae))},me=()=>{ve&&!be.current&&$e(!1,{cancelFun:()=>Lv(xt(),document.activeElement)})},Q=Ae=>{we(!1),Ce&&(b==="tags"?F(Ce,{source:"submit"}):b==="multiple"&&F("",{source:"blur"})),me(),S||re?.(Ae)},ge=(Ae,...je)=>{let{target:Tt}=Ae;ne.current?.getPopupElement()?.contains(Tt)&&$e&&$e(!0),de?.(Ae,...je),be.current=!0,pg(()=>{be.current=!1})},[,ye]=_t.useState({});function ke(){ye({})}let Je;Le.root&&(Je=Ae=>{$e(Ae)});let At=_t.useMemo(()=>({...e,notFoundContent:p,open:ve,triggerOpen:ve,rawOpen:se,id:o,showSearch:a,multiple:Ne,toggleOpen:$e,showScrollBar:l,styles:i,classNames:s,lockOptions:Pe}),[e,p,$e,o,a,Ne,ve,se,l,i,s,Pe]),Wt=_t.useMemo(()=>{let Ae=G??V;return typeof Ae=="function"?Ae({searchValue:Ce,open:ve,focused:ce,showSearch:a,loading:v}):Ae},[G,V,Ce,ve,ce,a,v]),Pt=()=>{h?.(),he.current?.focus(),f([],{type:"clear",values:m}),mt("",!1,!1)},{allowClear:to,clearIcon:ao,label:$n}=ET(n,m,L,j,S,Ce,b),ze=_t.createElement(Y,{ref:fe}),ot=$(n,r,{[`${n}-focused`]:ce,[`${n}-multiple`]:Ne,[`${n}-single`]:!Ne,[`${n}-allow-clear`]:to,[`${n}-show-arrow`]:Wt!=null,[`${n}-disabled`]:S,[`${n}-loading`]:v,[`${n}-open`]:ve,[`${n}-customize-input`]:pe,[`${n}-show-search`]:a}),dt=_t.createElement(UT,Uv({},ae,{ref:he,prefixCls:n,className:ot,focused:ce,prefix:z,suffix:Wt,clearIcon:ao,clearLabel:$n,multiple:Ne,mode:b,displayValues:m,placeholder:x,searchValue:Ce,activeValue:N,onSearch:mt,onSearchSubmit:Qe,onInputBlur:_e,onFocus:oe,onBlur:Q,onClearMouseDown:Pt,onKeyDown:ht,onKeyUp:yt,onSelectorRemove:Rt,tokenWithEnter:Ge,onMouseDown:ge,components:Le}));return dt=_t.createElement(IT,{ref:ne,disabled:S,prefixCls:n,visible:ve,popupElement:ze,animation:B,transitionName:U,popupStyle:K,popupClassName:Z,direction:d,popupMatchSelectWidth:X,popupRender:k,popupAlign:W,placement:H,builtinPlacements:ee,getPopupContainer:J,empty:g,onPopupVisibleChange:Je,onPopupMouseEnter:ke,onPopupMouseDown:ge,onPopupBlur:me},dt),_t.createElement(Av.Provider,{value:At},_t.createElement(zv,{visible:ce&&!ve,values:m}),dt)}),Kv=y4;var GT=()=>null;GT.isSelectOptGroup=!0;var Xd=GT;var qT=()=>null;qT.isSelectOption=!0;var Yd=qT;var fo=M(require("react")),Hn=require("react"),sS=require("react-dom");var Zl=M(require("react"));function Gv(){return Gv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Gv.apply(this,arguments)}var XT=Zl.forwardRef(({height:e,offsetY:t,offsetX:o,children:n,prefixCls:r,onInnerResize:i,innerProps:s,rtl:a,extra:c},l)=>{let d={},u={display:"flex",flexDirection:"column"};return t!==void 0&&(d={height:e,position:"relative",overflow:"hidden"},u={...u,transform:`translateY(${t}px)`,[a?"marginRight":"marginLeft"]:-o||0,position:"absolute",left:0,right:0,top:0}),Zl.createElement("div",{style:d},Zl.createElement(sn,{onResize:({offsetHeight:m})=>{m&&i&&i()}},Zl.createElement("div",Gv({style:u,className:$({[`${r}-holder-inner`]:r}),ref:l},s),n,c)))});XT.displayName="Filler";var YT=XT;var QT=M(require("react"));var xg=M(require("react"));function ZT({children:e,setRef:t}){let o=xg.useCallback(n=>{t(n)},[t]);return xg.cloneElement(e,{ref:o})}function qv(e,t,o,n,r,i,s,{getKey:a}){return e.slice(t,o+1).map((c,l)=>{let d=t+l,u=s(c,d,{style:{width:n},offsetX:r}),m=a(c);return QT.createElement(ZT,{key:m,setRef:f=>i(c,f)},u)})}var Zd=M(require("react"));function JT(e,t,o){let n=e.length,r=t.length,i,s;if(n===0&&r===0)return null;n<r?(i=e,s=t):(i=t,s=e);let a={__EMPTY_ITEM__:!0};function c(u){return u!==void 0?o(u):a}let l=null,d=Math.abs(n-r)!==1;for(let u=0;u<s.length;u+=1){let m=c(i[u]),f=c(s[u]);if(m!==f){l=u,d=d||m!==c(s[u+1]);break}}return l===null?null:{index:l,multiple:d}}function Xv(e,t,o){let[n,r]=Zd.useState(e),[i,s]=Zd.useState(null);return Zd.useEffect(()=>{let a=JT(n||[],e||[],t);a?.index!==void 0&&(o?.(a.index),s(e[a.index])),r(e)},[e]),[i]}var Oa=require("react");var b4=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),Yv=b4;var vg=require("react"),Sg=(e,t,o,n)=>{let r=(0,vg.useRef)(!1),i=(0,vg.useRef)(null);function s(){clearTimeout(i.current),r.current=!0,i.current=setTimeout(()=>{r.current=!1},50)}let a=(0,vg.useRef)({top:e,bottom:t,left:o,right:n});return a.current.top=e,a.current.bottom=t,a.current.left=o,a.current.right=n,(c,l,d=!1)=>{let u=c?l<0&&a.current.left||l>0&&a.current.right:l<0&&a.current.top||l>0&&a.current.bottom;return d&&u?(clearTimeout(i.current),r.current=!1):(!u||r.current)&&s(),!r.current&&u}};function Zv(e,t,o,n,r,i,s){let a=(0,Oa.useRef)(0),c=(0,Oa.useRef)(null),l=(0,Oa.useRef)(null),d=(0,Oa.useRef)(!1),u=Sg(t,o,n,r);function m(x,b){if(He.cancel(c.current),u(!1,b))return;let S=x;if(!S._virtualHandled)S._virtualHandled=!0;else return;a.current+=b,l.current=b,Yv||S.preventDefault(),c.current=He(()=>{let v=d.current?10:1;s(a.current*v,!1),a.current=0})}function f(x,b){s(b,!0),Yv||x.preventDefault()}let g=(0,Oa.useRef)(null),p=(0,Oa.useRef)(null);function h(x){if(!e)return;He.cancel(p.current),p.current=He(()=>{g.current=null},2);let{deltaX:b,deltaY:S,shiftKey:v}=x,C=b,R=S;(g.current==="sx"||!g.current&&v&&S&&!b)&&(C=S,R=0,g.current="sx");let w=Math.abs(C),I=Math.abs(R);g.current===null&&(g.current=i&&w>I?"x":"y"),g.current==="y"?m(x,R):f(x,C)}function y(x){e&&(d.current=x.detail===l.current)}return[h,y]}var eM=M(require("react"));function tM(e,t,o,n){let[r,i]=eM.useMemo(()=>[new Map,[]],[e,o.id,n]);return(a,c=a)=>{let l=r.get(a),d=r.get(c);if(l===void 0||d===void 0){let u=e.length;for(let m=i.length;m<u;m+=1){let f=e[m],g=t(f);r.set(g,m);let p=o.get(g)??n;if(i[m]=(i[m-1]||0)+p,g===a&&(l=m),g===c&&(d=m),l!==void 0&&d!==void 0)break}}return{top:i[l-1]||0,bottom:i[d]}}}var rM=M(require("react")),Ql=require("react");var Qv=class{maps;id=0;diffRecords=new Map;constructor(){this.maps=Object.create(null)}set(t,o){this.diffRecords.set(t,this.maps[t]),this.maps[t]=o,this.id+=1}get(t){return this.maps[t]}resetRecord(){this.diffRecords.clear()}getRecord(){return this.diffRecords}},oM=Qv;function nM(e){let t=parseFloat(e);return isNaN(t)?0:t}function Jv(e,t,o){let[n,r]=rM.useState(0),i=(0,Ql.useRef)(new Map),s=(0,Ql.useRef)(new oM),a=(0,Ql.useRef)(0);function c(){a.current+=1}function l(u=!1){c();let m=()=>{let f=!1;i.current.forEach((g,p)=>{if(g&&g.offsetParent){let{offsetHeight:h}=g,{marginTop:y,marginBottom:x}=getComputedStyle(g),b=nM(y),S=nM(x),v=h+b+S;s.current.get(p)!==v&&(s.current.set(p,v),f=!0)}}),f&&r(g=>g+1)};if(u)m();else{a.current+=1;let f=a.current;Promise.resolve().then(()=>{f===a.current&&m()})}}function d(u,m){let f=e(u),g=i.current.get(f);m?(i.current.set(f,m),l()):i.current.delete(f),!g!=!m&&(m?t?.(u):o?.(u))}return(0,Ql.useEffect)(()=>c,[]),[d,l,s.current,n]}var Jl=require("react"),iM=14/15;function eS(e,t,o){let n=(0,Jl.useRef)(!1),r=(0,Jl.useRef)(0),i=(0,Jl.useRef)(0),s=(0,Jl.useRef)(null),a=(0,Jl.useRef)(null),c,l=m=>{if(n.current){let f=Math.ceil(m.touches[0].pageX),g=Math.ceil(m.touches[0].pageY),p=r.current-f,h=i.current-g,y=Math.abs(p)>Math.abs(h);y?r.current=f:i.current=g;let x=o(y,y?p:h,!1,m);x&&m.preventDefault(),clearInterval(a.current),x&&(a.current=setInterval(()=>{y?p*=iM:h*=iM;let b=Math.floor(y?p:h);(!o(y,b,!0)||Math.abs(b)<=.1)&&clearInterval(a.current)},16))}},d=()=>{n.current=!1,c()},u=m=>{c(),m.touches.length===1&&!n.current&&(n.current=!0,r.current=Math.ceil(m.touches[0].pageX),i.current=Math.ceil(m.touches[0].pageY),s.current=m.target,s.current.addEventListener("touchmove",l,{passive:!1}),s.current.addEventListener("touchend",d,{passive:!0}))};c=()=>{s.current&&(s.current.removeEventListener("touchmove",l),s.current.removeEventListener("touchend",d))},it(()=>(e&&t.current.addEventListener("touchstart",u,{passive:!0}),()=>{t.current?.removeEventListener("touchstart",u),c(),clearInterval(a.current)}),[e])}var aM=M(require("react"));function sM(e){return Math.floor(e**.5)}function Qd(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function x4(e){let t=e;for(;t;){if(t.draggable)return!0;t=t.parentElement}return!1}function tS(e,t,o){aM.useEffect(()=>{let n=t.current;if(e&&n){let r=!1,i,s,a=()=>{He.cancel(i)},c=()=>{a(),i=He(()=>{o(s),c()})},l=()=>{r=!1,a()},d=m=>{if(x4(m.target)||m.button!==0)return;let f=m;f._virtualHandled||(f._virtualHandled=!0,r=!0)},u=m=>{if(r){let f=Qd(m,!1),{top:g,bottom:p}=n.getBoundingClientRect();if(f<=g){let h=g-f;s=-sM(h),c()}else if(f>=p){let h=f-p;s=sM(h),c()}else a()}};return n.addEventListener("mousedown",d),n.ownerDocument.addEventListener("mouseup",l),n.ownerDocument.addEventListener("mousemove",u),n.ownerDocument.addEventListener("dragend",l),()=>{n.removeEventListener("mousedown",d),n.ownerDocument.removeEventListener("mouseup",l),n.ownerDocument.removeEventListener("mousemove",u),n.ownerDocument.removeEventListener("dragend",l),a()}}},[e])}var Cg=M(require("react"));var v4=10;function S4(e,t){let o=typeof e=="function"?e(t):e;return Number.isFinite(o)?o:0}function oS(e,t,o,n,r,i,s,a,c){let l=Cg.useRef(void 0),[d,u]=Cg.useState(null);return it(()=>{if(d&&d.times<v4){if(!e.current){u(C=>({...C}));return}s();let{targetAlign:m,originAlign:f,offset:g}=d,p=d.index>=0?d.index:t.findIndex(C=>r(C)===d.key),h=m||f,y=S4(g,{getSize:i,align:h}),x=e.current.clientHeight,b=p<0,S=m,v=null;if(x&&p>=0){let C=0,R=0,w=0,I=Math.min(t.length-1,p);for(let N=0;N<=I;N+=1){let E=r(t[N]);R=C;let O=o.get(E);w=R+(O===void 0?n:O),C=w}let P=h==="top"?y:x-y;for(let N=I;N>=0;N-=1){let E=r(t[N]),O=o.get(E);if(O===void 0){b=!0;break}if(P-=O,P<=0)break}switch(h){case"top":v=R-y;break;case"bottom":v=w-x+y;break;default:{let{scrollTop:N}=e.current,E=N+x;R<N?S="top":w>E&&(S="bottom")}}v!==null&&a(v),v!==d.lastTop&&(b=!0)}b&&u(C=>({...C,times:C.times+1,index:p,targetAlign:S,lastTop:v}))}},[d,e.current]),m=>{if(m==null){c();return}if(He.cancel(l.current),typeof m=="number")a(m);else if(m&&typeof m=="object"){let f,g,{align:p}=m;"index"in m?{index:f}=m:(g=m.key,f=t.findIndex(y=>r(y)===g));let{offset:h=0}=m;u({times:0,index:f,key:g,offset:h,originAlign:p})}}}var eo=M(require("react"));function lM(e,t,o){if(t<=0||o<=0)return 0;let r=Math.max(Math.min(e,o),0)/o,i=Math.ceil(r*t);return i=Math.max(i,0),i=Math.min(i,t),i}var C4=eo.forwardRef((e,t)=>{let{prefixCls:o,rtl:n,scrollOffset:r,scrollRange:i,onStartMove:s,onStopMove:a,onScroll:c,horizontal:l,spinSize:d,containerSize:u,style:m,thumbStyle:f,showScrollBar:g}=e,[p,h]=eo.useState(!1),[y,x]=eo.useState(null),[b,S]=eo.useState(null),v=!n,C=eo.useRef(null),R=eo.useRef(null),[w,I]=eo.useState(g),P=eo.useRef(void 0),N=()=>{g===!0||g===!1||(clearTimeout(P.current),I(!0),P.current=setTimeout(()=>{I(!1)},3e3))},E=i-u||0,O=u-d||0,D=eo.useMemo(()=>r===0||E===0?0:r/E*O,[r,E,O]),A=B=>!!B&&R.current?.contains(B),F=B=>{let U=C.current;if(!U)return;let K=U.getBoundingClientRect(),Z=Qd(B,l),X;if(Number.isFinite(Z)){if(l){let k=v?K.left:K.right;if(!Number.isFinite(k))return;X=(v?Z-k:k-Z)-d/2}else{if(!Number.isFinite(K.top))return;X=Z-K.top-d/2}c(lM(X,E,O),l)}},_=B=>{B.stopPropagation(),B.preventDefault(),!(B.button!==0||A(B.target))&&F(B)},T=eo.useRef({top:D,dragging:p,pageY:y,startTop:b});T.current={top:D,dragging:p,pageY:y,startTop:b};let L=Ie(B=>{h(!0),x(Qd(B,l)),S(T.current.top),s(),B.stopPropagation(),B.preventDefault()});eo.useEffect(()=>{let B=Z=>{Z.preventDefault()},U=C.current,K=R.current;return U.addEventListener("touchstart",B,{passive:!1}),K.addEventListener("touchstart",L,{passive:!1}),()=>{U.removeEventListener("touchstart",B),K.removeEventListener("touchstart",L)}},[L]);let z=eo.useRef(void 0);z.current=E;let G=eo.useRef(void 0);G.current=O,eo.useEffect(()=>{if(p){let B,U=Z=>{let{dragging:X,pageY:k,startTop:W}=T.current;He.cancel(B);let H=C.current.getBoundingClientRect(),ee=u/(l?H.width:H.height);if(X){let J=(Qd(Z,l)-k)*ee,te=W;!v&&l?te-=J:te+=J;let le=z.current,re=G.current,ie=lM(te,le,re);B=He(()=>{c(ie,l)})}},K=()=>{h(!1),a()};return window.addEventListener("mousemove",U,{passive:!0}),window.addEventListener("touchmove",U,{passive:!0}),window.addEventListener("mouseup",K,{passive:!0}),window.addEventListener("touchend",K,{passive:!0}),()=>{window.removeEventListener("mousemove",U),window.removeEventListener("touchmove",U),window.removeEventListener("mouseup",K),window.removeEventListener("touchend",K),He.cancel(B)}}},[p]),eo.useEffect(()=>(N(),()=>{clearTimeout(P.current)}),[r]),eo.useImperativeHandle(t,()=>({delayHidden:N}));let V=`${o}-scrollbar`,j={position:"absolute",visibility:w?null:"hidden"},Y={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return l?(Object.assign(j,{height:8,left:0,right:0,bottom:0}),Object.assign(Y,{height:"100%",width:d,[v?"left":"right"]:D})):(Object.assign(j,{width:8,top:0,bottom:0,[v?"right":"left"]:0}),Object.assign(Y,{width:"100%",height:d,top:D})),eo.createElement("div",{ref:C,className:$(V,{[`${V}-horizontal`]:l,[`${V}-vertical`]:!l,[`${V}-visible`]:w}),style:{...j,...m},onMouseDown:_,onMouseMove:N},eo.createElement("div",{ref:R,className:$(`${V}-thumb`,{[`${V}-thumb-moving`]:p}),style:{...Y,...f},onMouseDown:L}))}),nS=C4;function rS(e=0,t=0){let o=e/t*e;return isNaN(o)&&(o=0),o=Math.max(o,20),Math.floor(o)}function iS(){return iS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},iS.apply(this,arguments)}var w4=[],R4={overflowY:"auto",overflowAnchor:"none"};function aS(e,t){let{prefixCls:o="rc-virtual-list",className:n,height:r,itemHeight:i,fullHeight:s=!0,style:a,data:c,children:l,itemKey:d,virtual:u,direction:m,scrollWidth:f,component:g="div",onScroll:p,onVirtualScroll:h,onVisibleChange:y,innerProps:x,extraRender:b,styles:S,showScrollBar:v="optional",...C}=e,R=fo.useCallback(be=>typeof d=="function"?d(be):be?.[d],[d]),[w,I,P,N]=Jv(R,null,null),E=!!(u!==!1&&r&&i),O=fo.useMemo(()=>Object.values(P.maps).reduce((be,oe)=>be+oe,0),[P.id,P.maps]),D=E&&c&&(Math.max(i*c.length,O)>r||!!f),A=m==="rtl",F=$(o,{[`${o}-rtl`]:A},n),_=c||w4,T=(0,Hn.useRef)(null),L=(0,Hn.useRef)(null),z=(0,Hn.useRef)(null),[G,V]=(0,Hn.useState)(0),[j,Y]=(0,Hn.useState)(0),[B,U]=(0,Hn.useState)(!1),K=()=>{U(!0)},Z=()=>{U(!1)},X={getKey:R};function k(be){V(oe=>{let me;typeof be=="function"?me=be(oe):me=be;let Q=ce(me);return T.current.scrollTop=Q,Q})}let W=(0,Hn.useRef)({start:0,end:_.length}),H=(0,Hn.useRef)(void 0),[ee]=Xv(_,R);H.current=ee;let{scrollHeight:J,start:te,end:le,offset:re}=fo.useMemo(()=>{if(!E)return{scrollHeight:void 0,start:0,end:_.length-1,offset:void 0};if(!D)return{scrollHeight:L.current?.offsetHeight||0,start:0,end:_.length-1,offset:void 0};let be=0,oe,me,Q,ge=_.length;for(let ye=0;ye<ge;ye+=1){let ke=_[ye],Je=R(ke),At=P.get(Je),Wt=be+(At===void 0?i:At);Wt>=G&&oe===void 0&&(oe=ye,me=be),Wt>G+r&&Q===void 0&&(Q=ye),be=Wt}return oe===void 0&&(oe=0,me=0,Q=Math.ceil(r/i)),Q===void 0&&(Q=_.length-1),Q=Math.min(Q+1,_.length-1),{scrollHeight:be,start:oe,end:Q,offset:me}},[D,E,G,_,N,r]);W.current.start=te,W.current.end=le,fo.useLayoutEffect(()=>{let be=P.getRecord();if(be.size===1){let oe=Array.from(be.keys())[0],me=be.get(oe),Q=_[te];if(Q&&me===void 0&&R(Q)===oe){let ke=P.get(oe)-i;k(Je=>Je+ke)}}P.resetRecord()},[J]);let[ie,Se]=fo.useState({width:0,height:r}),de=be=>{Se({width:be.offsetWidth,height:be.offsetHeight})},Ee=(0,Hn.useRef)(null),ae=(0,Hn.useRef)(null),Ne=fo.useMemo(()=>rS(ie.width,f),[ie.width,f]),he=fo.useMemo(()=>rS(ie.height,J),[ie.height,J]),ne=J-r,fe=(0,Hn.useRef)(ne);fe.current=ne;function ce(be){let oe=be;return Number.isNaN(fe.current)||(oe=Math.min(oe,fe.current)),oe=Math.max(oe,0),oe}let we=G<=0,Le=G>=ne,Ce=j<=0,pe=j>=f,ue=Sg(we,Le,Ce,pe),se=()=>({x:A?-j:j,y:G}),ve=(0,Hn.useRef)(se()),$e=Ie(be=>{if(h){let oe={...se(),...be};(ve.current.x!==oe.x||ve.current.y!==oe.y)&&(h(oe),ve.current=oe)}});function Pe(be,oe){let me=be;oe?((0,sS.flushSync)(()=>{Y(me)}),$e()):k(me)}function Ge(be){let{scrollTop:oe}=be.currentTarget;oe!==G&&k(oe),p?.(be),$e()}let qe=be=>{let oe=be,me=f?f-ie.width:0;return oe=Math.max(oe,0),oe=Math.min(oe,me),oe},mt=Ie((be,oe)=>{oe?((0,sS.flushSync)(()=>{Y(me=>{let Q=me+(A?-be:be);return qe(Q)})}),$e()):k(me=>me+be)}),[Qe,$t]=Zv(E,we,Le,Ce,pe,!!f,mt);eS(E,T,(be,oe,me,Q)=>{let ge=Q;return ue(be,oe,me)?!1:!ge||!ge._virtualHandled?(ge&&(ge._virtualHandled=!0),Qe({preventDefault(){},deltaX:be?oe:0,deltaY:be?0:oe}),!0):!1}),tS(D,T,be=>{k(oe=>oe+be)}),it(()=>{function be(me){let Q=we&&me.detail<0,ge=Le&&me.detail>0;E&&!Q&&!ge&&me.preventDefault()}let oe=T.current;return oe.addEventListener("wheel",Qe,{passive:!1}),oe.addEventListener("DOMMouseScroll",$t,{passive:!0}),oe.addEventListener("MozMousePixelScroll",be,{passive:!1}),()=>{oe.removeEventListener("wheel",Qe),oe.removeEventListener("DOMMouseScroll",$t),oe.removeEventListener("MozMousePixelScroll",be)}},[E,we,Le]),it(()=>{if(f){let be=qe(j);Y(be),$e({x:be})}},[ie.width,f]);let wt=()=>{Ee.current?.delayHidden(),ae.current?.delayHidden()},gt=tM(_,R,P,i),ht=oS(T,_,P,i,R,gt,()=>I(!0),k,wt);fo.useImperativeHandle(t,()=>({nativeElement:z.current,getScrollInfo:se,scrollTo:be=>{function oe(me){return me&&typeof me=="object"&&("left"in me||"top"in me)}oe(be)?(be.left!==void 0&&Y(qe(be.left)),ht(be.top)):ht(be)}})),it(()=>{if(y){let be=_.slice(te,le+1);y(be,_)}},[te,le,_]);let yt=b?.({start:te,end:le,virtual:D,offsetX:j,scrollTop:G,offsetY:re,rtl:A,getSize:gt}),Rt=qv(_,te,le,f,j,w,l,X),_e=null;r&&(_e={[s?"height":"maxHeight"]:r,...R4},E&&(_e.overflowY="hidden",f&&(_e.overflowX="hidden"),B&&(_e.pointerEvents="none")));let xt={};return A&&(xt.dir="rtl"),fo.createElement("div",iS({ref:z,style:{...a,position:"relative"},className:F},xt,C),fo.createElement(sn,{onResize:de},fo.createElement(g,{className:`${o}-holder`,style:_e,ref:T,onScroll:Ge,onMouseEnter:wt},fo.createElement(YT,{prefixCls:o,height:J,offsetX:j,offsetY:re,scrollWidth:f,onInnerResize:I,ref:L,innerProps:x,rtl:A,extra:yt},Rt))),D&&J>r&&fo.createElement(nS,{ref:Ee,prefixCls:o,scrollOffset:G,scrollRange:J,rtl:A,onScroll:Pe,onStartMove:K,onStopMove:Z,spinSize:he,containerSize:ie.height,style:S?.verticalScrollBar,thumbStyle:S?.verticalScrollBarThumb,showScrollBar:v}),D&&f>ie.width&&fo.createElement(nS,{ref:ae,prefixCls:o,scrollOffset:j,scrollRange:f,rtl:A,onScroll:Pe,onStartMove:K,onStopMove:Z,spinSize:Ne,containerSize:ie.width,horizontal:!0,style:S?.horizontalScrollBar,thumbStyle:S?.horizontalScrollBarThumb,showScrollBar:v}))}var cM=fo.forwardRef(aS);cM.displayName="List";var dM=cM;var uM=M(require("react"));var E4=uM.forwardRef((e,t)=>aS({...e,virtual:!1},t));E4.displayName="List";var mM=dM;var kt=M(require("react")),lS=require("react");function pM(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}function Jd(){return Jd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Jd.apply(this,arguments)}function fM(e){return typeof e=="string"||typeof e=="number"}var $4=(e,t)=>{let{prefixCls:o,id:n,open:r,multiple:i,mode:s,searchValue:a,toggleOpen:c,notFoundContent:l,onPopupScroll:d,showScrollBar:u,lockOptions:m}=mn(),{maxCount:f,flattenOptions:g,onActiveValue:p,defaultActiveFirstOption:h,onSelect:y,menuItemSelectedIcon:x,rawValues:b,fieldNames:S,virtual:v,direction:C,listHeight:R,listItemHeight:w,optionRender:I,classNames:P,styles:N}=kt.useContext(Yl),E=`${o}-item`,O=Kn(()=>g,[r,m],(k,W)=>W[0]&&!W[1]),D=kt.useRef(null),A=kt.useMemo(()=>i&&Vd(f)&&b?.size>=f,[i,f,b?.size]),F=k=>{k.preventDefault()},_=k=>{D.current?.scrollTo(typeof k=="number"?{index:k}:k)},T=kt.useCallback(k=>s==="combobox"?!1:b.has(k),[s,[...b].toString(),b.size]),L=(k,W=1)=>{let H=O.length;for(let ee=0;ee<H;ee+=1){let J=(k+ee*W+H)%H,{group:te,data:le}=O[J]||{};if(!te&&!le?.disabled&&(T(le.value)||!A))return J}return-1},[z,G]=kt.useState(()=>L(0)),V=(k,W=!1)=>{G(k);let H={source:W?"keyboard":"mouse"},ee=O[k];if(!ee){p(null,-1,H);return}p(ee.value,k,H)};(0,lS.useEffect)(()=>{V(h!==!1?L(0):-1)},[O.length,a]);let j=kt.useCallback(k=>s==="combobox"?String(k).toLowerCase()===a.toLowerCase():b.has(k),[s,a,[...b].toString(),b.size]);(0,lS.useEffect)(()=>{let k;if(!i&&r&&b.size===1){let W=Array.from(b)[0],H=O.findIndex(({data:ee})=>a?String(ee.value).startsWith(a):ee.value===W);H!==-1&&(V(H),k=setTimeout(()=>{_(H)}))}return r&&D.current?.scrollTo(void 0),()=>clearTimeout(k)},[r,a]);let Y=k=>{k!==void 0&&y(k,{selected:!b.has(k)}),i||c(!1)};if(kt.useImperativeHandle(t,()=>({onKeyDown:k=>{let{which:W,ctrlKey:H}=k;switch(W){case Me.N:case Me.P:case Me.UP:case Me.DOWN:{let ee=0;if(W===Me.UP?ee=-1:W===Me.DOWN?ee=1:pM()&&H&&(W===Me.N?ee=1:W===Me.P&&(ee=-1)),ee!==0){let J=L(z+ee,ee);_(J),V(J,!0)}break}case Me.TAB:case Me.ENTER:{let ee=O[z];if(!ee||ee.data.disabled)return Y(void 0);!A||b.has(ee.value)?Y(ee.value):Y(void 0),r&&k.preventDefault();break}case Me.ESC:c(!1),r&&k.stopPropagation()}},onKeyUp:()=>{},scrollTo:k=>{_(k)}})),O.length===0)return kt.createElement("div",{role:"listbox",id:`${n}_list`,className:`${E}-empty`,onMouseDown:F},l);let B=Object.keys(S).map(k=>S[k]),U=k=>k.label;function K(k,W){let{group:H}=k;return{role:H?"presentation":"option",id:`${n}_list_${W}`}}let Z=k=>{let W=O[k];if(!W)return null;let H=W.data||{},{value:ee,disabled:J}=H,{group:te}=W,le=To(H,!0),re=U(W);return W?kt.createElement("div",Jd({"aria-label":typeof re=="string"&&!te?re:null},le,{key:k},K(W,k),{"aria-selected":j(ee),"aria-disabled":J}),ee):null},X={role:"listbox",id:`${n}_list`};return kt.createElement(kt.Fragment,null,v&&kt.createElement("div",Jd({},X,{style:{height:0,width:0,overflow:"hidden"}}),Z(z-1),Z(z),Z(z+1)),kt.createElement(mM,{prefixCls:`${o}-dropdown-list`,itemKey:"key",ref:D,data:O,height:R,itemHeight:w,fullHeight:!1,onMouseDown:F,onScroll:d,virtual:v,direction:C,innerProps:v?null:X,showScrollBar:u,className:P?.popup?.list,style:N?.popup?.list},(k,W)=>{let{group:H,groupOption:ee,data:J,label:te,value:le}=k,{key:re}=J;if(H){let se=J.title??(fM(te)?te.toString():void 0);return kt.createElement("div",{className:$(E,`${E}-group`,J.className),title:se},te!==void 0?te:re)}let{disabled:ie,title:Se,children:de,style:Ee,className:ae,...Ne}=J,he=Ke(Ne,B),ne=T(le),fe=ie||!ne&&A,ce=`${E}-option`,we=$(E,ce,ae,P?.popup?.listItem,{[`${ce}-grouped`]:ee,[`${ce}-active`]:z===W&&!fe,[`${ce}-disabled`]:fe,[`${ce}-selected`]:ne}),Le=U(k),Ce=!x||typeof x=="function"||ne,pe=typeof Le=="number"?Le:Le||le,ue=fM(pe)?pe.toString():void 0;return Se!==void 0&&(ue=Se),kt.createElement("div",Jd({},To(he),v?{}:K(k,W),{"aria-selected":v?void 0:j(le),"aria-disabled":fe,className:we,title:ue,onMouseMove:()=>{z===W||fe||V(W)},onClick:()=>{fe||Y(le)},style:{...N?.popup?.listItem,...Ee}}),kt.createElement("div",{className:`${ce}-content`},typeof I=="function"?I(k,{index:W}):pe),kt.isValidElement(x)||ne,Ce&&kt.createElement(yg,{className:`${E}-option-state`,customizeIcon:x,customizeIconProps:{value:le,disabled:fe,isSelected:ne}},ne?"\u2713":null))}))},I4=kt.forwardRef($4),gM=I4;var ec=M(require("react")),hM=(e,t)=>{let o=ec.useRef({values:new Map,options:new Map}),n=ec.useMemo(()=>{let{values:i,options:s}=o.current,a=e.map(d=>d.label===void 0?{...d,label:i.get(d.value)?.label}:d),c=new Map,l=new Map;return a.forEach(d=>{c.set(d.value,d),l.set(d.value,t.get(d.value)||s.get(d.value))}),o.current.values=c,o.current.options=l,a},[e,t]),r=ec.useCallback(i=>t.get(i)||o.current.options.get(i),[t]);return[n,r]};var yM=M(require("react"));function cS(e,t){return Ud(e).join("").toUpperCase().includes(t)}var bM=(e,t,o,n,r)=>yM.useMemo(()=>{if(!o||n===!1)return e;let{options:i,label:s,value:a}=t,c=[],l=typeof n=="function",d=o.toUpperCase(),u=l?n:(f,g)=>r&&r.length?r.some(p=>cS(g[p],d)):g[i]?cS(g[s!=="children"?s:"label"],d):cS(g[a],d),m=l?f=>Wd(f):f=>f;return e.forEach(f=>{if(f[i]){if(u(o,m(f)))c.push(f);else{let p=f[i].filter(h=>u(o,m(h)));p.length&&c.push({...f,[i]:p})}return}u(o,m(f))&&c.push(f)}),c},[e,n,r,o,t]);var vM=M(require("react"));var xM=M(require("react"));function N4(e){let{key:t,props:{children:o,value:n,...r}}=e;return{key:t,value:n!==void 0?n:t,children:o,...r}}function wg(e,t=!1){return co(e).map((o,n)=>{if(!xM.isValidElement(o)||!o.type)return null;let{type:{isSelectOptGroup:r},key:i,props:{children:s,...a}}=o;return t||!r?N4(o):{key:`__RC_SELECT_GRP__${i===null?n:i}__`,label:i,...a,options:wg(s)}}).filter(o=>o)}var P4=(e,t,o,n,r)=>vM.useMemo(()=>{let i=e;!e&&(i=wg(t));let a=new Map,c=new Map,l=(u,m,f)=>{f&&typeof f=="string"&&u.set(m[f],m)},d=(u,m=!1)=>{for(let f=0;f<u.length;f+=1){let g=u[f];!g[o.options]||m?(a.set(g[o.value],g),l(c,g,o.label),n.forEach(p=>{l(c,g,p)}),l(c,g,r)):d(g[o.options],!0)}};return d(i),{options:i,valueOptions:a,labelOptions:c}},[e,t,o,n,r]),SM=P4;var Rg=M(require("react"));function Eg(e){let t=Rg.useRef(e);return t.current=e,Rg.useCallback((...n)=>t.current(...n),[])}var T4=M(require("react"));var CM=M(require("react"));function dS(e,t,o){let{filterOption:n,searchValue:r,optionFilterProp:i,filterSort:s,onSearch:a,autoClearSearchValue:c}=t;return CM.useMemo(()=>{let l=typeof e=="object",d={filterOption:n,searchValue:r,optionFilterProp:i,filterSort:s,onSearch:a,autoClearSearchValue:c,...l?e:{}};return[l||o==="combobox"||o==="tags"||o==="multiple"&&e===void 0?!0:e,d]},[o,e,n,r,i,s,a,c])}function uS(){return uS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},uS.apply(this,arguments)}var M4=["inputValue"];function O4(e){return!e||typeof e!="object"}var A4=Ft.forwardRef((e,t)=>{let{id:o,mode:n,prefixCls:r="rc-select",backfill:i,fieldNames:s,showSearch:a,searchValue:c,onSearch:l,autoClearSearchValue:d,filterOption:u,optionFilterProp:m,filterSort:f,onSelect:g,onDeselect:p,onActive:h,popupMatchSelectWidth:y=!0,optionLabelProp:x,options:b,optionRender:S,children:v,defaultActiveFirstOption:C,menuItemSelectedIcon:R,virtual:w,direction:I,listHeight:P=200,listItemHeight:N=20,labelRender:E,value:O,defaultValue:D,labelInValue:A,onChange:F,maxCount:_,classNames:T,styles:L,...z}=e,G={searchValue:c,onSearch:l,autoClearSearchValue:d,filterOption:u,optionFilterProp:m,filterSort:f},[V,j]=dS(a,G,n),{filterOption:Y,searchValue:B,optionFilterProp:U,filterSort:K,onSearch:Z,autoClearSearchValue:X=!0}=j,k=Ft.useMemo(()=>U?Array.isArray(U)?U:[U]:[],[U]),W=Co(o),H=qd(n),ee=!!(!b&&v),J=Ft.useMemo(()=>Y===void 0&&n==="combobox"?!1:Y,[Y,n]),te=Ft.useMemo(()=>Fv(s,ee),[JSON.stringify(s),ee]),[le,re]=st("",B),ie=le||"",Se=SM(b,v,te,k,x),{valueOptions:de,labelOptions:Ee,options:ae}=Se,Ne=Ft.useCallback(Q=>Ud(Q).map(ye=>{let ke,Je,At,Wt;O4(ye)?ke=ye:(Je=ye.label,ke=ye.value);let Pt=de.get(ke);return Pt&&(Je===void 0&&(Je=Pt?.[x||te.label]),At=Pt?.disabled,Wt=Pt?.title),{label:Je,value:ke,key:ke,disabled:At,title:Wt}}),[te,x,de]),[he,ne]=st(D,O),fe=Ft.useMemo(()=>{let ge=Ne(H&&he===null?[]:he);return n==="combobox"&&zT(ge[0]?.value)?[]:ge},[he,Ne,n,H]),[ce,we]=hM(fe,de),Le=Ft.useMemo(()=>{if(!n&&ce.length===1){let Q=ce[0];if(Q.value===null&&(Q.label===null||Q.label===void 0))return[]}return ce.map(Q=>({...Q,label:(typeof E=="function"?E(Q):Q.label)??Q.value}))},[n,ce,E]),Ce=Ft.useMemo(()=>new Set(ce.map(Q=>Q.value)),[ce]);Ft.useEffect(()=>{if(n==="combobox"){let Q=ce[0]?.value;re(FT(Q)?String(Q):"")}},[ce]);let pe=Eg((Q,ge)=>{let ye=ge??Q;return{[te.value]:Q,[te.label]:ye}}),ue=Ft.useMemo(()=>{if(n!=="tags")return ae;let Q=[...ae],ge=ye=>de.has(ye);return[...ce].sort((ye,ke)=>ye.value<ke.value?-1:1).forEach(ye=>{let ke=ye.value;ge(ke)||Q.push(pe(ke,ye.label))}),Q},[pe,ae,de,ce,n]),se=bM(ue,te,ie,J,k),ve=Ft.useMemo(()=>{let Q=ge=>k.length?k.some(ye=>ge?.[ye]===ie):ge?.value===ie;return n!=="tags"||!ie||se.some(ge=>Q(ge))||se.some(ge=>ge[te.value]===ie)||de.get(ie)?.disabled?se:[pe(ie),...se]},[pe,k,n,se,ie,te,de]),$e=Q=>[...Q].sort((ye,ke)=>K(ye,ke,{searchValue:ie})).map(ye=>Array.isArray(ye.options)?{...ye,options:ye.options.length>0?$e(ye.options):ye.options}:ye),Pe=Ft.useMemo(()=>K?$e(ve):ve,[ve,K,ie]),Ge=Ft.useMemo(()=>PT(Pe,{fieldNames:te,childrenAsData:ee}),[Pe,te,ee]),qe=Q=>{let ge=Ne(Q);if(ne(ge),F&&(ge.length!==ce.length||ge.some((ye,ke)=>ce[ke]?.value!==ye?.value))){let ye=A?ge.map(({label:Je,value:At})=>({label:Je,value:At})):ge.map(Je=>Je.value),ke=ge.map(Je=>Wd(we(Je.value)));F(H?ye:ye[0],H?ke:ke[0])}},[mt,Qe]=Ft.useState(null),[$t,wt]=Ft.useState(0),gt=C!==void 0?C:n!=="combobox",ht=Ft.useRef(void 0),yt=Ft.useCallback((Q,ge,{source:ye="keyboard"}={})=>{wt(ge),i&&n==="combobox"&&Q!==null&&ye==="keyboard"&&Qe(String(Q));let ke=Promise.resolve().then(()=>{ht.current===ke&&h?.(Q)});ht.current=ke},[i,n,h]),Rt=(Q,ge,ye)=>{let ke=()=>{let Je=we(Q);return[A?{label:Je?.[te.label],value:Q}:Q,Wd(Je)]};if(ge&&g){let[Je,At]=ke();g(Je,At)}else if(!ge&&p&&ye!=="clear"){let[Je,At]=ke();p(Je,At)}},_e=Eg((Q,ge)=>{let ye,ke=H?ge.selected:!0;ke?ye=H?[...ce,Q]:[Q]:ye=ce.filter(Je=>Je.value!==Q),qe(ye),Rt(Q,ke),n==="combobox"?Qe(""):(!qd||X)&&(re(""),Qe(""))}),xt=(Q,ge)=>{qe(Q);let{type:ye,values:ke}=ge;(ye==="remove"||ye==="clear")&&ke.forEach(Je=>{Rt(Je.value,!1,ye)})},be=(Q,ge)=>{if(re(Q),Qe(null),ge.source==="submit"){let ye=(Q||"").trim();if(ye){if(de.get(ye)?.disabled){re("");return}let ke=Array.from(new Set([...Ce,ye]));qe(ke),Rt(ye,!0),re("")}return}ge.source!=="blur"&&(n==="combobox"&&qe(Q),Z?.(Q))},oe=Q=>{let ge=Q;n!=="tags"&&(ge=Q.map(ke=>Ee.get(ke)?.value).filter(ke=>ke!==void 0)),n==="tags"&&(ge=ge.filter(ke=>!de.get(ke)?.disabled));let ye=Array.from(new Set([...Ce,...ge]));qe(ye),ye.forEach(ke=>{Rt(ke,!0)})},me=Ft.useMemo(()=>({...Se,flattenOptions:Ge,onActiveValue:yt,defaultActiveFirstOption:gt,onSelect:_e,menuItemSelectedIcon:R,rawValues:Ce,fieldNames:te,virtual:w!==!1&&y!==!1,direction:I,listHeight:P,listItemHeight:N,childrenAsData:ee,maxCount:_,optionRender:S,classNames:T,styles:L}),[_,Se,Ge,yt,gt,_e,R,Ce,te,w,y,I,P,N,ee,S,T,L]);return Ft.createElement(Yl.Provider,{value:me},Ft.createElement(Kv,uS({},z,{id:W,prefixCls:r,ref:t,omitDomProps:M4,mode:n,classNames:T,styles:L,displayValues:Le,onDisplayValuesChange:xt,maxCount:_,direction:I,showSearch:V,searchValue:ie,onSearch:be,autoClearSearchValue:X,onSearchSplit:oe,popupMatchSelectWidth:y,OptionList:gM,emptyOptions:!Ge.length,activeValue:mt,activeDescendantId:`${W}_list_${$t}`})))}),mS=A4;mS.Option=Yd;mS.OptGroup=Xd;var wM=mS;var RM=wM;var k4=(e,t,o)=>e===!1?null:e===!0?o:e&&t&&e[t]!==void 0?e[t]:o,pS=k4;var oc=M(require("react"));var Vn=M(require("react"));var sr=M(require("react")),EM=require("react");var Vi=(e,t)=>e?.startsWith("var(")||t?.startsWith("var(")?e:new pt(e).onBackground(t).toHexString();var L4=()=>{let[,e]=Gt(),[t]=Go("Empty"),{colorBgContainer:o,colorFill:n,colorFillSecondary:r,colorFillTertiary:i,colorTextQuaternary:s}=e,{panelBgColor:a,borderColor:c,detailColor:l,shadowColor:d,iconColor:u}=(0,EM.useMemo)(()=>({panelBgColor:Vi(i,o),borderColor:Vi(s,o),detailColor:Vi(n,o),shadowColor:Vi(r,o),iconColor:o}),[o,n,r,i,s]);return sr.createElement("svg",{width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},sr.createElement("title",null,t?.description||"Empty"),sr.createElement("g",{fill:"none",fillRule:"evenodd"},sr.createElement("g",{transform:"translate(24 31.7)"},sr.createElement("ellipse",{fillOpacity:".8",fill:d,cx:"67.8",cy:"106.9",rx:"67.8",ry:"12.7"}),sr.createElement("path",{fill:c,d:"M122 69.7 98.1 40.2a6 6 0 0 0-4.6-2.2H42.1a6 6 0 0 0-4.6 2.2l-24 29.5V85H122z"}),sr.createElement("path",{fill:a,d:"M33.8 0h68a4 4 0 0 1 4 4v93.3a4 4 0 0 1-4 4h-68a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4"}),sr.createElement("path",{fill:l,d:"M42.7 10h50.2a2 2 0 0 1 2 2v25a2 2 0 0 1-2 2H42.7a2 2 0 0 1-2-2V12a2 2 0 0 1 2-2m.2 39.8h49.8a2.3 2.3 0 1 1 0 4.5H42.9a2.3 2.3 0 0 1 0-4.5m0 11.7h49.8a2.3 2.3 0 1 1 0 4.6H42.9a2.3 2.3 0 0 1 0-4.6m79 43.5a7 7 0 0 1-6.8 5.4H20.5a7 7 0 0 1-6.7-5.4l-.2-1.8V69.7h26.3c2.9 0 5.2 2.4 5.2 5.4s2.4 5.4 5.3 5.4h34.8c2.9 0 5.3-2.4 5.3-5.4s2.3-5.4 5.2-5.4H122v33.5q0 1-.2 1.8"})),sr.createElement("path",{fill:l,d:"m149.1 33.3-6.8 2.6a1 1 0 0 1-1.3-1.2l2-6.2q-4.1-4.5-4.2-10.4c0-10 10.1-18.1 22.6-18.1S184 8.1 184 18.1s-10.1 18-22.6 18q-6.8 0-12.3-2.8"}),sr.createElement("g",{fill:u,transform:"translate(149.7 15.4)"},sr.createElement("circle",{cx:"20.7",cy:"3.2",r:"2.8"}),sr.createElement("path",{d:"M5.7 5.6H0L2.9.7zM9.3.7h5v5h-5z"}))))},$M=L4;var Ls=M(require("react")),IM=require("react");var D4=()=>{let[,e]=Gt(),[t]=Go("Empty"),{colorFill:o,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:i}=e,{borderColor:s,shadowColor:a,contentColor:c}=(0,IM.useMemo)(()=>({borderColor:Vi(o,i),shadowColor:Vi(n,i),contentColor:Vi(r,i)}),[o,n,r,i]);return Ls.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},Ls.createElement("title",null,t?.description||"Empty"),Ls.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},Ls.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),Ls.createElement("g",{fillRule:"nonzero",stroke:s},Ls.createElement("path",{d:"M55 12.8 44.9 1.3Q44 0 42.9 0H21.1q-1.2 0-2 1.3L9 12.8V22h46z"}),Ls.createElement("path",{d:"M41.6 16c0-1.7 1-3 2.2-3H55v18.1c0 2.2-1.3 3.9-3 3.9H12c-1.7 0-3-1.7-3-3.9V13h11.2c1.2 0 2.2 1.3 2.2 3s1 2.9 2.2 2.9h14.8c1.2 0 2.2-1.4 2.2-3",fill:c}))))},NM=D4;var _4=e=>{let{componentCls:t,margin:o,marginXS:n,marginXL:r,fontSize:i,lineHeight:s}=e;return{[t]:{marginInline:n,fontSize:i,lineHeight:s,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:n,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:o},"&-normal":{marginBlock:r,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:n,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},PM=Ze("Empty",e=>{let{componentCls:t,controlHeightLG:o,calc:n}=e,r=Fe(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n(o).mul(2.5).equal(),emptyImgHeightMD:o,emptyImgHeightSM:n(o).mul(.875).equal()});return _4(r)});var TM=Vn.createElement($M,null),MM=Vn.createElement(NM,null),fS=Vn.forwardRef((e,t)=>{let{className:o,rootClassName:n,prefixCls:r,image:i,description:s,children:a,imageStyle:c,style:l,classNames:d,styles:u,...m}=e,{getPrefixCls:f,direction:g,className:p,style:h,classNames:y,styles:x,image:b}=Ye("empty"),S=f("empty",r),[v,C]=PM(S),R=De(h),w=De(l),[I,P]=et([y,d],[x,R,u,w],{props:e}),[N]=Go("Empty"),E=typeof s<"u"?s:N?.description,O=typeof E=="string"?E:"empty",D=i??b??TM,A=null;typeof D=="string"?A=Vn.createElement("img",{draggable:!1,alt:O,src:D}):A=D;let F=Vn.useRef(null);return Vn.useImperativeHandle(t,()=>({nativeElement:F.current})),Vn.createElement("div",{ref:F,className:$(v,C,S,p,{[`${S}-normal`]:D===MM,[`${S}-rtl`]:g==="rtl"},o,n,I.root),style:P.root,...m},Vn.createElement("div",{className:$(`${S}-image`,I.image),style:{...c,...P.image}},A),lo(E)&&Vn.createElement("div",{className:$(`${S}-description`,I.description),style:P.description},E),lo(a)&&Vn.createElement("div",{className:$(`${S}-footer`,I.footer),style:P.footer},a))});fS.PRESENTED_IMAGE_DEFAULT=TM;fS.PRESENTED_IMAGE_SIMPLE=MM;var tc=fS;var F4=e=>{let{componentName:t}=e,{getPrefixCls:o}=(0,oc.useContext)(Oe),n=o("empty");switch(t){case"Table":case"List":return oc.default.createElement(tc,{image:tc.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return oc.default.createElement(tc,{image:tc.PRESENTED_IMAGE_SIMPLE,className:`${n}-small`});case"Table.filter":return null;default:return oc.default.createElement(tc,null)}},OM=F4;var z4=e=>{let o={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:{...o,points:["tl","bl"],offset:[0,4]},bottomRight:{...o,points:["tr","br"],offset:[0,4]},topLeft:{...o,points:["bl","tl"],offset:[0,-4]},topRight:{...o,points:["br","tr"],offset:[0,-4]}}};function B4(e,t){return e||z4(t)}var AM=B4;var kM=e=>{let{optionHeight:t,optionFontSize:o,optionLineHeight:n,optionPadding:r}=e;return{position:"relative",display:"block",minHeight:t,padding:r,color:e.colorText,fontWeight:"normal",fontSize:o,lineHeight:n,boxSizing:"border-box"}},H4=e=>{let{antCls:t,componentCls:o}=e,n=`${o}-item`,r=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,s=`&${t}-slide-up-leave${t}-slide-up-leave-active`,a=`${o}-dropdown-placement-`,c=`${n}-option-selected`;return[{[`${o}-dropdown`]:{...Et(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,[`
|
|
231
|
+
`].includes(Ae)),[T]),qe=_t.useMemo(()=>typeof T=="function"?(Ae,je)=>{let Tt=T(Ae),mo=Array.isArray(Tt)&&Tt.length===1&&Tt[0]===Ae;return!Array.isArray(Tt)||!Tt.length||mo?null:typeof je<"u"?Tt.slice(0,je):Tt}:(Ae,je)=>MT(Ae,T,je),[T]),mt=(Ae,je,Tt)=>{if(Ne&&Vd(y)&&m.length>=y)return;let mo=!0,vt=Ae;E?.(null);let jt=Vd(y)?y-m.length:void 0,_o=Tt?null:qe(Ae,jt);return b!=="combobox"&&_o&&(vt="",_?.(_o),$e(!1),mo=!1),z&&Ce!==vt&&z(vt,{source:je?"typing":"effect"}),Ae&&je&&mo&&$e(!0),mo},Qe=Ae=>{!Ae||!Ae.trim()||z(Ae,{source:"submit"})};_t.useEffect(()=>{!se&&!Ne&&b!=="combobox"&&mt("",!1,!1)},[se]),_t.useEffect(()=>{S&&($e(!1),we(!1))},[S,ve]);let[$t,wt]=kv(),gt=_t.useRef(!1),ht=Ae=>{let je=$t(),{key:Tt}=Ae,mo=Tt==="Enter",vt=Tt===" ";if(mo||vt){let jt=b==="combobox";(vt&&!(jt||a)||mo&&!jt)&&Ae.preventDefault(),ve||$e(!0)}if(wt(!!Ce),Tt==="Backspace"&&!je&&Ne&&!Ce&&m.length){let jt=[...m],_o=null;for(let hn=jt.length-1;hn>=0;hn-=1){let Pr=jt[hn];if(!Pr.disabled){jt.splice(hn,1),_o=Pr;break}}_o&&f(jt,{type:"remove",values:[_o]})}ve&&(!mo||!gt.current)&&!vt&&(mo&&(gt.current=!0),fe.current?.onKeyDown(Ae)),Se?.(Ae)},yt=(Ae,...je)=>{ve&&fe.current?.onKeyUp(Ae,...je),Ae.key==="Enter"&&(gt.current=!1),ie?.(Ae,...je)},Rt=Ie(Ae=>{let je=m.filter(Tt=>Tt!==Ae);f(je,{type:"remove",values:[Ae]})}),_e=()=>{gt.current=!1},xt=()=>[Gn(he.current),ne.current?.getPopupElement()];Dv(xt,ve,$e,!!Le.root);let be=_t.useRef(!1),oe=Ae=>{we(!0),S||(te.includes("focus")&&$e(!0),le?.(Ae))},me=()=>{ve&&!be.current&&$e(!1,{cancelFun:()=>Lv(xt(),document.activeElement)})},J=Ae=>{we(!1),Ce&&(b==="tags"?z(Ce,{source:"submit"}):b==="multiple"&&z("",{source:"blur"})),me(),S||re?.(Ae)},ge=(Ae,...je)=>{let{target:Tt}=Ae;ne.current?.getPopupElement()?.contains(Tt)&&$e&&$e(!0),de?.(Ae,...je),be.current=!0,pg(()=>{be.current=!1})},[,ye]=_t.useState({});function ke(){ye({})}let Je;Le.root&&(Je=Ae=>{$e(Ae)});let At=_t.useMemo(()=>({...e,notFoundContent:p,open:ve,triggerOpen:ve,rawOpen:se,id:o,showSearch:a,multiple:Ne,toggleOpen:$e,showScrollBar:l,styles:i,classNames:s,lockOptions:Pe}),[e,p,$e,o,a,Ne,ve,se,l,i,s,Pe]),Wt=_t.useMemo(()=>{let Ae=G??H;return typeof Ae=="function"?Ae({searchValue:Ce,open:ve,focused:ce,showSearch:a,loading:v}):Ae},[G,H,Ce,ve,ce,a,v]),Pt=()=>{h?.(),he.current?.focus(),f([],{type:"clear",values:m}),mt("",!1,!1)},{allowClear:to,clearIcon:ao,label:$n}=$T(n,m,D,W,S,Ce,b),ze=_t.createElement(X,{ref:fe}),ot=$(n,r,{[`${n}-focused`]:ce,[`${n}-multiple`]:Ne,[`${n}-single`]:!Ne,[`${n}-allow-clear`]:to,[`${n}-show-arrow`]:Wt!=null,[`${n}-disabled`]:S,[`${n}-loading`]:v,[`${n}-open`]:ve,[`${n}-customize-input`]:pe,[`${n}-show-search`]:a}),ut=_t.createElement(KT,Uv({},ae,{ref:he,prefixCls:n,className:ot,focused:ce,prefix:F,suffix:Wt,clearIcon:ao,clearLabel:$n,multiple:Ne,mode:b,displayValues:m,placeholder:x,searchValue:Ce,activeValue:N,onSearch:mt,onSearchSubmit:Qe,onInputBlur:_e,onFocus:oe,onBlur:J,onClearMouseDown:Pt,onKeyDown:ht,onKeyUp:yt,onSelectorRemove:Rt,tokenWithEnter:Ge,onMouseDown:ge,components:Le}));return ut=_t.createElement(NT,{ref:ne,disabled:S,prefixCls:n,visible:ve,popupElement:ze,animation:B,transitionName:j,popupStyle:U,popupClassName:Z,direction:d,popupMatchSelectWidth:Y,popupRender:K,popupAlign:V,placement:A,builtinPlacements:ee,getPopupContainer:Q,empty:g,onPopupVisibleChange:Je,onPopupMouseEnter:ke,onPopupMouseDown:ge,onPopupBlur:me},ut),_t.createElement(Av.Provider,{value:At},_t.createElement(zv,{visible:ce&&!ve,values:m}),ut)}),Kv=v4;var qT=()=>null;qT.isSelectOptGroup=!0;var Xd=qT;var XT=()=>null;XT.isSelectOption=!0;var Yd=XT;var fo=M(require("react")),Hn=require("react"),sS=require("react-dom");var Zl=M(require("react"));function Gv(){return Gv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Gv.apply(this,arguments)}var YT=Zl.forwardRef(({height:e,offsetY:t,offsetX:o,children:n,prefixCls:r,onInnerResize:i,innerProps:s,rtl:a,extra:c},l)=>{let d={},u={display:"flex",flexDirection:"column"};return t!==void 0&&(d={height:e,position:"relative",overflow:"hidden"},u={...u,transform:`translateY(${t}px)`,[a?"marginRight":"marginLeft"]:-o||0,position:"absolute",left:0,right:0,top:0}),Zl.createElement("div",{style:d},Zl.createElement(sn,{onResize:({offsetHeight:m})=>{m&&i&&i()}},Zl.createElement("div",Gv({style:u,className:$({[`${r}-holder-inner`]:r}),ref:l},s),n,c)))});YT.displayName="Filler";var ZT=YT;var JT=M(require("react"));var xg=M(require("react"));function QT({children:e,setRef:t}){let o=xg.useCallback(n=>{t(n)},[t]);return xg.cloneElement(e,{ref:o})}function qv(e,t,o,n,r,i,s,{getKey:a}){return e.slice(t,o+1).map((c,l)=>{let d=t+l,u=s(c,d,{style:{width:n},offsetX:r}),m=a(c);return JT.createElement(QT,{key:m,setRef:f=>i(c,f)},u)})}var Zd=M(require("react"));function eM(e,t,o){let n=e.length,r=t.length,i,s;if(n===0&&r===0)return null;n<r?(i=e,s=t):(i=t,s=e);let a={__EMPTY_ITEM__:!0};function c(u){return u!==void 0?o(u):a}let l=null,d=Math.abs(n-r)!==1;for(let u=0;u<s.length;u+=1){let m=c(i[u]),f=c(s[u]);if(m!==f){l=u,d=d||m!==c(s[u+1]);break}}return l===null?null:{index:l,multiple:d}}function Xv(e,t,o){let[n,r]=Zd.useState(e),[i,s]=Zd.useState(null);return Zd.useEffect(()=>{let a=eM(n||[],e||[],t);a?.index!==void 0&&(o?.(a.index),s(e[a.index])),r(e)},[e]),[i]}var Oa=require("react");var S4=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),Yv=S4;var vg=require("react"),Sg=(e,t,o,n)=>{let r=(0,vg.useRef)(!1),i=(0,vg.useRef)(null);function s(){clearTimeout(i.current),r.current=!0,i.current=setTimeout(()=>{r.current=!1},50)}let a=(0,vg.useRef)({top:e,bottom:t,left:o,right:n});return a.current.top=e,a.current.bottom=t,a.current.left=o,a.current.right=n,(c,l,d=!1)=>{let u=c?l<0&&a.current.left||l>0&&a.current.right:l<0&&a.current.top||l>0&&a.current.bottom;return d&&u?(clearTimeout(i.current),r.current=!1):(!u||r.current)&&s(),!r.current&&u}};function Zv(e,t,o,n,r,i,s){let a=(0,Oa.useRef)(0),c=(0,Oa.useRef)(null),l=(0,Oa.useRef)(null),d=(0,Oa.useRef)(!1),u=Sg(t,o,n,r);function m(x,b){if(He.cancel(c.current),u(!1,b))return;let S=x;if(!S._virtualHandled)S._virtualHandled=!0;else return;a.current+=b,l.current=b,Yv||S.preventDefault(),c.current=He(()=>{let v=d.current?10:1;s(a.current*v,!1),a.current=0})}function f(x,b){s(b,!0),Yv||x.preventDefault()}let g=(0,Oa.useRef)(null),p=(0,Oa.useRef)(null);function h(x){if(!e)return;He.cancel(p.current),p.current=He(()=>{g.current=null},2);let{deltaX:b,deltaY:S,shiftKey:v}=x,C=b,R=S;(g.current==="sx"||!g.current&&v&&S&&!b)&&(C=S,R=0,g.current="sx");let w=Math.abs(C),I=Math.abs(R);g.current===null&&(g.current=i&&w>I?"x":"y"),g.current==="y"?m(x,R):f(x,C)}function y(x){e&&(d.current=x.detail===l.current)}return[h,y]}var tM=M(require("react"));function oM(e,t,o,n){let[r,i]=tM.useMemo(()=>[new Map,[]],[e,o.id,n]);return(a,c=a)=>{let l=r.get(a),d=r.get(c);if(l===void 0||d===void 0){let u=e.length;for(let m=i.length;m<u;m+=1){let f=e[m],g=t(f);r.set(g,m);let p=o.get(g)??n;if(i[m]=(i[m-1]||0)+p,g===a&&(l=m),g===c&&(d=m),l!==void 0&&d!==void 0)break}}return{top:i[l-1]||0,bottom:i[d]}}}var iM=M(require("react")),Ql=require("react");var Qv=class{maps;id=0;diffRecords=new Map;constructor(){this.maps=Object.create(null)}set(t,o){this.diffRecords.set(t,this.maps[t]),this.maps[t]=o,this.id+=1}get(t){return this.maps[t]}resetRecord(){this.diffRecords.clear()}getRecord(){return this.diffRecords}},nM=Qv;function rM(e){let t=parseFloat(e);return isNaN(t)?0:t}function Jv(e,t,o){let[n,r]=iM.useState(0),i=(0,Ql.useRef)(new Map),s=(0,Ql.useRef)(new nM),a=(0,Ql.useRef)(0);function c(){a.current+=1}function l(u=!1){c();let m=()=>{let f=!1;i.current.forEach((g,p)=>{if(g&&g.offsetParent){let{offsetHeight:h}=g,{marginTop:y,marginBottom:x}=getComputedStyle(g),b=rM(y),S=rM(x),v=h+b+S;s.current.get(p)!==v&&(s.current.set(p,v),f=!0)}}),f&&r(g=>g+1)};if(u)m();else{a.current+=1;let f=a.current;Promise.resolve().then(()=>{f===a.current&&m()})}}function d(u,m){let f=e(u),g=i.current.get(f);m?(i.current.set(f,m),l()):i.current.delete(f),!g!=!m&&(m?t?.(u):o?.(u))}return(0,Ql.useEffect)(()=>c,[]),[d,l,s.current,n]}var Jl=require("react"),sM=14/15;function eS(e,t,o){let n=(0,Jl.useRef)(!1),r=(0,Jl.useRef)(0),i=(0,Jl.useRef)(0),s=(0,Jl.useRef)(null),a=(0,Jl.useRef)(null),c,l=m=>{if(n.current){let f=Math.ceil(m.touches[0].pageX),g=Math.ceil(m.touches[0].pageY),p=r.current-f,h=i.current-g,y=Math.abs(p)>Math.abs(h);y?r.current=f:i.current=g;let x=o(y,y?p:h,!1,m);x&&m.preventDefault(),clearInterval(a.current),x&&(a.current=setInterval(()=>{y?p*=sM:h*=sM;let b=Math.floor(y?p:h);(!o(y,b,!0)||Math.abs(b)<=.1)&&clearInterval(a.current)},16))}},d=()=>{n.current=!1,c()},u=m=>{c(),m.touches.length===1&&!n.current&&(n.current=!0,r.current=Math.ceil(m.touches[0].pageX),i.current=Math.ceil(m.touches[0].pageY),s.current=m.target,s.current.addEventListener("touchmove",l,{passive:!1}),s.current.addEventListener("touchend",d,{passive:!0}))};c=()=>{s.current&&(s.current.removeEventListener("touchmove",l),s.current.removeEventListener("touchend",d))},it(()=>(e&&t.current.addEventListener("touchstart",u,{passive:!0}),()=>{t.current?.removeEventListener("touchstart",u),c(),clearInterval(a.current)}),[e])}var lM=M(require("react"));function aM(e){return Math.floor(e**.5)}function Qd(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function C4(e){let t=e;for(;t;){if(t.draggable)return!0;t=t.parentElement}return!1}function tS(e,t,o){lM.useEffect(()=>{let n=t.current;if(e&&n){let r=!1,i,s,a=()=>{He.cancel(i)},c=()=>{a(),i=He(()=>{o(s),c()})},l=()=>{r=!1,a()},d=m=>{if(C4(m.target)||m.button!==0)return;let f=m;f._virtualHandled||(f._virtualHandled=!0,r=!0)},u=m=>{if(r){let f=Qd(m,!1),{top:g,bottom:p}=n.getBoundingClientRect();if(f<=g){let h=g-f;s=-aM(h),c()}else if(f>=p){let h=f-p;s=aM(h),c()}else a()}};return n.addEventListener("mousedown",d),n.ownerDocument.addEventListener("mouseup",l),n.ownerDocument.addEventListener("mousemove",u),n.ownerDocument.addEventListener("dragend",l),()=>{n.removeEventListener("mousedown",d),n.ownerDocument.removeEventListener("mouseup",l),n.ownerDocument.removeEventListener("mousemove",u),n.ownerDocument.removeEventListener("dragend",l),a()}}},[e])}var Cg=M(require("react"));var w4=10;function R4(e,t){let o=typeof e=="function"?e(t):e;return Number.isFinite(o)?o:0}function oS(e,t,o,n,r,i,s,a,c){let l=Cg.useRef(void 0),[d,u]=Cg.useState(null);return it(()=>{if(d&&d.times<w4){if(!e.current){u(C=>({...C}));return}s();let{targetAlign:m,originAlign:f,offset:g}=d,p=d.index>=0?d.index:t.findIndex(C=>r(C)===d.key),h=m||f,y=R4(g,{getSize:i,align:h}),x=e.current.clientHeight,b=p<0,S=m,v=null;if(x&&p>=0){let C=0,R=0,w=0,I=Math.min(t.length-1,p);for(let N=0;N<=I;N+=1){let E=r(t[N]);R=C;let O=o.get(E);w=R+(O===void 0?n:O),C=w}let P=h==="top"?y:x-y;for(let N=I;N>=0;N-=1){let E=r(t[N]),O=o.get(E);if(O===void 0){b=!0;break}if(P-=O,P<=0)break}switch(h){case"top":v=R-y;break;case"bottom":v=w-x+y;break;default:{let{scrollTop:N}=e.current,E=N+x;R<N?S="top":w>E&&(S="bottom")}}v!==null&&a(v),v!==d.lastTop&&(b=!0)}b&&u(C=>({...C,times:C.times+1,index:p,targetAlign:S,lastTop:v}))}},[d,e.current]),m=>{if(m==null){c();return}if(He.cancel(l.current),typeof m=="number")a(m);else if(m&&typeof m=="object"){let f,g,{align:p}=m;"index"in m?{index:f}=m:(g=m.key,f=t.findIndex(y=>r(y)===g));let{offset:h=0}=m;u({times:0,index:f,key:g,offset:h,originAlign:p})}}}var eo=M(require("react"));function cM(e,t,o){if(t<=0||o<=0)return 0;let r=Math.max(Math.min(e,o),0)/o,i=Math.ceil(r*t);return i=Math.max(i,0),i=Math.min(i,t),i}var E4=eo.forwardRef((e,t)=>{let{prefixCls:o,rtl:n,scrollOffset:r,scrollRange:i,onStartMove:s,onStopMove:a,onScroll:c,horizontal:l,spinSize:d,containerSize:u,style:m,thumbStyle:f,showScrollBar:g}=e,[p,h]=eo.useState(!1),[y,x]=eo.useState(null),[b,S]=eo.useState(null),v=!n,C=eo.useRef(null),R=eo.useRef(null),[w,I]=eo.useState(g),P=eo.useRef(void 0),N=()=>{g===!0||g===!1||(clearTimeout(P.current),I(!0),P.current=setTimeout(()=>{I(!1)},3e3))},E=i-u||0,O=u-d||0,L=eo.useMemo(()=>r===0||E===0?0:r/E*O,[r,E,O]),k=B=>!!B&&R.current?.contains(B),z=B=>{let j=C.current;if(!j)return;let U=j.getBoundingClientRect(),Z=Qd(B,l),Y;if(Number.isFinite(Z)){if(l){let K=v?U.left:U.right;if(!Number.isFinite(K))return;Y=(v?Z-K:K-Z)-d/2}else{if(!Number.isFinite(U.top))return;Y=Z-U.top-d/2}c(cM(Y,E,O),l)}},_=B=>{B.stopPropagation(),B.preventDefault(),!(B.button!==0||k(B.target))&&z(B)},T=eo.useRef({top:L,dragging:p,pageY:y,startTop:b});T.current={top:L,dragging:p,pageY:y,startTop:b};let D=Ie(B=>{h(!0),x(Qd(B,l)),S(T.current.top),s(),B.stopPropagation(),B.preventDefault()});eo.useEffect(()=>{let B=Z=>{Z.preventDefault()},j=C.current,U=R.current;return j.addEventListener("touchstart",B,{passive:!1}),U.addEventListener("touchstart",D,{passive:!1}),()=>{j.removeEventListener("touchstart",B),U.removeEventListener("touchstart",D)}},[D]);let F=eo.useRef(void 0);F.current=E;let G=eo.useRef(void 0);G.current=O,eo.useEffect(()=>{if(p){let B,j=Z=>{let{dragging:Y,pageY:K,startTop:V}=T.current;He.cancel(B);let A=C.current.getBoundingClientRect(),ee=u/(l?A.width:A.height);if(Y){let Q=(Qd(Z,l)-K)*ee,te=V;!v&&l?te-=Q:te+=Q;let le=F.current,re=G.current,ie=cM(te,le,re);B=He(()=>{c(ie,l)})}},U=()=>{h(!1),a()};return window.addEventListener("mousemove",j,{passive:!0}),window.addEventListener("touchmove",j,{passive:!0}),window.addEventListener("mouseup",U,{passive:!0}),window.addEventListener("touchend",U,{passive:!0}),()=>{window.removeEventListener("mousemove",j),window.removeEventListener("touchmove",j),window.removeEventListener("mouseup",U),window.removeEventListener("touchend",U),He.cancel(B)}}},[p]),eo.useEffect(()=>(N(),()=>{clearTimeout(P.current)}),[r]),eo.useImperativeHandle(t,()=>({delayHidden:N}));let H=`${o}-scrollbar`,W={position:"absolute",visibility:w?null:"hidden"},X={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return l?(Object.assign(W,{height:8,left:0,right:0,bottom:0}),Object.assign(X,{height:"100%",width:d,[v?"left":"right"]:L})):(Object.assign(W,{width:8,top:0,bottom:0,[v?"right":"left"]:0}),Object.assign(X,{width:"100%",height:d,top:L})),eo.createElement("div",{ref:C,className:$(H,{[`${H}-horizontal`]:l,[`${H}-vertical`]:!l,[`${H}-visible`]:w}),style:{...W,...m},onMouseDown:_,onMouseMove:N},eo.createElement("div",{ref:R,className:$(`${H}-thumb`,{[`${H}-thumb-moving`]:p}),style:{...X,...f},onMouseDown:D}))}),nS=E4;function rS(e=0,t=0){let o=e/t*e;return isNaN(o)&&(o=0),o=Math.max(o,20),Math.floor(o)}function iS(){return iS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},iS.apply(this,arguments)}var $4=[],I4={overflowY:"auto",overflowAnchor:"none"};function aS(e,t){let{prefixCls:o="rc-virtual-list",className:n,height:r,itemHeight:i,fullHeight:s=!0,style:a,data:c,children:l,itemKey:d,virtual:u,direction:m,scrollWidth:f,component:g="div",onScroll:p,onVirtualScroll:h,onVisibleChange:y,innerProps:x,extraRender:b,styles:S,showScrollBar:v="optional",...C}=e,R=fo.useCallback(be=>typeof d=="function"?d(be):be?.[d],[d]),[w,I,P,N]=Jv(R,null,null),E=!!(u!==!1&&r&&i),O=fo.useMemo(()=>Object.values(P.maps).reduce((be,oe)=>be+oe,0),[P.id,P.maps]),L=E&&c&&(Math.max(i*c.length,O)>r||!!f),k=m==="rtl",z=$(o,{[`${o}-rtl`]:k},n),_=c||$4,T=(0,Hn.useRef)(null),D=(0,Hn.useRef)(null),F=(0,Hn.useRef)(null),[G,H]=(0,Hn.useState)(0),[W,X]=(0,Hn.useState)(0),[B,j]=(0,Hn.useState)(!1),U=()=>{j(!0)},Z=()=>{j(!1)},Y={getKey:R};function K(be){H(oe=>{let me;typeof be=="function"?me=be(oe):me=be;let J=ce(me);return T.current.scrollTop=J,J})}let V=(0,Hn.useRef)({start:0,end:_.length}),A=(0,Hn.useRef)(void 0),[ee]=Xv(_,R);A.current=ee;let{scrollHeight:Q,start:te,end:le,offset:re}=fo.useMemo(()=>{if(!E)return{scrollHeight:void 0,start:0,end:_.length-1,offset:void 0};if(!L)return{scrollHeight:D.current?.offsetHeight||0,start:0,end:_.length-1,offset:void 0};let be=0,oe,me,J,ge=_.length;for(let ye=0;ye<ge;ye+=1){let ke=_[ye],Je=R(ke),At=P.get(Je),Wt=be+(At===void 0?i:At);Wt>=G&&oe===void 0&&(oe=ye,me=be),Wt>G+r&&J===void 0&&(J=ye),be=Wt}return oe===void 0&&(oe=0,me=0,J=Math.ceil(r/i)),J===void 0&&(J=_.length-1),J=Math.min(J+1,_.length-1),{scrollHeight:be,start:oe,end:J,offset:me}},[L,E,G,_,N,r]);V.current.start=te,V.current.end=le,fo.useLayoutEffect(()=>{let be=P.getRecord();if(be.size===1){let oe=Array.from(be.keys())[0],me=be.get(oe),J=_[te];if(J&&me===void 0&&R(J)===oe){let ke=P.get(oe)-i;K(Je=>Je+ke)}}P.resetRecord()},[Q]);let[ie,Se]=fo.useState({width:0,height:r}),de=be=>{Se({width:be.offsetWidth,height:be.offsetHeight})},Ee=(0,Hn.useRef)(null),ae=(0,Hn.useRef)(null),Ne=fo.useMemo(()=>rS(ie.width,f),[ie.width,f]),he=fo.useMemo(()=>rS(ie.height,Q),[ie.height,Q]),ne=Q-r,fe=(0,Hn.useRef)(ne);fe.current=ne;function ce(be){let oe=be;return Number.isNaN(fe.current)||(oe=Math.min(oe,fe.current)),oe=Math.max(oe,0),oe}let we=G<=0,Le=G>=ne,Ce=W<=0,pe=W>=f,ue=Sg(we,Le,Ce,pe),se=()=>({x:k?-W:W,y:G}),ve=(0,Hn.useRef)(se()),$e=Ie(be=>{if(h){let oe={...se(),...be};(ve.current.x!==oe.x||ve.current.y!==oe.y)&&(h(oe),ve.current=oe)}});function Pe(be,oe){let me=be;oe?((0,sS.flushSync)(()=>{X(me)}),$e()):K(me)}function Ge(be){let{scrollTop:oe}=be.currentTarget;oe!==G&&K(oe),p?.(be),$e()}let qe=be=>{let oe=be,me=f?f-ie.width:0;return oe=Math.max(oe,0),oe=Math.min(oe,me),oe},mt=Ie((be,oe)=>{oe?((0,sS.flushSync)(()=>{X(me=>{let J=me+(k?-be:be);return qe(J)})}),$e()):K(me=>me+be)}),[Qe,$t]=Zv(E,we,Le,Ce,pe,!!f,mt);eS(E,T,(be,oe,me,J)=>{let ge=J;return ue(be,oe,me)?!1:!ge||!ge._virtualHandled?(ge&&(ge._virtualHandled=!0),Qe({preventDefault(){},deltaX:be?oe:0,deltaY:be?0:oe}),!0):!1}),tS(L,T,be=>{K(oe=>oe+be)}),it(()=>{function be(me){let J=we&&me.detail<0,ge=Le&&me.detail>0;E&&!J&&!ge&&me.preventDefault()}let oe=T.current;return oe.addEventListener("wheel",Qe,{passive:!1}),oe.addEventListener("DOMMouseScroll",$t,{passive:!0}),oe.addEventListener("MozMousePixelScroll",be,{passive:!1}),()=>{oe.removeEventListener("wheel",Qe),oe.removeEventListener("DOMMouseScroll",$t),oe.removeEventListener("MozMousePixelScroll",be)}},[E,we,Le]),it(()=>{if(f){let be=qe(W);X(be),$e({x:be})}},[ie.width,f]);let wt=()=>{Ee.current?.delayHidden(),ae.current?.delayHidden()},gt=oM(_,R,P,i),ht=oS(T,_,P,i,R,gt,()=>I(!0),K,wt);fo.useImperativeHandle(t,()=>({nativeElement:F.current,getScrollInfo:se,scrollTo:be=>{function oe(me){return me&&typeof me=="object"&&("left"in me||"top"in me)}oe(be)?(be.left!==void 0&&X(qe(be.left)),ht(be.top)):ht(be)}})),it(()=>{if(y){let be=_.slice(te,le+1);y(be,_)}},[te,le,_]);let yt=b?.({start:te,end:le,virtual:L,offsetX:W,scrollTop:G,offsetY:re,rtl:k,getSize:gt}),Rt=qv(_,te,le,f,W,w,l,Y),_e=null;r&&(_e={[s?"height":"maxHeight"]:r,...I4},E&&(_e.overflowY="hidden",f&&(_e.overflowX="hidden"),B&&(_e.pointerEvents="none")));let xt={};return k&&(xt.dir="rtl"),fo.createElement("div",iS({ref:F,style:{...a,position:"relative"},className:z},xt,C),fo.createElement(sn,{onResize:de},fo.createElement(g,{className:`${o}-holder`,style:_e,ref:T,onScroll:Ge,onMouseEnter:wt},fo.createElement(ZT,{prefixCls:o,height:Q,offsetX:W,offsetY:re,scrollWidth:f,onInnerResize:I,ref:D,innerProps:x,rtl:k,extra:yt},Rt))),L&&Q>r&&fo.createElement(nS,{ref:Ee,prefixCls:o,scrollOffset:G,scrollRange:Q,rtl:k,onScroll:Pe,onStartMove:U,onStopMove:Z,spinSize:he,containerSize:ie.height,style:S?.verticalScrollBar,thumbStyle:S?.verticalScrollBarThumb,showScrollBar:v}),L&&f>ie.width&&fo.createElement(nS,{ref:ae,prefixCls:o,scrollOffset:W,scrollRange:f,rtl:k,onScroll:Pe,onStartMove:U,onStopMove:Z,spinSize:Ne,containerSize:ie.width,horizontal:!0,style:S?.horizontalScrollBar,thumbStyle:S?.horizontalScrollBarThumb,showScrollBar:v}))}var dM=fo.forwardRef(aS);dM.displayName="List";var uM=dM;var mM=M(require("react"));var N4=mM.forwardRef((e,t)=>aS({...e,virtual:!1},t));N4.displayName="List";var pM=uM;var kt=M(require("react")),lS=require("react");function fM(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}function Jd(){return Jd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Jd.apply(this,arguments)}function gM(e){return typeof e=="string"||typeof e=="number"}var P4=(e,t)=>{let{prefixCls:o,id:n,open:r,multiple:i,mode:s,searchValue:a,toggleOpen:c,notFoundContent:l,onPopupScroll:d,showScrollBar:u,lockOptions:m}=mn(),{maxCount:f,flattenOptions:g,onActiveValue:p,defaultActiveFirstOption:h,onSelect:y,menuItemSelectedIcon:x,rawValues:b,fieldNames:S,virtual:v,direction:C,listHeight:R,listItemHeight:w,optionRender:I,classNames:P,styles:N}=kt.useContext(Yl),E=`${o}-item`,O=Kn(()=>g,[r,m],(K,V)=>V[0]&&!V[1]),L=kt.useRef(null),k=kt.useMemo(()=>i&&Vd(f)&&b?.size>=f,[i,f,b?.size]),z=K=>{K.preventDefault()},_=K=>{L.current?.scrollTo(typeof K=="number"?{index:K}:K)},T=kt.useCallback(K=>s==="combobox"?!1:b.has(K),[s,[...b].toString(),b.size]),D=(K,V=1)=>{let A=O.length;for(let ee=0;ee<A;ee+=1){let Q=(K+ee*V+A)%A,{group:te,data:le}=O[Q]||{};if(!te&&!le?.disabled&&(T(le.value)||!k))return Q}return-1},[F,G]=kt.useState(()=>D(0)),H=(K,V=!1)=>{G(K);let A={source:V?"keyboard":"mouse"},ee=O[K];if(!ee){p(null,-1,A);return}p(ee.value,K,A)};(0,lS.useEffect)(()=>{H(h!==!1?D(0):-1)},[O.length,a]);let W=kt.useCallback(K=>s==="combobox"?String(K).toLowerCase()===a.toLowerCase():b.has(K),[s,a,[...b].toString(),b.size]);(0,lS.useEffect)(()=>{let K;if(!i&&r&&b.size===1){let V=Array.from(b)[0],A=O.findIndex(({data:ee})=>a?String(ee.value).startsWith(a):ee.value===V);A!==-1&&(H(A),K=setTimeout(()=>{_(A)}))}return r&&L.current?.scrollTo(void 0),()=>clearTimeout(K)},[r,a]);let X=K=>{K!==void 0&&y(K,{selected:!b.has(K)}),i||c(!1)};if(kt.useImperativeHandle(t,()=>({onKeyDown:K=>{let{which:V,ctrlKey:A}=K;switch(V){case Me.N:case Me.P:case Me.UP:case Me.DOWN:{let ee=0;if(V===Me.UP?ee=-1:V===Me.DOWN?ee=1:fM()&&A&&(V===Me.N?ee=1:V===Me.P&&(ee=-1)),ee!==0){let Q=D(F+ee,ee);_(Q),H(Q,!0)}break}case Me.TAB:case Me.ENTER:{let ee=O[F];if(!ee||ee.data.disabled)return X(void 0);!k||b.has(ee.value)?X(ee.value):X(void 0),r&&K.preventDefault();break}case Me.ESC:c(!1),r&&K.stopPropagation()}},onKeyUp:()=>{},scrollTo:K=>{_(K)}})),O.length===0)return kt.createElement("div",{role:"listbox",id:`${n}_list`,className:`${E}-empty`,onMouseDown:z},l);let B=Object.keys(S).map(K=>S[K]),j=K=>K.label;function U(K,V){let{group:A}=K;return{role:A?"presentation":"option",id:`${n}_list_${V}`}}let Z=K=>{let V=O[K];if(!V)return null;let A=V.data||{},{value:ee,disabled:Q}=A,{group:te}=V,le=Mo(A,!0),re=j(V);return V?kt.createElement("div",Jd({"aria-label":typeof re=="string"&&!te?re:null},le,{key:K},U(V,K),{"aria-selected":W(ee),"aria-disabled":Q}),ee):null},Y={role:"listbox",id:`${n}_list`};return kt.createElement(kt.Fragment,null,v&&kt.createElement("div",Jd({},Y,{style:{height:0,width:0,overflow:"hidden"}}),Z(F-1),Z(F),Z(F+1)),kt.createElement(pM,{prefixCls:`${o}-dropdown-list`,itemKey:"key",ref:L,data:O,height:R,itemHeight:w,fullHeight:!1,onMouseDown:z,onScroll:d,virtual:v,direction:C,innerProps:v?null:Y,showScrollBar:u,className:P?.popup?.list,style:N?.popup?.list},(K,V)=>{let{group:A,groupOption:ee,data:Q,label:te,value:le}=K,{key:re}=Q;if(A){let se=Q.title??(gM(te)?te.toString():void 0);return kt.createElement("div",{className:$(E,`${E}-group`,Q.className),title:se},te!==void 0?te:re)}let{disabled:ie,title:Se,children:de,style:Ee,className:ae,...Ne}=Q,he=Ke(Ne,B),ne=T(le),fe=ie||!ne&&k,ce=`${E}-option`,we=$(E,ce,ae,P?.popup?.listItem,{[`${ce}-grouped`]:ee,[`${ce}-active`]:F===V&&!fe,[`${ce}-disabled`]:fe,[`${ce}-selected`]:ne}),Le=j(K),Ce=!x||typeof x=="function"||ne,pe=typeof Le=="number"?Le:Le||le,ue=gM(pe)?pe.toString():void 0;return Se!==void 0&&(ue=Se),kt.createElement("div",Jd({},Mo(he),v?{}:U(K,V),{"aria-selected":v?void 0:W(le),"aria-disabled":fe,className:we,title:ue,onMouseMove:()=>{F===V||fe||H(V)},onClick:()=>{fe||X(le)},style:{...N?.popup?.listItem,...Ee}}),kt.createElement("div",{className:`${ce}-content`},typeof I=="function"?I(K,{index:V}):pe),kt.isValidElement(x)||ne,Ce&&kt.createElement(yg,{className:`${E}-option-state`,customizeIcon:x,customizeIconProps:{value:le,disabled:fe,isSelected:ne}},ne?"\u2713":null))}))},T4=kt.forwardRef(P4),hM=T4;var ec=M(require("react")),yM=(e,t)=>{let o=ec.useRef({values:new Map,options:new Map}),n=ec.useMemo(()=>{let{values:i,options:s}=o.current,a=e.map(d=>d.label===void 0?{...d,label:i.get(d.value)?.label}:d),c=new Map,l=new Map;return a.forEach(d=>{c.set(d.value,d),l.set(d.value,t.get(d.value)||s.get(d.value))}),o.current.values=c,o.current.options=l,a},[e,t]),r=ec.useCallback(i=>t.get(i)||o.current.options.get(i),[t]);return[n,r]};var bM=M(require("react"));function cS(e,t){return Ud(e).join("").toUpperCase().includes(t)}var xM=(e,t,o,n,r)=>bM.useMemo(()=>{if(!o||n===!1)return e;let{options:i,label:s,value:a}=t,c=[],l=typeof n=="function",d=o.toUpperCase(),u=l?n:(f,g)=>r&&r.length?r.some(p=>cS(g[p],d)):g[i]?cS(g[s!=="children"?s:"label"],d):cS(g[a],d),m=l?f=>Wd(f):f=>f;return e.forEach(f=>{if(f[i]){if(u(o,m(f)))c.push(f);else{let p=f[i].filter(h=>u(o,m(h)));p.length&&c.push({...f,[i]:p})}return}u(o,m(f))&&c.push(f)}),c},[e,n,r,o,t]);var SM=M(require("react"));var vM=M(require("react"));function M4(e){let{key:t,props:{children:o,value:n,...r}}=e;return{key:t,value:n!==void 0?n:t,children:o,...r}}function wg(e,t=!1){return co(e).map((o,n)=>{if(!vM.isValidElement(o)||!o.type)return null;let{type:{isSelectOptGroup:r},key:i,props:{children:s,...a}}=o;return t||!r?M4(o):{key:`__RC_SELECT_GRP__${i===null?n:i}__`,label:i,...a,options:wg(s)}}).filter(o=>o)}var O4=(e,t,o,n,r)=>SM.useMemo(()=>{let i=e;!e&&(i=wg(t));let a=new Map,c=new Map,l=(u,m,f)=>{f&&typeof f=="string"&&u.set(m[f],m)},d=(u,m=!1)=>{for(let f=0;f<u.length;f+=1){let g=u[f];!g[o.options]||m?(a.set(g[o.value],g),l(c,g,o.label),n.forEach(p=>{l(c,g,p)}),l(c,g,r)):d(g[o.options],!0)}};return d(i),{options:i,valueOptions:a,labelOptions:c}},[e,t,o,n,r]),CM=O4;var Rg=M(require("react"));function Eg(e){let t=Rg.useRef(e);return t.current=e,Rg.useCallback((...n)=>t.current(...n),[])}var A4=M(require("react"));var wM=M(require("react"));function dS(e,t,o){let{filterOption:n,searchValue:r,optionFilterProp:i,filterSort:s,onSearch:a,autoClearSearchValue:c}=t;return wM.useMemo(()=>{let l=typeof e=="object",d={filterOption:n,searchValue:r,optionFilterProp:i,filterSort:s,onSearch:a,autoClearSearchValue:c,...l?e:{}};return[l||o==="combobox"||o==="tags"||o==="multiple"&&e===void 0?!0:e,d]},[o,e,n,r,i,s,a,c])}function uS(){return uS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},uS.apply(this,arguments)}var k4=["inputValue"];function L4(e){return!e||typeof e!="object"}var D4=Ft.forwardRef((e,t)=>{let{id:o,mode:n,prefixCls:r="rc-select",backfill:i,fieldNames:s,showSearch:a,searchValue:c,onSearch:l,autoClearSearchValue:d,filterOption:u,optionFilterProp:m,filterSort:f,onSelect:g,onDeselect:p,onActive:h,popupMatchSelectWidth:y=!0,optionLabelProp:x,options:b,optionRender:S,children:v,defaultActiveFirstOption:C,menuItemSelectedIcon:R,virtual:w,direction:I,listHeight:P=200,listItemHeight:N=20,labelRender:E,value:O,defaultValue:L,labelInValue:k,onChange:z,maxCount:_,classNames:T,styles:D,...F}=e,G={searchValue:c,onSearch:l,autoClearSearchValue:d,filterOption:u,optionFilterProp:m,filterSort:f},[H,W]=dS(a,G,n),{filterOption:X,searchValue:B,optionFilterProp:j,filterSort:U,onSearch:Z,autoClearSearchValue:Y=!0}=W,K=Ft.useMemo(()=>j?Array.isArray(j)?j:[j]:[],[j]),V=Co(o),A=qd(n),ee=!!(!b&&v),Q=Ft.useMemo(()=>X===void 0&&n==="combobox"?!1:X,[X,n]),te=Ft.useMemo(()=>Fv(s,ee),[JSON.stringify(s),ee]),[le,re]=st("",B),ie=le||"",Se=CM(b,v,te,K,x),{valueOptions:de,labelOptions:Ee,options:ae}=Se,Ne=Ft.useCallback(J=>Ud(J).map(ye=>{let ke,Je,At,Wt;L4(ye)?ke=ye:(Je=ye.label,ke=ye.value);let Pt=de.get(ke);return Pt&&(Je===void 0&&(Je=Pt?.[x||te.label]),At=Pt?.disabled,Wt=Pt?.title),{label:Je,value:ke,key:ke,disabled:At,title:Wt}}),[te,x,de]),[he,ne]=st(L,O),fe=Ft.useMemo(()=>{let ge=Ne(A&&he===null?[]:he);return n==="combobox"&&BT(ge[0]?.value)?[]:ge},[he,Ne,n,A]),[ce,we]=yM(fe,de),Le=Ft.useMemo(()=>{if(!n&&ce.length===1){let J=ce[0];if(J.value===null&&(J.label===null||J.label===void 0))return[]}return ce.map(J=>({...J,label:(typeof E=="function"?E(J):J.label)??J.value}))},[n,ce,E]),Ce=Ft.useMemo(()=>new Set(ce.map(J=>J.value)),[ce]);Ft.useEffect(()=>{if(n==="combobox"){let J=ce[0]?.value;re(zT(J)?String(J):"")}},[ce]);let pe=Eg((J,ge)=>{let ye=ge??J;return{[te.value]:J,[te.label]:ye}}),ue=Ft.useMemo(()=>{if(n!=="tags")return ae;let J=[...ae],ge=ye=>de.has(ye);return[...ce].sort((ye,ke)=>ye.value<ke.value?-1:1).forEach(ye=>{let ke=ye.value;ge(ke)||J.push(pe(ke,ye.label))}),J},[pe,ae,de,ce,n]),se=xM(ue,te,ie,Q,K),ve=Ft.useMemo(()=>{let J=ge=>K.length?K.some(ye=>ge?.[ye]===ie):ge?.value===ie;return n!=="tags"||!ie||se.some(ge=>J(ge))||se.some(ge=>ge[te.value]===ie)||de.get(ie)?.disabled?se:[pe(ie),...se]},[pe,K,n,se,ie,te,de]),$e=J=>[...J].sort((ye,ke)=>U(ye,ke,{searchValue:ie})).map(ye=>Array.isArray(ye.options)?{...ye,options:ye.options.length>0?$e(ye.options):ye.options}:ye),Pe=Ft.useMemo(()=>U?$e(ve):ve,[ve,U,ie]),Ge=Ft.useMemo(()=>TT(Pe,{fieldNames:te,childrenAsData:ee}),[Pe,te,ee]),qe=J=>{let ge=Ne(J);if(ne(ge),z&&(ge.length!==ce.length||ge.some((ye,ke)=>ce[ke]?.value!==ye?.value))){let ye=k?ge.map(({label:Je,value:At})=>({label:Je,value:At})):ge.map(Je=>Je.value),ke=ge.map(Je=>Wd(we(Je.value)));z(A?ye:ye[0],A?ke:ke[0])}},[mt,Qe]=Ft.useState(null),[$t,wt]=Ft.useState(0),gt=C!==void 0?C:n!=="combobox",ht=Ft.useRef(void 0),yt=Ft.useCallback((J,ge,{source:ye="keyboard"}={})=>{wt(ge),i&&n==="combobox"&&J!==null&&ye==="keyboard"&&Qe(String(J));let ke=Promise.resolve().then(()=>{ht.current===ke&&h?.(J)});ht.current=ke},[i,n,h]),Rt=(J,ge,ye)=>{let ke=()=>{let Je=we(J);return[k?{label:Je?.[te.label],value:J}:J,Wd(Je)]};if(ge&&g){let[Je,At]=ke();g(Je,At)}else if(!ge&&p&&ye!=="clear"){let[Je,At]=ke();p(Je,At)}},_e=Eg((J,ge)=>{let ye,ke=A?ge.selected:!0;ke?ye=A?[...ce,J]:[J]:ye=ce.filter(Je=>Je.value!==J),qe(ye),Rt(J,ke),n==="combobox"?Qe(""):(!qd||Y)&&(re(""),Qe(""))}),xt=(J,ge)=>{qe(J);let{type:ye,values:ke}=ge;(ye==="remove"||ye==="clear")&&ke.forEach(Je=>{Rt(Je.value,!1,ye)})},be=(J,ge)=>{if(re(J),Qe(null),ge.source==="submit"){let ye=(J||"").trim();if(ye){if(de.get(ye)?.disabled){re("");return}let ke=Array.from(new Set([...Ce,ye]));qe(ke),Rt(ye,!0),re("")}return}ge.source!=="blur"&&(n==="combobox"&&qe(J),Z?.(J))},oe=J=>{let ge=J;n!=="tags"&&(ge=J.map(ke=>Ee.get(ke)?.value).filter(ke=>ke!==void 0)),n==="tags"&&(ge=ge.filter(ke=>!de.get(ke)?.disabled));let ye=Array.from(new Set([...Ce,...ge]));qe(ye),ye.forEach(ke=>{Rt(ke,!0)})},me=Ft.useMemo(()=>({...Se,flattenOptions:Ge,onActiveValue:yt,defaultActiveFirstOption:gt,onSelect:_e,menuItemSelectedIcon:R,rawValues:Ce,fieldNames:te,virtual:w!==!1&&y!==!1,direction:I,listHeight:P,listItemHeight:N,childrenAsData:ee,maxCount:_,optionRender:S,classNames:T,styles:D}),[_,Se,Ge,yt,gt,_e,R,Ce,te,w,y,I,P,N,ee,S,T,D]);return Ft.createElement(Yl.Provider,{value:me},Ft.createElement(Kv,uS({},F,{id:V,prefixCls:r,ref:t,omitDomProps:k4,mode:n,classNames:T,styles:D,displayValues:Le,onDisplayValuesChange:xt,maxCount:_,direction:I,showSearch:H,searchValue:ie,onSearch:be,autoClearSearchValue:Y,onSearchSplit:oe,popupMatchSelectWidth:y,OptionList:hM,emptyOptions:!Ge.length,activeValue:mt,activeDescendantId:`${V}_list_${$t}`})))}),mS=D4;mS.Option=Yd;mS.OptGroup=Xd;var RM=mS;var EM=RM;var _4=(e,t,o)=>e===!1?null:e===!0?o:e&&t&&e[t]!==void 0?e[t]:o,pS=_4;var oc=M(require("react"));var Vn=M(require("react"));var sr=M(require("react")),$M=require("react");var Vi=(e,t)=>e?.startsWith("var(")||t?.startsWith("var(")?e:new pt(e).onBackground(t).toHexString();var F4=()=>{let[,e]=Gt(),[t]=Go("Empty"),{colorBgContainer:o,colorFill:n,colorFillSecondary:r,colorFillTertiary:i,colorTextQuaternary:s}=e,{panelBgColor:a,borderColor:c,detailColor:l,shadowColor:d,iconColor:u}=(0,$M.useMemo)(()=>({panelBgColor:Vi(i,o),borderColor:Vi(s,o),detailColor:Vi(n,o),shadowColor:Vi(r,o),iconColor:o}),[o,n,r,i,s]);return sr.createElement("svg",{width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},sr.createElement("title",null,t?.description||"Empty"),sr.createElement("g",{fill:"none",fillRule:"evenodd"},sr.createElement("g",{transform:"translate(24 31.7)"},sr.createElement("ellipse",{fillOpacity:".8",fill:d,cx:"67.8",cy:"106.9",rx:"67.8",ry:"12.7"}),sr.createElement("path",{fill:c,d:"M122 69.7 98.1 40.2a6 6 0 0 0-4.6-2.2H42.1a6 6 0 0 0-4.6 2.2l-24 29.5V85H122z"}),sr.createElement("path",{fill:a,d:"M33.8 0h68a4 4 0 0 1 4 4v93.3a4 4 0 0 1-4 4h-68a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4"}),sr.createElement("path",{fill:l,d:"M42.7 10h50.2a2 2 0 0 1 2 2v25a2 2 0 0 1-2 2H42.7a2 2 0 0 1-2-2V12a2 2 0 0 1 2-2m.2 39.8h49.8a2.3 2.3 0 1 1 0 4.5H42.9a2.3 2.3 0 0 1 0-4.5m0 11.7h49.8a2.3 2.3 0 1 1 0 4.6H42.9a2.3 2.3 0 0 1 0-4.6m79 43.5a7 7 0 0 1-6.8 5.4H20.5a7 7 0 0 1-6.7-5.4l-.2-1.8V69.7h26.3c2.9 0 5.2 2.4 5.2 5.4s2.4 5.4 5.3 5.4h34.8c2.9 0 5.3-2.4 5.3-5.4s2.3-5.4 5.2-5.4H122v33.5q0 1-.2 1.8"})),sr.createElement("path",{fill:l,d:"m149.1 33.3-6.8 2.6a1 1 0 0 1-1.3-1.2l2-6.2q-4.1-4.5-4.2-10.4c0-10 10.1-18.1 22.6-18.1S184 8.1 184 18.1s-10.1 18-22.6 18q-6.8 0-12.3-2.8"}),sr.createElement("g",{fill:u,transform:"translate(149.7 15.4)"},sr.createElement("circle",{cx:"20.7",cy:"3.2",r:"2.8"}),sr.createElement("path",{d:"M5.7 5.6H0L2.9.7zM9.3.7h5v5h-5z"}))))},IM=F4;var Ls=M(require("react")),NM=require("react");var z4=()=>{let[,e]=Gt(),[t]=Go("Empty"),{colorFill:o,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:i}=e,{borderColor:s,shadowColor:a,contentColor:c}=(0,NM.useMemo)(()=>({borderColor:Vi(o,i),shadowColor:Vi(n,i),contentColor:Vi(r,i)}),[o,n,r,i]);return Ls.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},Ls.createElement("title",null,t?.description||"Empty"),Ls.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},Ls.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),Ls.createElement("g",{fillRule:"nonzero",stroke:s},Ls.createElement("path",{d:"M55 12.8 44.9 1.3Q44 0 42.9 0H21.1q-1.2 0-2 1.3L9 12.8V22h46z"}),Ls.createElement("path",{d:"M41.6 16c0-1.7 1-3 2.2-3H55v18.1c0 2.2-1.3 3.9-3 3.9H12c-1.7 0-3-1.7-3-3.9V13h11.2c1.2 0 2.2 1.3 2.2 3s1 2.9 2.2 2.9h14.8c1.2 0 2.2-1.4 2.2-3",fill:c}))))},PM=z4;var B4=e=>{let{componentCls:t,margin:o,marginXS:n,marginXL:r,fontSize:i,lineHeight:s}=e;return{[t]:{marginInline:n,fontSize:i,lineHeight:s,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:n,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:o},"&-normal":{marginBlock:r,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:n,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},TM=Ze("Empty",e=>{let{componentCls:t,controlHeightLG:o,calc:n}=e,r=Fe(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n(o).mul(2.5).equal(),emptyImgHeightMD:o,emptyImgHeightSM:n(o).mul(.875).equal()});return B4(r)});var MM=Vn.createElement(IM,null),OM=Vn.createElement(PM,null),fS=Vn.forwardRef((e,t)=>{let{className:o,rootClassName:n,prefixCls:r,image:i,description:s,children:a,imageStyle:c,style:l,classNames:d,styles:u,...m}=e,{getPrefixCls:f,direction:g,className:p,style:h,classNames:y,styles:x,image:b}=Ye("empty"),S=f("empty",r),[v,C]=TM(S),R=De(h),w=De(l),[I,P]=et([y,d],[x,R,u,w],{props:e}),[N]=Go("Empty"),E=typeof s<"u"?s:N?.description,O=typeof E=="string"?E:"empty",L=i??b??MM,k=null;typeof L=="string"?k=Vn.createElement("img",{draggable:!1,alt:O,src:L}):k=L;let z=Vn.useRef(null);return Vn.useImperativeHandle(t,()=>({nativeElement:z.current})),Vn.createElement("div",{ref:z,className:$(v,C,S,p,{[`${S}-normal`]:L===OM,[`${S}-rtl`]:g==="rtl"},o,n,I.root),style:P.root,...m},Vn.createElement("div",{className:$(`${S}-image`,I.image),style:{...c,...P.image}},k),lo(E)&&Vn.createElement("div",{className:$(`${S}-description`,I.description),style:P.description},E),lo(a)&&Vn.createElement("div",{className:$(`${S}-footer`,I.footer),style:P.footer},a))});fS.PRESENTED_IMAGE_DEFAULT=MM;fS.PRESENTED_IMAGE_SIMPLE=OM;var tc=fS;var H4=e=>{let{componentName:t}=e,{getPrefixCls:o}=(0,oc.useContext)(Oe),n=o("empty");switch(t){case"Table":case"List":return oc.default.createElement(tc,{image:tc.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return oc.default.createElement(tc,{image:tc.PRESENTED_IMAGE_SIMPLE,className:`${n}-small`});case"Table.filter":return null;default:return oc.default.createElement(tc,null)}},AM=H4;var V4=e=>{let o={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:{...o,points:["tl","bl"],offset:[0,4]},bottomRight:{...o,points:["tr","br"],offset:[0,4]},topLeft:{...o,points:["bl","tl"],offset:[0,-4]},topRight:{...o,points:["br","tr"],offset:[0,-4]}}};function W4(e,t){return e||V4(t)}var kM=W4;var LM=e=>{let{optionHeight:t,optionFontSize:o,optionLineHeight:n,optionPadding:r}=e;return{position:"relative",display:"block",minHeight:t,padding:r,color:e.colorText,fontWeight:"normal",fontSize:o,lineHeight:n,boxSizing:"border-box"}},j4=e=>{let{antCls:t,componentCls:o}=e,n=`${o}-item`,r=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,s=`&${t}-slide-up-leave${t}-slide-up-leave-active`,a=`${o}-dropdown-placement-`,c=`${n}-option-selected`;return[{[`${o}-dropdown`]:{...Et(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,[`
|
|
232
232
|
${r}${a}bottomLeft,
|
|
233
233
|
${i}${a}bottomLeft
|
|
234
234
|
`]:{animationName:ms},[`
|
|
@@ -239,8 +239,8 @@ ${i}
|
|
|
239
239
|
`]:{animationName:fs},[`${s}${a}bottomLeft`]:{animationName:ps},[`
|
|
240
240
|
${s}${a}topLeft,
|
|
241
241
|
${s}${a}topRight
|
|
242
|
-
`]:{animationName:gs},"&-hidden":{display:"none"},[`${o}-dropdown-list-scrollbar`]:{cursor:"pointer","&:hover":{backgroundColor:e.colorFillQuaternary}},[n]:{...
|
|
243
|
-
${t}-content-item-suffix:first-child`]:{marginInlineStart:g("multi-item-padding-horizontal")},[`${t}-selection-item`]:{lineHeight:`calc(${g("multi-item-height")} - ${a} * 2)`,border:`${a} ${c} ${g("multi-item-border-color")}`,display:"flex",marginBlock:s,marginInlineEnd:o(s).mul(2).equal(),background:g("multi-item-background"),borderRadius:g("multi-item-border-radius"),paddingInlineStart:r,paddingInlineEnd:i,transition:["height","line-height","padding"].map(p=>`${p} ${e.motionDurationSlow}`).join(","),"&-content":{...Xo,marginInlineEnd:i},"&-remove":{...ca(),display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:d}}},[`${t}-input`]:{lineHeight:o(s).mul(2).add(g("multi-item-height")).equal(),width:"calc(var(--select-input-width, 0) * 1px)",minWidth:_M,maxWidth:"100%",transition:`line-height ${e.motionDurationSlow}`}},[`&${t}-sm`]:{[f("multi-item-height")]:e.multipleItemHeightSM,[f("multi-item-border-radius")]:e.borderRadiusXS},[`&${t}-lg`]:{[f("multi-item-height")]:e.multipleItemHeightLG,[f("multi-item-border-radius")]:e.borderRadius},[`&${t}-filled`]:{[f("multi-item-border-color")]:e.colorSplit,[f("multi-item-background")]:e.colorBgContainer,[`&${t}-disabled`]:{[f("multi-item-border-color")]:"transparent"}}}}},FM=W4;var gS=(e,t)=>{let{componentCls:o,antCls:n}=e,[r]=qt(n,"select"),{border:i,borderHover:s,borderActive:a,borderOutline:c}=t,l=t.background||e.selectorBg||e.colorBgContainer;return{[r("border-color")]:i,[r("background-color")]:l,[r("affix-color")]:t.affixColor,[`&:not(${o}-disabled)`]:{"&:hover":{[r("border-color")]:s,[r("background-color")]:t.backgroundHover||l},[`&${o}-focused`]:{[r("border-color")]:a,[r("background-color")]:t.backgroundActive||l,boxShadow:`0 0 0 ${q(e.controlOutlineWidth)} ${c}`}},[`&${o}-disabled`]:{[r("border-color")]:t.borderDisabled||t.border,[r("background-color")]:t.backgroundDisabled||t.background}}},$g=(e,t,o,n,r,i)=>{let{componentCls:s}=e;return{[`&${s}-${t}`]:[gS(e,o),{[`&${s}-status-error`]:gS(e,{...o,...n}),[`&${s}-status-warning`]:gS(e,{...o,...r})},i]}},hS=(e,t)=>({outline:`${q(e.lineWidthFocus)} ${e.lineType} ${t}`,outlineOffset:q(e.calc(e.lineWidth).mul(-1).equal()),transition:["outline-offset","outline"].map(o=>`${o} 0s`).join(", ")}),j4=e=>{let{componentCls:t,fontHeight:o,controlHeight:n,fontSizeIcon:r,showArrowPaddingInlineEnd:i,iconCls:s,antCls:a,max:c,calc:l}=e,[d,u]=qt(a,"select"),m=c(l(i).sub(r).equal(),0);return{[t]:[{[d("border-radius")]:e.borderRadius,[d("border-color")]:"#000",[d("border-size")]:e.lineWidth,[d("background-color")]:e.colorBgContainer,[d("font-size")]:e.fontSize,[d("line-height")]:e.lineHeight,[d("font-height")]:o,[d("color")]:e.colorText,[d("affix-color")]:e.colorText,[d("height")]:n,[d("padding-horizontal")]:l(e.paddingSM).sub(e.lineWidth).equal(),[d("padding-vertical")]:`calc((${u("height")} - ${u("font-height")}) / 2 - ${u("border-size")})`,...Et(e),display:"inline-flex",flexWrap:"nowrap",position:"relative",transition:`all ${e.motionDurationSlow}`,alignItems:"flex-start",outline:0,cursor:"pointer",borderRadius:u("border-radius"),borderWidth:u("border-size"),borderStyle:e.lineType,borderColor:u("border-color"),background:u("background-color"),fontSize:u("font-size"),lineHeight:u("line-height"),color:u("color"),paddingInline:u("padding-horizontal"),paddingBlock:u("padding-vertical"),[`${t}-prefix`]:{color:u("affix-color"),flex:"none",lineHeight:1},[`${t}-placeholder`]:{...Xo,color:e.colorTextPlaceholder,pointerEvents:"none",zIndex:1},[`${t}-content`]:{flex:"auto",minWidth:0,position:"relative",display:"flex",marginInlineEnd:m,"&:before":{content:'"\\a0"',width:0,overflow:"hidden"},"&-value":{visibility:"inherit"},"input[readonly]":{cursor:"inherit",caretColor:"transparent"}},[`${t}-suffix`]:{flex:"none",color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,transition:["opacity","color"].map(f=>`${f} ${e.motionDurationMid} ease`).join(", "),"> :not(:last-child)":{marginInlineEnd:e.marginXS}},[`${t}-prefix, ${t}-suffix`]:{alignSelf:"center",[s]:{verticalAlign:"top"}},"&-disabled":{background:e.colorBgContainerDisabled,[d("color")]:e.colorTextDisabled,cursor:"not-allowed",input:{cursor:"not-allowed"}},"&-sm":{[d("height")]:e.controlHeightSM,[d("padding-horizontal")]:l(e.paddingXS).sub(e.lineWidth).equal(),[d("border-radius")]:e.borderRadiusSM,[`${t}-clear`]:{insetInlineEnd:u("padding-horizontal")}},"&-lg":{[d("height")]:e.controlHeightLG,[d("font-size")]:e.fontSizeLG,[d("line-height")]:e.lineHeightLG,[d("font-height")]:e.fontHeightLG,[d("border-radius")]:e.borderRadiusLG}},{[`&:not(${t}-customize)`]:{[`${t}-input`]:{outline:"none",background:"transparent",appearance:"none",border:0,margin:0,padding:0,color:u("color"),fontFamily:"inherit",fontSize:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},{[`&-single:not(${t}-customize)`]:{[`${t}-input`]:{position:"absolute",inset:0,lineHeight:"inherit"},[`${t}-content`]:{...Xo,alignSelf:"center","&-has-value":{display:"block","&:before":{display:"none"}},"&-has-search-value":{color:"transparent",[`> *:not(${t}-input)`]:{opacity:0}},"&-value":{transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,zIndex:1,opacity:1}},[`&${t}-open ${t}-content`]:{"&-has-value":{opacity:.25},"&-has-search-value":{opacity:1,transition:`opacity ${e.motionDurationMid} ${e.motionEaseInOut}`,color:"transparent",[`> *:not(${t}-input)`]:{opacity:0}}}}},{[`&-show-search:not(${t}-customize-input):not(${t}-disabled)`]:{cursor:"text"}},FM(e),$g(e,"outlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:e.activeOutlineColor,borderDisabled:e.colorBorderDisabled},{border:e.colorError,borderHover:e.colorErrorBorderHover,borderActive:e.colorError,borderOutline:e.colorErrorOutline,affixColor:e.colorErrorAffix},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning,borderOutline:e.colorWarningOutline,affixColor:e.colorWarningAffix}),$g(e,"filled",{border:"transparent",borderHover:"transparent",borderActive:e.activeBorderColor,borderOutline:"transparent",borderDisabled:e.colorBorderDisabled,background:e.colorFillTertiary,backgroundHover:e.colorFillSecondary,backgroundActive:e.colorBgContainer},{color:e.colorErrorText,background:e.colorErrorBg,backgroundHover:e.colorErrorBgHover,borderActive:e.colorError},{background:e.colorWarningBg,backgroundHover:e.colorWarningBgHover,borderActive:e.colorWarning}),$g(e,"borderless",{border:"transparent",borderHover:"transparent",borderActive:"transparent",borderOutline:"transparent",background:"transparent"},{},{},{[`&:not(${t}-disabled):has(input:focus-visible), &:not(${t}-disabled):has(textarea:focus-visible)`]:hS(e,e.activeBorderColor),[`&${t}-status-error:not(${t}-disabled):has(input:focus-visible), &${t}-status-error:not(${t}-disabled):has(textarea:focus-visible)`]:hS(e,e.colorError),[`&${t}-status-warning:not(${t}-disabled):has(input:focus-visible), &${t}-status-warning:not(${t}-disabled):has(textarea:focus-visible)`]:hS(e,e.colorWarning)}),$g(e,"underlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:"transparent"},{border:e.colorError,borderHover:e.colorErrorBorderHover,borderActive:e.colorError},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning},{borderRadius:0,borderTopColor:"transparent",borderInlineColor:"transparent"}),DM(e)]}},zM=j4;var BM=e=>{let{fontSize:t,lineHeight:o,lineWidth:n,lineWidthFocus:r,controlHeight:i,controlHeightSM:s,controlHeightLG:a,paddingXXS:c,controlPaddingHorizontal:l,zIndexPopupBase:d,colorText:u,fontWeightStrong:m,controlItemBgActive:f,controlItemBgHover:g,colorBgContainer:p,colorFillSecondary:h,colorBgContainerDisabled:y,colorTextDisabled:x,colorPrimaryHover:b,colorPrimary:S,controlOutline:v}=e,C=c*2,R=n*2,w=Math.min(i-C,i-R),I=Math.min(s-C,s-R),P=Math.min(a-C,a-R),N=Math.floor(c/2);return{lineWidthFocus:r===0?0:n,INTERNAL_FIXED_ITEM_MARGIN:N,zIndexPopup:d+50,optionSelectedColor:u,optionSelectedFontWeight:m,optionSelectedBg:f,optionActiveBg:g,optionPadding:`${(i-t*o)/2}px ${l}px`,optionFontSize:t,optionLineHeight:o,optionHeight:i,selectorBg:p,clearBg:p,singleItemHeightLG:a,multipleItemBg:h,multipleItemBorderColor:"transparent",multipleItemHeight:w,multipleItemHeightSM:I,multipleItemHeightLG:P,multipleSelectorBgDisabled:y,multipleItemColorDisabled:x,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:b,activeBorderColor:S,activeOutlineColor:v,selectAffixPadding:c}};var U4=e=>{let{antCls:t,componentCls:o,motionDurationMid:n,inputPaddingHorizontalBase:r}=e,i={[`${o}-clear`]:{opacity:1},[`${o}-suffix:not(:last-child)`]:{opacity:0,pointerEvents:"none"},[`&${o}-allow-clear:not(${o}-show-arrow):not(${o}-customize) ${o}-content`]:{marginInlineEnd:e.showArrowPaddingInlineEnd}};return{[o]:{...Et(e),[`${o}-selection-item`]:{flex:1,fontWeight:"normal",position:"relative",userSelect:"none",...Xo,[`> ${t}-typography`]:{display:"inline"}},[`${o}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${o}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),padding:0,background:"transparent",color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontFamily:"inherit",fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",appearance:"none",border:0,cursor:"pointer",opacity:0,transition:["color","opacity"].map(s=>`${s} ${n} ease`).join(", "),textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":i,"&:hover":i},[`${o}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${o}-has-feedback`]:{[`${o}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},K4=e=>{let{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},U4(e),LM(e),{[`${t}-rtl`]:{direction:"rtl"}},hs(e,{focusElCls:`${t}-focused`})]},HM=Ze("Select",(e,{rootPrefixCls:t})=>{let o=Fe(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[K4(o),zM(o)]},BM,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var Ir=M(require("react"));var Ig=M(require("react"));var G4={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"},VM=G4;function yS(){return yS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},yS.apply(this,arguments)}var q4=(e,t)=>Ig.createElement(Ot,yS({},e,{ref:t,icon:VM})),X4=Ig.forwardRef(q4),WM=X4;function bS({suffixIcon:e,contextSuffixIcon:t,clearIcon:o,contextClearIcon:n,menuItemSelectedIcon:r,contextMenuItemSelectedIcon:i,removeIcon:s,contextRemoveIcon:a,loading:c,loadingIcon:l,contextLoadingIcon:d,searchIcon:u,contextSearchIcon:m,multiple:f,hasFeedback:g,showSuffixIcon:p,feedbackIcon:h,showArrow:y,componentName:x}){return Ir.useMemo(()=>{let b=Qt(o,n,Ir.createElement(ls,null)),S=w=>e===null&&!g&&!y?null:Ir.createElement(Ir.Fragment,null,p!==!1&&w,g&&h),v=null;e!==void 0?v=S(e):c?v=S(Qt(l,d,Ir.createElement(wl,{spin:!0}))):v=({open:w,showSearch:I})=>S(w&&I?Qt(u,m,Ir.createElement(kf,null)):Qt(t,Ir.createElement(WM,null)));let C=Qt(r,i,f?Ir.createElement(ag,null):null),R=Qt(s,a,Ir.createElement(Yn,null));return{clearIcon:b,suffixIcon:v,itemIcon:C,removeIcon:R}},[e,t,o,n,r,i,s,a,c,l,d,u,m,f,g,p,h,y])}var xS=M(require("react"));function Y4(e){return xS.default.useMemo(()=>{if(e)return(...t)=>xS.default.createElement(Vr,{space:!0},e.apply(void 0,t))},[e])}var jM=Y4;function vS(e,t){return t!==void 0?t:e!==null}var UM="SECRET_COMBOBOX_MODE_DO_NOT_USE",Z4=(e,t)=>{let{prefixCls:o,bordered:n,className:r,rootClassName:i,getPopupContainer:s,popupClassName:a,dropdownClassName:c,listHeight:l=256,placement:d,listItemHeight:u,size:m,disabled:f,notFoundContent:g,status:p,builtinPlacements:h,dropdownMatchSelectWidth:y,popupMatchSelectWidth:x,direction:b,style:S,allowClear:v,variant:C,popupStyle:R,dropdownStyle:w,transitionName:I,tagRender:P,maxCount:N,prefix:E,dropdownRender:O,popupRender:D,onDropdownVisibleChange:A,onOpenChange:F,styles:_,classNames:T,clearIcon:L,showSearch:z,...G}=e,{getPopupContainer:V,getPrefixCls:j,renderEmpty:Y,direction:B,virtual:U,popupMatchSelectWidth:K,popupOverflow:Z}=Nr.useContext(Oe),{showSearch:X,allowClear:k,style:W,styles:H,className:ee,classNames:J,clearIcon:te,loadingIcon:le,menuItemSelectedIcon:re,removeIcon:ie,suffixIcon:Se}=Ye("select"),[,de]=Gt(),Ee=u??de?.controlHeight,ae=j("select",o),Ne=j(),he=b??B,{compactSize:ne,compactItemClassnames:fe}=kn(ae,he),[ce,we]=rr("select",C,n),Le=oo(ae),[Ce,pe]=HM(ae,Le),ue=Nr.useMemo(()=>{let{mode:dt}=e;if(dt!=="combobox")return dt===UM?"combobox":dt},[e.mode]),se=ue==="multiple"||ue==="tags",ve=vS(e.suffixIcon,e.showArrow),$e=x??y??K,Pe=jM(D||O),Ge=F||A,{status:qe,hasFeedback:mt,isFormItemInput:Qe,feedbackIcon:$t}=Nr.useContext(cn),wt=$s(qe,p),gt;g!==void 0?gt=g:ue==="combobox"?gt=null:gt=Y?.("Select")||Nr.createElement(OM,{componentName:"Select"});let{suffixIcon:ht,itemIcon:yt,removeIcon:Rt,clearIcon:_e}=bS({...G,multiple:se,hasFeedback:mt,feedbackIcon:$t,showSuffixIcon:ve,prefixCls:ae,componentName:"Select",clearIcon:L,searchIcon:pS(z,"searchIcon"),contextClearIcon:te,contextLoadingIcon:le,contextMenuItemSelectedIcon:re,contextRemoveIcon:ie,contextSearchIcon:pS(X,"searchIcon"),contextSuffixIcon:Se}),xt=v??k,be=xt===!0?{clearIcon:_e}:xt,oe=z??X,me=Ke(G,["suffixIcon","itemIcon"]),Q=Xt(dt=>m??ne??dt),ge=Nr.useContext(Fo),ye=f??ge,ke={...e,variant:ce,status:wt,disabled:ye,size:Q},Je=De(W),At=De(S),[Wt,Pt]=et([J,T],[H,Je,_,At],{props:ke},{popup:{_default:"root"}}),to=$(Wt.popup.root,a,c,{[`${ae}-dropdown-${he}`]:he==="rtl"},i,pe,Le,Ce),ao={...Pt.popup?.root,...R??w},$n=$({[`${ae}-lg`]:Q==="large",[`${ae}-sm`]:Q==="small",[`${ae}-rtl`]:he==="rtl",[`${ae}-${ce}`]:we,[`${ae}-in-form-item`]:Qe},Li(ae,wt,mt),fe,ee,r,Wt.root,i,pe,Le,Ce),ze=Nr.useMemo(()=>d!==void 0?d:he==="rtl"?"bottomRight":"bottomLeft",[d,he]),[ot]=ti("SelectLike",Pt.popup.root?.zIndex??ao.zIndex);return Nr.createElement(RM,{ref:t,virtual:U,classNames:Wt,styles:Pt,showSearch:oe,...me,style:Pt.root,popupMatchSelectWidth:$e,transitionName:hr(Ne,"slide-up",I),builtinPlacements:AM(h,Z),listHeight:l,listItemHeight:Ee,mode:ue,prefixCls:ae,placement:ze,direction:he,prefix:E,suffixIcon:ht,menuItemSelectedIcon:yt,removeIcon:Rt,allowClear:be,notFoundContent:gt,className:$n,getPopupContainer:s||V,popupClassName:to,disabled:ye,popupStyle:{...Pt.popup.root,...ao,zIndex:ot},maxCount:se?N:void 0,tagRender:se?P:void 0,popupRender:Pe,onPopupVisibleChange:Ge})},nc=Nr.forwardRef(Z4),Q4=Gp(nc,"popupAlign");nc.SECRET_COMBOBOX_MODE_DO_NOT_USE=UM;nc.Option=Yd;nc.OptGroup=Xd;nc._InternalPanelDoNotUseOrYouWillBeFired=Q4;var KM=nc;var Wi=M(require("react"));var Aa=M(require("react"));function SS(){return SS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},SS.apply(this,arguments)}var GM=Aa.forwardRef(({prefixCls:e="rc-switch",className:t,checked:o,defaultChecked:n,disabled:r,loadingIcon:i,checkedChildren:s,unCheckedChildren:a,onClick:c,onChange:l,onKeyDown:d,styles:u,classNames:m,...f},g)=>{let[p,h]=st(n??!1,o);function y(v,C){let R=p;return r||(R=v,h(R),l?.(R,C)),R}function x(v){v.which===Me.LEFT?y(!1,v):v.which===Me.RIGHT&&y(!0,v),d?.(v)}function b(v){let C=y(!p,v);c?.(C,v)}let S=$(e,t,{[`${e}-checked`]:p,[`${e}-disabled`]:r});return Aa.createElement("button",SS({},f,{type:"button",role:"switch","aria-checked":p,disabled:r,className:S,ref:g,onKeyDown:x,onClick:b}),i,Aa.createElement("span",{className:`${e}-inner`},Aa.createElement("span",{className:$(`${e}-inner-checked`,m?.content),style:u?.content},s),Aa.createElement("span",{className:$(`${e}-inner-unchecked`,m?.content),style:u?.content},a)))});GM.displayName="Switch";var qM=GM;var J4=e=>{let{componentCls:t,trackHeightSM:o,trackPadding:n,trackMinWidthSM:r,innerMinMarginSM:i,innerMaxMarginSM:s,handleSizeSM:a,calc:c}=e,l=`${t}-inner`,d=q(c(a).add(c(n).mul(2)).equal()),u=q(c(s).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:r,height:o,lineHeight:q(o),[`${t}-inner`]:{paddingInlineStart:s,paddingInlineEnd:i,[`${l}-checked, ${l}-unchecked`]:{minHeight:o},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${u})`,marginInlineEnd:`calc(100% - ${d} + ${u})`},[`${l}-unchecked`]:{marginTop:c(o).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:a,height:a},[`${t}-loading-icon`]:{top:c(c(a).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:s,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${u})`,marginInlineEnd:`calc(-100% + ${d} - ${u})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${q(c(a).add(n).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},eB=e=>{let{componentCls:t,handleSize:o,calc:n}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:n(n(o).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},tB=e=>{let{componentCls:t,trackPadding:o,handleBg:n,handleShadow:r,handleSize:i,calc:s}=e,a=`${t}-handle`;return{[t]:{[a]:{position:"absolute",top:o,insetInlineStart:o,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,...oi(),"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:n,borderRadius:s(i).div(2).equal(),boxShadow:r,transition:`all ${e.switchDuration} ease-in-out`,content:'""',...Rl()}},[`&${t}-checked ${a}`]:{insetInlineStart:`calc(100% - ${q(s(i).add(o).equal())})`},[`&:not(${t}-disabled):active`]:{[`${a}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${a}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},oB=e=>{let{componentCls:t,trackHeight:o,trackPadding:n,innerMinMargin:r,innerMaxMargin:i,handleSize:s,switchDuration:a,calc:c}=e,l=`${t}-inner`,d=q(c(s).add(c(n).mul(2)).equal()),u=q(c(i).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:r,transition:["padding-inline-start","padding-inline-end"].map(m=>`${m} ${a} ease-in-out`).join(", "),...oi(),[`${l}-checked, ${l}-unchecked`]:{display:"flex",alignItems:"center",justifyContent:"center",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,pointerEvents:"none",minHeight:o,transition:["margin-inline-start","margin-inline-end"].map(m=>`${m} ${a} ease-in-out`).join(", "),...oi()},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${u})`,marginInlineEnd:`calc(100% - ${d} + ${u})`},[`${l}-unchecked`]:{marginTop:c(o).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:r,paddingInlineEnd:i,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${u})`,marginInlineEnd:`calc(-100% + ${d} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:c(n).mul(2).equal(),marginInlineEnd:c(n).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:c(n).mul(-1).mul(2).equal(),marginInlineEnd:c(n).mul(2).equal()}}}}}},nB=e=>{let{componentCls:t,trackHeight:o,trackMinWidth:n}=e;return{[t]:{...Et(e),position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:n,height:o,lineHeight:q(o),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",...oi(),[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary},...ln(e),[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}}}},rB=e=>{let{fontSize:t,lineHeight:o,controlHeight:n,colorWhite:r}=e,i=t*o,s=n/2,a=2,c=i-a*2,l=s-a*2;return{trackHeight:i,trackHeightSM:s,trackMinWidth:c*2+a*4,trackMinWidthSM:l*2+a*2,trackPadding:a,handleBg:r,handleSize:c,handleSizeSM:l,handleShadow:`0 2px 4px 0 ${new pt("#00230b").setA(.2).toRgbString()}`,innerMinMargin:c/2,innerMaxMargin:c+a+a*2,innerMinMarginSM:l/2,innerMaxMarginSM:l+a+a*2}},XM=Ze("Switch",e=>{let t=Fe(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[nB(t),oB(t),tB(t),eB(t),J4(t)]},rB);var iB=Wi.forwardRef((e,t)=>{let{prefixCls:o,size:n,disabled:r,loading:i,className:s,rootClassName:a,style:c,checked:l,value:d,defaultChecked:u,defaultValue:m,onChange:f,styles:g,classNames:p,...h}=e,[y,x]=st(u??m??!1,l??d),{getPrefixCls:b,direction:S,className:v,style:C,classNames:R,styles:w}=Ye("switch"),I=Wi.useContext(Fo),P=(r??I)||i,N=b("switch",o),[E,O]=XM(N),D=Xt(n),A={...e,size:D,disabled:P},F=De(C),_=De(c),[T,L]=et([R,p],[w,F,g,_],{props:A}),z=Wi.createElement("div",{className:$(`${N}-handle`,T.indicator),style:L.indicator},i&&Wi.createElement(wl,{className:`${N}-loading-icon`})),G=$(v,{[`${N}-small`]:D==="small",[`${N}-loading`]:i,[`${N}-rtl`]:S==="rtl"},s,a,T.root,E,O);return Wi.createElement(vl,{component:"Switch",disabled:P},Wi.createElement(qM,{...h,classNames:T,styles:L,checked:y,onChange:(...j)=>{x(j[0]),f?.(...j)},prefixCls:N,className:G,style:L.root,disabled:P,ref:t,loadingIcon:z}))}),YM=iB;YM.__ANT_SWITCH=!0;var ZM=YM;var wn=M(require("react"));var Ng=M(require("react"));var sB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},QM=sB;function CS(){return CS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},CS.apply(this,arguments)}var aB=(e,t)=>Ng.createElement(Ot,CS({},e,{ref:t,icon:QM})),lB=Ng.forwardRef(aB),JM=lB;var yi=M(require("react")),La=require("react");var eO=require("react"),rc=(0,eO.createContext)(null);var mO=M(require("react"));var tn=M(require("react")),go=require("react");var Ds=M(require("react")),cB=e=>{let{activeTabOffset:t,horizontal:o,rtl:n,indicator:r={}}=e,{size:i,align:s="center"}=r,[a,c]=(0,Ds.useState)(),l=(0,Ds.useRef)(void 0),d=Ds.default.useCallback(m=>typeof i=="function"?i(m):typeof i=="number"?i:m,[i]);function u(){He.cancel(l.current)}return(0,Ds.useEffect)(()=>{let m={};if(t)if(o){m.width=d(t.width);let f=n?"right":"left";s==="start"&&(m[f]=t[f]),s==="center"&&(m[f]=t[f]+t.width/2,m.transform=n?"translateX(50%)":"translateX(-50%)"),s==="end"&&(m[f]=t[f]+t.width,m.transform="translateX(-100%)")}else m.height=d(t.height),s==="start"&&(m.top=t.top),s==="center"&&(m.top=t.top+t.height/2,m.transform="translateY(-50%)"),s==="end"&&(m.top=t.top+t.height,m.transform="translateY(-100%)");return u(),l.current=He(()=>{a&&m&&Object.keys(m).every(g=>{let p=m[g],h=a[g];return typeof p=="number"&&typeof h=="number"?Math.round(p)===Math.round(h):p===h})||c(m)}),u},[JSON.stringify(t),o,n,s,d]),{style:a}},tO=cB;var nO=require("react"),oO={width:0,height:0,left:0,top:0};function wS(e,t,o){return(0,nO.useMemo)(()=>{let n=new Map,r=t.get(e[0]?.key)||oO,i=r.left+r.width;for(let s=0;s<e.length;s+=1){let{key:a}=e[s],c=t.get(a);c||(c=t.get(e[s-1]?.key)||oO);let l=n.get(a)||{...c};l.right=i-l.left-l.width,n.set(a,l)}return n},[e.map(n=>n.key).join("_"),t,o])}var Pg=M(require("react"));function Tg(e,t){let o=Pg.useRef(e),[,n]=Pg.useState({});function r(i){let s=typeof i=="function"?i(o.current):i;s!==o.current&&t(s,o.current),o.current=s,n({})}return[o.current,r]}var sO=M(require("react")),ji=require("react"),dB=.1,rO=.01,Mg=20,iO=.995**Mg;function RS(e,t){let[o,n]=(0,ji.useState)(),[r,i]=(0,ji.useState)(0),[s,a]=(0,ji.useState)(0),[c,l]=(0,ji.useState)(),d=(0,ji.useRef)(void 0);function u(y){let{screenX:x,screenY:b}=y.touches[0];n({x,y:b}),window.clearInterval(d.current)}function m(y){if(!o)return;let{screenX:x,screenY:b}=y.touches[0];n({x,y:b});let S=x-o.x,v=b-o.y;t(S,v);let C=Date.now();i(C),a(C-r),l({x:S,y:v})}function f(){if(o&&(n(null),l(null),c)){let y=c.x/s,x=c.y/s,b=Math.abs(y),S=Math.abs(x);if(Math.max(b,S)<dB)return;let v=y,C=x;d.current=window.setInterval(()=>{if(Math.abs(v)<rO&&Math.abs(C)<rO){window.clearInterval(d.current);return}v*=iO,C*=iO,t(v*Mg,C*Mg)},Mg)}}let g=(0,ji.useRef)(void 0);function p(y){let{deltaX:x,deltaY:b}=y,S,v=Math.abs(x),C=Math.abs(b);v===C?S=g.current==="x"?x:b:v>C?(S=x,g.current="x"):(S=b,g.current="y"),t(-S,-S)&&y.preventDefault()}let h=(0,ji.useRef)(null);h.current={onTouchStart:u,onTouchMove:m,onTouchEnd:f,onWheel:p},sO.useEffect(()=>{function y(v){h.current.onTouchStart(v)}function x(v){h.current.onTouchMove(v)}function b(v){h.current.onTouchEnd(v)}function S(v){h.current.onWheel(v)}return document.addEventListener("touchmove",x,{passive:!1}),document.addEventListener("touchend",b,{passive:!0}),e.current.addEventListener("touchstart",y,{passive:!0}),e.current.addEventListener("wheel",S,{passive:!1}),()=>{document.removeEventListener("touchmove",x),document.removeEventListener("touchend",b)}},[])}var _s=require("react");function Og(e){let[t,o]=(0,_s.useState)(0),n=(0,_s.useRef)(0),r=(0,_s.useRef)(void 0);return r.current=e,wu(()=>{r.current?.()},[t]),()=>{n.current===t&&(n.current+=1,o(n.current))}}function aO(e){let t=(0,_s.useRef)([]),[,o]=(0,_s.useState)({}),n=(0,_s.useRef)(typeof e=="function"?e():e),r=Og(()=>{let s=n.current;t.current.forEach(a=>{s=a(s)}),t.current=[],n.current=s,o({})});function i(s){t.current.push(s),r()}return[n.current,i]}var cO=require("react"),lO={width:0,height:0,left:0,top:0,right:0};function ES(e,t,o,n,r,i,{tabs:s,tabPosition:a,rtl:c}){let l,d,u;return["top","bottom"].includes(a)?(l="width",d=c?"right":"left",u=Math.abs(o)):(l="height",d="top",u=-o),(0,cO.useMemo)(()=>{if(!s.length)return[0,0];let m=s.length,f=m;for(let p=0;p<m;p+=1){let h=e.get(s[p].key)||lO;if(Math.floor(h[d]+h[l])>Math.floor(u+t)){f=p-1;break}}let g=0;for(let p=m-1;p>=0;p-=1)if((e.get(s[p].key)||lO)[d]<u){g=p+1;break}return g>f?[0,-1]:[g,f]},[e,t,n,r,i,u,a,s.map(m=>m.key).join("_"),c])}function $S(e){let t;return e instanceof Map?(t={},e.forEach((o,n)=>{t[n]=o})):t=e,JSON.stringify(t)}var uB="TABS_DQ";function Ag(e){return String(e).replace(/"/g,uB)}function ic(e,t,o,n){return!(!o||n||e===!1||e===void 0&&(t===!1||t===null))}var kg=M(require("react")),mB=kg.forwardRef((e,t)=>{let{prefixCls:o,editable:n,locale:r,style:i}=e;return!n||n.showAdd===!1?null:kg.createElement("button",{ref:t,type:"button",className:`${o}-nav-add`,style:i,"aria-label":r?.addAriaLabel||"Add tab",onClick:s=>{n.onEdit("add",{event:s})}},n.addIcon||"+")}),Lg=mB;var sc=M(require("react")),pB=sc.forwardRef((e,t)=>{let{position:o,prefixCls:n,extra:r}=e;if(!r)return null;let i,s={};return typeof r=="object"&&!sc.isValidElement(r)?s=r:s.right=r,o==="right"&&(i=s.right),o==="left"&&(i=s.left),i?sc.createElement("div",{className:`${n}-extra-content`,ref:t},i):null}),IS=pB;var ar=M(require("react")),ac=require("react");function NS(){return NS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},NS.apply(this,arguments)}var fB=ar.forwardRef((e,t)=>{let{prefixCls:o,id:n,tabs:r,locale:i,mobile:s,more:a={},style:c,className:l,editable:d,tabBarGutter:u,rtl:m,removeAriaLabel:f,onTabClick:g,getPopupContainer:p,popupClassName:h,popupStyle:y,classNames:x,styles:b}=e,[S,v]=(0,ac.useState)(!1),[C,R]=(0,ac.useState)(null),{icon:w="More",popupRender:I}=a,P=`${n}-more-popup`,N=`${o}-dropdown`,E=C!==null?`${P}-${C}`:null,O=i?.dropdownAriaLabel;function D(V,j){V.preventDefault(),V.stopPropagation(),d.onEdit("remove",{key:j,event:V})}let A=ar.createElement(df,{onClick:({key:V,domEvent:j})=>{g(V,j),v(!1)},prefixCls:`${N}-menu`,id:P,tabIndex:-1,role:"listbox","aria-activedescendant":E,selectedKeys:[C],"aria-label":O!==void 0?O:"expanded dropdown"},r.map(V=>{let{closable:j,disabled:Y,closeIcon:B,key:U,label:K}=V,Z=ic(j,B,d,Y);return ar.createElement(si,{key:U,id:`${P}-${U}`,role:"option","aria-controls":n&&`${n}-panel-${U}`,disabled:Y},ar.createElement("span",null,K),Z&&ar.createElement("button",{type:"button","aria-label":f||"remove",tabIndex:0,className:$(`${N}-menu-item-remove`,x?.remove),style:b?.remove,onClick:X=>{X.stopPropagation(),D(X,U)}},B||d.removeIcon||"\xD7"))})),F=I?I(A,{restTabs:r,onClose:()=>v(!1)}):A;function _(V){let j=r.filter(U=>!U.disabled),Y=j.findIndex(U=>U.key===C)||0,B=j.length;for(let U=0;U<B;U+=1){Y=(Y+V+B)%B;let K=j[Y];if(!K.disabled){R(K.key);return}}}function T(V){let{which:j}=V;if(!S){[Me.DOWN,Me.SPACE,Me.ENTER].includes(j)&&(v(!0),V.preventDefault());return}switch(j){case Me.UP:_(-1),V.preventDefault();break;case Me.DOWN:_(1),V.preventDefault();break;case Me.ESC:v(!1);break;case Me.SPACE:case Me.ENTER:C!==null&&g(C,V);break}}(0,ac.useEffect)(()=>{let V=document.getElementById(E);V?.scrollIntoView&&V.scrollIntoView(!1)},[E,C]),(0,ac.useEffect)(()=>{S||R(null)},[S]);let L={marginInlineStart:u};r.length||(L.visibility="hidden",L.order=1);let z=$(h,{[`${N}-rtl`]:m}),G=s?null:ar.createElement(jp,NS({prefixCls:N,overlay:F,visible:r.length?S:!1,onVisibleChange:v,overlayClassName:z,overlayStyle:y,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:p},a),ar.createElement("button",{type:"button",className:`${o}-nav-more`,style:L,"aria-haspopup":"listbox","aria-controls":P,id:`${n}-more`,"aria-expanded":S,onKeyDown:T},w));return ar.createElement("div",{className:$(`${o}-nav-operations`,l),style:c,ref:t},G,ar.createElement(Lg,{prefixCls:o,locale:i,editable:d}))}),dO=ar.memo(fB,(e,t)=>t.tabMoving);var lr=M(require("react"));var gB=e=>{let{prefixCls:t,id:o,active:n,focus:r,tab:{key:i,label:s,disabled:a,closeIcon:c,icon:l},closable:d,renderWrapper:u,removeAriaLabel:m,editable:f,onClick:g,onFocus:p,onBlur:h,onKeyDown:y,onMouseDown:x,onMouseUp:b,styles:S,classNames:v,tabCount:C,currentPosition:R}=e,w=`${t}-tab`,I=ic(d,c,f,a);function P(A){a||g(A)}function N(A){A.preventDefault(),A.stopPropagation(),f.onEdit("remove",{key:i,event:A})}let E=lr.useMemo(()=>l&&typeof s=="string"?lr.createElement("span",null,s):s,[s,l]),O=lr.useRef(null);lr.useEffect(()=>{r&&O.current&&O.current.focus()},[r]);let D=lr.createElement("div",{key:i,"data-node-key":Ag(i),className:$(w,v?.item,{[`${w}-with-remove`]:I,[`${w}-active`]:n,[`${w}-disabled`]:a,[`${w}-focus`]:r}),style:S?.item,onClick:P},lr.createElement("div",{ref:O,role:"tab","aria-selected":n,id:o&&`${o}-tab-${i}`,className:`${w}-btn`,"aria-controls":o&&`${o}-panel-${i}`,"aria-disabled":a,tabIndex:a?null:n?0:-1,onClick:A=>{A.stopPropagation(),P(A)},onKeyDown:y,onMouseDown:x,onMouseUp:b,onFocus:p,onBlur:h},r&&lr.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`Tab ${R} of ${C}`),l&&lr.createElement("span",{className:`${w}-icon`},l),s&&E),I&&lr.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:n?0:-1,className:$(`${w}-remove`,v?.remove),style:S?.remove,onClick:A=>{A.stopPropagation(),N(A)}},c||f.removeIcon||"\xD7"));return u?u(D):D},uO=gB;function PS(){return PS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},PS.apply(this,arguments)}var hB=(e,t)=>{let{offsetWidth:o,offsetHeight:n,offsetTop:r,offsetLeft:i}=e,{width:s,height:a,left:c,top:l}=e.getBoundingClientRect();return Math.abs(s-o)<1?[s,a,c-t.left,l-t.top]:[o,n,i,r]},lc=e=>{let{offsetWidth:t=0,offsetHeight:o=0}=e.current||{};if(e.current){let{width:n,height:r}=e.current.getBoundingClientRect();if(Math.abs(n-t)<1)return[n,r]}return[t,o]},Dg=(e,t)=>e[t?0:1],yB=tn.forwardRef((e,t)=>{let{className:o,style:n,id:r,animated:i,activeKey:s,rtl:a,extra:c,editable:l,locale:d,tabPosition:u,tabBarGutter:m,children:f,onTabClick:g,onTabScroll:p,indicator:h,classNames:y,styles:x}=e,{prefixCls:b,tabs:S}=tn.useContext(rc),v=(0,go.useRef)(null),C=(0,go.useRef)(null),R=(0,go.useRef)(null),w=(0,go.useRef)(null),I=(0,go.useRef)(null),P=(0,go.useRef)(null),N=(0,go.useRef)(null),E=u==="top"||u==="bottom",[O,D]=Tg(0,(oe,me)=>{E&&p&&p({direction:oe>me?"left":"right"})}),[A,F]=Tg(0,(oe,me)=>{!E&&p&&p({direction:oe>me?"top":"bottom"})}),[_,T]=(0,go.useState)([0,0]),[L,z]=(0,go.useState)([0,0]),[G,V]=(0,go.useState)([0,0]),[j,Y]=(0,go.useState)([0,0]),[B,U]=aO(new Map),K=wS(S,B,L[0]),Z=Dg(_,E),X=Dg(L,E),k=Dg(G,E),W=Dg(j,E),H=Math.floor(Z)<Math.floor(X+k),ee=H?Z-W:Z-k,J=`${b}-nav-operations-hidden`,te=0,le=0;E&&a?(te=0,le=Math.max(0,X-ee)):(te=Math.min(0,ee-X),le=0);function re(oe){return oe<te?te:oe>le?le:oe}let ie=(0,go.useRef)(null),[Se,de]=(0,go.useState)();function Ee(){de(Date.now())}function ae(){ie.current&&clearTimeout(ie.current)}RS(w,(oe,me)=>{function Q(ge,ye){ge(ke=>re(ke+ye))}return H?(E?Q(D,oe):Q(F,me),ae(),Ee(),!0):!1}),(0,go.useEffect)(()=>(ae(),Se&&(ie.current=setTimeout(()=>{de(0)},100)),ae),[Se]);let[Ne,he]=ES(K,ee,E?O:A,X,k,W,{...e,tabs:S}),ne=Ie((oe=s)=>{let me=K.get(oe)||{width:0,height:0,left:0,right:0,top:0};if(E){let Q=O;a?me.right<O?Q=me.right:me.right+me.width>O+ee&&(Q=me.right+me.width-ee):me.left<-O?Q=-me.left:me.left+me.width>-O+ee&&(Q=-(me.left+me.width-ee)),F(0),D(re(Q))}else{let Q=A;me.top<-A?Q=-me.top:me.top+me.height>-A+ee&&(Q=-(me.top+me.height-ee)),D(0),F(re(Q))}}),[fe,ce]=(0,go.useState)(),[we,Le]=(0,go.useState)(!1),Ce=S.filter(oe=>!oe.disabled).map(oe=>oe.key),pe=oe=>{let me=Ce.indexOf(fe||s),Q=Ce.length,ge=(me+oe+Q)%Q,ye=Ce[ge];ce(ye)},ue=(oe,me)=>{let Q=Ce.indexOf(oe),ge=S.find(ke=>ke.key===oe);ic(ge?.closable,ge?.closeIcon,l,ge?.disabled)&&(me.preventDefault(),me.stopPropagation(),l.onEdit("remove",{key:oe,event:me}),Q===Ce.length-1?pe(-1):pe(1))},se=(oe,me)=>{Le(!0),me.button===1&&ue(oe,me)},ve=oe=>{let{code:me}=oe,Q=a&&E,ge=Ce[0],ye=Ce[Ce.length-1];switch(me){case"ArrowLeft":{E&&pe(Q?1:-1);break}case"ArrowRight":{E&&pe(Q?-1:1);break}case"ArrowUp":{oe.preventDefault(),E||pe(-1);break}case"ArrowDown":{oe.preventDefault(),E||pe(1);break}case"Home":{oe.preventDefault(),ce(ge);break}case"End":{oe.preventDefault(),ce(ye);break}case"Enter":case"Space":{oe.preventDefault(),g(fe??s,oe);break}case"Backspace":case"Delete":{ue(fe,oe);break}}},$e={};E?$e.marginInlineStart=m:$e.marginTop=m;let Pe=S.map((oe,me)=>{let{key:Q}=oe;return tn.createElement(uO,{id:r,prefixCls:b,key:Q,tab:oe,classNames:{item:y?.item,remove:y?.remove},styles:{item:me===0?x?.item:{...$e,...x?.item},remove:x?.remove},closable:oe.closable,editable:l,active:Q===s,focus:Q===fe,renderWrapper:f,removeAriaLabel:d?.removeAriaLabel,tabCount:Ce.length,currentPosition:me+1,onClick:ge=>{g(Q,ge)},onKeyDown:ve,onFocus:()=>{we||ce(Q),ne(Q),Ee(),w.current&&(a||(w.current.scrollLeft=0),w.current.scrollTop=0)},onBlur:()=>{ce(void 0)},onMouseDown:ge=>se(Q,ge),onMouseUp:()=>{Le(!1)}})}),Ge=()=>U(()=>{let oe=new Map,me=I.current?.getBoundingClientRect();return S.forEach(({key:Q})=>{let ge=I.current?.querySelector(`[data-node-key="${Ag(Q)}"]`);if(ge){let[ye,ke,Je,At]=hB(ge,me);oe.set(Q,{width:ye,height:ke,left:Je,top:At})}}),oe});(0,go.useEffect)(()=>{Ge()},[S.map(oe=>oe.key).join("_")]);let qe=Og(()=>{let oe=lc(v),me=lc(C),Q=lc(R);T([oe[0]-me[0]-Q[0],oe[1]-me[1]-Q[1]]);let ge=lc(N);V(ge);let ye=lc(P);Y(ye);let ke=lc(I);z([ke[0]-ge[0],ke[1]-ge[1]]),Ge()}),mt=S.slice(0,Ne),Qe=S.slice(he+1),$t=[...mt,...Qe],wt=K.get(s),{style:gt}=tO({activeTabOffset:wt,horizontal:E,indicator:h,rtl:a});(0,go.useEffect)(()=>{ne()},[s,te,le,$S(wt),$S(K),E]),(0,go.useEffect)(()=>{qe()},[a]);let ht=!!$t.length,yt=`${b}-nav-wrap`,Rt,_e,xt,be;return E?a?(_e=O>0,Rt=O!==le):(Rt=O<0,_e=O!==te):(xt=A<0,be=A!==te),tn.createElement(sn,{onResize:qe},tn.createElement("div",{ref:bo(t,v),role:"tablist","aria-orientation":E?"horizontal":"vertical",className:$(`${b}-nav`,o,y?.header),style:{...x?.header,...n},onKeyDown:()=>{Ee()}},tn.createElement(IS,{ref:C,position:"left",extra:c,prefixCls:b}),tn.createElement(sn,{onResize:qe},tn.createElement("div",{className:$(yt,{[`${yt}-ping-left`]:Rt,[`${yt}-ping-right`]:_e,[`${yt}-ping-top`]:xt,[`${yt}-ping-bottom`]:be}),ref:w},tn.createElement(sn,{onResize:qe},tn.createElement("div",{ref:I,className:`${b}-nav-list`,style:{transform:`translate(${O}px, ${A}px)`,transition:Se?"none":void 0}},Pe,tn.createElement(Lg,{ref:N,prefixCls:b,locale:d,editable:l,style:{...Pe.length===0?void 0:$e,visibility:ht?"hidden":null}}),tn.createElement("div",{className:$(`${b}-ink-bar`,y?.indicator,{[`${b}-ink-bar-animated`]:i.inkBar}),style:{...gt,...x?.indicator}}))))),tn.createElement(dO,PS({},e,{removeAriaLabel:d?.removeAriaLabel,ref:P,prefixCls:b,tabs:$t,className:!ht&&J,popupStyle:x?.popup,tabMoving:!!Se})),tn.createElement(IS,{ref:R,position:"right",extra:c,prefixCls:b})))}),TS=yB;var bB=({renderTabBar:e,...t})=>e?e(t,TS):mO.createElement(TS,t),pO=bB;var ka=M(require("react"));var cc=M(require("react")),xB=cc.forwardRef((e,t)=>{let{prefixCls:o,className:n,style:r,id:i,active:s,tabKey:a,children:c}=e,l=cc.Children.count(c)>0;return cc.createElement("div",{id:i&&`${i}-panel-${a}`,role:"tabpanel",tabIndex:s&&l?0:-1,"aria-labelledby":i&&`${i}-tab-${a}`,"aria-hidden":!s,style:r,className:$(o,s&&`${o}-active`,n),ref:t},c)}),fO=xB;function _g(){return _g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},_g.apply(this,arguments)}var vB=e=>{let{id:t,activeKey:o,animated:n,tabPosition:r,destroyOnHidden:i,bodyStyle:s,bodyClassName:a,contentStyle:c,contentClassName:l}=e,{prefixCls:d,tabs:u}=ka.useContext(rc),m=n.tabPane,f=`${d}-body`,g=`${d}-content`;return ka.createElement("div",{className:$(`${f}-holder`)},ka.createElement("div",{className:$(f,`${f}-${r}`,{[`${f}-animated`]:m},a),style:s},u.map(p=>{let{key:h,forceRender:y,style:x,className:b,destroyOnHidden:S,...v}=p,C=h===o;return ka.createElement(po,_g({key:h,visible:C,forceRender:y,removeOnLeave:!!(i??S),leavedClassName:`${g}-hidden`},n.tabPaneMotion),({style:R,className:w},I)=>ka.createElement(fO,_g({},v,{prefixCls:g,id:t,tabKey:h,animated:m,active:C,style:{...c,...x,...R},className:$(l,b,w),ref:I})))})))},gO=vB;function MS(e={inkBar:!0,tabPane:!1}){let t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t={inkBar:!0,...typeof e=="object"?e:{}},t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}function eu(){return eu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},eu.apply(this,arguments)}var hO=0,SB=yi.forwardRef((e,t)=>{let{id:o,prefixCls:n="rc-tabs",className:r,items:i,direction:s,activeKey:a,defaultActiveKey:c,editable:l,animated:d,tabPosition:u="top",tabBarGutter:m,tabBarStyle:f,tabBarExtraContent:g,locale:p,more:h,destroyOnHidden:y,renderTabBar:x,onChange:b,onTabClick:S,onTabScroll:v,getPopupContainer:C,popupClassName:R,indicator:w,classNames:I,styles:P,...N}=e,E=yi.useMemo(()=>(i||[]).filter(K=>K&&typeof K=="object"&&"key"in K),[i]),O=s==="rtl",D=MS(d),[A,F]=(0,La.useState)(!1);(0,La.useEffect)(()=>{F(jh())},[]);let[_,T]=st(c??E[0]?.key,a),[L,z]=(0,La.useState)(()=>E.findIndex(K=>K.key===_));(0,La.useEffect)(()=>{let K=E.findIndex(Z=>Z.key===_);K===-1&&(K=Math.max(0,Math.min(L,E.length-1)),T(E[K]?.key)),z(K)},[E.map(K=>K.key).join("_"),_,L]);let[G,V]=st(null,o);(0,La.useEffect)(()=>{o||(V(`rc-tabs-${hO}`),hO+=1)},[]);function j(K,Z){S?.(K,Z);let X=K!==_;T(K),X&&b?.(K)}let Y={id:G,activeKey:_,animated:D,tabPosition:u,rtl:O,mobile:A},B={...Y,editable:l,locale:p,more:h,tabBarGutter:m,onTabClick:j,onTabScroll:v,extra:g,style:f,getPopupContainer:C,popupClassName:$(R,I?.popup),indicator:w,styles:P,classNames:I},U=yi.useMemo(()=>({tabs:E,prefixCls:n}),[E,n]);return yi.createElement(rc.Provider,{value:U},yi.createElement("div",eu({ref:t,id:o,className:$(n,`${n}-${u}`,{[`${n}-mobile`]:A,[`${n}-editable`]:l,[`${n}-rtl`]:O},r)},N),yi.createElement(pO,eu({},B,{renderTabBar:x})),yi.createElement(gO,eu({destroyOnHidden:y},Y,{bodyStyle:P?.body,bodyClassName:I?.body,contentStyle:P?.content,contentClassName:I?.content,animated:D}))))}),yO=SB;var bO=yO;var CB={motionAppear:!1,motionEnter:!0,motionLeave:!0};function OS(e,t={inkBar:!0,tabPane:!1}){let o;return t===!1?o={inkBar:!1,tabPane:!1}:t===!0?o={inkBar:!0,tabPane:!0}:o={inkBar:!0,...at(t)?t:{}},o.tabPane&&(o.tabPaneMotion={...CB,motionName:hr(e,"switch")}),o}var xO=M(require("react"));function wB(e){return e.filter(t=>t)}function RB(e,t){if(e)return e.map(n=>({...n,destroyOnHidden:n.destroyOnHidden??n.destroyInactiveTabPane}));let o=co(t).map(n=>{if(xO.isValidElement(n)){let{key:r,props:i}=n,{tab:s,...a}=i||{};return{key:String(r),...a,label:s}}return null});return wB(o)}var vO=RB;var EB=e=>{let{componentCls:t,motionDurationSlow:o}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${o}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${o}`}}}}},[xn(e,"slide-up"),xn(e,"slide-down")]]},SO=EB;var $B=e=>{let{componentCls:t,tabsCardPadding:o,cardBg:n,cardGutter:r,colorBorderSecondary:i,itemSelectedColor:s}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:o,background:n,border:`${q(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:s,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:An(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:q(r)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${q(e.borderRadiusLG)} ${q(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${q(e.borderRadiusLG)} ${q(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:q(r)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${q(e.borderRadiusLG)} 0 0 ${q(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${q(e.borderRadiusLG)} ${q(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},IB=e=>{let{antCls:t,componentCls:o,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${o}-dropdown`]:{...Et(e),position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`&${t}-slide-down-enter${t}-slide-down-enter-active${o}-dropdown-placement-bottomLeft,
|
|
242
|
+
`]:{animationName:gs},"&-hidden":{display:"none"},[`${o}-dropdown-list-scrollbar`]:{cursor:"pointer","&:hover":{backgroundColor:e.colorFillQuaternary}},[n]:{...LM(e),cursor:"pointer",transition:`background-color ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":{flex:"auto",...Xo},"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-selected:not(${n}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${n}-option-state`]:{color:e.colorPrimary}},[`&-active:not(${n}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected${n}-option-active:not(${n}-option-disabled)`]:{backgroundColor:e.controlItemBgActiveHover},"&-disabled":{[`&${n}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":{...LM(e),color:e.colorTextDisabled}},[`${c}:has(+ ${c})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${c}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}}},xn(e,"slide-up"),xn(e,"slide-down"),ga(e,"move-up"),ga(e,"move-down")]},DM=j4;var U4=e=>{let{antCls:t,componentCls:o}=e,n={background:"transparent"},r=["> input[disabled]","> textarea[disabled]",`> ${o}-input`,`> ${t}-input-affix-wrapper-disabled`,`> ${t}-input-search`].join(", ");return{[`&${o}-customize`]:{border:0,padding:0,fontSize:"inherit",lineHeight:"inherit",[`${o}-placeholder`]:{display:"none"},[`${o}-content`]:{margin:0,padding:0,"&-value":{display:"none"}},[`&${o}-filled ${o}-content`]:{[`${t}-input-filled`]:n},[`&${o}-disabled ${o}-content`]:{[r]:n,"input[disabled], textarea[disabled]":n}}}},_M=U4;var FM=4,K4=e=>{let{componentCls:t,calc:o,iconCls:n,paddingXS:r,paddingXXS:i,INTERNAL_FIXED_ITEM_MARGIN:s,lineWidth:a,lineType:c,colorIcon:l,colorIconHover:d,inputPaddingHorizontalBase:u,antCls:m}=e,[f,g]=qt(m,"select");return{"&-multiple":{[f("multi-item-background")]:e.multipleItemBg,[f("multi-item-border-color")]:"transparent",[f("multi-item-border-radius")]:e.borderRadiusSM,[f("multi-item-height")]:e.multipleItemHeight,[f("multi-padding-base")]:`calc((${g("height")} - ${g("multi-item-height")}) / 2)`,[f("multi-padding-vertical")]:`calc(${g("multi-padding-base")} - ${s} - ${a})`,[f("multi-item-padding-horizontal")]:`calc(${u} - ${g("multi-padding-vertical")} - ${a} * 2)`,paddingBlock:g("multi-padding-vertical"),paddingInlineStart:`calc(${g("multi-padding-base")} - ${a})`,[`${t}-prefix`]:{marginInlineStart:g("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:g("line-height"),insetInlineStart:g("multi-item-padding-horizontal"),width:`calc(100% - ${g("multi-item-padding-horizontal")})`,top:"50%",transform:"translateY(-50%)"},[`${t}-content`]:{flexWrap:"wrap",alignItems:"center",lineHeight:1,"&-item-prefix":{height:g("font-size")},"&-item":{lineHeight:1,maxWidth:`calc(100% - ${FM}px)`},[`${t}-content-item-prefix + ${t}-content-item-suffix,
|
|
243
|
+
${t}-content-item-suffix:first-child`]:{marginInlineStart:g("multi-item-padding-horizontal")},[`${t}-selection-item`]:{lineHeight:`calc(${g("multi-item-height")} - ${a} * 2)`,border:`${a} ${c} ${g("multi-item-border-color")}`,display:"flex",marginBlock:s,marginInlineEnd:o(s).mul(2).equal(),background:g("multi-item-background"),borderRadius:g("multi-item-border-radius"),paddingInlineStart:r,paddingInlineEnd:i,transition:["height","line-height","padding"].map(p=>`${p} ${e.motionDurationSlow}`).join(","),"&-content":{...Xo,marginInlineEnd:i},"&-remove":{...ca(),display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:d}}},[`${t}-input`]:{lineHeight:o(s).mul(2).add(g("multi-item-height")).equal(),width:"calc(var(--select-input-width, 0) * 1px)",minWidth:FM,maxWidth:"100%",transition:`line-height ${e.motionDurationSlow}`}},[`&${t}-sm`]:{[f("multi-item-height")]:e.multipleItemHeightSM,[f("multi-item-border-radius")]:e.borderRadiusXS},[`&${t}-lg`]:{[f("multi-item-height")]:e.multipleItemHeightLG,[f("multi-item-border-radius")]:e.borderRadius},[`&${t}-filled`]:{[f("multi-item-border-color")]:e.colorSplit,[f("multi-item-background")]:e.colorBgContainer,[`&${t}-disabled`]:{[f("multi-item-border-color")]:"transparent"}}}}},zM=K4;var gS=(e,t)=>{let{componentCls:o,antCls:n}=e,[r]=qt(n,"select"),{border:i,borderHover:s,borderActive:a,borderOutline:c}=t,l=t.background||e.selectorBg||e.colorBgContainer;return{[r("border-color")]:i,[r("background-color")]:l,[r("affix-color")]:t.affixColor,[`&:not(${o}-disabled)`]:{"&:hover":{[r("border-color")]:s,[r("background-color")]:t.backgroundHover||l},[`&${o}-focused`]:{[r("border-color")]:a,[r("background-color")]:t.backgroundActive||l,boxShadow:`0 0 0 ${q(e.controlOutlineWidth)} ${c}`}},[`&${o}-disabled`]:{[r("border-color")]:t.borderDisabled||t.border,[r("background-color")]:t.backgroundDisabled||t.background}}},$g=(e,t,o,n,r,i)=>{let{componentCls:s}=e;return{[`&${s}-${t}`]:[gS(e,o),{[`&${s}-status-error`]:gS(e,{...o,...n}),[`&${s}-status-warning`]:gS(e,{...o,...r})},i]}},hS=(e,t)=>({outline:`${q(e.lineWidthFocus)} ${e.lineType} ${t}`,outlineOffset:q(e.calc(e.lineWidth).mul(-1).equal()),transition:["outline-offset","outline"].map(o=>`${o} 0s`).join(", ")}),G4=e=>{let{componentCls:t,fontHeight:o,controlHeight:n,fontSizeIcon:r,showArrowPaddingInlineEnd:i,iconCls:s,antCls:a,max:c,calc:l}=e,[d,u]=qt(a,"select"),m=c(l(i).sub(r).equal(),0);return{[t]:[{[d("border-radius")]:e.borderRadius,[d("border-color")]:"#000",[d("border-size")]:e.lineWidth,[d("background-color")]:e.colorBgContainer,[d("font-size")]:e.fontSize,[d("line-height")]:e.lineHeight,[d("font-height")]:o,[d("color")]:e.colorText,[d("affix-color")]:e.colorText,[d("height")]:n,[d("padding-horizontal")]:l(e.paddingSM).sub(e.lineWidth).equal(),[d("padding-vertical")]:`calc((${u("height")} - ${u("font-height")}) / 2 - ${u("border-size")})`,...Et(e),display:"inline-flex",flexWrap:"nowrap",position:"relative",transition:`all ${e.motionDurationSlow}`,alignItems:"flex-start",outline:0,cursor:"pointer",borderRadius:u("border-radius"),borderWidth:u("border-size"),borderStyle:e.lineType,borderColor:u("border-color"),background:u("background-color"),fontSize:u("font-size"),lineHeight:u("line-height"),color:u("color"),paddingInline:u("padding-horizontal"),paddingBlock:u("padding-vertical"),[`${t}-prefix`]:{color:u("affix-color"),flex:"none",lineHeight:1},[`${t}-placeholder`]:{...Xo,color:e.colorTextPlaceholder,pointerEvents:"none",zIndex:1},[`${t}-content`]:{flex:"auto",minWidth:0,position:"relative",display:"flex",marginInlineEnd:m,"&:before":{content:'"\\a0"',width:0,overflow:"hidden"},"&-value":{visibility:"inherit"},"input[readonly]":{cursor:"inherit",caretColor:"transparent"}},[`${t}-suffix`]:{flex:"none",color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,transition:["opacity","color"].map(f=>`${f} ${e.motionDurationMid} ease`).join(", "),"> :not(:last-child)":{marginInlineEnd:e.marginXS}},[`${t}-prefix, ${t}-suffix`]:{alignSelf:"center",[s]:{verticalAlign:"top"}},"&-disabled":{background:e.colorBgContainerDisabled,[d("color")]:e.colorTextDisabled,cursor:"not-allowed",input:{cursor:"not-allowed"}},"&-sm":{[d("height")]:e.controlHeightSM,[d("padding-horizontal")]:l(e.paddingXS).sub(e.lineWidth).equal(),[d("border-radius")]:e.borderRadiusSM,[`${t}-clear`]:{insetInlineEnd:u("padding-horizontal")}},"&-lg":{[d("height")]:e.controlHeightLG,[d("font-size")]:e.fontSizeLG,[d("line-height")]:e.lineHeightLG,[d("font-height")]:e.fontHeightLG,[d("border-radius")]:e.borderRadiusLG}},{[`&:not(${t}-customize)`]:{[`${t}-input`]:{outline:"none",background:"transparent",appearance:"none",border:0,margin:0,padding:0,color:u("color"),fontFamily:"inherit",fontSize:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},{[`&-single:not(${t}-customize)`]:{[`${t}-input`]:{position:"absolute",inset:0,lineHeight:"inherit"},[`${t}-content`]:{...Xo,alignSelf:"center","&-has-value":{display:"block","&:before":{display:"none"}},"&-has-search-value":{color:"transparent",[`> *:not(${t}-input)`]:{opacity:0}},"&-value":{transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,zIndex:1,opacity:1}},[`&${t}-open ${t}-content`]:{"&-has-value":{opacity:.25},"&-has-search-value":{opacity:1,transition:`opacity ${e.motionDurationMid} ${e.motionEaseInOut}`,color:"transparent",[`> *:not(${t}-input)`]:{opacity:0}}}}},{[`&-show-search:not(${t}-customize-input):not(${t}-disabled)`]:{cursor:"text"}},zM(e),$g(e,"outlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:e.activeOutlineColor,borderDisabled:e.colorBorderDisabled},{border:e.colorError,borderHover:e.colorErrorBorderHover,borderActive:e.colorError,borderOutline:e.colorErrorOutline,affixColor:e.colorErrorAffix},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning,borderOutline:e.colorWarningOutline,affixColor:e.colorWarningAffix}),$g(e,"filled",{border:"transparent",borderHover:"transparent",borderActive:e.activeBorderColor,borderOutline:"transparent",borderDisabled:e.colorBorderDisabled,background:e.colorFillTertiary,backgroundHover:e.colorFillSecondary,backgroundActive:e.colorBgContainer},{color:e.colorErrorText,background:e.colorErrorBg,backgroundHover:e.colorErrorBgHover,borderActive:e.colorError},{background:e.colorWarningBg,backgroundHover:e.colorWarningBgHover,borderActive:e.colorWarning}),$g(e,"borderless",{border:"transparent",borderHover:"transparent",borderActive:"transparent",borderOutline:"transparent",background:"transparent"},{},{},{[`&:not(${t}-disabled):has(input:focus-visible), &:not(${t}-disabled):has(textarea:focus-visible)`]:hS(e,e.activeBorderColor),[`&${t}-status-error:not(${t}-disabled):has(input:focus-visible), &${t}-status-error:not(${t}-disabled):has(textarea:focus-visible)`]:hS(e,e.colorError),[`&${t}-status-warning:not(${t}-disabled):has(input:focus-visible), &${t}-status-warning:not(${t}-disabled):has(textarea:focus-visible)`]:hS(e,e.colorWarning)}),$g(e,"underlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:"transparent"},{border:e.colorError,borderHover:e.colorErrorBorderHover,borderActive:e.colorError},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning},{borderRadius:0,borderTopColor:"transparent",borderInlineColor:"transparent"}),_M(e)]}},BM=G4;var HM=e=>{let{fontSize:t,lineHeight:o,lineWidth:n,lineWidthFocus:r,controlHeight:i,controlHeightSM:s,controlHeightLG:a,paddingXXS:c,controlPaddingHorizontal:l,zIndexPopupBase:d,colorText:u,fontWeightStrong:m,controlItemBgActive:f,controlItemBgHover:g,colorBgContainer:p,colorFillSecondary:h,colorBgContainerDisabled:y,colorTextDisabled:x,colorPrimaryHover:b,colorPrimary:S,controlOutline:v}=e,C=c*2,R=n*2,w=Math.min(i-C,i-R),I=Math.min(s-C,s-R),P=Math.min(a-C,a-R),N=Math.floor(c/2);return{lineWidthFocus:r===0?0:n,INTERNAL_FIXED_ITEM_MARGIN:N,zIndexPopup:d+50,optionSelectedColor:u,optionSelectedFontWeight:m,optionSelectedBg:f,optionActiveBg:g,optionPadding:`${(i-t*o)/2}px ${l}px`,optionFontSize:t,optionLineHeight:o,optionHeight:i,selectorBg:p,clearBg:p,singleItemHeightLG:a,multipleItemBg:h,multipleItemBorderColor:"transparent",multipleItemHeight:w,multipleItemHeightSM:I,multipleItemHeightLG:P,multipleSelectorBgDisabled:y,multipleItemColorDisabled:x,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:b,activeBorderColor:S,activeOutlineColor:v,selectAffixPadding:c}};var q4=e=>{let{antCls:t,componentCls:o,motionDurationMid:n,inputPaddingHorizontalBase:r}=e,i={[`${o}-clear`]:{opacity:1},[`${o}-suffix:not(:last-child)`]:{opacity:0,pointerEvents:"none"},[`&${o}-allow-clear:not(${o}-show-arrow):not(${o}-customize) ${o}-content`]:{marginInlineEnd:e.showArrowPaddingInlineEnd}};return{[o]:{...Et(e),[`${o}-selection-item`]:{flex:1,fontWeight:"normal",position:"relative",userSelect:"none",...Xo,[`> ${t}-typography`]:{display:"inline"}},[`${o}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${o}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),padding:0,background:"transparent",color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontFamily:"inherit",fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",appearance:"none",border:0,cursor:"pointer",opacity:0,transition:["color","opacity"].map(s=>`${s} ${n} ease`).join(", "),textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":i,"&:hover":i},[`${o}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${o}-has-feedback`]:{[`${o}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},X4=e=>{let{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},q4(e),DM(e),{[`${t}-rtl`]:{direction:"rtl"}},hs(e,{focusElCls:`${t}-focused`})]},VM=Ze("Select",(e,{rootPrefixCls:t})=>{let o=Fe(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[X4(o),BM(o)]},HM,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var Ir=M(require("react"));var Ig=M(require("react"));var Y4={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"},WM=Y4;function yS(){return yS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},yS.apply(this,arguments)}var Z4=(e,t)=>Ig.createElement(Ot,yS({},e,{ref:t,icon:WM})),Q4=Ig.forwardRef(Z4),jM=Q4;function bS({suffixIcon:e,contextSuffixIcon:t,clearIcon:o,contextClearIcon:n,menuItemSelectedIcon:r,contextMenuItemSelectedIcon:i,removeIcon:s,contextRemoveIcon:a,loading:c,loadingIcon:l,contextLoadingIcon:d,searchIcon:u,contextSearchIcon:m,multiple:f,hasFeedback:g,showSuffixIcon:p,feedbackIcon:h,showArrow:y,componentName:x}){return Ir.useMemo(()=>{let b=Qt(o,n,Ir.createElement(ls,null)),S=w=>e===null&&!g&&!y?null:Ir.createElement(Ir.Fragment,null,p!==!1&&w,g&&h),v=null;e!==void 0?v=S(e):c?v=S(Qt(l,d,Ir.createElement(wl,{spin:!0}))):v=({open:w,showSearch:I})=>S(w&&I?Qt(u,m,Ir.createElement(kf,null)):Qt(t,Ir.createElement(jM,null)));let C=Qt(r,i,f?Ir.createElement(ag,null):null),R=Qt(s,a,Ir.createElement(Yn,null));return{clearIcon:b,suffixIcon:v,itemIcon:C,removeIcon:R}},[e,t,o,n,r,i,s,a,c,l,d,u,m,f,g,p,h,y])}var xS=M(require("react"));function J4(e){return xS.default.useMemo(()=>{if(e)return(...t)=>xS.default.createElement(Vr,{space:!0},e.apply(void 0,t))},[e])}var UM=J4;function vS(e,t){return t!==void 0?t:e!==null}var KM="SECRET_COMBOBOX_MODE_DO_NOT_USE",eB=(e,t)=>{let{prefixCls:o,bordered:n,className:r,rootClassName:i,getPopupContainer:s,popupClassName:a,dropdownClassName:c,listHeight:l=256,placement:d,listItemHeight:u,size:m,disabled:f,notFoundContent:g,status:p,builtinPlacements:h,dropdownMatchSelectWidth:y,popupMatchSelectWidth:x,direction:b,style:S,allowClear:v,variant:C,popupStyle:R,dropdownStyle:w,transitionName:I,tagRender:P,maxCount:N,prefix:E,dropdownRender:O,popupRender:L,onDropdownVisibleChange:k,onOpenChange:z,styles:_,classNames:T,clearIcon:D,showSearch:F,...G}=e,{getPopupContainer:H,getPrefixCls:W,renderEmpty:X,direction:B,virtual:j,popupMatchSelectWidth:U,popupOverflow:Z}=Nr.useContext(Oe),{showSearch:Y,allowClear:K,style:V,styles:A,className:ee,classNames:Q,clearIcon:te,loadingIcon:le,menuItemSelectedIcon:re,removeIcon:ie,suffixIcon:Se}=Ye("select"),[,de]=Gt(),Ee=u??de?.controlHeight,ae=W("select",o),Ne=W(),he=b??B,{compactSize:ne,compactItemClassnames:fe}=kn(ae,he),[ce,we]=rr("select",C,n),Le=oo(ae),[Ce,pe]=VM(ae,Le),ue=Nr.useMemo(()=>{let{mode:ut}=e;if(ut!=="combobox")return ut===KM?"combobox":ut},[e.mode]),se=ue==="multiple"||ue==="tags",ve=vS(e.suffixIcon,e.showArrow),$e=x??y??U,Pe=UM(L||O),Ge=z||k,{status:qe,hasFeedback:mt,isFormItemInput:Qe,feedbackIcon:$t}=Nr.useContext(cn),wt=$s(qe,p),gt;g!==void 0?gt=g:ue==="combobox"?gt=null:gt=X?.("Select")||Nr.createElement(AM,{componentName:"Select"});let{suffixIcon:ht,itemIcon:yt,removeIcon:Rt,clearIcon:_e}=bS({...G,multiple:se,hasFeedback:mt,feedbackIcon:$t,showSuffixIcon:ve,prefixCls:ae,componentName:"Select",clearIcon:D,searchIcon:pS(F,"searchIcon"),contextClearIcon:te,contextLoadingIcon:le,contextMenuItemSelectedIcon:re,contextRemoveIcon:ie,contextSearchIcon:pS(Y,"searchIcon"),contextSuffixIcon:Se}),xt=v??K,be=xt===!0?{clearIcon:_e}:xt,oe=F??Y,me=Ke(G,["suffixIcon","itemIcon"]),J=Xt(ut=>m??ne??ut),ge=Nr.useContext(zo),ye=f??ge,ke={...e,variant:ce,status:wt,disabled:ye,size:J},Je=De(V),At=De(S),[Wt,Pt]=et([Q,T],[A,Je,_,At],{props:ke},{popup:{_default:"root"}}),to=$(Wt.popup.root,a,c,{[`${ae}-dropdown-${he}`]:he==="rtl"},i,pe,Le,Ce),ao={...Pt.popup?.root,...R??w},$n=$({[`${ae}-lg`]:J==="large",[`${ae}-sm`]:J==="small",[`${ae}-rtl`]:he==="rtl",[`${ae}-${ce}`]:we,[`${ae}-in-form-item`]:Qe},Li(ae,wt,mt),fe,ee,r,Wt.root,i,pe,Le,Ce),ze=Nr.useMemo(()=>d!==void 0?d:he==="rtl"?"bottomRight":"bottomLeft",[d,he]),[ot]=ti("SelectLike",Pt.popup.root?.zIndex??ao.zIndex);return Nr.createElement(EM,{ref:t,virtual:j,classNames:Wt,styles:Pt,showSearch:oe,...me,style:Pt.root,popupMatchSelectWidth:$e,transitionName:hr(Ne,"slide-up",I),builtinPlacements:kM(h,Z),listHeight:l,listItemHeight:Ee,mode:ue,prefixCls:ae,placement:ze,direction:he,prefix:E,suffixIcon:ht,menuItemSelectedIcon:yt,removeIcon:Rt,allowClear:be,notFoundContent:gt,className:$n,getPopupContainer:s||H,popupClassName:to,disabled:ye,popupStyle:{...Pt.popup.root,...ao,zIndex:ot},maxCount:se?N:void 0,tagRender:se?P:void 0,popupRender:Pe,onPopupVisibleChange:Ge})},nc=Nr.forwardRef(eB),tB=Gp(nc,"popupAlign");nc.SECRET_COMBOBOX_MODE_DO_NOT_USE=KM;nc.Option=Yd;nc.OptGroup=Xd;nc._InternalPanelDoNotUseOrYouWillBeFired=tB;var GM=nc;var Wi=M(require("react"));var Aa=M(require("react"));function SS(){return SS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},SS.apply(this,arguments)}var qM=Aa.forwardRef(({prefixCls:e="rc-switch",className:t,checked:o,defaultChecked:n,disabled:r,loadingIcon:i,checkedChildren:s,unCheckedChildren:a,onClick:c,onChange:l,onKeyDown:d,styles:u,classNames:m,...f},g)=>{let[p,h]=st(n??!1,o);function y(v,C){let R=p;return r||(R=v,h(R),l?.(R,C)),R}function x(v){v.which===Me.LEFT?y(!1,v):v.which===Me.RIGHT&&y(!0,v),d?.(v)}function b(v){let C=y(!p,v);c?.(C,v)}let S=$(e,t,{[`${e}-checked`]:p,[`${e}-disabled`]:r});return Aa.createElement("button",SS({},f,{type:"button",role:"switch","aria-checked":p,disabled:r,className:S,ref:g,onKeyDown:x,onClick:b}),i,Aa.createElement("span",{className:`${e}-inner`},Aa.createElement("span",{className:$(`${e}-inner-checked`,m?.content),style:u?.content},s),Aa.createElement("span",{className:$(`${e}-inner-unchecked`,m?.content),style:u?.content},a)))});qM.displayName="Switch";var XM=qM;var oB=e=>{let{componentCls:t,trackHeightSM:o,trackPadding:n,trackMinWidthSM:r,innerMinMarginSM:i,innerMaxMarginSM:s,handleSizeSM:a,calc:c}=e,l=`${t}-inner`,d=q(c(a).add(c(n).mul(2)).equal()),u=q(c(s).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:r,height:o,lineHeight:q(o),[`${t}-inner`]:{paddingInlineStart:s,paddingInlineEnd:i,[`${l}-checked, ${l}-unchecked`]:{minHeight:o},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${u})`,marginInlineEnd:`calc(100% - ${d} + ${u})`},[`${l}-unchecked`]:{marginTop:c(o).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:a,height:a},[`${t}-loading-icon`]:{top:c(c(a).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:s,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${u})`,marginInlineEnd:`calc(-100% + ${d} - ${u})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${q(c(a).add(n).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},nB=e=>{let{componentCls:t,handleSize:o,calc:n}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:n(n(o).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},rB=e=>{let{componentCls:t,trackPadding:o,handleBg:n,handleShadow:r,handleSize:i,calc:s}=e,a=`${t}-handle`;return{[t]:{[a]:{position:"absolute",top:o,insetInlineStart:o,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,...oi(),"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:n,borderRadius:s(i).div(2).equal(),boxShadow:r,transition:`all ${e.switchDuration} ease-in-out`,content:'""',...Rl()}},[`&${t}-checked ${a}`]:{insetInlineStart:`calc(100% - ${q(s(i).add(o).equal())})`},[`&:not(${t}-disabled):active`]:{[`${a}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${a}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},iB=e=>{let{componentCls:t,trackHeight:o,trackPadding:n,innerMinMargin:r,innerMaxMargin:i,handleSize:s,switchDuration:a,calc:c}=e,l=`${t}-inner`,d=q(c(s).add(c(n).mul(2)).equal()),u=q(c(i).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:r,transition:["padding-inline-start","padding-inline-end"].map(m=>`${m} ${a} ease-in-out`).join(", "),...oi(),[`${l}-checked, ${l}-unchecked`]:{display:"flex",alignItems:"center",justifyContent:"center",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,pointerEvents:"none",minHeight:o,transition:["margin-inline-start","margin-inline-end"].map(m=>`${m} ${a} ease-in-out`).join(", "),...oi()},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${u})`,marginInlineEnd:`calc(100% - ${d} + ${u})`},[`${l}-unchecked`]:{marginTop:c(o).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:r,paddingInlineEnd:i,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${u})`,marginInlineEnd:`calc(-100% + ${d} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:c(n).mul(2).equal(),marginInlineEnd:c(n).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:c(n).mul(-1).mul(2).equal(),marginInlineEnd:c(n).mul(2).equal()}}}}}},sB=e=>{let{componentCls:t,trackHeight:o,trackMinWidth:n}=e;return{[t]:{...Et(e),position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:n,height:o,lineHeight:q(o),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",...oi(),[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary},...ln(e),[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}}}},aB=e=>{let{fontSize:t,lineHeight:o,controlHeight:n,colorWhite:r}=e,i=t*o,s=n/2,a=2,c=i-a*2,l=s-a*2;return{trackHeight:i,trackHeightSM:s,trackMinWidth:c*2+a*4,trackMinWidthSM:l*2+a*2,trackPadding:a,handleBg:r,handleSize:c,handleSizeSM:l,handleShadow:`0 2px 4px 0 ${new pt("#00230b").setA(.2).toRgbString()}`,innerMinMargin:c/2,innerMaxMargin:c+a+a*2,innerMinMarginSM:l/2,innerMaxMarginSM:l+a+a*2}},YM=Ze("Switch",e=>{let t=Fe(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[sB(t),iB(t),rB(t),nB(t),oB(t)]},aB);var lB=Wi.forwardRef((e,t)=>{let{prefixCls:o,size:n,disabled:r,loading:i,className:s,rootClassName:a,style:c,checked:l,value:d,defaultChecked:u,defaultValue:m,onChange:f,styles:g,classNames:p,...h}=e,[y,x]=st(u??m??!1,l??d),{getPrefixCls:b,direction:S,className:v,style:C,classNames:R,styles:w}=Ye("switch"),I=Wi.useContext(zo),P=(r??I)||i,N=b("switch",o),[E,O]=YM(N),L=Xt(n),k={...e,size:L,disabled:P},z=De(C),_=De(c),[T,D]=et([R,p],[w,z,g,_],{props:k}),F=Wi.createElement("div",{className:$(`${N}-handle`,T.indicator),style:D.indicator},i&&Wi.createElement(wl,{className:`${N}-loading-icon`})),G=$(v,{[`${N}-small`]:L==="small",[`${N}-loading`]:i,[`${N}-rtl`]:S==="rtl"},s,a,T.root,E,O);return Wi.createElement(vl,{component:"Switch",disabled:P},Wi.createElement(XM,{...h,classNames:T,styles:D,checked:y,onChange:(...W)=>{x(W[0]),f?.(...W)},prefixCls:N,className:G,style:D.root,disabled:P,ref:t,loadingIcon:F}))}),ZM=lB;ZM.__ANT_SWITCH=!0;var QM=ZM;var wn=M(require("react"));var Ng=M(require("react"));var cB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},JM=cB;function CS(){return CS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},CS.apply(this,arguments)}var dB=(e,t)=>Ng.createElement(Ot,CS({},e,{ref:t,icon:JM})),uB=Ng.forwardRef(dB),eO=uB;var yi=M(require("react")),La=require("react");var tO=require("react"),rc=(0,tO.createContext)(null);var pO=M(require("react"));var tn=M(require("react")),go=require("react");var Ds=M(require("react")),mB=e=>{let{activeTabOffset:t,horizontal:o,rtl:n,indicator:r={}}=e,{size:i,align:s="center"}=r,[a,c]=(0,Ds.useState)(),l=(0,Ds.useRef)(void 0),d=Ds.default.useCallback(m=>typeof i=="function"?i(m):typeof i=="number"?i:m,[i]);function u(){He.cancel(l.current)}return(0,Ds.useEffect)(()=>{let m={};if(t)if(o){m.width=d(t.width);let f=n?"right":"left";s==="start"&&(m[f]=t[f]),s==="center"&&(m[f]=t[f]+t.width/2,m.transform=n?"translateX(50%)":"translateX(-50%)"),s==="end"&&(m[f]=t[f]+t.width,m.transform="translateX(-100%)")}else m.height=d(t.height),s==="start"&&(m.top=t.top),s==="center"&&(m.top=t.top+t.height/2,m.transform="translateY(-50%)"),s==="end"&&(m.top=t.top+t.height,m.transform="translateY(-100%)");return u(),l.current=He(()=>{a&&m&&Object.keys(m).every(g=>{let p=m[g],h=a[g];return typeof p=="number"&&typeof h=="number"?Math.round(p)===Math.round(h):p===h})||c(m)}),u},[JSON.stringify(t),o,n,s,d]),{style:a}},oO=mB;var rO=require("react"),nO={width:0,height:0,left:0,top:0};function wS(e,t,o){return(0,rO.useMemo)(()=>{let n=new Map,r=t.get(e[0]?.key)||nO,i=r.left+r.width;for(let s=0;s<e.length;s+=1){let{key:a}=e[s],c=t.get(a);c||(c=t.get(e[s-1]?.key)||nO);let l=n.get(a)||{...c};l.right=i-l.left-l.width,n.set(a,l)}return n},[e.map(n=>n.key).join("_"),t,o])}var Pg=M(require("react"));function Tg(e,t){let o=Pg.useRef(e),[,n]=Pg.useState({});function r(i){let s=typeof i=="function"?i(o.current):i;s!==o.current&&t(s,o.current),o.current=s,n({})}return[o.current,r]}var aO=M(require("react")),ji=require("react"),pB=.1,iO=.01,Mg=20,sO=.995**Mg;function RS(e,t){let[o,n]=(0,ji.useState)(),[r,i]=(0,ji.useState)(0),[s,a]=(0,ji.useState)(0),[c,l]=(0,ji.useState)(),d=(0,ji.useRef)(void 0);function u(y){let{screenX:x,screenY:b}=y.touches[0];n({x,y:b}),window.clearInterval(d.current)}function m(y){if(!o)return;let{screenX:x,screenY:b}=y.touches[0];n({x,y:b});let S=x-o.x,v=b-o.y;t(S,v);let C=Date.now();i(C),a(C-r),l({x:S,y:v})}function f(){if(o&&(n(null),l(null),c)){let y=c.x/s,x=c.y/s,b=Math.abs(y),S=Math.abs(x);if(Math.max(b,S)<pB)return;let v=y,C=x;d.current=window.setInterval(()=>{if(Math.abs(v)<iO&&Math.abs(C)<iO){window.clearInterval(d.current);return}v*=sO,C*=sO,t(v*Mg,C*Mg)},Mg)}}let g=(0,ji.useRef)(void 0);function p(y){let{deltaX:x,deltaY:b}=y,S,v=Math.abs(x),C=Math.abs(b);v===C?S=g.current==="x"?x:b:v>C?(S=x,g.current="x"):(S=b,g.current="y"),t(-S,-S)&&y.preventDefault()}let h=(0,ji.useRef)(null);h.current={onTouchStart:u,onTouchMove:m,onTouchEnd:f,onWheel:p},aO.useEffect(()=>{function y(v){h.current.onTouchStart(v)}function x(v){h.current.onTouchMove(v)}function b(v){h.current.onTouchEnd(v)}function S(v){h.current.onWheel(v)}return document.addEventListener("touchmove",x,{passive:!1}),document.addEventListener("touchend",b,{passive:!0}),e.current.addEventListener("touchstart",y,{passive:!0}),e.current.addEventListener("wheel",S,{passive:!1}),()=>{document.removeEventListener("touchmove",x),document.removeEventListener("touchend",b)}},[])}var _s=require("react");function Og(e){let[t,o]=(0,_s.useState)(0),n=(0,_s.useRef)(0),r=(0,_s.useRef)(void 0);return r.current=e,wu(()=>{r.current?.()},[t]),()=>{n.current===t&&(n.current+=1,o(n.current))}}function lO(e){let t=(0,_s.useRef)([]),[,o]=(0,_s.useState)({}),n=(0,_s.useRef)(typeof e=="function"?e():e),r=Og(()=>{let s=n.current;t.current.forEach(a=>{s=a(s)}),t.current=[],n.current=s,o({})});function i(s){t.current.push(s),r()}return[n.current,i]}var dO=require("react"),cO={width:0,height:0,left:0,top:0,right:0};function ES(e,t,o,n,r,i,{tabs:s,tabPosition:a,rtl:c}){let l,d,u;return["top","bottom"].includes(a)?(l="width",d=c?"right":"left",u=Math.abs(o)):(l="height",d="top",u=-o),(0,dO.useMemo)(()=>{if(!s.length)return[0,0];let m=s.length,f=m;for(let p=0;p<m;p+=1){let h=e.get(s[p].key)||cO;if(Math.floor(h[d]+h[l])>Math.floor(u+t)){f=p-1;break}}let g=0;for(let p=m-1;p>=0;p-=1)if((e.get(s[p].key)||cO)[d]<u){g=p+1;break}return g>f?[0,-1]:[g,f]},[e,t,n,r,i,u,a,s.map(m=>m.key).join("_"),c])}function $S(e){let t;return e instanceof Map?(t={},e.forEach((o,n)=>{t[n]=o})):t=e,JSON.stringify(t)}var fB="TABS_DQ";function Ag(e){return String(e).replace(/"/g,fB)}function ic(e,t,o,n){return!(!o||n||e===!1||e===void 0&&(t===!1||t===null))}var kg=M(require("react")),gB=kg.forwardRef((e,t)=>{let{prefixCls:o,editable:n,locale:r,style:i}=e;return!n||n.showAdd===!1?null:kg.createElement("button",{ref:t,type:"button",className:`${o}-nav-add`,style:i,"aria-label":r?.addAriaLabel||"Add tab",onClick:s=>{n.onEdit("add",{event:s})}},n.addIcon||"+")}),Lg=gB;var sc=M(require("react")),hB=sc.forwardRef((e,t)=>{let{position:o,prefixCls:n,extra:r}=e;if(!r)return null;let i,s={};return typeof r=="object"&&!sc.isValidElement(r)?s=r:s.right=r,o==="right"&&(i=s.right),o==="left"&&(i=s.left),i?sc.createElement("div",{className:`${n}-extra-content`,ref:t},i):null}),IS=hB;var ar=M(require("react")),ac=require("react");function NS(){return NS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},NS.apply(this,arguments)}var yB=ar.forwardRef((e,t)=>{let{prefixCls:o,id:n,tabs:r,locale:i,mobile:s,more:a={},style:c,className:l,editable:d,tabBarGutter:u,rtl:m,removeAriaLabel:f,onTabClick:g,getPopupContainer:p,popupClassName:h,popupStyle:y,classNames:x,styles:b}=e,[S,v]=(0,ac.useState)(!1),[C,R]=(0,ac.useState)(null),{icon:w="More",popupRender:I}=a,P=`${n}-more-popup`,N=`${o}-dropdown`,E=C!==null?`${P}-${C}`:null,O=i?.dropdownAriaLabel;function L(H,W){H.preventDefault(),H.stopPropagation(),d.onEdit("remove",{key:W,event:H})}let k=ar.createElement(df,{onClick:({key:H,domEvent:W})=>{g(H,W),v(!1)},prefixCls:`${N}-menu`,id:P,tabIndex:-1,role:"listbox","aria-activedescendant":E,selectedKeys:[C],"aria-label":O!==void 0?O:"expanded dropdown"},r.map(H=>{let{closable:W,disabled:X,closeIcon:B,key:j,label:U}=H,Z=ic(W,B,d,X);return ar.createElement(si,{key:j,id:`${P}-${j}`,role:"option","aria-controls":n&&`${n}-panel-${j}`,disabled:X},ar.createElement("span",null,U),Z&&ar.createElement("button",{type:"button","aria-label":f||"remove",tabIndex:0,className:$(`${N}-menu-item-remove`,x?.remove),style:b?.remove,onClick:Y=>{Y.stopPropagation(),L(Y,j)}},B||d.removeIcon||"\xD7"))})),z=I?I(k,{restTabs:r,onClose:()=>v(!1)}):k;function _(H){let W=r.filter(j=>!j.disabled),X=W.findIndex(j=>j.key===C)||0,B=W.length;for(let j=0;j<B;j+=1){X=(X+H+B)%B;let U=W[X];if(!U.disabled){R(U.key);return}}}function T(H){let{which:W}=H;if(!S){[Me.DOWN,Me.SPACE,Me.ENTER].includes(W)&&(v(!0),H.preventDefault());return}switch(W){case Me.UP:_(-1),H.preventDefault();break;case Me.DOWN:_(1),H.preventDefault();break;case Me.ESC:v(!1);break;case Me.SPACE:case Me.ENTER:C!==null&&g(C,H);break}}(0,ac.useEffect)(()=>{let H=document.getElementById(E);H?.scrollIntoView&&H.scrollIntoView(!1)},[E,C]),(0,ac.useEffect)(()=>{S||R(null)},[S]);let D={marginInlineStart:u};r.length||(D.visibility="hidden",D.order=1);let F=$(h,{[`${N}-rtl`]:m}),G=s?null:ar.createElement(jp,NS({prefixCls:N,overlay:z,visible:r.length?S:!1,onVisibleChange:v,overlayClassName:F,overlayStyle:y,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:p},a),ar.createElement("button",{type:"button",className:`${o}-nav-more`,style:D,"aria-haspopup":"listbox","aria-controls":P,id:`${n}-more`,"aria-expanded":S,onKeyDown:T},w));return ar.createElement("div",{className:$(`${o}-nav-operations`,l),style:c,ref:t},G,ar.createElement(Lg,{prefixCls:o,locale:i,editable:d}))}),uO=ar.memo(yB,(e,t)=>t.tabMoving);var lr=M(require("react"));var bB=e=>{let{prefixCls:t,id:o,active:n,focus:r,tab:{key:i,label:s,disabled:a,closeIcon:c,icon:l},closable:d,renderWrapper:u,removeAriaLabel:m,editable:f,onClick:g,onFocus:p,onBlur:h,onKeyDown:y,onMouseDown:x,onMouseUp:b,styles:S,classNames:v,tabCount:C,currentPosition:R}=e,w=`${t}-tab`,I=ic(d,c,f,a);function P(k){a||g(k)}function N(k){k.preventDefault(),k.stopPropagation(),f.onEdit("remove",{key:i,event:k})}let E=lr.useMemo(()=>l&&typeof s=="string"?lr.createElement("span",null,s):s,[s,l]),O=lr.useRef(null);lr.useEffect(()=>{r&&O.current&&O.current.focus()},[r]);let L=lr.createElement("div",{key:i,"data-node-key":Ag(i),className:$(w,v?.item,{[`${w}-with-remove`]:I,[`${w}-active`]:n,[`${w}-disabled`]:a,[`${w}-focus`]:r}),style:S?.item,onClick:P},lr.createElement("div",{ref:O,role:"tab","aria-selected":n,id:o&&`${o}-tab-${i}`,className:`${w}-btn`,"aria-controls":o&&`${o}-panel-${i}`,"aria-disabled":a,tabIndex:a?null:n?0:-1,onClick:k=>{k.stopPropagation(),P(k)},onKeyDown:y,onMouseDown:x,onMouseUp:b,onFocus:p,onBlur:h},r&&lr.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`Tab ${R} of ${C}`),l&&lr.createElement("span",{className:`${w}-icon`},l),s&&E),I&&lr.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:n?0:-1,className:$(`${w}-remove`,v?.remove),style:S?.remove,onClick:k=>{k.stopPropagation(),N(k)}},c||f.removeIcon||"\xD7"));return u?u(L):L},mO=bB;function PS(){return PS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},PS.apply(this,arguments)}var xB=(e,t)=>{let{offsetWidth:o,offsetHeight:n,offsetTop:r,offsetLeft:i}=e,{width:s,height:a,left:c,top:l}=e.getBoundingClientRect();return Math.abs(s-o)<1?[s,a,c-t.left,l-t.top]:[o,n,i,r]},lc=e=>{let{offsetWidth:t=0,offsetHeight:o=0}=e.current||{};if(e.current){let{width:n,height:r}=e.current.getBoundingClientRect();if(Math.abs(n-t)<1)return[n,r]}return[t,o]},Dg=(e,t)=>e[t?0:1],vB=tn.forwardRef((e,t)=>{let{className:o,style:n,id:r,animated:i,activeKey:s,rtl:a,extra:c,editable:l,locale:d,tabPosition:u,tabBarGutter:m,children:f,onTabClick:g,onTabScroll:p,indicator:h,classNames:y,styles:x}=e,{prefixCls:b,tabs:S}=tn.useContext(rc),v=(0,go.useRef)(null),C=(0,go.useRef)(null),R=(0,go.useRef)(null),w=(0,go.useRef)(null),I=(0,go.useRef)(null),P=(0,go.useRef)(null),N=(0,go.useRef)(null),E=u==="top"||u==="bottom",[O,L]=Tg(0,(oe,me)=>{E&&p&&p({direction:oe>me?"left":"right"})}),[k,z]=Tg(0,(oe,me)=>{!E&&p&&p({direction:oe>me?"top":"bottom"})}),[_,T]=(0,go.useState)([0,0]),[D,F]=(0,go.useState)([0,0]),[G,H]=(0,go.useState)([0,0]),[W,X]=(0,go.useState)([0,0]),[B,j]=lO(new Map),U=wS(S,B,D[0]),Z=Dg(_,E),Y=Dg(D,E),K=Dg(G,E),V=Dg(W,E),A=Math.floor(Z)<Math.floor(Y+K),ee=A?Z-V:Z-K,Q=`${b}-nav-operations-hidden`,te=0,le=0;E&&a?(te=0,le=Math.max(0,Y-ee)):(te=Math.min(0,ee-Y),le=0);function re(oe){return oe<te?te:oe>le?le:oe}let ie=(0,go.useRef)(null),[Se,de]=(0,go.useState)();function Ee(){de(Date.now())}function ae(){ie.current&&clearTimeout(ie.current)}RS(w,(oe,me)=>{function J(ge,ye){ge(ke=>re(ke+ye))}return A?(E?J(L,oe):J(z,me),ae(),Ee(),!0):!1}),(0,go.useEffect)(()=>(ae(),Se&&(ie.current=setTimeout(()=>{de(0)},100)),ae),[Se]);let[Ne,he]=ES(U,ee,E?O:k,Y,K,V,{...e,tabs:S}),ne=Ie((oe=s)=>{let me=U.get(oe)||{width:0,height:0,left:0,right:0,top:0};if(E){let J=O;a?me.right<O?J=me.right:me.right+me.width>O+ee&&(J=me.right+me.width-ee):me.left<-O?J=-me.left:me.left+me.width>-O+ee&&(J=-(me.left+me.width-ee)),z(0),L(re(J))}else{let J=k;me.top<-k?J=-me.top:me.top+me.height>-k+ee&&(J=-(me.top+me.height-ee)),L(0),z(re(J))}}),[fe,ce]=(0,go.useState)(),[we,Le]=(0,go.useState)(!1),Ce=S.filter(oe=>!oe.disabled).map(oe=>oe.key),pe=oe=>{let me=Ce.indexOf(fe||s),J=Ce.length,ge=(me+oe+J)%J,ye=Ce[ge];ce(ye)},ue=(oe,me)=>{let J=Ce.indexOf(oe),ge=S.find(ke=>ke.key===oe);ic(ge?.closable,ge?.closeIcon,l,ge?.disabled)&&(me.preventDefault(),me.stopPropagation(),l.onEdit("remove",{key:oe,event:me}),J===Ce.length-1?pe(-1):pe(1))},se=(oe,me)=>{Le(!0),me.button===1&&ue(oe,me)},ve=oe=>{let{code:me}=oe,J=a&&E,ge=Ce[0],ye=Ce[Ce.length-1];switch(me){case"ArrowLeft":{E&&pe(J?1:-1);break}case"ArrowRight":{E&&pe(J?-1:1);break}case"ArrowUp":{oe.preventDefault(),E||pe(-1);break}case"ArrowDown":{oe.preventDefault(),E||pe(1);break}case"Home":{oe.preventDefault(),ce(ge);break}case"End":{oe.preventDefault(),ce(ye);break}case"Enter":case"Space":{oe.preventDefault(),g(fe??s,oe);break}case"Backspace":case"Delete":{ue(fe,oe);break}}},$e={};E?$e.marginInlineStart=m:$e.marginTop=m;let Pe=S.map((oe,me)=>{let{key:J}=oe;return tn.createElement(mO,{id:r,prefixCls:b,key:J,tab:oe,classNames:{item:y?.item,remove:y?.remove},styles:{item:me===0?x?.item:{...$e,...x?.item},remove:x?.remove},closable:oe.closable,editable:l,active:J===s,focus:J===fe,renderWrapper:f,removeAriaLabel:d?.removeAriaLabel,tabCount:Ce.length,currentPosition:me+1,onClick:ge=>{g(J,ge)},onKeyDown:ve,onFocus:()=>{we||ce(J),ne(J),Ee(),w.current&&(a||(w.current.scrollLeft=0),w.current.scrollTop=0)},onBlur:()=>{ce(void 0)},onMouseDown:ge=>se(J,ge),onMouseUp:()=>{Le(!1)}})}),Ge=()=>j(()=>{let oe=new Map,me=I.current?.getBoundingClientRect();return S.forEach(({key:J})=>{let ge=I.current?.querySelector(`[data-node-key="${Ag(J)}"]`);if(ge){let[ye,ke,Je,At]=xB(ge,me);oe.set(J,{width:ye,height:ke,left:Je,top:At})}}),oe});(0,go.useEffect)(()=>{Ge()},[S.map(oe=>oe.key).join("_")]);let qe=Og(()=>{let oe=lc(v),me=lc(C),J=lc(R);T([oe[0]-me[0]-J[0],oe[1]-me[1]-J[1]]);let ge=lc(N);H(ge);let ye=lc(P);X(ye);let ke=lc(I);F([ke[0]-ge[0],ke[1]-ge[1]]),Ge()}),mt=S.slice(0,Ne),Qe=S.slice(he+1),$t=[...mt,...Qe],wt=U.get(s),{style:gt}=oO({activeTabOffset:wt,horizontal:E,indicator:h,rtl:a});(0,go.useEffect)(()=>{ne()},[s,te,le,$S(wt),$S(U),E]),(0,go.useEffect)(()=>{qe()},[a]);let ht=!!$t.length,yt=`${b}-nav-wrap`,Rt,_e,xt,be;return E?a?(_e=O>0,Rt=O!==le):(Rt=O<0,_e=O!==te):(xt=k<0,be=k!==te),tn.createElement(sn,{onResize:qe},tn.createElement("div",{ref:bo(t,v),role:"tablist","aria-orientation":E?"horizontal":"vertical",className:$(`${b}-nav`,o,y?.header),style:{...x?.header,...n},onKeyDown:()=>{Ee()}},tn.createElement(IS,{ref:C,position:"left",extra:c,prefixCls:b}),tn.createElement(sn,{onResize:qe},tn.createElement("div",{className:$(yt,{[`${yt}-ping-left`]:Rt,[`${yt}-ping-right`]:_e,[`${yt}-ping-top`]:xt,[`${yt}-ping-bottom`]:be}),ref:w},tn.createElement(sn,{onResize:qe},tn.createElement("div",{ref:I,className:`${b}-nav-list`,style:{transform:`translate(${O}px, ${k}px)`,transition:Se?"none":void 0}},Pe,tn.createElement(Lg,{ref:N,prefixCls:b,locale:d,editable:l,style:{...Pe.length===0?void 0:$e,visibility:ht?"hidden":null}}),tn.createElement("div",{className:$(`${b}-ink-bar`,y?.indicator,{[`${b}-ink-bar-animated`]:i.inkBar}),style:{...gt,...x?.indicator}}))))),tn.createElement(uO,PS({},e,{removeAriaLabel:d?.removeAriaLabel,ref:P,prefixCls:b,tabs:$t,className:!ht&&Q,popupStyle:x?.popup,tabMoving:!!Se})),tn.createElement(IS,{ref:R,position:"right",extra:c,prefixCls:b})))}),TS=vB;var SB=({renderTabBar:e,...t})=>e?e(t,TS):pO.createElement(TS,t),fO=SB;var ka=M(require("react"));var cc=M(require("react")),CB=cc.forwardRef((e,t)=>{let{prefixCls:o,className:n,style:r,id:i,active:s,tabKey:a,children:c}=e,l=cc.Children.count(c)>0;return cc.createElement("div",{id:i&&`${i}-panel-${a}`,role:"tabpanel",tabIndex:s&&l?0:-1,"aria-labelledby":i&&`${i}-tab-${a}`,"aria-hidden":!s,style:r,className:$(o,s&&`${o}-active`,n),ref:t},c)}),gO=CB;function _g(){return _g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},_g.apply(this,arguments)}var wB=e=>{let{id:t,activeKey:o,animated:n,tabPosition:r,destroyOnHidden:i,bodyStyle:s,bodyClassName:a,contentStyle:c,contentClassName:l}=e,{prefixCls:d,tabs:u}=ka.useContext(rc),m=n.tabPane,f=`${d}-body`,g=`${d}-content`;return ka.createElement("div",{className:$(`${f}-holder`)},ka.createElement("div",{className:$(f,`${f}-${r}`,{[`${f}-animated`]:m},a),style:s},u.map(p=>{let{key:h,forceRender:y,style:x,className:b,destroyOnHidden:S,...v}=p,C=h===o;return ka.createElement(po,_g({key:h,visible:C,forceRender:y,removeOnLeave:!!(i??S),leavedClassName:`${g}-hidden`},n.tabPaneMotion),({style:R,className:w},I)=>ka.createElement(gO,_g({},v,{prefixCls:g,id:t,tabKey:h,animated:m,active:C,style:{...c,...x,...R},className:$(l,b,w),ref:I})))})))},hO=wB;function MS(e={inkBar:!0,tabPane:!1}){let t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t={inkBar:!0,...typeof e=="object"?e:{}},t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}function eu(){return eu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},eu.apply(this,arguments)}var yO=0,RB=yi.forwardRef((e,t)=>{let{id:o,prefixCls:n="rc-tabs",className:r,items:i,direction:s,activeKey:a,defaultActiveKey:c,editable:l,animated:d,tabPosition:u="top",tabBarGutter:m,tabBarStyle:f,tabBarExtraContent:g,locale:p,more:h,destroyOnHidden:y,renderTabBar:x,onChange:b,onTabClick:S,onTabScroll:v,getPopupContainer:C,popupClassName:R,indicator:w,classNames:I,styles:P,...N}=e,E=yi.useMemo(()=>(i||[]).filter(U=>U&&typeof U=="object"&&"key"in U),[i]),O=s==="rtl",L=MS(d),[k,z]=(0,La.useState)(!1);(0,La.useEffect)(()=>{z(jh())},[]);let[_,T]=st(c??E[0]?.key,a),[D,F]=(0,La.useState)(()=>E.findIndex(U=>U.key===_));(0,La.useEffect)(()=>{let U=E.findIndex(Z=>Z.key===_);U===-1&&(U=Math.max(0,Math.min(D,E.length-1)),T(E[U]?.key)),F(U)},[E.map(U=>U.key).join("_"),_,D]);let[G,H]=st(null,o);(0,La.useEffect)(()=>{o||(H(`rc-tabs-${yO}`),yO+=1)},[]);function W(U,Z){S?.(U,Z);let Y=U!==_;T(U),Y&&b?.(U)}let X={id:G,activeKey:_,animated:L,tabPosition:u,rtl:O,mobile:k},B={...X,editable:l,locale:p,more:h,tabBarGutter:m,onTabClick:W,onTabScroll:v,extra:g,style:f,getPopupContainer:C,popupClassName:$(R,I?.popup),indicator:w,styles:P,classNames:I},j=yi.useMemo(()=>({tabs:E,prefixCls:n}),[E,n]);return yi.createElement(rc.Provider,{value:j},yi.createElement("div",eu({ref:t,id:o,className:$(n,`${n}-${u}`,{[`${n}-mobile`]:k,[`${n}-editable`]:l,[`${n}-rtl`]:O},r)},N),yi.createElement(fO,eu({},B,{renderTabBar:x})),yi.createElement(hO,eu({destroyOnHidden:y},X,{bodyStyle:P?.body,bodyClassName:I?.body,contentStyle:P?.content,contentClassName:I?.content,animated:L}))))}),bO=RB;var xO=bO;var EB={motionAppear:!1,motionEnter:!0,motionLeave:!0};function OS(e,t={inkBar:!0,tabPane:!1}){let o;return t===!1?o={inkBar:!1,tabPane:!1}:t===!0?o={inkBar:!0,tabPane:!0}:o={inkBar:!0,...at(t)?t:{}},o.tabPane&&(o.tabPaneMotion={...EB,motionName:hr(e,"switch")}),o}var vO=M(require("react"));function $B(e){return e.filter(t=>t)}function IB(e,t){if(e)return e.map(n=>({...n,destroyOnHidden:n.destroyOnHidden??n.destroyInactiveTabPane}));let o=co(t).map(n=>{if(vO.isValidElement(n)){let{key:r,props:i}=n,{tab:s,...a}=i||{};return{key:String(r),...a,label:s}}return null});return $B(o)}var SO=IB;var NB=e=>{let{componentCls:t,motionDurationSlow:o}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${o}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${o}`}}}}},[xn(e,"slide-up"),xn(e,"slide-down")]]},CO=NB;var PB=e=>{let{componentCls:t,tabsCardPadding:o,cardBg:n,cardGutter:r,colorBorderSecondary:i,itemSelectedColor:s}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:o,background:n,border:`${q(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:s,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:An(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:q(r)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${q(e.borderRadiusLG)} ${q(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${q(e.borderRadiusLG)} ${q(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:q(r)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${q(e.borderRadiusLG)} 0 0 ${q(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${q(e.borderRadiusLG)} ${q(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},TB=e=>{let{antCls:t,componentCls:o,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${o}-dropdown`]:{...Et(e),position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`&${t}-slide-down-enter${t}-slide-down-enter-active${o}-dropdown-placement-bottomLeft,
|
|
244
244
|
&${t}-slide-down-appear${t}-slide-down-appear-active${o}-dropdown-placement-bottomLeft,
|
|
245
245
|
&${t}-slide-down-enter${t}-slide-down-enter-active${o}-dropdown-placement-bottom,
|
|
246
246
|
&${t}-slide-down-appear${t}-slide-down-appear-active${o}-dropdown-placement-bottom,
|
|
@@ -254,8 +254,8 @@ ${i}
|
|
|
254
254
|
&${t}-slide-down-leave${t}-slide-down-leave-active${o}-dropdown-placement-bottom,
|
|
255
255
|
&${t}-slide-down-leave${t}-slide-down-leave-active${o}-dropdown-placement-bottomRight`]:{animationName:ps},[`&${t}-slide-up-leave${t}-slide-up-leave-active${o}-dropdown-placement-topLeft,
|
|
256
256
|
&${t}-slide-up-leave${t}-slide-up-leave-active${o}-dropdown-placement-top,
|
|
257
|
-
&${t}-slide-up-leave${t}-slide-up-leave-active${o}-dropdown-placement-topRight`]:{animationName:gs},[`${o}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${q(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":{...Xo,display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${q(e.paddingXXS)} ${q(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}}}}}},
|
|
258
|
-
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:o,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-body-holder, > div > ${t}-body-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:c(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:s},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:["height","top"].map(l=>`${l} ${a}`).join(", ")}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-body-holder, > div > ${t}-body-holder`]:{marginLeft:{_skip_check_:!0,value:q(c(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-body > ${t}-content`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-body-holder, > div > ${t}-body-holder`]:{order:0,marginRight:{_skip_check_:!0,value:c(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-body > ${t}-content`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},PB=e=>{let{componentCls:t,cardPaddingSM:o,cardPaddingLG:n,cardHeightSM:r,cardHeightLG:i,horizontalItemPaddingSM:s,horizontalItemPaddingLG:a}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o},[`${t}-nav-add`]:{minWidth:r,minHeight:r}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${q(e.borderRadius)} ${q(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${q(e.borderRadius)} ${q(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${q(e.borderRadius)} ${q(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${q(e.borderRadius)} 0 0 ${q(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:i,minHeight:i}}}}}},TB=e=>{let{componentCls:t,itemActiveColor:o,itemHoverColor:n,iconCls:r,tabsHorizontalItemMargin:i,horizontalItemPadding:s,itemSelectedColor:a,itemColor:c}=e,l=`${t}-tab`;return{[l]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:s,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:o}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${l}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM},[`${l}-icon > svg`]:{display:"inline-block",verticalAlign:"middle",marginBlockEnd:"0.2em"}},"&-remove":{flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading},...ln(e)},"&:hover":{color:n},[`&${l}-active ${l}-btn`]:{color:a},[`&${l}-focus ${l}-btn:focus-visible`]:An(e),[`&${l}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${l}-disabled ${l}-btn, &${l}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${l}-remove ${r}`]:{margin:0,verticalAlign:"middle"},[`${r}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${l} + ${l}`]:{margin:{_skip_check_:!0,value:i}}}},MB=e=>{let{componentCls:t,tabsHorizontalItemMarginRTL:o,iconCls:n,cardGutter:r,calc:i}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:o},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[n]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:e.marginSM}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:e.marginXS},marginLeft:{_skip_check_:!0,value:i(e.marginXXS).mul(-1).equal()},[n]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-body-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-body-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:r},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},OB=e=>{let{componentCls:t,tabsCardPadding:o,cardHeight:n,cardGutter:r,itemHoverColor:i,itemActiveColor:s,colorBorderSecondary:a}=e;return{[t]:{...Et(e),display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:o,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:{minWidth:n,minHeight:n,marginLeft:{_skip_check_:!0,value:r},background:"transparent",border:`${q(e.lineWidth)} ${e.lineType} ${a}`,borderRadius:`${q(e.borderRadiusLG)} ${q(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:s},...ln(e,-3)}},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"},...TB(e),[`${t}-body`]:{position:"relative",width:"100%"},[`${t}-body-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-content`]:{...ln(e),"&-hidden":{display:"none"}}},[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},AB=e=>{let{cardHeight:t,cardHeightSM:o,cardHeightLG:n,controlHeight:r,controlHeightLG:i}=e,s=t||i,a=o||r,c=n||i+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:s,cardHeightSM:a,cardHeightLG:c,cardPadding:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(a-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(c-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},CO=Ze("Tabs",e=>{let t=Fe(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${q(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${q(e.horizontalItemGutter)}`});return[PB(t),MB(t),NB(t),IB(t),$B(t),OB(t),SO(t)]},AB);var kB=()=>null,wO=kB;var LB=wn.forwardRef((e,t)=>{let{type:o,className:n,rootClassName:r,size:i,onEdit:s,hideAdd:a,centered:c,addIcon:l,removeIcon:d,moreIcon:u,more:m,popupClassName:f,children:g,items:p,animated:h,style:y,indicatorSize:x,indicator:b,classNames:S,styles:v,destroyInactiveTabPane:C,destroyOnHidden:R,tabPlacement:w,tabPosition:I,...P}=e,{prefixCls:N}=P,{getPrefixCls:E,direction:O,getPopupContainer:D,className:A,style:F,classNames:_,styles:T}=Ye("tabs"),{tabs:L}=wn.useContext(Oe),z=E("tabs",N),G=oo(z),[V,j]=CO(z,G),Y=wn.useRef(null);wn.useImperativeHandle(t,()=>({nativeElement:Y.current}));let B;o==="editable-card"&&(B={onEdit:(re,{key:ie,event:Se})=>{s?.(re==="add"?Se:ie,re)},removeIcon:d??L?.removeIcon??wn.createElement(Yn,null),addIcon:(l??L?.addIcon)||wn.createElement(JM,null),showAdd:a!==!0});let U=E(),K=Xt(i),Z=vO(p,g),X=OS(z,h),k={align:b?.align??L?.indicator?.align,size:b?.size??x??L?.indicator?.size??L?.indicatorSize},W=wn.useMemo(()=>{let re=w??I??void 0,ie=O==="rtl";switch(re){case"start":return ie?"right":"left";case"end":return ie?"left":"right";default:return re}},[w,I,O]),H={...e,size:K,tabPlacement:W,items:Z},ee=De(F),J=De(y),[te,le]=et([_,S],[T,ee,v,J],{props:H},{popup:{_default:"root"}});return wn.createElement(bO,{ref:Y,direction:O,getPopupContainer:D,...P,items:Z,className:$({[`${z}-large`]:K==="large",[`${z}-small`]:K==="small",[`${z}-card`]:["card","editable-card"].includes(o),[`${z}-editable-card`]:o==="editable-card",[`${z}-centered`]:c},A,n,r,te.root,V,j,G),classNames:{...te,popup:$(f,V,j,G,te.popup?.root)},styles:{...le,popup:le.popup?.root},style:le.root,editable:B,more:{icon:L?.more?.icon??L?.moreIcon??u??wn.createElement(Fl,null),transitionName:`${U}-slide-up`,...m},prefixCls:z,animated:X,indicator:k,destroyOnHidden:R??C,tabPosition:W})}),RO=LB;RO.TabPane=wO;var EO=RO;var Fg=M(require("react"),1);var DB={locale:"zh-cn",global:{close:"\u5173\u95ED"},Modal:{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",justOkText:"\u77E5\u9053\u4E86"}},_B={locale:"en",global:{close:"Close"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"}};function $O(e){return e==="en"?_B:DB}var tu=M(require("react"),1);function IO(){return typeof document>"u"?!1:document.documentElement.hasAttribute("data-ds-dark-theme")||document.body?.hasAttribute("data-ds-dark-theme")===!0}function NO(){let[e,t]=tu.default.useState(IO);return tu.default.useEffect(()=>{let o=()=>t(IO());o();let n=new MutationObserver(o);return n.observe(document.documentElement,{attributes:!0,attributeFilter:["data-ds-dark-theme"]}),document.body&&n.observe(document.body,{attributes:!0,attributeFilter:["data-ds-dark-theme"]}),()=>n.disconnect()},[]),e}function PO(){let e=()=>(typeof document>"u"?"":document.documentElement.lang).toLowerCase().startsWith("en")?"en":"zh",[t,o]=tu.default.useState(e);return tu.default.useEffect(()=>{let n=()=>o(e());n();let r=new MutationObserver(n);return r.observe(document.documentElement,{attributes:!0,attributeFilter:["lang"]}),()=>r.disconnect()},[]),t}function Wn(e){return e.default??e}var FB=Wn(Lf),Ui=Object.assign(Wn(gP),{TextArea:FB}),zB=Wn(nd),ho=Fg.default.forwardRef(function(t,o){return Fg.default.createElement(zB,{shape:"round",size:"middle",...t,ref:o})}),AS=Wn(fI),BB=Wn(as),dc=Wn($N),Da=Wn(oT),TO=Wn(bT),MO=Wn(RT),gn=Wn(KM),zg=Wn(ZM),OO=Wn(EO),HB=Wn(B0),VB=Wn(Ws);function Rn(e){let t=NO(),o=PO();return Fg.default.createElement(BB,{locale:e.locale??$O(o),button:{autoInsertSpace:!1},theme:{algorithm:t?HB:VB,components:{Button:{borderRadius:8}}}},e.children)}var bi=require("react");var WB=new Map([["read-only",["permission.readOnly","Read Only"]],["workspace-write",["permission.workspaceWrite","Workspace Write"]],["danger-full-access",["permission.fullAccess","Full access"]]]);function AO(e,t){let o=WB.get(e.value);return o!==void 0&&(e.name===e.value||e.name===o[1])?t(o[0]):e.name||e.value}function kO(e,t){return e!==t&&t==="danger-full-access"}var Ve=require("react/jsx-runtime"),jB=[1,2,3,4,5,6,7],UB=["once","interval","hourly","daily","weekly","monthly","custom"],KB=Array.from({length:24},(e,t)=>String(t).padStart(2,"0")),DO=Array.from({length:60},(e,t)=>String(t).padStart(2,"0"));function _O({t:e,permissionT:t,modelT:o,busy:n,workspaces:r,models:i,modelFailures:s,defaultModel:a,skills:c,permissions:l,defaultPermission:d,draft:u,editing:m,onClose:f,onSubmit:g}){let[p,h]=(0,bi.useState)(()=>({...nh(new Date,r,a,d),...u})),[y,x]=(0,bi.useState)(),[b,S]=(0,bi.useState)(),[v,C]=(0,bi.useState)(!1),R=(0,bi.useRef)(null),w=(0,bi.useRef)(0);(0,bi.useEffect)(()=>{let T=L=>{if(L.key==="Escape"&&document.querySelector(".ant-select-dropdown:not(.ant-select-dropdown-hidden), .ant-dropdown:not(.ant-dropdown-hidden)")===null){if(L.preventDefault(),L.stopPropagation(),L.stopImmediatePropagation(),b!==void 0){C(!1),S(void 0);return}f()}};return window.addEventListener("keydown",T,!0),()=>window.removeEventListener("keydown",T,!0)},[b,f]);let I=T=>{h(L=>({...L,...T})),x(void 0)},P=T=>{if(kO(p.permission,T)){C(!1),S(T);return}I({permission:T})},N=async T=>{T?.preventDefault();try{await g(p)}catch(L){if(L instanceof nn){x(e(L.key));return}x(L instanceof Error?L.message:e("error.action"))}},E=p.onceAt.slice(0,10),O=p.onceAt.slice(11,16)||"09:00",D=qB(new Date),F=i.find(T=>`${T.provider}::${T.model}`===p.modelKey)?.reasoning,_=T=>{let L=pC(p.prompt,mC(T),w.current);I({prompt:L.text}),queueMicrotask(()=>{let z=R.current?.resizableTextArea?.textArea;z!=null&&(z.focus(),z.setSelectionRange(L.caret,L.caret),w.current=L.caret)})};return(0,Ve.jsx)(Rn,{children:(0,Ve.jsxs)(Da,{open:!0,title:e(m===!0?"modal.edit":"modal.title"),onCancel:f,maskClosable:!1,keyboard:!1,width:720,destroyOnHidden:!0,footer:[(0,Ve.jsx)(ho,{disabled:n,onClick:f,children:e("form.cancel")},"cancel"),(0,Ve.jsx)(ho,{htmlType:"submit",form:"dsh-st-create-form",type:"primary",disabled:n,children:e("modal.save")},"save")],children:[(0,Ve.jsxs)("form",{id:"dsh-st-create-form",className:"dsh-st-form",onSubmit:T=>{N(T)},children:[(0,Ve.jsx)("p",{children:e("form.subtitle")}),(0,Ve.jsxs)("label",{className:"dsh-st-field",children:[e("form.name"),(0,Ve.jsx)(Ui,{value:p.name,placeholder:e("form.namePlaceholder"),onChange:T=>I({name:T.target.value})})]}),(0,Ve.jsxs)("div",{className:"dsh-st-plan-row",children:[(0,Ve.jsxs)("div",{className:"dsh-st-field",children:[e("form.planTime"),(0,Ve.jsxs)("div",{className:"dsh-st-inline",children:[(0,Ve.jsx)(gn,{value:p.scheduleKind,options:UB.map(T=>({value:T,label:e(`form.${T}`)})),onChange:T=>I({scheduleKind:T})}),p.scheduleKind==="once"&&(0,Ve.jsx)(Ui,{type:"date",min:D,value:E,onChange:T=>I({onceAt:LO(`${T.target.value}T${O}`)})}),(p.scheduleKind==="once"||p.scheduleKind==="daily"||p.scheduleKind==="weekly"||p.scheduleKind==="monthly"||p.scheduleKind==="custom")&&(0,Ve.jsx)(GB,{value:p.scheduleKind==="once"?O:p.time,onChange:T=>{p.scheduleKind==="once"?I({onceAt:LO(`${E}T${T}`)}):I({time:T})}}),p.scheduleKind==="interval"&&(0,Ve.jsx)(Ui,{type:"number",min:1,value:p.everyMinutes,addonAfter:e("form.minutesShort"),onChange:T=>I({everyMinutes:T.target.value})}),p.scheduleKind==="hourly"&&(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)(gn,{value:p.hourlyMinute,options:DO.map(T=>({value:T,label:T})),onChange:T=>I({hourlyMinute:T})}),(0,Ve.jsx)("span",{className:"dsh-st-suffix",children:e("form.minutesShort")})]}),p.scheduleKind==="monthly"&&(0,Ve.jsx)(gn,{value:p.monthDay,options:Array.from({length:31},(T,L)=>{let z=String(L+1);return{value:z,label:e("form.monthDay",{day:z})}}),onChange:T=>I({monthDay:T})}),p.scheduleKind==="custom"&&(0,Ve.jsx)(Ui,{type:"number",min:1,value:p.customDays,addonAfter:e("form.daysShort"),onChange:T=>I({customDays:T.target.value})})]})]}),(0,Ve.jsxs)("label",{className:"dsh-st-field dsh-st-concurrency",title:e("form.maxConcurrentRunsHint"),children:[e("form.maxConcurrentRuns"),(0,Ve.jsx)(Ui,{type:"number",min:1,step:1,value:p.maxConcurrentRuns,onChange:T=>I({maxConcurrentRuns:T.target.value})})]})]}),p.scheduleKind==="weekly"&&(0,Ve.jsx)(AS.Group,{options:jB.map(T=>({label:e(`day.${T}`),value:String(T)})),value:p.weekdays.map(String),onChange:T=>I({weekdays:T.map(L=>Number(L))})}),(0,Ve.jsxs)("div",{className:"dsh-st-field",children:[(0,Ve.jsx)("span",{children:e("form.prompt")}),(0,Ve.jsxs)("div",{className:"dsh-st-prompt-card",children:[(0,Ve.jsx)(Ui.TextArea,{ref:R,variant:"borderless",value:p.prompt,placeholder:e("form.promptPlaceholder"),autoSize:{minRows:4,maxRows:10},onChange:T=>{w.current=T.target.selectionStart,I({prompt:T.target.value})},onSelect:T=>{w.current=T.currentTarget.selectionStart}}),(0,Ve.jsxs)("div",{className:"dsh-st-composer",children:[(0,Ve.jsxs)("div",{className:"dsh-st-composer-left",children:[(0,Ve.jsx)(gn,{variant:"borderless",size:"small",prefix:(0,Ve.jsx)(a0,{width:14,height:14}),value:p.workspaceId,placeholder:e("form.workspace"),popupMatchSelectWidth:!1,options:r.map(T=>({value:T.id,label:T.title})),onChange:T=>I({workspaceId:T})}),(0,Ve.jsx)(dc,{menu:{items:c.length===0?[{key:"empty",label:e("form.skillsEmpty"),disabled:!0}]:c.map(T=>({key:T.id,label:T.name,onClick:()=>_(T)}))},children:(0,Ve.jsx)(ho,{type:"text",icon:(0,Ve.jsx)(l0,{width:14,height:14}),children:e("form.skills")})}),(0,Ve.jsx)(gn,{variant:"borderless",size:"small",prefix:(0,Ve.jsx)(t0,{width:14,height:14}),value:p.permission,popupMatchSelectWidth:!1,options:l.map(T=>({value:T.value,label:AO(T,e)})),onChange:T=>P(T)})]}),(0,Ve.jsxs)("div",{className:"dsh-st-composer-right",children:[(0,Ve.jsx)(gn,{variant:"borderless",size:"small",value:p.modelKey,popupMatchSelectWidth:!1,options:Array.from(i.reduce((T,L)=>{let z=T.get(L.provider)??{label:L.providerLabel,options:[]};return z.options.push({value:`${L.provider}::${L.model}`,label:L.label}),T.set(L.provider,z),T},new Map),([,T])=>T),onChange:T=>{let L=i.find(z=>`${z.provider}::${z.model}`===T);I({modelKey:T,reasoningEffort:L?.reasoning?.defaultEffort??"none"})}}),F!==void 0&&(0,Ve.jsx)(gn,{variant:"borderless",size:"small",value:p.reasoningEffort,popupMatchSelectWidth:!1,options:[...F.defaultEffort===void 0?[{value:"none",label:o("effort.providerDefault")}]:[],...F.efforts.map(T=>({value:T.id,label:T.name}))],onChange:T=>I({reasoningEffort:T})})]})]})]})]}),s.map(T=>(0,Ve.jsx)("p",{className:"dsh-st-error",children:o("warning.groupLoad",{name:T.providerLabel,message:T.message})},T.provider)),y!==void 0&&(0,Ve.jsx)("p",{className:"dsh-st-error",children:y})]}),(0,Ve.jsxs)(Da,{open:b!==void 0,title:t("confirm.title"),keyboard:!1,maskClosable:!1,okText:t("confirm.enable"),cancelText:t("confirm.cancel"),okButtonProps:{disabled:!v},onCancel:()=>{C(!1),S(void 0)},onOk:()=>{!v||b===void 0||(I({permission:b}),C(!1),S(void 0))},children:[(0,Ve.jsx)("p",{children:t("confirm.description")}),(0,Ve.jsx)(AS,{checked:v,onChange:T=>C(T.target.checked),children:t("confirm.acknowledge")})]})]})})}function GB({value:e,onChange:t}){let[o,n]=[e.slice(0,2)||"09",e.slice(3,5)||"00"];return(0,Ve.jsxs)("span",{className:"dsh-st-time",children:[(0,Ve.jsx)(gn,{value:o,options:KB.map(r=>({value:r,label:r})),onChange:r=>t(`${r}:${n}`)}),(0,Ve.jsx)("span",{className:"dsh-st-time-sep",children:":"}),(0,Ve.jsx)(gn,{value:n,options:DO.map(r=>({value:r,label:r})),onChange:r=>t(`${o}:${r}`)})]})}function qB(e){let t=e.getTimezoneOffset()*6e4;return new Date(e.getTime()-t).toISOString().slice(0,10)}function LO(e){let t=new Date(e),o=new Date;if(!Number.isFinite(t.getTime())||t.getTime()>o.getTime())return e;let n=new Date(o.getTime()+6e4);n.setSeconds(0,0);let r=n.getTimezoneOffset()*6e4;return new Date(n.getTime()-r).toISOString().slice(0,16)}var FO=require("react");var Fs=require("react/jsx-runtime");function zO({target:e,t,busy:o,onCancel:n,onConfirm:r}){return(0,FO.useEffect)(()=>{if(e===void 0)return;let i=s=>{s.key==="Escape"&&(s.preventDefault(),s.stopPropagation(),s.stopImmediatePropagation(),n())};return window.addEventListener("keydown",i,!0),()=>window.removeEventListener("keydown",i,!0)},[n,e]),(0,Fs.jsx)(Rn,{children:(0,Fs.jsxs)(Da,{open:e!==void 0,title:t("card.confirmDelete"),onCancel:n,maskClosable:!1,keyboard:!1,footer:[(0,Fs.jsx)(ho,{disabled:o,onClick:n,children:t("card.cancel")},"cancel"),(0,Fs.jsx)(ho,{danger:!0,type:"primary",disabled:o,onClick:r,children:t("card.confirm")},"delete")],children:[e!==void 0&&(0,Fs.jsx)("p",{children:e.name}),(0,Fs.jsx)("p",{children:t("card.confirmDeleteHint")})]})})}var ou=null,kS=new Set;function BO(e){ou=e;for(let t of[...kS])t(ou)}function LS(){let e=ou;return ou=null,e}function HO(){return ou}function VO(e){return kS.add(e),()=>{kS.delete(e)}}function WO(e){let t=document.querySelector("[data-composer-seat] textarea");return t instanceof HTMLTextAreaElement?(Object.getOwnPropertyDescriptor(HTMLTextAreaElement.prototype,"value")?.set?.call(t,e),t.dispatchEvent(new InputEvent("input",{bubbles:!0})),t.focus(),!0):!1}function Bg(e){if(typeof e!="object"||e===null||!("ok"in e))throw new Error("\u81EA\u52A8\u5316\u4E3B\u673A\u8FD4\u56DE\u4E86\u65E0\u6548\u54CD\u5E94\u3002");let t=e;if(t.ok===!0&&"value"in t)return t.value;if(t.ok===!1&&"error"in t){let o=t.error;throw new Error(o?.message??"\u81EA\u52A8\u5316\u8BF7\u6C42\u5931\u8D25\u3002")}throw new Error("\u81EA\u52A8\u5316\u4E3B\u673A\u8FD4\u56DE\u4E86\u65E0\u6548\u54CD\u5E94\u3002")}var Hg="/dsh-automation",UO=15e3,XB=2e3,KO=[1,2,4],jO=KO.length+1,YB=5*60*1e3,ZB=24*60*60*1e3;function QB(e){return(e??[]).some(t=>t.status==="running"||t.status==="queued")?XB:UO}function DS(e,t){return t>0?QB(e):UO}function _S(e){let t=e instanceof Error?e.message:String(e);return/failed to fetch|networkerror|load failed|network request failed/i.test(t)}function JB(e,t){let o=Date.parse(t),r=(Number.isFinite(o)?o:Date.now())-ZB;return[...new Set(e.filter(i=>{if(i.status==="queued"||i.status==="running")return!0;let s=Date.parse(i.finishedAt??i.startedAt??i.scheduledFor);return Number.isFinite(s)&&s>=r}).map(i=>i.sessionId).filter(i=>i!==void 0&&i!==""))].sort()}function GO(e,t,o={}){let n=!1,r=0,i=e.source.getSnapshot().phase==="loading",s,a,c=0,l=0,d=0,u,m,f=!1,g=x=>{a=x,c=0,l=r,d=0,u=void 0},p=x=>{let b=e.source.getSnapshot().snapshot,S=x?.list?.getSnapshot();if(b===void 0||S===void 0||x?.refresh===void 0)return;let v=new Set([...S.ids??[],...Object.keys(S.byId??{})]);return JB(b.runs,b.serverNow).filter(C=>!v.has(C)).join("\0")},h=()=>{if(n)return;let x=t();x!==s&&(s=x,g());let b=p(x);if(b===void 0)return;if(b===""){g();return}if(b!==a&&g(b),c>=jO){if((o.now??Date.now)()<d)return;g(b)}if(r<l)return;if(m!==void 0){f=!0;return}let S=c;c+=1;let v=KO[S];l=v===void 0?Number.POSITIVE_INFINITY:r+v,c>=jO&&(d=(o.now??Date.now)()+YB),m=Promise.resolve().then(async()=>{await x.refresh()}).catch(C=>{!n&&u!==b&&(u=b,console.warn("[dsh-automation] \u5237\u65B0 Host \u4F1A\u8BDD\u5217\u8868\u5931\u8D25",C))}).finally(()=>{m=void 0,!(n||!f)&&(f=!1,h())})},y=e.source.subscribe(()=>{e.source.getSnapshot().phase==="loading"?i=!0:i&&(i=!1,r+=1),h()},{background:!0});return h(),()=>{n=!0,f=!1,y()}}function qO(e){let t={phase:"idle"},o,n,r=()=>{},i=new Set,s=new Set,a=()=>{if(n!==void 0&&clearInterval(n),i.size===0){n=void 0;return}n=setInterval(()=>{u().catch(()=>{})},DS(t.snapshot?.runs,s.size))},c=()=>{if(r(),s.size===0)return;let g=()=>{u().catch(()=>{})},p=()=>{document.visibilityState==="visible"&&g()};typeof window<"u"&&window.addEventListener("focus",g),typeof document<"u"&&document.addEventListener("visibilitychange",p),r=()=>{typeof window<"u"&&window.removeEventListener("focus",g),typeof document<"u"&&document.removeEventListener("visibilitychange",p),r=()=>{}}},l=g=>{let p=DS(t.snapshot?.runs,s.size);t=g,i.size>0&&p!==DS(t.snapshot?.runs,s.size)&&a();for(let h of[...i])h()},d={getSnapshot:()=>t,subscribe:(g,p={})=>{let h=i.size>0,y=s.size>0;return i.add(g),p.background!==!0&&s.add(g),(!h||p.background!==!0&&!y)&&queueMicrotask(()=>{i.size>0&&u().catch(()=>{})}),a(),s.size>0&&!y&&c(),()=>{i.delete(g),s.delete(g),i.size===0&&n!==void 0?(clearInterval(n),n=void 0):i.size>0&&a(),s.size===0&&r()}}},u=async()=>{if(o!==void 0)return o;let g=t.snapshot;return l(g===void 0?{phase:"loading"}:{phase:"loading",snapshot:g,...t.refreshedAt===void 0?{}:{refreshedAt:t.refreshedAt}}),o=(async()=>{try{let p=await e.call(Hg,"snapshot",{sessionId:"settings"}),h=Bg(p);l({phase:"ready",snapshot:h,refreshedAt:Date.now()})}catch(p){let h=p instanceof Error?p.message:String(p);throw l(g===void 0?{phase:"error",error:h}:{phase:"error",snapshot:g,error:h,...t.refreshedAt===void 0?{}:{refreshedAt:t.refreshedAt}}),p}finally{o=void 0}})(),o},m=async(g,p)=>{try{return await e.call(Hg,g,p)}catch(h){if(!_S(h))throw h;return await e.call(Hg,g,p)}},f=async(g,p,h)=>{Bg(await m(g,p));let y=()=>{h!==void 0&&t.snapshot!==void 0&&l({phase:"ready",snapshot:h(t.snapshot),refreshedAt:Date.now()})},x=o;y(),x!==void 0&&(await x.catch(()=>{}),y());try{await u()}catch{}};return{source:d,refresh:u,async createAutomation(g){await f("create",{sessionId:"settings",input:g})},async mutateAutomation(g,p){await f("mutate",{sessionId:"settings",automationId:g,mutation:p},p==="delete"?y=>({...y,automations:y.automations.filter(x=>x.id!==g)}):y=>({...y,automations:y.automations.map(x=>x.id===g?{...x,status:p==="pause"?"paused":"active"}:x)}))},async updateAutomation(g,p){await f("update",{sessionId:"settings",automationId:g,input:p})},async runNow(g){await f("run-now",{sessionId:"settings",automationId:g})},async markRunRead(g){await f("mark-read",{sessionId:"settings",runId:g})},async adoptSession(g){Bg(await e.call(Hg,"adopt-session",{sessionId:g}))},async forgetSession(g){await f("forget-session",{sessionId:g},p=>({...p,runs:p.runs.map(h=>{if(h.sessionId!==g)return h;let{sessionId:y,...x}=h;return x})}))},async forgetAutomationSessions(g){await f("forget-automation-sessions",{automationId:g},p=>({...p,runs:p.runs.map(h=>{if(h.automationId!==g)return h;let{sessionId:y,...x}=h;return x})}))}}}var YO=require("react");var En=require("react/jsx-runtime"),XO=[["created","desc"],["created","asc"],["planned","asc"],["planned","desc"]];function Vg({t:e,storage:t,storageKey:o,sortKey:n,sortDirection:r,onSelect:i,iconOnly:s=!1,className:a}){let[c,l]=(0,YO.useState)(()=>Gi(t,o)),d=e(n==="planned"?`sort.planned.${r}`:`sort.created.${r}`),u=c?.key===n&&c.direction===r,m=()=>{t===void 0||u||(vC(t,o,n,r),l({key:n,direction:r}))},f=[...XO.map(([g,p])=>({key:`${g}-${p}`,label:e(g==="planned"?`sort.planned.${p}`:`sort.created.${p}`),onClick:()=>i(g,p)})),...t===void 0?[]:[{type:"divider"},{key:"default",label:e(u?"sort.default.saved":"sort.default.save"),disabled:u,onClick:m}]];return s?(0,En.jsx)(Rn,{children:(0,En.jsx)("span",{className:a,children:(0,En.jsx)(dc,{menu:{selectable:!0,selectedKeys:[`${n}-${r}`],items:f},children:(0,En.jsx)(ho,{type:"text",shape:"default","aria-label":d,icon:(0,En.jsx)(e3,{})})})})}):(0,En.jsx)(Rn,{children:(0,En.jsx)(gn,{className:a??"dsh-st-sort-select",value:`${n}-${r}`,popupMatchSelectWidth:!1,options:XO.map(([g,p])=>({value:`${g}-${p}`,label:e(g==="planned"?`sort.planned.${p}`:`sort.created.${p}`)})),onChange:g=>{let[p,h]=String(g).split("-");i(p,h)},...t===void 0?{}:{popupRender:g=>(0,En.jsxs)(En.Fragment,{children:[g,(0,En.jsx)("button",{type:"button",className:"dsh-st-sort-default",disabled:u,onMouseDown:p=>p.preventDefault(),onClick:m,children:e(u?"sort.default.saved":"sort.default.save")})]})}})})}function e3(){return(0,En.jsx)("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:(0,En.jsx)("path",{d:"M4.5 3v10M4.5 3 2.5 5.2M4.5 3l2 2.2M11.5 13V3M11.5 13l-2-2.2M11.5 13l2-2.2",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})}var Wg="dsh-automation:open-task-settings",FS="dsh-automation:pending-task-settings";function zS(e){if(typeof e!="object"||e===null)return;let t=e;if(!(typeof t.name!="string"||t.name.trim()===""||!Array.isArray(t.sessionIds)||t.sessionIds.some(o=>typeof o!="string"))&&!(t.automationId!==void 0&&(typeof t.automationId!="string"||t.automationId.trim()==="")))return{...typeof t.automationId=="string"?{automationId:t.automationId}:{},name:t.name,sessionIds:[...t.sessionIds]}}function t3(e,t){try{e?.setItem(FS,JSON.stringify(t))}catch{}}function BS(e){typeof window>"u"||(t3(window.sessionStorage,e),window.dispatchEvent(new CustomEvent(Wg,{detail:e})))}function ZO(e){if(e!==void 0)try{let t=e.getItem(FS);return t===null?void 0:zS(JSON.parse(t))}catch{return}}function QO(e){try{e?.removeItem(FS)}catch{}}function JO(e,t,o){if(e.automationId!==void 0){let a=t.find(c=>c.id===e.automationId);if(a!==void 0)return a}let n=new Set(e.sessionIds),r=o.find(a=>a.sessionId!==void 0&&n.has(a.sessionId))?.automationId,i=t.find(a=>a.id===r);if(i!==void 0)return i;let s=t.filter(a=>a.name===e.name);return s.length===1?s[0]:void 0}var xe=require("react/jsx-runtime");var jg=typeof window>"u"?void 0:window.localStorage,eA=typeof window>"u"?void 0:window.sessionStorage,o3=[{name:"\u6BCF\u65E5\u56DE\u5F52\u68C0\u67E5",scheduleKind:"daily",time:"09:00",weekdays:[1,2,3,4,5]},{name:"\u6BCF\u5468\u4F9D\u8D56\u5DE1\u68C0",scheduleKind:"weekly",time:"10:00",weekdays:[1]},{name:"\u5DE5\u4F5C\u65E5\u65E9\u62A5",scheduleKind:"weekly",time:"08:00",weekdays:[1,2,3,4,5]}];function tA({t:e,permissionT:t,modelT:o,runtime:n,closeSettings:r}){let i=(0,yo.useSyncExternalStore)(n.source.subscribe,n.source.getSnapshot,n.source.getSnapshot),[s,a]=(0,yo.useState)("mine"),[c,l]=(0,yo.useState)(""),[d,u]=(0,yo.useState)(!1),[m,f]=(0,yo.useState)(),[g,p]=(0,yo.useState)(),[h,y]=(0,yo.useState)(),[x,b]=(0,yo.useState)(!1),[S,v]=(0,yo.useState)(),[C,R]=(0,yo.useState)("day"),[w,I]=(0,yo.useState)("all"),[P,N]=(0,yo.useState)("all"),[E,O]=(0,yo.useState)(()=>Gi(jg,fu)?.key??"created"),[D,A]=(0,yo.useState)(()=>Gi(jg,fu)?.direction??"desc"),[F,_]=(0,yo.useState)(()=>ZO(eA)),T=(0,yo.useMemo)(()=>new Date(i.snapshot?.serverNow??Date.now()),[i.snapshot?.serverNow,i.refreshedAt]),L=i.snapshot,z=L?.workspaces??[],G=L?.models??[],V=L?.permissions??[],j=L?.defaultPermission??"",Y=pu((L?.automations??[]).filter(W=>c.trim()===""||`${W.name} ${W.prompt}`.toLowerCase().includes(c.trim().toLowerCase())),E,D),B=(L?.runs??[]).filter(W=>!(w!=="all"&&W.automationId!==w||P!=="all"&&W.status!==P)),U=SC(B,C,T,e),K=async W=>{b(!0),v(void 0);try{await W()}catch(H){v(H instanceof nn?e(H.key):_S(H)?e("error.offline"):H instanceof Error?H.message:e("error.action"))}finally{b(!1)}},Z=()=>{u(!1),y(void 0),f(void 0)},X=W=>{j===""||V.length===0||(f(void 0),y(W),u(!0))},k=W=>{f(W.id),y(CC(W,z,L?.defaultModel??null,L?.defaultPermission??W.permission)),u(!0)};return(0,yo.useEffect)(()=>{if(typeof window>"u")return;let W=H=>{let ee=zS(H.detail);ee!==void 0&&_(ee)};return window.addEventListener(Wg,W),()=>{window.removeEventListener(Wg,W)}},[]),(0,yo.useEffect)(()=>{if(F===void 0||L===void 0)return;let W=JO(F,L.automations,L.runs);if(QO(eA),_(void 0),a("mine"),l(""),W===void 0){v(e("error.taskMissing"));return}k(W)},[L,F,e]),(0,xe.jsx)(Rn,{children:(0,xe.jsxs)("div",{className:"dsh-st-shell",children:[(0,xe.jsxs)("header",{className:"dsh-st-top",children:[(0,xe.jsxs)("div",{className:"dsh-st-heading",children:[(0,xe.jsxs)("div",{className:"dsh-st-heading-row",children:[(0,xe.jsx)("h1",{children:e("tab")}),(0,xe.jsxs)("div",{className:"dsh-st-heading-links",children:[(0,xe.jsx)(ho,{size:"small",shape:"default",href:"https://github.com/MichengAI/dsh-automation",target:"_blank",rel:"noreferrer","aria-label":e("header.githubProject"),icon:(0,xe.jsx)(s0,{}),children:e("header.githubProject")}),(0,xe.jsx)(ho,{size:"small",shape:"default",href:"https://github.com/MichengAI/dsh-automation/issues",target:"_blank",rel:"noreferrer","aria-label":e("header.githubFeedback"),icon:(0,xe.jsx)(tC,{}),children:e("header.githubFeedback")})]})]}),(0,xe.jsx)("p",{children:e("header.lead")})]}),(0,xe.jsxs)("div",{className:"dsh-st-toolbar",children:[(0,xe.jsx)(Ui,{className:"dsh-st-search",allowClear:!0,value:c,placeholder:e("search.placeholder"),onChange:W=>l(W.target.value)}),(0,xe.jsx)(ho,{icon:(0,xe.jsx)(i0,{}),onClick:()=>{BO(e("chat.prompt")),r?.()},children:e("action.chatCreate")}),(0,xe.jsx)(ho,{type:"primary",icon:(0,xe.jsx)(JC,{}),disabled:j===""||V.length===0,onClick:()=>X(),children:e("action.create")}),(0,xe.jsx)(ho,{icon:(0,xe.jsx)(e0,{}),"aria-label":e("section.refresh"),onClick:()=>{n.refresh()}})]})]}),(0,xe.jsx)("div",{className:"dsh-st-banner",role:"note",children:(0,xe.jsxs)("span",{children:[(0,xe.jsx)(r0,{}),e("banner.wake")]})}),(0,xe.jsxs)("section",{className:"dsh-st-examples",children:[(0,xe.jsx)("div",{className:"dsh-st-examples-head",children:(0,xe.jsx)("h2",{children:e("examples.title")})}),(0,xe.jsx)("div",{className:"dsh-st-example-row",children:o3.map((W,H)=>(0,xe.jsxs)("button",{type:"button",className:"dsh-st-example",disabled:j===""||V.length===0,onClick:()=>X({name:e(`examples.${H+1}.title`),prompt:e(`examples.${H+1}.body`),scheduleKind:W.scheduleKind,time:W.time,weekdays:W.weekdays}),children:[(0,xe.jsx)("strong",{children:e(`examples.${H+1}.title`)}),(0,xe.jsx)("p",{children:e(`examples.${H+1}.body`)}),(0,xe.jsxs)("span",{className:"dsh-st-chip",children:[(0,xe.jsx)(yc,{}),e(`examples.${H+1}.chip`)]})]},W.name))})]}),S!==void 0&&(0,xe.jsx)("p",{className:"dsh-st-error",children:S}),(i.phase==="idle"||i.phase==="loading"&&L===void 0)&&(0,xe.jsx)("p",{className:"dsh-st-muted",children:e("loading")}),i.phase==="error"&&L===void 0&&(0,xe.jsxs)("div",{className:"dsh-st-empty",children:[(0,xe.jsx)("h3",{children:e("error.title")}),(0,xe.jsx)("p",{children:i.error}),(0,xe.jsx)(ho,{type:"primary",onClick:()=>{n.refresh()},children:e("error.retry")})]}),(0,xe.jsxs)("div",{className:"dsh-st-tabs",children:[(0,xe.jsx)(OO,{className:"dsh-st-settings-tabs",activeKey:s,onChange:W=>a(W),items:[{key:"mine",label:e("tabs.mine")},{key:"runs",label:e("tabs.runs")}],styles:{header:{margin:0,height:40},item:{height:40,padding:0,display:"flex",alignItems:"center"},body:{display:"none"},content:{display:"none"}}}),s==="mine"&&(0,xe.jsx)("div",{className:"dsh-st-sort-wrap",children:(0,xe.jsx)(Vg,{t:e,...jg===void 0?{}:{storage:jg},storageKey:fu,sortKey:E,sortDirection:D,onSelect:(W,H)=>{O(W),A(H)}})}),s==="runs"&&(0,xe.jsxs)("div",{className:"dsh-st-filters",children:[(0,xe.jsx)(gn,{className:"dsh-st-filter-range",value:C,popupMatchSelectWidth:!1,options:["day","week","month"].map(W=>({value:W,label:e(`history.range.${W}`)})),onChange:R}),(0,xe.jsx)(gn,{className:"dsh-st-filter-task",value:w,popupMatchSelectWidth:!1,options:[{value:"all",label:e("history.allTasks")},...(L?.automations??[]).map(W=>({value:W.id,label:W.name}))],onChange:I}),(0,xe.jsx)(gn,{className:"dsh-st-filter-status",value:P,popupMatchSelectWidth:!1,options:[{value:"all",label:e("history.allStatus")},...xC.map(W=>({value:W,label:e(`status.${W}`)}))],onChange:W=>N(W)})]})]}),s==="mine"&&(Y.length===0?(0,xe.jsxs)("div",{className:"dsh-st-empty",children:[(0,xe.jsx)("h3",{children:e("empty.title")}),(0,xe.jsx)("p",{children:e("empty.body")})]}):(0,xe.jsx)("div",{className:"dsh-st-grid",children:Y.map(W=>(0,xe.jsx)(n3,{item:W,t:e,now:T,busy:x,onEdit:()=>k(W),onToggle:()=>{K(()=>n.mutateAutomation(W.id,yu(W.status)))},onRun:()=>{K(()=>n.runNow(W.id))},onDelete:()=>p(W)},W.id))})),s==="runs"&&(U.length===0?(0,xe.jsx)("div",{className:"dsh-st-empty",children:e("runs.empty")}):(0,xe.jsx)("div",{className:"dsh-st-timeline",children:U.map(W=>(0,xe.jsxs)("section",{className:"dsh-st-group",children:[(0,xe.jsx)("h3",{children:W.label}),W.items.map(H=>(0,xe.jsx)(r3,{run:H,t:e},H.id))]},W.key))})),d&&(0,xe.jsx)(_O,{t:e,permissionT:t,modelT:o,busy:x,workspaces:z,models:G,modelFailures:L?.modelFailures??[],defaultModel:L?.defaultModel??null,skills:L?.skills??[],permissions:V,defaultPermission:j,editing:m!==void 0,...h===void 0?{}:{draft:h},onClose:Z,onSubmit:async W=>{let H=gC(W,z,G,new Date,{allowPastOnce:m!==void 0});await K(async()=>{m===void 0?await n.createAutomation(H):await n.updateAutomation(m,H),Z()})}},m??"create"),(0,xe.jsx)(zO,{target:g,t:e,busy:x,onCancel:()=>p(void 0),onConfirm:()=>{let W=g;W!==void 0&&K(async()=>{await n.mutateAutomation(W.id,"delete"),p(void 0)})}})]})})}function n3({item:e,t,now:o,busy:n,onEdit:r,onToggle:i,onRun:s,onDelete:a}){return(0,xe.jsxs)("article",{className:"dsh-st-card",onClick:r,children:[(0,xe.jsxs)("div",{className:"dsh-st-card-head",children:[(0,xe.jsx)("span",{onClick:c=>c.stopPropagation(),children:(0,xe.jsx)(zg,{checked:e.status==="active",disabled:n,"aria-label":e.status==="active"?t("card.pause"):t("card.resume"),onChange:()=>i()})}),(0,xe.jsx)("span",{onClick:c=>c.stopPropagation(),children:(0,xe.jsx)(dc,{menu:{items:[{key:"run",label:t("menu.run"),disabled:n,onClick:s},{key:"edit",label:t("menu.edit"),disabled:n,onClick:r},{key:"delete",label:t("menu.delete"),danger:!0,disabled:n,onClick:a}]},children:(0,xe.jsx)(ho,{type:"text","aria-label":t("card.more"),icon:(0,xe.jsx)(n0,{width:16,height:16})})})})]}),(0,xe.jsx)("h3",{children:e.name}),(0,xe.jsx)("p",{children:e.prompt}),(0,xe.jsxs)("div",{className:"dsh-st-card-foot",children:[(0,xe.jsxs)("span",{className:"dsh-st-chip",children:[(0,xe.jsx)(yc,{}),uu(e.schedule,t)]}),(0,xe.jsx)("span",{children:e.nextRunAt===void 0?t("stats.noneScheduled"):t("history.nextApprox",{when:mu(e.nextRunAt,o,t)})})]})]})}function r3({run:e,t}){let o=yC(e.startedAt,e.finishedAt);return(0,xe.jsxs)("article",{className:`dsh-st-run is-${e.status}`,children:[(0,xe.jsx)("strong",{children:e.automationName}),(0,xe.jsxs)("p",{children:[(0,xe.jsx)("span",{children:bC(e.startedAt??e.scheduledFor)}),o!==void 0&&(0,xe.jsx)("span",{children:o}),(0,xe.jsx)("span",{children:uC(e.trigger,t)})]})]})}var uc="dsh-automation",oA={tab:"Scheduled tasks","sidebar.tab":"Scheduled","sidebar.tabs":"Workspace views","sidebar.tasksTab":"Tasks","sidebar.channelsTab":"Channels","sidebar.views":"Scheduled views","sidebar.viewOverview":"Task overview","sidebar.empty":"No scheduled runs yet.","sidebar.tasksEmpty":"No web tasks yet.","sidebar.ungrouped":"Ungrouped","sidebar.section":"Scheduled","sidebar.workspaces":"Workspaces","sidebar.search":"Search","sidebar.sessions":"Sessions","sidebar.searchSessions":"Search session names","sidebar.clearSearch":"Clear search","sidebar.filter":"View options","sidebar.groupBy":"Group by","sidebar.groupWorkspace":"WorkSpace","sidebar.groupWorkspaceTree":"Workspace Tree","sidebar.groupList":"In one list","sidebar.sortBy":"Order by","sidebar.sortManual":"Manual","sidebar.sortTime":"Last updated","sidebar.filterBy":"Filter sessions","sidebar.showArchived":"Show archived","sidebar.onlyArchived":"Archived only","header.lead":"Plan automatic tasks, or trigger them by hand. Describe the recurring work in any chat to create it quickly.","header.githubProject":"GitHub","header.githubFeedback":"Issues","examples.title":"Recommended examples","examples.1.title":"Daily regression check","examples.1.body":"Create a scheduled task that runs every day and inspects new test failures.","examples.1.chip":"Every day 09:00","examples.2.title":"Weekly dependency review","examples.2.body":"Create a scheduled task that runs every Monday and reports outdated or risky dependencies.","examples.2.chip":"Monday 10:00","examples.3.title":"Weekday morning briefing","examples.3.body":"Create a scheduled task that runs on weekdays and summarizes overnight changes.","examples.3.chip":"Weekdays 08:00","chat.hint":"In any conversation, describe the recurring work and ask the Agent to call automation_create.","chat.prompt":"I want to create a scheduled task that runs every [interval] and does [the actual task]","menu.run":"Run task","menu.edit":"Edit task","menu.delete":"Delete task","session.rename":"Rename","session.fork":"Fork session","session.archive":"Archive session","session.unarchive":"Restore","session.moreActions":"More actions for {title}","session.groupActions":"Actions for {name}","session.taskSettings":"Task settings","session.archiveGroup":"Archive all conversations","session.archiveGroupConfirm":"Archive all","session.archiveGroupDescription":"Archive all {count} conversations for \u201C{name}\u201D. Choose Filter \u2192 Show archived to restore them.","session.archiveGroupPending":"Archiving conversations\u2026","session.archiveGroupFailed":"Some conversations could not be archived: {message}","session.archiveGroupClose":"Close","session.archiveGroupCancel":"Cancel","session.deleteSession":"Delete session","session.deleteSessionConfirm":"Delete session","session.deleteSessionDescription":"This permanently deletes session \u201C{name}\u201D, its child agents (including any that are still running), and all of its records (conversation, stats, cache). This cannot be undone.","session.deleteSessionPending":"Deleting session\u2026","session.deleteSessionFailed":"Could not delete the session: {message}","session.deleteSessionClose":"Close","session.deleteSessionCancel":"Cancel","session.idle":"Idle","session.runningStatus":"Running","session.completed":"Completed","session.waitingApproval":"Waiting for approval","session.planReview":"Plan to review","session.waitingAnswer":"Waiting for an answer","session.subagentsRunning":"{count} subagents running","session.archived":"Archived","session.delete":"Remove from Scheduled","session.deleteFolder":"Remove folder","session.confirmDeleteFolder":"Remove this folder from Scheduled?","session.confirmDeleteFolderHint":'This only unlists {count} session(s) in "{name}" from Scheduled. Host sessions are not deleted and they stay hidden from Tasks.',"session.confirmDeleteFolderAction":"Remove from Scheduled","history.range.day":"By day","history.range.week":"By week","history.range.month":"By month","history.allTasks":"All tasks","history.allStatus":"All statuses","history.today":"Today","history.yesterday":"Yesterday","history.date":"{date}","history.week":"Week of {date}","history.month":"{month}","history.nextApprox":"Next run in about {when}","time.withinMinute":"about {count} minutes","time.withinHour":"about {count} hours","time.withinDay":"about {count} days","search.placeholder":"Search scheduled tasks...","action.chatCreate":"Create in chat","action.create":"New scheduled task","banner.wake":"Scheduled tasks run only while this computer stays awake.","tabs.mine":"My tasks","tabs.runs":"Run history","sort.by":"Sort","sort.created.asc":"Created time ascending","sort.created.desc":"Created time descending","sort.planned.asc":"Planned time ascending","sort.planned.desc":"Planned time descending","sort.default.save":"Set as default","sort.default.saved":"Default","form.workspace":"Workspace","form.workspacePath":"Folder path","form.workspacePathPlaceholder":"D:\\work\\project","form.model":"Model","form.modelSelect":"Select model","form.effort":"Reasoning","form.effort.none":"Default","form.effort.low":"Low","form.effort.medium":"Medium","form.effort.high":"High","form.error.workspace":"Select a workspace.","modal.title":"New scheduled task","modal.edit":"Edit scheduled task","modal.save":"Save","header.eyebrow":"Unattended coding work","header.title":"Automations","header.subtitle":"Schedule standalone, auditable Agent runs for this workspace.","header.create":"New automation","header.closeCreate":"Hide form","scope.workspace":"Workspace","scope.folder":"Working directory","stats.total":"All","stats.active":"Active","stats.next":"Next run","stats.attention":"Needs attention","stats.noneScheduled":"None scheduled","stats.noAttention":"All clear","section.automations":"Workspace automations","section.automationsHint":"Each trigger starts a fresh DSH Session and keeps its own audit record.","section.runs":"Recent runs","section.runsHint":"Latest outcomes for this workspace.","section.refresh":"Refresh","empty.title":"Let recurring coding work run itself","empty.body":"Save a self-contained task, a schedule, and a permission boundary. Every run starts in a new Session.","empty.action":"Create the first automation","runs.empty":"No runs yet. Run one now, or wait for the next scheduled occurrence.","overview.empty":"No scheduled tasks yet. Create one in Settings.","form.title":"Create automation","form.subtitle":"Write a complete, standalone task. Scheduled runs do not inherit this conversation.","form.name":"Name","form.namePlaceholder":"Daily regression triage","form.prompt":"Task prompt","form.promptPlaceholder":"Inspect new test failures, locate the regression, and propose a verified minimal fix\u2026","form.schedule":"Schedule","form.planTime":"Schedule","form.hourly":"Hourly","form.monthly":"Monthly","form.custom":"Custom","form.minutesShort":"min","form.daysShort":"days","form.monthDay":"Day {day} of month","form.skills":"Skills","form.skillsEmpty":"No skills available","schedule.hourlyAt":"Every hour at :{minute}","schedule.monthlyAt":"Monthly on day {day} \xB7 {time}","schedule.customAt":"Every {count} days \xB7 {time}","form.once":"Does not repeat","form.interval":"Interval","form.daily":"Daily","form.weekly":"Weekly","form.runAt":"Run at","form.every":"Every","form.minutes":"minutes","form.time":"Time","form.days":"Weekdays","form.timeZone":"Time zone","form.maxConcurrentRuns":"Concurrency","form.maxConcurrentRunsHint":"Queued and running executions share this limit. Defaults to 1; when full, scheduled triggers are skipped and manual runs are rejected.","form.error.maxConcurrentRuns":"Enter a positive whole number for concurrent runs.","form.permission":"Permission boundary","permission.readOnly":"Read Only","permission.workspaceWrite":"Workspace Write","permission.fullAccess":"Full access","form.cancel":"Cancel","form.submit":"Create automation","form.submitting":"Creating\u2026","form.error.name":"Enter a name.","form.error.prompt":"Enter a complete, standalone task prompt.","form.error.once":"Choose a valid future date and time.","form.error.interval":"The interval must be between 1 and 43,200 minutes.","form.error.weekdays":"Select at least one weekday.","day.1":"Mon","day.2":"Tue","day.3":"Wed","day.4":"Thu","day.5":"Fri","day.6":"Sat","day.7":"Sun","status.active":"Active","status.paused":"Paused","status.queued":"Queued","status.running":"Running","status.succeeded":"Succeeded","status.failed":"Failed","status.skipped":"Skipped","status.cancelled":"Cancelled","status.interrupted":"Interrupted","card.nextRun":"Next","card.lastRun":"Last","card.never":"Not yet run","schedule.onceAt":"Once \xB7 {time}","schedule.everyMinutes":"Every {count} minutes","schedule.dailyAt":"Daily \xB7 {time}","schedule.weeklyAt":"{days} \xB7 {time}","card.pause":"Pause","card.resume":"Resume","card.runNow":"Run now","card.more":"More actions","card.delete":"Delete","card.confirmDelete":"Delete this automation?","card.confirmDeleteHint":"Run history is kept for audit.","card.confirm":"Delete","card.cancel":"Cancel","run.trigger.schedule":"Scheduled","run.trigger.manual":"Manual","run.openSession":"Session {id}","run.markRead":"Mark reviewed",loading:"Loading automations\u2026","error.title":"Automations could not be loaded","error.retry":"Try again","error.action":"The action failed. Please try again.","error.taskMissing":"This scheduled task no longer exists.","error.offline":"Could not reach the local automation service. Check that DSH is still running and try again.","time.minutes":"{count}m","time.hours":"{count}h","time.days":"{count}d","time.ago":"{text} ago","time.now":"now","session.copy":"Copy","session.copied":"Copied","session.compactApproval":"Approval","session.compactPlan":"Plan review","session.compactAnswer":"Answer","time.minuteAgo":"{count}m ago","time.hourAgo":"{count}h ago","time.dayAgo":"{count}d ago","time.inMinute":"in {count}m","time.inHour":"in {count}h","time.inDay":"in {count}d"},nA={tab:"\u5B9A\u65F6\u4EFB\u52A1","sidebar.tab":"\u5B9A\u65F6","sidebar.tabs":"\u5DE5\u4F5C\u533A\u5206\u7C7B","sidebar.tasksTab":"\u4EFB\u52A1","sidebar.channelsTab":"\u9891\u9053","sidebar.views":"\u5B9A\u65F6\u9875\u89C6\u56FE","sidebar.viewOverview":"\u4EFB\u52A1\u603B\u89C8","sidebar.empty":"\u8FD8\u6CA1\u6709\u5B9A\u65F6\u4EFB\u52A1\u6267\u884C\u8BB0\u5F55\u3002","sidebar.tasksEmpty":"\u6682\u65E0\u7F51\u9875\u4EFB\u52A1","sidebar.ungrouped":"\u672A\u5206\u7EC4","sidebar.section":"\u5B9A\u65F6\u4EFB\u52A1","sidebar.workspaces":"\u5DE5\u4F5C\u533A","sidebar.search":"\u641C\u7D22","sidebar.sessions":"\u4F1A\u8BDD","sidebar.searchSessions":"\u641C\u7D22\u4F1A\u8BDD\u540D\u79F0","sidebar.clearSearch":"\u6E05\u9664\u641C\u7D22","sidebar.filter":"\u89C6\u56FE\u9009\u9879","sidebar.groupBy":"\u5206\u7EC4\u65B9\u5F0F","sidebar.groupWorkspace":"\u6309\u5DE5\u4F5C\u533A","sidebar.groupWorkspaceTree":"\u6309\u5DE5\u4F5C\u533A\u6811","sidebar.groupList":"\u5355\u5217\u8868","sidebar.sortBy":"\u6392\u5E8F\u65B9\u5F0F","sidebar.sortManual":"\u624B\u52A8\u6392\u5E8F","sidebar.sortTime":"\u6700\u8FD1\u66F4\u65B0","sidebar.filterBy":"\u7B5B\u9009\u4F1A\u8BDD","sidebar.showArchived":"\u663E\u793A\u5DF2\u5F52\u6863","sidebar.onlyArchived":"\u4EC5\u663E\u793A\u5DF2\u5F52\u6863","header.lead":"\u6309\u8BA1\u5212\u81EA\u52A8\u6267\u884C\u4EFB\u52A1\uFF0C\u4E5F\u53EF\u968F\u65F6\u624B\u52A8\u89E6\u53D1\u3002\u5728\u4EFB\u610F\u5BF9\u8BDD\u4E2D\u63CF\u8FF0\u4F60\u60F3\u5B9A\u671F\u505A\u7684\u4E8B\uFF0C\u5373\u53EF\u5FEB\u901F\u521B\u5EFA","header.githubProject":"GitHub","header.githubFeedback":"\u95EE\u9898\u53CD\u9988","examples.title":"\u63A8\u8350\u6848\u4F8B","examples.1.title":"\u6BCF\u65E5\u56DE\u5F52\u68C0\u67E5","examples.1.body":"\u6211\u8981\u521B\u5EFA\u4E00\u4E2A\u5B9A\u65F6\u4EFB\u52A1\uFF0C\u6BCF\u3010\u5929\u3011\u6267\u884C\u3010\u68C0\u67E5\u65B0\u589E\u6D4B\u8BD5\u5931\u8D25\u5E76\u7ED9\u51FA\u6700\u5C0F\u4FEE\u590D\u3011\u3002","examples.1.chip":"\u6BCF\u5929 09:00","examples.2.title":"\u6BCF\u5468\u4F9D\u8D56\u5DE1\u68C0","examples.2.body":"\u6211\u8981\u521B\u5EFA\u4E00\u4E2A\u5B9A\u65F6\u4EFB\u52A1\uFF0C\u6BCF\u3010\u5468\u4E00\u3011\u6267\u884C\u3010\u68C0\u67E5\u8FC7\u671F\u6216\u6709\u98CE\u9669\u7684\u4F9D\u8D56\u5E76\u7ED9\u51FA\u5904\u7406\u5EFA\u8BAE\u3011\u3002","examples.2.chip":"\u6BCF\u5468\u4E00 10:00","examples.3.title":"\u5DE5\u4F5C\u65E5\u65E9\u62A5","examples.3.body":"\u6211\u8981\u521B\u5EFA\u4E00\u4E2A\u5B9A\u65F6\u4EFB\u52A1\uFF0C\u6BCF\u3010\u5DE5\u4F5C\u65E5\u3011\u6267\u884C\u3010\u6C47\u603B\u6628\u591C\u4ED3\u5E93\u53D8\u66F4\u5E76\u7ED9\u51FA\u4ECA\u65E5\u5173\u6CE8\u70B9\u3011\u3002","examples.3.chip":"\u5DE5\u4F5C\u65E5 08:00","chat.hint":"\u5728\u4EFB\u610F\u5BF9\u8BDD\u4E2D\u63CF\u8FF0\u4F60\u60F3\u5B9A\u671F\u505A\u7684\u4E8B\uFF0C\u5E76\u8BA9 Agent \u8C03\u7528 automation_create\u3002","chat.prompt":"\u6211\u8981\u521B\u5EFA\u4E00\u4E2A\u5B9A\u65F6\u4EFB\u52A1\uFF0C\u6BCF\u3010\u65F6\u95F4\u95F4\u9694\u3011\u6267\u884C\u3010\u5177\u4F53\u4EFB\u52A1\u3011","menu.run":"\u6267\u884C\u4EFB\u52A1","menu.edit":"\u7F16\u8F91\u4EFB\u52A1","menu.delete":"\u5220\u9664\u4EFB\u52A1","session.rename":"\u91CD\u547D\u540D","session.fork":"\u5206\u53C9\u4F1A\u8BDD","session.archive":"\u5F52\u6863\u4F1A\u8BDD","session.unarchive":"\u6062\u590D","session.moreActions":"\u201C{title}\u201D\u7684\u66F4\u591A\u64CD\u4F5C","session.groupActions":"\u201C{name}\u201D\u7684\u4EFB\u52A1\u64CD\u4F5C","session.taskSettings":"\u4EFB\u52A1\u8BBE\u7F6E","session.archiveGroup":"\u5F52\u6863\u6574\u7EC4\u4F1A\u8BDD","session.archiveGroupConfirm":"\u786E\u8BA4\u5F52\u6863","session.archiveGroupDescription":"\u5C06\u5F52\u6863\u201C{name}\u201D\u4E0B\u7684 {count} \u4E2A\u4F1A\u8BDD\u3002\u53EF\u5728\u7B5B\u9009\u4E2D\u9009\u62E9\u201C\u663E\u793A\u5DF2\u5F52\u6863\u201D\u540E\u6062\u590D\u3002","session.archiveGroupPending":"\u6B63\u5728\u5F52\u6863\u6574\u7EC4\u4F1A\u8BDD\u2026","session.archiveGroupFailed":"\u90E8\u5206\u4F1A\u8BDD\u5F52\u6863\u5931\u8D25\uFF1A{message}","session.archiveGroupClose":"\u5173\u95ED","session.archiveGroupCancel":"\u53D6\u6D88","session.deleteSession":"\u5220\u9664\u4F1A\u8BDD","session.deleteSessionConfirm":"\u5220\u9664\u4F1A\u8BDD","session.deleteSessionDescription":"\u5C06\u6C38\u4E45\u5220\u9664\u4F1A\u8BDD\u201C{name}\u201D\u53CA\u5176\u5B50\u4EE3\u7406\uFF08\u542B\u6B63\u5728\u8FD0\u884C\u7684\uFF09\u548C\u5168\u90E8\u8BB0\u5F55\uFF08\u5BF9\u8BDD\u5185\u5BB9\u3001\u7EDF\u8BA1\u3001\u7F13\u5B58\uFF09\uFF0C\u6B64\u64CD\u4F5C\u4E0D\u53EF\u6062\u590D\u3002","session.deleteSessionPending":"\u6B63\u5728\u5220\u9664\u4F1A\u8BDD\u2026","session.deleteSessionFailed":"\u5220\u9664\u4F1A\u8BDD\u5931\u8D25\uFF1A{message}","session.deleteSessionClose":"\u5173\u95ED","session.deleteSessionCancel":"\u53D6\u6D88","session.idle":"\u7A7A\u95F2","session.runningStatus":"\u8FDB\u884C\u4E2D","session.completed":"\u5DF2\u5B8C\u6210","session.waitingApproval":"\u7B49\u5F85\u5BA1\u6279","session.planReview":"\u8BA1\u5212\u5F85\u5BA1","session.waitingAnswer":"\u7B49\u5F85\u56DE\u7B54","session.subagentsRunning":"{count} \u4E2A\u5B50\u4EE3\u7406\u8FD0\u884C\u4E2D","session.archived":"\u5DF2\u5F52\u6863","session.delete":"\u4ECE\u5B9A\u65F6\u9875\u79FB\u9664","session.deleteFolder":"\u4ECE\u5B9A\u65F6\u9875\u79FB\u9664\u6587\u4EF6\u5939","session.confirmDeleteFolder":"\u4ECE\u5B9A\u65F6\u9875\u79FB\u9664\u8FD9\u4E2A\u6587\u4EF6\u5939\uFF1F","session.confirmDeleteFolderHint":"\u53EA\u4F1A\u628A\u300C{name}\u300D\u4E0B\u7684 {count} \u6761\u4F1A\u8BDD\u4ECE\u5B9A\u65F6\u9875\u6458\u6389\uFF0C\u4E0D\u4F1A\u5220\u9664\u5BBF\u4E3B Session\u3002\u4EFB\u52A1\u9875\u672C\u6765\u4E5F\u4E0D\u5C55\u793A\u8FD9\u4E9B\u81EA\u52A8\u5316\u4F1A\u8BDD\u3002","session.confirmDeleteFolderAction":"\u4ECE\u5B9A\u65F6\u9875\u79FB\u9664","history.range.day":"\u6309\u5929","history.range.week":"\u6309\u5468","history.range.month":"\u6309\u6708","history.allTasks":"\u5168\u90E8\u4EFB\u52A1","history.allStatus":"\u5168\u90E8\u72B6\u6001","history.today":"\u4ECA\u5929","history.yesterday":"\u6628\u5929","history.date":"{date}","history.week":"{date} \u5F53\u5468","history.month":"{month}","history.nextApprox":"\u4E0B\u6B21\u6267\u884C \u5927\u7EA6 {when}","time.withinMinute":"{count} \u5206\u949F\u5185","time.withinHour":"{count} \u5C0F\u65F6\u5185","time.withinDay":"{count} \u5929\u5185","search.placeholder":"\u641C\u7D22\u5B9A\u65F6\u4EFB\u52A1...","action.chatCreate":"\u901A\u8FC7\u5BF9\u8BDD\u521B\u5EFA","action.create":"\u65B0\u5EFA\u5B9A\u65F6\u4EFB\u52A1","banner.wake":"\u5B9A\u65F6\u4EFB\u52A1\u4EC5\u5728\u7535\u8111\u4FDD\u6301\u5524\u9192\u65F6\u8FD0\u884C","tabs.mine":"\u6211\u7684\u5B9A\u65F6\u4EFB\u52A1","tabs.runs":"\u6267\u884C\u8BB0\u5F55","sort.by":"\u6392\u5E8F","sort.created.asc":"\u6309\u521B\u5EFA\u65F6\u95F4\u5347\u5E8F","sort.created.desc":"\u6309\u521B\u5EFA\u65F6\u95F4\u5012\u5E8F","sort.planned.asc":"\u6309\u8BA1\u5212\u65F6\u95F4\u5347\u5E8F","sort.planned.desc":"\u6309\u8BA1\u5212\u65F6\u95F4\u5012\u5E8F","sort.default.save":"\u8BBE\u4E3A\u9ED8\u8BA4","sort.default.saved":"\u9ED8\u8BA4","form.workspace":"\u5DE5\u4F5C\u76EE\u5F55","form.workspacePath":"\u76EE\u5F55\u8DEF\u5F84","form.workspacePathPlaceholder":"D:\\work\\project","form.model":"\u6A21\u578B","form.modelSelect":"\u9009\u62E9\u6A21\u578B","form.effort":"\u63A8\u7406\u7B49\u7EA7","form.effort.none":"\u9ED8\u8BA4","form.effort.low":"Low","form.effort.medium":"Medium","form.effort.high":"High","form.error.workspace":"\u8BF7\u9009\u62E9\u5DE5\u4F5C\u533A\u3002","modal.title":"\u65B0\u5EFA\u5B9A\u65F6\u4EFB\u52A1","modal.edit":"\u7F16\u8F91\u5B9A\u65F6\u4EFB\u52A1","modal.save":"\u4FDD\u5B58","header.eyebrow":"\u81EA\u4E3B\u7F16\u7801\u4EFB\u52A1","header.title":"\u81EA\u52A8\u5316","header.subtitle":"\u4E3A\u5F53\u524D\u5DE5\u4F5C\u533A\u5B89\u6392\u72EC\u7ACB\u3001\u53EF\u5BA1\u8BA1\u7684 Agent \u8FD0\u884C\u3002","header.create":"\u65B0\u5EFA\u81EA\u52A8\u5316","header.closeCreate":"\u6536\u8D77\u8868\u5355","scope.workspace":"\u5DE5\u4F5C\u533A","scope.folder":"\u5DE5\u4F5C\u76EE\u5F55","stats.total":"\u5168\u90E8","stats.active":"\u5DF2\u542F\u7528","stats.next":"\u4E0B\u6B21\u8FD0\u884C","stats.attention":"\u9700\u8981\u5173\u6CE8","stats.noneScheduled":"\u6682\u65E0\u8BA1\u5212","stats.noAttention":"\u4E00\u5207\u6B63\u5E38","section.automations":"\u5DE5\u4F5C\u533A\u81EA\u52A8\u5316","section.automationsHint":"\u6BCF\u6B21\u89E6\u53D1\u90FD\u4F1A\u521B\u5EFA\u4E00\u4E2A\u5168\u65B0\u7684 DSH Session\uFF0C\u5E76\u4FDD\u7559\u72EC\u7ACB\u5BA1\u8BA1\u8BB0\u5F55\u3002","section.runs":"\u6700\u8FD1\u8FD0\u884C","section.runsHint":"\u5F53\u524D\u5DE5\u4F5C\u533A\u6700\u8FD1\u7684\u6267\u884C\u72B6\u6001\u3002","section.refresh":"\u5237\u65B0","empty.title":"\u8BA9\u91CD\u590D\u7684\u7F16\u7801\u5DE5\u4F5C\u81EA\u52A8\u8FD0\u884C","empty.body":"\u8BBE\u7F6E\u4E00\u4E2A\u76EE\u6807\u660E\u786E\u7684\u4EFB\u52A1\u3001\u8FD0\u884C\u65F6\u95F4\u548C\u6743\u9650\u8FB9\u754C\u3002\u6BCF\u6B21\u8FD0\u884C\u90FD\u4ECE\u5168\u65B0 Session \u5F00\u59CB\u3002","empty.action":"\u521B\u5EFA\u7B2C\u4E00\u4E2A\u81EA\u52A8\u5316","runs.empty":"\u8FD8\u6CA1\u6709\u8FD0\u884C\u8BB0\u5F55\u3002\u4F60\u53EF\u4EE5\u7ACB\u5373\u8FD0\u884C\u4E00\u6B21\uFF0C\u6216\u7B49\u5F85\u8BA1\u5212\u89E6\u53D1\u3002","overview.empty":"\u6682\u65E0\u5B9A\u65F6\u4EFB\u52A1\uFF0C\u53EF\u5230\u8BBE\u7F6E\u9875\u521B\u5EFA\u3002","form.title":"\u521B\u5EFA\u81EA\u52A8\u5316","form.subtitle":"\u8BF7\u5199\u5B8C\u6574\u3001\u72EC\u7ACB\u7684\u4EFB\u52A1\u8BF4\u660E\uFF1A\u5B9A\u65F6\u8FD0\u884C\u4E0D\u4F1A\u7EE7\u627F\u5F53\u524D\u5BF9\u8BDD\u3002","form.name":"\u540D\u79F0","form.namePlaceholder":"\u6BCF\u65E5\u56DE\u5F52\u6D4B\u8BD5\u5206\u8BCA","form.prompt":"\u4EFB\u52A1\u6307\u4EE4","form.promptPlaceholder":"\u68C0\u67E5\u65B0\u589E\u6D4B\u8BD5\u5931\u8D25\uFF0C\u5B9A\u4F4D\u56DE\u5F52\u539F\u56E0\uFF0C\u5E76\u7ED9\u51FA\u7ECF\u8FC7\u9A8C\u8BC1\u7684\u6700\u5C0F\u4FEE\u590D\u65B9\u6848\u2026\u2026","form.schedule":"\u8FD0\u884C\u8BA1\u5212","form.planTime":"\u8BA1\u5212\u65F6\u95F4","form.hourly":"\u6BCF\u5C0F\u65F6","form.monthly":"\u6BCF\u6708","form.custom":"\u81EA\u5B9A\u4E49","form.minutesShort":"\u5206","form.daysShort":"\u5929","form.monthDay":"\u6BCF\u6708\u7B2C {day} \u5929","form.skills":"\u6280\u80FD","form.skillsEmpty":"\u6682\u65E0\u53EF\u7528\u6280\u80FD","schedule.hourlyAt":"\u6BCF\u5C0F\u65F6 :{minute}","schedule.monthlyAt":"\u6BCF\u6708 {day} \u65E5 \xB7 {time}","schedule.customAt":"\u6BCF {count} \u5929 \xB7 {time}","form.once":"\u4E0D\u91CD\u590D","form.interval":"\u95F4\u9694","form.daily":"\u6BCF\u5929","form.weekly":"\u6BCF\u5468","form.runAt":"\u8FD0\u884C\u65F6\u95F4","form.every":"\u6BCF\u9694","form.minutes":"\u5206\u949F","form.time":"\u65F6\u95F4","form.days":"\u661F\u671F","form.timeZone":"\u65F6\u533A","form.maxConcurrentRuns":"\u5E76\u53D1\u6570\u91CF","form.maxConcurrentRunsHint":"\u540C\u4E00\u4EFB\u52A1\u7684\u6392\u961F\u53CA\u8FD0\u884C\u6B21\u6570\u5171\u7528\u6B64\u4E0A\u9650\uFF0C\u9ED8\u8BA4 1\uFF1B\u6EE1\u989D\u65F6\u8DF3\u8FC7\u5F53\u6B21\u5B9A\u65F6\u89E6\u53D1\uFF0C\u624B\u52A8\u8FD0\u884C\u5C06\u88AB\u62D2\u7EDD\u3002","form.error.maxConcurrentRuns":"\u5E76\u53D1\u6570\u91CF\u5FC5\u987B\u4E3A\u5927\u4E8E\u7B49\u4E8E 1 \u7684\u6574\u6570\u3002","form.permission":"\u6743\u9650\u8FB9\u754C","permission.readOnly":"\u53EA\u8BFB","permission.workspaceWrite":"\u5DE5\u4F5C\u533A\u5199\u5165","permission.fullAccess":"\u5B8C\u5168\u8BBF\u95EE","form.cancel":"\u53D6\u6D88","form.submit":"\u521B\u5EFA\u81EA\u52A8\u5316","form.submitting":"\u521B\u5EFA\u4E2D\u2026","form.error.name":"\u8BF7\u8F93\u5165\u540D\u79F0\u3002","form.error.prompt":"\u8BF7\u8F93\u5165\u5B8C\u6574\u3001\u72EC\u7ACB\u7684\u4EFB\u52A1\u6307\u4EE4\u3002","form.error.once":"\u8BF7\u9009\u62E9\u6709\u6548\u7684\u672A\u6765\u65E5\u671F\u548C\u65F6\u95F4\u3002","form.error.interval":"\u8FD0\u884C\u95F4\u9694\u5FC5\u987B\u5728 1 \u5230 43,200 \u5206\u949F\u4E4B\u95F4\u3002","form.error.weekdays":"\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u5929\u3002","day.1":"\u5468\u4E00","day.2":"\u5468\u4E8C","day.3":"\u5468\u4E09","day.4":"\u5468\u56DB","day.5":"\u5468\u4E94","day.6":"\u5468\u516D","day.7":"\u5468\u65E5","status.active":"\u5DF2\u542F\u7528","status.paused":"\u5DF2\u6682\u505C","status.queued":"\u6392\u961F\u4E2D","status.running":"\u8FD0\u884C\u4E2D","status.succeeded":"\u5DF2\u5B8C\u6210","status.failed":"\u5931\u8D25","status.skipped":"\u5DF2\u8DF3\u8FC7","status.cancelled":"\u5DF2\u53D6\u6D88","status.interrupted":"\u5DF2\u4E2D\u65AD","card.nextRun":"\u4E0B\u6B21","card.lastRun":"\u6700\u8FD1","card.never":"\u5C1A\u672A\u8FD0\u884C","schedule.onceAt":"\u5355\u6B21 \xB7 {time}","schedule.everyMinutes":"\u6BCF {count} \u5206\u949F","schedule.dailyAt":"\u6BCF\u5929 \xB7 {time}","schedule.weeklyAt":"{days} \xB7 {time}","card.pause":"\u6682\u505C","card.resume":"\u6062\u590D","card.runNow":"\u7ACB\u5373\u8FD0\u884C","card.more":"\u66F4\u591A\u64CD\u4F5C","card.delete":"\u5220\u9664","card.confirmDelete":"\u786E\u8BA4\u5220\u9664\u8FD9\u4E2A\u81EA\u52A8\u5316\uFF1F","card.confirmDeleteHint":"\u8FD0\u884C\u5386\u53F2\u4F1A\u4FDD\u7559\u7528\u4E8E\u5BA1\u8BA1\u3002","card.confirm":"\u786E\u8BA4\u5220\u9664","card.cancel":"\u53D6\u6D88","run.trigger.schedule":"\u5B9A\u65F6\u89E6\u53D1","run.trigger.manual":"\u624B\u52A8\u89E6\u53D1","run.openSession":"Session {id}","run.markRead":"\u6807\u8BB0\u5DF2\u5904\u7406",loading:"\u6B63\u5728\u52A0\u8F7D\u81EA\u52A8\u5316\u2026","error.title":"\u65E0\u6CD5\u52A0\u8F7D\u81EA\u52A8\u5316","error.retry":"\u91CD\u8BD5","error.action":"\u64CD\u4F5C\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\u3002","error.taskMissing":"\u8BE5\u5B9A\u65F6\u4EFB\u52A1\u5DF2\u4E0D\u5B58\u5728\u3002","error.offline":"\u65E0\u6CD5\u8FDE\u63A5\u672C\u673A\u81EA\u52A8\u5316\u670D\u52A1\uFF0C\u8BF7\u786E\u8BA4 DSH \u4ECD\u5728\u8FD0\u884C\u540E\u91CD\u8BD5\u3002","time.minutes":"{count}\u5206\u949F","time.hours":"{count}\u5C0F\u65F6","time.days":"{count}\u5929","time.ago":"{text}\u524D","time.now":"\u521A\u521A","session.copy":"\u590D\u5236","session.copied":"\u5DF2\u590D\u5236","session.compactApproval":"\u5F85\u5BA1\u6279","session.compactPlan":"\u8BA1\u5212\u5F85\u5BA1","session.compactAnswer":"\u5F85\u56DE\u7B54","time.minuteAgo":"{count} \u5206\u949F\u524D","time.hourAgo":"{count} \u5C0F\u65F6\u524D","time.dayAgo":"{count} \u5929\u524D","time.inMinute":"{count} \u5206\u949F\u540E","time.inHour":"{count} \u5C0F\u65F6\u540E","time.inDay":"{count} \u5929\u540E"};var rA="__dshNativeTabs";function iA(e){let t=new Map,o=[],n=new Set,r=[],i=()=>{r=[...t.values()].sort((a,c)=>(a.order??0)-(c.order??0))},s=()=>{for(let a of n)a()};return{version:1,officialTree:e,sessionFilters:o,getTabs(){return r},subscribe(a){return n.add(a),()=>{n.delete(a)}},insert(a){if(a.id==="")return()=>{};let c=t.get(a.id);return t.set(a.id,a),c!==a&&(i(),s()),()=>{t.get(a.id)===a&&(t.delete(a.id),i(),s())}},addSessionFilter(a){return o.push(a),s(),()=>{let c=o.indexOf(a);c>=0&&o.splice(c,1),s()}}}}function HS(e){if(e==null||typeof e!="object"&&typeof e!="function")return;let t=e[rA];if(!(t==null||typeof t!="object"))return typeof t.insert=="function"?t:void 0}function VS(e,t){try{e[rA]=t}catch{}return t}function sA(e){let t=e;return HS(e)??HS(t?.component)}function aA(e){if(e==null)return!1;let t=e;return t.__dshNativeTabHost===!0||t.__imConnectWrapped===!0?!0:HS(e)!==void 0}var i3="@michengai/dsh-archive-manager";function WS(e){return e?.querySelector(`[data-plugin="${i3}"]`)!=null}function mc(e){return typeof e=="function"?e:void 0}function Ug(e){let t=e??{},o=mc(t.renameSession),n=mc(t.archiveSession),r=mc(t.unarchiveSession),i=mc(t.deleteSession),s=mc(t.forkSession),a=mc(t.notifyArchivedNotOpenable);return{...o===void 0?{}:{renameSession:o},...n===void 0?{}:{archiveSession:n},...r===void 0?{}:{unarchiveSession:r},...i===void 0?{}:{deleteSession:i},...s===void 0?{}:{forkSession:s},...a===void 0?{}:{notifyArchivedNotOpenable:a}}}function lA(e,t){return e&&t!==void 0}function cA(e){let t=["rename","fork"];return e.archived?e.canUnarchive&&t.push("unarchive"):t.push("archive"),e.canDelete&&t.push("delete-session"),t}function dA(e,t){return t!==null&&e.includes(t)}function uA(e,t){return e&&!t}async function mA(e,t){for(let o of e)await t(o)}var ut=require("react"),RA=require("react-dom"),Wo=require("@deepseek-ai/dsh-client-ui-primitives");function pA(e,t,o){let r=e.right+8,i=e.top+t.height>o.height-8?Math.max(8,o.height-t.height-8):Math.max(8,e.top);return{position:"fixed",zIndex:4100,left:`${Math.round(r)}px`,top:`${Math.round(i)}px`}}function fA(e,t){let o=e.runningSubagentCount??0,n=o===0?void 0:{state:"ongoing",label:t("session.subagentsRunning",{count:o})},r;e.pendingKind==="approval"?r={state:"warning",label:t("session.waitingApproval"),trailing:t("session.compactApproval")}:e.pendingKind==="plan-review"?r={state:"warning",label:t("session.planReview"),trailing:t("session.compactPlan")}:e.pendingKind==="question"&&(r={state:"warning",label:t("session.waitingAnswer"),trailing:t("session.compactAnswer")});let i;r!==void 0?i=n===void 0?[r]:[r,n]:e.running?i=n===void 0?[{state:"ongoing",label:t("session.runningStatus")}]:[{state:"ongoing",label:t("session.runningStatus")},n]:n!==void 0?i=[n]:e.completed===!0?i=[{state:"done",label:t("session.completed")}]:i=[{state:"idle",label:t("session.idle")}];let s=i.filter(a=>!(e.archived&&(a.state==="done"||a.state==="idle")));return e.archived&&s.push({state:"archived",label:t("session.archived")}),s}function gA(e,t){let o=Date.parse(e||"");if(!Number.isFinite(o))return;let n=Math.floor(Math.max(0,t-o)/6e4);if(n<1)return{unit:"now",count:0};if(n<60)return{unit:"minutes",count:n};let r=Math.floor(n/60);return r<24?{unit:"hours",count:r}:{unit:"days",count:Math.floor(r/24)}}function hA(e,t){return e.unit==="now"?t("time.now"):e.unit==="minutes"?t("time.minutes",{count:e.count}):e.unit==="hours"?t("time.hours",{count:e.count}):t("time.days",{count:e.count})}function yA(e,t,o=Date.now()){let n=gA(e,o);return n===void 0?"":hA(n,t)}function bA(e,t,o=Date.now()){let n=gA(e,o);return n===void 0?"":n.unit==="now"?t("time.now"):t("time.ago",{text:hA(n,t)})}var zs=require("react");var so=require("react/jsx-runtime"),Kg=typeof window>"u"?void 0:window.localStorage;function Gg({t:e,view:t,onChange:o}){return(0,so.jsx)(Rn,{children:(0,so.jsx)(MO,{block:!0,className:"dsh-st-rail-views","aria-label":e("sidebar.views"),value:t,options:[{value:"runs",label:e("tabs.runs")},{value:"overview",label:e("sidebar.viewOverview")}],onChange:n=>o(n)})})}function qg({t:e,automations:t,serverNow:o,openTaskSettings:n,onToggleAutomation:r}){let[i,s]=(0,zs.useState)(()=>Gi(Kg,gu)?.key??"planned"),[a,c]=(0,zs.useState)(()=>Gi(Kg,gu)?.direction??"asc"),[l,d]=(0,zs.useState)(()=>new Set),u=(0,zs.useMemo)(()=>new Date(o??Date.now()),[o]),m=(0,zs.useMemo)(()=>{let p=pu(t,i,a);return TC(p)},[t,a,i]),f=(0,zs.useMemo)(()=>new Map(t.map(p=>[p.id,uu(p.schedule,e)])),[t,e]),g=(p,h)=>{r===void 0||l.has(p)||(d(y=>new Set(y).add(p)),Promise.resolve(r(p,h)).catch(y=>{console.warn("[dsh-automation] \u5207\u6362\u4EFB\u52A1\u72B6\u6001\u5931\u8D25",y)}).finally(()=>{d(y=>{let x=new Set(y);return x.delete(p),x})}))};return(0,so.jsx)(Rn,{children:(0,so.jsxs)("div",{className:"dsh-st-overview",children:[(0,so.jsxs)("div",{className:"dsh-st-overview-head",children:[(0,so.jsxs)("div",{className:"dsh-st-overview-title",children:[(0,so.jsx)("strong",{children:e("sidebar.viewOverview")}),(0,so.jsx)("span",{"aria-label":`${m.length}`,children:m.length})]}),(0,so.jsx)(Vg,{t:e,compact:!0,iconOnly:!0,className:"dsh-st-overview-sort",...Kg===void 0?{}:{storage:Kg},storageKey:gu,sortKey:i,sortDirection:a,onSelect:(p,h)=>{s(p),c(h)}})]}),m.length===0?(0,so.jsx)("div",{className:"dsh-st-rail-empty",children:e("overview.empty")}):m.map(p=>(0,so.jsx)(s3,{t:e,row:p,now:u,scheduleSummary:f.get(p.id)??"",toggleDisabled:r===void 0||l.has(p.id),onToggleAutomation:g,...n===void 0?{}:{openTaskSettings:n}},p.id))]})})}function s3({t:e,row:t,now:o,scheduleSummary:n,openTaskSettings:r,toggleDisabled:i,onToggleAutomation:s}){let a=t.status!=="active",c=t.nextRunAt===void 0?e("stats.noneScheduled"):mu(t.nextRunAt,o,e),l=t.nextRunAt===void 0?e("stats.noneScheduled"):hC(t.nextRunAt,o,e),d=`${e("stats.next")}: ${c}`,u=e(a?"card.resume":"card.pause");return(0,so.jsxs)("div",{className:`dsh-st-overview-row${a?" is-paused":""}`,children:[(0,so.jsxs)("button",{type:"button",className:"dsh-st-overview-open",disabled:r===void 0,onClick:()=>{r?.({automationId:t.id,name:t.name,sessionIds:[]})},children:[(0,so.jsxs)("span",{className:"dsh-st-overview-copy",children:[(0,so.jsx)("span",{className:"dsh-st-overview-name",children:t.name}),n!==""&&(0,so.jsxs)("span",{className:"dsh-st-overview-schedule",children:[(0,so.jsx)(o0,{width:14,height:14}),(0,so.jsx)("span",{children:n})]})]}),(0,so.jsx)("span",{className:"dsh-st-overview-next",title:d,"aria-label":d,children:(0,so.jsx)("strong",{children:l})})]}),(0,so.jsx)("span",{className:"dsh-st-overview-toggle",title:u,children:(0,so.jsx)(zg,{size:"small",checked:!a,disabled:i,"aria-label":u,onChange:()=>{s?.(t.id,yu(t.status))}})})]})}var _a=require("react"),vA=require("@deepseek-ai/dsh-client-ui-primitives");function xA(e){return e?11:14}var So=require("react/jsx-runtime");function SA({t:e,query:t,sort:o,groupMode:n,archivedFilter:r="default",onQueryChange:i,onSortChange:s,onGroupModeChange:a,onArchivedFilterChange:c}){let[l,d]=(0,_a.useState)(t.trim()!==""),[u,m]=(0,_a.useState)(!1),f=(0,_a.useRef)(null),g=xA(l);(0,_a.useEffect)(()=>{l&&f.current?.focus()},[l]);let p=()=>{m(!1),d(!0)},h=()=>{i(""),d(!1)},y=[{type:"label",id:"group-by",text:e("sidebar.groupBy")},{id:"workspace",label:e("sidebar.groupWorkspace"),icon:(0,So.jsx)(iC,{})},{id:"workspace-tree",label:e("sidebar.groupWorkspaceTree"),icon:(0,So.jsx)(sC,{})},{id:"flat",label:e("sidebar.groupList"),icon:(0,So.jsx)(aC,{})},{type:"separator",id:"order-by-separator"},{type:"label",id:"order-by",text:e("sidebar.sortBy")},{id:"updated",label:e("sidebar.sortTime"),icon:(0,So.jsx)(lC,{})},...c===void 0?[]:[{type:"separator",id:"archived-filter-separator"},{type:"label",id:"filter-by",text:e("sidebar.filterBy")},{id:"show-archived",label:e("sidebar.showArchived"),icon:(0,So.jsx)(za,{})},{id:"only-archived",label:e("sidebar.onlyArchived"),icon:(0,So.jsx)(cC,{})}]],x=[n==="list"?"flat":n,"updated",...r==="show"?["show-archived"]:[],...r==="only"?["only-archived"]:[]];return(0,So.jsxs)("div",{className:l?"dsh-st-n-toolbar is-search":"dsh-st-n-toolbar",children:[(0,So.jsx)("span",{className:"dsh-st-n-head-label",children:e(n==="list"?"sidebar.sessions":"sidebar.workspaces")}),(0,So.jsx)("div",{className:"dsh-st-n-search-slot",children:(0,So.jsxs)("div",{className:"dsh-st-n-search",onClick:p,children:[(0,So.jsx)("button",{type:"button",className:"dsh-st-n-search-btn","aria-label":e("sidebar.search"),"aria-expanded":l,onClick:p,children:(0,So.jsx)(oC,{size:g})}),(0,So.jsx)("input",{ref:f,className:"dsh-st-n-search-input",value:t,placeholder:e("sidebar.searchSessions"),"aria-label":e("sidebar.searchSessions"),tabIndex:l?0:-1,"aria-hidden":!l,onChange:b=>i(b.target.value),onKeyDown:b=>{b.key==="Escape"&&h()}}),l&&(0,So.jsx)("button",{type:"button",className:"dsh-st-n-search-clear","aria-label":e("sidebar.clearSearch"),onClick:b=>{b.stopPropagation(),h()},children:(0,So.jsx)(nC,{size:14})})]})}),(0,So.jsx)("div",{className:"dsh-st-n-head-acts",children:(0,So.jsx)(vA.Menu,{open:u,onClose:()=>{m(!1)},items:y,selectedIds:x,align:"end",dense:!0,portal:!0,onSelect:b=>{(b==="workspace"||b==="workspace-tree")&&a(b),b==="flat"&&a("list"),b==="updated"&&s("time"),b==="show-archived"&&c?.(r==="show"?"default":"show"),b==="only-archived"&&c?.(r==="only"?"default":"only"),m(!1)},anchor:(0,So.jsx)("button",{type:"button",className:u?"dsh-st-n-head-btn is-on":"dsh-st-n-head-btn","aria-label":e("sidebar.filter"),"aria-expanded":u,onClick:()=>m(b=>!b),children:(0,So.jsx)(rC,{size:16})})})})]})}var Re=require("react/jsx-runtime"),CA={},wA=[];function Xg(e){let{t,runtime:o,openSession:n,useSessions:r,useWorkspaces:i,renameSession:s,archiveSession:a,unarchiveSession:c,deleteSession:l,forkSession:d,notifyArchivedNotOpenable:u,openTaskSettings:m,renderSlot:f,useSessionStatus:g}=e,p=(0,ut.useSyncExternalStore)(o.source.subscribe,o.source.getSnapshot,o.source.getSnapshot),h=r?r(ne=>hc(ne)):null,y=r?r(ne=>ne.byId??CA):CA,x=i?i(ne=>ne.archivedSessionIds??[]):[],b=i?i(ne=>ne.items??wA):wA,S=g?g(ne=>ne):void 0,v=r?r(ne=>ne.projectionsBySession):void 0,[C,R]=(0,ut.useState)({}),[w,I]=(0,ut.useState)(),[P,N]=(0,ut.useState)(),[E,O]=(0,ut.useState)(),[D,A]=(0,ut.useState)(!1),[F,_]=(0,ut.useState)(),[T,L]=(0,ut.useState)(),[z,G]=(0,ut.useState)(!1),[V,j]=(0,ut.useState)(),[Y,B]=(0,ut.useState)(()=>typeof document<"u"&&WS(document)),[U,K]=(0,ut.useState)("default"),[Z,X]=(0,ut.useState)(""),[k,W]=(0,ut.useState)("time"),[H,ee]=(0,ut.useState)("workspace"),[J,te]=(0,ut.useState)("runs"),le=(0,ut.useRef)(null),re=(0,ut.useMemo)(()=>new Set(x),[x]),ie=(0,ut.useMemo)(()=>{let ne=p.snapshot;if(ne===void 0)return[];let fe=new Map(ne.automations.map(ce=>[ce.id,ce.timeZone]));return hu(ne.automations,ne.runs).map(ce=>({...ce,sessions:ce.sessions.filter(we=>MC(we.id,re,U)).map(we=>{let Le=ne.runs.find(Ce=>Ce.sessionId===we.id);return{...we,title:gc(Le&&(Le.startedAt||Le.scheduledFor)||"",fe.get(ce.id)),updatedAt:Le&&(Le.startedAt||Le.scheduledFor)||"",running:we.running||y[we.id]?.running===!0}})})).filter(ce=>ce.sessions.length>0)},[re,U,y,p.snapshot]);(0,ut.useEffect)(()=>{if(!bu(h,p.snapshot?.runs)){le.current=null;return}le.current!==h&&(le.current=h,o.refresh().catch(()=>{}))},[o,h,p.snapshot?.runs]);let Se=(0,ut.useMemo)(()=>{let ne=H==="workspace-tree"?YC(ie.flatMap(fe=>fe.sessions.map(ce=>({...ce,automationId:fe.id}))),b,t("sidebar.ungrouped")):ie;return ZC(ne.map(fe=>({...fe,name:fe.name})),Z,k,H)},[H,ie,Z,k,t,b]);(0,ut.useEffect)(()=>{if(typeof document>"u"||typeof MutationObserver>"u")return;let ne=()=>{B(WS(document))};ne();let fe=new MutationObserver(ne);return fe.observe(document.documentElement,{childList:!0,subtree:!0}),()=>{fe.disconnect()}},[]);let de=Y&&a!==void 0,Ee=lA(Y,l),ae=c!==void 0,Ne=()=>{if(E===void 0||a===void 0||D)return;let ne=E;A(!0),_(void 0),mA(ne.sessionIds,a).then(()=>{O(void 0)}).catch(fe=>{_(fe instanceof Error?fe.message:t("error.action"))}).finally(()=>{A(!1)})},he=()=>{if(T===void 0||l===void 0||z)return;let ne=T;G(!0),j(void 0),Promise.resolve(l(ne.id)).then(()=>{L(void 0)}).catch(fe=>{j(fe instanceof Error?fe.message:t("error.action"))}).finally(()=>{G(!1)})};return(0,Re.jsxs)("div",{className:"dsh-st-n",children:[(0,Re.jsx)(Gg,{t,view:J,onChange:te}),J==="overview"?p.snapshot===void 0?(0,Re.jsx)("div",{className:"dsh-st-n-empty",children:p.phase==="loading"?t("loading"):t("overview.empty")}):(0,Re.jsx)(qg,{t,automations:p.snapshot.automations,onToggleAutomation:(ne,fe)=>o.mutateAutomation(ne,fe),...m===void 0?{}:{openTaskSettings:m},...p.snapshot.serverNow===void 0?{}:{serverNow:p.snapshot.serverNow}}):(0,Re.jsxs)(Re.Fragment,{children:[(0,Re.jsx)(SA,{t,query:Z,sort:k,groupMode:H,archivedFilter:U,onQueryChange:X,onSortChange:W,onGroupModeChange:ee,onArchivedFilterChange:K}),(0,Re.jsx)("div",{className:"dsh-st-n-list-area",children:(0,Re.jsxs)("div",{className:"dsh-st-n-tree",role:"tree",children:[p.phase==="loading"&&Se.length===0&&(0,Re.jsx)("div",{className:"dsh-st-n-empty",children:t("loading")}),Se.length===0&&p.phase!=="loading"&&(0,Re.jsx)("div",{className:"dsh-st-n-empty",children:t("sidebar.empty")}),Se.map(ne=>{let fe=C[ne.id]!==!0,ce=dA(ne.sessions.map(se=>se.id),h),we="depth"in ne?ne.depth:0,Le=[...new Set(ne.sessions.flatMap(se=>"automationId"in se&&typeof se.automationId=="string"?[se.automationId]:[]))],Ce=H==="workspace-tree"&&Le.length===1?p.snapshot?.automations.find(se=>se.id===Le[0]):void 0,pe=H==="workspace-tree"?Ce?.id:ne.id,ue=H==="workspace-tree"?Ce?.name:ne.name;return(0,Re.jsxs)("div",{className:"dsh-st-n-group",style:we>0?{paddingLeft:we*16}:void 0,children:[H!=="list"&&(0,Re.jsx)(a3,{t,id:ne.id,name:ne.name,sessionIds:ne.sessions.map(se=>se.id),expanded:fe,hasCurrentSession:ce,menuOpen:P===ne.id,canArchiveGroup:de,showTaskSettings:pe!==void 0,onToggle:()=>R(se=>({...se,[ne.id]:fe})),onMenuChange:se=>{I(void 0),N(se?ne.id:void 0)},onTaskSettings:()=>{pe!==void 0&&m?.({automationId:pe,name:ue??ne.name,sessionIds:ne.sessions.map(se=>se.id)})},onArchiveGroup:()=>{_(void 0),O({id:ne.id,name:ne.name,sessionIds:ne.sessions.map(se=>se.id)})}}),(H==="list"||fe)&&ne.sessions.map(se=>(0,Re.jsx)(l3,{t,flat:H==="list",id:se.id,title:se.title,hoverTitle:String(y[se.id]?.displayTitle??y[se.id]?.title??ne.name),updatedAt:se.updatedAt,running:se.running,archived:re.has(se.id),selected:h===se.id,menuOpen:w===se.id,canDelete:Ee,canUnarchive:ae,hoverStatuses:fA({running:se.running||S?.get(se.id)?.running===!0,archived:re.has(se.id),completed:S?.get(se.id)?.completionUnread===!0,...S?.get(se.id)?.pendingInteraction?.kind===void 0?{}:{pendingKind:S.get(se.id)?.pendingInteraction?.kind??""},runningSubagentCount:(v?.[se.id]?.values?.subagentCatalog??[]).filter(ve=>ve.id!==void 0&&S?.get(ve.id)?.running===!0).length},t),...f===void 0?{}:{renderSlot:f},onMenuChange:ve=>{N(void 0),I(ve?se.id:void 0)},onOpen:()=>{if(I(void 0),re.has(se.id)){u?.();return}n?.(se.id)},onDeleteSession:()=>{j(void 0),L({id:se.id,title:String(y[se.id]?.displayTitle??y[se.id]?.title??se.title)})},...s===void 0?{}:{renameSession:s},...a===void 0?{}:{archiveSession:a},...c===void 0?{}:{unarchiveSession:c},...d===void 0?{}:{forkSession:d}},se.id))]},ne.id===""?"ungrouped":ne.id)})]})})]}),(0,Re.jsxs)(Wo.Modal,{open:E!==void 0,onClose:()=>{D||(O(void 0),_(void 0))},closeLabel:t("session.archiveGroupClose"),title:t("session.archiveGroup"),footer:(0,Re.jsxs)("div",{className:"dsh-st-n-dialog-actions",children:[(0,Re.jsx)(Wo.Button,{variant:"outline",disabled:D,onClick:()=>{O(void 0),_(void 0)},children:t("session.archiveGroupCancel")}),(0,Re.jsx)(Wo.Button,{variant:"outline",className:"dsh-st-n-danger-button",disabled:D,onClick:Ne,children:t("session.archiveGroupConfirm")})]}),children:[(0,Re.jsx)("p",{className:"dsh-st-n-dialog-copy",children:E===void 0?"":t("session.archiveGroupDescription",{name:E.name,count:E.sessionIds.length})}),D&&(0,Re.jsx)("div",{className:"dsh-st-n-dialog-status",role:"status",children:t("session.archiveGroupPending")}),F!==void 0&&(0,Re.jsx)("div",{className:"dsh-st-n-dialog-error",role:"alert",children:t("session.archiveGroupFailed",{message:F})})]}),(0,Re.jsxs)(Wo.Modal,{open:T!==void 0,onClose:()=>{z||(L(void 0),j(void 0))},closeLabel:t("session.deleteSessionClose"),title:t("session.deleteSession"),footer:(0,Re.jsxs)("div",{className:"dsh-st-n-dialog-actions",children:[(0,Re.jsx)(Wo.Button,{variant:"outline",disabled:z,onClick:()=>{L(void 0),j(void 0)},children:t("session.deleteSessionCancel")}),(0,Re.jsx)(Wo.Button,{variant:"outline",className:"dsh-st-n-danger-button",disabled:z,onClick:he,children:t("session.deleteSessionConfirm")})]}),children:[(0,Re.jsx)("p",{className:"dsh-st-n-dialog-copy",children:T===void 0?"":t("session.deleteSessionDescription",{name:T.title})}),z&&(0,Re.jsx)("div",{className:"dsh-st-n-dialog-status",role:"status",children:t("session.deleteSessionPending")}),V!==void 0&&(0,Re.jsx)("div",{className:"dsh-st-n-dialog-error",role:"alert",children:t("session.deleteSessionFailed",{message:V})})]})]})}function a3(e){let{t,id:o,name:n,expanded:r,hasCurrentSession:i,menuOpen:s,canArchiveGroup:a,showTaskSettings:c,onToggle:l,onMenuChange:d,onTaskSettings:u,onArchiveGroup:m}=e,f=[...c?[{id:"task-settings",label:t("session.taskSettings"),icon:(0,Re.jsx)(ZS,{size:16})}]:[],...a?[...c?[{type:"separator",id:"archive-separator"}]:[],{id:"archive-group",label:t("session.archiveGroup"),icon:(0,Re.jsx)(za,{size:16}),danger:!0}]:[]],g="dsh-st-n-row"+(i?" has-current-session":"")+(s?" is-menu":"");return(0,Re.jsxs)("div",{className:g,role:"treeitem","aria-expanded":r,"data-n-group":o,onClick:l,children:[(0,Re.jsx)("span",{className:"dsh-st-n-slot dsh-st-n-folder",children:r?(0,Re.jsx)(u0,{width:16,height:16}):(0,Re.jsx)(d0,{width:16,height:16})}),(0,Re.jsx)("span",{className:"dsh-st-n-slot dsh-st-n-chevron",children:(0,Re.jsx)(m0,{width:14,height:14,className:"dsh-st-n-arrow"+(r?" is-open":"")})}),(0,Re.jsx)("span",{className:"dsh-st-n-project-text",children:(0,Re.jsx)("span",{className:"dsh-st-n-title",children:n})}),(0,Re.jsx)("span",{className:"dsh-st-n-acts",children:(0,Re.jsx)(Wo.Menu,{open:s,onClose:()=>{d(!1)},items:f,onSelect:p=>{d(!1),p==="task-settings"&&u(),p==="archive-group"&&m()},portal:!0,closeOnPointerLeave:!0,anchor:(0,Re.jsx)("button",{type:"button",className:"dsh-st-n-ico","aria-label":t("session.groupActions",{name:n}),onMouseDown:p=>{p.stopPropagation()},onClick:p=>{p.stopPropagation(),d(!s)},children:(0,Re.jsx)(oh,{size:16})})})})]})}function l3(e){let{t,flat:o,id:n,title:r,hoverTitle:i,updatedAt:s,running:a,archived:c,selected:l,menuOpen:d,canDelete:u,canUnarchive:m,hoverStatuses:f,renderSlot:g,onMenuChange:p,onOpen:h,onDeleteSession:y,renameSession:x,archiveSession:b,unarchiveSession:S,forkSession:v}=e,C=uA(o,a),R=(0,ut.useRef)(null),w=(0,ut.useRef)(null),[I,P]=(0,ut.useState)(!1),[N,E]=(0,ut.useState)({}),O=(0,ut.useRef)(void 0),[D,A]=(0,ut.useState)(!1),[F,_]=(0,ut.useState)(r);(0,ut.useEffect)(()=>{_(r)},[r]),(0,ut.useEffect)(()=>{if(!I||d)return;let k=()=>{let W=R.current?.getBoundingClientRect(),H=w.current;if(W===void 0)return;let ee=H===null?{width:220,height:96}:{width:H.offsetWidth,height:H.offsetHeight};E(pA({right:W.right,top:W.top},ee,{width:window.innerWidth,height:window.innerHeight}))};return k(),window.addEventListener("resize",k),document.addEventListener("scroll",k,!0),()=>{window.removeEventListener("resize",k),document.removeEventListener("scroll",k,!0)}},[I,d,r,s,a]),(0,ut.useEffect)(()=>()=>{O.current!==void 0&&window.clearTimeout(O.current)},[]);let T=k=>{Promise.resolve(k()).catch(()=>{})},L=()=>{d||(O.current!==void 0&&window.clearTimeout(O.current),O.current=window.setTimeout(()=>P(!0),500))},z=()=>{O.current!==void 0&&window.clearTimeout(O.current),P(!1)},G="dsh-st-n-sess"+(l?" is-on":"")+(d?" is-menu":"")+(C?" is-flat-idle":"")+(c?" is-archived":"");if(D)return(0,Re.jsx)("div",{className:G,ref:R,children:(0,Re.jsx)("input",{className:"dsh-st-n-rename",value:F,autoFocus:!0,"aria-label":t("session.rename"),onChange:k=>_(k.target.value),onClick:k=>k.stopPropagation(),onKeyDown:k=>{k.key==="Enter"&&(k.preventDefault(),A(!1),F.trim()!==""&&F.trim()!==r&&T(()=>x?.(n,F.trim()))),k.key==="Escape"&&(k.preventDefault(),A(!1),_(r))},onBlur:()=>{A(!1),F.trim()!==""&&F.trim()!==r&&T(()=>x?.(n,F.trim()))}})});let V=(i??r).trim()||r,j=g!==void 0&&dC()?["rename","fork","archive","archive-manager.delete-session"].map(k=>g("sidebar.workspaces.session.menu.item",{sessionId:n,displayTitle:V},{hookContext:[d,W=>p(W)],only:k})):void 0,Y=j!==void 0?[]:cA({canDelete:u,archived:c,canUnarchive:m}).map(k=>k==="rename"?{id:k,label:t("session.rename"),icon:(0,Re.jsx)(JS,{})}:k==="fork"?{id:k,label:t("session.fork"),icon:(0,Re.jsx)(QS,{})}:k==="archive"?{id:k,label:t("session.archive"),icon:(0,Re.jsx)(za,{size:16})}:k==="unarchive"?{id:k,label:t("session.unarchive"),icon:(0,Re.jsx)(c0,{width:16,height:16})}:{id:k,label:t("session.deleteSession"),icon:(0,Re.jsx)(eC,{}),danger:!0}),B=f.find(k=>k.state!=="archived"),U=!c&&B!==void 0&&B.state!=="idle",K=B?.trailing,Z=(0,Re.jsxs)(Re.Fragment,{children:[(0,Re.jsx)("div",{className:"dsh-st-n-hover-title",children:V}),(0,Re.jsx)("div",{className:"dsh-st-n-hover-time",children:bA(s,t)}),f.map(k=>(0,Re.jsxs)("div",{className:"dsh-st-n-hover-state",children:[k.state==="archived"?(0,Re.jsx)(za,{size:14}):(0,Re.jsx)(Wo.StateDot,{state:k.state==="ongoing"?"ongoing":k.state==="warning"?"warning":k.state==="done"?"done":"idle",size:10}),k.label]},k.label))]}),X=(0,Re.jsxs)("div",{className:G,ref:R,role:"treeitem",tabIndex:0,"aria-selected":l,"data-n-menu-root":n,onClick:h,onMouseEnter:L,onMouseLeave:z,onKeyDown:k=>{(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),h())},onContextMenu:k=>{k.preventDefault(),k.stopPropagation(),z(),p(!0)},children:[!C&&(0,Re.jsx)("span",{className:"dsh-st-n-slot",children:U&&B!==void 0?(0,Re.jsx)(Wo.StateDot,{state:B.state==="ongoing"?"ongoing":B.state==="warning"?"warning":"done",size:10}):a?(0,Re.jsx)(xu,{}):null}),(0,Re.jsx)("span",{className:"dsh-st-n-title",onDoubleClick:k=>{x!==void 0&&(k.stopPropagation(),A(!0))},children:r}),(0,Re.jsx)("span",{className:"dsh-st-n-time","aria-hidden":K===void 0?void 0:!0,children:K??yA(s,t)}),(0,Re.jsxs)("span",{className:"dsh-st-n-acts",children:[j===void 0&&c&&m&&(0,Re.jsx)("button",{type:"button",className:"dsh-st-n-restore",onMouseDown:k=>{k.stopPropagation()},onClick:k=>{k.stopPropagation(),T(()=>S?.(n))},children:t("session.unarchive")}),(0,Re.jsx)(Wo.Menu,{open:d,onClose:()=>{p(!1)},items:Y,onSelect:k=>{p(!1),k==="rename"&&A(!0),k==="fork"&&T(()=>v?.(n)),k==="archive"&&T(()=>b?.(n)),k==="unarchive"&&T(()=>S?.(n)),k==="delete-session"&&y?.()},portal:!0,closeOnPointerLeave:!0,anchor:(0,Re.jsx)("button",{type:"button",className:"dsh-st-n-ico","aria-label":t("session.moreActions",{title:r}),onMouseDown:k=>{k.stopPropagation()},onClick:k=>{k.stopPropagation(),z(),p(!d)},children:(0,Re.jsx)(oh,{size:16})}),children:j}),g?.("sidebar.workspaces.session.row.action",{sessionId:n,displayTitle:V},{only:"archive"})]}),typeof Wo.HoverCard!="function"&&I&&!d&&typeof document<"u"&&(0,RA.createPortal)((0,Re.jsx)("div",{ref:w,className:"dsh-st-n-hover",style:N,onMouseEnter:L,onMouseLeave:z,children:Z}),document.body)]});return typeof Wo.HoverCard!="function"?X:(0,Re.jsx)(Wo.HoverCard,{anchor:X,content:Z,openDelayMs:800,disabled:d,copyText:V,copyLabel:t("session.copy"),copiedLabel:t("session.copied")})}var zt=require("react");var rt=require("react/jsx-runtime"),EA=[],$A=e=>()=>{},jS=class extends zt.Component{state={failed:!1};static getDerivedStateFromError(){return{failed:!0}}componentDidCatch(t){console.warn("[dsh-automation] official workspace tree crashed",t)}render(){return this.state.failed?this.props.fallback:this.props.children}};function IA({t:e,runtime:t,openSession:o,openTaskSettings:n,view:r,showViewSwitch:i=!0}){let s=(0,zt.useSyncExternalStore)(t.source.subscribe,t.source.getSnapshot,t.source.getSnapshot),[a,c]=(0,zt.useState)({}),[l,d]=(0,zt.useState)("runs"),u=r??l,m=s.snapshot,f=(0,zt.useMemo)(()=>m===void 0?[]:hu(m.automations,m.runs),[m]);return(0,rt.jsxs)("div",{className:"dsh-st-rail",children:[i&&(0,rt.jsx)(Gg,{t:e,view:u,onChange:d}),u==="overview"?m===void 0?(0,rt.jsx)("div",{className:"dsh-st-rail-empty",children:s.phase==="loading"?e("loading"):e("overview.empty")}):(0,rt.jsx)(qg,{t:e,automations:m.automations,onToggleAutomation:(g,p)=>t.mutateAutomation(g,p),...n===void 0?{}:{openTaskSettings:n},...m.serverNow===void 0?{}:{serverNow:m.serverNow}}):(0,rt.jsxs)(rt.Fragment,{children:[s.phase==="loading"&&f.length===0&&(0,rt.jsx)("div",{className:"dsh-st-rail-empty",children:e("loading")}),f.length===0&&s.phase!=="loading"&&(0,rt.jsx)("div",{className:"dsh-st-rail-empty",children:e("sidebar.empty")}),f.map(g=>(0,rt.jsxs)("section",{className:"dsh-st-rail-group",children:[(0,rt.jsxs)("button",{type:"button",className:"dsh-st-rail-head",onClick:()=>c(p=>({...p,[g.id]:!p[g.id]})),children:[(0,rt.jsx)("span",{className:"dsh-st-rail-folder",children:(0,rt.jsx)(yc,{width:16,height:16})}),(0,rt.jsx)("span",{className:"dsh-st-rail-title",children:g.name})]}),a[g.id]!==!0&&g.sessions.map(p=>(0,rt.jsxs)("button",{type:"button",className:"dsh-st-rail-session",onClick:()=>o?.(p.id),children:[(0,rt.jsx)("span",{children:p.label}),p.running&&(0,rt.jsx)(xu,{})]},p.id))]},g.id))]})]})}function NA({t:e,runtime:t,officialTree:o,hostProps:n,openSession:r,openTaskSettings:i,useSessions:s,useWorkspaces:a,renderSlot:c,hasChannels:l,subscribeChannels:d,tabRegistry:u,wide:m}){let f=o,[g,p]=(0,zt.useState)(()=>{try{return kC(window.localStorage.getItem(ih))}catch{return"tasks"}}),h=(0,zt.useSyncExternalStore)(u?.subscribe??$A,()=>u?.getTabs()??EA,()=>EA),y=(0,zt.useSyncExternalStore)(d??$A,()=>{try{return l?.()===!0}catch{return!1}},()=>!1),x=s?.(_=>hc(_)),b=(0,zt.useSyncExternalStore)(t.source.subscribe,t.source.getSnapshot,t.source.getSnapshot),S=(0,zt.useMemo)(()=>OC(b.snapshot?.runs),[b.snapshot]),v=(0,zt.useRef)(null);(0,zt.useEffect)(()=>{if(!bu(x,b.snapshot?.runs)){v.current=null;return}v.current!==x&&(v.current=x??null,t.refresh().catch(()=>{}))},[b.snapshot?.runs,x,t]);let C=(0,zt.useCallback)((_,T)=>s===void 0?_({ids:[],byId:{},current:null}):s(L=>_(HC(L,S)),T),[s,S]),R=(0,zt.useCallback)((_,T)=>a===void 0?_({items:[],archivedSessionIds:[]}):a(L=>_(KC(L,S)),T),[a,S]);(0,zt.useEffect)(()=>{try{window.localStorage.setItem(ih,g)}catch{}},[g]);let w=(0,zt.useRef)(x),I=(0,zt.useRef)(!1);(0,zt.useEffect)(()=>{if(!I.current){I.current=!0,w.current=x;return}let _=w.current;if(w.current=x,!LC(_,x))return;let T=FC(x??void 0,S),L=h.map(G=>G.id);T==="channels"&&(y||L.includes("channels"))&&p("channels");let z=h.find(G=>x!=null&&G.matchSession?.(String(x))===!0);z!==void 0&&z.id!=="schedule"&&p(z.id)},[x,y,h,S]);let P={...n??{},...m===void 0?{}:{wide:m}},N={...P,...s===void 0?{}:{useSessions:C},...a===void 0?{}:{useWorkspaces:R}},E=_=>f===void 0?(0,rt.jsx)(c3,{t:e,...r===void 0?{}:{openSession:r},...s===void 0?{}:{useSessions:C},...a===void 0?{}:{useWorkspaces:a}}):(0,rt.jsx)(jS,{fallback:(0,zt.createElement)(f,P),children:(0,zt.createElement)(f,_)});if(m===!1)return(0,rt.jsx)(rt.Fragment,{children:E(N)});let O=h.filter(_=>_.id!=="schedule"),D=_C({tab:g,channelsReady:y,extraTabIds:DC({extraTabIds:O.map(_=>_.id),channelsReady:y})}),A=h.find(_=>_.id==="schedule"),F=A===void 0?(0,rt.jsx)(Xg,{t:e,runtime:t,...r===void 0?{}:{openSession:r},...i===void 0?{}:{openTaskSettings:i},...s===void 0?{}:{useSessions:s},...a===void 0?{}:{useWorkspaces:a},...c===void 0?{}:{renderSlot:c},...Ug(n),...typeof n?.useSessionStatus=="function"?{useSessionStatus:n.useSessionStatus}:{}}):A.render({...n??{},openSession:r,open:r,useSessions:s,wide:!0});return(0,rt.jsxs)("div",{className:"dsh-st-shell-rail",children:[(0,rt.jsxs)("div",{className:"dsh-st-shell-tabs",role:"tablist","aria-label":e("sidebar.tabs"),children:[(0,rt.jsx)("button",{type:"button",role:"tab","aria-selected":D==="tasks",className:D==="tasks"?"is-on":void 0,onClick:()=>p("tasks"),children:e("sidebar.tasksTab")}),O.map(_=>(0,rt.jsx)("button",{type:"button",role:"tab","aria-selected":D===_.id,className:D===_.id?"is-on":void 0,onClick:()=>p(_.id),children:_.label},_.id)),y&&O.every(_=>_.id!=="channels")&&(0,rt.jsx)("button",{type:"button",role:"tab","aria-selected":D==="channels",className:D==="channels"?"is-on":void 0,onClick:()=>p("channels"),children:e("sidebar.channelsTab")}),(0,rt.jsx)("button",{type:"button",role:"tab","aria-selected":D==="schedule",className:D==="schedule"?"is-on":void 0,onClick:()=>p("schedule"),children:e("sidebar.tab")})]}),D==="schedule"?(0,rt.jsx)("div",{className:"dsh-st-shell-body",children:F}):O.find(_=>_.id===D)!==void 0?(0,rt.jsx)("div",{className:"dsh-st-shell-body",children:O.find(_=>_.id===D)?.render({...n??{},openSession:r,open:r,useSessions:s,wide:!0})}):D==="channels"?(0,rt.jsx)("div",{className:"dsh-st-shell-body",children:c?.("sidebar.channels",{...n??{},openSession:r,open:r,useSessions:s,wide:!0,skin:"native"})}):(0,rt.jsx)("div",{className:"dsh-st-official-tree",children:E(N)})]})}function c3({t:e,openSession:t,useSessions:o,useWorkspaces:n}){let r=o===void 0?{ids:[],byId:{},current:null}:o(c=>c??{ids:[],byId:{},current:null}),i=n===void 0?void 0:n(c=>c??{items:[],archivedSessionIds:[]}),s=AC(r,i,e("sidebar.ungrouped")),a=hc(r);return s.length===0?(0,rt.jsx)("div",{className:"dsh-st-rail-empty",children:e("sidebar.tasksEmpty")}):(0,rt.jsx)("div",{className:"dsh-st-rail",children:s.map(c=>(0,rt.jsxs)("section",{className:"dsh-st-rail-group",children:[(0,rt.jsx)("div",{className:"dsh-st-rail-head is-static",children:(0,rt.jsx)("span",{className:"dsh-st-rail-title",children:c.label})}),c.sessions.map(l=>(0,rt.jsx)("button",{type:"button",className:`dsh-st-rail-session${a===l.id?" is-on":""}`,onClick:()=>{l.id!==void 0&&t?.(l.id)},children:(0,rt.jsx)("span",{children:l.title||l.id})},l.id))]},c.id||"ungrouped"))})}var PA="dsh-automation-styles",TA=`
|
|
257
|
+
&${t}-slide-up-leave${t}-slide-up-leave-active${o}-dropdown-placement-topRight`]:{animationName:gs},[`${o}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${q(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":{...Xo,display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${q(e.paddingXXS)} ${q(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}}}}}},MB=e=>{let{componentCls:t,margin:o,colorBorderSecondary:n,horizontalMargin:r,verticalItemPadding:i,verticalItemMargin:s,motionDurationSlow:a,calc:c}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:r,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${q(e.lineWidth)} ${e.lineType} ${n}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:["width","left","right"].map(l=>`${l} ${a}`).join(", ")}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
|
|
258
|
+
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:o,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-body-holder, > div > ${t}-body-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:c(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:s},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:["height","top"].map(l=>`${l} ${a}`).join(", ")}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-body-holder, > div > ${t}-body-holder`]:{marginLeft:{_skip_check_:!0,value:q(c(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-body > ${t}-content`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-body-holder, > div > ${t}-body-holder`]:{order:0,marginRight:{_skip_check_:!0,value:c(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-body > ${t}-content`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},OB=e=>{let{componentCls:t,cardPaddingSM:o,cardPaddingLG:n,cardHeightSM:r,cardHeightLG:i,horizontalItemPaddingSM:s,horizontalItemPaddingLG:a}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o},[`${t}-nav-add`]:{minWidth:r,minHeight:r}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${q(e.borderRadius)} ${q(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${q(e.borderRadius)} ${q(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${q(e.borderRadius)} ${q(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${q(e.borderRadius)} 0 0 ${q(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:i,minHeight:i}}}}}},AB=e=>{let{componentCls:t,itemActiveColor:o,itemHoverColor:n,iconCls:r,tabsHorizontalItemMargin:i,horizontalItemPadding:s,itemSelectedColor:a,itemColor:c}=e,l=`${t}-tab`;return{[l]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:s,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:o}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${l}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM},[`${l}-icon > svg`]:{display:"inline-block",verticalAlign:"middle",marginBlockEnd:"0.2em"}},"&-remove":{flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading},...ln(e)},"&:hover":{color:n},[`&${l}-active ${l}-btn`]:{color:a},[`&${l}-focus ${l}-btn:focus-visible`]:An(e),[`&${l}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${l}-disabled ${l}-btn, &${l}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${l}-remove ${r}`]:{margin:0,verticalAlign:"middle"},[`${r}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${l} + ${l}`]:{margin:{_skip_check_:!0,value:i}}}},kB=e=>{let{componentCls:t,tabsHorizontalItemMarginRTL:o,iconCls:n,cardGutter:r,calc:i}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:o},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[n]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:e.marginSM}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:e.marginXS},marginLeft:{_skip_check_:!0,value:i(e.marginXXS).mul(-1).equal()},[n]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-body-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-body-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:r},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},LB=e=>{let{componentCls:t,tabsCardPadding:o,cardHeight:n,cardGutter:r,itemHoverColor:i,itemActiveColor:s,colorBorderSecondary:a}=e;return{[t]:{...Et(e),display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:o,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:{minWidth:n,minHeight:n,marginLeft:{_skip_check_:!0,value:r},background:"transparent",border:`${q(e.lineWidth)} ${e.lineType} ${a}`,borderRadius:`${q(e.borderRadiusLG)} ${q(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:s},...ln(e,-3)}},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"},...AB(e),[`${t}-body`]:{position:"relative",width:"100%"},[`${t}-body-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-content`]:{...ln(e),"&-hidden":{display:"none"}}},[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},DB=e=>{let{cardHeight:t,cardHeightSM:o,cardHeightLG:n,controlHeight:r,controlHeightLG:i}=e,s=t||i,a=o||r,c=n||i+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:s,cardHeightSM:a,cardHeightLG:c,cardPadding:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(a-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(c-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},wO=Ze("Tabs",e=>{let t=Fe(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${q(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${q(e.horizontalItemGutter)}`});return[OB(t),kB(t),MB(t),TB(t),PB(t),LB(t),CO(t)]},DB);var _B=()=>null,RO=_B;var FB=wn.forwardRef((e,t)=>{let{type:o,className:n,rootClassName:r,size:i,onEdit:s,hideAdd:a,centered:c,addIcon:l,removeIcon:d,moreIcon:u,more:m,popupClassName:f,children:g,items:p,animated:h,style:y,indicatorSize:x,indicator:b,classNames:S,styles:v,destroyInactiveTabPane:C,destroyOnHidden:R,tabPlacement:w,tabPosition:I,...P}=e,{prefixCls:N}=P,{getPrefixCls:E,direction:O,getPopupContainer:L,className:k,style:z,classNames:_,styles:T}=Ye("tabs"),{tabs:D}=wn.useContext(Oe),F=E("tabs",N),G=oo(F),[H,W]=wO(F,G),X=wn.useRef(null);wn.useImperativeHandle(t,()=>({nativeElement:X.current}));let B;o==="editable-card"&&(B={onEdit:(re,{key:ie,event:Se})=>{s?.(re==="add"?Se:ie,re)},removeIcon:d??D?.removeIcon??wn.createElement(Yn,null),addIcon:(l??D?.addIcon)||wn.createElement(eO,null),showAdd:a!==!0});let j=E(),U=Xt(i),Z=SO(p,g),Y=OS(F,h),K={align:b?.align??D?.indicator?.align,size:b?.size??x??D?.indicator?.size??D?.indicatorSize},V=wn.useMemo(()=>{let re=w??I??void 0,ie=O==="rtl";switch(re){case"start":return ie?"right":"left";case"end":return ie?"left":"right";default:return re}},[w,I,O]),A={...e,size:U,tabPlacement:V,items:Z},ee=De(z),Q=De(y),[te,le]=et([_,S],[T,ee,v,Q],{props:A},{popup:{_default:"root"}});return wn.createElement(xO,{ref:X,direction:O,getPopupContainer:L,...P,items:Z,className:$({[`${F}-large`]:U==="large",[`${F}-small`]:U==="small",[`${F}-card`]:["card","editable-card"].includes(o),[`${F}-editable-card`]:o==="editable-card",[`${F}-centered`]:c},k,n,r,te.root,H,W,G),classNames:{...te,popup:$(f,H,W,G,te.popup?.root)},styles:{...le,popup:le.popup?.root},style:le.root,editable:B,more:{icon:D?.more?.icon??D?.moreIcon??u??wn.createElement(Fl,null),transitionName:`${j}-slide-up`,...m},prefixCls:F,animated:Y,indicator:K,destroyOnHidden:R??C,tabPosition:V})}),EO=FB;EO.TabPane=RO;var $O=EO;var Fg=M(require("react"),1);var zB={locale:"zh-cn",global:{close:"\u5173\u95ED"},Modal:{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",justOkText:"\u77E5\u9053\u4E86"}},BB={locale:"en",global:{close:"Close"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"}};function IO(e){return e==="en"?BB:zB}var tu=M(require("react"),1);function NO(){return typeof document>"u"?!1:document.documentElement.hasAttribute("data-ds-dark-theme")||document.body?.hasAttribute("data-ds-dark-theme")===!0}function PO(){let[e,t]=tu.default.useState(NO);return tu.default.useEffect(()=>{let o=()=>t(NO());o();let n=new MutationObserver(o);return n.observe(document.documentElement,{attributes:!0,attributeFilter:["data-ds-dark-theme"]}),document.body&&n.observe(document.body,{attributes:!0,attributeFilter:["data-ds-dark-theme"]}),()=>n.disconnect()},[]),e}function TO(){let e=()=>(typeof document>"u"?"":document.documentElement.lang).toLowerCase().startsWith("en")?"en":"zh",[t,o]=tu.default.useState(e);return tu.default.useEffect(()=>{let n=()=>o(e());n();let r=new MutationObserver(n);return r.observe(document.documentElement,{attributes:!0,attributeFilter:["lang"]}),()=>r.disconnect()},[]),t}function Wn(e){return e.default??e}var HB=Wn(Lf),Ui=Object.assign(Wn(hP),{TextArea:HB}),VB=Wn(nd),ho=Fg.default.forwardRef(function(t,o){return Fg.default.createElement(VB,{shape:"round",size:"middle",...t,ref:o})}),AS=Wn(gI),WB=Wn(as),dc=Wn(IN),Da=Wn(nT),MO=Wn(xT),OO=Wn(ET),gn=Wn(GM),zg=Wn(QM),AO=Wn($O),jB=Wn(H0),UB=Wn(Ws);function Rn(e){let t=PO(),o=TO();return Fg.default.createElement(WB,{locale:e.locale??IO(o),button:{autoInsertSpace:!1},theme:{algorithm:t?jB:UB,components:{Button:{borderRadius:8}}}},e.children)}var bi=require("react");var KB=new Map([["read-only",["permission.readOnly","Read Only"]],["workspace-write",["permission.workspaceWrite","Workspace Write"]],["danger-full-access",["permission.fullAccess","Full access"]]]);function kO(e,t){let o=KB.get(e.value);return o!==void 0&&(e.name===e.value||e.name===o[1])?t(o[0]):e.name||e.value}function LO(e,t){return e!==t&&t==="danger-full-access"}var Ve=require("react/jsx-runtime"),GB=[1,2,3,4,5,6,7],qB=["once","interval","hourly","daily","weekly","monthly","custom"],XB=Array.from({length:24},(e,t)=>String(t).padStart(2,"0")),_O=Array.from({length:60},(e,t)=>String(t).padStart(2,"0"));function FO({t:e,permissionT:t,modelT:o,busy:n,workspaces:r,models:i,modelFailures:s,defaultModel:a,skills:c,permissions:l,defaultPermission:d,draft:u,editing:m,onClose:f,onSubmit:g}){let[p,h]=(0,bi.useState)(()=>({...nh(new Date,r,a,d),...u})),[y,x]=(0,bi.useState)(),[b,S]=(0,bi.useState)(),[v,C]=(0,bi.useState)(!1),R=(0,bi.useRef)(null),w=(0,bi.useRef)(0);(0,bi.useEffect)(()=>{let T=D=>{if(D.key==="Escape"&&document.querySelector(".ant-select-dropdown:not(.ant-select-dropdown-hidden), .ant-dropdown:not(.ant-dropdown-hidden)")===null){if(D.preventDefault(),D.stopPropagation(),D.stopImmediatePropagation(),b!==void 0){C(!1),S(void 0);return}f()}};return window.addEventListener("keydown",T,!0),()=>window.removeEventListener("keydown",T,!0)},[b,f]);let I=T=>{h(D=>({...D,...T})),x(void 0)},P=T=>{if(LO(p.permission,T)){C(!1),S(T);return}I({permission:T})},N=async T=>{T?.preventDefault();try{await g(p)}catch(D){if(D instanceof nn){x(e(D.key));return}x(D instanceof Error?D.message:e("error.action"))}},E=p.onceAt.slice(0,10),O=p.onceAt.slice(11,16)||"09:00",L=ZB(new Date),z=i.find(T=>`${T.provider}::${T.model}`===p.modelKey)?.reasoning,_=T=>{let D=fC(p.prompt,pC(T),w.current);I({prompt:D.text}),queueMicrotask(()=>{let F=R.current?.resizableTextArea?.textArea;F!=null&&(F.focus(),F.setSelectionRange(D.caret,D.caret),w.current=D.caret)})};return(0,Ve.jsx)(Rn,{children:(0,Ve.jsxs)(Da,{open:!0,title:e(m===!0?"modal.edit":"modal.title"),onCancel:f,maskClosable:!1,keyboard:!1,width:720,destroyOnHidden:!0,footer:[(0,Ve.jsx)(ho,{disabled:n,onClick:f,children:e("form.cancel")},"cancel"),(0,Ve.jsx)(ho,{htmlType:"submit",form:"dsh-st-create-form",type:"primary",disabled:n,children:e("modal.save")},"save")],children:[(0,Ve.jsxs)("form",{id:"dsh-st-create-form",className:"dsh-st-form",onSubmit:T=>{N(T)},children:[(0,Ve.jsx)("p",{children:e("form.subtitle")}),(0,Ve.jsxs)("label",{className:"dsh-st-field",children:[e("form.name"),(0,Ve.jsx)(Ui,{value:p.name,placeholder:e("form.namePlaceholder"),onChange:T=>I({name:T.target.value})})]}),(0,Ve.jsxs)("div",{className:"dsh-st-plan-row",children:[(0,Ve.jsxs)("div",{className:"dsh-st-field",children:[e("form.planTime"),(0,Ve.jsxs)("div",{className:"dsh-st-inline",children:[(0,Ve.jsx)(gn,{value:p.scheduleKind,options:qB.map(T=>({value:T,label:e(`form.${T}`)})),onChange:T=>I({scheduleKind:T})}),p.scheduleKind==="once"&&(0,Ve.jsx)(Ui,{type:"date",min:L,value:E,onChange:T=>I({onceAt:DO(`${T.target.value}T${O}`)})}),(p.scheduleKind==="once"||p.scheduleKind==="daily"||p.scheduleKind==="weekly"||p.scheduleKind==="monthly"||p.scheduleKind==="custom")&&(0,Ve.jsx)(YB,{value:p.scheduleKind==="once"?O:p.time,onChange:T=>{p.scheduleKind==="once"?I({onceAt:DO(`${E}T${T}`)}):I({time:T})}}),p.scheduleKind==="interval"&&(0,Ve.jsx)(Ui,{type:"number",min:1,value:p.everyMinutes,addonAfter:e("form.minutesShort"),onChange:T=>I({everyMinutes:T.target.value})}),p.scheduleKind==="hourly"&&(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)(gn,{value:p.hourlyMinute,options:_O.map(T=>({value:T,label:T})),onChange:T=>I({hourlyMinute:T})}),(0,Ve.jsx)("span",{className:"dsh-st-suffix",children:e("form.minutesShort")})]}),p.scheduleKind==="monthly"&&(0,Ve.jsx)(gn,{value:p.monthDay,options:Array.from({length:31},(T,D)=>{let F=String(D+1);return{value:F,label:e("form.monthDay",{day:F})}}),onChange:T=>I({monthDay:T})}),p.scheduleKind==="custom"&&(0,Ve.jsx)(Ui,{type:"number",min:1,value:p.customDays,addonAfter:e("form.daysShort"),onChange:T=>I({customDays:T.target.value})})]})]}),(0,Ve.jsxs)("label",{className:"dsh-st-field dsh-st-concurrency",title:e("form.maxConcurrentRunsHint"),children:[e("form.maxConcurrentRuns"),(0,Ve.jsx)(Ui,{type:"number",min:1,step:1,value:p.maxConcurrentRuns,onChange:T=>I({maxConcurrentRuns:T.target.value})})]})]}),p.scheduleKind==="weekly"&&(0,Ve.jsx)(AS.Group,{options:GB.map(T=>({label:e(`day.${T}`),value:String(T)})),value:p.weekdays.map(String),onChange:T=>I({weekdays:T.map(D=>Number(D))})}),(0,Ve.jsxs)("div",{className:"dsh-st-field",children:[(0,Ve.jsx)("span",{children:e("form.prompt")}),(0,Ve.jsxs)("div",{className:"dsh-st-prompt-card",children:[(0,Ve.jsx)(Ui.TextArea,{ref:R,variant:"borderless",value:p.prompt,placeholder:e("form.promptPlaceholder"),autoSize:{minRows:4,maxRows:10},onChange:T=>{w.current=T.target.selectionStart,I({prompt:T.target.value})},onSelect:T=>{w.current=T.currentTarget.selectionStart}}),(0,Ve.jsxs)("div",{className:"dsh-st-composer",children:[(0,Ve.jsxs)("div",{className:"dsh-st-composer-left",children:[(0,Ve.jsx)(gn,{variant:"borderless",size:"small",prefix:(0,Ve.jsx)(l0,{width:14,height:14}),value:p.workspaceId,placeholder:e("form.workspace"),popupMatchSelectWidth:!1,options:r.map(T=>({value:T.id,label:T.title})),onChange:T=>I({workspaceId:T})}),(0,Ve.jsx)(dc,{menu:{items:c.length===0?[{key:"empty",label:e("form.skillsEmpty"),disabled:!0}]:c.map(T=>({key:T.id,label:T.name,onClick:()=>_(T)}))},children:(0,Ve.jsx)(ho,{type:"text",icon:(0,Ve.jsx)(c0,{width:14,height:14}),children:e("form.skills")})}),(0,Ve.jsx)(gn,{variant:"borderless",size:"small",prefix:(0,Ve.jsx)(o0,{width:14,height:14}),value:p.permission,popupMatchSelectWidth:!1,options:l.map(T=>({value:T.value,label:kO(T,e)})),onChange:T=>P(T)})]}),(0,Ve.jsxs)("div",{className:"dsh-st-composer-right",children:[(0,Ve.jsx)(gn,{variant:"borderless",size:"small",value:p.modelKey,popupMatchSelectWidth:!1,options:Array.from(i.reduce((T,D)=>{let F=T.get(D.provider)??{label:D.providerLabel,options:[]};return F.options.push({value:`${D.provider}::${D.model}`,label:D.label}),T.set(D.provider,F),T},new Map),([,T])=>T),onChange:T=>{let D=i.find(F=>`${F.provider}::${F.model}`===T);I({modelKey:T,reasoningEffort:D?.reasoning?.defaultEffort??"none"})}}),z!==void 0&&(0,Ve.jsx)(gn,{variant:"borderless",size:"small",value:p.reasoningEffort,popupMatchSelectWidth:!1,options:[...z.defaultEffort===void 0?[{value:"none",label:o("effort.providerDefault")}]:[],...z.efforts.map(T=>({value:T.id,label:T.name}))],onChange:T=>I({reasoningEffort:T})})]})]})]})]}),s.map(T=>(0,Ve.jsx)("p",{className:"dsh-st-error",children:o("warning.groupLoad",{name:T.providerLabel,message:T.message})},T.provider)),y!==void 0&&(0,Ve.jsx)("p",{className:"dsh-st-error",children:y})]}),(0,Ve.jsxs)(Da,{open:b!==void 0,title:t("confirm.title"),keyboard:!1,maskClosable:!1,okText:t("confirm.enable"),cancelText:t("confirm.cancel"),okButtonProps:{disabled:!v},onCancel:()=>{C(!1),S(void 0)},onOk:()=>{!v||b===void 0||(I({permission:b}),C(!1),S(void 0))},children:[(0,Ve.jsx)("p",{children:t("confirm.description")}),(0,Ve.jsx)(AS,{checked:v,onChange:T=>C(T.target.checked),children:t("confirm.acknowledge")})]})]})})}function YB({value:e,onChange:t}){let[o,n]=[e.slice(0,2)||"09",e.slice(3,5)||"00"];return(0,Ve.jsxs)("span",{className:"dsh-st-time",children:[(0,Ve.jsx)(gn,{value:o,options:XB.map(r=>({value:r,label:r})),onChange:r=>t(`${r}:${n}`)}),(0,Ve.jsx)("span",{className:"dsh-st-time-sep",children:":"}),(0,Ve.jsx)(gn,{value:n,options:_O.map(r=>({value:r,label:r})),onChange:r=>t(`${o}:${r}`)})]})}function ZB(e){let t=e.getTimezoneOffset()*6e4;return new Date(e.getTime()-t).toISOString().slice(0,10)}function DO(e){let t=new Date(e),o=new Date;if(!Number.isFinite(t.getTime())||t.getTime()>o.getTime())return e;let n=new Date(o.getTime()+6e4);n.setSeconds(0,0);let r=n.getTimezoneOffset()*6e4;return new Date(n.getTime()-r).toISOString().slice(0,16)}var zO=require("react");var Fs=require("react/jsx-runtime");function BO({target:e,t,busy:o,onCancel:n,onConfirm:r}){return(0,zO.useEffect)(()=>{if(e===void 0)return;let i=s=>{s.key==="Escape"&&(s.preventDefault(),s.stopPropagation(),s.stopImmediatePropagation(),n())};return window.addEventListener("keydown",i,!0),()=>window.removeEventListener("keydown",i,!0)},[n,e]),(0,Fs.jsx)(Rn,{children:(0,Fs.jsxs)(Da,{open:e!==void 0,title:t("card.confirmDelete"),onCancel:n,maskClosable:!1,keyboard:!1,footer:[(0,Fs.jsx)(ho,{disabled:o,onClick:n,children:t("card.cancel")},"cancel"),(0,Fs.jsx)(ho,{danger:!0,type:"primary",disabled:o,onClick:r,children:t("card.confirm")},"delete")],children:[e!==void 0&&(0,Fs.jsx)("p",{children:e.name}),(0,Fs.jsx)("p",{children:t("card.confirmDeleteHint")})]})})}var ou=null,kS=new Set;function HO(e){ou=e;for(let t of[...kS])t(ou)}function LS(){let e=ou;return ou=null,e}function VO(){return ou}function WO(e){return kS.add(e),()=>{kS.delete(e)}}function jO(e){let t=document.querySelector("[data-composer-seat] textarea");return t instanceof HTMLTextAreaElement?(Object.getOwnPropertyDescriptor(HTMLTextAreaElement.prototype,"value")?.set?.call(t,e),t.dispatchEvent(new InputEvent("input",{bubbles:!0})),t.focus(),!0):!1}function Bg(e){if(typeof e!="object"||e===null||!("ok"in e))throw new Error("\u81EA\u52A8\u5316\u4E3B\u673A\u8FD4\u56DE\u4E86\u65E0\u6548\u54CD\u5E94\u3002");let t=e;if(t.ok===!0&&"value"in t)return t.value;if(t.ok===!1&&"error"in t){let o=t.error;throw new Error(o?.message??"\u81EA\u52A8\u5316\u8BF7\u6C42\u5931\u8D25\u3002")}throw new Error("\u81EA\u52A8\u5316\u4E3B\u673A\u8FD4\u56DE\u4E86\u65E0\u6548\u54CD\u5E94\u3002")}var Hg="/dsh-automation",KO=15e3,QB=2e3,GO=[1,2,4],UO=GO.length+1,JB=5*60*1e3,e3=24*60*60*1e3;function t3(e){return(e??[]).some(t=>t.status==="running"||t.status==="queued")?QB:KO}function DS(e,t){return t>0?t3(e):KO}function _S(e){let t=e instanceof Error?e.message:String(e);return/failed to fetch|networkerror|load failed|network request failed/i.test(t)}function o3(e,t){let o=Date.parse(t),r=(Number.isFinite(o)?o:Date.now())-e3;return[...new Set(e.filter(i=>{if(i.status==="queued"||i.status==="running")return!0;let s=Date.parse(i.finishedAt??i.startedAt??i.scheduledFor);return Number.isFinite(s)&&s>=r}).map(i=>i.sessionId).filter(i=>i!==void 0&&i!==""))].sort()}function qO(e,t,o={}){let n=!1,r=0,i=e.source.getSnapshot().phase==="loading",s,a,c=0,l=0,d=0,u,m,f=!1,g=x=>{a=x,c=0,l=r,d=0,u=void 0},p=x=>{let b=e.source.getSnapshot().snapshot,S=x?.list?.getSnapshot();if(b===void 0||S===void 0||x?.refresh===void 0)return;let v=new Set([...S.ids??[],...Object.keys(S.byId??{})]);return o3(b.runs,b.serverNow).filter(C=>!v.has(C)).join("\0")},h=()=>{if(n)return;let x=t();x!==s&&(s=x,g());let b=p(x);if(b===void 0)return;if(b===""){g();return}if(b!==a&&g(b),c>=UO){if((o.now??Date.now)()<d)return;g(b)}if(r<l)return;if(m!==void 0){f=!0;return}let S=c;c+=1;let v=GO[S];l=v===void 0?Number.POSITIVE_INFINITY:r+v,c>=UO&&(d=(o.now??Date.now)()+JB),m=Promise.resolve().then(async()=>{await x.refresh()}).catch(C=>{!n&&u!==b&&(u=b,console.warn("[dsh-automation] \u5237\u65B0 Host \u4F1A\u8BDD\u5217\u8868\u5931\u8D25",C))}).finally(()=>{m=void 0,!(n||!f)&&(f=!1,h())})},y=e.source.subscribe(()=>{e.source.getSnapshot().phase==="loading"?i=!0:i&&(i=!1,r+=1),h()},{background:!0});return h(),()=>{n=!0,f=!1,y()}}function XO(e){let t={phase:"idle"},o,n,r=()=>{},i=new Set,s=new Set,a=()=>{if(n!==void 0&&clearInterval(n),i.size===0){n=void 0;return}n=setInterval(()=>{u().catch(()=>{})},DS(t.snapshot?.runs,s.size))},c=()=>{if(r(),s.size===0)return;let g=()=>{u().catch(()=>{})},p=()=>{document.visibilityState==="visible"&&g()};typeof window<"u"&&window.addEventListener("focus",g),typeof document<"u"&&document.addEventListener("visibilitychange",p),r=()=>{typeof window<"u"&&window.removeEventListener("focus",g),typeof document<"u"&&document.removeEventListener("visibilitychange",p),r=()=>{}}},l=g=>{let p=DS(t.snapshot?.runs,s.size);t=g,i.size>0&&p!==DS(t.snapshot?.runs,s.size)&&a();for(let h of[...i])h()},d={getSnapshot:()=>t,subscribe:(g,p={})=>{let h=i.size>0,y=s.size>0;return i.add(g),p.background!==!0&&s.add(g),(!h||p.background!==!0&&!y)&&queueMicrotask(()=>{i.size>0&&u().catch(()=>{})}),a(),s.size>0&&!y&&c(),()=>{i.delete(g),s.delete(g),i.size===0&&n!==void 0?(clearInterval(n),n=void 0):i.size>0&&a(),s.size===0&&r()}}},u=async()=>{if(o!==void 0)return o;let g=t.snapshot;return l(g===void 0?{phase:"loading"}:{phase:"loading",snapshot:g,...t.refreshedAt===void 0?{}:{refreshedAt:t.refreshedAt}}),o=(async()=>{try{let p=await e.call(Hg,"snapshot",{sessionId:"settings"}),h=Bg(p);l({phase:"ready",snapshot:h,refreshedAt:Date.now()})}catch(p){let h=p instanceof Error?p.message:String(p);throw l(g===void 0?{phase:"error",error:h}:{phase:"error",snapshot:g,error:h,...t.refreshedAt===void 0?{}:{refreshedAt:t.refreshedAt}}),p}finally{o=void 0}})(),o},m=async(g,p)=>{try{return await e.call(Hg,g,p)}catch(h){if(!_S(h))throw h;return await e.call(Hg,g,p)}},f=async(g,p,h)=>{Bg(await m(g,p));let y=()=>{h!==void 0&&t.snapshot!==void 0&&l({phase:"ready",snapshot:h(t.snapshot),refreshedAt:Date.now()})},x=o;y(),x!==void 0&&(await x.catch(()=>{}),y());try{await u()}catch{}};return{source:d,refresh:u,async createAutomation(g){await f("create",{sessionId:"settings",input:g})},async mutateAutomation(g,p){await f("mutate",{sessionId:"settings",automationId:g,mutation:p},p==="delete"?y=>({...y,automations:y.automations.filter(x=>x.id!==g)}):y=>({...y,automations:y.automations.map(x=>x.id===g?{...x,status:p==="pause"?"paused":"active"}:x)}))},async updateAutomation(g,p){await f("update",{sessionId:"settings",automationId:g,input:p})},async runNow(g){await f("run-now",{sessionId:"settings",automationId:g})},async markRunRead(g){await f("mark-read",{sessionId:"settings",runId:g})},async adoptSession(g){Bg(await e.call(Hg,"adopt-session",{sessionId:g}))},async forgetSession(g){await f("forget-session",{sessionId:g},p=>({...p,runs:p.runs.map(h=>{if(h.sessionId!==g)return h;let{sessionId:y,...x}=h;return x})}))},async forgetAutomationSessions(g){await f("forget-automation-sessions",{automationId:g},p=>({...p,runs:p.runs.map(h=>{if(h.automationId!==g)return h;let{sessionId:y,...x}=h;return x})}))}}}var ZO=require("react");var En=require("react/jsx-runtime"),YO=[["created","desc"],["created","asc"],["planned","asc"],["planned","desc"]];function Vg({t:e,storage:t,storageKey:o,sortKey:n,sortDirection:r,onSelect:i,iconOnly:s=!1,className:a}){let[c,l]=(0,ZO.useState)(()=>Gi(t,o)),d=e(n==="planned"?`sort.planned.${r}`:`sort.created.${r}`),u=c?.key===n&&c.direction===r,m=()=>{t===void 0||u||(SC(t,o,n,r),l({key:n,direction:r}))},f=[...YO.map(([g,p])=>({key:`${g}-${p}`,label:e(g==="planned"?`sort.planned.${p}`:`sort.created.${p}`),onClick:()=>i(g,p)})),...t===void 0?[]:[{type:"divider"},{key:"default",label:e(u?"sort.default.saved":"sort.default.save"),disabled:u,onClick:m}]];return s?(0,En.jsx)(Rn,{children:(0,En.jsx)("span",{className:a,children:(0,En.jsx)(dc,{menu:{selectable:!0,selectedKeys:[`${n}-${r}`],items:f},children:(0,En.jsx)(ho,{type:"text",shape:"default","aria-label":d,icon:(0,En.jsx)(n3,{})})})})}):(0,En.jsx)(Rn,{children:(0,En.jsx)(gn,{className:a??"dsh-st-sort-select",value:`${n}-${r}`,popupMatchSelectWidth:!1,options:YO.map(([g,p])=>({value:`${g}-${p}`,label:e(g==="planned"?`sort.planned.${p}`:`sort.created.${p}`)})),onChange:g=>{let[p,h]=String(g).split("-");i(p,h)},...t===void 0?{}:{popupRender:g=>(0,En.jsxs)(En.Fragment,{children:[g,(0,En.jsx)("button",{type:"button",className:"dsh-st-sort-default",disabled:u,onMouseDown:p=>p.preventDefault(),onClick:m,children:e(u?"sort.default.saved":"sort.default.save")})]})}})})}function n3(){return(0,En.jsx)("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:(0,En.jsx)("path",{d:"M4.5 3v10M4.5 3 2.5 5.2M4.5 3l2 2.2M11.5 13V3M11.5 13l-2-2.2M11.5 13l2-2.2",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})}var Wg="dsh-automation:open-task-settings",FS="dsh-automation:pending-task-settings";function zS(e){if(typeof e!="object"||e===null)return;let t=e;if(!(typeof t.name!="string"||t.name.trim()===""||!Array.isArray(t.sessionIds)||t.sessionIds.some(o=>typeof o!="string"))&&!(t.automationId!==void 0&&(typeof t.automationId!="string"||t.automationId.trim()==="")))return{...typeof t.automationId=="string"?{automationId:t.automationId}:{},name:t.name,sessionIds:[...t.sessionIds]}}function r3(e,t){try{e?.setItem(FS,JSON.stringify(t))}catch{}}function BS(e){typeof window>"u"||(r3(window.sessionStorage,e),window.dispatchEvent(new CustomEvent(Wg,{detail:e})))}function QO(e){if(e!==void 0)try{let t=e.getItem(FS);return t===null?void 0:zS(JSON.parse(t))}catch{return}}function JO(e){try{e?.removeItem(FS)}catch{}}function eA(e,t,o){if(e.automationId!==void 0){let a=t.find(c=>c.id===e.automationId);if(a!==void 0)return a}let n=new Set(e.sessionIds),r=o.find(a=>a.sessionId!==void 0&&n.has(a.sessionId))?.automationId,i=t.find(a=>a.id===r);if(i!==void 0)return i;let s=t.filter(a=>a.name===e.name);return s.length===1?s[0]:void 0}var xe=require("react/jsx-runtime");var jg=typeof window>"u"?void 0:window.localStorage,tA=typeof window>"u"?void 0:window.sessionStorage,i3=[{name:"\u6BCF\u65E5\u56DE\u5F52\u68C0\u67E5",scheduleKind:"daily",time:"09:00",weekdays:[1,2,3,4,5]},{name:"\u6BCF\u5468\u4F9D\u8D56\u5DE1\u68C0",scheduleKind:"weekly",time:"10:00",weekdays:[1]},{name:"\u5DE5\u4F5C\u65E5\u65E9\u62A5",scheduleKind:"weekly",time:"08:00",weekdays:[1,2,3,4,5]}];function oA({t:e,permissionT:t,modelT:o,runtime:n,closeSettings:r}){let i=(0,yo.useSyncExternalStore)(n.source.subscribe,n.source.getSnapshot,n.source.getSnapshot),[s,a]=(0,yo.useState)("mine"),[c,l]=(0,yo.useState)(""),[d,u]=(0,yo.useState)(!1),[m,f]=(0,yo.useState)(),[g,p]=(0,yo.useState)(),[h,y]=(0,yo.useState)(),[x,b]=(0,yo.useState)(!1),[S,v]=(0,yo.useState)(),[C,R]=(0,yo.useState)("day"),[w,I]=(0,yo.useState)("all"),[P,N]=(0,yo.useState)("all"),[E,O]=(0,yo.useState)(()=>Gi(jg,fu)?.key??"created"),[L,k]=(0,yo.useState)(()=>Gi(jg,fu)?.direction??"desc"),[z,_]=(0,yo.useState)(()=>QO(tA)),T=(0,yo.useMemo)(()=>new Date(i.snapshot?.serverNow??Date.now()),[i.snapshot?.serverNow,i.refreshedAt]),D=i.snapshot,F=D?.workspaces??[],G=D?.models??[],H=D?.permissions??[],W=D?.defaultPermission??"",X=pu((D?.automations??[]).filter(V=>c.trim()===""||`${V.name} ${V.prompt}`.toLowerCase().includes(c.trim().toLowerCase())),E,L),B=(D?.runs??[]).filter(V=>!(w!=="all"&&V.automationId!==w||P!=="all"&&V.status!==P)),j=CC(B,C,T,e),U=async V=>{b(!0),v(void 0);try{await V()}catch(A){v(A instanceof nn?e(A.key):_S(A)?e("error.offline"):A instanceof Error?A.message:e("error.action"))}finally{b(!1)}},Z=()=>{u(!1),y(void 0),f(void 0)},Y=V=>{W===""||H.length===0||(f(void 0),y(V),u(!0))},K=V=>{f(V.id),y(wC(V,F,D?.defaultModel??null,D?.defaultPermission??V.permission)),u(!0)};return(0,yo.useEffect)(()=>{if(typeof window>"u")return;let V=A=>{let ee=zS(A.detail);ee!==void 0&&_(ee)};return window.addEventListener(Wg,V),()=>{window.removeEventListener(Wg,V)}},[]),(0,yo.useEffect)(()=>{if(z===void 0||D===void 0)return;let V=eA(z,D.automations,D.runs);if(JO(tA),_(void 0),a("mine"),l(""),V===void 0){v(e("error.taskMissing"));return}K(V)},[D,z,e]),(0,xe.jsx)(Rn,{children:(0,xe.jsxs)("div",{className:"dsh-st-shell",children:[(0,xe.jsxs)("header",{className:"dsh-st-top",children:[(0,xe.jsxs)("div",{className:"dsh-st-heading",children:[(0,xe.jsxs)("div",{className:"dsh-st-heading-row",children:[(0,xe.jsx)("h1",{children:e("tab")}),(0,xe.jsxs)("div",{className:"dsh-st-heading-links",children:[(0,xe.jsx)(ho,{size:"small",shape:"default",href:"https://github.com/MichengAI/dsh-automation",target:"_blank",rel:"noreferrer","aria-label":e("header.githubProject"),icon:(0,xe.jsx)(a0,{}),children:e("header.githubProject")}),(0,xe.jsx)(ho,{size:"small",shape:"default",href:"https://github.com/MichengAI/dsh-automation/issues",target:"_blank",rel:"noreferrer","aria-label":e("header.githubFeedback"),icon:(0,xe.jsx)(oC,{}),children:e("header.githubFeedback")})]})]}),(0,xe.jsx)("p",{children:e("header.lead")})]}),(0,xe.jsxs)("div",{className:"dsh-st-toolbar",children:[(0,xe.jsx)(Ui,{className:"dsh-st-search",allowClear:!0,value:c,placeholder:e("search.placeholder"),onChange:V=>l(V.target.value)}),(0,xe.jsx)(ho,{icon:(0,xe.jsx)(s0,{}),onClick:()=>{HO(e("chat.prompt")),r?.()},children:e("action.chatCreate")}),(0,xe.jsx)(ho,{type:"primary",icon:(0,xe.jsx)(e0,{}),disabled:W===""||H.length===0,onClick:()=>Y(),children:e("action.create")}),(0,xe.jsx)(ho,{icon:(0,xe.jsx)(t0,{}),"aria-label":e("section.refresh"),onClick:()=>{n.refresh()}})]})]}),(0,xe.jsx)("div",{className:"dsh-st-banner",role:"note",children:(0,xe.jsxs)("span",{children:[(0,xe.jsx)(i0,{}),e("banner.wake")]})}),(0,xe.jsxs)("section",{className:"dsh-st-examples",children:[(0,xe.jsx)("div",{className:"dsh-st-examples-head",children:(0,xe.jsx)("h2",{children:e("examples.title")})}),(0,xe.jsx)("div",{className:"dsh-st-example-row",children:i3.map((V,A)=>(0,xe.jsxs)("button",{type:"button",className:"dsh-st-example",disabled:W===""||H.length===0,onClick:()=>Y({name:e(`examples.${A+1}.title`),prompt:e(`examples.${A+1}.body`),scheduleKind:V.scheduleKind,time:V.time,weekdays:V.weekdays}),children:[(0,xe.jsx)("strong",{children:e(`examples.${A+1}.title`)}),(0,xe.jsx)("p",{children:e(`examples.${A+1}.body`)}),(0,xe.jsxs)("span",{className:"dsh-st-chip",children:[(0,xe.jsx)(yc,{}),e(`examples.${A+1}.chip`)]})]},V.name))})]}),S!==void 0&&(0,xe.jsx)("p",{className:"dsh-st-error",children:S}),(i.phase==="idle"||i.phase==="loading"&&D===void 0)&&(0,xe.jsx)("p",{className:"dsh-st-muted",children:e("loading")}),i.phase==="error"&&D===void 0&&(0,xe.jsxs)("div",{className:"dsh-st-empty",children:[(0,xe.jsx)("h3",{children:e("error.title")}),(0,xe.jsx)("p",{children:i.error}),(0,xe.jsx)(ho,{type:"primary",onClick:()=>{n.refresh()},children:e("error.retry")})]}),(0,xe.jsxs)("div",{className:"dsh-st-tabs",children:[(0,xe.jsx)(AO,{className:"dsh-st-settings-tabs",activeKey:s,onChange:V=>a(V),items:[{key:"mine",label:e("tabs.mine")},{key:"runs",label:e("tabs.runs")}],styles:{header:{margin:0,height:40},item:{height:40,padding:0,display:"flex",alignItems:"center"},body:{display:"none"},content:{display:"none"}}}),s==="mine"&&(0,xe.jsx)("div",{className:"dsh-st-sort-wrap",children:(0,xe.jsx)(Vg,{t:e,...jg===void 0?{}:{storage:jg},storageKey:fu,sortKey:E,sortDirection:L,onSelect:(V,A)=>{O(V),k(A)}})}),s==="runs"&&(0,xe.jsxs)("div",{className:"dsh-st-filters",children:[(0,xe.jsx)(gn,{className:"dsh-st-filter-range",value:C,popupMatchSelectWidth:!1,options:["day","week","month"].map(V=>({value:V,label:e(`history.range.${V}`)})),onChange:R}),(0,xe.jsx)(gn,{className:"dsh-st-filter-task",value:w,popupMatchSelectWidth:!1,options:[{value:"all",label:e("history.allTasks")},...(D?.automations??[]).map(V=>({value:V.id,label:V.name}))],onChange:I}),(0,xe.jsx)(gn,{className:"dsh-st-filter-status",value:P,popupMatchSelectWidth:!1,options:[{value:"all",label:e("history.allStatus")},...vC.map(V=>({value:V,label:e(`status.${V}`)}))],onChange:V=>N(V)})]})]}),s==="mine"&&(X.length===0?(0,xe.jsxs)("div",{className:"dsh-st-empty",children:[(0,xe.jsx)("h3",{children:e("empty.title")}),(0,xe.jsx)("p",{children:e("empty.body")})]}):(0,xe.jsx)("div",{className:"dsh-st-grid",children:X.map(V=>(0,xe.jsx)(s3,{item:V,t:e,now:T,busy:x,onEdit:()=>K(V),onToggle:()=>{U(()=>n.mutateAutomation(V.id,yu(V.status)))},onRun:()=>{U(()=>n.runNow(V.id))},onDelete:()=>p(V)},V.id))})),s==="runs"&&(j.length===0?(0,xe.jsx)("div",{className:"dsh-st-empty",children:e("runs.empty")}):(0,xe.jsx)("div",{className:"dsh-st-timeline",children:j.map(V=>(0,xe.jsxs)("section",{className:"dsh-st-group",children:[(0,xe.jsx)("h3",{children:V.label}),V.items.map(A=>(0,xe.jsx)(a3,{run:A,t:e},A.id))]},V.key))})),d&&(0,xe.jsx)(FO,{t:e,permissionT:t,modelT:o,busy:x,workspaces:F,models:G,modelFailures:D?.modelFailures??[],defaultModel:D?.defaultModel??null,skills:D?.skills??[],permissions:H,defaultPermission:W,editing:m!==void 0,...h===void 0?{}:{draft:h},onClose:Z,onSubmit:async V=>{let A=hC(V,F,G,new Date,{allowPastOnce:m!==void 0});await U(async()=>{m===void 0?await n.createAutomation(A):await n.updateAutomation(m,A),Z()})}},m??"create"),(0,xe.jsx)(BO,{target:g,t:e,busy:x,onCancel:()=>p(void 0),onConfirm:()=>{let V=g;V!==void 0&&U(async()=>{await n.mutateAutomation(V.id,"delete"),p(void 0)})}})]})})}function s3({item:e,t,now:o,busy:n,onEdit:r,onToggle:i,onRun:s,onDelete:a}){return(0,xe.jsxs)("article",{className:"dsh-st-card",onClick:r,children:[(0,xe.jsxs)("div",{className:"dsh-st-card-head",children:[(0,xe.jsx)("span",{onClick:c=>c.stopPropagation(),children:(0,xe.jsx)(zg,{checked:e.status==="active",disabled:n,"aria-label":e.status==="active"?t("card.pause"):t("card.resume"),onChange:()=>i()})}),(0,xe.jsx)("span",{onClick:c=>c.stopPropagation(),children:(0,xe.jsx)(dc,{menu:{items:[{key:"run",label:t("menu.run"),disabled:n,onClick:s},{key:"edit",label:t("menu.edit"),disabled:n,onClick:r},{key:"delete",label:t("menu.delete"),danger:!0,disabled:n,onClick:a}]},children:(0,xe.jsx)(ho,{type:"text","aria-label":t("card.more"),icon:(0,xe.jsx)(r0,{width:16,height:16})})})})]}),(0,xe.jsx)("h3",{children:e.name}),(0,xe.jsx)("p",{children:e.prompt}),(0,xe.jsxs)("div",{className:"dsh-st-card-foot",children:[(0,xe.jsxs)("span",{className:"dsh-st-chip",children:[(0,xe.jsx)(yc,{}),uu(e.schedule,t)]}),(0,xe.jsx)("span",{children:e.nextRunAt===void 0?t("stats.noneScheduled"):t("history.nextApprox",{when:mu(e.nextRunAt,o,t)})})]})]})}function a3({run:e,t}){let o=bC(e.startedAt,e.finishedAt);return(0,xe.jsxs)("article",{className:`dsh-st-run is-${e.status}`,children:[(0,xe.jsx)("strong",{children:e.automationName}),(0,xe.jsxs)("p",{children:[(0,xe.jsx)("span",{children:xC(e.startedAt??e.scheduledFor)}),o!==void 0&&(0,xe.jsx)("span",{children:o}),(0,xe.jsx)("span",{children:mC(e.trigger,t)})]})]})}var uc="dsh-automation",nA={tab:"Scheduled tasks","sidebar.tab":"Scheduled","sidebar.tabs":"Workspace views","sidebar.tasksTab":"Tasks","sidebar.channelsTab":"Channels","sidebar.views":"Scheduled views","sidebar.viewOverview":"Task overview","sidebar.empty":"No scheduled runs yet.","sidebar.tasksEmpty":"No web tasks yet.","sidebar.ungrouped":"Ungrouped","sidebar.section":"Scheduled","sidebar.workspaces":"Workspaces","sidebar.search":"Search","sidebar.sessions":"Sessions","sidebar.searchSessions":"Search session names","sidebar.clearSearch":"Clear search","sidebar.filter":"View options","sidebar.groupBy":"Group by","sidebar.groupWorkspace":"WorkSpace","sidebar.groupWorkspaceTree":"Workspace Tree","sidebar.groupList":"In one list","sidebar.sortBy":"Order by","sidebar.sortManual":"Manual","sidebar.sortTime":"Last updated","sidebar.filterBy":"Filter sessions","sidebar.showArchived":"Show archived","sidebar.onlyArchived":"Archived only","header.lead":"Plan automatic tasks, or trigger them by hand. Describe the recurring work in any chat to create it quickly.","header.githubProject":"GitHub","header.githubFeedback":"Issues","examples.title":"Recommended examples","examples.1.title":"Daily regression check","examples.1.body":"Create a scheduled task that runs every day and inspects new test failures.","examples.1.chip":"Every day 09:00","examples.2.title":"Weekly dependency review","examples.2.body":"Create a scheduled task that runs every Monday and reports outdated or risky dependencies.","examples.2.chip":"Monday 10:00","examples.3.title":"Weekday morning briefing","examples.3.body":"Create a scheduled task that runs on weekdays and summarizes overnight changes.","examples.3.chip":"Weekdays 08:00","chat.hint":"In any conversation, describe the recurring work and ask the Agent to call automation_create.","chat.prompt":"I want to create a scheduled task that runs every [interval] and does [the actual task]","menu.run":"Run task","menu.edit":"Edit task","menu.delete":"Delete task","session.rename":"Rename","session.fork":"Fork session","session.archive":"Archive session","session.unarchive":"Restore","session.moreActions":"More actions for {title}","session.groupActions":"Actions for {name}","session.taskSettings":"Task settings","session.archiveGroup":"Archive all conversations","session.archiveGroupConfirm":"Archive all","session.archiveGroupDescription":"Archive all {count} conversations for \u201C{name}\u201D. Choose Filter \u2192 Show archived to restore them.","session.archiveGroupPending":"Archiving conversations\u2026","session.archiveGroupFailed":"Some conversations could not be archived: {message}","session.archiveGroupClose":"Close","session.archiveGroupCancel":"Cancel","session.deleteSession":"Delete session","session.deleteSessionConfirm":"Delete session","session.deleteSessionDescription":"This permanently deletes session \u201C{name}\u201D, its child agents (including any that are still running), and all of its records (conversation, stats, cache). This cannot be undone.","session.deleteSessionPending":"Deleting session\u2026","session.deleteSessionFailed":"Could not delete the session: {message}","session.deleteSessionClose":"Close","session.deleteSessionCancel":"Cancel","session.idle":"Idle","session.runningStatus":"Running","session.completed":"Completed","session.waitingApproval":"Waiting for approval","session.planReview":"Plan to review","session.waitingAnswer":"Waiting for an answer","session.subagentsRunning":"{count} subagents running","session.archived":"Archived","session.delete":"Remove from Scheduled","session.deleteFolder":"Remove folder","session.confirmDeleteFolder":"Remove this folder from Scheduled?","session.confirmDeleteFolderHint":'This only unlists {count} session(s) in "{name}" from Scheduled. Host sessions are not deleted and they stay hidden from Tasks.',"session.confirmDeleteFolderAction":"Remove from Scheduled","history.range.day":"By day","history.range.week":"By week","history.range.month":"By month","history.allTasks":"All tasks","history.allStatus":"All statuses","history.today":"Today","history.yesterday":"Yesterday","history.date":"{date}","history.week":"Week of {date}","history.month":"{month}","history.nextApprox":"Next run in about {when}","time.withinMinute":"about {count} minutes","time.withinHour":"about {count} hours","time.withinDay":"about {count} days","search.placeholder":"Search scheduled tasks...","action.chatCreate":"Create in chat","action.create":"New scheduled task","banner.wake":"Scheduled tasks run only while this computer stays awake.","tabs.mine":"My tasks","tabs.runs":"Run history","sort.by":"Sort","sort.created.asc":"Created time ascending","sort.created.desc":"Created time descending","sort.planned.asc":"Planned time ascending","sort.planned.desc":"Planned time descending","sort.default.save":"Set as default","sort.default.saved":"Default","form.workspace":"Workspace","form.workspacePath":"Folder path","form.workspacePathPlaceholder":"D:\\work\\project","form.model":"Model","form.modelSelect":"Select model","form.effort":"Reasoning","form.effort.none":"Default","form.effort.low":"Low","form.effort.medium":"Medium","form.effort.high":"High","form.error.workspace":"Select a workspace.","modal.title":"New scheduled task","modal.edit":"Edit scheduled task","modal.save":"Save","header.eyebrow":"Unattended coding work","header.title":"Automations","header.subtitle":"Schedule standalone, auditable Agent runs for this workspace.","header.create":"New automation","header.closeCreate":"Hide form","scope.workspace":"Workspace","scope.folder":"Working directory","stats.total":"All","stats.active":"Active","stats.next":"Next run","stats.attention":"Needs attention","stats.noneScheduled":"None scheduled","stats.noAttention":"All clear","section.automations":"Workspace automations","section.automationsHint":"Each trigger starts a fresh DSH Session and keeps its own audit record.","section.runs":"Recent runs","section.runsHint":"Latest outcomes for this workspace.","section.refresh":"Refresh","empty.title":"Let recurring coding work run itself","empty.body":"Save a self-contained task, a schedule, and a permission boundary. Every run starts in a new Session.","empty.action":"Create the first automation","runs.empty":"No runs yet. Run one now, or wait for the next scheduled occurrence.","overview.empty":"No scheduled tasks yet. Create one in Settings.","form.title":"Create automation","form.subtitle":"Write a complete, standalone task. Scheduled runs do not inherit this conversation.","form.name":"Name","form.namePlaceholder":"Daily regression triage","form.prompt":"Task prompt","form.promptPlaceholder":"Inspect new test failures, locate the regression, and propose a verified minimal fix\u2026","form.schedule":"Schedule","form.planTime":"Schedule","form.hourly":"Hourly","form.monthly":"Monthly","form.custom":"Custom","form.minutesShort":"min","form.daysShort":"days","form.monthDay":"Day {day} of month","form.skills":"Skills","form.skillsEmpty":"No skills available","schedule.hourlyAt":"Every hour at :{minute}","schedule.monthlyAt":"Monthly on day {day} \xB7 {time}","schedule.customAt":"Every {count} days \xB7 {time}","form.once":"Does not repeat","form.interval":"Interval","form.daily":"Daily","form.weekly":"Weekly","form.runAt":"Run at","form.every":"Every","form.minutes":"minutes","form.time":"Time","form.days":"Weekdays","form.timeZone":"Time zone","form.maxConcurrentRuns":"Concurrency","form.maxConcurrentRunsHint":"Queued and running executions share this limit. Defaults to 1; when full, scheduled triggers are skipped and manual runs are rejected.","form.error.maxConcurrentRuns":"Enter a positive whole number for concurrent runs.","form.permission":"Permission boundary","permission.readOnly":"Read Only","permission.workspaceWrite":"Workspace Write","permission.fullAccess":"Full access","form.cancel":"Cancel","form.submit":"Create automation","form.submitting":"Creating\u2026","form.error.name":"Enter a name.","form.error.prompt":"Enter a complete, standalone task prompt.","form.error.once":"Choose a valid future date and time.","form.error.interval":"The interval must be between 1 and 43,200 minutes.","form.error.weekdays":"Select at least one weekday.","day.1":"Mon","day.2":"Tue","day.3":"Wed","day.4":"Thu","day.5":"Fri","day.6":"Sat","day.7":"Sun","status.active":"Active","status.paused":"Paused","status.queued":"Queued","status.running":"Running","status.succeeded":"Succeeded","status.failed":"Failed","status.skipped":"Skipped","status.cancelled":"Cancelled","status.interrupted":"Interrupted","card.nextRun":"Next","card.lastRun":"Last","card.never":"Not yet run","schedule.onceAt":"Once \xB7 {time}","schedule.everyMinutes":"Every {count} minutes","schedule.dailyAt":"Daily \xB7 {time}","schedule.weeklyAt":"{days} \xB7 {time}","card.pause":"Pause","card.resume":"Resume","card.runNow":"Run now","card.more":"More actions","card.delete":"Delete","card.confirmDelete":"Delete this automation?","card.confirmDeleteHint":"Run history is kept for audit.","card.confirm":"Delete","card.cancel":"Cancel","run.trigger.schedule":"Scheduled","run.trigger.manual":"Manual","run.openSession":"Session {id}","run.markRead":"Mark reviewed",loading:"Loading automations\u2026","error.title":"Automations could not be loaded","error.retry":"Try again","error.action":"The action failed. Please try again.","error.taskMissing":"This scheduled task no longer exists.","error.offline":"Could not reach the local automation service. Check that DSH is still running and try again.","time.minutes":"{count}m","time.hours":"{count}h","time.days":"{count}d","time.months":"{count}mo","time.years":"{count}y","time.ago":"{text} ago","time.now":"now","session.copy":"Copy","session.copied":"Copied","session.compactApproval":"Approval","session.compactPlan":"Plan review","session.compactAnswer":"Answer","time.minuteAgo":"{count}m ago","time.hourAgo":"{count}h ago","time.dayAgo":"{count}d ago","time.inMinute":"in {count}m","time.inHour":"in {count}h","time.inDay":"in {count}d"},rA={tab:"\u5B9A\u65F6\u4EFB\u52A1","sidebar.tab":"\u5B9A\u65F6","sidebar.tabs":"\u5DE5\u4F5C\u533A\u5206\u7C7B","sidebar.tasksTab":"\u4EFB\u52A1","sidebar.channelsTab":"\u9891\u9053","sidebar.views":"\u5B9A\u65F6\u9875\u89C6\u56FE","sidebar.viewOverview":"\u4EFB\u52A1\u603B\u89C8","sidebar.empty":"\u8FD8\u6CA1\u6709\u5B9A\u65F6\u4EFB\u52A1\u6267\u884C\u8BB0\u5F55\u3002","sidebar.tasksEmpty":"\u6682\u65E0\u7F51\u9875\u4EFB\u52A1","sidebar.ungrouped":"\u672A\u5206\u7EC4","sidebar.section":"\u5B9A\u65F6\u4EFB\u52A1","sidebar.workspaces":"\u5DE5\u4F5C\u533A","sidebar.search":"\u641C\u7D22","sidebar.sessions":"\u4F1A\u8BDD","sidebar.searchSessions":"\u641C\u7D22\u4F1A\u8BDD\u540D\u79F0","sidebar.clearSearch":"\u6E05\u9664\u641C\u7D22","sidebar.filter":"\u89C6\u56FE\u9009\u9879","sidebar.groupBy":"\u5206\u7EC4\u65B9\u5F0F","sidebar.groupWorkspace":"\u6309\u5DE5\u4F5C\u533A","sidebar.groupWorkspaceTree":"\u6309\u5DE5\u4F5C\u533A\u6811","sidebar.groupList":"\u5355\u5217\u8868","sidebar.sortBy":"\u6392\u5E8F\u65B9\u5F0F","sidebar.sortManual":"\u624B\u52A8\u6392\u5E8F","sidebar.sortTime":"\u6700\u8FD1\u66F4\u65B0","sidebar.filterBy":"\u7B5B\u9009\u4F1A\u8BDD","sidebar.showArchived":"\u663E\u793A\u5DF2\u5F52\u6863","sidebar.onlyArchived":"\u4EC5\u663E\u793A\u5DF2\u5F52\u6863","header.lead":"\u6309\u8BA1\u5212\u81EA\u52A8\u6267\u884C\u4EFB\u52A1\uFF0C\u4E5F\u53EF\u968F\u65F6\u624B\u52A8\u89E6\u53D1\u3002\u5728\u4EFB\u610F\u5BF9\u8BDD\u4E2D\u63CF\u8FF0\u4F60\u60F3\u5B9A\u671F\u505A\u7684\u4E8B\uFF0C\u5373\u53EF\u5FEB\u901F\u521B\u5EFA","header.githubProject":"GitHub","header.githubFeedback":"\u95EE\u9898\u53CD\u9988","examples.title":"\u63A8\u8350\u6848\u4F8B","examples.1.title":"\u6BCF\u65E5\u56DE\u5F52\u68C0\u67E5","examples.1.body":"\u6211\u8981\u521B\u5EFA\u4E00\u4E2A\u5B9A\u65F6\u4EFB\u52A1\uFF0C\u6BCF\u3010\u5929\u3011\u6267\u884C\u3010\u68C0\u67E5\u65B0\u589E\u6D4B\u8BD5\u5931\u8D25\u5E76\u7ED9\u51FA\u6700\u5C0F\u4FEE\u590D\u3011\u3002","examples.1.chip":"\u6BCF\u5929 09:00","examples.2.title":"\u6BCF\u5468\u4F9D\u8D56\u5DE1\u68C0","examples.2.body":"\u6211\u8981\u521B\u5EFA\u4E00\u4E2A\u5B9A\u65F6\u4EFB\u52A1\uFF0C\u6BCF\u3010\u5468\u4E00\u3011\u6267\u884C\u3010\u68C0\u67E5\u8FC7\u671F\u6216\u6709\u98CE\u9669\u7684\u4F9D\u8D56\u5E76\u7ED9\u51FA\u5904\u7406\u5EFA\u8BAE\u3011\u3002","examples.2.chip":"\u6BCF\u5468\u4E00 10:00","examples.3.title":"\u5DE5\u4F5C\u65E5\u65E9\u62A5","examples.3.body":"\u6211\u8981\u521B\u5EFA\u4E00\u4E2A\u5B9A\u65F6\u4EFB\u52A1\uFF0C\u6BCF\u3010\u5DE5\u4F5C\u65E5\u3011\u6267\u884C\u3010\u6C47\u603B\u6628\u591C\u4ED3\u5E93\u53D8\u66F4\u5E76\u7ED9\u51FA\u4ECA\u65E5\u5173\u6CE8\u70B9\u3011\u3002","examples.3.chip":"\u5DE5\u4F5C\u65E5 08:00","chat.hint":"\u5728\u4EFB\u610F\u5BF9\u8BDD\u4E2D\u63CF\u8FF0\u4F60\u60F3\u5B9A\u671F\u505A\u7684\u4E8B\uFF0C\u5E76\u8BA9 Agent \u8C03\u7528 automation_create\u3002","chat.prompt":"\u6211\u8981\u521B\u5EFA\u4E00\u4E2A\u5B9A\u65F6\u4EFB\u52A1\uFF0C\u6BCF\u3010\u65F6\u95F4\u95F4\u9694\u3011\u6267\u884C\u3010\u5177\u4F53\u4EFB\u52A1\u3011","menu.run":"\u6267\u884C\u4EFB\u52A1","menu.edit":"\u7F16\u8F91\u4EFB\u52A1","menu.delete":"\u5220\u9664\u4EFB\u52A1","session.rename":"\u91CD\u547D\u540D","session.fork":"\u5206\u53C9\u4F1A\u8BDD","session.archive":"\u5F52\u6863\u4F1A\u8BDD","session.unarchive":"\u6062\u590D","session.moreActions":"\u201C{title}\u201D\u7684\u66F4\u591A\u64CD\u4F5C","session.groupActions":"\u201C{name}\u201D\u7684\u4EFB\u52A1\u64CD\u4F5C","session.taskSettings":"\u4EFB\u52A1\u8BBE\u7F6E","session.archiveGroup":"\u5F52\u6863\u6574\u7EC4\u4F1A\u8BDD","session.archiveGroupConfirm":"\u786E\u8BA4\u5F52\u6863","session.archiveGroupDescription":"\u5C06\u5F52\u6863\u201C{name}\u201D\u4E0B\u7684 {count} \u4E2A\u4F1A\u8BDD\u3002\u53EF\u5728\u7B5B\u9009\u4E2D\u9009\u62E9\u201C\u663E\u793A\u5DF2\u5F52\u6863\u201D\u540E\u6062\u590D\u3002","session.archiveGroupPending":"\u6B63\u5728\u5F52\u6863\u6574\u7EC4\u4F1A\u8BDD\u2026","session.archiveGroupFailed":"\u90E8\u5206\u4F1A\u8BDD\u5F52\u6863\u5931\u8D25\uFF1A{message}","session.archiveGroupClose":"\u5173\u95ED","session.archiveGroupCancel":"\u53D6\u6D88","session.deleteSession":"\u5220\u9664\u4F1A\u8BDD","session.deleteSessionConfirm":"\u5220\u9664\u4F1A\u8BDD","session.deleteSessionDescription":"\u5C06\u6C38\u4E45\u5220\u9664\u4F1A\u8BDD\u201C{name}\u201D\u53CA\u5176\u5B50\u4EE3\u7406\uFF08\u542B\u6B63\u5728\u8FD0\u884C\u7684\uFF09\u548C\u5168\u90E8\u8BB0\u5F55\uFF08\u5BF9\u8BDD\u5185\u5BB9\u3001\u7EDF\u8BA1\u3001\u7F13\u5B58\uFF09\uFF0C\u6B64\u64CD\u4F5C\u4E0D\u53EF\u6062\u590D\u3002","session.deleteSessionPending":"\u6B63\u5728\u5220\u9664\u4F1A\u8BDD\u2026","session.deleteSessionFailed":"\u5220\u9664\u4F1A\u8BDD\u5931\u8D25\uFF1A{message}","session.deleteSessionClose":"\u5173\u95ED","session.deleteSessionCancel":"\u53D6\u6D88","session.idle":"\u7A7A\u95F2","session.runningStatus":"\u8FDB\u884C\u4E2D","session.completed":"\u5DF2\u5B8C\u6210","session.waitingApproval":"\u7B49\u5F85\u5BA1\u6279","session.planReview":"\u8BA1\u5212\u5F85\u5BA1","session.waitingAnswer":"\u7B49\u5F85\u56DE\u7B54","session.subagentsRunning":"{count} \u4E2A\u5B50\u4EE3\u7406\u8FD0\u884C\u4E2D","session.archived":"\u5DF2\u5F52\u6863","session.delete":"\u4ECE\u5B9A\u65F6\u9875\u79FB\u9664","session.deleteFolder":"\u4ECE\u5B9A\u65F6\u9875\u79FB\u9664\u6587\u4EF6\u5939","session.confirmDeleteFolder":"\u4ECE\u5B9A\u65F6\u9875\u79FB\u9664\u8FD9\u4E2A\u6587\u4EF6\u5939\uFF1F","session.confirmDeleteFolderHint":"\u53EA\u4F1A\u628A\u300C{name}\u300D\u4E0B\u7684 {count} \u6761\u4F1A\u8BDD\u4ECE\u5B9A\u65F6\u9875\u6458\u6389\uFF0C\u4E0D\u4F1A\u5220\u9664\u5BBF\u4E3B Session\u3002\u4EFB\u52A1\u9875\u672C\u6765\u4E5F\u4E0D\u5C55\u793A\u8FD9\u4E9B\u81EA\u52A8\u5316\u4F1A\u8BDD\u3002","session.confirmDeleteFolderAction":"\u4ECE\u5B9A\u65F6\u9875\u79FB\u9664","history.range.day":"\u6309\u5929","history.range.week":"\u6309\u5468","history.range.month":"\u6309\u6708","history.allTasks":"\u5168\u90E8\u4EFB\u52A1","history.allStatus":"\u5168\u90E8\u72B6\u6001","history.today":"\u4ECA\u5929","history.yesterday":"\u6628\u5929","history.date":"{date}","history.week":"{date} \u5F53\u5468","history.month":"{month}","history.nextApprox":"\u4E0B\u6B21\u6267\u884C \u5927\u7EA6 {when}","time.withinMinute":"{count} \u5206\u949F\u5185","time.withinHour":"{count} \u5C0F\u65F6\u5185","time.withinDay":"{count} \u5929\u5185","search.placeholder":"\u641C\u7D22\u5B9A\u65F6\u4EFB\u52A1...","action.chatCreate":"\u901A\u8FC7\u5BF9\u8BDD\u521B\u5EFA","action.create":"\u65B0\u5EFA\u5B9A\u65F6\u4EFB\u52A1","banner.wake":"\u5B9A\u65F6\u4EFB\u52A1\u4EC5\u5728\u7535\u8111\u4FDD\u6301\u5524\u9192\u65F6\u8FD0\u884C","tabs.mine":"\u6211\u7684\u5B9A\u65F6\u4EFB\u52A1","tabs.runs":"\u6267\u884C\u8BB0\u5F55","sort.by":"\u6392\u5E8F","sort.created.asc":"\u6309\u521B\u5EFA\u65F6\u95F4\u5347\u5E8F","sort.created.desc":"\u6309\u521B\u5EFA\u65F6\u95F4\u5012\u5E8F","sort.planned.asc":"\u6309\u8BA1\u5212\u65F6\u95F4\u5347\u5E8F","sort.planned.desc":"\u6309\u8BA1\u5212\u65F6\u95F4\u5012\u5E8F","sort.default.save":"\u8BBE\u4E3A\u9ED8\u8BA4","sort.default.saved":"\u9ED8\u8BA4","form.workspace":"\u5DE5\u4F5C\u76EE\u5F55","form.workspacePath":"\u76EE\u5F55\u8DEF\u5F84","form.workspacePathPlaceholder":"D:\\work\\project","form.model":"\u6A21\u578B","form.modelSelect":"\u9009\u62E9\u6A21\u578B","form.effort":"\u63A8\u7406\u7B49\u7EA7","form.effort.none":"\u9ED8\u8BA4","form.effort.low":"Low","form.effort.medium":"Medium","form.effort.high":"High","form.error.workspace":"\u8BF7\u9009\u62E9\u5DE5\u4F5C\u533A\u3002","modal.title":"\u65B0\u5EFA\u5B9A\u65F6\u4EFB\u52A1","modal.edit":"\u7F16\u8F91\u5B9A\u65F6\u4EFB\u52A1","modal.save":"\u4FDD\u5B58","header.eyebrow":"\u81EA\u4E3B\u7F16\u7801\u4EFB\u52A1","header.title":"\u81EA\u52A8\u5316","header.subtitle":"\u4E3A\u5F53\u524D\u5DE5\u4F5C\u533A\u5B89\u6392\u72EC\u7ACB\u3001\u53EF\u5BA1\u8BA1\u7684 Agent \u8FD0\u884C\u3002","header.create":"\u65B0\u5EFA\u81EA\u52A8\u5316","header.closeCreate":"\u6536\u8D77\u8868\u5355","scope.workspace":"\u5DE5\u4F5C\u533A","scope.folder":"\u5DE5\u4F5C\u76EE\u5F55","stats.total":"\u5168\u90E8","stats.active":"\u5DF2\u542F\u7528","stats.next":"\u4E0B\u6B21\u8FD0\u884C","stats.attention":"\u9700\u8981\u5173\u6CE8","stats.noneScheduled":"\u6682\u65E0\u8BA1\u5212","stats.noAttention":"\u4E00\u5207\u6B63\u5E38","section.automations":"\u5DE5\u4F5C\u533A\u81EA\u52A8\u5316","section.automationsHint":"\u6BCF\u6B21\u89E6\u53D1\u90FD\u4F1A\u521B\u5EFA\u4E00\u4E2A\u5168\u65B0\u7684 DSH Session\uFF0C\u5E76\u4FDD\u7559\u72EC\u7ACB\u5BA1\u8BA1\u8BB0\u5F55\u3002","section.runs":"\u6700\u8FD1\u8FD0\u884C","section.runsHint":"\u5F53\u524D\u5DE5\u4F5C\u533A\u6700\u8FD1\u7684\u6267\u884C\u72B6\u6001\u3002","section.refresh":"\u5237\u65B0","empty.title":"\u8BA9\u91CD\u590D\u7684\u7F16\u7801\u5DE5\u4F5C\u81EA\u52A8\u8FD0\u884C","empty.body":"\u8BBE\u7F6E\u4E00\u4E2A\u76EE\u6807\u660E\u786E\u7684\u4EFB\u52A1\u3001\u8FD0\u884C\u65F6\u95F4\u548C\u6743\u9650\u8FB9\u754C\u3002\u6BCF\u6B21\u8FD0\u884C\u90FD\u4ECE\u5168\u65B0 Session \u5F00\u59CB\u3002","empty.action":"\u521B\u5EFA\u7B2C\u4E00\u4E2A\u81EA\u52A8\u5316","runs.empty":"\u8FD8\u6CA1\u6709\u8FD0\u884C\u8BB0\u5F55\u3002\u4F60\u53EF\u4EE5\u7ACB\u5373\u8FD0\u884C\u4E00\u6B21\uFF0C\u6216\u7B49\u5F85\u8BA1\u5212\u89E6\u53D1\u3002","overview.empty":"\u6682\u65E0\u5B9A\u65F6\u4EFB\u52A1\uFF0C\u53EF\u5230\u8BBE\u7F6E\u9875\u521B\u5EFA\u3002","form.title":"\u521B\u5EFA\u81EA\u52A8\u5316","form.subtitle":"\u8BF7\u5199\u5B8C\u6574\u3001\u72EC\u7ACB\u7684\u4EFB\u52A1\u8BF4\u660E\uFF1A\u5B9A\u65F6\u8FD0\u884C\u4E0D\u4F1A\u7EE7\u627F\u5F53\u524D\u5BF9\u8BDD\u3002","form.name":"\u540D\u79F0","form.namePlaceholder":"\u6BCF\u65E5\u56DE\u5F52\u6D4B\u8BD5\u5206\u8BCA","form.prompt":"\u4EFB\u52A1\u6307\u4EE4","form.promptPlaceholder":"\u68C0\u67E5\u65B0\u589E\u6D4B\u8BD5\u5931\u8D25\uFF0C\u5B9A\u4F4D\u56DE\u5F52\u539F\u56E0\uFF0C\u5E76\u7ED9\u51FA\u7ECF\u8FC7\u9A8C\u8BC1\u7684\u6700\u5C0F\u4FEE\u590D\u65B9\u6848\u2026\u2026","form.schedule":"\u8FD0\u884C\u8BA1\u5212","form.planTime":"\u8BA1\u5212\u65F6\u95F4","form.hourly":"\u6BCF\u5C0F\u65F6","form.monthly":"\u6BCF\u6708","form.custom":"\u81EA\u5B9A\u4E49","form.minutesShort":"\u5206","form.daysShort":"\u5929","form.monthDay":"\u6BCF\u6708\u7B2C {day} \u5929","form.skills":"\u6280\u80FD","form.skillsEmpty":"\u6682\u65E0\u53EF\u7528\u6280\u80FD","schedule.hourlyAt":"\u6BCF\u5C0F\u65F6 :{minute}","schedule.monthlyAt":"\u6BCF\u6708 {day} \u65E5 \xB7 {time}","schedule.customAt":"\u6BCF {count} \u5929 \xB7 {time}","form.once":"\u4E0D\u91CD\u590D","form.interval":"\u95F4\u9694","form.daily":"\u6BCF\u5929","form.weekly":"\u6BCF\u5468","form.runAt":"\u8FD0\u884C\u65F6\u95F4","form.every":"\u6BCF\u9694","form.minutes":"\u5206\u949F","form.time":"\u65F6\u95F4","form.days":"\u661F\u671F","form.timeZone":"\u65F6\u533A","form.maxConcurrentRuns":"\u5E76\u53D1\u6570\u91CF","form.maxConcurrentRunsHint":"\u540C\u4E00\u4EFB\u52A1\u7684\u6392\u961F\u53CA\u8FD0\u884C\u6B21\u6570\u5171\u7528\u6B64\u4E0A\u9650\uFF0C\u9ED8\u8BA4 1\uFF1B\u6EE1\u989D\u65F6\u8DF3\u8FC7\u5F53\u6B21\u5B9A\u65F6\u89E6\u53D1\uFF0C\u624B\u52A8\u8FD0\u884C\u5C06\u88AB\u62D2\u7EDD\u3002","form.error.maxConcurrentRuns":"\u5E76\u53D1\u6570\u91CF\u5FC5\u987B\u4E3A\u5927\u4E8E\u7B49\u4E8E 1 \u7684\u6574\u6570\u3002","form.permission":"\u6743\u9650\u8FB9\u754C","permission.readOnly":"\u53EA\u8BFB","permission.workspaceWrite":"\u5DE5\u4F5C\u533A\u5199\u5165","permission.fullAccess":"\u5B8C\u5168\u8BBF\u95EE","form.cancel":"\u53D6\u6D88","form.submit":"\u521B\u5EFA\u81EA\u52A8\u5316","form.submitting":"\u521B\u5EFA\u4E2D\u2026","form.error.name":"\u8BF7\u8F93\u5165\u540D\u79F0\u3002","form.error.prompt":"\u8BF7\u8F93\u5165\u5B8C\u6574\u3001\u72EC\u7ACB\u7684\u4EFB\u52A1\u6307\u4EE4\u3002","form.error.once":"\u8BF7\u9009\u62E9\u6709\u6548\u7684\u672A\u6765\u65E5\u671F\u548C\u65F6\u95F4\u3002","form.error.interval":"\u8FD0\u884C\u95F4\u9694\u5FC5\u987B\u5728 1 \u5230 43,200 \u5206\u949F\u4E4B\u95F4\u3002","form.error.weekdays":"\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u5929\u3002","day.1":"\u5468\u4E00","day.2":"\u5468\u4E8C","day.3":"\u5468\u4E09","day.4":"\u5468\u56DB","day.5":"\u5468\u4E94","day.6":"\u5468\u516D","day.7":"\u5468\u65E5","status.active":"\u5DF2\u542F\u7528","status.paused":"\u5DF2\u6682\u505C","status.queued":"\u6392\u961F\u4E2D","status.running":"\u8FD0\u884C\u4E2D","status.succeeded":"\u5DF2\u5B8C\u6210","status.failed":"\u5931\u8D25","status.skipped":"\u5DF2\u8DF3\u8FC7","status.cancelled":"\u5DF2\u53D6\u6D88","status.interrupted":"\u5DF2\u4E2D\u65AD","card.nextRun":"\u4E0B\u6B21","card.lastRun":"\u6700\u8FD1","card.never":"\u5C1A\u672A\u8FD0\u884C","schedule.onceAt":"\u5355\u6B21 \xB7 {time}","schedule.everyMinutes":"\u6BCF {count} \u5206\u949F","schedule.dailyAt":"\u6BCF\u5929 \xB7 {time}","schedule.weeklyAt":"{days} \xB7 {time}","card.pause":"\u6682\u505C","card.resume":"\u6062\u590D","card.runNow":"\u7ACB\u5373\u8FD0\u884C","card.more":"\u66F4\u591A\u64CD\u4F5C","card.delete":"\u5220\u9664","card.confirmDelete":"\u786E\u8BA4\u5220\u9664\u8FD9\u4E2A\u81EA\u52A8\u5316\uFF1F","card.confirmDeleteHint":"\u8FD0\u884C\u5386\u53F2\u4F1A\u4FDD\u7559\u7528\u4E8E\u5BA1\u8BA1\u3002","card.confirm":"\u786E\u8BA4\u5220\u9664","card.cancel":"\u53D6\u6D88","run.trigger.schedule":"\u5B9A\u65F6\u89E6\u53D1","run.trigger.manual":"\u624B\u52A8\u89E6\u53D1","run.openSession":"Session {id}","run.markRead":"\u6807\u8BB0\u5DF2\u5904\u7406",loading:"\u6B63\u5728\u52A0\u8F7D\u81EA\u52A8\u5316\u2026","error.title":"\u65E0\u6CD5\u52A0\u8F7D\u81EA\u52A8\u5316","error.retry":"\u91CD\u8BD5","error.action":"\u64CD\u4F5C\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\u3002","error.taskMissing":"\u8BE5\u5B9A\u65F6\u4EFB\u52A1\u5DF2\u4E0D\u5B58\u5728\u3002","error.offline":"\u65E0\u6CD5\u8FDE\u63A5\u672C\u673A\u81EA\u52A8\u5316\u670D\u52A1\uFF0C\u8BF7\u786E\u8BA4 DSH \u4ECD\u5728\u8FD0\u884C\u540E\u91CD\u8BD5\u3002","time.minutes":"{count}\u5206\u949F","time.hours":"{count}\u5C0F\u65F6","time.days":"{count}\u5929","time.months":"{count}\u4E2A\u6708","time.years":"{count}\u5E74","time.ago":"{text}\u524D","time.now":"\u521A\u521A","session.copy":"\u590D\u5236","session.copied":"\u5DF2\u590D\u5236","session.compactApproval":"\u5F85\u5BA1\u6279","session.compactPlan":"\u8BA1\u5212\u5F85\u5BA1","session.compactAnswer":"\u5F85\u56DE\u7B54","time.minuteAgo":"{count} \u5206\u949F\u524D","time.hourAgo":"{count} \u5C0F\u65F6\u524D","time.dayAgo":"{count} \u5929\u524D","time.inMinute":"{count} \u5206\u949F\u540E","time.inHour":"{count} \u5C0F\u65F6\u540E","time.inDay":"{count} \u5929\u540E"};var iA="__dshNativeTabs";function sA(e){let t=new Map,o=[],n=new Set,r=[],i=()=>{r=[...t.values()].sort((a,c)=>(a.order??0)-(c.order??0))},s=()=>{for(let a of n)a()};return{version:1,officialTree:e,sessionFilters:o,getTabs(){return r},subscribe(a){return n.add(a),()=>{n.delete(a)}},insert(a){if(a.id==="")return()=>{};let c=t.get(a.id);return t.set(a.id,a),c!==a&&(i(),s()),()=>{t.get(a.id)===a&&(t.delete(a.id),i(),s())}},addSessionFilter(a){return o.push(a),s(),()=>{let c=o.indexOf(a);c>=0&&o.splice(c,1),s()}}}}function HS(e){if(e==null||typeof e!="object"&&typeof e!="function")return;let t=e[iA];if(!(t==null||typeof t!="object"))return typeof t.insert=="function"?t:void 0}function VS(e,t){try{e[iA]=t}catch{}return t}function aA(e){let t=e;return HS(e)??HS(t?.component)}function lA(e){if(e==null)return!1;let t=e;return t.__dshNativeTabHost===!0||t.__imConnectWrapped===!0?!0:HS(e)!==void 0}var l3="@michengai/dsh-archive-manager";function WS(e){return e?.querySelector(`[data-plugin="${l3}"]`)!=null}function mc(e){return typeof e=="function"?e:void 0}function Ug(e){let t=e??{},o=mc(t.renameSession),n=mc(t.archiveSession),r=mc(t.unarchiveSession),i=mc(t.deleteSession),s=mc(t.forkSession),a=mc(t.notifyArchivedNotOpenable);return{...o===void 0?{}:{renameSession:o},...n===void 0?{}:{archiveSession:n},...r===void 0?{}:{unarchiveSession:r},...i===void 0?{}:{deleteSession:i},...s===void 0?{}:{forkSession:s},...a===void 0?{}:{notifyArchivedNotOpenable:a}}}function cA(e,t){return e&&t!==void 0}function dA(e){let t=["rename","fork"];return e.archived?e.canUnarchive&&t.push("unarchive"):t.push("archive"),e.canDelete&&t.push("delete-session"),t}function uA(e,t){return t!==null&&e.includes(t)}function mA(e,t){return e&&!t}async function pA(e,t){for(let o of e)await t(o)}var lt=require("react"),IA=require("react-dom"),Io=require("@deepseek-ai/dsh-client-ui-primitives");function gA(e,t,o){let r=e.right+8,i=e.top+t.height>o.height-8?Math.max(8,o.height-t.height-8):Math.max(8,e.top);return{position:"fixed",zIndex:4100,left:`${Math.round(r)}px`,top:`${Math.round(i)}px`}}function hA(e,t){let o=e.runningSubagentCount??0,n=o===0?void 0:{state:"ongoing",label:t("session.subagentsRunning",{count:o})},r;e.pendingKind==="approval"?r={state:"warning",label:t("session.waitingApproval"),trailing:t("session.compactApproval")}:e.pendingKind==="plan-review"?r={state:"warning",label:t("session.planReview"),trailing:t("session.compactPlan")}:e.pendingKind==="question"&&(r={state:"warning",label:t("session.waitingAnswer"),trailing:t("session.compactAnswer")});let i;r!==void 0?i=n===void 0?[r]:[r,n]:e.running?i=n===void 0?[{state:"ongoing",label:t("session.runningStatus")}]:[{state:"ongoing",label:t("session.runningStatus")},n]:n!==void 0?i=[n]:e.completed===!0?i=[{state:"done",label:t("session.completed")}]:i=[{state:"idle",label:t("session.idle")}];let s=i.filter(a=>!(e.archived&&(a.state==="done"||a.state==="idle")));return e.archived&&s.push({state:"archived",label:t("session.archived")}),s}function yA(e,t){let o=Date.parse(e||"");if(!Number.isFinite(o))return;let n=6e4,r=36e5,i=864e5,s=Math.max(0,t-o);return s<n?{unit:"now",count:0}:s<r?{unit:"minutes",count:Math.floor(s/n)}:s<i?{unit:"hours",count:Math.floor(s/r)}:s<30*i?{unit:"days",count:Math.floor(s/i)}:s<365*i?{unit:"months",count:Math.floor(s/(30*i))}:{unit:"years",count:Math.floor(s/(365*i))}}function bA(e,t){return e.unit==="now"?t("time.now"):e.unit==="minutes"?t("time.minutes",{count:e.count}):e.unit==="hours"?t("time.hours",{count:e.count}):e.unit==="days"?t("time.days",{count:e.count}):e.unit==="months"?t("time.months",{count:e.count}):t("time.years",{count:e.count})}function fA(e,t,o){e.scrollLeft=t,t>0?e.dataset.scrolled="":delete e.dataset.scrolled,t<o?e.dataset.clipped="":delete e.dataset.clipped}function c3(e){e.scrollLeft=0,delete e.dataset.scrolled,delete e.dataset.clipped}function xA(e,t){if(e===null)return;let o=e.scrollWidth-e.clientWidth;if(o<=8)return;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches){fA(e,o,o);return}cancelAnimationFrame(t.id);let n,r=0,i=s=>{r+=n===void 0?0:(s-n)*.03,n=s,fA(e,Math.min(r,o),o),r<o&&(t.id=requestAnimationFrame(i))};t.id=requestAnimationFrame(i)}function jS(e,t){cancelAnimationFrame(t.id),e!==null&&c3(e)}function vA(e,t,o=Date.now()){let n=yA(e,o);return n===void 0?"":bA(n,t)}function SA(e,t,o=Date.now()){let n=yA(e,o);return n===void 0?"":n.unit==="now"?t("time.now"):t("time.ago",{text:bA(n,t)})}var zs=require("react");var so=require("react/jsx-runtime"),Kg=typeof window>"u"?void 0:window.localStorage;function Gg({t:e,view:t,onChange:o}){return(0,so.jsx)(Rn,{children:(0,so.jsx)(OO,{block:!0,className:"dsh-st-rail-views","aria-label":e("sidebar.views"),value:t,options:[{value:"runs",label:e("tabs.runs")},{value:"overview",label:e("sidebar.viewOverview")}],onChange:n=>o(n)})})}function qg({t:e,automations:t,serverNow:o,openTaskSettings:n,onToggleAutomation:r}){let[i,s]=(0,zs.useState)(()=>Gi(Kg,gu)?.key??"planned"),[a,c]=(0,zs.useState)(()=>Gi(Kg,gu)?.direction??"asc"),[l,d]=(0,zs.useState)(()=>new Set),u=(0,zs.useMemo)(()=>new Date(o??Date.now()),[o]),m=(0,zs.useMemo)(()=>{let p=pu(t,i,a);return MC(p)},[t,a,i]),f=(0,zs.useMemo)(()=>new Map(t.map(p=>[p.id,uu(p.schedule,e)])),[t,e]),g=(p,h)=>{r===void 0||l.has(p)||(d(y=>new Set(y).add(p)),Promise.resolve(r(p,h)).catch(y=>{console.warn("[dsh-automation] \u5207\u6362\u4EFB\u52A1\u72B6\u6001\u5931\u8D25",y)}).finally(()=>{d(y=>{let x=new Set(y);return x.delete(p),x})}))};return(0,so.jsx)(Rn,{children:(0,so.jsxs)("div",{className:"dsh-st-overview",children:[(0,so.jsxs)("div",{className:"dsh-st-overview-head",children:[(0,so.jsxs)("div",{className:"dsh-st-overview-title",children:[(0,so.jsx)("strong",{children:e("sidebar.viewOverview")}),(0,so.jsx)("span",{"aria-label":`${m.length}`,children:m.length})]}),(0,so.jsx)(Vg,{t:e,compact:!0,iconOnly:!0,className:"dsh-st-overview-sort",...Kg===void 0?{}:{storage:Kg},storageKey:gu,sortKey:i,sortDirection:a,onSelect:(p,h)=>{s(p),c(h)}})]}),m.length===0?(0,so.jsx)("div",{className:"dsh-st-rail-empty",children:e("overview.empty")}):m.map(p=>(0,so.jsx)(d3,{t:e,row:p,now:u,scheduleSummary:f.get(p.id)??"",toggleDisabled:r===void 0||l.has(p.id),onToggleAutomation:g,...n===void 0?{}:{openTaskSettings:n}},p.id))]})})}function d3({t:e,row:t,now:o,scheduleSummary:n,openTaskSettings:r,toggleDisabled:i,onToggleAutomation:s}){let a=t.status!=="active",c=t.nextRunAt===void 0?e("stats.noneScheduled"):mu(t.nextRunAt,o,e),l=t.nextRunAt===void 0?e("stats.noneScheduled"):yC(t.nextRunAt,o,e),d=`${e("stats.next")}: ${c}`,u=e(a?"card.resume":"card.pause");return(0,so.jsxs)("div",{className:`dsh-st-overview-row${a?" is-paused":""}`,children:[(0,so.jsxs)("button",{type:"button",className:"dsh-st-overview-open",disabled:r===void 0,onClick:()=>{r?.({automationId:t.id,name:t.name,sessionIds:[]})},children:[(0,so.jsxs)("span",{className:"dsh-st-overview-copy",children:[(0,so.jsx)("span",{className:"dsh-st-overview-name",children:t.name}),n!==""&&(0,so.jsxs)("span",{className:"dsh-st-overview-schedule",children:[(0,so.jsx)(n0,{width:14,height:14}),(0,so.jsx)("span",{children:n})]})]}),(0,so.jsx)("span",{className:"dsh-st-overview-next",title:d,"aria-label":d,children:(0,so.jsx)("strong",{children:l})})]}),(0,so.jsx)("span",{className:"dsh-st-overview-toggle",title:u,children:(0,so.jsx)(zg,{size:"small",checked:!a,disabled:i,"aria-label":u,onChange:()=>{s?.(t.id,yu(t.status))}})})]})}var _a=require("react"),wA=require("@deepseek-ai/dsh-client-ui-primitives");function CA(e){return e?11:14}var So=require("react/jsx-runtime");function RA({t:e,query:t,sort:o,groupMode:n,archivedFilter:r="default",onQueryChange:i,onSortChange:s,onGroupModeChange:a,onArchivedFilterChange:c}){let[l,d]=(0,_a.useState)(t.trim()!==""),[u,m]=(0,_a.useState)(!1),f=(0,_a.useRef)(null),g=CA(l);(0,_a.useEffect)(()=>{l&&f.current?.focus()},[l]);let p=()=>{m(!1),d(!0)},h=()=>{i(""),d(!1)},y=[{type:"label",id:"group-by",text:e("sidebar.groupBy")},{id:"workspace",label:e("sidebar.groupWorkspace"),icon:(0,So.jsx)(sC,{})},{id:"workspace-tree",label:e("sidebar.groupWorkspaceTree"),icon:(0,So.jsx)(aC,{})},{id:"flat",label:e("sidebar.groupList"),icon:(0,So.jsx)(lC,{})},{type:"separator",id:"order-by-separator"},{type:"label",id:"order-by",text:e("sidebar.sortBy")},{id:"updated",label:e("sidebar.sortTime"),icon:(0,So.jsx)(cC,{})},...c!==void 0?[{type:"separator",id:"archived-filter-separator"},{type:"label",id:"filter-by",text:e("sidebar.filterBy")},{id:"show-archived",label:e("sidebar.showArchived"),icon:(0,So.jsx)(za,{})},{id:"only-archived",label:e("sidebar.onlyArchived"),icon:(0,So.jsx)(dC,{})}]:[]],x=[n==="list"?"flat":n,"updated",...r==="show"?["show-archived"]:[],...r==="only"?["only-archived"]:[]];return(0,So.jsxs)("div",{className:l?"dsh-st-n-toolbar is-search":"dsh-st-n-toolbar",children:[(0,So.jsx)("span",{className:"dsh-st-n-head-label",children:e(n==="list"?"sidebar.sessions":"sidebar.workspaces")}),(0,So.jsx)("div",{className:"dsh-st-n-search-slot",children:(0,So.jsxs)("div",{className:"dsh-st-n-search",onClick:p,children:[(0,So.jsx)("button",{type:"button",className:"dsh-st-n-search-btn","aria-label":e("sidebar.search"),"aria-expanded":l,onClick:p,children:(0,So.jsx)(nC,{size:g})}),(0,So.jsx)("input",{ref:f,className:"dsh-st-n-search-input",value:t,placeholder:e("sidebar.searchSessions"),"aria-label":e("sidebar.searchSessions"),tabIndex:l?0:-1,"aria-hidden":!l,onChange:b=>i(b.target.value),onKeyDown:b=>{b.key==="Escape"&&h()}}),l&&(0,So.jsx)("button",{type:"button",className:"dsh-st-n-search-clear","aria-label":e("sidebar.clearSearch"),onClick:b=>{b.stopPropagation(),h()},children:(0,So.jsx)(rC,{size:14})})]})}),(0,So.jsx)("div",{className:"dsh-st-n-head-acts",children:(0,So.jsx)(wA.Menu,{open:u,onClose:()=>{m(!1)},items:y,selectedIds:x,align:"end",dense:!0,portal:!0,onSelect:b=>{(b==="workspace"||b==="workspace-tree")&&a(b),b==="flat"&&a("list"),b==="updated"&&s("time"),b==="show-archived"&&c?.(r==="show"?"default":"show"),b==="only-archived"&&c?.(r==="only"?"default":"only"),m(!1)},anchor:(0,So.jsx)("button",{type:"button",className:u?"dsh-st-n-head-btn is-on":"dsh-st-n-head-btn","aria-label":e("sidebar.filter"),"aria-expanded":u,onClick:()=>m(b=>!b),children:(0,So.jsx)(iC,{size:16})})})})]})}var Re=require("react/jsx-runtime"),EA={},$A=[];function Xg(e){let{t,runtime:o,openSession:n,useSessions:r,useWorkspaces:i,renameSession:s,archiveSession:a,unarchiveSession:c,deleteSession:l,forkSession:d,notifyArchivedNotOpenable:u,openTaskSettings:m,renderSlot:f,useSessionStatus:g}=e,p=(0,lt.useSyncExternalStore)(o.source.subscribe,o.source.getSnapshot,o.source.getSnapshot),h=r?r(ne=>hc(ne)):null,y=r?r(ne=>ne.byId??EA):EA,x=i?i(ne=>ne.archivedSessionIds??[]):[],b=i?i(ne=>ne.items??$A):$A,S=g?g(ne=>ne):void 0,v=r?r(ne=>ne.projectionsBySession):void 0,[C,R]=(0,lt.useState)({}),[w,I]=(0,lt.useState)(),[P,N]=(0,lt.useState)(),[E,O]=(0,lt.useState)(),[L,k]=(0,lt.useState)(!1),[z,_]=(0,lt.useState)(),[T,D]=(0,lt.useState)(),[F,G]=(0,lt.useState)(!1),[H,W]=(0,lt.useState)(),[X,B]=(0,lt.useState)(()=>typeof document<"u"&&WS(document)),[j,U]=(0,lt.useState)("default"),[Z,Y]=(0,lt.useState)(""),[K,V]=(0,lt.useState)("time"),[A,ee]=(0,lt.useState)("workspace"),[Q,te]=(0,lt.useState)("runs"),le=(0,lt.useRef)(null),re=(0,lt.useMemo)(()=>new Set(x),[x]),ie=(0,lt.useMemo)(()=>{let ne=p.snapshot;if(ne===void 0)return[];let fe=new Map(ne.automations.map(ce=>[ce.id,ce.timeZone]));return hu(ne.automations,ne.runs).map(ce=>({...ce,sessions:ce.sessions.filter(we=>OC(we.id,re,j)).map(we=>{let Le=ne.runs.find(Ce=>Ce.sessionId===we.id);return{...we,title:gc(Le&&(Le.startedAt||Le.scheduledFor)||"",fe.get(ce.id)),updatedAt:Le&&(Le.startedAt||Le.scheduledFor)||"",running:we.running||y[we.id]?.running===!0}})})).filter(ce=>ce.sessions.length>0)},[re,j,y,p.snapshot]);(0,lt.useEffect)(()=>{if(!bu(h,p.snapshot?.runs)){le.current=null;return}le.current!==h&&(le.current=h,o.refresh().catch(()=>{}))},[o,h,p.snapshot?.runs]);let Se=(0,lt.useMemo)(()=>{let ne=A==="workspace-tree"?ZC(ie.flatMap(fe=>fe.sessions.map(ce=>({...ce,automationId:fe.id}))),b,t("sidebar.ungrouped")):ie;return QC(ne.map(fe=>({...fe,name:fe.name})),Z,K,A)},[A,ie,Z,K,t,b]);(0,lt.useEffect)(()=>{if(typeof document>"u"||typeof MutationObserver>"u")return;let ne=()=>{B(WS(document))};ne();let fe=new MutationObserver(ne);return fe.observe(document.documentElement,{childList:!0,subtree:!0}),()=>{fe.disconnect()}},[]);let de=X&&a!==void 0,Ee=cA(X,l),ae=c!==void 0,Ne=()=>{if(E===void 0||a===void 0||L)return;let ne=E;k(!0),_(void 0),pA(ne.sessionIds,a).then(()=>{O(void 0)}).catch(fe=>{_(fe instanceof Error?fe.message:t("error.action"))}).finally(()=>{k(!1)})},he=()=>{if(T===void 0||l===void 0||F)return;let ne=T;G(!0),W(void 0),Promise.resolve(l(ne.id)).then(()=>{D(void 0)}).catch(fe=>{W(fe instanceof Error?fe.message:t("error.action"))}).finally(()=>{G(!1)})};return(0,Re.jsxs)("div",{className:"dsh-st-n",children:[(0,Re.jsx)(Gg,{t,view:Q,onChange:te}),Q==="overview"?p.snapshot===void 0?(0,Re.jsx)("div",{className:"dsh-st-n-empty",children:p.phase==="loading"?t("loading"):t("overview.empty")}):(0,Re.jsx)(qg,{t,automations:p.snapshot.automations,onToggleAutomation:(ne,fe)=>o.mutateAutomation(ne,fe),...m===void 0?{}:{openTaskSettings:m},...p.snapshot.serverNow===void 0?{}:{serverNow:p.snapshot.serverNow}}):(0,Re.jsxs)(Re.Fragment,{children:[(0,Re.jsx)(RA,{t,query:Z,sort:K,groupMode:A,archivedFilter:j,onQueryChange:Y,onSortChange:V,onGroupModeChange:ee,onArchivedFilterChange:U}),(0,Re.jsx)("div",{className:"dsh-st-n-list-area",children:(0,Re.jsxs)("div",{className:"dsh-st-n-tree",role:"tree",children:[p.phase==="loading"&&Se.length===0&&(0,Re.jsx)("div",{className:"dsh-st-n-empty",children:t("loading")}),Se.length===0&&p.phase!=="loading"&&(0,Re.jsx)("div",{className:"dsh-st-n-empty",children:t("sidebar.empty")}),Se.map(ne=>{let fe=C[ne.id]!==!0,ce=uA(ne.sessions.map(se=>se.id),h),we="depth"in ne?ne.depth:0,Le=[...new Set(ne.sessions.flatMap(se=>"automationId"in se&&typeof se.automationId=="string"?[se.automationId]:[]))],Ce=A==="workspace-tree"&&Le.length===1?p.snapshot?.automations.find(se=>se.id===Le[0]):void 0,pe=A==="workspace-tree"?Ce?.id:ne.id,ue=A==="workspace-tree"?Ce?.name:ne.name;return(0,Re.jsxs)("div",{className:"dsh-st-n-group",style:we>0?{"--dsh-workspace-indent":`${we*12}px`}:void 0,children:[A!=="list"&&(0,Re.jsx)(u3,{t,id:ne.id,name:ne.name,sessionIds:ne.sessions.map(se=>se.id),expanded:fe,hasCurrentSession:ce,menuOpen:P===ne.id,canArchiveGroup:de,showTaskSettings:pe!==void 0,onToggle:()=>R(se=>({...se,[ne.id]:fe})),onMenuChange:se=>{I(void 0),N(se?ne.id:void 0)},onTaskSettings:()=>{pe!==void 0&&m?.({automationId:pe,name:ue??ne.name,sessionIds:ne.sessions.map(se=>se.id)})},onArchiveGroup:()=>{_(void 0),O({id:ne.id,name:ne.name,sessionIds:ne.sessions.map(se=>se.id)})}}),(A==="list"||fe)&&ne.sessions.map(se=>(0,Re.jsx)(m3,{t,flat:A==="list",id:se.id,title:se.title,hoverTitle:String(y[se.id]?.displayTitle??y[se.id]?.title??ne.name),updatedAt:se.updatedAt,running:se.running,archived:re.has(se.id),selected:h===se.id,menuOpen:w===se.id,canDelete:Ee,canUnarchive:ae,hoverStatuses:hA({running:se.running||S?.get(se.id)?.running===!0,archived:re.has(se.id),completed:S?.get(se.id)?.completionUnread===!0,...S?.get(se.id)?.pendingInteraction?.kind===void 0?{}:{pendingKind:S.get(se.id)?.pendingInteraction?.kind??""},runningSubagentCount:(v?.[se.id]?.values?.subagentCatalog??[]).filter(ve=>ve.id!==void 0&&S?.get(ve.id)?.running===!0).length},t),...f===void 0?{}:{renderSlot:f},onMenuChange:ve=>{N(void 0),I(ve?se.id:void 0)},onOpen:()=>{if(I(void 0),re.has(se.id)){u?.();return}n?.(se.id)},onDeleteSession:()=>{W(void 0),D({id:se.id,title:String(y[se.id]?.displayTitle??y[se.id]?.title??se.title)})},...s===void 0?{}:{renameSession:s},...a===void 0?{}:{archiveSession:a},...c===void 0?{}:{unarchiveSession:c},...d===void 0?{}:{forkSession:d}},se.id))]},ne.id===""?"ungrouped":ne.id)})]})})]}),(0,Re.jsxs)(Io.Modal,{open:E!==void 0,onClose:()=>{L||(O(void 0),_(void 0))},closeLabel:t("session.archiveGroupClose"),title:t("session.archiveGroup"),footer:(0,Re.jsxs)("div",{className:"dsh-st-n-dialog-actions",children:[(0,Re.jsx)(Io.Button,{variant:"outline",disabled:L,onClick:()=>{O(void 0),_(void 0)},children:t("session.archiveGroupCancel")}),(0,Re.jsx)(Io.Button,{variant:"outline",className:"dsh-st-n-danger-button",disabled:L,onClick:Ne,children:t("session.archiveGroupConfirm")})]}),children:[(0,Re.jsx)("p",{className:"dsh-st-n-dialog-copy",children:E===void 0?"":t("session.archiveGroupDescription",{name:E.name,count:E.sessionIds.length})}),L&&(0,Re.jsx)("div",{className:"dsh-st-n-dialog-status",role:"status",children:t("session.archiveGroupPending")}),z!==void 0&&(0,Re.jsx)("div",{className:"dsh-st-n-dialog-error",role:"alert",children:t("session.archiveGroupFailed",{message:z})})]}),(0,Re.jsxs)(Io.Modal,{open:T!==void 0,onClose:()=>{F||(D(void 0),W(void 0))},closeLabel:t("session.deleteSessionClose"),title:t("session.deleteSession"),footer:(0,Re.jsxs)("div",{className:"dsh-st-n-dialog-actions",children:[(0,Re.jsx)(Io.Button,{variant:"outline",disabled:F,onClick:()=>{D(void 0),W(void 0)},children:t("session.deleteSessionCancel")}),(0,Re.jsx)(Io.Button,{variant:"outline",className:"dsh-st-n-danger-button",disabled:F,onClick:he,children:t("session.deleteSessionConfirm")})]}),children:[(0,Re.jsx)("p",{className:"dsh-st-n-dialog-copy",children:T===void 0?"":t("session.deleteSessionDescription",{name:T.title})}),F&&(0,Re.jsx)("div",{className:"dsh-st-n-dialog-status",role:"status",children:t("session.deleteSessionPending")}),H!==void 0&&(0,Re.jsx)("div",{className:"dsh-st-n-dialog-error",role:"alert",children:t("session.deleteSessionFailed",{message:H})})]})]})}function u3(e){let{t,id:o,name:n,expanded:r,hasCurrentSession:i,menuOpen:s,canArchiveGroup:a,showTaskSettings:c,onToggle:l,onMenuChange:d,onTaskSettings:u,onArchiveGroup:m}=e,f=[...c?[{id:"task-settings",label:t("session.taskSettings"),icon:(0,Re.jsx)(QS,{size:16})}]:[],...a?[...c?[{type:"separator",id:"archive-separator"}]:[],{id:"archive-group",label:t("session.archiveGroup"),icon:(0,Re.jsx)(za,{size:16}),danger:!0}]:[]],g="dsh-st-n-row"+(i?" has-current-session":"")+(s?" is-menu":"");return(0,Re.jsxs)("div",{className:g,role:"treeitem","aria-expanded":r,"data-n-group":o,onClick:l,children:[(0,Re.jsx)("span",{className:"dsh-st-n-slot dsh-st-n-folder",children:r?(0,Re.jsx)(m0,{width:16,height:16}):(0,Re.jsx)(u0,{width:16,height:16})}),(0,Re.jsx)("span",{className:"dsh-st-n-slot dsh-st-n-chevron",children:(0,Re.jsx)(p0,{width:14,height:14,className:"dsh-st-n-arrow"+(r?" is-open":"")})}),(0,Re.jsx)("span",{className:"dsh-st-n-project-text",children:(0,Re.jsx)("span",{className:"dsh-st-n-title",children:n})}),(0,Re.jsx)("span",{className:"dsh-st-n-acts",children:(0,Re.jsx)(Io.Menu,{open:s,onClose:()=>{d(!1)},items:f,onSelect:p=>{d(!1),p==="task-settings"&&u(),p==="archive-group"&&m()},portal:!0,closeOnPointerLeave:!0,anchor:(0,Re.jsx)("button",{type:"button",className:"dsh-st-n-ico","aria-label":t("session.groupActions",{name:n}),onMouseDown:p=>{p.stopPropagation()},onClick:p=>{p.stopPropagation(),d(!s)},children:(0,Re.jsx)(oh,{size:16})})})})]})}function m3(e){let{t,flat:o,id:n,title:r,hoverTitle:i,updatedAt:s,running:a,archived:c,selected:l,menuOpen:d,canDelete:u,canUnarchive:m,hoverStatuses:f,renderSlot:g,onMenuChange:p,onOpen:h,onDeleteSession:y,renameSession:x,archiveSession:b,unarchiveSession:S,forkSession:v}=e,C=mA(o,a),R=(0,lt.useRef)(null),w=(0,lt.useRef)(null),[I,P]=(0,lt.useState)(!1),[N,E]=(0,lt.useState)({}),O=(0,lt.useRef)(void 0),L=(0,lt.useRef)(null),k=(0,lt.useRef)({id:0});(0,lt.useEffect)(()=>()=>{jS(L.current,k.current)},[]);let[z,_]=(0,lt.useState)(!1),[T,D]=(0,lt.useState)(r);(0,lt.useEffect)(()=>{D(r)},[r]),(0,lt.useEffect)(()=>{if(typeof Io.HoverCard=="function"||!I||d)return;let A=()=>{let ee=R.current?.getBoundingClientRect(),Q=w.current;if(ee===void 0)return;let te=Q===null?{width:220,height:96}:{width:Q.offsetWidth,height:Q.offsetHeight};E(gA({right:ee.right,top:ee.top},te,{width:window.innerWidth,height:window.innerHeight}))};return A(),window.addEventListener("resize",A),document.addEventListener("scroll",A,!0),()=>{window.removeEventListener("resize",A),document.removeEventListener("scroll",A,!0)}},[I,d,r,s,a]),(0,lt.useEffect)(()=>()=>{O.current!==void 0&&window.clearTimeout(O.current)},[]);let F=A=>{Promise.resolve(A()).catch(()=>{})},G=()=>{typeof Io.HoverCard=="function"||d||(O.current!==void 0&&window.clearTimeout(O.current),O.current=window.setTimeout(()=>P(!0),500))},H=()=>{O.current!==void 0&&window.clearTimeout(O.current),P(!1)},W="dsh-st-n-sess"+(l?" is-on":"")+(d?" is-menu":"")+(C?" is-flat-idle":"")+(c?" is-archived":"");if(z)return(0,Re.jsx)("div",{className:W,ref:R,children:(0,Re.jsx)("input",{className:"dsh-st-n-rename",value:T,autoFocus:!0,"aria-label":t("session.rename"),onChange:A=>D(A.target.value),onClick:A=>A.stopPropagation(),onKeyDown:A=>{A.key==="Enter"&&(A.preventDefault(),_(!1),T.trim()!==""&&T.trim()!==r&&F(()=>x?.(n,T.trim()))),A.key==="Escape"&&(A.preventDefault(),_(!1),D(r))},onBlur:()=>{_(!1),T.trim()!==""&&T.trim()!==r&&F(()=>x?.(n,T.trim()))}})});let X=(i??r).trim()||r,B=g!==void 0&&uC()?["rename","fork","archive","archive-manager.delete-session"].map(A=>g("sidebar.workspaces.session.menu.item",{sessionId:n,displayTitle:X},{hookContext:[d,ee=>p(ee)],only:A})):void 0,j=B!==void 0?[]:dA({canDelete:u,archived:c,canUnarchive:m}).map(A=>A==="rename"?{id:A,label:t("session.rename"),icon:(0,Re.jsx)(eC,{})}:A==="fork"?{id:A,label:t("session.fork"),icon:(0,Re.jsx)(JS,{})}:A==="archive"?{id:A,label:t("session.archive"),icon:(0,Re.jsx)(za,{size:16})}:A==="unarchive"?{id:A,label:t("session.unarchive"),icon:(0,Re.jsx)(d0,{width:16,height:16})}:{id:A,label:t("session.deleteSession"),icon:(0,Re.jsx)(tC,{}),danger:!0}),U=f.find(A=>A.state!=="archived"),Z=!c&&U!==void 0&&U.state!=="idle",Y=U?.trailing,K=(0,Re.jsxs)(Re.Fragment,{children:[(0,Re.jsx)("div",{className:"dsh-st-n-hover-title",children:X}),(0,Re.jsx)("div",{className:"dsh-st-n-hover-time",children:SA(s,t)}),f.map(A=>(0,Re.jsxs)("div",{className:"dsh-st-n-hover-state",children:[A.state==="archived"?(0,Re.jsx)(za,{size:14}):(0,Re.jsx)(Io.StateDot,{state:A.state==="ongoing"?"ongoing":A.state==="warning"?"warning":A.state==="done"?"done":"idle",size:10}),A.label]},A.label))]}),V=(0,Re.jsxs)("div",{className:W,ref:R,role:"treeitem",tabIndex:0,"aria-selected":l,"data-n-menu-root":n,onClick:h,onMouseEnter:()=>{xA(L.current,k.current),G()},onMouseLeave:()=>{jS(L.current,k.current),H()},onKeyDown:A=>{(A.key==="Enter"||A.key===" ")&&(A.preventDefault(),h())},onContextMenu:A=>{A.preventDefault(),A.stopPropagation(),H(),p(!0)},children:[!C&&(0,Re.jsx)("span",{className:"dsh-st-n-slot",children:Z&&U!==void 0?(0,Re.jsx)(Io.StateDot,{state:U.state==="ongoing"?"ongoing":U.state==="warning"?"warning":"done",size:10}):a?(0,Re.jsx)(xu,{}):null}),(0,Re.jsx)("span",{ref:L,className:"dsh-st-n-title",onDoubleClick:A=>{x!==void 0&&(A.stopPropagation(),_(!0))},children:r}),(0,Re.jsx)("span",{className:"dsh-st-n-time","aria-hidden":Y===void 0?void 0:!0,children:Y??vA(s,t)}),(0,Re.jsxs)("span",{className:"dsh-st-n-acts",children:[B===void 0&&c&&m&&(0,Re.jsx)("button",{type:"button",className:"dsh-st-n-restore",onMouseDown:A=>{A.stopPropagation()},onClick:A=>{A.stopPropagation(),F(()=>S?.(n))},children:t("session.unarchive")}),(0,Re.jsx)(Io.Menu,{open:d,onClose:()=>{p(!1)},items:j,onSelect:A=>{p(!1),A==="rename"&&_(!0),A==="fork"&&F(()=>v?.(n)),A==="archive"&&F(()=>b?.(n)),A==="unarchive"&&F(()=>S?.(n)),A==="delete-session"&&y?.()},portal:!0,closeOnPointerLeave:!0,anchor:(0,Re.jsx)("button",{type:"button",className:"dsh-st-n-ico","aria-label":t("session.moreActions",{title:r}),onMouseDown:A=>{A.stopPropagation()},onClick:A=>{A.stopPropagation(),H(),p(!d)},children:(0,Re.jsx)(oh,{size:16})}),children:B}),g?.("sidebar.workspaces.session.row.action",{sessionId:n,displayTitle:X},{only:"archive"})]}),typeof Io.HoverCard!="function"&&I&&!d&&typeof document<"u"&&(0,IA.createPortal)((0,Re.jsx)("div",{ref:w,className:"dsh-st-n-hover",style:N,onMouseEnter:G,onMouseLeave:H,children:K}),document.body)]});return typeof Io.HoverCard!="function"?V:(0,Re.jsx)(Io.HoverCard,{anchor:V,content:K,openDelayMs:800,disabled:d,copyText:X,copyLabel:t("session.copy"),copiedLabel:t("session.copied")})}var zt=require("react");var rt=require("react/jsx-runtime"),NA=[],PA=e=>()=>{},US=class extends zt.Component{state={failed:!1};static getDerivedStateFromError(){return{failed:!0}}componentDidCatch(t){console.warn("[dsh-automation] official workspace tree crashed",t)}render(){return this.state.failed?this.props.fallback:this.props.children}};function TA({t:e,runtime:t,openSession:o,openTaskSettings:n,view:r,showViewSwitch:i=!0}){let s=(0,zt.useSyncExternalStore)(t.source.subscribe,t.source.getSnapshot,t.source.getSnapshot),[a,c]=(0,zt.useState)({}),[l,d]=(0,zt.useState)("runs"),u=r??l,m=s.snapshot,f=(0,zt.useMemo)(()=>m===void 0?[]:hu(m.automations,m.runs),[m]);return(0,rt.jsxs)("div",{className:"dsh-st-rail",children:[i&&(0,rt.jsx)(Gg,{t:e,view:u,onChange:d}),u==="overview"?m===void 0?(0,rt.jsx)("div",{className:"dsh-st-rail-empty",children:s.phase==="loading"?e("loading"):e("overview.empty")}):(0,rt.jsx)(qg,{t:e,automations:m.automations,onToggleAutomation:(g,p)=>t.mutateAutomation(g,p),...n===void 0?{}:{openTaskSettings:n},...m.serverNow===void 0?{}:{serverNow:m.serverNow}}):(0,rt.jsxs)(rt.Fragment,{children:[s.phase==="loading"&&f.length===0&&(0,rt.jsx)("div",{className:"dsh-st-rail-empty",children:e("loading")}),f.length===0&&s.phase!=="loading"&&(0,rt.jsx)("div",{className:"dsh-st-rail-empty",children:e("sidebar.empty")}),f.map(g=>(0,rt.jsxs)("section",{className:"dsh-st-rail-group",children:[(0,rt.jsxs)("button",{type:"button",className:"dsh-st-rail-head",onClick:()=>c(p=>({...p,[g.id]:!p[g.id]})),children:[(0,rt.jsx)("span",{className:"dsh-st-rail-folder",children:(0,rt.jsx)(yc,{width:16,height:16})}),(0,rt.jsx)("span",{className:"dsh-st-rail-title",children:g.name})]}),a[g.id]!==!0&&g.sessions.map(p=>(0,rt.jsxs)("button",{type:"button",className:"dsh-st-rail-session",onClick:()=>o?.(p.id),children:[(0,rt.jsx)("span",{children:p.label}),p.running&&(0,rt.jsx)(xu,{})]},p.id))]},g.id))]})]})}function MA({t:e,runtime:t,officialTree:o,hostProps:n,openSession:r,openTaskSettings:i,useSessions:s,useWorkspaces:a,renderSlot:c,hasChannels:l,subscribeChannels:d,tabRegistry:u,wide:m}){let f=o,[g,p]=(0,zt.useState)(()=>{try{return LC(window.localStorage.getItem(ih))}catch{return"tasks"}}),h=(0,zt.useSyncExternalStore)(u?.subscribe??PA,()=>u?.getTabs()??NA,()=>NA),y=(0,zt.useSyncExternalStore)(d??PA,()=>{try{return l?.()===!0}catch{return!1}},()=>!1),x=s?.(_=>hc(_)),b=(0,zt.useSyncExternalStore)(t.source.subscribe,t.source.getSnapshot,t.source.getSnapshot),S=(0,zt.useMemo)(()=>AC(b.snapshot?.runs),[b.snapshot]),v=(0,zt.useRef)(null);(0,zt.useEffect)(()=>{if(!bu(x,b.snapshot?.runs)){v.current=null;return}v.current!==x&&(v.current=x??null,t.refresh().catch(()=>{}))},[b.snapshot?.runs,x,t]);let C=(0,zt.useCallback)((_,T)=>s===void 0?_({ids:[],byId:{},current:null}):s(D=>_(VC(D,S)),T),[s,S]),R=(0,zt.useCallback)((_,T)=>a===void 0?_({items:[],archivedSessionIds:[]}):a(D=>_(GC(D,S)),T),[a,S]);(0,zt.useEffect)(()=>{try{window.localStorage.setItem(ih,g)}catch{}},[g]);let w=(0,zt.useRef)(x),I=(0,zt.useRef)(!1);(0,zt.useEffect)(()=>{if(!I.current){I.current=!0,w.current=x;return}let _=w.current;if(w.current=x,!DC(_,x))return;let T=zC(x??void 0,S),D=h.map(G=>G.id);T==="channels"&&(y||D.includes("channels"))&&p("channels");let F=h.find(G=>x!=null&&G.matchSession?.(String(x))===!0);F!==void 0&&F.id!=="schedule"&&p(F.id)},[x,y,h,S]);let P={...n??{},...m===void 0?{}:{wide:m}},N={...P,...s===void 0?{}:{useSessions:C},...a===void 0?{}:{useWorkspaces:R}},E=_=>f===void 0?(0,rt.jsx)(p3,{t:e,...r===void 0?{}:{openSession:r},...s===void 0?{}:{useSessions:C},...a===void 0?{}:{useWorkspaces:a}}):(0,rt.jsx)(US,{fallback:(0,zt.createElement)(f,P),children:(0,zt.createElement)(f,_)});if(m===!1)return(0,rt.jsx)(rt.Fragment,{children:E(N)});let O=h.filter(_=>_.id!=="schedule"),L=FC({tab:g,channelsReady:y,extraTabIds:_C({extraTabIds:O.map(_=>_.id),channelsReady:y})}),k=h.find(_=>_.id==="schedule"),z=k===void 0?(0,rt.jsx)(Xg,{t:e,runtime:t,...r===void 0?{}:{openSession:r},...i===void 0?{}:{openTaskSettings:i},...s===void 0?{}:{useSessions:s},...a===void 0?{}:{useWorkspaces:a},...c===void 0?{}:{renderSlot:c},...Ug(n),...typeof n?.useSessionStatus=="function"?{useSessionStatus:n.useSessionStatus}:{}}):k.render({...n??{},openSession:r,open:r,useSessions:s,wide:!0});return(0,rt.jsxs)("div",{className:"dsh-st-shell-rail",children:[(0,rt.jsxs)("div",{className:"dsh-st-shell-tabs",role:"tablist","aria-label":e("sidebar.tabs"),children:[(0,rt.jsx)("button",{type:"button",role:"tab","aria-selected":L==="tasks",className:L==="tasks"?"is-on":void 0,onClick:()=>p("tasks"),children:e("sidebar.tasksTab")}),O.map(_=>(0,rt.jsx)("button",{type:"button",role:"tab","aria-selected":L===_.id,className:L===_.id?"is-on":void 0,onClick:()=>p(_.id),children:_.label},_.id)),y&&O.every(_=>_.id!=="channels")&&(0,rt.jsx)("button",{type:"button",role:"tab","aria-selected":L==="channels",className:L==="channels"?"is-on":void 0,onClick:()=>p("channels"),children:e("sidebar.channelsTab")}),(0,rt.jsx)("button",{type:"button",role:"tab","aria-selected":L==="schedule",className:L==="schedule"?"is-on":void 0,onClick:()=>p("schedule"),children:e("sidebar.tab")})]}),L==="schedule"?(0,rt.jsx)("div",{className:"dsh-st-shell-body",children:z}):O.find(_=>_.id===L)!==void 0?(0,rt.jsx)("div",{className:"dsh-st-shell-body",children:O.find(_=>_.id===L)?.render({...n??{},openSession:r,open:r,useSessions:s,wide:!0})}):L==="channels"?(0,rt.jsx)("div",{className:"dsh-st-shell-body",children:c?.("sidebar.channels",{...n??{},openSession:r,open:r,useSessions:s,wide:!0,skin:"native"})}):(0,rt.jsx)("div",{className:"dsh-st-official-tree",children:E(N)})]})}function p3({t:e,openSession:t,useSessions:o,useWorkspaces:n}){let r=o===void 0?{ids:[],byId:{},current:null}:o(c=>c??{ids:[],byId:{},current:null}),i=n===void 0?void 0:n(c=>c??{items:[],archivedSessionIds:[]}),s=kC(r,i,e("sidebar.ungrouped")),a=hc(r);return s.length===0?(0,rt.jsx)("div",{className:"dsh-st-rail-empty",children:e("sidebar.tasksEmpty")}):(0,rt.jsx)("div",{className:"dsh-st-rail",children:s.map(c=>(0,rt.jsxs)("section",{className:"dsh-st-rail-group",children:[(0,rt.jsx)("div",{className:"dsh-st-rail-head is-static",children:(0,rt.jsx)("span",{className:"dsh-st-rail-title",children:c.label})}),c.sessions.map(l=>(0,rt.jsx)("button",{type:"button",className:`dsh-st-rail-session${a===l.id?" is-on":""}`,onClick:()=>{l.id!==void 0&&t?.(l.id)},children:(0,rt.jsx)("span",{children:l.title||l.id})},l.id))]},c.id||"ungrouped"))})}var OA="dsh-automation-styles",AA=`
|
|
259
259
|
.dsh-st-shell{container-type:inline-size;min-width:0;box-sizing:border-box;max-width:1080px;width:100%;margin:0 auto;padding:0 0 32px;color:var(--dsw-alias-label-primary);font-family:var(--dsw-font-family,system-ui)}
|
|
260
260
|
.dsh-st-top{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin-bottom:12px}
|
|
261
261
|
.dsh-st-heading h1,.dsh-st-top h1{margin:0;font-size:24px;line-height:32px;font-weight:600;letter-spacing:-.4px;white-space:nowrap}
|
|
@@ -368,7 +368,7 @@ ${i}
|
|
|
368
368
|
.dsh-st-shell-body>*{min-width:0;flex:1}.dsh-st-official-tree{display:flex;min-height:0;flex:1;overflow:hidden}.dsh-st-official-tree>*{min-width:0;flex:1}
|
|
369
369
|
.dsh-st-rail-head.is-static{cursor:default;font-weight:600}
|
|
370
370
|
.dsh-st-rail-session.is-on{background:var(--dsw-alias-interactive-bg-hover,rgba(255,255,255,.06))}
|
|
371
|
-
.dsh-st-n,.dsh-st-n *{box-sizing:border-box}.dsh-st-n{--dsh-session-list-edge-inset:var(--dsh-sidebar-inline-padding,12px);--dsh-session-list-scrollbar-width:
|
|
371
|
+
.dsh-st-n,.dsh-st-n *{box-sizing:border-box}.dsh-st-n{--dsh-session-list-edge-inset:var(--dsh-sidebar-inline-padding,12px);--dsh-session-list-scrollbar-width:5px;--dsh-session-list-scrollbar-offset:2px;box-sizing:border-box;display:flex;flex:1;min-width:0;min-height:0;flex-direction:column;padding:0;padding-right:var(--dsh-session-list-edge-inset);color:var(--dsw-alias-label-primary,inherit);font:14px/20px inherit;overflow:hidden}.dsh-st-n-toolbar{box-sizing:border-box;flex:none;height:36px;margin:2px -4px 4px 0;padding-left:4px;display:flex;justify-content:flex-end;align-items:center;gap:4px;overflow:visible;position:relative;z-index:2;color:var(--dsw-alias-label-tertiary,#81858C);border-radius:12px}.dsh-st-n-head-label{white-space:nowrap;min-width:0;max-width:45%;flex:none;line-height:20px;font-size:14px;overflow:hidden;transition:max-width .18s var(--ds-ease-in-out,ease),margin-right .18s var(--ds-ease-in-out,ease),opacity .12s var(--ds-ease-in-out,ease),transform .18s var(--ds-ease-in-out,ease),visibility 0s linear}.dsh-st-n-toolbar.is-search .dsh-st-n-head-label{opacity:0;visibility:hidden;max-width:0;margin-right:-4px;transform:translate(-4px);transition-delay:0s,0s,0s,0s,.18s}.dsh-st-n-search-slot{box-sizing:border-box;min-width:28px;max-width:28px;transition:max-width .18s var(--ds-ease-in-out,ease);flex:none;align-items:center;margin-left:auto;display:flex;position:relative;z-index:2}.dsh-st-n-toolbar.is-search .dsh-st-n-search-slot{flex:1;min-width:0;max-width:100%}.dsh-st-n-search{box-sizing:border-box;cursor:text;width:100%;height:28px;color:var(--dsw-alias-label-secondary);transition:width .18s var(--ds-ease-in-out,ease),padding .18s var(--ds-ease-in-out,ease),border-color .18s var(--ds-ease-in-out,ease);background:transparent;border:none;border-radius:50%;flex:none;align-items:center;margin:0;padding:0;display:flex;overflow:hidden}.dsh-st-n-toolbar.is-search .dsh-st-n-search{border:.5px solid var(--dsw-alias-border-l4);width:calc(100% + 4px);height:30px;color:var(--dsw-alias-label-caption);border-radius:10px;margin-inline:-2px;padding:0 4px 0 0}.dsh-st-n-search-btn,.dsh-st-n-head-btn{cursor:pointer;width:28px;height:28px;min-width:28px;min-height:28px;position:relative;z-index:1;color:var(--dsw-alias-label-secondary);background:transparent;border:none;border-radius:50%;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.dsh-st-n-toolbar.is-search .dsh-st-n-search-btn{width:28px;height:30px}.dsh-st-n-search-btn:hover,.dsh-st-n-head-btn:hover,.dsh-st-n-head-btn.is-on{background:var(--dsw-alias-interactive-bg-hover,rgba(255,255,255,.06));color:var(--dsw-alias-label-primary,inherit)}.dsh-st-n-toolbar.is-search .dsh-st-n-search-btn:hover{background:transparent}.dsh-st-n-head-acts{opacity:1;visibility:visible;max-width:32px;transition:max-width .18s var(--ds-ease-in-out,ease),opacity .12s var(--ds-ease-in-out,ease),transform .18s var(--ds-ease-in-out,ease),visibility 0s linear;flex:none;align-items:center;gap:4px;display:flex;overflow:visible;position:relative}.dsh-st-n-toolbar.is-search .dsh-st-n-head-acts{opacity:0;visibility:hidden;pointer-events:none;max-width:0;transform:translate(4px);transition-delay:0s,0s,0s,.18s}.dsh-st-n-search-input{display:none;opacity:0;pointer-events:none;width:0;min-width:0;flex:none;color:var(--dsw-alias-label-primary,inherit);transition:opacity .12s var(--ds-ease-in-out,ease);background:transparent;border:none;outline:none;flex:1;font-size:13px;line-height:18px}.dsh-st-n-toolbar.is-search .dsh-st-n-search-input{display:block;opacity:1;pointer-events:auto;margin-left:-2px;width:auto;flex:1;min-width:0}.dsh-st-n-search-input::placeholder{color:var(--dsw-alias-label-tertiary,#81858C)}.dsh-st-n-search-clear{cursor:pointer;width:24px;height:24px;color:var(--dsw-alias-label-secondary);background:transparent;border:none;border-radius:50%;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.dsh-st-n-search-clear:hover{background:var(--dsw-alias-interactive-bg-hover,rgba(255,255,255,.06))}@media (prefers-reduced-motion:reduce){.dsh-st-n-head-label,.dsh-st-n-search-slot,.dsh-st-n-search,.dsh-st-n-head-acts,.dsh-st-n-search-input{transition:none}}.dsh-st-n-list-area{min-height:0;margin-left:-4px;margin-right:calc(-1 * var(--dsh-session-list-edge-inset));flex-direction:column;flex:1;padding-left:4px;display:flex;overflow:visible}.dsh-st-n-tree{flex:1;min-width:0;min-height:0;overflow-x:hidden;overflow-y:auto;user-select:none;margin-left:-4px;margin-right:var(--dsh-session-list-scrollbar-offset);padding-top:0;padding-bottom:16px;padding-left:4px;padding-right:calc(var(--dsh-session-list-edge-inset) - var(--dsh-session-list-scrollbar-width) - var(--dsh-session-list-scrollbar-offset));scrollbar-gutter:stable}.dsh-st-n-empty{padding:16px 12px;color:var(--dsw-alias-label-tertiary,#8b8f98);font-size:13px}.dsh-st-n-group{position:relative;min-width:0;max-width:100%}.dsh-st-n-row,.dsh-st-n-sess{display:flex;align-items:center;max-width:100%;border-radius:8px;padding:0 8px;padding-inline-start:calc(8px + var(--dsh-workspace-indent,0px));cursor:pointer;user-select:none;border:0;background:transparent;color:var(--dsw-alias-label-primary,inherit);text-align:left;font:14px/20px inherit;gap:6px}.dsh-st-n-row{height:34px;gap:6px}.dsh-st-n-sess{height:32px;gap:0;position:relative;width:100%;appearance:none}.dsh-st-n-row:hover,.dsh-st-n-sess:hover,.dsh-st-n-sess.is-on,.dsh-st-n-sess.is-menu{background:var(--dsw-alias-interactive-bg-hover,rgba(255,255,255,.06))}.dsh-st-n-slot{flex:none;width:16px;height:20px;color:var(--dsw-alias-label-tertiary,#81858C);display:inline-flex;align-items:center;justify-content:center}.dsh-st-n-folder{color:inherit}.dsh-st-n-title{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;line-height:20px}.dsh-st-n-sess .dsh-st-n-title{margin:0 6px 0 4px;flex:1}.dsh-st-n-sess.is-flat-idle .dsh-st-n-title{margin-left:0}@media (hover:hover){.dsh-st-n-sess:hover .dsh-st-n-title,.dsh-st-n-sess.is-menu .dsh-st-n-title{text-overflow:clip}}.dsh-st-n-time{flex:none;font-size:10px;line-height:16px;color:var(--dsw-alias-label-caption,#ADB2B8);white-space:nowrap}.dsh-st-n-acts{flex:none;display:none;align-items:center;gap:10px}.dsh-st-n-row:hover .dsh-st-n-acts,.dsh-st-n-sess:hover .dsh-st-n-acts,.dsh-st-n-row.is-menu .dsh-st-n-acts,.dsh-st-n-sess.is-menu .dsh-st-n-acts{display:inline-flex}.dsh-st-n-sess:hover .dsh-st-n-time,.dsh-st-n-sess.is-menu .dsh-st-n-time{display:none}.dsh-st-n-ico{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border:0;border-radius:4px;background:transparent;color:var(--dsw-alias-label-tertiary,#81858C);padding:0;cursor:pointer}.dsh-st-n-ico:hover{color:var(--dsw-alias-label-primary,inherit)}.dsh-st-n-hover{position:fixed;z-index:4100;box-sizing:border-box;display:flex;flex-direction:column;gap:8px;width:244px;padding:12px 16px;border:0;border-radius:12px;background:#2C2C2E;box-shadow:var(--dsw-shadow-lv3,0 8px 24px rgba(0,0,0,.36));color:#fff}.dsh-st-n-hover-title{overflow-wrap:break-word;font-size:14px;line-height:20px;font-weight:400;color:#fff}.dsh-st-n-hover-time{font-size:12px;line-height:16px;color:#cfd3d6}.dsh-st-n-hover-state{display:flex;align-items:center;gap:8px;font-size:12px;line-height:20px;color:#adb2b8}.dsh-st-n-rename{flex:1;min-width:0;margin:0 6px 0 4px;border:.5px solid var(--dsw-alias-border-l4);border-radius:4px;outline:none;background:var(--dsw-alias-button-elevated-fill,rgba(255,255,255,.04));color:inherit;padding:0 2px;font-size:14px;line-height:20px}
|
|
372
372
|
.dsh-st-n-group>*+*{margin-top:2px}
|
|
373
373
|
.dsh-st-n-group+.dsh-st-n-group{margin-top:4px}
|
|
374
374
|
.dsh-st-n-row{box-sizing:border-box}
|
|
@@ -389,11 +389,14 @@ ${i}
|
|
|
389
389
|
.dsh-st-n-danger-button{color:var(--dsw-alias-state-error-primary,#f85149)!important}
|
|
390
390
|
.dsh-st-n-danger-button:hover{background:var(--dsw-alias-interactive-bg-hover-danger,rgba(248,81,73,.12))!important}
|
|
391
391
|
.dsh-st-n-restore{flex:none;border:0;background:transparent;color:var(--dsw-alias-label-secondary,#c9cdd4);font:12px/16px inherit;padding:2px 4px;cursor:pointer}
|
|
392
|
-
.dsh-st-n-sess.is-archived .dsh-st-n-title{color:var(--dsw-alias-label-
|
|
393
|
-
|
|
392
|
+
.dsh-st-n-sess.is-archived .dsh-st-n-title,.dsh-st-n-sess.is-archived .dsh-st-n-time{color:var(--dsw-alias-label-caption,#ADB2B8)}
|
|
393
|
+
.dsh-st-n-sess .dsh-st-n-title[data-scrolled]{mask-image:linear-gradient(90deg,#0000,#000 12px)}
|
|
394
|
+
.dsh-st-n-sess .dsh-st-n-title[data-clipped]{mask-image:linear-gradient(270deg,#0000,#000 12px)}
|
|
395
|
+
.dsh-st-n-sess .dsh-st-n-title[data-scrolled][data-clipped]{mask-image:linear-gradient(90deg,#0000,#000 12px calc(100% - 12px),#0000)}
|
|
396
|
+
`;function kA(){let e=document.getElementById(OA);if(e instanceof HTMLStyleElement)return e.textContent=AA,()=>{};let t=document.createElement("style");return t.id=OA,t.textContent=AA,document.head.append(t),()=>{t.remove()}}function f3(e,t){for(let o of t){let n=o.trim();if(n==="")continue;let r=e.find(i=>i.textContent?.replace(/\s+/g," ").trim()===n);if(r!==void 0)return r}}function g3(e){return e.find(o=>{let n=`${o.textContent??""} ${o.getAttribute("aria-label")??""}`.trim();return/(^|\s)(设置|settings)(\s|$)/i.test(n)})??(e.length===1?e[0]:void 0)}var Yg,DA="[data-dcu-settings-trigger]",LA="[data-dcu-settings-page]",h3="dcu-settings-open-section";function y3(e){let t=document.querySelector(DA);if(t===null)return!1;let o=new CustomEvent(h3,{detail:{labels:[...e]},cancelable:!0});return!t.dispatchEvent(o)}function _A(e,t,o){if(typeof document>"u"||typeof window>"u"){o?.();return}if(y3(e)){t?.();return}let n=[...document.querySelectorAll('button[aria-haspopup="dialog"]')],r=g3(n),i=document.querySelector(DA),s=document.querySelector('[role="dialog"]')!==null,a=document.querySelector(LA)!==null;if(!s&&!a&&r===void 0&&i===null){o?.();return}Yg?.(),!s&&!a&&(i??r)?.click();let c,l=!1,d=new MutationObserver(()=>{f()}),u=()=>{l||(l=!0,d.disconnect(),window.clearTimeout(g),c!==void 0&&window.cancelAnimationFrame(c),Yg===u&&(Yg=void 0))},m=()=>{let p=[...document.querySelectorAll('[role="dialog"] nav button'),...document.querySelectorAll(`${LA} nav button`)],h=f3(p,e);return h===void 0?!1:(u(),h.click(),t?.(),!0)},f=()=>{l||c!==void 0||(c=window.requestAnimationFrame(()=>{c=void 0,m()}))},g=window.setTimeout(()=>{m()||(u(),o?.())},1500);d.observe(document.body,{childList:!0,subtree:!0}),Yg=u,f()}var ct=M(require("react"),1),KS=require("react-dom/client");function FA(e,t,o){return`dsh plugin${e.trim()===""?"":` --profile ${e.trim()}`} add ${t}@${o} --registry=https://registry.npmjs.org/`}function zA(e,t){return e.key!=="Escape"?!1:(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),t(),!0)}var b3="x-michengai-plugin-update",BA="michengai-plugin-update-ui",x3=`
|
|
394
397
|
.mpi-version{margin-left:8px;color:var(--dsw-alias-label-tertiary,#a0a0a0);font-family:inherit;font-size:12px;font-weight:500;line-height:18px;letter-spacing:0;white-space:nowrap;vertical-align:baseline}.mpi-check-host{display:inline-flex;align-items:center}.mpi-icon{display:inline-flex;flex:0 0 auto;width:16px;height:16px;align-items:center;justify-content:center;pointer-events:none}.mpi-icon svg{display:block;width:16px;height:16px}
|
|
395
398
|
.mpi-intro{margin:0 0 16px;color:var(--dsw-alias-label-secondary,#b9b9b9);font-size:13px;line-height:20px}.mpi-meta{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:8px 18px;margin:0 0 16px;font-size:12px;line-height:18px}.mpi-meta dt{color:var(--dsw-alias-label-secondary,#b9b9b9)}.mpi-meta dd{margin:0}.mpi-mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.mpi-latest{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px}.mpi-status{font-size:13px;font-weight:600;line-height:18px}.mpi-status[data-kind=error]{color:var(--dsw-alias-state-error-primary,#ef7272)}.mpi-status[data-kind=success]{color:var(--dsw-alias-state-success-primary,#51b976)}.mpi-manual{border-top:1px solid var(--dsw-alias-border-l2,#494949);padding-top:16px}.mpi-manual h3{margin:0 0 6px;font-size:14px;line-height:20px}.mpi-manual p{margin:0 0 10px;color:var(--dsw-alias-label-secondary,#b9b9b9);font-size:12px;line-height:18px}.mpi-command{display:flex;align-items:flex-start;gap:8px;border:1px solid var(--dsw-alias-border-l2,#494949);border-radius:7px;padding:10px;background:var(--dsw-alias-bg-layer-3,var(--dsw-specific-menu-item-hover,#353638))}.mpi-command code{min-width:0;flex:1;overflow:visible;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;line-height:18px;white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:560px){.mpi-meta{grid-template-columns:1fr;gap:2px}.mpi-meta dd{margin-bottom:6px}}
|
|
396
|
-
`,h3={check:"\u68C0\u67E5\u66F4\u65B0",update:"\u66F4\u65B0",close:"\u5173\u95ED",recheck:"\u91CD\u65B0\u68C0\u67E5",auto:"\u81EA\u52A8\u66F4\u65B0",updating:"\u6B63\u5728\u66F4\u65B0\u2026",copy:"\u590D\u5236\u547D\u4EE4",copied:"\u5DF2\u590D\u5236",copyFailed:"\u590D\u5236\u5931\u8D25",checking:"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0\u2026",latest:"\u5DF2\u662F\u6700\u65B0\u7248\u672C",found:"\u53D1\u73B0\u65B0\u7248\u672C",failed:"\u68C0\u67E5\u66F4\u65B0\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002",current:"\u8FD0\u884C\u7248\u672C",latestLabel:"\u6700\u65B0\u7248\u672C",profile:"\u76EE\u6807 profile",unknown:"\u672A\u77E5",manual:"\u624B\u5DE5\u66F4\u65B0",manualHint:"\u81EA\u52A8\u66F4\u65B0\u5931\u8D25\u65F6\uFF0C\u53EF\u5728\u5F53\u524D DSH \u7EC8\u7AEF\u6267\u884C\u4EE5\u4E0B\u547D\u4EE4\uFF0C\u5B8C\u6210\u540E\u91CD\u542F DSH Web\u3002",intro:"\u4EC5\u68C0\u67E5\u5E76\u66F4\u65B0\u5F53\u524D\u63D2\u4EF6\uFF0C\u4E0D\u4F1A\u8054\u52A8\u5B89\u88C5\u5176\u4ED6\u63D2\u4EF6\u3002",restart:"\u66F4\u65B0\u5B8C\u6210\uFF0C\u8BF7\u91CD\u542F DSH Web\u3002",restarting:"\u66F4\u65B0\u5B8C\u6210\uFF0C\u6B63\u5728\u91CD\u542F DSH Desktop\u2026",unavailable:"\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301\u81EA\u52A8\u66F4\u65B0\uFF0C\u8BF7\u4F7F\u7528\u624B\u5DE5\u66F4\u65B0\u547D\u4EE4\u3002"},y3={check:"Check for updates",update:"Update",close:"Close",recheck:"Check again",auto:"Update automatically",updating:"Updating\u2026",copy:"Copy command",copied:"Copied",copyFailed:"Copy failed",checking:"Checking for updates\u2026",latest:"You are up to date",found:"New version available",failed:"Could not check for updates. Try again later.",current:"Running version",latestLabel:"Latest version",profile:"Target profile",unknown:"Unknown",manual:"Manual update",manualHint:"If automatic update fails, run this command in the current DSH terminal, then restart DSH Web.",intro:"Only this plugin is checked and updated. Other plugins are not changed.",restart:"Update complete. Restart DSH Web.",restarting:"Update complete. Restarting DSH Desktop\u2026",unavailable:"Automatic update is unavailable. Use the manual command."};function Zg(e){return e.toLowerCase().startsWith("en")?y3:h3}function b3(e,t,o,n){let r=Zg(e),i=o!=="idle",s=r.checking,a="";return o==="checking"?s=r.checking:o==="updating"?s=r.updating:n.type==="error"?(s=n.message||r.failed,a="error"):n.type==="restart"?(s=r.restart,a="success"):n.type==="restarting"?(s=r.restarting,a="success"):t===void 0?s=r.checking:t.latestCheckFailed?(s=r.failed,a="error"):!t.canAutoUpdate&&t.updateAvailable?s=r.unavailable:t.updateAvailable?s=`${r.found}: v${t.latestVersion??r.unknown}`:(s=r.latest,a="success"),{copy:r,busy:i,message:s,kind:a,loading:o==="updating",updateLabel:o==="updating"?r.updating:r.auto,disabled:i||t?.canAutoUpdate!==!0||t.updateAvailable!==!0,currentVersion:t===void 0?r.unknown:`v${t.currentVersion}`,latestVersion:t?.latestVersion===void 0?r.unknown:`v${t.latestVersion}`,profileName:t?.profileName??r.unknown,profileRaw:t?.profileName??"",latestRaw:t?.latestVersion??"latest"}}function x3(e,t,o){let n="idle",r=t,i={type:"status"},s=new Set,a=()=>{for(let l of s)l()},c=l=>{r=l,o?.(l)};return{subscribe(l){return s.add(l),()=>{s.delete(l)}},view(l){return b3(l,r,n,i)},async check(){if(n==="idle"){n="checking",i={type:"status"},a();try{c(await e("GET")),i={type:"status"}}catch(l){i={type:"error",message:l instanceof Error?l.message:""}}finally{n="idle",a()}}},async update(){if(n==="idle"){n="updating",i={type:"status"},a();try{let l=await e("POST");c(l),i={type:l.autoReload===!0?"restarting":"restart"}}catch(l){i={type:"error",message:l instanceof Error?l.message:""}}finally{n="idle",a()}}}}}function v3(){if(document.getElementById(_A)!==null)return;let e=document.createElement("style");e.id=_A,e.textContent=g3,(document.head??document.documentElement).append(e)}function S3(e){if(e===null||typeof e!="object")return!1;let t=e;return typeof t.packageName=="string"&&typeof t.currentVersion=="string"&&typeof t.updateAvailable=="boolean"&&typeof t.profileName=="string"&&typeof t.canAutoUpdate=="boolean"&&typeof t.latestCheckFailed=="boolean"&&(t.latestVersion===void 0||typeof t.latestVersion=="string")}async function FA(e,t,o){let n=o===void 0?{}:{signal:o},r=await fetch(e,t==="GET"?{cache:"no-store",...n}:{method:"POST",headers:{"content-type":"application/json",[f3]:"1"},body:"{}",...n}),i=await r.json();if(!r.ok||!S3(i))throw new Error(i!==null&&typeof i=="object"&&"error"in i&&typeof i.error=="string"?i.error:Zg(document.documentElement.lang).failed);return i}function C3(e){let t=lt.default.useRef(null);return lt.default.useLayoutEffect(()=>{t.current?.replaceChildren(e.node)},[e.node]),lt.default.createElement("span",{ref:t,className:"mpi-icon","aria-hidden":!0})}function w3(e){let t=lt.default.useRef(null),[,o]=lt.default.useState(0),[n,r]=lt.default.useState("idle");lt.default.useEffect(()=>e.flow.subscribe(()=>o(d=>d+1)),[e.flow]),lt.default.useEffect(()=>{let d=document.documentElement,u=new MutationObserver(()=>o(m=>m+1));return u.observe(d,{attributes:!0,attributeFilter:["lang"]}),()=>u.disconnect()},[]),lt.default.useEffect(()=>{e.flow.check()},[e.flow]),lt.default.useEffect(()=>{let d=u=>{DA(u,e.onClose)};return document.addEventListener("keydown",d,!0),()=>document.removeEventListener("keydown",d,!0)},[e.onClose]);let i=document.documentElement.lang,s=e.flow.view(i),a=i.toLowerCase().startsWith("en")?e.enName:e.zhName,c=LA(s.profileRaw,e.packageName,s.latestRaw),l=n==="copied"?s.copy.copied:n==="failed"?s.copy.copyFailed:s.copy.copy;return lt.default.createElement(Rn,null,lt.default.createElement(Da,{open:!0,className:"mpi-dialog",width:680,zIndex:1200,title:`${a} ${s.copy.update}`,keyboard:!1,destroyOnHidden:!0,onCancel:e.onClose,afterOpenChange:d=>{d&&t.current&&(t.current.tabIndex=-1,t.current.focus())},footer:[lt.default.createElement(ho,{key:"check",disabled:s.busy,loading:s.busy&&!s.loading,onClick:()=>{e.flow.check()}},s.copy.recheck),lt.default.createElement(ho,{key:"update",type:"primary",disabled:s.disabled,loading:s.loading,onClick:()=>{e.flow.update()}},s.updateLabel)]},lt.default.createElement("div",{ref:t},lt.default.createElement("p",{className:"mpi-intro"},s.copy.intro),lt.default.createElement("dl",{className:"mpi-meta"},lt.default.createElement("dt",null,s.copy.current),lt.default.createElement("dd",null,lt.default.createElement("span",{className:"mpi-mono"},s.currentVersion)),lt.default.createElement("dt",null,s.copy.latestLabel),lt.default.createElement("dd",{className:"mpi-latest"},lt.default.createElement("span",{className:"mpi-mono"},s.latestVersion),lt.default.createElement("span",{className:"mpi-status",role:"status","data-kind":s.kind},s.message)),lt.default.createElement("dt",null,s.copy.profile),lt.default.createElement("dd",null,lt.default.createElement("span",{className:"mpi-mono"},s.profileName))),s.busy?lt.default.createElement(TO,{percent:100,showInfo:!1,status:"active"}):null,lt.default.createElement("section",{className:"mpi-manual"},lt.default.createElement("h3",null,s.copy.manual),lt.default.createElement("p",null,s.copy.manualHint),lt.default.createElement("div",{className:"mpi-command"},lt.default.createElement("code",null,c),lt.default.createElement(ho,{disabled:s.busy,onClick:()=>{let d=navigator.clipboard?.writeText(c);if(d===void 0){r("failed");return}d.then(()=>{r("copied"),window.setTimeout(()=>r("idle"),1400)}).catch(()=>r("failed"))}},l))))))}function zA(e){if(typeof document>"u"||document.body===null)return()=>{};v3();let t=new AbortController,o,n,r,i,s,a,c,l=()=>{r?.unmount(),r=void 0,n=void 0,i=void 0},d=()=>{if(r===void 0)return;i===void 0&&(i=e.createIcon("refresh"));let h=i;r.render(lt.default.createElement(Rn,null,lt.default.createElement(ho,{size:"small",shape:"default",onClick:m,icon:lt.default.createElement(C3,{node:h})},lt.default.createElement("span",{"data-mpi-label":""},Zg(document.documentElement.lang).check))))},u=()=>{a?.unmount(),a=void 0,s?.remove(),s=void 0};function m(){u();let h=document.createElement("div");h.className="mpi-dialog-root",document.body.append(h),s=h;let y=(0,US.createRoot)(h);a=y,y.render(lt.default.createElement(w3,{flow:x3(x=>FA(e.endpoint,x,t.signal),o,x=>{o=x,f()}),packageName:e.packageName,zhName:e.zhName,enName:e.enName,onClose:u}))}let f=()=>{let h=document.querySelector(e.titleRowSelector);if(h===null)return;let y=h.querySelector("h1,h2");if(y!==null&&o!==void 0){let v=y.querySelector(`.mpi-version[data-package="${e.packageName}"]`);v===null&&(v=document.createElement("span"),v.className="mpi-version",v.dataset.package=e.packageName,y.append(v));let C=`v${o.currentVersion}`;v.textContent!==C&&(v.textContent=C)}n!==void 0&&!n.isConnected&&l();let x=h.querySelector(e.linksSelector);if(x===null)return;let b=x.querySelector(`[data-mpi-check="${e.packageName}"]`);if(b!==null){let v=b.querySelector("[data-mpi-label]");(v===null||v.textContent!==Zg(document.documentElement.lang).check)&&d();return}let S=document.createElement("span");S.dataset.mpiCheck=e.packageName,S.className="mpi-check-host",x.append(S),n=S,r=(0,US.createRoot)(S),d()},g=async()=>(o=await FA(e.endpoint,"GET",t.signal),f(),o),p=new MutationObserver(()=>{c===void 0&&(c=window.requestAnimationFrame(()=>{c=void 0,f()}))});return p.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["lang"]}),f(),g().catch(()=>{}),()=>{t.abort(),p.disconnect(),u(),l(),c!==void 0&&window.cancelAnimationFrame(c),document.querySelectorAll(`[data-mpi-check="${e.packageName}"],.mpi-version[data-package="${e.packageName}"]`).forEach(h=>h.remove())}}var R3="dsh-automation-client",E3=["slots","locale","connection","sessions"],$3={refresh:["M13.5 5.5V2.5m0 0h-3m3 0-2.1 2.1A5.5 5.5 0 1 0 13.2 12"],download:["M8 2v8m0 0 3-3m-3 3-3-3M3 13v2h10v-2"],copy:["M5 5h8v8H5z","M3 3h8"],close:["m4 4 8 8M12 4 4 12"]};function I3(e){let t=document.createElement("span"),o=document.createElementNS("http://www.w3.org/2000/svg","svg");o.setAttribute("viewBox","0 0 16 16"),o.setAttribute("width","16"),o.setAttribute("height","16"),o.setAttribute("fill","none"),o.setAttribute("stroke","currentColor"),o.setAttribute("stroke-width","1.5"),o.setAttribute("stroke-linecap","round"),o.setAttribute("stroke-linejoin","round"),o.setAttribute("aria-hidden","true");for(let n of $3[e]){let r=document.createElementNS("http://www.w3.org/2000/svg","path");r.setAttribute("d",n),o.append(r)}return t.append(o),t}var N3='<svg viewBox="0 0 16 16" width="16" height="16" fill="none" aria-hidden="true" data-dsh-schedule-icon="1"><path fill="currentColor" d="M8 1.15A6.85 6.85 0 1 0 8 14.85 6.85 6.85 0 0 0 8 1.15Zm0 1.4a5.45 5.45 0 1 1 0 10.9 5.45 5.45 0 0 1 0-10.9Z"/><path fill="currentColor" d="M8.62 4.35H7.28v4.2l3.02 1.78.67-1.13-2.35-1.39V4.35Z"/></svg>';function P3(e){return typeof e=="function"}function T3(e){return typeof e=="function"}function M3(e){let t=new Set(e().map(i=>i.trim()).filter(i=>i!=="")),o=i=>{let s=(i.textContent??"").replace(/\s+/g," ").trim();if(!t.has(s))return;let a=i.querySelector("svg");a===null||a.getAttribute("data-dsh-schedule-icon")==="1"||(a.outerHTML=N3)},n=i=>{i instanceof HTMLButtonElement&&o(i);for(let s of i.querySelectorAll?.("button")??[])o(s)};n(document);let r=new MutationObserver(i=>{for(let s of i){let c=(s.target instanceof Element?s.target:s.target.parentElement)?.closest("button");c instanceof HTMLButtonElement&&o(c);for(let l of s.addedNodes)l instanceof Element&&n(l)}});return r.observe(document.documentElement,{childList:!0,characterData:!0,subtree:!0}),()=>{r.disconnect()}}function O3(e){e.effect(()=>MA(),"dsh-automation: styles"),e.effect(()=>e.locale.register(uc,{zh:nA,en:oA}),"dsh-automation: locale"),e.effect(()=>zA({endpoint:"/api/michengai/dsh-automation/update",packageName:"@michengai/dsh-automation",titleRowSelector:".dsh-st-heading-row",linksSelector:".dsh-st-heading-links",zhName:"\u5B9A\u65F6\u4EFB\u52A1",enName:"Scheduled tasks",createIcon:I3}),"dsh-automation: plugin update ui");let t=e.locale.bind(uc),o=e.locale.bind("permission.access"),n=e.locale.bind("model"),r=qO(e.connection.rpc),i=s=>{BS(s),kA([t("tab"),"Scheduled tasks","\u5B9A\u65F6\u4EFB\u52A1"],()=>{BS(s)})};e.effect(()=>GO(r,()=>e.sessions),"dsh-automation: session sync"),e.effect(()=>M3(()=>[t("tab"),"Scheduled tasks","\u5B9A\u65F6\u4EFB\u52A1"]),"dsh-automation: settings icon"),e.slots.inject("settings.section",()=>e.slots.register({name:"settings.section",id:"scheduled-tasks",order:28,locale:uc,label:()=>t("tab"),icon:"schedule"},function(a){return(0,Fa.createElement)(tA,{t,permissionT:o,modelT:n,runtime:r,...a.close===void 0?{}:{closeSettings:a.close}})})),e.slots.inject("sidebar.schedule",()=>e.slots.register({name:"sidebar.schedule",id:"dsh-automation-schedule",order:10,locale:uc,label:()=>t("sidebar.tab")},function(a){return(0,Fa.createElement)(IA,{t,runtime:r,openSession:KS(e,r,a.openSession),openTaskSettings:i,...a.view===void 0?{}:{view:a.view},...a.showViewSwitch===void 0?{}:{showViewSwitch:a.showViewSwitch}})})),e.slots.inject("sidebar.workspaces",()=>{let s,a,c,l,d,u=()=>{},m=!1,f,g=()=>{queueMicrotask(()=>window.dispatchEvent(new Event("dsh-native-sidebar-change")))},p=w=>e.slots.subscribe?.("sidebar.channels",w)??(()=>{}),h=()=>{f!==void 0&&(window.clearInterval(f),f=void 0)},y=()=>{if(h(),u(),u=()=>{},d=void 0,s!==void 0){a!==void 0&&s.component===c&&(s.component=a);let w=s;w.__dshNativeTabs===l&&delete w.__dshNativeTabs,g()}s=void 0,a=void 0,c=void 0,l=void 0},x=(w,I)=>{let P=sA(w);return P===void 0?!1:(d!==P&&(u(),u=()=>{},d=P),P.getTabs().some(N=>N.id==="schedule")||(u=P.insert({id:"schedule",label:t("sidebar.tab"),order:30,matchSession:N=>N.startsWith(Ha),render:N=>{let E=typeof N.openSession=="function"?N.openSession:typeof N.open=="function"?N.open:I,O=KS(e,r,E);return(0,Fa.createElement)(Xg,{t,runtime:r,openSession:O,...P3(N.useSessions)?{useSessions:N.useSessions}:{},...T3(N.useWorkspaces)?{useWorkspaces:N.useWorkspaces}:{},...typeof N.renderSlot=="function"?{renderSlot:N.renderSlot}:{},...typeof N.useSessionStatus=="function"?{useSessionStatus:N.useSessionStatus}:{},...Ug(N),openTaskSettings:i})}})),!0)},b=()=>{let w=Qg(e,"sidebar.workspaces");for(let I of w){let P=I;if(x(I)||x(P.component))return!0}return!1},S=()=>{if(b()){h();return}if(f!==void 0)return;let w=0;f=window.setInterval(()=>{w+=1,(b()||w>=20)&&h()},250)},v=()=>{if(!m){m=!0;try{let A=function(T){let L=KS(e,r,T.openSession??T.open);return(0,Fa.createElement)(NA,{t,runtime:r,hostProps:T,openSession:L,openTaskSettings:i,tabRegistry:D,...T.wide===void 0?{}:{wide:T.wide},hasChannels:()=>k3(e,"sidebar.channels"),subscribeChannels:p,...T.useSessions===void 0?{}:{useSessions:T.useSessions},...T.useWorkspaces===void 0?{}:{useWorkspaces:T.useWorkspaces},...T.renderSlot===void 0?{}:{renderSlot:T.renderSlot},officialTree:_})};var w=A;if(zC(Qg(e,"sidebar"))){y();return}let I=Qg(e,"sidebar.workspaces"),P=I.find(T=>T?.component!==void 0);if(s!==void 0&&(P!==s||P.component!==c)&&y(),P===s&&P?.component===c&&c!==void 0){S();return}if(P===void 0){y();return}let N=XC(I),E=N?.component;if(E!==void 0&&aA(E)){S();return}if(N?.component===void 0)return;let O=qC(N.component);if(O===void 0)return;a=O;let D=iA(a);l=D,VS(N,D);let F=A;F.displayName="AutomationNativeWorkspaceShell",F.__dshNativeTabHost=!0,F.__dshAutomationWrapped=!0,F.__dshAutomationOriginal=a;let _=a;VS(F,D),N.component=F,c=F,s=N,S(),g()}catch(I){console.warn("[dsh-automation] \u5305\u88F9\u5B98\u65B9\u4EFB\u52A1\u6811\u5931\u8D25",I)}finally{m=!1}}};v();let C=typeof e.slots.subscribe=="function"?e.slots.subscribe("sidebar.workspaces",v):()=>{},R=e.slots.subscribe?.("sidebar",v)??(()=>{});return window.addEventListener("dsh-native-sidebar-change",v),S(),()=>{C(),R(),window.removeEventListener("dsh-native-sidebar-change",v),y()}}),e.slots.inject("conversation.input.left",()=>e.slots.register({name:"conversation.input.left",id:"dsh-automation-prefill",order:80,locale:uc},A3))}function KS(e,t,o){return n=>{let r=VC(e);UC({id:n,adopt:i=>t.adoptSession(i),listed:i=>{let s=e.sessions?.list?.getSnapshot();return(s?.ids??[]).includes(i)||s?.byId?.[i]!==void 0},...e.sessions?.refresh===void 0?{}:{refresh:()=>e.sessions.refresh()},...WC(r)?{openRuntime:i=>{jC(r,i)}}:{},...o===void 0?{}:{openHost:o}})}}function A3(e){return(0,Fa.useEffect)(()=>{let t=o=>{if(!(o===null||o==="")){if(e.inputActions!==void 0){e.inputActions.setDraft(o),LS();return}WO(o)&&LS()}};return t(HO()),VO(t)},[e.inputActions]),null}function Qg(e,t){try{return(e.slots.entriesOfSlot??e.slots.entries)?.call(e.slots,t)??[]}catch{return[]}}function k3(e,t){return Qg(e,t).length>0}
|
|
399
|
+
`,v3={check:"\u68C0\u67E5\u66F4\u65B0",update:"\u66F4\u65B0",close:"\u5173\u95ED",recheck:"\u91CD\u65B0\u68C0\u67E5",auto:"\u81EA\u52A8\u66F4\u65B0",updating:"\u6B63\u5728\u66F4\u65B0\u2026",copy:"\u590D\u5236\u547D\u4EE4",copied:"\u5DF2\u590D\u5236",copyFailed:"\u590D\u5236\u5931\u8D25",checking:"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0\u2026",latest:"\u5DF2\u662F\u6700\u65B0\u7248\u672C",found:"\u53D1\u73B0\u65B0\u7248\u672C",failed:"\u68C0\u67E5\u66F4\u65B0\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002",current:"\u8FD0\u884C\u7248\u672C",latestLabel:"\u6700\u65B0\u7248\u672C",profile:"\u76EE\u6807 profile",unknown:"\u672A\u77E5",manual:"\u624B\u5DE5\u66F4\u65B0",manualHint:"\u81EA\u52A8\u66F4\u65B0\u5931\u8D25\u65F6\uFF0C\u53EF\u5728\u5F53\u524D DSH \u7EC8\u7AEF\u6267\u884C\u4EE5\u4E0B\u547D\u4EE4\uFF0C\u5B8C\u6210\u540E\u91CD\u542F DSH Web\u3002",intro:"\u4EC5\u68C0\u67E5\u5E76\u66F4\u65B0\u5F53\u524D\u63D2\u4EF6\uFF0C\u4E0D\u4F1A\u8054\u52A8\u5B89\u88C5\u5176\u4ED6\u63D2\u4EF6\u3002",restart:"\u66F4\u65B0\u5B8C\u6210\uFF0C\u8BF7\u91CD\u542F DSH Web\u3002",restarting:"\u66F4\u65B0\u5B8C\u6210\uFF0C\u6B63\u5728\u91CD\u542F DSH Desktop\u2026",unavailable:"\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301\u81EA\u52A8\u66F4\u65B0\uFF0C\u8BF7\u4F7F\u7528\u624B\u5DE5\u66F4\u65B0\u547D\u4EE4\u3002"},S3={check:"Check for updates",update:"Update",close:"Close",recheck:"Check again",auto:"Update automatically",updating:"Updating\u2026",copy:"Copy command",copied:"Copied",copyFailed:"Copy failed",checking:"Checking for updates\u2026",latest:"You are up to date",found:"New version available",failed:"Could not check for updates. Try again later.",current:"Running version",latestLabel:"Latest version",profile:"Target profile",unknown:"Unknown",manual:"Manual update",manualHint:"If automatic update fails, run this command in the current DSH terminal, then restart DSH Web.",intro:"Only this plugin is checked and updated. Other plugins are not changed.",restart:"Update complete. Restart DSH Web.",restarting:"Update complete. Restarting DSH Desktop\u2026",unavailable:"Automatic update is unavailable. Use the manual command."};function Zg(e){return e.toLowerCase().startsWith("en")?S3:v3}function C3(e,t,o,n){let r=Zg(e),i=o!=="idle",s=r.checking,a="";return o==="checking"?s=r.checking:o==="updating"?s=r.updating:n.type==="error"?(s=n.message||r.failed,a="error"):n.type==="restart"?(s=r.restart,a="success"):n.type==="restarting"?(s=r.restarting,a="success"):t===void 0?s=r.checking:t.latestCheckFailed?(s=r.failed,a="error"):!t.canAutoUpdate&&t.updateAvailable?s=r.unavailable:t.updateAvailable?s=`${r.found}: v${t.latestVersion??r.unknown}`:(s=r.latest,a="success"),{copy:r,busy:i,message:s,kind:a,loading:o==="updating",updateLabel:o==="updating"?r.updating:r.auto,disabled:i||t?.canAutoUpdate!==!0||t.updateAvailable!==!0,currentVersion:t===void 0?r.unknown:`v${t.currentVersion}`,latestVersion:t?.latestVersion===void 0?r.unknown:`v${t.latestVersion}`,profileName:t?.profileName??r.unknown,profileRaw:t?.profileName??"",latestRaw:t?.latestVersion??"latest"}}function w3(e,t,o){let n="idle",r=t,i={type:"status"},s=new Set,a=()=>{for(let l of s)l()},c=l=>{r=l,o?.(l)};return{subscribe(l){return s.add(l),()=>{s.delete(l)}},view(l){return C3(l,r,n,i)},async check(){if(n==="idle"){n="checking",i={type:"status"},a();try{c(await e("GET")),i={type:"status"}}catch(l){i={type:"error",message:l instanceof Error?l.message:""}}finally{n="idle",a()}}},async update(){if(n==="idle"){n="updating",i={type:"status"},a();try{let l=await e("POST");c(l),i={type:l.autoReload===!0?"restarting":"restart"}}catch(l){i={type:"error",message:l instanceof Error?l.message:""}}finally{n="idle",a()}}}}}function R3(){if(document.getElementById(BA)!==null)return;let e=document.createElement("style");e.id=BA,e.textContent=x3,(document.head??document.documentElement).append(e)}function E3(e){if(e===null||typeof e!="object")return!1;let t=e;return typeof t.packageName=="string"&&typeof t.currentVersion=="string"&&typeof t.updateAvailable=="boolean"&&typeof t.profileName=="string"&&typeof t.canAutoUpdate=="boolean"&&typeof t.latestCheckFailed=="boolean"&&(t.latestVersion===void 0||typeof t.latestVersion=="string")}async function HA(e,t,o){let n=o===void 0?{}:{signal:o},r=await fetch(e,t==="GET"?{cache:"no-store",...n}:{method:"POST",headers:{"content-type":"application/json",[b3]:"1"},body:"{}",...n}),i=await r.json();if(!r.ok||!E3(i))throw new Error(i!==null&&typeof i=="object"&&"error"in i&&typeof i.error=="string"?i.error:Zg(document.documentElement.lang).failed);return i}function $3(e){let t=ct.default.useRef(null);return ct.default.useLayoutEffect(()=>{t.current?.replaceChildren(e.node)},[e.node]),ct.default.createElement("span",{ref:t,className:"mpi-icon","aria-hidden":!0})}function I3(e){let t=ct.default.useRef(null),[,o]=ct.default.useState(0),[n,r]=ct.default.useState("idle");ct.default.useEffect(()=>e.flow.subscribe(()=>o(d=>d+1)),[e.flow]),ct.default.useEffect(()=>{let d=document.documentElement,u=new MutationObserver(()=>o(m=>m+1));return u.observe(d,{attributes:!0,attributeFilter:["lang"]}),()=>u.disconnect()},[]),ct.default.useEffect(()=>{e.flow.check()},[e.flow]),ct.default.useEffect(()=>{let d=u=>{zA(u,e.onClose)};return document.addEventListener("keydown",d,!0),()=>document.removeEventListener("keydown",d,!0)},[e.onClose]);let i=document.documentElement.lang,s=e.flow.view(i),a=i.toLowerCase().startsWith("en")?e.enName:e.zhName,c=FA(s.profileRaw,e.packageName,s.latestRaw),l=n==="copied"?s.copy.copied:n==="failed"?s.copy.copyFailed:s.copy.copy;return ct.default.createElement(Rn,null,ct.default.createElement(Da,{open:!0,className:"mpi-dialog",width:680,zIndex:1200,title:`${a} ${s.copy.update}`,keyboard:!1,destroyOnHidden:!0,onCancel:e.onClose,afterOpenChange:d=>{d&&t.current&&(t.current.tabIndex=-1,t.current.focus())},footer:[ct.default.createElement(ho,{key:"check",disabled:s.busy,loading:s.busy&&!s.loading,onClick:()=>{e.flow.check()}},s.copy.recheck),ct.default.createElement(ho,{key:"update",type:"primary",disabled:s.disabled,loading:s.loading,onClick:()=>{e.flow.update()}},s.updateLabel)]},ct.default.createElement("div",{ref:t},ct.default.createElement("p",{className:"mpi-intro"},s.copy.intro),ct.default.createElement("dl",{className:"mpi-meta"},ct.default.createElement("dt",null,s.copy.current),ct.default.createElement("dd",null,ct.default.createElement("span",{className:"mpi-mono"},s.currentVersion)),ct.default.createElement("dt",null,s.copy.latestLabel),ct.default.createElement("dd",{className:"mpi-latest"},ct.default.createElement("span",{className:"mpi-mono"},s.latestVersion),ct.default.createElement("span",{className:"mpi-status",role:"status","data-kind":s.kind},s.message)),ct.default.createElement("dt",null,s.copy.profile),ct.default.createElement("dd",null,ct.default.createElement("span",{className:"mpi-mono"},s.profileName))),s.busy?ct.default.createElement(MO,{percent:100,showInfo:!1,status:"active"}):null,ct.default.createElement("section",{className:"mpi-manual"},ct.default.createElement("h3",null,s.copy.manual),ct.default.createElement("p",null,s.copy.manualHint),ct.default.createElement("div",{className:"mpi-command"},ct.default.createElement("code",null,c),ct.default.createElement(ho,{disabled:s.busy,onClick:()=>{let d=navigator.clipboard?.writeText(c);if(d===void 0){r("failed");return}d.then(()=>{r("copied"),window.setTimeout(()=>r("idle"),1400)}).catch(()=>r("failed"))}},l))))))}function VA(e){if(typeof document>"u"||document.body===null)return()=>{};R3();let t=new AbortController,o,n,r,i,s,a,c,l=()=>{r?.unmount(),r=void 0,n=void 0,i=void 0},d=()=>{if(r===void 0)return;i===void 0&&(i=e.createIcon("refresh"));let h=i;r.render(ct.default.createElement(Rn,null,ct.default.createElement(ho,{size:"small",shape:"default",onClick:m,icon:ct.default.createElement($3,{node:h})},ct.default.createElement("span",{"data-mpi-label":""},Zg(document.documentElement.lang).check))))},u=()=>{a?.unmount(),a=void 0,s?.remove(),s=void 0};function m(){u();let h=document.createElement("div");h.className="mpi-dialog-root",document.body.append(h),s=h;let y=(0,KS.createRoot)(h);a=y,y.render(ct.default.createElement(I3,{flow:w3(x=>HA(e.endpoint,x,t.signal),o,x=>{o=x,f()}),packageName:e.packageName,zhName:e.zhName,enName:e.enName,onClose:u}))}let f=()=>{let h=document.querySelector(e.titleRowSelector);if(h===null)return;let y=h.querySelector("h1,h2");if(y!==null&&o!==void 0){let v=y.querySelector(`.mpi-version[data-package="${e.packageName}"]`);v===null&&(v=document.createElement("span"),v.className="mpi-version",v.dataset.package=e.packageName,y.append(v));let C=`v${o.currentVersion}`;v.textContent!==C&&(v.textContent=C)}n!==void 0&&!n.isConnected&&l();let x=h.querySelector(e.linksSelector);if(x===null)return;let b=x.querySelector(`[data-mpi-check="${e.packageName}"]`);if(b!==null){let v=b.querySelector("[data-mpi-label]");(v===null||v.textContent!==Zg(document.documentElement.lang).check)&&d();return}let S=document.createElement("span");S.dataset.mpiCheck=e.packageName,S.className="mpi-check-host",x.append(S),n=S,r=(0,KS.createRoot)(S),d()},g=async()=>(o=await HA(e.endpoint,"GET",t.signal),f(),o),p=new MutationObserver(()=>{c===void 0&&(c=window.requestAnimationFrame(()=>{c=void 0,f()}))});return p.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["lang"]}),f(),g().catch(()=>{}),()=>{t.abort(),p.disconnect(),u(),l(),c!==void 0&&window.cancelAnimationFrame(c),document.querySelectorAll(`[data-mpi-check="${e.packageName}"],.mpi-version[data-package="${e.packageName}"]`).forEach(h=>h.remove())}}var N3="dsh-automation-client",P3=["slots","locale","connection","sessions"],T3={refresh:["M13.5 5.5V2.5m0 0h-3m3 0-2.1 2.1A5.5 5.5 0 1 0 13.2 12"],download:["M8 2v8m0 0 3-3m-3 3-3-3M3 13v2h10v-2"],copy:["M5 5h8v8H5z","M3 3h8"],close:["m4 4 8 8M12 4 4 12"]};function M3(e){let t=document.createElement("span"),o=document.createElementNS("http://www.w3.org/2000/svg","svg");o.setAttribute("viewBox","0 0 16 16"),o.setAttribute("width","16"),o.setAttribute("height","16"),o.setAttribute("fill","none"),o.setAttribute("stroke","currentColor"),o.setAttribute("stroke-width","1.5"),o.setAttribute("stroke-linecap","round"),o.setAttribute("stroke-linejoin","round"),o.setAttribute("aria-hidden","true");for(let n of T3[e]){let r=document.createElementNS("http://www.w3.org/2000/svg","path");r.setAttribute("d",n),o.append(r)}return t.append(o),t}var O3='<svg viewBox="0 0 16 16" width="16" height="16" fill="none" aria-hidden="true" data-dsh-schedule-icon="1"><path fill="currentColor" d="M8 1.15A6.85 6.85 0 1 0 8 14.85 6.85 6.85 0 0 0 8 1.15Zm0 1.4a5.45 5.45 0 1 1 0 10.9 5.45 5.45 0 0 1 0-10.9Z"/><path fill="currentColor" d="M8.62 4.35H7.28v4.2l3.02 1.78.67-1.13-2.35-1.39V4.35Z"/></svg>';function A3(e){return typeof e=="function"}function k3(e){return typeof e=="function"}function L3(e){let t=new Set(e().map(i=>i.trim()).filter(i=>i!=="")),o=i=>{let s=(i.textContent??"").replace(/\s+/g," ").trim();if(!t.has(s))return;let a=i.querySelector("svg");a===null||a.getAttribute("data-dsh-schedule-icon")==="1"||(a.outerHTML=O3)},n=i=>{i instanceof HTMLButtonElement&&o(i);for(let s of i.querySelectorAll?.("button")??[])o(s)};n(document);let r=new MutationObserver(i=>{for(let s of i){let c=(s.target instanceof Element?s.target:s.target.parentElement)?.closest("button");c instanceof HTMLButtonElement&&o(c);for(let l of s.addedNodes)l instanceof Element&&n(l)}});return r.observe(document.documentElement,{childList:!0,characterData:!0,subtree:!0}),()=>{r.disconnect()}}function D3(e){e.effect(()=>kA(),"dsh-automation: styles"),e.effect(()=>e.locale.register(uc,{zh:rA,en:nA}),"dsh-automation: locale"),e.effect(()=>VA({endpoint:"/api/michengai/dsh-automation/update",packageName:"@michengai/dsh-automation",titleRowSelector:".dsh-st-heading-row",linksSelector:".dsh-st-heading-links",zhName:"\u5B9A\u65F6\u4EFB\u52A1",enName:"Scheduled tasks",createIcon:M3}),"dsh-automation: plugin update ui");let t=e.locale.bind(uc),o=e.locale.bind("permission.access"),n=e.locale.bind("model"),r=XO(e.connection.rpc),i=s=>{BS(s),_A([t("tab"),"Scheduled tasks","\u5B9A\u65F6\u4EFB\u52A1"],()=>{BS(s)})};e.effect(()=>qO(r,()=>e.sessions),"dsh-automation: session sync"),e.effect(()=>L3(()=>[t("tab"),"Scheduled tasks","\u5B9A\u65F6\u4EFB\u52A1"]),"dsh-automation: settings icon"),e.slots.inject("settings.section",()=>e.slots.register({name:"settings.section",id:"scheduled-tasks",order:28,locale:uc,label:()=>t("tab"),icon:"schedule"},function(a){return(0,Fa.createElement)(oA,{t,permissionT:o,modelT:n,runtime:r,...a.close===void 0?{}:{closeSettings:a.close}})})),e.slots.inject("sidebar.schedule",()=>e.slots.register({name:"sidebar.schedule",id:"dsh-automation-schedule",order:10,locale:uc,label:()=>t("sidebar.tab")},function(a){return(0,Fa.createElement)(TA,{t,runtime:r,openSession:GS(e,r,a.openSession),openTaskSettings:i,...a.view===void 0?{}:{view:a.view},...a.showViewSwitch===void 0?{}:{showViewSwitch:a.showViewSwitch}})})),e.slots.inject("sidebar.workspaces",()=>{let s,a,c,l,d,u=()=>{},m=!1,f,g=()=>{queueMicrotask(()=>window.dispatchEvent(new Event("dsh-native-sidebar-change")))},p=w=>e.slots.subscribe?.("sidebar.channels",w)??(()=>{}),h=()=>{f!==void 0&&(window.clearInterval(f),f=void 0)},y=()=>{if(h(),u(),u=()=>{},d=void 0,s!==void 0){a!==void 0&&s.component===c&&(s.component=a);let w=s;w.__dshNativeTabs===l&&delete w.__dshNativeTabs,g()}s=void 0,a=void 0,c=void 0,l=void 0},x=(w,I)=>{let P=aA(w);return P===void 0?!1:(d!==P&&(u(),u=()=>{},d=P),P.getTabs().some(N=>N.id==="schedule")||(u=P.insert({id:"schedule",label:t("sidebar.tab"),order:30,matchSession:N=>N.startsWith(Ha),render:N=>{let E=typeof N.openSession=="function"?N.openSession:typeof N.open=="function"?N.open:I,O=GS(e,r,E);return(0,Fa.createElement)(Xg,{t,runtime:r,openSession:O,...A3(N.useSessions)?{useSessions:N.useSessions}:{},...k3(N.useWorkspaces)?{useWorkspaces:N.useWorkspaces}:{},...typeof N.renderSlot=="function"?{renderSlot:N.renderSlot}:{},...typeof N.useSessionStatus=="function"?{useSessionStatus:N.useSessionStatus}:{},...Ug(N),openTaskSettings:i})}})),!0)},b=()=>{let w=Qg(e,"sidebar.workspaces");for(let I of w){let P=I;if(x(I)||x(P.component))return!0}return!1},S=()=>{if(b()){h();return}if(f!==void 0)return;let w=0;f=window.setInterval(()=>{w+=1,(b()||w>=20)&&h()},250)},v=()=>{if(!m){m=!0;try{let k=function(T){let D=GS(e,r,T.openSession??T.open);return(0,Fa.createElement)(MA,{t,runtime:r,hostProps:T,openSession:D,openTaskSettings:i,tabRegistry:L,...T.wide===void 0?{}:{wide:T.wide},hasChannels:()=>F3(e,"sidebar.channels"),subscribeChannels:p,...T.useSessions===void 0?{}:{useSessions:T.useSessions},...T.useWorkspaces===void 0?{}:{useWorkspaces:T.useWorkspaces},...T.renderSlot===void 0?{}:{renderSlot:T.renderSlot},officialTree:_})};var w=k;if(BC(Qg(e,"sidebar"))){y();return}let I=Qg(e,"sidebar.workspaces"),P=I.find(T=>T?.component!==void 0);if(s!==void 0&&(P!==s||P.component!==c)&&y(),P===s&&P?.component===c&&c!==void 0){S();return}if(P===void 0){y();return}let N=YC(I),E=N?.component;if(E!==void 0&&lA(E)){S();return}if(N?.component===void 0)return;let O=XC(N.component);if(O===void 0)return;a=O;let L=sA(a);l=L,VS(N,L);let z=k;z.displayName="AutomationNativeWorkspaceShell",z.__dshNativeTabHost=!0,z.__dshAutomationWrapped=!0,z.__dshAutomationOriginal=a;let _=a;VS(z,L),N.component=z,c=z,s=N,S(),g()}catch(I){console.warn("[dsh-automation] \u5305\u88F9\u5B98\u65B9\u4EFB\u52A1\u6811\u5931\u8D25",I)}finally{m=!1}}};v();let C=typeof e.slots.subscribe=="function"?e.slots.subscribe("sidebar.workspaces",v):()=>{},R=e.slots.subscribe?.("sidebar",v)??(()=>{});return window.addEventListener("dsh-native-sidebar-change",v),S(),()=>{C(),R(),window.removeEventListener("dsh-native-sidebar-change",v),y()}}),e.slots.inject("conversation.input.left",()=>e.slots.register({name:"conversation.input.left",id:"dsh-automation-prefill",order:80,locale:uc},_3))}function GS(e,t,o){return n=>{let r=WC(e);KC({id:n,adopt:i=>t.adoptSession(i),listed:i=>{let s=e.sessions?.list?.getSnapshot();return(s?.ids??[]).includes(i)||s?.byId?.[i]!==void 0},...e.sessions?.refresh===void 0?{}:{refresh:()=>e.sessions.refresh()},...jC(r)?{openRuntime:i=>{UC(r,i)}}:{},...o===void 0?{}:{openHost:o}})}}function _3(e){return(0,Fa.useEffect)(()=>{let t=o=>{if(!(o===null||o==="")){if(e.inputActions!==void 0){e.inputActions.setDraft(o),LS();return}jO(o)&&LS()}};return t(VO()),WO(t)},[e.inputActions]),null}function Qg(e,t){try{return(e.slots.entriesOfSlot??e.slots.entries)?.call(e.slots,t)??[]}catch{return[]}}function F3(e,t){return Qg(e,t).length>0}
|
|
397
400
|
/*! Bundled license information:
|
|
398
401
|
|
|
399
402
|
react-is/cjs/react-is.production.js:
|